@vyredo/module-kit 0.0.0-stage → 0.1.0
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 +154 -2
- package/dist/bind.d.ts +26 -0
- package/dist/boundary.d.ts +9 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2 -0
- package/dist/config.d.ts +10 -0
- package/dist/discover.d.ts +22 -0
- package/dist/follower.d.ts +21 -0
- package/dist/generate.d.ts +49 -0
- package/dist/graph.d.ts +22 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +1 -0
- package/dist/members.d.ts +10 -0
- package/dist/paths.d.ts +5 -0
- package/dist/runtime.d.ts +29 -0
- package/dist/runtime.js +1 -0
- package/dist/scan.d.ts +3 -0
- package/dist/supervisor.d.ts +146 -0
- package/dist/types.d.ts +207 -0
- package/dist/vite.d.ts +13 -0
- package/dist/vite.js +1 -0
- package/package.json +72 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x4e82de=_0x2452;(function(_0x735e64,_0x16a567){const _0x4e31c9=_0x2452,_0x3c1c58=_0x735e64();while(!![]){try{const _0x34d0ea=parseInt(_0x4e31c9(0x2ae))/0x1*(parseInt(_0x4e31c9(0x290))/0x2)+parseInt(_0x4e31c9(0x279))/0x3*(-parseInt(_0x4e31c9(0x321))/0x4)+parseInt(_0x4e31c9(0x257))/0x5*(-parseInt(_0x4e31c9(0x2ad))/0x6)+-parseInt(_0x4e31c9(0x220))/0x7*(parseInt(_0x4e31c9(0x326))/0x8)+parseInt(_0x4e31c9(0x27f))/0x9*(-parseInt(_0x4e31c9(0x284))/0xa)+-parseInt(_0x4e31c9(0x260))/0xb*(parseInt(_0x4e31c9(0x235))/0xc)+-parseInt(_0x4e31c9(0x313))/0xd*(-parseInt(_0x4e31c9(0x245))/0xe);if(_0x34d0ea===_0x16a567)break;else _0x3c1c58['push'](_0x3c1c58['shift']());}catch(_0x113e95){_0x3c1c58['push'](_0x3c1c58['shift']());}}}(_0xf55e,0x650fc));import{existsSync as _0x1ce36b,readdirSync as _0x3f5a05,readFileSync as _0x3bd628,statSync as _0x2831c8}from'node:fs';import{dirname as _0x5abbd8,join as _0x3d80c8,relative as _0x2438c8,resolve as _0x11ded4,sep as _0x523bdc}from'node:path';import _0x3cc870 from'typescript-6';import{relative as _0x118247,sep as _0x2cc5eb}from'node:path';var $=_0x5042e6=>_0x5042e6[_0x4e82de(0x1fd)](_0x2cc5eb)[_0x4e82de(0x28a)]('/');function X(_0xc6c4d5,_0xa6989b){const _0x2335cc=_0x4e82de;let _0x19f90d=$(_0x118247(_0xc6c4d5,_0xa6989b))[_0x2335cc(0x1f9)](/\.tsx?$/,'');return _0x19f90d[_0x2335cc(0x310)]('./')||_0x19f90d[_0x2335cc(0x310)](_0x2335cc(0x216))?_0x19f90d:'./'+_0x19f90d;}function q(_0x27b3ab,_0x40e764){const _0x15bbf3=_0x4e82de;let _0x57fa20='';for(let _0x5722c9=0x0;_0x5722c9<_0x27b3ab['length'];_0x5722c9++){let _0x4dba1a=_0x27b3ab[_0x5722c9];if(_0x4dba1a==='*'&&_0x27b3ab[_0x5722c9+0x1]==='*'){let _0x5d300c=_0x27b3ab[_0x5722c9+0x2]==='/';_0x57fa20+=_0x5d300c?_0x15bbf3(0x21c):'.*',_0x5722c9+=_0x5d300c?0x2:0x1;}else _0x4dba1a==='*'?_0x57fa20+='[^/]*':_0x57fa20+=_0x4dba1a[_0x15bbf3(0x1f9)](/[.+?^${}()|[\]\\]/g,_0x15bbf3(0x276));}return _0x27b3ab['endsWith'](_0x15bbf3(0x2c1))&&(_0x57fa20=_0x57fa20[_0x15bbf3(0x2e0)](0x0,-0x3)+_0x15bbf3(0x231)),new RegExp('^'+_0x57fa20+'$')[_0x15bbf3(0x2bb)](_0x40e764);}var Je=/\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/,_e=new Set([_0x4e82de(0x239),_0x4e82de(0x262)]);function ce(_0x4994c9){const _0x33a4ba=_0x4e82de;let _0x349a73=_0x3bd628(_0x4994c9,_0x33a4ba(0x2f3)),_0x129410=_0x3cc870[_0x33a4ba(0x2ee)](_0x4994c9,_0x349a73,_0x3cc870[_0x33a4ba(0x20d)][_0x33a4ba(0x288)],!0x0,/x$/[_0x33a4ba(0x2bb)](_0x4994c9)?_0x3cc870[_0x33a4ba(0x2dd)]['TSX']:_0x3cc870[_0x33a4ba(0x2dd)]['TS']),_0x460794=[],_0x47ff27=_0x23b48c=>_0x129410['getLineAndCharacterOfPosition'](_0x23b48c[_0x33a4ba(0x2af)](_0x129410))[_0x33a4ba(0x2b0)]+0x1,_0x3491bb=(_0x29b0b4,_0x47c48f,_0x580432)=>{const _0x407c1d=_0x33a4ba;_0x29b0b4&&(_0x3cc870[_0x407c1d(0x212)](_0x29b0b4)||_0x3cc870[_0x407c1d(0x1f6)](_0x29b0b4))&&_0x460794[_0x407c1d(0x26b)]({'spec':_0x29b0b4['text'],'typeOnly':_0x47c48f,'line':_0x47ff27(_0x580432)});},_0x4930ad=_0x46f236=>{const _0x2adac3=_0x33a4ba;if(_0x3cc870[_0x2adac3(0x26d)](_0x46f236)){let _0x817ac5=_0x46f236['importClause'],_0x52cf81=!!_0x817ac5&&(_0x817ac5[_0x2adac3(0x2de)]||!_0x817ac5[_0x2adac3(0x247)]&&!!_0x817ac5[_0x2adac3(0x2fa)]&&_0x3cc870[_0x2adac3(0x2b1)](_0x817ac5[_0x2adac3(0x2fa)])&&_0x817ac5['namedBindings'][_0x2adac3(0x230)][_0x2adac3(0x1fb)]>0x0&&_0x817ac5[_0x2adac3(0x2fa)]['elements'][_0x2adac3(0x2e8)](_0x2a09b5=>_0x2a09b5[_0x2adac3(0x2de)]));_0x3491bb(_0x46f236[_0x2adac3(0x28c)],_0x52cf81,_0x46f236);}else{if(_0x3cc870[_0x2adac3(0x202)](_0x46f236)&&_0x46f236[_0x2adac3(0x28c)]){let _0x22eab9=_0x46f236[_0x2adac3(0x2de)]||!!_0x46f236[_0x2adac3(0x241)]&&_0x3cc870[_0x2adac3(0x2f8)](_0x46f236['exportClause'])&&_0x46f236['exportClause'][_0x2adac3(0x230)][_0x2adac3(0x1fb)]>0x0&&_0x46f236[_0x2adac3(0x241)][_0x2adac3(0x230)][_0x2adac3(0x2e8)](_0x310356=>_0x310356[_0x2adac3(0x2de)]);_0x3491bb(_0x46f236[_0x2adac3(0x28c)],_0x22eab9,_0x46f236);}else _0x3cc870[_0x2adac3(0x25e)](_0x46f236)&&_0x3cc870[_0x2adac3(0x24a)](_0x46f236[_0x2adac3(0x2ed)])?_0x3491bb(_0x46f236['moduleReference']['expression'],_0x46f236[_0x2adac3(0x2de)],_0x46f236):_0x3cc870[_0x2adac3(0x2a9)](_0x46f236)&&(_0x46f236[_0x2adac3(0x2d5)][_0x2adac3(0x209)]===_0x3cc870[_0x2adac3(0x329)]['ImportKeyword']||_0x3cc870[_0x2adac3(0x24d)](_0x46f236['expression'])&&_0x46f236[_0x2adac3(0x2d5)][_0x2adac3(0x28e)]==='require')?_0x3491bb(_0x46f236['arguments'][0x0],!0x1,_0x46f236):_0x3cc870['isImportTypeNode'](_0x46f236)&&_0x3cc870[_0x2adac3(0x21b)](_0x46f236[_0x2adac3(0x325)])&&_0x3491bb(_0x46f236['argument']['literal'],!0x0,_0x46f236);}_0x3cc870[_0x2adac3(0x2a4)](_0x46f236,_0x4930ad);};return _0x4930ad(_0x129410),_0x460794;}function ue(_0x48b09e,_0x1978ad=[]){const _0x46b105=_0x4e82de;for(let _0x1cf24a of _0x3f5a05(_0x48b09e,{'withFileTypes':!0x0}))_0x1cf24a[_0x46b105(0x287)]()?_e[_0x46b105(0x2c6)](_0x1cf24a[_0x46b105(0x247)])||ue(_0x3d80c8(_0x48b09e,_0x1cf24a[_0x46b105(0x247)]),_0x1978ad):Je[_0x46b105(0x2bb)](_0x1cf24a[_0x46b105(0x247)])&&!_0x1cf24a['name'][_0x46b105(0x2c4)]('.d.ts')&&_0x1978ad[_0x46b105(0x26b)](_0x3d80c8(_0x48b09e,_0x1cf24a['name']));return _0x1978ad;}function ze(_0x337a0b,_0x29b1bd){const _0x5e3c98=_0x4e82de;let _0x2016e3=_0x11ded4(_0x5abbd8(_0x337a0b),_0x29b1bd);return[_0x2016e3,...[_0x5e3c98(0x26f),_0x5e3c98(0x2f6),_0x5e3c98(0x2f7),_0x5e3c98(0x292)][_0x5e3c98(0x1f1)](_0x29b042=>_0x2016e3[_0x5e3c98(0x1f9)](/\.js$/,'')+_0x29b042),_0x3d80c8(_0x2016e3,_0x5e3c98(0x2f4)),_0x3d80c8(_0x2016e3,_0x5e3c98(0x274))][_0x5e3c98(0x32f)](_0x32da26=>_0x1ce36b(_0x32da26)&&_0x2831c8(_0x32da26)[_0x5e3c98(0x22e)]())??_0x2016e3;}function Y(_0x3ba9a4,_0x4d0b74){const _0x3ec131=_0x4e82de;let _0x419358=[],_0x2fc0c3=new Map(_0x3ba9a4[_0x3ec131(0x316)]['map'](_0x26c250=>[_0x26c250['id'],_0x26c250])),_0x2e326f=_0x4f218b=>_0x3d80c8(_0x4d0b74[_0x3ec131(0x1f5)],_0x4f218b[_0x3ec131(0x207)]),_0x559345=[..._0x3ba9a4['modules']][_0x3ec131(0x2cb)]((_0x4a3074,_0x3cf7d3)=>_0x3cf7d3[_0x3ec131(0x207)]['length']-_0x4a3074[_0x3ec131(0x207)]['length']),_0x2bc415=_0x493578=>_0x559345['find'](_0x41fcf2=>_0x493578===_0x2e326f(_0x41fcf2)||_0x493578['startsWith'](_0x2e326f(_0x41fcf2)+_0x523bdc)),_0x4d54f9=new Set(_0x4d0b74['realms']??[]),_0x1494aa=(_0x3f8693,_0x4f6b7a)=>{const _0x49a451=_0x3ec131;let _0x144cbf=$(_0x2438c8(_0x2e326f(_0x3f8693),_0x4f6b7a))['split']('/')[0x0];return _0x4d54f9['has'](_0x144cbf)||_0x144cbf===_0x49a451(0x270)?_0x144cbf:null;},_0x2575f1=_0x5f4f1e=>_0x5f4f1e in _0x4d0b74[_0x3ec131(0x1f0)]||_0x5f4f1e['startsWith'](_0x3ec131(0x2fe))||_0x4d0b74[_0x3ec131(0x285)][_0x3ec131(0x2ea)](_0x2a5f1d=>q(_0x2a5f1d,_0x5f4f1e)||q(_0x2a5f1d,_0x5f4f1e+_0x3ec131(0x26f))||q(_0x2a5f1d,_0x5f4f1e+'.tsx')),_0x52b827=_0x184785=>{let _0x1fc524=new Set(),_0x45f498=_0x3c6c15=>{const _0x51193d=_0x2452;for(let _0x3911a4 of _0x3ba9a4[_0x51193d(0x316)])_0x1fc524[_0x51193d(0x2c6)](_0x3911a4['id'])||!(_0x3911a4['requires'][_0x51193d(0x303)](_0x3c6c15)||_0x3911a4[_0x51193d(0x25c)][_0x51193d(0x303)](_0x3c6c15))||(_0x1fc524[_0x51193d(0x2dc)](_0x3911a4['id']),_0x45f498(_0x3911a4['id']));};return _0x45f498(_0x184785),_0x1fc524;};for(let _0x540f8c of _0x3ba9a4[_0x3ec131(0x316)]){let _0x199d0d=new Set([..._0x540f8c[_0x3ec131(0x28b)],..._0x540f8c[_0x3ec131(0x25c)]]),_0x3bdaa0=_0x4d0b74['callUp']===_0x3ec131(0x21a)?_0x52b827(_0x540f8c['id']):new Set();for(let _0x49ab78 of ue(_0x2e326f(_0x540f8c))){let _0x304478=$(_0x2438c8(_0x4d0b74[_0x3ec131(0x1f5)],_0x49ab78));if(_0x4d0b74[_0x3ec131(0x2bf)][_0x3ec131(0x2ea)](_0x3eb229=>q(_0x3eb229,_0x304478)))continue;let _0x4252ed=$(_0x2438c8(_0x4d0b74[_0x3ec131(0x205)],_0x49ab78)),_0x1020ab=_0x1494aa(_0x540f8c,_0x49ab78),_0x1f7533=(_0x398b59,_0x229662)=>_0x419358[_0x3ec131(0x26b)]({'file':_0x4252ed,'line':_0x398b59,'message':_0x229662}),_0x3398b4=(_0x3b37b5,_0x34c071,_0x1459f0)=>{const _0x5c63ca=_0x3ec131;let _0x262921=_0x1494aa(_0x540f8c,_0x1459f0);!_0x262921||_0x262921==='shared'||!_0x1020ab||_0x262921===_0x1020ab||_0x1f7533(_0x3b37b5,_0x1020ab===_0x5c63ca(0x270)?'shared\x20code\x20may\x20not\x20import\x20the\x20'+_0x262921+'\x20realm\x20('+_0x34c071+_0x5c63ca(0x2e7):_0x1020ab+_0x5c63ca(0x2ac)+_0x262921+_0x5c63ca(0x2db)+_0x34c071+')');};for(let _0x47db1e of ce(_0x49ab78)){let {spec:_0x35668c,typeOnly:_0x4d123b,line:_0x5428d3}=_0x47db1e;if(_0x35668c===_0x4d0b74['alias']||_0x35668c['startsWith'](_0x4d0b74[_0x3ec131(0x31f)]+'/')){let [_0x2b9bc0='',..._0x728021]=_0x35668c['slice'](_0x4d0b74[_0x3ec131(0x31f)]['length']+0x1)[_0x3ec131(0x1fd)]('/'),_0x4b10a3=_0x728021[_0x3ec131(0x28a)]('/'),_0xf76dac=_0x2fc0c3[_0x3ec131(0x30a)](_0x2b9bc0);if(!_0xf76dac){_0x1f7533(_0x5428d3,_0x35668c+_0x3ec131(0x1e6)+_0x2b9bc0+'\x22');continue;}if(_0xf76dac['id']===_0x540f8c['id']){_0x4b10a3&&_0x4b10a3!=='protected'&&_0x3398b4(_0x5428d3,_0x35668c,_0x3d80c8(_0x2e326f(_0x540f8c),_0x4b10a3));continue;}if(_0x4b10a3==='protected'){_0x1f7533(_0x5428d3,_0x35668c+_0x3ec131(0x23a)+_0x540f8c['id']+_0x3ec131(0x328)+_0xf76dac['id']+'\x27s');continue;}if(_0x4b10a3&&!_0x2575f1(_0x4b10a3)){_0x1f7533(_0x5428d3,_0x35668c+_0x3ec131(0x31b)+_0xf76dac['id']+_0x3ec131(0x1f8)+['(client)',..._0x4d0b74[_0x3ec131(0x285)],_0x3ec131(0x254)][_0x3ec131(0x28a)](',\x20')+')');continue;}/^\.generated\/surface/[_0x3ec131(0x2bb)](_0x4b10a3)&&!_0x4d123b&&_0x1f7533(_0x5428d3,_0x35668c+_0x3ec131(0x299)),!_0x4d123b&&!_0xf76dac[_0x3ec131(0x1e8)]&&!_0x199d0d[_0x3ec131(0x2c6)](_0xf76dac['id'])&&!_0x3bdaa0[_0x3ec131(0x2c6)](_0xf76dac['id'])&&_0x1f7533(_0x5428d3,_0x540f8c['id']+_0x3ec131(0x311)+_0xf76dac['id']+'\x20('+_0x35668c+_0x3ec131(0x225)+_0xf76dac['id']+_0x3ec131(0x1f2));continue;}if(!_0x35668c['startsWith']('.')&&!_0x35668c[_0x3ec131(0x310)]('/'))continue;let _0x5f3a7d=ze(_0x49ab78,_0x35668c),_0x4153f2=_0x2bc415(_0x5f3a7d);if(_0x4153f2){if(_0x4153f2['id']!==_0x540f8c['id']){let _0x464f8f=$(_0x2438c8(_0x2e326f(_0x4153f2),_0x5f3a7d))[_0x3ec131(0x1f9)](/\.(tsx?|mts|js)$/,'')[_0x3ec131(0x1f9)](/\/index$/,'');_0x1f7533(_0x5428d3,_0x35668c+_0x3ec131(0x282)+_0x4153f2['id']+_0x3ec131(0x229)+_0x4d0b74[_0x3ec131(0x31f)]+'/'+_0x4153f2['id']+(_0x2575f1(_0x464f8f)&&_0x464f8f?'/'+_0x464f8f:''));continue;}/[\\/]\.generated[\\/]surface[^\\/]*$/[_0x3ec131(0x2bb)](_0x5f3a7d[_0x3ec131(0x1f9)](/\.ts$/,''))&&!_0x4d123b&&_0x1f7533(_0x5428d3,_0x35668c+_0x3ec131(0x299)),_0x3398b4(_0x5428d3,_0x35668c,_0x5f3a7d);}}}}return _0x419358;}import{createRequire as _0x54db12}from'node:module';import{join as _0xb5833}from'node:path';import{pathToFileURL as _0x2af298}from'node:url';import{existsSync as _0x3bda07,mkdirSync as _0x4c2350,readdirSync as _0x2355e3,readFileSync as _0x5b228c,rmSync as _0x1bc256,writeFileSync as _0x3b6342}from'node:fs';import{dirname as _0x40894c,join as _0x2cfa43,relative as _0x39db2b,resolve as _0x3afa50}from'node:path';import _0x2fa03b from'typescript-6';var k=_0x4e82de(0x2c7),D='@vyredo/module-kit',Ue={'suffix':'','realms':null},te=(_0x18140e,_0x4f8b26)=>_0x4f8b26[_0x4e82de(0x24e)]?_0x18140e['realms'][_0x4e82de(0x2b9)](_0x56bc84=>_0x56bc84[_0x4e82de(0x246)]===null||_0x4f8b26[_0x4e82de(0x24e)]['includes'](_0x56bc84['realm'])):_0x18140e[_0x4e82de(0x24e)],me=_0x400d0a=>_0x400d0a['realm']?_0x4e82de(0x2cf)+_0x400d0a['realm']+'.ts':_0x4e82de(0x22d),v=(_0x2320c8,_0x3ad4f4,_0x2a050e)=>''+_0x2320c8['id']+(_0x3ad4f4[_0x4e82de(0x240)]??'')+_0x2a050e,ge=_0x4d2c97=>_0x4d2c97[_0x4e82de(0x1fb)]?_0x4d2c97['map'](_0x2e7cfd=>JSON['stringify'](_0x2e7cfd))['join'](_0x4e82de(0x30f)):'never';function Ze(_0x59b52d,_0x1bfcba){const _0xae3d8d=_0x4e82de;let _0x4f3729=v(_0x59b52d,_0x1bfcba,_0xae3d8d(0x1fe)),_0x38e67b=_0x1bfcba[_0xae3d8d(0x2da)][_0xae3d8d(0x2b9)](_0x287d92=>_0x287d92[_0xae3d8d(0x1eb)]==='public')['map'](_0x527223=>_0x527223['name']),_0x288062=_0x1bfcba[_0xae3d8d(0x2da)][_0xae3d8d(0x2b9)](_0x304b55=>_0x304b55[_0xae3d8d(0x1eb)]===_0xae3d8d(0x1fa))[_0xae3d8d(0x1f1)](_0x2e1470=>_0x2e1470[_0xae3d8d(0x247)]),_0x3e4f77=_0xae3d8d(0x216)+_0x1bfcba[_0xae3d8d(0x2e9)][_0xae3d8d(0x1f9)](/\.tsx?$/,''),_0x34af3b=[k,'//\x20'+_0x59b52d['id']+_0xae3d8d(0x2cd)+(_0x1bfcba[_0xae3d8d(0x246)]??_0xae3d8d(0x20a))+'\x20class,\x20as\x20types.\x20It\x20imports\x20the\x20class\x20by\x20value,\x20so\x20import',_0xae3d8d(0x2ef),_0xae3d8d(0x273)+_0x4f3729+_0xae3d8d(0x1ea)+JSON[_0xae3d8d(0x295)](_0x3e4f77)+';','',_0xae3d8d(0x281),_0xae3d8d(0x296)+v(_0x59b52d,_0x1bfcba,'Public')+_0xae3d8d(0x2c3)+_0x4f3729+',\x20'+ge(_0x38e67b)+'>;'];return _0x288062[_0xae3d8d(0x1fb)]===0x0?_0x34af3b[_0xae3d8d(0x26b)]('',_0xae3d8d(0x296)+v(_0x59b52d,_0x1bfcba,_0xae3d8d(0x304))+_0xae3d8d(0x27a)):_0x34af3b[_0xae3d8d(0x26b)]('',_0xae3d8d(0x27b),'export\x20abstract\x20class\x20'+v(_0x59b52d,_0x1bfcba,_0xae3d8d(0x252))+'\x20extends\x20'+_0x4f3729+'\x20{',..._0x288062[_0xae3d8d(0x1f1)](_0x475f1f=>'\x20\x20readonly\x20'+JSON[_0xae3d8d(0x295)](_0xae3d8d(0x2ec)+_0x475f1f)+_0xae3d8d(0x265)+JSON[_0xae3d8d(0x295)](_0x475f1f)+'];'),'}','',_0xae3d8d(0x30c)+_0x59b52d['id']+_0xae3d8d(0x305),_0xae3d8d(0x296)+v(_0x59b52d,_0x1bfcba,_0xae3d8d(0x304))+_0xae3d8d(0x1fc),..._0x288062[_0xae3d8d(0x1f1)](_0x2d4ee2=>'\x20\x20'+JSON['stringify'](_0x2d4ee2)+':\x20'+v(_0x59b52d,_0x1bfcba,_0xae3d8d(0x252))+'['+JSON['stringify'](_0xae3d8d(0x2ec)+_0x2d4ee2)+'];'),'};'),_0x34af3b[_0xae3d8d(0x28a)]('\x0a')+'\x0a';}function Xe(_0x827205,_0x55148b){const _0x3b8fd8=_0x4e82de;let _0x4ae8a1={..._0x827205,'realms':te(_0x827205,_0x55148b)},_0x4ea2aa=_0x4ae8a1['realms'][_0x3b8fd8(0x1f1)](_0x76ec21=>'import\x20type\x20{\x20'+v(_0x4ae8a1,_0x76ec21,'Public')+',\x20'+v(_0x4ae8a1,_0x76ec21,'Protected')+'\x20}\x20from\x20\x22./'+me(_0x76ec21)[_0x3b8fd8(0x1f9)](/\.ts$/,'')+'\x22;'),_0x416f94,_0x34448a;if(_0x4ae8a1[_0x3b8fd8(0x24e)][_0x3b8fd8(0x1fb)]===0x0)_0x416f94='{}',_0x34448a='{}';else{if(_0x4ae8a1[_0x3b8fd8(0x24e)][0x0][_0x3b8fd8(0x240)]===null){let _0x1580e6=_0x4ae8a1[_0x3b8fd8(0x24e)][0x0];_0x416f94=v(_0x4ae8a1,_0x1580e6,_0x3b8fd8(0x227)),_0x34448a=v(_0x4ae8a1,_0x1580e6,_0x3b8fd8(0x227))+_0x3b8fd8(0x23f)+v(_0x4ae8a1,_0x1580e6,_0x3b8fd8(0x304));}else _0x416f94='{\x0a'+_0x4ae8a1[_0x3b8fd8(0x24e)][_0x3b8fd8(0x1f1)](_0x9ce9c6=>'\x20\x20'+_0x9ce9c6[_0x3b8fd8(0x240)]+':\x20'+v(_0x4ae8a1,_0x9ce9c6,_0x3b8fd8(0x227))+';')['join']('\x0a')+'\x0a}',_0x34448a='{\x0a'+_0x4ae8a1[_0x3b8fd8(0x24e)][_0x3b8fd8(0x1f1)](_0x224eba=>'\x20\x20'+_0x224eba[_0x3b8fd8(0x240)]+':\x20'+v(_0x4ae8a1,_0x224eba,_0x3b8fd8(0x227))+'\x20&\x20'+v(_0x4ae8a1,_0x224eba,_0x3b8fd8(0x304))+';')[_0x3b8fd8(0x28a)]('\x0a')+'\x0a}';}return[k,..._0x4ea2aa,'',_0x3b8fd8(0x2a5)+_0x4ae8a1['id']+'\x20as\x20other\x20modules\x20see\x20it:\x20its\x20public\x20members'+(_0x4ae8a1['realms'][0x0]?.['key']?_0x3b8fd8(0x2f9):'')+_0x3b8fd8(0x29a),_0x3b8fd8(0x296)+_0x4ae8a1['id']+'Api\x20=\x20'+_0x416f94+';','','/**\x20'+_0x4ae8a1['id']+_0x3b8fd8(0x201),'export\x20type\x20'+_0x4ae8a1['id']+_0x3b8fd8(0x2f2)+_0x34448a+';',''][_0x3b8fd8(0x28a)]('\x0a');}function Ye(_0xc58d11,_0x5e3be1,_0x4c5502){const _0x3e4783=_0x4e82de;return te(_0xc58d11,_0x4c5502)[_0x3e4783(0x2d8)](_0x8f7a1b=>_0x8f7a1b['members']['filter'](_0x47468e=>_0x5e3be1(_0x47468e[_0x3e4783(0x1eb)]))[_0x3e4783(0x1f1)](_0x429c1e=>[_0x8f7a1b[_0x3e4783(0x240)]?_0x8f7a1b[_0x3e4783(0x240)]+'.'+_0x429c1e[_0x3e4783(0x247)]:_0x429c1e[_0x3e4783(0x247)],_0x429c1e[_0x3e4783(0x22c)]]));}function pe(_0x23ef6f,_0x50919b,_0xce47c3,_0x26fed2,_0x231092){const _0x413511=_0x4e82de;let _0x2da226=_0xce47c3['rpc'][_0x413511(0x319)],_0x215800=_0x2da226['from']['startsWith']('.')?X(_0x50919b,_0x3afa50(_0xce47c3[_0x413511(0x205)],_0x2da226[_0x413511(0x283)])):_0x2da226[_0x413511(0x283)],_0x2cae4a=Ye(_0x23ef6f,_0x383f44=>_0x26fed2===_0x413511(0x1fa)||_0x383f44===_0x413511(0x31d),_0x231092),_0x567db6=te(_0x23ef6f,_0x231092)[_0x413511(0x2d8)](_0x4aebd4=>_0x4aebd4[_0x413511(0x2da)][_0x413511(0x2b9)](_0x866392=>_0x866392[_0x413511(0x31c)]!==void 0x0&&(_0x26fed2==='protected'||_0x866392[_0x413511(0x1eb)]===_0x413511(0x31d)))[_0x413511(0x1f1)](_0x3e67e7=>[_0x4aebd4[_0x413511(0x240)]?_0x4aebd4[_0x413511(0x240)]+'.'+_0x3e67e7[_0x413511(0x247)]:_0x3e67e7[_0x413511(0x247)],_0x3e67e7[_0x413511(0x31c)]])),_0x1112b2=_0x26fed2===_0x413511(0x31d)?_0x23ef6f['id']:_0x23ef6f['id']+_0x413511(0x304),_0x49c765=_0x26fed2===_0x413511(0x31d)?_0x23ef6f['id']+_0x413511(0x269):_0x23ef6f['id']+_0x413511(0x327);return[k,_0x413511(0x2d6)+(_0x26fed2===_0x413511(0x31d)?_0x23ef6f['id']+_0x413511(0x271)+_0x23ef6f['id']+_0x413511(0x25a):_0x23ef6f['id']+'\x27s\x20client\x20to\x20itself:\x20its\x20public\x20and\x20protected\x20members.'),'import\x20{\x20makeRemoteWith\x20}\x20from\x20\x22@vyredo/rpc-bus\x22;','import\x20{\x20'+_0x2da226['name']+'\x20}\x20from\x20'+JSON[_0x413511(0x295)](_0x215800)+';',_0x413511(0x22a)+_0x49c765+_0x413511(0x31a)+_0x231092['suffix']+'\x22;','',_0x413511(0x24f)+_0x2da226[_0x413511(0x247)]+_0x413511(0x2b5),'',_0x413511(0x215)+_0x1112b2+_0x413511(0x2c2)+_0x49c765+',\x20'+ge(_0x2cae4a['map'](([_0x340e3f])=>_0x340e3f))+'>('+JSON[_0x413511(0x295)](_0x23ef6f['id'])+_0x413511(0x29f),..._0x2cae4a[_0x413511(0x1f1)](([_0xfc552f,_0x424f76])=>'\x20\x20'+JSON[_0x413511(0x295)](_0xfc552f)+':\x20'+JSON[_0x413511(0x295)](_0x424f76)+','),..._0x567db6[_0x413511(0x1fb)]>0x0?[_0x413511(0x2c0),..._0x567db6[_0x413511(0x1f1)](([_0x1604a0,_0x1af2f1])=>'\x20\x20'+JSON[_0x413511(0x295)](_0x1604a0)+':\x20'+_0x1af2f1+',')]:[],_0x413511(0x203),'']['join']('\x0a');}function Qe(_0x230683,_0x171057,_0x547ca2){const _0x5cfddb=_0x4e82de;return[k,_0x5cfddb(0x26e)+_0x171057[_0x5cfddb(0x31f)]+'/'+_0x230683['id']+'`\x20resolves\x20to'+(_0x547ca2[_0x5cfddb(0x24e)]?'\x20for\x20a\x20consumer\x20that\x20sees\x20'+_0x547ca2[_0x5cfddb(0x24e)]['join'](',\x20'):'')+'.','export\x20type\x20{\x20'+_0x230683['id']+_0x5cfddb(0x1ec)+_0x547ca2[_0x5cfddb(0x2a8)]+'\x22;',..._0x171057[_0x5cfddb(0x233)]?[_0x5cfddb(0x32b)+_0x230683['id']+'\x20}\x20from\x20\x22./client'+_0x547ca2[_0x5cfddb(0x2a8)]+'\x22;']:[],''][_0x5cfddb(0x28a)]('\x0a');}function et(_0x4dc63b,_0x498bf6,_0x316a3a){const _0x5632cb=_0x4e82de;return[k,'//\x20What\x20`'+_0x498bf6[_0x5632cb(0x31f)]+'/'+_0x4dc63b['id']+_0x5632cb(0x24c)+_0x4dc63b['id']+_0x5632cb(0x278),_0x5632cb(0x244)+_0x4dc63b['id']+'ProtectedApi\x20}\x20from\x20\x22./api'+_0x316a3a[_0x5632cb(0x2a8)]+'\x22;',..._0x498bf6[_0x5632cb(0x233)]?['export\x20{\x20'+_0x4dc63b['id']+_0x5632cb(0x249)+_0x316a3a[_0x5632cb(0x2a8)]+'\x22;']:[],''][_0x5632cb(0x28a)]('\x0a');}function J(_0x4a0699,_0x703b56,_0x4bf283,_0x1b8602=_0x3bda07,_0x1cf7c5){const _0x7cea60=_0x4e82de;let _0x2c674f=_0x1cf7c5?'.'+_0x1cf7c5:'',_0x172b4b=new Map(),_0x3b1741=_0x703b56['rpc']?.[_0x7cea60(0x319)],_0x43efb2=_0x3b1741?.[_0x7cea60(0x2ff)]?.[_0x4bf283?'default':_0x1cf7c5??'default'];_0x3b1741&&_0x43efb2&&_0x172b4b['set'](_0x3b1741[_0x7cea60(0x283)],[_0x3afa50(_0x703b56[_0x7cea60(0x205)],_0x43efb2)]);let _0x245c8d=_0x4bf283?new Set([_0x4bf283['id'],..._0x4bf283[_0x7cea60(0x28b)],..._0x4bf283['optional'],..._0x4a0699['modules'][_0x7cea60(0x2b9)](_0x55bf71=>_0x55bf71[_0x7cea60(0x1e8)])[_0x7cea60(0x1f1)](_0x504543=>_0x504543['id'])]):null;for(let _0x2344f0 of _0x4a0699[_0x7cea60(0x316)]){if(_0x245c8d&&!_0x245c8d[_0x7cea60(0x2c6)](_0x2344f0['id']))continue;let _0x2af98a=_0x2cfa43(_0x703b56[_0x7cea60(0x1f5)],_0x2344f0['path']);_0x172b4b['set'](_0x703b56[_0x7cea60(0x31f)]+'/'+_0x2344f0['id'],[_0x2cfa43(_0x2af98a,_0x7cea60(0x301)+_0x2c674f+_0x7cea60(0x26f))]);for(let [_0x4ffee9,_0x37efd5]of Object[_0x7cea60(0x222)](_0x703b56[_0x7cea60(0x1f0)]))_0x1b8602(_0x2cfa43(_0x2af98a,_0x37efd5))&&_0x172b4b[_0x7cea60(0x2aa)](_0x703b56[_0x7cea60(0x31f)]+'/'+_0x2344f0['id']+'/'+_0x4ffee9,[_0x2cfa43(_0x2af98a,_0x37efd5)]);if((!_0x4bf283||_0x4bf283['id']===_0x2344f0['id'])&&_0x172b4b[_0x7cea60(0x2aa)](_0x703b56['alias']+'/'+_0x2344f0['id']+'/protected',[_0x2cfa43(_0x2af98a,_0x7cea60(0x32c)+_0x2c674f+_0x7cea60(0x26f))]),_0x4bf283&&_0x4bf283['id']!==_0x2344f0['id']){for(let _0x56dd23 of _0x703b56[_0x7cea60(0x285)])_0x56dd23[_0x7cea60(0x2c4)]('/**')?_0x172b4b['set'](_0x703b56[_0x7cea60(0x31f)]+'/'+_0x2344f0['id']+'/'+_0x56dd23['slice'](0x0,-0x3)+'/*',[_0x2cfa43(_0x2af98a,_0x56dd23['slice'](0x0,-0x3),'*')]):_0x56dd23[_0x7cea60(0x303)]('*')||_0x172b4b['set'](_0x703b56[_0x7cea60(0x31f)]+'/'+_0x2344f0['id']+'/'+_0x56dd23[_0x7cea60(0x1f9)](/\.tsx?$/,''),[_0x2cfa43(_0x2af98a,_0x56dd23)]);}else _0x172b4b['set'](_0x703b56[_0x7cea60(0x31f)]+'/'+_0x2344f0['id']+'/*',[_0x2cfa43(_0x2af98a,'*')]);}return _0x172b4b;}var se=(_0x153da3,_0x4670f5)=>_0x4670f5===_0x153da3['alias']||_0x4670f5[_0x4e82de(0x310)](_0x153da3[_0x4e82de(0x31f)]+'/')||_0x153da3[_0x4e82de(0x233)]?.[_0x4e82de(0x319)][_0x4e82de(0x2ff)]!==void 0x0&&_0x4670f5===_0x153da3[_0x4e82de(0x233)]['bus'][_0x4e82de(0x283)];function tt(_0x4ef260,_0x6a5391,_0x1f9455){const _0x45cad7=_0x4e82de;let _0x3db5e3=_0x2fa03b[_0x45cad7(0x2b3)](_0x6a5391,_0x2fa03b['sys'][_0x45cad7(0x289)]),_0x4b9789=_0x3db5e3['config']?.[_0x45cad7(0x223)]?.[_0x45cad7(0x243)]??{},_0x3bff3d=_0x3db5e3[_0x45cad7(0x29e)]?.[_0x45cad7(0x223)]?.[_0x45cad7(0x267)],_0x1cfb75=_0x3afa50(_0x40894c(_0x6a5391),_0x3bff3d??'.'),_0x4a1887={};for(let [_0x502290,_0x43683c]of Object['entries'](_0x4b9789))se(_0x4ef260,_0x502290)||(_0x4a1887[_0x502290]=_0x43683c[_0x45cad7(0x1f1)](_0x57936b=>_(_0x1f9455,_0x3afa50(_0x1cfb75,_0x57936b))));return _0x4a1887;}function st(_0x4de2f8,_0x3ffc7b){const _0x361fc9=_0x4e82de;if(!_0x4de2f8[_0x361fc9(0x21e)])return{};let _0x419e41=_0x2fa03b['readConfigFile'](_0x4de2f8[_0x361fc9(0x21e)],_0x2fa03b[_0x361fc9(0x2b2)][_0x361fc9(0x289)]),_0x432ee5=_0x419e41[_0x361fc9(0x29e)]?.['compilerOptions']?.[_0x361fc9(0x243)]??{},_0x5df706=_0x419e41[_0x361fc9(0x29e)]?.['compilerOptions']?.[_0x361fc9(0x267)],_0x21abd5=_0x3afa50(_0x40894c(_0x4de2f8[_0x361fc9(0x21e)]),_0x5df706??'.'),_0x263a93={};for(let [_0x1f1eac,_0x42fcac]of Object[_0x361fc9(0x222)](_0x432ee5))se(_0x4de2f8,_0x1f1eac)||(_0x263a93[_0x1f1eac]=_0x42fcac['map'](_0x5a29b3=>_(_0x3ffc7b,_0x3afa50(_0x21abd5,_0x5a29b3))));return _0x263a93;}var _=(_0x5e02af,_0x2e4143)=>{const _0x5a76a3=_0x4e82de;let _0x545e35=$(_0x39db2b(_0x5e02af,_0x2e4143));return _0x545e35[_0x5a76a3(0x310)]('./')||_0x545e35[_0x5a76a3(0x310)](_0x5a76a3(0x216))?_0x545e35:'./'+_0x545e35;};function ee(_0x3034b7,_0x4db8f9){const _0x3aa658=_0x4e82de;return Object['fromEntries']([..._0x4db8f9][_0x3aa658(0x2cb)](([_0x3f5233],[_0x2cdc9c])=>_0x3f5233['localeCompare'](_0x2cdc9c))[_0x3aa658(0x1f1)](([_0x55a049,_0x2aec0f])=>[_0x55a049,_0x2aec0f[_0x3aa658(0x1f1)](_0x5a7d8d=>_(_0x3034b7,_0x5a7d8d))]));}function it(_0x3e7cca,_0x2da8ba,_0x9973bd,_0x41f1ee){const _0x5fc284=_0x4e82de;let _0x561ee3=_0x2cfa43(_0x2da8ba[_0x5fc284(0x1f5)],_0x9973bd['path']),_0x30cb3d={'$comment':D+':\x20'+_0x9973bd['id']+_0x5fc284(0x25d),..._0x2da8ba[_0x5fc284(0x21e)]?{'extends':_(_0x561ee3,_0x2da8ba[_0x5fc284(0x21e)])}:{},'compilerOptions':{..._0x2da8ba[_0x5fc284(0x30d)][_0x5fc284(0x223)],'paths':{...st(_0x2da8ba,_0x561ee3),...ee(_0x561ee3,J(_0x3e7cca,_0x2da8ba,_0x9973bd,_0x41f1ee))}},'include':['./**/*'],..._0x2da8ba['tsconfig']['exclude'][_0x5fc284(0x1fb)]>0x0?{'exclude':[..._0x2da8ba['tsconfig'][_0x5fc284(0x219)]]}:{}};return JSON[_0x5fc284(0x295)](_0x30cb3d,null,0x2)+'\x0a';}function nt(_0x25011e,_0x5b8d09,_0x283e13){const _0x446139=_0x4e82de;let _0x12e175=_0x2cfa43(_0x5b8d09['root'],_0x446139(0x262)),_0x2fd13a=_0x25011e[_0x446139(0x316)][_0x446139(0x1f1)](_0x546030=>({'m':_0x546030,'r':_0x546030[_0x446139(0x24e)]['find'](_0x5b8116=>_0x5b8116[_0x446139(0x246)]===_0x283e13)}))['filter'](_0x11c998=>_0x11c998['r']!==void 0x0);return[k,_0x446139(0x2bd)+(_0x283e13?_0x283e13+'\x20':'')+'module\x20class\x20in\x20start\x20order,\x20with\x20its\x20manifest\x20facts:\x20what\x20the\x20runtime\x20host\x20starts.',_0x446139(0x214),..._0x2fd13a[_0x446139(0x1f1)](({m:_0x3001ff,r:_0x85d0d4},_0x3231c7)=>_0x446139(0x2be)+_0x3231c7+_0x446139(0x1ea)+JSON[_0x446139(0x295)](X(_0x12e175,_0x2cfa43(_0x5b8d09[_0x446139(0x1f5)],_0x3001ff['path'],_0x85d0d4[_0x446139(0x2e9)])))+';'),'','export\x20const\x20modules:\x20RegistryEntry[]\x20=\x20[',..._0x2fd13a[_0x446139(0x1f1)](({m:_0x274da8,r:_0x27a1a9},_0xfcbb97)=>'\x20\x20'+JSON[_0x446139(0x295)]({'id':_0x274da8['id'],'version':_0x274da8[_0x446139(0x2e6)],'core':_0x274da8[_0x446139(0x1e8)],'requires':_0x274da8[_0x446139(0x28b)],'optional':_0x274da8[_0x446139(0x25c)],'startOrder':_0x274da8[_0x446139(0x21f)],'realm':_0x27a1a9[_0x446139(0x240)],'members':_0x27a1a9[_0x446139(0x2da)],'hooks':_0x27a1a9['hooks'],'extra':_0x274da8[_0x446139(0x2fb)]})['replace'](/}$/,_0x446139(0x20f)+_0xfcbb97+'\x20}')+','),'];','',_0x446139(0x224),''][_0x446139(0x28a)]('\x0a');}function he(_0x24fbda,_0xe416cf,_0x5c4e55=[]){const _0x420614=_0x4e82de;let _0x42a26a=new Map(),_0x1153db={'graph':_0x24fbda,'config':_0xe416cf,'header':k,'dirOf':_0x13e68c=>_0x2cfa43(_0xe416cf[_0x420614(0x1f5)],_0x13e68c['path'])};for(let _0x483ccb of _0x5c4e55){let _0x2353de=_0x483ccb[_0x420614(0x28d)](_0x1153db);for(let [_0x449cd1,_0x26d724]of _0x2353de instanceof Map?_0x2353de:Object['entries'](_0x2353de)){let _0x1740fc=_0x3afa50(_0x449cd1);if(_0x42a26a['has'](_0x1740fc))throw new Error('module-kit:\x20plugin\x20\x22'+_0x483ccb['name']+_0x420614(0x20e)+_0x1740fc+',\x20which\x20another\x20plugin\x20writes\x20too');_0x42a26a[_0x420614(0x2aa)](_0x1740fc,_0x26d724);}}let _0x5c4eee=_0xa4c8b5=>_0x42a26a[_0x420614(0x2c6)](_0xa4c8b5)||_0x3bda07(_0xa4c8b5),_0x2a25a4=(_0x12e431,_0x364c1f)=>{const _0x35b20f=_0x420614;if(_0x42a26a['has'](_0x12e431))throw new Error(_0x35b20f(0x1ef)+_0x12e431+_0x35b20f(0x2d0));_0x42a26a[_0x35b20f(0x2aa)](_0x12e431,_0x364c1f);},_0x550f59=[Ue,...Object[_0x420614(0x222)](_0xe416cf[_0x420614(0x27c)])['map'](([_0x33b25e,_0x575bca])=>({'suffix':'.'+_0x33b25e,'realms':_0x575bca}))];for(let _0x13822c of _0x24fbda[_0x420614(0x316)]){let _0xb5d170=_0x2cfa43(_0xe416cf[_0x420614(0x1f5)],_0x13822c[_0x420614(0x207)]),_0x126e7b=_0x2cfa43(_0xb5d170,_0x420614(0x262));for(let _0x553fa6 of _0x13822c['realms'])_0x2a25a4(_0x2cfa43(_0x126e7b,me(_0x553fa6)),Ze(_0x13822c,_0x553fa6));for(let _0x408357 of _0x550f59){let _0x2962d6=_0x408357[_0x420614(0x2a8)];_0x2a25a4(_0x2cfa43(_0x126e7b,'api'+_0x2962d6+'.ts'),Xe(_0x13822c,_0x408357)),_0x2a25a4(_0x2cfa43(_0x126e7b,_0x420614(0x2a1)+_0x2962d6+_0x420614(0x26f)),Qe(_0x13822c,_0xe416cf,_0x408357)),_0x2a25a4(_0x2cfa43(_0x126e7b,'protected'+_0x2962d6+_0x420614(0x26f)),et(_0x13822c,_0xe416cf,_0x408357)),_0xe416cf['rpc']&&(_0x2a25a4(_0x2cfa43(_0x126e7b,_0x420614(0x1f4)+_0x2962d6+_0x420614(0x26f)),pe(_0x13822c,_0x126e7b,_0xe416cf,'public',_0x408357)),_0x2a25a4(_0x2cfa43(_0x126e7b,_0x420614(0x23b)+_0x2962d6+_0x420614(0x26f)),pe(_0x13822c,_0x126e7b,_0xe416cf,_0x420614(0x1fa),_0x408357)));}_0x2a25a4(_0x2cfa43(_0xb5d170,_0x420614(0x2e3)),it(_0x24fbda,_0xe416cf,_0x13822c,_0x5c4eee));}let _0x5975e8=_0x2cfa43(_0xe416cf['root'],_0x420614(0x262));for(let _0x42fade of _0xe416cf['realms']??[null])_0x2a25a4(_0x2cfa43(_0x5975e8,_0x42fade?_0x420614(0x300)+_0x42fade+_0x420614(0x26f):_0x420614(0x264)),nt(_0x24fbda,_0xe416cf,_0x42fade));for(let _0x1a4229 of[void 0x0,...Object[_0x420614(0x266)](_0xe416cf[_0x420614(0x27c)])]){let _0x206d55=_0x1a4229?'.'+_0x1a4229:'',_0x4304ba=J(_0x24fbda,_0xe416cf,void 0x0,_0x5c4eee,_0x1a4229),_0x1b75f9=Object['fromEntries']([..._0x4304ba][_0x420614(0x2cb)](([_0x1f523b],[_0x3e98d5])=>_0x1f523b[_0x420614(0x211)](_0x3e98d5))[_0x420614(0x1f1)](([_0x192392,_0xa51b68])=>[_0x192392,$(_0x39db2b(_0xe416cf['cwd'],_0xa51b68[0x0]))])),_0x446cb7=_0x1a4229?_0x420614(0x1ee)+_0x1a4229+'\x22\x20view':'';_0x2a25a4(_0x2cfa43(_0x5975e8,'aliases'+_0x206d55+'.json'),JSON['stringify']({'$comment':D+':\x20alias\x20->\x20file'+_0x446cb7+'.\x20DO\x20NOT\x20EDIT.',..._0x1b75f9},null,0x2)+'\x0a'),_0x2a25a4(_0x2cfa43(_0x5975e8,_0x420614(0x330)+_0x206d55+_0x420614(0x280)),JSON[_0x420614(0x295)]({'$comment':D+':\x20extend\x20this\x20from\x20the\x20app\x27s\x20tsconfig'+_0x446cb7+_0x420614(0x32a),'compilerOptions':{'paths':ee(_0x5975e8,_0x4304ba)}},null,0x2)+'\x0a');}for(let _0x16117b of _0xe416cf[_0x420614(0x204)]['filter'](_0x5af07f=>_0x5af07f[_0x420614(0x2eb)]===_0x420614(0x20b))){let _0x21f122=_0x3afa50(_0xe416cf[_0x420614(0x205)],_0x16117b[_0x420614(0x2e9)]),_0x1d64e0=_0x40894c(_0x21f122),_0x1a71c4={...tt(_0xe416cf,_0x3afa50(_0xe416cf[_0x420614(0x205)],_0x16117b['inherit']),_0x1d64e0),...ee(_0x1d64e0,J(_0x24fbda,_0xe416cf,void 0x0,_0x5c4eee,_0x16117b[_0x420614(0x226)]))};_0x2a25a4(_0x21f122,JSON[_0x420614(0x295)]({'$comment':D+':\x20'+$(_0x39db2b(_0xe416cf['cwd'],_0x3afa50(_0xe416cf[_0x420614(0x205)],_0x16117b[_0x420614(0x2ab)])))+_0x420614(0x208)+(_0x16117b[_0x420614(0x226)]?'\x20(the\x20\x22'+_0x16117b[_0x420614(0x226)]+'\x22\x20view)':'')+_0x420614(0x32a),'compilerOptions':{'paths':_0x1a71c4}},null,0x2)+'\x0a');}let _0x4b0f97=_0x2cfa43(_0x5975e8,ye),_0x3c2e1a=[..._0x42a26a[_0x420614(0x266)](),_0x4b0f97][_0x420614(0x1f1)](_0x103ed2=>$(_0x39db2b(_0xe416cf[_0x420614(0x205)],_0x103ed2)))[_0x420614(0x2cb)]();return _0x42a26a[_0x420614(0x2aa)](_0x4b0f97,JSON['stringify']({'$comment':D+_0x420614(0x302),'modules':_0x24fbda['modules'],'files':_0x3c2e1a},null,0x2)+'\x0a'),_0x42a26a;}var ye=_0x4e82de(0x242);function rt(_0x3cf5a2){const _0x1d45c3=_0x4e82de;let _0x306d7a=_0x2cfa43(_0x3cf5a2[_0x1d45c3(0x1f5)],_0x1d45c3(0x262),ye);if(!_0x3bda07(_0x306d7a))return new Set();try{let _0x104fcc=JSON[_0x1d45c3(0x315)](_0x5b228c(_0x306d7a,_0x1d45c3(0x2f3)))[_0x1d45c3(0x28d)]??[];return new Set(_0x104fcc[_0x1d45c3(0x1f1)](_0x54ee5b=>_0x3afa50(_0x3cf5a2[_0x1d45c3(0x205)],_0x54ee5b)));}catch{return new Set();}}function $e(_0x520a83,_0x22a173){const _0x2924ea=_0x4e82de;if(_0x22a173[_0x2924ea(0x2c6)](_0x520a83))return!0x0;if(!_0x3bda07(_0x520a83))return!0x1;let _0x47d268=_0x5b228c(_0x520a83,_0x2924ea(0x2f3))[_0x2924ea(0x2e0)](0x0,0xc8);return _0x47d268[_0x2924ea(0x310)](k)||_0x47d268[_0x2924ea(0x303)]('\x22'+D);}function ot(_0x3ec751,_0x298e63,_0xecb4c5,_0xe6ee25){const _0x121040=_0x4e82de;let _0x460c05=new Set([..._0xe6ee25][_0x121040(0x2b9)](_0x109f4d=>!_0xecb4c5[_0x121040(0x2c6)](_0x109f4d)&&_0x3bda07(_0x109f4d))),_0x1e6275=[_0x2cfa43(_0x298e63[_0x121040(0x1f5)],_0x121040(0x262)),..._0x3ec751[_0x121040(0x316)][_0x121040(0x1f1)](_0x5589dd=>_0x2cfa43(_0x298e63[_0x121040(0x1f5)],_0x5589dd['path'],_0x121040(0x262)))];for(let _0x560ff0 of _0x1e6275)if(_0x3bda07(_0x560ff0))for(let _0x14bb12 of _0x2355e3(_0x560ff0,{'withFileTypes':!0x0})){let _0xd07f6c=_0x2cfa43(_0x560ff0,_0x14bb12[_0x121040(0x247)]);_0x14bb12[_0x121040(0x22e)]()&&!_0xecb4c5['has'](_0xd07f6c)&&$e(_0xd07f6c,new Set())&&_0x460c05[_0x121040(0x2dc)](_0xd07f6c);}return[..._0x460c05][_0x121040(0x2cb)]();}function ie(_0x11818b,_0x560b8c,_0x50135c={}){const _0x43cce8=_0x4e82de;let _0x5de445=he(_0x11818b,_0x560b8c,_0x50135c[_0x43cce8(0x20c)]),_0x3af8b7=rt(_0x560b8c),_0x2d795b=[];for(let [_0x68076a,_0x31dbe1]of _0x5de445)if(!(_0x3bda07(_0x68076a)&&_0x5b228c(_0x68076a,_0x43cce8(0x2f3))===_0x31dbe1)){if(_0x3bda07(_0x68076a)&&!$e(_0x68076a,_0x3af8b7))throw new Error(_0x43cce8(0x293)+$(_0x39db2b(_0x560b8c[_0x43cce8(0x205)],_0x68076a))+_0x43cce8(0x1e5));_0x2d795b['push']($(_0x39db2b(_0x560b8c[_0x43cce8(0x205)],_0x68076a))),_0x50135c[_0x43cce8(0x30b)]||(_0x4c2350(_0x40894c(_0x68076a),{'recursive':!0x0}),_0x3b6342(_0x68076a,_0x31dbe1));}for(let _0x419b86 of _0x560b8c[_0x43cce8(0x204)][_0x43cce8(0x2b9)](_0x7eda07=>_0x7eda07[_0x43cce8(0x2eb)]===_0x43cce8(0x210))){let _0x1122d4=_0x3afa50(_0x560b8c[_0x43cce8(0x205)],_0x419b86[_0x43cce8(0x2e9)]),_0x1befbf=_0x5b228c(_0x1122d4,'utf8'),_0xb36ad=_0x40894c(_0x1122d4),_0x3b197a=xe(_0x1befbf,_0x560b8c,Object[_0x43cce8(0x30e)]([...J(_0x11818b,_0x560b8c,void 0x0,void 0x0,_0x419b86[_0x43cce8(0x226)])][_0x43cce8(0x1f1)](([_0x46961d,_0x4be5bc])=>[_0x46961d,_0x4be5bc[_0x43cce8(0x1f1)](_0x5a427c=>_(_0xb36ad,_0x5a427c))])));_0x3b197a!==_0x1befbf&&(_0x2d795b[_0x43cce8(0x26b)]($(_0x39db2b(_0x560b8c[_0x43cce8(0x205)],_0x1122d4))),_0x50135c[_0x43cce8(0x30b)]||_0x3b6342(_0x1122d4,_0x3b197a));}let _0x594bfb=ot(_0x11818b,_0x560b8c,_0x5de445,_0x3af8b7)[_0x43cce8(0x1f1)](_0x579d89=>(_0x50135c[_0x43cce8(0x30b)]||_0x1bc256(_0x579d89),$(_0x39db2b(_0x560b8c[_0x43cce8(0x205)],_0x579d89))));return{'written':_0x2d795b,'removed':_0x594bfb};}var Q=/^\s*"/;function xe(_0x2539bd,_0x560f3b,_0x4c30b8){const _0x57bd52=_0x4e82de;let _0x12ed44=_0x2539bd[_0x57bd52(0x303)]('\x0d\x0a')?'\x0d\x0a':'\x0a',_0x3e907f=_0x2539bd['split'](/\r?\n/),_0x488183=_0x3e907f[_0x57bd52(0x32d)](_0x5e15cc=>/^\s*"paths"\s*:\s*\{\s*$/[_0x57bd52(0x2bb)](_0x5e15cc));if(_0x488183<0x0)throw new Error('module-kit:\x20a\x20spliced\x20tsconfig\x20needs\x20a\x20`\x22paths\x22:\x20{`\x20line\x20of\x20its\x20own');let _0x1b8e75=-0x1;for(let _0x194f41=_0x488183+0x1;_0x194f41<_0x3e907f[_0x57bd52(0x1fb)];_0x194f41++)if(/^\s*\}/['test'](_0x3e907f[_0x194f41])){_0x1b8e75=_0x194f41;break;}if(_0x1b8e75<0x0)throw new Error(_0x57bd52(0x2df));let _0xa10f68=_0x23696d=>/^\s*"([^"]+)"\s*:/[_0x57bd52(0x268)](_0x23696d)?.[0x1],_0x10412f=_0x3e907f[_0x57bd52(0x2e0)](_0x488183+0x1,_0x1b8e75)[_0x57bd52(0x32f)](_0x11dc08=>Q[_0x57bd52(0x2bb)](_0x11dc08)),_0x21197d=_0x10412f?_0x10412f[_0x57bd52(0x2e0)](0x0,_0x10412f[_0x57bd52(0x248)]('\x22')):'\x20'[_0x57bd52(0x306)](_0x3e907f[_0x488183][_0x57bd52(0x248)](_0x57bd52(0x250))+0x2),_0x2ef2f4=_0x3e907f[_0x57bd52(0x2e0)](_0x488183+0x1,_0x1b8e75)[_0x57bd52(0x2b9)](_0x3c2609=>{let _0x346140=_0xa10f68(_0x3c2609);return _0x346140===void 0x0||!se(_0x560f3b,_0x346140);}),_0x4628ba=[...Object[_0x57bd52(0x266)](_0x4c30b8)['sort']()[_0x57bd52(0x1f1)](_0x5719c3=>''+_0x21197d+JSON['stringify'](_0x5719c3)+':\x20'+JSON[_0x57bd52(0x295)](_0x4c30b8[_0x5719c3])+','),..._0x2ef2f4],_0x14e647=-0x1;for(let _0x3f41cc=0x0;_0x3f41cc<_0x4628ba[_0x57bd52(0x1fb)];_0x3f41cc++)Q[_0x57bd52(0x2bb)](_0x4628ba[_0x3f41cc])&&(_0x14e647=_0x3f41cc);_0x14e647>=0x0&&(_0x4628ba[_0x14e647]=_0x4628ba[_0x14e647][_0x57bd52(0x1f9)](/,\s*$/,''));for(let _0x4fe364=0x0;_0x4fe364<_0x14e647;_0x4fe364++)Q[_0x57bd52(0x2bb)](_0x4628ba[_0x4fe364])&&!/,\s*$/[_0x57bd52(0x2bb)](_0x4628ba[_0x4fe364])&&(_0x4628ba[_0x4fe364]=_0x4628ba[_0x4fe364][_0x57bd52(0x1f9)](/\s*$/,'')+',');return[..._0x3e907f[_0x57bd52(0x2e0)](0x0,_0x488183+0x1),..._0x4628ba,..._0x3e907f[_0x57bd52(0x2e0)](_0x1b8e75)][_0x57bd52(0x28a)](_0x12ed44);}import{existsSync as _0x1d3864}from'node:fs';function _0x2452(_0x438d41,_0x246d4e){_0x438d41=_0x438d41-0x1e4;const _0xf55e40=_0xf55e();let _0x24521c=_0xf55e40[_0x438d41];if(_0x2452['IiaVQh']===undefined){var _0x39755e=function(_0x6c6428){const _0x256449='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ce36b='',_0x3f5a05='';for(let _0x3bd628=0x0,_0x2831c8,_0x5abbd8,_0x3d80c8=0x0;_0x5abbd8=_0x6c6428['charAt'](_0x3d80c8++);~_0x5abbd8&&(_0x2831c8=_0x3bd628%0x4?_0x2831c8*0x40+_0x5abbd8:_0x5abbd8,_0x3bd628++%0x4)?_0x1ce36b+=String['fromCharCode'](0xff&_0x2831c8>>(-0x2*_0x3bd628&0x6)):0x0){_0x5abbd8=_0x256449['indexOf'](_0x5abbd8);}for(let _0x2438c8=0x0,_0x11ded4=_0x1ce36b['length'];_0x2438c8<_0x11ded4;_0x2438c8++){_0x3f5a05+='%'+('00'+_0x1ce36b['charCodeAt'](_0x2438c8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f5a05);};_0x2452['FtQAZr']=_0x39755e,_0x2452['eOkVVT']={},_0x2452['IiaVQh']=!![];}const _0x5e88ec=_0xf55e40[0x0],_0xd21221=_0x438d41+_0x5e88ec,_0x2cc276=_0x2452['eOkVVT'][_0xd21221];return!_0x2cc276?(_0x24521c=_0x2452['FtQAZr'](_0x24521c),_0x2452['eOkVVT'][_0xd21221]=_0x24521c):_0x24521c=_0x2cc276,_0x24521c;}import{join as _0x423273,relative as _0x3dcfbb}from'node:path';function _0xf55e(){const _0x4552da=['CM9VDa','AxnoB1n1yNn0Axr1DgLVBLrLBxbSyxrLtgL0zxjHBa','AxnqCML2yxrLswrLBNrPzMLLCG','j3mGChvIBgLJihbHDgHZicG','CMvWBgfJzq','ChjVDgvJDgvK','BgvUz3rO','id0GEW','C3bSAxq','q2XHC3m','x19MAxH0DxjLC19F','AxnfEhbVCNrfCxvHBhm','igfZigL0ihnLzxmGAxrZzwXMoIbWDwjSAwmGyw5KihbYB3rLy3rLzcbTzw1IzxjZlIaQlW','AxnfEhbVCNrezwnSyxjHDgLVBG','FsK7','DhnJB25MAwDqyxrOCW','y3DK','AwDUB3jL','Cgf0Aa','j3mGCgf0AhmGCgX1CYb0AguGBw9KDwXLigfSAwfZzxm','A2LUza','Bw9KDwXL','D3jPDgu','CgX1z2LUCW','u2nYAxb0vgfYz2v0','iIb3CML0zxmG','lcbdBgfZCZOGtq','C3bSAwnL','Bg9JywXLq29TCgfYzq','AxntDhjPBMDmAxrLCMfS','B25tDgfYDa','Aw1WB3j0ihr5CguGEYbszwDPC3rYEuvUDhj5ih0GzNjVBsaIqhz5CMvKBY9TB2r1BguTA2L0l3j1BNrPBwuIoW','zxHWB3j0ignVBNn0ia','lI4V','ycbTDxn0igjLigfUig9IAMvJDcbSAxrLCMfSig9Mig51BwjLCNm','uhvIBgLJs2v5D29Yza','zxHJBhvKzq','ywXSB3C','AxnmAxrLCMfSvhLWzu5Vzgu','kd86lIOVkt8','u3rHDgLJs2v5D29Yza','DhnJB25MAwDcyxnL','C3rHCNrpCMrLCG','ndjZuu9hueS','vhj1zuTLExDVCMq','zw50CMLLCW','y29TCgLSzxjpChrPB25Z','zxHWB3j0igrLzMf1BhqGBw9KDwXLCZS','ksb3AxrOB3v0igrLy2XHCMLUzYbPDdOGywrKici','DMLLDW','uhvIBgLJ','AhjLzG','j3mGzM9SzgvYoIbPBxbVCNqGAxqGyxmG','Aw1WB3j0ihr5CguGEYa','iIbTDxn0igjLigXVD2vYy2fZzsbSzxr0zxjZigfUzcbKAwDPDhmSihn0yxj0Aw5NihDPDgGGysbSzxr0zxi','zxzLBNq','C3vYzMfJzs50CW','AxngAwXL','Bw9KDwXLlwTPDdOGygfSAwfZycbJyw5UB3qGyMuGzw1WDhK','zwXLBwvUDhm','kd86lY4Qkt8','B3b0Aw9UywXnB2r1BgvZ','CNbJ','yhn0yxrPyYa','nty0D1bUuNzm','DgLTzw91Dhm','yxjYyxK','AxndBgfZC0rLy2XHCMf0Aw9U','BM9Kzv9TB2r1BgvZ','oIbHig1VzhvSzsDZihbYB3rLy3rLzcbJBgLLBNqGAxmGAxrZig93BJSG','y2XPzw50lNbYB3rLy3rLza','B25tDg9W','iIbPCYbHBhjLywr5ihvZzwqGyNKG','Aw5PDgLHBgL6zxi','icyG','A2v5','zxHWB3j0q2XHDxnL','Bw9KDwXLlwTPDc5QC29U','Cgf0Ahm','zxHWB3j0ihr5CguGEYa','nJu4sMT3Bg9X','CMvHBg0','BMfTzq','Aw5KzxHpzG','uhjVDgvJDgvKih0GzNjVBsaIlI9JBgLLBNqUChjVDgvJDgvK','AxnfEhrLCM5HBe1VzhvSzvjLzMvYzw5Jzq','iIbPCYaID3jPDguIigfUzcbUzwvKCYbGAw5OzxjPDga','l3bYB3rLy3rLzgaGCMvZB2X2zxmGDg86ig9UBhKG','AxnjzgvUDgLMAwvY','CMvHBg1Z','y29UC3qGCMvTB3rLid0GBwfRzvjLBw90zvDPDgGOkcKGpt4G','iNbHDgHZiG','iIWGD2HPy2GGyhzPzxDZycbKB2vZig5VDcbKzwzPBMu','u3vYzMfJzq','AxnqCM9Wzxj0EufZC2LNBM1LBNq','lMDLBMvYyxrLzc8QkG','igLZig5VDcb2ywXPzcbku09ooIa','D3jPDhrLBG','ndCWwKThCvDK','l2LUzgv4lNrZ','CMvXDwLYzu1VzhvSzxm','ihrOCM91z2GGAxqU','Bw9KDwXLlwTPDdOGDhnJB25MAwDqyxrOCYaI','B3b0Aw9UywW','j3mGChjVz3jHBs4GvgHLigfSAwfZihjLC29SDMvZig9UBhKGDgHLig1VzhvSzxmGAxqGzgvJBgfYzxmUierpie5pvcbfreLulG','AxnjBxbVCNrfCxvHBhnezwnSyxjHDgLVBG','rgvMyxvSDeTLExDVCMq','mJu4nJfKBvrjte8','igLZigeGBgLMzwn5y2XLigHVB2S6igXLyxzLigL0ihDPDgHVDxqGyhb1yMXPy2a','lMDLBMvYyxrLza','z2v0tw9KAwzPzxjZ','CMvNAxn0CNKUDhm','id0GDgHPC1S','A2v5CW','yMfZzvvYBa','zxHLyW','qxbP','C3rYAw5N','ChvZAa','yxjNDw1LBNrZ','AxnjBxbVCNrezwnSyxjHDgLVBG','lY8Gv2HHDcbG','lNrZ','C2HHCMvK','j3mGy2XPzw50oIbLDMvYEsbTB2r1BguGy2fSBhmG','Dg9vChbLCKnHC2u','Aw1WB3j0ia','Aw5KzxGUDhn4','zgvMyxvSDa','xcqM','AxngDw5JDgLVBKv4ChjLC3nPB24','igL0C2vSzIbTyxKGAw1WB3j0igL0lG','mteZodC0y2rJyvrs','id0GE307','lYOQie5LDMvYigLUC3rHBNrPyxrLzdOGCMuTzxHWB3nLCYb0AguGChjVDgvJDgvKig1LBwjLCNmGC28GDgHLAxiGDhLWzxmGy2fUigjLig5HBwvKlIaQlW','DMLLD3m','zgvSzxrL','C2L6zq','mZqXotfxuwDqteO','lMPZB24','lYOQifDOyxqGzxzLCNKGBw9KDwXLig1HEsbJywXSlIaQlW','ihjLywnOzxmGAw50BYa','zNjVBq','mtmWmfDYv2Dwuq','ChvIBgLJugf0Ahm','Bw9KDwXLlwTPDdOGyhjLywXTC2aGBgLZDhmGysbYzwfSBsb0D2LJzq','AxneAxjLy3rVCNK','rvmYmdiY','CMvHzezPBgu','AM9PBG','CMvXDwLYzxm','Bw9KDwXLu3bLy2LMAwvY','zMLSzxm','Dgv4Da','zgvMAw5LtwfUAwzLC3q','mte0oe9YC2rkEG','Bw9KDwXLlwTPDdOGCMvHBg0GiG','lMPZ','Bw9KDwXLlwTPDdOG','Bw9KDwXLlwTPDc5JB25MAwCUANnVBG','C3rYAw5NAwz5','zxHWB3j0ihr5CguG','AxnbCNjHEq','iIbUyw1LCYb2Awv3ici','oIbPBxbVCNqGysbZDxjMywnLigzPBguGD2L0AcbGAw1WB3j0ihr5CgvGig9UBhK7igL0igXVywrZihrOzsbYzwfSBsbJBgfZCW','lIaQlW','ycbLBNrYAwvZig11C3qGyMuGye5HBwu6idXUDw1Izxi+ya','CMvMDxnL','BwvZC2fNzq','y29UzMLN','lcb7','ic0+ia','Aw5KzxG','BwfUAwzLC3qUDhm','igXPC3rZigeGBw9KDwXLihr3AwnL','zM9YrwfJAenOAwXK','lYOQia','uhjVDgvJDgvKs2v5D29Yza','zgLY','C3vMzML4','AxndywXSrxHWCMvZC2LVBG','C2v0','Aw5OzxjPDa','ignVzguGBwf5ig5VDcbPBxbVCNqGDgHLia','mJC2mZzUCKrMywq','nZKWEMLesvHw','z2v0u3rHCNq','BgLUzq','Axnoyw1LzeLTCg9YDhm','C3LZ','CMvHzenVBMzPz0zPBgu','iIWGD2HPy2GGAxmGBM90igLUigbYzwfSBxnG','kcKPoW','iIbPCYbPBIbIB3rOihjLCxvPCMvnB2r1BgvZigfUzcbVChrPB25HBe1VzhvSzxm7igXPC3qGAxqGAw4GB25L','Dw5RBM93BIbTyw5PzMvZDcbMAwvSzcaI','BwfUAwzLC3rgAwvSzhm','zMLSDgvY','AxnZDwvZ','DgvZDa','y2fSBfvW','lY8GrxzLCNKG','Aw1WB3j0ie0','y2HLy2TfEgnSDwrL','FsWGEW','lYOQ','id0GCMvTB3rLpa','id0GugLJAZW','zw5KC1DPDgG','vfny','AgfZ','lY8Gqxv0BY1Nzw5LCMf0zwqGyNKGqhz5CMvKBY9TB2r1BguTA2L0lIbetYbot1qGrurjvc4','BwfUAwzLC3qGzw50CMLLCYbTDxn0igjLihbSywLUigbRzxK6ihzHBhvLycbWywLYCW','AxnqCM9Wzxj0EurLy2XHCMf0Aw9U','DgLTzw91DhngAwvSza','C29YDa','iIbTDxn0ig5HBwuGysb2ywX1zsaOyw4GAwrLBNrPzMLLCIK','j3mG','z2vUzxjHDgvK','C3vYzMfJzs4','lcb3AgLJAcb0AguGA2L0ihDYAxrLCYbPDhnLBgy','Ag9VA3m','z2v0tgLUzufUzenOyxjHy3rLCK9Mug9ZAxrPB24','zgvWzw5Kzw5JEsbJEwnSztOG','Bw9KDwXLlwTPDdOGzxHWB3j0ici','zxHWCMvZC2LVBG','lY8G','ycbUyw1LCYaI','zMXHDe1HCa','iIbTDxn0igjLig9UzsbWyxrOihnLz21LBNqGB3rOzxiGDgHHBIaIChjVDgvJDgvKiG','BwvTyMvYCW','ihjLywXTicG','ywrK','u2nYAxb0s2LUza','AxnuExbLt25SEq','Bw9KDwXLlwTPDdOGDgHLihrZy29UzMLNj3mGyhbHDgHZycbVyMPLy3qGAxmGBMv2zxiGy2XVC2vK','C2XPy2u','Bw9KDwXLlwTPDdOGysaUDhmGCgX1z2LUig5LzwrZigb0C3HGigLUC3rHBgXLzcbPBIb0AguGChjVAMvJDa','AxntyxrPC2zPzxnfEhbYzxnZAw9U','DhnJB25MAwCUANnVBG','Dhn4l2vZBs9HCgK','Bw9KDwXLigLKici','DMvYC2LVBG','ktOGC2HHCMvKlYbYDw5ZigLUigv2zxj5ihjLywXT','zxzLCNK','zMLSzq','C29Tzq','Bw9Kzq','x19WCM90zwn0zwrF','Bw9KDwXLuMvMzxjLBMnL','y3jLyxrLu291CMnLrMLSzq','lY8GDgHPCYbMAwXLig9UBhKGD2L0AcbGAw1WB3j0ihr5CgvGoIbHihzHBhvLigLTCg9YDcbWDwXSCYb0AguGCMvHBg0NCYbJB2rLigLUlG','AxnqyxjLBNrOzxnPEMvKrxHWCMvZC2LVBG','BwfUAwzLC3q','uhjVDgvJDgvKqxbPid0G','DxrMoa','Aw5KzxGUDhm','AxnbCNjVD0z1BMn0Aw9U','lNrZEa','lM10CW','Axnoyw1Lzev4Cg9YDhm','lcbIEsbYzwfSBq','BMfTzwrcAw5KAw5NCW','zxH0CMe','B2jQzwn0','C3rHDgvTzw50CW','lMDLBMvYyxrLzc8','DgfYz2v0CW','CMvNAxn0CNKU','lMDLBMvYyxrLzc9PBMrLEa','oIb0AguGC2nHBIWGyw5Kigv2zxj5igzPBguGAxqGz2vUzxjHDgvKlIbetYbot1qGrurjvc4','Aw5JBhvKzxm','uhjVDgvJDgvK','igL0C2vSzIbTyxKGy2fSBcWGDgHYB3vNAcbPDhmGChjVDgvJDgvKignSAwvUDc4GkI8','CMvWzwf0','CMvZB2X2zq','AxnfEhbVCNrbC3nPz25Tzw50','Cg9W','z2v0','y2HLy2S','lYOQifDOyxqGB25SEsa','DhnJB25MAwC','zNjVBuvUDhjPzxm','ihWG','C3rHCNrZv2L0Aa','ihvZzxmG','igXPC3rZihrOzsbTB2r1BguGAxrZzwXM','ndG0mZKZDMnYqNjv','AxnbC0v4ChjLC3nPB24','CgfYC2u','Bw9KDwXLCW','yM9VBgvHBG','z3jHCgG','yNvZ','ih0GzNjVBsaIlI9HCgK','oIbUB3qGB25Lig9Mia','DgLTzw91De1Z','ChvIBgLJ','yxjYyxKGB2yGC3rYAw5NCW','ywXPyxm','mc4WlJa','nJHoC2rYrhe','BwfUAwzLC3qUDhmGBxvZDcbGzxHWB3j0igrLzMf1BhrGigfUig9IAMvJDcbSAxrLCMfSicHVChrPB25HBgX5ihrOCM91z2GGzgvMAw5LtwfUAwzLC3qP','AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG','ig11C3qGzgvMyxvSDc1LEhbVCNqGysbWBhvNAw4Gkg9YigeGzNvUy3rPB24GB2yGDgHLignVBMzPzYDZigrPCMvJDg9YEsbYzxr1CM5PBMCGB25Lkq','yxjNDw1LBNq','mtq0mJe2DxbmuNzc','uhjVDgvJDgvKqxbP','ig1HEsbUB3qGAw1WB3j0ia','u3LUDgf4s2LUza','lIbetYbot1qGrurjvc4','zxHWB3j0ihSG','lMDLBMvYyxrLzc9WCM90zwn0zwq','zMLUzeLUzgv4','AxnbCNjHEuXPDgvYywXfEhbYzxnZAw9U','zMLUza','DhnJB25MAwCUCgf0Ahm','ChjVCgvYDgLLCW','igv4Axn0CYbHBMqGD2fZig5VDcbNzw5LCMf0zwq7ig1VDMuGAxqGyxnPzgu','oIb0AgvYzsbPCYbUBYbTB2r1BguGiG','BxvZDcbGzxHWB3j0igrLzMf1BhrGigeGy2XHC3m6ihrOzsbTB2r1BguNCYbTzw1IzxjZigfYzsbPDhmGBwv0Ag9KCYbHBMqGzNvUy3rPB24GChjVCgvYDgLLCW','y29Yzq','zNvUy3rPB24','igzYB20G','DMLZAwjPBgL0Eq','qxbPih0GzNjVBsaIlI9HCgK','C2HHCMvKlYOQ','igzVCIb0AguGiG','Bw9KDwXLlwTPDdOGysbWBhvNAw4GD3jPDgvZia','zxHWB3j0CW','BwfW','iIb0BYbYzxf1AxjLtw9KDwXLCYbVCIbVChrPB25HBe1VzhvSzxm','iIbUyw1LCYbYzwfSBsaI','y2XPzw50'];_0xf55e=function(){return _0x4552da;};return _0xf55e();}import{existsSync as _0x727976,readFileSync as _0x53c6a6}from'node:fs';import{dirname as _0x338850,resolve as _0x4205ed}from'node:path';var ct=_0x4e82de(0x294),we=/^[a-z][a-z0-9]*$/,ut=_0x1bc558=>_0x1bc558;function Se(_0x41a99d,_0x3502e6){const _0x23adfc=_0x4e82de;if(!_0x41a99d[_0x23adfc(0x1f5)])throw new Error('module-kit:\x20`root`\x20is\x20required');let _0x217e47=_0x41a99d[_0x23adfc(0x24e)]&&_0x41a99d[_0x23adfc(0x24e)][_0x23adfc(0x1fb)]>0x0?[..._0x41a99d[_0x23adfc(0x24e)]]:null;for(let _0x210655 of _0x217e47??[])if(!we[_0x23adfc(0x2bb)](_0x210655))throw new Error(_0x23adfc(0x291)+_0x210655+_0x23adfc(0x22b));if(_0x217e47&&new Set(_0x217e47)['size']!==_0x217e47[_0x23adfc(0x1fb)])throw new Error(_0x23adfc(0x286));let _0xb0cc9b=(_0x41a99d[_0x23adfc(0x31f)]??'@modules')['replace'](/\/+$/,'');if(!_0xb0cc9b)throw new Error(_0x23adfc(0x22f));for(let [_0x62fb05,_0x392d9e]of Object['entries'](_0x41a99d[_0x23adfc(0x27c)]??{})){if(!we[_0x23adfc(0x2bb)](_0x62fb05))throw new Error('module-kit:\x20view\x20\x22'+_0x62fb05+'\x22\x20must\x20be\x20lowercase\x20letters\x20and\x20digits,\x20starting\x20with\x20a\x20letter');for(let _0x33a55e of _0x392d9e)if(!_0x217e47?.[_0x23adfc(0x303)](_0x33a55e))throw new Error('module-kit:\x20view\x20\x22'+_0x62fb05+_0x23adfc(0x1f3)+_0x33a55e+_0x23adfc(0x2b4));}for(let _0xe33327 of _0x41a99d[_0x23adfc(0x204)]??[]){if(_0xe33327[_0x23adfc(0x226)]&&!(_0x41a99d[_0x23adfc(0x27c)]??{})[_0xe33327[_0x23adfc(0x226)]])throw new Error(_0x23adfc(0x25b)+_0xe33327[_0x23adfc(0x2e9)]+_0x23adfc(0x298)+_0xe33327[_0x23adfc(0x226)]+_0x23adfc(0x251));if(_0xe33327[_0x23adfc(0x2eb)]===_0x23adfc(0x20b)&&!_0xe33327[_0x23adfc(0x2ab)])throw new Error(_0x23adfc(0x25b)+_0xe33327[_0x23adfc(0x2e9)]+_0x23adfc(0x24b));}for(let _0x45849f of Object[_0x23adfc(0x266)](_0x41a99d['exports']??{}))if(!/^[A-Za-z0-9_-]+$/[_0x23adfc(0x2bb)](_0x45849f)||_0x45849f===_0x23adfc(0x1fa))throw new Error(_0x23adfc(0x2d4)+_0x45849f+_0x23adfc(0x2d9));return{'cwd':_0x3502e6,'root':_0x4205ed(_0x3502e6,_0x41a99d[_0x23adfc(0x1f5)]),'realms':_0x217e47,'alias':_0xb0cc9b,'publicPaths':_0x41a99d[_0x23adfc(0x285)]?[..._0x41a99d['publicPaths']]:['manifest.ts',_0x23adfc(0x1ed)],'ignore':new Set([_0x23adfc(0x239),_0x23adfc(0x262),_0x23adfc(0x270),_0x23adfc(0x1ff),..._0x217e47??[],..._0x41a99d[_0x23adfc(0x206)]??[]]),'tsconfigBase':_0x41a99d[_0x23adfc(0x21e)]?_0x4205ed(_0x3502e6,_0x41a99d[_0x23adfc(0x21e)]):null,'rpc':_0x41a99d[_0x23adfc(0x233)]??null,'manifestFields':{..._0x41a99d[_0x23adfc(0x2b8)]??{}},'hooks':_0x41a99d[_0x23adfc(0x2d1)]?[..._0x41a99d[_0x23adfc(0x2d1)]]:[_0x23adfc(0x213),_0x23adfc(0x23c)],'timeoutsField':_0x41a99d[_0x23adfc(0x2ca)]??_0x23adfc(0x236),'exports':{..._0x41a99d[_0x23adfc(0x1f0)]??{}},'callUp':_0x41a99d[_0x23adfc(0x2bc)]??_0x23adfc(0x29c),'tsconfigPaths':[..._0x41a99d['tsconfigPaths']??[]],'plugins':(_0x41a99d['plugins']??[])[_0x23adfc(0x1f1)](_0x562753=>_0x4205ed(_0x3502e6,_0x562753)),'views':Object['fromEntries'](Object[_0x23adfc(0x222)](_0x41a99d['views']??{})[_0x23adfc(0x1f1)](([_0x2cc044,_0x2cbb01])=>[_0x2cc044,[..._0x2cbb01]])),'checkExclude':[..._0x41a99d[_0x23adfc(0x2bf)]??[]],'tsconfig':{'compilerOptions':{..._0x41a99d[_0x23adfc(0x30d)]?.[_0x23adfc(0x223)]??{}},'exclude':[..._0x41a99d[_0x23adfc(0x30d)]?.[_0x23adfc(0x219)]??[]]}};}function ft(_0x4f5765){const _0x4bfc30=_0x4e82de;let _0x441626=_0x4205ed(_0x4f5765);if(!_0x727976(_0x441626))throw new Error('module-kit:\x20no\x20config\x20at\x20'+_0x441626);let _0x70d576;try{_0x70d576=JSON['parse'](_0x53c6a6(_0x441626,_0x4bfc30(0x2f3)));}catch(_0x4cf8a7){throw new Error(_0x4bfc30(0x293)+_0x441626+_0x4bfc30(0x255)+_0x4cf8a7['message']);}return Se(_0x70d576,_0x338850(_0x441626));}var be=_0x372ddc=>_0x372ddc[0x0][_0x4e82de(0x272)]()+_0x372ddc[_0x4e82de(0x2e0)](0x1);import{existsSync as _0x3b4255,readdirSync as _0x9c2051,readFileSync as _0x3dbf79}from'node:fs';import{join as _0x4c958a,relative as _0x20aed1}from'node:path';import _0x503e18 from'typescript-6';function ve(_0x225d0a){const _0x59e370=_0x4e82de;return _0x9c2051(_0x225d0a,{'withFileTypes':!0x0})[_0x59e370(0x2b9)](_0x23a062=>_0x23a062[_0x59e370(0x287)]())[_0x59e370(0x1f1)](_0x38602d=>_0x38602d[_0x59e370(0x247)])[_0x59e370(0x2cb)]();}function gt(_0x3e877e){const _0x4d9efa=_0x4e82de;let _0x2b4b43=[],_0x5da3aa=_0x115060=>{const _0x389ccb=_0x2452;if(_0x3b4255(_0x4c958a(_0x115060,_0x389ccb(0x2a2)))){_0x2b4b43[_0x389ccb(0x26b)](_0x115060);return;}for(let _0x4a757d of ve(_0x115060))!_0x3e877e[_0x389ccb(0x206)][_0x389ccb(0x2c6)](_0x4a757d)&&!_0x4a757d[_0x389ccb(0x310)]('.')&&_0x5da3aa(_0x4c958a(_0x115060,_0x4a757d));};for(let _0x2467c7 of ve(_0x3e877e[_0x4d9efa(0x1f5)]))!_0x3e877e[_0x4d9efa(0x206)][_0x4d9efa(0x2c6)](_0x2467c7)&&!_0x2467c7['startsWith']('.')&&_0x5da3aa(_0x4c958a(_0x3e877e[_0x4d9efa(0x1f5)],_0x2467c7));return _0x2b4b43;}function re(_0x33a8b9){const _0xb42f9c=_0x4e82de;for(;;)if(_0x503e18[_0xb42f9c(0x2e2)](_0x33a8b9)||_0x503e18[_0xb42f9c(0x314)](_0x33a8b9)||_0x503e18[_0xb42f9c(0x2f0)](_0x33a8b9))_0x33a8b9=_0x33a8b9[_0xb42f9c(0x2d5)];else{if(_0x503e18['isCallExpression'](_0x33a8b9)&&_0x33a8b9[_0xb42f9c(0x26c)][_0xb42f9c(0x1fb)]===0x1&&_0x503e18[_0xb42f9c(0x24d)](_0x33a8b9[_0xb42f9c(0x2d5)])&&_0x33a8b9[_0xb42f9c(0x2d5)][_0xb42f9c(0x28e)]===_0xb42f9c(0x28f))_0x33a8b9=_0x33a8b9[_0xb42f9c(0x26c)][0x0];else return _0x33a8b9;}}function ht(_0x52065f){const _0x26f972=_0x4e82de;let _0x241852=re(_0x52065f);if(_0x503e18[_0x26f972(0x212)](_0x241852)||_0x503e18[_0x26f972(0x1f6)](_0x241852))return _0x241852[_0x26f972(0x28e)];if(_0x241852[_0x26f972(0x209)]===_0x503e18[_0x26f972(0x329)][_0x26f972(0x221)])return!0x0;if(_0x241852[_0x26f972(0x209)]===_0x503e18[_0x26f972(0x329)]['FalseKeyword'])return!0x1;if(_0x503e18[_0x26f972(0x32e)](_0x241852)){let _0x107e8c=[];for(let _0x4336d8 of _0x241852['elements']){if(!_0x503e18['isStringLiteral'](_0x4336d8)&&!_0x503e18[_0x26f972(0x1f6)](_0x4336d8))return;_0x107e8c[_0x26f972(0x26b)](_0x4336d8[_0x26f972(0x28e)]);}return _0x107e8c;}}var yt={'id':_0x4e82de(0x26a),'version':_0x4e82de(0x26a),'requireModules':_0x4e82de(0x237),'optionalModules':_0x4e82de(0x237),'core':_0x4e82de(0x317)};function $t(_0x3d01a1,_0x32542e,_0x5d9310={}){const _0x268cf4=_0x4e82de;let _0x21cf6a=_0x503e18[_0x268cf4(0x2ee)](_0x3d01a1,_0x3dbf79(_0x3d01a1,_0x268cf4(0x2f3)),_0x503e18[_0x268cf4(0x20d)][_0x268cf4(0x288)],!0x0),_0x326a87=[],_0x23f15e={},_0x40bb21=_0x2c9313=>_0x21cf6a[_0x268cf4(0x2d2)](_0x2c9313[_0x268cf4(0x2af)](_0x21cf6a))[_0x268cf4(0x2b0)]+0x1,_0x1c6947=(_0x5f8d35,_0x116e8e)=>_0x326a87[_0x268cf4(0x26b)]({'file':_0x32542e,'line':_0x40bb21(_0x5f8d35),'message':_0x116e8e}),_0x4a4f9f=_0x21cf6a['statements'][_0x268cf4(0x32f)](_0x322a60=>_0x503e18['isExportAssignment'](_0x322a60)&&!_0x322a60[_0x268cf4(0x200)]),_0x378f75=_0x4a4f9f?re(_0x4a4f9f[_0x268cf4(0x2d5)]):void 0x0;if(!_0x378f75||!_0x503e18[_0x268cf4(0x323)](_0x378f75))return _0x1c6947(_0x4a4f9f??_0x21cf6a,_0x268cf4(0x322)),{'manifest':null,'extra':_0x23f15e,'issues':_0x326a87};let _0x54ba5a={};for(let _0xa14da8 of _0x378f75[_0x268cf4(0x1e4)]){if(!_0x503e18[_0x268cf4(0x253)](_0xa14da8)||!(_0x503e18[_0x268cf4(0x24d)](_0xa14da8['name'])||_0x503e18['isStringLiteral'](_0xa14da8[_0x268cf4(0x247)]))){_0x1c6947(_0xa14da8,_0x268cf4(0x2c8));continue;}let _0x3a4afa=_0xa14da8[_0x268cf4(0x247)]['text'],_0x1c69b2=yt[_0x3a4afa],_0x5b0d0b=_0x1c69b2??_0x5d9310[_0x3a4afa];if(!_0x5b0d0b){_0x1c6947(_0xa14da8,_0x268cf4(0x2b7)+_0x3a4afa+'\x22');continue;}if(_0x5b0d0b==='identifier'){let _0x692cab=re(_0xa14da8['initializer']);_0x503e18[_0x268cf4(0x24d)](_0x692cab)?_0x23f15e[_0x3a4afa]={'identifier':_0x692cab[_0x268cf4(0x28e)]}:_0x1c6947(_0xa14da8['initializer'],'manifest\x20field\x20\x22'+_0x3a4afa+_0x268cf4(0x2cc));continue;}let _0x2defb1=ht(_0xa14da8[_0x268cf4(0x23e)]);if(!(_0x2defb1!==void 0x0&&(_0x5b0d0b===_0x268cf4(0x237)?Array[_0x268cf4(0x297)](_0x2defb1):typeof _0x2defb1===_0x5b0d0b))){_0x1c6947(_0xa14da8['initializer'],'manifest\x20field\x20\x22'+_0x3a4afa+'\x22\x20must\x20be\x20a\x20literal\x20'+(_0x5b0d0b===_0x268cf4(0x237)?_0x268cf4(0x31e):_0x5b0d0b));continue;}_0x1c69b2?_0x54ba5a[_0x3a4afa]=_0x2defb1:_0x23f15e[_0x3a4afa]=_0x2defb1;}return typeof _0x54ba5a['id']!=_0x268cf4(0x26a)||_0x54ba5a['id']===''?(_0x1c6947(_0x378f75,'manifest\x20needs\x20an\x20`id`'),{'manifest':null,'extra':_0x23f15e,'issues':_0x326a87}):{'manifest':_0x54ba5a,'extra':_0x23f15e,'issues':_0x326a87};}function Oe(_0x793c51){const _0x4d771a=_0x4e82de;let _0x22efea=[];return _0x3b4255(_0x793c51[_0x4d771a(0x1f5)])?{'found':gt(_0x793c51)[_0x4d771a(0x1f1)](_0x304b69=>{const _0x33211c=_0x4d771a;let _0x36ef2f=$(_0x20aed1(_0x793c51[_0x33211c(0x205)],_0x4c958a(_0x304b69,_0x33211c(0x2a2)))),_0x561c21=$t(_0x4c958a(_0x304b69,_0x33211c(0x2a2)),_0x36ef2f,_0x793c51[_0x33211c(0x2b8)]);return _0x22efea[_0x33211c(0x26b)](..._0x561c21[_0x33211c(0x2ba)]),{'dir':_0x304b69,'path':$(_0x20aed1(_0x793c51[_0x33211c(0x1f5)],_0x304b69)),'manifest':_0x561c21[_0x33211c(0x2f1)],'extra':_0x561c21['extra']};}),'issues':_0x22efea}:{'found':[],'issues':[{'file':$(_0x20aed1(_0x793c51['cwd'],_0x793c51[_0x4d771a(0x1f5)])),'line':0x1,'message':'the\x20module\x20root\x20does\x20not\x20exist'}]};}var xt=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function ke(_0x4ec1d3,_0x44c25c){const _0x4c8a55=_0x4e82de;return _0x4ec1d3[_0x4c8a55(0x2b9)](_0x12a065=>_0x12a065[_0x4c8a55(0x2f1)]!==null)[_0x4c8a55(0x1f1)](_0x451420=>({'id':_0x451420[_0x4c8a55(0x2f1)]['id'],'core':_0x451420[_0x4c8a55(0x2f1)][_0x4c8a55(0x1e8)]===!0x0,'requires':[..._0x451420['manifest']['requireModules']??[]],'optional':[..._0x451420[_0x4c8a55(0x2f1)][_0x4c8a55(0x232)]??[]],'file':_0x44c25c(_0x451420)}));}function Ce(_0x46ec29){const _0x569141=_0x4e82de;let _0x185f08=[],_0x3c93a6=(_0x3e0a4f,_0x5ba34f)=>_0x185f08[_0x569141(0x26b)]({'file':_0x3e0a4f[_0x569141(0x2e9)],'line':0x1,'message':_0x5ba34f}),_0x42a6a5=new Map();for(let _0x4cdb8f of _0x46ec29){let _0x147297=_0x42a6a5[_0x569141(0x30a)](_0x4cdb8f['id']);_0x147297?_0x3c93a6(_0x4cdb8f,_0x569141(0x2e5)+_0x4cdb8f['id']+_0x569141(0x23d)+_0x147297[_0x569141(0x2e9)]):_0x42a6a5['set'](_0x4cdb8f['id'],_0x4cdb8f),xt[_0x569141(0x2bb)](_0x4cdb8f['id'])||_0x3c93a6(_0x4cdb8f,_0x569141(0x2e5)+_0x4cdb8f['id']+'\x22\x20must\x20be\x20an\x20identifier\x20(letters,\x20digits,\x20_\x20or\x20$;\x20not\x20starting\x20with\x20a\x20digit)');}for(let _0x4c47bc of _0x46ec29){for(let [_0xa0df37,_0xe19ee]of[[_0x569141(0x259),_0x4c47bc[_0x569141(0x28b)]],[_0x569141(0x232),_0x4c47bc[_0x569141(0x25c)]]]){new Set(_0xe19ee)[_0x569141(0x27e)]!==_0xe19ee[_0x569141(0x1fb)]&&_0x3c93a6(_0x4c47bc,_0xa0df37+_0x569141(0x2a3));for(let _0x4d8fe3 of _0xe19ee){let _0x17393d=_0x42a6a5['get'](_0x4d8fe3);_0x4d8fe3===_0x4c47bc['id']?_0x3c93a6(_0x4c47bc,_0xa0df37+_0x569141(0x312)):_0x17393d?!_0x4c47bc[_0x569141(0x1e8)]&&_0x17393d['core']?_0x3c93a6(_0x4c47bc,_0xa0df37+'\x20\x22'+_0x4d8fe3+'\x22\x20is\x20a\x20core\x20module;\x20core\x20modules\x20are\x20available\x20to\x20every\x20module,\x20do\x20not\x20list\x20them'):_0x4c47bc[_0x569141(0x1e8)]&&!_0x17393d[_0x569141(0x1e8)]&&_0x3c93a6(_0x4c47bc,'core\x20module\x20\x22'+_0x4c47bc['id']+'\x22\x20may\x20not\x20depend\x20on\x20non-core\x20module\x20\x22'+_0x4d8fe3+'\x22'):_0x3c93a6(_0x4c47bc,_0xa0df37+'\x20\x22'+_0x4d8fe3+'\x22\x20names\x20no\x20existing\x20module');}}for(let _0x1c521d of _0x4c47bc[_0x569141(0x28b)][_0x569141(0x2b9)](_0x63c57f=>_0x4c47bc[_0x569141(0x25c)][_0x569141(0x303)](_0x63c57f)))_0x3c93a6(_0x4c47bc,'\x22'+_0x1c521d+_0x569141(0x2b6));}let _0x54d9cf=wt(new Map(_0x46ec29[_0x569141(0x1f1)](_0x4047c6=>[_0x4047c6['id'],Re(_0x4047c6,_0x42a6a5)])));return _0x54d9cf&&_0x3c93a6(_0x42a6a5[_0x569141(0x30a)](_0x54d9cf[0x0]),_0x569141(0x2d3)+_0x54d9cf[_0x569141(0x28a)](_0x569141(0x2a0))),_0x185f08;}function Re(_0x2637d5,_0x2b6632){const _0xf42d77=_0x4e82de;let _0xf159c6=[..._0x2637d5['requires'],..._0x2637d5[_0xf42d77(0x25c)]][_0xf42d77(0x2b9)](_0xb04472=>_0x2b6632[_0xf42d77(0x2c6)](_0xb04472)&&_0xb04472!==_0x2637d5['id']);return _0x2637d5[_0xf42d77(0x1e8)]?_0xf159c6:[...new Set([...[..._0x2b6632['values']()][_0xf42d77(0x2b9)](_0x183f80=>_0x183f80[_0xf42d77(0x1e8)])[_0xf42d77(0x1f1)](_0x2ec290=>_0x2ec290['id']),..._0xf159c6])];}function wt(_0x45856c){let _0x199571=new Map(),_0x4c1cb9=[],_0x43c7eb=_0x194fec=>{const _0x2e51a4=_0x2452;_0x199571['set'](_0x194fec,0x1),_0x4c1cb9['push'](_0x194fec);for(let _0x599ad9 of _0x45856c['get'](_0x194fec)??[]){if(_0x199571['get'](_0x599ad9)===0x1)return[..._0x4c1cb9[_0x2e51a4(0x2e0)](_0x4c1cb9[_0x2e51a4(0x248)](_0x599ad9)),_0x599ad9];if(!_0x199571[_0x2e51a4(0x2c6)](_0x599ad9)){let _0x5641e0=_0x43c7eb(_0x599ad9);if(_0x5641e0)return _0x5641e0;}}return _0x4c1cb9[_0x2e51a4(0x309)](),_0x199571[_0x2e51a4(0x2aa)](_0x194fec,0x2),null;};for(let _0x3ee6bc of[..._0x45856c['keys']()]['sort']())if(!_0x199571['has'](_0x3ee6bc)){let _0x208af1=_0x43c7eb(_0x3ee6bc);if(_0x208af1)return _0x208af1;}return null;}function Ee(_0x4df722){const _0x2cf058=_0x4e82de;let _0x2f255e=new Map(_0x4df722['map'](_0x28af3a=>[_0x28af3a['id'],_0x28af3a])),_0x597c62=new Map(_0x4df722['map'](_0x5d1b58=>[_0x5d1b58['id'],new Set(Re(_0x5d1b58,_0x2f255e))])),_0x19a52b=[];for(;_0x597c62[_0x2cf058(0x27e)]>0x0;){let _0x5123dc=[..._0x597c62][_0x2cf058(0x2b9)](([,_0x1cc4bb])=>[..._0x1cc4bb][_0x2cf058(0x2e8)](_0x33f78d=>!_0x597c62['has'](_0x33f78d)))[_0x2cf058(0x1f1)](([_0xe8d19e])=>_0xe8d19e)['sort'](),_0x36170c=_0x5123dc[_0x2cf058(0x1fb)]>0x0?_0x5123dc:[..._0x597c62[_0x2cf058(0x266)]()][_0x2cf058(0x2cb)]();for(let _0x8516f0 of _0x36170c)_0x19a52b[_0x2cf058(0x26b)](_0x8516f0),_0x597c62[_0x2cf058(0x27d)](_0x8516f0);}return _0x19a52b;}import{readFileSync as _0x9761ac}from'node:fs';import _0x45d9e7 from'typescript-6';var j=(_0x307738,_0x537114)=>(_0x45d9e7['canHaveModifiers'](_0x307738)?_0x45d9e7[_0x4e82de(0x263)](_0x307738):void 0x0)?.[_0x4e82de(0x2ea)](_0x21bbcb=>_0x21bbcb[_0x4e82de(0x209)]===_0x537114)??!0x1,bt=_0x265ec3=>{const _0xef46e5=_0x4e82de;if(!_0x265ec3)return!0x1;let _0x561774=_0x265ec3;for(;_0x45d9e7[_0xef46e5(0x2f0)](_0x561774)||_0x45d9e7[_0xef46e5(0x314)](_0x561774)||_0x45d9e7[_0xef46e5(0x2e2)](_0x561774);)_0x561774=_0x561774[_0xef46e5(0x2d5)];return _0x45d9e7[_0xef46e5(0x2f5)](_0x561774)||_0x45d9e7[_0xef46e5(0x277)](_0x561774)||_0x45d9e7[_0xef46e5(0x24d)](_0x561774)||_0x45d9e7['isPropertyAccessExpression'](_0x561774)||_0x45d9e7[_0xef46e5(0x2a9)](_0x561774);};function vt(_0x7b9df9){const _0x51d27f=_0x4e82de;for(let _0x41cd2f of _0x7b9df9['statements'])if(_0x45d9e7['isClassDeclaration'](_0x41cd2f)&&j(_0x41cd2f,_0x45d9e7[_0x51d27f(0x329)]['ExportKeyword'])&&j(_0x41cd2f,_0x45d9e7[_0x51d27f(0x329)][_0x51d27f(0x25f)]))return _0x41cd2f;let _0x1d7309=_0x7b9df9[_0x51d27f(0x2fd)]['find'](_0x46ea67=>_0x45d9e7[_0x51d27f(0x308)](_0x46ea67)&&!_0x46ea67[_0x51d27f(0x200)]&&_0x45d9e7[_0x51d27f(0x24d)](_0x46ea67[_0x51d27f(0x2d5)]));if(!_0x1d7309)return;let _0x519e93=_0x1d7309[_0x51d27f(0x2d5)][_0x51d27f(0x28e)];return _0x7b9df9[_0x51d27f(0x2fd)][_0x51d27f(0x32f)](_0x37ce7c=>_0x45d9e7[_0x51d27f(0x238)](_0x37ce7c)&&_0x37ce7c[_0x51d27f(0x247)]?.['text']===_0x519e93);}function Pe(_0x4a04ac,_0x911591,_0x2b5474={'hooks':[_0x4e82de(0x213),_0x4e82de(0x23c)],'timeoutsField':_0x4e82de(0x236)}){const _0x2aadf4=_0x4e82de;let _0x8088d1=_0x45d9e7[_0x2aadf4(0x2ee)](_0x4a04ac,_0x9761ac(_0x4a04ac,_0x2aadf4(0x2f3)),_0x45d9e7[_0x2aadf4(0x20d)][_0x2aadf4(0x288)],!0x0,_0x4a04ac['endsWith'](_0x2aadf4(0x2f6))?_0x45d9e7[_0x2aadf4(0x2dd)][_0x2aadf4(0x2c5)]:_0x45d9e7[_0x2aadf4(0x2dd)]['TS']),_0x5a68b4=[],_0x478b09=_0x381436=>_0x8088d1['getLineAndCharacterOfPosition'](_0x381436[_0x2aadf4(0x2af)](_0x8088d1))[_0x2aadf4(0x2b0)]+0x1,_0x57e483=vt(_0x8088d1);if(!_0x57e483)return{'members':[],'hooks':[],'issues':[{'file':_0x911591,'line':0x1,'message':_0x2aadf4(0x1e7)}]};let _0x1830d9=[],_0x44639=[],_0x81646b=new Map();for(let _0x61a9d2 of _0x57e483[_0x2aadf4(0x2da)]){if(!_0x45d9e7[_0x2aadf4(0x2c9)](_0x61a9d2)||!j(_0x61a9d2,_0x45d9e7[_0x2aadf4(0x329)][_0x2aadf4(0x21d)])||!_0x45d9e7[_0x2aadf4(0x24d)](_0x61a9d2['name'])||_0x61a9d2[_0x2aadf4(0x247)][_0x2aadf4(0x28e)]!==_0x2b5474[_0x2aadf4(0x2ca)])continue;let _0x127241=_0x61a9d2[_0x2aadf4(0x23e)];if(!_0x127241||!_0x45d9e7[_0x2aadf4(0x323)](_0x127241)){_0x5a68b4[_0x2aadf4(0x26b)]({'file':_0x911591,'line':_0x478b09(_0x61a9d2),'message':'`static\x20'+_0x2b5474[_0x2aadf4(0x2ca)]+_0x2aadf4(0x217)});continue;}for(let _0x568d2a of _0x127241['properties'])_0x45d9e7['isPropertyAssignment'](_0x568d2a)&&(_0x45d9e7[_0x2aadf4(0x24d)](_0x568d2a[_0x2aadf4(0x247)])||_0x45d9e7['isStringLiteral'](_0x568d2a[_0x2aadf4(0x247)]))&&_0x45d9e7['isNumericLiteral'](_0x568d2a[_0x2aadf4(0x23e)])?_0x81646b[_0x2aadf4(0x2aa)](_0x568d2a['name'][_0x2aadf4(0x28e)],Number(_0x568d2a[_0x2aadf4(0x23e)][_0x2aadf4(0x28e)]['replace'](/_/g,''))):_0x5a68b4[_0x2aadf4(0x26b)]({'file':_0x911591,'line':_0x478b09(_0x568d2a),'message':_0x2aadf4(0x234)+_0x2b5474[_0x2aadf4(0x2ca)]+_0x2aadf4(0x29b)});}for(let _0x48432c of _0x57e483['members']){if(!(_0x45d9e7[_0x2aadf4(0x2c9)](_0x48432c)||_0x45d9e7['isMethodDeclaration'](_0x48432c))||!_0x48432c[_0x2aadf4(0x247)]||_0x45d9e7[_0x2aadf4(0x1f7)](_0x48432c[_0x2aadf4(0x247)])||j(_0x48432c,_0x45d9e7[_0x2aadf4(0x329)]['StaticKeyword'])||j(_0x48432c,_0x45d9e7[_0x2aadf4(0x329)]['PrivateKeyword'])||!(_0x45d9e7[_0x2aadf4(0x24d)](_0x48432c['name'])||_0x45d9e7[_0x2aadf4(0x212)](_0x48432c['name'])))continue;let _0x3e6e57=_0x48432c[_0x2aadf4(0x247)]['text'];if(_0x2b5474[_0x2aadf4(0x2d1)]['includes'](_0x3e6e57)){j(_0x48432c,_0x45d9e7['SyntaxKind'][_0x2aadf4(0x218)])&&_0x5a68b4[_0x2aadf4(0x26b)]({'file':_0x911591,'line':_0x478b09(_0x48432c),'message':_0x3e6e57+_0x2aadf4(0x261)}),_0x44639[_0x2aadf4(0x26b)](_0x3e6e57);continue;}if(_0x45d9e7[_0x2aadf4(0x2c9)](_0x48432c)&&!bt(_0x48432c['initializer']))continue;let _0x5e597f=_0x81646b[_0x2aadf4(0x30a)](_0x3e6e57);_0x1830d9[_0x2aadf4(0x26b)]({'name':_0x3e6e57,'visibility':j(_0x48432c,_0x45d9e7[_0x2aadf4(0x329)][_0x2aadf4(0x2a6)])?_0x2aadf4(0x1fa):'public',..._0x5e597f!==void 0x0?{'timeoutMs':_0x5e597f}:{}});}for(let _0x31b2ae of _0x81646b[_0x2aadf4(0x266)]())_0x1830d9[_0x2aadf4(0x2ea)](_0x476502=>_0x476502[_0x2aadf4(0x247)]===_0x31b2ae)||_0x5a68b4[_0x2aadf4(0x26b)]({'file':_0x911591,'line':_0x478b09(_0x57e483),'message':_0x2aadf4(0x234)+_0x2b5474[_0x2aadf4(0x2ca)]+_0x2aadf4(0x2d7)+_0x31b2ae+'\x22,\x20which\x20is\x20not\x20an\x20exposed\x20member'});return{'members':_0x1830d9,'hooks':_0x44639,'issues':_0x5a68b4};}function Ot(_0x17f4c8,_0x2abc09){const _0x5337fc=_0x4e82de;return(_0x17f4c8[_0x5337fc(0x24e)]?_0x17f4c8[_0x5337fc(0x24e)][_0x5337fc(0x1f1)](_0x11bbaa=>({'realm':_0x11bbaa,'file':_0x11bbaa+_0x5337fc(0x258)})):[{'realm':null,'file':_0x5337fc(0x2f4)}])[_0x5337fc(0x2b9)](_0x3efe64=>_0x1d3864(_0x423273(_0x2abc09,_0x3efe64['file']))||_0x1d3864(_0x423273(_0x2abc09,_0x3efe64[_0x5337fc(0x2e9)]+'x')))[_0x5337fc(0x1f1)](_0x4e7c97=>({'realm':_0x4e7c97[_0x5337fc(0x246)],'file':_0x1d3864(_0x423273(_0x2abc09,_0x4e7c97['file']))?_0x4e7c97[_0x5337fc(0x2e9)]:_0x4e7c97[_0x5337fc(0x2e9)]+'x'}));}function ae(_0xedc22c){const _0x2ca90e=_0x4e82de;let _0x23e276=_0xe4c6ed=>$(_0x3dcfbb(_0xedc22c[_0x2ca90e(0x205)],_0xe4c6ed)),{found:_0x2ca7a8,issues:_0x9d6414}=Oe(_0xedc22c),_0x476355=ke(_0x2ca7a8,_0x399967=>_0x23e276(_0x423273(_0x399967[_0x2ca90e(0x2a7)],_0x2ca90e(0x2a2))));_0x9d6414['push'](...Ce(_0x476355));let _0x1b6f4a=Ee(_0x476355),_0x341154=[];for(let _0x23a997 of _0x2ca7a8){if(!_0x23a997['manifest'])continue;let _0x18d76c=_0x23a997[_0x2ca90e(0x2f1)]['id'],_0x493b95=Ot(_0xedc22c,_0x23a997['dir'])[_0x2ca90e(0x1f1)](({realm:_0x229626,file:_0xff38d2})=>{const _0x24fd8e=_0x2ca90e;let _0x4abe66=Pe(_0x423273(_0x23a997['dir'],_0xff38d2),_0x23e276(_0x423273(_0x23a997[_0x24fd8e(0x2a7)],_0xff38d2)),{'hooks':_0xedc22c[_0x24fd8e(0x2d1)],'timeoutsField':_0xedc22c[_0x24fd8e(0x2ca)]});_0x9d6414['push'](..._0x4abe66[_0x24fd8e(0x2ba)]);let _0xe50d42=_0x229626?be(_0x229626):null;return{'realm':_0x229626,'key':_0xe50d42,'file':_0xff38d2,'hooks':_0x4abe66[_0x24fd8e(0x2d1)],'members':_0x4abe66[_0x24fd8e(0x2da)][_0x24fd8e(0x1f1)](_0x2b7f4b=>({..._0x2b7f4b,'event':_0xe50d42?_0x18d76c+':'+_0xe50d42+':'+_0x2b7f4b[_0x24fd8e(0x247)]:_0x18d76c+':'+_0x2b7f4b['name']}))};});_0x341154[_0x2ca90e(0x26b)]({'id':_0x18d76c,'version':_0x23a997['manifest'][_0x2ca90e(0x2e6)]??_0x2ca90e(0x320),'core':_0x23a997[_0x2ca90e(0x2f1)][_0x2ca90e(0x1e8)]===!0x0,'path':_0x23a997['path'],'requires':[..._0x23a997[_0x2ca90e(0x2f1)][_0x2ca90e(0x259)]??[]],'optional':[..._0x23a997['manifest']['optionalModules']??[]],'realms':_0x493b95,'extra':_0x23a997['extra'],'startOrder':_0x1b6f4a[_0x2ca90e(0x248)](_0x18d76c)+0x1});}let _0x3a275c=_0x341154[_0x2ca90e(0x2b9)]((_0x3b8e80,_0x1dc76f)=>_0x341154[_0x2ca90e(0x32d)](_0x151eaf=>_0x151eaf['id']===_0x3b8e80['id'])===_0x1dc76f);return _0x3a275c['sort']((_0x4cadde,_0x3bbfe2)=>_0x4cadde['startOrder']-_0x3bbfe2[_0x2ca90e(0x21f)]),{'modules':_0x3a275c,'issues':le(_0x9d6414)};}var le=_0x33c335=>[..._0x33c335][_0x4e82de(0x2cb)]((_0x4bfd0f,_0x5caa25)=>_0x4bfd0f['file'][_0x4e82de(0x211)](_0x5caa25[_0x4e82de(0x2e9)])||_0x4bfd0f[_0x4e82de(0x2b0)]-_0x5caa25[_0x4e82de(0x2b0)]||_0x4bfd0f[_0x4e82de(0x29d)]['localeCompare'](_0x5caa25[_0x4e82de(0x29d)])),kt=_0x460471=>_0x460471;function Rt(_0x2d7010,_0x5e60f3={}){const _0x2a471b=_0x4e82de;let _0x1377ac=ae(_0x2d7010),_0x352e8d=le([..._0x1377ac[_0x2a471b(0x2ba)],...Y(_0x1377ac,_0x2d7010)]),_0x237e6a=_0x5e60f3['generate']!==!0x1&&_0x1377ac[_0x2a471b(0x2ba)][_0x2a471b(0x1fb)]===0x0?ie(_0x1377ac,_0x2d7010,{'check':_0x5e60f3['check'],'plugins':_0x5e60f3[_0x2a471b(0x20c)]}):null;return{'graph':_0x1377ac,'issues':_0x352e8d,'generated':_0x237e6a};}async function Et(_0x496421){const _0x51a241=_0x4e82de;if(_0x496421[_0x51a241(0x20c)][_0x51a241(0x2ea)](_0x4847f7=>/\.[cm]?tsx?$/[_0x51a241(0x2bb)](_0x4847f7))){let _0x3a5439=_0x54db12(_0xb5833(_0x496421[_0x51a241(0x205)],'package.json')),_0x4023f8;try{_0x4023f8=_0x3a5439[_0x51a241(0x307)](_0x51a241(0x2e4));}catch{throw new Error(_0x51a241(0x2e1));}let {register:_0x548102}=await import(_0x2af298(_0x4023f8)['href']);_0x548102();}let _0x208f8f=[];for(let _0x27954c of _0x496421['plugins']){let _0x4795bb=(await import(_0x2af298(_0x27954c)[_0x51a241(0x228)]))[_0x51a241(0x275)];_0x4795bb&&typeof _0x4795bb==_0x51a241(0x2fc)&&_0x51a241(0x275)in _0x4795bb&&(_0x4795bb=_0x4795bb[_0x51a241(0x275)]);let _0x4d2162=typeof _0x4795bb=='function'?_0x4795bb(_0x496421[_0x51a241(0x205)]):_0x4795bb;if(!_0x4d2162||typeof _0x4d2162[_0x51a241(0x28d)]!=_0x51a241(0x1e9))throw new Error(_0x51a241(0x293)+_0x27954c+_0x51a241(0x324));_0x208f8f[_0x51a241(0x26b)](_0x4d2162);}return _0x208f8f;}async function hs(_0x551874,_0x521bd1={}){const _0x9b1ff0=_0x4e82de;let _0x3dde41=_0x521bd1[_0x9b1ff0(0x20c)]??await Et(_0x551874),_0x3d6658=Rt(_0x551874,{..._0x521bd1,'plugins':_0x3dde41});if(_0x3d6658[_0x9b1ff0(0x2ce)]&&!_0x521bd1[_0x9b1ff0(0x30b)]){let _0x57267d={'graph':_0x3d6658[_0x9b1ff0(0x318)],'config':_0x551874,'header':k,'dirOf':_0x120a66=>_0xb5833(_0x551874[_0x9b1ff0(0x1f5)],_0x120a66[_0x9b1ff0(0x207)])};for(let _0x455057 of _0x3dde41){let _0x3b5596=await _0x455057['after']?.(_0x57267d);_0x3b5596&&_0x3d6658[_0x9b1ff0(0x2ce)][_0x9b1ff0(0x256)][_0x9b1ff0(0x26b)](..._0x3b5596);}}return _0x3d6658;}export{ct as CONFIG_FILE,k as HEADER,J as aliasTable,Y as checkBoundaries,ut as defineConfig,kt as defineManifest,ie as generate,ce as importsOf,ft as loadConfig,Et as loadPlugins,he as render,Se as resolveConfig,Rt as run,hs as runWithPlugins,ae as scan,xe as splicePaths};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Issue, Member } from "./types";
|
|
2
|
+
export interface ReadClass {
|
|
3
|
+
members: Omit<Member, "event">[];
|
|
4
|
+
hooks: string[];
|
|
5
|
+
issues: Issue[];
|
|
6
|
+
}
|
|
7
|
+
export declare function readClass(file: string, displayFile: string, opts?: {
|
|
8
|
+
hooks: readonly string[];
|
|
9
|
+
timeoutsField: string;
|
|
10
|
+
}): ReadClass;
|
package/dist/paths.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const toPosix: (p: string) => string;
|
|
2
|
+
/** `to` relative to `from`, posix, `./`-prefixed: a path an import can name. */
|
|
3
|
+
export declare function importPath(fromDir: string, to: string): string;
|
|
4
|
+
/** Does a posix path match a glob? Supports `**` (any depth, including none), `*` (one segment) and literals. */
|
|
5
|
+
export declare function matchGlob(glob: string, path: string): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Manifest, ManifestValue, Member } from "./types";
|
|
2
|
+
export type { Manifest, ManifestValue, Member };
|
|
3
|
+
/** Type a manifest; an identity function. The kit reads the literal from the file, never runs it. */
|
|
4
|
+
export declare const defineManifest: <const M extends Manifest>(manifest: M) => M;
|
|
5
|
+
/** What `onStart` may return: run when the module stops, before `onStop`. */
|
|
6
|
+
export type Cleanup = () => void | Promise<void>;
|
|
7
|
+
/** Optional base class: the hooks the host calls, typed. Any class works without it. */
|
|
8
|
+
export declare abstract class ModuleBase {
|
|
9
|
+
onStart?(): void | Cleanup | Promise<void | Cleanup>;
|
|
10
|
+
onStop?(): void | Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
/** One module class in a generated registry. */
|
|
13
|
+
export interface RegistryEntry {
|
|
14
|
+
id: string;
|
|
15
|
+
version: string;
|
|
16
|
+
core: boolean;
|
|
17
|
+
requires: string[];
|
|
18
|
+
optional: string[];
|
|
19
|
+
startOrder: number;
|
|
20
|
+
realm: string | null;
|
|
21
|
+
members: Member[];
|
|
22
|
+
hooks: string[];
|
|
23
|
+
/** The config's extra manifest fields, as the manifest set them. */
|
|
24
|
+
extra: Record<string, ManifestValue>;
|
|
25
|
+
Class: new () => object;
|
|
26
|
+
}
|
|
27
|
+
export { bindModule, type HostBus, type HostLogger } from "./bind";
|
|
28
|
+
export { createSupervisor, memoryHistory, summarize, type HistoryEntry, type HistoryFact, type HistoryMeta, type HistoryStore, type HistorySummary, type Step, type StopReason, type SupervisedModule, type SupervisedState, type SupervisedStatus, type Supervisor, type SupervisorOptions, } from "./supervisor";
|
|
29
|
+
export { createFollower, type Follower, type FollowerOptions } from "./follower";
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x417f(){const _0x2cf90e=['zw5HyMXLza','BMfTzq','z2v0','zw5HyMXL','igLZig5VDcbYDw5UAw5N','C3vTBwfYEq','zxzLBNq','B25jBNn0ywXSzwq','B3jWAgfUzwq','ignSzwfUDxa','mJm3mdy2nKvHDLfrzG','C29YDa','y2XLyw51Ca','mtm0mJq3mLPhD3v2za','m3PeBejfra','y2fSBa','oIbPDhmGChjLDMLVDxmGC3rHCNqGAxmGC3rPBgWGCNvUBMLUzYbWyxn0igL0CYbIDwrNzxq','Ag9VA3m','y29Yzq','CMvXDwLYzxm','B25eAxnHyMXLza','mJGZodq2nuzvyMPWua','nvHgzw5psG','Aw5ZDgfSBa','CMvXDwvZDgvK','q2XHC3m','CNvUBMLUzW','zMLSDgvY','ihrVB2SGBg9Uz2vYihrOyw4G','y2f0y2G','C2H1DgrVD24','CMv0CNLxywL0C01Z','BgvUz3rO','BwvTyMvYCW','ywXS','CMvZDgfYDa','AgLZDg9YEq','A2v5CW','yM9VDa','y2XLyxi','y29Yzvn0yxj0vgLTzw91De1Z','oIaI','C3vWzxj2AxnVCG','C3rVCa','zNvUy3rPB24','ywrK','zMfJDa','C3rHCNq','DhLWzq','zgLZywjSzwq','zgLZywjSzq','igrPzcbUB3qGCMvZDgfYDa','C3rHCNrLza','Dw5IAw5K','ChjLCgfYzq','zNjVBuvUDhjPzxm','igHHCYbUBYbTzw1IzxiGzM9Yia','iIbPCYbUB3qGysbTB2r1Bgu','zgvSzxrL','Aw5MBW','Aw5ZDgfSBgvK','Bw9KDwXLCW','zMfPBgvK','lNjLC3rHCNq6ici','BgfZDa','BwvZC2fNzq','C3rHCNrPBMC','B2zM','DxbNCMfKzwq','yNvZEq','DMvYC2LVBG','ovvqzw9Hsa','Dw5JBgvHBG','AgfZ','BwfW','iIbPCYbKAxnHyMXLzdSGzw5HyMXLigL0igzPCNn0','DMfSDwvZ','AwrZ','ndqWodCWmenwtwvYuq','Aw5JBhvKzxm','C3rVChbLza','BgfZDevYCM9Y','DgHLBG','Ag9VA1rPBwvVDxrnCW','B25fCNjVCG','ihDOAwXLigL0igLZig5VDcbYDw5UAw5N','CMvZB2X2zq','D2fYBG','ndi2mZy3rwPKsvj1','Aw5ZDgfUy2u','B25tDgfYDa','nZaWnZG4DefyrvzN','BM93','nta4nZm0vLnWD0L2','C3rHCNrpCMrLCG','C2v0','zxjYB3i','CMv2zxjZzq'];_0x417f=function(){return _0x2cf90e;};return _0x417f();}function _0xd958(_0x340d3c,_0x443a7e){_0x340d3c=_0x340d3c-0x8a;const _0x417fd7=_0x417f();let _0xd95838=_0x417fd7[_0x340d3c];if(_0xd958['Ntnjmv']===undefined){var _0x248203=function(_0x437854){const _0x37f890='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2fa76d='',_0x39e3bf='';for(let _0x461092=0x0,_0x1d60be,_0x1d8eab,_0x2f0687=0x0;_0x1d8eab=_0x437854['charAt'](_0x2f0687++);~_0x1d8eab&&(_0x1d60be=_0x461092%0x4?_0x1d60be*0x40+_0x1d8eab:_0x1d8eab,_0x461092++%0x4)?_0x2fa76d+=String['fromCharCode'](0xff&_0x1d60be>>(-0x2*_0x461092&0x6)):0x0){_0x1d8eab=_0x37f890['indexOf'](_0x1d8eab);}for(let _0x84d4d5=0x0,_0x558b29=_0x2fa76d['length'];_0x84d4d5<_0x558b29;_0x84d4d5++){_0x39e3bf+='%'+('00'+_0x2fa76d['charCodeAt'](_0x84d4d5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39e3bf);};_0xd958['EvTtgh']=_0x248203,_0xd958['oWvkHt']={},_0xd958['Ntnjmv']=!![];}const _0x2354c1=_0x417fd7[0x0],_0x323b96=_0x340d3c+_0x2354c1,_0x253cdc=_0xd958['oWvkHt'][_0x323b96];return!_0x253cdc?(_0xd95838=_0xd958['EvTtgh'](_0xd95838),_0xd958['oWvkHt'][_0x323b96]=_0xd95838):_0xd95838=_0x253cdc,_0xd95838;}const _0x3d8149=_0xd958;(function(_0x1aa91b,_0x224583){const _0x533de2=_0xd958,_0x1aab5e=_0x1aa91b();while(!![]){try{const _0x39066a=-parseInt(_0x533de2(0x9e))/0x1+-parseInt(_0x533de2(0xa3))/0x2+-parseInt(_0x533de2(0xb6))/0x3*(parseInt(_0x533de2(0xa1))/0x4)+parseInt(_0x533de2(0xbe))/0x5*(parseInt(_0x533de2(0xb2))/0x6)+parseInt(_0x533de2(0xbd))/0x7+-parseInt(_0x533de2(0xb5))/0x8+parseInt(_0x533de2(0x8d))/0x9*(parseInt(_0x533de2(0x94))/0xa);if(_0x39066a===_0x224583)break;else _0x1aab5e['push'](_0x1aab5e['shift']());}catch(_0x4db88a){_0x1aab5e['push'](_0x1aab5e['shift']());}}}(_0x417f,0x35288));function V(_0x2fa76d,_0x39e3bf,_0x461092){const _0x11ba04=_0xd958;if(_0x39e3bf[_0x11ba04(0xc9)][_0x11ba04(0xc8)]===0x0)return null;let _0x1d60be=new Map(_0x39e3bf[_0x11ba04(0xc9)][_0x11ba04(0x90)](_0x84d4d5=>[_0x84d4d5[_0x11ba04(0xae)],_0x84d4d5[_0x11ba04(0xa9)]])),_0x1d8eab=_0x461092,_0x2f0687=_0x2fa76d['on'](_0x39e3bf['id'],_0x558b29=>{const _0x198586=_0x11ba04;let _0xe7489f=_0x1d60be[_0x198586(0xaa)](_0x558b29[_0x198586(0xd8)]),_0x40ea9e=_0xe7489f===void 0x0?void 0x0:_0x1d8eab[_0xe7489f];if(typeof _0x40ea9e!=_0x198586(0xd4))throw new Error(_0x39e3bf['id']+_0x198586(0xe0)+_0x558b29['type']);let {type:_0x2b23f1,..._0x5511c5}=_0x558b29;return _0x40ea9e[_0x198586(0xb7)](_0x461092,_0x5511c5);},_0x39e3bf[_0x11ba04(0xc9)]['map'](_0x51564c=>_0x51564c[_0x11ba04(0xae)]));return{'handlerId':_0x2f0687,'unbind':()=>_0x2fa76d[_0x11ba04(0xeb)](_0x39e3bf['id'],_0x2f0687)};}function Q(){const _0x55625f=_0xd958;let _0x1dbbcf=[];return{'entries':_0x1dbbcf,'append':(_0x6fdc95,_0x397cbe,_0x382aec)=>{_0x1dbbcf['push']({'id':_0x6fdc95,'fact':_0x397cbe,..._0x382aec});},'summary':_0x47a14c=>U(_0x1dbbcf[_0x55625f(0xc3)](_0x305cd7=>_0x305cd7['id']===_0x47a14c)[_0x55625f(0x90)](_0x2d52e7=>_0x2d52e7[_0x55625f(0xd6)])),'ids':()=>[...new Set(_0x1dbbcf[_0x55625f(0x90)](_0x2dacc5=>_0x2dacc5['id']))]};}function U(_0x217cec){const _0x4e5c3a=_0xd958;let _0x3fbecc=_0x217cec[_0x4e5c3a(0xc3)](_0x56fb56=>_0x56fb56[_0x4e5c3a(0xd8)]!==_0x4e5c3a(0xe6)),_0x1c9458=_0x3fbecc[_0x3fbecc['length']-0x1],_0x57e200=null;for(let _0x7b2b91 of _0x217cec)_0x7b2b91['type']===_0x4e5c3a(0xe4)||_0x7b2b91['type']===_0x4e5c3a(0xdc)?_0x57e200=_0x7b2b91['version']:_0x7b2b91['type']==='upgraded'&&(_0x57e200=_0x7b2b91['to']);return{'exists':_0x217cec[_0x4e5c3a(0xc8)]>0x0,'last':_0x1c9458?.[_0x4e5c3a(0xd8)]??null,'version':_0x57e200};}var oe={'info':()=>{},'warn':()=>{},'error':()=>{}},x=_0x50ea55=>_0x50ea55 instanceof Error?_0x50ea55[_0x3d8149(0xe9)]:String(_0x50ea55);function O(_0x1f5b46,_0x2dd374,_0x362b7b,_0x111b91,_0x183109){return new Promise((_0xadd114,_0x463ea1)=>{const _0x473102=_0xd958;let _0x1bbbbc=!0x1,_0x376bf4=Promise['resolve']()[_0x473102(0x98)](_0x362b7b),_0x56c3e0=setTimeout(()=>{const _0x121fb2=_0x473102;_0x1bbbbc=!0x0,_0x183109?.(_0x376bf4[_0x121fb2(0x98)](_0x29a5dc=>_0x111b91?.(_0x29a5dc))[_0x121fb2(0x98)](()=>{},()=>{})),_0x463ea1(new Error(_0x1f5b46+_0x121fb2(0xc4)+_0x2dd374+'\x20ms'));},_0x2dd374);_0x376bf4[_0x473102(0x98)](_0x33126d=>{clearTimeout(_0x56c3e0),_0x1bbbbc||_0xadd114(_0x33126d);},_0x3ceba2=>{clearTimeout(_0x56c3e0),_0x1bbbbc||_0x463ea1(_0x3ceba2);});});}var ie=_0x11c502=>{const _0x18c2b0=_0x3d8149;if(typeof _0x11c502=='function')try{let _0x4e1298=_0x11c502();_0x4e1298 instanceof Promise&&_0x4e1298[_0x18c2b0(0xc5)](()=>{});}catch{}};function ae(_0x2c225a){const _0x24b90a=_0x3d8149;let _0x348205=_0x2c225a[_0x24b90a(0xa9)]??_0x24b90a(0xd2),_0x369c3b={'install':_0x24b90a(0xaf),'start':_0x24b90a(0xa0),'stop':'onStop','disable':_0x24b90a(0xbc),..._0x2c225a[_0x24b90a(0xb9)]},_0x5dd2a7=_0x2c225a[_0x24b90a(0xcc)]??Q(),_0x3a8684=_0x2c225a[_0x24b90a(0x99)]??0x7530,_0x4b9023=_0x2c225a[_0x24b90a(0xd0)]??0xa*0xea60,_0x51a32e=_0x2c225a[_0x24b90a(0xc7)]??[0x3e8,0x1388],_0x21f300=_0x2c225a[_0x24b90a(0xa2)]??(()=>new Date()['toISOString']()),_0x5a1826=_0x2c225a['log']??oe,{bus:_0x2fc065}=_0x2c225a,_0x4cf0aa=[..._0x2c225a[_0x24b90a(0xe5)]][_0x24b90a(0xb3)]((_0x590b12,_0x455b49)=>_0x590b12[_0x24b90a(0xa4)]-_0x455b49[_0x24b90a(0xa4)]||_0x590b12['id']['localeCompare'](_0x455b49['id'])),_0x175110=new Map(_0x4cf0aa[_0x24b90a(0x90)](_0x373f51=>[_0x373f51['id'],_0x373f51])),_0x2f48ad=_0x4cf0aa[_0x24b90a(0x90)](_0x3ab59d=>_0x3ab59d['id']),_0x4d19a7=new Map(),_0x115524=new Set(),_0x924a36=()=>({'state':'stopped','degraded':null,'busy':null,'lastError':null,'updatedAt':_0x21f300()}),_0x50dd09=_0x579b30=>_0x4d19a7['get'](_0x579b30)??_0x924a36(),_0x5f0a4b=(_0x31ca75,_0x201e14)=>{const _0x14b0b2=_0x24b90a;_0x4d19a7[_0x14b0b2(0xa5)](_0x31ca75,_0x201e14);for(let _0x532c45 of _0x115524)_0x532c45(_0x31ca75,_0x201e14);},_0x13dd36=(_0x2c0c8f,_0x1cda58,_0xa50027)=>{const _0x3cc0a3=_0x24b90a;let _0x9d3051=_0x50dd09(_0x2c0c8f);_0x5f0a4b(_0x2c0c8f,{..._0x9d3051,'state':_0x1cda58,'degraded':null,'lastError':_0xa50027===void 0x0?_0x9d3051[_0x3cc0a3(0x97)]:_0xa50027,'updatedAt':_0x21f300()});},_0x3de4d0=new Map(),_0x133d58=new Map(),_0x2341a2=new Map(),_0x5493b4=new Map(),_0x3d18a6=new Map(),_0x57df5e=new Map(),_0x1421f8=_0x1e0962=>({'at':_0x21f300(),'via':_0x348205+'.'+_0x1e0962}),_0x408a92=async(_0x331e3e,_0x571f12,_0x4bc2f7)=>{const _0x29b037=_0x24b90a;if(!_0x175110[_0x29b037(0xaa)](_0x331e3e)?.[_0x29b037(0xba)])try{await _0x5dd2a7['append'](_0x331e3e,_0x571f12,_0x1421f8(_0x4bc2f7));}catch(_0x3d125f){_0x5a1826['error']('history\x20append\x20refused:\x20'+_0x331e3e+'\x20'+_0x571f12['type'],{'id':_0x331e3e,'error':x(_0x3d125f)});}},_0x9eda43=_0x2c0309=>(_0x2c0309[_0x24b90a(0xc9)]??[])[_0x24b90a(0x90)](_0x54cd78=>_0x54cd78[_0x24b90a(0xae)]),_0x2ed4a9=_0x5ce288=>{const _0x4a97bc=_0x24b90a;let _0x5e2c9a=_0x133d58[_0x4a97bc(0xaa)](_0x5ce288);_0x5e2c9a!==void 0x0&&_0x2fc065?.[_0x4a97bc(0xeb)](_0x5ce288,_0x5e2c9a),_0x133d58[_0x4a97bc(0xe2)](_0x5ce288);},_0x3fe35=_0x4cddd7=>{const _0x166b61=_0x24b90a;!_0x2fc065||_0x9eda43(_0x4cddd7)[_0x166b61(0xc8)]===0x0||(_0x2ed4a9(_0x4cddd7['id']),_0x133d58[_0x166b61(0xa5)](_0x4cddd7['id'],_0x2fc065['on'](_0x4cddd7['id'],_0x1fe2ab=>{const _0x2b106b=_0x166b61;throw _0x5a1826[_0x2b106b(0x9d)]('call\x20to\x20'+_0x4cddd7['id']+_0x2b106b(0x9b),{'id':_0x4cddd7['id'],'event':_0x1fe2ab['type']}),new Error(_0x4cddd7['id']+_0x2b106b(0xac));},_0x9eda43(_0x4cddd7))));};for(let _0x3b802e of _0x4cf0aa)_0x3fe35(_0x3b802e);let _0x159f85=!0x1,_0x2d9049=Promise[_0x24b90a(0x9c)](),_0x414aed=_0x2bd782=>{const _0x3431fa=_0x24b90a;let _0x107aba=_0x2d9049[_0x3431fa(0x98)](_0x2bd782);return _0x2d9049=_0x107aba[_0x3431fa(0x98)](()=>{},()=>{}),_0x107aba;},_0x45e1ba=_0x804841=>{const _0x5d12fc=_0x24b90a;let _0x5ba981=_0x175110['get'](_0x804841);if(!_0x5ba981)throw new Error(_0x348205+_0x5d12fc(0xd1)+_0x804841+_0x5d12fc(0xe1));return _0x5ba981;},_0x2cb316=(_0x1fc794,_0x230127)=>{const _0x47c625=_0x24b90a;let _0x4df5bb=_0x175110[_0x47c625(0xaa)](_0x1fc794);if(!_0x4df5bb)throw new Error(_0x348205+'.'+_0x230127+':\x20\x22'+_0x1fc794+_0x47c625(0xe1));if(_0x4df5bb[_0x47c625(0xba)])throw new Error(_0x348205+'.'+_0x230127+_0x47c625(0xd1)+_0x1fc794+'\x22\x20is\x20a\x20core\x20module;\x20core\x20modules\x20have\x20no\x20lifecycle\x20to\x20change');return _0x4df5bb;},_0x42fa9f=_0x43501a=>{const _0x87b2d2=_0x24b90a;let _0x4537ef=_0x3d18a6[_0x87b2d2(0xaa)](_0x43501a);_0x4537ef!==void 0x0&&clearTimeout(_0x4537ef),_0x3d18a6[_0x87b2d2(0xe2)](_0x43501a);},_0x50aa98=async _0x21cd2e=>{const _0x228e22=_0x24b90a;if(_0x3de4d0[_0x228e22(0x8f)](_0x21cd2e['id']))return;if(_0x5493b4[_0x228e22(0x8f)](_0x21cd2e['id']))throw new Error(_0x21cd2e['id']+_0x228e22(0xb8));if(await _0x2c225a[_0x228e22(0xde)]?.(_0x21cd2e['id']),!_0x21cd2e[_0x228e22(0xc1)]){_0x3de4d0[_0x228e22(0xa5)](_0x21cd2e['id'],{'instance':null,'unbind':null,'cleanup':null});return;}_0x2ed4a9(_0x21cd2e['id']);let _0x59f0f7=new _0x21cd2e[(_0x228e22(0xc1))](),_0x472172=_0x2fc065?V(_0x2fc065,{'id':_0x21cd2e['id'],'members':[..._0x21cd2e[_0x228e22(0xc9)]??[]]},_0x59f0f7)?.[_0x228e22(0xdd)]??null:null,_0x168865={'instance':_0x59f0f7,'unbind':_0x472172,'cleanup':null};_0x3de4d0[_0x228e22(0xa5)](_0x21cd2e['id'],_0x168865),_0x2341a2[_0x228e22(0xe2)](_0x21cd2e['id']);try{let _0x1e1707=await O(_0x21cd2e['id']+'\x20'+_0x369c3b['start'],_0x21cd2e[_0x228e22(0xba)]?_0x4b9023:_0x3a8684,()=>_0x59f0f7[_0x369c3b[_0x228e22(0xd7)]]?.[_0x228e22(0xb7)](_0x59f0f7),ie,_0x5282cd=>{const _0x398582=_0x228e22;let _0x26c5f3=_0x5282cd[_0x398582(0x98)](()=>{const _0x1ca4af=_0x398582;_0x5493b4[_0x1ca4af(0xaa)](_0x21cd2e['id'])===_0x26c5f3&&_0x5493b4['delete'](_0x21cd2e['id']);});_0x5493b4['set'](_0x21cd2e['id'],_0x26c5f3);});_0x168865[_0x228e22(0xb4)]=typeof _0x1e1707==_0x228e22(0xd4)?_0x1e1707:null;}catch(_0x180839){throw _0x3de4d0[_0x228e22(0xe2)](_0x21cd2e['id']),_0x472172?.(),_0x3fe35(_0x21cd2e),_0x180839;}},_0x4084a6=async _0x5c499f=>{const _0x38b64e=_0x24b90a;let _0x35d718=_0x3de4d0['get'](_0x5c499f['id']);if(!_0x35d718)return;_0x3de4d0[_0x38b64e(0xe2)](_0x5c499f['id']),_0x35d718[_0x38b64e(0xdd)]?.(),_0x3fe35(_0x5c499f),_0x35d718[_0x38b64e(0x9f)]&&_0x2341a2['set'](_0x5c499f['id'],_0x35d718[_0x38b64e(0x9f)]);let _0xbcd730=null,_0x2cacbd=async _0x153245=>{try{await _0x153245();}catch(_0xff4a82){_0xbcd730??=_0xff4a82;}};if(await _0x2cacbd(()=>O(_0x5c499f['id']+_0x38b64e(0xb1),_0x3a8684,()=>_0x35d718['cleanup']?.())),await _0x2cacbd(()=>O(_0x5c499f['id']+'\x20'+_0x369c3b['stop'],_0x3a8684,()=>_0x35d718[_0x38b64e(0x9f)]?.[_0x369c3b[_0x38b64e(0xd3)]]?.[_0x38b64e(0xb7)](_0x35d718[_0x38b64e(0x9f)]))),_0xbcd730!==null)throw _0xbcd730;},_0x3b707b=async(_0x7ad09f,_0x4d3a5a,_0x619067)=>{const _0x4c1aaf=_0x24b90a;let _0x2097f0=_0x45e1ba(_0x7ad09f),_0xd32d1f=_0x2097f0[_0x4c1aaf(0xbb)]['filter'](_0x43bf09=>_0x175110[_0x4c1aaf(0x8f)](_0x43bf09)&&!_0x3de4d0[_0x4c1aaf(0x8f)](_0x43bf09));_0xd32d1f[_0x4c1aaf(0xc8)]>0x0&&_0x5a1826[_0x4c1aaf(0x9d)](_0x7ad09f+'\x20starting\x20while\x20required\x20'+_0xd32d1f['join'](',\x20')+'\x20is\x20not\x20running',{'id':_0x7ad09f,'down':_0xd32d1f}),_0x13dd36(_0x7ad09f,_0x4c1aaf(0xea));try{await _0x50aa98(_0x2097f0);}catch(_0x40b8fa){let _0x1f58de=x(_0x40b8fa);throw await _0x408a92(_0x7ad09f,{'type':_0x4c1aaf(0xe6),'step':_0x4c1aaf(0xd7),'error':_0x1f58de,'attempt':_0x4d3a5a},_0x619067),_0x13dd36(_0x7ad09f,_0x4c1aaf(0xe6),_0x1f58de),_0x2097f0[_0x4c1aaf(0xba)]||_0x3aabe1(_0x7ad09f,_0x4d3a5a,_0x619067),_0x40b8fa;}await _0x408a92(_0x7ad09f,{'type':_0x4c1aaf(0xdc),'version':_0x2097f0[_0x4c1aaf(0x8c)]},_0x619067),_0x13dd36(_0x7ad09f,_0x4c1aaf(0xc2),null);},_0x3aabe1=(_0xc21f50,_0x3441b5,_0x397b63)=>{const _0x363853=_0x24b90a;let _0x5aa7a5=_0x51a32e[_0x3441b5-0x1];if(_0x5aa7a5===void 0x0)return;_0x42fa9f(_0xc21f50);let _0x39b9d3=setTimeout(()=>{const _0x20ebfd=_0xd958;(_0x5493b4[_0x20ebfd(0xaa)](_0xc21f50)??Promise[_0x20ebfd(0x9c)]())[_0x20ebfd(0x98)](()=>_0x414aed(async()=>{const _0x5a7233=_0x20ebfd;_0x159f85||_0x3d18a6['get'](_0xc21f50)!==_0x39b9d3||(_0x3d18a6[_0x5a7233(0xe2)](_0xc21f50),!_0x3de4d0[_0x5a7233(0x8f)](_0xc21f50)&&await _0x3b707b(_0xc21f50,_0x3441b5+0x1,_0x397b63));}))[_0x20ebfd(0xc5)](()=>{});},_0x5aa7a5);_0x3d18a6[_0x363853(0xa5)](_0xc21f50,_0x39b9d3);},_0x34604b=async(_0x29499b,_0x3e5029,_0x573260)=>{const _0x58bbff=_0x24b90a;let _0xa8fe15=_0x45e1ba(_0x29499b);try{await _0x4084a6(_0xa8fe15);}catch(_0xda5110){await _0x408a92(_0x29499b,{'type':'failed','step':_0x58bbff(0xd3),'error':x(_0xda5110),'attempt':0x1},_0x573260);}await _0x408a92(_0x29499b,{'type':_0x58bbff(0x96),'reason':_0x3e5029},_0x573260),_0x13dd36(_0x29499b,_0x58bbff(0x96));},_0x3c0807=async _0x573a86=>{const _0x4e3bcc=_0x24b90a;if(_0x573a86['Class'])try{let _0x3bfb28=new _0x573a86[(_0x4e3bcc(0xc1))]();await O(_0x573a86['id']+'\x20'+_0x369c3b[_0x4e3bcc(0xbf)],_0x3a8684,()=>_0x3bfb28[_0x369c3b[_0x4e3bcc(0xbf)]]?.[_0x4e3bcc(0xb7)](_0x3bfb28));}catch(_0x4033d6){await _0x408a92(_0x573a86['id'],{'type':'failed','step':_0x4e3bcc(0xbf),'error':x(_0x4033d6),'attempt':0x1},_0x4e3bcc(0xce));}},_0xe7f7ec=async(_0x4ebc93,_0x198421)=>{const _0x482bbf=_0x24b90a;let _0x590fa3=_0x2341a2[_0x482bbf(0xaa)](_0x4ebc93);_0x2341a2[_0x482bbf(0xe2)](_0x4ebc93);let _0xa1c346=_0x590fa3?.[_0x369c3b[_0x482bbf(0xda)]];if(_0xa1c346)try{await O(_0x4ebc93+'\x20'+_0x369c3b['disable'],_0x3a8684,()=>_0xa1c346[_0x482bbf(0xb7)](_0x590fa3));}catch(_0x191c91){await _0x408a92(_0x4ebc93,{'type':_0x482bbf(0xe6),'step':_0x482bbf(0xda),'error':x(_0x191c91),'attempt':0x1},_0x198421);}},_0xdda1be=async(_0x338ff1,_0x110031)=>{const _0x1fdf62=_0x24b90a;if(!_0x3de4d0[_0x1fdf62(0x8f)](_0x338ff1))return;let _0x49b5cc=_0x50dd09(_0x338ff1)['busy'];if(_0x49b5cc!==null){_0x57df5e[_0x1fdf62(0xa5)](_0x338ff1,_0x110031),_0x5a1826[_0x1fdf62(0xe3)](_0x338ff1+'\x20restart\x20deferred\x20-\x20module\x20is\x20busy',{'id':_0x338ff1,'busy':_0x49b5cc,'reason':_0x110031});return;}_0x42fa9f(_0x338ff1),await _0x34604b(_0x338ff1,_0x110031,_0x110031),await _0x3b707b(_0x338ff1,0x1,_0x110031);},_0x45a612=()=>{const _0x8d550a=_0x24b90a;for(let [_0x1c1822,_0x3f1ad7]of[..._0x57df5e])_0x50dd09(_0x1c1822)[_0x8d550a(0x8b)]===null&&(_0x57df5e[_0x8d550a(0xe2)](_0x1c1822),_0x414aed(()=>_0xdda1be(_0x1c1822,_0x3f1ad7))[_0x8d550a(0xc5)](_0x1795cb=>_0x5a1826['error'](_0x1c1822+'\x20did\x20not\x20restart',{'id':_0x1c1822,'error':x(_0x1795cb)})));},_0x11de7b=()=>_0x4cf0aa['filter'](_0x335f50=>!_0x335f50['core']);return{'boot':()=>_0x414aed(async()=>{const _0x1ee2fb=_0x24b90a;for(let _0x563a8b of[..._0x3d18a6[_0x1ee2fb(0xcd)]()])_0x42fa9f(_0x563a8b);for(let _0x1d9961 of _0x4cf0aa)_0x1d9961[_0x1ee2fb(0xba)]&&(await _0x50aa98(_0x1d9961),_0x13dd36(_0x1d9961['id'],_0x1ee2fb(0xc2),null));for(let _0x2ba342 of _0x11de7b())(await _0x5dd2a7[_0x1ee2fb(0xad)](_0x2ba342['id']))[_0x1ee2fb(0xe8)]==='started'&&await _0x408a92(_0x2ba342['id'],{'type':_0x1ee2fb(0x96),'reason':_0x1ee2fb(0x8e)},'boot');for(let _0x4ea50b of _0x11de7b())(await _0x5dd2a7[_0x1ee2fb(0xad)](_0x4ea50b['id']))['exists']||(await _0x2c225a[_0x1ee2fb(0xde)]?.(_0x4ea50b['id']),await _0x408a92(_0x4ea50b['id'],{'type':_0x1ee2fb(0xe4),'version':_0x4ea50b[_0x1ee2fb(0x8c)]},'boot'),await _0x3c0807(_0x4ea50b));for(let _0xb7a4ba of _0x11de7b()){let _0x2924bb=await _0x5dd2a7['summary'](_0xb7a4ba['id']);_0x2924bb[_0x1ee2fb(0x8c)]!==null&&_0x2924bb[_0x1ee2fb(0x8c)]!==_0xb7a4ba[_0x1ee2fb(0x8c)]&&await _0x408a92(_0xb7a4ba['id'],{'type':_0x1ee2fb(0x8a),'from':_0x2924bb['version'],'to':_0xb7a4ba[_0x1ee2fb(0x8c)]},_0x1ee2fb(0xce));}for(let _0x2308a3 of _0x11de7b()){if((await _0x5dd2a7[_0x1ee2fb(0xad)](_0x2308a3['id']))[_0x1ee2fb(0xe8)]===_0x1ee2fb(0xd9)){_0x13dd36(_0x2308a3['id'],'disabled');continue;}await _0x3b707b(_0x2308a3['id'],0x1,_0x1ee2fb(0xce))['catch'](()=>{});}for(let _0x2f5b02 of await _0x5dd2a7[_0x1ee2fb(0x93)]())_0x175110['has'](_0x2f5b02)||_0x13dd36(_0x2f5b02,_0x1ee2fb(0xb0));}),'enable':_0x57129a=>_0x414aed(async()=>{const _0x5ee230=_0x24b90a;_0x2cb316(_0x57129a,'enable'),_0x42fa9f(_0x57129a),!_0x3de4d0[_0x5ee230(0x8f)](_0x57129a)&&((await _0x5dd2a7[_0x5ee230(0xad)](_0x57129a))['last']===_0x5ee230(0xd9)&&await _0x408a92(_0x57129a,{'type':_0x5ee230(0xa8)},_0x5ee230(0xab)),await _0x3b707b(_0x57129a,0x1,'enable'));}),'disable':_0x1bd782=>_0x414aed(async()=>{const _0x407bfb=_0x24b90a;_0x2cb316(_0x1bd782,_0x407bfb(0xda));let _0x22a875=_0x4cf0aa[_0x407bfb(0xc3)](_0x2e4dc7=>_0x2e4dc7['id']!==_0x1bd782&&_0x3de4d0[_0x407bfb(0x8f)](_0x2e4dc7['id'])&&_0x2e4dc7[_0x407bfb(0xbb)][_0x407bfb(0x95)](_0x1bd782))[_0x407bfb(0x90)](_0x3de03c=>_0x3de03c['id']);if(_0x22a875[_0x407bfb(0xc8)]>0x0&&_0x5a1826[_0x407bfb(0x9d)](_0x1bd782+'\x20disabled\x20while\x20required\x20by\x20running\x20'+_0x22a875['join'](',\x20'),{'id':_0x1bd782,'dependents':_0x22a875}),(await _0x5dd2a7['summary'](_0x1bd782))[_0x407bfb(0xe8)]==='disabled')return;_0x42fa9f(_0x1bd782);let _0x12a6d6=_0x3de4d0[_0x407bfb(0x8f)](_0x1bd782);_0x12a6d6&&await _0x34604b(_0x1bd782,'requested',_0x407bfb(0xda)),await _0x408a92(_0x1bd782,{'type':_0x407bfb(0xd9)},_0x407bfb(0xda)),_0x13dd36(_0x1bd782,'disabled'),_0x12a6d6&&await _0xe7f7ec(_0x1bd782,'disable');}),'restart':_0x3cc21e=>_0x414aed(async()=>{const _0x52b19b=_0x24b90a;if(_0x2cb316(_0x3cc21e,_0x52b19b(0xcb)),(await _0x5dd2a7['summary'](_0x3cc21e))[_0x52b19b(0xe8)]==='disabled')throw new Error(_0x348205+_0x52b19b(0xe7)+_0x3cc21e+_0x52b19b(0x91));_0x42fa9f(_0x3cc21e),_0x3de4d0[_0x52b19b(0x8f)](_0x3cc21e)&&await _0x34604b(_0x3cc21e,_0x52b19b(0xc0),_0x52b19b(0xcb)),await _0x3b707b(_0x3cc21e,0x1,_0x52b19b(0xcb));}),'requestRestart':(_0x19e14a,_0x26666e)=>{const _0x22f6d9=_0x24b90a;if(!_0x175110[_0x22f6d9(0x8f)](_0x19e14a)||_0x175110[_0x22f6d9(0xaa)](_0x19e14a)[_0x22f6d9(0xba)]||!_0x3de4d0[_0x22f6d9(0x8f)](_0x19e14a))return;let _0xe6a347=_0x50dd09(_0x19e14a)[_0x22f6d9(0x8b)];if(_0xe6a347!==null){_0x57df5e[_0x22f6d9(0xa5)](_0x19e14a,_0x26666e),_0x5a1826[_0x22f6d9(0xe3)](_0x19e14a+'\x20restart\x20deferred\x20-\x20module\x20is\x20busy',{'id':_0x19e14a,'busy':_0xe6a347,'reason':_0x26666e});return;}_0x414aed(()=>_0xdda1be(_0x19e14a,_0x26666e))[_0x22f6d9(0xc5)](_0x5abeab=>_0x5a1826[_0x22f6d9(0xa6)](_0x19e14a+_0x22f6d9(0xdb),{'id':_0x19e14a,'error':x(_0x5abeab)}));},'shutdown':()=>{const _0x3eda36=_0x24b90a;for(let _0x2b75e of[..._0x3d18a6[_0x3eda36(0xcd)]()])_0x42fa9f(_0x2b75e);return _0x57df5e['clear'](),_0x414aed(async()=>{const _0x52add5=_0x3eda36;for(let _0x42daac of[..._0x2f48ad][_0x52add5(0xa7)]())_0x3de4d0['has'](_0x42daac)&&await _0x34604b(_0x42daac,_0x52add5(0xc6),_0x52add5(0xc6));});},'setDegraded':(_0x5094bd,_0x4c671b)=>_0x5f0a4b(_0x5094bd,{..._0x50dd09(_0x5094bd),'degraded':_0x4c671b}),'setBusy':(_0x24884c,_0x40649f)=>{_0x5f0a4b(_0x24884c,{..._0x50dd09(_0x24884c),'busy':_0x40649f}),_0x40649f===null&&_0x45a612();},'isRunning':_0x1a9609=>_0x3de4d0[_0x24b90a(0x8f)](_0x1a9609),'status':_0x50dd09,'statuses':()=>Object[_0x24b90a(0xdf)]([...new Set([..._0x2f48ad,..._0x4d19a7[_0x24b90a(0xcd)]()])]['map'](_0x3e65ff=>[_0x3e65ff,_0x50dd09(_0x3e65ff)])),'onChange':_0x1eab2d=>(_0x115524[_0x24b90a(0xd5)](_0x1eab2d),()=>_0x115524[_0x24b90a(0xe2)](_0x1eab2d)),'startOrder':()=>[..._0x2f48ad],'abandonedStart':_0x52b2da=>_0x5493b4[_0x24b90a(0xaa)](_0x52b2da)??null,'dispose':()=>{const _0x14baaa=_0x24b90a;_0x159f85=!0x0;for(let _0xb8a1bf of[..._0x3d18a6['keys']()])_0x42fa9f(_0xb8a1bf);_0x57df5e[_0x14baaa(0xcf)]();for(let _0x1e0261 of _0x3de4d0[_0x14baaa(0x92)]())_0x1e0261['unbind']?.();for(let _0x53b9ba of[..._0x133d58[_0x14baaa(0xcd)]()])_0x2ed4a9(_0x53b9ba);_0x115524[_0x14baaa(0xcf)]();}};}function le(_0x1ffd84){const _0x5a9f4a=_0x3d8149;let _0x57132f={'start':_0x5a9f4a(0xa0),'stop':'onStop',..._0x1ffd84[_0x5a9f4a(0xb9)]},_0x318c0e=new Map(),_0x5ce498=new Map(),_0xcf467e=new Map(),_0x242314=(_0x598ead,_0x299ba1)=>{const _0x549654=_0x5a9f4a;let _0x116dc5=(_0xcf467e['get'](_0x598ead)??Promise[_0x549654(0x9c)]())[_0x549654(0x98)](_0x299ba1)[_0x549654(0xc5)](_0x2cb295=>_0x1ffd84[_0x549654(0x9a)]?.(_0x598ead,_0x2cb295));_0xcf467e[_0x549654(0xa5)](_0x598ead,_0x116dc5);},_0x1d10cb=async _0x207191=>{const _0x294d16=_0x5a9f4a;let _0x38ca31=_0x1ffd84['modules'][_0x207191];if(_0x318c0e[_0x294d16(0x8f)](_0x207191)||!_0x38ca31)return;let _0x35c7e0=new _0x38ca31(),_0x4094d7={'instance':_0x35c7e0,'cleanup':null};_0x318c0e['set'](_0x207191,_0x4094d7);try{let _0x4362b4=await _0x35c7e0[_0x57132f[_0x294d16(0xd7)]]?.['call'](_0x35c7e0);_0x4094d7[_0x294d16(0xb4)]=typeof _0x4362b4=='function'?_0x4362b4:null;}catch(_0x35ff27){throw _0x318c0e[_0x294d16(0xe2)](_0x207191),_0x35ff27;}},_0x319eda=async _0xcbe920=>{const _0x2cc178=_0x5a9f4a;let _0x9437b3=_0x318c0e['get'](_0xcbe920);if(_0x9437b3){_0x318c0e[_0x2cc178(0xe2)](_0xcbe920);try{await _0x9437b3[_0x2cc178(0xb4)]?.();}finally{await _0x9437b3[_0x2cc178(0x9f)][_0x57132f[_0x2cc178(0xd3)]]?.['call'](_0x9437b3[_0x2cc178(0x9f)]);}}},_0x512ade=(_0x140905,_0x4ebcc2)=>{const _0x1c8d15=_0x5a9f4a;!_0x1ffd84[_0x1c8d15(0xe5)][_0x140905]||(_0x5ce498['get'](_0x140905)??!0x1)===_0x4ebcc2||(_0x5ce498[_0x1c8d15(0xa5)](_0x140905,_0x4ebcc2),_0x242314(_0x140905,()=>_0x4ebcc2?_0x1d10cb(_0x140905):_0x319eda(_0x140905)));};return{'follow':_0x512ade,'followAll':_0x5b4b94=>{for(let _0x4e3341 of Object['keys'](_0x1ffd84['modules']))_0x512ade(_0x4e3341,_0x5b4b94[_0x4e3341]===!0x0);},'isRunning':_0x1db6e5=>_0x318c0e[_0x5a9f4a(0x8f)](_0x1db6e5),'stopAll':async()=>{const _0x51e4e2=_0x5a9f4a;for(let _0x255ce9 of Object[_0x51e4e2(0xcd)](_0x1ffd84[_0x51e4e2(0xe5)]))_0x512ade(_0x255ce9,!0x1);await Promise[_0x51e4e2(0xca)]([..._0xcf467e[_0x51e4e2(0x92)]()]);}};}var fe=_0x37862d=>_0x37862d,X=class{};export{X as ModuleBase,V as bindModule,le as createFollower,ae as createSupervisor,fe as defineManifest,Q as memoryHistory,U as summarize};
|
package/dist/scan.d.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { type HostBus, type HostLogger } from "./bind";
|
|
2
|
+
import type { Member } from "./types";
|
|
3
|
+
/** One module the supervisor manages. A module with no class in this realm is tracked, with nothing to run. */
|
|
4
|
+
export interface SupervisedModule {
|
|
5
|
+
id: string;
|
|
6
|
+
version: string;
|
|
7
|
+
core: boolean;
|
|
8
|
+
requires: readonly string[];
|
|
9
|
+
optional: readonly string[];
|
|
10
|
+
startOrder: number;
|
|
11
|
+
Class?: new () => object;
|
|
12
|
+
members?: readonly Member[];
|
|
13
|
+
}
|
|
14
|
+
export type StopReason = "requested" | "config" | "shutdown" | "unclean" | (string & {});
|
|
15
|
+
/** Which part of a module's life a failure happened in. */
|
|
16
|
+
export type Step = "install" | "start" | "stop" | "disable";
|
|
17
|
+
/** A fact the supervisor records about one module. */
|
|
18
|
+
export type HistoryFact = {
|
|
19
|
+
type: "installed";
|
|
20
|
+
version: string;
|
|
21
|
+
} | {
|
|
22
|
+
type: "upgraded";
|
|
23
|
+
from: string;
|
|
24
|
+
to: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "started";
|
|
27
|
+
version: string;
|
|
28
|
+
} | {
|
|
29
|
+
type: "stopped";
|
|
30
|
+
reason: StopReason;
|
|
31
|
+
} | {
|
|
32
|
+
type: "failed";
|
|
33
|
+
step: Step;
|
|
34
|
+
error: string;
|
|
35
|
+
attempt: number;
|
|
36
|
+
} | {
|
|
37
|
+
type: "enabled";
|
|
38
|
+
} | {
|
|
39
|
+
type: "disabled";
|
|
40
|
+
};
|
|
41
|
+
export interface HistoryMeta {
|
|
42
|
+
/** When, from the supervisor's clock. */
|
|
43
|
+
at: string;
|
|
44
|
+
/** Who: `<name>.<command>`, such as `ModuleManager.boot`. */
|
|
45
|
+
via: string;
|
|
46
|
+
}
|
|
47
|
+
/** What the supervisor reads back: has the module been seen, what state was it last left in, at what version. */
|
|
48
|
+
export interface HistorySummary {
|
|
49
|
+
exists: boolean;
|
|
50
|
+
/** The last fact's type, failures skipped (a failure is a fact about a step, not a state); null with none. */
|
|
51
|
+
last: Exclude<HistoryFact["type"], "failed"> | null;
|
|
52
|
+
/** The last version recorded (installed, upgraded or started). */
|
|
53
|
+
version: string | null;
|
|
54
|
+
}
|
|
55
|
+
/** Where a supervisor keeps its history: a database, a journal, a file. Each method may be async. */
|
|
56
|
+
export interface HistoryStore {
|
|
57
|
+
append(id: string, fact: HistoryFact, meta: HistoryMeta): void | Promise<void>;
|
|
58
|
+
summary(id: string): HistorySummary | Promise<HistorySummary>;
|
|
59
|
+
/** Every id with any history. */
|
|
60
|
+
ids(): readonly string[] | Promise<readonly string[]>;
|
|
61
|
+
}
|
|
62
|
+
export interface HistoryEntry extends HistoryMeta {
|
|
63
|
+
id: string;
|
|
64
|
+
fact: HistoryFact;
|
|
65
|
+
}
|
|
66
|
+
/** A history kept in memory: nothing survives the process. `entries` is the log, oldest first. */
|
|
67
|
+
export declare function memoryHistory(): HistoryStore & {
|
|
68
|
+
entries: HistoryEntry[];
|
|
69
|
+
};
|
|
70
|
+
/** A summary from a module's facts, oldest first: what a `HistoryStore` of your own may reuse. */
|
|
71
|
+
export declare function summarize(facts: readonly HistoryFact[]): HistorySummary;
|
|
72
|
+
export type SupervisedState = "stopped" | "starting" | "running" | "failed" | "disabled" | "orphaned";
|
|
73
|
+
export interface SupervisedStatus {
|
|
74
|
+
state: SupervisedState;
|
|
75
|
+
/** Why the module is degraded, while it is; null when healthy. Cleared when its state changes. */
|
|
76
|
+
degraded: string | null;
|
|
77
|
+
/** Why the module must not be restarted now; null when a restart is safe. */
|
|
78
|
+
busy: string | null;
|
|
79
|
+
/** The last start's error; null once a start succeeds. */
|
|
80
|
+
lastError: string | null;
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
}
|
|
83
|
+
export interface SupervisorOptions {
|
|
84
|
+
/** Every module of this realm, with its class when it has one here. */
|
|
85
|
+
modules: readonly SupervisedModule[];
|
|
86
|
+
/** Binds each running module's members; omitted, nothing is bound. */
|
|
87
|
+
bus?: HostBus;
|
|
88
|
+
/** Prefixes refusals (`<name>.restart: ...`) and history `via`. Default `"supervisor"`. */
|
|
89
|
+
name?: string;
|
|
90
|
+
/** The hook member names. Default `onInstalled`, `onStart`, `onStop`, `onDisabled`. */
|
|
91
|
+
hooks?: {
|
|
92
|
+
install?: string;
|
|
93
|
+
start?: string;
|
|
94
|
+
stop?: string;
|
|
95
|
+
disable?: string;
|
|
96
|
+
};
|
|
97
|
+
/** Default `memoryHistory()`. */
|
|
98
|
+
history?: HistoryStore;
|
|
99
|
+
/** One hook's budget, in ms; a hook that overruns has failed. Default 30 s. */
|
|
100
|
+
hookTimeoutMs?: number;
|
|
101
|
+
/** A core module's start budget, in ms. Default 10 minutes. */
|
|
102
|
+
coreStartTimeoutMs?: number;
|
|
103
|
+
/** Waits before each retry of a failed start; one more attempt than waits in total. Default `[1000, 5000]`. */
|
|
104
|
+
retryWaitsMs?: readonly number[];
|
|
105
|
+
/** Runs before a module's install and before each of its starts (its data folder, say). */
|
|
106
|
+
prepare?: (id: string) => void | Promise<void>;
|
|
107
|
+
/** The clock, as an ISO string. */
|
|
108
|
+
now?: () => string;
|
|
109
|
+
log?: HostLogger;
|
|
110
|
+
}
|
|
111
|
+
export interface Supervisor {
|
|
112
|
+
/** Boot: core modules, unclean stops, installs, upgrades, every enabled module, orphans. */
|
|
113
|
+
boot(): Promise<void>;
|
|
114
|
+
/** Start a stopped, failed or disabled module (recording `enabled` for a disabled one). */
|
|
115
|
+
enable(id: string): Promise<void>;
|
|
116
|
+
/** Stop a module and record it disabled; its users keep running. */
|
|
117
|
+
disable(id: string): Promise<void>;
|
|
118
|
+
/** Stop, then start. A disabled module is refused. */
|
|
119
|
+
restart(id: string): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Restart a running module for `reason` (a config change, say) unless it is
|
|
122
|
+
* busy; a busy one restarts when its busy flag clears. A module that is not
|
|
123
|
+
* running is left alone.
|
|
124
|
+
*/
|
|
125
|
+
requestRestart(id: string, reason: StopReason): void;
|
|
126
|
+
/** Stop every running module, reverse start order, recorded as `shutdown`; pending retries and restarts are dropped. */
|
|
127
|
+
shutdown(): Promise<void>;
|
|
128
|
+
setDegraded(id: string, reason: string | null): void;
|
|
129
|
+
setBusy(id: string, reason: string | null): void;
|
|
130
|
+
isRunning(id: string): boolean;
|
|
131
|
+
status(id: string): SupervisedStatus;
|
|
132
|
+
statuses(): Record<string, SupervisedStatus>;
|
|
133
|
+
/** Called after every status change. Returns an unsubscribe. */
|
|
134
|
+
onChange(listener: (id: string, status: SupervisedStatus) => void): () => void;
|
|
135
|
+
/** Every module id, in start order. */
|
|
136
|
+
startOrder(): string[];
|
|
137
|
+
/** A start given up on at its budget and still running; settles once it has finished. Null when none. */
|
|
138
|
+
abandonedStart(id: string): Promise<void> | null;
|
|
139
|
+
/**
|
|
140
|
+
* Let go without stopping anything: pending retries and restarts are cancelled,
|
|
141
|
+
* and every handler this supervisor bound is unbound. No hook runs; for a
|
|
142
|
+
* supervisor being replaced (a second boot, a test).
|
|
143
|
+
*/
|
|
144
|
+
dispose(): void;
|
|
145
|
+
}
|
|
146
|
+
export declare function createSupervisor(options: SupervisorOptions): Supervisor;
|