@kedem/okdb 3.1.8 → 3.1.10
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/okdb-native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x431d06=_0x41a2;(function(_0x3b150f,_0x5de515){const _0x498b76=_0x41a2,_0x2759e6=_0x3b150f();while(!![]){try{const _0x25a139=-parseInt(_0x498b76(0x680))/0x1+parseInt(_0x498b76(0x469))/0x2+-parseInt(_0x498b76(0x330))/0x3+parseInt(_0x498b76(0x57d))/0x4+parseInt(_0x498b76(0xf3))/0x5+-parseInt(_0x498b76(0x260))/0x6+parseInt(_0x498b76(0x357))/0x7*(-parseInt(_0x498b76(0x574))/0x8);if(_0x25a139===_0x5de515)break;else _0x2759e6['push'](_0x2759e6['shift']());}catch(_0x3f141b){_0x2759e6['push'](_0x2759e6['shift']());}}}(_0x27a0,0x6c28c));var require$$0$6=require(_0x431d06(0x730)),require$$1$1=require(_0x431d06(0x338)),require$$0=require('node:fs'),require$$1=require(_0x431d06(0x2eb)),require$$4=require(_0x431d06(0x6cd)),require$$0$2=require(_0x431d06(0x194)),require$$0$1=require(_0x431d06(0x527)),require$$16=require(_0x431d06(0x1e1)),require$$0$3=require(_0x431d06(0x6c9)),require$$2=require(_0x431d06(0x56c)),require$$18=require('msgpackr'),require$$0$4=require(_0x431d06(0x15b)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x47db0e){const _0xa32f3a=_0x431d06;return _0x47db0e&&_0x47db0e[_0xa32f3a(0x478)]&&Object[_0xa32f3a(0x34d)][_0xa32f3a(0x723)][_0xa32f3a(0x7cd)](_0x47db0e,_0xa32f3a(0x686))?_0x47db0e[_0xa32f3a(0x686)]:_0x47db0e;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x21fba4 extends Error{constructor(_0x5ffc,_0x3b1eab,_0x149929={}){const _0x337100=_0x41a2;super(_0x5ffc),this[_0x337100(0x5e6)]=_0x337100(0x532),this[_0x337100(0x30f)]=_0x3b1eab,this[_0x337100(0x38a)]=_0x149929,_0x149929[_0x337100(0x387)]&&(this['cause']=_0x149929[_0x337100(0x387)]),Error[_0x337100(0x5f3)](this,this[_0x337100(0x501)]);}}class _0x50b6d0 extends _0x21fba4{constructor(_0xa7d7ab,_0x43d5ff,_0x144c58,_0x56ba3e){const _0x21d590=_0x41a2;super(_0x21d590(0x5df)+_0xa7d7ab+'@'+_0x43d5ff+_0x21d590(0x346)+_0x144c58+',\x20got\x20'+_0x56ba3e,'VERSION_MISMATCH',{'type':_0xa7d7ab,'key':_0x43d5ff,'expectedVersion':_0x144c58,'actualVersion':_0x56ba3e}),this[_0x21d590(0x5e6)]=_0x21d590(0xef);}}class _0x5d0dba extends _0x21fba4{constructor(_0xbeafe4,_0x28983b){const _0x486b98=_0x41a2;super(_0xbeafe4+'@'+_0x28983b+'\x20does\x20not\x20exist',_0x486b98(0x4c3),{'type':_0xbeafe4,'key':_0x28983b}),this[_0x486b98(0x5e6)]='OKDBNotFoundError';}}class _0xcccd8a extends _0x21fba4{constructor(_0x72f83b,_0x4eab22){const _0x334440=_0x41a2;super(_0x72f83b+'@'+_0x4eab22+_0x334440(0x6e1),'ALREADY_EXISTS',{'type':_0x72f83b,'key':_0x4eab22}),this[_0x334440(0x5e6)]=_0x334440(0x2d9);}}class _0x3bfb60 extends _0x21fba4{constructor(_0x22199c,_0x1b8e09){const _0x13a578=_0x41a2,_0x4d33bf=typeof _0x1b8e09;super(_0x13a578(0x7c7)+_0x22199c+_0x13a578(0x33d)+_0x4d33bf+_0x13a578(0x3f5)+_0x1b8e09,_0x13a578(0x150),{'index':_0x22199c,'key':_0x1b8e09,'keyType':_0x4d33bf}),this[_0x13a578(0x5e6)]=_0x13a578(0x59f);}}class _0x1546cc extends _0x21fba4{constructor(_0x12c3a0){const _0x23face=_0x41a2,_0x1d108e=typeof _0x12c3a0;super('Invalid\x20primary\x20key\x20type:\x20'+_0x1d108e+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0x12c3a0,_0x23face(0x4b9),{'key':_0x12c3a0,'keyType':_0x1d108e}),this[_0x23face(0x5e6)]='OKDBInvalidPrimaryKeyError';}}class _0x21c3e9 extends _0x21fba4{constructor(_0xad6392){const _0x2193b8=_0x41a2;super(_0x2193b8(0x531)+_0xad6392+_0x2193b8(0x555),'TYPE_NOT_REGISTERED',{'type':_0xad6392}),this[_0x2193b8(0x5e6)]='OKDBTypeNotRegisteredError';}}class _0x20e4aa extends _0x21fba4{constructor(_0x2a8f6d){const _0x32c883=_0x41a2;super(_0x32c883(0x531)+_0x2a8f6d+_0x32c883(0x227),_0x32c883(0x2e9),{'type':_0x2a8f6d}),this[_0x32c883(0x5e6)]=_0x32c883(0xf5);}}class _0x3e1bbe extends _0x21fba4{constructor(_0x92b95f,_0x45ae25){const _0x155e14=_0x41a2;super(_0x155e14(0x201)+_0x45ae25+_0x155e14(0x28b)+_0x92b95f+_0x155e14(0x555),'INDEX_NOT_REGISTERED',{'type':_0x92b95f,'index':_0x45ae25}),this[_0x155e14(0x5e6)]=_0x155e14(0x456);}}class _0x48d5e0 extends _0x21fba4{constructor(_0x41677d,_0x280d3b){const _0x58b287=_0x41a2;super('Index\x20\x27'+_0x280d3b+'\x27\x20on\x20type\x20\x27'+_0x41677d+_0x58b287(0x6a0),'INDEX_ALREADY_REGISTERED',{'type':_0x41677d,'index':_0x280d3b}),this[_0x58b287(0x5e6)]='OKDBIndexAlreadyRegisteredError';}}class _0x1368ab extends _0x21fba4{constructor(_0x2f3067,_0xb5f6fa={}){const _0x4cbf15=_0x41a2;super(_0x2f3067,_0x4cbf15(0x41a),_0xb5f6fa),this[_0x4cbf15(0x5e6)]=_0x4cbf15(0x562);}}class _0x2153c9 extends _0x21fba4{constructor(_0x17b390,_0x27a9b0,_0x476cc2,_0x43e38e,_0x8e47c1){const _0x194924=_0x41a2;super(_0x194924(0xca)+_0x17b390+'@'+_0x27a9b0+':\x20key\x20['+_0x476cc2+_0x194924(0x3a3)+_0x43e38e+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x8e47c1+'\x27',_0x194924(0x44b),{'type':_0x17b390,'index':_0x27a9b0,'indexKey':_0x476cc2,'existingKey':_0x43e38e,'conflictingKey':_0x8e47c1}),this[_0x194924(0x5e6)]=_0x194924(0x46c);}}class _0x377a9b extends _0x21fba4{constructor(_0x94499c,_0x27608b,_0x224cfa){const _0x2cab5a=_0x41a2;super(_0x2cab5a(0x154)+_0x94499c+'@'+_0x27608b,'SCHEMA_VALIDATION_FAILED',{'type':_0x94499c,'key':_0x27608b,'errors':_0x224cfa}),this[_0x2cab5a(0x5e6)]=_0x2cab5a(0x5e0),this[_0x2cab5a(0x690)]=_0x94499c,this[_0x2cab5a(0x590)]=_0x27608b,this[_0x2cab5a(0x7ba)]=_0x224cfa;}}class _0x2534f4 extends _0x21fba4{constructor(_0x40657d,_0x4d9b8c){const _0x37f57a=_0x41a2;super(_0x37f57a(0x72b)+_0x40657d+':\x20'+_0x4d9b8c[_0x37f57a(0x2a9)]+_0x37f57a(0x6a8),_0x37f57a(0x668),{'type':_0x40657d,'failures':_0x4d9b8c}),this[_0x37f57a(0x5e6)]=_0x37f57a(0x4e2),this[_0x37f57a(0x690)]=_0x40657d,this[_0x37f57a(0x1ef)]=_0x4d9b8c;}}class _0xc1d6a8 extends _0x21fba4{constructor(_0x3c7562,_0x457dd3,_0xa9b5e1,_0xa0aaf9,_0x2e4dcd){const _0x47ed30=_0x41a2;super(_0x47ed30(0x69f)+_0x3c7562+'@'+_0x457dd3+'.'+_0xa9b5e1+'\x20references\x20'+_0xa0aaf9+'@'+_0x2e4dcd+'\x20which\x20does\x20not\x20exist','FOREIGN_KEY_VIOLATION',{'sourceType':_0x3c7562,'sourceKey':_0x457dd3,'fieldPath':_0xa9b5e1,'targetType':_0xa0aaf9,'targetKey':_0x2e4dcd}),this[_0x47ed30(0x5e6)]=_0x47ed30(0x41e),this['sourceType']=_0x3c7562,this[_0x47ed30(0x235)]=_0x457dd3,this['fieldPath']=_0xa9b5e1,this[_0x47ed30(0x27b)]=_0xa0aaf9,this[_0x47ed30(0x3a6)]=_0x2e4dcd;}}class _0x5b19d4 extends _0x21fba4{constructor(_0x3e9abb,_0xa2e7fa,_0x19f4c2){const _0x66eb89=_0x41a2;super('Cannot\x20delete\x20'+_0x3e9abb+'@'+_0xa2e7fa+':\x20'+_0x19f4c2[_0x66eb89(0x2a9)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x66eb89(0xba),{'targetType':_0x3e9abb,'targetKey':_0xa2e7fa,'references':_0x19f4c2}),this[_0x66eb89(0x5e6)]='OKDBForeignKeyDeleteError',this[_0x66eb89(0x27b)]=_0x3e9abb,this[_0x66eb89(0x3a6)]=_0xa2e7fa,this[_0x66eb89(0x482)]=_0x19f4c2;}}class _0x3c3c07 extends _0x21fba4{constructor(_0x3dbe5f,_0x544c39,_0x2d9baa){const _0x134a4c=_0x41a2;super(_0x134a4c(0x6b8)+_0x544c39+_0x134a4c(0x3c2)+_0x3dbe5f+_0x134a4c(0x3aa)+_0x2d9baa[_0x134a4c(0x1d9)](_0x4ee2b0=>_0x4ee2b0[_0x134a4c(0x301)]+':'+_0x4ee2b0[_0x134a4c(0x5e6)])[_0x134a4c(0x7d6)](',\x20'),_0x134a4c(0x50a),{'type':_0x3dbe5f,'index':_0x544c39,'usedBy':_0x2d9baa}),this['name']=_0x134a4c(0x523);}}return okdbError={'OKDBError':_0x21fba4,'OKDBVersionMismatchError':_0x50b6d0,'OKDBNotFoundError':_0x5d0dba,'OKDBAlreadyExistsError':_0xcccd8a,'OKDBInvalidIndexKeyError':_0x3bfb60,'OKDBInvalidPrimaryKeyError':_0x1546cc,'OKDBTypeNotRegisteredError':_0x21c3e9,'OKDBTypeAlreadyRegisteredError':_0x20e4aa,'OKDBIndexNotRegisteredError':_0x3e1bbe,'OKDBIndexAlreadyRegisteredError':_0x48d5e0,'OKDBInvalidValueError':_0x1368ab,'OKDBUniqueConstraintError':_0x2153c9,'OKDBSchemaValidationError':_0x377a9b,'OKDBSchemaCollectionError':_0x2534f4,'OKDBForeignKeyError':_0xc1d6a8,'OKDBForeignKeyDeleteError':_0x5b19d4,'OKDBIndexHasConsumersError':_0x3c3c07},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x4a7628=_0x431d06;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x678653=requireOkdbError(),_0x5c43c9={'VERSION_MISMATCH':_0x678653[_0x4a7628(0xef)],'NOT_FOUND':_0x678653['OKDBNotFoundError'],'ALREADY_EXISTS':_0x678653[_0x4a7628(0x2d9)],'INVALID_INDEX_KEY':_0x678653[_0x4a7628(0x59f)],'INVALID_PRIMARY_KEY':_0x678653[_0x4a7628(0x1c0)],'TYPE_NOT_REGISTERED':_0x678653[_0x4a7628(0x7db)],'TYPE_ALREADY_REGISTERED':_0x678653['OKDBTypeAlreadyRegisteredError'],'INDEX_NOT_REGISTERED':_0x678653[_0x4a7628(0x456)],'INDEX_ALREADY_REGISTERED':_0x678653['OKDBIndexAlreadyRegisteredError'],'INVALID_VALUE':_0x678653[_0x4a7628(0x562)],'UNIQUE_CONSTRAINT':_0x678653[_0x4a7628(0x46c)],'SCHEMA_VALIDATION_FAILED':_0x678653['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x678653[_0x4a7628(0x4e2)],'FOREIGN_KEY_VIOLATION':_0x678653[_0x4a7628(0x41e)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x678653[_0x4a7628(0x366)],'INDEX_HAS_CONSUMERS':_0x678653[_0x4a7628(0x523)]};class _0x56cec1 extends _0x678653[_0x4a7628(0x532)]{constructor(_0x56b8ee,_0x3d5d04){const _0x59501b=_0x4a7628;super(_0x56b8ee+_0x59501b(0xc9)+(_0x3d5d04?'\x20('+_0x3d5d04+')':''),_0x59501b(0x267),{'feature':_0x56b8ee}),this[_0x59501b(0x5e6)]=_0x59501b(0x3f1);}}function _0xe20a71(_0x5d0af3){const _0x425b8c=_0x4a7628;if(!_0x5d0af3||typeof _0x5d0af3!==_0x425b8c(0x4ed)||!_0x5d0af3['__okdb'])return _0x5d0af3;delete _0x5d0af3[_0x425b8c(0x293)];const _0x3b34d1=_0x5d0af3[_0x425b8c(0x30f)];if(_0x3b34d1===_0x425b8c(0x304)||_0x3b34d1===_0x425b8c(0x45b)||_0x3b34d1===_0x425b8c(0x771)){const _0x20d073=_0x3b34d1===_0x425b8c(0x45b)?TypeError[_0x425b8c(0x34d)]:_0x3b34d1===_0x425b8c(0x771)?RangeError[_0x425b8c(0x34d)]:Error['prototype'];Object['setPrototypeOf'](_0x5d0af3,_0x20d073),_0x5d0af3[_0x425b8c(0x5e6)]=_0x3b34d1;if(_0x5d0af3[_0x425b8c(0x38a)]&&_0x5d0af3['details'][_0x425b8c(0x5d2)]!==undefined)_0x5d0af3[_0x425b8c(0x5d2)]=_0x5d0af3[_0x425b8c(0x38a)][_0x425b8c(0x5d2)];return delete _0x5d0af3[_0x425b8c(0x30f)],delete _0x5d0af3['details'],_0x5d0af3;}const _0x4c8acb=_0x5c43c9[_0x3b34d1];Object[_0x425b8c(0x1ed)](_0x5d0af3,(_0x4c8acb||_0x678653[_0x425b8c(0x532)])[_0x425b8c(0x34d)]),_0x5d0af3[_0x425b8c(0x5e6)]=_0x4c8acb?_0x4c8acb[_0x425b8c(0x5e6)]['replace'](/^OKDB/,_0x425b8c(0x421)):_0x425b8c(0x532);const _0x1ce03d=_0x5d0af3[_0x425b8c(0x38a)]||{};_0x3b34d1===_0x425b8c(0x1cc)&&(_0x5d0af3[_0x425b8c(0x690)]=_0x1ce03d['type'],_0x5d0af3['key']=_0x1ce03d[_0x425b8c(0x590)],_0x5d0af3[_0x425b8c(0x7ba)]=_0x1ce03d[_0x425b8c(0x7ba)]);_0x3b34d1===_0x425b8c(0x668)&&(_0x5d0af3[_0x425b8c(0x690)]=_0x1ce03d[_0x425b8c(0x690)],_0x5d0af3['failures']=_0x1ce03d[_0x425b8c(0x1ef)]);if(_0x3b34d1===_0x425b8c(0x589)){for(const _0x194d11 of[_0x425b8c(0x1eb),_0x425b8c(0x235),_0x425b8c(0x450),'targetType',_0x425b8c(0x3a6)])_0x5d0af3[_0x194d11]=_0x1ce03d[_0x194d11];}if(_0x3b34d1===_0x425b8c(0xba)){for(const _0x3fadfa of[_0x425b8c(0x27b),'targetKey','references'])_0x5d0af3[_0x3fadfa]=_0x1ce03d[_0x3fadfa];}if(_0x1ce03d[_0x425b8c(0x387)])_0x5d0af3[_0x425b8c(0x387)]=_0x1ce03d[_0x425b8c(0x387)];if(_0x1ce03d['status']!==undefined)_0x5d0af3['status']=_0x1ce03d[_0x425b8c(0x5d2)];if(_0x1ce03d['retryable']!==undefined)_0x5d0af3[_0x425b8c(0x13b)]=_0x1ce03d['retryable'];return _0x5d0af3;}function _0x4907b8(_0x38b784){const _0x1f440b=_0x4a7628;if(_0x38b784===undefined)return'undefined';if(_0x38b784===null)return _0x1f440b(0x2b4);if(typeof _0x38b784===_0x1f440b(0x229))return _0x38b784?'string':_0x1f440b(0x513);if(typeof _0x38b784===_0x1f440b(0x7c4))return _0x1f440b(0x7c4);if(typeof _0x38b784!=='object')return typeof _0x38b784;if(Array[_0x1f440b(0x17d)](_0x38b784))return _0x38b784[_0x1f440b(0x2a9)]?_0x1f440b(0x55a):'empty\x20array';if(_0x38b784 instanceof Date)return _0x1f440b(0x760);if(_0x38b784 instanceof Map)return _0x1f440b(0x5f0);if(Buffer[_0x1f440b(0x68e)](_0x38b784))return _0x1f440b(0x73f);return _0x1f440b(0x4ed);}const _0x2838e5=(_0x54580c,_0x2f27cb,_0x3b4594)=>new _0x678653['OKDBError'](_0x2f27cb,_0x54580c,_0x3b4594),_0x57d190=(_0xb26466,_0x12b647,_0x2e682b)=>_0x2838e5(_0x4a7628(0x3d2),_0xb26466+'\x20must\x20be\x20'+_0x12b647+';\x20got\x20'+_0x4907b8(_0x2e682b),{'argument':_0xb26466,'expected':_0x12b647,'got':_0x4907b8(_0x2e682b)}),_0x1b3fdb=(_0x3c3370,_0x34d190)=>_0x2838e5(_0x4a7628(0x39c),_0x3c3370+_0x4a7628(0x105)+_0x4907b8(_0x34d190),{'argument':_0x3c3370,'expected':_0x4a7628(0x172),'got':_0x4907b8(_0x34d190)}),_0x166f49=(_0x575bda,_0x14c483)=>_0x2838e5(_0x4a7628(0x7c3),_0x575bda+':\x20'+_0x14c483,{'argument':_0x575bda,'problem':_0x14c483});function _0x60f72b(_0x20dc88,_0x18fa4f=_0x4a7628(0x2f0)){const _0x29517e=_0x4a7628;if(_0x20dc88===undefined)return{};if(_0x20dc88===null)throw _0x166f49(_0x18fa4f,_0x29517e(0x321));return _0x20dc88;}return errors={'reclass':_0xe20a71,'NotImplementedNative':_0x56cec1,'BY_CODE':_0x5c43c9,'describe':_0x4907b8,'invalidArgument':_0x57d190,'invalidTypeName':_0x1b3fdb,'invalidOptions':_0x166f49,'optionsArg':_0x60f72b,..._0x678653},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x518645=new Map(),_0x16c49d=new Map();let _0x35fbee=0x1;const _0x5c40ca=new Map(),_0x1aaea2=new Map();let _0x3d8b18=0x1;const _0x26662f=new Map();let _0x4b0a19=0x1;const _0x563865=new Map();function _0x28abcd(_0x42302f,_0x140a0a=null){const _0x5b4f28=_0x4b0a19++;_0x26662f['set'](_0x5b4f28,_0x42302f);if(_0x140a0a)_0x563865['set'](_0x5b4f28,_0x140a0a);return _0x5b4f28;}function _0x32b3f4(_0x4b75cb,_0x597451){const _0x259885=_0x41a2,_0x2cb3c8=_0x26662f[_0x259885(0x1bc)](_0x4b75cb),_0xbcc354=Array['prototype'][_0x259885(0x331)][_0x259885(0x7cd)](arguments,0x2),_0x39b444=_0x5e62df=>_0x505500(_0x5e62df,_0x563865['get'](_0x4b75cb));let _0x5d0f2b=_0xbcc354;if(_0x597451==='start'||_0x597451==='stop'||_0x597451===_0x259885(0x335)||_0x597451===_0x259885(0x353)||_0x597451===_0x259885(0xe5))_0x5d0f2b=[_0x39b444(_0xbcc354[0x0])];else{if(_0x597451===_0x259885(0x297))_0x5d0f2b=[_0xbcc354[0x0],_0xbcc354[0x1],_0x39b444(_0xbcc354[0x2])];else{if(_0x597451===_0x259885(0x54e))_0x5d0f2b=[_0x39b444(_0xbcc354[0x0])];}}let _0x206b1d=_0x2cb3c8[_0x597451](..._0x5d0f2b);if(_0x206b1d&&typeof _0x206b1d['then']==='function')_0x206b1d=_0x146648(_0x206b1d);if(_0x597451===_0x259885(0x432)){const _0x336ec6=_0x206b1d&&typeof _0x206b1d==='object'?_0x28abcd(_0x206b1d):_0x28abcd({});return{'$api':_0x336ec6};}return _0x206b1d===undefined?null:_0x206b1d;}function _0x505500(_0x31f096,_0x2f9383){const _0x3849f6=_0x41a2;let _0x4df5d1=_0xce23f7[_0x3849f6(0x1bc)](_0x31f096[_0x3849f6(0xbb)]);const _0x560353=_0x4df5d1&&_0x4df5d1[_0x3849f6(0x6ff)]||_0x2f9383||_0x215e77,_0x4806cd=(_0x899c14,..._0x42e53c)=>_0x560353['_call'](_0x3849f6(0x7bc),null,_0x899c14,[_0x31f096[_0x3849f6(0x690)],_0x31f096['name'],..._0x42e53c],!![]);return{'okdb':_0x560353,'key':_0x31f096['key'],'type':_0x31f096['type'],'name':_0x31f096[_0x3849f6(0x5e6)],get 'storeEnv'(){const _0x5cb78c=_0x3849f6;if(!_0x4df5d1&&_0x560353&&_0x560353[_0x5cb78c(0x2ab)]&&_0x31f096['storeEnvName'])_0x4df5d1=_0x560353['_envs']['get'](_0x31f096[_0x5cb78c(0x69d)]);return _0x4df5d1;},'storeEnvName':_0x31f096[_0x3849f6(0x69d)],'config':_0x31f096[_0x3849f6(0x6a7)],'meta':_0x31f096[_0x3849f6(0x7a9)],'options':_0x31f096[_0x3849f6(0x2f0)],'emit':(_0x4f2a87,_0x5c86a2)=>_0x4806cd(_0x3849f6(0x617),_0x4f2a87,_0x5c86a2),'updateStatus':async(_0x4d28d5,_0x36fc9b)=>_0x4806cd(_0x3849f6(0x418),_0x4d28d5,_0x36fc9b==null?null:String(_0x36fc9b&&_0x36fc9b['message']?_0x36fc9b[_0x3849f6(0x18d)]:_0x36fc9b)),'updateMeta':async _0x10d1ef=>_0x4806cd(_0x3849f6(0xff),{'meta':_0x10d1ef}),'updateConfig':async _0x2bf283=>_0x4806cd('patchDeclaration',{'config':_0x2bf283})};}function _0x3629ed(_0x111976,_0x452886,_0x48e79){const _0x3b0846=_0x41a2;if(_0x111976==='new'){const _0x432a4c=_0x118634(_0x452886);let _0x2f6014=_0x432a4c(_0x48e79);if(_0x2f6014&&typeof _0x2f6014[_0x3b0846(0x583)]===_0x3b0846(0x7c4))_0x2f6014=_0x146648(_0x2f6014);if(!_0x2f6014||typeof _0x2f6014['embed']!==_0x3b0846(0x7c4)){const {OKDBError:_0x1d509b}=requireErrors();throw new _0x1d509b(_0x3b0846(0x5a6)+(_0x48e79&&_0x48e79['type'])+_0x3b0846(0x55c),'BAD_EMBEDDER_FACTORY');}return _0x2f6014[_0x3b0846(0x293)]=_0x432a4c[_0x3b0846(0x293)],{'$id':_0x28abcd(_0x2f6014),'batch':typeof _0x2f6014[_0x3b0846(0x679)]===_0x3b0846(0x7c4)};}const _0x3f25a9=_0x26662f[_0x3b0846(0x1bc)](_0x452886);if(_0x111976===_0x3b0846(0x17e))return _0x26662f[_0x3b0846(0x7ec)](_0x452886),_0x375f79[_0x3b0846(0x7ec)](_0x452886),null;if(!_0x3f25a9)throw new Error('embedder\x20is\x20gone');if(typeof _0x3f25a9[_0x111976]!=='function')return null;if(_0x111976===_0x3b0846(0x4f5)||_0x111976===_0x3b0846(0x679)){const _0x106673=_0x111976==='embedBatch'?_0x2dd960(_0x452886,_0x3f25a9,_0x48e79):_0x46773e(_0x452886,_0x3f25a9,_0x111976,_0x48e79);return _0x111976==='embed'?_0x1fcc7a(_0x106673):_0x106673[_0x3b0846(0x1d9)](_0x1fcc7a);}let _0x5ad229=_0x3f25a9[_0x111976]();if(_0x5ad229&&typeof _0x5ad229['then']===_0x3b0846(0x7c4))_0x5ad229=_0x146648(_0x5ad229);return _0x5ad229===undefined?null:_0x5ad229;}function _0x1fcc7a(_0x221563){return _0x221563 instanceof Float32Array?_0x221563:Array['from'](_0x221563);}function _0x193ebc(_0x2a2ea4,_0x58f14b,_0x1ff7e7){const _0x10ca1c=_0x41a2;if(_0x2a2ea4===_0x10ca1c(0x64f)){const _0xddcacf=_0x118634(_0x58f14b);let _0x5e7d35=_0xddcacf(_0x1ff7e7[_0x10ca1c(0x6a7)]??{},{'dims':_0x1ff7e7[_0x10ca1c(0x6b9)],'dir':_0x1ff7e7[_0x10ca1c(0x149)]});if(_0x5e7d35&&typeof _0x5e7d35[_0x10ca1c(0x583)]===_0x10ca1c(0x7c4))_0x5e7d35=_0x146648(_0x5e7d35);for(const _0xf5a8ad of[_0x10ca1c(0x1b2),_0x10ca1c(0x3a8),_0x10ca1c(0x4d2),'search','count']){if(!_0x5e7d35||typeof _0x5e7d35[_0xf5a8ad]!==_0x10ca1c(0x7c4)){const {OKDBError:_0x129003}=requireErrors();throw new _0x129003('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0xf5a8ad+'()',_0x10ca1c(0x35e),{'method':_0xf5a8ad});}}return{'$id':_0x28abcd(_0x5e7d35)};}const _0x580bf3=_0x26662f[_0x10ca1c(0x1bc)](_0x58f14b);if(_0x2a2ea4===_0x10ca1c(0x17e))return _0x26662f[_0x10ca1c(0x7ec)](_0x58f14b),null;if(!_0x580bf3)throw new Error('algorithm\x20is\x20gone');const _0x30730a=_0x192380=>_0x192380?_0x192380['map'](_0x2383f7=>({'key':_0x2383f7['key'],'vector':Float32Array[_0x10ca1c(0x295)](_0x2383f7[_0x10ca1c(0x692)])})):null;let _0x1d0f19;switch(_0x2a2ea4){case _0x10ca1c(0x1b2):case _0x10ca1c(0x273):{const _0x54f679=_0x30730a(_0x1ff7e7);_0x1d0f19=_0x580bf3[_0x2a2ea4](_0x54f679?async()=>_0x54f679:undefined);break;}case _0x10ca1c(0x3a8):_0x1d0f19=_0x580bf3[_0x10ca1c(0x3a8)](_0x1ff7e7[0x0],Float32Array[_0x10ca1c(0x295)](_0x1ff7e7[0x1]),_0x1ff7e7[0x2]??undefined);break;case'remove':_0x1d0f19=_0x580bf3[_0x10ca1c(0x4d2)](_0x1ff7e7);break;case'search':_0x1d0f19=_0x580bf3[_0x10ca1c(0x292)](Float32Array[_0x10ca1c(0x295)](_0x1ff7e7[_0x10ca1c(0x787)]),_0x1ff7e7['opts']??{});break;case'snapshot':_0x1d0f19=typeof _0x580bf3[_0x10ca1c(0x65b)]==='function'?_0x580bf3[_0x10ca1c(0x65b)](_0x1ff7e7??undefined):![];break;case _0x10ca1c(0x4ff):_0x1d0f19=typeof _0x580bf3['stop']===_0x10ca1c(0x7c4)?_0x580bf3['stop']():undefined;break;case'tick':_0x1d0f19=typeof _0x580bf3[_0x10ca1c(0x6ce)]===_0x10ca1c(0x7c4)?_0x580bf3[_0x10ca1c(0x6ce)]():undefined;break;case'count':return Number(_0x580bf3[_0x10ca1c(0x70b)]());case _0x10ca1c(0xd5):return(typeof _0x580bf3[_0x10ca1c(0xd5)]==='function'?_0x580bf3[_0x10ca1c(0xd5)]():null)??{};default:throw new Error(_0x10ca1c(0x3ad)+_0x2a2ea4);}if(_0x1d0f19&&typeof _0x1d0f19['then']===_0x10ca1c(0x7c4))_0x1d0f19=_0x146648(_0x1d0f19);return _0x1d0f19===undefined?null:_0x1d0f19;}function _0x2369b3(_0x420336,_0x6767a2,_0x4dd7f1){const _0x169487=_0x41a2;if(_0x420336==='new'){const _0x383cf7=_0x118634(_0x6767a2);let _0x238d4d=_0x383cf7(_0x4dd7f1);if(_0x238d4d&&typeof _0x238d4d[_0x169487(0x583)]===_0x169487(0x7c4))_0x238d4d=_0x146648(_0x238d4d);if(!_0x238d4d)return null;const _0x53c5d1=[_0x169487(0x75a),_0x169487(0x5e1),_0x169487(0x1bc),_0x169487(0x70b),'dropAll',_0x169487(0x39b)][_0x169487(0x587)](_0x263030=>typeof _0x238d4d[_0x263030]==='function');return{'$id':_0x28abcd(_0x238d4d),'has':_0x53c5d1};}const _0xc293a0=_0x26662f['get'](_0x6767a2);if(_0x420336===_0x169487(0x17e))return _0x26662f[_0x169487(0x7ec)](_0x6767a2),null;if(!_0xc293a0)throw new Error(_0x169487(0x7e9));const _0x336486=_0xf79db8=>Float32Array[_0x169487(0x295)](_0xf79db8);let _0x2316c0;switch(_0x420336){case _0x169487(0x59b):_0x2316c0=_0xc293a0[_0x169487(0x59b)](_0x4dd7f1[0x0],_0x336486(_0x4dd7f1[0x1]));break;case _0x169487(0x4d2):_0x2316c0=_0xc293a0[_0x169487(0x4d2)](_0x4dd7f1);break;case _0x169487(0x401):{_0x2316c0=typeof _0xc293a0[_0x169487(0x401)]==='function'?_0xc293a0['getAll']():[];if(_0x2316c0&&typeof _0x2316c0[_0x169487(0x583)]===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return Array[_0x169487(0x295)](_0x2316c0??[],_0x30f075=>({'key':_0x30f075['key'],'vector':Array[_0x169487(0x295)](_0x30f075['vector'])}));}case _0x169487(0x75a):_0x2316c0=_0xc293a0[_0x169487(0x75a)](_0x4dd7f1[_0x169487(0x6ab)][_0x169487(0x1d9)](_0x20e06b=>({'key':_0x20e06b[_0x169487(0x590)],'vector':_0x336486(_0x20e06b['vector'])})),_0x4dd7f1['removes']);break;case _0x169487(0x5e1):_0x2316c0=_0xc293a0[_0x169487(0x5e1)](_0x4dd7f1??undefined);if(_0x2316c0&&typeof _0x2316c0['then']===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return Array[_0x169487(0x295)](_0x2316c0??[]);case _0x169487(0x1bc):{_0x2316c0=_0xc293a0['get'](_0x4dd7f1);if(_0x2316c0&&typeof _0x2316c0[_0x169487(0x583)]===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return _0x2316c0==null?null:Array[_0x169487(0x295)](_0x2316c0);}case _0x169487(0x70b):return Number(_0xc293a0[_0x169487(0x70b)]());case'dropAll':_0x2316c0=_0xc293a0[_0x169487(0x52c)]();break;case'stats':return _0xc293a0[_0x169487(0x39b)]()??null;default:throw new Error(_0x169487(0x44d)+_0x420336);}if(_0x2316c0&&typeof _0x2316c0[_0x169487(0x583)]===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return _0x2316c0===undefined?null:_0x2316c0;}const _0x1ab023=new Map();function _0x46773e(_0x32840d,_0x214480,_0x107a9e,_0x524c2f){const _0x30eb0f=_0x41a2,_0x1dec32=_0x32840d+'\x00'+_0x107a9e+'\x00'+JSON[_0x30eb0f(0x64b)](_0x524c2f),_0x5065fd=_0x1ab023[_0x30eb0f(0x1bc)](_0x1dec32);if(_0x5065fd){if(_0x5065fd['state']==='pending')throw _0x50b85b();_0x1ab023[_0x30eb0f(0x7ec)](_0x1dec32);if(_0x5065fd[_0x30eb0f(0x1a2)]===_0x30eb0f(0x27d))throw _0x5065fd['value'];return _0x5065fd[_0x30eb0f(0x6f0)];}const _0x180a64=_0x214480[_0x107a9e](_0x524c2f);if(!_0x180a64||typeof _0x180a64[_0x30eb0f(0x583)]!==_0x30eb0f(0x7c4))return _0x180a64;const _0x5a070f={'state':_0x30eb0f(0x5a9),'value':undefined};_0x180a64[_0x30eb0f(0x583)](_0x39d15d=>{const _0x580d3d=_0x30eb0f;_0x5a070f[_0x580d3d(0x1a2)]='ok',_0x5a070f[_0x580d3d(0x6f0)]=_0x39d15d;if(_0x1ab023[_0x580d3d(0x1bc)](_0x1dec32)===_0x5a070f)_0x189802(_0x214480);},_0x494b44=>{const _0x585cd7=_0x30eb0f;_0x5a070f[_0x585cd7(0x1a2)]=_0x585cd7(0x27d),_0x5a070f[_0x585cd7(0x6f0)]=_0x494b44;if(_0x1ab023[_0x585cd7(0x1bc)](_0x1dec32)===_0x5a070f)_0x189802(_0x214480);});for(let _0xb5aea5=0x0;_0xb5aea5<0x64&&_0x5a070f[_0x30eb0f(0x1a2)]===_0x30eb0f(0x5a9);_0xb5aea5++)process[_0x30eb0f(0x311)]();if(_0x5a070f[_0x30eb0f(0x1a2)]==='ok')return _0x5a070f['value'];if(_0x5a070f[_0x30eb0f(0x1a2)]==='err')throw _0x5a070f[_0x30eb0f(0x6f0)];_0x1ab023[_0x30eb0f(0x48c)](_0x1dec32,_0x5a070f);throw _0x50b85b();}const _0x375f79=new Map(),_0x2c5ba7=0xa*0x3c*0x3e8;function _0x2dd960(_0xd74cd2,_0xf5978d,_0x558fdc){const _0x15c2a0=_0x41a2,_0x1067e9=Array[_0x15c2a0(0x17d)](_0x558fdc)?_0x558fdc:Array[_0x15c2a0(0x295)](_0x558fdc??[]);let _0x3826ee=_0x375f79[_0x15c2a0(0x1bc)](_0xd74cd2);if(!_0x3826ee)_0x375f79[_0x15c2a0(0x48c)](_0xd74cd2,_0x3826ee=new Map());const _0xfed3a9=Date[_0x15c2a0(0x772)]();for(const [_0x2611f7,_0x33e375]of _0x3826ee)if(_0x33e375[_0x15c2a0(0x6c1)]['state']!==_0x15c2a0(0x5a9)&&_0xfed3a9-_0x33e375[_0x15c2a0(0x6c1)]['at']>_0x2c5ba7)_0x3826ee[_0x15c2a0(0x7ec)](_0x2611f7);const _0x3c41ef=_0x1067e9[_0x15c2a0(0x1d9)](_0x28c76e=>JSON['stringify'](_0x28c76e));let _0x1f9987=![];const _0x433328=[],_0x30dbed=new Set();for(let _0x532a63=0x0;_0x532a63<_0x3c41ef[_0x15c2a0(0x2a9)];_0x532a63++){const _0x1f69f9=_0x3826ee[_0x15c2a0(0x1bc)](_0x3c41ef[_0x532a63]);if(!_0x1f69f9)!_0x30dbed['has'](_0x3c41ef[_0x532a63])&&(_0x30dbed[_0x15c2a0(0x3a8)](_0x3c41ef[_0x532a63]),_0x433328[_0x15c2a0(0x540)](_0x532a63));else{if(_0x1f69f9['req'][_0x15c2a0(0x1a2)]===_0x15c2a0(0x5a9))_0x1f9987=!![];else{if(_0x1f69f9['req'][_0x15c2a0(0x1a2)]===_0x15c2a0(0x27d)){const _0x345eea=_0x1f69f9[_0x15c2a0(0x6c1)][_0x15c2a0(0x6f0)];for(const [_0x38c776,_0x41eeb1]of _0x3826ee)if(_0x41eeb1[_0x15c2a0(0x6c1)]===_0x1f69f9[_0x15c2a0(0x6c1)])_0x3826ee['delete'](_0x38c776);throw _0x345eea;}}}}if(_0x1f9987)throw _0x50b85b();if(_0x433328[_0x15c2a0(0x2a9)]){const _0x5489b6=_0x433328[_0x15c2a0(0x1d9)](_0x553d51=>_0x1067e9[_0x553d51]),_0x3b6ed2=_0xf5978d[_0x15c2a0(0x679)](_0x5489b6),_0x1825c9={'state':_0x15c2a0(0x5a9),'value':undefined,'at':0x0},_0x504104=(_0xdc905d,_0x2a85ec)=>{const _0x16d86f=_0x15c2a0;_0x1825c9[_0x16d86f(0x1a2)]=_0xdc905d,_0x1825c9[_0x16d86f(0x6f0)]=_0x2a85ec,_0x1825c9['at']=Date[_0x16d86f(0x772)]();};if(!_0x3b6ed2||typeof _0x3b6ed2[_0x15c2a0(0x583)]!==_0x15c2a0(0x7c4))_0x504104('ok',_0x3b6ed2);else{let _0x3aa1bf=!![];_0x3b6ed2['then'](_0xe5a7c6=>{_0x504104('ok',_0xe5a7c6);if(!_0x3aa1bf)_0x189802(_0xf5978d);},_0x55e189=>{_0x504104('err',_0x55e189);if(!_0x3aa1bf)_0x189802(_0xf5978d);});for(let _0x10e74a=0x0;_0x10e74a<0x64&&_0x1825c9[_0x15c2a0(0x1a2)]===_0x15c2a0(0x5a9);_0x10e74a++)process['_tickCallback']();_0x3aa1bf=![];}for(let _0x495ad4=0x0;_0x495ad4<_0x433328[_0x15c2a0(0x2a9)];_0x495ad4++)_0x3826ee[_0x15c2a0(0x48c)](_0x3c41ef[_0x433328[_0x495ad4]],{'req':_0x1825c9,'index':_0x495ad4});if(_0x1825c9[_0x15c2a0(0x1a2)]==='err'){for(const _0x3ff745 of _0x433328)_0x3826ee[_0x15c2a0(0x7ec)](_0x3c41ef[_0x3ff745]);throw _0x1825c9[_0x15c2a0(0x6f0)];}if(_0x1825c9['state']===_0x15c2a0(0x5a9))throw _0x50b85b();}const _0x2a6b39=_0x3c41ef[_0x15c2a0(0x1d9)](_0x465fe1=>{const _0x842fe5=_0x15c2a0,_0xde7fc2=_0x3826ee['get'](_0x465fe1),_0xdcb5f4=_0xde7fc2[_0x842fe5(0x6c1)][_0x842fe5(0x6f0)];return _0xdcb5f4?_0xdcb5f4[_0xde7fc2[_0x842fe5(0x545)]]:undefined;});for(const _0x5373df of _0x3c41ef)_0x3826ee[_0x15c2a0(0x7ec)](_0x5373df);if(!_0x3826ee[_0x15c2a0(0x74f)])_0x375f79[_0x15c2a0(0x7ec)](_0xd74cd2);return _0x2a6b39;}function _0x50b85b(){const _0x3ed5d4=_0x41a2;return Object[_0x3ed5d4(0x2e1)](new Error(_0x3ed5d4(0x584)),{'code':_0x3ed5d4(0x50d)});}function _0x189802(_0x538982){const _0x128045=_0x41a2;_0x31abde();try{const _0x39008a=_0x538982[_0x128045(0x293)]||_0x215e77;if(_0x39008a&&_0x39008a['_isOpen'])_0x39008a[_0x128045(0x722)](_0x128045(0x6bf),null,'emit',[_0x128045(0x454),{}],!![]);}catch{}}function _0x2d9679(_0x15c167,_0x309d77,_0x397eca){const _0x5c3d61=_0x41a2,_0x3acb2=_0x26662f[_0x5c3d61(0x1bc)](_0x15c167);if(!_0x3acb2||typeof _0x3acb2[_0x309d77]!==_0x5c3d61(0x7c4))return{'__absent':!![]};let _0x2bce4a=_0x3acb2[_0x309d77](...Array[_0x5c3d61(0x17d)](_0x397eca)?_0x397eca:[]);if(_0x2bce4a&&typeof _0x2bce4a[_0x5c3d61(0x583)]===_0x5c3d61(0x7c4))_0x2bce4a=_0x146648(_0x2bce4a);return{'value':_0x2bce4a===undefined?null:_0x2bce4a};}const _0x14ec9c=new Map();let _0x28a1c9=0x1;const _0xce23f7=new Map(),_0x3bf704=new Map();function _0x39630e(_0x124b4a,_0x3ed2ce=null){const _0x3472a0=_0x41a2,_0xc76aee=_0x28a1c9++;_0x14ec9c[_0x3472a0(0x48c)](_0xc76aee,_0x124b4a);if(_0x3ed2ce)_0x3bf704[_0x3472a0(0x48c)](_0xc76aee,_0x3ed2ce);return _0xc76aee;}function _0x19fc98(_0x46028a){const _0x40a1f8=_0x41a2;for(const [_0x565383,_0x3c5929]of _0xce23f7)if(_0x3c5929&&_0x3c5929[_0x40a1f8(0x6ff)]===_0x46028a)_0xce23f7['delete'](_0x565383);for(const [_0x5248b0,_0x4115e1]of _0x563865)if(_0x4115e1===_0x46028a)_0x563865[_0x40a1f8(0x7ec)](_0x5248b0);for(const [_0x555487,_0x330795]of _0x3bf704)_0x330795===_0x46028a&&(_0x3bf704[_0x40a1f8(0x7ec)](_0x555487),_0x14ec9c[_0x40a1f8(0x7ec)](_0x555487));if(_0x215e77===_0x46028a)_0x215e77=null;}function _0x8495d6(_0x544b60,_0x31140c){_0xce23f7['set'](_0x544b60,_0x31140c);}function _0x3dcc83(_0x586299){const _0x153909=_0x41a2;if(_0x586299&&typeof _0x586299===_0x153909(0x4ed)&&Object[_0x153909(0x5e1)](_0x586299)[_0x153909(0x2a9)]===0x1&&_0x586299['$payload']!==undefined)return _0x14ec9c[_0x153909(0x1bc)](_0x586299[_0x153909(0x683)]);return _0x586299;}function _0x146648(_0x543824){const _0x154133=_0x41a2;let _0x113125=![],_0x2b6da7=![],_0xeef6a0;_0x543824[_0x154133(0x583)](_0x5ee1c4=>{_0x113125=!![],_0xeef6a0=_0x5ee1c4;},_0x49d49d=>{_0x113125=!![],_0x2b6da7=!![],_0xeef6a0=_0x49d49d;});for(let _0x2b3232=0x0;_0x2b3232<0x2710&&!_0x113125;_0x2b3232++)process[_0x154133(0x311)]();if(!_0x113125)return _0x543824[_0x154133(0x583)](undefined,_0x3e5fc7=>{const _0x264d20=_0x154133;try{process[_0x264d20(0x1b3)](_0x264d20(0x5c4)+(_0x3e5fc7&&_0x3e5fc7[_0x264d20(0x18d)]?_0x3e5fc7[_0x264d20(0x18d)]:_0x3e5fc7));}catch{}}),undefined;if(_0x2b6da7)throw _0xeef6a0;return _0xeef6a0;}function _0x3e89b0(_0x2af888,_0x39efb9,_0x2e6c4e){const _0x408434=_0x41a2,_0x44c0b1=_0x118634(_0x2af888),_0x6b950e=_0xce23f7[_0x408434(0x1bc)](_0x39efb9);try{const _0x3c52cb=_0x44c0b1(_0x2e6c4e,{'okdb':_0x6b950e&&_0x6b950e[_0x408434(0x6ff)],'env':_0x6b950e});if(_0x3c52cb&&typeof _0x3c52cb[_0x408434(0x583)]===_0x408434(0x7c4))_0x146648(_0x3c52cb);}catch(_0x42151d){if(_0x42151d&&_0x42151d[_0x408434(0x13a)]===!![]&&_0x42151d[_0x408434(0x30f)]!==_0x408434(0x230)){const _0x1d7f27=new Error(_0x42151d['message']);_0x1d7f27[_0x408434(0x30f)]=_0x408434(0x230);throw _0x1d7f27;}throw _0x42151d;}}const _0x16d449=new Map();function _0x32f755(_0x2598eb,_0x444faf,_0x297761,_0x4b842a,_0x382643,_0x56d22e){const _0x41ba17=_0x41a2,_0x4adca3=_0x118634(_0x2598eb),_0x2579dc=(_0xce23f7['get'](_0x56d22e)||{})[_0x41ba17(0x6ff)]||_0x215e77,_0x2e9423=new AbortController(),_0x249617=(_0xd5c413,..._0x285e17)=>_0x2579dc[_0x41ba17(0x722)](_0x41ba17(0x4f3),_0x41ba17(0x686),_0xd5c413,_0x285e17,![]),_0xdb9c5e={'okdb':_0x2579dc,'env':_0xce23f7[_0x41ba17(0x1bc)](_0x56d22e)||null,'job':_0x4b842a,'jobId':_0x382643,'signal':_0x2e9423['signal'],'heartbeat':()=>_0x249617(_0x41ba17(0x4ac),_0x297761),'markProgress':_0x119796=>_0x249617(_0x41ba17(0x2c6),_0x297761,_0x119796),'log':(_0x3b76ff,_0x2ad96c)=>_0x249617(_0x41ba17(0x3cd),_0x297761,_0x3b76ff,_0x2ad96c)};_0x16d449['set'](_0x297761,{'ctrl':_0x2e9423,'call':_0x249617});const _0x248807=()=>{const _0x160869=_0x41ba17;_0x16d449[_0x160869(0x7ec)](_0x297761);try{_0x249617(_0x160869(0x4a2),_0x297761);}catch{}};let _0x378e13;try{_0x378e13=_0x4adca3(_0x444faf,_0xdb9c5e);}catch(_0x4dae14){_0x248807();throw _0x4dae14;}if(_0x378e13&&typeof _0x378e13['then']===_0x41ba17(0x7c4)){const _0x30f953=_0xcbe5a1(_0x378e13);return _0x378e13[_0x41ba17(0x583)](_0x248807,_0x248807),{'$token':_0x30f953};}return _0x248807(),_0x378e13;}function _0x2f39af(){const _0x28fdec=_0x41a2;for(const [_0x125bb2,_0x15f5c7]of _0x16d449){if(_0x15f5c7[_0x28fdec(0x14f)]['signal'][_0x28fdec(0x475)])continue;let _0x4f93c6;try{_0x4f93c6=_0x15f5c7[_0x28fdec(0x7cd)](_0x28fdec(0x220),_0x125bb2);}catch{continue;}if(_0x4f93c6&&_0x4f93c6[_0x28fdec(0x475)]){const {OKDBError:_0x6fe654}=requireErrors();_0x15f5c7[_0x28fdec(0x14f)][_0x28fdec(0x775)](new _0x6fe654(_0x4f93c6[_0x28fdec(0x18d)],_0x4f93c6[_0x28fdec(0x30f)]));}}}let _0x215e77=null;function _0x36511d(_0x73df02){_0x215e77=_0x73df02;}function _0x4b1e24(_0x5f1d4d,_0x396f6d,_0x2f7310,_0x259f86,_0x11191c,_0x84f9e3,_0x5218b1){const _0x433a55=_0x41a2,_0x36a3f1=_0x118634(_0x5f1d4d),_0x4fee9d=_0xce23f7[_0x433a55(0x1bc)](_0x2f7310);try{const _0x189a42=_0x396f6d?_0x36a3f1(_0x11191c,_0x84f9e3):_0x36a3f1({'env':_0x4fee9d,'okdb':_0x4fee9d&&_0x4fee9d[_0x433a55(0x6ff)],'payload':_0x3dcc83(_0x259f86)},_0x11191c,_0x84f9e3);if(_0x189a42&&typeof _0x189a42[_0x433a55(0x583)]===_0x433a55(0x7c4)){if(_0x84f9e3&&_0x84f9e3[_0x433a55(0x520)]===_0x433a55(0x653))_0x189a42[_0x433a55(0x583)](undefined,()=>{});else{if(_0x5218b1){const _0x437d6e=_0x333a48(_0x189a42);if(_0x437d6e===0x0)return null;return{'$token':_0x437d6e};}else _0x146648(_0x189a42);}}}catch(_0xc87b11){if(_0xc87b11&&_0xc87b11[_0x433a55(0x13a)]===!![]&&_0xc87b11[_0x433a55(0x30f)]!==_0x433a55(0x230)){const _0x4321a7=new Error(_0xc87b11[_0x433a55(0x18d)]);_0x4321a7['code']=_0x433a55(0x230);throw _0x4321a7;}throw _0xc87b11;}return null;}function _0x333a48(_0x1075d7){const _0xe6ecda=_0x41a2;let _0x4df453=_0xe6ecda(0x5a9),_0x4458a9;_0x1075d7[_0xe6ecda(0x583)](_0x3f14c4=>{_0x4df453='ok',_0x4458a9=_0x3f14c4;},_0x236c95=>{const _0x42a05f=_0xe6ecda;_0x4df453=_0x42a05f(0x27d),_0x4458a9=_0x236c95;});for(let _0x569042=0x0;_0x569042<0x64&&_0x4df453==='pending';_0x569042++)process['_tickCallback']();if(_0x4df453==='ok')return 0x0;const _0x4031bb=_0x3d8b18++,_0x45523b={'state':_0x4df453,'value':_0x4458a9};_0x1aaea2['set'](_0x4031bb,_0x45523b);if(_0x4df453==='pending')_0x1075d7['then'](_0x3350c5=>{const _0x368677=_0xe6ecda;_0x45523b[_0x368677(0x1a2)]='ok',_0x45523b['value']=_0x3350c5,_0x31abde();},_0x5650b8=>{const _0xdf8f1f=_0xe6ecda;_0x45523b[_0xdf8f1f(0x1a2)]=_0xdf8f1f(0x27d),_0x45523b[_0xdf8f1f(0x6f0)]=_0x5650b8,_0x31abde();});return _0x4031bb;}function _0xcf354d(_0x415749){const _0x58e073=_0x41a2;let _0x3d4f8d=_0x16c49d[_0x58e073(0x1bc)](_0x415749);return _0x3d4f8d===undefined&&(_0x3d4f8d=_0x35fbee++,_0x16c49d[_0x58e073(0x48c)](_0x415749,_0x3d4f8d),_0x518645[_0x58e073(0x48c)](_0x3d4f8d,{'fn':_0x415749,'refs':0x0})),_0x518645[_0x58e073(0x1bc)](_0x3d4f8d)[_0x58e073(0x559)]++,_0x3d4f8d;}function _0x2c1a21(_0x4de9b1){const _0x1b8f28=_0x41a2,_0x14cfb9=_0x518645['get'](_0x4de9b1);if(!_0x14cfb9)return;--_0x14cfb9[_0x1b8f28(0x559)]<=0x0&&(_0x518645[_0x1b8f28(0x7ec)](_0x4de9b1),_0x16c49d[_0x1b8f28(0x7ec)](_0x14cfb9['fn']));}function _0x118634(_0x1418d8){const _0x567a42=_0x41a2,_0x520238=_0x518645[_0x567a42(0x1bc)](_0x1418d8);if(!_0x520238)throw new Error(_0x567a42(0x4b0)+_0x1418d8);return _0x520238['fn'];}function _0xcbe5a1(_0x80cce9){const _0x41de79=_0x41a2;if(_0x80cce9&&typeof _0x80cce9[_0x41de79(0x583)]===_0x41de79(0x7c4)){const _0x43d826=_0x3d8b18++,_0x1aea24={'state':'pending','value':undefined};return _0x1aaea2[_0x41de79(0x48c)](_0x43d826,_0x1aea24),_0x80cce9[_0x41de79(0x583)](_0x21c24f=>{const _0x67b401=_0x41de79;_0x1aea24[_0x67b401(0x1a2)]='ok',_0x1aea24[_0x67b401(0x6f0)]=_0x21c24f,_0x31abde();},_0xcb489=>{const _0xda9eb1=_0x41de79;_0x1aea24[_0xda9eb1(0x1a2)]=_0xda9eb1(0x27d),_0x1aea24['value']=_0xcb489,_0x31abde();}),_0x43d826;}return 0x0;}let _0x2ba425=()=>{},_0x3c826c=null;function _0x2a7e61(_0x44f1c0,_0x1dd3f9=null){_0x2ba425=_0x44f1c0,_0x3c826c=_0x1dd3f9;}function _0x4c83cb(_0x27275e){return _0x3c826c===_0x27275e;}function _0x31abde(){_0x2ba425();}function _0x1fab02(_0x159145){const _0x20a9b0=_0x41a2,_0x299ad3=_0x1aaea2[_0x20a9b0(0x1bc)](_0x159145);if(!_0x299ad3)return{'state':_0x20a9b0(0x27d),'error':{'message':_0x20a9b0(0x5a7)}};if(_0x299ad3[_0x20a9b0(0x1a2)]===_0x20a9b0(0x5a9))return{'state':_0x20a9b0(0x5a9)};_0x1aaea2[_0x20a9b0(0x7ec)](_0x159145);if(_0x299ad3[_0x20a9b0(0x1a2)]==='ok')return{'state':'ok','value':_0x299ad3[_0x20a9b0(0x6f0)]};const _0x22f244=_0x299ad3[_0x20a9b0(0x6f0)];return{'state':_0x20a9b0(0x27d),'error':{'message':_0x22f244&&_0x22f244[_0x20a9b0(0x18d)]!=null?String(_0x22f244[_0x20a9b0(0x18d)]):String(_0x22f244),'stack':_0x22f244&&_0x22f244[_0x20a9b0(0x575)],'code':_0x22f244&&_0x22f244[_0x20a9b0(0x30f)],'status':_0x22f244&&typeof _0x22f244[_0x20a9b0(0x5d2)]===_0x20a9b0(0x1ce)?_0x22f244[_0x20a9b0(0x5d2)]:undefined,'hold':!!(_0x22f244&&_0x22f244['processorHold']===!![])}};}function _0x4b725b(_0x501930,_0x3f964c){const _0x12835c=_0x41a2;_0x5c40ca[_0x12835c(0x48c)](_0x501930,_0x3f964c);}function _0x1a0841(_0x5d64f9){const _0x10f3b1=_0x41a2;_0x5c40ca[_0x10f3b1(0x7ec)](_0x5d64f9);}let _0x2d8c11=0x0;function _0x2d5013(){return _0x2d8c11>0x0;}function _0x344843(){const _0x2f6e35=_0x41a2;_0x2d8c11++;try{return _0x383f85[_0x2f6e35(0x5b0)](undefined,arguments);}finally{_0x2d8c11--;}}function _0x383f85(_0x18fba6,_0x4bb512,_0x3e11a1,_0x4f239e,_0x2b0bad,_0x1379cc){const _0x3cdd65=_0x41a2;switch(_0x18fba6){case _0x3cdd65(0x61f):return _0xcf354d(_0x4bb512);case'unreg':return _0x2c1a21(_0x4bb512);case _0x3cdd65(0x7cd):{const _0x388833=Array[_0x3cdd65(0x34d)][_0x3cdd65(0x331)][_0x3cdd65(0x7cd)](arguments,0x2),_0x7b659b=_0x118634(_0x4bb512)[_0x3cdd65(0x5b0)](undefined,_0x388833);return _0x7b659b&&typeof _0x7b659b[_0x3cdd65(0x583)]===_0x3cdd65(0x7c4)?_0x146648(_0x7b659b):_0x7b659b;}case'callAsync':{const _0x181458=Array[_0x3cdd65(0x34d)][_0x3cdd65(0x331)]['call'](arguments,0x2),_0x2a8980=_0x118634(_0x4bb512)[_0x3cdd65(0x5b0)](undefined,_0x181458);if(_0x2a8980&&typeof _0x2a8980[_0x3cdd65(0x583)]===_0x3cdd65(0x7c4))return{'$token':_0xcbe5a1(_0x2a8980)};return{'$value':_0x2a8980===undefined?null:_0x2a8980,'$undef':_0x2a8980===undefined};}case _0x3cdd65(0x6dc):{const _0x3322c8=_0x5c40ca[_0x3cdd65(0x1bc)](_0x4bb512);if(_0x3322c8)_0x3322c8[_0x3cdd65(0x1f8)](_0x3e11a1,_0x4f239e);return undefined;}case'log':{const _0x418cd0=_0x5c40ca['get'](_0x4bb512);if(_0x418cd0)_0x418cd0[_0x3cdd65(0x6d7)](_0x3e11a1);return undefined;}case _0x3cdd65(0x560):return _0x4b1e24(_0x4bb512,_0x3e11a1,_0x4f239e,_0x2b0bad,_0x1379cc,arguments[0x6],arguments[0x7]);case'quantum':return _0x3e89b0(_0x4bb512,_0x3e11a1,_0x4f239e);case _0x3cdd65(0x27f):return _0x32f755(_0x4bb512,_0x3e11a1,_0x4f239e,_0x2b0bad,_0x1379cc,arguments[0x6]);case _0x3cdd65(0x73a):return _0x32b3f4[_0x3cdd65(0x5b0)](null,Array[_0x3cdd65(0x34d)][_0x3cdd65(0x331)]['call'](arguments,0x1));case _0x3cdd65(0x7d5):return _0x2d9679(_0x4bb512,_0x3e11a1,_0x4f239e);case _0x3cdd65(0x54d):return _0x1fab02(_0x4bb512);case'fetchJson':{const _0x1e7c90=((async()=>{const _0x1d7c85=_0x3cdd65,_0x4dc4b9=await globalThis['fetch'](_0x4bb512);if(!_0x4dc4b9['ok']){const _0x2a5100=new Error('HTTP\x20'+_0x4dc4b9[_0x1d7c85(0x5d2)]);_0x2a5100[_0x1d7c85(0x30f)]=_0x1d7c85(0x307);throw _0x2a5100;}return _0x4dc4b9['json']();})());return _0x146648(_0x1e7c90)??null;}case _0x3cdd65(0x280):return _0x3629ed(_0x4bb512,_0x3e11a1,_0x4f239e);case _0x3cdd65(0x3f7):return _0x193ebc(_0x4bb512,_0x3e11a1,_0x4f239e);case'stor':return _0x2369b3(_0x4bb512,_0x3e11a1,_0x4f239e);default:throw new Error(_0x3cdd65(0x54a)+_0x18fba6);}}return bridge_1={'inNativeCall':_0x2d5013,'regObject':_0x28abcd,'checkSignals':_0x2f39af,'setCurrentDb':_0x36511d,'forgetDb':_0x19fc98,'storePayload':_0x39630e,'registerEnv':_0x8495d6,'resolvePayload':_0x3dcc83,'bridge':_0x344843,'reg':_0xcf354d,'unreg':_0x2c1a21,'fnOf':_0x118634,'track':_0xcbe5a1,'resolve':_0x1fab02,'registerTarget':_0x4b725b,'unregisterTarget':_0x1a0841,'setKick':_0x2a7e61,'kickOwnedBy':_0x4c83cb},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x4c5dbf=_0x431d06;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x9051c4}=requireErrors(),_0x555b89=requireBridge(),_0x184fe0=new Map();let _0x2c375a=null;function _0x453784(_0x42eeb5){if(_0x2c375a)return;_0x2c375a=_0x42eeb5,_0x42eeb5['setFlushNotify'](_0x2bed56);}function _0x2bed56(){const _0x475a17=_0x41a2,_0x1ff175=_0x2c375a[_0x475a17(0x3ee)]();for(const _0xe8f4c2 of _0x1ff175){const _0xcf3112=_0x184fe0['get'](_0xe8f4c2);_0xcf3112&&(_0x184fe0[_0x475a17(0x7ec)](_0xe8f4c2),_0xcf3112());}}function _0x13b30e(_0x355d1d,_0x3e67fc){const _0x4e4608=_0x41a2;_0x184fe0[_0x4e4608(0x48c)](_0x355d1d,_0x3e67fc);}class _0x50a826{constructor(_0x48da16){const _0x17ab41=_0x41a2;this['db']=_0x48da16,this[_0x17ab41(0x4f3)]=[],this[_0x17ab41(0x205)]=![],this[_0x17ab41(0x1d3)]=![],this[_0x17ab41(0x1a0)]=new Set();}[_0x4c5dbf(0x2ba)](_0x4257d9,_0x16cdef,_0x2978ff,_0x1913b9){const _0x1a024a=_0x4c5dbf;if(_0x555b89['inNativeCall']())try{return Promise[_0x1a024a(0x54d)](this['db']['_call'](_0x4257d9,_0x16cdef,_0x2978ff,_0x1913b9));}catch(_0x518a56){return Promise[_0x1a024a(0x3d4)](_0x518a56);}const _0x495d8d=new Promise((_0x2c862f,_0x1cabd0)=>{const _0x277eb1=_0x1a024a;this[_0x277eb1(0x4f3)]['push']({'item':[_0x4257d9,_0x16cdef,_0x2978ff,_0x1913b9],'resolve':_0x2c862f,'reject':_0x1cabd0});});this[_0x1a024a(0x1a0)][_0x1a024a(0x3a8)](_0x495d8d);const _0x2d5882=()=>this[_0x1a024a(0x1a0)][_0x1a024a(0x7ec)](_0x495d8d);return _0x495d8d[_0x1a024a(0x583)](_0x2d5882,_0x2d5882),!this[_0x1a024a(0x205)]&&(this[_0x1a024a(0x205)]=!![],setImmediate(()=>{const _0x6bc6cd=_0x1a024a;this[_0x6bc6cd(0x205)]=![],this['commit']();})),_0x495d8d;}[_0x4c5dbf(0x7dd)](){const _0x2df68e=_0x4c5dbf;if(!this[_0x2df68e(0x4f3)]['length'])return;if(this['inBatch']){!this[_0x2df68e(0x205)]&&(this[_0x2df68e(0x205)]=!![],setImmediate(()=>{const _0x510df5=_0x2df68e;this[_0x510df5(0x205)]=![],this[_0x510df5(0x7dd)]();}));return;}const _0x1d7ac3=this[_0x2df68e(0x4f3)];this[_0x2df68e(0x4f3)]=[],this[_0x2df68e(0x731)](_0x1d7ac3);}[_0x4c5dbf(0x731)](_0x1362b3){const _0x46569f=_0x4c5dbf;let _0x3ee70a;this[_0x46569f(0x1d3)]=!![];try{_0x3ee70a=this['db'][_0x46569f(0x66d)][_0x46569f(0x396)](_0x1362b3[_0x46569f(0x1d9)](_0x2087db=>_0x2087db[_0x46569f(0x285)]));}catch(_0x19fcbd){this['inBatch']=![];if(_0x1362b3['length']>0x1){for(const _0x4d37b8 of _0x1362b3)this[_0x46569f(0x731)]([_0x4d37b8]);return;}const _0x40f451=_0x9051c4(_0x19fcbd);for(const _0x5f3a20 of _0x1362b3)_0x5f3a20[_0x46569f(0x3d4)](_0x40f451);return;}finally{this[_0x46569f(0x1d3)]=![];}try{this['db'][_0x46569f(0x6bc)]['wake']();}catch{}const [_0x1c9d7b,_0x538616]=_0x3ee70a;_0x13b30e(_0x538616,()=>{const _0x5857ed=_0x46569f;for(let _0x372dba=0x0;_0x372dba<_0x1362b3[_0x5857ed(0x2a9)];_0x372dba++){const _0x18ada=_0x1c9d7b[_0x372dba];if(_0x18ada&&_0x18ada[0x0])_0x1362b3[_0x372dba][_0x5857ed(0x54d)](_0x18ada[0x1]);else _0x1362b3[_0x372dba]['reject'](_0x9051c4(_0x18ada?_0x18ada[0x1]:new Error(_0x5857ed(0x284))));}});}async[_0x4c5dbf(0x423)](){const _0x36107c=_0x4c5dbf;this[_0x36107c(0x7dd)]();while(this[_0x36107c(0x1a0)][_0x36107c(0x74f)]){await Promise[_0x36107c(0x6cb)]([...this[_0x36107c(0x1a0)]]),this[_0x36107c(0x7dd)]();}let _0x7e193;try{_0x7e193=this['db'][_0x36107c(0x66d)]['flushTicket']();}catch{return;}await new Promise(_0x2213e1=>_0x13b30e(_0x7e193,_0x2213e1));}}return writebatch={'install':_0x453784,'WriteBatch':_0x50a826,'whenSettled':_0x13b30e},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x462bf4=_0x431d06;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x303dea=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x1d1f1a{constructor(_0x1bc799){const _0xe95d2a=_0x41a2;this['native']=_0x1bc799,this['timer']=null,this[_0xe95d2a(0x28d)]=null,this[_0xe95d2a(0x1e2)]=![],this[_0xe95d2a(0x3d7)]=![],this['pumping']=![],this['dirty']=![],this[_0xe95d2a(0x47f)]=0x0,this[_0xe95d2a(0x7ba)]=[],this[_0xe95d2a(0xf1)]=[];}[_0x462bf4(0x519)](_0x2f415d){return new Promise(_0x1a956b=>{const _0x107647=_0x41a2,_0x446d80=setTimeout(_0xc1d997,_0x2f415d);function _0xc1d997(){clearTimeout(_0x446d80),_0x1a956b();}this[_0x107647(0xf1)]['push'](_0xc1d997);});}[_0x462bf4(0x798)](){const _0x42b2cd=_0x462bf4;if(this[_0x42b2cd(0xf1)]['length']===0x0)return;const _0x4d8d76=this['turnWaiters'];this[_0x42b2cd(0xf1)]=[];for(const _0x42fbc8 of _0x4d8d76)_0x42fbc8();}[_0x462bf4(0x432)](){this['stopped']=![],this['wake']();}[_0x462bf4(0x4ff)](){const _0x49e06e=_0x462bf4;this[_0x49e06e(0x3d7)]=!![];if(this['timer'])clearTimeout(this[_0x49e06e(0x35b)]);if(this[_0x49e06e(0x28d)])clearImmediate(this[_0x49e06e(0x28d)]);this[_0x49e06e(0x35b)]=this[_0x49e06e(0x28d)]=null,this['_settleWaiters']();}['wake'](){const _0x13c804=_0x462bf4;if(this['stopped']||this[_0x13c804(0x28d)])return;this[_0x13c804(0x35b)]&&(clearTimeout(this['timer']),this['timer']=null),this['immediate']=setImmediate(()=>{const _0x140a08=_0x13c804;this['immediate']=null,this[_0x140a08(0x774)]();});}[_0x462bf4(0x774)](){const _0x4f318f=_0x462bf4;if(this['stopped']||this[_0x4f318f(0x210)]){this['dirty']=!![];return;}this[_0x4f318f(0x210)]=!![];let _0x141013;try{this[_0x4f318f(0x47f)]++,_0x141013=this[_0x4f318f(0x24f)]['pump']();if(this['afterTurn'])this[_0x4f318f(0x53f)]();}catch(_0x1fa3dd){_0x141013=_0x303dea,process[_0x4f318f(0x5ab)](()=>{throw _0x1fa3dd;});}finally{this[_0x4f318f(0x210)]=![],this[_0x4f318f(0x798)]();}if(this['stopped']||_0x141013===-0x2)return;if(this[_0x4f318f(0x6f8)])return this[_0x4f318f(0x6f8)]=![],this[_0x4f318f(0x4c1)]();const _0x2250f6=_0x141013<0x0?_0x303dea:Math['max'](0x0,Math[_0x4f318f(0x165)](_0x141013,_0x303dea));if(_0x2250f6<=0x0)return this[_0x4f318f(0x4c1)]();this[_0x4f318f(0x35b)]=setTimeout(()=>{const _0x52c30d=_0x4f318f;this[_0x52c30d(0x35b)]=null,this[_0x52c30d(0x774)]();},Math['ceil'](_0x2250f6));if(this[_0x4f318f(0x35b)]['unref'])this[_0x4f318f(0x35b)]['unref']();}}return pump={'Pumper':_0x1d1f1a},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x15d5a3=_0x431d06;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x79cbba=Symbol[_0x15d5a3(0x268)]('@harperdb/extended-iterable:skip'),_0x5ccd91={'value':null,'done':!![]},_0xd4e9be={'value':null,'done':!![]};!Symbol[_0x15d5a3(0xdd)]&&(Symbol[_0x15d5a3(0xdd)]=Symbol[_0x15d5a3(0x268)](_0x15d5a3(0x1cd)));const _0x584701={};class _0x56b41f{constructor(_0x117580){const _0x57882d=_0x15d5a3;_0x117580&&(this[_0x57882d(0x19e)]=_0x117580[Symbol[_0x57882d(0x6b7)]][_0x57882d(0x7d2)](_0x117580));}[_0x15d5a3(0x1d9)](_0x4f3dc4){let _0x3baec7=this,_0x2b8b48=new _0x56b41f();return _0x2b8b48['iterate']=(_0xa40bf3=_0x584701)=>{const _0x11c7bb=_0x41a2,{async:_0x14f406}=_0xa40bf3;let _0x3c8758=_0x3baec7[_0x14f406?Symbol['asyncIterator']:Symbol[_0x11c7bb(0x6b7)]](_0xa40bf3);if(!_0x14f406)_0x3baec7[_0x11c7bb(0x337)]=!![];let _0x184eb3=-0x1;return{'next'(_0x17ecc8){const _0x417fd6=_0x11c7bb;let _0xae1a81;do{let _0x2bb766;try{if(_0x17ecc8)_0x2bb766=_0x17ecc8,_0x17ecc8=null;else{_0x184eb3++,_0x2bb766=_0x3c8758['next']();if(_0x2bb766['then'])return!_0x14f406&&this[_0x417fd6(0x13e)](new Error(_0x417fd6(0x1ac))),_0x2bb766['then'](_0x2533ba=>this[_0x417fd6(0x133)](_0x2533ba),_0x80221=>{const _0x592f76=_0x417fd6;return this[_0x592f76(0x13e)](_0x80221);});}if(_0x2bb766[_0x417fd6(0x248)]===!![]){this[_0x417fd6(0x248)]=!![];if(_0x2b8b48[_0x417fd6(0x32e)])_0x2b8b48[_0x417fd6(0x32e)]();return _0x2bb766;}try{_0xae1a81=_0x4f3dc4[_0x417fd6(0x7cd)](_0x3baec7,_0x2bb766['value'],_0x184eb3);if(_0xae1a81&&_0xae1a81[_0x417fd6(0x583)]&&_0x14f406)return _0xae1a81['then'](_0x221575=>_0x221575===_0x79cbba?this[_0x417fd6(0x133)]():{'value':_0x221575},_0x4f9701=>{const _0x1c91d4=_0x417fd6;if(_0xa40bf3[_0x1c91d4(0x780)])_0x4f9701[_0x1c91d4(0x1da)]=!![];return this['throw'](_0x4f9701);});}catch(_0x3f92af){if(_0xa40bf3['continueOnRecoverableError'])_0x3f92af[_0x417fd6(0x1da)]=!![];throw _0x3f92af;}}catch(_0x1d1895){if(_0x2b8b48[_0x417fd6(0x4fb)])try{_0xae1a81=_0x2b8b48[_0x417fd6(0x4fb)](_0x1d1895,_0x184eb3);}catch(_0x3be544){return this[_0x417fd6(0x13e)](_0x3be544);}else return this['throw'](_0x1d1895);}}while(_0xae1a81===_0x79cbba);if(_0xae1a81===_0x5ccd91)return this[_0x417fd6(0x7b4)]();return{'value':_0xae1a81};},'return'(_0x3fafc7){const _0x4da80f=_0x11c7bb;if(!this['done']){_0xd4e9be[_0x4da80f(0x6f0)]=_0x3fafc7,this[_0x4da80f(0x248)]=!![];if(_0x2b8b48['onDone'])_0x2b8b48['onDone']();_0x3c8758['return']?.();}return _0xd4e9be;},'throw'(_0x3ae981){const _0x45f49d=_0x11c7bb;if(_0x3ae981['continueIteration']){if(_0x2b8b48[_0x45f49d(0x440)])try{return{'value':_0x2b8b48['returnRecoverableErrors'](_0x3ae981)};}catch(_0x18d8e3){this['return']();throw _0x18d8e3;}if(_0xa40bf3[_0x45f49d(0x780)])throw _0x3ae981;}this[_0x45f49d(0x7b4)]();throw _0x3ae981;}};},_0x2b8b48;}[Symbol[_0x15d5a3(0xdd)]](_0x3dfe71){const _0x4705d4=_0x15d5a3;if(_0x3dfe71)_0x3dfe71={..._0x3dfe71,'async':!![]};else _0x3dfe71={'async':!![]};return this[_0x4705d4(0x6b7)]=this['iterate'](_0x3dfe71);}[Symbol[_0x15d5a3(0x6b7)]](_0xca7980){const _0x49513e=_0x15d5a3;return this[_0x49513e(0x6b7)]=this[_0x49513e(0x19e)](_0xca7980);}[_0x15d5a3(0x587)](_0xde1bbc){const _0x245d1f=_0x15d5a3;let _0x24d7e4=this[_0x245d1f(0x1d9)](_0x4eca1f=>{const _0x163bdc=_0x245d1f;let _0x8888d5=_0xde1bbc(_0x4eca1f);if(_0x8888d5?.[_0x163bdc(0x583)])return _0x8888d5[_0x163bdc(0x583)](_0x307929=>_0x307929?_0x4eca1f:_0x79cbba);else return _0x8888d5?_0x4eca1f:_0x79cbba;}),_0x365d09=_0x24d7e4['iterate'];return _0x24d7e4[_0x245d1f(0x19e)]=(_0xe9f156=_0x584701)=>{if(_0xe9f156['continueOnRecoverableError'])_0xe9f156={..._0xe9f156,'continueOnRecoverableError':![]};return _0x365d09(_0xe9f156);},_0x24d7e4;}['forEach'](_0x1631d7){const _0x31fd0d=_0x15d5a3;let _0x463311=this[_0x31fd0d(0x6b7)]=this[_0x31fd0d(0x19e)](),_0x3ad856;while((_0x3ad856=_0x463311[_0x31fd0d(0x133)]())[_0x31fd0d(0x248)]!==!![]){_0x1631d7(_0x3ad856[_0x31fd0d(0x6f0)]);}}[_0x15d5a3(0x70a)](_0x1e86e1){const _0x42c4c8=_0x15d5a3;let _0x4778b6=new _0x56b41f();return _0x4778b6[_0x42c4c8(0x19e)]=(_0x43b2e0=_0x584701)=>{let _0x29b252=this['iterator']=this['iterate'](_0x43b2e0),_0x1a3a79=!![];function _0x207a81(_0x40e7e9){const _0x37e811=_0x41a2;if(_0x1a3a79)try{_0x1a3a79=![],_0x29b252=_0x1e86e1[_0x43b2e0[_0x37e811(0xde)]?Symbol[_0x37e811(0xdd)]:Symbol[_0x37e811(0x6b7)]](),_0x40e7e9=_0x29b252[_0x37e811(0x133)]();if(_0x4778b6[_0x37e811(0x32e)]){if(_0x40e7e9[_0x37e811(0x583)]){if(!_0x43b2e0[_0x37e811(0xde)])throw new Error(_0x37e811(0x1ac));_0x40e7e9['then'](_0x586c38=>{const _0x22305e=_0x37e811;if(_0x586c38[_0x22305e(0x248)]())_0x4778b6['onDone']();},_0x56fd63=>{const _0x4020a0=_0x37e811;this[_0x4020a0(0x7b4)]();throw _0x56fd63;});}else{if(_0x40e7e9['done'])_0x4778b6[_0x37e811(0x32e)]();}}}catch(_0x35d404){this['throw'](_0x35d404);}else{if(_0x4778b6[_0x37e811(0x32e)])_0x4778b6['onDone']();}return _0x40e7e9;}return{'next'(){const _0x5595b6=_0x41a2;try{let _0x2ef5bf=_0x29b252[_0x5595b6(0x133)]();if(_0x2ef5bf[_0x5595b6(0x583)]){if(!_0x43b2e0[_0x5595b6(0xde)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x2ef5bf['then'](_0x5052cd=>{const _0x2b4e5a=_0x5595b6;if(_0x5052cd[_0x2b4e5a(0x248)])return _0x207a81(_0x5052cd);return _0x5052cd;});}if(_0x2ef5bf[_0x5595b6(0x248)])return _0x207a81(_0x2ef5bf);return _0x2ef5bf;}catch(_0x5483df){this['throw'](_0x5483df);}},'return'(_0x3464da){const _0x1dc2df=_0x41a2;if(!this[_0x1dc2df(0x248)]){_0xd4e9be[_0x1dc2df(0x6f0)]=_0x3464da,this['done']=!![];if(_0x4778b6[_0x1dc2df(0x32e)])_0x4778b6[_0x1dc2df(0x32e)]();_0x29b252[_0x1dc2df(0x7b4)]();}return _0xd4e9be;},'throw'(_0x5cbefa){if(_0x43b2e0['continueOnRecoverableError'])throw _0x5cbefa;this['return']();throw _0x5cbefa;}};},_0x4778b6;}[_0x15d5a3(0x43b)](_0x49e277){let _0x272a73=new _0x56b41f();return _0x272a73['iterate']=(_0x31733e=_0x584701)=>{const _0x493af4=_0x41a2;let _0x251e2e=this[_0x493af4(0x6b7)]=this[_0x493af4(0x19e)](_0x31733e),_0x41397c;return{'next'(_0x25d32a){const _0x22e83b=_0x493af4;try{do{if(_0x41397c){let _0x49357a;if(_0x25d32a)_0x49357a=_0x25d32a,_0x25d32a=undefined;else _0x49357a=_0x41397c[_0x22e83b(0x133)]();if(_0x49357a[_0x22e83b(0x583)]){if(!_0x31733e[_0x22e83b(0xde)])throw new Error(_0x22e83b(0x1ac));return _0x49357a[_0x22e83b(0x583)](_0x168901=>this[_0x22e83b(0x133)](_0x168901));}if(!_0x49357a[_0x22e83b(0x248)])return _0x49357a;}let _0x586dc7;if(_0x25d32a!=undefined)_0x586dc7=_0x25d32a,_0x25d32a=undefined;else _0x586dc7=_0x251e2e[_0x22e83b(0x133)]();if(_0x586dc7['then']){if(!_0x31733e[_0x22e83b(0xde)])throw new Error(_0x22e83b(0x1ac));return _0x41397c=undefined,_0x586dc7['then'](_0x439b2c=>this[_0x22e83b(0x133)](_0x439b2c));}if(_0x586dc7[_0x22e83b(0x248)]){if(_0x272a73['onDone'])_0x272a73[_0x22e83b(0x32e)]();return _0x586dc7;}try{let _0x3cfbc0=_0x49e277(_0x586dc7[_0x22e83b(0x6f0)]);if(_0x3cfbc0?.[_0x22e83b(0x583)]){if(!_0x31733e[_0x22e83b(0xde)])throw new Error(_0x22e83b(0x1ac));return _0x3cfbc0['then'](_0x5b5f5d=>{const _0x875899=_0x22e83b;return Array[_0x875899(0x17d)](_0x5b5f5d)||_0x5b5f5d instanceof _0x56b41f?(_0x41397c=_0x5b5f5d[Symbol[_0x875899(0x6b7)]](),this[_0x875899(0x133)]()):(_0x41397c=null,{'value':_0x5b5f5d});},_0xd299ec=>{const _0x221340=_0x22e83b;if(_0x31733e[_0x221340(0x780)])_0xd299ec['continueIteration']=!![];this[_0x221340(0x13e)](_0xd299ec);});}if(Array[_0x22e83b(0x17d)](_0x3cfbc0)||_0x3cfbc0 instanceof _0x56b41f)_0x41397c=_0x3cfbc0[Symbol[_0x22e83b(0x6b7)]]();else return _0x41397c=null,{'value':_0x3cfbc0};}catch(_0x16b5f7){if(_0x31733e[_0x22e83b(0x780)])_0x16b5f7[_0x22e83b(0x1da)]=!![];throw _0x16b5f7;}}while(!![]);}catch(_0x334c93){this[_0x22e83b(0x13e)](_0x334c93);}},'return'(){const _0x3c9db0=_0x493af4;if(_0x272a73['onDone'])_0x272a73['onDone']();if(_0x41397c)_0x41397c[_0x3c9db0(0x7b4)]();return _0x251e2e[_0x3c9db0(0x7b4)]();},'throw'(_0x398396){const _0x351619=_0x493af4;if(_0x31733e[_0x351619(0x780)])throw _0x398396;if(_0x272a73['onDone'])_0x272a73[_0x351619(0x32e)]();if(_0x41397c)_0x41397c['return']();this[_0x351619(0x7b4)]();throw _0x398396;}};},_0x272a73;}[_0x15d5a3(0x331)](_0xa0756c,_0x1a0260){const _0x31590b=_0x15d5a3;let _0x59822e=this['map']((_0x227d0f,_0x320556)=>{const _0x33f6fe=_0x41a2;if(_0x320556<_0xa0756c)return _0x79cbba;if(_0x320556>=_0x1a0260)return _0x5ccd91[_0x33f6fe(0x6f0)]=_0x227d0f,_0x5ccd91;return _0x227d0f;});return _0x59822e[_0x31590b(0x4fb)]=(_0x5d8775,_0xffb80a)=>{if(_0xffb80a<_0xa0756c)return _0x79cbba;if(_0xffb80a>=_0x1a0260)return _0x5ccd91;throw _0x5d8775;},_0x59822e;}[_0x15d5a3(0x11c)](_0x38cacf){const _0x5c8fb6=_0x15d5a3;if(typeof _0x38cacf!==_0x5c8fb6(0x7c4))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x2d2641=this['map'](_0x2c0c05=>{return _0x2c0c05;}),_0x5850e1=_0x2d2641[_0x5c8fb6(0x19e)];return _0x2d2641[_0x5c8fb6(0x19e)]=(_0x225f8e=_0x584701)=>{return _0x5850e1({..._0x225f8e,'continueOnRecoverableError':!![]});},_0x2d2641[_0x5c8fb6(0x440)]=_0x38cacf,_0x2d2641;}[_0x15d5a3(0x133)](){const _0x2034d5=_0x15d5a3;if(!this[_0x2034d5(0x6b7)])this[_0x2034d5(0x6b7)]=this['iterate']();return this[_0x2034d5(0x6b7)][_0x2034d5(0x133)]();}['toJSON'](){const _0x55e884=_0x15d5a3;if(this[_0x55e884(0x5b9)]&&this['asArray'][_0x55e884(0x64d)])return this[_0x55e884(0x5b9)];const _0x1c9e6f=new Error('Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray');_0x1c9e6f[_0x55e884(0x3ce)]=this['asArray'];throw _0x1c9e6f;}get[_0x15d5a3(0x5b9)](){const _0x45476a=_0x15d5a3;if(this[_0x45476a(0x430)])return this[_0x45476a(0x430)];let _0x3fd3f5=new Promise((_0x2c7cec,_0x39cfac)=>{const _0xbc4ec=_0x45476a;let _0x2adf00=this[_0xbc4ec(0x19e)](!![]),_0x396b70=[],_0x1f71ea=this;Object['defineProperty'](_0x396b70,_0xbc4ec(0x656),{'value':_0x1f71ea});function _0x4efa9a(_0x3b9848){const _0x38bc73=_0xbc4ec;while(_0x3b9848['done']!==!![]){if(_0x3b9848[_0x38bc73(0x583)])return _0x3b9848[_0x38bc73(0x583)](_0x4efa9a);else _0x396b70[_0x38bc73(0x540)](_0x3b9848[_0x38bc73(0x6f0)]);_0x3b9848=_0x2adf00[_0x38bc73(0x133)]();}_0x2c7cec(_0x1f71ea[_0x38bc73(0x430)]=_0x396b70);}_0x4efa9a(_0x2adf00[_0xbc4ec(0x133)]());});return _0x3fd3f5[_0x45476a(0x656)]=this,this[_0x45476a(0x430)]||(this[_0x45476a(0x430)]=_0x3fd3f5);}[_0x15d5a3(0x3b8)](){const _0x49e82d=_0x15d5a3;return this[_0x49e82d(0x5b9)];}['at'](_0x1159bd){for(let _0x7955ca of this){if(_0x1159bd--===0x0)return _0x7955ca;}}}return _0x56b41f[_0x15d5a3(0x34d)][_0x15d5a3(0x2ea)]=_0x5ccd91,dist$1['ExtendedIterable']=_0x56b41f,dist$1[_0x15d5a3(0x4b2)]=_0x79cbba,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x214ed5=_0x431d06;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x41b3f0}=requireDist$1(),_0x2af1b1=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x37090a=Math['min'](_0x2af1b1,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x44e379=new Set([_0x214ed5(0x1bd),_0x214ed5(0x372),_0x214ed5(0x787),_0x214ed5(0xe4)]),_0x435bc5=Math[_0x214ed5(0x165)](_0x37090a,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x27b44a=0x4,_0x39f5d6=(_0x16fea8,_0x1fd2dd=_0x2af1b1)=>Math[_0x214ed5(0x165)](_0x1fd2dd,_0x16fea8*_0x27b44a),_0x1fb7c1={'value':undefined,'done':!![]};function _0x430693(_0x3ddbe6){const _0x5d52ce=new _0x41b3f0();return _0x5d52ce['iterate']=()=>{let _0x231bae=0x0;return{'next'(){const _0x2433ce=_0x41a2;return _0x231bae<_0x3ddbe6[_0x2433ce(0x2a9)]?{'value':_0x3ddbe6[_0x231bae++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x57a4a6=_0x41a2;return _0x231bae=_0x3ddbe6[_0x57a4a6(0x2a9)],{'value':undefined,'done':!![]};},'throw'(){const _0x514fd2=_0x41a2;return _0x231bae=_0x3ddbe6[_0x514fd2(0x2a9)],{'value':undefined,'done':!![]};}};},_0x5d52ce;}const _0x57fa59=_0x127227=>typeof _0x127227==='number'&&!Number['isNaN'](_0x127227)?Math[_0x214ed5(0x380)](0x0,Math['ceil'](_0x127227)):Infinity,_0x494551=_0x3c66c0=>typeof _0x3c66c0===_0x214ed5(0x1ce)?Math[_0x214ed5(0x380)](0x0,Math[_0x214ed5(0x26a)](_0x3c66c0))||0x0:0x0;function _0x5f84b7(_0x20c38e,_0x5ca5b6,_0x3e83bc,_0x5c5b6d={}){const _0x1a387c=_0x214ed5,_0x2dbf66=new _0x41b3f0(),_0x5ca85f=(_0x5c5b6d['limitOf']||_0x57fa59)(_0x5ca5b6['limit']),_0x10225a=_0x5c5b6d[_0x1a387c(0x33f)]?_0x37090a:_0x2af1b1,_0x5ac6fd=_0x5c5b6d[_0x1a387c(0x2bb)]||((_0x1759eb,_0x7ac0fc)=>{const _0x51d897=_0x1a387c;_0x1759eb['start']=_0x7ac0fc,_0x1759eb[_0x51d897(0x6e0)]=!![],delete _0x1759eb['offset'];});let _0x504333=null;if(_0x5c5b6d[_0x1a387c(0x3ca)]){const _0x337813={..._0x5ca5b6,'limit':Math[_0x1a387c(0x165)](_0x435bc5,_0x5ca85f)};_0x504333={'rows':_0x20c38e(_0x337813),'limit':_0x337813[_0x1a387c(0x393)]};const _0x5e7c96=_0x504333;queueMicrotask(()=>{const _0x33c1f6=_0x1a387c;_0x5e7c96[_0x33c1f6(0x485)]=!![];});}return _0x2dbf66[_0x1a387c(0x19e)]=()=>{const _0x1a5aea=_0x1a387c;let _0x2c3cac=[],_0x467651=0x0,_0x19e139=0x0,_0x318fd2,_0x3a08eb=![],_0xb07e60=![],_0x5c23e2=_0x435bc5;if(_0x504333&&!_0x504333['dropped']&&!_0x504333[_0x1a5aea(0x460)]){_0x504333[_0x1a5aea(0x460)]=!![],_0x2c3cac=_0x504333[_0x1a5aea(0x33f)],_0x3a08eb=!![],_0x5c23e2=_0x39f5d6(_0x5c23e2,_0x10225a);if(_0x2c3cac[_0x1a5aea(0x2a9)]<_0x504333[_0x1a5aea(0x393)])_0xb07e60=!![];if(_0x2c3cac[_0x1a5aea(0x2a9)])_0x318fd2=_0x3e83bc(_0x2c3cac[_0x2c3cac['length']-0x1]);}const _0x1c8ce3=()=>{const _0x3a161f=_0x1a5aea;if(_0xb07e60)return;const _0xcc371f=_0x5ca85f-_0x19e139;if(_0xcc371f<=0x0){_0xb07e60=!![],_0x2c3cac=[];return;}const _0x1a8b50={..._0x5ca5b6,'limit':Math['min'](_0x5c23e2,_0xcc371f)};if(_0x3a08eb)_0x5ac6fd(_0x1a8b50,_0x318fd2);_0x3a08eb=!![],_0x5c23e2=_0x39f5d6(_0x5c23e2,_0x10225a),_0x2c3cac=_0x20c38e(_0x1a8b50),_0x467651=0x0;if(_0x2c3cac[_0x3a161f(0x2a9)]<_0x1a8b50[_0x3a161f(0x393)])_0xb07e60=!![];if(_0x2c3cac[_0x3a161f(0x2a9)])_0x318fd2=_0x3e83bc(_0x2c3cac[_0x2c3cac[_0x3a161f(0x2a9)]-0x1]);};return{'next'(){const _0x239767=_0x1a5aea;if(_0x467651>=_0x2c3cac['length'])_0x1c8ce3();if(_0x467651>=_0x2c3cac[_0x239767(0x2a9)])return{'value':undefined,'done':!![]};return _0x19e139++,{'value':_0x2c3cac[_0x467651++],'done':![]};},'return'(){return _0xb07e60=!![],_0x2c3cac=[],{'value':undefined,'done':!![]};},'throw'(){return _0xb07e60=!![],_0x2c3cac=[],{'value':undefined,'done':!![]};}};},_0x2dbf66;}function _0x3dde8a(_0x34dccb,_0x28038a,_0x36c831,_0x47ce65,_0x251cd3={}){const _0x46c6d3=_0x214ed5,_0x1f4f25=(_0x251cd3[_0x46c6d3(0x426)]||_0x57fa59)(_0x47ce65&&_0x47ce65['limit']),_0xb03544=_0x44e379[_0x46c6d3(0x614)](_0x28038a)?_0x37090a:_0x2af1b1,_0xaa99c9=(_0x251cd3[_0x46c6d3(0x347)]||_0x494551)(_0x47ce65&&_0x47ce65['offset']),_0x382a01=(_0xc490bf,_0x9189e2,_0x27187c)=>{const _0x21bae7=_0x46c6d3,_0x277a44=_0x1f4f25-_0x9189e2,_0x12fb83=Math[_0x21bae7(0x165)](_0x27187c,_0x277a44),_0x3bbfbf={'limit':_0x12fb83,'offset':_0xaa99c9+_0x9189e2},_0x38e90d=_0x34dccb(_0x21bae7(0x630),[_0xc490bf,_0x28038a,_0x12fb83===_0x277a44?Infinity:_0x12fb83,..._0x36c831(_0x3bbfbf)]);if(_0x38e90d[0x0]===-0x1){const _0x18549e={'offset':_0xaa99c9+_0x9189e2};if(_0x277a44!==Infinity)_0x18549e[_0x21bae7(0x393)]=_0x277a44;return{'pin':0x0,'rows':_0x34dccb(_0x28038a,_0x36c831(_0x18549e)),'raw':Infinity,'eager':!![]};}return{'pin':_0x38e90d[0x0],'rows':_0x38e90d[0x1],'raw':_0x38e90d[0x2]};},_0x48d8f4=_0x2c8cd8=>{const _0x304b7f=_0x46c6d3;if(_0x2c8cd8)_0x34dccb(_0x304b7f(0xbc),[_0x2c8cd8]);};function _0x2e6a46(_0x13261b,_0x4eb533,_0x1bf472){let _0xf2e53f=0x0,_0x1cd6b7=[],_0x1d6c6d=0x0,_0x46df2e=_0x13261b,_0xe875e7=_0x435bc5,_0x538feb=_0x1f4f25-_0x13261b<=0x0;if(_0x1bf472)({buf:_0x1cd6b7,pos:_0x1d6c6d,consumed:_0x46df2e,size:_0xe875e7,exhausted:_0x538feb}=_0x1bf472);const _0x379ff5=_0x3c6c4a=>{const _0x37cbb9=_0x41a2;_0xf2e53f=_0x3c6c4a[_0x37cbb9(0x487)],_0x1cd6b7=_0x3c6c4a[_0x37cbb9(0x33f)],_0x1d6c6d=0x0,_0x46df2e+=_0x3c6c4a[_0x37cbb9(0x29c)],_0xe875e7=_0x39f5d6(_0xe875e7,_0xb03544);if(!_0xf2e53f)_0x538feb=!![];};if(_0x4eb533)_0x379ff5(_0x4eb533);const _0x72a416=()=>{const _0x51d8ff=_0xf2e53f;_0xf2e53f=0x0,_0x48d8f4(_0x51d8ff);},_0x39e898={'next'(){const _0x49d9bd=_0x41a2;while(_0x1d6c6d>=_0x1cd6b7[_0x49d9bd(0x2a9)]){if(_0x538feb||_0x1f4f25-_0x46df2e<=0x0)return _0x538feb=!![],_0x72a416(),_0x1fb7c1;try{_0x379ff5(_0x382a01(_0xf2e53f,_0x46df2e,_0xe875e7));}catch(_0x33fabf){_0xf2e53f=0x0,_0x538feb=!![],_0x1cd6b7=[];throw _0x33fabf;}}return{'value':_0x1cd6b7[_0x1d6c6d++],'done':![]};},'return'(){return _0x72a416(),_0x1fb7c1;},'throw'(){return _0x72a416(),_0x1fb7c1;},'resumed'(){return _0x2e6a46(0x0,null,{'buf':_0x1cd6b7,'pos':_0x1d6c6d,'consumed':_0x46df2e,'size':_0xe875e7,'exhausted':_0x538feb});},[Symbol['iterator']](){return this;}};return _0x39e898;}function _0x367489(){if(_0x1f4f25<=0x0)return null;const _0x1e3e74=_0x382a01(0x0,0x0,_0x435bc5);return queueMicrotask(()=>{const _0x2e39df=_0x41a2;!_0x1e3e74[_0x2e39df(0x460)]&&(_0x1e3e74['dropped']=!![],_0x48d8f4(_0x1e3e74[_0x2e39df(0x487)]));}),_0x1e3e74;}return{'source':_0x2e6a46,'prefetch':_0x367489};}function _0x24cb9a(_0x5ac26c){const _0x5b2eb1=_0x214ed5;if(!_0x5ac26c||_0x5ac26c[_0x5b2eb1(0x460)]||_0x5ac26c['dropped'])return null;return _0x5ac26c[_0x5b2eb1(0x460)]=!![],_0x5ac26c;}return iterable={'fromArray':_0x430693,'chunkedRange':_0x5f84b7,'pinnedChunks':_0x3dde8a,'claimPrefetch':_0x24cb9a,'lmdbLimit':_0x57fa59,'lmdbOffset':_0x494551,'CHUNK':_0x2af1b1,'ROW_CHUNK':_0x37090a,'FIRST':_0x435bc5},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x4187f7=_0x431d06;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x2b38ac}=requireIterable();class _0x4ad141{constructor(_0x25e199,_0x5a9a9d='',_0x4dfdd0={},_0x1d6761=null){const _0xe8042e=_0x41a2;this[_0xe8042e(0xf7)]=_0x25e199,this[_0xe8042e(0x5e6)]=_0x5a9a9d,this[_0xe8042e(0x705)]=!!(_0x4dfdd0&&_0x4dfdd0[_0xe8042e(0x705)]),this[_0xe8042e(0x342)]=!!(_0x4dfdd0&&_0x4dfdd0[_0xe8042e(0x342)]),this[_0xe8042e(0x4dc)]=_0x1d6761||this,this[_0xe8042e(0x102)]=null;}get[_0x4187f7(0x6f9)](){return this['dupSort']?!![]:this['useVersions']?'v':![];}['_n'](_0x50dfcf,_0x6575c1){const _0x1f0502=_0x4187f7;return this['_env'][_0x1f0502(0x6ff)][_0x1f0502(0x722)](_0x1f0502(0x29c),this['_env'][_0x1f0502(0x5e6)],_0x50dfcf,[this['name'],this[_0x1f0502(0x6f9)],..._0x6575c1],!![]);}['_read'](_0x2fcde3,_0x20c7b9){const _0x140cd6=_0x4187f7;return this[_0x140cd6(0xf7)]['okdb'][_0x140cd6(0x722)](_0x140cd6(0x29c),this['_env']['name'],_0x2fcde3,[this[_0x140cd6(0x5e6)],this[_0x140cd6(0x6f9)],..._0x20c7b9],![]);}[_0x4187f7(0x179)](_0x4258a2){const _0x4bbb54=_0x4187f7,_0x4502e0=this[_0x4bbb54(0xf7)][_0x4bbb54(0x6cf)];if(_0x4502e0)_0x4502e0[_0x4bbb54(0x540)]({'sub':this[_0x4bbb54(0x5e6)],'dup':this['_dupArg'],..._0x4258a2});else this[_0x4bbb54(0xf7)][_0x4bbb54(0x6ff)][_0x4bbb54(0x722)](_0x4bbb54(0x29c),this[_0x4bbb54(0xf7)][_0x4bbb54(0x5e6)],'batch',[[{'sub':this[_0x4bbb54(0x5e6)],'dup':this[_0x4bbb54(0x6f9)],..._0x4258a2}]],!![]);}[_0x4187f7(0x1bc)](_0x4062f8){const _0x3a00b7=_0x4187f7;return this[_0x3a00b7(0x4bc)]('get',[_0x4062f8]);}[_0x4187f7(0x153)](_0xed959f){const _0xd43bd2=_0x4187f7;if(this['useVersions'])return this[_0xd43bd2(0x4bc)](_0xd43bd2(0x153),[_0xed959f]);const _0x5533f4=this[_0xd43bd2(0x1bc)](_0xed959f);return _0x5533f4===undefined?undefined:{'value':_0x5533f4};}[_0x4187f7(0x2d8)](_0x269244){const _0x3caec3=_0x4187f7;return this[_0x3caec3(0x4bc)](_0x3caec3(0x591),[_0x269244]);}['getBinary'](_0x4b1d07){const _0x1feb68=_0x4187f7;return this[_0x1feb68(0x1bc)](_0x4b1d07);}[_0x4187f7(0x1bd)](_0x46ef1e={}){const _0x576eeb=_0x4187f7,_0x55782d=this[_0x576eeb(0x4bc)](_0x576eeb(0x1bd),[_0x46ef1e]),_0x39e767=_0x46ef1e[_0x576eeb(0x4ee)]===![],_0x2bf895=_0x46ef1e[_0x576eeb(0x5e1)]===![];return _0x2b38ac(_0x55782d[_0x576eeb(0x1d9)](([_0x509714,_0x13a927,_0x124fd6])=>{if(_0x39e767)return _0x509714;if(_0x2bf895)return _0x13a927;return _0x124fd6===undefined?{'key':_0x509714,'value':_0x13a927}:{'key':_0x509714,'value':_0x13a927,'version':_0x124fd6};}));}['getKeys'](_0x5aeb0e={}){const _0x25e28b=_0x4187f7;return _0x2b38ac(this[_0x25e28b(0x4bc)]('getRange',[_0x5aeb0e])[_0x25e28b(0x1d9)](([_0x2d9b54])=>_0x2d9b54));}[_0x4187f7(0x4dd)](_0x481b36,_0x1f0b22={}){const _0x385b2b=_0x4187f7,_0x4dcd5e=this[_0x385b2b(0x4bc)](_0x385b2b(0x1bd),[{..._0x1f0b22,'start':_0x481b36,'end':_0x481b36,'inclusiveEnd':!![]}]);return _0x2b38ac(_0x4dcd5e[_0x385b2b(0x1d9)](([,_0x116f34])=>_0x116f34));}[_0x4187f7(0x156)](_0x55df89={}){const _0x3d4d93=_0x4187f7;return this[_0x3d4d93(0x4bc)]('count',[_0x55df89]);}[_0x4187f7(0x5a3)](){const _0x2528b5=_0x4187f7;return{'entryCount':this[_0x2528b5(0x156)]()};}[_0x4187f7(0x59b)](_0x32bea6,_0x2113f7,_0x50de8a){const _0x400547=_0x4187f7;return this[_0x400547(0x179)]({'op':_0x400547(0x59b),'key':_0x32bea6,'value':_0x2113f7,'version':_0x50de8a}),Promise['resolve'](!![]);}['putSync'](_0x36220a,_0x2ec2a9,_0x51498f){return this['_write']({'op':'put','key':_0x36220a,'value':_0x2ec2a9,'version':_0x51498f}),!![];}[_0x4187f7(0x4d2)](_0x3fd7d2,_0x2f0314){const _0x1dfcfd=_0x4187f7;return this[_0x1dfcfd(0x179)]({'op':'remove','key':_0x3fd7d2,'value':_0x2f0314}),Promise['resolve'](!![]);}['removeSync'](_0x2f2012,_0x601e4a){const _0x33643a=_0x4187f7;return this[_0x33643a(0x179)]({'op':'remove','key':_0x2f2012,'value':_0x601e4a}),!![];}['clearSync'](){const _0xfbec83=_0x4187f7;this[_0xfbec83(0x179)]({'op':_0xfbec83(0x544)});}[_0x4187f7(0x750)](){const _0x296302=_0x4187f7;return this[_0x296302(0x179)]({'op':_0x296302(0x544)}),Promise['resolve']();}[_0x4187f7(0x2e7)](){const _0x100bbc=_0x4187f7;this[_0x100bbc(0x18a)]();}[_0x4187f7(0x3fe)](_0x1de484,_0x48be8a={}){const _0x1af75d=_0x4187f7,_0x509956=typeof _0x1de484===_0x1af75d(0x4ed)?_0x1de484:_0x48be8a,_0x23fc99=typeof _0x1de484==='object'?_0x1de484['name']:_0x1de484,_0x1fad83=new _0x4ad141(this[_0x1af75d(0xf7)],_0x23fc99,_0x509956);return _0x1fad83[_0x1af75d(0x179)]({'op':_0x1af75d(0x3fa)}),_0x1fad83;}[_0x4187f7(0x498)](){}[_0x4187f7(0x424)](_0x124d78){return this['_tx'](_0x124d78);}async[_0x4187f7(0x241)](_0x3ea121){return this['_tx'](_0x3ea121);}['childTransaction'](_0xeb47c9){const _0x7ce714=_0x4187f7;return this[_0x7ce714(0xe2)](_0xeb47c9);}['_tx'](_0xa974b4){const _0x226c4d=_0x4187f7,_0x1ac319=this[_0x226c4d(0xf7)];if(_0x1ac319['_rawTxnBuf'])return _0xa974b4();_0x1ac319[_0x226c4d(0x6cf)]=[];let _0x376665;try{_0x376665=_0xa974b4();}catch(_0x1ba2a7){_0x1ac319[_0x226c4d(0x6cf)]=null;throw _0x1ba2a7;}const _0x4bed5f=_0x1ac319[_0x226c4d(0x6cf)];_0x1ac319[_0x226c4d(0x6cf)]=null;if(_0x4bed5f[_0x226c4d(0x2a9)])_0x1ac319[_0x226c4d(0x6ff)][_0x226c4d(0x722)](_0x226c4d(0x29c),_0x1ac319['name'],_0x226c4d(0x5cd),[_0x4bed5f],!![]);return _0x376665;}[_0x4187f7(0x4bd)](){return{'done'(){}};}[_0x4187f7(0x2a5)](){}}return rawdb={'RawDb':_0x4ad141},rawdb;}function _0x41a2(_0x1262e7,_0x35c4d1){_0x1262e7=_0x1262e7-0xb7;const _0x27a065=_0x27a0();let _0x41a252=_0x27a065[_0x1262e7];return _0x41a252;}var views,hasRequiredViews;function requireViews(){const _0x11c8c3=_0x431d06;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x132d25}=requireRawdb();class _0x4a6d15{constructor(_0x4e313c){const _0x22c531=_0x41a2;this[_0x22c531(0x3c4)]=_0x4e313c,this['_n']=(_0x379e95,_0x3a5d1f,_0x46ec87=!![])=>_0x4e313c[_0x22c531(0x6ff)][_0x22c531(0x722)](_0x22c531(0x7a3),_0x4e313c[_0x22c531(0x5e6)],_0x379e95,_0x3a5d1f,_0x46ec87);}get[_0x11c8c3(0x256)](){const _0x58c999=_0x11c8c3,_0x255c4a=this,_0x2b684b=this[_0x58c999(0x3c4)],_0x565147=_0x2519a7=>_0x2519a7?new _0x132d25(_0x2b684b,_0x2519a7[_0x58c999(0x5e6)],{'dupSort':_0x2519a7['dup']}):undefined,_0x1390a7=_0x244710=>{const _0x8c87d2=_0x58c999,_0x197252=_0x255c4a['_n']('stateInfo',[_0x244710],![]);if(!_0x197252)return undefined;const _0x726277=_0x197252[_0x8c87d2(0x35d)],_0x3f0e41=new Map(Object[_0x8c87d2(0x2d3)](_0x726277['refs'])),_0x2e2ba7=new Map(Object[_0x8c87d2(0x2d3)](_0x197252['refItemsDbs'])['map'](([_0x5d5b0a,_0x249d61])=>[_0x5d5b0a,_0x565147(_0x249d61)]));return{'name':_0x244710,'compiled':{'T':_0x726277['T'],'reducers':_0x726277[_0x8c87d2(0x290)],'refs':_0x3f0e41,'granId':_0x726277[_0x8c87d2(0x743)],'type':_0x726277['type'],'_nidFor':_0xcfee54=>_0x255c4a['_n']('nidFor',[_0x244710,_0xcfee54],![])},'viewDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0x37c)]),'metaDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)]['metaDb']),'itemsDb':_0x565147(_0x197252['dbs'][_0x8c87d2(0x577)]),'bucketsDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)]['bucketsDb']),'sortedDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0x222)]),'groupsDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0x78f)]),'prevDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0xd7)]),'refItemsDbs':_0x2e2ba7,'refTrackingDbs':new Map(Object['entries'](_0x197252[_0x8c87d2(0x77f)]||{})[_0x8c87d2(0x1d9)](([_0x2f10a2,_0x154235])=>[_0x2f10a2,_0x565147(_0x154235)])),'stopFn':_0x197252[_0x8c87d2(0x18f)]?async()=>_0x255c4a['_n']('stopView',[_0x244710]):null,'bootstrapWorker':null};};return{'get':_0x36874b=>_0x1390a7(_0x36874b),'has':_0xdec523=>_0x255c4a['_n']('stateNames',[],![])['includes'](_0xdec523),'keys':()=>_0x255c4a['_n'](_0x58c999(0x434),[],![])[Symbol[_0x58c999(0x6b7)]](),get 'size'(){const _0x1f1daa=_0x58c999;return _0x255c4a['_n'](_0x1f1daa(0x434),[],![])[_0x1f1daa(0x2a9)];},[Symbol[_0x58c999(0x6b7)]]:()=>_0x255c4a['_n'](_0x58c999(0x434),[],![])['map'](_0x49715e=>[_0x49715e,_0x1390a7(_0x49715e)])[Symbol[_0x58c999(0x6b7)]]()};}get['_customReducers'](){const _0x24fa2f=_0x11c8c3,_0x13ba4c=this;return{'has':_0x103fbe=>_0x13ba4c['_n'](_0x24fa2f(0x26e),[],![])[_0x24fa2f(0x4e5)](_0x103fbe),get 'size'(){const _0x4706ea=_0x24fa2f;return _0x13ba4c['_n'](_0x4706ea(0x26e),[],![])[_0x4706ea(0x2a9)];},'keys':()=>_0x13ba4c['_n'](_0x24fa2f(0x26e),[],![])[Symbol[_0x24fa2f(0x6b7)]]()};}async[_0x11c8c3(0x7a1)](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x11c8c3(0x49e)](_0x3457e5={}){const _0xfedbf1=_0x11c8c3;return this['_n'](_0xfedbf1(0x49e),[_0x3457e5]);}async[_0x11c8c3(0x748)](_0x2e4dad,_0x155fa7){const _0x287caa=_0x11c8c3;return this['_n'](_0x287caa(0x57a),[_0x2e4dad,_0x155fa7]),await this[_0x287caa(0x528)](_0x2e4dad),{'name':_0x2e4dad};}async['_awaitBuild'](_0x3bda19){const _0x3ef9e8=_0x11c8c3,_0x5af9e9=this[_0x3ef9e8(0x3c4)][_0x3ef9e8(0x6ff)]['_pumper'];while(this['_n']('buildPending',[_0x3bda19],![]))await _0x5af9e9[_0x3ef9e8(0x519)](0xfa);this['_n'](_0x3ef9e8(0x1fe),[_0x3bda19],![]);}['get'](_0x1f2e16,_0x2948d8={}){const _0x181cc1=_0x11c8c3,_0x344b30=this['_n']('get',[_0x1f2e16,{'preview':_0x2948d8?.['preview']??{}}],![]);if(_0x344b30==null)return null;const _0x13d9d1=this['_n'](_0x181cc1(0x740),[_0x1f2e16],![]);if(!_0x13d9d1)return _0x344b30;const _0x1225f=_0x317233=>(_0x4f77be={})=>this['_n'](_0x181cc1(0x444),[_0x1f2e16,_0x317233,_0x4f77be],![]);if(_0x13d9d1[_0x181cc1(0x516)]){_0x344b30['items']=_0x1225f({'kind':_0x181cc1(0x516)});for(const _0x4fe1cb of _0x13d9d1[_0x181cc1(0x290)]){if(!_0x4fe1cb[_0x181cc1(0x444)])continue;if(_0x4fe1cb['grouped']){const _0x47a5b8=_0x344b30[_0x4fe1cb[_0x181cc1(0x5e6)]];if(_0x47a5b8?.['preview']&&Array['isArray'](_0x47a5b8[_0x181cc1(0x318)])){for(const _0x205a90 of _0x47a5b8[_0x181cc1(0x318)])_0x205a90[_0x181cc1(0x444)]=_0x1225f({'kind':_0x181cc1(0x61b),'reducer':_0x4fe1cb[_0x181cc1(0x5e6)],'key':_0x205a90[_0x181cc1(0x590)]});}}else _0x344b30[_0x4fe1cb[_0x181cc1(0x5e6)]]&&(_0x344b30[_0x4fe1cb[_0x181cc1(0x5e6)]][_0x181cc1(0x444)]=_0x1225f({'kind':'reducer','reducer':_0x4fe1cb[_0x181cc1(0x5e6)]}));}}for(const _0x38a682 of _0x13d9d1[_0x181cc1(0x559)]){if(!_0x38a682['view'])continue;const _0x1a00b5=_0x344b30[_0x38a682[_0x181cc1(0x5e6)]];if(!_0x1a00b5||typeof _0x1a00b5!==_0x181cc1(0x4ed))continue;_0x1a00b5['items']=_0x1225f({'kind':_0x181cc1(0x516),'ref':_0x38a682[_0x181cc1(0x5e6)]});for(const _0x15fbed of _0x38a682[_0x181cc1(0x290)]){if(!_0x15fbed[_0x181cc1(0x444)])continue;if(_0x15fbed[_0x181cc1(0x1c2)]){const _0x310cd3=_0x1a00b5[_0x15fbed[_0x181cc1(0x5e6)]];if(_0x310cd3?.[_0x181cc1(0x318)]&&Array[_0x181cc1(0x17d)](_0x310cd3['preview'])){for(const _0x48c0f9 of _0x310cd3[_0x181cc1(0x318)])_0x48c0f9[_0x181cc1(0x444)]=_0x1225f({'kind':_0x181cc1(0x61b),'ref':_0x38a682[_0x181cc1(0x5e6)],'reducer':_0x15fbed[_0x181cc1(0x5e6)],'key':_0x48c0f9[_0x181cc1(0x590)]});}}else _0x1a00b5[_0x15fbed['name']]&&(_0x1a00b5[_0x15fbed['name']][_0x181cc1(0x444)]=_0x1225f({'kind':_0x181cc1(0x79a),'ref':_0x38a682[_0x181cc1(0x5e6)],'reducer':_0x15fbed[_0x181cc1(0x5e6)]}));}}return _0x344b30;}[_0x11c8c3(0x261)](_0x13bfcb){const _0x12d40f=_0x11c8c3;return this['_n'](_0x12d40f(0x261),[_0x13bfcb],![]);}[_0x11c8c3(0x479)](_0x47d32c,_0x1f167e={}){const _0x5f3a25=_0x11c8c3;return this['_n'](_0x5f3a25(0x479),[_0x47d32c,_0x1f167e],![]);}[_0x11c8c3(0x65f)](_0x15e2bd,_0x4f07ab={}){const _0x2e84b2=_0x11c8c3;return this['_n'](_0x2e84b2(0x65f),[_0x15e2bd,_0x4f07ab],![]);}['listBuckets'](_0xd2ea4b,_0x4e1b19={}){const _0x44d5a5=_0x11c8c3;return this['_n'](_0x44d5a5(0x5bd),[_0xd2ea4b,_0x4e1b19],![]);}async[_0x11c8c3(0x58d)](){const _0x2e016c=_0x11c8c3;return this['_n'](_0x2e016c(0x58d),[],![]);}async[_0x11c8c3(0x2b6)](_0x5ce9c7){return this['_n']('getDefinition',[_0x5ce9c7],![])??null;}async['remove'](_0xcf2208,_0xa16ddb={}){return this['_n']('remove',[_0xcf2208,_0xa16ddb]);}async['stop'](_0x106727){return this['_n']('stop',[_0x106727]);}async[_0x11c8c3(0x432)](_0x2d6acf){const _0x35b758=_0x11c8c3;this['_n'](_0x35b758(0x163),[_0x2d6acf]),await this[_0x35b758(0x528)](_0x2d6acf);}async[_0x11c8c3(0x273)](_0x2c8721){const _0x3c62fc=_0x11c8c3;this['_n'](_0x3c62fc(0x462),[_0x2c8721]),await this[_0x3c62fc(0x528)](_0x2c8721);}async['resetView'](_0x3ce63b){const _0x402d92=_0x11c8c3;this['_n'](_0x402d92(0x77a),[_0x3ce63b]),await this[_0x402d92(0x528)](_0x3ce63b);}[_0x11c8c3(0x447)](_0x374d14,_0x1fe44f={}){const _0x31df24=_0x11c8c3;return this['_n'](_0x31df24(0x447),[_0x374d14,{'apply':_0x1fe44f&&_0x1fe44f[_0x31df24(0x5b0)]}]);}}return views={'OKDBViews':_0x4a6d15},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x1e720d=_0x431d06;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x2f1eb5}=requireErrors(),_0x12341f=requireBridge();class _0x2dbe6b{constructor(_0x45b49e){const _0x37cbbb=_0x41a2;this[_0x37cbbb(0x3c4)]=_0x45b49e,this['okdb']=_0x45b49e[_0x37cbbb(0x6ff)],this['log']=_0x45b49e[_0x37cbbb(0x6ff)][_0x37cbbb(0x745)][_0x37cbbb(0x3b9)]({'feature':_0x37cbbb(0x4f3)}),this[_0x37cbbb(0x6af)]=new Set();}['_n'](_0x34a8ea,_0xd7fe17,_0x472ea7=!![]){const _0x4a9246=_0x41a2;return this[_0x4a9246(0x6ff)][_0x4a9246(0x722)](_0x4a9246(0x4f3),this['env'][_0x4a9246(0x5e6)],_0x34a8ea,_0xd7fe17,_0x472ea7);}['_w'](_0x25fea0,_0x56da55){const _0x46d3bb=_0x41a2;return this['okdb'][_0x46d3bb(0x550)](this['_n'](_0x25fea0,_0x56da55));}async[_0x1e720d(0x47a)](){const _0x2a0ca3=_0x1e720d;return this['_n'](_0x2a0ca3(0x3fa),[]);}async[_0x1e720d(0x58d)](_0x484998={}){const _0x2aca1b=_0x1e720d;return this['_n'](_0x2aca1b(0x58d),[_0x484998],![]);}get[_0x1e720d(0x25d)](){const _0x4123e9=_0x1e720d,{RawDb:_0x2d74b7}=requireRawdb();return this[_0x4123e9(0x266)]||(this[_0x4123e9(0x266)]=new _0x2d74b7(this['env'],_0x4123e9(0x572)));}async[_0x1e720d(0x638)](){const _0x147950=_0x1e720d;return this['_w'](_0x147950(0x50e),[]);}async['enqueue'](_0x4ca67b,_0x4f7b2a,_0x5820cc={}){const _0x145d5f=_0x1e720d,{txn:_0x23064d,..._0x3930ed}=_0x5820cc||{};if(_0x23064d)return this[_0x145d5f(0x751)](_0x23064d,_0x4ca67b,_0x4f7b2a,_0x3930ed);const _0x5b2867=this[_0x145d5f(0x6ff)][_0x145d5f(0x13c)];if(_0x5b2867&&_0x5b2867['queue'][_0x145d5f(0x2a9)])_0x5b2867[_0x145d5f(0x7dd)]();const _0xc8a355=this['_n'](_0x145d5f(0x161),[_0x4ca67b,_0x4f7b2a,_0x3930ed],![]);return this[_0x145d5f(0x6ff)][_0x145d5f(0x550)](_0xc8a355['id'])[_0x145d5f(0x583)](_0x49a00e=>{const _0x94f971=_0x145d5f;if(_0xc8a355[_0x94f971(0x3a9)])this[_0x94f971(0x52d)](_0x4ca67b);else try{this[_0x94f971(0x6ff)][_0x94f971(0x6bc)][_0x94f971(0x4c1)]();}catch{}return _0x49a00e;});}['_startClaimedSoon'](_0x1d3dc9){queueMicrotask(()=>{const _0xbeb62c=_0x41a2;try{this['_n'](_0xbeb62c(0x1d2),[_0x1d3dc9]);}catch{}});}['_enqueueInTxn'](_0x390623,_0x2ba4d0,_0x42919d,_0x306ed7){const _0xe22880=_0x1e720d,_0x589f2c=_0x390623[_0xe22880(0x29c)]??_0x390623;if(_0x589f2c[_0xe22880(0x784)])throw new _0x2f1eb5(_0xe22880(0x2b5),_0xe22880(0x275));if(_0x589f2c['okdb']&&_0x589f2c[_0xe22880(0x6ff)]!==this[_0xe22880(0x3c4)]&&_0x589f2c[_0xe22880(0x6ff)][_0xe22880(0x5e6)]!==this[_0xe22880(0x3c4)][_0xe22880(0x5e6)])throw new _0x2f1eb5(_0xe22880(0x31b),_0xe22880(0x1d0),{'txnEnv':_0x589f2c[_0xe22880(0x6ff)][_0xe22880(0x5e6)],'queueEnv':this[_0xe22880(0x3c4)][_0xe22880(0x5e6)]});const _0x263ac8=this['_n'](_0xe22880(0x4c9),[_0x2ba4d0,_0x42919d,_0x306ed7],![]);if(_0x263ac8[_0xe22880(0x203)])return _0x263ac8['id'];if(_0x263ac8[_0xe22880(0x117)])_0x390623[_0xe22880(0x2bd)](_0xe22880(0x35f),_0x263ac8[_0xe22880(0x117)]['key'],_0x263ac8[_0xe22880(0x117)][_0xe22880(0x6f0)],{'ifVersion':_0x263ac8[_0xe22880(0x117)]['version']});if(_0x42919d!==undefined)_0x390623['put']('~queue_payloads',_0x263ac8['id'],_0x42919d);_0x390623[_0xe22880(0x59b)](_0xe22880(0x35f),_0x263ac8['id'],_0x263ac8[_0xe22880(0x27f)]);if(typeof _0x589f2c[_0xe22880(0x269)]===_0xe22880(0x7c4))_0x589f2c[_0xe22880(0x269)](()=>{const _0x1f7ec9=_0xe22880;if(this['_n'](_0x1f7ec9(0x1c3),[_0x263ac8['id'],_0x2ba4d0,_0x263ac8['when'],_0x263ac8['priority']]))this[_0x1f7ec9(0x52d)](_0x2ba4d0);});return _0x263ac8['id'];}async['claim'](_0x191466,_0x19d7d9={}){const _0x43a4e8=_0x1e720d;if(typeof _0x191466!=='string'||!_0x191466)throw new _0x2f1eb5(_0x43a4e8(0x329),_0x43a4e8(0x64a));return this['_w']('claim',[_0x191466,_0x19d7d9]);}async['markJobHeartbeat'](_0x585594,_0x39e5e4,_0x1c4b45=null){return this['_w']('markJobHeartbeat',[_0x585594,_0x39e5e4,_0x1c4b45]);}async[_0x1e720d(0x539)](_0x5b293b,_0x3db8ff,_0x2b558e=null){const _0x2fb10c=_0x1e720d;return this[_0x2fb10c(0x34e)](_0x5b293b,_0x3db8ff,_0x2b558e);}async['markJobProgress'](_0x332c10,_0x24872e,_0x41722e){return this['_w']('markJobProgress',[_0x332c10,_0x24872e,_0x41722e]);}async[_0x1e720d(0x64c)](_0x57ae82,_0x184ae2,_0x3fc32a){const _0x262f87=_0x1e720d;return this['_w'](_0x262f87(0x64c),[_0x57ae82,_0x184ae2,_0x3fc32a]);}async[_0x1e720d(0x6de)](_0x5a7392,_0x3b2e92,_0x2cd69e){const _0xacaae6=_0x1e720d;return this[_0xacaae6(0x64c)](_0x5a7392,_0x3b2e92,_0x2cd69e);}async[_0x1e720d(0x399)](_0x542c51,_0x21fe57,_0x230bf2,_0x26ae10){const _0x817c11=_0x1e720d,_0x15253a=_0x230bf2 instanceof Error?{'message':_0x230bf2[_0x817c11(0x18d)],'stack':_0x230bf2[_0x817c11(0x575)]}:_0x230bf2;return this['_w'](_0x817c11(0x399),[_0x542c51,_0x21fe57,_0x15253a,_0x26ae10]);}async[_0x1e720d(0x115)](_0x24c65c,_0x57ef40,_0x263246,_0x54bf8b){const _0x39b783=_0x1e720d;return this[_0x39b783(0x399)](_0x24c65c,_0x57ef40,_0x263246,_0x54bf8b);}async[_0x1e720d(0x6e2)](_0x3c6e07,_0x3ec7bb,_0x32ee83={}){const _0x324b9f=_0x1e720d;return this['_w'](_0x324b9f(0x6e2),[_0x3c6e07,_0x3ec7bb,_0x32ee83]);}async[_0x1e720d(0x55e)](_0x8e8a88){const _0x9eb79c=_0x1e720d;return this['_n'](_0x9eb79c(0x55e),[_0x8e8a88],![]);}async[_0x1e720d(0x1cb)](_0x2947f4,_0x259d2e={},_0x238801={}){const _0x231db0=_0x1e720d,_0x4438c2=_0x238801&&_0x238801[_0x231db0(0x704)];if(!_0x4438c2)return this['_w'](_0x231db0(0x1cb),[_0x2947f4,_0x259d2e]);const {next:_0x37de4,version:_0x193137}=this['_n']('planUpdateJob',[_0x2947f4,_0x259d2e],![]);_0x4438c2[_0x231db0(0x2bd)](_0x231db0(0x35f),_0x2947f4,_0x37de4,{'ifVersion':_0x193137});let _0x378bcc;if(_0x231db0(0x122)in _0x259d2e){if(_0x259d2e[_0x231db0(0x122)]===undefined){if(this[_0x231db0(0x3c4)]['getEntry'](_0x231db0(0x732),_0x2947f4))_0x4438c2['remove'](_0x231db0(0x732),_0x2947f4);}else _0x4438c2[_0x231db0(0x59b)]('~queue_payloads',_0x2947f4,_0x259d2e[_0x231db0(0x122)]);_0x378bcc=_0x259d2e['payload'];}else _0x378bcc=this[_0x231db0(0x3c4)]['get'](_0x231db0(0x732),_0x2947f4);return{..._0x37de4,'payload':_0x378bcc};}async[_0x1e720d(0x7e3)](_0x21341a,_0x596d76={}){const _0x54fd19=_0x1e720d,_0x35312e=_0x596d76&&_0x596d76[_0x54fd19(0x704)];if(!_0x35312e)return this['_w'](_0x54fd19(0x7e3),[_0x21341a]);if(!_0x21341a)throw new _0x2f1eb5('job\x20id\x20required','BAD_PARAM');if(!this[_0x54fd19(0x3c4)][_0x54fd19(0x153)](_0x54fd19(0x35f),_0x21341a))return![];_0x35312e[_0x54fd19(0x4d2)](_0x54fd19(0x35f),_0x21341a);if(this['env'][_0x54fd19(0x153)](_0x54fd19(0x732),_0x21341a))_0x35312e[_0x54fd19(0x4d2)](_0x54fd19(0x732),_0x21341a);if(typeof _0x35312e[_0x54fd19(0x269)]===_0x54fd19(0x7c4))_0x35312e[_0x54fd19(0x269)](()=>this['_n']('removeJobLogsAfterCommit',[_0x21341a]));return!![];}async[_0x1e720d(0x72c)](_0x135792){const _0x1b8507=_0x1e720d;return this['_w'](_0x1b8507(0x72c),[_0x135792]);}async[_0x1e720d(0x5cb)](_0x293674){const _0x582900=_0x1e720d;return this['_w'](_0x582900(0x5cb),[_0x293674]);}async[_0x1e720d(0x6fb)](_0x4047af,_0x352a9e,_0x493aca){const _0x29d3e9=_0x1e720d,_0x499bc2=this['_n'](_0x29d3e9(0x31a),[_0x352a9e??null,_0x493aca??0x0,_0x4047af]),_0x39f595=0x1f4;for(let _0xf07efe=0x0;_0xf07efe<_0x499bc2[_0x29d3e9(0x2a9)];_0xf07efe+=_0x39f595){this['_n'](_0x29d3e9(0xe9),[_0x499bc2[_0x29d3e9(0x331)](_0xf07efe,_0xf07efe+_0x39f595),_0xf07efe,_0x499bc2[_0x29d3e9(0x2a9)],_0x352a9e??null]);if(_0xf07efe+_0x39f595<_0x499bc2[_0x29d3e9(0x2a9)])await new Promise(_0x9a5e7f=>setImmediate(_0x9a5e7f));}return this['_n'](_0x29d3e9(0x178),[_0x499bc2['length'],_0x352a9e??null]),await new Promise(_0x490ba7=>setImmediate(_0x490ba7)),_0x499bc2[_0x29d3e9(0x2a9)];}async[_0x1e720d(0x470)](_0x110a94,_0x4d058f){const _0x2f74f2=_0x1e720d;return this['_clearChunked'](_0x2f74f2(0x248),_0x110a94,_0x4d058f);}async['clearFailed'](_0x113887,_0x497809){const _0x4c563e=_0x1e720d;return this[_0x4c563e(0x6fb)]('failed',_0x113887,_0x497809);}async[_0x1e720d(0x32c)](_0x4cf8d1,_0x332f74){const _0x162f6a=_0x1e720d;return this['_w'](_0x162f6a(0x32c),[_0x4cf8d1??null,_0x332f74??0x0]);}async[_0x1e720d(0x243)](_0x161683,_0x4070ec){return this['_w']('clearStuck',[_0x161683??null,_0x4070ec??0x0]);}async[_0x1e720d(0x1e9)](_0x33296a,_0x204150,_0x3385ca){return this['_w']('appendJobLog',[_0x33296a,_0x204150,_0x3385ca]);}async[_0x1e720d(0x709)](_0x42ff8b,_0x7558cb={}){const _0x3959f4=_0x1e720d;return this['_n'](_0x3959f4(0x709),[_0x42ff8b,_0x7558cb],![]);}async['addBucket'](_0x48b2c3,_0x58bac1={}){const _0x283930=_0x1e720d,{txn:_0x3d5e71,..._0x1274a0}=_0x58bac1||{};if(!_0x3d5e71)return this['_w']('addBucket',[_0x48b2c3,_0x1274a0]);const _0x27c87a=(_0x1253bf,_0x2854ea,_0x42bda7,_0x17c08f)=>{const _0xc00d67=_0x41a2,_0x1d6104=Math[_0xc00d67(0x26a)](Number(_0x1253bf));return Number[_0xc00d67(0x725)](_0x1d6104)?Math[_0xc00d67(0x165)](_0x17c08f,Math[_0xc00d67(0x380)](_0x42bda7,_0x1d6104)):_0x2854ea;},_0x4b9f6a=typeof _0x48b2c3===_0x283930(0x229)?_0x48b2c3['trim']():'';if(!_0x4b9f6a)throw new Error('bucket\x20id\x20required');const _0xdd26b4=_0x27c87a(_0x1274a0['capacity'],0x0,0x0,0x3b9aca00);_0x3d5e71[_0x283930(0x59b)](_0x283930(0xeb),_0x4b9f6a,{'id':_0x4b9f6a,'tokens':_0x27c87a(_0x1274a0['tokens'],_0xdd26b4,0x0,_0xdd26b4),'capacity':_0xdd26b4,'refill_amount':_0x27c87a(_0x1274a0[_0x283930(0x181)],0x0,0x0,0x3b9aca00),'refill_every':_0x27c87a(_0x1274a0[_0x283930(0x670)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x283930(0x772)]()});}async[_0x1e720d(0x67c)](_0x472114,_0x49f361){return this['_w']('updateBucket',[_0x472114,_0x49f361]);}async['removeBucket'](_0x989f1a){const _0x3d0b3a=_0x1e720d;return this['_w'](_0x3d0b3a(0x543),[_0x989f1a]);}[_0x1e720d(0x315)](_0x598382){const _0x19c57a=_0x1e720d,_0x1bee17=this['_n'](_0x19c57a(0x315),[_0x598382],![]);return _0x1bee17===null&&typeof _0x598382===_0x19c57a(0x229)&&_0x598382[_0x19c57a(0x189)]()?undefined:_0x1bee17;}async[_0x1e720d(0x510)](_0x31759d,_0x15fa3b){const _0xdcf07e=_0x1e720d;return this['_w'](_0xdcf07e(0x510),[_0x31759d,_0x15fa3b]);}async[_0x1e720d(0x40a)](_0x363139,_0x5c96f0={}){return this['_w']('addJobType',[_0x363139,_0x5c96f0]);}async[_0x1e720d(0x2c0)](_0x5c7335){return this['_n']('getJobType',[_0x5c7335],![]);}async[_0x1e720d(0x6ad)](){const _0x2e2e8c=_0x1e720d;return this['_n'](_0x2e2e8c(0x6ad),[],![]);}async[_0x1e720d(0x6c7)](_0x1b61c2){const _0x4943e1=_0x1e720d;return this['_w'](_0x4943e1(0x6c7),[_0x1b61c2]);}[_0x1e720d(0x54f)](_0x5b2fc4){const _0x39f729=_0x1e720d;return this['_n'](_0x39f729(0x54f),[_0x5b2fc4]);}[_0x1e720d(0x4a9)](_0x56ac91){const _0x180c86=_0x1e720d;return this['_n'](_0x180c86(0x4a9),[_0x56ac91]);}[_0x1e720d(0xf9)](_0x1fcc5c){const _0x588c1d=_0x1e720d;return this['_n'](_0x588c1d(0xf9),[_0x1fcc5c]);}async[_0x1e720d(0x378)](_0x4d1522,_0x1984c3,_0x5175bf=![]){return this['_w']('setJobTypeSchema',[_0x4d1522,_0x1984c3,_0x5175bf]);}async[_0x1e720d(0x483)](_0x25fbfb){return this['_w']('removeJobTypeSchema',[_0x25fbfb]);}async[_0x1e720d(0x578)](_0x3f9480,_0x16cd45=0x5){const _0x3ac8f3=_0x1e720d;return this['_n'](_0x3ac8f3(0x578),[_0x3f9480,_0x16cd45],![]);}async['_reconcile'](_0x54d628){const _0x319818=_0x1e720d;return this['_n'](_0x319818(0x6b0),[_0x54d628]);}async[_0x1e720d(0xc6)](_0xf0b384=0x7530){const _0x2d8415=_0x1e720d;await Promise[_0x2d8415(0x6cb)]([...this['_workers']][_0x2d8415(0x1d9)](_0x4ee6c3=>_0x4ee6c3[_0x2d8415(0x4ff)](_0xf0b384)));const _0x52f29c=this['_n']('stopAll',[0x0]);return this[_0x2d8415(0x6af)][_0x2d8415(0x544)](),_0x52f29c;}async['killAll'](){const _0xbc2121=_0x1e720d,_0x190fab=this['_n'](_0xbc2121(0x7ab),[]);return this[_0xbc2121(0x6af)][_0xbc2121(0x544)](),_0x190fab;}[_0x1e720d(0x7b5)](_0x4fa6c0,_0xb9129e,_0x396be2){const _0x1768d2=_0x1e720d;let _0xd3ae90,_0x50a51d;if(Array['isArray'](_0x4fa6c0)){if(typeof _0xb9129e===_0x1768d2(0x7c4))throw new _0x2f1eb5(_0x1768d2(0x388),_0x1768d2(0x64a));_0x50a51d=_0xb9129e??{};if(_0x50a51d['admission']!=null&&typeof _0x50a51d[_0x1768d2(0x60d)]!=='function')throw new _0x2f1eb5(_0x1768d2(0x29d),_0x1768d2(0x64a));if(_0x4fa6c0[_0x1768d2(0x2a9)]===0x0)throw new _0x2f1eb5(_0x1768d2(0x524),'BAD_PARAM');_0xd3ae90=_0x4fa6c0['map'](_0x306636=>{const _0x5bd68e=_0x1768d2;if(!_0x306636||typeof _0x306636[_0x5bd68e(0x690)]!==_0x5bd68e(0x229)||!_0x306636[_0x5bd68e(0x690)])throw new _0x2f1eb5(_0x5bd68e(0x473),_0x5bd68e(0x64a));if(typeof _0x306636['handler']!==_0x5bd68e(0x7c4))throw new _0x2f1eb5('process()\x20entry\x20\x22'+_0x306636[_0x5bd68e(0x690)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x5bd68e(0x64a));return{..._0x306636};});}else{_0x50a51d=_0x396be2??{};if(typeof _0xb9129e!==_0x1768d2(0x7c4))throw new _0x2f1eb5(_0x1768d2(0x497)+_0x4fa6c0+_0x1768d2(0x17a),_0x1768d2(0x64a));_0xd3ae90=[{'type':_0x4fa6c0,'handler':_0xb9129e,..._0x396be2??{}}];}const _0x23edec=this['okdb'];for(const _0x52c127 of _0xd3ae90){const _0x46afa9=_0x52c127[_0x1768d2(0x560)];_0x52c127[_0x1768d2(0x560)]=function(..._0x219065){const _0x301933=_0x1768d2;return _0x23edec[_0x301933(0x38f)]()[_0x301933(0x583)](()=>_0x46afa9[_0x301933(0x5b0)](this,_0x219065));};}const _0x5827db=this['_n'](_0x1768d2(0x7b5),[_0xd3ae90,_0x50a51d]),_0x32e581=this,_0x5f4f2e={'id':_0x5827db['id'],'type':_0x5827db[_0x1768d2(0x690)],get 'running'(){return _0x32e581['_n']('workerState',[_0x5827db['id']],![])['running'];},'isRunning'(){const _0x25dc7c=_0x1768d2;return _0x32e581['_n']('workerState',[_0x5827db['id']],![])[_0x25dc7c(0x1e2)];},async 'stop'(_0x500a1f=0x7530){const _0x11999e=_0x1768d2;_0x32e581['_n'](_0x11999e(0x778),[_0x5827db['id']]);const _0x196998=Date[_0x11999e(0x772)]()+_0x500a1f;while(_0x32e581['_n'](_0x11999e(0x793),[_0x5827db['id']],![])[_0x11999e(0x5d8)]>0x0&&Date[_0x11999e(0x772)]()<_0x196998)await new Promise(_0x3ce002=>setTimeout(_0x3ce002,0x2));_0x32e581['_n'](_0x11999e(0x120),[_0x5827db['id']]),_0x12341f[_0x11999e(0x749)](),_0x32e581[_0x11999e(0x6af)][_0x11999e(0x7ec)](_0x5f4f2e);},async 'kill'(){const _0x22a422=_0x1768d2;_0x32e581['_n']('killWorker',[_0x5827db['id']]),_0x32e581[_0x22a422(0x6af)][_0x22a422(0x7ec)](_0x5f4f2e);}};return this[_0x1768d2(0x6af)]['add'](_0x5f4f2e),_0x5f4f2e;}['worker'](_0x9b1353){const _0xa4929f=_0x1e720d;throw new _0x2f1eb5(_0xa4929f(0x2ac)+_0x9b1353+'\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27'+_0x9b1353+'\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','QUEUE_WORKER_REMOVED');}[_0x1e720d(0x147)](_0x2a58ac){const _0x470c4f=_0x1e720d;return this[_0x470c4f(0x7eb)](_0x2a58ac);}}return queue={'OKDBQueue':_0x2dbe6b},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x4bd073=_0x431d06;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x1ba304}=requireIterable();class _0x40620c{constructor(_0x1ba4e6){const _0x414f9d=_0x41a2;this[_0x414f9d(0x3c4)]=_0x1ba4e6,this[_0x414f9d(0x6ff)]=_0x1ba4e6[_0x414f9d(0x6ff)];const _0x394d03=(_0xf30c5a,_0x32a65c)=>this['_n'](_0xf30c5a,_0x32a65c,![]);this[_0x414f9d(0x4d6)]={'getDiffs':(_0x54c8fc,_0x3eeaf5,_0x3e107c)=>_0x394d03(_0x414f9d(0x130),[_0x54c8fc,_0x3eeaf5,_0x3e107c||{}]),'hasDiff':(_0x4d267d,_0x2c3f51,_0x315aa4)=>_0x394d03(_0x414f9d(0x3cc),[_0x4d267d,_0x2c3f51,_0x315aa4]),'getHead':(_0x4b6840,_0x55fe17)=>_0x394d03(_0x414f9d(0x31d),[_0x4b6840,_0x55fe17])??null,'getHeadCount':_0x2b2b9b=>_0x394d03(_0x414f9d(0x50b),[_0x2b2b9b]),'getTotalHeadCount':()=>_0x394d03(_0x414f9d(0x254),[]),'getDiffsInRange':(_0x8deeca,_0x3d0d2a,_0x2359ad)=>_0x394d03(_0x414f9d(0x37a),[_0x8deeca??null,_0x3d0d2a,_0x2359ad]),'getConfig':()=>_0x394d03('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x414f9d(0x5d6),[],![])??null,get 'db'(){const _0x138047=_0x414f9d;try{return _0x394d03(_0x138047(0x254),[]),{};}catch{return null;}}};}get[_0x4bd073(0x20a)](){const _0x41b541=_0x4bd073,_0x298fad=(this[_0x41b541(0x3c4)][_0x41b541(0xf8)]?.['list']?.()||[])[_0x41b541(0x587)](_0x34a17a=>String(_0x34a17a['cursorKey']||'')[_0x41b541(0x217)](_0x41b541(0x166)))[_0x41b541(0x2a9)];return{'size':_0x298fad};}['_n'](_0x58b928,_0x39be5d,_0x541f62=!![]){const _0x4d659c=_0x4bd073;return this[_0x4d659c(0x6ff)][_0x4d659c(0x722)]('tm',this[_0x4d659c(0x3c4)]['name'],_0x58b928,_0x39be5d,_0x541f62);}async[_0x4bd073(0x493)](_0x4e810a){const _0x32c84b=_0x4bd073;return this['_n'](_0x32c84b(0x493),[_0x4e810a??null]);}async['disable'](_0x568dc6){const _0x86d251=_0x4bd073;return this['_n'](_0x86d251(0x610),[_0x568dc6??null]);}async['enableAll'](){const _0x25d44e=_0x4bd073;return this['_n'](_0x25d44e(0x710),[]);}async[_0x4bd073(0xd8)](){const _0x4d84a2=_0x4bd073;return this['_n'](_0x4d84a2(0xd8),[]);}async['drop'](_0xdfec95){const _0x3d5dca=_0x4bd073;return this['_n'](_0x3d5dca(0x2e7),[_0xdfec95??null]);}async[_0x4bd073(0x52c)](){const _0x5ee158=_0x4bd073;return this['_n'](_0x5ee158(0x52c),[]);}['isEnabled'](_0x41c078){const _0x5dfbd6=_0x4bd073;return this['_n'](_0x5dfbd6(0x755),[_0x41c078??null],![]);}[_0x4bd073(0x58d)](){const _0x5de5c0=_0x4bd073;return this['_n'](_0x5de5c0(0x58d),[],![]);}[_0x4bd073(0x5d2)](_0x336d63){const _0x3d5fee=_0x4bd073;return this['_n'](_0x3d5fee(0x5d2),[_0x336d63??null],![]);}[_0x4bd073(0x23a)](_0x30777b){const _0x54eef9=_0x4bd073;if(!_0x30777b)return this['_n'](_0x54eef9(0x5d6),[],![]);return this['_n'](_0x54eef9(0x23a),[_0x30777b],![]);}[_0x4bd073(0x5d6)](){return this['_n']('getLegacyCursor',[],![]);}[_0x4bd073(0x3f9)](_0x276f68,_0x32ddbc,_0x1639c4){const _0x263be7=_0x4bd073;return this['_n'](_0x263be7(0x3f9),[_0x276f68,_0x32ddbc,_0x1639c4],![]);}[_0x4bd073(0x1e5)](_0x56df32,_0x5377cc,_0x1c9697){return this['_n']('getHistory',[_0x56df32,_0x5377cc,_0x1c9697||{}],![]);}[_0x4bd073(0xe4)](_0x496b38,_0x4d3a0a,_0x412314){const _0xeb8299=_0x4bd073;return this['_n'](_0xeb8299(0xe4),[_0x496b38??null,_0x4d3a0a,_0x412314],![])[Symbol[_0xeb8299(0x6b7)]]();}async[_0x4bd073(0x69e)](_0x27f174){const _0x41ec71=_0x4bd073;return this['_n'](_0x41ec71(0x69e),[_0x27f174??null]);}}return timemachine={'OKDBTimeMachine':_0x40620c},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x9356f=_0x431d06;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x50025b=require$$0,{Readable:_0x514430}=require$$1,{OKDBError:_0x3c39be,optionsArg:_0x21b297,invalidArgument:_0x497566}=requireErrors(),{RawDb:_0x272885}=requireRawdb();async function _0x507524(_0x2369d1){const _0x21205a=_0x41a2;if(Buffer[_0x21205a(0x68e)](_0x2369d1))return _0x2369d1;if(_0x2369d1 instanceof Uint8Array)return Buffer[_0x21205a(0x295)](_0x2369d1);if(typeof _0x2369d1===_0x21205a(0x229))return Buffer['from'](_0x2369d1);const _0x30ccc3=[];for await(const _0x3c8d09 of _0x2369d1)_0x30ccc3[_0x21205a(0x540)](Buffer['isBuffer'](_0x3c8d09)?_0x3c8d09:Buffer[_0x21205a(0x295)](_0x3c8d09));return Buffer[_0x21205a(0x70a)](_0x30ccc3);}class _0x55f318{constructor(_0x47ab1f){const _0x3692ab=_0x41a2;this[_0x3692ab(0x3c4)]=_0x47ab1f,this[_0x3692ab(0x6ff)]=_0x47ab1f[_0x3692ab(0x6ff)];}['_n'](_0x2b1240,_0x2fe55c,_0x1fc579=!![]){const _0x35037f=_0x41a2;return this[_0x35037f(0x6ff)][_0x35037f(0x722)](_0x35037f(0x253),this[_0x35037f(0x3c4)]['name'],_0x2b1240,_0x2fe55c,_0x1fc579);}[_0x9356f(0x432)](){return!![];}[_0x9356f(0x4ff)](){}async[_0x9356f(0x47a)](){const _0x54b15e=_0x9356f;this['_n'](_0x54b15e(0x3fa),[]);}async['_writeBlob'](_0x9b658c,_0x1771b8){return this['okdb']['_settleWrite'](this['_n']('writeBlob',[_0x9b658c,await _0x507524(_0x1771b8)]));}get['_blobStatusDb'](){const _0x167b7a=_0x9356f;return this[_0x167b7a(0x557)]||(this['__blobStatusDb']=new _0x272885(this[_0x167b7a(0x3c4)],'~file:blob_status'));}async['_blobStatusTxn'](_0x33fc73){const _0xdfeddd=_0x9356f;return this[_0xdfeddd(0x34f)][_0xdfeddd(0xe2)](_0x33fc73);}async[_0x9356f(0x659)](_0x557b8){const _0x2cfa63=_0x9356f,{id:_0x990d11,stream:_0x363937,mime:mime=_0x2cfa63(0x646),path:_0x26e57a='',txn:txn=null}=_0x21b297(_0x557b8);if(!_0x990d11)throw _0x497566(_0x2cfa63(0x1c9),_0x2cfa63(0x1f6),_0x990d11);if(!_0x363937)throw _0x497566(_0x2cfa63(0x2a3),_0x2cfa63(0x744),_0x363937);const _0x57b42c=await _0x507524(_0x363937);if(txn){const _0x19e4dd=this['_n']('uploadTxn',[_0x990d11,_0x57b42c,{'mime':mime,'path':_0x26e57a}]);return txn[_0x2cfa63(0x59b)](_0x2cfa63(0x4f2),_0x990d11,_0x19e4dd[_0x2cfa63(0x71a)]),txn[_0x2cfa63(0x269)](()=>this['_n']('txnDone',[_0x19e4dd[_0x2cfa63(0x738)]])),txn[_0x2cfa63(0x441)](()=>this['_n']('txnUndone',[_0x19e4dd['hook']])),_0x19e4dd['record'];}return this['okdb'][_0x2cfa63(0x550)](this['_n'](_0x2cfa63(0x659),[_0x990d11,_0x57b42c,{'mime':mime,'path':_0x26e57a}]));}['get'](_0x4f9fb1){return this['_n']('get',[_0x4f9fb1],![])??null;}[_0x9356f(0x3dc)](_0x2f6418){const _0x244325=_0x9356f,_0x36a18d=this[_0x244325(0x4bb)](_0x2f6418);if(!_0x50025b['existsSync'](_0x36a18d))throw Object[_0x244325(0x2e1)](new Error(_0x244325(0x68a)+_0x2f6418),{'status':0x194});return this[_0x244325(0x678)](_0x2f6418);}['_blobStream'](_0x38a712){const _0x4e51dc=0x100*0x400,_0x24008e=this;let _0x47796e=0x0;return new _0x514430({'highWaterMark':_0x4e51dc,'read'(){const _0x481e1e=_0x41a2;let _0x1ae752;try{const _0x372961=_0x24008e['_n']('readHashRange',[_0x38a712,_0x47796e,_0x4e51dc],![]);_0x1ae752=Buffer[_0x481e1e(0x68e)](_0x372961)?_0x372961:Buffer[_0x481e1e(0x295)](_0x372961);}catch(_0x570b39){this[_0x481e1e(0x309)](_0x570b39);return;}_0x47796e+=_0x1ae752['length'];if(_0x1ae752[_0x481e1e(0x2a9)])this[_0x481e1e(0x540)](_0x1ae752);if(_0x1ae752[_0x481e1e(0x2a9)]<_0x4e51dc)this[_0x481e1e(0x540)](null);}});}async['read'](_0x320c3d){const _0x4d615d=_0x9356f;return this['okdb'][_0x4d615d(0x412)](this['_n']('read',[_0x320c3d],![]));}async['stream'](_0x283fc5){const _0x18fb86=_0x9356f,_0x9cebc0=this['get'](_0x283fc5);if(!_0x9cebc0)throw Object[_0x18fb86(0x2e1)](new Error(_0x18fb86(0x7a2)+_0x283fc5),{'status':0x194});const _0x244d8d=this[_0x18fb86(0x4bb)](_0x9cebc0[_0x18fb86(0x231)]);if(!_0x50025b[_0x18fb86(0x2cd)](_0x244d8d))throw Object['assign'](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x283fc5),{'status':0x194});return{'stream':this[_0x18fb86(0x678)](_0x9cebc0['hash']),'record':_0x9cebc0};}async[_0x9356f(0x4d2)](_0x4a1338,_0x5368e9){const _0x56da2c=_0x9356f,{txn:txn=null}=_0x21b297(_0x5368e9);if(txn){const _0x5e23e5=this['_n'](_0x56da2c(0x1fd),[_0x4a1338]);txn[_0x56da2c(0x4d2)](_0x56da2c(0x4f2),_0x4a1338),txn[_0x56da2c(0x269)](()=>this['_n']('txnDone',[_0x5e23e5['hook']])),txn[_0x56da2c(0x441)](()=>this['_n'](_0x56da2c(0x1b1),[_0x5e23e5[_0x56da2c(0x738)]]));return;}return this[_0x56da2c(0x6ff)][_0x56da2c(0x550)](this['_n'](_0x56da2c(0x4d2),[_0x4a1338]));}async[_0x9356f(0x4b8)](_0xd2efb9,_0x4869d7={}){const _0x23702e=_0x9356f;return this['_n'](_0x23702e(0x4b8),[_0xd2efb9,_0x4869d7],![]);}[_0x9356f(0x6c0)](_0x30ecc9){const _0x29c146=_0x9356f;return this['_n'](_0x29c146(0x6c0),[_0x30ecc9],![]);}[_0x9356f(0x174)](){const _0x286723=_0x9356f;return this['_n'](_0x286723(0x174),[],![]);}[_0x9356f(0x33c)](_0x54183f){const _0x2f2544=_0x9356f,{minAgeMs:_0x59739d}=_0x21b297(_0x54183f);return this['_n'](_0x2f2544(0x33c),[_0x59739d??null]);}[_0x9356f(0x530)](_0x5ca93b,_0x14b4a0){const _0x583f5c=_0x9356f;if(typeof _0x14b4a0!=='function')throw new _0x3c39be(_0x583f5c(0x5b8),_0x583f5c(0x64a));const _0x576b37=this['_n'](_0x583f5c(0x530),[_0x5ca93b,_0x14b4a0]);return()=>this['_n']('unregisterExtractor',[_0x576b37]);}async[_0x9356f(0x791)](_0x405de9){return _0x405de9=_0x21b297(_0x405de9),this['_n']('indexContent',[_0x405de9]);}async[_0x9356f(0x3eb)](_0x19e05f){const _0x17d296=_0x9356f,{peerIds:_0x348827}=_0x21b297(_0x19e05f);return this['_n'](_0x17d296(0x3eb),[_0x348827??null]);}['_blobPath'](_0x28b382){const _0x4ca999=_0x9356f;if(typeof _0x28b382!=='string')return require$$4[_0x4ca999(0x7d6)](this[_0x4ca999(0x11b)],_0x28b382[_0x4ca999(0x331)](0x0,0x2),_0x28b382[_0x4ca999(0x331)](0x2));return this['_n'](_0x4ca999(0x503),[_0x28b382],![]);}get['_blobsDir'](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x55f318},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x191855=_0x431d06;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x42f93b}=requireErrors(),_0x40da97=requireBridge(),_0x3f6258=new Set([_0x191855(0x472),_0x191855(0x320),'vector-search','embed-worker']),_0x27a5e1=new Set([_0x191855(0x70b),_0x191855(0xd5),_0x191855(0x6b9)]),_0x31d2a8=['validate',_0x191855(0x297),_0x191855(0x54e),'assertStartAllowed',_0x191855(0x353),'stop','uninstall'],_0x23641d={'embedder':new Set([_0x191855(0x6b9),_0x191855(0x7d7)])},_0x292df3=new Set([_0x191855(0x635),_0x191855(0xf8),_0x191855(0x1a7)]);class _0x265fc1{constructor(_0x1a52b4,_0x4d2f46,_0xaf2b1d,_0x1a6314){const _0x40c72d=_0x191855;this[_0x40c72d(0x3e2)]=_0x1a52b4,this['key']=_0x4d2f46,this[_0x40c72d(0x690)]=_0xaf2b1d,this[_0x40c72d(0x5e6)]=_0x1a6314,this[_0x40c72d(0x6ee)]=_0xaf2b1d;}[_0x191855(0x650)](){const _0x51c60c=_0x191855;return this[_0x51c60c(0x3e2)]['_n']('info',[this[_0x51c60c(0x690)],this[_0x51c60c(0x5e6)]],![]);}get[_0x191855(0x61d)](){const _0x46dabc=_0x191855;return this[_0x46dabc(0x650)]()[_0x46dabc(0x61d)];}get['_store'](){const _0x1706cc=_0x191855,_0x55c5cb=this[_0x1706cc(0x650)]()[_0x1706cc(0x764)];return _0x55c5cb?this[_0x1706cc(0x3e2)]['okdb'][_0x1706cc(0x446)][_0x1706cc(0x1bc)](_0x55c5cb):undefined;}get[_0x191855(0x537)](){const _0x45f0bf=_0x191855;return this[_0x45f0bf(0x650)]()[_0x45f0bf(0x537)];}get[_0x191855(0x671)](){const _0x572136=_0x191855;return this[_0x572136(0x650)]()['enabled'];}get['isRunning'](){const _0x2c8204=_0x191855;return this[_0x2c8204(0x650)]()['isRunning'];}get[_0x191855(0x5d2)](){const _0x1ae061=_0x191855;return this['_info']()[_0x1ae061(0x5d2)];}get['reason'](){return this['_info']()['reason'];}get[_0x191855(0x1c4)](){const _0x3c4ee3=_0x191855,_0x36e020=this[_0x3c4ee3(0x650)]()[_0x3c4ee3(0x1c4)];return _0x36e020?Object[_0x3c4ee3(0x2e1)](new Error(_0x36e020[_0x3c4ee3(0x18d)]),{'code':_0x36e020['code']}):null;}get[_0x191855(0x667)](){const _0x356d2b=_0x191855;return this[_0x356d2b(0x650)]()[_0x356d2b(0x667)];}get[_0x191855(0x73a)](){const _0x889282=_0x191855;return this[_0x889282(0x3e2)][_0x889282(0x11a)]['get'](this[_0x889282(0x690)])??null;}get[_0x191855(0x7d5)](){const _0xad4792=_0x191855;if(!this[_0xad4792(0x650)]()[_0xad4792(0x124)])return null;const _0x4b7ae7=this;return new Proxy({},{'get'(_0x69b6c3,_0x3df80d){const _0x426978=_0xad4792;if(typeof _0x3df80d===_0x426978(0x445)||_0x3df80d===_0x426978(0x583))return undefined;if(_0x23641d[_0x4b7ae7['type']]&&_0x23641d[_0x4b7ae7[_0x426978(0x690)]][_0x426978(0x614)](_0x3df80d))return _0x4b7ae7['_facade']['_n']('apiCall',[_0x4b7ae7['type'],_0x4b7ae7[_0x426978(0x5e6)],_0x3df80d,[]],![])['value'];if(_0x4b7ae7[_0x426978(0x690)]===_0x426978(0x320)&&_0x3df80d===_0x426978(0x69e))return async(_0x46cad3={})=>{const _0x3df34e=_0x426978,_0xfefbce=(_0x274667,..._0xc505c9)=>_0x4b7ae7['_facade']['_n'](_0x3df34e(0x44a),[_0x4b7ae7[_0x3df34e(0x690)],_0x4b7ae7[_0x3df34e(0x5e6)],_0x274667,_0xc505c9],!![])[_0x3df34e(0x6f0)],_0x1fb189=_0xfefbce(_0x3df34e(0x23b),_0x46cad3??{}),_0x19cca0=Date[_0x3df34e(0x772)]();for(;;){const _0x410945=await _0x4b7ae7['_facade'][_0x3df34e(0x6ff)][_0x3df34e(0x46d)](()=>_0xfefbce(_0x3df34e(0x59a)));if(_0x410945[_0x3df34e(0xc2)]>=_0x410945[_0x3df34e(0x4f6)])return;Date[_0x3df34e(0x772)]()-_0x19cca0>=_0x1fb189&&_0xfefbce(_0x3df34e(0x481),_0x46cad3??{},_0x410945),await new Promise(_0x360e9e=>setTimeout(_0x360e9e,0x3));}};return(..._0x249f66)=>{const _0x5ae960=_0x426978,_0x580a65=()=>_0x4b7ae7[_0x5ae960(0x3e2)]['_n'](_0x5ae960(0x44a),[_0x4b7ae7[_0x5ae960(0x690)],_0x4b7ae7[_0x5ae960(0x5e6)],_0x3df80d,_0x249f66],!![]),_0x4a7053=_0x391924=>{const _0x37c59f=_0x5ae960;if(_0x391924&&_0x391924[_0x37c59f(0x173)])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x3df80d+'\x27');return _0x391924[_0x37c59f(0x6f0)];};if(_0x3f6258['has'](_0x4b7ae7['type'])&&!_0x27a5e1[_0x5ae960(0x614)](_0x3df80d)){const _0x435102=_0x4b7ae7['_facade']['okdb'];return _0x435102['_retryPending'](()=>_0x435102[_0x5ae960(0x46d)](_0x580a65))[_0x5ae960(0x583)](_0x4a7053);}if(_0x292df3['has'](_0x4b7ae7[_0x5ae960(0x690)]))try{return Promise['resolve'](_0x4a7053(_0x580a65()));}catch(_0x4ede71){return Promise['reject'](_0x4ede71);}return _0x4a7053(_0x580a65());};}});}async[_0x191855(0x1b2)](_0x27ffed={}){const _0x4ef8fd=_0x191855;return await this[_0x4ef8fd(0x3e2)][_0x4ef8fd(0x5a0)]('load',[this[_0x4ef8fd(0x690)],this[_0x4ef8fd(0x5e6)],_0x27ffed]),this;}async[_0x191855(0x432)](){const _0x430a8a=_0x191855;await this[_0x430a8a(0x3e2)][_0x430a8a(0x5a0)](_0x430a8a(0x1ba),[this[_0x430a8a(0x690)],this[_0x430a8a(0x5e6)]]);}async[_0x191855(0x4ff)](_0x547af0={}){const _0x444472=_0x191855;await this[_0x444472(0x3e2)]['_nm'](_0x444472(0x322),[this[_0x444472(0x690)],this['name'],_0x547af0]);}async[_0x191855(0xff)](_0x2f37f2={}){const _0x4eecf=_0x191855;return await this[_0x4eecf(0x3e2)][_0x4eecf(0x5a0)](_0x4eecf(0xff),[this[_0x4eecf(0x690)],this['name'],_0x2f37f2]),this;}async['uninstall'](){const _0x49833f=_0x191855;await this[_0x49833f(0x3e2)][_0x49833f(0x5a0)](_0x49833f(0x5da),[this['type'],this['name']]);}}class _0x1a93a4{constructor(_0x4a85f3,_0x17adfa=null,_0x452307=null){const _0x1d55ab=_0x191855;this[_0x1d55ab(0x6ff)]=_0x4a85f3,this[_0x1d55ab(0x3b2)]=_0x17adfa,this[_0x1d55ab(0x402)]=_0x17adfa===null,this['_root']=_0x452307||this,this['drivers']=this[_0x1d55ab(0x4dc)]===this?_0x30925f(this):this[_0x1d55ab(0x4dc)][_0x1d55ab(0x11a)],this[_0x1d55ab(0x3bb)]=new Map();}['_n'](_0x1375a2,_0x111b04,_0x5e7d56=!![]){const _0xdb7578=_0x191855;return this['okdb'][_0xdb7578(0x722)](_0xdb7578(0x7bc),this['envName'],_0x1375a2,_0x111b04,_0x5e7d56);}[_0x191855(0x5a0)](_0x3460c5,_0x2e633c){const _0xe019d8=_0x191855;return this[_0xe019d8(0x6ff)][_0xe019d8(0x22c)](_0xe019d8(0x7bc),this[_0xe019d8(0x3b2)],_0x3460c5,_0x2e633c,!![]);}get[_0x191855(0x3c4)](){const _0x3641=_0x191855;return this['envName']?this[_0x3641(0x6ff)][_0x3641(0x3c4)](this['envName']):null;}['_wrap'](_0x46f911){const _0x112cfd=_0x191855;if(!_0x46f911)return null;let _0x157720=this[_0x112cfd(0x3bb)][_0x112cfd(0x1bc)](_0x46f911['key']);return!_0x157720&&(_0x157720=new _0x265fc1(this,_0x46f911['key'],_0x46f911[_0x112cfd(0x690)],_0x46f911[_0x112cfd(0x5e6)]),this['_handles']['set'](_0x46f911['key'],_0x157720)),_0x157720;}['registerDriver'](_0x142f4c,_0x4d5031){const _0x1e7f0d=_0x191855;if(!_0x142f4c||typeof _0x142f4c!==_0x1e7f0d(0x229))throw new _0x42f93b(_0x1e7f0d(0x37d),_0x1e7f0d(0x11f),{'type':_0x142f4c});if(!_0x4d5031||typeof _0x4d5031!=='object')throw new _0x42f93b(_0x1e7f0d(0x644)+_0x142f4c+_0x1e7f0d(0x624),'ENGINE_INVALID_DRIVER',{'type':_0x142f4c});if(typeof _0x4d5031[_0x1e7f0d(0x432)]!==_0x1e7f0d(0x7c4))throw new _0x42f93b(_0x1e7f0d(0x644)+_0x142f4c+_0x1e7f0d(0x4fe),_0x1e7f0d(0x110),{'type':_0x142f4c});const _0x4c9644=this['_root'];if(_0x4c9644[_0x1e7f0d(0x11a)][_0x1e7f0d(0x614)](_0x142f4c))throw new _0x42f93b(_0x1e7f0d(0x274)+_0x142f4c+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x142f4c});const _0x1fb4d9=_0x40da97[_0x1e7f0d(0x26b)](_0x4d5031,this[_0x1e7f0d(0x6ff)]),_0x18fda5=_0x31d2a8[_0x1e7f0d(0x587)](_0x47219e=>typeof _0x4d5031[_0x47219e]==='function'),_0x4a8b02=_0x4d5031['docs']&&typeof _0x4d5031[_0x1e7f0d(0x5e9)]==='object'?_0x4d5031[_0x1e7f0d(0x5e9)]:{};this[_0x1e7f0d(0x6ff)][_0x1e7f0d(0x722)]('engines',null,_0x1e7f0d(0x623),[_0x142f4c,{'$id':_0x1fb4d9,'has':_0x18fda5,'docs':_0x4a8b02}]),_0x4c9644[_0x1e7f0d(0x11a)][_0x1e7f0d(0x43c)](_0x142f4c,_0x4d5031);}get['_started'](){const _0x3f120e=_0x191855;return this['okdb'][_0x3f120e(0x722)]('engines',null,'orchestratorStarted',[],![]);}get[_0x191855(0x55d)](){const _0x27197f=this;return{get '_started'(){return _0x27197f['_started'];}};}['registerTemplate'](_0x304324){const _0x4b1c1e=_0x191855;if(!_0x304324||typeof _0x304324!==_0x4b1c1e(0x4ed))throw new _0x42f93b(_0x4b1c1e(0x2ff),'ENGINE_INVALID_TEMPLATE');if(!_0x304324['id']||typeof _0x304324['id']!==_0x4b1c1e(0x229))throw new _0x42f93b(_0x4b1c1e(0x294),_0x4b1c1e(0xb7));if(![_0x4b1c1e(0x684),'pipeline'][_0x4b1c1e(0x4e5)](_0x304324[_0x4b1c1e(0x301)]))throw new _0x42f93b('Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20'+_0x304324['id'],_0x4b1c1e(0xb7));if(typeof _0x304324[_0x4b1c1e(0x506)]!==_0x4b1c1e(0x7c4))throw new _0x42f93b(_0x4b1c1e(0x4ef)+_0x304324['id'],_0x4b1c1e(0xb7));const _0x3011aa=this[_0x4b1c1e(0x6ff)],_0x4b63ca=typeof _0x304324[_0x4b1c1e(0xfe)]==='function';return this['_n']('registerTemplate',[{'id':_0x304324['id'],'kind':_0x304324['kind'],'family':_0x304324[_0x4b1c1e(0x757)]??null,'engineType':_0x304324['engineType']??null,'pipelineFamily':_0x304324[_0x4b1c1e(0x651)]??null,'recommended':_0x304324['recommended']===!![],'summary':_0x304324[_0x4b1c1e(0x5bb)]??null,'description':_0x304324['description']??null,'inputSchema':_0x4b63ca?null:_0x304324[_0x4b1c1e(0xfe)]??null,'inputSchemaFn':_0x4b63ca?()=>_0x304324['inputSchema'](_0x3011aa):null,'defaults':_0x304324['defaults']??null,'notes':Array[_0x4b1c1e(0x17d)](_0x304324[_0x4b1c1e(0x3ec)])?_0x304324[_0x4b1c1e(0x3ec)]:[],'links':Array[_0x4b1c1e(0x17d)](_0x304324['links'])?_0x304324[_0x4b1c1e(0x296)]:[],'build':(_0x4cf029,_0xcc1930)=>_0x304324[_0x4b1c1e(0x506)](_0x4cf029??{},{'okdb':_0x3011aa,'envName':_0xcc1930??null})}],![]);}[_0x191855(0x4b6)](_0xa96786){const _0x24c19c=_0x191855;return this['_n'](_0x24c19c(0x4b6),[_0xa96786??null],![]);}[_0x191855(0x66c)](_0x5178fc){const _0x5994ea=_0x191855;return this['_n'](_0x5994ea(0x66c),[_0x5178fc],![]);}[_0x191855(0xfc)](_0x96a589,_0x3e1b32,_0x435656){const _0x3fdd46=_0x191855;return this['_n'](_0x3fdd46(0xfc),[_0x96a589,_0x3e1b32,_0x435656??this[_0x3fdd46(0x3b2)]],![]);}[_0x191855(0x7ac)](){return this['_n']('catalog',[],![]);}async[_0x191855(0x432)](){const _0x31a935=_0x191855;return this['_nm'](_0x31a935(0x432),[]);}async[_0x191855(0x4ff)](){const _0x1f62c8=_0x191855;return this[_0x1f62c8(0x5a0)](_0x1f62c8(0x4ff),[]);}async[_0x191855(0x7ed)](_0x17d09e,_0x46dbbb,_0x55c966={},_0x1648a9={},_0x5b7f86={}){const _0x416ba4=_0x191855;return this[_0x416ba4(0x180)](await this[_0x416ba4(0x5a0)](_0x416ba4(0x7ed),[_0x17d09e,_0x46dbbb,_0x55c966,_0x1648a9,_0x5b7f86]));}async[_0x191855(0x6ba)](_0x15b5a9,_0x4fbf87,_0x56afd0={},_0x5d95b7={},_0x423f97={}){const _0x25579b=_0x191855;return this[_0x25579b(0x180)](await this[_0x25579b(0x5a0)](_0x25579b(0x6ba),[_0x15b5a9,_0x4fbf87,_0x56afd0,_0x5d95b7,_0x423f97]));}[_0x191855(0x1fa)](_0xed8e83,_0x3c5171){const _0x7d1feb=_0x191855;return this[_0x7d1feb(0x180)](this['_n']('getEngine',[_0xed8e83,_0x3c5171],![]));}[_0x191855(0x28f)](_0x15d89a,_0x598714){const _0x2e3687=_0x191855;return this['_wrap'](this['_n'](_0x2e3687(0x28f),[_0x15d89a,_0x598714],![]));}[_0x191855(0x58d)](_0x499dcc){const _0x19f9e6=_0x191855;return this['_n'](_0x19f9e6(0x58d),[_0x499dcc??null],![])['map'](_0x3605c9=>this[_0x19f9e6(0x180)](_0x3605c9));}async['restart'](_0x1874b1,_0xf4e798){const _0x526b30=_0x191855;return this[_0x526b30(0x180)](await this[_0x526b30(0x5a0)](_0x526b30(0x50c),[_0x1874b1,_0xf4e798]));}async[_0x191855(0x3b3)](_0x5eb2d8,_0x36f4aa){const _0x4c28d2=_0x191855;return this[_0x4c28d2(0x3bb)]['delete'](_0x5eb2d8+':'+_0x36f4aa),this['_nm'](_0x4c28d2(0x3b3),[_0x5eb2d8,_0x36f4aa]);}async['startNewEnginesFromSync'](_0x2c7ba1){const _0x4da673=_0x191855;return this[_0x4da673(0x5a0)](_0x4da673(0x41c),[_0x2c7ba1]);}async['bootSyncedEngines'](){const _0x34339b=_0x191855;return this[_0x34339b(0x5a0)]('bootSyncedEngines',[]);}}function _0x30925f(_0x5a66e9){const _0x34ad44=_0x191855,_0x464470=new Map();return{'has':_0x861471=>_0x464470[_0x34ad44(0x614)](_0x861471)||_0x5a66e9[_0x34ad44(0x6ff)][_0x34ad44(0x722)](_0x34ad44(0x7bc),null,_0x34ad44(0x5d5),[_0x861471],![]),'get':_0x22f086=>_0x464470['get'](_0x22f086),'set':()=>{const _0x592795=_0x34ad44;throw new _0x42f93b(_0x592795(0x142),_0x592795(0x64a));},'_set':(_0x544e2f,_0x5ad673)=>_0x464470[_0x34ad44(0x48c)](_0x544e2f,_0x5ad673),'keys':()=>_0x464470[_0x34ad44(0x5e1)](),'entries':()=>_0x464470[_0x34ad44(0x2d3)](),'values':()=>_0x464470['values'](),get 'size'(){const _0x10f265=_0x34ad44;return _0x464470[_0x10f265(0x74f)];},[Symbol['iterator']]:()=>_0x464470[Symbol[_0x34ad44(0x6b7)]]()};}class _0x40b59f{constructor(_0x7f806f,_0x1549fd=null){const _0x5386e7=_0x191855;this[_0x5386e7(0x6ff)]=_0x7f806f,this['envName']=_0x1549fd;}['_n'](_0x2130d4,_0x4b3d8d,_0x551a50=!![]){const _0x58bcec=_0x191855;return this[_0x58bcec(0x6ff)]['_call']('pipelines',this[_0x58bcec(0x3b2)],_0x2130d4,_0x4b3d8d,_0x551a50);}['_nm'](_0x186f45,_0x30233f){const _0xf255f3=_0x191855;return this[_0xf255f3(0x6ff)][_0xf255f3(0x22c)](_0xf255f3(0x251),this[_0xf255f3(0x3b2)],_0x186f45,_0x30233f,!![]);}get[_0x191855(0x2b2)](){const _0x37ff6d=_0x191855;return this[_0x37ff6d(0x3b2)]===null;}async[_0x191855(0x3fa)](_0x4cf12c){return this['_n']('ensure',[_0x4cf12c]);}async[_0x191855(0x1bc)](_0x13dd22,_0x58fb7a){const _0x3059e3=_0x191855;return this['_n'](_0x3059e3(0x1bc),[_0x13dd22,_0x58fb7a??null],![]);}async[_0x191855(0x25b)](_0x5c7a93,_0x4a8471){return this['_n']('getRecord',[_0x5c7a93,_0x4a8471??null],![]);}async['list'](_0x2c46b8){return this['_n']('list',[_0x2c46b8??null],![]);}async[_0x191855(0x6ed)](_0x4ca455={}){const _0x4c18c0=_0x191855;return this['_n'](_0x4c18c0(0x6ed),[_0x4ca455?.[_0x4c18c0(0x3b2)]??null],![]);}[_0x191855(0x49d)](_0x2c1dbe,_0x34f87b){return this['_n']('validate',[_0x2c1dbe,_0x34f87b??null],![]);}async[_0x191855(0x748)](_0x214109){const _0x25db78=_0x191855;return this['_nm'](_0x25db78(0x748),[_0x214109]);}async[_0x191855(0x2bd)](_0x2441b6,_0x18b8cd){const _0x617bf=_0x191855;return this[_0x617bf(0x5a0)]('update',[_0x2441b6,_0x18b8cd]);}async[_0x191855(0x4ff)](_0x243923){const _0x34060a=_0x191855;return this[_0x34060a(0x5a0)](_0x34060a(0x4ff),[_0x243923]);}async[_0x191855(0x5c7)](_0x28bc78){const _0x12ec7=_0x191855;if(!_0x28bc78||typeof _0x28bc78!==_0x12ec7(0x4ed)||!_0x28bc78[_0x12ec7(0x5e6)]||!_0x28bc78['engines'])return _0x28bc78;for(let _0x33bac6=0x0;_0x33bac6<0x3;_0x33bac6++)await new Promise(_0x3006a2=>setImmediate(_0x3006a2));try{const _0x399ccd=this[_0x12ec7(0x3b2)]!==null?await this['get'](_0x28bc78['name']):_0x28bc78[_0x12ec7(0x3c4)]?await this[_0x12ec7(0x1bc)](_0x28bc78[_0x12ec7(0x3c4)],_0x28bc78[_0x12ec7(0x5e6)]):null;return _0x399ccd||_0x28bc78;}catch{return _0x28bc78;}}async[_0x191855(0x432)](_0x5d27af){const _0x3b8b3d=_0x191855;return this['_settled'](await this[_0x3b8b3d(0x5a0)](_0x3b8b3d(0x432),[_0x5d27af]));}async[_0x191855(0x50c)](_0x3aaef6){const _0x3b113e=_0x191855;return this[_0x3b113e(0x5c7)](await this[_0x3b113e(0x5a0)](_0x3b113e(0x50c),[_0x3aaef6]));}async[_0x191855(0x273)](_0x846100){const _0x2d439c=_0x191855;return this[_0x2d439c(0x5a0)](_0x2d439c(0x273),[_0x846100]);}async['replaceMember'](_0x32220b,_0x37c66c,_0x3a0756){const _0x5b3d83=_0x191855;return this[_0x5b3d83(0x5a0)]('replaceMember',[_0x32220b,_0x37c66c,_0x3a0756]);}async[_0x191855(0x4d2)](_0x5057fc){return this['_nm']('remove',[_0x5057fc]);}async['stopAll'](){const _0x476b56=_0x191855;return this[_0x476b56(0x5a0)]('stopAll',[]);}async[_0x191855(0x685)](){const _0x2f4d0f=_0x191855;return this[_0x2f4d0f(0x5a0)](_0x2f4d0f(0x685),[]);}['findOwner'](_0xb11f36,_0x4f42a8){return this['_n']('findOwner',[_0xb11f36,_0x4f42a8],![]);}}return engines={'OKDBEngines':_0x1a93a4,'OKDBPipelines':_0x40b59f,'OKDBEngineHandle':_0x265fc1},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0xd0f625=_0x431d06;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x3ba5fd}=requireErrors(),_0x2adfd9=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x362d43{constructor(_0x37974e,_0x1ab72a=null){const _0x50e116=_0x41a2;this[_0x50e116(0x6ff)]=_0x37974e,this[_0x50e116(0x3b2)]=_0x1ab72a??_0x50e116(0xfb);}get[_0xd0f625(0x3c4)](){const _0x28b0a3=_0xd0f625;return this[_0x28b0a3(0x6ff)][_0x28b0a3(0x446)]['get'](this[_0x28b0a3(0x3b2)])??null;}['_n'](_0x59f8af,_0x5033f0=[],_0x5b7960=!![]){const _0x35e6bc=_0xd0f625;try{return this['okdb'][_0x35e6bc(0x722)]('functions',this[_0x35e6bc(0x3b2)],_0x59f8af,_0x5033f0,_0x5b7960);}catch(_0x2380f3){throw _0xbf7fcd(_0x2380f3);}}async[_0xd0f625(0x5a0)](_0xef7b07,_0x451fd6=[]){const _0x54f5b8=_0xd0f625;try{return await this[_0x54f5b8(0x6ff)][_0x54f5b8(0x22c)]('functions',this['envName'],_0xef7b07,_0x451fd6,!![]);}catch(_0x22aea){throw _0xbf7fcd(_0x22aea);}}async[_0xd0f625(0x58d)](){const _0x14a7af=_0xd0f625;return this['_n'](_0x14a7af(0x58d),[],![]);}async['get'](_0x142ac6){const _0x419759=_0xd0f625;return this['_n'](_0x419759(0x1bc),[_0x142ac6],![]);}async[_0xd0f625(0x748)](_0x1b530d){const _0x2cb932=_0xd0f625;return this['_n'](_0x2cb932(0x748),[_0x1b530d]);}async[_0xd0f625(0x2bd)](_0x36f943,_0x25cc01={}){const _0x341439=_0xd0f625;return this['_n'](_0x341439(0x2bd),[_0x36f943,_0x25cc01]);}async[_0xd0f625(0x4d2)](_0x3f9cfa){return this['_n']('remove',[_0x3f9cfa]);}async[_0xd0f625(0x547)](_0x586286){const _0x62422f=_0xd0f625,{functionName:functionName=null}=_0x3ba5fd(_0x586286);return this['_n'](_0x62422f(0x547),[{'functionName':functionName}],![]);}async['getRun'](_0x5bc533){const _0x3fcfa7=_0xd0f625;return this['_n'](_0x3fcfa7(0x779),[_0x5bc533],![]);}async[_0xd0f625(0x552)](_0x27bfe4){const _0x5531e4=_0xd0f625;return _0x27bfe4=_0x3ba5fd(_0x27bfe4,_0x5531e4(0x349)),this['_n'](_0x5531e4(0x552),[_0x27bfe4]);}async['run'](_0x3b3a1f,_0x74b82=null,_0x4c39bc={}){const _0x48039b=_0xd0f625,_0xfe45ca={..._0x4c39bc},_0xbe2ed8=_0xfe45ca[_0x48039b(0x385)];if(_0xbe2ed8)_0xfe45ca[_0x48039b(0x475)]=!!_0xbe2ed8[_0x48039b(0x475)];delete _0xfe45ca[_0x48039b(0x385)];const _0x9cf372=await this[_0x48039b(0x5a0)]('runStart',[_0x3b3a1f,_0x74b82,_0xfe45ca]),_0x5781e3=this['okdb'],_0xaf253c=()=>_0x5781e3[_0x48039b(0x6bc)][_0x48039b(0x4c1)]();if(_0xbe2ed8&&typeof _0xbe2ed8[_0x48039b(0x73d)]==='function')_0xbe2ed8[_0x48039b(0x73d)](_0x48039b(0x775),_0xaf253c,{'once':!![]});let _0x2411a3=![];try{for(;;){const _0x347a98=_0x5781e3[_0x48039b(0x6bc)]['nextTurn'](_0x2adfd9);let _0x2189fa;try{_0x2189fa=await _0x5781e3[_0x48039b(0x22c)](_0x48039b(0x2f9),this['envName'],_0x48039b(0x6c4),[_0x9cf372,!!_0xbe2ed8?.['aborted']],![],![]);}catch(_0x494c0a){_0x2411a3=!![];throw _0xbf7fcd(_0x494c0a);}if(!_0x2189fa||_0x2189fa[_0x48039b(0x5db)]!==!![])return _0x2411a3=!![],_0x5781e3[_0x48039b(0x6bc)][_0x48039b(0x4c1)](),_0x2189fa;if(_0x2189fa[_0x48039b(0x706)])_0x5781e3[_0x48039b(0x6bc)][_0x48039b(0x4c1)]();await _0x347a98;}}finally{if(_0xbe2ed8&&typeof _0xbe2ed8[_0x48039b(0x439)]==='function')_0xbe2ed8['removeEventListener']('abort',_0xaf253c);if(!_0x2411a3)try{_0x5781e3[_0x48039b(0x722)](_0x48039b(0x2f9),this['envName'],_0x48039b(0x6e7),[_0x9cf372],![]);}catch{}}}async['preview'](_0x37a39a={},_0x2c173f=null,_0x2eb6b8={}){return this['_nm']('preview',[_0x37a39a,_0x2c173f,_0x2eb6b8]);}async['stop'](){}}function _0xbf7fcd(_0x59f534){const _0x1abb34=_0xd0f625;if(_0x59f534&&_0x59f534[_0x1abb34(0x38a)]&&_0x59f534['details'][_0x1abb34(0x2a1)])_0x59f534[_0x1abb34(0x4c7)]=_0x59f534['details'][_0x1abb34(0x2a1)];return _0x59f534;}return functions={'OKDBFunctions':_0x362d43},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x5eb7f2=_0x431d06;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x16ff6b}=requireErrors();class _0x1aeb63{constructor(_0x385bb1,_0x345e3a){const _0xf87423=_0x41a2;this['_lock']=_0x385bb1,this[_0xf87423(0x113)]=_0x345e3a;}['_n'](_0x22993d,_0x4e8db6=[]){const _0xc820fd=_0x41a2;return this[_0xc820fd(0x2a0)]['_n'](_0x22993d,[this['_id'],..._0x4e8db6]);}[_0x5eb7f2(0x56b)](){return this['_n']('isHeld');}get['acquiredAt'](){const _0x5885ac=_0x5eb7f2;return this['_n'](_0x5885ac(0x2ad));}[_0x5eb7f2(0x21b)](){const _0x1b955b=_0x5eb7f2;return this['_n'](_0x1b955b(0x21b));}[_0x5eb7f2(0x65a)](_0x196785){const _0x4b61fc=_0x5eb7f2;return this['_n'](_0x4b61fc(0x65a),[_0x196785]);}async['release'](){return this['_n']('release');}}class _0x1e1fc0{constructor(_0x450462,_0xf7ad37,_0x2bb9c8,_0x280d8c){const _0x1d1981=_0x5eb7f2,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x16ff6b(_0x280d8c);this[_0x1d1981(0x6ff)]=_0x450462,this[_0x1d1981(0x7cb)]=_0x2bb9c8,this[_0x1d1981(0x113)]=_0x450462[_0x1d1981(0x722)]('lock',_0xf7ad37,_0x1d1981(0x4c4),[_0x2bb9c8,ttlMs,heartbeatMs],![]),this[_0x1d1981(0xf7)]=_0xf7ad37;}['_n'](_0x24dc3b,_0x2236f8=[]){const _0x59f6d7=_0x5eb7f2;return this['okdb'][_0x59f6d7(0x722)](_0x59f6d7(0x1b6),this[_0x59f6d7(0xf7)],_0x24dc3b,_0x2236f8,![]);}[_0x5eb7f2(0x63a)](_0x3a0eac){const _0x4ce2ee=_0x5eb7f2;return this['_n'](_0x4ce2ee(0x590),[this['_id'],_0x3a0eac]);}async[_0x5eb7f2(0x6d0)](_0x34138b,_0x5cf1e1={},_0x1995c1={}){const _0x5f2e30=_0x5eb7f2,_0x366a16=this['_n']('tryAcquire',[this[_0x5f2e30(0x113)],_0x34138b,_0x5cf1e1,_0x1995c1]);return{'acquired':_0x366a16['acquired'],'handle':_0x366a16[_0x5f2e30(0x747)]==null?null:new _0x1aeb63(this,_0x366a16[_0x5f2e30(0x747)]),'current':_0x366a16['current']};}[_0x5eb7f2(0x3d1)](_0x5cc636){const _0x78c631=_0x5eb7f2;return this['_n'](_0x78c631(0x3d1),[this[_0x78c631(0x113)],_0x5cc636]);}[_0x5eb7f2(0x58d)](){const _0x229e6c=_0x5eb7f2;return this['_n'](_0x229e6c(0x58d),[this[_0x229e6c(0x113)]]);}[_0x5eb7f2(0x5af)](_0x105448){const _0x2ca195=_0x5eb7f2;return this['_n'](_0x2ca195(0x5af),[this[_0x2ca195(0x113)],_0x105448]);}[_0x5eb7f2(0x5c8)](_0x2ec2e0,_0xfaf63=0x3e8){const _0x5a3f14=_0x5eb7f2;return this['_n'](_0x5a3f14(0x5c8),[this['_id'],_0x2ec2e0,_0xfaf63]);}}return lock={'NativeLock':_0x1e1fc0,'NativeLockHandle':_0x1aeb63},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x51e6f9=_0x431d06;if(hasRequiredProcessor)return processor[_0x51e6f9(0x1ad)];hasRequiredProcessor=0x1;const _0x5e1a2f=requireBridge(),{RawDb:_0x1e6725}=requireRawdb(),{NativeLock:_0x373393}=requireLock();function _0x11ac97(_0x3ab5ff){}class _0x3591a7{constructor(_0x23748e){const _0x2fa132=_0x51e6f9;this['env']=_0x23748e,this['okdb']=_0x23748e;try{this['_n'](_0x2fa132(0x3fc),[(_0x16ea81,_0x227321)=>{const _0x201b0e=_0x2fa132,_0x35a99d=this[_0x201b0e(0x6ff)][_0x201b0e(0x745)],_0x1affdd=_0x35a99d?.[_0x16ea81]??_0x35a99d?.[_0x201b0e(0xd5)];if(typeof _0x1affdd===_0x201b0e(0x7c4))_0x1affdd[_0x201b0e(0x7cd)](_0x35a99d,_0x227321);}],![]);}catch{}}['_n'](_0xdb4cd8,_0x157473,_0xe6c6f2=!![]){const _0x35a3aa=_0x51e6f9;return this[_0x35a3aa(0x3c4)][_0x35a3aa(0x6ff)][_0x35a3aa(0x722)](_0x35a3aa(0x66e),this[_0x35a3aa(0x3c4)][_0x35a3aa(0x5e6)],_0xdb4cd8,_0x157473,_0xe6c6f2);}[_0x51e6f9(0xb9)](_0x2c1d72,_0x3cb82f={}){const _0x1035d2=_0x51e6f9,_0x44a30e={..._0x3cb82f};if(typeof _0x44a30e[_0x1035d2(0x560)]===_0x1035d2(0x7c4)&&_0x44a30e[_0x1035d2(0x554)]!=null)throw new Error(_0x1035d2(0x734)+_0x1035d2(0x1e4));if(typeof _0x44a30e['handler']===_0x1035d2(0x229)&&_0x44a30e[_0x1035d2(0x554)]!=null)throw new Error(_0x1035d2(0x249));if(_0x44a30e[_0x1035d2(0x554)]!=null){if(!_0x44a30e['module'][_0x1035d2(0xe7)])throw new Error(_0x1035d2(0x4d4));const _0x4c4c34=_0x44a30e['module'][_0x1035d2(0x5bc)]??_0x44a30e[_0x1035d2(0x554)][_0x1035d2(0x1a4)]??_0x1035d2(0x7b5),_0x49902d=require[_0x1035d2(0x54d)](_0x44a30e[_0x1035d2(0x554)]['path']),_0x9de5f3=require(_0x49902d),_0x3c2b6c=_0x9de5f3[_0x4c4c34]??_0x9de5f3[_0x1035d2(0x686)]??_0x9de5f3;if(typeof _0x3c2b6c!=='function')throw new Error(_0x1035d2(0x654)+_0x44a30e[_0x1035d2(0x554)][_0x1035d2(0xe7)]+'\x27\x20export\x20\x27'+_0x4c4c34+'\x27\x20is\x20not\x20a\x20function');this[_0x1035d2(0x3c4)][_0x1035d2(0x6ff)]['_staticCall'](_0x1035d2(0x66e),_0x1035d2(0x568),[_0x49902d,_0x4c4c34,_0x3c2b6c]),_0x44a30e[_0x1035d2(0x554)]={'path':_0x49902d,'export':_0x4c4c34};}if(_0x44a30e['quantum']!=null){if(typeof _0x44a30e['quantum'][_0x1035d2(0x554)]!==_0x1035d2(0x229))throw new Error(_0x1035d2(0x26f));const _0x31ffb8=require[_0x1035d2(0x54d)](_0x44a30e[_0x1035d2(0x3cb)]['module']),_0x4f63b3=require(_0x31ffb8),_0x1b889b=_0x44a30e[_0x1035d2(0x3cb)][_0x1035d2(0x1a4)],_0x2cc3aa=_0x1b889b?_0x4f63b3[_0x1b889b]:_0x4f63b3[_0x1035d2(0x686)]??_0x4f63b3;if(typeof _0x2cc3aa==='function'){const _0x40f135=_0x1b889b?_0x44a30e[_0x1035d2(0x3cb)][_0x1035d2(0x554)]+'#'+_0x1b889b:_0x44a30e['quantum'][_0x1035d2(0x554)];this[_0x1035d2(0x3c4)][_0x1035d2(0x6ff)][_0x1035d2(0x21f)](_0x1035d2(0x66e),_0x1035d2(0x5b5),[_0x40f135,_0x2cc3aa]);}_0x44a30e[_0x1035d2(0x3cb)]={..._0x44a30e[_0x1035d2(0x3cb)]};}_0x44a30e['payload']!=null&&typeof _0x44a30e[_0x1035d2(0x122)]===_0x1035d2(0x4ed)&&(_0x44a30e[_0x1035d2(0x122)]={'$payload':_0x5e1a2f[_0x1035d2(0x797)](_0x44a30e[_0x1035d2(0x122)],this[_0x1035d2(0x3c4)][_0x1035d2(0x6ff)])});if(_0x44a30e[_0x1035d2(0x273)]!=null&&typeof _0x44a30e['rebuild']!==_0x1035d2(0x7c4))throw new Error(_0x1035d2(0x6f4));const _0x22f5fb=this['_n'](_0x1035d2(0xb9),[_0x2c1d72??null,_0x44a30e]);return this[_0x1035d2(0x601)](_0x22f5fb['id'],_0x22f5fb[_0x1035d2(0x10a)]);}[_0x51e6f9(0x601)](_0x3ec2d4,_0xac0a5a){const _0xc8be73=_0x51e6f9,_0x4af863=this,_0x43d6d2=async()=>{const _0x294dc7=_0x41a2;_0x4af863['_n'](_0x294dc7(0x443),[_0x3ec2d4]);};return _0x43d6d2['id']=_0x3ec2d4,_0x43d6d2[_0xc8be73(0x10a)]=_0xac0a5a,_0x43d6d2['durableClock']=()=>_0xac0a5a?_0x4af863['_n'](_0xc8be73(0x785),[_0x3ec2d4],![]):0x0,_0x43d6d2[_0xc8be73(0x5d2)]=()=>_0x4af863[_0xc8be73(0x1bc)](_0x3ec2d4),_0x43d6d2['getStatus']=_0x43d6d2[_0xc8be73(0x5d2)],_0x43d6d2[_0xc8be73(0x160)]=()=>_0x4af863[_0xc8be73(0x160)](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x1d8)]=()=>_0x4af863['resume'](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x4db)]=()=>_0x4af863[_0xc8be73(0x4db)](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x146)]=()=>_0x4af863[_0xc8be73(0x146)](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x264)]=_0x1876e2=>_0x4af863[_0xc8be73(0x264)](_0x3ec2d4,_0x1876e2),_0x43d6d2;}get['_stops'](){const _0x23df44=_0x51e6f9;try{return this['_n'](_0x23df44(0x58d),[],![])[_0x23df44(0x1d9)](_0x1a0bf2=>({'id':_0x1a0bf2['id']}));}catch{return[];}}async[_0x51e6f9(0x3f0)](_0xb232bb){const _0x4dd7d1=_0x51e6f9;return new Set(this['_n'](_0x4dd7d1(0x3f0),[]));}['resumeAllAfterDrain'](_0x396229){const _0x23dd60=_0x51e6f9;return this['_n'](_0x23dd60(0x24b),[[..._0x396229??[]]]);}get[_0x51e6f9(0x77d)](){const _0x3a0ddd=_0x51e6f9;return new Set(this['_n'](_0x3a0ddd(0x58d),[],![])[_0x3a0ddd(0x587)](_0x394fb6=>_0x394fb6[_0x3a0ddd(0x690)]==null)[_0x3a0ddd(0x1d9)](_0x17eabf=>_0x17eabf['id']));}[_0x51e6f9(0x3d5)](){}get[_0x51e6f9(0x2a0)](){const _0x102fe7=_0x51e6f9;if(!this[_0x102fe7(0x71c)]){const _0xaca508=new _0x373393(this[_0x102fe7(0x3c4)][_0x102fe7(0x6ff)],this[_0x102fe7(0x3c4)][_0x102fe7(0x5e6)],_0x102fe7(0x66e)),_0xf95ef7=this[_0x102fe7(0x3c4)];_0xaca508[_0x102fe7(0x281)]=()=>new _0x1e6725(_0xf95ef7,_0x102fe7(0x1a6)),this[_0x102fe7(0x71c)]=_0xaca508;}return this[_0x102fe7(0x71c)];}['_fail'](_0x5048a8,_0x41aa6e){const _0x41500b=_0x51e6f9;return this['_n'](_0x41500b(0x258),[typeof _0x5048a8===_0x41500b(0x229)?_0x5048a8:_0x5048a8['id'],_0x41aa6e?.[_0x41500b(0x18d)]??String(_0x41aa6e??'')]);}get[_0x51e6f9(0x420)](){const _0x1c48ce=_0x51e6f9;return this[_0x1c48ce(0x773)]||(this[_0x1c48ce(0x773)]=new _0x1e6725(this[_0x1c48ce(0x3c4)],_0x1c48ce(0x536)));}get['_registrations'](){const _0x1b8578=_0x51e6f9,_0x50781f=this,_0x588932=_0x4dac2e=>{const _0x503730=_0x41a2,_0x20cb80=()=>_0x50781f['_n'](_0x503730(0x127),[_0x4dac2e],![]);if(!_0x20cb80())return undefined;const _0x3d4fae=_0x112eab=>()=>_0x20cb80()?.[_0x112eab],_0x258f4f={'id':_0x4dac2e},_0x17aca3=(_0x188cf4,_0x128747,_0x45b99d)=>Object['defineProperty'](_0x258f4f,_0x188cf4,{'get':_0x128747,'set':_0x45b99d,'enumerable':!![],'configurable':!![]});return _0x17aca3(_0x503730(0x1a2),_0x3d4fae(_0x503730(0x1a2))),_0x17aca3(_0x503730(0x520),_0x3d4fae(_0x503730(0x520))),_0x17aca3(_0x503730(0x563),_0x3d4fae(_0x503730(0x563))),_0x17aca3(_0x503730(0x1f0),_0x3d4fae('lastClock'),_0x44b9e1=>_0x50781f['_n'](_0x503730(0x35c),[_0x4dac2e,_0x44b9e1])),_0x17aca3('cursorKey',_0x3d4fae(_0x503730(0x10a))),_0x17aca3('_claimGated',_0x3d4fae(_0x503730(0xf2)),_0x2d36fa=>_0x50781f['_n'](_0x503730(0x6b2),[_0x4dac2e,!!_0x2d36fa])),_0x17aca3(_0x503730(0x687),_0x3d4fae(_0x503730(0x3bf))),_0x17aca3('flushQuantum',_0x3d4fae(_0x503730(0x4b5))),_0x17aca3(_0x503730(0x400),_0x3d4fae(_0x503730(0x400))),_0x17aca3(_0x503730(0x4d7),_0x3d4fae(_0x503730(0x7ea)),_0x382895=>_0x50781f['_n']('setModeApplied',[_0x4dac2e,_0x382895])),_0x17aca3(_0x503730(0x7a9),()=>_0x50781f[_0x503730(0x1bc)](_0x4dac2e)?.[_0x503730(0x7a9)]),_0x17aca3(_0x503730(0x7b2),()=>_0x20cb80()?.[_0x503730(0x75b)]?{'isHeld':()=>!!_0x20cb80()?.[_0x503730(0x75b)]}:null),_0x17aca3('_pokeHandler',()=>_0x20cb80()?.['pokeHandler']?()=>{}:null),_0x17aca3(_0x503730(0x2e2),()=>_0x20cb80()?.[_0x503730(0x32b)]?{}:null),_0x17aca3('_debounceTimer',()=>_0x20cb80()?.[_0x503730(0x463)]?{}:null),_0x258f4f;},_0x41a4f2=()=>_0x50781f['_n'](_0x1b8578(0x58d),[],![])[_0x1b8578(0x1d9)](_0x52d9ff=>_0x52d9ff['id']);return{'get':_0x41d4bd=>_0x588932(_0x41d4bd),'has':_0x5152f9=>_0x41a4f2()[_0x1b8578(0x4e5)](_0x5152f9),get 'size'(){const _0x534130=_0x1b8578;return _0x41a4f2()[_0x534130(0x2a9)];},'keys':()=>_0x41a4f2()[Symbol[_0x1b8578(0x6b7)]](),'values':()=>_0x41a4f2()['map'](_0x588932)[Symbol[_0x1b8578(0x6b7)]](),'entries':()=>_0x41a4f2()[_0x1b8578(0x1d9)](_0x928fe7=>[_0x928fe7,_0x588932(_0x928fe7)])[Symbol[_0x1b8578(0x6b7)]](),[Symbol[_0x1b8578(0x6b7)]]:()=>_0x41a4f2()[_0x1b8578(0x1d9)](_0x13918c=>[_0x13918c,_0x588932(_0x13918c)])[Symbol['iterator']](),'forEach':_0x12f65b=>_0x41a4f2()['forEach'](_0xfdd209=>_0x12f65b(_0x588932(_0xfdd209),_0xfdd209))};}async[_0x51e6f9(0xc6)](){const _0x4f50ba=_0x51e6f9;return this['_n'](_0x4f50ba(0xc6),[]);}[_0x51e6f9(0x58d)](){const _0x3733cd=_0x51e6f9,_0x296d08=this['_n'](_0x3733cd(0x58d),[],![]);if(!this[_0x3733cd(0x3c4)][_0x3733cd(0x5e6)][_0x3733cd(0x217)]('~'))try{const _0x2d33c5=this[_0x3733cd(0x3c4)][_0x3733cd(0x6ff)]['meta'];for(const _0x1e9b34 of _0x2d33c5[_0x3733cd(0x57b)](this[_0x3733cd(0x3c4)][_0x3733cd(0x5e6)])){for(const _0x4aa16e of _0x2d33c5[_0x3733cd(0x365)](_0x1e9b34,this[_0x3733cd(0x3c4)][_0x3733cd(0x5e6)])){const _0x1f6c5a=_0x3733cd(0x2f4)+_0x1e9b34+':'+_0x4aa16e;_0x296d08[_0x3733cd(0x540)]({'id':_0x1f6c5a,'type':_0x1e9b34,'mode':_0x3733cd(0x653),'state':_0x3733cd(0x386),'paused':![],'lag':0x0,'cursorKey':_0x1f6c5a,'meta':{'name':_0x1f6c5a}});}}}catch{}return _0x296d08;}[_0x51e6f9(0x22f)](){const _0x12636e=_0x51e6f9;return this['_n'](_0x12636e(0x22f),[],![]);}[_0x51e6f9(0x790)](){const _0x58db24=_0x51e6f9;return this['_n'](_0x58db24(0x790),[],![]);}[_0x51e6f9(0x51b)](){const _0x6fd707=_0x51e6f9;return this['_n'](_0x6fd707(0x51b),[],![]);}[_0x51e6f9(0x1bc)](_0x3bcda7){const _0x2a5be4=_0x51e6f9;return this['_n'](_0x2a5be4(0x1bc),[_0x3bcda7],![]);}[_0x51e6f9(0x364)](_0x11eb11){const _0x2ea965=_0x51e6f9;return this[_0x2ea965(0x1bc)](typeof _0x11eb11===_0x2ea965(0x229)?_0x11eb11:_0x11eb11['id']);}[_0x51e6f9(0x23a)](_0x34b81b){const _0x5906f7=_0x51e6f9;return this['_n'](_0x5906f7(0x23a),[_0x34b81b],![]);}['resetCursor'](_0x3dc61d){return this['_n']('resetCursor',[_0x3dc61d]);}[_0x51e6f9(0x350)](_0x58e7d1){const _0x3027df=_0x51e6f9;return this['_n'](_0x3027df(0x350),[_0x58e7d1]);}['isSnapshotComplete'](_0x28936e){const _0x5b5f90=_0x51e6f9;return this['_n'](_0x5b5f90(0x45d),[_0x28936e],![]);}[_0x51e6f9(0x6a4)](_0x55bba0,_0x259673){const _0x7c9abb=_0x51e6f9;return this['_n'](_0x7c9abb(0x6a4),[_0x55bba0,_0x259673]);}async['awaitIdle'](_0x5d7ec7,_0x2b5c54){return this['_n']('awaitIdle',[_0x5d7ec7,_0x2b5c54??0x7530]);}[_0x51e6f9(0x160)](_0x279d47){const _0x238e8d=_0x51e6f9;return this['_n'](_0x238e8d(0x160),[_0x279d47]);}[_0x51e6f9(0x1d8)](_0x412cd3){const _0x792e7c=_0x51e6f9;return this['_n'](_0x792e7c(0x1d8),[_0x412cd3]);}async[_0x51e6f9(0x4d0)](_0x5f4a05){const _0x2d3b33=_0x51e6f9;return this['_n'](_0x2d3b33(0x4d0),[_0x5f4a05]);}['kick'](_0x3d6bec){return this['_n']('kick',[_0x3d6bec]);}[_0x51e6f9(0x146)](_0x20bec1){const _0x5d4c51=_0x51e6f9;return this['_n'](_0x5d4c51(0x146),[_0x20bec1]);}['restart'](_0x25c631,_0x3a02af={}){return this['_n']('restart',[_0x25c631,_0x3a02af]);}async[_0x51e6f9(0x6a9)](_0x3b5e58,_0x40648d,_0x147ac4){const _0x4227aa=_0x51e6f9,[_0x5d3c79,_0x5b804a]=this['_n'](_0x4227aa(0x6a9),[_0x3b5e58,_0x40648d,_0x147ac4]);return{'version':_0x5d3c79,'flipClock':_0x5b804a};}async[_0x51e6f9(0x114)](_0x27d6b9,_0x2a36f7,_0x49611a={}){const _0x508089=_0x51e6f9;return this['_n'](_0x508089(0x114),[_0x27d6b9,_0x2a36f7,_0x49611a]);}}_0x3591a7[_0x51e6f9(0x2d7)]=function _0x4dc80e(_0xf128df,_0x49e4bf){const _0x116f90=_0x51e6f9;if(typeof _0xf128df!=='string'||!_0xf128df)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x49e4bf!==_0x116f90(0x7c4))throw new Error('registerHandler:\x20fn\x20must\x20be\x20a\x20function');_0x36261f('proc',_0x116f90(0x2d7),[_0xf128df,_0x49e4bf]);},_0x3591a7['registerQuantum']=function _0x47a3ce(_0x124f25,_0x192f4b){const _0x48580c=_0x51e6f9;if(typeof _0x124f25!==_0x48580c(0x229)||!_0x124f25)throw new Error(_0x48580c(0x3c8));if(typeof _0x192f4b!==_0x48580c(0x7c4))throw new Error(_0x48580c(0x728));let _0x237922=null;_0x36261f('proc',_0x48580c(0x5b5),[_0x124f25,(_0x12d503,_0x1d51e1)=>{if(!_0x237922)_0x237922=_0x192f4b();return _0x237922(_0x12d503,_0x1d51e1);}]);},_0x3591a7['_isClosedEnvError']=_0x10df4c=>/closed|not open|released/i[_0x51e6f9(0x458)](String(_0x10df4c)),_0x3591a7['_inlineClosureWarned']=![];function _0x36261f(_0x3bcca1,_0x36e16e,_0x1e360a){const {staticCall:_0x59689f}=requireLib();return _0x59689f(_0x3bcca1,_0x36e16e,_0x1e360a);}return processor[_0x51e6f9(0x1ad)]=_0x3591a7,processor[_0x51e6f9(0x1ad)][_0x51e6f9(0x6fe)]=_0x3591a7,processor[_0x51e6f9(0x1ad)]['setNative']=_0x11ac97,processor[_0x51e6f9(0x1ad)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x3ca350=_0x431d06;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x495f3b={'PUT':_0x3ca350(0x59b),'REMOVE':_0x3ca350(0x4d2),'INDEX_DROP':_0x3ca350(0x61c),'INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x3ca350(0x480),'TYPE_REGISTER':_0x3ca350(0x735),'TYPE_DROP':_0x3ca350(0x1bb),'FTS_REGISTER':_0x3ca350(0x19b),'FTS_DROP':'dropFts','FTS_RESET':'resetFts','SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x3ca350(0x6a6),'TTL_SET':'setTtl','TTL_CLEAR':'clearTtl'},_0x12b5f4={'SYSTEM_READY':_0x3ca350(0x48f),'FIELD_RESOLVER_REGISTERED':_0x3ca350(0x494),'SYSTEM_STOPPED':_0x3ca350(0x169),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x3ca350(0x369),'SYSTEM_TYPE_DROP':_0x3ca350(0x46f),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':_0x3ca350(0x3e6),'ITEM_CREATE':_0x3ca350(0x75f),'ITEM_UPDATE':_0x3ca350(0x28a),'ITEM_REMOVE':_0x3ca350(0x29a),'ITEM_PENDING':_0x3ca350(0x271),'INDEX_RESET':_0x3ca350(0x600),'INDEX_READY':_0x3ca350(0x46e),'INDEX_PROGRESS':_0x3ca350(0x202),'VIEW_PROGRESS':_0x3ca350(0x2d5),'INDEX_DROP':_0x3ca350(0x438),'INDEX_REGISTERED':_0x3ca350(0x538),'FTS_REGISTERED':_0x3ca350(0x6a2),'FTS_DROP':_0x3ca350(0x30b),'FTS_RESET':_0x3ca350(0x3f8),'SCHEMA_SET':_0x3ca350(0x4b7),'SCHEMA_DROP':_0x3ca350(0x112),'UNIQUE_VIOLATION':_0x3ca350(0x1b0),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x3ca350(0xbd),'REF_VIOLATION_RESOLVED':_0x3ca350(0x1ea),'SYNC_APPLY':_0x3ca350(0x118),'TXN_START':_0x3ca350(0x371),'TXN_END':_0x3ca350(0x232),'TXN_ROLLBACK':_0x3ca350(0x3a2),'TYPE_REGISTERED':_0x3ca350(0x6db),'TYPE_DROP':_0x3ca350(0x724),'ENV_OPENED':_0x3ca350(0x351),'ENV_REMOVED':_0x3ca350(0x2c1),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x3ca350(0x1b9),'TTL_SET':'ttl:set','TTL_CLEAR':_0x3ca350(0x79e),'LICENSE_INVALID':_0x3ca350(0x2cf),'LICENSE_ADDED':_0x3ca350(0x392),'LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':'license:removed'},_0x5b7119={'CREATING':_0x3ca350(0x7bd),'RESETTING':_0x3ca350(0x5ef),'READY':_0x3ca350(0x158),'DROPPING':_0x3ca350(0x24c),'WAITING':_0x3ca350(0x1a9),'ERROR':_0x3ca350(0x4ad)},_0x20b976={'CREATED':_0x3ca350(0x44c),'STARTING':_0x3ca350(0x58c),'STARTED':_0x3ca350(0x6ec),'STOPPING':_0x3ca350(0x22e),'STOPPED':_0x3ca350(0x3d7)},_0x161d09={'CREATING':'creating','READY':_0x3ca350(0x158),'HALTED':_0x3ca350(0x208),'STOPPED':_0x3ca350(0x3d7),'RESETTING':_0x3ca350(0x5ef)},_0x250844=Object[_0x3ca350(0x4f8)]({'POKE':'bus:poke','DRAIN':'bus:drain','TYPE_DROP':'bus:type_drop','PROC':_0x3ca350(0x39d),'ENV_RELEASE':_0x3ca350(0x42b)});return okdbEnums={'BUS_EVENTS':_0x250844,'CHANGE_ACTIONS':_0x495f3b,'EVENTS':_0x12b5f4,'INDEX_STATE':_0x5b7119,'OKDB_STATE':_0x20b976,'VIEW_STATE':_0x161d09},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x599b5b=_0x431d06;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x576175={'SKIP':Symbol['for'](_0x599b5b(0x16a))},{OKDBError:_0x5051a6}=requireOkdbError(),_0x46732e={'value':null,'done':!![]};class _0x49d830{constructor(_0xfa959e){this['_makeIterator']=_0xfa959e;}get[_0x599b5b(0x2ea)](){return _0x46732e;}[Symbol[_0x599b5b(0x6b7)]](){const _0x2e95cf=_0x599b5b;return this[_0x2e95cf(0x125)]();}['map'](_0x36349c){const _0x10f875=this;return new _0x49d830(()=>{const _0x1c8211=_0x10f875[Symbol['iterator']]();return{'next'(){const _0x1307dd=_0x41a2;for(;;){const _0x12e64b=_0x1c8211[_0x1307dd(0x133)]();if(_0x12e64b[_0x1307dd(0x248)])return{'done':!![],'value':undefined};const _0x437a3e=_0x36349c(_0x12e64b[_0x1307dd(0x6f0)]);if(_0x437a3e===_0x576175[_0x1307dd(0x4b2)])continue;if(_0x437a3e===_0x46732e)return _0x1c8211[_0x1307dd(0x7b4)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x437a3e};}},'return'(){return _0x1c8211['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x599b5b(0x587)](_0x341f90){const _0x1eee88=_0x599b5b;return this[_0x1eee88(0x1d9)](_0x5a28c2=>_0x341f90(_0x5a28c2)?_0x5a28c2:_0x576175[_0x1eee88(0x4b2)]);}[_0x599b5b(0x64d)](_0x554b83){for(const _0x319012 of this)_0x554b83(_0x319012);}[_0x599b5b(0x331)](_0x3b175b=0x0,_0x2c8051=Infinity){const _0x56fdfe=this;return new _0x49d830(()=>{const _0x3149ca=_0x41a2,_0x27c129=_0x56fdfe[Symbol[_0x3149ca(0x6b7)]]();let _0x26bce7=0x0;return{'next'(){const _0x12ca30=_0x3149ca;for(;;){const _0x446e0e=_0x27c129['next']();if(_0x446e0e[_0x12ca30(0x248)])return{'done':!![],'value':undefined};const _0x476147=_0x26bce7++;if(_0x476147<_0x3b175b)continue;if(_0x476147>=_0x2c8051)return _0x27c129[_0x12ca30(0x7b4)]?.(),{'done':!![],'value':undefined};return _0x446e0e;}},'return'(){return _0x27c129['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x3149ca(0x6b7)]](){return this;}};});}['at'](_0x20396e){let _0x292fe5=0x0;for(const _0x16cf4c of this)if(_0x292fe5++===_0x20396e)return _0x16cf4c;return undefined;}[_0x599b5b(0x43b)](_0x1311ce){const _0xd76f64=this;return new _0x49d830(()=>{const _0x458410=_0x41a2,_0x42f64f=_0xd76f64[Symbol[_0x458410(0x6b7)]]();let _0x4f3df5=[];return{'next'(){const _0x2030c0=_0x458410;for(;;){if(_0x4f3df5[_0x2030c0(0x2a9)])return{'done':![],'value':_0x4f3df5[_0x2030c0(0x40d)]()};const _0x40e610=_0x42f64f[_0x2030c0(0x133)]();if(_0x40e610[_0x2030c0(0x248)])return{'done':!![],'value':undefined};const _0x5ca70f=_0x1311ce(_0x40e610[_0x2030c0(0x6f0)]);if(Array['isArray'](_0x5ca70f))_0x4f3df5=_0x4f3df5['concat'](_0x5ca70f);else{if(_0x5ca70f!=null&&(_0x5ca70f instanceof _0x49d830||typeof _0x5ca70f[Symbol[_0x2030c0(0x6b7)]]===_0x2030c0(0x7c4)&&'asArray'in _0x5ca70f))_0x4f3df5=_0x4f3df5[_0x2030c0(0x70a)](Array[_0x2030c0(0x295)](_0x5ca70f));else{if(_0x5ca70f!==_0x576175[_0x2030c0(0x4b2)])return{'done':![],'value':_0x5ca70f};}}}},'return'(){const _0x4b7020=_0x458410;return _0x42f64f[_0x4b7020(0x7b4)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x599b5b(0x70a)](_0xe11e4e){const _0x5e3242=this;return new _0x49d830(()=>{const _0x22b1da=_0x41a2;let _0x1a290c=_0x5e3242[Symbol[_0x22b1da(0x6b7)]](),_0x471195=![];return{'next'(){const _0x17ac95=_0x22b1da;for(;;){const _0x589d0e=_0x1a290c['next']();if(!_0x589d0e[_0x17ac95(0x248)])return _0x589d0e;if(_0x471195)return{'done':!![],'value':undefined};_0x471195=!![],_0x1a290c=_0xe11e4e[Symbol[_0x17ac95(0x6b7)]]();}},'return'(){const _0x9effb5=_0x22b1da;return _0x1a290c[_0x9effb5(0x7b4)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x22b1da(0x6b7)]](){return this;}};});}[_0x599b5b(0x11c)](_0x27d5e2){const _0x12579a=this;return new _0x49d830(()=>{const _0xe75666=_0x41a2,_0x3ea3bd=_0x12579a[Symbol[_0xe75666(0x6b7)]]();return{'next'(){const _0x3eab92=_0xe75666;for(;;){try{return _0x3ea3bd[_0x3eab92(0x133)]();}catch(_0x1663a2){const _0x456492=_0x27d5e2(_0x1663a2);if(_0x456492===_0x576175[_0x3eab92(0x4b2)]||_0x456492===undefined)continue;return{'done':![],'value':_0x456492};}}},'return'(){const _0xf5a943=_0xe75666;return _0x3ea3bd[_0xf5a943(0x7b4)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['toJSON'](){const _0x36111c=_0x599b5b;return Array[_0x36111c(0x295)](this);}get['asArray'](){const _0x571f5a=_0x599b5b;return Array[_0x571f5a(0x295)](this);}}const _0x151801={'total':0x0,'byLabel':{},'last':null};function _0xb9a51f(_0x193473){const _0x42da7a=_0x599b5b;_0x151801['total']++;if(_0x193473)_0x151801[_0x42da7a(0x34a)][_0x193473]=(_0x151801[_0x42da7a(0x34a)][_0x193473]??0x0)+0x1;_0x151801['last']={'label':_0x193473??null,'at':Date[_0x42da7a(0x772)]()};}function _0xc310cf(){const _0x51f864=_0x599b5b;return{'total':_0x151801[_0x51f864(0x2e8)],'byLabel':{..._0x151801['byLabel']},'last':_0x151801['last']};}function _0x389c64(_0x414fa2,_0x374bf5={}){const {getTxnId:_0x15bc0d,resume:_0xa0ea06,label:_0x3fa5df,baseline:_0x37124b}=_0x374bf5;return new _0x49d830(()=>{const _0x5f9fcf=_0x41a2;let _0x2dbcb8=null,_0x8d91ee=![],_0x5581cf=![],_0x411439=![],_0x12b2e9,_0x220570=0x0,_0x4e86e2;return{'next'(){const _0x31bc1b=_0x41a2;if(_0x411439)return{'done':!![],'value':undefined};if(_0x5581cf){let _0x97a38e=![];if(_0xa0ea06&&_0x15bc0d)try{_0x97a38e=_0x15bc0d()===_0x4e86e2;}catch{}if(!_0x97a38e){_0x411439=!![],_0xb9a51f(_0x3fa5df);throw new _0x5051a6(_0xa0ea06?_0x31bc1b(0xce)+_0x31bc1b(0x162)+_0x31bc1b(0x54b):_0x31bc1b(0x4e8)+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x31bc1b(0x1dc),'READER_HELD_ACROSS_AWAIT');}_0x2dbcb8=_0xa0ea06(_0x12b2e9,_0x220570)[Symbol[_0x31bc1b(0x6b7)]](),_0x5581cf=![];}if(!_0x2dbcb8){if(_0x37124b!==undefined)_0x4e86e2=_0x37124b;else try{_0x4e86e2=_0x15bc0d?_0x15bc0d():undefined;}catch{_0x4e86e2=undefined;}try{_0x2dbcb8=_0x414fa2()[Symbol['iterator']]();}catch(_0x334780){_0x411439=!![];throw _0x334780;}}!_0x8d91ee&&(_0x8d91ee=!![],queueMicrotask(()=>{const _0x9a4766=_0x31bc1b;_0x8d91ee=![];if(_0x411439||_0x5581cf)return;try{_0x2dbcb8?.[_0x9a4766(0x7b4)]?.();}catch{}_0x2dbcb8=null,_0x5581cf=!![];}));const _0x5cea98=_0x2dbcb8['next']();if(_0x5cea98[_0x31bc1b(0x248)])return _0x411439=!![],{'done':!![],'value':undefined};return _0x12b2e9=_0x5cea98[_0x31bc1b(0x6f0)],_0x220570++,_0x5cea98;},'return'(){_0x411439=!![];try{_0x2dbcb8?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x5f9fcf(0x6b7)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x389c64,'OKDBGuardedRange':_0x49d830,'recordGuardTrip':_0xb9a51f,'getGuardTripStats':_0xc310cf},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x36dcdd=_0x431d06;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x6f7828,performance:_0x30ddb2}=require$$0$1,_0x380916=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x36dcdd(0x4de),_0x25b2e6=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x5b8e01=process.env.OKDB_LOOP_LAG_ALL==='1',_0x23a0c9=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x2240a0{constructor(){const _0x5b6fc2=_0x36dcdd;this[_0x5b6fc2(0x671)]=_0x380916,this[_0x5b6fc2(0x12a)]=new Map(),this['_h']=null,this[_0x5b6fc2(0x167)]=null,this[_0x5b6fc2(0x2a2)]=![],this[_0x5b6fc2(0x6d7)]=(_0x452b95,_0x18dae7)=>process[_0x5b6fc2(0x53c)][_0x5b6fc2(0x75a)](_0x452b95+(_0x18dae7?'\x20'+JSON['stringify'](_0x18dae7):'')+'\x0a');}[_0x36dcdd(0x772)](){return _0x30ddb2['now']();}[_0x36dcdd(0x33e)](_0x3ed177){const _0x4aa866=_0x36dcdd;if(typeof _0x3ed177===_0x4aa866(0x7c4))this['_log']=_0x3ed177;}[_0x36dcdd(0x5ee)](_0x8f7ce5,_0x39cbdd,_0x15531a){const _0x5d2609=_0x36dcdd;if(!this[_0x5d2609(0x671)])return;let _0x42d8b5=this[_0x5d2609(0x12a)][_0x5d2609(0x1bc)](_0x8f7ce5);!_0x42d8b5&&(_0x42d8b5={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x5d2609(0x12a)][_0x5d2609(0x48c)](_0x8f7ce5,_0x42d8b5)),_0x42d8b5['ms']+=_0x39cbdd,_0x42d8b5[_0x5d2609(0x70b)]+=0x1,_0x39cbdd>_0x42d8b5['maxMs']&&(_0x42d8b5['maxMs']=_0x39cbdd,_0x42d8b5[_0x5d2609(0x7d3)]=_0x15531a||'');}[_0x36dcdd(0x432)](_0x4a70ff){const _0x732fc4=_0x36dcdd;if(!this[_0x732fc4(0x671)]||this[_0x732fc4(0x2a2)])return;this[_0x732fc4(0x2a2)]=!![];if(_0x4a70ff)this[_0x732fc4(0x6d7)]=_0x4a70ff;this['_h']=_0x6f7828({'resolution':0xa}),this['_h'][_0x732fc4(0x493)](),this[_0x732fc4(0x167)]=setInterval(()=>this[_0x732fc4(0x37e)](),_0x25b2e6);if(this[_0x732fc4(0x167)]['unref'])this[_0x732fc4(0x167)][_0x732fc4(0x490)]();}[_0x36dcdd(0xcb)](_0x44525e){const _0x4c051c=_0x36dcdd;if(!this['_windowCbs'])this['_windowCbs']=new Set();this[_0x4c051c(0x502)][_0x4c051c(0x3a8)](_0x44525e);if(!this[_0x4c051c(0x2a2)])this[_0x4c051c(0x753)]();}[_0x36dcdd(0x289)](_0x5207f1){const _0x12ca3f=_0x36dcdd;this[_0x12ca3f(0x502)]?.[_0x12ca3f(0x7ec)](_0x5207f1);}[_0x36dcdd(0x753)](){const _0x435068=_0x36dcdd;if(this[_0x435068(0x449)])return;this[_0x435068(0x449)]=!![];!this['_h']&&(this['_h']=_0x6f7828({'resolution':0xa}),this['_h'][_0x435068(0x493)]());const _0x495889=_0x25b2e6;this[_0x435068(0x47d)]=setInterval(()=>{const _0x26431e=_0x435068,_0x2809bf=this['_h'];if(!_0x2809bf)return;const _0x457342=_0x2809bf[_0x26431e(0x6d6)](0x63)/0xf4240,_0x4a5ef1=_0x2809bf['max']/0xf4240,_0x4e176a=_0x2809bf['mean']/0xf4240;_0x2809bf['reset']();if(this[_0x26431e(0x502)])for(const _0xdd95b2 of this[_0x26431e(0x502)]){try{_0xdd95b2({'p99Ms':_0x457342,'maxMs':_0x4a5ef1,'meanMs':_0x4e176a,'reportMs':_0x495889});}catch{}}},_0x495889);if(this['_admissionTimer'][_0x435068(0x490)])this['_admissionTimer'][_0x435068(0x490)]();}['_report'](){const _0x24823e=_0x36dcdd,_0x247374=this['_h'],_0x304c6a=_0x247374[_0x24823e(0x380)]/0xf4240,_0x208e0a=_0x247374[_0x24823e(0x6d6)](0x63)/0xf4240,_0x17144f=_0x247374[_0x24823e(0x3bd)]/0xf4240;_0x247374[_0x24823e(0x60f)]();const _0x3b9856=[...this[_0x24823e(0x12a)][_0x24823e(0x2d3)]()][_0x24823e(0x1d9)](([_0x359d44,_0x3045f4])=>({'label':_0x359d44,..._0x3045f4}))[_0x24823e(0x317)]((_0x4438d3,_0x47f6a6)=>_0x47f6a6['ms']-_0x4438d3['ms'])[_0x24823e(0x331)](0x0,0x8);this[_0x24823e(0x12a)][_0x24823e(0x544)]();const _0x26e943=_0x3b9856['reduce']((_0x40f089,_0x2a7506)=>_0x40f089+_0x2a7506['ms'],0x0),_0x2c51fd=_0x3b9856['map'](_0x37c472=>_0x37c472[_0x24823e(0x52f)]+'='+_0x37c472['ms']['toFixed'](0x0)+_0x24823e(0x78a)+_0x37c472[_0x24823e(0x70b)]+(_0x37c472[_0x24823e(0x312)]>0x5?_0x24823e(0x7d8)+_0x37c472['maxMs']['toFixed'](0x0)+'ms'+(_0x37c472['maxExtra']?'\x20'+_0x37c472[_0x24823e(0x7d3)]:'')+')':''));(_0x5b8e01||_0x304c6a>=_0x23a0c9)&&this[_0x24823e(0x6d7)](_0x24823e(0x382)+_0x25b2e6+_0x24823e(0x257)+_0x304c6a['toFixed'](0x0)+_0x24823e(0x517)+_0x208e0a[_0x24823e(0x108)](0x0)+_0x24823e(0x5ea)+_0x17144f['toFixed'](0x0)+'ms\x20busy='+_0x26e943['toFixed'](0x0)+'ms'+(_0x2c51fd[_0x24823e(0x2a9)]?_0x24823e(0x298)+_0x2c51fd[_0x24823e(0x7d6)]('\x20\x20'):''),{'feature':_0x24823e(0x715)});if(this[_0x24823e(0x502)])for(const _0x2ea85c of this[_0x24823e(0x502)]){try{_0x2ea85c({'p99Ms':_0x208e0a,'maxMs':_0x304c6a,'meanMs':_0x17144f,'reportMs':_0x25b2e6});}catch{}}}[_0x36dcdd(0x4ff)](){const _0xb59f2c=_0x36dcdd;if(this[_0xb59f2c(0x167)])clearInterval(this[_0xb59f2c(0x167)]);if(this['_h'])this['_h']['disable']();this[_0xb59f2c(0x167)]=null,this['_h']=null,this[_0xb59f2c(0x2a2)]=![];}}const _0x23ffb1=new _0x2240a0();if(_0x23ffb1[_0x36dcdd(0x671)])_0x23ffb1['start']();return okdbLoopMonitor={'LOOP':_0x23ffb1},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x983eea=_0x431d06;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0xd33b75={'v4':()=>require$$0$2[_0x983eea(0x33b)]()},{EVENTS:_0x14a8cf}=requireOkdbEnums(),{OKDBError:_0x2a8bd8}=requireOkdbError(),{recordGuardTrip:_0xb404e9,guardSnapshotIterable:_0x4521ef}=requireOkdbGuardedRange(),{LOOP:_0x491817}=requireOkdbLoopMonitor();function _0x22b6b4(_0x30fbf8){const _0x2586aa=_0x983eea;return _0x30fbf8[_0x2586aa(0x1d9)](_0x1c09ac=>{const _0x576d41=_0x2586aa,[_0x285ff3,_0x10fa15]=_0x1c09ac['args']||[];return{'action':_0x1c09ac[_0x576d41(0x1c6)],'type':_0x285ff3,'key':_0x10fa15};});}class _0x4a65b7{['okdb'];[_0x983eea(0x7a4)]=[];[_0x983eea(0x48a)]=[];[_0x983eea(0x4da)]=[];constructor(_0x2a5526,_0x67212c={'useReadTransaction':![]}){const _0x31fe99=_0x983eea;this[_0x31fe99(0x6ff)]=_0x2a5526,this[_0x31fe99(0x2f0)]=_0x67212c,this['id']=_0xd33b75['v4']();if(this['options'][_0x31fe99(0x4bd)])try{this['_txnIdAtSnapshot']=this[_0x31fe99(0x6ff)]['db']['getStats']()[_0x31fe99(0x79b)];}catch{this[_0x31fe99(0x2bc)]=undefined;}this[_0x31fe99(0x224)]=this[_0x31fe99(0x2f0)]['useReadTransaction']?this[_0x31fe99(0x6ff)]['db'][_0x31fe99(0x4bd)]():null,this['_closed']=![],this[_0x31fe99(0x53e)]=![],this[_0x31fe99(0x224)]&&queueMicrotask(()=>{const _0x5776ef=_0x31fe99;this[_0x5776ef(0x224)]&&(this[_0x5776ef(0x1a3)](),this[_0x5776ef(0x53e)]=!![]);});}[_0x983eea(0x269)](_0x3ca3d4){const _0x39c91f=_0x983eea;this[_0x39c91f(0x48a)][_0x39c91f(0x540)](_0x3ca3d4);}['onUndo'](_0x1a8d76){const _0x4f2693=_0x983eea;this[_0x4f2693(0x4da)]['push'](_0x1a8d76);}[_0x983eea(0x1a3)](){const _0x858a8c=_0x983eea;if(!this[_0x858a8c(0x224)])return;try{this[_0x858a8c(0x224)][_0x858a8c(0x248)]();}catch(_0x5d0122){}this[_0x858a8c(0x224)]=null;}[_0x983eea(0x187)](){const _0x172093=_0x983eea;if(this[_0x172093(0x784)])throw new _0x2a8bd8('Transaction\x20already\x20closed',_0x172093(0x275));if(this[_0x172093(0x53e)]){let _0xa8ea0a=![];if(this['options'][_0x172093(0x4bd)]==='tolerant'&&this['_txnIdAtSnapshot']!==undefined)try{_0xa8ea0a=this['okdb']['db'][_0x172093(0x5a3)]()[_0x172093(0x79b)]===this[_0x172093(0x2bc)];}catch{}if(!_0xa8ea0a){_0xb404e9((this[_0x172093(0x6ff)]?.['name']??'?')+_0x172093(0x2c2));throw new _0x2a8bd8(_0x172093(0x2af)+'boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20'+_0x172093(0x6b4)+_0x172093(0x455),_0x172093(0x698));}}}[_0x983eea(0x1bc)](_0x437c99,_0x448122){const _0x9c7345=_0x983eea;return this['_assertOpen'](),this[_0x9c7345(0x6ff)][_0x9c7345(0x1bc)](_0x437c99,_0x448122,{'transaction':this[_0x9c7345(0x224)]});}[_0x983eea(0x153)](_0x5083a4,_0xaaa431){const _0x2d701e=_0x983eea;return this[_0x2d701e(0x187)](),this['okdb'][_0x2d701e(0x153)](_0x5083a4,_0xaaa431,{'transaction':this[_0x2d701e(0x224)]});}[_0x983eea(0x63b)](_0x2f8bd2,_0x12c200){const _0x3410a6=_0x983eea;return this[_0x3410a6(0x187)](),this[_0x3410a6(0x6ff)][_0x3410a6(0x63b)](_0x2f8bd2,_0x12c200,{'transaction':this[_0x3410a6(0x224)]});}[_0x983eea(0x306)](_0x4edf52){const _0x51c1e4=_0x983eea;if(!this[_0x51c1e4(0x2f0)]['useReadTransaction'])return _0x4edf52;if(_0x4edf52&&typeof _0x4edf52['then']==='function')return _0x4edf52;if(Array[_0x51c1e4(0x17d)](_0x4edf52))return _0x4edf52;const _0x1f02cb=this,_0x2692d0=_0x1f02cb[_0x51c1e4(0x2f0)]['useReadTransaction']===_0x51c1e4(0x25e),_0x7c3b38=()=>{const _0x244412=_0x51c1e4;if(!_0x1f02cb[_0x244412(0x53e)])return![];if(!_0x2692d0)return!![];if(_0x1f02cb[_0x244412(0x2bc)]===undefined)return!![];try{return _0x1f02cb[_0x244412(0x6ff)]['db'][_0x244412(0x5a3)]()[_0x244412(0x79b)]!==_0x1f02cb[_0x244412(0x2bc)];}catch{return!![];}};return _0x4521ef(()=>{const _0x3fe7f9=_0x51c1e4;if(_0x1f02cb['_closed'])throw new _0x2a8bd8(_0x3fe7f9(0x2b5),_0x3fe7f9(0x275));if(_0x7c3b38()){_0xb404e9((_0x1f02cb[_0x3fe7f9(0x6ff)]?.[_0x3fe7f9(0x5e6)]??'?')+_0x3fe7f9(0x1ee));throw new _0x2a8bd8('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x3fe7f9(0x139)+_0x3fe7f9(0x518),_0x3fe7f9(0x698));}return _0x4edf52;},{'label':(_0x1f02cb[_0x51c1e4(0x6ff)]?.[_0x51c1e4(0x5e6)]??'?')+_0x51c1e4(0x1ee),..._0x2692d0?{'baseline':_0x1f02cb['_txnIdAtSnapshot'],'getTxnId':()=>_0x1f02cb[_0x51c1e4(0x6ff)]['db'][_0x51c1e4(0x5a3)]()[_0x51c1e4(0x79b)],'resume':(_0x144331,_0x2eb409)=>_0x4edf52[_0x51c1e4(0x331)](_0x2eb409)}:{}});}[_0x983eea(0x1bd)](_0x54fa8f,_0x3692de={}){const _0x5f0523=_0x983eea;return this[_0x5f0523(0x187)](),this[_0x5f0523(0x306)](this[_0x5f0523(0x6ff)]['getRange'](_0x54fa8f,{'transaction':this[_0x5f0523(0x224)],..._0x3692de}));}[_0x983eea(0x4dd)](_0x2fdfd3,_0x1fbd9a={}){const _0x430167=_0x983eea;return this[_0x430167(0x187)](),this['_range'](this[_0x430167(0x6ff)][_0x430167(0x4dd)](_0x2fdfd3,{'transaction':this[_0x430167(0x224)],..._0x1fbd9a}));}['getKeys'](_0x678bea,_0x5b5b1c={}){const _0x27c5c4=_0x983eea;return this[_0x27c5c4(0x187)](),this[_0x27c5c4(0x306)](this[_0x27c5c4(0x6ff)][_0x27c5c4(0x677)](_0x678bea,{'transaction':this[_0x27c5c4(0x224)],..._0x5b5b1c}));}[_0x983eea(0x372)](_0x5af962,_0x58f688,_0x4adedf={}){const _0x1fc613=_0x983eea;return this[_0x1fc613(0x187)](),this[_0x1fc613(0x306)](this[_0x1fc613(0x6ff)]['byIndex'](_0x5af962,_0x58f688,{'transaction':this[_0x1fc613(0x224)],..._0x4adedf}));}['query'](_0x419e81,_0x29ef16,_0x15dff3={}){const _0x14dbb1=_0x983eea;return this[_0x14dbb1(0x187)](),this[_0x14dbb1(0x306)](this[_0x14dbb1(0x6ff)][_0x14dbb1(0x787)](_0x419e81,_0x29ef16,{'transaction':this[_0x14dbb1(0x224)],..._0x15dff3}));}[_0x983eea(0x41d)](_0x6be7c0=null){const _0x11552f=_0x983eea;return this[_0x11552f(0x187)](),this['okdb'][_0x11552f(0x41d)](_0x6be7c0,{'transaction':this[_0x11552f(0x224)]});}[_0x983eea(0x156)](_0x374406){const _0x176c0f=_0x983eea;return this[_0x176c0f(0x187)](),this[_0x176c0f(0x6ff)]['getCount'](_0x374406,{'transaction':this[_0x176c0f(0x224)]});}[_0x983eea(0x59b)](_0x4aa3ea,_0x553970,_0x57300d,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x983eea(0x772)](),origin:origin=null,ttl:ttl=null}={}){const _0x47f744=_0x983eea;this[_0x47f744(0x7a4)][_0x47f744(0x540)]({'action':_0x47f744(0x59b),'args':[_0x4aa3ea,_0x553970,_0x57300d,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x2bd)](_0x140e27,_0x4294a5,_0x155af3,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x983eea(0x772)](),origin:origin=null,ttl:ttl=null}={}){const _0x5e785a=_0x983eea;this[_0x5e785a(0x7a4)][_0x5e785a(0x540)]({'action':_0x5e785a(0x2bd),'args':[_0x140e27,_0x4294a5,_0x155af3,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x3fb)](_0x527cc0,_0x53d930,_0x499b21,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x983eea(0x772)](),origin:origin=null,ttl:ttl=null}={}){const _0x210b0b=_0x983eea;this[_0x210b0b(0x7a4)]['push']({'action':_0x210b0b(0x3fb),'args':[_0x527cc0,_0x53d930,_0x499b21,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x748)](_0x2f8600,_0x1986d8,_0x17bd15,{version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0xa33aef=_0x983eea;this['actions'][_0xa33aef(0x540)]({'action':_0xa33aef(0x748),'args':[_0x2f8600,_0x1986d8,_0x17bd15,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x4d2)](_0x1910d9,_0x310696,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x5c6075=_0x983eea;this['actions'][_0x5c6075(0x540)]({'action':_0x5c6075(0x4d2),'args':[_0x1910d9,_0x310696,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x983eea(0x5cf)](_0x1966bd,_0x5e495a,_0x13eed4){const _0x524377=_0x983eea;this['actions'][_0x524377(0x540)]({'action':'setTTL','args':[_0x1966bd,_0x5e495a,_0x13eed4]});}[_0x983eea(0x272)](_0x2c7f4f,_0x57f71c){const _0x7b9d52=_0x983eea;this[_0x7b9d52(0x7a4)]['push']({'action':_0x7b9d52(0x272),'args':[_0x2c7f4f,_0x57f71c]});}[_0x983eea(0x604)](){const _0x11372c=_0x983eea;if(this[_0x11372c(0x784)])return;for(const _0x4dd39c of this['_undoHooks']){try{_0x4dd39c();}catch{}}this[_0x11372c(0x6ff)]['events'][_0x11372c(0x36e)](_0x14a8cf[_0x11372c(0x54c)],{'id':this['id']}),this['actions']=[],this[_0x11372c(0x1a3)](),this[_0x11372c(0x784)]=!![];}async[_0x983eea(0x7dd)](){const _0x8a6867=_0x983eea;if(this[_0x8a6867(0x784)])throw new Error('Transaction\x20already\x20closed');const _0x1f748d={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x8a6867(0x7a4)]};this[_0x8a6867(0x6ff)][_0x8a6867(0x6bf)]['emit'](_0x14a8cf['TXN_START'],_0x1f748d);try{const _0x1363ec=_0x491817[_0x8a6867(0x671)]?_0x491817['now']():0x0;await this['okdb'][_0x8a6867(0x62f)][_0x8a6867(0x241)](()=>{const _0x1f2536=_0x8a6867;for(const _0x34bdf7 of this[_0x1f2536(0x7a4)]){const _0x4f3b48=this[_0x1f2536(0x6ff)]['_'+_0x34bdf7[_0x1f2536(0x1c6)]];if(typeof _0x4f3b48!==_0x1f2536(0x7c4))throw new Error(_0x1f2536(0x1e8)+_0x34bdf7[_0x1f2536(0x1c6)]);_0x4f3b48[_0x1f2536(0x7cd)](this[_0x1f2536(0x6ff)],this,..._0x34bdf7[_0x1f2536(0x211)]);}}),_0x491817[_0x8a6867(0x671)]&&_0x491817[_0x8a6867(0x5ee)]('txn-commit',_0x491817['now']()-_0x1363ec,(this['okdb'][_0x8a6867(0x5e6)]??'?')+'\x20actions='+this['actions']['length']);}catch(_0x5a0ff1){for(const _0xf52715 of this[_0x8a6867(0x4da)]){try{_0xf52715();}catch{}}this[_0x8a6867(0x1a3)](),this[_0x8a6867(0x784)]=!![];if(_0x5a0ff1 instanceof _0x2a8bd8)throw _0x5a0ff1;const _0x1a7651={'cause':_0x5a0ff1,'env':this['okdb']?.[_0x8a6867(0x5e6)],'envPath':this['okdb']?.['path'],'pid':process[_0x8a6867(0x541)],'txnId':this['id'],'actionCount':this[_0x8a6867(0x7a4)]['length'],'actions':_0x22b6b4(this[_0x8a6867(0x7a4)]),'nativeCode':_0x5a0ff1?.['code'],'nativeName':_0x5a0ff1?.[_0x8a6867(0x5e6)]};try{this[_0x8a6867(0x6ff)]?.[_0x8a6867(0x745)]?.[_0x8a6867(0x4ad)]?.(_0x8a6867(0x5c3),{'env':_0x1a7651[_0x8a6867(0x3c4)],'envPath':_0x1a7651[_0x8a6867(0xdc)],'pid':_0x1a7651[_0x8a6867(0x541)],'txnId':_0x1a7651[_0x8a6867(0x398)],'actionCount':_0x1a7651[_0x8a6867(0x2b3)],'actions':_0x1a7651[_0x8a6867(0x7a4)],'nativeCode':_0x1a7651['nativeCode'],'error':_0x5a0ff1?.['message'],'stack':_0x5a0ff1?.[_0x8a6867(0x575)]});}catch{}throw new _0x2a8bd8(_0x5a0ff1?.['message']||_0x8a6867(0x7e6),_0x8a6867(0xc4),_0x1a7651);}this[_0x8a6867(0x6ff)][_0x8a6867(0x6bf)]['emit'](_0x14a8cf['TXN_END'],_0x1f748d);for(const _0x3ea7f1 of this['_doHooks']){try{await _0x3ea7f1();}catch{}}this[_0x8a6867(0x7a4)]=[],this[_0x8a6867(0x1a3)](),this['_closed']=!![];}static[_0x983eea(0x4f0)](_0x57a13a){const _0x17e86a=_0x983eea;return Object[_0x17e86a(0x4f8)]({'id':_0x57a13a['id'],'put':_0x57a13a[_0x17e86a(0x59b)][_0x17e86a(0x7d2)](_0x57a13a),'update':_0x57a13a[_0x17e86a(0x2bd)][_0x17e86a(0x7d2)](_0x57a13a),'patch':_0x57a13a[_0x17e86a(0x3fb)][_0x17e86a(0x7d2)](_0x57a13a),'create':_0x57a13a[_0x17e86a(0x748)][_0x17e86a(0x7d2)](_0x57a13a),'remove':_0x57a13a[_0x17e86a(0x4d2)][_0x17e86a(0x7d2)](_0x57a13a),'setTTL':_0x57a13a['setTTL'][_0x17e86a(0x7d2)](_0x57a13a),'clearTTL':_0x57a13a[_0x17e86a(0x272)][_0x17e86a(0x7d2)](_0x57a13a),'commit':_0x57a13a['commit'][_0x17e86a(0x7d2)](_0x57a13a),'rollback':_0x57a13a[_0x17e86a(0x604)][_0x17e86a(0x7d2)](_0x57a13a),'get':_0x57a13a[_0x17e86a(0x1bc)][_0x17e86a(0x7d2)](_0x57a13a),'getEntry':_0x57a13a[_0x17e86a(0x153)][_0x17e86a(0x7d2)](_0x57a13a),'getMany':_0x57a13a['getMany'][_0x17e86a(0x7d2)](_0x57a13a),'getRange':_0x57a13a[_0x17e86a(0x1bd)][_0x17e86a(0x7d2)](_0x57a13a),'getValues':_0x57a13a[_0x17e86a(0x4dd)][_0x17e86a(0x7d2)](_0x57a13a),'getKeys':_0x57a13a[_0x17e86a(0x677)][_0x17e86a(0x7d2)](_0x57a13a),'byIndex':_0x57a13a[_0x17e86a(0x372)][_0x17e86a(0x7d2)](_0x57a13a),'query':_0x57a13a[_0x17e86a(0x787)][_0x17e86a(0x7d2)](_0x57a13a),'getClock':_0x57a13a[_0x17e86a(0x41d)][_0x17e86a(0x7d2)](_0x57a13a),'getCount':_0x57a13a[_0x17e86a(0x156)][_0x17e86a(0x7d2)](_0x57a13a),'read':_0x57a13a,'raw':_0x57a13a});}static[_0x983eea(0x236)](_0x1ebae7,_0x1d3d4a=[]){const _0x561260=_0x983eea;if(!Array[_0x561260(0x17d)](_0x1d3d4a))throw new _0x2a8bd8('txn\x20ops\x20must\x20be\x20an\x20array',_0x561260(0x44f));for(const _0x3f3301 of _0x1d3d4a){if(Array[_0x561260(0x17d)](_0x3f3301)){const [_0x1c855a,..._0x5e5edd]=_0x3f3301;if(typeof _0x1ebae7[_0x1c855a]!==_0x561260(0x7c4))throw new _0x2a8bd8(_0x561260(0x1e8)+_0x1c855a,_0x561260(0x3be),{'action':_0x1c855a});_0x1ebae7[_0x1c855a](..._0x5e5edd);continue;}if(!_0x3f3301||typeof _0x3f3301!==_0x561260(0x4ed))throw new _0x2a8bd8('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x561260(0x16d));const {action:_0x279309}=_0x3f3301;if(typeof _0x279309!==_0x561260(0x229)||typeof _0x1ebae7[_0x279309]!==_0x561260(0x7c4))throw new _0x2a8bd8(_0x561260(0x1e8)+_0x279309,_0x561260(0x3be),{'action':_0x279309});switch(_0x279309){case _0x561260(0x59b):case _0x561260(0x2bd):case'create':_0x1ebae7[_0x279309](_0x3f3301[_0x561260(0x690)],_0x3f3301['key'],_0x3f3301[_0x561260(0x6f0)],{..._0x3f3301[_0x561260(0x2f0)],'ttl':_0x3f3301[_0x561260(0x12e)]??_0x3f3301['options']?.[_0x561260(0x12e)]??null});break;case _0x561260(0x3fb):_0x1ebae7['patch'](_0x3f3301[_0x561260(0x690)],_0x3f3301['key'],_0x3f3301[_0x561260(0x3fb)],{..._0x3f3301[_0x561260(0x2f0)],'ttl':_0x3f3301[_0x561260(0x12e)]??_0x3f3301[_0x561260(0x2f0)]?.['ttl']??null});break;case _0x561260(0x4d2):_0x1ebae7['remove'](_0x3f3301[_0x561260(0x690)],_0x3f3301[_0x561260(0x590)],_0x3f3301[_0x561260(0x2f0)]||{});break;case _0x561260(0x5cf):_0x1ebae7['setTTL'](_0x3f3301[_0x561260(0x690)],_0x3f3301[_0x561260(0x590)],_0x3f3301[_0x561260(0x12e)]);break;case'clearTTL':_0x1ebae7['clearTTL'](_0x3f3301[_0x561260(0x690)],_0x3f3301['key']);break;default:throw new _0x2a8bd8(_0x561260(0xd2)+_0x279309,_0x561260(0x3be),{'action':_0x279309});}}}static async[_0x983eea(0x349)](_0x20dced,_0x3fbf4e,_0x3d3341={}){const _0x38c709=_0x983eea,_0x480ce7=new _0x4a65b7(_0x20dced,_0x3d3341),_0x4d10ea=_0x4a65b7['createWriteFacade'](_0x480ce7);try{typeof _0x3fbf4e===_0x38c709(0x7c4)?await _0x3fbf4e(_0x4d10ea):_0x4a65b7['applyOps'](_0x480ce7,_0x3fbf4e||[]);const _0x1b81f4=_0x480ce7[_0x38c709(0x7a4)]['length'];return await _0x480ce7[_0x38c709(0x7dd)](),{'id':_0x480ce7['id'],'actions':_0x1b81f4};}catch(_0x228d84){try{_0x480ce7[_0x38c709(0x604)]();}catch(_0x5e3aaf){}throw _0x228d84;}}}return okdbTransaction=_0x4a65b7,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x50ac69=_0x431d06;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x50ac69(0x332)](dist,'__esModule',{'value':!![]});const _0x3d8a1c=new Float64Array(0x2),_0xc51170=new Int32Array(_0x3d8a1c['buffer'],0x0,0x4),{lowIdx:_0x12c752,highIdx:_0x55d7f4}=((()=>{const _0x571487=_0x50ac69;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x571487(0x3a4)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x5ce9c9=![],_0x11025e;try{_0x11025e=new TextEncoder();}catch(_0xae24fe){}function _0xa005b0(_0xb379b0,_0x1f2fcb,position,_0x467cb0){const _0xb1a677=_0x50ac69;let _0x4cc050=_0x1f2fcb['dataView'];if(!_0x4cc050)_0x4cc050=_0x1f2fcb[_0xb1a677(0x4ae)]=new DataView(_0x1f2fcb['buffer'],_0x1f2fcb[_0xb1a677(0x431)],_0x1f2fcb['byteLength']+0x3>>0x2<<0x2);switch(typeof _0xb379b0){case _0xb1a677(0x229):let _0x19ee99=_0xb379b0[_0xb1a677(0x2a9)],_0x4a7938=_0xb379b0['charCodeAt'](0x0);if(!(_0x4a7938>=0x1c))_0x1f2fcb[position++]=0x1b;if(_0x19ee99<0x40){let _0x2d5ed1,_0x1724bf;for(_0x2d5ed1=0x0;_0x2d5ed1<_0x19ee99;_0x2d5ed1++){_0x4a7938=_0xb379b0[_0xb1a677(0x1c1)](_0x2d5ed1);if(_0x4a7938<=0x4)_0x1f2fcb[position++]=0x4,_0x1f2fcb[position++]=_0x4a7938;else{if(_0x4a7938<0x80)_0x1f2fcb[position++]=_0x4a7938;else{if(_0x4a7938<0x800)_0x1f2fcb[position++]=_0x4a7938>>0x6|0xc0,_0x1f2fcb[position++]=_0x4a7938&0x3f|0x80;else(_0x4a7938&0xfc00)===0xd800&&((_0x1724bf=_0xb379b0['charCodeAt'](_0x2d5ed1+0x1))&0xfc00)===0xdc00?(_0x4a7938=0x10000+((_0x4a7938&0x3ff)<<0xa)+(_0x1724bf&0x3ff),_0x2d5ed1++,_0x1f2fcb[position++]=_0x4a7938>>0x12|0xf0,_0x1f2fcb[position++]=_0x4a7938>>0xc&0x3f|0x80,_0x1f2fcb[position++]=_0x4a7938>>0x6&0x3f|0x80,_0x1f2fcb[position++]=_0x4a7938&0x3f|0x80):(_0x1f2fcb[position++]=_0x4a7938>>0xc|0xe0,_0x1f2fcb[position++]=_0x4a7938>>0x6&0x3f|0x80,_0x1f2fcb[position++]=_0x4a7938&0x3f|0x80);}}}}else{if(_0x1f2fcb['utf8Write'])position+=_0x1f2fcb[_0xb1a677(0x21d)](_0xb379b0,position,_0x1f2fcb['byteLength']-position);else position+=_0x11025e[_0xb1a677(0x5c6)](_0xb379b0,_0x1f2fcb[_0xb1a677(0x406)](position))[_0xb1a677(0x633)];if(position>_0x1f2fcb[_0xb1a677(0x2a9)]-0x4)throw new RangeError(_0xb1a677(0x62d));}break;case _0xb1a677(0x1ce):_0x3d8a1c[0x0]=_0xb379b0;let _0x2c9d62=_0xc51170[_0x12c752],_0x5b3c8e=_0xc51170[_0x55d7f4],_0x5665fe;if(_0xb379b0<0x0)return _0x4cc050['setInt32'](position+0x4,~(_0x2c9d62>>>0x4|_0x5b3c8e<<0x1c)),_0x4cc050[_0xb1a677(0x30e)](position+0x0,(_0x5b3c8e^0x7fffffff)>>>0x4),_0x4cc050[_0xb1a677(0x30e)](position+0x8,(_0x2c9d62&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x2c9d62&0xf||_0x467cb0)_0x5665fe=0x9;else{if(_0x2c9d62&0xfffff)_0x5665fe=0x8;else{if(_0x2c9d62||_0x5b3c8e&0xf)_0x5665fe=0x6;else _0x5665fe=0x4;}}}_0x4cc050[_0xb1a677(0x30e)](position+0x0,_0x5b3c8e>>>0x4|0x10000000),_0x4cc050[_0xb1a677(0x30e)](position+0x4,_0x2c9d62>>>0x4|_0x5b3c8e<<0x1c),_0x4cc050[_0xb1a677(0x30e)](position+0x8,(_0x2c9d62&0xf)<<0x4,!![]);return position+_0x5665fe;case _0xb1a677(0x4ed):if(_0xb379b0){if(Array[_0xb1a677(0x17d)](_0xb379b0)){for(let _0x229a80=0x0,_0x97efee=_0xb379b0['length'];_0x229a80<_0x97efee;_0x229a80++){if(_0x229a80>0x0)_0x1f2fcb[position++]=0x0;position=_0xa005b0(_0xb379b0[_0x229a80],_0x1f2fcb,position,!![]);}break;}else{if(_0xb379b0 instanceof Uint8Array){_0x1f2fcb[_0xb1a677(0x48c)](_0xb379b0,position),position+=_0xb379b0[_0xb1a677(0x2a9)];break;}else throw new Error(_0xb1a677(0x59c)+JSON[_0xb1a677(0x64b)](_0xb379b0));}}else _0x1f2fcb[position++]=0x0;break;case _0xb1a677(0x43d):_0x4cc050['setUint32'](position++,_0xb379b0?0x7:0x6,!![]);return position;case _0xb1a677(0x768):let _0x5ab085=Number(_0xb379b0);if(BigInt(_0x5ab085)>_0xb379b0){_0x3d8a1c[0x0]=_0x5ab085;if(_0x5ab085>0x0){if(_0xc51170[_0x12c752])_0xc51170[_0x12c752]--;else _0xc51170[_0x55d7f4]--,_0xc51170[_0x12c752]=0xffffffff;}else{if(_0xc51170[_0x12c752]<0xffffffff)_0xc51170[_0x12c752]++;else _0xc51170[_0x55d7f4]++,_0xc51170[_0x12c752]=0x0;}_0x5ab085=_0x3d8a1c[0x0];}let _0x2e9df4=_0xb379b0-BigInt(_0x5ab085);if(_0x2e9df4===0x0n)return _0xa005b0(_0x5ab085,_0x1f2fcb,position,_0x467cb0);_0xa005b0(_0x5ab085,_0x1f2fcb,position,_0x467cb0),position+=0x9;let _0x5e87d3=BigInt((_0xc51170[_0x55d7f4]>>0x14&0x7ff)-0x437),_0x572bf6=_0x2e9df4>>_0x5e87d3;_0x1f2fcb[position-0x1]|=Number(_0x572bf6),_0x2e9df4-=_0x572bf6<<_0x5e87d3;let _0x211992=!![];while(_0x2e9df4||_0x211992){_0x211992=![],_0x5e87d3-=0x7n;let _0x400856=_0x2e9df4>>_0x5e87d3;_0x1f2fcb[position++]=Number(_0x400856)|0x80,_0x2e9df4-=_0x400856<<_0x5e87d3;}return position;case _0xb1a677(0x12f):return position;case'symbol':_0x1f2fcb[position++]=0x2;return _0xa005b0(_0xb379b0[_0xb1a677(0x794)],_0x1f2fcb,position,_0x467cb0);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0xb379b0);}if(_0x5ce9c9&&!_0x467cb0)_0x4cc050[_0xb1a677(0x4a1)](position,0x0);return position;}let position;function _0x259909(_0x39cd71,_0x6269d6,_0x492ddb,_0x37852a){const _0x2988a0=_0x50ac69;position=_0x6269d6;let _0x4b6409=_0x39cd71[position],_0x55766c;if(_0x4b6409<0x18){if(_0x4b6409<0x8){position++;if(_0x4b6409==0x6)_0x55766c=![];else{if(_0x4b6409==0x7)_0x55766c=!![];else{if(_0x4b6409==0x0)_0x55766c=null;else{if(_0x4b6409==0x2)_0x55766c=Symbol['for'](_0x7032e6(_0x39cd71,_0x492ddb));else return Uint8Array[_0x2988a0(0x34d)][_0x2988a0(0x331)][_0x2988a0(0x7cd)](_0x39cd71,_0x6269d6,_0x492ddb);}}}}else{let _0x392fcc;try{_0x392fcc=_0x39cd71[_0x2988a0(0x4ae)]||(_0x39cd71[_0x2988a0(0x4ae)]=new DataView(_0x39cd71['buffer'],_0x39cd71['byteOffset'],_0x39cd71['byteLength']+0x3>>0x2<<0x2));}catch(_0x14ae03){_0x392fcc=_0x39cd71[_0x2988a0(0x4ae)]||(_0x39cd71['dataView']=new DataView(_0x39cd71['buffer'],_0x39cd71[_0x2988a0(0x431)],_0x39cd71['buffer'][_0x2988a0(0x770)]-_0x39cd71['byteOffset']));}let _0x1fb848=_0x392fcc[_0x2988a0(0x4a5)](position)<<0x4,_0x221f2a=_0x492ddb-position,_0x52c225;if(_0x221f2a>0x4)_0x52c225=position+0x8<=_0x39cd71[_0x2988a0(0x2a9)]?_0x392fcc[_0x2988a0(0x4a5)](position+0x4):_0x39cd71[position+0x4]<<0x18|_0x39cd71[position+0x5]<<0x10|_0x39cd71[position+0x6]<<0x8|_0x39cd71[position+0x7],_0x1fb848|=_0x52c225>>>0x1c,_0x221f2a<=0x6&&(_0x52c225&=-0x10000),_0x52c225=_0x52c225<<0x4,_0x221f2a>0x8&&(_0x52c225=_0x52c225|_0x39cd71[position+0x8]>>0x4);else _0x52c225=0x0;_0x4b6409<0x10&&(_0x1fb848=_0x1fb848^0x7fffffff,_0x52c225=~_0x52c225);_0xc51170[_0x55d7f4]=_0x1fb848,_0xc51170[_0x12c752]=_0x52c225,_0x55766c=_0x3d8a1c[0x0],position+=0x9;if(_0x221f2a>0x9&&_0x39cd71[position]>0x0){_0x55766c=BigInt(_0x55766c);let _0x103b0f=_0x1fb848>>0x14&0x7ff,_0x21b9b0=_0x39cd71[position-0x1]&0xf;_0x55766c+=BigInt(_0x21b9b0)<<BigInt(_0x103b0f-0x437);while((_0x21b9b0=_0x39cd71[position])>0x0&&position++<_0x492ddb){_0x55766c+=BigInt(_0x21b9b0&0x7f)<<BigInt((_0x6269d6-position)*0x7+_0x103b0f-0x3f8);}}}}else{_0x4b6409==0x1b&&position++;_0x55766c=_0x7032e6(_0x39cd71,_0x492ddb);if(position<_0x492ddb)position--;}while(position<_0x492ddb){if(_0x39cd71[position]===0x0)position++;if(_0x37852a)return _0x3e69f3[_0x2988a0(0x634)]=position,_0x55766c;let _0x5e2bfc=_0x259909(_0x39cd71,position,_0x492ddb,!![]);if(_0x55766c instanceof Array)_0x55766c['push'](_0x5e2bfc);else _0x55766c=[_0x55766c,_0x5e2bfc];}return _0x55766c;}const _0x588711=()=>_0x5ce9c9=!![],_0x3e69f3={'writeKey':_0xa005b0,'readKey':_0x259909,'enableNullTermination':_0x588711};let _0x3d03a1=[],_0x496faf=0x0;const _0x1e22f8=typeof Buffer!==_0x50ac69(0x12f),_0x5f3fbb=_0x1e22f8?Buffer[_0x50ac69(0x65e)]:Uint8Array,_0x55e503=_0x52b389=>{const _0x3856f1=_0x50ac69;let _0xd3c5b5;_0x496faf+0x64>_0x3d03a1[_0x3856f1(0x2a9)]&&(_0x3d03a1=new _0x5f3fbb(0x2000),_0x496faf=0x0,_0xd3c5b5=!![]);try{let _0x33f5e8=_0x3d03a1[_0x3856f1(0x331)](_0x496faf,_0x496faf=_0xa005b0(_0x52b389,_0x3d03a1,_0x496faf));if(_0x496faf>_0x3d03a1[_0x3856f1(0x2a9)]){if(_0xd3c5b5)throw new Error(_0x3856f1(0x2ef));return _0x55e503(_0x52b389);}return _0x33f5e8;}catch(_0x556c4e){if(_0xd3c5b5)throw _0x556c4e;return _0x496faf=_0x3d03a1[_0x3856f1(0x2a9)],_0x55e503(_0x52b389);}},_0x2ca03c=_0x42bfbd=>{return _0x259909(_0x42bfbd,0x0,_0x42bfbd['length']);},fromCharCode=String[_0x50ac69(0x1fc)];function _0x46d9f9(){const _0x4df788=_0x50ac69;let _0x5ddab2=_0x4df788(0x5a2),_0x680af=[];for(let _0x5564e0=0x0;_0x5564e0<0x30;_0x5564e0++){let _0x17b333=fromCharCode((_0x5564e0&0xf)+0x61)+fromCharCode((_0x5564e0>>0x4)+0x61);_0x5ddab2+=_0x4df788(0x121)+_0x17b333+_0x4df788(0x6c3)+_0x17b333+_0x4df788(0x245)+_0x17b333+_0x4df788(0x6ca)+_0x17b333+'\x20=\x20finishUtf8('+_0x17b333+_0x4df788(0x30c)+_0x17b333+_0x4df788(0x395)+_0x17b333+_0x4df788(0x193)+_0x680af+_0x4df788(0x5ba),_0x680af[_0x4df788(0x540)](_0x17b333);}return _0x5ddab2+=_0x4df788(0x59d)+_0x680af+_0x4df788(0x1e0),_0x5ddab2;}const readString=typeof process!==_0x50ac69(0x12f)&&process[_0x50ac69(0x3b1)]?function(_0x362f67){let {setPosition:_0x1fc98a,getPosition:_0x57310d,readString:readString}=_0x362f67;return _0x347908=>{_0x1fc98a(position);let _0x34fad4=readString(_0x347908);return position=_0x57310d(),_0x34fad4;};}(new Function(_0x50ac69(0x1fc),_0x50ac69(0x1f1)+_0x46d9f9()+_0x50ac69(0x582)+_0x50ac69(0x2e5)+'getPosition()\x20{\x20return\x20position\x20},'+_0x50ac69(0x39e))(fromCharCode)):eval(_0x46d9f9());function _0x7032e6(_0x15e72a,_0x20902e){if(_0x15e72a[_0x20902e]>0x0){let _0x2824b5=_0x15e72a[_0x20902e];try{return _0x15e72a[_0x20902e]=0x0,readString(_0x15e72a);}finally{_0x15e72a[_0x20902e]=_0x2824b5;}}else return readString(_0x15e72a);}function _0x28ac86(_0x57edef,_0x4aedea){const _0x203749=_0x50ac69;if(typeof _0x57edef==_0x203749(0x4ed)){if(!_0x57edef)return _0x4aedea==null?0x0:-0x1;if(_0x57edef[_0x203749(0x2d4)]){if(_0x4aedea==null)return 0x1;else return _0x4aedea[_0x203749(0x2d4)]?_0x57edef[_0x203749(0x2d4)](_0x4aedea):-0x1;}let _0x2aabbd;if(_0x4aedea instanceof Array){let _0x562ce6=0x0;while((_0x2aabbd=_0x28ac86(_0x57edef[_0x562ce6],_0x4aedea[_0x562ce6]))==0x0&&_0x562ce6<=_0x57edef[_0x203749(0x2a9)]){_0x562ce6++;}return _0x2aabbd;}_0x2aabbd=_0x28ac86(_0x57edef[0x0],_0x4aedea);if(_0x2aabbd==0x0&&_0x57edef[_0x203749(0x2a9)]>0x1)return 0x1;return _0x2aabbd;}else{if(typeof _0x57edef==typeof _0x4aedea)return typeof _0x57edef===_0x203749(0x445)&&(_0x57edef=Symbol[_0x203749(0x136)](_0x57edef),_0x4aedea=Symbol[_0x203749(0x136)](_0x4aedea)),_0x57edef<_0x4aedea?-0x1:_0x57edef===_0x4aedea?0x0:0x1;else{if(typeof _0x4aedea==_0x203749(0x4ed)){if(_0x4aedea instanceof Array)return-_0x28ac86(_0x4aedea,_0x57edef);return 0x1;}else return _0x59d665[typeof _0x57edef]<_0x59d665[typeof _0x4aedea]?-0x1:0x1;}}}const _0x59d665={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x3a2548=null,_0x4e5a4f=new Uint8Array([0xff]);return dist['MAXIMUM_KEY']=_0x4e5a4f,dist[_0x50ac69(0x511)]=_0x3a2548,dist[_0x50ac69(0x5b3)]=_0x28ac86,dist[_0x50ac69(0x53d)]=_0x588711,dist[_0x50ac69(0x65c)]=_0x3e69f3,dist[_0x50ac69(0x20c)]=_0x2ca03c,dist[_0x50ac69(0x5e7)]=_0x259909,dist[_0x50ac69(0x2c3)]=_0x55e503,dist[_0x50ac69(0x157)]=_0xa005b0,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x2eef97}=requireDist(),_0x4147b7=0x7ba,_0x4d6b95=0x1000;function _0x1cb0ae(_0x45e474,_0x462abb){const _0x33917d=_0x41a2;switch(typeof _0x45e474){case _0x33917d(0x229):return _0x45e474[_0x33917d(0x2a9)]<=_0x4147b7&&_0x45e474['isWellFormed']();case _0x33917d(0x1ce):case _0x33917d(0x43d):return!![];case _0x33917d(0x4ed):if(_0x45e474===null)return!![];if(Array[_0x33917d(0x17d)](_0x45e474)){if(_0x462abb>0x8||_0x45e474[_0x33917d(0x2a9)]>_0x4147b7)return![];for(let _0x2d650e=0x0;_0x2d650e<_0x45e474[_0x33917d(0x2a9)];_0x2d650e++)if(!_0x1cb0ae(_0x45e474[_0x2d650e],_0x462abb+0x1))return![];return!![];}return Buffer[_0x33917d(0x68e)](_0x45e474)&&_0x45e474['length']<=_0x4147b7;default:return![];}}function _0xc9c0ac(_0x288b19,_0xb6bb43){const _0x216eb6=_0x41a2,_0x4ddf1c=typeof _0x288b19;if(_0x4ddf1c===_0x216eb6(0x229)){if(_0x288b19['length']>=0x40||!_0x288b19[_0x216eb6(0x4fd)]()){if(!_0x1cb0ae(_0x288b19,0x0))return-0x1;}}else{if(_0x4ddf1c!==_0x216eb6(0x1ce)){if(Array['isArray'](_0x288b19)?_0x288b19[_0x216eb6(0x2a9)]===0x0||!_0x1cb0ae(_0x288b19,0x0):!_0x1cb0ae(_0x288b19,0x0))return-0x1;}}let _0x2d2502;try{_0x2d2502=_0x2eef97(_0x288b19,_0xb6bb43,0x0);}catch{return-0x1;}return _0x2d2502>0x0&&_0x2d2502<=_0x4147b7?_0x2d2502:-0x1;}return keyenc={'encodeKey':_0xc9c0ac,'KEY_BUF_SIZE':_0x4d6b95,'NO_FAST':Symbol('okdb.noFast')},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x477178=_0x431d06;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3bb9c7=0x400,_0x582c34=_0x3bb9c7-0x1,_0x1dfa8b=0xea60;function _0x1dd164(_0x54c28b,_0x218fce){const _0x192997=_0x41a2;return _0x54c28b*_0x3bb9c7+Math[_0x192997(0x380)](0x0,Math[_0x192997(0x165)](_0x218fce,_0x582c34));}function _0x16bfa4(_0x1fe3fe){const _0x2ae2b6=_0x41a2,_0x193b75=Math[_0x2ae2b6(0x380)](0x0,Number(_0x1fe3fe)||0x0),_0x2b80bb=_0x193b75%_0x3bb9c7,_0x1264bb=(_0x193b75-_0x2b80bb)/_0x3bb9c7;return{'pt':_0x1264bb,'l':_0x2b80bb};}function _0x1c8adf(_0xc9b32b,_0x500b2e=Date[_0x477178(0x772)]()){const _0x3bccf9=_0x477178,{pt:_0x15a9c9,l:_0x2fc754}=_0x16bfa4(_0xc9b32b),_0x22abc0=Math['max'](_0x15a9c9,_0x500b2e),_0x5011af=_0x22abc0===_0x15a9c9?Math[_0x3bccf9(0x165)](_0x2fc754+0x1,_0x582c34):0x0;return _0x1dd164(_0x22abc0,_0x5011af);}function _0x1c3bd9(_0x5634c4,_0x3b769f,_0xf593f4=Date[_0x477178(0x772)]()){const _0x4137b1=_0x477178,{pt:_0x48327b,l:_0x33a84f}=_0x16bfa4(_0x5634c4),{pt:_0x55afbb,l:_0x412427}=_0x16bfa4(_0x3b769f),_0x2ddb44=Math[_0x4137b1(0x380)](_0x48327b,_0x55afbb,_0xf593f4);let _0x3a4692;if(_0x2ddb44===_0x48327b&&_0x2ddb44===_0x55afbb)_0x3a4692=Math['min'](Math[_0x4137b1(0x380)](_0x33a84f,_0x412427)+0x1,_0x582c34);else{if(_0x2ddb44===_0x48327b)_0x3a4692=Math[_0x4137b1(0x165)](_0x33a84f+0x1,_0x582c34);else _0x2ddb44===_0x55afbb?_0x3a4692=Math[_0x4137b1(0x165)](_0x412427+0x1,_0x582c34):_0x3a4692=0x0;}return _0x1dd164(_0x2ddb44,_0x3a4692);}function _0x46c9c5(_0x119c36,_0x4908e8){const _0x39e540=Number(_0x119c36)||0x0,_0x45533a=Number(_0x4908e8)||0x0;if(_0x39e540<_0x45533a)return-0x1;if(_0x39e540>_0x45533a)return 0x1;return 0x0;}function _0x5aff93(_0x2f2885){return _0x16bfa4(_0x2f2885)['pt'];}return okdbHlc={'send':_0x1c8adf,'recv':_0x1c3bd9,'compare':_0x46c9c5,'toMs':_0x5aff93,'encode':_0x1dd164,'decode':_0x16bfa4,'SCALE':_0x3bb9c7,'L_MAX':_0x582c34,'DRIFT_MAX':_0x1dfa8b},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x2f6eaf=_0x431d06;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x27dea0,chunkedRange:_0x3ea05d,pinnedChunks:_0x4dfa56,claimPrefetch:_0x8b9db8}=requireIterable(),{reclass:_0x489c5b,NotImplementedNative:_0x1c70f7,OKDBError:_0x58254e,optionsArg:_0x3f7332}=requireErrors(),{OKDBViews:_0x5f019a}=requireViews(),{OKDBQueue:_0x584f62}=requireQueue(),{OKDBTimeMachine:_0xe506b3}=requireTimemachine(),_0xe4c45c=_0x4155ff=>{const _0x59bdbe=_0x41a2;try{return!_0x4155ff[_0x59bdbe(0x643)]||_0x4155ff[_0x59bdbe(0x643)][_0x59bdbe(0x234)]('timeMachine');}catch{return!![];}},{OKDBFiles:_0x2f2846}=requireFiles(),{OKDBEngines:_0x5d2f2c,OKDBPipelines:_0x3559f5}=requireEngines(),{OKDBFunctions:_0x12b519}=requireFunctions(),_0x1425a9=requireProcessor(),{RawDb:_0x1d2771}=requireRawdb(),_0x424e32=requireBridge();let _0x5aef8b=null;const _0x46cfea=()=>_0x5aef8b||=requireOkdbTransaction(),_0x5f513a=(..._0x5c1956)=>requireOkdbGuardedRange()[_0x2f6eaf(0x3e5)](..._0x5c1956),_0x5927de=Buffer[_0x2f6eaf(0x295)]([0xff]),_0x54203e=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x57901c=_0x54203e&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x2efc56}=requireKeyenc(),_0x4a0f73=new Set(_0x54203e?['getRange','byIndex',_0x2f6eaf(0x787),_0x2f6eaf(0xe4),_0x2f6eaf(0x677)]:[]),_0xd0407c=new Set([_0x2f6eaf(0x1bc),_0x2f6eaf(0x153),_0x2f6eaf(0x63b),_0x2f6eaf(0x1bd),'getKeys',_0x2f6eaf(0x4dd),'getCount',_0x2f6eaf(0x6be),'getIndex','byIndex','countByIndex','query','assertQueryOptions','geoQuery',_0x2f6eaf(0x41d),_0x2f6eaf(0xe4),_0x2f6eaf(0x70b),_0x2f6eaf(0x772),_0x2f6eaf(0x2c9),_0x2f6eaf(0x57b),_0x2f6eaf(0x5fe),'getIndexStatus','getIndexMeta',_0x2f6eaf(0x630),_0x2f6eaf(0xbc),_0x2f6eaf(0x361),_0x2f6eaf(0x135),_0x2f6eaf(0x78e),_0x2f6eaf(0x476),'getViolation','listViolations',_0x2f6eaf(0x228),_0x2f6eaf(0x119),'getTTL',_0x2f6eaf(0x3ab),'ttlStats',_0x2f6eaf(0x5d1),'name',_0x2f6eaf(0xe7),'id',_0x2f6eaf(0x79b),_0x2f6eaf(0x7b6),_0x2f6eaf(0x1bf),_0x2f6eaf(0x334),_0x2f6eaf(0x141)]),_0x409cc4=new Set([_0x2f6eaf(0x432),'end',_0x2f6eaf(0x7c0),_0x2f6eaf(0x393),_0x2f6eaf(0x344),_0x2f6eaf(0x64e),'exclusiveStart',_0x2f6eaf(0x509),'values',_0x2f6eaf(0x65b),'transaction',_0x2f6eaf(0x590),'valuesForKey',_0x2f6eaf(0x619)]);function _0x541c0b(_0x2af61e,_0x4a5cbe,_0x23de02){const _0x46c77b=new Map();return(_0xdf42ea,_0x3e4d64)=>{const _0x4ef260=_0x41a2,_0x164aa9=JSON[_0x4ef260(0x64b)](_0x3e4d64),_0x4522af=_0x46c77b[_0x4ef260(0x1bc)](_0x164aa9);if(_0x4522af){if(_0x4522af[_0x4ef260(0x1a2)]===_0x4ef260(0x5a9))throw _0x408ec3();_0x46c77b[_0x4ef260(0x7ec)](_0x164aa9);if(_0x4522af[_0x4ef260(0x1a2)]==='err')throw _0x4522af[_0x4ef260(0x6f0)];return _0x4522af[_0x4ef260(0x6f0)];}const _0x53b4f7=_0xdf42ea(..._0x3e4d64);if(!_0x53b4f7||typeof _0x53b4f7[_0x4ef260(0x583)]!==_0x4ef260(0x7c4))return _0x53b4f7;const _0x54e539={'state':_0x4ef260(0x5a9),'value':undefined},_0x18b00b=(_0x1cbb32,_0x439805)=>{const _0x22828a=_0x4ef260;_0x54e539[_0x22828a(0x1a2)]=_0x1cbb32,_0x54e539[_0x22828a(0x6f0)]=_0x439805;if(_0x46c77b[_0x22828a(0x1bc)](_0x164aa9)!==_0x54e539)return;setTimeout(()=>_0x46c77b['get'](_0x164aa9)===_0x54e539&&_0x46c77b[_0x22828a(0x7ec)](_0x164aa9),0x7530)[_0x22828a(0x490)]();try{_0x2af61e[_0x22828a(0x6ff)][_0x22828a(0x722)](_0x22828a(0x6bf),null,'emit',['field:resolver_registered',{'env':_0x2af61e[_0x22828a(0x5e6)],'type':_0x4a5cbe,'field':_0x23de02}],!![]);}catch{}};_0x53b4f7[_0x4ef260(0x583)](_0x2c9509=>_0x18b00b('ok',_0x2c9509),_0x2326b1=>_0x18b00b('err',_0x2326b1));for(let _0x30bd26=0x0;_0x30bd26<0x64&&_0x54e539[_0x4ef260(0x1a2)]==='pending';_0x30bd26++)process[_0x4ef260(0x311)]();if(_0x54e539[_0x4ef260(0x1a2)]==='ok')return _0x54e539[_0x4ef260(0x6f0)];if(_0x54e539[_0x4ef260(0x1a2)]===_0x4ef260(0x27d))throw _0x54e539[_0x4ef260(0x6f0)];_0x46c77b[_0x4ef260(0x48c)](_0x164aa9,_0x54e539);throw _0x408ec3();};}function _0x408ec3(){const _0xfdb141=_0x2f6eaf;return Object[_0xfdb141(0x2e1)](new Error(_0xfdb141(0x343)),{'code':_0xfdb141(0x2db)});}class _0x4919b6{constructor(_0xe4774b,_0x409cc9){const _0xdd323c=_0x2f6eaf;this['okdb']=_0xe4774b,this[_0xdd323c(0x5e6)]=_0x409cc9,this['events']=_0xe4774b[_0xdd323c(0x6bf)],this[_0xdd323c(0x745)]=_0xe4774b[_0xdd323c(0x745)],this[_0xdd323c(0x2ab)]=!![],this[_0xdd323c(0x218)]=null,this[_0xdd323c(0x7a3)]=new _0x5f019a(this),this[_0xdd323c(0xf8)]=new _0x1425a9(this);if(!_0x409cc9[_0xdd323c(0x217)]('~')||_0x409cc9[_0xdd323c(0x4e5)](':emb:'))this[_0xdd323c(0x4f3)]=new _0x584f62(this);if(!_0x409cc9[_0xdd323c(0x217)]('~'))this['files']=new _0x2f2846(this);this[_0xdd323c(0x2f9)]=new _0x12b519(_0xe4774b,_0x409cc9),this['engines']=new _0x5d2f2c(_0xe4774b,_0x409cc9,_0xe4774b[_0xdd323c(0x7bc)]),this[_0xdd323c(0x251)]=new _0x3559f5(_0xe4774b,_0x409cc9);if(!_0x409cc9['startsWith']('~')&&_0xe4774b[_0xdd323c(0x2f0)][_0xdd323c(0x57f)]&&_0xe4c45c(_0xe4774b))this[_0xdd323c(0x57f)]=new _0xe506b3(this);_0x424e32[_0xdd323c(0x51c)](this[_0xdd323c(0xe7)],this);const _0x1872d1=this;this['_writer']={async 'transaction'(_0x391a4a){const _0xc84b39=_0xdd323c,_0x108fea=[];_0x1872d1[_0xc84b39(0x218)]=_0x108fea;try{_0x391a4a();}finally{_0x1872d1[_0xc84b39(0x218)]=null;}return _0x1872d1[_0xc84b39(0x6ff)]['_wb']['enqueue'](_0xc84b39(0x3c4),_0x1872d1[_0xc84b39(0x5e6)],_0xc84b39(0x7dd),[_0x108fea]);},'drain'(){const _0x370f28=_0xdd323c;return _0x1872d1['okdb'][_0x370f28(0x13c)][_0x370f28(0x423)]();},'flushLmdb'(){const _0x52a020=_0xdd323c;return _0x1872d1[_0x52a020(0x6ff)]['_wb'][_0x52a020(0x423)]();},'markClosed'(){}};const _0x337ff7=new _0x1d2771(this,'');_0x337ff7[_0xdd323c(0x5a3)]=()=>({'lastTxnId':this['_n'](_0xdd323c(0x79b),[])}),Object['defineProperty'](_0x337ff7,_0xdd323c(0x1e6),{'get':()=>this[_0xdd323c(0x6ff)][_0xdd323c(0x13c)][_0xdd323c(0x423)](),'configurable':!![]}),Object[_0xdd323c(0x332)](_0x337ff7,_0xdd323c(0x40e),{'get':()=>this[_0xdd323c(0x6ff)]['_wb']['drain'](),'configurable':!![]});const _0x2ee473=_0x337ff7[_0xdd323c(0x1bc)][_0xdd323c(0x7d2)](_0x337ff7);_0x337ff7[_0xdd323c(0x1bc)]=_0x44612b=>_0x44612b===_0xdd323c(0x433)?this['_n'](_0xdd323c(0x41d),[null]):_0x2ee473(_0x44612b),this['db']=_0x337ff7;}async[_0x2f6eaf(0x498)](){const _0x2d1ebf=_0x2f6eaf;this[_0x2d1ebf(0x5a5)]=!![];}get[_0x2f6eaf(0x129)](){const _0x387cdc=_0x2f6eaf;return new Map(this[_0x387cdc(0x6ff)][_0x387cdc(0x722)]('db',null,_0x387cdc(0x25f),[this[_0x387cdc(0x5e6)]],![]));}get['typesDb'](){const _0x6c9689=_0x2f6eaf;return this[_0x6c9689(0x20b)]||(this['_typesDb']=new _0x1d2771(this,_0x6c9689(0x4ca)));}[_0x2f6eaf(0x602)](_0x28960f){const _0xe8fb55=_0x2f6eaf,_0x47fad4=this[_0xe8fb55(0x622)][_0xe8fb55(0x1bc)](_0x28960f);if(_0x47fad4===undefined||String(_0x28960f)['startsWith'](_0xe8fb55(0x573))||String(_0x28960f)[_0xe8fb55(0x217)]('__fts:')){const {OKDBError:_0x55bded}=requireErrors();throw new _0x55bded(_0xe8fb55(0x29b)+_0x28960f+_0xe8fb55(0x379),'TYPE_NOT_REGISTERED',{'type':_0x28960f});}const _0x4dfbc2=this,_0x357e28=new _0x1d2771(_0x4dfbc2,'type:'+_0x28960f+_0xe8fb55(0x225)),_0x454442=new Map();for(const _0x5b2760 of _0x357e28['getKeys']()){const _0x50b2ad=_0x357e28['get'](_0x5b2760)||{},_0x59ab0e={'parts':_0x5b2760['split']('~'),'db':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x196)+_0x5b2760,{'dupSort':!![]})};if(_0x50b2ad['geoConfig'])_0x59ab0e[_0xe8fb55(0x358)]=_0x50b2ad['geoConfig'];if(_0x50b2ad[_0xe8fb55(0x5ed)])_0x59ab0e[_0xe8fb55(0x5ed)]=!![];if(_0x50b2ad[_0xe8fb55(0x5b4)])_0x59ab0e[_0xe8fb55(0x5b4)]=!![];if(_0x50b2ad[_0xe8fb55(0x5f6)])_0x59ab0e[_0xe8fb55(0x5f6)]=_0x50b2ad[_0xe8fb55(0x5f6)];_0x59ab0e['usedBy']=new Set((_0x50b2ad[_0xe8fb55(0x57c)]??[])[_0xe8fb55(0x1d9)](_0x3ff18f=>_0x3ff18f['kind']+':'+_0x3ff18f[_0xe8fb55(0x5e6)])),_0x454442['set'](_0x5b2760,_0x59ab0e);}return{'root':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f),'data':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x415),{'useVersions':!![]}),'indexes':_0x357e28,'clockToChange':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x37b)),'keyToChange':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x3c5)),'fieldSchema':new Map(Object[_0xe8fb55(0x2d3)](_0x47fad4[_0xe8fb55(0x49a)]||{})[_0xe8fb55(0x1d9)](([_0x1f3c64,_0x209058])=>[_0x1f3c64,new Set(Array[_0xe8fb55(0x17d)](_0x209058)?_0x209058:[_0x209058])])),'indexToDb':_0x454442,'ftsToDb':null,'schema':_0x47fad4['schema']||null,'defaultTTL':_0x47fad4[_0xe8fb55(0x3f6)]||null};}get['typeSubDbs'](){const _0x4b4480=this,_0x355d15=()=>_0x4b4480['listTypes']();return{'get':_0x39e239=>{const _0xe89891=_0x41a2;try{return _0x4b4480[_0xe89891(0x602)](_0x39e239);}catch{return undefined;}},'has':_0x234aa9=>_0x355d15()['includes'](_0x234aa9),'keys':()=>_0x355d15()[Symbol['iterator']](),get 'size'(){const _0x52ed79=_0x41a2;return _0x355d15()[_0x52ed79(0x2a9)];}};}['_typeKeys'](){return this['listTypes']();}get[_0x2f6eaf(0x305)](){const _0x2e5f22=_0x2f6eaf;return this[_0x2e5f22(0x15a)]||(this[_0x2e5f22(0x15a)]=new _0x1d2771(this,_0x2e5f22(0x1d5)));}get['clockToChangeDb'](){const _0x5d6307=_0x2f6eaf;return this[_0x5d6307(0x17c)]||(this[_0x5d6307(0x17c)]=new _0x1d2771(this,'clocks'));}[_0x2f6eaf(0x551)](_0x3ef53c){const _0x4a6357=_0x2f6eaf;return this['_n'](_0x4a6357(0x63f),[_0x3ef53c]);}get[_0x2f6eaf(0xda)](){const _0x205c2f=_0x2f6eaf;return!this['_n'](_0x205c2f(0x5fd),[],![]);}get['_sync'](){const _0x9aba29=_0x2f6eaf;return this[_0x9aba29(0x628)]!==undefined?this[_0x9aba29(0x628)]:this['_n'](_0x9aba29(0x5fd),[],![]);}set[_0x2f6eaf(0x2da)](_0x1fc2b3){const _0x25821a=_0x2f6eaf;this[_0x25821a(0x628)]=_0x1fc2b3;}get[_0x2f6eaf(0x360)](){const _0x202310=_0x2f6eaf;return this[_0x202310(0x5ca)]||(this[_0x202310(0x5ca)]=new(requireLock())[(_0x202310(0x3d3))](this[_0x202310(0x6ff)],_0x202310(0xfb),'compact',{'ttlMs':0xea60}));}get[_0x2f6eaf(0xe7)](){const _0x2ba4cf=_0x2f6eaf;return this[_0x2ba4cf(0x177)]??(this[_0x2ba4cf(0x177)]=this['_n']('path',[]));}get['id'](){return this['_n']('id',[]);}get[_0x2f6eaf(0x491)](){const _0x4bda24=_0x2f6eaf;return this[_0x4bda24(0x6ff)][_0x4bda24(0x491)];}['_n'](_0x114aa0,_0xc7638a){const _0x4950c8=_0x2f6eaf;return this[_0x4950c8(0x6ff)][_0x4950c8(0x722)](_0x4950c8(0x3c4),this[_0x4950c8(0x5e6)],_0x114aa0,_0xc7638a,!_0xd0407c['has'](_0x114aa0));}[_0x2f6eaf(0x137)](_0x3b300a){const _0x9da838=_0x2f6eaf;return this['okdb'][_0x9da838(0x550)](_0x3b300a);}['_np'](_0x10afe4,_0x1c2d60){const _0x13e23b=_0x2f6eaf;if(_0x4a0f73[_0x13e23b(0x614)](_0x10afe4===_0x13e23b(0x630)?_0x1c2d60[0x1]:_0x10afe4))return this['okdb'][_0x13e23b(0x436)](this[_0x13e23b(0x5e6)],_0x10afe4,_0x1c2d60);return this[_0x13e23b(0x6ff)]['_callPacked'](_0x13e23b(0x3c4),this[_0x13e23b(0x5e6)],_0x10afe4,_0x1c2d60);}[_0x2f6eaf(0x241)](_0x3e2a36={'useReadTransaction':![]}){return new(_0x46cfea())(this,_0x3e2a36);}async[_0x2f6eaf(0x704)](_0x344961,_0x4164c9){const _0x1020af=_0x2f6eaf;return _0x46cfea()[_0x1020af(0x349)](this,_0x344961,_0x4164c9);}['_low'](_0xb74512,_0x584ab4){const _0x3542da=_0x2f6eaf;if(this[_0x3542da(0x218)])this[_0x3542da(0x218)][_0x3542da(0x540)]({'action':_0xb74512,'args':_0x584ab4});else this['_n'](_0xb74512,_0x584ab4);}['_put'](_0x1ff732,_0x5804ed,_0x464ce9,_0x2aec37,_0x5e0593){const _0x5619a5=_0x2f6eaf;this[_0x5619a5(0x758)](_0x5619a5(0x59b),[_0x5804ed,_0x464ce9,_0x2aec37,_0x5e0593]);}[_0x2f6eaf(0x191)](_0xaa7c19,_0x49500c,_0x929123,_0x27b1b4,_0x1aa6cd){const _0x2deefc=_0x2f6eaf;this[_0x2deefc(0x758)](_0x2deefc(0x2bd),[_0x49500c,_0x929123,_0x27b1b4,_0x1aa6cd]);}['_patch'](_0x4caab8,_0x8f9c56,_0x54fa18,_0x2d7c56,_0x5a0898){const _0xc8ace5=_0x2f6eaf;this[_0xc8ace5(0x758)](_0xc8ace5(0x3fb),[_0x8f9c56,_0x54fa18,_0x2d7c56,_0x5a0898]);}[_0x2f6eaf(0x688)](_0x1114cd,_0x48652b,_0x4d250d,_0x2b7af7,_0x56a6bb){const _0x8ab753=_0x2f6eaf;this['_low'](_0x8ab753(0x748),[_0x48652b,_0x4d250d,_0x2b7af7,_0x56a6bb]);}['_remove'](_0x2656ce,_0x4e5403,_0x50a484,_0x4b6948){this['_low']('remove',[_0x4e5403,_0x50a484,_0x4b6948]);}[_0x2f6eaf(0x548)](_0x1583a7,_0x57814c,_0x4131e8,_0x45af07){const _0xdf0fcd=_0x2f6eaf;this[_0xdf0fcd(0x758)](_0xdf0fcd(0x5cf),[_0x57814c,_0x4131e8,_0x45af07]);}['_clearTTL'](_0x1964ec,_0x3ce715,_0x611a01){const _0x168534=_0x2f6eaf;this[_0x168534(0x758)]('clearTTL',[_0x3ce715,_0x611a01]);}['_w'](_0x5a6374,_0x2c7e17){const _0x5d3b6f=_0x2f6eaf;return this[_0x5d3b6f(0x6ff)][_0x5d3b6f(0x13c)][_0x5d3b6f(0x2ba)]('env',this[_0x5d3b6f(0x5e6)],_0x5a6374,_0x2c7e17);}['put'](_0xbdb741,_0x37edeb,_0x1cb1ff,_0x386692={}){const _0x9f2e47=_0x2f6eaf;return this['_w'](_0x9f2e47(0x59b),[_0xbdb741,_0x37edeb,_0x1cb1ff,_0x386692]);}[_0x2f6eaf(0x2bd)](_0x1d4438,_0x2b7ba2,_0x2d1830,_0x563b18={}){return this['_w']('update',[_0x1d4438,_0x2b7ba2,_0x2d1830,_0x563b18]);}['patch'](_0x4b3d29,_0xf8e4f4,_0x4b93cb,_0x5d701a={}){const _0x1e431a=_0x2f6eaf;return this['_w'](_0x1e431a(0x3fb),[_0x4b3d29,_0xf8e4f4,_0x4b93cb,_0x5d701a]);}[_0x2f6eaf(0x748)](_0x3a1a07,_0x5d437e,_0x761f2,_0x402920={}){const _0x2ef9b1=_0x2f6eaf;return this['_w'](_0x2ef9b1(0x748),[_0x3a1a07,_0x5d437e,_0x761f2,_0x402920]);}['remove'](_0x5a25f7,_0x248b4d,_0x3ff419={}){const _0x7d47c8=_0x2f6eaf;return this['_w'](_0x7d47c8(0x4d2),[_0x5a25f7,_0x248b4d,_0x3ff419]);}[_0x2f6eaf(0x1bc)](_0x5d1668,_0x5c4f01,_0x621bc8){const _0xea8be4=_0x2f6eaf;if(_0x57901c&&typeof _0x5d1668===_0xea8be4(0x229)){const _0x3fbc57=this[_0xea8be4(0x6ff)][_0xea8be4(0x42e)](this[_0xea8be4(0x5e6)],_0x5d1668,_0x5c4f01);if(_0x3fbc57!==_0x2efc56)return _0x3fbc57===null?this['_n'](_0xea8be4(0x1bc),[_0x5d1668,_0x5c4f01]):_0x3fbc57;}if(_0x54203e&&(typeof _0x5c4f01===_0xea8be4(0x229)||typeof _0x5c4f01===_0xea8be4(0x1ce))){const _0x50941c=this[_0xea8be4(0x6ff)]['_getRaw'](this[_0xea8be4(0x5e6)],_0x5d1668,_0x5c4f01);if(_0x50941c!==null)return _0x50941c;}return this['_n'](_0xea8be4(0x1bc),[_0x5d1668,typeof _0x5c4f01===_0xea8be4(0x445)?null:_0x5c4f01]);}[_0x2f6eaf(0x63b)](_0x262b6f,_0x3b2d9d,_0x598f31){const _0x226c98=_0x2f6eaf,_0x15cc25=[_0x262b6f,Array[_0x226c98(0x17d)](_0x3b2d9d)&&_0x3b2d9d[_0x226c98(0x31e)](_0x2b9991=>typeof _0x2b9991===_0x226c98(0x445))?_0x3b2d9d[_0x226c98(0x1d9)](_0x1f87f3=>typeof _0x1f87f3===_0x226c98(0x445)?null:_0x1f87f3):_0x3b2d9d];return _0x54203e?this[_0x226c98(0x6ff)][_0x226c98(0x436)](this[_0x226c98(0x5e6)],_0x226c98(0x63b),_0x15cc25):this['_n'](_0x226c98(0x63b),_0x15cc25);}[_0x2f6eaf(0x153)](_0x1f9c63,_0x2aa3f8,_0x37536e){const _0x425380=_0x2f6eaf;return this['_n'](_0x425380(0x153),[_0x1f9c63,typeof _0x2aa3f8==='symbol'?null:_0x2aa3f8]);}[_0x2f6eaf(0x156)](_0x1b3168,_0x123a24){const _0xc858a4=_0x2f6eaf;return this['_assertRangeOptions'](_0xc858a4(0x156),_0x123a24),this['_n'](_0xc858a4(0x156),[_0x1b3168,_0x6b2630(_0x123a24)]);}[_0x2f6eaf(0x159)](_0x3b0c5a,_0x3f3808,_0x40920c=[]){const _0x519a42=_0x2f6eaf;if(!_0x3f3808||typeof _0x3f3808!==_0x519a42(0x4ed))return;for(const _0xb15d79 of Object['keys'](_0x3f3808)){if(!_0x409cc4[_0x519a42(0x614)](_0xb15d79)&&!_0x40920c[_0x519a42(0x4e5)](_0xb15d79))throw new _0x58254e(_0x3b0c5a+_0x519a42(0x138)+_0xb15d79+'\x27',_0x519a42(0x316),{'option':_0xb15d79});}}[_0x2f6eaf(0x306)](_0x55f5c4,_0x23ffbd,_0x47328a,_0x3f174e,_0x4db14f,_0x434cff){const _0x637bd5=_0x2f6eaf;this[_0x637bd5(0x159)](_0x55f5c4,_0x3f174e);const _0x483703=_0x3f174e?.[_0x637bd5(0x65b)],_0x343ee1=_0x6b2630(_0x3f174e);if(_0x483703===!![]||_0x483703==='tolerant'){const _0x27c852=this['_lazyPinned'](_0x55f5c4,_0x23ffbd,_0x517ef1=>[_0x47328a,{..._0x343ee1,..._0x517ef1}],_0x3f174e);return _0x434cff?_0x27c852[_0x637bd5(0x1d9)](_0x434cff):_0x27c852;}const _0x1dfeb0=_0x3ea05d(_0x3c16d2=>this[_0x637bd5(0x40b)](_0x23ffbd,[_0x47328a,_0x3c16d2]),_0x343ee1,_0x4db14f,{'rows':_0x23ffbd==='getRange'});return _0x434cff?_0x1dfeb0['map'](_0x434cff):_0x1dfeb0;}[_0x2f6eaf(0x2e4)](_0x483375,_0x24ef14,_0x2e96d2,_0x2b3ae1,_0x5d46ca,_0x10c213=![]){const _0x15d1dd=_0x2f6eaf,{source:_0xeebf94,prefetch:_0x73bf3e}=_0x4dfa56((_0x5a1d74,_0x3f3e55)=>_0x5a1d74===_0x15d1dd(0xbc)?this['_n'](_0x5a1d74,_0x3f3e55):this['_np'](_0x5a1d74,_0x3f3e55),_0x24ef14,_0x2e96d2,_0x2b3ae1||{},_0x5d46ca),_0x59f329=_0x73bf3e(),_0x1f9264=!_0x10c213&&_0x2b3ae1&&_0x2b3ae1[_0x15d1dd(0x65b)]==='tolerant';let _0x19ad97=null;return _0x5f513a(()=>({[Symbol['iterator']]:()=>_0x19ad97=_0xeebf94(0x0,_0x8b9db8(_0x59f329))}),{'label':this[_0x15d1dd(0x5e6)]+':'+_0x483375,..._0x1f9264?{'getTxnId':()=>this['db'][_0x15d1dd(0x5a3)]()[_0x15d1dd(0x79b)],'resume':()=>({[Symbol[_0x15d1dd(0x6b7)]]:()=>_0x19ad97=_0x19ad97[_0x15d1dd(0x5a8)]()})}:{}});}['getRange'](_0x53b06c,_0x55ceb3){const _0x30a957=_0x2f6eaf;return this[_0x30a957(0x306)](_0x30a957(0x1bd),_0x30a957(0x1bd),_0x53b06c,_0x55ceb3,_0x2abcdc=>_0x2abcdc[_0x30a957(0x590)]);}[_0x2f6eaf(0x677)](_0x38002,_0x559010){const _0x25a2e0=_0x2f6eaf;return this[_0x25a2e0(0x306)]('getKeys',_0x25a2e0(0x677),_0x38002,_0x559010,_0x5a818b=>_0x5a818b);}[_0x2f6eaf(0x4dd)](_0x5c1624,_0x62b0e1){const _0x219054=_0x2f6eaf;return this['_range']('getValues',_0x219054(0x1bd),_0x5c1624,_0x62b0e1,_0x116938=>_0x116938[_0x219054(0x590)],_0x5622a7=>_0x5622a7['value']);}[_0x2f6eaf(0x6be)](_0x480ccb,_0x4d3aa1,_0x23b7b7={}){const _0x268204=_0x2f6eaf;return this[_0x268204(0x1bd)](_0x480ccb,{'start':_0x4d3aa1,'end':_0x4d3aa1+'',..._0x23b7b7});}[_0x2f6eaf(0x655)](_0x20eb2a,_0x249354,_0x2c421a={}){const _0x5e3205=_0x2f6eaf;this['_assertRangeOptions'](_0x5e3205(0x655),_0x2c421a,['prefix']);const _0x513b2e=_0x6b2630(_0x2c421a);if(_0x2c421a&&_0x2c421a['transaction'])return _0x27dea0(this['_n'](_0x5e3205(0x655),[_0x20eb2a,_0x249354,_0x513b2e]));return this['_lazyPinned'](_0x5e3205(0x655),_0x5e3205(0x655),_0x587eea=>[_0x20eb2a,_0x249354,{..._0x513b2e,..._0x587eea}],_0x2c421a,undefined,!![]);}[_0x2f6eaf(0x372)](_0x33a512,_0x492329,_0x3fd033){const _0x5dbe1c=_0x2f6eaf;this['_assertRangeOptions']('byIndex',_0x3fd033,['prefix',_0x5dbe1c(0x43e)]);const _0xbe0d15=_0x6b2630(_0x3fd033);if(_0x3fd033&&_0x3fd033[_0x5dbe1c(0x241)])return _0x27dea0(this['_n'](_0x5dbe1c(0x372),[_0x33a512,_0x492329,_0xbe0d15]));return this[_0x5dbe1c(0x2e4)](_0x5dbe1c(0x372),_0x5dbe1c(0x372),_0x2c039b=>[_0x33a512,_0x492329,{..._0xbe0d15,..._0x2c039b}],_0x3fd033,undefined,!![]);}[_0x2f6eaf(0x22b)](_0x4cd6e1,_0x5a43bf,_0x1bb839={}){const _0x43a584=_0x2f6eaf;return this['_n'](_0x43a584(0x22b),[_0x4cd6e1,_0x5a43bf,_0x6b2630(_0x1bb839)]);}[_0x2f6eaf(0x787)](_0x2088b1,_0xf49163={},_0x366cb5={}){const _0x460533=_0x2f6eaf,_0xa86206=_0x5b7d77(_0x366cb5);if(_0x366cb5){for(const _0x25fcc7 of Object[_0x460533(0x5e1)](_0x366cb5))if(_0x25fcc7!==_0x460533(0x581)&&typeof _0x366cb5[_0x25fcc7]===_0x460533(0x7c4))_0xa86206[_0x25fcc7]=null;}if(_0x366cb5&&(_0x366cb5[_0x460533(0x448)]||_0x366cb5['vector']))return this['_n'](_0x460533(0x5d9),[_0xa86206]),this[_0x460533(0x720)](_0x2088b1,_0xf49163,_0x366cb5);const _0xa8121e=typeof _0x366cb5[_0x460533(0x581)]===_0x460533(0x7c4)?_0x366cb5[_0x460533(0x581)]:null;if(_0x366cb5['near']||_0x16205e(_0xf49163)||_0x366cb5[_0x460533(0x241)]!==undefined){let _0x5caa04=this['_n'](_0x460533(0x787),[_0x2088b1,_0xf49163,_0xa86206]);if(_0xa8121e)_0x5caa04=_0x5caa04[_0x460533(0x1d9)](_0xa8121e);if(_0x366cb5['near']||_0x16205e(_0xf49163))return _0x5caa04;return _0x27dea0(_0x5caa04);}const _0x235b87=_0x447274=>typeof _0x447274==='number'&&Number[_0x460533(0x48b)](_0x447274)?Math[_0x460533(0x380)](0x0,_0x447274):Infinity;let _0x212d28;if(_0x366cb5['index']){const _0x4ec401=_0x39f2ab=>typeof _0x39f2ab==='number'&&_0x39f2ab>0x0?Math[_0x460533(0x5ae)](_0x39f2ab):0x0;_0x212d28=this['_lazyPinned'](_0x460533(0x787),_0x460533(0x787),_0x455473=>[_0x2088b1,_0xf49163,{..._0xa86206,..._0x455473}],null,{'limitOf':()=>_0x235b87(_0xa86206['limit']),'offsetOf':()=>_0x4ec401(_0xa86206[_0x460533(0x344)])});}else _0x212d28=_0x3ea05d(_0x5a5646=>{const _0x38d52f=_0x460533,{__after:_0x540c5f,..._0x174238}=_0x5a5646;return this[_0x38d52f(0x40b)]('query',_0x540c5f===undefined?[_0x2088b1,_0xf49163,_0x174238]:[_0x2088b1,_0xf49163,_0x174238,_0x540c5f]);},_0xa86206,_0x17196c=>_0x17196c[_0x460533(0x590)],{'limitOf':_0x235b87,'rows':!![],'prefetch':!![],'resumeOpts':(_0x24c591,_0x513c4d)=>{const _0x309735=_0x460533;_0x24c591[_0x309735(0x344)]=0x0,_0x24c591[_0x309735(0x17f)]=_0x513c4d;}});return _0xa8121e?_0x212d28[_0x460533(0x1d9)](_0xa8121e):_0x212d28;}async[_0x2f6eaf(0x720)](_0x1359ad,_0x231c59,_0xbf7174){const _0x3df3c6=_0x2f6eaf,{select:_0x56768f,..._0x37d90d}=_0x5b7d77(_0xbf7174);let _0x5e3d25={..._0x37d90d};const _0x58136e=_0x5e3d25[_0x3df3c6(0x545)];if(_0x58136e&&!Array[_0x3df3c6(0x17d)](_0x58136e)&&typeof _0x58136e===_0x3df3c6(0x4ed)&&_0x58136e[_0x3df3c6(0x49a)]){const {fields:_0x33494f,prefix:_0x4193b4,start:_0x260169,end:_0x52a1d5}=_0x58136e;_0x5e3d25={..._0x5e3d25,'index':_0x33494f,'prefix':_0x4193b4??_0x5e3d25[_0x3df3c6(0x619)],'startIndex':_0x260169??_0x5e3d25[_0x3df3c6(0x6dd)],'endIndex':_0x52a1d5??_0x5e3d25[_0x3df3c6(0x101)]};}const _0x47a594=await this[_0x3df3c6(0x6ff)][_0x3df3c6(0x22c)](_0x3df3c6(0x1e7),null,_0x3df3c6(0x7ca),[this[_0x3df3c6(0x5e6)],_0x1359ad,_0x231c59,_0x5e3d25],![]),_0x4f69c5=typeof _0xbf7174['select']==='function'?_0xbf7174['select']:null;if(!_0x4f69c5)return _0x47a594;return _0x47a594[_0x3df3c6(0x1d9)](_0x2134b6=>{const _0x5c422f=_0x3df3c6,{score:_0x3e351e,ftsScore:_0x32d646,numTerms:_0x48aab0,maxScore:_0x20372a,vectorScore:_0x7834a3,chunkHash:_0x3ca993,chunk:_0x5ec5ed,..._0x5e322c}=_0x2134b6,_0x534d2d=_0x4f69c5(_0x5e322c);for(const [_0x259d93,_0xd54be7]of Object[_0x5c422f(0x2d3)]({'score':_0x3e351e,'ftsScore':_0x32d646,'numTerms':_0x48aab0,'maxScore':_0x20372a,'vectorScore':_0x7834a3,'chunkHash':_0x3ca993,'chunk':_0x5ec5ed}))if(_0xd54be7!==undefined)_0x534d2d[_0x259d93]=_0xd54be7;return _0x534d2d;});}[_0x2f6eaf(0x204)](_0x2fd8f8,_0x50cc7b,_0x153851={}){const _0x28a705=_0x2f6eaf;let _0x22bdc8=this['_n'](_0x28a705(0x204),[_0x2fd8f8,_0x50cc7b,_0x5b7d77(_0x153851)]);if(typeof _0x153851[_0x28a705(0x581)]===_0x28a705(0x7c4))_0x22bdc8=_0x22bdc8[_0x28a705(0x1d9)](_0x153851[_0x28a705(0x581)]);return _0x22bdc8;}[_0x2f6eaf(0x41d)](_0x3afa4b=null,_0xe60f6b={}){const _0x950033=_0x2f6eaf;return this['_n'](_0x950033(0x41d),[_0x3afa4b]);}['getChanges'](_0x574eca=null,_0x2dafb1=0x0,_0x9156bf=Number['MAX_SAFE_INTEGER'],_0x25c4bf={}){const _0xf0fe0=_0x2f6eaf,_0x4304ba=_0x6b2630(_0x25c4bf);if(_0x25c4bf&&_0x25c4bf['transaction'])return _0x27dea0(this['_n'](_0xf0fe0(0xe4),[_0x574eca,_0x2dafb1,_0x9156bf,_0x4304ba]));return this[_0xf0fe0(0x2e4)](_0xf0fe0(0xe4),_0xf0fe0(0xe4),_0x30c004=>[_0x574eca,_0x2dafb1,_0x9156bf,{..._0x4304ba,..._0x30c004}],_0x25c4bf);}[_0x2f6eaf(0x70b)](_0x793f27){const _0x57fd91=_0x2f6eaf;if(Array['isArray'](_0x793f27))return _0x793f27[_0x57fd91(0x2a9)];let _0x147c32=0x0;for(const _0x3abad5 of _0x793f27)_0x147c32++;return _0x147c32;}*[_0x2f6eaf(0x65f)](_0x4e8007){yield*_0x4e8007;}[_0x2f6eaf(0x772)](){const _0x4fd50f=_0x2f6eaf;return requireOkdbHlc()['toMs'](this[_0x4fd50f(0xd9)]);}get[_0x2f6eaf(0x59e)](){const _0x437997=_0x2f6eaf,_0x83ad5=this['okdb'][_0x437997(0x2ab)]?this[_0x437997(0x6ff)][_0x437997(0x722)]('db',null,_0x437997(0x2ee),[this[_0x437997(0x5e6)]],![]):null;if(!_0x83ad5)return null;if(this['__ttlCancelledGen']===_0x83ad5[_0x437997(0x2f5)])return null;this[_0x437997(0x795)]=this[_0x437997(0x795)]||new Map();let _0x571be7=this[_0x437997(0x795)][_0x437997(0x1bc)](_0x83ad5[_0x437997(0x2f5)]);if(!_0x571be7){const _0x3d1f08=this;_0x571be7={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x83ad5[_0x437997(0x2f5)],'at':_0x83ad5['at'],'target':_0x83ad5[_0x437997(0x3df)],get '_destroyed'(){const _0x5aeeff=_0x437997,_0x100979=_0x3d1f08['okdb'][_0x5aeeff(0x2ab)]?_0x3d1f08['okdb'][_0x5aeeff(0x722)]('db',null,'ttlTimer',[_0x3d1f08[_0x5aeeff(0x5e6)]],![]):null;return!_0x100979||_0x100979[_0x5aeeff(0x2f5)]!==this[_0x5aeeff(0x2f5)]||_0x3d1f08[_0x5aeeff(0x2d2)]===this[_0x5aeeff(0x2f5)];}},this['_timerObjs']['set'](_0x83ad5[_0x437997(0x2f5)],_0x571be7);}return _0x571be7;}[_0x2f6eaf(0x32a)](){const _0xee35e4=_0x2f6eaf,_0x506186=this['okdb'][_0xee35e4(0x722)]('db',null,_0xee35e4(0x2ee),[this['name']],![]);if(_0x506186)this[_0xee35e4(0x2d2)]=_0x506186['gen'];}get[_0x2f6eaf(0x5e3)](){const _0x44dec0=_0x2f6eaf,_0x551dec=this[_0x44dec0(0x6ff)][_0x44dec0(0x722)]('db',null,_0x44dec0(0x2ee),[this['name']],![]);return _0x551dec?_0x551dec[_0x44dec0(0x3df)]:null;}get[_0x2f6eaf(0x10f)](){const _0x8e853b=_0x2f6eaf;return this['okdb'][_0x8e853b(0x722)]('db',null,_0x8e853b(0x72f),[this[_0x8e853b(0x5e6)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x2f6eaf(0x4e9)](){const _0x53d812=_0x2f6eaf;this['okdb'][_0x53d812(0x722)]('db',null,_0x53d812(0x736),[this[_0x53d812(0x5e6)]],![]);}['_stopAutoCompactCheck'](){const _0x5355dc=_0x2f6eaf;this[_0x5355dc(0x6ff)][_0x5355dc(0x722)]('db',null,_0x5355dc(0x6fd),[this[_0x5355dc(0x5e6)]],![]);}get[_0x2f6eaf(0x30d)](){const _0x3a1394=_0x2f6eaf,_0x179e86=(_0x47de3a,_0x6b6afc)=>this[_0x3a1394(0x6ff)][_0x3a1394(0x722)]('db',null,_0x47de3a,[this[_0x3a1394(0x5e6)],..._0x6b6afc],![]),_0x519705=Object[_0x3a1394(0x5e1)](_0x179e86(_0x3a1394(0x345),[])||{}),_0x3beda5={};for(const _0x4a3c06 of _0x519705)Object[_0x3a1394(0x332)](_0x3beda5,_0x4a3c06,{'enumerable':!![],'get':()=>_0x179e86(_0x3a1394(0x345),[])?.[_0x4a3c06],'set':_0x56be16=>{_0x179e86('setAutoCompact',[_0x4a3c06,_0x56be16]);}});return _0x3beda5;}get[_0x2f6eaf(0xd9)](){const _0xb5f3dc=_0x2f6eaf;return this['_n'](_0xb5f3dc(0x7b6),[]);}[_0x2f6eaf(0x3ef)](_0x568107,_0x37d977){return require$$16['isDeepStrictEqual'](_0x568107,_0x37d977);}async['registerType'](_0x1302ba,_0x305cf4){const _0x519c12=_0x2f6eaf;return this[_0x519c12(0x137)](this['_n'](_0x519c12(0x735),[_0x1302ba]));}[_0x2f6eaf(0x2c9)](_0x48736){const _0x3bb68d=_0x2f6eaf;return this['_n'](_0x3bb68d(0x2c9),[_0x48736]);}[_0x2f6eaf(0x57b)](){return this['_n']('listTypes',[]);}async[_0x2f6eaf(0x1bb)](_0x49c137,_0x549b55){const _0x1dcd15=_0x2f6eaf;return this[_0x1dcd15(0x137)](this['_n']('dropType',[_0x49c137]));}async['ensureType'](_0x3c49c4,_0x27c179){const _0x4882e2=_0x2f6eaf,{timestamp:_0x23ed08,indexes:indexes=[]}=_0x3f7332(_0x27c179);return this[_0x4882e2(0x137)](this['_n'](_0x4882e2(0x5f2),[_0x3c49c4,{'indexes':indexes}]));}async[_0x2f6eaf(0x3fa)](_0x1efc9c){const _0x77472c=_0x2f6eaf,{type:_0xa182b5,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x3f7332(_0x1efc9c,'spec');if(!_0xa182b5)throw new Error(_0x77472c(0x3db));await this[_0x77472c(0x5f2)](_0xa182b5,{'indexes':indexes});for(const _0x5c10a9 of fts){const {name:_0x235f21,fields:_0x54c33d,..._0x40fff1}=_0x5c10a9;if(!_0x235f21||!_0x54c33d)throw new Error(_0x77472c(0x233));await this[_0x77472c(0x6ff)][_0x77472c(0x448)]['ensure'](_0xa182b5,_0x235f21,{'fields':_0x54c33d,..._0x40fff1},this);}for(const _0x7dda90 of views){const {name:_0x12b060,definition:_0x137d30}=_0x7dda90;if(!_0x12b060||!_0x137d30)throw new Error(_0x77472c(0x404));if(!await this[_0x77472c(0x7a3)][_0x77472c(0x2b6)](_0x12b060))await this[_0x77472c(0x7a3)][_0x77472c(0x748)](_0x12b060,_0x137d30);}if(schema)await this[_0x77472c(0x500)](_0xa182b5,schema);}async['registerIndex'](_0x5d9409,_0x27f538,_0x5ea266){const _0xf7ea67=_0x2f6eaf,_0x168053=this['_n'](_0xf7ea67(0x2e0),[_0x5d9409,_0x27f538,typeof _0x5ea266===_0xf7ea67(0x4ed)?_0x5ea266:{}]);if(!_0x168053)return this[_0xf7ea67(0x137)](undefined);const _0x1aab1b=this['_n']('resetIndexBegin',[_0x5d9409,_0x27f538,!![]]);if(_0x1aab1b===undefined)return this[_0xf7ea67(0x137)](undefined);return this[_0xf7ea67(0x137)](await this[_0xf7ea67(0x467)](_0x5d9409,_0x27f538,_0x1aab1b));}async[_0x2f6eaf(0x467)](_0x4a55c1,_0x3b8c71,_0x237bd2){const _0x4b4b53=_0x2f6eaf,_0x5c0767=_0x4a55c1+'@'+[][_0x4b4b53(0x70a)](_0x3b8c71)[_0x4b4b53(0x7d6)]('~');if(!this[_0x4b4b53(0x70e)])this[_0x4b4b53(0x70e)]=new Map();const _0x37ddcd=this[_0x4b4b53(0x70e)][_0x4b4b53(0x1bc)](_0x5c0767);if(_0x37ddcd)return _0x37ddcd;const _0x55f07a=((async()=>{const _0x484854=_0x4b4b53;do await new Promise(_0x229638=>setImmediate(_0x229638));while(!this['_n'](_0x484854(0x47c),[_0x4a55c1,_0x3b8c71,_0x237bd2,!![]]));})());this['_indexBuilds'][_0x4b4b53(0x48c)](_0x5c0767,_0x55f07a);try{return await _0x55f07a;}finally{this[_0x4b4b53(0x70e)][_0x4b4b53(0x7ec)](_0x5c0767);}}async[_0x2f6eaf(0x61c)](_0x34fbcf,_0x73185,_0x33f4a3){const _0x7d8d8c=_0x2f6eaf;return this[_0x7d8d8c(0x137)](this['_n']('dropIndex',[_0x34fbcf,_0x73185]));}async[_0x2f6eaf(0x480)](_0x20c03f,_0x52361a,_0x2c2e44){const _0x265d02=_0x2f6eaf,_0x5550bb=this[_0x265d02(0x70e)]&&this[_0x265d02(0x70e)][_0x265d02(0x1bc)](_0x20c03f+'@'+[][_0x265d02(0x70a)](_0x52361a)[_0x265d02(0x7d6)]('~'));if(_0x5550bb)return _0x5550bb;const _0x5acaf4=this['_n'](_0x265d02(0x2b0),[_0x20c03f,_0x52361a,_0x2c2e44]);if(_0x5acaf4===undefined)return;return await new Promise(_0x5e0f2f=>setImmediate(_0x5e0f2f)),this[_0x265d02(0x137)](await this[_0x265d02(0x467)](_0x20c03f,_0x52361a,_0x5acaf4));}[_0x2f6eaf(0x5fe)](_0x2cc8e0,_0x3fca9b){const _0x4d7419=_0x2f6eaf;return this['_n'](_0x4d7419(0x5fe),[_0x2cc8e0,_0x3fca9b]);}['getIndexStatus'](_0xa4ec3c,_0x842dad){const _0x3a0bba=_0x2f6eaf;return this['_n'](_0x3a0bba(0x76e),[_0xa4ec3c,_0x842dad]);}async[_0x2f6eaf(0x2ca)](_0x5bb6ef,_0x4a9dcc){const _0x3cf473=_0x2f6eaf;if(this['_n'](_0x3cf473(0x76e),[_0x5bb6ef,_0x4a9dcc])===_0x3cf473(0x158))return!![];let _0x3ff38a=0xa;for(;;){await new Promise(_0x325910=>setTimeout(_0x325910,_0x3ff38a));if(!this[_0x3cf473(0x6ff)][_0x3cf473(0x2ab)]||this[_0x3cf473(0x5a5)])return![];let _0x13c0bc;try{_0x13c0bc=this['_n']('getIndexMeta',[_0x5bb6ef,Array[_0x3cf473(0x17d)](_0x4a9dcc)?_0x4a9dcc[_0x3cf473(0x7d6)]('~'):String(_0x4a9dcc)[_0x3cf473(0x658)](',')['join']('~')]);}catch{return![];}const _0x17d39f=_0x13c0bc&&_0x13c0bc[_0x3cf473(0x5d2)];if(_0x17d39f===_0x3cf473(0x158))return!![];if(_0x17d39f===undefined)return![];_0x3ff38a=Math[_0x3cf473(0x165)](_0x3ff38a*0x2,0xfa);}}[_0x2f6eaf(0x6c5)](_0x2937b4,_0x2af45f){const _0x273fbb=_0x2f6eaf;return this['_n'](_0x273fbb(0x6c5),[_0x2937b4,_0x2af45f])??null;}[_0x2f6eaf(0x361)](_0x3021ca,_0x2c6870){const _0x5f3605=_0x2f6eaf;return this['_n'](_0x5f3605(0x361),[_0x3021ca,_0x2c6870]);}['hasUniqueViolations'](_0x34fd82,_0x37e2ee){return this['_n']('hasUniqueViolations',[_0x34fd82,_0x37e2ee]);}['getUniqueViolation'](_0x2d8291,_0x55e6e7,_0x4fdd57){return this['_n']('getUniqueViolation',[_0x2d8291,_0x55e6e7,_0x4fdd57])??null;}['getSchema'](_0x2f504b){return this['_n']('getSchema',[_0x2f504b])??null;}async[_0x2f6eaf(0x500)](_0x4e7929,_0x40951e){const _0x3054e5=_0x2f6eaf;return this[_0x3054e5(0x137)](this['_n'](_0x3054e5(0x500),[_0x4e7929,_0x40951e]));}async['dropSchema'](_0xba9f3c){const _0x2a5dd7=_0x2f6eaf;return this[_0x2a5dd7(0x137)](this['_n']('dropSchema',[_0xba9f3c]));}[_0x2f6eaf(0x2fb)](_0x58bc22,_0x2f6057){const _0x2270bd=_0x2f6eaf;return this['_n'](_0x2270bd(0x2fb),[_0x58bc22,_0x2f6057])??null;}['listViolations'](_0x304d1e){const _0x29a1a9=_0x2f6eaf;return this['_n'](_0x29a1a9(0x737),[_0x304d1e]);}[_0x2f6eaf(0x228)](_0x14f3d7,_0xd0b242,_0x1c26a1){const _0x35bc76=_0x2f6eaf;return this['_n'](_0x35bc76(0x228),[_0x14f3d7,_0xd0b242,_0x1c26a1])??null;}[_0x2f6eaf(0x119)](_0x39761a){const _0x11ef3e=_0x2f6eaf;return this['_n'](_0x11ef3e(0x119),[_0x39761a]);}async[_0x2f6eaf(0x5cf)](_0x4c0ce0,_0x9f7a79,_0xf671f1){const _0x27a611=_0x2f6eaf;return this[_0x27a611(0x137)](this['_n'](_0x27a611(0x5cf),[_0x4c0ce0,_0x9f7a79,_0xf671f1]));}[_0x2f6eaf(0xbf)](_0x225c36,_0x3d0707){const _0x2d7281=_0x2f6eaf;return this['_n'](_0x2d7281(0xbf),[_0x225c36,_0x3d0707]);}async[_0x2f6eaf(0x272)](_0x4614db,_0x54e053){const _0x57d9a6=_0x2f6eaf;return this[_0x57d9a6(0x137)](this['_n'](_0x57d9a6(0x272),[_0x4614db,_0x54e053]));}async[_0x2f6eaf(0xcf)](_0x3846c1){return this['_n']('sweepExpiredTTL',[_0x3846c1]);}['listTTL'](_0x4209eb={}){const _0x4cc84d=_0x2f6eaf;return this['_n'](_0x4cc84d(0x3ab),[_0x4209eb]);}[_0x2f6eaf(0xec)](_0xbbd6d2){return this['_n']('ttlStats',[_0xbbd6d2]);}async[_0x2f6eaf(0x2aa)](_0x3708c9,_0x512a55){const _0x5e04e5=_0x2f6eaf;return this[_0x5e04e5(0x137)](this['_n'](_0x5e04e5(0x2aa),[_0x3708c9,_0x512a55]));}[_0x2f6eaf(0x5d1)](_0x5c3453){const _0x4d88cb=_0x2f6eaf;return this['_n'](_0x4d88cb(0x5d1),[_0x5c3453]);}async[_0x2f6eaf(0x71d)](_0x2fd969){const _0x4537aa=_0x2f6eaf;return this[_0x4537aa(0x137)](this['_n'](_0x4537aa(0x71d),[_0x2fd969]));}async[_0x2f6eaf(0x428)](_0x56ff8b,_0x52674d,_0x538e2b,_0x146638){const _0x30268b=_0x2f6eaf,{batch:batch=null,batchSize:_0x4dd00f}=_0x3f7332(_0x146638);if(typeof _0x56ff8b!==_0x30268b(0x229)||!_0x56ff8b)throw new _0x58254e(_0x30268b(0x468),'BAD_PARAM');if(typeof _0x52674d!==_0x30268b(0x229)||!_0x52674d)throw new _0x58254e(_0x30268b(0x2b1),_0x30268b(0x64a));if(_0x538e2b!=null&&typeof _0x538e2b!==_0x30268b(0x7c4))throw new _0x58254e(_0x30268b(0x756),'BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0x58254e(_0x30268b(0x55b),_0x30268b(0x64a));if(!_0x538e2b&&!batch)throw new _0x58254e('resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','BAD_PARAM');if(_0x4dd00f!==undefined&&!(Number['isInteger'](_0x4dd00f)&&_0x4dd00f>0x0))throw new _0x58254e('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x30268b(0x64a));const _0x216143=batch?async _0x370555=>(await batch(_0x370555))[_0x30268b(0x1d9)](_0x13b66c=>_0x13b66c instanceof Error?{'__error':!![],'message':_0x13b66c[_0x30268b(0x18d)]}:_0x13b66c):null,_0xa545e2=_0x541c0b(this,_0x56ff8b,_0x52674d),_0x4579ab=this['_n']('resolveField',[_0x56ff8b,_0x52674d,_0x538e2b?(_0x5054e1,_0x49cd73)=>_0xa545e2(_0x538e2b,[_0x5054e1,_0x49cd73]):null,{'batch':_0x216143?_0x509da2=>_0xa545e2(_0x216143,[_0x509da2]):null,'batchSize':_0x4dd00f}]);return()=>this['_n']('removeResolver',[_0x4579ab]);}async[_0x2f6eaf(0x49c)](_0x2b62ff,_0xfd15e2){const _0x53ed74=_0x2f6eaf;return this['_n'](_0x53ed74(0x49c),[_0x2b62ff,_0xfd15e2]);}['resolvedFields'](_0x179e32){return this['_n']('resolvedFields',[_0x179e32]);}async['readField'](_0x560828,_0x37f7c7,_0x164165,_0x33fa8e){const _0x47183e=_0x2f6eaf;return this['okdb'][_0x47183e(0x22c)]('env',this['name'],'readField',[_0x560828,_0x37f7c7,_0x164165,_0x33fa8e],![]);}async[_0x2f6eaf(0x141)](_0x763a66,_0x55db19,_0x2bbad4){const _0x1b2826=_0x2f6eaf;return this[_0x1b2826(0x6ff)][_0x1b2826(0x22c)](_0x1b2826(0x3c4),this[_0x1b2826(0x5e6)],_0x1b2826(0x141),[_0x763a66,_0x55db19,_0x2bbad4],![]);}[_0x2f6eaf(0x6ae)](){}[_0x2f6eaf(0x27c)](_0x12fdcb,_0x25431e,_0x248ea3,_0x57623b={},_0x1c545d={}){const _0x33f9ad=_0x2f6eaf;return this['okdb'][_0x33f9ad(0x722)](_0x33f9ad(0x448),null,_0x33f9ad(0x27c),[_0x12fdcb,_0x25431e,_0x248ea3,_0x57623b,_0x1c545d,this[_0x33f9ad(0x5e6)]],![]);}get['fts'](){const _0x4a5d04=_0x2f6eaf;return this[_0x4a5d04(0x6ff)]['fts'];}[_0x2f6eaf(0x1a5)](){const _0x57cf9f=_0x2f6eaf;return this[_0x57cf9f(0x6ff)]['_call'](_0x57cf9f(0x3c4),this[_0x57cf9f(0x5e6)],_0x57cf9f(0x1a5),[],![]);}[_0x2f6eaf(0x126)](){const _0xfa8c96=_0x2f6eaf;return this[_0xfa8c96(0x6ff)][_0xfa8c96(0x126)]();}[_0x2f6eaf(0xc3)](){const _0x1db647=_0x2f6eaf;return this[_0x1db647(0x6ff)]['_call'](_0x1db647(0x3c4),this['name'],'writerStatus',[],![]);}['refreshReadTxn'](){}get[_0x2f6eaf(0x5a1)](){const _0x20e75c=_0x2f6eaf;return this['_locks']||(this['_locks']=new(requireLock())[(_0x20e75c(0x3d3))](this[_0x20e75c(0x6ff)],this[_0x20e75c(0x5e6)],_0x20e75c(0x3c4)));}[_0x2f6eaf(0x10b)](){const _0x2ec815=_0x2f6eaf;return this['okdb']['_call'](_0x2ec815(0x3c4),this['name'],_0x2ec815(0x10b),[],![]);}['_registerType'](_0x19a5df){this['_n']('registerType',[_0x19a5df]);}[_0x2f6eaf(0x198)](_0x2477b2){const _0xe81e33=_0x2f6eaf;this['_n'](_0xe81e33(0x69a),[_0x2477b2]);}['_ttlState'](){const _0x35ceb6=_0x2f6eaf;return this['_n'](_0x35ceb6(0x170),[]);}[_0x2f6eaf(0x45c)](_0x5f4f1b,_0x56ee40){return _0x5f4f1b+'\x09'+_0x56ee40;}[_0x2f6eaf(0x63e)](_0x1af769){const _0x23923a=_0x2f6eaf,_0x1f86d9=_0x1af769[_0x23923a(0x419)]('\x09');return{'type':_0x1af769[_0x23923a(0x331)](0x0,_0x1f86d9),'key':_0x1af769[_0x23923a(0x331)](_0x1f86d9+0x1)};}get['_ttlByKey'](){const _0x286a06=_0x2f6eaf;if(!this[_0x286a06(0x308)]()['enabled'])return null;return this[_0x286a06(0x669)]||(this['__ttlByKey']=new _0x1d2771(this,_0x286a06(0x18e)));}get[_0x2f6eaf(0x5c0)](){const _0x39e02b=_0x2f6eaf;if(!this[_0x39e02b(0x308)]()[_0x39e02b(0x671)])return null;return this[_0x39e02b(0x777)]||(this[_0x39e02b(0x777)]=new _0x1d2771(this,_0x39e02b(0x6b1),{'dupSort':!![]}));}[_0x2f6eaf(0x58e)](_0x1998ab,_0x2f2abe,_0x1b439e){const _0x5d644d=_0x2f6eaf;this['_n'](_0x5d644d(0x1e3),[_0x1998ab,_0x2f2abe,_0x1b439e]);}[_0x2f6eaf(0x6ef)](_0x412081,_0x1b1c68){const _0x3e2a11=_0x2f6eaf,_0x4b1c22=this[_0x3e2a11(0x76a)]?.[_0x3e2a11(0x1bc)](this[_0x3e2a11(0x45c)](_0x412081,_0x1b1c68));return _0x4b1c22!=null&&_0x4b1c22<=Date[_0x3e2a11(0x772)]();}get[_0x2f6eaf(0x31f)](){const _0x1d7d59=_0x2f6eaf;return this['_ttlState']()[_0x1d7d59(0x36b)]??null;}get[_0x2f6eaf(0x34b)](){const _0x2935fc=_0x2f6eaf;return this[_0x2935fc(0x308)]()[_0x2935fc(0x3b6)]||0x0;}get[_0x2f6eaf(0x27e)](){return![];}[_0x2f6eaf(0x302)](){}async[_0x2f6eaf(0x30a)](_0x26bf64,_0x30d030){const _0x478254=_0x2f6eaf;if(this[_0x478254(0x140)]){const {OKDBError:_0x2088e8}=requireErrors();throw new _0x2088e8(_0x478254(0x769),_0x478254(0x5ce));}this['_rebuilding']=!![];try{const _0x130d80={..._0x30d030||{},'repair':_0x26bf64===_0x478254(0x4e6)};this[_0x478254(0x6ff)][_0x478254(0x722)](_0x478254(0x3c4),this['name'],_0x478254(0x356),[_0x130d80]);const _0x21cf8e=this[_0x478254(0x6ff)][_0x478254(0x6bc)];while(this[_0x478254(0x6ff)][_0x478254(0x722)](_0x478254(0x3c4),this[_0x478254(0x5e6)],'compactPending',[],![]))await _0x21cf8e[_0x478254(0x519)](0xfa);return this[_0x478254(0x6ff)][_0x478254(0x722)](_0x478254(0x3c4),this[_0x478254(0x5e6)],_0x478254(0x47b),[],![]);}finally{this[_0x478254(0x140)]=![];}}async[_0x2f6eaf(0x693)](_0x1a3d0d={}){const _0x205130=_0x2f6eaf;return this[_0x205130(0x30a)](_0x205130(0x693),_0x1a3d0d);}async[_0x2f6eaf(0x4e6)](_0x3e2623={}){return this['_rebuild']('repair',_0x3e2623);}}_0x4919b6[_0x2f6eaf(0x1be)]=_0x5927de;function _0x16205e(_0xd29273){const _0x153787=_0x2f6eaf;if(!_0xd29273||typeof _0xd29273!=='object')return![];for(const _0x107d69 of Object[_0x153787(0x5e1)](_0xd29273)){const _0x1bdd40=_0xd29273[_0x107d69];if(_0x1bdd40&&typeof _0x1bdd40===_0x153787(0x4ed)&&(_0x1bdd40[_0x153787(0x11d)]||_0x1bdd40[_0x153787(0x3da)]))return!![];}return![];}function _0x6b2630(_0x328e49){const _0x5bac09=_0x2f6eaf;if(!_0x328e49||typeof _0x328e49!==_0x5bac09(0x4ed))return{};const _0x15012f={};for(const _0x306f99 of Object[_0x5bac09(0x5e1)](_0x328e49)){if(_0x306f99===_0x5bac09(0x241)||_0x306f99==='snapshot')continue;_0x15012f[_0x306f99]=_0x328e49[_0x306f99];}return _0x15012f;}function _0x5b7d77(_0xde0e27){const _0x2d13c8=_0x2f6eaf;if(!_0xde0e27||typeof _0xde0e27!==_0x2d13c8(0x4ed))return{};const _0x4973eb={};for(const _0xf7d703 of Object[_0x2d13c8(0x5e1)](_0xde0e27)){if(typeof _0xde0e27[_0xf7d703]===_0x2d13c8(0x7c4))continue;_0x4973eb[_0xf7d703]=_0xde0e27[_0xf7d703];}return _0x4973eb;}return env={'OKDBEnv':_0x4919b6,'HIGH_SENTINEL':_0x5927de},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x4a5013}=requireErrors();function _0x5b7d25(_0x377e95){const _0x13bd32=_0x31c186=>{throw new _0x4a5013(_0x377e95,_0x31c186);};return new Proxy(function(){},{'get'(_0x28d4bf,_0x28a5bc){const _0x59637c=_0x41a2;if(typeof _0x28a5bc===_0x59637c(0x445)||_0x28a5bc===_0x59637c(0x583)||_0x28a5bc==='toJSON'||_0x28a5bc===_0x59637c(0x3d1))return undefined;if(_0x28a5bc===_0x59637c(0x5c9))return _0x377e95;return(..._0x245fb8)=>_0x13bd32(_0x377e95+'.'+String(_0x28a5bc));},'apply'(){_0x13bd32(_0x377e95);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x5b7d25},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x2199d7=_0x431d06;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x1921b7(_0x1318e7,_0x411622={}){const _0x47dd08=_0x41a2,_0x3d4cce=[];let _0x5e8705=![];_0x1318e7[_0x47dd08(0x323)]('/*')&&(_0x5e8705=!![],_0x1318e7=_0x1318e7[_0x47dd08(0x331)](0x0,-0x2),_0x3d4cce[_0x47dd08(0x540)]('*'));let _0x238497=_0x1318e7['replace'](/\/+$/,'')[_0x47dd08(0x782)](/\[([^\]]*)\]/g,(_0xac6f60,_0x572ec2)=>{const _0x2c4e14=_0x47dd08,_0x489861=_0x572ec2[_0x2c4e14(0x782)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x36db28,_0x1246c6)=>{const _0x3992e1=_0x2c4e14;return _0x3d4cce['push'](_0x1246c6),_0x3992e1(0x639);});return _0x2c4e14(0x781)+_0x489861+')?';})[_0x47dd08(0x782)](/\/:(\w+)/g,(_0x506f58,_0x263bec)=>{return _0x3d4cce['push'](_0x263bec),'/([^/]+)';});if(_0x238497==='')_0x238497='/';return{'keys':_0x3d4cce,'defaults':_0x411622||{},'wildcard':_0x5e8705,'regex':new RegExp('^'+_0x238497+(_0x5e8705?_0x47dd08(0x155):'')+_0x47dd08(0x608))};}const _0x45e9ae=require$$0$3,{PassThrough:_0x442f92}=require$$1;function _0x37d94c(_0x5a646d){const _0x1d76e5=_0x41a2,_0x269748=_0x5a646d[_0x1d76e5(0x390)](':'),_0x21575c=_0x5a646d[_0x1d76e5(0x331)](0x0,_0x269748)[_0x1d76e5(0x782)](/^\[|\]$/g,'');return{'address':_0x21575c,'family':_0x21575c[_0x1d76e5(0x4e5)](':')?_0x1d76e5(0x1f3):_0x1d76e5(0x29e),'port':Number(_0x5a646d[_0x1d76e5(0x331)](_0x269748+0x1))};}class _0xb0c0db extends _0x45e9ae['Server']{constructor(_0x2fc3a0,_0x47c136){const _0x6b230=_0x41a2;super(),this['_http']=_0x2fc3a0,this[_0x6b230(0x72d)]=_0x37d94c(_0x47c136),this[_0x6b230(0x21a)]=!![],this[_0x6b230(0x4ec)]=setInterval(()=>{},0x7fffffff);}get[_0x2199d7(0x21a)](){const _0x2f4a67=_0x2199d7;return this[_0x2f4a67(0xfa)];}set['listening'](_0x3bc3aa){this['_listening']=_0x3bc3aa;}['address'](){const _0x56377e=_0x2199d7;return this[_0x56377e(0x21a)]?{...this[_0x56377e(0x72d)]}:null;}[_0x2199d7(0x246)](){const _0x5c09be=_0x2199d7;if(this['_keepAlive'])clearInterval(this[_0x5c09be(0x4ec)]);this[_0x5c09be(0x4ec)]=null;}[_0x2199d7(0x498)](_0x51c180){const _0x3ee1ca=_0x2199d7;this[_0x3ee1ca(0x246)]();const _0x1660f8=this['_http'][_0x3ee1ca(0x498)]();if(_0x51c180)_0x1660f8[_0x3ee1ca(0x583)](()=>_0x51c180(),_0x51c180);return this;}['ref'](){const _0xf37fa1=_0x2199d7;return this['_keepAlive']?.[_0xf37fa1(0x75d)](),this;}['unref'](){const _0x546c59=_0x2199d7;return this['_keepAlive']?.[_0x546c59(0x490)](),this;}}class _0x356cd6{constructor(_0x2e7989){const _0x3a4838=_0x2199d7;this[_0x3a4838(0x6ff)]=_0x2e7989,this['servers']=[],this[_0x3a4838(0x642)]={'cookieName':'okdb_session'};}get[_0x2199d7(0x422)](){const _0x259178=_0x2199d7;return this[_0x259178(0x5b7)][0x0]||null;}['_n'](_0x5c33a6,_0x44eb35=[]){const _0x31ab68=_0x2199d7;return this[_0x31ab68(0x6ff)][_0x31ab68(0x22c)]('http',null,_0x5c33a6,_0x44eb35,!![]);}async['handle'](_0x1fb20f,_0x409d84,_0x598f88={},_0x8deee7={}){const _0x3f8070=_0x2199d7;let _0x248b39=await this['_n'](_0x3f8070(0x747),[_0x1fb20f,_0x409d84,_0x598f88,_0x8deee7]),_0x1330ef=0x0;return _0x248b39=await this[_0x3f8070(0x2fc)](_0x248b39,_0x1330ef),_0x248b39;}async[_0x2199d7(0x2fc)](_0x2bd60b,_0x3bba32){const _0x58c2a6=_0x2199d7;while(_0x2bd60b&&typeof _0x2bd60b===_0x58c2a6(0x4ed)&&_0x2bd60b[_0x58c2a6(0x5db)]!==undefined){await new Promise(_0x2868a3=>setTimeout(_0x2868a3,_0x3bba32<0x5?0x1:0x5)),_0x3bba32++,_0x2bd60b=await this['_n']('handleResult',[_0x2bd60b[_0x58c2a6(0x5db)]]);}if(_0x2bd60b&&_0x2bd60b[_0x58c2a6(0x66b)]&&typeof _0x2bd60b[_0x58c2a6(0x66b)]===_0x58c2a6(0x4ed)&&_0x2bd60b['body']['$streamId']!==undefined)_0x2bd60b[_0x58c2a6(0x66b)]=this['_stream'](_0x2bd60b['body'][_0x58c2a6(0x561)]);return _0x2bd60b;}['_stream'](_0x4ed890){const _0xd2e412=_0x2199d7,_0x10b974=new _0x442f92();let _0x624723=![];const _0x4c29d2=()=>{const _0x405f75=_0x41a2;if(_0x624723)return;_0x624723=!![],clearTimeout(_0x2f5d74),setImmediate(()=>this[_0x405f75(0x6ff)][_0x405f75(0x2ab)]&&this['okdb'][_0x405f75(0x722)](_0x405f75(0x1c8),null,_0x405f75(0x605),[_0x4ed890],!![]));};let _0x2f5d74=null;const _0x3e7751=()=>{const _0x59f280=_0x41a2;if(_0x624723)return;let _0x36b02a;try{_0x36b02a=this[_0x59f280(0x6ff)][_0x59f280(0x722)]('http',null,_0x59f280(0x514),[_0x4ed890],!![]);}catch{_0x36b02a={'chunks':[],'end':!![]};}for(const _0x57fb8e of _0x36b02a[_0x59f280(0x429)])_0x10b974['write'](_0x57fb8e);if(_0x36b02a[_0x59f280(0x4cd)]){_0x624723=!![],_0x10b974[_0x59f280(0x4cd)]();return;}_0x2f5d74=setTimeout(_0x3e7751,_0x36b02a['chunks'][_0x59f280(0x2a9)]?0x0:0xa);};_0x10b974['on'](_0xd2e412(0x498),_0x4c29d2),_0x3e7751();if(!_0x624723)_0x3e7751();if(_0x624723)_0x10b974[_0xd2e412(0x309)]();else{if(!_0x2f5d74)_0x2f5d74=setTimeout(_0x3e7751,0x0);}return _0x10b974;}[_0x2199d7(0x3a8)](_0x36387f,_0x5ed076,_0xd13cfc,_0x12a437={}){const _0x2bd1b5=_0x2199d7;return this[_0x2bd1b5(0x6ff)][_0x2bd1b5(0x722)](_0x2bd1b5(0x1c8),null,_0x2bd1b5(0x3a8),[_0x36387f,_0x5ed076,_0xd13cfc,_0x12a437,![]],!![]),this;}[_0x2199d7(0x564)](_0x2ba630,_0xb18e12,_0x1052d3,_0x579f8b={}){const _0x58dac8=_0x2199d7;return this[_0x58dac8(0x6ff)][_0x58dac8(0x722)](_0x58dac8(0x1c8),null,_0x58dac8(0x3a8),[_0x2ba630,_0xb18e12,_0x1052d3,_0x579f8b,!![]],!![]),this;}[_0x2199d7(0x26c)](_0x4c3b6a,_0x520226){const _0x5dc156=_0x2199d7,_0xe3ba7a=async _0x4a6c50=>{const _0x2ec5d8=_0x41a2,_0x5dcae7={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x3d861d={'status'(_0x1c9b32){const _0x2c24c6=_0x41a2;return _0x5dcae7[_0x2c24c6(0x5d2)]=_0x1c9b32,_0x3d861d;},'setHeader'(_0x2d393f,_0x46944a){const _0x22a773=_0x41a2;_0x5dcae7[_0x22a773(0xee)]['push']([_0x2d393f,_0x46944a]);},'send'(_0x463ab1){const _0x156126=_0x41a2;_0x5dcae7[_0x156126(0x151)]=!![],_0x5dcae7[_0x156126(0x66b)]=_0x463ab1;}};_0x4a6c50[_0x2ec5d8(0x42c)]={'remoteAddress':_0x4a6c50[_0x2ec5d8(0x474)]??null};const _0x11ed97=await _0x520226(_0x4a6c50,_0x3d861d);return{'allowed':_0x11ed97!==![],..._0x5dcae7};};this[_0x5dc156(0x6ff)][_0x5dc156(0x722)](_0x5dc156(0x1c8),null,_0x5dc156(0x26c),[_0xe316fa=>!!_0x4c3b6a(_0xe316fa),_0xe3ba7a],!![]);}[_0x2199d7(0x7be)](_0x488b71){const _0x32f140=_0x2199d7,_0xf6cf94=async _0x4088f3=>{const _0x10a907=_0x41a2,_0x381e34={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x1b1854=![];const _0x46c764={'status'(_0x389a1f){const _0x469829=_0x41a2;return _0x381e34[_0x469829(0x5d2)]=_0x389a1f,_0x46c764;},'setHeader'(_0x163c20,_0x3066f3){const _0xe92c1b=_0x41a2;_0x381e34[_0xe92c1b(0xee)][_0xe92c1b(0x540)]([_0x163c20,_0x3066f3]);},'send'(_0x5c993d){const _0x3e6a3f=_0x41a2;_0x381e34[_0x3e6a3f(0x151)]=!![],_0x381e34[_0x3e6a3f(0x66b)]=_0x5c993d;}};return _0x4088f3[_0x10a907(0x42c)]={'remoteAddress':_0x4088f3[_0x10a907(0x474)]??null},await _0x488b71(_0x4088f3,_0x46c764,async()=>{_0x1b1854=!![];}),{'allowed':_0x1b1854,..._0x381e34};};return this[_0x32f140(0x6ff)][_0x32f140(0x722)](_0x32f140(0x1c8),null,_0x32f140(0x7be),[_0xf6cf94],!![]),this;}get[_0x2199d7(0x599)](){const _0xc4d13e=_0x2199d7;return this[_0xc4d13e(0x6ff)][_0xc4d13e(0x722)](_0xc4d13e(0x1c8),null,'getMaxBodyBytes',[],![]);}set['maxBodyBytes'](_0x25b11d){const _0x19fab4=_0x2199d7;this['okdb'][_0x19fab4(0x722)](_0x19fab4(0x1c8),null,_0x19fab4(0x49f),[Number(_0x25b11d)],![]);}[_0x2199d7(0x754)](_0x3d034c,_0x14a231,_0x298566={}){const _0x4d3fad=_0x2199d7,_0x2625ad=new Map(),_0x7e2203=(_0x43fb89,_0xbb0101)=>this['okdb'][_0x4d3fad(0x722)]('http',null,_0x43fb89,_0xbb0101,![]),_0x151d5c=_0x42defe=>{const _0x55059b=_0x4d3fad,{connId:_0x620293}=_0x42defe;if(_0x42defe[_0x55059b(0x1ff)]){const _0x444d82=_0x2625ad[_0x55059b(0x1bc)](_0x620293);_0x2625ad['delete'](_0x620293);if(typeof _0x444d82==='function')_0x444d82();return;}const _0xea8da3=(_0x1237aa,_0x4c869b,_0xac64d3={})=>{const _0x274aee=_0x55059b;try{_0x7e2203(_0x274aee(0x240),[_0x620293,_0x1237aa,_0x4c869b,_0xac64d3]);}catch{}},_0x585d5c=()=>{try{_0x7e2203('sseClose',[_0x620293]);}catch{}},_0x573352=(_0x352248,_0x2b6452)=>_0x7e2203(_0x55059b(0x2a7),[_0x620293,String(_0x352248),String(_0x2b6452)]),_0x5c7b40={'auth':{'open':_0x42defe['authOpen'],'isAuthenticated':_0x42defe[_0x55059b(0x4a7)]}},_0x3f4195=_0x14a231({'send':_0xea8da3,'close':_0x585d5c,'params':_0x42defe['params']??{},'query':_0x42defe[_0x55059b(0x787)]??{},'headers':_0x42defe[_0x55059b(0xee)]??{},'context':_0x5c7b40,'setHeader':_0x573352});_0x2625ad[_0x55059b(0x48c)](_0x620293,_0x3f4195);};return this[_0x4d3fad(0x6ff)]['_call'](_0x4d3fad(0x1c8),null,_0x4d3fad(0x754),[_0x3d034c,_0x151d5c,_0x298566],!![]),this;}get[_0x2199d7(0x594)](){const _0x189a77=_0x2199d7;return this[_0x189a77(0x368)]();}[_0x2199d7(0x368)](){const _0x2d5acf=_0x2199d7;return this[_0x2d5acf(0x6ff)][_0x2d5acf(0x722)](_0x2d5acf(0x1c8),null,'listRoutes',[],![])['map'](_0x5475b1=>({..._0x5475b1,'matcher':_0x1921b7(_0x5475b1['path'],_0x5475b1[_0x2d5acf(0x19a)])}));}['validateRouteInput'](_0xd5aa79,_0x2ff84d){const _0x8d1634=_0x2199d7;return this['okdb'][_0x8d1634(0x722)]('http',null,'validateRouteInput',[_0xd5aa79,_0x2ff84d],![]);}[_0x2199d7(0x339)](_0x6c5f2f,_0x30dd0e={}){const _0x1b48cd=_0x2199d7;if(typeof _0x30dd0e===_0x1b48cd(0x229)||Array[_0x1b48cd(0x17d)](_0x30dd0e))_0x30dd0e={'host':_0x30dd0e};_0x30dd0e=_0x30dd0e??{};if((Number(_0x30dd0e[_0x1b48cd(0x719)])||0x0)>=0x1||_0x30dd0e[_0x1b48cd(0x766)]!=null||_0x30dd0e['primaryOkdb']!=null){const _0x214af7=new Error(_0x1b48cd(0xe8)+_0x1b48cd(0x2a8)+'CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20'+_0x1b48cd(0x6d3));_0x214af7[_0x1b48cd(0x30f)]=_0x1b48cd(0x69b);throw _0x214af7;}if(this[_0x1b48cd(0x5b7)]['length'])throw new Error(_0x1b48cd(0x6d2));const _0x474d5d=_0x30dd0e[_0x1b48cd(0x6b5)]==null?[undefined]:[][_0x1b48cd(0x70a)](_0x30dd0e[_0x1b48cd(0x6b5)]);if(!_0x474d5d[_0x1b48cd(0x2a9)]||_0x474d5d[_0x1b48cd(0x31e)](_0x35a59b=>_0x35a59b!==undefined&&(typeof _0x35a59b!==_0x1b48cd(0x229)||!_0x35a59b))){const _0xf4e735=new Error(_0x1b48cd(0x199));_0xf4e735[_0x1b48cd(0x30f)]=_0x1b48cd(0x666);throw _0xf4e735;}const _0x582e7c=require$$2[_0x1b48cd(0x79d)]?{..._0x30dd0e,'reuseport':!![]}:_0x30dd0e,_0x18124a=this[_0x1b48cd(0x6ff)][_0x1b48cd(0x722)]('http',null,'listen',[_0x6c5f2f,_0x582e7c],!![]),_0x58021c=_0x18124a['port']??_0x6c5f2f,_0x564be3=_0x30dd0e[_0x1b48cd(0x6b5)]==null?':'+_0x58021c:_0x474d5d[_0x1b48cd(0x1d9)](_0x46dc4c=>(_0x46dc4c[_0x1b48cd(0x4e5)](':')?'['+_0x46dc4c+']':_0x46dc4c)+':'+_0x58021c)[_0x1b48cd(0x7d6)](',\x20');try{this[_0x1b48cd(0x6ff)][_0x1b48cd(0x4e7)][_0x1b48cd(0x5de)](_0x564be3);if(!require(_0x1b48cd(0x56c))[_0x1b48cd(0x79d)])this[_0x1b48cd(0x6ff)][_0x1b48cd(0x4e7)]['register']({'kind':_0x1b48cd(0x73b),'listenAddr':_0x564be3});}catch{}this[_0x1b48cd(0x5b7)]=_0x18124a[_0x1b48cd(0x1b4)]['map'](_0x5369c6=>new _0xb0c0db(this,_0x5369c6));const _0x5b09a5=this[_0x1b48cd(0x5b7)][0x0];return process[_0x1b48cd(0x5ab)](()=>this[_0x1b48cd(0x5b7)][_0x1b48cd(0x64d)](_0x553bff=>_0x553bff[_0x1b48cd(0x36e)](_0x1b48cd(0x21a)))),_0x5b09a5;}async['close'](_0x62af82={}){const _0x3ee8ee=_0x2199d7,_0x593c55=this['servers'];this[_0x3ee8ee(0x5b7)]=[];if(require$$2[_0x3ee8ee(0x79d)]&&!process[_0x3ee8ee(0x24a)]&&_0x62af82[_0x3ee8ee(0x7ad)]==null)_0x62af82={..._0x62af82,'forceAfterMs':Infinity};if(_0x593c55['length']){const _0x14c4f2=_0x62af82['forceAfterMs']===Infinity?Infinity:Number['isFinite'](_0x62af82[_0x3ee8ee(0x7ad)])?Math[_0x3ee8ee(0x380)](0x0,_0x62af82[_0x3ee8ee(0x7ad)]):0x3e8,_0xdc2818=Date['now']();while(this['okdb'][_0x3ee8ee(0x722)](_0x3ee8ee(0x1c8),null,'pendingResponses',[],!![])>0x0&&Date[_0x3ee8ee(0x772)]()-_0xdc2818<_0x14c4f2)await new Promise(_0x118400=>setTimeout(_0x118400,0x5));_0x62af82={..._0x62af82,'forceAfterMs':_0x14c4f2===Infinity?0x3e8:Math[_0x3ee8ee(0x380)](0x0,_0x14c4f2-(Date[_0x3ee8ee(0x772)]()-_0xdc2818))};}await this['_n'](_0x3ee8ee(0x498),[_0x62af82]);for(const _0x274d94 of _0x593c55){_0x274d94[_0x3ee8ee(0x246)](),_0x274d94['listening']=![],_0x274d94[_0x3ee8ee(0x36e)](_0x3ee8ee(0x498));}}}return http={'OKDBHttp':_0x356cd6},http;}var fts,hasRequiredFts;function requireFts(){const _0x42f433=_0x431d06;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x2c8868=_0x527c3e=>(_0x527c3e&&typeof _0x527c3e==='object'?_0x527c3e[_0x42f433(0x5e6)]:_0x527c3e)??'default';class _0x3e4308{constructor(_0x5ba04b){const _0x1fb25b=_0x42f433;this[_0x1fb25b(0x6ff)]=_0x5ba04b;}['_n'](_0x3f6b0d,_0xd3db77,_0x32345a=![]){const _0x4ea816=_0x42f433;return this[_0x4ea816(0x6ff)]['_call'](_0x4ea816(0x448),null,_0x3f6b0d,_0xd3db77,_0x32345a);}[_0x42f433(0x5a0)](_0x4a671d,_0x1c8b3f){return this['okdb']['_callMacro']('fts',null,_0x4a671d,_0x1c8b3f,!![]);}get[_0x42f433(0x61a)](){const _0x5807de=this,_0x578b28=_0x3f5ddf=>{const _0x32619c=_0x41a2,_0x49bec5=_0x3f5ddf['indexOf'](':'),_0x830086=_0x3f5ddf[_0x32619c(0x331)](0x0,_0x49bec5),_0x4ad23c=_0x5807de[_0x32619c(0x6ff)][_0x32619c(0x446)][_0x32619c(0x1bc)](_0x830086);if(!_0x4ad23c)return undefined;const _0x54ebad=_0x4ad23c['processor'][_0x32619c(0x58d)]()[_0x32619c(0x207)](_0x41ec04=>_0x41ec04['cursorKey']===_0x32619c(0xcc)+_0x3f5ddf);if(!_0x54ebad)return undefined;return _0x4ad23c[_0x32619c(0xf8)]['_stopFor'](_0x54ebad['id'],_0x54ebad['cursorKey']);};return{'get':_0x578b28,'has':_0x3038d1=>!!_0x578b28(_0x3038d1)};}get[_0x42f433(0x276)](){return[];}[_0x42f433(0x391)](){const _0x4aba91=_0x42f433,{RawDb:_0x15d612}=requireRawdb();return new _0x15d612(this['okdb'][_0x4aba91(0x508)],_0x4aba91(0x168));}['has'](_0x5966e0,_0x1bd2a0,_0x5a2e61){const _0x4d6a52=_0x42f433;return this['_n'](_0x4d6a52(0x614),[_0x5966e0,_0x1bd2a0,_0x2c8868(_0x5a2e61)]);}[_0x42f433(0x5d2)](_0x4687e4,_0x235fe0,_0x48c787){const _0x39bafb=_0x42f433;return this['_n'](_0x39bafb(0x5d2),[_0x4687e4,_0x235fe0,_0x2c8868(_0x48c787)]);}[_0x42f433(0x58d)](_0x529b48,_0x333009){const _0x1914b3=_0x42f433;return this['_n'](_0x1914b3(0x58d),[_0x529b48,_0x2c8868(_0x333009)]);}async['_build'](_0x3fe21d,_0x1e377b,_0xa06b41,_0x1fe4e4,_0xd6c15f){const _0x34d74e=_0x42f433,_0x191368=(_0x26d808,_0x5c4537)=>this[_0x34d74e(0x6ff)][_0x34d74e(0x22c)]('fts',null,_0x26d808,_0x5c4537,!![],![]),_0x5dbde6=Date[_0x34d74e(0x772)]()+0x1d4c0;let _0x501c3b=_0x3fe21d,_0x4d204b=_0x1e377b;for(;;){try{return await _0x191368(_0x501c3b,_0x4d204b);}catch(_0x575749){if(_0x575749[_0x34d74e(0x30f)]===_0x34d74e(0x5f7)){_0x501c3b=_0x34d74e(0x42a),_0x4d204b=[_0xa06b41,_0x1fe4e4,_0x2c8868(_0xd6c15f)];if(_0x575749[_0x34d74e(0x38a)]&&_0x575749['details'][_0x34d74e(0x325)])await new Promise(_0x5647b8=>setTimeout(_0x5647b8,0x2));continue;}if(_0x575749['code']!==_0x34d74e(0x2db)||Date[_0x34d74e(0x772)]()>=_0x5dbde6)throw _0x575749;}await new Promise(_0x3999b9=>setTimeout(_0x3999b9,0x5)),_0x501c3b='reset',_0x4d204b=[_0xa06b41,_0x1fe4e4,!![],_0x2c8868(_0xd6c15f)];}}async['register'](_0x4525cf,_0xaa474,_0x4da489,_0x2f6b9b,_0x4dce8f){const _0x481b72=_0x42f433;return this[_0x481b72(0x5bf)](_0x481b72(0xb9),[_0x4525cf,_0xaa474,_0x4da489,_0x2f6b9b,_0x2c8868(_0x4dce8f)],_0x4525cf,_0xaa474,_0x4dce8f);}async['drop'](_0x2e97a8,_0xd0b4d,_0x57b4fa){const _0x5b119c=_0x42f433;return this[_0x5b119c(0x5a0)](_0x5b119c(0x2e7),[_0x2e97a8,_0xd0b4d,_0x2c8868(_0x57b4fa)]);}async[_0x42f433(0x3fa)](_0x1191d1,_0x5f0b45,_0x359d4e,_0x4b51f3){const _0x615769=_0x42f433;return this[_0x615769(0x5bf)](_0x615769(0x3fa),[_0x1191d1,_0x5f0b45,_0x359d4e,_0x2c8868(_0x4b51f3)],_0x1191d1,_0x5f0b45,_0x4b51f3);}async[_0x42f433(0x60f)](_0x170b31,_0x19f311,_0x595895,_0x6741c1){const _0x4f59c5=_0x42f433;return this[_0x4f59c5(0x5bf)](_0x4f59c5(0x60f),[_0x170b31,_0x19f311,_0x595895,_0x2c8868(_0x6741c1)],_0x170b31,_0x19f311,_0x6741c1);}async['_waitNative'](_0x174e57,_0x42c233,_0x50a1ff,_0x57129d=0x1d4c0){const _0x32027a=_0x42f433,_0x4da388=Date['now']()+_0x57129d;for(;;){try{return await this[_0x32027a(0x5a0)](_0x174e57,[..._0x42c233,0x1]);}catch(_0x281e3c){if(_0x281e3c['code']!==_0x50a1ff||Date[_0x32027a(0x772)]()>=_0x4da388)throw _0x281e3c;}await new Promise(_0x9be01=>setTimeout(_0x9be01,0x2));}}async[_0x42f433(0x158)](_0x15d3b5,_0x47074c,_0x25a3dc){const _0x1bb800=_0x42f433;return this[_0x1bb800(0x7a6)](_0x1bb800(0x158),[_0x15d3b5,null,_0x2c8868(_0x25a3dc)],'FTS_READY_TIMEOUT');}async[_0x42f433(0x69e)](_0x1f3e8e,_0xccc819){const _0x1ba1f0=_0x42f433;return this[_0x1ba1f0(0x7a6)](_0x1ba1f0(0x69e),[_0x1f3e8e,_0x2c8868(_0xccc819)],_0x1ba1f0(0x721));}async[_0x42f433(0x693)](_0x427889,_0x45126a){const _0x3d9eb9=_0x42f433;return this[_0x3d9eb9(0x5a0)](_0x3d9eb9(0x693),[_0x427889,_0x2c8868(_0x45126a)]);}async[_0x42f433(0x7b5)](_0x147dea={}){const _0xf7a585=_0x42f433;return this['_nm'](_0xf7a585(0x7b5),[_0x147dea]);}async['compactStorage'](_0x1cf209){const _0x1bf0cf=_0x42f433;return this[_0x1bf0cf(0x5a0)]('compactStorage',[_0x2c8868(_0x1cf209)]);}[_0x42f433(0x3ac)](_0x56c2e6){const _0x595d5a=_0x42f433;return this['_n'](_0x595d5a(0x3ac),[_0x2c8868(_0x56c2e6)]);}['search'](_0x31ff46,_0x186953,_0x4e6697,_0x228d7f,_0x5ddfee){const _0x43c142=_0x42f433;return this['_n'](_0x43c142(0x292),[_0x31ff46,_0x186953,_0x4e6697,_0x228d7f||{},_0x2c8868(_0x5ddfee)]);}[_0x42f433(0x38c)](_0x4d6605,_0x3ca9bf,_0x1266a9,_0x4cd748,_0x632be6,_0x1f19f3){const _0x59d03c=_0x42f433;return this['_n'](_0x59d03c(0x38c),[_0x4d6605,_0x3ca9bf,_0x1266a9,_0x4cd748||{},_0x2c8868(_0x632be6),_0x1f19f3]);}[_0x42f433(0x3a7)](_0x4dd88d,_0x23f8c7,_0xdcb148,_0x4271d7,_0x3d039b){const _0x4b803f=_0x42f433;return this['_n'](_0x4b803f(0x570),[_0x4dd88d,_0x23f8c7,_0xdcb148,_0x4271d7||{},_0x2c8868(_0x3d039b)]);}['listFtsEnvs'](){const _0x48b325=_0x42f433;return this['_n'](_0x48b325(0x657),[]);}async[_0x42f433(0x423)](){const _0x5407e5=_0x42f433;return this[_0x5407e5(0x5a0)](_0x5407e5(0x423),[]);}}return fts={'OKDBFts':_0x3e4308},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x388f44=_0x431d06;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x3bef74,invalidArgument:_0x3205bb}=requireErrors();requireBridge();const _0x48f65c=Object[_0x388f44(0x4f8)]({'EMBEDDER':_0x388f44(0x472),'INDEXER':_0x388f44(0x320),'SEARCH':_0x388f44(0x621),'WORKER':_0x388f44(0x4cc)}),_0x1d0a7b=_0x857bd5=>typeof _0x857bd5===_0x388f44(0x229)||_0x857bd5==null?_0x857bd5:Array[_0x388f44(0x295)](_0x857bd5);class _0x15f899{constructor(_0x47cdd0){const _0xe1a4f8=_0x388f44;this[_0xe1a4f8(0x6ff)]=_0x47cdd0,this[_0xe1a4f8(0x588)]=new Map(),this['_jsSchemas']=new Map(),this[_0xe1a4f8(0x279)]=new Map();}['_n'](_0xf29662,_0x4b826d=[],_0xa58699=!![]){const _0x2ede1f=_0x388f44;return this[_0x2ede1f(0x6ff)]['_call'](_0x2ede1f(0x1e7),null,_0xf29662,_0x4b826d,_0xa58699);}[_0x388f44(0x5a0)](_0x1c2fb4,_0x2500f2=[]){const _0x13b0a0=_0x388f44;return this['okdb'][_0x13b0a0(0x22c)](_0x13b0a0(0x1e7),null,_0x1c2fb4,_0x2500f2,!![]);}['_wrap'](_0x5f55ff){const _0x40e503=_0x388f44;return _0x5f55ff?this['okdb'][_0x40e503(0x7bc)][_0x40e503(0x180)](_0x5f55ff):null;}[_0x388f44(0x5e5)](_0x4ea5d1,_0x26ee61,_0x219d84={}){const _0x2a003f=_0x388f44;if(typeof _0x26ee61!==_0x2a003f(0x7c4))throw new _0x3bef74('Embedder\x20factory\x20must\x20be\x20a\x20function',_0x2a003f(0x64a),{'name':_0x4ea5d1});this[_0x2a003f(0x588)][_0x2a003f(0x48c)](_0x4ea5d1,_0x26ee61),this['_jsSchemas']['set'](_0x4ea5d1,_0x219d84);const _0x505695=this[_0x2a003f(0x6ff)],_0x390544=_0x2b9aad=>_0x26ee61(_0x2b9aad,_0x505695);_0x390544[_0x2a003f(0x293)]=_0x505695,this['_n'](_0x2a003f(0x5e5),[_0x4ea5d1,_0x390544,_0x219d84??{}],![]);}[_0x388f44(0x2f3)](_0x5360e8){const _0x71b129=_0x388f44,_0x46affe=this[_0x71b129(0x588)]['get'](_0x5360e8);if(_0x46affe)return _0x46affe;if(!this['_n']('hasEmbedderFactory',[_0x5360e8],![]))return null;const _0x4ffdf1=this;return(_0x2d51b5={})=>{const _0x509858=_0x71b129,_0x104b9f=_0x4ffdf1['_n'](_0x509858(0x14b),[_0x5360e8,_0x2d51b5],![]),_0x1b29dd=_0x4ffdf1['_n'](_0x509858(0x4bf),[_0x104b9f],![]),_0x3a91e7=(_0x57ad77,_0x4229c5)=>_0x4ffdf1['_n'](_0x509858(0x615),[_0x104b9f,_0x57ad77,_0x4229c5],![]),_0x55cd3f={'embed':async _0x416aec=>Float32Array[_0x509858(0x295)](_0x3a91e7(_0x509858(0x4f5),_0x416aec)),'start':async()=>_0x3a91e7(_0x509858(0x432)),'stop':async()=>{const _0x257e3c=_0x509858;_0x3a91e7(_0x257e3c(0x4ff)),_0x3a91e7(_0x257e3c(0x17e));}};if(_0x1b29dd)_0x55cd3f['embedBatch']=async _0x421aad=>_0x3a91e7('embedBatch',_0x421aad)['map'](_0x5df7b6=>Float32Array[_0x509858(0x295)](_0x5df7b6));return _0x55cd3f;};}[_0x388f44(0x326)](_0x5bea7d){const _0x217cd2=_0x388f44;return this[_0x217cd2(0x333)][_0x217cd2(0x1bc)](_0x5bea7d)??this['_n'](_0x217cd2(0x326),[_0x5bea7d],![])??undefined;}[_0x388f44(0x7c9)](_0x4809fc,_0x7c213d,_0x3e0022={}){const _0x1bac6f=_0x388f44;if(typeof _0x7c213d!==_0x1bac6f(0x7c4))throw new _0x3bef74(_0x1bac6f(0x3ff),'BAD_PARAM',{'name':_0x4809fc});this['_n'](_0x1bac6f(0x7c9),[_0x4809fc,(_0x35d37e,_0x296eb5)=>_0x7c213d(_0x35d37e,_0x296eb5),_0x3e0022??{}],![]);}[_0x388f44(0x3e8)](){return this['_n']('listAlgorithms',[],![]);}['registerPreparer'](_0x58e9e4,_0x4e9f1f){const _0x532b74=_0x388f44;if(typeof _0x4e9f1f!==_0x532b74(0x7c4))throw new _0x3bef74(_0x532b74(0x340),'BAD_PARAM',{'name':_0x58e9e4});this['_n']('registerPreparer',[_0x58e9e4,_0x4e9f1f]);}[_0x388f44(0x741)](_0x7aeb29,_0x3342f6){const _0x3e5b55=_0x388f44;if(typeof _0x3342f6!=='function')throw new _0x3bef74(_0x3e5b55(0x708),'BAD_PARAM',{'name':_0x7aeb29});this['_n']('registerChunkStrategy',[_0x7aeb29,_0x3342f6]);}[_0x388f44(0x38e)](_0xf74024){const _0x51e9cc=_0x388f44;if(_0xf74024==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0xf74024!==_0x51e9cc(0x7c4))throw new _0x3bef74(_0x51e9cc(0x2c8),_0x51e9cc(0x64a));const _0x380387=this[_0x51e9cc(0x6ff)];this['_n'](_0x51e9cc(0x38e),[_0x445f78=>_0xf74024(_0x445f78,_0x380387)],![]);}async[_0x388f44(0x3af)](_0x357898,_0xcb444={},_0xad1ef3={},_0x2a9827=null){const _0x3aa1c0=_0x388f44;return this[_0x3aa1c0(0x180)](await this['_nm'](_0x3aa1c0(0x3af),[_0x357898,_0xcb444,_0xad1ef3,_0x2a9827]));}async[_0x388f44(0x282)](_0xe6a09b,_0x4ff12f={},_0x38622b={}){const _0x1ec04e=_0x388f44;return this[_0x1ec04e(0x180)](await this[_0x1ec04e(0x5a0)](_0x1ec04e(0x282),[_0xe6a09b,_0x4ff12f,_0x38622b]));}async[_0x388f44(0x413)](_0x3be8b2,_0x456426={},_0x5d63f0={}){const _0x3dd3a3=_0x388f44;return this['_wrap'](await this[_0x3dd3a3(0x5a0)](_0x3dd3a3(0x413),[_0x3be8b2,_0x456426,_0x5d63f0]));}async['createWorker'](_0x45a7b2,_0x5780a3={},_0x2d7516={}){const _0x53262d=_0x388f44;return this['_wrap'](await this[_0x53262d(0x5a0)](_0x53262d(0x53b),[_0x45a7b2,_0x5780a3,_0x2d7516]));}async[_0x388f44(0x75e)](_0x5a3485,_0x3ba319={},_0x208741={}){const _0x7d86c6=_0x388f44,_0x122cb2=await this[_0x7d86c6(0x5a0)](_0x7d86c6(0x75e),[_0x5a3485,_0x3ba319,_0x208741]);return{'embedder':this[_0x7d86c6(0x180)](_0x122cb2['embedder']),'indexer':this[_0x7d86c6(0x180)](_0x122cb2[_0x7d86c6(0x320)]),'worker':this['_wrap'](_0x122cb2[_0x7d86c6(0x7eb)]),'search':this['_wrap'](_0x122cb2[_0x7d86c6(0x292)]),'api':this['_makePipelineApi'](_0x122cb2[_0x7d86c6(0x33a)],_0x122cb2[_0x7d86c6(0x472)][_0x7d86c6(0x5e6)],_0x122cb2[_0x7d86c6(0x7eb)]?_0x122cb2[_0x7d86c6(0x7eb)]['name']:_0x122cb2[_0x7d86c6(0x33a)]+_0x7d86c6(0x5fa))};}[_0x388f44(0x703)](_0x5e3537,_0x5cccee){const _0x277075=_0x388f44;return this[_0x277075(0x6ff)]['engines'][_0x277075(0x28f)](_0x5e3537,_0x5cccee)?.[_0x277075(0x7d5)]??null;}[_0x388f44(0x472)](_0x2c05a8){const _0x94f74b=_0x388f44,_0xd36445=this[_0x94f74b(0x703)](_0x48f65c[_0x94f74b(0x324)],_0x2c05a8);if(!_0xd36445)return null;const _0x50ef75=this,_0x51c400=_0x518b14=>Array['isArray'](_0x518b14)&&Array[_0x94f74b(0x17d)](_0x518b14[0x0])?_0x518b14[_0x94f74b(0x1d9)](_0x14ccdb=>Float32Array[_0x94f74b(0x295)](_0x14ccdb)):Float32Array['from'](_0x518b14);return new Proxy(_0xd36445,{'get'(_0x966ae6,_0x37683b){const _0x50621a=_0x94f74b;if(_0x37683b===_0x50621a(0x6b9))return _0x50ef75[_0x50621a(0x6ff)][_0x50621a(0x722)](_0x50621a(0x7bc),null,_0x50621a(0x44a),[_0x48f65c[_0x50621a(0x324)],_0x2c05a8,_0x50621a(0x6b9),[]],![])[_0x50621a(0x6f0)];if(_0x37683b===_0x50621a(0x4f5))return async _0x37fe9e=>_0x51c400(await _0xd36445[_0x50621a(0x4f5)](_0x37fe9e));if(_0x37683b===_0x50621a(0x679))return async _0x51e5bf=>(await _0xd36445[_0x50621a(0x679)](_0x51e5bf))[_0x50621a(0x1d9)](_0xee68a8=>Float32Array['from'](_0xee68a8));return _0x966ae6[_0x37683b];}});}[_0x388f44(0x320)](_0x1eed52){const _0x38feab=_0x388f44;return this[_0x38feab(0x703)](_0x48f65c[_0x38feab(0x182)],_0x1eed52);}[_0x388f44(0x7eb)](_0x2a0735){const _0x6c4973=_0x388f44;return this[_0x6c4973(0x703)](_0x48f65c[_0x6c4973(0x2fa)],_0x2a0735);}[_0x388f44(0x292)](_0xbeaee6){const _0x575d18=_0x388f44,_0x25dca=this[_0x575d18(0x703)](_0x48f65c['SEARCH'],_0xbeaee6);if(_0x25dca)return _0x25dca;return this['_localViewApi'](_0xbeaee6);}[_0x388f44(0x5d3)](_0x486a72){const _0x4c9aca=_0x388f44,_0x1398d6=this;return{'search':(_0xe70a30,_0x18c9e1={})=>_0x1398d6['okdb']['_callMacro'](_0x4c9aca(0x1e7),null,_0x4c9aca(0x292),[_0x486a72,_0x1d0a7b(_0xe70a30),_0x18c9e1],![]),'stats':async()=>_0x1398d6['_n'](_0x4c9aca(0x6e8),[_0x486a72],![]),'count':()=>_0x1398d6['_n'](_0x4c9aca(0x2cb),[_0x486a72,_0x4c9aca(0x70b)],![])};}async[_0x388f44(0x38c)](_0x257dab,_0x19c327,_0x13e9ea={}){const _0x2abbd5=_0x388f44,{limit:limit=0xa,..._0x4aa397}=_0x13e9ea;return this[_0x2abbd5(0x5a0)](_0x2abbd5(0x38c),[_0x257dab,_0x1d0a7b(_0x19c327),{..._0x4aa397,'limit':limit}]);}[_0x388f44(0x484)](_0x3c90b3){const _0x59db08=_0x388f44;return this['_n'](_0x59db08(0x484),[_0x3c90b3],![]);}[_0x388f44(0xd1)](_0x585375,_0x1cce58){return this['_n']('durableEngineDoc',[_0x585375,_0x1cce58],![]);}[_0x388f44(0x24d)](_0x117c3f){const _0x45ae02=_0x388f44;return this['_n'](_0x45ae02(0x43f),[_0x117c3f],![]);}async[_0x388f44(0x336)](_0xb20c3a){return this['_n']('durableStats',[_0xb20c3a],![]);}async['_durableIndexerDocs'](_0x4b088,_0x304982={}){const _0x16ad0d=_0x388f44;return this['_n'](_0x16ad0d(0x14c),[_0x4b088,_0x304982],![]);}async['_durableIndexerDoc'](_0x4806f6,_0xbf0c41){const _0x32a8ca=_0x388f44;return this['_n'](_0x32a8ca(0x67b),[_0x4806f6,_0xbf0c41],![]);}async[_0x388f44(0x452)](_0x1e5193,_0x2e5604,_0x2b11f1,_0x3fb535){const _0x1fd5ca=_0x388f44;if(_0x1e5193!=null&&typeof _0x1e5193[_0x1fd5ca(0x4e5)]!==_0x1fd5ca(0x7c4))throw _0x3205bb(_0x1fd5ca(0x5e6),_0x1fd5ca(0x4d8),_0x1e5193);if(!_0x1e5193||!_0x2b11f1)return null;return this[_0x1fd5ca(0x6ff)][_0x1fd5ca(0x22c)](_0x1fd5ca(0x1e7),null,'describeChunk',[_0x1e5193,_0x2e5604,_0x2b11f1,_0x3fb535??null],![]);}async['durableMarkDone'](_0x55c509,_0xd2ba3,_0x100ada={}){const _0x3aa629=_0x388f44,_0x1c3bed={..._0x100ada};if(_0x1c3bed[_0x3aa629(0x692)])_0x1c3bed[_0x3aa629(0x692)]=Array['from'](_0x1c3bed[_0x3aa629(0x692)]);return this['_n'](_0x3aa629(0x6f2),[_0x55c509,_0xd2ba3,_0x1c3bed]);}async[_0x388f44(0x1ec)](_0x305329,_0x49a11d,_0x3b2cd9,_0x263535={}){return this['_n']('durableMarkFail',[_0x305329,_0x49a11d,_0x3b2cd9,_0x263535]);}async[_0x388f44(0x277)](_0x5de92d,_0x2d2b35){return this['_n']('durableMarkDelete',[_0x5de92d,_0x2d2b35]);}async['durableRetryDoc'](_0x4b3bd5,_0x47aa57){const _0x13da46=_0x388f44;return this['_n'](_0x13da46(0x641),[_0x4b3bd5,_0x47aa57]);}async[_0x388f44(0x265)](_0x35d7d5,_0x447560={}){const _0x24a635=_0x388f44;return this['_n'](_0x24a635(0x265),[_0x35d7d5,_0x447560]);}async[_0x388f44(0x132)](_0x473cf6){return this['_nm']('durableRebuild',[_0x473cf6]);}async[_0x388f44(0x2c5)](_0x54127b){const _0x1ec36d=_0x388f44;return this['_n'](_0x1ec36d(0x676),[_0x54127b],![]);}['vectorStoreStats'](_0x5cc461){const _0xb59640=_0x388f44;return this['_n'](_0xb59640(0x505),[_0x5cc461],![]);}[_0x388f44(0x3d6)](){const _0x563f0b=_0x388f44;return this['_n'](_0x563f0b(0x3d6),[],![]);}[_0x388f44(0x352)](_0x164be2,_0x1b7ac5){const _0x5d35e2=_0x388f44,_0x59f047=this['_n'](_0x5d35e2(0x352),[_0x164be2,_0x1b7ac5],![]);return _0x59f047==null?null:Float32Array['from'](_0x59f047);}[_0x388f44(0x23c)](_0xde94af,_0x4b0ba3){return this['_n']('resolveModelDims',[_0xde94af,_0x4b0ba3??null],![])??undefined;}async[_0x388f44(0x197)](_0x553a5f,_0x5a2807,_0x1a5c3d,_0x2f8fff=''){const _0x5c9983=_0x388f44;return this['_n'](_0x5c9983(0x197),[_0x553a5f,_0x5a2807,_0x1a5c3d,_0x2f8fff]);}[_0x388f44(0x48e)](_0x2eef73=null){const _0x3e6111=_0x388f44;return this['_n'](_0x3e6111(0x48e),[_0x2eef73],![]);}[_0x388f44(0x7b1)](){const _0x4d4a0b=_0x388f44;return this['_n'](_0x4d4a0b(0x7b1),[],![]);}async[_0x388f44(0x209)](_0x45721a,_0x1a5951){const _0x2bf408=_0x388f44;return this['_n'](_0x2bf408(0x291),[_0x45721a,_0x1a5951],![]),this[_0x2bf408(0x6ff)][_0x2bf408(0x7d0)]('~'+_0x45721a+_0x2bf408(0x3b4)+_0x1a5951);}async[_0x388f44(0x752)](_0x41ba07,_0x43ce1b){const _0xf66936=_0x388f44;return await this['_ensureTypeEnv'](_0x41ba07,_0x43ce1b),{'adapter':_0x3a8da8=>this[_0xf66936(0x262)](_0x41ba07,_0x43ce1b,_0x3a8da8)};}[_0x388f44(0x262)](_0xa607b9,_0x5ba06c,_0x5d02f6){const _0x1dfd19=this;return{async 'put'(_0x1fbfe1,_0x553c0f){const _0x45a5b4=_0x41a2;return _0x1dfd19['_n'](_0x45a5b4(0x4e3),[_0xa607b9,_0x5ba06c,_0x5d02f6,_0x1fbfe1,Array[_0x45a5b4(0x295)](_0x553c0f)]);},async 'remove'(_0x1a0c46){const _0x384bf6=_0x41a2;return _0x1dfd19['_n'](_0x384bf6(0x171),[_0xa607b9,_0x5ba06c,_0x5d02f6,_0x1a0c46]);}};}get[_0x388f44(0x195)](){const _0xb516c0=_0x388f44,_0x5b379d=this,_0x3e9651=()=>_0x5b379d['_n']('localViewNames',[],![]),_0x4d4ba5=_0x5ac638=>{const _0x2d463c=_0x41a2,_0x34ed8b=_0x38e0e5=>_0x5b379d['_n'](_0x2d463c(0x2cb),[_0x5ac638,_0x38e0e5],![]);return{'name':_0x5ac638,'_evict':async()=>_0x34ed8b(_0x2d463c(0x384)),'evict':async()=>_0x34ed8b(_0x2d463c(0x384)),'snapshot':async()=>_0x34ed8b(_0x2d463c(0x65b)),'_snapshot':async()=>_0x34ed8b('snapshot'),'rebuild':async()=>_0x34ed8b(_0x2d463c(0x273)),'stats':()=>_0x34ed8b(_0x2d463c(0x39b)),get 'count'(){const _0x2fcfa1=_0x2d463c;return _0x34ed8b(_0x2fcfa1(0x70b));},get 'loaded'(){const _0x3d9fa2=_0x2d463c;return _0x34ed8b(_0x3d9fa2(0x4d5));}};};return{get 'size'(){return _0x3e9651()['length'];},'has':_0x447121=>_0x3e9651()[_0xb516c0(0x4e5)](_0x447121),'get':_0x337949=>_0x3e9651()['includes'](_0x337949)?_0x4d4ba5(_0x337949):undefined,'keys':()=>_0x3e9651()[Symbol['iterator']](),'values':()=>_0x3e9651()[_0xb516c0(0x1d9)](_0x4d4ba5)[Symbol[_0xb516c0(0x6b7)]](),[Symbol['iterator']]:()=>_0x3e9651()[_0xb516c0(0x1d9)](_0x362759=>[_0x362759,_0x4d4ba5(_0x362759)])[Symbol['iterator']]()};}async[_0x388f44(0x432)](){}async['stop'](){const _0x1848de=_0x388f44;this['_n'](_0x1848de(0x4ff),[]);}[_0x388f44(0x403)](_0x592de9,_0x5159c2,_0x4c994){const _0x3e38a5=_0x388f44;return{'search':(_0x1667bf,_0x3a9cc8={})=>{const _0x4db9dd=_0x41a2,_0x4a9177=this['search'](_0x592de9);if(!_0x4a9177)throw new Error('vector-search\x20engine\x20not\x20running:\x20\x22'+_0x592de9+'\x22');return _0x4a9177[_0x4db9dd(0x292)](_0x1667bf,_0x3a9cc8);},'searchDocs':(_0x56153e,_0xb19907={})=>this[_0x3e38a5(0x38c)](_0x592de9,_0x56153e,_0xb19907),'flush':_0x37f004=>{const _0x2b7024=_0x3e38a5,_0x3abab3=this[_0x2b7024(0x320)](_0x592de9);if(!_0x3abab3)throw new Error(_0x2b7024(0x300)+_0x592de9+'\x22');return _0x3abab3[_0x2b7024(0x69e)](_0x37f004);},'stats':async()=>({'embedder':await this[_0x3e38a5(0x472)](_0x5159c2)?.[_0x3e38a5(0x625)]?.(),'indexer':await this[_0x3e38a5(0x320)](_0x592de9)?.[_0x3e38a5(0x39b)]?.(),'worker':await this[_0x3e38a5(0x7eb)](_0x4c994)?.['stats']?.(),'search':await this['search'](_0x592de9)?.[_0x3e38a5(0x39b)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x15f899,'ENGINE_TYPES':_0x48f65c},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x658c0d=_0x431d06;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x481bd5}=requireErrors();class _0x316f08{constructor(_0x58c7c2){this['okdb']=_0x58c7c2;}['_n'](_0x401b8e,_0x5ac765=[],_0x5a97df=![]){const _0x562198=_0x41a2;return this[_0x562198(0x6ff)][_0x562198(0x722)](_0x562198(0x642),null,_0x401b8e,_0x5ac765,_0x5a97df);}[_0x658c0d(0x5a0)](_0x14e05e,_0xe0a15e=[]){const _0x38dc74=_0x658c0d;return this['okdb']['_callMacro'](_0x38dc74(0x642),null,_0x14e05e,_0xe0a15e,![]);}get[_0x658c0d(0x520)](){const _0x2e6764=_0x658c0d;return this['_n'](_0x2e6764(0x520));}get[_0x658c0d(0xfd)](){return this['_n']('isSetupMode');}get[_0x658c0d(0x535)](){const _0x5ae830=_0x658c0d;return this[_0x5ae830(0x6ff)][_0x5ae830(0x2f0)][_0x5ae830(0x642)]?.[_0x5ae830(0x2a4)]||{};}[_0x658c0d(0x4d3)](_0x2e01e7){return this['_n']('isOAuthEmailAllowed',[_0x2e01e7??null]);}[_0x658c0d(0x376)](_0x4fbbe7){const _0x4ef7f2=_0x658c0d;return this['_n'](_0x4ef7f2(0x595),[_0x4fbbe7??null]);}[_0x658c0d(0x788)](_0x555d4e){const _0x2cb89b=_0x658c0d;return this['_n'](_0x2cb89b(0x2f8),[_0x555d4e??null]);}[_0x658c0d(0x45a)](){const _0x489499=_0x658c0d;return this['_n'](_0x489499(0x7a7));}['getOpenWarning'](){return this['_n']('getOpenWarning');}[_0x658c0d(0x2fe)](){const _0x4003c6=_0x658c0d;return this['_n'](_0x4003c6(0x2fe));}[_0x658c0d(0x425)](_0x5dc61d){const _0x4def78=_0x658c0d;return this['_n'](_0x4def78(0x425),[_0x5dc61d]);}[_0x658c0d(0x4be)](_0x17a0dc){const _0x33af15=_0x658c0d;return this['_n'](_0x33af15(0x4be),[_0x17a0dc]);}[_0x658c0d(0x7ae)](_0x5f2441){const _0xfc7dab=_0x658c0d;if(_0x5f2441!=null&&typeof _0x5f2441!=='string')throw _0x481bd5(_0xfc7dab(0x492),_0xfc7dab(0x4d8),_0x5f2441);return this['_n']('parseBearer',[_0x5f2441??null]);}async[_0x658c0d(0x60e)](){const _0x4e0754=_0x658c0d;return this['_n'](_0x4e0754(0x42d),[],!![]);}async[_0x658c0d(0x696)](_0x2246d8){const _0x3b4e63=_0x658c0d;return this['_n'](_0x3b4e63(0x3e1),[_0x2246d8]);}async[_0x658c0d(0x620)](_0x892cd3){const _0x3ecf37=_0x658c0d;return this['_n'](_0x3ecf37(0x466),[_0x892cd3]);}async[_0x658c0d(0x40c)](_0x21748f){const _0x2634d4=_0x658c0d;return this['_n'](_0x2634d4(0x5e2),[_0x21748f]);}async[_0x658c0d(0x451)](_0x5a8704){const _0xbfece2=_0x658c0d,_0x1e322d=_0x5a8704?.[_0xbfece2(0xee)]||{};return this['_n'](_0xbfece2(0x451),[{'remoteAddress':_0x5a8704['socket']?.['remoteAddress']??null,'internal':_0x5a8704?.[_0xbfece2(0x1fb)]?.['internal']===!![],'authorization':_0x1e322d[_0xbfece2(0x313)]??null,'cookies':_0x5a8704?.[_0xbfece2(0x2f1)]??{}}]);}async[_0x658c0d(0x504)](_0x2ed85d,_0x2b0901){const _0xbc203a=_0x658c0d;return this[_0xbc203a(0x5a0)]('login',[_0x2ed85d??null,_0x2b0901??null]);}async[_0x658c0d(0x7dc)](_0x4daa48,_0x16985b,_0x5000f8){const _0x583272=_0x658c0d;return this['_nm'](_0x583272(0x7dc),[_0x4daa48??null,_0x16985b??null,_0x5000f8??null]);}[_0x658c0d(0x32d)](){const _0x5b4e98=_0x658c0d;return this['_n'](_0x5b4e98(0x32d));}[_0x658c0d(0x111)](){const _0x3356e7=_0x658c0d;return this['_n'](_0x3356e7(0x111));}[_0x658c0d(0x49b)](_0x3fea01={},_0x36405f=0x927c0){const _0x21ed10=_0x658c0d;return this['_n'](_0x21ed10(0x49b),[_0x3fea01,_0x36405f]);}['consumeLoginState'](_0x4aecac){return this['_n']('consumeLoginState',[_0x4aecac]);}async['_validateOidcAccessToken'](_0x296bbd,_0x433f4d={}){const _0x26c7ab=_0x658c0d;return this[_0x26c7ab(0x5a0)](_0x26c7ab(0xf4),[_0x296bbd,_0x433f4d]);}async[_0x658c0d(0x5aa)](_0x5299c8={}){const _0xd13a81=_0x658c0d;return this[_0xd13a81(0x5a0)]('getOidcDiscovery',[_0x5299c8]);}[_0x658c0d(0x363)](_0x4e6c25){const _0x56996d=_0x658c0d;return this['_n'](_0x56996d(0x60c),[_0x4e6c25]);}}return auth={'OKDBAuth':_0x316f08},auth;}var sync,hasRequiredSync;function requireSync(){const _0x320c83=_0x431d06;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4fef95}=requireRawdb();class _0x33b00f{constructor(_0x4d56c6){this['_s']=_0x4d56c6;}get[_0x320c83(0x2f7)](){const _0x7f99d7=_0x320c83;return this['_ack']||(this[_0x7f99d7(0x252)]=new _0x4fef95(this['_s'][_0x7f99d7(0x6ff)][_0x7f99d7(0x508)],_0x7f99d7(0x6bd)));}[_0x320c83(0x5f8)](){const _0x423151=_0x320c83;return this[_0x423151(0x2f7)];}['_ensureDbs'](){const _0x2ab3d0=_0x320c83;return this[_0x2ab3d0(0x2f7)];}['_n'](_0x570ba9,_0x4a31c2=[]){return this['_s']['_n']('gc.'+_0x570ba9,_0x4a31c2);}[_0x320c83(0x71b)](_0x3cb6c2,_0x4ccf90){const _0x56fbe8=_0x320c83;return this['_n'](_0x56fbe8(0x71b),[_0x3cb6c2,_0x4ccf90]);}async[_0x320c83(0x1ae)](_0x35e276){const _0x575502=_0x320c83;return this['_n'](_0x575502(0x1ae),[_0x35e276]);}['getPeerAcks'](){return this['_n']('getPeerAcks');}[_0x320c83(0x6ea)](_0x4112a7){return this['_n']('getGcHorizon',[_0x4112a7]);}async[_0x320c83(0x2b8)](){return this['_n']('runGc');}[_0x320c83(0x39f)](){const _0x44dd3e=_0x320c83;return this['_n'](_0x44dd3e(0x39f));}[_0x320c83(0x432)](){const _0x49853=_0x320c83;return this['_n'](_0x49853(0x432));}[_0x320c83(0x4ff)](){return this['_n']('stop');}get[_0x320c83(0x327)](){try{return this['_n']('timerArmed')?{}:null;}catch{return null;}}}class _0x574b25{constructor(_0xdd36ce){const _0x45e198=_0x320c83;this[_0x45e198(0x6ff)]=_0xdd36ce,this['gc']=new _0x33b00f(this);const _0x383ec7=this;this[_0x45e198(0x2f0)]=new Proxy({},{'get':(_0x4e762f,_0x47b624)=>typeof _0x47b624===_0x45e198(0x229)?_0x383ec7['_n'](_0x45e198(0x2f0))[_0x47b624]:undefined,'set':(_0xd2dc3d,_0x45bd4d,_0x35bbd1)=>{const _0x59b4b4=_0x45e198;if(_0x45bd4d==='address')_0x383ec7['_n'](_0x59b4b4(0x32f),[_0x35bbd1??null]);else{if(_0x45bd4d===_0x59b4b4(0x143))_0x383ec7['_n'](_0x59b4b4(0x512),[_0x35bbd1??null]);else{if(_0x45bd4d===_0x59b4b4(0x75c))_0x383ec7['_n'](_0x59b4b4(0x789),[_0x35bbd1]);}}return!![];},'ownKeys':()=>Object[_0x45e198(0x5e1)](_0x383ec7['_n'](_0x45e198(0x2f0))),'getOwnPropertyDescriptor':(_0x245bc4,_0x277f7b)=>({'enumerable':!![],'configurable':!![],'value':_0x383ec7['_n'](_0x45e198(0x2f0))[_0x277f7b]}),'has':(_0xa1356b,_0x596cd1)=>_0x596cd1 in _0x383ec7['_n']('options')});}['_n'](_0x27619e,_0x484580=[],_0x13ca22=![]){const _0x162999=_0x320c83;return this[_0x162999(0x6ff)][_0x162999(0x722)](_0x162999(0x776),null,_0x27619e,_0x484580,_0x13ca22);}[_0x320c83(0x5a0)](_0x183598,_0x476353=[]){const _0x441c96=_0x320c83;return this[_0x441c96(0x6ff)]['_callMacro'](_0x441c96(0x776),null,_0x183598,_0x476353,!![]);}get[_0x320c83(0x6a3)](){const _0x1dd460=_0x320c83;return this[_0x1dd460(0x15c)]||(this[_0x1dd460(0x15c)]=new _0x4fef95(this[_0x1dd460(0x6ff)][_0x1dd460(0x508)],_0x1dd460(0x579)));}[_0x320c83(0x714)](){const _0x2afc91=_0x320c83;return this[_0x2afc91(0x6a3)];}get[_0x320c83(0x661)](){const _0x4c24cf=_0x320c83;return this[_0x4c24cf(0x6fa)]||(this['_syncLock']=new(requireLock())[(_0x4c24cf(0x3d3))](this['okdb'],_0x4c24cf(0xfb),_0x4c24cf(0x776),{'ttlMs':0x7530}));}get[_0x320c83(0x695)](){const _0x4070e5=_0x320c83;return this['_n'](_0x4070e5(0x2f0))[_0x4070e5(0x695)];}get['_clockListener'](){const _0x18b2e2=_0x320c83;return this[_0x18b2e2(0x6ff)][_0x18b2e2(0x2ab)]&&this['_n'](_0x18b2e2(0x6e9))?{}:null;}get[_0x320c83(0xd4)](){const _0x623e1=_0x320c83;return this[_0x623e1(0x566)];}get['_nodePrivateKey'](){const _0x177300=_0x320c83;return this['_n']('nodeKeys')?.[_0x177300(0x20f)];}get[_0x320c83(0x597)](){const _0xe0e71f=_0x320c83;return this['_n'](_0xe0e71f(0x190))?.[_0xe0e71f(0x665)];}[_0x320c83(0xd5)](){const _0x5ef6d2=_0x320c83;return this['_n'](_0x5ef6d2(0xd5));}[_0x320c83(0x546)](){return this['_n']('getSelfNode');}get[_0x320c83(0x5c1)](){const _0x33a195=_0x320c83;return this[_0x33a195(0x6e5)]||(()=>this['_n'](_0x33a195(0x5c1)));}set[_0x320c83(0x5c1)](_0x46c8cf){const _0x46fb85=_0x320c83;this[_0x46fb85(0x6e5)]=typeof _0x46c8cf==='function'?_0x46c8cf:null,this['_n']('setPeersFn',[this[_0x46fb85(0x6e5)]]);}[_0x320c83(0x796)](){return this['_n']('listPeers');}async['reconcile'](){const _0x4ca168=_0x320c83;return this[_0x4ca168(0x5a0)](_0x4ca168(0x6b0));}async['reconcilePeer'](_0x1daf5f){const _0x2f711c=_0x320c83;return this['_nm'](_0x2f711c(0x6fc),[_0x1daf5f]);}async[_0x320c83(0x7c5)](_0x31980d,_0x526d4a={}){const _0x1243b7=_0x320c83;return this[_0x1243b7(0x5a0)](_0x1243b7(0x3ea),[_0x31980d,_0x526d4a]);}[_0x320c83(0x4ff)](){const _0x4fb91d=_0x320c83;return this['_n'](_0x4fb91d(0x4ff));}[_0x320c83(0x226)](){const _0x3dab4f=_0x320c83;return this['_n'](_0x3dab4f(0x226));}async[_0x320c83(0x67f)](_0x2dd8ae,_0x2a8d5b={}){return this['_n']('upsertLink',[_0x2dd8ae,_0x2a8d5b],!![]);}async[_0x320c83(0x495)](_0x406d7e){const _0x36b55a=_0x320c83;return this['_n'](_0x36b55a(0x495),[_0x406d7e],!![]);}[_0x320c83(0x3ae)](_0xaa0577){return this['_n']('getNodeRecord',[_0xaa0577]);}[_0x320c83(0x71f)](_0x122eb1){return this['_n']('getPeerState',[_0x122eb1]);}async[_0x320c83(0x40f)](_0x28e944,_0x352df1,_0x2b4a01={}){const _0x451fef=_0x320c83;return this['_n'](_0x451fef(0x18c),[_0x28e944,_0x352df1,_0x2b4a01]);}async[_0x320c83(0x255)](_0x44bf22){const _0x3d9c04=_0x320c83;return this['_n'](_0x3d9c04(0x2d1),[_0x44bf22]);}async[_0x320c83(0x47a)](){const _0x52e869=_0x320c83;return this['_n'](_0x52e869(0x3fa),[],!![]);}async['patchSelf'](_0x3911da){return this['_n']('patchSelf',[_0x3911da],!![]);}async[_0x320c83(0x7d6)](_0x153d0e,_0x3f4037={}){const _0x5f13eb=_0x320c83;return this[_0x5f13eb(0x5a0)](_0x5f13eb(0x7d6),[_0x153d0e,_0x3f4037]);}async[_0x320c83(0x45e)](_0x77d135={},_0x1cf5f7={}){const _0x32b3fc=_0x320c83;return void _0x77d135['~system'],this['_n'](_0x32b3fc(0x45e),[_0x77d135,_0x1cf5f7]);}async[_0x320c83(0x792)](_0x32bc7a,_0xd4e5a6,_0x505682,_0xfc733){const _0x31a150=_0x320c83;return this[_0x31a150(0x5a0)](_0x31a150(0x792),[_0x32bc7a,_0xd4e5a6,_0x505682,_0xfc733??null]);}async['fetchRemoteDelta'](_0x3a5ede,_0x481d69,_0x46272f={}){return this['_nm']('fetchRemoteDelta',[_0x3a5ede,_0x481d69,_0x46272f]);}[_0x320c83(0x26d)](_0x60efa4,_0x492fd1=null){const _0x1364b9=_0x320c83;return this['_n'](_0x1364b9(0x66a),[_0x60efa4,_0x492fd1?_0x492fd1[_0x1364b9(0x5e6)]:null]);}[_0x320c83(0x183)](_0x4f479d,_0x1102d5=null){const _0x49422a=_0x320c83;return this['_n'](_0x49422a(0x183),[_0x4f479d,_0x1102d5?_0x1102d5[_0x49422a(0x5e6)]:null],!![]);}}return sync={'OKDBSync':_0x574b25},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x2fa017=_0x431d06;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x3bca83}=requireErrors(),_0x2e7a11=require$$0,_0x235d27=require$$4,_0x48868d=0x40*0x400;async function _0x38c811(_0x1ff57c,_0x4de4a4){const _0xb34cbe=_0x41a2;for(let _0x48e793=0x0;_0x48e793<_0x4de4a4[_0xb34cbe(0x2a9)];){let _0x298de2=Math[_0xb34cbe(0x165)](_0x4de4a4[_0xb34cbe(0x2a9)],_0x48e793+_0x48868d);if(_0x298de2<_0x4de4a4[_0xb34cbe(0x2a9)]){const _0x1c7cde=_0x4de4a4['indexOf'](0xa,_0x298de2-0x1);_0x298de2=_0x1c7cde===-0x1?_0x4de4a4[_0xb34cbe(0x2a9)]:_0x1c7cde+0x1;}const _0x270147=_0x1ff57c[_0xb34cbe(0x75a)](_0x4de4a4['subarray'](_0x48e793,_0x298de2));_0x48e793=_0x298de2;if(!_0x270147)await new Promise(_0x438754=>_0x1ff57c[_0xb34cbe(0x73e)]('drain',_0x438754));await new Promise(_0x47a8de=>setImmediate(_0x47a8de));}}async function _0x476de5(_0x12a90c){const _0x35d2f3=_0x41a2,_0x2f3ab3=[];for await(const _0x4c9222 of _0x12a90c)_0x2f3ab3[_0x35d2f3(0x540)](Buffer[_0x35d2f3(0x68e)](_0x4c9222)?_0x4c9222:Buffer['from'](_0x4c9222,_0x35d2f3(0x77e)));return Buffer[_0x35d2f3(0x70a)](_0x2f3ab3);}class _0x575bc5{constructor(_0x42899d){this['okdb']=_0x42899d;}['_n'](_0x16922d,_0x5179d3){const _0x58f5e9=_0x41a2;return this[_0x58f5e9(0x6ff)][_0x58f5e9(0x722)](_0x58f5e9(0x14a),null,_0x16922d,_0x5179d3,!![]);}async[_0x2fa017(0x2f6)](_0x236ba9,_0x595ea8={}){const _0x52a7f7=_0x2fa017,{data:_0x532d03,stats:_0x4c7f56}=this['_n'](_0x52a7f7(0x7de),[_0x595ea8]);return await _0x38c811(_0x236ba9,Buffer[_0x52a7f7(0x295)](_0x532d03)),_0x4c7f56;}async[_0x2fa017(0x414)](_0x4945ea,_0x39ea28={}){const _0x16680a=_0x2fa017;_0x2e7a11['mkdirSync'](_0x235d27[_0x16680a(0x28e)](_0x4945ea),{'recursive':!![]});const _0x226634=_0x2e7a11[_0x16680a(0x106)](_0x4945ea),_0x867e40=await this[_0x16680a(0x2f6)](_0x226634,_0x39ea28);return await new Promise((_0x2628e3,_0xfdd466)=>{const _0x6973aa=_0x16680a;_0x226634[_0x6973aa(0x4cd)](),_0x226634[_0x6973aa(0x73e)](_0x6973aa(0x22a),_0x2628e3),_0x226634[_0x6973aa(0x73e)]('error',_0xfdd466);}),{..._0x867e40,'filePath':_0x4945ea};}async['exportEnvsToStream'](_0x58356e,_0x45807b={}){const _0x528658=_0x2fa017,{data:_0x6d9b0b,stats:_0x3d2b07}=this['_n'](_0x528658(0x701),[_0x45807b]);return await _0x38c811(_0x58356e,Buffer[_0x528658(0x295)](_0x6d9b0b)),_0x3d2b07;}async[_0x2fa017(0x5ff)](_0x3c9142,_0x535e28={}){const _0x2be2b2=_0x2fa017,_0x48f7e2=await _0x476de5(_0x3c9142),{onProgress:_0x1ac95d,..._0x20a546}=_0x535e28,_0x12cdb3=this['_n'](_0x2be2b2(0x3e4),[_0x48f7e2,_0x20a546]);if(typeof _0x1ac95d===_0x2be2b2(0x7c4))_0x1ac95d({'type':null,'count':_0x12cdb3[_0x2be2b2(0x486)]});return _0x12cdb3;}async[_0x2fa017(0x3c7)](_0x36285a,_0x3417b8={}){const _0x156f86=_0x2fa017;return this[_0x156f86(0x5ff)](_0x2e7a11[_0x156f86(0x5be)](_0x36285a,{'encoding':_0x156f86(0x77e)}),_0x3417b8);}async[_0x2fa017(0x711)](_0x3a752e,_0x5a839f={}){const _0x30574c=_0x2fa017;return this['_n'](_0x30574c(0x711),[_0x3a752e,_0x5a839f]);}['backupRoot'](){const _0x6f0c72=_0x2fa017;return this['_n'](_0x6f0c72(0x549),[]);}[_0x2fa017(0x367)](_0x2b5909){const _0x1db255=_0x2fa017;return this['_n'](_0x1db255(0x367),[_0x2b5909??null]);}async[_0x2fa017(0x5bc)](_0x4f2d4b={}){const _0x26a266=_0x2fa017;return this['_n'](_0x26a266(0x5bc),[_0x4f2d4b]);}async[_0x2fa017(0x3f2)](_0x4ace55,_0x2a369f={}){return this['_n']('import',[_0x4ace55,_0x2a369f]);}async[_0x2fa017(0x16f)](_0x56dc34){const _0x48a2d6=_0x2fa017,{pretty:pretty=![]}=_0x3bca83(_0x56dc34);return JSON['stringify'](await this[_0x48a2d6(0x5bc)](),null,pretty?0x2:0x0);}async[_0x2fa017(0xe0)](_0x164841){const _0xfce507=_0x2fa017;return this[_0xfce507(0x3f2)](JSON[_0xfce507(0x16c)](_0x164841));}[_0x2fa017(0x712)](){const _0x19ef56=_0x2fa017;if(!this[_0x19ef56(0x6ff)][_0x19ef56(0x446)]['get'](_0x19ef56(0x686))?.[_0x19ef56(0x253)])throw new Error(_0x19ef56(0x39a));}async[_0x2fa017(0x56e)](_0x4823ae){const _0xd9557=_0x2fa017;return this[_0xd9557(0x712)](),this['_n']('exportBlobs',[_0x4823ae]);}async[_0x2fa017(0x287)](_0x5b80f1){const _0x4ae48c=_0x2fa017;return this['_assertFiles'](),this['_n'](_0x4ae48c(0x287),[_0x5b80f1]);}['_allEnvsWithFiles'](){const _0x3c8029=_0x2fa017;return this['_n'](_0x3c8029(0x3d8),[])['map'](_0x32f018=>this[_0x3c8029(0x6ff)][_0x3c8029(0x3c4)](_0x32f018));}async[_0x2fa017(0x649)](){const _0x2a8120=_0x2fa017;return this[_0x2a8120(0x712)](),this['_n'](_0x2a8120(0x649),[]);}async['repairBlobRefs'](){const _0x234200=_0x2fa017;return this['_assertFiles'](),this['_n'](_0x234200(0x6aa),[]);}}return migrate={'OKDBMigrate':_0x575bc5},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x3077bf=_0x431d06;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0xe0d3ef{constructor(_0x135e2b){const _0x224812=_0x41a2;this[_0x224812(0x6ff)]=_0x135e2b,this[_0x224812(0x7e0)]=new Map();}['_n'](_0x1cac4f,_0x2b20c1){const _0x418ba4=_0x41a2;try{return this[_0x418ba4(0x6ff)][_0x418ba4(0x722)](_0x418ba4(0x1d4),null,_0x1cac4f,_0x2b20c1,!![]);}catch(_0xbd252d){if(_0xbd252d&&_0xbd252d[_0x418ba4(0x30f)]===_0x418ba4(0x7a8)&&_0xbd252d[_0x418ba4(0x38a)]){if(_0xbd252d[_0x418ba4(0x38a)][_0x418ba4(0x521)]!==undefined)_0xbd252d[_0x418ba4(0x521)]=_0xbd252d[_0x418ba4(0x38a)][_0x418ba4(0x521)];_0xbd252d['details']=_0xbd252d[_0x418ba4(0x38a)]['details'],_0xbd252d[_0x418ba4(0x30f)]=undefined;}throw _0xbd252d;}}['_tools'](){const _0x2aad69=_0x41a2;return this['_n'](_0x2aad69(0x20e),[]);}async[_0x3077bf(0x722)](_0x46c392,_0x130dfd={}){const _0x1c62eb=_0x3077bf;return this['_n'](_0x1c62eb(0x7cd),[_0x46c392??null,_0x130dfd??{}]);}async[_0x3077bf(0xc1)](_0x25f23e,_0x1d45f5={}){const _0x1bbc3f=_0x3077bf;return this['_n'](_0x1bbc3f(0x747),[_0x25f23e,_0x1d45f5??{}]);}[_0x3077bf(0x37f)](_0x50970f){return this['_n']('initialize',[_0x50970f??null]);}}return mcp={'OKDBMcp':_0xe0d3ef},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x5e09fe=_0x431d06;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x5f2e75(_0x36285d,_0x16f9ea,_0x322fe6){const _0x1daf15=_0x41a2,_0x199c38={};for(const [_0x1b5d09,_0xa0b390]of Object['entries'](_0x322fe6)){_0x199c38[_0x1b5d09]=_0xa0b390===_0x1daf15(0xde)?async(..._0x1906b9)=>_0x36285d[_0x1daf15(0x722)](_0x16f9ea,null,_0x1b5d09,_0x1906b9):(..._0x3e7cff)=>_0x36285d[_0x1daf15(0x722)](_0x16f9ea,null,_0x1b5d09,_0x3e7cff,![]);}return _0x199c38;}const _0x134751=[_0x5e09fe(0x57b),_0x5e09fe(0x3f3),_0x5e09fe(0x4c6),_0x5e09fe(0xcd),_0x5e09fe(0x365),_0x5e09fe(0x15d),_0x5e09fe(0x76e),_0x5e09fe(0x662),_0x5e09fe(0x2cc),'typeStats','indexStats',_0x5e09fe(0x5f5),_0x5e09fe(0x185),'meta','getTypeCount',_0x5e09fe(0x374),'isTypeEmpty',_0x5e09fe(0x7e4),_0x5e09fe(0x694),_0x5e09fe(0x1f2),_0x5e09fe(0x6cc)],_0x16fd57={'add':'async','activate':_0x5e09fe(0xde),'remove':_0x5e09fe(0xde),'list':_0x5e09fe(0x776),'get':_0x5e09fe(0x776),'effective':_0x5e09fe(0x776)},_0x3d44da={'open':_0x5e09fe(0xde),'register':'async','buildOwnRow':_0x5e09fe(0x776),'_buildProcessingFacet':'sync','reportThreadStats':'sync','clearThreadStats':_0x5e09fe(0x776),'emitProc':_0x5e09fe(0x776),'addSupervisedChild':_0x5e09fe(0xde),'removeSupervisedChild':'sync','updateSupervisedChildStats':'sync','publishChildRow':_0x5e09fe(0xde),'putNode':'async','removeNode':_0x5e09fe(0xde),'nodeDead':_0x5e09fe(0x776),'listNodes':_0x5e09fe(0x776),'reap':'async','publishOwnRow':'async','deregisterSelf':_0x5e09fe(0xde),'setOwnMeta':_0x5e09fe(0x776),'noteListenAddr':'sync','hasDesired':_0x5e09fe(0x776),'getDesired':_0x5e09fe(0x776),'setDesired':_0x5e09fe(0xde),'listDesired':'sync','getCmd':_0x5e09fe(0x776),'bumpCmd':_0x5e09fe(0xde),'processingStatusView':_0x5e09fe(0x776),'processorsView':_0x5e09fe(0x776),'clusterStatusView':_0x5e09fe(0x776),'nodesView':_0x5e09fe(0x776),'treeView':_0x5e09fe(0x776),'getProcess':'sync','runtimeProcessesView':_0x5e09fe(0x776)};function _0x388628(_0x1472f6){const _0x4bcb10=_0x5e09fe,_0x10e65b={},_0x2a89f1=_0x5d7cb9=>_0x5d7cb9&&typeof _0x5d7cb9==='object'&&!Array[_0x4bcb10(0x17d)](_0x5d7cb9)&&typeof _0x5d7cb9[_0x4bcb10(0x5e6)]==='string'?_0x5d7cb9[_0x4bcb10(0x5e6)]:_0x5d7cb9;for(const _0x52d60b of _0x134751)_0x10e65b[_0x52d60b]=_0x52d60b===_0x4bcb10(0x1f2)?async(..._0x819894)=>_0x1472f6[_0x4bcb10(0x722)](_0x4bcb10(0x7a9),null,_0x52d60b,_0x819894[_0x4bcb10(0x1d9)](_0x2a89f1),!![]):(..._0x48eb4e)=>_0x1472f6['_call'](_0x4bcb10(0x7a9),null,_0x52d60b,_0x48eb4e['map'](_0x2a89f1),![]);return _0x10e65b;}function _0x1f1b91(_0x3099d9){const _0x47d034=_0x5e09fe,_0x1ab8e0=_0x5f2e75(_0x3099d9,_0x47d034(0x62e),_0x16fd57);return _0x1ab8e0;}function _0x365799(_0x46825c){const _0x67cd51=_0x5e09fe,_0x55bf07=()=>_0x46825c[_0x67cd51(0x62e)]['effective'](),_0x306089=_0x4c85c1=>_0x4c85c1[_0x67cd51(0x17e)]?{..._0x4c85c1,'_isFree':!![]}:_0x4c85c1;return{async 'addLicense'(_0x59d236){const _0x106627=_0x67cd51;return _0x46825c[_0x106627(0x62e)][_0x106627(0x3a8)](_0x59d236);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x34bcbf=_0x67cd51,_0x5a5b46=_0x55bf07();return _0x5a5b46[_0x34bcbf(0x17e)]?null:_0x5a5b46;},get 'effective'(){return _0x306089(_0x55bf07());},'hasLimit'(_0x11e802){const _0x57a0cb=_0x67cd51,_0x3ffb31=_0x55bf07();if(!_0x3ffb31[_0x57a0cb(0x76b)])return![];const _0x365641=_0x3ffb31[_0x57a0cb(0x213)]?.[_0x11e802];return!(_0x365641===null||_0x365641===undefined||_0x365641===0x0);},'isFeatureEnabled'(_0x270420){const _0x9354a0=_0x67cd51,_0x5d125b=_0x55bf07();return!_0x5d125b['enforced']||!!_0x5d125b[_0x9354a0(0x4a3)]?.[_0x270420];},'assertFeature'(_0x52c49a){const _0x319c15=_0x67cd51,_0x4f7d35=_0x55bf07();if(!_0x4f7d35[_0x319c15(0x76b)]||_0x4f7d35[_0x319c15(0x4a3)]?.[_0x52c49a])return;const {OKDBError:_0xe894e}=requireErrors(),_0x588dd5=_0x4f7d35[_0x319c15(0x17e)]?_0x319c15(0x7c1)+_0x52c49a+'.\x20Add\x20a\x20license\x20that\x20includes\x20\x22'+_0x52c49a+'\x22\x20to\x20enable\x20it.':'Feature\x20not\x20licensed:\x20'+_0x52c49a+_0x319c15(0x238)+_0x52c49a+'\x22.';throw new _0xe894e(_0x588dd5,_0x319c15(0x74a),{'feature':_0x52c49a});},'assertLimit'(_0xa29857,_0x38afc6){const _0x5bed2e=_0x67cd51,_0x1936af=_0x55bf07();if(!_0x1936af[_0x5bed2e(0x76b)])return;const _0x4c518f=_0x1936af[_0x5bed2e(0x213)]?.[_0xa29857];if(_0x4c518f===null||_0x4c518f===undefined||_0x4c518f===0x0)return;if(_0x38afc6>=_0x4c518f){const {OKDBError:_0x2bd7a4}=requireErrors();throw new _0x2bd7a4('License\x20limit\x20exceeded:\x20'+_0xa29857+'\x20('+_0x38afc6+'/'+_0x4c518f+')',_0x5bed2e(0x567),{'limit':_0xa29857,'current':_0x38afc6,'max':_0x4c518f});}},'listLicenses'(){const _0x54ca3c=_0x67cd51;return _0x46825c[_0x54ca3c(0x62e)][_0x54ca3c(0x58d)]();},'getPins'(){const _0x27cce6=_0x67cd51;return _0x46825c[_0x27cce6(0x62e)][_0x27cce6(0x58d)]()['map'](_0x25a473=>({'licenseId':_0x25a473['id'],'pin':_0x25a473['type']===_0x27cce6(0x4c4)?null:_0x25a473[_0x27cce6(0x487)]}));}};}function _0x4942f6(_0x57f392){const _0x2116ff=_0x5e09fe,_0x86b585=_0x5f2e75(_0x57f392,_0x2116ff(0x4e7),_0x3d44da);Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x3f4),{'get':()=>_0x57f392[_0x2116ff(0x722)]('processes',null,_0x2116ff(0x3f4),[],![])}),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x1f9),{'get':()=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,_0x2116ff(0x1f9),[],![])}),_0x86b585[_0x2116ff(0x56f)]=null;const _0x70dde1=_0x86b585[_0x2116ff(0x5de)];_0x86b585[_0x2116ff(0x5de)]=_0x3e1964=>{const _0x2f17af=_0x2116ff;return _0x86b585[_0x2f17af(0x56f)]=_0x3e1964,_0x70dde1(_0x3e1964);};const _0x401a4d=()=>_0x86b585[_0x2116ff(0x373)]()['map'](_0x1b4f54=>({'key':_0x1b4f54[_0x2116ff(0x1b7)],'value':_0x1b4f54,'version':0x1})),_0xe79f3={'name':_0x2116ff(0xc5),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x4a3e17=>_0x4a3e17===_0x2116ff(0x681),'getRange':_0x407d05=>_0x407d05===_0x2116ff(0x681)?_0x401a4d()[Symbol['iterator']]():[][Symbol[_0x2116ff(0x6b7)]](),'getKeys':_0x5e00b6=>_0x5e00b6==='node'?_0x401a4d()[_0x2116ff(0x1d9)](_0x211acb=>_0x211acb[_0x2116ff(0x590)])[Symbol[_0x2116ff(0x6b7)]]():[][Symbol[_0x2116ff(0x6b7)]](),'getValues':_0x3135a1=>_0x3135a1===_0x2116ff(0x681)?_0x401a4d()[_0x2116ff(0x1d9)](_0x5646b5=>_0x5646b5[_0x2116ff(0x6f0)])[Symbol[_0x2116ff(0x6b7)]]():[][Symbol[_0x2116ff(0x6b7)]](),'get':(_0x492a2f,_0xf43f15)=>_0x492a2f==='node'?_0x401a4d()[_0x2116ff(0x207)](_0x134072=>_0x134072[_0x2116ff(0x590)]===_0xf43f15)?.[_0x2116ff(0x6f0)]:undefined,'getCount':_0x3ba22a=>_0x3ba22a==='node'?_0x401a4d()[_0x2116ff(0x2a9)]:0x0};Object['defineProperty'](_0x86b585,_0x2116ff(0x5c5),{'get':()=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,_0x2116ff(0xdb),[],![])?_0xe79f3:null});const _0xe4f274=_0x86b585['open'];_0x86b585[_0x2116ff(0x4c4)]=async _0x4f4b51=>{return await _0xe4f274(_0x4f4b51),_0x86b585['_statusEnv'];},_0x86b585[_0x2116ff(0x465)]=()=>_0x57f392['_call'](_0x2116ff(0x4e7),null,'ensureDesired',[],!![]);const {RawDb:_0x521283}=requireRawdb();return Object[_0x2116ff(0x332)](_0x86b585,'_desired',{'get':()=>_0x57f392[_0x2116ff(0x508)]?_0x86b585[_0x2116ff(0x6f1)]||=new _0x521283(_0x57f392[_0x2116ff(0x508)],'~processes:desired'):undefined}),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x6e4),{'get':()=>_0x57f392[_0x2116ff(0x508)]?_0x86b585['__cmd']||=new _0x521283(_0x57f392[_0x2116ff(0x508)],_0x2116ff(0x51e)):undefined}),_0x86b585[_0x2116ff(0x5fc)]=()=>_0x57f392[_0x2116ff(0x722)]('processes',null,_0x2116ff(0x5fc),[],![]),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x11e),{'get':()=>_0x57f392['_call'](_0x2116ff(0x4e7),null,_0x2116ff(0x389),[],![])}),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x19f),{'get':()=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,_0x2116ff(0x109),[],![])}),_0x86b585[_0x2116ff(0x68b)]=()=>_0x57f392['_call']('processes',null,'buildOwnRow',[],![]),_0x86b585['_emitProc']=(_0x8c72b0,_0x280381)=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,'emitProc',[_0x8c72b0,_0x280381],![]),_0x86b585;}return sys={'makeMeta':_0x388628,'makeLicenses':_0x1f1b91,'makeLicenseChecker':_0x365799,'makeProcesses':_0x4942f6},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x1e8bcb=_0x431d06;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x3ab5f3={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x5cf51e{constructor(_0x164d00){const _0x3026f7=_0x41a2;this[_0x3026f7(0x6ff)]=_0x164d00,this['_sinks']=new Set(),this[_0x3026f7(0x7b8)]={};}[_0x1e8bcb(0x3b9)](_0x5e6778){const _0x1bbdef=_0x1e8bcb,_0x12cf34=new _0x5cf51e(this[_0x1bbdef(0x6ff)]);return _0x12cf34['_sinks']=this[_0x1bbdef(0x606)],_0x12cf34[_0x1bbdef(0x7b8)]={...this['_meta'],..._0x5e6778},_0x12cf34;}[_0x1e8bcb(0x131)](_0x28f032){const _0x1736cf=_0x1e8bcb;return this[_0x1736cf(0x606)][_0x1736cf(0x3a8)](_0x28f032),()=>this['_sinks']['delete'](_0x28f032);}[_0x1e8bcb(0x52b)](){const _0x46fa4f=_0x1e8bcb,_0x26d9ce=_0x3ab5f3[process.env.OKDB_LOG_LEVEL]??_0x3ab5f3[_0x46fa4f(0xd5)];return this[_0x46fa4f(0x70f)]=this[_0x46fa4f(0x131)](({level:_0x28be91,msg:_0x593d9b,meta:_0x1000ec,context:_0x314a7b,ts:_0x2cdd29})=>{const _0x5c9f2e=_0x46fa4f;if((_0x3ab5f3[_0x28be91]??_0x3ab5f3[_0x5c9f2e(0xd5)])<_0x26d9ce)return;if(_0x1000ec?.['feature']===_0x5c9f2e(0x2f9)&&(_0x28be91===_0x5c9f2e(0xd5)||_0x28be91==='debug'))return;const _0x219fb0=_0x28be91===_0x5c9f2e(0x4ad)?console['error']:_0x28be91===_0x5c9f2e(0x200)?console[_0x5c9f2e(0x200)]:_0x28be91===_0x5c9f2e(0xd5)?console[_0x5c9f2e(0xd5)]:console[_0x5c9f2e(0x745)],_0xd2716c=_0x1000ec&&Object[_0x5c9f2e(0x5e1)](_0x1000ec)['length']>0x0;_0xd2716c||_0x314a7b!==undefined?_0x219fb0(new Date(_0x2cdd29)[_0x5c9f2e(0x3b5)](),_0x593d9b,..._0xd2716c?[_0x1000ec]:[],..._0x314a7b!==undefined?[_0x314a7b]:[]):_0x219fb0(new Date(_0x2cdd29)[_0x5c9f2e(0x3b5)](),_0x593d9b);}),this['_detachConsole'];}['detachConsole'](){const _0x2f6c08=_0x1e8bcb;this[_0x2f6c08(0x70f)]&&(this['_detachConsole'](),this[_0x2f6c08(0x70f)]=null);}[_0x1e8bcb(0x407)](_0x3ddde5,_0x200adc){const _0x470d16=_0x1e8bcb,_0x1010b2=require$$0$4,_0x5d25a1=0x1f4,_0xe7a152=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x573d6d=[],_0x431cf6=0x0,_0x46519a=null;const _0x3dc35d=()=>{const _0x39cea8=_0x41a2;_0x46519a=null;if(_0x573d6d['length']===0x0)return;const _0x248bed=_0x573d6d;_0x573d6d=[],_0x431cf6>0x0&&(_0x248bed[_0x39cea8(0x540)]({'ts':Date[_0x39cea8(0x772)](),'level':_0x39cea8(0x200),'msg':_0x39cea8(0x596)+_0x431cf6+_0x39cea8(0x739)+(_0x431cf6===0x1?'y':_0x39cea8(0x67e))+_0x39cea8(0x5f9),'feature':_0x39cea8(0x745),'node':_0x200adc,'context':null}),_0x431cf6=0x0),_0x3ddde5[_0x39cea8(0x704)](_0x3c9eda=>{const _0x1ae546=_0x39cea8;for(const _0x3b7935 of _0x248bed)_0x3c9eda['put'](_0x1ae546(0x471),_0x1010b2[_0x1ae546(0x33b)](),_0x3b7935);})[_0x39cea8(0x603)](()=>{});},_0x4d5d9b=this[_0x470d16(0x131)](({level:_0x227ee4,msg:_0x2ea668,meta:_0x5ec569,context:_0x25a5a0,ts:_0x2f6ea1})=>{const _0x5cfe72=_0x470d16;if(_0x227ee4===_0x5cfe72(0x14e))return;_0x573d6d[_0x5cfe72(0x2a9)]>=_0x5d25a1&&(_0x431cf6++,_0x573d6d[_0x5cfe72(0x40d)]()),_0x573d6d[_0x5cfe72(0x540)]({'ts':_0x2f6ea1,'level':_0x227ee4,'msg':_0x2ea668,'feature':_0x5ec569?.[_0x5cfe72(0x3e9)]??_0x5ec569?.[_0x5cfe72(0x554)]??null,'node':_0x200adc,'context':_0x25a5a0??null}),!_0x46519a&&(_0x46519a=setTimeout(_0x3dc35d,_0xe7a152),_0x46519a[_0x5cfe72(0x490)]?.());});return()=>{_0x4d5d9b();if(_0x46519a)clearTimeout(_0x46519a);_0x3dc35d();};}[_0x1e8bcb(0x4ba)](_0x26ae58,_0xbc538c,_0x3d79a3){const _0x23a3b2=_0x1e8bcb;_0xbc538c instanceof Error&&(_0x3d79a3={'message':_0xbc538c[_0x23a3b2(0x18d)],'stack':_0xbc538c[_0x23a3b2(0x575)],..._0x3d79a3},_0xbc538c=_0xbc538c['message']);const _0x40b192={'level':_0x26ae58,'msg':_0xbc538c,'meta':{...this[_0x23a3b2(0x7b8)]},'context':_0x3d79a3,'ts':Date[_0x23a3b2(0x772)]()};try{this[_0x23a3b2(0x6ff)]['events'][_0x23a3b2(0x36e)]('log',_0x40b192);}catch{}for(const _0x2afafa of this[_0x23a3b2(0x606)]){try{_0x2afafa(_0x40b192);}catch{}}}[_0x1e8bcb(0x38b)](_0x4f2cfb){const _0x21f1e3=_0x1e8bcb;try{this[_0x21f1e3(0x6ff)]?.['events']?.[_0x21f1e3(0x36e)](_0x21f1e3(0x745),_0x4f2cfb);}catch{}for(const _0x2619bc of this['_sinks']){try{_0x2619bc(_0x4f2cfb);}catch{}}}[_0x1e8bcb(0xd5)](_0xb02733,_0x5ec8af){const _0x22cc7e=_0x1e8bcb;this['_emit'](_0x22cc7e(0xd5),_0xb02733,_0x5ec8af);}[_0x1e8bcb(0x200)](_0x2cf43e,_0x2c583e){const _0x364a8f=_0x1e8bcb;this[_0x364a8f(0x4ba)](_0x364a8f(0x200),_0x2cf43e,_0x2c583e);}[_0x1e8bcb(0x4ad)](_0x4fcbe7,_0x47e45c){const _0x5e5d92=_0x1e8bcb;this[_0x5e5d92(0x4ba)]('error',_0x4fcbe7,_0x47e45c);}[_0x1e8bcb(0x14e)](_0x13c3ae,_0x1db98b){const _0x35839=_0x1e8bcb;this[_0x35839(0x4ba)](_0x35839(0x14e),_0x13c3ae,_0x1db98b);}}return okdbLogger=_0x5cf51e,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x30aa96=_0x431d06;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x4fb9fd}=requireOkdbEnums(),{OKDBError:_0x137b80}=requireOkdbError();class _0x23c3d9{constructor(_0x31a83e){const _0x36052b=_0x41a2;this[_0x36052b(0x6ff)]=_0x31a83e,this[_0x36052b(0x7bb)]=[];}[_0x30aa96(0xb9)](_0x431e4b,_0x2234c2){const _0x41262a=_0x30aa96;if(this[_0x41262a(0x6ff)][_0x41262a(0x1a2)]!==_0x4fb9fd[_0x41262a(0x673)])throw new _0x137b80(_0x41262a(0x727),_0x41262a(0x206),{'state':this[_0x41262a(0x6ff)]['state']});if(!_0x431e4b['name'])throw new _0x137b80(_0x41262a(0x640),_0x41262a(0x4c8),{'plugin':_0x431e4b[_0x41262a(0x5e6)]});const _0x5533e2=_0x431e4b['requires']??[];for(const _0x4b2805 of _0x5533e2){if(!this[_0x41262a(0x7bb)][_0x41262a(0x31e)](_0x55f74f=>_0x55f74f['module'][_0x41262a(0x5e6)]===_0x4b2805))throw new _0x137b80('Missing\x20plugin:\x20'+_0x4b2805+_0x41262a(0x23d)+_0x431e4b[_0x41262a(0x5e6)]+')','PLUGIN_DEPENDENCY_MISSING',{'required':_0x4b2805});}if(this[_0x41262a(0x7bb)][_0x41262a(0x207)](_0x19fec8=>_0x19fec8[_0x41262a(0x554)]['name']===_0x431e4b['name']))throw new _0x137b80(_0x41262a(0x52a)+_0x431e4b[_0x41262a(0x5e6)]+'\x27\x20already\x20registered','PLUGIN_ALREADY_REGISTERED',{'plugin':_0x431e4b[_0x41262a(0x5e6)]});if(_0x431e4b['name']in this['okdb'])throw new _0x137b80('Plugin\x20name\x20\x27'+_0x431e4b['name']+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x41262a(0x6e6));const _0x21e10b=_0x431e4b['register'](this['okdb'],_0x2234c2);if(!_0x21e10b||typeof _0x21e10b!==_0x41262a(0x4ed))throw new _0x137b80('Plugin\x20\x27'+_0x431e4b[_0x41262a(0x5e6)]+_0x41262a(0x5fb),_0x41262a(0x4c8),{'plugin':_0x431e4b[_0x41262a(0x5e6)]});this[_0x41262a(0x7bb)]['push']({'module':_0x431e4b,'options':_0x2234c2,'instance':_0x21e10b});}['_started']=[];async['start'](){const _0x597268=_0x30aa96;try{for(const _0x579b8c of this[_0x597268(0x7bb)]){await _0x579b8c[_0x597268(0x314)][_0x597268(0x432)]?.(this[_0x597268(0x6ff)]),this['_started']['push'](_0x579b8c);}}catch(_0x822f7d){await this['stop']()[_0x597268(0x603)](()=>{});throw _0x822f7d;}}async[_0x30aa96(0x4ff)](){const _0x3f68da=_0x30aa96,_0x1d9af2=this[_0x3f68da(0x2a2)][_0x3f68da(0x7c0)]();this[_0x3f68da(0x2a2)]=[];let _0x49e792=null;for(const _0x2a120e of _0x1d9af2){try{await _0x2a120e[_0x3f68da(0x314)]['stop']?.(this[_0x3f68da(0x6ff)]);}catch(_0x45210e){_0x49e792??=_0x45210e;}}if(_0x49e792)throw _0x49e792;}}return okdbPlugins=_0x23c3d9,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x437c88=_0x431d06;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x53b085={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':'balanced'},_0x5f1675=new Set([_0x437c88(0x526),'pageSize',_0x437c88(0x7df),_0x437c88(0x35a),_0x437c88(0x713),'mapSize',_0x437c88(0x1df),_0x437c88(0x645),'lmdb',_0x437c88(0x642),_0x437c88(0x776),_0x437c88(0x4f3),_0x437c88(0x2f9),'timeMachine',_0x437c88(0x1d4),_0x437c88(0x53a),_0x437c88(0x745),_0x437c88(0x70c),'readerCheckIntervalMs','engines',_0x437c88(0x7b9),_0x437c88(0x397),_0x437c88(0x4e7),_0x437c88(0x507),_0x437c88(0x7d5),_0x437c88(0x17b),_0x437c88(0xdf),_0x437c88(0x14e),_0x437c88(0x5ec),_0x437c88(0x711)]),_0x45fe4d={'http':_0x437c88(0x7d1)};return statics={'defaults':_0x53b085,'KNOWN_OPTIONS':_0x5f1675,'_OPTION_HINTS':_0x45fe4d},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x506e5f=_0x431d06;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x8b5852=require$$0$2,_0x291f2a=_0x506e5f(0x2be),_0x54c86e=_0x8b5852[_0x506e5f(0x1d6)]('sha256')[_0x506e5f(0x2bd)](_0x8b5852[_0x506e5f(0x569)](_0x291f2a)[_0x506e5f(0x5bc)]({'type':_0x506e5f(0x6b3),'format':_0x506e5f(0xbe)}))['digest'](_0x506e5f(0x303))[_0x506e5f(0x331)](0x0,0x10),_0x2f2189={'LICENSED_BUILD':_0x506e5f(0x4de),'PUBLIC_KEY_PEM':_0x291f2a,'PUB_FINGERPRINT':_0x54c86e,'LICENSE_EXPIRED_ACTION':_0x506e5f(0x745)};return licenseConfig={'_C':_0x2f2189,'PUBLIC_KEY_PEM':_0x291f2a,'PUB_FINGERPRINT':_0x54c86e},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x3b6cb4=_0x431d06;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x395710=require$$0$5,{OKDBError:_0x5566ef}=requireOkdbError(),_0x58b96e=[_0x3b6cb4(0x239),_0x3b6cb4(0x4ce),_0x3b6cb4(0x5d0),_0x3b6cb4(0x717),'$lt',_0x3b6cb4(0xea),'$in',_0x3b6cb4(0x556),_0x3b6cb4(0x77c),_0x3b6cb4(0x767),_0x3b6cb4(0x6c6),'$mod','$size',_0x3b6cb4(0x576),'$type',_0x3b6cb4(0x427),_0x3b6cb4(0x51d),_0x3b6cb4(0x216),_0x3b6cb4(0x58f),'$nor'],_0x21bd04=[_0x3b6cb4(0x6f6)];function _0x375eaa(_0x41a5c5){return()=>{const _0x54c639=_0x41a2,_0x34da68=new _0x5566ef(_0x54c639(0x4eb)+_0x41a5c5+_0x54c639(0x648),_0x54c639(0x565),{'operator':_0x41a5c5});_0x34da68[_0x54c639(0x5d2)]=0x190;throw _0x34da68;};}const _0x230566=Object['freeze']({...Object[_0x3b6cb4(0x4af)](_0x58b96e['map'](_0x4424d8=>[_0x4424d8,_0x395710[_0x4424d8]])),...Object[_0x3b6cb4(0x4af)](_0x21bd04['map'](_0xfe0082=>[_0xfe0082,_0x375eaa(_0xfe0082)]))});function _0x33b5e5(_0x5bd562){const _0x1e5fbe=_0x3b6cb4;return _0x395710[_0x1e5fbe(0x6df)](_0x5bd562,{'operations':_0x230566});}function _0x15016b(_0xc773ab){const _0x487715=_0x3b6cb4;if(_0xc773ab==null)return;try{_0x33b5e5(_0xc773ab);}catch(_0x270f42){if(_0x270f42?.[_0x487715(0x30f)]===_0x487715(0x565))throw _0x270f42;}}return okdbQueryFilter={'compileFilter':_0x33b5e5,'assertFilterAllowed':_0x15016b,'ALLOWED_OPERATORS':_0x58b96e,'FORBIDDEN_OPERATORS':_0x21bd04},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function _0x27a0(){const _0x375565=['lmdb','setFilter','_handlePoke','storeEnv','bridge','makeOkdb','$regex','bigint','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','_ttlByKey','enforced','$ref','item:','getIndexStatus','INDEX_PROGRESS','byteLength','RangeError','now','__stateDb','turn','abort','sync','__ttlByExpiry','stopWorkerBegin','getRun','resetViewBegin','_syncExpiresAtField','$exists','_envWide','utf8','refTrackingDbs','continueOnRecoverableError','(?:','replace','bucket','_closed','handleDurableClock','_onItem','query','_isLoopbackIp','setDeltaLimit','ms/','tags','_okdbAdminAttached','claim_id','getUniqueViolation','groupsDb','durableTierLag','indexContent','fetchPeer','workerState','description','_timerObjs','_listPeers','storePayload','_settleWaiters','job.status_message\x20must\x20be\x20string|null','reducer','lastTxnId','_maxConnections','isWorker','ttl:clear','system','embeddings:indexer:ready','bootSyncedViewsInline','File\x20not\x20found:\x20','views','actions','attachFeed','_waitNative','isBootstrap','MCP_ERROR','meta','kickOwnedBy','killAll','catalog','forceAfterMs','parseBearer','invalid\x20log\x20level:\x20','job.finished\x20must\x20be\x20number|null','listProviders','_lockHandle','_cursors','return','process','hlc','job.','_meta','processors','errors','_plugins','engines','creating','use','setEncryptionKey','reverse','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','reconcileDesired','INVALID_OPTIONS','function','_reconcilePeer','embeddings:indexer:doc:done','Invalid\x20index\x20key\x20type\x20for\x20\x27','dbs','registerAlgorithmFactory','hybridQuery','namespace','resolvedOptions','call','setKeyBuffer','_dedupeKey','_ensureEnv','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','bind','maxExtra','_handleInProcess','api','join','fingerprint','(worst\x20','bucket\x20too\x20long','_warnUnknownOptions','OKDBTypeNotRegisteredError','loginSelect','commit','exportBuf','compression','clients','_readerCheckInterval','_getRaw','removeJob','areIndexesReady','_push','Unknown\x20OKDB\x20transaction\x20error','job\x20must\x20be\x20object','_openEnvLazy','storage\x20adapter\x20is\x20gone','modeApplied','worker','delete','createEngine','ENGINE_INVALID_TEMPLATE','bucket\x20must\x20be\x20object','register','FOREIGN_KEY_DELETE_RESTRICTED','storeEnvPath','unpin','ref:violation','der','getTTL','ITEM_UPDATE','_handle','cursor','writerStatus','TXN_ERROR','~processes','stopAll','duplicate\x20bucket:\x20','buckets',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','Unique\x20constraint\x20violated\x20on\x20','onWindow','fts:','describeAllTypes','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','sweepExpiredTTL','change','_durableEngineDoc','Unsupported\x20transaction\x20action:\x20','STARTING','_pokeListener','info','_closeEnvLocally','prevDb','disableAll','_hlc','_noChangelog','statusOpen','envPath','asyncIterator','async','subscriptions','importJSON','max_tries','_tx','TXN_START','getChanges','assertStartAllowed','T_INTEREST','path','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','bulkRemoveChunk','$lte','~queue_buckets','ttlStats','_scheduleFlush','headers','OKDBVersionMismatchError','setHostPlugins','turnWaiters','claimGated','3924480AaQuHE','validateOidcAccessToken','OKDBTypeAlreadyRegisteredError','clone','_env','processor','drainJobType','_listening','~system','previewTemplate','isSetupMode','inputSchema','patchDeclaration','_teardownNative','endIndex','_buf','processorsStop','failed_ttl','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','createWriteStream','Referenced\x20type\x20\x27','toFixed','isReader','cursorKey','storageStats','encryption\x20key\x20function\x20failed:\x20','job_type.','embeddings:indexer:doc:queued','_autoCompactTimer','ENGINE_DRIVER_MISSING_START','getLoginConfig','schema:drop','_id','snapshotScan','failJob','retry_delay','release','sync:apply','listRefViolations','drivers','_blobsDir','mapError','$near','_isWriter','ENGINE_INVALID_TYPE','stopWorkerAbort','\x0a\x09\x09let\x20','payload','_pressure','hasApi','_makeIterator','diag','regInfo','_adminRelay','_formerOrigins','_buckets','hasEnv','removeListener','_setKey','ttl','undefined','storeGetDiffs','attach','durableRebuild','next','_detachLog','hasUniqueViolations','keyFor','_wsettle',':\x20unknown\x20option\x20\x27','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','processorHold','retryable','_wb','__ref_index','throw','no_action','_rebuilding','readFieldMany','use\x20engines.registerDriver()','token','ENCRYPTION_KEY_REQUIRED','_reconcileDesired','retry','spawn','~sub','dir','migrate','embedderNew','durableDocs','callRows','debug','ctrl','INVALID_INDEX_KEY','hasBody','INACTIVE','getEntry','Schema\x20validation\x20failed\x20for\x20','(?:/(.*))?','getCount','writeKey','ready','_assertRangeOptions','_changeToClockDb','crypto','_pdb','isIndex','an\x20environment\x20name','tag\x20too\x20long','pause','enqueueClaim','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','startBegin','_uid','min','time-machine:','_timer','~fts:envs','system:stopped','@harperdb/extended-iterable:skip','job\x20type\x20must\x20be\x20object','parse','TXN_INVALID_OP','_flushDebounce','exportJSON','ttlState','vecRemove','non-empty\x20string','__absent','listBlobStatus','onDelete','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','_path','emitClearDone','_write','\x22\x20requires\x20a\x20`handler`\x20function','admin','_clockToChangeDb','isArray','free','__after','_wrap','refill_amount','INDEXER','applyChange','cron','describeAllTypesDetailed','job_type.payload_schema.definition\x20must\x20be\x20object','_assertOpen','_role','trim','clearSync','_ringSize','setPeerState','message','~ttl:key','hasStopFn','nodeKeys','_update','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','node:crypto','_localViews',':index:','registerModel','_logChange','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','defaults','registerFts','~ref_violations','REF_VIOLATION','iterate','_isReader','inflight','restrict','state','_closeReadTransaction','exportName','getResolvedOptions','~lock','queue-worker','job.buckets\x20must\x20be\x20array|null','waiting','registerViewReducer','_callPacked','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','exports','forceResync','job.idempotency_key\x20must\x20be\x20string|null','unique:violation','txnUndone','load','emitWarning','addrs','_retryPending','lock','nodeKey','when','ttl:expired','engineStart','dropType','get','getRange','HIGH_SENTINEL','resolvedFields','OKDBInvalidPrimaryKeyError','charCodeAt','grouped','announceEnqueued','lastError','processorsStatus','action','_keyFns','http','files.upload:\x20id','_changefeed','updateJob','SCHEMA_VALIDATION_FAILED','Symbol.asyncIterator','number','active','TXN_ENV_MISMATCH','sessionId','startClaimed','inBatch','mcp','changes','createHash','\x22\x20not\x20found','resume','map','continueIteration','removeSync','Array.from)\x20before\x20any\x20await.','INDEXER_DOC_QUEUED','WORKERS_REMOVED','durability',')\x20+\x20readString(source)}','node:util','running','ttlSetEntry','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','getHistory','committed','embeddings','Unknown\x20transaction\x20action:\x20','appendJobLog','ref:violation_resolved','sourceType','durableMarkFail','setPrototypeOf',':txnRange','failures','lastClock','let\x20position;\x20let\x20readString\x20=\x20','recomputeFields','IPv6','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','\x27\x20does\x20not\x20exist','a\x20non-empty\x20string','processEverything()','_deliver','rowKey','getEngine','context','fromCharCode','removeTxn','takeBuildResult','cleanup','warn','Index\x20\x27','index:progress','existing','geoQuery','scheduled','INVALID_STATE','find','halted','_ensureTypeEnv','_registrations','_typesDb','fromBufferKey','openEnv','tools','privateKey','pumping','args','encryption:key-changed','limits','relay','applyInterestDelta','$and','startsWith','_txnBuf','inNativeCall','listening','holder','embeddings:indexer:doc:failed','utf8Write','_kbuf','_staticCall','ctxSignal','REMOVE','sortedDb','typeId','readTransaction',':index','listLinks','\x27\x20already\x20registered','getRefViolation','string','finish','countByIndex','_callMacro','_connections','stopping','tierList','__HOLD__','hash','txn:end','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','isFeatureEnabled','sourceKey','applyOps','3.1.8','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','$eq','getCursor','flushMaxWait','resolveModelDims','\x20(required\x20by\x20','sweepExpired','definition','sseSend','transaction','reencrypt','clearStuck','__adminRelay','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','_release','getUint32','done','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','connected','resumeAllAfterDrain','dropping','_durableEmbedderInfo','__warned','native','formerIds','pipelines','_ack','files','storeGetTotalHeadCount','_ensurePeerState','_viewState','ms\x20max=','fail','logCap','_drainOne','getRecord','job.status_code\x20must\x20be\x20string|null','_logsDb','tolerant','formerOrigins','546126zjWIqy','getMeta','_makeLazyVectorAdapter','log\x20entry\x20message\x20required','awaitIdle','durableRetryFailed','__logsDb','NOT_IMPLEMENTED_NATIVE','for','onDo','trunc','regObject','guard','_shouldApplyChange','customReducerNames','processor:\x20quantum.module\x20must\x20be\x20a\x20string','SYSTEM_STOPPED','item:pending','clearTTL','rebuild','Engine\x20driver\x20already\x20registered:\x20\x22','TXN_CLOSED','_pendingOps','durableMarkDelete','unregisterTarget','_viewCache','Database\x20not\x20started','targetType','ftsQuery','err','_sweepInProgress','job','emb','_db','createIndexer','relay:error','write\x20batch:\x20missing\x20result','item','embeddings:indexer:flushed','importBlobs','_locks','offWindow','item:update','\x27\x20on\x20type\x20\x27','capacity','immediate','dirname','getRunningEngine','reducers','ensureTypeEnv','search','__okdb','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','from','links','patchConfig','\x20│\x20','unpack','item:remove','Type\x20\x22','raw','process\x20options.admission\x20must\x20be\x20a\x20function','IPv4','_nodePrivateKey','_lock','runRecord','_started','files.upload:\x20stream','oauth','resetReadTxn','detachFeed','sseSetHeader','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','length','setDefaultTTL','_isOpen','queue.worker(\x27','acquiredAt','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','resetIndexBegin','resolveField:\x20field\x20required','isCoordinator','actionCount','null','Transaction\x20already\x20closed','getDefinition','newListener','runGc','processRest()','enqueue','resumeOpts','_txnIdAtSnapshot','update','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','embeddings:pipeline:ready','getJobType','env:removed',':useReadTransaction','toBufferKey','changeEncryptionKey:\x20to','_durableWorkerStats','ctxProgress','_onStop','Storage\x20resolver\x20must\x20be\x20a\x20function','hasType','indexReady','viewOp','describeIndexes','existsSync','properties','license:invalid','closeEnvLocally','ensurePeerState','__ttlCancelledGen','entries','compare','view:progress','_listeners','registerHandler','doesExist','OKDBAlreadyExistsError','_sync','FIELD_RESOLVER_PENDING','_licenseInterval','getPrototypeOf','bucket\x20\x22','_resolveFilter','registerIndexDeferred','assign','_flushIntervalTimer','forgetDb','_lazyPinned','setPosition(p)\x20{\x20position\x20=\x20p\x20},','idempotency_key','drop','total','TYPE_ALREADY_REGISTERED','DONE','node:stream','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','toLowerCase','ttlTimer','Key\x20is\x20too\x20large','options','cookies','buildsPending','getEmbedderFactory','index:','gen','exportToStream','_ackDb','isLoopbackIp','functions','WORKER','getViolation','_settle','status_code','getAuthOptions','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','indexer\x20engine\x20not\x20running:\x20\x22','kind','_scheduleTTLSweep','hex','Error','changeToClockDb','_range','HTTP_ERROR','_ttlState','destroy','_rebuild','fts:drop',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','_autoCompact','setInt32','code','job.buckets[].id\x20must\x20be\x20non-empty\x20string','_tickCallback','maxMs','authorization','instance','getBucket','UNKNOWN_RANGE_OPTION','sort','preview','log\x20entry\x20fields\x20must\x20be\x20object|null','clearScan','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','bucket.capacity\x20must\x20be\x20int\x20>=\x200','storeGetHead','some','_nextExpiry','indexer','must\x20be\x20an\x20object;\x20got\x20null','engineStop','endsWith','EMBEDDER','wait','getEmbedderSchema','_gcTimer','db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','claim\x20requires\x20non-empty\x20type','_cancelTTLTimeout','intervalTimer','retryFailed','getSecurityNotices','onDone','setAddress','1153758litEty','slice','defineProperty','_jsSchemas','readField','uninstall','_durableIndexerStats','isSync','./native-loader.js','listen','scopedName','randomUUID','gcOrphanedBlobs','\x27:\x20','setLogger','rows','preparer\x20must\x20be\x20a\x20function','subsBuilt','useVersions','field\x20resolver\x20request\x20still\x20pending','offset','autoCompactState',':\x20expected\x20','offsetOf','removed','run','byLabel','_ttlBackoffUntil','session','prototype','markJobHeartbeat','_blobStatusDb','markSnapshotComplete','env:opened','getVector','install','expiresAt','_rootDb','compactBegin','21938dSJQgE','geoConfig','match','encryptionKey','timer','setLastClock','compiled','BAD_ALGORITHM_FACTORY','~queue_jobs','compactLock','getUniqueViolations','job.id\x20must\x20be\x20string','_normalizeOAuthAuthResult','_status','listIndexes','OKDBForeignKeyDeleteError','resolveBackupDest','listRoutes','system:drain','_keyListener','nextExpiry','updated_at','_subscribed','emit','callPacked','process(filter)','txn:start','byIndex','listNodes','getIndexCount','_rbuf','_isOpenForIp','_defaultEnv','setJobTypeSchema','\x22\x20is\x20not\x20registered','storeGetDiffsInRange',':clockToChange','viewDb','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','_report','_initialize','max','bucket.id\x20must\x20be\x20non-empty\x20string','loop-lag\x20','job.buckets\x20entries\x20must\x20be\x20objects','evict','signal','online','cause','process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','isWriter','details','ingest','searchDocs','setKick','setStorageResolver','_afterDurable','lastIndexOf','_envIndexDb','license:added','limit','replaceInterests','\x20===\x204)\x0a\x09\x09\x09\x09','callBatch','compaction','txnId','markJobFail','files\x20feature\x20not\x20available','stats','INVALID_TYPE_NAME','bus:proc','readString\x20}','getStatus','processor:paused','version','txn:rollback',']\x20already\x20maps\x20to\x20\x27','buffer','STARTED','targetKey','_searchWithScores','add','claimed','\x22\x20is\x20used\x20by:\x20','listTTL','envSize','algorithm\x20has\x20no\x20method\x20','_getNodeRecord','createEmbedder','root','isBun','envName','uninstallEngine',':emb:','toISOString','backoffUntil','engine:','resolveData','child','SYSTEM_CLOCK_CHANGE','_handles','ITEM_REMOVE','mean','TXN_INVALID_ACTION','handlerName','getFloat64','loadedPath','\x22\x20on\x20\x22','job_type.defaults.','env',':keyToChange','doc_status:','importFromFile','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','setMaxListeners','prefetch','quantum','storeHasDiff','ctxLog','resolution','payload_schema','updated','inspect','INVALID_ARGUMENT','NativeLock','reject','_ensureDbs','listVectorStores','stopped','envsWithFiles','~log','$within','ensure:\x20type\x20is\x20required','streamByHash','level','\x20must\x20be\x20number','target','getFast','lookupByTokenHash','_facade','filterSessionsForType','importBuf','guardSnapshotIterable','system:bus_state_change','_resolveKeys','listAlgorithms','feature','reconcilePeerPull','syncBlobs','notes','_onPending','settledTickets','equal','pauseAllAndDrain','OKDBNotImplementedNativeError','import','isType','selfKey','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','defaultTTL','alg','fts:reset','getStateAt','ensure','patch','setLogSink','created_at','openDB','Algorithm\x20factory\x20must\x20be\x20a\x20function','drainDeadlineMs','getAll','isOrchestrator','_makePipelineApi','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','ERROR','subarray','attachOKDB','incoming','setProcessingConfig','addJobType','_np','_lookupAllByName','shift','flushed','_setPeerState','changeEncryptionKey','done_ttl','_settleRead','createSearch','exportToFile',':data','priority','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','ctxUpdateStatus','indexOf','INVALID_VALUE','_baselines','startNewEnginesFromSync','getClock','OKDBForeignKeyError','embeddings:strategy:registered','_stateDb','OKDB','server','drain','transactionSync','issueToken','limitOf','$elemMatch','resolveField','chunks','buildStep','bus:env_release','socket','ensureTokensType','_getFast','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','_asArray','byteOffset','start','clock','stateNames','_handlePending','_callRows','envNames','index:drop','removeEventListener','job.bucket\x20must\x20be\x20string|null','flatMap','_set','boolean','includeViolations','durableEmbedderInfo','returnRecoverableErrors','onUndo','pressure','stopHandle','items','symbol','_envs','registerReducer','fts','_admissionStarted','apiCall','UNIQUE_CONSTRAINT','created','storage\x20adapter\x20has\x20no\x20method\x20','\x27\x20at\x20','TXN_INVALID_OPS','fieldPath','authenticateRequest','describeChunk','flushTicket','embeddings:embed:settled','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','OKDBIndexNotRegisteredError','queue:rescheduled','test','_buffer','_isBootstrap','TypeError','_ttlCompositeKey','isSnapshotComplete','calculateDelta','addInterest','taken','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','rebuildBegin','debounceTimer','_subsV2','_ensureDesired','lookupByName','_indexBuild','resolveField:\x20type\x20required','901794bHjxvW','job_type.payload_schema.enforce\x20must\x20be\x20boolean','_tids','OKDBUniqueConstraintError','_macro','index:ready','system:type_drop','clearDone','~log_entry','embedder','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','remoteAddress','aborted','getSchema','okdb-','__esModule','itemsGroups','_ensure','takeCompactResult','resetIndexFinish','_admissionTimer','queue:removed','turns','resetIndex','flushTimeoutError','references','removeJobTypeSchema','vectorSpace','dropped','records','pin','ttlMs','_detachLogSink','_doHooks','isInteger','set','invalid\x20job.status:\x20','listModels','system:ready','unref','role','header','enable','field:resolver_registered','removeLink','getSession','process()\x20entry\x20\x22','close','timestamp','fields','createLoginState','unresolveField','validate','bootSyncedViews','setMaxBodyBytes','type:','setUint32','ctxRelease','features','tries','getInt32','readerCheck','authenticated','connectionCount','resumeJobType','_envSyncStop','error_stack','ctxHeartbeat','error','dataView','fromEntries','okdb-node:\x20unknown\x20callback\x20id\x20','_onFeedChange','SKIP','data','send','flushQuantum','listTemplates','schema:set','listPath','INVALID_PRIMARY_KEY','_emit','_blobPath','_read','useReadTransaction','authenticateToken','hasNativeBatch','ensureFeed','wake','queue:clear-done','NOT_FOUND','open','plugins','describeType','_runRecord','BAD_PLUGIN','prepareTxnEnqueue','types','encryption\x20key\x20function','embed-worker','end','$ne','WriteBatch','setClaiming','dataEnv','remove','isOAuthEmailAllowed','processor:\x20module.path\x20is\x20required','loaded','_store','_modeApplied','a\x20string','job_type.defaults\x20must\x20be\x20object|null','_undoHooks','kick','_root','getValues','true','registerTarget','VERSION_MISMATCH','_defaultEnvObj','OKDBSchemaCollectionError','vecPut','claim_expires','includes','repair','processes','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','_startAutoCompactCheck','busState','Query\x20operator\x20\x22','_keepAlive','object','values','Engine\x20template\x20build()\x20is\x20required:\x20','createWriteFacade','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','~files','queue','tokens','embed','head','uninstalled','freeze','Too\x20many\x20concurrent\x20connections','HIGH_FREQ_EVENTS','handleError','off','isWellFormed','\x22\x20must\x20have\x20a\x20start()\x20method','stop','setSchema','constructor','_windowCbs','blobPath','login','vectorStoreStats','build','autoCompact','_systemEnv','versions','INDEX_HAS_CONSUMERS','storeGetHeadCount','restart','EMBED_PENDING','sweepOrphanLogs','bootLogMark','tryClaimTokens','MINIMUM_KEY','setToken','empty\x20string','streamRead','SYSTEM_POKE','view','ms\x20p99=','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','nextTurn','_isFar','durableCursorFloor','registerEnv','$not','~processes:cmd','_draining','mode','jsonrpcCode','callRows:\x20unexpected\x20row\x20stride\x20','OKDBIndexHasConsumersError','process(entries)\x20requires\x20at\x20least\x20one\x20entry','STOPPING','maxDbs','node:perf_hooks','_awaitBuild','job.type\x20must\x20be\x20non-empty\x20string','Plugin\x20\x27','attachConsole','dropAll','_startClaimedSoon','CHANGEFEED_QUANTUM','label','registerExtractor','Type\x20\x27','OKDBError','_features','bucket.updated\x20must\x20be\x20number','_oauthConfig','~proc:state','docEntry','index:registered','heartbeat','runtimeDeclarations','createWorker','stderr','enableNullTermination','_readViewExpired','afterTurn','push','pid','installed','removeBucket','clear','index','getSelfNode','listRuns','_setTTL','backupRoot','okdb-node:\x20unknown\x20bridge\x20op\x20','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','TXN_ROLLBACK','resolve','assertCreateAllowed','pauseJobType','_settleWrite','_advanceHlcOnRecv','recordRun','vec:','module','\x27\x20doesn\x27t\x20exist','$nin','__blobStatusDb','ITEM_PENDING','refs','array','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','orchestrator','getJob','interest','handler','$streamId','OKDBInvalidValueError','paused','addRaw','QUERY_OPERATOR_FORBIDDEN','_clockListener','LICENSE_LIMIT_EXCEEDED','registerModule','createPublicKey','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','isHeld','node:cluster','refreshTtlBatch','exportBlobs','_listenAddr','searchWithScores','queue:done','~queue_logs','~fts:','2712gEfesx','stack','$all','itemsDb','samplePayloads','__sync:peer_state','createBegin','listTypes','usedBy','3206672yLMFdX','processor:ready','timeMachine','max_concurrency','select',';return\x20{','then','embedder\x20request\x20still\x20pending','failed','license','filter','_jsFactories','FOREIGN_KEY_VIOLATION','registerIndex','queue:retry','starting','list','_setTTLEntry','$or','key','exists','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','_flushTimer','routes','isOpenForIp','[log-sink]\x20','_nodePublicKey','_pendingLocal','maxBodyBytes','flushPoll','put','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','return\x20fromCharCode(','_ttlTimeout','OKDBInvalidIndexKeyError','_nm','locks','(source)\x20=>\x20{','getStats','bus','_closedHandle','Embedder\x20factory\x20for\x20\x22','unknown\x20promise\x20token','resumed','pending','_getOidcDiscovery','nextTick','_timerHandle','_feed','ceil','signalWant','apply','callStatic','isDeepStrictEqual','compareKeys','sparse','registerQuantum','draining','servers','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','asArray',')\x0a\x09\x09}\x0a\x09\x09','summary','export','listBuckets','createReadStream','_build','_ttlByExpiry','peers','_onPoke','transaction\x20commit\x20failed','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','_statusEnv','encodeInto','_settled','isWanted','__notImplementedNative','_compactLock','retryJob','_drain','batch','REBUILD_IN_PROGRESS','setTTL','$gt','getDefaultTTL','status','_localViewApi','bootRuntime','hasDriver','getLegacyCursor','backoff_multiplier','inFlight','assertQueryOptions','engineUninstall','$pending','abs','staticCall','noteListenAddr','Version\x20mismatch\x20for\x20','OKDBSchemaValidationError','keys','lookupAllByName','_ttlTimerAt','queue:enqueued','registerEmbedderFactory','name','readKey','subscriptions-store:\x20open()\x20not\x20called','docs','ms\x20mean=','Invalid\x20onDelete\x20rule\x20\x27','onLicenseExpired','unique','note','resetting','Map','processor:progress','ensureType','captureStackTrace','pumpEnvSync','describeTypeDetailed','createdBy','FTS_BUILD_CONTINUE','_openAckDb','\x20dropped\x20(buffer\x20full)','-worker','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','isActive','hasChangelog','hasIndex','importFromStream','index:reset','_stopFor','_getType','catch','rollback','streamClose','_sinks','_refIndexDb','/?$','status_message','bumpVersion','_deliverEvent','normalizeOAuthAuthResult','admission','_ensureTokensType','reset','disable','_viewRebuildChain','_refCache','sessionsForKey','has','embedderCall','queue:reconciled','ctxEmit','getRaw','prefix','_processorStops','group','dropIndex','doc','instanceTimerArmed','reg','_lookupByName','vector-search','typesDb','registerDriver','\x22\x20must\x20be\x20a\x20plain\x20object','health','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','_seen','__syncOverride','embeddings:doc:status_change','detach','finished','bucket_tokens','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','licenses','_writer','pinned','TXN_END','bucket.tokens\x20cannot\x20exceed\x20capacity','written','position','materializer','putSync','whenSettled','_sweepOrphanLogs','/([^/]+)','_key','getMany','_readBuf','job.tag\x20must\x20be\x20string|null','_ttlParseComposite','advanceHlcOnRecv','Plugin\x20must\x20have\x20a\x20name','durableRetryDoc','auth','_license','Engine\x20driver\x20for\x20\x22','allowUnsafe','application/octet-stream','queue:clear-progress','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','validateBlobIntegrity','BAD_PARAM','stringify','markJobComplete','forEach','inclusiveEnd','new','_info','pipelineFamily','\x22)\x20before\x20open()','inline','processor:\x20module\x20\x27','getIndex','iterable','listFtsEnvs','split','upload','extend','snapshot','encoder','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','allocUnsafeSlow','range','\x20of\x20env\x20\x22','syncLock','describeIndex','_commitSessionMutation','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','publicKey','BAD_HOST','runtimeState','SCHEMA_COLLECTION_INVALID','__ttlByKey','shouldApplyChange','body','getTemplate','_native','proc','ONLINE','refill_every','enabled','_OPTION_HINTS','CREATED','origin','setCurrentDb','durableWorkerStats','getKeys','_blobStream','embedBatch','ITEM_CREATE','durableDoc','updateBucket','\x20returned\x20no\x20key','ies','upsertLink','56408TtMLyY','node','DOC_STATUS_CHANGE','$payload','engine','bootSyncedPipelines','default','_handlerName','_create','SUB_ENV','Blob\x20not\x20found:\x20','_buildOwnRow','job.claim_id\x20must\x20be\x20string|null','removeEnvironment','isBuffer','tags\x20must\x20be\x20array\x20or\x20string','type','set_null','vector','compact','explainIndex','address','_lookupByTokenHash','__tokenSecret','READER_HELD_ACROSS_AWAIT','processorsParticipating','logChange','HTTP_CLUSTER_REMOVED','_subsV2Obj','storeEnvName','flush','Foreign\x20key\x20violation:\x20','\x27\x20is\x20already\x20registered','_bootLog','fts:registered','_peerDb','setCursor','refreshThresholdMs','dropSchema','config','\x20documents\x20fail\x20validation','setMode','repairBlobRefs','puts','_registerType','listJobTypes','_enableChangelog','_workers','reconcile','~ttl:expiry','setClaimGated','spki','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','host','floor','iterator','Index\x20\x22','dims','createAndStartEngine','_writerWatchdogInterval','_pumper','__sync:acks','getByPrefix','events','getBlobStatus','req','_quantumGate','\x20=\x20source[position++]\x0a\x09\x09if\x20(','runPoll','getIndexMeta','$options','removeJobType','envs','node:http','\x20>=\x200x80)\x20','allSettled','listIndexKeys','node:path','tick','_rawTxnBuf','tryAcquire','processor:error','HTTP\x20server\x20already\x20running','okdb.http.listen(port)\x20in\x20each\x20worker.','quarantinedEnvs','_attached','percentile','_log','.\x20Valid:\x20','_pending','reidentify','type:registered','event','startIndex','completeJob','createQueryTester','exclusiveStart','\x20already\x20exists','releaseClaim','flushDebounce','_cmd','__peers','PLUGIN_NAME_CONFLICT','runDrop','localViewStats','drives','getGcHorizon','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','started','listRecords','engineType','_isExpired','value','__desired','durableMarkDone','_logEnv','processor:\x20rebuild\x20must\x20be\x20a\x20function','db.processors.','$where','dedupeMax','dirty','_dupArg','_syncLock','_clearChunked','reconcilePeer','stopAutoCompactCheck','OKDBProcessor','okdb','ringSize','exportEnvsBuf','_dedupeMax','_running','txn','dupSort','progressed','job_type.payload_schema\x20must\x20be\x20object|null','chunk\x20strategy\x20must\x20be\x20a\x20function','getJobLogs','concat','count','shutdownTimeout','_subscribeEvent','_indexBuilds','_detachConsole','enableAll','backup','_assertFiles','encryptionKeys','_openLocalPeerDb','loop-lag','outgoing','$gte','cascade','workers','record','recordPeerAck','__lock','clearDefaultTTL','pop','_getPeerState','_hybridQuery','FTS_FLUSH_TIMEOUT','_call','hasOwnProperty','type:drop','isFinite','T_SESSION','Cannot\x20register\x20plugins\x20after\x20start','registerQuantum:\x20load\x20must\x20be\x20a\x20function','createEnvironment','subscribe','Cannot\x20set\x20enforce\x20schema\x20on\x20','cancelJob','_addr','setBridge','autoCompactTimerArmed','node:events','_run','~queue_payloads','_sub','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','registerType','startAutoCompactCheck','listViolations','hook','\x20log\x20entr','driver','standalone','_busFacade','addEventListener','once','Buffer','itemsPlan','registerChunkStrategy','STOPPED','granId','a\x20Buffer\x20or\x20readable\x20stream','log','okdb._openEnvLazy:\x20env\x20\x22','handle','create','checkSignals','LICENSE_FEATURE_DISABLED','_markSeen','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','\x22\x20not\x20found\x20in\x20~envs','writerWatchdog','size','clearAsync','_enqueueInTxn','_ensureVectorStore','_startAdmission','addSSE','isEnabled','resolveField:\x20resolver\x20must\x20be\x20a\x20function','family','_low','_quantum','write','lockHeld','delta_limit','ref','createPipeline','item:create','Date'];_0x27a0=function(){return _0x375565;};return _0x27a0();}function requireOkdbEnvRefs(){const _0x53cd9d=_0x431d06;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x469a57,EVENTS:_0x3b7053}=requireOkdbEnums(),{OKDBError:_0x1b67b1,OKDBForeignKeyDeleteError:_0x33e1bd}=requireOkdbError(),_0x39a3b6=_0x53cd9d(0x19c),_0x3adbf2=new Set([_0x53cd9d(0x13f),'cascade',_0x53cd9d(0x691),'restrict']);function _0x5500f7(_0x37f6b1,_0x4ca57a){const _0x4079b4=_0x53cd9d;if(_0x37f6b1==null||!_0x4ca57a)return undefined;const _0x3ea9a2=_0x4ca57a['split']('.');let _0x2c9ffa=_0x37f6b1;for(const _0x172462 of _0x3ea9a2){if(_0x2c9ffa==null||typeof _0x2c9ffa!==_0x4079b4(0x4ed)||!(_0x172462 in _0x2c9ffa))return undefined;_0x2c9ffa=_0x2c9ffa[_0x172462];}return _0x2c9ffa;}function _0x162314(_0x3dbcbc,_0x44189e,_0x3fa4a0){const _0x10e5e7=_0x53cd9d,_0x3c0f3f=_0x44189e[_0x10e5e7(0x658)]('.'),_0x13a375={..._0x3dbcbc};let _0x284cf2=_0x13a375;for(let _0x107253=0x0;_0x107253<_0x3c0f3f[_0x10e5e7(0x2a9)]-0x1;_0x107253++){_0x284cf2[_0x3c0f3f[_0x107253]]=_0x284cf2[_0x3c0f3f[_0x107253]]!=null?{..._0x284cf2[_0x3c0f3f[_0x107253]]}:{},_0x284cf2=_0x284cf2[_0x3c0f3f[_0x107253]];}return _0x284cf2[_0x3c0f3f[_0x3c0f3f[_0x10e5e7(0x2a9)]-0x1]]=_0x3fa4a0,_0x13a375;}function _0x222e51(_0x319f39,_0x3b7a50,_0x4b0af2,_0x13b8a0,_0x2f1e03){return[_0x319f39,_0x3b7a50,_0x4b0af2,_0x13b8a0,_0x2f1e03];}function _0x291eef(_0x4c436c){const _0x24b62d=_0x53cd9d;return typeof _0x4c436c===_0x24b62d(0x229)||typeof _0x4c436c===_0x24b62d(0x1ce);}function _0x4375c0(_0x330f08,_0xc74d89){const _0x2c07d2=_0x53cd9d;return JSON[_0x2c07d2(0x64b)]([_0x330f08,_0xc74d89]);}function*_0x3132e2(_0x5c1de8,_0x39f43a,_0x1b3e8a){const _0x4de396=_0x53cd9d,_0x5489f9=_0x1b3e8a!==undefined;for(const {key:_0xefaa22}of _0x5c1de8[_0x4de396(0x1bd)]({'start':_0x5489f9?[_0x39f43a,_0x1b3e8a]:[_0x39f43a]})){if(!Array[_0x4de396(0x17d)](_0xefaa22))continue;if(_0xefaa22[0x0]!==_0x39f43a||_0x5489f9&&_0xefaa22[0x1]!==_0x1b3e8a)break;yield _0xefaa22;}}function _0x2e0d29(_0x9503e8,_0x1bc8f1='',_0x30cfb5=null){const _0x4e50df=_0x53cd9d,_0x3b9a82=[];if(!_0x9503e8||typeof _0x9503e8!=='object')return _0x3b9a82;if(!_0x30cfb5)_0x30cfb5=_0x9503e8;if(_0x9503e8[_0x4e50df(0x76c)]){const _0x5a7702=_0x9503e8['$ref'][_0x4e50df(0x359)](/^#\/\$defs\/(.+)$/);if(_0x5a7702&&_0x30cfb5?.['$defs']?.[_0x5a7702[0x1]])return _0x2e0d29(_0x30cfb5['$defs'][_0x5a7702[0x1]],_0x1bc8f1,_0x30cfb5);return _0x3b9a82;}if(_0x9503e8[_0x4e50df(0x75d)]&&typeof _0x9503e8['ref']===_0x4e50df(0x4ed)&&_0x9503e8[_0x4e50df(0x75d)][_0x4e50df(0x690)]){const _0x2b77cd=_0x9503e8[_0x4e50df(0x75d)][_0x4e50df(0x175)]||_0x4e50df(0x13f);if(!_0x3adbf2['has'](_0x2b77cd))throw new _0x1b67b1(_0x4e50df(0x5eb)+_0x2b77cd+_0x4e50df(0x44e)+(_0x1bc8f1||_0x4e50df(0x3b0))+_0x4e50df(0x6d8)+[..._0x3adbf2][_0x4e50df(0x7d6)](',\x20'),'INVALID_SCHEMA');_0x3b9a82[_0x4e50df(0x540)]({'fieldPath':_0x1bc8f1,'targetType':_0x9503e8[_0x4e50df(0x75d)][_0x4e50df(0x690)],'onDelete':_0x2b77cd});}if(_0x9503e8['properties'])for(const [_0x5e2990,_0x8308d8]of Object[_0x4e50df(0x2d3)](_0x9503e8[_0x4e50df(0x2ce)])){const _0x45765b=_0x1bc8f1?_0x1bc8f1+'.'+_0x5e2990:_0x5e2990;_0x3b9a82[_0x4e50df(0x540)](..._0x2e0d29(_0x8308d8,_0x45765b,_0x30cfb5));}return _0x3b9a82;}function _0x2c391a(_0x27e877){const _0x457688=_0x53cd9d,_0x4c5286=new Map(),_0x244b23=new Map();for(const _0x207cf2 of _0x27e877['_typeKeys']()){if(_0x207cf2[_0x457688(0x217)]('~'))continue;const _0x186c9f=_0x27e877[_0x457688(0x622)][_0x457688(0x1bc)](_0x207cf2);if(!_0x186c9f?.['schema']?.[_0x457688(0x23f)])continue;let _0x562109;try{_0x562109=_0x2e0d29(_0x186c9f['schema'][_0x457688(0x23f)]);}catch{continue;}if(_0x562109[_0x457688(0x2a9)]>0x0){_0x4c5286[_0x457688(0x48c)](_0x207cf2,_0x562109);for(const _0x539644 of _0x562109){if(!_0x244b23[_0x457688(0x614)](_0x539644[_0x457688(0x27b)]))_0x244b23[_0x457688(0x48c)](_0x539644[_0x457688(0x27b)],[]);_0x244b23[_0x457688(0x1bc)](_0x539644[_0x457688(0x27b)])[_0x457688(0x540)]({'sourceType':_0x207cf2,'fieldPath':_0x539644[_0x457688(0x450)],'onDelete':_0x539644[_0x457688(0x175)]});}}}_0x27e877[_0x457688(0x612)]={'outgoing':_0x4c5286,'incoming':_0x244b23};if(_0x4c5286[_0x457688(0x74f)]>0x0)_0x55df49(_0x27e877);}function _0x4dca7f(_0xa680b3,_0x1bb036){const _0x4ca579=_0x53cd9d;return _0xa680b3[_0x4ca579(0x612)]['outgoing'][_0x4ca579(0x1bc)](_0x1bb036)||[];}function _0x3112b9(_0x28e0c6,_0x461341){const _0x19c949=_0x53cd9d;return _0x28e0c6['_refCache'][_0x19c949(0x408)][_0x19c949(0x1bc)](_0x461341)||[];}function _0x55df49(_0x45a690){const _0x22c40d=_0x53cd9d;if(_0x45a690[_0x22c40d(0x607)])return _0x45a690[_0x22c40d(0x607)];return _0x45a690[_0x22c40d(0x607)]=_0x45a690['db']['openDB'](_0x22c40d(0x13d),{'dupSort':![]}),_0x45a690[_0x22c40d(0x607)];}function _0x445b65(_0x1e19d5,_0x1e9c9b,_0xca0378,_0x1108e6,_0x150b6a){const _0x2e12fd=_0x53cd9d,_0xf95ca=_0x4dca7f(_0x1e19d5,_0x1e9c9b);if(_0xf95ca[_0x2e12fd(0x2a9)]===0x0)return;const _0x25411f=_0x55df49(_0x1e19d5);for(const _0x47684e of _0xf95ca){const _0x229277=_0x150b6a!=null?_0x5500f7(_0x150b6a,_0x47684e[_0x2e12fd(0x450)]):undefined,_0x572a41=_0x1108e6!=null?_0x5500f7(_0x1108e6,_0x47684e[_0x2e12fd(0x450)]):undefined;if(_0x229277===_0x572a41)continue;_0x291eef(_0x229277)&&_0x25411f[_0x2e12fd(0x1db)](_0x222e51(_0x47684e['targetType'],_0x229277,_0x1e9c9b,_0xca0378,_0x47684e[_0x2e12fd(0x450)])),_0x291eef(_0x572a41)&&_0x25411f[_0x2e12fd(0x636)](_0x222e51(_0x47684e[_0x2e12fd(0x27b)],_0x572a41,_0x1e9c9b,_0xca0378,_0x47684e['fieldPath']),0x1);}}function _0x306d94(_0x124177,_0x1a0eba,_0x28ec7d,_0x54c688){const _0x70d71=_0x53cd9d,_0x4983ec=_0x4dca7f(_0x124177,_0x1a0eba);if(_0x4983ec[_0x70d71(0x2a9)]===0x0)return;const _0x21d32a=_0x55df49(_0x124177);for(const _0x12c41c of _0x4983ec){const _0x453974=_0x54c688!=null?_0x5500f7(_0x54c688,_0x12c41c[_0x70d71(0x450)]):undefined;_0x291eef(_0x453974)&&_0x21d32a['removeSync'](_0x222e51(_0x12c41c[_0x70d71(0x27b)],_0x453974,_0x1a0eba,_0x28ec7d,_0x12c41c[_0x70d71(0x450)]));}}function _0x30904c(_0x59e79c,_0x48917b,_0x5b241c,_0x5d6e9a){const _0x25eb8d=_0x53cd9d,_0xa6a4f1=_0x4dca7f(_0x59e79c,_0x48917b);if(_0xa6a4f1[_0x25eb8d(0x2a9)]===0x0)return[];const _0x41a6f5=[];for(const _0x5f0464 of _0xa6a4f1){const _0x4a3534=_0x5500f7(_0x5d6e9a,_0x5f0464['fieldPath']);if(_0x4a3534==null)continue;if(!_0x59e79c[_0x25eb8d(0x2c9)](_0x5f0464[_0x25eb8d(0x27b)])){_0x41a6f5[_0x25eb8d(0x540)]({'fieldPath':_0x5f0464[_0x25eb8d(0x450)],'targetType':_0x5f0464[_0x25eb8d(0x27b)],'targetKey':_0x4a3534,'message':_0x25eb8d(0x107)+_0x5f0464[_0x25eb8d(0x27b)]+_0x25eb8d(0x1f5)});continue;}const _0x494a64=_0x59e79c[_0x25eb8d(0x602)](_0x5f0464[_0x25eb8d(0x27b)])[_0x25eb8d(0x4b3)];!_0x494a64[_0x25eb8d(0x2d8)](_0x4a3534)&&_0x41a6f5['push']({'fieldPath':_0x5f0464[_0x25eb8d(0x450)],'targetType':_0x5f0464[_0x25eb8d(0x27b)],'targetKey':_0x4a3534,'message':'Referenced\x20key\x20\x27'+_0x4a3534+_0x25eb8d(0x4f1)+_0x5f0464[_0x25eb8d(0x27b)]+'\x27'});}return _0x41a6f5;}function _0x24b100(_0xf5b639,_0x1ab82c,_0x5378e7,_0x2f3029,_0x4391a3,{timestamp:_0x11673f,origin:_0xc5694c,_cascadeVisited:_0x8b3a89}){const _0x5cda59=_0x53cd9d,_0x4dd345=_0x3112b9(_0xf5b639,_0x5378e7);if(_0x4dd345[_0x5cda59(0x2a9)]===0x0)return;const _0x44d1a6=_0x55df49(_0xf5b639),_0x13ae77=[];for(const [,,_0x59b878,_0x29cd5a,_0x511096]of _0x3132e2(_0x44d1a6,_0x5378e7,_0x2f3029)){_0x13ae77[_0x5cda59(0x540)]({'sourceType':_0x59b878,'sourceKey':_0x29cd5a,'fieldPath':_0x511096});}if(_0x13ae77[_0x5cda59(0x2a9)]===0x0)return;for(const _0x6168da of _0x13ae77){const _0x97c18=_0x4dd345['find'](_0x224dfb=>_0x224dfb[_0x5cda59(0x1eb)]===_0x6168da[_0x5cda59(0x1eb)]&&_0x224dfb[_0x5cda59(0x450)]===_0x6168da['fieldPath']),_0x50f9a3=_0x97c18?.[_0x5cda59(0x175)]||_0x5cda59(0x13f);switch(_0x50f9a3){case'restrict':{if(_0xc5694c===null)throw new _0x33e1bd(_0x5378e7,_0x2f3029,_0x13ae77[_0x5cda59(0x587)](_0x874cd7=>{const _0x6deead=_0x5cda59,_0x2fa0f8=_0x4dd345['find'](_0x27f5a9=>_0x27f5a9[_0x6deead(0x1eb)]===_0x874cd7[_0x6deead(0x1eb)]&&_0x27f5a9[_0x6deead(0x450)]===_0x874cd7['fieldPath']);return(_0x2fa0f8?.[_0x6deead(0x175)]||_0x6deead(0x13f))===_0x6deead(0x1a1);}));break;}case _0x5cda59(0x718):{const _0x1b33c2=_0x4375c0(_0x6168da[_0x5cda59(0x1eb)],_0x6168da['sourceKey']);if(_0x8b3a89[_0x5cda59(0x614)](_0x1b33c2))continue;_0xf5b639[_0x5cda59(0x602)](_0x6168da['sourceType'])[_0x5cda59(0x4b3)][_0x5cda59(0x2d8)](_0x6168da[_0x5cda59(0x235)])&&_0xf5b639['_remove'](_0x1ab82c,_0x6168da[_0x5cda59(0x1eb)],_0x6168da[_0x5cda59(0x235)],{'timestamp':_0x11673f,'origin':_0xc5694c,'_cascadeVisited':_0x8b3a89});break;}case _0x5cda59(0x691):{const _0x404289=_0xf5b639[_0x5cda59(0x602)](_0x6168da['sourceType'])[_0x5cda59(0x4b3)],_0x4aceef=_0x404289[_0x5cda59(0x153)](_0x6168da['sourceKey']);if(_0x4aceef){const _0x42495f=_0x162314(_0x4aceef[_0x5cda59(0x6f0)],_0x6168da['fieldPath'],null);_0xf5b639['_write'](_0x1ab82c,_0x5cda59(0x59b),_0x6168da[_0x5cda59(0x1eb)],_0x6168da[_0x5cda59(0x235)],_0x42495f,{'timestamp':_0x11673f,'origin':_0xc5694c,'_cascading':!![]});}break;}}}}function _0x2475b2(_0x39acac){const _0x26e403=_0x53cd9d;!_0x39acac['hasType'](_0x39a3b6)&&_0x39acac[_0x26e403(0x6ac)](_0x39a3b6);}function _0x6317b4(_0x35d71b,_0x22ecc9,_0x2de610,_0x3ff7e3,_0x5b4533,_0x331b04,_0x49f62a,{timestamp:timestamp=Date[_0x53cd9d(0x772)](),origin:origin=null}={}){const _0x132172=_0x53cd9d;_0x2475b2(_0x35d71b);const _0x2fe8e4=_0x2de610+'@'+_0x3ff7e3+'@'+_0x5b4533,_0x4fb7aa={'sourceType':_0x2de610,'sourceKey':_0x3ff7e3,'fieldPath':_0x5b4533,'targetType':_0x331b04,'targetKey':_0x49f62a,'timestamp':timestamp,'origin':origin},_0x12fd6f=_0x35d71b[_0x132172(0x602)](_0x39a3b6)['data'],_0x40c49e=_0x12fd6f[_0x132172(0x153)](_0x2fe8e4),_0x37a9ac=_0x40c49e?_0x40c49e[_0x132172(0x3a1)]+0x1:0x1;_0x12fd6f[_0x132172(0x636)](_0x2fe8e4,_0x4fb7aa,_0x37a9ac),_0x35d71b[_0x132172(0x198)]({'id':_0x132172(0x76d)+_0x39a3b6+'@'+_0x2fe8e4,'type':_0x39a3b6,'key':_0x2fe8e4,'action':_0x469a57['PUT'],'timestamp':timestamp,'txnId':_0x22ecc9?.['id'],'origin':origin},_0x40c49e?.[_0x132172(0x6f0)],_0x4fb7aa),_0x35d71b[_0x132172(0x6bf)]['emit'](_0x3b7053[_0x132172(0x19d)],{'sourceType':_0x2de610,'sourceKey':_0x3ff7e3,'fieldPath':_0x5b4533,'targetType':_0x331b04,'targetKey':_0x49f62a,'env':_0x35d71b[_0x132172(0x5e6)]});}function _0x5af84b(_0x159907,_0x295531,_0x1fe876,_0x1c372a,_0x37cfdf,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x10159e=_0x53cd9d;if(!_0x159907['hasType'](_0x39a3b6))return;const _0x429fef=_0x1fe876+'@'+_0x1c372a+'@'+_0x37cfdf,_0x3a56d3=_0x159907['_getType'](_0x39a3b6)['data'],_0x53d32f=_0x3a56d3['getEntry'](_0x429fef);if(!_0x53d32f)return;_0x3a56d3[_0x10159e(0x1db)](_0x429fef),_0x159907[_0x10159e(0x198)]({'id':_0x10159e(0x76d)+_0x39a3b6+'@'+_0x429fef,'type':_0x39a3b6,'key':_0x429fef,'action':_0x469a57[_0x10159e(0x221)],'timestamp':timestamp,'txnId':_0x295531?.['id'],'origin':origin},_0x53d32f[_0x10159e(0x6f0)],undefined),_0x159907[_0x10159e(0x6bf)][_0x10159e(0x36e)](_0x3b7053['REF_VIOLATION_RESOLVED'],{'sourceType':_0x1fe876,'sourceKey':_0x1c372a,'fieldPath':_0x37cfdf,'env':_0x159907[_0x10159e(0x5e6)]});}function _0x57ce75(_0x263ad2,_0x1681c6,_0x569d3a,_0x4487c6,_0x3a183d={}){const _0xc7cd29=_0x53cd9d;if(!_0x263ad2[_0xc7cd29(0x2c9)](_0x39a3b6))return;const _0x3ebedd=_0x263ad2[_0xc7cd29(0x602)](_0x39a3b6)[_0xc7cd29(0x4b3)],_0xb5121c=_0x569d3a+'@'+_0x4487c6+'@',_0x1c5860=[];for(const {key:_0x41ddfd,value:_0xb4d025}of _0x3ebedd[_0xc7cd29(0x1bd)]({'start':_0xb5121c,'end':_0xb5121c+'\uffff'})){if(_0xb4d025?.[_0xc7cd29(0x1eb)]===_0x569d3a&&_0xb4d025?.['sourceKey']===_0x4487c6)_0x1c5860[_0xc7cd29(0x540)](_0x41ddfd);}for(const _0x3c6b6a of _0x1c5860){const _0x20d7f0=_0x3ebedd[_0xc7cd29(0x153)](_0x3c6b6a);if(!_0x20d7f0)continue;_0x3ebedd[_0xc7cd29(0x1db)](_0x3c6b6a),_0x263ad2[_0xc7cd29(0x198)]({'id':'item:'+_0x39a3b6+'@'+_0x3c6b6a,'type':_0x39a3b6,'key':_0x3c6b6a,'action':_0x469a57['REMOVE'],'timestamp':_0x3a183d[_0xc7cd29(0x499)]||Date[_0xc7cd29(0x772)](),'txnId':_0x1681c6?.['id'],'origin':_0x3a183d[_0xc7cd29(0x674)]},_0x20d7f0['value'],undefined);}}function _0x5d3f22(_0x336b8a,_0x21a4e6){const _0x535787=_0x53cd9d;if(!_0x336b8a[_0x535787(0x2c9)](_0x39a3b6))return;const _0x2f4313=_0x336b8a['_getType'](_0x39a3b6)[_0x535787(0x4b3)],_0x1b9194=_0x21a4e6+'@',_0x2b3710=[];for(const {key:_0x59ee7c,value:_0x5ba21a}of _0x2f4313[_0x535787(0x1bd)]({'start':_0x1b9194,'end':_0x1b9194+'\uffff'})){if(_0x5ba21a?.[_0x535787(0x1eb)]===_0x21a4e6)_0x2b3710['push'](_0x59ee7c);}for(const _0x34ddde of _0x2b3710)_0x2f4313[_0x535787(0x1db)](_0x34ddde);}async function _0x42e7a1(_0x34dc6e,_0x2af0da){const _0x1eae9b=_0x53cd9d,_0x384d5f=_0x4dca7f(_0x34dc6e,_0x2af0da);if(_0x384d5f[_0x1eae9b(0x2a9)]===0x0)return;await _0x34dc6e['_writer'][_0x1eae9b(0x241)](()=>{const _0x4c2979=_0x1eae9b;for(const {key:_0x58437a,value:_0xef22c1}of _0x34dc6e[_0x4c2979(0x1bd)](_0x2af0da)){_0x445b65(_0x34dc6e,_0x2af0da,_0x58437a,_0xef22c1,null);const _0x6ee6b=_0x30904c(_0x34dc6e,_0x2af0da,_0x58437a,_0xef22c1);for(const _0x1200d1 of _0x6ee6b){_0x6317b4(_0x34dc6e,null,_0x2af0da,_0x58437a,_0x1200d1['fieldPath'],_0x1200d1[_0x4c2979(0x27b)],_0x1200d1['targetKey']);}}});}const _0x24cb35=0x1388;async function _0x3222b1(_0x5cfd98){const _0x4dac22=_0x53cd9d,_0xab0ee5=_0x5cfd98['_refCache']?.[_0x4dac22(0x716)]?.['size']>0x0;if(!_0xab0ee5&&!_0x5cfd98['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x1cc70b=_0x55df49(_0x5cfd98);let _0x4fd0f8=0x0;for(;;){const _0x205e60=Array['from'](_0x1cc70b['getKeys']({'limit':_0x24cb35}));if(_0x205e60[_0x4dac22(0x2a9)]===0x0)break;let _0x1273de=0x0;await _0x5cfd98[_0x4dac22(0x62f)]['transaction'](()=>{for(const _0x5aa5c5 of _0x205e60)if(_0x1cc70b['removeSync'](_0x5aa5c5))_0x1273de++;});if(_0x1273de===0x0)break;_0x4fd0f8+=_0x1273de;}let _0x5b3131=0x0;for(const _0x33f910 of _0x5cfd98[_0x4dac22(0x612)][_0x4dac22(0x716)]['keys']()){if(_0x33f910[_0x4dac22(0x217)]('~')||!_0x5cfd98[_0x4dac22(0x2c9)](_0x33f910))continue;const _0x53a642=_0x4dca7f(_0x5cfd98,_0x33f910);await _0x5cfd98[_0x4dac22(0x62f)][_0x4dac22(0x241)](()=>{const _0xea009=_0x4dac22;for(const {key:_0x554438,value:_0x1a9458}of _0x5cfd98['getRange'](_0x33f910)){for(const _0xd16102 of _0x53a642){const _0x3078ca=_0x5500f7(_0x1a9458,_0xd16102[_0xea009(0x450)]);if(!_0x291eef(_0x3078ca))continue;_0x1cc70b[_0xea009(0x636)](_0x222e51(_0xd16102[_0xea009(0x27b)],_0x3078ca,_0x33f910,_0x554438,_0xd16102[_0xea009(0x450)]),0x1),_0x5b3131++;}}});}return{'dropped':_0x4fd0f8,'written':_0x5b3131};}return okdbEnvRefs={'getFieldValue':_0x5500f7,'setFieldValue':_0x162314,'refIndexKey':_0x222e51,'isRefTarget':_0x291eef,'cascadeVisitKey':_0x4375c0,'extractRefs':_0x2e0d29,'rebuildRefCache':_0x2c391a,'getTypeRefs':_0x4dca7f,'getIncomingRefs':_0x3112b9,'getRefIndexDb':_0x55df49,'updateRefIndex':_0x445b65,'removeRefIndexEntries':_0x306d94,'refIndexRowsFor':_0x3132e2,'rebuildRefIndex':_0x3222b1,'checkForeignKeys':_0x30904c,'processDeleteCascade':_0x24b100,'setRefViolation':_0x6317b4,'clearRefViolation':_0x5af84b,'clearRefViolationsForKey':_0x57ce75,'clearRefViolationsForType':_0x5d3f22,'syncRefIndex':_0x42e7a1},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x26c279=_0x431d06;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x26c279(0x1ad)];hasRequiredOkdbSubscriptionsStore=0x1;const _0xd955dd=require$$0$4,{assertFilterAllowed:_0x39f8b8}=requireOkdbQueryFilter(),{rebuildRefCache:_0x52944f}=requireOkdbEnvRefs(),_0x27ef98=_0x26c279(0x148),_0x5df340=_0x26c279(0x34c),_0x59071a=_0x26c279(0x55f),_0x3a4401=[_0x26c279(0x4d1),_0x26c279(0x690),'key'],_0x1497dc=[_0x26c279(0x4d1),_0x26c279(0x690)],_0x1996ef=0x5a*0x3e8,_0x445a74=Math[_0x26c279(0x6b6)](_0x1996ef/0x2);class _0x39be2f{constructor(_0x44f24d,_0x47f06f={}){const _0x30cbc6=_0x26c279;this[_0x30cbc6(0x6ff)]=_0x44f24d,this[_0x30cbc6(0x488)]=Number['isFinite'](_0x47f06f[_0x30cbc6(0x488)])&&_0x47f06f[_0x30cbc6(0x488)]>0x0?_0x47f06f['ttlMs']:_0x1996ef,this['refreshThresholdMs']=Number[_0x30cbc6(0x725)](_0x47f06f[_0x30cbc6(0x6a5)])?_0x47f06f[_0x30cbc6(0x6a5)]:_0x445a74,this[_0x30cbc6(0x733)]=null;}async['open'](){const _0x1abfe3=_0x26c279;if(this[_0x1abfe3(0x733)])return this['_sub'];const _0x17df34=await this[_0x1abfe3(0x6ff)]['createEnvironment'](_0x27ef98,{'sync':![]});return await _0x17df34[_0x1abfe3(0x5f2)](_0x5df340,{'indexes':[_0x1497dc]}),await _0x17df34[_0x1abfe3(0x5f2)](_0x59071a),_0x17df34[_0x1abfe3(0x476)](_0x59071a)?_0x52944f(_0x17df34):await _0x17df34[_0x1abfe3(0x500)](_0x59071a,{'definition':{'type':_0x1abfe3(0x4ed),'properties':{'sessionId':{'type':'string','ref':{'type':_0x5df340,'onDelete':_0x1abfe3(0x718)}},'dataEnv':{'type':_0x1abfe3(0x229)},'type':{'type':'string'},'key':{'type':_0x1abfe3(0x229)}},'required':[_0x1abfe3(0x1d1),'dataEnv',_0x1abfe3(0x690),_0x1abfe3(0x590)]},'enforce':!![]}),await _0x17df34['ensureType'](_0x59071a,{'indexes':[_0x3a4401]}),await _0x17df34[_0x1abfe3(0x2ca)](_0x59071a,_0x3a4401),await _0x17df34[_0x1abfe3(0x2ca)](_0x5df340,_0x1497dc),this['_sub']=_0x17df34,_0x17df34;}[_0x26c279(0xf7)](){const _0x4249c7=_0x26c279;if(!this[_0x4249c7(0x733)])throw new Error(_0x4249c7(0x5e8));return this[_0x4249c7(0x733)];}async['createSession']({sessionId:_0x5d850e,dataEnv:_0x1134ee,type:_0x338aa8,filter:filter=null,ttlMs:_0xb3c715}={}){const _0x25a5e2=_0x26c279,_0x3cf7c4=this[_0x25a5e2(0xf7)]();_0x39f8b8(filter);const _0x90c94d=_0x5d850e!=null&&String(_0x5d850e)[_0x25a5e2(0x2a9)]>0x0?String(_0x5d850e):_0xd955dd[_0x25a5e2(0x33b)](),_0x1ede1d=Number[_0x25a5e2(0x725)](_0xb3c715)&&_0xb3c715>0x0?_0xb3c715:this[_0x25a5e2(0x488)],_0x5217d8=Date[_0x25a5e2(0x772)](),_0x1f18fd={'sessionId':_0x90c94d,'dataEnv':_0x1134ee,'type':_0x338aa8,'filter':filter??null,'version':0x0,'createdAt':_0x5217d8,'expiresAt':_0x5217d8+_0x1ede1d};return await _0x3cf7c4['put'](_0x5df340,_0x90c94d,_0x1f18fd,{'ttl':_0x1ede1d}),{'sessionId':_0x90c94d,'version':0x0};}[_0x26c279(0x496)](_0x339df0){const _0x139eb7=_0x26c279;if(!_0x339df0)return null;return this[_0x139eb7(0xf7)]()[_0x139eb7(0x1bc)](_0x5df340,String(_0x339df0))??null;}async['closeSession'](_0x5732d6){const _0x418020=_0x26c279,_0x475bef=this['_env'](),_0x520937=String(_0x5732d6);if(!_0x475bef['get'](_0x5df340,_0x520937))return![];return await _0x475bef[_0x418020(0x4d2)](_0x5df340,_0x520937),!![];}async[_0x26c279(0x60a)](_0x35ad5a){const _0x1031f4=_0x26c279,_0x20d5e8=this['_env'](),_0x490e48=String(_0x35ad5a),_0x43f550=_0x20d5e8[_0x1031f4(0x1bc)](_0x5df340,_0x490e48);if(!_0x43f550)return null;const _0x55512d=(Number[_0x1031f4(0x725)](_0x43f550[_0x1031f4(0x3a1)])?_0x43f550[_0x1031f4(0x3a1)]:0x0)+0x1;return await _0x20d5e8[_0x1031f4(0x59b)](_0x5df340,_0x490e48,{..._0x43f550,'version':_0x55512d}),_0x55512d;}async['refreshTtl'](_0x820e50,_0x286783){const _0x1f5916=_0x26c279,_0x23ba5c=this[_0x1f5916(0xf7)](),_0x48ba1e=String(_0x820e50);if(!_0x23ba5c['get'](_0x5df340,_0x48ba1e))return![];const _0x3db55f=Number[_0x1f5916(0x725)](_0x286783)&&_0x286783>0x0?_0x286783:this[_0x1f5916(0x488)];if(this[_0x1f5916(0x51a)](_0x48ba1e))return![];return await _0x23ba5c[_0x1f5916(0x5cf)](_0x5df340,_0x48ba1e,_0x3db55f),await this[_0x1f5916(0x77b)](_0x48ba1e,_0x3db55f),!![];}async[_0x26c279(0x56d)](_0x5303ce,_0x3dd898){const _0x5ad215=_0x26c279,_0x537881=this[_0x5ad215(0xf7)](),_0x4f934b=Number[_0x5ad215(0x725)](_0x3dd898)&&_0x3dd898>0x0?_0x3dd898:this[_0x5ad215(0x488)],_0x35944f=Date[_0x5ad215(0x772)](),_0x5b0e63=[];for(const _0x150096 of _0x5303ce||[]){const _0x4be5a4=String(_0x150096),_0x17bca6=_0x537881[_0x5ad215(0x1bc)](_0x5df340,_0x4be5a4);if(!_0x17bca6)continue;if(this[_0x5ad215(0x51a)](_0x4be5a4,_0x35944f))continue;_0x5b0e63[_0x5ad215(0x540)]({'id':_0x4be5a4,'cur':_0x17bca6});}if(_0x5b0e63['length']===0x0)return[];return await _0x537881['txn'](async _0x299d0a=>{const _0x50ee56=_0x5ad215;for(const {id:_0x14ce23,cur:_0x4dcd77}of _0x5b0e63){_0x299d0a[_0x50ee56(0x59b)](_0x5df340,_0x14ce23,{..._0x4dcd77,'expiresAt':_0x35944f+_0x4f934b}),_0x299d0a[_0x50ee56(0x5cf)](_0x5df340,_0x14ce23,_0x4f934b);}}),_0x5b0e63[_0x5ad215(0x1d9)](_0x545b71=>_0x545b71['id']);}[_0x26c279(0x51a)](_0x5b9e17,_0x52293d=Date[_0x26c279(0x772)]()){const _0x27021b=_0x26c279,_0x3e0dcd=this[_0x27021b(0xf7)]()[_0x27021b(0xbf)](_0x5df340,String(_0x5b9e17));if(!_0x3e0dcd)return![];return _0x3e0dcd[_0x27021b(0x354)]-_0x52293d>this[_0x27021b(0x6a5)];}async[_0x26c279(0x77b)](_0x296450,_0x8483f){const _0x57ece8=_0x26c279,_0x4a312a=this[_0x57ece8(0xf7)](),_0x800205=_0x4a312a['get'](_0x5df340,_0x296450);if(!_0x800205)return;await _0x4a312a[_0x57ece8(0x59b)](_0x5df340,_0x296450,{..._0x800205,'expiresAt':Date[_0x57ece8(0x772)]()+_0x8483f});}async[_0x26c279(0x45f)](_0x2f9b76,_0xf809ea,_0x2590e2){const _0x2c82d8=_0x26c279,_0x4c6ec2=this[_0x2c82d8(0xf7)](),_0x4189b1=String(_0x2f9b76),_0xad0e1c=_0x4c6ec2['get'](_0x5df340,_0x4189b1);if(!_0xad0e1c)throw new Error(_0x2c82d8(0x664)+_0x4189b1);const _0x417f70=_0xd955dd[_0x2c82d8(0x33b)]();return await _0x4c6ec2[_0x2c82d8(0x59b)](_0x59071a,_0x417f70,{'sessionId':_0x4189b1,'dataEnv':String(_0xad0e1c['dataEnv']),'type':String(_0xf809ea),'key':String(_0x2590e2)}),_0x417f70;}async[_0x26c279(0x663)](_0x169f82,_0x310ddb,{retries:retries=0x8}={}){const _0x4c3928=_0x26c279,_0x3e05a3=this[_0x4c3928(0xf7)]();for(let _0x4b67a7=0x0;;_0x4b67a7++){const _0x53e031=_0x3e05a3[_0x4c3928(0x153)](_0x5df340,_0x169f82);if(!_0x53e031)return null;const _0x1c4eaa=_0x53e031[_0x4c3928(0x6f0)],_0x3ef95b=(Number[_0x4c3928(0x725)](_0x1c4eaa[_0x4c3928(0x3a1)])?_0x1c4eaa['version']:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x310ddb(_0x1c4eaa,_0x3e05a3)||{};try{return await _0x3e05a3[_0x4c3928(0x704)](async _0x273c39=>{const _0x2d1898=_0x4c3928;applyInterests?.(_0x273c39),_0x273c39[_0x2d1898(0x59b)](_0x5df340,_0x169f82,{..._0x1c4eaa,...sessionPatch,'version':_0x3ef95b},{'ifVersion':_0x53e031[_0x2d1898(0x3a1)]});}),_0x3ef95b;}catch(_0x31837a){if(_0x31837a?.[_0x4c3928(0x30f)]===_0x4c3928(0x4e0)&&_0x4b67a7<retries)continue;throw _0x31837a;}}}async[_0x26c279(0x215)](_0x1a8163,{add:add=[],remove:remove=[]}={}){const _0x1911bf=String(_0x1a8163);return this['_commitSessionMutation'](_0x1911bf,(_0x3846de,_0x1966a2)=>{const _0x20e86c=_0x41a2,_0xb7ebf5=String(_0x3846de[_0x20e86c(0x4d1)]),_0x2cb8d2=new Set((remove||[])[_0x20e86c(0x1d9)](_0x5f0bbf=>String(_0x5f0bbf[_0x20e86c(0x690)])+'\x00'+String(_0x5f0bbf[_0x20e86c(0x590)]))),_0x23f97a=[];if(_0x2cb8d2['size']>0x0)for(const {key:_0x5ddbdc,value:_0x3bbdd6}of _0x1966a2[_0x20e86c(0x1bd)](_0x59071a,{})){if(!_0x3bbdd6||_0x3bbdd6[_0x20e86c(0x1d1)]!==_0x1911bf)continue;if(_0x2cb8d2['has'](_0x3bbdd6[_0x20e86c(0x690)]+'\x00'+_0x3bbdd6[_0x20e86c(0x590)]))_0x23f97a[_0x20e86c(0x540)](_0x5ddbdc);}const _0x64ee4f=(add||[])[_0x20e86c(0x1d9)](_0xe99332=>({'id':_0xd955dd['randomUUID'](),'type':String(_0xe99332[_0x20e86c(0x690)]),'key':String(_0xe99332[_0x20e86c(0x590)])}));return{'applyInterests':_0x3208cc=>{const _0x3933b4=_0x20e86c;for(const _0x3a1bd1 of _0x23f97a)_0x3208cc[_0x3933b4(0x4d2)](_0x59071a,_0x3a1bd1);for(const _0x44800f of _0x64ee4f)_0x3208cc[_0x3933b4(0x59b)](_0x59071a,_0x44800f['id'],{'sessionId':_0x1911bf,'dataEnv':_0xb7ebf5,'type':_0x44800f[_0x3933b4(0x690)],'key':_0x44800f[_0x3933b4(0x590)]});}};});}async[_0x26c279(0x762)](_0x1beac7,_0x584bab){const _0x26bc74=_0x26c279;_0x39f8b8(_0x584bab);const _0x15f04e=String(_0x1beac7);return this[_0x26bc74(0x663)](_0x15f04e,()=>({'sessionPatch':{'filter':_0x584bab??null}}));}async['removeInterest'](_0x5c06ef,_0x11055f,_0x3e1a1f){const _0x3a17c9=_0x26c279,_0x24f628=this[_0x3a17c9(0xf7)](),_0x2c4964=String(_0x5c06ef),_0x1e8ccf=String(_0x11055f),_0x1ec27a=String(_0x3e1a1f),_0x318355=[];for(const {key:_0x1f4f17,value:_0x1050fa}of _0x24f628[_0x3a17c9(0x1bd)](_0x59071a,{})){if(_0x1050fa&&_0x1050fa[_0x3a17c9(0x1d1)]===_0x2c4964&&_0x1050fa[_0x3a17c9(0x690)]===_0x1e8ccf&&_0x1050fa['key']===_0x1ec27a)_0x318355[_0x3a17c9(0x540)](_0x1f4f17);}for(const _0x506dca of _0x318355)await _0x24f628[_0x3a17c9(0x4d2)](_0x59071a,_0x506dca);return _0x318355[_0x3a17c9(0x2a9)];}async[_0x26c279(0x394)](_0x2142b5,_0x446a3a){const _0x1dcb1c=_0x26c279,_0x2415d1=String(_0x2142b5);return this[_0x1dcb1c(0x663)](_0x2415d1,(_0x501d80,_0x26878d)=>{const _0x3453bb=_0x1dcb1c,_0xe11eae=String(_0x501d80[_0x3453bb(0x4d1)]),_0xa1642a=[];for(const {key:_0x16cab0,value:_0x5d8e25}of _0x26878d[_0x3453bb(0x1bd)](_0x59071a,{})){if(_0x5d8e25&&_0x5d8e25['sessionId']===_0x2415d1)_0xa1642a['push'](_0x16cab0);}const _0x487902=(_0x446a3a||[])[_0x3453bb(0x1d9)](_0x280890=>({'id':_0xd955dd[_0x3453bb(0x33b)](),'type':String(_0x280890[_0x3453bb(0x690)]),'key':String(_0x280890[_0x3453bb(0x590)])}));return{'applyInterests':_0x2d023a=>{const _0x17d056=_0x3453bb;for(const _0x1b7ab7 of _0xa1642a)_0x2d023a[_0x17d056(0x4d2)](_0x59071a,_0x1b7ab7);for(const _0x5c6a76 of _0x487902)_0x2d023a[_0x17d056(0x59b)](_0x59071a,_0x5c6a76['id'],{'sessionId':_0x2415d1,'dataEnv':_0xe11eae,'type':_0x5c6a76[_0x17d056(0x690)],'key':_0x5c6a76['key']});}};});}[_0x26c279(0x613)](_0xc7b847,_0x50deb5,_0x538ed2){const _0x42ae09=_0x26c279,_0x434a71=this[_0x42ae09(0xf7)](),_0x49a6de=String(_0xc7b847),_0x5c5a63=String(_0x50deb5),_0x1afc73=String(_0x538ed2),_0x449309=new Set();for(const {value:_0x39832e}of _0x434a71['byIndex'](_0x59071a,_0x3a4401,{'start':[_0x49a6de,_0x5c5a63,_0x1afc73],'end':[_0x49a6de,_0x5c5a63,_0x1afc73,'']})){if(_0x39832e&&_0x39832e['sessionId'])_0x449309[_0x42ae09(0x3a8)](_0x39832e[_0x42ae09(0x1d1)]);}return[..._0x449309];}[_0x26c279(0x3e3)](_0x5cec20,_0x49441a){const _0xd25811=_0x26c279,_0xe38edd=this[_0xd25811(0xf7)](),_0x59d1db=String(_0x5cec20),_0x564409=String(_0x49441a),_0x205c85=[];for(const {value:_0xaf0e2a}of _0xe38edd[_0xd25811(0x372)](_0x5df340,_0x1497dc,{'start':[_0x59d1db,_0x564409],'end':[_0x59d1db,_0x564409,'\uffff']})){if(!_0xaf0e2a||_0xaf0e2a[_0xd25811(0x4d1)]!==_0x59d1db||_0xaf0e2a[_0xd25811(0x690)]!==_0x564409)continue;if(_0xaf0e2a[_0xd25811(0x587)]==null)continue;_0x205c85[_0xd25811(0x540)]({'sessionId':_0xaf0e2a[_0xd25811(0x1d1)],'filter':_0xaf0e2a[_0xd25811(0x587)],'version':Number[_0xd25811(0x725)](_0xaf0e2a[_0xd25811(0x3a1)])?_0xaf0e2a['version']:0x0});}return _0x205c85;}async[_0x26c279(0x23e)](){const _0x367eba=_0x26c279;return this[_0x367eba(0xf7)]()[_0x367eba(0xcf)]();}}return okdbSubscriptionsStore[_0x26c279(0x1ad)]=_0x39be2f,okdbSubscriptionsStore[_0x26c279(0x1ad)][_0x26c279(0x689)]=_0x27ef98,okdbSubscriptionsStore[_0x26c279(0x1ad)][_0x26c279(0x726)]=_0x5df340,okdbSubscriptionsStore[_0x26c279(0x1ad)][_0x26c279(0xe6)]=_0x59071a,okdbSubscriptionsStore[_0x26c279(0x1ad)]['REVERSE_INDEX']=_0x3a4401,okdbSubscriptionsStore[_0x26c279(0x1ad)]['SESSION_TYPE_INDEX']=_0x1497dc,okdbSubscriptionsStore[_0x26c279(0x1ad)]['DEFAULT_TTL_MS']=_0x1996ef,okdbSubscriptionsStore[_0x26c279(0x1ad)];}var version=_0x431d06(0x237),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0xffe891=_0x431d06;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x56aee9='~engines',_0x225e9c=0xa,_0x2831f1=Object[_0xffe891(0x4f8)]({'CREATED':'created','ONLINE':'online','STOPPED':'stopped','INACTIVE':'inactive','ERROR':_0xffe891(0x4ad),'REMOVED':_0xffe891(0x348)}),_0x4bc2bb=Object[_0xffe891(0x4f8)]({'STARTED':_0xffe891(0x6ec),'STOPPED':'stopped','ERROR':_0xffe891(0x4ad),'INSTALLED':_0xffe891(0x542),'UNINSTALLED':_0xffe891(0x4f7)}),_0x64cfc0=Object[_0xffe891(0x4f8)](new Set([_0x2831f1[_0xffe891(0x66f)],_0x2831f1[_0xffe891(0x742)],_0x2831f1[_0xffe891(0x152)],_0x2831f1[_0xffe891(0x405)]]));function _0x4cfab8(_0x42b277){return _0x42b277?.['enabled']===![]?_0x2831f1['STOPPED']:'remote';}return okdbEnginesEnums={'TYPE_ENGINES':_0x56aee9,'MAX_UPDATE_RETRIES':_0x225e9c,'ENGINE_STATUS':_0x2831f1,'ENGINE_EVENTS':_0x4bc2bb,'UPDATABLE_STATUSES':_0x64cfc0,'durableOnlyEngineState':_0x4cfab8},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x17de2e=_0x431d06;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x8ca928=Object[_0x17de2e(0x4f8)]({'EMBEDDER':_0x17de2e(0x472),'INDEXER':_0x17de2e(0x320),'SEARCH':_0x17de2e(0x621),'WORKER':_0x17de2e(0x4cc)}),_0x5f4be7=Object[_0x17de2e(0x4f8)]({'PENDING':'pending','DONE':_0x17de2e(0x248),'FAILED':_0x17de2e(0x585),'DELETED':'deleted'}),_0x1b96ea=Object[_0x17de2e(0x4f8)]({'INDEXER_READY':_0x17de2e(0x7a0),'INDEXER_FLUSHED':_0x17de2e(0x286),'INDEXER_DOC_DONE':_0x17de2e(0x7c6),'INDEXER_DOC_FAILED':_0x17de2e(0x21c),'INDEXER_DOC_QUEUED':_0x17de2e(0x10e),'STRATEGY_REGISTERED':_0x17de2e(0x41f),'DOC_STATUS_CHANGE':_0x17de2e(0x629),'PIPELINE_READY':_0x17de2e(0x2bf)}),_0x42a3eb=Object['freeze']({'MODELS':'~emb:models','DOC_STATUS_PREFIX':_0x17de2e(0x3c6),'VEC_PREFIX':_0x17de2e(0x553)});return enums={'ENGINE_TYPES':_0x8ca928,'INDEXER_DOC_STATUS':_0x5f4be7,'EMBEDDINGS_EVENTS':_0x1b96ea,'INTERNAL_TYPES':_0x42a3eb},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x34b1fe=_0x431d06;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xa8f882=Object[_0x34b1fe(0x4f8)]({'PENDING':_0x34b1fe(0x5a9),'RUNNING':_0x34b1fe(0x1e2),'DONE':'done','FAILED':_0x34b1fe(0x585)}),_0x52c285=Object[_0x34b1fe(0x4f8)]({'ACTIVE':_0x34b1fe(0x1cf),'PAUSED':'paused','DRAINING':_0x34b1fe(0x5b6)}),_0xf1af57=Object[_0x34b1fe(0x4f8)]({'ENQUEUED':_0x34b1fe(0x5e4),'DONE':_0x34b1fe(0x571),'FAILED':'queue:failed','RETRY':_0x34b1fe(0x58b),'RESCHEDULED':_0x34b1fe(0x457),'REMOVED':_0x34b1fe(0x47e),'RECONCILED':_0x34b1fe(0x616),'CLEAR_PROGRESS':_0x34b1fe(0x647),'CLEAR_DONE':_0x34b1fe(0x4c2),'LOG':'queue:log'}),_0x400e02=Object[_0x34b1fe(0x4f8)](['debug',_0x34b1fe(0xd5),_0x34b1fe(0x200),_0x34b1fe(0x4ad)]),_0x1bab6b=0x1,_0x5c0e10=0xc350,_0x539710=0x400,_0x445553=0x800;function _0x2fefe9(_0x102a75){const _0xdf5397=_0x34b1fe;return _0x102a75!=null&&typeof _0x102a75==='object'&&(_0x102a75['constructor']===Object||Object[_0xdf5397(0x2dd)](_0x102a75)===null);}function _0x419589(_0x47413b,_0x1d0df1,_0x162bb5,_0xa90148){const _0x4d48c0=_0x34b1fe;if(_0x47413b==null)return _0x1d0df1;const _0x3730e3=Number(_0x47413b);if(!Number['isFinite'](_0x3730e3))return _0x1d0df1;const _0x43c7b2=Math[_0x4d48c0(0x26a)](_0x3730e3);if(_0x43c7b2<_0x162bb5)return _0x162bb5;if(_0x43c7b2>_0xa90148)return _0xa90148;return _0x43c7b2;}function _0x41b9c6(_0x14487a){const _0x1388a4=_0x34b1fe;if(!_0x14487a)return[];if(typeof _0x14487a==='string')_0x14487a=[_0x14487a];if(!Array[_0x1388a4(0x17d)](_0x14487a))throw new Error(_0x1388a4(0x68f));const _0x4fbe36=[],_0x5b3790=new Set();for(const _0x118a08 of _0x14487a){if(_0x118a08==null)continue;const _0x3aaca2=String(_0x118a08)[_0x1388a4(0x189)]();if(!_0x3aaca2)continue;if(_0x3aaca2[_0x1388a4(0x2a9)]>0x80)throw new Error(_0x1388a4(0x15f));if(_0x5b3790[_0x1388a4(0x614)](_0x3aaca2))continue;_0x5b3790[_0x1388a4(0x3a8)](_0x3aaca2),_0x4fbe36[_0x1388a4(0x540)](_0x3aaca2);if(_0x4fbe36[_0x1388a4(0x2a9)]>=0x20)break;}return _0x4fbe36;}function _0x148535(_0x6f7993){const _0x3bdf8c=_0x34b1fe;if(_0x6f7993==null)return null;const _0x302a42=String(_0x6f7993)[_0x3bdf8c(0x189)]();if(!_0x302a42)return null;if(_0x302a42[_0x3bdf8c(0x2a9)]>0x80)throw new Error(_0x3bdf8c(0x7d9));return _0x302a42;}function _0x1b99c5(_0x46bb92,_0x384fc5=0x1){const _0x50044f=_0x34b1fe;if(_0x46bb92==null)return[];if(typeof _0x46bb92===_0x50044f(0x229)){const _0x115212=_0x148535(_0x46bb92);if(!_0x115212)return[];return[{'id':_0x115212,'tokens':_0x384fc5}];}if(!Array['isArray'](_0x46bb92))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x533bb5=[],_0x6a138f=new Set();for(const _0x438625 of _0x46bb92){let _0x2bad63,_0x1d99f0;if(Array[_0x50044f(0x17d)](_0x438625))[_0x2bad63,_0x1d99f0]=_0x438625;else{if(_0x438625&&typeof _0x438625===_0x50044f(0x4ed))({id:_0x2bad63,tokens:_0x1d99f0}=_0x438625);else{if(typeof _0x438625==='string')_0x2bad63=_0x438625,_0x1d99f0=_0x384fc5;else continue;}}_0x2bad63=_0x148535(_0x2bad63);if(!_0x2bad63)continue;const _0x1bf1d0=_0x1d99f0==null?_0x384fc5:Math[_0x50044f(0x26a)](Number(_0x1d99f0));if(!Number[_0x50044f(0x725)](_0x1bf1d0)||_0x1bf1d0<0x1)throw new Error(_0x50044f(0x2de)+_0x2bad63+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0x1bf1d0>0xf4240)throw new Error(_0x50044f(0x2de)+_0x2bad63+'\x22\x20tokens\x20too\x20large');if(_0x6a138f[_0x50044f(0x614)](_0x2bad63))throw new Error(_0x50044f(0xc7)+_0x2bad63);_0x6a138f[_0x50044f(0x3a8)](_0x2bad63),_0x533bb5[_0x50044f(0x540)]({'id':_0x2bad63,'tokens':_0x1bf1d0});}return _0x533bb5;}function _0x162775(_0x3cb2ee,_0x58e07c=0x400){const _0xba4e4=_0x34b1fe;if(_0x3cb2ee==null)return null;const _0x2a67d9=String(_0x3cb2ee)[_0xba4e4(0x331)](0x0,_0x58e07c);return _0x2a67d9||null;}function _0x37992a(_0x5ee542){const _0x4b6f4b=_0x34b1fe;if(_0x5ee542==null)return null;if(_0x5ee542[_0x4b6f4b(0x590)]!==undefined&&_0x5ee542[_0x4b6f4b(0x6f0)]!==undefined)return _0x5ee542;return{'key':_0x5ee542['id']??null,'value':_0x5ee542};}function _0x500dd8(_0x273b6d){const _0x3308b9=_0x34b1fe;let _0x17a442=_0x273b6d;if(typeof _0x273b6d===_0x3308b9(0x229))_0x17a442={'message':_0x273b6d};if(!_0x2fefe9(_0x17a442))throw new Error(_0x3308b9(0x592));const _0x5acd43=_0x17a442[_0x3308b9(0x3dd)]==null?_0x3308b9(0xd5):String(_0x17a442['level'])[_0x3308b9(0x2ed)]();if(!_0x400e02[_0x3308b9(0x4e5)](_0x5acd43))throw new Error(_0x3308b9(0x7af)+_0x5acd43);if(_0x17a442[_0x3308b9(0x18d)]==null)throw new Error(_0x3308b9(0x263));const _0x3d17a3=String(_0x17a442[_0x3308b9(0x18d)])['slice'](0x0,_0x539710);let _0x6bd4aa=null;if(_0x17a442[_0x3308b9(0x49a)]!=null){if(!_0x2fefe9(_0x17a442[_0x3308b9(0x49a)]))throw new Error(_0x3308b9(0x319));if(JSON[_0x3308b9(0x64b)](_0x17a442[_0x3308b9(0x49a)])[_0x3308b9(0x2a9)]>_0x445553)throw new Error(_0x3308b9(0x74c));_0x6bd4aa=_0x17a442['fields'];}return{'level':_0x5acd43,'message':_0x3d17a3,'fields':_0x6bd4aa,'ts':Date[_0x3308b9(0x772)]()};}function _0x135cea(_0x42a8e0){const _0xe48cb3=_0x34b1fe;if(_0x42a8e0==null)return;if(!Number[_0xe48cb3(0x48b)](_0x42a8e0)||_0x42a8e0<_0x1bab6b||_0x42a8e0>_0x5c0e10)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x1bab6b+',\x20'+_0x5c0e10+']');}function _0x4ca1ea(_0x3fa996){const _0x3f817e=_0x34b1fe;if(!_0x2fefe9(_0x3fa996))throw new Error(_0x3f817e(0x7e7));if(typeof _0x3fa996['id']!=='string'||_0x3fa996['id']['length']<0x8)throw new Error(_0x3f817e(0x362));if(typeof _0x3fa996[_0x3f817e(0x690)]!==_0x3f817e(0x229)||!_0x3fa996[_0x3f817e(0x690)])throw new Error(_0x3f817e(0x529));if(!Object[_0x3f817e(0x4ee)](_0xa8f882)[_0x3f817e(0x4e5)](_0x3fa996[_0x3f817e(0x5d2)]))throw new Error(_0x3f817e(0x48d)+_0x3fa996[_0x3f817e(0x5d2)]);for(const _0x3ab0ff of[_0x3f817e(0x1b8),'created',_0x3f817e(0x3d0)]){if(typeof _0x3fa996[_0x3ab0ff]!==_0x3f817e(0x1ce)||!Number['isFinite'](_0x3fa996[_0x3ab0ff]))throw new Error(_0x3f817e(0x7b7)+_0x3ab0ff+_0x3f817e(0x3de));}if(_0x3fa996[_0x3f817e(0x62b)]!=null&&(typeof _0x3fa996[_0x3f817e(0x62b)]!==_0x3f817e(0x1ce)||!Number[_0x3f817e(0x725)](_0x3fa996[_0x3f817e(0x62b)])))throw new Error(_0x3f817e(0x7b0));if(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x4a4)])||_0x3fa996[_0x3f817e(0x4a4)]<0x0)throw new Error('job.tries\x20must\x20be\x20non-negative\x20int');if(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x416)]))throw new Error('job.priority\x20must\x20be\x20int');if(_0x3fa996[_0x3f817e(0xe1)]!==null&&_0x3fa996['max_tries']!==Infinity&&(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0xe1)])||_0x3fa996[_0x3f817e(0xe1)]<0x1))throw new Error(_0x3f817e(0x192));if(_0x3fa996[_0x3f817e(0x116)]!=null&&(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x116)])||_0x3fa996[_0x3f817e(0x116)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x3fa996[_0x3f817e(0x5d7)]!=null&&(typeof _0x3fa996[_0x3f817e(0x5d7)]!=='number'||_0x3fa996['backoff_multiplier']<0x1))throw new Error(_0x3f817e(0x65d));if(_0x3fa996['claim_id']!=null&&typeof _0x3fa996[_0x3f817e(0x78d)]!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x68c));if(_0x3fa996[_0x3f817e(0x4e4)]!=null&&(typeof _0x3fa996[_0x3f817e(0x4e4)]!==_0x3f817e(0x1ce)||!Number['isFinite'](_0x3fa996[_0x3f817e(0x4e4)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x3fa996[_0x3f817e(0x783)]!=null&&typeof _0x3fa996['bucket']!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x43a));if(_0x3fa996[_0x3f817e(0x62c)]!=null&&(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x62c)])||_0x3fa996['bucket_tokens']<0x1))throw new Error('job.bucket_tokens\x20must\x20be\x20int\x20>=1');if(_0x3fa996[_0x3f817e(0xc8)]!=null){if(!Array[_0x3f817e(0x17d)](_0x3fa996['buckets']))throw new Error(_0x3f817e(0x1a8));for(const _0x48a2c6 of _0x3fa996[_0x3f817e(0xc8)]){if(!_0x48a2c6||typeof _0x48a2c6!==_0x3f817e(0x4ed))throw new Error(_0x3f817e(0x383));if(typeof _0x48a2c6['id']!=='string'||!_0x48a2c6['id'][_0x3f817e(0x189)]())throw new Error(_0x3f817e(0x310));if(!Number[_0x3f817e(0x48b)](_0x48a2c6[_0x3f817e(0x4f4)])||_0x48a2c6['tokens']<0x1)throw new Error(_0x3f817e(0x6eb));}}if(_0x3fa996[_0x3f817e(0x184)]!=null&&typeof _0x3fa996[_0x3f817e(0x184)]!==_0x3f817e(0x229))throw new Error('job.cron\x20must\x20be\x20string|null');if(_0x3fa996[_0x3f817e(0x2e6)]!=null&&typeof _0x3fa996[_0x3f817e(0x2e6)]!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x1af));if(!Array[_0x3f817e(0x17d)](_0x3fa996[_0x3f817e(0x78b)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x3fa996['tag']!=null&&typeof _0x3fa996['tag']!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x63d));if(_0x3fa996[_0x3f817e(0x2fd)]!=null&&typeof _0x3fa996[_0x3f817e(0x2fd)]!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x25c));if(_0x3fa996['status_message']!=null&&typeof _0x3fa996[_0x3f817e(0x609)]!=='string')throw new Error(_0x3f817e(0x799));if(_0x3fa996['error_stack']!=null&&typeof _0x3fa996[_0x3f817e(0x4ab)]!==_0x3f817e(0x229))throw new Error('job.error_stack\x20must\x20be\x20string|null');for(const _0x2d59a8 of[_0x3f817e(0x411),_0x3f817e(0x104)]){const _0x148929=_0x3fa996[_0x2d59a8];if(_0x148929!=null&&(!Number[_0x3f817e(0x48b)](_0x148929)||_0x148929<0x0))throw new Error(_0x3f817e(0x7b7)+_0x2d59a8+_0x3f817e(0x2ae));}_0x135cea(_0x3fa996[_0x3f817e(0x259)]);}function _0x2c2481(_0x554255){const _0x50fd31=_0x34b1fe;if(!_0x2fefe9(_0x554255))throw new Error(_0x50fd31(0x16b));if(typeof _0x554255['id']!=='string'||!_0x554255['id'][_0x50fd31(0x189)]())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object[_0x50fd31(0x4ee)](_0x52c285)[_0x50fd31(0x4e5)](_0x554255[_0x50fd31(0x5d2)]))throw new Error('invalid\x20job_type.status:\x20'+_0x554255['status']);if(_0x554255[_0x50fd31(0x580)]!=null&&(!Number[_0x50fd31(0x48b)](_0x554255[_0x50fd31(0x580)])||_0x554255['max_concurrency']<0x1))throw new Error(_0x50fd31(0x626));if(_0x554255[_0x50fd31(0x19a)]!=null){if(!_0x2fefe9(_0x554255[_0x50fd31(0x19a)]))throw new Error(_0x50fd31(0x4d9));const _0x438889=_0x554255[_0x50fd31(0x19a)];if(_0x438889['max_tries']!=null&&(!Number['isInteger'](_0x438889[_0x50fd31(0xe1)])||_0x438889[_0x50fd31(0xe1)]<0x1))throw new Error(_0x50fd31(0x461));if(_0x438889[_0x50fd31(0x116)]!=null&&(!Number[_0x50fd31(0x48b)](_0x438889[_0x50fd31(0x116)])||_0x438889[_0x50fd31(0x116)]<0x0))throw new Error('job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null');if(_0x438889[_0x50fd31(0x5d7)]!=null&&(typeof _0x438889[_0x50fd31(0x5d7)]!==_0x50fd31(0x1ce)||_0x438889['backoff_multiplier']<0x1))throw new Error(_0x50fd31(0x176));if(_0x438889[_0x50fd31(0x416)]!=null&&!Number[_0x50fd31(0x48b)](_0x438889[_0x50fd31(0x416)]))throw new Error(_0x50fd31(0x56a));if(_0x438889[_0x50fd31(0x12e)]!=null&&(!Number[_0x50fd31(0x48b)](_0x438889['ttl'])||_0x438889['ttl']<0x0))throw new Error('job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null');for(const _0x3d719c of[_0x50fd31(0x411),_0x50fd31(0x104)]){if(_0x438889[_0x3d719c]!=null&&(!Number[_0x50fd31(0x48b)](_0x438889[_0x3d719c])||_0x438889[_0x3d719c]<0x0))throw new Error(_0x50fd31(0x3c3)+_0x3d719c+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x438889[_0x50fd31(0xc8)]!=null&&!Array[_0x50fd31(0x17d)](_0x438889['buckets']))throw new Error('job_type.defaults.buckets\x20must\x20be\x20array|null');_0x135cea(_0x438889[_0x50fd31(0x259)]);}if(_0x554255[_0x50fd31(0x3cf)]!=null){if(!_0x2fefe9(_0x554255['payload_schema']))throw new Error(_0x50fd31(0x707));if(!_0x2fefe9(_0x554255[_0x50fd31(0x3cf)][_0x50fd31(0x23f)]))throw new Error(_0x50fd31(0x186));if(typeof _0x554255[_0x50fd31(0x3cf)]['enforce']!==_0x50fd31(0x43d))throw new Error(_0x50fd31(0x46a));}for(const _0x28b4cf of[_0x50fd31(0x3fd),_0x50fd31(0x36c)]){if(typeof _0x554255[_0x28b4cf]!==_0x50fd31(0x1ce)||!Number[_0x50fd31(0x725)](_0x554255[_0x28b4cf]))throw new Error(_0x50fd31(0x10d)+_0x28b4cf+'\x20must\x20be\x20number');}}function _0x5e0c6f(_0x574b49){const _0x3bf681=_0x34b1fe;if(!_0x2fefe9(_0x574b49))throw new Error(_0x3bf681(0xb8));if(typeof _0x574b49['id']!==_0x3bf681(0x229)||!_0x574b49['id'][_0x3bf681(0x189)]())throw new Error(_0x3bf681(0x381));if(!Number[_0x3bf681(0x48b)](_0x574b49[_0x3bf681(0x4f4)])||_0x574b49[_0x3bf681(0x4f4)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number['isInteger'](_0x574b49[_0x3bf681(0x28c)])||_0x574b49[_0x3bf681(0x28c)]<0x0)throw new Error(_0x3bf681(0x31c));if(_0x574b49[_0x3bf681(0x4f4)]>_0x574b49[_0x3bf681(0x28c)])throw new Error(_0x3bf681(0x632));if(!Number['isInteger'](_0x574b49[_0x3bf681(0x181)])||_0x574b49[_0x3bf681(0x181)]<0x0)throw new Error(_0x3bf681(0x42f));if(!Number['isInteger'](_0x574b49[_0x3bf681(0x670)])||_0x574b49[_0x3bf681(0x670)]<0x0)throw new Error(_0x3bf681(0x417));if(typeof _0x574b49[_0x3bf681(0x3d0)]!==_0x3bf681(0x1ce)||!Number[_0x3bf681(0x725)](_0x574b49[_0x3bf681(0x3d0)]))throw new Error(_0x3bf681(0x534));}return okdbQueueValidate={'STATUS':_0xa8f882,'JOB_TYPE_STATUS':_0x52c285,'QUEUE_EVENTS':_0xf1af57,'LOG_LEVELS':_0x400e02,'LOG_CAP_MIN':_0x1bab6b,'LOG_CAP_MAX':_0x5c0e10,'clampInt':_0x419589,'asNullableString':_0x162775,'normalizeResult':_0x37992a,'normalizeTags':_0x41b9c6,'normalizeBucket':_0x148535,'normalizeBuckets':_0x1b99c5,'normalizeLogEntry':_0x500dd8,'validateJobShape':_0x4ca1ea,'validateJobTypeShape':_0x2c2481,'validateBucketShape':_0x5e0c6f},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x499e08=0x2**0x1f-0x1;function _0x2d0eb8(_0x3e5a96){if(!(_0x3e5a96>0x0))return 0x0;return _0x3e5a96>_0x499e08?_0x499e08:_0x3e5a96;}function _0x3502cf(_0x56f24e){return _0x56f24e===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x499e08,'clampTimerDelay':_0x2d0eb8,'isNeverDelay':_0x3502cf},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0xf20b8f=_0x431d06;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x4ceed2=require$$0$6,{clampTimerDelay:_0x448f3a}=requireOkdbTimers(),{EVENTS:_0x14b86d,CHANGE_ACTIONS:_0x249857}=requireOkdbEnums(),{LOOP:_0x1a743c}=requireOkdbLoopMonitor(),_0x18ba0c=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1287f7=0x5,_0x5150fc=0x2710;class _0x4ee141 extends _0x4ceed2{constructor(_0x1c7268,_0x3559d7={}){const _0x3c81df=_0x41a2;super(),this['okdb']=_0x1c7268,this[_0x3c81df(0x759)]=_0x3559d7[_0x3c81df(0x3cb)]??_0x18ba0c,this[_0x3c81df(0x16e)]=_0x3559d7[_0x3c81df(0x6e3)]??_0x1287f7,this[_0x3c81df(0x702)]=_0x3559d7[_0x3c81df(0x6f7)]??_0x5150fc,this[_0x3c81df(0x2a2)]=![],this[_0x3c81df(0x7b3)]=new Map(),this['_baselines']=new Map(),this['_pending']=new Map(),this['_flushTimer']=null,this['_draining']=![],this['_seen']=new Set(),this[_0x3c81df(0x598)]=new Set(),this[_0x3c81df(0x786)]=_0x229d7c=>this[_0x3c81df(0x7d4)](_0x229d7c),this['_onPending']=_0x36d894=>this[_0x3c81df(0x435)](_0x36d894),this[_0x3c81df(0x5c2)]=_0x1dbaf7=>this[_0x3c81df(0x763)](_0x1dbaf7),this[_0x3c81df(0x2c7)]=()=>this['stop']();}['start'](){const _0x450bba=_0x41a2;if(this[_0x450bba(0x2a2)])return;this[_0x450bba(0x2a2)]=!![];for(const [_0x5a399b,_0x5cfcbc]of this['okdb'][_0x450bba(0x446)]){if(_0x5a399b['startsWith']('~'))continue;try{_0x5cfcbc[_0x450bba(0x6ae)]();}catch{}}for(const [_0x31844a,_0x1675cb]of this[_0x450bba(0x6ff)][_0x450bba(0x446)]){if(_0x31844a[_0x450bba(0x217)]('~'))continue;try{this[_0x450bba(0x41b)][_0x450bba(0x48c)](_0x31844a,_0x1675cb[_0x450bba(0x41d)]()||0x0);}catch{}}const {events:_0x56caf4}=this[_0x450bba(0x6ff)];_0x56caf4['on'](_0x14b86d[_0x450bba(0x558)],this[_0x450bba(0x3ed)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0x67a)],this[_0x450bba(0x786)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0xc0)],this[_0x450bba(0x786)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0x3bc)],this[_0x450bba(0x786)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0x515)],this['_onPoke']),_0x56caf4[_0x450bba(0x73e)](_0x14b86d[_0x450bba(0x270)],this[_0x450bba(0x2c7)]);}['stop'](){const _0x3957be=_0x41a2;if(!this[_0x3957be(0x2a2)])return;this[_0x3957be(0x2a2)]=![];const {events:_0x2f93e4}=this[_0x3957be(0x6ff)];_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d['ITEM_PENDING'],this['_onPending']),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d[_0x3957be(0x67a)],this[_0x3957be(0x786)]),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d[_0x3957be(0xc0)],this[_0x3957be(0x786)]),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d['ITEM_REMOVE'],this[_0x3957be(0x786)]),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d[_0x3957be(0x515)],this['_onPoke']);try{_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d['SYSTEM_STOPPED'],this[_0x3957be(0x2c7)]);}catch{}this[_0x3957be(0x593)]&&(clearTimeout(this['_flushTimer']),this[_0x3957be(0x593)]=null),this[_0x3957be(0x6d9)][_0x3957be(0x544)](),this[_0x3957be(0x7b3)]['clear'](),this[_0x3957be(0x41b)][_0x3957be(0x544)](),this['_seen'][_0x3957be(0x544)](),this[_0x3957be(0x598)]['clear']();}[_0xf20b8f(0x7cf)](_0x35db14,_0x2c856b,_0x48b3ab,_0x556cca){return _0x35db14+'\x00'+_0x2c856b+'\x00'+_0x48b3ab+'\x00'+_0x556cca;}[_0xf20b8f(0x74b)](_0x275c62,_0x375bd6,_0x47b4a0,_0x3bd9f8){const _0x4eaf45=_0xf20b8f,_0x28b36c=this[_0x4eaf45(0x7cf)](_0x275c62,_0x375bd6,_0x47b4a0,_0x3bd9f8);if(this['_seen'][_0x4eaf45(0x614)](_0x28b36c))return![];this['_seen'][_0x4eaf45(0x3a8)](_0x28b36c);if(this[_0x4eaf45(0x627)][_0x4eaf45(0x74f)]>this[_0x4eaf45(0x702)]){const _0x4eef7e=this[_0x4eaf45(0x627)][_0x4eaf45(0x4ee)]()[_0x4eaf45(0x133)]()[_0x4eaf45(0x6f0)];this[_0x4eaf45(0x627)][_0x4eaf45(0x7ec)](_0x4eef7e);}return!![];}[_0xf20b8f(0x435)](_0x494e8f){const _0x1ea4dd=_0xf20b8f;if(!this[_0x1ea4dd(0x2a2)]||!_0x494e8f)return;const {env:_0x207c05,type:_0x2895f9,key:_0x4888be,clock:_0x1f745b}=_0x494e8f;if(_0x207c05==null||_0x2895f9==null||_0x4888be==null)return;if(typeof _0x207c05==='string'&&_0x207c05[_0x1ea4dd(0x217)]('~'))return;if(typeof _0x2895f9===_0x1ea4dd(0x229)&&_0x2895f9[_0x1ea4dd(0x217)]('~'))return;this[_0x1ea4dd(0x598)][_0x1ea4dd(0x3a8)](this[_0x1ea4dd(0x7cf)](_0x207c05,_0x2895f9,_0x4888be,_0x1f745b)),this[_0x1ea4dd(0x598)][_0x1ea4dd(0x74f)]>this[_0x1ea4dd(0x702)]&&this[_0x1ea4dd(0x598)][_0x1ea4dd(0x7ec)](this['_pendingLocal'][_0x1ea4dd(0x4ee)]()[_0x1ea4dd(0x133)]()[_0x1ea4dd(0x6f0)]);}[_0xf20b8f(0x7d4)](_0x5dd64c){const _0x3f1155=_0xf20b8f;if(!this[_0x3f1155(0x2a2)]||!_0x5dd64c)return;const {env:_0x14ea0c,type:_0x2ebdc7,key:_0x501722,clock:_0xb5d831,origin:_0x3448d2,action:_0x27474a,newValue:_0x57080f,oldValue:_0x37128}=_0x5dd64c;if(_0x14ea0c==null||_0x2ebdc7==null||_0x501722==null)return;if(typeof _0x14ea0c==='string'&&_0x14ea0c[_0x3f1155(0x217)]('~'))return;if(typeof _0x2ebdc7==='string'&&_0x2ebdc7[_0x3f1155(0x217)]('~'))return;this['_pendingLocal'][_0x3f1155(0x7ec)](this[_0x3f1155(0x7cf)](_0x14ea0c,_0x2ebdc7,_0x501722,_0xb5d831));if(!this[_0x3f1155(0x74b)](_0x14ea0c,_0x2ebdc7,_0x501722,_0xb5d831))return;const _0x28949b=_0x27474a===_0x249857[_0x3f1155(0x221)]?_0x3f1155(0x4d2):_0x3f1155(0x59b);this[_0x3f1155(0x36e)](_0x3f1155(0xd0),{'env':_0x14ea0c,'type':_0x2ebdc7,'key':_0x501722,'op':_0x28949b,'clock':_0xb5d831,'origin':_0x3448d2,'value':_0x28949b===_0x3f1155(0x4d2)?null:_0x57080f,'prevValue':_0x37128});}[_0xf20b8f(0x763)](_0x4f2aff){const _0x4a2572=_0xf20b8f;if(!this['_started'])return;if(!_0x4f2aff||typeof _0x4f2aff['env']!==_0x4a2572(0x229)||typeof _0x4f2aff[_0x4a2572(0x690)]!==_0x4a2572(0x229))return;const {env:_0x1e21dd,type:_0x22b4df}=_0x4f2aff;if(_0x1e21dd[_0x4a2572(0x217)]('~')||_0x22b4df['startsWith']('~'))return;this[_0x4a2572(0x6d9)]['set'](_0x1e21dd+'\x00'+_0x22b4df,{'env':_0x1e21dd,'type':_0x22b4df}),this[_0x4a2572(0xed)]();}[_0xf20b8f(0xed)](){const _0x3aa2b6=_0xf20b8f;if(this['_flushTimer'])return;const _0x415de0=()=>{const _0x12a380=_0x41a2;this['_flushTimer']=null,this['_drain']()[_0x12a380(0x603)](()=>{});};this[_0x3aa2b6(0x593)]=setTimeout(_0x415de0,_0x448f3a(this[_0x3aa2b6(0x16e)]));}async[_0xf20b8f(0x5cc)](){const _0x14dce5=_0xf20b8f;if(this[_0x14dce5(0x51f)]){this['_scheduleFlush']();return;}this[_0x14dce5(0x51f)]=!![];try{const _0x53e3c6=[...this[_0x14dce5(0x6d9)][_0x14dce5(0x4ee)]()];this['_pending'][_0x14dce5(0x544)]();let _0x19aab3=![];for(const {env:_0x38a78d,type:_0x303db0}of _0x53e3c6){try{const _0x9092ab=await this[_0x14dce5(0x25a)](_0x38a78d,_0x303db0);if(_0x9092ab)_0x19aab3=!![];}catch{this[_0x14dce5(0x6d9)][_0x14dce5(0x48c)](_0x38a78d+'\x00'+_0x303db0,{'env':_0x38a78d,'type':_0x303db0}),_0x19aab3=!![];}}if(_0x19aab3||this['_pending']['size']>0x0)this[_0x14dce5(0xed)]();}finally{this[_0x14dce5(0x51f)]=![];}}async[_0xf20b8f(0x25a)](_0x21cb73,_0x1dd8c3){const _0x36dbe8=_0xf20b8f,_0x159397=await this[_0x36dbe8(0x6ff)][_0x36dbe8(0x7e8)](_0x21cb73),_0x248c60=_0x21cb73+'\x00'+_0x1dd8c3;!this['_cursors'][_0x36dbe8(0x614)](_0x248c60)&&(!this[_0x36dbe8(0x41b)][_0x36dbe8(0x614)](_0x21cb73)&&(_0x159397[_0x36dbe8(0x6ae)](),this[_0x36dbe8(0x41b)][_0x36dbe8(0x48c)](_0x21cb73,_0x159397[_0x36dbe8(0x41d)]()||0x0)),this['_cursors'][_0x36dbe8(0x48c)](_0x248c60,this[_0x36dbe8(0x41b)][_0x36dbe8(0x1bc)](_0x21cb73)));const _0x467e82=this[_0x36dbe8(0x7b3)][_0x36dbe8(0x1bc)](_0x248c60),_0x1ba571=_0x159397[_0x36dbe8(0x41d)](_0x1dd8c3)||0x0;if(_0x1ba571<=_0x467e82)return![];const _0x3402a1=_0x467e82+this['_quantum'],_0x4c9756=Math[_0x36dbe8(0x165)](_0x1ba571,_0x3402a1),_0x3deefa=_0x1a743c[_0x36dbe8(0x671)]?_0x1a743c['now']():0x0,_0x3dfc53=Array[_0x36dbe8(0x295)](_0x159397[_0x36dbe8(0xe4)](_0x1dd8c3,_0x467e82+0x1,_0x4c9756));let _0x44259b=_0x467e82;for(const _0x5cb845 of _0x3dfc53){const {clock:_0x5948d6,key:_0x5b8805,action:_0x21eb24,origin:_0x3e8ead}=_0x5cb845;if(_0x5948d6>_0x44259b)_0x44259b=_0x5948d6;if(_0x5b8805==null)continue;if(this[_0x36dbe8(0x598)][_0x36dbe8(0x614)](this['_dedupeKey'](_0x21cb73,_0x1dd8c3,_0x5b8805,_0x5948d6)))continue;if(!this[_0x36dbe8(0x74b)](_0x21cb73,_0x1dd8c3,_0x5b8805,_0x5948d6))continue;let _0x11c781,_0x504a6c;if(_0x21eb24===_0x249857[_0x36dbe8(0x221)])_0x11c781=_0x36dbe8(0x4d2),_0x504a6c=null;else{const _0x128b70=_0x159397[_0x36dbe8(0x1bc)](_0x1dd8c3,_0x5b8805);_0x128b70==null?(_0x11c781=_0x36dbe8(0x4d2),_0x504a6c=null):(_0x11c781=_0x36dbe8(0x59b),_0x504a6c=_0x128b70);}this['emit'](_0x36dbe8(0xd0),{'env':_0x21cb73,'type':_0x1dd8c3,'key':_0x5b8805,'op':_0x11c781,'clock':_0x5948d6,'origin':_0x3e8ead,'value':_0x504a6c});}if(_0x1a743c[_0x36dbe8(0x671)])_0x1a743c[_0x36dbe8(0x5ee)]('feed:'+_0x21cb73+':'+_0x1dd8c3,_0x1a743c[_0x36dbe8(0x772)]()-_0x3deefa,'n='+_0x3dfc53[_0x36dbe8(0x2a9)]);return this['_cursors'][_0x36dbe8(0x48c)](_0x248c60,Math[_0x36dbe8(0x380)](_0x44259b,_0x4c9756)),_0x159397[_0x36dbe8(0x41d)](_0x1dd8c3)>_0x4c9756;}['status'](){const _0x1c38c5=_0xf20b8f;return{'started':this['_started'],'quantum':this['_quantum'],'flushDebounce':this[_0x1c38c5(0x16e)],'cursors':Object[_0x1c38c5(0x4af)]([...this[_0x1c38c5(0x7b3)][_0x1c38c5(0x2d3)]()]['map'](([_0x1af646,_0xa2b835])=>[_0x1af646[_0x1c38c5(0x782)]('\x00',':'),_0xa2b835])),'pending':this[_0x1c38c5(0x6d9)][_0x1c38c5(0x74f)],'seen':this['_seen'][_0x1c38c5(0x74f)]};}}return _0x4ee141[_0xf20b8f(0x52e)]=_0x18ba0c,okdbChangefeed={'OKDBChangefeed':_0x4ee141},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x3fb01e=_0x431d06;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x7246a2}=requireOkdbEnums(),_0x6bb3e3=new Set([_0x7246a2[_0x3fb01e(0x67a)],_0x7246a2[_0x3fb01e(0xc0)],_0x7246a2[_0x3fb01e(0x3bc)]]),{ENGINE_EVENTS:_0x46ec67}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x377f68}=requireEnums(),{QUEUE_EVENTS:_0x4b5702}=requireOkdbQueueValidate(),_0x1bc75e=Object[_0x3fb01e(0x4ee)](_0x7246a2),_0x268afb=Object[_0x3fb01e(0x4ee)](_0x46ec67)[_0x3fb01e(0x1d9)](_0x167062=>_0x3fb01e(0x3b7)+_0x167062),_0x583a6c=Object['values'](_0x377f68),_0x5b1eba=Object[_0x3fb01e(0x4ee)](_0x4b5702),_0x10af3d=[_0x3fb01e(0x57e),'processor:progress',_0x3fb01e(0x6d1),_0x3fb01e(0x3a0),'processor:resumed','processor:retry'],_0x591f50=[..._0x1bc75e,..._0x268afb,..._0x583a6c,..._0x5b1eba,..._0x10af3d,_0x3fb01e(0x745)],_0x4af981=new Set(_0x591f50),_0x16fd81=new Set([_0x7246a2[_0x3fb01e(0x67a)],_0x7246a2['ITEM_UPDATE'],_0x7246a2['ITEM_REMOVE'],_0x7246a2[_0x3fb01e(0xe3)],_0x7246a2[_0x3fb01e(0x631)],_0x7246a2[_0x3fb01e(0x54c)],_0x7246a2[_0x3fb01e(0x3ba)],_0x7246a2[_0x3fb01e(0x76f)],_0x377f68['INDEXER_DOC_DONE'],_0x377f68['INDEXER_DOC_FAILED'],_0x377f68[_0x3fb01e(0x1dd)],_0x377f68[_0x3fb01e(0x682)],_0x3fb01e(0x5f1)]),_0x46db4b=_0x591f50['filter'](_0x371da7=>_0x371da7===_0x3fb01e(0x745)||!_0x16fd81[_0x3fb01e(0x614)](_0x371da7)),_0x70e5e=0x14,_0x260e27=0xc8;class _0x7a9c60{constructor(_0x58c33a,_0x53f00f={}){const _0x446c63=_0x3fb01e;this[_0x446c63(0x6ff)]=_0x58c33a,this[_0x446c63(0x79c)]=_0x53f00f['maxConnections']??_0x70e5e,this[_0x446c63(0x18b)]=_0x53f00f[_0x446c63(0x700)]??_0x260e27,this['_connections']=new Set(),this[_0x446c63(0x459)]=[],this[_0x446c63(0x2d6)]=[],this[_0x446c63(0x134)]=null,this[_0x446c63(0x6d5)]=![],this[_0x446c63(0x5ad)]=null,this[_0x446c63(0x4b1)]=null;}[_0x3fb01e(0x131)](){const _0x17467e=_0x3fb01e;if(this[_0x17467e(0x6d5)])return;this['_attached']=!![];const {okdb:_0x5e5849}=this;this[_0x17467e(0x134)]=_0x5e5849['log'][_0x17467e(0x131)](_0x3f99dc=>this[_0x17467e(0x7e5)](_0x17467e(0x745),_0x3f99dc));for(const _0x1be165 of _0x591f50){if(_0x1be165===_0x17467e(0x745))continue;const _0x15406b=_0x6bb3e3[_0x17467e(0x614)](_0x1be165),_0x311b02=_0x1c64b9=>{const _0x127f7a=_0x17467e;if(_0x15406b&&this[_0x127f7a(0x5ad)])return;this[_0x127f7a(0x7e5)](_0x1be165,_0x1c64b9??{});};_0x5e5849['events']['on'](_0x1be165,_0x311b02),this['_listeners'][_0x17467e(0x540)]({'event':_0x1be165,'handler':_0x311b02});}this[_0x17467e(0x2c7)]=()=>this[_0x17467e(0x62a)](),_0x5e5849[_0x17467e(0x6bf)]['once'](_0x7246a2[_0x17467e(0x270)],this[_0x17467e(0x2c7)]);}['detach'](){const _0x4a32e9=_0x3fb01e;if(!this[_0x4a32e9(0x6d5)])return;if(this[_0x4a32e9(0x2c7)]){try{this[_0x4a32e9(0x6ff)][_0x4a32e9(0x6bf)][_0x4a32e9(0x4fc)](_0x7246a2[_0x4a32e9(0x270)],this[_0x4a32e9(0x2c7)]);}catch{}this[_0x4a32e9(0x2c7)]=null;}this['_detachLog']?.(),this[_0x4a32e9(0x134)]=null;for(const {event:_0x37b86c,handler:_0x506b43}of this['_listeners']){try{this[_0x4a32e9(0x6ff)][_0x4a32e9(0x6bf)][_0x4a32e9(0x4fc)](_0x37b86c,_0x506b43);}catch{}}this[_0x4a32e9(0x2d6)]=[];for(const _0x563ae6 of this[_0x4a32e9(0x22d)]){try{_0x563ae6[_0x4a32e9(0x498)]?.();}catch{}}this[_0x4a32e9(0x22d)][_0x4a32e9(0x544)](),this[_0x4a32e9(0x2a6)](),this['_attached']=![];}[_0x3fb01e(0x7a5)](_0x5d6fed){const _0x291717=_0x3fb01e;if(!_0x5d6fed||this['_feed']===_0x5d6fed)return;this['detachFeed'](),this[_0x291717(0x5ad)]=_0x5d6fed,this[_0x291717(0x4b1)]=_0x594371=>{const _0x57a978=_0x291717;if(!_0x594371)return;const _0x5ea588=_0x594371['op']===_0x57a978(0x4d2)?_0x7246a2[_0x57a978(0x3bc)]:_0x7246a2[_0x57a978(0xc0)];this[_0x57a978(0x7e5)](_0x5ea588,_0x594371);},_0x5d6fed['on']('change',this[_0x291717(0x4b1)]);}[_0x3fb01e(0x2a6)](){const _0x49898a=_0x3fb01e;if(this[_0x49898a(0x5ad)]&&this[_0x49898a(0x4b1)])try{this[_0x49898a(0x5ad)][_0x49898a(0x4fc)](_0x49898a(0xd0),this[_0x49898a(0x4b1)]);}catch{}this[_0x49898a(0x5ad)]=null,this[_0x49898a(0x4b1)]=null;}['pushEphemeral'](_0x285168,_0x2f813d){const _0x512790=_0x3fb01e;if(!_0x4af981[_0x512790(0x614)](_0x285168))return;this[_0x512790(0x7e5)](_0x285168,_0x2f813d??{});}[_0x3fb01e(0x72a)](_0x1faeb1,_0xf6e60,_0x566211){const _0x4bb170=_0x3fb01e;if(this[_0x4bb170(0x22d)]['size']>=this[_0x4bb170(0x79c)])return _0xf6e60(_0x4bb170(0x283),{'message':_0x4bb170(0x4f9),'code':'RELAY_FULL'}),()=>{};const _0x1dd229=this[_0x4bb170(0x2df)](_0x1faeb1),_0x1d884b={'send':_0xf6e60,'filter':_0x1dd229,'close':_0x566211??null};this[_0x4bb170(0x22d)][_0x4bb170(0x3a8)](_0x1d884b);for(const {event:_0x5d4782,data:_0xda6492}of this[_0x4bb170(0x459)]){if(_0x1dd229[_0x4bb170(0x614)](_0x5d4782))try{_0xf6e60(_0x5d4782,_0xda6492);}catch{}}return()=>this[_0x4bb170(0x22d)]['delete'](_0x1d884b);}[_0x3fb01e(0x4c0)](){const _0x238b40=_0x3fb01e;if(this[_0x238b40(0x5ad)])return this[_0x238b40(0x5ad)];const {OKDBChangefeed:_0x19f251}=requireOkdbChangefeed(),_0x5a019f=new _0x19f251(this['okdb']);_0x5a019f['start'](),this[_0x238b40(0x7a5)](_0x5a019f);if(this[_0x238b40(0x6ff)]&&!this[_0x238b40(0x6ff)]['_changefeed'])this[_0x238b40(0x6ff)][_0x238b40(0x1ca)]=_0x5a019f;return this['_feed'];}get['connectionCount'](){const _0x404fec=_0x3fb01e;return this[_0x404fec(0x22d)]['size'];}[_0x3fb01e(0x39b)](){const _0x33946b=_0x3fb01e;return{'connections':this[_0x33946b(0x4a8)],'bufferSize':this[_0x33946b(0x459)]['length'],'attached':this[_0x33946b(0x6d5)],'allEvents':_0x591f50[_0x33946b(0x2a9)],'defaultEvents':_0x46db4b['length']};}static get['ALL_EVENTS'](){return _0x591f50;}static get['DEFAULT_EVENTS'](){return _0x46db4b;}static get[_0x3fb01e(0x4fa)](){return[..._0x16fd81];}[_0x3fb01e(0x2df)](_0x33dc52){const _0x1f0e5b=_0x3fb01e;if(!_0x33dc52||!_0x33dc52[_0x1f0e5b(0x2a9)])return new Set(_0x46db4b);const _0x57ec33=_0x33dc52['filter'](_0x5a1b37=>_0x4af981['has'](_0x5a1b37));return new Set(_0x57ec33['length']?_0x57ec33:_0x46db4b);}[_0x3fb01e(0x7e5)](_0x5310fc,_0x53a671){const _0x409956=_0x3fb01e,_0x3f2d78={..._0x53a671,'_ts':_0x53a671?.['_ts']??_0x53a671?.['ts']??Date['now']()};this[_0x409956(0x459)][_0x409956(0x540)]({'event':_0x5310fc,'data':_0x3f2d78});if(this[_0x409956(0x459)][_0x409956(0x2a9)]>this[_0x409956(0x18b)])this[_0x409956(0x459)][_0x409956(0x40d)]();for(const _0x53a5c8 of this['_connections']){if(_0x53a5c8[_0x409956(0x587)][_0x409956(0x614)](_0x5310fc))try{_0x53a5c8[_0x409956(0x4b4)](_0x5310fc,_0x3f2d78);}catch{}}}}return okdbRelay=_0x7a9c60,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x3070f3=_0x431d06;if(hasRequiredLib)return lib[_0x3070f3(0x1ad)];return hasRequiredLib=0x1,function(_0x461709){const _0xa6e0f1=_0x3070f3,_0x4a42c6=require$$0$6,{load:_0x37f11e}=require$$1$1,_0x337fe4=requireBridge(),_0x17a6ff=requireWritebatch(),{Pumper:_0x27ea6a}=requirePump(),{OKDBEnv:_0x3b84bf,HIGH_SENTINEL:_0x167762}=requireEnv(),{reclass:_0x501b0e,NotImplementedNative:_0x4dc49f,OKDBError:_0x44709f,optionsArg:_0x5197c2,invalidArgument:_0x57beb4}=requireErrors(),{notImplemented:_0x25a41d}=requireUnsupported(),{OKDBHttp:_0x8f34de}=requireHttp(),{OKDBFts:_0x5ab8b9}=requireFts(),{OKDBEmbeddings:_0x4731ea}=requireEmbeddings(),{OKDBAuth:_0x122565}=requireAuth(),{OKDBSync:_0x1681fc}=requireSync(),{OKDBMigrate:_0x33ab8b}=requireMigrate(),{OKDBFunctions:_0x39c050}=requireFunctions(),{OKDBMcp:_0x253dff}=requireMcp(),{OKDBEngines:_0x384e16,OKDBPipelines:_0x37c9cc}=requireEngines(),{makeMeta:_0xccbe3c,makeLicenses:_0x1da542,makeLicenseChecker:_0x1d99b8,makeProcesses:_0x3de0e3}=requireSys();let _0x164851=null;function _0x37a7b3(_0x23c942){const _0xcb04af=_0x41a2;if(!_0x164851){const {Unpackr:_0x242014}=require$$18;_0x164851=new _0x242014({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x164851[_0xcb04af(0x299)](_0x23c942);}let _0x470502=null;function _0x1e2817(_0x4ba62d,_0x556e32){const _0x2766f8=_0x41a2;if(!_0x470502){const {Unpackr:_0x1e4521}=require$$18;_0x470502=new _0x1e4521({'copyBuffers':!![]});}return _0x470502[_0x2766f8(0x299)](_0x4ba62d,_0x556e32);}const {encodeKey:_0x54754f,KEY_BUF_SIZE:_0x201268,NO_FAST:_0x32105a}=requireKeyenc(),_0x2f1c5a=0x40*0x400,_0x4d8115=0x4*0x400*0x400;function _0x50da95(_0x2f0098,_0x164cbb){const _0x417a95=_0x41a2,_0x1e34d1=_0x2f0098[0x2],_0x1ffb49=_0x1e34d1?(_0x2f0098[_0x417a95(0x2a9)]-0x3)/Math[_0x417a95(0x5dc)](_0x1e34d1):0x0,_0x537854=new Array(_0x1ffb49);let _0x13ab4b=0x3;if(_0x1e34d1===0x2){for(let _0x3e8952=0x0;_0x3e8952<_0x1ffb49;_0x3e8952++,_0x13ab4b+=0x2)_0x537854[_0x3e8952]={'key':_0x2f0098[_0x13ab4b],'value':_0x2f0098[_0x13ab4b+0x1]};}else{if(_0x1e34d1===0x3){for(let _0x19002a=0x0;_0x19002a<_0x1ffb49;_0x19002a++,_0x13ab4b+=0x3)_0x537854[_0x19002a]={'key':_0x2f0098[_0x13ab4b],'value':_0x2f0098[_0x13ab4b+0x1],'version':_0x2f0098[_0x13ab4b+0x2]};}else{if(_0x1e34d1===-0x2){for(let _0x24fd8e=0x0;_0x24fd8e<_0x1ffb49;_0x24fd8e++,_0x13ab4b+=0x2)_0x537854[_0x24fd8e]={'clock':_0x2f0098[_0x13ab4b],..._0x2f0098[_0x13ab4b+0x1]};}else{if(_0x1e34d1===0x4){for(let _0x538e74=0x0;_0x538e74<_0x1ffb49;_0x538e74++,_0x13ab4b+=0x4)_0x537854[_0x538e74]={'key':_0x2f0098[_0x13ab4b],'value':_0x2f0098[_0x13ab4b+0x1],'version':_0x2f0098[_0x13ab4b+0x2],'indexKey':_0x2f0098[_0x13ab4b+0x3]};}else{if(_0x1ffb49)throw new Error(_0x417a95(0x522)+_0x1e34d1);}}}}return _0x164cbb?[_0x2f0098[0x0],_0x537854,_0x2f0098[0x1]]:_0x537854;}let _0x3d4619=null;function _0x23f783(_0x30d064,_0x9b33a9,_0x3bbd7e){const _0x425a4b=_0x41a2;if(!_0x3d4619)_0x3d4619=requireDist()['readKey'];const _0x6b174e=new DataView(_0x30d064[_0x425a4b(0x3a4)],_0x30d064[_0x425a4b(0x431)],_0x9b33a9),_0x52a5c7=_0x6b174e[_0x425a4b(0x247)](0x10,!![]),_0x3072a6=new Array(_0x52a5c7);let _0x14dcb6=0x14;for(let _0x428fcc=0x0;_0x428fcc<_0x52a5c7;_0x428fcc++){const _0x7b6af7=_0x30d064[_0x14dcb6]|_0x30d064[_0x14dcb6+0x1]<<0x8;_0x14dcb6+=0x2,_0x3072a6[_0x428fcc]=_0x3d4619(_0x30d064,_0x14dcb6,_0x14dcb6+_0x7b6af7),_0x14dcb6+=_0x7b6af7;}return _0x3bbd7e?[_0x6b174e[_0x425a4b(0x3c0)](0x0,!![]),_0x3072a6,_0x6b174e[_0x425a4b(0x3c0)](0x8,!![])]:_0x3072a6;}const _0x2aca18=requireOkdbLogger(),_0x44ee4d=requireOkdbPlugins(),{OKDB_STATE:_0x1a1e5a,EVENTS:_0x1e4ac7}=requireOkdbEnums(),_0x150068=requireStatics();let _0x19875f=null,_0x197fda=![],_0x397f85=0x1;const _0x466f3b=new Map(),_0x518393=new Set([_0xa6e0f1(0x2db),'EMBED_PENDING']),_0x41bc4e=_0x42dea6=>!!_0x42dea6&&_0x518393[_0xa6e0f1(0x614)](_0x42dea6[_0xa6e0f1(0x30f)]),_0x474c86=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x3c5c78(){const _0x396dfb=_0xa6e0f1;!_0x197fda&&(_0x44fdcd()[_0x396dfb(0x72e)](_0x337fe4[_0x396dfb(0x765)]),_0x17a6ff[_0x396dfb(0x353)](_0x44fdcd()),_0x197fda=!![]);}function _0x44fdcd(){if(!_0x19875f)_0x19875f=_0x37f11e();return _0x19875f;}class _0x1d1fdf extends Map{constructor(_0x33ef77){const _0x384e86=_0xa6e0f1;super(),this[_0x384e86(0x281)]=_0x33ef77;}[_0xa6e0f1(0x2da)](){const _0x1acd77=_0xa6e0f1,_0x1b5033=this[_0x1acd77(0x281)];if(!_0x1b5033['_isOpen'])return;let _0x5a0fa9;try{_0x5a0fa9=_0x1b5033[_0x1acd77(0x722)]('db',null,_0x1acd77(0x437),[],![]);}catch{return;}for(const _0x509149 of _0x5a0fa9)if(!super[_0x1acd77(0x614)](_0x509149)&&_0x1b5033['_call']('db',null,'hasEnv',[_0x509149],![]))_0x1b5033[_0x1acd77(0x7d0)](_0x509149);}[_0xa6e0f1(0x1bc)](_0x1eba33){const _0xa5e8e8=_0xa6e0f1,_0x5ead63=super[_0xa5e8e8(0x1bc)](_0x1eba33);if(_0x5ead63!==undefined||typeof _0x1eba33!==_0xa5e8e8(0x229))return _0x5ead63;const _0x1c7281=this[_0xa5e8e8(0x281)];if(_0x1eba33===_0xa5e8e8(0xc5))return _0x1c7281['_isOpen']?_0x1c7281[_0xa5e8e8(0x4e7)]['_statusEnv']??undefined:undefined;if(_0x1c7281[_0xa5e8e8(0x2ab)]&&_0x1c7281[_0xa5e8e8(0x722)]('db',null,'hasEnv',[_0x1eba33],![]))return _0x1c7281[_0xa5e8e8(0x7d0)](_0x1eba33);if(_0x1c7281[_0xa5e8e8(0x2ab)]&&typeof _0x1eba33===_0xa5e8e8(0x229)&&!_0x1eba33[_0xa5e8e8(0x217)]('~')){_0x1c7281['_call']('db',null,_0xa5e8e8(0x5f4),[],![]);if(_0x1c7281[_0xa5e8e8(0x722)]('db',null,'hasEnv',[_0x1eba33],![]))return _0x1c7281[_0xa5e8e8(0x7d0)](_0x1eba33);}return undefined;}[_0xa6e0f1(0x614)](_0x461621){const _0x408c30=_0xa6e0f1;return this[_0x408c30(0x1bc)](_0x461621)!==undefined;}get['size'](){const _0x8d2bf=_0xa6e0f1;return this[_0x8d2bf(0x2da)](),super['size'];}[_0xa6e0f1(0x5e1)](){const _0x52d95e=_0xa6e0f1;return this[_0x52d95e(0x2da)](),super['keys']();}[_0xa6e0f1(0x4ee)](){const _0x2e07da=_0xa6e0f1;return this[_0x2e07da(0x2da)](),super[_0x2e07da(0x4ee)]();}[_0xa6e0f1(0x2d3)](){const _0xbca624=_0xa6e0f1;return this[_0xbca624(0x2da)](),super[_0xbca624(0x2d3)]();}['forEach'](_0x88d2ee,_0x57f560){const _0x112c1a=_0xa6e0f1;return this[_0x112c1a(0x2da)](),super[_0x112c1a(0x64d)](_0x88d2ee,_0x57f560);}[Symbol[_0xa6e0f1(0x6b7)]](){const _0x19161d=_0xa6e0f1;return this[_0x19161d(0x2da)](),super[Symbol['iterator']]();}}class _0x5c3f5d{constructor(_0x643995,_0x5efd7e={}){const _0x2c3d6d=_0xa6e0f1,_0x544307=_0x44fdcd();this[_0x2c3d6d(0xe7)]=_0x643995,this['_uid']=_0x397f85++,this[_0x2c3d6d(0x63a)]='db'+this[_0x2c3d6d(0x164)],this[_0x2c3d6d(0x2f0)]={..._0x150068[_0x2c3d6d(0x19a)],..._0x5efd7e,'auth':_0x5efd7e[_0x2c3d6d(0x642)]?{..._0x5efd7e['auth']}:undefined,'lmdb':{..._0x5efd7e[_0x2c3d6d(0x761)]||{}}},this[_0x2c3d6d(0x6bf)]=new _0x4a42c6(),this[_0x2c3d6d(0x6bf)][_0x2c3d6d(0x3c9)](0x0),this[_0x2c3d6d(0x36d)]=new Set(),this[_0x2c3d6d(0x6bf)]['on'](_0x2c3d6d(0x2b7),_0x2a7f05=>this[_0x2c3d6d(0x70d)](_0x2a7f05)),this[_0x2c3d6d(0x745)]=new _0x2aca18(this),this[_0x2c3d6d(0x745)][_0x2c3d6d(0x52b)](),_0x337fe4[_0x2c3d6d(0x4df)](this[_0x2c3d6d(0x63a)],{'_deliver':(_0x517703,_0x8336bb)=>this[_0x2c3d6d(0x60b)](_0x517703,_0x8336bb),'_log':_0x37eed5=>{const _0x52ab76=_0x2c3d6d;if(this[_0x52ab76(0x6a1)])this[_0x52ab76(0x6a1)][_0x52ab76(0x540)](_0x37eed5);const _0x3c7d5e=_0x37eed5&&_0x37eed5[_0x52ab76(0x3dd)];if(_0x3c7d5e&&Object['prototype']['hasOwnProperty']['call'](this[_0x52ab76(0x745)],_0x3c7d5e)&&typeof this['log'][_0x3c7d5e]===_0x52ab76(0x7c4)){const _0x16acc9=_0x37eed5[_0x52ab76(0x1fb)];return this['log'][_0x3c7d5e](_0x37eed5['msg'],{..._0x37eed5[_0x52ab76(0x7a9)]||{},..._0x16acc9&&typeof _0x16acc9==='object'?_0x16acc9:{}});}return this[_0x52ab76(0x745)][_0x52ab76(0x38b)](_0x37eed5);}}),_0x3c5c78();try{const _0x126c40={};if(typeof _0x2c3d6d(0x4de)===_0x2c3d6d(0x12f)||_0x2c3d6d(0x4de)!=='true');const _0x5c92f5={..._0x5efd7e,'_clusterWorker':require(_0x2c3d6d(0x56c))[_0x2c3d6d(0x79d)],..._0x126c40};this[_0x2c3d6d(0x1c7)]={'instance':null,'envs':new Map()};typeof _0x5efd7e[_0x2c3d6d(0x35a)]===_0x2c3d6d(0x7c4)&&(this['_keyFns'][_0x2c3d6d(0x314)]=_0x5efd7e[_0x2c3d6d(0x35a)],delete _0x5c92f5[_0x2c3d6d(0x35a)]);if(_0x5efd7e['encryptionKeys']&&typeof _0x5efd7e[_0x2c3d6d(0x713)]===_0x2c3d6d(0x4ed)){for(const [_0x27434f,_0x832624]of Object[_0x2c3d6d(0x2d3)](_0x5efd7e[_0x2c3d6d(0x713)]))this['_keyFns'][_0x2c3d6d(0x6c8)][_0x2c3d6d(0x48c)](_0x27434f,_0x832624);}delete _0x5c92f5[_0x2c3d6d(0x713)],this['_native']=new _0x544307['Native'](_0x643995,_0x5c92f5,this[_0x2c3d6d(0x63a)]);}catch(_0x3d6999){_0x337fe4[_0x2c3d6d(0x278)](this[_0x2c3d6d(0x63a)]);throw _0x501b0e(_0x3d6999);}this[_0x2c3d6d(0x1a2)]=_0x1a1e5a[_0x2c3d6d(0x673)],this[_0x2c3d6d(0x2ab)]=![],this[_0x2c3d6d(0x446)]=new _0x1d1fdf(this),this[_0x2c3d6d(0x6bc)]=new _0x27ea6a({'pump':()=>this[_0x2c3d6d(0x66d)]['pump']()}),this[_0x2c3d6d(0x13c)]=new _0x17a6ff[(_0x2c3d6d(0x4cf))](this),this[_0x2c3d6d(0x6bc)][_0x2c3d6d(0x53f)]=()=>_0x337fe4[_0x2c3d6d(0x749)](),_0x337fe4[_0x2c3d6d(0x38d)](()=>this[_0x2c3d6d(0x6bc)][_0x2c3d6d(0x4c1)](),this),_0x466f3b[_0x2c3d6d(0x48c)](this['_uid'],this),this[_0x2c3d6d(0x533)]={},_0x337fe4[_0x2c3d6d(0x675)](this),this[_0x2c3d6d(0x448)]=new _0x5ab8b9(this),this[_0x2c3d6d(0x1e7)]=new _0x4731ea(this),this[_0x2c3d6d(0x7bc)]=new _0x384e16(this,null,null),this[_0x2c3d6d(0x251)]=new _0x37c9cc(this,null),this[_0x2c3d6d(0x7a9)]=_0xccbe3c(this),this['licenses']=_0x1da542(this),this[_0x2c3d6d(0x643)]=_0x1d99b8(this),this['processes']=_0x3de0e3(this),this[_0x2c3d6d(0x7b9)]=_0x1b2906(this),this['plugins']=new _0x44ee4d(this),this[_0x2c3d6d(0x1c8)]=new _0x8f34de(this),this['sync']=new _0x1681fc(this),this[_0x2c3d6d(0x642)]=new _0x122565(this),this[_0x2c3d6d(0x2f9)]=new _0x39c050(this,null),this['mcp']=new _0x253dff(this),this[_0x2c3d6d(0x17b)]=_0x5efd7e&&_0x5efd7e[_0x2c3d6d(0x17b)]===![]?null:_0x25a41d(_0x2c3d6d(0x17b)),this[_0x2c3d6d(0x7d5)]=_0x25a41d(_0x2c3d6d(0x7d5)),this[_0x2c3d6d(0x14a)]=new _0x33ab8b(this);}[_0xa6e0f1(0x722)](_0x1da254,_0x26d84e,_0x1de105,_0x488f76,_0x328b96=!![]){const _0x458bda=_0xa6e0f1;if(_0x328b96&&this[_0x458bda(0x13c)]&&this['_wb'][_0x458bda(0x4f3)][_0x458bda(0x2a9)])this['_wb'][_0x458bda(0x7dd)]();try{return this[_0x458bda(0x66d)][_0x458bda(0x7cd)](_0x1da254,_0x26d84e,_0x1de105,_0x488f76);}catch(_0x3e1b7e){throw _0x501b0e(_0x3e1b7e);}finally{if(_0x328b96)this['_pumper'][_0x458bda(0x4c1)]();}}[_0xa6e0f1(0x1ab)](_0x5f8e46,_0x5a9435,_0xd02748,_0x27469d){const _0x1945cd=_0xa6e0f1;let _0x6e10e8;try{_0x6e10e8=this[_0x1945cd(0x66d)][_0x1945cd(0x36f)](_0x5f8e46,_0x5a9435,_0xd02748,_0x27469d);}catch(_0x2a9b25){throw _0x501b0e(_0x2a9b25);}return _0x6e10e8 instanceof Uint8Array?_0x37a7b3(_0x6e10e8):_0x6e10e8[0x0];}[_0xa6e0f1(0x63c)](_0x3b5538){const _0x2a0733=_0xa6e0f1;let _0x41cdef=this[_0x2a0733(0x375)];if(_0x41cdef&&_0x3b5538<=_0x41cdef[_0x2a0733(0x2a9)])return _0x41cdef;let _0x37b759=_0x41cdef?_0x41cdef[_0x2a0733(0x2a9)]:_0x2f1c5a;while(_0x37b759<_0x3b5538)_0x37b759*=0x2;if(_0x37b759>_0x4d8115)return _0x41cdef;return _0x41cdef=this['_rbuf']=Buffer['allocUnsafeSlow'](_0x37b759),this[_0x2a0733(0x66d)]['setReadBuffer'](_0x41cdef),_0x41cdef;}[_0xa6e0f1(0x7e2)](_0x226b22,_0x8b11d3,_0xdd4459){const _0x1378ab=_0xa6e0f1;if(!this[_0x1378ab(0x375)])this[_0x1378ab(0x63c)](0x0);const _0x550ee0=this[_0x1378ab(0x66d)][_0x1378ab(0x618)](_0x226b22,_0x8b11d3,_0xdd4459);if(typeof _0x550ee0===_0x1378ab(0x1ce))return _0x1e2817(this[_0x1378ab(0x375)],_0x550ee0);if(_0x550ee0===undefined||_0x550ee0===null)return _0x550ee0;return this[_0x1378ab(0x63c)](_0x550ee0[_0x1378ab(0x2a9)]),_0x1e2817(_0x550ee0);}[_0xa6e0f1(0x42e)](_0x519097,_0x18d08a,_0x28e16a){const _0x5277f1=_0xa6e0f1;let _0x167e6b=this['_kbuf'];if(!_0x167e6b){_0x167e6b=this['_kbuf']=Buffer[_0x5277f1(0x65e)](_0x201268),this[_0x5277f1(0x66d)][_0x5277f1(0x7ce)](_0x167e6b),this['_tids']=new Map();if(!this[_0x5277f1(0x375)])this[_0x5277f1(0x63c)](0x0);}const _0x13e1d4=_0x54754f(_0x28e16a,_0x167e6b);if(_0x13e1d4<0x0)return _0x32105a;let _0x110206=this['_tids']['get'](_0x519097);if(_0x110206===undefined)this[_0x5277f1(0x46b)]['set'](_0x519097,_0x110206=new Map());let _0x346fa6=_0x110206[_0x5277f1(0x1bc)](_0x18d08a);if(_0x346fa6===undefined)_0x110206[_0x5277f1(0x48c)](_0x18d08a,_0x346fa6=this[_0x5277f1(0x66d)][_0x5277f1(0x223)](_0x519097,_0x18d08a));if(_0x346fa6<0x0)return _0x32105a;const _0x4a1032=this[_0x5277f1(0x66d)][_0x5277f1(0x3e0)](_0x346fa6,_0x13e1d4);if(typeof _0x4a1032===_0x5277f1(0x1ce))return _0x1e2817(this[_0x5277f1(0x375)],_0x4a1032);if(_0x4a1032===undefined||_0x4a1032===null)return _0x4a1032;return this[_0x5277f1(0x63c)](_0x4a1032[_0x5277f1(0x2a9)]),_0x1e2817(_0x4a1032);}['_callRows'](_0x32fb71,_0x2f32f2,_0x5246fd){const _0x113faa=_0xa6e0f1;if(!this[_0x113faa(0x375)])this[_0x113faa(0x63c)](0x0);let _0x2d0fdb;try{_0x2d0fdb=this[_0x113faa(0x66d)][_0x113faa(0x14d)](_0x32fb71,_0x2f32f2,_0x5246fd);}catch(_0x27e073){throw _0x501b0e(_0x27e073);}const _0x35ff61=_0x2f32f2===_0x113faa(0x630),_0x23e089=_0x35ff61?_0x5246fd[0x1]:_0x2f32f2;let _0x53fac3=this[_0x113faa(0x375)],_0x5223fe=_0x2d0fdb;if(_0x2d0fdb instanceof Uint8Array)this['_readBuf'](_0x2d0fdb['length']),_0x53fac3=_0x2d0fdb,_0x5223fe=_0x2d0fdb['length'];else{if(typeof _0x2d0fdb!==_0x113faa(0x1ce))return _0x2d0fdb[0x0];}if(_0x23e089===_0x113faa(0x677))return _0x23f783(_0x53fac3,_0x5223fe,_0x35ff61);if(_0x23e089===_0x113faa(0x63b))return _0x1e2817(_0x53fac3,_0x5223fe);return _0x50da95(_0x1e2817(_0x53fac3,_0x5223fe),_0x35ff61);}[_0xa6e0f1(0x22c)](_0x227ed4,_0x4825d7,_0x2d418f,_0x3699d1,_0x201c1d=!![],_0x3564ff=!![]){const _0x138e50=_0xa6e0f1,_0x3c6007=()=>this['_macro'](()=>this['_call'](_0x227ed4,_0x4825d7,_0x2d418f,_0x3699d1,_0x201c1d));if(!_0x3564ff)return _0x3c6007();return this[_0x138e50(0x1b5)](_0x3c6007);}['_retryPending'](_0x3b338d){const _0x3b2f12=_0xa6e0f1;return _0x3b338d()[_0x3b2f12(0x603)](async _0x570724=>{const _0x6001ae=_0x3b2f12;if(!_0x41bc4e(_0x570724))throw _0x570724;const _0x2d815c=Date[_0x6001ae(0x772)]()+_0x474c86;let _0x1440ec=0x1;while(_0x41bc4e(_0x570724)&&Date[_0x6001ae(0x772)]()<_0x2d815c){await new Promise(_0xd5f253=>setTimeout(_0xd5f253,_0x1440ec)),_0x1440ec=Math[_0x6001ae(0x165)](_0x1440ec*0x2,0x14);try{return await _0x3b338d();}catch(_0x537dd5){_0x570724=_0x537dd5;}}throw _0x570724;});}['_settleRead'](_0x386970){const _0x4d118e=_0xa6e0f1;if(_0x337fe4[_0x4d118e(0x219)]())return Promise['resolve'](_0x386970);return new Promise(_0x44c7f1=>setImmediate(()=>_0x44c7f1(_0x386970)));}[_0xa6e0f1(0x550)](_0x44a516){const _0x14bb90=_0xa6e0f1;if(_0x337fe4[_0x14bb90(0x219)]())return Promise[_0x14bb90(0x54d)](_0x44a516);return this[_0x14bb90(0x38f)]()[_0x14bb90(0x583)](()=>_0x44a516);}[_0xa6e0f1(0x38f)](){return new Promise(_0x284059=>setImmediate(()=>{const _0x70f2fd=_0x41a2;let _0x564358;try{_0x564358=this[_0x70f2fd(0x66d)][_0x70f2fd(0x453)]();}catch{return _0x284059();}_0x17a6ff[_0x70f2fd(0x637)](_0x564358,_0x284059);}));}[_0xa6e0f1(0x46d)](_0x5e096c){return new Promise((_0x1f73fb,_0x2e78c6)=>setImmediate(()=>{try{_0x1f73fb(_0x5e096c());}catch(_0x2daf26){_0x2e78c6(_0x2daf26);}}));}[_0xa6e0f1(0x21f)](_0x85af04,_0x4fc420,_0x427f6e){return _0x546473(_0x85af04,_0x4fc420,_0x427f6e);}['_subscribeEvent'](_0x5abc97){const _0x1fbdde=_0xa6e0f1;if(typeof _0x5abc97!==_0x1fbdde(0x229)||this[_0x1fbdde(0x36d)][_0x1fbdde(0x614)](_0x5abc97)||_0x5abc97===_0x1fbdde(0x2b7)||_0x5abc97===_0x1fbdde(0x12c))return;this['_subscribed'][_0x1fbdde(0x3a8)](_0x5abc97);try{this['_native']['call']('events',null,_0x1fbdde(0x72a),[this['_key'],_0x5abc97]);}catch{}}[_0xa6e0f1(0x60b)](_0x3bdbd6,_0x17903d){const _0x3bc738=_0xa6e0f1;this[_0x3bc738(0x6bf)][_0x3bc738(0x36e)](_0x3bdbd6,_0x17903d);}async[_0xa6e0f1(0x3e7)](){const _0x3eda72=_0xa6e0f1,_0x204c11=this[_0x3eda72(0x1c7)];if(_0x204c11[_0x3eda72(0x314)])this['_setKey'](null,await _0x204c11[_0x3eda72(0x314)](null),!![]);for(const [_0x291c6a,_0x395314]of _0x204c11[_0x3eda72(0x6c8)])this[_0x3eda72(0x12d)](_0x291c6a,typeof _0x395314===_0x3eda72(0x7c4)?await _0x395314(_0x291c6a):_0x395314,typeof _0x395314===_0x3eda72(0x7c4));(_0x204c11[_0x3eda72(0x314)]||[..._0x204c11[_0x3eda72(0x6c8)][_0x3eda72(0x4ee)]()]['some'](_0x589ec4=>typeof _0x589ec4==='function'))&&!this[_0x3eda72(0x36a)]&&(this[_0x3eda72(0x36a)]=_0x20eac1=>{const _0x32ab93=_0x3eda72,_0x37b121=_0x20eac1&&_0x20eac1[_0x32ab93(0x3c4)]!=null?_0x20eac1[_0x32ab93(0x3c4)]:null,_0x58a746=_0x37b121==null?_0x204c11[_0x32ab93(0x314)]:_0x204c11[_0x32ab93(0x6c8)][_0x32ab93(0x1bc)](_0x37b121);if(typeof _0x58a746!=='function')return;Promise['resolve']()[_0x32ab93(0x583)](()=>_0x58a746(_0x37b121))[_0x32ab93(0x583)](_0x20a66e=>this['_setKey'](_0x37b121,_0x20a66e,!![]))[_0x32ab93(0x603)](_0x1a6b91=>this['log']['error'](_0x32ab93(0x10c)+(_0x1a6b91&&_0x1a6b91[_0x32ab93(0x18d)]),{'env':_0x37b121}));},this[_0x3eda72(0x6bf)]['on'](_0x3eda72(0x212),this['_keyListener']));}[_0xa6e0f1(0x12d)](_0x72b44b,_0x4cbd03,_0x464b65){const _0xb6c8d5=_0xa6e0f1;if(_0x4cbd03==null)throw new _0x44709f(_0xb6c8d5(0x4cb)+(_0x72b44b?_0xb6c8d5(0x660)+_0x72b44b+'\x22':'')+_0xb6c8d5(0x67d),_0xb6c8d5(0x144));this['_native'][_0xb6c8d5(0x7cd)]('db',null,_0xb6c8d5(0x7bf),[_0x72b44b,_0x4cbd03,!!_0x464b65]);}async[_0xa6e0f1(0x410)](_0x44534b){const _0x52c920=_0xa6e0f1;this[_0x52c920(0x187)]();const {env:env=null,to:_0x1b6d29}=_0x5197c2(_0x44534b),_0x49c82e=typeof _0x1b6d29===_0x52c920(0x7c4),_0x412760=_0x49c82e?await _0x1b6d29(env):_0x1b6d29;if(_0x412760==null)throw _0x57beb4(_0x52c920(0x2c4),_0x52c920(0x1f4),_0x412760);const _0x247b0f=this[_0x52c920(0x722)]('db',null,_0x52c920(0x410),[env,_0x412760,_0x49c82e]);if(_0x49c82e){if(env==null)this[_0x52c920(0x1c7)][_0x52c920(0x314)]=_0x1b6d29;else this[_0x52c920(0x1c7)][_0x52c920(0x6c8)][_0x52c920(0x48c)](env,_0x1b6d29);}return _0x247b0f;}async[_0xa6e0f1(0x242)](_0x468d71){const _0xd16cf8=_0xa6e0f1;this[_0xd16cf8(0x187)]();const _0x41137c=_0x5197c2(_0x468d71);if(!_0x41137c[_0xd16cf8(0x3c4)])throw _0x57beb4('reencrypt:\x20env',_0xd16cf8(0x15e),_0x41137c[_0xd16cf8(0x3c4)]);let _0xeabfa2=_0x41137c['to'];const _0x2f1f50=typeof _0xeabfa2==='function';if(_0x2f1f50)_0xeabfa2=await _0x41137c['to'](_0x41137c[_0xd16cf8(0x3c4)]);const _0x43dee3=await this[_0xd16cf8(0x46d)](()=>this[_0xd16cf8(0x722)]('db',null,_0xd16cf8(0x242),[_0x41137c[_0xd16cf8(0x3c4)],'to'in _0x41137c?_0xeabfa2:undefined,_0x2f1f50]));if(_0x2f1f50)this[_0xd16cf8(0x1c7)][_0xd16cf8(0x6c8)][_0xd16cf8(0x48c)](_0x41137c[_0xd16cf8(0x3c4)],_0x41137c['to']);return _0x43dee3;}async[_0xa6e0f1(0x4c4)](){const _0x3dc7e7=_0xa6e0f1;if(this[_0x3dc7e7(0x1a2)]===_0x1a1e5a[_0x3dc7e7(0x3a5)])return;if(this[_0x3dc7e7(0x1a2)]!==_0x1a1e5a[_0x3dc7e7(0x673)])throw new _0x44709f('Database\x20already\x20opened/closed',_0x3dc7e7(0x206),{'state':this[_0x3dc7e7(0x1a2)]});this[_0x3dc7e7(0x1a2)]=_0x1a1e5a[_0x3dc7e7(0xd3)],this[_0x3dc7e7(0x6a1)]=[];try{try{await this[_0x3dc7e7(0x3e7)](),await this['_macro'](()=>this['_native'][_0x3dc7e7(0x4c4)]());}catch(_0x28d6ff){throw _0x501b0e(_0x28d6ff);}}catch(_0x114721){this[_0x3dc7e7(0x1a2)]=_0x1a1e5a[_0x3dc7e7(0x742)],this[_0x3dc7e7(0x6a1)]=null,this[_0x3dc7e7(0x100)]();throw _0x114721;}this['_isOpen']=!![],this['state']=_0x1a1e5a[_0x3dc7e7(0x3a5)];try{this['_call']('db',null,_0x3dc7e7(0xf0),[this[_0x3dc7e7(0x4c5)][_0x3dc7e7(0x7bb)][_0x3dc7e7(0x1d9)](_0x4a6fb2=>_0x4a6fb2[_0x3dc7e7(0x554)]?.[_0x3dc7e7(0x5e6)])[_0x3dc7e7(0x587)](Boolean)],![]),await this[_0x3dc7e7(0x4c5)]['start']();}catch(_0x5ecde9){this[_0x3dc7e7(0x1a2)]=_0x1a1e5a[_0x3dc7e7(0x525)];try{this[_0x3dc7e7(0x66d)]['close']();}catch{}this[_0x3dc7e7(0x1a2)]=_0x1a1e5a['STOPPED'],this[_0x3dc7e7(0x2ab)]=![],this[_0x3dc7e7(0x100)]();throw _0x5ecde9;}for(const _0x5d74de of this[_0x3dc7e7(0x722)]('db',null,_0x3dc7e7(0x437),[],![]))if(!_0x5d74de[_0x3dc7e7(0x217)]('~'))this[_0x3dc7e7(0x7d0)](_0x5d74de);try{if(this['_call']('db',null,_0x3dc7e7(0x12b),[_0x3dc7e7(0x3d9)],![])){this[_0x3dc7e7(0x6f3)]=this[_0x3dc7e7(0x7d0)]('~log');const _0x36fdce=new Set(this[_0x3dc7e7(0x745)]['_sinks']);this['_detachLogSink']=this[_0x3dc7e7(0x745)]['attachOKDB'](this[_0x3dc7e7(0x6f3)],this['id']);const _0x3fc253=[...this['log'][_0x3dc7e7(0x606)]][_0x3dc7e7(0x207)](_0x45b7d5=>!_0x36fdce[_0x3dc7e7(0x614)](_0x45b7d5)),_0x2d51c8=this[_0x3dc7e7(0x722)]('db',null,_0x3dc7e7(0x50f),[],![]);for(const _0x156af4 of(this[_0x3dc7e7(0x6a1)]??[])[_0x3dc7e7(0x331)](_0x2d51c8))_0x3fc253?.(_0x156af4);}}catch{}this[_0x3dc7e7(0x6a1)]=null,this[_0x3dc7e7(0x66d)]['setWake'](()=>this[_0x3dc7e7(0x6bc)]['wake']()),this[_0x3dc7e7(0x6bc)][_0x3dc7e7(0x432)]();}get[_0xa6e0f1(0x611)](){const _0x44f740=()=>{const _0x2bc735=_0x41a2;if(!this['_isOpen'])return![];for(const _0x2485c9 of this[_0x2bc735(0x722)]('db',null,_0x2bc735(0x437),[],![])){if(!_0x2485c9['startsWith']('~')&&this[_0x2bc735(0x722)]('views',_0x2485c9,_0x2bc735(0x2f2),[],![]))return!![];}return![];};return((async()=>{const _0x1f5731=_0x41a2;while(_0x44f740())await this[_0x1f5731(0x6bc)][_0x1f5731(0x519)](0xfa);})());}async['bootRuntimeDeclarations'](){const _0x3a0fa4=_0xa6e0f1;return this[_0x3a0fa4(0x22c)]('db',null,_0x3a0fa4(0x5d4),[]);}async[_0xa6e0f1(0x498)](){const _0x33a23d=_0xa6e0f1;if(this[_0x33a23d(0x1a2)]===_0x1a1e5a[_0x33a23d(0x742)])return;if(this[_0x33a23d(0x1a2)]!==_0x1a1e5a[_0x33a23d(0x3a5)])throw new _0x44709f(_0x33a23d(0x27a),'INVALID_STATE',{'state':this[_0x33a23d(0x1a2)]});this[_0x33a23d(0x1a2)]=_0x1a1e5a[_0x33a23d(0x525)],this[_0x33a23d(0x2ab)]=![];let _0x5b4bdb=null;if(this['http'][_0x33a23d(0x5b7)][_0x33a23d(0x2a9)])try{await this[_0x33a23d(0x1c8)][_0x33a23d(0x498)]();}catch(_0x38bf24){_0x5b4bdb=_0x38bf24;}if(this['__adminRelay']){try{this['__adminRelay']['detachFeed'](),this[_0x33a23d(0x244)][_0x33a23d(0x62a)]();}catch{}this[_0x33a23d(0x244)]=null;}try{this[_0x33a23d(0x1ca)]?.[_0x33a23d(0x4ff)]?.();}catch{}try{await this['plugins']['stop']();}catch(_0x367cce){_0x5b4bdb=_0x367cce;}for(const _0x801b8c of[...Map[_0x33a23d(0x34d)]['values'][_0x33a23d(0x7cd)](this[_0x33a23d(0x446)])]){try{await _0x801b8c['processor'][_0x33a23d(0xc6)]();}catch{}try{await _0x801b8c[_0x33a23d(0x7bc)][_0x33a23d(0x4ff)]();}catch{}}for(const _0x1052b4 of[()=>this[_0x33a23d(0x776)][_0x33a23d(0x4ff)](),()=>this[_0x33a23d(0x1e7)][_0x33a23d(0x4ff)](),()=>this[_0x33a23d(0x448)]&&this[_0x33a23d(0x448)][_0x33a23d(0x4ff)]?.()]){try{await _0x1052b4();}catch{}}const _0x541bcf=this[_0x33a23d(0x2f0)][_0x33a23d(0x70c)]??0x7530,_0x490a98=[];for(const _0x447496 of[...Map['prototype']['values'][_0x33a23d(0x7cd)](this[_0x33a23d(0x446)])]){if(_0x447496[_0x33a23d(0x4f3)]?.['_workers']?.[_0x33a23d(0x74f)]>0x0)_0x490a98['push'](_0x447496[_0x33a23d(0x4f3)][_0x33a23d(0xc6)](_0x541bcf));}if(_0x490a98['length']>0x0)await Promise[_0x33a23d(0x6cb)](_0x490a98);try{this[_0x33a23d(0x489)]?.();}catch{}this[_0x33a23d(0x489)]=null;try{await this['_wb']['drain']();}catch{}this['_pumper'][_0x33a23d(0x4ff)]();try{await this[_0x33a23d(0x46d)](()=>this['_native'][_0x33a23d(0x498)]());}catch(_0xd45313){_0x5b4bdb=_0x5b4bdb||_0x501b0e(_0xd45313);}this[_0x33a23d(0x1a2)]=_0x1a1e5a['STOPPED'],this[_0x33a23d(0x100)](),Map[_0x33a23d(0x34d)]['clear'][_0x33a23d(0x7cd)](this[_0x33a23d(0x446)]);if(_0x5b4bdb)throw _0x5b4bdb;}['_teardownNative'](){const _0x3dd3be=_0xa6e0f1;this['_pumper'][_0x3dd3be(0x4ff)]();try{this[_0x3dd3be(0x66d)]['setWake'](null);}catch{}try{this[_0x3dd3be(0x66d)]['release']();}catch{}this[_0x3dd3be(0x375)]=null,this[_0x3dd3be(0x21e)]=null,this['_tids']=null,_0x337fe4[_0x3dd3be(0x278)](this['_key']),_0x337fe4[_0x3dd3be(0x2e3)](this),_0x466f3b[_0x3dd3be(0x7ec)](this[_0x3dd3be(0x164)]);if(_0x337fe4[_0x3dd3be(0x7aa)](this)){const _0x5122ce=[..._0x466f3b[_0x3dd3be(0x4ee)]()][_0x3dd3be(0x71e)]();if(_0x5122ce)_0x337fe4[_0x3dd3be(0x38d)](()=>_0x5122ce[_0x3dd3be(0x6bc)][_0x3dd3be(0x4c1)](),_0x5122ce);else _0x337fe4[_0x3dd3be(0x38d)](()=>{},null);}}get['id'](){const _0x48f11a=_0xa6e0f1;return this[_0x48f11a(0x722)]('db',null,'id',[],![]);}[_0xa6e0f1(0x551)](_0x2687f0){const _0x294a83=_0xa6e0f1;return this['env'](_0x294a83(0x686))['_advanceHlcOnRecv'](_0x2687f0);}get['_tokenSecret'](){const _0x18f2fe=_0xa6e0f1;return this[_0x18f2fe(0x355)][_0x18f2fe(0x1bc)](_0x18f2fe(0x697));}get['_nodePrivateKey'](){const _0xc7c861=_0xa6e0f1;return this[_0xc7c861(0x776)][_0xc7c861(0x29f)];}get[_0xa6e0f1(0x597)](){const _0x46d84a=_0xa6e0f1;return this[_0x46d84a(0x776)][_0x46d84a(0x597)];}get[_0xa6e0f1(0x464)](){const _0x56b8cd=_0xa6e0f1;if(!this[_0x56b8cd(0x2ab)]||!this['_call']('db',null,_0x56b8cd(0x341),[],![]))return undefined;if(!this[_0x56b8cd(0x69c)]){const _0x1f77c4=requireOkdbSubscriptionsStore(),_0xad9234=new _0x1f77c4(this,this[_0x56b8cd(0x2f0)]&&this[_0x56b8cd(0x2f0)][_0x56b8cd(0xdf)]);_0xad9234['_sub']=this[_0x56b8cd(0x3c4)](_0x56b8cd(0x148));const {compileFilter:_0x5892e0}=requireOkdbQueryFilter(),_0x5cd113=(_0xf9845f,_0x3b38ea)=>{if(_0xf9845f==null)return![];try{return _0x5892e0(_0xf9845f)(_0x3b38ea);}catch{return![];}};this[_0x56b8cd(0x69c)]={'store':_0xad9234,'router':{'_matches':_0x5cd113}};}return this[_0x56b8cd(0x69c)];}get[_0xa6e0f1(0x188)](){return this['role'];}get[_0xa6e0f1(0x250)](){const _0x31bbd5=_0xa6e0f1;return this[_0x31bbd5(0x722)]('db',null,_0x31bbd5(0x250),[],![]);}get[_0xa6e0f1(0x491)](){const _0x58bbac=_0xa6e0f1;return{...this[_0x58bbac(0x722)]('db',null,_0x58bbac(0x491),[],![])};}get[_0xa6e0f1(0x3a1)](){const _0x2b7e9a=_0xa6e0f1;return require$$29[_0x2b7e9a(0x3a1)];}get[_0xa6e0f1(0x6d4)](){return this['_call']('db',null,'quarantined',[],![]);}get['info'](){const _0x35a9a1=_0xa6e0f1;return this['_call']('db',null,_0x35a9a1(0xd5),[],![]);}[_0xa6e0f1(0x1a5)](){const _0xc140bc=_0xa6e0f1;return this[_0xc140bc(0x722)]('db',null,_0xc140bc(0x7cc),[],![]);}[_0xa6e0f1(0x126)](){const _0x388671=_0xa6e0f1;return this[_0x388671(0x722)]('db',null,_0x388671(0x126),[],![]);}async[_0xa6e0f1(0x409)](_0x3ec245){const _0x280c6d=_0xa6e0f1;this[_0x280c6d(0x187)](),this['_call']('db',null,_0x280c6d(0x409),[_0x3ec245],![]);}[_0xa6e0f1(0x442)](){const _0x2c213c=_0xa6e0f1,_0x4fc1fc=Date[_0x2c213c(0x772)]();if(this[_0x2c213c(0x123)]&&_0x4fc1fc-this[_0x2c213c(0x123)]['at']<0xfa)return this['_pressure']['value'];const _0x4e36d3=this[_0x2c213c(0x722)]('db',null,_0x2c213c(0x442),[],![]);return this[_0x2c213c(0x123)]={'at':_0x4fc1fc,'value':_0x4e36d3},_0x4e36d3;}[_0xa6e0f1(0x187)](){const _0x3ddb0d=_0xa6e0f1;if(!this[_0x3ddb0d(0x2ab)])throw new _0x44709f(_0x3ddb0d(0x27a),_0x3ddb0d(0x206),{'state':this['state']});}get['bus'](){const _0x44876b=_0xa6e0f1;if(this['state']===_0x1a1e5a[_0x44876b(0x742)]||!this[_0x44876b(0x2ab)])return null;if(this['_call']('db',null,_0x44876b(0x4ea),[],![])==null)return null;if(!this[_0x44876b(0x73c)]){const _0x252259=this;this[_0x44876b(0x73c)]={get 'state'(){const _0x44e9ae=_0x44876b;return _0x252259[_0x44e9ae(0x722)]('db',null,_0x44e9ae(0x4ea),[],![]);},get 'magic'(){const _0xf57d70=_0x44876b;return Buffer[_0xf57d70(0x295)](_0xf57d70(0x477)+_0x252259['id']);},get 'isRunning'(){const _0x129af9=_0x44876b;return _0x252259[_0x129af9(0x722)]('db',null,_0x129af9(0x4ea),[],![])===_0x129af9(0x6ec);},'emit'(_0x31cf42,_0x13903f=''){_0x252259['_call']('db',null,'busEmit',[_0x31cf42,String(_0x13903f)],![]);}};}return this['_busFacade'];}['_emitProc'](_0x1848b3,_0x284818){const _0xc0285e=_0xa6e0f1;this[_0xc0285e(0x5a4)]?.['emit'](_0xc0285e(0x39d),JSON['stringify']({'kind':'reconcile','scope':_0x1848b3,'key':_0x284818}));}get[_0xa6e0f1(0x5a1)](){const _0x5548a6=_0xa6e0f1;return this[_0x5548a6(0x288)]||(this['_locks']=new(requireLock())['NativeLock'](this,_0x5548a6(0xfb),_0x5548a6(0x79f)));}get['_rootDb'](){const _0x5b4155=_0xa6e0f1;return this['_systemEnv']?this[_0x5b4155(0x508)]['db']:undefined;}get[_0xa6e0f1(0x4aa)](){const _0xd14970=_0xa6e0f1,_0xe17844=this[_0xd14970(0x508)]?.[_0xd14970(0xf8)];if(!_0xe17844)return null;const _0x8b62d=_0xe17844[_0xd14970(0x58d)]()[_0xd14970(0x207)](_0x2c8ed8=>_0x2c8ed8[_0xd14970(0x7a9)]?.[_0xd14970(0x5e6)]==='system:env-sync');return _0x8b62d?_0xe17844[_0xd14970(0x601)](_0x8b62d['id'],_0x8b62d['cursorKey']):null;}get['_systemEnv'](){const _0x3c36f3=_0xa6e0f1;return this[_0x3c36f3(0x2ab)]?this['_envs'][_0x3c36f3(0x1bc)](_0x3c36f3(0xfb)):undefined;}[_0xa6e0f1(0x7d0)](_0x407175){const _0x277609=_0xa6e0f1;let _0x5c47cb=Map[_0x277609(0x34d)][_0x277609(0x1bc)]['call'](this[_0x277609(0x446)],_0x407175);if(!_0x5c47cb){_0x5c47cb=new _0x3b84bf(this,_0x407175),Map['prototype'][_0x277609(0x48c)][_0x277609(0x7cd)](this[_0x277609(0x446)],_0x407175,_0x5c47cb);if(_0x407175===_0x277609(0x686))this[_0x277609(0x4e1)]=_0x5c47cb;}return _0x5c47cb;}[_0xa6e0f1(0x3c4)](_0x51c22e='default'){const _0x2aa685=_0xa6e0f1,_0x456087=this[_0x2aa685(0x446)][_0x2aa685(0x1bc)](_0x51c22e);if(_0x456087)return _0x456087;if(this['_isOpen']&&this[_0x2aa685(0x722)]('db',null,_0x2aa685(0x12b),[_0x51c22e],![]))return this[_0x2aa685(0x7d0)](_0x51c22e);throw new _0x44709f('Environment\x20\x22'+_0x51c22e+_0x2aa685(0x1d7),'ENV_NOT_FOUND');}get[_0xa6e0f1(0x686)](){const _0x3045b8=_0xa6e0f1;return this['env'](_0x3045b8(0x686));}get[_0xa6e0f1(0x377)](){const _0x656e71=_0xa6e0f1;return this[_0x656e71(0x446)][_0x656e71(0x1bc)](_0x656e71(0x686))??this[_0x656e71(0x4e1)];}get[_0xa6e0f1(0x253)](){const _0x4959ad=_0xa6e0f1;return this['_defaultEnv'][_0x4959ad(0x253)];}get['queue'](){const _0x41fa24=_0xa6e0f1;return this[_0x41fa24(0x377)]['queue'];}['_timerHandle'](_0xe5db7){const _0xada0aa=_0xa6e0f1;if(!this[_0xada0aa(0x2ab)])return null;return this[_0xada0aa(0x722)]('db',null,_0xada0aa(0x61e),[_0xe5db7],![])?{'ref'(){},'unref'(){}}:null;}get[_0xa6e0f1(0x7e1)](){const _0x12b046=_0xa6e0f1;return this[_0x12b046(0x5ac)](_0x12b046(0x4a6));}[_0xa6e0f1(0x145)](){const _0x1b8781=_0xa6e0f1;return this[_0x1b8781(0x722)]('db',null,_0x1b8781(0x7c2),[],!![]);}get[_0xa6e0f1(0x2dc)](){const _0x258bc1=_0xa6e0f1;return this[_0x258bc1(0x5ac)](_0x258bc1(0x586));}get[_0xa6e0f1(0x6bb)](){const _0x217398=_0xa6e0f1;return this['_timerHandle'](_0x217398(0x74e));}get[_0xa6e0f1(0xd9)](){const _0x551d50=_0xa6e0f1;return this[_0x551d50(0x3c4)](_0x551d50(0x686))['_hlc'];}get[_0xa6e0f1(0x719)](){const _0x4eef6e=_0xa6e0f1;throw new _0x44709f(_0x4eef6e(0x328),_0x4eef6e(0x1de));}get[_0xa6e0f1(0xf8)](){const _0x42eaac=_0xa6e0f1;return this[_0x42eaac(0x377)]['processor'];}get[_0xa6e0f1(0x7a3)](){const _0x58aaa1=_0xa6e0f1;return this[_0x58aaa1(0x377)][_0x58aaa1(0x7a3)];}async[_0xa6e0f1(0x729)](_0x4cf16a,_0x34cc7c={}){const _0x1e2520=_0xa6e0f1;this[_0x1e2520(0x187)]();if(_0x34cc7c&&typeof _0x34cc7c['encryptionKey']===_0x1e2520(0x7c4)){const _0x27cdab=_0x34cc7c[_0x1e2520(0x35a)];this[_0x1e2520(0x12d)](_0x4cf16a,await _0x27cdab(_0x4cf16a),!![]),this[_0x1e2520(0x1c7)]['envs'][_0x1e2520(0x48c)](_0x4cf16a,_0x27cdab),_0x34cc7c={..._0x34cc7c,'encryptionKey':!![]};}return this['_call']('db',null,_0x1e2520(0x729),[_0x4cf16a,_0x34cc7c]),this[_0x1e2520(0x7d0)](_0x4cf16a);}async[_0xa6e0f1(0x20d)](_0x42b799){const _0x20883d=_0xa6e0f1;if(!this['_isOpen'])throw new _0x44709f('Cannot\x20openEnv(\x22'+_0x42b799+_0x20883d(0x652),_0x20883d(0x206));return this['_call']('db',null,'openEnv',[_0x42b799]),this[_0x20883d(0x7d0)](_0x42b799);}get[_0xa6e0f1(0x128)](){const _0x3f1807=_0xa6e0f1;if(!this['__adminRelay']&&this[_0x3f1807(0x2ab)]){const _0x11dae3=requireOkdbRelay(),_0x4279a7=new _0x11dae3(this,this['options']?.['admin']?.[_0x3f1807(0x214)]??{});_0x4279a7[_0x3f1807(0x131)](),_0x4279a7[_0x3f1807(0x78c)]=!![],this[_0x3f1807(0x244)]=_0x4279a7;}return this[_0x3f1807(0x244)]??null;}set[_0xa6e0f1(0x128)](_0x11b1ad){this['__adminRelay']=_0x11b1ad;}get[_0xa6e0f1(0x6c2)](){const _0x7a7a0c=_0xa6e0f1;let _0x3640ae=0x0;if(this[_0x7a7a0c(0x2ab)])for(const [_0x524429]of Map['prototype'][_0x7a7a0c(0x2d3)][_0x7a7a0c(0x7cd)](this[_0x7a7a0c(0x446)])){try{_0x3640ae+=this[_0x7a7a0c(0x722)]('proc',_0x524429,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x3640ae,'maxObserved':_0x3640ae>0x0?0x1:0x0,'inFlight':0x0};}async[_0xa6e0f1(0x7e8)](_0x127b66){const _0x2f6b3f=_0xa6e0f1,_0x4ace05=this[_0x2f6b3f(0x446)][_0x2f6b3f(0x1bc)](_0x127b66);if(_0x4ace05)return _0x4ace05;if(!this[_0x2f6b3f(0x722)]('db',null,_0x2f6b3f(0x12b),[_0x127b66],![]))throw new Error(_0x2f6b3f(0x746)+_0x127b66+_0x2f6b3f(0x74d));return this['openEnv'](_0x127b66);}async[_0xa6e0f1(0xd6)](_0x3d55c3){const _0x27eba3=_0xa6e0f1,_0x4aad2e=this[_0x27eba3(0x722)]('db',null,_0x27eba3(0x2d0),[_0x3d55c3]);return this[_0x27eba3(0x446)]['delete'](_0x3d55c3),_0x4aad2e;}async[_0xa6e0f1(0x68d)](_0x51b136,_0x30ac99={}){const _0x43828b=_0xa6e0f1;this[_0x43828b(0x187)]();const _0x4d0cfb=this[_0x43828b(0x722)]('db',null,_0x43828b(0x68d),[_0x51b136,_0x30ac99]);return this[_0x43828b(0x446)]['delete'](_0x51b136),_0x4d0cfb;}static get[_0xa6e0f1(0x19a)](){const _0x444d02=_0xa6e0f1;return _0x150068[_0x444d02(0x19a)];}static get['KNOWN_OPTIONS'](){return _0x150068['KNOWN_OPTIONS'];}static get['_OPTION_HINTS'](){const _0x265a22=_0xa6e0f1;return _0x150068[_0x265a22(0x672)];}static async[_0xa6e0f1(0xf6)](_0x5b560a,_0x5cf814){return _0x546473('db','clone',[_0x5b560a,_0x5cf814]);}static[_0xa6e0f1(0x6da)](_0x3b38fe){return _0x546473('db','reidentify',[_0x3b38fe]);}static['registerBucketProjection'](_0x34db93,_0x42e26d){const _0x435fe7=_0xa6e0f1;_0x546473(_0x435fe7(0x7a3),'registerBucketProjection',[_0x34db93,_0x42e26d]);}static[_0xa6e0f1(0x1aa)](_0x386770,_0xdb474d){const _0x3edc35=_0xa6e0f1;_0x546473(_0x3edc35(0x7a3),_0x3edc35(0x1aa),[_0x386770,_0xdb474d]);}static[_0xa6e0f1(0x7da)](){}['equal'](_0x59094b,_0x324d08){const _0x2362a5=_0xa6e0f1;return require$$16[_0x2362a5(0x5b2)](_0x59094b,_0x324d08);}}_0x5c3f5d['HIGH_SENTINEL']=_0x167762,Object[_0xa6e0f1(0x332)](_0x5c3f5d,'_unknownOptionsWarned',{'get'(){const _0x23908f=_0xa6e0f1;return _0x5c3f5d[_0x23908f(0x24e)]||(_0x5c3f5d[_0x23908f(0x24e)]=new Set());},'set'(_0xabc05c){const _0x542b8b=_0xa6e0f1;_0x5c3f5d[_0x542b8b(0x24e)]=_0xabc05c;try{_0x546473('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x196b52 of[_0xa6e0f1(0x241),'txn',_0xa6e0f1(0x59b),'update',_0xa6e0f1(0x3fb),'create',_0xa6e0f1(0x4d2),_0xa6e0f1(0x1bc),_0xa6e0f1(0x63b),_0xa6e0f1(0x153),_0xa6e0f1(0x1bd),_0xa6e0f1(0x4dd),_0xa6e0f1(0x677),'getCount','getByPrefix',_0xa6e0f1(0x655),'byIndex',_0xa6e0f1(0x22b),_0xa6e0f1(0x787),_0xa6e0f1(0x204),'ftsQuery',_0xa6e0f1(0x735),_0xa6e0f1(0x5f2),_0xa6e0f1(0x3fa),_0xa6e0f1(0x476),_0xa6e0f1(0x2c9),_0xa6e0f1(0x1bb),_0xa6e0f1(0x58a),_0xa6e0f1(0x5fe),_0xa6e0f1(0x61c),_0xa6e0f1(0x480),'indexReady',_0xa6e0f1(0x76e),_0xa6e0f1(0x361),_0xa6e0f1(0x135),_0xa6e0f1(0x78e),_0xa6e0f1(0x41d),_0xa6e0f1(0xe4),'setTTL',_0xa6e0f1(0xbf),_0xa6e0f1(0x272),_0xa6e0f1(0xcf),'listTTL',_0xa6e0f1(0xec),_0xa6e0f1(0x2aa),_0xa6e0f1(0x5d1),_0xa6e0f1(0x71d),_0xa6e0f1(0x70b),_0xa6e0f1(0x65f),_0xa6e0f1(0x772)]){_0x5c3f5d['prototype'][_0x196b52]=function(..._0x16dba2){const _0x2c8c57=_0xa6e0f1,_0x3ac2f3=this[_0x2c8c57(0x3c4)](_0x2c8c57(0x686));return _0x3ac2f3[_0x196b52](..._0x16dba2);};}function _0x1b2906(_0x5301a0){const _0x4a6eb4=_0xa6e0f1,_0xb7cee2=_0x8c0818=>()=>{const _0x5abcaa=_0x41a2;throw new Error(_0x5abcaa(0x6f5)+_0x8c0818+_0x5abcaa(0x2ec));};return{'process':_0xb7cee2(_0x4a6eb4(0x370)),'processRest':_0xb7cee2(_0x4a6eb4(0x2b9)),'processEverything':_0xb7cee2(_0x4a6eb4(0x1f7)),async 'start'(){const _0x2ee3c2=_0x4a6eb4;return _0x5301a0[_0x2ee3c2(0x722)]('db',null,'processorsStart',[]);},async 'stop'(){const _0x84f12f=_0x4a6eb4;return _0x5301a0[_0x84f12f(0x722)]('db',null,_0x84f12f(0x103),[]);},'status'(){const _0x3b6ef8=_0x4a6eb4;return _0x5301a0['_call']('db',null,_0x3b6ef8(0x1c5),[],![]);},get 'participating'(){const _0x5304d7=_0x4a6eb4;return _0x5301a0[_0x5304d7(0x722)]('db',null,_0x5304d7(0x699),[],![]);},get '_participate'(){const _0x13544c=_0x4a6eb4;return _0x5301a0[_0x13544c(0x722)]('db',null,_0x13544c(0x699),[],![]);}};}function _0x546473(_0x8f7638,_0x39e7db,_0x43f148){const _0x5f46a2=_0xa6e0f1;_0x3c5c78();try{return _0x44fdcd()[_0x5f46a2(0x5b1)](_0x8f7638,_0x39e7db,_0x43f148);}catch(_0x1c888b){throw _0x501b0e(_0x1c888b);}}_0x461709[_0xa6e0f1(0x1ad)]=_0x5c3f5d,_0x461709['exports'][_0xa6e0f1(0x5dd)]=_0x546473,_0x461709[_0xa6e0f1(0x1ad)][_0xa6e0f1(0x421)]=_0x5c3f5d,_0x461709[_0xa6e0f1(0x1ad)][_0xa6e0f1(0x1be)]=_0x167762,_0x461709[_0xa6e0f1(0x1ad)][_0xa6e0f1(0x686)]=_0x5c3f5d,Object['defineProperty'](_0x461709[_0xa6e0f1(0x1ad)],'nativeBinaryPath',{'get':()=>require$$1$1[_0xa6e0f1(0x3c1)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x3070f3(0x1ad)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x431d06(0x1ad)]=index;
|
|
1
|
+
'use strict';const _0x30747f=_0x5ce2;(function(_0x40b5c2,_0x5373d9){const _0x417af3=_0x5ce2,_0x48d16c=_0x40b5c2();while(!![]){try{const _0x3cc32a=parseInt(_0x417af3(0x526))/0x1*(parseInt(_0x417af3(0xb9))/0x2)+-parseInt(_0x417af3(0x265))/0x3*(-parseInt(_0x417af3(0x1e1))/0x4)+-parseInt(_0x417af3(0x39f))/0x5*(-parseInt(_0x417af3(0x595))/0x6)+-parseInt(_0x417af3(0xf1))/0x7+-parseInt(_0x417af3(0x133))/0x8+-parseInt(_0x417af3(0x289))/0x9*(-parseInt(_0x417af3(0x2b4))/0xa)+parseInt(_0x417af3(0x3c6))/0xb;if(_0x3cc32a===_0x5373d9)break;else _0x48d16c['push'](_0x48d16c['shift']());}catch(_0x11ed33){_0x48d16c['push'](_0x48d16c['shift']());}}}(_0x17ed,0xcb89f));var require$$0$6=require(_0x30747f(0x3bb)),require$$1$1=require('./native-loader.js'),require$$0=require(_0x30747f(0x195)),require$$1=require(_0x30747f(0x740)),require$$4=require(_0x30747f(0x6e1)),require$$0$2=require(_0x30747f(0x7a8)),require$$0$1=require(_0x30747f(0x1a7)),require$$16=require(_0x30747f(0x118)),require$$0$3=require(_0x30747f(0x1b8)),require$$2=require('node:cluster'),require$$18=require(_0x30747f(0x5df)),require$$0$4=require(_0x30747f(0x513)),require$$0$5=require(_0x30747f(0x79a));function getDefaultExportFromCjs(_0x298633){const _0x10d290=_0x30747f;return _0x298633&&_0x298633[_0x10d290(0x53c)]&&Object[_0x10d290(0x744)][_0x10d290(0x610)]['call'](_0x298633,_0x10d290(0x5eb))?_0x298633[_0x10d290(0x5eb)]:_0x298633;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x554c5e extends Error{constructor(_0x382c24,_0x4ab0ee,_0x38433e={}){const _0x6a0136=_0x5ce2;super(_0x382c24),this[_0x6a0136(0x219)]=_0x6a0136(0x636),this[_0x6a0136(0x182)]=_0x4ab0ee,this['details']=_0x38433e,_0x38433e[_0x6a0136(0x7cb)]&&(this['cause']=_0x38433e[_0x6a0136(0x7cb)]),Error[_0x6a0136(0x2fb)](this,this['constructor']);}}class _0x41f694 extends _0x554c5e{constructor(_0xe944e0,_0x48909b,_0x335bbd,_0x1bffe1){const _0x12804c=_0x5ce2;super('Version\x20mismatch\x20for\x20'+_0xe944e0+'@'+_0x48909b+_0x12804c(0x221)+_0x335bbd+_0x12804c(0x797)+_0x1bffe1,'VERSION_MISMATCH',{'type':_0xe944e0,'key':_0x48909b,'expectedVersion':_0x335bbd,'actualVersion':_0x1bffe1}),this[_0x12804c(0x219)]=_0x12804c(0x55e);}}class _0x5f0f9c extends _0x554c5e{constructor(_0x371055,_0x148f57){const _0x343527=_0x5ce2;super(_0x371055+'@'+_0x148f57+_0x343527(0x2a4),_0x343527(0x519),{'type':_0x371055,'key':_0x148f57}),this[_0x343527(0x219)]=_0x343527(0x94);}}class _0x2c0be8 extends _0x554c5e{constructor(_0x42d984,_0x11c0bf){const _0x3d1b85=_0x5ce2;super(_0x42d984+'@'+_0x11c0bf+'\x20already\x20exists',_0x3d1b85(0x752),{'type':_0x42d984,'key':_0x11c0bf}),this['name']=_0x3d1b85(0x5b1);}}class _0x5b7c7f extends _0x554c5e{constructor(_0x58a647,_0x5530b1){const _0x5c44b0=_0x5ce2,_0x5a4c95=typeof _0x5530b1;super(_0x5c44b0(0x3ac)+_0x58a647+_0x5c44b0(0xb4)+_0x5a4c95+_0x5c44b0(0x11e)+_0x5530b1,'INVALID_INDEX_KEY',{'index':_0x58a647,'key':_0x5530b1,'keyType':_0x5a4c95}),this[_0x5c44b0(0x219)]=_0x5c44b0(0x772);}}class _0x520e13 extends _0x554c5e{constructor(_0xe230e9){const _0x288cec=_0x5ce2,_0x3bab79=typeof _0xe230e9;super(_0x288cec(0x7aa)+_0x3bab79+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0xe230e9,_0x288cec(0x32b),{'key':_0xe230e9,'keyType':_0x3bab79}),this[_0x288cec(0x219)]=_0x288cec(0x28b);}}class _0x3f9b54 extends _0x554c5e{constructor(_0x5d8025){const _0x5792bf=_0x5ce2;super('Type\x20\x27'+_0x5d8025+_0x5792bf(0x444),'TYPE_NOT_REGISTERED',{'type':_0x5d8025}),this[_0x5792bf(0x219)]=_0x5792bf(0x240);}}class _0x3929f5 extends _0x554c5e{constructor(_0x1a3a76){const _0x5ad440=_0x5ce2;super(_0x5ad440(0x256)+_0x1a3a76+_0x5ad440(0x4c1),_0x5ad440(0x4c3),{'type':_0x1a3a76}),this[_0x5ad440(0x219)]=_0x5ad440(0x248);}}class _0x266c8f extends _0x554c5e{constructor(_0x363088,_0x56f750){const _0x30980a=_0x5ce2;super(_0x30980a(0x65a)+_0x56f750+_0x30980a(0x2ee)+_0x363088+'\x27\x20doesn\x27t\x20exist','INDEX_NOT_REGISTERED',{'type':_0x363088,'index':_0x56f750}),this[_0x30980a(0x219)]=_0x30980a(0x324);}}class _0x5d304f extends _0x554c5e{constructor(_0x256a1c,_0x52b4e4){const _0x50b2ab=_0x5ce2;super('Index\x20\x27'+_0x52b4e4+'\x27\x20on\x20type\x20\x27'+_0x256a1c+_0x50b2ab(0x47c),_0x50b2ab(0x6a8),{'type':_0x256a1c,'index':_0x52b4e4}),this[_0x50b2ab(0x219)]=_0x50b2ab(0x66c);}}class _0x2b3b04 extends _0x554c5e{constructor(_0x3583ca,_0x556586={}){const _0x3dd843=_0x5ce2;super(_0x3583ca,_0x3dd843(0x470),_0x556586),this['name']=_0x3dd843(0x54e);}}class _0x107561 extends _0x554c5e{constructor(_0x198fd6,_0x454528,_0x5340b1,_0x1d5579,_0x262113){const _0x2bf418=_0x5ce2;super('Unique\x20constraint\x20violated\x20on\x20'+_0x198fd6+'@'+_0x454528+_0x2bf418(0x56a)+_0x5340b1+_0x2bf418(0x576)+_0x1d5579+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x262113+'\x27','UNIQUE_CONSTRAINT',{'type':_0x198fd6,'index':_0x454528,'indexKey':_0x5340b1,'existingKey':_0x1d5579,'conflictingKey':_0x262113}),this[_0x2bf418(0x219)]=_0x2bf418(0x548);}}class _0x493425 extends _0x554c5e{constructor(_0x391abd,_0x1698d3,_0x9e9379){const _0x17d40f=_0x5ce2;super(_0x17d40f(0x267)+_0x391abd+'@'+_0x1698d3,'SCHEMA_VALIDATION_FAILED',{'type':_0x391abd,'key':_0x1698d3,'errors':_0x9e9379}),this['name']=_0x17d40f(0x645),this[_0x17d40f(0x4a6)]=_0x391abd,this[_0x17d40f(0x781)]=_0x1698d3,this[_0x17d40f(0x732)]=_0x9e9379;}}class _0x44faec extends _0x554c5e{constructor(_0x44086b,_0x1a9540){const _0x1685a2=_0x5ce2;super(_0x1685a2(0x44d)+_0x44086b+':\x20'+_0x1a9540[_0x1685a2(0x789)]+_0x1685a2(0x556),_0x1685a2(0x3df),{'type':_0x44086b,'failures':_0x1a9540}),this[_0x1685a2(0x219)]=_0x1685a2(0x1ce),this[_0x1685a2(0x4a6)]=_0x44086b,this[_0x1685a2(0x92)]=_0x1a9540;}}class _0x36e2c9 extends _0x554c5e{constructor(_0x2bdcc8,_0x132d19,_0x33baa6,_0x52271a,_0x5f5904){const _0x51d9df=_0x5ce2;super(_0x51d9df(0x602)+_0x2bdcc8+'@'+_0x132d19+'.'+_0x33baa6+_0x51d9df(0x6bd)+_0x52271a+'@'+_0x5f5904+_0x51d9df(0x5f1),_0x51d9df(0x3c0),{'sourceType':_0x2bdcc8,'sourceKey':_0x132d19,'fieldPath':_0x33baa6,'targetType':_0x52271a,'targetKey':_0x5f5904}),this['name']=_0x51d9df(0x453),this[_0x51d9df(0x58e)]=_0x2bdcc8,this[_0x51d9df(0x49b)]=_0x132d19,this['fieldPath']=_0x33baa6,this[_0x51d9df(0x2d9)]=_0x52271a,this[_0x51d9df(0x287)]=_0x5f5904;}}class _0x5da829 extends _0x554c5e{constructor(_0x71c7a7,_0x5dfb10,_0x12251d){const _0x2587c9=_0x5ce2;super('Cannot\x20delete\x20'+_0x71c7a7+'@'+_0x5dfb10+':\x20'+_0x12251d[_0x2587c9(0x789)]+_0x2587c9(0x5a8),'FOREIGN_KEY_DELETE_RESTRICTED',{'targetType':_0x71c7a7,'targetKey':_0x5dfb10,'references':_0x12251d}),this['name']=_0x2587c9(0x552),this[_0x2587c9(0x2d9)]=_0x71c7a7,this[_0x2587c9(0x287)]=_0x5dfb10,this[_0x2587c9(0x5fe)]=_0x12251d;}}class _0x58d7ec extends _0x554c5e{constructor(_0x432715,_0x2d24c0,_0x3bd09d){const _0x3d530f=_0x5ce2;super(_0x3d530f(0x4bb)+_0x2d24c0+_0x3d530f(0x7ad)+_0x432715+'\x22\x20is\x20used\x20by:\x20'+_0x3bd09d['map'](_0x4af0b1=>_0x4af0b1['kind']+':'+_0x4af0b1[_0x3d530f(0x219)])[_0x3d530f(0x2fd)](',\x20'),_0x3d530f(0x203),{'type':_0x432715,'index':_0x2d24c0,'usedBy':_0x3bd09d}),this[_0x3d530f(0x219)]=_0x3d530f(0x7c1);}}return okdbError={'OKDBError':_0x554c5e,'OKDBVersionMismatchError':_0x41f694,'OKDBNotFoundError':_0x5f0f9c,'OKDBAlreadyExistsError':_0x2c0be8,'OKDBInvalidIndexKeyError':_0x5b7c7f,'OKDBInvalidPrimaryKeyError':_0x520e13,'OKDBTypeNotRegisteredError':_0x3f9b54,'OKDBTypeAlreadyRegisteredError':_0x3929f5,'OKDBIndexNotRegisteredError':_0x266c8f,'OKDBIndexAlreadyRegisteredError':_0x5d304f,'OKDBInvalidValueError':_0x2b3b04,'OKDBUniqueConstraintError':_0x107561,'OKDBSchemaValidationError':_0x493425,'OKDBSchemaCollectionError':_0x44faec,'OKDBForeignKeyError':_0x36e2c9,'OKDBForeignKeyDeleteError':_0x5da829,'OKDBIndexHasConsumersError':_0x58d7ec},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x3ac4d0=_0x30747f;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x2d3fd9=requireOkdbError(),_0x491291={'VERSION_MISMATCH':_0x2d3fd9[_0x3ac4d0(0x55e)],'NOT_FOUND':_0x2d3fd9[_0x3ac4d0(0x94)],'ALREADY_EXISTS':_0x2d3fd9[_0x3ac4d0(0x5b1)],'INVALID_INDEX_KEY':_0x2d3fd9['OKDBInvalidIndexKeyError'],'INVALID_PRIMARY_KEY':_0x2d3fd9[_0x3ac4d0(0x28b)],'TYPE_NOT_REGISTERED':_0x2d3fd9[_0x3ac4d0(0x240)],'TYPE_ALREADY_REGISTERED':_0x2d3fd9[_0x3ac4d0(0x248)],'INDEX_NOT_REGISTERED':_0x2d3fd9[_0x3ac4d0(0x324)],'INDEX_ALREADY_REGISTERED':_0x2d3fd9[_0x3ac4d0(0x66c)],'INVALID_VALUE':_0x2d3fd9[_0x3ac4d0(0x54e)],'UNIQUE_CONSTRAINT':_0x2d3fd9[_0x3ac4d0(0x548)],'SCHEMA_VALIDATION_FAILED':_0x2d3fd9['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x2d3fd9[_0x3ac4d0(0x1ce)],'FOREIGN_KEY_VIOLATION':_0x2d3fd9[_0x3ac4d0(0x453)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x2d3fd9['OKDBForeignKeyDeleteError'],'INDEX_HAS_CONSUMERS':_0x2d3fd9[_0x3ac4d0(0x7c1)]};class _0x3b3d32 extends _0x2d3fd9[_0x3ac4d0(0x636)]{constructor(_0x42833d,_0x183b6b){const _0x4cd2c4=_0x3ac4d0;super(_0x42833d+_0x4cd2c4(0x4b7)+(_0x183b6b?'\x20('+_0x183b6b+')':''),_0x4cd2c4(0x7d0),{'feature':_0x42833d}),this[_0x4cd2c4(0x219)]='OKDBNotImplementedNativeError';}}function _0x5c9c30(_0x4830a2){const _0xae39ff=_0x3ac4d0;if(!_0x4830a2||typeof _0x4830a2!==_0xae39ff(0x12c)||!_0x4830a2[_0xae39ff(0x6aa)])return _0x4830a2;delete _0x4830a2[_0xae39ff(0x6aa)];const _0x799eeb=_0x4830a2[_0xae39ff(0x182)];if(_0x799eeb===_0xae39ff(0x516)||_0x799eeb===_0xae39ff(0x253)||_0x799eeb===_0xae39ff(0x3e0)){const _0x54cc27=_0x799eeb==='TypeError'?TypeError[_0xae39ff(0x744)]:_0x799eeb==='RangeError'?RangeError[_0xae39ff(0x744)]:Error['prototype'];Object['setPrototypeOf'](_0x4830a2,_0x54cc27),_0x4830a2[_0xae39ff(0x219)]=_0x799eeb;if(_0x4830a2['details']&&_0x4830a2[_0xae39ff(0x107)][_0xae39ff(0x5e5)]!==undefined)_0x4830a2[_0xae39ff(0x5e5)]=_0x4830a2[_0xae39ff(0x107)][_0xae39ff(0x5e5)];return delete _0x4830a2[_0xae39ff(0x182)],delete _0x4830a2[_0xae39ff(0x107)],_0x4830a2;}const _0x48fbb9=_0x491291[_0x799eeb];Object[_0xae39ff(0x11d)](_0x4830a2,(_0x48fbb9||_0x2d3fd9[_0xae39ff(0x636)])[_0xae39ff(0x744)]),_0x4830a2[_0xae39ff(0x219)]=_0x48fbb9?_0x48fbb9['name'][_0xae39ff(0x330)](/^OKDB/,'OKDB'):'OKDBError';const _0x5e02b9=_0x4830a2[_0xae39ff(0x107)]||{};_0x799eeb===_0xae39ff(0x521)&&(_0x4830a2[_0xae39ff(0x4a6)]=_0x5e02b9['type'],_0x4830a2[_0xae39ff(0x781)]=_0x5e02b9[_0xae39ff(0x781)],_0x4830a2[_0xae39ff(0x732)]=_0x5e02b9['errors']);_0x799eeb===_0xae39ff(0x3df)&&(_0x4830a2[_0xae39ff(0x4a6)]=_0x5e02b9[_0xae39ff(0x4a6)],_0x4830a2[_0xae39ff(0x92)]=_0x5e02b9['failures']);if(_0x799eeb===_0xae39ff(0x3c0)){for(const _0x5adbce of[_0xae39ff(0x58e),_0xae39ff(0x49b),_0xae39ff(0x423),'targetType',_0xae39ff(0x287)])_0x4830a2[_0x5adbce]=_0x5e02b9[_0x5adbce];}if(_0x799eeb===_0xae39ff(0x100)){for(const _0x5c1ab0 of[_0xae39ff(0x2d9),_0xae39ff(0x287),_0xae39ff(0x5fe)])_0x4830a2[_0x5c1ab0]=_0x5e02b9[_0x5c1ab0];}if(_0x5e02b9[_0xae39ff(0x7cb)])_0x4830a2[_0xae39ff(0x7cb)]=_0x5e02b9[_0xae39ff(0x7cb)];if(_0x5e02b9['status']!==undefined)_0x4830a2[_0xae39ff(0x5e5)]=_0x5e02b9[_0xae39ff(0x5e5)];if(_0x5e02b9['retryable']!==undefined)_0x4830a2[_0xae39ff(0x5d8)]=_0x5e02b9[_0xae39ff(0x5d8)];return _0x4830a2;}function _0x2094dc(_0x1c312d){const _0x4427a8=_0x3ac4d0;if(_0x1c312d===undefined)return _0x4427a8(0x18d);if(_0x1c312d===null)return _0x4427a8(0x650);if(typeof _0x1c312d==='string')return _0x1c312d?'string':_0x4427a8(0x6ad);if(typeof _0x1c312d===_0x4427a8(0x125))return'function';if(typeof _0x1c312d!==_0x4427a8(0x12c))return typeof _0x1c312d;if(Array[_0x4427a8(0x82)](_0x1c312d))return _0x1c312d[_0x4427a8(0x789)]?_0x4427a8(0x77d):_0x4427a8(0x357);if(_0x1c312d instanceof Date)return _0x4427a8(0x292);if(_0x1c312d instanceof Map)return _0x4427a8(0x48d);if(Buffer[_0x4427a8(0x284)](_0x1c312d))return _0x4427a8(0xa8);return _0x4427a8(0x12c);}const _0x4dd475=(_0x2bf5f3,_0xe87da8,_0x5af684)=>new _0x2d3fd9['OKDBError'](_0xe87da8,_0x2bf5f3,_0x5af684),_0x5317b7=(_0x3373ef,_0x34a394,_0x72ca9e)=>_0x4dd475(_0x3ac4d0(0x53b),_0x3373ef+_0x3ac4d0(0x307)+_0x34a394+';\x20got\x20'+_0x2094dc(_0x72ca9e),{'argument':_0x3373ef,'expected':_0x34a394,'got':_0x2094dc(_0x72ca9e)}),_0x19cada=(_0x2795bc,_0x7b367d)=>_0x4dd475('INVALID_TYPE_NAME',_0x2795bc+_0x3ac4d0(0x367)+_0x2094dc(_0x7b367d),{'argument':_0x2795bc,'expected':'non-empty\x20string','got':_0x2094dc(_0x7b367d)}),_0xda1bc7=(_0x261a6d,_0xce28c5)=>_0x4dd475('INVALID_OPTIONS',_0x261a6d+':\x20'+_0xce28c5,{'argument':_0x261a6d,'problem':_0xce28c5});function _0xd4181c(_0x5077e2,_0x52a9da=_0x3ac4d0(0x41d)){const _0x1ee179=_0x3ac4d0;if(_0x5077e2===undefined)return{};if(_0x5077e2===null)throw _0xda1bc7(_0x52a9da,_0x1ee179(0x71b));return _0x5077e2;}return errors={'reclass':_0x5c9c30,'NotImplementedNative':_0x3b3d32,'BY_CODE':_0x491291,'describe':_0x2094dc,'invalidArgument':_0x5317b7,'invalidTypeName':_0x19cada,'invalidOptions':_0xda1bc7,'optionsArg':_0xd4181c,..._0x2d3fd9},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x48c7d4=new Map(),_0x250e43=new Map();let _0x275b74=0x1;const _0x2ef2e1=new Map(),_0x4fa325=new Map();let _0x5cd021=0x1;const _0x16adc7=new Map();let _0x46a6eb=0x1;const _0xcb0a07=new Map();function _0x5debbf(_0x3d4639,_0x1dc9f9=null){const _0x272a98=_0x5ce2,_0x4f2316=_0x46a6eb++;_0x16adc7[_0x272a98(0xc4)](_0x4f2316,_0x3d4639);if(_0x1dc9f9)_0xcb0a07[_0x272a98(0xc4)](_0x4f2316,_0x1dc9f9);return _0x4f2316;}function _0x2efb90(_0x106bfe,_0x455f7e){const _0x2fafa9=_0x5ce2,_0x95ae62=_0x16adc7[_0x2fafa9(0x1fc)](_0x106bfe),_0x3b8180=Array['prototype'][_0x2fafa9(0x106)][_0x2fafa9(0x3c4)](arguments,0x2),_0x504841=_0x1e9527=>_0x124a68(_0x1e9527,_0xcb0a07[_0x2fafa9(0x1fc)](_0x106bfe));let _0xd0b1e7=_0x3b8180;if(_0x455f7e==='start'||_0x455f7e===_0x2fafa9(0x533)||_0x455f7e===_0x2fafa9(0x411)||_0x455f7e===_0x2fafa9(0x56c)||_0x455f7e===_0x2fafa9(0x6cf))_0xd0b1e7=[_0x504841(_0x3b8180[0x0])];else{if(_0x455f7e===_0x2fafa9(0x6bf))_0xd0b1e7=[_0x3b8180[0x0],_0x3b8180[0x1],_0x504841(_0x3b8180[0x2])];else{if(_0x455f7e==='assertCreateAllowed')_0xd0b1e7=[_0x504841(_0x3b8180[0x0])];}}let _0xbb207f=_0x95ae62[_0x455f7e](..._0xd0b1e7);if(_0xbb207f&&typeof _0xbb207f[_0x2fafa9(0x665)]==='function')_0xbb207f=_0x467fe8(_0xbb207f);if(_0x455f7e==='start'){const _0x2c40af=_0xbb207f&&typeof _0xbb207f===_0x2fafa9(0x12c)?_0x5debbf(_0xbb207f):_0x5debbf({});return{'$api':_0x2c40af};}return _0xbb207f===undefined?null:_0xbb207f;}function _0x124a68(_0x23892e,_0x9cca47){const _0x47adac=_0x5ce2;let _0x4f2bb8=_0x3398f9[_0x47adac(0x1fc)](_0x23892e[_0x47adac(0x3d2)]);const _0x1ee43d=_0x4f2bb8&&_0x4f2bb8[_0x47adac(0x22a)]||_0x9cca47||_0x40222f,_0x2a636f=(_0x56c188,..._0x17b33d)=>_0x1ee43d[_0x47adac(0x313)](_0x47adac(0x763),null,_0x56c188,[_0x23892e[_0x47adac(0x4a6)],_0x23892e['name'],..._0x17b33d],!![]);return{'okdb':_0x1ee43d,'key':_0x23892e['key'],'type':_0x23892e[_0x47adac(0x4a6)],'name':_0x23892e[_0x47adac(0x219)],get 'storeEnv'(){const _0x3e9efc=_0x47adac;if(!_0x4f2bb8&&_0x1ee43d&&_0x1ee43d['_isOpen']&&_0x23892e[_0x3e9efc(0x2d0)])_0x4f2bb8=_0x1ee43d[_0x3e9efc(0x6c3)][_0x3e9efc(0x1fc)](_0x23892e['storeEnvName']);return _0x4f2bb8;},'storeEnvName':_0x23892e['storeEnvName'],'config':_0x23892e[_0x47adac(0x5ed)],'meta':_0x23892e[_0x47adac(0x1e9)],'options':_0x23892e[_0x47adac(0x41d)],'emit':(_0x4e217e,_0x4c3d5c)=>_0x2a636f(_0x47adac(0x207),_0x4e217e,_0x4c3d5c),'updateStatus':async(_0x339edd,_0x343b24)=>_0x2a636f(_0x47adac(0x201),_0x339edd,_0x343b24==null?null:String(_0x343b24&&_0x343b24[_0x47adac(0x362)]?_0x343b24['message']:_0x343b24)),'updateMeta':async _0x7623f4=>_0x2a636f(_0x47adac(0x6fa),{'meta':_0x7623f4}),'updateConfig':async _0x563b6e=>_0x2a636f(_0x47adac(0x6fa),{'config':_0x563b6e})};}function _0xdc8cf1(_0x2b0adb,_0x517cce,_0x11d0a6){const _0x577615=_0x5ce2;if(_0x2b0adb==='new'){const _0x64285b=_0x580e72(_0x517cce);let _0x429df8=_0x64285b(_0x11d0a6);if(_0x429df8&&typeof _0x429df8['then']===_0x577615(0x125))_0x429df8=_0x467fe8(_0x429df8);if(!_0x429df8||typeof _0x429df8[_0x577615(0x75e)]!=='function'){const {OKDBError:_0x24e6b1}=requireErrors();throw new _0x24e6b1(_0x577615(0x1fb)+(_0x11d0a6&&_0x11d0a6[_0x577615(0x4a6)])+_0x577615(0x6d4),_0x577615(0x641));}return _0x429df8[_0x577615(0x6aa)]=_0x64285b[_0x577615(0x6aa)],{'$id':_0x5debbf(_0x429df8),'batch':typeof _0x429df8[_0x577615(0x150)]===_0x577615(0x125)};}const _0x49bce8=_0x16adc7['get'](_0x517cce);if(_0x2b0adb===_0x577615(0x208))return _0x16adc7[_0x577615(0x155)](_0x517cce),_0x3010e1['delete'](_0x517cce),null;if(!_0x49bce8)throw new Error(_0x577615(0x5ab));if(typeof _0x49bce8[_0x2b0adb]!==_0x577615(0x125))return null;if(_0x2b0adb===_0x577615(0x75e)||_0x2b0adb==='embedBatch'){const _0x2bc25d=_0x2b0adb===_0x577615(0x150)?_0xb3e80e(_0x517cce,_0x49bce8,_0x11d0a6):_0x51213c(_0x517cce,_0x49bce8,_0x2b0adb,_0x11d0a6);return _0x2b0adb===_0x577615(0x75e)?_0x124fc8(_0x2bc25d):_0x2bc25d[_0x577615(0x1c9)](_0x124fc8);}let _0x399ce2=_0x49bce8[_0x2b0adb]();if(_0x399ce2&&typeof _0x399ce2[_0x577615(0x665)]===_0x577615(0x125))_0x399ce2=_0x467fe8(_0x399ce2);return _0x399ce2===undefined?null:_0x399ce2;}function _0x124fc8(_0x31f6e3){const _0x40156b=_0x5ce2;return _0x31f6e3 instanceof Float32Array?_0x31f6e3:Array[_0x40156b(0x768)](_0x31f6e3);}function _0x10dc31(_0x5de1fa,_0x7086a0,_0x3000e6){const _0x500ef4=_0x5ce2;if(_0x5de1fa===_0x500ef4(0x379)){const _0x2dd1fa=_0x580e72(_0x7086a0);let _0x3ef41b=_0x2dd1fa(_0x3000e6[_0x500ef4(0x5ed)]??{},{'dims':_0x3000e6[_0x500ef4(0x3f0)],'dir':_0x3000e6['dir']});if(_0x3ef41b&&typeof _0x3ef41b['then']==='function')_0x3ef41b=_0x467fe8(_0x3ef41b);for(const _0x63717f of['load',_0x500ef4(0x3e2),'remove','search','count']){if(!_0x3ef41b||typeof _0x3ef41b[_0x63717f]!==_0x500ef4(0x125)){const {OKDBError:_0x154ceb}=requireErrors();throw new _0x154ceb(_0x500ef4(0x350)+_0x63717f+'()','BAD_ALGORITHM_FACTORY',{'method':_0x63717f});}}return{'$id':_0x5debbf(_0x3ef41b)};}const _0x5385a6=_0x16adc7[_0x500ef4(0x1fc)](_0x7086a0);if(_0x5de1fa===_0x500ef4(0x208))return _0x16adc7[_0x500ef4(0x155)](_0x7086a0),null;if(!_0x5385a6)throw new Error(_0x500ef4(0xa0));const _0x5532a7=_0x6f2686=>_0x6f2686?_0x6f2686['map'](_0x4565aa=>({'key':_0x4565aa[_0x500ef4(0x781)],'vector':Float32Array[_0x500ef4(0x768)](_0x4565aa['vector'])})):null;let _0x4b67c6;switch(_0x5de1fa){case _0x500ef4(0x5ac):case'rebuild':{const _0x21e4a4=_0x5532a7(_0x3000e6);_0x4b67c6=_0x5385a6[_0x5de1fa](_0x21e4a4?async()=>_0x21e4a4:undefined);break;}case _0x500ef4(0x3e2):_0x4b67c6=_0x5385a6['add'](_0x3000e6[0x0],Float32Array[_0x500ef4(0x768)](_0x3000e6[0x1]),_0x3000e6[0x2]??undefined);break;case _0x500ef4(0x4bc):_0x4b67c6=_0x5385a6['remove'](_0x3000e6);break;case _0x500ef4(0x4a5):_0x4b67c6=_0x5385a6[_0x500ef4(0x4a5)](Float32Array['from'](_0x3000e6[_0x500ef4(0x5ae)]),_0x3000e6['opts']??{});break;case _0x500ef4(0x346):_0x4b67c6=typeof _0x5385a6['snapshot']===_0x500ef4(0x125)?_0x5385a6[_0x500ef4(0x346)](_0x3000e6??undefined):![];break;case'stop':_0x4b67c6=typeof _0x5385a6['stop']===_0x500ef4(0x125)?_0x5385a6[_0x500ef4(0x533)]():undefined;break;case _0x500ef4(0x217):_0x4b67c6=typeof _0x5385a6['tick']===_0x500ef4(0x125)?_0x5385a6['tick']():undefined;break;case _0x500ef4(0x1f9):return Number(_0x5385a6['count']());case'info':return(typeof _0x5385a6['info']===_0x500ef4(0x125)?_0x5385a6['info']():null)??{};default:throw new Error(_0x500ef4(0x6f5)+_0x5de1fa);}if(_0x4b67c6&&typeof _0x4b67c6[_0x500ef4(0x665)]===_0x500ef4(0x125))_0x4b67c6=_0x467fe8(_0x4b67c6);return _0x4b67c6===undefined?null:_0x4b67c6;}function _0x26e9f1(_0x380d3d,_0x483ad3,_0x14a66d){const _0x1cc9a1=_0x5ce2;if(_0x380d3d===_0x1cc9a1(0x379)){const _0x3d48fa=_0x580e72(_0x483ad3);let _0x5135d4=_0x3d48fa(_0x14a66d);if(_0x5135d4&&typeof _0x5135d4[_0x1cc9a1(0x665)]===_0x1cc9a1(0x125))_0x5135d4=_0x467fe8(_0x5135d4);if(!_0x5135d4)return null;const _0x59b1e5=[_0x1cc9a1(0x30c),_0x1cc9a1(0x393),_0x1cc9a1(0x1fc),_0x1cc9a1(0x1f9),_0x1cc9a1(0x70b),_0x1cc9a1(0xd7)]['filter'](_0x93136c=>typeof _0x5135d4[_0x93136c]===_0x1cc9a1(0x125));return{'$id':_0x5debbf(_0x5135d4),'has':_0x59b1e5};}const _0x303789=_0x16adc7['get'](_0x483ad3);if(_0x380d3d==='free')return _0x16adc7[_0x1cc9a1(0x155)](_0x483ad3),null;if(!_0x303789)throw new Error('storage\x20adapter\x20is\x20gone');const _0x2495d0=_0x15b298=>Float32Array['from'](_0x15b298);let _0x3cc6f5;switch(_0x380d3d){case _0x1cc9a1(0x629):_0x3cc6f5=_0x303789[_0x1cc9a1(0x629)](_0x14a66d[0x0],_0x2495d0(_0x14a66d[0x1]));break;case _0x1cc9a1(0x4bc):_0x3cc6f5=_0x303789['remove'](_0x14a66d);break;case _0x1cc9a1(0x64d):{_0x3cc6f5=typeof _0x303789[_0x1cc9a1(0x64d)]===_0x1cc9a1(0x125)?_0x303789[_0x1cc9a1(0x64d)]():[];if(_0x3cc6f5&&typeof _0x3cc6f5[_0x1cc9a1(0x665)]==='function')_0x3cc6f5=_0x467fe8(_0x3cc6f5);return Array[_0x1cc9a1(0x768)](_0x3cc6f5??[],_0x11c5ea=>({'key':_0x11c5ea[_0x1cc9a1(0x781)],'vector':Array['from'](_0x11c5ea[_0x1cc9a1(0x44f)])}));}case _0x1cc9a1(0x30c):_0x3cc6f5=_0x303789['write'](_0x14a66d[_0x1cc9a1(0x31e)][_0x1cc9a1(0x1c9)](_0x10fd1f=>({'key':_0x10fd1f[_0x1cc9a1(0x781)],'vector':_0x2495d0(_0x10fd1f[_0x1cc9a1(0x44f)])})),_0x14a66d['removes']);break;case _0x1cc9a1(0x393):_0x3cc6f5=_0x303789[_0x1cc9a1(0x393)](_0x14a66d??undefined);if(_0x3cc6f5&&typeof _0x3cc6f5['then']===_0x1cc9a1(0x125))_0x3cc6f5=_0x467fe8(_0x3cc6f5);return Array[_0x1cc9a1(0x768)](_0x3cc6f5??[]);case _0x1cc9a1(0x1fc):{_0x3cc6f5=_0x303789['get'](_0x14a66d);if(_0x3cc6f5&&typeof _0x3cc6f5[_0x1cc9a1(0x665)]===_0x1cc9a1(0x125))_0x3cc6f5=_0x467fe8(_0x3cc6f5);return _0x3cc6f5==null?null:Array[_0x1cc9a1(0x768)](_0x3cc6f5);}case _0x1cc9a1(0x1f9):return Number(_0x303789['count']());case _0x1cc9a1(0x70b):_0x3cc6f5=_0x303789[_0x1cc9a1(0x70b)]();break;case _0x1cc9a1(0xd7):return _0x303789[_0x1cc9a1(0xd7)]()??null;default:throw new Error(_0x1cc9a1(0x5a3)+_0x380d3d);}if(_0x3cc6f5&&typeof _0x3cc6f5[_0x1cc9a1(0x665)]===_0x1cc9a1(0x125))_0x3cc6f5=_0x467fe8(_0x3cc6f5);return _0x3cc6f5===undefined?null:_0x3cc6f5;}const _0x31cc2b=new Map();function _0x51213c(_0x51a64b,_0x2bdac4,_0xc114b8,_0x260691){const _0x39bfcb=_0x5ce2,_0x59e20f=_0x51a64b+'\x00'+_0xc114b8+'\x00'+JSON[_0x39bfcb(0x76f)](_0x260691),_0x6db509=_0x31cc2b[_0x39bfcb(0x1fc)](_0x59e20f);if(_0x6db509){if(_0x6db509['state']===_0x39bfcb(0x51c))throw _0x5b9b68();_0x31cc2b['delete'](_0x59e20f);if(_0x6db509[_0x39bfcb(0x8e)]===_0x39bfcb(0x317))throw _0x6db509[_0x39bfcb(0x2ff)];return _0x6db509[_0x39bfcb(0x2ff)];}const _0x5dd298=_0x2bdac4[_0xc114b8](_0x260691);if(!_0x5dd298||typeof _0x5dd298[_0x39bfcb(0x665)]!==_0x39bfcb(0x125))return _0x5dd298;const _0x3ffff5={'state':_0x39bfcb(0x51c),'value':undefined};_0x5dd298[_0x39bfcb(0x665)](_0x43ae30=>{const _0x18ff82=_0x39bfcb;_0x3ffff5[_0x18ff82(0x8e)]='ok',_0x3ffff5['value']=_0x43ae30;if(_0x31cc2b[_0x18ff82(0x1fc)](_0x59e20f)===_0x3ffff5)_0x5d13a7(_0x2bdac4);},_0x571b04=>{const _0x12377c=_0x39bfcb;_0x3ffff5[_0x12377c(0x8e)]=_0x12377c(0x317),_0x3ffff5[_0x12377c(0x2ff)]=_0x571b04;if(_0x31cc2b['get'](_0x59e20f)===_0x3ffff5)_0x5d13a7(_0x2bdac4);});for(let _0x52c2ca=0x0;_0x52c2ca<0x64&&_0x3ffff5[_0x39bfcb(0x8e)]===_0x39bfcb(0x51c);_0x52c2ca++)process[_0x39bfcb(0x216)]();if(_0x3ffff5[_0x39bfcb(0x8e)]==='ok')return _0x3ffff5[_0x39bfcb(0x2ff)];if(_0x3ffff5[_0x39bfcb(0x8e)]==='err')throw _0x3ffff5[_0x39bfcb(0x2ff)];_0x31cc2b['set'](_0x59e20f,_0x3ffff5);throw _0x5b9b68();}const _0x3010e1=new Map(),_0x2502f4=0xa*0x3c*0x3e8;function _0xb3e80e(_0xb97e81,_0x126850,_0xdc6b3){const _0x562625=_0x5ce2,_0x17e4c5=Array['isArray'](_0xdc6b3)?_0xdc6b3:Array[_0x562625(0x768)](_0xdc6b3??[]);let _0x47f21a=_0x3010e1[_0x562625(0x1fc)](_0xb97e81);if(!_0x47f21a)_0x3010e1[_0x562625(0xc4)](_0xb97e81,_0x47f21a=new Map());const _0x245656=Date[_0x562625(0x2aa)]();for(const [_0x32019c,_0xfbace6]of _0x47f21a)if(_0xfbace6[_0x562625(0x594)][_0x562625(0x8e)]!==_0x562625(0x51c)&&_0x245656-_0xfbace6['req']['at']>_0x2502f4)_0x47f21a[_0x562625(0x155)](_0x32019c);const _0xc1226c=_0x17e4c5[_0x562625(0x1c9)](_0x5f5343=>JSON[_0x562625(0x76f)](_0x5f5343));let _0x2649f7=![];const _0x55e11d=[],_0x2243f3=new Set();for(let _0x10af9b=0x0;_0x10af9b<_0xc1226c[_0x562625(0x789)];_0x10af9b++){const _0x3f48f6=_0x47f21a[_0x562625(0x1fc)](_0xc1226c[_0x10af9b]);if(!_0x3f48f6)!_0x2243f3[_0x562625(0x73b)](_0xc1226c[_0x10af9b])&&(_0x2243f3['add'](_0xc1226c[_0x10af9b]),_0x55e11d[_0x562625(0x235)](_0x10af9b));else{if(_0x3f48f6[_0x562625(0x594)][_0x562625(0x8e)]===_0x562625(0x51c))_0x2649f7=!![];else{if(_0x3f48f6[_0x562625(0x594)][_0x562625(0x8e)]==='err'){const _0x35bf1d=_0x3f48f6[_0x562625(0x594)]['value'];for(const [_0x313e11,_0x5af037]of _0x47f21a)if(_0x5af037['req']===_0x3f48f6[_0x562625(0x594)])_0x47f21a['delete'](_0x313e11);throw _0x35bf1d;}}}}if(_0x2649f7)throw _0x5b9b68();if(_0x55e11d[_0x562625(0x789)]){const _0x54f48f=_0x55e11d[_0x562625(0x1c9)](_0x4da300=>_0x17e4c5[_0x4da300]),_0x39b10f=_0x126850['embedBatch'](_0x54f48f),_0x11aace={'state':_0x562625(0x51c),'value':undefined,'at':0x0},_0x660e08=(_0xd72248,_0x1cc593)=>{const _0x246de3=_0x562625;_0x11aace['state']=_0xd72248,_0x11aace[_0x246de3(0x2ff)]=_0x1cc593,_0x11aace['at']=Date[_0x246de3(0x2aa)]();};if(!_0x39b10f||typeof _0x39b10f['then']!==_0x562625(0x125))_0x660e08('ok',_0x39b10f);else{let _0x15cb02=!![];_0x39b10f['then'](_0x269bc3=>{_0x660e08('ok',_0x269bc3);if(!_0x15cb02)_0x5d13a7(_0x126850);},_0x25a74c=>{const _0x4ad76e=_0x562625;_0x660e08(_0x4ad76e(0x317),_0x25a74c);if(!_0x15cb02)_0x5d13a7(_0x126850);});for(let _0x188186=0x0;_0x188186<0x64&&_0x11aace[_0x562625(0x8e)]===_0x562625(0x51c);_0x188186++)process[_0x562625(0x216)]();_0x15cb02=![];}for(let _0x5c611d=0x0;_0x5c611d<_0x55e11d[_0x562625(0x789)];_0x5c611d++)_0x47f21a[_0x562625(0xc4)](_0xc1226c[_0x55e11d[_0x5c611d]],{'req':_0x11aace,'index':_0x5c611d});if(_0x11aace[_0x562625(0x8e)]===_0x562625(0x317)){for(const _0x5259f1 of _0x55e11d)_0x47f21a[_0x562625(0x155)](_0xc1226c[_0x5259f1]);throw _0x11aace[_0x562625(0x2ff)];}if(_0x11aace[_0x562625(0x8e)]===_0x562625(0x51c))throw _0x5b9b68();}const _0x3dc2d4=_0xc1226c[_0x562625(0x1c9)](_0x5dbf6c=>{const _0x2bceb7=_0x562625,_0x106f7c=_0x47f21a[_0x2bceb7(0x1fc)](_0x5dbf6c),_0x44a100=_0x106f7c[_0x2bceb7(0x594)][_0x2bceb7(0x2ff)];return _0x44a100?_0x44a100[_0x106f7c[_0x2bceb7(0x642)]]:undefined;});for(const _0x2e0252 of _0xc1226c)_0x47f21a[_0x562625(0x155)](_0x2e0252);if(!_0x47f21a[_0x562625(0x670)])_0x3010e1[_0x562625(0x155)](_0xb97e81);return _0x3dc2d4;}function _0x5b9b68(){const _0x4ca667=_0x5ce2;return Object['assign'](new Error(_0x4ca667(0x677)),{'code':'EMBED_PENDING'});}function _0x5d13a7(_0x3c89f5){const _0x5285c6=_0x5ce2;_0x133995();try{const _0x414c70=_0x3c89f5[_0x5285c6(0x6aa)]||_0x40222f;if(_0x414c70&&_0x414c70[_0x5285c6(0x27b)])_0x414c70[_0x5285c6(0x313)]('events',null,_0x5285c6(0x4eb),[_0x5285c6(0x5fb),{}],!![]);}catch{}}function _0x1a958e(_0x6e4d75,_0x4feefc,_0x29a96b){const _0x29e914=_0x5ce2,_0x55bd2a=_0x16adc7[_0x29e914(0x1fc)](_0x6e4d75);if(!_0x55bd2a||typeof _0x55bd2a[_0x4feefc]!==_0x29e914(0x125))return{'__absent':!![]};let _0x25d030=_0x55bd2a[_0x4feefc](...Array[_0x29e914(0x82)](_0x29a96b)?_0x29a96b:[]);if(_0x25d030&&typeof _0x25d030[_0x29e914(0x665)]===_0x29e914(0x125))_0x25d030=_0x467fe8(_0x25d030);return{'value':_0x25d030===undefined?null:_0x25d030};}const _0x3a5a04=new Map();let _0x205703=0x1;const _0x3398f9=new Map(),_0x3928ed=new Map();function _0x2c9ee3(_0x2ba8fa,_0x28c434=null){const _0x42e8bf=_0x5ce2,_0x33b113=_0x205703++;_0x3a5a04['set'](_0x33b113,_0x2ba8fa);if(_0x28c434)_0x3928ed[_0x42e8bf(0xc4)](_0x33b113,_0x28c434);return _0x33b113;}function _0x4841eb(_0x492155){const _0x42683c=_0x5ce2;for(const [_0x516608,_0x3b979c]of _0x3398f9)if(_0x3b979c&&_0x3b979c[_0x42683c(0x22a)]===_0x492155)_0x3398f9[_0x42683c(0x155)](_0x516608);for(const [_0x1e43ef,_0x53f782]of _0xcb0a07)if(_0x53f782===_0x492155)_0xcb0a07[_0x42683c(0x155)](_0x1e43ef);for(const [_0x348782,_0x29ac19]of _0x3928ed)_0x29ac19===_0x492155&&(_0x3928ed[_0x42683c(0x155)](_0x348782),_0x3a5a04[_0x42683c(0x155)](_0x348782));if(_0x40222f===_0x492155)_0x40222f=null;}function _0x24e24c(_0xa02b64,_0x4e41f6){const _0x35b2f3=_0x5ce2;_0x3398f9[_0x35b2f3(0xc4)](_0xa02b64,_0x4e41f6);}function _0x2982ab(_0x48f227){const _0x19c5ca=_0x5ce2;if(_0x48f227&&typeof _0x48f227==='object'&&Object[_0x19c5ca(0x393)](_0x48f227)['length']===0x1&&_0x48f227['$payload']!==undefined)return _0x3a5a04[_0x19c5ca(0x1fc)](_0x48f227[_0x19c5ca(0x77c)]);return _0x48f227;}function _0x467fe8(_0x5a2182){const _0x5b1c7b=_0x5ce2;let _0x5599d7=![],_0x4aaa05=![],_0x3e1347;_0x5a2182[_0x5b1c7b(0x665)](_0xf78e05=>{_0x5599d7=!![],_0x3e1347=_0xf78e05;},_0x1eedc1=>{_0x5599d7=!![],_0x4aaa05=!![],_0x3e1347=_0x1eedc1;});for(let _0x8909d8=0x0;_0x8909d8<0x2710&&!_0x5599d7;_0x8909d8++)process[_0x5b1c7b(0x216)]();if(!_0x5599d7)return _0x5a2182[_0x5b1c7b(0x665)](undefined,_0x428691=>{const _0x4a2818=_0x5b1c7b;try{process['emitWarning'](_0x4a2818(0x487)+(_0x428691&&_0x428691[_0x4a2818(0x362)]?_0x428691[_0x4a2818(0x362)]:_0x428691));}catch{}}),undefined;if(_0x4aaa05)throw _0x3e1347;return _0x3e1347;}function _0x549006(_0x4a335c,_0x21ae22,_0x2b8f80){const _0x3bc3f5=_0x5ce2,_0x917d42=_0x580e72(_0x4a335c),_0x1bdada=_0x3398f9[_0x3bc3f5(0x1fc)](_0x21ae22);try{const _0x5b79ec=_0x917d42(_0x2b8f80,{'okdb':_0x1bdada&&_0x1bdada[_0x3bc3f5(0x22a)],'env':_0x1bdada});if(_0x5b79ec&&typeof _0x5b79ec['then']===_0x3bc3f5(0x125))_0x467fe8(_0x5b79ec);}catch(_0x1210a3){if(_0x1210a3&&_0x1210a3[_0x3bc3f5(0x5b7)]===!![]&&_0x1210a3['code']!==_0x3bc3f5(0x1f1)){const _0x2fd6ac=new Error(_0x1210a3[_0x3bc3f5(0x362)]);_0x2fd6ac['code']=_0x3bc3f5(0x1f1);throw _0x2fd6ac;}throw _0x1210a3;}}const _0x4b4e81=new Map();function _0x255c3a(_0x427dba,_0x4d8c39,_0x75f701,_0x3ddaba,_0x1e5fa3,_0x1ab50a){const _0x5f1183=_0x5ce2,_0xfba468=_0x580e72(_0x427dba),_0x3e21a1=(_0x3398f9[_0x5f1183(0x1fc)](_0x1ab50a)||{})[_0x5f1183(0x22a)]||_0x40222f,_0x591a15=new AbortController(),_0x412270=(_0x178c2a,..._0x587ae0)=>_0x3e21a1[_0x5f1183(0x313)]('queue',_0x5f1183(0x5eb),_0x178c2a,_0x587ae0,![]),_0xc41cf0={'okdb':_0x3e21a1,'env':_0x3398f9[_0x5f1183(0x1fc)](_0x1ab50a)||null,'job':_0x3ddaba,'jobId':_0x1e5fa3,'signal':_0x591a15[_0x5f1183(0x37f)],'heartbeat':()=>_0x412270(_0x5f1183(0x510),_0x75f701),'markProgress':_0x5db62e=>_0x412270(_0x5f1183(0x29c),_0x75f701,_0x5db62e),'log':(_0x5a18a3,_0x3e21d6)=>_0x412270(_0x5f1183(0x7c4),_0x75f701,_0x5a18a3,_0x3e21d6)};_0x4b4e81[_0x5f1183(0xc4)](_0x75f701,{'ctrl':_0x591a15,'call':_0x412270});const _0x496895=()=>{const _0x56ff38=_0x5f1183;_0x4b4e81[_0x56ff38(0x155)](_0x75f701);try{_0x412270(_0x56ff38(0x5c1),_0x75f701);}catch{}};let _0x3c4bc2;try{_0x3c4bc2=_0xfba468(_0x4d8c39,_0xc41cf0);}catch(_0x49ad19){_0x496895();throw _0x49ad19;}if(_0x3c4bc2&&typeof _0x3c4bc2[_0x5f1183(0x665)]==='function'){const _0x5910f0=_0x2b6b0a(_0x3c4bc2);return _0x3c4bc2[_0x5f1183(0x665)](_0x496895,_0x496895),{'$token':_0x5910f0};}return _0x496895(),_0x3c4bc2;}function _0x8f9c0c(){const _0x56b040=_0x5ce2;for(const [_0x7864ef,_0xecaa38]of _0x4b4e81){if(_0xecaa38[_0x56b040(0x169)][_0x56b040(0x37f)][_0x56b040(0x606)])continue;let _0x2da3c7;try{_0x2da3c7=_0xecaa38[_0x56b040(0x3c4)](_0x56b040(0x280),_0x7864ef);}catch{continue;}if(_0x2da3c7&&_0x2da3c7[_0x56b040(0x606)]){const {OKDBError:_0x2d88cb}=requireErrors();_0xecaa38[_0x56b040(0x169)]['abort'](new _0x2d88cb(_0x2da3c7[_0x56b040(0x362)],_0x2da3c7[_0x56b040(0x182)]));}}}let _0x40222f=null;function _0x52b9ab(_0x38105c){_0x40222f=_0x38105c;}function _0x1cb2e2(_0x216072,_0xdb6a81,_0x1ecf43,_0x5ef51d,_0xfe9af8,_0xcfd824,_0x428ce2){const _0x10def9=_0x5ce2,_0x2bc128=_0x580e72(_0x216072),_0x4c2d77=_0x3398f9[_0x10def9(0x1fc)](_0x1ecf43);try{const _0x33229f=_0xdb6a81?_0x2bc128(_0xfe9af8,_0xcfd824):_0x2bc128({'env':_0x4c2d77,'okdb':_0x4c2d77&&_0x4c2d77['okdb'],'payload':_0x2982ab(_0x5ef51d)},_0xfe9af8,_0xcfd824);if(_0x33229f&&typeof _0x33229f[_0x10def9(0x665)]==='function'){if(_0xcfd824&&_0xcfd824[_0x10def9(0x765)]==='inline')_0x33229f['then'](undefined,()=>{});else{if(_0x428ce2){const _0xf8cf30=_0x5db7c4(_0x33229f);if(_0xf8cf30===0x0)return null;return{'$token':_0xf8cf30};}else _0x467fe8(_0x33229f);}}}catch(_0x4f2367){if(_0x4f2367&&_0x4f2367[_0x10def9(0x5b7)]===!![]&&_0x4f2367['code']!==_0x10def9(0x1f1)){const _0x3bd38f=new Error(_0x4f2367[_0x10def9(0x362)]);_0x3bd38f[_0x10def9(0x182)]=_0x10def9(0x1f1);throw _0x3bd38f;}throw _0x4f2367;}return null;}function _0x5db7c4(_0x5e0c84){const _0x2ba1b4=_0x5ce2;let _0x3b0beb=_0x2ba1b4(0x51c),_0x5f0eab;_0x5e0c84[_0x2ba1b4(0x665)](_0x1c7fac=>{_0x3b0beb='ok',_0x5f0eab=_0x1c7fac;},_0xac2505=>{const _0xc175c8=_0x2ba1b4;_0x3b0beb=_0xc175c8(0x317),_0x5f0eab=_0xac2505;});for(let _0x10046d=0x0;_0x10046d<0x64&&_0x3b0beb===_0x2ba1b4(0x51c);_0x10046d++)process[_0x2ba1b4(0x216)]();if(_0x3b0beb==='ok')return 0x0;const _0x568c7c=_0x5cd021++,_0x3c0e09={'state':_0x3b0beb,'value':_0x5f0eab};_0x4fa325[_0x2ba1b4(0xc4)](_0x568c7c,_0x3c0e09);if(_0x3b0beb===_0x2ba1b4(0x51c))_0x5e0c84['then'](_0x367031=>{const _0x45ef87=_0x2ba1b4;_0x3c0e09[_0x45ef87(0x8e)]='ok',_0x3c0e09['value']=_0x367031,_0x133995();},_0x337578=>{const _0x4d5334=_0x2ba1b4;_0x3c0e09[_0x4d5334(0x8e)]='err',_0x3c0e09[_0x4d5334(0x2ff)]=_0x337578,_0x133995();});return _0x568c7c;}function _0x36620f(_0x5c77d7){const _0x5d5aae=_0x5ce2;let _0x132562=_0x250e43['get'](_0x5c77d7);return _0x132562===undefined&&(_0x132562=_0x275b74++,_0x250e43[_0x5d5aae(0xc4)](_0x5c77d7,_0x132562),_0x48c7d4[_0x5d5aae(0xc4)](_0x132562,{'fn':_0x5c77d7,'refs':0x0})),_0x48c7d4[_0x5d5aae(0x1fc)](_0x132562)[_0x5d5aae(0x142)]++,_0x132562;}function _0x243e7d(_0x1e27ca){const _0x48f35f=_0x5ce2,_0xcee2b0=_0x48c7d4[_0x48f35f(0x1fc)](_0x1e27ca);if(!_0xcee2b0)return;--_0xcee2b0[_0x48f35f(0x142)]<=0x0&&(_0x48c7d4['delete'](_0x1e27ca),_0x250e43[_0x48f35f(0x155)](_0xcee2b0['fn']));}function _0x580e72(_0x3b23d0){const _0x3bc069=_0x5ce2,_0x18bb7a=_0x48c7d4[_0x3bc069(0x1fc)](_0x3b23d0);if(!_0x18bb7a)throw new Error(_0x3bc069(0x5fa)+_0x3b23d0);return _0x18bb7a['fn'];}function _0x2b6b0a(_0x16bc64){const _0x3becd6=_0x5ce2;if(_0x16bc64&&typeof _0x16bc64[_0x3becd6(0x665)]===_0x3becd6(0x125)){const _0x1e47e5=_0x5cd021++,_0xc4ec4d={'state':'pending','value':undefined};return _0x4fa325[_0x3becd6(0xc4)](_0x1e47e5,_0xc4ec4d),_0x16bc64['then'](_0x50301e=>{const _0x1bc8f9=_0x3becd6;_0xc4ec4d[_0x1bc8f9(0x8e)]='ok',_0xc4ec4d[_0x1bc8f9(0x2ff)]=_0x50301e,_0x133995();},_0xbb24c0=>{const _0x53ea38=_0x3becd6;_0xc4ec4d[_0x53ea38(0x8e)]=_0x53ea38(0x317),_0xc4ec4d['value']=_0xbb24c0,_0x133995();}),_0x1e47e5;}return 0x0;}let _0x28bca9=()=>{},_0x4fd103=null;function _0x341e9d(_0x159f6e,_0x54b8a3=null){_0x28bca9=_0x159f6e,_0x4fd103=_0x54b8a3;}function _0x18beb2(_0x17aa29){return _0x4fd103===_0x17aa29;}function _0x133995(){_0x28bca9();}function _0x420929(_0x3f916c){const _0x12a6e6=_0x5ce2,_0x1a88a4=_0x4fa325[_0x12a6e6(0x1fc)](_0x3f916c);if(!_0x1a88a4)return{'state':'err','error':{'message':_0x12a6e6(0x561)}};if(_0x1a88a4[_0x12a6e6(0x8e)]==='pending')return{'state':'pending'};_0x4fa325[_0x12a6e6(0x155)](_0x3f916c);if(_0x1a88a4[_0x12a6e6(0x8e)]==='ok')return{'state':'ok','value':_0x1a88a4[_0x12a6e6(0x2ff)]};const _0x5e19dd=_0x1a88a4[_0x12a6e6(0x2ff)];return{'state':_0x12a6e6(0x317),'error':{'message':_0x5e19dd&&_0x5e19dd['message']!=null?String(_0x5e19dd['message']):String(_0x5e19dd),'stack':_0x5e19dd&&_0x5e19dd[_0x12a6e6(0x143)],'code':_0x5e19dd&&_0x5e19dd[_0x12a6e6(0x182)],'status':_0x5e19dd&&typeof _0x5e19dd[_0x12a6e6(0x5e5)]===_0x12a6e6(0x7c0)?_0x5e19dd['status']:undefined,'hold':!!(_0x5e19dd&&_0x5e19dd['processorHold']===!![])}};}function _0x124267(_0x20dd36,_0x44ad25){const _0x2a0def=_0x5ce2;_0x2ef2e1[_0x2a0def(0xc4)](_0x20dd36,_0x44ad25);}function _0x32996e(_0x2892df){const _0x26a494=_0x5ce2;_0x2ef2e1[_0x26a494(0x155)](_0x2892df);}let _0x231393=0x0;function _0x5a69ce(){return _0x231393>0x0;}function _0x590b48(){const _0x1e4771=_0x5ce2;_0x231393++;try{return _0x388d41[_0x1e4771(0x3b9)](undefined,arguments);}finally{_0x231393--;}}function _0x388d41(_0x371a77,_0x48efe0,_0x3d500d,_0x2f880b,_0x33e025,_0x1de969){const _0x59a631=_0x5ce2;switch(_0x371a77){case _0x59a631(0x320):return _0x36620f(_0x48efe0);case _0x59a631(0x176):return _0x243e7d(_0x48efe0);case'call':{const _0x320872=Array[_0x59a631(0x744)][_0x59a631(0x106)][_0x59a631(0x3c4)](arguments,0x2),_0x5966c3=_0x580e72(_0x48efe0)[_0x59a631(0x3b9)](undefined,_0x320872);return _0x5966c3&&typeof _0x5966c3[_0x59a631(0x665)]===_0x59a631(0x125)?_0x467fe8(_0x5966c3):_0x5966c3;}case _0x59a631(0x6f7):{const _0x58cb80=Array[_0x59a631(0x744)][_0x59a631(0x106)][_0x59a631(0x3c4)](arguments,0x2),_0x8ba6fa=_0x580e72(_0x48efe0)[_0x59a631(0x3b9)](undefined,_0x58cb80);if(_0x8ba6fa&&typeof _0x8ba6fa['then']===_0x59a631(0x125))return{'$token':_0x2b6b0a(_0x8ba6fa)};return{'$value':_0x8ba6fa===undefined?null:_0x8ba6fa,'$undef':_0x8ba6fa===undefined};}case _0x59a631(0x452):{const _0x186d1c=_0x2ef2e1[_0x59a631(0x1fc)](_0x48efe0);if(_0x186d1c)_0x186d1c[_0x59a631(0x531)](_0x3d500d,_0x2f880b);return undefined;}case _0x59a631(0x54d):{const _0xaf5e16=_0x2ef2e1['get'](_0x48efe0);if(_0xaf5e16)_0xaf5e16['_log'](_0x3d500d);return undefined;}case _0x59a631(0x1a4):return _0x1cb2e2(_0x48efe0,_0x3d500d,_0x2f880b,_0x33e025,_0x1de969,arguments[0x6],arguments[0x7]);case _0x59a631(0x65f):return _0x549006(_0x48efe0,_0x3d500d,_0x2f880b);case _0x59a631(0x4cd):return _0x255c3a(_0x48efe0,_0x3d500d,_0x2f880b,_0x33e025,_0x1de969,arguments[0x6]);case _0x59a631(0x23c):return _0x2efb90[_0x59a631(0x3b9)](null,Array[_0x59a631(0x744)]['slice']['call'](arguments,0x1));case _0x59a631(0x623):return _0x1a958e(_0x48efe0,_0x3d500d,_0x2f880b);case _0x59a631(0x65b):return _0x420929(_0x48efe0);case _0x59a631(0x4ab):{const _0x27970f=((async()=>{const _0x3df940=_0x59a631,_0x319702=await globalThis['fetch'](_0x48efe0);if(!_0x319702['ok']){const _0x19d4e3=new Error(_0x3df940(0x2c6)+_0x319702[_0x3df940(0x5e5)]);_0x19d4e3[_0x3df940(0x182)]='HTTP_ERROR';throw _0x19d4e3;}return _0x319702[_0x3df940(0x214)]();})());return _0x467fe8(_0x27970f)??null;}case _0x59a631(0x2a6):return _0xdc8cf1(_0x48efe0,_0x3d500d,_0x2f880b);case _0x59a631(0x7a9):return _0x10dc31(_0x48efe0,_0x3d500d,_0x2f880b);case _0x59a631(0x46f):return _0x26e9f1(_0x48efe0,_0x3d500d,_0x2f880b);default:throw new Error(_0x59a631(0x26e)+_0x371a77);}}return bridge_1={'inNativeCall':_0x5a69ce,'regObject':_0x5debbf,'checkSignals':_0x8f9c0c,'setCurrentDb':_0x52b9ab,'forgetDb':_0x4841eb,'storePayload':_0x2c9ee3,'registerEnv':_0x24e24c,'resolvePayload':_0x2982ab,'bridge':_0x590b48,'reg':_0x36620f,'unreg':_0x243e7d,'fnOf':_0x580e72,'track':_0x2b6b0a,'resolve':_0x420929,'registerTarget':_0x124267,'unregisterTarget':_0x32996e,'setKick':_0x341e9d,'kickOwnedBy':_0x18beb2},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x4447b0=_0x30747f;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x3d5c4d}=requireErrors(),_0x23df99=requireBridge(),_0x293f3e=new Map();let _0x4fe000=null;function _0x4cc42f(_0x3617b0){const _0x57192f=_0x5ce2;if(_0x4fe000)return;_0x4fe000=_0x3617b0,_0x3617b0[_0x57192f(0xde)](_0xc7b98b);}function _0xc7b98b(){const _0x15b30f=_0x5ce2,_0x470dd3=_0x4fe000[_0x15b30f(0x7d1)]();for(const _0x196830 of _0x470dd3){const _0x15b57f=_0x293f3e['get'](_0x196830);_0x15b57f&&(_0x293f3e[_0x15b30f(0x155)](_0x196830),_0x15b57f());}}function _0x11f54(_0xaf130f,_0x151d94){_0x293f3e['set'](_0xaf130f,_0x151d94);}class _0x4308a4{constructor(_0x66ae1e){const _0x304caa=_0x5ce2;this['db']=_0x66ae1e,this[_0x304caa(0x23d)]=[],this['scheduled']=![],this['inBatch']=![],this['inflight']=new Set();}[_0x4447b0(0x139)](_0x3a8969,_0x1d6327,_0x515bd9,_0x4503d1){const _0x16fbb9=_0x4447b0;if(_0x23df99['inNativeCall']())try{return Promise[_0x16fbb9(0x65b)](this['db'][_0x16fbb9(0x313)](_0x3a8969,_0x1d6327,_0x515bd9,_0x4503d1));}catch(_0x49de3f){return Promise[_0x16fbb9(0x560)](_0x49de3f);}const _0xc4ad60=new Promise((_0x250c55,_0x51d6af)=>{const _0x49311e=_0x16fbb9;this['queue'][_0x49311e(0x235)]({'item':[_0x3a8969,_0x1d6327,_0x515bd9,_0x4503d1],'resolve':_0x250c55,'reject':_0x51d6af});});this['inflight'][_0x16fbb9(0x3e2)](_0xc4ad60);const _0x48c2bd=()=>this['inflight'][_0x16fbb9(0x155)](_0xc4ad60);return _0xc4ad60[_0x16fbb9(0x665)](_0x48c2bd,_0x48c2bd),!this['scheduled']&&(this[_0x16fbb9(0x45a)]=!![],setImmediate(()=>{this['scheduled']=![],this['commit']();})),_0xc4ad60;}[_0x4447b0(0x719)](){const _0x4311c5=_0x4447b0;if(!this['queue'][_0x4311c5(0x789)])return;if(this[_0x4311c5(0x122)]){!this['scheduled']&&(this['scheduled']=!![],setImmediate(()=>{const _0x5762d4=_0x4311c5;this[_0x5762d4(0x45a)]=![],this[_0x5762d4(0x719)]();}));return;}const _0x2655fe=this[_0x4311c5(0x23d)];this[_0x4311c5(0x23d)]=[],this['_run'](_0x2655fe);}[_0x4447b0(0x2c1)](_0x488b97){const _0x3fcfc4=_0x4447b0;let _0x10db46;this[_0x3fcfc4(0x122)]=!![];try{_0x10db46=this['db'][_0x3fcfc4(0x8c)]['callBatch'](_0x488b97[_0x3fcfc4(0x1c9)](_0x214e40=>_0x214e40[_0x3fcfc4(0x731)]));}catch(_0x53ec21){this[_0x3fcfc4(0x122)]=![];if(_0x488b97['length']>0x1){for(const _0x12f1ec of _0x488b97)this[_0x3fcfc4(0x2c1)]([_0x12f1ec]);return;}const _0x46b130=_0x3d5c4d(_0x53ec21);for(const _0x222b97 of _0x488b97)_0x222b97[_0x3fcfc4(0x560)](_0x46b130);return;}finally{this['inBatch']=![];}try{this['db'][_0x3fcfc4(0x59b)][_0x3fcfc4(0x38d)]();}catch{}const [_0x5a3105,_0x22e34c]=_0x10db46;_0x11f54(_0x22e34c,()=>{const _0x2f404d=_0x3fcfc4;for(let _0x21b048=0x0;_0x21b048<_0x488b97[_0x2f404d(0x789)];_0x21b048++){const _0x58c663=_0x5a3105[_0x21b048];if(_0x58c663&&_0x58c663[0x0])_0x488b97[_0x21b048][_0x2f404d(0x65b)](_0x58c663[0x1]);else _0x488b97[_0x21b048][_0x2f404d(0x560)](_0x3d5c4d(_0x58c663?_0x58c663[0x1]:new Error(_0x2f404d(0x7b1))));}});}async[_0x4447b0(0x725)](){const _0x1ddd19=_0x4447b0;this[_0x1ddd19(0x719)]();while(this[_0x1ddd19(0x7c7)][_0x1ddd19(0x670)]){await Promise[_0x1ddd19(0x78d)]([...this[_0x1ddd19(0x7c7)]]),this[_0x1ddd19(0x719)]();}let _0x1397dc;try{_0x1397dc=this['db'][_0x1ddd19(0x8c)][_0x1ddd19(0x152)]();}catch{return;}await new Promise(_0x153523=>_0x11f54(_0x1397dc,_0x153523));}}return writebatch={'install':_0x4cc42f,'WriteBatch':_0x4308a4,'whenSettled':_0x11f54},writebatch;}var pump,hasRequiredPump;function _0x5ce2(_0x1c80fc,_0x2dab6a){_0x1c80fc=_0x1c80fc-0x82;const _0x17ede0=_0x17ed();let _0x5ce268=_0x17ede0[_0x1c80fc];return _0x5ce268;}function requirePump(){const _0x1b5683=_0x30747f;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x1cc6d2=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x474422{constructor(_0x31aaf8){const _0x29287e=_0x5ce2;this[_0x29287e(0x47a)]=_0x31aaf8,this[_0x29287e(0x747)]=null,this[_0x29287e(0x1ba)]=null,this[_0x29287e(0x74b)]=![],this[_0x29287e(0x259)]=![],this['pumping']=![],this[_0x29287e(0x67f)]=![],this[_0x29287e(0x194)]=0x0,this[_0x29287e(0x732)]=[],this[_0x29287e(0x179)]=[];}[_0x1b5683(0x584)](_0x30f7a3){return new Promise(_0x237d36=>{const _0x1b4fda=_0x5ce2,_0x135c61=setTimeout(_0x5071c0,_0x30f7a3);function _0x5071c0(){clearTimeout(_0x135c61),_0x237d36();}this[_0x1b4fda(0x179)][_0x1b4fda(0x235)](_0x5071c0);});}[_0x1b5683(0x6bc)](){const _0x365f0a=_0x1b5683;if(this[_0x365f0a(0x179)][_0x365f0a(0x789)]===0x0)return;const _0x2a0136=this[_0x365f0a(0x179)];this[_0x365f0a(0x179)]=[];for(const _0x5b6b36 of _0x2a0136)_0x5b6b36();}[_0x1b5683(0x297)](){const _0x2833f7=_0x1b5683;this['stopped']=![],this[_0x2833f7(0x38d)]();}[_0x1b5683(0x533)](){const _0x30d2e1=_0x1b5683;this[_0x30d2e1(0x259)]=!![];if(this[_0x30d2e1(0x747)])clearTimeout(this['timer']);if(this[_0x30d2e1(0x1ba)])clearImmediate(this['immediate']);this[_0x30d2e1(0x747)]=this[_0x30d2e1(0x1ba)]=null,this['_settleWaiters']();}[_0x1b5683(0x38d)](){const _0x3da78f=_0x1b5683;if(this[_0x3da78f(0x259)]||this['immediate'])return;this[_0x3da78f(0x747)]&&(clearTimeout(this['timer']),this['timer']=null),this[_0x3da78f(0x1ba)]=setImmediate(()=>{const _0x53db21=_0x3da78f;this[_0x53db21(0x1ba)]=null,this[_0x53db21(0x73e)]();});}['turn'](){const _0x3265b9=_0x1b5683;if(this['stopped']||this['pumping']){this[_0x3265b9(0x67f)]=!![];return;}this[_0x3265b9(0x397)]=!![];let _0x51093d;try{this[_0x3265b9(0x194)]++,_0x51093d=this[_0x3265b9(0x47a)][_0x3265b9(0x1fe)]();if(this[_0x3265b9(0x4b9)])this[_0x3265b9(0x4b9)]();}catch(_0x5c41a6){_0x51093d=_0x1cc6d2,process[_0x3265b9(0x34d)](()=>{throw _0x5c41a6;});}finally{this[_0x3265b9(0x397)]=![],this[_0x3265b9(0x6bc)]();}if(this[_0x3265b9(0x259)]||_0x51093d===-0x2)return;if(this['dirty'])return this[_0x3265b9(0x67f)]=![],this['wake']();const _0x149c2b=_0x51093d<0x0?_0x1cc6d2:Math[_0x3265b9(0x702)](0x0,Math[_0x3265b9(0x220)](_0x51093d,_0x1cc6d2));if(_0x149c2b<=0x0)return this[_0x3265b9(0x38d)]();this[_0x3265b9(0x747)]=setTimeout(()=>{const _0x2fd861=_0x3265b9;this['timer']=null,this[_0x2fd861(0x73e)]();},Math[_0x3265b9(0x5e7)](_0x149c2b));if(this[_0x3265b9(0x747)][_0x3265b9(0x1bb)])this[_0x3265b9(0x747)][_0x3265b9(0x1bb)]();}}return pump={'Pumper':_0x474422},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x3b5a56=_0x30747f;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0xc6094a=Symbol[_0x3b5a56(0x4b3)](_0x3b5a56(0x543)),_0x3c42e3={'value':null,'done':!![]},_0x424cfc={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol['asyncIterator']=Symbol[_0x3b5a56(0x4b3)](_0x3b5a56(0x13e)));const _0x580f7c={};class _0x2d56e1{constructor(_0x483111){const _0x1ddf54=_0x3b5a56;_0x483111&&(this[_0x1ddf54(0x7c8)]=_0x483111[Symbol[_0x1ddf54(0x753)]]['bind'](_0x483111));}['map'](_0x3079fd){const _0x5bdb06=_0x3b5a56;let _0x4d816f=this,_0x68c661=new _0x2d56e1();return _0x68c661[_0x5bdb06(0x7c8)]=(_0x4206e7=_0x580f7c)=>{const _0x309a22=_0x5bdb06,{async:_0x3b9a0e}=_0x4206e7;let _0x581ec6=_0x4d816f[_0x3b9a0e?Symbol['asyncIterator']:Symbol['iterator']](_0x4206e7);if(!_0x3b9a0e)_0x4d816f[_0x309a22(0xd9)]=!![];let _0x1d4f21=-0x1;return{'next'(_0x53cb63){const _0x345667=_0x309a22;let _0x154366;do{let _0xf151f2;try{if(_0x53cb63)_0xf151f2=_0x53cb63,_0x53cb63=null;else{_0x1d4f21++,_0xf151f2=_0x581ec6[_0x345667(0x419)]();if(_0xf151f2[_0x345667(0x665)])return!_0x3b9a0e&&this[_0x345667(0x3b8)](new Error(_0x345667(0x3dd))),_0xf151f2[_0x345667(0x665)](_0x39bd72=>this[_0x345667(0x419)](_0x39bd72),_0x553b8a=>{const _0x47a150=_0x345667;return this[_0x47a150(0x3b8)](_0x553b8a);});}if(_0xf151f2[_0x345667(0x4c4)]===!![]){this[_0x345667(0x4c4)]=!![];if(_0x68c661['onDone'])_0x68c661[_0x345667(0x2ac)]();return _0xf151f2;}try{_0x154366=_0x3079fd[_0x345667(0x3c4)](_0x4d816f,_0xf151f2[_0x345667(0x2ff)],_0x1d4f21);if(_0x154366&&_0x154366['then']&&_0x3b9a0e)return _0x154366['then'](_0x333e99=>_0x333e99===_0xc6094a?this['next']():{'value':_0x333e99},_0x5a8e4e=>{const _0x1a643b=_0x345667;if(_0x4206e7[_0x1a643b(0x59e)])_0x5a8e4e[_0x1a643b(0x47e)]=!![];return this[_0x1a643b(0x3b8)](_0x5a8e4e);});}catch(_0x36f376){if(_0x4206e7['continueOnRecoverableError'])_0x36f376[_0x345667(0x47e)]=!![];throw _0x36f376;}}catch(_0x35e41e){if(_0x68c661[_0x345667(0x4dd)])try{_0x154366=_0x68c661['handleError'](_0x35e41e,_0x1d4f21);}catch(_0x1fcc5d){return this[_0x345667(0x3b8)](_0x1fcc5d);}else return this[_0x345667(0x3b8)](_0x35e41e);}}while(_0x154366===_0xc6094a);if(_0x154366===_0x3c42e3)return this[_0x345667(0x44a)]();return{'value':_0x154366};},'return'(_0x5e5fa5){const _0x24cfe6=_0x309a22;if(!this[_0x24cfe6(0x4c4)]){_0x424cfc['value']=_0x5e5fa5,this['done']=!![];if(_0x68c661[_0x24cfe6(0x2ac)])_0x68c661[_0x24cfe6(0x2ac)]();_0x581ec6['return']?.();}return _0x424cfc;},'throw'(_0x46475c){const _0x5b087e=_0x309a22;if(_0x46475c[_0x5b087e(0x47e)]){if(_0x68c661[_0x5b087e(0x73f)])try{return{'value':_0x68c661[_0x5b087e(0x73f)](_0x46475c)};}catch(_0x13c412){this[_0x5b087e(0x44a)]();throw _0x13c412;}if(_0x4206e7[_0x5b087e(0x59e)])throw _0x46475c;}this['return']();throw _0x46475c;}};},_0x68c661;}[Symbol[_0x3b5a56(0x5e6)]](_0x505172){const _0x240328=_0x3b5a56;if(_0x505172)_0x505172={..._0x505172,'async':!![]};else _0x505172={'async':!![]};return this[_0x240328(0x753)]=this[_0x240328(0x7c8)](_0x505172);}[Symbol[_0x3b5a56(0x753)]](_0x4cb8b8){const _0x30ef1a=_0x3b5a56;return this[_0x30ef1a(0x753)]=this[_0x30ef1a(0x7c8)](_0x4cb8b8);}[_0x3b5a56(0x3ce)](_0x1f057f){const _0x5caad6=_0x3b5a56;let _0x2aa6b6=this[_0x5caad6(0x1c9)](_0x20ee50=>{const _0x43efd8=_0x5caad6;let _0xab1561=_0x1f057f(_0x20ee50);if(_0xab1561?.[_0x43efd8(0x665)])return _0xab1561[_0x43efd8(0x665)](_0x4b0790=>_0x4b0790?_0x20ee50:_0xc6094a);else return _0xab1561?_0x20ee50:_0xc6094a;}),_0x58ac56=_0x2aa6b6['iterate'];return _0x2aa6b6[_0x5caad6(0x7c8)]=(_0x1d8342=_0x580f7c)=>{if(_0x1d8342['continueOnRecoverableError'])_0x1d8342={..._0x1d8342,'continueOnRecoverableError':![]};return _0x58ac56(_0x1d8342);},_0x2aa6b6;}[_0x3b5a56(0x213)](_0x18e9bf){const _0x18a2f6=_0x3b5a56;let _0x19bc00=this[_0x18a2f6(0x753)]=this[_0x18a2f6(0x7c8)](),_0x1435e6;while((_0x1435e6=_0x19bc00[_0x18a2f6(0x419)]())['done']!==!![]){_0x18e9bf(_0x1435e6[_0x18a2f6(0x2ff)]);}}[_0x3b5a56(0x364)](_0x1aeb9f){const _0x45a956=_0x3b5a56;let _0x62b8b7=new _0x2d56e1();return _0x62b8b7[_0x45a956(0x7c8)]=(_0x561378=_0x580f7c)=>{let _0x5ac8b6=this['iterator']=this['iterate'](_0x561378),_0x23a871=!![];function _0x1c49cd(_0x4cdc16){const _0x242a9d=_0x5ce2;if(_0x23a871)try{_0x23a871=![],_0x5ac8b6=_0x1aeb9f[_0x561378[_0x242a9d(0x84)]?Symbol[_0x242a9d(0x5e6)]:Symbol[_0x242a9d(0x753)]](),_0x4cdc16=_0x5ac8b6[_0x242a9d(0x419)]();if(_0x62b8b7[_0x242a9d(0x2ac)]){if(_0x4cdc16[_0x242a9d(0x665)]){if(!_0x561378[_0x242a9d(0x84)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x4cdc16[_0x242a9d(0x665)](_0xd10b62=>{const _0x491b7d=_0x242a9d;if(_0xd10b62[_0x491b7d(0x4c4)]())_0x62b8b7[_0x491b7d(0x2ac)]();},_0x438df2=>{const _0x4ed55c=_0x242a9d;this[_0x4ed55c(0x44a)]();throw _0x438df2;});}else{if(_0x4cdc16[_0x242a9d(0x4c4)])_0x62b8b7[_0x242a9d(0x2ac)]();}}}catch(_0xff6c9b){this[_0x242a9d(0x3b8)](_0xff6c9b);}else{if(_0x62b8b7[_0x242a9d(0x2ac)])_0x62b8b7[_0x242a9d(0x2ac)]();}return _0x4cdc16;}return{'next'(){const _0x38f5c1=_0x5ce2;try{let _0x3c0326=_0x5ac8b6[_0x38f5c1(0x419)]();if(_0x3c0326[_0x38f5c1(0x665)]){if(!_0x561378[_0x38f5c1(0x84)])throw new Error(_0x38f5c1(0x3dd));return _0x3c0326['then'](_0x4c3159=>{const _0x54f631=_0x38f5c1;if(_0x4c3159[_0x54f631(0x4c4)])return _0x1c49cd(_0x4c3159);return _0x4c3159;});}if(_0x3c0326['done'])return _0x1c49cd(_0x3c0326);return _0x3c0326;}catch(_0x305280){this['throw'](_0x305280);}},'return'(_0x3f5fb0){const _0x1f75ad=_0x5ce2;if(!this['done']){_0x424cfc[_0x1f75ad(0x2ff)]=_0x3f5fb0,this[_0x1f75ad(0x4c4)]=!![];if(_0x62b8b7['onDone'])_0x62b8b7[_0x1f75ad(0x2ac)]();_0x5ac8b6[_0x1f75ad(0x44a)]();}return _0x424cfc;},'throw'(_0x3fcda3){const _0x2b9ea2=_0x5ce2;if(_0x561378[_0x2b9ea2(0x59e)])throw _0x3fcda3;this[_0x2b9ea2(0x44a)]();throw _0x3fcda3;}};},_0x62b8b7;}[_0x3b5a56(0x2ae)](_0xf60e1c){const _0x13870d=_0x3b5a56;let _0xd8d81f=new _0x2d56e1();return _0xd8d81f[_0x13870d(0x7c8)]=(_0x30cadc=_0x580f7c)=>{const _0x55c37f=_0x13870d;let _0x323c29=this[_0x55c37f(0x753)]=this[_0x55c37f(0x7c8)](_0x30cadc),_0x2dd5a0;return{'next'(_0x2fecac){const _0x1d0fb4=_0x55c37f;try{do{if(_0x2dd5a0){let _0xa7887;if(_0x2fecac)_0xa7887=_0x2fecac,_0x2fecac=undefined;else _0xa7887=_0x2dd5a0[_0x1d0fb4(0x419)]();if(_0xa7887['then']){if(!_0x30cadc[_0x1d0fb4(0x84)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0xa7887['then'](_0x2b7ea7=>this[_0x1d0fb4(0x419)](_0x2b7ea7));}if(!_0xa7887[_0x1d0fb4(0x4c4)])return _0xa7887;}let _0x1ffd05;if(_0x2fecac!=undefined)_0x1ffd05=_0x2fecac,_0x2fecac=undefined;else _0x1ffd05=_0x323c29[_0x1d0fb4(0x419)]();if(_0x1ffd05['then']){if(!_0x30cadc['async'])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x2dd5a0=undefined,_0x1ffd05[_0x1d0fb4(0x665)](_0x21adad=>this[_0x1d0fb4(0x419)](_0x21adad));}if(_0x1ffd05[_0x1d0fb4(0x4c4)]){if(_0xd8d81f[_0x1d0fb4(0x2ac)])_0xd8d81f['onDone']();return _0x1ffd05;}try{let _0x5cc938=_0xf60e1c(_0x1ffd05[_0x1d0fb4(0x2ff)]);if(_0x5cc938?.[_0x1d0fb4(0x665)]){if(!_0x30cadc[_0x1d0fb4(0x84)])throw new Error(_0x1d0fb4(0x3dd));return _0x5cc938[_0x1d0fb4(0x665)](_0x18ce77=>{const _0x46ac01=_0x1d0fb4;return Array['isArray'](_0x18ce77)||_0x18ce77 instanceof _0x2d56e1?(_0x2dd5a0=_0x18ce77[Symbol[_0x46ac01(0x753)]](),this[_0x46ac01(0x419)]()):(_0x2dd5a0=null,{'value':_0x18ce77});},_0x3b8d9d=>{const _0x423950=_0x1d0fb4;if(_0x30cadc[_0x423950(0x59e)])_0x3b8d9d[_0x423950(0x47e)]=!![];this[_0x423950(0x3b8)](_0x3b8d9d);});}if(Array[_0x1d0fb4(0x82)](_0x5cc938)||_0x5cc938 instanceof _0x2d56e1)_0x2dd5a0=_0x5cc938[Symbol[_0x1d0fb4(0x753)]]();else return _0x2dd5a0=null,{'value':_0x5cc938};}catch(_0x5aeaf2){if(_0x30cadc[_0x1d0fb4(0x59e)])_0x5aeaf2[_0x1d0fb4(0x47e)]=!![];throw _0x5aeaf2;}}while(!![]);}catch(_0x5e43b0){this['throw'](_0x5e43b0);}},'return'(){const _0x4a2131=_0x55c37f;if(_0xd8d81f['onDone'])_0xd8d81f['onDone']();if(_0x2dd5a0)_0x2dd5a0[_0x4a2131(0x44a)]();return _0x323c29['return']();},'throw'(_0x4057c2){const _0x4cba11=_0x55c37f;if(_0x30cadc[_0x4cba11(0x59e)])throw _0x4057c2;if(_0xd8d81f[_0x4cba11(0x2ac)])_0xd8d81f['onDone']();if(_0x2dd5a0)_0x2dd5a0[_0x4cba11(0x44a)]();this['return']();throw _0x4057c2;}};},_0xd8d81f;}[_0x3b5a56(0x106)](_0x1d7925,_0x2d4258){const _0x119fdc=_0x3b5a56;let _0x4b4064=this[_0x119fdc(0x1c9)]((_0x54a1c1,_0x272bb7)=>{if(_0x272bb7<_0x1d7925)return _0xc6094a;if(_0x272bb7>=_0x2d4258)return _0x3c42e3['value']=_0x54a1c1,_0x3c42e3;return _0x54a1c1;});return _0x4b4064['handleError']=(_0x39f37e,_0x5ee0cc)=>{if(_0x5ee0cc<_0x1d7925)return _0xc6094a;if(_0x5ee0cc>=_0x2d4258)return _0x3c42e3;throw _0x39f37e;},_0x4b4064;}[_0x3b5a56(0x7d4)](_0x40e20e){const _0x1991a0=_0x3b5a56;if(typeof _0x40e20e!=='function')throw new TypeError(_0x1991a0(0x6c6));let _0x3bae9e=this[_0x1991a0(0x1c9)](_0x1fb6f9=>{return _0x1fb6f9;}),_0x3fc2df=_0x3bae9e['iterate'];return _0x3bae9e[_0x1991a0(0x7c8)]=(_0x2d7a0a=_0x580f7c)=>{return _0x3fc2df({..._0x2d7a0a,'continueOnRecoverableError':!![]});},_0x3bae9e[_0x1991a0(0x73f)]=_0x40e20e,_0x3bae9e;}[_0x3b5a56(0x419)](){const _0x58803a=_0x3b5a56;if(!this[_0x58803a(0x753)])this[_0x58803a(0x753)]=this[_0x58803a(0x7c8)]();return this[_0x58803a(0x753)][_0x58803a(0x419)]();}[_0x3b5a56(0x51d)](){const _0x20034a=_0x3b5a56;if(this[_0x20034a(0x1c4)]&&this['asArray']['forEach'])return this[_0x20034a(0x1c4)];const _0x2b8458=new Error(_0x20034a(0x3a4));_0x2b8458[_0x20034a(0x406)]=this[_0x20034a(0x1c4)];throw _0x2b8458;}get[_0x3b5a56(0x1c4)](){const _0x3492e6=_0x3b5a56;if(this['_asArray'])return this[_0x3492e6(0x2ef)];let _0x670ef5=new Promise((_0x44e813,_0x41463d)=>{const _0x5ce9f3=_0x3492e6;let _0x1e90c6=this[_0x5ce9f3(0x7c8)](!![]),_0x4ccddd=[],_0x3be9a1=this;Object[_0x5ce9f3(0x236)](_0x4ccddd,_0x5ce9f3(0x69e),{'value':_0x3be9a1});function _0x17e1ae(_0x5b2df0){const _0x44f98c=_0x5ce9f3;while(_0x5b2df0[_0x44f98c(0x4c4)]!==!![]){if(_0x5b2df0['then'])return _0x5b2df0[_0x44f98c(0x665)](_0x17e1ae);else _0x4ccddd[_0x44f98c(0x235)](_0x5b2df0['value']);_0x5b2df0=_0x1e90c6[_0x44f98c(0x419)]();}_0x44e813(_0x3be9a1[_0x44f98c(0x2ef)]=_0x4ccddd);}_0x17e1ae(_0x1e90c6[_0x5ce9f3(0x419)]());});return _0x670ef5['iterable']=this,this[_0x3492e6(0x2ef)]||(this[_0x3492e6(0x2ef)]=_0x670ef5);}[_0x3b5a56(0x455)](){const _0x3e3f59=_0x3b5a56;return this[_0x3e3f59(0x1c4)];}['at'](_0x117493){for(let _0xe9a5f1 of this){if(_0x117493--===0x0)return _0xe9a5f1;}}}return _0x2d56e1['prototype'][_0x3b5a56(0x3db)]=_0x3c42e3,dist$1[_0x3b5a56(0x1e4)]=_0x2d56e1,dist$1[_0x3b5a56(0x5d5)]=_0xc6094a,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x27141a=_0x30747f;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x373d35}=requireDist$1(),_0xb80449=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0xb53867=Math[_0x27141a(0x220)](_0xb80449,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x5751c5=new Set([_0x27141a(0x569),_0x27141a(0x371),'query',_0x27141a(0x27c)]),_0x3a49ca=Math['min'](_0xb53867,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x1815e9=0x4,_0x4c542b=(_0x1bfe7f,_0x1b4c72=_0xb80449)=>Math[_0x27141a(0x220)](_0x1b4c72,_0x1bfe7f*_0x1815e9),_0x2ac2ae={'value':undefined,'done':!![]};function _0x411000(_0x43f793){const _0x4d8cc7=_0x27141a,_0x4f151d=new _0x373d35();return _0x4f151d[_0x4d8cc7(0x7c8)]=()=>{let _0x1e8383=0x0;return{'next'(){const _0x1fc3f0=_0x5ce2;return _0x1e8383<_0x43f793[_0x1fc3f0(0x789)]?{'value':_0x43f793[_0x1e8383++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x12ea3e=_0x5ce2;return _0x1e8383=_0x43f793[_0x12ea3e(0x789)],{'value':undefined,'done':!![]};},'throw'(){const _0x272b04=_0x5ce2;return _0x1e8383=_0x43f793[_0x272b04(0x789)],{'value':undefined,'done':!![]};}};},_0x4f151d;}const _0x463aaa=_0xf423bf=>typeof _0xf423bf==='number'&&!Number[_0x27141a(0x6f4)](_0xf423bf)?Math[_0x27141a(0x702)](0x0,Math['ceil'](_0xf423bf)):Infinity,_0x4bec0c=_0x16b89a=>typeof _0x16b89a===_0x27141a(0x7c0)?Math['max'](0x0,Math[_0x27141a(0xd3)](_0x16b89a))||0x0:0x0;function _0x24a0bc(_0x5b68cc,_0x1999a3,_0x3f4f96,_0x36e173={}){const _0x335037=_0x27141a,_0xdbc5a5=new _0x373d35(),_0x3adf29=(_0x36e173[_0x335037(0x19a)]||_0x463aaa)(_0x1999a3[_0x335037(0x2a3)]),_0x25ee34=_0x36e173[_0x335037(0x50c)]?_0xb53867:_0xb80449,_0xbafb96=_0x36e173[_0x335037(0x66e)]||((_0x4c82fa,_0x2b8931)=>{const _0x70e39e=_0x335037;_0x4c82fa[_0x70e39e(0x297)]=_0x2b8931,_0x4c82fa['exclusiveStart']=!![],delete _0x4c82fa[_0x70e39e(0x713)];});let _0x6c04e9=null;if(_0x36e173[_0x335037(0x45c)]){const _0x4464e4={..._0x1999a3,'limit':Math[_0x335037(0x220)](_0x3a49ca,_0x3adf29)};_0x6c04e9={'rows':_0x5b68cc(_0x4464e4),'limit':_0x4464e4[_0x335037(0x2a3)]};const _0x3164d4=_0x6c04e9;queueMicrotask(()=>{const _0xfa8657=_0x335037;_0x3164d4[_0xfa8657(0x68d)]=!![];});}return _0xdbc5a5[_0x335037(0x7c8)]=()=>{const _0x17894a=_0x335037;let _0x49ad1b=[],_0x4379dd=0x0,_0x1e2cd=0x0,_0x4cbc35,_0x467731=![],_0x1d4935=![],_0x476647=_0x3a49ca;if(_0x6c04e9&&!_0x6c04e9[_0x17894a(0x68d)]&&!_0x6c04e9[_0x17894a(0xba)]){_0x6c04e9['taken']=!![],_0x49ad1b=_0x6c04e9[_0x17894a(0x50c)],_0x467731=!![],_0x476647=_0x4c542b(_0x476647,_0x25ee34);if(_0x49ad1b[_0x17894a(0x789)]<_0x6c04e9[_0x17894a(0x2a3)])_0x1d4935=!![];if(_0x49ad1b[_0x17894a(0x789)])_0x4cbc35=_0x3f4f96(_0x49ad1b[_0x49ad1b[_0x17894a(0x789)]-0x1]);}const _0xc7312e=()=>{const _0x4ecfd3=_0x17894a;if(_0x1d4935)return;const _0xce4803=_0x3adf29-_0x1e2cd;if(_0xce4803<=0x0){_0x1d4935=!![],_0x49ad1b=[];return;}const _0x3c7b6a={..._0x1999a3,'limit':Math[_0x4ecfd3(0x220)](_0x476647,_0xce4803)};if(_0x467731)_0xbafb96(_0x3c7b6a,_0x4cbc35);_0x467731=!![],_0x476647=_0x4c542b(_0x476647,_0x25ee34),_0x49ad1b=_0x5b68cc(_0x3c7b6a),_0x4379dd=0x0;if(_0x49ad1b[_0x4ecfd3(0x789)]<_0x3c7b6a[_0x4ecfd3(0x2a3)])_0x1d4935=!![];if(_0x49ad1b['length'])_0x4cbc35=_0x3f4f96(_0x49ad1b[_0x49ad1b[_0x4ecfd3(0x789)]-0x1]);};return{'next'(){const _0x33ec63=_0x17894a;if(_0x4379dd>=_0x49ad1b[_0x33ec63(0x789)])_0xc7312e();if(_0x4379dd>=_0x49ad1b['length'])return{'value':undefined,'done':!![]};return _0x1e2cd++,{'value':_0x49ad1b[_0x4379dd++],'done':![]};},'return'(){return _0x1d4935=!![],_0x49ad1b=[],{'value':undefined,'done':!![]};},'throw'(){return _0x1d4935=!![],_0x49ad1b=[],{'value':undefined,'done':!![]};}};},_0xdbc5a5;}function _0x1723da(_0x5b5a9d,_0x4272d6,_0x497cfa,_0x26c1a2,_0x3e49a7={}){const _0x5f58d1=_0x27141a,_0x38932f=(_0x3e49a7[_0x5f58d1(0x19a)]||_0x463aaa)(_0x26c1a2&&_0x26c1a2[_0x5f58d1(0x2a3)]),_0x5474be=_0x5751c5[_0x5f58d1(0x73b)](_0x4272d6)?_0xb53867:_0xb80449,_0x1e2670=(_0x3e49a7[_0x5f58d1(0x2a5)]||_0x4bec0c)(_0x26c1a2&&_0x26c1a2['offset']),_0x49058d=(_0x3111d3,_0x2e6cdd,_0x3125fa)=>{const _0x51016b=_0x5f58d1,_0x4df2eb=_0x38932f-_0x2e6cdd,_0x34d61c=Math[_0x51016b(0x220)](_0x3125fa,_0x4df2eb),_0x151d20={'limit':_0x34d61c,'offset':_0x1e2670+_0x2e6cdd},_0x24048b=_0x5b5a9d(_0x51016b(0x76a),[_0x3111d3,_0x4272d6,_0x34d61c===_0x4df2eb?Infinity:_0x34d61c,..._0x497cfa(_0x151d20)]);if(_0x24048b[0x0]===-0x1){const _0x2fb6e7={'offset':_0x1e2670+_0x2e6cdd};if(_0x4df2eb!==Infinity)_0x2fb6e7[_0x51016b(0x2a3)]=_0x4df2eb;return{'pin':0x0,'rows':_0x5b5a9d(_0x4272d6,_0x497cfa(_0x2fb6e7)),'raw':Infinity,'eager':!![]};}return{'pin':_0x24048b[0x0],'rows':_0x24048b[0x1],'raw':_0x24048b[0x2]};},_0x568c50=_0x277a84=>{const _0x1999fd=_0x5f58d1;if(_0x277a84)_0x5b5a9d(_0x1999fd(0x361),[_0x277a84]);};function _0x1f6a63(_0x3ae0ea,_0x560d44,_0x1eceaa){const _0x21f740=_0x5f58d1;let _0x1e8416=0x0,_0x4028a2=[],_0x338686=0x0,_0x3b1f88=_0x3ae0ea,_0x463e7e=_0x3a49ca,_0x2e1377=_0x38932f-_0x3ae0ea<=0x0;if(_0x1eceaa)({buf:_0x4028a2,pos:_0x338686,consumed:_0x3b1f88,size:_0x463e7e,exhausted:_0x2e1377}=_0x1eceaa);const _0x3ca4bb=_0x289521=>{const _0x71b02a=_0x5ce2;_0x1e8416=_0x289521[_0x71b02a(0x149)],_0x4028a2=_0x289521[_0x71b02a(0x50c)],_0x338686=0x0,_0x3b1f88+=_0x289521[_0x71b02a(0x764)],_0x463e7e=_0x4c542b(_0x463e7e,_0x5474be);if(!_0x1e8416)_0x2e1377=!![];};if(_0x560d44)_0x3ca4bb(_0x560d44);const _0x48b08d=()=>{const _0x21c54f=_0x1e8416;_0x1e8416=0x0,_0x568c50(_0x21c54f);},_0x559159={'next'(){const _0x5b4b44=_0x5ce2;while(_0x338686>=_0x4028a2[_0x5b4b44(0x789)]){if(_0x2e1377||_0x38932f-_0x3b1f88<=0x0)return _0x2e1377=!![],_0x48b08d(),_0x2ac2ae;try{_0x3ca4bb(_0x49058d(_0x1e8416,_0x3b1f88,_0x463e7e));}catch(_0x34124f){_0x1e8416=0x0,_0x2e1377=!![],_0x4028a2=[];throw _0x34124f;}}return{'value':_0x4028a2[_0x338686++],'done':![]};},'return'(){return _0x48b08d(),_0x2ac2ae;},'throw'(){return _0x48b08d(),_0x2ac2ae;},'resumed'(){return _0x1f6a63(0x0,null,{'buf':_0x4028a2,'pos':_0x338686,'consumed':_0x3b1f88,'size':_0x463e7e,'exhausted':_0x2e1377});},[Symbol[_0x21f740(0x753)]](){return this;}};return _0x559159;}function _0x14d57e(){if(_0x38932f<=0x0)return null;const _0x184865=_0x49058d(0x0,0x0,_0x3a49ca);return queueMicrotask(()=>{const _0x681f16=_0x5ce2;!_0x184865['taken']&&(_0x184865[_0x681f16(0x68d)]=!![],_0x568c50(_0x184865[_0x681f16(0x149)]));}),_0x184865;}return{'source':_0x1f6a63,'prefetch':_0x14d57e};}function _0xcc55c6(_0x1590fd){const _0x480b76=_0x27141a;if(!_0x1590fd||_0x1590fd['taken']||_0x1590fd[_0x480b76(0x68d)])return null;return _0x1590fd[_0x480b76(0xba)]=!![],_0x1590fd;}return iterable={'fromArray':_0x411000,'chunkedRange':_0x24a0bc,'pinnedChunks':_0x1723da,'claimPrefetch':_0xcc55c6,'lmdbLimit':_0x463aaa,'lmdbOffset':_0x4bec0c,'CHUNK':_0xb80449,'ROW_CHUNK':_0xb53867,'FIRST':_0x3a49ca},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x35341b=_0x30747f;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x219b4d}=requireIterable();class _0x3bc734{constructor(_0x4fbaff,_0x5ad608='',_0x3087d2={},_0x3d9ad4=null){const _0x80f9c0=_0x5ce2;this[_0x80f9c0(0x5f7)]=_0x4fbaff,this[_0x80f9c0(0x219)]=_0x5ad608,this[_0x80f9c0(0x564)]=!!(_0x3087d2&&_0x3087d2[_0x80f9c0(0x564)]),this[_0x80f9c0(0x360)]=!!(_0x3087d2&&_0x3087d2[_0x80f9c0(0x360)]),this['_root']=_0x3d9ad4||this,this[_0x80f9c0(0x489)]=null;}get['_dupArg'](){const _0x13ca69=_0x5ce2;return this[_0x13ca69(0x564)]?!![]:this[_0x13ca69(0x360)]?'v':![];}['_n'](_0x547901,_0x2b690b){const _0x1123a6=_0x5ce2;return this[_0x1123a6(0x5f7)][_0x1123a6(0x22a)][_0x1123a6(0x313)](_0x1123a6(0x764),this[_0x1123a6(0x5f7)][_0x1123a6(0x219)],_0x547901,[this[_0x1123a6(0x219)],this[_0x1123a6(0x45b)],..._0x2b690b],!![]);}['_read'](_0x1f8263,_0x35a49d){const _0x106dbe=_0x5ce2;return this['_env']['okdb'][_0x106dbe(0x313)](_0x106dbe(0x764),this[_0x106dbe(0x5f7)][_0x106dbe(0x219)],_0x1f8263,[this['name'],this['_dupArg'],..._0x35a49d],![]);}[_0x35341b(0x7bc)](_0x1aa303){const _0x5523f3=_0x35341b,_0x48df99=this[_0x5523f3(0x5f7)][_0x5523f3(0x5ee)];if(_0x48df99)_0x48df99['push']({'sub':this[_0x5523f3(0x219)],'dup':this[_0x5523f3(0x45b)],..._0x1aa303});else this[_0x5523f3(0x5f7)][_0x5523f3(0x22a)][_0x5523f3(0x313)](_0x5523f3(0x764),this[_0x5523f3(0x5f7)][_0x5523f3(0x219)],'batch',[[{'sub':this[_0x5523f3(0x219)],'dup':this[_0x5523f3(0x45b)],..._0x1aa303}]],!![]);}[_0x35341b(0x1fc)](_0x368531){const _0x491b57=_0x35341b;return this['_read'](_0x491b57(0x1fc),[_0x368531]);}[_0x35341b(0x358)](_0x5e0098){const _0x5babd3=_0x35341b;if(this[_0x5babd3(0x360)])return this['_read'](_0x5babd3(0x358),[_0x5e0098]);const _0x4ee897=this[_0x5babd3(0x1fc)](_0x5e0098);return _0x4ee897===undefined?undefined:{'value':_0x4ee897};}[_0x35341b(0x318)](_0x561804){const _0x5275cb=_0x35341b;return this[_0x5275cb(0x46b)]('exists',[_0x561804]);}['getBinary'](_0x443e30){const _0x285088=_0x35341b;return this[_0x285088(0x1fc)](_0x443e30);}[_0x35341b(0x569)](_0x2257a4={}){const _0x24f44a=_0x35341b,_0x34e84a=this[_0x24f44a(0x46b)]('getRange',[_0x2257a4]),_0x170f24=_0x2257a4['values']===![],_0x4f260e=_0x2257a4[_0x24f44a(0x393)]===![];return _0x219b4d(_0x34e84a[_0x24f44a(0x1c9)](([_0x1a849d,_0x14d704,_0x20627e])=>{if(_0x170f24)return _0x1a849d;if(_0x4f260e)return _0x14d704;return _0x20627e===undefined?{'key':_0x1a849d,'value':_0x14d704}:{'key':_0x1a849d,'value':_0x14d704,'version':_0x20627e};}));}['getKeys'](_0x5c7ea9={}){const _0x3d33c9=_0x35341b;return _0x219b4d(this[_0x3d33c9(0x46b)](_0x3d33c9(0x569),[_0x5c7ea9])['map'](([_0x336e87])=>_0x336e87));}[_0x35341b(0x64a)](_0x47f06b,_0x403a15={}){const _0x5ad435=_0x35341b,_0x510809=this[_0x5ad435(0x46b)](_0x5ad435(0x569),[{..._0x403a15,'start':_0x47f06b,'end':_0x47f06b,'inclusiveEnd':!![]}]);return _0x219b4d(_0x510809[_0x5ad435(0x1c9)](([,_0x3bdd0f])=>_0x3bdd0f));}['getCount'](_0x582bbd={}){const _0x193b0d=_0x35341b;return this[_0x193b0d(0x46b)]('count',[_0x582bbd]);}['getStats'](){return{'entryCount':this['getCount']()};}[_0x35341b(0x629)](_0x560500,_0x9e85ee,_0x44d7a1){const _0x305971=_0x35341b;return this[_0x305971(0x7bc)]({'op':_0x305971(0x629),'key':_0x560500,'value':_0x9e85ee,'version':_0x44d7a1}),Promise[_0x305971(0x65b)](!![]);}[_0x35341b(0x496)](_0x1ec752,_0x17ec28,_0x15da15){return this['_write']({'op':'put','key':_0x1ec752,'value':_0x17ec28,'version':_0x15da15}),!![];}[_0x35341b(0x4bc)](_0x31d1a6,_0x32ec15){const _0x517057=_0x35341b;return this[_0x517057(0x7bc)]({'op':'remove','key':_0x31d1a6,'value':_0x32ec15}),Promise[_0x517057(0x65b)](!![]);}[_0x35341b(0x761)](_0x43dd63,_0x512163){const _0x35c116=_0x35341b;return this[_0x35c116(0x7bc)]({'op':'remove','key':_0x43dd63,'value':_0x512163}),!![];}[_0x35341b(0x19e)](){const _0x274cb4=_0x35341b;this[_0x274cb4(0x7bc)]({'op':'clear'});}['clearAsync'](){const _0x56cc55=_0x35341b;return this[_0x56cc55(0x7bc)]({'op':_0x56cc55(0x656)}),Promise[_0x56cc55(0x65b)]();}[_0x35341b(0x4ef)](){const _0x57fa88=_0x35341b;this[_0x57fa88(0x19e)]();}[_0x35341b(0x5c2)](_0x2e647a,_0x2a100c={}){const _0x3dd6c3=_0x35341b,_0xf9ddb4=typeof _0x2e647a===_0x3dd6c3(0x12c)?_0x2e647a:_0x2a100c,_0x1a7cae=typeof _0x2e647a===_0x3dd6c3(0x12c)?_0x2e647a[_0x3dd6c3(0x219)]:_0x2e647a,_0x2a6bf4=new _0x3bc734(this[_0x3dd6c3(0x5f7)],_0x1a7cae,_0xf9ddb4);return _0x2a6bf4[_0x3dd6c3(0x7bc)]({'op':'ensure'}),_0x2a6bf4;}[_0x35341b(0x4a4)](){}['transactionSync'](_0x6b01a0){const _0x4006d9=_0x35341b;return this[_0x4006d9(0x631)](_0x6b01a0);}async[_0x35341b(0x5c9)](_0x166606){const _0x21a9d2=_0x35341b;return this[_0x21a9d2(0x631)](_0x166606);}['childTransaction'](_0x6c485e){return this['_tx'](_0x6c485e);}[_0x35341b(0x631)](_0x39dfd7){const _0x213152=_0x35341b,_0x522f2e=this[_0x213152(0x5f7)];if(_0x522f2e[_0x213152(0x5ee)])return _0x39dfd7();_0x522f2e[_0x213152(0x5ee)]=[];let _0x37e2b6;try{_0x37e2b6=_0x39dfd7();}catch(_0x2df971){_0x522f2e[_0x213152(0x5ee)]=null;throw _0x2df971;}const _0x453941=_0x522f2e[_0x213152(0x5ee)];_0x522f2e['_rawTxnBuf']=null;if(_0x453941['length'])_0x522f2e[_0x213152(0x22a)][_0x213152(0x313)](_0x213152(0x764),_0x522f2e['name'],_0x213152(0x1f4),[_0x453941],!![]);return _0x37e2b6;}[_0x35341b(0x335)](){return{'done'(){}};}[_0x35341b(0x4e1)](){}}return rawdb={'RawDb':_0x3bc734},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x476364=_0x30747f;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x1234ac}=requireRawdb();class _0x3d2747{constructor(_0x13e513){const _0x4f73f9=_0x5ce2;this['env']=_0x13e513,this['_n']=(_0x424482,_0xc6004e,_0x55d486=!![])=>_0x13e513[_0x4f73f9(0x22a)]['_call']('views',_0x13e513[_0x4f73f9(0x219)],_0x424482,_0xc6004e,_0x55d486);}get[_0x476364(0x661)](){const _0x28700a=_0x476364,_0x50dfff=this,_0x2e8091=this[_0x28700a(0x326)],_0x379ad9=_0x2fec75=>_0x2fec75?new _0x1234ac(_0x2e8091,_0x2fec75[_0x28700a(0x219)],{'dupSort':_0x2fec75[_0x28700a(0x7ae)]}):undefined,_0x884a9b=_0x225104=>{const _0x5e3514=_0x28700a,_0x2ed121=_0x50dfff['_n'](_0x5e3514(0x4f7),[_0x225104],![]);if(!_0x2ed121)return undefined;const _0x437b76=_0x2ed121['compiled'],_0x2b421e=new Map(Object[_0x5e3514(0x695)](_0x437b76[_0x5e3514(0x142)])),_0x36942d=new Map(Object[_0x5e3514(0x695)](_0x2ed121['refItemsDbs'])[_0x5e3514(0x1c9)](([_0x10056f,_0x11ccdf])=>[_0x10056f,_0x379ad9(_0x11ccdf)]));return{'name':_0x225104,'compiled':{'T':_0x437b76['T'],'reducers':_0x437b76[_0x5e3514(0x44c)],'refs':_0x2b421e,'granId':_0x437b76[_0x5e3514(0x4ed)],'type':_0x437b76[_0x5e3514(0x4a6)],'_nidFor':_0x24ff28=>_0x50dfff['_n'](_0x5e3514(0x78a),[_0x225104,_0x24ff28],![])},'viewDb':_0x379ad9(_0x2ed121[_0x5e3514(0x2ab)][_0x5e3514(0x749)]),'metaDb':_0x379ad9(_0x2ed121[_0x5e3514(0x2ab)]['metaDb']),'itemsDb':_0x379ad9(_0x2ed121['dbs'][_0x5e3514(0x5be)]),'bucketsDb':_0x379ad9(_0x2ed121['dbs'][_0x5e3514(0x338)]),'sortedDb':_0x379ad9(_0x2ed121[_0x5e3514(0x2ab)][_0x5e3514(0x314)]),'groupsDb':_0x379ad9(_0x2ed121['dbs'][_0x5e3514(0x384)]),'prevDb':_0x379ad9(_0x2ed121[_0x5e3514(0x2ab)][_0x5e3514(0x550)]),'refItemsDbs':_0x36942d,'refTrackingDbs':new Map(Object['entries'](_0x2ed121[_0x5e3514(0x2c8)]||{})['map'](([_0x5d82b5,_0x2053e6])=>[_0x5d82b5,_0x379ad9(_0x2053e6)])),'stopFn':_0x2ed121['hasStopFn']?async()=>_0x50dfff['_n'](_0x5e3514(0x65c),[_0x225104]):null,'bootstrapWorker':null};};return{'get':_0x853a87=>_0x884a9b(_0x853a87),'has':_0x3316f0=>_0x50dfff['_n'](_0x28700a(0x4ad),[],![])[_0x28700a(0x116)](_0x3316f0),'keys':()=>_0x50dfff['_n'](_0x28700a(0x4ad),[],![])[Symbol[_0x28700a(0x753)]](),get 'size'(){const _0x4a97d1=_0x28700a;return _0x50dfff['_n'](_0x4a97d1(0x4ad),[],![])[_0x4a97d1(0x789)];},[Symbol[_0x28700a(0x753)]]:()=>_0x50dfff['_n'](_0x28700a(0x4ad),[],![])['map'](_0x4cadad=>[_0x4cadad,_0x884a9b(_0x4cadad)])[Symbol[_0x28700a(0x753)]]()};}get['_customReducers'](){const _0x5106dd=_0x476364,_0x115419=this;return{'has':_0x38fd1c=>_0x115419['_n'](_0x5106dd(0x66a),[],![])[_0x5106dd(0x116)](_0x38fd1c),get 'size'(){const _0x2a2c03=_0x5106dd;return _0x115419['_n'](_0x2a2c03(0x66a),[],![])['length'];},'keys':()=>_0x115419['_n'](_0x5106dd(0x66a),[],![])[Symbol[_0x5106dd(0x753)]]()};}async[_0x476364(0x3fc)](){const _0x396a96=_0x476364;return this['_n'](_0x396a96(0x3fc),[]);}async[_0x476364(0x1c5)](_0x194ad2={}){return this['_n']('bootSyncedViews',[_0x194ad2]);}async['create'](_0x5a86fe,_0x47c897){const _0x2be718=_0x476364;return await this[_0x2be718(0x6ba)](_0x2be718(0x666),[_0x5a86fe,_0x47c897]),await this[_0x2be718(0x71e)](_0x5a86fe),{'name':_0x5a86fe};}async[_0x476364(0x6ba)](_0x421b34,_0x3ff197){const _0x50f5fa=_0x476364,_0x416e2e=Date[_0x50f5fa(0x2aa)]()+0x7d0;for(;;){try{return this['_n'](_0x421b34,_0x3ff197);}catch(_0x2b0954){if(_0x2b0954?.['code']!==_0x50f5fa(0x4f9)||Date[_0x50f5fa(0x2aa)]()>=_0x416e2e)throw _0x2b0954;await new Promise(_0x5d04ba=>setTimeout(_0x5d04ba,0x32));}}}async['_awaitBuild'](_0x7998d6){const _0x3d0bb7=_0x476364,_0x414d5f=this['env'][_0x3d0bb7(0x22a)]['_pumper'];while(this['_n']('buildPending',[_0x7998d6],![]))await _0x414d5f[_0x3d0bb7(0x584)](0xfa);try{this['_n']('takeBuildResult',[_0x7998d6],![]);}catch(_0x40ac7b){if(_0x40ac7b?.[_0x3d0bb7(0x182)]!==_0x3d0bb7(0x42d)||_0x40ac7b['details']?.[_0x3d0bb7(0x5f8)]!=='taken-over')throw _0x40ac7b;await this[_0x3d0bb7(0x2e1)](_0x7998d6);}}async[_0x476364(0x2e1)](_0x1c19e3){const _0x55637b=_0x476364,_0x53b26e=this[_0x55637b(0x326)][_0x55637b(0x22a)][_0x55637b(0x59b)];let _0x2b9a3d=0x0,_0x4ce059='',_0xb26370=Date[_0x55637b(0x2aa)]();for(;;){if(this['_n'](_0x55637b(0x168),[_0x1c19e3],![]))return this[_0x55637b(0x71e)](_0x1c19e3);const _0x2e9134=this[_0x55637b(0x7bb)](_0x1c19e3);if(!_0x2e9134)throw Object['assign'](new Error(_0x55637b(0x673)+_0x1c19e3+'\x22\x20was\x20removed\x20while\x20it\x20was\x20being\x20built'),{'code':'VIEW_NOT_FOUND'});const _0x557a86=_0x2e9134[_0x55637b(0x8e)],_0x5c9666=_0x58b392=>_0x58b392==='creating'||_0x58b392===_0x55637b(0x66b),_0x1a40a2=Object[_0x55637b(0x6de)](_0x2e9134['sections']?.[_0x55637b(0x142)]??{})[_0x55637b(0x3ff)](_0xc77c3a=>_0x5c9666(_0xc77c3a?.[_0x55637b(0x8e)])),_0x210227=_0x5c9666(_0x557a86)||_0x557a86===_0x55637b(0x206)&&(_0x2e9134[_0x55637b(0x1da)]!=null||_0x1a40a2);if(!_0x210227){if(_0x557a86===_0x55637b(0x628)||_0x557a86===_0x55637b(0x206))return;throw Object[_0x55637b(0xdd)](new Error(_0x55637b(0x673)+_0x1c19e3+_0x55637b(0x4d8)+_0x557a86+'\x22'+(_0x2e9134[_0x55637b(0x373)]?':\x20'+_0x2e9134[_0x55637b(0x373)]:'')),{'code':_0x55637b(0x2f3),'details':{'name':_0x1c19e3,'state':_0x557a86}});}const _0x2e1104=JSON[_0x55637b(0x76f)](_0x2e9134);if(_0x2e1104!==_0x4ce059)_0x4ce059=_0x2e1104,_0xb26370=Date[_0x55637b(0x2aa)]();else{if(!this['env']['okdb']['role']?.[_0x55637b(0x246)]&&Date['now']()-_0xb26370>0x927c0)throw Object[_0x55637b(0xdd)](new Error(_0x55637b(0x673)+_0x1c19e3+_0x55637b(0x67a)),{'code':_0x55637b(0x5b3),'details':{'name':_0x1c19e3}});}Date[_0x55637b(0x2aa)]()>=_0x2b9a3d&&this[_0x55637b(0x326)]['okdb'][_0x55637b(0x4fa)]?.['processors']&&(_0x2b9a3d=Date[_0x55637b(0x2aa)]()+0x3e8,await this['bootSyncedViews']({'skipReadyRescan':!![]})['catch'](()=>{})),await _0x53b26e[_0x55637b(0x584)](0xfa);}}['get'](_0x199f13,_0x1fedb5={}){const _0x2c69f2=_0x476364,_0x52fa89=this['_n'](_0x2c69f2(0x1fc),[_0x199f13,{'preview':_0x1fedb5?.[_0x2c69f2(0x302)]??{}}],![]);if(_0x52fa89==null)return null;const _0x38d7df=this['_n'](_0x2c69f2(0x3ba),[_0x199f13],![]);if(!_0x38d7df)return _0x52fa89;const _0x4eec58=_0x10a871=>(_0x37c9d7={})=>this['_n']('items',[_0x199f13,_0x10a871,_0x37c9d7],![]);if(_0x38d7df['view']){_0x52fa89[_0x2c69f2(0x6fd)]=_0x4eec58({'kind':_0x2c69f2(0x392)});for(const _0x56c457 of _0x38d7df[_0x2c69f2(0x44c)]){if(!_0x56c457[_0x2c69f2(0x6fd)])continue;if(_0x56c457[_0x2c69f2(0x718)]){const _0x44c9b7=_0x52fa89[_0x56c457[_0x2c69f2(0x219)]];if(_0x44c9b7?.[_0x2c69f2(0x302)]&&Array['isArray'](_0x44c9b7[_0x2c69f2(0x302)])){for(const _0x3454df of _0x44c9b7[_0x2c69f2(0x302)])_0x3454df[_0x2c69f2(0x6fd)]=_0x4eec58({'kind':_0x2c69f2(0x5dd),'reducer':_0x56c457[_0x2c69f2(0x219)],'key':_0x3454df['key']});}}else _0x52fa89[_0x56c457[_0x2c69f2(0x219)]]&&(_0x52fa89[_0x56c457[_0x2c69f2(0x219)]][_0x2c69f2(0x6fd)]=_0x4eec58({'kind':_0x2c69f2(0x607),'reducer':_0x56c457[_0x2c69f2(0x219)]}));}}for(const _0xc8470e of _0x38d7df[_0x2c69f2(0x142)]){if(!_0xc8470e['view'])continue;const _0x391dfc=_0x52fa89[_0xc8470e[_0x2c69f2(0x219)]];if(!_0x391dfc||typeof _0x391dfc!==_0x2c69f2(0x12c))continue;_0x391dfc['items']=_0x4eec58({'kind':_0x2c69f2(0x392),'ref':_0xc8470e[_0x2c69f2(0x219)]});for(const _0xd12410 of _0xc8470e[_0x2c69f2(0x44c)]){if(!_0xd12410[_0x2c69f2(0x6fd)])continue;if(_0xd12410[_0x2c69f2(0x718)]){const _0x10438e=_0x391dfc[_0xd12410[_0x2c69f2(0x219)]];if(_0x10438e?.[_0x2c69f2(0x302)]&&Array[_0x2c69f2(0x82)](_0x10438e[_0x2c69f2(0x302)])){for(const _0x2e9e05 of _0x10438e[_0x2c69f2(0x302)])_0x2e9e05['items']=_0x4eec58({'kind':_0x2c69f2(0x5dd),'ref':_0xc8470e[_0x2c69f2(0x219)],'reducer':_0xd12410[_0x2c69f2(0x219)],'key':_0x2e9e05['key']});}}else _0x391dfc[_0xd12410[_0x2c69f2(0x219)]]&&(_0x391dfc[_0xd12410[_0x2c69f2(0x219)]][_0x2c69f2(0x6fd)]=_0x4eec58({'kind':_0x2c69f2(0x607),'ref':_0xc8470e[_0x2c69f2(0x219)],'reducer':_0xd12410[_0x2c69f2(0x219)]}));}}return _0x52fa89;}[_0x476364(0x7bb)](_0x164597){const _0x199cdf=_0x476364;return this['_n'](_0x199cdf(0x7bb),[_0x164597],![]);}[_0x476364(0x427)](_0x1517ac,_0x4db025={}){const _0x92a8bb=_0x476364;return this['_n'](_0x92a8bb(0x427),[_0x1517ac,_0x4db025],![]);}[_0x476364(0x131)](_0x37ca42,_0x47a3c9={}){return this['_n']('range',[_0x37ca42,_0x47a3c9],![]);}[_0x476364(0x151)](_0x38649f,_0x4fc2ba={}){const _0x5546a0=_0x476364;return this['_n'](_0x5546a0(0x151),[_0x38649f,_0x4fc2ba],![]);}async[_0x476364(0x48a)](){const _0x37983b=_0x476364;return this['_n'](_0x37983b(0x48a),[],![]);}async[_0x476364(0x703)](_0x207a11){const _0x14380d=_0x476364;return this['_n'](_0x14380d(0x703),[_0x207a11],![])??null;}async[_0x476364(0x4bc)](_0x27182a,_0x2dbab1={}){const _0x1ec7db=_0x476364;return this['_n'](_0x1ec7db(0x4bc),[_0x27182a,_0x2dbab1]);}async['stop'](_0x1c9d53){const _0x368733=_0x476364;return this['_n'](_0x368733(0x533),[_0x1c9d53]);}async[_0x476364(0x297)](_0x4485eb){const _0x3cb327=_0x476364;await this[_0x3cb327(0x6ba)](_0x3cb327(0x5c0),[_0x4485eb]),await this['_awaitBuild'](_0x4485eb);}async[_0x476364(0x583)](_0xd963a3){const _0x823960=_0x476364;await this[_0x823960(0x6ba)](_0x823960(0x50d),[_0xd963a3]),await this[_0x823960(0x71e)](_0xd963a3);}async['resetView'](_0x186b8f){const _0x53afbe=_0x476364;await this[_0x53afbe(0x6ba)](_0x53afbe(0x25d),[_0x186b8f]),await this[_0x53afbe(0x71e)](_0x186b8f);}[_0x476364(0xf2)](_0x3eef94,_0xb0cf3a={}){const _0x1e2590=_0x476364;return this['_n'](_0x1e2590(0xf2),[_0x3eef94,{'apply':_0xb0cf3a&&_0xb0cf3a[_0x1e2590(0x3b9)]}]);}}return views={'OKDBViews':_0x3d2747},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x148c0f=_0x30747f;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x359669}=requireErrors(),_0x2f0988=requireBridge();class _0x319053{constructor(_0x530e7d){const _0x210f88=_0x5ce2;this[_0x210f88(0x326)]=_0x530e7d,this[_0x210f88(0x22a)]=_0x530e7d[_0x210f88(0x22a)],this[_0x210f88(0x54d)]=_0x530e7d[_0x210f88(0x22a)]['log']['child']({'feature':_0x210f88(0x23d)}),this[_0x210f88(0x7b2)]=new Set();}['_n'](_0x3f92b8,_0x466bff,_0x546fa1=!![]){const _0x3d757e=_0x5ce2;return this[_0x3d757e(0x22a)][_0x3d757e(0x313)]('queue',this['env'][_0x3d757e(0x219)],_0x3f92b8,_0x466bff,_0x546fa1);}['_w'](_0x1edb7b,_0x5a3237){const _0x47f513=_0x5ce2;return this['okdb'][_0x47f513(0x796)](this['_n'](_0x1edb7b,_0x5a3237));}async['_ensure'](){const _0x56447f=_0x5ce2;return this['_n'](_0x56447f(0x493),[]);}async[_0x148c0f(0x48a)](_0x82b5da={}){const _0x173cd3=_0x148c0f;return this['_n'](_0x173cd3(0x48a),[_0x82b5da],![]);}get[_0x148c0f(0x762)](){const _0x18c593=_0x148c0f,{RawDb:_0x240086}=requireRawdb();return this[_0x18c593(0x5a0)]||(this[_0x18c593(0x5a0)]=new _0x240086(this[_0x18c593(0x326)],_0x18c593(0x524)));}async[_0x148c0f(0x75b)](){const _0x492c37=_0x148c0f;return this['_w'](_0x492c37(0x6db),[]);}async[_0x148c0f(0x139)](_0x1aef7e,_0x286cc1,_0x4f2bc9={}){const _0x11aed2=_0x148c0f,{txn:_0x5180c3,..._0x51d2f4}=_0x4f2bc9||{};if(_0x5180c3)return this[_0x11aed2(0x4f0)](_0x5180c3,_0x1aef7e,_0x286cc1,_0x51d2f4);const _0x19a8aa=this['okdb'][_0x11aed2(0x4ba)];if(_0x19a8aa&&_0x19a8aa[_0x11aed2(0x23d)][_0x11aed2(0x789)])_0x19a8aa['commit']();const _0x47c727=this['_n']('enqueueClaim',[_0x1aef7e,_0x286cc1,_0x51d2f4],![]);return this['okdb'][_0x11aed2(0x796)](_0x47c727['id'])['then'](_0x10cb39=>{const _0xb41e9=_0x11aed2;if(_0x47c727[_0xb41e9(0x5b0)])this[_0xb41e9(0x1f0)](_0x1aef7e);else try{this[_0xb41e9(0x22a)][_0xb41e9(0x59b)][_0xb41e9(0x38d)]();}catch{}return _0x10cb39;});}[_0x148c0f(0x1f0)](_0x517ca8){queueMicrotask(()=>{const _0x55bd43=_0x5ce2;try{this['_n'](_0x55bd43(0x1cc),[_0x517ca8]);}catch{}});}[_0x148c0f(0x4f0)](_0x167e47,_0x483304,_0xd2fdb0,_0x575c77){const _0x4ac381=_0x148c0f,_0x5a9a9f=_0x167e47[_0x4ac381(0x764)]??_0x167e47;if(_0x5a9a9f['_closed'])throw new _0x359669(_0x4ac381(0x4d1),_0x4ac381(0x693));if(_0x5a9a9f[_0x4ac381(0x22a)]&&_0x5a9a9f['okdb']!==this['env']&&_0x5a9a9f[_0x4ac381(0x22a)][_0x4ac381(0x219)]!==this[_0x4ac381(0x326)][_0x4ac381(0x219)])throw new _0x359669(_0x4ac381(0x4e7),_0x4ac381(0x329),{'txnEnv':_0x5a9a9f[_0x4ac381(0x22a)][_0x4ac381(0x219)],'queueEnv':this[_0x4ac381(0x326)][_0x4ac381(0x219)]});const _0x3b0f4d=this['_n']('prepareTxnEnqueue',[_0x483304,_0xd2fdb0,_0x575c77],![]);if(_0x3b0f4d[_0x4ac381(0x20d)])return _0x3b0f4d['id'];if(_0x3b0f4d[_0x4ac381(0x2b0)])_0x167e47[_0x4ac381(0x4a7)](_0x4ac381(0x2bd),_0x3b0f4d['release'][_0x4ac381(0x781)],_0x3b0f4d[_0x4ac381(0x2b0)][_0x4ac381(0x2ff)],{'ifVersion':_0x3b0f4d[_0x4ac381(0x2b0)][_0x4ac381(0x7a4)]});if(_0xd2fdb0!==undefined)_0x167e47[_0x4ac381(0x629)](_0x4ac381(0x515),_0x3b0f4d['id'],_0xd2fdb0);_0x167e47[_0x4ac381(0x629)](_0x4ac381(0x2bd),_0x3b0f4d['id'],_0x3b0f4d[_0x4ac381(0x4cd)]);if(typeof _0x5a9a9f['onDo']==='function')_0x5a9a9f['onDo'](()=>{const _0x103113=_0x4ac381;if(this['_n'](_0x103113(0x3b4),[_0x3b0f4d['id'],_0x483304,_0x3b0f4d['when'],_0x3b0f4d[_0x103113(0x667)]]))this[_0x103113(0x1f0)](_0x483304);});return _0x3b0f4d['id'];}async['claim'](_0x5075a7,_0x3c0e3f={}){const _0x28d783=_0x148c0f;if(typeof _0x5075a7!==_0x28d783(0x395)||!_0x5075a7)throw new _0x359669(_0x28d783(0x181),'BAD_PARAM');return this['_w'](_0x28d783(0x3e1),[_0x5075a7,_0x3c0e3f]);}async[_0x148c0f(0x74f)](_0x23c192,_0x1b6b9a,_0x520a80=null){const _0x3aaf8d=_0x148c0f;return this['_w'](_0x3aaf8d(0x74f),[_0x23c192,_0x1b6b9a,_0x520a80]);}async['heartbeat'](_0x42627e,_0x5cb3b2,_0x579566=null){const _0x28da69=_0x148c0f;return this[_0x28da69(0x74f)](_0x42627e,_0x5cb3b2,_0x579566);}async[_0x148c0f(0x640)](_0xdef7e2,_0x4c203e,_0x163271){const _0x218b60=_0x148c0f;return this['_w'](_0x218b60(0x640),[_0xdef7e2,_0x4c203e,_0x163271]);}async[_0x148c0f(0x743)](_0x2d4336,_0x556aac,_0x5c1254){const _0x27c97c=_0x148c0f;return this['_w'](_0x27c97c(0x743),[_0x2d4336,_0x556aac,_0x5c1254]);}async['completeJob'](_0x3d37b7,_0x26679b,_0x5d5bd0){const _0x141cd9=_0x148c0f;return this[_0x141cd9(0x743)](_0x3d37b7,_0x26679b,_0x5d5bd0);}async['markJobFail'](_0x298b8,_0x39db67,_0x4898af,_0x48807c){const _0x3776eb=_0x148c0f,_0x46244f=_0x4898af instanceof Error?{'message':_0x4898af['message'],'stack':_0x4898af[_0x3776eb(0x143)]}:_0x4898af;return this['_w'](_0x3776eb(0x17e),[_0x298b8,_0x39db67,_0x46244f,_0x48807c]);}async[_0x148c0f(0x3ae)](_0x1d7dee,_0x53ac75,_0x16e355,_0x3faa98){return this['markJobFail'](_0x1d7dee,_0x53ac75,_0x16e355,_0x3faa98);}async[_0x148c0f(0x674)](_0xfd88bd,_0x56c858,_0x29f479={}){const _0x2c8b89=_0x148c0f;return this['_w'](_0x2c8b89(0x674),[_0xfd88bd,_0x56c858,_0x29f479]);}async[_0x148c0f(0x539)](_0x2f31fd){const _0x35c885=_0x148c0f;return this['_n'](_0x35c885(0x539),[_0x2f31fd],![]);}async['updateJob'](_0x15fbbc,_0x343e17={},_0x54d934={}){const _0x11af2a=_0x148c0f,_0x1d73db=_0x54d934&&_0x54d934[_0x11af2a(0xb8)];if(!_0x1d73db)return this['_w'](_0x11af2a(0x4f3),[_0x15fbbc,_0x343e17]);const {next:_0x55041e,version:_0x5ee8b7}=this['_n'](_0x11af2a(0x5bc),[_0x15fbbc,_0x343e17],![]);_0x1d73db[_0x11af2a(0x4a7)](_0x11af2a(0x2bd),_0x15fbbc,_0x55041e,{'ifVersion':_0x5ee8b7});let _0x58d70c;if(_0x11af2a(0x720)in _0x343e17){if(_0x343e17[_0x11af2a(0x720)]===undefined){if(this[_0x11af2a(0x326)][_0x11af2a(0x358)](_0x11af2a(0x515),_0x15fbbc))_0x1d73db[_0x11af2a(0x4bc)]('~queue_payloads',_0x15fbbc);}else _0x1d73db[_0x11af2a(0x629)]('~queue_payloads',_0x15fbbc,_0x343e17[_0x11af2a(0x720)]);_0x58d70c=_0x343e17[_0x11af2a(0x720)];}else _0x58d70c=this['env'][_0x11af2a(0x1fc)](_0x11af2a(0x515),_0x15fbbc);return{..._0x55041e,'payload':_0x58d70c};}async[_0x148c0f(0x55a)](_0x52f694,_0x3bc0d1={}){const _0x4ea3ef=_0x148c0f,_0x165641=_0x3bc0d1&&_0x3bc0d1[_0x4ea3ef(0xb8)];if(!_0x165641)return this['_w'](_0x4ea3ef(0x55a),[_0x52f694]);if(!_0x52f694)throw new _0x359669('job\x20id\x20required',_0x4ea3ef(0x2cc));if(!this[_0x4ea3ef(0x326)][_0x4ea3ef(0x358)](_0x4ea3ef(0x2bd),_0x52f694))return![];_0x165641[_0x4ea3ef(0x4bc)](_0x4ea3ef(0x2bd),_0x52f694);if(this[_0x4ea3ef(0x326)][_0x4ea3ef(0x358)](_0x4ea3ef(0x515),_0x52f694))_0x165641[_0x4ea3ef(0x4bc)](_0x4ea3ef(0x515),_0x52f694);if(typeof _0x165641['onDo']===_0x4ea3ef(0x125))_0x165641['onDo'](()=>this['_n'](_0x4ea3ef(0x1f7),[_0x52f694]));return!![];}async[_0x148c0f(0x77e)](_0x2fc150){const _0xd6fb2d=_0x148c0f;return this['_w'](_0xd6fb2d(0x77e),[_0x2fc150]);}async['retryJob'](_0x599e30){return this['_w']('retryJob',[_0x599e30]);}async[_0x148c0f(0x1ed)](_0x36666d,_0x685328,_0x5c2056){const _0x1c7c88=_0x148c0f,_0x30388f=this['_n'](_0x1c7c88(0x1d9),[_0x685328??null,_0x5c2056??0x0,_0x36666d]),_0x5be324=0x1f4;for(let _0x4cb39a=0x0;_0x4cb39a<_0x30388f[_0x1c7c88(0x789)];_0x4cb39a+=_0x5be324){this['_n'](_0x1c7c88(0x1aa),[_0x30388f['slice'](_0x4cb39a,_0x4cb39a+_0x5be324),_0x4cb39a,_0x30388f[_0x1c7c88(0x789)],_0x685328??null]);if(_0x4cb39a+_0x5be324<_0x30388f[_0x1c7c88(0x789)])await new Promise(_0x4c753e=>setImmediate(_0x4c753e));}return this['_n'](_0x1c7c88(0x5c7),[_0x30388f[_0x1c7c88(0x789)],_0x685328??null]),await new Promise(_0x8fdc2d=>setImmediate(_0x8fdc2d)),_0x30388f['length'];}async[_0x148c0f(0x3de)](_0x6ea10d,_0x397d30){const _0x1c7565=_0x148c0f;return this[_0x1c7565(0x1ed)](_0x1c7565(0x4c4),_0x6ea10d,_0x397d30);}async['clearFailed'](_0x5a998f,_0x3c88c9){return this['_clearChunked']('failed',_0x5a998f,_0x3c88c9);}async[_0x148c0f(0x465)](_0x44662d,_0x29b981){const _0x46bef0=_0x148c0f;return this['_w'](_0x46bef0(0x465),[_0x44662d??null,_0x29b981??0x0]);}async['clearStuck'](_0x59150d,_0x2ac2e5){const _0x515264=_0x148c0f;return this['_w'](_0x515264(0x440),[_0x59150d??null,_0x2ac2e5??0x0]);}async[_0x148c0f(0x1a2)](_0x3af222,_0x3e03bb,_0x1f9050){const _0x4f4340=_0x148c0f;return this['_w'](_0x4f4340(0x1a2),[_0x3af222,_0x3e03bb,_0x1f9050]);}async['getJobLogs'](_0x2cecba,_0x3f26bb={}){const _0x2bb066=_0x148c0f;return this['_n'](_0x2bb066(0xfa),[_0x2cecba,_0x3f26bb],![]);}async[_0x148c0f(0x30f)](_0x22f4da,_0x2cbefc={}){const _0x33dfe6=_0x148c0f,{txn:_0x19545b,..._0x9133c8}=_0x2cbefc||{};if(!_0x19545b)return this['_w'](_0x33dfe6(0x30f),[_0x22f4da,_0x9133c8]);const _0x257b0b=(_0x4b53c4,_0x1bf281,_0x315b3b,_0x1e54f6)=>{const _0x2e70bd=_0x33dfe6,_0xf0170c=Math[_0x2e70bd(0xd3)](Number(_0x4b53c4));return Number[_0x2e70bd(0x6b5)](_0xf0170c)?Math[_0x2e70bd(0x220)](_0x1e54f6,Math[_0x2e70bd(0x702)](_0x315b3b,_0xf0170c)):_0x1bf281;},_0x1ac96f=typeof _0x22f4da===_0x33dfe6(0x395)?_0x22f4da[_0x33dfe6(0x1bc)]():'';if(!_0x1ac96f)throw new Error(_0x33dfe6(0x29d));const _0x4e295f=_0x257b0b(_0x9133c8['capacity'],0x0,0x0,0x3b9aca00);_0x19545b[_0x33dfe6(0x629)](_0x33dfe6(0x485),_0x1ac96f,{'id':_0x1ac96f,'tokens':_0x257b0b(_0x9133c8[_0x33dfe6(0x296)],_0x4e295f,0x0,_0x4e295f),'capacity':_0x4e295f,'refill_amount':_0x257b0b(_0x9133c8[_0x33dfe6(0x734)],0x0,0x0,0x3b9aca00),'refill_every':_0x257b0b(_0x9133c8[_0x33dfe6(0x1ac)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x33dfe6(0x2aa)]()});}async[_0x148c0f(0x699)](_0x25e4c4,_0x10a3ba){return this['_w']('updateBucket',[_0x25e4c4,_0x10a3ba]);}async['removeBucket'](_0x3d6c3c){const _0x5ec061=_0x148c0f;return this['_w'](_0x5ec061(0x290),[_0x3d6c3c]);}[_0x148c0f(0x2b3)](_0x1ecbf1){const _0x4a8c2d=_0x148c0f,_0x98b043=this['_n'](_0x4a8c2d(0x2b3),[_0x1ecbf1],![]);return _0x98b043===null&&typeof _0x1ecbf1===_0x4a8c2d(0x395)&&_0x1ecbf1[_0x4a8c2d(0x1bc)]()?undefined:_0x98b043;}async['tryClaimTokens'](_0x5e7000,_0x43934e){const _0x6d3bc2=_0x148c0f;return this['_w'](_0x6d3bc2(0x50e),[_0x5e7000,_0x43934e]);}async[_0x148c0f(0xca)](_0x5a49e0,_0x51d40a={}){const _0x56a683=_0x148c0f;return this['_w'](_0x56a683(0xca),[_0x5a49e0,_0x51d40a]);}async['getJobType'](_0xceb641){const _0x290157=_0x148c0f;return this['_n'](_0x290157(0x341),[_0xceb641],![]);}async[_0x148c0f(0x1b0)](){const _0x5309f7=_0x148c0f;return this['_n'](_0x5309f7(0x1b0),[],![]);}async[_0x148c0f(0x30a)](_0x3397a0){return this['_w']('removeJobType',[_0x3397a0]);}[_0x148c0f(0x5db)](_0x46187e){const _0x4b547b=_0x148c0f;return this['_n'](_0x4b547b(0x5db),[_0x46187e]);}[_0x148c0f(0x3c2)](_0x5dc5f8){return this['_n']('resumeJobType',[_0x5dc5f8]);}[_0x148c0f(0x20b)](_0x284a43){const _0x3b5744=_0x148c0f;return this['_n'](_0x3b5744(0x20b),[_0x284a43]);}async[_0x148c0f(0x6af)](_0x2b9ce7,_0x54af87,_0x32a5b0=![]){return this['_w']('setJobTypeSchema',[_0x2b9ce7,_0x54af87,_0x32a5b0]);}async[_0x148c0f(0x48f)](_0x1706ff){const _0x66c8d4=_0x148c0f;return this['_w'](_0x66c8d4(0x48f),[_0x1706ff]);}async[_0x148c0f(0x1f2)](_0x885d2,_0x31f115=0x5){const _0x40b6a7=_0x148c0f;return this['_n'](_0x40b6a7(0x1f2),[_0x885d2,_0x31f115],![]);}async[_0x148c0f(0x401)](_0x23cdf2){const _0x29a693=_0x148c0f;return this['_n'](_0x29a693(0x398),[_0x23cdf2]);}async[_0x148c0f(0x3ee)](_0x1df27b=0x7530){const _0x31cb77=_0x148c0f;await Promise[_0x31cb77(0x78d)]([...this['_workers']][_0x31cb77(0x1c9)](_0x21e2c6=>_0x21e2c6[_0x31cb77(0x533)](_0x1df27b)));const _0x660139=this['_n']('stopAll',[0x0]);return this[_0x31cb77(0x7b2)]['clear'](),_0x660139;}async[_0x148c0f(0x28d)](){const _0x4c4981=_0x148c0f,_0x2d3f1f=this['_n'](_0x4c4981(0x28d),[]);return this[_0x4c4981(0x7b2)][_0x4c4981(0x656)](),_0x2d3f1f;}[_0x148c0f(0x40a)](_0x4efc08,_0xc9296e,_0x229613){const _0x19eb48=_0x148c0f;let _0x52b699,_0x2f8b38;if(Array[_0x19eb48(0x82)](_0x4efc08)){if(typeof _0xc9296e===_0x19eb48(0x125))throw new _0x359669(_0x19eb48(0x481),_0x19eb48(0x2cc));_0x2f8b38=_0xc9296e??{};if(_0x2f8b38['admission']!=null&&typeof _0x2f8b38[_0x19eb48(0x68a)]!=='function')throw new _0x359669(_0x19eb48(0x573),'BAD_PARAM');if(_0x4efc08[_0x19eb48(0x789)]===0x0)throw new _0x359669(_0x19eb48(0x319),_0x19eb48(0x2cc));_0x52b699=_0x4efc08[_0x19eb48(0x1c9)](_0x535915=>{const _0x591737=_0x19eb48;if(!_0x535915||typeof _0x535915[_0x591737(0x4a6)]!=='string'||!_0x535915['type'])throw new _0x359669(_0x591737(0x18e),'BAD_PARAM');if(typeof _0x535915[_0x591737(0x1a4)]!=='function')throw new _0x359669(_0x591737(0x54a)+_0x535915['type']+_0x591737(0x3d8),'BAD_PARAM');return{..._0x535915};});}else{_0x2f8b38=_0x229613??{};if(typeof _0xc9296e!==_0x19eb48(0x125))throw new _0x359669(_0x19eb48(0x54a)+_0x4efc08+_0x19eb48(0x3d8),_0x19eb48(0x2cc));_0x52b699=[{'type':_0x4efc08,'handler':_0xc9296e,..._0x229613??{}}];}const _0x4ebb71=this[_0x19eb48(0x22a)];for(const _0x16eec7 of _0x52b699){const _0x268364=_0x16eec7['handler'];_0x16eec7[_0x19eb48(0x1a4)]=function(..._0x14d078){const _0x45890a=_0x19eb48;return _0x4ebb71[_0x45890a(0x2e9)]()[_0x45890a(0x665)](()=>_0x268364[_0x45890a(0x3b9)](this,_0x14d078));};}const _0xafb0c0=this['_n'](_0x19eb48(0x40a),[_0x52b699,_0x2f8b38]),_0x5d4334=this,_0x4a346e={'id':_0xafb0c0['id'],'type':_0xafb0c0[_0x19eb48(0x4a6)],get 'running'(){const _0x33b84d=_0x19eb48;return _0x5d4334['_n'](_0x33b84d(0x49d),[_0xafb0c0['id']],![])[_0x33b84d(0x74b)];},'isRunning'(){return _0x5d4334['_n']('workerState',[_0xafb0c0['id']],![])['running'];},async 'stop'(_0xfb4af4=0x7530){const _0x13315d=_0x19eb48;_0x5d4334['_n'](_0x13315d(0x140),[_0xafb0c0['id']]);const _0x1a6726=Date[_0x13315d(0x2aa)]()+_0xfb4af4;while(_0x5d4334['_n'](_0x13315d(0x49d),[_0xafb0c0['id']],![])[_0x13315d(0x439)]>0x0&&Date['now']()<_0x1a6726)await new Promise(_0x2a316f=>setTimeout(_0x2a316f,0x2));_0x5d4334['_n']('stopWorkerAbort',[_0xafb0c0['id']]),_0x2f0988[_0x13315d(0x5b5)](),_0x5d4334[_0x13315d(0x7b2)]['delete'](_0x4a346e);},async 'kill'(){const _0x313eb1=_0x19eb48;_0x5d4334['_n'](_0x313eb1(0x79b),[_0xafb0c0['id']]),_0x5d4334['_workers'][_0x313eb1(0x155)](_0x4a346e);}};return this[_0x19eb48(0x7b2)][_0x19eb48(0x3e2)](_0x4a346e),_0x4a346e;}['worker'](_0x9e33cc){const _0x4862da=_0x148c0f;throw new _0x359669(_0x4862da(0x13a)+_0x9e33cc+_0x4862da(0x534)+_0x9e33cc+_0x4862da(0x3cd),_0x4862da(0x3e7));}[_0x148c0f(0x473)](_0x44976f){return this['worker'](_0x44976f);}}return queue={'OKDBQueue':_0x319053},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x30189b=_0x30747f;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x5a9835}=requireIterable();class _0x5aa170{constructor(_0x6b8091){const _0x40c002=_0x5ce2;this[_0x40c002(0x326)]=_0x6b8091,this[_0x40c002(0x22a)]=_0x6b8091[_0x40c002(0x22a)];const _0x713465=(_0xc0a5aa,_0x211583)=>this['_n'](_0xc0a5aa,_0x211583,![]);this[_0x40c002(0x301)]={'getDiffs':(_0x10de72,_0x4bed81,_0x7c3a3f)=>_0x713465('storeGetDiffs',[_0x10de72,_0x4bed81,_0x7c3a3f||{}]),'hasDiff':(_0x18fe44,_0x2c338e,_0x1f9fb7)=>_0x713465(_0x40c002(0xa7),[_0x18fe44,_0x2c338e,_0x1f9fb7]),'getHead':(_0x5c4eaa,_0x10e3f3)=>_0x713465('storeGetHead',[_0x5c4eaa,_0x10e3f3])??null,'getHeadCount':_0x8f848e=>_0x713465(_0x40c002(0x3b6),[_0x8f848e]),'getTotalHeadCount':()=>_0x713465(_0x40c002(0x6ca),[]),'getDiffsInRange':(_0x17e4a8,_0x5e33b9,_0x2ce0a1)=>_0x713465(_0x40c002(0x7ce),[_0x17e4a8??null,_0x5e33b9,_0x2ce0a1]),'getConfig':()=>_0x713465(_0x40c002(0x4ee),[])??null,'getCursor':()=>this['_n'](_0x40c002(0x15a),[],![])??null,get 'db'(){try{return _0x713465('storeGetTotalHeadCount',[]),{};}catch{return null;}}};}get[_0x30189b(0x1e8)](){const _0x23fc83=_0x30189b,_0x25765d=(this[_0x23fc83(0x326)]['processor']?.['list']?.()||[])['filter'](_0x1d1fea=>String(_0x1d1fea[_0x23fc83(0x7d2)]||'')['startsWith']('time-machine:'))[_0x23fc83(0x789)];return{'size':_0x25765d};}['_n'](_0xedac84,_0x3fe52,_0x36e11f=!![]){const _0x3897cf=_0x30189b;return this['okdb'][_0x3897cf(0x313)]('tm',this[_0x3897cf(0x326)][_0x3897cf(0x219)],_0xedac84,_0x3fe52,_0x36e11f);}async['enable'](_0xb6e20f){const _0x5d83ae=_0x30189b;return this['_n'](_0x5d83ae(0xaa),[_0xb6e20f??null]);}async['disable'](_0x1b89d0){const _0x15d024=_0x30189b;return this['_n'](_0x15d024(0x26d),[_0x1b89d0??null]);}async[_0x30189b(0x571)](){const _0x42ba06=_0x30189b;return this['_n'](_0x42ba06(0x571),[]);}async[_0x30189b(0x387)](){return this['_n']('disableAll',[]);}async['drop'](_0x302e4a){const _0x403e86=_0x30189b;return this['_n'](_0x403e86(0x4ef),[_0x302e4a??null]);}async[_0x30189b(0x70b)](){const _0x379a7d=_0x30189b;return this['_n'](_0x379a7d(0x70b),[]);}['isEnabled'](_0x27acc7){return this['_n']('isEnabled',[_0x27acc7??null],![]);}[_0x30189b(0x48a)](){const _0x2d81a3=_0x30189b;return this['_n'](_0x2d81a3(0x48a),[],![]);}[_0x30189b(0x5e5)](_0x400da7){return this['_n']('status',[_0x400da7??null],![]);}['getCursor'](_0x7f1dda){const _0x1c1aa3=_0x30189b;if(!_0x7f1dda)return this['_n']('getLegacyCursor',[],![]);return this['_n'](_0x1c1aa3(0x428),[_0x7f1dda],![]);}[_0x30189b(0x15a)](){const _0xe5a7f3=_0x30189b;return this['_n'](_0xe5a7f3(0x15a),[],![]);}['getStateAt'](_0x572499,_0x587f10,_0x47e8bc){return this['_n']('getStateAt',[_0x572499,_0x587f10,_0x47e8bc],![]);}['getHistory'](_0xc81240,_0x46f47a,_0x14d527){return this['_n']('getHistory',[_0xc81240,_0x46f47a,_0x14d527||{}],![]);}[_0x30189b(0x27c)](_0x243ec1,_0x303818,_0x20c8e8){const _0x198b65=_0x30189b;return this['_n'](_0x198b65(0x27c),[_0x243ec1??null,_0x303818,_0x20c8e8],![])[Symbol['iterator']]();}async[_0x30189b(0x282)](_0x592f0d){const _0x57307f=_0x30189b;return this['_n'](_0x57307f(0x282),[_0x592f0d??null]);}}return timemachine={'OKDBTimeMachine':_0x5aa170},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x7f9f7f=_0x30747f;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x251a2c=require$$0,{Readable:_0x16f983}=require$$1,{OKDBError:_0x4266f1,optionsArg:_0x57aa2f,invalidArgument:_0x336cc5}=requireErrors(),{RawDb:_0x3e879f}=requireRawdb();async function _0x597252(_0x5624dd){const _0x97857=_0x5ce2;if(Buffer[_0x97857(0x284)](_0x5624dd))return _0x5624dd;if(_0x5624dd instanceof Uint8Array)return Buffer[_0x97857(0x768)](_0x5624dd);if(typeof _0x5624dd===_0x97857(0x395))return Buffer[_0x97857(0x768)](_0x5624dd);const _0x388d1c=[];for await(const _0x40748c of _0x5624dd)_0x388d1c['push'](Buffer[_0x97857(0x284)](_0x40748c)?_0x40748c:Buffer['from'](_0x40748c));return Buffer['concat'](_0x388d1c);}class _0x2f573c{constructor(_0x11f898){const _0x1e9883=_0x5ce2;this[_0x1e9883(0x326)]=_0x11f898,this[_0x1e9883(0x22a)]=_0x11f898[_0x1e9883(0x22a)];}['_n'](_0x4ce6e9,_0x2981df,_0x2c3063=!![]){const _0x499c64=_0x5ce2;return this[_0x499c64(0x22a)][_0x499c64(0x313)](_0x499c64(0xab),this[_0x499c64(0x326)][_0x499c64(0x219)],_0x4ce6e9,_0x2981df,_0x2c3063);}[_0x7f9f7f(0x297)](){return!![];}[_0x7f9f7f(0x533)](){}async[_0x7f9f7f(0x186)](){const _0xb928b4=_0x7f9f7f;this['_n'](_0xb928b4(0x493),[]);}async[_0x7f9f7f(0x251)](_0x259018,_0x15de46){const _0x1e02e3=_0x7f9f7f;return this[_0x1e02e3(0x22a)][_0x1e02e3(0x796)](this['_n']('writeBlob',[_0x259018,await _0x597252(_0x15de46)]));}get['_blobStatusDb'](){const _0x334780=_0x7f9f7f;return this[_0x334780(0xac)]||(this[_0x334780(0xac)]=new _0x3e879f(this['env'],_0x334780(0x459)));}async[_0x7f9f7f(0x5aa)](_0x1eca89){const _0x548a73=_0x7f9f7f;return this[_0x548a73(0x4b0)]['_tx'](_0x1eca89);}async[_0x7f9f7f(0x689)](_0x56044b){const _0x16e783=_0x7f9f7f,{id:_0x237c82,stream:_0x57d194,mime:mime=_0x16e783(0x72d),path:_0x52c6f3='',txn:txn=null}=_0x57aa2f(_0x56044b);if(!_0x237c82)throw _0x336cc5(_0x16e783(0x5e4),_0x16e783(0x3dc),_0x237c82);if(!_0x57d194)throw _0x336cc5(_0x16e783(0x2cd),'a\x20Buffer\x20or\x20readable\x20stream',_0x57d194);const _0x2010ba=await _0x597252(_0x57d194);if(txn){const _0xfaeb5a=this['_n'](_0x16e783(0x709),[_0x237c82,_0x2010ba,{'mime':mime,'path':_0x52c6f3}]);return txn[_0x16e783(0x629)](_0x16e783(0x254),_0x237c82,_0xfaeb5a['record']),txn['onDo'](()=>this['_n'](_0x16e783(0x514),[_0xfaeb5a['hook']])),txn[_0x16e783(0x3d4)](()=>this['_n'](_0x16e783(0x234),[_0xfaeb5a[_0x16e783(0x46e)]])),_0xfaeb5a[_0x16e783(0x729)];}return this[_0x16e783(0x22a)]['_settleWrite'](this['_n'](_0x16e783(0x689),[_0x237c82,_0x2010ba,{'mime':mime,'path':_0x52c6f3}]));}['get'](_0x8bfcb){const _0x56ea1c=_0x7f9f7f;return this['_n'](_0x56ea1c(0x1fc),[_0x8bfcb],![])??null;}[_0x7f9f7f(0x67b)](_0x1fca44){const _0x119e07=_0x7f9f7f,_0xf35705=this[_0x119e07(0x2d3)](_0x1fca44);if(!_0x251a2c[_0x119e07(0x2c3)](_0xf35705))throw Object['assign'](new Error(_0x119e07(0x504)+_0x1fca44),{'status':0x194});return this[_0x119e07(0x18a)](_0x1fca44);}[_0x7f9f7f(0x18a)](_0x3bf074){const _0x19c8e5=0x100*0x400,_0x2aa9ec=this;let _0x107629=0x0;return new _0x16f983({'highWaterMark':_0x19c8e5,'read'(){const _0x277187=_0x5ce2;let _0x20afcd;try{const _0x33fded=_0x2aa9ec['_n']('readHashRange',[_0x3bf074,_0x107629,_0x19c8e5],![]);_0x20afcd=Buffer[_0x277187(0x284)](_0x33fded)?_0x33fded:Buffer[_0x277187(0x768)](_0x33fded);}catch(_0x1640d5){this['destroy'](_0x1640d5);return;}_0x107629+=_0x20afcd[_0x277187(0x789)];if(_0x20afcd[_0x277187(0x789)])this[_0x277187(0x235)](_0x20afcd);if(_0x20afcd[_0x277187(0x789)]<_0x19c8e5)this['push'](null);}});}async[_0x7f9f7f(0x30e)](_0x57c378){const _0x2fd5c1=_0x7f9f7f;return this[_0x2fd5c1(0x22a)][_0x2fd5c1(0x547)](this['_n'](_0x2fd5c1(0x30e),[_0x57c378],![]));}async['stream'](_0x16c028){const _0x1f5b9c=_0x7f9f7f,_0x56b9d8=this['get'](_0x16c028);if(!_0x56b9d8)throw Object[_0x1f5b9c(0xdd)](new Error(_0x1f5b9c(0x529)+_0x16c028),{'status':0x194});const _0x2413ea=this[_0x1f5b9c(0x2d3)](_0x56b9d8[_0x1f5b9c(0x88)]);if(!_0x251a2c[_0x1f5b9c(0x2c3)](_0x2413ea))throw Object[_0x1f5b9c(0xdd)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x16c028),{'status':0x194});return{'stream':this[_0x1f5b9c(0x18a)](_0x56b9d8['hash']),'record':_0x56b9d8};}async[_0x7f9f7f(0x4bc)](_0x261928,_0x31f276){const _0x3c97ac=_0x7f9f7f,{txn:txn=null}=_0x57aa2f(_0x31f276);if(txn){const _0x45b66a=this['_n'](_0x3c97ac(0x499),[_0x261928]);txn['remove'](_0x3c97ac(0x254),_0x261928),txn['onDo'](()=>this['_n'](_0x3c97ac(0x514),[_0x45b66a['hook']])),txn[_0x3c97ac(0x3d4)](()=>this['_n'](_0x3c97ac(0x234),[_0x45b66a['hook']]));return;}return this['okdb'][_0x3c97ac(0x796)](this['_n'](_0x3c97ac(0x4bc),[_0x261928]));}async[_0x7f9f7f(0x658)](_0x134334,_0x413e28={}){const _0x464bbd=_0x7f9f7f;return this['_n'](_0x464bbd(0x658),[_0x134334,_0x413e28],![]);}['getBlobStatus'](_0x3832a5){const _0x588a6d=_0x7f9f7f;return this['_n'](_0x588a6d(0x59d),[_0x3832a5],![]);}[_0x7f9f7f(0x412)](){return this['_n']('listBlobStatus',[],![]);}['gcOrphanedBlobs'](_0x4406ca){const {minAgeMs:_0x5b5b39}=_0x57aa2f(_0x4406ca);return this['_n']('gcOrphanedBlobs',[_0x5b5b39??null]);}[_0x7f9f7f(0x74d)](_0x426a24,_0x4f1adf){const _0x5094da=_0x7f9f7f;if(typeof _0x4f1adf!==_0x5094da(0x125))throw new _0x4266f1('files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function',_0x5094da(0x2cc));const _0x167bca=this['_n'](_0x5094da(0x74d),[_0x426a24,_0x4f1adf]);return()=>this['_n'](_0x5094da(0x704),[_0x167bca]);}async[_0x7f9f7f(0x294)](_0x36ba24){const _0xcaa213=_0x7f9f7f;return _0x36ba24=_0x57aa2f(_0x36ba24),this['_n'](_0xcaa213(0x294),[_0x36ba24]);}async['syncBlobs'](_0x2d4e77){const _0x4e9818=_0x7f9f7f,{peerIds:_0x184a60}=_0x57aa2f(_0x2d4e77);return this['_n'](_0x4e9818(0x7a1),[_0x184a60??null]);}[_0x7f9f7f(0x2d3)](_0x3e77a2){const _0x3f3d32=_0x7f9f7f;if(typeof _0x3e77a2!=='string')return require$$4['join'](this[_0x3f3d32(0x58f)],_0x3e77a2[_0x3f3d32(0x106)](0x0,0x2),_0x3e77a2[_0x3f3d32(0x106)](0x2));return this['_n']('blobPath',[_0x3e77a2],![]);}get[_0x7f9f7f(0x58f)](){const _0x452ecc=_0x7f9f7f;return this['_n'](_0x452ecc(0x575),[],![]);}}return files={'OKDBFiles':_0x2f573c},files;}var engines,hasRequiredEngines;function requireEngines(){const _0xda3f34=_0x30747f;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x23d81e}=requireErrors(),_0x1088a4=requireBridge(),_0x316baf=new Set(['embedder',_0xda3f34(0x227),_0xda3f34(0x300),_0xda3f34(0x686)]),_0x29b8f5=new Set(['count',_0xda3f34(0x41f),_0xda3f34(0x3f0)]),_0x4f7b0a=['validate','patchConfig',_0xda3f34(0x69a),_0xda3f34(0x6cf),_0xda3f34(0x56c),_0xda3f34(0x533),_0xda3f34(0x411)],_0x1ab116={'embedder':new Set([_0xda3f34(0x3f0),_0xda3f34(0x3c7)])},_0x429947=new Set(['materializer','processor',_0xda3f34(0x4a9)]);class _0x180e01{constructor(_0x5d5c51,_0xc4f48e,_0x1b580c,_0xa05f0e){const _0x2e46fa=_0xda3f34;this[_0x2e46fa(0x333)]=_0x5d5c51,this['key']=_0xc4f48e,this[_0x2e46fa(0x4a6)]=_0x1b580c,this[_0x2e46fa(0x219)]=_0xa05f0e,this[_0x2e46fa(0x705)]=_0x1b580c;}[_0xda3f34(0x5d1)](){const _0x4d4c05=_0xda3f34;return this['_facade']['_n'](_0x4d4c05(0x41f),[this[_0x4d4c05(0x4a6)],this[_0x4d4c05(0x219)]],![]);}get['doc'](){const _0x543033=_0xda3f34;return this[_0x543033(0x5d1)]()[_0x543033(0x17c)];}get['_store'](){const _0x1e79a6=_0xda3f34,_0x52cf21=this[_0x1e79a6(0x5d1)]()[_0x1e79a6(0x6e7)];return _0x52cf21?this[_0x1e79a6(0x333)][_0x1e79a6(0x22a)]['_envs'][_0x1e79a6(0x1fc)](_0x52cf21):undefined;}get[_0xda3f34(0x41c)](){const _0x3a37eb=_0xda3f34;return this[_0x3a37eb(0x5d1)]()[_0x3a37eb(0x41c)];}get[_0xda3f34(0x758)](){return this['_info']()['enabled'];}get['isRunning'](){return this['_info']()['isRunning'];}get[_0xda3f34(0x5e5)](){const _0x1460a4=_0xda3f34;return this[_0x1460a4(0x5d1)]()[_0x1460a4(0x5e5)];}get[_0xda3f34(0x5f8)](){const _0xc3b39b=_0xda3f34;return this[_0xc3b39b(0x5d1)]()['reason'];}get[_0xda3f34(0xc7)](){const _0xed878b=_0xda3f34,_0x2e1f4f=this[_0xed878b(0x5d1)]()['lastError'];return _0x2e1f4f?Object[_0xed878b(0xdd)](new Error(_0x2e1f4f['message']),{'code':_0x2e1f4f[_0xed878b(0x182)]}):null;}get[_0xda3f34(0x36d)](){const _0x2bf39c=_0xda3f34;return this[_0x2bf39c(0x5d1)]()[_0x2bf39c(0x36d)];}get[_0xda3f34(0x23c)](){const _0x2cb7f0=_0xda3f34;return this[_0x2cb7f0(0x333)][_0x2cb7f0(0x36e)][_0x2cb7f0(0x1fc)](this[_0x2cb7f0(0x4a6)])??null;}get['api'](){const _0x20319e=_0xda3f34;if(!this[_0x20319e(0x5d1)]()[_0x20319e(0x2e6)])return null;const _0x2dc9f0=this;return new Proxy({},{'get'(_0x31d54b,_0x453fe2){const _0x19cdae=_0x20319e;if(typeof _0x453fe2==='symbol'||_0x453fe2==='then')return undefined;if(_0x1ab116[_0x2dc9f0[_0x19cdae(0x4a6)]]&&_0x1ab116[_0x2dc9f0[_0x19cdae(0x4a6)]][_0x19cdae(0x73b)](_0x453fe2))return _0x2dc9f0[_0x19cdae(0x333)]['_n'](_0x19cdae(0x124),[_0x2dc9f0[_0x19cdae(0x4a6)],_0x2dc9f0[_0x19cdae(0x219)],_0x453fe2,[]],![])['value'];if(_0x2dc9f0[_0x19cdae(0x4a6)]===_0x19cdae(0x227)&&_0x453fe2===_0x19cdae(0x282))return async(_0x34074e={})=>{const _0x1e3254=_0x19cdae,_0x264069=(_0x2da28c,..._0x5ab449)=>_0x2dc9f0[_0x1e3254(0x333)]['_n'](_0x1e3254(0x124),[_0x2dc9f0['type'],_0x2dc9f0[_0x1e3254(0x219)],_0x2da28c,_0x5ab449],!![])[_0x1e3254(0x2ff)],_0x2245ea=_0x264069(_0x1e3254(0x62b),_0x34074e??{}),_0x34c9ca=Date['now']();for(;;){const _0xa7ce43=await _0x2dc9f0[_0x1e3254(0x333)][_0x1e3254(0x22a)][_0x1e3254(0x14f)](()=>_0x264069(_0x1e3254(0x3ab)));if(_0xa7ce43[_0x1e3254(0x16f)]>=_0xa7ce43['head'])return;Date[_0x1e3254(0x2aa)]()-_0x34c9ca>=_0x2245ea&&_0x264069('flushTimeoutError',_0x34074e??{},_0xa7ce43),await new Promise(_0x831530=>setTimeout(_0x831530,0x3));}};return(..._0x234ff4)=>{const _0x13a0da=_0x19cdae,_0x237ca4=()=>_0x2dc9f0[_0x13a0da(0x333)]['_n']('apiCall',[_0x2dc9f0[_0x13a0da(0x4a6)],_0x2dc9f0[_0x13a0da(0x219)],_0x453fe2,_0x234ff4],!![]),_0x122aa7=_0x22ee66=>{const _0x17d40d=_0x13a0da;if(_0x22ee66&&_0x22ee66[_0x17d40d(0x4bd)])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x453fe2+'\x27');return _0x22ee66[_0x17d40d(0x2ff)];};if(_0x316baf[_0x13a0da(0x73b)](_0x2dc9f0[_0x13a0da(0x4a6)])&&!_0x29b8f5[_0x13a0da(0x73b)](_0x453fe2)){const _0x2160db=_0x2dc9f0[_0x13a0da(0x333)][_0x13a0da(0x22a)];return _0x2160db[_0x13a0da(0x4df)](()=>_0x2160db[_0x13a0da(0x14f)](_0x237ca4))[_0x13a0da(0x665)](_0x122aa7);}if(_0x429947['has'](_0x2dc9f0[_0x13a0da(0x4a6)]))try{return Promise['resolve'](_0x122aa7(_0x237ca4()));}catch(_0x34716a){return Promise[_0x13a0da(0x560)](_0x34716a);}return _0x122aa7(_0x237ca4());};}});}async[_0xda3f34(0x5ac)](_0x5a5767={}){const _0x490d03=_0xda3f34;return await this[_0x490d03(0x333)][_0x490d03(0x285)](_0x490d03(0x5ac),[this[_0x490d03(0x4a6)],this[_0x490d03(0x219)],_0x5a5767]),this;}async[_0xda3f34(0x297)](){const _0x4be88d=_0xda3f34;await this[_0x4be88d(0x333)][_0x4be88d(0x285)]('engineStart',[this[_0x4be88d(0x4a6)],this[_0x4be88d(0x219)]]);}async['stop'](_0x2fdfea={}){const _0xb9a6e8=_0xda3f34;await this[_0xb9a6e8(0x333)][_0xb9a6e8(0x285)](_0xb9a6e8(0x2fa),[this[_0xb9a6e8(0x4a6)],this[_0xb9a6e8(0x219)],_0x2fdfea]);}async[_0xda3f34(0x6fa)](_0x4e803e={}){const _0x391d43=_0xda3f34;return await this[_0x391d43(0x333)][_0x391d43(0x285)](_0x391d43(0x6fa),[this[_0x391d43(0x4a6)],this[_0x391d43(0x219)],_0x4e803e]),this;}async[_0xda3f34(0x411)](){const _0x4ac792=_0xda3f34;await this['_facade'][_0x4ac792(0x285)](_0x4ac792(0x5fc),[this[_0x4ac792(0x4a6)],this[_0x4ac792(0x219)]]);}}class _0x521300{constructor(_0x310d46,_0x1f6977=null,_0x33d37c=null){const _0x1f1a26=_0xda3f34;this[_0x1f1a26(0x22a)]=_0x310d46,this[_0x1f1a26(0x35e)]=_0x1f6977,this['isOrchestrator']=_0x1f6977===null,this[_0x1f1a26(0x174)]=_0x33d37c||this,this[_0x1f1a26(0x36e)]=this[_0x1f1a26(0x174)]===this?_0x459c39(this):this[_0x1f1a26(0x174)][_0x1f1a26(0x36e)],this[_0x1f1a26(0x537)]=new Map();}['_n'](_0x325aa1,_0x514b7a,_0x6eb3ae=!![]){const _0xe9364e=_0xda3f34;return this['okdb'][_0xe9364e(0x313)](_0xe9364e(0x763),this[_0xe9364e(0x35e)],_0x325aa1,_0x514b7a,_0x6eb3ae);}[_0xda3f34(0x285)](_0x41a1d1,_0x14e121){const _0x45186f=_0xda3f34;return this['okdb'][_0x45186f(0x3c8)]('engines',this[_0x45186f(0x35e)],_0x41a1d1,_0x14e121,!![]);}get[_0xda3f34(0x326)](){const _0x4af0e6=_0xda3f34;return this[_0x4af0e6(0x35e)]?this[_0x4af0e6(0x22a)][_0x4af0e6(0x326)](this['envName']):null;}[_0xda3f34(0x683)](_0x18d2e){const _0x2a942d=_0xda3f34;if(!_0x18d2e)return null;let _0x16c221=this['_handles'][_0x2a942d(0x1fc)](_0x18d2e['key']);return!_0x16c221&&(_0x16c221=new _0x180e01(this,_0x18d2e[_0x2a942d(0x781)],_0x18d2e[_0x2a942d(0x4a6)],_0x18d2e['name']),this[_0x2a942d(0x537)][_0x2a942d(0xc4)](_0x18d2e[_0x2a942d(0x781)],_0x16c221)),_0x16c221;}[_0xda3f34(0x618)](_0x131ea5,_0x4670a8){const _0x52c183=_0xda3f34;if(!_0x131ea5||typeof _0x131ea5!==_0x52c183(0x395))throw new _0x23d81e('Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string',_0x52c183(0xee),{'type':_0x131ea5});if(!_0x4670a8||typeof _0x4670a8!==_0x52c183(0x12c))throw new _0x23d81e(_0x52c183(0x582)+_0x131ea5+_0x52c183(0x617),_0x52c183(0x637),{'type':_0x131ea5});if(typeof _0x4670a8['start']!==_0x52c183(0x125))throw new _0x23d81e('Engine\x20driver\x20for\x20\x22'+_0x131ea5+_0x52c183(0x263),_0x52c183(0x655),{'type':_0x131ea5});const _0x14440e=this['_root'];if(_0x14440e['drivers']['has'](_0x131ea5))throw new _0x23d81e(_0x52c183(0x688)+_0x131ea5+'\x22',_0x52c183(0x19b),{'type':_0x131ea5});const _0x38f225=_0x1088a4['regObject'](_0x4670a8,this[_0x52c183(0x22a)]),_0x518a61=_0x4f7b0a[_0x52c183(0x3ce)](_0x2ce10e=>typeof _0x4670a8[_0x2ce10e]===_0x52c183(0x125)),_0x162df7=_0x4670a8['docs']&&typeof _0x4670a8[_0x52c183(0x634)]===_0x52c183(0x12c)?_0x4670a8['docs']:{};this[_0x52c183(0x22a)][_0x52c183(0x313)](_0x52c183(0x763),null,_0x52c183(0x618),[_0x131ea5,{'$id':_0x38f225,'has':_0x518a61,'docs':_0x162df7}]),_0x14440e[_0x52c183(0x36e)][_0x52c183(0x4cc)](_0x131ea5,_0x4670a8);}get[_0xda3f34(0x616)](){const _0x349fe7=_0xda3f34;return this[_0x349fe7(0x22a)]['_call']('engines',null,_0x349fe7(0xbb),[],![]);}get['orchestrator'](){const _0x46e82a=this;return{get '_started'(){const _0x5db188=_0x5ce2;return _0x46e82a[_0x5db188(0x616)];}};}['registerTemplate'](_0x93247f){const _0x310e0e=_0xda3f34;if(!_0x93247f||typeof _0x93247f!=='object')throw new _0x23d81e(_0x310e0e(0x70a),_0x310e0e(0x613));if(!_0x93247f['id']||typeof _0x93247f['id']!==_0x310e0e(0x395))throw new _0x23d81e(_0x310e0e(0x381),_0x310e0e(0x613));if(![_0x310e0e(0x2b1),_0x310e0e(0x27a)][_0x310e0e(0x116)](_0x93247f['kind']))throw new _0x23d81e(_0x310e0e(0x162)+_0x93247f['id'],_0x310e0e(0x613));if(typeof _0x93247f[_0x310e0e(0x6d0)]!==_0x310e0e(0x125))throw new _0x23d81e('Engine\x20template\x20build()\x20is\x20required:\x20'+_0x93247f['id'],_0x310e0e(0x613));const _0x572aa0=this[_0x310e0e(0x22a)],_0x477f9f=typeof _0x93247f[_0x310e0e(0x74e)]===_0x310e0e(0x125);return this['_n'](_0x310e0e(0x46a),[{'id':_0x93247f['id'],'kind':_0x93247f[_0x310e0e(0x4e3)],'family':_0x93247f[_0x310e0e(0x792)]??null,'engineType':_0x93247f[_0x310e0e(0x705)]??null,'pipelineFamily':_0x93247f[_0x310e0e(0x463)]??null,'recommended':_0x93247f[_0x310e0e(0x61d)]===!![],'summary':_0x93247f['summary']??null,'description':_0x93247f[_0x310e0e(0x65d)]??null,'inputSchema':_0x477f9f?null:_0x93247f['inputSchema']??null,'inputSchemaFn':_0x477f9f?()=>_0x93247f[_0x310e0e(0x74e)](_0x572aa0):null,'defaults':_0x93247f[_0x310e0e(0x3bf)]??null,'notes':Array[_0x310e0e(0x82)](_0x93247f[_0x310e0e(0x189)])?_0x93247f[_0x310e0e(0x189)]:[],'links':Array[_0x310e0e(0x82)](_0x93247f[_0x310e0e(0x3f3)])?_0x93247f[_0x310e0e(0x3f3)]:[],'build':(_0x947707,_0x4f22d7)=>_0x93247f[_0x310e0e(0x6d0)](_0x947707??{},{'okdb':_0x572aa0,'envName':_0x4f22d7??null})}],![]);}[_0xda3f34(0xcd)](_0x15054c){const _0x4a198d=_0xda3f34;return this['_n'](_0x4a198d(0xcd),[_0x15054c??null],![]);}[_0xda3f34(0x391)](_0x4896bb){const _0x3b46cf=_0xda3f34;return this['_n'](_0x3b46cf(0x391),[_0x4896bb],![]);}[_0xda3f34(0x325)](_0x2d71c9,_0x30c9ae,_0x8f7021){const _0x3ccbeb=_0xda3f34;return this['_n'](_0x3ccbeb(0x325),[_0x2d71c9,_0x30c9ae,_0x8f7021??this['envName']],![]);}[_0xda3f34(0x6cc)](){return this['_n']('catalog',[],![]);}async[_0xda3f34(0x297)](){const _0x4a4cd9=_0xda3f34;return this[_0x4a4cd9(0x285)](_0x4a4cd9(0x297),[]);}async[_0xda3f34(0x533)](){const _0x21e598=_0xda3f34;return this[_0x21e598(0x285)](_0x21e598(0x533),[]);}async['createEngine'](_0x29263b,_0xbc3f46,_0x1b2c0d={},_0x5467aa={},_0x4f6a94={}){const _0x30deca=_0xda3f34;return this['_wrap'](await this[_0x30deca(0x285)](_0x30deca(0x6b1),[_0x29263b,_0xbc3f46,_0x1b2c0d,_0x5467aa,_0x4f6a94]));}async[_0xda3f34(0x454)](_0x43b71f,_0x5533db,_0x1b8c73={},_0x3e1bc5={},_0x5548a9={}){const _0x172702=_0xda3f34;return this[_0x172702(0x683)](await this[_0x172702(0x285)](_0x172702(0x454),[_0x43b71f,_0x5533db,_0x1b8c73,_0x3e1bc5,_0x5548a9]));}[_0xda3f34(0x369)](_0x179509,_0x389a71){const _0x339b83=_0xda3f34;return this[_0x339b83(0x683)](this['_n']('getEngine',[_0x179509,_0x389a71],![]));}[_0xda3f34(0x312)](_0x4d2dc8,_0x2cb5c0){return this['_wrap'](this['_n']('getRunningEngine',[_0x4d2dc8,_0x2cb5c0],![]));}[_0xda3f34(0x48a)](_0x2eecaf){const _0x55134e=_0xda3f34;return this['_n'](_0x55134e(0x48a),[_0x2eecaf??null],![])[_0x55134e(0x1c9)](_0x5723a1=>this[_0x55134e(0x683)](_0x5723a1));}async[_0xda3f34(0x4e9)](_0x2cf36b,_0x20cbcc){const _0x3c5da2=_0xda3f34;return this[_0x3c5da2(0x683)](await this[_0x3c5da2(0x285)](_0x3c5da2(0x4e9),[_0x2cf36b,_0x20cbcc]));}async[_0xda3f34(0x2dc)](_0x154d78,_0x239693){const _0x1fe901=_0xda3f34;return this['_handles'][_0x1fe901(0x155)](_0x154d78+':'+_0x239693),this[_0x1fe901(0x285)](_0x1fe901(0x2dc),[_0x154d78,_0x239693]);}async[_0xda3f34(0x566)](_0x1d777d){return this['_nm']('startNewEnginesFromSync',[_0x1d777d]);}async[_0xda3f34(0x2be)](){const _0x203efc=_0xda3f34;return this[_0x203efc(0x285)](_0x203efc(0x2be),[]);}}function _0x459c39(_0x358016){const _0x40b33d=_0xda3f34,_0x53582c=new Map();return{'has':_0x226212=>_0x53582c['has'](_0x226212)||_0x358016[_0x40b33d(0x22a)][_0x40b33d(0x313)]('engines',null,_0x40b33d(0x245),[_0x226212],![]),'get':_0x367c97=>_0x53582c[_0x40b33d(0x1fc)](_0x367c97),'set':()=>{const _0x2b768f=_0x40b33d;throw new _0x23d81e(_0x2b768f(0x7cf),'BAD_PARAM');},'_set':(_0x25efab,_0x224136)=>_0x53582c[_0x40b33d(0xc4)](_0x25efab,_0x224136),'keys':()=>_0x53582c[_0x40b33d(0x393)](),'entries':()=>_0x53582c[_0x40b33d(0x695)](),'values':()=>_0x53582c[_0x40b33d(0x6de)](),get 'size'(){const _0x1af4a0=_0x40b33d;return _0x53582c[_0x1af4a0(0x670)];},[Symbol[_0x40b33d(0x753)]]:()=>_0x53582c[Symbol['iterator']]()};}class _0x37d5fc{constructor(_0x21150a,_0x8c8564=null){const _0x3041bf=_0xda3f34;this[_0x3041bf(0x22a)]=_0x21150a,this['envName']=_0x8c8564;}['_n'](_0x3caccd,_0x2c14d3,_0x122de0=!![]){const _0x3356b7=_0xda3f34;return this[_0x3356b7(0x22a)][_0x3356b7(0x313)]('pipelines',this['envName'],_0x3caccd,_0x2c14d3,_0x122de0);}[_0xda3f34(0x285)](_0x3edc17,_0x16e6ea){const _0x39eb11=_0xda3f34;return this['okdb']['_callMacro'](_0x39eb11(0x228),this[_0x39eb11(0x35e)],_0x3edc17,_0x16e6ea,!![]);}get['isCoordinator'](){const _0x212fdb=_0xda3f34;return this[_0x212fdb(0x35e)]===null;}async['ensure'](_0xbf8e90){return this['_n']('ensure',[_0xbf8e90]);}async[_0xda3f34(0x1fc)](_0x2f2359,_0x362c11){const _0x183f36=_0xda3f34;return this['_n'](_0x183f36(0x1fc),[_0x2f2359,_0x362c11??null],![]);}async[_0xda3f34(0x61c)](_0x4b69e0,_0xa363dd){return this['_n']('getRecord',[_0x4b69e0,_0xa363dd??null],![]);}async[_0xda3f34(0x48a)](_0x10c689){return this['_n']('list',[_0x10c689??null],![]);}async[_0xda3f34(0x6a2)](_0x298558={}){const _0x5d0107=_0xda3f34;return this['_n'](_0x5d0107(0x6a2),[_0x298558?.[_0x5d0107(0x35e)]??null],![]);}[_0xda3f34(0x4fd)](_0x39df66,_0x2d2516){const _0x4fb09b=_0xda3f34;return this['_n'](_0x4fb09b(0x4fd),[_0x39df66,_0x2d2516??null],![]);}async[_0xda3f34(0xaf)](_0x5e4285){const _0x465a59=_0xda3f34;return this[_0x465a59(0x285)](_0x465a59(0xaf),[_0x5e4285]);}async['update'](_0x3fb0c8,_0x519ab1){return this['_nm']('update',[_0x3fb0c8,_0x519ab1]);}async['stop'](_0x338e96){const _0x309b6a=_0xda3f34;return this['_nm'](_0x309b6a(0x533),[_0x338e96]);}async[_0xda3f34(0x38b)](_0xfb086e){const _0xdd075d=_0xda3f34;if(!_0xfb086e||typeof _0xfb086e!==_0xdd075d(0x12c)||!_0xfb086e[_0xdd075d(0x219)]||!_0xfb086e[_0xdd075d(0x763)])return _0xfb086e;for(let _0xac7355=0x0;_0xac7355<0x3;_0xac7355++)await new Promise(_0x529ddd=>setImmediate(_0x529ddd));try{const _0x4be2b0=this[_0xdd075d(0x35e)]!==null?await this[_0xdd075d(0x1fc)](_0xfb086e[_0xdd075d(0x219)]):_0xfb086e[_0xdd075d(0x326)]?await this[_0xdd075d(0x1fc)](_0xfb086e['env'],_0xfb086e['name']):null;return _0x4be2b0||_0xfb086e;}catch{return _0xfb086e;}}async[_0xda3f34(0x297)](_0x17353d){const _0x5c2608=_0xda3f34;return this[_0x5c2608(0x38b)](await this[_0x5c2608(0x285)]('start',[_0x17353d]));}async[_0xda3f34(0x4e9)](_0x2c112f){const _0xccca08=_0xda3f34;return this[_0xccca08(0x38b)](await this[_0xccca08(0x285)](_0xccca08(0x4e9),[_0x2c112f]));}async[_0xda3f34(0x583)](_0x12d93b){const _0x44597f=_0xda3f34;return this[_0x44597f(0x285)](_0x44597f(0x583),[_0x12d93b]);}async['replaceMember'](_0x45e4e5,_0x262b4a,_0x534823){const _0x4fff0f=_0xda3f34;return this['_nm'](_0x4fff0f(0x1dd),[_0x45e4e5,_0x262b4a,_0x534823]);}async[_0xda3f34(0x4bc)](_0x484337){const _0x367c56=_0xda3f34;return this[_0x367c56(0x285)](_0x367c56(0x4bc),[_0x484337]);}async['stopAll'](){const _0x18ef36=_0xda3f34;return this[_0x18ef36(0x285)](_0x18ef36(0x3ee),[]);}async[_0xda3f34(0x5bf)](){const _0x28f919=_0xda3f34;return this[_0x28f919(0x285)](_0x28f919(0x5bf),[]);}['findOwner'](_0x771fe4,_0x518cbe){const _0x2f78ad=_0xda3f34;return this['_n'](_0x2f78ad(0x10c),[_0x771fe4,_0x518cbe],![]);}}return engines={'OKDBEngines':_0x521300,'OKDBPipelines':_0x37d5fc,'OKDBEngineHandle':_0x180e01},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0xa2f482=_0x30747f;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x2a02df}=requireErrors(),_0x405ce4=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x1a7eec{constructor(_0x518d5f,_0x3917f1=null){const _0x459cba=_0x5ce2;this['okdb']=_0x518d5f,this[_0x459cba(0x35e)]=_0x3917f1??_0x459cba(0x2c7);}get[_0xa2f482(0x326)](){const _0x539d08=_0xa2f482;return this[_0x539d08(0x22a)][_0x539d08(0x6c3)][_0x539d08(0x1fc)](this[_0x539d08(0x35e)])??null;}['_n'](_0x2e5028,_0x1a0cc4=[],_0x43ce92=!![]){const _0x3e3801=_0xa2f482;try{return this[_0x3e3801(0x22a)][_0x3e3801(0x313)](_0x3e3801(0x505),this['envName'],_0x2e5028,_0x1a0cc4,_0x43ce92);}catch(_0x463d6e){throw _0x2af1eb(_0x463d6e);}}async[_0xa2f482(0x285)](_0x47e036,_0x10607a=[]){const _0x54c5d9=_0xa2f482;try{return await this[_0x54c5d9(0x22a)][_0x54c5d9(0x3c8)](_0x54c5d9(0x505),this[_0x54c5d9(0x35e)],_0x47e036,_0x10607a,!![]);}catch(_0x22ef2d){throw _0x2af1eb(_0x22ef2d);}}async[_0xa2f482(0x48a)](){return this['_n']('list',[],![]);}async[_0xa2f482(0x1fc)](_0x30dc7d){const _0x1b7e93=_0xa2f482;return this['_n'](_0x1b7e93(0x1fc),[_0x30dc7d],![]);}async[_0xa2f482(0xaf)](_0x164b02){const _0x37d538=_0xa2f482;return this['_n'](_0x37d538(0xaf),[_0x164b02]);}async['update'](_0x4d4b2a,_0x58c330={}){return this['_n']('update',[_0x4d4b2a,_0x58c330]);}async[_0xa2f482(0x4bc)](_0x6f0570){const _0x488472=_0xa2f482;return this['_n'](_0x488472(0x4bc),[_0x6f0570]);}async['listRuns'](_0x4b86a7){const {functionName:functionName=null}=_0x2a02df(_0x4b86a7);return this['_n']('listRuns',[{'functionName':functionName}],![]);}async['getRun'](_0x44ce50){return this['_n']('getRun',[_0x44ce50],![]);}async[_0xa2f482(0x771)](_0xce5c7b){const _0x5c2508=_0xa2f482;return _0xce5c7b=_0x2a02df(_0xce5c7b,'run'),this['_n'](_0x5c2508(0x771),[_0xce5c7b]);}async['run'](_0x50e0d1,_0x57358a=null,_0x37f196={}){const _0x449872=_0xa2f482,_0x31b175={..._0x37f196},_0x568a2a=_0x31b175[_0x449872(0x37f)];if(_0x568a2a)_0x31b175[_0x449872(0x606)]=!!_0x568a2a[_0x449872(0x606)];delete _0x31b175[_0x449872(0x37f)];const _0x54bfe9=await this['_nm']('runStart',[_0x50e0d1,_0x57358a,_0x31b175]),_0x2a613d=this[_0x449872(0x22a)],_0x5bee2a=()=>_0x2a613d[_0x449872(0x59b)]['wake']();if(_0x568a2a&&typeof _0x568a2a[_0x449872(0x165)]===_0x449872(0x125))_0x568a2a['addEventListener'](_0x449872(0x239),_0x5bee2a,{'once':!![]});let _0x42e793=![];try{for(;;){const _0x1826bb=_0x2a613d[_0x449872(0x59b)][_0x449872(0x584)](_0x405ce4);let _0x436293;try{_0x436293=await _0x2a613d['_callMacro'](_0x449872(0x505),this[_0x449872(0x35e)],_0x449872(0x237),[_0x54bfe9,!!_0x568a2a?.[_0x449872(0x606)]],![],![]);}catch(_0x34f2d0){_0x42e793=!![];throw _0x2af1eb(_0x34f2d0);}if(!_0x436293||_0x436293[_0x449872(0x366)]!==!![])return _0x42e793=!![],_0x2a613d[_0x449872(0x59b)][_0x449872(0x38d)](),_0x436293;if(_0x436293['progressed'])_0x2a613d[_0x449872(0x59b)]['wake']();await _0x1826bb;}}finally{if(_0x568a2a&&typeof _0x568a2a[_0x449872(0x2a2)]===_0x449872(0x125))_0x568a2a['removeEventListener']('abort',_0x5bee2a);if(!_0x42e793)try{_0x2a613d['_call']('functions',this['envName'],_0x449872(0x101),[_0x54bfe9],![]);}catch{}}}async['preview'](_0x27cc7e={},_0x29f6df=null,_0x18e30f={}){const _0x1aa9fb=_0xa2f482;return this[_0x1aa9fb(0x285)](_0x1aa9fb(0x302),[_0x27cc7e,_0x29f6df,_0x18e30f]);}async[_0xa2f482(0x533)](){}}function _0x2af1eb(_0x2ce456){const _0x2f2b6c=_0xa2f482;if(_0x2ce456&&_0x2ce456[_0x2f2b6c(0x107)]&&_0x2ce456[_0x2f2b6c(0x107)][_0x2f2b6c(0x12f)])_0x2ce456[_0x2f2b6c(0x268)]=_0x2ce456['details'][_0x2f2b6c(0x12f)];return _0x2ce456;}return functions={'OKDBFunctions':_0x1a7eec},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x19d1fd=_0x30747f;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x479ec4}=requireErrors();class _0x497218{constructor(_0x5bd6e6,_0x2a8fb5){const _0x2012b8=_0x5ce2;this[_0x2012b8(0x21d)]=_0x5bd6e6,this['_id']=_0x2a8fb5;}['_n'](_0x326dba,_0x540231=[]){return this['_lock']['_n'](_0x326dba,[this['_id'],..._0x540231]);}[_0x19d1fd(0x4f5)](){const _0x19fe6e=_0x19d1fd;return this['_n'](_0x19fe6e(0x4f5));}get[_0x19d1fd(0x4d0)](){return this['_n']('acquiredAt');}[_0x19d1fd(0x563)](){const _0xae1489=_0x19d1fd;return this['_n'](_0xae1489(0x563));}[_0x19d1fd(0x416)](_0x5708a9){const _0x494dc4=_0x19d1fd;return this['_n'](_0x494dc4(0x416),[_0x5708a9]);}async[_0x19d1fd(0x2b0)](){return this['_n']('release');}}class _0x1c6653{constructor(_0x1773cb,_0x26a32f,_0x5eb1ff,_0x448cac){const _0x298daa=_0x19d1fd,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x479ec4(_0x448cac);this['okdb']=_0x1773cb,this[_0x298daa(0x596)]=_0x5eb1ff,this[_0x298daa(0x244)]=_0x1773cb[_0x298daa(0x313)]('lock',_0x26a32f,_0x298daa(0x1c2),[_0x5eb1ff,ttlMs,heartbeatMs],![]),this[_0x298daa(0x5f7)]=_0x26a32f;}['_n'](_0x5ef68b,_0xdfbae2=[]){const _0x5794b9=_0x19d1fd;return this[_0x5794b9(0x22a)][_0x5794b9(0x313)](_0x5794b9(0x745),this[_0x5794b9(0x5f7)],_0x5ef68b,_0xdfbae2,![]);}[_0x19d1fd(0xda)](_0x13a8e2){const _0x594227=_0x19d1fd;return this['_n'](_0x594227(0x781),[this[_0x594227(0x244)],_0x13a8e2]);}async['tryAcquire'](_0x211eaa,_0x7af6b2={},_0x1b2efb={}){const _0xfc8f43=_0x19d1fd,_0x43c614=this['_n'](_0xfc8f43(0x671),[this[_0xfc8f43(0x244)],_0x211eaa,_0x7af6b2,_0x1b2efb]);return{'acquired':_0x43c614[_0xfc8f43(0xf4)],'handle':_0x43c614[_0xfc8f43(0x413)]==null?null:new _0x497218(this,_0x43c614[_0xfc8f43(0x413)]),'current':_0x43c614['current']};}['inspect'](_0x117a04){const _0x56d843=_0x19d1fd;return this['_n']('inspect',[this[_0x56d843(0x244)],_0x117a04]);}[_0x19d1fd(0x48a)](){const _0xba6d99=_0x19d1fd;return this['_n']('list',[this[_0xba6d99(0x244)]]);}[_0x19d1fd(0x421)](_0x2ff271){const _0x2e5bb2=_0x19d1fd;return this['_n']('signalWant',[this[_0x2e5bb2(0x244)],_0x2ff271]);}['isWanted'](_0x56a89e,_0x529ab6=0x3e8){const _0x56af0d=_0x19d1fd;return this['_n'](_0x56af0d(0x2d8),[this['_id'],_0x56a89e,_0x529ab6]);}}return lock={'NativeLock':_0x1c6653,'NativeLockHandle':_0x497218},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x4f2936=_0x30747f;if(hasRequiredProcessor)return processor[_0x4f2936(0x62f)];hasRequiredProcessor=0x1;const _0x4fa355=requireBridge(),{RawDb:_0x168091}=requireRawdb(),{NativeLock:_0x1bf7b9}=requireLock();function _0x427f5a(_0x34cee3){}class _0x308120{constructor(_0x445749){const _0xa762b6=_0x4f2936;this[_0xa762b6(0x326)]=_0x445749,this[_0xa762b6(0x22a)]=_0x445749;try{this['_n'](_0xa762b6(0x5cf),[(_0x3236bc,_0x1214ec)=>{const _0x8e7c51=_0xa762b6,_0x5536da=this[_0x8e7c51(0x22a)][_0x8e7c51(0x54d)],_0x1a04f1=_0x5536da?.[_0x3236bc]??_0x5536da?.[_0x8e7c51(0x41f)];if(typeof _0x1a04f1===_0x8e7c51(0x125))_0x1a04f1[_0x8e7c51(0x3c4)](_0x5536da,_0x1214ec);}],![]);}catch{}}['_n'](_0x10ea34,_0x5d384a,_0x106504=!![]){const _0xd271ec=_0x4f2936;return this[_0xd271ec(0x326)][_0xd271ec(0x22a)][_0xd271ec(0x313)]('proc',this[_0xd271ec(0x326)][_0xd271ec(0x219)],_0x10ea34,_0x5d384a,_0x106504);}['register'](_0x1686c9,_0x22cc40={}){const _0x3245ac=_0x4f2936,_0x1e57ee={..._0x22cc40};if(typeof _0x1e57ee['handler']===_0x3245ac(0x125)&&_0x1e57ee[_0x3245ac(0x4fc)]!=null)throw new Error('processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20'+_0x3245ac(0x68b));if(typeof _0x1e57ee[_0x3245ac(0x1a4)]===_0x3245ac(0x395)&&_0x1e57ee[_0x3245ac(0x4fc)]!=null)throw new Error(_0x3245ac(0x38f));if(_0x1e57ee['module']!=null){if(!_0x1e57ee[_0x3245ac(0x4fc)][_0x3245ac(0x70d)])throw new Error(_0x3245ac(0x262));const _0x3db0ff=_0x1e57ee[_0x3245ac(0x4fc)][_0x3245ac(0x755)]??_0x1e57ee['module'][_0x3245ac(0x2a1)]??_0x3245ac(0x40a),_0x3863b3=require[_0x3245ac(0x65b)](_0x1e57ee[_0x3245ac(0x4fc)][_0x3245ac(0x70d)]),_0x1d1fe2=require(_0x3863b3),_0x2dfb50=_0x1d1fe2[_0x3db0ff]??_0x1d1fe2[_0x3245ac(0x5eb)]??_0x1d1fe2;if(typeof _0x2dfb50!==_0x3245ac(0x125))throw new Error(_0x3245ac(0x31d)+_0x1e57ee['module']['path']+_0x3245ac(0x4bf)+_0x3db0ff+'\x27\x20is\x20not\x20a\x20function');this[_0x3245ac(0x326)][_0x3245ac(0x22a)][_0x3245ac(0x212)](_0x3245ac(0x53d),_0x3245ac(0x471),[_0x3863b3,_0x3db0ff,_0x2dfb50]),_0x1e57ee[_0x3245ac(0x4fc)]={'path':_0x3863b3,'export':_0x3db0ff};}if(_0x1e57ee[_0x3245ac(0x65f)]!=null){if(typeof _0x1e57ee['quantum'][_0x3245ac(0x4fc)]!==_0x3245ac(0x395))throw new Error(_0x3245ac(0x72e));const _0x415bc3=require[_0x3245ac(0x65b)](_0x1e57ee['quantum']['module']),_0x55b3b0=require(_0x415bc3),_0x52fa9f=_0x1e57ee[_0x3245ac(0x65f)][_0x3245ac(0x2a1)],_0x54ebf7=_0x52fa9f?_0x55b3b0[_0x52fa9f]:_0x55b3b0[_0x3245ac(0x5eb)]??_0x55b3b0;if(typeof _0x54ebf7===_0x3245ac(0x125)){const _0xdcca7b=_0x52fa9f?_0x1e57ee['quantum'][_0x3245ac(0x4fc)]+'#'+_0x52fa9f:_0x1e57ee[_0x3245ac(0x65f)][_0x3245ac(0x4fc)];this[_0x3245ac(0x326)][_0x3245ac(0x22a)]['_staticCall'](_0x3245ac(0x53d),_0x3245ac(0x3b3),[_0xdcca7b,_0x54ebf7]);}_0x1e57ee[_0x3245ac(0x65f)]={..._0x1e57ee[_0x3245ac(0x65f)]};}_0x1e57ee[_0x3245ac(0x720)]!=null&&typeof _0x1e57ee[_0x3245ac(0x720)]===_0x3245ac(0x12c)&&(_0x1e57ee[_0x3245ac(0x720)]={'$payload':_0x4fa355[_0x3245ac(0x258)](_0x1e57ee['payload'],this[_0x3245ac(0x326)][_0x3245ac(0x22a)])});if(_0x1e57ee[_0x3245ac(0x583)]!=null&&typeof _0x1e57ee[_0x3245ac(0x583)]!==_0x3245ac(0x125))throw new Error(_0x3245ac(0x7b0));const _0x29f121=this['_n'](_0x3245ac(0x3a3),[_0x1686c9??null,_0x1e57ee]);return this['_stopFor'](_0x29f121['id'],_0x29f121[_0x3245ac(0x7d2)]);}[_0x4f2936(0x497)](_0x29d0aa,_0xeb1ccd){const _0x1f6fb0=_0x4f2936,_0x4a0a2c=this,_0x5591da=async()=>{const _0x4f73a2=_0x5ce2;_0x4a0a2c['_n'](_0x4f73a2(0x6ea),[_0x29d0aa]);};return _0x5591da['id']=_0x29d0aa,_0x5591da[_0x1f6fb0(0x7d2)]=_0xeb1ccd,_0x5591da[_0x1f6fb0(0x3fa)]=()=>_0xeb1ccd?_0x4a0a2c['_n']('handleDurableClock',[_0x29d0aa],![]):0x0,_0x5591da[_0x1f6fb0(0x5e5)]=()=>_0x4a0a2c[_0x1f6fb0(0x1fc)](_0x29d0aa),_0x5591da[_0x1f6fb0(0x43c)]=_0x5591da[_0x1f6fb0(0x5e5)],_0x5591da[_0x1f6fb0(0x4da)]=()=>_0x4a0a2c[_0x1f6fb0(0x4da)](_0x29d0aa),_0x5591da[_0x1f6fb0(0x7ba)]=()=>_0x4a0a2c[_0x1f6fb0(0x7ba)](_0x29d0aa),_0x5591da['kick']=()=>_0x4a0a2c[_0x1f6fb0(0x17a)](_0x29d0aa),_0x5591da['retry']=()=>_0x4a0a2c[_0x1f6fb0(0x10e)](_0x29d0aa),_0x5591da[_0x1f6fb0(0x10f)]=_0x4ad04a=>_0x4a0a2c[_0x1f6fb0(0x10f)](_0x29d0aa,_0x4ad04a),_0x5591da;}get[_0x4f2936(0xff)](){const _0x1d3253=_0x4f2936;try{return this['_n'](_0x1d3253(0x48a),[],![])[_0x1d3253(0x1c9)](_0x47d6af=>({'id':_0x47d6af['id']}));}catch{return[];}}async[_0x4f2936(0x6c4)](_0x390718){const _0x3e84f7=_0x4f2936;return new Set(this['_n'](_0x3e84f7(0x6c4),[]));}[_0x4f2936(0x160)](_0x51a31d){const _0x601e69=_0x4f2936;return this['_n'](_0x601e69(0x160),[[..._0x51a31d??[]]]);}get[_0x4f2936(0x498)](){const _0x431192=_0x4f2936;return new Set(this['_n'](_0x431192(0x48a),[],![])[_0x431192(0x3ce)](_0x1c8646=>_0x1c8646['type']==null)[_0x431192(0x1c9)](_0x209da1=>_0x209da1['id']));}[_0x4f2936(0x2e8)](){}get['_lock'](){const _0x34eaaa=_0x4f2936;if(!this[_0x34eaaa(0x27e)]){const _0x5309db=new _0x1bf7b9(this[_0x34eaaa(0x326)][_0x34eaaa(0x22a)],this[_0x34eaaa(0x326)]['name'],_0x34eaaa(0x53d)),_0x4181a6=this['env'];_0x5309db[_0x34eaaa(0x2d7)]=()=>new _0x168091(_0x4181a6,'~lock'),this[_0x34eaaa(0x27e)]=_0x5309db;}return this[_0x34eaaa(0x27e)];}[_0x4f2936(0x14c)](_0x4a7eb7,_0x9ba55d){const _0x458bd2=_0x4f2936;return this['_n'](_0x458bd2(0x2a8),[typeof _0x4a7eb7===_0x458bd2(0x395)?_0x4a7eb7:_0x4a7eb7['id'],_0x9ba55d?.[_0x458bd2(0x362)]??String(_0x9ba55d??'')]);}get[_0x4f2936(0x12b)](){const _0x284460=_0x4f2936;return this['__stateDb']||(this[_0x284460(0x104)]=new _0x168091(this[_0x284460(0x326)],'~proc:state'));}get[_0x4f2936(0x1e8)](){const _0x2d1e90=_0x4f2936,_0x4cb0d4=this,_0x3375f7=_0x3bc814=>{const _0x14e0cf=_0x5ce2,_0x121729=()=>_0x4cb0d4['_n'](_0x14e0cf(0x7b3),[_0x3bc814],![]);if(!_0x121729())return undefined;const _0x3d0d6c=_0x402023=>()=>_0x121729()?.[_0x402023],_0x36aefd={'id':_0x3bc814},_0x4c4654=(_0x2e4584,_0x35219d,_0x899554)=>Object[_0x14e0cf(0x236)](_0x36aefd,_0x2e4584,{'get':_0x35219d,'set':_0x899554,'enumerable':!![],'configurable':!![]});return _0x4c4654(_0x14e0cf(0x8e),_0x3d0d6c('state')),_0x4c4654(_0x14e0cf(0x765),_0x3d0d6c(_0x14e0cf(0x765))),_0x4c4654('paused',_0x3d0d6c(_0x14e0cf(0x6dc))),_0x4c4654('lastClock',_0x3d0d6c(_0x14e0cf(0x1b1)),_0x3c35dc=>_0x4cb0d4['_n'](_0x14e0cf(0x2dd),[_0x3bc814,_0x3c35dc])),_0x4c4654('cursorKey',_0x3d0d6c('cursorKey')),_0x4c4654(_0x14e0cf(0x724),_0x3d0d6c(_0x14e0cf(0x42f)),_0x399ca0=>_0x4cb0d4['_n'](_0x14e0cf(0x58c),[_0x3bc814,!!_0x399ca0])),_0x4c4654('_handlerName',_0x3d0d6c(_0x14e0cf(0x62e))),_0x4c4654(_0x14e0cf(0xd4),_0x3d0d6c(_0x14e0cf(0xd4))),_0x4c4654('drainDeadlineMs',_0x3d0d6c(_0x14e0cf(0x424))),_0x4c4654(_0x14e0cf(0x134),_0x3d0d6c('modeApplied'),_0x1b6b6a=>_0x4cb0d4['_n'](_0x14e0cf(0x722),[_0x3bc814,_0x1b6b6a])),_0x4c4654(_0x14e0cf(0x1e9),()=>_0x4cb0d4[_0x14e0cf(0x1fc)](_0x3bc814)?.[_0x14e0cf(0x1e9)]),_0x4c4654('_lockHandle',()=>_0x121729()?.[_0x14e0cf(0x754)]?{'isHeld':()=>!!_0x121729()?.[_0x14e0cf(0x754)]}:null),_0x4c4654('_pokeHandler',()=>_0x121729()?.[_0x14e0cf(0x56d)]?()=>{}:null),_0x4c4654(_0x14e0cf(0x40d),()=>_0x121729()?.[_0x14e0cf(0x210)]?{}:null),_0x4c4654(_0x14e0cf(0x7b4),()=>_0x121729()?.[_0x14e0cf(0x6bb)]?{}:null),_0x36aefd;},_0x43ab2d=()=>_0x4cb0d4['_n'](_0x2d1e90(0x48a),[],![])['map'](_0x1ae492=>_0x1ae492['id']);return{'get':_0x1ae07f=>_0x3375f7(_0x1ae07f),'has':_0x5ce8c7=>_0x43ab2d()['includes'](_0x5ce8c7),get 'size'(){return _0x43ab2d()['length'];},'keys':()=>_0x43ab2d()[Symbol[_0x2d1e90(0x753)]](),'values':()=>_0x43ab2d()[_0x2d1e90(0x1c9)](_0x3375f7)[Symbol['iterator']](),'entries':()=>_0x43ab2d()[_0x2d1e90(0x1c9)](_0x26e270=>[_0x26e270,_0x3375f7(_0x26e270)])[Symbol['iterator']](),[Symbol[_0x2d1e90(0x753)]]:()=>_0x43ab2d()[_0x2d1e90(0x1c9)](_0x4cd170=>[_0x4cd170,_0x3375f7(_0x4cd170)])[Symbol[_0x2d1e90(0x753)]](),'forEach':_0x14c636=>_0x43ab2d()[_0x2d1e90(0x213)](_0x49da0d=>_0x14c636(_0x3375f7(_0x49da0d),_0x49da0d))};}async['stopAll'](){return this['_n']('stopAll',[]);}[_0x4f2936(0x48a)](){const _0x525d97=_0x4f2936,_0x3ee220=this['_n']('list',[],![]);if(!this['env'][_0x525d97(0x219)][_0x525d97(0x52f)]('~'))try{const _0x5df489=this[_0x525d97(0x326)]['okdb'][_0x525d97(0x1e9)];for(const _0x14a046 of _0x5df489[_0x525d97(0x2b8)](this[_0x525d97(0x326)][_0x525d97(0x219)])){for(const _0x1ae1db of _0x5df489['listIndexes'](_0x14a046,this[_0x525d97(0x326)]['name'])){const _0x10fee3=_0x525d97(0x684)+_0x14a046+':'+_0x1ae1db;_0x3ee220[_0x525d97(0x235)]({'id':_0x10fee3,'type':_0x14a046,'mode':_0x525d97(0x22e),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x10fee3,'meta':{'name':_0x10fee3}});}}}catch{}return _0x3ee220;}[_0x4f2936(0x553)](){const _0x5cc11e=_0x4f2936;return this['_n'](_0x5cc11e(0x553),[],![]);}[_0x4f2936(0x222)](){return this['_n']('durableTierLag',[],![]);}[_0x4f2936(0x5ff)](){return this['_n']('durableCursorFloor',[],![]);}['get'](_0x5303a0){const _0x5a0426=_0x4f2936;return this['_n'](_0x5a0426(0x1fc),[_0x5303a0],![]);}[_0x4f2936(0x6d2)](_0x4ec916){const _0x5b2c01=_0x4f2936;return this['get'](typeof _0x4ec916===_0x5b2c01(0x395)?_0x4ec916:_0x4ec916['id']);}['getCursor'](_0x355204){const _0x10494e=_0x4f2936;return this['_n'](_0x10494e(0x428),[_0x355204],![]);}[_0x4f2936(0x6f0)](_0x3dfbe2){const _0x342f0e=_0x4f2936;return this['_n'](_0x342f0e(0x6f0),[_0x3dfbe2]);}['markSnapshotComplete'](_0x3fef0d){const _0x193f1b=_0x4f2936;return this['_n'](_0x193f1b(0x327),[_0x3fef0d]);}[_0x4f2936(0x3fb)](_0x53214d){const _0x16709e=_0x4f2936;return this['_n'](_0x16709e(0x3fb),[_0x53214d],![]);}[_0x4f2936(0x464)](_0xe1a4b,_0x178cf1){const _0x1167f6=_0x4f2936;return this['_n'](_0x1167f6(0x464),[_0xe1a4b,_0x178cf1]);}async[_0x4f2936(0x10f)](_0x5e3fe0,_0x36cfb8){const _0x2ff941=_0x4f2936;return this['_n'](_0x2ff941(0x10f),[_0x5e3fe0,_0x36cfb8??0x7530]);}[_0x4f2936(0x4da)](_0x3abf22){const _0x2793f8=_0x4f2936;return this['_n'](_0x2793f8(0x4da),[_0x3abf22]);}[_0x4f2936(0x7ba)](_0x42e80e){const _0xf7da61=_0x4f2936;return this['_n'](_0xf7da61(0x7ba),[_0x42e80e]);}async[_0x4f2936(0x275)](_0xffcaab){const _0x5c0619=_0x4f2936;return this['_n'](_0x5c0619(0x275),[_0xffcaab]);}['kick'](_0x107b51){const _0x5421a4=_0x4f2936;return this['_n'](_0x5421a4(0x17a),[_0x107b51]);}[_0x4f2936(0x10e)](_0x362c41){const _0x1790e2=_0x4f2936;return this['_n'](_0x1790e2(0x10e),[_0x362c41]);}['restart'](_0x478d2d,_0x5080de={}){const _0x3d6ce1=_0x4f2936;return this['_n'](_0x3d6ce1(0x4e9),[_0x478d2d,_0x5080de]);}async[_0x4f2936(0x5ad)](_0xa1cecc,_0x5102fb,_0x58a3df){const _0x4fe240=_0x4f2936,[_0x51450d,_0x18661e]=this['_n'](_0x4fe240(0x5ad),[_0xa1cecc,_0x5102fb,_0x58a3df]);return{'version':_0x51450d,'flipClock':_0x18661e};}async[_0x4f2936(0x3a1)](_0x47e626,_0x2ccf72,_0x182c86={}){const _0x21b40f=_0x4f2936;return this['_n'](_0x21b40f(0x3a1),[_0x47e626,_0x2ccf72,_0x182c86]);}}_0x308120['registerHandler']=function _0x1c90c4(_0x2df2b8,_0x73fc1b){const _0xddced0=_0x4f2936;if(typeof _0x2df2b8!==_0xddced0(0x395)||!_0x2df2b8)throw new Error(_0xddced0(0x769));if(typeof _0x73fc1b!==_0xddced0(0x125))throw new Error(_0xddced0(0x55d));_0x5def48(_0xddced0(0x53d),_0xddced0(0x6dd),[_0x2df2b8,_0x73fc1b]);},_0x308120[_0x4f2936(0x3b3)]=function _0x1fcf14(_0x487c7a,_0x5a7a91){const _0x142e0e=_0x4f2936;if(typeof _0x487c7a!==_0x142e0e(0x395)||!_0x487c7a)throw new Error(_0x142e0e(0x6d3));if(typeof _0x5a7a91!==_0x142e0e(0x125))throw new Error(_0x142e0e(0x353));let _0x44dda3=null;_0x5def48(_0x142e0e(0x53d),_0x142e0e(0x3b3),[_0x487c7a,(_0x3b753d,_0x156886)=>{if(!_0x44dda3)_0x44dda3=_0x5a7a91();return _0x44dda3(_0x3b753d,_0x156886);}]);},_0x308120[_0x4f2936(0x340)]=_0x4b5988=>/closed|not open|released/i['test'](String(_0x4b5988)),_0x308120['_inlineClosureWarned']=![];function _0x5def48(_0x5a73eb,_0x3e5077,_0x46b742){const {staticCall:_0x2c7ea5}=requireLib();return _0x2c7ea5(_0x5a73eb,_0x3e5077,_0x46b742);}return processor[_0x4f2936(0x62f)]=_0x308120,processor[_0x4f2936(0x62f)]['OKDBProcessor']=_0x308120,processor[_0x4f2936(0x62f)]['setNative']=_0x427f5a,processor[_0x4f2936(0x62f)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0xc91aaf=_0x30747f;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x24d98d={'PUT':_0xc91aaf(0x629),'REMOVE':_0xc91aaf(0x4bc),'INDEX_DROP':_0xc91aaf(0x5d2),'INDEX_REGISTER':_0xc91aaf(0x409),'INDEX_RESET':_0xc91aaf(0x137),'TYPE_REGISTER':_0xc91aaf(0x26c),'TYPE_DROP':_0xc91aaf(0xa6),'FTS_REGISTER':_0xc91aaf(0x3a6),'FTS_DROP':_0xc91aaf(0x1dc),'FTS_RESET':_0xc91aaf(0x13b),'SCHEMA_SET':_0xc91aaf(0x2ed),'SCHEMA_DROP':_0xc91aaf(0x430),'TTL_SET':_0xc91aaf(0x352),'TTL_CLEAR':_0xc91aaf(0x61e)},_0x1875fa={'SYSTEM_READY':_0xc91aaf(0x4c2),'FIELD_RESOLVER_REGISTERED':_0xc91aaf(0x78f),'SYSTEM_STOPPED':_0xc91aaf(0x565),'SYSTEM_CLOCK_CHANGE':_0xc91aaf(0x1ab),'SYSTEM_POKE':_0xc91aaf(0x202),'SYSTEM_DRAIN':_0xc91aaf(0x6cb),'SYSTEM_TYPE_DROP':_0xc91aaf(0x5de),'SYSTEM_PROC':_0xc91aaf(0x4d9),'SYSTEM_BUS_STATE_CHANGE':_0xc91aaf(0x791),'ITEM_CREATE':_0xc91aaf(0x61a),'ITEM_UPDATE':_0xc91aaf(0x226),'ITEM_REMOVE':_0xc91aaf(0x11a),'ITEM_PENDING':_0xc91aaf(0x47f),'INDEX_RESET':_0xc91aaf(0x5e1),'INDEX_READY':_0xc91aaf(0x5c3),'INDEX_PROGRESS':'index:progress','VIEW_PROGRESS':_0xc91aaf(0x310),'INDEX_DROP':'index:drop','INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0xc91aaf(0x24d),'FTS_DROP':'fts:drop','FTS_RESET':_0xc91aaf(0x4e5),'SCHEMA_SET':_0xc91aaf(0x7c9),'SCHEMA_DROP':_0xc91aaf(0x138),'UNIQUE_VIOLATION':_0xc91aaf(0x5b8),'UNIQUE_VIOLATION_RESOLVED':_0xc91aaf(0x374),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0xc91aaf(0x1d2),'SYNC_APPLY':_0xc91aaf(0xe8),'TXN_START':'txn:start','TXN_END':'txn:end','TXN_ROLLBACK':_0xc91aaf(0x3a0),'TYPE_REGISTERED':_0xc91aaf(0x272),'TYPE_DROP':'type:drop','ENV_OPENED':_0xc91aaf(0x711),'ENV_REMOVED':_0xc91aaf(0x456),'SYSTEM_ENV_RELEASE':_0xc91aaf(0x2ca),'TTL_EXPIRED':_0xc91aaf(0x1cd),'TTL_SET':_0xc91aaf(0x322),'TTL_CLEAR':_0xc91aaf(0x490),'LICENSE_INVALID':_0xc91aaf(0x136),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0xc91aaf(0x4a3)},_0x129dcf={'CREATING':_0xc91aaf(0x146),'RESETTING':_0xc91aaf(0x66b),'READY':_0xc91aaf(0x628),'DROPPING':'dropping','WAITING':_0xc91aaf(0x71a),'ERROR':_0xc91aaf(0x373)},_0x224772={'CREATED':_0xc91aaf(0x6e9),'STARTING':_0xc91aaf(0x31c),'STARTED':'started','STOPPING':'stopping','STOPPED':'stopped'},_0x1366fe={'CREATING':_0xc91aaf(0x146),'READY':_0xc91aaf(0x628),'HALTED':_0xc91aaf(0x1a0),'STOPPED':'stopped','RESETTING':'resetting'},_0x177731=Object[_0xc91aaf(0x71f)]({'POKE':'bus:poke','DRAIN':'bus:drain','TYPE_DROP':_0xc91aaf(0x53e),'PROC':'bus:proc','ENV_RELEASE':_0xc91aaf(0x1d4)});return okdbEnums={'BUS_EVENTS':_0x177731,'CHANGE_ACTIONS':_0x24d98d,'EVENTS':_0x1875fa,'INDEX_STATE':_0x129dcf,'OKDB_STATE':_0x224772,'VIEW_STATE':_0x1366fe},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x4aa578=_0x30747f;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x54d82f={'SKIP':Symbol[_0x4aa578(0x4b3)](_0x4aa578(0x543))},{OKDBError:_0x31dec7}=requireOkdbError(),_0x41b880={'value':null,'done':!![]};class _0x4240d4{constructor(_0x56df9c){const _0x3c078d=_0x4aa578;this[_0x3c078d(0x269)]=_0x56df9c;}get[_0x4aa578(0x3db)](){return _0x41b880;}[Symbol[_0x4aa578(0x753)]](){const _0x31a39d=_0x4aa578;return this[_0x31a39d(0x269)]();}['map'](_0x2923b3){const _0x19c280=this;return new _0x4240d4(()=>{const _0x2a5fd6=_0x5ce2,_0x2e2467=_0x19c280[Symbol[_0x2a5fd6(0x753)]]();return{'next'(){const _0x57c0a4=_0x2a5fd6;for(;;){const _0x3c1953=_0x2e2467[_0x57c0a4(0x419)]();if(_0x3c1953[_0x57c0a4(0x4c4)])return{'done':!![],'value':undefined};const _0x572202=_0x2923b3(_0x3c1953[_0x57c0a4(0x2ff)]);if(_0x572202===_0x54d82f[_0x57c0a4(0x5d5)])continue;if(_0x572202===_0x41b880)return _0x2e2467[_0x57c0a4(0x44a)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x572202};}},'return'(){const _0x3feca9=_0x2a5fd6;return _0x2e2467[_0x3feca9(0x44a)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['filter'](_0x4371c6){const _0x1a7a02=_0x4aa578;return this[_0x1a7a02(0x1c9)](_0x2f2fa4=>_0x4371c6(_0x2f2fa4)?_0x2f2fa4:_0x54d82f[_0x1a7a02(0x5d5)]);}['forEach'](_0x460732){for(const _0xccafa0 of this)_0x460732(_0xccafa0);}[_0x4aa578(0x106)](_0x286eb9=0x0,_0x101564=Infinity){const _0x46082c=this;return new _0x4240d4(()=>{const _0x18844b=_0x5ce2,_0x4b159b=_0x46082c[Symbol[_0x18844b(0x753)]]();let _0x4b4335=0x0;return{'next'(){const _0x2164e6=_0x18844b;for(;;){const _0x23c2ff=_0x4b159b[_0x2164e6(0x419)]();if(_0x23c2ff['done'])return{'done':!![],'value':undefined};const _0x4af17c=_0x4b4335++;if(_0x4af17c<_0x286eb9)continue;if(_0x4af17c>=_0x101564)return _0x4b159b[_0x2164e6(0x44a)]?.(),{'done':!![],'value':undefined};return _0x23c2ff;}},'return'(){const _0x46cc2f=_0x18844b;return _0x4b159b[_0x46cc2f(0x44a)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x18844b(0x753)]](){return this;}};});}['at'](_0x51578c){let _0x53c960=0x0;for(const _0x55e8ab of this)if(_0x53c960++===_0x51578c)return _0x55e8ab;return undefined;}[_0x4aa578(0x2ae)](_0x166ddf){const _0x413dd1=this;return new _0x4240d4(()=>{const _0x182846=_0x5ce2,_0x117b00=_0x413dd1[Symbol[_0x182846(0x753)]]();let _0x2dcffd=[];return{'next'(){const _0x1fd850=_0x182846;for(;;){if(_0x2dcffd[_0x1fd850(0x789)])return{'done':![],'value':_0x2dcffd[_0x1fd850(0x311)]()};const _0x3b6c7c=_0x117b00[_0x1fd850(0x419)]();if(_0x3b6c7c['done'])return{'done':!![],'value':undefined};const _0x41dc3f=_0x166ddf(_0x3b6c7c['value']);if(Array[_0x1fd850(0x82)](_0x41dc3f))_0x2dcffd=_0x2dcffd['concat'](_0x41dc3f);else{if(_0x41dc3f!=null&&(_0x41dc3f instanceof _0x4240d4||typeof _0x41dc3f[Symbol['iterator']]===_0x1fd850(0x125)&&_0x1fd850(0x1c4)in _0x41dc3f))_0x2dcffd=_0x2dcffd[_0x1fd850(0x364)](Array[_0x1fd850(0x768)](_0x41dc3f));else{if(_0x41dc3f!==_0x54d82f[_0x1fd850(0x5d5)])return{'done':![],'value':_0x41dc3f};}}}},'return'(){const _0x34b386=_0x182846;return _0x117b00[_0x34b386(0x44a)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x182846(0x753)]](){return this;}};});}[_0x4aa578(0x364)](_0x47cfd1){const _0x5343b8=this;return new _0x4240d4(()=>{const _0x23963b=_0x5ce2;let _0x3b225d=_0x5343b8[Symbol[_0x23963b(0x753)]](),_0x306b45=![];return{'next'(){const _0x5986d7=_0x23963b;for(;;){const _0x444a8b=_0x3b225d[_0x5986d7(0x419)]();if(!_0x444a8b[_0x5986d7(0x4c4)])return _0x444a8b;if(_0x306b45)return{'done':!![],'value':undefined};_0x306b45=!![],_0x3b225d=_0x47cfd1[Symbol[_0x5986d7(0x753)]]();}},'return'(){return _0x3b225d['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x23963b(0x753)]](){return this;}};});}[_0x4aa578(0x7d4)](_0x4a1c5d){const _0x7bc9b0=this;return new _0x4240d4(()=>{const _0x278a53=_0x5ce2,_0x334831=_0x7bc9b0[Symbol[_0x278a53(0x753)]]();return{'next'(){const _0x3c859d=_0x278a53;for(;;){try{return _0x334831[_0x3c859d(0x419)]();}catch(_0x471d3f){const _0x325d0c=_0x4a1c5d(_0x471d3f);if(_0x325d0c===_0x54d82f[_0x3c859d(0x5d5)]||_0x325d0c===undefined)continue;return{'done':![],'value':_0x325d0c};}}},'return'(){const _0x106ce2=_0x278a53;return _0x334831[_0x106ce2(0x44a)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x278a53(0x753)]](){return this;}};});}[_0x4aa578(0x51d)](){const _0x101f6b=_0x4aa578;return Array[_0x101f6b(0x768)](this);}get[_0x4aa578(0x1c4)](){return Array['from'](this);}}const _0x14b30f={'total':0x0,'byLabel':{},'last':null};function _0x9ddb70(_0x447e04){const _0x911389=_0x4aa578;_0x14b30f[_0x911389(0x794)]++;if(_0x447e04)_0x14b30f[_0x911389(0x55b)][_0x447e04]=(_0x14b30f[_0x911389(0x55b)][_0x447e04]??0x0)+0x1;_0x14b30f[_0x911389(0xfe)]={'label':_0x447e04??null,'at':Date['now']()};}function _0x14e171(){const _0x15262d=_0x4aa578;return{'total':_0x14b30f[_0x15262d(0x794)],'byLabel':{..._0x14b30f[_0x15262d(0x55b)]},'last':_0x14b30f['last']};}function _0x521049(_0x1f1c17,_0xea374={}){const {getTxnId:_0x3cfac6,resume:_0x132471,label:_0x1349bb,baseline:_0x5b44d4}=_0xea374;return new _0x4240d4(()=>{let _0x5caff8=null,_0x23d07b=![],_0x5f5447=![],_0x438161=![],_0x562224,_0x97e3ac=0x0,_0x1181fb;return{'next'(){const _0x26711f=_0x5ce2;if(_0x438161)return{'done':!![],'value':undefined};if(_0x5f5447){let _0x1672c0=![];if(_0x132471&&_0x3cfac6)try{_0x1672c0=_0x3cfac6()===_0x1181fb;}catch{}if(!_0x1672c0){_0x438161=!![],_0x9ddb70(_0x1349bb);throw new _0x31dec7(_0x132471?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x26711f(0x6cd)+_0x26711f(0x574):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x26711f(0x339),'READER_HELD_ACROSS_AWAIT');}_0x5caff8=_0x132471(_0x562224,_0x97e3ac)[Symbol[_0x26711f(0x753)]](),_0x5f5447=![];}if(!_0x5caff8){if(_0x5b44d4!==undefined)_0x1181fb=_0x5b44d4;else try{_0x1181fb=_0x3cfac6?_0x3cfac6():undefined;}catch{_0x1181fb=undefined;}try{_0x5caff8=_0x1f1c17()[Symbol[_0x26711f(0x753)]]();}catch(_0x3f11ce){_0x438161=!![];throw _0x3f11ce;}}!_0x23d07b&&(_0x23d07b=!![],queueMicrotask(()=>{const _0x5137c5=_0x26711f;_0x23d07b=![];if(_0x438161||_0x5f5447)return;try{_0x5caff8?.[_0x5137c5(0x44a)]?.();}catch{}_0x5caff8=null,_0x5f5447=!![];}));const _0x5816aa=_0x5caff8['next']();if(_0x5816aa[_0x26711f(0x4c4)])return _0x438161=!![],{'done':!![],'value':undefined};return _0x562224=_0x5816aa[_0x26711f(0x2ff)],_0x97e3ac++,_0x5816aa;},'return'(){_0x438161=!![];try{_0x5caff8?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x521049,'OKDBGuardedRange':_0x4240d4,'recordGuardTrip':_0x9ddb70,'getGuardTripStats':_0x14e171},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x3ee9ce=_0x30747f;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x13f869,performance:_0x15b54a}=require$$0$1,_0x32ce1a=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x3ee9ce(0x45e),_0x27b0d5=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x149e7f=process.env.OKDB_LOOP_LAG_ALL==='1',_0x3b71cc=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5d15a3{constructor(){const _0x2b8fe3=_0x3ee9ce;this[_0x2b8fe3(0x758)]=_0x32ce1a,this[_0x2b8fe3(0x2f7)]=new Map(),this['_h']=null,this[_0x2b8fe3(0x441)]=null,this['_started']=![],this[_0x2b8fe3(0x3e4)]=(_0x5c367d,_0x10f1a5)=>process[_0x2b8fe3(0x6ce)][_0x2b8fe3(0x30c)](_0x5c367d+(_0x10f1a5?'\x20'+JSON[_0x2b8fe3(0x76f)](_0x10f1a5):'')+'\x0a');}[_0x3ee9ce(0x2aa)](){const _0x399526=_0x3ee9ce;return _0x15b54a[_0x399526(0x2aa)]();}[_0x3ee9ce(0x507)](_0x5a6445){const _0x3b827f=_0x3ee9ce;if(typeof _0x5a6445===_0x3b827f(0x125))this[_0x3b827f(0x3e4)]=_0x5a6445;}['note'](_0x4411f8,_0x323f03,_0x5c1403){const _0x3df796=_0x3ee9ce;if(!this[_0x3df796(0x758)])return;let _0x457c2c=this[_0x3df796(0x2f7)][_0x3df796(0x1fc)](_0x4411f8);!_0x457c2c&&(_0x457c2c={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x3df796(0xc4)](_0x4411f8,_0x457c2c)),_0x457c2c['ms']+=_0x323f03,_0x457c2c[_0x3df796(0x1f9)]+=0x1,_0x323f03>_0x457c2c[_0x3df796(0x63d)]&&(_0x457c2c[_0x3df796(0x63d)]=_0x323f03,_0x457c2c[_0x3df796(0xf7)]=_0x5c1403||'');}[_0x3ee9ce(0x297)](_0x4e0ab2){const _0x493497=_0x3ee9ce;if(!this[_0x493497(0x758)]||this[_0x493497(0x616)])return;this[_0x493497(0x616)]=!![];if(_0x4e0ab2)this['_log']=_0x4e0ab2;this['_h']=_0x13f869({'resolution':0xa}),this['_h']['enable'](),this[_0x493497(0x441)]=setInterval(()=>this['_report'](),_0x27b0d5);if(this[_0x493497(0x441)][_0x493497(0x1bb)])this[_0x493497(0x441)][_0x493497(0x1bb)]();}[_0x3ee9ce(0x52c)](_0x32af22){const _0x479a51=_0x3ee9ce;if(!this['_windowCbs'])this[_0x479a51(0x532)]=new Set();this[_0x479a51(0x532)]['add'](_0x32af22);if(!this['_started'])this[_0x479a51(0x6ee)]();}[_0x3ee9ce(0x45d)](_0x5e5e78){const _0x5bd53c=_0x3ee9ce;this[_0x5bd53c(0x532)]?.[_0x5bd53c(0x155)](_0x5e5e78);}['_startAdmission'](){const _0x3f6e18=_0x3ee9ce;if(this['_admissionStarted'])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x13f869({'resolution':0xa}),this['_h'][_0x3f6e18(0xaa)]());const _0x514eea=_0x27b0d5;this[_0x3f6e18(0x7cd)]=setInterval(()=>{const _0x17e12d=_0x3f6e18,_0x50158a=this['_h'];if(!_0x50158a)return;const _0x32c745=_0x50158a['percentile'](0x63)/0xf4240,_0x1a5da5=_0x50158a[_0x17e12d(0x702)]/0xf4240,_0x3defd7=_0x50158a[_0x17e12d(0x129)]/0xf4240;_0x50158a['reset']();if(this[_0x17e12d(0x532)])for(const _0x1eccfc of this[_0x17e12d(0x532)]){try{_0x1eccfc({'p99Ms':_0x32c745,'maxMs':_0x1a5da5,'meanMs':_0x3defd7,'reportMs':_0x514eea});}catch{}}},_0x514eea);if(this[_0x3f6e18(0x7cd)]['unref'])this['_admissionTimer']['unref']();}[_0x3ee9ce(0x25e)](){const _0x523b7a=_0x3ee9ce,_0x374a01=this['_h'],_0x3c92cc=_0x374a01[_0x523b7a(0x702)]/0xf4240,_0x235ee3=_0x374a01['percentile'](0x63)/0xf4240,_0x430ca0=_0x374a01[_0x523b7a(0x129)]/0xf4240;_0x374a01[_0x523b7a(0x495)]();const _0x6f1a04=[...this[_0x523b7a(0x2f7)][_0x523b7a(0x695)]()][_0x523b7a(0x1c9)](([_0x1a13c1,_0x151cf1])=>({'label':_0x1a13c1,..._0x151cf1}))['sort']((_0x315547,_0x4875cf)=>_0x4875cf['ms']-_0x315547['ms'])[_0x523b7a(0x106)](0x0,0x8);this[_0x523b7a(0x2f7)]['clear']();const _0x544b60=_0x6f1a04['reduce']((_0x422ad5,_0x5041f5)=>_0x422ad5+_0x5041f5['ms'],0x0),_0xf0b5fc=_0x6f1a04[_0x523b7a(0x1c9)](_0x190a69=>_0x190a69['label']+'='+_0x190a69['ms'][_0x523b7a(0x5a6)](0x0)+_0x523b7a(0x345)+_0x190a69[_0x523b7a(0x1f9)]+(_0x190a69[_0x523b7a(0x63d)]>0x5?_0x523b7a(0x3a8)+_0x190a69[_0x523b7a(0x63d)][_0x523b7a(0x5a6)](0x0)+'ms'+(_0x190a69[_0x523b7a(0xf7)]?'\x20'+_0x190a69[_0x523b7a(0xf7)]:'')+')':''));(_0x149e7f||_0x3c92cc>=_0x3b71cc)&&this['_log']('loop-lag\x20'+_0x27b0d5+_0x523b7a(0x5ef)+_0x3c92cc['toFixed'](0x0)+_0x523b7a(0x4b2)+_0x235ee3['toFixed'](0x0)+_0x523b7a(0x6b8)+_0x430ca0['toFixed'](0x0)+_0x523b7a(0x2c9)+_0x544b60[_0x523b7a(0x5a6)](0x0)+'ms'+(_0xf0b5fc[_0x523b7a(0x789)]?_0x523b7a(0x712)+_0xf0b5fc[_0x523b7a(0x2fd)]('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x523b7a(0x532)])for(const _0x1edcdc of this[_0x523b7a(0x532)]){try{_0x1edcdc({'p99Ms':_0x235ee3,'maxMs':_0x3c92cc,'meanMs':_0x430ca0,'reportMs':_0x27b0d5});}catch{}}}[_0x3ee9ce(0x533)](){const _0x270ce4=_0x3ee9ce;if(this[_0x270ce4(0x441)])clearInterval(this[_0x270ce4(0x441)]);if(this['_h'])this['_h'][_0x270ce4(0x26d)]();this['_timer']=null,this['_h']=null,this['_started']=![];}}const _0x3d5ff5=new _0x5d15a3();if(_0x3d5ff5[_0x3ee9ce(0x758)])_0x3d5ff5['start']();return okdbLoopMonitor={'LOOP':_0x3d5ff5},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x4f8d42=_0x30747f;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x45615e={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x5c58a8}=requireOkdbEnums(),{OKDBError:_0x517a8b}=requireOkdbError(),{recordGuardTrip:_0x5713ba,guardSnapshotIterable:_0x34f636}=requireOkdbGuardedRange(),{LOOP:_0x2094a5}=requireOkdbLoopMonitor();function _0x24d44d(_0x1cc4cc){const _0x1ef797=_0x5ce2;return _0x1cc4cc[_0x1ef797(0x1c9)](_0x195960=>{const _0x444072=_0x1ef797,[_0x5f3fa7,_0x499bd8]=_0x195960['args']||[];return{'action':_0x195960[_0x444072(0x694)],'type':_0x5f3fa7,'key':_0x499bd8};});}class _0x771ca2{[_0x4f8d42(0x22a)];[_0x4f8d42(0x6eb)]=[];[_0x4f8d42(0x5b2)]=[];[_0x4f8d42(0x733)]=[];constructor(_0x1b1728,_0x3668dc={'useReadTransaction':![]}){const _0x2b85a4=_0x4f8d42;this['okdb']=_0x1b1728,this[_0x2b85a4(0x41d)]=_0x3668dc,this['id']=_0x45615e['v4']();if(this[_0x2b85a4(0x41d)][_0x2b85a4(0x335)])try{this[_0x2b85a4(0x3fe)]=this['okdb']['db'][_0x2b85a4(0x76e)]()['lastTxnId'];}catch{this['_txnIdAtSnapshot']=undefined;}this['readTransaction']=this[_0x2b85a4(0x41d)]['useReadTransaction']?this[_0x2b85a4(0x22a)]['db'][_0x2b85a4(0x335)]():null,this['_closed']=![],this[_0x2b85a4(0x3bc)]=![],this[_0x2b85a4(0x458)]&&queueMicrotask(()=>{const _0x6e1fb=_0x2b85a4;this[_0x6e1fb(0x458)]&&(this[_0x6e1fb(0x3e9)](),this[_0x6e1fb(0x3bc)]=!![]);});}[_0x4f8d42(0x751)](_0x5a2338){const _0x416c0e=_0x4f8d42;this['_doHooks'][_0x416c0e(0x235)](_0x5a2338);}[_0x4f8d42(0x3d4)](_0x572c9a){const _0x31ea47=_0x4f8d42;this['_undoHooks'][_0x31ea47(0x235)](_0x572c9a);}['_closeReadTransaction'](){const _0xcc8ae8=_0x4f8d42;if(!this[_0xcc8ae8(0x458)])return;try{this[_0xcc8ae8(0x458)][_0xcc8ae8(0x4c4)]();}catch(_0x2f0df0){}this[_0xcc8ae8(0x458)]=null;}['_assertOpen'](){const _0x3ea418=_0x4f8d42;if(this[_0x3ea418(0x767)])throw new _0x517a8b(_0x3ea418(0x4d1),_0x3ea418(0x693));if(this[_0x3ea418(0x3bc)]){let _0xa45b65=![];if(this[_0x3ea418(0x41d)][_0x3ea418(0x335)]==='tolerant'&&this[_0x3ea418(0x3fe)]!==undefined)try{_0xa45b65=this[_0x3ea418(0x22a)]['db']['getStats']()['lastTxnId']===this[_0x3ea418(0x3fe)];}catch{}if(!_0xa45b65){_0x5713ba((this['okdb']?.[_0x3ea418(0x219)]??'?')+_0x3ea418(0x540));throw new _0x517a8b(_0x3ea418(0x580)+_0x3ea418(0x3e5)+_0x3ea418(0x39d)+_0x3ea418(0xd2),_0x3ea418(0x145));}}}[_0x4f8d42(0x1fc)](_0x2641d5,_0x40d84a){const _0x499db2=_0x4f8d42;return this[_0x499db2(0x197)](),this[_0x499db2(0x22a)][_0x499db2(0x1fc)](_0x2641d5,_0x40d84a,{'transaction':this[_0x499db2(0x458)]});}[_0x4f8d42(0x358)](_0xcd58e6,_0x198731){const _0x190bfc=_0x4f8d42;return this[_0x190bfc(0x197)](),this[_0x190bfc(0x22a)]['getEntry'](_0xcd58e6,_0x198731,{'transaction':this[_0x190bfc(0x458)]});}[_0x4f8d42(0x446)](_0x151ddd,_0x5d9a81){const _0x266e21=_0x4f8d42;return this[_0x266e21(0x197)](),this[_0x266e21(0x22a)]['getMany'](_0x151ddd,_0x5d9a81,{'transaction':this[_0x266e21(0x458)]});}[_0x4f8d42(0x437)](_0x391327){const _0x1bf1b3=_0x4f8d42;if(!this[_0x1bf1b3(0x41d)][_0x1bf1b3(0x335)])return _0x391327;if(_0x391327&&typeof _0x391327[_0x1bf1b3(0x665)]===_0x1bf1b3(0x125))return _0x391327;if(Array['isArray'](_0x391327))return _0x391327;const _0x35ce05=this,_0x25484c=_0x35ce05['options'][_0x1bf1b3(0x335)]==='tolerant',_0x32bc42=()=>{const _0x3f47c5=_0x1bf1b3;if(!_0x35ce05[_0x3f47c5(0x3bc)])return![];if(!_0x25484c)return!![];if(_0x35ce05[_0x3f47c5(0x3fe)]===undefined)return!![];try{return _0x35ce05[_0x3f47c5(0x22a)]['db'][_0x3f47c5(0x76e)]()[_0x3f47c5(0x114)]!==_0x35ce05[_0x3f47c5(0x3fe)];}catch{return!![];}};return _0x34f636(()=>{const _0x3dc660=_0x1bf1b3;if(_0x35ce05[_0x3dc660(0x767)])throw new _0x517a8b(_0x3dc660(0x4d1),_0x3dc660(0x693));if(_0x32bc42()){_0x5713ba((_0x35ce05[_0x3dc660(0x22a)]?.['name']??'?')+':txnRange');throw new _0x517a8b(_0x3dc660(0x598)+_0x3dc660(0x154)+_0x3dc660(0x281),_0x3dc660(0x145));}return _0x391327;},{'label':(_0x35ce05[_0x1bf1b3(0x22a)]?.[_0x1bf1b3(0x219)]??'?')+_0x1bf1b3(0x4a8),..._0x25484c?{'baseline':_0x35ce05[_0x1bf1b3(0x3fe)],'getTxnId':()=>_0x35ce05['okdb']['db'][_0x1bf1b3(0x76e)]()['lastTxnId'],'resume':(_0x1ec33d,_0x7fc267)=>_0x391327[_0x1bf1b3(0x106)](_0x7fc267)}:{}});}[_0x4f8d42(0x569)](_0x2612ff,_0x37e391={}){const _0x2b7472=_0x4f8d42;return this['_assertOpen'](),this[_0x2b7472(0x437)](this[_0x2b7472(0x22a)][_0x2b7472(0x569)](_0x2612ff,{'transaction':this[_0x2b7472(0x458)],..._0x37e391}));}[_0x4f8d42(0x64a)](_0x51ede0,_0x294b83={}){const _0x422bfc=_0x4f8d42;return this[_0x422bfc(0x197)](),this[_0x422bfc(0x437)](this[_0x422bfc(0x22a)][_0x422bfc(0x64a)](_0x51ede0,{'transaction':this[_0x422bfc(0x458)],..._0x294b83}));}[_0x4f8d42(0x105)](_0x455754,_0x264d1e={}){const _0x31be27=_0x4f8d42;return this[_0x31be27(0x197)](),this[_0x31be27(0x437)](this[_0x31be27(0x22a)][_0x31be27(0x105)](_0x455754,{'transaction':this['readTransaction'],..._0x264d1e}));}[_0x4f8d42(0x371)](_0x3f7b77,_0x42341f,_0x4f3edd={}){const _0x250fbc=_0x4f8d42;return this[_0x250fbc(0x197)](),this['_range'](this[_0x250fbc(0x22a)][_0x250fbc(0x371)](_0x3f7b77,_0x42341f,{'transaction':this[_0x250fbc(0x458)],..._0x4f3edd}));}[_0x4f8d42(0x5ae)](_0x26b394,_0x1f07c6,_0x5b1b28={}){const _0x3d08a3=_0x4f8d42;return this[_0x3d08a3(0x197)](),this[_0x3d08a3(0x437)](this[_0x3d08a3(0x22a)][_0x3d08a3(0x5ae)](_0x26b394,_0x1f07c6,{'transaction':this['readTransaction'],..._0x5b1b28}));}['getClock'](_0x2f8aee=null){const _0x561ce6=_0x4f8d42;return this[_0x561ce6(0x197)](),this['okdb'][_0x561ce6(0x14b)](_0x2f8aee,{'transaction':this[_0x561ce6(0x458)]});}['getCount'](_0x1db958){const _0x287c32=_0x4f8d42;return this[_0x287c32(0x197)](),this[_0x287c32(0x22a)][_0x287c32(0x42e)](_0x1db958,{'transaction':this[_0x287c32(0x458)]});}['put'](_0x3a5a38,_0x13227c,_0x20c6d4,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x43eabe=_0x4f8d42;this[_0x43eabe(0x6eb)][_0x43eabe(0x235)]({'action':_0x43eabe(0x629),'args':[_0x3a5a38,_0x13227c,_0x20c6d4,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x4f8d42(0x4a7)](_0x5de235,_0x2ef0c3,_0x420166,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x4f8d42(0x2aa)](),origin:origin=null,ttl:ttl=null}={}){const _0x5a64e5=_0x4f8d42;this[_0x5a64e5(0x6eb)][_0x5a64e5(0x235)]({'action':_0x5a64e5(0x4a7),'args':[_0x5de235,_0x2ef0c3,_0x420166,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x4f8d42(0x1c7)](_0xc4b13a,_0x486751,_0x22314a,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x4f8d42(0x2aa)](),origin:origin=null,ttl:ttl=null}={}){const _0x14aa17=_0x4f8d42;this[_0x14aa17(0x6eb)][_0x14aa17(0x235)]({'action':_0x14aa17(0x1c7),'args':[_0xc4b13a,_0x486751,_0x22314a,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['create'](_0x43dd45,_0x1aa4ad,_0x2d0cb2,{version:version=null,timestamp:timestamp=Date[_0x4f8d42(0x2aa)](),origin:origin=null,ttl:ttl=null}={}){const _0x1add69=_0x4f8d42;this[_0x1add69(0x6eb)]['push']({'action':_0x1add69(0xaf),'args':[_0x43dd45,_0x1aa4ad,_0x2d0cb2,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['remove'](_0x8a7bb5,_0x14708c,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x3bf865=_0x4f8d42;this[_0x3bf865(0x6eb)][_0x3bf865(0x235)]({'action':_0x3bf865(0x4bc),'args':[_0x8a7bb5,_0x14708c,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}['setTTL'](_0x4a429e,_0x1ed03f,_0x3b3641){const _0x433764=_0x4f8d42;this['actions'][_0x433764(0x235)]({'action':_0x433764(0xce),'args':[_0x4a429e,_0x1ed03f,_0x3b3641]});}[_0x4f8d42(0x6fb)](_0x45d8ca,_0x5882cd){const _0x45daba=_0x4f8d42;this[_0x45daba(0x6eb)][_0x45daba(0x235)]({'action':_0x45daba(0x6fb),'args':[_0x45d8ca,_0x5882cd]});}[_0x4f8d42(0x383)](){const _0x4077c5=_0x4f8d42;if(this['_closed'])return;for(const _0x4685b1 of this['_undoHooks']){try{_0x4685b1();}catch{}}this[_0x4077c5(0x22a)]['events'][_0x4077c5(0x4eb)](_0x5c58a8[_0x4077c5(0x7a5)],{'id':this['id']}),this[_0x4077c5(0x6eb)]=[],this['_closeReadTransaction'](),this[_0x4077c5(0x767)]=!![];}async['commit'](){const _0x52d0d0=_0x4f8d42;if(this[_0x52d0d0(0x767)])throw new Error(_0x52d0d0(0x4d1));const _0x35109b={'id':this['id'],'timestamp':Date[_0x52d0d0(0x2aa)](),'actions':this[_0x52d0d0(0x6eb)]};this[_0x52d0d0(0x22a)][_0x52d0d0(0x599)][_0x52d0d0(0x4eb)](_0x5c58a8[_0x52d0d0(0xbc)],_0x35109b);try{const _0x382814=_0x2094a5[_0x52d0d0(0x758)]?_0x2094a5[_0x52d0d0(0x2aa)]():0x0;await this[_0x52d0d0(0x22a)][_0x52d0d0(0x1fd)]['transaction'](()=>{const _0x303773=_0x52d0d0;for(const _0x2e734f of this['actions']){const _0x32f393=this[_0x303773(0x22a)]['_'+_0x2e734f[_0x303773(0x694)]];if(typeof _0x32f393!==_0x303773(0x125))throw new Error(_0x303773(0x1f8)+_0x2e734f['action']);_0x32f393[_0x303773(0x3c4)](this[_0x303773(0x22a)],this,..._0x2e734f[_0x303773(0x756)]);}}),_0x2094a5[_0x52d0d0(0x758)]&&_0x2094a5[_0x52d0d0(0xe9)](_0x52d0d0(0x167),_0x2094a5['now']()-_0x382814,(this[_0x52d0d0(0x22a)]['name']??'?')+'\x20actions='+this[_0x52d0d0(0x6eb)][_0x52d0d0(0x789)]);}catch(_0x220c8e){for(const _0x5e1340 of this[_0x52d0d0(0x733)]){try{_0x5e1340();}catch{}}this['_closeReadTransaction'](),this['_closed']=!![];if(_0x220c8e instanceof _0x517a8b)throw _0x220c8e;const _0x4b5ef5={'cause':_0x220c8e,'env':this[_0x52d0d0(0x22a)]?.[_0x52d0d0(0x219)],'envPath':this[_0x52d0d0(0x22a)]?.['path'],'pid':process['pid'],'txnId':this['id'],'actionCount':this[_0x52d0d0(0x6eb)]['length'],'actions':_0x24d44d(this['actions']),'nativeCode':_0x220c8e?.[_0x52d0d0(0x182)],'nativeName':_0x220c8e?.[_0x52d0d0(0x219)]};try{this[_0x52d0d0(0x22a)]?.[_0x52d0d0(0x54d)]?.[_0x52d0d0(0x373)]?.(_0x52d0d0(0x144),{'env':_0x4b5ef5[_0x52d0d0(0x326)],'envPath':_0x4b5ef5['envPath'],'pid':_0x4b5ef5[_0x52d0d0(0x69d)],'txnId':_0x4b5ef5[_0x52d0d0(0x382)],'actionCount':_0x4b5ef5[_0x52d0d0(0x1df)],'actions':_0x4b5ef5[_0x52d0d0(0x6eb)],'nativeCode':_0x4b5ef5[_0x52d0d0(0x7b7)],'error':_0x220c8e?.[_0x52d0d0(0x362)],'stack':_0x220c8e?.['stack']});}catch{}throw new _0x517a8b(_0x220c8e?.[_0x52d0d0(0x362)]||'Unknown\x20OKDB\x20transaction\x20error','TXN_ERROR',_0x4b5ef5);}this[_0x52d0d0(0x22a)][_0x52d0d0(0x599)][_0x52d0d0(0x4eb)](_0x5c58a8['TXN_END'],_0x35109b);for(const _0x59c130 of this['_doHooks']){try{await _0x59c130();}catch{}}this['actions']=[],this[_0x52d0d0(0x3e9)](),this['_closed']=!![];}static[_0x4f8d42(0x1d1)](_0x295e13){const _0x2c637d=_0x4f8d42;return Object[_0x2c637d(0x71f)]({'id':_0x295e13['id'],'put':_0x295e13['put']['bind'](_0x295e13),'update':_0x295e13[_0x2c637d(0x4a7)][_0x2c637d(0x2b9)](_0x295e13),'patch':_0x295e13[_0x2c637d(0x1c7)]['bind'](_0x295e13),'create':_0x295e13[_0x2c637d(0xaf)]['bind'](_0x295e13),'remove':_0x295e13[_0x2c637d(0x4bc)][_0x2c637d(0x2b9)](_0x295e13),'setTTL':_0x295e13['setTTL'][_0x2c637d(0x2b9)](_0x295e13),'clearTTL':_0x295e13[_0x2c637d(0x6fb)][_0x2c637d(0x2b9)](_0x295e13),'commit':_0x295e13['commit'][_0x2c637d(0x2b9)](_0x295e13),'rollback':_0x295e13[_0x2c637d(0x383)][_0x2c637d(0x2b9)](_0x295e13),'get':_0x295e13[_0x2c637d(0x1fc)][_0x2c637d(0x2b9)](_0x295e13),'getEntry':_0x295e13[_0x2c637d(0x358)][_0x2c637d(0x2b9)](_0x295e13),'getMany':_0x295e13[_0x2c637d(0x446)][_0x2c637d(0x2b9)](_0x295e13),'getRange':_0x295e13['getRange']['bind'](_0x295e13),'getValues':_0x295e13[_0x2c637d(0x64a)][_0x2c637d(0x2b9)](_0x295e13),'getKeys':_0x295e13[_0x2c637d(0x105)][_0x2c637d(0x2b9)](_0x295e13),'byIndex':_0x295e13[_0x2c637d(0x371)]['bind'](_0x295e13),'query':_0x295e13[_0x2c637d(0x5ae)][_0x2c637d(0x2b9)](_0x295e13),'getClock':_0x295e13[_0x2c637d(0x14b)][_0x2c637d(0x2b9)](_0x295e13),'getCount':_0x295e13['getCount'][_0x2c637d(0x2b9)](_0x295e13),'read':_0x295e13,'raw':_0x295e13});}static[_0x4f8d42(0x4fe)](_0x967de1,_0x49e145=[]){const _0xc63c08=_0x4f8d42;if(!Array[_0xc63c08(0x82)](_0x49e145))throw new _0x517a8b(_0xc63c08(0x3fd),_0xc63c08(0x476));for(const _0x23ec07 of _0x49e145){if(Array[_0xc63c08(0x82)](_0x23ec07)){const [_0x1d1c4a,..._0x30e609]=_0x23ec07;if(typeof _0x967de1[_0x1d1c4a]!==_0xc63c08(0x125))throw new _0x517a8b(_0xc63c08(0x1f8)+_0x1d1c4a,_0xc63c08(0x39a),{'action':_0x1d1c4a});_0x967de1[_0x1d1c4a](..._0x30e609);continue;}if(!_0x23ec07||typeof _0x23ec07!=='object')throw new _0x517a8b(_0xc63c08(0x5b9),'TXN_INVALID_OP');const {action:_0x51ab41}=_0x23ec07;if(typeof _0x51ab41!=='string'||typeof _0x967de1[_0x51ab41]!==_0xc63c08(0x125))throw new _0x517a8b('Unknown\x20transaction\x20action:\x20'+_0x51ab41,_0xc63c08(0x39a),{'action':_0x51ab41});switch(_0x51ab41){case _0xc63c08(0x629):case'update':case _0xc63c08(0xaf):_0x967de1[_0x51ab41](_0x23ec07[_0xc63c08(0x4a6)],_0x23ec07[_0xc63c08(0x781)],_0x23ec07[_0xc63c08(0x2ff)],{..._0x23ec07[_0xc63c08(0x41d)],'ttl':_0x23ec07['ttl']??_0x23ec07[_0xc63c08(0x41d)]?.[_0xc63c08(0x344)]??null});break;case'patch':_0x967de1['patch'](_0x23ec07[_0xc63c08(0x4a6)],_0x23ec07['key'],_0x23ec07[_0xc63c08(0x1c7)],{..._0x23ec07['options'],'ttl':_0x23ec07[_0xc63c08(0x344)]??_0x23ec07[_0xc63c08(0x41d)]?.[_0xc63c08(0x344)]??null});break;case _0xc63c08(0x4bc):_0x967de1['remove'](_0x23ec07[_0xc63c08(0x4a6)],_0x23ec07[_0xc63c08(0x781)],_0x23ec07[_0xc63c08(0x41d)]||{});break;case _0xc63c08(0xce):_0x967de1[_0xc63c08(0xce)](_0x23ec07[_0xc63c08(0x4a6)],_0x23ec07[_0xc63c08(0x781)],_0x23ec07['ttl']);break;case'clearTTL':_0x967de1[_0xc63c08(0x6fb)](_0x23ec07[_0xc63c08(0x4a6)],_0x23ec07['key']);break;default:throw new _0x517a8b(_0xc63c08(0x164)+_0x51ab41,'TXN_INVALID_ACTION',{'action':_0x51ab41});}}}static async['run'](_0x3e49af,_0x4badf6,_0x5640c6={}){const _0xdd9cc=_0x4f8d42,_0x1eddd0=new _0x771ca2(_0x3e49af,_0x5640c6),_0x267b98=_0x771ca2[_0xdd9cc(0x1d1)](_0x1eddd0);try{typeof _0x4badf6===_0xdd9cc(0x125)?await _0x4badf6(_0x267b98):_0x771ca2[_0xdd9cc(0x4fe)](_0x1eddd0,_0x4badf6||[]);const _0x3add57=_0x1eddd0[_0xdd9cc(0x6eb)][_0xdd9cc(0x789)];return await _0x1eddd0[_0xdd9cc(0x719)](),{'id':_0x1eddd0['id'],'actions':_0x3add57};}catch(_0x35a660){try{_0x1eddd0[_0xdd9cc(0x383)]();}catch(_0x403101){}throw _0x35a660;}}}return okdbTransaction=_0x771ca2,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x55964a=_0x30747f;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x55964a(0x236)](dist,_0x55964a(0x53c),{'value':!![]});const _0xc9e514=new Float64Array(0x2),_0x8ace6a=new Int32Array(_0xc9e514[_0x55964a(0x633)],0x0,0x4),{lowIdx:_0x192ae1,highIdx:_0x340b97}=((()=>{const _0x3df542=_0x55964a;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x3df542(0x633)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0xd986c3=![],_0x5475eb;try{_0x5475eb=new TextEncoder();}catch(_0x5cd11e){}function _0x432f91(_0x4be2ee,_0x2ef438,position,_0x4c4ec9){const _0x179c1e=_0x55964a;let _0x2b6ed7=_0x2ef438['dataView'];if(!_0x2b6ed7)_0x2b6ed7=_0x2ef438[_0x179c1e(0x403)]=new DataView(_0x2ef438[_0x179c1e(0x633)],_0x2ef438[_0x179c1e(0x1b4)],_0x2ef438[_0x179c1e(0x28a)]+0x3>>0x2<<0x2);switch(typeof _0x4be2ee){case _0x179c1e(0x395):let _0x730bba=_0x4be2ee[_0x179c1e(0x789)],_0x1c7f0e=_0x4be2ee['charCodeAt'](0x0);if(!(_0x1c7f0e>=0x1c))_0x2ef438[position++]=0x1b;if(_0x730bba<0x40){let _0x30b8a6,_0x33616a;for(_0x30b8a6=0x0;_0x30b8a6<_0x730bba;_0x30b8a6++){_0x1c7f0e=_0x4be2ee[_0x179c1e(0x332)](_0x30b8a6);if(_0x1c7f0e<=0x4)_0x2ef438[position++]=0x4,_0x2ef438[position++]=_0x1c7f0e;else{if(_0x1c7f0e<0x80)_0x2ef438[position++]=_0x1c7f0e;else{if(_0x1c7f0e<0x800)_0x2ef438[position++]=_0x1c7f0e>>0x6|0xc0,_0x2ef438[position++]=_0x1c7f0e&0x3f|0x80;else(_0x1c7f0e&0xfc00)===0xd800&&((_0x33616a=_0x4be2ee[_0x179c1e(0x332)](_0x30b8a6+0x1))&0xfc00)===0xdc00?(_0x1c7f0e=0x10000+((_0x1c7f0e&0x3ff)<<0xa)+(_0x33616a&0x3ff),_0x30b8a6++,_0x2ef438[position++]=_0x1c7f0e>>0x12|0xf0,_0x2ef438[position++]=_0x1c7f0e>>0xc&0x3f|0x80,_0x2ef438[position++]=_0x1c7f0e>>0x6&0x3f|0x80,_0x2ef438[position++]=_0x1c7f0e&0x3f|0x80):(_0x2ef438[position++]=_0x1c7f0e>>0xc|0xe0,_0x2ef438[position++]=_0x1c7f0e>>0x6&0x3f|0x80,_0x2ef438[position++]=_0x1c7f0e&0x3f|0x80);}}}}else{if(_0x2ef438[_0x179c1e(0x52d)])position+=_0x2ef438['utf8Write'](_0x4be2ee,position,_0x2ef438['byteLength']-position);else position+=_0x5475eb[_0x179c1e(0x35f)](_0x4be2ee,_0x2ef438[_0x179c1e(0x3d7)](position))[_0x179c1e(0x2f0)];if(position>_0x2ef438[_0x179c1e(0x789)]-0x4)throw new RangeError(_0x179c1e(0xdb));}break;case _0x179c1e(0x7c0):_0xc9e514[0x0]=_0x4be2ee;let _0x4aa0da=_0x8ace6a[_0x192ae1],_0x98dc30=_0x8ace6a[_0x340b97],_0x4bb4ff;if(_0x4be2ee<0x0)return _0x2b6ed7[_0x179c1e(0x16c)](position+0x4,~(_0x4aa0da>>>0x4|_0x98dc30<<0x1c)),_0x2b6ed7[_0x179c1e(0x16c)](position+0x0,(_0x98dc30^0x7fffffff)>>>0x4),_0x2b6ed7[_0x179c1e(0x16c)](position+0x8,(_0x4aa0da&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x4aa0da&0xf||_0x4c4ec9)_0x4bb4ff=0x9;else{if(_0x4aa0da&0xfffff)_0x4bb4ff=0x8;else{if(_0x4aa0da||_0x98dc30&0xf)_0x4bb4ff=0x6;else _0x4bb4ff=0x4;}}}_0x2b6ed7[_0x179c1e(0x16c)](position+0x0,_0x98dc30>>>0x4|0x10000000),_0x2b6ed7[_0x179c1e(0x16c)](position+0x4,_0x4aa0da>>>0x4|_0x98dc30<<0x1c),_0x2b6ed7[_0x179c1e(0x16c)](position+0x8,(_0x4aa0da&0xf)<<0x4,!![]);return position+_0x4bb4ff;case _0x179c1e(0x12c):if(_0x4be2ee){if(Array[_0x179c1e(0x82)](_0x4be2ee)){for(let _0x36a52c=0x0,_0x6dbda=_0x4be2ee[_0x179c1e(0x789)];_0x36a52c<_0x6dbda;_0x36a52c++){if(_0x36a52c>0x0)_0x2ef438[position++]=0x0;position=_0x432f91(_0x4be2ee[_0x36a52c],_0x2ef438,position,!![]);}break;}else{if(_0x4be2ee instanceof Uint8Array){_0x2ef438[_0x179c1e(0xc4)](_0x4be2ee,position),position+=_0x4be2ee['length'];break;}else throw new Error(_0x179c1e(0x58b)+JSON['stringify'](_0x4be2ee));}}else _0x2ef438[position++]=0x0;break;case _0x179c1e(0x355):_0x2b6ed7[_0x179c1e(0x536)](position++,_0x4be2ee?0x7:0x6,!![]);return position;case'bigint':let _0x300fce=Number(_0x4be2ee);if(BigInt(_0x300fce)>_0x4be2ee){_0xc9e514[0x0]=_0x300fce;if(_0x300fce>0x0){if(_0x8ace6a[_0x192ae1])_0x8ace6a[_0x192ae1]--;else _0x8ace6a[_0x340b97]--,_0x8ace6a[_0x192ae1]=0xffffffff;}else{if(_0x8ace6a[_0x192ae1]<0xffffffff)_0x8ace6a[_0x192ae1]++;else _0x8ace6a[_0x340b97]++,_0x8ace6a[_0x192ae1]=0x0;}_0x300fce=_0xc9e514[0x0];}let _0x461225=_0x4be2ee-BigInt(_0x300fce);if(_0x461225===0x0n)return _0x432f91(_0x300fce,_0x2ef438,position,_0x4c4ec9);_0x432f91(_0x300fce,_0x2ef438,position,_0x4c4ec9),position+=0x9;let _0x13f5bf=BigInt((_0x8ace6a[_0x340b97]>>0x14&0x7ff)-0x437),_0x36ca27=_0x461225>>_0x13f5bf;_0x2ef438[position-0x1]|=Number(_0x36ca27),_0x461225-=_0x36ca27<<_0x13f5bf;let _0x3f5042=!![];while(_0x461225||_0x3f5042){_0x3f5042=![],_0x13f5bf-=0x7n;let _0x5de1b9=_0x461225>>_0x13f5bf;_0x2ef438[position++]=Number(_0x5de1b9)|0x80,_0x461225-=_0x5de1b9<<_0x13f5bf;}return position;case _0x179c1e(0x18d):return position;case'symbol':_0x2ef438[position++]=0x2;return _0x432f91(_0x4be2ee[_0x179c1e(0x65d)],_0x2ef438,position,_0x4c4ec9);default:throw new Error(_0x179c1e(0x8a)+typeof _0x4be2ee);}if(_0xd986c3&&!_0x4c4ec9)_0x2b6ed7['setUint32'](position,0x0);return position;}let position;function _0x5daad9(_0x4834aa,_0x573589,_0x4af482,_0x5c428e){const _0x4b0586=_0x55964a;position=_0x573589;let _0x56cb55=_0x4834aa[position],_0x53ef52;if(_0x56cb55<0x18){if(_0x56cb55<0x8){position++;if(_0x56cb55==0x6)_0x53ef52=![];else{if(_0x56cb55==0x7)_0x53ef52=!![];else{if(_0x56cb55==0x0)_0x53ef52=null;else{if(_0x56cb55==0x2)_0x53ef52=Symbol[_0x4b0586(0x4b3)](_0x2bde3e(_0x4834aa,_0x4af482));else return Uint8Array[_0x4b0586(0x744)][_0x4b0586(0x106)]['call'](_0x4834aa,_0x573589,_0x4af482);}}}}else{let _0x5f3fd5;try{_0x5f3fd5=_0x4834aa['dataView']||(_0x4834aa[_0x4b0586(0x403)]=new DataView(_0x4834aa['buffer'],_0x4834aa[_0x4b0586(0x1b4)],_0x4834aa[_0x4b0586(0x28a)]+0x3>>0x2<<0x2));}catch(_0x349071){_0x5f3fd5=_0x4834aa[_0x4b0586(0x403)]||(_0x4834aa[_0x4b0586(0x403)]=new DataView(_0x4834aa[_0x4b0586(0x633)],_0x4834aa['byteOffset'],_0x4834aa[_0x4b0586(0x633)][_0x4b0586(0x28a)]-_0x4834aa[_0x4b0586(0x1b4)]));}let _0x31424b=_0x5f3fd5[_0x4b0586(0x24e)](position)<<0x4,_0xedd61c=_0x4af482-position,_0x4cf571;if(_0xedd61c>0x4)_0x4cf571=position+0x8<=_0x4834aa['length']?_0x5f3fd5[_0x4b0586(0x24e)](position+0x4):_0x4834aa[position+0x4]<<0x18|_0x4834aa[position+0x5]<<0x10|_0x4834aa[position+0x6]<<0x8|_0x4834aa[position+0x7],_0x31424b|=_0x4cf571>>>0x1c,_0xedd61c<=0x6&&(_0x4cf571&=-0x10000),_0x4cf571=_0x4cf571<<0x4,_0xedd61c>0x8&&(_0x4cf571=_0x4cf571|_0x4834aa[position+0x8]>>0x4);else _0x4cf571=0x0;_0x56cb55<0x10&&(_0x31424b=_0x31424b^0x7fffffff,_0x4cf571=~_0x4cf571);_0x8ace6a[_0x340b97]=_0x31424b,_0x8ace6a[_0x192ae1]=_0x4cf571,_0x53ef52=_0xc9e514[0x0],position+=0x9;if(_0xedd61c>0x9&&_0x4834aa[position]>0x0){_0x53ef52=BigInt(_0x53ef52);let _0x32fa7a=_0x31424b>>0x14&0x7ff,_0x1a94ba=_0x4834aa[position-0x1]&0xf;_0x53ef52+=BigInt(_0x1a94ba)<<BigInt(_0x32fa7a-0x437);while((_0x1a94ba=_0x4834aa[position])>0x0&&position++<_0x4af482){_0x53ef52+=BigInt(_0x1a94ba&0x7f)<<BigInt((_0x573589-position)*0x7+_0x32fa7a-0x3f8);}}}}else{_0x56cb55==0x1b&&position++;_0x53ef52=_0x2bde3e(_0x4834aa,_0x4af482);if(position<_0x4af482)position--;}while(position<_0x4af482){if(_0x4834aa[position]===0x0)position++;if(_0x5c428e)return _0xedff8c[_0x4b0586(0x4fb)]=position,_0x53ef52;let _0xf09b4f=_0x5daad9(_0x4834aa,position,_0x4af482,!![]);if(_0x53ef52 instanceof Array)_0x53ef52[_0x4b0586(0x235)](_0xf09b4f);else _0x53ef52=[_0x53ef52,_0xf09b4f];}return _0x53ef52;}const _0x3c33a2=()=>_0xd986c3=!![],_0xedff8c={'writeKey':_0x432f91,'readKey':_0x5daad9,'enableNullTermination':_0x3c33a2};let _0xfa2a8f=[],_0x2f0afd=0x0;const _0x3983db=typeof Buffer!==_0x55964a(0x18d),_0x1f39c7=_0x3983db?Buffer[_0x55964a(0x71c)]:Uint8Array,_0x531164=_0xcfa461=>{const _0xd58727=_0x55964a;let _0x1ab4e2;_0x2f0afd+0x64>_0xfa2a8f[_0xd58727(0x789)]&&(_0xfa2a8f=new _0x1f39c7(0x2000),_0x2f0afd=0x0,_0x1ab4e2=!![]);try{let _0x293966=_0xfa2a8f[_0xd58727(0x106)](_0x2f0afd,_0x2f0afd=_0x432f91(_0xcfa461,_0xfa2a8f,_0x2f0afd));if(_0x2f0afd>_0xfa2a8f['length']){if(_0x1ab4e2)throw new Error('Key\x20is\x20too\x20large');return _0x531164(_0xcfa461);}return _0x293966;}catch(_0x48b05c){if(_0x1ab4e2)throw _0x48b05c;return _0x2f0afd=_0xfa2a8f['length'],_0x531164(_0xcfa461);}},_0xacff25=_0xe648ba=>{const _0xc07abc=_0x55964a;return _0x5daad9(_0xe648ba,0x0,_0xe648ba[_0xc07abc(0x789)]);},fromCharCode=String[_0x55964a(0x717)];function _0x15271c(){const _0x330dee=_0x55964a;let _0x18f0e8=_0x330dee(0x417),_0x4593db=[];for(let _0x11ece3=0x0;_0x11ece3<0x30;_0x11ece3++){let _0x14d42e=fromCharCode((_0x11ece3&0xf)+0x61)+fromCharCode((_0x11ece3>>0x4)+0x61);_0x18f0e8+=_0x330dee(0x2ce)+_0x14d42e+_0x330dee(0x3d1)+_0x14d42e+_0x330dee(0x1c0)+_0x14d42e+_0x330dee(0x9d)+_0x14d42e+'\x20=\x20finishUtf8('+_0x14d42e+_0x330dee(0x39b)+_0x14d42e+'\x20===\x204)\x0a\x09\x09\x09\x09'+_0x14d42e+_0x330dee(0xa3)+_0x4593db+_0x330dee(0x35d),_0x4593db['push'](_0x14d42e);}return _0x18f0e8+='return\x20fromCharCode('+_0x4593db+_0x330dee(0x525),_0x18f0e8;}const readString=typeof process!==_0x55964a(0x18d)&&process[_0x55964a(0x798)]?function(_0x4d3019){let {setPosition:_0xd0b14e,getPosition:_0xfbe284,readString:readString}=_0x4d3019;return _0x58abfe=>{_0xd0b14e(position);let _0x569262=readString(_0x58abfe);return position=_0xfbe284(),_0x569262;};}(new Function(_0x55964a(0x717),_0x55964a(0x7d3)+_0x15271c()+_0x55964a(0xb2)+_0x55964a(0x2ea)+_0x55964a(0x603)+_0x55964a(0x120))(fromCharCode)):eval(_0x15271c());function _0x2bde3e(_0x462d51,_0x3f04ea){if(_0x462d51[_0x3f04ea]>0x0){let _0x388fde=_0x462d51[_0x3f04ea];try{return _0x462d51[_0x3f04ea]=0x0,readString(_0x462d51);}finally{_0x462d51[_0x3f04ea]=_0x388fde;}}else return readString(_0x462d51);}function _0x567e2d(_0x193592,_0x5de26e){const _0x50caac=_0x55964a;if(typeof _0x193592=='object'){if(!_0x193592)return _0x5de26e==null?0x0:-0x1;if(_0x193592['compare']){if(_0x5de26e==null)return 0x1;else return _0x5de26e[_0x50caac(0xe6)]?_0x193592[_0x50caac(0xe6)](_0x5de26e):-0x1;}let _0x21f6cf;if(_0x5de26e instanceof Array){let _0x1454bc=0x0;while((_0x21f6cf=_0x567e2d(_0x193592[_0x1454bc],_0x5de26e[_0x1454bc]))==0x0&&_0x1454bc<=_0x193592[_0x50caac(0x789)]){_0x1454bc++;}return _0x21f6cf;}_0x21f6cf=_0x567e2d(_0x193592[0x0],_0x5de26e);if(_0x21f6cf==0x0&&_0x193592[_0x50caac(0x789)]>0x1)return 0x1;return _0x21f6cf;}else{if(typeof _0x193592==typeof _0x5de26e)return typeof _0x193592===_0x50caac(0x42a)&&(_0x193592=Symbol[_0x50caac(0x4ff)](_0x193592),_0x5de26e=Symbol[_0x50caac(0x4ff)](_0x5de26e)),_0x193592<_0x5de26e?-0x1:_0x193592===_0x5de26e?0x0:0x1;else{if(typeof _0x5de26e==_0x50caac(0x12c)){if(_0x5de26e instanceof Array)return-_0x567e2d(_0x5de26e,_0x193592);return 0x1;}else return _0x1af162[typeof _0x193592]<_0x1af162[typeof _0x5de26e]?-0x1:0x1;}}}const _0x1af162={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0xfbf0e4=null,_0x589176=new Uint8Array([0xff]);return dist['MAXIMUM_KEY']=_0x589176,dist[_0x55964a(0x5d0)]=_0xfbf0e4,dist[_0x55964a(0x609)]=_0x567e2d,dist[_0x55964a(0x707)]=_0x3c33a2,dist[_0x55964a(0x69f)]=_0xedff8c,dist[_0x55964a(0x23a)]=_0xacff25,dist['readKey']=_0x5daad9,dist[_0x55964a(0x418)]=_0x531164,dist[_0x55964a(0x648)]=_0x432f91,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x5a3249=_0x30747f;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x380649}=requireDist(),_0x4bc9af=0x7ba,_0x1ef0d4=0x1000;function _0x47c047(_0x476e74,_0x386a18){const _0x2aa9d8=_0x5ce2;switch(typeof _0x476e74){case _0x2aa9d8(0x395):return _0x476e74[_0x2aa9d8(0x789)]<=_0x4bc9af&&_0x476e74['isWellFormed']();case _0x2aa9d8(0x7c0):case _0x2aa9d8(0x355):return!![];case'object':if(_0x476e74===null)return!![];if(Array[_0x2aa9d8(0x82)](_0x476e74)){if(_0x386a18>0x8||_0x476e74[_0x2aa9d8(0x789)]>_0x4bc9af)return![];for(let _0x360ee6=0x0;_0x360ee6<_0x476e74[_0x2aa9d8(0x789)];_0x360ee6++)if(!_0x47c047(_0x476e74[_0x360ee6],_0x386a18+0x1))return![];return!![];}return Buffer[_0x2aa9d8(0x284)](_0x476e74)&&_0x476e74[_0x2aa9d8(0x789)]<=_0x4bc9af;default:return![];}}function _0x8e6e5b(_0x206626,_0x2dbf20){const _0x371864=_0x5ce2,_0x1e6d63=typeof _0x206626;if(_0x1e6d63==='string'){if(_0x206626[_0x371864(0x789)]>=0x40||!_0x206626[_0x371864(0x4ae)]()){if(!_0x47c047(_0x206626,0x0))return-0x1;}}else{if(_0x1e6d63!=='number'){if(Array[_0x371864(0x82)](_0x206626)?_0x206626[_0x371864(0x789)]===0x0||!_0x47c047(_0x206626,0x0):!_0x47c047(_0x206626,0x0))return-0x1;}}let _0x32413f;try{_0x32413f=_0x380649(_0x206626,_0x2dbf20,0x0);}catch{return-0x1;}return _0x32413f>0x0&&_0x32413f<=_0x4bc9af?_0x32413f:-0x1;}return keyenc={'encodeKey':_0x8e6e5b,'KEY_BUF_SIZE':_0x1ef0d4,'NO_FAST':Symbol(_0x5a3249(0x77f))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x4f3417=_0x30747f;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x21cefa=0x400,_0x6ae403=_0x21cefa-0x1,_0x39750f=0xea60;function _0x34a938(_0x1fab29,_0x5b811d){const _0x41d3f5=_0x5ce2;return _0x1fab29*_0x21cefa+Math[_0x41d3f5(0x702)](0x0,Math['min'](_0x5b811d,_0x6ae403));}function _0x2fac36(_0x48f12f){const _0x5cc805=Math['max'](0x0,Number(_0x48f12f)||0x0),_0x558904=_0x5cc805%_0x21cefa,_0x108cd5=(_0x5cc805-_0x558904)/_0x21cefa;return{'pt':_0x108cd5,'l':_0x558904};}function _0x485557(_0x5a5f1f,_0x5208ed=Date[_0x4f3417(0x2aa)]()){const _0x2422b7=_0x4f3417,{pt:_0x2c94d8,l:_0x612865}=_0x2fac36(_0x5a5f1f),_0x3f0ec9=Math[_0x2422b7(0x702)](_0x2c94d8,_0x5208ed),_0x4a2adb=_0x3f0ec9===_0x2c94d8?Math[_0x2422b7(0x220)](_0x612865+0x1,_0x6ae403):0x0;return _0x34a938(_0x3f0ec9,_0x4a2adb);}function _0x4b8f55(_0x3f5e69,_0x8a99e9,_0x27829a=Date['now']()){const _0x16311e=_0x4f3417,{pt:_0x1e1b34,l:_0x492845}=_0x2fac36(_0x3f5e69),{pt:_0x3cec9e,l:_0x405660}=_0x2fac36(_0x8a99e9),_0x2e5b6f=Math['max'](_0x1e1b34,_0x3cec9e,_0x27829a);let _0x5d0c5a;if(_0x2e5b6f===_0x1e1b34&&_0x2e5b6f===_0x3cec9e)_0x5d0c5a=Math[_0x16311e(0x220)](Math[_0x16311e(0x702)](_0x492845,_0x405660)+0x1,_0x6ae403);else{if(_0x2e5b6f===_0x1e1b34)_0x5d0c5a=Math[_0x16311e(0x220)](_0x492845+0x1,_0x6ae403);else _0x2e5b6f===_0x3cec9e?_0x5d0c5a=Math[_0x16311e(0x220)](_0x405660+0x1,_0x6ae403):_0x5d0c5a=0x0;}return _0x34a938(_0x2e5b6f,_0x5d0c5a);}function _0x477ed9(_0x323994,_0x4ac425){const _0x2e4900=Number(_0x323994)||0x0,_0x47ea52=Number(_0x4ac425)||0x0;if(_0x2e4900<_0x47ea52)return-0x1;if(_0x2e4900>_0x47ea52)return 0x1;return 0x0;}function _0x598553(_0x424b42){return _0x2fac36(_0x424b42)['pt'];}return okdbHlc={'send':_0x485557,'recv':_0x4b8f55,'compare':_0x477ed9,'toMs':_0x598553,'encode':_0x34a938,'decode':_0x2fac36,'SCALE':_0x21cefa,'L_MAX':_0x6ae403,'DRIFT_MAX':_0x39750f},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x336a76=_0x30747f;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x265e87,chunkedRange:_0xc72e1c,pinnedChunks:_0x4a6165,claimPrefetch:_0x1651f2}=requireIterable(),{reclass:_0x307c09,NotImplementedNative:_0x25a22d,OKDBError:_0x149ab2,optionsArg:_0x7b180}=requireErrors(),{OKDBViews:_0x11deb2}=requireViews(),{OKDBQueue:_0x7eadb0}=requireQueue(),{OKDBTimeMachine:_0x125528}=requireTimemachine(),_0xf4a32f=_0x507f55=>{const _0xe7f302=_0x5ce2;try{return!_0x507f55[_0xe7f302(0x103)]||_0x507f55['_license'][_0xe7f302(0x4e0)](_0xe7f302(0xc0));}catch{return!![];}},{OKDBFiles:_0x4abdc9}=requireFiles(),{OKDBEngines:_0x91be47,OKDBPipelines:_0x17bfaf}=requireEngines(),{OKDBFunctions:_0x14ae23}=requireFunctions(),_0x24a7e2=requireProcessor(),{RawDb:_0x5ddc6b}=requireRawdb(),_0x330855=requireBridge();let _0x584117=null;const _0x4bb8a8=()=>_0x584117||=requireOkdbTransaction(),_0x2776b3=(..._0x57eba7)=>requireOkdbGuardedRange()[_0x336a76(0xd0)](..._0x57eba7),_0x4785d7=Buffer[_0x336a76(0x768)]([0xff]),_0x142e24=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x583ea7=_0x142e24&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x541a45}=requireKeyenc(),_0x2e6667=new Set(_0x142e24?[_0x336a76(0x569),'byIndex',_0x336a76(0x5ae),_0x336a76(0x27c),'getKeys']:[]),_0x4d6426=new Set([_0x336a76(0x1fc),_0x336a76(0x358),_0x336a76(0x446),_0x336a76(0x569),'getKeys','getValues',_0x336a76(0x42e),_0x336a76(0x460),_0x336a76(0x660),_0x336a76(0x371),_0x336a76(0xb6),'query',_0x336a76(0x4cb),_0x336a76(0x279),_0x336a76(0x14b),_0x336a76(0x27c),_0x336a76(0x1f9),'now','hasType','listTypes','hasIndex',_0x336a76(0x109),_0x336a76(0x697),_0x336a76(0x76a),_0x336a76(0x361),_0x336a76(0x577),_0x336a76(0x22f),'getUniqueViolation',_0x336a76(0x33e),_0x336a76(0x4f8),_0x336a76(0x1af),_0x336a76(0x11b),'listRefViolations',_0x336a76(0x5a4),_0x336a76(0x343),'ttlStats',_0x336a76(0x41a),_0x336a76(0x219),_0x336a76(0x70d),'id',_0x336a76(0x114),_0x336a76(0x31a),'resolvedFields',_0x336a76(0x590),_0x336a76(0x549)]),_0x1c3ad6=new Set([_0x336a76(0x297),_0x336a76(0x6df),'reverse',_0x336a76(0x2a3),_0x336a76(0x713),_0x336a76(0x27d),_0x336a76(0x1e3),_0x336a76(0x408),_0x336a76(0x6de),'snapshot',_0x336a76(0x5c9),_0x336a76(0x781),_0x336a76(0x2e7),'prefix']);function _0x1f3216(_0x3335b9,_0x117c5f,_0x2c3a01){const _0x3e563d=new Map();return(_0x495d27,_0xae7cc0)=>{const _0x32d91a=_0x5ce2,_0x38ec45=JSON[_0x32d91a(0x76f)](_0xae7cc0),_0x319aa7=_0x3e563d[_0x32d91a(0x1fc)](_0x38ec45);if(_0x319aa7){if(_0x319aa7[_0x32d91a(0x8e)]==='pending')throw _0x53b571();_0x3e563d[_0x32d91a(0x155)](_0x38ec45);if(_0x319aa7['state']===_0x32d91a(0x317))throw _0x319aa7['value'];return _0x319aa7[_0x32d91a(0x2ff)];}const _0x563bf8=_0x495d27(..._0xae7cc0);if(!_0x563bf8||typeof _0x563bf8[_0x32d91a(0x665)]!==_0x32d91a(0x125))return _0x563bf8;const _0x257c3a={'state':_0x32d91a(0x51c),'value':undefined},_0x3b569e=(_0x1d18bf,_0x3466b2)=>{const _0x48ba9b=_0x32d91a;_0x257c3a['state']=_0x1d18bf,_0x257c3a[_0x48ba9b(0x2ff)]=_0x3466b2;if(_0x3e563d[_0x48ba9b(0x1fc)](_0x38ec45)!==_0x257c3a)return;setTimeout(()=>_0x3e563d['get'](_0x38ec45)===_0x257c3a&&_0x3e563d[_0x48ba9b(0x155)](_0x38ec45),0x7530)['unref']();try{_0x3335b9[_0x48ba9b(0x22a)]['_call'](_0x48ba9b(0x599),null,_0x48ba9b(0x4eb),[_0x48ba9b(0x78f),{'env':_0x3335b9[_0x48ba9b(0x219)],'type':_0x117c5f,'field':_0x2c3a01}],!![]);}catch{}};_0x563bf8[_0x32d91a(0x665)](_0x1c438d=>_0x3b569e('ok',_0x1c438d),_0x2ebb48=>_0x3b569e(_0x32d91a(0x317),_0x2ebb48));for(let _0x203cf5=0x0;_0x203cf5<0x64&&_0x257c3a[_0x32d91a(0x8e)]===_0x32d91a(0x51c);_0x203cf5++)process['_tickCallback']();if(_0x257c3a['state']==='ok')return _0x257c3a[_0x32d91a(0x2ff)];if(_0x257c3a['state']===_0x32d91a(0x317))throw _0x257c3a[_0x32d91a(0x2ff)];_0x3e563d[_0x32d91a(0xc4)](_0x38ec45,_0x257c3a);throw _0x53b571();};}function _0x53b571(){const _0x1428a4=_0x336a76;return Object['assign'](new Error(_0x1428a4(0x2f5)),{'code':_0x1428a4(0x305)});}class _0x59ce22{constructor(_0x48efd9,_0x1c0c46){const _0x73e78a=_0x336a76;this[_0x73e78a(0x22a)]=_0x48efd9,this[_0x73e78a(0x219)]=_0x1c0c46,this['events']=_0x48efd9[_0x73e78a(0x599)],this[_0x73e78a(0x54d)]=_0x48efd9[_0x73e78a(0x54d)],this[_0x73e78a(0x27b)]=!![],this['_txnBuf']=null,this['views']=new _0x11deb2(this),this[_0x73e78a(0x278)]=new _0x24a7e2(this);if(!_0x1c0c46[_0x73e78a(0x52f)]('~')||_0x1c0c46[_0x73e78a(0x116)](_0x73e78a(0x4af)))this[_0x73e78a(0x23d)]=new _0x7eadb0(this);if(!_0x1c0c46[_0x73e78a(0x52f)]('~'))this[_0x73e78a(0xab)]=new _0x4abdc9(this);this['functions']=new _0x14ae23(_0x48efd9,_0x1c0c46),this[_0x73e78a(0x763)]=new _0x91be47(_0x48efd9,_0x1c0c46,_0x48efd9['engines']),this[_0x73e78a(0x228)]=new _0x17bfaf(_0x48efd9,_0x1c0c46);if(!_0x1c0c46[_0x73e78a(0x52f)]('~')&&_0x48efd9[_0x73e78a(0x41d)][_0x73e78a(0xc0)]&&_0xf4a32f(_0x48efd9))this[_0x73e78a(0xc0)]=new _0x125528(this);_0x330855['registerEnv'](this[_0x73e78a(0x70d)],this);const _0x306e19=this;this[_0x73e78a(0x1fd)]={async 'transaction'(_0x36733e){const _0x290ebd=_0x73e78a,_0x5e824a=[];_0x306e19[_0x290ebd(0x365)]=_0x5e824a;try{_0x36733e();}finally{_0x306e19['_txnBuf']=null;}return _0x306e19[_0x290ebd(0x22a)][_0x290ebd(0x4ba)]['enqueue'](_0x290ebd(0x326),_0x306e19[_0x290ebd(0x219)],_0x290ebd(0x719),[_0x5e824a]);},'drain'(){const _0x3d5f04=_0x73e78a;return _0x306e19[_0x3d5f04(0x22a)][_0x3d5f04(0x4ba)]['drain']();},'flushLmdb'(){const _0x4f2755=_0x73e78a;return _0x306e19['okdb'][_0x4f2755(0x4ba)][_0x4f2755(0x725)]();},'markClosed'(){}};const _0x303367=new _0x5ddc6b(this,'');_0x303367[_0x73e78a(0x76e)]=()=>({'lastTxnId':this['_n'](_0x73e78a(0x114),[])}),Object['defineProperty'](_0x303367,_0x73e78a(0x511),{'get':()=>this[_0x73e78a(0x22a)][_0x73e78a(0x4ba)][_0x73e78a(0x725)](),'configurable':!![]}),Object[_0x73e78a(0x236)](_0x303367,_0x73e78a(0x570),{'get':()=>this[_0x73e78a(0x22a)][_0x73e78a(0x4ba)][_0x73e78a(0x725)](),'configurable':!![]});const _0x578c3b=_0x303367[_0x73e78a(0x1fc)][_0x73e78a(0x2b9)](_0x303367);_0x303367[_0x73e78a(0x1fc)]=_0x52c98b=>_0x52c98b===_0x73e78a(0x32d)?this['_n'](_0x73e78a(0x14b),[null]):_0x578c3b(_0x52c98b),this['db']=_0x303367;}async[_0x336a76(0x4a4)](){const _0x128067=_0x336a76;this[_0x128067(0x2eb)]=!![];}get[_0x336a76(0x486)](){const _0x3b78ae=_0x336a76;return new Map(this[_0x3b78ae(0x22a)]['_call']('db',null,_0x3b78ae(0x229),[this['name']],![]));}get['typesDb'](){const _0x27443c=_0x336a76;return this[_0x27443c(0x59c)]||(this['_typesDb']=new _0x5ddc6b(this,_0x27443c(0x175)));}['_getType'](_0x3fb397){const _0x525e90=_0x336a76,_0x3a5aa5=this[_0x525e90(0x55f)][_0x525e90(0x1fc)](_0x3fb397);if(_0x3a5aa5===undefined||String(_0x3fb397)[_0x525e90(0x52f)](_0x525e90(0x14d))||String(_0x3fb397)[_0x525e90(0x52f)](_0x525e90(0x3cf))){const {OKDBError:_0x188b3b}=requireErrors();throw new _0x188b3b('Type\x20\x22'+_0x3fb397+'\x22\x20is\x20not\x20registered',_0x525e90(0x4dc),{'type':_0x3fb397});}const _0x5d2456=this,_0x5066c1=new _0x5ddc6b(_0x5d2456,_0x525e90(0x351)+_0x3fb397+':index'),_0x29958f=new Map();for(const _0x237df9 of _0x5066c1[_0x525e90(0x105)]()){const _0x441f2c=_0x5066c1[_0x525e90(0x1fc)](_0x237df9)||{},_0x206941={'parts':_0x237df9[_0x525e90(0x55c)]('~'),'db':new _0x5ddc6b(_0x5d2456,_0x525e90(0x351)+_0x3fb397+':index:'+_0x237df9,{'dupSort':!![]})};if(_0x441f2c[_0x525e90(0x51a)])_0x206941['geoConfig']=_0x441f2c[_0x525e90(0x51a)];if(_0x441f2c['unique'])_0x206941[_0x525e90(0x3f9)]=!![];if(_0x441f2c['sparse'])_0x206941[_0x525e90(0x4d5)]=!![];if(_0x441f2c['createdBy'])_0x206941[_0x525e90(0x639)]=_0x441f2c[_0x525e90(0x639)];_0x206941[_0x525e90(0x509)]=new Set((_0x441f2c[_0x525e90(0x509)]??[])['map'](_0x4a7a1a=>_0x4a7a1a[_0x525e90(0x4e3)]+':'+_0x4a7a1a['name'])),_0x29958f[_0x525e90(0xc4)](_0x237df9,_0x206941);}return{'root':new _0x5ddc6b(_0x5d2456,_0x525e90(0x351)+_0x3fb397),'data':new _0x5ddc6b(_0x5d2456,_0x525e90(0x351)+_0x3fb397+_0x525e90(0x6e8),{'useVersions':!![]}),'indexes':_0x5066c1,'clockToChange':new _0x5ddc6b(_0x5d2456,_0x525e90(0x351)+_0x3fb397+_0x525e90(0x714)),'keyToChange':new _0x5ddc6b(_0x5d2456,_0x525e90(0x351)+_0x3fb397+':keyToChange'),'fieldSchema':new Map(Object[_0x525e90(0x695)](_0x3a5aa5[_0x525e90(0x283)]||{})[_0x525e90(0x1c9)](([_0x1aabe5,_0x5964ad])=>[_0x1aabe5,new Set(Array['isArray'](_0x5964ad)?_0x5964ad:[_0x5964ad])])),'indexToDb':_0x29958f,'ftsToDb':null,'schema':_0x3a5aa5[_0x525e90(0x51b)]||null,'defaultTTL':_0x3a5aa5['defaultTTL']||null};}get[_0x336a76(0x60e)](){const _0x13acfa=_0x336a76,_0xad45d1=this,_0x17a0d7=()=>_0xad45d1['listTypes']();return{'get':_0x224f1d=>{const _0x26a3b9=_0x5ce2;try{return _0xad45d1[_0x26a3b9(0x24f)](_0x224f1d);}catch{return undefined;}},'has':_0x5cc3b6=>_0x17a0d7()[_0x13acfa(0x116)](_0x5cc3b6),'keys':()=>_0x17a0d7()[Symbol[_0x13acfa(0x753)]](),get 'size'(){const _0x27f5b8=_0x13acfa;return _0x17a0d7()[_0x27f5b8(0x789)];}};}[_0x336a76(0x746)](){const _0x393110=_0x336a76;return this[_0x393110(0x2b8)]();}get[_0x336a76(0x83)](){const _0x1b5bb1=_0x336a76;return this[_0x1b5bb1(0x692)]||(this[_0x1b5bb1(0x692)]=new _0x5ddc6b(this,'changes'));}get['clockToChangeDb'](){const _0x44842f=_0x336a76;return this[_0x44842f(0x33c)]||(this[_0x44842f(0x33c)]=new _0x5ddc6b(this,_0x44842f(0x75f)));}[_0x336a76(0x1d7)](_0xf60724){const _0x29cb98=_0x336a76;return this['_n'](_0x29cb98(0x23e),[_0xf60724]);}get[_0x336a76(0x557)](){const _0x52fe12=_0x336a76;return!this['_n'](_0x52fe12(0x682),[],![]);}get['_sync'](){const _0x2efb53=_0x336a76;return this[_0x2efb53(0x209)]!==undefined?this[_0x2efb53(0x209)]:this['_n'](_0x2efb53(0x682),[],![]);}set[_0x336a76(0x9a)](_0xb5e5e8){const _0x2b0c2e=_0x336a76;this[_0x2b0c2e(0x209)]=_0xb5e5e8;}get[_0x336a76(0x1b7)](){const _0x2ef189=_0x336a76;return this[_0x2ef189(0x3f5)]||(this[_0x2ef189(0x3f5)]=new(requireLock())[(_0x2ef189(0x93))](this[_0x2ef189(0x22a)],_0x2ef189(0x2c7),_0x2ef189(0x5d6),{'ttlMs':0xea60}));}get[_0x336a76(0x70d)](){const _0xd08e02=_0x336a76;return this[_0xd08e02(0x6a1)]??(this[_0xd08e02(0x6a1)]=this['_n'](_0xd08e02(0x70d),[]));}get['id'](){return this['_n']('id',[]);}get[_0x336a76(0x4fa)](){const _0x5d3abc=_0x336a76;return this[_0x5d3abc(0x22a)][_0x5d3abc(0x4fa)];}['_n'](_0x15d2c9,_0x2b6549){const _0x3b8d8a=_0x336a76;return this['okdb'][_0x3b8d8a(0x313)](_0x3b8d8a(0x326),this['name'],_0x15d2c9,_0x2b6549,!_0x4d6426[_0x3b8d8a(0x73b)](_0x15d2c9));}[_0x336a76(0x66d)](_0x5e0cd3){const _0xb98470=_0x336a76;return this[_0xb98470(0x22a)][_0xb98470(0x796)](_0x5e0cd3);}[_0x336a76(0x1ea)](_0x53f8ac,_0xb32183){const _0x440c9e=_0x336a76;if(_0x2e6667[_0x440c9e(0x73b)](_0x53f8ac===_0x440c9e(0x76a)?_0xb32183[0x1]:_0x53f8ac))return this[_0x440c9e(0x22a)][_0x440c9e(0x5f4)](this[_0x440c9e(0x219)],_0x53f8ac,_0xb32183);return this[_0x440c9e(0x22a)][_0x440c9e(0x5e2)](_0x440c9e(0x326),this[_0x440c9e(0x219)],_0x53f8ac,_0xb32183);}['transaction'](_0x2763f5={'useReadTransaction':![]}){return new(_0x4bb8a8())(this,_0x2763f5);}async[_0x336a76(0xb8)](_0x437159,_0x5ea6c5){return _0x4bb8a8()['run'](this,_0x437159,_0x5ea6c5);}['_low'](_0x3b768e,_0x7db0c4){const _0xe148df=_0x336a76;if(this[_0xe148df(0x365)])this[_0xe148df(0x365)][_0xe148df(0x235)]({'action':_0x3b768e,'args':_0x7db0c4});else this['_n'](_0x3b768e,_0x7db0c4);}[_0x336a76(0x4b1)](_0x97c1a0,_0xfdb53d,_0x1d2fbc,_0x34c16,_0xfd3252){const _0x3b31c0=_0x336a76;this[_0x3b31c0(0x630)](_0x3b31c0(0x629),[_0xfdb53d,_0x1d2fbc,_0x34c16,_0xfd3252]);}['_update'](_0x23e72a,_0x51911f,_0x11e9a0,_0x58dff9,_0x228a8f){const _0x22eaef=_0x336a76;this[_0x22eaef(0x630)]('update',[_0x51911f,_0x11e9a0,_0x58dff9,_0x228a8f]);}[_0x336a76(0x349)](_0x129dcc,_0x1dfe40,_0x4ede81,_0x2f773e,_0x38d1f2){const _0x29604f=_0x336a76;this[_0x29604f(0x630)]('patch',[_0x1dfe40,_0x4ede81,_0x2f773e,_0x38d1f2]);}[_0x336a76(0x54b)](_0x30aadd,_0x27981d,_0x226bc9,_0x38b127,_0x472c87){const _0x19d596=_0x336a76;this['_low'](_0x19d596(0xaf),[_0x27981d,_0x226bc9,_0x38b127,_0x472c87]);}[_0x336a76(0x5d9)](_0x3f0f9f,_0x31fd8f,_0x271e98,_0x3f14de){const _0x5ad1e8=_0x336a76;this[_0x5ad1e8(0x630)](_0x5ad1e8(0x4bc),[_0x31fd8f,_0x271e98,_0x3f14de]);}['_setTTL'](_0x49c227,_0xa742f7,_0xdd157b,_0x6c99b7){const _0x4ecdbc=_0x336a76;this[_0x4ecdbc(0x630)]('setTTL',[_0xa742f7,_0xdd157b,_0x6c99b7]);}[_0x336a76(0x72b)](_0x1b6e93,_0x2def83,_0x69249){const _0x391e8b=_0x336a76;this[_0x391e8b(0x630)](_0x391e8b(0x6fb),[_0x2def83,_0x69249]);}['_w'](_0x2bec80,_0x4b86c4){const _0x3f6d52=_0x336a76;return this[_0x3f6d52(0x22a)]['_wb'][_0x3f6d52(0x139)](_0x3f6d52(0x326),this[_0x3f6d52(0x219)],_0x2bec80,_0x4b86c4);}[_0x336a76(0x629)](_0x4cbd14,_0x1856a8,_0x12b155,_0x20ffee={}){return this['_w']('put',[_0x4cbd14,_0x1856a8,_0x12b155,_0x20ffee]);}[_0x336a76(0x4a7)](_0x1c3088,_0x35f45a,_0x4c3219,_0xeac2a={}){return this['_w']('update',[_0x1c3088,_0x35f45a,_0x4c3219,_0xeac2a]);}[_0x336a76(0x1c7)](_0x524f3a,_0x2bded8,_0x42e2fb,_0x5e1a44={}){const _0x423733=_0x336a76;return this['_w'](_0x423733(0x1c7),[_0x524f3a,_0x2bded8,_0x42e2fb,_0x5e1a44]);}[_0x336a76(0xaf)](_0x50a540,_0x53de46,_0x20d698,_0x3fa65c={}){const _0xffe32f=_0x336a76;return this['_w'](_0xffe32f(0xaf),[_0x50a540,_0x53de46,_0x20d698,_0x3fa65c]);}['remove'](_0x403936,_0x2e512b,_0x2af9f7={}){const _0x10b858=_0x336a76;return this['_w'](_0x10b858(0x4bc),[_0x403936,_0x2e512b,_0x2af9f7]);}[_0x336a76(0x1fc)](_0x186d29,_0x5d19b2,_0x265526){const _0x3f3f7a=_0x336a76;if(_0x583ea7&&typeof _0x186d29==='string'){const _0x10f3d8=this[_0x3f3f7a(0x22a)][_0x3f3f7a(0x415)](this[_0x3f3f7a(0x219)],_0x186d29,_0x5d19b2);if(_0x10f3d8!==_0x541a45)return _0x10f3d8===null?this['_n'](_0x3f3f7a(0x1fc),[_0x186d29,_0x5d19b2]):_0x10f3d8;}if(_0x142e24&&(typeof _0x5d19b2===_0x3f3f7a(0x395)||typeof _0x5d19b2===_0x3f3f7a(0x7c0))){const _0x2b1df0=this[_0x3f3f7a(0x22a)]['_getRaw'](this[_0x3f3f7a(0x219)],_0x186d29,_0x5d19b2);if(_0x2b1df0!==null)return _0x2b1df0;}return this['_n']('get',[_0x186d29,typeof _0x5d19b2===_0x3f3f7a(0x42a)?null:_0x5d19b2]);}[_0x336a76(0x446)](_0x1323e1,_0x85cb9,_0x168bab){const _0x3bb5f3=_0x336a76,_0x1a460=[_0x1323e1,Array[_0x3bb5f3(0x82)](_0x85cb9)&&_0x85cb9[_0x3bb5f3(0x3ff)](_0x147e03=>typeof _0x147e03===_0x3bb5f3(0x42a))?_0x85cb9[_0x3bb5f3(0x1c9)](_0x4d4c8a=>typeof _0x4d4c8a===_0x3bb5f3(0x42a)?null:_0x4d4c8a):_0x85cb9];return _0x142e24?this['okdb']['_callRows'](this[_0x3bb5f3(0x219)],'getMany',_0x1a460):this['_n'](_0x3bb5f3(0x446),_0x1a460);}[_0x336a76(0x358)](_0x569d6f,_0x480f95,_0x58bded){const _0x4d4d26=_0x336a76;return this['_n'](_0x4d4d26(0x358),[_0x569d6f,typeof _0x480f95===_0x4d4d26(0x42a)?null:_0x480f95]);}[_0x336a76(0x42e)](_0x3a210e,_0x299030){const _0x30e83e=_0x336a76;return this[_0x30e83e(0x25f)]('getCount',_0x299030),this['_n'](_0x30e83e(0x42e),[_0x3a210e,_0x376bd5(_0x299030)]);}[_0x336a76(0x25f)](_0x1b5c34,_0x79ceae,_0x4e2263=[]){const _0x1d0162=_0x336a76;if(!_0x79ceae||typeof _0x79ceae!=='object')return;for(const _0x20e4fb of Object[_0x1d0162(0x393)](_0x79ceae)){if(!_0x1c3ad6['has'](_0x20e4fb)&&!_0x4e2263[_0x1d0162(0x116)](_0x20e4fb))throw new _0x149ab2(_0x1b5c34+':\x20unknown\x20option\x20\x27'+_0x20e4fb+'\x27','UNKNOWN_RANGE_OPTION',{'option':_0x20e4fb});}}[_0x336a76(0x437)](_0x52762c,_0x38fb68,_0x1232de,_0x532932,_0x183913,_0x38315b){const _0x280166=_0x336a76;this[_0x280166(0x25f)](_0x52762c,_0x532932);const _0x41e908=_0x532932?.['snapshot'],_0x4443ee=_0x376bd5(_0x532932);if(_0x41e908===!![]||_0x41e908==='tolerant'){const _0x4ff268=this[_0x280166(0x12e)](_0x52762c,_0x38fb68,_0x2edf68=>[_0x1232de,{..._0x4443ee,..._0x2edf68}],_0x532932);return _0x38315b?_0x4ff268[_0x280166(0x1c9)](_0x38315b):_0x4ff268;}const _0x53dd53=_0xc72e1c(_0x20e321=>this['_np'](_0x38fb68,[_0x1232de,_0x20e321]),_0x4443ee,_0x183913,{'rows':_0x38fb68===_0x280166(0x569)});return _0x38315b?_0x53dd53[_0x280166(0x1c9)](_0x38315b):_0x53dd53;}[_0x336a76(0x12e)](_0x41bde3,_0xf35a35,_0x5e7686,_0x513129,_0x47f0d3,_0x39c5f1=![]){const _0x1d85ed=_0x336a76,{source:_0x413058,prefetch:_0x45798c}=_0x4a6165((_0x51837b,_0x316f60)=>_0x51837b===_0x1d85ed(0x361)?this['_n'](_0x51837b,_0x316f60):this[_0x1d85ed(0x1ea)](_0x51837b,_0x316f60),_0xf35a35,_0x5e7686,_0x513129||{},_0x47f0d3),_0x41330b=_0x45798c(),_0x3cc565=!_0x39c5f1&&_0x513129&&_0x513129[_0x1d85ed(0x346)]===_0x1d85ed(0x1b5);let _0x56cdce=null;return _0x2776b3(()=>({[Symbol[_0x1d85ed(0x753)]]:()=>_0x56cdce=_0x413058(0x0,_0x1651f2(_0x41330b))}),{'label':this[_0x1d85ed(0x219)]+':'+_0x41bde3,..._0x3cc565?{'getTxnId':()=>this['db'][_0x1d85ed(0x76e)]()['lastTxnId'],'resume':()=>({[Symbol[_0x1d85ed(0x753)]]:()=>_0x56cdce=_0x56cdce[_0x1d85ed(0x243)]()})}:{}});}[_0x336a76(0x569)](_0x16dd18,_0x21432c){const _0x303b1f=_0x336a76;return this[_0x303b1f(0x437)]('getRange',_0x303b1f(0x569),_0x16dd18,_0x21432c,_0x545c30=>_0x545c30[_0x303b1f(0x781)]);}[_0x336a76(0x105)](_0x487904,_0x3157ba){const _0x5ca9d6=_0x336a76;return this[_0x5ca9d6(0x437)](_0x5ca9d6(0x105),'getKeys',_0x487904,_0x3157ba,_0x478520=>_0x478520);}['getValues'](_0x540091,_0x191639){const _0x5876eb=_0x336a76;return this[_0x5876eb(0x437)](_0x5876eb(0x64a),_0x5876eb(0x569),_0x540091,_0x191639,_0x3229e0=>_0x3229e0[_0x5876eb(0x781)],_0x5b860f=>_0x5b860f[_0x5876eb(0x2ff)]);}['getByPrefix'](_0x5ba84b,_0x4c0bdc,_0x37656a={}){return this['getRange'](_0x5ba84b,{'start':_0x4c0bdc,'end':_0x4c0bdc+'',..._0x37656a});}[_0x336a76(0x660)](_0xbbfd05,_0x51cf33,_0x1db256={}){const _0x195030=_0x336a76;this[_0x195030(0x25f)](_0x195030(0x660),_0x1db256,[_0x195030(0x54c)]);const _0xf79c2a=_0x376bd5(_0x1db256);if(_0x1db256&&_0x1db256[_0x195030(0x5c9)])return _0x265e87(this['_n'](_0x195030(0x660),[_0xbbfd05,_0x51cf33,_0xf79c2a]));return this['_lazyPinned'](_0x195030(0x660),_0x195030(0x660),_0x5e5321=>[_0xbbfd05,_0x51cf33,{..._0xf79c2a,..._0x5e5321}],_0x1db256,undefined,!![]);}[_0x336a76(0x371)](_0x3c5ecc,_0x3fab45,_0x15dd0f){const _0x337d85=_0x336a76;this['_assertRangeOptions']('byIndex',_0x15dd0f,['prefix',_0x337d85(0x1cb)]);const _0xb0513=_0x376bd5(_0x15dd0f);if(_0x15dd0f&&_0x15dd0f[_0x337d85(0x5c9)])return _0x265e87(this['_n']('byIndex',[_0x3c5ecc,_0x3fab45,_0xb0513]));return this[_0x337d85(0x12e)](_0x337d85(0x371),'byIndex',_0x5af3cf=>[_0x3c5ecc,_0x3fab45,{..._0xb0513,..._0x5af3cf}],_0x15dd0f,undefined,!![]);}['countByIndex'](_0x126db4,_0x53fd13,_0x5dbe8b={}){const _0x2a5ef0=_0x336a76;return this['_n'](_0x2a5ef0(0xb6),[_0x126db4,_0x53fd13,_0x376bd5(_0x5dbe8b)]);}[_0x336a76(0x5ae)](_0x13de14,_0x3914fe={},_0x46b368={}){const _0x38520d=_0x336a76,_0x43cee6=_0x3a7a2e(_0x46b368);if(_0x46b368){for(const _0x5638a7 of Object[_0x38520d(0x393)](_0x46b368))if(_0x5638a7!==_0x38520d(0x2f4)&&typeof _0x46b368[_0x5638a7]==='function')_0x43cee6[_0x5638a7]=null;}if(_0x46b368&&(_0x46b368['fts']||_0x46b368[_0x38520d(0x44f)]))return this['_n'](_0x38520d(0x4cb),[_0x43cee6]),this[_0x38520d(0x60a)](_0x13de14,_0x3914fe,_0x46b368);const _0x424f3c=typeof _0x46b368[_0x38520d(0x2f4)]===_0x38520d(0x125)?_0x46b368[_0x38520d(0x2f4)]:null;if(_0x46b368[_0x38520d(0xed)]||_0x502e0a(_0x3914fe)||_0x46b368['transaction']!==undefined){let _0x59cf95=this['_n']('query',[_0x13de14,_0x3914fe,_0x43cee6]);if(_0x424f3c)_0x59cf95=_0x59cf95['map'](_0x424f3c);if(_0x46b368[_0x38520d(0xed)]||_0x502e0a(_0x3914fe))return _0x59cf95;return _0x265e87(_0x59cf95);}const _0x59d95b=_0x1a4057=>typeof _0x1a4057===_0x38520d(0x7c0)&&Number[_0x38520d(0x252)](_0x1a4057)?Math[_0x38520d(0x702)](0x0,_0x1a4057):Infinity;let _0x450b64;if(_0x46b368[_0x38520d(0x642)]){const _0xf01643=_0x41a57c=>typeof _0x41a57c===_0x38520d(0x7c0)&&_0x41a57c>0x0?Math[_0x38520d(0x5e7)](_0x41a57c):0x0;_0x450b64=this[_0x38520d(0x12e)]('query',_0x38520d(0x5ae),_0x516429=>[_0x13de14,_0x3914fe,{..._0x43cee6,..._0x516429}],null,{'limitOf':()=>_0x59d95b(_0x43cee6['limit']),'offsetOf':()=>_0xf01643(_0x43cee6[_0x38520d(0x713)])});}else _0x450b64=_0xc72e1c(_0x14c5dc=>{const _0x557063=_0x38520d,{__after:_0x40b4bd,..._0xef169}=_0x14c5dc;return this[_0x557063(0x1ea)]('query',_0x40b4bd===undefined?[_0x13de14,_0x3914fe,_0xef169]:[_0x13de14,_0x3914fe,_0xef169,_0x40b4bd]);},_0x43cee6,_0x2509ef=>_0x2509ef[_0x38520d(0x781)],{'limitOf':_0x59d95b,'rows':!![],'prefetch':!![],'resumeOpts':(_0x5179b9,_0x4fcdfa)=>{const _0x4fbf7a=_0x38520d;_0x5179b9[_0x4fbf7a(0x713)]=0x0,_0x5179b9[_0x4fbf7a(0x32f)]=_0x4fcdfa;}});return _0x424f3c?_0x450b64[_0x38520d(0x1c9)](_0x424f3c):_0x450b64;}async[_0x336a76(0x60a)](_0x473edb,_0xaace02,_0x2d3c21){const _0x2c19d9=_0x336a76,{select:_0xe13fbd,..._0x423604}=_0x3a7a2e(_0x2d3c21);let _0x1a6223={..._0x423604};const _0x1092c9=_0x1a6223[_0x2c19d9(0x642)];if(_0x1092c9&&!Array[_0x2c19d9(0x82)](_0x1092c9)&&typeof _0x1092c9===_0x2c19d9(0x12c)&&_0x1092c9[_0x2c19d9(0x283)]){const {fields:_0x1f93f9,prefix:_0x2976b4,start:_0x4e8d38,end:_0x32d768}=_0x1092c9;_0x1a6223={..._0x1a6223,'index':_0x1f93f9,'prefix':_0x2976b4??_0x1a6223[_0x2c19d9(0x54c)],'startIndex':_0x4e8d38??_0x1a6223[_0x2c19d9(0xdc)],'endIndex':_0x32d768??_0x1a6223[_0x2c19d9(0x315)]};}const _0x3327ef=await this[_0x2c19d9(0x22a)][_0x2c19d9(0x3c8)](_0x2c19d9(0x588),null,_0x2c19d9(0x49a),[this[_0x2c19d9(0x219)],_0x473edb,_0xaace02,_0x1a6223],![]),_0x184f6a=typeof _0x2d3c21[_0x2c19d9(0x2f4)]===_0x2c19d9(0x125)?_0x2d3c21['select']:null;if(!_0x184f6a)return _0x3327ef;return _0x3327ef['map'](_0x4ba920=>{const _0x29e153=_0x2c19d9,{score:_0x27aad7,ftsScore:_0x2ae9a9,numTerms:_0x4817de,maxScore:_0x535e46,vectorScore:_0xace9f0,chunkHash:_0x567a21,chunk:_0x4de9eb,..._0x13477e}=_0x4ba920,_0x56a085=_0x184f6a(_0x13477e);for(const [_0x2bf21e,_0x35dfa0]of Object[_0x29e153(0x695)]({'score':_0x27aad7,'ftsScore':_0x2ae9a9,'numTerms':_0x4817de,'maxScore':_0x535e46,'vectorScore':_0xace9f0,'chunkHash':_0x567a21,'chunk':_0x4de9eb}))if(_0x35dfa0!==undefined)_0x56a085[_0x2bf21e]=_0x35dfa0;return _0x56a085;});}[_0x336a76(0x279)](_0x25020c,_0x29b931,_0x43ecb6={}){const _0x3704f7=_0x336a76;let _0x33ec41=this['_n'](_0x3704f7(0x279),[_0x25020c,_0x29b931,_0x3a7a2e(_0x43ecb6)]);if(typeof _0x43ecb6[_0x3704f7(0x2f4)]===_0x3704f7(0x125))_0x33ec41=_0x33ec41[_0x3704f7(0x1c9)](_0x43ecb6['select']);return _0x33ec41;}[_0x336a76(0x14b)](_0x2d8d57=null,_0x26a958={}){return this['_n']('getClock',[_0x2d8d57]);}[_0x336a76(0x27c)](_0x235e04=null,_0x20f925=0x0,_0x2a5e78=Number[_0x336a76(0x5e8)],_0x268de9={}){const _0x3ccfa4=_0x336a76,_0x3fef52=_0x376bd5(_0x268de9);if(_0x268de9&&_0x268de9[_0x3ccfa4(0x5c9)])return _0x265e87(this['_n']('getChanges',[_0x235e04,_0x20f925,_0x2a5e78,_0x3fef52]));return this[_0x3ccfa4(0x12e)](_0x3ccfa4(0x27c),_0x3ccfa4(0x27c),_0x27aba9=>[_0x235e04,_0x20f925,_0x2a5e78,{..._0x3fef52,..._0x27aba9}],_0x268de9);}['count'](_0x5dce6f){const _0x131b28=_0x336a76;if(Array[_0x131b28(0x82)](_0x5dce6f))return _0x5dce6f[_0x131b28(0x789)];let _0x54f79d=0x0;for(const _0x1aca9a of _0x5dce6f)_0x54f79d++;return _0x54f79d;}*['range'](_0xa0886a){yield*_0xa0886a;}['now'](){return requireOkdbHlc()['toMs'](this['_hlc']);}get['_ttlTimeout'](){const _0x360151=_0x336a76,_0x1a66fe=this[_0x360151(0x22a)][_0x360151(0x27b)]?this[_0x360151(0x22a)][_0x360151(0x313)]('db',null,_0x360151(0x422),[this[_0x360151(0x219)]],![]):null;if(!_0x1a66fe)return null;if(this['__ttlCancelledGen']===_0x1a66fe[_0x360151(0x336)])return null;this['_timerObjs']=this[_0x360151(0x35b)]||new Map();let _0x2e3f1f=this['_timerObjs'][_0x360151(0x1fc)](_0x1a66fe['gen']);if(!_0x2e3f1f){const _0x29ba2b=this;_0x2e3f1f={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x1a66fe['gen'],'at':_0x1a66fe['at'],'target':_0x1a66fe[_0x360151(0x612)],get '_destroyed'(){const _0x30ec03=_0x360151,_0x15fd46=_0x29ba2b[_0x30ec03(0x22a)][_0x30ec03(0x27b)]?_0x29ba2b[_0x30ec03(0x22a)]['_call']('db',null,_0x30ec03(0x422),[_0x29ba2b[_0x30ec03(0x219)]],![]):null;return!_0x15fd46||_0x15fd46[_0x30ec03(0x336)]!==this['gen']||_0x29ba2b[_0x30ec03(0x4e6)]===this[_0x30ec03(0x336)];}},this[_0x360151(0x35b)][_0x360151(0xc4)](_0x1a66fe[_0x360151(0x336)],_0x2e3f1f);}return _0x2e3f1f;}[_0x336a76(0x1e6)](){const _0x4548d9=_0x336a76,_0x1b2529=this['okdb'][_0x4548d9(0x313)]('db',null,_0x4548d9(0x422),[this[_0x4548d9(0x219)]],![]);if(_0x1b2529)this[_0x4548d9(0x4e6)]=_0x1b2529[_0x4548d9(0x336)];}get[_0x336a76(0x37d)](){const _0x14bbb1=_0x336a76,_0x1cfb7a=this[_0x14bbb1(0x22a)][_0x14bbb1(0x313)]('db',null,'ttlTimer',[this[_0x14bbb1(0x219)]],![]);return _0x1cfb7a?_0x1cfb7a[_0x14bbb1(0x612)]:null;}get[_0x336a76(0x34f)](){const _0x3134f8=_0x336a76;return this[_0x3134f8(0x22a)][_0x3134f8(0x313)]('db',null,'autoCompactTimerArmed',[this[_0x3134f8(0x219)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x336a76(0x793)](){const _0x2fab9c=_0x336a76;this['okdb'][_0x2fab9c(0x313)]('db',null,'startAutoCompactCheck',[this[_0x2fab9c(0x219)]],![]);}['_stopAutoCompactCheck'](){const _0x2ca043=_0x336a76;this[_0x2ca043(0x22a)]['_call']('db',null,_0x2ca043(0x799),[this[_0x2ca043(0x219)]],![]);}get[_0x336a76(0x3b0)](){const _0x4ee132=_0x336a76,_0x4c8581=(_0x3caf34,_0x523f98)=>this[_0x4ee132(0x22a)][_0x4ee132(0x313)]('db',null,_0x3caf34,[this[_0x4ee132(0x219)],..._0x523f98],![]),_0x3c1c9e=Object[_0x4ee132(0x393)](_0x4c8581('autoCompactState',[])||{}),_0x310848={};for(const _0xda77bc of _0x3c1c9e)Object[_0x4ee132(0x236)](_0x310848,_0xda77bc,{'enumerable':!![],'get':()=>_0x4c8581(_0x4ee132(0x16d),[])?.[_0xda77bc],'set':_0x351301=>{const _0x5bade8=_0x4ee132;_0x4c8581(_0x5bade8(0x2d5),[_0xda77bc,_0x351301]);}});return _0x310848;}get[_0x336a76(0x7af)](){return this['_n']('hlc',[]);}[_0x336a76(0x7a7)](_0x55f7bc,_0xf88570){const _0x7b8db5=_0x336a76;return require$$16[_0x7b8db5(0x87)](_0x55f7bc,_0xf88570);}async[_0x336a76(0x26c)](_0x1738df,_0x63bb8d){const _0x2b7e78=_0x336a76;return this[_0x2b7e78(0x66d)](this['_n']('registerType',[_0x1738df]));}[_0x336a76(0x7a6)](_0x1fa566){const _0x44d27e=_0x336a76;return this['_n'](_0x44d27e(0x7a6),[_0x1fa566]);}[_0x336a76(0x2b8)](){const _0x5afb17=_0x336a76;return this['_n'](_0x5afb17(0x2b8),[]);}async[_0x336a76(0xa6)](_0x1a7234,_0xb96eca){const _0xc2b9a6=_0x336a76;return this[_0xc2b9a6(0x66d)](this['_n']('dropType',[_0x1a7234]));}async[_0x336a76(0x7b6)](_0x38920e,_0x301802){const _0xe5c266=_0x336a76,{timestamp:_0x48e71c,indexes:indexes=[]}=_0x7b180(_0x301802);return this[_0xe5c266(0x66d)](this['_n'](_0xe5c266(0x7b6),[_0x38920e,{'indexes':indexes}]));}async['ensure'](_0x56a444){const _0x2a27eb=_0x336a76,{type:_0x20a998,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x7b180(_0x56a444,_0x2a27eb(0x770));if(!_0x20a998)throw new Error(_0x2a27eb(0x7a3));await this[_0x2a27eb(0x7b6)](_0x20a998,{'indexes':indexes});for(const _0x51f469 of fts){const {name:_0x1e528e,fields:_0x570e63,..._0x545da7}=_0x51f469;if(!_0x1e528e||!_0x570e63)throw new Error(_0x2a27eb(0x328));await this[_0x2a27eb(0x22a)][_0x2a27eb(0x67c)][_0x2a27eb(0x493)](_0x20a998,_0x1e528e,{'fields':_0x570e63,..._0x545da7},this);}for(const _0x5cf9d1 of views){const {name:_0x1a7fb6,definition:_0x418906}=_0x5cf9d1;if(!_0x1a7fb6||!_0x418906)throw new Error(_0x2a27eb(0x2e2));if(!await this[_0x2a27eb(0x6f6)][_0x2a27eb(0x703)](_0x1a7fb6))await this[_0x2a27eb(0x6f6)]['create'](_0x1a7fb6,_0x418906);}if(schema)await this[_0x2a27eb(0x2ed)](_0x20a998,schema);}async[_0x336a76(0x409)](_0x156f92,_0x2d9ed7,_0x5171b2){const _0x95f924=_0x336a76,_0x804e43=this['_n']('registerIndexDeferred',[_0x156f92,_0x2d9ed7,typeof _0x5171b2===_0x95f924(0x12c)?_0x5171b2:{}]);if(!_0x804e43)return this[_0x95f924(0x66d)](undefined);const _0x2c4a2e=this['_n'](_0x95f924(0x77a),[_0x156f92,_0x2d9ed7,!![]]);if(_0x2c4a2e===undefined)return this['_wsettle'](undefined);return this['_wsettle'](await this[_0x95f924(0x70c)](_0x156f92,_0x2d9ed7,_0x2c4a2e));}async[_0x336a76(0x70c)](_0x4645bc,_0xaafcd8,_0x2e9f17){const _0x2980d0=_0x336a76,_0x55b80f=_0x4645bc+'@'+[]['concat'](_0xaafcd8)['join']('~');if(!this['_indexBuilds'])this[_0x2980d0(0x6f2)]=new Map();const _0x22cc68=this[_0x2980d0(0x6f2)][_0x2980d0(0x1fc)](_0x55b80f);if(_0x22cc68)return _0x22cc68;const _0x575aac=((async()=>{const _0x5dcd6c=_0x2980d0;do await new Promise(_0x1020b3=>setImmediate(_0x1020b3));while(!this['_n'](_0x5dcd6c(0x5ba),[_0x4645bc,_0xaafcd8,_0x2e9f17,!![]]));})());this[_0x2980d0(0x6f2)][_0x2980d0(0xc4)](_0x55b80f,_0x575aac);try{return await _0x575aac;}finally{this[_0x2980d0(0x6f2)][_0x2980d0(0x155)](_0x55b80f);}}async[_0x336a76(0x5d2)](_0xafbe06,_0x418d37,_0x26becd){const _0x7c72a=_0x336a76;return this['_wsettle'](this['_n'](_0x7c72a(0x5d2),[_0xafbe06,_0x418d37]));}async['resetIndex'](_0x58dbb1,_0x1c429d,_0x3b5219){const _0x4c0ed1=_0x336a76,_0x25434c=this[_0x4c0ed1(0x6f2)]&&this[_0x4c0ed1(0x6f2)][_0x4c0ed1(0x1fc)](_0x58dbb1+'@'+[][_0x4c0ed1(0x364)](_0x1c429d)[_0x4c0ed1(0x2fd)]('~'));if(_0x25434c)return _0x25434c;const _0x97cdf1=this['_n']('resetIndexBegin',[_0x58dbb1,_0x1c429d,_0x3b5219]);if(_0x97cdf1===undefined)return;return await new Promise(_0x465e43=>setImmediate(_0x465e43)),this[_0x4c0ed1(0x66d)](await this[_0x4c0ed1(0x70c)](_0x58dbb1,_0x1c429d,_0x97cdf1));}['hasIndex'](_0x107e7d,_0x24c555){const _0x331704=_0x336a76;return this['_n'](_0x331704(0x482),[_0x107e7d,_0x24c555]);}[_0x336a76(0x109)](_0x50b6e6,_0x49d421){const _0xc18f33=_0x336a76;return this['_n'](_0xc18f33(0x109),[_0x50b6e6,_0x49d421]);}async['indexReady'](_0xfe4047,_0x44a9b6){const _0xc87f3a=_0x336a76;if(this['_n'](_0xc87f3a(0x109),[_0xfe4047,_0x44a9b6])===_0xc87f3a(0x628))return!![];let _0x3d8dfa=0xa;for(;;){await new Promise(_0x2860c5=>setTimeout(_0x2860c5,_0x3d8dfa));if(!this[_0xc87f3a(0x22a)][_0xc87f3a(0x27b)]||this[_0xc87f3a(0x2eb)])return![];let _0x36a531;try{_0x36a531=this['_n'](_0xc87f3a(0x697),[_0xfe4047,Array[_0xc87f3a(0x82)](_0x44a9b6)?_0x44a9b6[_0xc87f3a(0x2fd)]('~'):String(_0x44a9b6)['split'](',')['join']('~')]);}catch{return![];}const _0x102ac2=_0x36a531&&_0x36a531[_0xc87f3a(0x5e5)];if(_0x102ac2===_0xc87f3a(0x628))return!![];if(_0x102ac2===undefined)return![];_0x3d8dfa=Math[_0xc87f3a(0x220)](_0x3d8dfa*0x2,0xfa);}}[_0x336a76(0x697)](_0x3337f7,_0x47de51){const _0x3507c7=_0x336a76;return this['_n'](_0x3507c7(0x697),[_0x3337f7,_0x47de51])??null;}[_0x336a76(0x577)](_0x49f817,_0x5a075a){const _0x17c830=_0x336a76;return this['_n'](_0x17c830(0x577),[_0x49f817,_0x5a075a]);}[_0x336a76(0x22f)](_0x732fb3,_0x3499f6){const _0xe14c0b=_0x336a76;return this['_n'](_0xe14c0b(0x22f),[_0x732fb3,_0x3499f6]);}['getUniqueViolation'](_0x292d46,_0x1b8be8,_0x21a960){const _0x35e319=_0x336a76;return this['_n'](_0x35e319(0x386),[_0x292d46,_0x1b8be8,_0x21a960])??null;}['getSchema'](_0xcad356){const _0x53befe=_0x336a76;return this['_n'](_0x53befe(0x33e),[_0xcad356])??null;}async['setSchema'](_0x5900a3,_0xe729f1){const _0x37a5c8=_0x336a76;return this[_0x37a5c8(0x66d)](this['_n'](_0x37a5c8(0x2ed),[_0x5900a3,_0xe729f1]));}async['dropSchema'](_0x1743fd){const _0x4d2e99=_0x336a76;return this[_0x4d2e99(0x66d)](this['_n'](_0x4d2e99(0x430),[_0x1743fd]));}[_0x336a76(0x4f8)](_0x4692f3,_0x15c743){return this['_n']('getViolation',[_0x4692f3,_0x15c743])??null;}['listViolations'](_0x12d859){const _0xf90fe6=_0x336a76;return this['_n'](_0xf90fe6(0x1af),[_0x12d859]);}[_0x336a76(0x11b)](_0x38e255,_0x56456,_0x1b913c){const _0x51fcf9=_0x336a76;return this['_n'](_0x51fcf9(0x11b),[_0x38e255,_0x56456,_0x1b913c])??null;}[_0x336a76(0x17b)](_0x95958b){const _0x48ab1a=_0x336a76;return this['_n'](_0x48ab1a(0x17b),[_0x95958b]);}async[_0x336a76(0xce)](_0x43a959,_0x4a2098,_0xf823b){const _0x45f733=_0x336a76;return this[_0x45f733(0x66d)](this['_n'](_0x45f733(0xce),[_0x43a959,_0x4a2098,_0xf823b]));}['getTTL'](_0x33b20d,_0x37f269){const _0x205ccc=_0x336a76;return this['_n'](_0x205ccc(0x5a4),[_0x33b20d,_0x37f269]);}async[_0x336a76(0x6fb)](_0x39dce5,_0x3a5bec){const _0x2bc3b4=_0x336a76;return this[_0x2bc3b4(0x66d)](this['_n'](_0x2bc3b4(0x6fb),[_0x39dce5,_0x3a5bec]));}async['sweepExpiredTTL'](_0x58bde2){return this['_n']('sweepExpiredTTL',[_0x58bde2]);}[_0x336a76(0x343)](_0x4c7cfe={}){return this['_n']('listTTL',[_0x4c7cfe]);}[_0x336a76(0x30d)](_0x56818b){return this['_n']('ttlStats',[_0x56818b]);}async[_0x336a76(0x1c3)](_0x3a6630,_0x21ea7d){const _0x53a89d=_0x336a76;return this['_wsettle'](this['_n'](_0x53a89d(0x1c3),[_0x3a6630,_0x21ea7d]));}[_0x336a76(0x41a)](_0x6933ad){return this['_n']('getDefaultTTL',[_0x6933ad]);}async[_0x336a76(0x715)](_0x3d4da7){const _0x19c0e8=_0x336a76;return this[_0x19c0e8(0x66d)](this['_n'](_0x19c0e8(0x715),[_0x3d4da7]));}async[_0x336a76(0xb5)](_0x5549df,_0x114812,_0xed596,_0x3dbb4f){const _0x3aa444=_0x336a76,{batch:batch=null,batchSize:_0x4fd2ed}=_0x7b180(_0x3dbb4f);if(typeof _0x5549df!==_0x3aa444(0x395)||!_0x5549df)throw new _0x149ab2(_0x3aa444(0x7c6),_0x3aa444(0x2cc));if(typeof _0x114812!=='string'||!_0x114812)throw new _0x149ab2('resolveField:\x20field\x20required',_0x3aa444(0x2cc));if(_0xed596!=null&&typeof _0xed596!==_0x3aa444(0x125))throw new _0x149ab2(_0x3aa444(0x518),_0x3aa444(0x2cc));if(batch!=null&&typeof batch!==_0x3aa444(0x125))throw new _0x149ab2(_0x3aa444(0x6a9),_0x3aa444(0x2cc));if(!_0xed596&&!batch)throw new _0x149ab2(_0x3aa444(0x68e),_0x3aa444(0x2cc));if(_0x4fd2ed!==undefined&&!(Number[_0x3aa444(0x252)](_0x4fd2ed)&&_0x4fd2ed>0x0))throw new _0x149ab2('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x3aa444(0x2cc));const _0x249776=batch?async _0x50193e=>(await batch(_0x50193e))['map'](_0x3752f3=>_0x3752f3 instanceof Error?{'__error':!![],'message':_0x3752f3[_0x3aa444(0x362)]}:_0x3752f3):null,_0x5f4f80=_0x1f3216(this,_0x5549df,_0x114812),_0xbf7858=this['_n']('resolveField',[_0x5549df,_0x114812,_0xed596?(_0x1bf899,_0x4ef246)=>_0x5f4f80(_0xed596,[_0x1bf899,_0x4ef246]):null,{'batch':_0x249776?_0x49ca7f=>_0x5f4f80(_0x249776,[_0x49ca7f]):null,'batchSize':_0x4fd2ed}]);return()=>this['_n'](_0x3aa444(0x185),[_0xbf7858]);}async['unresolveField'](_0x471f80,_0x33342f){const _0x367cb0=_0x336a76;return this['_n'](_0x367cb0(0x70e),[_0x471f80,_0x33342f]);}[_0x336a76(0x15c)](_0x56b063){const _0x52e633=_0x336a76;return this['_n'](_0x52e633(0x15c),[_0x56b063]);}async[_0x336a76(0x590)](_0x3e329a,_0xd36fa5,_0xc7d6df,_0x5bc7b1){const _0x4062e5=_0x336a76;return this['okdb'][_0x4062e5(0x3c8)](_0x4062e5(0x326),this[_0x4062e5(0x219)],_0x4062e5(0x590),[_0x3e329a,_0xd36fa5,_0xc7d6df,_0x5bc7b1],![]);}async[_0x336a76(0x549)](_0x360def,_0x57cade,_0x37887e){const _0x18393d=_0x336a76;return this['okdb'][_0x18393d(0x3c8)](_0x18393d(0x326),this[_0x18393d(0x219)],_0x18393d(0x549),[_0x360def,_0x57cade,_0x37887e],![]);}[_0x336a76(0x5a1)](){}[_0x336a76(0x558)](_0x54b53a,_0x1391b4,_0x514bd8,_0x4cfa4f={},_0x20f912={}){const _0x580edc=_0x336a76;return this[_0x580edc(0x22a)][_0x580edc(0x313)](_0x580edc(0x67c),null,_0x580edc(0x558),[_0x54b53a,_0x1391b4,_0x514bd8,_0x4cfa4f,_0x20f912,this[_0x580edc(0x219)]],![]);}get[_0x336a76(0x67c)](){const _0xb89c91=_0x336a76;return this[_0xb89c91(0x22a)][_0xb89c91(0x67c)];}['getResolvedOptions'](){const _0x4800b6=_0x336a76;return this[_0x4800b6(0x22a)][_0x4800b6(0x313)](_0x4800b6(0x326),this[_0x4800b6(0x219)],_0x4800b6(0x1ec),[],![]);}[_0x336a76(0x6b0)](){const _0x52267a=_0x336a76;return this['okdb'][_0x52267a(0x6b0)]();}[_0x336a76(0x97)](){const _0x2753e8=_0x336a76;return this[_0x2753e8(0x22a)][_0x2753e8(0x313)]('env',this['name'],_0x2753e8(0x97),[],![]);}[_0x336a76(0x438)](){}get[_0x336a76(0x523)](){const _0x800214=_0x336a76;return this['_locks']||(this[_0x800214(0x78e)]=new(requireLock())[(_0x800214(0x93))](this[_0x800214(0x22a)],this[_0x800214(0x219)],_0x800214(0x326)));}[_0x336a76(0x3b7)](){const _0x59609c=_0x336a76;return this[_0x59609c(0x22a)]['_call'](_0x59609c(0x326),this[_0x59609c(0x219)],_0x59609c(0x3b7),[],![]);}[_0x336a76(0x644)](_0x49bc06){const _0x2bf442=_0x336a76;this['_n'](_0x2bf442(0x26c),[_0x49bc06]);}[_0x336a76(0x68f)](_0x44d09b){const _0x4b4213=_0x336a76;this['_n'](_0x4b4213(0x32a),[_0x44d09b]);}[_0x336a76(0x787)](){return this['_n']('ttlState',[]);}[_0x336a76(0x3f2)](_0x49a691,_0x420a98){return _0x49a691+'\x09'+_0x420a98;}[_0x336a76(0x399)](_0x4336c7){const _0x1f80da=_0x336a76,_0x1a8aeb=_0x4336c7[_0x1f80da(0x78c)]('\x09');return{'type':_0x4336c7[_0x1f80da(0x106)](0x0,_0x1a8aeb),'key':_0x4336c7[_0x1f80da(0x106)](_0x1a8aeb+0x1)};}get[_0x336a76(0x723)](){const _0x44be86=_0x336a76;if(!this['_ttlState']()[_0x44be86(0x758)])return null;return this[_0x44be86(0x3cc)]||(this[_0x44be86(0x3cc)]=new _0x5ddc6b(this,_0x44be86(0x445)));}get['_ttlByExpiry'](){const _0x5def18=_0x336a76;if(!this['_ttlState']()[_0x5def18(0x758)])return null;return this[_0x5def18(0x5a9)]||(this[_0x5def18(0x5a9)]=new _0x5ddc6b(this,_0x5def18(0x36a),{'dupSort':!![]}));}[_0x336a76(0x79f)](_0x21b43e,_0x20ce29,_0x19c064){const _0x1d5b3e=_0x336a76;this['_n'](_0x1d5b3e(0x6ec),[_0x21b43e,_0x20ce29,_0x19c064]);}[_0x336a76(0x6b6)](_0x2bcfea,_0x49149d){const _0xc412a6=_0x336a76,_0x1a3b2e=this['_ttlByKey']?.[_0xc412a6(0x1fc)](this['_ttlCompositeKey'](_0x2bcfea,_0x49149d));return _0x1a3b2e!=null&&_0x1a3b2e<=Date['now']();}get[_0x336a76(0xc5)](){const _0x198084=_0x336a76;return this[_0x198084(0x787)]()[_0x198084(0x4ea)]??null;}get[_0x336a76(0x6a0)](){const _0x282591=_0x336a76;return this[_0x282591(0x787)]()['backoffUntil']||0x0;}get['_sweepInProgress'](){return![];}[_0x336a76(0x6c0)](){}async[_0x336a76(0x5c6)](_0x555cb6,_0x5e6d4a){const _0x1b5027=_0x336a76;if(this[_0x1b5027(0x304)]){const {OKDBError:_0x464a74}=requireErrors();throw new _0x464a74(_0x1b5027(0x316),_0x1b5027(0x3ef));}this[_0x1b5027(0x304)]=!![];try{const _0x436a30={..._0x5e6d4a||{},'repair':_0x555cb6==='repair'};this[_0x1b5027(0x22a)][_0x1b5027(0x313)](_0x1b5027(0x326),this[_0x1b5027(0x219)],_0x1b5027(0x3f8),[_0x436a30]);const _0x486a15=this['okdb']['_pumper'];while(this[_0x1b5027(0x22a)][_0x1b5027(0x313)](_0x1b5027(0x326),this[_0x1b5027(0x219)],_0x1b5027(0x95),[],![]))await _0x486a15['nextTurn'](0xfa);return this[_0x1b5027(0x22a)]['_call'](_0x1b5027(0x326),this[_0x1b5027(0x219)],_0x1b5027(0x6ff),[],![]);}finally{this[_0x1b5027(0x304)]=![];}}async[_0x336a76(0x5d6)](_0x4b1584={}){const _0x5c235c=_0x336a76;return this[_0x5c235c(0x5c6)](_0x5c235c(0x5d6),_0x4b1584);}async[_0x336a76(0x12a)](_0x454271={}){const _0x16c806=_0x336a76;return this[_0x16c806(0x5c6)](_0x16c806(0x12a),_0x454271);}}_0x59ce22['HIGH_SENTINEL']=_0x4785d7;function _0x502e0a(_0x5a45d9){const _0x5ded4a=_0x336a76;if(!_0x5a45d9||typeof _0x5a45d9!==_0x5ded4a(0x12c))return![];for(const _0x16aa60 of Object[_0x5ded4a(0x393)](_0x5a45d9)){const _0x5c8999=_0x5a45d9[_0x16aa60];if(_0x5c8999&&typeof _0x5c8999===_0x5ded4a(0x12c)&&(_0x5c8999['$near']||_0x5c8999[_0x5ded4a(0xad)]))return!![];}return![];}function _0x376bd5(_0x11f008){const _0x2d771e=_0x336a76;if(!_0x11f008||typeof _0x11f008!==_0x2d771e(0x12c))return{};const _0xa8e354={};for(const _0x506d39 of Object[_0x2d771e(0x393)](_0x11f008)){if(_0x506d39===_0x2d771e(0x5c9)||_0x506d39===_0x2d771e(0x346))continue;_0xa8e354[_0x506d39]=_0x11f008[_0x506d39];}return _0xa8e354;}function _0x3a7a2e(_0x45a05c){const _0x22f9fe=_0x336a76;if(!_0x45a05c||typeof _0x45a05c!==_0x22f9fe(0x12c))return{};const _0x5013bb={};for(const _0x5ea1c9 of Object['keys'](_0x45a05c)){if(typeof _0x45a05c[_0x5ea1c9]===_0x22f9fe(0x125))continue;_0x5013bb[_0x5ea1c9]=_0x45a05c[_0x5ea1c9];}return _0x5013bb;}return env={'OKDBEnv':_0x59ce22,'HIGH_SENTINEL':_0x4785d7},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x50c7d9}=requireErrors();function _0x3216d3(_0x2afae8){const _0x56cd57=_0x9058bf=>{throw new _0x50c7d9(_0x2afae8,_0x9058bf);};return new Proxy(function(){},{'get'(_0x4e3b80,_0xbc7d53){const _0x33f9e4=_0x5ce2;if(typeof _0xbc7d53==='symbol'||_0xbc7d53===_0x33f9e4(0x665)||_0xbc7d53===_0x33f9e4(0x51d)||_0xbc7d53==='inspect')return undefined;if(_0xbc7d53===_0x33f9e4(0x21b))return _0x2afae8;return(..._0x154520)=>_0x56cd57(_0x2afae8+'.'+String(_0xbc7d53));},'apply'(){_0x56cd57(_0x2afae8);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x3216d3},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0xaf1641=_0x30747f;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x3d4a9b(_0x4ad159,_0xe6ce4e={}){const _0x4fd547=_0x5ce2,_0x45efea=[];let _0x4ad525=![];_0x4ad159[_0x4fd547(0x199)]('/*')&&(_0x4ad525=!![],_0x4ad159=_0x4ad159['slice'](0x0,-0x2),_0x45efea['push']('*'));let _0x38af88=_0x4ad159[_0x4fd547(0x330)](/\/+$/,'')[_0x4fd547(0x330)](/\[([^\]]*)\]/g,(_0x363194,_0x178eb1)=>{const _0x4a1c67=_0x4fd547,_0x104b03=_0x178eb1[_0x4a1c67(0x330)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x2327a7,_0x17419b)=>{const _0x8ce37=_0x4a1c67;return _0x45efea[_0x8ce37(0x235)](_0x17419b),_0x8ce37(0x627);});return _0x4a1c67(0x37a)+_0x104b03+')?';})[_0x4fd547(0x330)](/\/:(\w+)/g,(_0x2a2f0b,_0x53dbec)=>{const _0x5f0c3d=_0x4fd547;return _0x45efea[_0x5f0c3d(0x235)](_0x53dbec),'/([^/]+)';});if(_0x38af88==='')_0x38af88='/';return{'keys':_0x45efea,'defaults':_0xe6ce4e||{},'wildcard':_0x4ad525,'regex':new RegExp('^'+_0x38af88+(_0x4ad525?_0x4fd547(0x342):'')+_0x4fd547(0xe2))};}const _0x14d5ff=require$$0$3,{PassThrough:_0x270147}=require$$1;function _0x242fa6(_0x4b7ed0){const _0x2c8192=_0x5ce2,_0x44fd5b=_0x4b7ed0[_0x2c8192(0x649)](':'),_0x2f49bd=_0x4b7ed0[_0x2c8192(0x106)](0x0,_0x44fd5b)['replace'](/^\[|\]$/g,'');return{'address':_0x2f49bd,'family':_0x2f49bd['includes'](':')?_0x2c8192(0x3cb):_0x2c8192(0x2f6),'port':Number(_0x4b7ed0[_0x2c8192(0x106)](_0x44fd5b+0x1))};}class _0x4837b9 extends _0x14d5ff[_0xaf1641(0x3e8)]{constructor(_0x6e6b03,_0xf7c631){const _0x1b03cc=_0xaf1641;super(),this[_0x1b03cc(0x3f7)]=_0x6e6b03,this['_addr']=_0x242fa6(_0xf7c631),this[_0x1b03cc(0x6c7)]=!![],this[_0x1b03cc(0x6d8)]=setInterval(()=>{},0x7fffffff);}get[_0xaf1641(0x6c7)](){return this['_listening'];}set[_0xaf1641(0x6c7)](_0x342b7a){this['_listening']=_0x342b7a;}[_0xaf1641(0xd5)](){const _0x2ad36c=_0xaf1641;return this['listening']?{...this[_0x2ad36c(0x132)]}:null;}[_0xaf1641(0x1a8)](){const _0x2082b2=_0xaf1641;if(this[_0x2082b2(0x6d8)])clearInterval(this[_0x2082b2(0x6d8)]);this[_0x2082b2(0x6d8)]=null;}[_0xaf1641(0x4a4)](_0x50feda){const _0x8da4fb=_0xaf1641;this['_release']();const _0x58d261=this[_0x8da4fb(0x3f7)]['close']();if(_0x50feda)_0x58d261[_0x8da4fb(0x665)](()=>_0x50feda(),_0x50feda);return this;}[_0xaf1641(0x6c2)](){const _0xec8d82=_0xaf1641;return this[_0xec8d82(0x6d8)]?.['ref'](),this;}[_0xaf1641(0x1bb)](){const _0x537157=_0xaf1641;return this[_0x537157(0x6d8)]?.[_0x537157(0x1bb)](),this;}}class _0x2251bd{constructor(_0x5bc99f){const _0x1c351a=_0xaf1641;this[_0x1c351a(0x22a)]=_0x5bc99f,this[_0x1c351a(0x727)]=[],this[_0x1c351a(0x293)]={'cookieName':_0x1c351a(0x474)};}get[_0xaf1641(0x433)](){const _0x2574ac=_0xaf1641;return this[_0x2574ac(0x727)][0x0]||null;}['_n'](_0x23b625,_0x1f62c8=[]){const _0x581dbf=_0xaf1641;return this['okdb'][_0x581dbf(0x3c8)](_0x581dbf(0x190),null,_0x23b625,_0x1f62c8,!![]);}async[_0xaf1641(0x413)](_0xe1a91a,_0x5b2aeb,_0x3b9b40={},_0x260209={}){const _0x180122=_0xaf1641;let _0x5d3df5=await this['_n']('handle',[_0xe1a91a,_0x5b2aeb,_0x3b9b40,_0x260209]),_0x9a27eb=0x0;return _0x5d3df5=await this[_0x180122(0x678)](_0x5d3df5,_0x9a27eb),_0x5d3df5;}async[_0xaf1641(0x678)](_0x46661f,_0x23ef16){const _0x22778d=_0xaf1641;while(_0x46661f&&typeof _0x46661f===_0x22778d(0x12c)&&_0x46661f[_0x22778d(0x366)]!==undefined){await new Promise(_0x219660=>setTimeout(_0x219660,_0x23ef16<0x5?0x1:0x5)),_0x23ef16++,_0x46661f=await this['_n'](_0x22778d(0x115),[_0x46661f['$pending']]);}if(_0x46661f&&_0x46661f['body']&&typeof _0x46661f[_0x22778d(0x6b4)]===_0x22778d(0x12c)&&_0x46661f[_0x22778d(0x6b4)]['$streamId']!==undefined)_0x46661f['body']=this[_0x22778d(0x44e)](_0x46661f[_0x22778d(0x6b4)][_0x22778d(0x288)]);return _0x46661f;}[_0xaf1641(0x44e)](_0x57c5c9){const _0x347a9e=_0xaf1641,_0x9c3c3=new _0x270147();let _0x13a32e=![];const _0x2ed32b=()=>{const _0x56aeba=_0x5ce2;if(_0x13a32e)return;_0x13a32e=!![],clearTimeout(_0x2eb9c9),setImmediate(()=>this['okdb']['_isOpen']&&this['okdb'][_0x56aeba(0x313)](_0x56aeba(0x190),null,_0x56aeba(0x632),[_0x57c5c9],!![]));};let _0x2eb9c9=null;const _0x477984=()=>{const _0x5b698f=_0x5ce2;if(_0x13a32e)return;let _0xfc7670;try{_0xfc7670=this[_0x5b698f(0x22a)]['_call'](_0x5b698f(0x190),null,'streamRead',[_0x57c5c9],!![]);}catch{_0xfc7670={'chunks':[],'end':!![]};}for(const _0x1dd0b5 of _0xfc7670['chunks'])_0x9c3c3[_0x5b698f(0x30c)](_0x1dd0b5);if(_0xfc7670[_0x5b698f(0x6df)]){_0x13a32e=!![],_0x9c3c3[_0x5b698f(0x6df)]();return;}_0x2eb9c9=setTimeout(_0x477984,_0xfc7670[_0x5b698f(0x443)][_0x5b698f(0x789)]?0x0:0xa);};_0x9c3c3['on'](_0x347a9e(0x4a4),_0x2ed32b),_0x477984();if(!_0x13a32e)_0x477984();if(_0x13a32e)_0x9c3c3[_0x347a9e(0x6e4)]();else{if(!_0x2eb9c9)_0x2eb9c9=setTimeout(_0x477984,0x0);}return _0x9c3c3;}['add'](_0xc5f90e,_0x396a3a,_0xf3111d,_0x2d4df3={}){const _0x4e6403=_0xaf1641;return this['okdb'][_0x4e6403(0x313)](_0x4e6403(0x190),null,_0x4e6403(0x3e2),[_0xc5f90e,_0x396a3a,_0xf3111d,_0x2d4df3,![]],!![]),this;}[_0xaf1641(0x2ba)](_0x1c7f41,_0x3f7b07,_0x419ce3,_0x262ce9={}){const _0x5edb0a=_0xaf1641;return this[_0x5edb0a(0x22a)][_0x5edb0a(0x313)](_0x5edb0a(0x190),null,_0x5edb0a(0x3e2),[_0x1c7f41,_0x3f7b07,_0x419ce3,_0x262ce9,!![]],!![]),this;}['guard'](_0xe03933,_0x157ded){const _0x44ec12=_0xaf1641,_0x263078=async _0x8d0563=>{const _0x96c381=_0x5ce2,_0x49de54={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x25869b={'status'(_0x14362d){const _0x3c0ac3=_0x5ce2;return _0x49de54[_0x3c0ac3(0x5e5)]=_0x14362d,_0x25869b;},'setHeader'(_0x1cc7f8,_0xf03f34){_0x49de54['headers']['push']([_0x1cc7f8,_0xf03f34]);},'send'(_0x3ed62e){const _0x4be78a=_0x5ce2;_0x49de54[_0x4be78a(0x7ac)]=!![],_0x49de54[_0x4be78a(0x6b4)]=_0x3ed62e;}};_0x8d0563['socket']={'remoteAddress':_0x8d0563[_0x96c381(0x3a7)]??null};const _0x125223=await _0x157ded(_0x8d0563,_0x25869b);return{'allowed':_0x125223!==![],..._0x49de54};};this[_0x44ec12(0x22a)][_0x44ec12(0x313)](_0x44ec12(0x190),null,_0x44ec12(0x1d6),[_0x5ad047=>!!_0xe03933(_0x5ad047),_0x263078],!![]);}['use'](_0x4f343d){const _0x40d4e8=_0xaf1641,_0x557f31=async _0x18178a=>{const _0x5c62c2=_0x5ce2,_0x457096={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x25a202=![];const _0x24c2c4={'status'(_0x404436){const _0x2a4da3=_0x5ce2;return _0x457096[_0x2a4da3(0x5e5)]=_0x404436,_0x24c2c4;},'setHeader'(_0x12796b,_0x105cba){_0x457096['headers']['push']([_0x12796b,_0x105cba]);},'send'(_0x5efd4c){const _0x4ba859=_0x5ce2;_0x457096['hasBody']=!![],_0x457096[_0x4ba859(0x6b4)]=_0x5efd4c;}};return _0x18178a['socket']={'remoteAddress':_0x18178a[_0x5c62c2(0x3a7)]??null},await _0x4f343d(_0x18178a,_0x24c2c4,async()=>{_0x25a202=!![];}),{'allowed':_0x25a202,..._0x457096};};return this['okdb']['_call']('http',null,_0x40d4e8(0x6ab),[_0x557f31],!![]),this;}get[_0xaf1641(0x184)](){const _0x5663c0=_0xaf1641;return this[_0x5663c0(0x22a)]['_call'](_0x5663c0(0x190),null,'getMaxBodyBytes',[],![]);}set[_0xaf1641(0x184)](_0x2453ac){const _0x309ca5=_0xaf1641;this[_0x309ca5(0x22a)][_0x309ca5(0x313)]('http',null,_0x309ca5(0x608),[Number(_0x2453ac)],![]);}[_0xaf1641(0x89)](_0x5b7199,_0x27e26e,_0x36532b={}){const _0x140031=_0xaf1641,_0x39604b=new Map(),_0x5696ab=(_0x181850,_0x124d7d)=>this['okdb']['_call'](_0x140031(0x190),null,_0x181850,_0x124d7d,![]),_0x2b575d=_0x28ed22=>{const _0x2e9bec=_0x140031,{connId:_0x32f8b8}=_0x28ed22;if(_0x28ed22[_0x2e9bec(0x7cc)]){const _0xd3f8a3=_0x39604b[_0x2e9bec(0x1fc)](_0x32f8b8);_0x39604b['delete'](_0x32f8b8);if(typeof _0xd3f8a3===_0x2e9bec(0x125))_0xd3f8a3();return;}const _0x3be9be=(_0x18fb09,_0x1b0f3e,_0x19a82e={})=>{try{_0x5696ab('sseSend',[_0x32f8b8,_0x18fb09,_0x1b0f3e,_0x19a82e]);}catch{}},_0x916aae=()=>{const _0x877302=_0x2e9bec;try{_0x5696ab(_0x877302(0x2ad),[_0x32f8b8]);}catch{}},_0x50aafd=(_0x31b643,_0x4e1b88)=>_0x5696ab(_0x2e9bec(0x3c3),[_0x32f8b8,String(_0x31b643),String(_0x4e1b88)]),_0x526a4e={'auth':{'open':_0x28ed22[_0x2e9bec(0x730)],'isAuthenticated':_0x28ed22[_0x2e9bec(0x414)]}},_0x70e061=_0x27e26e({'send':_0x3be9be,'close':_0x916aae,'params':_0x28ed22[_0x2e9bec(0x76d)]??{},'query':_0x28ed22[_0x2e9bec(0x5ae)]??{},'headers':_0x28ed22['headers']??{},'context':_0x526a4e,'setHeader':_0x50aafd});_0x39604b['set'](_0x32f8b8,_0x70e061);};return this[_0x140031(0x22a)]['_call']('http',null,_0x140031(0x89),[_0x5b7199,_0x2b575d,_0x36532b],!![]),this;}get[_0xaf1641(0x396)](){const _0x369ec2=_0xaf1641;return this[_0x369ec2(0x646)]();}[_0xaf1641(0x646)](){const _0x176e70=_0xaf1641;return this['okdb'][_0x176e70(0x313)](_0x176e70(0x190),null,_0x176e70(0x646),[],![])['map'](_0x13d6b4=>({..._0x13d6b4,'matcher':_0x3d4a9b(_0x13d6b4[_0x176e70(0x70d)],_0x13d6b4['defaults'])}));}[_0xaf1641(0x1ff)](_0x51358d,_0x482f07){const _0x534875=_0xaf1641;return this[_0x534875(0x22a)][_0x534875(0x313)](_0x534875(0x190),null,_0x534875(0x1ff),[_0x51358d,_0x482f07],![]);}[_0xaf1641(0x34c)](_0x4f6da6,_0x1b8359={}){const _0x12fe2=_0xaf1641;if(typeof _0x1b8359==='string'||Array['isArray'](_0x1b8359))_0x1b8359={'host':_0x1b8359};_0x1b8359=_0x1b8359??{};if((Number(_0x1b8359[_0x12fe2(0x567)])||0x0)>=0x1||_0x1b8359[_0x12fe2(0x26f)]!=null||_0x1b8359[_0x12fe2(0x5ce)]!=null){const _0x4ddade=new Error(_0x12fe2(0x18b)+_0x12fe2(0x43e)+'CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20'+'okdb.http.listen(port)\x20in\x20each\x20worker.');_0x4ddade[_0x12fe2(0x182)]=_0x12fe2(0x6c1);throw _0x4ddade;}if(this['servers']['length'])throw new Error(_0x12fe2(0x276));const _0x2c2e67=_0x1b8359[_0x12fe2(0xc3)]==null?[undefined]:[][_0x12fe2(0x364)](_0x1b8359[_0x12fe2(0xc3)]);if(!_0x2c2e67[_0x12fe2(0x789)]||_0x2c2e67['some'](_0x539835=>_0x539835!==undefined&&(typeof _0x539835!=='string'||!_0x539835))){const _0x2364b7=new Error(_0x12fe2(0x79e));_0x2364b7[_0x12fe2(0x182)]=_0x12fe2(0xb0);throw _0x2364b7;}const _0x5656e8=require$$2[_0x12fe2(0x20f)]?{..._0x1b8359,'reuseport':!![]}:_0x1b8359,_0x2715fe=this[_0x12fe2(0x22a)]['_call'](_0x12fe2(0x190),null,_0x12fe2(0x34c),[_0x4f6da6,_0x5656e8],!![]),_0x29dcef=_0x2715fe[_0x12fe2(0x390)]??_0x4f6da6,_0x1b5737=_0x1b8359[_0x12fe2(0xc3)]==null?':'+_0x29dcef:_0x2c2e67[_0x12fe2(0x1c9)](_0x287e1c=>(_0x287e1c['includes'](':')?'['+_0x287e1c+']':_0x287e1c)+':'+_0x29dcef)[_0x12fe2(0x2fd)](',\x20');try{this[_0x12fe2(0x22a)][_0x12fe2(0x1d3)][_0x12fe2(0x158)](_0x1b5737);if(!require(_0x12fe2(0x2e5))[_0x12fe2(0x20f)])this['okdb'][_0x12fe2(0x1d3)][_0x12fe2(0x3a3)]({'kind':_0x12fe2(0x127),'listenAddr':_0x1b5737});}catch{}this[_0x12fe2(0x727)]=_0x2715fe['addrs'][_0x12fe2(0x1c9)](_0x4be43a=>new _0x4837b9(this,_0x4be43a));const _0x2e3f15=this[_0x12fe2(0x727)][0x0];return process[_0x12fe2(0x34d)](()=>this['servers'][_0x12fe2(0x213)](_0x26debf=>_0x26debf['emit'](_0x12fe2(0x6c7)))),_0x2e3f15;}async['close'](_0x1508f7={}){const _0x4dc1c6=_0xaf1641,_0x482e72=this[_0x4dc1c6(0x727)];this[_0x4dc1c6(0x727)]=[];if(require$$2[_0x4dc1c6(0x20f)]&&!process[_0x4dc1c6(0x306)]&&_0x1508f7[_0x4dc1c6(0x38a)]==null)_0x1508f7={..._0x1508f7,'forceAfterMs':Infinity};if(_0x482e72[_0x4dc1c6(0x789)]){const _0x1ecace=_0x1508f7['forceAfterMs']===Infinity?Infinity:Number['isFinite'](_0x1508f7[_0x4dc1c6(0x38a)])?Math[_0x4dc1c6(0x702)](0x0,_0x1508f7['forceAfterMs']):0x3e8,_0x11e529=Date[_0x4dc1c6(0x2aa)]();while(this[_0x4dc1c6(0x22a)][_0x4dc1c6(0x313)](_0x4dc1c6(0x190),null,_0x4dc1c6(0x36c),[],!![])>0x0&&Date[_0x4dc1c6(0x2aa)]()-_0x11e529<_0x1ecace)await new Promise(_0x3fd3d5=>setTimeout(_0x3fd3d5,0x5));_0x1508f7={..._0x1508f7,'forceAfterMs':_0x1ecace===Infinity?0x3e8:Math['max'](0x0,_0x1ecace-(Date['now']()-_0x11e529))};}await this['_n']('close',[_0x1508f7]);for(const _0x2cc3ee of _0x482e72){_0x2cc3ee[_0x4dc1c6(0x1a8)](),_0x2cc3ee[_0x4dc1c6(0x6c7)]=![],_0x2cc3ee[_0x4dc1c6(0x4eb)](_0x4dc1c6(0x4a4));}}}return http={'OKDBHttp':_0x2251bd},http;}var fts,hasRequiredFts;function requireFts(){const _0x28402a=_0x30747f;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x3afad2=_0x2a1405=>(_0x2a1405&&typeof _0x2a1405==='object'?_0x2a1405[_0x28402a(0x219)]:_0x2a1405)??_0x28402a(0x5eb);class _0x4a6b7d{constructor(_0x1414cc){this['okdb']=_0x1414cc;}['_n'](_0x4461d8,_0x1bebc9,_0x5c2099=![]){const _0x385274=_0x28402a;return this[_0x385274(0x22a)][_0x385274(0x313)](_0x385274(0x67c),null,_0x4461d8,_0x1bebc9,_0x5c2099);}['_nm'](_0x24e409,_0xb2161d){const _0x4092b1=_0x28402a;return this[_0x4092b1(0x22a)][_0x4092b1(0x3c8)](_0x4092b1(0x67c),null,_0x24e409,_0xb2161d,!![]);}get[_0x28402a(0x62c)](){const _0x1ed27a=this,_0x139704=_0x31bcdb=>{const _0x20ff1b=_0x5ce2,_0x35648f=_0x31bcdb[_0x20ff1b(0x78c)](':'),_0x52406e=_0x31bcdb[_0x20ff1b(0x106)](0x0,_0x35648f),_0x17ce62=_0x1ed27a['okdb'][_0x20ff1b(0x6c3)][_0x20ff1b(0x1fc)](_0x52406e);if(!_0x17ce62)return undefined;const _0x1a0424=_0x17ce62['processor']['list']()[_0x20ff1b(0x777)](_0x4fbb02=>_0x4fbb02[_0x20ff1b(0x7d2)]===_0x20ff1b(0x710)+_0x31bcdb);if(!_0x1a0424)return undefined;return _0x17ce62['processor'][_0x20ff1b(0x497)](_0x1a0424['id'],_0x1a0424['cursorKey']);};return{'get':_0x139704,'has':_0xa0e40d=>!!_0x139704(_0xa0e40d)};}get[_0x28402a(0x35a)](){return[];}['_envIndexDb'](){const _0x1d3dd3=_0x28402a,{RawDb:_0x35deec}=requireRawdb();return new _0x35deec(this['okdb']['_systemEnv'],_0x1d3dd3(0x778));}['has'](_0x3c2139,_0x1ee1ba,_0xde8065){const _0x331748=_0x28402a;return this['_n'](_0x331748(0x73b),[_0x3c2139,_0x1ee1ba,_0x3afad2(_0xde8065)]);}[_0x28402a(0x5e5)](_0x1894fc,_0xc1277a,_0x123457){const _0x5ae672=_0x28402a;return this['_n'](_0x5ae672(0x5e5),[_0x1894fc,_0xc1277a,_0x3afad2(_0x123457)]);}['list'](_0x5cc58a,_0x27a6ac){return this['_n']('list',[_0x5cc58a,_0x3afad2(_0x27a6ac)]);}async['_build'](_0x56442f,_0x3ac228,_0x401742,_0x3496f0,_0x31bea2){const _0x26274a=_0x28402a,_0x1f906e=(_0x1b0d02,_0x5da378)=>this[_0x26274a(0x22a)][_0x26274a(0x3c8)](_0x26274a(0x67c),null,_0x1b0d02,_0x5da378,!![],![]),_0xa47beb=Date['now']()+0x1d4c0;let _0x3caca8=_0x56442f,_0x1d06ca=_0x3ac228;for(;;){try{return await _0x1f906e(_0x3caca8,_0x1d06ca);}catch(_0x2845db){if(_0x2845db[_0x26274a(0x182)]===_0x26274a(0x6b2)){_0x3caca8=_0x26274a(0x72a),_0x1d06ca=[_0x401742,_0x3496f0,_0x3afad2(_0x31bea2)];if(_0x2845db[_0x26274a(0x107)]&&_0x2845db['details']['wait'])await new Promise(_0x984eee=>setTimeout(_0x984eee,0x2));continue;}if(_0x2845db[_0x26274a(0x182)]!==_0x26274a(0x305)||Date[_0x26274a(0x2aa)]()>=_0xa47beb)throw _0x2845db;}await new Promise(_0x400ef8=>setTimeout(_0x400ef8,0x5)),_0x3caca8=_0x26274a(0x495),_0x1d06ca=[_0x401742,_0x3496f0,!![],_0x3afad2(_0x31bea2)];}}async[_0x28402a(0x3a3)](_0x2cccdc,_0x37034d,_0x56e85b,_0x6aede4,_0xc42077){const _0x58feeb=_0x28402a;return this[_0x58feeb(0x188)](_0x58feeb(0x3a3),[_0x2cccdc,_0x37034d,_0x56e85b,_0x6aede4,_0x3afad2(_0xc42077)],_0x2cccdc,_0x37034d,_0xc42077);}async[_0x28402a(0x4ef)](_0x217d1d,_0x35c77d,_0x383c3c){const _0x1a2076=_0x28402a;return this[_0x1a2076(0x285)](_0x1a2076(0x4ef),[_0x217d1d,_0x35c77d,_0x3afad2(_0x383c3c)]);}async[_0x28402a(0x493)](_0x173b92,_0xe030a5,_0x2f3373,_0x58b4b9){const _0x1f3d80=_0x28402a;return this[_0x1f3d80(0x188)](_0x1f3d80(0x493),[_0x173b92,_0xe030a5,_0x2f3373,_0x3afad2(_0x58b4b9)],_0x173b92,_0xe030a5,_0x58b4b9);}async['reset'](_0x576491,_0x2e0a88,_0x1b0b37,_0x5d6634){const _0x4c4f40=_0x28402a;return this[_0x4c4f40(0x188)](_0x4c4f40(0x495),[_0x576491,_0x2e0a88,_0x1b0b37,_0x3afad2(_0x5d6634)],_0x576491,_0x2e0a88,_0x5d6634);}async['_waitNative'](_0x10f768,_0x1702a,_0x2b6d86,_0x1961a2=0x1d4c0){const _0x2fb8bc=_0x28402a,_0x2d56e8=Date[_0x2fb8bc(0x2aa)]()+_0x1961a2;for(;;){try{return await this[_0x2fb8bc(0x285)](_0x10f768,[..._0x1702a,0x1]);}catch(_0x36a17a){if(_0x36a17a[_0x2fb8bc(0x182)]!==_0x2b6d86||Date['now']()>=_0x2d56e8)throw _0x36a17a;}await new Promise(_0x2d340e=>setTimeout(_0x2d340e,0x2));}}async[_0x28402a(0x628)](_0x377142,_0x1832df,_0x58d5ff){const _0x44fa85=_0x28402a;return this[_0x44fa85(0x3f1)](_0x44fa85(0x628),[_0x377142,null,_0x3afad2(_0x58d5ff)],'FTS_READY_TIMEOUT');}async[_0x28402a(0x282)](_0x5b804d,_0x4c0d1a){const _0x136682=_0x28402a;return this[_0x136682(0x3f1)]('flush',[_0x5b804d,_0x3afad2(_0x4c0d1a)],_0x136682(0x541));}async[_0x28402a(0x5d6)](_0x2f0814,_0x46936e){const _0x47013b=_0x28402a;return this[_0x47013b(0x285)](_0x47013b(0x5d6),[_0x2f0814,_0x3afad2(_0x46936e)]);}async['process'](_0x39fd0c={}){const _0x300618=_0x28402a;return this[_0x300618(0x285)](_0x300618(0x40a),[_0x39fd0c]);}async[_0x28402a(0x1f5)](_0x6a7972){const _0x2ea9a6=_0x28402a;return this[_0x2ea9a6(0x285)](_0x2ea9a6(0x1f5),[_0x3afad2(_0x6a7972)]);}[_0x28402a(0x6fc)](_0x343131){const _0x525ffc=_0x28402a;return this['_n'](_0x525ffc(0x6fc),[_0x3afad2(_0x343131)]);}[_0x28402a(0x4a5)](_0x39456f,_0x43fc43,_0x3b733b,_0x1769ee,_0x4d1bc3){const _0x22b902=_0x28402a;return this['_n'](_0x22b902(0x4a5),[_0x39456f,_0x43fc43,_0x3b733b,_0x1769ee||{},_0x3afad2(_0x4d1bc3)]);}['searchDocs'](_0x354f25,_0x2355ec,_0x122832,_0x25a517,_0x480f3d,_0x14d04c){return this['_n']('searchDocs',[_0x354f25,_0x2355ec,_0x122832,_0x25a517||{},_0x3afad2(_0x480f3d),_0x14d04c]);}[_0x28402a(0x2c5)](_0x19ea3a,_0x3208f0,_0x244ed1,_0x3ba030,_0x162afb){const _0x376e=_0x28402a;return this['_n'](_0x376e(0x286),[_0x19ea3a,_0x3208f0,_0x244ed1,_0x3ba030||{},_0x3afad2(_0x162afb)]);}[_0x28402a(0x58a)](){return this['_n']('listFtsEnvs',[]);}async[_0x28402a(0x725)](){const _0xf52930=_0x28402a;return this['_nm'](_0xf52930(0x725),[]);}}return fts={'OKDBFts':_0x4a6b7d},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x2c00d0=_0x30747f;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x49a76a,invalidArgument:_0x22cdb3}=requireErrors();requireBridge();const _0x523490=Object[_0x2c00d0(0x71f)]({'EMBEDDER':_0x2c00d0(0x10d),'INDEXER':_0x2c00d0(0x227),'SEARCH':_0x2c00d0(0x300),'WORKER':_0x2c00d0(0x686)}),_0x564de6=_0x3484d4=>typeof _0x3484d4===_0x2c00d0(0x395)||_0x3484d4==null?_0x3484d4:Array[_0x2c00d0(0x768)](_0x3484d4);class _0x3c58c2{constructor(_0x309861){const _0x2277e4=_0x2c00d0;this[_0x2277e4(0x22a)]=_0x309861,this[_0x2277e4(0x161)]=new Map(),this['_jsSchemas']=new Map(),this[_0x2277e4(0x4f6)]=new Map();}['_n'](_0x141d9a,_0x2bb200=[],_0x112d67=!![]){const _0x2f5a5f=_0x2c00d0;return this['okdb'][_0x2f5a5f(0x313)]('embeddings',null,_0x141d9a,_0x2bb200,_0x112d67);}[_0x2c00d0(0x285)](_0x32068c,_0x1eb79c=[]){const _0x57c5bc=_0x2c00d0;return this[_0x57c5bc(0x22a)]['_callMacro'](_0x57c5bc(0x588),null,_0x32068c,_0x1eb79c,!![]);}[_0x2c00d0(0x683)](_0x449ccb){const _0x3fcc5e=_0x2c00d0;return _0x449ccb?this[_0x3fcc5e(0x22a)][_0x3fcc5e(0x763)][_0x3fcc5e(0x683)](_0x449ccb):null;}['registerEmbedderFactory'](_0x475c47,_0x40a266,_0x173534={}){const _0x572c4e=_0x2c00d0;if(typeof _0x40a266!==_0x572c4e(0x125))throw new _0x49a76a('Embedder\x20factory\x20must\x20be\x20a\x20function','BAD_PARAM',{'name':_0x475c47});this[_0x572c4e(0x161)][_0x572c4e(0xc4)](_0x475c47,_0x40a266),this[_0x572c4e(0x3a2)][_0x572c4e(0xc4)](_0x475c47,_0x173534);const _0x199d93=this[_0x572c4e(0x22a)],_0x29bfd7=_0x48b537=>_0x40a266(_0x48b537,_0x199d93);_0x29bfd7[_0x572c4e(0x6aa)]=_0x199d93,this['_n'](_0x572c4e(0x205),[_0x475c47,_0x29bfd7,_0x173534??{}],![]);}['getEmbedderFactory'](_0x24a6a8){const _0x2483db=_0x2c00d0,_0xf6e987=this[_0x2483db(0x161)]['get'](_0x24a6a8);if(_0xf6e987)return _0xf6e987;if(!this['_n'](_0x2483db(0x783),[_0x24a6a8],![]))return null;const _0x4d46a5=this;return(_0x3f1c21={})=>{const _0x3ea2d5=_0x2483db,_0x52c6b2=_0x4d46a5['_n'](_0x3ea2d5(0x64c),[_0x24a6a8,_0x3f1c21],![]),_0x5abd4b=_0x4d46a5['_n'](_0x3ea2d5(0x3e3),[_0x52c6b2],![]),_0x43b9fa=(_0xaa6d3b,_0x4e7cab)=>_0x4d46a5['_n'](_0x3ea2d5(0x5d7),[_0x52c6b2,_0xaa6d3b,_0x4e7cab],![]),_0x58caf0={'embed':async _0x380fcb=>Float32Array[_0x3ea2d5(0x768)](_0x43b9fa('embed',_0x380fcb)),'start':async()=>_0x43b9fa(_0x3ea2d5(0x297)),'stop':async()=>{const _0x480655=_0x3ea2d5;_0x43b9fa(_0x480655(0x533)),_0x43b9fa(_0x480655(0x208));}};if(_0x5abd4b)_0x58caf0[_0x3ea2d5(0x150)]=async _0x4162ba=>_0x43b9fa(_0x3ea2d5(0x150),_0x4162ba)[_0x3ea2d5(0x1c9)](_0x4ef8c4=>Float32Array[_0x3ea2d5(0x768)](_0x4ef8c4));return _0x58caf0;};}[_0x2c00d0(0x57e)](_0x369c29){const _0x5eea2a=_0x2c00d0;return this[_0x5eea2a(0x3a2)]['get'](_0x369c29)??this['_n'](_0x5eea2a(0x57e),[_0x369c29],![])??undefined;}[_0x2c00d0(0x96)](_0x1c9e87,_0x477009,_0x2df20b={}){const _0x177685=_0x2c00d0;if(typeof _0x477009!==_0x177685(0x125))throw new _0x49a76a(_0x177685(0x442),_0x177685(0x2cc),{'name':_0x1c9e87});this['_n'](_0x177685(0x96),[_0x1c9e87,(_0x26327b,_0x3478c7)=>_0x477009(_0x26327b,_0x3478c7),_0x2df20b??{}],![]);}[_0x2c00d0(0x19d)](){const _0x54a4b4=_0x2c00d0;return this['_n'](_0x54a4b4(0x19d),[],![]);}[_0x2c00d0(0x4e8)](_0x4b1242,_0x18e1a6){const _0x37f811=_0x2c00d0;if(typeof _0x18e1a6!=='function')throw new _0x49a76a(_0x37f811(0x790),'BAD_PARAM',{'name':_0x4b1242});this['_n']('registerPreparer',[_0x4b1242,_0x18e1a6]);}[_0x2c00d0(0x6fe)](_0x875b84,_0x50664b){const _0x1e0b9c=_0x2c00d0;if(typeof _0x50664b!==_0x1e0b9c(0x125))throw new _0x49a76a(_0x1e0b9c(0xfc),_0x1e0b9c(0x2cc),{'name':_0x875b84});this['_n'](_0x1e0b9c(0x6fe),[_0x875b84,_0x50664b]);}['setStorageResolver'](_0x251980){const _0x5c14b8=_0x2c00d0;if(_0x251980==null)return this['_n'](_0x5c14b8(0x56f),[null],![]);if(typeof _0x251980!==_0x5c14b8(0x125))throw new _0x49a76a(_0x5c14b8(0x795),_0x5c14b8(0x2cc));const _0x205092=this[_0x5c14b8(0x22a)];this['_n'](_0x5c14b8(0x56f),[_0x1e41f4=>_0x251980(_0x1e41f4,_0x205092)],![]);}async[_0x2c00d0(0x545)](_0xb4e593,_0x27d6dc={},_0x1e9321={},_0x10fd73=null){const _0x2831f8=_0x2c00d0;return this[_0x2831f8(0x683)](await this[_0x2831f8(0x285)](_0x2831f8(0x545),[_0xb4e593,_0x27d6dc,_0x1e9321,_0x10fd73]));}async['createIndexer'](_0x41916c,_0x5840e5={},_0x5abfef={}){const _0x2fccf8=_0x2c00d0;return this[_0x2fccf8(0x683)](await this[_0x2fccf8(0x285)](_0x2fccf8(0xc6),[_0x41916c,_0x5840e5,_0x5abfef]));}async['createSearch'](_0x463850,_0x5e256a={},_0x5eedd9={}){const _0x401471=_0x2c00d0;return this[_0x401471(0x683)](await this['_nm'](_0x401471(0x786),[_0x463850,_0x5e256a,_0x5eedd9]));}async[_0x2c00d0(0x372)](_0x22f7a3,_0x362ceb={},_0x1c17a0={}){const _0x3d911e=_0x2c00d0;return this['_wrap'](await this[_0x3d911e(0x285)]('createWorker',[_0x22f7a3,_0x362ceb,_0x1c17a0]));}async['createPipeline'](_0x2be768,_0x12b3fd={},_0x4248ea={}){const _0x446ef8=_0x2c00d0,_0x1dcabd=await this[_0x446ef8(0x285)](_0x446ef8(0x233),[_0x2be768,_0x12b3fd,_0x4248ea]);return{'embedder':this[_0x446ef8(0x683)](_0x1dcabd[_0x446ef8(0x10d)]),'indexer':this[_0x446ef8(0x683)](_0x1dcabd[_0x446ef8(0x227)]),'worker':this[_0x446ef8(0x683)](_0x1dcabd['worker']),'search':this[_0x446ef8(0x683)](_0x1dcabd[_0x446ef8(0x4a5)]),'api':this[_0x446ef8(0x85)](_0x1dcabd[_0x446ef8(0x488)],_0x1dcabd[_0x446ef8(0x10d)][_0x446ef8(0x219)],_0x1dcabd[_0x446ef8(0x3a5)]?_0x1dcabd[_0x446ef8(0x3a5)]['name']:_0x1dcabd[_0x446ef8(0x488)]+_0x446ef8(0x238))};}[_0x2c00d0(0x111)](_0x1ab45d,_0x46c7b5){const _0x1cb2cf=_0x2c00d0;return this['okdb']['engines'][_0x1cb2cf(0x312)](_0x1ab45d,_0x46c7b5)?.['api']??null;}['embedder'](_0x55472b){const _0x55aa5c=_0x2c00d0,_0x29c803=this[_0x55aa5c(0x111)](_0x523490[_0x55aa5c(0x68c)],_0x55472b);if(!_0x29c803)return null;const _0xe158eb=this,_0x38bd67=_0x31a033=>Array[_0x55aa5c(0x82)](_0x31a033)&&Array['isArray'](_0x31a033[0x0])?_0x31a033[_0x55aa5c(0x1c9)](_0x1e8236=>Float32Array[_0x55aa5c(0x768)](_0x1e8236)):Float32Array[_0x55aa5c(0x768)](_0x31a033);return new Proxy(_0x29c803,{'get'(_0x34b09b,_0x2399c4){const _0x43ce14=_0x55aa5c;if(_0x2399c4==='dims')return _0xe158eb[_0x43ce14(0x22a)][_0x43ce14(0x313)](_0x43ce14(0x763),null,'apiCall',[_0x523490['EMBEDDER'],_0x55472b,_0x43ce14(0x3f0),[]],![])[_0x43ce14(0x2ff)];if(_0x2399c4===_0x43ce14(0x75e))return async _0x259ab6=>_0x38bd67(await _0x29c803[_0x43ce14(0x75e)](_0x259ab6));if(_0x2399c4==='embedBatch')return async _0x2a83c6=>(await _0x29c803['embedBatch'](_0x2a83c6))[_0x43ce14(0x1c9)](_0x2a2e97=>Float32Array[_0x43ce14(0x768)](_0x2a2e97));return _0x34b09b[_0x2399c4];}});}[_0x2c00d0(0x227)](_0x3273ca){const _0x4788c4=_0x2c00d0;return this[_0x4788c4(0x111)](_0x523490['INDEXER'],_0x3273ca);}[_0x2c00d0(0x3a5)](_0x230434){const _0xe1cfa9=_0x2c00d0;return this[_0xe1cfa9(0x111)](_0x523490[_0xe1cfa9(0x5f2)],_0x230434);}[_0x2c00d0(0x4a5)](_0x281716){const _0x89c2c0=_0x2c00d0,_0x42c294=this[_0x89c2c0(0x111)](_0x523490[_0x89c2c0(0x264)],_0x281716);if(_0x42c294)return _0x42c294;return this['_localViewApi'](_0x281716);}[_0x2c00d0(0x5b4)](_0x5c3060){const _0x555c70=_0x2c00d0,_0x2faeb6=this;return{'search':(_0x57f8fe,_0x25d485={})=>_0x2faeb6[_0x555c70(0x22a)][_0x555c70(0x3c8)](_0x555c70(0x588),null,_0x555c70(0x4a5),[_0x5c3060,_0x564de6(_0x57f8fe),_0x25d485],![]),'stats':async()=>_0x2faeb6['_n'](_0x555c70(0x198),[_0x5c3060],![]),'count':()=>_0x2faeb6['_n']('viewOp',[_0x5c3060,_0x555c70(0x1f9)],![])};}async[_0x2c00d0(0x3a9)](_0x4ea142,_0x454538,_0x37bad7={}){const _0xb099b8=_0x2c00d0,{limit:limit=0xa,..._0x192425}=_0x37bad7;return this[_0xb099b8(0x285)](_0xb099b8(0x3a9),[_0x4ea142,_0x564de6(_0x454538),{..._0x192425,'limit':limit}]);}[_0x2c00d0(0x46d)](_0x159865){const _0x428282=_0x2c00d0;return this['_n'](_0x428282(0x46d),[_0x159865],![]);}['_durableEngineDoc'](_0x4b0968,_0x47b7f0){return this['_n']('durableEngineDoc',[_0x4b0968,_0x47b7f0],![]);}[_0x2c00d0(0x24a)](_0x5df61d){const _0x29d2bd=_0x2c00d0;return this['_n'](_0x29d2bd(0x223),[_0x5df61d],![]);}async[_0x2c00d0(0xa1)](_0x1f272c){const _0x133d88=_0x2c00d0;return this['_n'](_0x133d88(0x3ca),[_0x1f272c],![]);}async[_0x2c00d0(0x679)](_0x4b49d3,_0x57127f={}){const _0x5883f8=_0x2c00d0;return this['_n'](_0x5883f8(0x5c8),[_0x4b49d3,_0x57127f],![]);}async[_0x2c00d0(0x766)](_0x2366e4,_0x391442){const _0x4185a4=_0x2c00d0;return this['_n'](_0x4185a4(0x614),[_0x2366e4,_0x391442],![]);}async[_0x2c00d0(0x59a)](_0x5027f0,_0x501a92,_0x35bb2c,_0x3c1187){const _0x5a5928=_0x2c00d0;if(_0x5027f0!=null&&typeof _0x5027f0[_0x5a5928(0x116)]!=='function')throw _0x22cdb3(_0x5a5928(0x219),_0x5a5928(0x736),_0x5027f0);if(!_0x5027f0||!_0x35bb2c)return null;return this[_0x5a5928(0x22a)][_0x5a5928(0x3c8)](_0x5a5928(0x588),null,'describeChunk',[_0x5027f0,_0x501a92,_0x35bb2c,_0x3c1187??null],![]);}async['durableMarkDone'](_0x69533d,_0x141013,_0x5d3f1f={}){const _0x57cae5=_0x2c00d0,_0x21a517={..._0x5d3f1f};if(_0x21a517['vector'])_0x21a517['vector']=Array[_0x57cae5(0x768)](_0x21a517[_0x57cae5(0x44f)]);return this['_n'](_0x57cae5(0x2d1),[_0x69533d,_0x141013,_0x21a517]);}async[_0x2c00d0(0x273)](_0xd55818,_0x3287e7,_0x5f16e3,_0x4450b9={}){return this['_n']('durableMarkFail',[_0xd55818,_0x3287e7,_0x5f16e3,_0x4450b9]);}async[_0x2c00d0(0x10a)](_0x3ad1e8,_0x571453){return this['_n']('durableMarkDelete',[_0x3ad1e8,_0x571453]);}async['durableRetryDoc'](_0x542580,_0x4d1526){const _0x219a71=_0x2c00d0;return this['_n'](_0x219a71(0x620),[_0x542580,_0x4d1526]);}async[_0x2c00d0(0x2f2)](_0x30646f,_0x422980={}){return this['_n']('durableRetryFailed',[_0x30646f,_0x422980]);}async['durableRebuild'](_0x21ad25){const _0x45450d=_0x2c00d0;return this[_0x45450d(0x285)](_0x45450d(0x112),[_0x21ad25]);}async['_durableWorkerStats'](_0x1e830b){return this['_n']('durableWorkerStats',[_0x1e830b],![]);}[_0x2c00d0(0x192)](_0xf3ab1){const _0x3c0af3=_0x2c00d0;return this['_n'](_0x3c0af3(0x192),[_0xf3ab1],![]);}[_0x2c00d0(0x40b)](){const _0x5cf155=_0x2c00d0;return this['_n'](_0x5cf155(0x40b),[],![]);}[_0x2c00d0(0x3aa)](_0x306e5a,_0x32624a){const _0x5645d1=this['_n']('getVector',[_0x306e5a,_0x32624a],![]);return _0x5645d1==null?null:Float32Array['from'](_0x5645d1);}['resolveModelDims'](_0x39d3c8,_0x9c0b72){const _0x43856b=_0x2c00d0;return this['_n'](_0x43856b(0x337),[_0x39d3c8,_0x9c0b72??null],![])??undefined;}async[_0x2c00d0(0x3e6)](_0x31dc7d,_0x37ffa1,_0x35c365,_0x574de4=''){const _0x45c7e2=_0x2c00d0;return this['_n'](_0x45c7e2(0x3e6),[_0x31dc7d,_0x37ffa1,_0x35c365,_0x574de4]);}[_0x2c00d0(0xf9)](_0x103a1b=null){const _0x485658=_0x2c00d0;return this['_n'](_0x485658(0xf9),[_0x103a1b],![]);}[_0x2c00d0(0x38c)](){const _0x396996=_0x2c00d0;return this['_n'](_0x396996(0x38c),[],![]);}async['_ensureTypeEnv'](_0x55c92d,_0x568519){const _0x93544d=_0x2c00d0;return this['_n'](_0x93544d(0x9f),[_0x55c92d,_0x568519],![]),this[_0x93544d(0x22a)][_0x93544d(0x1bf)]('~'+_0x55c92d+':emb:'+_0x568519);}async['_ensureVectorStore'](_0xf56216,_0x45fe14){const _0x4eb51c=_0x2c00d0;return await this[_0x4eb51c(0x535)](_0xf56216,_0x45fe14),{'adapter':_0x146254=>this[_0x4eb51c(0x2db)](_0xf56216,_0x45fe14,_0x146254)};}['_makeLazyVectorAdapter'](_0x56c7ff,_0x91cb70,_0xa16ce3){const _0x359f5a=this;return{async 'put'(_0x284f7d,_0x244056){const _0x7642d2=_0x5ce2;return _0x359f5a['_n']('vecPut',[_0x56c7ff,_0x91cb70,_0xa16ce3,_0x284f7d,Array[_0x7642d2(0x768)](_0x244056)]);},async 'remove'(_0xc16b44){const _0x17c246=_0x5ce2;return _0x359f5a['_n'](_0x17c246(0x2e0),[_0x56c7ff,_0x91cb70,_0xa16ce3,_0xc16b44]);}};}get['_localViews'](){const _0x1c027b=_0x2c00d0,_0xc71f6f=this,_0x2b118f=()=>_0xc71f6f['_n']('localViewNames',[],![]),_0xd5d38c=_0x30fcb1=>{const _0x1450db=_0x5ce2,_0xa7a3fd=_0x26fa7c=>_0xc71f6f['_n']('viewOp',[_0x30fcb1,_0x26fa7c],![]);return{'name':_0x30fcb1,'_evict':async()=>_0xa7a3fd(_0x1450db(0x34b)),'evict':async()=>_0xa7a3fd('evict'),'snapshot':async()=>_0xa7a3fd(_0x1450db(0x346)),'_snapshot':async()=>_0xa7a3fd('snapshot'),'rebuild':async()=>_0xa7a3fd(_0x1450db(0x583)),'stats':()=>_0xa7a3fd(_0x1450db(0xd7)),get 'count'(){return _0xa7a3fd('count');},get 'loaded'(){const _0xdee0f3=_0x1450db;return _0xa7a3fd(_0xdee0f3(0x494));}};};return{get 'size'(){return _0x2b118f()['length'];},'has':_0x587064=>_0x2b118f()['includes'](_0x587064),'get':_0x4a72df=>_0x2b118f()['includes'](_0x4a72df)?_0xd5d38c(_0x4a72df):undefined,'keys':()=>_0x2b118f()[Symbol['iterator']](),'values':()=>_0x2b118f()[_0x1c027b(0x1c9)](_0xd5d38c)[Symbol[_0x1c027b(0x753)]](),[Symbol['iterator']]:()=>_0x2b118f()[_0x1c027b(0x1c9)](_0x41970b=>[_0x41970b,_0xd5d38c(_0x41970b)])[Symbol['iterator']]()};}async[_0x2c00d0(0x297)](){}async[_0x2c00d0(0x533)](){const _0x448097=_0x2c00d0;this['_n'](_0x448097(0x533),[]);}[_0x2c00d0(0x85)](_0x43ef0d,_0x13799e,_0x326b2f){const _0x327ef7=_0x2c00d0;return{'search':(_0xb71671,_0x4b5b7b={})=>{const _0x256040=_0x5ce2,_0xc4aac9=this['search'](_0x43ef0d);if(!_0xc4aac9)throw new Error('vector-search\x20engine\x20not\x20running:\x20\x22'+_0x43ef0d+'\x22');return _0xc4aac9[_0x256040(0x4a5)](_0xb71671,_0x4b5b7b);},'searchDocs':(_0x301f87,_0xac851a={})=>this['searchDocs'](_0x43ef0d,_0x301f87,_0xac851a),'flush':_0x4c655a=>{const _0x1124ff=_0x5ce2,_0xc216da=this[_0x1124ff(0x227)](_0x43ef0d);if(!_0xc216da)throw new Error(_0x1124ff(0x698)+_0x43ef0d+'\x22');return _0xc216da[_0x1124ff(0x282)](_0x4c655a);},'stats':async()=>({'embedder':await this[_0x327ef7(0x10d)](_0x13799e)?.[_0x327ef7(0x3b5)]?.(),'indexer':await this[_0x327ef7(0x227)](_0x43ef0d)?.[_0x327ef7(0xd7)]?.(),'worker':await this[_0x327ef7(0x3a5)](_0x326b2f)?.[_0x327ef7(0xd7)]?.(),'search':await this[_0x327ef7(0x4a5)](_0x43ef0d)?.[_0x327ef7(0xd7)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x3c58c2,'ENGINE_TYPES':_0x523490},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x2dd08f=_0x30747f;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x245aaa}=requireErrors();class _0x14d454{constructor(_0x48d52d){this['okdb']=_0x48d52d;}['_n'](_0x22bb61,_0x339c7a=[],_0xfbfe11=![]){const _0x24adab=_0x5ce2;return this[_0x24adab(0x22a)][_0x24adab(0x313)](_0x24adab(0x293),null,_0x22bb61,_0x339c7a,_0xfbfe11);}['_nm'](_0x474eba,_0x52440b=[]){const _0xc9f08=_0x5ce2;return this[_0xc9f08(0x22a)][_0xc9f08(0x3c8)]('auth',null,_0x474eba,_0x52440b,![]);}get['mode'](){return this['_n']('mode');}get[_0x2dd08f(0x57b)](){return this['_n']('isSetupMode');}get[_0x2dd08f(0x16e)](){const _0x334750=_0x2dd08f;return this['okdb'][_0x334750(0x41d)][_0x334750(0x293)]?.[_0x334750(0x1a1)]||{};}['isOAuthEmailAllowed'](_0x1d0bfc){const _0x2b66ff=_0x2dd08f;return this['_n'](_0x2b66ff(0x662),[_0x1d0bfc??null]);}[_0x2dd08f(0xec)](_0x5caaa3){return this['_n']('isOpenForIp',[_0x5caaa3??null]);}[_0x2dd08f(0x66f)](_0xde7100){const _0x5e244b=_0x2dd08f;return this['_n'](_0x5e244b(0xef),[_0xde7100??null]);}[_0x2dd08f(0x664)](){const _0x5f119f=_0x2dd08f;return this['_n'](_0x5f119f(0x13c));}[_0x2dd08f(0xdf)](){return this['_n']('getOpenWarning');}[_0x2dd08f(0x1b3)](){const _0x5240e1=_0x2dd08f;return this['_n'](_0x5240e1(0x1b3));}[_0x2dd08f(0x2f1)](_0x258c1f){const _0x10f2a1=_0x2dd08f;return this['_n'](_0x10f2a1(0x2f1),[_0x258c1f]);}[_0x2dd08f(0x16b)](_0x4b2589){const _0x475c9b=_0x2dd08f;return this['_n'](_0x475c9b(0x16b),[_0x4b2589]);}['parseBearer'](_0x3d43a7){const _0xe1d621=_0x2dd08f;if(_0x3d43a7!=null&&typeof _0x3d43a7!==_0xe1d621(0x395))throw _0x245aaa(_0xe1d621(0x277),'a\x20string',_0x3d43a7);return this['_n'](_0xe1d621(0x6f3),[_0x3d43a7??null]);}async[_0x2dd08f(0x611)](){const _0x41ec61=_0x2dd08f;return this['_n'](_0x41ec61(0x3ec),[],!![]);}async[_0x2dd08f(0x86)](_0x206a5e){const _0x2bb029=_0x2dd08f;return this['_n'](_0x2bb029(0x9b),[_0x206a5e]);}async['_lookupByName'](_0x2c8f70){return this['_n']('lookupByName',[_0x2c8f70]);}async[_0x2dd08f(0x5f0)](_0x670d78){const _0x3e9567=_0x2dd08f;return this['_n'](_0x3e9567(0x8d),[_0x670d78]);}async[_0x2dd08f(0x542)](_0x4b4adc){const _0x5b2a1a=_0x2dd08f,_0xc9dc66=_0x4b4adc?.[_0x5b2a1a(0x554)]||{};return this['_n'](_0x5b2a1a(0x542),[{'remoteAddress':_0x4b4adc[_0x5b2a1a(0x49f)]?.[_0x5b2a1a(0x3a7)]??null,'internal':_0x4b4adc?.[_0x5b2a1a(0xc9)]?.[_0x5b2a1a(0x451)]===!![],'authorization':_0xc9dc66['authorization']??null,'cookies':_0x4b4adc?.[_0x5b2a1a(0x75d)]??{}}]);}async[_0x2dd08f(0x1c8)](_0x47a25b,_0x11ec7c){const _0x1c58d0=_0x2dd08f;return this[_0x1c58d0(0x285)]('login',[_0x47a25b??null,_0x11ec7c??null]);}async['loginSelect'](_0x315c4a,_0x368690,_0x359bb5){const _0x5d2639=_0x2dd08f;return this[_0x5d2639(0x285)](_0x5d2639(0x6e5),[_0x315c4a??null,_0x368690??null,_0x359bb5??null]);}[_0x2dd08f(0x99)](){const _0x17e329=_0x2dd08f;return this['_n'](_0x17e329(0x99));}[_0x2dd08f(0x512)](){const _0x2f8291=_0x2dd08f;return this['_n'](_0x2f8291(0x512));}[_0x2dd08f(0x1a6)](_0x1add7d={},_0x498da9=0x927c0){const _0x12ee35=_0x2dd08f;return this['_n'](_0x12ee35(0x1a6),[_0x1add7d,_0x498da9]);}[_0x2dd08f(0x67e)](_0x288de7){const _0x24252a=_0x2dd08f;return this['_n'](_0x24252a(0x67e),[_0x288de7]);}async[_0x2dd08f(0x187)](_0x44750a,_0x2569b9={}){const _0xaa844d=_0x2dd08f;return this['_nm'](_0xaa844d(0x27f),[_0x44750a,_0x2569b9]);}async[_0x2dd08f(0x17d)](_0x2b1b3b={}){const _0x360f3a=_0x2dd08f;return this[_0x360f3a(0x285)](_0x360f3a(0x29e),[_0x2b1b3b]);}[_0x2dd08f(0xe5)](_0x4bd0d1){const _0x1af8d1=_0x2dd08f;return this['_n'](_0x1af8d1(0x6c8),[_0x4bd0d1]);}}return auth={'OKDBAuth':_0x14d454},auth;}var sync,hasRequiredSync;function requireSync(){const _0x30aa23=_0x30747f;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x325f53}=requireRawdb();class _0x54ae8f{constructor(_0x3b238c){this['_s']=_0x3b238c;}get[_0x30aa23(0x6ac)](){const _0x4ff330=_0x30aa23;return this[_0x4ff330(0xc1)]||(this['_ack']=new _0x325f53(this['_s'][_0x4ff330(0x22a)][_0x4ff330(0x784)],'__sync:acks'));}[_0x30aa23(0x402)](){return this['_ackDb'];}[_0x30aa23(0x2e8)](){const _0x10e849=_0x30aa23;return this[_0x10e849(0x6ac)];}['_n'](_0x11adb2,_0x8bc05b=[]){const _0x26a831=_0x30aa23;return this['_s']['_n'](_0x26a831(0x148)+_0x11adb2,_0x8bc05b);}[_0x30aa23(0x431)](_0x26c6cd,_0x3074e6){const _0xd116fc=_0x30aa23;return this['_n'](_0xd116fc(0x431),[_0x26c6cd,_0x3074e6]);}async['forceResync'](_0x27c220){const _0x47f994=_0x30aa23;return this['_n'](_0x47f994(0x376),[_0x27c220]);}['getPeerAcks'](){return this['_n']('getPeerAcks');}[_0x30aa23(0x331)](_0x3a6a23){return this['_n']('getGcHorizon',[_0x3a6a23]);}async[_0x30aa23(0x462)](){return this['_n']('runGc');}['getStatus'](){return this['_n']('getStatus');}[_0x30aa23(0x297)](){const _0x3df8ff=_0x30aa23;return this['_n'](_0x3df8ff(0x297));}[_0x30aa23(0x533)](){return this['_n']('stop');}get[_0x30aa23(0x1d0)](){try{return this['_n']('timerArmed')?{}:null;}catch{return null;}}}class _0x4cba0e{constructor(_0x501226){const _0x40bef3=_0x30aa23;this[_0x40bef3(0x22a)]=_0x501226,this['gc']=new _0x54ae8f(this);const _0x35b366=this;this['options']=new Proxy({},{'get':(_0x56082d,_0x3f80a3)=>typeof _0x3f80a3===_0x40bef3(0x395)?_0x35b366['_n'](_0x40bef3(0x41d))[_0x3f80a3]:undefined,'set':(_0x410276,_0x58e75a,_0x27adb2)=>{const _0x100d71=_0x40bef3;if(_0x58e75a===_0x100d71(0xd5))_0x35b366['_n'](_0x100d71(0x1e2),[_0x27adb2??null]);else{if(_0x58e75a===_0x100d71(0xbd))_0x35b366['_n'](_0x100d71(0x477),[_0x27adb2??null]);else{if(_0x58e75a===_0x100d71(0x90))_0x35b366['_n'](_0x100d71(0x760),[_0x27adb2]);}}return!![];},'ownKeys':()=>Object[_0x40bef3(0x393)](_0x35b366['_n'](_0x40bef3(0x41d))),'getOwnPropertyDescriptor':(_0x2fbb61,_0xce8683)=>({'enumerable':!![],'configurable':!![],'value':_0x35b366['_n']('options')[_0xce8683]}),'has':(_0x322f71,_0x314e1c)=>_0x314e1c in _0x35b366['_n'](_0x40bef3(0x41d))});}['_n'](_0x1e197e,_0x15ef37=[],_0x5b8a06=![]){const _0xb301d=_0x30aa23;return this['okdb']['_call'](_0xb301d(0x11f),null,_0x1e197e,_0x15ef37,_0x5b8a06);}[_0x30aa23(0x285)](_0x39f31d,_0x319624=[]){const _0x1922d0=_0x30aa23;return this[_0x1922d0(0x22a)][_0x1922d0(0x3c8)](_0x1922d0(0x11f),null,_0x39f31d,_0x319624,!![]);}get[_0x30aa23(0x1c1)](){const _0x411c64=_0x30aa23;return this[_0x411c64(0xf5)]||(this[_0x411c64(0xf5)]=new _0x325f53(this[_0x411c64(0x22a)][_0x411c64(0x784)],'__sync:peer_state'));}[_0x30aa23(0x36b)](){const _0x426668=_0x30aa23;return this[_0x426668(0x1c1)];}get[_0x30aa23(0x775)](){const _0x41eba1=_0x30aa23;return this[_0x41eba1(0x503)]||(this[_0x41eba1(0x503)]=new(requireLock())[(_0x41eba1(0x93))](this[_0x41eba1(0x22a)],_0x41eba1(0x2c7),_0x41eba1(0x11f),{'ttlMs':0x7530}));}get[_0x30aa23(0xd5)](){const _0x20ceba=_0x30aa23;return this['_n'](_0x20ceba(0x41d))[_0x20ceba(0xd5)];}get[_0x30aa23(0x4a2)](){const _0x29a1f0=_0x30aa23;return this[_0x29a1f0(0x22a)]['_isOpen']&&this['_n'](_0x29a1f0(0x1ca))?{}:null;}get[_0x30aa23(0x5cd)](){return this['_clockListener'];}get['_nodePrivateKey'](){const _0x5d84a6=_0x30aa23;return this['_n']('nodeKeys')?.[_0x5d84a6(0x359)];}get[_0x30aa23(0x4b6)](){const _0x27b1b1=_0x30aa23;return this['_n']('nodeKeys')?.[_0x27b1b1(0x407)];}['info'](){const _0x3976c3=_0x30aa23;return this['_n'](_0x3976c3(0x41f));}[_0x30aa23(0x37e)](){const _0x58b90f=_0x30aa23;return this['_n'](_0x58b90f(0x37e));}get[_0x30aa23(0x5ca)](){const _0xaeed3=_0x30aa23;return this['__peers']||(()=>this['_n'](_0xaeed3(0x5ca)));}set['peers'](_0x38d84b){const _0x57762e=_0x30aa23;this[_0x57762e(0x568)]=typeof _0x38d84b==='function'?_0x38d84b:null,this['_n'](_0x57762e(0x31b),[this[_0x57762e(0x568)]]);}['_listPeers'](){return this['_n']('listPeers');}async['reconcile'](){const _0x22ae33=_0x30aa23;return this['_nm'](_0x22ae33(0x398));}async[_0x30aa23(0x180)](_0x2ddadb){const _0x26fc22=_0x30aa23;return this[_0x26fc22(0x285)](_0x26fc22(0x180),[_0x2ddadb]);}async['_reconcilePeer'](_0x57e94e,_0x3a9c79={}){const _0x13744b=_0x30aa23;return this[_0x13744b(0x285)](_0x13744b(0x5bd),[_0x57e94e,_0x3a9c79]);}[_0x30aa23(0x533)](){const _0x3cb403=_0x30aa23;return this['_n'](_0x3cb403(0x533));}[_0x30aa23(0x652)](){const _0x21b3af=_0x30aa23;return this['_n'](_0x21b3af(0x652));}async[_0x30aa23(0x1eb)](_0x3fdf49,_0x203d46={}){return this['_n']('upsertLink',[_0x3fdf49,_0x203d46],!![]);}async[_0x30aa23(0x4c6)](_0x27b739){const _0x3c96d8=_0x30aa23;return this['_n'](_0x3c96d8(0x4c6),[_0x27b739],!![]);}['_getNodeRecord'](_0x25ddae){const _0x51bf0b=_0x30aa23;return this['_n'](_0x51bf0b(0x218),[_0x25ddae]);}['_getPeerState'](_0x2198e6){const _0x4c2802=_0x30aa23;return this['_n'](_0x4c2802(0x52e),[_0x2198e6]);}async[_0x30aa23(0x261)](_0x3ddc45,_0x533098,_0x142afa={}){const _0x51d0ad=_0x30aa23;return this['_n'](_0x51d0ad(0x8f),[_0x3ddc45,_0x533098,_0x142afa]);}async[_0x30aa23(0x348)](_0x335e74){const _0x3150cd=_0x30aa23;return this['_n'](_0x3150cd(0x370),[_0x335e74]);}async[_0x30aa23(0x186)](){const _0x1293fc=_0x30aa23;return this['_n'](_0x1293fc(0x493),[],!![]);}async[_0x30aa23(0xc2)](_0x4e3545){const _0x4db673=_0x30aa23;return this['_n'](_0x4db673(0xc2),[_0x4e3545],!![]);}async[_0x30aa23(0x2fd)](_0x48c14c,_0x469bfc={}){const _0x2e1863=_0x30aa23;return this[_0x2e1863(0x285)]('join',[_0x48c14c,_0x469bfc]);}async['calculateDelta'](_0x289514={},_0x3bae29={}){const _0x3f7204=_0x30aa23;return void _0x289514[_0x3f7204(0x2c7)],this['_n'](_0x3f7204(0x260),[_0x289514,_0x3bae29]);}async[_0x30aa23(0x2fe)](_0x455918,_0x578e54,_0x258ab1,_0x2bb471){const _0x56dc2c=_0x30aa23;return this[_0x56dc2c(0x285)]('fetchPeer',[_0x455918,_0x578e54,_0x258ab1,_0x2bb471??null]);}async[_0x30aa23(0x24b)](_0xdb7856,_0x4ae598,_0x22319a={}){const _0x65e7bd=_0x30aa23;return this[_0x65e7bd(0x285)](_0x65e7bd(0x24b),[_0xdb7856,_0x4ae598,_0x22319a]);}[_0x30aa23(0x91)](_0x130e32,_0x3ac338=null){return this['_n']('shouldApplyChange',[_0x130e32,_0x3ac338?_0x3ac338['name']:null]);}[_0x30aa23(0x47d)](_0x5acbd7,_0xee59e4=null){const _0x3ec0ca=_0x30aa23;return this['_n'](_0x3ec0ca(0x47d),[_0x5acbd7,_0xee59e4?_0xee59e4[_0x3ec0ca(0x219)]:null],!![]);}}return sync={'OKDBSync':_0x4cba0e},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x2e0e7e=_0x30747f;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x5656a1}=requireErrors(),_0x352648=require$$0,_0x47b53d=require$$4,_0x50881c=0x40*0x400;async function _0x5a204b(_0x309ff8,_0x1a3e92){const _0x311d9f=_0x5ce2;for(let _0x598893=0x0;_0x598893<_0x1a3e92[_0x311d9f(0x789)];){let _0x11f127=Math[_0x311d9f(0x220)](_0x1a3e92['length'],_0x598893+_0x50881c);if(_0x11f127<_0x1a3e92[_0x311d9f(0x789)]){const _0x46dee3=_0x1a3e92['indexOf'](0xa,_0x11f127-0x1);_0x11f127=_0x46dee3===-0x1?_0x1a3e92[_0x311d9f(0x789)]:_0x46dee3+0x1;}const _0x422440=_0x309ff8[_0x311d9f(0x30c)](_0x1a3e92[_0x311d9f(0x3d7)](_0x598893,_0x11f127));_0x598893=_0x11f127;if(!_0x422440)await new Promise(_0x5a84f7=>_0x309ff8['once'](_0x311d9f(0x725),_0x5a84f7));await new Promise(_0x2d27c1=>setImmediate(_0x2d27c1));}}async function _0x11722d(_0x3e9086){const _0x202dd7=_0x5ce2,_0x4513df=[];for await(const _0xb2f4b1 of _0x3e9086)_0x4513df[_0x202dd7(0x235)](Buffer[_0x202dd7(0x284)](_0xb2f4b1)?_0xb2f4b1:Buffer[_0x202dd7(0x768)](_0xb2f4b1,_0x202dd7(0x2b2)));return Buffer[_0x202dd7(0x364)](_0x4513df);}class _0x5e30ad{constructor(_0xee212){const _0x3e9384=_0x5ce2;this[_0x3e9384(0x22a)]=_0xee212;}['_n'](_0x199989,_0x76cd07){const _0x3f7be6=_0x5ce2;return this[_0x3f7be6(0x22a)][_0x3f7be6(0x313)](_0x3f7be6(0x643),null,_0x199989,_0x76cd07,!![]);}async['exportToStream'](_0xd0d9fb,_0x509bb1={}){const _0xf3173=_0x5ce2,{data:_0x3079f6,stats:_0x37a538}=this['_n'](_0xf3173(0x48e),[_0x509bb1]);return await _0x5a204b(_0xd0d9fb,Buffer['from'](_0x3079f6)),_0x37a538;}async[_0x2e0e7e(0x426)](_0x28e4f9,_0x326d9c={}){const _0x32ab11=_0x2e0e7e;_0x352648[_0x32ab11(0x6a6)](_0x47b53d[_0x32ab11(0x522)](_0x28e4f9),{'recursive':!![]});const _0x34c5e8=_0x352648[_0x32ab11(0x12d)](_0x28e4f9),_0x19d081=await this[_0x32ab11(0x113)](_0x34c5e8,_0x326d9c);return await new Promise((_0x4436dd,_0x19e846)=>{const _0x4562f5=_0x32ab11;_0x34c5e8[_0x4562f5(0x6df)](),_0x34c5e8[_0x4562f5(0x654)](_0x4562f5(0x193),_0x4436dd),_0x34c5e8['once'](_0x4562f5(0x373),_0x19e846);}),{..._0x19d081,'filePath':_0x28e4f9};}async['exportEnvsToStream'](_0x4ab801,_0x2d020c={}){const _0xe87789=_0x2e0e7e,{data:_0x57f787,stats:_0x3b0071}=this['_n'](_0xe87789(0x363),[_0x2d020c]);return await _0x5a204b(_0x4ab801,Buffer['from'](_0x57f787)),_0x3b0071;}async[_0x2e0e7e(0x773)](_0x87c737,_0x4c6025={}){const _0x59cc11=_0x2e0e7e,_0x4a4c7f=await _0x11722d(_0x87c737),{onProgress:_0x88a626,..._0x56637b}=_0x4c6025,_0x2a0396=this['_n'](_0x59cc11(0x53f),[_0x4a4c7f,_0x56637b]);if(typeof _0x88a626==='function')_0x88a626({'type':null,'count':_0x2a0396['records']});return _0x2a0396;}async[_0x2e0e7e(0x3b2)](_0x16dcf1,_0x277bcf={}){const _0x37b060=_0x2e0e7e;return this[_0x37b060(0x773)](_0x352648[_0x37b060(0x500)](_0x16dcf1,{'encoding':_0x37b060(0x2b2)}),_0x277bcf);}async[_0x2e0e7e(0x274)](_0x3ed92d,_0x543f85={}){const _0x24455a=_0x2e0e7e;return this['_n'](_0x24455a(0x274),[_0x3ed92d,_0x543f85]);}[_0x2e0e7e(0x380)](){const _0x30eb7f=_0x2e0e7e;return this['_n'](_0x30eb7f(0x380),[]);}[_0x2e0e7e(0x72c)](_0x547cbb){return this['_n']('resolveBackupDest',[_0x547cbb??null]);}async['export'](_0x344e84={}){return this['_n']('export',[_0x344e84]);}async['import'](_0x591c65,_0x4a890b={}){return this['_n']('import',[_0x591c65,_0x4a890b]);}async['exportJSON'](_0x2a6822){const _0x55a175=_0x2e0e7e,{pretty:pretty=![]}=_0x5656a1(_0x2a6822);return JSON['stringify'](await this[_0x55a175(0x755)](),null,pretty?0x2:0x0);}async[_0x2e0e7e(0x141)](_0x156d6e){const _0xa99e67=_0x2e0e7e;return this[_0xa99e67(0x6ed)](JSON[_0xa99e67(0xb3)](_0x156d6e));}[_0x2e0e7e(0x48c)](){const _0x1ae23c=_0x2e0e7e;if(!this[_0x1ae23c(0x22a)]['_envs']['get'](_0x1ae23c(0x5eb))?.[_0x1ae23c(0xab)])throw new Error(_0x1ae23c(0x585));}async[_0x2e0e7e(0xf3)](_0x8680d3){const _0x92164f=_0x2e0e7e;return this[_0x92164f(0x48c)](),this['_n'](_0x92164f(0xf3),[_0x8680d3]);}async[_0x2e0e7e(0x4c0)](_0x39d0a8){const _0x330fd2=_0x2e0e7e;return this[_0x330fd2(0x48c)](),this['_n']('importBlobs',[_0x39d0a8]);}[_0x2e0e7e(0x13f)](){const _0x1552f4=_0x2e0e7e;return this['_n'](_0x1552f4(0x43b),[])[_0x1552f4(0x1c9)](_0x5b8f36=>this['okdb'][_0x1552f4(0x326)](_0x5b8f36));}async[_0x2e0e7e(0x4e4)](){const _0x2d9f8a=_0x2e0e7e;return this[_0x2d9f8a(0x48c)](),this['_n'](_0x2d9f8a(0x4e4),[]);}async[_0x2e0e7e(0x676)](){const _0x463502=_0x2e0e7e;return this[_0x463502(0x48c)](),this['_n'](_0x463502(0x676),[]);}}return migrate={'OKDBMigrate':_0x5e30ad},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x33d9c2=_0x30747f;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x2b3550{constructor(_0x255a0b){const _0x3a2e48=_0x5ce2;this[_0x3a2e48(0x22a)]=_0x255a0b,this['clients']=new Map();}['_n'](_0x29f318,_0x3c5449){const _0x471c33=_0x5ce2;try{return this[_0x471c33(0x22a)][_0x471c33(0x313)](_0x471c33(0x759),null,_0x29f318,_0x3c5449,!![]);}catch(_0x35725d){if(_0x35725d&&_0x35725d['code']===_0x471c33(0x42c)&&_0x35725d['details']){if(_0x35725d['details'][_0x471c33(0xe1)]!==undefined)_0x35725d[_0x471c33(0xe1)]=_0x35725d[_0x471c33(0x107)][_0x471c33(0xe1)];_0x35725d[_0x471c33(0x107)]=_0x35725d[_0x471c33(0x107)][_0x471c33(0x107)],_0x35725d['code']=undefined;}throw _0x35725d;}}[_0x33d9c2(0x79c)](){const _0x50ab3f=_0x33d9c2;return this['_n'](_0x50ab3f(0x191),[]);}async[_0x33d9c2(0x313)](_0x2d4c14,_0x12c65={}){const _0x436fc8=_0x33d9c2;return this['_n'](_0x436fc8(0x3c4),[_0x2d4c14??null,_0x12c65??{}]);}async['_handle'](_0x38783b,_0x115e84={}){return this['_n']('handle',[_0x38783b,_0x115e84??{}]);}[_0x33d9c2(0x491)](_0x224255){const _0x4989bb=_0x33d9c2;return this['_n'](_0x4989bb(0x605),[_0x224255??null]);}}return mcp={'OKDBMcp':_0x2b3550},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x175629=_0x30747f;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x7a388d(_0x27d6ab,_0x129681,_0x3a16d2){const _0x2e1a69=_0x5ce2,_0x253a6f={};for(const [_0x256bd6,_0x3320ca]of Object[_0x2e1a69(0x695)](_0x3a16d2)){_0x253a6f[_0x256bd6]=_0x3320ca===_0x2e1a69(0x84)?async(..._0x37e806)=>_0x27d6ab[_0x2e1a69(0x313)](_0x129681,null,_0x256bd6,_0x37e806):(..._0x14ef45)=>_0x27d6ab[_0x2e1a69(0x313)](_0x129681,null,_0x256bd6,_0x14ef45,![]);}return _0x253a6f;}const _0x11fcf2=['listTypes','isType',_0x175629(0x457),_0x175629(0x7b8),'listIndexes',_0x175629(0x1b2),_0x175629(0x109),_0x175629(0x4a1),_0x175629(0x9c),_0x175629(0x3c5),_0x175629(0x6b9),_0x175629(0x2c0),_0x175629(0x74c),'meta',_0x175629(0x166),_0x175629(0x119),_0x175629(0x38e),_0x175629(0x147),'explainIndex',_0x175629(0x6d5),_0x175629(0x23b)],_0x4ba2ec={'add':_0x175629(0x84),'activate':_0x175629(0x84),'remove':_0x175629(0x84),'list':_0x175629(0x11f),'get':_0x175629(0x11f),'effective':'sync'},_0x52408d={'open':_0x175629(0x84),'register':_0x175629(0x84),'buildOwnRow':_0x175629(0x11f),'_buildProcessingFacet':_0x175629(0x11f),'reportThreadStats':_0x175629(0x11f),'clearThreadStats':'sync','emitProc':'sync','addSupervisedChild':'async','removeSupervisedChild':_0x175629(0x11f),'updateSupervisedChildStats':'sync','publishChildRow':_0x175629(0x84),'putNode':'async','removeNode':_0x175629(0x84),'nodeDead':_0x175629(0x11f),'listNodes':_0x175629(0x11f),'reap':'async','publishOwnRow':_0x175629(0x84),'deregisterSelf':_0x175629(0x84),'setOwnMeta':_0x175629(0x11f),'noteListenAddr':_0x175629(0x11f),'hasDesired':_0x175629(0x11f),'getDesired':_0x175629(0x11f),'setDesired':_0x175629(0x84),'listDesired':_0x175629(0x11f),'getCmd':_0x175629(0x11f),'bumpCmd':'async','processingStatusView':_0x175629(0x11f),'processorsView':_0x175629(0x11f),'clusterStatusView':_0x175629(0x11f),'nodesView':_0x175629(0x11f),'treeView':_0x175629(0x11f),'getProcess':_0x175629(0x11f),'runtimeProcessesView':'sync'};function _0x1f1001(_0x2a35c3){const _0x1e7017=_0x175629,_0x48ebe8={},_0x3f5f78=_0x28fd42=>_0x28fd42&&typeof _0x28fd42===_0x1e7017(0x12c)&&!Array[_0x1e7017(0x82)](_0x28fd42)&&typeof _0x28fd42['name']===_0x1e7017(0x395)?_0x28fd42['name']:_0x28fd42;for(const _0x494e51 of _0x11fcf2)_0x48ebe8[_0x494e51]=_0x494e51===_0x1e7017(0x6d5)?async(..._0xc10e38)=>_0x2a35c3[_0x1e7017(0x313)]('meta',null,_0x494e51,_0xc10e38[_0x1e7017(0x1c9)](_0x3f5f78),!![]):(..._0x2f8207)=>_0x2a35c3[_0x1e7017(0x313)](_0x1e7017(0x1e9),null,_0x494e51,_0x2f8207['map'](_0x3f5f78),![]);return _0x48ebe8;}function _0x1d55fd(_0x27905c){const _0x5d46a0=_0x175629,_0x50f3df=_0x7a388d(_0x27905c,_0x5d46a0(0x21e),_0x4ba2ec);return _0x50f3df;}function _0x57b580(_0x1d329b){const _0x1fc1fa=_0x175629,_0x18b118=()=>_0x1d329b[_0x1fc1fa(0x21e)]['effective'](),_0x493dd4=_0x6dcac1=>_0x6dcac1['free']?{..._0x6dcac1,'_isFree':!![]}:_0x6dcac1;return{async 'addLicense'(_0x12d2aa){const _0x418456=_0x1fc1fa;return _0x1d329b[_0x418456(0x21e)][_0x418456(0x3e2)](_0x12d2aa);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x5d4f8e=_0x1fc1fa,_0x1bd05f=_0x18b118();return _0x1bd05f[_0x5d4f8e(0x208)]?null:_0x1bd05f;},get 'effective'(){return _0x493dd4(_0x18b118());},'hasLimit'(_0x4522c){const _0x25dfb9=_0x1fc1fa,_0xef7ace=_0x18b118();if(!_0xef7ace[_0x25dfb9(0x410)])return![];const _0x21a919=_0xef7ace[_0x25dfb9(0x22c)]?.[_0x4522c];return!(_0x21a919===null||_0x21a919===undefined||_0x21a919===0x0);},'isFeatureEnabled'(_0x17407e){const _0xd79451=_0x1fc1fa,_0x242264=_0x18b118();return!_0x242264[_0xd79451(0x410)]||!!_0x242264[_0xd79451(0x1d5)]?.[_0x17407e];},'assertFeature'(_0x43377b){const _0x453fcb=_0x1fc1fa,_0x56e7a8=_0x18b118();if(!_0x56e7a8[_0x453fcb(0x410)]||_0x56e7a8['features']?.[_0x43377b])return;const {OKDBError:_0x267094}=requireErrors(),_0xc802f5=_0x56e7a8[_0x453fcb(0x208)]?_0x453fcb(0x247)+_0x43377b+_0x453fcb(0x508)+_0x43377b+_0x453fcb(0x2a9):'Feature\x20not\x20licensed:\x20'+_0x43377b+_0x453fcb(0x706)+_0x43377b+'\x22.';throw new _0x267094(_0xc802f5,_0x453fcb(0x5f5),{'feature':_0x43377b});},'assertLimit'(_0x1ee39d,_0x4717ab){const _0x43a5d9=_0x1fc1fa,_0x29a79d=_0x18b118();if(!_0x29a79d[_0x43a5d9(0x410)])return;const _0x5b8156=_0x29a79d[_0x43a5d9(0x22c)]?.[_0x1ee39d];if(_0x5b8156===null||_0x5b8156===undefined||_0x5b8156===0x0)return;if(_0x4717ab>=_0x5b8156){const {OKDBError:_0xbfd248}=requireErrors();throw new _0xbfd248(_0x43a5d9(0x425)+_0x1ee39d+'\x20('+_0x4717ab+'/'+_0x5b8156+')',_0x43a5d9(0x501),{'limit':_0x1ee39d,'current':_0x4717ab,'max':_0x5b8156});}},'listLicenses'(){const _0x54ecff=_0x1fc1fa;return _0x1d329b[_0x54ecff(0x21e)][_0x54ecff(0x48a)]();},'getPins'(){const _0x10d258=_0x1fc1fa;return _0x1d329b[_0x10d258(0x21e)][_0x10d258(0x48a)]()[_0x10d258(0x1c9)](_0x310655=>({'licenseId':_0x310655['id'],'pin':_0x310655[_0x10d258(0x4a6)]===_0x10d258(0x1c2)?null:_0x310655[_0x10d258(0x149)]}));}};}function _0x38e1d0(_0x267d26){const _0x403755=_0x175629,_0x31cda0=_0x7a388d(_0x267d26,_0x403755(0x1d3),_0x52408d);Object[_0x403755(0x236)](_0x31cda0,_0x403755(0x1be),{'get':()=>_0x267d26['_call'](_0x403755(0x1d3),null,_0x403755(0x1be),[],![])}),Object['defineProperty'](_0x31cda0,'rowKey',{'get':()=>_0x267d26[_0x403755(0x313)](_0x403755(0x1d3),null,'rowKey',[],![])}),_0x31cda0['_listenAddr']=null;const _0x22dae0=_0x31cda0['noteListenAddr'];_0x31cda0[_0x403755(0x158)]=_0x5753f4=>{const _0xf07193=_0x403755;return _0x31cda0[_0xf07193(0x5d4)]=_0x5753f4,_0x22dae0(_0x5753f4);};const _0x3b2d4d=()=>_0x31cda0[_0x403755(0x7c2)]()[_0x403755(0x1c9)](_0x1787cf=>({'key':_0x1787cf[_0x403755(0x45f)],'value':_0x1787cf,'version':0x1})),_0x5f0d81={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x34ef1f=>_0x34ef1f===_0x403755(0x520),'getRange':_0x58d4d3=>_0x58d4d3==='node'?_0x3b2d4d()[Symbol['iterator']]():[][Symbol[_0x403755(0x753)]](),'getKeys':_0x1d36e0=>_0x1d36e0===_0x403755(0x520)?_0x3b2d4d()[_0x403755(0x1c9)](_0x127607=>_0x127607[_0x403755(0x781)])[Symbol[_0x403755(0x753)]]():[][Symbol['iterator']](),'getValues':_0x4d2f9b=>_0x4d2f9b===_0x403755(0x520)?_0x3b2d4d()[_0x403755(0x1c9)](_0x4c07ce=>_0x4c07ce[_0x403755(0x2ff)])[Symbol[_0x403755(0x753)]]():[][Symbol[_0x403755(0x753)]](),'get':(_0x22a47d,_0x458289)=>_0x22a47d===_0x403755(0x520)?_0x3b2d4d()[_0x403755(0x777)](_0x5c2c75=>_0x5c2c75[_0x403755(0x781)]===_0x458289)?.[_0x403755(0x2ff)]:undefined,'getCount':_0xd28da8=>_0xd28da8===_0x403755(0x520)?_0x3b2d4d()[_0x403755(0x789)]:0x0};Object[_0x403755(0x236)](_0x31cda0,_0x403755(0x1ef),{'get':()=>_0x267d26['_call'](_0x403755(0x1d3),null,_0x403755(0x323),[],![])?_0x5f0d81:null});const _0x18040f=_0x31cda0[_0x403755(0x1c2)];_0x31cda0['open']=async _0x19fa80=>{const _0x483b8d=_0x403755;return await _0x18040f(_0x19fa80),_0x31cda0[_0x483b8d(0x1ef)];},_0x31cda0['_ensureDesired']=()=>_0x267d26[_0x403755(0x313)](_0x403755(0x1d3),null,_0x403755(0x5bb),[],!![]);const {RawDb:_0x410e68}=requireRawdb();return Object[_0x403755(0x236)](_0x31cda0,_0x403755(0x183),{'get':()=>_0x267d26['_systemEnv']?_0x31cda0[_0x403755(0x28e)]||=new _0x410e68(_0x267d26[_0x403755(0x784)],_0x403755(0x739)):undefined}),Object[_0x403755(0x236)](_0x31cda0,'_cmd',{'get':()=>_0x267d26[_0x403755(0x784)]?_0x31cda0['__cmd']||=new _0x410e68(_0x267d26['_systemEnv'],_0x403755(0xd1)):undefined}),_0x31cda0['isActive']=()=>_0x267d26[_0x403755(0x313)](_0x403755(0x1d3),null,_0x403755(0x4ca),[],![]),Object[_0x403755(0x236)](_0x31cda0,_0x403755(0x506),{'get':()=>_0x267d26[_0x403755(0x313)](_0x403755(0x1d3),null,_0x403755(0x15f),[],![])}),Object['defineProperty'](_0x31cda0,'_isReader',{'get':()=>_0x267d26[_0x403755(0x313)]('processes',null,_0x403755(0x49c),[],![])}),_0x31cda0[_0x403755(0x123)]=()=>_0x267d26[_0x403755(0x313)](_0x403755(0x1d3),null,'buildOwnRow',[],![]),_0x31cda0[_0x403755(0x17f)]=(_0x27d3cc,_0x12f7f7)=>_0x267d26[_0x403755(0x313)](_0x403755(0x1d3),null,_0x403755(0x6d9),[_0x27d3cc,_0x12f7f7],![]),_0x31cda0;}return sys={'makeMeta':_0x1f1001,'makeLicenses':_0x1d55fd,'makeLicenseChecker':_0x57b580,'makeProcesses':_0x38e1d0},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x30b3f6=_0x30747f;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x28077b={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x47d078{constructor(_0xa2af5c){const _0x3b8fa4=_0x5ce2;this[_0x3b8fa4(0x22a)]=_0xa2af5c,this['_sinks']=new Set(),this[_0x3b8fa4(0x368)]={};}[_0x30b3f6(0x5c4)](_0x2c35b1){const _0x1939c7=_0x30b3f6,_0x2dc255=new _0x47d078(this[_0x1939c7(0x22a)]);return _0x2dc255[_0x1939c7(0x2bf)]=this[_0x1939c7(0x2bf)],_0x2dc255[_0x1939c7(0x368)]={...this[_0x1939c7(0x368)],..._0x2c35b1},_0x2dc255;}[_0x30b3f6(0x22b)](_0x2cb5d7){const _0x45b6ce=_0x30b3f6;return this[_0x45b6ce(0x2bf)][_0x45b6ce(0x3e2)](_0x2cb5d7),()=>this[_0x45b6ce(0x2bf)]['delete'](_0x2cb5d7);}[_0x30b3f6(0x1a9)](){const _0x6fe71=_0x30b3f6,_0x1dd006=_0x28077b[process.env.OKDB_LOG_LEVEL]??_0x28077b['info'];return this[_0x6fe71(0x3d6)]=this[_0x6fe71(0x22b)](({level:_0x50489e,msg:_0x3bb1e5,meta:_0x2e85d1,context:_0x17060d,ts:_0x3d6828})=>{const _0x26dde0=_0x6fe71;if((_0x28077b[_0x50489e]??_0x28077b[_0x26dde0(0x41f)])<_0x1dd006)return;if(_0x2e85d1?.['feature']==='functions'&&(_0x50489e===_0x26dde0(0x41f)||_0x50489e===_0x26dde0(0x117)))return;const _0x3045fa=_0x50489e==='error'?console['error']:_0x50489e==='warn'?console[_0x26dde0(0x266)]:_0x50489e==='info'?console[_0x26dde0(0x41f)]:console[_0x26dde0(0x54d)],_0x35846a=_0x2e85d1&&Object['keys'](_0x2e85d1)[_0x26dde0(0x789)]>0x0;_0x35846a||_0x17060d!==undefined?_0x3045fa(new Date(_0x3d6828)[_0x26dde0(0x479)](),_0x3bb1e5,..._0x35846a?[_0x2e85d1]:[],..._0x17060d!==undefined?[_0x17060d]:[]):_0x3045fa(new Date(_0x3d6828)['toISOString'](),_0x3bb1e5);}),this[_0x6fe71(0x3d6)];}[_0x30b3f6(0x555)](){const _0x4b74e4=_0x30b3f6;this['_detachConsole']&&(this[_0x4b74e4(0x3d6)](),this[_0x4b74e4(0x3d6)]=null);}['attachOKDB'](_0x1bb564,_0x244c0c){const _0x47cced=require$$0$4,_0x47a576=0x1f4,_0x17e65b=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x5e9976=[],_0x4cb34d=0x0,_0x766243=null;const _0x50dc4c=()=>{const _0x18aa9b=_0x5ce2;_0x766243=null;if(_0x5e9976['length']===0x0)return;const _0x3ee3c=_0x5e9976;_0x5e9976=[],_0x4cb34d>0x0&&(_0x3ee3c['push']({'ts':Date[_0x18aa9b(0x2aa)](),'level':_0x18aa9b(0x266),'msg':_0x18aa9b(0x64b)+_0x4cb34d+_0x18aa9b(0x200)+(_0x4cb34d===0x1?'y':'ies')+_0x18aa9b(0x4d7),'feature':_0x18aa9b(0x54d),'node':_0x244c0c,'context':null}),_0x4cb34d=0x0),_0x1bb564[_0x18aa9b(0xb8)](_0x498777=>{const _0x44a753=_0x18aa9b;for(const _0x384c58 of _0x3ee3c)_0x498777[_0x44a753(0x629)](_0x44a753(0x63a),_0x47cced[_0x44a753(0x472)](),_0x384c58);})['catch'](()=>{});},_0x22cb6b=this['attach'](({level:_0x1e5ae7,msg:_0x444593,meta:_0x10ca88,context:_0xa75ac2,ts:_0x34474f})=>{const _0x4527b1=_0x5ce2;if(_0x1e5ae7==='debug')return;_0x5e9976[_0x4527b1(0x789)]>=_0x47a576&&(_0x4cb34d++,_0x5e9976[_0x4527b1(0x311)]()),_0x5e9976[_0x4527b1(0x235)]({'ts':_0x34474f,'level':_0x1e5ae7,'msg':_0x444593,'feature':_0x10ca88?.['feature']??_0x10ca88?.[_0x4527b1(0x4fc)]??null,'node':_0x244c0c,'context':_0xa75ac2??null}),!_0x766243&&(_0x766243=setTimeout(_0x50dc4c,_0x17e65b),_0x766243['unref']?.());});return()=>{_0x22cb6b();if(_0x766243)clearTimeout(_0x766243);_0x50dc4c();};}[_0x30b3f6(0x2e4)](_0x5319f7,_0x577854,_0x3b8dec){const _0x2ecfcb=_0x30b3f6;_0x577854 instanceof Error&&(_0x3b8dec={'message':_0x577854['message'],'stack':_0x577854[_0x2ecfcb(0x143)],..._0x3b8dec},_0x577854=_0x577854[_0x2ecfcb(0x362)]);const _0xcf478={'level':_0x5319f7,'msg':_0x577854,'meta':{...this[_0x2ecfcb(0x368)]},'context':_0x3b8dec,'ts':Date['now']()};try{this[_0x2ecfcb(0x22a)][_0x2ecfcb(0x599)][_0x2ecfcb(0x4eb)](_0x2ecfcb(0x54d),_0xcf478);}catch{}for(const _0x83db28 of this[_0x2ecfcb(0x2bf)]){try{_0x83db28(_0xcf478);}catch{}}}[_0x30b3f6(0x40c)](_0x4c8fe2){const _0x460f09=_0x30b3f6;try{this['okdb']?.[_0x460f09(0x599)]?.[_0x460f09(0x4eb)](_0x460f09(0x54d),_0x4c8fe2);}catch{}for(const _0xceec03 of this[_0x460f09(0x2bf)]){try{_0xceec03(_0x4c8fe2);}catch{}}}[_0x30b3f6(0x41f)](_0x35a062,_0x12432c){const _0x3a818f=_0x30b3f6;this[_0x3a818f(0x2e4)](_0x3a818f(0x41f),_0x35a062,_0x12432c);}['warn'](_0x202aab,_0x1a1834){const _0x14672c=_0x30b3f6;this[_0x14672c(0x2e4)](_0x14672c(0x266),_0x202aab,_0x1a1834);}[_0x30b3f6(0x373)](_0x1adae6,_0x15431a){const _0x3b5ae2=_0x30b3f6;this[_0x3b5ae2(0x2e4)](_0x3b5ae2(0x373),_0x1adae6,_0x15431a);}[_0x30b3f6(0x117)](_0x4a5472,_0x221cae){const _0x7430f5=_0x30b3f6;this[_0x7430f5(0x2e4)](_0x7430f5(0x117),_0x4a5472,_0x221cae);}}return okdbLogger=_0x47d078,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0xc9e697=_0x30747f;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x1552fd}=requireOkdbEnums(),{OKDBError:_0x51d422}=requireOkdbError();class _0xcfd93a{constructor(_0xa5cf0b){const _0x2ba605=_0x5ce2;this[_0x2ba605(0x22a)]=_0xa5cf0b,this['_plugins']=[];}[_0xc9e697(0x3a3)](_0x1e460a,_0x37308d){const _0x1e1129=_0xc9e697;if(this[_0x1e1129(0x22a)][_0x1e1129(0x8e)]!==_0x1552fd[_0x1e1129(0x178)])throw new _0x51d422('Cannot\x20register\x20plugins\x20after\x20start',_0x1e1129(0xea),{'state':this[_0x1e1129(0x22a)]['state']});if(!_0x1e460a[_0x1e1129(0x219)])throw new _0x51d422('Plugin\x20must\x20have\x20a\x20name',_0x1e1129(0xeb),{'plugin':_0x1e460a['name']});const _0x3c0e9c=_0x1e460a[_0x1e1129(0x44b)]??[];for(const _0x302d99 of _0x3c0e9c){if(!this[_0x1e1129(0x61b)][_0x1e1129(0x3ff)](_0x23e121=>_0x23e121[_0x1e1129(0x4fc)]['name']===_0x302d99))throw new _0x51d422('Missing\x20plugin:\x20'+_0x302d99+'\x20(required\x20by\x20'+_0x1e460a[_0x1e1129(0x219)]+')',_0x1e1129(0x224),{'required':_0x302d99});}if(this[_0x1e1129(0x61b)][_0x1e1129(0x777)](_0x8f53a9=>_0x8f53a9[_0x1e1129(0x4fc)]['name']===_0x1e460a['name']))throw new _0x51d422(_0x1e1129(0x3ea)+_0x1e460a['name']+_0x1e1129(0x4c1),'PLUGIN_ALREADY_REGISTERED',{'plugin':_0x1e460a[_0x1e1129(0x219)]});if(_0x1e460a[_0x1e1129(0x219)]in this[_0x1e1129(0x22a)])throw new _0x51d422('Plugin\x20name\x20\x27'+_0x1e460a[_0x1e1129(0x219)]+_0x1e1129(0x4d3),'PLUGIN_NAME_CONFLICT');const _0x5e41e2=_0x1e460a[_0x1e1129(0x3a3)](this['okdb'],_0x37308d);if(!_0x5e41e2||typeof _0x5e41e2!==_0x1e1129(0x12c))throw new _0x51d422('Plugin\x20\x27'+_0x1e460a['name']+_0x1e1129(0x40e),_0x1e1129(0xeb),{'plugin':_0x1e460a[_0x1e1129(0x219)]});this[_0x1e1129(0x61b)]['push']({'module':_0x1e460a,'options':_0x37308d,'instance':_0x5e41e2});}[_0xc9e697(0x616)]=[];async[_0xc9e697(0x297)](){const _0x13fa6a=_0xc9e697;try{for(const _0x9736e of this[_0x13fa6a(0x61b)]){await _0x9736e['instance'][_0x13fa6a(0x297)]?.(this['okdb']),this[_0x13fa6a(0x616)][_0x13fa6a(0x235)](_0x9736e);}}catch(_0x1e97db){await this['stop']()[_0x13fa6a(0x62a)](()=>{});throw _0x1e97db;}}async['stop'](){const _0x46c4cb=_0xc9e697,_0x4b79f4=this[_0x46c4cb(0x616)][_0x46c4cb(0x5e3)]();this['_started']=[];let _0x4693d5=null;for(const _0x32702a of _0x4b79f4){try{await _0x32702a[_0x46c4cb(0x647)][_0x46c4cb(0x533)]?.(this['okdb']);}catch(_0x54d20d){_0x4693d5??=_0x54d20d;}}if(_0x4693d5)throw _0x4693d5;}}return okdbPlugins=_0xcfd93a,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x2bd81e=_0x30747f;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x3f055b={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x2bd81e(0x33a)},_0x5c73f7=new Set([_0x2bd81e(0x3bd),'pageSize',_0x2bd81e(0x2c4),'encryptionKey',_0x2bd81e(0x1ad),_0x2bd81e(0x76c),_0x2bd81e(0x5a2),_0x2bd81e(0x4cf),_0x2bd81e(0x1c6),_0x2bd81e(0x293),'sync','queue','functions',_0x2bd81e(0xc0),_0x2bd81e(0x759),_0x2bd81e(0x36f),_0x2bd81e(0x54d),_0x2bd81e(0x5cc),_0x2bd81e(0x34a),'engines',_0x2bd81e(0x246),'compaction',_0x2bd81e(0x1d3),_0x2bd81e(0x347),_0x2bd81e(0x623),_0x2bd81e(0x668),_0x2bd81e(0x26a),_0x2bd81e(0x117),_0x2bd81e(0x4b5),_0x2bd81e(0x274)]),_0x21553c={'http':_0x2bd81e(0x468)};return statics={'defaults':_0x3f055b,'KNOWN_OPTIONS':_0x5c73f7,'_OPTION_HINTS':_0x21553c},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0xe20ccf=_0x30747f;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x1d8609=require$$0$2,_0x1cefb6=_0xe20ccf(0x20a),_0x39d58a=_0x1d8609[_0xe20ccf(0x469)]('sha256')[_0xe20ccf(0x4a7)](_0x1d8609['createPublicKey'](_0x1cefb6)[_0xe20ccf(0x755)]({'type':_0xe20ccf(0x52b),'format':_0xe20ccf(0x2e3)}))[_0xe20ccf(0x7a2)](_0xe20ccf(0x1ee))['slice'](0x0,0x10),_0xfa39c={'LICENSED_BUILD':_0xe20ccf(0x45e),'PUBLIC_KEY_PEM':_0x1cefb6,'PUB_FINGERPRINT':_0x39d58a,'LICENSE_EXPIRED_ACTION':_0xe20ccf(0x54d)};return licenseConfig={'_C':_0xfa39c,'PUBLIC_KEY_PEM':_0x1cefb6,'PUB_FINGERPRINT':_0x39d58a},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x17bf7f=_0x30747f;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x4e86cb=require$$0$5,{OKDBError:_0x4a6f8e}=requireOkdbError(),_0x55a1ca=['$eq',_0x17bf7f(0x2f9),_0x17bf7f(0x14e),_0x17bf7f(0x690),_0x17bf7f(0x4d2),_0x17bf7f(0x130),_0x17bf7f(0x3d9),_0x17bf7f(0x3da),_0x17bf7f(0x75a),'$regex','$options',_0x17bf7f(0x483),'$size','$all','$type',_0x17bf7f(0x657),_0x17bf7f(0x4be),_0x17bf7f(0x480),'$or',_0x17bf7f(0xcf)],_0x1d317d=[_0x17bf7f(0x308)];function _0x1ef57e(_0x4ffe37){return()=>{const _0x30aeec=_0x5ce2,_0x21d02f=new _0x4a6f8e('Query\x20operator\x20\x22'+_0x4ffe37+_0x30aeec(0x9e),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x4ffe37});_0x21d02f[_0x30aeec(0x5e5)]=0x190;throw _0x21d02f;};}const _0x435d3f=Object[_0x17bf7f(0x71f)]({...Object['fromEntries'](_0x55a1ca[_0x17bf7f(0x1c9)](_0x6607cc=>[_0x6607cc,_0x4e86cb[_0x6607cc]])),...Object['fromEntries'](_0x1d317d[_0x17bf7f(0x1c9)](_0x1e813a=>[_0x1e813a,_0x1ef57e(_0x1e813a)]))});function _0x44740b(_0x1c508d){const _0x2aaf63=_0x17bf7f;return _0x4e86cb[_0x2aaf63(0x2b7)](_0x1c508d,{'operations':_0x435d3f});}function _0x80872b(_0x29c807){const _0x494df2=_0x17bf7f;if(_0x29c807==null)return;try{_0x44740b(_0x29c807);}catch(_0x4923e2){if(_0x4923e2?.[_0x494df2(0x182)]===_0x494df2(0x2fc))throw _0x4923e2;}}return okdbQueryFilter={'compileFilter':_0x44740b,'assertFilterAllowed':_0x80872b,'ALLOWED_OPERATORS':_0x55a1ca,'FORBIDDEN_OPERATORS':_0x1d317d},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function _0x17ed(){const _0xd578a=['customReducerNames','resetting','OKDBIndexAlreadyRegisteredError','_wsettle','resumeOpts','_isLoopbackIp','size','tryAcquire','dataEnv','view\x20\x22','releaseClaim','_dedupeMax','repairBlobRefs','embedder\x20request\x20still\x20pending','_settle','_durableIndexerDocs','\x22:\x20the\x20build\x20another\x20process\x20took\x20over\x20made\x20no\x20progress\x20for\x2010\x20min','streamByHash','fts','okdb._openEnvLazy:\x20env\x20\x22','consumeLoginState','dirty','_keyListener','retry_delay','hasChangelog','_wrap','index:','invalid\x20log\x20level:\x20','embed-worker','_quantumGate','Engine\x20driver\x20already\x20registered:\x20\x22','upload','admission','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','EMBEDDER','dropped','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','_logChange','$gte','envNames','_changeToClockDb','TXN_CLOSED','action','entries','relay:error','getIndexMeta','indexer\x20engine\x20not\x20running:\x20\x22','updateBucket','assertCreateAllowed','tag\x20too\x20long','EMBED_PENDING','pid','iterable','encoder','_ttlBackoffUntil','_path','listRecords','getFloat64','\x22\x20not\x20found','origin','mkdirSync','_detachLogSink','INDEX_ALREADY_REGISTERED','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','__okdb','use','_ackDb','empty\x20string','bucket\x20\x22','setJobTypeSchema','diag','createEngine','FTS_BUILD_CONTINUE','ENCRYPTION_KEY_REQUIRED','body','isFinite','_isExpired','unpack','ms\x20mean=','indexStats','_begin','debounceTimer','_settleWaiters','\x20references\x20','bucket.tokens\x20must\x20be\x20int\x20>=\x200','patchConfig','_scheduleTTLSweep','HTTP_CLUSTER_REMOVED','ref','_envs','pauseAllAndDrain','ALL_EVENTS','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','listening','normalizeOAuthAuthResult','refreshThresholdMs','storeGetTotalHeadCount','system:drain','catalog','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','stderr','assertStartAllowed','build','draining','_status','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','recomputeFields','_resolveKeys','callRows:\x20unexpected\x20row\x20stride\x20','_keepAlive','emitProc','_warnUnknownOptions','sweepOrphanLogs','paused','registerHandler','values','end','remote','node:path','newListener','logCap','destroy','loginSelect','ERROR','storeEnv',':data','created','stopHandle','actions','ttlSetEntry','import','_startAdmission','encryption:key-changed','resetCursor','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','_indexBuilds','parseBearer','isNaN','algorithm\x20has\x20no\x20method\x20','views','callAsync','payload_schema','detach','patchDeclaration','clearTTL','envSize','items','registerChunkStrategy','takeCompactResult','claim_id','maxConnections','max','getDefinition','unregisterExtractor','engineType','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','enableNullTermination','_draining','uploadTxn','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','dropAll','_indexBuild','path','unresolveField','_changefeed','fts:','env:opened','\x20│\x20','offset',':clockToChange','clearDefaultTTL','ensureFeed','fromCharCode','grouped','commit','waiting','must\x20be\x20an\x20object;\x20got\x20null','allocUnsafeSlow','queue:done','_awaitBuild','freeze','payload','busState','setModeApplied','_ttlByKey','_claimGated','drain','encryptionKey','servers','onDelete','record','buildStep','_clearTTL','resolveBackupDest','application/octet-stream','processor:\x20quantum.module\x20must\x20be\x20a\x20string','_feed','authOpen','item','errors','_undoHooks','refill_amount','__adminRelay','a\x20string','bucket.updated\x20must\x20be\x20number','_resolveFilter','~processes:desired','vec:','has','REVERSE_INDEX','_push','turn','returnRecoverableErrors','node:stream','inactive','Invalid\x20onDelete\x20rule\x20\x27','markJobComplete','prototype','lock','_typeKeys','timer','job.error_stack\x20must\x20be\x20string|null','viewDb','typeId','running','describeAllTypesDetailed','registerExtractor','inputSchema','markJobHeartbeat','process(filter)','onDo','ALREADY_EXISTS','iterator','lockHeld','export','args','encryption\x20key\x20function','enabled','mcp','$exists','_sweepOrphanLogs','idempotency_key','cookies','embed','clocks','setDeltaLimit','removeSync','_logsDb','engines','raw','mode','_durableIndexerDoc','_closed','from','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','pinned','DOC_STATUS_CHANGE','mapSize','params','getStats','stringify','spec','recordRun','OKDBInvalidIndexKeyError','importFromStream','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','syncLock','nativeBinaryPath','find','~fts:envs','item:','resetIndexBegin','log\x20entry\x20fields\x20must\x20be\x20object|null','$payload','array','cancelJob','okdb.noFast','VERSION_MISMATCH','key','session','hasEmbedderFactory','_systemEnv','_listeners','createSearch','_ttlState','max_tries','length','nidFor','ITEM_CREATE','indexOf','allSettled','_locks','field:resolver_registered','preparer\x20must\x20be\x20a\x20function','system:bus_state_change','family','_startAutoCompactCheck','total','Storage\x20resolver\x20must\x20be\x20a\x20function','_settleWrite',',\x20got\x20','isBun','stopAutoCompactCheck','sift','killWorker','_tools','plugins','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','_setTTLEntry','3.1.10','syncBlobs','digest','ensure:\x20type\x20is\x20required','version','TXN_ROLLBACK','hasType','equal','node:crypto','alg','Invalid\x20primary\x20key\x20type:\x20','updated_at','hasBody','\x22\x20on\x20\x22','dup','_hlc','processor:\x20rebuild\x20must\x20be\x20a\x20function','write\x20batch:\x20missing\x20result','_workers','regInfo','_debounceTimer','outgoing','ensureType','nativeCode','describeAllTypes','job.buckets[].id\x20must\x20be\x20non-empty\x20string','resume','getMeta','_write','job.bucket_tokens\x20must\x20be\x20int\x20>=1','INDEX_PROGRESS','bucket.tokens\x20cannot\x20exceed\x20capacity','number','OKDBIndexHasConsumersError','listNodes','reconcileDesired','ctxLog','_cursors','resolveField:\x20type\x20required','inflight','iterate','schema:set','system','cause','cleanup','_admissionTimer','storeGetDiffsInRange','use\x20engines.registerDriver()','NOT_IMPLEMENTED_NATIVE','settledTickets','cursorKey','let\x20position;\x20let\x20readString\x20=\x20','mapError','isArray','changeToClockDb','async','_makePipelineApi','_lookupByTokenHash','isDeepStrictEqual','hash','addSSE','Can\x20not\x20serialize\x20key\x20of\x20type\x20','_subsV2','_native','lookupAllByName','state','setPeerState','delta_limit','_shouldApplyChange','failures','NativeLock','OKDBNotFoundError','compactPending','registerAlgorithmFactory','writerStatus','_timerHandle','getSecurityNotices','_sync','lookupByTokenHash','describeIndexes','\x20>=\x200x80)\x20','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','ensureTypeEnv','algorithm\x20is\x20gone','_durableIndexerStats','\x20of\x20env\x20\x22','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','_features','_ringSize','dropType','storeHasDiff','Buffer','_writerWatchdogInterval','enable','files','__blobStatusDb','$within','removeInterest','create','BAD_HOST','bucket\x20too\x20long',';return\x20{','parse','\x27:\x20','resolveField','countByIndex','match','txn','1255396YvpJfp','taken','orchestratorStarted','TXN_START','token','hasEnv','tag','timeMachine','_ack','patchSelf','host','set','_nextExpiry','createIndexer','lastError','setBridge','context','addJobType','clone','processorsStop','listTemplates','setTTL','$nor','guardSnapshotIterable','~processes:cmd','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','trunc','flushQuantum','address','job_type.payload_schema.definition\x20must\x20be\x20object','stats','_buffer','isSync','_key','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','startIndex','assign','setFlushNotify','getOpenWarning','_adminRelay','jsonrpcCode','/?$','openEnv','_maxConnections','_normalizeOAuthAuthResult','compare','root','sync:apply','note','INVALID_STATE','BAD_PLUGIN','_isOpenForIp','near','ENGINE_INVALID_TYPE','isLoopbackIp','queue:log','6743184eowUqE','registerReducer','exportBlobs','acquired','_pdb','Database\x20already\x20opened/closed','maxExtra','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','listModels','getJobLogs','_handleInProcess','chunk\x20strategy\x20must\x20be\x20a\x20function','restrict','last','_stops','FOREIGN_KEY_DELETE_RESTRICTED','runDrop','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','_license','__stateDb','getKeys','slice','details','cascade','getIndexStatus','durableMarkDelete','~processes','findOwner','embedder','retry','awaitIdle','.\x20Valid:\x20','_running','durableRebuild','exportToStream','lastTxnId','handleResult','includes','debug','node:util','getIndexCount','item:remove','getRefViolation','job.type\x20must\x20be\x20non-empty\x20string','setPrototypeOf','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','sync','readString\x20}','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','inBatch','_buildOwnRow','apiCall','function','REMOVE','standalone','STOPPED','mean','repair','_stateDb','object','createWriteStream','_lazyPinned','runRecord','$lte','range','_addr','7220376OxsTbt','_modeApplied','buckets','license:invalid','resetIndex','schema:drop','enqueue','queue.worker(\x27','resetFts','isBootstrap','_subsV2Obj','Symbol.asyncIterator','_allEnvsWithFiles','stopWorkerBegin','importJSON','refs','stack','transaction\x20commit\x20failed','READER_HELD_ACROSS_AWAIT','creating','areIndexesReady','gc.','pin','_flushTimer','getClock','_fail','~fts:','$gt','_macro','embedBatch','listBuckets','flushTicket','processor:ready','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','delete','_isFar','_role','noteListenAddr','queue:reconciled','getLegacyCursor','job_type.','resolvedFields','attachFeed','setFilter','isWriter','resumeAllAfterDrain','_jsFactories','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','callRows','Unsupported\x20transaction\x20action:\x20','addEventListener','getTypeCount','txn-commit','buildPending','ctrl','abs','authenticateToken','setInt32','autoCompactState','_oauthConfig','cursor','_onPending','_handlePending','_rootDb','definition','_root','types','unreg','STARTED','CREATED','turnWaiters','kick','listRefViolations','doc','_getOidcDiscovery','markJobFail','_emitProc','reconcilePeer','claim\x20requires\x20non-empty\x20type','code','_desired','maxBodyBytes','removeResolver','_ensure','_validateOidcAccessToken','_build','notes','_blobStream','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','subscribe','undefined','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','job.cron\x20must\x20be\x20string|null','http','tools','vectorStoreStats','finish','turns','node:fs','removed','_assertOpen','localViewStats','endsWith','limitOf','ENGINE_DRIVER_ALREADY_REGISTERED','_subscribed','listAlgorithms','clearSync','_OPTION_HINTS','halted','oauth','appendJobLog','system:env-sync','handler','off','createLoginState','node:perf_hooks','_release','attachConsole','bulkRemoveChunk','system:clock_change','refill_every','encryptionKeys','setMaxListeners','listViolations','listJobTypes','lastClock','isIndex','getAuthOptions','byteOffset','tolerant','processorsStatus','compactLock','node:http','processor:retry','immediate','unref','trim','instanceTimerArmed','selfKey','_ensureEnv','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','_peerDb','open','setDefaultTTL','asArray','bootSyncedViews','lmdb','patch','login','map','drives','includeViolations','startClaimed','ttl:expired','OKDBSchemaCollectionError','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','_gcTimer','createWriteFacade','ref:violation_resolved','processes','bus:env_release','features','guard','_advanceHlcOnRecv','SUB_ENV','clearScan','bootstrapStartClock','_onItem','dropFts','replaceMember','STARTING','actionCount','job_type.defaults\x20must\x20be\x20object|null','4cFgQWL','setAddress','exclusiveStart','ExtendedIterable','subsBuilt','_cancelTTLTimeout','done_ttl','_registrations','meta','_np','upsertLink','getResolvedOptions','_clearChunked','hex','_statusEnv','_startClaimedSoon','__HOLD__','samplePayloads','encryption\x20key\x20function\x20failed:\x20','batch','compactStorage','closeSession','removeJobLogsAfterCommit','Unknown\x20transaction\x20action:\x20','count','processor:error','Embedder\x20factory\x20for\x20\x22','get','_writer','pump','validateRouteInput','\x20log\x20entr','ctxUpdateStatus','system:poke','INDEX_HAS_CONSUMERS','_commitSessionMutation','registerEmbedderFactory','partially-ready','ctxEmit','free','__syncOverride','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','drainJobType','_setKey','existing','RELAY_FULL','isWorker','intervalTimer','bootRuntime','_staticCall','forEach','json','_viewRebuildChain','_tickCallback','tick','getNodeRecord','name','job.status_message\x20must\x20be\x20string|null','__notImplementedNative','change','_lock','licenses','__ref_index','min',':\x20expected\x20','durableTierLag','durableEmbedderInfo','PLUGIN_DEPENDENCY_MISSING','\x22\x20tokens\x20too\x20large','item:update','indexer','pipelines','formerOrigins','okdb','attach','limits','_readerCheckInterval','inline','hasUniqueViolations','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','created_at','HIGH_FREQ_EVENTS','createPipeline','txnUndone','push','defineProperty','runPoll','-worker','abort','fromBufferKey','listIndexKeys','driver','queue','advanceHlcOnRecv','tries','OKDBTypeNotRegisteredError','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','Environment\x20\x22','resumed','_id','hasDriver','processors','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','OKDBTypeAlreadyRegisteredError','deleted','_durableEmbedderInfo','fetchRemoteDelta','job.priority\x20must\x20be\x20int','fts:registered','getInt32','_getType','removeEnvironment','_writeBlob','isInteger','TypeError','~files','processEverything()','Type\x20\x27','forgetDb','storePayload','stopped','fromEntries','doc_status:','INACTIVE','resetViewBegin','_report','_assertRangeOptions','calculateDelta','_setPeerState','processor:\x20module.path\x20is\x20required','\x22\x20must\x20have\x20a\x20start()\x20method','SEARCH','656517PgsXEq','warn','Schema\x20validation\x20failed\x20for\x20','_runRecord','_makeIterator','subscriptions','indexReady','registerType','disable','okdb-node:\x20unknown\x20bridge\x20op\x20','makeOkdb','registerBucketProjection','callStatic','type:registered','durableMarkFail','backup','setClaiming','HTTP\x20server\x20already\x20running','header','processor','geoQuery','pipeline','_isOpen','getChanges','inclusiveEnd','__lock','validateOidcAccessToken','ctxSignal','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','flush','fields','isBuffer','_nm','searchWithScores','targetKey','$streamId','9207171ClxFIo','byteLength','OKDBInvalidPrimaryKeyError','_deliverEvent','killAll','__desired','setKick','removeBucket','max_concurrency','Date','auth','indexContent','capacity','tokens','start','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','_tids','_sub','__tokenSecret','ctxProgress','bucket\x20id\x20required','getOidcDiscovery','reidentify','backoff_multiplier','exportName','removeEventListener','limit','\x20does\x20not\x20exist','offsetOf','emb','inNativeCall','fail','\x22\x20to\x20enable\x20it.','now','dbs','onDone','sseClose','flatMap','bridge','release','engine','utf8','getBucket','10MwsfOm','Cannot\x20openEnv(\x22','job.bucket\x20must\x20be\x20string|null','createQueryTester','listTypes','bind','addRaw','processorsStart','status_message','~queue_jobs','bootSyncedEngines','_sinks','describeTypeDetailed','_run','readerCheck','existsSync','compression','_searchWithScores','HTTP\x20','~system','refTrackingDbs','ms\x20busy=','system:env_release','queue:clear-progress','BAD_PARAM','files.upload:\x20stream','\x0a\x09\x09let\x20','reencrypt','storeEnvName','durableMarkDone','pressure','_blobPath','job.idempotency_key\x20must\x20be\x20string|null','setAutoCompact','_refCache','_db','isWanted','targetType','_pendingLocal','_makeLazyVectorAdapter','uninstallEngine','setLastClock','_openEnvLazy','_drainOne','vecRemove','_awaitPeerBuild','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','der','_emit','node:cluster','hasApi','valuesForKey','_ensureDbs','_afterDurable','setPosition(p)\x20{\x20position\x20=\x20p\x20},','_closedHandle','buildsPending','setSchema','\x27\x20on\x20type\x20\x27','_asArray','written','issueToken','durableRetryFailed','VIEW_BUILD_FAILED','select','field\x20resolver\x20request\x20still\x20pending','IPv4','_buckets','send','$ne','engineStop','captureStackTrace','QUERY_OPERATOR_FORBIDDEN','join','fetchPeer','value','vector-search','_store','preview','refreshTtlBatch','_rebuilding','FIELD_RESOLVER_PENDING','connected','\x20must\x20be\x20','$where','ttlMs','removeJobType','sweepExpiredTTL','write','ttlStats','read','addBucket','view:progress','shift','getRunningEngine','_call','sortedDb','endIndex','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','err','doesExist','process(entries)\x20requires\x20at\x20least\x20one\x20entry','hlc','setPeersFn','starting','processor:\x20module\x20\x27','puts','no_action','reg','REF_VIOLATION','ttl:set','statusOpen','OKDBIndexNotRegisteredError','previewTemplate','env','markSnapshotComplete','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','TXN_ENV_MISMATCH','logChange','INVALID_PRIMARY_KEY','attachOKDB','clock','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','__after','replace','getGcHorizon','charCodeAt','_facade','DEFAULT_TTL_MS','useReadTransaction','gen','resolveModelDims','bucketsDb','Array.from)\x20before\x20any\x20await.','balanced','callPacked','_clockToChangeDb','detachFeed','getSchema','_refIndexDb','_isClosedEnvError','getJobType','(?:/(.*))?','listTTL','ttl','ms/','snapshot','autoCompact','_ensurePeerState','_patch','readerCheckIntervalMs','evict','listen','nextTick','embeddings:indexer:ready','_autoCompactTimer','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','type:','setTtl','registerQuantum:\x20load\x20must\x20be\x20a\x20function','bucket.capacity\x20must\x20be\x20int\x20>=\x200','boolean','log\x20entry\x20message\x20required','empty\x20array','getEntry','privateKey','_pendingOps','_timerObjs','Too\x20many\x20concurrent\x20connections',')\x0a\x09\x09}\x0a\x09\x09','envName','encodeInto','useVersions','unpin','message','exportEnvsBuf','concat','_txnBuf','$pending','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','_meta','getEngine','~ttl:expiry','_openLocalPeerDb','pendingResponses','runtimeState','drivers','runtimeDeclarations','ensurePeerState','byIndex','createWorker','error','unique:violation_resolved','ringSize','forceResync','addInterest','_attached','new','(?:','gateQuanta','failed','_ttlTimerAt','getSelfNode','signal','backupRoot','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','txnId','rollback','groupsDb','embeddings:indexer:doc:failed','getUniqueViolation','disableAll','failed_ttl','registerViewReducer','forceAfterMs','_settled','listProviders','wake','isTypeEmpty','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','port','getTemplate','view','keys','busEmit','string','routes','pumping','reconcile','_ttlParseComposite','TXN_INVALID_ACTION',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','_readBuf','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','_connections','55tMMNTJ','txn:rollback','snapshotScan','_jsSchemas','register','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','worker','registerFts','remoteAddress','(worst\x20','searchDocs','getVector','flushPoll','Invalid\x20index\x20key\x20type\x20for\x20\x27','sessionId','failJob','_seen','_autoCompact','_pressure','importFromFile','registerQuantum','announceEnqueued','health','storeGetHeadCount','storageStats','throw','apply','itemsPlan','node:events','_readViewExpired','maxDbs','finished','defaults','FOREIGN_KEY_VIOLATION','engine:','resumeJobType','sseSetHeader','call','typeStats','1808389CsKDYm','fingerprint','_callMacro','bus','durableStats','IPv6','__ttlByKey','\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','filter','__fts:','getFast','\x20=\x20source[position++]\x0a\x09\x09if\x20(','storeEnvPath','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','onUndo','claim_expires','_detachConsole','subarray','\x22\x20requires\x20a\x20`handler`\x20function','$in','$nin','DONE','a\x20non-empty\x20string','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','clearDone','SCHEMA_COLLECTION_INVALID','RangeError','claim','add','hasNativeBatch','_log','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','registerModel','QUEUE_WORKER_REMOVED','Server','_closeReadTransaction','Plugin\x20\x27','envs','ensureTokensType','\x20must\x20be\x20number','stopAll','REBUILD_IN_PROGRESS','dims','_waitNative','_ttlCompositeKey','links','createEnvironment','_compactLock','T_INTEREST','_http','compactBegin','unique','durableClock','isSnapshotComplete','bootSyncedViewsInline','txn\x20ops\x20must\x20be\x20an\x20array','_txnIdAtSnapshot','some','resolvedOptions','_reconcile','_openAckDb','dataView','\x27\x20does\x20not\x20exist','WORKERS_REMOVED','resolution','publicKey','versions','registerIndex','process','listVectorStores','ingest','_flushIntervalTimer','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','SYSTEM_POKE','enforced','uninstall','listBlobStatus','handle','authenticated','_getFast','extend','(source)\x20=>\x20{','toBufferKey','next','getDefaultTTL','~emb:models','docEntry','options','registerTarget','info','$defs','signalWant','ttlTimer','fieldPath','drainDeadlineMs','License\x20limit\x20exceeded:\x20','exportToFile','itemsGroups','getCursor','_scheduleFlush','symbol','bumpVersion','MCP_ERROR','VIEW_BOOTSTRAP_CANCELLED','getCount','claimGated','dropSchema','recordPeerAck','_uid','server','_quantum','queue:enqueued','resetUnknownOptionsWarned','_range','refreshReadTxn','inFlight','constructor','envsWithFiles','getStatus','sessionsForKey','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','okdb-','clearStuck','_timer','Algorithm\x20factory\x20must\x20be\x20a\x20function','chunks','\x27\x20doesn\x27t\x20exist','~ttl:key','getMany','buckets\x20must\x20be\x20array\x20or\x20string','job.','~sub','return','requires','reducers','Cannot\x20set\x20enforce\x20schema\x20on\x20','_stream','vector','job.tag\x20must\x20be\x20string|null','internal','event','OKDBForeignKeyError','createAndStartEngine','resolveData','env:removed','describeType','readTransaction','~file:blob_status','scheduled','_dupArg','prefetch','offWindow','true','nodeKey','getByPrefix','changeEncryptionKey:\x20to','runGc','pipelineFamily','setCursor','retryFailed','quarantined','_kbuf','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','createHash','registerTemplate','_read','processorsParticipating','vectorSpace','hook','stor','INVALID_VALUE','registerModule','randomUUID','spawn','okdb_session','when','TXN_INVALID_OPS','setToken','db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','toISOString','native','_onStop','\x27\x20is\x20already\x20registered','applyChange','continueIteration','item:pending','$and','process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','hasIndex','$mod','_bootLog','~queue_buckets','_formerOrigins','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','scopedName','_buf','list','Referenced\x20key\x20\x27','_assertFiles','Map','exportBuf','removeJobTypeSchema','ttl:clear','_initialize','_busFacade','ensure','loaded','reset','putSync','_stopFor','_envWide','removeTxn','hybridQuery','sourceKey','isReader','workerState','pushEphemeral','socket','applyInterestDelta','describeIndex','_clockListener','license:removed','close','search','type','update',':txnRange','queue-worker','level','fetchJson','refreshTtl','stateNames','isWellFormed',':emb:','_blobStatusDb','_put','ms\x20p99=','for','subscriptions-store:\x20open()\x20not\x20called','onLicenseExpired','_nodePublicKey',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','_syncExpiresAtField','afterTurn','_wb','Index\x20\x22','remove','__absent','$not','\x27\x20export\x20\x27','importBlobs','\x27\x20already\x20registered','system:ready','TYPE_ALREADY_REGISTERED','done','_dedupeKey','removeLink','SYSTEM_STOPPED','processor:paused','_detachLog','isActive','assertQueryOptions','_set','job','T_SESSION','allowUnsafe','acquiredAt','Transaction\x20already\x20closed','$lt','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','an\x20environment\x20name','sparse','queue:removed','\x20dropped\x20(buffer\x20full)','\x22\x20build\x20by\x20another\x20process\x20ended\x20\x22','system:proc','pause','job.status_code\x20must\x20be\x20string|null','TYPE_NOT_REGISTERED','handleError','_teardownNative','_retryPending','isFeatureEnabled','resetReadTxn','_rbuf','kind','validateBlobIntegrity','fts:reset','__ttlCancelledGen','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','registerPreparer','restart','nextExpiry','emit','processRest()','granId','storeGetConfig','drop','_enqueueInTxn','enforce','setReadBuffer','updateJob','online','isHeld','_viewCache','stateInfo','getViolation','VIEW_REBUILD_IN_PROGRESS','role','position','module','validate','applyOps','keyFor','createReadStream','LICENSE_LIMIT_EXCEEDED','ITEM_REMOVE','_syncLock','Blob\x20not\x20found:\x20','functions','_isWriter','setLogger','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','usedBy','job_type.defaults.buckets\x20must\x20be\x20array|null','_flushDebounce','rows','rebuildBegin','tryClaimTokens','setCurrentDb','ctxHeartbeat','committed','getLoginConfig','crypto','txnDone','~queue_payloads','Error','uninstalled','resolveField:\x20resolver\x20must\x20be\x20a\x20function','NOT_FOUND','geoConfig','schema','pending','toJSON','embeddings:pipeline:ready','formerIds','node','SCHEMA_VALIDATION_FAILED','dirname','locks','~queue_logs',')\x20+\x20readString(source)}','1MypaRK','started','setKeyBuffer','File\x20not\x20found:\x20','STOPPING','spki','onWindow','utf8Write','getPeerState','startsWith','queue:clear-done','_deliver','_windowCbs','stop','\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27','_ensureTypeEnv','setUint32','_handles','invalid\x20job.status:\x20','getJob','interest','INVALID_ARGUMENT','__esModule','proc','bus:type_drop','importBuf',':useReadTransaction','FTS_FLUSH_TIMEOUT','authenticateRequest','@harperdb/extended-iterable:skip','tags','createEmbedder','job.tries\x20must\x20be\x20non-negative\x20int','_settleRead','OKDBUniqueConstraintError','readFieldMany','process()\x20entry\x20\x22','_create','prefix','log','OKDBInvalidValueError','_nodePrivateKey','prevDb','staticCall','OKDBForeignKeyDeleteError','tierList','headers','detachConsole','\x20documents\x20fail\x20validation','_noChangelog','ftsQuery','bus:proc','removeJob','byLabel','split','registerHandler:\x20fn\x20must\x20be\x20a\x20function','OKDBVersionMismatchError','typesDb','reject','unknown\x20promise\x20token','bootLogMark','holder','dupSort','system:stopped','startNewEnginesFromSync','workers','__peers','getRange',':\x20key\x20[','getRaw','install','pokeHandler','cron','setStorageResolver','flushed','enableAll','filterSessionsForType','process\x20options.admission\x20must\x20be\x20a\x20function','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','blobsDir',']\x20already\x20maps\x20to\x20\x27','getUniqueViolations','~log','embeddings:indexer:doc:done','loadedPath','isSetupMode','ITEM_UPDATE','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','getEmbedderSchema','_reconcileDesired','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','Engine\x20driver\x20for\x20\x22','rebuild','nextTurn','files\x20feature\x20not\x20available','bucket.id\x20must\x20be\x20non-empty\x20string','\x27\x20at\x20','embeddings','writerWatchdog','listFtsEnvs','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','setClaimGated','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','sourceType','_blobsDir','readField','_logEnv','processor:resumed','ITEM_PENDING','req','363054xQaaBS','namespace','_onFeedChange','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','events','describeChunk','_pumper','_typesDb','getBlobStatus','continueOnRecoverableError','_baselines','__logsDb','_enableChangelog','durability','storage\x20adapter\x20has\x20no\x20method\x20','getTTL','_drain','toFixed','pop','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','__ttlByExpiry','_blobStatusTxn','embedder\x20is\x20gone','load','setMode','query','queue:rescheduled','claimed','OKDBAlreadyExistsError','_doHooks','VIEW_BUILD_STALLED','_localViewApi','checkSignals','_markSeen','processorHold','unique:violation','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','resetIndexFinish','ensureDesired','planUpdateJob','reconcilePeerPull','itemsDb','bootSyncedPipelines','startBegin','ctxRelease','openDB','index:ready','child','_defaultEnv','_rebuild','emitClearDone','durableDocs','transaction','peers','bucket','shutdownTimeout','_pokeListener','primaryOkdb','setLogSink','MINIMUM_KEY','_info','dropIndex','_subscribeEvent','_listenAddr','SKIP','compact','embedderCall','retryable','_remove','floor','pauseJobType','properties','group','system:type_drop','msgpackr','INDEXER_DOC_FAILED','index:reset','_callPacked','reverse','files.upload:\x20id','status','asyncIterator','ceil','MAX_SAFE_INTEGER','_keyFns','__warned','default','~ref_violations','config','_rawTxnBuf','ms\x20max=','_lookupAllByName','\x20which\x20does\x20not\x20exist','WORKER','kickOwnedBy','_callRows','LICENSE_FEATURE_DISABLED','setProcessingConfig','_env','reason','data','okdb-node:\x20unknown\x20callback\x20id\x20','embeddings:embed:settled','engineUninstall','closeEnvLocally','references','durableCursorFloor','Database\x20not\x20started','job\x20must\x20be\x20object','Foreign\x20key\x20violation:\x20','getPosition()\x20{\x20return\x20position\x20},','_getRaw','initialize','aborted','reducer','setMaxBodyBytes','compareKeys','_hybridQuery','WriteBatch','Referenced\x20type\x20\x27','INDEXER_DOC_DONE','typeSubDbs','status_code','hasOwnProperty','_ensureTokensType','target','ENGINE_INVALID_TEMPLATE','durableDoc','queue:retry','_started','\x22\x20must\x20be\x20a\x20plain\x20object','registerDriver','$ref','item:create','_plugins','getRecord','recommended','clearTtl','createSession','durableRetryDoc','setWake','\x22)\x20before\x20open()','api','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','embeddings:strategy:registered','setEncryptionKey','/([^/]+)','ready','put','catch','flushMaxWait','_processorStops','replaceInterests','handlerName','exports','_low','_tx','streamClose','buffer','docs','updated','OKDBError','ENGINE_INVALID_DRIVER','_onPoke','createdBy','~log_entry','error_stack','_pending','maxMs','job.buckets\x20entries\x20must\x20be\x20objects','INVALID_SCHEMA','markJobProgress','BAD_EMBEDDER_FACTORY','index','migrate','_registerType','OKDBSchemaValidationError','listRoutes','instance','writeKey','lastIndexOf','getValues','[log-sink]\x20','embedderNew','getAll','incoming','SESSION_TYPE_INDEX','null','feed:','listLinks','_handlePoke','once','ENGINE_DRIVER_MISSING_START','clear','$elemMatch','listPath','KNOWN_OPTIONS','Index\x20\x27','resolve','stopView','description','timestamp','quantum','getIndex','_viewState','isOAuthEmailAllowed','removeListener','_isBootstrap','then','createBegin','priority','admin','REF_VIOLATION_RESOLVED'];_0x17ed=function(){return _0xd578a;};return _0x17ed();}function requireOkdbEnvRefs(){const _0x14d01c=_0x30747f;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x3200c8,EVENTS:_0x333da1}=requireOkdbEnums(),{OKDBError:_0x5b3b8b,OKDBForeignKeyDeleteError:_0x4ec9c5}=requireOkdbError(),_0x3bcda7=_0x14d01c(0x5ec),_0x53924d=new Set([_0x14d01c(0x31f),_0x14d01c(0x108),'set_null',_0x14d01c(0xfd)]);function _0x25d589(_0x45145a,_0x52fe89){if(_0x45145a==null||!_0x52fe89)return undefined;const _0x24cdf6=_0x52fe89['split']('.');let _0x352048=_0x45145a;for(const _0x57ddac of _0x24cdf6){if(_0x352048==null||typeof _0x352048!=='object'||!(_0x57ddac in _0x352048))return undefined;_0x352048=_0x352048[_0x57ddac];}return _0x352048;}function _0x40e174(_0x1aa745,_0x2f2e7d,_0x837a0f){const _0x5c01ef=_0x14d01c,_0x2edacf=_0x2f2e7d[_0x5c01ef(0x55c)]('.'),_0x52b21c={..._0x1aa745};let _0x146d00=_0x52b21c;for(let _0x1d59ee=0x0;_0x1d59ee<_0x2edacf['length']-0x1;_0x1d59ee++){_0x146d00[_0x2edacf[_0x1d59ee]]=_0x146d00[_0x2edacf[_0x1d59ee]]!=null?{..._0x146d00[_0x2edacf[_0x1d59ee]]}:{},_0x146d00=_0x146d00[_0x2edacf[_0x1d59ee]];}return _0x146d00[_0x2edacf[_0x2edacf[_0x5c01ef(0x789)]-0x1]]=_0x837a0f,_0x52b21c;}function _0x35742d(_0x5134b2,_0x1415dd,_0x300219,_0x2aad0a,_0x21c938){return[_0x5134b2,_0x1415dd,_0x300219,_0x2aad0a,_0x21c938];}function _0x36f419(_0x54ad20){const _0x2808b3=_0x14d01c;return typeof _0x54ad20===_0x2808b3(0x395)||typeof _0x54ad20===_0x2808b3(0x7c0);}function _0x45af9f(_0x50b001,_0x4092ec){const _0x2d3e72=_0x14d01c;return JSON[_0x2d3e72(0x76f)]([_0x50b001,_0x4092ec]);}function*_0x2d589d(_0x59127c,_0x530260,_0x3cfa3a){const _0x1ae091=_0x14d01c,_0x2a8b28=_0x3cfa3a!==undefined;for(const {key:_0x4dd493}of _0x59127c[_0x1ae091(0x569)]({'start':_0x2a8b28?[_0x530260,_0x3cfa3a]:[_0x530260]})){if(!Array['isArray'](_0x4dd493))continue;if(_0x4dd493[0x0]!==_0x530260||_0x2a8b28&&_0x4dd493[0x1]!==_0x3cfa3a)break;yield _0x4dd493;}}function _0x3cbedf(_0x274284,_0xe52192='',_0x481dd7=null){const _0x3bd5cd=_0x14d01c,_0x39f2be=[];if(!_0x274284||typeof _0x274284!==_0x3bd5cd(0x12c))return _0x39f2be;if(!_0x481dd7)_0x481dd7=_0x274284;if(_0x274284[_0x3bd5cd(0x619)]){const _0x234890=_0x274284[_0x3bd5cd(0x619)][_0x3bd5cd(0xb7)](/^#\/\$defs\/(.+)$/);if(_0x234890&&_0x481dd7?.[_0x3bd5cd(0x420)]?.[_0x234890[0x1]])return _0x3cbedf(_0x481dd7[_0x3bd5cd(0x420)][_0x234890[0x1]],_0xe52192,_0x481dd7);return _0x39f2be;}if(_0x274284[_0x3bd5cd(0x6c2)]&&typeof _0x274284[_0x3bd5cd(0x6c2)]===_0x3bd5cd(0x12c)&&_0x274284['ref'][_0x3bd5cd(0x4a6)]){const _0x266c71=_0x274284[_0x3bd5cd(0x6c2)][_0x3bd5cd(0x728)]||_0x3bd5cd(0x31f);if(!_0x53924d['has'](_0x266c71))throw new _0x5b3b8b(_0x3bd5cd(0x742)+_0x266c71+_0x3bd5cd(0x587)+(_0xe52192||_0x3bd5cd(0xe7))+_0x3bd5cd(0x110)+[..._0x53924d]['join'](',\x20'),_0x3bd5cd(0x63f));_0x39f2be['push']({'fieldPath':_0xe52192,'targetType':_0x274284['ref']['type'],'onDelete':_0x266c71});}if(_0x274284[_0x3bd5cd(0x5dc)])for(const [_0x5b63c0,_0x44375e]of Object[_0x3bd5cd(0x695)](_0x274284[_0x3bd5cd(0x5dc)])){const _0x48b7b8=_0xe52192?_0xe52192+'.'+_0x5b63c0:_0x5b63c0;_0x39f2be['push'](..._0x3cbedf(_0x44375e,_0x48b7b8,_0x481dd7));}return _0x39f2be;}function _0x299aa6(_0xf5543e){const _0x27ae5a=_0x14d01c,_0x5289d4=new Map(),_0x363f85=new Map();for(const _0x26f338 of _0xf5543e[_0x27ae5a(0x746)]()){if(_0x26f338[_0x27ae5a(0x52f)]('~'))continue;const _0x4a0474=_0xf5543e[_0x27ae5a(0x55f)][_0x27ae5a(0x1fc)](_0x26f338);if(!_0x4a0474?.[_0x27ae5a(0x51b)]?.[_0x27ae5a(0x173)])continue;let _0x269e3b;try{_0x269e3b=_0x3cbedf(_0x4a0474['schema'][_0x27ae5a(0x173)]);}catch{continue;}if(_0x269e3b[_0x27ae5a(0x789)]>0x0){_0x5289d4['set'](_0x26f338,_0x269e3b);for(const _0x4c1398 of _0x269e3b){if(!_0x363f85[_0x27ae5a(0x73b)](_0x4c1398['targetType']))_0x363f85[_0x27ae5a(0xc4)](_0x4c1398[_0x27ae5a(0x2d9)],[]);_0x363f85[_0x27ae5a(0x1fc)](_0x4c1398[_0x27ae5a(0x2d9)])[_0x27ae5a(0x235)]({'sourceType':_0x26f338,'fieldPath':_0x4c1398[_0x27ae5a(0x423)],'onDelete':_0x4c1398['onDelete']});}}}_0xf5543e[_0x27ae5a(0x2d6)]={'outgoing':_0x5289d4,'incoming':_0x363f85};if(_0x5289d4['size']>0x0)_0x315f1d(_0xf5543e);}function _0x948afb(_0x1106b7,_0x307afe){const _0x46fc0f=_0x14d01c;return _0x1106b7[_0x46fc0f(0x2d6)]['outgoing'][_0x46fc0f(0x1fc)](_0x307afe)||[];}function _0x3584be(_0xaba7f9,_0x1ee912){const _0x805a5e=_0x14d01c;return _0xaba7f9['_refCache'][_0x805a5e(0x64e)][_0x805a5e(0x1fc)](_0x1ee912)||[];}function _0x315f1d(_0x5e7e92){const _0x105aa4=_0x14d01c;if(_0x5e7e92[_0x105aa4(0x33f)])return _0x5e7e92['_refIndexDb'];return _0x5e7e92[_0x105aa4(0x33f)]=_0x5e7e92['db'][_0x105aa4(0x5c2)](_0x105aa4(0x21f),{'dupSort':![]}),_0x5e7e92[_0x105aa4(0x33f)];}function _0x2957fd(_0xa145cc,_0x48b9f6,_0x55408d,_0x2cf2f2,_0x5c01b6){const _0xdcee79=_0x14d01c,_0x3b2d88=_0x948afb(_0xa145cc,_0x48b9f6);if(_0x3b2d88[_0xdcee79(0x789)]===0x0)return;const _0x31fa65=_0x315f1d(_0xa145cc);for(const _0x22ac7b of _0x3b2d88){const _0x50f70d=_0x5c01b6!=null?_0x25d589(_0x5c01b6,_0x22ac7b[_0xdcee79(0x423)]):undefined,_0x134867=_0x2cf2f2!=null?_0x25d589(_0x2cf2f2,_0x22ac7b['fieldPath']):undefined;if(_0x50f70d===_0x134867)continue;_0x36f419(_0x50f70d)&&_0x31fa65[_0xdcee79(0x761)](_0x35742d(_0x22ac7b[_0xdcee79(0x2d9)],_0x50f70d,_0x48b9f6,_0x55408d,_0x22ac7b[_0xdcee79(0x423)])),_0x36f419(_0x134867)&&_0x31fa65['putSync'](_0x35742d(_0x22ac7b['targetType'],_0x134867,_0x48b9f6,_0x55408d,_0x22ac7b['fieldPath']),0x1);}}function _0x588f6f(_0x3bade3,_0x56b6f9,_0x150506,_0x36a222){const _0x2536db=_0x14d01c,_0x391d3a=_0x948afb(_0x3bade3,_0x56b6f9);if(_0x391d3a[_0x2536db(0x789)]===0x0)return;const _0x54af68=_0x315f1d(_0x3bade3);for(const _0x24a88 of _0x391d3a){const _0x5af196=_0x36a222!=null?_0x25d589(_0x36a222,_0x24a88[_0x2536db(0x423)]):undefined;_0x36f419(_0x5af196)&&_0x54af68[_0x2536db(0x761)](_0x35742d(_0x24a88[_0x2536db(0x2d9)],_0x5af196,_0x56b6f9,_0x150506,_0x24a88[_0x2536db(0x423)]));}}function _0x3d8649(_0x325440,_0x3cdbcc,_0x1d65a6,_0x49f84a){const _0x444243=_0x14d01c,_0x62ca3c=_0x948afb(_0x325440,_0x3cdbcc);if(_0x62ca3c['length']===0x0)return[];const _0x4a7d30=[];for(const _0x2f7e99 of _0x62ca3c){const _0x2ff642=_0x25d589(_0x49f84a,_0x2f7e99['fieldPath']);if(_0x2ff642==null)continue;if(!_0x325440[_0x444243(0x7a6)](_0x2f7e99['targetType'])){_0x4a7d30[_0x444243(0x235)]({'fieldPath':_0x2f7e99[_0x444243(0x423)],'targetType':_0x2f7e99[_0x444243(0x2d9)],'targetKey':_0x2ff642,'message':_0x444243(0x60c)+_0x2f7e99[_0x444243(0x2d9)]+_0x444243(0x404)});continue;}const _0x50a3ae=_0x325440[_0x444243(0x24f)](_0x2f7e99['targetType'])[_0x444243(0x5f9)];!_0x50a3ae[_0x444243(0x318)](_0x2ff642)&&_0x4a7d30[_0x444243(0x235)]({'fieldPath':_0x2f7e99['fieldPath'],'targetType':_0x2f7e99[_0x444243(0x2d9)],'targetKey':_0x2ff642,'message':_0x444243(0x48b)+_0x2ff642+_0x444243(0x6f1)+_0x2f7e99['targetType']+'\x27'});}return _0x4a7d30;}function _0xe6e4e9(_0xbabbbe,_0x550fa5,_0x404263,_0x554c5f,_0x96342c,{timestamp:_0x18cc99,origin:_0x5370fb,_cascadeVisited:_0x4909f0}){const _0x456bd8=_0x14d01c,_0x562ac2=_0x3584be(_0xbabbbe,_0x404263);if(_0x562ac2[_0x456bd8(0x789)]===0x0)return;const _0x148aec=_0x315f1d(_0xbabbbe),_0x591984=[];for(const [,,_0x16366e,_0x312bed,_0x575ee8]of _0x2d589d(_0x148aec,_0x404263,_0x554c5f)){_0x591984[_0x456bd8(0x235)]({'sourceType':_0x16366e,'sourceKey':_0x312bed,'fieldPath':_0x575ee8});}if(_0x591984['length']===0x0)return;for(const _0x45018b of _0x591984){const _0x455b36=_0x562ac2[_0x456bd8(0x777)](_0x3932f5=>_0x3932f5[_0x456bd8(0x58e)]===_0x45018b[_0x456bd8(0x58e)]&&_0x3932f5[_0x456bd8(0x423)]===_0x45018b['fieldPath']),_0x4f4fe0=_0x455b36?.['onDelete']||_0x456bd8(0x31f);switch(_0x4f4fe0){case _0x456bd8(0xfd):{if(_0x5370fb===null)throw new _0x4ec9c5(_0x404263,_0x554c5f,_0x591984[_0x456bd8(0x3ce)](_0x68aaf1=>{const _0x9b7e65=_0x456bd8,_0x14d109=_0x562ac2[_0x9b7e65(0x777)](_0x46c955=>_0x46c955[_0x9b7e65(0x58e)]===_0x68aaf1['sourceType']&&_0x46c955[_0x9b7e65(0x423)]===_0x68aaf1[_0x9b7e65(0x423)]);return(_0x14d109?.['onDelete']||_0x9b7e65(0x31f))===_0x9b7e65(0xfd);}));break;}case _0x456bd8(0x108):{const _0x79f8c0=_0x45af9f(_0x45018b['sourceType'],_0x45018b[_0x456bd8(0x49b)]);if(_0x4909f0[_0x456bd8(0x73b)](_0x79f8c0))continue;_0xbabbbe['_getType'](_0x45018b[_0x456bd8(0x58e)])[_0x456bd8(0x5f9)][_0x456bd8(0x318)](_0x45018b['sourceKey'])&&_0xbabbbe[_0x456bd8(0x5d9)](_0x550fa5,_0x45018b['sourceType'],_0x45018b[_0x456bd8(0x49b)],{'timestamp':_0x18cc99,'origin':_0x5370fb,'_cascadeVisited':_0x4909f0});break;}case'set_null':{const _0x22eebf=_0xbabbbe[_0x456bd8(0x24f)](_0x45018b[_0x456bd8(0x58e)])[_0x456bd8(0x5f9)],_0x184ec0=_0x22eebf[_0x456bd8(0x358)](_0x45018b[_0x456bd8(0x49b)]);if(_0x184ec0){const _0x402751=_0x40e174(_0x184ec0['value'],_0x45018b[_0x456bd8(0x423)],null);_0xbabbbe[_0x456bd8(0x7bc)](_0x550fa5,_0x456bd8(0x629),_0x45018b['sourceType'],_0x45018b[_0x456bd8(0x49b)],_0x402751,{'timestamp':_0x18cc99,'origin':_0x5370fb,'_cascading':!![]});}break;}}}}function _0x58c95d(_0x43756d){const _0x2f68ce=_0x14d01c;!_0x43756d[_0x2f68ce(0x7a6)](_0x3bcda7)&&_0x43756d[_0x2f68ce(0x644)](_0x3bcda7);}function _0x3da8c9(_0x397011,_0x57e631,_0x10f1ed,_0x39ab4a,_0xd6172f,_0x57db1d,_0xd907be,{timestamp:timestamp=Date[_0x14d01c(0x2aa)](),origin:origin=null}={}){const _0x407864=_0x14d01c;_0x58c95d(_0x397011);const _0x506291=_0x10f1ed+'@'+_0x39ab4a+'@'+_0xd6172f,_0x1f51bc={'sourceType':_0x10f1ed,'sourceKey':_0x39ab4a,'fieldPath':_0xd6172f,'targetType':_0x57db1d,'targetKey':_0xd907be,'timestamp':timestamp,'origin':origin},_0x33abd7=_0x397011[_0x407864(0x24f)](_0x3bcda7)[_0x407864(0x5f9)],_0x11ce00=_0x33abd7[_0x407864(0x358)](_0x506291),_0x3cd07f=_0x11ce00?_0x11ce00[_0x407864(0x7a4)]+0x1:0x1;_0x33abd7[_0x407864(0x496)](_0x506291,_0x1f51bc,_0x3cd07f),_0x397011[_0x407864(0x68f)]({'id':_0x407864(0x779)+_0x3bcda7+'@'+_0x506291,'type':_0x3bcda7,'key':_0x506291,'action':_0x3200c8['PUT'],'timestamp':timestamp,'txnId':_0x57e631?.['id'],'origin':origin},_0x11ce00?.[_0x407864(0x2ff)],_0x1f51bc),_0x397011[_0x407864(0x599)][_0x407864(0x4eb)](_0x333da1[_0x407864(0x321)],{'sourceType':_0x10f1ed,'sourceKey':_0x39ab4a,'fieldPath':_0xd6172f,'targetType':_0x57db1d,'targetKey':_0xd907be,'env':_0x397011['name']});}function _0x29f8f0(_0x12bf91,_0xf607f5,_0x507555,_0x512b2b,_0xfc04b8,{timestamp:timestamp=Date[_0x14d01c(0x2aa)](),origin:origin=null}={}){const _0x48bd40=_0x14d01c;if(!_0x12bf91[_0x48bd40(0x7a6)](_0x3bcda7))return;const _0x19e81e=_0x507555+'@'+_0x512b2b+'@'+_0xfc04b8,_0xa8b98e=_0x12bf91[_0x48bd40(0x24f)](_0x3bcda7)['data'],_0x45213b=_0xa8b98e[_0x48bd40(0x358)](_0x19e81e);if(!_0x45213b)return;_0xa8b98e[_0x48bd40(0x761)](_0x19e81e),_0x12bf91[_0x48bd40(0x68f)]({'id':_0x48bd40(0x779)+_0x3bcda7+'@'+_0x19e81e,'type':_0x3bcda7,'key':_0x19e81e,'action':_0x3200c8[_0x48bd40(0x126)],'timestamp':timestamp,'txnId':_0xf607f5?.['id'],'origin':origin},_0x45213b[_0x48bd40(0x2ff)],undefined),_0x12bf91['events'][_0x48bd40(0x4eb)](_0x333da1[_0x48bd40(0x669)],{'sourceType':_0x507555,'sourceKey':_0x512b2b,'fieldPath':_0xfc04b8,'env':_0x12bf91[_0x48bd40(0x219)]});}function _0x420071(_0x14879f,_0x18e3bc,_0x54cdf7,_0x407460,_0x2d1e42={}){const _0x256656=_0x14d01c;if(!_0x14879f[_0x256656(0x7a6)](_0x3bcda7))return;const _0x3807c8=_0x14879f['_getType'](_0x3bcda7)[_0x256656(0x5f9)],_0x51067f=_0x54cdf7+'@'+_0x407460+'@',_0xf814f5=[];for(const {key:_0x4269bb,value:_0x5f4a45}of _0x3807c8[_0x256656(0x569)]({'start':_0x51067f,'end':_0x51067f+'\uffff'})){if(_0x5f4a45?.[_0x256656(0x58e)]===_0x54cdf7&&_0x5f4a45?.[_0x256656(0x49b)]===_0x407460)_0xf814f5[_0x256656(0x235)](_0x4269bb);}for(const _0x552be6 of _0xf814f5){const _0x277ea6=_0x3807c8[_0x256656(0x358)](_0x552be6);if(!_0x277ea6)continue;_0x3807c8[_0x256656(0x761)](_0x552be6),_0x14879f['_logChange']({'id':'item:'+_0x3bcda7+'@'+_0x552be6,'type':_0x3bcda7,'key':_0x552be6,'action':_0x3200c8[_0x256656(0x126)],'timestamp':_0x2d1e42[_0x256656(0x65e)]||Date[_0x256656(0x2aa)](),'txnId':_0x18e3bc?.['id'],'origin':_0x2d1e42[_0x256656(0x6a5)]},_0x277ea6[_0x256656(0x2ff)],undefined);}}function _0x25c890(_0x243738,_0x1a65c7){const _0x313627=_0x14d01c;if(!_0x243738['hasType'](_0x3bcda7))return;const _0x1ea57b=_0x243738[_0x313627(0x24f)](_0x3bcda7)['data'],_0x4abc72=_0x1a65c7+'@',_0x5096d2=[];for(const {key:_0x68ca8b,value:_0x341d95}of _0x1ea57b[_0x313627(0x569)]({'start':_0x4abc72,'end':_0x4abc72+'\uffff'})){if(_0x341d95?.[_0x313627(0x58e)]===_0x1a65c7)_0x5096d2[_0x313627(0x235)](_0x68ca8b);}for(const _0x73f469 of _0x5096d2)_0x1ea57b[_0x313627(0x761)](_0x73f469);}async function _0xc83b82(_0x20126e,_0x153b73){const _0x45fd89=_0x14d01c,_0x2a26bd=_0x948afb(_0x20126e,_0x153b73);if(_0x2a26bd[_0x45fd89(0x789)]===0x0)return;await _0x20126e[_0x45fd89(0x1fd)][_0x45fd89(0x5c9)](()=>{const _0x26df24=_0x45fd89;for(const {key:_0x573403,value:_0x2c1804}of _0x20126e['getRange'](_0x153b73)){_0x2957fd(_0x20126e,_0x153b73,_0x573403,_0x2c1804,null);const _0x31a07b=_0x3d8649(_0x20126e,_0x153b73,_0x573403,_0x2c1804);for(const _0x598334 of _0x31a07b){_0x3da8c9(_0x20126e,null,_0x153b73,_0x573403,_0x598334[_0x26df24(0x423)],_0x598334[_0x26df24(0x2d9)],_0x598334[_0x26df24(0x287)]);}}});}const _0x3c2830=0x1388;async function _0x2e5245(_0x1e9e03){const _0x5eb62d=_0x14d01c,_0x2715c7=_0x1e9e03[_0x5eb62d(0x2d6)]?.[_0x5eb62d(0x7b5)]?.[_0x5eb62d(0x670)]>0x0;if(!_0x2715c7&&!_0x1e9e03[_0x5eb62d(0x33f)])return{'dropped':0x0,'written':0x0};const _0xc8b88c=_0x315f1d(_0x1e9e03);let _0x1bf647=0x0;for(;;){const _0x531224=Array['from'](_0xc8b88c[_0x5eb62d(0x105)]({'limit':_0x3c2830}));if(_0x531224['length']===0x0)break;let _0x24b2d9=0x0;await _0x1e9e03['_writer']['transaction'](()=>{const _0x548d30=_0x5eb62d;for(const _0x217403 of _0x531224)if(_0xc8b88c[_0x548d30(0x761)](_0x217403))_0x24b2d9++;});if(_0x24b2d9===0x0)break;_0x1bf647+=_0x24b2d9;}let _0x5b19cb=0x0;for(const _0x5c924f of _0x1e9e03[_0x5eb62d(0x2d6)][_0x5eb62d(0x7b5)]['keys']()){if(_0x5c924f[_0x5eb62d(0x52f)]('~')||!_0x1e9e03[_0x5eb62d(0x7a6)](_0x5c924f))continue;const _0x2b09c4=_0x948afb(_0x1e9e03,_0x5c924f);await _0x1e9e03[_0x5eb62d(0x1fd)][_0x5eb62d(0x5c9)](()=>{const _0x1e34df=_0x5eb62d;for(const {key:_0x274a76,value:_0x41f026}of _0x1e9e03['getRange'](_0x5c924f)){for(const _0x58f119 of _0x2b09c4){const _0x1eb516=_0x25d589(_0x41f026,_0x58f119[_0x1e34df(0x423)]);if(!_0x36f419(_0x1eb516))continue;_0xc8b88c[_0x1e34df(0x496)](_0x35742d(_0x58f119[_0x1e34df(0x2d9)],_0x1eb516,_0x5c924f,_0x274a76,_0x58f119[_0x1e34df(0x423)]),0x1),_0x5b19cb++;}}});}return{'dropped':_0x1bf647,'written':_0x5b19cb};}return okdbEnvRefs={'getFieldValue':_0x25d589,'setFieldValue':_0x40e174,'refIndexKey':_0x35742d,'isRefTarget':_0x36f419,'cascadeVisitKey':_0x45af9f,'extractRefs':_0x3cbedf,'rebuildRefCache':_0x299aa6,'getTypeRefs':_0x948afb,'getIncomingRefs':_0x3584be,'getRefIndexDb':_0x315f1d,'updateRefIndex':_0x2957fd,'removeRefIndexEntries':_0x588f6f,'refIndexRowsFor':_0x2d589d,'rebuildRefIndex':_0x2e5245,'checkForeignKeys':_0x3d8649,'processDeleteCascade':_0xe6e4e9,'setRefViolation':_0x3da8c9,'clearRefViolation':_0x29f8f0,'clearRefViolationsForKey':_0x420071,'clearRefViolationsForType':_0x25c890,'syncRefIndex':_0xc83b82},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x596030=_0x30747f;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x596030(0x62f)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x13e7e8=require$$0$4,{assertFilterAllowed:_0x56967e}=requireOkdbQueryFilter(),{rebuildRefCache:_0x166cbf}=requireOkdbEnvRefs(),_0x26b6c4=_0x596030(0x449),_0x112a44=_0x596030(0x782),_0x3040e9=_0x596030(0x53a),_0x100c8f=[_0x596030(0x672),'type',_0x596030(0x781)],_0x3693c2=['dataEnv','type'],_0x3baebd=0x5a*0x3e8,_0x4bc731=Math[_0x596030(0x5da)](_0x3baebd/0x2);class _0xcc13d9{constructor(_0x484cd1,_0x12a680={}){const _0x11af41=_0x596030;this[_0x11af41(0x22a)]=_0x484cd1,this[_0x11af41(0x309)]=Number[_0x11af41(0x6b5)](_0x12a680[_0x11af41(0x309)])&&_0x12a680['ttlMs']>0x0?_0x12a680[_0x11af41(0x309)]:_0x3baebd,this[_0x11af41(0x6c9)]=Number['isFinite'](_0x12a680[_0x11af41(0x6c9)])?_0x12a680[_0x11af41(0x6c9)]:_0x4bc731,this['_sub']=null;}async[_0x596030(0x1c2)](){const _0x48ebaa=_0x596030;if(this[_0x48ebaa(0x29a)])return this['_sub'];const _0x53bb55=await this['okdb'][_0x48ebaa(0x3f4)](_0x26b6c4,{'sync':![]});return await _0x53bb55['ensureType'](_0x112a44,{'indexes':[_0x3693c2]}),await _0x53bb55[_0x48ebaa(0x7b6)](_0x3040e9),_0x53bb55['getSchema'](_0x3040e9)?_0x166cbf(_0x53bb55):await _0x53bb55['setSchema'](_0x3040e9,{'definition':{'type':_0x48ebaa(0x12c),'properties':{'sessionId':{'type':_0x48ebaa(0x395),'ref':{'type':_0x112a44,'onDelete':_0x48ebaa(0x108)}},'dataEnv':{'type':'string'},'type':{'type':_0x48ebaa(0x395)},'key':{'type':'string'}},'required':[_0x48ebaa(0x3ad),'dataEnv',_0x48ebaa(0x4a6),_0x48ebaa(0x781)]},'enforce':!![]}),await _0x53bb55[_0x48ebaa(0x7b6)](_0x3040e9,{'indexes':[_0x100c8f]}),await _0x53bb55[_0x48ebaa(0x26b)](_0x3040e9,_0x100c8f),await _0x53bb55[_0x48ebaa(0x26b)](_0x112a44,_0x3693c2),this[_0x48ebaa(0x29a)]=_0x53bb55,_0x53bb55;}[_0x596030(0x5f7)](){const _0x31192=_0x596030;if(!this[_0x31192(0x29a)])throw new Error(_0x31192(0x4b4));return this[_0x31192(0x29a)];}async[_0x596030(0x61f)]({sessionId:_0x479c63,dataEnv:_0x2ed217,type:_0x3200cd,filter:filter=null,ttlMs:_0xa43a57}={}){const _0x4f969d=_0x596030,_0x4aa299=this[_0x4f969d(0x5f7)]();_0x56967e(filter);const _0x40a836=_0x479c63!=null&&String(_0x479c63)[_0x4f969d(0x789)]>0x0?String(_0x479c63):_0x13e7e8['randomUUID'](),_0x5699b1=Number['isFinite'](_0xa43a57)&&_0xa43a57>0x0?_0xa43a57:this[_0x4f969d(0x309)],_0x836a5d=Date[_0x4f969d(0x2aa)](),_0x24ad03={'sessionId':_0x40a836,'dataEnv':_0x2ed217,'type':_0x3200cd,'filter':filter??null,'version':0x0,'createdAt':_0x836a5d,'expiresAt':_0x836a5d+_0x5699b1};return await _0x4aa299['put'](_0x112a44,_0x40a836,_0x24ad03,{'ttl':_0x5699b1}),{'sessionId':_0x40a836,'version':0x0};}['getSession'](_0x373a8d){const _0xfd1c2c=_0x596030;if(!_0x373a8d)return null;return this[_0xfd1c2c(0x5f7)]()[_0xfd1c2c(0x1fc)](_0x112a44,String(_0x373a8d))??null;}async[_0x596030(0x1f6)](_0x512903){const _0x59cd33=_0x596030,_0x176245=this[_0x59cd33(0x5f7)](),_0x474eef=String(_0x512903);if(!_0x176245['get'](_0x112a44,_0x474eef))return![];return await _0x176245['remove'](_0x112a44,_0x474eef),!![];}async[_0x596030(0x42b)](_0x36fce1){const _0x4856cb=_0x596030,_0x20c39d=this['_env'](),_0x4706ad=String(_0x36fce1),_0x44f332=_0x20c39d[_0x4856cb(0x1fc)](_0x112a44,_0x4706ad);if(!_0x44f332)return null;const _0xb57c85=(Number[_0x4856cb(0x6b5)](_0x44f332[_0x4856cb(0x7a4)])?_0x44f332['version']:0x0)+0x1;return await _0x20c39d['put'](_0x112a44,_0x4706ad,{..._0x44f332,'version':_0xb57c85}),_0xb57c85;}async[_0x596030(0x4ac)](_0x3d2fed,_0x57dae7){const _0x599186=_0x596030,_0x393cb2=this[_0x599186(0x5f7)](),_0x3c2456=String(_0x3d2fed);if(!_0x393cb2[_0x599186(0x1fc)](_0x112a44,_0x3c2456))return![];const _0x5c835e=Number[_0x599186(0x6b5)](_0x57dae7)&&_0x57dae7>0x0?_0x57dae7:this[_0x599186(0x309)];if(this[_0x599186(0x156)](_0x3c2456))return![];return await _0x393cb2[_0x599186(0xce)](_0x112a44,_0x3c2456,_0x5c835e),await this[_0x599186(0x4b8)](_0x3c2456,_0x5c835e),!![];}async[_0x596030(0x303)](_0x4b000b,_0x40631b){const _0x471b8d=_0x596030,_0x2598ce=this[_0x471b8d(0x5f7)](),_0xcc7f79=Number[_0x471b8d(0x6b5)](_0x40631b)&&_0x40631b>0x0?_0x40631b:this[_0x471b8d(0x309)],_0x15837b=Date[_0x471b8d(0x2aa)](),_0x58c46c=[];for(const _0x422455 of _0x4b000b||[]){const _0x3cd9af=String(_0x422455),_0x4bb29a=_0x2598ce[_0x471b8d(0x1fc)](_0x112a44,_0x3cd9af);if(!_0x4bb29a)continue;if(this['_isFar'](_0x3cd9af,_0x15837b))continue;_0x58c46c[_0x471b8d(0x235)]({'id':_0x3cd9af,'cur':_0x4bb29a});}if(_0x58c46c[_0x471b8d(0x789)]===0x0)return[];return await _0x2598ce[_0x471b8d(0xb8)](async _0x17eca6=>{const _0x119325=_0x471b8d;for(const {id:_0x325d2c,cur:_0x4bb336}of _0x58c46c){_0x17eca6['put'](_0x112a44,_0x325d2c,{..._0x4bb336,'expiresAt':_0x15837b+_0xcc7f79}),_0x17eca6[_0x119325(0xce)](_0x112a44,_0x325d2c,_0xcc7f79);}}),_0x58c46c[_0x471b8d(0x1c9)](_0x2f09b0=>_0x2f09b0['id']);}[_0x596030(0x156)](_0x5b6230,_0x4f7e55=Date['now']()){const _0x409918=_0x596030,_0x248212=this[_0x409918(0x5f7)]()['getTTL'](_0x112a44,String(_0x5b6230));if(!_0x248212)return![];return _0x248212['expiresAt']-_0x4f7e55>this['refreshThresholdMs'];}async[_0x596030(0x4b8)](_0x1f494f,_0x1eb4ba){const _0x42a0ed=_0x596030,_0x5663b1=this[_0x42a0ed(0x5f7)](),_0x11b1f9=_0x5663b1['get'](_0x112a44,_0x1f494f);if(!_0x11b1f9)return;await _0x5663b1[_0x42a0ed(0x629)](_0x112a44,_0x1f494f,{..._0x11b1f9,'expiresAt':Date[_0x42a0ed(0x2aa)]()+_0x1eb4ba});}async[_0x596030(0x377)](_0x2164c9,_0x20ed19,_0xd070ca){const _0x32c12f=_0x596030,_0xaa7fcc=this['_env'](),_0x22df79=String(_0x2164c9),_0x31130c=_0xaa7fcc[_0x32c12f(0x1fc)](_0x112a44,_0x22df79);if(!_0x31130c)throw new Error(_0x32c12f(0x58d)+_0x22df79);const _0x42a8a9=_0x13e7e8[_0x32c12f(0x472)]();return await _0xaa7fcc[_0x32c12f(0x629)](_0x3040e9,_0x42a8a9,{'sessionId':_0x22df79,'dataEnv':String(_0x31130c[_0x32c12f(0x672)]),'type':String(_0x20ed19),'key':String(_0xd070ca)}),_0x42a8a9;}async['_commitSessionMutation'](_0x2ea170,_0x42fe9e,{retries:retries=0x8}={}){const _0x6d413f=_0x596030,_0x1e25b3=this['_env']();for(let _0x228b21=0x0;;_0x228b21++){const _0x23dda1=_0x1e25b3[_0x6d413f(0x358)](_0x112a44,_0x2ea170);if(!_0x23dda1)return null;const _0x14e73a=_0x23dda1[_0x6d413f(0x2ff)],_0x51e29c=(Number['isFinite'](_0x14e73a[_0x6d413f(0x7a4)])?_0x14e73a[_0x6d413f(0x7a4)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x42fe9e(_0x14e73a,_0x1e25b3)||{};try{return await _0x1e25b3[_0x6d413f(0xb8)](async _0xa97947=>{const _0xd5cc5a=_0x6d413f;applyInterests?.(_0xa97947),_0xa97947[_0xd5cc5a(0x629)](_0x112a44,_0x2ea170,{..._0x14e73a,...sessionPatch,'version':_0x51e29c},{'ifVersion':_0x23dda1[_0xd5cc5a(0x7a4)]});}),_0x51e29c;}catch(_0x41d6d5){if(_0x41d6d5?.['code']===_0x6d413f(0x780)&&_0x228b21<retries)continue;throw _0x41d6d5;}}}async[_0x596030(0x4a0)](_0x5094c5,{add:add=[],remove:remove=[]}={}){const _0x4ebe99=_0x596030,_0x9d703f=String(_0x5094c5);return this[_0x4ebe99(0x204)](_0x9d703f,(_0x505fe2,_0x3dbcc9)=>{const _0x5a8dd2=_0x4ebe99,_0x16280e=String(_0x505fe2[_0x5a8dd2(0x672)]),_0x2a3262=new Set((remove||[])[_0x5a8dd2(0x1c9)](_0x314919=>String(_0x314919[_0x5a8dd2(0x4a6)])+'\x00'+String(_0x314919[_0x5a8dd2(0x781)]))),_0x30b794=[];if(_0x2a3262[_0x5a8dd2(0x670)]>0x0)for(const {key:_0x53a660,value:_0xd2ed3}of _0x3dbcc9[_0x5a8dd2(0x569)](_0x3040e9,{})){if(!_0xd2ed3||_0xd2ed3[_0x5a8dd2(0x3ad)]!==_0x9d703f)continue;if(_0x2a3262[_0x5a8dd2(0x73b)](_0xd2ed3[_0x5a8dd2(0x4a6)]+'\x00'+_0xd2ed3[_0x5a8dd2(0x781)]))_0x30b794[_0x5a8dd2(0x235)](_0x53a660);}const _0xece1ab=(add||[])[_0x5a8dd2(0x1c9)](_0x2e74c4=>({'id':_0x13e7e8['randomUUID'](),'type':String(_0x2e74c4['type']),'key':String(_0x2e74c4['key'])}));return{'applyInterests':_0x5dc6ea=>{const _0x1982dc=_0x5a8dd2;for(const _0x49ce96 of _0x30b794)_0x5dc6ea[_0x1982dc(0x4bc)](_0x3040e9,_0x49ce96);for(const _0x11a3a8 of _0xece1ab)_0x5dc6ea[_0x1982dc(0x629)](_0x3040e9,_0x11a3a8['id'],{'sessionId':_0x9d703f,'dataEnv':_0x16280e,'type':_0x11a3a8[_0x1982dc(0x4a6)],'key':_0x11a3a8['key']});}};});}async[_0x596030(0x15e)](_0x180cb9,_0x52b847){const _0x1490d8=_0x596030;_0x56967e(_0x52b847);const _0x390f0c=String(_0x180cb9);return this[_0x1490d8(0x204)](_0x390f0c,()=>({'sessionPatch':{'filter':_0x52b847??null}}));}async[_0x596030(0xae)](_0x533a5c,_0x33645b,_0x1a8755){const _0x285000=_0x596030,_0x20e6a8=this[_0x285000(0x5f7)](),_0x7b8489=String(_0x533a5c),_0x8a2356=String(_0x33645b),_0x2d248d=String(_0x1a8755),_0x2162db=[];for(const {key:_0x32c054,value:_0x4d0098}of _0x20e6a8[_0x285000(0x569)](_0x3040e9,{})){if(_0x4d0098&&_0x4d0098[_0x285000(0x3ad)]===_0x7b8489&&_0x4d0098[_0x285000(0x4a6)]===_0x8a2356&&_0x4d0098[_0x285000(0x781)]===_0x2d248d)_0x2162db[_0x285000(0x235)](_0x32c054);}for(const _0x2b0b22 of _0x2162db)await _0x20e6a8[_0x285000(0x4bc)](_0x3040e9,_0x2b0b22);return _0x2162db['length'];}async[_0x596030(0x62d)](_0x1c4901,_0x225192){const _0x5ca8ab=String(_0x1c4901);return this['_commitSessionMutation'](_0x5ca8ab,(_0x1a0979,_0x3af65c)=>{const _0x5c4008=_0x5ce2,_0x148715=String(_0x1a0979[_0x5c4008(0x672)]),_0x53f2a5=[];for(const {key:_0x2a4e91,value:_0x430c4a}of _0x3af65c[_0x5c4008(0x569)](_0x3040e9,{})){if(_0x430c4a&&_0x430c4a[_0x5c4008(0x3ad)]===_0x5ca8ab)_0x53f2a5[_0x5c4008(0x235)](_0x2a4e91);}const _0x5c8439=(_0x225192||[])[_0x5c4008(0x1c9)](_0x44cf28=>({'id':_0x13e7e8[_0x5c4008(0x472)](),'type':String(_0x44cf28[_0x5c4008(0x4a6)]),'key':String(_0x44cf28[_0x5c4008(0x781)])}));return{'applyInterests':_0x56e5b6=>{const _0x12eca2=_0x5c4008;for(const _0x5f5da1 of _0x53f2a5)_0x56e5b6[_0x12eca2(0x4bc)](_0x3040e9,_0x5f5da1);for(const _0x21a57a of _0x5c8439)_0x56e5b6[_0x12eca2(0x629)](_0x3040e9,_0x21a57a['id'],{'sessionId':_0x5ca8ab,'dataEnv':_0x148715,'type':_0x21a57a['type'],'key':_0x21a57a[_0x12eca2(0x781)]});}};});}[_0x596030(0x43d)](_0x5ec2ed,_0x4304d9,_0x44eb2e){const _0x5b67a7=_0x596030,_0x5ce5dc=this[_0x5b67a7(0x5f7)](),_0x21ad68=String(_0x5ec2ed),_0x348a34=String(_0x4304d9),_0x32e1a1=String(_0x44eb2e),_0x315f30=new Set();for(const {value:_0x1a201e}of _0x5ce5dc[_0x5b67a7(0x371)](_0x3040e9,_0x100c8f,{'start':[_0x21ad68,_0x348a34,_0x32e1a1],'end':[_0x21ad68,_0x348a34,_0x32e1a1,'']})){if(_0x1a201e&&_0x1a201e[_0x5b67a7(0x3ad)])_0x315f30['add'](_0x1a201e[_0x5b67a7(0x3ad)]);}return[..._0x315f30];}[_0x596030(0x572)](_0x419b07,_0x439583){const _0x496dc1=_0x596030,_0x55a88d=this[_0x496dc1(0x5f7)](),_0x19be0a=String(_0x419b07),_0x13a102=String(_0x439583),_0x1100f3=[];for(const {value:_0x777ab}of _0x55a88d[_0x496dc1(0x371)](_0x112a44,_0x3693c2,{'start':[_0x19be0a,_0x13a102],'end':[_0x19be0a,_0x13a102,'\uffff']})){if(!_0x777ab||_0x777ab[_0x496dc1(0x672)]!==_0x19be0a||_0x777ab['type']!==_0x13a102)continue;if(_0x777ab['filter']==null)continue;_0x1100f3[_0x496dc1(0x235)]({'sessionId':_0x777ab[_0x496dc1(0x3ad)],'filter':_0x777ab[_0x496dc1(0x3ce)],'version':Number[_0x496dc1(0x6b5)](_0x777ab[_0x496dc1(0x7a4)])?_0x777ab[_0x496dc1(0x7a4)]:0x0});}return _0x1100f3;}async['sweepExpired'](){return this['_env']()['sweepExpiredTTL']();}}return okdbSubscriptionsStore[_0x596030(0x62f)]=_0xcc13d9,okdbSubscriptionsStore['exports'][_0x596030(0x1d8)]=_0x26b6c4,okdbSubscriptionsStore[_0x596030(0x62f)][_0x596030(0x4ce)]=_0x112a44,okdbSubscriptionsStore[_0x596030(0x62f)][_0x596030(0x3f6)]=_0x3040e9,okdbSubscriptionsStore['exports'][_0x596030(0x73c)]=_0x100c8f,okdbSubscriptionsStore[_0x596030(0x62f)][_0x596030(0x64f)]=_0x3693c2,okdbSubscriptionsStore[_0x596030(0x62f)][_0x596030(0x334)]=_0x3baebd,okdbSubscriptionsStore[_0x596030(0x62f)];}var version=_0x30747f(0x7a0),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0xe9c541=_0x30747f;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x178f21='~engines',_0x53d613=0xa,_0xade393=Object[_0xe9c541(0x71f)]({'CREATED':_0xe9c541(0x6e9),'ONLINE':_0xe9c541(0x4f4),'STOPPED':'stopped','INACTIVE':_0xe9c541(0x741),'ERROR':_0xe9c541(0x373),'REMOVED':_0xe9c541(0x196)}),_0x4d1e1f=Object[_0xe9c541(0x71f)]({'STARTED':_0xe9c541(0x527),'STOPPED':_0xe9c541(0x259),'ERROR':_0xe9c541(0x373),'INSTALLED':'installed','UNINSTALLED':_0xe9c541(0x517)}),_0x19c6b2=Object[_0xe9c541(0x71f)](new Set([_0xade393['ONLINE'],_0xade393[_0xe9c541(0x128)],_0xade393[_0xe9c541(0x25c)],_0xade393[_0xe9c541(0x6e6)]]));function _0x19c1fd(_0x2f77f4){const _0x58007d=_0xe9c541;return _0x2f77f4?.[_0x58007d(0x758)]===![]?_0xade393[_0x58007d(0x128)]:_0x58007d(0x6e0);}return okdbEnginesEnums={'TYPE_ENGINES':_0x178f21,'MAX_UPDATE_RETRIES':_0x53d613,'ENGINE_STATUS':_0xade393,'ENGINE_EVENTS':_0x4d1e1f,'UPDATABLE_STATUSES':_0x19c6b2,'durableOnlyEngineState':_0x19c1fd},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x15a675=_0x30747f;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x42ea5d=Object[_0x15a675(0x71f)]({'EMBEDDER':'embedder','INDEXER':_0x15a675(0x227),'SEARCH':_0x15a675(0x300),'WORKER':_0x15a675(0x686)}),_0x450be4=Object[_0x15a675(0x71f)]({'PENDING':'pending','DONE':'done','FAILED':_0x15a675(0x37c),'DELETED':_0x15a675(0x249)}),_0x5a8e52=Object[_0x15a675(0x71f)]({'INDEXER_READY':_0x15a675(0x34e),'INDEXER_FLUSHED':'embeddings:indexer:flushed','INDEXER_DOC_DONE':_0x15a675(0x579),'INDEXER_DOC_FAILED':_0x15a675(0x385),'INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':_0x15a675(0x625),'DOC_STATUS_CHANGE':'embeddings:doc:status_change','PIPELINE_READY':_0x15a675(0x51e)}),_0x5033de=Object[_0x15a675(0x71f)]({'MODELS':_0x15a675(0x41b),'DOC_STATUS_PREFIX':_0x15a675(0x25b),'VEC_PREFIX':_0x15a675(0x73a)});return enums={'ENGINE_TYPES':_0x42ea5d,'INDEXER_DOC_STATUS':_0x450be4,'EMBEDDINGS_EVENTS':_0x5a8e52,'INTERNAL_TYPES':_0x5033de},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x3c9d8b=_0x30747f;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x29def2=Object['freeze']({'PENDING':'pending','RUNNING':_0x3c9d8b(0x74b),'DONE':_0x3c9d8b(0x4c4),'FAILED':_0x3c9d8b(0x37c)}),_0x3d6ebc=Object[_0x3c9d8b(0x71f)]({'ACTIVE':'active','PAUSED':_0x3c9d8b(0x6dc),'DRAINING':_0x3c9d8b(0x6d1)}),_0x110711=Object[_0x3c9d8b(0x71f)]({'ENQUEUED':_0x3c9d8b(0x435),'DONE':_0x3c9d8b(0x71d),'FAILED':'queue:failed','RETRY':_0x3c9d8b(0x615),'RESCHEDULED':_0x3c9d8b(0x5af),'REMOVED':_0x3c9d8b(0x4d6),'RECONCILED':_0x3c9d8b(0x159),'CLEAR_PROGRESS':_0x3c9d8b(0x2cb),'CLEAR_DONE':_0x3c9d8b(0x530),'LOG':_0x3c9d8b(0xf0)}),_0x3463e9=Object[_0x3c9d8b(0x71f)](['debug',_0x3c9d8b(0x41f),_0x3c9d8b(0x266),_0x3c9d8b(0x373)]),_0x41b312=0x1,_0x24380f=0xc350,_0x264a51=0x400,_0x4687c3=0x800;function _0x5a3378(_0x58ac8f){const _0x340160=_0x3c9d8b;return _0x58ac8f!=null&&typeof _0x58ac8f===_0x340160(0x12c)&&(_0x58ac8f[_0x340160(0x43a)]===Object||Object['getPrototypeOf'](_0x58ac8f)===null);}function _0x4877fb(_0x5db151,_0x4d6cca,_0x30ef74,_0x254da8){const _0x1108bf=_0x3c9d8b;if(_0x5db151==null)return _0x4d6cca;const _0x216050=Number(_0x5db151);if(!Number['isFinite'](_0x216050))return _0x4d6cca;const _0x247461=Math[_0x1108bf(0xd3)](_0x216050);if(_0x247461<_0x30ef74)return _0x30ef74;if(_0x247461>_0x254da8)return _0x254da8;return _0x247461;}function _0xbeeaf8(_0x2e5a8b){const _0xd2021b=_0x3c9d8b;if(!_0x2e5a8b)return[];if(typeof _0x2e5a8b===_0xd2021b(0x395))_0x2e5a8b=[_0x2e5a8b];if(!Array[_0xd2021b(0x82)](_0x2e5a8b))throw new Error('tags\x20must\x20be\x20array\x20or\x20string');const _0x110ee0=[],_0x732112=new Set();for(const _0x2cf4c8 of _0x2e5a8b){if(_0x2cf4c8==null)continue;const _0x5ef7fc=String(_0x2cf4c8)['trim']();if(!_0x5ef7fc)continue;if(_0x5ef7fc['length']>0x80)throw new Error(_0xd2021b(0x69b));if(_0x732112['has'](_0x5ef7fc))continue;_0x732112['add'](_0x5ef7fc),_0x110ee0[_0xd2021b(0x235)](_0x5ef7fc);if(_0x110ee0['length']>=0x20)break;}return _0x110ee0;}function _0x4f323d(_0x586089){const _0x21ae75=_0x3c9d8b;if(_0x586089==null)return null;const _0xbd3e97=String(_0x586089)[_0x21ae75(0x1bc)]();if(!_0xbd3e97)return null;if(_0xbd3e97[_0x21ae75(0x789)]>0x80)throw new Error(_0x21ae75(0xb1));return _0xbd3e97;}function _0x34e9a7(_0x136bb3,_0x5d0840=0x1){const _0x2dfcb0=_0x3c9d8b;if(_0x136bb3==null)return[];if(typeof _0x136bb3===_0x2dfcb0(0x395)){const _0x334708=_0x4f323d(_0x136bb3);if(!_0x334708)return[];return[{'id':_0x334708,'tokens':_0x5d0840}];}if(!Array[_0x2dfcb0(0x82)](_0x136bb3))throw new Error(_0x2dfcb0(0x447));const _0x3bb9e3=[],_0x25bce7=new Set();for(const _0x323f3c of _0x136bb3){let _0x233f16,_0x293269;if(Array[_0x2dfcb0(0x82)](_0x323f3c))[_0x233f16,_0x293269]=_0x323f3c;else{if(_0x323f3c&&typeof _0x323f3c===_0x2dfcb0(0x12c))({id:_0x233f16,tokens:_0x293269}=_0x323f3c);else{if(typeof _0x323f3c===_0x2dfcb0(0x395))_0x233f16=_0x323f3c,_0x293269=_0x5d0840;else continue;}}_0x233f16=_0x4f323d(_0x233f16);if(!_0x233f16)continue;const _0xf553c7=_0x293269==null?_0x5d0840:Math[_0x2dfcb0(0xd3)](Number(_0x293269));if(!Number[_0x2dfcb0(0x6b5)](_0xf553c7)||_0xf553c7<0x1)throw new Error(_0x2dfcb0(0x6ae)+_0x233f16+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0xf553c7>0xf4240)throw new Error(_0x2dfcb0(0x6ae)+_0x233f16+_0x2dfcb0(0x225));if(_0x25bce7[_0x2dfcb0(0x73b)](_0x233f16))throw new Error('duplicate\x20bucket:\x20'+_0x233f16);_0x25bce7[_0x2dfcb0(0x3e2)](_0x233f16),_0x3bb9e3[_0x2dfcb0(0x235)]({'id':_0x233f16,'tokens':_0xf553c7});}return _0x3bb9e3;}function _0x43dad5(_0x3c25a8,_0x179564=0x400){const _0xc7d2c1=_0x3c9d8b;if(_0x3c25a8==null)return null;const _0x5bace3=String(_0x3c25a8)[_0xc7d2c1(0x106)](0x0,_0x179564);return _0x5bace3||null;}function _0x3e2a8b(_0x2bdb43){const _0x4e0066=_0x3c9d8b;if(_0x2bdb43==null)return null;if(_0x2bdb43[_0x4e0066(0x781)]!==undefined&&_0x2bdb43[_0x4e0066(0x2ff)]!==undefined)return _0x2bdb43;return{'key':_0x2bdb43['id']??null,'value':_0x2bdb43};}function _0xb1f068(_0x1bbc8c){const _0x2378bb=_0x3c9d8b;let _0x42dad5=_0x1bbc8c;if(typeof _0x1bbc8c===_0x2378bb(0x395))_0x42dad5={'message':_0x1bbc8c};if(!_0x5a3378(_0x42dad5))throw new Error(_0x2378bb(0x230));const _0x1ecc9b=_0x42dad5['level']==null?_0x2378bb(0x41f):String(_0x42dad5['level'])['toLowerCase']();if(!_0x3463e9[_0x2378bb(0x116)](_0x1ecc9b))throw new Error(_0x2378bb(0x685)+_0x1ecc9b);if(_0x42dad5[_0x2378bb(0x362)]==null)throw new Error(_0x2378bb(0x356));const _0x30fa66=String(_0x42dad5[_0x2378bb(0x362)])['slice'](0x0,_0x264a51);let _0x4bc16f=null;if(_0x42dad5[_0x2378bb(0x283)]!=null){if(!_0x5a3378(_0x42dad5[_0x2378bb(0x283)]))throw new Error(_0x2378bb(0x77b));if(JSON[_0x2378bb(0x76f)](_0x42dad5['fields'])[_0x2378bb(0x789)]>_0x4687c3)throw new Error(_0x2378bb(0x32e));_0x4bc16f=_0x42dad5[_0x2378bb(0x283)];}return{'level':_0x1ecc9b,'message':_0x30fa66,'fields':_0x4bc16f,'ts':Date[_0x2378bb(0x2aa)]()};}function _0x3c42e7(_0x29b2ab){const _0x21126c=_0x3c9d8b;if(_0x29b2ab==null)return;if(!Number[_0x21126c(0x252)](_0x29b2ab)||_0x29b2ab<_0x41b312||_0x29b2ab>_0x24380f)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x41b312+',\x20'+_0x24380f+']');}function _0x278f45(_0x3c3ea5){const _0x5f13f8=_0x3c9d8b;if(!_0x5a3378(_0x3c3ea5))throw new Error(_0x5f13f8(0x601));if(typeof _0x3c3ea5['id']!=='string'||_0x3c3ea5['id'][_0x5f13f8(0x789)]<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x3c3ea5[_0x5f13f8(0x4a6)]!==_0x5f13f8(0x395)||!_0x3c3ea5['type'])throw new Error(_0x5f13f8(0x11c));if(!Object[_0x5f13f8(0x6de)](_0x29def2)[_0x5f13f8(0x116)](_0x3c3ea5[_0x5f13f8(0x5e5)]))throw new Error(_0x5f13f8(0x538)+_0x3c3ea5[_0x5f13f8(0x5e5)]);for(const _0x20b871 of[_0x5f13f8(0x475),'created',_0x5f13f8(0x635)]){if(typeof _0x3c3ea5[_0x20b871]!=='number'||!Number[_0x5f13f8(0x6b5)](_0x3c3ea5[_0x20b871]))throw new Error(_0x5f13f8(0x448)+_0x20b871+_0x5f13f8(0x3ed));}if(_0x3c3ea5[_0x5f13f8(0x3be)]!=null&&(typeof _0x3c3ea5[_0x5f13f8(0x3be)]!==_0x5f13f8(0x7c0)||!Number[_0x5f13f8(0x6b5)](_0x3c3ea5[_0x5f13f8(0x3be)])))throw new Error('job.finished\x20must\x20be\x20number|null');if(!Number['isInteger'](_0x3c3ea5[_0x5f13f8(0x23f)])||_0x3c3ea5[_0x5f13f8(0x23f)]<0x0)throw new Error(_0x5f13f8(0x546));if(!Number[_0x5f13f8(0x252)](_0x3c3ea5[_0x5f13f8(0x667)]))throw new Error(_0x5f13f8(0x24c));if(_0x3c3ea5[_0x5f13f8(0x788)]!==null&&_0x3c3ea5['max_tries']!==Infinity&&(!Number[_0x5f13f8(0x252)](_0x3c3ea5[_0x5f13f8(0x788)])||_0x3c3ea5['max_tries']<0x1))throw new Error(_0x5f13f8(0x774));if(_0x3c3ea5[_0x5f13f8(0x681)]!=null&&(!Number[_0x5f13f8(0x252)](_0x3c3ea5[_0x5f13f8(0x681)])||_0x3c3ea5[_0x5f13f8(0x681)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x3c3ea5[_0x5f13f8(0x2a0)]!=null&&(typeof _0x3c3ea5[_0x5f13f8(0x2a0)]!==_0x5f13f8(0x7c0)||_0x3c3ea5[_0x5f13f8(0x2a0)]<0x1))throw new Error(_0x5f13f8(0x624));if(_0x3c3ea5[_0x5f13f8(0x700)]!=null&&typeof _0x3c3ea5[_0x5f13f8(0x700)]!==_0x5f13f8(0x395))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x3c3ea5[_0x5f13f8(0x3d5)]!=null&&(typeof _0x3c3ea5[_0x5f13f8(0x3d5)]!=='number'||!Number['isFinite'](_0x3c3ea5[_0x5f13f8(0x3d5)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x3c3ea5[_0x5f13f8(0x5cb)]!=null&&typeof _0x3c3ea5[_0x5f13f8(0x5cb)]!==_0x5f13f8(0x395))throw new Error(_0x5f13f8(0x2b6));if(_0x3c3ea5['bucket_tokens']!=null&&(!Number[_0x5f13f8(0x252)](_0x3c3ea5['bucket_tokens'])||_0x3c3ea5['bucket_tokens']<0x1))throw new Error(_0x5f13f8(0x7bd));if(_0x3c3ea5['buckets']!=null){if(!Array[_0x5f13f8(0x82)](_0x3c3ea5[_0x5f13f8(0x135)]))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x47dce4 of _0x3c3ea5['buckets']){if(!_0x47dce4||typeof _0x47dce4!=='object')throw new Error(_0x5f13f8(0x63e));if(typeof _0x47dce4['id']!=='string'||!_0x47dce4['id'][_0x5f13f8(0x1bc)]())throw new Error(_0x5f13f8(0x7b9));if(!Number[_0x5f13f8(0x252)](_0x47dce4[_0x5f13f8(0x296)])||_0x47dce4[_0x5f13f8(0x296)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x3c3ea5[_0x5f13f8(0x56e)]!=null&&typeof _0x3c3ea5[_0x5f13f8(0x56e)]!==_0x5f13f8(0x395))throw new Error(_0x5f13f8(0x18f));if(_0x3c3ea5[_0x5f13f8(0x75c)]!=null&&typeof _0x3c3ea5['idempotency_key']!=='string')throw new Error(_0x5f13f8(0x2d4));if(!Array[_0x5f13f8(0x82)](_0x3c3ea5[_0x5f13f8(0x544)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x3c3ea5[_0x5f13f8(0xbf)]!=null&&typeof _0x3c3ea5[_0x5f13f8(0xbf)]!==_0x5f13f8(0x395))throw new Error(_0x5f13f8(0x450));if(_0x3c3ea5[_0x5f13f8(0x60f)]!=null&&typeof _0x3c3ea5[_0x5f13f8(0x60f)]!==_0x5f13f8(0x395))throw new Error(_0x5f13f8(0x4db));if(_0x3c3ea5[_0x5f13f8(0x2bc)]!=null&&typeof _0x3c3ea5['status_message']!==_0x5f13f8(0x395))throw new Error(_0x5f13f8(0x21a));if(_0x3c3ea5[_0x5f13f8(0x63b)]!=null&&typeof _0x3c3ea5[_0x5f13f8(0x63b)]!==_0x5f13f8(0x395))throw new Error(_0x5f13f8(0x748));for(const _0x56dd8f of[_0x5f13f8(0x1e7),_0x5f13f8(0x388)]){const _0x6c8ed8=_0x3c3ea5[_0x56dd8f];if(_0x6c8ed8!=null&&(!Number['isInteger'](_0x6c8ed8)||_0x6c8ed8<0x0))throw new Error(_0x5f13f8(0x448)+_0x56dd8f+_0x5f13f8(0x1cf));}_0x3c42e7(_0x3c3ea5['logCap']);}function _0x5770f2(_0x550a05){const _0x415756=_0x3c9d8b;if(!_0x5a3378(_0x550a05))throw new Error('job\x20type\x20must\x20be\x20object');if(typeof _0x550a05['id']!==_0x415756(0x395)||!_0x550a05['id'][_0x415756(0x1bc)]())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object['values'](_0x3d6ebc)[_0x415756(0x116)](_0x550a05[_0x415756(0x5e5)]))throw new Error('invalid\x20job_type.status:\x20'+_0x550a05[_0x415756(0x5e5)]);if(_0x550a05['max_concurrency']!=null&&(!Number[_0x415756(0x252)](_0x550a05[_0x415756(0x291)])||_0x550a05[_0x415756(0x291)]<0x1))throw new Error(_0x415756(0x102));if(_0x550a05[_0x415756(0x3bf)]!=null){if(!_0x5a3378(_0x550a05['defaults']))throw new Error(_0x415756(0x1e0));const _0x529df3=_0x550a05[_0x415756(0x3bf)];if(_0x529df3['max_tries']!=null&&(!Number[_0x415756(0x252)](_0x529df3[_0x415756(0x788)])||_0x529df3[_0x415756(0x788)]<0x1))throw new Error(_0x415756(0xf8));if(_0x529df3[_0x415756(0x681)]!=null&&(!Number[_0x415756(0x252)](_0x529df3[_0x415756(0x681)])||_0x529df3[_0x415756(0x681)]<0x0))throw new Error(_0x415756(0x298));if(_0x529df3[_0x415756(0x2a0)]!=null&&(typeof _0x529df3[_0x415756(0x2a0)]!==_0x415756(0x7c0)||_0x529df3[_0x415756(0x2a0)]<0x1))throw new Error(_0x415756(0x3d3));if(_0x529df3[_0x415756(0x667)]!=null&&!Number['isInteger'](_0x529df3[_0x415756(0x667)]))throw new Error(_0x415756(0x241));if(_0x529df3[_0x415756(0x344)]!=null&&(!Number[_0x415756(0x252)](_0x529df3[_0x415756(0x344)])||_0x529df3['ttl']<0x0))throw new Error('job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null');for(const _0x23d719 of[_0x415756(0x1e7),_0x415756(0x388)]){if(_0x529df3[_0x23d719]!=null&&(!Number[_0x415756(0x252)](_0x529df3[_0x23d719])||_0x529df3[_0x23d719]<0x0))throw new Error('job_type.defaults.'+_0x23d719+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x529df3[_0x415756(0x135)]!=null&&!Array[_0x415756(0x82)](_0x529df3[_0x415756(0x135)]))throw new Error(_0x415756(0x50a));_0x3c42e7(_0x529df3[_0x415756(0x6e3)]);}if(_0x550a05[_0x415756(0x6f8)]!=null){if(!_0x5a3378(_0x550a05[_0x415756(0x6f8)]))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x5a3378(_0x550a05[_0x415756(0x6f8)]['definition']))throw new Error(_0x415756(0xd6));if(typeof _0x550a05[_0x415756(0x6f8)][_0x415756(0x4f1)]!==_0x415756(0x355))throw new Error('job_type.payload_schema.enforce\x20must\x20be\x20boolean');}for(const _0x223adb of[_0x415756(0x231),_0x415756(0x7ab)]){if(typeof _0x550a05[_0x223adb]!==_0x415756(0x7c0)||!Number[_0x415756(0x6b5)](_0x550a05[_0x223adb]))throw new Error(_0x415756(0x15b)+_0x223adb+'\x20must\x20be\x20number');}}function _0xe1ed94(_0x19a28c){const _0x2dd1e8=_0x3c9d8b;if(!_0x5a3378(_0x19a28c))throw new Error('bucket\x20must\x20be\x20object');if(typeof _0x19a28c['id']!==_0x2dd1e8(0x395)||!_0x19a28c['id'][_0x2dd1e8(0x1bc)]())throw new Error(_0x2dd1e8(0x586));if(!Number[_0x2dd1e8(0x252)](_0x19a28c['tokens'])||_0x19a28c[_0x2dd1e8(0x296)]<0x0)throw new Error(_0x2dd1e8(0x6be));if(!Number[_0x2dd1e8(0x252)](_0x19a28c[_0x2dd1e8(0x295)])||_0x19a28c[_0x2dd1e8(0x295)]<0x0)throw new Error(_0x2dd1e8(0x354));if(_0x19a28c[_0x2dd1e8(0x296)]>_0x19a28c[_0x2dd1e8(0x295)])throw new Error(_0x2dd1e8(0x7bf));if(!Number[_0x2dd1e8(0x252)](_0x19a28c[_0x2dd1e8(0x734)])||_0x19a28c[_0x2dd1e8(0x734)]<0x0)throw new Error(_0x2dd1e8(0x57d));if(!Number[_0x2dd1e8(0x252)](_0x19a28c[_0x2dd1e8(0x1ac)])||_0x19a28c[_0x2dd1e8(0x1ac)]<0x0)throw new Error(_0x2dd1e8(0x581));if(typeof _0x19a28c['updated']!==_0x2dd1e8(0x7c0)||!Number[_0x2dd1e8(0x6b5)](_0x19a28c[_0x2dd1e8(0x635)]))throw new Error(_0x2dd1e8(0x737));}return okdbQueueValidate={'STATUS':_0x29def2,'JOB_TYPE_STATUS':_0x3d6ebc,'QUEUE_EVENTS':_0x110711,'LOG_LEVELS':_0x3463e9,'LOG_CAP_MIN':_0x41b312,'LOG_CAP_MAX':_0x24380f,'clampInt':_0x4877fb,'asNullableString':_0x43dad5,'normalizeResult':_0x3e2a8b,'normalizeTags':_0xbeeaf8,'normalizeBucket':_0x4f323d,'normalizeBuckets':_0x34e9a7,'normalizeLogEntry':_0xb1f068,'validateJobShape':_0x278f45,'validateJobTypeShape':_0x5770f2,'validateBucketShape':_0xe1ed94},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x1ce2ef=0x2**0x1f-0x1;function _0x2a0ada(_0x1e059e){if(!(_0x1e059e>0x0))return 0x0;return _0x1e059e>_0x1ce2ef?_0x1ce2ef:_0x1e059e;}function _0x559b83(_0x556759){return _0x556759===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x1ce2ef,'clampTimerDelay':_0x2a0ada,'isNeverDelay':_0x559b83},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x44d938=_0x30747f;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x210485=require$$0$6,{clampTimerDelay:_0x2fc9a3}=requireOkdbTimers(),{EVENTS:_0x2c1cee,CHANGE_ACTIONS:_0x568cbc}=requireOkdbEnums(),{LOOP:_0x4ca330}=requireOkdbLoopMonitor(),_0x4add50=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x3cf8c4=0x5,_0x422998=0x2710;class _0x47710b extends _0x210485{constructor(_0x452376,_0x41f2d0={}){const _0xa95f2c=_0x5ce2;super(),this[_0xa95f2c(0x22a)]=_0x452376,this[_0xa95f2c(0x434)]=_0x41f2d0[_0xa95f2c(0x65f)]??_0x4add50,this['_flushDebounce']=_0x41f2d0['flushDebounce']??_0x3cf8c4,this[_0xa95f2c(0x675)]=_0x41f2d0['dedupeMax']??_0x422998,this[_0xa95f2c(0x616)]=![],this[_0xa95f2c(0x7c5)]=new Map(),this[_0xa95f2c(0x59f)]=new Map(),this[_0xa95f2c(0x63c)]=new Map(),this[_0xa95f2c(0x14a)]=null,this[_0xa95f2c(0x708)]=![],this[_0xa95f2c(0x3af)]=new Set(),this[_0xa95f2c(0x2da)]=new Set(),this[_0xa95f2c(0x1db)]=_0x112dc3=>this[_0xa95f2c(0xfb)](_0x112dc3),this['_onPending']=_0x133fa2=>this[_0xa95f2c(0x171)](_0x133fa2),this[_0xa95f2c(0x638)]=_0x45fecf=>this[_0xa95f2c(0x653)](_0x45fecf),this[_0xa95f2c(0x47b)]=()=>this[_0xa95f2c(0x533)]();}['start'](){const _0x54d6d3=_0x5ce2;if(this[_0x54d6d3(0x616)])return;this['_started']=!![];for(const [_0x2a9008,_0xdd93da]of this[_0x54d6d3(0x22a)][_0x54d6d3(0x6c3)]){if(_0x2a9008[_0x54d6d3(0x52f)]('~'))continue;try{_0xdd93da[_0x54d6d3(0x5a1)]();}catch{}}for(const [_0x24bddc,_0x38c952]of this['okdb'][_0x54d6d3(0x6c3)]){if(_0x24bddc['startsWith']('~'))continue;try{this['_baselines']['set'](_0x24bddc,_0x38c952[_0x54d6d3(0x14b)]()||0x0);}catch{}}const {events:_0x1a24a2}=this[_0x54d6d3(0x22a)];_0x1a24a2['on'](_0x2c1cee[_0x54d6d3(0x593)],this[_0x54d6d3(0x170)]),_0x1a24a2['on'](_0x2c1cee[_0x54d6d3(0x78b)],this['_onItem']),_0x1a24a2['on'](_0x2c1cee[_0x54d6d3(0x57c)],this[_0x54d6d3(0x1db)]),_0x1a24a2['on'](_0x2c1cee[_0x54d6d3(0x502)],this['_onItem']),_0x1a24a2['on'](_0x2c1cee[_0x54d6d3(0x40f)],this[_0x54d6d3(0x638)]),_0x1a24a2[_0x54d6d3(0x654)](_0x2c1cee['SYSTEM_STOPPED'],this[_0x54d6d3(0x47b)]);}['stop'](){const _0x2edf9d=_0x5ce2;if(!this[_0x2edf9d(0x616)])return;this['_started']=![];const {events:_0x3be922}=this['okdb'];_0x3be922[_0x2edf9d(0x1a5)](_0x2c1cee[_0x2edf9d(0x593)],this[_0x2edf9d(0x170)]),_0x3be922[_0x2edf9d(0x1a5)](_0x2c1cee[_0x2edf9d(0x78b)],this[_0x2edf9d(0x1db)]),_0x3be922[_0x2edf9d(0x1a5)](_0x2c1cee['ITEM_UPDATE'],this[_0x2edf9d(0x1db)]),_0x3be922[_0x2edf9d(0x1a5)](_0x2c1cee[_0x2edf9d(0x502)],this[_0x2edf9d(0x1db)]),_0x3be922[_0x2edf9d(0x1a5)](_0x2c1cee[_0x2edf9d(0x40f)],this[_0x2edf9d(0x638)]);try{_0x3be922['off'](_0x2c1cee[_0x2edf9d(0x4c7)],this['_onStop']);}catch{}this[_0x2edf9d(0x14a)]&&(clearTimeout(this[_0x2edf9d(0x14a)]),this[_0x2edf9d(0x14a)]=null),this[_0x2edf9d(0x63c)][_0x2edf9d(0x656)](),this[_0x2edf9d(0x7c5)][_0x2edf9d(0x656)](),this['_baselines'][_0x2edf9d(0x656)](),this[_0x2edf9d(0x3af)][_0x2edf9d(0x656)](),this['_pendingLocal'][_0x2edf9d(0x656)]();}[_0x44d938(0x4c5)](_0x3bc0d9,_0x942458,_0xbe2f25,_0x44ba74){return _0x3bc0d9+'\x00'+_0x942458+'\x00'+_0xbe2f25+'\x00'+_0x44ba74;}[_0x44d938(0x5b6)](_0x44c424,_0x539672,_0x2bd0da,_0x2e90cc){const _0x4cc2ba=_0x44d938,_0x3ba077=this[_0x4cc2ba(0x4c5)](_0x44c424,_0x539672,_0x2bd0da,_0x2e90cc);if(this[_0x4cc2ba(0x3af)]['has'](_0x3ba077))return![];this[_0x4cc2ba(0x3af)][_0x4cc2ba(0x3e2)](_0x3ba077);if(this[_0x4cc2ba(0x3af)]['size']>this['_dedupeMax']){const _0x531281=this[_0x4cc2ba(0x3af)][_0x4cc2ba(0x6de)]()['next']()[_0x4cc2ba(0x2ff)];this['_seen'][_0x4cc2ba(0x155)](_0x531281);}return!![];}['_handlePending'](_0x321734){const _0x4f0fb4=_0x44d938;if(!this['_started']||!_0x321734)return;const {env:_0x1a3c4c,type:_0x302e1f,key:_0x3292cb,clock:_0x53cb9e}=_0x321734;if(_0x1a3c4c==null||_0x302e1f==null||_0x3292cb==null)return;if(typeof _0x1a3c4c===_0x4f0fb4(0x395)&&_0x1a3c4c[_0x4f0fb4(0x52f)]('~'))return;if(typeof _0x302e1f===_0x4f0fb4(0x395)&&_0x302e1f[_0x4f0fb4(0x52f)]('~'))return;this[_0x4f0fb4(0x2da)]['add'](this[_0x4f0fb4(0x4c5)](_0x1a3c4c,_0x302e1f,_0x3292cb,_0x53cb9e)),this[_0x4f0fb4(0x2da)][_0x4f0fb4(0x670)]>this[_0x4f0fb4(0x675)]&&this[_0x4f0fb4(0x2da)][_0x4f0fb4(0x155)](this[_0x4f0fb4(0x2da)]['values']()['next']()[_0x4f0fb4(0x2ff)]);}[_0x44d938(0xfb)](_0x37a2cc){const _0xd458b8=_0x44d938;if(!this[_0xd458b8(0x616)]||!_0x37a2cc)return;const {env:_0x55318c,type:_0x541764,key:_0x41b136,clock:_0x436d48,origin:_0x58ce3c,action:_0x57fefe,newValue:_0x3537e9,oldValue:_0x14e8df}=_0x37a2cc;if(_0x55318c==null||_0x541764==null||_0x41b136==null)return;if(typeof _0x55318c===_0xd458b8(0x395)&&_0x55318c[_0xd458b8(0x52f)]('~'))return;if(typeof _0x541764==='string'&&_0x541764[_0xd458b8(0x52f)]('~'))return;this[_0xd458b8(0x2da)][_0xd458b8(0x155)](this[_0xd458b8(0x4c5)](_0x55318c,_0x541764,_0x41b136,_0x436d48));if(!this[_0xd458b8(0x5b6)](_0x55318c,_0x541764,_0x41b136,_0x436d48))return;const _0x3db9d1=_0x57fefe===_0x568cbc[_0xd458b8(0x126)]?_0xd458b8(0x4bc):_0xd458b8(0x629);this['emit'](_0xd458b8(0x21c),{'env':_0x55318c,'type':_0x541764,'key':_0x41b136,'op':_0x3db9d1,'clock':_0x436d48,'origin':_0x58ce3c,'value':_0x3db9d1===_0xd458b8(0x4bc)?null:_0x3537e9,'prevValue':_0x14e8df});}[_0x44d938(0x653)](_0x559a34){const _0x532778=_0x44d938;if(!this['_started'])return;if(!_0x559a34||typeof _0x559a34[_0x532778(0x326)]!==_0x532778(0x395)||typeof _0x559a34[_0x532778(0x4a6)]!==_0x532778(0x395))return;const {env:_0x39a8da,type:_0x18e4cd}=_0x559a34;if(_0x39a8da[_0x532778(0x52f)]('~')||_0x18e4cd[_0x532778(0x52f)]('~'))return;this[_0x532778(0x63c)]['set'](_0x39a8da+'\x00'+_0x18e4cd,{'env':_0x39a8da,'type':_0x18e4cd}),this[_0x532778(0x429)]();}['_scheduleFlush'](){const _0x245034=_0x44d938;if(this[_0x245034(0x14a)])return;const _0x5b2396=()=>{const _0x132352=_0x245034;this['_flushTimer']=null,this[_0x132352(0x5a5)]()[_0x132352(0x62a)](()=>{});};this[_0x245034(0x14a)]=setTimeout(_0x5b2396,_0x2fc9a3(this[_0x245034(0x50b)]));}async[_0x44d938(0x5a5)](){const _0x20e835=_0x44d938;if(this[_0x20e835(0x708)]){this[_0x20e835(0x429)]();return;}this['_draining']=!![];try{const _0x4facfa=[...this[_0x20e835(0x63c)]['values']()];this['_pending'][_0x20e835(0x656)]();let _0x3c88a1=![];for(const {env:_0x53e8e0,type:_0x5f96b4}of _0x4facfa){try{const _0x273d11=await this[_0x20e835(0x2df)](_0x53e8e0,_0x5f96b4);if(_0x273d11)_0x3c88a1=!![];}catch{this['_pending']['set'](_0x53e8e0+'\x00'+_0x5f96b4,{'env':_0x53e8e0,'type':_0x5f96b4}),_0x3c88a1=!![];}}if(_0x3c88a1||this[_0x20e835(0x63c)][_0x20e835(0x670)]>0x0)this['_scheduleFlush']();}finally{this[_0x20e835(0x708)]=![];}}async[_0x44d938(0x2df)](_0x124723,_0x28c728){const _0x49c0a4=_0x44d938,_0x20b6ba=await this[_0x49c0a4(0x22a)][_0x49c0a4(0x2de)](_0x124723),_0x329e20=_0x124723+'\x00'+_0x28c728;!this[_0x49c0a4(0x7c5)][_0x49c0a4(0x73b)](_0x329e20)&&(!this['_baselines'][_0x49c0a4(0x73b)](_0x124723)&&(_0x20b6ba[_0x49c0a4(0x5a1)](),this[_0x49c0a4(0x59f)][_0x49c0a4(0xc4)](_0x124723,_0x20b6ba['getClock']()||0x0)),this['_cursors']['set'](_0x329e20,this[_0x49c0a4(0x59f)]['get'](_0x124723)));const _0x4ae014=this[_0x49c0a4(0x7c5)][_0x49c0a4(0x1fc)](_0x329e20),_0x40c147=_0x20b6ba['getClock'](_0x28c728)||0x0;if(_0x40c147<=_0x4ae014)return![];const _0x3b19bc=_0x4ae014+this[_0x49c0a4(0x434)],_0xdbbb17=Math[_0x49c0a4(0x220)](_0x40c147,_0x3b19bc),_0x2712c3=_0x4ca330[_0x49c0a4(0x758)]?_0x4ca330['now']():0x0,_0x45a477=Array[_0x49c0a4(0x768)](_0x20b6ba['getChanges'](_0x28c728,_0x4ae014+0x1,_0xdbbb17));let _0x199932=_0x4ae014;for(const _0xf70e64 of _0x45a477){const {clock:_0xeda466,key:_0x2a816d,action:_0x5a6614,origin:_0x1b4f76}=_0xf70e64;if(_0xeda466>_0x199932)_0x199932=_0xeda466;if(_0x2a816d==null)continue;if(this[_0x49c0a4(0x2da)]['has'](this[_0x49c0a4(0x4c5)](_0x124723,_0x28c728,_0x2a816d,_0xeda466)))continue;if(!this[_0x49c0a4(0x5b6)](_0x124723,_0x28c728,_0x2a816d,_0xeda466))continue;let _0x34a47a,_0x1e3e86;if(_0x5a6614===_0x568cbc[_0x49c0a4(0x126)])_0x34a47a=_0x49c0a4(0x4bc),_0x1e3e86=null;else{const _0x1c31d8=_0x20b6ba[_0x49c0a4(0x1fc)](_0x28c728,_0x2a816d);_0x1c31d8==null?(_0x34a47a=_0x49c0a4(0x4bc),_0x1e3e86=null):(_0x34a47a=_0x49c0a4(0x629),_0x1e3e86=_0x1c31d8);}this[_0x49c0a4(0x4eb)]('change',{'env':_0x124723,'type':_0x28c728,'key':_0x2a816d,'op':_0x34a47a,'clock':_0xeda466,'origin':_0x1b4f76,'value':_0x1e3e86});}if(_0x4ca330[_0x49c0a4(0x758)])_0x4ca330['note'](_0x49c0a4(0x651)+_0x124723+':'+_0x28c728,_0x4ca330[_0x49c0a4(0x2aa)]()-_0x2712c3,'n='+_0x45a477[_0x49c0a4(0x789)]);return this[_0x49c0a4(0x7c5)][_0x49c0a4(0xc4)](_0x329e20,Math[_0x49c0a4(0x702)](_0x199932,_0xdbbb17)),_0x20b6ba['getClock'](_0x28c728)>_0xdbbb17;}['status'](){const _0x4bcd3d=_0x44d938;return{'started':this['_started'],'quantum':this['_quantum'],'flushDebounce':this['_flushDebounce'],'cursors':Object[_0x4bcd3d(0x25a)]([...this[_0x4bcd3d(0x7c5)][_0x4bcd3d(0x695)]()]['map'](([_0x405476,_0xc97884])=>[_0x405476[_0x4bcd3d(0x330)]('\x00',':'),_0xc97884])),'pending':this[_0x4bcd3d(0x63c)][_0x4bcd3d(0x670)],'seen':this[_0x4bcd3d(0x3af)][_0x4bcd3d(0x670)]};}}return _0x47710b['CHANGEFEED_QUANTUM']=_0x4add50,okdbChangefeed={'OKDBChangefeed':_0x47710b},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x360949=_0x30747f;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x566298}=requireOkdbEnums(),_0x25cab7=new Set([_0x566298[_0x360949(0x78b)],_0x566298['ITEM_UPDATE'],_0x566298[_0x360949(0x502)]]),{ENGINE_EVENTS:_0x55329f}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x1a47d8}=requireEnums(),{QUEUE_EVENTS:_0x544574}=requireOkdbQueueValidate(),_0x430844=Object[_0x360949(0x6de)](_0x566298),_0x298521=Object[_0x360949(0x6de)](_0x55329f)[_0x360949(0x1c9)](_0x52f892=>_0x360949(0x3c1)+_0x52f892),_0xaf8ce2=Object[_0x360949(0x6de)](_0x1a47d8),_0x25e9c0=Object[_0x360949(0x6de)](_0x544574),_0x309264=[_0x360949(0x153),'processor:progress',_0x360949(0x1fa),_0x360949(0x4c8),_0x360949(0x592),_0x360949(0x1b9)],_0x38135a=[..._0x430844,..._0x298521,..._0xaf8ce2,..._0x25e9c0,..._0x309264,_0x360949(0x54d)],_0xaa06e4=new Set(_0x38135a),_0x2b35d3=new Set([_0x566298[_0x360949(0x78b)],_0x566298[_0x360949(0x57c)],_0x566298[_0x360949(0x502)],_0x566298['TXN_START'],_0x566298['TXN_END'],_0x566298[_0x360949(0x7a5)],_0x566298['SYSTEM_CLOCK_CHANGE'],_0x566298[_0x360949(0x7be)],_0x1a47d8[_0x360949(0x60d)],_0x1a47d8[_0x360949(0x5e0)],_0x1a47d8['INDEXER_DOC_QUEUED'],_0x1a47d8[_0x360949(0x76b)],'processor:progress']),_0x2fc06c=_0x38135a[_0x360949(0x3ce)](_0x3a47d3=>_0x3a47d3==='log'||!_0x2b35d3['has'](_0x3a47d3)),_0x1eabea=0x14,_0x213883=0xc8;class _0x37324e{constructor(_0x32a865,_0x301eeb={}){const _0x50d27d=_0x360949;this[_0x50d27d(0x22a)]=_0x32a865,this[_0x50d27d(0xe4)]=_0x301eeb[_0x50d27d(0x701)]??_0x1eabea,this[_0x50d27d(0xa5)]=_0x301eeb[_0x50d27d(0x375)]??_0x213883,this[_0x50d27d(0x39e)]=new Set(),this[_0x50d27d(0xd8)]=[],this['_listeners']=[],this[_0x50d27d(0x4c9)]=null,this[_0x50d27d(0x378)]=![],this[_0x50d27d(0x72f)]=null,this[_0x50d27d(0x597)]=null;}[_0x360949(0x22b)](){const _0x217362=_0x360949;if(this[_0x217362(0x378)])return;this[_0x217362(0x378)]=!![];const {okdb:_0x2cf6b}=this;this[_0x217362(0x4c9)]=_0x2cf6b[_0x217362(0x54d)][_0x217362(0x22b)](_0x35c2fa=>this[_0x217362(0x73d)](_0x217362(0x54d),_0x35c2fa));for(const _0x84fbd0 of _0x38135a){if(_0x84fbd0==='log')continue;const _0x28a4e3=_0x25cab7[_0x217362(0x73b)](_0x84fbd0),_0x2a4c15=_0xeb514a=>{if(_0x28a4e3&&this['_feed'])return;this['_push'](_0x84fbd0,_0xeb514a??{});};_0x2cf6b['events']['on'](_0x84fbd0,_0x2a4c15),this[_0x217362(0x785)][_0x217362(0x235)]({'event':_0x84fbd0,'handler':_0x2a4c15});}this[_0x217362(0x47b)]=()=>this[_0x217362(0x6f9)](),_0x2cf6b['events'][_0x217362(0x654)](_0x566298[_0x217362(0x4c7)],this[_0x217362(0x47b)]);}[_0x360949(0x6f9)](){const _0x53004e=_0x360949;if(!this[_0x53004e(0x378)])return;if(this[_0x53004e(0x47b)]){try{this[_0x53004e(0x22a)][_0x53004e(0x599)][_0x53004e(0x1a5)](_0x566298['SYSTEM_STOPPED'],this[_0x53004e(0x47b)]);}catch{}this[_0x53004e(0x47b)]=null;}this[_0x53004e(0x4c9)]?.(),this[_0x53004e(0x4c9)]=null;for(const {event:_0x188eeb,handler:_0x3333d4}of this[_0x53004e(0x785)]){try{this[_0x53004e(0x22a)][_0x53004e(0x599)][_0x53004e(0x1a5)](_0x188eeb,_0x3333d4);}catch{}}this[_0x53004e(0x785)]=[];for(const _0x59b5a3 of this[_0x53004e(0x39e)]){try{_0x59b5a3['close']?.();}catch{}}this[_0x53004e(0x39e)][_0x53004e(0x656)](),this[_0x53004e(0x33d)](),this['_attached']=![];}[_0x360949(0x15d)](_0x57e241){const _0x1f688d=_0x360949;if(!_0x57e241||this['_feed']===_0x57e241)return;this[_0x1f688d(0x33d)](),this[_0x1f688d(0x72f)]=_0x57e241,this[_0x1f688d(0x597)]=_0x133313=>{const _0x24c7a2=_0x1f688d;if(!_0x133313)return;const _0x1dd9ec=_0x133313['op']===_0x24c7a2(0x4bc)?_0x566298[_0x24c7a2(0x502)]:_0x566298['ITEM_UPDATE'];this[_0x24c7a2(0x73d)](_0x1dd9ec,_0x133313);},_0x57e241['on'](_0x1f688d(0x21c),this[_0x1f688d(0x597)]);}['detachFeed'](){const _0x346f0d=_0x360949;if(this[_0x346f0d(0x72f)]&&this[_0x346f0d(0x597)])try{this[_0x346f0d(0x72f)][_0x346f0d(0x1a5)](_0x346f0d(0x21c),this['_onFeedChange']);}catch{}this[_0x346f0d(0x72f)]=null,this[_0x346f0d(0x597)]=null;}[_0x360949(0x49e)](_0x1b1ee9,_0x3898ee){const _0x48a2c2=_0x360949;if(!_0xaa06e4[_0x48a2c2(0x73b)](_0x1b1ee9))return;this[_0x48a2c2(0x73d)](_0x1b1ee9,_0x3898ee??{});}[_0x360949(0x18c)](_0x5a9903,_0x32ddfa,_0x12e307){const _0x386b4f=_0x360949;if(this['_connections']['size']>=this[_0x386b4f(0xe4)])return _0x32ddfa(_0x386b4f(0x696),{'message':_0x386b4f(0x35c),'code':_0x386b4f(0x20e)}),()=>{};const _0x1ae921=this['_resolveFilter'](_0x5a9903),_0x549524={'send':_0x32ddfa,'filter':_0x1ae921,'close':_0x12e307??null};this[_0x386b4f(0x39e)][_0x386b4f(0x3e2)](_0x549524);for(const {event:_0x4b8626,data:_0x2db389}of this[_0x386b4f(0xd8)]){if(_0x1ae921[_0x386b4f(0x73b)](_0x4b8626))try{_0x32ddfa(_0x4b8626,_0x2db389);}catch{}}return()=>this['_connections'][_0x386b4f(0x155)](_0x549524);}[_0x360949(0x716)](){const _0x523b96=_0x360949;if(this[_0x523b96(0x72f)])return this[_0x523b96(0x72f)];const {OKDBChangefeed:_0x178961}=requireOkdbChangefeed(),_0xef4e8f=new _0x178961(this[_0x523b96(0x22a)]);_0xef4e8f[_0x523b96(0x297)](),this[_0x523b96(0x15d)](_0xef4e8f);if(this[_0x523b96(0x22a)]&&!this[_0x523b96(0x22a)][_0x523b96(0x70f)])this['okdb'][_0x523b96(0x70f)]=_0xef4e8f;return this[_0x523b96(0x72f)];}get['connectionCount'](){const _0x3d9613=_0x360949;return this['_connections'][_0x3d9613(0x670)];}[_0x360949(0xd7)](){const _0x3cfaf7=_0x360949;return{'connections':this['connectionCount'],'bufferSize':this['_buffer']['length'],'attached':this[_0x3cfaf7(0x378)],'allEvents':_0x38135a[_0x3cfaf7(0x789)],'defaultEvents':_0x2fc06c[_0x3cfaf7(0x789)]};}static get[_0x360949(0x6c5)](){return _0x38135a;}static get['DEFAULT_EVENTS'](){return _0x2fc06c;}static get[_0x360949(0x232)](){return[..._0x2b35d3];}[_0x360949(0x738)](_0x2b1970){const _0x253292=_0x360949;if(!_0x2b1970||!_0x2b1970[_0x253292(0x789)])return new Set(_0x2fc06c);const _0x5afee5=_0x2b1970[_0x253292(0x3ce)](_0x90e1f5=>_0xaa06e4['has'](_0x90e1f5));return new Set(_0x5afee5[_0x253292(0x789)]?_0x5afee5:_0x2fc06c);}['_push'](_0x8d510d,_0x18189b){const _0x4ae647=_0x360949,_0x22e449={..._0x18189b,'_ts':_0x18189b?.['_ts']??_0x18189b?.['ts']??Date['now']()};this[_0x4ae647(0xd8)][_0x4ae647(0x235)]({'event':_0x8d510d,'data':_0x22e449});if(this[_0x4ae647(0xd8)][_0x4ae647(0x789)]>this[_0x4ae647(0xa5)])this['_buffer']['shift']();for(const _0x55af5e of this['_connections']){if(_0x55af5e[_0x4ae647(0x3ce)][_0x4ae647(0x73b)](_0x8d510d))try{_0x55af5e[_0x4ae647(0x2f8)](_0x8d510d,_0x22e449);}catch{}}}}return okdbRelay=_0x37324e,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x5106ea=_0x30747f;if(hasRequiredLib)return lib[_0x5106ea(0x62f)];return hasRequiredLib=0x1,function(_0x2e8cf9){const _0xf4d1f0=_0x5106ea,_0x3f0b08=require$$0$6,{load:_0x158ad9}=require$$1$1,_0x45b161=requireBridge(),_0x202312=requireWritebatch(),{Pumper:_0x9ad4a0}=requirePump(),{OKDBEnv:_0x591068,HIGH_SENTINEL:_0x3f1875}=requireEnv(),{reclass:_0xea61b,NotImplementedNative:_0x408371,OKDBError:_0x297cf5,optionsArg:_0x1400f8,invalidArgument:_0x383f9e}=requireErrors(),{notImplemented:_0x48d8f2}=requireUnsupported(),{OKDBHttp:_0x4c3924}=requireHttp(),{OKDBFts:_0x200bea}=requireFts(),{OKDBEmbeddings:_0x496bd2}=requireEmbeddings(),{OKDBAuth:_0x2fd2b1}=requireAuth(),{OKDBSync:_0x57a842}=requireSync(),{OKDBMigrate:_0x2061e3}=requireMigrate(),{OKDBFunctions:_0x26f2b2}=requireFunctions(),{OKDBMcp:_0x8ee43d}=requireMcp(),{OKDBEngines:_0x52f973,OKDBPipelines:_0x1d57fe}=requireEngines(),{makeMeta:_0x39c25e,makeLicenses:_0x225a9e,makeLicenseChecker:_0x5c2a85,makeProcesses:_0x2a84d7}=requireSys();let _0x575055=null;function _0x2a4d1(_0x36a554){const _0x2df3a2=_0x5ce2;if(!_0x575055){const {Unpackr:_0x41f467}=require$$18;_0x575055=new _0x41f467({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x575055[_0x2df3a2(0x6b7)](_0x36a554);}let _0x12ba8f=null;function _0xdc95b2(_0x3573bf,_0x4c3d93){const _0x195f4f=_0x5ce2;if(!_0x12ba8f){const {Unpackr:_0x619a76}=require$$18;_0x12ba8f=new _0x619a76({'copyBuffers':!![]});}return _0x12ba8f[_0x195f4f(0x6b7)](_0x3573bf,_0x4c3d93);}const {encodeKey:_0x3fc8bc,KEY_BUF_SIZE:_0x14fc0d,NO_FAST:_0x473b78}=requireKeyenc(),_0x5d4ab2=0x40*0x400,_0x5c27b6=0x4*0x400*0x400;function _0x40007(_0x156724,_0x478431){const _0x3962ef=_0x5ce2,_0x5b629f=_0x156724[0x2],_0x50418c=_0x5b629f?(_0x156724[_0x3962ef(0x789)]-0x3)/Math[_0x3962ef(0x16a)](_0x5b629f):0x0,_0x3215bf=new Array(_0x50418c);let _0x31d626=0x3;if(_0x5b629f===0x2){for(let _0x5d39e7=0x0;_0x5d39e7<_0x50418c;_0x5d39e7++,_0x31d626+=0x2)_0x3215bf[_0x5d39e7]={'key':_0x156724[_0x31d626],'value':_0x156724[_0x31d626+0x1]};}else{if(_0x5b629f===0x3){for(let _0x5023c7=0x0;_0x5023c7<_0x50418c;_0x5023c7++,_0x31d626+=0x3)_0x3215bf[_0x5023c7]={'key':_0x156724[_0x31d626],'value':_0x156724[_0x31d626+0x1],'version':_0x156724[_0x31d626+0x2]};}else{if(_0x5b629f===-0x2){for(let _0x34cb55=0x0;_0x34cb55<_0x50418c;_0x34cb55++,_0x31d626+=0x2)_0x3215bf[_0x34cb55]={'clock':_0x156724[_0x31d626],..._0x156724[_0x31d626+0x1]};}else{if(_0x5b629f===0x4){for(let _0x4c262a=0x0;_0x4c262a<_0x50418c;_0x4c262a++,_0x31d626+=0x4)_0x3215bf[_0x4c262a]={'key':_0x156724[_0x31d626],'value':_0x156724[_0x31d626+0x1],'version':_0x156724[_0x31d626+0x2],'indexKey':_0x156724[_0x31d626+0x3]};}else{if(_0x50418c)throw new Error(_0x3962ef(0x6d7)+_0x5b629f);}}}}return _0x478431?[_0x156724[0x0],_0x3215bf,_0x156724[0x1]]:_0x3215bf;}let _0x4538ae=null;function _0x4a69a9(_0x432e26,_0xf9e009,_0x5a1519){const _0x5ca9e7=_0x5ce2;if(!_0x4538ae)_0x4538ae=requireDist()['readKey'];const _0x54752d=new DataView(_0x432e26[_0x5ca9e7(0x633)],_0x432e26[_0x5ca9e7(0x1b4)],_0xf9e009),_0x14d55f=_0x54752d['getUint32'](0x10,!![]),_0x3204ce=new Array(_0x14d55f);let _0x416323=0x14;for(let _0x55ad81=0x0;_0x55ad81<_0x14d55f;_0x55ad81++){const _0x5258e3=_0x432e26[_0x416323]|_0x432e26[_0x416323+0x1]<<0x8;_0x416323+=0x2,_0x3204ce[_0x55ad81]=_0x4538ae(_0x432e26,_0x416323,_0x416323+_0x5258e3),_0x416323+=_0x5258e3;}return _0x5a1519?[_0x54752d[_0x5ca9e7(0x6a3)](0x0,!![]),_0x3204ce,_0x54752d['getFloat64'](0x8,!![])]:_0x3204ce;}const _0x56c219=requireOkdbLogger(),_0x2ed54f=requireOkdbPlugins(),{OKDB_STATE:_0x1bf37c,EVENTS:_0x33c53e}=requireOkdbEnums(),_0x189715=requireStatics();let _0x336046=null,_0x27059e=![],_0x1c30e7=0x1;const _0x378374=new Map(),_0x233973=new Set([_0xf4d1f0(0x305),_0xf4d1f0(0x69c)]),_0x454d9c=_0x4cfcf7=>!!_0x4cfcf7&&_0x233973[_0xf4d1f0(0x73b)](_0x4cfcf7[_0xf4d1f0(0x182)]),_0x47b21e=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x4008e7(){const _0x543f03=_0xf4d1f0;!_0x27059e&&(_0x2ff23a()[_0x543f03(0xc8)](_0x45b161[_0x543f03(0x2af)]),_0x202312[_0x543f03(0x56c)](_0x2ff23a()),_0x27059e=!![]);}function _0x2ff23a(){if(!_0x336046)_0x336046=_0x158ad9();return _0x336046;}class _0x328017 extends Map{constructor(_0x22389f){const _0x5c5afe=_0xf4d1f0;super(),this[_0x5c5afe(0x2d7)]=_0x22389f;}[_0xf4d1f0(0x9a)](){const _0x14a5aa=_0xf4d1f0,_0x4cc2af=this[_0x14a5aa(0x2d7)];if(!_0x4cc2af[_0x14a5aa(0x27b)])return;let _0x58be81;try{_0x58be81=_0x4cc2af[_0x14a5aa(0x313)]('db',null,_0x14a5aa(0x691),[],![]);}catch{return;}for(const _0x4cd019 of _0x58be81)if(!super[_0x14a5aa(0x73b)](_0x4cd019)&&_0x4cc2af[_0x14a5aa(0x313)]('db',null,_0x14a5aa(0xbe),[_0x4cd019],![]))_0x4cc2af[_0x14a5aa(0x1bf)](_0x4cd019);}[_0xf4d1f0(0x1fc)](_0x3d67c9){const _0xc9255c=_0xf4d1f0,_0x39b9f8=super[_0xc9255c(0x1fc)](_0x3d67c9);if(_0x39b9f8!==undefined||typeof _0x3d67c9!=='string')return _0x39b9f8;const _0x1d9dd5=this[_0xc9255c(0x2d7)];if(_0x3d67c9===_0xc9255c(0x10b))return _0x1d9dd5[_0xc9255c(0x27b)]?_0x1d9dd5[_0xc9255c(0x1d3)][_0xc9255c(0x1ef)]??undefined:undefined;if(_0x1d9dd5[_0xc9255c(0x27b)]&&_0x1d9dd5[_0xc9255c(0x313)]('db',null,_0xc9255c(0xbe),[_0x3d67c9],![]))return _0x1d9dd5['_ensureEnv'](_0x3d67c9);if(_0x1d9dd5[_0xc9255c(0x27b)]&&typeof _0x3d67c9===_0xc9255c(0x395)&&!_0x3d67c9[_0xc9255c(0x52f)]('~')){_0x1d9dd5[_0xc9255c(0x313)]('db',null,'pumpEnvSync',[],![]);if(_0x1d9dd5['_call']('db',null,_0xc9255c(0xbe),[_0x3d67c9],![]))return _0x1d9dd5[_0xc9255c(0x1bf)](_0x3d67c9);}return undefined;}[_0xf4d1f0(0x73b)](_0x406c5b){return this['get'](_0x406c5b)!==undefined;}get['size'](){const _0x5c1467=_0xf4d1f0;return this[_0x5c1467(0x9a)](),super[_0x5c1467(0x670)];}[_0xf4d1f0(0x393)](){return this['_sync'](),super['keys']();}[_0xf4d1f0(0x6de)](){const _0x51a8e6=_0xf4d1f0;return this[_0x51a8e6(0x9a)](),super[_0x51a8e6(0x6de)]();}[_0xf4d1f0(0x695)](){const _0x3f20ab=_0xf4d1f0;return this[_0x3f20ab(0x9a)](),super[_0x3f20ab(0x695)]();}[_0xf4d1f0(0x213)](_0x167f0c,_0x34a31b){const _0x53aa6d=_0xf4d1f0;return this[_0x53aa6d(0x9a)](),super[_0x53aa6d(0x213)](_0x167f0c,_0x34a31b);}[Symbol['iterator']](){const _0x2ea46b=_0xf4d1f0;return this[_0x2ea46b(0x9a)](),super[Symbol[_0x2ea46b(0x753)]]();}}class _0x326b5c{constructor(_0x5aa968,_0x269858={}){const _0x3301e1=_0xf4d1f0,_0x185605=_0x2ff23a();this[_0x3301e1(0x70d)]=_0x5aa968,this[_0x3301e1(0x432)]=_0x1c30e7++,this['_key']='db'+this['_uid'],this['options']={..._0x189715['defaults'],..._0x269858,'auth':_0x269858[_0x3301e1(0x293)]?{..._0x269858[_0x3301e1(0x293)]}:undefined,'lmdb':{..._0x269858[_0x3301e1(0x1c6)]||{}}},this['events']=new _0x3f0b08(),this[_0x3301e1(0x599)][_0x3301e1(0x1ae)](0x0),this[_0x3301e1(0x19c)]=new Set(),this[_0x3301e1(0x599)]['on'](_0x3301e1(0x6e2),_0x5d5c84=>this[_0x3301e1(0x5d3)](_0x5d5c84)),this['log']=new _0x56c219(this),this[_0x3301e1(0x54d)]['attachConsole'](),_0x45b161[_0x3301e1(0x41e)](this[_0x3301e1(0xda)],{'_deliver':(_0x47b5fc,_0x217fb9)=>this[_0x3301e1(0x28c)](_0x47b5fc,_0x217fb9),'_log':_0x233507=>{const _0x2e876e=_0x3301e1;if(this[_0x2e876e(0x484)])this[_0x2e876e(0x484)]['push'](_0x233507);const _0x3e4669=_0x233507&&_0x233507[_0x2e876e(0x4aa)];if(_0x3e4669&&Object[_0x2e876e(0x744)]['hasOwnProperty']['call'](this[_0x2e876e(0x54d)],_0x3e4669)&&typeof this['log'][_0x3e4669]==='function'){const _0x57fbea=_0x233507['context'];return this[_0x2e876e(0x54d)][_0x3e4669](_0x233507['msg'],{..._0x233507[_0x2e876e(0x1e9)]||{},..._0x57fbea&&typeof _0x57fbea===_0x2e876e(0x12c)?_0x57fbea:{}});}return this[_0x2e876e(0x54d)][_0x2e876e(0x40c)](_0x233507);}}),_0x4008e7();try{const _0x503f2a={};if(typeof _0x3301e1(0x45e)===_0x3301e1(0x18d)||'true'!=='true');const _0x374602={..._0x269858,'_clusterWorker':require(_0x3301e1(0x2e5))[_0x3301e1(0x20f)],..._0x503f2a};this[_0x3301e1(0x5e9)]={'instance':null,'envs':new Map()};typeof _0x269858[_0x3301e1(0x726)]===_0x3301e1(0x125)&&(this['_keyFns'][_0x3301e1(0x647)]=_0x269858[_0x3301e1(0x726)],delete _0x374602['encryptionKey']);if(_0x269858[_0x3301e1(0x1ad)]&&typeof _0x269858[_0x3301e1(0x1ad)]===_0x3301e1(0x12c)){for(const [_0x38ff55,_0x4b585e]of Object[_0x3301e1(0x695)](_0x269858[_0x3301e1(0x1ad)]))this['_keyFns'][_0x3301e1(0x3eb)][_0x3301e1(0xc4)](_0x38ff55,_0x4b585e);}delete _0x374602[_0x3301e1(0x1ad)],this[_0x3301e1(0x8c)]=new _0x185605['Native'](_0x5aa968,_0x374602,this[_0x3301e1(0xda)]);}catch(_0x5ca286){_0x45b161['unregisterTarget'](this[_0x3301e1(0xda)]);throw _0xea61b(_0x5ca286);}this['state']=_0x1bf37c[_0x3301e1(0x178)],this[_0x3301e1(0x27b)]=![],this['_envs']=new _0x328017(this),this[_0x3301e1(0x59b)]=new _0x9ad4a0({'pump':()=>this[_0x3301e1(0x8c)][_0x3301e1(0x1fe)]()}),this[_0x3301e1(0x4ba)]=new _0x202312[(_0x3301e1(0x60b))](this),this['_pumper'][_0x3301e1(0x4b9)]=()=>_0x45b161[_0x3301e1(0x5b5)](),_0x45b161[_0x3301e1(0x28f)](()=>this[_0x3301e1(0x59b)]['wake'](),this),_0x378374[_0x3301e1(0xc4)](this['_uid'],this),this[_0x3301e1(0xa4)]={},_0x45b161[_0x3301e1(0x50f)](this),this['fts']=new _0x200bea(this),this[_0x3301e1(0x588)]=new _0x496bd2(this),this['engines']=new _0x52f973(this,null,null),this[_0x3301e1(0x228)]=new _0x1d57fe(this,null),this[_0x3301e1(0x1e9)]=_0x39c25e(this),this['licenses']=_0x225a9e(this),this[_0x3301e1(0x103)]=_0x5c2a85(this),this[_0x3301e1(0x1d3)]=_0x2a84d7(this),this[_0x3301e1(0x246)]=_0xdd09c2(this),this[_0x3301e1(0x79d)]=new _0x2ed54f(this),this[_0x3301e1(0x190)]=new _0x4c3924(this),this['sync']=new _0x57a842(this),this[_0x3301e1(0x293)]=new _0x2fd2b1(this),this[_0x3301e1(0x505)]=new _0x26f2b2(this,null),this[_0x3301e1(0x759)]=new _0x8ee43d(this),this[_0x3301e1(0x668)]=_0x269858&&_0x269858[_0x3301e1(0x668)]===![]?null:_0x48d8f2(_0x3301e1(0x668)),this[_0x3301e1(0x623)]=_0x48d8f2(_0x3301e1(0x623)),this[_0x3301e1(0x643)]=new _0x2061e3(this);}['_call'](_0x1652df,_0x587d3b,_0x3f399f,_0x2cb160,_0x14adf3=!![]){const _0x2cf92b=_0xf4d1f0;if(_0x14adf3&&this[_0x2cf92b(0x4ba)]&&this[_0x2cf92b(0x4ba)][_0x2cf92b(0x23d)][_0x2cf92b(0x789)])this[_0x2cf92b(0x4ba)]['commit']();try{return this[_0x2cf92b(0x8c)][_0x2cf92b(0x3c4)](_0x1652df,_0x587d3b,_0x3f399f,_0x2cb160);}catch(_0x12d3e1){throw _0xea61b(_0x12d3e1);}finally{if(_0x14adf3)this[_0x2cf92b(0x59b)][_0x2cf92b(0x38d)]();}}[_0xf4d1f0(0x5e2)](_0x1a8f62,_0x2bbbca,_0x3d5b53,_0x484575){const _0x5cff89=_0xf4d1f0;let _0x39d5bd;try{_0x39d5bd=this[_0x5cff89(0x8c)][_0x5cff89(0x33b)](_0x1a8f62,_0x2bbbca,_0x3d5b53,_0x484575);}catch(_0x3fb05e){throw _0xea61b(_0x3fb05e);}return _0x39d5bd instanceof Uint8Array?_0x2a4d1(_0x39d5bd):_0x39d5bd[0x0];}[_0xf4d1f0(0x39c)](_0x369eac){const _0x1fa3f0=_0xf4d1f0;let _0x4a6404=this[_0x1fa3f0(0x4e2)];if(_0x4a6404&&_0x369eac<=_0x4a6404[_0x1fa3f0(0x789)])return _0x4a6404;let _0x391963=_0x4a6404?_0x4a6404[_0x1fa3f0(0x789)]:_0x5d4ab2;while(_0x391963<_0x369eac)_0x391963*=0x2;if(_0x391963>_0x5c27b6)return _0x4a6404;return _0x4a6404=this[_0x1fa3f0(0x4e2)]=Buffer['allocUnsafeSlow'](_0x391963),this[_0x1fa3f0(0x8c)][_0x1fa3f0(0x4f2)](_0x4a6404),_0x4a6404;}[_0xf4d1f0(0x604)](_0x2656f1,_0x3695ef,_0x1bd700){const _0x566426=_0xf4d1f0;if(!this[_0x566426(0x4e2)])this[_0x566426(0x39c)](0x0);const _0x1bea12=this[_0x566426(0x8c)][_0x566426(0x56b)](_0x2656f1,_0x3695ef,_0x1bd700);if(typeof _0x1bea12==='number')return _0xdc95b2(this[_0x566426(0x4e2)],_0x1bea12);if(_0x1bea12===undefined||_0x1bea12===null)return _0x1bea12;return this[_0x566426(0x39c)](_0x1bea12['length']),_0xdc95b2(_0x1bea12);}[_0xf4d1f0(0x415)](_0x190b72,_0x270d4a,_0x51476c){const _0x1e9f17=_0xf4d1f0;let _0x1c12eb=this['_kbuf'];if(!_0x1c12eb){_0x1c12eb=this[_0x1e9f17(0x467)]=Buffer[_0x1e9f17(0x71c)](_0x14fc0d),this[_0x1e9f17(0x8c)][_0x1e9f17(0x528)](_0x1c12eb),this['_tids']=new Map();if(!this[_0x1e9f17(0x4e2)])this['_readBuf'](0x0);}const _0x58b253=_0x3fc8bc(_0x51476c,_0x1c12eb);if(_0x58b253<0x0)return _0x473b78;let _0x1838ca=this[_0x1e9f17(0x299)][_0x1e9f17(0x1fc)](_0x190b72);if(_0x1838ca===undefined)this[_0x1e9f17(0x299)][_0x1e9f17(0xc4)](_0x190b72,_0x1838ca=new Map());let _0x33cadd=_0x1838ca[_0x1e9f17(0x1fc)](_0x270d4a);if(_0x33cadd===undefined)_0x1838ca['set'](_0x270d4a,_0x33cadd=this[_0x1e9f17(0x8c)][_0x1e9f17(0x74a)](_0x190b72,_0x270d4a));if(_0x33cadd<0x0)return _0x473b78;const _0x5ca8d1=this[_0x1e9f17(0x8c)][_0x1e9f17(0x3d0)](_0x33cadd,_0x58b253);if(typeof _0x5ca8d1===_0x1e9f17(0x7c0))return _0xdc95b2(this[_0x1e9f17(0x4e2)],_0x5ca8d1);if(_0x5ca8d1===undefined||_0x5ca8d1===null)return _0x5ca8d1;return this['_readBuf'](_0x5ca8d1[_0x1e9f17(0x789)]),_0xdc95b2(_0x5ca8d1);}[_0xf4d1f0(0x5f4)](_0x36f914,_0x202e4e,_0x36e90c){const _0x5ae127=_0xf4d1f0;if(!this[_0x5ae127(0x4e2)])this[_0x5ae127(0x39c)](0x0);let _0x583928;try{_0x583928=this[_0x5ae127(0x8c)][_0x5ae127(0x163)](_0x36f914,_0x202e4e,_0x36e90c);}catch(_0x47bd28){throw _0xea61b(_0x47bd28);}const _0x1d454e=_0x202e4e===_0x5ae127(0x76a),_0x12fcbd=_0x1d454e?_0x36e90c[0x1]:_0x202e4e;let _0x42a6ff=this['_rbuf'],_0x1aae07=_0x583928;if(_0x583928 instanceof Uint8Array)this[_0x5ae127(0x39c)](_0x583928[_0x5ae127(0x789)]),_0x42a6ff=_0x583928,_0x1aae07=_0x583928['length'];else{if(typeof _0x583928!==_0x5ae127(0x7c0))return _0x583928[0x0];}if(_0x12fcbd===_0x5ae127(0x105))return _0x4a69a9(_0x42a6ff,_0x1aae07,_0x1d454e);if(_0x12fcbd===_0x5ae127(0x446))return _0xdc95b2(_0x42a6ff,_0x1aae07);return _0x40007(_0xdc95b2(_0x42a6ff,_0x1aae07),_0x1d454e);}[_0xf4d1f0(0x3c8)](_0x2cdaa8,_0xa803fa,_0x2015d6,_0x1d9b84,_0x3fc109=!![],_0x259de5=!![]){const _0x32bc22=_0xf4d1f0,_0x57019c=()=>this[_0x32bc22(0x14f)](()=>this['_call'](_0x2cdaa8,_0xa803fa,_0x2015d6,_0x1d9b84,_0x3fc109));if(!_0x259de5)return _0x57019c();return this[_0x32bc22(0x4df)](_0x57019c);}[_0xf4d1f0(0x4df)](_0x1c0806){const _0x1a6e3a=_0xf4d1f0;return _0x1c0806()[_0x1a6e3a(0x62a)](async _0x3cb603=>{const _0x5cbca0=_0x1a6e3a;if(!_0x454d9c(_0x3cb603))throw _0x3cb603;const _0x55a248=Date[_0x5cbca0(0x2aa)]()+_0x47b21e;let _0x2bfafe=0x1;while(_0x454d9c(_0x3cb603)&&Date['now']()<_0x55a248){await new Promise(_0x17055f=>setTimeout(_0x17055f,_0x2bfafe)),_0x2bfafe=Math[_0x5cbca0(0x220)](_0x2bfafe*0x2,0x14);try{return await _0x1c0806();}catch(_0x43dbeb){_0x3cb603=_0x43dbeb;}}throw _0x3cb603;});}['_settleRead'](_0x42a068){const _0x4d30aa=_0xf4d1f0;if(_0x45b161[_0x4d30aa(0x2a7)]())return Promise[_0x4d30aa(0x65b)](_0x42a068);return new Promise(_0x53669b=>setImmediate(()=>_0x53669b(_0x42a068)));}[_0xf4d1f0(0x796)](_0x1e6cba){const _0x21ca4e=_0xf4d1f0;if(_0x45b161[_0x21ca4e(0x2a7)]())return Promise[_0x21ca4e(0x65b)](_0x1e6cba);return this[_0x21ca4e(0x2e9)]()[_0x21ca4e(0x665)](()=>_0x1e6cba);}[_0xf4d1f0(0x2e9)](){return new Promise(_0x34922f=>setImmediate(()=>{let _0x573e31;try{_0x573e31=this['_native']['flushTicket']();}catch{return _0x34922f();}_0x202312['whenSettled'](_0x573e31,_0x34922f);}));}[_0xf4d1f0(0x14f)](_0x2174c2){return new Promise((_0xe9f358,_0x2fbacd)=>setImmediate(()=>{try{_0xe9f358(_0x2174c2());}catch(_0x4565bf){_0x2fbacd(_0x4565bf);}}));}[_0xf4d1f0(0x212)](_0x5a1c2b,_0x2aa4e8,_0x18321a){return _0x122f41(_0x5a1c2b,_0x2aa4e8,_0x18321a);}[_0xf4d1f0(0x5d3)](_0xc54bf4){const _0x3d0c0c=_0xf4d1f0;if(typeof _0xc54bf4!==_0x3d0c0c(0x395)||this[_0x3d0c0c(0x19c)][_0x3d0c0c(0x73b)](_0xc54bf4)||_0xc54bf4===_0x3d0c0c(0x6e2)||_0xc54bf4===_0x3d0c0c(0x663))return;this['_subscribed'][_0x3d0c0c(0x3e2)](_0xc54bf4);try{this['_native'][_0x3d0c0c(0x3c4)](_0x3d0c0c(0x599),null,_0x3d0c0c(0x18c),[this['_key'],_0xc54bf4]);}catch{}}[_0xf4d1f0(0x28c)](_0x13a4c9,_0x119d01){const _0x28fa1c=_0xf4d1f0;this[_0x28fa1c(0x599)]['emit'](_0x13a4c9,_0x119d01);}async[_0xf4d1f0(0x6d6)](){const _0x1875a0=_0xf4d1f0,_0x42ffcc=this[_0x1875a0(0x5e9)];if(_0x42ffcc[_0x1875a0(0x647)])this[_0x1875a0(0x20c)](null,await _0x42ffcc[_0x1875a0(0x647)](null),!![]);for(const [_0x428e53,_0x5d622f]of _0x42ffcc[_0x1875a0(0x3eb)])this[_0x1875a0(0x20c)](_0x428e53,typeof _0x5d622f===_0x1875a0(0x125)?await _0x5d622f(_0x428e53):_0x5d622f,typeof _0x5d622f===_0x1875a0(0x125));(_0x42ffcc[_0x1875a0(0x647)]||[..._0x42ffcc[_0x1875a0(0x3eb)]['values']()][_0x1875a0(0x3ff)](_0x23dbee=>typeof _0x23dbee===_0x1875a0(0x125)))&&!this[_0x1875a0(0x680)]&&(this[_0x1875a0(0x680)]=_0x25495e=>{const _0x331475=_0x1875a0,_0x4846b3=_0x25495e&&_0x25495e[_0x331475(0x326)]!=null?_0x25495e[_0x331475(0x326)]:null,_0x2fbaff=_0x4846b3==null?_0x42ffcc[_0x331475(0x647)]:_0x42ffcc[_0x331475(0x3eb)]['get'](_0x4846b3);if(typeof _0x2fbaff!==_0x331475(0x125))return;Promise[_0x331475(0x65b)]()[_0x331475(0x665)](()=>_0x2fbaff(_0x4846b3))[_0x331475(0x665)](_0x33d616=>this[_0x331475(0x20c)](_0x4846b3,_0x33d616,!![]))[_0x331475(0x62a)](_0x24061f=>this[_0x331475(0x54d)][_0x331475(0x373)](_0x331475(0x1f3)+(_0x24061f&&_0x24061f['message']),{'env':_0x4846b3}));},this[_0x1875a0(0x599)]['on'](_0x1875a0(0x6ef),this[_0x1875a0(0x680)]));}['_setKey'](_0x52f545,_0x596261,_0xbfe621){const _0xf02192=_0xf4d1f0;if(_0x596261==null)throw new _0x297cf5(_0xf02192(0x757)+(_0x52f545?_0xf02192(0xa2)+_0x52f545+'\x22':'')+'\x20returned\x20no\x20key',_0xf02192(0x6b3));this[_0xf02192(0x8c)][_0xf02192(0x3c4)]('db',null,_0xf02192(0x626),[_0x52f545,_0x596261,!!_0xbfe621]);}async['changeEncryptionKey'](_0xa18410){const _0x4fcb1c=_0xf4d1f0;this['_assertOpen']();const {env:env=null,to:_0x4372cf}=_0x1400f8(_0xa18410),_0x3239d7=typeof _0x4372cf==='function',_0x554510=_0x3239d7?await _0x4372cf(env):_0x4372cf;if(_0x554510==null)throw _0x383f9e(_0x4fcb1c(0x461),'a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one',_0x554510);const _0x3cab3b=this['_call']('db',null,'changeEncryptionKey',[env,_0x554510,_0x3239d7]);if(_0x3239d7){if(env==null)this['_keyFns'][_0x4fcb1c(0x647)]=_0x4372cf;else this[_0x4fcb1c(0x5e9)]['envs'][_0x4fcb1c(0xc4)](env,_0x4372cf);}return _0x3cab3b;}async['reencrypt'](_0x162873){const _0xa3815e=_0xf4d1f0;this[_0xa3815e(0x197)]();const _0x2d0aa6=_0x1400f8(_0x162873);if(!_0x2d0aa6['env'])throw _0x383f9e('reencrypt:\x20env',_0xa3815e(0x4d4),_0x2d0aa6[_0xa3815e(0x326)]);let _0x191d85=_0x2d0aa6['to'];const _0x14a384=typeof _0x191d85===_0xa3815e(0x125);if(_0x14a384)_0x191d85=await _0x2d0aa6['to'](_0x2d0aa6[_0xa3815e(0x326)]);const _0x4b3c7c=await this['_macro'](()=>this[_0xa3815e(0x313)]('db',null,_0xa3815e(0x2cf),[_0x2d0aa6[_0xa3815e(0x326)],'to'in _0x2d0aa6?_0x191d85:undefined,_0x14a384]));if(_0x14a384)this[_0xa3815e(0x5e9)][_0xa3815e(0x3eb)][_0xa3815e(0xc4)](_0x2d0aa6[_0xa3815e(0x326)],_0x2d0aa6['to']);return _0x4b3c7c;}async[_0xf4d1f0(0x1c2)](){const _0x140957=_0xf4d1f0;if(this[_0x140957(0x8e)]===_0x1bf37c[_0x140957(0x177)])return;if(this[_0x140957(0x8e)]!==_0x1bf37c[_0x140957(0x178)])throw new _0x297cf5(_0x140957(0xf6),_0x140957(0xea),{'state':this[_0x140957(0x8e)]});this[_0x140957(0x8e)]=_0x1bf37c[_0x140957(0x1de)],this[_0x140957(0x484)]=[];try{try{await this['_resolveKeys'](),await this[_0x140957(0x14f)](()=>this['_native'][_0x140957(0x1c2)]());}catch(_0x198fca){throw _0xea61b(_0x198fca);}}catch(_0xe7167e){this[_0x140957(0x8e)]=_0x1bf37c['STOPPED'],this[_0x140957(0x484)]=null,this['_teardownNative']();throw _0xe7167e;}this['_isOpen']=!![],this[_0x140957(0x8e)]=_0x1bf37c[_0x140957(0x177)];try{this[_0x140957(0x313)]('db',null,'setHostPlugins',[this[_0x140957(0x79d)][_0x140957(0x61b)]['map'](_0x5c2c93=>_0x5c2c93[_0x140957(0x4fc)]?.['name'])[_0x140957(0x3ce)](Boolean)],![]),await this['plugins']['start']();}catch(_0x4a61f2){this[_0x140957(0x8e)]=_0x1bf37c[_0x140957(0x52a)];try{this[_0x140957(0x8c)][_0x140957(0x4a4)]();}catch{}this[_0x140957(0x8e)]=_0x1bf37c[_0x140957(0x128)],this[_0x140957(0x27b)]=![],this[_0x140957(0x4de)]();throw _0x4a61f2;}for(const _0x4251f1 of this[_0x140957(0x313)]('db',null,_0x140957(0x691),[],![]))if(!_0x4251f1[_0x140957(0x52f)]('~'))this[_0x140957(0x1bf)](_0x4251f1);try{if(this[_0x140957(0x313)]('db',null,_0x140957(0xbe),['~log'],![])){this[_0x140957(0x591)]=this[_0x140957(0x1bf)](_0x140957(0x578));const _0x494237=new Set(this[_0x140957(0x54d)][_0x140957(0x2bf)]);this[_0x140957(0x6a7)]=this[_0x140957(0x54d)][_0x140957(0x32c)](this[_0x140957(0x591)],this['id']);const _0x5ab634=[...this[_0x140957(0x54d)]['_sinks']][_0x140957(0x777)](_0x2737c5=>!_0x494237[_0x140957(0x73b)](_0x2737c5)),_0x282032=this[_0x140957(0x313)]('db',null,_0x140957(0x562),[],![]);for(const _0x4507b0 of(this[_0x140957(0x484)]??[])[_0x140957(0x106)](_0x282032))_0x5ab634?.(_0x4507b0);}}catch{}this[_0x140957(0x484)]=null,this[_0x140957(0x8c)][_0x140957(0x621)](()=>this[_0x140957(0x59b)][_0x140957(0x38d)]()),this[_0x140957(0x59b)][_0x140957(0x297)]();}get[_0xf4d1f0(0x215)](){const _0x289907=()=>{const _0x3ecf3b=_0x5ce2;if(!this[_0x3ecf3b(0x27b)])return![];for(const _0x3b65f4 of this[_0x3ecf3b(0x313)]('db',null,_0x3ecf3b(0x691),[],![])){if(!_0x3b65f4[_0x3ecf3b(0x52f)]('~')&&this[_0x3ecf3b(0x313)](_0x3ecf3b(0x6f6),_0x3b65f4,_0x3ecf3b(0x2ec),[],![]))return!![];}return![];};return((async()=>{const _0x42d066=_0x5ce2;while(_0x289907())await this[_0x42d066(0x59b)]['nextTurn'](0xfa);})());}async['bootRuntimeDeclarations'](){const _0xed8787=_0xf4d1f0;return this[_0xed8787(0x3c8)]('db',null,_0xed8787(0x211),[]);}async['close'](){const _0xef3b8e=_0xf4d1f0;if(this['state']===_0x1bf37c[_0xef3b8e(0x128)])return;if(this['state']!==_0x1bf37c['STARTED'])throw new _0x297cf5(_0xef3b8e(0x600),_0xef3b8e(0xea),{'state':this['state']});this['state']=_0x1bf37c[_0xef3b8e(0x52a)],this[_0xef3b8e(0x27b)]=![];let _0x5d4839=null;if(this[_0xef3b8e(0x190)][_0xef3b8e(0x727)][_0xef3b8e(0x789)])try{await this[_0xef3b8e(0x190)][_0xef3b8e(0x4a4)]();}catch(_0x2b0588){_0x5d4839=_0x2b0588;}if(this[_0xef3b8e(0x735)]){try{this[_0xef3b8e(0x735)][_0xef3b8e(0x33d)](),this[_0xef3b8e(0x735)][_0xef3b8e(0x6f9)]();}catch{}this[_0xef3b8e(0x735)]=null;}try{this[_0xef3b8e(0x70f)]?.[_0xef3b8e(0x533)]?.();}catch{}try{await this[_0xef3b8e(0x79d)]['stop']();}catch(_0x4569e6){_0x5d4839=_0x4569e6;}for(const _0x3aaddd of[...Map['prototype'][_0xef3b8e(0x6de)][_0xef3b8e(0x3c4)](this[_0xef3b8e(0x6c3)])]){try{await _0x3aaddd[_0xef3b8e(0x278)][_0xef3b8e(0x3ee)]();}catch{}try{await _0x3aaddd['engines'][_0xef3b8e(0x533)]();}catch{}}for(const _0x55c115 of[()=>this['sync'][_0xef3b8e(0x533)](),()=>this[_0xef3b8e(0x588)][_0xef3b8e(0x533)](),()=>this[_0xef3b8e(0x67c)]&&this[_0xef3b8e(0x67c)]['stop']?.()]){try{await _0x55c115();}catch{}}const _0x35f930=this['options'][_0xef3b8e(0x5cc)]??0x7530,_0x1215a3=[];for(const _0x566cf1 of[...Map['prototype']['values'][_0xef3b8e(0x3c4)](this[_0xef3b8e(0x6c3)])]){if(_0x566cf1[_0xef3b8e(0x23d)]?.[_0xef3b8e(0x7b2)]?.[_0xef3b8e(0x670)]>0x0)_0x1215a3[_0xef3b8e(0x235)](_0x566cf1['queue'][_0xef3b8e(0x3ee)](_0x35f930));}if(_0x1215a3['length']>0x0)await Promise[_0xef3b8e(0x78d)](_0x1215a3);try{this[_0xef3b8e(0x6a7)]?.();}catch{}this[_0xef3b8e(0x6a7)]=null;try{await this[_0xef3b8e(0x4ba)][_0xef3b8e(0x725)]();}catch{}this[_0xef3b8e(0x59b)][_0xef3b8e(0x533)]();try{await this['_macro'](()=>this[_0xef3b8e(0x8c)][_0xef3b8e(0x4a4)]());}catch(_0x221b4f){_0x5d4839=_0x5d4839||_0xea61b(_0x221b4f);}this[_0xef3b8e(0x8e)]=_0x1bf37c[_0xef3b8e(0x128)],this[_0xef3b8e(0x4de)](),Map[_0xef3b8e(0x744)][_0xef3b8e(0x656)][_0xef3b8e(0x3c4)](this[_0xef3b8e(0x6c3)]);if(_0x5d4839)throw _0x5d4839;}[_0xf4d1f0(0x4de)](){const _0xd37516=_0xf4d1f0;this[_0xd37516(0x59b)][_0xd37516(0x533)]();try{this[_0xd37516(0x8c)]['setWake'](null);}catch{}try{this[_0xd37516(0x8c)][_0xd37516(0x2b0)]();}catch{}this[_0xd37516(0x4e2)]=null,this[_0xd37516(0x467)]=null,this['_tids']=null,_0x45b161['unregisterTarget'](this[_0xd37516(0xda)]),_0x45b161[_0xd37516(0x257)](this),_0x378374[_0xd37516(0x155)](this[_0xd37516(0x432)]);if(_0x45b161[_0xd37516(0x5f3)](this)){const _0x1becc7=[..._0x378374['values']()][_0xd37516(0x5a7)]();if(_0x1becc7)_0x45b161[_0xd37516(0x28f)](()=>_0x1becc7['_pumper'][_0xd37516(0x38d)](),_0x1becc7);else _0x45b161[_0xd37516(0x28f)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0xf4d1f0(0x1d7)](_0x44db2c){const _0x3c61f5=_0xf4d1f0;return this[_0x3c61f5(0x326)](_0x3c61f5(0x5eb))[_0x3c61f5(0x1d7)](_0x44db2c);}get['_tokenSecret'](){const _0xce9e2d=_0xf4d1f0;return this[_0xce9e2d(0x172)][_0xce9e2d(0x1fc)](_0xce9e2d(0x29b));}get[_0xf4d1f0(0x54f)](){const _0x1a9faf=_0xf4d1f0;return this[_0x1a9faf(0x11f)][_0x1a9faf(0x54f)];}get[_0xf4d1f0(0x4b6)](){const _0x2d249b=_0xf4d1f0;return this['sync'][_0x2d249b(0x4b6)];}get[_0xf4d1f0(0x8b)](){const _0x131447=_0xf4d1f0;if(!this['_isOpen']||!this['_call']('db',null,_0x131447(0x1e5),[],![]))return undefined;if(!this[_0x131447(0x13d)]){const _0x45a835=requireOkdbSubscriptionsStore(),_0x56515c=new _0x45a835(this,this[_0x131447(0x41d)]&&this['options'][_0x131447(0x26a)]);_0x56515c['_sub']=this[_0x131447(0x326)](_0x131447(0x449));const {compileFilter:_0x5b4747}=requireOkdbQueryFilter(),_0x342485=(_0x8543e7,_0x5f20d8)=>{if(_0x8543e7==null)return![];try{return _0x5b4747(_0x8543e7)(_0x5f20d8);}catch{return![];}};this[_0x131447(0x13d)]={'store':_0x56515c,'router':{'_matches':_0x342485}};}return this[_0x131447(0x13d)];}get[_0xf4d1f0(0x157)](){const _0x1aa6ee=_0xf4d1f0;return this[_0x1aa6ee(0x4fa)];}get[_0xf4d1f0(0x51f)](){const _0x2a84b=_0xf4d1f0;return this[_0x2a84b(0x313)]('db',null,_0x2a84b(0x51f),[],![]);}get[_0xf4d1f0(0x4fa)](){const _0x1f4f03=_0xf4d1f0;return{...this['_call']('db',null,_0x1f4f03(0x4fa),[],![])};}get[_0xf4d1f0(0x7a4)](){const _0xd12190=_0xf4d1f0;return require$$29[_0xd12190(0x7a4)];}get['quarantinedEnvs'](){const _0x10cd74=_0xf4d1f0;return this[_0x10cd74(0x313)]('db',null,_0x10cd74(0x466),[],![]);}get[_0xf4d1f0(0x41f)](){const _0xd850d6=_0xf4d1f0;return this[_0xd850d6(0x313)]('db',null,_0xd850d6(0x41f),[],![]);}[_0xf4d1f0(0x1ec)](){const _0x202953=_0xf4d1f0;return this[_0x202953(0x313)]('db',null,_0x202953(0x400),[],![]);}[_0xf4d1f0(0x6b0)](){const _0x5bc1f1=_0xf4d1f0;return this[_0x5bc1f1(0x313)]('db',null,'diag',[],![]);}async[_0xf4d1f0(0x5f6)](_0x5ca352){const _0x1be4e1=_0xf4d1f0;this[_0x1be4e1(0x197)](),this[_0x1be4e1(0x313)]('db',null,'setProcessingConfig',[_0x5ca352],![]);}[_0xf4d1f0(0x2d2)](){const _0x23615f=_0xf4d1f0,_0x48ccfb=Date['now']();if(this[_0x23615f(0x3b1)]&&_0x48ccfb-this['_pressure']['at']<0xfa)return this[_0x23615f(0x3b1)][_0x23615f(0x2ff)];const _0x2ffdad=this['_call']('db',null,'pressure',[],![]);return this[_0x23615f(0x3b1)]={'at':_0x48ccfb,'value':_0x2ffdad},_0x2ffdad;}[_0xf4d1f0(0x197)](){const _0x12b356=_0xf4d1f0;if(!this[_0x12b356(0x27b)])throw new _0x297cf5(_0x12b356(0x600),'INVALID_STATE',{'state':this[_0x12b356(0x8e)]});}get[_0xf4d1f0(0x3c9)](){const _0x7c361f=_0xf4d1f0;if(this[_0x7c361f(0x8e)]===_0x1bf37c['STOPPED']||!this[_0x7c361f(0x27b)])return null;if(this[_0x7c361f(0x313)]('db',null,'busState',[],![])==null)return null;if(!this[_0x7c361f(0x492)]){const _0x39be12=this;this[_0x7c361f(0x492)]={get 'state'(){const _0x162dfa=_0x7c361f;return _0x39be12[_0x162dfa(0x313)]('db',null,_0x162dfa(0x721),[],![]);},get 'magic'(){const _0x336095=_0x7c361f;return Buffer[_0x336095(0x768)](_0x336095(0x43f)+_0x39be12['id']);},get 'isRunning'(){const _0x377fa5=_0x7c361f;return _0x39be12[_0x377fa5(0x313)]('db',null,_0x377fa5(0x721),[],![])===_0x377fa5(0x527);},'emit'(_0x1fb547,_0x32ac75=''){const _0x32c960=_0x7c361f;_0x39be12[_0x32c960(0x313)]('db',null,_0x32c960(0x394),[_0x1fb547,String(_0x32ac75)],![]);}};}return this['_busFacade'];}[_0xf4d1f0(0x17f)](_0x28ddac,_0x1f3328){const _0x22269b=_0xf4d1f0;this['bus']?.[_0x22269b(0x4eb)](_0x22269b(0x559),JSON[_0x22269b(0x76f)]({'kind':_0x22269b(0x398),'scope':_0x28ddac,'key':_0x1f3328}));}get[_0xf4d1f0(0x523)](){const _0x1aff38=_0xf4d1f0;return this[_0x1aff38(0x78e)]||(this[_0x1aff38(0x78e)]=new(requireLock())['NativeLock'](this,_0x1aff38(0x2c7),_0x1aff38(0x7ca)));}get[_0xf4d1f0(0x172)](){const _0x338c10=_0xf4d1f0;return this[_0x338c10(0x784)]?this['_systemEnv']['db']:undefined;}get['_envSyncStop'](){const _0x54f057=_0xf4d1f0,_0x48bca5=this['_systemEnv']?.[_0x54f057(0x278)];if(!_0x48bca5)return null;const _0x45f599=_0x48bca5['list']()['find'](_0x781adf=>_0x781adf[_0x54f057(0x1e9)]?.[_0x54f057(0x219)]===_0x54f057(0x1a3));return _0x45f599?_0x48bca5['_stopFor'](_0x45f599['id'],_0x45f599[_0x54f057(0x7d2)]):null;}get[_0xf4d1f0(0x784)](){const _0x51c5e=_0xf4d1f0;return this['_isOpen']?this['_envs'][_0x51c5e(0x1fc)](_0x51c5e(0x2c7)):undefined;}['_ensureEnv'](_0x22f17d){const _0x5a2edd=_0xf4d1f0;let _0x2e65fe=Map['prototype']['get'][_0x5a2edd(0x3c4)](this[_0x5a2edd(0x6c3)],_0x22f17d);if(!_0x2e65fe){_0x2e65fe=new _0x591068(this,_0x22f17d),Map['prototype']['set'][_0x5a2edd(0x3c4)](this[_0x5a2edd(0x6c3)],_0x22f17d,_0x2e65fe);if(_0x22f17d===_0x5a2edd(0x5eb))this['_defaultEnvObj']=_0x2e65fe;}return _0x2e65fe;}['env'](_0x193f40=_0xf4d1f0(0x5eb)){const _0x294700=_0xf4d1f0,_0x1ebf13=this[_0x294700(0x6c3)][_0x294700(0x1fc)](_0x193f40);if(_0x1ebf13)return _0x1ebf13;if(this[_0x294700(0x27b)]&&this[_0x294700(0x313)]('db',null,_0x294700(0xbe),[_0x193f40],![]))return this[_0x294700(0x1bf)](_0x193f40);throw new _0x297cf5(_0x294700(0x242)+_0x193f40+_0x294700(0x6a4),'ENV_NOT_FOUND');}get[_0xf4d1f0(0x5eb)](){const _0x2e083a=_0xf4d1f0;return this[_0x2e083a(0x326)](_0x2e083a(0x5eb));}get[_0xf4d1f0(0x5c5)](){const _0x3cd02f=_0xf4d1f0;return this['_envs']['get'](_0x3cd02f(0x5eb))??this['_defaultEnvObj'];}get[_0xf4d1f0(0xab)](){const _0x55a702=_0xf4d1f0;return this[_0x55a702(0x5c5)]['files'];}get[_0xf4d1f0(0x23d)](){const _0x86de86=_0xf4d1f0;return this['_defaultEnv'][_0x86de86(0x23d)];}['_timerHandle'](_0xd78a24){const _0x41967f=_0xf4d1f0;if(!this[_0x41967f(0x27b)])return null;return this[_0x41967f(0x313)]('db',null,_0x41967f(0x1bd),[_0xd78a24],![])?{'ref'(){},'unref'(){}}:null;}get[_0xf4d1f0(0x22d)](){const _0x5f234e=_0xf4d1f0;return this[_0x5f234e(0x98)](_0x5f234e(0x2c2));}[_0xf4d1f0(0x57f)](){const _0x18d388=_0xf4d1f0;return this[_0x18d388(0x313)]('db',null,_0x18d388(0x7c3),[],!![]);}get['_licenseInterval'](){const _0x2b972c=_0xf4d1f0;return this[_0x2b972c(0x98)]('license');}get[_0xf4d1f0(0xa9)](){const _0x318c6e=_0xf4d1f0;return this[_0x318c6e(0x98)](_0x318c6e(0x589));}get[_0xf4d1f0(0x7af)](){const _0x137b4=_0xf4d1f0;return this['env']('default')[_0x137b4(0x7af)];}get[_0xf4d1f0(0x567)](){const _0x24d487=_0xf4d1f0;throw new _0x297cf5(_0x24d487(0x478),_0x24d487(0x405));}get['processor'](){const _0x24532c=_0xf4d1f0;return this[_0x24532c(0x5c5)][_0x24532c(0x278)];}get[_0xf4d1f0(0x6f6)](){const _0xa7319e=_0xf4d1f0;return this[_0xa7319e(0x5c5)][_0xa7319e(0x6f6)];}async[_0xf4d1f0(0x3f4)](_0x414029,_0x8e891b={}){const _0x4e258c=_0xf4d1f0;this[_0x4e258c(0x197)]();if(_0x8e891b&&typeof _0x8e891b[_0x4e258c(0x726)]===_0x4e258c(0x125)){const _0x1c4678=_0x8e891b[_0x4e258c(0x726)];this['_setKey'](_0x414029,await _0x1c4678(_0x414029),!![]),this[_0x4e258c(0x5e9)][_0x4e258c(0x3eb)][_0x4e258c(0xc4)](_0x414029,_0x1c4678),_0x8e891b={..._0x8e891b,'encryptionKey':!![]};}return this[_0x4e258c(0x313)]('db',null,_0x4e258c(0x3f4),[_0x414029,_0x8e891b]),this[_0x4e258c(0x1bf)](_0x414029);}async[_0xf4d1f0(0xe3)](_0x44e2aa){const _0x529558=_0xf4d1f0;if(!this[_0x529558(0x27b)])throw new _0x297cf5(_0x529558(0x2b5)+_0x44e2aa+_0x529558(0x622),'INVALID_STATE');return this['_call']('db',null,_0x529558(0xe3),[_0x44e2aa]),this['_ensureEnv'](_0x44e2aa);}get['_adminRelay'](){const _0x46c9e0=_0xf4d1f0;if(!this[_0x46c9e0(0x735)]&&this[_0x46c9e0(0x27b)]){const _0x4f9ea6=requireOkdbRelay(),_0x4bf1c4=new _0x4f9ea6(this,this[_0x46c9e0(0x41d)]?.[_0x46c9e0(0x668)]?.['relay']??{});_0x4bf1c4[_0x46c9e0(0x22b)](),_0x4bf1c4['_okdbAdminAttached']=!![],this[_0x46c9e0(0x735)]=_0x4bf1c4;}return this[_0x46c9e0(0x735)]??null;}set[_0xf4d1f0(0xe0)](_0x4748be){this['__adminRelay']=_0x4748be;}get[_0xf4d1f0(0x687)](){const _0x301c73=_0xf4d1f0;let _0xd098e=0x0;if(this['_isOpen'])for(const [_0x24a01f]of Map[_0x301c73(0x744)][_0x301c73(0x695)]['call'](this[_0x301c73(0x6c3)])){try{_0xd098e+=this['_call'](_0x301c73(0x53d),_0x24a01f,_0x301c73(0x37b),[],![])||0x0;}catch{}}return{'total':_0xd098e,'maxObserved':_0xd098e>0x0?0x1:0x0,'inFlight':0x0};}async['_openEnvLazy'](_0x1ba44c){const _0x473932=_0xf4d1f0,_0x2f2bbe=this[_0x473932(0x6c3)][_0x473932(0x1fc)](_0x1ba44c);if(_0x2f2bbe)return _0x2f2bbe;if(!this[_0x473932(0x313)]('db',null,_0x473932(0xbe),[_0x1ba44c],![]))throw new Error(_0x473932(0x67d)+_0x1ba44c+'\x22\x20not\x20found\x20in\x20~envs');return this['openEnv'](_0x1ba44c);}async['_closeEnvLocally'](_0x9ceb4a){const _0x1b6ce5=_0xf4d1f0,_0x55dcb4=this[_0x1b6ce5(0x313)]('db',null,_0x1b6ce5(0x5fd),[_0x9ceb4a]);return this[_0x1b6ce5(0x6c3)][_0x1b6ce5(0x155)](_0x9ceb4a),_0x55dcb4;}async[_0xf4d1f0(0x250)](_0x36ba13,_0x5374b9={}){const _0x125c89=_0xf4d1f0;this[_0x125c89(0x197)]();const _0x4ce75b=this[_0x125c89(0x313)]('db',null,_0x125c89(0x250),[_0x36ba13,_0x5374b9]);return this['_envs'][_0x125c89(0x155)](_0x36ba13),_0x4ce75b;}static get[_0xf4d1f0(0x3bf)](){const _0x5a0c72=_0xf4d1f0;return _0x189715[_0x5a0c72(0x3bf)];}static get[_0xf4d1f0(0x659)](){const _0x2fd4ac=_0xf4d1f0;return _0x189715[_0x2fd4ac(0x659)];}static get['_OPTION_HINTS'](){const _0x48c108=_0xf4d1f0;return _0x189715[_0x48c108(0x19f)];}static async[_0xf4d1f0(0xcb)](_0x47851e,_0x543d48){return _0x122f41('db','clone',[_0x47851e,_0x543d48]);}static['reidentify'](_0x5a243e){const _0x4c7cf8=_0xf4d1f0;return _0x122f41('db',_0x4c7cf8(0x29f),[_0x5a243e]);}static[_0xf4d1f0(0x270)](_0x394101,_0x1cabde){const _0x564a19=_0xf4d1f0;_0x122f41(_0x564a19(0x6f6),_0x564a19(0x270),[_0x394101,_0x1cabde]);}static['registerViewReducer'](_0x50f702,_0x1f6e91){const _0x433d12=_0xf4d1f0;_0x122f41(_0x433d12(0x6f6),_0x433d12(0x389),[_0x50f702,_0x1f6e91]);}static[_0xf4d1f0(0x6da)](){}[_0xf4d1f0(0x7a7)](_0x230099,_0x426985){const _0x2c6ce5=_0xf4d1f0;return require$$16[_0x2c6ce5(0x87)](_0x230099,_0x426985);}}_0x326b5c['HIGH_SENTINEL']=_0x3f1875,Object[_0xf4d1f0(0x236)](_0x326b5c,'_unknownOptionsWarned',{'get'(){const _0x1f6ffc=_0xf4d1f0;return _0x326b5c[_0x1f6ffc(0x5ea)]||(_0x326b5c[_0x1f6ffc(0x5ea)]=new Set());},'set'(_0x8a77a9){const _0x585ba6=_0xf4d1f0;_0x326b5c[_0x585ba6(0x5ea)]=_0x8a77a9;try{_0x122f41('db',_0x585ba6(0x436),[]);}catch{}},'configurable':!![]});for(const _0x146773 of[_0xf4d1f0(0x5c9),_0xf4d1f0(0xb8),'put','update',_0xf4d1f0(0x1c7),_0xf4d1f0(0xaf),_0xf4d1f0(0x4bc),_0xf4d1f0(0x1fc),_0xf4d1f0(0x446),_0xf4d1f0(0x358),'getRange',_0xf4d1f0(0x64a),'getKeys',_0xf4d1f0(0x42e),_0xf4d1f0(0x460),_0xf4d1f0(0x660),_0xf4d1f0(0x371),_0xf4d1f0(0xb6),_0xf4d1f0(0x5ae),_0xf4d1f0(0x279),_0xf4d1f0(0x558),'registerType',_0xf4d1f0(0x7b6),_0xf4d1f0(0x493),_0xf4d1f0(0x33e),_0xf4d1f0(0x7a6),'dropType',_0xf4d1f0(0x409),'hasIndex',_0xf4d1f0(0x5d2),_0xf4d1f0(0x137),_0xf4d1f0(0x26b),'getIndexStatus',_0xf4d1f0(0x577),_0xf4d1f0(0x22f),_0xf4d1f0(0x386),_0xf4d1f0(0x14b),_0xf4d1f0(0x27c),_0xf4d1f0(0xce),_0xf4d1f0(0x5a4),'clearTTL',_0xf4d1f0(0x30b),_0xf4d1f0(0x343),_0xf4d1f0(0x30d),_0xf4d1f0(0x1c3),'getDefaultTTL',_0xf4d1f0(0x715),_0xf4d1f0(0x1f9),_0xf4d1f0(0x131),_0xf4d1f0(0x2aa)]){_0x326b5c[_0xf4d1f0(0x744)][_0x146773]=function(..._0x14aa18){const _0x363e39=this['env']('default');return _0x363e39[_0x146773](..._0x14aa18);};}function _0xdd09c2(_0x570800){const _0x77fdb8=_0xf4d1f0,_0x4122a8=_0x3c932b=>()=>{const _0x36bf0f=_0x5ce2;throw new Error('db.processors.'+_0x3c932b+_0x36bf0f(0x121));};return{'process':_0x4122a8(_0x77fdb8(0x750)),'processRest':_0x4122a8(_0x77fdb8(0x4ec)),'processEverything':_0x4122a8(_0x77fdb8(0x255)),async 'start'(){const _0x1048d7=_0x77fdb8;return _0x570800[_0x1048d7(0x313)]('db',null,_0x1048d7(0x2bb),[]);},async 'stop'(){const _0x3248af=_0x77fdb8;return _0x570800[_0x3248af(0x313)]('db',null,_0x3248af(0xcc),[]);},'status'(){const _0x4c87c7=_0x77fdb8;return _0x570800[_0x4c87c7(0x313)]('db',null,_0x4c87c7(0x1b6),[],![]);},get 'participating'(){const _0x500a84=_0x77fdb8;return _0x570800[_0x500a84(0x313)]('db',null,'processorsParticipating',[],![]);},get '_participate'(){const _0x1191f4=_0x77fdb8;return _0x570800['_call']('db',null,_0x1191f4(0x46c),[],![]);}};}function _0x122f41(_0x409ee2,_0x15edaa,_0x2a0883){const _0x1c90c0=_0xf4d1f0;_0x4008e7();try{return _0x2ff23a()[_0x1c90c0(0x271)](_0x409ee2,_0x15edaa,_0x2a0883);}catch(_0x535e29){throw _0xea61b(_0x535e29);}}_0x2e8cf9['exports']=_0x326b5c,_0x2e8cf9[_0xf4d1f0(0x62f)][_0xf4d1f0(0x551)]=_0x122f41,_0x2e8cf9['exports']['OKDB']=_0x326b5c,_0x2e8cf9[_0xf4d1f0(0x62f)]['HIGH_SENTINEL']=_0x3f1875,_0x2e8cf9[_0xf4d1f0(0x62f)][_0xf4d1f0(0x5eb)]=_0x326b5c,Object[_0xf4d1f0(0x236)](_0x2e8cf9[_0xf4d1f0(0x62f)],_0xf4d1f0(0x776),{'get':()=>require$$1$1[_0xf4d1f0(0x57a)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x5106ea(0x62f)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x30747f(0x62f)]=index;
|