@kedem/okdb 2.0.3 → 2.0.4
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/algorithm-worker-thread.js +1 -1
- package/bin/okdb.js +1 -1
- package/docs/OKDB-ARCHITECTURE.md +16 -2
- package/docs/embeddings.md +11 -7
- package/docs/pipelines.md +12 -0
- package/okdb-functions-sandbox-worker.js +1 -1
- package/okdb-http-worker-child.js +1 -1
- package/okdb-views-bootstrap-worker.js +1 -1
- package/okdb.js +1 -1
- package/package.json +1 -1
- package/public/layouts/_default.ok.html +3 -1
- package/public/sections/embeddings/modals/edit-pipeline-modal.ok.js +1 -0
- package/public/sections/embeddings/modals/replace-embedder-modal.ok.js +1 -0
- package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/pipeline-flow-strip.ok.js +1 -0
- package/public/sections/embeddings/parts/pipeline-try-search.ok.js +1 -0
- package/public/sections/engines/engine-ui-utils.js +1 -1
- package/public/sections/engines/index.ok.html +1 -1
- package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
- package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
- package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
- package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
- package/public/sections/functions/index.ok.html +1 -1
- package/public/sections/system/index.ok.html +1 -1
- package/public/sections/system/parts/system-locks-panel.ok.js +1 -1
- package/public/sections/system/parts/system-storage-panel.ok.js +1 -0
- package/public/sections/views/index.ok.html +1 -1
- package/public/stores/auth-store.js +1 -1
- package/public/stores/events-store.js +1 -1
- package/public/styles.css +1 -1
- package/public/vendor/okjs/ok.esm.min.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-chart.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-marked.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-monaco.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-layer-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/virtualized.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-console.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/errors/ok-crash-info.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-contextmenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-flyover-panel.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-hotkeys-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-popout-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-submenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/layout/ok-resizer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/manifest.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-toast-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design-style.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme.ok.js +1 -1
- package/public/sections/db/parts/db-pipelines-panel.ok.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x6505f9=_0x53b1;function _0x53b1(_0xf05cc9,_0x49d982){_0xf05cc9=_0xf05cc9-0x165;const _0x2029ab=_0x2029();let _0x53b1a4=_0x2029ab[_0xf05cc9];return _0x53b1a4;}(function(_0x1ff62d,_0x1f530b){const _0x40532=_0x53b1,_0x628f3c=_0x1ff62d();while(!![]){try{const _0x3c0be3=-parseInt(_0x40532(0x31f))/0x1+-parseInt(_0x40532(0x2a5))/0x2+parseInt(_0x40532(0x327))/0x3*(-parseInt(_0x40532(0x283))/0x4)+parseInt(_0x40532(0x215))/0x5+parseInt(_0x40532(0x2bf))/0x6+parseInt(_0x40532(0x26c))/0x7*(-parseInt(_0x40532(0x274))/0x8)+parseInt(_0x40532(0x2ec))/0x9;if(_0x3c0be3===_0x1f530b)break;else _0x628f3c['push'](_0x628f3c['shift']());}catch(_0x4a233b){_0x628f3c['push'](_0x628f3c['shift']());}}}(_0x2029,0x93456));var require$$0$5=require(_0x6505f9(0x2bc)),require$$1$1=require(_0x6505f9(0x311)),require$$1=require(_0x6505f9(0x394)),require$$0$3=require('os'),require$$2=require(_0x6505f9(0x26a)),require$$0=require(_0x6505f9(0x275)),require$$0$2=require(_0x6505f9(0x363)),require$$0$1=require('fs'),require$$0$4=require(_0x6505f9(0x35e));function getDefaultExportFromCjs(_0x2ac225){const _0x10e744=_0x6505f9;return _0x2ac225&&_0x2ac225['__esModule']&&Object[_0x10e744(0x249)][_0x10e744(0x168)]['call'](_0x2ac225,_0x10e744(0x262))?_0x2ac225[_0x10e744(0x262)]:_0x2ac225;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x349c19=_0x6505f9;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x1f6fb0={'PUT':'put','REMOVE':_0x349c19(0x2cb),'INDEX_DROP':_0x349c19(0x2fd),'INDEX_REGISTER':_0x349c19(0x1e2),'INDEX_RESET':_0x349c19(0x264),'TYPE_REGISTER':_0x349c19(0x1f9),'TYPE_DROP':_0x349c19(0x329),'FTS_REGISTER':_0x349c19(0x2c9),'FTS_DROP':'dropFts','FTS_RESET':_0x349c19(0x2e3),'SCHEMA_SET':_0x349c19(0x18c),'SCHEMA_DROP':_0x349c19(0x16b),'TTL_SET':_0x349c19(0x36b),'TTL_CLEAR':'clearTtl'},_0x23f4e0={'SYSTEM_READY':'system:ready','SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x349c19(0x2d5),'SYSTEM_DRAIN':_0x349c19(0x17c),'SYSTEM_TYPE_DROP':_0x349c19(0x1dc),'SYSTEM_PROC':_0x349c19(0x229),'SYSTEM_BUS_STATE_CHANGE':_0x349c19(0x31d),'ITEM_CREATE':_0x349c19(0x2d6),'ITEM_UPDATE':_0x349c19(0x390),'ITEM_REMOVE':_0x349c19(0x2c1),'INDEX_RESET':_0x349c19(0x212),'INDEX_READY':_0x349c19(0x2d0),'INDEX_PROGRESS':_0x349c19(0x385),'VIEW_PROGRESS':_0x349c19(0x1f3),'INDEX_DROP':_0x349c19(0x210),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x349c19(0x18e),'FTS_DROP':_0x349c19(0x2af),'FTS_RESET':_0x349c19(0x36c),'SCHEMA_SET':'schema:set','SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x349c19(0x2c0),'UNIQUE_VIOLATION_RESOLVED':_0x349c19(0x334),'REF_VIOLATION':_0x349c19(0x319),'REF_VIOLATION_RESOLVED':_0x349c19(0x1e9),'SYNC_APPLY':_0x349c19(0x1c9),'TXN_START':_0x349c19(0x1a1),'TXN_END':'txn:end','TXN_ROLLBACK':_0x349c19(0x33e),'TYPE_REGISTERED':_0x349c19(0x239),'TYPE_DROP':_0x349c19(0x2fc),'ENV_OPENED':_0x349c19(0x1cb),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x349c19(0x178),'TTL_SET':_0x349c19(0x314),'TTL_CLEAR':_0x349c19(0x33b),'LICENSE_INVALID':_0x349c19(0x286),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x349c19(0x200),'LICENSE_REMOVED':'license:removed'},_0x2874df={'CREATING':'creating','RESETTING':_0x349c19(0x23a),'READY':_0x349c19(0x27b),'DROPPING':_0x349c19(0x331),'WAITING':_0x349c19(0x295)},_0x108634={'CREATED':_0x349c19(0x2db),'STARTING':_0x349c19(0x38a),'STARTED':_0x349c19(0x278),'STOPPING':'stopping','STOPPED':'stopped'},_0x139f53={'CREATING':'creating','READY':_0x349c19(0x27b),'HALTED':_0x349c19(0x28b),'STOPPED':'stopped','RESETTING':_0x349c19(0x23a)},_0xa44e8f=Object[_0x349c19(0x181)]({'POKE':_0x349c19(0x2f3),'DRAIN':_0x349c19(0x32a),'TYPE_DROP':_0x349c19(0x2ad),'PROC':_0x349c19(0x1d8),'ENV_RELEASE':_0x349c19(0x1f0)});return okdbEnums={'BUS_EVENTS':_0xa44e8f,'CHANGE_ACTIONS':_0x1f6fb0,'EVENTS':_0x23f4e0,'INDEX_STATE':_0x2874df,'OKDB_STATE':_0x108634,'VIEW_STATE':_0x139f53},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x2d9d95=_0x6505f9;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x17ee31,performance:_0x43c452}=require$$0,_0x296584=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x2d9d95(0x230),_0x5ac7f1=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x56d273=process.env.OKDB_LOOP_LAG_ALL==='1',_0x344b23=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x431de9{constructor(){const _0xab3d8d=_0x2d9d95;this[_0xab3d8d(0x251)]=_0x296584,this[_0xab3d8d(0x381)]=new Map(),this['_h']=null,this['_timer']=null,this[_0xab3d8d(0x19a)]=![],this[_0xab3d8d(0x1c1)]=(_0x4d06b3,_0x1c7f8e)=>process[_0xab3d8d(0x397)][_0xab3d8d(0x29c)](_0x4d06b3+(_0x1c7f8e?'\x20'+JSON[_0xab3d8d(0x276)](_0x1c7f8e):'')+'\x0a');}[_0x2d9d95(0x2d7)](){const _0x288098=_0x2d9d95;return _0x43c452[_0x288098(0x2d7)]();}['setLogger'](_0x5133ee){const _0x998c27=_0x2d9d95;if(typeof _0x5133ee===_0x998c27(0x296))this['_log']=_0x5133ee;}[_0x2d9d95(0x1a2)](_0x483943,_0x55f1ea,_0x1530fd){const _0x317fdf=_0x2d9d95;if(!this[_0x317fdf(0x251)])return;let _0xe15bc6=this[_0x317fdf(0x381)]['get'](_0x483943);!_0xe15bc6&&(_0xe15bc6={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x317fdf(0x381)][_0x317fdf(0x37b)](_0x483943,_0xe15bc6)),_0xe15bc6['ms']+=_0x55f1ea,_0xe15bc6[_0x317fdf(0x392)]+=0x1,_0x55f1ea>_0xe15bc6['maxMs']&&(_0xe15bc6[_0x317fdf(0x1b1)]=_0x55f1ea,_0xe15bc6[_0x317fdf(0x17d)]=_0x1530fd||'');}[_0x2d9d95(0x1d6)](_0xcc2438){const _0x1d4952=_0x2d9d95;if(!this['enabled']||this[_0x1d4952(0x19a)])return;this['_started']=!![];if(_0xcc2438)this[_0x1d4952(0x1c1)]=_0xcc2438;this['_h']=_0x17ee31({'resolution':0xa}),this['_h']['enable'](),this[_0x1d4952(0x2e1)]=setInterval(()=>this[_0x1d4952(0x170)](),_0x5ac7f1);if(this[_0x1d4952(0x2e1)][_0x1d4952(0x369)])this[_0x1d4952(0x2e1)][_0x1d4952(0x369)]();}['onWindow'](_0x30d910){const _0x5ebcd3=_0x2d9d95;if(!this[_0x5ebcd3(0x2ea)])this[_0x5ebcd3(0x2ea)]=new Set();this['_windowCbs'][_0x5ebcd3(0x237)](_0x30d910);if(!this[_0x5ebcd3(0x19a)])this[_0x5ebcd3(0x2c5)]();}[_0x2d9d95(0x205)](_0x31b506){const _0x2a1064=_0x2d9d95;this[_0x2a1064(0x2ea)]?.[_0x2a1064(0x2e7)](_0x31b506);}['_startAdmission'](){const _0x5141aa=_0x2d9d95;if(this[_0x5141aa(0x1ee)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x17ee31({'resolution':0xa}),this['_h'][_0x5141aa(0x293)]());const _0xd82238=_0x5ac7f1;this['_admissionTimer']=setInterval(()=>{const _0x193af0=_0x5141aa,_0x291f9f=this['_h'];if(!_0x291f9f)return;const _0x19d299=_0x291f9f[_0x193af0(0x23d)](0x63)/0xf4240,_0x2a643d=_0x291f9f[_0x193af0(0x284)]/0xf4240,_0x3b6c56=_0x291f9f['mean']/0xf4240;_0x291f9f[_0x193af0(0x16a)]();if(this[_0x193af0(0x2ea)])for(const _0x30bcbb of this[_0x193af0(0x2ea)]){try{_0x30bcbb({'p99Ms':_0x19d299,'maxMs':_0x2a643d,'meanMs':_0x3b6c56,'reportMs':_0xd82238});}catch{}}},_0xd82238);if(this[_0x5141aa(0x235)][_0x5141aa(0x369)])this[_0x5141aa(0x235)]['unref']();}[_0x2d9d95(0x170)](){const _0x3eafda=_0x2d9d95,_0x513c97=this['_h'],_0x44bc45=_0x513c97[_0x3eafda(0x284)]/0xf4240,_0x14f295=_0x513c97[_0x3eafda(0x23d)](0x63)/0xf4240,_0x23365b=_0x513c97['mean']/0xf4240;_0x513c97[_0x3eafda(0x16a)]();const _0x389344=[...this[_0x3eafda(0x381)][_0x3eafda(0x190)]()][_0x3eafda(0x2bb)](([_0x333fec,_0x5e2cb1])=>({'label':_0x333fec,..._0x5e2cb1}))['sort']((_0x36c262,_0xf14ff1)=>_0xf14ff1['ms']-_0x36c262['ms'])['slice'](0x0,0x8);this[_0x3eafda(0x381)][_0x3eafda(0x225)]();const _0x5a0655=_0x389344[_0x3eafda(0x2e6)]((_0x35af66,_0x1ce033)=>_0x35af66+_0x1ce033['ms'],0x0),_0x38426d=_0x389344[_0x3eafda(0x2bb)](_0x1869bf=>_0x1869bf[_0x3eafda(0x338)]+'='+_0x1869bf['ms'][_0x3eafda(0x291)](0x0)+_0x3eafda(0x350)+_0x1869bf[_0x3eafda(0x392)]+(_0x1869bf[_0x3eafda(0x1b1)]>0x5?'(worst\x20'+_0x1869bf[_0x3eafda(0x1b1)]['toFixed'](0x0)+'ms'+(_0x1869bf[_0x3eafda(0x17d)]?'\x20'+_0x1869bf[_0x3eafda(0x17d)]:'')+')':''));(_0x56d273||_0x44bc45>=_0x344b23)&&this['_log'](_0x3eafda(0x258)+_0x5ac7f1+'ms\x20max='+_0x44bc45[_0x3eafda(0x291)](0x0)+_0x3eafda(0x22b)+_0x14f295[_0x3eafda(0x291)](0x0)+_0x3eafda(0x1e0)+_0x23365b[_0x3eafda(0x291)](0x0)+'ms\x20busy='+_0x5a0655[_0x3eafda(0x291)](0x0)+'ms'+(_0x38426d[_0x3eafda(0x263)]?_0x3eafda(0x1fc)+_0x38426d[_0x3eafda(0x355)]('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x3eafda(0x2ea)])for(const _0x44259f of this[_0x3eafda(0x2ea)]){try{_0x44259f({'p99Ms':_0x14f295,'maxMs':_0x44bc45,'meanMs':_0x23365b,'reportMs':_0x5ac7f1});}catch{}}}[_0x2d9d95(0x243)](){const _0x221508=_0x2d9d95;if(this[_0x221508(0x2e1)])clearInterval(this[_0x221508(0x2e1)]);if(this['_h'])this['_h'][_0x221508(0x2b1)]();this[_0x221508(0x2e1)]=null,this['_h']=null,this['_started']=![];}}const _0x319ed8=new _0x431de9();if(_0x319ed8['enabled'])_0x319ed8[_0x2d9d95(0x1d6)]();return okdbLoopMonitor={'LOOP':_0x319ed8},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x2db843=require$$0$1,_0x26ac9c=require$$1;let _0x12a0b4,_0x34f008,_0x5c400a,_0x2f9468,_0xf2003b,_0x388367,_0x217dec,_0xadbda=![];const _0x264d37=new Set();let _0xdcbd17=null;const _0x7fa144=new Map();function _0x43e3e9(){const _0x4b38e2=_0x53b1;if(_0x12a0b4!==undefined)return _0x12a0b4;_0x12a0b4=process.env.OKDB_DIAG==='1';if(!_0x12a0b4)return![];_0x34f008=process.env.OKDB_DIAG_STACK==='1',_0x2f9468=Math[_0x4b38e2(0x284)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x5c400a=new Array(_0x2f9468),_0xf2003b=0x0,_0x388367=0x0,_0x217dec=process.env.OKDB_DIAG_DIR||null;if(_0x217dec)try{_0x2db843[_0x4b38e2(0x1d7)](_0x217dec,{'recursive':!![]});}catch{}return!![];}function _0x50b782(){return _0x12a0b4===undefined?_0x43e3e9():_0x12a0b4;}function _0x252ac0(_0x245bfe,_0x5718ac){const _0x35a269=_0x53b1;if(_0x12a0b4===undefined?!_0x43e3e9():!_0x12a0b4)return;let _0x5bb7e7;if(_0x34f008){const _0x25abd4=new Error()[_0x35a269(0x171)]||'';_0x5bb7e7=_0x25abd4[_0x35a269(0x1bd)]('\x0a')['slice'](0x3)[_0x35a269(0x2bb)](_0x3987d9=>_0x3987d9[_0x35a269(0x2b0)]())[_0x35a269(0x23e)](Boolean)['slice'](0x0,0x8);}_0x5c400a[_0xf2003b]={'seq':_0x388367++,'t':Date['now'](),'env':_0x245bfe,'kind':_0x5718ac||_0x35a269(0x2cf),'stack':_0x5bb7e7},_0xf2003b=(_0xf2003b+0x1)%_0x2f9468;}function _0x12be9f(_0x5bf97c){const _0x4e7dc4=_0x53b1,_0x53588b=[];for(let _0x1871af=0x0;_0x1871af<_0x2f9468;_0x1871af++){const _0x3c5546=_0x5c400a[(_0xf2003b-0x1-_0x1871af+_0x2f9468*0x2)%_0x2f9468];if(!_0x3c5546)continue;_0x53588b[_0x4e7dc4(0x18a)](_0x3c5546);if(_0x53588b[_0x4e7dc4(0x263)]>=_0x5bf97c)break;}return _0x53588b;}function _0x59e6f7(_0x583796){const _0x57d4fa=_0x53b1;try{process['stderr'][_0x57d4fa(0x29c)](_0x583796+'\x0a');}catch{}if(_0x217dec)try{_0x2db843[_0x57d4fa(0x2ef)](_0x26ac9c[_0x57d4fa(0x355)](_0x217dec,_0x57d4fa(0x20c)+process[_0x57d4fa(0x322)]+_0x57d4fa(0x1a9)),_0x583796+'\x0a');}catch{}}function _0x3f000b(_0x1b0b9d){const _0x461e60=_0x53b1,_0x1fbafb=_0x12be9f(_0x1b0b9d);if(!_0x1fbafb[_0x461e60(0x263)])return'\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)';const _0x4ddc33=Date['now']();return _0x1fbafb[_0x461e60(0x2bb)](_0x6a43d8=>{const _0x128be5=_0x461e60,_0x2825f4='\x20\x20#'+_0x6a43d8[_0x128be5(0x303)]+'\x20-'+(_0x4ddc33-_0x6a43d8['t'])+'ms\x20env='+_0x6a43d8[_0x128be5(0x24b)]+'\x20'+_0x6a43d8['kind'];return _0x6a43d8[_0x128be5(0x171)]&&_0x6a43d8[_0x128be5(0x171)][_0x128be5(0x263)]?_0x2825f4+_0x128be5(0x367)+_0x6a43d8[_0x128be5(0x171)][_0x128be5(0x355)](_0x128be5(0x367)):_0x2825f4;})[_0x461e60(0x355)]('\x0a');}function _0x5911f7(_0x1f7bbe,_0x1ac396){const _0x40cc16=_0x53b1,_0x61eac1=_0x40cc16(0x2c3)+_0x1f7bbe+'\x20@\x20'+new Date()[_0x40cc16(0x192)]()+_0x40cc16(0x2cc)+process[_0x40cc16(0x322)]+'\x20===',_0x15920e=[_0x61eac1,_0x40cc16(0x2d1)+(_0x1ac396&&_0x1ac396[_0x40cc16(0x171)]?_0x1ac396[_0x40cc16(0x171)]['split']('\x0a')[0x0]:_0x1ac396),'recent\x20writes\x20(newest\x20first)'+(_0x34f008?'':_0x40cc16(0x273))+':',_0x3f000b(0x18),_0x1ae2cf(),'='[_0x40cc16(0x313)](_0x61eac1['length']-0x1)];_0x59e6f7(_0x15920e[_0x40cc16(0x355)]('\x0a'));}function _0x38ebca(_0x573186){const _0x4079af=_0x53b1;if(!_0x50b782())return;const _0x430529=String(_0x573186&&_0x573186['message']||_0x573186||''),_0x6e13ee=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x4079af(0x22d)](_0x430529);_0x5911f7(_0x6e13ee?_0x4079af(0x1bb):'uncaughtException',_0x573186);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x6e13ee)return;try{console[_0x4079af(0x20f)](_0x573186&&_0x573186[_0x4079af(0x171)]?_0x573186[_0x4079af(0x171)]:_0x573186);}catch{}process[_0x4079af(0x175)](0x1);}function _0x8dbdde(_0x49156a){const _0x1f05c9=_0x53b1;if(!_0x50b782())return;const _0x1127c9=String(_0x49156a&&_0x49156a[_0x1f05c9(0x198)]||_0x49156a||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x1f05c9(0x22d)](_0x1127c9)&&_0x5911f7(_0x1f05c9(0x29b),_0x49156a);}function _0x1ae2cf(){const _0x4bc6eb=_0x53b1,_0x1a84cd=['drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):'];let _0x5570ea=![];for(const _0x5f154d of _0x264d37){const _0x2932f1=_0x5f154d&&_0x5f154d[_0x4bc6eb(0x299)];if(!_0x2932f1)continue;for(const [_0x784ab7,_0x26d2d1]of _0x2932f1){const _0x13855d=_0x26d2d1&&_0x26d2d1[_0x4bc6eb(0x366)]&&_0x26d2d1[_0x4bc6eb(0x366)][_0x4bc6eb(0x2c8)];if(!_0x13855d)continue;let _0x2cad78,_0x5a07b2;try{_0x2cad78=Atomics[_0x4bc6eb(0x2dc)](_0x13855d,0x0),_0x5a07b2=Atomics['load'](_0x13855d,0x1);}catch{continue;}if(_0x2cad78===0x0)continue;_0x5570ea=!![];const _0x545970=_0x2cad78>0x0?_0x4bc6eb(0x23b):_0x4bc6eb(0x1ef),_0x59040f=Date[_0x4bc6eb(0x2d7)]()-Math[_0x4bc6eb(0x1be)](_0x2cad78)*0x3e8,_0x4ed326=((()=>{const _0x16fd70=_0x4bc6eb;try{return _0x26d2d1[_0x16fd70(0x177)]&&_0x26d2d1[_0x16fd70(0x177)][_0x16fd70(0x1e8)]?_0x26d2d1[_0x16fd70(0x177)][_0x16fd70(0x1e8)]():null;}catch{return null;}})());_0x1a84cd['push'](_0x4bc6eb(0x2ff)+_0x784ab7+_0x4bc6eb(0x1f1)+_0x545970+_0x4bc6eb(0x184)+_0x59040f+_0x4bc6eb(0x281)+_0x5a07b2+(_0x4ed326?_0x4bc6eb(0x231)+_0x4ed326['depth']+_0x4bc6eb(0x298)+_0x4ed326['oldestPendingMs']+_0x4bc6eb(0x312)+_0x4ed326[_0x4bc6eb(0x207)]+'}':''));}}if(!_0x5570ea)_0x1a84cd['push'](_0x4bc6eb(0x227));return _0x1a84cd['join']('\x0a');}function _0x168c55(){const _0x479e47=_0x53b1;if(!_0x50b782())return;const _0x35b56e=Math[_0x479e47(0x284)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x18f80a=Date[_0x479e47(0x2d7)]();for(const _0x4d5500 of _0x264d37){const _0x5bab6a=_0x4d5500&&_0x4d5500[_0x479e47(0x299)];if(!_0x5bab6a)continue;for(const [_0x3dc0bd,_0x2b9110]of _0x5bab6a){const _0x51c6e2=_0x2b9110&&_0x2b9110['_coordinator']&&_0x2b9110[_0x479e47(0x366)][_0x479e47(0x2c8)];if(!_0x51c6e2)continue;let _0x46d90b;try{_0x46d90b=Atomics[_0x479e47(0x2dc)](_0x51c6e2,0x0);}catch{continue;}const _0x1910a1=_0x4d5500[_0x479e47(0x394)]+'|'+_0x3dc0bd;if(_0x46d90b<=0x0){_0x7fa144[_0x479e47(0x2e7)](_0x1910a1);continue;}const _0x56afe5=_0x18f80a-_0x46d90b*0x3e8,_0x10b32b=_0x7fa144[_0x479e47(0x36d)](_0x1910a1);if(_0x56afe5<_0x35b56e)continue;if(_0x10b32b&&_0x18f80a-_0x10b32b[_0x479e47(0x2e8)]<_0x35b56e)continue;_0x7fa144['set'](_0x1910a1,{'firstTs':_0x10b32b?_0x10b32b[_0x479e47(0x395)]:_0x46d90b,'dumpedAt':_0x18f80a});const _0x68db='\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20'+_0x56afe5+_0x479e47(0x24a)+_0x3dc0bd+'\x20@\x20'+new Date()[_0x479e47(0x192)]()+'\x20pid='+process[_0x479e47(0x322)]+'\x20===';_0x59e6f7([_0x68db,_0x1ae2cf(),'='[_0x479e47(0x313)](_0x68db['length']-0x1)][_0x479e47(0x355)]('\x0a'));}}}function _0x2e71e0(){const _0x2c3dce=_0x53b1;if(!_0x50b782()||_0xadbda)return;_0xadbda=!![],process[_0x2c3dce(0x188)](_0x2c3dce(0x16c),_0x38ebca),process[_0x2c3dce(0x188)](_0x2c3dce(0x1c8),_0x8dbdde);const _0x20470e=Math['max'](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0xdcbd17=setInterval(_0x168c55,_0x20470e);if(_0xdcbd17['unref'])_0xdcbd17['unref']();}function _0x165646(_0x4343a9){const _0x59033=_0x53b1;if(!_0x50b782()||!_0x4343a9)return;_0x264d37[_0x59033(0x237)](_0x4343a9),_0x2e71e0();}function _0x5375d0(_0x583422){const _0x11f4a0=_0x53b1;_0x264d37[_0x11f4a0(0x2e7)](_0x583422);}function _0x2de96f(){const _0x312054=_0x53b1;if(!_0x50b782())return{'enabled':![],'hint':_0x312054(0x353)};return{'enabled':!![],'stackCapture':!!_0x34f008,'recentWrites':_0x12be9f(0x10),'drain':_0x1ae2cf()};}return okdbDiag={'isEnabled':_0x50b782,'recordWrite':_0x252ac0,'installDiag':_0x2e71e0,'registerOkdb':_0x165646,'unregisterOkdb':_0x5375d0,'snapshot':_0x2de96f},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x53757a=_0x6505f9;if(hasRequiredOkdbWriter)return okdbWriter[_0x53757a(0x292)];hasRequiredOkdbWriter=0x1;const {performance:_0x345c06}=require$$0$2,_0x57d48c=requireOkdbDiag(),_0x4f5084=process.env.OKDB_COMMIT_MODE===_0x53757a(0x204);class _0x1e03eb{constructor(_0x3ee7d6){const _0x58fcce=_0x53757a;this[_0x58fcce(0x24b)]=_0x3ee7d6,this[_0x58fcce(0x28f)]=new Set(),this[_0x58fcce(0x25e)]=new Map(),this[_0x58fcce(0x336)]=0x0,this['_durs']=[],this[_0x58fcce(0x250)]=[],this['_highWater']=Math['max'](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x58fcce(0x326)]=0x0,this[_0x58fcce(0x399)]=[],this['_bpParkedTotal']=0x0;}async[_0x53757a(0x1e6)](_0x39b82c,_0x4d3c30){const _0x511b7b=_0x53757a;if(_0x57d48c[_0x511b7b(0x22e)]())_0x57d48c[_0x511b7b(0x26e)](this[_0x511b7b(0x24b)]?.[_0x511b7b(0x351)],_0x4d3c30);if(this[_0x511b7b(0x2f6)]){const _0x1e89f4=new Error(_0x511b7b(0x176));_0x1e89f4[_0x511b7b(0x203)]='ENV_CLOSING_RETRY';throw _0x1e89f4;}if(this['_highWater']>0x0){let _0x16e9fd=![];while(this['_outstanding']>=this[_0x511b7b(0x285)]&&!this[_0x511b7b(0x2f6)]){!_0x16e9fd&&(_0x16e9fd=!![],this[_0x511b7b(0x25a)]++),await new Promise(_0x4350b6=>this[_0x511b7b(0x399)][_0x511b7b(0x18a)](_0x4350b6));}if(this[_0x511b7b(0x2f6)]){const _0x49fa88=new Error(_0x511b7b(0x176));_0x49fa88['code']=_0x511b7b(0x216);throw _0x49fa88;}}this[_0x511b7b(0x326)]++;const _0x5407c2=this[_0x511b7b(0x24b)][_0x511b7b(0x366)];if(_0x5407c2)await _0x5407c2[_0x511b7b(0x341)]();if(this[_0x511b7b(0x2f6)]){if(_0x5407c2)_0x5407c2['afterWrite']();this['_outstanding']--;if(this[_0x511b7b(0x399)][_0x511b7b(0x263)]&&this[_0x511b7b(0x326)]<this['_highWater'])this['_bpWaiters']['shift']()();const _0x51aca1=new Error(_0x511b7b(0x176));_0x51aca1['code']=_0x511b7b(0x216);throw _0x51aca1;}const _0x211ea2=_0x345c06[_0x511b7b(0x2d7)]();if(_0x4f5084)try{const _0x1273db=this[_0x511b7b(0x24b)]['db']['transactionSync'](_0x39b82c);this['_committed']++;if(this[_0x511b7b(0x1ba)]['push'](_0x345c06[_0x511b7b(0x2d7)]()-_0x211ea2)>0x100)this[_0x511b7b(0x1ba)]['shift']();if(this[_0x511b7b(0x250)][_0x511b7b(0x18a)](_0x345c06[_0x511b7b(0x2d7)]())>0x800)this['_done'][_0x511b7b(0x27c)]();return _0x1273db;}finally{this[_0x511b7b(0x326)]--;if(this[_0x511b7b(0x399)][_0x511b7b(0x263)]&&this[_0x511b7b(0x326)]<this[_0x511b7b(0x285)])this[_0x511b7b(0x399)][_0x511b7b(0x27c)]()();if(_0x5407c2)_0x5407c2[_0x511b7b(0x1fe)]();}const _0x45629f=this[_0x511b7b(0x24b)]['db'][_0x511b7b(0x348)](_0x39b82c);this[_0x511b7b(0x28f)][_0x511b7b(0x237)](_0x45629f),this[_0x511b7b(0x25e)]['set'](_0x45629f,_0x211ea2);const _0x4ca377=()=>{const _0x40e6bd=_0x511b7b;this[_0x40e6bd(0x28f)]['delete'](_0x45629f),this[_0x40e6bd(0x25e)][_0x40e6bd(0x2e7)](_0x45629f),this[_0x40e6bd(0x336)]++,this[_0x40e6bd(0x326)]--;this['_bpWaiters'][_0x40e6bd(0x263)]&&this[_0x40e6bd(0x326)]<this['_highWater']&&this[_0x40e6bd(0x399)][_0x40e6bd(0x27c)]()();if(this[_0x40e6bd(0x1ba)][_0x40e6bd(0x18a)](_0x345c06[_0x40e6bd(0x2d7)]()-_0x211ea2)>0x100)this[_0x40e6bd(0x1ba)][_0x40e6bd(0x27c)]();if(this[_0x40e6bd(0x250)][_0x40e6bd(0x18a)](_0x345c06[_0x40e6bd(0x2d7)]())>0x800)this[_0x40e6bd(0x250)][_0x40e6bd(0x27c)]();};_0x45629f[_0x511b7b(0x1ca)](_0x4ca377,_0x4ca377);try{return await _0x45629f;}finally{if(_0x5407c2)_0x5407c2[_0x511b7b(0x1fe)]();}}[_0x53757a(0x1e8)](){const _0x3d36f0=_0x53757a,_0x9dd0c6=_0x345c06['now']();let _0x3fddf0=0x0;for(const _0x578509 of this[_0x3d36f0(0x25e)][_0x3d36f0(0x1ed)]()){const _0x59d868=_0x9dd0c6-_0x578509;if(_0x59d868>_0x3fddf0)_0x3fddf0=_0x59d868;}let _0x4e31b1=0x0;for(let _0x1fc94e=this[_0x3d36f0(0x250)][_0x3d36f0(0x263)]-0x1;_0x1fc94e>=0x0;_0x1fc94e--){if(_0x9dd0c6-this['_done'][_0x1fc94e]>0x3e8)break;_0x4e31b1++;}let _0x5bd2ab=0x0;if(this[_0x3d36f0(0x1ba)][_0x3d36f0(0x263)]){const _0xb16e8e=[...this[_0x3d36f0(0x1ba)]][_0x3d36f0(0x26f)]((_0xcebcf9,_0x139770)=>_0xcebcf9-_0x139770);_0x5bd2ab=_0xb16e8e[Math['min'](_0xb16e8e[_0x3d36f0(0x263)]-0x1,Math[_0x3d36f0(0x2ce)](_0xb16e8e[_0x3d36f0(0x263)]*0.99))];}return{'depth':this[_0x3d36f0(0x28f)][_0x3d36f0(0x302)],'oldestPendingMs':Math[_0x3d36f0(0x35c)](_0x3fddf0),'committed':this['_committed'],'commitsPerSec':_0x4e31b1,'commitP99Ms':Math[_0x3d36f0(0x35c)](_0x5bd2ab),'parkedNow':this[_0x3d36f0(0x399)][_0x3d36f0(0x263)],'parkedTotal':this[_0x3d36f0(0x25a)],'highWater':this[_0x3d36f0(0x285)]};}['inflightAgesMs'](){const _0x1b60ee=_0x53757a,_0x96b665=_0x345c06['now']();return[...this[_0x1b60ee(0x25e)][_0x1b60ee(0x1ed)]()]['map'](_0x1b456c=>Math[_0x1b60ee(0x35c)](_0x96b665-_0x1b456c))['sort']((_0xb87e46,_0x383075)=>_0x383075-_0xb87e46);}[_0x53757a(0x214)](){const _0x227ea0=_0x53757a;this[_0x227ea0(0x2f6)]=!![];for(const _0x4818e9 of this[_0x227ea0(0x399)][_0x227ea0(0x24c)](0x0))_0x4818e9();}async[_0x53757a(0x2d2)](){const _0x2364fe=_0x53757a;let _0x1d0166=0x0;while(this[_0x2364fe(0x28f)][_0x2364fe(0x302)]&&_0x1d0166++<0x3e8){await Promise['allSettled']([...this['_inflight']]);}}async[_0x53757a(0x1fb)](_0x2a65b9,_0x40bef8,_0xef64ee,_0xd8cac1){const _0xbfe3b9=_0x53757a;return this[_0xbfe3b9(0x1e6)](()=>{const _0x5e0856=_0xbfe3b9;if(_0xd8cac1===undefined)_0x2a65b9[_0x5e0856(0x1c7)](_0x40bef8,_0xef64ee);else _0x2a65b9['putSync'](_0x40bef8,_0xef64ee,_0xd8cac1);},_0xbfe3b9(0x330));}async[_0x53757a(0x2cb)](_0x3b3147,_0x775f6a){const _0x31e34f=_0x53757a;return this['transaction'](()=>_0x3b3147['removeSync'](_0x775f6a),_0x31e34f(0x1d0));}}async function _0x597e63(_0x14e9db,_0x38a436){const _0x54dd53=_0x53757a;if(_0x38a436==null)_0x38a436=Math[_0x54dd53(0x284)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x423fac=_0x14e9db?.['flushed'];if(!_0x423fac||typeof _0x423fac[_0x54dd53(0x1ca)]!==_0x54dd53(0x296))return;await Promise[_0x54dd53(0x33c)]([Promise[_0x54dd53(0x261)](_0x423fac)[_0x54dd53(0x16f)](()=>{}),new Promise(_0x2a0456=>{const _0x576bcf=_0x54dd53,_0x3d79d4=setTimeout(_0x2a0456,_0x38a436);if(_0x3d79d4['unref'])_0x3d79d4[_0x576bcf(0x369)]();})]);}catch{}}function _0x446f8f(_0x34b4d5){const _0xcba820=_0x53757a;if(_0x4f5084)return Promise['resolve']();const _0x7abfcd=_0x34b4d5?.[_0xcba820(0x193)];return _0x7abfcd&&typeof _0x7abfcd['then']===_0xcba820(0x296)?_0x7abfcd:Promise[_0xcba820(0x261)]();}return okdbWriter['exports']=_0x1e03eb,okdbWriter[_0x53757a(0x292)][_0x53757a(0x19c)]=_0x597e63,okdbWriter[_0x53757a(0x292)][_0x53757a(0x193)]=_0x446f8f,okdbWriter[_0x53757a(0x292)][_0x53757a(0x18d)]=_0x4f5084,okdbWriter[_0x53757a(0x292)];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x25c695=_0x6505f9;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x1737dc=require$$0$3,{SYNC_COMMITS:_0x78185a}=requireOkdbWriter(),_0x2e50f5=_0x25c695(0x30b);class _0x46e309{constructor(_0x197cbd,_0x50035e,_0x235c3b){const _0x3f3c5f=_0x25c695;this[_0x3f3c5f(0x267)]=_0x197cbd,this['_key']=_0x50035e,this[_0x3f3c5f(0x371)]=_0x235c3b,this[_0x3f3c5f(0x169)]=![],this[_0x3f3c5f(0x257)]=null,this[_0x3f3c5f(0x2f1)]=null;}[_0x25c695(0x226)](){const _0x36cd7c=_0x25c695;if(this[_0x36cd7c(0x169)])return![];try{const _0x5ea32e=this[_0x36cd7c(0x267)][_0x36cd7c(0x1e7)]()[_0x36cd7c(0x36d)](this[_0x36cd7c(0x2f8)]);if(!_0x5ea32e||_0x5ea32e[_0x36cd7c(0x182)]!==this['_acquiredAt'])return![];const _0x4f04c2=_0x5ea32e[_0x36cd7c(0x1f8)]??_0x5ea32e[_0x36cd7c(0x182)];if(_0x4f04c2+_0x5ea32e[_0x36cd7c(0x301)]<Date['now']())return![];return!![];}catch{return!this[_0x36cd7c(0x169)];}}[_0x25c695(0x1b0)](){const _0x215f30=_0x25c695;if(this[_0x215f30(0x169)])return null;try{return this['_lock'][_0x215f30(0x1e7)]()[_0x215f30(0x36d)](this[_0x215f30(0x2f8)])??null;}catch{return null;}}async[_0x25c695(0x21f)](_0x29398e){const _0x1162e3=_0x25c695;if(this[_0x1162e3(0x169)])return;try{const _0x1ea7e7=this[_0x1162e3(0x267)][_0x1162e3(0x1e7)]()['get'](this[_0x1162e3(0x2f8)]);if(!_0x1ea7e7||_0x1ea7e7[_0x1162e3(0x182)]!==this[_0x1162e3(0x371)])return;if(_0x78185a)this[_0x1162e3(0x267)][_0x1162e3(0x1e7)]()[_0x1162e3(0x1c7)](this['_key'],{..._0x1ea7e7,'ttlMs':_0x1ea7e7[_0x1162e3(0x301)]+_0x29398e});else await this[_0x1162e3(0x267)][_0x1162e3(0x1e7)]()[_0x1162e3(0x1fb)](this['_key'],{..._0x1ea7e7,'ttlMs':_0x1ea7e7[_0x1162e3(0x301)]+_0x29398e});}catch{}}async[_0x25c695(0x357)](){const _0x3b7290=_0x25c695;if(this[_0x3b7290(0x169)])return;if(this[_0x3b7290(0x2f1)])try{await this[_0x3b7290(0x2f1)];}catch{}clearInterval(this['_heartbeatTimer']),this[_0x3b7290(0x257)]=null,this[_0x3b7290(0x169)]=!![];try{const _0x5c4aca=this[_0x3b7290(0x267)]['_db']()[_0x3b7290(0x36d)](this[_0x3b7290(0x2f8)]);if(_0x5c4aca&&_0x5c4aca[_0x3b7290(0x182)]===this['_acquiredAt']){if(_0x78185a)this['_lock'][_0x3b7290(0x1e7)]()['removeSync'](this[_0x3b7290(0x2f8)]);else await this['_lock'][_0x3b7290(0x1e7)]()['remove'](this[_0x3b7290(0x2f8)]);}}catch{}}['_startHeartbeat'](_0x15424c,_0x32d61c){const _0x494cdb=_0x25c695,_0x4f3dd6=_0x32d61c??Math[_0x494cdb(0x2ce)](_0x15424c/0x3);this[_0x494cdb(0x257)]=setInterval(()=>{const _0x5ef7a2=_0x494cdb;if(this[_0x5ef7a2(0x169)])return;this[_0x5ef7a2(0x2f1)]=((async()=>{const _0x3edb66=_0x5ef7a2;try{const _0x20f060=this['_lock'][_0x3edb66(0x1e7)]()[_0x3edb66(0x36d)](this['_key']);if(!_0x20f060||_0x20f060[_0x3edb66(0x182)]!==this[_0x3edb66(0x371)]){this[_0x3edb66(0x169)]=!![],clearInterval(this[_0x3edb66(0x257)]),this[_0x3edb66(0x257)]=null;return;}if(_0x78185a)this[_0x3edb66(0x267)]['_db']()[_0x3edb66(0x1c7)](this[_0x3edb66(0x2f8)],{..._0x20f060,'updatedAt':Date[_0x3edb66(0x2d7)]()});else await this[_0x3edb66(0x267)][_0x3edb66(0x1e7)]()[_0x3edb66(0x1fb)](this[_0x3edb66(0x2f8)],{..._0x20f060,'updatedAt':Date[_0x3edb66(0x2d7)]()});}catch{}this[_0x3edb66(0x2f1)]=null;})());},_0x4f3dd6);if(this['_heartbeatTimer'][_0x494cdb(0x369)])this[_0x494cdb(0x257)][_0x494cdb(0x369)]();}}class _0x467cf7{constructor(_0x408260,{namespace:_0x57b638,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x2412e9=_0x25c695;this[_0x2412e9(0x374)]=_0x408260,this[_0x2412e9(0x2de)]=_0x57b638,this[_0x2412e9(0x301)]=ttlMs,this[_0x2412e9(0x279)]=heartbeatMs,this[_0x2412e9(0x2a6)]=null;}['_db'](){const _0x975fcf=_0x25c695;return!this[_0x975fcf(0x2a6)]&&(this[_0x975fcf(0x2a6)]=this[_0x975fcf(0x374)][_0x975fcf(0x309)](_0x2e50f5,{'dupSort':![]})),this[_0x975fcf(0x2a6)];}[_0x25c695(0x362)](){const _0x38b93c=_0x25c695;return!this[_0x38b93c(0x304)]&&(this[_0x38b93c(0x304)]=this['_rawDb'][_0x38b93c(0x309)](_0x2e50f5+_0x38b93c(0x2f0),{'dupSort':![]})),this[_0x38b93c(0x304)];}['_key'](_0x2f07c5){const _0x4bf842=_0x25c695;return this[_0x4bf842(0x2de)]+':'+_0x2f07c5;}['signalWant'](_0xb6d118){const _0x28afb5=_0x25c695;try{_0x78185a?this[_0x28afb5(0x362)]()[_0x28afb5(0x1c7)](this[_0x28afb5(0x2f8)](_0xb6d118),Date[_0x28afb5(0x2d7)]()):this[_0x28afb5(0x362)]()[_0x28afb5(0x1fb)](this[_0x28afb5(0x2f8)](_0xb6d118),Date[_0x28afb5(0x2d7)]())?.['catch']?.(()=>{});}catch{}}[_0x25c695(0x328)](_0x1bee2e,_0x305d5a=0x3e8){const _0x4153f3=_0x25c695;try{const _0x4b09aa=this[_0x4153f3(0x362)]()[_0x4153f3(0x36d)](this[_0x4153f3(0x2f8)](_0x1bee2e));return typeof _0x4b09aa==='number'&&Date[_0x4153f3(0x2d7)]()-_0x4b09aa<_0x305d5a;}catch{return![];}}[_0x25c695(0x1a0)](_0x2b7680){const _0x57ce3e=_0x25c695,_0x400fac=_0x2b7680[_0x57ce3e(0x1f8)]??_0x2b7680[_0x57ce3e(0x182)];return _0x400fac+_0x2b7680[_0x57ce3e(0x301)]<Date[_0x57ce3e(0x2d7)]();}static[_0x25c695(0x1a3)](_0x4d4e2f){const _0x510daf=_0x25c695,_0x60f8c2=_0x4d4e2f?.[_0x510daf(0x1b0)];if(!_0x60f8c2||typeof _0x60f8c2[_0x510daf(0x322)]!=='number')return![];if(_0x60f8c2[_0x510daf(0x21a)]!==_0x1737dc[_0x510daf(0x21a)]())return![];if(_0x60f8c2[_0x510daf(0x322)]===process[_0x510daf(0x322)])return![];try{return process['kill'](_0x60f8c2[_0x510daf(0x322)],0x0),![];}catch(_0x32c54e){return _0x32c54e['code']==='ESRCH';}}async[_0x25c695(0x2b4)](_0x5ab5a0,_0xf1ea16={},_0xa0450={}){const _0x1a8d12=_0x25c695,_0x2d136b=this['_key'](_0x5ab5a0),_0x1dfb06=_0xa0450[_0x1a8d12(0x301)]??this[_0x1a8d12(0x301)],_0x1de8c8=Date[_0x1a8d12(0x2d7)](),_0x4bb02f={'holder':{'pid':process[_0x1a8d12(0x322)],'hostname':_0x1737dc[_0x1a8d12(0x21a)](),..._0xf1ea16},'acquiredAt':_0x1de8c8,'updatedAt':_0x1de8c8,'ttlMs':_0x1dfb06};let _0x3c5f7f=![],_0x54c4d5=null;try{const _0x4291d5=()=>{const _0x568555=_0x1a8d12,_0x1423b1=this['_db']()[_0x568555(0x36d)](_0x2d136b);if(_0x1423b1&&!this['_isStale'](_0x1423b1)&&!_0x467cf7[_0x568555(0x1a3)](_0x1423b1)){const _0x3d2503=_0xf1ea16[_0x568555(0x29a)]!=null&&_0x1423b1[_0x568555(0x1b0)][_0x568555(0x322)]===process[_0x568555(0x322)]&&_0x1423b1[_0x568555(0x1b0)][_0x568555(0x29a)]===_0xf1ea16[_0x568555(0x29a)];if(!_0x3d2503){_0x3c5f7f=![],_0x54c4d5=_0x1423b1;return;}_0x4bb02f['acquiredAt']<=_0x1423b1[_0x568555(0x182)]&&(_0x4bb02f['acquiredAt']=_0x1423b1[_0x568555(0x182)]+0x1,_0x4bb02f[_0x568555(0x1f8)]=_0x4bb02f[_0x568555(0x182)]);}this['_db']()['put'](_0x2d136b,_0x4bb02f),_0x3c5f7f=!![],_0x54c4d5=_0x4bb02f;};if(_0x78185a)this[_0x1a8d12(0x1e7)]()[_0x1a8d12(0x271)](_0x4291d5);else await this[_0x1a8d12(0x1e7)]()[_0x1a8d12(0x348)](_0x4291d5);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x3c5f7f)return{'acquired':![],'handle':null,'current':_0x54c4d5};const _0x526381=new _0x46e309(this,_0x2d136b,_0x4bb02f[_0x1a8d12(0x182)]);return _0x526381['_startHeartbeat'](_0x1dfb06,this[_0x1a8d12(0x279)]),{'acquired':!![],'handle':_0x526381,'current':_0x54c4d5};}['inspect'](_0x163b7){const _0x64a4d7=_0x25c695;try{return this[_0x64a4d7(0x1e7)]()[_0x64a4d7(0x36d)](this[_0x64a4d7(0x2f8)](_0x163b7))??null;}catch{return null;}}[_0x25c695(0x388)](){const _0x12d187=_0x25c695,_0x2a9af2=this['namespace']+':',_0x1ff92e=[];try{for(const {key:_0x19994f,value:_0x53b1ad}of this[_0x12d187(0x1e7)]()['getRange']({'start':_0x2a9af2,'end':_0x2a9af2+'ÿ'})){typeof _0x19994f===_0x12d187(0x256)&&_0x19994f['startsWith'](_0x2a9af2)&&_0x1ff92e[_0x12d187(0x18a)]({'id':_0x19994f[_0x12d187(0x280)](_0x2a9af2[_0x12d187(0x263)]),'entry':_0x53b1ad});}}catch{}return _0x1ff92e;}static[_0x25c695(0x27d)](_0x6e79cc){const _0x109fa7=_0x25c695,_0x5cc523=[];try{const _0x4d1b7b=_0x6e79cc['openDB'](_0x2e50f5,{'dupSort':![]});for(const {key:_0x27a019,value:_0x24e754}of _0x4d1b7b['getRange']({})){if(typeof _0x27a019!==_0x109fa7(0x256))continue;const _0x4082de=_0x27a019[_0x109fa7(0x2ac)](':');if(_0x4082de<0x1)continue;_0x5cc523[_0x109fa7(0x18a)]({'namespace':_0x27a019[_0x109fa7(0x280)](0x0,_0x4082de),'id':_0x27a019['slice'](_0x4082de+0x1),'entry':_0x24e754});}}catch{}return _0x5cc523;}}return okdbLock={'OKDBLock':_0x467cf7},okdbLock;}var okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function _0x2029(){const _0x4b17bd=['\x20\x20env=','fanout','ttlMs','size','seq','_wantDbHandle','stopHeartbeat','liveThreadStats','warn','instances','openDB','none','~lock','_nodeDead','_listenAddr','has','off','_sampleOwnStats','cluster','\x20parkedNow=','repeat','ttl:set','ppid','listening','execArgv','rss','ref:violation',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','--inspect','ingest','system:bus_state_change','node','1101295iELFLt','workersConfigured','heapUsed','pid','find','_threadStats','events','_outstanding','1294701reFPfz','isWanted','dropType','bus:drain','_buildOwnRow','decommission','_processStartedAt','(code=','SYSTEM_PROC','raw-put','dropping','commitP99Ms','detachConsole','unique:violation_resolved','number','_committed','event','label','assign','functions','ttl:clear','race','msg','txn:rollback','listDesired','_selfKey','beforeWrite','confirm','draining','includes','value','deregisterSelf','_activateProcesses','childTransaction','VIEW_PROGRESS','epoch','object','--watch','meta','processKey','cpus','ms/','name','cli','set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)','caps','join','emit','release','depth','keys','_drain','consecutiveFailures','round','FTS_REGISTERED','node:events','resetReadTxn','~processes','_lastCpuPct','_wantDb','perf_hooks','win32','processor:ready','_coordinator','\x0a\x20\x20\x20\x20\x20\x20','[okdb-cluster]\x20respawning\x20worker\x20slot=','unref','sandbox','setTtl','fts:reset','get','entry','nodeKey','_clusterOrphanWatch','_acquiredAt','__okdbSlot','_singletonLock','_rawDb','supervisorKey','removeNode','SIGKILL','isDead','rows=','unclaimed','set','_enableChangelog','ITEM_REMOVE','_lastCpuAt','_sandbox','_maybePublish','_buckets','data','_caps','procmodeack/','index:progress','attach','http\x20worker\x20child\x20failed:\x20','list','_draining','starting','processingStatusView','[okdb-cluster]\x20worker\x20pid=','ms\x20(attempt\x20','async','log','item:update','open','count','setDesired','path','firstTs','selfKey','stderr','_cursors','_bpWaiters','_nodeDbFor','cursorKey','oldestPendingMs','_markSeen','--eval','setOwnMeta','hasOwnProperty','_released','reset','dropSchema','uncaughtException','uptime','_adminRelay','catch','_report','stack','singletonClaims','randomUUID','\x20(slot=','exit','okdb-writer:\x20env\x20closing\x20—\x20retry','_writer','ttl:expired','updateSupervisedChildStats','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','SYSTEM_STOPPED','system:drain','maxExtra','running','removeSupervisedChild','fn-runner','freeze','acquiredAt','stats','\x20drainAge=','slotKey','_flushTimer','_publishNow','prependListener','_nodeDb','push','processors','setSchema','SYNC_COMMITS','fts:registered','primary','entries','expiresAt','toISOString','committed','_onTick','register','threads','commitsPerSec','message','_collectSingletonClaims','_started','\x20sync','flushLmdb','_removeRowAsync','version','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','_isStale','txn:start','note','_holderDead','dead','_nodeDbCache','_isReader','_children','\x20worker(s)\x20remaining','.log','host','_hbTimer','_handleInProcess','startedAt','_isWriter','dedupeMax','holder','maxMs','mode','system','cpuWindowMs','kind','getClock','claimGated','inst:','type','_durs','ORPHAN\x20(env-closed\x20write)','http-server','split','abs','feed:','_dedupeMax','_log','removeSync','_pending','putNode','processor:paused','setupPrimary','putSync','unhandledRejection','sync:apply','then','env:opened','_drainOne','\x20ipc\x20error:\x20','decommissioning','ITEM_CREATE','raw-remove','INDEX_READY','publishOwnRow','attachFeed','ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20','[okdb-cluster]\x20','start','mkdirSync','bus:proc','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','isActive','kill','system:type_drop','isWorker','flushDebounce','writerStatus','ms\x20mean=','_desiredOverlay','registerIndex','replace','nodesView','_putRowAsync','transaction','_db','status','ref:violation_resolved','_quantum','lifecycle','fromEntries','values','_admissionStarted','copy','bus:env_release','\x20phase=','[okdb-cluster]\x20change-feed\x20init\x20failed:\x20','view:progress','online','_flushDebounce','INDEX_RESET','worker','updatedAt','registerType','FTS_RESET','put','\x20│\x20','single','afterWrite','processing','license:activated','getDesired','_changefeed','code','sync','offWindow','_onItem','parkedNow','getCmd','__vocab/version','_ensureDesired','external','okdb-diag.','_groupByProcess','CHANGEFEED_QUANTUM','error','index:drop','registry\x20publish\x20failing:\x20','index:reset','memoryUsage','markClosed','264445pYSzoT','ENV_CLOSING_RETRY','parse','_rowKey','_baselines','hostname','listNodes','_scheduleFlush','--test','\x20times\x20in\x20','extend','disconnect','cluster-wide','startHeartbeat','listenAddr','children','clear','isHeld','\x20\x20(no\x20env\x20draining)','noteListenAddr','system:proc','processor','ms\x20p99=','state','test','isEnabled','processorsView','true','\x20writer{depth=','pushEphemeral','close','compact','_admissionTimer','addSupervisedChild','add','--print','type:registered','resetting','SWAP','runtimeProcessesView','percentile','filter','cluster:','\x20HTTP\x20server(s)\x20on\x20port\x20','FTS_DROP','_buildProcessingFacet','stop','_statusEnv','_refreshDesiredSnapshot','_onStop','[okdb-cluster]\x20slot=','okdb','prototype','ms\x20on\x20env=','env','splice','engines','isConnected','SYSTEM_POKE','_done','enabled','reap','isPrimary','ITEM_UPDATE','procmode/','string','_heartbeatTimer','loop-lag\x20','_lastPublishAt','_bpParkedTotal','level','next','cpuUsage','_enqueuedAt','info','\x20died\x20','resolve','default','length','resetIndex','_onProcEvent','reportThreadStats','_lock','processor:progress','_dedupeKey','crypto','_participate','20958BgtJnJ','options','recordWrite','sort','_instanceId','transactionSync','_lastCpuWindowMs','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','2272BFeyia','node:perf_hooks','stringify','process','started','heartbeatMs','getProcess','ready','shift','listAll','allSettled','publishChildRow','slice','ms\x20activeWriters=','instanceId','4meXQfe','max','_highWater','license:invalid','deaths','_migrateVocab','INDEX_PROGRESS','\x20worker\x20slot=','halted','_openEnvLazy','bumpCmd','embedded','_inflight','\x20(durable\x20desired-state)','toFixed','exports','enable','_rootDb','waiting','function','_startedAt','\x20oldestPendingMs=','_envs','processorId','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','write','\x20statusEnv=','building','processor:error','quantum','processor:retry','\x20in\x20','listen','processes','2086014ROXyxs','_lockDb','node/','busy','_onPoke','_seen','ESRCH','indexOf','bus:type_drop','_collectWriterFacet','fts:drop','trim','disable','registry-publish','processor:resumed','tryAcquire','hasDesired','startsWith','_handlePoke','createEnvironment','_ownMeta','from','map','./okdb','_lastCpuUsage','slot','5939292jGLRPy','unique:violation','item:remove','_systemEnv','\x0a===\x20OKDB_DIAG\x20',')\x20exited\x20','_startAdmission','_singletonLocks','user','view','registerFts','_putRowSync','remove','\x20pid=','getRange','floor','commit','index:ready','error:\x20','drain','REMOVE','http','system:poke','item:create','now','min','_buildChildRow','role','created','load','heapTotal','namespace',',\x20signal=','_clusterWorkerAttached','_timer','connected','resetFts','~processes:cmd','claims','reduce','delete','dumpedAt','respawnTimer','_windowCbs','_publishFailWarned','26879544rYxgCX','_cmd','once','appendFileSync',':want','_heartbeatInFlight','_desired','bus:poke','compaction','killable','_closed','tierList','_key','send','participate','_supervisorKey','type:drop','dropIndex','_kind'];_0x2029=function(){return _0x4b17bd;};return _0x2029();}function requireOkdbProcessRegistry(){const _0x2ac2f1=_0x6505f9;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x5630bb=require$$0$3,_0x520439=require$$1$1,_0x3b56bd=require$$2,{LOOP:_0x4a856d}=requireOkdbLoopMonitor(),{OKDBLock:_0x1803c0}=requireOkdbLock(),{SYNC_COMMITS:_0x5805ea}=requireOkdbWriter(),_0x740393=_0x2ac2f1(0x360),_0x356b61=_0x2ac2f1(0x31e),_0x4d8e2d='~processes:desired',_0x2f768e=_0x2ac2f1(0x2e4),_0x3e0005=(_0x1d6b82,_0x536685)=>_0x1d6b82+':'+_0x536685,_0x4b609f=(_0x1a7279,_0x3b0b47)=>_0x1a7279+'::'+_0x3b0b47,_0x311e67=(_0x210f13,_0x41b276)=>_0x210f13+'/'+_0x41b276,_0x33fae2=(_0x3a11f7,_0x18d952)=>_0x3a11f7+'#'+_0x18d952,_0x14bad7=_0x5ce7dc=>{const _0x55dfad=_0x2ac2f1;if(_0x5ce7dc?.[_0x55dfad(0x34e)])return _0x5ce7dc[_0x55dfad(0x34e)];const _0xfaa8f0=_0x5ce7dc?.[_0x55dfad(0x36f)];return typeof _0xfaa8f0===_0x55dfad(0x256)&&_0xfaa8f0[_0x55dfad(0x344)]('#')?_0xfaa8f0[_0x55dfad(0x280)](0x0,_0xfaa8f0[_0x55dfad(0x2ac)]('#')):_0xfaa8f0;},_0x5d5cc2=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x28ab7d=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x4e288c=_0x5d5cc2*0x3,_0x4d54d3=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math['max'](0x927c0,_0x4e288c*0x14),_0x5ca496=[_0x2ac2f1(0x268),_0x2ac2f1(0x365),'processor:retry','processor:error',_0x2ac2f1(0x1c5),_0x2ac2f1(0x2b3)];let _0x55f677=null;function _0x311318(){const _0x513f3a=_0x2ac2f1;if(_0x55f677==null)_0x55f677=Math[_0x513f3a(0x35c)]((Date[_0x513f3a(0x2d7)]()-process[_0x513f3a(0x16d)]()*0x3e8)/0x3e8)*0x3e8;return _0x55f677;}function _0x185644(_0x59834a){const _0x3b3f35=_0x2ac2f1;if(process.env.OKDB_PROCESS_KILL===_0x3b3f35(0x30f))return![];if(_0x59834a?.[_0x3b3f35(0x26d)]?.[_0x3b3f35(0x2a4)]&&typeof _0x59834a[_0x3b3f35(0x26d)]['processes']===_0x3b3f35(0x34b)&&_0x59834a[_0x3b3f35(0x26d)][_0x3b3f35(0x2a4)][_0x3b3f35(0x1db)]===![])return![];return!![];}function _0x1a62d3(_0x588a8a,_0x1906fa){const _0x379081=_0x2ac2f1,_0x5cb79f=!!_0x1906fa?.[_0x379081(0x18b)];switch(_0x588a8a){case _0x379081(0x18f):return{'controllable':_0x5cb79f,'decommissionable':![],'killable':!![],'killConfirm':_0x379081(0x221)};case _0x379081(0x352):case'standalone':return{'controllable':_0x5cb79f,'decommissionable':![],'killable':!![],'killConfirm':_0x379081(0x342)};case _0x379081(0x28e):return{'controllable':![],'decommissionable':![],'killable':![]};case _0x379081(0x1bc):case'queue-worker':case _0x379081(0x180):case'worker':return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x53a352{constructor(_0x59c872){const _0x5b7ac3=_0x2ac2f1;this[_0x5b7ac3(0x248)]=_0x59c872,this[_0x5b7ac3(0x244)]=null,this['_desired']=null,this[_0x5b7ac3(0x1e1)]=new Map(),this[_0x5b7ac3(0x2ed)]=null,this[_0x5b7ac3(0x1ae)]=![],this[_0x5b7ac3(0x1a6)]=![],this['_processStartedAt']=_0x311318(),this[_0x5b7ac3(0x340)]=_0x3e0005(process['pid'],this[_0x5b7ac3(0x32d)]),this[_0x5b7ac3(0x270)]=_0x3b56bd[_0x5b7ac3(0x173)]()[_0x5b7ac3(0x280)](0x0,0x8),this[_0x5b7ac3(0x218)]=_0x33fae2(this[_0x5b7ac3(0x340)],this[_0x5b7ac3(0x270)]),this[_0x5b7ac3(0x297)]=Date[_0x5b7ac3(0x2d7)](),this[_0x5b7ac3(0x2fe)]=null,this[_0x5b7ac3(0x2fb)]=null,this[_0x5b7ac3(0x30d)]=null,this[_0x5b7ac3(0x1ab)]=null,this[_0x5b7ac3(0x265)]=null,this[_0x5b7ac3(0x194)]=null,this[_0x5b7ac3(0x259)]=0x0,this['_ownMeta']={},this['_children']=new Map(),this[_0x5b7ac3(0x2bd)]=process[_0x5b7ac3(0x25d)](),this[_0x5b7ac3(0x37e)]=Date[_0x5b7ac3(0x2d7)](),this['_lastCpuPct']=0x0,this[_0x5b7ac3(0x324)]=new Map();}get['selfKey'](){const _0xecd4f7=_0x2ac2f1;return this[_0xecd4f7(0x340)];}get['rowKey'](){const _0x2d9806=_0x2ac2f1;return this[_0x2d9806(0x218)];}['_caps'](_0x25feab,_0x2a3900){const _0x565e43=_0x2ac2f1,_0x3cc1c1=_0x1a62d3(_0x25feab,_0x2a3900);if(_0x3cc1c1[_0x565e43(0x2f5)]&&!_0x185644(this['okdb']))return{..._0x3cc1c1,'killable':![],'killConfirm':undefined};return _0x3cc1c1;}[_0x2ac2f1(0x1da)](){const _0xc19621=_0x2ac2f1;return!!this[_0xc19621(0x244)];}[_0x2ac2f1(0x167)](_0x5809fc){const _0x50ccd9=_0x2ac2f1;Object[_0x50ccd9(0x339)](this['_ownMeta'],_0x5809fc||{});}[_0x2ac2f1(0x228)](_0x209798){const _0x35cc2c=_0x2ac2f1;if(_0x209798)this[_0x35cc2c(0x30d)]=_0x209798;}[_0x2ac2f1(0x195)](_0x3da04c={}){const _0x25e8fe=_0x2ac2f1;return this['okdb'][_0x25e8fe(0x347)](_0x3da04c);}[_0x2ac2f1(0x38b)](){const _0x1130ae=_0x2ac2f1,_0x396035={};let _0x41dbcf=0x0,_0x4d31f5=0x0;const _0x93993=new Set();for(const _0x1d4b45 of this[_0x1130ae(0x21b)]()){_0x4d31f5++;const _0x47f1ae=_0x1d4b45[_0x1130ae(0x1ff)];if(!_0x47f1ae)continue;if(_0x47f1ae[_0x1130ae(0x2fa)])_0x41dbcf++;for(const _0x4dc1a6 of _0x47f1ae[_0x1130ae(0x18b)]||[]){if(![_0x1130ae(0x1fd),_0x1130ae(0x300)]['includes'](_0x4dc1a6[_0x1130ae(0x1b2)]))continue;(_0x4dc1a6[_0x1130ae(0x22c)]===_0x1130ae(0x1f4)||_0x4dc1a6[_0x1130ae(0x22c)]===_0x1130ae(0x29e))&&_0x4dc1a6[_0x1130ae(0x39b)]&&_0x93993[_0x1130ae(0x237)]((_0x4dc1a6['env']||_0x1130ae(0x262))+':'+_0x4dc1a6[_0x1130ae(0x39b)]);const _0x16c156=_0x4dc1a6[_0x1130ae(0x24b)]||'default';(_0x396035[_0x16c156]||=[])[_0x1130ae(0x18a)]({..._0x4dc1a6,'env':_0x16c156,'owner':{'pid':_0x1d4b45[_0x1130ae(0x322)]??null,'kind':_0x1d4b45[_0x1130ae(0x1b5)]??null}});}}for(const [_0x398b13,_0x33af54]of Object[_0x1130ae(0x190)](_0x396035)){for(const _0x540393 of _0x33af54){if(_0x540393['mode']===_0x1130ae(0x1fd)&&!_0x540393[_0x1130ae(0x1b7)]){const _0x49f95d=_0x398b13+':'+(_0x540393[_0x1130ae(0x39b)]??'');if(!_0x93993[_0x1130ae(0x30e)](_0x49f95d))_0x540393[_0x1130ae(0x37a)]=!![];}}}return{'envs':_0x396035,'policy':null,'participation':{'participating':_0x41dbcf,'total':_0x4d31f5},'source':'workers'};}[_0x2ac2f1(0x22f)](){const _0x420163=_0x2ac2f1,_0x4aa7d8=_0x754b32=>{const _0x512bfb=_0x53b1;if(_0x754b32[_0x512bfb(0x22c)]==='online'||_0x754b32['state']===_0x512bfb(0x29e)||_0x754b32['state']===_0x512bfb(0x20f))return 0x3;if(_0x754b32[_0x512bfb(0x1b7)])return 0x1;return 0x2;},_0x350eab=new Map();for(const _0x9f0de3 of this['listNodes']()){for(const _0x2a0f53 of _0x9f0de3[_0x420163(0x1ff)]?.[_0x420163(0x18b)]||[]){const _0x52e8a5={..._0x2a0f53,'owner':{'pid':_0x9f0de3[_0x420163(0x322)]??null,'kind':_0x9f0de3['kind']??null,'host':_0x9f0de3['host']??null}},_0x19c51c=_0x2a0f53['mode']==='single'?'1ofN:'+(_0x2a0f53[_0x420163(0x24b)]??'')+'::'+(_0x2a0f53[_0x420163(0x39b)]??_0x2a0f53[_0x420163(0x1b9)]??_0x2a0f53['id']):_0x420163(0x1b8)+(_0x9f0de3['nodeKey']??_0x9f0de3[_0x420163(0x34e)]??'')+'::'+(_0x2a0f53['env']??'')+'::'+_0x2a0f53['id'],_0x1d017c=_0x350eab[_0x420163(0x36d)](_0x19c51c);if(!_0x1d017c||_0x4aa7d8(_0x52e8a5)>_0x4aa7d8(_0x1d017c))_0x350eab['set'](_0x19c51c,_0x52e8a5);}}return[..._0x350eab[_0x420163(0x1ed)]()];}['clusterStatusView'](){const _0x43d473=_0x2ac2f1,_0x580071=Date['now'](),_0x17d24c=this[_0x43d473(0x21b)](),_0x18167d=_0x22a856=>Math[_0x43d473(0x284)](0x0,Math[_0x43d473(0x35c)]((_0x580071-(_0x22a856[_0x43d473(0x1ad)]||_0x580071))/0x3e8)),_0x27995a=_0x17d24c['find'](_0x11165e=>_0x11165e[_0x43d473(0x1b5)]==='primary'),_0x236c5d=_0x17d24c[_0x43d473(0x23e)](_0x930aab=>_0x930aab[_0x43d473(0x1b5)]===_0x43d473(0x1bc));if(_0x27995a||_0x236c5d['length'])return{'primary':_0x27995a?{'pid':_0x27995a[_0x43d473(0x322)],'uptime':_0x18167d(_0x27995a)}:null,'workers':_0x236c5d[_0x43d473(0x2bb)](_0x158b33=>({'pid':_0x158b33[_0x43d473(0x322)],'uptime':_0x18167d(_0x158b33)})),'workersConfigured':_0x27995a?.['meta']?.[_0x43d473(0x320)]??_0x236c5d[_0x43d473(0x263)],'mode':_0x43d473(0x311)};const _0x2bbcb5=_0x17d24c[_0x43d473(0x323)](_0x38eeed=>_0x38eeed['kind']===_0x43d473(0x352)||_0x38eeed[_0x43d473(0x1b5)]==='standalone'||_0x38eeed[_0x43d473(0x1b5)]==='embedded'),_0x8f41bb=_0x2bbcb5?{'pid':_0x2bbcb5[_0x43d473(0x322)],'uptime':_0x18167d(_0x2bbcb5)}:{'pid':process['pid'],'uptime':Math[_0x43d473(0x284)](0x0,Math[_0x43d473(0x35c)](process['uptime']()))};return{'primary':_0x8f41bb,'workers':[_0x8f41bb],'workersConfigured':0x1,'mode':'single'};}[_0x2ac2f1(0x1e4)](){const _0x23252c=_0x2ac2f1;return this[_0x23252c(0x20d)]();}['treeView'](){const _0x359dd3=_0x2ac2f1,_0x2c3e11=new Map();for(const _0x3216d2 of this[_0x359dd3(0x20d)]())_0x2c3e11[_0x359dd3(0x37b)](_0x3216d2[_0x359dd3(0x34e)],{..._0x3216d2,'children':[]});const _0x3a849f=[];for(const _0xee960e of _0x2c3e11['values']()){const _0x106426=_0xee960e['supervisorKey']?_0x2c3e11[_0x359dd3(0x36d)](_0xee960e[_0x359dd3(0x375)]):null;if(_0x106426&&_0x106426!==_0xee960e)_0x106426[_0x359dd3(0x224)][_0x359dd3(0x18a)](_0xee960e);else _0x3a849f[_0x359dd3(0x18a)](_0xee960e);}const _0x2ab3f2=(_0x520819,_0x2e6960)=>_0x520819['kind']===_0x2e6960['kind']?(_0x520819[_0x359dd3(0x322)]||0x0)-(_0x2e6960[_0x359dd3(0x322)]||0x0):(_0x520819[_0x359dd3(0x1b5)]??'')<(_0x2e6960[_0x359dd3(0x1b5)]??'')?-0x1:0x1,_0x16e5da=_0x3e33ee=>{const _0x5ac873=_0x359dd3;_0x3e33ee[_0x5ac873(0x26f)](_0x2ab3f2);for(const _0x2e5851 of _0x3e33ee)if(_0x2e5851['children']['length'])_0x16e5da(_0x2e5851[_0x5ac873(0x224)]);};return _0x16e5da(_0x3a849f),_0x3a849f;}[_0x2ac2f1(0x27a)](_0x22c69f){const _0x27c1cd=_0x2ac2f1;return this[_0x27c1cd(0x20d)]()[_0x27c1cd(0x323)](_0x1cde17=>_0x1cde17['processKey']===_0x22c69f)??null;}[_0x2ac2f1(0x20d)](_0x26eadc=Date[_0x2ac2f1(0x2d7)]()){const _0x381959=_0x2ac2f1,_0x454782=new Map();for(const _0x47370a of this[_0x381959(0x21b)]()){const _0x4ce46f=_0x14bad7(_0x47370a);let _0x1775e0=_0x454782[_0x381959(0x36d)](_0x4ce46f);!_0x1775e0&&(_0x1775e0={'processKey':_0x4ce46f,'nodeKey':_0x4ce46f,'pid':_0x47370a[_0x381959(0x322)],'ppid':_0x47370a[_0x381959(0x315)]??null,'host':_0x47370a[_0x381959(0x1aa)]??null,'kind':_0x47370a['kind'],'role':null,'supervisorKey':_0x47370a[_0x381959(0x375)]??null,'slot':_0x47370a['slot']??null,'slotKey':_0x47370a[_0x381959(0x185)]??null,'caps':_0x47370a[_0x381959(0x354)]??null,'lifecycle':_0x47370a[_0x381959(0x1eb)]??null,'uptime':Math[_0x381959(0x284)](0x0,Math[_0x381959(0x35c)]((_0x26eadc-(_0x47370a[_0x381959(0x1ad)]||_0x26eadc))/0x3e8)),'startedAt':_0x47370a[_0x381959(0x1ad)]??null,'meta':_0x47370a[_0x381959(0x34d)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x454782[_0x381959(0x37b)](_0x4ce46f,_0x1775e0));_0x1775e0[_0x381959(0x308)][_0x381959(0x18a)]({'instanceId':_0x47370a[_0x381959(0x282)]??null,'role':_0x47370a[_0x381959(0x2da)]??null,'listenAddr':_0x47370a[_0x381959(0x223)]??null,'lifecycle':_0x47370a[_0x381959(0x1eb)]??null,'processing':_0x47370a[_0x381959(0x1ff)]??null});if(!_0x1775e0[_0x381959(0x2da)]&&_0x47370a[_0x381959(0x2da)])_0x1775e0[_0x381959(0x2da)]=_0x47370a[_0x381959(0x2da)];if(!_0x1775e0['listenAddr']&&_0x47370a['listenAddr'])_0x1775e0[_0x381959(0x223)]=_0x47370a[_0x381959(0x223)];if(!_0x1775e0['processing']&&_0x47370a[_0x381959(0x1ff)])_0x1775e0[_0x381959(0x1ff)]=_0x47370a[_0x381959(0x1ff)];if(!_0x1775e0['engines']&&_0x47370a['engines'])_0x1775e0[_0x381959(0x24d)]=_0x47370a[_0x381959(0x24d)];if(!_0x1775e0[_0x381959(0x172)]&&_0x47370a[_0x381959(0x172)])_0x1775e0[_0x381959(0x172)]=_0x47370a[_0x381959(0x172)];if(_0x1775e0[_0x381959(0x354)]==null&&_0x47370a[_0x381959(0x354)])_0x1775e0['caps']=_0x47370a[_0x381959(0x354)];if(_0x47370a[_0x381959(0x183)]&&(!_0x1775e0[_0x381959(0x183)]||(_0x47370a[_0x381959(0x183)]['at']??0x0)>(_0x1775e0[_0x381959(0x183)]['at']??0x0)))_0x1775e0[_0x381959(0x183)]=_0x47370a['stats'];}return[..._0x454782[_0x381959(0x1ed)]()];}[_0x2ac2f1(0x23c)](){const _0x15fc0d=_0x2ac2f1,_0x3c2338=[],_0x394980={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x4a6013 of this[_0x15fc0d(0x20d)]()){_0x3c2338[_0x15fc0d(0x18a)]({'processKey':_0x4a6013[_0x15fc0d(0x34e)],'kind':_0x4a6013[_0x15fc0d(0x1b5)],'pid':_0x4a6013[_0x15fc0d(0x322)],'supervisorKey':_0x4a6013[_0x15fc0d(0x375)],'meta':_0x4a6013['meta']??null,'uptime':_0x4a6013[_0x15fc0d(0x16d)],'stats':_0x4a6013['stats']??null}),_0x394980[_0x15fc0d(0x2a4)]++;if(_0x4a6013['stats']){_0x394980[_0x15fc0d(0x318)]+=_0x4a6013[_0x15fc0d(0x183)]['rss']||0x0,_0x394980[_0x15fc0d(0x321)]+=(_0x4a6013[_0x15fc0d(0x183)]['heapUsed']||0x0)+(_0x4a6013['stats'][_0x15fc0d(0x196)]?.[_0x15fc0d(0x321)]||0x0);const _0x239155=_0x4a6013[_0x15fc0d(0x183)]['threads'];_0x239155&&(_0x394980[_0x15fc0d(0x196)]['count']+=_0x239155[_0x15fc0d(0x392)]||0x0,_0x394980[_0x15fc0d(0x196)][_0x15fc0d(0x36a)]+=_0x239155[_0x15fc0d(0x36a)]||0x0,_0x394980['threads'][_0x15fc0d(0x2a8)]+=_0x239155[_0x15fc0d(0x2a8)]||0x0);}}return{'totals':_0x394980,'nodes':_0x3c2338};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x35945a=_0x2ac2f1;this['_isWriter']=this['_isWriter']||!!writer,this[_0x35945a(0x1a6)]=this[_0x35945a(0x1a6)]||!!reader,this[_0x35945a(0x2fe)]=kind||this['_kind']||(_0x520439[_0x35945a(0x1dd)]?_0x35945a(0x1bc):_0x35945a(0x352)),this[_0x35945a(0x2fb)]=supervisorKey??this['_supervisorKey'],this['_listenAddr']=listenAddr??this[_0x35945a(0x30d)],this[_0x35945a(0x20a)](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x35945a(0x244)]){const _0x181228=await this[_0x35945a(0x248)][_0x35945a(0x2b8)](_0x740393,{'sync':![],'durability':'fast'});if(!_0x181228['hasType'](_0x356b61))await _0x181228[_0x35945a(0x1f9)](_0x356b61);this[_0x35945a(0x244)]=_0x181228;}return this[_0x35945a(0x244)];}[_0x2ac2f1(0x189)](){const _0xedcbfe=_0x2ac2f1;return this[_0xedcbfe(0x39a)]!==this[_0xedcbfe(0x244)]&&(this[_0xedcbfe(0x39a)]=this[_0xedcbfe(0x244)],this[_0xedcbfe(0x1a5)]=this[_0xedcbfe(0x244)]['_getType'](_0x356b61)[_0xedcbfe(0x382)]),this[_0xedcbfe(0x1a5)];}[_0x2ac2f1(0x1e5)](_0x20c168){const _0xda641f=_0x2ac2f1;if(_0x5805ea)return this[_0xda641f(0x189)]()[_0xda641f(0x1c7)](_0x20c168[_0xda641f(0x36f)],_0x20c168,0x1);const _0x47a90d=this[_0xda641f(0x189)]()[_0xda641f(0x1fb)](_0x20c168[_0xda641f(0x36f)],_0x20c168,0x1);if(_0x47a90d&&typeof _0x47a90d[_0xda641f(0x1ca)]===_0xda641f(0x296))_0x47a90d[_0xda641f(0x1ca)](undefined,()=>{});return _0x47a90d;}[_0x2ac2f1(0x2ca)](_0x4d4b1d){const _0x424375=_0x2ac2f1;return this[_0x424375(0x189)]()[_0x424375(0x1c7)](_0x4d4b1d[_0x424375(0x36f)],_0x4d4b1d,0x1);}[_0x2ac2f1(0x19d)](_0xbb6103){const _0x56ddd4=_0x2ac2f1;if(_0x5805ea)try{return this[_0x56ddd4(0x189)]()[_0x56ddd4(0x1c2)](_0xbb6103);}catch{return![];}const _0x2b67aa=this[_0x56ddd4(0x189)]()[_0x56ddd4(0x2cb)](_0xbb6103);if(_0x2b67aa&&typeof _0x2b67aa[_0x56ddd4(0x1ca)]===_0x56ddd4(0x296))_0x2b67aa[_0x56ddd4(0x1ca)](undefined,()=>{});return _0x2b67aa;}async[_0x2ac2f1(0x1c4)](_0x3127d6){const _0x24d440=_0x2ac2f1;if(!this[_0x24d440(0x244)]||!this[_0x24d440(0x1ae)]||!_0x3127d6?.['nodeKey'])return;return this[_0x24d440(0x1e5)](_0x3127d6);}async[_0x2ac2f1(0x376)](_0x48eef0){const _0x35f723=_0x2ac2f1;if(!this[_0x35f723(0x244)]||!this[_0x35f723(0x1ae)]||!_0x48eef0)return;const _0x28e01c=_0x48eef0[_0x35f723(0x344)]('#'),_0x5c0693=[];for(const {key:_0x39abab}of this['_statusEnv']['getRange'](_0x356b61)){if(_0x39abab===_0x48eef0||!_0x28e01c&&typeof _0x39abab===_0x35f723(0x256)&&_0x39abab[_0x35f723(0x2b6)](_0x48eef0+'#'))_0x5c0693['push'](_0x39abab);}for(const _0x256a38 of _0x5c0693){try{this[_0x35f723(0x189)]()[_0x35f723(0x1c2)](_0x256a38);}catch{}}}[_0x2ac2f1(0x30c)](_0x5d63e8){const _0x454194=_0x2ac2f1;if(typeof _0x5d63e8?.[_0x454194(0x322)]!==_0x454194(0x335))return![];if(_0x5d63e8[_0x454194(0x1aa)]!==_0x5630bb[_0x454194(0x21a)]())return![];if(_0x5d63e8['pid']===process[_0x454194(0x322)])return![];if(_0x5d63e8[_0x454194(0x191)]!=null&&_0x5d63e8[_0x454194(0x191)]<Date['now']()-_0x4d54d3)return!![];try{return process[_0x454194(0x1db)](_0x5d63e8[_0x454194(0x322)],0x0),![];}catch(_0x2e53de){return _0x2e53de[_0x454194(0x203)]===_0x454194(0x2ab);}}[_0x2ac2f1(0x21b)](){const _0x35c73d=_0x2ac2f1;if(!this['_statusEnv'])return[];try{this[_0x35c73d(0x244)]['db']?.[_0x35c73d(0x35f)]?.();}catch{}const _0x464a48=Date[_0x35c73d(0x2d7)](),_0x144cbe=_0x5630bb[_0x35c73d(0x21a)](),_0x5740ee=[];for(const {value:_0xd8a8bc}of this['_statusEnv'][_0x35c73d(0x2cd)](_0x356b61)){if(!_0xd8a8bc)continue;let _0x1530f0=null;_0xd8a8bc[_0x35c73d(0x1aa)]===_0x144cbe&&typeof _0xd8a8bc[_0x35c73d(0x322)]===_0x35c73d(0x335)&&(_0x1530f0=!this['_nodeDead'](_0xd8a8bc));if(_0x1530f0===![])continue;const _0x224e11=_0xd8a8bc[_0x35c73d(0x191)]==null||_0xd8a8bc['expiresAt']>=_0x464a48;if(_0x1530f0===!![]||_0x224e11)_0x5740ee[_0x35c73d(0x18a)](_0xd8a8bc);}return _0x5740ee;}async['reap'](_0x1f7150=0x0){const _0x17b0f2=_0x2ac2f1;if(!this[_0x17b0f2(0x244)]||!this[_0x17b0f2(0x1ae)])return;const _0x5d06f2=Date[_0x17b0f2(0x2d7)]()-_0x1f7150,_0x373894=new Set(),_0x2d53b4=[],_0x45e3f3=_0x5630bb[_0x17b0f2(0x21a)]();for(const {key:_0x57ba64,value:_0x317a86}of this[_0x17b0f2(0x244)][_0x17b0f2(0x2cd)](_0x356b61)){if(!_0x317a86)continue;const _0x9c991b=_0x317a86['host']===_0x45e3f3&&typeof _0x317a86['pid']===_0x17b0f2(0x335),_0xbd4861=_0x9c991b?this[_0x17b0f2(0x30c)](_0x317a86):_0x317a86[_0x17b0f2(0x191)]!=null&&_0x317a86[_0x17b0f2(0x191)]<_0x5d06f2;if(_0xbd4861)_0x2d53b4[_0x17b0f2(0x18a)](_0x57ba64);else _0x373894[_0x17b0f2(0x237)](_0x14bad7(_0x317a86)??_0x57ba64);}for(const _0x3c3a43 of _0x2d53b4)this[_0x17b0f2(0x19d)](_0x3c3a43);if(this[_0x17b0f2(0x20a)]()){const _0x332118=[];for(const {key:_0x223250}of this[_0x17b0f2(0x33f)](_0x17b0f2(0x31e))){if(!_0x373894[_0x17b0f2(0x30e)](_0x223250)){if(_0x5805ea)try{this['_desired'][_0x17b0f2(0x1c2)](_0x17b0f2(0x2a7)+_0x223250);}catch{}else _0x332118[_0x17b0f2(0x18a)](this[_0x17b0f2(0x2f2)][_0x17b0f2(0x2cb)](_0x17b0f2(0x2a7)+_0x223250));}}if(_0x332118['length'])await Promise[_0x17b0f2(0x27e)](_0x332118);}}[_0x2ac2f1(0x222)](_0x38004c=null){const _0xf393d4=_0x2ac2f1;if(this[_0xf393d4(0x1ab)])return;if(!this[_0xf393d4(0x1ae)]||!this[_0xf393d4(0x244)]){this[_0xf393d4(0x248)]?.[_0xf393d4(0x38f)]?.['warn']?.('registry\x20heartbeat\x20skipped\x20(writer='+this[_0xf393d4(0x1ae)]+_0xf393d4(0x29d)+!!this[_0xf393d4(0x244)]+_0xf393d4(0x31a),{'feature':_0xf393d4(0x2a4)});return;}this[_0xf393d4(0x194)]=_0x38004c,this[_0xf393d4(0x265)]=()=>this['_maybePublish']();for(const _0xca82fb of _0x5ca496)this[_0xf393d4(0x248)][_0xf393d4(0x325)]['on'](_0xca82fb,this[_0xf393d4(0x265)]);this[_0xf393d4(0x187)]();const _0x26717a=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x5d5cc2;this[_0xf393d4(0x1ab)]=setInterval(()=>{const _0x23bd8a=_0xf393d4;if(this[_0x23bd8a(0x194)])try{this['_onTick']();}catch{}this[_0x23bd8a(0x187)](),this[_0x23bd8a(0x252)]()['catch'](()=>{});},_0x26717a);if(this[_0xf393d4(0x1ab)]['unref'])this[_0xf393d4(0x1ab)][_0xf393d4(0x369)]();}[_0x2ac2f1(0x380)](){const _0x519b9d=_0x2ac2f1;if(!this[_0x519b9d(0x1ae)]||!this[_0x519b9d(0x244)])return;if(Date['now']()-this[_0x519b9d(0x259)]<_0x28ab7d)return;this[_0x519b9d(0x187)]();}[_0x2ac2f1(0x187)](){const _0x198631=_0x2ac2f1;if(!this[_0x198631(0x1ae)]||!this['_statusEnv'])return;this['_lastPublishAt']=Date[_0x198631(0x2d7)]();try{const _0x197709=[this[_0x198631(0x32b)]()];for(const _0x2850d6 of this['_children'][_0x198631(0x1ed)]())_0x197709['push'](this[_0x198631(0x2d9)](_0x2850d6));const _0x5c5622=_0x4a856d[_0x198631(0x251)]?_0x4a856d[_0x198631(0x2d7)]():0x0;for(const _0x2e2b73 of _0x197709){try{this['_putRowSync'](_0x2e2b73),this['_publishFailWarned']=![];}catch(_0xdf0c73){!this[_0x198631(0x2eb)]&&(this[_0x198631(0x2eb)]=!![],this[_0x198631(0x248)]?.[_0x198631(0x38f)]?.['warn']?.(_0x198631(0x211)+_0xdf0c73['message'],{'feature':_0x198631(0x2a4)}));}}if(_0x4a856d[_0x198631(0x251)])_0x4a856d[_0x198631(0x1a2)](_0x198631(0x2b2),_0x4a856d['now']()-_0x5c5622,_0x198631(0x379)+_0x197709['length']+_0x198631(0x19b));}catch(_0x289074){!this[_0x198631(0x2eb)]&&(this[_0x198631(0x2eb)]=!![],this['okdb']?.[_0x198631(0x38f)]?.[_0x198631(0x307)]?.(_0x198631(0x211)+_0x289074[_0x198631(0x198)],{'feature':'processes'}));}}async[_0x2ac2f1(0x305)](){const _0x5241b9=_0x2ac2f1;if(this['_onProcEvent']){for(const _0x27f80d of _0x5ca496){try{this['okdb'][_0x5241b9(0x325)][_0x5241b9(0x30f)](_0x27f80d,this[_0x5241b9(0x265)]);}catch{}}this[_0x5241b9(0x265)]=null;}this[_0x5241b9(0x1ab)]&&(clearInterval(this[_0x5241b9(0x1ab)]),this['_hbTimer']=null);try{if(this[_0x5241b9(0x244)]&&this[_0x5241b9(0x1ae)])await this[_0x5241b9(0x376)](this[_0x5241b9(0x218)]);}catch{}}async[_0x2ac2f1(0x346)](){const _0x2f3c67=_0x2ac2f1;if(!this['_statusEnv']||!this[_0x2f3c67(0x1ae)])return;try{await this[_0x2f3c67(0x376)](this['_rowKey']);}catch{}try{const _0x5eb738=[];for(const {value:_0x1ce9d1}of this['_statusEnv'][_0x2f3c67(0x2cd)](_0x356b61)){if(_0x1ce9d1?.[_0x2f3c67(0x315)]===process[_0x2f3c67(0x322)]&&_0x1ce9d1[_0x2f3c67(0x36f)])_0x5eb738[_0x2f3c67(0x18a)](_0x1ce9d1['nodeKey']);}for(const _0x36069a of _0x5eb738){try{await this['removeNode'](_0x36069a);}catch{}}}catch{}}async[_0x2ac2f1(0x1d2)](){const _0x5b8c2a=_0x2ac2f1;return this[_0x5b8c2a(0x1c4)](this['_buildOwnRow']());}async[_0x2ac2f1(0x27f)](_0x7bed91){const _0x3d879f=_0x2ac2f1;if(!this[_0x3d879f(0x244)]||!this[_0x3d879f(0x1ae)])return;return this['putNode'](this[_0x3d879f(0x2d9)](_0x7bed91));}['_buildChildRow']({pid:_0x80b9a5,startedAt:_0x52ce16,kind:_0x45ff16,supervisorKey:_0x43e309,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x2ac2f1(0x17e),meta:meta=null,stats:stats=null}){const _0x23d4a1=_0x2ac2f1,_0x514ae9=Date[_0x23d4a1(0x2d7)](),_0x4ee4f2=_0x3e0005(_0x80b9a5,_0x52ce16);return{'nodeKey':_0x33fae2(_0x4ee4f2,'0'),'processKey':_0x4ee4f2,'instanceId':'0','pid':_0x80b9a5,'startedAt':_0x52ce16,'ppid':process[_0x23d4a1(0x322)],'host':_0x5630bb['hostname'](),'supervisorKey':_0x43e309,'slot':slot,'slotKey':slotKey,'kind':_0x45ff16,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x514ae9,'expiresAt':_0x514ae9+_0x4e288c,'caps':this[_0x23d4a1(0x383)](_0x45ff16,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async[_0x2ac2f1(0x236)](_0x230d5d){const _0xcb4598=_0x2ac2f1;if(!_0x230d5d?.[_0xcb4598(0x322)])return null;const _0x5bfda6=_0x3e0005(_0x230d5d['pid'],_0x230d5d[_0xcb4598(0x1ad)]);this[_0xcb4598(0x1a7)]['set'](_0x5bfda6,{..._0x230d5d,'supervisorKey':_0x230d5d[_0xcb4598(0x375)]??this['_selfKey']});if(this[_0xcb4598(0x1ae)])await this[_0xcb4598(0x27f)](this[_0xcb4598(0x1a7)][_0xcb4598(0x36d)](_0x5bfda6))[_0xcb4598(0x16f)]?.(()=>{});return _0x5bfda6;}[_0x2ac2f1(0x17f)](_0x25770d){const _0x3c9f23=_0x2ac2f1;if(!_0x25770d)return;return this[_0x3c9f23(0x1a7)][_0x3c9f23(0x2e7)](_0x25770d),this['removeNode'](_0x25770d);}[_0x2ac2f1(0x310)](){const _0x42c924=_0x2ac2f1,_0x30da1d=Date[_0x42c924(0x2d7)](),_0x14b490=process['cpuUsage'](),_0xbca1dd=(_0x30da1d-this[_0x42c924(0x37e)])*0x3e8;if(_0xbca1dd>=0x3d090){const _0x397841=_0x14b490[_0x42c924(0x2c7)]-this['_lastCpuUsage'][_0x42c924(0x2c7)]+(_0x14b490['system']-this[_0x42c924(0x2bd)][_0x42c924(0x1b3)]),_0x1ab98f=_0x5630bb[_0x42c924(0x34f)]()[_0x42c924(0x263)]||0x1;this['_lastCpuPct']=Math['min'](0x64,Math[_0x42c924(0x35c)](_0x397841/(_0xbca1dd*_0x1ab98f)*0x64)),this[_0x42c924(0x272)]=Math[_0x42c924(0x35c)](_0xbca1dd/0x3e8),this[_0x42c924(0x2bd)]=_0x14b490,this['_lastCpuAt']=_0x30da1d;}const _0x17691b=process['memoryUsage'](),_0x17996f=this[_0x42c924(0x324)][_0x42c924(0x302)];let _0x1bbd88=0x0;if(_0x17996f>0x0){const _0x33f5b4=[this['okdb'],...this[_0x42c924(0x248)][_0x42c924(0x299)]?.['values']?.()??[]];for(const _0x2e22a3 of _0x33f5b4){const _0x55db0c=_0x2e22a3[_0x42c924(0x33a)]?.[_0x42c924(0x37f)];if(_0x55db0c)_0x1bbd88+=_0x55db0c[_0x42c924(0x306)]['busy'];}}let _0x3d25e1=null;const _0x8f155f=_0x17996f;if(_0x8f155f>0x0){let _0x32c8b0=0x0;for(const _0x2463ab of this[_0x42c924(0x324)]['values']())_0x32c8b0+=_0x2463ab[_0x42c924(0x321)]||0x0;_0x3d25e1={'count':_0x8f155f,'heapUsed':_0x32c8b0,'sandbox':_0x17996f,'busy':_0x1bbd88};}return{'rss':_0x17691b[_0x42c924(0x318)],'heapUsed':_0x17691b[_0x42c924(0x321)],'heapTotal':_0x17691b[_0x42c924(0x2dd)],'external':_0x17691b[_0x42c924(0x20b)],'cpuPct':this[_0x42c924(0x361)],'cpuWindowMs':this['_lastCpuWindowMs']??null,'threads':_0x3d25e1,'at':_0x30da1d};}[_0x2ac2f1(0x266)](_0x5701d3,_0x47ecce){const _0x42176f=_0x2ac2f1;if(!_0x5701d3||!_0x47ecce)return;this[_0x42176f(0x324)]['set'](_0x5701d3,_0x47ecce);}['clearThreadStats'](_0x54ccb9){this['_threadStats']['delete'](_0x54ccb9);}[_0x2ac2f1(0x179)](_0x21bf8e,_0x381329,_0x243e1f=undefined){const _0x4cf77f=_0x2ac2f1,_0x56e848=this['_children'][_0x4cf77f(0x36d)](_0x21bf8e);if(!_0x56e848||!_0x381329)return;if(_0x243e1f!==undefined)_0x56e848[_0x4cf77f(0x1ff)]=_0x243e1f;_0x56e848[_0x4cf77f(0x183)]={'rss':_0x381329['rss']??null,'heapUsed':_0x381329['heapUsed']??null,'heapTotal':_0x381329[_0x4cf77f(0x2dd)]??null,'external':_0x381329['external']??null,'cpuPct':_0x381329['cpuPct']??null,'cpuWindowMs':_0x381329[_0x4cf77f(0x1b4)]??null,'threads':_0x381329['threads']??null,'claims':_0x381329[_0x4cf77f(0x2e5)]??null,'envsOpen':_0x381329['envsOpen']??null,'at':Date['now']()};}[_0x2ac2f1(0x32b)](){const _0x2e93a7=_0x2ac2f1,_0x45dab0=Date[_0x2e93a7(0x2d7)](),_0x126e40=this['okdb']['_role']||{},_0x2c40db=this['_kind']||'cli';return{'nodeKey':this['_rowKey'],'processKey':this[_0x2e93a7(0x340)],'instanceId':this[_0x2e93a7(0x270)],'pid':process[_0x2e93a7(0x322)],'startedAt':this[_0x2e93a7(0x32d)],'instanceStartedAt':this[_0x2e93a7(0x297)],'ppid':typeof process[_0x2e93a7(0x315)]===_0x2e93a7(0x335)?process[_0x2e93a7(0x315)]:null,'host':_0x5630bb[_0x2e93a7(0x21a)](),'supervisorKey':this[_0x2e93a7(0x2fb)]??null,'kind':_0x2c40db,'role':{'engines':!!_0x126e40['engines'],'processors':!!_0x126e40[_0x2e93a7(0x18b)],'compaction':_0x126e40[_0x2e93a7(0x2f4)],'http':_0x126e40[_0x2e93a7(0x2d4)]},'listenAddr':this[_0x2e93a7(0x30d)]??null,'heartbeatAt':_0x45dab0,'expiresAt':_0x45dab0+_0x4e288c,'caps':this['_caps'](_0x2c40db,_0x126e40),'lifecycle':{'state':_0x2e93a7(0x17e),'desiredVersionApplied':null},'meta':{...this[_0x2e93a7(0x2b9)]},'processing':_0x126e40[_0x2e93a7(0x18b)]?this[_0x2e93a7(0x242)]():null,'engines':_0x126e40[_0x2e93a7(0x24d)]?[...this[_0x2e93a7(0x248)]['_servingEngines']??[]]:null,'singletonClaims':this[_0x2e93a7(0x199)](),'stats':this[_0x2e93a7(0x310)](),'writers':this[_0x2e93a7(0x2ae)]()};}[_0x2ac2f1(0x2ae)](){const _0xcd869e=_0x2ac2f1,_0x5e205c={};try{for(const [_0x5b99d1,_0x193951]of this[_0xcd869e(0x248)][_0xcd869e(0x299)]){try{const _0x15c0cc=_0x193951[_0xcd869e(0x1df)]?.();if(!_0x15c0cc)continue;if(!_0x15c0cc[_0xcd869e(0x358)]&&!_0x15c0cc[_0xcd869e(0x193)]&&!(_0x15c0cc[_0xcd869e(0x207)]??0x0)&&!_0x15c0cc[_0xcd869e(0x343)])continue;_0x5e205c[_0x5b99d1]={'depth':_0x15c0cc[_0xcd869e(0x358)],'oldestPendingMs':_0x15c0cc[_0xcd869e(0x39c)],'committed':_0x15c0cc[_0xcd869e(0x193)],'commitsPerSec':_0x15c0cc[_0xcd869e(0x197)],'commitP99Ms':_0x15c0cc[_0xcd869e(0x332)],'parkedNow':_0x15c0cc[_0xcd869e(0x207)]??0x0,'draining':!!_0x15c0cc[_0xcd869e(0x343)]};}catch{}}}catch{}return Object[_0xcd869e(0x359)](_0x5e205c)['length']?_0x5e205c:null;}[_0x2ac2f1(0x199)](){const _0x457282=_0x2ac2f1,_0x27ae96=process[_0x457282(0x322)],_0x2abec6=Date[_0x457282(0x2d7)](),_0x29a29a=_0x4e2ec0=>{const _0x10ce4a=_0x457282;if(!_0x4e2ec0)return[];const _0xf3abfe=[];try{for(const {id:_0x390176,entry:_0x37c4de}of _0x4e2ec0['list']()){if(_0x37c4de?.['holder']?.[_0x10ce4a(0x322)]!==_0x27ae96)continue;const _0x3a1607=_0x37c4de['updatedAt']??_0x37c4de[_0x10ce4a(0x182)]??0x0;if(_0x3a1607+(_0x37c4de[_0x10ce4a(0x301)]??0x0)<_0x2abec6)continue;_0xf3abfe[_0x10ce4a(0x18a)](_0x390176);}}catch{}return _0xf3abfe;},_0x4875e1=_0x29a29a(this['_singletonLock'](_0x457282(0x234))),_0x2f9648=_0x29a29a(this[_0x457282(0x373)](_0x457282(0x204)));if(!_0x4875e1[_0x457282(0x263)]&&!_0x2f9648[_0x457282(0x263)])return null;return{'compact':_0x4875e1,'replicate':_0x2f9648};}[_0x2ac2f1(0x373)](_0x16e72b){const _0x4ac713=_0x2ac2f1;if(!this['okdb']?.['_rootDb'])return null;if(!this[_0x4ac713(0x2c6)])this['_singletonLocks']=new Map();let _0x5c734f=this[_0x4ac713(0x2c6)][_0x4ac713(0x36d)](_0x16e72b);if(!_0x5c734f)try{_0x5c734f=new _0x1803c0(this[_0x4ac713(0x248)][_0x4ac713(0x294)],{'namespace':_0x16e72b}),this['_singletonLocks'][_0x4ac713(0x37b)](_0x16e72b,_0x5c734f);}catch{return null;}return _0x5c734f;}['_buildProcessingFacet'](){const _0x4d467e=_0x2ac2f1,_0x1a0967=[];try{for(const [_0xeb26ca,_0x4461c4]of this[_0x4d467e(0x248)][_0x4d467e(0x299)]){if(_0xeb26ca[_0x4d467e(0x2b6)]('~'))continue;for(const _0x23a857 of _0x4461c4[_0x4d467e(0x22a)][_0x4d467e(0x2f7)]())_0x1a0967[_0x4d467e(0x18a)]({..._0x23a857,'env':_0xeb26ca});}}catch{}return{'participate':this[_0x4d467e(0x248)]['processors']?.[_0x4d467e(0x26b)]??![],'processors':_0x1a0967};}[_0x2ac2f1(0x20a)](){const _0x1f1c3d=_0x2ac2f1;if(this[_0x1f1c3d(0x2f2)])return!![];const _0x15fe46=this[_0x1f1c3d(0x248)][_0x1f1c3d(0x294)];if(!_0x15fe46)return![];return this[_0x1f1c3d(0x2f2)]=_0x15fe46[_0x1f1c3d(0x309)](_0x4d8e2d,{'dupSort':![]}),this[_0x1f1c3d(0x2ed)]=_0x15fe46[_0x1f1c3d(0x309)](_0x2f768e,{'dupSort':![]}),!![];}async[_0x2ac2f1(0x288)](){const _0x24e4b9=_0x2ac2f1;if(!this[_0x24e4b9(0x20a)]())return;const _0x465c17=_0x24e4b9(0x209),_0x11ecd9=0x1,_0xda7147=this[_0x24e4b9(0x2f2)][_0x24e4b9(0x36d)](_0x465c17)??0x0;if(_0xda7147>=_0x11ecd9)return;const _0x341011=_0x1c5544=>{const _0x3df16a=_0x24e4b9;if(_0x1c5544===_0x3df16a(0x1f7))return _0x3df16a(0x1fd);if(_0x1c5544===_0x3df16a(0x38e))return _0x3df16a(0x300);return _0x1c5544;};await this[_0x24e4b9(0x248)][_0x24e4b9(0x2c2)][_0x24e4b9(0x177)][_0x24e4b9(0x1e6)](()=>{const _0x5527c6=_0x24e4b9;for(const _0x397dee of[_0x5527c6(0x255),_0x5527c6(0x384)]){for(const {key:_0x5293b4,value:_0x59f3c6}of this[_0x5527c6(0x2f2)]['getRange']({'start':_0x397dee,'end':_0x397dee+'ÿ'})){if(typeof _0x5293b4!==_0x5527c6(0x256)||!_0x5293b4[_0x5527c6(0x2b6)](_0x397dee))break;const _0x278584=_0x341011(_0x59f3c6[_0x5527c6(0x1b2)]);if(_0x278584!==_0x59f3c6[_0x5527c6(0x1b2)])this[_0x5527c6(0x2f2)]['put'](_0x5293b4,{..._0x59f3c6,'mode':_0x278584});}}this[_0x5527c6(0x2f2)][_0x5527c6(0x1fb)](_0x465c17,_0x11ecd9);});}[_0x2ac2f1(0x2b5)](){const _0x409e6f=_0x2ac2f1;return!!this[_0x409e6f(0x2f2)];}[_0x2ac2f1(0x201)](_0x58a46a,_0x2e37ae){const _0x561746=_0x2ac2f1;if(!this['_ensureDesired']())return null;const _0x5db3dd=_0x58a46a+'/'+_0x2e37ae;return this[_0x561746(0x245)](),this[_0x561746(0x1e1)]['get'](_0x5db3dd)??this[_0x561746(0x2f2)][_0x561746(0x36d)](_0x5db3dd)??null;}['_refreshDesiredSnapshot'](){const _0x216c5e=_0x2ac2f1;if(!_0x5805ea)return;try{this['okdb'][_0x216c5e(0x2c2)]?.['db']?.[_0x216c5e(0x35f)]?.();}catch{}}async[_0x2ac2f1(0x393)](_0x474056,_0x3485ab,_0x2c8eff){const _0x56f560=_0x2ac2f1;if(!this[_0x56f560(0x20a)]())return null;const _0x5d9423=_0x474056+'/'+_0x3485ab;this['_refreshDesiredSnapshot']();const _0x732f34=this['_desiredOverlay']['get'](_0x5d9423)??this['_desired'][_0x56f560(0x36d)](_0x5d9423)??{'version':0x0},_0x4f706b=(_0x732f34[_0x56f560(0x19e)]||0x0)+0x1,_0x5c0f59={..._0x732f34,..._0x2c8eff,'version':_0x4f706b,'updatedAt':Date[_0x56f560(0x2d7)]()};this[_0x56f560(0x1e1)][_0x56f560(0x37b)](_0x5d9423,_0x5c0f59);try{await this[_0x56f560(0x248)][_0x56f560(0x2c2)][_0x56f560(0x177)]['transaction'](()=>{const _0x29b67e=_0x56f560;this[_0x29b67e(0x2f2)]['put'](_0x5d9423,_0x5c0f59);});}finally{if(this[_0x56f560(0x1e1)]['get'](_0x5d9423)===_0x5c0f59)this[_0x56f560(0x1e1)][_0x56f560(0x2e7)](_0x5d9423);}return _0x4f706b;}['listDesired'](_0x49f93){const _0x14beb7=_0x2ac2f1;if(!this[_0x14beb7(0x20a)]())return[];this[_0x14beb7(0x245)]();const _0x37bcc5=_0x49f93+'/',_0x17eee2=[];for(const {key:_0x4db94a,value:_0x2ecfb5}of this['_desired'][_0x14beb7(0x2cd)]({'start':_0x37bcc5,'end':_0x37bcc5+'ÿ'})){if(typeof _0x4db94a!=='string'||!_0x4db94a[_0x14beb7(0x2b6)](_0x37bcc5))break;_0x17eee2['push']({'key':_0x4db94a['slice'](_0x37bcc5[_0x14beb7(0x263)]),'value':_0x2ecfb5});}return _0x17eee2;}[_0x2ac2f1(0x208)](_0x1af9ca){const _0x56d67d=_0x2ac2f1;if(!this[_0x56d67d(0x20a)]())return null;return this['_cmd'][_0x56d67d(0x36d)](_0x1af9ca)??null;}async[_0x2ac2f1(0x28d)](_0x2efb34,_0x21af14,_0x8373cb={}){const _0x334fb2=_0x2ac2f1;if(!this[_0x334fb2(0x20a)]())return null;let _0x298a45;return await this['okdb']['_systemEnv'][_0x334fb2(0x177)][_0x334fb2(0x1e6)](()=>{const _0x152650=_0x334fb2,_0x263741=this[_0x152650(0x2ed)][_0x152650(0x36d)](_0x2efb34)||{'epoch':0x0};_0x298a45=(_0x263741[_0x152650(0x34a)]||0x0)+0x1,this['_cmd'][_0x152650(0x1fb)](_0x2efb34,{..._0x263741,..._0x8373cb,'cmd':_0x21af14,'epoch':_0x298a45,'updatedAt':Date[_0x152650(0x2d7)]()});}),_0x298a45;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x53a352,'nodeKey':_0x3e0005,'logicalKey':_0x4b609f,'slotKey':_0x311e67,'PROCESS_ENV':_0x740393,'NODE_TYPE':_0x356b61},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x4c383b=_0x6505f9;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0xda7576=require$$0$4,{EVENTS:_0x1d59ac,CHANGE_ACTIONS:_0x414039}=requireOkdbEnums(),{LOOP:_0x38987a}=requireOkdbLoopMonitor(),_0x426194=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0xdfcc57=0x5,_0x5296f9=0x2710;class _0x46695e extends _0xda7576{constructor(_0xd12307,_0x42708b={}){const _0x24cea0=_0x53b1;super(),this[_0x24cea0(0x248)]=_0xd12307,this['_quantum']=_0x42708b[_0x24cea0(0x2a0)]??_0x426194,this[_0x24cea0(0x1f5)]=_0x42708b[_0x24cea0(0x1de)]??_0xdfcc57,this[_0x24cea0(0x1c0)]=_0x42708b[_0x24cea0(0x1af)]??_0x5296f9,this[_0x24cea0(0x19a)]=![],this['_cursors']=new Map(),this['_baselines']=new Map(),this['_pending']=new Map(),this[_0x24cea0(0x186)]=null,this[_0x24cea0(0x389)]=![],this['_seen']=new Set(),this[_0x24cea0(0x206)]=_0xc7b5a0=>this[_0x24cea0(0x1ac)](_0xc7b5a0),this[_0x24cea0(0x2a9)]=_0x42cfa4=>this[_0x24cea0(0x2b7)](_0x42cfa4),this['_onStop']=()=>this[_0x24cea0(0x243)]();}[_0x4c383b(0x1d6)](){const _0x4d2a72=_0x4c383b;if(this[_0x4d2a72(0x19a)])return;this[_0x4d2a72(0x19a)]=!![];for(const [_0x325e2b,_0xf58c7]of this[_0x4d2a72(0x248)][_0x4d2a72(0x299)]){if(_0x325e2b[_0x4d2a72(0x2b6)]('~'))continue;try{_0xf58c7[_0x4d2a72(0x37c)]();}catch{}}for(const [_0x180880,_0x220a9d]of this[_0x4d2a72(0x248)]['_envs']){if(_0x180880[_0x4d2a72(0x2b6)]('~'))continue;try{this[_0x4d2a72(0x219)][_0x4d2a72(0x37b)](_0x180880,_0x220a9d['getClock']()||0x0);}catch{}}const {events:_0x41403d}=this[_0x4d2a72(0x248)];_0x41403d['on'](_0x1d59ac[_0x4d2a72(0x1cf)],this[_0x4d2a72(0x206)]),_0x41403d['on'](_0x1d59ac['ITEM_UPDATE'],this[_0x4d2a72(0x206)]),_0x41403d['on'](_0x1d59ac['ITEM_REMOVE'],this[_0x4d2a72(0x206)]),_0x41403d['on'](_0x1d59ac[_0x4d2a72(0x24f)],this[_0x4d2a72(0x2a9)]),_0x41403d[_0x4d2a72(0x2ee)](_0x1d59ac['SYSTEM_STOPPED'],this[_0x4d2a72(0x246)]);}['stop'](){const _0x2978c=_0x4c383b;if(!this[_0x2978c(0x19a)])return;this['_started']=![];const {events:_0x50a95a}=this[_0x2978c(0x248)];_0x50a95a[_0x2978c(0x30f)](_0x1d59ac[_0x2978c(0x1cf)],this[_0x2978c(0x206)]),_0x50a95a[_0x2978c(0x30f)](_0x1d59ac[_0x2978c(0x254)],this[_0x2978c(0x206)]),_0x50a95a[_0x2978c(0x30f)](_0x1d59ac[_0x2978c(0x37d)],this[_0x2978c(0x206)]),_0x50a95a['off'](_0x1d59ac[_0x2978c(0x24f)],this[_0x2978c(0x2a9)]);try{_0x50a95a[_0x2978c(0x30f)](_0x1d59ac[_0x2978c(0x17b)],this['_onStop']);}catch{}this[_0x2978c(0x186)]&&(clearTimeout(this[_0x2978c(0x186)]),this[_0x2978c(0x186)]=null),this[_0x2978c(0x1c3)]['clear'](),this[_0x2978c(0x398)][_0x2978c(0x225)](),this[_0x2978c(0x219)]['clear'](),this[_0x2978c(0x2aa)][_0x2978c(0x225)]();}[_0x4c383b(0x269)](_0x6969e9,_0x3335df,_0x420e67,_0x5b44fa){return _0x6969e9+'\x00'+_0x3335df+'\x00'+_0x420e67+'\x00'+_0x5b44fa;}['_markSeen'](_0x1e64f4,_0x3a560b,_0x148798,_0x349c67){const _0x9a84dc=_0x4c383b,_0x546c02=this['_dedupeKey'](_0x1e64f4,_0x3a560b,_0x148798,_0x349c67);if(this['_seen'][_0x9a84dc(0x30e)](_0x546c02))return![];this['_seen'][_0x9a84dc(0x237)](_0x546c02);if(this[_0x9a84dc(0x2aa)][_0x9a84dc(0x302)]>this[_0x9a84dc(0x1c0)]){const _0x5d292d=this[_0x9a84dc(0x2aa)][_0x9a84dc(0x1ed)]()[_0x9a84dc(0x25c)]()[_0x9a84dc(0x345)];this['_seen']['delete'](_0x5d292d);}return!![];}['_handleInProcess'](_0x1e2b3a){const _0x3b7897=_0x4c383b;if(!this['_started']||!_0x1e2b3a)return;const {env:_0x344716,type:_0x51eeb8,key:_0xf902b6,clock:_0x1f1b70,origin:_0x1d155d,action:_0x5b4e1d,newValue:_0x3c81b8,oldValue:_0x322019}=_0x1e2b3a;if(_0x344716==null||_0x51eeb8==null||_0xf902b6==null)return;if(typeof _0x344716===_0x3b7897(0x256)&&_0x344716[_0x3b7897(0x2b6)]('~'))return;if(typeof _0x51eeb8===_0x3b7897(0x256)&&_0x51eeb8[_0x3b7897(0x2b6)]('~'))return;if(!this[_0x3b7897(0x165)](_0x344716,_0x51eeb8,_0xf902b6,_0x1f1b70))return;const _0x320878=_0x5b4e1d===_0x414039[_0x3b7897(0x2d3)]?_0x3b7897(0x2cb):_0x3b7897(0x1fb);this[_0x3b7897(0x356)]('change',{'env':_0x344716,'type':_0x51eeb8,'key':_0xf902b6,'op':_0x320878,'clock':_0x1f1b70,'origin':_0x1d155d,'value':_0x320878===_0x3b7897(0x2cb)?null:_0x3c81b8,'prevValue':_0x322019});}['_handlePoke'](_0x3a7a63){const _0xc76845=_0x4c383b;if(!this[_0xc76845(0x19a)])return;if(!_0x3a7a63||typeof _0x3a7a63[_0xc76845(0x24b)]!==_0xc76845(0x256)||typeof _0x3a7a63[_0xc76845(0x1b9)]!==_0xc76845(0x256))return;const {env:_0x13118e,type:_0x2d4806}=_0x3a7a63;if(_0x13118e[_0xc76845(0x2b6)]('~')||_0x2d4806[_0xc76845(0x2b6)]('~'))return;this[_0xc76845(0x1c3)][_0xc76845(0x37b)](_0x13118e+'\x00'+_0x2d4806,{'env':_0x13118e,'type':_0x2d4806}),this[_0xc76845(0x21c)]();}[_0x4c383b(0x21c)](){const _0x49cf48=_0x4c383b;if(this[_0x49cf48(0x186)])return;const _0x2230a6=()=>{const _0x17305d=_0x49cf48;this[_0x17305d(0x186)]=null,this[_0x17305d(0x35a)]()[_0x17305d(0x16f)](()=>{});};this[_0x49cf48(0x186)]=setTimeout(_0x2230a6,this[_0x49cf48(0x1f5)]>0x0?this[_0x49cf48(0x1f5)]:0x0);}async['_drain'](){const _0x581530=_0x4c383b;if(this[_0x581530(0x389)]){this[_0x581530(0x21c)]();return;}this['_draining']=!![];try{const _0x5908be=[...this[_0x581530(0x1c3)][_0x581530(0x1ed)]()];this[_0x581530(0x1c3)][_0x581530(0x225)]();let _0x5635d1=![];for(const {env:_0x3b9c04,type:_0x4323f4}of _0x5908be){try{const _0x35be8c=await this[_0x581530(0x1cc)](_0x3b9c04,_0x4323f4);if(_0x35be8c)_0x5635d1=!![];}catch{this[_0x581530(0x1c3)][_0x581530(0x37b)](_0x3b9c04+'\x00'+_0x4323f4,{'env':_0x3b9c04,'type':_0x4323f4}),_0x5635d1=!![];}}if(_0x5635d1||this['_pending'][_0x581530(0x302)]>0x0)this[_0x581530(0x21c)]();}finally{this[_0x581530(0x389)]=![];}}async['_drainOne'](_0x287655,_0x3e71a4){const _0xd7510a=_0x4c383b,_0x2cd750=await this['okdb'][_0xd7510a(0x28c)](_0x287655),_0x4fe359=_0x287655+'\x00'+_0x3e71a4;!this[_0xd7510a(0x398)][_0xd7510a(0x30e)](_0x4fe359)&&(!this[_0xd7510a(0x219)][_0xd7510a(0x30e)](_0x287655)&&(_0x2cd750[_0xd7510a(0x37c)](),this['_baselines'][_0xd7510a(0x37b)](_0x287655,_0x2cd750['getClock']()||0x0)),this[_0xd7510a(0x398)]['set'](_0x4fe359,this[_0xd7510a(0x219)][_0xd7510a(0x36d)](_0x287655)));const _0x4a8bea=this[_0xd7510a(0x398)][_0xd7510a(0x36d)](_0x4fe359),_0x4a798f=_0x2cd750[_0xd7510a(0x1b6)](_0x3e71a4)||0x0;if(_0x4a798f<=_0x4a8bea)return![];const _0x34e327=_0x4a8bea+this[_0xd7510a(0x1ea)],_0x2aa655=Math[_0xd7510a(0x2d8)](_0x4a798f,_0x34e327),_0x21ce62=_0x38987a[_0xd7510a(0x251)]?_0x38987a[_0xd7510a(0x2d7)]():0x0,_0x5c2c1c=Array[_0xd7510a(0x2ba)](_0x2cd750['getChanges'](_0x3e71a4,_0x4a8bea+0x1,_0x2aa655));let _0x46950b=_0x4a8bea;for(const _0x2baa20 of _0x5c2c1c){const {clock:_0x36a130,key:_0x26f9b3,action:_0x332292,origin:_0x27d4f4}=_0x2baa20;if(_0x36a130>_0x46950b)_0x46950b=_0x36a130;if(_0x26f9b3==null)continue;if(!this[_0xd7510a(0x165)](_0x287655,_0x3e71a4,_0x26f9b3,_0x36a130))continue;let _0x44e657,_0x56c5b0;if(_0x332292===_0x414039[_0xd7510a(0x2d3)])_0x44e657=_0xd7510a(0x2cb),_0x56c5b0=null;else{const _0x26040d=_0x2cd750[_0xd7510a(0x36d)](_0x3e71a4,_0x26f9b3);_0x26040d==null?(_0x44e657='remove',_0x56c5b0=null):(_0x44e657=_0xd7510a(0x1fb),_0x56c5b0=_0x26040d);}this[_0xd7510a(0x356)]('change',{'env':_0x287655,'type':_0x3e71a4,'key':_0x26f9b3,'op':_0x44e657,'clock':_0x36a130,'origin':_0x27d4f4,'value':_0x56c5b0});}if(_0x38987a['enabled'])_0x38987a['note'](_0xd7510a(0x1bf)+_0x287655+':'+_0x3e71a4,_0x38987a[_0xd7510a(0x2d7)]()-_0x21ce62,'n='+_0x5c2c1c['length']);return this['_cursors'][_0xd7510a(0x37b)](_0x4fe359,Math[_0xd7510a(0x284)](_0x46950b,_0x2aa655)),_0x2cd750[_0xd7510a(0x1b6)](_0x3e71a4)>_0x2aa655;}[_0x4c383b(0x1e8)](){const _0x3036f9=_0x4c383b;return{'started':this[_0x3036f9(0x19a)],'quantum':this[_0x3036f9(0x1ea)],'flushDebounce':this[_0x3036f9(0x1f5)],'cursors':Object[_0x3036f9(0x1ec)]([...this[_0x3036f9(0x398)][_0x3036f9(0x190)]()]['map'](([_0x4b858d,_0x1eed33])=>[_0x4b858d[_0x3036f9(0x1e3)]('\x00',':'),_0x1eed33])),'pending':this[_0x3036f9(0x1c3)][_0x3036f9(0x302)],'seen':this['_seen']['size']};}}return _0x46695e[_0x4c383b(0x20e)]=_0x426194,okdbChangefeed={'OKDBChangefeed':_0x46695e},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x21dc80=_0x6505f9;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x12f8f5=require$$1$1,_0x4f7cda=require$$1,{EVENTS:_0x1e1ac2}=requireOkdbEnums(),_0x4fad02=require$$0$3,{slotKey:_0x403c50}=requireOkdbProcessRegistry(),_0x369aea=0xfa,_0x3a81ab=0xfa0,_0x413e0e=0x5,_0x9076ad=0x2710,_0x3784f1=0xbb8,_0x31dc40=0x7d0,_0x4b8194='__okdbCluster',_0x25b6c6='ephemeral',_0x43f69c=_0x21dc80(0x38f),_0x1e6ea8=_0x21dc80(0x183),_0x44df28=[_0x1e1ac2[_0x21dc80(0x349)],_0x1e1ac2[_0x21dc80(0x35d)],_0x1e1ac2[_0x21dc80(0x241)],_0x1e1ac2[_0x21dc80(0x1fa)],_0x1e1ac2[_0x21dc80(0x289)],_0x1e1ac2[_0x21dc80(0x1d1)],_0x1e1ac2[_0x21dc80(0x1f6)],_0x1e1ac2['INDEX_REGISTERED'],_0x21dc80(0x365),_0x21dc80(0x268),_0x21dc80(0x29f),_0x21dc80(0x1c5),_0x21dc80(0x2b3),_0x21dc80(0x2a1)],_0x3ba143=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0;function _0x15ba26({workers:_0x3068b4,makeOkdb:_0x230d0b,port:_0x404091,primaryOkdb:_0x1462d6,childEntry:childEntry=![],workerEnv:workerEnv=null}={}){const _0x3762ed=_0x21dc80;if(_0x12f8f5[_0x3762ed(0x253)])return childEntry&&_0x12f8f5[_0x3762ed(0x1c6)]({'exec':_0x4f7cda[_0x3762ed(0x355)](__dirname,'okdb-http-worker-child.js'),'args':[],'execArgv':((()=>{const _0x1d533c=_0x3762ed,_0xfa5a4b=[];for(let _0x21de25=0x0;_0x21de25<process['execArgv'][_0x1d533c(0x263)];_0x21de25++){const _0x3882ea=process[_0x1d533c(0x317)][_0x21de25];if(_0x3882ea['startsWith'](_0x1d533c(0x21d))||_0x3882ea['startsWith'](_0x1d533c(0x34c))||_0x3882ea[_0x1d533c(0x2b6)](_0x1d533c(0x31b)))continue;if(_0x3882ea==='-e'||_0x3882ea===_0x1d533c(0x166)||_0x3882ea==='-p'||_0x3882ea===_0x1d533c(0x238)){_0x21de25++;continue;}_0xfa5a4b[_0x1d533c(0x18a)](_0x3882ea);}return _0xfa5a4b;})())}),_0x45e456({'workers':_0x3068b4,'port':_0x404091,'primaryOkdb':_0x1462d6,'workerEnv':workerEnv});return _0x24b546({'makeOkdb':_0x230d0b,'port':_0x404091});}function _0x45e456({workers:_0xa41de6,port:_0x3ec7f2,primaryOkdb:_0x110044,workerEnv:_0x12c41c}){const _0x53d2c9=_0x21dc80,_0x2c097b=new Map(),_0x228f25=new Map();let _0x2cae61=![];const _0x1a40d4=_0xd00fd=>_0xd00fd?.[_0x53d2c9(0x372)],_0x596cd5=_0x2f4002=>{const _0x292d64=_0x53d2c9,_0x19395d=_0x12f8f5['fork']({...process.env,..._0x12c41c||{},'OKDB_CLUSTER_SLOT':String(_0x2f4002)});return _0x19395d['__okdbSlot']=_0x2f4002,_0x2c097b[_0x292d64(0x37b)](_0x19395d[_0x292d64(0x277)][_0x292d64(0x322)],{'worker':_0x19395d,'startedAt':Date[_0x292d64(0x2d7)](),'slot':_0x2f4002}),_0x19395d['on'](_0x292d64(0x20f),_0x4561fa=>{const _0x33a1a6=_0x292d64;console[_0x33a1a6(0x38f)](_0x33a1a6(0x38c)+_0x19395d[_0x33a1a6(0x277)][_0x33a1a6(0x322)]+_0x33a1a6(0x1cd)+(_0x4561fa?.[_0x33a1a6(0x198)]??_0x4561fa));}),_0x19395d['on'](_0x292d64(0x1f4),()=>_0x5e8b07()),_0x19395d;},_0x42d6a0=_0x2341c8=>{const _0x4e53e6=_0x53d2c9;for(const {worker:_0x1da04d}of _0x2c097b[_0x4e53e6(0x1ed)]()){if(_0x1da04d[_0x4e53e6(0x378)]()||!_0x1da04d[_0x4e53e6(0x24e)]())continue;try{_0x1da04d[_0x4e53e6(0x2f9)](_0x2341c8);}catch{}}};_0x110044?.[_0x53d2c9(0x347)]?.({'kind':'primary','listenAddr':':'+_0x3ec7f2})['catch'](()=>{}),_0x110044?.[_0x53d2c9(0x2a4)]?.[_0x53d2c9(0x167)]?.({'workersConfigured':_0xa41de6});const _0x5dbede={'engines':!![],'processors':!![],'compaction':!![],'http':!![]},_0x5e8b07=()=>{const _0x41a5fb=_0x53d2c9,_0x1ca108=_0x110044?.['processes'];if(!_0x1ca108||!_0x1ca108[_0x41a5fb(0x1ae)])return;const _0x412ee7=_0x1ca108[_0x41a5fb(0x396)];for(const {worker:_0x4127b8,startedAt:_0x423ab6,slot:_0x4819bc,stats:_0x56005d,processing:_0x359c79}of _0x2c097b[_0x41a5fb(0x1ed)]()){if(_0x4127b8['isDead']())continue;const _0x1b5d59=_0x1ca108[_0x41a5fb(0x2b5)]?.()&&_0x1ca108['getDesired']('slot',_0x4c45d7(_0x4819bc))?.[_0x41a5fb(0x32c)]===!![];_0x1ca108[_0x41a5fb(0x27f)]({'pid':_0x4127b8[_0x41a5fb(0x277)]['pid'],'startedAt':_0x423ab6,'kind':'http-server','supervisorKey':_0x412ee7,'slot':_0x4819bc,'slotKey':_0x4c45d7(_0x4819bc),'role':_0x5dbede,'listenAddr':':'+_0x3ec7f2,'lifecycle':_0x1b5d59?_0x41a5fb(0x1ce):_0x41a5fb(0x17e),'processing':_0x359c79??null,'stats':_0x56005d??null})[_0x41a5fb(0x16f)](()=>{});}},_0x4c45d7=_0x5b1cae=>_0x403c50(_0x53d2c9(0x23f)+_0x3ec7f2,_0x5b1cae),_0x4a4c13=_0x15237c=>{const _0x539e74=_0x53d2c9,_0x5455ca=_0x110044?.[_0x539e74(0x2a4)];if(!_0x5455ca?.[_0x539e74(0x2b5)]?.())return![];return _0x5455ca['getDesired']('slot',_0x4c45d7(_0x15237c))?.['decommission']===!![];};for(let _0x5d4be9=0x0;_0x5d4be9<_0xa41de6;_0x5d4be9++){const _0x430e65=_0x4a4c13(_0x5d4be9);_0x228f25['set'](_0x5d4be9,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x430e65,'respawnTimer':null}),_0x430e65?console[_0x53d2c9(0x38f)](_0x53d2c9(0x247)+_0x5d4be9+_0x53d2c9(0x1d9)):_0x596cd5(_0x5d4be9);}const _0x4ad162=()=>{const _0x26536a=_0x53d2c9,_0x26878d=_0x110044?.['processes'];if(!_0x26878d?.['_isWriter']||!_0x26878d['hasDesired']?.())return;for(const [_0x5941eb,_0x44e7a7]of _0x228f25[_0x26536a(0x190)]()){const _0x1136ba=_0x26878d[_0x26536a(0x201)](_0x26536a(0x2be),_0x4c45d7(_0x5941eb)),_0x4be58f=_0x1136ba?.[_0x26536a(0x32c)]===!![],_0x2f5a6b=_0x1136ba?.[_0x26536a(0x1db)]===!![];if(_0x4be58f&&!_0x44e7a7[_0x26536a(0x1a4)]){_0x44e7a7['dead']=!![];_0x44e7a7[_0x26536a(0x2e9)]&&(clearTimeout(_0x44e7a7[_0x26536a(0x2e9)]),_0x44e7a7['respawnTimer']=null);for(const {worker:_0x4d28dd}of _0x2c097b[_0x26536a(0x1ed)]()){if(_0x1a40d4(_0x4d28dd)!==_0x5941eb||_0x4d28dd[_0x26536a(0x378)]())continue;try{if(_0x2f5a6b)_0x4d28dd[_0x26536a(0x277)][_0x26536a(0x1db)](_0x26536a(0x377));else _0x4d28dd[_0x26536a(0x24e)]()&&_0x4d28dd[_0x26536a(0x220)]();}catch{}}console[_0x26536a(0x38f)](_0x26536a(0x1d5)+(_0x2f5a6b?'hard-killed':'decommissioned')+_0x26536a(0x28a)+_0x5941eb+_0x26536a(0x290));}else{if(!_0x4be58f&&_0x44e7a7['dead']&&_0x1136ba){_0x44e7a7[_0x26536a(0x1a4)]=![],_0x44e7a7[_0x26536a(0x287)]=[],_0x44e7a7[_0x26536a(0x35b)]=0x0;const _0x219834=[..._0x2c097b['values']()]['some'](({worker:_0x33f013})=>_0x1a40d4(_0x33f013)===_0x5941eb&&!_0x33f013[_0x26536a(0x378)]());!_0x219834&&!_0x2cae61&&(_0x596cd5(_0x5941eb),console['log'](_0x26536a(0x19f)+_0x5941eb));}}}},_0x342ee5=()=>{try{_0x4ad162();}catch{}};_0x110044?.['events']?.['on']?.(_0x1e1ac2['SYSTEM_PROC'],_0x342ee5);const _0xc3d875=[];if(_0x110044?.['events']?.['on'])for(const _0x3f6ccb of _0x44df28){const _0x22a421=_0x4a09d6=>{_0x42d6a0({[_0x4b8194]:_0x25b6c6,'event':_0x3f6ccb,'data':_0x4a09d6??{}});};_0x110044['events']['on'](_0x3f6ccb,_0x22a421),_0xc3d875[_0x53d2c9(0x18a)]({'event':_0x3f6ccb,'handler':_0x22a421});}const _0x5229cf=setInterval(()=>{_0x4ad162(),_0x5e8b07();},_0x3ba143);_0x5229cf[_0x53d2c9(0x369)]?.();const _0x5dad9a=(_0x2dfc7d,_0x361021)=>{const _0x723e1e=_0x53d2c9;if(!_0x361021||typeof _0x361021!==_0x723e1e(0x34b)||_0x361021[_0x4b8194]!==_0x43f69c)return;if(!_0x110044?.[_0x723e1e(0x38f)]?.['ingest'])return;const _0x512930=_0x361021[_0x723e1e(0x36e)]||{};_0x110044[_0x723e1e(0x38f)][_0x723e1e(0x31c)]({..._0x512930,'msg':'[w'+_0x361021[_0x723e1e(0x2be)]+']\x20'+(_0x512930[_0x723e1e(0x33d)]??''),'meta':{..._0x512930[_0x723e1e(0x34d)]||{},'worker':_0x361021['slot'],'workerPid':_0x361021['pid']}});};_0x12f8f5['on'](_0x53d2c9(0x198),_0x5dad9a);const _0x2acb33=(_0xd852bd,_0x158058)=>{const _0x4ce29d=_0x53d2c9;if(!_0x158058||typeof _0x158058!=='object'||_0x158058[_0x4b8194]!==_0x1e6ea8)return;const _0x4934d4=_0x2c097b['get'](_0xd852bd['process'][_0x4ce29d(0x322)]);if(_0x4934d4){_0x4934d4[_0x4ce29d(0x183)]={..._0x158058['stats'],'at':Date[_0x4ce29d(0x2d7)]()};if(_0x158058[_0x4ce29d(0x1ff)]!==undefined)_0x4934d4[_0x4ce29d(0x1ff)]=_0x158058[_0x4ce29d(0x1ff)];}};_0x12f8f5['on'](_0x53d2c9(0x198),_0x2acb33),_0x12f8f5['on']('exit',(_0x102d0c,_0x3bfc23,_0x371ac9)=>{const _0x89172b=_0x53d2c9,_0x120349=_0x102d0c['process'][_0x89172b(0x322)],_0x34df71=_0x1a40d4(_0x102d0c),_0x71957a=_0x2c097b[_0x89172b(0x36d)](_0x120349);if(_0x71957a&&_0x110044?.[_0x89172b(0x2a4)])_0x110044['processes']['removeNode'](_0x120349+':'+_0x71957a[_0x89172b(0x1ad)])['catch'](()=>{});_0x2c097b[_0x89172b(0x2e7)](_0x120349),console[_0x89172b(0x38f)](_0x89172b(0x38c)+_0x120349+_0x89172b(0x174)+(_0x34df71??'?')+_0x89172b(0x2c4)+(_0x89172b(0x32e)+_0x3bfc23+_0x89172b(0x2df)+(_0x371ac9??_0x89172b(0x30a))+');\x20'+_0x2c097b['size']+_0x89172b(0x1a8))),_0x5e8b07();if(_0x2cae61||_0x34df71==null)return;const _0x45ab15=_0x228f25[_0x89172b(0x36d)](_0x34df71);if(!_0x45ab15||_0x45ab15[_0x89172b(0x1a4)])return;const _0x59bcef=Date['now']();_0x45ab15[_0x89172b(0x287)][_0x89172b(0x18a)](_0x59bcef),_0x45ab15[_0x89172b(0x287)]=_0x45ab15[_0x89172b(0x287)][_0x89172b(0x23e)](_0x3b71d4=>_0x59bcef-_0x3b71d4<=_0x9076ad);if(_0x45ab15['deaths'][_0x89172b(0x263)]>=_0x413e0e){_0x45ab15[_0x89172b(0x1a4)]=!![],console['error']('[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot='+_0x34df71+_0x89172b(0x260)+_0x45ab15[_0x89172b(0x287)][_0x89172b(0x263)]+_0x89172b(0x21e)+(_0x9076ad+_0x89172b(0x1d4)+_0x2c097b['size']+'\x20worker(s)\x20still\x20serving'));return;}_0x45ab15[_0x89172b(0x35b)]++;const _0x160688=Math['min'](_0x3a81ab,_0x369aea*0x2**(_0x45ab15['consecutiveFailures']-0x1));console[_0x89172b(0x38f)](_0x89172b(0x368)+_0x34df71+_0x89172b(0x2a2)+_0x160688+_0x89172b(0x38d)+_0x45ab15['consecutiveFailures']+')'),_0x45ab15[_0x89172b(0x2e9)]=setTimeout(()=>{const _0x119f29=_0x89172b;_0x45ab15['respawnTimer']=null;if(_0x2cae61||_0x45ab15[_0x119f29(0x1a4)])return;const _0x3f5415=_0x596cd5(_0x34df71);_0x3f5415['once'](_0x119f29(0x316),()=>{const _0x3caf8d=_0x119f29;if(_0x228f25[_0x3caf8d(0x36d)](_0x34df71)===_0x45ab15)_0x45ab15[_0x3caf8d(0x35b)]=0x0;});},_0x160688),_0x45ab15['respawnTimer'][_0x89172b(0x369)]?.();});const _0x387d55=[..._0x2c097b['keys']()];console[_0x53d2c9(0x38f)]('[okdb-cluster]\x20primary\x20pid='+process['pid']+'\x20forked\x20'+_0xa41de6+_0x53d2c9(0x240)+_0x3ec7f2+':\x20'+('['+_0x387d55[_0x53d2c9(0x355)](',\x20')+']'));const _0x2d13c7={'_isClusterController':!![],'port':_0x3ec7f2,'primaryOkdb':_0x110044??null,'status'(){const _0x2611fa=_0x53d2c9;return{'clustered':!![],'primaryPid':process[_0x2611fa(0x322)],'port':_0x3ec7f2,'primaryRole':_0x110044?.['role']??null,'processorPid':null,'supervisorPid':process[_0x2611fa(0x322)],'workers':[..._0x2c097b[_0x2611fa(0x1ed)]()][_0x2611fa(0x2bb)](({worker:_0x5ad7f2})=>({'pid':_0x5ad7f2[_0x2611fa(0x277)]['pid'],'id':_0x5ad7f2['id'],'dead':_0x5ad7f2[_0x2611fa(0x378)]()}))};},async 'close'(){const _0x2db997=_0x53d2c9;_0x2cae61=!![];for(const _0x46298f of _0x228f25['values']()){_0x46298f[_0x2db997(0x1a4)]=!![],_0x46298f[_0x2db997(0x2e9)]&&(clearTimeout(_0x46298f[_0x2db997(0x2e9)]),_0x46298f[_0x2db997(0x2e9)]=null);}clearInterval(_0x5229cf),_0x12f8f5[_0x2db997(0x30f)](_0x2db997(0x198),_0x5dad9a),_0x12f8f5[_0x2db997(0x30f)](_0x2db997(0x198),_0x2acb33),_0x110044?.[_0x2db997(0x325)]?.[_0x2db997(0x30f)]?.(_0x1e1ac2[_0x2db997(0x32f)],_0x342ee5);if(_0x110044?.[_0x2db997(0x325)]?.[_0x2db997(0x30f)])for(const {event:_0x489ff6,handler:_0x2a37e7}of _0xc3d875){try{_0x110044[_0x2db997(0x325)][_0x2db997(0x30f)](_0x489ff6,_0x2a37e7);}catch{}}_0xc3d875[_0x2db997(0x263)]=0x0;const _0x53d80b=[..._0x2c097b[_0x2db997(0x1ed)]()][_0x2db997(0x2bb)](({worker:_0x1d6c8b})=>_0x1d6c8b);if(_0x53d80b[_0x2db997(0x263)]===0x0)return;await Promise['all'](_0x53d80b[_0x2db997(0x2bb)](_0x455b78=>new Promise(_0xa08d7f=>{const _0xa1619=_0x2db997;if(_0x455b78[_0xa1619(0x378)]()){_0xa08d7f();return;}let _0x50b79d=![];const _0xa01371=()=>{if(_0x50b79d)return;_0x50b79d=!![];if(_0x4ae14c)clearTimeout(_0x4ae14c);_0xa08d7f();};_0x455b78['once'](_0xa1619(0x175),_0xa01371);const _0x4ae14c=setTimeout(()=>{const _0x50a9a5=_0xa1619;try{_0x455b78[_0x50a9a5(0x277)][_0x50a9a5(0x1db)]();}catch{}},_0x3784f1+0x1f4);_0x4ae14c[_0xa1619(0x369)]?.();try{_0x455b78[_0xa1619(0x220)]();}catch{try{_0x455b78[_0xa1619(0x277)][_0xa1619(0x1db)]();}catch{}}})));}};return _0x2d13c7;}async function _0x24b546({makeOkdb:_0x5bf477,port:_0x2e7e00}){const _0xfadbd4=_0x21dc80,_0x507c94=await _0x5bf477();return _0x2abdbf(_0x507c94),_0x507c94[_0xfadbd4(0x2d4)][_0xfadbd4(0x2a3)](_0x2e7e00);}function _0x2abdbf(_0x4ba770){const _0x3dc53d=_0x21dc80;if(!_0x4ba770||_0x4ba770[_0x3dc53d(0x2e0)])return;_0x4ba770[_0x3dc53d(0x2e0)]=!![];try{const {OKDBChangefeed:_0x5e7b99}=requireOkdbChangefeed(),_0x33d3b8=_0x4ba770[_0x3dc53d(0x16e)];if(_0x33d3b8&&typeof _0x33d3b8[_0x3dc53d(0x1d3)]==='function'){const _0x179ad5=new _0x5e7b99(_0x4ba770);_0x179ad5['start'](),_0x33d3b8['attachFeed'](_0x179ad5),_0x4ba770[_0x3dc53d(0x202)]=_0x179ad5;}}catch(_0x3b2783){_0x4ba770[_0x3dc53d(0x38f)]?.[_0x3dc53d(0x307)]?.(_0x3dc53d(0x1f2)+(_0x3b2783?.[_0x3dc53d(0x198)]??_0x3b2783),{'feature':_0x3dc53d(0x311)});}const _0x177821=_0xbe89b9=>{const _0x20cc9d=_0x3dc53d;if(!_0xbe89b9||typeof _0xbe89b9!==_0x20cc9d(0x34b)||_0xbe89b9[_0x4b8194]==null)return;if(_0xbe89b9[_0x4b8194]===_0x25b6c6)try{_0x4ba770[_0x20cc9d(0x16e)]?.[_0x20cc9d(0x232)]?.(_0xbe89b9[_0x20cc9d(0x337)],_0xbe89b9['data']);}catch{}};process['on'](_0x3dc53d(0x198),_0x177821),_0x4ba770['_clusterOnMessage']=_0x177821;{let _0x1a969a=process[_0x3dc53d(0x25d)](),_0x460a46=Date[_0x3dc53d(0x2d7)]();const _0x36ca5d=()=>{const _0x5527de=_0x3dc53d;if(typeof process[_0x5527de(0x2f9)]!==_0x5527de(0x296)||!process[_0x5527de(0x2e2)])return;const _0x383541=Date['now'](),_0x25e1b2=process[_0x5527de(0x25d)](),_0x1d1c7c=(_0x383541-_0x460a46)*0x3e8,_0x778197=_0x25e1b2[_0x5527de(0x2c7)]-_0x1a969a['user']+(_0x25e1b2[_0x5527de(0x1b3)]-_0x1a969a[_0x5527de(0x1b3)]),_0x19736c=_0x1d1c7c>0x0?Math[_0x5527de(0x2d8)](0x64,Math['round'](_0x778197/(_0x1d1c7c*(_0x4fad02[_0x5527de(0x34f)]()['length']||0x1))*0x64)):0x0;_0x1a969a=_0x25e1b2,_0x460a46=_0x383541;const _0x315bac=process[_0x5527de(0x213)]();let _0x512df8=null;try{_0x512df8=_0x4ba770[_0x5527de(0x2da)]?.[_0x5527de(0x18b)]?_0x4ba770['processes']?.[_0x5527de(0x242)]?.()??null:null;}catch{}try{process[_0x5527de(0x2f9)]({[_0x4b8194]:_0x1e6ea8,'stats':{'rss':_0x315bac[_0x5527de(0x318)],'heapUsed':_0x315bac['heapUsed'],'heapTotal':_0x315bac['heapTotal'],'external':_0x315bac[_0x5527de(0x20b)],'cpuPct':_0x19736c,'cpuWindowMs':Math[_0x5527de(0x35c)](_0x1d1c7c/0x3e8)||null},'processing':_0x512df8});}catch{}},_0x2960d5=Math['max'](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x2ddcba=setInterval(_0x36ca5d,_0x2960d5);_0x2ddcba[_0x3dc53d(0x369)]?.(),_0x36ca5d();for(const _0x5bef81 of[_0x3dc53d(0x1c5),_0x3dc53d(0x2b3)]){_0x4ba770[_0x3dc53d(0x325)]?.['on']?.(_0x5bef81,()=>{try{_0x36ca5d();}catch{}});}}let _0x18c5e0=![];const _0x18efd1=async _0xc14431=>{const _0x5b74f4=_0x3dc53d;if(_0x18c5e0)return;_0x18c5e0=!![];const _0x1cd369=setTimeout(()=>process['exit'](_0xc14431),_0x3784f1);_0x1cd369[_0x5b74f4(0x369)]?.();try{await _0x4ba770[_0x5b74f4(0x233)]?.();}catch{}process[_0x5b74f4(0x175)](_0xc14431);};process['on']('disconnect',()=>_0x18efd1(0x0));if(process['platform']!==_0x3dc53d(0x364)){const _0x3da3a0=setInterval(()=>{const _0x285c38=_0x3dc53d;if(process[_0x285c38(0x315)]===0x1)_0x18efd1(0x0);},_0x31dc40);_0x3da3a0[_0x3dc53d(0x369)]?.(),_0x4ba770[_0x3dc53d(0x370)]=_0x3da3a0;}}return okdbCluster={'runClustered':_0x15ba26,'attachWorkerCluster':_0x2abdbf},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x165dc1=_0x6505f9;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x441f3d=require$$0$5,{attachWorkerCluster:_0x1f2456}=requireOkdbCluster();async function _0x6d2a44(){const _0x329a57=_0x53b1,_0x9b78f0=process.env.OKDB_HTTP_CHILD;if(!_0x9b78f0)throw new Error('okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing');const {rootPath:_0x3d2153,port:_0x5a647d,options:options={},logLevel:logLevel=_0x329a57(0x25f)}=JSON[_0x329a57(0x217)](_0x9b78f0);if(!_0x3d2153||!_0x5a647d)throw new Error(_0x329a57(0x17a));const _0x47b84c=new _0x441f3d(_0x3d2153,{...options,'engines':![],'processors':![],'compaction':![]});_0x47b84c[_0x329a57(0x38f)][_0x329a57(0x333)]?.();const _0x1231be=process.env.OKDB_CLUSTER_SLOT??'?',_0xa8d02e={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x3b302c=_0xa8d02e[logLevel]??_0xa8d02e[_0x329a57(0x25f)];_0x47b84c[_0x329a57(0x38f)][_0x329a57(0x386)](_0x5aa2f7=>{const _0x2e60d3=_0x329a57;if((_0xa8d02e[_0x5aa2f7[_0x2e60d3(0x25b)]]??0x1)<_0x3b302c)return;try{process[_0x2e60d3(0x2f9)]?.({'__okdbCluster':_0x2e60d3(0x38f),'slot':_0x1231be,'pid':process['pid'],'entry':_0x5aa2f7});}catch{}}),await _0x47b84c[_0x329a57(0x391)](),_0x1f2456(_0x47b84c),await _0x47b84c['http']['listen'](_0x5a647d);}return _0x6d2a44()[_0x165dc1(0x16f)](_0x276fad=>{const _0x150951=_0x165dc1;try{process['send']?.({'__okdbCluster':_0x150951(0x38f),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x150951(0x322)],'entry':{'level':_0x150951(0x20f),'msg':_0x150951(0x387)+(_0x276fad?.[_0x150951(0x198)]??_0x276fad)}});}catch{}process['exit'](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module['exports']=okdbHttpWorkerChild;
|
|
1
|
+
'use strict';const _0x337619=_0x58e7;(function(_0x45e061,_0x1e302d){const _0x296fd0=_0x58e7,_0x14e8a5=_0x45e061();while(!![]){try{const _0x1d39e4=-parseInt(_0x296fd0(0x289))/0x1+-parseInt(_0x296fd0(0x2aa))/0x2*(-parseInt(_0x296fd0(0x187))/0x3)+parseInt(_0x296fd0(0x13f))/0x4+parseInt(_0x296fd0(0x282))/0x5+parseInt(_0x296fd0(0x2dd))/0x6*(parseInt(_0x296fd0(0x24b))/0x7)+-parseInt(_0x296fd0(0x20a))/0x8*(-parseInt(_0x296fd0(0x1a2))/0x9)+-parseInt(_0x296fd0(0x1d4))/0xa;if(_0x1d39e4===_0x1e302d)break;else _0x14e8a5['push'](_0x14e8a5['shift']());}catch(_0x13d360){_0x14e8a5['push'](_0x14e8a5['shift']());}}}(_0x1400,0xc119a));var require$$0$5=require('./okdb'),require$$1$1=require(_0x337619(0x210)),require$$1=require('path'),require$$0$3=require('os'),require$$2=require(_0x337619(0x134)),require$$0=require(_0x337619(0x1bf)),require$$0$2=require('perf_hooks'),require$$0$1=require('fs'),require$$0$4=require(_0x337619(0x1be));function getDefaultExportFromCjs(_0x14d3fa){const _0x568c5d=_0x337619;return _0x14d3fa&&_0x14d3fa[_0x568c5d(0x350)]&&Object[_0x568c5d(0x239)]['hasOwnProperty'][_0x568c5d(0x146)](_0x14d3fa,'default')?_0x14d3fa[_0x568c5d(0x285)]:_0x14d3fa;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x36ab67=_0x337619;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x167ac9={'PUT':_0x36ab67(0x129),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x36ab67(0x234),'TYPE_REGISTER':'registerType','TYPE_DROP':_0x36ab67(0x1af),'FTS_REGISTER':_0x36ab67(0x236),'FTS_DROP':_0x36ab67(0x272),'FTS_RESET':_0x36ab67(0x18b),'SCHEMA_SET':_0x36ab67(0x1e9),'SCHEMA_DROP':_0x36ab67(0x14e),'TTL_SET':_0x36ab67(0x1fb),'TTL_CLEAR':_0x36ab67(0x1ce)},_0x324657={'SYSTEM_READY':_0x36ab67(0x2cc),'SYSTEM_STOPPED':_0x36ab67(0x34a),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x36ab67(0x307),'SYSTEM_DRAIN':_0x36ab67(0x16b),'SYSTEM_TYPE_DROP':_0x36ab67(0x26c),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':_0x36ab67(0x265),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','INDEX_RESET':'index:reset','INDEX_READY':_0x36ab67(0x153),'INDEX_PROGRESS':_0x36ab67(0x221),'VIEW_PROGRESS':_0x36ab67(0x309),'INDEX_DROP':_0x36ab67(0x27d),'INDEX_REGISTERED':_0x36ab67(0x209),'FTS_REGISTERED':_0x36ab67(0x1bd),'FTS_DROP':_0x36ab67(0x180),'FTS_RESET':'fts:reset','SCHEMA_SET':_0x36ab67(0x2db),'SCHEMA_DROP':_0x36ab67(0x1b2),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x36ab67(0x29e),'SYNC_APPLY':_0x36ab67(0x15e),'TXN_START':_0x36ab67(0x18e),'TXN_END':'txn:end','TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x36ab67(0x337),'TYPE_DROP':_0x36ab67(0x255),'ENV_OPENED':_0x36ab67(0x1f7),'ENV_REMOVED':_0x36ab67(0x2e9),'SYSTEM_ENV_RELEASE':_0x36ab67(0x31c),'TTL_EXPIRED':'ttl:expired','TTL_SET':_0x36ab67(0x2d0),'TTL_CLEAR':_0x36ab67(0x179),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x36ab67(0x28c),'LICENSE_ACTIVATED':_0x36ab67(0x206),'LICENSE_REMOVED':_0x36ab67(0x235)},_0xc8eca3={'CREATING':_0x36ab67(0x16c),'RESETTING':_0x36ab67(0x271),'READY':_0x36ab67(0x243),'DROPPING':_0x36ab67(0x1e6),'WAITING':_0x36ab67(0x185)},_0x56375b={'CREATED':_0x36ab67(0x25c),'STARTING':'starting','STARTED':_0x36ab67(0x1aa),'STOPPING':_0x36ab67(0x1cd),'STOPPED':'stopped'},_0x38316d={'CREATING':_0x36ab67(0x16c),'READY':_0x36ab67(0x243),'HALTED':_0x36ab67(0x1cf),'STOPPED':_0x36ab67(0x204),'RESETTING':_0x36ab67(0x271)},_0x514fa7=Object[_0x36ab67(0x214)]({'POKE':_0x36ab67(0x2ec),'DRAIN':_0x36ab67(0x16f),'TYPE_DROP':_0x36ab67(0x335),'PROC':_0x36ab67(0x29c),'ENV_RELEASE':_0x36ab67(0x2f1)});return okdbEnums={'BUS_EVENTS':_0x514fa7,'CHANGE_ACTIONS':_0x167ac9,'EVENTS':_0x324657,'INDEX_STATE':_0xc8eca3,'OKDB_STATE':_0x56375b,'VIEW_STATE':_0x38316d},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x2af6e2=_0x337619;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x538b4c,performance:_0x4ea8b4}=require$$0,_0x341ffd=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x2af6e2(0x325),_0x121401=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x1ee0dd=process.env.OKDB_LOOP_LAG_ALL==='1',_0x1137c8=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x2b7252{constructor(){const _0x40f9ab=_0x2af6e2;this[_0x40f9ab(0x2fb)]=_0x341ffd,this[_0x40f9ab(0x287)]=new Map(),this['_h']=null,this[_0x40f9ab(0x178)]=null,this[_0x40f9ab(0x227)]=![],this[_0x40f9ab(0x19d)]=(_0x344409,_0x253d52)=>process[_0x40f9ab(0x12f)][_0x40f9ab(0x1c7)](_0x344409+(_0x253d52?'\x20'+JSON[_0x40f9ab(0x15a)](_0x253d52):'')+'\x0a');}[_0x2af6e2(0x348)](){const _0x2badc2=_0x2af6e2;return _0x4ea8b4[_0x2badc2(0x348)]();}[_0x2af6e2(0x208)](_0x517a5d){const _0x41c2e4=_0x2af6e2;if(typeof _0x517a5d===_0x41c2e4(0x1b8))this['_log']=_0x517a5d;}[_0x2af6e2(0x30f)](_0x333b28,_0x751e6c,_0x16bb27){const _0x45e8e9=_0x2af6e2;if(!this[_0x45e8e9(0x2fb)])return;let _0x559f57=this[_0x45e8e9(0x287)][_0x45e8e9(0x1fd)](_0x333b28);!_0x559f57&&(_0x559f57={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x45e8e9(0x287)][_0x45e8e9(0x217)](_0x333b28,_0x559f57)),_0x559f57['ms']+=_0x751e6c,_0x559f57['count']+=0x1,_0x751e6c>_0x559f57[_0x45e8e9(0x219)]&&(_0x559f57['maxMs']=_0x751e6c,_0x559f57[_0x45e8e9(0x124)]=_0x16bb27||'');}[_0x2af6e2(0x1e1)](_0x15f688){const _0x4c1e29=_0x2af6e2;if(!this[_0x4c1e29(0x2fb)]||this[_0x4c1e29(0x227)])return;this['_started']=!![];if(_0x15f688)this[_0x4c1e29(0x19d)]=_0x15f688;this['_h']=_0x538b4c({'resolution':0xa}),this['_h']['enable'](),this['_timer']=setInterval(()=>this[_0x4c1e29(0x2b2)](),_0x121401);if(this['_timer']['unref'])this[_0x4c1e29(0x178)][_0x4c1e29(0x195)]();}[_0x2af6e2(0x24f)](_0x43a1ec){const _0x3e6671=_0x2af6e2;if(!this[_0x3e6671(0x2f6)])this['_windowCbs']=new Set();this[_0x3e6671(0x2f6)][_0x3e6671(0x1ff)](_0x43a1ec);if(!this['_started'])this[_0x3e6671(0x2e7)]();}[_0x2af6e2(0x19b)](_0xd69815){const _0x5eb90f=_0x2af6e2;this[_0x5eb90f(0x2f6)]?.['delete'](_0xd69815);}[_0x2af6e2(0x2e7)](){const _0x1231f2=_0x2af6e2;if(this[_0x1231f2(0x2d5)])return;this[_0x1231f2(0x2d5)]=!![];!this['_h']&&(this['_h']=_0x538b4c({'resolution':0xa}),this['_h'][_0x1231f2(0x298)]());const _0x541615=_0x121401;this[_0x1231f2(0x224)]=setInterval(()=>{const _0x29c3ec=_0x1231f2,_0x5eeb32=this['_h'];if(!_0x5eeb32)return;const _0x58f037=_0x5eeb32[_0x29c3ec(0x154)](0x63)/0xf4240,_0x1f060=_0x5eeb32['max']/0xf4240,_0x47f166=_0x5eeb32[_0x29c3ec(0x173)]/0xf4240;_0x5eeb32[_0x29c3ec(0x190)]();if(this[_0x29c3ec(0x2f6)])for(const _0x32a2eb of this[_0x29c3ec(0x2f6)]){try{_0x32a2eb({'p99Ms':_0x58f037,'maxMs':_0x1f060,'meanMs':_0x47f166,'reportMs':_0x541615});}catch{}}},_0x541615);if(this[_0x1231f2(0x224)][_0x1231f2(0x195)])this['_admissionTimer']['unref']();}[_0x2af6e2(0x2b2)](){const _0x7d9d3b=_0x2af6e2,_0x5a03b2=this['_h'],_0x2aceab=_0x5a03b2[_0x7d9d3b(0x17a)]/0xf4240,_0x1bedb6=_0x5a03b2['percentile'](0x63)/0xf4240,_0x3d44b5=_0x5a03b2[_0x7d9d3b(0x173)]/0xf4240;_0x5a03b2['reset']();const _0xebe30b=[...this[_0x7d9d3b(0x287)]['entries']()]['map'](([_0x225611,_0x34b840])=>({'label':_0x225611,..._0x34b840}))[_0x7d9d3b(0x192)]((_0x40cf07,_0x110697)=>_0x110697['ms']-_0x40cf07['ms'])[_0x7d9d3b(0x244)](0x0,0x8);this[_0x7d9d3b(0x287)][_0x7d9d3b(0x326)]();const _0x392bcd=_0xebe30b[_0x7d9d3b(0x142)]((_0x5dd604,_0x1629c2)=>_0x5dd604+_0x1629c2['ms'],0x0),_0x4333f9=_0xebe30b['map'](_0x5b7282=>_0x5b7282[_0x7d9d3b(0x17d)]+'='+_0x5b7282['ms'][_0x7d9d3b(0x186)](0x0)+_0x7d9d3b(0x1ac)+_0x5b7282[_0x7d9d3b(0x2a1)]+(_0x5b7282['maxMs']>0x5?_0x7d9d3b(0x34d)+_0x5b7282[_0x7d9d3b(0x219)][_0x7d9d3b(0x186)](0x0)+'ms'+(_0x5b7282['maxExtra']?'\x20'+_0x5b7282[_0x7d9d3b(0x124)]:'')+')':''));(_0x1ee0dd||_0x2aceab>=_0x1137c8)&&this['_log']('loop-lag\x20'+_0x121401+_0x7d9d3b(0x21d)+_0x2aceab[_0x7d9d3b(0x186)](0x0)+_0x7d9d3b(0x299)+_0x1bedb6[_0x7d9d3b(0x186)](0x0)+'ms\x20mean='+_0x3d44b5[_0x7d9d3b(0x186)](0x0)+_0x7d9d3b(0x14f)+_0x392bcd['toFixed'](0x0)+'ms'+(_0x4333f9['length']?_0x7d9d3b(0x1ee)+_0x4333f9[_0x7d9d3b(0x159)]('\x20\x20'):''),{'feature':_0x7d9d3b(0x18c)});if(this[_0x7d9d3b(0x2f6)])for(const _0x53d4f0 of this['_windowCbs']){try{_0x53d4f0({'p99Ms':_0x1bedb6,'maxMs':_0x2aceab,'meanMs':_0x3d44b5,'reportMs':_0x121401});}catch{}}}['stop'](){const _0x195130=_0x2af6e2;if(this[_0x195130(0x178)])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x195130(0x156)]();this[_0x195130(0x178)]=null,this['_h']=null,this['_started']=![];}}const _0x5e06b6=new _0x2b7252();if(_0x5e06b6[_0x2af6e2(0x2fb)])_0x5e06b6[_0x2af6e2(0x1e1)]();return okdbLoopMonitor={'LOOP':_0x5e06b6},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x2d4dc4=require$$0$1,_0x6870d2=require$$1;let _0x5e4d7b,_0x277110,_0x581192,_0xca298e,_0x2d9e04,_0x466fe8,_0x2151c3,_0x583a56=![];const _0x446276=new Set();let _0x5e5a17=null;const _0x4e4fb4=new Map();function _0x299311(){const _0x42e5f8=_0x58e7;if(_0x5e4d7b!==undefined)return _0x5e4d7b;_0x5e4d7b=process.env.OKDB_DIAG==='1';if(!_0x5e4d7b)return![];_0x277110=process.env.OKDB_DIAG_STACK==='1',_0xca298e=Math[_0x42e5f8(0x17a)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x581192=new Array(_0xca298e),_0x2d9e04=0x0,_0x466fe8=0x0,_0x2151c3=process.env.OKDB_DIAG_DIR||null;if(_0x2151c3)try{_0x2d4dc4[_0x42e5f8(0x20f)](_0x2151c3,{'recursive':!![]});}catch{}return!![];}function _0x57d88c(){return _0x5e4d7b===undefined?_0x299311():_0x5e4d7b;}function _0x4c72a3(_0x4ebd77,_0x33bee8){const _0x5f4b98=_0x58e7;if(_0x5e4d7b===undefined?!_0x299311():!_0x5e4d7b)return;let _0x5f3c48;if(_0x277110){const _0x3b0a7f=new Error()['stack']||'';_0x5f3c48=_0x3b0a7f[_0x5f4b98(0x16a)]('\x0a')[_0x5f4b98(0x244)](0x3)[_0x5f4b98(0x33e)](_0x388b57=>_0x388b57[_0x5f4b98(0x1d0)]())['filter'](Boolean)[_0x5f4b98(0x244)](0x0,0x8);}_0x581192[_0x2d9e04]={'seq':_0x466fe8++,'t':Date[_0x5f4b98(0x348)](),'env':_0x4ebd77,'kind':_0x33bee8||_0x5f4b98(0x160),'stack':_0x5f3c48},_0x2d9e04=(_0x2d9e04+0x1)%_0xca298e;}function _0x54b482(_0x48fbfe){const _0x4f1eaa=_0x58e7,_0x2e15a2=[];for(let _0x2c5124=0x0;_0x2c5124<_0xca298e;_0x2c5124++){const _0xbbb62a=_0x581192[(_0x2d9e04-0x1-_0x2c5124+_0xca298e*0x2)%_0xca298e];if(!_0xbbb62a)continue;_0x2e15a2['push'](_0xbbb62a);if(_0x2e15a2[_0x4f1eaa(0x149)]>=_0x48fbfe)break;}return _0x2e15a2;}function _0x1aedc5(_0x196d53){const _0x39ba36=_0x58e7;try{process[_0x39ba36(0x12f)]['write'](_0x196d53+'\x0a');}catch{}if(_0x2151c3)try{_0x2d4dc4[_0x39ba36(0x176)](_0x6870d2[_0x39ba36(0x159)](_0x2151c3,_0x39ba36(0x1c3)+process[_0x39ba36(0x1a8)]+_0x39ba36(0x128)),_0x196d53+'\x0a');}catch{}}function _0x5c0a02(_0x157321){const _0x4eb39c=_0x58e7,_0x57e84c=_0x54b482(_0x157321);if(!_0x57e84c[_0x4eb39c(0x149)])return _0x4eb39c(0x1f5);const _0x4f622f=Date[_0x4eb39c(0x348)]();return _0x57e84c[_0x4eb39c(0x33e)](_0x28e26f=>{const _0x51f7c1=_0x4eb39c,_0xf03f19=_0x51f7c1(0x2a4)+_0x28e26f[_0x51f7c1(0x31b)]+'\x20-'+(_0x4f622f-_0x28e26f['t'])+_0x51f7c1(0x26e)+_0x28e26f[_0x51f7c1(0x21a)]+'\x20'+_0x28e26f[_0x51f7c1(0x250)];return _0x28e26f['stack']&&_0x28e26f['stack'][_0x51f7c1(0x149)]?_0xf03f19+_0x51f7c1(0x13d)+_0x28e26f['stack'][_0x51f7c1(0x159)](_0x51f7c1(0x13d)):_0xf03f19;})['join']('\x0a');}function _0x1b7281(_0x125853,_0x57a549){const _0x35af9b=_0x58e7,_0x2fc6e5=_0x35af9b(0x2c8)+_0x125853+_0x35af9b(0x31d)+new Date()[_0x35af9b(0x189)]()+_0x35af9b(0x151)+process['pid']+_0x35af9b(0x194),_0x32bc05=[_0x2fc6e5,'error:\x20'+(_0x57a549&&_0x57a549[_0x35af9b(0x220)]?_0x57a549[_0x35af9b(0x220)][_0x35af9b(0x16a)]('\x0a')[0x0]:_0x57a549),'recent\x20writes\x20(newest\x20first)'+(_0x277110?'':_0x35af9b(0x172))+':',_0x5c0a02(0x18),_0x5f4520(),'='[_0x35af9b(0x344)](_0x2fc6e5['length']-0x1)];_0x1aedc5(_0x32bc05[_0x35af9b(0x159)]('\x0a'));}function _0x45f666(_0x2f09bb){const _0x15ffbd=_0x58e7;if(!_0x57d88c())return;const _0xf9c496=String(_0x2f09bb&&_0x2f09bb['message']||_0x2f09bb||''),_0x444a8e=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x15ffbd(0x34c)](_0xf9c496);_0x1b7281(_0x444a8e?_0x15ffbd(0x20d):_0x15ffbd(0x1b9),_0x2f09bb);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x444a8e)return;try{console[_0x15ffbd(0x2c5)](_0x2f09bb&&_0x2f09bb[_0x15ffbd(0x220)]?_0x2f09bb[_0x15ffbd(0x220)]:_0x2f09bb);}catch{}process[_0x15ffbd(0x2c3)](0x1);}function _0x31aac3(_0x4475f2){const _0x587de2=_0x58e7;if(!_0x57d88c())return;const _0xb0dd4d=String(_0x4475f2&&_0x4475f2[_0x587de2(0x188)]||_0x4475f2||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x587de2(0x34c)](_0xb0dd4d)&&_0x1b7281('ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)',_0x4475f2);}function _0x5f4520(){const _0x20c330=_0x58e7,_0x18e5b1=['drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):'];let _0x4de020=![];for(const _0x24aace of _0x446276){const _0x44ff57=_0x24aace&&_0x24aace[_0x20c330(0x31a)];if(!_0x44ff57)continue;for(const [_0x51ae09,_0x1e8921]of _0x44ff57){const _0x2cb115=_0x1e8921&&_0x1e8921[_0x20c330(0x27c)]&&_0x1e8921['_coordinator'][_0x20c330(0x148)];if(!_0x2cb115)continue;let _0x4cbce6,_0x3a8e53;try{_0x4cbce6=Atomics['load'](_0x2cb115,0x0),_0x3a8e53=Atomics[_0x20c330(0x169)](_0x2cb115,0x1);}catch{continue;}if(_0x4cbce6===0x0)continue;_0x4de020=!![];const _0x315739=_0x4cbce6>0x0?_0x20c330(0x34b):_0x20c330(0x2c7),_0x1fb8f8=Date[_0x20c330(0x348)]()-Math[_0x20c330(0x2b8)](_0x4cbce6)*0x3e8,_0x2ae27c=((()=>{const _0x35f657=_0x20c330;try{return _0x1e8921[_0x35f657(0x30d)]&&_0x1e8921[_0x35f657(0x30d)]['status']?_0x1e8921[_0x35f657(0x30d)][_0x35f657(0x29d)]():null;}catch{return null;}})());_0x18e5b1[_0x20c330(0x1b4)](_0x20c330(0x2bd)+_0x51ae09+'\x20phase='+_0x315739+_0x20c330(0x1a0)+_0x1fb8f8+_0x20c330(0x319)+_0x3a8e53+(_0x2ae27c?_0x20c330(0x2af)+_0x2ae27c[_0x20c330(0x196)]+'\x20oldestPendingMs='+_0x2ae27c[_0x20c330(0x203)]+'\x20parkedNow='+_0x2ae27c[_0x20c330(0x33d)]+'}':''));}}if(!_0x4de020)_0x18e5b1[_0x20c330(0x1b4)](_0x20c330(0x25f));return _0x18e5b1[_0x20c330(0x159)]('\x0a');}function _0x32205b(){const _0x23cb3a=_0x58e7;if(!_0x57d88c())return;const _0x388ab1=Math[_0x23cb3a(0x17a)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x412565=Date[_0x23cb3a(0x348)]();for(const _0x226daa of _0x446276){const _0x355e14=_0x226daa&&_0x226daa['_envs'];if(!_0x355e14)continue;for(const [_0x4f67ad,_0x14fdaa]of _0x355e14){const _0x316813=_0x14fdaa&&_0x14fdaa[_0x23cb3a(0x27c)]&&_0x14fdaa[_0x23cb3a(0x27c)][_0x23cb3a(0x148)];if(!_0x316813)continue;let _0x4b08ce;try{_0x4b08ce=Atomics[_0x23cb3a(0x169)](_0x316813,0x0);}catch{continue;}const _0x2037e6=_0x226daa['path']+'|'+_0x4f67ad;if(_0x4b08ce<=0x0){_0x4e4fb4[_0x23cb3a(0x23f)](_0x2037e6);continue;}const _0x67798f=_0x412565-_0x4b08ce*0x3e8,_0x454d54=_0x4e4fb4[_0x23cb3a(0x1fd)](_0x2037e6);if(_0x67798f<_0x388ab1)continue;if(_0x454d54&&_0x412565-_0x454d54[_0x23cb3a(0x167)]<_0x388ab1)continue;_0x4e4fb4['set'](_0x2037e6,{'firstTs':_0x454d54?_0x454d54[_0x23cb3a(0x1dc)]:_0x4b08ce,'dumpedAt':_0x412565});const _0x4cd9ac=_0x23cb3a(0x12b)+_0x67798f+_0x23cb3a(0x308)+_0x4f67ad+_0x23cb3a(0x31d)+new Date()['toISOString']()+_0x23cb3a(0x151)+process[_0x23cb3a(0x1a8)]+_0x23cb3a(0x194);_0x1aedc5([_0x4cd9ac,_0x5f4520(),'='['repeat'](_0x4cd9ac[_0x23cb3a(0x149)]-0x1)][_0x23cb3a(0x159)]('\x0a'));}}}function _0x495287(){const _0x33a4dc=_0x58e7;if(!_0x57d88c()||_0x583a56)return;_0x583a56=!![],process[_0x33a4dc(0x135)](_0x33a4dc(0x1b9),_0x45f666),process[_0x33a4dc(0x135)](_0x33a4dc(0x33b),_0x31aac3);const _0x358611=Math[_0x33a4dc(0x17a)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x5e5a17=setInterval(_0x32205b,_0x358611);if(_0x5e5a17[_0x33a4dc(0x195)])_0x5e5a17[_0x33a4dc(0x195)]();}function _0x287da8(_0x448882){const _0x38eb16=_0x58e7;if(!_0x57d88c()||!_0x448882)return;_0x446276[_0x38eb16(0x1ff)](_0x448882),_0x495287();}function _0xc9ec48(_0x1bcd3c){_0x446276['delete'](_0x1bcd3c);}function _0x145cbd(){if(!_0x57d88c())return{'enabled':![],'hint':'set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)'};return{'enabled':!![],'stackCapture':!!_0x277110,'recentWrites':_0x54b482(0x10),'drain':_0x5f4520()};}return okdbDiag={'isEnabled':_0x57d88c,'recordWrite':_0x4c72a3,'installDiag':_0x495287,'registerOkdb':_0x287da8,'unregisterOkdb':_0xc9ec48,'snapshot':_0x145cbd},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x1742db=_0x337619;if(hasRequiredOkdbWriter)return okdbWriter[_0x1742db(0x2c1)];hasRequiredOkdbWriter=0x1;const {performance:_0x3dadb0}=require$$0$2,_0x4e249d=requireOkdbDiag(),_0xf8fd77=process.env.OKDB_COMMIT_MODE===_0x1742db(0x174);class _0x3fd337{constructor(_0x394a11){const _0x548ed9=_0x1742db;this[_0x548ed9(0x21a)]=_0x394a11,this[_0x548ed9(0x15f)]=new Set(),this[_0x548ed9(0x1db)]=new Map(),this[_0x548ed9(0x131)]=0x0,this[_0x548ed9(0x1b0)]=[],this['_done']=[],this[_0x548ed9(0x2da)]=Math[_0x548ed9(0x17a)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x548ed9(0x293)]=0x0,this['_bpWaiters']=[],this[_0x548ed9(0x263)]=0x0;}async[_0x1742db(0x32a)](_0xd16f75,_0x2b5009){const _0x4514ac=_0x1742db;if(_0x4e249d['isEnabled']())_0x4e249d['recordWrite'](this[_0x4514ac(0x21a)]?.['name'],_0x2b5009);if(this[_0x4514ac(0x339)]){const _0x1041c7=new Error(_0x4514ac(0x14d));_0x1041c7[_0x4514ac(0x1c0)]=_0x4514ac(0x158);throw _0x1041c7;}if(this[_0x4514ac(0x2da)]>0x0){let _0x2faf8e=![];while(this[_0x4514ac(0x293)]>=this[_0x4514ac(0x2da)]&&!this[_0x4514ac(0x339)]){!_0x2faf8e&&(_0x2faf8e=!![],this[_0x4514ac(0x263)]++),await new Promise(_0x21353d=>this[_0x4514ac(0x27b)][_0x4514ac(0x1b4)](_0x21353d));}if(this[_0x4514ac(0x339)]){const _0x4bfdc7=new Error(_0x4514ac(0x14d));_0x4bfdc7['code']=_0x4514ac(0x158);throw _0x4bfdc7;}}this[_0x4514ac(0x293)]++;const _0x287aa3=this['env'][_0x4514ac(0x27c)];if(_0x287aa3)await _0x287aa3[_0x4514ac(0x164)]();if(this[_0x4514ac(0x339)]){if(_0x287aa3)_0x287aa3[_0x4514ac(0x2c9)]();this[_0x4514ac(0x293)]--;if(this[_0x4514ac(0x27b)]['length']&&this[_0x4514ac(0x293)]<this[_0x4514ac(0x2da)])this[_0x4514ac(0x27b)][_0x4514ac(0x294)]()();const _0x547b5d=new Error(_0x4514ac(0x14d));_0x547b5d[_0x4514ac(0x1c0)]=_0x4514ac(0x158);throw _0x547b5d;}const _0x1f1016=_0x3dadb0[_0x4514ac(0x348)]();if(_0xf8fd77)try{const _0x15a179=this[_0x4514ac(0x21a)]['db'][_0x4514ac(0x20c)](_0xd16f75);this['_committed']++;if(this['_durs'][_0x4514ac(0x1b4)](_0x3dadb0[_0x4514ac(0x348)]()-_0x1f1016)>0x100)this[_0x4514ac(0x1b0)][_0x4514ac(0x294)]();if(this[_0x4514ac(0x15c)][_0x4514ac(0x1b4)](_0x3dadb0[_0x4514ac(0x348)]())>0x800)this['_done'][_0x4514ac(0x294)]();return _0x15a179;}finally{this['_outstanding']--;if(this[_0x4514ac(0x27b)][_0x4514ac(0x149)]&&this['_outstanding']<this[_0x4514ac(0x2da)])this[_0x4514ac(0x27b)][_0x4514ac(0x294)]()();if(_0x287aa3)_0x287aa3[_0x4514ac(0x2c9)]();}const _0x257e8b=this[_0x4514ac(0x21a)]['db']['childTransaction'](_0xd16f75);this['_inflight'][_0x4514ac(0x1ff)](_0x257e8b),this[_0x4514ac(0x1db)][_0x4514ac(0x217)](_0x257e8b,_0x1f1016);const _0x2e8f73=()=>{const _0x41ac27=_0x4514ac;this['_inflight'][_0x41ac27(0x23f)](_0x257e8b),this['_enqueuedAt'][_0x41ac27(0x23f)](_0x257e8b),this[_0x41ac27(0x131)]++,this['_outstanding']--;this[_0x41ac27(0x27b)]['length']&&this[_0x41ac27(0x293)]<this[_0x41ac27(0x2da)]&&this['_bpWaiters'][_0x41ac27(0x294)]()();if(this[_0x41ac27(0x1b0)]['push'](_0x3dadb0['now']()-_0x1f1016)>0x100)this[_0x41ac27(0x1b0)]['shift']();if(this['_done'][_0x41ac27(0x1b4)](_0x3dadb0[_0x41ac27(0x348)]())>0x800)this[_0x41ac27(0x15c)][_0x41ac27(0x294)]();};_0x257e8b[_0x4514ac(0x248)](_0x2e8f73,_0x2e8f73);try{return await _0x257e8b;}finally{if(_0x287aa3)_0x287aa3[_0x4514ac(0x2c9)]();}}['status'](){const _0x4328f4=_0x1742db,_0x30fb28=_0x3dadb0['now']();let _0xce9a81=0x0;for(const _0x5ea3f2 of this[_0x4328f4(0x1db)]['values']()){const _0x4d145e=_0x30fb28-_0x5ea3f2;if(_0x4d145e>_0xce9a81)_0xce9a81=_0x4d145e;}let _0x351817=0x0;for(let _0x26a9ad=this[_0x4328f4(0x15c)][_0x4328f4(0x149)]-0x1;_0x26a9ad>=0x0;_0x26a9ad--){if(_0x30fb28-this[_0x4328f4(0x15c)][_0x26a9ad]>0x3e8)break;_0x351817++;}let _0x134abb=0x0;if(this['_durs'][_0x4328f4(0x149)]){const _0x5c4ea2=[...this[_0x4328f4(0x1b0)]]['sort']((_0x1cd7ec,_0x3184a5)=>_0x1cd7ec-_0x3184a5);_0x134abb=_0x5c4ea2[Math[_0x4328f4(0x278)](_0x5c4ea2['length']-0x1,Math[_0x4328f4(0x1e4)](_0x5c4ea2[_0x4328f4(0x149)]*0.99))];}return{'depth':this['_inflight']['size'],'oldestPendingMs':Math[_0x4328f4(0x143)](_0xce9a81),'committed':this[_0x4328f4(0x131)],'commitsPerSec':_0x351817,'commitP99Ms':Math[_0x4328f4(0x143)](_0x134abb),'parkedNow':this['_bpWaiters'][_0x4328f4(0x149)],'parkedTotal':this[_0x4328f4(0x263)],'highWater':this[_0x4328f4(0x2da)]};}[_0x1742db(0x2c6)](){const _0xbefbe1=_0x1742db,_0x4b0e85=_0x3dadb0[_0xbefbe1(0x348)]();return[...this[_0xbefbe1(0x1db)][_0xbefbe1(0x1c9)]()][_0xbefbe1(0x33e)](_0x4fd91c=>Math[_0xbefbe1(0x143)](_0x4b0e85-_0x4fd91c))[_0xbefbe1(0x192)]((_0x12cefa,_0x5e4762)=>_0x5e4762-_0x12cefa);}[_0x1742db(0x316)](){const _0x549605=_0x1742db;this['_closed']=!![];for(const _0x40fb4a of this[_0x549605(0x27b)]['splice'](0x0))_0x40fb4a();}async[_0x1742db(0x1c1)](){const _0x31cd6f=_0x1742db;let _0x51e7ed=0x0;while(this['_inflight'][_0x31cd6f(0x1e8)]&&_0x51e7ed++<0x3e8){await Promise[_0x31cd6f(0x32c)]([...this[_0x31cd6f(0x15f)]]);}}async[_0x1742db(0x129)](_0x120392,_0x4d932b,_0x112380,_0x517140){const _0x515344=_0x1742db;return this[_0x515344(0x32a)](()=>{const _0x5711b1=_0x515344;if(_0x517140===undefined)_0x120392['putSync'](_0x4d932b,_0x112380);else _0x120392[_0x5711b1(0x300)](_0x4d932b,_0x112380,_0x517140);},_0x515344(0x170));}async[_0x1742db(0x1f2)](_0x1f0836,_0x5c3025){const _0x321334=_0x1742db;return this[_0x321334(0x32a)](()=>_0x1f0836[_0x321334(0x29a)](_0x5c3025),_0x321334(0x313));}}async function _0x39d50d(_0x44e52b,_0x5ae566){const _0x147a14=_0x1742db;if(_0x5ae566==null)_0x5ae566=Math['max'](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x726599=_0x44e52b?.[_0x147a14(0x1d5)];if(!_0x726599||typeof _0x726599[_0x147a14(0x248)]!==_0x147a14(0x1b8))return;await Promise[_0x147a14(0x152)]([Promise[_0x147a14(0x21e)](_0x726599)[_0x147a14(0x183)](()=>{}),new Promise(_0x16fca0=>{const _0x17fbf0=_0x147a14,_0x1196f8=setTimeout(_0x16fca0,_0x5ae566);if(_0x1196f8[_0x17fbf0(0x195)])_0x1196f8[_0x17fbf0(0x195)]();})]);}catch{}}function _0x218c67(_0x50dd47){const _0x3caced=_0x1742db;if(_0xf8fd77)return Promise[_0x3caced(0x21e)]();const _0x3da6cb=_0x50dd47?.[_0x3caced(0x304)];return _0x3da6cb&&typeof _0x3da6cb[_0x3caced(0x248)]===_0x3caced(0x1b8)?_0x3da6cb:Promise[_0x3caced(0x21e)]();}return okdbWriter['exports']=_0x3fd337,okdbWriter[_0x1742db(0x2c1)][_0x1742db(0x266)]=_0x39d50d,okdbWriter['exports']['committed']=_0x218c67,okdbWriter[_0x1742db(0x2c1)]['SYNC_COMMITS']=_0xf8fd77,okdbWriter['exports'];}var okdbLock,hasRequiredOkdbLock;function _0x1400(){const _0x2dd809=['single','putNode','pid','deaths','started','_collectWriterFacet','ms/','SYSTEM_PROC','\x20ipc\x20error:\x20','dropType','_durs','cursorKey','schema:drop','inspect','push','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','workers','online','function','uncaughtException','draining','openDB','_dedupeKey','fts:registered','node:events','node:perf_hooks','code','drain','external','okdb-diag.',':want','release','envsOpen','write','process','values','_lastPublishAt','processKey','running','stopping','clearTtl','halted','trim','_putRowSync','_scheduleFlush','_selfKey','10597430Xetxub','flushed','decommissioned','processor:resumed','processor:progress','_onItem','_instanceId','_enqueuedAt','firstTs','_wantDb','list','processor:ready','claimGated','start','entries','_removeRowAsync','floor','string','dropping','system','size','setSchema','~processes','respawnTimer','_released','removeNode','\x20│\x20','signalWant','object','replace','remove','epoch','caps','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','INDEX_READY','env:opened','_publishNow','_startedAt','off','setTtl','lifecycle','get','getChanges','add','[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot=','processing','keys','oldestPendingMs','stopped','_drainOne','license:activated','slot','setLogger','index:registered','30152ebeuaz','_quantum','transactionSync','ORPHAN\x20(env-closed\x20write)','FTS_RESET','mkdirSync','cluster','cpuWindowMs','processor:retry','fromEntries','freeze','_singletonLocks','publishOwnRow','set','_nodeDead','maxMs','env','warn','value','ms\x20max=','resolve','_adminRelay','stack','index:progress','has','assign','_admissionTimer','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','processorsView','_started','functions','FTS_DROP','listAll','participate','_holderDead','send','--inspect','procmodeack/','extend','\x20(slot=','~lock','_openEnvLazy','resetIndex','license:removed','registerFts','primary','_drain','prototype','_isReader','_maybePublish','building','ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20','http','delete','_startHeartbeat','_threadStats','INDEX_RESET','ready','slice','filter','win32','_isWriter','then','runtimeProcessesView','ttlMs','2361611kPsqFv','_versionSkewWarned','_lastCpuPct','force','onWindow','kind','consecutiveFailures','user','rows=','busy','type:drop',')\x20exited\x20','slotKey','\x20HTTP\x20server(s)\x20on\x20port\x20','isWorker','reportThreadStats','events','created','ITEM_REMOVE','acquiredAt','\x20\x20(no\x20env\x20draining)','_lockDb','feed:','_lastCpuAt','_bpParkedTotal','reap','system:bus_state_change','flushLmdb','node','stopHeartbeat','_nodeDbFor','async','confirm','system:type_drop','registry-publish','ms\x20env=','_draining','_handleInProcess','resetting','dropFts','ms\x20(attempt\x20','REMOVE','standalone','meta','pushEphemeral','min','_lock','find','_bpWaiters','_coordinator','index:drop','removeSupervisedChild','holder','_participate','_onPoke','2687440jbvuFp','ESRCH','cli','default','startHeartbeat','_buckets','--test','1512846PNFSoO','_onProcEvent','stats','license:added','instanceId','open','SYSTEM_STOPPED','_putRowAsync','updateSupervisedChildStats','decommission','_outstanding','shift','children','listDesired','_desiredOverlay','enable','ms\x20p99=','removeSync','_cursors','bus:proc','status','ref:violation_resolved','[okdb-cluster]\x20','attachFeed','count','--print','deregisterSelf','\x20\x20#','noteListenAddr','kill','_servingEngines','_role','emit','128PVDXyD','once','_publishFailWarned','_activateProcesses','_clusterOnMessage','\x20writer{depth=','_refreshDesiredSnapshot','isConnected','_report','_flushDebounce','threads','_cmd','_caps','host','abs','(code=','flushDebounce','listNodes','hasDesired','\x20\x20env=','_key','getRange','rss','exports','includes','exit','expiresAt','error','inflightAgesMs','copy','\x0a===\x20OKDB_DIAG\x20','afterWrite','tryAcquire','listenAddr','system:ready','_db','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','_rawDb','ttl:set','msg','stop','processors','registry\x20heartbeat\x20skipped\x20(writer=','_admissionStarted','execArgv','_changefeed','getProcess','_statusEnv','_highWater','schema:set','role','24OMOUlN','_heartbeatInFlight','_baselines','isWanted','\x20forked\x20','memoryUsage','_onStop','registerType','clusterStatusView','processingStatusView','_startAdmission','compaction','env:removed','publishChildRow','singletonClaims','bus:poke','_acquiredAt',');\x20','disconnect','hasType','bus:env_release','isPrimary','ppid','unclaimed','processor:paused','_windowCbs','resetReadTxn','_wantDbHandle','setOwnMeta','_handlePoke','enabled','_seen','http\x20worker\x20child\x20failed:\x20','randomUUID','_buildProcessingFacet','putSync','fanout','_rootDb','ephemeral','committed','_buildChildRow','dedupeMax','system:poke','ms\x20on\x20env=','view:progress','ITEM_UPDATE','all','options','_writer','_singletonLock','note','\x20in\x20','cluster:','close','raw-remove','log','[okdb-cluster]\x20change-feed\x20init\x20failed:\x20','markClosed','--watch','workersConfigured','ms\x20activeWriters=','_envs','seq','system:env_release','\x20@\x20','_dedupeMax','dead','clearThreadStats','CHANGEFEED_QUANTUM','some','_sampleOwnStats','heartbeatMs','true','clear','\x20while\x20this\x20process\x20runs\x20','_getType','_isStale','transaction','\x20statusEnv=','allSettled','_enableChangelog','SYSTEM_POKE','platform','next','_sandbox','supervisorKey','_desired','okdb-http-worker-child.js','bus:type_drop','_children','type:registered','sandbox','_closed','_nodeDbCache','unhandledRejection','_clusterWorkerAttached','parkedNow','map','engines','processes','_collectSingletonClaims','version','_processStartedAt','repeat','treeView','SIGKILL','heapUsed','now','_groupByProcess','system:stopped','SWAP','test','(worst\x20','compact','\x20sync','__esModule','worker','setDesired','childTransaction','updatedAt','node/','_kind','parse','cpuUsage','_hbTimer','from','maxExtra','heapTotal','writerStatus','_ownMeta','.log','put','process\x20','\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20','_migrateVocab','cpus','okdb','stderr','[okdb-cluster]\x20primary\x20pid=','_committed','info','~processes:desired','crypto','prependListener','connected','processor','getClock','rowKey','_onTick','entry','inst:','\x0a\x20\x20\x20\x20\x20\x20','uptime','325496ZOrlre','nodesView','processorId','reduce','round','namespace','[okdb-cluster]\x20respawning\x20worker\x20slot=','call','attach','view','length','_systemEnv','__okdbSlot','\x20(durable\x20desired-state)','okdb-writer:\x20env\x20closing\x20—\x20retry','dropSchema','ms\x20busy=','cluster-wide','\x20pid=','race','index:ready','percentile','_listenAddr','disable','fn-runner','ENV_CLOSING_RETRY','join','stringify','hostname','_done','INDEX_REGISTERED','sync:apply','_inflight','commit','__okdbCluster','_flushTimer','_buildOwnRow','beforeWrite','getCmd','ITEM_CREATE','dumpedAt','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','load','split','system:drain','creating','selfKey','isDead','bus:drain','raw-put','type','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','mean','sync','nodeKey','appendFileSync','embedded','_timer','ttl:clear','max','_ensureDesired','_lastCpuUsage','label','processor:error','mode','fts:drop','_nodeDb','_markSeen','catch','_heartbeatTimer','waiting','toFixed','29181FXAbNV','message','toISOString','migrations','resetFts','loop-lag','indexOf','txn:start','change','reset','_rowKey','sort','state','\x20===','unref','depth','commitP99Ms','startsWith','_supervisorKey','http-server','offWindow','_pending','_log','startedAt','\x20times\x20in\x20','\x20drainAge=','getDesired','1845DEnGEc','number','claims',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census'];_0x1400=function(){return _0x2dd809;};return _0x1400();}function requireOkdbLock(){const _0x4ee260=_0x337619;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x4c4997=require$$0$3,{SYNC_COMMITS:_0x49c9f1}=requireOkdbWriter(),_0x1b821b=_0x4ee260(0x232);class _0x518c10{constructor(_0x5c8a2b,_0x12dc01,_0x2a8480){const _0x4fcbf4=_0x4ee260;this[_0x4fcbf4(0x279)]=_0x5c8a2b,this[_0x4fcbf4(0x2be)]=_0x12dc01,this[_0x4fcbf4(0x2ed)]=_0x2a8480,this[_0x4fcbf4(0x1ec)]=![],this['_heartbeatTimer']=null,this['_heartbeatInFlight']=null;}['isHeld'](){const _0x5b59e2=_0x4ee260;if(this[_0x5b59e2(0x1ec)])return![];try{const _0x2f28cb=this[_0x5b59e2(0x279)][_0x5b59e2(0x2cd)]()[_0x5b59e2(0x1fd)](this[_0x5b59e2(0x2be)]);if(!_0x2f28cb||_0x2f28cb['acquiredAt']!==this[_0x5b59e2(0x2ed)])return![];const _0x165d26=_0x2f28cb[_0x5b59e2(0x354)]??_0x2f28cb[_0x5b59e2(0x25e)];if(_0x165d26+_0x2f28cb[_0x5b59e2(0x24a)]<Date[_0x5b59e2(0x348)]())return![];return!![];}catch{return!this['_released'];}}['holder'](){const _0x4a4c85=_0x4ee260;if(this[_0x4a4c85(0x1ec)])return null;try{return this['_lock'][_0x4a4c85(0x2cd)]()[_0x4a4c85(0x1fd)](this[_0x4a4c85(0x2be)])??null;}catch{return null;}}async[_0x4ee260(0x230)](_0x435d6c){const _0x50455f=_0x4ee260;if(this[_0x50455f(0x1ec)])return;try{const _0x2cb2f7=this[_0x50455f(0x279)][_0x50455f(0x2cd)]()[_0x50455f(0x1fd)](this['_key']);if(!_0x2cb2f7||_0x2cb2f7[_0x50455f(0x25e)]!==this[_0x50455f(0x2ed)])return;if(_0x49c9f1)this[_0x50455f(0x279)][_0x50455f(0x2cd)]()['putSync'](this['_key'],{..._0x2cb2f7,'ttlMs':_0x2cb2f7['ttlMs']+_0x435d6c});else await this[_0x50455f(0x279)][_0x50455f(0x2cd)]()[_0x50455f(0x129)](this['_key'],{..._0x2cb2f7,'ttlMs':_0x2cb2f7[_0x50455f(0x24a)]+_0x435d6c});}catch{}}async[_0x4ee260(0x1c5)](){const _0x54a188=_0x4ee260;if(this[_0x54a188(0x1ec)])return;if(this[_0x54a188(0x2de)])try{await this['_heartbeatInFlight'];}catch{}clearInterval(this[_0x54a188(0x184)]),this['_heartbeatTimer']=null,this['_released']=!![];try{const _0xb90529=this['_lock'][_0x54a188(0x2cd)]()['get'](this['_key']);if(_0xb90529&&_0xb90529['acquiredAt']===this['_acquiredAt']){if(_0x49c9f1)this[_0x54a188(0x279)]['_db']()[_0x54a188(0x29a)](this[_0x54a188(0x2be)]);else await this[_0x54a188(0x279)][_0x54a188(0x2cd)]()[_0x54a188(0x1f2)](this['_key']);}}catch{}}[_0x4ee260(0x240)](_0x59b8a2,_0x29face){const _0x5801dc=_0x4ee260,_0x2d9aa3=_0x29face??Math[_0x5801dc(0x1e4)](_0x59b8a2/0x3);this['_heartbeatTimer']=setInterval(()=>{const _0x47b292=_0x5801dc;if(this['_released'])return;this[_0x47b292(0x2de)]=((async()=>{const _0x51af62=_0x47b292;try{const _0xccfdce=this[_0x51af62(0x279)]['_db']()[_0x51af62(0x1fd)](this[_0x51af62(0x2be)]);if(!_0xccfdce||_0xccfdce[_0x51af62(0x25e)]!==this[_0x51af62(0x2ed)]){this[_0x51af62(0x1ec)]=!![],clearInterval(this['_heartbeatTimer']),this[_0x51af62(0x184)]=null;return;}if(_0x49c9f1)this[_0x51af62(0x279)][_0x51af62(0x2cd)]()[_0x51af62(0x300)](this[_0x51af62(0x2be)],{..._0xccfdce,'updatedAt':Date[_0x51af62(0x348)]()});else await this[_0x51af62(0x279)]['_db']()[_0x51af62(0x129)](this[_0x51af62(0x2be)],{..._0xccfdce,'updatedAt':Date['now']()});}catch{}this[_0x51af62(0x2de)]=null;})());},_0x2d9aa3);if(this[_0x5801dc(0x184)][_0x5801dc(0x195)])this[_0x5801dc(0x184)]['unref']();}}class _0x36751e{constructor(_0x2c9c7f,{namespace:_0x18f445,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x64bedf=_0x4ee260;this[_0x64bedf(0x2cf)]=_0x2c9c7f,this['namespace']=_0x18f445,this['ttlMs']=ttlMs,this[_0x64bedf(0x324)]=heartbeatMs,this[_0x64bedf(0x260)]=null;}[_0x4ee260(0x2cd)](){const _0x430c88=_0x4ee260;return!this['_lockDb']&&(this[_0x430c88(0x260)]=this['_rawDb'][_0x430c88(0x1bb)](_0x1b821b,{'dupSort':![]})),this[_0x430c88(0x260)];}['_wantDb'](){const _0x29429e=_0x4ee260;return!this[_0x29429e(0x2f8)]&&(this[_0x29429e(0x2f8)]=this[_0x29429e(0x2cf)][_0x29429e(0x1bb)](_0x1b821b+_0x29429e(0x1c4),{'dupSort':![]})),this['_wantDbHandle'];}[_0x4ee260(0x2be)](_0x27b2f6){const _0x539865=_0x4ee260;return this[_0x539865(0x144)]+':'+_0x27b2f6;}[_0x4ee260(0x1ef)](_0x34ed6e){const _0x68e404=_0x4ee260;try{_0x49c9f1?this['_wantDb']()['putSync'](this[_0x68e404(0x2be)](_0x34ed6e),Date[_0x68e404(0x348)]()):this['_wantDb']()[_0x68e404(0x129)](this['_key'](_0x34ed6e),Date['now']())?.['catch']?.(()=>{});}catch{}}[_0x4ee260(0x2e0)](_0x1ca297,_0x378b01=0x3e8){const _0x1a7fcc=_0x4ee260;try{const _0x4b2872=this[_0x1a7fcc(0x1dd)]()[_0x1a7fcc(0x1fd)](this['_key'](_0x1ca297));return typeof _0x4b2872===_0x1a7fcc(0x1a3)&&Date[_0x1a7fcc(0x348)]()-_0x4b2872<_0x378b01;}catch{return![];}}['_isStale'](_0x1a394f){const _0x1f96d2=_0x4ee260,_0x449ca4=_0x1a394f[_0x1f96d2(0x354)]??_0x1a394f[_0x1f96d2(0x25e)];return _0x449ca4+_0x1a394f[_0x1f96d2(0x24a)]<Date[_0x1f96d2(0x348)]();}static[_0x4ee260(0x22c)](_0x18d068){const _0x254daf=_0x4ee260,_0x26b2cb=_0x18d068?.[_0x254daf(0x27f)];if(!_0x26b2cb||typeof _0x26b2cb['pid']!=='number')return![];if(_0x26b2cb['hostname']!==_0x4c4997[_0x254daf(0x15b)]())return![];if(_0x26b2cb['pid']===process[_0x254daf(0x1a8)])return![];try{return process[_0x254daf(0x2a6)](_0x26b2cb[_0x254daf(0x1a8)],0x0),![];}catch(_0x47f36e){return _0x47f36e['code']===_0x254daf(0x283);}}async[_0x4ee260(0x2ca)](_0x2a18da,_0x5e825d={},_0x3f17e0={}){const _0x4b26ca=_0x4ee260,_0x40524b=this[_0x4b26ca(0x2be)](_0x2a18da),_0x1b5100=_0x3f17e0[_0x4b26ca(0x24a)]??this['ttlMs'],_0x562575=Date[_0x4b26ca(0x348)](),_0x98e8f5={'holder':{'pid':process[_0x4b26ca(0x1a8)],'hostname':_0x4c4997[_0x4b26ca(0x15b)](),..._0x5e825d},'acquiredAt':_0x562575,'updatedAt':_0x562575,'ttlMs':_0x1b5100};let _0x55e98e=![],_0x523508=null;try{const _0x58167e=()=>{const _0x2cd83b=_0x4b26ca,_0x410751=this[_0x2cd83b(0x2cd)]()[_0x2cd83b(0x1fd)](_0x40524b);if(_0x410751&&!this[_0x2cd83b(0x329)](_0x410751)&&!_0x36751e[_0x2cd83b(0x22c)](_0x410751)){const _0x32272d=_0x5e825d['processorId']!=null&&_0x410751[_0x2cd83b(0x27f)][_0x2cd83b(0x1a8)]===process[_0x2cd83b(0x1a8)]&&_0x410751[_0x2cd83b(0x27f)][_0x2cd83b(0x141)]===_0x5e825d[_0x2cd83b(0x141)];if(!_0x32272d){_0x55e98e=![],_0x523508=_0x410751;return;}_0x98e8f5[_0x2cd83b(0x25e)]<=_0x410751['acquiredAt']&&(_0x98e8f5[_0x2cd83b(0x25e)]=_0x410751[_0x2cd83b(0x25e)]+0x1,_0x98e8f5[_0x2cd83b(0x354)]=_0x98e8f5[_0x2cd83b(0x25e)]);}this['_db']()[_0x2cd83b(0x129)](_0x40524b,_0x98e8f5),_0x55e98e=!![],_0x523508=_0x98e8f5;};if(_0x49c9f1)this[_0x4b26ca(0x2cd)]()[_0x4b26ca(0x20c)](_0x58167e);else await this[_0x4b26ca(0x2cd)]()[_0x4b26ca(0x353)](_0x58167e);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x55e98e)return{'acquired':![],'handle':null,'current':_0x523508};const _0x38003b=new _0x518c10(this,_0x40524b,_0x98e8f5[_0x4b26ca(0x25e)]);return _0x38003b[_0x4b26ca(0x240)](_0x1b5100,this[_0x4b26ca(0x324)]),{'acquired':!![],'handle':_0x38003b,'current':_0x523508};}[_0x4ee260(0x1b3)](_0x19dcb1){const _0xa949dc=_0x4ee260;try{return this[_0xa949dc(0x2cd)]()[_0xa949dc(0x1fd)](this['_key'](_0x19dcb1))??null;}catch{return null;}}[_0x4ee260(0x1de)](){const _0x559c4d=_0x4ee260,_0x1a521d=this[_0x559c4d(0x144)]+':',_0x344442=[];try{for(const {key:_0x307ad3,value:_0x45cbed}of this[_0x559c4d(0x2cd)]()[_0x559c4d(0x2bf)]({'start':_0x1a521d,'end':_0x1a521d+'ÿ'})){typeof _0x307ad3===_0x559c4d(0x1e5)&&_0x307ad3['startsWith'](_0x1a521d)&&_0x344442[_0x559c4d(0x1b4)]({'id':_0x307ad3[_0x559c4d(0x244)](_0x1a521d['length']),'entry':_0x45cbed});}}catch{}return _0x344442;}static[_0x4ee260(0x22a)](_0x50c109){const _0x5b801f=_0x4ee260,_0x2a3360=[];try{const _0x2de914=_0x50c109[_0x5b801f(0x1bb)](_0x1b821b,{'dupSort':![]});for(const {key:_0x34a7a9,value:_0x5ebe27}of _0x2de914[_0x5b801f(0x2bf)]({})){if(typeof _0x34a7a9!==_0x5b801f(0x1e5))continue;const _0x48fa81=_0x34a7a9[_0x5b801f(0x18d)](':');if(_0x48fa81<0x1)continue;_0x2a3360[_0x5b801f(0x1b4)]({'namespace':_0x34a7a9[_0x5b801f(0x244)](0x0,_0x48fa81),'id':_0x34a7a9[_0x5b801f(0x244)](_0x48fa81+0x1),'entry':_0x5ebe27});}}catch{}return _0x2a3360;}}return okdbLock={'OKDBLock':_0x36751e},okdbLock;}var version='2.0.4',require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x2abc23=_0x337619;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0xf1a56e=require$$0$3,_0x53c1ad=require$$1$1,_0x4c6dda=require$$2,{LOOP:_0x844ebf}=requireOkdbLoopMonitor(),{OKDBLock:_0x26ca52}=requireOkdbLock(),{SYNC_COMMITS:_0x2e020a}=requireOkdbWriter(),_0x204a5a=_0x2abc23(0x1ea),_0x326745=_0x2abc23(0x267),_0x4ab62b=_0x2abc23(0x133),_0x291776='~processes:cmd',_0x3a50de=(_0x3880d1,_0x455108)=>_0x3880d1+':'+_0x455108,_0x5ef476=(_0x13b5a7,_0x574c50)=>_0x13b5a7+'::'+_0x574c50,_0x231cb9=(_0x20fbaf,_0xb772c8)=>_0x20fbaf+'/'+_0xb772c8,_0xaad60e=(_0x28bfe8,_0x2f0c79)=>_0x28bfe8+'#'+_0x2f0c79,_0xc7b3a9=_0x3b2e5c=>{const _0x3ca774=_0x2abc23;if(_0x3b2e5c?.[_0x3ca774(0x1cb)])return _0x3b2e5c['processKey'];const _0x48ed51=_0x3b2e5c?.[_0x3ca774(0x175)];return typeof _0x48ed51===_0x3ca774(0x1e5)&&_0x48ed51['includes']('#')?_0x48ed51[_0x3ca774(0x244)](0x0,_0x48ed51['indexOf']('#')):_0x48ed51;},_0x5277c3=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x57d7ff=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x1da1ba=_0x5277c3*0x3,_0x50c0ba=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math['max'](0x927c0,_0x1da1ba*0x14),_0xffa4ec=[_0x2abc23(0x1d8),'processor:ready',_0x2abc23(0x212),_0x2abc23(0x17e),'processor:paused',_0x2abc23(0x1d7)];let _0x505fc1=null;function _0x200371(){const _0x502843=_0x2abc23;if(_0x505fc1==null)_0x505fc1=Math[_0x502843(0x143)]((Date[_0x502843(0x348)]()-process[_0x502843(0x13e)]()*0x3e8)/0x3e8)*0x3e8;return _0x505fc1;}function _0x2d8b92(_0x28a1fb){const _0x31737d=_0x2abc23;if(process.env.OKDB_PROCESS_KILL==='off')return![];if(_0x28a1fb?.['options']?.[_0x31737d(0x340)]&&typeof _0x28a1fb[_0x31737d(0x30c)][_0x31737d(0x340)]===_0x31737d(0x1f0)&&_0x28a1fb[_0x31737d(0x30c)][_0x31737d(0x340)]['kill']===![])return![];return!![];}function _0x553ea3(_0xc249ee,_0x42aa7f){const _0x606a72=_0x2abc23,_0x342d88=!!_0x42aa7f?.[_0x606a72(0x2d3)];switch(_0xc249ee){case _0x606a72(0x237):return{'controllable':_0x342d88,'decommissionable':![],'killable':!![],'killConfirm':_0x606a72(0x150)};case _0x606a72(0x284):case _0x606a72(0x275):return{'controllable':_0x342d88,'decommissionable':![],'killable':!![],'killConfirm':_0x606a72(0x26b)};case _0x606a72(0x177):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case'queue-worker':case _0x606a72(0x157):case _0x606a72(0x351):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':_0x606a72(0x24e)};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x4c501d{constructor(_0x1b2ebd){const _0x55352f=_0x2abc23;this['okdb']=_0x1b2ebd,this['_statusEnv']=null,this[_0x55352f(0x333)]=null,this[_0x55352f(0x297)]=new Map(),this[_0x55352f(0x2b5)]=null,this[_0x55352f(0x247)]=![],this[_0x55352f(0x23a)]=![],this['_processStartedAt']=_0x200371(),this['_selfKey']=_0x3a50de(process[_0x55352f(0x1a8)],this[_0x55352f(0x343)]),this[_0x55352f(0x1da)]=_0x4c6dda[_0x55352f(0x2fe)]()['slice'](0x0,0x8),this[_0x55352f(0x191)]=_0xaad60e(this[_0x55352f(0x1d3)],this[_0x55352f(0x1da)]),this['_startedAt']=Date[_0x55352f(0x348)](),this[_0x55352f(0x356)]=null,this['_supervisorKey']=null,this[_0x55352f(0x155)]=null,this[_0x55352f(0x359)]=null,this['_onProcEvent']=null,this[_0x55352f(0x13a)]=null,this[_0x55352f(0x1ca)]=0x0,this[_0x55352f(0x127)]={},this['_children']=new Map(),this[_0x55352f(0x17c)]=process['cpuUsage'](),this[_0x55352f(0x262)]=Date[_0x55352f(0x348)](),this[_0x55352f(0x24d)]=0x0,this[_0x55352f(0x241)]=new Map();}get[_0x2abc23(0x16d)](){return this['_selfKey'];}get[_0x2abc23(0x139)](){const _0x31b1da=_0x2abc23;return this[_0x31b1da(0x191)];}[_0x2abc23(0x2b6)](_0x4f28d9,_0x53fe79){const _0x5ec36c=_0x2abc23,_0x39072d=_0x553ea3(_0x4f28d9,_0x53fe79);if(_0x39072d['killable']&&!_0x2d8b92(this[_0x5ec36c(0x12e)]))return{..._0x39072d,'killable':![],'killConfirm':undefined};return _0x39072d;}['isActive'](){return!!this['_statusEnv'];}[_0x2abc23(0x2f9)](_0x5ef079){const _0x53f2f9=_0x2abc23;Object[_0x53f2f9(0x223)](this[_0x53f2f9(0x127)],_0x5ef079||{});}[_0x2abc23(0x2a5)](_0x99d47d){const _0x85a7e2=_0x2abc23;if(_0x99d47d)this[_0x85a7e2(0x155)]=_0x99d47d;}['register'](_0xb2e818={}){const _0x49411b=_0x2abc23;return this[_0x49411b(0x12e)][_0x49411b(0x2ad)](_0xb2e818);}[_0x2abc23(0x2e6)](){const _0x4f0a45=_0x2abc23,_0x56efce={};let _0x22aa7a=0x0,_0x303619=0x0;const _0x51e393=new Set();for(const _0x5bf94e of this['listNodes']()){_0x303619++;const _0x38f79b=_0x5bf94e[_0x4f0a45(0x201)];if(!_0x38f79b)continue;if(_0x38f79b[_0x4f0a45(0x22b)])_0x22aa7a++;for(const _0xb33d4c of _0x38f79b[_0x4f0a45(0x2d3)]||[]){if(!['single',_0x4f0a45(0x301)][_0x4f0a45(0x2c2)](_0xb33d4c['mode']))continue;(_0xb33d4c[_0x4f0a45(0x193)]===_0x4f0a45(0x1b7)||_0xb33d4c[_0x4f0a45(0x193)]===_0x4f0a45(0x23c))&&_0xb33d4c['cursorKey']&&_0x51e393['add']((_0xb33d4c[_0x4f0a45(0x21a)]||'default')+':'+_0xb33d4c[_0x4f0a45(0x1b1)]);const _0x4a80a0=_0xb33d4c[_0x4f0a45(0x21a)]||'default';(_0x56efce[_0x4a80a0]||=[])[_0x4f0a45(0x1b4)]({..._0xb33d4c,'env':_0x4a80a0,'owner':{'pid':_0x5bf94e['pid']??null,'kind':_0x5bf94e['kind']??null}});}}for(const [_0x2c37dd,_0x3777bf]of Object[_0x4f0a45(0x1e2)](_0x56efce)){for(const _0x3ed170 of _0x3777bf){if(_0x3ed170['mode']===_0x4f0a45(0x1a6)&&!_0x3ed170[_0x4f0a45(0x1e0)]){const _0x608b2b=_0x2c37dd+':'+(_0x3ed170[_0x4f0a45(0x1b1)]??'');if(!_0x51e393[_0x4f0a45(0x222)](_0x608b2b))_0x3ed170[_0x4f0a45(0x2f4)]=!![];}}}return{'envs':_0x56efce,'policy':null,'participation':{'participating':_0x22aa7a,'total':_0x303619},'source':_0x4f0a45(0x1b6)};}[_0x2abc23(0x226)](){const _0x1f822e=_0x2abc23,_0x44f59d=_0x35a7a5=>{const _0x3610a8=_0x58e7;if(_0x35a7a5[_0x3610a8(0x193)]==='online'||_0x35a7a5[_0x3610a8(0x193)]==='building'||_0x35a7a5[_0x3610a8(0x193)]===_0x3610a8(0x2c5))return 0x3;if(_0x35a7a5[_0x3610a8(0x1e0)])return 0x1;return 0x2;},_0xed7f63=new Map();for(const _0xdfa7ec of this[_0x1f822e(0x2bb)]()){for(const _0x3641a7 of _0xdfa7ec[_0x1f822e(0x201)]?.[_0x1f822e(0x2d3)]||[]){const _0x4c1e00={..._0x3641a7,'owner':{'pid':_0xdfa7ec['pid']??null,'kind':_0xdfa7ec['kind']??null,'host':_0xdfa7ec[_0x1f822e(0x2b7)]??null}},_0x3da4bb=_0x3641a7[_0x1f822e(0x17f)]==='single'?'1ofN:'+(_0x3641a7[_0x1f822e(0x21a)]??'')+'::'+(_0x3641a7[_0x1f822e(0x1b1)]??_0x3641a7[_0x1f822e(0x171)]??_0x3641a7['id']):_0x1f822e(0x13c)+(_0xdfa7ec[_0x1f822e(0x175)]??_0xdfa7ec[_0x1f822e(0x1cb)]??'')+'::'+(_0x3641a7[_0x1f822e(0x21a)]??'')+'::'+_0x3641a7['id'],_0x5ae882=_0xed7f63['get'](_0x3da4bb);if(!_0x5ae882||_0x44f59d(_0x4c1e00)>_0x44f59d(_0x5ae882))_0xed7f63[_0x1f822e(0x217)](_0x3da4bb,_0x4c1e00);}}return[..._0xed7f63[_0x1f822e(0x1c9)]()];}[_0x2abc23(0x2e5)](){const _0x14f8da=_0x2abc23,_0x15d0bd=Date[_0x14f8da(0x348)](),_0x962f8f=this[_0x14f8da(0x2bb)](),_0x126c10=_0x42b50f=>Math[_0x14f8da(0x17a)](0x0,Math['round']((_0x15d0bd-(_0x42b50f[_0x14f8da(0x19e)]||_0x15d0bd))/0x3e8)),_0xb3b78b=_0x962f8f['find'](_0x14c432=>_0x14c432[_0x14f8da(0x250)]===_0x14f8da(0x237)),_0x3cf30b=_0x962f8f[_0x14f8da(0x245)](_0x54a317=>_0x54a317['kind']===_0x14f8da(0x19a));if(_0xb3b78b||_0x3cf30b['length'])return{'primary':_0xb3b78b?{'pid':_0xb3b78b['pid'],'uptime':_0x126c10(_0xb3b78b)}:null,'workers':_0x3cf30b[_0x14f8da(0x33e)](_0x54ae71=>({'pid':_0x54ae71[_0x14f8da(0x1a8)],'uptime':_0x126c10(_0x54ae71)})),'workersConfigured':_0xb3b78b?.[_0x14f8da(0x276)]?.[_0x14f8da(0x318)]??_0x3cf30b['length'],'mode':'cluster'};const _0x1c963f=_0x962f8f[_0x14f8da(0x27a)](_0x499ace=>_0x499ace['kind']===_0x14f8da(0x284)||_0x499ace[_0x14f8da(0x250)]===_0x14f8da(0x275)||_0x499ace[_0x14f8da(0x250)]===_0x14f8da(0x177)),_0x14ab60=_0x1c963f?{'pid':_0x1c963f[_0x14f8da(0x1a8)],'uptime':_0x126c10(_0x1c963f)}:{'pid':process['pid'],'uptime':Math[_0x14f8da(0x17a)](0x0,Math[_0x14f8da(0x143)](process[_0x14f8da(0x13e)]()))};return{'primary':_0x14ab60,'workers':[_0x14ab60],'workersConfigured':0x1,'mode':_0x14f8da(0x1a6)};}[_0x2abc23(0x140)](){return this['_groupByProcess']();}[_0x2abc23(0x345)](){const _0x6af44c=_0x2abc23,_0x50ab0e=new Map();for(const _0x5c3f2b of this[_0x6af44c(0x349)]())_0x50ab0e[_0x6af44c(0x217)](_0x5c3f2b[_0x6af44c(0x1cb)],{..._0x5c3f2b,'children':[]});const _0x204ae5=[];for(const _0x5428eb of _0x50ab0e[_0x6af44c(0x1c9)]()){const _0x4152d6=_0x5428eb[_0x6af44c(0x332)]?_0x50ab0e['get'](_0x5428eb[_0x6af44c(0x332)]):null;if(_0x4152d6&&_0x4152d6!==_0x5428eb)_0x4152d6[_0x6af44c(0x295)]['push'](_0x5428eb);else _0x204ae5[_0x6af44c(0x1b4)](_0x5428eb);}const _0x4d1e1c=(_0x2d047b,_0x3a6dc8)=>_0x2d047b['kind']===_0x3a6dc8[_0x6af44c(0x250)]?(_0x2d047b[_0x6af44c(0x1a8)]||0x0)-(_0x3a6dc8[_0x6af44c(0x1a8)]||0x0):(_0x2d047b[_0x6af44c(0x250)]??'')<(_0x3a6dc8[_0x6af44c(0x250)]??'')?-0x1:0x1,_0x5b847e=_0x2fdb2b=>{const _0x251cc1=_0x6af44c;_0x2fdb2b['sort'](_0x4d1e1c);for(const _0x35ab48 of _0x2fdb2b)if(_0x35ab48[_0x251cc1(0x295)][_0x251cc1(0x149)])_0x5b847e(_0x35ab48['children']);};return _0x5b847e(_0x204ae5),_0x204ae5;}[_0x2abc23(0x2d8)](_0x2bbdf2){const _0x538624=_0x2abc23;return this[_0x538624(0x349)]()[_0x538624(0x27a)](_0x50db95=>_0x50db95['processKey']===_0x2bbdf2)??null;}['_groupByProcess'](_0x32ece7=Date['now']()){const _0x190cf3=_0x2abc23,_0x28ba67=new Map();for(const _0x540394 of this[_0x190cf3(0x2bb)]()){const _0x8141df=_0xc7b3a9(_0x540394);let _0x1b7185=_0x28ba67['get'](_0x8141df);!_0x1b7185&&(_0x1b7185={'processKey':_0x8141df,'nodeKey':_0x8141df,'pid':_0x540394['pid'],'ppid':_0x540394[_0x190cf3(0x2f3)]??null,'host':_0x540394[_0x190cf3(0x2b7)]??null,'kind':_0x540394[_0x190cf3(0x250)],'role':null,'supervisorKey':_0x540394['supervisorKey']??null,'slot':_0x540394['slot']??null,'slotKey':_0x540394[_0x190cf3(0x257)]??null,'caps':_0x540394[_0x190cf3(0x1f4)]??null,'lifecycle':_0x540394[_0x190cf3(0x1fc)]??null,'uptime':Math[_0x190cf3(0x17a)](0x0,Math[_0x190cf3(0x143)]((_0x32ece7-(_0x540394['startedAt']||_0x32ece7))/0x3e8)),'startedAt':_0x540394[_0x190cf3(0x19e)]??null,'meta':_0x540394[_0x190cf3(0x276)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x28ba67['set'](_0x8141df,_0x1b7185));_0x1b7185['instances']['push']({'instanceId':_0x540394[_0x190cf3(0x28d)]??null,'role':_0x540394[_0x190cf3(0x2dc)]??null,'listenAddr':_0x540394[_0x190cf3(0x2cb)]??null,'lifecycle':_0x540394['lifecycle']??null,'processing':_0x540394['processing']??null});if(!_0x1b7185[_0x190cf3(0x2dc)]&&_0x540394[_0x190cf3(0x2dc)])_0x1b7185[_0x190cf3(0x2dc)]=_0x540394[_0x190cf3(0x2dc)];if(!_0x1b7185['listenAddr']&&_0x540394[_0x190cf3(0x2cb)])_0x1b7185[_0x190cf3(0x2cb)]=_0x540394['listenAddr'];if(!_0x1b7185[_0x190cf3(0x201)]&&_0x540394[_0x190cf3(0x201)])_0x1b7185['processing']=_0x540394['processing'];if(!_0x1b7185['engines']&&_0x540394[_0x190cf3(0x33f)])_0x1b7185['engines']=_0x540394[_0x190cf3(0x33f)];if(!_0x1b7185['singletonClaims']&&_0x540394[_0x190cf3(0x2eb)])_0x1b7185[_0x190cf3(0x2eb)]=_0x540394[_0x190cf3(0x2eb)];if(_0x1b7185[_0x190cf3(0x1f4)]==null&&_0x540394[_0x190cf3(0x1f4)])_0x1b7185[_0x190cf3(0x1f4)]=_0x540394[_0x190cf3(0x1f4)];if(_0x540394[_0x190cf3(0x28b)]&&(!_0x1b7185[_0x190cf3(0x28b)]||(_0x540394['stats']['at']??0x0)>(_0x1b7185['stats']['at']??0x0)))_0x1b7185[_0x190cf3(0x28b)]=_0x540394[_0x190cf3(0x28b)];}return[..._0x28ba67[_0x190cf3(0x1c9)]()];}[_0x2abc23(0x249)](){const _0x3c2dfc=_0x2abc23,_0x4a03d3=[],_0x2d78d3={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x55a5ff of this['_groupByProcess']()){_0x4a03d3[_0x3c2dfc(0x1b4)]({'processKey':_0x55a5ff[_0x3c2dfc(0x1cb)],'kind':_0x55a5ff[_0x3c2dfc(0x250)],'pid':_0x55a5ff[_0x3c2dfc(0x1a8)],'supervisorKey':_0x55a5ff[_0x3c2dfc(0x332)],'meta':_0x55a5ff[_0x3c2dfc(0x276)]??null,'uptime':_0x55a5ff['uptime'],'stats':_0x55a5ff[_0x3c2dfc(0x28b)]??null}),_0x2d78d3['processes']++;if(_0x55a5ff['stats']){_0x2d78d3[_0x3c2dfc(0x2c0)]+=_0x55a5ff[_0x3c2dfc(0x28b)]['rss']||0x0,_0x2d78d3[_0x3c2dfc(0x347)]+=(_0x55a5ff['stats'][_0x3c2dfc(0x347)]||0x0)+(_0x55a5ff[_0x3c2dfc(0x28b)][_0x3c2dfc(0x2b4)]?.[_0x3c2dfc(0x347)]||0x0);const _0x3ed440=_0x55a5ff['stats']['threads'];_0x3ed440&&(_0x2d78d3['threads'][_0x3c2dfc(0x2a1)]+=_0x3ed440['count']||0x0,_0x2d78d3[_0x3c2dfc(0x2b4)][_0x3c2dfc(0x338)]+=_0x3ed440[_0x3c2dfc(0x338)]||0x0,_0x2d78d3[_0x3c2dfc(0x2b4)][_0x3c2dfc(0x254)]+=_0x3ed440['busy']||0x0);}}return{'totals':_0x2d78d3,'nodes':_0x4a03d3};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x262d92=_0x2abc23;this[_0x262d92(0x247)]=this['_isWriter']||!!writer,this['_isReader']=this['_isReader']||!!reader,this[_0x262d92(0x356)]=kind||this[_0x262d92(0x356)]||(_0x53c1ad[_0x262d92(0x259)]?_0x262d92(0x19a):'cli'),this['_supervisorKey']=supervisorKey??this[_0x262d92(0x199)],this[_0x262d92(0x155)]=listenAddr??this[_0x262d92(0x155)],this['_ensureDesired'](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x262d92(0x2d9)]){const _0x26f4b8=await this[_0x262d92(0x12e)]['createEnvironment'](_0x204a5a,{'sync':![],'durability':'fast'});if(!_0x26f4b8[_0x262d92(0x2f0)](_0x326745))await _0x26f4b8[_0x262d92(0x2e4)](_0x326745);this['_statusEnv']=_0x26f4b8;}return this[_0x262d92(0x2d9)];}[_0x2abc23(0x181)](){const _0x475f02=_0x2abc23;return this[_0x475f02(0x269)]!==this[_0x475f02(0x2d9)]&&(this[_0x475f02(0x269)]=this[_0x475f02(0x2d9)],this['_nodeDbCache']=this[_0x475f02(0x2d9)][_0x475f02(0x328)](_0x326745)['data']),this[_0x475f02(0x33a)];}['_putRowAsync'](_0xea74e8){const _0x9caa8f=_0x2abc23;if(_0x2e020a)return this['_nodeDb']()[_0x9caa8f(0x300)](_0xea74e8[_0x9caa8f(0x175)],_0xea74e8,0x1);const _0x12f135=this[_0x9caa8f(0x181)]()['put'](_0xea74e8[_0x9caa8f(0x175)],_0xea74e8,0x1);if(_0x12f135&&typeof _0x12f135['then']==='function')_0x12f135['then'](undefined,()=>{});return _0x12f135;}[_0x2abc23(0x1d1)](_0x5f4fcd){const _0x5aec8b=_0x2abc23;return this[_0x5aec8b(0x181)]()['putSync'](_0x5f4fcd['nodeKey'],_0x5f4fcd,0x1);}[_0x2abc23(0x1e3)](_0x3bb98d){const _0x3914ba=_0x2abc23;if(_0x2e020a)try{return this[_0x3914ba(0x181)]()[_0x3914ba(0x29a)](_0x3bb98d);}catch{return![];}const _0x27ebf9=this[_0x3914ba(0x181)]()[_0x3914ba(0x1f2)](_0x3bb98d);if(_0x27ebf9&&typeof _0x27ebf9[_0x3914ba(0x248)]===_0x3914ba(0x1b8))_0x27ebf9[_0x3914ba(0x248)](undefined,()=>{});return _0x27ebf9;}async[_0x2abc23(0x1a7)](_0x7cb5af){const _0x20e54d=_0x2abc23;if(!this['_statusEnv']||!this[_0x20e54d(0x247)]||!_0x7cb5af?.[_0x20e54d(0x175)])return;return this[_0x20e54d(0x290)](_0x7cb5af);}async[_0x2abc23(0x1ed)](_0x5af85a){const _0x44f279=_0x2abc23;if(!this[_0x44f279(0x2d9)]||!this[_0x44f279(0x247)]||!_0x5af85a)return;const _0x404291=_0x5af85a[_0x44f279(0x2c2)]('#'),_0x5c3eca=[];for(const {key:_0x598ca5}of this[_0x44f279(0x2d9)][_0x44f279(0x2bf)](_0x326745)){if(_0x598ca5===_0x5af85a||!_0x404291&&typeof _0x598ca5==='string'&&_0x598ca5[_0x44f279(0x198)](_0x5af85a+'#'))_0x5c3eca[_0x44f279(0x1b4)](_0x598ca5);}for(const _0x4ed4a6 of _0x5c3eca){try{this[_0x44f279(0x181)]()['removeSync'](_0x4ed4a6);}catch{}}}[_0x2abc23(0x218)](_0xfb6683){const _0x4d29a1=_0x2abc23;if(typeof _0xfb6683?.['pid']!==_0x4d29a1(0x1a3))return![];if(_0xfb6683[_0x4d29a1(0x2b7)]!==_0xf1a56e[_0x4d29a1(0x15b)]())return![];if(_0xfb6683['pid']===process['pid'])return![];if(_0xfb6683[_0x4d29a1(0x2c4)]!=null&&_0xfb6683[_0x4d29a1(0x2c4)]<Date[_0x4d29a1(0x348)]()-_0x50c0ba)return!![];try{return process[_0x4d29a1(0x2a6)](_0xfb6683[_0x4d29a1(0x1a8)],0x0),![];}catch(_0x753dac){return _0x753dac[_0x4d29a1(0x1c0)]==='ESRCH';}}[_0x2abc23(0x2bb)](){const _0x340efc=_0x2abc23;if(!this[_0x340efc(0x2d9)])return[];try{this[_0x340efc(0x2d9)]['db']?.[_0x340efc(0x2f7)]?.();}catch{}const _0x2739c8=Date['now'](),_0x1b9a4c=_0xf1a56e[_0x340efc(0x15b)](),_0xcf21b9=[];for(const {value:_0x5eb215}of this[_0x340efc(0x2d9)][_0x340efc(0x2bf)](_0x326745)){if(!_0x5eb215)continue;let _0x1fb45a=null;_0x5eb215[_0x340efc(0x2b7)]===_0x1b9a4c&&typeof _0x5eb215[_0x340efc(0x1a8)]===_0x340efc(0x1a3)&&(_0x1fb45a=!this['_nodeDead'](_0x5eb215));if(_0x1fb45a===![])continue;const _0x17fa5e=_0x5eb215['expiresAt']==null||_0x5eb215[_0x340efc(0x2c4)]>=_0x2739c8;if(_0x1fb45a===!![]||_0x17fa5e)_0xcf21b9['push'](_0x5eb215);}return _0xcf21b9;}async[_0x2abc23(0x264)](_0x25d023=0x0){const _0x154c09=_0x2abc23;if(!this[_0x154c09(0x2d9)]||!this[_0x154c09(0x247)])return;const _0xeadc80=Date['now']()-_0x25d023,_0x7690b1=new Set(),_0x9ab315=[],_0x4128bb=_0xf1a56e['hostname'](),_0x407f0b=require$$6[_0x154c09(0x342)];for(const {key:_0x519756,value:_0xf8d4c6}of this[_0x154c09(0x2d9)]['getRange'](_0x326745)){if(!_0xf8d4c6)continue;const _0x414e20=_0xf8d4c6[_0x154c09(0x2b7)]===_0x4128bb&&typeof _0xf8d4c6[_0x154c09(0x1a8)]===_0x154c09(0x1a3),_0x207856=_0x414e20?this[_0x154c09(0x218)](_0xf8d4c6):_0xf8d4c6[_0x154c09(0x2c4)]!=null&&_0xf8d4c6[_0x154c09(0x2c4)]<_0xeadc80;if(_0x207856)_0x9ab315[_0x154c09(0x1b4)](_0x519756);else{_0x7690b1['add'](_0xc7b3a9(_0xf8d4c6)??_0x519756);if(_0xf8d4c6['version']&&_0xf8d4c6[_0x154c09(0x342)]!==_0x407f0b){if(!this[_0x154c09(0x24c)])this['_versionSkewWarned']=new Set();!this[_0x154c09(0x24c)][_0x154c09(0x222)](_0xf8d4c6[_0x154c09(0x342)])&&(this[_0x154c09(0x24c)][_0x154c09(0x1ff)](_0xf8d4c6[_0x154c09(0x342)]),this['okdb'][_0x154c09(0x314)]?.[_0x154c09(0x21b)]?.(_0x154c09(0x12a)+(_0xf8d4c6['pid']??'?')+'\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20'+_0xf8d4c6[_0x154c09(0x342)]+_0x154c09(0x327)+_0x407f0b+'\x20—\x20'+'mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.',{'feature':_0x154c09(0x18a)}));}}}for(const _0x1c2239 of _0x9ab315)this[_0x154c09(0x1e3)](_0x1c2239);if(this[_0x154c09(0x17b)]()){const _0x3942c5=[];for(const {key:_0x4b9ac2}of this[_0x154c09(0x296)](_0x154c09(0x267))){if(!_0x7690b1[_0x154c09(0x222)](_0x4b9ac2)){if(_0x2e020a)try{this['_desired'][_0x154c09(0x29a)](_0x154c09(0x355)+_0x4b9ac2);}catch{}else _0x3942c5['push'](this[_0x154c09(0x333)]['remove']('node/'+_0x4b9ac2));}}if(_0x3942c5[_0x154c09(0x149)])await Promise[_0x154c09(0x32c)](_0x3942c5);}}[_0x2abc23(0x286)](_0x3dc388=null){const _0x247867=_0x2abc23;if(this['_hbTimer'])return;if(!this[_0x247867(0x247)]||!this['_statusEnv']){this[_0x247867(0x12e)]?.['log']?.[_0x247867(0x21b)]?.(_0x247867(0x2d4)+this[_0x247867(0x247)]+_0x247867(0x32b)+!!this[_0x247867(0x2d9)]+_0x247867(0x1a5),{'feature':_0x247867(0x340)});return;}this[_0x247867(0x13a)]=_0x3dc388,this[_0x247867(0x28a)]=()=>this['_maybePublish']();for(const _0x51958f of _0xffa4ec)this['okdb'][_0x247867(0x25b)]['on'](_0x51958f,this[_0x247867(0x28a)]);this[_0x247867(0x1f8)]();const _0x46df2c=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x5277c3;this[_0x247867(0x359)]=setInterval(()=>{const _0x337589=_0x247867;if(this['_onTick'])try{this[_0x337589(0x13a)]();}catch{}this[_0x337589(0x1f8)](),this[_0x337589(0x264)]()['catch'](()=>{});},_0x46df2c);if(this['_hbTimer'][_0x247867(0x195)])this[_0x247867(0x359)][_0x247867(0x195)]();}[_0x2abc23(0x23b)](){const _0x551aab=_0x2abc23;if(!this[_0x551aab(0x247)]||!this[_0x551aab(0x2d9)])return;if(Date[_0x551aab(0x348)]()-this['_lastPublishAt']<_0x57d7ff)return;this['_publishNow']();}[_0x2abc23(0x1f8)](){const _0x565618=_0x2abc23;if(!this[_0x565618(0x247)]||!this[_0x565618(0x2d9)])return;this[_0x565618(0x1ca)]=Date[_0x565618(0x348)]();try{const _0x4aa3a8=[this[_0x565618(0x163)]()];for(const _0x310676 of this['_children'][_0x565618(0x1c9)]())_0x4aa3a8[_0x565618(0x1b4)](this[_0x565618(0x305)](_0x310676));const _0x109773=_0x844ebf[_0x565618(0x2fb)]?_0x844ebf[_0x565618(0x348)]():0x0;for(const _0xa3b1b5 of _0x4aa3a8){try{this[_0x565618(0x1d1)](_0xa3b1b5),this['_publishFailWarned']=![];}catch(_0x32740c){!this[_0x565618(0x2ac)]&&(this[_0x565618(0x2ac)]=!![],this['okdb']?.['log']?.[_0x565618(0x21b)]?.('registry\x20publish\x20failing:\x20'+_0x32740c[_0x565618(0x188)],{'feature':_0x565618(0x340)}));}}if(_0x844ebf[_0x565618(0x2fb)])_0x844ebf[_0x565618(0x30f)](_0x565618(0x26d),_0x844ebf[_0x565618(0x348)]()-_0x109773,_0x565618(0x253)+_0x4aa3a8[_0x565618(0x149)]+_0x565618(0x34f));}catch(_0xa0e5af){!this[_0x565618(0x2ac)]&&(this['_publishFailWarned']=!![],this[_0x565618(0x12e)]?.[_0x565618(0x314)]?.[_0x565618(0x21b)]?.('registry\x20publish\x20failing:\x20'+_0xa0e5af[_0x565618(0x188)],{'feature':'processes'}));}}async[_0x2abc23(0x268)](){const _0xdb59a7=_0x2abc23;if(this[_0xdb59a7(0x28a)]){for(const _0x19f08a of _0xffa4ec){try{this[_0xdb59a7(0x12e)][_0xdb59a7(0x25b)][_0xdb59a7(0x1fa)](_0x19f08a,this['_onProcEvent']);}catch{}}this['_onProcEvent']=null;}this[_0xdb59a7(0x359)]&&(clearInterval(this[_0xdb59a7(0x359)]),this[_0xdb59a7(0x359)]=null);try{if(this[_0xdb59a7(0x2d9)]&&this[_0xdb59a7(0x247)])await this['removeNode'](this[_0xdb59a7(0x191)]);}catch{}}async[_0x2abc23(0x2a3)](){const _0x3ef69d=_0x2abc23;if(!this[_0x3ef69d(0x2d9)]||!this[_0x3ef69d(0x247)])return;try{await this[_0x3ef69d(0x1ed)](this['_rowKey']);}catch{}try{const _0x563a36=[];for(const {value:_0x5b1ff0}of this[_0x3ef69d(0x2d9)][_0x3ef69d(0x2bf)](_0x326745)){if(_0x5b1ff0?.[_0x3ef69d(0x2f3)]===process[_0x3ef69d(0x1a8)]&&_0x5b1ff0[_0x3ef69d(0x175)])_0x563a36[_0x3ef69d(0x1b4)](_0x5b1ff0[_0x3ef69d(0x175)]);}for(const _0x19510c of _0x563a36){try{await this[_0x3ef69d(0x1ed)](_0x19510c);}catch{}}}catch{}}async[_0x2abc23(0x216)](){const _0x4ab793=_0x2abc23;return this[_0x4ab793(0x1a7)](this[_0x4ab793(0x163)]());}async[_0x2abc23(0x2ea)](_0x215a75){const _0x16e7ee=_0x2abc23;if(!this[_0x16e7ee(0x2d9)]||!this[_0x16e7ee(0x247)])return;return this[_0x16e7ee(0x1a7)](this[_0x16e7ee(0x305)](_0x215a75));}[_0x2abc23(0x305)]({pid:_0x15c0ea,startedAt:_0x4844d1,kind:_0xde9ef8,supervisorKey:_0x2ad019,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x2abc23(0x1cc),meta:meta=null,stats:stats=null}){const _0xed0368=_0x2abc23,_0x44f7df=Date[_0xed0368(0x348)](),_0x2cfaa7=_0x3a50de(_0x15c0ea,_0x4844d1);return{'nodeKey':_0xaad60e(_0x2cfaa7,'0'),'processKey':_0x2cfaa7,'instanceId':'0','pid':_0x15c0ea,'startedAt':_0x4844d1,'ppid':process[_0xed0368(0x1a8)],'host':_0xf1a56e[_0xed0368(0x15b)](),'supervisorKey':_0x2ad019,'slot':slot,'slotKey':slotKey,'kind':_0xde9ef8,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x44f7df,'expiresAt':_0x44f7df+_0x1da1ba,'caps':this['_caps'](_0xde9ef8,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async['addSupervisedChild'](_0x55bebc){const _0x230d22=_0x2abc23;if(!_0x55bebc?.[_0x230d22(0x1a8)])return null;const _0x84d932=_0x3a50de(_0x55bebc['pid'],_0x55bebc[_0x230d22(0x19e)]);this[_0x230d22(0x336)][_0x230d22(0x217)](_0x84d932,{..._0x55bebc,'supervisorKey':_0x55bebc[_0x230d22(0x332)]??this['_selfKey']});if(this[_0x230d22(0x247)])await this['publishChildRow'](this[_0x230d22(0x336)][_0x230d22(0x1fd)](_0x84d932))[_0x230d22(0x183)]?.(()=>{});return _0x84d932;}[_0x2abc23(0x27e)](_0x146829){const _0x4429d6=_0x2abc23;if(!_0x146829)return;return this[_0x4429d6(0x336)][_0x4429d6(0x23f)](_0x146829),this[_0x4429d6(0x1ed)](_0x146829);}[_0x2abc23(0x323)](){const _0x28a257=_0x2abc23,_0xcced42=Date[_0x28a257(0x348)](),_0x5f1ef9=process[_0x28a257(0x358)](),_0x191302=(_0xcced42-this[_0x28a257(0x262)])*0x3e8;if(_0x191302>=0x3d090){const _0x1f9040=_0x5f1ef9[_0x28a257(0x252)]-this['_lastCpuUsage'][_0x28a257(0x252)]+(_0x5f1ef9['system']-this['_lastCpuUsage'][_0x28a257(0x1e7)]),_0xafe818=_0xf1a56e[_0x28a257(0x12d)]()[_0x28a257(0x149)]||0x1;this[_0x28a257(0x24d)]=Math[_0x28a257(0x278)](0x64,Math[_0x28a257(0x143)](_0x1f9040/(_0x191302*_0xafe818)*0x64)),this['_lastCpuWindowMs']=Math[_0x28a257(0x143)](_0x191302/0x3e8),this[_0x28a257(0x17c)]=_0x5f1ef9,this[_0x28a257(0x262)]=_0xcced42;}const _0x384717=process[_0x28a257(0x2e2)](),_0x3c7cac=this['_threadStats']['size'];let _0x315e58=0x0;if(_0x3c7cac>0x0){const _0x5c1934=[this[_0x28a257(0x12e)],...this[_0x28a257(0x12e)][_0x28a257(0x31a)]?.[_0x28a257(0x1c9)]?.()??[]];for(const _0xa227e9 of _0x5c1934){const _0x38b258=_0xa227e9[_0x28a257(0x228)]?.[_0x28a257(0x331)];if(_0x38b258)_0x315e58+=_0x38b258['liveThreadStats']['busy'];}}let _0x2808dc=null;const _0x54dfd5=_0x3c7cac;if(_0x54dfd5>0x0){let _0x41684c=0x0;for(const _0x37a140 of this[_0x28a257(0x241)][_0x28a257(0x1c9)]())_0x41684c+=_0x37a140[_0x28a257(0x347)]||0x0;_0x2808dc={'count':_0x54dfd5,'heapUsed':_0x41684c,'sandbox':_0x3c7cac,'busy':_0x315e58};}return{'rss':_0x384717[_0x28a257(0x2c0)],'heapUsed':_0x384717[_0x28a257(0x347)],'heapTotal':_0x384717[_0x28a257(0x125)],'external':_0x384717[_0x28a257(0x1c2)],'cpuPct':this[_0x28a257(0x24d)],'cpuWindowMs':this['_lastCpuWindowMs']??null,'threads':_0x2808dc,'at':_0xcced42};}[_0x2abc23(0x25a)](_0x5bae26,_0x59e905){const _0x41bd74=_0x2abc23;if(!_0x5bae26||!_0x59e905)return;this[_0x41bd74(0x241)]['set'](_0x5bae26,_0x59e905);}[_0x2abc23(0x320)](_0x446857){const _0xf7fc49=_0x2abc23;this[_0xf7fc49(0x241)]['delete'](_0x446857);}[_0x2abc23(0x291)](_0x5e6f7c,_0x23cc4d,_0x42b24b=undefined){const _0xa4ee10=_0x2abc23,_0x17f566=this[_0xa4ee10(0x336)][_0xa4ee10(0x1fd)](_0x5e6f7c);if(!_0x17f566||!_0x23cc4d)return;if(_0x42b24b!==undefined)_0x17f566[_0xa4ee10(0x201)]=_0x42b24b;_0x17f566['stats']={'rss':_0x23cc4d[_0xa4ee10(0x2c0)]??null,'heapUsed':_0x23cc4d[_0xa4ee10(0x347)]??null,'heapTotal':_0x23cc4d[_0xa4ee10(0x125)]??null,'external':_0x23cc4d[_0xa4ee10(0x1c2)]??null,'cpuPct':_0x23cc4d['cpuPct']??null,'cpuWindowMs':_0x23cc4d[_0xa4ee10(0x211)]??null,'threads':_0x23cc4d['threads']??null,'claims':_0x23cc4d[_0xa4ee10(0x1a4)]??null,'envsOpen':_0x23cc4d[_0xa4ee10(0x1c6)]??null,'at':Date['now']()};}['_buildOwnRow'](){const _0x172d88=_0x2abc23,_0x3a4a4e=Date[_0x172d88(0x348)](),_0x1c7b2b=this[_0x172d88(0x12e)][_0x172d88(0x2a8)]||{},_0x277e52=this[_0x172d88(0x356)]||'cli';return{'nodeKey':this['_rowKey'],'processKey':this['_selfKey'],'instanceId':this[_0x172d88(0x1da)],'pid':process[_0x172d88(0x1a8)],'startedAt':this[_0x172d88(0x343)],'instanceStartedAt':this[_0x172d88(0x1f9)],'ppid':typeof process['ppid']==='number'?process[_0x172d88(0x2f3)]:null,'host':_0xf1a56e[_0x172d88(0x15b)](),'supervisorKey':this[_0x172d88(0x199)]??null,'version':require$$6[_0x172d88(0x342)],'kind':_0x277e52,'role':{'engines':!!_0x1c7b2b[_0x172d88(0x33f)],'processors':!!_0x1c7b2b['processors'],'compaction':_0x1c7b2b[_0x172d88(0x2e8)],'http':_0x1c7b2b['http']},'listenAddr':this[_0x172d88(0x155)]??null,'heartbeatAt':_0x3a4a4e,'expiresAt':_0x3a4a4e+_0x1da1ba,'caps':this['_caps'](_0x277e52,_0x1c7b2b),'lifecycle':{'state':_0x172d88(0x1cc),'desiredVersionApplied':null},'meta':{...this['_ownMeta']},'processing':_0x1c7b2b[_0x172d88(0x2d3)]?this[_0x172d88(0x2ff)]():null,'engines':_0x1c7b2b[_0x172d88(0x33f)]?[...this[_0x172d88(0x12e)][_0x172d88(0x2a7)]??[]]:null,'singletonClaims':this[_0x172d88(0x341)](),'stats':this[_0x172d88(0x323)](),'writers':this[_0x172d88(0x1ab)]()};}[_0x2abc23(0x1ab)](){const _0x82df5e=_0x2abc23,_0x504d43={};try{for(const [_0x52f9ae,_0x606240]of this['okdb']['_envs']){try{const _0x3ce7b5=_0x606240[_0x82df5e(0x126)]?.();if(!_0x3ce7b5)continue;if(!_0x3ce7b5['depth']&&!_0x3ce7b5[_0x82df5e(0x304)]&&!(_0x3ce7b5[_0x82df5e(0x33d)]??0x0)&&!_0x3ce7b5[_0x82df5e(0x1ba)])continue;_0x504d43[_0x52f9ae]={'depth':_0x3ce7b5[_0x82df5e(0x196)],'oldestPendingMs':_0x3ce7b5[_0x82df5e(0x203)],'committed':_0x3ce7b5[_0x82df5e(0x304)],'commitsPerSec':_0x3ce7b5['commitsPerSec'],'commitP99Ms':_0x3ce7b5[_0x82df5e(0x197)],'parkedNow':_0x3ce7b5[_0x82df5e(0x33d)]??0x0,'draining':!!_0x3ce7b5[_0x82df5e(0x1ba)]};}catch{}}}catch{}return Object['keys'](_0x504d43)['length']?_0x504d43:null;}[_0x2abc23(0x341)](){const _0x3a9bee=_0x2abc23,_0x117ac4=process[_0x3a9bee(0x1a8)],_0x13a890=Date[_0x3a9bee(0x348)](),_0x31bb56=_0x3fac23=>{const _0x3f32e4=_0x3a9bee;if(!_0x3fac23)return[];const _0x2e0608=[];try{for(const {id:_0x2c81ed,entry:_0x5a191a}of _0x3fac23[_0x3f32e4(0x1de)]()){if(_0x5a191a?.[_0x3f32e4(0x27f)]?.[_0x3f32e4(0x1a8)]!==_0x117ac4)continue;const _0xfb895b=_0x5a191a[_0x3f32e4(0x354)]??_0x5a191a['acquiredAt']??0x0;if(_0xfb895b+(_0x5a191a[_0x3f32e4(0x24a)]??0x0)<_0x13a890)continue;_0x2e0608[_0x3f32e4(0x1b4)](_0x2c81ed);}}catch{}return _0x2e0608;},_0x1307f0=_0x31bb56(this['_singletonLock'](_0x3a9bee(0x34e))),_0x4b23ef=_0x31bb56(this[_0x3a9bee(0x30e)]('sync'));if(!_0x1307f0[_0x3a9bee(0x149)]&&!_0x4b23ef[_0x3a9bee(0x149)])return null;return{'compact':_0x1307f0,'replicate':_0x4b23ef};}[_0x2abc23(0x30e)](_0x31f459){const _0x44734b=_0x2abc23;if(!this[_0x44734b(0x12e)]?.['_rootDb'])return null;if(!this['_singletonLocks'])this[_0x44734b(0x215)]=new Map();let _0x114309=this[_0x44734b(0x215)][_0x44734b(0x1fd)](_0x31f459);if(!_0x114309)try{_0x114309=new _0x26ca52(this[_0x44734b(0x12e)][_0x44734b(0x302)],{'namespace':_0x31f459}),this[_0x44734b(0x215)]['set'](_0x31f459,_0x114309);}catch{return null;}return _0x114309;}[_0x2abc23(0x2ff)](){const _0x36c02a=_0x2abc23,_0x3a76d2=[];try{for(const [_0x3d550f,_0x353947]of this[_0x36c02a(0x12e)][_0x36c02a(0x31a)]){if(_0x3d550f[_0x36c02a(0x198)]('~'))continue;for(const _0x1b417d of _0x353947[_0x36c02a(0x137)]['tierList']())_0x3a76d2[_0x36c02a(0x1b4)]({..._0x1b417d,'env':_0x3d550f});}}catch{}return{'participate':this['okdb'][_0x36c02a(0x2d3)]?.[_0x36c02a(0x280)]??![],'processors':_0x3a76d2};}['_ensureDesired'](){const _0x4944f4=_0x2abc23;if(this[_0x4944f4(0x333)])return!![];const _0x28b99c=this[_0x4944f4(0x12e)][_0x4944f4(0x302)];if(!_0x28b99c)return![];return this['_desired']=_0x28b99c[_0x4944f4(0x1bb)](_0x4ab62b,{'dupSort':![]}),this['_cmd']=_0x28b99c[_0x4944f4(0x1bb)](_0x291776,{'dupSort':![]}),!![];}async[_0x2abc23(0x12c)](){const _0x5dabc8=_0x2abc23;if(!this[_0x5dabc8(0x17b)]())return;const _0x4278d0='__vocab/version',_0x41f536=0x1,_0x526a0e=this[_0x5dabc8(0x333)][_0x5dabc8(0x1fd)](_0x4278d0)??0x0;if(_0x526a0e>=_0x41f536)return;const _0x276765=_0xf4a593=>{const _0x506f89=_0x5dabc8;if(_0xf4a593===_0x506f89(0x351))return'single';if(_0xf4a593===_0x506f89(0x26a))return _0x506f89(0x301);return _0xf4a593;};await this[_0x5dabc8(0x12e)][_0x5dabc8(0x14a)][_0x5dabc8(0x30d)]['transaction'](()=>{const _0x3125c8=_0x5dabc8;for(const _0x3dc836 of['procmode/',_0x3125c8(0x22f)]){for(const {key:_0x39318,value:_0x2bfe26}of this[_0x3125c8(0x333)][_0x3125c8(0x2bf)]({'start':_0x3dc836,'end':_0x3dc836+'ÿ'})){if(typeof _0x39318!=='string'||!_0x39318[_0x3125c8(0x198)](_0x3dc836))break;const _0x300e21=_0x276765(_0x2bfe26[_0x3125c8(0x17f)]);if(_0x300e21!==_0x2bfe26[_0x3125c8(0x17f)])this[_0x3125c8(0x333)][_0x3125c8(0x129)](_0x39318,{..._0x2bfe26,'mode':_0x300e21});}}this[_0x3125c8(0x333)][_0x3125c8(0x129)](_0x4278d0,_0x41f536);});}[_0x2abc23(0x2bc)](){const _0x40c81f=_0x2abc23;return!!this[_0x40c81f(0x333)];}[_0x2abc23(0x1a1)](_0x320609,_0x50ed33){const _0x6acf67=_0x2abc23;if(!this[_0x6acf67(0x17b)]())return null;const _0x1d8b2b=_0x320609+'/'+_0x50ed33;return this[_0x6acf67(0x2b0)](),this['_desiredOverlay'][_0x6acf67(0x1fd)](_0x1d8b2b)??this[_0x6acf67(0x333)][_0x6acf67(0x1fd)](_0x1d8b2b)??null;}[_0x2abc23(0x2b0)](){const _0x3f9bd8=_0x2abc23;if(!_0x2e020a)return;try{this[_0x3f9bd8(0x12e)][_0x3f9bd8(0x14a)]?.['db']?.[_0x3f9bd8(0x2f7)]?.();}catch{}}async[_0x2abc23(0x352)](_0x1ae24c,_0x44324c,_0x2dc7d0){const _0x92488d=_0x2abc23;if(!this[_0x92488d(0x17b)]())return null;const _0x551fb4=_0x1ae24c+'/'+_0x44324c;this[_0x92488d(0x2b0)]();const _0x2e5573=this[_0x92488d(0x297)][_0x92488d(0x1fd)](_0x551fb4)??this[_0x92488d(0x333)][_0x92488d(0x1fd)](_0x551fb4)??{'version':0x0},_0x44cb2e=(_0x2e5573[_0x92488d(0x342)]||0x0)+0x1,_0x13d351={..._0x2e5573,..._0x2dc7d0,'version':_0x44cb2e,'updatedAt':Date['now']()};this[_0x92488d(0x297)]['set'](_0x551fb4,_0x13d351);try{await this[_0x92488d(0x12e)]['_systemEnv']['_writer']['transaction'](()=>{const _0x4f3f3b=_0x92488d;this[_0x4f3f3b(0x333)][_0x4f3f3b(0x129)](_0x551fb4,_0x13d351);});}finally{if(this[_0x92488d(0x297)][_0x92488d(0x1fd)](_0x551fb4)===_0x13d351)this[_0x92488d(0x297)][_0x92488d(0x23f)](_0x551fb4);}return _0x44cb2e;}[_0x2abc23(0x296)](_0xd1114f){const _0x358afe=_0x2abc23;if(!this[_0x358afe(0x17b)]())return[];this[_0x358afe(0x2b0)]();const _0x394cdb=_0xd1114f+'/',_0x1357bd=[];for(const {key:_0x41eb4c,value:_0x1bea9b}of this[_0x358afe(0x333)][_0x358afe(0x2bf)]({'start':_0x394cdb,'end':_0x394cdb+'ÿ'})){if(typeof _0x41eb4c!==_0x358afe(0x1e5)||!_0x41eb4c[_0x358afe(0x198)](_0x394cdb))break;_0x1357bd[_0x358afe(0x1b4)]({'key':_0x41eb4c[_0x358afe(0x244)](_0x394cdb['length']),'value':_0x1bea9b});}return _0x1357bd;}[_0x2abc23(0x165)](_0x393d36){const _0x3fbb67=_0x2abc23;if(!this[_0x3fbb67(0x17b)]())return null;return this['_cmd'][_0x3fbb67(0x1fd)](_0x393d36)??null;}async['bumpCmd'](_0x5ca974,_0xc34318,_0x2c6738={}){const _0x5dfda7=_0x2abc23;if(!this[_0x5dfda7(0x17b)]())return null;let _0x42ce19;return await this[_0x5dfda7(0x12e)][_0x5dfda7(0x14a)][_0x5dfda7(0x30d)]['transaction'](()=>{const _0x4962fe=_0x5dfda7,_0x4d41d1=this[_0x4962fe(0x2b5)][_0x4962fe(0x1fd)](_0x5ca974)||{'epoch':0x0};_0x42ce19=(_0x4d41d1[_0x4962fe(0x1f3)]||0x0)+0x1,this[_0x4962fe(0x2b5)][_0x4962fe(0x129)](_0x5ca974,{..._0x4d41d1,..._0x2c6738,'cmd':_0xc34318,'epoch':_0x42ce19,'updatedAt':Date['now']()});}),_0x42ce19;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x4c501d,'nodeKey':_0x3a50de,'logicalKey':_0x5ef476,'slotKey':_0x231cb9,'PROCESS_ENV':_0x204a5a,'NODE_TYPE':_0x326745},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x201e9b=_0x337619;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x367271=require$$0$4,{EVENTS:_0x4cfdfb,CHANGE_ACTIONS:_0x486c1b}=requireOkdbEnums(),{LOOP:_0x482767}=requireOkdbLoopMonitor(),_0x34e1ae=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x5628c9=0x5,_0xbdb910=0x2710;class _0x15d904 extends _0x367271{constructor(_0x484737,_0x1045da={}){const _0x57b48f=_0x58e7;super(),this['okdb']=_0x484737,this[_0x57b48f(0x20b)]=_0x1045da['quantum']??_0x34e1ae,this['_flushDebounce']=_0x1045da[_0x57b48f(0x2ba)]??_0x5628c9,this[_0x57b48f(0x31e)]=_0x1045da[_0x57b48f(0x306)]??_0xbdb910,this['_started']=![],this[_0x57b48f(0x29b)]=new Map(),this[_0x57b48f(0x2df)]=new Map(),this[_0x57b48f(0x19c)]=new Map(),this[_0x57b48f(0x162)]=null,this[_0x57b48f(0x26f)]=![],this[_0x57b48f(0x2fc)]=new Set(),this[_0x57b48f(0x1d9)]=_0x536b5c=>this[_0x57b48f(0x270)](_0x536b5c),this[_0x57b48f(0x281)]=_0x3a0003=>this[_0x57b48f(0x2fa)](_0x3a0003),this[_0x57b48f(0x2e3)]=()=>this[_0x57b48f(0x2d2)]();}['start'](){const _0x966cd2=_0x58e7;if(this[_0x966cd2(0x227)])return;this[_0x966cd2(0x227)]=!![];for(const [_0x2eceaa,_0x132524]of this[_0x966cd2(0x12e)][_0x966cd2(0x31a)]){if(_0x2eceaa['startsWith']('~'))continue;try{_0x132524[_0x966cd2(0x32d)]();}catch{}}for(const [_0x891ce9,_0x4db207]of this[_0x966cd2(0x12e)][_0x966cd2(0x31a)]){if(_0x891ce9['startsWith']('~'))continue;try{this[_0x966cd2(0x2df)][_0x966cd2(0x217)](_0x891ce9,_0x4db207['getClock']()||0x0);}catch{}}const {events:_0x1f0458}=this[_0x966cd2(0x12e)];_0x1f0458['on'](_0x4cfdfb[_0x966cd2(0x166)],this[_0x966cd2(0x1d9)]),_0x1f0458['on'](_0x4cfdfb['ITEM_UPDATE'],this[_0x966cd2(0x1d9)]),_0x1f0458['on'](_0x4cfdfb[_0x966cd2(0x25d)],this[_0x966cd2(0x1d9)]),_0x1f0458['on'](_0x4cfdfb[_0x966cd2(0x32e)],this[_0x966cd2(0x281)]),_0x1f0458[_0x966cd2(0x2ab)](_0x4cfdfb[_0x966cd2(0x28f)],this[_0x966cd2(0x2e3)]);}[_0x201e9b(0x2d2)](){const _0xc875df=_0x201e9b;if(!this['_started'])return;this[_0xc875df(0x227)]=![];const {events:_0x5b7503}=this[_0xc875df(0x12e)];_0x5b7503['off'](_0x4cfdfb['ITEM_CREATE'],this['_onItem']),_0x5b7503[_0xc875df(0x1fa)](_0x4cfdfb[_0xc875df(0x30a)],this['_onItem']),_0x5b7503[_0xc875df(0x1fa)](_0x4cfdfb[_0xc875df(0x25d)],this[_0xc875df(0x1d9)]),_0x5b7503['off'](_0x4cfdfb[_0xc875df(0x32e)],this[_0xc875df(0x281)]);try{_0x5b7503[_0xc875df(0x1fa)](_0x4cfdfb[_0xc875df(0x28f)],this[_0xc875df(0x2e3)]);}catch{}this['_flushTimer']&&(clearTimeout(this['_flushTimer']),this[_0xc875df(0x162)]=null),this[_0xc875df(0x19c)][_0xc875df(0x326)](),this[_0xc875df(0x29b)][_0xc875df(0x326)](),this[_0xc875df(0x2df)][_0xc875df(0x326)](),this[_0xc875df(0x2fc)][_0xc875df(0x326)]();}[_0x201e9b(0x1bc)](_0x157ba5,_0x39d049,_0x27a8f6,_0xe50fba){return _0x157ba5+'\x00'+_0x39d049+'\x00'+_0x27a8f6+'\x00'+_0xe50fba;}['_markSeen'](_0xbf50b6,_0x53ea92,_0x3f2b,_0x3b0c7a){const _0x2446b0=_0x201e9b,_0x8931d5=this[_0x2446b0(0x1bc)](_0xbf50b6,_0x53ea92,_0x3f2b,_0x3b0c7a);if(this[_0x2446b0(0x2fc)]['has'](_0x8931d5))return![];this[_0x2446b0(0x2fc)]['add'](_0x8931d5);if(this[_0x2446b0(0x2fc)][_0x2446b0(0x1e8)]>this[_0x2446b0(0x31e)]){const _0x1d70cc=this[_0x2446b0(0x2fc)][_0x2446b0(0x1c9)]()[_0x2446b0(0x330)]()[_0x2446b0(0x21c)];this['_seen'][_0x2446b0(0x23f)](_0x1d70cc);}return!![];}['_handleInProcess'](_0xcc2711){const _0x532c50=_0x201e9b;if(!this[_0x532c50(0x227)]||!_0xcc2711)return;const {env:_0x4af93c,type:_0x31d2c2,key:_0x424fe3,clock:_0x8c409d,origin:_0x219dd1,action:_0x58e695,newValue:_0x531c19,oldValue:_0x39058d}=_0xcc2711;if(_0x4af93c==null||_0x31d2c2==null||_0x424fe3==null)return;if(typeof _0x4af93c===_0x532c50(0x1e5)&&_0x4af93c[_0x532c50(0x198)]('~'))return;if(typeof _0x31d2c2===_0x532c50(0x1e5)&&_0x31d2c2['startsWith']('~'))return;if(!this[_0x532c50(0x182)](_0x4af93c,_0x31d2c2,_0x424fe3,_0x8c409d))return;const _0x5ccf40=_0x58e695===_0x486c1b[_0x532c50(0x274)]?_0x532c50(0x1f2):_0x532c50(0x129);this[_0x532c50(0x2a9)](_0x532c50(0x18f),{'env':_0x4af93c,'type':_0x31d2c2,'key':_0x424fe3,'op':_0x5ccf40,'clock':_0x8c409d,'origin':_0x219dd1,'value':_0x5ccf40===_0x532c50(0x1f2)?null:_0x531c19,'prevValue':_0x39058d});}[_0x201e9b(0x2fa)](_0x14f3af){const _0x10430e=_0x201e9b;if(!this['_started'])return;if(!_0x14f3af||typeof _0x14f3af[_0x10430e(0x21a)]!=='string'||typeof _0x14f3af[_0x10430e(0x171)]!==_0x10430e(0x1e5))return;const {env:_0x1ff18c,type:_0x19b880}=_0x14f3af;if(_0x1ff18c['startsWith']('~')||_0x19b880[_0x10430e(0x198)]('~'))return;this[_0x10430e(0x19c)][_0x10430e(0x217)](_0x1ff18c+'\x00'+_0x19b880,{'env':_0x1ff18c,'type':_0x19b880}),this[_0x10430e(0x1d2)]();}[_0x201e9b(0x1d2)](){const _0x2da8f7=_0x201e9b;if(this['_flushTimer'])return;const _0x173b18=()=>{const _0x12c4b6=_0x58e7;this[_0x12c4b6(0x162)]=null,this[_0x12c4b6(0x238)]()['catch'](()=>{});};this[_0x2da8f7(0x162)]=setTimeout(_0x173b18,this[_0x2da8f7(0x2b3)]>0x0?this[_0x2da8f7(0x2b3)]:0x0);}async['_drain'](){const _0xa9de0b=_0x201e9b;if(this[_0xa9de0b(0x26f)]){this[_0xa9de0b(0x1d2)]();return;}this[_0xa9de0b(0x26f)]=!![];try{const _0x3c1ec3=[...this[_0xa9de0b(0x19c)][_0xa9de0b(0x1c9)]()];this[_0xa9de0b(0x19c)][_0xa9de0b(0x326)]();let _0x34606e=![];for(const {env:_0x51b42e,type:_0x2e8bd7}of _0x3c1ec3){try{const _0x24baa9=await this['_drainOne'](_0x51b42e,_0x2e8bd7);if(_0x24baa9)_0x34606e=!![];}catch{this[_0xa9de0b(0x19c)]['set'](_0x51b42e+'\x00'+_0x2e8bd7,{'env':_0x51b42e,'type':_0x2e8bd7}),_0x34606e=!![];}}if(_0x34606e||this[_0xa9de0b(0x19c)][_0xa9de0b(0x1e8)]>0x0)this[_0xa9de0b(0x1d2)]();}finally{this[_0xa9de0b(0x26f)]=![];}}async[_0x201e9b(0x205)](_0x5b07fc,_0x3fcdeb){const _0x1fe932=_0x201e9b,_0x4434e5=await this['okdb'][_0x1fe932(0x233)](_0x5b07fc),_0x29c65b=_0x5b07fc+'\x00'+_0x3fcdeb;!this['_cursors'][_0x1fe932(0x222)](_0x29c65b)&&(!this[_0x1fe932(0x2df)]['has'](_0x5b07fc)&&(_0x4434e5[_0x1fe932(0x32d)](),this['_baselines'][_0x1fe932(0x217)](_0x5b07fc,_0x4434e5[_0x1fe932(0x138)]()||0x0)),this[_0x1fe932(0x29b)]['set'](_0x29c65b,this[_0x1fe932(0x2df)][_0x1fe932(0x1fd)](_0x5b07fc)));const _0x339b59=this[_0x1fe932(0x29b)]['get'](_0x29c65b),_0x3c70fe=_0x4434e5[_0x1fe932(0x138)](_0x3fcdeb)||0x0;if(_0x3c70fe<=_0x339b59)return![];const _0x3c2826=_0x339b59+this[_0x1fe932(0x20b)],_0x2e3493=Math[_0x1fe932(0x278)](_0x3c70fe,_0x3c2826),_0x443275=_0x482767[_0x1fe932(0x2fb)]?_0x482767[_0x1fe932(0x348)]():0x0,_0x5435e=Array[_0x1fe932(0x123)](_0x4434e5[_0x1fe932(0x1fe)](_0x3fcdeb,_0x339b59+0x1,_0x2e3493));let _0x1f77cc=_0x339b59;for(const _0x54e4d7 of _0x5435e){const {clock:_0x3a085e,key:_0x498063,action:_0x3a5c6e,origin:_0x57ed4a}=_0x54e4d7;if(_0x3a085e>_0x1f77cc)_0x1f77cc=_0x3a085e;if(_0x498063==null)continue;if(!this[_0x1fe932(0x182)](_0x5b07fc,_0x3fcdeb,_0x498063,_0x3a085e))continue;let _0x14a572,_0x44b6f4;if(_0x3a5c6e===_0x486c1b[_0x1fe932(0x274)])_0x14a572=_0x1fe932(0x1f2),_0x44b6f4=null;else{const _0x40bd08=_0x4434e5['get'](_0x3fcdeb,_0x498063);_0x40bd08==null?(_0x14a572='remove',_0x44b6f4=null):(_0x14a572='put',_0x44b6f4=_0x40bd08);}this[_0x1fe932(0x2a9)](_0x1fe932(0x18f),{'env':_0x5b07fc,'type':_0x3fcdeb,'key':_0x498063,'op':_0x14a572,'clock':_0x3a085e,'origin':_0x57ed4a,'value':_0x44b6f4});}if(_0x482767['enabled'])_0x482767[_0x1fe932(0x30f)](_0x1fe932(0x261)+_0x5b07fc+':'+_0x3fcdeb,_0x482767[_0x1fe932(0x348)]()-_0x443275,'n='+_0x5435e['length']);return this[_0x1fe932(0x29b)]['set'](_0x29c65b,Math[_0x1fe932(0x17a)](_0x1f77cc,_0x2e3493)),_0x4434e5[_0x1fe932(0x138)](_0x3fcdeb)>_0x2e3493;}[_0x201e9b(0x29d)](){const _0x164c0b=_0x201e9b;return{'started':this[_0x164c0b(0x227)],'quantum':this['_quantum'],'flushDebounce':this['_flushDebounce'],'cursors':Object[_0x164c0b(0x213)]([...this[_0x164c0b(0x29b)]['entries']()][_0x164c0b(0x33e)](([_0x1327ee,_0x3162df])=>[_0x1327ee[_0x164c0b(0x1f1)]('\x00',':'),_0x3162df])),'pending':this[_0x164c0b(0x19c)][_0x164c0b(0x1e8)],'seen':this[_0x164c0b(0x2fc)][_0x164c0b(0x1e8)]};}}return _0x15d904[_0x201e9b(0x321)]=_0x34e1ae,okdbChangefeed={'OKDBChangefeed':_0x15d904},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x17ad02=_0x337619;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x3406f1=require$$1$1,_0x5508c2=require$$1,{EVENTS:_0x21bf8f}=requireOkdbEnums(),_0x38f0f9=require$$0$3,{slotKey:_0x2f92be}=requireOkdbProcessRegistry(),_0x5ced5d=0xfa,_0x4887e5=0xfa0,_0x4652fb=0x5,_0x2da6a2=0x2710,_0x43babd=0xbb8,_0x1a1558=0x7d0,_0x2f36c8=_0x17ad02(0x161),_0x331222=_0x17ad02(0x303),_0x5309fd=_0x17ad02(0x314),_0x57a3dd=_0x17ad02(0x28b),_0x629c24=[_0x21bf8f['VIEW_PROGRESS'],_0x21bf8f['FTS_REGISTERED'],_0x21bf8f[_0x17ad02(0x229)],_0x21bf8f[_0x17ad02(0x20e)],_0x21bf8f['INDEX_PROGRESS'],_0x21bf8f[_0x17ad02(0x1f6)],_0x21bf8f[_0x17ad02(0x242)],_0x21bf8f[_0x17ad02(0x15d)],_0x17ad02(0x1df),'processor:progress','processor:error',_0x17ad02(0x2f5),'processor:resumed',_0x17ad02(0x212)],_0x551a7d=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0;function _0x58d000({workers:_0x5dd4b5,makeOkdb:_0x39cf0e,port:_0x88ad02,primaryOkdb:_0x47dea6,childEntry:childEntry=![],workerEnv:workerEnv=null}={}){const _0xd203f1=_0x17ad02;if(_0x3406f1[_0xd203f1(0x2f2)])return childEntry&&_0x3406f1['setupPrimary']({'exec':_0x5508c2[_0xd203f1(0x159)](__dirname,_0xd203f1(0x334)),'args':[],'execArgv':((()=>{const _0xe7aae5=_0xd203f1,_0x4c5b1f=[];for(let _0x442c02=0x0;_0x442c02<process[_0xe7aae5(0x2d6)][_0xe7aae5(0x149)];_0x442c02++){const _0x268fd8=process[_0xe7aae5(0x2d6)][_0x442c02];if(_0x268fd8[_0xe7aae5(0x198)](_0xe7aae5(0x288))||_0x268fd8[_0xe7aae5(0x198)](_0xe7aae5(0x317))||_0x268fd8[_0xe7aae5(0x198)](_0xe7aae5(0x22e)))continue;if(_0x268fd8==='-e'||_0x268fd8==='--eval'||_0x268fd8==='-p'||_0x268fd8===_0xe7aae5(0x2a2)){_0x442c02++;continue;}_0x4c5b1f[_0xe7aae5(0x1b4)](_0x268fd8);}return _0x4c5b1f;})())}),_0x522c0f({'workers':_0x5dd4b5,'port':_0x88ad02,'primaryOkdb':_0x47dea6,'workerEnv':workerEnv});return _0x4957d1({'makeOkdb':_0x39cf0e,'port':_0x88ad02});}function _0x522c0f({workers:_0x1ae110,port:_0x1933ff,primaryOkdb:_0xd416eb,workerEnv:_0x34caae}){const _0x84c327=_0x17ad02,_0x5493d9=new Map(),_0x1c0b33=new Map();let _0x58c0ae=![];const _0x58380d=_0x5beb77=>_0x5beb77?.[_0x84c327(0x14b)],_0x30e316=_0x48cf0d=>{const _0x522de6=_0x84c327,_0x4db195=_0x3406f1['fork']({...process.env,..._0x34caae||{},'OKDB_CLUSTER_SLOT':String(_0x48cf0d)});return _0x4db195[_0x522de6(0x14b)]=_0x48cf0d,_0x5493d9[_0x522de6(0x217)](_0x4db195[_0x522de6(0x1c8)]['pid'],{'worker':_0x4db195,'startedAt':Date[_0x522de6(0x348)](),'slot':_0x48cf0d}),_0x4db195['on']('error',_0x2e8294=>{const _0x58d681=_0x522de6;console['log']('[okdb-cluster]\x20worker\x20pid='+_0x4db195[_0x58d681(0x1c8)]['pid']+_0x58d681(0x1ae)+(_0x2e8294?.[_0x58d681(0x188)]??_0x2e8294));}),_0x4db195['on'](_0x522de6(0x1b7),()=>_0x1a24d0()),_0x4db195;},_0x277923=_0x549bbe=>{const _0x2ddfde=_0x84c327;for(const {worker:_0x1c1d2f}of _0x5493d9[_0x2ddfde(0x1c9)]()){if(_0x1c1d2f['isDead']()||!_0x1c1d2f[_0x2ddfde(0x2b1)]())continue;try{_0x1c1d2f[_0x2ddfde(0x22d)](_0x549bbe);}catch{}}};_0xd416eb?.[_0x84c327(0x2ad)]?.({'kind':'primary','listenAddr':':'+_0x1933ff})[_0x84c327(0x183)](()=>{}),_0xd416eb?.[_0x84c327(0x340)]?.[_0x84c327(0x2f9)]?.({'workersConfigured':_0x1ae110});const _0x1e0d08={'engines':!![],'processors':!![],'compaction':!![],'http':!![]},_0x1a24d0=()=>{const _0x116998=_0x84c327,_0x5d4832=_0xd416eb?.[_0x116998(0x340)];if(!_0x5d4832||!_0x5d4832['_isWriter'])return;const _0x3b7095=_0x5d4832[_0x116998(0x16d)];for(const {worker:_0x2ed09a,startedAt:_0xb24dc4,slot:_0x3f8bc6,stats:_0x47ed85,processing:_0x2469cf}of _0x5493d9[_0x116998(0x1c9)]()){if(_0x2ed09a[_0x116998(0x16e)]())continue;const _0x3d00dc=_0x5d4832[_0x116998(0x2bc)]?.()&&_0x5d4832['getDesired'](_0x116998(0x207),_0xfb7d35(_0x3f8bc6))?.[_0x116998(0x292)]===!![];_0x5d4832[_0x116998(0x2ea)]({'pid':_0x2ed09a[_0x116998(0x1c8)][_0x116998(0x1a8)],'startedAt':_0xb24dc4,'kind':_0x116998(0x19a),'supervisorKey':_0x3b7095,'slot':_0x3f8bc6,'slotKey':_0xfb7d35(_0x3f8bc6),'role':_0x1e0d08,'listenAddr':':'+_0x1933ff,'lifecycle':_0x3d00dc?'decommissioning':'running','processing':_0x2469cf??null,'stats':_0x47ed85??null})['catch'](()=>{});}},_0xfb7d35=_0x2031cf=>_0x2f92be(_0x84c327(0x311)+_0x1933ff,_0x2031cf),_0x201bfc=_0x5ec35d=>{const _0x42e54f=_0x84c327,_0x328ea3=_0xd416eb?.['processes'];if(!_0x328ea3?.[_0x42e54f(0x2bc)]?.())return![];return _0x328ea3[_0x42e54f(0x1a1)](_0x42e54f(0x207),_0xfb7d35(_0x5ec35d))?.[_0x42e54f(0x292)]===!![];};for(let _0x3b64c4=0x0;_0x3b64c4<_0x1ae110;_0x3b64c4++){const _0x2168d6=_0x201bfc(_0x3b64c4);_0x1c0b33[_0x84c327(0x217)](_0x3b64c4,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x2168d6,'respawnTimer':null}),_0x2168d6?console['log']('[okdb-cluster]\x20slot='+_0x3b64c4+_0x84c327(0x225)):_0x30e316(_0x3b64c4);}const _0x116a8c=()=>{const _0x25827d=_0x84c327,_0x5ce327=_0xd416eb?.[_0x25827d(0x340)];if(!_0x5ce327?.[_0x25827d(0x247)]||!_0x5ce327['hasDesired']?.())return;for(const [_0x322df9,_0x3dd6f8]of _0x1c0b33[_0x25827d(0x1e2)]()){const _0x22e4c8=_0x5ce327[_0x25827d(0x1a1)]('slot',_0xfb7d35(_0x322df9)),_0x15872d=_0x22e4c8?.[_0x25827d(0x292)]===!![],_0x62fac5=_0x22e4c8?.['kill']===!![];if(_0x15872d&&!_0x3dd6f8[_0x25827d(0x31f)]){_0x3dd6f8[_0x25827d(0x31f)]=!![];_0x3dd6f8['respawnTimer']&&(clearTimeout(_0x3dd6f8[_0x25827d(0x1eb)]),_0x3dd6f8[_0x25827d(0x1eb)]=null);for(const {worker:_0x4e6e8e}of _0x5493d9[_0x25827d(0x1c9)]()){if(_0x58380d(_0x4e6e8e)!==_0x322df9||_0x4e6e8e[_0x25827d(0x16e)]())continue;try{if(_0x62fac5)_0x4e6e8e[_0x25827d(0x1c8)]['kill'](_0x25827d(0x346));else _0x4e6e8e[_0x25827d(0x2b1)]()&&_0x4e6e8e['disconnect']();}catch{}}console[_0x25827d(0x314)](_0x25827d(0x29f)+(_0x62fac5?'hard-killed':_0x25827d(0x1d6))+'\x20worker\x20slot='+_0x322df9+_0x25827d(0x14c));}else{if(!_0x15872d&&_0x3dd6f8[_0x25827d(0x31f)]&&_0x22e4c8){_0x3dd6f8['dead']=![],_0x3dd6f8['deaths']=[],_0x3dd6f8['consecutiveFailures']=0x0;const _0xa7b2b4=[..._0x5493d9[_0x25827d(0x1c9)]()][_0x25827d(0x322)](({worker:_0x2bcc0b})=>_0x58380d(_0x2bcc0b)===_0x322df9&&!_0x2bcc0b[_0x25827d(0x16e)]());!_0xa7b2b4&&!_0x58c0ae&&(_0x30e316(_0x322df9),console[_0x25827d(0x314)](_0x25827d(0x168)+_0x322df9));}}}},_0x4dea58=()=>{try{_0x116a8c();}catch{}};_0xd416eb?.[_0x84c327(0x25b)]?.['on']?.(_0x21bf8f[_0x84c327(0x1ad)],_0x4dea58);const _0x4de447=[];if(_0xd416eb?.[_0x84c327(0x25b)]?.['on'])for(const _0x3cbdc0 of _0x629c24){const _0xdb1f71=_0x4bbb54=>{_0x277923({[_0x2f36c8]:_0x331222,'event':_0x3cbdc0,'data':_0x4bbb54??{}});};_0xd416eb[_0x84c327(0x25b)]['on'](_0x3cbdc0,_0xdb1f71),_0x4de447['push']({'event':_0x3cbdc0,'handler':_0xdb1f71});}const _0x5893a9=setInterval(()=>{_0x116a8c(),_0x1a24d0();},_0x551a7d);_0x5893a9[_0x84c327(0x195)]?.();const _0x26d1de=(_0x49eab5,_0x27f351)=>{const _0xec4989=_0x84c327;if(!_0x27f351||typeof _0x27f351!==_0xec4989(0x1f0)||_0x27f351[_0x2f36c8]!==_0x5309fd)return;if(!_0xd416eb?.[_0xec4989(0x314)]?.['ingest'])return;const _0x507573=_0x27f351[_0xec4989(0x13b)]||{};_0xd416eb[_0xec4989(0x314)]['ingest']({..._0x507573,'msg':'[w'+_0x27f351[_0xec4989(0x207)]+']\x20'+(_0x507573[_0xec4989(0x2d1)]??''),'meta':{..._0x507573[_0xec4989(0x276)]||{},'worker':_0x27f351[_0xec4989(0x207)],'workerPid':_0x27f351[_0xec4989(0x1a8)]}});};_0x3406f1['on'](_0x84c327(0x188),_0x26d1de);const _0x151f9e=(_0x1a5885,_0x7fd078)=>{const _0x21e393=_0x84c327;if(!_0x7fd078||typeof _0x7fd078!==_0x21e393(0x1f0)||_0x7fd078[_0x2f36c8]!==_0x57a3dd)return;const _0x2973b3=_0x5493d9['get'](_0x1a5885['process'][_0x21e393(0x1a8)]);if(_0x2973b3){_0x2973b3['stats']={..._0x7fd078[_0x21e393(0x28b)],'at':Date[_0x21e393(0x348)]()};if(_0x7fd078[_0x21e393(0x201)]!==undefined)_0x2973b3['processing']=_0x7fd078[_0x21e393(0x201)];}};_0x3406f1['on'](_0x84c327(0x188),_0x151f9e),_0x3406f1['on'](_0x84c327(0x2c3),(_0xecc9a7,_0x366a8f,_0x512c54)=>{const _0x3fb9f6=_0x84c327,_0x7a4375=_0xecc9a7['process'][_0x3fb9f6(0x1a8)],_0x23363c=_0x58380d(_0xecc9a7),_0x5d5a39=_0x5493d9['get'](_0x7a4375);if(_0x5d5a39&&_0xd416eb?.[_0x3fb9f6(0x340)])_0xd416eb[_0x3fb9f6(0x340)][_0x3fb9f6(0x1ed)](_0x7a4375+':'+_0x5d5a39[_0x3fb9f6(0x19e)])[_0x3fb9f6(0x183)](()=>{});_0x5493d9[_0x3fb9f6(0x23f)](_0x7a4375),console[_0x3fb9f6(0x314)]('[okdb-cluster]\x20worker\x20pid='+_0x7a4375+_0x3fb9f6(0x231)+(_0x23363c??'?')+_0x3fb9f6(0x256)+(_0x3fb9f6(0x2b9)+_0x366a8f+',\x20signal='+(_0x512c54??'none')+_0x3fb9f6(0x2ee)+_0x5493d9[_0x3fb9f6(0x1e8)]+'\x20worker(s)\x20remaining')),_0x1a24d0();if(_0x58c0ae||_0x23363c==null)return;const _0x11265f=_0x1c0b33[_0x3fb9f6(0x1fd)](_0x23363c);if(!_0x11265f||_0x11265f[_0x3fb9f6(0x31f)])return;const _0xb0b60f=Date[_0x3fb9f6(0x348)]();_0x11265f[_0x3fb9f6(0x1a9)][_0x3fb9f6(0x1b4)](_0xb0b60f),_0x11265f[_0x3fb9f6(0x1a9)]=_0x11265f[_0x3fb9f6(0x1a9)][_0x3fb9f6(0x245)](_0x592567=>_0xb0b60f-_0x592567<=_0x2da6a2);if(_0x11265f['deaths']['length']>=_0x4652fb){_0x11265f[_0x3fb9f6(0x31f)]=!![],console['error'](_0x3fb9f6(0x200)+_0x23363c+'\x20died\x20'+_0x11265f['deaths'][_0x3fb9f6(0x149)]+_0x3fb9f6(0x19f)+(_0x2da6a2+_0x3fb9f6(0x23d)+_0x5493d9[_0x3fb9f6(0x1e8)]+'\x20worker(s)\x20still\x20serving'));return;}_0x11265f[_0x3fb9f6(0x251)]++;const _0xd2f0e1=Math[_0x3fb9f6(0x278)](_0x4887e5,_0x5ced5d*0x2**(_0x11265f['consecutiveFailures']-0x1));console[_0x3fb9f6(0x314)](_0x3fb9f6(0x145)+_0x23363c+_0x3fb9f6(0x310)+_0xd2f0e1+_0x3fb9f6(0x273)+_0x11265f[_0x3fb9f6(0x251)]+')'),_0x11265f[_0x3fb9f6(0x1eb)]=setTimeout(()=>{const _0x548aa8=_0x3fb9f6;_0x11265f[_0x548aa8(0x1eb)]=null;if(_0x58c0ae||_0x11265f[_0x548aa8(0x31f)])return;const _0x520418=_0x30e316(_0x23363c);_0x520418[_0x548aa8(0x2ab)]('listening',()=>{const _0xef4de4=_0x548aa8;if(_0x1c0b33[_0xef4de4(0x1fd)](_0x23363c)===_0x11265f)_0x11265f[_0xef4de4(0x251)]=0x0;});},_0xd2f0e1),_0x11265f[_0x3fb9f6(0x1eb)][_0x3fb9f6(0x195)]?.();});const _0x5ea6e4=[..._0x5493d9[_0x84c327(0x202)]()];console[_0x84c327(0x314)](_0x84c327(0x130)+process[_0x84c327(0x1a8)]+_0x84c327(0x2e1)+_0x1ae110+_0x84c327(0x258)+_0x1933ff+':\x20'+('['+_0x5ea6e4[_0x84c327(0x159)](',\x20')+']'));const _0x3f2d90={'_isClusterController':!![],'port':_0x1933ff,'primaryOkdb':_0xd416eb??null,'status'(){const _0x397460=_0x84c327;return{'clustered':!![],'primaryPid':process[_0x397460(0x1a8)],'port':_0x1933ff,'primaryRole':_0xd416eb?.[_0x397460(0x2dc)]??null,'processorPid':null,'supervisorPid':process[_0x397460(0x1a8)],'workers':[..._0x5493d9[_0x397460(0x1c9)]()][_0x397460(0x33e)](({worker:_0x1f664f})=>({'pid':_0x1f664f['process'][_0x397460(0x1a8)],'id':_0x1f664f['id'],'dead':_0x1f664f['isDead']()}))};},async 'close'(){const _0x7539f7=_0x84c327;_0x58c0ae=!![];for(const _0x41acab of _0x1c0b33['values']()){_0x41acab['dead']=!![],_0x41acab['respawnTimer']&&(clearTimeout(_0x41acab[_0x7539f7(0x1eb)]),_0x41acab[_0x7539f7(0x1eb)]=null);}clearInterval(_0x5893a9),_0x3406f1['off']('message',_0x26d1de),_0x3406f1[_0x7539f7(0x1fa)]('message',_0x151f9e),_0xd416eb?.[_0x7539f7(0x25b)]?.[_0x7539f7(0x1fa)]?.(_0x21bf8f[_0x7539f7(0x1ad)],_0x4dea58);if(_0xd416eb?.[_0x7539f7(0x25b)]?.[_0x7539f7(0x1fa)])for(const {event:_0x22f9f1,handler:_0x4feeef}of _0x4de447){try{_0xd416eb[_0x7539f7(0x25b)][_0x7539f7(0x1fa)](_0x22f9f1,_0x4feeef);}catch{}}_0x4de447[_0x7539f7(0x149)]=0x0;const _0x583f92=[..._0x5493d9['values']()]['map'](({worker:_0x3f8406})=>_0x3f8406);if(_0x583f92[_0x7539f7(0x149)]===0x0)return;await Promise[_0x7539f7(0x30b)](_0x583f92[_0x7539f7(0x33e)](_0x55bafb=>new Promise(_0x4198db=>{const _0x61e9f9=_0x7539f7;if(_0x55bafb[_0x61e9f9(0x16e)]()){_0x4198db();return;}let _0x19fd95=![];const _0x2db60e=()=>{if(_0x19fd95)return;_0x19fd95=!![];if(_0x56d94d)clearTimeout(_0x56d94d);_0x4198db();};_0x55bafb[_0x61e9f9(0x2ab)](_0x61e9f9(0x2c3),_0x2db60e);const _0x56d94d=setTimeout(()=>{const _0x1e99cf=_0x61e9f9;try{_0x55bafb[_0x1e99cf(0x1c8)]['kill']();}catch{}},_0x43babd+0x1f4);_0x56d94d[_0x61e9f9(0x195)]?.();try{_0x55bafb[_0x61e9f9(0x2ef)]();}catch{try{_0x55bafb[_0x61e9f9(0x1c8)]['kill']();}catch{}}})));}};return _0x3f2d90;}async function _0x4957d1({makeOkdb:_0x229098,port:_0x2f4161}){const _0x4b5270=_0x17ad02,_0x389f86=await _0x229098();return _0x374111(_0x389f86),_0x389f86[_0x4b5270(0x23e)]['listen'](_0x2f4161);}function _0x374111(_0x1a5bf2){const _0x26609b=_0x17ad02;if(!_0x1a5bf2||_0x1a5bf2[_0x26609b(0x33c)])return;_0x1a5bf2[_0x26609b(0x33c)]=!![];try{const {OKDBChangefeed:_0x57c516}=requireOkdbChangefeed(),_0x37870f=_0x1a5bf2['_adminRelay'];if(_0x37870f&&typeof _0x37870f[_0x26609b(0x2a0)]===_0x26609b(0x1b8)){const _0x54b144=new _0x57c516(_0x1a5bf2);_0x54b144[_0x26609b(0x1e1)](),_0x37870f[_0x26609b(0x2a0)](_0x54b144),_0x1a5bf2[_0x26609b(0x2d7)]=_0x54b144;}}catch(_0x3dded5){_0x1a5bf2[_0x26609b(0x314)]?.[_0x26609b(0x21b)]?.(_0x26609b(0x315)+(_0x3dded5?.['message']??_0x3dded5),{'feature':_0x26609b(0x210)});}const _0x4d9161=_0x2dd6f7=>{const _0x511e7e=_0x26609b;if(!_0x2dd6f7||typeof _0x2dd6f7!==_0x511e7e(0x1f0)||_0x2dd6f7[_0x2f36c8]==null)return;if(_0x2dd6f7[_0x2f36c8]===_0x331222)try{_0x1a5bf2[_0x511e7e(0x21f)]?.[_0x511e7e(0x277)]?.(_0x2dd6f7['event'],_0x2dd6f7['data']);}catch{}};process['on'](_0x26609b(0x188),_0x4d9161),_0x1a5bf2[_0x26609b(0x2ae)]=_0x4d9161;{let _0x37ccb5=process['cpuUsage'](),_0xde2308=Date['now']();const _0x280abc=()=>{const _0x22a1b8=_0x26609b;if(typeof process[_0x22a1b8(0x22d)]!==_0x22a1b8(0x1b8)||!process[_0x22a1b8(0x136)])return;const _0x3c9854=Date[_0x22a1b8(0x348)](),_0x4e60e1=process[_0x22a1b8(0x358)](),_0x3527fc=(_0x3c9854-_0xde2308)*0x3e8,_0x183747=_0x4e60e1['user']-_0x37ccb5[_0x22a1b8(0x252)]+(_0x4e60e1['system']-_0x37ccb5['system']),_0x3cf10d=_0x3527fc>0x0?Math[_0x22a1b8(0x278)](0x64,Math[_0x22a1b8(0x143)](_0x183747/(_0x3527fc*(_0x38f0f9[_0x22a1b8(0x12d)]()[_0x22a1b8(0x149)]||0x1))*0x64)):0x0;_0x37ccb5=_0x4e60e1,_0xde2308=_0x3c9854;const _0x4ce636=process[_0x22a1b8(0x2e2)]();let _0x399315=null;try{_0x399315=_0x1a5bf2[_0x22a1b8(0x2dc)]?.[_0x22a1b8(0x2d3)]?_0x1a5bf2['processes']?.[_0x22a1b8(0x2ff)]?.()??null:null;}catch{}try{process[_0x22a1b8(0x22d)]({[_0x2f36c8]:_0x57a3dd,'stats':{'rss':_0x4ce636[_0x22a1b8(0x2c0)],'heapUsed':_0x4ce636['heapUsed'],'heapTotal':_0x4ce636[_0x22a1b8(0x125)],'external':_0x4ce636[_0x22a1b8(0x1c2)],'cpuPct':_0x3cf10d,'cpuWindowMs':Math['round'](_0x3527fc/0x3e8)||null},'processing':_0x399315});}catch{}},_0x2b8d10=Math[_0x26609b(0x17a)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x20c037=setInterval(_0x280abc,_0x2b8d10);_0x20c037[_0x26609b(0x195)]?.(),_0x280abc();for(const _0x5c0c5e of['processor:paused',_0x26609b(0x1d7)]){_0x1a5bf2[_0x26609b(0x25b)]?.['on']?.(_0x5c0c5e,()=>{try{_0x280abc();}catch{}});}}let _0xe5cde0=![];const _0x29f573=async _0x34bcb9=>{const _0x1c36ab=_0x26609b;if(_0xe5cde0)return;_0xe5cde0=!![];const _0x3be390=setTimeout(()=>process['exit'](_0x34bcb9),_0x43babd);_0x3be390[_0x1c36ab(0x195)]?.();try{await _0x1a5bf2[_0x1c36ab(0x312)]?.();}catch{}process[_0x1c36ab(0x2c3)](_0x34bcb9);};process['on'](_0x26609b(0x2ef),()=>_0x29f573(0x0));if(process[_0x26609b(0x32f)]!==_0x26609b(0x246)){const _0x354ff9=setInterval(()=>{const _0x36475d=_0x26609b;if(process[_0x36475d(0x2f3)]===0x1)_0x29f573(0x0);},_0x1a1558);_0x354ff9[_0x26609b(0x195)]?.(),_0x1a5bf2['_clusterOrphanWatch']=_0x354ff9;}}return okdbCluster={'runClustered':_0x58d000,'attachWorkerCluster':_0x374111},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0xaee61=_0x337619;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x4fb85d=require$$0$5,{attachWorkerCluster:_0x3a5458}=requireOkdbCluster();async function _0x400944(){const _0x2934e5=_0x58e7,_0x4a10d0=process.env.OKDB_HTTP_CHILD;if(!_0x4a10d0)throw new Error(_0x2934e5(0x1b5));const {rootPath:_0x4f97a4,port:_0x1a1525,options:options={},logLevel:logLevel=_0x2934e5(0x132)}=JSON[_0x2934e5(0x357)](_0x4a10d0);if(!_0x4f97a4||!_0x1a1525)throw new Error(_0x2934e5(0x2ce));const _0x29c4b3=new _0x4fb85d(_0x4f97a4,{...options,'engines':![],'processors':![],'compaction':![]});_0x29c4b3[_0x2934e5(0x314)]['detachConsole']?.();const _0xac07a2=process.env.OKDB_CLUSTER_SLOT??'?',_0x471fd2={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x1c5b3e=_0x471fd2[logLevel]??_0x471fd2[_0x2934e5(0x132)];_0x29c4b3[_0x2934e5(0x314)][_0x2934e5(0x147)](_0xdcf1f2=>{const _0x57c010=_0x2934e5;if((_0x471fd2[_0xdcf1f2['level']]??0x1)<_0x1c5b3e)return;try{process[_0x57c010(0x22d)]?.({'__okdbCluster':_0x57c010(0x314),'slot':_0xac07a2,'pid':process[_0x57c010(0x1a8)],'entry':_0xdcf1f2});}catch{}}),await _0x29c4b3[_0x2934e5(0x28e)](),_0x3a5458(_0x29c4b3),await _0x29c4b3[_0x2934e5(0x23e)]['listen'](_0x1a1525);}return _0x400944()[_0xaee61(0x183)](_0x53b45d=>{const _0x44da2d=_0xaee61;try{process[_0x44da2d(0x22d)]?.({'__okdbCluster':_0x44da2d(0x314),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x44da2d(0x1a8)],'entry':{'level':_0x44da2d(0x2c5),'msg':_0x44da2d(0x2fd)+(_0x53b45d?.[_0x44da2d(0x188)]??_0x53b45d)}});}catch{}process['exit'](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);function _0x58e7(_0x6ec921,_0x2719d9){_0x6ec921=_0x6ec921-0x123;const _0x140067=_0x1400();let _0x58e7ac=_0x140067[_0x6ec921];return _0x58e7ac;}module[_0x337619(0x2c1)]=okdbHttpWorkerChild;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3a34f0=_0x4478;(function(_0x29839d,_0x2e3de3){const _0x347b88=_0x4478,_0x307f90=_0x29839d();while(!![]){try{const _0xe9b08d=-parseInt(_0x347b88(0xd9))/0x1*(-parseInt(_0x347b88(0xb4))/0x2)+-parseInt(_0x347b88(0xad))/0x3+parseInt(_0x347b88(0xa3))/0x4*(parseInt(_0x347b88(0x96))/0x5)+-parseInt(_0x347b88(0xa7))/0x6+parseInt(_0x347b88(0xc3))/0x7*(parseInt(_0x347b88(0xd6))/0x8)+-parseInt(_0x347b88(0xd7))/0x9*(parseInt(_0x347b88(0xe4))/0xa)+parseInt(_0x347b88(0xcd))/0xb;if(_0xe9b08d===_0x2e3de3)break;else _0x307f90['push'](_0x307f90['shift']());}catch(_0x423076){_0x307f90['push'](_0x307f90['shift']());}}}(_0x13d7,0xefe8c));var require$$0=require(_0x3a34f0(0xbb)),require$$1=require(_0x3a34f0(0xa2));function getDefaultExportFromCjs(_0x31cd5f){const _0xc0deb0=_0x3a34f0;return _0x31cd5f&&_0x31cd5f[_0xc0deb0(0xe2)]&&Object[_0xc0deb0(0xb2)][_0xc0deb0(0xa6)][_0xc0deb0(0xe0)](_0x31cd5f,_0xc0deb0(0xdb))?_0x31cd5f[_0xc0deb0(0xdb)]:_0x31cd5f;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1f54ee=_0x3a34f0;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x44c77f={'PUT':_0x1f54ee(0xa4),'REMOVE':'remove','INDEX_DROP':_0x1f54ee(0xdd),'INDEX_REGISTER':_0x1f54ee(0xa8),'INDEX_RESET':_0x1f54ee(0xa0),'TYPE_REGISTER':_0x1f54ee(0xd2),'TYPE_DROP':_0x1f54ee(0x99),'FTS_REGISTER':_0x1f54ee(0xbd),'FTS_DROP':_0x1f54ee(0xa9),'FTS_RESET':_0x1f54ee(0x9f),'SCHEMA_SET':_0x1f54ee(0xb6),'SCHEMA_DROP':_0x1f54ee(0x9d),'TTL_SET':_0x1f54ee(0xba),'TTL_CLEAR':'clearTtl'},_0x537b6f={'SYSTEM_READY':'system:ready','SYSTEM_STOPPED':_0x1f54ee(0xb8),'SYSTEM_CLOCK_CHANGE':_0x1f54ee(0x97),'SYSTEM_POKE':_0x1f54ee(0xb5),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x1f54ee(0xd5),'SYSTEM_PROC':_0x1f54ee(0xae),'SYSTEM_BUS_STATE_CHANGE':_0x1f54ee(0xdc),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x1f54ee(0xd8),'INDEX_RESET':'index:reset','INDEX_READY':_0x1f54ee(0xe9),'INDEX_PROGRESS':_0x1f54ee(0x94),'VIEW_PROGRESS':_0x1f54ee(0xca),'INDEX_DROP':_0x1f54ee(0xd3),'INDEX_REGISTERED':_0x1f54ee(0x98),'FTS_REGISTERED':_0x1f54ee(0x92),'FTS_DROP':_0x1f54ee(0xc5),'FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x1f54ee(0xa5),'UNIQUE_VIOLATION':_0x1f54ee(0xcc),'UNIQUE_VIOLATION_RESOLVED':_0x1f54ee(0x9c),'REF_VIOLATION':_0x1f54ee(0xbc),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x1f54ee(0xc9),'TXN_START':_0x1f54ee(0xc4),'TXN_END':_0x1f54ee(0xe1),'TXN_ROLLBACK':_0x1f54ee(0x93),'TYPE_REGISTERED':_0x1f54ee(0xab),'TYPE_DROP':_0x1f54ee(0xe3),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x1f54ee(0xaf),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x1f54ee(0xc7),'TTL_SET':_0x1f54ee(0xac),'TTL_CLEAR':_0x1f54ee(0xc1),'LICENSE_INVALID':_0x1f54ee(0xd4),'LICENSE_ADDED':_0x1f54ee(0xb3),'LICENSE_ACTIVATED':_0x1f54ee(0xda),'LICENSE_REMOVED':'license:removed'},_0x5940da={'CREATING':_0x1f54ee(0xa1),'RESETTING':'resetting','READY':'ready','DROPPING':'dropping','WAITING':_0x1f54ee(0x9a)},_0x111564={'CREATED':_0x1f54ee(0xdf),'STARTING':_0x1f54ee(0xe8),'STARTED':_0x1f54ee(0xe6),'STOPPING':'stopping','STOPPED':_0x1f54ee(0xc8)},_0x24c7a8={'CREATING':_0x1f54ee(0xa1),'READY':_0x1f54ee(0xcf),'HALTED':_0x1f54ee(0xce),'STOPPED':'stopped','RESETTING':_0x1f54ee(0xc2)},_0x1f0420=Object[_0x1f54ee(0xbf)]({'POKE':_0x1f54ee(0xd1),'DRAIN':_0x1f54ee(0xbe),'TYPE_DROP':_0x1f54ee(0xde),'PROC':'bus:proc','ENV_RELEASE':_0x1f54ee(0xe7)});return okdbEnums={'BUS_EVENTS':_0x1f0420,'CHANGE_ACTIONS':_0x44c77f,'EVENTS':_0x537b6f,'INDEX_STATE':_0x5940da,'OKDB_STATE':_0x111564,'VIEW_STATE':_0x24c7a8},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function _0x13d7(){const _0x3ff78f=['bus:env_release','starting','index:ready','fts:registered','txn:rollback','index:progress','error','8640935XfRIJc','system:clock_change','index:registered','dropType','waiting','catch','unique:violation_resolved','dropSchema','progress','resetFts','resetIndex','creating','./okdb','4pQdkaA','put','schema:drop','hasOwnProperty','10904568TUuvJw','registerIndex','dropFts','events','type:registered','ttl:set','3546507mgVGjC','system:proc','env:removed','_activateViewStorage','views','prototype','license:added','2HeDHbg','system:poke','setSchema','exit','system:stopped','_runBootstrapScanPhases','setTtl','worker_threads','ref:violation','registerFts','bus:drain','freeze','postMessage','ttl:clear','resetting','98mdXldY','txn:start','fts:drop','VIEW_PROGRESS','ttl:expired','stopped','sync:apply','view:progress','exports','unique:violation','26988269REIFDd','halted','ready','stack','bus:poke','registerType','index:drop','license:invalid','system:type_drop','597560YSOcUX','90tfyHDW','item:remove','313259ANhzGo','license:activated','default','system:bus_state_change','dropIndex','bus:type_drop','created','call','txn:end','__esModule','type:drop','1558390pkddlc','env','started'];_0x13d7=function(){return _0x3ff78f;};return _0x13d7();}function requireOkdbViewsBootstrapWorker(){const _0x32d029=_0x3a34f0;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x3ab872,workerData:_0x15e753}=require$$0,_0x337622=require$$1,{EVENTS:_0x440131}=requireOkdbEnums();async function _0x48552b(){const _0x2373a0=_0x4478,{rootPath:_0x12e2d0,envName:_0xe558ab,viewName:_0x6c0eaf,definition:_0x2a1841}=_0x15e753,_0x23fe3d=new _0x337622(_0x12e2d0,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]});await _0x23fe3d['open']();const _0x478560=_0x23fe3d[_0x2373a0(0xe5)](_0xe558ab);_0x478560[_0x2373a0(0xaa)]['on'](_0x440131[_0x2373a0(0xc6)],_0xfbe5c2=>{const _0x8a9444=_0x2373a0;if(_0xfbe5c2?.['name']!==_0x6c0eaf)return;try{_0x3ab872['postMessage']({'type':_0x8a9444(0x9e),'event':_0xfbe5c2});}catch{}}),await _0x478560[_0x2373a0(0xb1)]['_prepareViewDict'](_0x2a1841),await _0x478560[_0x2373a0(0xb1)][_0x2373a0(0xb0)](_0x6c0eaf,_0x2a1841),await _0x478560[_0x2373a0(0xb1)][_0x2373a0(0xb9)](_0x6c0eaf,_0x2a1841),_0x3ab872[_0x2373a0(0xc0)]({'type':'done'}),await _0x23fe3d['close'](),process['exit'](0x0);}return _0x48552b()[_0x32d029(0x9b)](_0x14f370=>{const _0x38aa02=_0x32d029;try{_0x3ab872[_0x38aa02(0xc0)]({'type':_0x38aa02(0x95),'error':_0x14f370['message']??String(_0x14f370),'stack':_0x14f370[_0x38aa02(0xd0)]});}catch{}process[_0x38aa02(0xb7)](0x1);}),okdbViewsBootstrapWorker$1;}function _0x4478(_0xec293,_0x23ce65){_0xec293=_0xec293-0x92;const _0x13d74=_0x13d7();let _0x44782a=_0x13d74[_0xec293];return _0x44782a;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x3a34f0(0xcb)]=okdbViewsBootstrapWorker;
|