@kedem/okdb 3.1.6 → 3.1.7

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 _0x3e8e44=_0x206c;(function(_0x276c37,_0x11d167){const _0x3431e3=_0x206c,_0x5a75c8=_0x276c37();while(!![]){try{const _0x56ea3b=-parseInt(_0x3431e3(0x611))/0x1+-parseInt(_0x3431e3(0x4cc))/0x2+-parseInt(_0x3431e3(0x2b8))/0x3+parseInt(_0x3431e3(0x7d4))/0x4*(parseInt(_0x3431e3(0x804))/0x5)+-parseInt(_0x3431e3(0x6e2))/0x6+parseInt(_0x3431e3(0x39a))/0x7+parseInt(_0x3431e3(0x28e))/0x8*(parseInt(_0x3431e3(0x33a))/0x9);if(_0x56ea3b===_0x11d167)break;else _0x5a75c8['push'](_0x5a75c8['shift']());}catch(_0x3f143f){_0x5a75c8['push'](_0x5a75c8['shift']());}}}(_0x2622,0xdcd19));var require$$0$6=require('node:events'),require$$1$1=require(_0x3e8e44(0x214)),require$$0=require(_0x3e8e44(0x394)),require$$1=require(_0x3e8e44(0x356)),require$$4=require('node:path'),require$$0$2=require('node:crypto'),require$$0$1=require('node:perf_hooks'),require$$16=require(_0x3e8e44(0x497)),require$$0$3=require(_0x3e8e44(0x62a)),require$$2=require(_0x3e8e44(0x79d)),require$$18=require('msgpackr'),require$$0$4=require(_0x3e8e44(0x642)),require$$0$5=require(_0x3e8e44(0x22f));function _0x2622(){const _0x3c9b6b=['node:cluster','releaseClaim','evict','attachConsole','size','scopedName','fetchJson','getResolvedOptions','_buf','REMOVE','PUT','stopHandle','_handlePoke','writerWatchdog','isInteger','inBatch','(?:','note','getRefViolation','rebuild','path','return','@harperdb/extended-iterable:skip','attach','removes','createSearch','getEmbedderSchema','reconcile','embeddings:indexer:ready','Plugin\x20name\x20\x27','_rawTxnBuf','getChanges','SCHEMA_VALIDATION_FAILED','getRecord','license:removed','_db','Cannot\x20register\x20plugins\x20after\x20start','_create','uninstalled','catch','isEnabled','getUniqueViolation','DEFAULT_TTL_MS','isWanted','geoQuery','\x27\x20is\x20not\x20a\x20function','getIndexStatus','tags\x20must\x20be\x20array\x20or\x20string','fts:','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','_durableIndexerStats','storageStats','SKIP','callRows:\x20unexpected\x20row\x20stride\x20','type:','4WGEUNi','job_type.defaults.','Unique\x20constraint\x20violated\x20on\x20','setModeApplied','_addr','raw','listPeers','_key','continueIteration','getMeta','header','item','done_ttl','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','startClaimed','ensureType','toISOString','getSelfNode','created','loop-lag','subscriptions','number','okdb','ITEM_REMOVE','/?$','feed:','byIndex','_log','returnRecoverableErrors','$not','setDeltaLimit','bus:drain','string','exports','server','queue:retry','export','reducers','emitProc',':index:','okdb._openEnvLazy:\x20env\x20\x22','timestamp','guardSnapshotIterable','issueToken',':\x20expected\x20','autoCompactTimerArmed','getRun','getBinary','1361890PSaRSP','load','refreshTtl','ttlStats','uninstall','INDEX_PROGRESS','_pending','ttlMs','__lock','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','_set','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','geoConfig','encryption:key-changed','listRefViolations','failJob','importBuf','$type','log\x20entry\x20message\x20required','_hlc','invalid\x20job_type.status:\x20','getBlobStatus','storeEnvName','array','_tx','max_tries','iterable','_durableEngineDoc','Referenced\x20key\x20\x27','INVALID_ARGUMENT','_timer','killWorker','cron','Map','auth','opts','utf8','_closedHandle','change','ITEM_UPDATE','resolveBackupDest','signal','_listPeers','fingerprint','next','view:progress','isDeepStrictEqual','bucket.tokens\x20must\x20be\x20int\x20>=\x200','_durableIndexerDocs','rollback','listRoutes','return\x20fromCharCode(','\x27:\x20','exportBlobs','batch','storage\x20adapter\x20is\x20gone','claim_id','actionCount','_indexBuilds','getIndex','workerState','_pumper','tries','Unknown\x20transaction\x20action:\x20','_rebuild','done','setInt32','setProcessingConfig','isWorker','filterSessionsForType','OKDBSchemaValidationError','Symbol.asyncIterator','processor:progress','killAll','_writerWatchdogInterval','Invalid\x20index\x20key\x20type\x20for\x20\x27','admission','heartbeat','resetFts','view','ready','stats','_modeApplied','job.error_stack\x20must\x20be\x20string|null','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','_isOpenForIp','flush','getTTL','~log_entry','events','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','SESSION_TYPE_INDEX','listModels','normalizeOAuthAuthResult','lockHeld','job.bucket\x20must\x20be\x20string|null','_peerDb','run','pumpEnvSync','_report','key','license','engine\x20api\x20has\x20no\x20method\x20\x27','data','peers','tryAcquire','abort','docEntry','_keyFns','INDEXER','_write','engines','exportJSON','lastTxnId','~ttl:expiry','_drain','setMaxListeners','listBuckets','applyChange','removeJob','/([^/]+)','_afterDurable','durableTierLag','txn:start','_assertFiles','fieldPath','drivers','_ensureTypeEnv','ttlState','UNKNOWN_RANGE_OPTION','_sweepOrphanLogs','ms\x20p99=','_getOidcDiscovery','getFloat64','actions','processor:resumed','params','health','nextTick','listFtsEnvs','T_INTEREST','compareKeys','OKDBError','IPv6','isWellFormed','setPrototypeOf','createEmbedder','offset','index:','item:','randomUUID','description','registerEmbedderFactory','KNOWN_OPTIONS','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','setEncryptionKey','stop','bigint','driver','for','env:opened','$all','getStats','dropFts','_ttlTimeout','detachConsole','RangeError','startNewEnginesFromSync','_call','ttlSetEntry','TXN_INVALID_ACTION','bus:env_release','tag','_refCache','fail','3.1.6','then','slice','removeEnvironment','envPath','getUint32','doc_status:','embeddings:embed:settled','MCP_ERROR','embedderNew','setDefaultTTL','handle','getDefaultTTL','setKick','embeddings:indexer:doc:queued','reset','symbol','getEmbedderFactory','_macro','registerHandler','isSync','viewDb','~system','PLUGIN_ALREADY_REGISTERED','_writer','logCap','embeddings:indexer:flushed','_detachLogSink','forceAfterMs','_ensureDesired','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','txn\x20ops\x20must\x20be\x20an\x20array','MINIMUM_KEY','_setTTLEntry','__HOLD__','_processorStops','replace','stateNames','remote','jsonrpcCode','scheduled','_blobPath','hasIndex','Plugin\x20\x27','retryJob','createReadStream','openEnv','ensureTokensType','_validateOidcAccessToken','bus:proc','announceEnqueued','_lock','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','setMode',':txnRange','engineUninstall','okdb.noFast','toBufferKey','iterator','dir','_openEnvLazy','err','_stopAutoCompactCheck','_started','_plugins','dupSort','deleted','bootSyncedEngines','handlerName','$near','_isLoopbackIp','isBun','claim_expires','registerChunkStrategy','_warnUnknownOptions','_patch','dropType','job.bucket_tokens\x20must\x20be\x20int\x20>=1','empty\x20array','_quantumGate','isFinite','_keepAlive','targetKey','_jsSchemas','startIndex','process\x20options.admission\x20must\x20be\x20a\x20function','_noChangelog','clearTTL','\x22\x20is\x20not\x20registered','OKDBAlreadyExistsError','Environment\x20\x22','upload','validateRouteInput','recomputeFields','install','durableCursorFloor','_emitProc','invalid\x20log\x20level:\x20','makeOkdb','(?:/(.*))?','db.processors.','OKDBIndexAlreadyRegisteredError','listViolations','queue:clear-progress','streamClose','queue.worker(\x27','some','limitOf','getStateAt','_nextExpiry','connectionCount','_emit','_timerHandle','creating','getDefinition','OKDBIndexHasConsumersError','(worst\x20','hook','encryptionKeys','proc','PLUGIN_DEPENDENCY_MISSING','true','indexOf','job\x20must\x20be\x20object','\x20│\x20','last','ttl','async','_blobStatusDb','autoCompact','getVector','grouped',';return\x20{','get','getJob','./native-loader.js','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','flushTimeoutError','_subscribed','getFast','event','inactive','tag\x20too\x20long','_defaultEnvObj','_drainOne','range','describeIndex',':clockToChange','offsetOf','_wsettle','removeLink','__cmd','allSettled','~processes:cmd','lock','regInfo','enabled','_closeReadTransaction','ctxSignal','_nodePrivateKey','_keyListener','sift','updateJob','hlc','tokens','kind','_flushDebounce','relay:error','durableRetryFailed','a\x20string','role','create','_kbuf','percentile','hash','_stops','-worker','Transaction\x20already\x20closed','runDrop','debug','_teardownNative','system:ready','resetView','OKDBIndexNotRegisteredError','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','ftsQuery','remove','created_at','whenSettled','setReadBuffer','type:registered','\x27\x20does\x20not\x20exist','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','unique','FOREIGN_KEY_VIOLATION','reducer','pendingResponses','explainIndex','durableEmbedderInfo','map','engine','_buckets','TXN_END','registerPreparer','failures','_makePipelineApi','localViewStats','a\x20non-empty\x20string','compaction','resetIndex','_durableEmbedderInfo','vectorStoreStats','ttlTimer','envsWithFiles','getHistory','once','registerAlgorithmFactory','setNative','registerDriver','disableAll','_settled','authenticateRequest','__after','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','job_type.payload_schema.definition\x20must\x20be\x20object','ensure:\x20type\x20is\x20required','payload','_store','notes','describeChunk','envs','_lazyPinned','sessionsForKey','listPath','join','processorsStart','\x20must\x20be\x20number','Plugin\x20must\x20have\x20a\x20name','readFieldMany','txn:end','application/octet-stream','addBucket','set','storeGetTotalHeadCount','compiled','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','createWorker','backupRoot','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','_assertRangeOptions','docs','config','ctxRelease','__okdb','_formerOrigins','records','7264beDNkL','origin','kickOwnedBy','reencrypt:\x20env','_stream','diag','Storage\x20resolver\x20must\x20be\x20a\x20function','setStorageResolver','setFlushNotify','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','compactLock','_running','ENGINE_INVALID_TYPE','hasUniqueViolations','removed','dropping','lastIndexOf','nativeCode','module','defineProperty','processors','timeMachine','txnId','Embedder\x20factory\x20for\x20\x22','cascade','getSecurityNotices','env','Cannot\x20openEnv(\x22','_ensureTokensType','_listeners','\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.','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ref','ALL_EVENTS','bucketsDb','registerModel','_ack','tools','storeEnv','_handleInProcess','callBatch','patch','4990104qkavLD','envSize','build','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','failed_ttl','inline','compact','queue','job.','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','ensureFeed','transaction','detachFeed','WriteBatch','processor:ready','ies','byteOffset','_license','processRest()','removeTxn','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','recordPeerAck','durableEngineDoc','max','_setKey','_dedupeMax','ENGINE_DRIVER_MISSING_START','Index\x20\x22','item:pending','job_type.','write','typesDb','_busFacade','subsBuilt','toFixed','listIndexes','writerStatus','EMBEDDER','index:progress','getSchema','setHostPlugins','keyFor','TXN_CLOSED','TypeError','__logsDb','setAutoCompact','index','removeSync','_readBuf','item:remove','_pokeHandler','count','shift','DONE','unknown\x20promise\x20token','set_null','replaceInterests','_ttlParseComposite','type:drop','SYSTEM_POKE','_onFeedChange','getCount','markSnapshotComplete','forgetDb','_quantum','emitClearDone','_timerObjs','_durableIndexerDoc','updateBucket','stopAll','status','catalog','_assertOpen','registerQuantum','upsertLink','reidentify','resetUnknownOptionsWarned','FIELD_RESOLVER_PENDING','pumping','limits','setLastClock','sseSetHeader','inflight','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','bucket','system:clock_change','INVALID_STATE','immediate','sha256','registerType','getMany','_remove','putSync','processes','_maxConnections','_role','use\x20engines.registerDriver()','listBlobStatus','close','clocks','_readViewExpired','when','inputSchema','resumeOpts','registerIndex','addEventListener','engineStart','socket','charCodeAt','_commitSessionMutation','maxDbs','embeddings:indexer:doc:failed','target','_asArray','job.type\x20must\x20be\x20non-empty\x20string','(source)\x20=>\x20{','files','loaded','nextExpiry','_ensureDbs','dropped','installed','maxMs','pop','views','_baselines','bootRuntime','mean','refTrackingDbs','_refIndexDb','21213ntrYtw','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','Key\x20is\x20too\x20large','extend','_envIndexDb','\x27\x20doesn\x27t\x20exist','_workers','changeEncryptionKey:\x20to','refill_amount','HIGH_SENTINEL','__ttlByExpiry','TXN_START','no_action','_release','LICENSE_LIMIT_EXCEEDED','doesExist','storeGetConfig','replaceMember','hasBody','embed-worker','createSession','__warned','error_stack','SUB_ENV','_features','_id','_sub','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','node:stream','_registerType','OKDBSchemaCollectionError','_wb','TXN_ENV_MISMATCH','setTtl','transaction\x20commit\x20failed','_undoHooks','$eq','Type\x20\x22','field\x20resolver\x20request\x20still\x20pending','startAutoCompactCheck','keys','REBUILD_IN_PROGRESS','_ttlState','_typesDb','chunks','embedder','hasChangelog','backup','OKDBNotFoundError','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','_ttlByKey','interest','toMs','OKDB','envName','listening','throw','reverse','$or','entries','incoming','hybridQuery','embeddings','_getPeerState','_startAdmission','enqueue','removeBucket','\x27\x20export\x20\x27','value','total','~fts:','flushed','\x20documents\x20fail\x20validation','_clearChunked','level','job.id\x20must\x20be\x20string','_settleRead','BAD_PLUGIN','reason','okdb-','exportToFile','\x27\x20on\x20type\x20\x27','spawn','embedder\x20is\x20gone','schema:set','_windowCbs','pressure','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.','listRecords','servers','node:fs','flushTicket','loadedPath','resetReadTxn','ENGINE_DRIVER_ALREADY_REGISTERED','paused','9841167qJtFsw','$gte','captureStackTrace','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','system:proc','job.tags\x20must\x20be\x20array','prefix','match','resolveField:\x20resolver\x20must\x20be\x20a\x20function','ms\x20max=','trunc','ctxEmit','_adminRelay','indexContent','license:activated','~engines','bulkRemoveChunk','getOpenWarning','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','bucket\x20too\x20long','Index\x20\x27','FTS_FLUSH_TIMEOUT','_isClosedEnvError','describeAllTypes','licenses','HTTP\x20','intervalTimer','acquired','afterTurn','_txnIdAtSnapshot','wake','commit','CREATED','min','reg','_inlineClosureWarned','exclusiveStart','isBuffer','_feed','storeGetDiffs','setJobTypeSchema','sweepOrphanLogs','emitWarning','readField','autoCompactState','dedupeMax','_changefeed','markJobHeartbeat','queue:enqueued','dup','_onPending',':index','info','instance','_listenAddr','_autoCompactTimer','bootSyncedPipelines','ERROR','isOAuthEmailAllowed','_bootLog','port','unique:violation','clearDone','STARTING','bucket\x20id\x20required','\x20already\x20exists','files.upload:\x20stream','child','STOPPED','storeGetHead','_attached','refreshReadTxn','_runRecord','durableDocs','resolve','stderr','listen','sync','hasEnv','from','getRaw','Foreign\x20key\x20violation:\x20','getGcHorizon','streamByHash','fromCharCode','non-empty\x20string','mapSize','meta','end','mapError','embeddings:strategy:registered','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','~file:blob_status','syncLock','_callPacked','handler','$in','_advanceHlcOnRecv','_seen','calculateDelta','put','retry','a\x20Buffer\x20or\x20readable\x20stream','txn-commit','setPosition(p)\x20{\x20position\x20=\x20p\x20},','progressed','registerViewReducer','\x20references\x20','getInt32',':emb:','removeJobType','REF_VIOLATION','_resolveKeys','searchDocs','start','removeJobLogsAfterCommit','asyncIterator','subarray','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','message','removeListener','indexer\x20engine\x20not\x20running:\x20\x22','details','getRange','includes','resume','failed','buildStep','test',')\x0a\x09\x09}\x0a\x09\x09','list','claimGated','near','_durableWorkerStats','_makeLazyVectorAdapter','Unknown\x20OKDB\x20transaction\x20error','_run','free','patchSelf','txnUndone','\x20(required\x20by\x20','setCurrentDb','assign','_clearTTL','code','bus','_callRows','finish','\x20actions=','resetIndexBegin','_settleWrite','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','_dupArg','_sweepInProgress','refItemsDbs','sweepExpired','vecRemove','$nor','exportEnvsToStream','dataEnv','isSnapshotComplete','setKeyBuffer','_onItem','durableClock','indexer','embed','envNames','nextTurn','bucket.capacity\x20must\x20be\x20int\x20>=\x200','removeJobTypeSchema','version','drainDeadlineMs','getEntry','refreshThresholdMs','getLoginConfig','processor:\x20module\x20\x27','concat','_ensurePeerState','dropIndex','handleDurableClock','__tokenSecret','durableMarkFail','offWindow','_markSeen','defaults','enforced','_changeToClockDb','getTemplate','advanceHlcOnRecv','reject','req','flatMap','signalWant','node','durableRetryDoc','resetting','registerExtractor','validate','sync:apply','_lookupAllByName','TXN_ROLLBACK','createWriteFacade','setCursor','embeddings:indexer:doc:done','exportBuf','_retryPending','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','Missing\x20plugin:\x20','cursorKey','NOT_FOUND','okdb-node:\x20unknown\x20bridge\x20op\x20','isRunning','ensure','processEverything()','process','internal','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','preview','sortedDb','turns','_settleWaiters','job.priority\x20must\x20be\x20int','_scheduleFlush','OKDBTypeNotRegisteredError','prototype','_handle','job.status_message\x20must\x20be\x20string|null','readHashRange','_stopFor','hasType','assertCreateAllowed','_claimGated','_makeIterator','planUpdateJob','_jsFactories','nidFor','connected','license:invalid','compactStorage','resolvedOptions','addSSE','~log','context','pause','tryClaimTokens','_root','push','sessionId','__esModule','samplePayloads','restrict','processorsStatus','node:util','_typeKeys','parseBearer','_isReader','setClaimGated','job\x20type\x20must\x20be\x20object','nativeBinaryPath','resolveField:\x20type\x20required','routes','buckets','~queue_buckets','_isExpired','turnWaiters','sourceType','markJobFail','bucket.id\x20must\x20be\x20non-empty\x20string','encryption\x20key\x20function\x20failed:\x20','describeType','listTTL','_native','endsWith','updated_at','getJobLogs','_facade','features','rows','getViolation','enableAll','_range','_ttlCompositeKey',':data','_info','_reconcilePeer','OKDBUniqueConstraintError','started','lookupByTokenHash','ctxLog','IPv4','fetch','TXN_ERROR','getRunningEngine','_cursors','reencrypt','vector','FTS_READY_TIMEOUT','_blobStatusTxn','select','\x22\x20must\x20be\x20a\x20plain\x20object','formerIds','unregisterTarget','logChange','SCHEMA_COLLECTION_INVALID','requires','149266CkRQgF','$regex','log','getSession','$lt','sort','retry_delay','callStatic','indexReady','listRuns','completeJob','Error','addJobType','setTTL','functions','byteLength','args','FOREIGN_KEY_DELETE_RESTRICTED','$streamId','isHeld','listNodes','$ne','CHANGEFEED_QUANTUM','use','_clockToChangeDb','useReadTransaction','dropAll','_update','encoder','call','closeEnvLocally','body','License\x20limit\x20exceeded:\x20','job_type.payload_schema.enforce\x20must\x20be\x20boolean','priority','_status','regObject','blobPath','_http','runtimeDeclarations','\x22\x20on\x20\x22','$gt','dropSchema','txnDone','_oauthConfig','TYPE_NOT_REGISTERED','okdb-node:\x20unknown\x20callback\x20id\x20','ctxHeartbeat','_enableChangelog','job.tries\x20must\x20be\x20non-negative\x20int','\x22\x20not\x20found','_sync','INDEX_ALREADY_REGISTERED','bind','UNIQUE_CONSTRAINT','createLoginState','addrs','pending','OKDBTypeAlreadyRegisteredError','continueOnRecoverableError','worker','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','spec','embedderCall','durableMarkDelete','_tids','_getFast','taken','orchestratorStarted','registerTemplate','registerEnv',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','storeEnvPath','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','payload_schema','abs','loop-lag\x20','_tokenSecret','uploadTxn','dbs','checkSignals','noteListenAddr','trim','writeKey','Buffer','_locks','_licenseInterval','customReducerNames','vec:','newListener','bucket_tokens','FTS_BUILD_CONTINUE','headers','files.upload:\x20id','endIndex','sparse','pid','query','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','ringSize','itemsGroups','delta_limit','createPipeline','system:env_release','setFilter','typeId','_unknownOptionsWarned','stopView','refill_every','_onStop','listAlgorithms','pushEphemeral','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','Database\x20not\x20started','backoffUntil','assertStartAllowed','INVALID_PRIMARY_KEY','_np','onDelete','listTemplates','flushQuantum','job.buckets\x20must\x20be\x20array|null','~sub','idempotency_key','_getNodeRecord','_build','T_SESSION','~files','embeddings:doc:status_change','readerCheckIntervalMs','_env','ms\x20busy=','halted','gen','_envs','getStatus','max_concurrency','HIGH_FREQ_EVENTS','$size','_defaultEnv','inNativeCall','detach','__absent','__blobStatusDb','exportName','null','stateInfo','applyOps',':\x20unknown\x20option\x20\x27','awaitIdle','search','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','_closeEnvLocally','isReader','INDEX_HAS_CONSUMERS','__stateDb','callPacked','_OPTION_HINTS','byLabel','callAsync','draining','emb','Engine\x20template\x20build()\x20is\x20required:\x20','.\x20Valid:\x20','_meta','pauseAllAndDrain','find','_lockHandle','type','action','job_type.defaults.buckets\x20must\x20be\x20array|null','_push','OKDBInvalidValueError','log\x20entry\x20fields\x20must\x20be\x20object|null','bucket\x20must\x20be\x20object','processor:\x20rebuild\x20must\x20be\x20a\x20function','HTTP_ERROR','durableWorkerStats',']\x20already\x20maps\x20to\x20\x27','_getType','clearStuck','Version\x20mismatch\x20for\x20','tags','undefined','OKDBForeignKeyDeleteError','_enqueueInTxn','delete','_blobStream','recordRun','\x22\x20tokens\x20must\x20be\x20>=\x201','nodeKey','fetchRemoteDelta','stream','Cannot\x20delete\x20','now','ENGINE_INVALID_TEMPLATE','INDEXER_DOC_QUEUED','$lte','PLUGIN_NAME_CONFLICT','__fts:','host','unresolveField','OKDBProcessor','rowKey','instanceTimerArmed','_blobsDir','$where','storage\x20adapter\x20has\x20no\x20method\x20','mcp','INDEXER_DOC_FAILED','pipelines','drop','_autoCompact','drainJobType','properties',':useReadTransaction','onDone','mode','setWake','resolvedFields','hasOwnProperty','send','committed','attachFeed','locks','resetCursor','_handles','job\x20id\x20required','writeBlob','Too\x20many\x20concurrent\x20connections','getJobType','disable','previewTemplate','remoteAddress','readKey','onUndo','item:create','unpack','_ensure','oauth','findOwner','queue:clear-done','summary','changeEncryptionKey','isNaN','registerBucketProjection','searchWithScores','runtimeState','job.retry_delay\x20must\x20be\x20int\x20>=\x200','~fts:envs','maxConnections','field:resolver_registered','json','clearSync','error','formerOrigins','schema:drop','_handlerName','busEmit','OKDBInvalidIndexKeyError','Date','_syncExpiresAtField','registerQuantum:\x20load\x20must\x20be\x20a\x20function','_isWriter','_pressure','_ringSize','runPoll','Referenced\x20type\x20\x27','BAD_PARAM','status_message','_handlePending','queue:rescheduled','sourceKey','$exists','hasStopFn','syncBlobs','listIndexKeys','stopped','_getRaw','[log-sink]\x20','_admissionStarted','dirty','_nm','VERSION_MISMATCH','bucket.tokens\x20cannot\x20exceed\x20capacity','drives','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','\x22\x20requires\x20a\x20`handler`\x20function','label','state','options','_lookupByName','lookupByName','targetType','_ensureEnv','consumeLoginState','_compactLock','process()\x20entry\x20\x22','doc','asArray','countByIndex','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','timerArmed','durableRebuild','sseClose','iterate','prevDb','mkdirSync','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','loginSelect','$pending','createQueryTester','clone','_statusEnv','default','updated','errors','unregisterExtractor','getMaxBodyBytes','hasDriver','importJSON','unpin','durableMarkDone','579943QpKTpJ','blobsDir','Engine\x20driver\x20for\x20\x22','turn','attachOKDB','shutdownTimeout','limit','\x20which\x20does\x20not\x20exist','$defs','_systemEnv','length','pinned','fields','isIndex','__adminRelay','fetchPeer','aborted','RELAY_FULL','maxBodyBytes','_debounceTimer','update','stopAutoCompactCheck','schema','Unsupported\x20transaction\x20action:\x20','_reconcile','node:http','_waitNative','$ref','_isFar','exportToStream','getIndexMeta','_txnBuf','\x20log\x20entr','_doHooks','getValues','retryFailed','isSetupMode','gcOrphanedBlobs','vectorSpace','registerTarget','createEngine','lmdb','readTransaction','_uid','isArray','unref','timer','resolveData','authenticateToken','crypto','unique:violation_resolved','privateKey','useVersions','encryptionKey','login','refreshTtlBatch','_viewCache','describeAllTypesDetailed','http','getAll','_clockListener','metaDb','WORKER','clockToChangeDb','~lock','__sync:acks','address','refs','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','filter','setMaxBodyBytes','fromEntries','STOPPING','queue-worker','_dedupeKey','_isOpen','dims','appendJobLog','_callMacro','READER_HELD_ACROSS_AWAIT','modeApplied','chunk\x20strategy\x20must\x20be\x20a\x20function','HTTP_CLUSTER_REMOVED','patchDeclaration','bootSyncedViewsInline','\x0a\x09\x09let\x20','getNodeRecord','job.claim_id\x20must\x20be\x20string|null','bootSyncedViews','lookupAllByName','read','outgoing','subscriptions-store:\x20open()\x20not\x20called','inspect','removeEventListener','setClaiming','reconcilePeer','granId','ceil','drain','lastError','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','object','resolveModelDims','embedder\x20request\x20still\x20pending','_tickCallback','pauseJobType','_hybridQuery','_indexBuild','maxExtra','plugins','ctxUpdateStatus','duplicate\x20bucket:\x20','hasEmbedderFactory','lastClock','\x22\x20tokens\x20too\x20large','gateQuanta','job.status_code\x20must\x20be\x20string|null','apply','hasNativeBatch','finished','boolean','pageSize','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','compare','getBucket','forEach','_detachConsole','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','isTypeEmpty','new','getLegacyCursor','der','\x20returned\x20no\x20key','_sinks','puts','index:ready','import','reconcilePeerPull','_low','existing','items','registerFts','OKDBVersionMismatchError','applyInterestDelta','release','function','acquiredAt','_pdb','ITEM_PENDING','__notImplementedNative','_startClaimedSoon','destroy','$elemMatch','namespace','viewOp','_detachLog','_logChange','__peers','_onPoke','admin','forceResync','workers','handleError','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','ttl:set','localViewNames','_logEnv','job_type.id\x20must\x20be\x20non-empty\x20string','running','\x22\x20is\x20used\x20by:\x20','MAXIMUM_KEY','handleResult','split','native','subscribe','orchestrator','QUERY_OPERATOR_FORBIDDEN','warn','_nodePublicKey','DEFAULT_EVENTS','pin','TXN_INVALID_OPS','NOT_IMPLEMENTED_NATIVE','holder','stack','cause','~processes','addInterest','_localViewApi','_logsDb','groupsDb','$payload','ENCRYPTION_KEY_REQUIRED','links','ENGINE_INVALID_DRIVER','storePayload','txn','getPeerAcks','sweepExpiredTTL','Blob\x20missing\x20for\x20file:\x20','clearDefaultTTL','_pendingLocal','add','_shouldApplyChange','__syncOverride','dataView','listTypes','Schema\x20validation\x20failed\x20for\x20','3575988xGcDim','registerReducer','_buffer','inclusiveEnd','Can\x20not\x20serialize\x20key\x20of\x20type\x20','getKeys','embedBatch','_flushTimer','capacity','processor:retry','selfKey','getOidcDiscovery','register','snapshot','OKDBForeignKeyError','childTransaction','_ttlTimerAt','markJobComplete','_closed','vector-search','clear','system:bus_state_change','Cannot\x20set\x20enforce\x20schema\x20on\x20','_envWide','_connections','resumeJobType','_read','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','getByPrefix','_rbuf','clearAsync','gc.','__ttlByKey','open','createEnvironment','busState','createAndStartEngine','claim','_subsV2Obj','_ackDb','hasApi','isLoopbackIp','backoff_multiplier','ITEM_CREATE','initialize','setLogSink','primaryOkdb','isOpenForIp','isFeatureEnabled','_rootDb','onDo','processor:paused','Type\x20\x27','_deliver','~queue_jobs','$mod',')\x20+\x20readString(source)}','_listening','INVALID_TYPE_NAME','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','apiCall','fts','fts:registered','bus:type_drop','buffer','getCursor','quantum','~emb:models','processor','setSchema','cancelJob','processorsStop','NativeLock','_rebuilding','migrate','record','resumed','runRecord','tolerant','allocUnsafeSlow','alg','toJSON','kick','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','_path','utf8Write','job.cron\x20must\x20be\x20string|null','stringify','bootRuntimeDeclarations','api','REVERSE_INDEX','listJobTypes','_admissionTimer','processorHold','getClock','~queue_payloads','token','ONLINE','$and','_draining','system:poke','startsWith','STARTED','emit','resetIndexFinish','getUniqueViolations','itemsDb','algorithm\x20is\x20gone','retryable','SYSTEM_STOPPED','OKDBNotImplementedNativeError',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','~ref_violations','enable','restart','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','ctrl','queue:log','assertQueryOptions','guard','vector-search\x20engine\x20not\x20running:\x20\x22','references','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','job','INVALID_VALUE','freeze','areIndexesReady','bus:poke','processorsParticipating','itemsPlan','has','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','statusOpen','__ttlCancelledGen','listLinks','\x20=\x20finishUtf8(','nodeKeys','flushMaxWait','equal',':\x20key\x20[','onWindow','createIndexer','status_code','_staticCall','queue:removed','INACTIVE','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.','okdb.http.listen(port)\x20in\x20each\x20worker.','__desired','_ts','Invalid\x20primary\x20key\x20type:\x20','\x27\x20already\x20registered','TYPE_ALREADY_REGISTERED','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','resolveField:\x20field\x20required','job.finished\x20must\x20be\x20number|null','engine:','values','_envSyncStop','name','_lookupByTokenHash','_subscribeEvent','session','getEngine','buildOwnRow','listVectorStores','openDB','storeHasDiff','empty\x20string','_wrap','\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','definition','bucket\x20\x22','balanced','ALREADY_EXISTS','Query\x20operator\x20\x22','_fail','ingest','runGc','off','prefetch','existsSync','staticCall','importFromStream','getTypeCount','encodeInto','settledTickets'];_0x2622=function(){return _0x3c9b6b;};return _0x2622();}function getDefaultExportFromCjs(_0x4b747a){const _0x5549fc=_0x3e8e44;return _0x4b747a&&_0x4b747a[_0x5549fc(0x493)]&&Object[_0x5549fc(0x47b)][_0x5549fc(0x5aa)][_0x5549fc(0x4e9)](_0x4b747a,'default')?_0x4b747a['default']:_0x4b747a;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x351a26 extends Error{constructor(_0x181d9c,_0x131005,_0x3d660f={}){const _0x25b1f7=_0x206c;super(_0x181d9c),this[_0x25b1f7(0x781)]=_0x25b1f7(0x892),this['code']=_0x131005,this['details']=_0x3d660f,_0x3d660f['cause']&&(this['cause']=_0x3d660f['cause']),Error[_0x25b1f7(0x39c)](this,this['constructor']);}}class _0x579e3b extends _0x351a26{constructor(_0x4c4efb,_0x1085c6,_0x292b77,_0x31be0d){const _0x127a40=_0x206c;super(_0x127a40(0x583)+_0x4c4efb+'@'+_0x1085c6+_0x127a40(0x800)+_0x292b77+',\x20got\x20'+_0x31be0d,_0x127a40(0x5e9),{'type':_0x4c4efb,'key':_0x1085c6,'expectedVersion':_0x292b77,'actualVersion':_0x31be0d}),this[_0x127a40(0x781)]=_0x127a40(0x6a0);}}class _0x2e60e2 extends _0x351a26{constructor(_0x58b57f,_0x33226a){const _0x54e2d1=_0x206c;super(_0x58b57f+'@'+_0x33226a+'\x20does\x20not\x20exist',_0x54e2d1(0x46c),{'type':_0x58b57f,'key':_0x33226a}),this[_0x54e2d1(0x781)]=_0x54e2d1(0x36a);}}class _0x3cf40d extends _0x351a26{constructor(_0xa59442,_0x5a255b){const _0x366429=_0x206c;super(_0xa59442+'@'+_0x5a255b+_0x366429(0x3db),_0x366429(0x790),{'type':_0xa59442,'key':_0x5a255b}),this[_0x366429(0x781)]=_0x366429(0x1e6);}}class _0x35d8f6 extends _0x351a26{constructor(_0x2c78a1,_0x4b2f97){const _0x1425fd=_0x206c,_0x1f1d43=typeof _0x4b2f97;super(_0x1425fd(0x84f)+_0x2c78a1+_0x1425fd(0x838)+_0x1f1d43+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x4b2f97,'INVALID_INDEX_KEY',{'index':_0x2c78a1,'key':_0x4b2f97,'keyType':_0x1f1d43}),this['name']=_0x1425fd(0x5d1);}}class _0x57307f extends _0x351a26{constructor(_0x241747){const _0xcd8640=_0x206c,_0x39c6a5=typeof _0x241747;super(_0xcd8640(0x778)+_0x39c6a5+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0x241747,_0xcd8640(0x542),{'key':_0x241747,'keyType':_0x39c6a5}),this[_0xcd8640(0x781)]='OKDBInvalidPrimaryKeyError';}}class _0x1f8801 extends _0x351a26{constructor(_0xb8f3e0){const _0x38c07e=_0x206c;super(_0x38c07e(0x716)+_0xb8f3e0+_0x38c07e(0x33f),'TYPE_NOT_REGISTERED',{'type':_0xb8f3e0}),this['name']=_0x38c07e(0x47a);}}class _0x297955 extends _0x351a26{constructor(_0x128e53){const _0x225a46=_0x206c;super(_0x225a46(0x716)+_0x128e53+_0x225a46(0x779),_0x225a46(0x77a),{'type':_0x128e53}),this[_0x225a46(0x781)]=_0x225a46(0x506);}}class _0x6761e7 extends _0x351a26{constructor(_0x47d3ce,_0xeb156b){const _0x44283e=_0x206c;super(_0x44283e(0x3ae)+_0xeb156b+'\x27\x20on\x20type\x20\x27'+_0x47d3ce+_0x44283e(0x33f),'INDEX_NOT_REGISTERED',{'type':_0x47d3ce,'index':_0xeb156b}),this[_0x44283e(0x781)]=_0x44283e(0x245);}}class _0x136f16 extends _0x351a26{constructor(_0x3f8e71,_0x2237f7){const _0x35288e=_0x206c;super(_0x35288e(0x3ae)+_0x2237f7+_0x35288e(0x38b)+_0x3f8e71+'\x27\x20is\x20already\x20registered',_0x35288e(0x500),{'type':_0x3f8e71,'index':_0x2237f7}),this[_0x35288e(0x781)]=_0x35288e(0x1f2);}}class _0x3aadcb extends _0x351a26{constructor(_0x4a3e96,_0x124d9b={}){const _0x374067=_0x206c;super(_0x4a3e96,_0x374067(0x75e),_0x124d9b),this[_0x374067(0x781)]=_0x374067(0x57a);}}class _0x3d9756 extends _0x351a26{constructor(_0x1dee21,_0x44bcde,_0x528322,_0x31dcdc,_0x4e8ad3){const _0x534db9=_0x206c;super(_0x534db9(0x7d6)+_0x1dee21+'@'+_0x44bcde+_0x534db9(0x76d)+_0x528322+_0x534db9(0x580)+_0x31dcdc+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x4e8ad3+'\x27',_0x534db9(0x502),{'type':_0x1dee21,'index':_0x44bcde,'indexKey':_0x528322,'existingKey':_0x31dcdc,'conflictingKey':_0x4e8ad3}),this['name']=_0x534db9(0x4b8);}}class _0x1ca122 extends _0x351a26{constructor(_0x47c073,_0x1e8238,_0x56f4c1){const _0x2e6352=_0x206c;super(_0x2e6352(0x6e1)+_0x47c073+'@'+_0x1e8238,_0x2e6352(0x7bd),{'type':_0x47c073,'key':_0x1e8238,'errors':_0x56f4c1}),this[_0x2e6352(0x781)]='OKDBSchemaValidationError',this[_0x2e6352(0x576)]=_0x47c073,this[_0x2e6352(0x868)]=_0x1e8238,this[_0x2e6352(0x60a)]=_0x56f4c1;}}class _0x5092f extends _0x351a26{constructor(_0x120447,_0x13ca5a){const _0x27b6ff=_0x206c;super(_0x27b6ff(0x6f8)+_0x120447+':\x20'+_0x13ca5a['length']+_0x27b6ff(0x382),_0x27b6ff(0x4ca),{'type':_0x120447,'failures':_0x13ca5a}),this[_0x27b6ff(0x781)]='OKDBSchemaCollectionError',this[_0x27b6ff(0x576)]=_0x120447,this[_0x27b6ff(0x25a)]=_0x13ca5a;}}class _0x3b60d4 extends _0x351a26{constructor(_0x3a4176,_0x3d4c25,_0x417023,_0x5cc766,_0x1ac045){const _0xa75ab3=_0x206c;super(_0xa75ab3(0x3eb)+_0x3a4176+'@'+_0x3d4c25+'.'+_0x417023+_0xa75ab3(0x405)+_0x5cc766+'@'+_0x1ac045+_0xa75ab3(0x618),_0xa75ab3(0x250),{'sourceType':_0x3a4176,'sourceKey':_0x3d4c25,'fieldPath':_0x417023,'targetType':_0x5cc766,'targetKey':_0x1ac045}),this[_0xa75ab3(0x781)]=_0xa75ab3(0x6f0),this[_0xa75ab3(0x4a4)]=_0x3a4176,this['sourceKey']=_0x3d4c25,this[_0xa75ab3(0x881)]=_0x417023,this[_0xa75ab3(0x5f3)]=_0x5cc766,this[_0xa75ab3(0x1df)]=_0x1ac045;}}class _0x25e8e5 extends _0x351a26{constructor(_0x4db5cd,_0x23c9e3,_0x16654e){const _0x389e94=_0x206c;super(_0x389e94(0x58f)+_0x4db5cd+'@'+_0x23c9e3+':\x20'+_0x16654e[_0x389e94(0x61b)]+_0x389e94(0x85e),_0x389e94(0x4dd),{'targetType':_0x4db5cd,'targetKey':_0x23c9e3,'references':_0x16654e}),this[_0x389e94(0x781)]=_0x389e94(0x586),this[_0x389e94(0x5f3)]=_0x4db5cd,this[_0x389e94(0x1df)]=_0x23c9e3,this['references']=_0x16654e;}}class _0x3fabac extends _0x351a26{constructor(_0x487e5f,_0x2ff4e3,_0x3b83ed){const _0x46bf31=_0x206c;super(_0x46bf31(0x2d3)+_0x2ff4e3+_0x46bf31(0x4f4)+_0x487e5f+_0x46bf31(0x6bb)+_0x3b83ed['map'](_0x2605a0=>_0x2605a0[_0x46bf31(0x233)]+':'+_0x2605a0[_0x46bf31(0x781)])[_0x46bf31(0x278)](',\x20'),_0x46bf31(0x568),{'type':_0x487e5f,'index':_0x2ff4e3,'usedBy':_0x3b83ed}),this[_0x46bf31(0x781)]=_0x46bf31(0x200);}}return okdbError={'OKDBError':_0x351a26,'OKDBVersionMismatchError':_0x579e3b,'OKDBNotFoundError':_0x2e60e2,'OKDBAlreadyExistsError':_0x3cf40d,'OKDBInvalidIndexKeyError':_0x35d8f6,'OKDBInvalidPrimaryKeyError':_0x57307f,'OKDBTypeNotRegisteredError':_0x1f8801,'OKDBTypeAlreadyRegisteredError':_0x297955,'OKDBIndexNotRegisteredError':_0x6761e7,'OKDBIndexAlreadyRegisteredError':_0x136f16,'OKDBInvalidValueError':_0x3aadcb,'OKDBUniqueConstraintError':_0x3d9756,'OKDBSchemaValidationError':_0x1ca122,'OKDBSchemaCollectionError':_0x5092f,'OKDBForeignKeyError':_0x3b60d4,'OKDBForeignKeyDeleteError':_0x25e8e5,'OKDBIndexHasConsumersError':_0x3fabac},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x2dfe80=_0x3e8e44;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x427556=requireOkdbError(),_0x2945d7={'VERSION_MISMATCH':_0x427556[_0x2dfe80(0x6a0)],'NOT_FOUND':_0x427556['OKDBNotFoundError'],'ALREADY_EXISTS':_0x427556[_0x2dfe80(0x1e6)],'INVALID_INDEX_KEY':_0x427556[_0x2dfe80(0x5d1)],'INVALID_PRIMARY_KEY':_0x427556['OKDBInvalidPrimaryKeyError'],'TYPE_NOT_REGISTERED':_0x427556[_0x2dfe80(0x47a)],'TYPE_ALREADY_REGISTERED':_0x427556[_0x2dfe80(0x506)],'INDEX_NOT_REGISTERED':_0x427556['OKDBIndexNotRegisteredError'],'INDEX_ALREADY_REGISTERED':_0x427556[_0x2dfe80(0x1f2)],'INVALID_VALUE':_0x427556[_0x2dfe80(0x57a)],'UNIQUE_CONSTRAINT':_0x427556[_0x2dfe80(0x4b8)],'SCHEMA_VALIDATION_FAILED':_0x427556[_0x2dfe80(0x84a)],'SCHEMA_COLLECTION_INVALID':_0x427556[_0x2dfe80(0x358)],'FOREIGN_KEY_VIOLATION':_0x427556[_0x2dfe80(0x6f0)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x427556[_0x2dfe80(0x586)],'INDEX_HAS_CONSUMERS':_0x427556[_0x2dfe80(0x200)]};class _0x1ac5b9 extends _0x427556[_0x2dfe80(0x892)]{constructor(_0x20d6ab,_0x31b08b){const _0x3206fd=_0x2dfe80;super(_0x20d6ab+_0x3206fd(0x751)+(_0x31b08b?'\x20('+_0x31b08b+')':''),_0x3206fd(0x6c8),{'feature':_0x20d6ab}),this[_0x3206fd(0x781)]=_0x3206fd(0x750);}}function _0x12abe9(_0x41c77e){const _0x37c9ee=_0x2dfe80;if(!_0x41c77e||typeof _0x41c77e!=='object'||!_0x41c77e['__okdb'])return _0x41c77e;delete _0x41c77e[_0x37c9ee(0x28b)];const _0x3fb0de=_0x41c77e['code'];if(_0x3fb0de===_0x37c9ee(0x4d7)||_0x3fb0de===_0x37c9ee(0x2e3)||_0x3fb0de===_0x37c9ee(0x8aa)){const _0x23a905=_0x3fb0de===_0x37c9ee(0x2e3)?TypeError['prototype']:_0x3fb0de===_0x37c9ee(0x8aa)?RangeError[_0x37c9ee(0x47b)]:Error[_0x37c9ee(0x47b)];Object['setPrototypeOf'](_0x41c77e,_0x23a905),_0x41c77e[_0x37c9ee(0x781)]=_0x3fb0de;if(_0x41c77e['details']&&_0x41c77e[_0x37c9ee(0x415)]['status']!==undefined)_0x41c77e['status']=_0x41c77e[_0x37c9ee(0x415)][_0x37c9ee(0x2fe)];return delete _0x41c77e[_0x37c9ee(0x42b)],delete _0x41c77e[_0x37c9ee(0x415)],_0x41c77e;}const _0xc81517=_0x2945d7[_0x3fb0de];Object[_0x37c9ee(0x895)](_0x41c77e,(_0xc81517||_0x427556['OKDBError'])['prototype']),_0x41c77e[_0x37c9ee(0x781)]=_0xc81517?_0xc81517[_0x37c9ee(0x781)][_0x37c9ee(0x1b1)](/^OKDB/,_0x37c9ee(0x36f)):_0x37c9ee(0x892);const _0x1dd54a=_0x41c77e['details']||{};_0x3fb0de==='SCHEMA_VALIDATION_FAILED'&&(_0x41c77e[_0x37c9ee(0x576)]=_0x1dd54a[_0x37c9ee(0x576)],_0x41c77e[_0x37c9ee(0x868)]=_0x1dd54a[_0x37c9ee(0x868)],_0x41c77e['errors']=_0x1dd54a['errors']);_0x3fb0de===_0x37c9ee(0x4ca)&&(_0x41c77e[_0x37c9ee(0x576)]=_0x1dd54a[_0x37c9ee(0x576)],_0x41c77e[_0x37c9ee(0x25a)]=_0x1dd54a[_0x37c9ee(0x25a)]);if(_0x3fb0de===_0x37c9ee(0x250)){for(const _0xd54da0 of[_0x37c9ee(0x4a4),'sourceKey',_0x37c9ee(0x881),_0x37c9ee(0x5f3),'targetKey'])_0x41c77e[_0xd54da0]=_0x1dd54a[_0xd54da0];}if(_0x3fb0de==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x5df22f of[_0x37c9ee(0x5f3),_0x37c9ee(0x1df),_0x37c9ee(0x75b)])_0x41c77e[_0x5df22f]=_0x1dd54a[_0x5df22f];}if(_0x1dd54a[_0x37c9ee(0x6cb)])_0x41c77e['cause']=_0x1dd54a[_0x37c9ee(0x6cb)];if(_0x1dd54a[_0x37c9ee(0x2fe)]!==undefined)_0x41c77e[_0x37c9ee(0x2fe)]=_0x1dd54a[_0x37c9ee(0x2fe)];if(_0x1dd54a[_0x37c9ee(0x74e)]!==undefined)_0x41c77e['retryable']=_0x1dd54a[_0x37c9ee(0x74e)];return _0x41c77e;}function _0x587fa5(_0x31be82){const _0x191512=_0x2dfe80;if(_0x31be82===undefined)return _0x191512(0x585);if(_0x31be82===null)return _0x191512(0x55f);if(typeof _0x31be82==='string')return _0x31be82?_0x191512(0x7f4):_0x191512(0x78a);if(typeof _0x31be82===_0x191512(0x6a3))return _0x191512(0x6a3);if(typeof _0x31be82!==_0x191512(0x677))return typeof _0x31be82;if(Array[_0x191512(0x63d)](_0x31be82))return _0x31be82[_0x191512(0x61b)]?_0x191512(0x81b):_0x191512(0x1db);if(_0x31be82 instanceof Date)return _0x191512(0x5d2);if(_0x31be82 instanceof Map)return _0x191512(0x825);if(Buffer[_0x191512(0x3bf)](_0x31be82))return _0x191512(0x521);return _0x191512(0x677);}const _0x5606e9=(_0x5d1064,_0x24c9c8,_0x3535c3)=>new _0x427556[(_0x2dfe80(0x892))](_0x24c9c8,_0x5d1064,_0x3535c3),_0xb080e6=(_0x7cd927,_0x460d21,_0x54811c)=>_0x5606e9(_0x2dfe80(0x821),_0x7cd927+'\x20must\x20be\x20'+_0x460d21+';\x20got\x20'+_0x587fa5(_0x54811c),{'argument':_0x7cd927,'expected':_0x460d21,'got':_0x587fa5(_0x54811c)}),_0x1b785b=(_0x327bf0,_0x58655e)=>_0x5606e9(_0x2dfe80(0x71c),_0x327bf0+_0x2dfe80(0x655)+_0x587fa5(_0x58655e),{'argument':_0x327bf0,'expected':_0x2dfe80(0x3ef),'got':_0x587fa5(_0x58655e)}),_0x4d1f7c=(_0x54eecf,_0x3e8e6e)=>_0x5606e9('INVALID_OPTIONS',_0x54eecf+':\x20'+_0x3e8e6e,{'argument':_0x54eecf,'problem':_0x3e8e6e});function _0x465967(_0x247b28,_0x3132d5=_0x2dfe80(0x5f0)){if(_0x247b28===undefined)return{};if(_0x247b28===null)throw _0x4d1f7c(_0x3132d5,'must\x20be\x20an\x20object;\x20got\x20null');return _0x247b28;}return errors={'reclass':_0x12abe9,'NotImplementedNative':_0x1ac5b9,'BY_CODE':_0x2945d7,'describe':_0x587fa5,'invalidArgument':_0xb080e6,'invalidTypeName':_0x1b785b,'invalidOptions':_0x4d1f7c,'optionsArg':_0x465967,..._0x427556},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x11cbb4=new Map(),_0x7b1736=new Map();let _0x2243ce=0x1;const _0x1dcc21=new Map(),_0x1f8d6f=new Map();let _0x594e97=0x1;const _0x2dd49d=new Map();let _0x1ec818=0x1;const _0x3030ae=new Map();function _0xfa05d7(_0xd7c41d,_0xa8d5a1=null){const _0x38784a=_0x206c,_0x22b54c=_0x1ec818++;_0x2dd49d[_0x38784a(0x280)](_0x22b54c,_0xd7c41d);if(_0xa8d5a1)_0x3030ae[_0x38784a(0x280)](_0x22b54c,_0xa8d5a1);return _0x22b54c;}function _0x59e24e(_0x3a4c1d,_0x4714f4){const _0x403049=_0x206c,_0x331778=_0x2dd49d[_0x403049(0x212)](_0x3a4c1d),_0x4e2347=Array[_0x403049(0x47b)]['slice'][_0x403049(0x4e9)](arguments,0x2),_0x4f992e=_0x2cc452=>_0x503a01(_0x2cc452,_0x3030ae[_0x403049(0x212)](_0x3a4c1d));let _0x2291c1=_0x4e2347;if(_0x4714f4===_0x403049(0x40c)||_0x4714f4===_0x403049(0x8a0)||_0x4714f4===_0x403049(0x808)||_0x4714f4===_0x403049(0x1eb)||_0x4714f4===_0x403049(0x541))_0x2291c1=[_0x4f992e(_0x4e2347[0x0])];else{if(_0x4714f4==='patchConfig')_0x2291c1=[_0x4e2347[0x0],_0x4e2347[0x1],_0x4f992e(_0x4e2347[0x2])];else{if(_0x4714f4===_0x403049(0x481))_0x2291c1=[_0x4f992e(_0x4e2347[0x0])];}}let _0x35067d=_0x331778[_0x4714f4](..._0x2291c1);if(_0x35067d&&typeof _0x35067d['then']===_0x403049(0x6a3))_0x35067d=_0x479179(_0x35067d);if(_0x4714f4===_0x403049(0x40c)){const _0x438dca=_0x35067d&&typeof _0x35067d===_0x403049(0x677)?_0xfa05d7(_0x35067d):_0xfa05d7({});return{'$api':_0x438dca};}return _0x35067d===undefined?null:_0x35067d;}function _0x503a01(_0x421676,_0x2de2b9){const _0x3288c5=_0x206c;let _0x2e2819=_0x1f503e[_0x3288c5(0x212)](_0x421676[_0x3288c5(0x515)]);const _0x271bac=_0x2e2819&&_0x2e2819[_0x3288c5(0x7ea)]||_0x2de2b9||_0x559f63,_0x4221b8=(_0x533b72,..._0x11d4e9)=>_0x271bac[_0x3288c5(0x8ac)]('engines',null,_0x533b72,[_0x421676[_0x3288c5(0x576)],_0x421676[_0x3288c5(0x781)],..._0x11d4e9],!![]);return{'okdb':_0x271bac,'key':_0x421676['key'],'type':_0x421676[_0x3288c5(0x576)],'name':_0x421676[_0x3288c5(0x781)],get 'storeEnv'(){const _0x130d4a=_0x3288c5;if(!_0x2e2819&&_0x271bac&&_0x271bac[_0x130d4a(0x65c)]&&_0x421676[_0x130d4a(0x81a)])_0x2e2819=_0x271bac['_envs'][_0x130d4a(0x212)](_0x421676[_0x130d4a(0x81a)]);return _0x2e2819;},'storeEnvName':_0x421676[_0x3288c5(0x81a)],'config':_0x421676[_0x3288c5(0x289)],'meta':_0x421676[_0x3288c5(0x3f1)],'options':_0x421676[_0x3288c5(0x5f0)],'emit':(_0x20cda5,_0x4a694e)=>_0x4221b8(_0x3288c5(0x3a5),_0x20cda5,_0x4a694e),'updateStatus':async(_0x2065ec,_0x5ba704)=>_0x4221b8(_0x3288c5(0x680),_0x2065ec,_0x5ba704==null?null:String(_0x5ba704&&_0x5ba704['message']?_0x5ba704[_0x3288c5(0x412)]:_0x5ba704)),'updateMeta':async _0x13b58b=>_0x4221b8(_0x3288c5(0x664),{'meta':_0x13b58b}),'updateConfig':async _0x4c80b3=>_0x4221b8(_0x3288c5(0x664),{'config':_0x4c80b3})};}function _0x336399(_0x24939e,_0x38c9aa,_0x207adc){const _0x28faf8=_0x206c;if(_0x24939e==='new'){const _0x3670c2=_0x54f6f4(_0x38c9aa);let _0x3f9f01=_0x3670c2(_0x207adc);if(_0x3f9f01&&typeof _0x3f9f01[_0x28faf8(0x8b4)]===_0x28faf8(0x6a3))_0x3f9f01=_0x479179(_0x3f9f01);if(!_0x3f9f01||typeof _0x3f9f01[_0x28faf8(0x440)]!=='function'){const {OKDBError:_0x16422e}=requireErrors();throw new _0x16422e(_0x28faf8(0x2a5)+(_0x207adc&&_0x207adc[_0x28faf8(0x576)])+_0x28faf8(0x602),'BAD_EMBEDDER_FACTORY');}return _0x3f9f01['__okdb']=_0x3670c2[_0x28faf8(0x28b)],{'$id':_0xfa05d7(_0x3f9f01),'batch':typeof _0x3f9f01[_0x28faf8(0x6e8)]===_0x28faf8(0x6a3)};}const _0x1edf35=_0x2dd49d['get'](_0x38c9aa);if(_0x24939e===_0x28faf8(0x424))return _0x2dd49d['delete'](_0x38c9aa),_0x44c6a0[_0x28faf8(0x588)](_0x38c9aa),null;if(!_0x1edf35)throw new Error(_0x28faf8(0x38d));if(typeof _0x1edf35[_0x24939e]!==_0x28faf8(0x6a3))return null;if(_0x24939e==='embed'||_0x24939e===_0x28faf8(0x6e8)){const _0x1343c3=_0x24939e==='embedBatch'?_0x446bb1(_0x38c9aa,_0x1edf35,_0x207adc):_0x1512c3(_0x38c9aa,_0x1edf35,_0x24939e,_0x207adc);return _0x24939e==='embed'?_0x5b9dfb(_0x1343c3):_0x1343c3[_0x28faf8(0x255)](_0x5b9dfb);}let _0x3171f9=_0x1edf35[_0x24939e]();if(_0x3171f9&&typeof _0x3171f9[_0x28faf8(0x8b4)]===_0x28faf8(0x6a3))_0x3171f9=_0x479179(_0x3171f9);return _0x3171f9===undefined?null:_0x3171f9;}function _0x5b9dfb(_0x24a7de){return _0x24a7de instanceof Float32Array?_0x24a7de:Array['from'](_0x24a7de);}function _0x22a910(_0xb0a0b1,_0x290a1d,_0x2edcd6){const _0x2dfb02=_0x206c;if(_0xb0a0b1===_0x2dfb02(0x693)){const _0x2cd296=_0x54f6f4(_0x290a1d);let _0x4a2e8e=_0x2cd296(_0x2edcd6[_0x2dfb02(0x289)]??{},{'dims':_0x2edcd6[_0x2dfb02(0x65d)],'dir':_0x2edcd6[_0x2dfb02(0x1c8)]});if(_0x4a2e8e&&typeof _0x4a2e8e['then']===_0x2dfb02(0x6a3))_0x4a2e8e=_0x479179(_0x4a2e8e);for(const _0xff7ad0 of[_0x2dfb02(0x805),_0x2dfb02(0x6dc),_0x2dfb02(0x248),_0x2dfb02(0x564),_0x2dfb02(0x2eb)]){if(!_0x4a2e8e||typeof _0x4a2e8e[_0xff7ad0]!=='function'){const {OKDBError:_0x490099}=requireErrors();throw new _0x490099(_0x2dfb02(0x246)+_0xff7ad0+'()','BAD_ALGORITHM_FACTORY',{'method':_0xff7ad0});}}return{'$id':_0xfa05d7(_0x4a2e8e)};}const _0x1ab78=_0x2dd49d[_0x2dfb02(0x212)](_0x290a1d);if(_0xb0a0b1===_0x2dfb02(0x424))return _0x2dd49d['delete'](_0x290a1d),null;if(!_0x1ab78)throw new Error(_0x2dfb02(0x74d));const _0x38e068=_0x5a3ce0=>_0x5a3ce0?_0x5a3ce0[_0x2dfb02(0x255)](_0x592f15=>({'key':_0x592f15['key'],'vector':Float32Array[_0x2dfb02(0x3e9)](_0x592f15[_0x2dfb02(0x4c2)])})):null;let _0x386125;switch(_0xb0a0b1){case'load':case'rebuild':{const _0x15f36d=_0x38e068(_0x2edcd6);_0x386125=_0x1ab78[_0xb0a0b1](_0x15f36d?async()=>_0x15f36d:undefined);break;}case _0x2dfb02(0x6dc):_0x386125=_0x1ab78['add'](_0x2edcd6[0x0],Float32Array[_0x2dfb02(0x3e9)](_0x2edcd6[0x1]),_0x2edcd6[0x2]??undefined);break;case _0x2dfb02(0x248):_0x386125=_0x1ab78[_0x2dfb02(0x248)](_0x2edcd6);break;case'search':_0x386125=_0x1ab78['search'](Float32Array[_0x2dfb02(0x3e9)](_0x2edcd6[_0x2dfb02(0x52e)]),_0x2edcd6[_0x2dfb02(0x827)]??{});break;case'snapshot':_0x386125=typeof _0x1ab78[_0x2dfb02(0x6ef)]===_0x2dfb02(0x6a3)?_0x1ab78[_0x2dfb02(0x6ef)](_0x2edcd6??undefined):![];break;case _0x2dfb02(0x8a0):_0x386125=typeof _0x1ab78[_0x2dfb02(0x8a0)]==='function'?_0x1ab78[_0x2dfb02(0x8a0)]():undefined;break;case'tick':_0x386125=typeof _0x1ab78['tick']===_0x2dfb02(0x6a3)?_0x1ab78['tick']():undefined;break;case _0x2dfb02(0x2eb):return Number(_0x1ab78['count']());case _0x2dfb02(0x3ce):return(typeof _0x1ab78[_0x2dfb02(0x3ce)]===_0x2dfb02(0x6a3)?_0x1ab78[_0x2dfb02(0x3ce)]():null)??{};default:throw new Error('algorithm\x20has\x20no\x20method\x20'+_0xb0a0b1);}if(_0x386125&&typeof _0x386125['then']===_0x2dfb02(0x6a3))_0x386125=_0x479179(_0x386125);return _0x386125===undefined?null:_0x386125;}function _0x11d5b4(_0x4406a9,_0x58f276,_0x3de164){const _0x81e304=_0x206c;if(_0x4406a9==='new'){const _0x191c46=_0x54f6f4(_0x58f276);let _0x567d5d=_0x191c46(_0x3de164);if(_0x567d5d&&typeof _0x567d5d[_0x81e304(0x8b4)]===_0x81e304(0x6a3))_0x567d5d=_0x479179(_0x567d5d);if(!_0x567d5d)return null;const _0x1b47cc=[_0x81e304(0x2d6),_0x81e304(0x362),_0x81e304(0x212),_0x81e304(0x2eb),_0x81e304(0x4e6),_0x81e304(0x855)][_0x81e304(0x656)](_0x277b37=>typeof _0x567d5d[_0x277b37]===_0x81e304(0x6a3));return{'$id':_0xfa05d7(_0x567d5d),'has':_0x1b47cc};}const _0x33f5ef=_0x2dd49d[_0x81e304(0x212)](_0x58f276);if(_0x4406a9===_0x81e304(0x424))return _0x2dd49d['delete'](_0x58f276),null;if(!_0x33f5ef)throw new Error(_0x81e304(0x83b));const _0x2b16c3=_0x4457d=>Float32Array[_0x81e304(0x3e9)](_0x4457d);let _0x2268d1;switch(_0x4406a9){case _0x81e304(0x3fe):_0x2268d1=_0x33f5ef[_0x81e304(0x3fe)](_0x3de164[0x0],_0x2b16c3(_0x3de164[0x1]));break;case _0x81e304(0x248):_0x2268d1=_0x33f5ef[_0x81e304(0x248)](_0x3de164);break;case _0x81e304(0x64c):{_0x2268d1=typeof _0x33f5ef['getAll']===_0x81e304(0x6a3)?_0x33f5ef[_0x81e304(0x64c)]():[];if(_0x2268d1&&typeof _0x2268d1[_0x81e304(0x8b4)]==='function')_0x2268d1=_0x479179(_0x2268d1);return Array[_0x81e304(0x3e9)](_0x2268d1??[],_0x60bf7c=>({'key':_0x60bf7c['key'],'vector':Array[_0x81e304(0x3e9)](_0x60bf7c[_0x81e304(0x4c2)])}));}case'write':_0x2268d1=_0x33f5ef[_0x81e304(0x2d6)](_0x3de164[_0x81e304(0x698)][_0x81e304(0x255)](_0x34e525=>({'key':_0x34e525['key'],'vector':_0x2b16c3(_0x34e525[_0x81e304(0x4c2)])})),_0x3de164[_0x81e304(0x7b5)]);break;case _0x81e304(0x362):_0x2268d1=_0x33f5ef['keys'](_0x3de164??undefined);if(_0x2268d1&&typeof _0x2268d1[_0x81e304(0x8b4)]===_0x81e304(0x6a3))_0x2268d1=_0x479179(_0x2268d1);return Array[_0x81e304(0x3e9)](_0x2268d1??[]);case _0x81e304(0x212):{_0x2268d1=_0x33f5ef[_0x81e304(0x212)](_0x3de164);if(_0x2268d1&&typeof _0x2268d1[_0x81e304(0x8b4)]===_0x81e304(0x6a3))_0x2268d1=_0x479179(_0x2268d1);return _0x2268d1==null?null:Array['from'](_0x2268d1);}case _0x81e304(0x2eb):return Number(_0x33f5ef[_0x81e304(0x2eb)]());case'dropAll':_0x2268d1=_0x33f5ef['dropAll']();break;case'stats':return _0x33f5ef[_0x81e304(0x855)]()??null;default:throw new Error(_0x81e304(0x59d)+_0x4406a9);}if(_0x2268d1&&typeof _0x2268d1['then']===_0x81e304(0x6a3))_0x2268d1=_0x479179(_0x2268d1);return _0x2268d1===undefined?null:_0x2268d1;}const _0x30c620=new Map();function _0x1512c3(_0x177ac0,_0x133f5b,_0x196ba2,_0x723856){const _0x546b73=_0x206c,_0x314ec2=_0x177ac0+'\x00'+_0x196ba2+'\x00'+JSON[_0x546b73(0x739)](_0x723856),_0x4c3708=_0x30c620['get'](_0x314ec2);if(_0x4c3708){if(_0x4c3708[_0x546b73(0x5ef)]===_0x546b73(0x505))throw _0x456320();_0x30c620[_0x546b73(0x588)](_0x314ec2);if(_0x4c3708[_0x546b73(0x5ef)]===_0x546b73(0x1ca))throw _0x4c3708[_0x546b73(0x37e)];return _0x4c3708[_0x546b73(0x37e)];}const _0x3dc230=_0x133f5b[_0x196ba2](_0x723856);if(!_0x3dc230||typeof _0x3dc230[_0x546b73(0x8b4)]!==_0x546b73(0x6a3))return _0x3dc230;const _0x450541={'state':_0x546b73(0x505),'value':undefined};_0x3dc230[_0x546b73(0x8b4)](_0xc2a116=>{const _0x45a79e=_0x546b73;_0x450541[_0x45a79e(0x5ef)]='ok',_0x450541[_0x45a79e(0x37e)]=_0xc2a116;if(_0x30c620[_0x45a79e(0x212)](_0x314ec2)===_0x450541)_0x5e8d98(_0x133f5b);},_0x193551=>{const _0x263d32=_0x546b73;_0x450541[_0x263d32(0x5ef)]=_0x263d32(0x1ca),_0x450541[_0x263d32(0x37e)]=_0x193551;if(_0x30c620['get'](_0x314ec2)===_0x450541)_0x5e8d98(_0x133f5b);});for(let _0x3dd3a5=0x0;_0x3dd3a5<0x64&&_0x450541[_0x546b73(0x5ef)]===_0x546b73(0x505);_0x3dd3a5++)process['_tickCallback']();if(_0x450541[_0x546b73(0x5ef)]==='ok')return _0x450541['value'];if(_0x450541[_0x546b73(0x5ef)]==='err')throw _0x450541[_0x546b73(0x37e)];_0x30c620[_0x546b73(0x280)](_0x314ec2,_0x450541);throw _0x456320();}const _0x44c6a0=new Map(),_0x556a77=0xa*0x3c*0x3e8;function _0x446bb1(_0x4edea6,_0x3ff3a8,_0x137b4b){const _0x447ee9=_0x206c,_0x3923d2=Array[_0x447ee9(0x63d)](_0x137b4b)?_0x137b4b:Array[_0x447ee9(0x3e9)](_0x137b4b??[]);let _0x3632c1=_0x44c6a0[_0x447ee9(0x212)](_0x4edea6);if(!_0x3632c1)_0x44c6a0['set'](_0x4edea6,_0x3632c1=new Map());const _0x592f71=Date['now']();for(const [_0x47cf0a,_0x53ab03]of _0x3632c1)if(_0x53ab03[_0x447ee9(0x459)]['state']!==_0x447ee9(0x505)&&_0x592f71-_0x53ab03[_0x447ee9(0x459)]['at']>_0x556a77)_0x3632c1[_0x447ee9(0x588)](_0x47cf0a);const _0x491398=_0x3923d2['map'](_0x5373b0=>JSON[_0x447ee9(0x739)](_0x5373b0));let _0x62cac3=![];const _0x595b9b=[],_0x252dfa=new Set();for(let _0x2095a4=0x0;_0x2095a4<_0x491398[_0x447ee9(0x61b)];_0x2095a4++){const _0x170775=_0x3632c1[_0x447ee9(0x212)](_0x491398[_0x2095a4]);if(!_0x170775)!_0x252dfa['has'](_0x491398[_0x2095a4])&&(_0x252dfa['add'](_0x491398[_0x2095a4]),_0x595b9b[_0x447ee9(0x491)](_0x2095a4));else{if(_0x170775['req'][_0x447ee9(0x5ef)]===_0x447ee9(0x505))_0x62cac3=!![];else{if(_0x170775[_0x447ee9(0x459)][_0x447ee9(0x5ef)]===_0x447ee9(0x1ca)){const _0x4f82d7=_0x170775[_0x447ee9(0x459)][_0x447ee9(0x37e)];for(const [_0x429217,_0x2f568f]of _0x3632c1)if(_0x2f568f[_0x447ee9(0x459)]===_0x170775['req'])_0x3632c1[_0x447ee9(0x588)](_0x429217);throw _0x4f82d7;}}}}if(_0x62cac3)throw _0x456320();if(_0x595b9b[_0x447ee9(0x61b)]){const _0xc34502=_0x595b9b[_0x447ee9(0x255)](_0x1df57e=>_0x3923d2[_0x1df57e]),_0x27d07e=_0x3ff3a8[_0x447ee9(0x6e8)](_0xc34502),_0x2d320f={'state':_0x447ee9(0x505),'value':undefined,'at':0x0},_0x4baacd=(_0x5dbfe4,_0x252d6c)=>{const _0x4fef4a=_0x447ee9;_0x2d320f[_0x4fef4a(0x5ef)]=_0x5dbfe4,_0x2d320f['value']=_0x252d6c,_0x2d320f['at']=Date[_0x4fef4a(0x590)]();};if(!_0x27d07e||typeof _0x27d07e['then']!==_0x447ee9(0x6a3))_0x4baacd('ok',_0x27d07e);else{let _0x25f75b=!![];_0x27d07e[_0x447ee9(0x8b4)](_0x1bc7be=>{_0x4baacd('ok',_0x1bc7be);if(!_0x25f75b)_0x5e8d98(_0x3ff3a8);},_0x4f7fa1=>{const _0x846dc4=_0x447ee9;_0x4baacd(_0x846dc4(0x1ca),_0x4f7fa1);if(!_0x25f75b)_0x5e8d98(_0x3ff3a8);});for(let _0x56be4c=0x0;_0x56be4c<0x64&&_0x2d320f[_0x447ee9(0x5ef)]==='pending';_0x56be4c++)process[_0x447ee9(0x67a)]();_0x25f75b=![];}for(let _0xa0bbf8=0x0;_0xa0bbf8<_0x595b9b[_0x447ee9(0x61b)];_0xa0bbf8++)_0x3632c1[_0x447ee9(0x280)](_0x491398[_0x595b9b[_0xa0bbf8]],{'req':_0x2d320f,'index':_0xa0bbf8});if(_0x2d320f[_0x447ee9(0x5ef)]===_0x447ee9(0x1ca)){for(const _0xe459b6 of _0x595b9b)_0x3632c1[_0x447ee9(0x588)](_0x491398[_0xe459b6]);throw _0x2d320f[_0x447ee9(0x37e)];}if(_0x2d320f[_0x447ee9(0x5ef)]===_0x447ee9(0x505))throw _0x456320();}const _0x5273b9=_0x491398['map'](_0x2ef1ff=>{const _0x5bf289=_0x447ee9,_0x3d967d=_0x3632c1['get'](_0x2ef1ff),_0x48b1c4=_0x3d967d[_0x5bf289(0x459)][_0x5bf289(0x37e)];return _0x48b1c4?_0x48b1c4[_0x3d967d['index']]:undefined;});for(const _0x37310b of _0x491398)_0x3632c1[_0x447ee9(0x588)](_0x37310b);if(!_0x3632c1[_0x447ee9(0x7a1)])_0x44c6a0[_0x447ee9(0x588)](_0x4edea6);return _0x5273b9;}function _0x456320(){const _0x5e5019=_0x206c;return Object[_0x5e5019(0x429)](new Error(_0x5e5019(0x679)),{'code':'EMBED_PENDING'});}function _0x5e8d98(_0x40b771){const _0x1fab0a=_0x206c;_0x547d90();try{const _0x746318=_0x40b771[_0x1fab0a(0x28b)]||_0x559f63;if(_0x746318&&_0x746318[_0x1fab0a(0x65c)])_0x746318[_0x1fab0a(0x8ac)](_0x1fab0a(0x85d),null,_0x1fab0a(0x749),[_0x1fab0a(0x194),{}],!![]);}catch{}}function _0x518802(_0x1e6080,_0x41bbc1,_0x423a3e){const _0x39db16=_0x206c,_0x344421=_0x2dd49d[_0x39db16(0x212)](_0x1e6080);if(!_0x344421||typeof _0x344421[_0x41bbc1]!==_0x39db16(0x6a3))return{'__absent':!![]};let _0x35bddc=_0x344421[_0x41bbc1](...Array['isArray'](_0x423a3e)?_0x423a3e:[]);if(_0x35bddc&&typeof _0x35bddc[_0x39db16(0x8b4)]===_0x39db16(0x6a3))_0x35bddc=_0x479179(_0x35bddc);return{'value':_0x35bddc===undefined?null:_0x35bddc};}const _0x50491b=new Map();let _0x1071b3=0x1;const _0x1f503e=new Map(),_0x1b62b3=new Map();function _0x22de96(_0x308fea,_0x4ccd0b=null){const _0x5b61f2=_0x206c,_0x57977a=_0x1071b3++;_0x50491b[_0x5b61f2(0x280)](_0x57977a,_0x308fea);if(_0x4ccd0b)_0x1b62b3[_0x5b61f2(0x280)](_0x57977a,_0x4ccd0b);return _0x57977a;}function _0x2afdf2(_0x33fd1e){const _0x579762=_0x206c;for(const [_0x318a61,_0x933aeb]of _0x1f503e)if(_0x933aeb&&_0x933aeb[_0x579762(0x7ea)]===_0x33fd1e)_0x1f503e[_0x579762(0x588)](_0x318a61);for(const [_0x454258,_0x185b38]of _0x3030ae)if(_0x185b38===_0x33fd1e)_0x3030ae['delete'](_0x454258);for(const [_0x4eae5a,_0x332f66]of _0x1b62b3)_0x332f66===_0x33fd1e&&(_0x1b62b3[_0x579762(0x588)](_0x4eae5a),_0x50491b[_0x579762(0x588)](_0x4eae5a));if(_0x559f63===_0x33fd1e)_0x559f63=null;}function _0x5b5e33(_0x3ff45e,_0xb29fda){const _0xb7db86=_0x206c;_0x1f503e[_0xb7db86(0x280)](_0x3ff45e,_0xb29fda);}function _0x32d701(_0x454e8e){const _0x275cc1=_0x206c;if(_0x454e8e&&typeof _0x454e8e===_0x275cc1(0x677)&&Object['keys'](_0x454e8e)[_0x275cc1(0x61b)]===0x1&&_0x454e8e[_0x275cc1(0x6d1)]!==undefined)return _0x50491b[_0x275cc1(0x212)](_0x454e8e[_0x275cc1(0x6d1)]);return _0x454e8e;}function _0x479179(_0x4d1964){const _0x5d2710=_0x206c;let _0x322feb=![],_0x1f7456=![],_0xc5fda3;_0x4d1964[_0x5d2710(0x8b4)](_0x590b8d=>{_0x322feb=!![],_0xc5fda3=_0x590b8d;},_0x3291b7=>{_0x322feb=!![],_0x1f7456=!![],_0xc5fda3=_0x3291b7;});for(let _0x550e48=0x0;_0x550e48<0x2710&&!_0x322feb;_0x550e48++)process[_0x5d2710(0x67a)]();if(!_0x322feb)return _0x4d1964['then'](undefined,_0x3530a2=>{const _0x2ea78d=_0x5d2710;try{process[_0x2ea78d(0x3c4)](_0x2ea78d(0x5ec)+(_0x3530a2&&_0x3530a2['message']?_0x3530a2[_0x2ea78d(0x412)]:_0x3530a2));}catch{}}),undefined;if(_0x1f7456)throw _0xc5fda3;return _0xc5fda3;}function _0x52f594(_0x2e257b,_0x598208,_0x2b865c){const _0x4043cc=_0x206c,_0x39514d=_0x54f6f4(_0x2e257b),_0x853b02=_0x1f503e[_0x4043cc(0x212)](_0x598208);try{const _0x3a7879=_0x39514d(_0x2b865c,{'okdb':_0x853b02&&_0x853b02['okdb'],'env':_0x853b02});if(_0x3a7879&&typeof _0x3a7879['then']===_0x4043cc(0x6a3))_0x479179(_0x3a7879);}catch(_0x2cb6b9){if(_0x2cb6b9&&_0x2cb6b9[_0x4043cc(0x73f)]===!![]&&_0x2cb6b9[_0x4043cc(0x42b)]!==_0x4043cc(0x1af)){const _0x4b4c67=new Error(_0x2cb6b9[_0x4043cc(0x412)]);_0x4b4c67[_0x4043cc(0x42b)]=_0x4043cc(0x1af);throw _0x4b4c67;}throw _0x2cb6b9;}}const _0x10bd75=new Map();function _0x5927d5(_0x5eab67,_0x2d3b58,_0x896d39,_0xe0b559,_0x49a080,_0x245d07){const _0x4a565e=_0x206c,_0x2783fd=_0x54f6f4(_0x5eab67),_0x3c652a=(_0x1f503e[_0x4a565e(0x212)](_0x245d07)||{})[_0x4a565e(0x7ea)]||_0x559f63,_0x29dcc1=new AbortController(),_0x54fa17=(_0x1d18fe,..._0x20990e)=>_0x3c652a['_call'](_0x4a565e(0x2bf),_0x4a565e(0x608),_0x1d18fe,_0x20990e,![]),_0x2e109f={'okdb':_0x3c652a,'env':_0x1f503e['get'](_0x245d07)||null,'job':_0xe0b559,'jobId':_0x49a080,'signal':_0x29dcc1[_0x4a565e(0x82d)],'heartbeat':()=>_0x54fa17(_0x4a565e(0x4fb),_0x896d39),'markProgress':_0x34a3ee=>_0x54fa17('ctxProgress',_0x896d39,_0x34a3ee),'log':(_0x521f70,_0x56e74e)=>_0x54fa17(_0x4a565e(0x4bb),_0x896d39,_0x521f70,_0x56e74e)};_0x10bd75[_0x4a565e(0x280)](_0x896d39,{'ctrl':_0x29dcc1,'call':_0x54fa17});const _0x3abacf=()=>{const _0x2fdef6=_0x4a565e;_0x10bd75[_0x2fdef6(0x588)](_0x896d39);try{_0x54fa17(_0x2fdef6(0x28a),_0x896d39);}catch{}};let _0x2432aa;try{_0x2432aa=_0x2783fd(_0x2d3b58,_0x2e109f);}catch(_0x105d7f){_0x3abacf();throw _0x105d7f;}if(_0x2432aa&&typeof _0x2432aa[_0x4a565e(0x8b4)]==='function'){const _0x35575c=_0x34c544(_0x2432aa);return _0x2432aa['then'](_0x3abacf,_0x3abacf),{'$token':_0x35575c};}return _0x3abacf(),_0x2432aa;}function _0x27129c(){const _0x4a154c=_0x206c;for(const [_0x230b76,_0x160d81]of _0x10bd75){if(_0x160d81[_0x4a154c(0x756)][_0x4a154c(0x82d)]['aborted'])continue;let _0x35d2cd;try{_0x35d2cd=_0x160d81[_0x4a154c(0x4e9)](_0x4a154c(0x22c),_0x230b76);}catch{continue;}if(_0x35d2cd&&_0x35d2cd[_0x4a154c(0x621)]){const {OKDBError:_0x5cbc8f}=requireErrors();_0x160d81[_0x4a154c(0x756)][_0x4a154c(0x86e)](new _0x5cbc8f(_0x35d2cd[_0x4a154c(0x412)],_0x35d2cd[_0x4a154c(0x42b)]));}}}let _0x559f63=null;function _0x480518(_0x1a4ec2){_0x559f63=_0x1a4ec2;}function _0x2afeb2(_0x279d89,_0x51ca45,_0x107af7,_0x381605,_0x447da2,_0x54d666,_0x3e198c){const _0x36b081=_0x206c,_0x4c2b9b=_0x54f6f4(_0x279d89),_0x312fbf=_0x1f503e['get'](_0x107af7);try{const _0xe47782=_0x51ca45?_0x4c2b9b(_0x447da2,_0x54d666):_0x4c2b9b({'env':_0x312fbf,'okdb':_0x312fbf&&_0x312fbf['okdb'],'payload':_0x32d701(_0x381605)},_0x447da2,_0x54d666);if(_0xe47782&&typeof _0xe47782[_0x36b081(0x8b4)]===_0x36b081(0x6a3)){if(_0x54d666&&_0x54d666[_0x36b081(0x5a7)]==='inline')_0xe47782[_0x36b081(0x8b4)](undefined,()=>{});else{if(_0x3e198c){const _0x528a46=_0x49731b(_0xe47782);if(_0x528a46===0x0)return null;return{'$token':_0x528a46};}else _0x479179(_0xe47782);}}}catch(_0x2c6441){if(_0x2c6441&&_0x2c6441[_0x36b081(0x73f)]===!![]&&_0x2c6441[_0x36b081(0x42b)]!==_0x36b081(0x1af)){const _0x2bf7a6=new Error(_0x2c6441[_0x36b081(0x412)]);_0x2bf7a6[_0x36b081(0x42b)]=_0x36b081(0x1af);throw _0x2bf7a6;}throw _0x2c6441;}return null;}function _0x49731b(_0x36cbba){const _0x250684=_0x206c;let _0xf7719f=_0x250684(0x505),_0x3ff46e;_0x36cbba['then'](_0x27edb1=>{_0xf7719f='ok',_0x3ff46e=_0x27edb1;},_0x4f6827=>{const _0x334370=_0x250684;_0xf7719f=_0x334370(0x1ca),_0x3ff46e=_0x4f6827;});for(let _0x2b7916=0x0;_0x2b7916<0x64&&_0xf7719f==='pending';_0x2b7916++)process[_0x250684(0x67a)]();if(_0xf7719f==='ok')return 0x0;const _0x229b17=_0x594e97++,_0x248c39={'state':_0xf7719f,'value':_0x3ff46e};_0x1f8d6f[_0x250684(0x280)](_0x229b17,_0x248c39);if(_0xf7719f===_0x250684(0x505))_0x36cbba[_0x250684(0x8b4)](_0x4f6524=>{const _0x4bdc0=_0x250684;_0x248c39[_0x4bdc0(0x5ef)]='ok',_0x248c39['value']=_0x4f6524,_0x547d90();},_0x258001=>{const _0x398ed2=_0x250684;_0x248c39[_0x398ed2(0x5ef)]=_0x398ed2(0x1ca),_0x248c39[_0x398ed2(0x37e)]=_0x258001,_0x547d90();});return _0x229b17;}function _0x1c5e88(_0x52e80c){const _0x380c6e=_0x206c;let _0x3f9ff6=_0x7b1736['get'](_0x52e80c);return _0x3f9ff6===undefined&&(_0x3f9ff6=_0x2243ce++,_0x7b1736[_0x380c6e(0x280)](_0x52e80c,_0x3f9ff6),_0x11cbb4[_0x380c6e(0x280)](_0x3f9ff6,{'fn':_0x52e80c,'refs':0x0})),_0x11cbb4[_0x380c6e(0x212)](_0x3f9ff6)[_0x380c6e(0x654)]++,_0x3f9ff6;}function _0x54417c(_0x45eefb){const _0x5191a3=_0x206c,_0x3bcf61=_0x11cbb4[_0x5191a3(0x212)](_0x45eefb);if(!_0x3bcf61)return;--_0x3bcf61['refs']<=0x0&&(_0x11cbb4[_0x5191a3(0x588)](_0x45eefb),_0x7b1736[_0x5191a3(0x588)](_0x3bcf61['fn']));}function _0x54f6f4(_0x240be9){const _0x5e1db6=_0x206c,_0x2525c9=_0x11cbb4[_0x5e1db6(0x212)](_0x240be9);if(!_0x2525c9)throw new Error(_0x5e1db6(0x4fa)+_0x240be9);return _0x2525c9['fn'];}function _0x34c544(_0x31d0c1){const _0x2697c8=_0x206c;if(_0x31d0c1&&typeof _0x31d0c1['then']==='function'){const _0x18ec6f=_0x594e97++,_0x38f6ab={'state':_0x2697c8(0x505),'value':undefined};return _0x1f8d6f['set'](_0x18ec6f,_0x38f6ab),_0x31d0c1[_0x2697c8(0x8b4)](_0x34d3bf=>{const _0x43cb7e=_0x2697c8;_0x38f6ab[_0x43cb7e(0x5ef)]='ok',_0x38f6ab[_0x43cb7e(0x37e)]=_0x34d3bf,_0x547d90();},_0x154046=>{const _0x5dac03=_0x2697c8;_0x38f6ab[_0x5dac03(0x5ef)]=_0x5dac03(0x1ca),_0x38f6ab[_0x5dac03(0x37e)]=_0x154046,_0x547d90();}),_0x18ec6f;}return 0x0;}let _0x365f2f=()=>{},_0x55d340=null;function _0x392aa3(_0x54adf7,_0x2d2d36=null){_0x365f2f=_0x54adf7,_0x55d340=_0x2d2d36;}function _0xe97435(_0x568ef2){return _0x55d340===_0x568ef2;}function _0x547d90(){_0x365f2f();}function _0x183581(_0xc42d45){const _0x171334=_0x206c,_0x2d1bfb=_0x1f8d6f[_0x171334(0x212)](_0xc42d45);if(!_0x2d1bfb)return{'state':'err','error':{'message':_0x171334(0x2ee)}};if(_0x2d1bfb[_0x171334(0x5ef)]===_0x171334(0x505))return{'state':_0x171334(0x505)};_0x1f8d6f['delete'](_0xc42d45);if(_0x2d1bfb[_0x171334(0x5ef)]==='ok')return{'state':'ok','value':_0x2d1bfb['value']};const _0x1dfa09=_0x2d1bfb[_0x171334(0x37e)];return{'state':'err','error':{'message':_0x1dfa09&&_0x1dfa09[_0x171334(0x412)]!=null?String(_0x1dfa09[_0x171334(0x412)]):String(_0x1dfa09),'stack':_0x1dfa09&&_0x1dfa09[_0x171334(0x6ca)],'code':_0x1dfa09&&_0x1dfa09[_0x171334(0x42b)],'status':_0x1dfa09&&typeof _0x1dfa09[_0x171334(0x2fe)]===_0x171334(0x7e9)?_0x1dfa09[_0x171334(0x2fe)]:undefined,'hold':!!(_0x1dfa09&&_0x1dfa09[_0x171334(0x73f)]===!![])}};}function _0x4a5d89(_0x49094e,_0x2f7213){const _0x4e4ee2=_0x206c;_0x1dcc21[_0x4e4ee2(0x280)](_0x49094e,_0x2f7213);}function _0x54e35e(_0x47488e){const _0x58af63=_0x206c;_0x1dcc21[_0x58af63(0x588)](_0x47488e);}let _0x327413=0x0;function _0x15802e(){return _0x327413>0x0;}function _0x5dff3f(){const _0x7390d=_0x206c;_0x327413++;try{return _0x476723[_0x7390d(0x687)](undefined,arguments);}finally{_0x327413--;}}function _0x476723(_0x5bc378,_0x597d79,_0x150702,_0x35a9e7,_0xaee796,_0x2e36b4){const _0x3630b9=_0x206c;switch(_0x5bc378){case _0x3630b9(0x3bc):return _0x1c5e88(_0x597d79);case'unreg':return _0x54417c(_0x597d79);case _0x3630b9(0x4e9):{const _0x14269d=Array[_0x3630b9(0x47b)][_0x3630b9(0x8b5)][_0x3630b9(0x4e9)](arguments,0x2),_0xe84424=_0x54f6f4(_0x597d79)['apply'](undefined,_0x14269d);return _0xe84424&&typeof _0xe84424['then']===_0x3630b9(0x6a3)?_0x479179(_0xe84424):_0xe84424;}case _0x3630b9(0x56d):{const _0x16f3a0=Array[_0x3630b9(0x47b)]['slice'][_0x3630b9(0x4e9)](arguments,0x2),_0x5f4b4f=_0x54f6f4(_0x597d79)[_0x3630b9(0x687)](undefined,_0x16f3a0);if(_0x5f4b4f&&typeof _0x5f4b4f[_0x3630b9(0x8b4)]===_0x3630b9(0x6a3))return{'$token':_0x34c544(_0x5f4b4f)};return{'$value':_0x5f4b4f===undefined?null:_0x5f4b4f,'$undef':_0x5f4b4f===undefined};}case _0x3630b9(0x21a):{const _0x37d9f0=_0x1dcc21['get'](_0x597d79);if(_0x37d9f0)_0x37d9f0[_0x3630b9(0x717)](_0x150702,_0x35a9e7);return undefined;}case _0x3630b9(0x4ce):{const _0x3c8aa6=_0x1dcc21[_0x3630b9(0x212)](_0x597d79);if(_0x3c8aa6)_0x3c8aa6['_log'](_0x150702);return undefined;}case'handler':return _0x2afeb2(_0x597d79,_0x150702,_0x35a9e7,_0xaee796,_0x2e36b4,arguments[0x6],arguments[0x7]);case'quantum':return _0x52f594(_0x597d79,_0x150702,_0x35a9e7);case'job':return _0x5927d5(_0x597d79,_0x150702,_0x35a9e7,_0xaee796,_0x2e36b4,arguments[0x6]);case _0x3630b9(0x8a2):return _0x59e24e['apply'](null,Array['prototype'][_0x3630b9(0x8b5)]['call'](arguments,0x1));case'api':return _0x518802(_0x597d79,_0x150702,_0x35a9e7);case _0x3630b9(0x3e4):return _0x183581(_0x597d79);case _0x3630b9(0x7a3):{const _0x4bfcca=((async()=>{const _0x3d7d0b=_0x3630b9,_0x346b9c=await globalThis[_0x3d7d0b(0x4bd)](_0x597d79);if(!_0x346b9c['ok']){const _0xadf26=new Error(_0x3d7d0b(0x3b3)+_0x346b9c[_0x3d7d0b(0x2fe)]);_0xadf26[_0x3d7d0b(0x42b)]=_0x3d7d0b(0x57e);throw _0xadf26;}return _0x346b9c[_0x3d7d0b(0x5ca)]();})());return _0x479179(_0x4bfcca)??null;}case _0x3630b9(0x56f):return _0x336399(_0x597d79,_0x150702,_0x35a9e7);case _0x3630b9(0x732):return _0x22a910(_0x597d79,_0x150702,_0x35a9e7);case'stor':return _0x11d5b4(_0x597d79,_0x150702,_0x35a9e7);default:throw new Error(_0x3630b9(0x46d)+_0x5bc378);}}return bridge_1={'inNativeCall':_0x15802e,'regObject':_0xfa05d7,'checkSignals':_0x27129c,'setCurrentDb':_0x480518,'forgetDb':_0x2afdf2,'storePayload':_0x22de96,'registerEnv':_0x5b5e33,'resolvePayload':_0x32d701,'bridge':_0x5dff3f,'reg':_0x1c5e88,'unreg':_0x54417c,'fnOf':_0x54f6f4,'track':_0x34c544,'resolve':_0x183581,'registerTarget':_0x4a5d89,'unregisterTarget':_0x54e35e,'setKick':_0x392aa3,'kickOwnedBy':_0xe97435},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1896be=_0x3e8e44;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0xa42c38}=requireErrors(),_0x15c3fd=requireBridge(),_0x1e2060=new Map();let _0xb3acbd=null;function _0x10564a(_0x47c058){const _0x5a651e=_0x206c;if(_0xb3acbd)return;_0xb3acbd=_0x47c058,_0x47c058[_0x5a651e(0x296)](_0x44ff23);}function _0x44ff23(){const _0x16f11d=_0x206c,_0x59fb13=_0xb3acbd[_0x16f11d(0x79c)]();for(const _0x2abd60 of _0x59fb13){const _0x39075c=_0x1e2060[_0x16f11d(0x212)](_0x2abd60);_0x39075c&&(_0x1e2060['delete'](_0x2abd60),_0x39075c());}}function _0x4dd5b7(_0x55594f,_0x1b4e29){const _0x23c779=_0x206c;_0x1e2060[_0x23c779(0x280)](_0x55594f,_0x1b4e29);}class _0x5a213e{constructor(_0x1bd296){const _0x258cdf=_0x206c;this['db']=_0x1bd296,this[_0x258cdf(0x2bf)]=[],this[_0x258cdf(0x1b5)]=![],this[_0x258cdf(0x7ac)]=![],this['inflight']=new Set();}[_0x1896be(0x37b)](_0x32a5ca,_0xc43477,_0x13a171,_0x32faf7){const _0xac028d=_0x1896be;if(_0x15c3fd[_0xac028d(0x55a)]())try{return Promise[_0xac028d(0x3e4)](this['db'][_0xac028d(0x8ac)](_0x32a5ca,_0xc43477,_0x13a171,_0x32faf7));}catch(_0x32ae9a){return Promise['reject'](_0x32ae9a);}const _0x5ec26e=new Promise((_0x2dbe5c,_0xed9865)=>{const _0x2708c0=_0xac028d;this[_0x2708c0(0x2bf)][_0x2708c0(0x491)]({'item':[_0x32a5ca,_0xc43477,_0x13a171,_0x32faf7],'resolve':_0x2dbe5c,'reject':_0xed9865});});this[_0xac028d(0x30a)][_0xac028d(0x6dc)](_0x5ec26e);const _0x4fe2c4=()=>this['inflight'][_0xac028d(0x588)](_0x5ec26e);return _0x5ec26e['then'](_0x4fe2c4,_0x4fe2c4),!this[_0xac028d(0x1b5)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x110834=_0xac028d;this[_0x110834(0x1b5)]=![],this['commit']();})),_0x5ec26e;}[_0x1896be(0x3b9)](){const _0x50fbb1=_0x1896be;if(!this[_0x50fbb1(0x2bf)][_0x50fbb1(0x61b)])return;if(this[_0x50fbb1(0x7ac)]){!this[_0x50fbb1(0x1b5)]&&(this[_0x50fbb1(0x1b5)]=!![],setImmediate(()=>{const _0x3a24e5=_0x50fbb1;this['scheduled']=![],this[_0x3a24e5(0x3b9)]();}));return;}const _0x21d95b=this[_0x50fbb1(0x2bf)];this[_0x50fbb1(0x2bf)]=[],this[_0x50fbb1(0x423)](_0x21d95b);}['_run'](_0x2cea5b){const _0x110498=_0x1896be;let _0x3b9baf;this[_0x110498(0x7ac)]=!![];try{_0x3b9baf=this['db'][_0x110498(0x4aa)][_0x110498(0x2b6)](_0x2cea5b[_0x110498(0x255)](_0xea3425=>_0xea3425[_0x110498(0x7df)]));}catch(_0x3ef6d5){this[_0x110498(0x7ac)]=![];if(_0x2cea5b[_0x110498(0x61b)]>0x1){for(const _0x748584 of _0x2cea5b)this['_run']([_0x748584]);return;}const _0x2ee821=_0xa42c38(_0x3ef6d5);for(const _0x247c8d of _0x2cea5b)_0x247c8d['reject'](_0x2ee821);return;}finally{this['inBatch']=![];}try{this['db'][_0x110498(0x841)][_0x110498(0x3b8)]();}catch{}const [_0xa03e2a,_0x474f93]=_0x3b9baf;_0x4dd5b7(_0x474f93,()=>{const _0xae3c19=_0x110498;for(let _0x4e7a8b=0x0;_0x4e7a8b<_0x2cea5b[_0xae3c19(0x61b)];_0x4e7a8b++){const _0x39d1cc=_0xa03e2a[_0x4e7a8b];if(_0x39d1cc&&_0x39d1cc[0x0])_0x2cea5b[_0x4e7a8b]['resolve'](_0x39d1cc[0x1]);else _0x2cea5b[_0x4e7a8b][_0xae3c19(0x458)](_0xa42c38(_0x39d1cc?_0x39d1cc[0x1]:new Error('write\x20batch:\x20missing\x20result')));}});}async['drain'](){const _0x30c6e0=_0x1896be;this[_0x30c6e0(0x3b9)]();while(this[_0x30c6e0(0x30a)][_0x30c6e0(0x7a1)]){await Promise[_0x30c6e0(0x226)]([...this[_0x30c6e0(0x30a)]]),this['commit']();}let _0x57c6ed;try{_0x57c6ed=this['db'][_0x30c6e0(0x4aa)][_0x30c6e0(0x395)]();}catch{return;}await new Promise(_0xd82d91=>_0x4dd5b7(_0x57c6ed,_0xd82d91));}}return writebatch={'install':_0x10564a,'WriteBatch':_0x5a213e,'whenSettled':_0x4dd5b7},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x51797a=_0x3e8e44;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x3f947e=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x3665c2{constructor(_0x55b5d5){const _0x388fe1=_0x206c;this[_0x388fe1(0x6bf)]=_0x55b5d5,this['timer']=null,this['immediate']=null,this[_0x388fe1(0x6ba)]=![],this[_0x388fe1(0x5e3)]=![],this[_0x388fe1(0x306)]=![],this[_0x388fe1(0x5e7)]=![],this[_0x388fe1(0x476)]=0x0,this[_0x388fe1(0x60a)]=[],this[_0x388fe1(0x4a3)]=[];}[_0x51797a(0x442)](_0xf0864c){return new Promise(_0x37e84e=>{const _0x515468=_0x206c,_0x23bcc9=setTimeout(_0x4c600a,_0xf0864c);function _0x4c600a(){clearTimeout(_0x23bcc9),_0x37e84e();}this[_0x515468(0x4a3)][_0x515468(0x491)](_0x4c600a);});}[_0x51797a(0x477)](){const _0x2f5bfe=_0x51797a;if(this[_0x2f5bfe(0x4a3)][_0x2f5bfe(0x61b)]===0x0)return;const _0x226902=this[_0x2f5bfe(0x4a3)];this['turnWaiters']=[];for(const _0x2b5fb7 of _0x226902)_0x2b5fb7();}[_0x51797a(0x40c)](){const _0x5e923f=_0x51797a;this[_0x5e923f(0x5e3)]=![],this[_0x5e923f(0x3b8)]();}[_0x51797a(0x8a0)](){const _0x33002a=_0x51797a;this[_0x33002a(0x5e3)]=!![];if(this[_0x33002a(0x63f)])clearTimeout(this[_0x33002a(0x63f)]);if(this[_0x33002a(0x30f)])clearImmediate(this[_0x33002a(0x30f)]);this[_0x33002a(0x63f)]=this[_0x33002a(0x30f)]=null,this['_settleWaiters']();}['wake'](){const _0x33ff81=_0x51797a;if(this[_0x33ff81(0x5e3)]||this[_0x33ff81(0x30f)])return;this[_0x33ff81(0x63f)]&&(clearTimeout(this[_0x33ff81(0x63f)]),this[_0x33ff81(0x63f)]=null),this[_0x33ff81(0x30f)]=setImmediate(()=>{const _0x34125b=_0x33ff81;this[_0x34125b(0x30f)]=null,this[_0x34125b(0x614)]();});}[_0x51797a(0x614)](){const _0xdfbcb6=_0x51797a;if(this[_0xdfbcb6(0x5e3)]||this['pumping']){this[_0xdfbcb6(0x5e7)]=!![];return;}this[_0xdfbcb6(0x306)]=!![];let _0x154403;try{this[_0xdfbcb6(0x476)]++,_0x154403=this[_0xdfbcb6(0x6bf)]['pump']();if(this[_0xdfbcb6(0x3b6)])this[_0xdfbcb6(0x3b6)]();}catch(_0x5904cb){_0x154403=_0x3f947e,process[_0xdfbcb6(0x88e)](()=>{throw _0x5904cb;});}finally{this[_0xdfbcb6(0x306)]=![],this['_settleWaiters']();}if(this[_0xdfbcb6(0x5e3)]||_0x154403===-0x2)return;if(this[_0xdfbcb6(0x5e7)])return this['dirty']=![],this[_0xdfbcb6(0x3b8)]();const _0x1dab00=_0x154403<0x0?_0x3f947e:Math[_0xdfbcb6(0x2cf)](0x0,Math[_0xdfbcb6(0x3bb)](_0x154403,_0x3f947e));if(_0x1dab00<=0x0)return this['wake']();this[_0xdfbcb6(0x63f)]=setTimeout(()=>{const _0x5abf7d=_0xdfbcb6;this[_0x5abf7d(0x63f)]=null,this[_0x5abf7d(0x614)]();},Math['ceil'](_0x1dab00));if(this[_0xdfbcb6(0x63f)]['unref'])this[_0xdfbcb6(0x63f)][_0xdfbcb6(0x63e)]();}}return pump={'Pumper':_0x3665c2},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x230776=_0x3e8e44;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x4aeca0=Symbol['for'](_0x230776(0x7b3)),_0x172d72={'value':null,'done':!![]},_0x97b041={'value':null,'done':!![]};!Symbol[_0x230776(0x40e)]&&(Symbol[_0x230776(0x40e)]=Symbol['for'](_0x230776(0x84b)));const _0x8724b3={};class _0x467aff{constructor(_0x57dc07){const _0x425180=_0x230776;_0x57dc07&&(this[_0x425180(0x5ff)]=_0x57dc07[Symbol[_0x425180(0x1c7)]][_0x425180(0x501)](_0x57dc07));}[_0x230776(0x255)](_0x436466){let _0x32049c=this,_0x1123aa=new _0x467aff();return _0x1123aa['iterate']=(_0x45f313=_0x8724b3)=>{const _0x57bd27=_0x206c,{async:_0x22161e}=_0x45f313;let _0x4eaf2f=_0x32049c[_0x22161e?Symbol[_0x57bd27(0x40e)]:Symbol[_0x57bd27(0x1c7)]](_0x45f313);if(!_0x22161e)_0x32049c[_0x57bd27(0x1a1)]=!![];let _0xc01c9a=-0x1;return{'next'(_0x1ad9b4){const _0x9db953=_0x57bd27;let _0x4c47ce;do{let _0x3245ac;try{if(_0x1ad9b4)_0x3245ac=_0x1ad9b4,_0x1ad9b4=null;else{_0xc01c9a++,_0x3245ac=_0x4eaf2f['next']();if(_0x3245ac[_0x9db953(0x8b4)])return!_0x22161e&&this[_0x9db953(0x372)](new Error(_0x9db953(0x80f))),_0x3245ac['then'](_0x1f77a7=>this[_0x9db953(0x830)](_0x1f77a7),_0x138c8=>{const _0x1f9ee9=_0x9db953;return this[_0x1f9ee9(0x372)](_0x138c8);});}if(_0x3245ac['done']===!![]){this[_0x9db953(0x845)]=!![];if(_0x1123aa[_0x9db953(0x5a6)])_0x1123aa['onDone']();return _0x3245ac;}try{_0x4c47ce=_0x436466[_0x9db953(0x4e9)](_0x32049c,_0x3245ac[_0x9db953(0x37e)],_0xc01c9a);if(_0x4c47ce&&_0x4c47ce[_0x9db953(0x8b4)]&&_0x22161e)return _0x4c47ce['then'](_0x2c4b10=>_0x2c4b10===_0x4aeca0?this[_0x9db953(0x830)]():{'value':_0x2c4b10},_0x1c4674=>{const _0x57f570=_0x9db953;if(_0x45f313[_0x57f570(0x507)])_0x1c4674[_0x57f570(0x7dc)]=!![];return this[_0x57f570(0x372)](_0x1c4674);});}catch(_0x4e997b){if(_0x45f313['continueOnRecoverableError'])_0x4e997b[_0x9db953(0x7dc)]=!![];throw _0x4e997b;}}catch(_0x6d8ba0){if(_0x1123aa[_0x9db953(0x6b4)])try{_0x4c47ce=_0x1123aa[_0x9db953(0x6b4)](_0x6d8ba0,_0xc01c9a);}catch(_0x5566ba){return this[_0x9db953(0x372)](_0x5566ba);}else return this[_0x9db953(0x372)](_0x6d8ba0);}}while(_0x4c47ce===_0x4aeca0);if(_0x4c47ce===_0x172d72)return this['return']();return{'value':_0x4c47ce};},'return'(_0x58b53d){const _0x4f9871=_0x57bd27;if(!this[_0x4f9871(0x845)]){_0x97b041['value']=_0x58b53d,this['done']=!![];if(_0x1123aa[_0x4f9871(0x5a6)])_0x1123aa[_0x4f9871(0x5a6)]();_0x4eaf2f[_0x4f9871(0x7b2)]?.();}return _0x97b041;},'throw'(_0x27a428){const _0x527910=_0x57bd27;if(_0x27a428[_0x527910(0x7dc)]){if(_0x1123aa[_0x527910(0x7f0)])try{return{'value':_0x1123aa[_0x527910(0x7f0)](_0x27a428)};}catch(_0x341547){this[_0x527910(0x7b2)]();throw _0x341547;}if(_0x45f313[_0x527910(0x507)])throw _0x27a428;}this['return']();throw _0x27a428;}};},_0x1123aa;}[Symbol[_0x230776(0x40e)]](_0x294749){const _0x2d1828=_0x230776;if(_0x294749)_0x294749={..._0x294749,'async':!![]};else _0x294749={'async':!![]};return this[_0x2d1828(0x1c7)]=this[_0x2d1828(0x5ff)](_0x294749);}[Symbol[_0x230776(0x1c7)]](_0x5c475d){const _0x13a67c=_0x230776;return this[_0x13a67c(0x1c7)]=this[_0x13a67c(0x5ff)](_0x5c475d);}[_0x230776(0x656)](_0x24fa58){const _0x2514f8=_0x230776;let _0x1f0a92=this[_0x2514f8(0x255)](_0x1aa40d=>{const _0x4dcfd4=_0x2514f8;let _0x45d802=_0x24fa58(_0x1aa40d);if(_0x45d802?.[_0x4dcfd4(0x8b4)])return _0x45d802['then'](_0x36d736=>_0x36d736?_0x1aa40d:_0x4aeca0);else return _0x45d802?_0x1aa40d:_0x4aeca0;}),_0x5a9386=_0x1f0a92['iterate'];return _0x1f0a92[_0x2514f8(0x5ff)]=(_0x46229c=_0x8724b3)=>{if(_0x46229c['continueOnRecoverableError'])_0x46229c={..._0x46229c,'continueOnRecoverableError':![]};return _0x5a9386(_0x46229c);},_0x1f0a92;}[_0x230776(0x68f)](_0xd9be2b){const _0x294882=_0x230776;let _0x588f2f=this['iterator']=this[_0x294882(0x5ff)](),_0x32b97d;while((_0x32b97d=_0x588f2f['next']())['done']!==!![]){_0xd9be2b(_0x32b97d['value']);}}[_0x230776(0x44b)](_0x27ff0e){const _0xcc95d1=_0x230776;let _0x2987b7=new _0x467aff();return _0x2987b7[_0xcc95d1(0x5ff)]=(_0x1eac47=_0x8724b3)=>{const _0x53d5dd=_0xcc95d1;let _0x801f2d=this['iterator']=this[_0x53d5dd(0x5ff)](_0x1eac47),_0x1d4c11=!![];function _0x255826(_0x840a85){const _0x52d966=_0x53d5dd;if(_0x1d4c11)try{_0x1d4c11=![],_0x801f2d=_0x27ff0e[_0x1eac47[_0x52d966(0x20c)]?Symbol[_0x52d966(0x40e)]:Symbol[_0x52d966(0x1c7)]](),_0x840a85=_0x801f2d[_0x52d966(0x830)]();if(_0x2987b7[_0x52d966(0x5a6)]){if(_0x840a85[_0x52d966(0x8b4)]){if(!_0x1eac47[_0x52d966(0x20c)])throw new Error(_0x52d966(0x80f));_0x840a85['then'](_0xd1409b=>{const _0x5a3c03=_0x52d966;if(_0xd1409b[_0x5a3c03(0x845)]())_0x2987b7[_0x5a3c03(0x5a6)]();},_0x50f47d=>{const _0x340939=_0x52d966;this[_0x340939(0x7b2)]();throw _0x50f47d;});}else{if(_0x840a85[_0x52d966(0x845)])_0x2987b7[_0x52d966(0x5a6)]();}}}catch(_0x4b9fff){this[_0x52d966(0x372)](_0x4b9fff);}else{if(_0x2987b7[_0x52d966(0x5a6)])_0x2987b7[_0x52d966(0x5a6)]();}return _0x840a85;}return{'next'(){const _0x3c1980=_0x53d5dd;try{let _0x3787fd=_0x801f2d['next']();if(_0x3787fd[_0x3c1980(0x8b4)]){if(!_0x1eac47['async'])throw new Error(_0x3c1980(0x80f));return _0x3787fd[_0x3c1980(0x8b4)](_0x3badda=>{const _0x6eb36b=_0x3c1980;if(_0x3badda[_0x6eb36b(0x845)])return _0x255826(_0x3badda);return _0x3badda;});}if(_0x3787fd[_0x3c1980(0x845)])return _0x255826(_0x3787fd);return _0x3787fd;}catch(_0x4e1944){this[_0x3c1980(0x372)](_0x4e1944);}},'return'(_0x23b8a5){const _0x30191a=_0x53d5dd;if(!this[_0x30191a(0x845)]){_0x97b041[_0x30191a(0x37e)]=_0x23b8a5,this[_0x30191a(0x845)]=!![];if(_0x2987b7['onDone'])_0x2987b7[_0x30191a(0x5a6)]();_0x801f2d[_0x30191a(0x7b2)]();}return _0x97b041;},'throw'(_0x5879ed){const _0x6c7bcf=_0x53d5dd;if(_0x1eac47['continueOnRecoverableError'])throw _0x5879ed;this[_0x6c7bcf(0x7b2)]();throw _0x5879ed;}};},_0x2987b7;}[_0x230776(0x45a)](_0x42d626){const _0x41b13c=_0x230776;let _0xf47b82=new _0x467aff();return _0xf47b82[_0x41b13c(0x5ff)]=(_0x3578fc=_0x8724b3)=>{const _0x526612=_0x41b13c;let _0x2a4339=this[_0x526612(0x1c7)]=this[_0x526612(0x5ff)](_0x3578fc),_0x346fa6;return{'next'(_0x105caa){const _0x6f5622=_0x526612;try{do{if(_0x346fa6){let _0x12a4f1;if(_0x105caa)_0x12a4f1=_0x105caa,_0x105caa=undefined;else _0x12a4f1=_0x346fa6['next']();if(_0x12a4f1[_0x6f5622(0x8b4)]){if(!_0x3578fc[_0x6f5622(0x20c)])throw new Error(_0x6f5622(0x80f));return _0x12a4f1['then'](_0x2e8742=>this[_0x6f5622(0x830)](_0x2e8742));}if(!_0x12a4f1[_0x6f5622(0x845)])return _0x12a4f1;}let _0x5e14b2;if(_0x105caa!=undefined)_0x5e14b2=_0x105caa,_0x105caa=undefined;else _0x5e14b2=_0x2a4339['next']();if(_0x5e14b2[_0x6f5622(0x8b4)]){if(!_0x3578fc[_0x6f5622(0x20c)])throw new Error(_0x6f5622(0x80f));return _0x346fa6=undefined,_0x5e14b2[_0x6f5622(0x8b4)](_0x8a14cb=>this['next'](_0x8a14cb));}if(_0x5e14b2[_0x6f5622(0x845)]){if(_0xf47b82[_0x6f5622(0x5a6)])_0xf47b82['onDone']();return _0x5e14b2;}try{let _0x3144e5=_0x42d626(_0x5e14b2[_0x6f5622(0x37e)]);if(_0x3144e5?.[_0x6f5622(0x8b4)]){if(!_0x3578fc[_0x6f5622(0x20c)])throw new Error(_0x6f5622(0x80f));return _0x3144e5[_0x6f5622(0x8b4)](_0x9c3b1b=>{const _0x325534=_0x6f5622;return Array[_0x325534(0x63d)](_0x9c3b1b)||_0x9c3b1b instanceof _0x467aff?(_0x346fa6=_0x9c3b1b[Symbol['iterator']](),this[_0x325534(0x830)]()):(_0x346fa6=null,{'value':_0x9c3b1b});},_0x4fcf55=>{const _0x2f5ecf=_0x6f5622;if(_0x3578fc[_0x2f5ecf(0x507)])_0x4fcf55['continueIteration']=!![];this[_0x2f5ecf(0x372)](_0x4fcf55);});}if(Array['isArray'](_0x3144e5)||_0x3144e5 instanceof _0x467aff)_0x346fa6=_0x3144e5[Symbol[_0x6f5622(0x1c7)]]();else return _0x346fa6=null,{'value':_0x3144e5};}catch(_0x4d6d0d){if(_0x3578fc[_0x6f5622(0x507)])_0x4d6d0d['continueIteration']=!![];throw _0x4d6d0d;}}while(!![]);}catch(_0x2e33d8){this[_0x6f5622(0x372)](_0x2e33d8);}},'return'(){const _0x3e11ae=_0x526612;if(_0xf47b82[_0x3e11ae(0x5a6)])_0xf47b82['onDone']();if(_0x346fa6)_0x346fa6['return']();return _0x2a4339[_0x3e11ae(0x7b2)]();},'throw'(_0x11230f){const _0x4ad21e=_0x526612;if(_0x3578fc['continueOnRecoverableError'])throw _0x11230f;if(_0xf47b82[_0x4ad21e(0x5a6)])_0xf47b82['onDone']();if(_0x346fa6)_0x346fa6['return']();this[_0x4ad21e(0x7b2)]();throw _0x11230f;}};},_0xf47b82;}[_0x230776(0x8b5)](_0x3583ca,_0x2caa71){const _0x36545b=_0x230776;let _0x1118de=this[_0x36545b(0x255)]((_0x1147dc,_0x139955)=>{const _0x50e73e=_0x36545b;if(_0x139955<_0x3583ca)return _0x4aeca0;if(_0x139955>=_0x2caa71)return _0x172d72[_0x50e73e(0x37e)]=_0x1147dc,_0x172d72;return _0x1147dc;});return _0x1118de[_0x36545b(0x6b4)]=(_0x3d0a9f,_0x58cb75)=>{if(_0x58cb75<_0x3583ca)return _0x4aeca0;if(_0x58cb75>=_0x2caa71)return _0x172d72;throw _0x3d0a9f;},_0x1118de;}[_0x230776(0x3f3)](_0x5ad395){const _0x3371fb=_0x230776;if(typeof _0x5ad395!=='function')throw new TypeError(_0x3371fb(0x2ad));let _0x3d46e1=this[_0x3371fb(0x255)](_0x331a58=>{return _0x331a58;}),_0x5be32f=_0x3d46e1[_0x3371fb(0x5ff)];return _0x3d46e1[_0x3371fb(0x5ff)]=(_0x2e6cbd=_0x8724b3)=>{return _0x5be32f({..._0x2e6cbd,'continueOnRecoverableError':!![]});},_0x3d46e1['returnRecoverableErrors']=_0x5ad395,_0x3d46e1;}[_0x230776(0x830)](){const _0x59171e=_0x230776;if(!this[_0x59171e(0x1c7)])this['iterator']=this[_0x59171e(0x5ff)]();return this[_0x59171e(0x1c7)][_0x59171e(0x830)]();}['toJSON'](){const _0x2ad459=_0x230776;if(this[_0x2ad459(0x5f9)]&&this[_0x2ad459(0x5f9)][_0x2ad459(0x68f)])return this[_0x2ad459(0x5f9)];const _0x1c0d8e=new Error('Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray');_0x1c0d8e['resolution']=this['asArray'];throw _0x1c0d8e;}get[_0x230776(0x5f9)](){const _0xedf887=_0x230776;if(this[_0xedf887(0x329)])return this[_0xedf887(0x329)];let _0x258e8e=new Promise((_0x378dd6,_0x281a0c)=>{const _0x1fce6a=_0xedf887;let _0x17effa=this['iterate'](!![]),_0x3ff7b3=[],_0x25a4cd=this;Object[_0x1fce6a(0x2a1)](_0x3ff7b3,'iterable',{'value':_0x25a4cd});function _0x2f8e25(_0x57d3c1){const _0xce022=_0x1fce6a;while(_0x57d3c1['done']!==!![]){if(_0x57d3c1['then'])return _0x57d3c1[_0xce022(0x8b4)](_0x2f8e25);else _0x3ff7b3[_0xce022(0x491)](_0x57d3c1['value']);_0x57d3c1=_0x17effa[_0xce022(0x830)]();}_0x378dd6(_0x25a4cd[_0xce022(0x329)]=_0x3ff7b3);}_0x2f8e25(_0x17effa['next']());});return _0x258e8e[_0xedf887(0x81e)]=this,this[_0xedf887(0x329)]||(this[_0xedf887(0x329)]=_0x258e8e);}[_0x230776(0x640)](){const _0x4b6d9a=_0x230776;return this[_0x4b6d9a(0x5f9)];}['at'](_0xfc0389){for(let _0x139e52 of this){if(_0xfc0389--===0x0)return _0x139e52;}}}return _0x467aff[_0x230776(0x47b)][_0x230776(0x2ed)]=_0x172d72,dist$1['ExtendedIterable']=_0x467aff,dist$1[_0x230776(0x7d1)]=_0x4aeca0,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x129be5=_0x3e8e44;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x1c3ce8}=requireDist$1(),_0x28316d=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x5f2993=Math[_0x129be5(0x3bb)](_0x28316d,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x1b6e45=new Set([_0x129be5(0x416),_0x129be5(0x7ee),_0x129be5(0x52e),_0x129be5(0x7bc)]),_0x54624d=Math[_0x129be5(0x3bb)](_0x5f2993,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x19b7cb=0x4,_0xa2dc2a=(_0x2c9916,_0xd4154b=_0x28316d)=>Math[_0x129be5(0x3bb)](_0xd4154b,_0x2c9916*_0x19b7cb),_0x49ccdc={'value':undefined,'done':!![]};function _0x5b55c4(_0x3895d7){const _0x25b006=_0x129be5,_0x2a2bd5=new _0x1c3ce8();return _0x2a2bd5[_0x25b006(0x5ff)]=()=>{let _0x384a1d=0x0;return{'next'(){const _0xf7738=_0x206c;return _0x384a1d<_0x3895d7[_0xf7738(0x61b)]?{'value':_0x3895d7[_0x384a1d++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){return _0x384a1d=_0x3895d7['length'],{'value':undefined,'done':!![]};},'throw'(){const _0x1ddbae=_0x206c;return _0x384a1d=_0x3895d7[_0x1ddbae(0x61b)],{'value':undefined,'done':!![]};}};},_0x2a2bd5;}const _0x19abe3=_0x17995b=>typeof _0x17995b===_0x129be5(0x7e9)&&!Number[_0x129be5(0x5c2)](_0x17995b)?Math[_0x129be5(0x2cf)](0x0,Math[_0x129be5(0x673)](_0x17995b)):Infinity,_0x20ab93=_0x2113b4=>typeof _0x2113b4===_0x129be5(0x7e9)?Math[_0x129be5(0x2cf)](0x0,Math[_0x129be5(0x3a4)](_0x2113b4))||0x0:0x0;function _0x20b2e9(_0xcafd65,_0x41c038,_0x21665c,_0x3ba6a1={}){const _0x1ff771=_0x129be5,_0x39f42d=new _0x1c3ce8(),_0x1e5b0b=(_0x3ba6a1[_0x1ff771(0x1f8)]||_0x19abe3)(_0x41c038[_0x1ff771(0x617)]),_0x514c86=_0x3ba6a1[_0x1ff771(0x4b0)]?_0x5f2993:_0x28316d,_0x1004dd=_0x3ba6a1[_0x1ff771(0x31f)]||((_0x560d4b,_0x3b2424)=>{const _0x3ca58c=_0x1ff771;_0x560d4b[_0x3ca58c(0x40c)]=_0x3b2424,_0x560d4b[_0x3ca58c(0x3be)]=!![],delete _0x560d4b[_0x3ca58c(0x897)];});let _0x22440e=null;if(_0x3ba6a1[_0x1ff771(0x796)]){const _0x5cf235={..._0x41c038,'limit':Math['min'](_0x54624d,_0x1e5b0b)};_0x22440e={'rows':_0xcafd65(_0x5cf235),'limit':_0x5cf235[_0x1ff771(0x617)]};const _0x5e1044=_0x22440e;queueMicrotask(()=>{const _0xed677a=_0x1ff771;_0x5e1044[_0xed677a(0x330)]=!![];});}return _0x39f42d['iterate']=()=>{const _0x162578=_0x1ff771;let _0x2033f5=[],_0x47f5bd=0x0,_0x2803a3=0x0,_0x372f3d,_0x276c54=![],_0xce8c01=![],_0xd3f53=_0x54624d;if(_0x22440e&&!_0x22440e[_0x162578(0x330)]&&!_0x22440e[_0x162578(0x50f)]){_0x22440e['taken']=!![],_0x2033f5=_0x22440e['rows'],_0x276c54=!![],_0xd3f53=_0xa2dc2a(_0xd3f53,_0x514c86);if(_0x2033f5[_0x162578(0x61b)]<_0x22440e[_0x162578(0x617)])_0xce8c01=!![];if(_0x2033f5[_0x162578(0x61b)])_0x372f3d=_0x21665c(_0x2033f5[_0x2033f5['length']-0x1]);}const _0x1b7a29=()=>{const _0x23b8da=_0x162578;if(_0xce8c01)return;const _0x416bb3=_0x1e5b0b-_0x2803a3;if(_0x416bb3<=0x0){_0xce8c01=!![],_0x2033f5=[];return;}const _0x26e62={..._0x41c038,'limit':Math[_0x23b8da(0x3bb)](_0xd3f53,_0x416bb3)};if(_0x276c54)_0x1004dd(_0x26e62,_0x372f3d);_0x276c54=!![],_0xd3f53=_0xa2dc2a(_0xd3f53,_0x514c86),_0x2033f5=_0xcafd65(_0x26e62),_0x47f5bd=0x0;if(_0x2033f5['length']<_0x26e62[_0x23b8da(0x617)])_0xce8c01=!![];if(_0x2033f5[_0x23b8da(0x61b)])_0x372f3d=_0x21665c(_0x2033f5[_0x2033f5['length']-0x1]);};return{'next'(){const _0x2c3998=_0x162578;if(_0x47f5bd>=_0x2033f5[_0x2c3998(0x61b)])_0x1b7a29();if(_0x47f5bd>=_0x2033f5[_0x2c3998(0x61b)])return{'value':undefined,'done':!![]};return _0x2803a3++,{'value':_0x2033f5[_0x47f5bd++],'done':![]};},'return'(){return _0xce8c01=!![],_0x2033f5=[],{'value':undefined,'done':!![]};},'throw'(){return _0xce8c01=!![],_0x2033f5=[],{'value':undefined,'done':!![]};}};},_0x39f42d;}function _0x67419f(_0x219aa6,_0x451c44,_0x3296f2,_0x524980,_0x419b7c={}){const _0x217212=_0x129be5,_0x3c9e0c=(_0x419b7c[_0x217212(0x1f8)]||_0x19abe3)(_0x524980&&_0x524980['limit']),_0x318df0=_0x1b6e45[_0x217212(0x764)](_0x451c44)?_0x5f2993:_0x28316d,_0x4ed260=(_0x419b7c[_0x217212(0x222)]||_0x20ab93)(_0x524980&&_0x524980[_0x217212(0x897)]),_0x35d195=(_0x17cc9e,_0x455f9b,_0x518f71)=>{const _0x5b8adc=_0x217212,_0x496028=_0x3c9e0c-_0x455f9b,_0x725e80=Math[_0x5b8adc(0x3bb)](_0x518f71,_0x496028),_0x3cf696={'limit':_0x725e80,'offset':_0x4ed260+_0x455f9b},_0x42bed9=_0x219aa6(_0x5b8adc(0x61c),[_0x17cc9e,_0x451c44,_0x725e80===_0x496028?Infinity:_0x725e80,..._0x3296f2(_0x3cf696)]);if(_0x42bed9[0x0]===-0x1){const _0x5338b7={'offset':_0x4ed260+_0x455f9b};if(_0x496028!==Infinity)_0x5338b7[_0x5b8adc(0x617)]=_0x496028;return{'pin':0x0,'rows':_0x219aa6(_0x451c44,_0x3296f2(_0x5338b7)),'raw':Infinity,'eager':!![]};}return{'pin':_0x42bed9[0x0],'rows':_0x42bed9[0x1],'raw':_0x42bed9[0x2]};},_0x52ffac=_0x558547=>{const _0x6cb4fe=_0x217212;if(_0x558547)_0x219aa6(_0x6cb4fe(0x60f),[_0x558547]);};function _0x3dd4(_0x1c2729,_0x26fb66,_0x41e080){const _0x4ac769=_0x217212;let _0xe253da=0x0,_0x2dfe4b=[],_0x177c61=0x0,_0x6745eb=_0x1c2729,_0x2f4bad=_0x54624d,_0x40b728=_0x3c9e0c-_0x1c2729<=0x0;if(_0x41e080)({buf:_0x2dfe4b,pos:_0x177c61,consumed:_0x6745eb,size:_0x2f4bad,exhausted:_0x40b728}=_0x41e080);const _0x5a0c4=_0x2b5a6d=>{const _0x331203=_0x206c;_0xe253da=_0x2b5a6d[_0x331203(0x6c6)],_0x2dfe4b=_0x2b5a6d[_0x331203(0x4b0)],_0x177c61=0x0,_0x6745eb+=_0x2b5a6d[_0x331203(0x7d9)],_0x2f4bad=_0xa2dc2a(_0x2f4bad,_0x318df0);if(!_0xe253da)_0x40b728=!![];};if(_0x26fb66)_0x5a0c4(_0x26fb66);const _0x53d61c=()=>{const _0x179b64=_0xe253da;_0xe253da=0x0,_0x52ffac(_0x179b64);},_0x284d22={'next'(){const _0x492694=_0x206c;while(_0x177c61>=_0x2dfe4b[_0x492694(0x61b)]){if(_0x40b728||_0x3c9e0c-_0x6745eb<=0x0)return _0x40b728=!![],_0x53d61c(),_0x49ccdc;try{_0x5a0c4(_0x35d195(_0xe253da,_0x6745eb,_0x2f4bad));}catch(_0x15aa24){_0xe253da=0x0,_0x40b728=!![],_0x2dfe4b=[];throw _0x15aa24;}}return{'value':_0x2dfe4b[_0x177c61++],'done':![]};},'return'(){return _0x53d61c(),_0x49ccdc;},'throw'(){return _0x53d61c(),_0x49ccdc;},'resumed'(){return _0x3dd4(0x0,null,{'buf':_0x2dfe4b,'pos':_0x177c61,'consumed':_0x6745eb,'size':_0x2f4bad,'exhausted':_0x40b728});},[Symbol[_0x4ac769(0x1c7)]](){return this;}};return _0x284d22;}function _0x1da05b(){if(_0x3c9e0c<=0x0)return null;const _0xe19bc9=_0x35d195(0x0,0x0,_0x54624d);return queueMicrotask(()=>{const _0x248c8e=_0x206c;!_0xe19bc9[_0x248c8e(0x50f)]&&(_0xe19bc9[_0x248c8e(0x330)]=!![],_0x52ffac(_0xe19bc9['pin']));}),_0xe19bc9;}return{'source':_0x3dd4,'prefetch':_0x1da05b};}function _0x590f9f(_0x51854d){const _0x25ea38=_0x129be5;if(!_0x51854d||_0x51854d[_0x25ea38(0x50f)]||_0x51854d['dropped'])return null;return _0x51854d[_0x25ea38(0x50f)]=!![],_0x51854d;}return iterable={'fromArray':_0x5b55c4,'chunkedRange':_0x20b2e9,'pinnedChunks':_0x67419f,'claimPrefetch':_0x590f9f,'lmdbLimit':_0x19abe3,'lmdbOffset':_0x20ab93,'CHUNK':_0x28316d,'ROW_CHUNK':_0x5f2993,'FIRST':_0x54624d},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x13e7dc=_0x3e8e44;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x301aa1}=requireIterable();class _0x50db9a{constructor(_0x4b189e,_0xb67ab9='',_0x26d41b={},_0x31f086=null){const _0x1a93e4=_0x206c;this[_0x1a93e4(0x550)]=_0x4b189e,this[_0x1a93e4(0x781)]=_0xb67ab9,this['dupSort']=!!(_0x26d41b&&_0x26d41b[_0x1a93e4(0x1ce)]),this[_0x1a93e4(0x645)]=!!(_0x26d41b&&_0x26d41b[_0x1a93e4(0x645)]),this['_root']=_0x31f086||this,this[_0x1a93e4(0x7a5)]=null;}get[_0x13e7dc(0x433)](){const _0x39aaf6=_0x13e7dc;return this[_0x39aaf6(0x1ce)]?!![]:this[_0x39aaf6(0x645)]?'v':![];}['_n'](_0x2fe09c,_0x567861){const _0x47e8ea=_0x13e7dc;return this[_0x47e8ea(0x550)][_0x47e8ea(0x7ea)][_0x47e8ea(0x8ac)]('raw',this['_env'][_0x47e8ea(0x781)],_0x2fe09c,[this[_0x47e8ea(0x781)],this[_0x47e8ea(0x433)],..._0x567861],!![]);}[_0x13e7dc(0x6fc)](_0x253a72,_0x2bcc79){const _0x5ee595=_0x13e7dc;return this[_0x5ee595(0x550)][_0x5ee595(0x7ea)][_0x5ee595(0x8ac)](_0x5ee595(0x7d9),this[_0x5ee595(0x550)][_0x5ee595(0x781)],_0x253a72,[this[_0x5ee595(0x781)],this[_0x5ee595(0x433)],..._0x2bcc79],![]);}[_0x13e7dc(0x872)](_0x32c554){const _0x5beacf=_0x13e7dc,_0x310c74=this[_0x5beacf(0x550)]['_rawTxnBuf'];if(_0x310c74)_0x310c74[_0x5beacf(0x491)]({'sub':this[_0x5beacf(0x781)],'dup':this[_0x5beacf(0x433)],..._0x32c554});else this[_0x5beacf(0x550)][_0x5beacf(0x7ea)][_0x5beacf(0x8ac)](_0x5beacf(0x7d9),this[_0x5beacf(0x550)]['name'],_0x5beacf(0x83a),[[{'sub':this[_0x5beacf(0x781)],'dup':this[_0x5beacf(0x433)],..._0x32c554}]],!![]);}[_0x13e7dc(0x212)](_0x52d8a4){const _0x3b8ee0=_0x13e7dc;return this[_0x3b8ee0(0x6fc)]('get',[_0x52d8a4]);}[_0x13e7dc(0x447)](_0x2322d5){const _0x4e3fab=_0x13e7dc;if(this[_0x4e3fab(0x645)])return this[_0x4e3fab(0x6fc)]('getEntry',[_0x2322d5]);const _0x57d5a4=this[_0x4e3fab(0x212)](_0x2322d5);return _0x57d5a4===undefined?undefined:{'value':_0x57d5a4};}[_0x13e7dc(0x349)](_0x4cf039){const _0x3b7a92=_0x13e7dc;return this[_0x3b7a92(0x6fc)]('exists',[_0x4cf039]);}[_0x13e7dc(0x803)](_0x1e1206){return this['get'](_0x1e1206);}[_0x13e7dc(0x416)](_0x5c7d0a={}){const _0x366f99=_0x13e7dc,_0x4ef45b=this['_read'](_0x366f99(0x416),[_0x5c7d0a]),_0x4990d7=_0x5c7d0a[_0x366f99(0x77f)]===![],_0x1dcf20=_0x5c7d0a[_0x366f99(0x362)]===![];return _0x301aa1(_0x4ef45b[_0x366f99(0x255)](([_0x572820,_0xc08a4,_0x2e328c])=>{if(_0x4990d7)return _0x572820;if(_0x1dcf20)return _0xc08a4;return _0x2e328c===undefined?{'key':_0x572820,'value':_0xc08a4}:{'key':_0x572820,'value':_0xc08a4,'version':_0x2e328c};}));}[_0x13e7dc(0x6e7)](_0x30e349={}){const _0x1853db=_0x13e7dc;return _0x301aa1(this[_0x1853db(0x6fc)]('getRange',[_0x30e349])[_0x1853db(0x255)](([_0x4bc350])=>_0x4bc350));}[_0x13e7dc(0x633)](_0x4ef624,_0x32c6b0={}){const _0x3478c5=_0x13e7dc,_0x28a7bb=this['_read'](_0x3478c5(0x416),[{..._0x32c6b0,'start':_0x4ef624,'end':_0x4ef624,'inclusiveEnd':!![]}]);return _0x301aa1(_0x28a7bb[_0x3478c5(0x255)](([,_0xf7356f])=>_0xf7356f));}[_0x13e7dc(0x2f5)](_0x661c4b={}){const _0x2bb3a9=_0x13e7dc;return this[_0x2bb3a9(0x6fc)](_0x2bb3a9(0x2eb),[_0x661c4b]);}[_0x13e7dc(0x8a6)](){const _0x46eca8=_0x13e7dc;return{'entryCount':this[_0x46eca8(0x2f5)]()};}[_0x13e7dc(0x3fe)](_0x5ac7d8,_0x2879d3,_0x5d1e73){const _0x27a482=_0x13e7dc;return this[_0x27a482(0x872)]({'op':_0x27a482(0x3fe),'key':_0x5ac7d8,'value':_0x2879d3,'version':_0x5d1e73}),Promise['resolve'](!![]);}[_0x13e7dc(0x314)](_0x192478,_0x2fb9b4,_0x4b1f03){const _0x4c68b5=_0x13e7dc;return this[_0x4c68b5(0x872)]({'op':_0x4c68b5(0x3fe),'key':_0x192478,'value':_0x2fb9b4,'version':_0x4b1f03}),!![];}[_0x13e7dc(0x248)](_0xd213fb,_0x1aa334){const _0x1e3576=_0x13e7dc;return this['_write']({'op':'remove','key':_0xd213fb,'value':_0x1aa334}),Promise[_0x1e3576(0x3e4)](!![]);}[_0x13e7dc(0x2e7)](_0x238ced,_0x3f5e5a){const _0x3adcd7=_0x13e7dc;return this[_0x3adcd7(0x872)]({'op':'remove','key':_0x238ced,'value':_0x3f5e5a}),!![];}['clearSync'](){const _0x53630a=_0x13e7dc;this[_0x53630a(0x872)]({'op':'clear'});}[_0x13e7dc(0x700)](){const _0x45c0bd=_0x13e7dc;return this[_0x45c0bd(0x872)]({'op':_0x45c0bd(0x6f6)}),Promise[_0x45c0bd(0x3e4)]();}['drop'](){const _0x32ee84=_0x13e7dc;this[_0x32ee84(0x5cb)]();}[_0x13e7dc(0x788)](_0x4f8a78,_0x208f82={}){const _0x25919e=_0x13e7dc,_0x20a100=typeof _0x4f8a78===_0x25919e(0x677)?_0x4f8a78:_0x208f82,_0x4eb16a=typeof _0x4f8a78===_0x25919e(0x677)?_0x4f8a78[_0x25919e(0x781)]:_0x4f8a78,_0x244e79=new _0x50db9a(this[_0x25919e(0x550)],_0x4eb16a,_0x20a100);return _0x244e79[_0x25919e(0x872)]({'op':_0x25919e(0x46f)}),_0x244e79;}[_0x13e7dc(0x31a)](){}['transactionSync'](_0x153712){const _0x536adc=_0x13e7dc;return this[_0x536adc(0x81c)](_0x153712);}async[_0x13e7dc(0x2c3)](_0x2ccc00){const _0x3b75e2=_0x13e7dc;return this[_0x3b75e2(0x81c)](_0x2ccc00);}[_0x13e7dc(0x6f1)](_0x47eac0){const _0x71b0b7=_0x13e7dc;return this[_0x71b0b7(0x81c)](_0x47eac0);}['_tx'](_0x1ca280){const _0x419c4b=_0x13e7dc,_0x2bb65b=this[_0x419c4b(0x550)];if(_0x2bb65b['_rawTxnBuf'])return _0x1ca280();_0x2bb65b['_rawTxnBuf']=[];let _0x49c66e;try{_0x49c66e=_0x1ca280();}catch(_0x5ad37f){_0x2bb65b[_0x419c4b(0x7bb)]=null;throw _0x5ad37f;}const _0x4ed7f9=_0x2bb65b[_0x419c4b(0x7bb)];_0x2bb65b[_0x419c4b(0x7bb)]=null;if(_0x4ed7f9[_0x419c4b(0x61b)])_0x2bb65b[_0x419c4b(0x7ea)][_0x419c4b(0x8ac)](_0x419c4b(0x7d9),_0x2bb65b[_0x419c4b(0x781)],_0x419c4b(0x83a),[_0x4ed7f9],!![]);return _0x49c66e;}[_0x13e7dc(0x4e5)](){return{'done'(){}};}[_0x13e7dc(0x397)](){}}return rawdb={'RawDb':_0x50db9a},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x3205f2=_0x3e8e44;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x427b70}=requireRawdb();class _0x357bf5{constructor(_0x1eee67){const _0x5c423c=_0x206c;this[_0x5c423c(0x2a8)]=_0x1eee67,this['_n']=(_0x261f22,_0x5d2a60,_0x1f1d3c=!![])=>_0x1eee67[_0x5c423c(0x7ea)]['_call'](_0x5c423c(0x334),_0x1eee67[_0x5c423c(0x781)],_0x261f22,_0x5d2a60,_0x1f1d3c);}get['_viewState'](){const _0x20f84e=_0x206c,_0x9ece6d=this,_0x31c7aa=this['env'],_0x36e7dd=_0x409bab=>_0x409bab?new _0x427b70(_0x31c7aa,_0x409bab['name'],{'dupSort':_0x409bab[_0x20f84e(0x3cb)]}):undefined,_0x57f7c1=_0x49af39=>{const _0x399393=_0x20f84e,_0x430c26=_0x9ece6d['_n'](_0x399393(0x560),[_0x49af39],![]);if(!_0x430c26)return undefined;const _0x555df4=_0x430c26[_0x399393(0x282)],_0x39a70d=new Map(Object['entries'](_0x555df4['refs'])),_0x2bbfe2=new Map(Object[_0x399393(0x375)](_0x430c26[_0x399393(0x435)])[_0x399393(0x255)](([_0x4f39ee,_0x449aea])=>[_0x4f39ee,_0x36e7dd(_0x449aea)]));return{'name':_0x49af39,'compiled':{'T':_0x555df4['T'],'reducers':_0x555df4['reducers'],'refs':_0x39a70d,'granId':_0x555df4[_0x399393(0x672)],'type':_0x555df4[_0x399393(0x576)],'_nidFor':_0x118ab2=>_0x9ece6d['_n'](_0x399393(0x486),[_0x49af39,_0x118ab2],![])},'viewDb':_0x36e7dd(_0x430c26['dbs'][_0x399393(0x1a2)]),'metaDb':_0x36e7dd(_0x430c26[_0x399393(0x51c)][_0x399393(0x64e)]),'itemsDb':_0x36e7dd(_0x430c26[_0x399393(0x51c)][_0x399393(0x74c)]),'bucketsDb':_0x36e7dd(_0x430c26[_0x399393(0x51c)][_0x399393(0x2b0)]),'sortedDb':_0x36e7dd(_0x430c26[_0x399393(0x51c)][_0x399393(0x475)]),'groupsDb':_0x36e7dd(_0x430c26[_0x399393(0x51c)][_0x399393(0x6d0)]),'prevDb':_0x36e7dd(_0x430c26['dbs'][_0x399393(0x600)]),'refItemsDbs':_0x2bbfe2,'refTrackingDbs':new Map(Object[_0x399393(0x375)](_0x430c26[_0x399393(0x338)]||{})[_0x399393(0x255)](([_0x438db0,_0xe429fa])=>[_0x438db0,_0x36e7dd(_0xe429fa)])),'stopFn':_0x430c26[_0x399393(0x5e0)]?async()=>_0x9ece6d['_n'](_0x399393(0x539),[_0x49af39]):null,'bootstrapWorker':null};};return{'get':_0x9f49a1=>_0x57f7c1(_0x9f49a1),'has':_0x539104=>_0x9ece6d['_n'](_0x20f84e(0x1b2),[],![])[_0x20f84e(0x417)](_0x539104),'keys':()=>_0x9ece6d['_n'](_0x20f84e(0x1b2),[],![])[Symbol[_0x20f84e(0x1c7)]](),get 'size'(){const _0x44a2c6=_0x20f84e;return _0x9ece6d['_n'](_0x44a2c6(0x1b2),[],![])[_0x44a2c6(0x61b)];},[Symbol[_0x20f84e(0x1c7)]]:()=>_0x9ece6d['_n'](_0x20f84e(0x1b2),[],![])[_0x20f84e(0x255)](_0x6461c3=>[_0x6461c3,_0x57f7c1(_0x6461c3)])[Symbol[_0x20f84e(0x1c7)]]()};}get['_customReducers'](){const _0x61a548=_0x206c,_0x39103d=this;return{'has':_0x4fc574=>_0x39103d['_n'](_0x61a548(0x524),[],![])[_0x61a548(0x417)](_0x4fc574),get 'size'(){const _0x4afd22=_0x61a548;return _0x39103d['_n'](_0x4afd22(0x524),[],![])[_0x4afd22(0x61b)];},'keys':()=>_0x39103d['_n'](_0x61a548(0x524),[],![])[Symbol[_0x61a548(0x1c7)]]()};}async[_0x3205f2(0x665)](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x3205f2(0x669)](_0x5994c8={}){const _0xa22ad1=_0x3205f2;return this['_n'](_0xa22ad1(0x669),[_0x5994c8]);}async[_0x3205f2(0x239)](_0x2e3521,_0x4beeb8){return this['_n']('create',[_0x2e3521,_0x4beeb8]),{'name':_0x2e3521};}[_0x3205f2(0x212)](_0x1d7950,_0x17505c={}){const _0x4935c2=_0x3205f2,_0x2eb60d=this['_n'](_0x4935c2(0x212),[_0x1d7950,{'preview':_0x17505c?.[_0x4935c2(0x474)]??{}}],![]);if(_0x2eb60d==null)return null;const _0x3ae79d=this['_n'](_0x4935c2(0x763),[_0x1d7950],![]);if(!_0x3ae79d)return _0x2eb60d;const _0x538fe9=_0x47bc39=>(_0x369f1a={})=>this['_n'](_0x4935c2(0x69e),[_0x1d7950,_0x47bc39,_0x369f1a],![]);if(_0x3ae79d[_0x4935c2(0x853)]){_0x2eb60d[_0x4935c2(0x69e)]=_0x538fe9({'kind':_0x4935c2(0x853)});for(const _0x4d0ec7 of _0x3ae79d[_0x4935c2(0x7f9)]){if(!_0x4d0ec7[_0x4935c2(0x69e)])continue;if(_0x4d0ec7[_0x4935c2(0x210)]){const _0x4fe8cd=_0x2eb60d[_0x4d0ec7[_0x4935c2(0x781)]];if(_0x4fe8cd?.[_0x4935c2(0x474)]&&Array[_0x4935c2(0x63d)](_0x4fe8cd['preview'])){for(const _0xf09499 of _0x4fe8cd[_0x4935c2(0x474)])_0xf09499[_0x4935c2(0x69e)]=_0x538fe9({'kind':'group','reducer':_0x4d0ec7[_0x4935c2(0x781)],'key':_0xf09499[_0x4935c2(0x868)]});}}else _0x2eb60d[_0x4d0ec7[_0x4935c2(0x781)]]&&(_0x2eb60d[_0x4d0ec7[_0x4935c2(0x781)]][_0x4935c2(0x69e)]=_0x538fe9({'kind':_0x4935c2(0x251),'reducer':_0x4d0ec7[_0x4935c2(0x781)]}));}}for(const _0x289e01 of _0x3ae79d[_0x4935c2(0x654)]){if(!_0x289e01[_0x4935c2(0x853)])continue;const _0x1795fe=_0x2eb60d[_0x289e01[_0x4935c2(0x781)]];if(!_0x1795fe||typeof _0x1795fe!==_0x4935c2(0x677))continue;_0x1795fe[_0x4935c2(0x69e)]=_0x538fe9({'kind':_0x4935c2(0x853),'ref':_0x289e01['name']});for(const _0x5c7eeb of _0x289e01[_0x4935c2(0x7f9)]){if(!_0x5c7eeb[_0x4935c2(0x69e)])continue;if(_0x5c7eeb[_0x4935c2(0x210)]){const _0x2ca663=_0x1795fe[_0x5c7eeb[_0x4935c2(0x781)]];if(_0x2ca663?.[_0x4935c2(0x474)]&&Array[_0x4935c2(0x63d)](_0x2ca663[_0x4935c2(0x474)])){for(const _0x485527 of _0x2ca663[_0x4935c2(0x474)])_0x485527[_0x4935c2(0x69e)]=_0x538fe9({'kind':'group','ref':_0x289e01[_0x4935c2(0x781)],'reducer':_0x5c7eeb[_0x4935c2(0x781)],'key':_0x485527['key']});}}else _0x1795fe[_0x5c7eeb[_0x4935c2(0x781)]]&&(_0x1795fe[_0x5c7eeb[_0x4935c2(0x781)]][_0x4935c2(0x69e)]=_0x538fe9({'kind':_0x4935c2(0x251),'ref':_0x289e01[_0x4935c2(0x781)],'reducer':_0x5c7eeb['name']}));}}return _0x2eb60d;}['getMeta'](_0x570a6d){const _0x26b9ab=_0x3205f2;return this['_n'](_0x26b9ab(0x7dd),[_0x570a6d],![]);}[_0x3205f2(0x532)](_0x24baf3,_0x2421c5={}){const _0x2bba5d=_0x3205f2;return this['_n'](_0x2bba5d(0x532),[_0x24baf3,_0x2421c5],![]);}[_0x3205f2(0x21f)](_0x51000b,_0x36c433={}){const _0xc315b3=_0x3205f2;return this['_n'](_0xc315b3(0x21f),[_0x51000b,_0x36c433],![]);}[_0x3205f2(0x879)](_0x38a5d0,_0x2a53ec={}){const _0x432de2=_0x3205f2;return this['_n'](_0x432de2(0x879),[_0x38a5d0,_0x2a53ec],![]);}async[_0x3205f2(0x41d)](){const _0x2776b1=_0x3205f2;return this['_n'](_0x2776b1(0x41d),[],![]);}async[_0x3205f2(0x1ff)](_0x4166b8){const _0x5338e5=_0x3205f2;return this['_n'](_0x5338e5(0x1ff),[_0x4166b8],![])??null;}async['remove'](_0x4745a3,_0x4779d4={}){const _0x41c34b=_0x3205f2;return this['_n'](_0x41c34b(0x248),[_0x4745a3,_0x4779d4]);}async['stop'](_0x1afd00){const _0x3ba5e6=_0x3205f2;return this['_n'](_0x3ba5e6(0x8a0),[_0x1afd00]);}async['start'](_0x2b29bc){const _0x4c6286=_0x3205f2;return this['_n'](_0x4c6286(0x40c),[_0x2b29bc]);}async['rebuild'](_0x1b4300){const _0x149ce9=_0x3205f2;return this['_n'](_0x149ce9(0x7b0),[_0x1b4300]);}async['resetView'](_0x51b7fa){const _0x2d5f2a=_0x3205f2;return this['_n'](_0x2d5f2a(0x244),[_0x51b7fa]);}[_0x3205f2(0x6e3)](_0x2a3c53,_0x2c98f5={}){const _0x14dd8c=_0x3205f2;return this['_n'](_0x14dd8c(0x6e3),[_0x2a3c53,{'apply':_0x2c98f5&&_0x2c98f5[_0x14dd8c(0x687)]}]);}}return views={'OKDBViews':_0x357bf5},views;}function _0x206c(_0x1d1093,_0x3a3ef6){_0x1d1093=_0x1d1093-0x192;const _0x2622fc=_0x2622();let _0x206c8d=_0x2622fc[_0x1d1093];return _0x206c8d;}var queue,hasRequiredQueue;function requireQueue(){const _0x1348af=_0x3e8e44;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x3c3b4e}=requireErrors(),_0x29f627=requireBridge();class _0x3b10a6{constructor(_0xae8557){const _0xfa7226=_0x206c;this['env']=_0xae8557,this[_0xfa7226(0x7ea)]=_0xae8557[_0xfa7226(0x7ea)],this[_0xfa7226(0x4ce)]=_0xae8557['okdb'][_0xfa7226(0x4ce)]['child']({'feature':_0xfa7226(0x2bf)}),this[_0xfa7226(0x340)]=new Set();}['_n'](_0x3e16b5,_0xee940a,_0x284501=!![]){const _0x3f2bab=_0x206c;return this[_0x3f2bab(0x7ea)][_0x3f2bab(0x8ac)](_0x3f2bab(0x2bf),this['env'][_0x3f2bab(0x781)],_0x3e16b5,_0xee940a,_0x284501);}['_w'](_0xa30036,_0x273391){const _0x162230=_0x206c;return this[_0x162230(0x7ea)][_0x162230(0x431)](this['_n'](_0xa30036,_0x273391));}async['_ensure'](){return this['_n']('ensure',[]);}async[_0x1348af(0x41d)](_0x2fc2c1={}){const _0x21b75d=_0x1348af;return this['_n'](_0x21b75d(0x41d),[_0x2fc2c1],![]);}get[_0x1348af(0x6cf)](){const _0x5b35a4=_0x1348af,{RawDb:_0x2a712a}=requireRawdb();return this[_0x5b35a4(0x2e4)]||(this[_0x5b35a4(0x2e4)]=new _0x2a712a(this['env'],'~queue_logs'));}async[_0x1348af(0x886)](){const _0x2dd20a=_0x1348af;return this['_w'](_0x2dd20a(0x3c3),[]);}async[_0x1348af(0x37b)](_0x18711b,_0x3b1949,_0x31db70={}){const _0x42c8a4=_0x1348af,{txn:_0x2262da,..._0x39cda6}=_0x31db70||{};if(_0x2262da)return this[_0x42c8a4(0x587)](_0x2262da,_0x18711b,_0x3b1949,_0x39cda6);const _0x3ce807=this[_0x42c8a4(0x7ea)]['_wb'];if(_0x3ce807&&_0x3ce807[_0x42c8a4(0x2bf)][_0x42c8a4(0x61b)])_0x3ce807[_0x42c8a4(0x3b9)]();const _0x4af3d8=this['_n']('enqueueClaim',[_0x18711b,_0x3b1949,_0x39cda6],![]);return this['okdb'][_0x42c8a4(0x431)](_0x4af3d8['id'])[_0x42c8a4(0x8b4)](_0x5ca478=>{const _0x527ef4=_0x42c8a4;if(_0x4af3d8['claimed'])this['_startClaimedSoon'](_0x18711b);else try{this['okdb'][_0x527ef4(0x841)][_0x527ef4(0x3b8)]();}catch{}return _0x5ca478;});}['_startClaimedSoon'](_0x53b74f){queueMicrotask(()=>{const _0x118cf5=_0x206c;try{this['_n'](_0x118cf5(0x7e2),[_0x53b74f]);}catch{}});}[_0x1348af(0x587)](_0x56e02f,_0x34bdea,_0x5f2930,_0x38bcb2){const _0x1c6c32=_0x1348af,_0x4b1bf9=_0x56e02f[_0x1c6c32(0x7d9)]??_0x56e02f;if(_0x4b1bf9[_0x1c6c32(0x6f4)])throw new _0x3c3b4e(_0x1c6c32(0x23f),_0x1c6c32(0x2e2));if(_0x4b1bf9[_0x1c6c32(0x7ea)]&&_0x4b1bf9[_0x1c6c32(0x7ea)]!==this[_0x1c6c32(0x2a8)]&&_0x4b1bf9[_0x1c6c32(0x7ea)]['name']!==this['env'][_0x1c6c32(0x781)])throw new _0x3c3b4e(_0x1c6c32(0x75c),_0x1c6c32(0x35a),{'txnEnv':_0x4b1bf9[_0x1c6c32(0x7ea)]['name'],'queueEnv':this[_0x1c6c32(0x2a8)][_0x1c6c32(0x781)]});const _0x35cf06=this['_n']('prepareTxnEnqueue',[_0x34bdea,_0x5f2930,_0x38bcb2],![]);if(_0x35cf06[_0x1c6c32(0x69d)])return _0x35cf06['id'];if(_0x35cf06[_0x1c6c32(0x6a2)])_0x56e02f[_0x1c6c32(0x625)](_0x1c6c32(0x718),_0x35cf06[_0x1c6c32(0x6a2)]['key'],_0x35cf06[_0x1c6c32(0x6a2)][_0x1c6c32(0x37e)],{'ifVersion':_0x35cf06[_0x1c6c32(0x6a2)][_0x1c6c32(0x445)]});if(_0x5f2930!==undefined)_0x56e02f[_0x1c6c32(0x3fe)](_0x1c6c32(0x741),_0x35cf06['id'],_0x5f2930);_0x56e02f[_0x1c6c32(0x3fe)](_0x1c6c32(0x718),_0x35cf06['id'],_0x35cf06[_0x1c6c32(0x75d)]);if(typeof _0x4b1bf9[_0x1c6c32(0x714)]===_0x1c6c32(0x6a3))_0x4b1bf9['onDo'](()=>{const _0x30c083=_0x1c6c32;if(this['_n'](_0x30c083(0x1bf),[_0x35cf06['id'],_0x34bdea,_0x35cf06['when'],_0x35cf06[_0x30c083(0x4ee)]]))this[_0x30c083(0x6a8)](_0x34bdea);});return _0x35cf06['id'];}async[_0x1348af(0x707)](_0x350991,_0x1d799c={}){const _0x23548e=_0x1348af;if(typeof _0x350991!=='string'||!_0x350991)throw new _0x3c3b4e('claim\x20requires\x20non-empty\x20type',_0x23548e(0x5da));return this['_w'](_0x23548e(0x707),[_0x350991,_0x1d799c]);}async[_0x1348af(0x3c9)](_0x29041e,_0x165c88,_0x201336=null){return this['_w']('markJobHeartbeat',[_0x29041e,_0x165c88,_0x201336]);}async[_0x1348af(0x851)](_0x2d9650,_0x5827db,_0x228e01=null){const _0x35ff71=_0x1348af;return this[_0x35ff71(0x3c9)](_0x2d9650,_0x5827db,_0x228e01);}async['markJobProgress'](_0x3a668e,_0x490d6d,_0x1d8126){return this['_w']('markJobProgress',[_0x3a668e,_0x490d6d,_0x1d8126]);}async[_0x1348af(0x6f3)](_0x3d2c09,_0x547878,_0x3f526d){const _0x1ae8ea=_0x1348af;return this['_w'](_0x1ae8ea(0x6f3),[_0x3d2c09,_0x547878,_0x3f526d]);}async[_0x1348af(0x4d6)](_0x352ec6,_0x130392,_0x25db5b){const _0x3e91d2=_0x1348af;return this[_0x3e91d2(0x6f3)](_0x352ec6,_0x130392,_0x25db5b);}async[_0x1348af(0x4a5)](_0x524409,_0x49467d,_0x369a8b,_0x78787d){const _0x2a2523=_0x1348af,_0x517ecb=_0x369a8b instanceof Error?{'message':_0x369a8b[_0x2a2523(0x412)],'stack':_0x369a8b[_0x2a2523(0x6ca)]}:_0x369a8b;return this['_w'](_0x2a2523(0x4a5),[_0x524409,_0x49467d,_0x517ecb,_0x78787d]);}async[_0x1348af(0x813)](_0x1ebb6a,_0x5b2277,_0x482143,_0x1ada76){const _0x36aa8a=_0x1348af;return this[_0x36aa8a(0x4a5)](_0x1ebb6a,_0x5b2277,_0x482143,_0x1ada76);}async['releaseClaim'](_0x3f8e80,_0x43ffee,_0x1f3bbb={}){const _0x1746c6=_0x1348af;return this['_w'](_0x1746c6(0x79e),[_0x3f8e80,_0x43ffee,_0x1f3bbb]);}async[_0x1348af(0x213)](_0x4c5e29){return this['_n']('getJob',[_0x4c5e29],![]);}async['updateJob'](_0x1878e6,_0x1370bc={},_0x1bc8b4={}){const _0x16bf55=_0x1348af,_0x249cae=_0x1bc8b4&&_0x1bc8b4[_0x16bf55(0x6d6)];if(!_0x249cae)return this['_w'](_0x16bf55(0x230),[_0x1878e6,_0x1370bc]);const {next:_0xd13004,version:_0x14b3c0}=this['_n'](_0x16bf55(0x484),[_0x1878e6,_0x1370bc],![]);_0x249cae['update']('~queue_jobs',_0x1878e6,_0xd13004,{'ifVersion':_0x14b3c0});let _0x44134f;if(_0x16bf55(0x270)in _0x1370bc){if(_0x1370bc[_0x16bf55(0x270)]===undefined){if(this[_0x16bf55(0x2a8)][_0x16bf55(0x447)](_0x16bf55(0x741),_0x1878e6))_0x249cae[_0x16bf55(0x248)](_0x16bf55(0x741),_0x1878e6);}else _0x249cae[_0x16bf55(0x3fe)](_0x16bf55(0x741),_0x1878e6,_0x1370bc['payload']);_0x44134f=_0x1370bc[_0x16bf55(0x270)];}else _0x44134f=this[_0x16bf55(0x2a8)][_0x16bf55(0x212)](_0x16bf55(0x741),_0x1878e6);return{..._0xd13004,'payload':_0x44134f};}async[_0x1348af(0x87b)](_0xce0314,_0x3846b0={}){const _0x1e6f0c=_0x1348af,_0x34f1d6=_0x3846b0&&_0x3846b0['txn'];if(!_0x34f1d6)return this['_w'](_0x1e6f0c(0x87b),[_0xce0314]);if(!_0xce0314)throw new _0x3c3b4e(_0x1e6f0c(0x5b1),_0x1e6f0c(0x5da));if(!this['env']['getEntry'](_0x1e6f0c(0x718),_0xce0314))return![];_0x34f1d6[_0x1e6f0c(0x248)](_0x1e6f0c(0x718),_0xce0314);if(this[_0x1e6f0c(0x2a8)][_0x1e6f0c(0x447)](_0x1e6f0c(0x741),_0xce0314))_0x34f1d6[_0x1e6f0c(0x248)]('~queue_payloads',_0xce0314);if(typeof _0x34f1d6['onDo']===_0x1e6f0c(0x6a3))_0x34f1d6[_0x1e6f0c(0x714)](()=>this['_n'](_0x1e6f0c(0x40d),[_0xce0314]));return!![];}async[_0x1348af(0x728)](_0x4185a2){const _0x4bd3c0=_0x1348af;return this['_w'](_0x4bd3c0(0x728),[_0x4185a2]);}async['retryJob'](_0x55a5df){const _0x5cb0ac=_0x1348af;return this['_w'](_0x5cb0ac(0x1b9),[_0x55a5df]);}async[_0x1348af(0x383)](_0x5aa2d5,_0x132222,_0x226b81){const _0x2ad678=_0x1348af,_0x50ed52=this['_n']('clearScan',[_0x132222??null,_0x226b81??0x0,_0x5aa2d5]),_0x4c3f72=0x1f4;for(let _0x151e3d=0x0;_0x151e3d<_0x50ed52[_0x2ad678(0x61b)];_0x151e3d+=_0x4c3f72){this['_n'](_0x2ad678(0x3aa),[_0x50ed52[_0x2ad678(0x8b5)](_0x151e3d,_0x151e3d+_0x4c3f72),_0x151e3d,_0x50ed52['length'],_0x132222??null]);if(_0x151e3d+_0x4c3f72<_0x50ed52[_0x2ad678(0x61b)])await new Promise(_0x292718=>setImmediate(_0x292718));}return this['_n'](_0x2ad678(0x2f9),[_0x50ed52[_0x2ad678(0x61b)],_0x132222??null]),await new Promise(_0x456d94=>setImmediate(_0x456d94)),_0x50ed52[_0x2ad678(0x61b)];}async[_0x1348af(0x3d8)](_0x34ef07,_0x4dc0a3){const _0x2693dd=_0x1348af;return this[_0x2693dd(0x383)](_0x2693dd(0x845),_0x34ef07,_0x4dc0a3);}async['clearFailed'](_0x19dcd4,_0x470930){const _0xe61ec2=_0x1348af;return this[_0xe61ec2(0x383)]('failed',_0x19dcd4,_0x470930);}async[_0x1348af(0x634)](_0x14b7ec,_0x38b7b1){const _0x538f6b=_0x1348af;return this['_w'](_0x538f6b(0x634),[_0x14b7ec??null,_0x38b7b1??0x0]);}async[_0x1348af(0x582)](_0x4a045e,_0x14bd55){return this['_w']('clearStuck',[_0x4a045e??null,_0x14bd55??0x0]);}async[_0x1348af(0x65e)](_0xc7be54,_0x53e5de,_0x3d282c){const _0x4b9a7d=_0x1348af;return this['_w'](_0x4b9a7d(0x65e),[_0xc7be54,_0x53e5de,_0x3d282c]);}async['getJobLogs'](_0x22a285,_0x57b9f7={}){const _0x39d887=_0x1348af;return this['_n'](_0x39d887(0x4ad),[_0x22a285,_0x57b9f7],![]);}async[_0x1348af(0x27f)](_0x33a95c,_0x4b1d55={}){const _0x51b9e2=_0x1348af,{txn:_0x52d89a,..._0x19b880}=_0x4b1d55||{};if(!_0x52d89a)return this['_w'](_0x51b9e2(0x27f),[_0x33a95c,_0x19b880]);const _0x4b693c=(_0x4ee1cf,_0x1717c4,_0x32cf05,_0x5f1399)=>{const _0x2cc879=_0x51b9e2,_0x378772=Math[_0x2cc879(0x3a4)](Number(_0x4ee1cf));return Number[_0x2cc879(0x1dd)](_0x378772)?Math[_0x2cc879(0x3bb)](_0x5f1399,Math[_0x2cc879(0x2cf)](_0x32cf05,_0x378772)):_0x1717c4;},_0x39433e=typeof _0x33a95c==='string'?_0x33a95c['trim']():'';if(!_0x39433e)throw new Error(_0x51b9e2(0x3da));const _0x5a8c93=_0x4b693c(_0x19b880[_0x51b9e2(0x6ea)],0x0,0x0,0x3b9aca00);_0x52d89a[_0x51b9e2(0x3fe)](_0x51b9e2(0x4a1),_0x39433e,{'id':_0x39433e,'tokens':_0x4b693c(_0x19b880['tokens'],_0x5a8c93,0x0,_0x5a8c93),'capacity':_0x5a8c93,'refill_amount':_0x4b693c(_0x19b880[_0x51b9e2(0x342)],0x0,0x0,0x3b9aca00),'refill_every':_0x4b693c(_0x19b880[_0x51b9e2(0x53a)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x51b9e2(0x590)]()});}async['updateBucket'](_0x40bed8,_0x406b99){const _0x2da38a=_0x1348af;return this['_w'](_0x2da38a(0x2fc),[_0x40bed8,_0x406b99]);}async[_0x1348af(0x37c)](_0x44a5ac){const _0x312ba=_0x1348af;return this['_w'](_0x312ba(0x37c),[_0x44a5ac]);}[_0x1348af(0x68e)](_0x1e82bd){const _0x216bc7=_0x1348af,_0xc5c406=this['_n'](_0x216bc7(0x68e),[_0x1e82bd],![]);return _0xc5c406===null&&typeof _0x1e82bd===_0x216bc7(0x7f4)&&_0x1e82bd[_0x216bc7(0x51f)]()?undefined:_0xc5c406;}async[_0x1348af(0x48f)](_0x3da592,_0x1797b7){const _0x17eb69=_0x1348af;return this['_w'](_0x17eb69(0x48f),[_0x3da592,_0x1797b7]);}async['addJobType'](_0x42774c,_0x150462={}){const _0x4edc79=_0x1348af;return this['_w'](_0x4edc79(0x4d8),[_0x42774c,_0x150462]);}async[_0x1348af(0x5b4)](_0x2e01cc){const _0x52d667=_0x1348af;return this['_n'](_0x52d667(0x5b4),[_0x2e01cc],![]);}async[_0x1348af(0x73d)](){return this['_n']('listJobTypes',[],![]);}async[_0x1348af(0x408)](_0x4f0565){const _0x3df5e5=_0x1348af;return this['_w'](_0x3df5e5(0x408),[_0x4f0565]);}['pauseJobType'](_0x24a857){const _0x4f25fb=_0x1348af;return this['_n'](_0x4f25fb(0x67b),[_0x24a857]);}[_0x1348af(0x6fb)](_0x2d09f7){return this['_n']('resumeJobType',[_0x2d09f7]);}[_0x1348af(0x5a3)](_0x37223f){return this['_n']('drainJobType',[_0x37223f]);}async[_0x1348af(0x3c2)](_0x109b9e,_0x55a771,_0x554881=![]){const _0x3a2496=_0x1348af;return this['_w'](_0x3a2496(0x3c2),[_0x109b9e,_0x55a771,_0x554881]);}async['removeJobTypeSchema'](_0x5fbf25){const _0x54057f=_0x1348af;return this['_w'](_0x54057f(0x444),[_0x5fbf25]);}async[_0x1348af(0x494)](_0x176bc5,_0x45c61b=0x5){const _0x4efa9f=_0x1348af;return this['_n'](_0x4efa9f(0x494),[_0x176bc5,_0x45c61b],![]);}async[_0x1348af(0x629)](_0x384c52){const _0x5d6750=_0x1348af;return this['_n'](_0x5d6750(0x7b8),[_0x384c52]);}async[_0x1348af(0x2fd)](_0x2bcada=0x7530){const _0x1c0abe=_0x1348af;await Promise['allSettled']([...this['_workers']][_0x1c0abe(0x255)](_0x2800dd=>_0x2800dd['stop'](_0x2bcada)));const _0x599f9b=this['_n'](_0x1c0abe(0x2fd),[0x0]);return this['_workers'][_0x1c0abe(0x6f6)](),_0x599f9b;}async['killAll'](){const _0x37e41e=_0x1348af,_0x3c0f2d=this['_n'](_0x37e41e(0x84d),[]);return this['_workers']['clear'](),_0x3c0f2d;}[_0x1348af(0x471)](_0x210e34,_0x1a24e5,_0x10cf59){const _0x5d418b=_0x1348af;let _0x5f2068,_0x589b65;if(Array['isArray'](_0x210e34)){if(typeof _0x1a24e5===_0x5d418b(0x6a3))throw new _0x3c3b4e(_0x5d418b(0x774),_0x5d418b(0x5da));_0x589b65=_0x1a24e5??{};if(_0x589b65[_0x5d418b(0x850)]!=null&&typeof _0x589b65[_0x5d418b(0x850)]!==_0x5d418b(0x6a3))throw new _0x3c3b4e(_0x5d418b(0x1e2),_0x5d418b(0x5da));if(_0x210e34[_0x5d418b(0x61b)]===0x0)throw new _0x3c3b4e('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x5d418b(0x5da));_0x5f2068=_0x210e34[_0x5d418b(0x255)](_0x2e2706=>{const _0x220b2=_0x5d418b;if(!_0x2e2706||typeof _0x2e2706['type']!==_0x220b2(0x7f4)||!_0x2e2706[_0x220b2(0x576)])throw new _0x3c3b4e(_0x220b2(0x516),_0x220b2(0x5da));if(typeof _0x2e2706['handler']!==_0x220b2(0x6a3))throw new _0x3c3b4e('process()\x20entry\x20\x22'+_0x2e2706[_0x220b2(0x576)]+_0x220b2(0x5ed),'BAD_PARAM');return{..._0x2e2706};});}else{_0x589b65=_0x10cf59??{};if(typeof _0x1a24e5!==_0x5d418b(0x6a3))throw new _0x3c3b4e(_0x5d418b(0x5f7)+_0x210e34+_0x5d418b(0x5ed),'BAD_PARAM');_0x5f2068=[{'type':_0x210e34,'handler':_0x1a24e5,..._0x10cf59??{}}];}const _0x1a15e6=this[_0x5d418b(0x7ea)];for(const _0x142c2f of _0x5f2068){const _0x30b84e=_0x142c2f[_0x5d418b(0x3f9)];_0x142c2f['handler']=function(..._0x37224e){const _0x5f4e58=_0x5d418b;return _0x1a15e6['_afterDurable']()[_0x5f4e58(0x8b4)](()=>_0x30b84e[_0x5f4e58(0x687)](this,_0x37224e));};}const _0x21aebd=this['_n'](_0x5d418b(0x471),[_0x5f2068,_0x589b65]),_0x6147b6=this,_0x498401={'id':_0x21aebd['id'],'type':_0x21aebd['type'],get 'running'(){const _0x338165=_0x5d418b;return _0x6147b6['_n'](_0x338165(0x840),[_0x21aebd['id']],![])['running'];},'isRunning'(){const _0x1e9f91=_0x5d418b;return _0x6147b6['_n'](_0x1e9f91(0x840),[_0x21aebd['id']],![])[_0x1e9f91(0x6ba)];},async 'stop'(_0x57ce39=0x7530){const _0x1292ed=_0x5d418b;_0x6147b6['_n']('stopWorkerBegin',[_0x21aebd['id']]);const _0x56688a=Date[_0x1292ed(0x590)]()+_0x57ce39;while(_0x6147b6['_n'](_0x1292ed(0x840),[_0x21aebd['id']],![])['inFlight']>0x0&&Date[_0x1292ed(0x590)]()<_0x56688a)await new Promise(_0x366776=>setTimeout(_0x366776,0x2));_0x6147b6['_n']('stopWorkerAbort',[_0x21aebd['id']]),_0x29f627[_0x1292ed(0x51d)](),_0x6147b6[_0x1292ed(0x340)][_0x1292ed(0x588)](_0x498401);},async 'kill'(){const _0x4f52a3=_0x5d418b;_0x6147b6['_n'](_0x4f52a3(0x823),[_0x21aebd['id']]),_0x6147b6['_workers'][_0x4f52a3(0x588)](_0x498401);}};return this[_0x5d418b(0x340)]['add'](_0x498401),_0x498401;}['worker'](_0x5d65c7){const _0x35a97e=_0x1348af;throw new _0x3c3b4e(_0x35a97e(0x1f6)+_0x5d65c7+_0x35a97e(0x78c)+_0x5d65c7+_0x35a97e(0x2ac),'QUEUE_WORKER_REMOVED');}[_0x1348af(0x38c)](_0x2292b4){const _0x4621de=_0x1348af;return this[_0x4621de(0x508)](_0x2292b4);}}return queue={'OKDBQueue':_0x3b10a6},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x173793=_0x3e8e44;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x350d59}=requireIterable();class _0x5de1a2{constructor(_0x285709){const _0x4401fa=_0x206c;this[_0x4401fa(0x2a8)]=_0x285709,this[_0x4401fa(0x7ea)]=_0x285709[_0x4401fa(0x7ea)];const _0x961ab0=(_0x246f1e,_0x217bb0)=>this['_n'](_0x246f1e,_0x217bb0,![]);this['_store']={'getDiffs':(_0x250e26,_0x5c677f,_0x220238)=>_0x961ab0(_0x4401fa(0x3c1),[_0x250e26,_0x5c677f,_0x220238||{}]),'hasDiff':(_0x4c0505,_0x4a76de,_0xaa0d80)=>_0x961ab0(_0x4401fa(0x789),[_0x4c0505,_0x4a76de,_0xaa0d80]),'getHead':(_0x533ed8,_0x11b84b)=>_0x961ab0(_0x4401fa(0x3df),[_0x533ed8,_0x11b84b])??null,'getHeadCount':_0xac3b5c=>_0x961ab0('storeGetHeadCount',[_0xac3b5c]),'getTotalHeadCount':()=>_0x961ab0('storeGetTotalHeadCount',[]),'getDiffsInRange':(_0x58ef5b,_0x64a1ab,_0x3f273b)=>_0x961ab0('storeGetDiffsInRange',[_0x58ef5b??null,_0x64a1ab,_0x3f273b]),'getConfig':()=>_0x961ab0(_0x4401fa(0x34a),[])??null,'getCursor':()=>this['_n'](_0x4401fa(0x694),[],![])??null,get 'db'(){const _0x457354=_0x4401fa;try{return _0x961ab0(_0x457354(0x281),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x455dd3=_0x206c,_0x31b099=(this[_0x455dd3(0x2a8)][_0x455dd3(0x726)]?.[_0x455dd3(0x41d)]?.()||[])[_0x455dd3(0x656)](_0x2459bf=>String(_0x2459bf[_0x455dd3(0x46b)]||'')['startsWith']('time-machine:'))[_0x455dd3(0x61b)];return{'size':_0x31b099};}['_n'](_0xbe64dd,_0x3f33bc,_0x559342=!![]){const _0x80e390=_0x206c;return this[_0x80e390(0x7ea)][_0x80e390(0x8ac)]('tm',this[_0x80e390(0x2a8)][_0x80e390(0x781)],_0xbe64dd,_0x3f33bc,_0x559342);}async['enable'](_0x3bebb3){const _0x1f22fe=_0x206c;return this['_n'](_0x1f22fe(0x753),[_0x3bebb3??null]);}async['disable'](_0x188857){const _0x119296=_0x206c;return this['_n'](_0x119296(0x5b5),[_0x188857??null]);}async[_0x173793(0x4b2)](){return this['_n']('enableAll',[]);}async[_0x173793(0x269)](){const _0x4c7c47=_0x173793;return this['_n'](_0x4c7c47(0x269),[]);}async['drop'](_0x52715b){const _0x328cf1=_0x173793;return this['_n'](_0x328cf1(0x5a1),[_0x52715b??null]);}async[_0x173793(0x4e6)](){const _0x16c20d=_0x173793;return this['_n'](_0x16c20d(0x4e6),[]);}[_0x173793(0x7c5)](_0x3417f0){return this['_n']('isEnabled',[_0x3417f0??null],![]);}['list'](){const _0x45c371=_0x173793;return this['_n'](_0x45c371(0x41d),[],![]);}['status'](_0x4977ac){return this['_n']('status',[_0x4977ac??null],![]);}['getCursor'](_0x3dc02a){const _0x51a0ed=_0x173793;if(!_0x3dc02a)return this['_n'](_0x51a0ed(0x694),[],![]);return this['_n'](_0x51a0ed(0x723),[_0x3dc02a],![]);}['getLegacyCursor'](){const _0x5ab187=_0x173793;return this['_n'](_0x5ab187(0x694),[],![]);}[_0x173793(0x1f9)](_0x22fa20,_0xf7c3f2,_0x1c5639){const _0xa740f1=_0x173793;return this['_n'](_0xa740f1(0x1f9),[_0x22fa20,_0xf7c3f2,_0x1c5639],![]);}[_0x173793(0x264)](_0x1cd96f,_0x42c753,_0x34a3a1){const _0x1f05fc=_0x173793;return this['_n'](_0x1f05fc(0x264),[_0x1cd96f,_0x42c753,_0x34a3a1||{}],![]);}[_0x173793(0x7bc)](_0x2518f3,_0xb8fc46,_0x4665c0){const _0x3a7d0d=_0x173793;return this['_n'](_0x3a7d0d(0x7bc),[_0x2518f3??null,_0xb8fc46,_0x4665c0],![])[Symbol['iterator']]();}async['flush'](_0x472d86){return this['_n']('flush',[_0x472d86??null]);}}return timemachine={'OKDBTimeMachine':_0x5de1a2},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x72dbb=_0x3e8e44;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x4709e7=require$$0,{Readable:_0x25c473}=require$$1,{OKDBError:_0x1c3948,optionsArg:_0x5438b0,invalidArgument:_0x5e4194}=requireErrors(),{RawDb:_0x1d460f}=requireRawdb();async function _0x356e65(_0x176edb){const _0x1b0260=_0x206c;if(Buffer[_0x1b0260(0x3bf)](_0x176edb))return _0x176edb;if(_0x176edb instanceof Uint8Array)return Buffer[_0x1b0260(0x3e9)](_0x176edb);if(typeof _0x176edb===_0x1b0260(0x7f4))return Buffer['from'](_0x176edb);const _0x46a2c1=[];for await(const _0x45f51a of _0x176edb)_0x46a2c1[_0x1b0260(0x491)](Buffer[_0x1b0260(0x3bf)](_0x45f51a)?_0x45f51a:Buffer['from'](_0x45f51a));return Buffer[_0x1b0260(0x44b)](_0x46a2c1);}class _0x373686{constructor(_0x1accb4){const _0x41923a=_0x206c;this[_0x41923a(0x2a8)]=_0x1accb4,this[_0x41923a(0x7ea)]=_0x1accb4[_0x41923a(0x7ea)];}['_n'](_0x2a48e4,_0x118c69,_0x582e59=!![]){const _0x2cf726=_0x206c;return this['okdb'][_0x2cf726(0x8ac)](_0x2cf726(0x32c),this[_0x2cf726(0x2a8)][_0x2cf726(0x781)],_0x2a48e4,_0x118c69,_0x582e59);}[_0x72dbb(0x40c)](){return!![];}[_0x72dbb(0x8a0)](){}async['_ensure'](){const _0x34473d=_0x72dbb;this['_n'](_0x34473d(0x46f),[]);}async['_writeBlob'](_0xebdb7f,_0x4e0037){const _0x4269bf=_0x72dbb;return this[_0x4269bf(0x7ea)][_0x4269bf(0x431)](this['_n'](_0x4269bf(0x5b2),[_0xebdb7f,await _0x356e65(_0x4e0037)]));}get[_0x72dbb(0x20d)](){const _0x1c997c=_0x72dbb;return this[_0x1c997c(0x55d)]||(this['__blobStatusDb']=new _0x1d460f(this[_0x1c997c(0x2a8)],_0x1c997c(0x3f6)));}async[_0x72dbb(0x4c4)](_0x14ce42){const _0x9ccacd=_0x72dbb;return this[_0x9ccacd(0x20d)][_0x9ccacd(0x81c)](_0x14ce42);}async[_0x72dbb(0x1e8)](_0x17b7f9){const _0x19db2d=_0x72dbb,{id:_0x15ce6b,stream:_0x5a07a0,mime:mime=_0x19db2d(0x27e),path:_0x5a1252='',txn:txn=null}=_0x5438b0(_0x17b7f9);if(!_0x15ce6b)throw _0x5e4194(_0x19db2d(0x52a),_0x19db2d(0x25d),_0x15ce6b);if(!_0x5a07a0)throw _0x5e4194(_0x19db2d(0x3dc),_0x19db2d(0x400),_0x5a07a0);const _0x521c4f=await _0x356e65(_0x5a07a0);if(txn){const _0x5199e0=this['_n'](_0x19db2d(0x51b),[_0x15ce6b,_0x521c4f,{'mime':mime,'path':_0x5a1252}]);return txn['put'](_0x19db2d(0x54d),_0x15ce6b,_0x5199e0[_0x19db2d(0x72d)]),txn[_0x19db2d(0x714)](()=>this['_n'](_0x19db2d(0x4f7),[_0x5199e0['hook']])),txn[_0x19db2d(0x5b9)](()=>this['_n'](_0x19db2d(0x426),[_0x5199e0[_0x19db2d(0x202)]])),_0x5199e0[_0x19db2d(0x72d)];}return this[_0x19db2d(0x7ea)][_0x19db2d(0x431)](this['_n']('upload',[_0x15ce6b,_0x521c4f,{'mime':mime,'path':_0x5a1252}]));}[_0x72dbb(0x212)](_0x2b3484){const _0x422536=_0x72dbb;return this['_n'](_0x422536(0x212),[_0x2b3484],![])??null;}[_0x72dbb(0x3ed)](_0x35731d){const _0x4cb80c=_0x72dbb,_0x4d7501=this[_0x4cb80c(0x1b6)](_0x35731d);if(!_0x4709e7[_0x4cb80c(0x797)](_0x4d7501))throw Object[_0x4cb80c(0x429)](new Error('Blob\x20not\x20found:\x20'+_0x35731d),{'status':0x194});return this['_blobStream'](_0x35731d);}[_0x72dbb(0x589)](_0x16fe6b){const _0xea43d1=0x100*0x400,_0x3f6062=this;let _0x13dde3=0x0;return new _0x25c473({'highWaterMark':_0xea43d1,'read'(){const _0x53aae0=_0x206c;let _0x24d12d;try{const _0x1bfd10=_0x3f6062['_n'](_0x53aae0(0x47e),[_0x16fe6b,_0x13dde3,_0xea43d1],![]);_0x24d12d=Buffer['isBuffer'](_0x1bfd10)?_0x1bfd10:Buffer['from'](_0x1bfd10);}catch(_0x5c7d7a){this[_0x53aae0(0x6a9)](_0x5c7d7a);return;}_0x13dde3+=_0x24d12d[_0x53aae0(0x61b)];if(_0x24d12d['length'])this[_0x53aae0(0x491)](_0x24d12d);if(_0x24d12d['length']<_0xea43d1)this[_0x53aae0(0x491)](null);}});}async[_0x72dbb(0x66b)](_0x1f8a73){const _0x15ce4f=_0x72dbb;return this[_0x15ce4f(0x7ea)][_0x15ce4f(0x386)](this['_n'](_0x15ce4f(0x66b),[_0x1f8a73],![]));}async[_0x72dbb(0x58e)](_0xbc36e0){const _0x5b00e0=_0x72dbb,_0x57f243=this['get'](_0xbc36e0);if(!_0x57f243)throw Object[_0x5b00e0(0x429)](new Error('File\x20not\x20found:\x20'+_0xbc36e0),{'status':0x194});const _0x441450=this['_blobPath'](_0x57f243[_0x5b00e0(0x23c)]);if(!_0x4709e7[_0x5b00e0(0x797)](_0x441450))throw Object[_0x5b00e0(0x429)](new Error(_0x5b00e0(0x6d9)+_0xbc36e0),{'status':0x194});return{'stream':this[_0x5b00e0(0x589)](_0x57f243[_0x5b00e0(0x23c)]),'record':_0x57f243};}async['remove'](_0x322496,_0x2c17df){const _0x1d7c1f=_0x72dbb,{txn:txn=null}=_0x5438b0(_0x2c17df);if(txn){const _0x289986=this['_n'](_0x1d7c1f(0x2cb),[_0x322496]);txn[_0x1d7c1f(0x248)](_0x1d7c1f(0x54d),_0x322496),txn[_0x1d7c1f(0x714)](()=>this['_n']('txnDone',[_0x289986['hook']])),txn['onUndo'](()=>this['_n']('txnUndone',[_0x289986[_0x1d7c1f(0x202)]]));return;}return this[_0x1d7c1f(0x7ea)]['_settleWrite'](this['_n'](_0x1d7c1f(0x248),[_0x322496]));}async[_0x72dbb(0x277)](_0x28d5f5,_0x10bb4c={}){const _0x163b43=_0x72dbb;return this['_n'](_0x163b43(0x277),[_0x28d5f5,_0x10bb4c],![]);}['getBlobStatus'](_0x68642c){const _0x55d2fb=_0x72dbb;return this['_n'](_0x55d2fb(0x819),[_0x68642c],![]);}[_0x72dbb(0x319)](){return this['_n']('listBlobStatus',[],![]);}[_0x72dbb(0x636)](_0x49d5f8){const {minAgeMs:_0x34bfd0}=_0x5438b0(_0x49d5f8);return this['_n']('gcOrphanedBlobs',[_0x34bfd0??null]);}['registerExtractor'](_0x17b1c9,_0x469eb4){const _0xe1dffb=_0x72dbb;if(typeof _0x469eb4!==_0xe1dffb(0x6a3))throw new _0x1c3948(_0xe1dffb(0x2bb),_0xe1dffb(0x5da));const _0x23fd84=this['_n'](_0xe1dffb(0x45f),[_0x17b1c9,_0x469eb4]);return()=>this['_n'](_0xe1dffb(0x60b),[_0x23fd84]);}async[_0x72dbb(0x3a7)](_0xb80b6){const _0x590655=_0x72dbb;return _0xb80b6=_0x5438b0(_0xb80b6),this['_n'](_0x590655(0x3a7),[_0xb80b6]);}async[_0x72dbb(0x5e1)](_0x6fef40){const _0x510eb3=_0x72dbb,{peerIds:_0x33cede}=_0x5438b0(_0x6fef40);return this['_n'](_0x510eb3(0x5e1),[_0x33cede??null]);}[_0x72dbb(0x1b6)](_0x4caf30){const _0x30f754=_0x72dbb;if(typeof _0x4caf30!=='string')return require$$4[_0x30f754(0x278)](this[_0x30f754(0x59b)],_0x4caf30[_0x30f754(0x8b5)](0x0,0x2),_0x4caf30['slice'](0x2));return this['_n'](_0x30f754(0x4f1),[_0x4caf30],![]);}get[_0x72dbb(0x59b)](){const _0x33a66d=_0x72dbb;return this['_n'](_0x33a66d(0x612),[],![]);}}return files={'OKDBFiles':_0x373686},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x267155=_0x3e8e44;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x10d3b4}=requireErrors(),_0x2977b5=requireBridge(),_0x344e15=new Set(['embedder',_0x267155(0x43f),_0x267155(0x6f5),_0x267155(0x34d)]),_0x4dfc1d=new Set([_0x267155(0x2eb),_0x267155(0x3ce),_0x267155(0x65d)]),_0x47c405=[_0x267155(0x460),'patchConfig',_0x267155(0x481),'assertStartAllowed',_0x267155(0x1eb),'stop',_0x267155(0x808)],_0x2af8a9={'embedder':new Set([_0x267155(0x65d),_0x267155(0x82f)])},_0x30b3f2=new Set(['materializer','processor',_0x267155(0x65a)]);class _0x484507{constructor(_0x2e87df,_0xd16f85,_0x32b58f,_0x41d4fd){const _0x37fb4b=_0x267155;this[_0x37fb4b(0x4ae)]=_0x2e87df,this[_0x37fb4b(0x868)]=_0xd16f85,this[_0x37fb4b(0x576)]=_0x32b58f,this[_0x37fb4b(0x781)]=_0x41d4fd,this['engineType']=_0x32b58f;}[_0x267155(0x4b6)](){const _0x9fe921=_0x267155;return this[_0x9fe921(0x4ae)]['_n'](_0x9fe921(0x3ce),[this[_0x9fe921(0x576)],this[_0x9fe921(0x781)]],![]);}get['doc'](){const _0x26f9ac=_0x267155;return this[_0x26f9ac(0x4b6)]()[_0x26f9ac(0x5f8)];}get[_0x267155(0x271)](){const _0x56f031=_0x267155,_0xb894bb=this[_0x56f031(0x4b6)]()[_0x56f031(0x2b4)];return _0xb894bb?this[_0x56f031(0x4ae)][_0x56f031(0x7ea)]['_envs'][_0x56f031(0x212)](_0xb894bb):undefined;}get[_0x267155(0x86f)](){const _0x37e310=_0x267155;return this[_0x37e310(0x4b6)]()['docEntry'];}get[_0x267155(0x22a)](){const _0x308425=_0x267155;return this[_0x308425(0x4b6)]()[_0x308425(0x22a)];}get[_0x267155(0x46e)](){const _0x3ce13d=_0x267155;return this[_0x3ce13d(0x4b6)]()['isRunning'];}get[_0x267155(0x2fe)](){const _0x44c37c=_0x267155;return this[_0x44c37c(0x4b6)]()[_0x44c37c(0x2fe)];}get['reason'](){const _0x268b84=_0x267155;return this['_info']()[_0x268b84(0x388)];}get['lastError'](){const _0x59c7b3=_0x267155,_0x290cd4=this['_info']()[_0x59c7b3(0x675)];return _0x290cd4?Object['assign'](new Error(_0x290cd4[_0x59c7b3(0x412)]),{'code':_0x290cd4[_0x59c7b3(0x42b)]}):null;}get[_0x267155(0x5c5)](){const _0x153928=_0x267155;return this[_0x153928(0x4b6)]()[_0x153928(0x5c5)];}get[_0x267155(0x8a2)](){const _0x13a093=_0x267155;return this[_0x13a093(0x4ae)][_0x13a093(0x882)][_0x13a093(0x212)](this[_0x13a093(0x576)])??null;}get['api'](){const _0x49ab14=_0x267155;if(!this[_0x49ab14(0x4b6)]()[_0x49ab14(0x70a)])return null;const _0x32d68b=this;return new Proxy({},{'get'(_0x3bdfdd,_0x3179a4){const _0x31d6de=_0x49ab14;if(typeof _0x3179a4==='symbol'||_0x3179a4===_0x31d6de(0x8b4))return undefined;if(_0x2af8a9[_0x32d68b[_0x31d6de(0x576)]]&&_0x2af8a9[_0x32d68b[_0x31d6de(0x576)]][_0x31d6de(0x764)](_0x3179a4))return _0x32d68b['_facade']['_n']('apiCall',[_0x32d68b[_0x31d6de(0x576)],_0x32d68b[_0x31d6de(0x781)],_0x3179a4,[]],![])[_0x31d6de(0x37e)];if(_0x32d68b[_0x31d6de(0x576)]===_0x31d6de(0x43f)&&_0x3179a4===_0x31d6de(0x85a))return async(_0x3de7e6={})=>{const _0x3c17c0=_0x31d6de,_0x9743f4=(_0x65163c,..._0x38e3ea)=>_0x32d68b[_0x3c17c0(0x4ae)]['_n'](_0x3c17c0(0x71e),[_0x32d68b[_0x3c17c0(0x576)],_0x32d68b['name'],_0x65163c,_0x38e3ea],!![])[_0x3c17c0(0x37e)],_0x135766=_0x9743f4(_0x3c17c0(0x76b),_0x3de7e6??{}),_0x336531=Date[_0x3c17c0(0x590)]();for(;;){const _0x3c91d9=await _0x32d68b[_0x3c17c0(0x4ae)][_0x3c17c0(0x7ea)][_0x3c17c0(0x19f)](()=>_0x9743f4('flushPoll'));if(_0x3c91d9['cursor']>=_0x3c91d9['head'])return;Date['now']()-_0x336531>=_0x135766&&_0x9743f4(_0x3c17c0(0x217),_0x3de7e6??{},_0x3c91d9),await new Promise(_0x287f14=>setTimeout(_0x287f14,0x3));}};return(..._0x4e58b0)=>{const _0x27198c=_0x31d6de,_0x117bed=()=>_0x32d68b[_0x27198c(0x4ae)]['_n'](_0x27198c(0x71e),[_0x32d68b[_0x27198c(0x576)],_0x32d68b['name'],_0x3179a4,_0x4e58b0],!![]),_0x34153f=_0x4762f4=>{const _0x49b61f=_0x27198c;if(_0x4762f4&&_0x4762f4[_0x49b61f(0x55c)])throw new TypeError(_0x49b61f(0x86a)+_0x3179a4+'\x27');return _0x4762f4['value'];};if(_0x344e15[_0x27198c(0x764)](_0x32d68b[_0x27198c(0x576)])&&!_0x4dfc1d['has'](_0x3179a4)){const _0xb5980f=_0x32d68b[_0x27198c(0x4ae)][_0x27198c(0x7ea)];return _0xb5980f[_0x27198c(0x468)](()=>_0xb5980f['_macro'](_0x117bed))[_0x27198c(0x8b4)](_0x34153f);}if(_0x30b3f2[_0x27198c(0x764)](_0x32d68b[_0x27198c(0x576)]))try{return Promise[_0x27198c(0x3e4)](_0x34153f(_0x117bed()));}catch(_0x32d32a){return Promise[_0x27198c(0x458)](_0x32d32a);}return _0x34153f(_0x117bed());};}});}async['load'](_0x1bbc54={}){const _0x293412=_0x267155;return await this['_facade'][_0x293412(0x5e8)]('load',[this['type'],this['name'],_0x1bbc54]),this;}async[_0x267155(0x40c)](){const _0x15f37d=_0x267155;await this['_facade'][_0x15f37d(0x5e8)](_0x15f37d(0x322),[this['type'],this[_0x15f37d(0x781)]]);}async['stop'](_0x4b7461={}){const _0x373161=_0x267155;await this[_0x373161(0x4ae)][_0x373161(0x5e8)]('engineStop',[this['type'],this[_0x373161(0x781)],_0x4b7461]);}async[_0x267155(0x664)](_0x3f7c9f={}){const _0xabb90f=_0x267155;return await this['_facade'][_0xabb90f(0x5e8)]('patchDeclaration',[this[_0xabb90f(0x576)],this[_0xabb90f(0x781)],_0x3f7c9f]),this;}async['uninstall'](){const _0x1609cb=_0x267155;await this[_0x1609cb(0x4ae)][_0x1609cb(0x5e8)](_0x1609cb(0x1c4),[this[_0x1609cb(0x576)],this['name']]);}}class _0xe82147{constructor(_0x553c53,_0x58d599=null,_0x2cd425=null){const _0x2ffb7e=_0x267155;this[_0x2ffb7e(0x7ea)]=_0x553c53,this[_0x2ffb7e(0x370)]=_0x58d599,this['isOrchestrator']=_0x58d599===null,this[_0x2ffb7e(0x490)]=_0x2cd425||this,this[_0x2ffb7e(0x882)]=this[_0x2ffb7e(0x490)]===this?_0x27efdb(this):this['_root']['drivers'],this[_0x2ffb7e(0x5b0)]=new Map();}['_n'](_0x27342b,_0x5a1d76,_0x18e4ef=!![]){const _0x223b46=_0x267155;return this[_0x223b46(0x7ea)][_0x223b46(0x8ac)](_0x223b46(0x873),this['envName'],_0x27342b,_0x5a1d76,_0x18e4ef);}[_0x267155(0x5e8)](_0x8683a7,_0x395c15){const _0xd76c79=_0x267155;return this[_0xd76c79(0x7ea)][_0xd76c79(0x65f)](_0xd76c79(0x873),this[_0xd76c79(0x370)],_0x8683a7,_0x395c15,!![]);}get['env'](){const _0xa2ac79=_0x267155;return this[_0xa2ac79(0x370)]?this[_0xa2ac79(0x7ea)][_0xa2ac79(0x2a8)](this[_0xa2ac79(0x370)]):null;}[_0x267155(0x78b)](_0x4f9c18){const _0x53f0cb=_0x267155;if(!_0x4f9c18)return null;let _0xbdebd5=this['_handles'][_0x53f0cb(0x212)](_0x4f9c18[_0x53f0cb(0x868)]);return!_0xbdebd5&&(_0xbdebd5=new _0x484507(this,_0x4f9c18[_0x53f0cb(0x868)],_0x4f9c18[_0x53f0cb(0x576)],_0x4f9c18[_0x53f0cb(0x781)]),this[_0x53f0cb(0x5b0)][_0x53f0cb(0x280)](_0x4f9c18[_0x53f0cb(0x868)],_0xbdebd5)),_0xbdebd5;}[_0x267155(0x268)](_0x2c81af,_0x413ab9){const _0x8ca731=_0x267155;if(!_0x2c81af||typeof _0x2c81af!==_0x8ca731(0x7f4))throw new _0x10d3b4(_0x8ca731(0x410),_0x8ca731(0x29a),{'type':_0x2c81af});if(!_0x413ab9||typeof _0x413ab9!==_0x8ca731(0x677))throw new _0x10d3b4('Engine\x20driver\x20for\x20\x22'+_0x2c81af+_0x8ca731(0x4c6),_0x8ca731(0x6d4),{'type':_0x2c81af});if(typeof _0x413ab9[_0x8ca731(0x40c)]!=='function')throw new _0x10d3b4(_0x8ca731(0x613)+_0x2c81af+'\x22\x20must\x20have\x20a\x20start()\x20method',_0x8ca731(0x2d2),{'type':_0x2c81af});const _0x7be0b3=this['_root'];if(_0x7be0b3['drivers'][_0x8ca731(0x764)](_0x2c81af))throw new _0x10d3b4('Engine\x20driver\x20already\x20registered:\x20\x22'+_0x2c81af+'\x22',_0x8ca731(0x398),{'type':_0x2c81af});const _0x1386d7=_0x2977b5[_0x8ca731(0x4f0)](_0x413ab9,this[_0x8ca731(0x7ea)]),_0x2f5965=_0x47c405[_0x8ca731(0x656)](_0x38c87f=>typeof _0x413ab9[_0x38c87f]===_0x8ca731(0x6a3)),_0x182c12=_0x413ab9['docs']&&typeof _0x413ab9[_0x8ca731(0x288)]==='object'?_0x413ab9['docs']:{};this[_0x8ca731(0x7ea)][_0x8ca731(0x8ac)](_0x8ca731(0x873),null,_0x8ca731(0x268),[_0x2c81af,{'$id':_0x1386d7,'has':_0x2f5965,'docs':_0x182c12}]),_0x7be0b3[_0x8ca731(0x882)][_0x8ca731(0x80e)](_0x2c81af,_0x413ab9);}get[_0x267155(0x1cc)](){const _0x3d511b=_0x267155;return this['okdb']['_call']('engines',null,_0x3d511b(0x510),[],![]);}get[_0x267155(0x6c1)](){const _0x21806e=this;return{get '_started'(){const _0x3088b9=_0x206c;return _0x21806e[_0x3088b9(0x1cc)];}};}[_0x267155(0x511)](_0x533f37){const _0x48f75e=_0x267155;if(!_0x533f37||typeof _0x533f37!==_0x48f75e(0x677))throw new _0x10d3b4(_0x48f75e(0x71d),_0x48f75e(0x591));if(!_0x533f37['id']||typeof _0x533f37['id']!==_0x48f75e(0x7f4))throw new _0x10d3b4(_0x48f75e(0x509),_0x48f75e(0x591));if(![_0x48f75e(0x256),'pipeline']['includes'](_0x533f37[_0x48f75e(0x233)]))throw new _0x10d3b4(_0x48f75e(0x765)+_0x533f37['id'],_0x48f75e(0x591));if(typeof _0x533f37['build']!==_0x48f75e(0x6a3))throw new _0x10d3b4(_0x48f75e(0x570)+_0x533f37['id'],_0x48f75e(0x591));const _0x359552=this[_0x48f75e(0x7ea)],_0x4cba7d=typeof _0x533f37[_0x48f75e(0x31e)]===_0x48f75e(0x6a3);return this['_n']('registerTemplate',[{'id':_0x533f37['id'],'kind':_0x533f37[_0x48f75e(0x233)],'family':_0x533f37['family']??null,'engineType':_0x533f37['engineType']??null,'pipelineFamily':_0x533f37['pipelineFamily']??null,'recommended':_0x533f37['recommended']===!![],'summary':_0x533f37[_0x48f75e(0x5c0)]??null,'description':_0x533f37['description']??null,'inputSchema':_0x4cba7d?null:_0x533f37['inputSchema']??null,'inputSchemaFn':_0x4cba7d?()=>_0x533f37[_0x48f75e(0x31e)](_0x359552):null,'defaults':_0x533f37['defaults']??null,'notes':Array[_0x48f75e(0x63d)](_0x533f37[_0x48f75e(0x272)])?_0x533f37[_0x48f75e(0x272)]:[],'links':Array['isArray'](_0x533f37[_0x48f75e(0x6d3)])?_0x533f37[_0x48f75e(0x6d3)]:[],'build':(_0x5a7bdc,_0xdfd108)=>_0x533f37[_0x48f75e(0x2ba)](_0x5a7bdc??{},{'okdb':_0x359552,'envName':_0xdfd108??null})}],![]);}[_0x267155(0x545)](_0x561c1d){const _0x4e833d=_0x267155;return this['_n'](_0x4e833d(0x545),[_0x561c1d??null],![]);}[_0x267155(0x456)](_0x60479f){const _0x131488=_0x267155;return this['_n'](_0x131488(0x456),[_0x60479f],![]);}[_0x267155(0x5b6)](_0x30ab22,_0x109771,_0x270366){const _0x54136b=_0x267155;return this['_n'](_0x54136b(0x5b6),[_0x30ab22,_0x109771,_0x270366??this[_0x54136b(0x370)]],![]);}[_0x267155(0x2ff)](){const _0x56338e=_0x267155;return this['_n'](_0x56338e(0x2ff),[],![]);}async['start'](){const _0x206214=_0x267155;return this[_0x206214(0x5e8)]('start',[]);}async['stop'](){const _0x11d415=_0x267155;return this[_0x11d415(0x5e8)](_0x11d415(0x8a0),[]);}async[_0x267155(0x639)](_0xd175ac,_0x51cd0e,_0x512252={},_0x1a86f6={},_0x15beb5={}){const _0x27294f=_0x267155;return this[_0x27294f(0x78b)](await this['_nm'](_0x27294f(0x639),[_0xd175ac,_0x51cd0e,_0x512252,_0x1a86f6,_0x15beb5]));}async[_0x267155(0x706)](_0x3a2bf0,_0x585ef3,_0x709ca={},_0x45e7d0={},_0x5c5d96={}){const _0x48990f=_0x267155;return this[_0x48990f(0x78b)](await this['_nm'](_0x48990f(0x706),[_0x3a2bf0,_0x585ef3,_0x709ca,_0x45e7d0,_0x5c5d96]));}[_0x267155(0x785)](_0x4a0c64,_0x4ac2ca){return this['_wrap'](this['_n']('getEngine',[_0x4a0c64,_0x4ac2ca],![]));}[_0x267155(0x4bf)](_0x3e7e38,_0x11fae2){const _0x3445a2=_0x267155;return this[_0x3445a2(0x78b)](this['_n'](_0x3445a2(0x4bf),[_0x3e7e38,_0x11fae2],![]));}['list'](_0x8ed929){const _0x302917=_0x267155;return this['_n'](_0x302917(0x41d),[_0x8ed929??null],![])[_0x302917(0x255)](_0x15427c=>this['_wrap'](_0x15427c));}async[_0x267155(0x754)](_0x3f5f24,_0x104106){const _0x139c48=_0x267155;return this[_0x139c48(0x78b)](await this['_nm'](_0x139c48(0x754),[_0x3f5f24,_0x104106]));}async['uninstallEngine'](_0xe6f575,_0x43b5c0){const _0x1c9152=_0x267155;return this[_0x1c9152(0x5b0)][_0x1c9152(0x588)](_0xe6f575+':'+_0x43b5c0),this['_nm']('uninstallEngine',[_0xe6f575,_0x43b5c0]);}async['startNewEnginesFromSync'](_0x345cb8){const _0x5b9504=_0x267155;return this[_0x5b9504(0x5e8)](_0x5b9504(0x8ab),[_0x345cb8]);}async['bootSyncedEngines'](){const _0x6fabad=_0x267155;return this['_nm'](_0x6fabad(0x1d0),[]);}}function _0x27efdb(_0x136808){const _0x4efb12=_0x267155,_0x3b5fe7=new Map();return{'has':_0x504300=>_0x3b5fe7[_0x4efb12(0x764)](_0x504300)||_0x136808[_0x4efb12(0x7ea)]['_call'](_0x4efb12(0x873),null,_0x4efb12(0x60d),[_0x504300],![]),'get':_0x4bef31=>_0x3b5fe7[_0x4efb12(0x212)](_0x4bef31),'set':()=>{const _0x121af8=_0x4efb12;throw new _0x10d3b4(_0x121af8(0x318),'BAD_PARAM');},'_set':(_0x5bc381,_0x176d0a)=>_0x3b5fe7[_0x4efb12(0x280)](_0x5bc381,_0x176d0a),'keys':()=>_0x3b5fe7[_0x4efb12(0x362)](),'entries':()=>_0x3b5fe7['entries'](),'values':()=>_0x3b5fe7[_0x4efb12(0x77f)](),get 'size'(){const _0x3c4eb0=_0x4efb12;return _0x3b5fe7[_0x3c4eb0(0x7a1)];},[Symbol['iterator']]:()=>_0x3b5fe7[Symbol[_0x4efb12(0x1c7)]]()};}class _0x369284{constructor(_0x5002a3,_0x327bb1=null){const _0x456805=_0x267155;this['okdb']=_0x5002a3,this[_0x456805(0x370)]=_0x327bb1;}['_n'](_0x5b9c14,_0x9d95f6,_0x21c112=!![]){const _0x129fcf=_0x267155;return this[_0x129fcf(0x7ea)]['_call'](_0x129fcf(0x5a0),this[_0x129fcf(0x370)],_0x5b9c14,_0x9d95f6,_0x21c112);}[_0x267155(0x5e8)](_0x4e34ef,_0x2aea70){const _0x163d48=_0x267155;return this['okdb'][_0x163d48(0x65f)]('pipelines',this[_0x163d48(0x370)],_0x4e34ef,_0x2aea70,!![]);}get['isCoordinator'](){const _0x337983=_0x267155;return this[_0x337983(0x370)]===null;}async[_0x267155(0x46f)](_0x1ccb26){const _0x520887=_0x267155;return this['_n'](_0x520887(0x46f),[_0x1ccb26]);}async[_0x267155(0x212)](_0x361eb4,_0x557c31){const _0x9d746e=_0x267155;return this['_n'](_0x9d746e(0x212),[_0x361eb4,_0x557c31??null],![]);}async[_0x267155(0x7be)](_0x179c57,_0x446560){return this['_n']('getRecord',[_0x179c57,_0x446560??null],![]);}async[_0x267155(0x41d)](_0x2a6e65){const _0x1bc10f=_0x267155;return this['_n'](_0x1bc10f(0x41d),[_0x2a6e65??null],![]);}async[_0x267155(0x392)](_0x5a0629={}){const _0x265d0d=_0x267155;return this['_n'](_0x265d0d(0x392),[_0x5a0629?.[_0x265d0d(0x370)]??null],![]);}[_0x267155(0x460)](_0x3b5f07,_0x3a3be2){return this['_n']('validate',[_0x3b5f07,_0x3a3be2??null],![]);}async[_0x267155(0x239)](_0x4639e4){const _0x465e91=_0x267155;return this[_0x465e91(0x5e8)](_0x465e91(0x239),[_0x4639e4]);}async['update'](_0x50cdd4,_0x266419){const _0x1760c0=_0x267155;return this['_nm'](_0x1760c0(0x625),[_0x50cdd4,_0x266419]);}async['stop'](_0x431223){const _0x730d24=_0x267155;return this['_nm'](_0x730d24(0x8a0),[_0x431223]);}async[_0x267155(0x26a)](_0x14a63a){const _0x9a140a=_0x267155;if(!_0x14a63a||typeof _0x14a63a!=='object'||!_0x14a63a[_0x9a140a(0x781)]||!_0x14a63a['engines'])return _0x14a63a;for(let _0xb8f092=0x0;_0xb8f092<0x3;_0xb8f092++)await new Promise(_0xf60247=>setImmediate(_0xf60247));try{const _0x3ee283=this[_0x9a140a(0x370)]!==null?await this['get'](_0x14a63a['name']):_0x14a63a['env']?await this[_0x9a140a(0x212)](_0x14a63a[_0x9a140a(0x2a8)],_0x14a63a[_0x9a140a(0x781)]):null;return _0x3ee283||_0x14a63a;}catch{return _0x14a63a;}}async[_0x267155(0x40c)](_0x56b881){const _0x38d97c=_0x267155;return this[_0x38d97c(0x26a)](await this[_0x38d97c(0x5e8)](_0x38d97c(0x40c),[_0x56b881]));}async[_0x267155(0x754)](_0x30762d){const _0x5771b=_0x267155;return this[_0x5771b(0x26a)](await this[_0x5771b(0x5e8)](_0x5771b(0x754),[_0x30762d]));}async[_0x267155(0x7b0)](_0x1f3fc5){const _0x23dd9b=_0x267155;return this['_nm'](_0x23dd9b(0x7b0),[_0x1f3fc5]);}async['replaceMember'](_0x43b897,_0x5da900,_0x45cc5d){const _0x4947f3=_0x267155;return this['_nm'](_0x4947f3(0x34b),[_0x43b897,_0x5da900,_0x45cc5d]);}async[_0x267155(0x248)](_0x380d1b){const _0x1376c8=_0x267155;return this['_nm'](_0x1376c8(0x248),[_0x380d1b]);}async['stopAll'](){return this['_nm']('stopAll',[]);}async[_0x267155(0x3d2)](){const _0x78c81e=_0x267155;return this[_0x78c81e(0x5e8)](_0x78c81e(0x3d2),[]);}[_0x267155(0x5be)](_0x363129,_0x5eddf1){const _0x228cde=_0x267155;return this['_n'](_0x228cde(0x5be),[_0x363129,_0x5eddf1],![]);}}return engines={'OKDBEngines':_0xe82147,'OKDBPipelines':_0x369284,'OKDBEngineHandle':_0x484507},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x2b176c=_0x3e8e44;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x511d87}=requireErrors(),_0x22f6f5=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x5de256{constructor(_0x2a4740,_0x45ef5d=null){const _0x25708f=_0x206c;this[_0x25708f(0x7ea)]=_0x2a4740,this[_0x25708f(0x370)]=_0x45ef5d??_0x25708f(0x1a3);}get[_0x2b176c(0x2a8)](){const _0x5b9f4f=_0x2b176c;return this[_0x5b9f4f(0x7ea)]['_envs']['get'](this[_0x5b9f4f(0x370)])??null;}['_n'](_0x534695,_0x1a0e23=[],_0x216ff1=!![]){const _0x322925=_0x2b176c;try{return this[_0x322925(0x7ea)]['_call'](_0x322925(0x4da),this['envName'],_0x534695,_0x1a0e23,_0x216ff1);}catch(_0x35595f){throw _0x343d2f(_0x35595f);}}async[_0x2b176c(0x5e8)](_0x5d96a8,_0x37c674=[]){const _0x25e317=_0x2b176c;try{return await this[_0x25e317(0x7ea)][_0x25e317(0x65f)](_0x25e317(0x4da),this[_0x25e317(0x370)],_0x5d96a8,_0x37c674,!![]);}catch(_0xdbe1f0){throw _0x343d2f(_0xdbe1f0);}}async[_0x2b176c(0x41d)](){const _0x4cf636=_0x2b176c;return this['_n'](_0x4cf636(0x41d),[],![]);}async[_0x2b176c(0x212)](_0x33847b){return this['_n']('get',[_0x33847b],![]);}async[_0x2b176c(0x239)](_0xd1deb8){return this['_n']('create',[_0xd1deb8]);}async[_0x2b176c(0x625)](_0x39c7a5,_0x489b6b={}){const _0x1b487c=_0x2b176c;return this['_n'](_0x1b487c(0x625),[_0x39c7a5,_0x489b6b]);}async['remove'](_0x492a55){const _0x475e4a=_0x2b176c;return this['_n'](_0x475e4a(0x248),[_0x492a55]);}async[_0x2b176c(0x4d5)](_0x2e3b36){const {functionName:functionName=null}=_0x511d87(_0x2e3b36);return this['_n']('listRuns',[{'functionName':functionName}],![]);}async[_0x2b176c(0x802)](_0x92fe4){const _0x54f604=_0x2b176c;return this['_n'](_0x54f604(0x802),[_0x92fe4],![]);}async[_0x2b176c(0x58a)](_0x3ff1d3){const _0x1546c5=_0x2b176c;return _0x3ff1d3=_0x511d87(_0x3ff1d3,'run'),this['_n'](_0x1546c5(0x58a),[_0x3ff1d3]);}async[_0x2b176c(0x865)](_0x8c0ec3,_0x4d6434=null,_0x15433a={}){const _0x5101cb=_0x2b176c,_0x240c22={..._0x15433a},_0x5d094c=_0x240c22[_0x5101cb(0x82d)];if(_0x5d094c)_0x240c22['aborted']=!!_0x5d094c[_0x5101cb(0x621)];delete _0x240c22[_0x5101cb(0x82d)];const _0x4b534f=await this[_0x5101cb(0x5e8)]('runStart',[_0x8c0ec3,_0x4d6434,_0x240c22]),_0xb70497=this['okdb'],_0x26668e=()=>_0xb70497[_0x5101cb(0x841)][_0x5101cb(0x3b8)]();if(_0x5d094c&&typeof _0x5d094c[_0x5101cb(0x321)]===_0x5101cb(0x6a3))_0x5d094c[_0x5101cb(0x321)]('abort',_0x26668e,{'once':!![]});let _0x3d40e9=![];try{for(;;){const _0x55f51f=_0xb70497[_0x5101cb(0x841)][_0x5101cb(0x442)](_0x22f6f5);let _0x58f492;try{_0x58f492=await _0xb70497[_0x5101cb(0x65f)](_0x5101cb(0x4da),this[_0x5101cb(0x370)],_0x5101cb(0x5d8),[_0x4b534f,!!_0x5d094c?.[_0x5101cb(0x621)]],![],![]);}catch(_0x1819e3){_0x3d40e9=!![];throw _0x343d2f(_0x1819e3);}if(!_0x58f492||_0x58f492[_0x5101cb(0x604)]!==!![])return _0x3d40e9=!![],_0xb70497[_0x5101cb(0x841)][_0x5101cb(0x3b8)](),_0x58f492;if(_0x58f492[_0x5101cb(0x403)])_0xb70497[_0x5101cb(0x841)]['wake']();await _0x55f51f;}}finally{if(_0x5d094c&&typeof _0x5d094c[_0x5101cb(0x66f)]===_0x5101cb(0x6a3))_0x5d094c['removeEventListener'](_0x5101cb(0x86e),_0x26668e);if(!_0x3d40e9)try{_0xb70497[_0x5101cb(0x8ac)](_0x5101cb(0x4da),this['envName'],_0x5101cb(0x240),[_0x4b534f],![]);}catch{}}}async[_0x2b176c(0x474)](_0x33faef={},_0x3c8410=null,_0x16ac15={}){const _0xbef31a=_0x2b176c;return this[_0xbef31a(0x5e8)](_0xbef31a(0x474),[_0x33faef,_0x3c8410,_0x16ac15]);}async[_0x2b176c(0x8a0)](){}}function _0x343d2f(_0x22a71e){const _0x1494af=_0x2b176c;if(_0x22a71e&&_0x22a71e[_0x1494af(0x415)]&&_0x22a71e[_0x1494af(0x415)][_0x1494af(0x72f)])_0x22a71e[_0x1494af(0x3e2)]=_0x22a71e[_0x1494af(0x415)]['runRecord'];return _0x22a71e;}return functions={'OKDBFunctions':_0x5de256},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x5a9e15=_0x3e8e44;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x35952b}=requireErrors();class _0x245931{constructor(_0x9afc4d,_0x1a56c9){const _0x3ba24e=_0x206c;this[_0x3ba24e(0x1c0)]=_0x9afc4d,this[_0x3ba24e(0x353)]=_0x1a56c9;}['_n'](_0xaf5260,_0x7d1e1f=[]){const _0x1f9042=_0x206c;return this[_0x1f9042(0x1c0)]['_n'](_0xaf5260,[this[_0x1f9042(0x353)],..._0x7d1e1f]);}[_0x5a9e15(0x4df)](){const _0x5a1deb=_0x5a9e15;return this['_n'](_0x5a1deb(0x4df));}get[_0x5a9e15(0x6a4)](){const _0x292867=_0x5a9e15;return this['_n'](_0x292867(0x6a4));}['holder'](){const _0x1b477e=_0x5a9e15;return this['_n'](_0x1b477e(0x6c9));}[_0x5a9e15(0x33d)](_0x5c1269){const _0x36290a=_0x5a9e15;return this['_n'](_0x36290a(0x33d),[_0x5c1269]);}async[_0x5a9e15(0x6a2)](){const _0x35f18f=_0x5a9e15;return this['_n'](_0x35f18f(0x6a2));}}class _0xa103df{constructor(_0x197c18,_0x46ffb6,_0x4627bf,_0x48f6a1){const _0x58feba=_0x5a9e15,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x35952b(_0x48f6a1);this[_0x58feba(0x7ea)]=_0x197c18,this[_0x58feba(0x6ab)]=_0x4627bf,this[_0x58feba(0x353)]=_0x197c18[_0x58feba(0x8ac)](_0x58feba(0x228),_0x46ffb6,_0x58feba(0x703),[_0x4627bf,ttlMs,heartbeatMs],![]),this[_0x58feba(0x550)]=_0x46ffb6;}['_n'](_0x51dd20,_0x10169f=[]){const _0xa4b3b4=_0x5a9e15;return this[_0xa4b3b4(0x7ea)]['_call'](_0xa4b3b4(0x228),this[_0xa4b3b4(0x550)],_0x51dd20,_0x10169f,![]);}[_0x5a9e15(0x7db)](_0x4ba430){const _0x1a5270=_0x5a9e15;return this['_n']('key',[this[_0x1a5270(0x353)],_0x4ba430]);}async[_0x5a9e15(0x86d)](_0x5e0911,_0x526634={},_0x47e8df={}){const _0x41b109=_0x5a9e15,_0x28f487=this['_n'](_0x41b109(0x86d),[this[_0x41b109(0x353)],_0x5e0911,_0x526634,_0x47e8df]);return{'acquired':_0x28f487[_0x41b109(0x3b5)],'handle':_0x28f487[_0x41b109(0x198)]==null?null:new _0x245931(this,_0x28f487[_0x41b109(0x198)]),'current':_0x28f487['current']};}[_0x5a9e15(0x66e)](_0x105540){const _0x2c5222=_0x5a9e15;return this['_n'](_0x2c5222(0x66e),[this[_0x2c5222(0x353)],_0x105540]);}[_0x5a9e15(0x41d)](){const _0x2eec0d=_0x5a9e15;return this['_n'](_0x2eec0d(0x41d),[this[_0x2eec0d(0x353)]]);}[_0x5a9e15(0x45b)](_0x4c897d){const _0x198be7=_0x5a9e15;return this['_n'](_0x198be7(0x45b),[this['_id'],_0x4c897d]);}['isWanted'](_0x5bdf45,_0x231c0d=0x3e8){const _0x1d73ce=_0x5a9e15;return this['_n'](_0x1d73ce(0x7c8),[this[_0x1d73ce(0x353)],_0x5bdf45,_0x231c0d]);}}return lock={'NativeLock':_0xa103df,'NativeLockHandle':_0x245931},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x2ca876=_0x3e8e44;if(hasRequiredProcessor)return processor[_0x2ca876(0x7f5)];hasRequiredProcessor=0x1;const _0x48ad69=requireBridge(),{RawDb:_0x2eadfa}=requireRawdb(),{NativeLock:_0x1f063c}=requireLock();function _0x13f734(_0x5d4d87){}class _0x3c1cc1{constructor(_0x451efc){const _0x519902=_0x2ca876;this['env']=_0x451efc,this[_0x519902(0x7ea)]=_0x451efc;try{this['_n'](_0x519902(0x70f),[(_0x2cd527,_0x551ae3)=>{const _0x59bb60=_0x519902,_0x581540=this[_0x59bb60(0x7ea)]['log'],_0x494891=_0x581540?.[_0x2cd527]??_0x581540?.['info'];if(typeof _0x494891===_0x59bb60(0x6a3))_0x494891[_0x59bb60(0x4e9)](_0x581540,_0x551ae3);}],![]);}catch{}}['_n'](_0x199c50,_0x36471b,_0x56059d=!![]){const _0x4ec029=_0x2ca876;return this[_0x4ec029(0x2a8)][_0x4ec029(0x7ea)][_0x4ec029(0x8ac)]('proc',this['env'][_0x4ec029(0x781)],_0x199c50,_0x36471b,_0x56059d);}[_0x2ca876(0x6ee)](_0x24b43c,_0x458fa7={}){const _0x263fb4=_0x2ca876,_0x57371e={..._0x458fa7};if(typeof _0x57371e['handler']===_0x263fb4(0x6a3)&&_0x57371e['module']!=null)throw new Error(_0x263fb4(0x30b)+_0x263fb4(0x1c1));if(typeof _0x57371e[_0x263fb4(0x3f9)]==='string'&&_0x57371e[_0x263fb4(0x2a0)]!=null)throw new Error(_0x263fb4(0x514));if(_0x57371e[_0x263fb4(0x2a0)]!=null){if(!_0x57371e[_0x263fb4(0x2a0)]['path'])throw new Error('processor:\x20module.path\x20is\x20required');const _0x1c99de=_0x57371e[_0x263fb4(0x2a0)][_0x263fb4(0x7f8)]??_0x57371e[_0x263fb4(0x2a0)][_0x263fb4(0x55e)]??_0x263fb4(0x471),_0x1e1394=require[_0x263fb4(0x3e4)](_0x57371e[_0x263fb4(0x2a0)][_0x263fb4(0x7b1)]),_0x2ee27a=require(_0x1e1394),_0x7f9655=_0x2ee27a[_0x1c99de]??_0x2ee27a[_0x263fb4(0x608)]??_0x2ee27a;if(typeof _0x7f9655!=='function')throw new Error(_0x263fb4(0x44a)+_0x57371e[_0x263fb4(0x2a0)][_0x263fb4(0x7b1)]+_0x263fb4(0x37d)+_0x1c99de+_0x263fb4(0x7ca));this[_0x263fb4(0x2a8)][_0x263fb4(0x7ea)][_0x263fb4(0x771)](_0x263fb4(0x204),'registerModule',[_0x1e1394,_0x1c99de,_0x7f9655]),_0x57371e[_0x263fb4(0x2a0)]={'path':_0x1e1394,'export':_0x1c99de};}if(_0x57371e[_0x263fb4(0x724)]!=null){if(typeof _0x57371e['quantum'][_0x263fb4(0x2a0)]!==_0x263fb4(0x7f4))throw new Error('processor:\x20quantum.module\x20must\x20be\x20a\x20string');const _0x5c4385=require[_0x263fb4(0x3e4)](_0x57371e['quantum']['module']),_0x13196e=require(_0x5c4385),_0x2331b2=_0x57371e[_0x263fb4(0x724)]['exportName'],_0x1f6087=_0x2331b2?_0x13196e[_0x2331b2]:_0x13196e[_0x263fb4(0x608)]??_0x13196e;if(typeof _0x1f6087==='function'){const _0x5b6374=_0x2331b2?_0x57371e['quantum'][_0x263fb4(0x2a0)]+'#'+_0x2331b2:_0x57371e['quantum']['module'];this[_0x263fb4(0x2a8)][_0x263fb4(0x7ea)]['_staticCall'](_0x263fb4(0x204),_0x263fb4(0x301),[_0x5b6374,_0x1f6087]);}_0x57371e[_0x263fb4(0x724)]={..._0x57371e[_0x263fb4(0x724)]};}_0x57371e[_0x263fb4(0x270)]!=null&&typeof _0x57371e[_0x263fb4(0x270)]===_0x263fb4(0x677)&&(_0x57371e[_0x263fb4(0x270)]={'$payload':_0x48ad69[_0x263fb4(0x6d5)](_0x57371e['payload'],this[_0x263fb4(0x2a8)]['okdb'])});if(_0x57371e[_0x263fb4(0x7b0)]!=null&&typeof _0x57371e[_0x263fb4(0x7b0)]!==_0x263fb4(0x6a3))throw new Error(_0x263fb4(0x57d));const _0x28b5d4=this['_n']('register',[_0x24b43c??null,_0x57371e]);return this[_0x263fb4(0x47f)](_0x28b5d4['id'],_0x28b5d4[_0x263fb4(0x46b)]);}[_0x2ca876(0x47f)](_0x34d568,_0x340e0d){const _0x4b693f=_0x2ca876,_0x6165c0=this,_0x381669=async()=>{const _0x4e5056=_0x206c;_0x6165c0['_n'](_0x4e5056(0x7a8),[_0x34d568]);};return _0x381669['id']=_0x34d568,_0x381669[_0x4b693f(0x46b)]=_0x340e0d,_0x381669[_0x4b693f(0x43e)]=()=>_0x340e0d?_0x6165c0['_n'](_0x4b693f(0x44e),[_0x34d568],![]):0x0,_0x381669['status']=()=>_0x6165c0[_0x4b693f(0x212)](_0x34d568),_0x381669[_0x4b693f(0x555)]=_0x381669[_0x4b693f(0x2fe)],_0x381669[_0x4b693f(0x48e)]=()=>_0x6165c0[_0x4b693f(0x48e)](_0x34d568),_0x381669[_0x4b693f(0x418)]=()=>_0x6165c0['resume'](_0x34d568),_0x381669[_0x4b693f(0x734)]=()=>_0x6165c0[_0x4b693f(0x734)](_0x34d568),_0x381669[_0x4b693f(0x3ff)]=()=>_0x6165c0[_0x4b693f(0x3ff)](_0x34d568),_0x381669[_0x4b693f(0x563)]=_0x2bc764=>_0x6165c0['awaitIdle'](_0x34d568,_0x2bc764),_0x381669;}get[_0x2ca876(0x23d)](){const _0x5d4f59=_0x2ca876;try{return this['_n'](_0x5d4f59(0x41d),[],![])[_0x5d4f59(0x255)](_0x315132=>({'id':_0x315132['id']}));}catch{return[];}}async[_0x2ca876(0x573)](_0x5eb6df){const _0x550a4b=_0x2ca876;return new Set(this['_n'](_0x550a4b(0x573),[]));}['resumeAllAfterDrain'](_0x4a6049){return this['_n']('resumeAllAfterDrain',[[..._0x4a6049??[]]]);}get[_0x2ca876(0x6f9)](){const _0x4d8c29=_0x2ca876;return new Set(this['_n'](_0x4d8c29(0x41d),[],![])['filter'](_0x5c0f53=>_0x5c0f53[_0x4d8c29(0x576)]==null)[_0x4d8c29(0x255)](_0xf41338=>_0xf41338['id']));}[_0x2ca876(0x32f)](){}get[_0x2ca876(0x1c0)](){const _0x503dea=_0x2ca876;if(!this[_0x503dea(0x80c)]){const _0x372084=new _0x1f063c(this[_0x503dea(0x2a8)]['okdb'],this[_0x503dea(0x2a8)]['name'],_0x503dea(0x204)),_0x174198=this[_0x503dea(0x2a8)];_0x372084['_db']=()=>new _0x2eadfa(_0x174198,_0x503dea(0x651)),this[_0x503dea(0x80c)]=_0x372084;}return this[_0x503dea(0x80c)];}[_0x2ca876(0x792)](_0x5294c8,_0x6207){const _0x156367=_0x2ca876;return this['_n'](_0x156367(0x8b2),[typeof _0x5294c8==='string'?_0x5294c8:_0x5294c8['id'],_0x6207?.[_0x156367(0x412)]??String(_0x6207??'')]);}get['_stateDb'](){const _0xb3c3ff=_0x2ca876;return this['__stateDb']||(this[_0xb3c3ff(0x569)]=new _0x2eadfa(this[_0xb3c3ff(0x2a8)],'~proc:state'));}get['_registrations'](){const _0x215350=_0x2ca876,_0x56f0de=this,_0x4cd049=_0x157e3b=>{const _0x42440e=_0x206c,_0x58a79c=()=>_0x56f0de['_n'](_0x42440e(0x229),[_0x157e3b],![]);if(!_0x58a79c())return undefined;const _0x230759=_0x51132b=>()=>_0x58a79c()?.[_0x51132b],_0x2d0230={'id':_0x157e3b},_0x2a2b46=(_0xc750d1,_0x35fb3f,_0x9b8336)=>Object['defineProperty'](_0x2d0230,_0xc750d1,{'get':_0x35fb3f,'set':_0x9b8336,'enumerable':!![],'configurable':!![]});return _0x2a2b46('state',_0x230759(_0x42440e(0x5ef))),_0x2a2b46(_0x42440e(0x5a7),_0x230759(_0x42440e(0x5a7))),_0x2a2b46(_0x42440e(0x399),_0x230759(_0x42440e(0x399))),_0x2a2b46(_0x42440e(0x683),_0x230759(_0x42440e(0x683)),_0x52a0bf=>_0x56f0de['_n'](_0x42440e(0x308),[_0x157e3b,_0x52a0bf])),_0x2a2b46(_0x42440e(0x46b),_0x230759(_0x42440e(0x46b))),_0x2a2b46(_0x42440e(0x482),_0x230759(_0x42440e(0x41e)),_0x56e5a4=>_0x56f0de['_n'](_0x42440e(0x49b),[_0x157e3b,!!_0x56e5a4])),_0x2a2b46(_0x42440e(0x5cf),_0x230759(_0x42440e(0x1d1))),_0x2a2b46(_0x42440e(0x546),_0x230759(_0x42440e(0x546))),_0x2a2b46(_0x42440e(0x446),_0x230759(_0x42440e(0x446))),_0x2a2b46(_0x42440e(0x856),_0x230759(_0x42440e(0x661)),_0x156954=>_0x56f0de['_n'](_0x42440e(0x7d7),[_0x157e3b,_0x156954])),_0x2a2b46('meta',()=>_0x56f0de[_0x42440e(0x212)](_0x157e3b)?.[_0x42440e(0x3f1)]),_0x2a2b46(_0x42440e(0x575),()=>_0x58a79c()?.['lockHeld']?{'isHeld':()=>!!_0x58a79c()?.[_0x42440e(0x862)]}:null),_0x2a2b46(_0x42440e(0x2ea),()=>_0x58a79c()?.['pokeHandler']?()=>{}:null),_0x2a2b46('_flushIntervalTimer',()=>_0x58a79c()?.[_0x42440e(0x3b4)]?{}:null),_0x2a2b46(_0x42440e(0x624),()=>_0x58a79c()?.['debounceTimer']?{}:null),_0x2d0230;},_0x4c9524=()=>_0x56f0de['_n'](_0x215350(0x41d),[],![])[_0x215350(0x255)](_0x4f0c80=>_0x4f0c80['id']);return{'get':_0x4e54b8=>_0x4cd049(_0x4e54b8),'has':_0x57600d=>_0x4c9524()['includes'](_0x57600d),get 'size'(){const _0x17dbd9=_0x215350;return _0x4c9524()[_0x17dbd9(0x61b)];},'keys':()=>_0x4c9524()[Symbol[_0x215350(0x1c7)]](),'values':()=>_0x4c9524()['map'](_0x4cd049)[Symbol[_0x215350(0x1c7)]](),'entries':()=>_0x4c9524()[_0x215350(0x255)](_0x4c2f7f=>[_0x4c2f7f,_0x4cd049(_0x4c2f7f)])[Symbol['iterator']](),[Symbol[_0x215350(0x1c7)]]:()=>_0x4c9524()[_0x215350(0x255)](_0x45ce85=>[_0x45ce85,_0x4cd049(_0x45ce85)])[Symbol['iterator']](),'forEach':_0x21e7d7=>_0x4c9524()[_0x215350(0x68f)](_0x1ade39=>_0x21e7d7(_0x4cd049(_0x1ade39),_0x1ade39))};}async['stopAll'](){const _0x74c044=_0x2ca876;return this['_n'](_0x74c044(0x2fd),[]);}[_0x2ca876(0x41d)](){const _0x13cd71=_0x2ca876,_0x2bac34=this['_n'](_0x13cd71(0x41d),[],![]);if(!this[_0x13cd71(0x2a8)][_0x13cd71(0x781)][_0x13cd71(0x747)]('~'))try{const _0x5a7327=this[_0x13cd71(0x2a8)][_0x13cd71(0x7ea)][_0x13cd71(0x3f1)];for(const _0x192a52 of _0x5a7327[_0x13cd71(0x6e0)](this['env']['name'])){for(const _0x1e9f55 of _0x5a7327['listIndexes'](_0x192a52,this[_0x13cd71(0x2a8)][_0x13cd71(0x781)])){const _0x384034=_0x13cd71(0x898)+_0x192a52+':'+_0x1e9f55;_0x2bac34[_0x13cd71(0x491)]({'id':_0x384034,'type':_0x192a52,'mode':_0x13cd71(0x2bd),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x384034,'meta':{'name':_0x384034}});}}}catch{}return _0x2bac34;}['tierList'](){return this['_n']('tierList',[],![]);}['durableTierLag'](){const _0x5ca491=_0x2ca876;return this['_n'](_0x5ca491(0x87e),[],![]);}[_0x2ca876(0x1ec)](){const _0x57dd36=_0x2ca876;return this['_n'](_0x57dd36(0x1ec),[],![]);}[_0x2ca876(0x212)](_0x853b48){const _0x4857b6=_0x2ca876;return this['_n'](_0x4857b6(0x212),[_0x853b48],![]);}[_0x2ca876(0x4ef)](_0x2ea99d){const _0x2b266f=_0x2ca876;return this[_0x2b266f(0x212)](typeof _0x2ea99d===_0x2b266f(0x7f4)?_0x2ea99d:_0x2ea99d['id']);}[_0x2ca876(0x723)](_0x249afe){const _0x1cea1e=_0x2ca876;return this['_n'](_0x1cea1e(0x723),[_0x249afe],![]);}[_0x2ca876(0x5af)](_0x54c3bf){const _0x59b9de=_0x2ca876;return this['_n'](_0x59b9de(0x5af),[_0x54c3bf]);}[_0x2ca876(0x2f6)](_0xbb43ba){return this['_n']('markSnapshotComplete',[_0xbb43ba]);}[_0x2ca876(0x43b)](_0x24ad55){return this['_n']('isSnapshotComplete',[_0x24ad55],![]);}[_0x2ca876(0x465)](_0x3cb457,_0x758ce9){const _0x45b574=_0x2ca876;return this['_n'](_0x45b574(0x465),[_0x3cb457,_0x758ce9]);}async[_0x2ca876(0x563)](_0x1d020e,_0xd5e8fb){const _0x6ff286=_0x2ca876;return this['_n'](_0x6ff286(0x563),[_0x1d020e,_0xd5e8fb??0x7530]);}[_0x2ca876(0x48e)](_0x5a73c2){return this['_n']('pause',[_0x5a73c2]);}[_0x2ca876(0x418)](_0x22731d){return this['_n']('resume',[_0x22731d]);}async[_0x2ca876(0x670)](_0x381c75){const _0x2a6da9=_0x2ca876;return this['_n'](_0x2a6da9(0x670),[_0x381c75]);}['kick'](_0x5ba426){return this['_n']('kick',[_0x5ba426]);}['retry'](_0x1e94c0){return this['_n']('retry',[_0x1e94c0]);}[_0x2ca876(0x754)](_0x1e1d03,_0x4c1ecd={}){const _0x5e2fea=_0x2ca876;return this['_n'](_0x5e2fea(0x754),[_0x1e1d03,_0x4c1ecd]);}async['setMode'](_0x3de608,_0x3f2778,_0x369b76){const _0x1904be=_0x2ca876,[_0x2fc267,_0xdec2d5]=this['_n'](_0x1904be(0x1c2),[_0x3de608,_0x3f2778,_0x369b76]);return{'version':_0x2fc267,'flipClock':_0xdec2d5};}async['snapshotScan'](_0x2d2925,_0x5e52fb,_0x369ca4={}){return this['_n']('snapshotScan',[_0x2d2925,_0x5e52fb,_0x369ca4]);}}_0x3c1cc1[_0x2ca876(0x1a0)]=function _0x4e3593(_0x52073f,_0x4e838f){const _0x38afc8=_0x2ca876;if(typeof _0x52073f!=='string'||!_0x52073f)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x4e838f!==_0x38afc8(0x6a3))throw new Error('registerHandler:\x20fn\x20must\x20be\x20a\x20function');_0x480250(_0x38afc8(0x204),_0x38afc8(0x1a0),[_0x52073f,_0x4e838f]);},_0x3c1cc1[_0x2ca876(0x301)]=function _0x56772c(_0x4839ee,_0x3ac65d){const _0x218999=_0x2ca876;if(typeof _0x4839ee!==_0x218999(0x7f4)||!_0x4839ee)throw new Error(_0x218999(0x5fb));if(typeof _0x3ac65d!=='function')throw new Error(_0x218999(0x5d4));let _0x1003cc=null;_0x480250(_0x218999(0x204),_0x218999(0x301),[_0x4839ee,(_0x1a3c61,_0x504cb6)=>{if(!_0x1003cc)_0x1003cc=_0x3ac65d();return _0x1003cc(_0x1a3c61,_0x504cb6);}]);},_0x3c1cc1[_0x2ca876(0x3b0)]=_0x1c135c=>/closed|not open|released/i[_0x2ca876(0x41b)](String(_0x1c135c)),_0x3c1cc1[_0x2ca876(0x3bd)]=![];function _0x480250(_0x17883c,_0x1155aa,_0x3aa48c){const {staticCall:_0x45bf48}=requireLib();return _0x45bf48(_0x17883c,_0x1155aa,_0x3aa48c);}return processor['exports']=_0x3c1cc1,processor['exports'][_0x2ca876(0x598)]=_0x3c1cc1,processor[_0x2ca876(0x7f5)][_0x2ca876(0x267)]=_0x13f734,processor[_0x2ca876(0x7f5)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1d6b35=_0x3e8e44;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x3e59f7={'PUT':_0x1d6b35(0x3fe),'REMOVE':'remove','INDEX_DROP':_0x1d6b35(0x44d),'INDEX_REGISTER':_0x1d6b35(0x320),'INDEX_RESET':_0x1d6b35(0x25f),'TYPE_REGISTER':_0x1d6b35(0x311),'TYPE_DROP':_0x1d6b35(0x1d9),'FTS_REGISTER':_0x1d6b35(0x69f),'FTS_DROP':_0x1d6b35(0x8a7),'FTS_RESET':_0x1d6b35(0x852),'SCHEMA_SET':_0x1d6b35(0x727),'SCHEMA_DROP':_0x1d6b35(0x4f6),'TTL_SET':_0x1d6b35(0x35b),'TTL_CLEAR':'clearTtl'},_0x33022d={'SYSTEM_READY':_0x1d6b35(0x243),'FIELD_RESOLVER_REGISTERED':_0x1d6b35(0x5c9),'SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':_0x1d6b35(0x30d),'SYSTEM_POKE':_0x1d6b35(0x746),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x1d6b35(0x39e),'SYSTEM_BUS_STATE_CHANGE':_0x1d6b35(0x6f7),'ITEM_CREATE':_0x1d6b35(0x5ba),'ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x1d6b35(0x2e9),'ITEM_PENDING':_0x1d6b35(0x2d4),'INDEX_RESET':'index:reset','INDEX_READY':_0x1d6b35(0x699),'INDEX_PROGRESS':_0x1d6b35(0x2de),'VIEW_PROGRESS':_0x1d6b35(0x831),'INDEX_DROP':'index:drop','INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x1d6b35(0x720),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':_0x1d6b35(0x38e),'SCHEMA_DROP':_0x1d6b35(0x5ce),'UNIQUE_VIOLATION':_0x1d6b35(0x3d7),'UNIQUE_VIOLATION_RESOLVED':_0x1d6b35(0x643),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x1d6b35(0x461),'TXN_START':_0x1d6b35(0x87f),'TXN_END':_0x1d6b35(0x27d),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x1d6b35(0x24c),'TYPE_DROP':_0x1d6b35(0x2f2),'ENV_OPENED':_0x1d6b35(0x8a4),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0x1d6b35(0x535),'TTL_EXPIRED':'ttl:expired','TTL_SET':_0x1d6b35(0x6b6),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':_0x1d6b35(0x488),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x1d6b35(0x3a8),'LICENSE_REMOVED':_0x1d6b35(0x7bf)},_0x14a8c3={'CREATING':_0x1d6b35(0x1fe),'RESETTING':_0x1d6b35(0x45e),'READY':_0x1d6b35(0x854),'DROPPING':_0x1d6b35(0x29d),'WAITING':'waiting','ERROR':_0x1d6b35(0x5cc)},_0x484639={'CREATED':_0x1d6b35(0x7e6),'STARTING':'starting','STARTED':_0x1d6b35(0x4b9),'STOPPING':'stopping','STOPPED':_0x1d6b35(0x5e3)},_0x37a754={'CREATING':_0x1d6b35(0x1fe),'READY':_0x1d6b35(0x854),'HALTED':_0x1d6b35(0x552),'STOPPED':_0x1d6b35(0x5e3),'RESETTING':_0x1d6b35(0x45e)},_0x20b9af=Object[_0x1d6b35(0x75f)]({'POKE':_0x1d6b35(0x761),'DRAIN':_0x1d6b35(0x7f3),'TYPE_DROP':_0x1d6b35(0x721),'PROC':_0x1d6b35(0x1be),'ENV_RELEASE':_0x1d6b35(0x8af)});return okdbEnums={'BUS_EVENTS':_0x20b9af,'CHANGE_ACTIONS':_0x3e59f7,'EVENTS':_0x33022d,'INDEX_STATE':_0x14a8c3,'OKDB_STATE':_0x484639,'VIEW_STATE':_0x37a754},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x12a7c7=_0x3e8e44;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0xa219c0={'SKIP':Symbol['for'](_0x12a7c7(0x7b3))},{OKDBError:_0x29578b}=requireOkdbError(),_0x40461a={'value':null,'done':!![]};class _0x5091d5{constructor(_0x4bfafe){const _0x2578cc=_0x12a7c7;this[_0x2578cc(0x483)]=_0x4bfafe;}get[_0x12a7c7(0x2ed)](){return _0x40461a;}[Symbol[_0x12a7c7(0x1c7)]](){const _0x386dd3=_0x12a7c7;return this[_0x386dd3(0x483)]();}[_0x12a7c7(0x255)](_0x105054){const _0x36c292=this;return new _0x5091d5(()=>{const _0x700bf=_0x206c,_0x3e1a38=_0x36c292[Symbol[_0x700bf(0x1c7)]]();return{'next'(){const _0x7825ae=_0x700bf;for(;;){const _0xc69b55=_0x3e1a38['next']();if(_0xc69b55[_0x7825ae(0x845)])return{'done':!![],'value':undefined};const _0x1a9d0b=_0x105054(_0xc69b55[_0x7825ae(0x37e)]);if(_0x1a9d0b===_0xa219c0[_0x7825ae(0x7d1)])continue;if(_0x1a9d0b===_0x40461a)return _0x3e1a38[_0x7825ae(0x7b2)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x1a9d0b};}},'return'(){const _0x227bf8=_0x700bf;return _0x3e1a38[_0x227bf8(0x7b2)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x700bf(0x1c7)]](){return this;}};});}[_0x12a7c7(0x656)](_0x125f23){const _0x2daae9=_0x12a7c7;return this[_0x2daae9(0x255)](_0x35957f=>_0x125f23(_0x35957f)?_0x35957f:_0xa219c0[_0x2daae9(0x7d1)]);}['forEach'](_0x4634e2){for(const _0x20252e of this)_0x4634e2(_0x20252e);}[_0x12a7c7(0x8b5)](_0x12a584=0x0,_0x3f0b0f=Infinity){const _0xed44e6=this;return new _0x5091d5(()=>{const _0x2b7486=_0x206c,_0x5c5a94=_0xed44e6[Symbol[_0x2b7486(0x1c7)]]();let _0x1de12b=0x0;return{'next'(){const _0x3e907b=_0x2b7486;for(;;){const _0x22d641=_0x5c5a94['next']();if(_0x22d641['done'])return{'done':!![],'value':undefined};const _0x5eebae=_0x1de12b++;if(_0x5eebae<_0x12a584)continue;if(_0x5eebae>=_0x3f0b0f)return _0x5c5a94[_0x3e907b(0x7b2)]?.(),{'done':!![],'value':undefined};return _0x22d641;}},'return'(){const _0xdd4575=_0x2b7486;return _0x5c5a94[_0xdd4575(0x7b2)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x2b7486(0x1c7)]](){return this;}};});}['at'](_0x30cc3b){let _0x25c409=0x0;for(const _0x817228 of this)if(_0x25c409++===_0x30cc3b)return _0x817228;return undefined;}['flatMap'](_0x3502e9){const _0x41f9aa=this;return new _0x5091d5(()=>{const _0x3b1696=_0x206c,_0x114427=_0x41f9aa[Symbol[_0x3b1696(0x1c7)]]();let _0x420be7=[];return{'next'(){const _0x51f78f=_0x3b1696;for(;;){if(_0x420be7[_0x51f78f(0x61b)])return{'done':![],'value':_0x420be7['shift']()};const _0x43a870=_0x114427[_0x51f78f(0x830)]();if(_0x43a870[_0x51f78f(0x845)])return{'done':!![],'value':undefined};const _0x5727b5=_0x3502e9(_0x43a870[_0x51f78f(0x37e)]);if(Array['isArray'](_0x5727b5))_0x420be7=_0x420be7['concat'](_0x5727b5);else{if(_0x5727b5!=null&&(_0x5727b5 instanceof _0x5091d5||typeof _0x5727b5[Symbol[_0x51f78f(0x1c7)]]===_0x51f78f(0x6a3)&&'asArray'in _0x5727b5))_0x420be7=_0x420be7['concat'](Array[_0x51f78f(0x3e9)](_0x5727b5));else{if(_0x5727b5!==_0xa219c0[_0x51f78f(0x7d1)])return{'done':![],'value':_0x5727b5};}}}},'return'(){const _0x4f79a2=_0x3b1696;return _0x114427[_0x4f79a2(0x7b2)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3b1696(0x1c7)]](){return this;}};});}[_0x12a7c7(0x44b)](_0x43beb5){const _0x42f617=this;return new _0x5091d5(()=>{const _0x37b58f=_0x206c;let _0x46f774=_0x42f617[Symbol['iterator']](),_0x504ddd=![];return{'next'(){const _0x355cf5=_0x206c;for(;;){const _0x2a4a9=_0x46f774[_0x355cf5(0x830)]();if(!_0x2a4a9[_0x355cf5(0x845)])return _0x2a4a9;if(_0x504ddd)return{'done':!![],'value':undefined};_0x504ddd=!![],_0x46f774=_0x43beb5[Symbol[_0x355cf5(0x1c7)]]();}},'return'(){return _0x46f774['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x37b58f(0x1c7)]](){return this;}};});}[_0x12a7c7(0x3f3)](_0x5e43e9){const _0x2e659a=this;return new _0x5091d5(()=>{const _0x5991eb=_0x206c,_0x4facbb=_0x2e659a[Symbol[_0x5991eb(0x1c7)]]();return{'next'(){const _0x3f30eb=_0x5991eb;for(;;){try{return _0x4facbb[_0x3f30eb(0x830)]();}catch(_0x56835b){const _0x42aa63=_0x5e43e9(_0x56835b);if(_0x42aa63===_0xa219c0[_0x3f30eb(0x7d1)]||_0x42aa63===undefined)continue;return{'done':![],'value':_0x42aa63};}}},'return'(){return _0x4facbb['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x5991eb(0x1c7)]](){return this;}};});}[_0x12a7c7(0x733)](){const _0x2a9dc8=_0x12a7c7;return Array[_0x2a9dc8(0x3e9)](this);}get['asArray'](){const _0x3b732e=_0x12a7c7;return Array[_0x3b732e(0x3e9)](this);}}const _0x32585c={'total':0x0,'byLabel':{},'last':null};function _0x3d33ce(_0x495e31){const _0x363a86=_0x12a7c7;_0x32585c[_0x363a86(0x37f)]++;if(_0x495e31)_0x32585c[_0x363a86(0x56c)][_0x495e31]=(_0x32585c[_0x363a86(0x56c)][_0x495e31]??0x0)+0x1;_0x32585c[_0x363a86(0x20a)]={'label':_0x495e31??null,'at':Date[_0x363a86(0x590)]()};}function _0x4f80f0(){const _0x9199b0=_0x12a7c7;return{'total':_0x32585c[_0x9199b0(0x37f)],'byLabel':{..._0x32585c[_0x9199b0(0x56c)]},'last':_0x32585c[_0x9199b0(0x20a)]};}function _0x1aa920(_0x3f3fe5,_0x5ae47f={}){const {getTxnId:_0x3848e0,resume:_0x3035aa,label:_0x3e475f,baseline:_0x381bf4}=_0x5ae47f;return new _0x5091d5(()=>{const _0x125754=_0x206c;let _0x51c239=null,_0xbd06dd=![],_0x3993a6=![],_0x4fc4d2=![],_0x12024f,_0x10d702=0x0,_0x55faff;return{'next'(){const _0x213f58=_0x206c;if(_0x4fc4d2)return{'done':!![],'value':undefined};if(_0x3993a6){let _0xff5cd8=![];if(_0x3035aa&&_0x3848e0)try{_0xff5cd8=_0x3848e0()===_0x55faff;}catch{}if(!_0xff5cd8){_0x4fc4d2=!![],_0x3d33ce(_0x3e475f);throw new _0x29578b(_0x3035aa?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+'meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20'+'before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.':_0x213f58(0x755)+_0x213f58(0x2cc)+'Array.from)\x20before\x20any\x20await.',_0x213f58(0x660));}_0x51c239=_0x3035aa(_0x12024f,_0x10d702)[Symbol['iterator']](),_0x3993a6=![];}if(!_0x51c239){if(_0x381bf4!==undefined)_0x55faff=_0x381bf4;else try{_0x55faff=_0x3848e0?_0x3848e0():undefined;}catch{_0x55faff=undefined;}try{_0x51c239=_0x3f3fe5()[Symbol[_0x213f58(0x1c7)]]();}catch(_0x5456e5){_0x4fc4d2=!![];throw _0x5456e5;}}!_0xbd06dd&&(_0xbd06dd=!![],queueMicrotask(()=>{const _0x137e95=_0x213f58;_0xbd06dd=![];if(_0x4fc4d2||_0x3993a6)return;try{_0x51c239?.[_0x137e95(0x7b2)]?.();}catch{}_0x51c239=null,_0x3993a6=!![];}));const _0x5d4f92=_0x51c239['next']();if(_0x5d4f92['done'])return _0x4fc4d2=!![],{'done':!![],'value':undefined};return _0x12024f=_0x5d4f92[_0x213f58(0x37e)],_0x10d702++,_0x5d4f92;},'return'(){const _0x3eff50=_0x206c;_0x4fc4d2=!![];try{_0x51c239?.[_0x3eff50(0x7b2)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x125754(0x1c7)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x1aa920,'OKDBGuardedRange':_0x5091d5,'recordGuardTrip':_0x3d33ce,'getGuardTripStats':_0x4f80f0},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1c7966=_0x3e8e44;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0xc89629,performance:_0x39655e}=require$$0$1,_0x285a73=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1c7966(0x206),_0x4a9d02=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x418dc7=process.env.OKDB_LOOP_LAG_ALL==='1',_0x1574d1=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x10b4ee{constructor(){const _0x52d3c8=_0x1c7966;this[_0x52d3c8(0x22a)]=_0x285a73,this[_0x52d3c8(0x257)]=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this[_0x52d3c8(0x7ef)]=(_0x4389a7,_0x15a418)=>process[_0x52d3c8(0x3e5)][_0x52d3c8(0x2d6)](_0x4389a7+(_0x15a418?'\x20'+JSON['stringify'](_0x15a418):'')+'\x0a');}[_0x1c7966(0x590)](){return _0x39655e['now']();}['setLogger'](_0x51ee4a){const _0x420301=_0x1c7966;if(typeof _0x51ee4a==='function')this[_0x420301(0x7ef)]=_0x51ee4a;}['note'](_0x341e44,_0x16bdcd,_0xf8c561){const _0x15488d=_0x1c7966;if(!this[_0x15488d(0x22a)])return;let _0x58fb29=this[_0x15488d(0x257)]['get'](_0x341e44);!_0x58fb29&&(_0x58fb29={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x15488d(0x257)][_0x15488d(0x280)](_0x341e44,_0x58fb29)),_0x58fb29['ms']+=_0x16bdcd,_0x58fb29[_0x15488d(0x2eb)]+=0x1,_0x16bdcd>_0x58fb29[_0x15488d(0x332)]&&(_0x58fb29[_0x15488d(0x332)]=_0x16bdcd,_0x58fb29['maxExtra']=_0xf8c561||'');}[_0x1c7966(0x40c)](_0x4545f3){const _0x211cc0=_0x1c7966;if(!this[_0x211cc0(0x22a)]||this[_0x211cc0(0x1cc)])return;this[_0x211cc0(0x1cc)]=!![];if(_0x4545f3)this[_0x211cc0(0x7ef)]=_0x4545f3;this['_h']=_0xc89629({'resolution':0xa}),this['_h'][_0x211cc0(0x753)](),this[_0x211cc0(0x822)]=setInterval(()=>this[_0x211cc0(0x867)](),_0x4a9d02);if(this[_0x211cc0(0x822)]['unref'])this[_0x211cc0(0x822)][_0x211cc0(0x63e)]();}[_0x1c7966(0x76e)](_0x26522e){const _0x1cd8dd=_0x1c7966;if(!this['_windowCbs'])this[_0x1cd8dd(0x38f)]=new Set();this[_0x1cd8dd(0x38f)]['add'](_0x26522e);if(!this['_started'])this[_0x1cd8dd(0x37a)]();}[_0x1c7966(0x451)](_0x5df451){const _0x432375=_0x1c7966;this[_0x432375(0x38f)]?.[_0x432375(0x588)](_0x5df451);}[_0x1c7966(0x37a)](){const _0x23b5df=_0x1c7966;if(this[_0x23b5df(0x5e6)])return;this[_0x23b5df(0x5e6)]=!![];!this['_h']&&(this['_h']=_0xc89629({'resolution':0xa}),this['_h'][_0x23b5df(0x753)]());const _0x30cd56=_0x4a9d02;this[_0x23b5df(0x73e)]=setInterval(()=>{const _0x3cf9e3=_0x23b5df,_0x3eb4fa=this['_h'];if(!_0x3eb4fa)return;const _0xea452b=_0x3eb4fa[_0x3cf9e3(0x23b)](0x63)/0xf4240,_0x49db3b=_0x3eb4fa['max']/0xf4240,_0x23e0eb=_0x3eb4fa[_0x3cf9e3(0x337)]/0xf4240;_0x3eb4fa[_0x3cf9e3(0x19c)]();if(this[_0x3cf9e3(0x38f)])for(const _0x289a4a of this[_0x3cf9e3(0x38f)]){try{_0x289a4a({'p99Ms':_0xea452b,'maxMs':_0x49db3b,'meanMs':_0x23e0eb,'reportMs':_0x30cd56});}catch{}}},_0x30cd56);if(this[_0x23b5df(0x73e)][_0x23b5df(0x63e)])this[_0x23b5df(0x73e)]['unref']();}[_0x1c7966(0x867)](){const _0x5d9f08=_0x1c7966,_0x34fbed=this['_h'],_0x2d9f81=_0x34fbed[_0x5d9f08(0x2cf)]/0xf4240,_0x192f3d=_0x34fbed[_0x5d9f08(0x23b)](0x63)/0xf4240,_0x263550=_0x34fbed['mean']/0xf4240;_0x34fbed['reset']();const _0xd29771=[...this[_0x5d9f08(0x257)]['entries']()][_0x5d9f08(0x255)](([_0x402235,_0x3ec165])=>({'label':_0x402235,..._0x3ec165}))[_0x5d9f08(0x4d1)]((_0x4a52f7,_0x5b2073)=>_0x5b2073['ms']-_0x4a52f7['ms'])[_0x5d9f08(0x8b5)](0x0,0x8);this[_0x5d9f08(0x257)]['clear']();const _0x2c508f=_0xd29771['reduce']((_0x150e98,_0x3d6182)=>_0x150e98+_0x3d6182['ms'],0x0),_0x3f145b=_0xd29771[_0x5d9f08(0x255)](_0x27076b=>_0x27076b[_0x5d9f08(0x5ee)]+'='+_0x27076b['ms'][_0x5d9f08(0x2da)](0x0)+'ms/'+_0x27076b[_0x5d9f08(0x2eb)]+(_0x27076b[_0x5d9f08(0x332)]>0x5?_0x5d9f08(0x201)+_0x27076b[_0x5d9f08(0x332)][_0x5d9f08(0x2da)](0x0)+'ms'+(_0x27076b[_0x5d9f08(0x67e)]?'\x20'+_0x27076b[_0x5d9f08(0x67e)]:'')+')':''));(_0x418dc7||_0x2d9f81>=_0x1574d1)&&this[_0x5d9f08(0x7ef)](_0x5d9f08(0x519)+_0x4a9d02+_0x5d9f08(0x3a3)+_0x2d9f81[_0x5d9f08(0x2da)](0x0)+_0x5d9f08(0x887)+_0x192f3d[_0x5d9f08(0x2da)](0x0)+'ms\x20mean='+_0x263550[_0x5d9f08(0x2da)](0x0)+_0x5d9f08(0x551)+_0x2c508f[_0x5d9f08(0x2da)](0x0)+'ms'+(_0x3f145b[_0x5d9f08(0x61b)]?_0x5d9f08(0x209)+_0x3f145b[_0x5d9f08(0x278)]('\x20\x20'):''),{'feature':_0x5d9f08(0x7e7)});if(this[_0x5d9f08(0x38f)])for(const _0x253267 of this[_0x5d9f08(0x38f)]){try{_0x253267({'p99Ms':_0x192f3d,'maxMs':_0x2d9f81,'meanMs':_0x263550,'reportMs':_0x4a9d02});}catch{}}}[_0x1c7966(0x8a0)](){const _0x27416b=_0x1c7966;if(this[_0x27416b(0x822)])clearInterval(this[_0x27416b(0x822)]);if(this['_h'])this['_h'][_0x27416b(0x5b5)]();this['_timer']=null,this['_h']=null,this['_started']=![];}}const _0xb9ee17=new _0x10b4ee();if(_0xb9ee17[_0x1c7966(0x22a)])_0xb9ee17['start']();return okdbLoopMonitor={'LOOP':_0xb9ee17},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x291b91=_0x3e8e44;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x32e1b4={'v4':()=>require$$0$2[_0x291b91(0x89a)]()},{EVENTS:_0x4d61e7}=requireOkdbEnums(),{OKDBError:_0x272f14}=requireOkdbError(),{recordGuardTrip:_0x445f9a,guardSnapshotIterable:_0xec83c8}=requireOkdbGuardedRange(),{LOOP:_0x3acd18}=requireOkdbLoopMonitor();function _0x512952(_0xef2f4a){const _0x3ee588=_0x291b91;return _0xef2f4a[_0x3ee588(0x255)](_0x585098=>{const _0x732925=_0x3ee588,[_0x4cdd6a,_0x51f1cd]=_0x585098[_0x732925(0x4dc)]||[];return{'action':_0x585098[_0x732925(0x577)],'type':_0x4cdd6a,'key':_0x51f1cd};});}class _0x342e36{[_0x291b91(0x7ea)];[_0x291b91(0x88a)]=[];[_0x291b91(0x632)]=[];[_0x291b91(0x35d)]=[];constructor(_0x219c9d,_0x329bc6={'useReadTransaction':![]}){const _0x38c8ea=_0x291b91;this[_0x38c8ea(0x7ea)]=_0x219c9d,this[_0x38c8ea(0x5f0)]=_0x329bc6,this['id']=_0x32e1b4['v4']();if(this[_0x38c8ea(0x5f0)][_0x38c8ea(0x4e5)])try{this[_0x38c8ea(0x3b7)]=this[_0x38c8ea(0x7ea)]['db'][_0x38c8ea(0x8a6)]()[_0x38c8ea(0x875)];}catch{this[_0x38c8ea(0x3b7)]=undefined;}this['readTransaction']=this[_0x38c8ea(0x5f0)][_0x38c8ea(0x4e5)]?this[_0x38c8ea(0x7ea)]['db'][_0x38c8ea(0x4e5)]():null,this[_0x38c8ea(0x6f4)]=![],this[_0x38c8ea(0x31c)]=![],this[_0x38c8ea(0x63b)]&&queueMicrotask(()=>{const _0x1eebb5=_0x38c8ea;this['readTransaction']&&(this[_0x1eebb5(0x22b)](),this[_0x1eebb5(0x31c)]=!![]);});}[_0x291b91(0x714)](_0x5d62d4){const _0x2000d7=_0x291b91;this[_0x2000d7(0x632)][_0x2000d7(0x491)](_0x5d62d4);}[_0x291b91(0x5b9)](_0x48041a){const _0x441101=_0x291b91;this['_undoHooks'][_0x441101(0x491)](_0x48041a);}[_0x291b91(0x22b)](){const _0x8121aa=_0x291b91;if(!this[_0x8121aa(0x63b)])return;try{this[_0x8121aa(0x63b)][_0x8121aa(0x845)]();}catch(_0x47bc48){}this[_0x8121aa(0x63b)]=null;}[_0x291b91(0x300)](){const _0x449a09=_0x291b91;if(this[_0x449a09(0x6f4)])throw new _0x272f14(_0x449a09(0x23f),_0x449a09(0x2e2));if(this['_readViewExpired']){let _0x3dba72=![];if(this['options'][_0x449a09(0x4e5)]===_0x449a09(0x730)&&this['_txnIdAtSnapshot']!==undefined)try{_0x3dba72=this[_0x449a09(0x7ea)]['db'][_0x449a09(0x8a6)]()[_0x449a09(0x875)]===this[_0x449a09(0x3b7)];}catch{}if(!_0x3dba72){_0x445f9a((this['okdb']?.[_0x449a09(0x781)]??'?')+_0x449a09(0x5a5));throw new _0x272f14('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+_0x449a09(0x469)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0x449a09(0x411),_0x449a09(0x660));}}}[_0x291b91(0x212)](_0x1f6dd4,_0x34f4e8){const _0x289417=_0x291b91;return this[_0x289417(0x300)](),this[_0x289417(0x7ea)][_0x289417(0x212)](_0x1f6dd4,_0x34f4e8,{'transaction':this[_0x289417(0x63b)]});}[_0x291b91(0x447)](_0x3f7bcb,_0x58e734){const _0x4b40e3=_0x291b91;return this[_0x4b40e3(0x300)](),this[_0x4b40e3(0x7ea)][_0x4b40e3(0x447)](_0x3f7bcb,_0x58e734,{'transaction':this['readTransaction']});}['getMany'](_0x243fc,_0x5f0013){const _0x13e7c5=_0x291b91;return this[_0x13e7c5(0x300)](),this[_0x13e7c5(0x7ea)][_0x13e7c5(0x312)](_0x243fc,_0x5f0013,{'transaction':this[_0x13e7c5(0x63b)]});}['_range'](_0x31e160){const _0x95040b=_0x291b91;if(!this[_0x95040b(0x5f0)][_0x95040b(0x4e5)])return _0x31e160;if(_0x31e160&&typeof _0x31e160[_0x95040b(0x8b4)]===_0x95040b(0x6a3))return _0x31e160;if(Array[_0x95040b(0x63d)](_0x31e160))return _0x31e160;const _0xdefd6d=this,_0x545c1e=_0xdefd6d[_0x95040b(0x5f0)][_0x95040b(0x4e5)]===_0x95040b(0x730),_0x3ec67d=()=>{const _0x4916a3=_0x95040b;if(!_0xdefd6d[_0x4916a3(0x31c)])return![];if(!_0x545c1e)return!![];if(_0xdefd6d[_0x4916a3(0x3b7)]===undefined)return!![];try{return _0xdefd6d[_0x4916a3(0x7ea)]['db'][_0x4916a3(0x8a6)]()['lastTxnId']!==_0xdefd6d[_0x4916a3(0x3b7)];}catch{return!![];}};return _0xec83c8(()=>{const _0x160df1=_0x95040b;if(_0xdefd6d['_closed'])throw new _0x272f14(_0x160df1(0x23f),_0x160df1(0x2e2));if(_0x3ec67d()){_0x445f9a((_0xdefd6d['okdb']?.['name']??'?')+_0x160df1(0x1c3));throw new _0x272f14('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x160df1(0x355)+'materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.',_0x160df1(0x660));}return _0x31e160;},{'label':(_0xdefd6d[_0x95040b(0x7ea)]?.[_0x95040b(0x781)]??'?')+_0x95040b(0x1c3),..._0x545c1e?{'baseline':_0xdefd6d[_0x95040b(0x3b7)],'getTxnId':()=>_0xdefd6d[_0x95040b(0x7ea)]['db'][_0x95040b(0x8a6)]()[_0x95040b(0x875)],'resume':(_0x250645,_0x19aabe)=>_0x31e160[_0x95040b(0x8b5)](_0x19aabe)}:{}});}[_0x291b91(0x416)](_0x4cccb0,_0x560a40={}){const _0x1f0886=_0x291b91;return this['_assertOpen'](),this[_0x1f0886(0x4b3)](this[_0x1f0886(0x7ea)]['getRange'](_0x4cccb0,{'transaction':this[_0x1f0886(0x63b)],..._0x560a40}));}['getValues'](_0x912d3f,_0x4fcc79={}){const _0x14219b=_0x291b91;return this[_0x14219b(0x300)](),this[_0x14219b(0x4b3)](this['okdb'][_0x14219b(0x633)](_0x912d3f,{'transaction':this[_0x14219b(0x63b)],..._0x4fcc79}));}[_0x291b91(0x6e7)](_0xf9f7fa,_0x931165={}){const _0x4e054a=_0x291b91;return this[_0x4e054a(0x300)](),this[_0x4e054a(0x4b3)](this[_0x4e054a(0x7ea)][_0x4e054a(0x6e7)](_0xf9f7fa,{'transaction':this[_0x4e054a(0x63b)],..._0x931165}));}[_0x291b91(0x7ee)](_0x46bf2e,_0x132636,_0x58c96a={}){const _0x188f78=_0x291b91;return this[_0x188f78(0x300)](),this[_0x188f78(0x4b3)](this[_0x188f78(0x7ea)][_0x188f78(0x7ee)](_0x46bf2e,_0x132636,{'transaction':this['readTransaction'],..._0x58c96a}));}[_0x291b91(0x52e)](_0x685a87,_0x390a4e,_0x386ce3={}){const _0x2125a6=_0x291b91;return this['_assertOpen'](),this[_0x2125a6(0x4b3)](this[_0x2125a6(0x7ea)][_0x2125a6(0x52e)](_0x685a87,_0x390a4e,{'transaction':this['readTransaction'],..._0x386ce3}));}[_0x291b91(0x740)](_0x5240b7=null){const _0x4d64e8=_0x291b91;return this[_0x4d64e8(0x300)](),this['okdb'][_0x4d64e8(0x740)](_0x5240b7,{'transaction':this[_0x4d64e8(0x63b)]});}['getCount'](_0x38bd79){const _0x12cc90=_0x291b91;return this[_0x12cc90(0x300)](),this[_0x12cc90(0x7ea)][_0x12cc90(0x2f5)](_0x38bd79,{'transaction':this[_0x12cc90(0x63b)]});}[_0x291b91(0x3fe)](_0x5ed2b3,_0x3446d2,_0x52ce0c,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x291b91(0x590)](),origin:origin=null,ttl:ttl=null}={}){const _0x1fe97e=_0x291b91;this[_0x1fe97e(0x88a)][_0x1fe97e(0x491)]({'action':_0x1fe97e(0x3fe),'args':[_0x5ed2b3,_0x3446d2,_0x52ce0c,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x291b91(0x625)](_0x297132,_0x264cae,_0x33d2c1,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x291b91(0x590)](),origin:origin=null,ttl:ttl=null}={}){const _0x288bf4=_0x291b91;this[_0x288bf4(0x88a)][_0x288bf4(0x491)]({'action':_0x288bf4(0x625),'args':[_0x297132,_0x264cae,_0x33d2c1,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x4bf50f,_0x5040ff,_0x313c6f,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x12064f=_0x291b91;this[_0x12064f(0x88a)][_0x12064f(0x491)]({'action':_0x12064f(0x2b7),'args':[_0x4bf50f,_0x5040ff,_0x313c6f,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x291b91(0x239)](_0x3e36dc,_0x3d661f,_0x111859,{version:version=null,timestamp:timestamp=Date[_0x291b91(0x590)](),origin:origin=null,ttl:ttl=null}={}){const _0xdbe1b4=_0x291b91;this['actions'][_0xdbe1b4(0x491)]({'action':_0xdbe1b4(0x239),'args':[_0x3e36dc,_0x3d661f,_0x111859,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['remove'](_0x2ce0ae,_0x9e7ed7,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x291b91(0x590)](),origin:origin=null}={}){const _0x5c0ac1=_0x291b91;this[_0x5c0ac1(0x88a)][_0x5c0ac1(0x491)]({'action':'remove','args':[_0x2ce0ae,_0x9e7ed7,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x291b91(0x4d9)](_0x1e91cf,_0x9b56ad,_0x2da30d){const _0x12f2d4=_0x291b91;this[_0x12f2d4(0x88a)][_0x12f2d4(0x491)]({'action':_0x12f2d4(0x4d9),'args':[_0x1e91cf,_0x9b56ad,_0x2da30d]});}[_0x291b91(0x1e4)](_0x27031f,_0x1dee42){const _0xbaae41=_0x291b91;this[_0xbaae41(0x88a)]['push']({'action':_0xbaae41(0x1e4),'args':[_0x27031f,_0x1dee42]});}[_0x291b91(0x835)](){const _0x3870b5=_0x291b91;if(this['_closed'])return;for(const _0x3585f5 of this['_undoHooks']){try{_0x3585f5();}catch{}}this['okdb'][_0x3870b5(0x85d)][_0x3870b5(0x749)](_0x4d61e7[_0x3870b5(0x463)],{'id':this['id']}),this[_0x3870b5(0x88a)]=[],this[_0x3870b5(0x22b)](),this['_closed']=!![];}async['commit'](){const _0x50fb2d=_0x291b91;if(this[_0x50fb2d(0x6f4)])throw new Error(_0x50fb2d(0x23f));const _0x3786da={'id':this['id'],'timestamp':Date[_0x50fb2d(0x590)](),'actions':this[_0x50fb2d(0x88a)]};this[_0x50fb2d(0x7ea)][_0x50fb2d(0x85d)][_0x50fb2d(0x749)](_0x4d61e7[_0x50fb2d(0x345)],_0x3786da);try{const _0x16001a=_0x3acd18[_0x50fb2d(0x22a)]?_0x3acd18[_0x50fb2d(0x590)]():0x0;await this[_0x50fb2d(0x7ea)]['_writer'][_0x50fb2d(0x2c3)](()=>{const _0x18719b=_0x50fb2d;for(const _0x32f061 of this['actions']){const _0x51f3cb=this['okdb']['_'+_0x32f061[_0x18719b(0x577)]];if(typeof _0x51f3cb!=='function')throw new Error('Unknown\x20transaction\x20action:\x20'+_0x32f061[_0x18719b(0x577)]);_0x51f3cb[_0x18719b(0x4e9)](this[_0x18719b(0x7ea)],this,..._0x32f061[_0x18719b(0x4dc)]);}}),_0x3acd18[_0x50fb2d(0x22a)]&&_0x3acd18[_0x50fb2d(0x7ae)](_0x50fb2d(0x401),_0x3acd18['now']()-_0x16001a,(this['okdb']['name']??'?')+_0x50fb2d(0x42f)+this[_0x50fb2d(0x88a)][_0x50fb2d(0x61b)]);}catch(_0x4f564c){for(const _0x4f879e of this[_0x50fb2d(0x35d)]){try{_0x4f879e();}catch{}}this[_0x50fb2d(0x22b)](),this['_closed']=!![];if(_0x4f564c instanceof _0x272f14)throw _0x4f564c;const _0x2dd86a={'cause':_0x4f564c,'env':this[_0x50fb2d(0x7ea)]?.[_0x50fb2d(0x781)],'envPath':this[_0x50fb2d(0x7ea)]?.[_0x50fb2d(0x7b1)],'pid':process[_0x50fb2d(0x52d)],'txnId':this['id'],'actionCount':this['actions'][_0x50fb2d(0x61b)],'actions':_0x512952(this['actions']),'nativeCode':_0x4f564c?.[_0x50fb2d(0x42b)],'nativeName':_0x4f564c?.[_0x50fb2d(0x781)]};try{this[_0x50fb2d(0x7ea)]?.[_0x50fb2d(0x4ce)]?.['error']?.(_0x50fb2d(0x35c),{'env':_0x2dd86a[_0x50fb2d(0x2a8)],'envPath':_0x2dd86a[_0x50fb2d(0x8b7)],'pid':_0x2dd86a[_0x50fb2d(0x52d)],'txnId':_0x2dd86a[_0x50fb2d(0x2a4)],'actionCount':_0x2dd86a[_0x50fb2d(0x83d)],'actions':_0x2dd86a[_0x50fb2d(0x88a)],'nativeCode':_0x2dd86a[_0x50fb2d(0x29f)],'error':_0x4f564c?.[_0x50fb2d(0x412)],'stack':_0x4f564c?.['stack']});}catch{}throw new _0x272f14(_0x4f564c?.[_0x50fb2d(0x412)]||_0x50fb2d(0x422),_0x50fb2d(0x4be),_0x2dd86a);}this['okdb']['events'][_0x50fb2d(0x749)](_0x4d61e7['TXN_END'],_0x3786da);for(const _0x1dae6c of this[_0x50fb2d(0x632)]){try{await _0x1dae6c();}catch{}}this[_0x50fb2d(0x88a)]=[],this[_0x50fb2d(0x22b)](),this[_0x50fb2d(0x6f4)]=!![];}static[_0x291b91(0x464)](_0x152914){const _0x5cbf46=_0x291b91;return Object['freeze']({'id':_0x152914['id'],'put':_0x152914['put']['bind'](_0x152914),'update':_0x152914[_0x5cbf46(0x625)][_0x5cbf46(0x501)](_0x152914),'patch':_0x152914['patch'][_0x5cbf46(0x501)](_0x152914),'create':_0x152914[_0x5cbf46(0x239)][_0x5cbf46(0x501)](_0x152914),'remove':_0x152914[_0x5cbf46(0x248)][_0x5cbf46(0x501)](_0x152914),'setTTL':_0x152914[_0x5cbf46(0x4d9)]['bind'](_0x152914),'clearTTL':_0x152914['clearTTL']['bind'](_0x152914),'commit':_0x152914[_0x5cbf46(0x3b9)][_0x5cbf46(0x501)](_0x152914),'rollback':_0x152914[_0x5cbf46(0x835)][_0x5cbf46(0x501)](_0x152914),'get':_0x152914[_0x5cbf46(0x212)][_0x5cbf46(0x501)](_0x152914),'getEntry':_0x152914['getEntry']['bind'](_0x152914),'getMany':_0x152914[_0x5cbf46(0x312)][_0x5cbf46(0x501)](_0x152914),'getRange':_0x152914[_0x5cbf46(0x416)]['bind'](_0x152914),'getValues':_0x152914['getValues'][_0x5cbf46(0x501)](_0x152914),'getKeys':_0x152914[_0x5cbf46(0x6e7)]['bind'](_0x152914),'byIndex':_0x152914[_0x5cbf46(0x7ee)][_0x5cbf46(0x501)](_0x152914),'query':_0x152914[_0x5cbf46(0x52e)][_0x5cbf46(0x501)](_0x152914),'getClock':_0x152914['getClock'][_0x5cbf46(0x501)](_0x152914),'getCount':_0x152914['getCount']['bind'](_0x152914),'read':_0x152914,'raw':_0x152914});}static[_0x291b91(0x561)](_0x9d64d5,_0x1fd199=[]){const _0x36e735=_0x291b91;if(!Array[_0x36e735(0x63d)](_0x1fd199))throw new _0x272f14(_0x36e735(0x1ac),_0x36e735(0x6c7));for(const _0x2dc24e of _0x1fd199){if(Array[_0x36e735(0x63d)](_0x2dc24e)){const [_0x42e95a,..._0x549cbd]=_0x2dc24e;if(typeof _0x9d64d5[_0x42e95a]!==_0x36e735(0x6a3))throw new _0x272f14(_0x36e735(0x843)+_0x42e95a,_0x36e735(0x8ae),{'action':_0x42e95a});_0x9d64d5[_0x42e95a](..._0x549cbd);continue;}if(!_0x2dc24e||typeof _0x2dc24e!==_0x36e735(0x677))throw new _0x272f14(_0x36e735(0x7e1),'TXN_INVALID_OP');const {action:_0x3db1bd}=_0x2dc24e;if(typeof _0x3db1bd!==_0x36e735(0x7f4)||typeof _0x9d64d5[_0x3db1bd]!==_0x36e735(0x6a3))throw new _0x272f14('Unknown\x20transaction\x20action:\x20'+_0x3db1bd,_0x36e735(0x8ae),{'action':_0x3db1bd});switch(_0x3db1bd){case _0x36e735(0x3fe):case _0x36e735(0x625):case _0x36e735(0x239):_0x9d64d5[_0x3db1bd](_0x2dc24e[_0x36e735(0x576)],_0x2dc24e[_0x36e735(0x868)],_0x2dc24e[_0x36e735(0x37e)],{..._0x2dc24e[_0x36e735(0x5f0)],'ttl':_0x2dc24e['ttl']??_0x2dc24e['options']?.[_0x36e735(0x20b)]??null});break;case _0x36e735(0x2b7):_0x9d64d5[_0x36e735(0x2b7)](_0x2dc24e[_0x36e735(0x576)],_0x2dc24e[_0x36e735(0x868)],_0x2dc24e[_0x36e735(0x2b7)],{..._0x2dc24e['options'],'ttl':_0x2dc24e[_0x36e735(0x20b)]??_0x2dc24e[_0x36e735(0x5f0)]?.[_0x36e735(0x20b)]??null});break;case'remove':_0x9d64d5[_0x36e735(0x248)](_0x2dc24e[_0x36e735(0x576)],_0x2dc24e[_0x36e735(0x868)],_0x2dc24e['options']||{});break;case _0x36e735(0x4d9):_0x9d64d5[_0x36e735(0x4d9)](_0x2dc24e['type'],_0x2dc24e[_0x36e735(0x868)],_0x2dc24e[_0x36e735(0x20b)]);break;case _0x36e735(0x1e4):_0x9d64d5[_0x36e735(0x1e4)](_0x2dc24e[_0x36e735(0x576)],_0x2dc24e[_0x36e735(0x868)]);break;default:throw new _0x272f14(_0x36e735(0x628)+_0x3db1bd,_0x36e735(0x8ae),{'action':_0x3db1bd});}}}static async['run'](_0x257069,_0x4f9593,_0x70320e={}){const _0x488f29=_0x291b91,_0x3a5eba=new _0x342e36(_0x257069,_0x70320e),_0x525106=_0x342e36[_0x488f29(0x464)](_0x3a5eba);try{typeof _0x4f9593===_0x488f29(0x6a3)?await _0x4f9593(_0x525106):_0x342e36[_0x488f29(0x561)](_0x3a5eba,_0x4f9593||[]);const _0x16be63=_0x3a5eba[_0x488f29(0x88a)]['length'];return await _0x3a5eba[_0x488f29(0x3b9)](),{'id':_0x3a5eba['id'],'actions':_0x16be63};}catch(_0x2e4164){try{_0x3a5eba['rollback']();}catch(_0x3847d6){}throw _0x2e4164;}}}return okdbTransaction=_0x342e36,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x105489=_0x3e8e44;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object['defineProperty'](dist,'__esModule',{'value':!![]});const _0x5b39a8=new Float64Array(0x2),_0x2ee04b=new Int32Array(_0x5b39a8[_0x105489(0x722)],0x0,0x4),{lowIdx:_0x15425d,highIdx:_0x46cee0}=((()=>{const _0x3dd4fa=_0x105489;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x3dd4fa(0x722)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x228052=![],_0x4991e4;try{_0x4991e4=new TextEncoder();}catch(_0x31a912){}function _0x3ef906(_0x5158be,_0x573224,position,_0x33fa74){const _0x5d81c6=_0x105489;let _0xad45ed=_0x573224[_0x5d81c6(0x6df)];if(!_0xad45ed)_0xad45ed=_0x573224['dataView']=new DataView(_0x573224[_0x5d81c6(0x722)],_0x573224[_0x5d81c6(0x2c8)],_0x573224[_0x5d81c6(0x4db)]+0x3>>0x2<<0x2);switch(typeof _0x5158be){case _0x5d81c6(0x7f4):let _0x2ef7a5=_0x5158be[_0x5d81c6(0x61b)],_0x1a708f=_0x5158be[_0x5d81c6(0x324)](0x0);if(!(_0x1a708f>=0x1c))_0x573224[position++]=0x1b;if(_0x2ef7a5<0x40){let _0x2be2d1,_0x52b620;for(_0x2be2d1=0x0;_0x2be2d1<_0x2ef7a5;_0x2be2d1++){_0x1a708f=_0x5158be[_0x5d81c6(0x324)](_0x2be2d1);if(_0x1a708f<=0x4)_0x573224[position++]=0x4,_0x573224[position++]=_0x1a708f;else{if(_0x1a708f<0x80)_0x573224[position++]=_0x1a708f;else{if(_0x1a708f<0x800)_0x573224[position++]=_0x1a708f>>0x6|0xc0,_0x573224[position++]=_0x1a708f&0x3f|0x80;else(_0x1a708f&0xfc00)===0xd800&&((_0x52b620=_0x5158be['charCodeAt'](_0x2be2d1+0x1))&0xfc00)===0xdc00?(_0x1a708f=0x10000+((_0x1a708f&0x3ff)<<0xa)+(_0x52b620&0x3ff),_0x2be2d1++,_0x573224[position++]=_0x1a708f>>0x12|0xf0,_0x573224[position++]=_0x1a708f>>0xc&0x3f|0x80,_0x573224[position++]=_0x1a708f>>0x6&0x3f|0x80,_0x573224[position++]=_0x1a708f&0x3f|0x80):(_0x573224[position++]=_0x1a708f>>0xc|0xe0,_0x573224[position++]=_0x1a708f>>0x6&0x3f|0x80,_0x573224[position++]=_0x1a708f&0x3f|0x80);}}}}else{if(_0x573224[_0x5d81c6(0x737)])position+=_0x573224[_0x5d81c6(0x737)](_0x5158be,position,_0x573224['byteLength']-position);else position+=_0x4991e4[_0x5d81c6(0x79b)](_0x5158be,_0x573224[_0x5d81c6(0x40f)](position))['written'];if(position>_0x573224[_0x5d81c6(0x61b)]-0x4)throw new RangeError('String\x20does\x20not\x20fit\x20in\x20target\x20buffer');}break;case'number':_0x5b39a8[0x0]=_0x5158be;let _0x4f0a7e=_0x2ee04b[_0x15425d],_0x56bf5d=_0x2ee04b[_0x46cee0],_0x1a9527;if(_0x5158be<0x0)return _0xad45ed[_0x5d81c6(0x846)](position+0x4,~(_0x4f0a7e>>>0x4|_0x56bf5d<<0x1c)),_0xad45ed[_0x5d81c6(0x846)](position+0x0,(_0x56bf5d^0x7fffffff)>>>0x4),_0xad45ed[_0x5d81c6(0x846)](position+0x8,(_0x4f0a7e&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x4f0a7e&0xf||_0x33fa74)_0x1a9527=0x9;else{if(_0x4f0a7e&0xfffff)_0x1a9527=0x8;else{if(_0x4f0a7e||_0x56bf5d&0xf)_0x1a9527=0x6;else _0x1a9527=0x4;}}}_0xad45ed['setInt32'](position+0x0,_0x56bf5d>>>0x4|0x10000000),_0xad45ed['setInt32'](position+0x4,_0x4f0a7e>>>0x4|_0x56bf5d<<0x1c),_0xad45ed['setInt32'](position+0x8,(_0x4f0a7e&0xf)<<0x4,!![]);return position+_0x1a9527;case _0x5d81c6(0x677):if(_0x5158be){if(Array[_0x5d81c6(0x63d)](_0x5158be)){for(let _0x42b092=0x0,_0x19ec39=_0x5158be[_0x5d81c6(0x61b)];_0x42b092<_0x19ec39;_0x42b092++){if(_0x42b092>0x0)_0x573224[position++]=0x0;position=_0x3ef906(_0x5158be[_0x42b092],_0x573224,position,!![]);}break;}else{if(_0x5158be instanceof Uint8Array){_0x573224[_0x5d81c6(0x280)](_0x5158be,position),position+=_0x5158be[_0x5d81c6(0x61b)];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x5d81c6(0x739)](_0x5158be));}}else _0x573224[position++]=0x0;break;case _0x5d81c6(0x68a):_0xad45ed['setUint32'](position++,_0x5158be?0x7:0x6,!![]);return position;case _0x5d81c6(0x8a1):let _0xbb5ed5=Number(_0x5158be);if(BigInt(_0xbb5ed5)>_0x5158be){_0x5b39a8[0x0]=_0xbb5ed5;if(_0xbb5ed5>0x0){if(_0x2ee04b[_0x15425d])_0x2ee04b[_0x15425d]--;else _0x2ee04b[_0x46cee0]--,_0x2ee04b[_0x15425d]=0xffffffff;}else{if(_0x2ee04b[_0x15425d]<0xffffffff)_0x2ee04b[_0x15425d]++;else _0x2ee04b[_0x46cee0]++,_0x2ee04b[_0x15425d]=0x0;}_0xbb5ed5=_0x5b39a8[0x0];}let _0x1efd2d=_0x5158be-BigInt(_0xbb5ed5);if(_0x1efd2d===0x0n)return _0x3ef906(_0xbb5ed5,_0x573224,position,_0x33fa74);_0x3ef906(_0xbb5ed5,_0x573224,position,_0x33fa74),position+=0x9;let _0x53c7cc=BigInt((_0x2ee04b[_0x46cee0]>>0x14&0x7ff)-0x437),_0x4a8f3a=_0x1efd2d>>_0x53c7cc;_0x573224[position-0x1]|=Number(_0x4a8f3a),_0x1efd2d-=_0x4a8f3a<<_0x53c7cc;let _0x1cd425=!![];while(_0x1efd2d||_0x1cd425){_0x1cd425=![],_0x53c7cc-=0x7n;let _0x3880c7=_0x1efd2d>>_0x53c7cc;_0x573224[position++]=Number(_0x3880c7)|0x80,_0x1efd2d-=_0x3880c7<<_0x53c7cc;}return position;case _0x5d81c6(0x585):return position;case _0x5d81c6(0x19d):_0x573224[position++]=0x2;return _0x3ef906(_0x5158be[_0x5d81c6(0x89b)],_0x573224,position,_0x33fa74);default:throw new Error(_0x5d81c6(0x6e6)+typeof _0x5158be);}if(_0x228052&&!_0x33fa74)_0xad45ed['setUint32'](position,0x0);return position;}let position;function _0x5e6974(_0x5811e0,_0x216701,_0x219b43,_0x136c0b){const _0x3904ef=_0x105489;position=_0x216701;let _0x422c9f=_0x5811e0[position],_0x895cea;if(_0x422c9f<0x18){if(_0x422c9f<0x8){position++;if(_0x422c9f==0x6)_0x895cea=![];else{if(_0x422c9f==0x7)_0x895cea=!![];else{if(_0x422c9f==0x0)_0x895cea=null;else{if(_0x422c9f==0x2)_0x895cea=Symbol[_0x3904ef(0x8a3)](_0x2a0601(_0x5811e0,_0x219b43));else return Uint8Array[_0x3904ef(0x47b)][_0x3904ef(0x8b5)][_0x3904ef(0x4e9)](_0x5811e0,_0x216701,_0x219b43);}}}}else{let _0x699f10;try{_0x699f10=_0x5811e0[_0x3904ef(0x6df)]||(_0x5811e0[_0x3904ef(0x6df)]=new DataView(_0x5811e0[_0x3904ef(0x722)],_0x5811e0[_0x3904ef(0x2c8)],_0x5811e0[_0x3904ef(0x4db)]+0x3>>0x2<<0x2));}catch(_0x5a00d0){_0x699f10=_0x5811e0['dataView']||(_0x5811e0[_0x3904ef(0x6df)]=new DataView(_0x5811e0['buffer'],_0x5811e0['byteOffset'],_0x5811e0[_0x3904ef(0x722)][_0x3904ef(0x4db)]-_0x5811e0[_0x3904ef(0x2c8)]));}let _0x5166a6=_0x699f10['getInt32'](position)<<0x4,_0x3c6e9e=_0x219b43-position,_0x227630;if(_0x3c6e9e>0x4)_0x227630=position+0x8<=_0x5811e0[_0x3904ef(0x61b)]?_0x699f10[_0x3904ef(0x406)](position+0x4):_0x5811e0[position+0x4]<<0x18|_0x5811e0[position+0x5]<<0x10|_0x5811e0[position+0x6]<<0x8|_0x5811e0[position+0x7],_0x5166a6|=_0x227630>>>0x1c,_0x3c6e9e<=0x6&&(_0x227630&=-0x10000),_0x227630=_0x227630<<0x4,_0x3c6e9e>0x8&&(_0x227630=_0x227630|_0x5811e0[position+0x8]>>0x4);else _0x227630=0x0;_0x422c9f<0x10&&(_0x5166a6=_0x5166a6^0x7fffffff,_0x227630=~_0x227630);_0x2ee04b[_0x46cee0]=_0x5166a6,_0x2ee04b[_0x15425d]=_0x227630,_0x895cea=_0x5b39a8[0x0],position+=0x9;if(_0x3c6e9e>0x9&&_0x5811e0[position]>0x0){_0x895cea=BigInt(_0x895cea);let _0x4b9a70=_0x5166a6>>0x14&0x7ff,_0x3bd274=_0x5811e0[position-0x1]&0xf;_0x895cea+=BigInt(_0x3bd274)<<BigInt(_0x4b9a70-0x437);while((_0x3bd274=_0x5811e0[position])>0x0&&position++<_0x219b43){_0x895cea+=BigInt(_0x3bd274&0x7f)<<BigInt((_0x216701-position)*0x7+_0x4b9a70-0x3f8);}}}}else{_0x422c9f==0x1b&&position++;_0x895cea=_0x2a0601(_0x5811e0,_0x219b43);if(position<_0x219b43)position--;}while(position<_0x219b43){if(_0x5811e0[position]===0x0)position++;if(_0x136c0b)return _0x40d004['position']=position,_0x895cea;let _0x367306=_0x5e6974(_0x5811e0,position,_0x219b43,!![]);if(_0x895cea instanceof Array)_0x895cea[_0x3904ef(0x491)](_0x367306);else _0x895cea=[_0x895cea,_0x367306];}return _0x895cea;}const _0x369a8f=()=>_0x228052=!![],_0x40d004={'writeKey':_0x3ef906,'readKey':_0x5e6974,'enableNullTermination':_0x369a8f};let _0x2a53d0=[],_0x45428d=0x0;const _0x3fecee=typeof Buffer!==_0x105489(0x585),_0x21e498=_0x3fecee?Buffer[_0x105489(0x731)]:Uint8Array,_0x21a8a3=_0x3cf98f=>{const _0x4db334=_0x105489;let _0x2c5241;_0x45428d+0x64>_0x2a53d0[_0x4db334(0x61b)]&&(_0x2a53d0=new _0x21e498(0x2000),_0x45428d=0x0,_0x2c5241=!![]);try{let _0x569538=_0x2a53d0['slice'](_0x45428d,_0x45428d=_0x3ef906(_0x3cf98f,_0x2a53d0,_0x45428d));if(_0x45428d>_0x2a53d0[_0x4db334(0x61b)]){if(_0x2c5241)throw new Error(_0x4db334(0x33c));return _0x21a8a3(_0x3cf98f);}return _0x569538;}catch(_0x18821b){if(_0x2c5241)throw _0x18821b;return _0x45428d=_0x2a53d0[_0x4db334(0x61b)],_0x21a8a3(_0x3cf98f);}},_0x11d6c0=_0x5bcf63=>{const _0x5c0f25=_0x105489;return _0x5e6974(_0x5bcf63,0x0,_0x5bcf63[_0x5c0f25(0x61b)]);},fromCharCode=String[_0x105489(0x3ee)];function _0x35ab49(){const _0x10ff65=_0x105489;let _0x177fc9=_0x10ff65(0x32b),_0x4a945c=[];for(let _0x3aa08b=0x0;_0x3aa08b<0x30;_0x3aa08b++){let _0x6357ba=fromCharCode((_0x3aa08b&0xf)+0x61)+fromCharCode((_0x3aa08b>>0x4)+0x61);_0x177fc9+=_0x10ff65(0x666)+_0x6357ba+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x6357ba+_0x10ff65(0x283)+_0x6357ba+'\x20>=\x200x80)\x20'+_0x6357ba+_0x10ff65(0x769)+_0x6357ba+_0x10ff65(0x513)+_0x6357ba+'\x20===\x204)\x0a\x09\x09\x09\x09'+_0x6357ba+_0x10ff65(0x286)+_0x4a945c+_0x10ff65(0x41c),_0x4a945c[_0x10ff65(0x491)](_0x6357ba);}return _0x177fc9+=_0x10ff65(0x837)+_0x4a945c+_0x10ff65(0x71a),_0x177fc9;}const readString=typeof process!==_0x105489(0x585)&&process[_0x105489(0x1d4)]?function(_0x17e4bd){let {setPosition:_0x2e9e1c,getPosition:_0x2ecd75,readString:readString}=_0x17e4bd;return _0x388cd1=>{_0x2e9e1c(position);let _0x57ee13=readString(_0x388cd1);return position=_0x2ecd75(),_0x57ee13;};}(new Function(_0x105489(0x3ee),'let\x20position;\x20let\x20readString\x20=\x20'+_0x35ab49()+_0x105489(0x211)+_0x105489(0x402)+'getPosition()\x20{\x20return\x20position\x20},'+'readString\x20}')(fromCharCode)):eval(_0x35ab49());function _0x2a0601(_0x19faef,_0x571af9){if(_0x19faef[_0x571af9]>0x0){let _0x52145e=_0x19faef[_0x571af9];try{return _0x19faef[_0x571af9]=0x0,readString(_0x19faef);}finally{_0x19faef[_0x571af9]=_0x52145e;}}else return readString(_0x19faef);}function _0x2b43a1(_0x5b15cb,_0x3313ae){const _0x26c112=_0x105489;if(typeof _0x5b15cb==_0x26c112(0x677)){if(!_0x5b15cb)return _0x3313ae==null?0x0:-0x1;if(_0x5b15cb[_0x26c112(0x68d)]){if(_0x3313ae==null)return 0x1;else return _0x3313ae[_0x26c112(0x68d)]?_0x5b15cb[_0x26c112(0x68d)](_0x3313ae):-0x1;}let _0x310786;if(_0x3313ae instanceof Array){let _0x4a8093=0x0;while((_0x310786=_0x2b43a1(_0x5b15cb[_0x4a8093],_0x3313ae[_0x4a8093]))==0x0&&_0x4a8093<=_0x5b15cb[_0x26c112(0x61b)]){_0x4a8093++;}return _0x310786;}_0x310786=_0x2b43a1(_0x5b15cb[0x0],_0x3313ae);if(_0x310786==0x0&&_0x5b15cb[_0x26c112(0x61b)]>0x1)return 0x1;return _0x310786;}else{if(typeof _0x5b15cb==typeof _0x3313ae)return typeof _0x5b15cb==='symbol'&&(_0x5b15cb=Symbol[_0x26c112(0x2e1)](_0x5b15cb),_0x3313ae=Symbol['keyFor'](_0x3313ae)),_0x5b15cb<_0x3313ae?-0x1:_0x5b15cb===_0x3313ae?0x0:0x1;else{if(typeof _0x3313ae=='object'){if(_0x3313ae instanceof Array)return-_0x2b43a1(_0x3313ae,_0x5b15cb);return 0x1;}else return _0x15b087[typeof _0x5b15cb]<_0x15b087[typeof _0x3313ae]?-0x1:0x1;}}}const _0x15b087={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x4c3e6f=null,_0x1ed316=new Uint8Array([0xff]);return dist[_0x105489(0x6bc)]=_0x1ed316,dist[_0x105489(0x1ad)]=_0x4c3e6f,dist[_0x105489(0x891)]=_0x2b43a1,dist['enableNullTermination']=_0x369a8f,dist[_0x105489(0x4e8)]=_0x40d004,dist['fromBufferKey']=_0x11d6c0,dist[_0x105489(0x5b8)]=_0x5e6974,dist[_0x105489(0x1c6)]=_0x21a8a3,dist[_0x105489(0x520)]=_0x3ef906,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x538e58=_0x3e8e44;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x1b7554}=requireDist(),_0x132d1b=0x7ba,_0x11f2bc=0x1000;function _0x12e866(_0x5f1cae,_0x3470ca){const _0x16101c=_0x206c;switch(typeof _0x5f1cae){case _0x16101c(0x7f4):return _0x5f1cae['length']<=_0x132d1b&&_0x5f1cae['isWellFormed']();case _0x16101c(0x7e9):case _0x16101c(0x68a):return!![];case _0x16101c(0x677):if(_0x5f1cae===null)return!![];if(Array[_0x16101c(0x63d)](_0x5f1cae)){if(_0x3470ca>0x8||_0x5f1cae['length']>_0x132d1b)return![];for(let _0x1ab0c1=0x0;_0x1ab0c1<_0x5f1cae['length'];_0x1ab0c1++)if(!_0x12e866(_0x5f1cae[_0x1ab0c1],_0x3470ca+0x1))return![];return!![];}return Buffer[_0x16101c(0x3bf)](_0x5f1cae)&&_0x5f1cae['length']<=_0x132d1b;default:return![];}}function _0x99586(_0x13163b,_0x1544bc){const _0x5e32bc=_0x206c,_0x1c53dc=typeof _0x13163b;if(_0x1c53dc==='string'){if(_0x13163b[_0x5e32bc(0x61b)]>=0x40||!_0x13163b[_0x5e32bc(0x894)]()){if(!_0x12e866(_0x13163b,0x0))return-0x1;}}else{if(_0x1c53dc!==_0x5e32bc(0x7e9)){if(Array[_0x5e32bc(0x63d)](_0x13163b)?_0x13163b[_0x5e32bc(0x61b)]===0x0||!_0x12e866(_0x13163b,0x0):!_0x12e866(_0x13163b,0x0))return-0x1;}}let _0x6b4f2c;try{_0x6b4f2c=_0x1b7554(_0x13163b,_0x1544bc,0x0);}catch{return-0x1;}return _0x6b4f2c>0x0&&_0x6b4f2c<=_0x132d1b?_0x6b4f2c:-0x1;}return keyenc={'encodeKey':_0x99586,'KEY_BUF_SIZE':_0x11f2bc,'NO_FAST':Symbol(_0x538e58(0x1c5))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x49294d=_0x3e8e44;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x980772=0x400,_0xed0e02=_0x980772-0x1,_0x11d2ed=0xea60;function _0x3bc0c0(_0x48e75c,_0x4b6842){const _0x398658=_0x206c;return _0x48e75c*_0x980772+Math[_0x398658(0x2cf)](0x0,Math[_0x398658(0x3bb)](_0x4b6842,_0xed0e02));}function _0x5995b2(_0x1522fd){const _0x21ea67=_0x206c,_0x169cdf=Math[_0x21ea67(0x2cf)](0x0,Number(_0x1522fd)||0x0),_0x34d756=_0x169cdf%_0x980772,_0x22d680=(_0x169cdf-_0x34d756)/_0x980772;return{'pt':_0x22d680,'l':_0x34d756};}function _0x23854c(_0x153b31,_0x5810e7=Date['now']()){const _0x2811d6=_0x206c,{pt:_0xe136be,l:_0x3a9b09}=_0x5995b2(_0x153b31),_0x56b116=Math[_0x2811d6(0x2cf)](_0xe136be,_0x5810e7),_0xda6989=_0x56b116===_0xe136be?Math['min'](_0x3a9b09+0x1,_0xed0e02):0x0;return _0x3bc0c0(_0x56b116,_0xda6989);}function _0x2b8873(_0x31ae0c,_0x2ab32b,_0x3c6540=Date[_0x49294d(0x590)]()){const _0x36f99f=_0x49294d,{pt:_0x15a50b,l:_0x3f45ea}=_0x5995b2(_0x31ae0c),{pt:_0x56c264,l:_0x32e949}=_0x5995b2(_0x2ab32b),_0x31a5c5=Math[_0x36f99f(0x2cf)](_0x15a50b,_0x56c264,_0x3c6540);let _0x1f6aee;if(_0x31a5c5===_0x15a50b&&_0x31a5c5===_0x56c264)_0x1f6aee=Math['min'](Math['max'](_0x3f45ea,_0x32e949)+0x1,_0xed0e02);else{if(_0x31a5c5===_0x15a50b)_0x1f6aee=Math[_0x36f99f(0x3bb)](_0x3f45ea+0x1,_0xed0e02);else _0x31a5c5===_0x56c264?_0x1f6aee=Math[_0x36f99f(0x3bb)](_0x32e949+0x1,_0xed0e02):_0x1f6aee=0x0;}return _0x3bc0c0(_0x31a5c5,_0x1f6aee);}function _0x440a4f(_0x4b1780,_0x245af8){const _0x3f4713=Number(_0x4b1780)||0x0,_0x4df5db=Number(_0x245af8)||0x0;if(_0x3f4713<_0x4df5db)return-0x1;if(_0x3f4713>_0x4df5db)return 0x1;return 0x0;}function _0x1c1ea8(_0xfcdc4b){return _0x5995b2(_0xfcdc4b)['pt'];}return okdbHlc={'send':_0x23854c,'recv':_0x2b8873,'compare':_0x440a4f,'toMs':_0x1c1ea8,'encode':_0x3bc0c0,'decode':_0x5995b2,'SCALE':_0x980772,'L_MAX':_0xed0e02,'DRIFT_MAX':_0x11d2ed},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x213896=_0x3e8e44;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x389dae,chunkedRange:_0x16c9a4,pinnedChunks:_0xae8d15,claimPrefetch:_0x3e13f9}=requireIterable(),{reclass:_0x45e4ad,NotImplementedNative:_0x550164,OKDBError:_0x12c0a2,optionsArg:_0x333c97}=requireErrors(),{OKDBViews:_0x11d9d5}=requireViews(),{OKDBQueue:_0x352e71}=requireQueue(),{OKDBTimeMachine:_0x3b6e0b}=requireTimemachine(),_0x21b527=_0x5dab44=>{const _0x11754a=_0x206c;try{return!_0x5dab44[_0x11754a(0x2c9)]||_0x5dab44[_0x11754a(0x2c9)][_0x11754a(0x712)](_0x11754a(0x2a3));}catch{return!![];}},{OKDBFiles:_0xe8a1e9}=requireFiles(),{OKDBEngines:_0x41c713,OKDBPipelines:_0x2fe44a}=requireEngines(),{OKDBFunctions:_0x37862e}=requireFunctions(),_0x5cb262=requireProcessor(),{RawDb:_0x1bf486}=requireRawdb(),_0x281c26=requireBridge();let _0x35a296=null;const _0x598dd8=()=>_0x35a296||=requireOkdbTransaction(),_0x2a25c3=(..._0x28d999)=>requireOkdbGuardedRange()[_0x213896(0x7fe)](..._0x28d999),_0x5bcf40=Buffer[_0x213896(0x3e9)]([0xff]),_0x1e5c5d=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x13cb18=_0x1e5c5d&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0xcc9e74}=requireKeyenc(),_0x40c552=new Set(_0x1e5c5d?[_0x213896(0x416),'byIndex','query',_0x213896(0x7bc),_0x213896(0x6e7)]:[]),_0x23e7e6=new Set([_0x213896(0x212),_0x213896(0x447),_0x213896(0x312),'getRange',_0x213896(0x6e7),_0x213896(0x633),_0x213896(0x2f5),_0x213896(0x6fe),'getIndex','byIndex',_0x213896(0x5fa),_0x213896(0x52e),'assertQueryOptions',_0x213896(0x7c9),'getClock',_0x213896(0x7bc),'count',_0x213896(0x590),_0x213896(0x480),_0x213896(0x6e0),'hasIndex',_0x213896(0x7cb),_0x213896(0x62f),'pinned','unpin',_0x213896(0x74b),_0x213896(0x29b),'getUniqueViolation','getSchema','getViolation',_0x213896(0x1f3),_0x213896(0x7af),_0x213896(0x812),_0x213896(0x85b),_0x213896(0x4a9),'ttlStats','getDefaultTTL','name','path','id',_0x213896(0x875),_0x213896(0x231),_0x213896(0x5a9),_0x213896(0x3c5),_0x213896(0x27c)]),_0x44ada2=new Set([_0x213896(0x40c),_0x213896(0x3f2),_0x213896(0x373),_0x213896(0x617),_0x213896(0x897),_0x213896(0x6e5),_0x213896(0x3be),'versions',_0x213896(0x77f),_0x213896(0x6ef),_0x213896(0x2c3),_0x213896(0x868),'valuesForKey',_0x213896(0x3a0)]);function _0x3086a7(_0x6659f7,_0x3cc362,_0x32722c){const _0x4d3df0=new Map();return(_0x1535e2,_0x2ebe67)=>{const _0x349dbe=_0x206c,_0x21067c=JSON['stringify'](_0x2ebe67),_0x191f5b=_0x4d3df0[_0x349dbe(0x212)](_0x21067c);if(_0x191f5b){if(_0x191f5b[_0x349dbe(0x5ef)]==='pending')throw _0x2e659f();_0x4d3df0[_0x349dbe(0x588)](_0x21067c);if(_0x191f5b[_0x349dbe(0x5ef)]===_0x349dbe(0x1ca))throw _0x191f5b[_0x349dbe(0x37e)];return _0x191f5b[_0x349dbe(0x37e)];}const _0x5295bf=_0x1535e2(..._0x2ebe67);if(!_0x5295bf||typeof _0x5295bf['then']!==_0x349dbe(0x6a3))return _0x5295bf;const _0x9aef99={'state':_0x349dbe(0x505),'value':undefined},_0x4b3082=(_0x5a0bd6,_0x43ad0d)=>{const _0x443c21=_0x349dbe;_0x9aef99['state']=_0x5a0bd6,_0x9aef99[_0x443c21(0x37e)]=_0x43ad0d;if(_0x4d3df0['get'](_0x21067c)!==_0x9aef99)return;setTimeout(()=>_0x4d3df0[_0x443c21(0x212)](_0x21067c)===_0x9aef99&&_0x4d3df0['delete'](_0x21067c),0x7530)['unref']();try{_0x6659f7[_0x443c21(0x7ea)][_0x443c21(0x8ac)](_0x443c21(0x85d),null,_0x443c21(0x749),['field:resolver_registered',{'env':_0x6659f7['name'],'type':_0x3cc362,'field':_0x32722c}],!![]);}catch{}};_0x5295bf[_0x349dbe(0x8b4)](_0x18c7b0=>_0x4b3082('ok',_0x18c7b0),_0x3bf825=>_0x4b3082(_0x349dbe(0x1ca),_0x3bf825));for(let _0x8695ca=0x0;_0x8695ca<0x64&&_0x9aef99['state']===_0x349dbe(0x505);_0x8695ca++)process[_0x349dbe(0x67a)]();if(_0x9aef99['state']==='ok')return _0x9aef99[_0x349dbe(0x37e)];if(_0x9aef99['state']===_0x349dbe(0x1ca))throw _0x9aef99[_0x349dbe(0x37e)];_0x4d3df0[_0x349dbe(0x280)](_0x21067c,_0x9aef99);throw _0x2e659f();};}function _0x2e659f(){const _0xed3c46=_0x213896;return Object['assign'](new Error(_0xed3c46(0x360)),{'code':'FIELD_RESOLVER_PENDING'});}class _0x2a2d4f{constructor(_0x556d49,_0x34a852){const _0x3901d8=_0x213896;this[_0x3901d8(0x7ea)]=_0x556d49,this[_0x3901d8(0x781)]=_0x34a852,this['events']=_0x556d49[_0x3901d8(0x85d)],this['log']=_0x556d49[_0x3901d8(0x4ce)],this[_0x3901d8(0x65c)]=!![],this['_txnBuf']=null,this[_0x3901d8(0x334)]=new _0x11d9d5(this),this[_0x3901d8(0x726)]=new _0x5cb262(this);if(!_0x34a852['startsWith']('~')||_0x34a852['includes'](':emb:'))this[_0x3901d8(0x2bf)]=new _0x352e71(this);if(!_0x34a852[_0x3901d8(0x747)]('~'))this[_0x3901d8(0x32c)]=new _0xe8a1e9(this);this['functions']=new _0x37862e(_0x556d49,_0x34a852),this['engines']=new _0x41c713(_0x556d49,_0x34a852,_0x556d49[_0x3901d8(0x873)]),this[_0x3901d8(0x5a0)]=new _0x2fe44a(_0x556d49,_0x34a852);if(!_0x34a852[_0x3901d8(0x747)]('~')&&_0x556d49['options'][_0x3901d8(0x2a3)]&&_0x21b527(_0x556d49))this['timeMachine']=new _0x3b6e0b(this);_0x281c26[_0x3901d8(0x512)](this[_0x3901d8(0x7b1)],this);const _0x42f5de=this;this[_0x3901d8(0x1a5)]={async 'transaction'(_0x3347e3){const _0x513abd=_0x3901d8,_0x349158=[];_0x42f5de[_0x513abd(0x630)]=_0x349158;try{_0x3347e3();}finally{_0x42f5de['_txnBuf']=null;}return _0x42f5de[_0x513abd(0x7ea)][_0x513abd(0x359)][_0x513abd(0x37b)](_0x513abd(0x2a8),_0x42f5de[_0x513abd(0x781)],'commit',[_0x349158]);},'drain'(){const _0x2dae78=_0x3901d8;return _0x42f5de[_0x2dae78(0x7ea)][_0x2dae78(0x359)]['drain']();},'flushLmdb'(){const _0x378607=_0x3901d8;return _0x42f5de[_0x378607(0x7ea)][_0x378607(0x359)]['drain']();},'markClosed'(){}};const _0x1cb37d=new _0x1bf486(this,'');_0x1cb37d[_0x3901d8(0x8a6)]=()=>({'lastTxnId':this['_n'](_0x3901d8(0x875),[])}),Object[_0x3901d8(0x2a1)](_0x1cb37d,_0x3901d8(0x5ac),{'get':()=>this['okdb'][_0x3901d8(0x359)][_0x3901d8(0x674)](),'configurable':!![]}),Object['defineProperty'](_0x1cb37d,_0x3901d8(0x381),{'get':()=>this[_0x3901d8(0x7ea)][_0x3901d8(0x359)][_0x3901d8(0x674)](),'configurable':!![]});const _0x3d4062=_0x1cb37d[_0x3901d8(0x212)][_0x3901d8(0x501)](_0x1cb37d);_0x1cb37d[_0x3901d8(0x212)]=_0x4551f8=>_0x4551f8==='clock'?this['_n'](_0x3901d8(0x740),[null]):_0x3d4062(_0x4551f8),this['db']=_0x1cb37d;}async[_0x213896(0x31a)](){const _0x1ab0ca=_0x213896;this[_0x1ab0ca(0x829)]=!![];}get[_0x213896(0x28c)](){const _0x2ddcc9=_0x213896;return new Map(this[_0x2ddcc9(0x7ea)]['_call']('db',null,_0x2ddcc9(0x5cd),[this[_0x2ddcc9(0x781)]],![]));}get[_0x213896(0x2d7)](){const _0x443fff=_0x213896;return this['_typesDb']||(this[_0x443fff(0x365)]=new _0x1bf486(this,'types'));}['_getType'](_0x57dc1d){const _0x510324=_0x213896,_0x551374=this['typesDb'][_0x510324(0x212)](_0x57dc1d);if(_0x551374===undefined||String(_0x57dc1d)[_0x510324(0x747)](_0x510324(0x380))||String(_0x57dc1d)['startsWith'](_0x510324(0x595))){const {OKDBError:_0x1d4276}=requireErrors();throw new _0x1d4276(_0x510324(0x35f)+_0x57dc1d+_0x510324(0x1e5),_0x510324(0x4f9),{'type':_0x57dc1d});}const _0x428419=this,_0x37bf6c=new _0x1bf486(_0x428419,'type:'+_0x57dc1d+_0x510324(0x3cd)),_0x4b6184=new Map();for(const _0x46668e of _0x37bf6c[_0x510324(0x6e7)]()){const _0x155856=_0x37bf6c[_0x510324(0x212)](_0x46668e)||{},_0x182948={'parts':_0x46668e[_0x510324(0x6be)]('~'),'db':new _0x1bf486(_0x428419,_0x510324(0x7d3)+_0x57dc1d+_0x510324(0x7fb)+_0x46668e,{'dupSort':!![]})};if(_0x155856[_0x510324(0x810)])_0x182948['geoConfig']=_0x155856[_0x510324(0x810)];if(_0x155856['unique'])_0x182948[_0x510324(0x24f)]=!![];if(_0x155856[_0x510324(0x52c)])_0x182948[_0x510324(0x52c)]=!![];if(_0x155856['createdBy'])_0x182948['createdBy']=_0x155856['createdBy'];_0x182948['usedBy']=new Set((_0x155856['usedBy']??[])[_0x510324(0x255)](_0x25ac00=>_0x25ac00[_0x510324(0x233)]+':'+_0x25ac00[_0x510324(0x781)])),_0x4b6184[_0x510324(0x280)](_0x46668e,_0x182948);}return{'root':new _0x1bf486(_0x428419,_0x510324(0x7d3)+_0x57dc1d),'data':new _0x1bf486(_0x428419,'type:'+_0x57dc1d+_0x510324(0x4b5),{'useVersions':!![]}),'indexes':_0x37bf6c,'clockToChange':new _0x1bf486(_0x428419,_0x510324(0x7d3)+_0x57dc1d+_0x510324(0x221)),'keyToChange':new _0x1bf486(_0x428419,_0x510324(0x7d3)+_0x57dc1d+':keyToChange'),'fieldSchema':new Map(Object['entries'](_0x551374[_0x510324(0x61d)]||{})[_0x510324(0x255)](([_0x1449bf,_0x4781f8])=>[_0x1449bf,new Set(Array['isArray'](_0x4781f8)?_0x4781f8:[_0x4781f8])])),'indexToDb':_0x4b6184,'ftsToDb':null,'schema':_0x551374[_0x510324(0x627)]||null,'defaultTTL':_0x551374['defaultTTL']||null};}get['typeSubDbs'](){const _0x5f387b=_0x213896,_0x2a36a3=this,_0x2ee417=()=>_0x2a36a3['listTypes']();return{'get':_0x49f02b=>{const _0x192814=_0x206c;try{return _0x2a36a3[_0x192814(0x581)](_0x49f02b);}catch{return undefined;}},'has':_0x172a46=>_0x2ee417()[_0x5f387b(0x417)](_0x172a46),'keys':()=>_0x2ee417()[Symbol[_0x5f387b(0x1c7)]](),get 'size'(){return _0x2ee417()['length'];}};}[_0x213896(0x498)](){return this['listTypes']();}get['changeToClockDb'](){const _0x36a1d6=_0x213896;return this['_changeToClockDb']||(this[_0x36a1d6(0x455)]=new _0x1bf486(this,'changes'));}get[_0x213896(0x650)](){const _0x55520f=_0x213896;return this[_0x55520f(0x4e4)]||(this[_0x55520f(0x4e4)]=new _0x1bf486(this,_0x55520f(0x31b)));}[_0x213896(0x3fb)](_0x23a42a){const _0x1bc7e5=_0x213896;return this['_n'](_0x1bc7e5(0x457),[_0x23a42a]);}get[_0x213896(0x1e3)](){const _0x4ce0b5=_0x213896;return!this['_n'](_0x4ce0b5(0x368),[],![]);}get[_0x213896(0x4ff)](){const _0x55fe6a=_0x213896;return this[_0x55fe6a(0x6de)]!==undefined?this[_0x55fe6a(0x6de)]:this['_n'](_0x55fe6a(0x368),[],![]);}set['_sync'](_0x310d3f){const _0x416208=_0x213896;this[_0x416208(0x6de)]=_0x310d3f;}get[_0x213896(0x298)](){const _0x467e99=_0x213896;return this[_0x467e99(0x5f6)]||(this[_0x467e99(0x5f6)]=new(requireLock())[(_0x467e99(0x72a))](this[_0x467e99(0x7ea)],_0x467e99(0x1a3),'compact',{'ttlMs':0xea60}));}get[_0x213896(0x7b1)](){const _0x4f2424=_0x213896;return this['_path']??(this[_0x4f2424(0x736)]=this['_n'](_0x4f2424(0x7b1),[]));}get['id'](){return this['_n']('id',[]);}get[_0x213896(0x238)](){const _0x240d4f=_0x213896;return this[_0x240d4f(0x7ea)][_0x240d4f(0x238)];}['_n'](_0x58b20d,_0x5e400f){const _0x56ec3f=_0x213896;return this[_0x56ec3f(0x7ea)][_0x56ec3f(0x8ac)](_0x56ec3f(0x2a8),this[_0x56ec3f(0x781)],_0x58b20d,_0x5e400f,!_0x23e7e6[_0x56ec3f(0x764)](_0x58b20d));}[_0x213896(0x223)](_0x2f2b35){const _0x2f7178=_0x213896;return this['okdb'][_0x2f7178(0x431)](_0x2f2b35);}[_0x213896(0x543)](_0x457ee4,_0x313d9b){const _0x54c9be=_0x213896;if(_0x40c552[_0x54c9be(0x764)](_0x457ee4===_0x54c9be(0x61c)?_0x313d9b[0x1]:_0x457ee4))return this[_0x54c9be(0x7ea)][_0x54c9be(0x42d)](this[_0x54c9be(0x781)],_0x457ee4,_0x313d9b);return this[_0x54c9be(0x7ea)]['_callPacked'](_0x54c9be(0x2a8),this['name'],_0x457ee4,_0x313d9b);}[_0x213896(0x2c3)](_0x5232ca={'useReadTransaction':![]}){return new(_0x598dd8())(this,_0x5232ca);}async[_0x213896(0x6d6)](_0x584a9d,_0x260751){const _0x38cbb8=_0x213896;return _0x598dd8()[_0x38cbb8(0x865)](this,_0x584a9d,_0x260751);}['_low'](_0x435561,_0x2e070c){const _0x11843c=_0x213896;if(this[_0x11843c(0x630)])this['_txnBuf'][_0x11843c(0x491)]({'action':_0x435561,'args':_0x2e070c});else this['_n'](_0x435561,_0x2e070c);}['_put'](_0xfe132,_0x22e371,_0x30e5ed,_0x18860b,_0x21d8af){const _0x4d8207=_0x213896;this[_0x4d8207(0x69c)](_0x4d8207(0x3fe),[_0x22e371,_0x30e5ed,_0x18860b,_0x21d8af]);}[_0x213896(0x4e7)](_0x329e44,_0x288cd4,_0x545c98,_0x262500,_0x48adbc){const _0x2167a5=_0x213896;this[_0x2167a5(0x69c)]('update',[_0x288cd4,_0x545c98,_0x262500,_0x48adbc]);}[_0x213896(0x1d8)](_0x3d11cd,_0x119881,_0xe12988,_0x24014b,_0x212b21){this['_low']('patch',[_0x119881,_0xe12988,_0x24014b,_0x212b21]);}[_0x213896(0x7c2)](_0x572e3e,_0x1c8142,_0x122a62,_0x465fc6,_0x4d6578){const _0x5e71ef=_0x213896;this[_0x5e71ef(0x69c)]('create',[_0x1c8142,_0x122a62,_0x465fc6,_0x4d6578]);}[_0x213896(0x313)](_0x190148,_0x24abae,_0xfa9665,_0x4f17e2){const _0x335070=_0x213896;this[_0x335070(0x69c)](_0x335070(0x248),[_0x24abae,_0xfa9665,_0x4f17e2]);}['_setTTL'](_0x46db98,_0x4305c5,_0x5a9cd1,_0x3c2c9b){const _0x4729c2=_0x213896;this[_0x4729c2(0x69c)]('setTTL',[_0x4305c5,_0x5a9cd1,_0x3c2c9b]);}[_0x213896(0x42a)](_0x46ce72,_0x25605f,_0x184b19){const _0x4d1bf9=_0x213896;this['_low'](_0x4d1bf9(0x1e4),[_0x25605f,_0x184b19]);}['_w'](_0x255e63,_0x3e9b6b){const _0x5eedf6=_0x213896;return this['okdb'][_0x5eedf6(0x359)][_0x5eedf6(0x37b)](_0x5eedf6(0x2a8),this['name'],_0x255e63,_0x3e9b6b);}['put'](_0x2f7ee5,_0x37eafc,_0xc1dcee,_0x4d7958={}){const _0x28513a=_0x213896;return this['_w'](_0x28513a(0x3fe),[_0x2f7ee5,_0x37eafc,_0xc1dcee,_0x4d7958]);}[_0x213896(0x625)](_0x441bcf,_0x1902e2,_0x4a0b65,_0x40fa00={}){return this['_w']('update',[_0x441bcf,_0x1902e2,_0x4a0b65,_0x40fa00]);}[_0x213896(0x2b7)](_0x412f03,_0x115b61,_0x2e428d,_0x3835a2={}){const _0x3c066a=_0x213896;return this['_w'](_0x3c066a(0x2b7),[_0x412f03,_0x115b61,_0x2e428d,_0x3835a2]);}['create'](_0x8b8064,_0x685471,_0x143eb5,_0x38e5f2={}){const _0x3dfa36=_0x213896;return this['_w'](_0x3dfa36(0x239),[_0x8b8064,_0x685471,_0x143eb5,_0x38e5f2]);}[_0x213896(0x248)](_0xa35142,_0x398f97,_0x3388e1={}){const _0x5eb31b=_0x213896;return this['_w'](_0x5eb31b(0x248),[_0xa35142,_0x398f97,_0x3388e1]);}['get'](_0x5c6a8b,_0x247766,_0x3e596e){const _0x49fee2=_0x213896;if(_0x13cb18&&typeof _0x5c6a8b==='string'){const _0x4e8089=this['okdb'][_0x49fee2(0x50e)](this['name'],_0x5c6a8b,_0x247766);if(_0x4e8089!==_0xcc9e74)return _0x4e8089===null?this['_n'](_0x49fee2(0x212),[_0x5c6a8b,_0x247766]):_0x4e8089;}if(_0x1e5c5d&&(typeof _0x247766===_0x49fee2(0x7f4)||typeof _0x247766===_0x49fee2(0x7e9))){const _0x423149=this['okdb'][_0x49fee2(0x5e4)](this['name'],_0x5c6a8b,_0x247766);if(_0x423149!==null)return _0x423149;}return this['_n'](_0x49fee2(0x212),[_0x5c6a8b,typeof _0x247766===_0x49fee2(0x19d)?null:_0x247766]);}['getMany'](_0x106bf5,_0x14ad97,_0x5ba7c3){const _0x2a0bf5=_0x213896,_0x2b72d8=[_0x106bf5,Array[_0x2a0bf5(0x63d)](_0x14ad97)&&_0x14ad97[_0x2a0bf5(0x1f7)](_0x10d5c2=>typeof _0x10d5c2===_0x2a0bf5(0x19d))?_0x14ad97[_0x2a0bf5(0x255)](_0x36ca1b=>typeof _0x36ca1b==='symbol'?null:_0x36ca1b):_0x14ad97];return _0x1e5c5d?this['okdb'][_0x2a0bf5(0x42d)](this[_0x2a0bf5(0x781)],_0x2a0bf5(0x312),_0x2b72d8):this['_n'](_0x2a0bf5(0x312),_0x2b72d8);}['getEntry'](_0x38299a,_0x46826e,_0xc1062a){const _0x1eef61=_0x213896;return this['_n'](_0x1eef61(0x447),[_0x38299a,typeof _0x46826e==='symbol'?null:_0x46826e]);}[_0x213896(0x2f5)](_0x42a800,_0xea1210){const _0x54ee9f=_0x213896;return this[_0x54ee9f(0x287)](_0x54ee9f(0x2f5),_0xea1210),this['_n']('getCount',[_0x42a800,_0x1e8da0(_0xea1210)]);}['_assertRangeOptions'](_0x3bfc8c,_0x48c275,_0x26036e=[]){const _0x32e8f9=_0x213896;if(!_0x48c275||typeof _0x48c275!==_0x32e8f9(0x677))return;for(const _0x13e3f8 of Object[_0x32e8f9(0x362)](_0x48c275)){if(!_0x44ada2['has'](_0x13e3f8)&&!_0x26036e[_0x32e8f9(0x417)](_0x13e3f8))throw new _0x12c0a2(_0x3bfc8c+_0x32e8f9(0x562)+_0x13e3f8+'\x27',_0x32e8f9(0x885),{'option':_0x13e3f8});}}[_0x213896(0x4b3)](_0x179b84,_0x440cab,_0x532167,_0x4c44ff,_0x393d4e,_0x116e20){const _0x5cfeb0=_0x213896;this[_0x5cfeb0(0x287)](_0x179b84,_0x4c44ff);const _0xe836bc=_0x4c44ff?.['snapshot'],_0x5b40d3=_0x1e8da0(_0x4c44ff);if(_0xe836bc===!![]||_0xe836bc===_0x5cfeb0(0x730)){const _0x6e9fc0=this[_0x5cfeb0(0x275)](_0x179b84,_0x440cab,_0x22bc44=>[_0x532167,{..._0x5b40d3,..._0x22bc44}],_0x4c44ff);return _0x116e20?_0x6e9fc0[_0x5cfeb0(0x255)](_0x116e20):_0x6e9fc0;}const _0x53def2=_0x16c9a4(_0x54efba=>this['_np'](_0x440cab,[_0x532167,_0x54efba]),_0x5b40d3,_0x393d4e,{'rows':_0x440cab===_0x5cfeb0(0x416)});return _0x116e20?_0x53def2[_0x5cfeb0(0x255)](_0x116e20):_0x53def2;}[_0x213896(0x275)](_0x2a7a00,_0x159ec3,_0x1b01f8,_0x819994,_0x429463,_0x2dd561=![]){const _0x4e5feb=_0x213896,{source:_0x420f6d,prefetch:_0xd48934}=_0xae8d15((_0x2dc915,_0x3086d6)=>_0x2dc915==='unpin'?this['_n'](_0x2dc915,_0x3086d6):this[_0x4e5feb(0x543)](_0x2dc915,_0x3086d6),_0x159ec3,_0x1b01f8,_0x819994||{},_0x429463),_0x6ee04=_0xd48934(),_0x1db575=!_0x2dd561&&_0x819994&&_0x819994['snapshot']===_0x4e5feb(0x730);let _0xb37ba4=null;return _0x2a25c3(()=>({[Symbol[_0x4e5feb(0x1c7)]]:()=>_0xb37ba4=_0x420f6d(0x0,_0x3e13f9(_0x6ee04))}),{'label':this[_0x4e5feb(0x781)]+':'+_0x2a7a00,..._0x1db575?{'getTxnId':()=>this['db'][_0x4e5feb(0x8a6)]()[_0x4e5feb(0x875)],'resume':()=>({[Symbol[_0x4e5feb(0x1c7)]]:()=>_0xb37ba4=_0xb37ba4[_0x4e5feb(0x72e)]()})}:{}});}['getRange'](_0x412c42,_0x392d68){const _0x32af8c=_0x213896;return this[_0x32af8c(0x4b3)](_0x32af8c(0x416),_0x32af8c(0x416),_0x412c42,_0x392d68,_0x5846c8=>_0x5846c8[_0x32af8c(0x868)]);}['getKeys'](_0x38c3cd,_0x91442f){const _0x415850=_0x213896;return this[_0x415850(0x4b3)]('getKeys',_0x415850(0x6e7),_0x38c3cd,_0x91442f,_0x483f04=>_0x483f04);}[_0x213896(0x633)](_0x1980ae,_0x1b3533){const _0x4a79a5=_0x213896;return this[_0x4a79a5(0x4b3)](_0x4a79a5(0x633),_0x4a79a5(0x416),_0x1980ae,_0x1b3533,_0x34267a=>_0x34267a[_0x4a79a5(0x868)],_0x42bcdf=>_0x42bcdf[_0x4a79a5(0x37e)]);}[_0x213896(0x6fe)](_0x38e0c1,_0x18757f,_0x5306c4={}){const _0x2074ad=_0x213896;return this[_0x2074ad(0x416)](_0x38e0c1,{'start':_0x18757f,'end':_0x18757f+'￿',..._0x5306c4});}['getIndex'](_0x1a5a85,_0x30186e,_0x3b87d7={}){const _0x5de460=_0x213896;this[_0x5de460(0x287)](_0x5de460(0x83f),_0x3b87d7,[_0x5de460(0x3a0)]);const _0x4c564a=_0x1e8da0(_0x3b87d7);if(_0x3b87d7&&_0x3b87d7[_0x5de460(0x2c3)])return _0x389dae(this['_n'](_0x5de460(0x83f),[_0x1a5a85,_0x30186e,_0x4c564a]));return this[_0x5de460(0x275)]('getIndex','getIndex',_0xda937e=>[_0x1a5a85,_0x30186e,{..._0x4c564a,..._0xda937e}],_0x3b87d7,undefined,!![]);}[_0x213896(0x7ee)](_0xa18208,_0x1e4b98,_0xe0e442){const _0xb472f4=_0x213896;this[_0xb472f4(0x287)](_0xb472f4(0x7ee),_0xe0e442,['prefix','includeViolations']);const _0xc84e02=_0x1e8da0(_0xe0e442);if(_0xe0e442&&_0xe0e442[_0xb472f4(0x2c3)])return _0x389dae(this['_n']('byIndex',[_0xa18208,_0x1e4b98,_0xc84e02]));return this[_0xb472f4(0x275)](_0xb472f4(0x7ee),_0xb472f4(0x7ee),_0x562237=>[_0xa18208,_0x1e4b98,{..._0xc84e02,..._0x562237}],_0xe0e442,undefined,!![]);}[_0x213896(0x5fa)](_0x186958,_0x491b52,_0x1f5675={}){const _0x2407be=_0x213896;return this['_n'](_0x2407be(0x5fa),[_0x186958,_0x491b52,_0x1e8da0(_0x1f5675)]);}[_0x213896(0x52e)](_0x14be4e,_0x45f378={},_0x2df9c8={}){const _0x34653a=_0x213896,_0x1f8233=_0x231c9f(_0x2df9c8);if(_0x2df9c8){for(const _0x41b378 of Object['keys'](_0x2df9c8))if(_0x41b378!==_0x34653a(0x4c5)&&typeof _0x2df9c8[_0x41b378]==='function')_0x1f8233[_0x41b378]=null;}if(_0x2df9c8&&(_0x2df9c8[_0x34653a(0x71f)]||_0x2df9c8[_0x34653a(0x4c2)]))return this['_n'](_0x34653a(0x758),[_0x1f8233]),this[_0x34653a(0x67c)](_0x14be4e,_0x45f378,_0x2df9c8);const _0x1b7e8a=typeof _0x2df9c8['select']===_0x34653a(0x6a3)?_0x2df9c8[_0x34653a(0x4c5)]:null;if(_0x2df9c8[_0x34653a(0x41f)]||_0x129203(_0x45f378)||_0x2df9c8[_0x34653a(0x2c3)]!==undefined){let _0x2cb366=this['_n'](_0x34653a(0x52e),[_0x14be4e,_0x45f378,_0x1f8233]);if(_0x1b7e8a)_0x2cb366=_0x2cb366['map'](_0x1b7e8a);if(_0x2df9c8[_0x34653a(0x41f)]||_0x129203(_0x45f378))return _0x2cb366;return _0x389dae(_0x2cb366);}const _0x1502fc=_0x1b40c5=>typeof _0x1b40c5===_0x34653a(0x7e9)&&Number[_0x34653a(0x7ab)](_0x1b40c5)?Math['max'](0x0,_0x1b40c5):Infinity;let _0x5d6f2b;if(_0x2df9c8[_0x34653a(0x2e6)]){const _0x5fe934=_0x3a190c=>typeof _0x3a190c===_0x34653a(0x7e9)&&_0x3a190c>0x0?Math[_0x34653a(0x673)](_0x3a190c):0x0;_0x5d6f2b=this[_0x34653a(0x275)](_0x34653a(0x52e),_0x34653a(0x52e),_0x426372=>[_0x14be4e,_0x45f378,{..._0x1f8233,..._0x426372}],null,{'limitOf':()=>_0x1502fc(_0x1f8233[_0x34653a(0x617)]),'offsetOf':()=>_0x5fe934(_0x1f8233[_0x34653a(0x897)])});}else _0x5d6f2b=_0x16c9a4(_0x2c90b7=>{const _0x4caaa2=_0x34653a,{__after:_0x6c7c4f,..._0x481318}=_0x2c90b7;return this['_np'](_0x4caaa2(0x52e),_0x6c7c4f===undefined?[_0x14be4e,_0x45f378,_0x481318]:[_0x14be4e,_0x45f378,_0x481318,_0x6c7c4f]);},_0x1f8233,_0x505890=>_0x505890['key'],{'limitOf':_0x1502fc,'rows':!![],'prefetch':!![],'resumeOpts':(_0x739604,_0x2f42d8)=>{const _0x2597c6=_0x34653a;_0x739604['offset']=0x0,_0x739604[_0x2597c6(0x26c)]=_0x2f42d8;}});return _0x1b7e8a?_0x5d6f2b[_0x34653a(0x255)](_0x1b7e8a):_0x5d6f2b;}async[_0x213896(0x67c)](_0x15d08b,_0x21c73d,_0xc92dda){const _0x6a6f34=_0x213896,{select:_0x23ba0a,..._0x55db48}=_0x231c9f(_0xc92dda);let _0x2bc440={..._0x55db48};const _0x50077c=_0x2bc440[_0x6a6f34(0x2e6)];if(_0x50077c&&!Array[_0x6a6f34(0x63d)](_0x50077c)&&typeof _0x50077c===_0x6a6f34(0x677)&&_0x50077c[_0x6a6f34(0x61d)]){const {fields:_0x13c1b9,prefix:_0x3125b4,start:_0x9475f7,end:_0x4c7ef8}=_0x50077c;_0x2bc440={..._0x2bc440,'index':_0x13c1b9,'prefix':_0x3125b4??_0x2bc440['prefix'],'startIndex':_0x9475f7??_0x2bc440[_0x6a6f34(0x1e1)],'endIndex':_0x4c7ef8??_0x2bc440[_0x6a6f34(0x52b)]};}const _0x3b039c=await this[_0x6a6f34(0x7ea)][_0x6a6f34(0x65f)]('embeddings',null,_0x6a6f34(0x377),[this['name'],_0x15d08b,_0x21c73d,_0x2bc440],![]),_0x655c35=typeof _0xc92dda[_0x6a6f34(0x4c5)]===_0x6a6f34(0x6a3)?_0xc92dda[_0x6a6f34(0x4c5)]:null;if(!_0x655c35)return _0x3b039c;return _0x3b039c[_0x6a6f34(0x255)](_0x25e77b=>{const _0x1fab47=_0x6a6f34,{score:_0x4f3240,ftsScore:_0x51c012,numTerms:_0x2aaa90,maxScore:_0x5d92a1,vectorScore:_0x472caa,chunkHash:_0x262610,chunk:_0x2b937d,..._0x3e9516}=_0x25e77b,_0xfd1526=_0x655c35(_0x3e9516);for(const [_0xfec9e2,_0x5483c4]of Object[_0x1fab47(0x375)]({'score':_0x4f3240,'ftsScore':_0x51c012,'numTerms':_0x2aaa90,'maxScore':_0x5d92a1,'vectorScore':_0x472caa,'chunkHash':_0x262610,'chunk':_0x2b937d}))if(_0x5483c4!==undefined)_0xfd1526[_0xfec9e2]=_0x5483c4;return _0xfd1526;});}['geoQuery'](_0x803050,_0x59b530,_0x3e8bf3={}){const _0x378c1d=_0x213896;let _0x5b3290=this['_n'](_0x378c1d(0x7c9),[_0x803050,_0x59b530,_0x231c9f(_0x3e8bf3)]);if(typeof _0x3e8bf3[_0x378c1d(0x4c5)]===_0x378c1d(0x6a3))_0x5b3290=_0x5b3290['map'](_0x3e8bf3[_0x378c1d(0x4c5)]);return _0x5b3290;}[_0x213896(0x740)](_0x12c911=null,_0x553469={}){const _0x5d50d9=_0x213896;return this['_n'](_0x5d50d9(0x740),[_0x12c911]);}[_0x213896(0x7bc)](_0x30b3e3=null,_0x22566d=0x0,_0x143903=Number['MAX_SAFE_INTEGER'],_0x3afc3f={}){const _0x2992de=_0x213896,_0x1f1148=_0x1e8da0(_0x3afc3f);if(_0x3afc3f&&_0x3afc3f['transaction'])return _0x389dae(this['_n'](_0x2992de(0x7bc),[_0x30b3e3,_0x22566d,_0x143903,_0x1f1148]));return this[_0x2992de(0x275)](_0x2992de(0x7bc),'getChanges',_0x596e6f=>[_0x30b3e3,_0x22566d,_0x143903,{..._0x1f1148,..._0x596e6f}],_0x3afc3f);}[_0x213896(0x2eb)](_0x4fc1f9){const _0x2c63e1=_0x213896;if(Array[_0x2c63e1(0x63d)](_0x4fc1f9))return _0x4fc1f9['length'];let _0x253ae2=0x0;for(const _0x1276b4 of _0x4fc1f9)_0x253ae2++;return _0x253ae2;}*[_0x213896(0x21f)](_0x28269c){yield*_0x28269c;}[_0x213896(0x590)](){const _0x665778=_0x213896;return requireOkdbHlc()[_0x665778(0x36e)](this[_0x665778(0x817)]);}get[_0x213896(0x8a8)](){const _0xac63b5=_0x213896,_0x2fd826=this[_0xac63b5(0x7ea)]['_isOpen']?this[_0xac63b5(0x7ea)][_0xac63b5(0x8ac)]('db',null,_0xac63b5(0x262),[this[_0xac63b5(0x781)]],![]):null;if(!_0x2fd826)return null;if(this[_0xac63b5(0x767)]===_0x2fd826[_0xac63b5(0x553)])return null;this[_0xac63b5(0x2fa)]=this[_0xac63b5(0x2fa)]||new Map();let _0x2972aa=this['_timerObjs'][_0xac63b5(0x212)](_0x2fd826[_0xac63b5(0x553)]);if(!_0x2972aa){const _0x34b615=this;_0x2972aa={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x2fd826[_0xac63b5(0x553)],'at':_0x2fd826['at'],'target':_0x2fd826[_0xac63b5(0x328)],get '_destroyed'(){const _0x123ba9=_0xac63b5,_0x374924=_0x34b615[_0x123ba9(0x7ea)][_0x123ba9(0x65c)]?_0x34b615[_0x123ba9(0x7ea)][_0x123ba9(0x8ac)]('db',null,_0x123ba9(0x262),[_0x34b615[_0x123ba9(0x781)]],![]):null;return!_0x374924||_0x374924['gen']!==this['gen']||_0x34b615[_0x123ba9(0x767)]===this[_0x123ba9(0x553)];}},this[_0xac63b5(0x2fa)][_0xac63b5(0x280)](_0x2fd826[_0xac63b5(0x553)],_0x2972aa);}return _0x2972aa;}['_cancelTTLTimeout'](){const _0x525fcf=_0x213896,_0x1f94dd=this[_0x525fcf(0x7ea)][_0x525fcf(0x8ac)]('db',null,_0x525fcf(0x262),[this['name']],![]);if(_0x1f94dd)this[_0x525fcf(0x767)]=_0x1f94dd[_0x525fcf(0x553)];}get[_0x213896(0x6f2)](){const _0x565645=_0x213896,_0x4c7b93=this[_0x565645(0x7ea)][_0x565645(0x8ac)]('db',null,_0x565645(0x262),[this['name']],![]);return _0x4c7b93?_0x4c7b93['target']:null;}get[_0x213896(0x3d1)](){const _0x329f87=_0x213896;return this[_0x329f87(0x7ea)][_0x329f87(0x8ac)]('db',null,_0x329f87(0x801),[this[_0x329f87(0x781)]],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x34b3d2=_0x213896;this[_0x34b3d2(0x7ea)]['_call']('db',null,_0x34b3d2(0x361),[this[_0x34b3d2(0x781)]],![]);}[_0x213896(0x1cb)](){const _0x27d36e=_0x213896;this[_0x27d36e(0x7ea)][_0x27d36e(0x8ac)]('db',null,_0x27d36e(0x626),[this[_0x27d36e(0x781)]],![]);}get[_0x213896(0x5a2)](){const _0x434559=_0x213896,_0x104256=(_0x279de7,_0x2b59f1)=>this[_0x434559(0x7ea)]['_call']('db',null,_0x279de7,[this[_0x434559(0x781)],..._0x2b59f1],![]),_0x3a5a1b=Object['keys'](_0x104256(_0x434559(0x3c6),[])||{}),_0x1e7de2={};for(const _0x1e52a5 of _0x3a5a1b)Object['defineProperty'](_0x1e7de2,_0x1e52a5,{'enumerable':!![],'get':()=>_0x104256(_0x434559(0x3c6),[])?.[_0x1e52a5],'set':_0x4a5d62=>{const _0x3f24c8=_0x434559;_0x104256(_0x3f24c8(0x2e5),[_0x1e52a5,_0x4a5d62]);}});return _0x1e7de2;}get[_0x213896(0x817)](){const _0x331db0=_0x213896;return this['_n'](_0x331db0(0x231),[]);}[_0x213896(0x76c)](_0x4e7f02,_0x3e0f48){const _0x17e818=_0x213896;return require$$16[_0x17e818(0x832)](_0x4e7f02,_0x3e0f48);}async[_0x213896(0x311)](_0x274af4,_0x3fad49){const _0x1cfc9b=_0x213896;return this[_0x1cfc9b(0x223)](this['_n']('registerType',[_0x274af4]));}[_0x213896(0x480)](_0x5b34cf){const _0x224f48=_0x213896;return this['_n'](_0x224f48(0x480),[_0x5b34cf]);}['listTypes'](){const _0x4f7f75=_0x213896;return this['_n'](_0x4f7f75(0x6e0),[]);}async[_0x213896(0x1d9)](_0x37fa63,_0x1dc1ce){const _0x1cef90=_0x213896;return this[_0x1cef90(0x223)](this['_n'](_0x1cef90(0x1d9),[_0x37fa63]));}async[_0x213896(0x7e3)](_0x1a3acd,_0x55e704){const _0x31f126=_0x213896,{timestamp:_0x2cd349,indexes:indexes=[]}=_0x333c97(_0x55e704);return this[_0x31f126(0x223)](this['_n'](_0x31f126(0x7e3),[_0x1a3acd,{'indexes':indexes}]));}async[_0x213896(0x46f)](_0x831823){const _0xd5b41f=_0x213896,{type:_0x51c43c,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x333c97(_0x831823,_0xd5b41f(0x50a));if(!_0x51c43c)throw new Error(_0xd5b41f(0x26f));await this['ensureType'](_0x51c43c,{'indexes':indexes});for(const _0x1809ff of fts){const {name:_0x5c077d,fields:_0x7babc9,..._0x2ee0cb}=_0x1809ff;if(!_0x5c077d||!_0x7babc9)throw new Error(_0xd5b41f(0x68c));await this[_0xd5b41f(0x7ea)][_0xd5b41f(0x71f)][_0xd5b41f(0x46f)](_0x51c43c,_0x5c077d,{'fields':_0x7babc9,..._0x2ee0cb},this);}for(const _0x2233e4 of views){const {name:_0x356ebf,definition:_0x7280c0}=_0x2233e4;if(!_0x356ebf||!_0x7280c0)throw new Error(_0xd5b41f(0x39d));if(!await this[_0xd5b41f(0x334)][_0xd5b41f(0x1ff)](_0x356ebf))await this[_0xd5b41f(0x334)][_0xd5b41f(0x239)](_0x356ebf,_0x7280c0);}if(schema)await this[_0xd5b41f(0x727)](_0x51c43c,schema);}async[_0x213896(0x320)](_0xf5824b,_0x5f1a55,_0x102f8d){const _0x4a8df3=_0x213896,_0x48af2f=this['_n']('registerIndexDeferred',[_0xf5824b,_0x5f1a55,typeof _0x102f8d===_0x4a8df3(0x677)?_0x102f8d:{}]);if(!_0x48af2f)return this[_0x4a8df3(0x223)](undefined);const _0x3a2d39=this['_n'](_0x4a8df3(0x430),[_0xf5824b,_0x5f1a55,!![]]);if(_0x3a2d39===undefined)return this[_0x4a8df3(0x223)](undefined);return this[_0x4a8df3(0x223)](await this[_0x4a8df3(0x67d)](_0xf5824b,_0x5f1a55,_0x3a2d39));}async['_indexBuild'](_0x3a1a95,_0x25cfee,_0x19f034){const _0x26d4e8=_0x213896,_0x50ccff=_0x3a1a95+'@'+[][_0x26d4e8(0x44b)](_0x25cfee)[_0x26d4e8(0x278)]('~');if(!this[_0x26d4e8(0x83e)])this[_0x26d4e8(0x83e)]=new Map();const _0x4f14aa=this['_indexBuilds'][_0x26d4e8(0x212)](_0x50ccff);if(_0x4f14aa)return _0x4f14aa;const _0x2bea99=((async()=>{const _0x39fdd7=_0x26d4e8;do await new Promise(_0xf187f3=>setImmediate(_0xf187f3));while(!this['_n'](_0x39fdd7(0x74a),[_0x3a1a95,_0x25cfee,_0x19f034,!![]]));})());this[_0x26d4e8(0x83e)]['set'](_0x50ccff,_0x2bea99);try{return await _0x2bea99;}finally{this[_0x26d4e8(0x83e)][_0x26d4e8(0x588)](_0x50ccff);}}async[_0x213896(0x44d)](_0x12c20c,_0x159d72,_0x2a7ecd){const _0x1ebb48=_0x213896;return this[_0x1ebb48(0x223)](this['_n'](_0x1ebb48(0x44d),[_0x12c20c,_0x159d72]));}async['resetIndex'](_0x13ae8f,_0x2e4ed5,_0x491af5){const _0x187f43=_0x213896,_0x353095=this[_0x187f43(0x83e)]&&this[_0x187f43(0x83e)][_0x187f43(0x212)](_0x13ae8f+'@'+[]['concat'](_0x2e4ed5)[_0x187f43(0x278)]('~'));if(_0x353095)return _0x353095;const _0x642d54=this['_n'](_0x187f43(0x430),[_0x13ae8f,_0x2e4ed5,_0x491af5]);if(_0x642d54===undefined)return;return await new Promise(_0x2d1906=>setImmediate(_0x2d1906)),this[_0x187f43(0x223)](await this['_indexBuild'](_0x13ae8f,_0x2e4ed5,_0x642d54));}[_0x213896(0x1b7)](_0x3ff3e0,_0x23b04d){const _0x2cdaec=_0x213896;return this['_n'](_0x2cdaec(0x1b7),[_0x3ff3e0,_0x23b04d]);}[_0x213896(0x7cb)](_0x4b128a,_0x59a06a){const _0x1fb24e=_0x213896;return this['_n'](_0x1fb24e(0x7cb),[_0x4b128a,_0x59a06a]);}async[_0x213896(0x4d4)](_0x48bdd0,_0x545009){const _0xe6e2a2=_0x213896;if(this['_n'](_0xe6e2a2(0x7cb),[_0x48bdd0,_0x545009])===_0xe6e2a2(0x854))return!![];let _0x5dae08=0xa;for(;;){await new Promise(_0x4349eb=>setTimeout(_0x4349eb,_0x5dae08));if(!this[_0xe6e2a2(0x7ea)][_0xe6e2a2(0x65c)]||this[_0xe6e2a2(0x829)])return![];let _0x2752a1;try{_0x2752a1=this['_n'](_0xe6e2a2(0x62f),[_0x48bdd0,Array[_0xe6e2a2(0x63d)](_0x545009)?_0x545009['join']('~'):String(_0x545009)[_0xe6e2a2(0x6be)](',')['join']('~')]);}catch{return![];}const _0x1eceef=_0x2752a1&&_0x2752a1[_0xe6e2a2(0x2fe)];if(_0x1eceef===_0xe6e2a2(0x854))return!![];if(_0x1eceef===undefined)return![];_0x5dae08=Math[_0xe6e2a2(0x3bb)](_0x5dae08*0x2,0xfa);}}[_0x213896(0x62f)](_0x4f68c4,_0x2294a2){const _0x18d9fc=_0x213896;return this['_n'](_0x18d9fc(0x62f),[_0x4f68c4,_0x2294a2])??null;}[_0x213896(0x74b)](_0x405458,_0x4189fa){const _0x31bd6a=_0x213896;return this['_n'](_0x31bd6a(0x74b),[_0x405458,_0x4189fa]);}[_0x213896(0x29b)](_0x9eb0db,_0x115f17){return this['_n']('hasUniqueViolations',[_0x9eb0db,_0x115f17]);}[_0x213896(0x7c6)](_0x4cf6a2,_0x5edd12,_0x3c3e57){return this['_n']('getUniqueViolation',[_0x4cf6a2,_0x5edd12,_0x3c3e57])??null;}[_0x213896(0x2df)](_0x49a4ee){const _0x20fdb9=_0x213896;return this['_n'](_0x20fdb9(0x2df),[_0x49a4ee])??null;}async[_0x213896(0x727)](_0x1b39ea,_0x15ccae){const _0x2cab1e=_0x213896;return this['_wsettle'](this['_n'](_0x2cab1e(0x727),[_0x1b39ea,_0x15ccae]));}async[_0x213896(0x4f6)](_0x2898f5){const _0x7a88f0=_0x213896;return this[_0x7a88f0(0x223)](this['_n'](_0x7a88f0(0x4f6),[_0x2898f5]));}[_0x213896(0x4b1)](_0x17c135,_0x551c33){return this['_n']('getViolation',[_0x17c135,_0x551c33])??null;}['listViolations'](_0xac64a6){return this['_n']('listViolations',[_0xac64a6]);}[_0x213896(0x7af)](_0x2f6a5b,_0x5bd899,_0x5b921e){const _0x57da89=_0x213896;return this['_n'](_0x57da89(0x7af),[_0x2f6a5b,_0x5bd899,_0x5b921e])??null;}[_0x213896(0x812)](_0x44d16e){return this['_n']('listRefViolations',[_0x44d16e]);}async[_0x213896(0x4d9)](_0x59f30f,_0xcf9f2d,_0x472a5a){const _0x2db676=_0x213896;return this['_wsettle'](this['_n'](_0x2db676(0x4d9),[_0x59f30f,_0xcf9f2d,_0x472a5a]));}['getTTL'](_0x309739,_0x789e60){const _0x155451=_0x213896;return this['_n'](_0x155451(0x85b),[_0x309739,_0x789e60]);}async[_0x213896(0x1e4)](_0x46e660,_0xf6bcf1){const _0x434af5=_0x213896;return this[_0x434af5(0x223)](this['_n'](_0x434af5(0x1e4),[_0x46e660,_0xf6bcf1]));}async[_0x213896(0x6d8)](_0x445842){const _0x21909c=_0x213896;return this['_n'](_0x21909c(0x6d8),[_0x445842]);}[_0x213896(0x4a9)](_0x3b08cd={}){const _0x103f7d=_0x213896;return this['_n'](_0x103f7d(0x4a9),[_0x3b08cd]);}['ttlStats'](_0x271c3d){const _0x160c1c=_0x213896;return this['_n'](_0x160c1c(0x807),[_0x271c3d]);}async['setDefaultTTL'](_0x3a35fd,_0x5076c9){const _0x2396fa=_0x213896;return this[_0x2396fa(0x223)](this['_n'](_0x2396fa(0x197),[_0x3a35fd,_0x5076c9]));}[_0x213896(0x199)](_0x2bb190){const _0x3df183=_0x213896;return this['_n'](_0x3df183(0x199),[_0x2bb190]);}async['clearDefaultTTL'](_0x1b3fda){const _0x2a5a0f=_0x213896;return this[_0x2a5a0f(0x223)](this['_n'](_0x2a5a0f(0x6da),[_0x1b3fda]));}async['resolveField'](_0x2d986a,_0x1d48df,_0x439f1c,_0x560304){const _0x14a541=_0x213896,{batch:batch=null,batchSize:_0x2bc5f0}=_0x333c97(_0x560304);if(typeof _0x2d986a!==_0x14a541(0x7f4)||!_0x2d986a)throw new _0x12c0a2(_0x14a541(0x49e),'BAD_PARAM');if(typeof _0x1d48df!==_0x14a541(0x7f4)||!_0x1d48df)throw new _0x12c0a2(_0x14a541(0x77c),_0x14a541(0x5da));if(_0x439f1c!=null&&typeof _0x439f1c!==_0x14a541(0x6a3))throw new _0x12c0a2(_0x14a541(0x3a2),'BAD_PARAM');if(batch!=null&&typeof batch!==_0x14a541(0x6a3))throw new _0x12c0a2(_0x14a541(0x77b),'BAD_PARAM');if(!_0x439f1c&&!batch)throw new _0x12c0a2('resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required',_0x14a541(0x5da));if(_0x2bc5f0!==undefined&&!(Number[_0x14a541(0x7ab)](_0x2bc5f0)&&_0x2bc5f0>0x0))throw new _0x12c0a2(_0x14a541(0x530),_0x14a541(0x5da));const _0x312579=batch?async _0x5176da=>(await batch(_0x5176da))[_0x14a541(0x255)](_0x203dcf=>_0x203dcf instanceof Error?{'__error':!![],'message':_0x203dcf[_0x14a541(0x412)]}:_0x203dcf):null,_0x99c3e7=_0x3086a7(this,_0x2d986a,_0x1d48df),_0x5bbc8d=this['_n']('resolveField',[_0x2d986a,_0x1d48df,_0x439f1c?(_0x218502,_0x1690dd)=>_0x99c3e7(_0x439f1c,[_0x218502,_0x1690dd]):null,{'batch':_0x312579?_0x532ca4=>_0x99c3e7(_0x312579,[_0x532ca4]):null,'batchSize':_0x2bc5f0}]);return()=>this['_n']('removeResolver',[_0x5bbc8d]);}async[_0x213896(0x597)](_0xac6662,_0x201152){return this['_n']('unresolveField',[_0xac6662,_0x201152]);}[_0x213896(0x5a9)](_0x52bea0){return this['_n']('resolvedFields',[_0x52bea0]);}async['readField'](_0xfb5e67,_0x127703,_0xbced34,_0x227b5b){const _0x59ebb1=_0x213896;return this[_0x59ebb1(0x7ea)][_0x59ebb1(0x65f)](_0x59ebb1(0x2a8),this[_0x59ebb1(0x781)],_0x59ebb1(0x3c5),[_0xfb5e67,_0x127703,_0xbced34,_0x227b5b],![]);}async[_0x213896(0x27c)](_0x56c346,_0x1f2ea1,_0x43ea2a){const _0x2b5c2f=_0x213896;return this[_0x2b5c2f(0x7ea)][_0x2b5c2f(0x65f)](_0x2b5c2f(0x2a8),this[_0x2b5c2f(0x781)],_0x2b5c2f(0x27c),[_0x56c346,_0x1f2ea1,_0x43ea2a],![]);}[_0x213896(0x4fc)](){}[_0x213896(0x247)](_0x19772f,_0x1a82b8,_0x52b6a2,_0x2f567c={},_0x1e294c={}){const _0x285ad2=_0x213896;return this['okdb']['_call'](_0x285ad2(0x71f),null,'ftsQuery',[_0x19772f,_0x1a82b8,_0x52b6a2,_0x2f567c,_0x1e294c,this[_0x285ad2(0x781)]],![]);}get[_0x213896(0x71f)](){const _0x34544b=_0x213896;return this[_0x34544b(0x7ea)][_0x34544b(0x71f)];}[_0x213896(0x7a4)](){const _0x1fcfb8=_0x213896;return this[_0x1fcfb8(0x7ea)][_0x1fcfb8(0x8ac)](_0x1fcfb8(0x2a8),this[_0x1fcfb8(0x781)],_0x1fcfb8(0x7a4),[],![]);}['diag'](){const _0x2ecd03=_0x213896;return this[_0x2ecd03(0x7ea)][_0x2ecd03(0x293)]();}[_0x213896(0x2dc)](){const _0x4d4019=_0x213896;return this[_0x4d4019(0x7ea)][_0x4d4019(0x8ac)](_0x4d4019(0x2a8),this[_0x4d4019(0x781)],_0x4d4019(0x2dc),[],![]);}[_0x213896(0x3e1)](){}get[_0x213896(0x5ae)](){const _0xd1bb97=_0x213896;return this[_0xd1bb97(0x522)]||(this[_0xd1bb97(0x522)]=new(requireLock())[(_0xd1bb97(0x72a))](this[_0xd1bb97(0x7ea)],this[_0xd1bb97(0x781)],'env'));}[_0x213896(0x7d0)](){const _0x28085f=_0x213896;return this[_0x28085f(0x7ea)][_0x28085f(0x8ac)](_0x28085f(0x2a8),this['name'],'storageStats',[],![]);}[_0x213896(0x357)](_0x13973d){const _0x46863b=_0x213896;this['_n'](_0x46863b(0x311),[_0x13973d]);}[_0x213896(0x6ae)](_0xe03047){const _0x3e07c3=_0x213896;this['_n'](_0x3e07c3(0x4c9),[_0xe03047]);}[_0x213896(0x364)](){const _0x1fd40d=_0x213896;return this['_n'](_0x1fd40d(0x884),[]);}[_0x213896(0x4b4)](_0x31cb5e,_0x1ec0f6){return _0x31cb5e+'\x09'+_0x1ec0f6;}[_0x213896(0x2f1)](_0x41689a){const _0x248fe1=_0x213896,_0x150c41=_0x41689a[_0x248fe1(0x207)]('\x09');return{'type':_0x41689a[_0x248fe1(0x8b5)](0x0,_0x150c41),'key':_0x41689a[_0x248fe1(0x8b5)](_0x150c41+0x1)};}get[_0x213896(0x36c)](){const _0x1daa20=_0x213896;if(!this[_0x1daa20(0x364)]()[_0x1daa20(0x22a)])return null;return this[_0x1daa20(0x702)]||(this[_0x1daa20(0x702)]=new _0x1bf486(this,'~ttl:key'));}get['_ttlByExpiry'](){const _0x43b04d=_0x213896;if(!this[_0x43b04d(0x364)]()[_0x43b04d(0x22a)])return null;return this['__ttlByExpiry']||(this[_0x43b04d(0x344)]=new _0x1bf486(this,_0x43b04d(0x876),{'dupSort':!![]}));}[_0x213896(0x1ae)](_0x432fa4,_0x3902dd,_0xad653a){const _0x1bf248=_0x213896;this['_n'](_0x1bf248(0x8ad),[_0x432fa4,_0x3902dd,_0xad653a]);}[_0x213896(0x4a2)](_0x444fe5,_0x38b907){const _0x492c47=_0x213896,_0x53d0cd=this['_ttlByKey']?.[_0x492c47(0x212)](this['_ttlCompositeKey'](_0x444fe5,_0x38b907));return _0x53d0cd!=null&&_0x53d0cd<=Date[_0x492c47(0x590)]();}get[_0x213896(0x1fa)](){const _0x55125e=_0x213896;return this[_0x55125e(0x364)]()[_0x55125e(0x32e)]??null;}get['_ttlBackoffUntil'](){const _0x4878d8=_0x213896;return this[_0x4878d8(0x364)]()[_0x4878d8(0x540)]||0x0;}get[_0x213896(0x434)](){return![];}['_scheduleTTLSweep'](){}async['_rebuild'](_0x4d5c76,_0xbf46e1){const _0x209b44=_0x213896;if(this[_0x209b44(0x72b)]){const {OKDBError:_0x4dc322}=requireErrors();throw new _0x4dc322('compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment',_0x209b44(0x363));}this[_0x209b44(0x72b)]=!![];try{return await this[_0x209b44(0x7ea)][_0x209b44(0x65f)]('env',this['name'],_0x4d5c76,[_0xbf46e1],!![]);}finally{this['_rebuilding']=![];}}async[_0x213896(0x2be)](_0x478631={}){const _0x306718=_0x213896;return this[_0x306718(0x844)]('compact',_0x478631);}async['repair'](_0x5870a7={}){return this['_rebuild']('repair',_0x5870a7);}}_0x2a2d4f[_0x213896(0x343)]=_0x5bcf40;function _0x129203(_0x3027c1){const _0x8a5c43=_0x213896;if(!_0x3027c1||typeof _0x3027c1!==_0x8a5c43(0x677))return![];for(const _0x45697c of Object[_0x8a5c43(0x362)](_0x3027c1)){const _0x529bcd=_0x3027c1[_0x45697c];if(_0x529bcd&&typeof _0x529bcd===_0x8a5c43(0x677)&&(_0x529bcd[_0x8a5c43(0x1d2)]||_0x529bcd['$within']))return!![];}return![];}function _0x1e8da0(_0x3a1d28){const _0x4a6a4e=_0x213896;if(!_0x3a1d28||typeof _0x3a1d28!==_0x4a6a4e(0x677))return{};const _0x3760bf={};for(const _0x4059de of Object[_0x4a6a4e(0x362)](_0x3a1d28)){if(_0x4059de===_0x4a6a4e(0x2c3)||_0x4059de===_0x4a6a4e(0x6ef))continue;_0x3760bf[_0x4059de]=_0x3a1d28[_0x4059de];}return _0x3760bf;}function _0x231c9f(_0x435de2){const _0x59e53e=_0x213896;if(!_0x435de2||typeof _0x435de2!==_0x59e53e(0x677))return{};const _0x124011={};for(const _0x53ef50 of Object[_0x59e53e(0x362)](_0x435de2)){if(typeof _0x435de2[_0x53ef50]===_0x59e53e(0x6a3))continue;_0x124011[_0x53ef50]=_0x435de2[_0x53ef50];}return _0x124011;}return env={'OKDBEnv':_0x2a2d4f,'HIGH_SENTINEL':_0x5bcf40},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x377564}=requireErrors();function _0xbf0543(_0x406c85){const _0x6bec51=_0xd4f4fe=>{throw new _0x377564(_0x406c85,_0xd4f4fe);};return new Proxy(function(){},{'get'(_0x1c7334,_0x4c3b9c){const _0x28f73b=_0x206c;if(typeof _0x4c3b9c===_0x28f73b(0x19d)||_0x4c3b9c==='then'||_0x4c3b9c==='toJSON'||_0x4c3b9c===_0x28f73b(0x66e))return undefined;if(_0x4c3b9c===_0x28f73b(0x6a7))return _0x406c85;return(..._0x16634f)=>_0x6bec51(_0x406c85+'.'+String(_0x4c3b9c));},'apply'(){_0x6bec51(_0x406c85);},'set'(){return!![];}});}return unsupported={'notImplemented':_0xbf0543},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x5e634e=_0x3e8e44;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x56752a(_0x40fcbb,_0x34bb70={}){const _0x471852=_0x206c,_0x20bbd4=[];let _0x49d3ca=![];_0x40fcbb[_0x471852(0x4ab)]('/*')&&(_0x49d3ca=!![],_0x40fcbb=_0x40fcbb['slice'](0x0,-0x2),_0x20bbd4[_0x471852(0x491)]('*'));let _0x33a1f5=_0x40fcbb[_0x471852(0x1b1)](/\/+$/,'')[_0x471852(0x1b1)](/\[([^\]]*)\]/g,(_0x1565cb,_0x2340ea)=>{const _0x45e1b7=_0x471852,_0x5712c9=_0x2340ea[_0x45e1b7(0x1b1)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x1a590b,_0xc778ec)=>{const _0x2e646c=_0x45e1b7;return _0x20bbd4[_0x2e646c(0x491)](_0xc778ec),_0x2e646c(0x87c);});return _0x45e1b7(0x7ad)+_0x5712c9+')?';})[_0x471852(0x1b1)](/\/:(\w+)/g,(_0x502921,_0x54f25a)=>{const _0x38fa9c=_0x471852;return _0x20bbd4[_0x38fa9c(0x491)](_0x54f25a),'/([^/]+)';});if(_0x33a1f5==='')_0x33a1f5='/';return{'keys':_0x20bbd4,'defaults':_0x34bb70||{},'wildcard':_0x49d3ca,'regex':new RegExp('^'+_0x33a1f5+(_0x49d3ca?_0x471852(0x1f0):'')+_0x471852(0x7ec))};}const _0xb2c434=require$$0$3,{PassThrough:_0x18e9f3}=require$$1;function _0x23bf09(_0x41233d){const _0x48ac7c=_0x206c,_0x18ad80=_0x41233d[_0x48ac7c(0x29e)](':'),_0x16738c=_0x41233d[_0x48ac7c(0x8b5)](0x0,_0x18ad80)[_0x48ac7c(0x1b1)](/^\[|\]$/g,'');return{'address':_0x16738c,'family':_0x16738c[_0x48ac7c(0x417)](':')?_0x48ac7c(0x893):_0x48ac7c(0x4bc),'port':Number(_0x41233d[_0x48ac7c(0x8b5)](_0x18ad80+0x1))};}class _0x13376e extends _0xb2c434['Server']{constructor(_0x541eb6,_0x36abf4){const _0x26f6f1=_0x206c;super(),this[_0x26f6f1(0x4f2)]=_0x541eb6,this[_0x26f6f1(0x7d8)]=_0x23bf09(_0x36abf4),this[_0x26f6f1(0x371)]=!![],this[_0x26f6f1(0x1de)]=setInterval(()=>{},0x7fffffff);}get[_0x5e634e(0x371)](){const _0x380632=_0x5e634e;return this[_0x380632(0x71b)];}set[_0x5e634e(0x371)](_0x3438de){const _0x4ae8bc=_0x5e634e;this[_0x4ae8bc(0x71b)]=_0x3438de;}[_0x5e634e(0x653)](){const _0x10f844=_0x5e634e;return this[_0x10f844(0x371)]?{...this[_0x10f844(0x7d8)]}:null;}['_release'](){const _0x390c1e=_0x5e634e;if(this[_0x390c1e(0x1de)])clearInterval(this[_0x390c1e(0x1de)]);this['_keepAlive']=null;}[_0x5e634e(0x31a)](_0x2c8d63){const _0x252d18=_0x5e634e;this[_0x252d18(0x347)]();const _0x546f51=this[_0x252d18(0x4f2)]['close']();if(_0x2c8d63)_0x546f51[_0x252d18(0x8b4)](()=>_0x2c8d63(),_0x2c8d63);return this;}[_0x5e634e(0x2ae)](){const _0x4b52a1=_0x5e634e;return this[_0x4b52a1(0x1de)]?.[_0x4b52a1(0x2ae)](),this;}[_0x5e634e(0x63e)](){const _0x1880c9=_0x5e634e;return this[_0x1880c9(0x1de)]?.[_0x1880c9(0x63e)](),this;}}class _0x932e72{constructor(_0x383b23){const _0x56fa45=_0x5e634e;this[_0x56fa45(0x7ea)]=_0x383b23,this['servers']=[],this[_0x56fa45(0x826)]={'cookieName':'okdb_session'};}get[_0x5e634e(0x7f6)](){const _0x446fbd=_0x5e634e;return this[_0x446fbd(0x393)][0x0]||null;}['_n'](_0x9b56a9,_0x2a67c7=[]){const _0x300869=_0x5e634e;return this[_0x300869(0x7ea)][_0x300869(0x65f)](_0x300869(0x64b),null,_0x9b56a9,_0x2a67c7,!![]);}async['handle'](_0x12683d,_0x28f61f,_0x1b3ddf={},_0x520241={}){const _0x4ec026=_0x5e634e;let _0x3421be=await this['_n'](_0x4ec026(0x198),[_0x12683d,_0x28f61f,_0x1b3ddf,_0x520241]),_0x436b78=0x0;return _0x3421be=await this['_settle'](_0x3421be,_0x436b78),_0x3421be;}async['_settle'](_0x77c07,_0x3c75ec){const _0x2bce04=_0x5e634e;while(_0x77c07&&typeof _0x77c07==='object'&&_0x77c07[_0x2bce04(0x604)]!==undefined){await new Promise(_0x7d13cd=>setTimeout(_0x7d13cd,_0x3c75ec<0x5?0x1:0x5)),_0x3c75ec++,_0x77c07=await this['_n'](_0x2bce04(0x6bd),[_0x77c07[_0x2bce04(0x604)]]);}if(_0x77c07&&_0x77c07[_0x2bce04(0x4eb)]&&typeof _0x77c07[_0x2bce04(0x4eb)]===_0x2bce04(0x677)&&_0x77c07['body']['$streamId']!==undefined)_0x77c07['body']=this[_0x2bce04(0x292)](_0x77c07['body'][_0x2bce04(0x4de)]);return _0x77c07;}[_0x5e634e(0x292)](_0x25dfa6){const _0x56dc42=_0x5e634e,_0x57289f=new _0x18e9f3();let _0x441be8=![];const _0x42a5b9=()=>{const _0x231293=_0x206c;if(_0x441be8)return;_0x441be8=!![],clearTimeout(_0x187d2a),setImmediate(()=>this[_0x231293(0x7ea)]['_isOpen']&&this[_0x231293(0x7ea)][_0x231293(0x8ac)](_0x231293(0x64b),null,_0x231293(0x1f5),[_0x25dfa6],!![]));};let _0x187d2a=null;const _0x531f64=()=>{const _0x2349ab=_0x206c;if(_0x441be8)return;let _0x3f9527;try{_0x3f9527=this[_0x2349ab(0x7ea)][_0x2349ab(0x8ac)](_0x2349ab(0x64b),null,'streamRead',[_0x25dfa6],!![]);}catch{_0x3f9527={'chunks':[],'end':!![]};}for(const _0x37f883 of _0x3f9527[_0x2349ab(0x366)])_0x57289f[_0x2349ab(0x2d6)](_0x37f883);if(_0x3f9527[_0x2349ab(0x3f2)]){_0x441be8=!![],_0x57289f[_0x2349ab(0x3f2)]();return;}_0x187d2a=setTimeout(_0x531f64,_0x3f9527[_0x2349ab(0x366)][_0x2349ab(0x61b)]?0x0:0xa);};_0x57289f['on'](_0x56dc42(0x31a),_0x42a5b9),_0x531f64();if(!_0x441be8)_0x531f64();if(_0x441be8)_0x57289f[_0x56dc42(0x6a9)]();else{if(!_0x187d2a)_0x187d2a=setTimeout(_0x531f64,0x0);}return _0x57289f;}[_0x5e634e(0x6dc)](_0x44fb51,_0x2ddd19,_0x5f0455,_0x257ed0={}){const _0x1127d6=_0x5e634e;return this[_0x1127d6(0x7ea)][_0x1127d6(0x8ac)](_0x1127d6(0x64b),null,_0x1127d6(0x6dc),[_0x44fb51,_0x2ddd19,_0x5f0455,_0x257ed0,![]],!![]),this;}['addRaw'](_0x2638f1,_0x391be1,_0xfa26c,_0x258eed={}){const _0x568b52=_0x5e634e;return this[_0x568b52(0x7ea)][_0x568b52(0x8ac)](_0x568b52(0x64b),null,'add',[_0x2638f1,_0x391be1,_0xfa26c,_0x258eed,!![]],!![]),this;}[_0x5e634e(0x759)](_0x57f578,_0x303d35){const _0x5a8e0b=_0x5e634e,_0x377994=async _0x4a3c4e=>{const _0x480ae7=_0x206c,_0x357d22={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x5997b8={'status'(_0x3f96a7){const _0x469c82=_0x206c;return _0x357d22[_0x469c82(0x2fe)]=_0x3f96a7,_0x5997b8;},'setHeader'(_0x2affb0,_0x2073be){const _0x573c64=_0x206c;_0x357d22[_0x573c64(0x529)][_0x573c64(0x491)]([_0x2affb0,_0x2073be]);},'send'(_0x919aa8){const _0x270f6a=_0x206c;_0x357d22['hasBody']=!![],_0x357d22[_0x270f6a(0x4eb)]=_0x919aa8;}};_0x4a3c4e[_0x480ae7(0x323)]={'remoteAddress':_0x4a3c4e[_0x480ae7(0x5b7)]??null};const _0x53d3fd=await _0x303d35(_0x4a3c4e,_0x5997b8);return{'allowed':_0x53d3fd!==![],..._0x357d22};};this['okdb'][_0x5a8e0b(0x8ac)]('http',null,_0x5a8e0b(0x759),[_0x1459f0=>!!_0x57f578(_0x1459f0),_0x377994],!![]);}[_0x5e634e(0x4e3)](_0x5acd8b){const _0x77f717=_0x5e634e,_0x2be6cf=async _0x5e6801=>{const _0x13020d=_0x206c,_0x201dce={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0xeb3862=![];const _0x350715={'status'(_0x3ee51e){const _0x47624d=_0x206c;return _0x201dce[_0x47624d(0x2fe)]=_0x3ee51e,_0x350715;},'setHeader'(_0x44bb8e,_0x224d9b){const _0x43ee2f=_0x206c;_0x201dce['headers'][_0x43ee2f(0x491)]([_0x44bb8e,_0x224d9b]);},'send'(_0x2a75d9){const _0x5c2511=_0x206c;_0x201dce[_0x5c2511(0x34c)]=!![],_0x201dce[_0x5c2511(0x4eb)]=_0x2a75d9;}};return _0x5e6801['socket']={'remoteAddress':_0x5e6801[_0x13020d(0x5b7)]??null},await _0x5acd8b(_0x5e6801,_0x350715,async()=>{_0xeb3862=!![];}),{'allowed':_0xeb3862,..._0x201dce};};return this['okdb'][_0x77f717(0x8ac)](_0x77f717(0x64b),null,'use',[_0x2be6cf],!![]),this;}get[_0x5e634e(0x623)](){const _0x2f9a53=_0x5e634e;return this[_0x2f9a53(0x7ea)]['_call'](_0x2f9a53(0x64b),null,_0x2f9a53(0x60c),[],![]);}set[_0x5e634e(0x623)](_0x459bce){const _0x48072a=_0x5e634e;this[_0x48072a(0x7ea)][_0x48072a(0x8ac)]('http',null,_0x48072a(0x657),[Number(_0x459bce)],![]);}[_0x5e634e(0x48b)](_0x1c0c7d,_0x45caab,_0x417b3e={}){const _0x219336=_0x5e634e,_0x38b23e=new Map(),_0x16c378=(_0xbc3135,_0x305339)=>this[_0x219336(0x7ea)][_0x219336(0x8ac)](_0x219336(0x64b),null,_0xbc3135,_0x305339,![]),_0x4edb74=_0x136ac7=>{const _0x2bd0e4=_0x219336,{connId:_0x329ff0}=_0x136ac7;if(_0x136ac7['cleanup']){const _0x5a5a9d=_0x38b23e[_0x2bd0e4(0x212)](_0x329ff0);_0x38b23e[_0x2bd0e4(0x588)](_0x329ff0);if(typeof _0x5a5a9d===_0x2bd0e4(0x6a3))_0x5a5a9d();return;}const _0x58d977=(_0x8fe16f,_0x1649a9,_0x515637={})=>{try{_0x16c378('sseSend',[_0x329ff0,_0x8fe16f,_0x1649a9,_0x515637]);}catch{}},_0x4dfa54=()=>{const _0xf203c2=_0x2bd0e4;try{_0x16c378(_0xf203c2(0x5fe),[_0x329ff0]);}catch{}},_0x29cf83=(_0x3d517d,_0x15e67b)=>_0x16c378(_0x2bd0e4(0x309),[_0x329ff0,String(_0x3d517d),String(_0x15e67b)]),_0x432f3b={'auth':{'open':_0x136ac7['authOpen'],'isAuthenticated':_0x136ac7['authenticated']}},_0x2c5843=_0x45caab({'send':_0x58d977,'close':_0x4dfa54,'params':_0x136ac7[_0x2bd0e4(0x88c)]??{},'query':_0x136ac7[_0x2bd0e4(0x52e)]??{},'headers':_0x136ac7[_0x2bd0e4(0x529)]??{},'context':_0x432f3b,'setHeader':_0x29cf83});_0x38b23e['set'](_0x329ff0,_0x2c5843);};return this[_0x219336(0x7ea)][_0x219336(0x8ac)]('http',null,'addSSE',[_0x1c0c7d,_0x4edb74,_0x417b3e],!![]),this;}get[_0x5e634e(0x49f)](){const _0x512709=_0x5e634e;return this[_0x512709(0x836)]();}[_0x5e634e(0x836)](){const _0x447694=_0x5e634e;return this['okdb'][_0x447694(0x8ac)](_0x447694(0x64b),null,'listRoutes',[],![])['map'](_0x426d21=>({..._0x426d21,'matcher':_0x56752a(_0x426d21['path'],_0x426d21[_0x447694(0x453)])}));}[_0x5e634e(0x1e9)](_0x1ed098,_0x4a4d8a){const _0xb4f931=_0x5e634e;return this[_0xb4f931(0x7ea)][_0xb4f931(0x8ac)](_0xb4f931(0x64b),null,'validateRouteInput',[_0x1ed098,_0x4a4d8a],![]);}['listen'](_0xdfb98f,_0x4493eb={}){const _0x38d376=_0x5e634e;if(typeof _0x4493eb===_0x38d376(0x7f4)||Array[_0x38d376(0x63d)](_0x4493eb))_0x4493eb={'host':_0x4493eb};_0x4493eb=_0x4493eb??{};if((Number(_0x4493eb[_0x38d376(0x6b3)])||0x0)>=0x1||_0x4493eb[_0x38d376(0x1ef)]!=null||_0x4493eb[_0x38d376(0x710)]!=null){const _0x5b9306=new Error(_0x38d376(0x6fd)+_0x38d376(0x735)+_0x38d376(0x6b5)+_0x38d376(0x775));_0x5b9306[_0x38d376(0x42b)]=_0x38d376(0x663);throw _0x5b9306;}if(this[_0x38d376(0x393)][_0x38d376(0x61b)])throw new Error('HTTP\x20server\x20already\x20running');const _0xa9d78d=_0x4493eb['host']==null?[undefined]:[][_0x38d376(0x44b)](_0x4493eb[_0x38d376(0x596)]);if(!_0xa9d78d[_0x38d376(0x61b)]||_0xa9d78d[_0x38d376(0x1f7)](_0xa4ad3b=>_0xa4ad3b!==undefined&&(typeof _0xa4ad3b!==_0x38d376(0x7f4)||!_0xa4ad3b))){const _0x32dbaa=new Error(_0x38d376(0x7ce));_0x32dbaa['code']='BAD_HOST';throw _0x32dbaa;}const _0x382944=require$$2[_0x38d376(0x848)]?{..._0x4493eb,'reuseport':!![]}:_0x4493eb,_0x195fe9=this[_0x38d376(0x7ea)]['_call'](_0x38d376(0x64b),null,_0x38d376(0x3e6),[_0xdfb98f,_0x382944],!![]),_0x28b382=_0x195fe9[_0x38d376(0x3d6)]??_0xdfb98f,_0x3e9094=_0x4493eb[_0x38d376(0x596)]==null?':'+_0x28b382:_0xa9d78d[_0x38d376(0x255)](_0x408a55=>(_0x408a55[_0x38d376(0x417)](':')?'['+_0x408a55+']':_0x408a55)+':'+_0x28b382)['join'](',\x20');try{this[_0x38d376(0x7ea)]['processes'][_0x38d376(0x51e)](_0x3e9094);if(!require('node:cluster')[_0x38d376(0x848)])this[_0x38d376(0x7ea)]['processes'][_0x38d376(0x6ee)]({'kind':'standalone','listenAddr':_0x3e9094});}catch{}this['servers']=_0x195fe9[_0x38d376(0x504)][_0x38d376(0x255)](_0x46ad30=>new _0x13376e(this,_0x46ad30));const _0x725374=this[_0x38d376(0x393)][0x0];return process[_0x38d376(0x88e)](()=>this[_0x38d376(0x393)][_0x38d376(0x68f)](_0x445e59=>_0x445e59[_0x38d376(0x749)](_0x38d376(0x371)))),_0x725374;}async[_0x5e634e(0x31a)](_0x1df317={}){const _0x176e92=_0x5e634e,_0x59b6d1=this[_0x176e92(0x393)];this[_0x176e92(0x393)]=[];if(require$$2[_0x176e92(0x848)]&&!process[_0x176e92(0x487)]&&_0x1df317[_0x176e92(0x1a9)]==null)_0x1df317={..._0x1df317,'forceAfterMs':Infinity};if(_0x59b6d1[_0x176e92(0x61b)]){const _0x5b7030=_0x1df317[_0x176e92(0x1a9)]===Infinity?Infinity:Number['isFinite'](_0x1df317['forceAfterMs'])?Math['max'](0x0,_0x1df317[_0x176e92(0x1a9)]):0x3e8,_0x305ebd=Date[_0x176e92(0x590)]();while(this[_0x176e92(0x7ea)][_0x176e92(0x8ac)](_0x176e92(0x64b),null,_0x176e92(0x252),[],!![])>0x0&&Date[_0x176e92(0x590)]()-_0x305ebd<_0x5b7030)await new Promise(_0x233e6c=>setTimeout(_0x233e6c,0x5));_0x1df317={..._0x1df317,'forceAfterMs':_0x5b7030===Infinity?0x3e8:Math[_0x176e92(0x2cf)](0x0,_0x5b7030-(Date[_0x176e92(0x590)]()-_0x305ebd))};}await this['_n'](_0x176e92(0x31a),[_0x1df317]);for(const _0x2703a5 of _0x59b6d1){_0x2703a5[_0x176e92(0x347)](),_0x2703a5[_0x176e92(0x371)]=![],_0x2703a5['emit'](_0x176e92(0x31a));}}}return http={'OKDBHttp':_0x932e72},http;}var fts,hasRequiredFts;function requireFts(){const _0x58727c=_0x3e8e44;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x25c399=_0x400404=>(_0x400404&&typeof _0x400404===_0x58727c(0x677)?_0x400404[_0x58727c(0x781)]:_0x400404)??'default';class _0x38ef71{constructor(_0x24f374){const _0x31e975=_0x58727c;this[_0x31e975(0x7ea)]=_0x24f374;}['_n'](_0x184d49,_0x16c0d7,_0x1b6a00=![]){const _0x280cc2=_0x58727c;return this['okdb'][_0x280cc2(0x8ac)](_0x280cc2(0x71f),null,_0x184d49,_0x16c0d7,_0x1b6a00);}[_0x58727c(0x5e8)](_0x48b365,_0x3eac1b){const _0x1dbd56=_0x58727c;return this[_0x1dbd56(0x7ea)][_0x1dbd56(0x65f)](_0x1dbd56(0x71f),null,_0x48b365,_0x3eac1b,!![]);}get[_0x58727c(0x1b0)](){const _0x53d95a=this,_0x2a021f=_0x3ee3d2=>{const _0x42ace6=_0x206c,_0x4a42ec=_0x3ee3d2[_0x42ace6(0x207)](':'),_0x5dde0c=_0x3ee3d2[_0x42ace6(0x8b5)](0x0,_0x4a42ec),_0xb848b0=_0x53d95a[_0x42ace6(0x7ea)]['_envs'][_0x42ace6(0x212)](_0x5dde0c);if(!_0xb848b0)return undefined;const _0x45ee2d=_0xb848b0[_0x42ace6(0x726)][_0x42ace6(0x41d)]()[_0x42ace6(0x574)](_0x53f691=>_0x53f691[_0x42ace6(0x46b)]===_0x42ace6(0x7cd)+_0x3ee3d2);if(!_0x45ee2d)return undefined;return _0xb848b0[_0x42ace6(0x726)]['_stopFor'](_0x45ee2d['id'],_0x45ee2d[_0x42ace6(0x46b)]);};return{'get':_0x2a021f,'has':_0x4ebaf2=>!!_0x2a021f(_0x4ebaf2)};}get['_pendingOps'](){return[];}[_0x58727c(0x33e)](){const _0x345bb7=_0x58727c,{RawDb:_0x41749e}=requireRawdb();return new _0x41749e(this[_0x345bb7(0x7ea)][_0x345bb7(0x61a)],_0x345bb7(0x5c7));}['has'](_0x2e20a8,_0x298dc7,_0x1e5e9c){return this['_n']('has',[_0x2e20a8,_0x298dc7,_0x25c399(_0x1e5e9c)]);}['status'](_0x8059cf,_0x597dbe,_0x24be2e){const _0x38c0c0=_0x58727c;return this['_n'](_0x38c0c0(0x2fe),[_0x8059cf,_0x597dbe,_0x25c399(_0x24be2e)]);}[_0x58727c(0x41d)](_0x512468,_0x26e43a){const _0x145877=_0x58727c;return this['_n'](_0x145877(0x41d),[_0x512468,_0x25c399(_0x26e43a)]);}async['_build'](_0x4dbaee,_0xefe73b,_0x47a00e,_0x3c6223,_0x2a4b21){const _0x1f144b=_0x58727c,_0x42d48e=(_0x3fc925,_0x38f88d)=>this[_0x1f144b(0x7ea)][_0x1f144b(0x65f)](_0x1f144b(0x71f),null,_0x3fc925,_0x38f88d,!![],![]),_0x48755a=Date[_0x1f144b(0x590)]()+0x1d4c0;let _0x13f2c8=_0x4dbaee,_0x2d1ed6=_0xefe73b;for(;;){try{return await _0x42d48e(_0x13f2c8,_0x2d1ed6);}catch(_0x47331f){if(_0x47331f[_0x1f144b(0x42b)]===_0x1f144b(0x528)){_0x13f2c8=_0x1f144b(0x41a),_0x2d1ed6=[_0x47a00e,_0x3c6223,_0x25c399(_0x2a4b21)];if(_0x47331f[_0x1f144b(0x415)]&&_0x47331f[_0x1f144b(0x415)]['wait'])await new Promise(_0x4f5410=>setTimeout(_0x4f5410,0x2));continue;}if(_0x47331f[_0x1f144b(0x42b)]!=='FIELD_RESOLVER_PENDING'||Date[_0x1f144b(0x590)]()>=_0x48755a)throw _0x47331f;}await new Promise(_0x4e7e8b=>setTimeout(_0x4e7e8b,0x5)),_0x13f2c8=_0x1f144b(0x19c),_0x2d1ed6=[_0x47a00e,_0x3c6223,!![],_0x25c399(_0x2a4b21)];}}async[_0x58727c(0x6ee)](_0x16bfa4,_0x55f37d,_0x129410,_0x407981,_0x34db2a){const _0x2ee781=_0x58727c;return this[_0x2ee781(0x54b)](_0x2ee781(0x6ee),[_0x16bfa4,_0x55f37d,_0x129410,_0x407981,_0x25c399(_0x34db2a)],_0x16bfa4,_0x55f37d,_0x34db2a);}async['drop'](_0x2a7918,_0x23adbd,_0x25d455){const _0x2a04ea=_0x58727c;return this[_0x2a04ea(0x5e8)]('drop',[_0x2a7918,_0x23adbd,_0x25c399(_0x25d455)]);}async[_0x58727c(0x46f)](_0x505680,_0x3e93ec,_0x1a3026,_0xcfe4e7){const _0x5d7531=_0x58727c;return this['_build'](_0x5d7531(0x46f),[_0x505680,_0x3e93ec,_0x1a3026,_0x25c399(_0xcfe4e7)],_0x505680,_0x3e93ec,_0xcfe4e7);}async[_0x58727c(0x19c)](_0x381045,_0x5d0422,_0x4c9b81,_0xa2d7d5){return this['_build']('reset',[_0x381045,_0x5d0422,_0x4c9b81,_0x25c399(_0xa2d7d5)],_0x381045,_0x5d0422,_0xa2d7d5);}async[_0x58727c(0x62b)](_0x521048,_0x55b1c7,_0x1d6959,_0x2aefb5=0x1d4c0){const _0x514460=_0x58727c,_0x549c53=Date[_0x514460(0x590)]()+_0x2aefb5;for(;;){try{return await this[_0x514460(0x5e8)](_0x521048,[..._0x55b1c7,0x1]);}catch(_0x3e0512){if(_0x3e0512[_0x514460(0x42b)]!==_0x1d6959||Date[_0x514460(0x590)]()>=_0x549c53)throw _0x3e0512;}await new Promise(_0xcd7a82=>setTimeout(_0xcd7a82,0x2));}}async[_0x58727c(0x854)](_0x11e6ea,_0x4a2268,_0x1d375d){const _0x57689a=_0x58727c;return this['_waitNative'](_0x57689a(0x854),[_0x11e6ea,null,_0x25c399(_0x1d375d)],_0x57689a(0x4c3));}async[_0x58727c(0x85a)](_0x365e87,_0x5176b9){const _0x26d2f1=_0x58727c;return this[_0x26d2f1(0x62b)](_0x26d2f1(0x85a),[_0x365e87,_0x25c399(_0x5176b9)],_0x26d2f1(0x3af));}async[_0x58727c(0x2be)](_0x528927,_0x21860f){const _0x474abf=_0x58727c;return this[_0x474abf(0x5e8)](_0x474abf(0x2be),[_0x528927,_0x25c399(_0x21860f)]);}async[_0x58727c(0x471)](_0x209a08={}){const _0x29b363=_0x58727c;return this[_0x29b363(0x5e8)](_0x29b363(0x471),[_0x209a08]);}async[_0x58727c(0x489)](_0x3857c0){const _0x54d86f=_0x58727c;return this[_0x54d86f(0x5e8)](_0x54d86f(0x489),[_0x25c399(_0x3857c0)]);}[_0x58727c(0x2b9)](_0x911b1c){const _0x566482=_0x58727c;return this['_n'](_0x566482(0x2b9),[_0x25c399(_0x911b1c)]);}[_0x58727c(0x564)](_0xe949de,_0x1f2c50,_0x399a4b,_0x293d53,_0xe2e9d0){const _0x495a63=_0x58727c;return this['_n'](_0x495a63(0x564),[_0xe949de,_0x1f2c50,_0x399a4b,_0x293d53||{},_0x25c399(_0xe2e9d0)]);}[_0x58727c(0x40b)](_0x11c1f8,_0x50aced,_0xce3e12,_0x2c30b7,_0x53b5b9,_0x250911){const _0x2164e6=_0x58727c;return this['_n'](_0x2164e6(0x40b),[_0x11c1f8,_0x50aced,_0xce3e12,_0x2c30b7||{},_0x25c399(_0x53b5b9),_0x250911]);}['_searchWithScores'](_0x3fd9d5,_0x2f17ab,_0x219295,_0x46c271,_0xae4763){const _0xa5a0b7=_0x58727c;return this['_n'](_0xa5a0b7(0x5c4),[_0x3fd9d5,_0x2f17ab,_0x219295,_0x46c271||{},_0x25c399(_0xae4763)]);}[_0x58727c(0x88f)](){const _0x5ee389=_0x58727c;return this['_n'](_0x5ee389(0x88f),[]);}async[_0x58727c(0x674)](){const _0x1ad0b9=_0x58727c;return this[_0x1ad0b9(0x5e8)]('drain',[]);}}return fts={'OKDBFts':_0x38ef71},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x6a9400=_0x3e8e44;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x55c079,invalidArgument:_0x345d8f}=requireErrors();requireBridge();const _0x49e549=Object[_0x6a9400(0x75f)]({'EMBEDDER':_0x6a9400(0x367),'INDEXER':'indexer','SEARCH':_0x6a9400(0x6f5),'WORKER':_0x6a9400(0x34d)}),_0x1f8fbf=_0x37d798=>typeof _0x37d798==='string'||_0x37d798==null?_0x37d798:Array[_0x6a9400(0x3e9)](_0x37d798);class _0x2e8290{constructor(_0xa47b88){const _0x5606e8=_0x6a9400;this[_0x5606e8(0x7ea)]=_0xa47b88,this[_0x5606e8(0x485)]=new Map(),this[_0x5606e8(0x1e0)]=new Map(),this[_0x5606e8(0x649)]=new Map();}['_n'](_0x127dc8,_0x27391e=[],_0x26dc79=!![]){const _0xe8fe56=_0x6a9400;return this['okdb'][_0xe8fe56(0x8ac)](_0xe8fe56(0x378),null,_0x127dc8,_0x27391e,_0x26dc79);}[_0x6a9400(0x5e8)](_0x2912c6,_0x357605=[]){const _0x3b353f=_0x6a9400;return this[_0x3b353f(0x7ea)]['_callMacro'](_0x3b353f(0x378),null,_0x2912c6,_0x357605,!![]);}[_0x6a9400(0x78b)](_0x12569b){const _0x3c8c81=_0x6a9400;return _0x12569b?this[_0x3c8c81(0x7ea)]['engines'][_0x3c8c81(0x78b)](_0x12569b):null;}[_0x6a9400(0x89c)](_0x3730b2,_0x43d504,_0x229190={}){const _0x482d29=_0x6a9400;if(typeof _0x43d504!==_0x482d29(0x6a3))throw new _0x55c079('Embedder\x20factory\x20must\x20be\x20a\x20function',_0x482d29(0x5da),{'name':_0x3730b2});this['_jsFactories'][_0x482d29(0x280)](_0x3730b2,_0x43d504),this[_0x482d29(0x1e0)]['set'](_0x3730b2,_0x229190);const _0x33640e=this[_0x482d29(0x7ea)],_0x4e3e4d=_0x152656=>_0x43d504(_0x152656,_0x33640e);_0x4e3e4d[_0x482d29(0x28b)]=_0x33640e,this['_n']('registerEmbedderFactory',[_0x3730b2,_0x4e3e4d,_0x229190??{}],![]);}[_0x6a9400(0x19e)](_0x3e4325){const _0x21f2f6=_0x6a9400,_0x3fd713=this[_0x21f2f6(0x485)]['get'](_0x3e4325);if(_0x3fd713)return _0x3fd713;if(!this['_n'](_0x21f2f6(0x682),[_0x3e4325],![]))return null;const _0x40ac58=this;return(_0x843af7={})=>{const _0x44c14f=_0x21f2f6,_0x3e0dde=_0x40ac58['_n'](_0x44c14f(0x196),[_0x3e4325,_0x843af7],![]),_0x2ff797=_0x40ac58['_n'](_0x44c14f(0x688),[_0x3e0dde],![]),_0x5012dc=(_0x12d067,_0x150f10)=>_0x40ac58['_n'](_0x44c14f(0x50b),[_0x3e0dde,_0x12d067,_0x150f10],![]),_0xb30496={'embed':async _0x560939=>Float32Array[_0x44c14f(0x3e9)](_0x5012dc(_0x44c14f(0x440),_0x560939)),'start':async()=>_0x5012dc(_0x44c14f(0x40c)),'stop':async()=>{const _0x51e56f=_0x44c14f;_0x5012dc(_0x51e56f(0x8a0)),_0x5012dc(_0x51e56f(0x424));}};if(_0x2ff797)_0xb30496[_0x44c14f(0x6e8)]=async _0x494d0a=>_0x5012dc(_0x44c14f(0x6e8),_0x494d0a)[_0x44c14f(0x255)](_0x22bb25=>Float32Array[_0x44c14f(0x3e9)](_0x22bb25));return _0xb30496;};}[_0x6a9400(0x7b7)](_0x3d40ae){const _0x29513c=_0x6a9400;return this[_0x29513c(0x1e0)][_0x29513c(0x212)](_0x3d40ae)??this['_n'](_0x29513c(0x7b7),[_0x3d40ae],![])??undefined;}[_0x6a9400(0x266)](_0x542ab0,_0x443068,_0x448297={}){const _0x3a79f9=_0x6a9400;if(typeof _0x443068!==_0x3a79f9(0x6a3))throw new _0x55c079('Algorithm\x20factory\x20must\x20be\x20a\x20function',_0x3a79f9(0x5da),{'name':_0x542ab0});this['_n'](_0x3a79f9(0x266),[_0x542ab0,(_0xa5c81c,_0x5ebb3e)=>_0x443068(_0xa5c81c,_0x5ebb3e),_0x448297??{}],![]);}['listAlgorithms'](){const _0x65260a=_0x6a9400;return this['_n'](_0x65260a(0x53c),[],![]);}[_0x6a9400(0x259)](_0x1ef21b,_0x33c193){const _0xf7d056=_0x6a9400;if(typeof _0x33c193!==_0xf7d056(0x6a3))throw new _0x55c079('preparer\x20must\x20be\x20a\x20function',_0xf7d056(0x5da),{'name':_0x1ef21b});this['_n'](_0xf7d056(0x259),[_0x1ef21b,_0x33c193]);}[_0x6a9400(0x1d6)](_0x3eb2eb,_0x13056c){const _0x3c71cf=_0x6a9400;if(typeof _0x13056c!=='function')throw new _0x55c079(_0x3c71cf(0x662),_0x3c71cf(0x5da),{'name':_0x3eb2eb});this['_n'](_0x3c71cf(0x1d6),[_0x3eb2eb,_0x13056c]);}[_0x6a9400(0x295)](_0x255c98){const _0x7ecec3=_0x6a9400;if(_0x255c98==null)return this['_n'](_0x7ecec3(0x295),[null],![]);if(typeof _0x255c98!==_0x7ecec3(0x6a3))throw new _0x55c079(_0x7ecec3(0x294),_0x7ecec3(0x5da));const _0x2e68ed=this['okdb'];this['_n'](_0x7ecec3(0x295),[_0x362076=>_0x255c98(_0x362076,_0x2e68ed)],![]);}async['createEmbedder'](_0x21af7b,_0x5efcce={},_0x202436={},_0x33d703=null){const _0x10a5c4=_0x6a9400;return this[_0x10a5c4(0x78b)](await this['_nm'](_0x10a5c4(0x896),[_0x21af7b,_0x5efcce,_0x202436,_0x33d703]));}async['createIndexer'](_0xb94611,_0x3c3189={},_0x3fbc80={}){const _0x4324ee=_0x6a9400;return this[_0x4324ee(0x78b)](await this['_nm'](_0x4324ee(0x76f),[_0xb94611,_0x3c3189,_0x3fbc80]));}async['createSearch'](_0x1f3abf,_0x5ee8e9={},_0x398e10={}){const _0x3467a1=_0x6a9400;return this[_0x3467a1(0x78b)](await this[_0x3467a1(0x5e8)](_0x3467a1(0x7b6),[_0x1f3abf,_0x5ee8e9,_0x398e10]));}async[_0x6a9400(0x284)](_0x17d8e6,_0x2a5650={},_0x58f30d={}){const _0xdf3c08=_0x6a9400;return this[_0xdf3c08(0x78b)](await this[_0xdf3c08(0x5e8)](_0xdf3c08(0x284),[_0x17d8e6,_0x2a5650,_0x58f30d]));}async[_0x6a9400(0x534)](_0x4f2975,_0x1b27a2={},_0x36607a={}){const _0x54b7ae=_0x6a9400,_0x293ca3=await this[_0x54b7ae(0x5e8)]('createPipeline',[_0x4f2975,_0x1b27a2,_0x36607a]);return{'embedder':this[_0x54b7ae(0x78b)](_0x293ca3[_0x54b7ae(0x367)]),'indexer':this[_0x54b7ae(0x78b)](_0x293ca3[_0x54b7ae(0x43f)]),'worker':this[_0x54b7ae(0x78b)](_0x293ca3[_0x54b7ae(0x508)]),'search':this['_wrap'](_0x293ca3[_0x54b7ae(0x564)]),'api':this[_0x54b7ae(0x25b)](_0x293ca3['scopedName'],_0x293ca3[_0x54b7ae(0x367)][_0x54b7ae(0x781)],_0x293ca3[_0x54b7ae(0x508)]?_0x293ca3[_0x54b7ae(0x508)]['name']:_0x293ca3[_0x54b7ae(0x7a2)]+_0x54b7ae(0x23e))};}[_0x6a9400(0x299)](_0x166da4,_0x6f0410){const _0x4d7ebc=_0x6a9400;return this[_0x4d7ebc(0x7ea)]['engines'][_0x4d7ebc(0x4bf)](_0x166da4,_0x6f0410)?.['api']??null;}[_0x6a9400(0x367)](_0x3cf826){const _0x1c5191=_0x6a9400,_0x52f637=this[_0x1c5191(0x299)](_0x49e549[_0x1c5191(0x2dd)],_0x3cf826);if(!_0x52f637)return null;const _0x2fc58a=this,_0x2f5df1=_0x51face=>Array[_0x1c5191(0x63d)](_0x51face)&&Array[_0x1c5191(0x63d)](_0x51face[0x0])?_0x51face[_0x1c5191(0x255)](_0x34d61d=>Float32Array['from'](_0x34d61d)):Float32Array[_0x1c5191(0x3e9)](_0x51face);return new Proxy(_0x52f637,{'get'(_0x29f29b,_0x58727b){const _0xfe50f=_0x1c5191;if(_0x58727b==='dims')return _0x2fc58a[_0xfe50f(0x7ea)]['_call'](_0xfe50f(0x873),null,'apiCall',[_0x49e549['EMBEDDER'],_0x3cf826,'dims',[]],![])[_0xfe50f(0x37e)];if(_0x58727b===_0xfe50f(0x440))return async _0x2ced89=>_0x2f5df1(await _0x52f637['embed'](_0x2ced89));if(_0x58727b===_0xfe50f(0x6e8))return async _0x58f74d=>(await _0x52f637['embedBatch'](_0x58f74d))[_0xfe50f(0x255)](_0x293deb=>Float32Array[_0xfe50f(0x3e9)](_0x293deb));return _0x29f29b[_0x58727b];}});}[_0x6a9400(0x43f)](_0x2959d5){const _0x4cce70=_0x6a9400;return this[_0x4cce70(0x299)](_0x49e549[_0x4cce70(0x871)],_0x2959d5);}[_0x6a9400(0x508)](_0x3d998b){const _0x75ed78=_0x6a9400;return this[_0x75ed78(0x299)](_0x49e549[_0x75ed78(0x64f)],_0x3d998b);}[_0x6a9400(0x564)](_0x1b48e0){const _0x440861=_0x6a9400,_0x51792f=this['_running'](_0x49e549['SEARCH'],_0x1b48e0);if(_0x51792f)return _0x51792f;return this[_0x440861(0x6ce)](_0x1b48e0);}[_0x6a9400(0x6ce)](_0x2a1df8){const _0x3c17b7=_0x6a9400,_0x1c1915=this;return{'search':(_0xb825f6,_0x43c6d5={})=>_0x1c1915[_0x3c17b7(0x7ea)][_0x3c17b7(0x65f)]('embeddings',null,_0x3c17b7(0x564),[_0x2a1df8,_0x1f8fbf(_0xb825f6),_0x43c6d5],![]),'stats':async()=>_0x1c1915['_n'](_0x3c17b7(0x25c),[_0x2a1df8],![]),'count':()=>_0x1c1915['_n'](_0x3c17b7(0x6ac),[_0x2a1df8,_0x3c17b7(0x2eb)],![])};}async['searchDocs'](_0x4cf65c,_0x3a7fb3,_0x4f8be0={}){const _0x1ef797=_0x6a9400,{limit:limit=0xa,..._0x1efc31}=_0x4f8be0;return this[_0x1ef797(0x5e8)](_0x1ef797(0x40b),[_0x4cf65c,_0x1f8fbf(_0x3a7fb3),{..._0x1efc31,'limit':limit}]);}[_0x6a9400(0x637)](_0x31b92f){const _0xfb630a=_0x6a9400;return this['_n'](_0xfb630a(0x637),[_0x31b92f],![]);}[_0x6a9400(0x81f)](_0xcd137b,_0x349725){const _0x54d38a=_0x6a9400;return this['_n'](_0x54d38a(0x2ce),[_0xcd137b,_0x349725],![]);}[_0x6a9400(0x260)](_0x50ecf1){const _0x6ee0ca=_0x6a9400;return this['_n'](_0x6ee0ca(0x254),[_0x50ecf1],![]);}async[_0x6a9400(0x7cf)](_0x16380d){return this['_n']('durableStats',[_0x16380d],![]);}async[_0x6a9400(0x834)](_0x43cb81,_0x2092db={}){const _0x4adea4=_0x6a9400;return this['_n'](_0x4adea4(0x3e3),[_0x43cb81,_0x2092db],![]);}async[_0x6a9400(0x2fb)](_0x2e817e,_0x53e4f8){return this['_n']('durableDoc',[_0x2e817e,_0x53e4f8],![]);}async[_0x6a9400(0x273)](_0x4daeea,_0x329630,_0x4ecdb0,_0x5bbedb){const _0x2efb70=_0x6a9400;if(_0x4daeea!=null&&typeof _0x4daeea[_0x2efb70(0x417)]!==_0x2efb70(0x6a3))throw _0x345d8f(_0x2efb70(0x781),_0x2efb70(0x237),_0x4daeea);if(!_0x4daeea||!_0x4ecdb0)return null;return this[_0x2efb70(0x7ea)][_0x2efb70(0x65f)](_0x2efb70(0x378),null,_0x2efb70(0x273),[_0x4daeea,_0x329630,_0x4ecdb0,_0x5bbedb??null],![]);}async['durableMarkDone'](_0x1fe711,_0x1e258c,_0x5660fa={}){const _0x343d43=_0x6a9400,_0x4749bc={..._0x5660fa};if(_0x4749bc['vector'])_0x4749bc['vector']=Array['from'](_0x4749bc[_0x343d43(0x4c2)]);return this['_n'](_0x343d43(0x610),[_0x1fe711,_0x1e258c,_0x4749bc]);}async[_0x6a9400(0x450)](_0x4f8762,_0x2595e4,_0x4d7e67,_0x83753b={}){const _0xe98ed8=_0x6a9400;return this['_n'](_0xe98ed8(0x450),[_0x4f8762,_0x2595e4,_0x4d7e67,_0x83753b]);}async[_0x6a9400(0x50c)](_0x260b4e,_0x6082b){return this['_n']('durableMarkDelete',[_0x260b4e,_0x6082b]);}async[_0x6a9400(0x45d)](_0x44df1e,_0x26f0c9){const _0x5610f0=_0x6a9400;return this['_n'](_0x5610f0(0x45d),[_0x44df1e,_0x26f0c9]);}async[_0x6a9400(0x236)](_0x458ecc,_0x16abbb={}){const _0x5f5bc9=_0x6a9400;return this['_n'](_0x5f5bc9(0x236),[_0x458ecc,_0x16abbb]);}async[_0x6a9400(0x5fd)](_0x531059){const _0x25dc9d=_0x6a9400;return this[_0x25dc9d(0x5e8)](_0x25dc9d(0x5fd),[_0x531059]);}async[_0x6a9400(0x420)](_0x5899c7){const _0x514be2=_0x6a9400;return this['_n'](_0x514be2(0x57f),[_0x5899c7],![]);}[_0x6a9400(0x261)](_0x2e965d){return this['_n']('vectorStoreStats',[_0x2e965d],![]);}[_0x6a9400(0x787)](){const _0x5c6e8e=_0x6a9400;return this['_n'](_0x5c6e8e(0x787),[],![]);}[_0x6a9400(0x20f)](_0x9b04b7,_0x51bb70){const _0x1ed80d=_0x6a9400,_0x4fcd90=this['_n'](_0x1ed80d(0x20f),[_0x9b04b7,_0x51bb70],![]);return _0x4fcd90==null?null:Float32Array['from'](_0x4fcd90);}[_0x6a9400(0x678)](_0x47bca2,_0x24db31){const _0x302f08=_0x6a9400;return this['_n'](_0x302f08(0x678),[_0x47bca2,_0x24db31??null],![])??undefined;}async['registerModel'](_0x193d81,_0x3cbf91,_0x169847,_0x2b6c6b=''){const _0x180424=_0x6a9400;return this['_n'](_0x180424(0x2b1),[_0x193d81,_0x3cbf91,_0x169847,_0x2b6c6b]);}['listModels'](_0x3e942f=null){const _0x589bce=_0x6a9400;return this['_n'](_0x589bce(0x860),[_0x3e942f],![]);}['listProviders'](){return this['_n']('listProviders',[],![]);}async[_0x6a9400(0x883)](_0x3dd780,_0x306b71){const _0x2c895a=_0x6a9400;return this['_n']('ensureTypeEnv',[_0x3dd780,_0x306b71],![]),this['okdb'][_0x2c895a(0x5f4)]('~'+_0x3dd780+_0x2c895a(0x407)+_0x306b71);}async['_ensureVectorStore'](_0x2f23c1,_0x3794e0){const _0x349bca=_0x6a9400;return await this[_0x349bca(0x883)](_0x2f23c1,_0x3794e0),{'adapter':_0x99d9fa=>this[_0x349bca(0x421)](_0x2f23c1,_0x3794e0,_0x99d9fa)};}['_makeLazyVectorAdapter'](_0x23caa1,_0x8b6f4a,_0x5be979){const _0x41a2c9=this;return{async 'put'(_0x11f246,_0x1de268){const _0x5e7c67=_0x206c;return _0x41a2c9['_n']('vecPut',[_0x23caa1,_0x8b6f4a,_0x5be979,_0x11f246,Array[_0x5e7c67(0x3e9)](_0x1de268)]);},async 'remove'(_0x3c1ede){const _0xafdb5a=_0x206c;return _0x41a2c9['_n'](_0xafdb5a(0x437),[_0x23caa1,_0x8b6f4a,_0x5be979,_0x3c1ede]);}};}get['_localViews'](){const _0x5f42b1=_0x6a9400,_0x1f1b90=this,_0x3407ba=()=>_0x1f1b90['_n'](_0x5f42b1(0x6b7),[],![]),_0x410278=_0x2b69d9=>{const _0x207a2b=_0x5f42b1,_0x2eea72=_0x49775=>_0x1f1b90['_n']('viewOp',[_0x2b69d9,_0x49775],![]);return{'name':_0x2b69d9,'_evict':async()=>_0x2eea72('evict'),'evict':async()=>_0x2eea72(_0x207a2b(0x79f)),'snapshot':async()=>_0x2eea72(_0x207a2b(0x6ef)),'_snapshot':async()=>_0x2eea72(_0x207a2b(0x6ef)),'rebuild':async()=>_0x2eea72(_0x207a2b(0x7b0)),'stats':()=>_0x2eea72(_0x207a2b(0x855)),get 'count'(){const _0x47d894=_0x207a2b;return _0x2eea72(_0x47d894(0x2eb));},get 'loaded'(){const _0x525598=_0x207a2b;return _0x2eea72(_0x525598(0x32d));}};};return{get 'size'(){return _0x3407ba()['length'];},'has':_0xdef4c0=>_0x3407ba()[_0x5f42b1(0x417)](_0xdef4c0),'get':_0x38e839=>_0x3407ba()[_0x5f42b1(0x417)](_0x38e839)?_0x410278(_0x38e839):undefined,'keys':()=>_0x3407ba()[Symbol['iterator']](),'values':()=>_0x3407ba()['map'](_0x410278)[Symbol['iterator']](),[Symbol['iterator']]:()=>_0x3407ba()[_0x5f42b1(0x255)](_0x5921e5=>[_0x5921e5,_0x410278(_0x5921e5)])[Symbol[_0x5f42b1(0x1c7)]]()};}async[_0x6a9400(0x40c)](){}async['stop'](){const _0x470e3b=_0x6a9400;this['_n'](_0x470e3b(0x8a0),[]);}[_0x6a9400(0x25b)](_0x1e0b29,_0x9807df,_0x47d4c9){const _0x57e6e8=_0x6a9400;return{'search':(_0x4bceaa,_0x386fa1={})=>{const _0x25352f=_0x206c,_0x176470=this[_0x25352f(0x564)](_0x1e0b29);if(!_0x176470)throw new Error(_0x25352f(0x75a)+_0x1e0b29+'\x22');return _0x176470[_0x25352f(0x564)](_0x4bceaa,_0x386fa1);},'searchDocs':(_0x247370,_0x52568b={})=>this[_0x57e6e8(0x40b)](_0x1e0b29,_0x247370,_0x52568b),'flush':_0xfb3c69=>{const _0x14f3b5=_0x57e6e8,_0x31fc3d=this['indexer'](_0x1e0b29);if(!_0x31fc3d)throw new Error(_0x14f3b5(0x414)+_0x1e0b29+'\x22');return _0x31fc3d[_0x14f3b5(0x85a)](_0xfb3c69);},'stats':async()=>({'embedder':await this[_0x57e6e8(0x367)](_0x9807df)?.[_0x57e6e8(0x88d)]?.(),'indexer':await this[_0x57e6e8(0x43f)](_0x1e0b29)?.[_0x57e6e8(0x855)]?.(),'worker':await this[_0x57e6e8(0x508)](_0x47d4c9)?.[_0x57e6e8(0x855)]?.(),'search':await this[_0x57e6e8(0x564)](_0x1e0b29)?.[_0x57e6e8(0x855)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x2e8290,'ENGINE_TYPES':_0x49e549},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x4846ce=_0x3e8e44;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0xdbf8dc}=requireErrors();class _0xfa398d{constructor(_0x1f8435){const _0x4b1cda=_0x206c;this[_0x4b1cda(0x7ea)]=_0x1f8435;}['_n'](_0x42133c,_0x2fc968=[],_0x9b4f14=![]){const _0x309901=_0x206c;return this['okdb'][_0x309901(0x8ac)](_0x309901(0x826),null,_0x42133c,_0x2fc968,_0x9b4f14);}['_nm'](_0x2a49aa,_0x5084d1=[]){const _0x4f982b=_0x206c;return this[_0x4f982b(0x7ea)][_0x4f982b(0x65f)]('auth',null,_0x2a49aa,_0x5084d1,![]);}get[_0x4846ce(0x5a7)](){const _0x132343=_0x4846ce;return this['_n'](_0x132343(0x5a7));}get[_0x4846ce(0x635)](){const _0x57d426=_0x4846ce;return this['_n'](_0x57d426(0x635));}get[_0x4846ce(0x4f8)](){const _0x5be182=_0x4846ce;return this[_0x5be182(0x7ea)]['options'][_0x5be182(0x826)]?.[_0x5be182(0x5bd)]||{};}[_0x4846ce(0x3d4)](_0x2badae){const _0xa5ee0e=_0x4846ce;return this['_n'](_0xa5ee0e(0x3d4),[_0x2badae??null]);}[_0x4846ce(0x859)](_0x18f488){const _0x58b1d1=_0x4846ce;return this['_n'](_0x58b1d1(0x711),[_0x18f488??null]);}[_0x4846ce(0x1d3)](_0x5e8967){const _0x2e13d1=_0x4846ce;return this['_n'](_0x2e13d1(0x70b),[_0x5e8967??null]);}['_isBootstrap'](){return this['_n']('isBootstrap');}[_0x4846ce(0x3ab)](){return this['_n']('getOpenWarning');}['getAuthOptions'](){return this['_n']('getAuthOptions');}[_0x4846ce(0x7ff)](_0x290d41){const _0x3d866c=_0x4846ce;return this['_n'](_0x3d866c(0x7ff),[_0x290d41]);}[_0x4846ce(0x641)](_0x51d47d){const _0x2417d4=_0x4846ce;return this['_n'](_0x2417d4(0x641),[_0x51d47d]);}[_0x4846ce(0x499)](_0x36f259){const _0x762b40=_0x4846ce;if(_0x36f259!=null&&typeof _0x36f259!==_0x762b40(0x7f4))throw _0xdbf8dc(_0x762b40(0x7de),'a\x20string',_0x36f259);return this['_n'](_0x762b40(0x499),[_0x36f259??null]);}async[_0x4846ce(0x2aa)](){const _0x25ad96=_0x4846ce;return this['_n'](_0x25ad96(0x1bc),[],!![]);}async[_0x4846ce(0x782)](_0x2e2e9c){const _0x1df4df=_0x4846ce;return this['_n'](_0x1df4df(0x4ba),[_0x2e2e9c]);}async[_0x4846ce(0x5f1)](_0x1a9486){const _0x52c3a9=_0x4846ce;return this['_n'](_0x52c3a9(0x5f2),[_0x1a9486]);}async[_0x4846ce(0x462)](_0x165b7b){const _0x4ad339=_0x4846ce;return this['_n'](_0x4ad339(0x66a),[_0x165b7b]);}async['authenticateRequest'](_0x2477ec){const _0x53bd48=_0x4846ce,_0x4b5bc6=_0x2477ec?.[_0x53bd48(0x529)]||{};return this['_n'](_0x53bd48(0x26b),[{'remoteAddress':_0x2477ec['socket']?.[_0x53bd48(0x5b7)]??null,'internal':_0x2477ec?.[_0x53bd48(0x48d)]?.[_0x53bd48(0x472)]===!![],'authorization':_0x4b5bc6['authorization']??null,'cookies':_0x2477ec?.['cookies']??{}}]);}async[_0x4846ce(0x647)](_0x139ced,_0x25597e){const _0x57e23e=_0x4846ce;return this[_0x57e23e(0x5e8)](_0x57e23e(0x647),[_0x139ced??null,_0x25597e??null]);}async[_0x4846ce(0x603)](_0x3e974b,_0x18ac6a,_0x2c95b1){const _0x267026=_0x4846ce;return this[_0x267026(0x5e8)]('loginSelect',[_0x3e974b??null,_0x18ac6a??null,_0x2c95b1??null]);}[_0x4846ce(0x2a7)](){const _0x2a39c1=_0x4846ce;return this['_n'](_0x2a39c1(0x2a7));}[_0x4846ce(0x449)](){const _0xca88ee=_0x4846ce;return this['_n'](_0xca88ee(0x449));}[_0x4846ce(0x503)](_0x4ed0eb={},_0x324d08=0x927c0){const _0x58c2a2=_0x4846ce;return this['_n'](_0x58c2a2(0x503),[_0x4ed0eb,_0x324d08]);}[_0x4846ce(0x5f5)](_0x29d0fd){const _0x18a4b2=_0x4846ce;return this['_n'](_0x18a4b2(0x5f5),[_0x29d0fd]);}async[_0x4846ce(0x1bd)](_0x360a74,_0xc94af7={}){const _0x53f6f0=_0x4846ce;return this[_0x53f6f0(0x5e8)]('validateOidcAccessToken',[_0x360a74,_0xc94af7]);}async[_0x4846ce(0x888)](_0x3a011b={}){const _0x1de48c=_0x4846ce;return this[_0x1de48c(0x5e8)](_0x1de48c(0x6ed),[_0x3a011b]);}['_normalizeOAuthAuthResult'](_0x4b719d){const _0x2c0f03=_0x4846ce;return this['_n'](_0x2c0f03(0x861),[_0x4b719d]);}}return auth={'OKDBAuth':_0xfa398d},auth;}var sync,hasRequiredSync;function requireSync(){const _0x3d7d90=_0x3e8e44;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4540b2}=requireRawdb();class _0x5e3b8a{constructor(_0xf6aa9d){this['_s']=_0xf6aa9d;}get[_0x3d7d90(0x709)](){const _0x45daf6=_0x3d7d90;return this['_ack']||(this[_0x45daf6(0x2b2)]=new _0x4540b2(this['_s'][_0x45daf6(0x7ea)][_0x45daf6(0x61a)],_0x45daf6(0x652)));}['_openAckDb'](){const _0x53d35a=_0x3d7d90;return this[_0x53d35a(0x709)];}[_0x3d7d90(0x32f)](){const _0xe3fc02=_0x3d7d90;return this[_0xe3fc02(0x709)];}['_n'](_0x52476e,_0x3d7f3c=[]){const _0x2df6df=_0x3d7d90;return this['_s']['_n'](_0x2df6df(0x701)+_0x52476e,_0x3d7f3c);}['recordPeerAck'](_0x2e52f2,_0x39920a){const _0x1067b4=_0x3d7d90;return this['_n'](_0x1067b4(0x2cd),[_0x2e52f2,_0x39920a]);}async[_0x3d7d90(0x6b2)](_0x3d5bce){return this['_n']('forceResync',[_0x3d5bce]);}['getPeerAcks'](){const _0x223dfc=_0x3d7d90;return this['_n'](_0x223dfc(0x6d7));}[_0x3d7d90(0x3ec)](_0x4fc8f0){const _0x341237=_0x3d7d90;return this['_n'](_0x341237(0x3ec),[_0x4fc8f0]);}async[_0x3d7d90(0x794)](){return this['_n']('runGc');}['getStatus'](){const _0x3033b7=_0x3d7d90;return this['_n'](_0x3033b7(0x555));}['start'](){const _0x298daf=_0x3d7d90;return this['_n'](_0x298daf(0x40c));}[_0x3d7d90(0x8a0)](){const _0x310e2b=_0x3d7d90;return this['_n'](_0x310e2b(0x8a0));}get['_gcTimer'](){const _0x34a35b=_0x3d7d90;try{return this['_n'](_0x34a35b(0x5fc))?{}:null;}catch{return null;}}}class _0x420aa5{constructor(_0x371059){const _0x1e3194=_0x3d7d90;this[_0x1e3194(0x7ea)]=_0x371059,this['gc']=new _0x5e3b8a(this);const _0x38d104=this;this[_0x1e3194(0x5f0)]=new Proxy({},{'get':(_0x2575c1,_0x2a9bb1)=>typeof _0x2a9bb1===_0x1e3194(0x7f4)?_0x38d104['_n']('options')[_0x2a9bb1]:undefined,'set':(_0x1695ac,_0x214ec9,_0x4259dc)=>{const _0x99c1e3=_0x1e3194;if(_0x214ec9==='address')_0x38d104['_n']('setAddress',[_0x4259dc??null]);else{if(_0x214ec9===_0x99c1e3(0x742))_0x38d104['_n']('setToken',[_0x4259dc??null]);else{if(_0x214ec9===_0x99c1e3(0x533))_0x38d104['_n'](_0x99c1e3(0x7f2),[_0x4259dc]);}}return!![];},'ownKeys':()=>Object[_0x1e3194(0x362)](_0x38d104['_n'](_0x1e3194(0x5f0))),'getOwnPropertyDescriptor':(_0x15ff6b,_0x4404a8)=>({'enumerable':!![],'configurable':!![],'value':_0x38d104['_n'](_0x1e3194(0x5f0))[_0x4404a8]}),'has':(_0x22634a,_0x174fdd)=>_0x174fdd in _0x38d104['_n'](_0x1e3194(0x5f0))});}['_n'](_0x110c8f,_0x179b21=[],_0x825f73=![]){const _0x1bc8d8=_0x3d7d90;return this[_0x1bc8d8(0x7ea)][_0x1bc8d8(0x8ac)](_0x1bc8d8(0x3e7),null,_0x110c8f,_0x179b21,_0x825f73);}[_0x3d7d90(0x5e8)](_0x37caa1,_0x2a9ca8=[]){const _0x2935a0=_0x3d7d90;return this['okdb'][_0x2935a0(0x65f)](_0x2935a0(0x3e7),null,_0x37caa1,_0x2a9ca8,!![]);}get[_0x3d7d90(0x864)](){const _0x302ae1=_0x3d7d90;return this[_0x302ae1(0x6a5)]||(this[_0x302ae1(0x6a5)]=new _0x4540b2(this[_0x302ae1(0x7ea)][_0x302ae1(0x61a)],'__sync:peer_state'));}['_openLocalPeerDb'](){const _0x168449=_0x3d7d90;return this[_0x168449(0x864)];}get[_0x3d7d90(0x3f7)](){const _0x1aa026=_0x3d7d90;return this['_syncLock']||(this['_syncLock']=new(requireLock())['NativeLock'](this[_0x1aa026(0x7ea)],_0x1aa026(0x1a3),'sync',{'ttlMs':0x7530}));}get[_0x3d7d90(0x653)](){const _0x4236a2=_0x3d7d90;return this['_n'](_0x4236a2(0x5f0))[_0x4236a2(0x653)];}get[_0x3d7d90(0x64d)](){const _0x4a6f5c=_0x3d7d90;return this['okdb'][_0x4a6f5c(0x65c)]&&this['_n'](_0x4a6f5c(0x5eb))?{}:null;}get['_pokeListener'](){const _0x3d527e=_0x3d7d90;return this[_0x3d527e(0x64d)];}get[_0x3d7d90(0x22d)](){const _0x1f7761=_0x3d7d90;return this['_n'](_0x1f7761(0x76a))?.[_0x1f7761(0x644)];}get['_nodePublicKey'](){return this['_n']('nodeKeys')?.['publicKey'];}[_0x3d7d90(0x3ce)](){return this['_n']('info');}['getSelfNode'](){const _0x90b122=_0x3d7d90;return this['_n'](_0x90b122(0x7e5));}get[_0x3d7d90(0x86c)](){return this['__peers']||(()=>this['_n']('peers'));}set['peers'](_0x2cee76){const _0x5c72e5=_0x3d7d90;this[_0x5c72e5(0x6af)]=typeof _0x2cee76===_0x5c72e5(0x6a3)?_0x2cee76:null,this['_n']('setPeersFn',[this[_0x5c72e5(0x6af)]]);}[_0x3d7d90(0x82e)](){const _0x39df94=_0x3d7d90;return this['_n'](_0x39df94(0x7da));}async[_0x3d7d90(0x7b8)](){const _0x42b782=_0x3d7d90;return this['_nm'](_0x42b782(0x7b8));}async[_0x3d7d90(0x671)](_0x40faa4){return this['_nm']('reconcilePeer',[_0x40faa4]);}async[_0x3d7d90(0x4b7)](_0x436dec,_0x13849a={}){const _0x1bb515=_0x3d7d90;return this['_nm'](_0x1bb515(0x69b),[_0x436dec,_0x13849a]);}[_0x3d7d90(0x8a0)](){return this['_n']('stop');}[_0x3d7d90(0x768)](){const _0x418c2b=_0x3d7d90;return this['_n'](_0x418c2b(0x768));}async[_0x3d7d90(0x302)](_0x24511e,_0x14ef7a={}){const _0x318de0=_0x3d7d90;return this['_n'](_0x318de0(0x302),[_0x24511e,_0x14ef7a],!![]);}async[_0x3d7d90(0x224)](_0x28d44a){const _0x47ec40=_0x3d7d90;return this['_n'](_0x47ec40(0x224),[_0x28d44a],!![]);}[_0x3d7d90(0x54a)](_0x1287f3){const _0x399753=_0x3d7d90;return this['_n'](_0x399753(0x667),[_0x1287f3]);}[_0x3d7d90(0x379)](_0xdceb39){return this['_n']('getPeerState',[_0xdceb39]);}async['_setPeerState'](_0x555712,_0x40a7fc,_0x107456={}){return this['_n']('setPeerState',[_0x555712,_0x40a7fc,_0x107456]);}async[_0x3d7d90(0x44c)](_0x3b31fa){return this['_n']('ensurePeerState',[_0x3b31fa]);}async[_0x3d7d90(0x5bc)](){const _0x3cccc2=_0x3d7d90;return this['_n'](_0x3cccc2(0x46f),[],!![]);}async[_0x3d7d90(0x425)](_0x527649){const _0x534e90=_0x3d7d90;return this['_n'](_0x534e90(0x425),[_0x527649],!![]);}async['join'](_0x167fc8,_0x2f6709={}){const _0x55c6df=_0x3d7d90;return this['_nm'](_0x55c6df(0x278),[_0x167fc8,_0x2f6709]);}async[_0x3d7d90(0x3fd)](_0x14f589={},_0x32f2aa={}){const _0xc396ab=_0x3d7d90;return void _0x14f589['~system'],this['_n'](_0xc396ab(0x3fd),[_0x14f589,_0x32f2aa]);}async['fetchPeer'](_0x478d03,_0x38d41e,_0x32e902,_0xbc7fed){const _0x394a89=_0x3d7d90;return this[_0x394a89(0x5e8)](_0x394a89(0x620),[_0x478d03,_0x38d41e,_0x32e902,_0xbc7fed??null]);}async[_0x3d7d90(0x58d)](_0x2c1e4e,_0x2e6830,_0x440216={}){const _0xd60d73=_0x3d7d90;return this['_nm'](_0xd60d73(0x58d),[_0x2c1e4e,_0x2e6830,_0x440216]);}[_0x3d7d90(0x6dd)](_0x5f4076,_0x5dc047=null){const _0x5791aa=_0x3d7d90;return this['_n']('shouldApplyChange',[_0x5f4076,_0x5dc047?_0x5dc047[_0x5791aa(0x781)]:null]);}[_0x3d7d90(0x87a)](_0x488127,_0x297fe3=null){const _0x1db078=_0x3d7d90;return this['_n']('applyChange',[_0x488127,_0x297fe3?_0x297fe3[_0x1db078(0x781)]:null],!![]);}}return sync={'OKDBSync':_0x420aa5},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0xe56434=_0x3e8e44;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x39f5ef}=requireErrors(),_0x6249af=require$$0,_0x2f7b27=require$$4,_0x7dc2a2=0x40*0x400;async function _0x216be8(_0x5de28a,_0x18e11){const _0x8f6315=_0x206c;for(let _0x19bd86=0x0;_0x19bd86<_0x18e11[_0x8f6315(0x61b)];){let _0x14726e=Math[_0x8f6315(0x3bb)](_0x18e11[_0x8f6315(0x61b)],_0x19bd86+_0x7dc2a2);if(_0x14726e<_0x18e11[_0x8f6315(0x61b)]){const _0xb647c9=_0x18e11['indexOf'](0xa,_0x14726e-0x1);_0x14726e=_0xb647c9===-0x1?_0x18e11[_0x8f6315(0x61b)]:_0xb647c9+0x1;}const _0x18790e=_0x5de28a[_0x8f6315(0x2d6)](_0x18e11[_0x8f6315(0x40f)](_0x19bd86,_0x14726e));_0x19bd86=_0x14726e;if(!_0x18790e)await new Promise(_0xdd794d=>_0x5de28a['once'](_0x8f6315(0x674),_0xdd794d));await new Promise(_0x501811=>setImmediate(_0x501811));}}async function _0x17073c(_0x10147e){const _0x411d41=_0x206c,_0x135d6f=[];for await(const _0x160651 of _0x10147e)_0x135d6f[_0x411d41(0x491)](Buffer[_0x411d41(0x3bf)](_0x160651)?_0x160651:Buffer[_0x411d41(0x3e9)](_0x160651,_0x411d41(0x828)));return Buffer[_0x411d41(0x44b)](_0x135d6f);}class _0x35cd1f{constructor(_0x2f48a7){this['okdb']=_0x2f48a7;}['_n'](_0xa02468,_0x47a7db){const _0x51e3aa=_0x206c;return this[_0x51e3aa(0x7ea)][_0x51e3aa(0x8ac)](_0x51e3aa(0x72c),null,_0xa02468,_0x47a7db,!![]);}async[_0xe56434(0x62e)](_0x59e111,_0x597e6c={}){const _0x1ba77e=_0xe56434,{data:_0x1479de,stats:_0x1b674e}=this['_n'](_0x1ba77e(0x467),[_0x597e6c]);return await _0x216be8(_0x59e111,Buffer[_0x1ba77e(0x3e9)](_0x1479de)),_0x1b674e;}async[_0xe56434(0x38a)](_0x29611f,_0x390790={}){const _0x32c20d=_0xe56434;_0x6249af[_0x32c20d(0x601)](_0x2f7b27['dirname'](_0x29611f),{'recursive':!![]});const _0x42d057=_0x6249af['createWriteStream'](_0x29611f),_0x3638de=await this[_0x32c20d(0x62e)](_0x42d057,_0x390790);return await new Promise((_0x13d552,_0x4094e8)=>{const _0xf6879e=_0x32c20d;_0x42d057['end'](),_0x42d057[_0xf6879e(0x265)](_0xf6879e(0x42e),_0x13d552),_0x42d057['once'](_0xf6879e(0x5cc),_0x4094e8);}),{..._0x3638de,'filePath':_0x29611f};}async[_0xe56434(0x439)](_0x856548,_0x8f2e45={}){const _0x121f23=_0xe56434,{data:_0x22256e,stats:_0x1baf91}=this['_n']('exportEnvsBuf',[_0x8f2e45]);return await _0x216be8(_0x856548,Buffer[_0x121f23(0x3e9)](_0x22256e)),_0x1baf91;}async[_0xe56434(0x799)](_0x4f097e,_0x3af680={}){const _0x1eb556=_0xe56434,_0x974a45=await _0x17073c(_0x4f097e),{onProgress:_0x32ae5a,..._0x3b4f0d}=_0x3af680,_0x4d6cc4=this['_n'](_0x1eb556(0x814),[_0x974a45,_0x3b4f0d]);if(typeof _0x32ae5a===_0x1eb556(0x6a3))_0x32ae5a({'type':null,'count':_0x4d6cc4[_0x1eb556(0x28d)]});return _0x4d6cc4;}async['importFromFile'](_0x2cbb73,_0x14a307={}){const _0x3eaabc=_0xe56434;return this[_0x3eaabc(0x799)](_0x6249af[_0x3eaabc(0x1ba)](_0x2cbb73,{'encoding':'utf8'}),_0x14a307);}async[_0xe56434(0x369)](_0x386d12,_0x4c2bbf={}){const _0x1375fa=_0xe56434;return this['_n'](_0x1375fa(0x369),[_0x386d12,_0x4c2bbf]);}['backupRoot'](){const _0x1800e0=_0xe56434;return this['_n'](_0x1800e0(0x285),[]);}[_0xe56434(0x82c)](_0x5c1a0d){const _0x405791=_0xe56434;return this['_n'](_0x405791(0x82c),[_0x5c1a0d??null]);}async[_0xe56434(0x7f8)](_0x2e91e9={}){const _0x208cec=_0xe56434;return this['_n'](_0x208cec(0x7f8),[_0x2e91e9]);}async[_0xe56434(0x69a)](_0x389f4c,_0x47ac6e={}){const _0x1dc0bf=_0xe56434;return this['_n'](_0x1dc0bf(0x69a),[_0x389f4c,_0x47ac6e]);}async[_0xe56434(0x874)](_0x52399d){const _0x4434c9=_0xe56434,{pretty:pretty=![]}=_0x39f5ef(_0x52399d);return JSON[_0x4434c9(0x739)](await this[_0x4434c9(0x7f8)](),null,pretty?0x2:0x0);}async[_0xe56434(0x60e)](_0x64ce3){const _0x3803a3=_0xe56434;return this[_0x3803a3(0x69a)](JSON['parse'](_0x64ce3));}[_0xe56434(0x880)](){const _0x2d52ec=_0xe56434;if(!this[_0x2d52ec(0x7ea)]['_envs'][_0x2d52ec(0x212)](_0x2d52ec(0x608))?.[_0x2d52ec(0x32c)])throw new Error('files\x20feature\x20not\x20available');}async[_0xe56434(0x839)](_0x5e1e3f){const _0x594c00=_0xe56434;return this[_0x594c00(0x880)](),this['_n']('exportBlobs',[_0x5e1e3f]);}async['importBlobs'](_0x110bc9){const _0x5f6ab5=_0xe56434;return this[_0x5f6ab5(0x880)](),this['_n']('importBlobs',[_0x110bc9]);}['_allEnvsWithFiles'](){const _0xd6efe6=_0xe56434;return this['_n'](_0xd6efe6(0x263),[])[_0xd6efe6(0x255)](_0x1b65cc=>this[_0xd6efe6(0x7ea)][_0xd6efe6(0x2a8)](_0x1b65cc));}async['validateBlobIntegrity'](){const _0x4cce87=_0xe56434;return this[_0x4cce87(0x880)](),this['_n']('validateBlobIntegrity',[]);}async['repairBlobRefs'](){const _0x4fc6a9=_0xe56434;return this[_0x4fc6a9(0x880)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x35cd1f},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x2ca6b9=_0x3e8e44;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x526f52{constructor(_0x70129e){const _0x47f2e9=_0x206c;this[_0x47f2e9(0x7ea)]=_0x70129e,this['clients']=new Map();}['_n'](_0x33070b,_0x2f02d0){const _0x558dd6=_0x206c;try{return this[_0x558dd6(0x7ea)]['_call'](_0x558dd6(0x59e),null,_0x33070b,_0x2f02d0,!![]);}catch(_0xa411ab){if(_0xa411ab&&_0xa411ab[_0x558dd6(0x42b)]===_0x558dd6(0x195)&&_0xa411ab['details']){if(_0xa411ab[_0x558dd6(0x415)][_0x558dd6(0x1b4)]!==undefined)_0xa411ab[_0x558dd6(0x1b4)]=_0xa411ab[_0x558dd6(0x415)]['jsonrpcCode'];_0xa411ab['details']=_0xa411ab[_0x558dd6(0x415)]['details'],_0xa411ab['code']=undefined;}throw _0xa411ab;}}['_tools'](){const _0x4cda75=_0x206c;return this['_n'](_0x4cda75(0x2b3),[]);}async['_call'](_0x5379a4,_0xd859c1={}){const _0x1db67b=_0x206c;return this['_n'](_0x1db67b(0x4e9),[_0x5379a4??null,_0xd859c1??{}]);}async[_0x2ca6b9(0x47c)](_0x3e5b0c,_0x3fef28={}){return this['_n']('handle',[_0x3e5b0c,_0x3fef28??{}]);}['_initialize'](_0x381bf0){const _0x3aaa55=_0x2ca6b9;return this['_n'](_0x3aaa55(0x70e),[_0x381bf0??null]);}}return mcp={'OKDBMcp':_0x526f52},mcp;}var sys,hasRequiredSys;function requireSys(){const _0xa238dd=_0x3e8e44;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x2f40b3(_0x55c5e4,_0x79b887,_0x843f65){const _0x250284=_0x206c,_0x49c36a={};for(const [_0x5ecf73,_0x350ccc]of Object[_0x250284(0x375)](_0x843f65)){_0x49c36a[_0x5ecf73]=_0x350ccc===_0x250284(0x20c)?async(..._0xf3af27)=>_0x55c5e4[_0x250284(0x8ac)](_0x79b887,null,_0x5ecf73,_0xf3af27):(..._0xd25619)=>_0x55c5e4['_call'](_0x79b887,null,_0x5ecf73,_0xd25619,![]);}return _0x49c36a;}const _0x473568=[_0xa238dd(0x6e0),'isType',_0xa238dd(0x4a8),_0xa238dd(0x3b1),_0xa238dd(0x2db),_0xa238dd(0x61e),'getIndexStatus',_0xa238dd(0x220),'describeIndexes','typeStats','indexStats','describeTypeDetailed',_0xa238dd(0x64a),_0xa238dd(0x3f1),_0xa238dd(0x79a),'getIndexCount',_0xa238dd(0x692),_0xa238dd(0x760),_0xa238dd(0x253),'recomputeFields',_0xa238dd(0x5e2)],_0x20191d={'add':_0xa238dd(0x20c),'activate':_0xa238dd(0x20c),'remove':_0xa238dd(0x20c),'list':'sync','get':_0xa238dd(0x3e7),'effective':_0xa238dd(0x3e7)},_0x367a0a={'open':_0xa238dd(0x20c),'register':_0xa238dd(0x20c),'buildOwnRow':_0xa238dd(0x3e7),'_buildProcessingFacet':_0xa238dd(0x3e7),'reportThreadStats':'sync','clearThreadStats':_0xa238dd(0x3e7),'emitProc':_0xa238dd(0x3e7),'addSupervisedChild':_0xa238dd(0x20c),'removeSupervisedChild':_0xa238dd(0x3e7),'updateSupervisedChildStats':_0xa238dd(0x3e7),'publishChildRow':'async','putNode':_0xa238dd(0x20c),'removeNode':_0xa238dd(0x20c),'nodeDead':_0xa238dd(0x3e7),'listNodes':'sync','reap':_0xa238dd(0x20c),'publishOwnRow':_0xa238dd(0x20c),'deregisterSelf':'async','setOwnMeta':_0xa238dd(0x3e7),'noteListenAddr':_0xa238dd(0x3e7),'hasDesired':_0xa238dd(0x3e7),'getDesired':_0xa238dd(0x3e7),'setDesired':_0xa238dd(0x20c),'listDesired':_0xa238dd(0x3e7),'getCmd':_0xa238dd(0x3e7),'bumpCmd':'async','processingStatusView':_0xa238dd(0x3e7),'processorsView':_0xa238dd(0x3e7),'clusterStatusView':_0xa238dd(0x3e7),'nodesView':'sync','treeView':_0xa238dd(0x3e7),'getProcess':_0xa238dd(0x3e7),'runtimeProcessesView':_0xa238dd(0x3e7)};function _0x4c7fb5(_0x30537d){const _0xc49799=_0xa238dd,_0x472002={},_0x5f346b=_0x26a8c5=>_0x26a8c5&&typeof _0x26a8c5===_0xc49799(0x677)&&!Array[_0xc49799(0x63d)](_0x26a8c5)&&typeof _0x26a8c5[_0xc49799(0x781)]===_0xc49799(0x7f4)?_0x26a8c5[_0xc49799(0x781)]:_0x26a8c5;for(const _0x13dbd3 of _0x473568)_0x472002[_0x13dbd3]=_0x13dbd3===_0xc49799(0x1ea)?async(..._0x272626)=>_0x30537d[_0xc49799(0x8ac)](_0xc49799(0x3f1),null,_0x13dbd3,_0x272626[_0xc49799(0x255)](_0x5f346b),!![]):(..._0x49e22c)=>_0x30537d[_0xc49799(0x8ac)]('meta',null,_0x13dbd3,_0x49e22c[_0xc49799(0x255)](_0x5f346b),![]);return _0x472002;}function _0x3bb80d(_0x5341e7){const _0x9e8250=_0xa238dd,_0x49713b=_0x2f40b3(_0x5341e7,_0x9e8250(0x3b2),_0x20191d);return _0x49713b;}function _0x112ebe(_0x2d3e12){const _0x40826f=()=>_0x2d3e12['licenses']['effective'](),_0x33e6cc=_0x27420=>_0x27420['free']?{..._0x27420,'_isFree':!![]}:_0x27420;return{async 'addLicense'(_0xb70dd3){const _0x492bf5=_0x206c;return _0x2d3e12[_0x492bf5(0x3b2)][_0x492bf5(0x6dc)](_0xb70dd3);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x4fa95b=_0x40826f();return _0x4fa95b['free']?null:_0x4fa95b;},get 'effective'(){return _0x33e6cc(_0x40826f());},'hasLimit'(_0x143f89){const _0x293d15=_0x206c,_0x299898=_0x40826f();if(!_0x299898['enforced'])return![];const _0x366bfa=_0x299898[_0x293d15(0x307)]?.[_0x143f89];return!(_0x366bfa===null||_0x366bfa===undefined||_0x366bfa===0x0);},'isFeatureEnabled'(_0x407781){const _0x2fcf1d=_0x206c,_0x1456f2=_0x40826f();return!_0x1456f2[_0x2fcf1d(0x454)]||!!_0x1456f2[_0x2fcf1d(0x4af)]?.[_0x407781];},'assertFeature'(_0x2e2669){const _0x108499=_0x206c,_0x386888=_0x40826f();if(!_0x386888['enforced']||_0x386888[_0x108499(0x4af)]?.[_0x2e2669])return;const {OKDBError:_0x27618f}=requireErrors(),_0x3035c7=_0x386888[_0x108499(0x424)]?_0x108499(0x858)+_0x2e2669+_0x108499(0x215)+_0x2e2669+'\x22\x20to\x20enable\x20it.':'Feature\x20not\x20licensed:\x20'+_0x2e2669+_0x108499(0x473)+_0x2e2669+'\x22.';throw new _0x27618f(_0x3035c7,'LICENSE_FEATURE_DISABLED',{'feature':_0x2e2669});},'assertLimit'(_0x564e96,_0x28288b){const _0x3804c9=_0x206c,_0x244454=_0x40826f();if(!_0x244454[_0x3804c9(0x454)])return;const _0x196e92=_0x244454[_0x3804c9(0x307)]?.[_0x564e96];if(_0x196e92===null||_0x196e92===undefined||_0x196e92===0x0)return;if(_0x28288b>=_0x196e92){const {OKDBError:_0x3e53d6}=requireErrors();throw new _0x3e53d6(_0x3804c9(0x4ec)+_0x564e96+'\x20('+_0x28288b+'/'+_0x196e92+')',_0x3804c9(0x348),{'limit':_0x564e96,'current':_0x28288b,'max':_0x196e92});}},'listLicenses'(){const _0x963bea=_0x206c;return _0x2d3e12[_0x963bea(0x3b2)][_0x963bea(0x41d)]();},'getPins'(){const _0x24a49a=_0x206c;return _0x2d3e12[_0x24a49a(0x3b2)][_0x24a49a(0x41d)]()['map'](_0x32ac6d=>({'licenseId':_0x32ac6d['id'],'pin':_0x32ac6d[_0x24a49a(0x576)]==='open'?null:_0x32ac6d[_0x24a49a(0x6c6)]}));}};}function _0xdef39(_0x361a74){const _0x5a8ee0=_0xa238dd,_0x3e28f3=_0x2f40b3(_0x361a74,_0x5a8ee0(0x315),_0x367a0a);Object[_0x5a8ee0(0x2a1)](_0x3e28f3,_0x5a8ee0(0x6ec),{'get':()=>_0x361a74[_0x5a8ee0(0x8ac)](_0x5a8ee0(0x315),null,_0x5a8ee0(0x6ec),[],![])}),Object['defineProperty'](_0x3e28f3,_0x5a8ee0(0x599),{'get':()=>_0x361a74[_0x5a8ee0(0x8ac)](_0x5a8ee0(0x315),null,_0x5a8ee0(0x599),[],![])}),_0x3e28f3[_0x5a8ee0(0x3d0)]=null;const _0x47f513=_0x3e28f3[_0x5a8ee0(0x51e)];_0x3e28f3[_0x5a8ee0(0x51e)]=_0x7d69d8=>{const _0x25995e=_0x5a8ee0;return _0x3e28f3[_0x25995e(0x3d0)]=_0x7d69d8,_0x47f513(_0x7d69d8);};const _0x220bf9=()=>_0x3e28f3[_0x5a8ee0(0x4e0)]()[_0x5a8ee0(0x255)](_0x40e347=>({'key':_0x40e347[_0x5a8ee0(0x58c)],'value':_0x40e347,'version':0x1})),_0x9a3302={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x55ebdf=>_0x55ebdf==='node','getRange':_0x515245=>_0x515245===_0x5a8ee0(0x45c)?_0x220bf9()[Symbol['iterator']]():[][Symbol[_0x5a8ee0(0x1c7)]](),'getKeys':_0x15f495=>_0x15f495===_0x5a8ee0(0x45c)?_0x220bf9()[_0x5a8ee0(0x255)](_0x3555a4=>_0x3555a4[_0x5a8ee0(0x868)])[Symbol[_0x5a8ee0(0x1c7)]]():[][Symbol[_0x5a8ee0(0x1c7)]](),'getValues':_0x3cb6e4=>_0x3cb6e4===_0x5a8ee0(0x45c)?_0x220bf9()[_0x5a8ee0(0x255)](_0x57a32e=>_0x57a32e['value'])[Symbol[_0x5a8ee0(0x1c7)]]():[][Symbol[_0x5a8ee0(0x1c7)]](),'get':(_0x1816fd,_0x3d151e)=>_0x1816fd==='node'?_0x220bf9()[_0x5a8ee0(0x574)](_0x49456b=>_0x49456b[_0x5a8ee0(0x868)]===_0x3d151e)?.['value']:undefined,'getCount':_0x4abd39=>_0x4abd39===_0x5a8ee0(0x45c)?_0x220bf9()['length']:0x0};Object[_0x5a8ee0(0x2a1)](_0x3e28f3,_0x5a8ee0(0x607),{'get':()=>_0x361a74[_0x5a8ee0(0x8ac)](_0x5a8ee0(0x315),null,_0x5a8ee0(0x766),[],![])?_0x9a3302:null});const _0x1b0d4d=_0x3e28f3['open'];_0x3e28f3[_0x5a8ee0(0x703)]=async _0x30119b=>{const _0x1ab31a=_0x5a8ee0;return await _0x1b0d4d(_0x30119b),_0x3e28f3[_0x1ab31a(0x607)];},_0x3e28f3[_0x5a8ee0(0x1aa)]=()=>_0x361a74['_call'](_0x5a8ee0(0x315),null,'ensureDesired',[],!![]);const {RawDb:_0x1e4f87}=requireRawdb();return Object[_0x5a8ee0(0x2a1)](_0x3e28f3,'_desired',{'get':()=>_0x361a74[_0x5a8ee0(0x61a)]?_0x3e28f3[_0x5a8ee0(0x776)]||=new _0x1e4f87(_0x361a74[_0x5a8ee0(0x61a)],'~processes:desired'):undefined}),Object[_0x5a8ee0(0x2a1)](_0x3e28f3,'_cmd',{'get':()=>_0x361a74['_systemEnv']?_0x3e28f3[_0x5a8ee0(0x225)]||=new _0x1e4f87(_0x361a74[_0x5a8ee0(0x61a)],_0x5a8ee0(0x227)):undefined}),_0x3e28f3['isActive']=()=>_0x361a74[_0x5a8ee0(0x8ac)](_0x5a8ee0(0x315),null,'isActive',[],![]),Object[_0x5a8ee0(0x2a1)](_0x3e28f3,_0x5a8ee0(0x5d5),{'get':()=>_0x361a74[_0x5a8ee0(0x8ac)](_0x5a8ee0(0x315),null,'isWriter',[],![])}),Object[_0x5a8ee0(0x2a1)](_0x3e28f3,_0x5a8ee0(0x49a),{'get':()=>_0x361a74[_0x5a8ee0(0x8ac)](_0x5a8ee0(0x315),null,_0x5a8ee0(0x567),[],![])}),_0x3e28f3['_buildOwnRow']=()=>_0x361a74[_0x5a8ee0(0x8ac)]('processes',null,_0x5a8ee0(0x786),[],![]),_0x3e28f3['_emitProc']=(_0x2d63e0,_0x3e5ccc)=>_0x361a74[_0x5a8ee0(0x8ac)]('processes',null,_0x5a8ee0(0x7fa),[_0x2d63e0,_0x3e5ccc],![]),_0x3e28f3;}return sys={'makeMeta':_0x4c7fb5,'makeLicenses':_0x3bb80d,'makeLicenseChecker':_0x112ebe,'makeProcesses':_0xdef39},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x57a43e=_0x3e8e44;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x36c829={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x1816b5{constructor(_0x256b1d){const _0x339896=_0x206c;this[_0x339896(0x7ea)]=_0x256b1d,this[_0x339896(0x697)]=new Set(),this[_0x339896(0x572)]={};}[_0x57a43e(0x3dd)](_0x222e01){const _0x4d382f=_0x57a43e,_0x11cbf9=new _0x1816b5(this[_0x4d382f(0x7ea)]);return _0x11cbf9[_0x4d382f(0x697)]=this[_0x4d382f(0x697)],_0x11cbf9['_meta']={...this['_meta'],..._0x222e01},_0x11cbf9;}[_0x57a43e(0x7b4)](_0x23dd96){const _0x5e5fe0=_0x57a43e;return this[_0x5e5fe0(0x697)][_0x5e5fe0(0x6dc)](_0x23dd96),()=>this[_0x5e5fe0(0x697)][_0x5e5fe0(0x588)](_0x23dd96);}[_0x57a43e(0x7a0)](){const _0x31fccb=_0x57a43e,_0x15fd55=_0x36c829[process.env.OKDB_LOG_LEVEL]??_0x36c829[_0x31fccb(0x3ce)];return this['_detachConsole']=this[_0x31fccb(0x7b4)](({level:_0x59c9ea,msg:_0x4a018f,meta:_0x2d2473,context:_0x24fca3,ts:_0x2c9fac})=>{const _0x3e25b9=_0x31fccb;if((_0x36c829[_0x59c9ea]??_0x36c829['info'])<_0x15fd55)return;if(_0x2d2473?.['feature']===_0x3e25b9(0x4da)&&(_0x59c9ea===_0x3e25b9(0x3ce)||_0x59c9ea===_0x3e25b9(0x241)))return;const _0x113b49=_0x59c9ea===_0x3e25b9(0x5cc)?console['error']:_0x59c9ea===_0x3e25b9(0x6c3)?console[_0x3e25b9(0x6c3)]:_0x59c9ea===_0x3e25b9(0x3ce)?console[_0x3e25b9(0x3ce)]:console[_0x3e25b9(0x4ce)],_0x94de86=_0x2d2473&&Object['keys'](_0x2d2473)['length']>0x0;_0x94de86||_0x24fca3!==undefined?_0x113b49(new Date(_0x2c9fac)[_0x3e25b9(0x7e4)](),_0x4a018f,..._0x94de86?[_0x2d2473]:[],..._0x24fca3!==undefined?[_0x24fca3]:[]):_0x113b49(new Date(_0x2c9fac)[_0x3e25b9(0x7e4)](),_0x4a018f);}),this[_0x31fccb(0x690)];}[_0x57a43e(0x8a9)](){const _0x552645=_0x57a43e;this['_detachConsole']&&(this[_0x552645(0x690)](),this[_0x552645(0x690)]=null);}[_0x57a43e(0x615)](_0x1789c1,_0x728286){const _0x175ec0=require$$0$4,_0x448b91=0x1f4,_0x48762c=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x33d87b=[],_0x49245e=0x0,_0x21f883=null;const _0x29a9fd=()=>{const _0x208c1b=_0x206c;_0x21f883=null;if(_0x33d87b['length']===0x0)return;const _0x42addb=_0x33d87b;_0x33d87b=[],_0x49245e>0x0&&(_0x42addb[_0x208c1b(0x491)]({'ts':Date[_0x208c1b(0x590)](),'level':_0x208c1b(0x6c3),'msg':_0x208c1b(0x5e5)+_0x49245e+_0x208c1b(0x631)+(_0x49245e===0x1?'y':_0x208c1b(0x2c7))+'\x20dropped\x20(buffer\x20full)','feature':_0x208c1b(0x4ce),'node':_0x728286,'context':null}),_0x49245e=0x0),_0x1789c1[_0x208c1b(0x6d6)](_0x155455=>{const _0x3771bb=_0x208c1b;for(const _0x31fc6d of _0x42addb)_0x155455[_0x3771bb(0x3fe)](_0x3771bb(0x85c),_0x175ec0[_0x3771bb(0x89a)](),_0x31fc6d);})[_0x208c1b(0x7c4)](()=>{});},_0x3427b1=this['attach'](({level:_0x5b9fc0,msg:_0x3d82ce,meta:_0x312876,context:_0x587a3e,ts:_0x1a3e63})=>{const _0x5c9e7e=_0x206c;if(_0x5b9fc0===_0x5c9e7e(0x241))return;_0x33d87b[_0x5c9e7e(0x61b)]>=_0x448b91&&(_0x49245e++,_0x33d87b['shift']()),_0x33d87b[_0x5c9e7e(0x491)]({'ts':_0x1a3e63,'level':_0x5b9fc0,'msg':_0x3d82ce,'feature':_0x312876?.['feature']??_0x312876?.['module']??null,'node':_0x728286,'context':_0x587a3e??null}),!_0x21f883&&(_0x21f883=setTimeout(_0x29a9fd,_0x48762c),_0x21f883[_0x5c9e7e(0x63e)]?.());});return()=>{_0x3427b1();if(_0x21f883)clearTimeout(_0x21f883);_0x29a9fd();};}[_0x57a43e(0x1fc)](_0x366d17,_0x25b769,_0x469bf7){const _0x16e2cf=_0x57a43e;_0x25b769 instanceof Error&&(_0x469bf7={'message':_0x25b769['message'],'stack':_0x25b769[_0x16e2cf(0x6ca)],..._0x469bf7},_0x25b769=_0x25b769[_0x16e2cf(0x412)]);const _0x4f04f2={'level':_0x366d17,'msg':_0x25b769,'meta':{...this[_0x16e2cf(0x572)]},'context':_0x469bf7,'ts':Date[_0x16e2cf(0x590)]()};try{this[_0x16e2cf(0x7ea)][_0x16e2cf(0x85d)][_0x16e2cf(0x749)](_0x16e2cf(0x4ce),_0x4f04f2);}catch{}for(const _0x280eb5 of this[_0x16e2cf(0x697)]){try{_0x280eb5(_0x4f04f2);}catch{}}}[_0x57a43e(0x793)](_0x1e7e67){const _0x3b7076=_0x57a43e;try{this[_0x3b7076(0x7ea)]?.[_0x3b7076(0x85d)]?.[_0x3b7076(0x749)](_0x3b7076(0x4ce),_0x1e7e67);}catch{}for(const _0x5813f9 of this[_0x3b7076(0x697)]){try{_0x5813f9(_0x1e7e67);}catch{}}}['info'](_0x4b9468,_0x59e3d2){const _0x51701e=_0x57a43e;this[_0x51701e(0x1fc)](_0x51701e(0x3ce),_0x4b9468,_0x59e3d2);}[_0x57a43e(0x6c3)](_0x4f290f,_0x160682){const _0x24bd9a=_0x57a43e;this[_0x24bd9a(0x1fc)]('warn',_0x4f290f,_0x160682);}[_0x57a43e(0x5cc)](_0x4e619f,_0x1888a7){const _0x1c40e6=_0x57a43e;this[_0x1c40e6(0x1fc)](_0x1c40e6(0x5cc),_0x4e619f,_0x1888a7);}[_0x57a43e(0x241)](_0xc8248b,_0xe06c4d){const _0x3b2574=_0x57a43e;this[_0x3b2574(0x1fc)](_0x3b2574(0x241),_0xc8248b,_0xe06c4d);}}return okdbLogger=_0x1816b5,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x544489=_0x3e8e44;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x57ed7c}=requireOkdbEnums(),{OKDBError:_0x57512d}=requireOkdbError();class _0x511c0f{constructor(_0x43310e){const _0x4d8b67=_0x206c;this[_0x4d8b67(0x7ea)]=_0x43310e,this['_plugins']=[];}[_0x544489(0x6ee)](_0x4b988c,_0x2086df){const _0x53fde=_0x544489;if(this[_0x53fde(0x7ea)][_0x53fde(0x5ef)]!==_0x57ed7c[_0x53fde(0x3ba)])throw new _0x57512d(_0x53fde(0x7c1),_0x53fde(0x30e),{'state':this['okdb'][_0x53fde(0x5ef)]});if(!_0x4b988c[_0x53fde(0x781)])throw new _0x57512d(_0x53fde(0x27b),_0x53fde(0x387),{'plugin':_0x4b988c[_0x53fde(0x781)]});const _0x2ecc3e=_0x4b988c[_0x53fde(0x4cb)]??[];for(const _0x15e5bc of _0x2ecc3e){if(!this[_0x53fde(0x1cd)][_0x53fde(0x1f7)](_0x441218=>_0x441218[_0x53fde(0x2a0)][_0x53fde(0x781)]===_0x15e5bc))throw new _0x57512d(_0x53fde(0x46a)+_0x15e5bc+_0x53fde(0x427)+_0x4b988c['name']+')',_0x53fde(0x205),{'required':_0x15e5bc});}if(this[_0x53fde(0x1cd)][_0x53fde(0x574)](_0x2b00a3=>_0x2b00a3[_0x53fde(0x2a0)][_0x53fde(0x781)]===_0x4b988c['name']))throw new _0x57512d(_0x53fde(0x1b8)+_0x4b988c['name']+_0x53fde(0x779),_0x53fde(0x1a4),{'plugin':_0x4b988c['name']});if(_0x4b988c[_0x53fde(0x781)]in this[_0x53fde(0x7ea)])throw new _0x57512d(_0x53fde(0x7ba)+_0x4b988c[_0x53fde(0x781)]+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x53fde(0x594));const _0xd9e51d=_0x4b988c[_0x53fde(0x6ee)](this[_0x53fde(0x7ea)],_0x2086df);if(!_0xd9e51d||typeof _0xd9e51d!==_0x53fde(0x677))throw new _0x57512d(_0x53fde(0x1b8)+_0x4b988c[_0x53fde(0x781)]+_0x53fde(0x24e),_0x53fde(0x387),{'plugin':_0x4b988c[_0x53fde(0x781)]});this[_0x53fde(0x1cd)][_0x53fde(0x491)]({'module':_0x4b988c,'options':_0x2086df,'instance':_0xd9e51d});}[_0x544489(0x1cc)]=[];async[_0x544489(0x40c)](){const _0x10ea8e=_0x544489;try{for(const _0x28f3bc of this['_plugins']){await _0x28f3bc[_0x10ea8e(0x3cf)][_0x10ea8e(0x40c)]?.(this[_0x10ea8e(0x7ea)]),this['_started'][_0x10ea8e(0x491)](_0x28f3bc);}}catch(_0x1f2e5e){await this['stop']()[_0x10ea8e(0x7c4)](()=>{});throw _0x1f2e5e;}}async[_0x544489(0x8a0)](){const _0x1255b6=_0x544489,_0x34dafd=this[_0x1255b6(0x1cc)][_0x1255b6(0x373)]();this['_started']=[];let _0x3efa72=null;for(const _0x5571d8 of _0x34dafd){try{await _0x5571d8[_0x1255b6(0x3cf)]['stop']?.(this[_0x1255b6(0x7ea)]);}catch(_0x2a0ae7){_0x3efa72??=_0x2a0ae7;}}if(_0x3efa72)throw _0x3efa72;}}return okdbPlugins=_0x511c0f,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x5a9ee3=_0x3e8e44;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x12c294={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x5a9ee3(0x78f)},_0x40e682=new Set([_0x5a9ee3(0x326),_0x5a9ee3(0x68b),'compression','encryptionKey',_0x5a9ee3(0x203),_0x5a9ee3(0x3f0),'durability','allowUnsafe',_0x5a9ee3(0x63a),'auth',_0x5a9ee3(0x3e7),'queue',_0x5a9ee3(0x4da),_0x5a9ee3(0x2a3),'mcp',_0x5a9ee3(0x4f3),_0x5a9ee3(0x4ce),_0x5a9ee3(0x616),_0x5a9ee3(0x54f),_0x5a9ee3(0x873),_0x5a9ee3(0x2a2),_0x5a9ee3(0x25e),_0x5a9ee3(0x315),_0x5a9ee3(0x20e),_0x5a9ee3(0x73b),_0x5a9ee3(0x6b1),_0x5a9ee3(0x7e8),_0x5a9ee3(0x241),'onLicenseExpired','backup']),_0x24a190={'http':'there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called'};return statics={'defaults':_0x12c294,'KNOWN_OPTIONS':_0x40e682,'_OPTION_HINTS':_0x24a190},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x5e0417=_0x3e8e44;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x41ca4f=require$$0$2,_0x1a0397='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x4295ed=_0x41ca4f['createHash'](_0x5e0417(0x310))[_0x5e0417(0x625)](_0x41ca4f['createPublicKey'](_0x1a0397)[_0x5e0417(0x7f8)]({'type':'spki','format':_0x5e0417(0x695)}))['digest']('hex')[_0x5e0417(0x8b5)](0x0,0x10),_0x3043cc={'LICENSED_BUILD':_0x5e0417(0x206),'PUBLIC_KEY_PEM':_0x1a0397,'PUB_FINGERPRINT':_0x4295ed,'LICENSE_EXPIRED_ACTION':'log'};return licenseConfig={'_C':_0x3043cc,'PUBLIC_KEY_PEM':_0x1a0397,'PUB_FINGERPRINT':_0x4295ed},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x1e2cb2=_0x3e8e44;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x3754f1=require$$0$5,{OKDBError:_0x160f32}=requireOkdbError(),_0x18f428=[_0x1e2cb2(0x35e),_0x1e2cb2(0x4e1),_0x1e2cb2(0x4f5),_0x1e2cb2(0x39b),_0x1e2cb2(0x4d0),_0x1e2cb2(0x593),_0x1e2cb2(0x3fa),'$nin',_0x1e2cb2(0x5df),_0x1e2cb2(0x4cd),'$options',_0x1e2cb2(0x719),_0x1e2cb2(0x558),_0x1e2cb2(0x8a5),_0x1e2cb2(0x815),_0x1e2cb2(0x6aa),_0x1e2cb2(0x7f1),_0x1e2cb2(0x744),_0x1e2cb2(0x374),_0x1e2cb2(0x438)],_0x5c3412=[_0x1e2cb2(0x59c)];function _0x5a5cb0(_0x29a4eb){return()=>{const _0x4796c8=_0x206c,_0x17fb49=new _0x160f32(_0x4796c8(0x791)+_0x29a4eb+_0x4796c8(0x3f5),_0x4796c8(0x6c2),{'operator':_0x29a4eb});_0x17fb49[_0x4796c8(0x2fe)]=0x190;throw _0x17fb49;};}const _0x453fa7=Object[_0x1e2cb2(0x75f)]({...Object[_0x1e2cb2(0x658)](_0x18f428[_0x1e2cb2(0x255)](_0x3785f1=>[_0x3785f1,_0x3754f1[_0x3785f1]])),...Object['fromEntries'](_0x5c3412[_0x1e2cb2(0x255)](_0x4088ee=>[_0x4088ee,_0x5a5cb0(_0x4088ee)]))});function _0x22ed58(_0x30bae7){const _0x333e1c=_0x1e2cb2;return _0x3754f1[_0x333e1c(0x605)](_0x30bae7,{'operations':_0x453fa7});}function _0x28e510(_0x240fc6){const _0xfb37cd=_0x1e2cb2;if(_0x240fc6==null)return;try{_0x22ed58(_0x240fc6);}catch(_0x2264ea){if(_0x2264ea?.[_0xfb37cd(0x42b)]===_0xfb37cd(0x6c2))throw _0x2264ea;}}return okdbQueryFilter={'compileFilter':_0x22ed58,'assertFilterAllowed':_0x28e510,'ALLOWED_OPERATORS':_0x18f428,'FORBIDDEN_OPERATORS':_0x5c3412},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x5bbca4=_0x3e8e44;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x5ba0d7,EVENTS:_0x55cc1b}=requireOkdbEnums(),{OKDBError:_0x39478f,OKDBForeignKeyDeleteError:_0x1ab77e}=requireOkdbError(),_0x54a2f1=_0x5bbca4(0x752),_0x17788c=new Set(['no_action','cascade','set_null','restrict']);function _0x1e54da(_0x4eb714,_0x218cc2){const _0x4abb86=_0x5bbca4;if(_0x4eb714==null||!_0x218cc2)return undefined;const _0x287be7=_0x218cc2[_0x4abb86(0x6be)]('.');let _0x14acfa=_0x4eb714;for(const _0x51a930 of _0x287be7){if(_0x14acfa==null||typeof _0x14acfa!==_0x4abb86(0x677)||!(_0x51a930 in _0x14acfa))return undefined;_0x14acfa=_0x14acfa[_0x51a930];}return _0x14acfa;}function _0x4f22df(_0x263a95,_0x8e6fa0,_0x13e6b5){const _0x22ab54=_0x5bbca4,_0x1f6f16=_0x8e6fa0[_0x22ab54(0x6be)]('.'),_0x1e5fb0={..._0x263a95};let _0xff046a=_0x1e5fb0;for(let _0xf93b08=0x0;_0xf93b08<_0x1f6f16['length']-0x1;_0xf93b08++){_0xff046a[_0x1f6f16[_0xf93b08]]=_0xff046a[_0x1f6f16[_0xf93b08]]!=null?{..._0xff046a[_0x1f6f16[_0xf93b08]]}:{},_0xff046a=_0xff046a[_0x1f6f16[_0xf93b08]];}return _0xff046a[_0x1f6f16[_0x1f6f16['length']-0x1]]=_0x13e6b5,_0x1e5fb0;}function _0x3b615e(_0x594fe3,_0xce48d,_0x58f1a8,_0x41b7cb,_0x21f561){return[_0x594fe3,_0xce48d,_0x58f1a8,_0x41b7cb,_0x21f561];}function _0x454c4a(_0x21be6c){const _0x15d3bb=_0x5bbca4;return typeof _0x21be6c===_0x15d3bb(0x7f4)||typeof _0x21be6c===_0x15d3bb(0x7e9);}function _0xb15aa5(_0x4a383a,_0x2db4c7){const _0x3997a3=_0x5bbca4;return JSON[_0x3997a3(0x739)]([_0x4a383a,_0x2db4c7]);}function*_0x349f59(_0xfb8d50,_0x2bb414,_0x54cc91){const _0x1dc836=_0x5bbca4,_0x3cac1a=_0x54cc91!==undefined;for(const {key:_0x4b29e5}of _0xfb8d50[_0x1dc836(0x416)]({'start':_0x3cac1a?[_0x2bb414,_0x54cc91]:[_0x2bb414]})){if(!Array[_0x1dc836(0x63d)](_0x4b29e5))continue;if(_0x4b29e5[0x0]!==_0x2bb414||_0x3cac1a&&_0x4b29e5[0x1]!==_0x54cc91)break;yield _0x4b29e5;}}function _0x18d9db(_0x112cb8,_0x262a59='',_0x20ba09=null){const _0x22aaed=_0x5bbca4,_0x568b39=[];if(!_0x112cb8||typeof _0x112cb8!=='object')return _0x568b39;if(!_0x20ba09)_0x20ba09=_0x112cb8;if(_0x112cb8[_0x22aaed(0x62c)]){const _0xd8397b=_0x112cb8[_0x22aaed(0x62c)][_0x22aaed(0x3a1)](/^#\/\$defs\/(.+)$/);if(_0xd8397b&&_0x20ba09?.['$defs']?.[_0xd8397b[0x1]])return _0x18d9db(_0x20ba09[_0x22aaed(0x619)][_0xd8397b[0x1]],_0x262a59,_0x20ba09);return _0x568b39;}if(_0x112cb8['ref']&&typeof _0x112cb8[_0x22aaed(0x2ae)]===_0x22aaed(0x677)&&_0x112cb8[_0x22aaed(0x2ae)][_0x22aaed(0x576)]){const _0xa304e2=_0x112cb8[_0x22aaed(0x2ae)][_0x22aaed(0x544)]||'no_action';if(!_0x17788c[_0x22aaed(0x764)](_0xa304e2))throw new _0x39478f('Invalid\x20onDelete\x20rule\x20\x27'+_0xa304e2+'\x27\x20at\x20'+(_0x262a59||'root')+_0x22aaed(0x571)+[..._0x17788c]['join'](',\x20'),'INVALID_SCHEMA');_0x568b39[_0x22aaed(0x491)]({'fieldPath':_0x262a59,'targetType':_0x112cb8[_0x22aaed(0x2ae)][_0x22aaed(0x576)],'onDelete':_0xa304e2});}if(_0x112cb8[_0x22aaed(0x5a4)])for(const [_0x325082,_0x2da50a]of Object[_0x22aaed(0x375)](_0x112cb8['properties'])){const _0x16ac83=_0x262a59?_0x262a59+'.'+_0x325082:_0x325082;_0x568b39[_0x22aaed(0x491)](..._0x18d9db(_0x2da50a,_0x16ac83,_0x20ba09));}return _0x568b39;}function _0x222932(_0x947c85){const _0x4c004b=_0x5bbca4,_0x593ff9=new Map(),_0x182446=new Map();for(const _0xc894b8 of _0x947c85[_0x4c004b(0x498)]()){if(_0xc894b8[_0x4c004b(0x747)]('~'))continue;const _0x52dc95=_0x947c85[_0x4c004b(0x2d7)][_0x4c004b(0x212)](_0xc894b8);if(!_0x52dc95?.['schema']?.['definition'])continue;let _0x5c6c79;try{_0x5c6c79=_0x18d9db(_0x52dc95[_0x4c004b(0x627)][_0x4c004b(0x78d)]);}catch{continue;}if(_0x5c6c79[_0x4c004b(0x61b)]>0x0){_0x593ff9[_0x4c004b(0x280)](_0xc894b8,_0x5c6c79);for(const _0x284109 of _0x5c6c79){if(!_0x182446[_0x4c004b(0x764)](_0x284109['targetType']))_0x182446[_0x4c004b(0x280)](_0x284109[_0x4c004b(0x5f3)],[]);_0x182446[_0x4c004b(0x212)](_0x284109[_0x4c004b(0x5f3)])['push']({'sourceType':_0xc894b8,'fieldPath':_0x284109[_0x4c004b(0x881)],'onDelete':_0x284109['onDelete']});}}}_0x947c85['_refCache']={'outgoing':_0x593ff9,'incoming':_0x182446};if(_0x593ff9[_0x4c004b(0x7a1)]>0x0)_0x114499(_0x947c85);}function _0x3270a4(_0x1603c5,_0xd3c20e){const _0x44187b=_0x5bbca4;return _0x1603c5[_0x44187b(0x8b1)][_0x44187b(0x66c)][_0x44187b(0x212)](_0xd3c20e)||[];}function _0x3bbb01(_0x534078,_0x34f812){const _0x21e042=_0x5bbca4;return _0x534078[_0x21e042(0x8b1)][_0x21e042(0x376)]['get'](_0x34f812)||[];}function _0x114499(_0x5173a4){const _0x2b7f1d=_0x5bbca4;if(_0x5173a4['_refIndexDb'])return _0x5173a4[_0x2b7f1d(0x339)];return _0x5173a4[_0x2b7f1d(0x339)]=_0x5173a4['db'][_0x2b7f1d(0x788)]('__ref_index',{'dupSort':![]}),_0x5173a4[_0x2b7f1d(0x339)];}function _0x1851ad(_0x476dd2,_0x2d2ba2,_0x2f84aa,_0x4e916c,_0x8d052e){const _0x4c22dc=_0x5bbca4,_0x42d959=_0x3270a4(_0x476dd2,_0x2d2ba2);if(_0x42d959[_0x4c22dc(0x61b)]===0x0)return;const _0x45ec50=_0x114499(_0x476dd2);for(const _0x1a3a68 of _0x42d959){const _0x231b71=_0x8d052e!=null?_0x1e54da(_0x8d052e,_0x1a3a68[_0x4c22dc(0x881)]):undefined,_0x3c62a4=_0x4e916c!=null?_0x1e54da(_0x4e916c,_0x1a3a68['fieldPath']):undefined;if(_0x231b71===_0x3c62a4)continue;_0x454c4a(_0x231b71)&&_0x45ec50[_0x4c22dc(0x2e7)](_0x3b615e(_0x1a3a68[_0x4c22dc(0x5f3)],_0x231b71,_0x2d2ba2,_0x2f84aa,_0x1a3a68['fieldPath'])),_0x454c4a(_0x3c62a4)&&_0x45ec50[_0x4c22dc(0x314)](_0x3b615e(_0x1a3a68[_0x4c22dc(0x5f3)],_0x3c62a4,_0x2d2ba2,_0x2f84aa,_0x1a3a68[_0x4c22dc(0x881)]),0x1);}}function _0x520866(_0x3aeff0,_0x472349,_0x3c7e9b,_0x582931){const _0x59f87c=_0x5bbca4,_0x3a4a3f=_0x3270a4(_0x3aeff0,_0x472349);if(_0x3a4a3f[_0x59f87c(0x61b)]===0x0)return;const _0x569449=_0x114499(_0x3aeff0);for(const _0x3660d6 of _0x3a4a3f){const _0x5e6db8=_0x582931!=null?_0x1e54da(_0x582931,_0x3660d6['fieldPath']):undefined;_0x454c4a(_0x5e6db8)&&_0x569449[_0x59f87c(0x2e7)](_0x3b615e(_0x3660d6[_0x59f87c(0x5f3)],_0x5e6db8,_0x472349,_0x3c7e9b,_0x3660d6[_0x59f87c(0x881)]));}}function _0x239b73(_0x5cd768,_0xc65dbc,_0x1658bb,_0x465ff8){const _0x4e9e90=_0x5bbca4,_0x137542=_0x3270a4(_0x5cd768,_0xc65dbc);if(_0x137542[_0x4e9e90(0x61b)]===0x0)return[];const _0x34d8cf=[];for(const _0x337530 of _0x137542){const _0x3955e3=_0x1e54da(_0x465ff8,_0x337530['fieldPath']);if(_0x3955e3==null)continue;if(!_0x5cd768[_0x4e9e90(0x480)](_0x337530[_0x4e9e90(0x5f3)])){_0x34d8cf['push']({'fieldPath':_0x337530['fieldPath'],'targetType':_0x337530[_0x4e9e90(0x5f3)],'targetKey':_0x3955e3,'message':_0x4e9e90(0x5d9)+_0x337530[_0x4e9e90(0x5f3)]+_0x4e9e90(0x24d)});continue;}const _0x541af0=_0x5cd768[_0x4e9e90(0x581)](_0x337530[_0x4e9e90(0x5f3)])[_0x4e9e90(0x86b)];!_0x541af0[_0x4e9e90(0x349)](_0x3955e3)&&_0x34d8cf['push']({'fieldPath':_0x337530[_0x4e9e90(0x881)],'targetType':_0x337530[_0x4e9e90(0x5f3)],'targetKey':_0x3955e3,'message':_0x4e9e90(0x820)+_0x3955e3+_0x4e9e90(0x33b)+_0x337530['targetType']+'\x27'});}return _0x34d8cf;}function _0x59c5c7(_0x594cc8,_0x1d1e47,_0x43ac90,_0x4fa594,_0x523af7,{timestamp:_0x397284,origin:_0x1a3548,_cascadeVisited:_0x537558}){const _0x2f8e5b=_0x5bbca4,_0x58ec86=_0x3bbb01(_0x594cc8,_0x43ac90);if(_0x58ec86['length']===0x0)return;const _0x28a1d=_0x114499(_0x594cc8),_0xa39b00=[];for(const [,,_0x22da16,_0x13c2e9,_0x2e7e6e]of _0x349f59(_0x28a1d,_0x43ac90,_0x4fa594)){_0xa39b00['push']({'sourceType':_0x22da16,'sourceKey':_0x13c2e9,'fieldPath':_0x2e7e6e});}if(_0xa39b00[_0x2f8e5b(0x61b)]===0x0)return;for(const _0x1ddf1f of _0xa39b00){const _0x140d28=_0x58ec86[_0x2f8e5b(0x574)](_0x477c30=>_0x477c30[_0x2f8e5b(0x4a4)]===_0x1ddf1f[_0x2f8e5b(0x4a4)]&&_0x477c30[_0x2f8e5b(0x881)]===_0x1ddf1f[_0x2f8e5b(0x881)]),_0x4c0945=_0x140d28?.['onDelete']||_0x2f8e5b(0x346);switch(_0x4c0945){case _0x2f8e5b(0x495):{if(_0x1a3548===null)throw new _0x1ab77e(_0x43ac90,_0x4fa594,_0xa39b00['filter'](_0x21e0a8=>{const _0x3e3285=_0x2f8e5b,_0xb6bb0=_0x58ec86['find'](_0x92386=>_0x92386[_0x3e3285(0x4a4)]===_0x21e0a8[_0x3e3285(0x4a4)]&&_0x92386[_0x3e3285(0x881)]===_0x21e0a8[_0x3e3285(0x881)]);return(_0xb6bb0?.[_0x3e3285(0x544)]||'no_action')===_0x3e3285(0x495);}));break;}case'cascade':{const _0x2dbe65=_0xb15aa5(_0x1ddf1f[_0x2f8e5b(0x4a4)],_0x1ddf1f[_0x2f8e5b(0x5de)]);if(_0x537558[_0x2f8e5b(0x764)](_0x2dbe65))continue;_0x594cc8['_getType'](_0x1ddf1f[_0x2f8e5b(0x4a4)])['data'][_0x2f8e5b(0x349)](_0x1ddf1f[_0x2f8e5b(0x5de)])&&_0x594cc8[_0x2f8e5b(0x313)](_0x1d1e47,_0x1ddf1f[_0x2f8e5b(0x4a4)],_0x1ddf1f[_0x2f8e5b(0x5de)],{'timestamp':_0x397284,'origin':_0x1a3548,'_cascadeVisited':_0x537558});break;}case _0x2f8e5b(0x2ef):{const _0x2e6eba=_0x594cc8[_0x2f8e5b(0x581)](_0x1ddf1f[_0x2f8e5b(0x4a4)])[_0x2f8e5b(0x86b)],_0x37bfcb=_0x2e6eba[_0x2f8e5b(0x447)](_0x1ddf1f['sourceKey']);if(_0x37bfcb){const _0x258927=_0x4f22df(_0x37bfcb[_0x2f8e5b(0x37e)],_0x1ddf1f[_0x2f8e5b(0x881)],null);_0x594cc8[_0x2f8e5b(0x872)](_0x1d1e47,_0x2f8e5b(0x3fe),_0x1ddf1f[_0x2f8e5b(0x4a4)],_0x1ddf1f['sourceKey'],_0x258927,{'timestamp':_0x397284,'origin':_0x1a3548,'_cascading':!![]});}break;}}}}function _0x343e91(_0x48fd9c){const _0x474eb5=_0x5bbca4;!_0x48fd9c[_0x474eb5(0x480)](_0x54a2f1)&&_0x48fd9c[_0x474eb5(0x357)](_0x54a2f1);}function _0x5e3a48(_0x2c634b,_0x108266,_0x3a0e22,_0x9ff98d,_0x450b98,_0x449549,_0x39ff07,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x51218b=_0x5bbca4;_0x343e91(_0x2c634b);const _0xc91153=_0x3a0e22+'@'+_0x9ff98d+'@'+_0x450b98,_0x1a52dd={'sourceType':_0x3a0e22,'sourceKey':_0x9ff98d,'fieldPath':_0x450b98,'targetType':_0x449549,'targetKey':_0x39ff07,'timestamp':timestamp,'origin':origin},_0x317b4f=_0x2c634b[_0x51218b(0x581)](_0x54a2f1)[_0x51218b(0x86b)],_0xba9ecf=_0x317b4f[_0x51218b(0x447)](_0xc91153),_0x1b2418=_0xba9ecf?_0xba9ecf['version']+0x1:0x1;_0x317b4f[_0x51218b(0x314)](_0xc91153,_0x1a52dd,_0x1b2418),_0x2c634b[_0x51218b(0x6ae)]({'id':_0x51218b(0x899)+_0x54a2f1+'@'+_0xc91153,'type':_0x54a2f1,'key':_0xc91153,'action':_0x5ba0d7[_0x51218b(0x7a7)],'timestamp':timestamp,'txnId':_0x108266?.['id'],'origin':origin},_0xba9ecf?.[_0x51218b(0x37e)],_0x1a52dd),_0x2c634b['events']['emit'](_0x55cc1b[_0x51218b(0x409)],{'sourceType':_0x3a0e22,'sourceKey':_0x9ff98d,'fieldPath':_0x450b98,'targetType':_0x449549,'targetKey':_0x39ff07,'env':_0x2c634b[_0x51218b(0x781)]});}function _0x2be9be(_0x429dda,_0x5542bf,_0x1d440b,_0x37de36,_0x4f678d,{timestamp:timestamp=Date[_0x5bbca4(0x590)](),origin:origin=null}={}){const _0x3cacbf=_0x5bbca4;if(!_0x429dda[_0x3cacbf(0x480)](_0x54a2f1))return;const _0x1672e5=_0x1d440b+'@'+_0x37de36+'@'+_0x4f678d,_0x1c70d1=_0x429dda['_getType'](_0x54a2f1)[_0x3cacbf(0x86b)],_0x29abbd=_0x1c70d1[_0x3cacbf(0x447)](_0x1672e5);if(!_0x29abbd)return;_0x1c70d1[_0x3cacbf(0x2e7)](_0x1672e5),_0x429dda[_0x3cacbf(0x6ae)]({'id':_0x3cacbf(0x899)+_0x54a2f1+'@'+_0x1672e5,'type':_0x54a2f1,'key':_0x1672e5,'action':_0x5ba0d7['REMOVE'],'timestamp':timestamp,'txnId':_0x5542bf?.['id'],'origin':origin},_0x29abbd[_0x3cacbf(0x37e)],undefined),_0x429dda[_0x3cacbf(0x85d)]['emit'](_0x55cc1b['REF_VIOLATION_RESOLVED'],{'sourceType':_0x1d440b,'sourceKey':_0x37de36,'fieldPath':_0x4f678d,'env':_0x429dda[_0x3cacbf(0x781)]});}function _0x334261(_0x42f9cc,_0x499ccc,_0x228e9e,_0x5a6f2c,_0x1b34e1={}){const _0x733ad5=_0x5bbca4;if(!_0x42f9cc[_0x733ad5(0x480)](_0x54a2f1))return;const _0xf0472e=_0x42f9cc[_0x733ad5(0x581)](_0x54a2f1)[_0x733ad5(0x86b)],_0x35e649=_0x228e9e+'@'+_0x5a6f2c+'@',_0x6e4ca0=[];for(const {key:_0x28933a,value:_0x290b3f}of _0xf0472e[_0x733ad5(0x416)]({'start':_0x35e649,'end':_0x35e649+'\uffff'})){if(_0x290b3f?.[_0x733ad5(0x4a4)]===_0x228e9e&&_0x290b3f?.['sourceKey']===_0x5a6f2c)_0x6e4ca0[_0x733ad5(0x491)](_0x28933a);}for(const _0x4b43af of _0x6e4ca0){const _0x4d5498=_0xf0472e[_0x733ad5(0x447)](_0x4b43af);if(!_0x4d5498)continue;_0xf0472e[_0x733ad5(0x2e7)](_0x4b43af),_0x42f9cc[_0x733ad5(0x6ae)]({'id':_0x733ad5(0x899)+_0x54a2f1+'@'+_0x4b43af,'type':_0x54a2f1,'key':_0x4b43af,'action':_0x5ba0d7['REMOVE'],'timestamp':_0x1b34e1[_0x733ad5(0x7fd)]||Date[_0x733ad5(0x590)](),'txnId':_0x499ccc?.['id'],'origin':_0x1b34e1[_0x733ad5(0x28f)]},_0x4d5498[_0x733ad5(0x37e)],undefined);}}function _0x381b62(_0x41b178,_0x217929){const _0x12bccd=_0x5bbca4;if(!_0x41b178[_0x12bccd(0x480)](_0x54a2f1))return;const _0x968c18=_0x41b178[_0x12bccd(0x581)](_0x54a2f1)[_0x12bccd(0x86b)],_0x1f652e=_0x217929+'@',_0x3e4e32=[];for(const {key:_0x173853,value:_0x55d115}of _0x968c18[_0x12bccd(0x416)]({'start':_0x1f652e,'end':_0x1f652e+'\uffff'})){if(_0x55d115?.[_0x12bccd(0x4a4)]===_0x217929)_0x3e4e32[_0x12bccd(0x491)](_0x173853);}for(const _0x1ee3a1 of _0x3e4e32)_0x968c18[_0x12bccd(0x2e7)](_0x1ee3a1);}async function _0x199ba9(_0x1044a5,_0x4bc2ca){const _0x2d9cc5=_0x5bbca4,_0x3e2825=_0x3270a4(_0x1044a5,_0x4bc2ca);if(_0x3e2825['length']===0x0)return;await _0x1044a5[_0x2d9cc5(0x1a5)][_0x2d9cc5(0x2c3)](()=>{const _0x4738ff=_0x2d9cc5;for(const {key:_0x27c54d,value:_0x22ee7e}of _0x1044a5[_0x4738ff(0x416)](_0x4bc2ca)){_0x1851ad(_0x1044a5,_0x4bc2ca,_0x27c54d,_0x22ee7e,null);const _0x591bd1=_0x239b73(_0x1044a5,_0x4bc2ca,_0x27c54d,_0x22ee7e);for(const _0x9d262e of _0x591bd1){_0x5e3a48(_0x1044a5,null,_0x4bc2ca,_0x27c54d,_0x9d262e[_0x4738ff(0x881)],_0x9d262e[_0x4738ff(0x5f3)],_0x9d262e['targetKey']);}}});}const _0x533c2d=0x1388;async function _0x1297c0(_0x5c4a88){const _0x6e4e18=_0x5bbca4,_0x117093=_0x5c4a88['_refCache']?.[_0x6e4e18(0x66c)]?.[_0x6e4e18(0x7a1)]>0x0;if(!_0x117093&&!_0x5c4a88['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0xf5c158=_0x114499(_0x5c4a88);let _0x1a8624=0x0;for(;;){const _0x50236a=Array[_0x6e4e18(0x3e9)](_0xf5c158[_0x6e4e18(0x6e7)]({'limit':_0x533c2d}));if(_0x50236a[_0x6e4e18(0x61b)]===0x0)break;let _0x161ddb=0x0;await _0x5c4a88['_writer'][_0x6e4e18(0x2c3)](()=>{const _0x1a0e78=_0x6e4e18;for(const _0x1e9710 of _0x50236a)if(_0xf5c158[_0x1a0e78(0x2e7)](_0x1e9710))_0x161ddb++;});if(_0x161ddb===0x0)break;_0x1a8624+=_0x161ddb;}let _0x335bb7=0x0;for(const _0x494964 of _0x5c4a88[_0x6e4e18(0x8b1)][_0x6e4e18(0x66c)][_0x6e4e18(0x362)]()){if(_0x494964['startsWith']('~')||!_0x5c4a88[_0x6e4e18(0x480)](_0x494964))continue;const _0x2964da=_0x3270a4(_0x5c4a88,_0x494964);await _0x5c4a88['_writer'][_0x6e4e18(0x2c3)](()=>{const _0x8d3cb3=_0x6e4e18;for(const {key:_0x4bd1bc,value:_0x19f2d6}of _0x5c4a88[_0x8d3cb3(0x416)](_0x494964)){for(const _0x46becf of _0x2964da){const _0x41fa45=_0x1e54da(_0x19f2d6,_0x46becf[_0x8d3cb3(0x881)]);if(!_0x454c4a(_0x41fa45))continue;_0xf5c158[_0x8d3cb3(0x314)](_0x3b615e(_0x46becf['targetType'],_0x41fa45,_0x494964,_0x4bd1bc,_0x46becf[_0x8d3cb3(0x881)]),0x1),_0x335bb7++;}}});}return{'dropped':_0x1a8624,'written':_0x335bb7};}return okdbEnvRefs={'getFieldValue':_0x1e54da,'setFieldValue':_0x4f22df,'refIndexKey':_0x3b615e,'isRefTarget':_0x454c4a,'cascadeVisitKey':_0xb15aa5,'extractRefs':_0x18d9db,'rebuildRefCache':_0x222932,'getTypeRefs':_0x3270a4,'getIncomingRefs':_0x3bbb01,'getRefIndexDb':_0x114499,'updateRefIndex':_0x1851ad,'removeRefIndexEntries':_0x520866,'refIndexRowsFor':_0x349f59,'rebuildRefIndex':_0x1297c0,'checkForeignKeys':_0x239b73,'processDeleteCascade':_0x59c5c7,'setRefViolation':_0x5e3a48,'clearRefViolation':_0x2be9be,'clearRefViolationsForKey':_0x334261,'clearRefViolationsForType':_0x381b62,'syncRefIndex':_0x199ba9},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x3ba561=_0x3e8e44;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x3ba561(0x7f5)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x3745e2=require$$0$4,{assertFilterAllowed:_0x339100}=requireOkdbQueryFilter(),{rebuildRefCache:_0x26a64c}=requireOkdbEnvRefs(),_0x12d39f=_0x3ba561(0x548),_0x1beba3=_0x3ba561(0x784),_0x88f0e9=_0x3ba561(0x36d),_0x529130=['dataEnv','type',_0x3ba561(0x868)],_0x32e412=['dataEnv',_0x3ba561(0x576)],_0x4be86b=0x5a*0x3e8,_0x520c65=Math['floor'](_0x4be86b/0x2);class _0x1eeb04{constructor(_0x259ec8,_0x1d4f52={}){const _0x4c1f71=_0x3ba561;this['okdb']=_0x259ec8,this['ttlMs']=Number[_0x4c1f71(0x1dd)](_0x1d4f52[_0x4c1f71(0x80b)])&&_0x1d4f52[_0x4c1f71(0x80b)]>0x0?_0x1d4f52[_0x4c1f71(0x80b)]:_0x4be86b,this[_0x4c1f71(0x448)]=Number[_0x4c1f71(0x1dd)](_0x1d4f52['refreshThresholdMs'])?_0x1d4f52[_0x4c1f71(0x448)]:_0x520c65,this[_0x4c1f71(0x354)]=null;}async[_0x3ba561(0x703)](){const _0x49d0af=_0x3ba561;if(this[_0x49d0af(0x354)])return this[_0x49d0af(0x354)];const _0x2586d3=await this[_0x49d0af(0x7ea)]['createEnvironment'](_0x12d39f,{'sync':![]});return await _0x2586d3[_0x49d0af(0x7e3)](_0x1beba3,{'indexes':[_0x32e412]}),await _0x2586d3[_0x49d0af(0x7e3)](_0x88f0e9),_0x2586d3[_0x49d0af(0x2df)](_0x88f0e9)?_0x26a64c(_0x2586d3):await _0x2586d3[_0x49d0af(0x727)](_0x88f0e9,{'definition':{'type':'object','properties':{'sessionId':{'type':'string','ref':{'type':_0x1beba3,'onDelete':_0x49d0af(0x2a6)}},'dataEnv':{'type':_0x49d0af(0x7f4)},'type':{'type':'string'},'key':{'type':'string'}},'required':[_0x49d0af(0x492),_0x49d0af(0x43a),_0x49d0af(0x576),_0x49d0af(0x868)]},'enforce':!![]}),await _0x2586d3[_0x49d0af(0x7e3)](_0x88f0e9,{'indexes':[_0x529130]}),await _0x2586d3[_0x49d0af(0x4d4)](_0x88f0e9,_0x529130),await _0x2586d3[_0x49d0af(0x4d4)](_0x1beba3,_0x32e412),this['_sub']=_0x2586d3,_0x2586d3;}[_0x3ba561(0x550)](){const _0x44bc29=_0x3ba561;if(!this['_sub'])throw new Error(_0x44bc29(0x66d));return this[_0x44bc29(0x354)];}async[_0x3ba561(0x34e)]({sessionId:_0x48c47d,dataEnv:_0x252ffa,type:_0x4b7129,filter:filter=null,ttlMs:_0x1f0865}={}){const _0x50b573=_0x3ba561,_0x1f6393=this[_0x50b573(0x550)]();_0x339100(filter);const _0x3a6560=_0x48c47d!=null&&String(_0x48c47d)[_0x50b573(0x61b)]>0x0?String(_0x48c47d):_0x3745e2[_0x50b573(0x89a)](),_0x461c49=Number[_0x50b573(0x1dd)](_0x1f0865)&&_0x1f0865>0x0?_0x1f0865:this[_0x50b573(0x80b)],_0x386cf4=Date[_0x50b573(0x590)](),_0x585140={'sessionId':_0x3a6560,'dataEnv':_0x252ffa,'type':_0x4b7129,'filter':filter??null,'version':0x0,'createdAt':_0x386cf4,'expiresAt':_0x386cf4+_0x461c49};return await _0x1f6393['put'](_0x1beba3,_0x3a6560,_0x585140,{'ttl':_0x461c49}),{'sessionId':_0x3a6560,'version':0x0};}[_0x3ba561(0x4cf)](_0x2ba803){const _0x2bd2a1=_0x3ba561;if(!_0x2ba803)return null;return this[_0x2bd2a1(0x550)]()[_0x2bd2a1(0x212)](_0x1beba3,String(_0x2ba803))??null;}async['closeSession'](_0x27c42f){const _0x3536e6=_0x3ba561,_0x36d93d=this['_env'](),_0x2fae6b=String(_0x27c42f);if(!_0x36d93d['get'](_0x1beba3,_0x2fae6b))return![];return await _0x36d93d[_0x3536e6(0x248)](_0x1beba3,_0x2fae6b),!![];}async['bumpVersion'](_0x3e4afd){const _0x2dc387=_0x3ba561,_0x553035=this[_0x2dc387(0x550)](),_0x50145d=String(_0x3e4afd),_0x194c33=_0x553035[_0x2dc387(0x212)](_0x1beba3,_0x50145d);if(!_0x194c33)return null;const _0x285113=(Number[_0x2dc387(0x1dd)](_0x194c33[_0x2dc387(0x445)])?_0x194c33['version']:0x0)+0x1;return await _0x553035[_0x2dc387(0x3fe)](_0x1beba3,_0x50145d,{..._0x194c33,'version':_0x285113}),_0x285113;}async[_0x3ba561(0x806)](_0x21ad80,_0x36f179){const _0x4f3a65=_0x3ba561,_0x2140d4=this['_env'](),_0x3f8bab=String(_0x21ad80);if(!_0x2140d4['get'](_0x1beba3,_0x3f8bab))return![];const _0x47599b=Number[_0x4f3a65(0x1dd)](_0x36f179)&&_0x36f179>0x0?_0x36f179:this['ttlMs'];if(this[_0x4f3a65(0x62d)](_0x3f8bab))return![];return await _0x2140d4[_0x4f3a65(0x4d9)](_0x1beba3,_0x3f8bab,_0x47599b),await this[_0x4f3a65(0x5d3)](_0x3f8bab,_0x47599b),!![];}async[_0x3ba561(0x648)](_0x3a604f,_0x10cacb){const _0x4102dc=_0x3ba561,_0x268ec0=this[_0x4102dc(0x550)](),_0x4c592f=Number['isFinite'](_0x10cacb)&&_0x10cacb>0x0?_0x10cacb:this[_0x4102dc(0x80b)],_0x46cefe=Date['now'](),_0x43f4eb=[];for(const _0x1c3357 of _0x3a604f||[]){const _0x648e21=String(_0x1c3357),_0x1835c6=_0x268ec0[_0x4102dc(0x212)](_0x1beba3,_0x648e21);if(!_0x1835c6)continue;if(this['_isFar'](_0x648e21,_0x46cefe))continue;_0x43f4eb[_0x4102dc(0x491)]({'id':_0x648e21,'cur':_0x1835c6});}if(_0x43f4eb[_0x4102dc(0x61b)]===0x0)return[];return await _0x268ec0['txn'](async _0x47b055=>{const _0x504985=_0x4102dc;for(const {id:_0x2cc8f4,cur:_0x50442d}of _0x43f4eb){_0x47b055[_0x504985(0x3fe)](_0x1beba3,_0x2cc8f4,{..._0x50442d,'expiresAt':_0x46cefe+_0x4c592f}),_0x47b055['setTTL'](_0x1beba3,_0x2cc8f4,_0x4c592f);}}),_0x43f4eb[_0x4102dc(0x255)](_0x550ca4=>_0x550ca4['id']);}[_0x3ba561(0x62d)](_0x4cbc11,_0x5a1b43=Date[_0x3ba561(0x590)]()){const _0x26ea89=_0x3ba561,_0x4ebd9b=this['_env']()[_0x26ea89(0x85b)](_0x1beba3,String(_0x4cbc11));if(!_0x4ebd9b)return![];return _0x4ebd9b['expiresAt']-_0x5a1b43>this[_0x26ea89(0x448)];}async[_0x3ba561(0x5d3)](_0x27e4fc,_0x38c42e){const _0x5ad046=_0x3ba561,_0x42a30b=this[_0x5ad046(0x550)](),_0x48a75a=_0x42a30b[_0x5ad046(0x212)](_0x1beba3,_0x27e4fc);if(!_0x48a75a)return;await _0x42a30b['put'](_0x1beba3,_0x27e4fc,{..._0x48a75a,'expiresAt':Date[_0x5ad046(0x590)]()+_0x38c42e});}async[_0x3ba561(0x6cd)](_0x2ee563,_0x297d20,_0x84a29d){const _0x717bbb=_0x3ba561,_0x15af03=this[_0x717bbb(0x550)](),_0x385c22=String(_0x2ee563),_0x589c6e=_0x15af03[_0x717bbb(0x212)](_0x1beba3,_0x385c22);if(!_0x589c6e)throw new Error(_0x717bbb(0x297)+_0x385c22);const _0x2528e6=_0x3745e2[_0x717bbb(0x89a)]();return await _0x15af03[_0x717bbb(0x3fe)](_0x88f0e9,_0x2528e6,{'sessionId':_0x385c22,'dataEnv':String(_0x589c6e[_0x717bbb(0x43a)]),'type':String(_0x297d20),'key':String(_0x84a29d)}),_0x2528e6;}async['_commitSessionMutation'](_0x639c85,_0x32e7db,{retries:retries=0x8}={}){const _0x132c53=_0x3ba561,_0x562b7f=this[_0x132c53(0x550)]();for(let _0x511a7c=0x0;;_0x511a7c++){const _0x24b6fd=_0x562b7f['getEntry'](_0x1beba3,_0x639c85);if(!_0x24b6fd)return null;const _0x204920=_0x24b6fd[_0x132c53(0x37e)],_0x176c9f=(Number[_0x132c53(0x1dd)](_0x204920[_0x132c53(0x445)])?_0x204920['version']:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x32e7db(_0x204920,_0x562b7f)||{};try{return await _0x562b7f['txn'](async _0x41f168=>{const _0x14d4fa=_0x132c53;applyInterests?.(_0x41f168),_0x41f168['put'](_0x1beba3,_0x639c85,{..._0x204920,...sessionPatch,'version':_0x176c9f},{'ifVersion':_0x24b6fd[_0x14d4fa(0x445)]});}),_0x176c9f;}catch(_0x37097d){if(_0x37097d?.['code']==='VERSION_MISMATCH'&&_0x511a7c<retries)continue;throw _0x37097d;}}}async[_0x3ba561(0x6a1)](_0x38965f,{add:add=[],remove:remove=[]}={}){const _0x499ba5=_0x3ba561,_0x1ef869=String(_0x38965f);return this[_0x499ba5(0x325)](_0x1ef869,(_0x9dbcf5,_0x17a250)=>{const _0x35fc15=_0x499ba5,_0x4fce4c=String(_0x9dbcf5['dataEnv']),_0x20a90b=new Set((remove||[])[_0x35fc15(0x255)](_0x457f74=>String(_0x457f74['type'])+'\x00'+String(_0x457f74['key']))),_0x3c1cf7=[];if(_0x20a90b[_0x35fc15(0x7a1)]>0x0)for(const {key:_0x5b0f08,value:_0x46630b}of _0x17a250[_0x35fc15(0x416)](_0x88f0e9,{})){if(!_0x46630b||_0x46630b[_0x35fc15(0x492)]!==_0x1ef869)continue;if(_0x20a90b['has'](_0x46630b[_0x35fc15(0x576)]+'\x00'+_0x46630b['key']))_0x3c1cf7[_0x35fc15(0x491)](_0x5b0f08);}const _0xe0cd80=(add||[])[_0x35fc15(0x255)](_0x3eadc0=>({'id':_0x3745e2[_0x35fc15(0x89a)](),'type':String(_0x3eadc0[_0x35fc15(0x576)]),'key':String(_0x3eadc0[_0x35fc15(0x868)])}));return{'applyInterests':_0x218551=>{const _0x1a6550=_0x35fc15;for(const _0x47e749 of _0x3c1cf7)_0x218551[_0x1a6550(0x248)](_0x88f0e9,_0x47e749);for(const _0x49b7f4 of _0xe0cd80)_0x218551[_0x1a6550(0x3fe)](_0x88f0e9,_0x49b7f4['id'],{'sessionId':_0x1ef869,'dataEnv':_0x4fce4c,'type':_0x49b7f4['type'],'key':_0x49b7f4[_0x1a6550(0x868)]});}};});}async[_0x3ba561(0x536)](_0x4e2039,_0x3a383f){const _0x41d741=_0x3ba561;_0x339100(_0x3a383f);const _0x2ec03f=String(_0x4e2039);return this[_0x41d741(0x325)](_0x2ec03f,()=>({'sessionPatch':{'filter':_0x3a383f??null}}));}async['removeInterest'](_0x105150,_0x234bd9,_0x3491d7){const _0x58701d=_0x3ba561,_0x4a2a82=this[_0x58701d(0x550)](),_0x599581=String(_0x105150),_0x56fc36=String(_0x234bd9),_0xf52d58=String(_0x3491d7),_0x55f959=[];for(const {key:_0x5e22f4,value:_0x1627f1}of _0x4a2a82[_0x58701d(0x416)](_0x88f0e9,{})){if(_0x1627f1&&_0x1627f1[_0x58701d(0x492)]===_0x599581&&_0x1627f1['type']===_0x56fc36&&_0x1627f1[_0x58701d(0x868)]===_0xf52d58)_0x55f959[_0x58701d(0x491)](_0x5e22f4);}for(const _0x57b0fc of _0x55f959)await _0x4a2a82[_0x58701d(0x248)](_0x88f0e9,_0x57b0fc);return _0x55f959[_0x58701d(0x61b)];}async[_0x3ba561(0x2f0)](_0xabc44f,_0x213816){const _0x100150=_0x3ba561,_0x524b9a=String(_0xabc44f);return this[_0x100150(0x325)](_0x524b9a,(_0x4cf0fb,_0x5f0b08)=>{const _0x1e3316=_0x100150,_0x308302=String(_0x4cf0fb[_0x1e3316(0x43a)]),_0x2e1cc7=[];for(const {key:_0x5ad0fa,value:_0x1f89b4}of _0x5f0b08[_0x1e3316(0x416)](_0x88f0e9,{})){if(_0x1f89b4&&_0x1f89b4[_0x1e3316(0x492)]===_0x524b9a)_0x2e1cc7[_0x1e3316(0x491)](_0x5ad0fa);}const _0x5fb369=(_0x213816||[])[_0x1e3316(0x255)](_0x7e8ecd=>({'id':_0x3745e2[_0x1e3316(0x89a)](),'type':String(_0x7e8ecd[_0x1e3316(0x576)]),'key':String(_0x7e8ecd[_0x1e3316(0x868)])}));return{'applyInterests':_0x32b5bf=>{const _0x1751de=_0x1e3316;for(const _0x348198 of _0x2e1cc7)_0x32b5bf['remove'](_0x88f0e9,_0x348198);for(const _0x2426f8 of _0x5fb369)_0x32b5bf['put'](_0x88f0e9,_0x2426f8['id'],{'sessionId':_0x524b9a,'dataEnv':_0x308302,'type':_0x2426f8['type'],'key':_0x2426f8[_0x1751de(0x868)]});}};});}[_0x3ba561(0x276)](_0x34d815,_0x4c99db,_0x2b9b82){const _0x16dcd3=_0x3ba561,_0x5e8a69=this[_0x16dcd3(0x550)](),_0x3d46db=String(_0x34d815),_0x196d23=String(_0x4c99db),_0x2f5281=String(_0x2b9b82),_0x2172e4=new Set();for(const {value:_0x4f3d63}of _0x5e8a69[_0x16dcd3(0x7ee)](_0x88f0e9,_0x529130,{'start':[_0x3d46db,_0x196d23,_0x2f5281],'end':[_0x3d46db,_0x196d23,_0x2f5281,'￿']})){if(_0x4f3d63&&_0x4f3d63[_0x16dcd3(0x492)])_0x2172e4[_0x16dcd3(0x6dc)](_0x4f3d63[_0x16dcd3(0x492)]);}return[..._0x2172e4];}[_0x3ba561(0x849)](_0x55880e,_0x3a6e72){const _0x447faf=_0x3ba561,_0x138400=this['_env'](),_0x58e268=String(_0x55880e),_0x69eb19=String(_0x3a6e72),_0x12fc21=[];for(const {value:_0x17a31e}of _0x138400[_0x447faf(0x7ee)](_0x1beba3,_0x32e412,{'start':[_0x58e268,_0x69eb19],'end':[_0x58e268,_0x69eb19,'\uffff']})){if(!_0x17a31e||_0x17a31e[_0x447faf(0x43a)]!==_0x58e268||_0x17a31e[_0x447faf(0x576)]!==_0x69eb19)continue;if(_0x17a31e[_0x447faf(0x656)]==null)continue;_0x12fc21[_0x447faf(0x491)]({'sessionId':_0x17a31e[_0x447faf(0x492)],'filter':_0x17a31e[_0x447faf(0x656)],'version':Number[_0x447faf(0x1dd)](_0x17a31e[_0x447faf(0x445)])?_0x17a31e['version']:0x0});}return _0x12fc21;}async[_0x3ba561(0x436)](){const _0x495f77=_0x3ba561;return this[_0x495f77(0x550)]()[_0x495f77(0x6d8)]();}}return okdbSubscriptionsStore['exports']=_0x1eeb04,okdbSubscriptionsStore[_0x3ba561(0x7f5)][_0x3ba561(0x351)]=_0x12d39f,okdbSubscriptionsStore['exports'][_0x3ba561(0x54c)]=_0x1beba3,okdbSubscriptionsStore[_0x3ba561(0x7f5)][_0x3ba561(0x890)]=_0x88f0e9,okdbSubscriptionsStore[_0x3ba561(0x7f5)][_0x3ba561(0x73c)]=_0x529130,okdbSubscriptionsStore[_0x3ba561(0x7f5)][_0x3ba561(0x85f)]=_0x32e412,okdbSubscriptionsStore['exports'][_0x3ba561(0x7c7)]=_0x4be86b,okdbSubscriptionsStore['exports'];}var version=_0x3e8e44(0x8b3),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x1789c0=_0x3e8e44;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x12f928=_0x1789c0(0x3a9),_0x1f5207=0xa,_0x1f114e=Object[_0x1789c0(0x75f)]({'CREATED':'created','ONLINE':'online','STOPPED':'stopped','INACTIVE':_0x1789c0(0x21b),'ERROR':'error','REMOVED':_0x1789c0(0x29c)}),_0x5c4906=Object[_0x1789c0(0x75f)]({'STARTED':'started','STOPPED':_0x1789c0(0x5e3),'ERROR':_0x1789c0(0x5cc),'INSTALLED':_0x1789c0(0x331),'UNINSTALLED':_0x1789c0(0x7c3)}),_0x562692=Object[_0x1789c0(0x75f)](new Set([_0x1f114e[_0x1789c0(0x743)],_0x1f114e[_0x1789c0(0x3de)],_0x1f114e[_0x1789c0(0x773)],_0x1f114e[_0x1789c0(0x3d3)]]));function _0x505266(_0x2b635b){const _0x1a85cd=_0x1789c0;return _0x2b635b?.[_0x1a85cd(0x22a)]===![]?_0x1f114e[_0x1a85cd(0x3de)]:_0x1a85cd(0x1b3);}return okdbEnginesEnums={'TYPE_ENGINES':_0x12f928,'MAX_UPDATE_RETRIES':_0x1f5207,'ENGINE_STATUS':_0x1f114e,'ENGINE_EVENTS':_0x5c4906,'UPDATABLE_STATUSES':_0x562692,'durableOnlyEngineState':_0x505266},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x467789=_0x3e8e44;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x2b981a=Object[_0x467789(0x75f)]({'EMBEDDER':_0x467789(0x367),'INDEXER':_0x467789(0x43f),'SEARCH':_0x467789(0x6f5),'WORKER':_0x467789(0x34d)}),_0x183b79=Object[_0x467789(0x75f)]({'PENDING':'pending','DONE':'done','FAILED':_0x467789(0x419),'DELETED':_0x467789(0x1cf)}),_0x397083=Object['freeze']({'INDEXER_READY':_0x467789(0x7b9),'INDEXER_FLUSHED':_0x467789(0x1a7),'INDEXER_DOC_DONE':_0x467789(0x466),'INDEXER_DOC_FAILED':_0x467789(0x327),'INDEXER_DOC_QUEUED':_0x467789(0x19b),'STRATEGY_REGISTERED':_0x467789(0x3f4),'DOC_STATUS_CHANGE':_0x467789(0x54e),'PIPELINE_READY':'embeddings:pipeline:ready'}),_0x16b431=Object[_0x467789(0x75f)]({'MODELS':_0x467789(0x725),'DOC_STATUS_PREFIX':_0x467789(0x193),'VEC_PREFIX':_0x467789(0x525)});return enums={'ENGINE_TYPES':_0x2b981a,'INDEXER_DOC_STATUS':_0x183b79,'EMBEDDINGS_EVENTS':_0x397083,'INTERNAL_TYPES':_0x16b431},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x1894d4=_0x3e8e44;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x6fa68b=Object['freeze']({'PENDING':'pending','RUNNING':_0x1894d4(0x6ba),'DONE':'done','FAILED':'failed'}),_0x12d9f7=Object['freeze']({'ACTIVE':'active','PAUSED':_0x1894d4(0x399),'DRAINING':_0x1894d4(0x56e)}),_0x2a20f1=Object[_0x1894d4(0x75f)]({'ENQUEUED':_0x1894d4(0x3ca),'DONE':'queue:done','FAILED':'queue:failed','RETRY':_0x1894d4(0x7f7),'RESCHEDULED':_0x1894d4(0x5dd),'REMOVED':_0x1894d4(0x772),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x1894d4(0x1f4),'CLEAR_DONE':_0x1894d4(0x5bf),'LOG':_0x1894d4(0x757)}),_0x2764be=Object[_0x1894d4(0x75f)]([_0x1894d4(0x241),_0x1894d4(0x3ce),_0x1894d4(0x6c3),_0x1894d4(0x5cc)]),_0xc87be9=0x1,_0x49db9b=0xc350,_0x44db29=0x400,_0x19df91=0x800;function _0x1219a5(_0x107146){const _0x55d3bd=_0x1894d4;return _0x107146!=null&&typeof _0x107146===_0x55d3bd(0x677)&&(_0x107146['constructor']===Object||Object['getPrototypeOf'](_0x107146)===null);}function _0x2d2497(_0x33c343,_0x5e3479,_0xf8eda0,_0x473825){const _0x592a99=_0x1894d4;if(_0x33c343==null)return _0x5e3479;const _0x250565=Number(_0x33c343);if(!Number[_0x592a99(0x1dd)](_0x250565))return _0x5e3479;const _0x4965b7=Math['trunc'](_0x250565);if(_0x4965b7<_0xf8eda0)return _0xf8eda0;if(_0x4965b7>_0x473825)return _0x473825;return _0x4965b7;}function _0x4d4f7c(_0x386b5a){const _0x2cacef=_0x1894d4;if(!_0x386b5a)return[];if(typeof _0x386b5a===_0x2cacef(0x7f4))_0x386b5a=[_0x386b5a];if(!Array[_0x2cacef(0x63d)](_0x386b5a))throw new Error(_0x2cacef(0x7cc));const _0x1cb332=[],_0x12548a=new Set();for(const _0x2907b1 of _0x386b5a){if(_0x2907b1==null)continue;const _0x5bfa4f=String(_0x2907b1)['trim']();if(!_0x5bfa4f)continue;if(_0x5bfa4f[_0x2cacef(0x61b)]>0x80)throw new Error(_0x2cacef(0x21c));if(_0x12548a['has'](_0x5bfa4f))continue;_0x12548a[_0x2cacef(0x6dc)](_0x5bfa4f),_0x1cb332['push'](_0x5bfa4f);if(_0x1cb332['length']>=0x20)break;}return _0x1cb332;}function _0x4a0e93(_0x3341f1){const _0x5e6ed2=_0x1894d4;if(_0x3341f1==null)return null;const _0x5a49db=String(_0x3341f1)['trim']();if(!_0x5a49db)return null;if(_0x5a49db[_0x5e6ed2(0x61b)]>0x80)throw new Error(_0x5e6ed2(0x3ad));return _0x5a49db;}function _0x3813b5(_0x69b2f2,_0x1dffc2=0x1){const _0x4391ce=_0x1894d4;if(_0x69b2f2==null)return[];if(typeof _0x69b2f2===_0x4391ce(0x7f4)){const _0x1057d3=_0x4a0e93(_0x69b2f2);if(!_0x1057d3)return[];return[{'id':_0x1057d3,'tokens':_0x1dffc2}];}if(!Array[_0x4391ce(0x63d)](_0x69b2f2))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x589088=[],_0x34d68d=new Set();for(const _0x261e52 of _0x69b2f2){let _0x3fd008,_0x4ca9a8;if(Array[_0x4391ce(0x63d)](_0x261e52))[_0x3fd008,_0x4ca9a8]=_0x261e52;else{if(_0x261e52&&typeof _0x261e52===_0x4391ce(0x677))({id:_0x3fd008,tokens:_0x4ca9a8}=_0x261e52);else{if(typeof _0x261e52==='string')_0x3fd008=_0x261e52,_0x4ca9a8=_0x1dffc2;else continue;}}_0x3fd008=_0x4a0e93(_0x3fd008);if(!_0x3fd008)continue;const _0x36039b=_0x4ca9a8==null?_0x1dffc2:Math[_0x4391ce(0x3a4)](Number(_0x4ca9a8));if(!Number[_0x4391ce(0x1dd)](_0x36039b)||_0x36039b<0x1)throw new Error(_0x4391ce(0x78e)+_0x3fd008+_0x4391ce(0x58b));if(_0x36039b>0xf4240)throw new Error(_0x4391ce(0x78e)+_0x3fd008+_0x4391ce(0x684));if(_0x34d68d[_0x4391ce(0x764)](_0x3fd008))throw new Error(_0x4391ce(0x681)+_0x3fd008);_0x34d68d['add'](_0x3fd008),_0x589088[_0x4391ce(0x491)]({'id':_0x3fd008,'tokens':_0x36039b});}return _0x589088;}function _0x57edfb(_0x1987e4,_0x33de22=0x400){const _0x3c9d22=_0x1894d4;if(_0x1987e4==null)return null;const _0x391d94=String(_0x1987e4)[_0x3c9d22(0x8b5)](0x0,_0x33de22);return _0x391d94||null;}function _0x1a14cd(_0x5080db){const _0x237fe4=_0x1894d4;if(_0x5080db==null)return null;if(_0x5080db[_0x237fe4(0x868)]!==undefined&&_0x5080db['value']!==undefined)return _0x5080db;return{'key':_0x5080db['id']??null,'value':_0x5080db};}function _0x53ac74(_0x415e87){const _0x399817=_0x1894d4;let _0x3ff8d1=_0x415e87;if(typeof _0x415e87===_0x399817(0x7f4))_0x3ff8d1={'message':_0x415e87};if(!_0x1219a5(_0x3ff8d1))throw new Error(_0x399817(0x691));const _0x5a5be3=_0x3ff8d1['level']==null?_0x399817(0x3ce):String(_0x3ff8d1[_0x399817(0x384)])['toLowerCase']();if(!_0x2764be[_0x399817(0x417)](_0x5a5be3))throw new Error(_0x399817(0x1ee)+_0x5a5be3);if(_0x3ff8d1[_0x399817(0x412)]==null)throw new Error(_0x399817(0x816));const _0xfe5ab8=String(_0x3ff8d1[_0x399817(0x412)])[_0x399817(0x8b5)](0x0,_0x44db29);let _0x28191a=null;if(_0x3ff8d1[_0x399817(0x61d)]!=null){if(!_0x1219a5(_0x3ff8d1[_0x399817(0x61d)]))throw new Error(_0x399817(0x57b));if(JSON[_0x399817(0x739)](_0x3ff8d1['fields'])['length']>_0x19df91)throw new Error(_0x399817(0x216));_0x28191a=_0x3ff8d1[_0x399817(0x61d)];}return{'level':_0x5a5be3,'message':_0xfe5ab8,'fields':_0x28191a,'ts':Date[_0x399817(0x590)]()};}function _0x18f121(_0xe0912e){const _0xd976a3=_0x1894d4;if(_0xe0912e==null)return;if(!Number['isInteger'](_0xe0912e)||_0xe0912e<_0xc87be9||_0xe0912e>_0x49db9b)throw new Error(_0xd976a3(0x676)+_0xc87be9+',\x20'+_0x49db9b+']');}function _0x1f3b1d(_0x130043){const _0x536ce2=_0x1894d4;if(!_0x1219a5(_0x130043))throw new Error(_0x536ce2(0x208));if(typeof _0x130043['id']!==_0x536ce2(0x7f4)||_0x130043['id']['length']<0x8)throw new Error(_0x536ce2(0x385));if(typeof _0x130043[_0x536ce2(0x576)]!=='string'||!_0x130043[_0x536ce2(0x576)])throw new Error(_0x536ce2(0x32a));if(!Object['values'](_0x6fa68b)['includes'](_0x130043['status']))throw new Error('invalid\x20job.status:\x20'+_0x130043[_0x536ce2(0x2fe)]);for(const _0x48804b of[_0x536ce2(0x31d),'created',_0x536ce2(0x609)]){if(typeof _0x130043[_0x48804b]!==_0x536ce2(0x7e9)||!Number[_0x536ce2(0x1dd)](_0x130043[_0x48804b]))throw new Error(_0x536ce2(0x2c0)+_0x48804b+_0x536ce2(0x27a));}if(_0x130043[_0x536ce2(0x689)]!=null&&(typeof _0x130043[_0x536ce2(0x689)]!==_0x536ce2(0x7e9)||!Number[_0x536ce2(0x1dd)](_0x130043['finished'])))throw new Error(_0x536ce2(0x77d));if(!Number[_0x536ce2(0x7ab)](_0x130043[_0x536ce2(0x842)])||_0x130043['tries']<0x0)throw new Error(_0x536ce2(0x4fd));if(!Number['isInteger'](_0x130043[_0x536ce2(0x4ee)]))throw new Error(_0x536ce2(0x478));if(_0x130043[_0x536ce2(0x81d)]!==null&&_0x130043[_0x536ce2(0x81d)]!==Infinity&&(!Number[_0x536ce2(0x7ab)](_0x130043[_0x536ce2(0x81d)])||_0x130043[_0x536ce2(0x81d)]<0x1))throw new Error(_0x536ce2(0x80d));if(_0x130043[_0x536ce2(0x4d2)]!=null&&(!Number['isInteger'](_0x130043[_0x536ce2(0x4d2)])||_0x130043[_0x536ce2(0x4d2)]<0x0))throw new Error(_0x536ce2(0x5c6));if(_0x130043['backoff_multiplier']!=null&&(typeof _0x130043['backoff_multiplier']!==_0x536ce2(0x7e9)||_0x130043[_0x536ce2(0x70c)]<0x1))throw new Error('job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201');if(_0x130043[_0x536ce2(0x83c)]!=null&&typeof _0x130043['claim_id']!==_0x536ce2(0x7f4))throw new Error(_0x536ce2(0x668));if(_0x130043[_0x536ce2(0x1d5)]!=null&&(typeof _0x130043[_0x536ce2(0x1d5)]!==_0x536ce2(0x7e9)||!Number['isFinite'](_0x130043[_0x536ce2(0x1d5)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x130043[_0x536ce2(0x30c)]!=null&&typeof _0x130043[_0x536ce2(0x30c)]!==_0x536ce2(0x7f4))throw new Error(_0x536ce2(0x863));if(_0x130043[_0x536ce2(0x527)]!=null&&(!Number[_0x536ce2(0x7ab)](_0x130043[_0x536ce2(0x527)])||_0x130043[_0x536ce2(0x527)]<0x1))throw new Error(_0x536ce2(0x1da));if(_0x130043[_0x536ce2(0x4a0)]!=null){if(!Array[_0x536ce2(0x63d)](_0x130043[_0x536ce2(0x4a0)]))throw new Error(_0x536ce2(0x547));for(const _0xfcc690 of _0x130043[_0x536ce2(0x4a0)]){if(!_0xfcc690||typeof _0xfcc690!==_0x536ce2(0x677))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0xfcc690['id']!=='string'||!_0xfcc690['id'][_0x536ce2(0x51f)]())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number[_0x536ce2(0x7ab)](_0xfcc690['tokens'])||_0xfcc690[_0x536ce2(0x232)]<0x1)throw new Error(_0x536ce2(0x1ab));}}if(_0x130043[_0x536ce2(0x824)]!=null&&typeof _0x130043['cron']!=='string')throw new Error(_0x536ce2(0x738));if(_0x130043['idempotency_key']!=null&&typeof _0x130043[_0x536ce2(0x549)]!==_0x536ce2(0x7f4))throw new Error('job.idempotency_key\x20must\x20be\x20string|null');if(!Array[_0x536ce2(0x63d)](_0x130043[_0x536ce2(0x584)]))throw new Error(_0x536ce2(0x39f));if(_0x130043[_0x536ce2(0x8b0)]!=null&&typeof _0x130043[_0x536ce2(0x8b0)]!==_0x536ce2(0x7f4))throw new Error('job.tag\x20must\x20be\x20string|null');if(_0x130043[_0x536ce2(0x770)]!=null&&typeof _0x130043[_0x536ce2(0x770)]!==_0x536ce2(0x7f4))throw new Error(_0x536ce2(0x686));if(_0x130043[_0x536ce2(0x5db)]!=null&&typeof _0x130043[_0x536ce2(0x5db)]!==_0x536ce2(0x7f4))throw new Error(_0x536ce2(0x47d));if(_0x130043['error_stack']!=null&&typeof _0x130043[_0x536ce2(0x350)]!==_0x536ce2(0x7f4))throw new Error(_0x536ce2(0x857));for(const _0x343e7e of[_0x536ce2(0x7e0),_0x536ce2(0x2bc)]){const _0x17651d=_0x130043[_0x343e7e];if(_0x17651d!=null&&(!Number[_0x536ce2(0x7ab)](_0x17651d)||_0x17651d<0x0))throw new Error(_0x536ce2(0x2c0)+_0x343e7e+_0x536ce2(0x565));}_0x18f121(_0x130043[_0x536ce2(0x1a6)]);}function _0x555dc5(_0x2c3d75){const _0x16a499=_0x1894d4;if(!_0x1219a5(_0x2c3d75))throw new Error(_0x16a499(0x49c));if(typeof _0x2c3d75['id']!==_0x16a499(0x7f4)||!_0x2c3d75['id']['trim']())throw new Error(_0x16a499(0x6b9));if(!Object['values'](_0x12d9f7)[_0x16a499(0x417)](_0x2c3d75[_0x16a499(0x2fe)]))throw new Error(_0x16a499(0x818)+_0x2c3d75[_0x16a499(0x2fe)]);if(_0x2c3d75['max_concurrency']!=null&&(!Number[_0x16a499(0x7ab)](_0x2c3d75[_0x16a499(0x556)])||_0x2c3d75['max_concurrency']<0x1))throw new Error(_0x16a499(0x89e));if(_0x2c3d75[_0x16a499(0x453)]!=null){if(!_0x1219a5(_0x2c3d75['defaults']))throw new Error('job_type.defaults\x20must\x20be\x20object|null');const _0xde71b0=_0x2c3d75['defaults'];if(_0xde71b0['max_tries']!=null&&(!Number[_0x16a499(0x7ab)](_0xde71b0[_0x16a499(0x81d)])||_0xde71b0[_0x16a499(0x81d)]<0x1))throw new Error('job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null');if(_0xde71b0[_0x16a499(0x4d2)]!=null&&(!Number['isInteger'](_0xde71b0['retry_delay'])||_0xde71b0[_0x16a499(0x4d2)]<0x0))throw new Error(_0x16a499(0x2c1));if(_0xde71b0['backoff_multiplier']!=null&&(typeof _0xde71b0['backoff_multiplier']!=='number'||_0xde71b0[_0x16a499(0x70c)]<0x1))throw new Error(_0x16a499(0x36b));if(_0xde71b0[_0x16a499(0x4ee)]!=null&&!Number[_0x16a499(0x7ab)](_0xde71b0[_0x16a499(0x4ee)]))throw new Error(_0x16a499(0x26d));if(_0xde71b0[_0x16a499(0x20b)]!=null&&(!Number[_0x16a499(0x7ab)](_0xde71b0['ttl'])||_0xde71b0[_0x16a499(0x20b)]<0x0))throw new Error(_0x16a499(0x53e));for(const _0x5a463d of[_0x16a499(0x7e0),_0x16a499(0x2bc)]){if(_0xde71b0[_0x5a463d]!=null&&(!Number[_0x16a499(0x7ab)](_0xde71b0[_0x5a463d])||_0xde71b0[_0x5a463d]<0x0))throw new Error(_0x16a499(0x7d5)+_0x5a463d+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0xde71b0[_0x16a499(0x4a0)]!=null&&!Array[_0x16a499(0x63d)](_0xde71b0[_0x16a499(0x4a0)]))throw new Error(_0x16a499(0x578));_0x18f121(_0xde71b0[_0x16a499(0x1a6)]);}if(_0x2c3d75[_0x16a499(0x517)]!=null){if(!_0x1219a5(_0x2c3d75['payload_schema']))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x1219a5(_0x2c3d75['payload_schema']['definition']))throw new Error(_0x16a499(0x26e));if(typeof _0x2c3d75[_0x16a499(0x517)]['enforce']!=='boolean')throw new Error(_0x16a499(0x4ed));}for(const _0x2a592d of[_0x16a499(0x249),_0x16a499(0x4ac)]){if(typeof _0x2c3d75[_0x2a592d]!==_0x16a499(0x7e9)||!Number[_0x16a499(0x1dd)](_0x2c3d75[_0x2a592d]))throw new Error(_0x16a499(0x2d5)+_0x2a592d+'\x20must\x20be\x20number');}}function _0x5731ec(_0x1c739d){const _0x4c17aa=_0x1894d4;if(!_0x1219a5(_0x1c739d))throw new Error(_0x4c17aa(0x57c));if(typeof _0x1c739d['id']!==_0x4c17aa(0x7f4)||!_0x1c739d['id'][_0x4c17aa(0x51f)]())throw new Error(_0x4c17aa(0x4a6));if(!Number[_0x4c17aa(0x7ab)](_0x1c739d[_0x4c17aa(0x232)])||_0x1c739d[_0x4c17aa(0x232)]<0x0)throw new Error(_0x4c17aa(0x833));if(!Number['isInteger'](_0x1c739d['capacity'])||_0x1c739d[_0x4c17aa(0x6ea)]<0x0)throw new Error(_0x4c17aa(0x443));if(_0x1c739d[_0x4c17aa(0x232)]>_0x1c739d[_0x4c17aa(0x6ea)])throw new Error(_0x4c17aa(0x5ea));if(!Number[_0x4c17aa(0x7ab)](_0x1c739d[_0x4c17aa(0x342)])||_0x1c739d['refill_amount']<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x4c17aa(0x7ab)](_0x1c739d['refill_every'])||_0x1c739d[_0x4c17aa(0x53a)]<0x0)throw new Error(_0x4c17aa(0x3ac));if(typeof _0x1c739d[_0x4c17aa(0x609)]!==_0x4c17aa(0x7e9)||!Number[_0x4c17aa(0x1dd)](_0x1c739d[_0x4c17aa(0x609)]))throw new Error('bucket.updated\x20must\x20be\x20number');}return okdbQueueValidate={'STATUS':_0x6fa68b,'JOB_TYPE_STATUS':_0x12d9f7,'QUEUE_EVENTS':_0x2a20f1,'LOG_LEVELS':_0x2764be,'LOG_CAP_MIN':_0xc87be9,'LOG_CAP_MAX':_0x49db9b,'clampInt':_0x2d2497,'asNullableString':_0x57edfb,'normalizeResult':_0x1a14cd,'normalizeTags':_0x4d4f7c,'normalizeBucket':_0x4a0e93,'normalizeBuckets':_0x3813b5,'normalizeLogEntry':_0x53ac74,'validateJobShape':_0x1f3b1d,'validateJobTypeShape':_0x555dc5,'validateBucketShape':_0x5731ec},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x4f126e=0x2**0x1f-0x1;function _0x541c6e(_0x4c1443){if(!(_0x4c1443>0x0))return 0x0;return _0x4c1443>_0x4f126e?_0x4f126e:_0x4c1443;}function _0x272a25(_0x5dbd16){return _0x5dbd16===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x4f126e,'clampTimerDelay':_0x541c6e,'isNeverDelay':_0x272a25},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x1929d4=_0x3e8e44;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2be224=require$$0$6,{clampTimerDelay:_0x22adc3}=requireOkdbTimers(),{EVENTS:_0x33ac17,CHANGE_ACTIONS:_0x5a0c3d}=requireOkdbEnums(),{LOOP:_0x24c629}=requireOkdbLoopMonitor(),_0x2d1a27=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x6b0bf=0x5,_0x14100f=0x2710;class _0x16f5b6 extends _0x2be224{constructor(_0x300f7c,_0x4407d0={}){const _0x427233=_0x206c;super(),this[_0x427233(0x7ea)]=_0x300f7c,this[_0x427233(0x2f8)]=_0x4407d0['quantum']??_0x2d1a27,this['_flushDebounce']=_0x4407d0['flushDebounce']??_0x6b0bf,this[_0x427233(0x2d1)]=_0x4407d0[_0x427233(0x3c7)]??_0x14100f,this[_0x427233(0x1cc)]=![],this[_0x427233(0x4c0)]=new Map(),this[_0x427233(0x335)]=new Map(),this[_0x427233(0x80a)]=new Map(),this['_flushTimer']=null,this[_0x427233(0x745)]=![],this[_0x427233(0x3fc)]=new Set(),this[_0x427233(0x6db)]=new Set(),this[_0x427233(0x43d)]=_0x19cb33=>this[_0x427233(0x2b5)](_0x19cb33),this[_0x427233(0x3cc)]=_0x4e93ad=>this[_0x427233(0x5dc)](_0x4e93ad),this[_0x427233(0x6b0)]=_0x295953=>this['_handlePoke'](_0x295953),this[_0x427233(0x53b)]=()=>this['stop']();}[_0x1929d4(0x40c)](){const _0x4650e5=_0x1929d4;if(this[_0x4650e5(0x1cc)])return;this[_0x4650e5(0x1cc)]=!![];for(const [_0x2ca467,_0x344629]of this['okdb'][_0x4650e5(0x554)]){if(_0x2ca467[_0x4650e5(0x747)]('~'))continue;try{_0x344629[_0x4650e5(0x4fc)]();}catch{}}for(const [_0x11e46f,_0x500bd8]of this[_0x4650e5(0x7ea)][_0x4650e5(0x554)]){if(_0x11e46f['startsWith']('~'))continue;try{this['_baselines'][_0x4650e5(0x280)](_0x11e46f,_0x500bd8[_0x4650e5(0x740)]()||0x0);}catch{}}const {events:_0x59757d}=this[_0x4650e5(0x7ea)];_0x59757d['on'](_0x33ac17[_0x4650e5(0x6a6)],this[_0x4650e5(0x3cc)]),_0x59757d['on'](_0x33ac17[_0x4650e5(0x70d)],this[_0x4650e5(0x43d)]),_0x59757d['on'](_0x33ac17[_0x4650e5(0x82b)],this[_0x4650e5(0x43d)]),_0x59757d['on'](_0x33ac17[_0x4650e5(0x7eb)],this[_0x4650e5(0x43d)]),_0x59757d['on'](_0x33ac17[_0x4650e5(0x2f3)],this[_0x4650e5(0x6b0)]),_0x59757d[_0x4650e5(0x265)](_0x33ac17['SYSTEM_STOPPED'],this[_0x4650e5(0x53b)]);}[_0x1929d4(0x8a0)](){const _0x31a438=_0x1929d4;if(!this['_started'])return;this[_0x31a438(0x1cc)]=![];const {events:_0x5735d2}=this['okdb'];_0x5735d2[_0x31a438(0x795)](_0x33ac17['ITEM_PENDING'],this[_0x31a438(0x3cc)]),_0x5735d2[_0x31a438(0x795)](_0x33ac17[_0x31a438(0x70d)],this[_0x31a438(0x43d)]),_0x5735d2[_0x31a438(0x795)](_0x33ac17[_0x31a438(0x82b)],this['_onItem']),_0x5735d2[_0x31a438(0x795)](_0x33ac17[_0x31a438(0x7eb)],this[_0x31a438(0x43d)]),_0x5735d2['off'](_0x33ac17[_0x31a438(0x2f3)],this['_onPoke']);try{_0x5735d2[_0x31a438(0x795)](_0x33ac17[_0x31a438(0x74f)],this[_0x31a438(0x53b)]);}catch{}this[_0x31a438(0x6e9)]&&(clearTimeout(this[_0x31a438(0x6e9)]),this[_0x31a438(0x6e9)]=null),this['_pending'][_0x31a438(0x6f6)](),this[_0x31a438(0x4c0)][_0x31a438(0x6f6)](),this[_0x31a438(0x335)][_0x31a438(0x6f6)](),this[_0x31a438(0x3fc)][_0x31a438(0x6f6)](),this['_pendingLocal'][_0x31a438(0x6f6)]();}[_0x1929d4(0x65b)](_0x3a4dd2,_0x49a31e,_0x1fbf8b,_0x2ff98a){return _0x3a4dd2+'\x00'+_0x49a31e+'\x00'+_0x1fbf8b+'\x00'+_0x2ff98a;}[_0x1929d4(0x452)](_0x36f9c0,_0x312350,_0x56181e,_0x444ac5){const _0x4e8c15=_0x1929d4,_0x72d873=this[_0x4e8c15(0x65b)](_0x36f9c0,_0x312350,_0x56181e,_0x444ac5);if(this[_0x4e8c15(0x3fc)][_0x4e8c15(0x764)](_0x72d873))return![];this[_0x4e8c15(0x3fc)][_0x4e8c15(0x6dc)](_0x72d873);if(this[_0x4e8c15(0x3fc)][_0x4e8c15(0x7a1)]>this[_0x4e8c15(0x2d1)]){const _0x20612d=this[_0x4e8c15(0x3fc)]['values']()[_0x4e8c15(0x830)]()[_0x4e8c15(0x37e)];this[_0x4e8c15(0x3fc)][_0x4e8c15(0x588)](_0x20612d);}return!![];}[_0x1929d4(0x5dc)](_0x318637){const _0x44f7e9=_0x1929d4;if(!this[_0x44f7e9(0x1cc)]||!_0x318637)return;const {env:_0x5f19fd,type:_0x53a623,key:_0x58255c,clock:_0x44af83}=_0x318637;if(_0x5f19fd==null||_0x53a623==null||_0x58255c==null)return;if(typeof _0x5f19fd==='string'&&_0x5f19fd['startsWith']('~'))return;if(typeof _0x53a623==='string'&&_0x53a623[_0x44f7e9(0x747)]('~'))return;this[_0x44f7e9(0x6db)][_0x44f7e9(0x6dc)](this[_0x44f7e9(0x65b)](_0x5f19fd,_0x53a623,_0x58255c,_0x44af83)),this['_pendingLocal'][_0x44f7e9(0x7a1)]>this[_0x44f7e9(0x2d1)]&&this[_0x44f7e9(0x6db)][_0x44f7e9(0x588)](this[_0x44f7e9(0x6db)][_0x44f7e9(0x77f)]()[_0x44f7e9(0x830)]()['value']);}[_0x1929d4(0x2b5)](_0x35596d){const _0x56b178=_0x1929d4;if(!this[_0x56b178(0x1cc)]||!_0x35596d)return;const {env:_0x5f425b,type:_0x3c84a7,key:_0x2da186,clock:_0x4a9e8b,origin:_0x4f7512,action:_0x2ecdc4,newValue:_0x297e2c,oldValue:_0x5a4365}=_0x35596d;if(_0x5f425b==null||_0x3c84a7==null||_0x2da186==null)return;if(typeof _0x5f425b===_0x56b178(0x7f4)&&_0x5f425b['startsWith']('~'))return;if(typeof _0x3c84a7===_0x56b178(0x7f4)&&_0x3c84a7[_0x56b178(0x747)]('~'))return;this[_0x56b178(0x6db)][_0x56b178(0x588)](this[_0x56b178(0x65b)](_0x5f425b,_0x3c84a7,_0x2da186,_0x4a9e8b));if(!this[_0x56b178(0x452)](_0x5f425b,_0x3c84a7,_0x2da186,_0x4a9e8b))return;const _0x1d6641=_0x2ecdc4===_0x5a0c3d[_0x56b178(0x7a6)]?'remove':_0x56b178(0x3fe);this[_0x56b178(0x749)](_0x56b178(0x82a),{'env':_0x5f425b,'type':_0x3c84a7,'key':_0x2da186,'op':_0x1d6641,'clock':_0x4a9e8b,'origin':_0x4f7512,'value':_0x1d6641===_0x56b178(0x248)?null:_0x297e2c,'prevValue':_0x5a4365});}[_0x1929d4(0x7a9)](_0x6b1c9f){const _0x226370=_0x1929d4;if(!this[_0x226370(0x1cc)])return;if(!_0x6b1c9f||typeof _0x6b1c9f[_0x226370(0x2a8)]!==_0x226370(0x7f4)||typeof _0x6b1c9f[_0x226370(0x576)]!==_0x226370(0x7f4))return;const {env:_0x4f125a,type:_0x46f2bb}=_0x6b1c9f;if(_0x4f125a['startsWith']('~')||_0x46f2bb[_0x226370(0x747)]('~'))return;this['_pending'][_0x226370(0x280)](_0x4f125a+'\x00'+_0x46f2bb,{'env':_0x4f125a,'type':_0x46f2bb}),this['_scheduleFlush']();}[_0x1929d4(0x479)](){const _0x1abaaf=_0x1929d4;if(this[_0x1abaaf(0x6e9)])return;const _0x5d84a3=()=>{const _0x2eae00=_0x1abaaf;this[_0x2eae00(0x6e9)]=null,this[_0x2eae00(0x877)]()[_0x2eae00(0x7c4)](()=>{});};this[_0x1abaaf(0x6e9)]=setTimeout(_0x5d84a3,_0x22adc3(this[_0x1abaaf(0x234)]));}async[_0x1929d4(0x877)](){const _0x5bf02b=_0x1929d4;if(this[_0x5bf02b(0x745)]){this[_0x5bf02b(0x479)]();return;}this[_0x5bf02b(0x745)]=!![];try{const _0x307292=[...this[_0x5bf02b(0x80a)][_0x5bf02b(0x77f)]()];this[_0x5bf02b(0x80a)][_0x5bf02b(0x6f6)]();let _0x1e30c3=![];for(const {env:_0x443894,type:_0x49a25d}of _0x307292){try{const _0x3d0c7d=await this[_0x5bf02b(0x21e)](_0x443894,_0x49a25d);if(_0x3d0c7d)_0x1e30c3=!![];}catch{this['_pending']['set'](_0x443894+'\x00'+_0x49a25d,{'env':_0x443894,'type':_0x49a25d}),_0x1e30c3=!![];}}if(_0x1e30c3||this[_0x5bf02b(0x80a)]['size']>0x0)this[_0x5bf02b(0x479)]();}finally{this[_0x5bf02b(0x745)]=![];}}async['_drainOne'](_0x51b2ca,_0x37ebe5){const _0x24f6bb=_0x1929d4,_0x551a11=await this[_0x24f6bb(0x7ea)][_0x24f6bb(0x1c9)](_0x51b2ca),_0x5239a2=_0x51b2ca+'\x00'+_0x37ebe5;!this[_0x24f6bb(0x4c0)][_0x24f6bb(0x764)](_0x5239a2)&&(!this[_0x24f6bb(0x335)][_0x24f6bb(0x764)](_0x51b2ca)&&(_0x551a11[_0x24f6bb(0x4fc)](),this[_0x24f6bb(0x335)]['set'](_0x51b2ca,_0x551a11['getClock']()||0x0)),this[_0x24f6bb(0x4c0)][_0x24f6bb(0x280)](_0x5239a2,this[_0x24f6bb(0x335)][_0x24f6bb(0x212)](_0x51b2ca)));const _0x56737f=this['_cursors']['get'](_0x5239a2),_0x299c31=_0x551a11[_0x24f6bb(0x740)](_0x37ebe5)||0x0;if(_0x299c31<=_0x56737f)return![];const _0x430e86=_0x56737f+this['_quantum'],_0x58f698=Math[_0x24f6bb(0x3bb)](_0x299c31,_0x430e86),_0x41363d=_0x24c629[_0x24f6bb(0x22a)]?_0x24c629[_0x24f6bb(0x590)]():0x0,_0x37969c=Array[_0x24f6bb(0x3e9)](_0x551a11['getChanges'](_0x37ebe5,_0x56737f+0x1,_0x58f698));let _0x1c7f34=_0x56737f;for(const _0x52257d of _0x37969c){const {clock:_0x3e1c18,key:_0x44f9ba,action:_0x2302eb,origin:_0xab207f}=_0x52257d;if(_0x3e1c18>_0x1c7f34)_0x1c7f34=_0x3e1c18;if(_0x44f9ba==null)continue;if(this[_0x24f6bb(0x6db)][_0x24f6bb(0x764)](this['_dedupeKey'](_0x51b2ca,_0x37ebe5,_0x44f9ba,_0x3e1c18)))continue;if(!this[_0x24f6bb(0x452)](_0x51b2ca,_0x37ebe5,_0x44f9ba,_0x3e1c18))continue;let _0x49208a,_0xe244a6;if(_0x2302eb===_0x5a0c3d['REMOVE'])_0x49208a=_0x24f6bb(0x248),_0xe244a6=null;else{const _0x4fdf86=_0x551a11[_0x24f6bb(0x212)](_0x37ebe5,_0x44f9ba);_0x4fdf86==null?(_0x49208a=_0x24f6bb(0x248),_0xe244a6=null):(_0x49208a=_0x24f6bb(0x3fe),_0xe244a6=_0x4fdf86);}this[_0x24f6bb(0x749)](_0x24f6bb(0x82a),{'env':_0x51b2ca,'type':_0x37ebe5,'key':_0x44f9ba,'op':_0x49208a,'clock':_0x3e1c18,'origin':_0xab207f,'value':_0xe244a6});}if(_0x24c629[_0x24f6bb(0x22a)])_0x24c629['note'](_0x24f6bb(0x7ed)+_0x51b2ca+':'+_0x37ebe5,_0x24c629[_0x24f6bb(0x590)]()-_0x41363d,'n='+_0x37969c[_0x24f6bb(0x61b)]);return this['_cursors'][_0x24f6bb(0x280)](_0x5239a2,Math[_0x24f6bb(0x2cf)](_0x1c7f34,_0x58f698)),_0x551a11['getClock'](_0x37ebe5)>_0x58f698;}[_0x1929d4(0x2fe)](){const _0x38a697=_0x1929d4;return{'started':this[_0x38a697(0x1cc)],'quantum':this[_0x38a697(0x2f8)],'flushDebounce':this[_0x38a697(0x234)],'cursors':Object[_0x38a697(0x658)]([...this[_0x38a697(0x4c0)][_0x38a697(0x375)]()][_0x38a697(0x255)](([_0x45fdfa,_0x116eb2])=>[_0x45fdfa[_0x38a697(0x1b1)]('\x00',':'),_0x116eb2])),'pending':this[_0x38a697(0x80a)]['size'],'seen':this[_0x38a697(0x3fc)][_0x38a697(0x7a1)]};}}return _0x16f5b6[_0x1929d4(0x4e2)]=_0x2d1a27,okdbChangefeed={'OKDBChangefeed':_0x16f5b6},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x2419a2=_0x3e8e44;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x52a941}=requireOkdbEnums(),_0x5f1336=new Set([_0x52a941[_0x2419a2(0x70d)],_0x52a941['ITEM_UPDATE'],_0x52a941[_0x2419a2(0x7eb)]]),{ENGINE_EVENTS:_0x4e8019}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x21142c}=requireEnums(),{QUEUE_EVENTS:_0x2126a5}=requireOkdbQueueValidate(),_0x459385=Object[_0x2419a2(0x77f)](_0x52a941),_0x4d01b3=Object[_0x2419a2(0x77f)](_0x4e8019)[_0x2419a2(0x255)](_0x172557=>_0x2419a2(0x77e)+_0x172557),_0x3639fc=Object[_0x2419a2(0x77f)](_0x21142c),_0x33b363=Object[_0x2419a2(0x77f)](_0x2126a5),_0x17e89a=[_0x2419a2(0x2c6),_0x2419a2(0x84c),'processor:error',_0x2419a2(0x715),_0x2419a2(0x88b),_0x2419a2(0x6eb)],_0x181495=[..._0x459385,..._0x4d01b3,..._0x3639fc,..._0x33b363,..._0x17e89a,_0x2419a2(0x4ce)],_0x1b14de=new Set(_0x181495),_0x1f02b1=new Set([_0x52a941[_0x2419a2(0x70d)],_0x52a941[_0x2419a2(0x82b)],_0x52a941[_0x2419a2(0x7eb)],_0x52a941[_0x2419a2(0x345)],_0x52a941[_0x2419a2(0x258)],_0x52a941[_0x2419a2(0x463)],_0x52a941['SYSTEM_CLOCK_CHANGE'],_0x52a941[_0x2419a2(0x809)],_0x21142c['INDEXER_DOC_DONE'],_0x21142c[_0x2419a2(0x59f)],_0x21142c[_0x2419a2(0x592)],_0x21142c['DOC_STATUS_CHANGE'],'processor:progress']),_0x54e91c=_0x181495['filter'](_0x1799bf=>_0x1799bf===_0x2419a2(0x4ce)||!_0x1f02b1[_0x2419a2(0x764)](_0x1799bf)),_0x4058aa=0x14,_0x461b89=0xc8;class _0x402580{constructor(_0x7e52dd,_0x3c310f={}){const _0x4bfe84=_0x2419a2;this[_0x4bfe84(0x7ea)]=_0x7e52dd,this[_0x4bfe84(0x316)]=_0x3c310f[_0x4bfe84(0x5c8)]??_0x4058aa,this['_ringSize']=_0x3c310f[_0x4bfe84(0x531)]??_0x461b89,this[_0x4bfe84(0x6fa)]=new Set(),this['_buffer']=[],this['_listeners']=[],this[_0x4bfe84(0x6ad)]=null,this['_attached']=![],this['_feed']=null,this['_onFeedChange']=null;}[_0x2419a2(0x7b4)](){const _0x2dae90=_0x2419a2;if(this[_0x2dae90(0x3e0)])return;this[_0x2dae90(0x3e0)]=!![];const {okdb:_0x34d506}=this;this[_0x2dae90(0x6ad)]=_0x34d506[_0x2dae90(0x4ce)]['attach'](_0x486c47=>this['_push'](_0x2dae90(0x4ce),_0x486c47));for(const _0x2bfff7 of _0x181495){if(_0x2bfff7==='log')continue;const _0x151d3f=_0x5f1336['has'](_0x2bfff7),_0x519d3e=_0x4e91ca=>{const _0x4a15eb=_0x2dae90;if(_0x151d3f&&this[_0x4a15eb(0x3c0)])return;this[_0x4a15eb(0x579)](_0x2bfff7,_0x4e91ca??{});};_0x34d506['events']['on'](_0x2bfff7,_0x519d3e),this[_0x2dae90(0x2ab)][_0x2dae90(0x491)]({'event':_0x2bfff7,'handler':_0x519d3e});}this[_0x2dae90(0x53b)]=()=>this['detach'](),_0x34d506[_0x2dae90(0x85d)][_0x2dae90(0x265)](_0x52a941[_0x2dae90(0x74f)],this[_0x2dae90(0x53b)]);}[_0x2419a2(0x55b)](){const _0xcdaf30=_0x2419a2;if(!this['_attached'])return;if(this[_0xcdaf30(0x53b)]){try{this[_0xcdaf30(0x7ea)][_0xcdaf30(0x85d)][_0xcdaf30(0x795)](_0x52a941[_0xcdaf30(0x74f)],this[_0xcdaf30(0x53b)]);}catch{}this[_0xcdaf30(0x53b)]=null;}this['_detachLog']?.(),this[_0xcdaf30(0x6ad)]=null;for(const {event:_0x1738c1,handler:_0x5d6727}of this[_0xcdaf30(0x2ab)]){try{this['okdb'][_0xcdaf30(0x85d)][_0xcdaf30(0x795)](_0x1738c1,_0x5d6727);}catch{}}this[_0xcdaf30(0x2ab)]=[];for(const _0x5dfe93 of this[_0xcdaf30(0x6fa)]){try{_0x5dfe93[_0xcdaf30(0x31a)]?.();}catch{}}this['_connections']['clear'](),this['detachFeed'](),this[_0xcdaf30(0x3e0)]=![];}[_0x2419a2(0x5ad)](_0x54d6f2){const _0xddacda=_0x2419a2;if(!_0x54d6f2||this['_feed']===_0x54d6f2)return;this[_0xddacda(0x2c4)](),this[_0xddacda(0x3c0)]=_0x54d6f2,this['_onFeedChange']=_0x566b45=>{if(!_0x566b45)return;const _0x2776d8=_0x566b45['op']==='remove'?_0x52a941['ITEM_REMOVE']:_0x52a941['ITEM_UPDATE'];this['_push'](_0x2776d8,_0x566b45);},_0x54d6f2['on']('change',this['_onFeedChange']);}[_0x2419a2(0x2c4)](){const _0x50aa2e=_0x2419a2;if(this['_feed']&&this[_0x50aa2e(0x2f4)])try{this[_0x50aa2e(0x3c0)][_0x50aa2e(0x795)]('change',this[_0x50aa2e(0x2f4)]);}catch{}this[_0x50aa2e(0x3c0)]=null,this['_onFeedChange']=null;}[_0x2419a2(0x53d)](_0x26b2a0,_0x59d480){const _0x393d27=_0x2419a2;if(!_0x1b14de[_0x393d27(0x764)](_0x26b2a0))return;this[_0x393d27(0x579)](_0x26b2a0,_0x59d480??{});}[_0x2419a2(0x6c0)](_0x3e37a1,_0x136a2d,_0x4ea35c){const _0x5725e8=_0x2419a2;if(this['_connections']['size']>=this[_0x5725e8(0x316)])return _0x136a2d(_0x5725e8(0x235),{'message':_0x5725e8(0x5b3),'code':_0x5725e8(0x622)}),()=>{};const _0x3009d1=this['_resolveFilter'](_0x3e37a1),_0xd52bf={'send':_0x136a2d,'filter':_0x3009d1,'close':_0x4ea35c??null};this[_0x5725e8(0x6fa)][_0x5725e8(0x6dc)](_0xd52bf);for(const {event:_0x4c93dd,data:_0x544e9c}of this[_0x5725e8(0x6e4)]){if(_0x3009d1['has'](_0x4c93dd))try{_0x136a2d(_0x4c93dd,_0x544e9c);}catch{}}return()=>this['_connections'][_0x5725e8(0x588)](_0xd52bf);}[_0x2419a2(0x2c2)](){const _0x2cec0a=_0x2419a2;if(this[_0x2cec0a(0x3c0)])return this[_0x2cec0a(0x3c0)];const {OKDBChangefeed:_0x1d0290}=requireOkdbChangefeed(),_0x515963=new _0x1d0290(this[_0x2cec0a(0x7ea)]);_0x515963[_0x2cec0a(0x40c)](),this[_0x2cec0a(0x5ad)](_0x515963);if(this[_0x2cec0a(0x7ea)]&&!this[_0x2cec0a(0x7ea)][_0x2cec0a(0x3c8)])this['okdb'][_0x2cec0a(0x3c8)]=_0x515963;return this[_0x2cec0a(0x3c0)];}get[_0x2419a2(0x1fb)](){const _0xd643cd=_0x2419a2;return this[_0xd643cd(0x6fa)][_0xd643cd(0x7a1)];}[_0x2419a2(0x855)](){const _0x93f8bd=_0x2419a2;return{'connections':this[_0x93f8bd(0x1fb)],'bufferSize':this[_0x93f8bd(0x6e4)]['length'],'attached':this[_0x93f8bd(0x3e0)],'allEvents':_0x181495[_0x93f8bd(0x61b)],'defaultEvents':_0x54e91c[_0x93f8bd(0x61b)]};}static get[_0x2419a2(0x2af)](){return _0x181495;}static get[_0x2419a2(0x6c5)](){return _0x54e91c;}static get[_0x2419a2(0x557)](){return[..._0x1f02b1];}['_resolveFilter'](_0x2e545f){const _0x4a9804=_0x2419a2;if(!_0x2e545f||!_0x2e545f[_0x4a9804(0x61b)])return new Set(_0x54e91c);const _0x4d1c40=_0x2e545f[_0x4a9804(0x656)](_0x170182=>_0x1b14de['has'](_0x170182));return new Set(_0x4d1c40[_0x4a9804(0x61b)]?_0x4d1c40:_0x54e91c);}[_0x2419a2(0x579)](_0x67f827,_0x54ef6d){const _0x545fbd=_0x2419a2,_0x1df3cc={..._0x54ef6d,'_ts':_0x54ef6d?.[_0x545fbd(0x777)]??_0x54ef6d?.['ts']??Date[_0x545fbd(0x590)]()};this['_buffer'][_0x545fbd(0x491)]({'event':_0x67f827,'data':_0x1df3cc});if(this['_buffer'][_0x545fbd(0x61b)]>this[_0x545fbd(0x5d7)])this[_0x545fbd(0x6e4)][_0x545fbd(0x2ec)]();for(const _0x4f687d of this[_0x545fbd(0x6fa)]){if(_0x4f687d['filter'][_0x545fbd(0x764)](_0x67f827))try{_0x4f687d[_0x545fbd(0x5ab)](_0x67f827,_0x1df3cc);}catch{}}}}return okdbRelay=_0x402580,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x51370b=_0x3e8e44;if(hasRequiredLib)return lib[_0x51370b(0x7f5)];return hasRequiredLib=0x1,function(_0xa97b79){const _0xd62c37=_0x51370b,_0x257490=require$$0$6,{load:_0x3ab2d1}=require$$1$1,_0x47558a=requireBridge(),_0x14ab68=requireWritebatch(),{Pumper:_0x1afaf9}=requirePump(),{OKDBEnv:_0x1d8995,HIGH_SENTINEL:_0x5ca9f1}=requireEnv(),{reclass:_0x5c8ae0,NotImplementedNative:_0x4fd1b7,OKDBError:_0x17ed98,optionsArg:_0x45e403,invalidArgument:_0x726e5e}=requireErrors(),{notImplemented:_0x681dd3}=requireUnsupported(),{OKDBHttp:_0x58ecea}=requireHttp(),{OKDBFts:_0xd91b4}=requireFts(),{OKDBEmbeddings:_0x538298}=requireEmbeddings(),{OKDBAuth:_0x436ce1}=requireAuth(),{OKDBSync:_0x5c129c}=requireSync(),{OKDBMigrate:_0x16f02c}=requireMigrate(),{OKDBFunctions:_0x5faa42}=requireFunctions(),{OKDBMcp:_0x5d77e1}=requireMcp(),{OKDBEngines:_0x8dbbc6,OKDBPipelines:_0x54ab17}=requireEngines(),{makeMeta:_0x1887a1,makeLicenses:_0x3df61a,makeLicenseChecker:_0x564ac8,makeProcesses:_0x57a7ec}=requireSys();let _0x492990=null;function _0x552c3c(_0x2b5c24){const _0x4325e9=_0x206c;if(!_0x492990){const {Unpackr:_0x2bb805}=require$$18;_0x492990=new _0x2bb805({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x492990[_0x4325e9(0x5bb)](_0x2b5c24);}let _0x512cd8=null;function _0x6a8aff(_0x1702c1,_0x9f9542){if(!_0x512cd8){const {Unpackr:_0x1255fd}=require$$18;_0x512cd8=new _0x1255fd({'copyBuffers':!![]});}return _0x512cd8['unpack'](_0x1702c1,_0x9f9542);}const {encodeKey:_0x95adb6,KEY_BUF_SIZE:_0x33357a,NO_FAST:_0xb91724}=requireKeyenc(),_0x578d34=0x40*0x400,_0x327b93=0x4*0x400*0x400;function _0x1bb7df(_0x1123b2,_0x3f9499){const _0x113538=_0x206c,_0x3810ba=_0x1123b2[0x2],_0x1f16c9=_0x3810ba?(_0x1123b2[_0x113538(0x61b)]-0x3)/Math[_0x113538(0x518)](_0x3810ba):0x0,_0x169789=new Array(_0x1f16c9);let _0x2ca7a7=0x3;if(_0x3810ba===0x2){for(let _0x4865a0=0x0;_0x4865a0<_0x1f16c9;_0x4865a0++,_0x2ca7a7+=0x2)_0x169789[_0x4865a0]={'key':_0x1123b2[_0x2ca7a7],'value':_0x1123b2[_0x2ca7a7+0x1]};}else{if(_0x3810ba===0x3){for(let _0x2f9669=0x0;_0x2f9669<_0x1f16c9;_0x2f9669++,_0x2ca7a7+=0x3)_0x169789[_0x2f9669]={'key':_0x1123b2[_0x2ca7a7],'value':_0x1123b2[_0x2ca7a7+0x1],'version':_0x1123b2[_0x2ca7a7+0x2]};}else{if(_0x3810ba===-0x2){for(let _0x2f5939=0x0;_0x2f5939<_0x1f16c9;_0x2f5939++,_0x2ca7a7+=0x2)_0x169789[_0x2f5939]={'clock':_0x1123b2[_0x2ca7a7],..._0x1123b2[_0x2ca7a7+0x1]};}else{if(_0x3810ba===0x4){for(let _0x482994=0x0;_0x482994<_0x1f16c9;_0x482994++,_0x2ca7a7+=0x4)_0x169789[_0x482994]={'key':_0x1123b2[_0x2ca7a7],'value':_0x1123b2[_0x2ca7a7+0x1],'version':_0x1123b2[_0x2ca7a7+0x2],'indexKey':_0x1123b2[_0x2ca7a7+0x3]};}else{if(_0x1f16c9)throw new Error(_0x113538(0x7d2)+_0x3810ba);}}}}return _0x3f9499?[_0x1123b2[0x0],_0x169789,_0x1123b2[0x1]]:_0x169789;}let _0x3839e3=null;function _0x8a7aab(_0x3dfda7,_0xf92dab,_0x5c5683){const _0x1e67af=_0x206c;if(!_0x3839e3)_0x3839e3=requireDist()[_0x1e67af(0x5b8)];const _0x5db394=new DataView(_0x3dfda7[_0x1e67af(0x722)],_0x3dfda7[_0x1e67af(0x2c8)],_0xf92dab),_0x1d45d1=_0x5db394[_0x1e67af(0x192)](0x10,!![]),_0x57c275=new Array(_0x1d45d1);let _0x1f2997=0x14;for(let _0x49ba8f=0x0;_0x49ba8f<_0x1d45d1;_0x49ba8f++){const _0x33c130=_0x3dfda7[_0x1f2997]|_0x3dfda7[_0x1f2997+0x1]<<0x8;_0x1f2997+=0x2,_0x57c275[_0x49ba8f]=_0x3839e3(_0x3dfda7,_0x1f2997,_0x1f2997+_0x33c130),_0x1f2997+=_0x33c130;}return _0x5c5683?[_0x5db394[_0x1e67af(0x889)](0x0,!![]),_0x57c275,_0x5db394['getFloat64'](0x8,!![])]:_0x57c275;}const _0x5be70c=requireOkdbLogger(),_0x3e9b73=requireOkdbPlugins(),{OKDB_STATE:_0x227931,EVENTS:_0x30fd62}=requireOkdbEnums(),_0x3e5c60=requireStatics();let _0xf6f4f3=null,_0x24b050=![],_0x4a869d=0x1;const _0x4c01e5=new Map(),_0x4238f8=new Set([_0xd62c37(0x305),'EMBED_PENDING']),_0x53c1fc=_0x459731=>!!_0x459731&&_0x4238f8['has'](_0x459731['code']),_0x454ce2=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x2a1ddc(){const _0x3955d0=_0xd62c37;!_0x24b050&&(_0x308838()['setBridge'](_0x47558a['bridge']),_0x14ab68[_0x3955d0(0x1eb)](_0x308838()),_0x24b050=!![]);}function _0x308838(){if(!_0xf6f4f3)_0xf6f4f3=_0x3ab2d1();return _0xf6f4f3;}class _0x41ee64 extends Map{constructor(_0x5587ec){const _0x3853c4=_0xd62c37;super(),this[_0x3853c4(0x7c0)]=_0x5587ec;}[_0xd62c37(0x4ff)](){const _0x4691e8=_0xd62c37,_0x19d9df=this[_0x4691e8(0x7c0)];if(!_0x19d9df[_0x4691e8(0x65c)])return;let _0xb14e7c;try{_0xb14e7c=_0x19d9df[_0x4691e8(0x8ac)]('db',null,_0x4691e8(0x441),[],![]);}catch{return;}for(const _0x319e89 of _0xb14e7c)if(!super[_0x4691e8(0x764)](_0x319e89)&&_0x19d9df[_0x4691e8(0x8ac)]('db',null,'hasEnv',[_0x319e89],![]))_0x19d9df[_0x4691e8(0x5f4)](_0x319e89);}[_0xd62c37(0x212)](_0x2eb6dc){const _0x2e5caa=_0xd62c37,_0x47b349=super['get'](_0x2eb6dc);if(_0x47b349!==undefined||typeof _0x2eb6dc!=='string')return _0x47b349;const _0x107012=this[_0x2e5caa(0x7c0)];if(_0x2eb6dc===_0x2e5caa(0x6cc))return _0x107012[_0x2e5caa(0x65c)]?_0x107012['processes']['_statusEnv']??undefined:undefined;if(_0x107012[_0x2e5caa(0x65c)]&&_0x107012['_call']('db',null,_0x2e5caa(0x3e8),[_0x2eb6dc],![]))return _0x107012[_0x2e5caa(0x5f4)](_0x2eb6dc);if(_0x107012[_0x2e5caa(0x65c)]&&typeof _0x2eb6dc==='string'&&!_0x2eb6dc[_0x2e5caa(0x747)]('~')){_0x107012[_0x2e5caa(0x8ac)]('db',null,_0x2e5caa(0x866),[],![]);if(_0x107012[_0x2e5caa(0x8ac)]('db',null,_0x2e5caa(0x3e8),[_0x2eb6dc],![]))return _0x107012[_0x2e5caa(0x5f4)](_0x2eb6dc);}return undefined;}[_0xd62c37(0x764)](_0x4bf487){return this['get'](_0x4bf487)!==undefined;}get[_0xd62c37(0x7a1)](){const _0x114001=_0xd62c37;return this[_0x114001(0x4ff)](),super[_0x114001(0x7a1)];}['keys'](){const _0x1bceaf=_0xd62c37;return this[_0x1bceaf(0x4ff)](),super[_0x1bceaf(0x362)]();}[_0xd62c37(0x77f)](){const _0x3756bb=_0xd62c37;return this[_0x3756bb(0x4ff)](),super[_0x3756bb(0x77f)]();}[_0xd62c37(0x375)](){const _0x2b151d=_0xd62c37;return this[_0x2b151d(0x4ff)](),super[_0x2b151d(0x375)]();}[_0xd62c37(0x68f)](_0x59085e,_0x2bc701){const _0x79c7fa=_0xd62c37;return this[_0x79c7fa(0x4ff)](),super[_0x79c7fa(0x68f)](_0x59085e,_0x2bc701);}[Symbol['iterator']](){return this['_sync'](),super[Symbol['iterator']]();}}class _0x2e6147{constructor(_0x10f40b,_0x3103dc={}){const _0x510836=_0xd62c37,_0x765b44=_0x308838();this[_0x510836(0x7b1)]=_0x10f40b,this[_0x510836(0x63c)]=_0x4a869d++,this['_key']='db'+this[_0x510836(0x63c)],this['options']={..._0x3e5c60[_0x510836(0x453)],..._0x3103dc,'auth':_0x3103dc['auth']?{..._0x3103dc[_0x510836(0x826)]}:undefined,'lmdb':{..._0x3103dc[_0x510836(0x63a)]||{}}},this[_0x510836(0x85d)]=new _0x257490(),this[_0x510836(0x85d)][_0x510836(0x878)](0x0),this[_0x510836(0x218)]=new Set(),this['events']['on'](_0x510836(0x526),_0x5458a2=>this['_subscribeEvent'](_0x5458a2)),this[_0x510836(0x4ce)]=new _0x5be70c(this),this[_0x510836(0x4ce)]['attachConsole'](),_0x47558a[_0x510836(0x638)](this[_0x510836(0x7db)],{'_deliver':(_0x2a2b6c,_0x545118)=>this['_deliverEvent'](_0x2a2b6c,_0x545118),'_log':_0xf2867a=>{const _0x2ce2a2=_0x510836;if(this[_0x2ce2a2(0x3d5)])this['_bootLog'][_0x2ce2a2(0x491)](_0xf2867a);const _0x4ad268=_0xf2867a&&_0xf2867a[_0x2ce2a2(0x384)];if(_0x4ad268&&Object[_0x2ce2a2(0x47b)]['hasOwnProperty']['call'](this[_0x2ce2a2(0x4ce)],_0x4ad268)&&typeof this[_0x2ce2a2(0x4ce)][_0x4ad268]==='function'){const _0x1f2023=_0xf2867a['context'];return this[_0x2ce2a2(0x4ce)][_0x4ad268](_0xf2867a['msg'],{..._0xf2867a[_0x2ce2a2(0x3f1)]||{},..._0x1f2023&&typeof _0x1f2023===_0x2ce2a2(0x677)?_0x1f2023:{}});}return this[_0x2ce2a2(0x4ce)][_0x2ce2a2(0x793)](_0xf2867a);}}),_0x2a1ddc();try{const _0x17dbea={};if(typeof'true'===_0x510836(0x585)||_0x510836(0x206)!==_0x510836(0x206));const _0x3df65d={..._0x3103dc,'_clusterWorker':require(_0x510836(0x79d))[_0x510836(0x848)],..._0x17dbea};this[_0x510836(0x870)]={'instance':null,'envs':new Map()};typeof _0x3103dc[_0x510836(0x646)]===_0x510836(0x6a3)&&(this['_keyFns'][_0x510836(0x3cf)]=_0x3103dc[_0x510836(0x646)],delete _0x3df65d[_0x510836(0x646)]);if(_0x3103dc[_0x510836(0x203)]&&typeof _0x3103dc[_0x510836(0x203)]===_0x510836(0x677)){for(const [_0x3f8a96,_0x54a6e8]of Object[_0x510836(0x375)](_0x3103dc[_0x510836(0x203)]))this[_0x510836(0x870)][_0x510836(0x274)]['set'](_0x3f8a96,_0x54a6e8);}delete _0x3df65d['encryptionKeys'],this[_0x510836(0x4aa)]=new _0x765b44['Native'](_0x10f40b,_0x3df65d,this[_0x510836(0x7db)]);}catch(_0x152b78){_0x47558a[_0x510836(0x4c8)](this[_0x510836(0x7db)]);throw _0x5c8ae0(_0x152b78);}this[_0x510836(0x5ef)]=_0x227931['CREATED'],this[_0x510836(0x65c)]=![],this[_0x510836(0x554)]=new _0x41ee64(this),this[_0x510836(0x841)]=new _0x1afaf9({'pump':()=>this[_0x510836(0x4aa)]['pump']()}),this[_0x510836(0x359)]=new _0x14ab68[(_0x510836(0x2c5))](this),this[_0x510836(0x841)][_0x510836(0x3b6)]=()=>_0x47558a[_0x510836(0x51d)](),_0x47558a['setKick'](()=>this['_pumper'][_0x510836(0x3b8)](),this),_0x4c01e5[_0x510836(0x280)](this['_uid'],this),this[_0x510836(0x352)]={},_0x47558a[_0x510836(0x428)](this),this[_0x510836(0x71f)]=new _0xd91b4(this),this['embeddings']=new _0x538298(this),this[_0x510836(0x873)]=new _0x8dbbc6(this,null,null),this[_0x510836(0x5a0)]=new _0x54ab17(this,null),this[_0x510836(0x3f1)]=_0x1887a1(this),this[_0x510836(0x3b2)]=_0x3df61a(this),this[_0x510836(0x2c9)]=_0x564ac8(this),this[_0x510836(0x315)]=_0x57a7ec(this),this[_0x510836(0x2a2)]=_0x19b92b(this),this['plugins']=new _0x3e9b73(this),this[_0x510836(0x64b)]=new _0x58ecea(this),this[_0x510836(0x3e7)]=new _0x5c129c(this),this[_0x510836(0x826)]=new _0x436ce1(this),this['functions']=new _0x5faa42(this,null),this[_0x510836(0x59e)]=new _0x5d77e1(this),this[_0x510836(0x6b1)]=_0x3103dc&&_0x3103dc[_0x510836(0x6b1)]===![]?null:_0x681dd3('admin'),this[_0x510836(0x73b)]=_0x681dd3(_0x510836(0x73b)),this['migrate']=new _0x16f02c(this);}[_0xd62c37(0x8ac)](_0x38f83a,_0x178dbc,_0xb728b2,_0x237e50,_0x458277=!![]){const _0x427cf=_0xd62c37;if(_0x458277&&this['_wb']&&this[_0x427cf(0x359)][_0x427cf(0x2bf)][_0x427cf(0x61b)])this[_0x427cf(0x359)][_0x427cf(0x3b9)]();try{return this[_0x427cf(0x4aa)][_0x427cf(0x4e9)](_0x38f83a,_0x178dbc,_0xb728b2,_0x237e50);}catch(_0x3e97f7){throw _0x5c8ae0(_0x3e97f7);}finally{if(_0x458277)this['_pumper']['wake']();}}[_0xd62c37(0x3f8)](_0x260226,_0x1e5ad5,_0x356232,_0x454925){const _0x4e23d2=_0xd62c37;let _0x2c2ee6;try{_0x2c2ee6=this[_0x4e23d2(0x4aa)][_0x4e23d2(0x56a)](_0x260226,_0x1e5ad5,_0x356232,_0x454925);}catch(_0x431e8b){throw _0x5c8ae0(_0x431e8b);}return _0x2c2ee6 instanceof Uint8Array?_0x552c3c(_0x2c2ee6):_0x2c2ee6[0x0];}[_0xd62c37(0x2e8)](_0x26c7c2){const _0x13f4b4=_0xd62c37;let _0x589cf6=this['_rbuf'];if(_0x589cf6&&_0x26c7c2<=_0x589cf6[_0x13f4b4(0x61b)])return _0x589cf6;let _0x47cdef=_0x589cf6?_0x589cf6[_0x13f4b4(0x61b)]:_0x578d34;while(_0x47cdef<_0x26c7c2)_0x47cdef*=0x2;if(_0x47cdef>_0x327b93)return _0x589cf6;return _0x589cf6=this[_0x13f4b4(0x6ff)]=Buffer[_0x13f4b4(0x731)](_0x47cdef),this[_0x13f4b4(0x4aa)][_0x13f4b4(0x24b)](_0x589cf6),_0x589cf6;}[_0xd62c37(0x5e4)](_0x56e3c7,_0x1c32de,_0x1631b4){const _0x49021d=_0xd62c37;if(!this[_0x49021d(0x6ff)])this[_0x49021d(0x2e8)](0x0);const _0x2b0c91=this[_0x49021d(0x4aa)][_0x49021d(0x3ea)](_0x56e3c7,_0x1c32de,_0x1631b4);if(typeof _0x2b0c91==='number')return _0x6a8aff(this[_0x49021d(0x6ff)],_0x2b0c91);if(_0x2b0c91===undefined||_0x2b0c91===null)return _0x2b0c91;return this[_0x49021d(0x2e8)](_0x2b0c91['length']),_0x6a8aff(_0x2b0c91);}[_0xd62c37(0x50e)](_0x5213d0,_0x525cb6,_0x5f16f4){const _0x29eda2=_0xd62c37;let _0x257827=this[_0x29eda2(0x23a)];if(!_0x257827){_0x257827=this['_kbuf']=Buffer['allocUnsafeSlow'](_0x33357a),this[_0x29eda2(0x4aa)][_0x29eda2(0x43c)](_0x257827),this[_0x29eda2(0x50d)]=new Map();if(!this['_rbuf'])this[_0x29eda2(0x2e8)](0x0);}const _0x194568=_0x95adb6(_0x5f16f4,_0x257827);if(_0x194568<0x0)return _0xb91724;let _0x325cc3=this[_0x29eda2(0x50d)][_0x29eda2(0x212)](_0x5213d0);if(_0x325cc3===undefined)this[_0x29eda2(0x50d)][_0x29eda2(0x280)](_0x5213d0,_0x325cc3=new Map());let _0xbf9668=_0x325cc3[_0x29eda2(0x212)](_0x525cb6);if(_0xbf9668===undefined)_0x325cc3['set'](_0x525cb6,_0xbf9668=this[_0x29eda2(0x4aa)][_0x29eda2(0x537)](_0x5213d0,_0x525cb6));if(_0xbf9668<0x0)return _0xb91724;const _0xe37518=this[_0x29eda2(0x4aa)][_0x29eda2(0x219)](_0xbf9668,_0x194568);if(typeof _0xe37518==='number')return _0x6a8aff(this[_0x29eda2(0x6ff)],_0xe37518);if(_0xe37518===undefined||_0xe37518===null)return _0xe37518;return this['_readBuf'](_0xe37518[_0x29eda2(0x61b)]),_0x6a8aff(_0xe37518);}[_0xd62c37(0x42d)](_0x230172,_0x2a5abe,_0xa459b0){const _0x1fc4f4=_0xd62c37;if(!this[_0x1fc4f4(0x6ff)])this[_0x1fc4f4(0x2e8)](0x0);let _0x9e25f6;try{_0x9e25f6=this['_native']['callRows'](_0x230172,_0x2a5abe,_0xa459b0);}catch(_0x1bd835){throw _0x5c8ae0(_0x1bd835);}const _0x294df2=_0x2a5abe===_0x1fc4f4(0x61c),_0x5135c5=_0x294df2?_0xa459b0[0x1]:_0x2a5abe;let _0x47cddb=this[_0x1fc4f4(0x6ff)],_0x56a5ed=_0x9e25f6;if(_0x9e25f6 instanceof Uint8Array)this[_0x1fc4f4(0x2e8)](_0x9e25f6[_0x1fc4f4(0x61b)]),_0x47cddb=_0x9e25f6,_0x56a5ed=_0x9e25f6[_0x1fc4f4(0x61b)];else{if(typeof _0x9e25f6!=='number')return _0x9e25f6[0x0];}if(_0x5135c5===_0x1fc4f4(0x6e7))return _0x8a7aab(_0x47cddb,_0x56a5ed,_0x294df2);if(_0x5135c5===_0x1fc4f4(0x312))return _0x6a8aff(_0x47cddb,_0x56a5ed);return _0x1bb7df(_0x6a8aff(_0x47cddb,_0x56a5ed),_0x294df2);}[_0xd62c37(0x65f)](_0x20897e,_0x36af89,_0x259814,_0x3a2bbd,_0x3aafb4=!![],_0x535c32=!![]){const _0x5217d1=_0xd62c37,_0x3a5a85=()=>this[_0x5217d1(0x19f)](()=>this[_0x5217d1(0x8ac)](_0x20897e,_0x36af89,_0x259814,_0x3a2bbd,_0x3aafb4));if(!_0x535c32)return _0x3a5a85();return this['_retryPending'](_0x3a5a85);}['_retryPending'](_0x4975f1){const _0x1bfce2=_0xd62c37;return _0x4975f1()[_0x1bfce2(0x7c4)](async _0x3a11d7=>{const _0x36ca92=_0x1bfce2;if(!_0x53c1fc(_0x3a11d7))throw _0x3a11d7;const _0x4bc5dc=Date[_0x36ca92(0x590)]()+_0x454ce2;let _0x1a7977=0x1;while(_0x53c1fc(_0x3a11d7)&&Date[_0x36ca92(0x590)]()<_0x4bc5dc){await new Promise(_0x541985=>setTimeout(_0x541985,_0x1a7977)),_0x1a7977=Math[_0x36ca92(0x3bb)](_0x1a7977*0x2,0x14);try{return await _0x4975f1();}catch(_0x5a59fc){_0x3a11d7=_0x5a59fc;}}throw _0x3a11d7;});}[_0xd62c37(0x386)](_0xd1f288){const _0x3c5fbd=_0xd62c37;if(_0x47558a[_0x3c5fbd(0x55a)]())return Promise[_0x3c5fbd(0x3e4)](_0xd1f288);return new Promise(_0xe8164b=>setImmediate(()=>_0xe8164b(_0xd1f288)));}[_0xd62c37(0x431)](_0x41cd05){const _0x4de9c8=_0xd62c37;if(_0x47558a[_0x4de9c8(0x55a)]())return Promise[_0x4de9c8(0x3e4)](_0x41cd05);return this['_afterDurable']()['then'](()=>_0x41cd05);}[_0xd62c37(0x87d)](){return new Promise(_0x1ca9db=>setImmediate(()=>{const _0x583668=_0x206c;let _0x3c77f1;try{_0x3c77f1=this[_0x583668(0x4aa)]['flushTicket']();}catch{return _0x1ca9db();}_0x14ab68[_0x583668(0x24a)](_0x3c77f1,_0x1ca9db);}));}[_0xd62c37(0x19f)](_0x1c26bf){return new Promise((_0x186d42,_0x1020f0)=>setImmediate(()=>{try{_0x186d42(_0x1c26bf());}catch(_0xd48cf8){_0x1020f0(_0xd48cf8);}}));}[_0xd62c37(0x771)](_0x3715ed,_0x26535d,_0x5828f1){return _0x19891c(_0x3715ed,_0x26535d,_0x5828f1);}[_0xd62c37(0x783)](_0x2df5b9){const _0x487bc3=_0xd62c37;if(typeof _0x2df5b9!=='string'||this['_subscribed'][_0x487bc3(0x764)](_0x2df5b9)||_0x2df5b9===_0x487bc3(0x526)||_0x2df5b9===_0x487bc3(0x413))return;this[_0x487bc3(0x218)]['add'](_0x2df5b9);try{this[_0x487bc3(0x4aa)][_0x487bc3(0x4e9)](_0x487bc3(0x85d),null,_0x487bc3(0x6c0),[this[_0x487bc3(0x7db)],_0x2df5b9]);}catch{}}['_deliverEvent'](_0x5a7b0d,_0x9f3243){const _0x4ba768=_0xd62c37;this['events'][_0x4ba768(0x749)](_0x5a7b0d,_0x9f3243);}async[_0xd62c37(0x40a)](){const _0x14e01b=_0xd62c37,_0x376cb4=this[_0x14e01b(0x870)];if(_0x376cb4[_0x14e01b(0x3cf)])this['_setKey'](null,await _0x376cb4['instance'](null),!![]);for(const [_0x1cc5b3,_0x1ba9b0]of _0x376cb4['envs'])this[_0x14e01b(0x2d0)](_0x1cc5b3,typeof _0x1ba9b0===_0x14e01b(0x6a3)?await _0x1ba9b0(_0x1cc5b3):_0x1ba9b0,typeof _0x1ba9b0===_0x14e01b(0x6a3));(_0x376cb4['instance']||[..._0x376cb4[_0x14e01b(0x274)][_0x14e01b(0x77f)]()][_0x14e01b(0x1f7)](_0x270164=>typeof _0x270164===_0x14e01b(0x6a3)))&&!this[_0x14e01b(0x22e)]&&(this[_0x14e01b(0x22e)]=_0x4b2c81=>{const _0x2d4d5b=_0x14e01b,_0x549ed0=_0x4b2c81&&_0x4b2c81[_0x2d4d5b(0x2a8)]!=null?_0x4b2c81['env']:null,_0x9946c1=_0x549ed0==null?_0x376cb4['instance']:_0x376cb4[_0x2d4d5b(0x274)][_0x2d4d5b(0x212)](_0x549ed0);if(typeof _0x9946c1!==_0x2d4d5b(0x6a3))return;Promise[_0x2d4d5b(0x3e4)]()[_0x2d4d5b(0x8b4)](()=>_0x9946c1(_0x549ed0))['then'](_0xb251dd=>this[_0x2d4d5b(0x2d0)](_0x549ed0,_0xb251dd,!![]))['catch'](_0x1c7e8c=>this['log'][_0x2d4d5b(0x5cc)](_0x2d4d5b(0x4a7)+(_0x1c7e8c&&_0x1c7e8c[_0x2d4d5b(0x412)]),{'env':_0x549ed0}));},this[_0x14e01b(0x85d)]['on'](_0x14e01b(0x811),this[_0x14e01b(0x22e)]));}[_0xd62c37(0x2d0)](_0x4df08d,_0x144a82,_0x5b5f4d){const _0x24b64b=_0xd62c37;if(_0x144a82==null)throw new _0x17ed98('encryption\x20key\x20function'+(_0x4df08d?'\x20of\x20env\x20\x22'+_0x4df08d+'\x22':'')+_0x24b64b(0x696),_0x24b64b(0x6d2));this[_0x24b64b(0x4aa)][_0x24b64b(0x4e9)]('db',null,_0x24b64b(0x89f),[_0x4df08d,_0x144a82,!!_0x5b5f4d]);}async[_0xd62c37(0x5c1)](_0x5e05db){const _0x30c529=_0xd62c37;this[_0x30c529(0x300)]();const {env:env=null,to:_0x46dc36}=_0x45e403(_0x5e05db),_0x2c60c5=typeof _0x46dc36===_0x30c529(0x6a3),_0x34645c=_0x2c60c5?await _0x46dc36(env):_0x46dc36;if(_0x34645c==null)throw _0x726e5e(_0x30c529(0x341),_0x30c529(0x52f),_0x34645c);const _0x184b1c=this[_0x30c529(0x8ac)]('db',null,'changeEncryptionKey',[env,_0x34645c,_0x2c60c5]);if(_0x2c60c5){if(env==null)this[_0x30c529(0x870)][_0x30c529(0x3cf)]=_0x46dc36;else this[_0x30c529(0x870)][_0x30c529(0x274)][_0x30c529(0x280)](env,_0x46dc36);}return _0x184b1c;}async[_0xd62c37(0x4c1)](_0x4286a6){const _0x55aabf=_0xd62c37;this[_0x55aabf(0x300)]();const _0x581d4b=_0x45e403(_0x4286a6);if(!_0x581d4b[_0x55aabf(0x2a8)])throw _0x726e5e(_0x55aabf(0x291),'an\x20environment\x20name',_0x581d4b[_0x55aabf(0x2a8)]);let _0x366496=_0x581d4b['to'];const _0xb39767=typeof _0x366496==='function';if(_0xb39767)_0x366496=await _0x581d4b['to'](_0x581d4b[_0x55aabf(0x2a8)]);const _0x422d1d=await this['_macro'](()=>this[_0x55aabf(0x8ac)]('db',null,_0x55aabf(0x4c1),[_0x581d4b[_0x55aabf(0x2a8)],'to'in _0x581d4b?_0x366496:undefined,_0xb39767]));if(_0xb39767)this[_0x55aabf(0x870)][_0x55aabf(0x274)][_0x55aabf(0x280)](_0x581d4b[_0x55aabf(0x2a8)],_0x581d4b['to']);return _0x422d1d;}async['open'](){const _0x218536=_0xd62c37;if(this[_0x218536(0x5ef)]===_0x227931[_0x218536(0x748)])return;if(this[_0x218536(0x5ef)]!==_0x227931[_0x218536(0x3ba)])throw new _0x17ed98('Database\x20already\x20opened/closed',_0x218536(0x30e),{'state':this['state']});this[_0x218536(0x5ef)]=_0x227931[_0x218536(0x3d9)],this[_0x218536(0x3d5)]=[];try{try{await this['_resolveKeys'](),await this[_0x218536(0x19f)](()=>this['_native'][_0x218536(0x703)]());}catch(_0x20f451){throw _0x5c8ae0(_0x20f451);}}catch(_0x4cfbad){this[_0x218536(0x5ef)]=_0x227931[_0x218536(0x3de)],this['_bootLog']=null,this[_0x218536(0x242)]();throw _0x4cfbad;}this[_0x218536(0x65c)]=!![],this[_0x218536(0x5ef)]=_0x227931[_0x218536(0x748)];try{this['_call']('db',null,_0x218536(0x2e0),[this[_0x218536(0x67f)]['_plugins']['map'](_0x55fd7a=>_0x55fd7a['module']?.[_0x218536(0x781)])[_0x218536(0x656)](Boolean)],![]),await this[_0x218536(0x67f)][_0x218536(0x40c)]();}catch(_0x319f32){this[_0x218536(0x5ef)]=_0x227931[_0x218536(0x659)];try{this[_0x218536(0x4aa)]['close']();}catch{}this[_0x218536(0x5ef)]=_0x227931[_0x218536(0x3de)],this[_0x218536(0x65c)]=![],this[_0x218536(0x242)]();throw _0x319f32;}for(const _0x50bbec of this['_call']('db',null,_0x218536(0x441),[],![]))if(!_0x50bbec[_0x218536(0x747)]('~'))this[_0x218536(0x5f4)](_0x50bbec);try{if(this[_0x218536(0x8ac)]('db',null,_0x218536(0x3e8),[_0x218536(0x48c)],![])){this[_0x218536(0x6b8)]=this[_0x218536(0x5f4)]('~log');const _0x411526=new Set(this['log']['_sinks']);this[_0x218536(0x1a8)]=this[_0x218536(0x4ce)][_0x218536(0x615)](this['_logEnv'],this['id']);const _0x4572b7=[...this[_0x218536(0x4ce)][_0x218536(0x697)]]['find'](_0x81794c=>!_0x411526[_0x218536(0x764)](_0x81794c)),_0x56e4ac=this[_0x218536(0x8ac)]('db',null,'bootLogMark',[],![]);for(const _0x15d9c6 of(this[_0x218536(0x3d5)]??[])[_0x218536(0x8b5)](_0x56e4ac))_0x4572b7?.(_0x15d9c6);}}catch{}this[_0x218536(0x3d5)]=null,this[_0x218536(0x4aa)][_0x218536(0x5a8)](()=>this[_0x218536(0x841)]['wake']()),this['_pumper'][_0x218536(0x40c)]();}async[_0xd62c37(0x73a)](){const _0x154928=_0xd62c37;return this[_0x154928(0x65f)]('db',null,_0x154928(0x336),[]);}async['close'](){const _0x16247e=_0xd62c37;if(this['state']===_0x227931[_0x16247e(0x3de)])return;if(this[_0x16247e(0x5ef)]!==_0x227931['STARTED'])throw new _0x17ed98(_0x16247e(0x53f),'INVALID_STATE',{'state':this[_0x16247e(0x5ef)]});this['state']=_0x227931[_0x16247e(0x659)],this['_isOpen']=![];let _0x532ce2=null;if(this['http'][_0x16247e(0x393)][_0x16247e(0x61b)])try{await this[_0x16247e(0x64b)]['close']();}catch(_0x1556dd){_0x532ce2=_0x1556dd;}if(this[_0x16247e(0x61f)]){try{this[_0x16247e(0x61f)][_0x16247e(0x2c4)](),this[_0x16247e(0x61f)][_0x16247e(0x55b)]();}catch{}this[_0x16247e(0x61f)]=null;}try{this[_0x16247e(0x3c8)]?.[_0x16247e(0x8a0)]?.();}catch{}try{await this[_0x16247e(0x67f)][_0x16247e(0x8a0)]();}catch(_0x4a56fd){_0x532ce2=_0x4a56fd;}for(const _0x3cf98a of[...Map[_0x16247e(0x47b)]['values'][_0x16247e(0x4e9)](this[_0x16247e(0x554)])]){try{await _0x3cf98a[_0x16247e(0x726)][_0x16247e(0x2fd)]();}catch{}try{await _0x3cf98a['engines'][_0x16247e(0x8a0)]();}catch{}}for(const _0x15269d of[()=>this[_0x16247e(0x3e7)][_0x16247e(0x8a0)](),()=>this[_0x16247e(0x378)]['stop'](),()=>this[_0x16247e(0x71f)]&&this[_0x16247e(0x71f)][_0x16247e(0x8a0)]?.()]){try{await _0x15269d();}catch{}}const _0x5b7538=this[_0x16247e(0x5f0)][_0x16247e(0x616)]??0x7530,_0x16f2d8=[];for(const _0x1f9091 of[...Map[_0x16247e(0x47b)][_0x16247e(0x77f)]['call'](this[_0x16247e(0x554)])]){if(_0x1f9091[_0x16247e(0x2bf)]?.[_0x16247e(0x340)]?.['size']>0x0)_0x16f2d8[_0x16247e(0x491)](_0x1f9091[_0x16247e(0x2bf)][_0x16247e(0x2fd)](_0x5b7538));}if(_0x16f2d8[_0x16247e(0x61b)]>0x0)await Promise['allSettled'](_0x16f2d8);try{this[_0x16247e(0x1a8)]?.();}catch{}this['_detachLogSink']=null;try{await this[_0x16247e(0x359)][_0x16247e(0x674)]();}catch{}this['_pumper']['stop']();try{await this[_0x16247e(0x19f)](()=>this[_0x16247e(0x4aa)][_0x16247e(0x31a)]());}catch(_0x32080a){_0x532ce2=_0x532ce2||_0x5c8ae0(_0x32080a);}this['state']=_0x227931[_0x16247e(0x3de)],this[_0x16247e(0x242)](),Map[_0x16247e(0x47b)][_0x16247e(0x6f6)]['call'](this[_0x16247e(0x554)]);if(_0x532ce2)throw _0x532ce2;}[_0xd62c37(0x242)](){const _0x272ffe=_0xd62c37;this[_0x272ffe(0x841)][_0x272ffe(0x8a0)]();try{this[_0x272ffe(0x4aa)][_0x272ffe(0x5a8)](null);}catch{}try{this[_0x272ffe(0x4aa)][_0x272ffe(0x6a2)]();}catch{}this[_0x272ffe(0x6ff)]=null,this[_0x272ffe(0x23a)]=null,this['_tids']=null,_0x47558a[_0x272ffe(0x4c8)](this[_0x272ffe(0x7db)]),_0x47558a[_0x272ffe(0x2f7)](this),_0x4c01e5['delete'](this[_0x272ffe(0x63c)]);if(_0x47558a[_0x272ffe(0x290)](this)){const _0x1e4d33=[..._0x4c01e5[_0x272ffe(0x77f)]()][_0x272ffe(0x333)]();if(_0x1e4d33)_0x47558a[_0x272ffe(0x19a)](()=>_0x1e4d33['_pumper'][_0x272ffe(0x3b8)](),_0x1e4d33);else _0x47558a[_0x272ffe(0x19a)](()=>{},null);}}get['id'](){const _0x3cff4a=_0xd62c37;return this[_0x3cff4a(0x8ac)]('db',null,'id',[],![]);}['_advanceHlcOnRecv'](_0x111d27){const _0x204d6d=_0xd62c37;return this[_0x204d6d(0x2a8)](_0x204d6d(0x608))['_advanceHlcOnRecv'](_0x111d27);}get[_0xd62c37(0x51a)](){const _0x3111fc=_0xd62c37;return this[_0x3111fc(0x713)][_0x3111fc(0x212)](_0x3111fc(0x44f));}get[_0xd62c37(0x22d)](){return this['sync']['_nodePrivateKey'];}get[_0xd62c37(0x6c4)](){const _0x1ae6dd=_0xd62c37;return this[_0x1ae6dd(0x3e7)][_0x1ae6dd(0x6c4)];}get['_subsV2'](){const _0x1b3710=_0xd62c37;if(!this['_isOpen']||!this[_0x1b3710(0x8ac)]('db',null,_0x1b3710(0x2d9),[],![]))return undefined;if(!this[_0x1b3710(0x708)]){const _0xc5dd77=requireOkdbSubscriptionsStore(),_0x4cd335=new _0xc5dd77(this,this[_0x1b3710(0x5f0)]&&this[_0x1b3710(0x5f0)][_0x1b3710(0x7e8)]);_0x4cd335[_0x1b3710(0x354)]=this['env'](_0x1b3710(0x548));const {compileFilter:_0x596a89}=requireOkdbQueryFilter(),_0x194781=(_0x4ec6e0,_0x33152e)=>{if(_0x4ec6e0==null)return![];try{return _0x596a89(_0x4ec6e0)(_0x33152e);}catch{return![];}};this[_0x1b3710(0x708)]={'store':_0x4cd335,'router':{'_matches':_0x194781}};}return this[_0x1b3710(0x708)];}get[_0xd62c37(0x317)](){const _0x5405c2=_0xd62c37;return this[_0x5405c2(0x238)];}get[_0xd62c37(0x4c7)](){const _0x4e5fd5=_0xd62c37;return this['_call']('db',null,_0x4e5fd5(0x4c7),[],![]);}get['role'](){const _0x56abee=_0xd62c37;return{...this[_0x56abee(0x8ac)]('db',null,_0x56abee(0x238),[],![])};}get[_0xd62c37(0x445)](){const _0x57b637=_0xd62c37;return require$$29[_0x57b637(0x445)];}get['quarantinedEnvs'](){const _0x119512=_0xd62c37;return this[_0x119512(0x8ac)]('db',null,'quarantined',[],![]);}get[_0xd62c37(0x3ce)](){const _0x10b32b=_0xd62c37;return this[_0x10b32b(0x8ac)]('db',null,'info',[],![]);}[_0xd62c37(0x7a4)](){const _0x43a391=_0xd62c37;return this[_0x43a391(0x8ac)]('db',null,_0x43a391(0x48a),[],![]);}[_0xd62c37(0x293)](){const _0xc165d9=_0xd62c37;return this[_0xc165d9(0x8ac)]('db',null,_0xc165d9(0x293),[],![]);}async[_0xd62c37(0x847)](_0x2e3ed6){const _0x3cf8be=_0xd62c37;this['_assertOpen'](),this[_0x3cf8be(0x8ac)]('db',null,_0x3cf8be(0x847),[_0x2e3ed6],![]);}[_0xd62c37(0x390)](){const _0x1fec5=_0xd62c37,_0x49f86c=Date[_0x1fec5(0x590)]();if(this[_0x1fec5(0x5d6)]&&_0x49f86c-this[_0x1fec5(0x5d6)]['at']<0xfa)return this[_0x1fec5(0x5d6)][_0x1fec5(0x37e)];const _0x18cf42=this[_0x1fec5(0x8ac)]('db',null,'pressure',[],![]);return this[_0x1fec5(0x5d6)]={'at':_0x49f86c,'value':_0x18cf42},_0x18cf42;}['_assertOpen'](){const _0x42629e=_0xd62c37;if(!this[_0x42629e(0x65c)])throw new _0x17ed98('Database\x20not\x20started',_0x42629e(0x30e),{'state':this[_0x42629e(0x5ef)]});}get[_0xd62c37(0x42c)](){const _0x3d360a=_0xd62c37;if(this[_0x3d360a(0x5ef)]===_0x227931[_0x3d360a(0x3de)]||!this[_0x3d360a(0x65c)])return null;if(this[_0x3d360a(0x8ac)]('db',null,_0x3d360a(0x705),[],![])==null)return null;if(!this['_busFacade']){const _0x49f212=this;this[_0x3d360a(0x2d8)]={get 'state'(){const _0x50f555=_0x3d360a;return _0x49f212[_0x50f555(0x8ac)]('db',null,_0x50f555(0x705),[],![]);},get 'magic'(){const _0x5649d5=_0x3d360a;return Buffer['from'](_0x5649d5(0x389)+_0x49f212['id']);},get 'isRunning'(){const _0x2ea9d1=_0x3d360a;return _0x49f212['_call']('db',null,_0x2ea9d1(0x705),[],![])==='started';},'emit'(_0x56c1b7,_0x354edd=''){const _0x176866=_0x3d360a;_0x49f212[_0x176866(0x8ac)]('db',null,_0x176866(0x5d0),[_0x56c1b7,String(_0x354edd)],![]);}};}return this[_0x3d360a(0x2d8)];}[_0xd62c37(0x1ed)](_0x3ee4f2,_0xa1e5ed){const _0x515bec=_0xd62c37;this[_0x515bec(0x42c)]?.[_0x515bec(0x749)](_0x515bec(0x1be),JSON[_0x515bec(0x739)]({'kind':_0x515bec(0x7b8),'scope':_0x3ee4f2,'key':_0xa1e5ed}));}get[_0xd62c37(0x5ae)](){const _0x365499=_0xd62c37;return this[_0x365499(0x522)]||(this['_locks']=new(requireLock())[(_0x365499(0x72a))](this,'~system','system'));}get[_0xd62c37(0x713)](){const _0x179bc6=_0xd62c37;return this[_0x179bc6(0x61a)]?this[_0x179bc6(0x61a)]['db']:undefined;}get[_0xd62c37(0x780)](){const _0xc67b09=_0xd62c37,_0x329e21=this['_systemEnv']?.[_0xc67b09(0x726)];if(!_0x329e21)return null;const _0x4aecfc=_0x329e21[_0xc67b09(0x41d)]()[_0xc67b09(0x574)](_0x45aabb=>_0x45aabb[_0xc67b09(0x3f1)]?.[_0xc67b09(0x781)]==='system:env-sync');return _0x4aecfc?_0x329e21[_0xc67b09(0x47f)](_0x4aecfc['id'],_0x4aecfc[_0xc67b09(0x46b)]):null;}get[_0xd62c37(0x61a)](){const _0x33c52f=_0xd62c37;return this['_isOpen']?this[_0x33c52f(0x554)][_0x33c52f(0x212)](_0x33c52f(0x1a3)):undefined;}['_ensureEnv'](_0x10fe18){const _0x4e978c=_0xd62c37;let _0x3f0022=Map[_0x4e978c(0x47b)]['get']['call'](this[_0x4e978c(0x554)],_0x10fe18);if(!_0x3f0022){_0x3f0022=new _0x1d8995(this,_0x10fe18),Map[_0x4e978c(0x47b)][_0x4e978c(0x280)][_0x4e978c(0x4e9)](this[_0x4e978c(0x554)],_0x10fe18,_0x3f0022);if(_0x10fe18===_0x4e978c(0x608))this['_defaultEnvObj']=_0x3f0022;}return _0x3f0022;}['env'](_0x3d6ea8=_0xd62c37(0x608)){const _0x1176b0=_0xd62c37,_0x3efe3d=this['_envs'][_0x1176b0(0x212)](_0x3d6ea8);if(_0x3efe3d)return _0x3efe3d;if(this[_0x1176b0(0x65c)]&&this[_0x1176b0(0x8ac)]('db',null,_0x1176b0(0x3e8),[_0x3d6ea8],![]))return this[_0x1176b0(0x5f4)](_0x3d6ea8);throw new _0x17ed98(_0x1176b0(0x1e7)+_0x3d6ea8+_0x1176b0(0x4fe),'ENV_NOT_FOUND');}get['default'](){const _0x3888f4=_0xd62c37;return this[_0x3888f4(0x2a8)](_0x3888f4(0x608));}get[_0xd62c37(0x559)](){const _0x490054=_0xd62c37;return this[_0x490054(0x554)][_0x490054(0x212)]('default')??this[_0x490054(0x21d)];}get[_0xd62c37(0x32c)](){const _0x13bf25=_0xd62c37;return this[_0x13bf25(0x559)]['files'];}get['queue'](){const _0x4e36e7=_0xd62c37;return this[_0x4e36e7(0x559)][_0x4e36e7(0x2bf)];}[_0xd62c37(0x1fd)](_0x51c31f){const _0x31da9b=_0xd62c37;if(!this['_isOpen'])return null;return this[_0x31da9b(0x8ac)]('db',null,_0x31da9b(0x59a),[_0x51c31f],![])?{'ref'(){},'unref'(){}}:null;}get['_readerCheckInterval'](){return this['_timerHandle']('readerCheck');}['_reconcileDesired'](){const _0x3a8672=_0xd62c37;return this[_0x3a8672(0x8ac)]('db',null,'reconcileDesired',[],!![]);}get[_0xd62c37(0x523)](){const _0x11c03b=_0xd62c37;return this['_timerHandle'](_0x11c03b(0x869));}get[_0xd62c37(0x84e)](){const _0x5384a9=_0xd62c37;return this[_0x5384a9(0x1fd)](_0x5384a9(0x7aa));}get[_0xd62c37(0x817)](){const _0x50509b=_0xd62c37;return this['env'](_0x50509b(0x608))[_0x50509b(0x817)];}get[_0xd62c37(0x6b3)](){const _0x16b9db=_0xd62c37;throw new _0x17ed98(_0x16b9db(0x391),'WORKERS_REMOVED');}get[_0xd62c37(0x726)](){const _0x4e6b55=_0xd62c37;return this['_defaultEnv'][_0x4e6b55(0x726)];}get[_0xd62c37(0x334)](){const _0x18d88d=_0xd62c37;return this['_defaultEnv'][_0x18d88d(0x334)];}async[_0xd62c37(0x704)](_0x74fdc2,_0x477d11={}){const _0x38e36a=_0xd62c37;this[_0x38e36a(0x300)]();if(_0x477d11&&typeof _0x477d11['encryptionKey']==='function'){const _0x2f3a34=_0x477d11[_0x38e36a(0x646)];this[_0x38e36a(0x2d0)](_0x74fdc2,await _0x2f3a34(_0x74fdc2),!![]),this['_keyFns'][_0x38e36a(0x274)]['set'](_0x74fdc2,_0x2f3a34),_0x477d11={..._0x477d11,'encryptionKey':!![]};}return this[_0x38e36a(0x8ac)]('db',null,_0x38e36a(0x704),[_0x74fdc2,_0x477d11]),this['_ensureEnv'](_0x74fdc2);}async['openEnv'](_0x2a84ee){const _0x1f9010=_0xd62c37;if(!this[_0x1f9010(0x65c)])throw new _0x17ed98(_0x1f9010(0x2a9)+_0x2a84ee+'\x22)\x20before\x20open()',_0x1f9010(0x30e));return this['_call']('db',null,_0x1f9010(0x1bb),[_0x2a84ee]),this['_ensureEnv'](_0x2a84ee);}get[_0xd62c37(0x3a6)](){const _0x3db6ab=_0xd62c37;if(!this[_0x3db6ab(0x61f)]&&this[_0x3db6ab(0x65c)]){const _0x205c12=requireOkdbRelay(),_0x3491fb=new _0x205c12(this,this[_0x3db6ab(0x5f0)]?.[_0x3db6ab(0x6b1)]?.['relay']??{});_0x3491fb[_0x3db6ab(0x7b4)](),_0x3491fb['_okdbAdminAttached']=!![],this[_0x3db6ab(0x61f)]=_0x3491fb;}return this[_0x3db6ab(0x61f)]??null;}set[_0xd62c37(0x3a6)](_0x45c95f){const _0xbd6718=_0xd62c37;this[_0xbd6718(0x61f)]=_0x45c95f;}get[_0xd62c37(0x1dc)](){const _0x28d01e=_0xd62c37;let _0x5dc82a=0x0;if(this[_0x28d01e(0x65c)])for(const [_0x1109fd]of Map['prototype'][_0x28d01e(0x375)][_0x28d01e(0x4e9)](this[_0x28d01e(0x554)])){try{_0x5dc82a+=this[_0x28d01e(0x8ac)](_0x28d01e(0x204),_0x1109fd,_0x28d01e(0x685),[],![])||0x0;}catch{}}return{'total':_0x5dc82a,'maxObserved':_0x5dc82a>0x0?0x1:0x0,'inFlight':0x0};}async['_openEnvLazy'](_0x47a60){const _0x2e6aa1=_0xd62c37,_0x350528=this[_0x2e6aa1(0x554)][_0x2e6aa1(0x212)](_0x47a60);if(_0x350528)return _0x350528;if(!this[_0x2e6aa1(0x8ac)]('db',null,_0x2e6aa1(0x3e8),[_0x47a60],![]))throw new Error(_0x2e6aa1(0x7fc)+_0x47a60+'\x22\x20not\x20found\x20in\x20~envs');return this[_0x2e6aa1(0x1bb)](_0x47a60);}async[_0xd62c37(0x566)](_0x3c4ace){const _0x6d758a=_0xd62c37,_0x52d6c4=this[_0x6d758a(0x8ac)]('db',null,_0x6d758a(0x4ea),[_0x3c4ace]);return this[_0x6d758a(0x554)]['delete'](_0x3c4ace),_0x52d6c4;}async[_0xd62c37(0x8b6)](_0x4e9131,_0x3e0459={}){const _0x2aa873=_0xd62c37;this[_0x2aa873(0x300)]();const _0x438798=this['_call']('db',null,_0x2aa873(0x8b6),[_0x4e9131,_0x3e0459]);return this[_0x2aa873(0x554)][_0x2aa873(0x588)](_0x4e9131),_0x438798;}static get['defaults'](){const _0x55faae=_0xd62c37;return _0x3e5c60[_0x55faae(0x453)];}static get[_0xd62c37(0x89d)](){const _0x3928b8=_0xd62c37;return _0x3e5c60[_0x3928b8(0x89d)];}static get[_0xd62c37(0x56b)](){const _0x31f2ca=_0xd62c37;return _0x3e5c60[_0x31f2ca(0x56b)];}static async[_0xd62c37(0x606)](_0x9026bb,_0x4f305e){const _0x12955d=_0xd62c37;return _0x19891c('db',_0x12955d(0x606),[_0x9026bb,_0x4f305e]);}static[_0xd62c37(0x303)](_0x2dc827){return _0x19891c('db','reidentify',[_0x2dc827]);}static[_0xd62c37(0x5c3)](_0x5ef95c,_0x356cac){const _0x569189=_0xd62c37;_0x19891c(_0x569189(0x334),'registerBucketProjection',[_0x5ef95c,_0x356cac]);}static[_0xd62c37(0x404)](_0x171b86,_0x561907){const _0x139c04=_0xd62c37;_0x19891c(_0x139c04(0x334),_0x139c04(0x404),[_0x171b86,_0x561907]);}static[_0xd62c37(0x1d7)](){}['equal'](_0x9a75,_0x26d9aa){const _0x340052=_0xd62c37;return require$$16[_0x340052(0x832)](_0x9a75,_0x26d9aa);}}_0x2e6147['HIGH_SENTINEL']=_0x5ca9f1,Object[_0xd62c37(0x2a1)](_0x2e6147,_0xd62c37(0x538),{'get'(){const _0x454a89=_0xd62c37;return _0x2e6147[_0x454a89(0x34f)]||(_0x2e6147[_0x454a89(0x34f)]=new Set());},'set'(_0x1154cb){const _0x256d3b=_0xd62c37;_0x2e6147[_0x256d3b(0x34f)]=_0x1154cb;try{_0x19891c('db',_0x256d3b(0x304),[]);}catch{}},'configurable':!![]});for(const _0x24c417 of[_0xd62c37(0x2c3),_0xd62c37(0x6d6),_0xd62c37(0x3fe),_0xd62c37(0x625),_0xd62c37(0x2b7),'create','remove',_0xd62c37(0x212),_0xd62c37(0x312),'getEntry',_0xd62c37(0x416),_0xd62c37(0x633),'getKeys',_0xd62c37(0x2f5),_0xd62c37(0x6fe),_0xd62c37(0x83f),'byIndex','countByIndex',_0xd62c37(0x52e),_0xd62c37(0x7c9),_0xd62c37(0x247),'registerType','ensureType','ensure',_0xd62c37(0x2df),_0xd62c37(0x480),_0xd62c37(0x1d9),_0xd62c37(0x320),_0xd62c37(0x1b7),_0xd62c37(0x44d),_0xd62c37(0x25f),_0xd62c37(0x4d4),_0xd62c37(0x7cb),_0xd62c37(0x74b),'hasUniqueViolations',_0xd62c37(0x7c6),_0xd62c37(0x740),_0xd62c37(0x7bc),_0xd62c37(0x4d9),_0xd62c37(0x85b),_0xd62c37(0x1e4),_0xd62c37(0x6d8),_0xd62c37(0x4a9),'ttlStats',_0xd62c37(0x197),_0xd62c37(0x199),_0xd62c37(0x6da),_0xd62c37(0x2eb),_0xd62c37(0x21f),_0xd62c37(0x590)]){_0x2e6147[_0xd62c37(0x47b)][_0x24c417]=function(..._0x99894d){const _0x4a5b9f=this['env']('default');return _0x4a5b9f[_0x24c417](..._0x99894d);};}function _0x19b92b(_0x524afe){const _0x4cbf0c=_0xd62c37,_0x150f96=_0x2ca1a0=>()=>{const _0x486272=_0x206c;throw new Error(_0x486272(0x1f1)+_0x2ca1a0+_0x486272(0x432));};return{'process':_0x150f96('process(filter)'),'processRest':_0x150f96(_0x4cbf0c(0x2ca)),'processEverything':_0x150f96(_0x4cbf0c(0x470)),async 'start'(){const _0x35215f=_0x4cbf0c;return _0x524afe[_0x35215f(0x8ac)]('db',null,_0x35215f(0x279),[]);},async 'stop'(){const _0x1d3a3f=_0x4cbf0c;return _0x524afe['_call']('db',null,_0x1d3a3f(0x729),[]);},'status'(){const _0x16108b=_0x4cbf0c;return _0x524afe[_0x16108b(0x8ac)]('db',null,_0x16108b(0x496),[],![]);},get 'participating'(){const _0xfad58e=_0x4cbf0c;return _0x524afe['_call']('db',null,_0xfad58e(0x762),[],![]);},get '_participate'(){const _0x358b2f=_0x4cbf0c;return _0x524afe[_0x358b2f(0x8ac)]('db',null,_0x358b2f(0x762),[],![]);}};}function _0x19891c(_0xce8a79,_0xe04af6,_0xce247a){const _0x9ca36f=_0xd62c37;_0x2a1ddc();try{return _0x308838()[_0x9ca36f(0x4d3)](_0xce8a79,_0xe04af6,_0xce247a);}catch(_0x94fc0b){throw _0x5c8ae0(_0x94fc0b);}}_0xa97b79[_0xd62c37(0x7f5)]=_0x2e6147,_0xa97b79[_0xd62c37(0x7f5)][_0xd62c37(0x798)]=_0x19891c,_0xa97b79['exports'][_0xd62c37(0x36f)]=_0x2e6147,_0xa97b79[_0xd62c37(0x7f5)][_0xd62c37(0x343)]=_0x5ca9f1,_0xa97b79[_0xd62c37(0x7f5)][_0xd62c37(0x608)]=_0x2e6147,Object[_0xd62c37(0x2a1)](_0xa97b79[_0xd62c37(0x7f5)],_0xd62c37(0x49d),{'get':()=>require$$1$1[_0xd62c37(0x396)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x51370b(0x7f5)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x3e8e44(0x7f5)]=index;
1
+ 'use strict';const _0x1ade1a=_0x3f13;(function(_0x4c4263,_0x5647a2){const _0x2157f1=_0x3f13,_0x4af5d2=_0x4c4263();while(!![]){try{const _0x43a3da=parseInt(_0x2157f1(0x3ce))/0x1*(parseInt(_0x2157f1(0x45b))/0x2)+-parseInt(_0x2157f1(0x576))/0x3+parseInt(_0x2157f1(0x713))/0x4*(parseInt(_0x2157f1(0x6e8))/0x5)+parseInt(_0x2157f1(0x356))/0x6+parseInt(_0x2157f1(0x318))/0x7*(-parseInt(_0x2157f1(0x3a5))/0x8)+parseInt(_0x2157f1(0x17b))/0x9*(-parseInt(_0x2157f1(0x5ed))/0xa)+parseInt(_0x2157f1(0x63b))/0xb;if(_0x43a3da===_0x5647a2)break;else _0x4af5d2['push'](_0x4af5d2['shift']());}catch(_0x3be7fe){_0x4af5d2['push'](_0x4af5d2['shift']());}}}(_0x394d,0x8d943));var require$$0$6=require(_0x1ade1a(0x808)),require$$1$1=require(_0x1ade1a(0x6cf)),require$$0=require(_0x1ade1a(0x446)),require$$1=require(_0x1ade1a(0x1da)),require$$4=require(_0x1ade1a(0x5c2)),require$$0$2=require(_0x1ade1a(0x7d3)),require$$0$1=require('node:perf_hooks'),require$$16=require('node:util'),require$$0$3=require('node:http'),require$$2=require('node:cluster'),require$$18=require(_0x1ade1a(0x32f)),require$$0$4=require(_0x1ade1a(0x672)),require$$0$5=require(_0x1ade1a(0x43b));function getDefaultExportFromCjs(_0xa4780d){const _0x327489=_0x1ade1a;return _0xa4780d&&_0xa4780d[_0x327489(0x7c9)]&&Object[_0x327489(0x259)][_0x327489(0x7f8)][_0x327489(0x881)](_0xa4780d,_0x327489(0x693))?_0xa4780d[_0x327489(0x693)]:_0xa4780d;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x66ee1 extends Error{constructor(_0x5495ad,_0x3484c0,_0x404378={}){const _0xf3f15e=_0x3f13;super(_0x5495ad),this[_0xf3f15e(0x885)]=_0xf3f15e(0x24b),this[_0xf3f15e(0x431)]=_0x3484c0,this[_0xf3f15e(0x7fa)]=_0x404378,_0x404378[_0xf3f15e(0x87a)]&&(this['cause']=_0x404378[_0xf3f15e(0x87a)]),Error[_0xf3f15e(0x29d)](this,this['constructor']);}}class _0x37506a extends _0x66ee1{constructor(_0x198c6a,_0x3b790a,_0x579233,_0x5619b5){const _0x556b90=_0x3f13;super(_0x556b90(0x382)+_0x198c6a+'@'+_0x3b790a+_0x556b90(0x651)+_0x579233+_0x556b90(0x832)+_0x5619b5,_0x556b90(0x35f),{'type':_0x198c6a,'key':_0x3b790a,'expectedVersion':_0x579233,'actualVersion':_0x5619b5}),this[_0x556b90(0x885)]=_0x556b90(0x407);}}class _0x590eb3 extends _0x66ee1{constructor(_0x5e09f2,_0x41236f){const _0x12cdd2=_0x3f13;super(_0x5e09f2+'@'+_0x41236f+_0x12cdd2(0x732),'NOT_FOUND',{'type':_0x5e09f2,'key':_0x41236f}),this[_0x12cdd2(0x885)]=_0x12cdd2(0x72f);}}class _0x59248a extends _0x66ee1{constructor(_0xce8624,_0x4ab26f){const _0xac94cd=_0x3f13;super(_0xce8624+'@'+_0x4ab26f+_0xac94cd(0x5ac),'ALREADY_EXISTS',{'type':_0xce8624,'key':_0x4ab26f}),this['name']='OKDBAlreadyExistsError';}}class _0x17757b extends _0x66ee1{constructor(_0x5741f8,_0x42cfb7){const _0x1bbb57=_0x3f13,_0x4dba67=typeof _0x42cfb7;super(_0x1bbb57(0x211)+_0x5741f8+_0x1bbb57(0x88a)+_0x4dba67+_0x1bbb57(0x4a9)+_0x42cfb7,'INVALID_INDEX_KEY',{'index':_0x5741f8,'key':_0x42cfb7,'keyType':_0x4dba67}),this[_0x1bbb57(0x885)]='OKDBInvalidIndexKeyError';}}class _0x50bf34 extends _0x66ee1{constructor(_0x4d1fa4){const _0x569507=_0x3f13,_0x7f0bd2=typeof _0x4d1fa4;super(_0x569507(0x700)+_0x7f0bd2+_0x569507(0x6eb)+_0x4d1fa4,_0x569507(0x635),{'key':_0x4d1fa4,'keyType':_0x7f0bd2}),this['name']=_0x569507(0x4e1);}}class _0x4c91ef extends _0x66ee1{constructor(_0x4ec458){const _0x13c2db=_0x3f13;super(_0x13c2db(0x316)+_0x4ec458+_0x13c2db(0x6ce),'TYPE_NOT_REGISTERED',{'type':_0x4ec458}),this[_0x13c2db(0x885)]=_0x13c2db(0x397);}}class _0x50d7d7 extends _0x66ee1{constructor(_0x361258){const _0xe4fad0=_0x3f13;super('Type\x20\x27'+_0x361258+_0xe4fad0(0x68e),_0xe4fad0(0x67c),{'type':_0x361258}),this[_0xe4fad0(0x885)]=_0xe4fad0(0x6a7);}}class _0x95f0c9 extends _0x66ee1{constructor(_0x1a1df7,_0xae12ba){const _0x492228=_0x3f13;super(_0x492228(0x381)+_0xae12ba+_0x492228(0x568)+_0x1a1df7+_0x492228(0x6ce),_0x492228(0x81c),{'type':_0x1a1df7,'index':_0xae12ba}),this['name']='OKDBIndexNotRegisteredError';}}class _0xf972f7 extends _0x66ee1{constructor(_0x5a88ff,_0x5729b1){const _0x435679=_0x3f13;super('Index\x20\x27'+_0x5729b1+_0x435679(0x568)+_0x5a88ff+'\x27\x20is\x20already\x20registered',_0x435679(0x157),{'type':_0x5a88ff,'index':_0x5729b1}),this[_0x435679(0x885)]=_0x435679(0x7ae);}}class _0x1ea6c4 extends _0x66ee1{constructor(_0x5463ec,_0x4b4fa9={}){const _0x51d0c5=_0x3f13;super(_0x5463ec,_0x51d0c5(0x441),_0x4b4fa9),this['name']=_0x51d0c5(0x3ae);}}class _0x1d1a7b extends _0x66ee1{constructor(_0x2224cf,_0x457071,_0x2aa4b5,_0x15f0af,_0x21946e){const _0x49a05b=_0x3f13;super('Unique\x20constraint\x20violated\x20on\x20'+_0x2224cf+'@'+_0x457071+_0x49a05b(0x6f9)+_0x2aa4b5+']\x20already\x20maps\x20to\x20\x27'+_0x15f0af+_0x49a05b(0x73c)+_0x21946e+'\x27','UNIQUE_CONSTRAINT',{'type':_0x2224cf,'index':_0x457071,'indexKey':_0x2aa4b5,'existingKey':_0x15f0af,'conflictingKey':_0x21946e}),this['name']=_0x49a05b(0x1cf);}}class _0x4152ca extends _0x66ee1{constructor(_0xae5367,_0x161ff2,_0x51547e){const _0x5d2cd7=_0x3f13;super('Schema\x20validation\x20failed\x20for\x20'+_0xae5367+'@'+_0x161ff2,'SCHEMA_VALIDATION_FAILED',{'type':_0xae5367,'key':_0x161ff2,'errors':_0x51547e}),this[_0x5d2cd7(0x885)]=_0x5d2cd7(0x57f),this[_0x5d2cd7(0x79c)]=_0xae5367,this[_0x5d2cd7(0x491)]=_0x161ff2,this[_0x5d2cd7(0x3d5)]=_0x51547e;}}class _0x251cd7 extends _0x66ee1{constructor(_0x33a88e,_0x2004d5){const _0x411c1d=_0x3f13;super(_0x411c1d(0x5bf)+_0x33a88e+':\x20'+_0x2004d5['length']+'\x20documents\x20fail\x20validation',_0x411c1d(0x1f5),{'type':_0x33a88e,'failures':_0x2004d5}),this[_0x411c1d(0x885)]=_0x411c1d(0x4c7),this[_0x411c1d(0x79c)]=_0x33a88e,this['failures']=_0x2004d5;}}class _0x14cacc extends _0x66ee1{constructor(_0x38cc53,_0xc9a3a3,_0x27a97a,_0x510e0a,_0x33e038){const _0x3ce1b9=_0x3f13;super(_0x3ce1b9(0x6a8)+_0x38cc53+'@'+_0xc9a3a3+'.'+_0x27a97a+_0x3ce1b9(0x731)+_0x510e0a+'@'+_0x33e038+_0x3ce1b9(0x747),_0x3ce1b9(0x5e0),{'sourceType':_0x38cc53,'sourceKey':_0xc9a3a3,'fieldPath':_0x27a97a,'targetType':_0x510e0a,'targetKey':_0x33e038}),this[_0x3ce1b9(0x885)]=_0x3ce1b9(0x540),this[_0x3ce1b9(0x327)]=_0x38cc53,this[_0x3ce1b9(0x600)]=_0xc9a3a3,this[_0x3ce1b9(0x702)]=_0x27a97a,this[_0x3ce1b9(0x4d8)]=_0x510e0a,this[_0x3ce1b9(0x734)]=_0x33e038;}}class _0x120d0d extends _0x66ee1{constructor(_0x32355a,_0x260cd0,_0x6d2a37){const _0x3eaea7=_0x3f13;super('Cannot\x20delete\x20'+_0x32355a+'@'+_0x260cd0+':\x20'+_0x6d2a37['length']+_0x3eaea7(0x174),_0x3eaea7(0x715),{'targetType':_0x32355a,'targetKey':_0x260cd0,'references':_0x6d2a37}),this[_0x3eaea7(0x885)]=_0x3eaea7(0x6c4),this[_0x3eaea7(0x4d8)]=_0x32355a,this[_0x3eaea7(0x734)]=_0x260cd0,this[_0x3eaea7(0x41c)]=_0x6d2a37;}}class _0x597499 extends _0x66ee1{constructor(_0x4ef495,_0x495075,_0x39e7f8){const _0x54a73d=_0x3f13;super(_0x54a73d(0x322)+_0x495075+_0x54a73d(0x7e3)+_0x4ef495+_0x54a73d(0x22b)+_0x39e7f8['map'](_0x1cc81f=>_0x1cc81f[_0x54a73d(0x14e)]+':'+_0x1cc81f[_0x54a73d(0x885)])['join'](',\x20'),_0x54a73d(0x262),{'type':_0x4ef495,'index':_0x495075,'usedBy':_0x39e7f8}),this[_0x54a73d(0x885)]=_0x54a73d(0x767);}}return okdbError={'OKDBError':_0x66ee1,'OKDBVersionMismatchError':_0x37506a,'OKDBNotFoundError':_0x590eb3,'OKDBAlreadyExistsError':_0x59248a,'OKDBInvalidIndexKeyError':_0x17757b,'OKDBInvalidPrimaryKeyError':_0x50bf34,'OKDBTypeNotRegisteredError':_0x4c91ef,'OKDBTypeAlreadyRegisteredError':_0x50d7d7,'OKDBIndexNotRegisteredError':_0x95f0c9,'OKDBIndexAlreadyRegisteredError':_0xf972f7,'OKDBInvalidValueError':_0x1ea6c4,'OKDBUniqueConstraintError':_0x1d1a7b,'OKDBSchemaValidationError':_0x4152ca,'OKDBSchemaCollectionError':_0x251cd7,'OKDBForeignKeyError':_0x14cacc,'OKDBForeignKeyDeleteError':_0x120d0d,'OKDBIndexHasConsumersError':_0x597499},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x3d1033=_0x1ade1a;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x3cceaa=requireOkdbError(),_0x5021bb={'VERSION_MISMATCH':_0x3cceaa[_0x3d1033(0x407)],'NOT_FOUND':_0x3cceaa[_0x3d1033(0x72f)],'ALREADY_EXISTS':_0x3cceaa[_0x3d1033(0x3b6)],'INVALID_INDEX_KEY':_0x3cceaa[_0x3d1033(0x250)],'INVALID_PRIMARY_KEY':_0x3cceaa[_0x3d1033(0x4e1)],'TYPE_NOT_REGISTERED':_0x3cceaa[_0x3d1033(0x397)],'TYPE_ALREADY_REGISTERED':_0x3cceaa[_0x3d1033(0x6a7)],'INDEX_NOT_REGISTERED':_0x3cceaa[_0x3d1033(0x7fb)],'INDEX_ALREADY_REGISTERED':_0x3cceaa[_0x3d1033(0x7ae)],'INVALID_VALUE':_0x3cceaa['OKDBInvalidValueError'],'UNIQUE_CONSTRAINT':_0x3cceaa[_0x3d1033(0x1cf)],'SCHEMA_VALIDATION_FAILED':_0x3cceaa[_0x3d1033(0x57f)],'SCHEMA_COLLECTION_INVALID':_0x3cceaa[_0x3d1033(0x4c7)],'FOREIGN_KEY_VIOLATION':_0x3cceaa['OKDBForeignKeyError'],'FOREIGN_KEY_DELETE_RESTRICTED':_0x3cceaa[_0x3d1033(0x6c4)],'INDEX_HAS_CONSUMERS':_0x3cceaa[_0x3d1033(0x767)]};class _0x4a0398 extends _0x3cceaa[_0x3d1033(0x24b)]{constructor(_0x34ae4e,_0x50301a){const _0xf8d855=_0x3d1033;super(_0x34ae4e+_0xf8d855(0x80c)+(_0x50301a?'\x20('+_0x50301a+')':''),_0xf8d855(0x846),{'feature':_0x34ae4e}),this['name']=_0xf8d855(0x3eb);}}function _0x14214b(_0x36100f){const _0x21b88f=_0x3d1033;if(!_0x36100f||typeof _0x36100f!==_0x21b88f(0x6f7)||!_0x36100f[_0x21b88f(0x1e3)])return _0x36100f;delete _0x36100f[_0x21b88f(0x1e3)];const _0x37faae=_0x36100f[_0x21b88f(0x431)];if(_0x37faae==='Error'||_0x37faae===_0x21b88f(0x34e)||_0x37faae===_0x21b88f(0x6c6)){const _0x3c1271=_0x37faae===_0x21b88f(0x34e)?TypeError['prototype']:_0x37faae==='RangeError'?RangeError['prototype']:Error[_0x21b88f(0x259)];Object[_0x21b88f(0x20c)](_0x36100f,_0x3c1271),_0x36100f[_0x21b88f(0x885)]=_0x37faae;if(_0x36100f[_0x21b88f(0x7fa)]&&_0x36100f['details']['status']!==undefined)_0x36100f['status']=_0x36100f[_0x21b88f(0x7fa)][_0x21b88f(0x371)];return delete _0x36100f[_0x21b88f(0x431)],delete _0x36100f[_0x21b88f(0x7fa)],_0x36100f;}const _0x391de7=_0x5021bb[_0x37faae];Object[_0x21b88f(0x20c)](_0x36100f,(_0x391de7||_0x3cceaa[_0x21b88f(0x24b)])[_0x21b88f(0x259)]),_0x36100f[_0x21b88f(0x885)]=_0x391de7?_0x391de7[_0x21b88f(0x885)]['replace'](/^OKDB/,_0x21b88f(0x152)):_0x21b88f(0x24b);const _0x2cb8de=_0x36100f[_0x21b88f(0x7fa)]||{};_0x37faae===_0x21b88f(0x52f)&&(_0x36100f[_0x21b88f(0x79c)]=_0x2cb8de['type'],_0x36100f[_0x21b88f(0x491)]=_0x2cb8de['key'],_0x36100f[_0x21b88f(0x3d5)]=_0x2cb8de[_0x21b88f(0x3d5)]);_0x37faae===_0x21b88f(0x1f5)&&(_0x36100f['type']=_0x2cb8de[_0x21b88f(0x79c)],_0x36100f[_0x21b88f(0x4fb)]=_0x2cb8de[_0x21b88f(0x4fb)]);if(_0x37faae===_0x21b88f(0x5e0)){for(const _0x38bcc1 of[_0x21b88f(0x327),_0x21b88f(0x600),'fieldPath','targetType',_0x21b88f(0x734)])_0x36100f[_0x38bcc1]=_0x2cb8de[_0x38bcc1];}if(_0x37faae===_0x21b88f(0x715)){for(const _0x5260c5 of[_0x21b88f(0x4d8),'targetKey',_0x21b88f(0x41c)])_0x36100f[_0x5260c5]=_0x2cb8de[_0x5260c5];}if(_0x2cb8de[_0x21b88f(0x87a)])_0x36100f['cause']=_0x2cb8de[_0x21b88f(0x87a)];if(_0x2cb8de[_0x21b88f(0x371)]!==undefined)_0x36100f[_0x21b88f(0x371)]=_0x2cb8de[_0x21b88f(0x371)];if(_0x2cb8de[_0x21b88f(0x68a)]!==undefined)_0x36100f[_0x21b88f(0x68a)]=_0x2cb8de['retryable'];return _0x36100f;}function _0x54505e(_0x42ed05){const _0x1bf2ed=_0x3d1033;if(_0x42ed05===undefined)return'undefined';if(_0x42ed05===null)return _0x1bf2ed(0x79d);if(typeof _0x42ed05===_0x1bf2ed(0x4c1))return _0x42ed05?_0x1bf2ed(0x4c1):_0x1bf2ed(0x324);if(typeof _0x42ed05===_0x1bf2ed(0x40e))return'function';if(typeof _0x42ed05!==_0x1bf2ed(0x6f7))return typeof _0x42ed05;if(Array[_0x1bf2ed(0x4b6)](_0x42ed05))return _0x42ed05['length']?_0x1bf2ed(0x45a):_0x1bf2ed(0x44c);if(_0x42ed05 instanceof Date)return'Date';if(_0x42ed05 instanceof Map)return _0x1bf2ed(0x4e3);if(Buffer[_0x1bf2ed(0x47d)](_0x42ed05))return'Buffer';return _0x1bf2ed(0x6f7);}const _0x58bde9=(_0x51839d,_0x17d43c,_0x12c448)=>new _0x3cceaa[(_0x3d1033(0x24b))](_0x17d43c,_0x51839d,_0x12c448),_0x46e667=(_0xdd9728,_0x4d4d79,_0x7d2e85)=>_0x58bde9('INVALID_ARGUMENT',_0xdd9728+_0x3d1033(0x3a2)+_0x4d4d79+_0x3d1033(0x7b3)+_0x54505e(_0x7d2e85),{'argument':_0xdd9728,'expected':_0x4d4d79,'got':_0x54505e(_0x7d2e85)}),_0x280728=(_0x1f1ec2,_0x50b224)=>_0x58bde9('INVALID_TYPE_NAME',_0x1f1ec2+_0x3d1033(0x215)+_0x54505e(_0x50b224),{'argument':_0x1f1ec2,'expected':_0x3d1033(0x87f),'got':_0x54505e(_0x50b224)}),_0xf5808f=(_0x293ae,_0x5c6488)=>_0x58bde9(_0x3d1033(0x839),_0x293ae+':\x20'+_0x5c6488,{'argument':_0x293ae,'problem':_0x5c6488});function _0x1ca6ee(_0x427a0d,_0x4275c2='options'){const _0x3a5cc3=_0x3d1033;if(_0x427a0d===undefined)return{};if(_0x427a0d===null)throw _0xf5808f(_0x4275c2,_0x3a5cc3(0x663));return _0x427a0d;}return errors={'reclass':_0x14214b,'NotImplementedNative':_0x4a0398,'BY_CODE':_0x5021bb,'describe':_0x54505e,'invalidArgument':_0x46e667,'invalidTypeName':_0x280728,'invalidOptions':_0xf5808f,'optionsArg':_0x1ca6ee,..._0x3cceaa},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x2aa5e6=new Map(),_0x33633a=new Map();let _0x496132=0x1;const _0x2dcc9e=new Map(),_0x242a1d=new Map();let _0x3f1548=0x1;const _0x1d8190=new Map();let _0x335aa4=0x1;const _0x398f5f=new Map();function _0x3122bb(_0x462901,_0x4d9fac=null){const _0x54d94b=_0x3f13,_0x54911=_0x335aa4++;_0x1d8190[_0x54d94b(0x488)](_0x54911,_0x462901);if(_0x4d9fac)_0x398f5f[_0x54d94b(0x488)](_0x54911,_0x4d9fac);return _0x54911;}function _0x51cd4d(_0x5140ab,_0x3d9b9e){const _0xa24968=_0x3f13,_0x2fed1c=_0x1d8190[_0xa24968(0x616)](_0x5140ab),_0x5ad02e=Array['prototype'][_0xa24968(0x4e8)][_0xa24968(0x881)](arguments,0x2),_0x56ae05=_0x219b72=>_0x4102fc(_0x219b72,_0x398f5f[_0xa24968(0x616)](_0x5140ab));let _0x22ede2=_0x5ad02e;if(_0x3d9b9e===_0xa24968(0x525)||_0x3d9b9e===_0xa24968(0x851)||_0x3d9b9e===_0xa24968(0x6e1)||_0x3d9b9e===_0xa24968(0x450)||_0x3d9b9e===_0xa24968(0x202))_0x22ede2=[_0x56ae05(_0x5ad02e[0x0])];else{if(_0x3d9b9e===_0xa24968(0x3d3))_0x22ede2=[_0x5ad02e[0x0],_0x5ad02e[0x1],_0x56ae05(_0x5ad02e[0x2])];else{if(_0x3d9b9e===_0xa24968(0x1b6))_0x22ede2=[_0x56ae05(_0x5ad02e[0x0])];}}let _0xcb7de=_0x2fed1c[_0x3d9b9e](..._0x22ede2);if(_0xcb7de&&typeof _0xcb7de[_0xa24968(0x1df)]===_0xa24968(0x40e))_0xcb7de=_0x2a08b5(_0xcb7de);if(_0x3d9b9e==='start'){const _0x4a0df1=_0xcb7de&&typeof _0xcb7de===_0xa24968(0x6f7)?_0x3122bb(_0xcb7de):_0x3122bb({});return{'$api':_0x4a0df1};}return _0xcb7de===undefined?null:_0xcb7de;}function _0x4102fc(_0x4b5613,_0x31b958){const _0x874155=_0x3f13;let _0x18d0c6=_0x46581c['get'](_0x4b5613[_0x874155(0x799)]);const _0x42064d=_0x18d0c6&&_0x18d0c6['okdb']||_0x31b958||_0x347c1f,_0x34aae4=(_0x275ad2,..._0x567728)=>_0x42064d['_call'](_0x874155(0x5a4),null,_0x275ad2,[_0x4b5613[_0x874155(0x79c)],_0x4b5613['name'],..._0x567728],!![]);return{'okdb':_0x42064d,'key':_0x4b5613[_0x874155(0x491)],'type':_0x4b5613[_0x874155(0x79c)],'name':_0x4b5613[_0x874155(0x885)],get 'storeEnv'(){const _0x19426b=_0x874155;if(!_0x18d0c6&&_0x42064d&&_0x42064d[_0x19426b(0x232)]&&_0x4b5613[_0x19426b(0x406)])_0x18d0c6=_0x42064d[_0x19426b(0x2b2)][_0x19426b(0x616)](_0x4b5613[_0x19426b(0x406)]);return _0x18d0c6;},'storeEnvName':_0x4b5613[_0x874155(0x406)],'config':_0x4b5613[_0x874155(0x794)],'meta':_0x4b5613[_0x874155(0x5c1)],'options':_0x4b5613[_0x874155(0x5c3)],'emit':(_0x1caeb9,_0x18e563)=>_0x34aae4('ctxEmit',_0x1caeb9,_0x18e563),'updateStatus':async(_0x4241ce,_0x4b1ce6)=>_0x34aae4(_0x874155(0x47e),_0x4241ce,_0x4b1ce6==null?null:String(_0x4b1ce6&&_0x4b1ce6[_0x874155(0x806)]?_0x4b1ce6[_0x874155(0x806)]:_0x4b1ce6)),'updateMeta':async _0x276ee1=>_0x34aae4('patchDeclaration',{'meta':_0x276ee1}),'updateConfig':async _0x16869f=>_0x34aae4(_0x874155(0x730),{'config':_0x16869f})};}function _0x19797b(_0x2a1239,_0x45ce60,_0x4aafa8){const _0x14369b=_0x3f13;if(_0x2a1239===_0x14369b(0x2c0)){const _0x736df1=_0x2ffd1f(_0x45ce60);let _0xed2f9f=_0x736df1(_0x4aafa8);if(_0xed2f9f&&typeof _0xed2f9f[_0x14369b(0x1df)]==='function')_0xed2f9f=_0x2a08b5(_0xed2f9f);if(!_0xed2f9f||typeof _0xed2f9f[_0x14369b(0x26d)]!==_0x14369b(0x40e)){const {OKDBError:_0x2bd69d}=requireErrors();throw new _0x2bd69d('Embedder\x20factory\x20for\x20\x22'+(_0x4aafa8&&_0x4aafa8[_0x14369b(0x79c)])+'\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}',_0x14369b(0x1fa));}return _0xed2f9f['__okdb']=_0x736df1[_0x14369b(0x1e3)],{'$id':_0x3122bb(_0xed2f9f),'batch':typeof _0xed2f9f[_0x14369b(0x3fa)]===_0x14369b(0x40e)};}const _0x387716=_0x1d8190['get'](_0x45ce60);if(_0x2a1239===_0x14369b(0x1ff))return _0x1d8190[_0x14369b(0x727)](_0x45ce60),_0x11b1b8[_0x14369b(0x727)](_0x45ce60),null;if(!_0x387716)throw new Error(_0x14369b(0x59d));if(typeof _0x387716[_0x2a1239]!==_0x14369b(0x40e))return null;if(_0x2a1239===_0x14369b(0x26d)||_0x2a1239===_0x14369b(0x3fa)){const _0x5c058f=_0x2a1239==='embedBatch'?_0x4dd85d(_0x45ce60,_0x387716,_0x4aafa8):_0x46b73a(_0x45ce60,_0x387716,_0x2a1239,_0x4aafa8);return _0x2a1239===_0x14369b(0x26d)?_0x18df5d(_0x5c058f):_0x5c058f['map'](_0x18df5d);}let _0x365875=_0x387716[_0x2a1239]();if(_0x365875&&typeof _0x365875['then']==='function')_0x365875=_0x2a08b5(_0x365875);return _0x365875===undefined?null:_0x365875;}function _0x18df5d(_0x38bdf4){return _0x38bdf4 instanceof Float32Array?_0x38bdf4:Array['from'](_0x38bdf4);}function _0x1c70a7(_0xa552d9,_0xa5e6bb,_0x1e5130){const _0x372510=_0x3f13;if(_0xa552d9==='new'){const _0x4e1de7=_0x2ffd1f(_0xa5e6bb);let _0x1f5c48=_0x4e1de7(_0x1e5130[_0x372510(0x794)]??{},{'dims':_0x1e5130['dims'],'dir':_0x1e5130[_0x372510(0x7db)]});if(_0x1f5c48&&typeof _0x1f5c48[_0x372510(0x1df)]==='function')_0x1f5c48=_0x2a08b5(_0x1f5c48);for(const _0x2157a0 of[_0x372510(0x6c8),_0x372510(0x76e),_0x372510(0x6a9),_0x372510(0x474),_0x372510(0x5ad)]){if(!_0x1f5c48||typeof _0x1f5c48[_0x2157a0]!==_0x372510(0x40e)){const {OKDBError:_0x21774a}=requireErrors();throw new _0x21774a('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0x2157a0+'()',_0x372510(0x773),{'method':_0x2157a0});}}return{'$id':_0x3122bb(_0x1f5c48)};}const _0x100383=_0x1d8190[_0x372510(0x616)](_0xa5e6bb);if(_0xa552d9===_0x372510(0x1ff))return _0x1d8190[_0x372510(0x727)](_0xa5e6bb),null;if(!_0x100383)throw new Error(_0x372510(0x81a));const _0x6ac1ef=_0x4e7636=>_0x4e7636?_0x4e7636[_0x372510(0x6f2)](_0x45c25f=>({'key':_0x45c25f[_0x372510(0x491)],'vector':Float32Array[_0x372510(0x5f7)](_0x45c25f[_0x372510(0x812)])})):null;let _0x7c9df5;switch(_0xa552d9){case'load':case'rebuild':{const _0x79e24c=_0x6ac1ef(_0x1e5130);_0x7c9df5=_0x100383[_0xa552d9](_0x79e24c?async()=>_0x79e24c:undefined);break;}case _0x372510(0x76e):_0x7c9df5=_0x100383[_0x372510(0x76e)](_0x1e5130[0x0],Float32Array[_0x372510(0x5f7)](_0x1e5130[0x1]),_0x1e5130[0x2]??undefined);break;case _0x372510(0x6a9):_0x7c9df5=_0x100383[_0x372510(0x6a9)](_0x1e5130);break;case _0x372510(0x474):_0x7c9df5=_0x100383['search'](Float32Array['from'](_0x1e5130['query']),_0x1e5130[_0x372510(0x35b)]??{});break;case _0x372510(0x7e2):_0x7c9df5=typeof _0x100383[_0x372510(0x7e2)]===_0x372510(0x40e)?_0x100383[_0x372510(0x7e2)](_0x1e5130??undefined):![];break;case _0x372510(0x851):_0x7c9df5=typeof _0x100383[_0x372510(0x851)]==='function'?_0x100383[_0x372510(0x851)]():undefined;break;case'tick':_0x7c9df5=typeof _0x100383[_0x372510(0x624)]==='function'?_0x100383[_0x372510(0x624)]():undefined;break;case _0x372510(0x5ad):return Number(_0x100383['count']());case _0x372510(0x786):return(typeof _0x100383[_0x372510(0x786)]==='function'?_0x100383[_0x372510(0x786)]():null)??{};default:throw new Error(_0x372510(0x330)+_0xa552d9);}if(_0x7c9df5&&typeof _0x7c9df5['then']===_0x372510(0x40e))_0x7c9df5=_0x2a08b5(_0x7c9df5);return _0x7c9df5===undefined?null:_0x7c9df5;}function _0x2541a0(_0x5e8373,_0x186082,_0x4364e4){const _0x116dd5=_0x3f13;if(_0x5e8373==='new'){const _0x2a6546=_0x2ffd1f(_0x186082);let _0x1abc9a=_0x2a6546(_0x4364e4);if(_0x1abc9a&&typeof _0x1abc9a[_0x116dd5(0x1df)]===_0x116dd5(0x40e))_0x1abc9a=_0x2a08b5(_0x1abc9a);if(!_0x1abc9a)return null;const _0x3e0fec=[_0x116dd5(0x465),'keys',_0x116dd5(0x616),_0x116dd5(0x5ad),_0x116dd5(0x869),'stats']['filter'](_0x1d6bb5=>typeof _0x1abc9a[_0x1d6bb5]==='function');return{'$id':_0x3122bb(_0x1abc9a),'has':_0x3e0fec};}const _0x1edb41=_0x1d8190[_0x116dd5(0x616)](_0x186082);if(_0x5e8373==='free')return _0x1d8190[_0x116dd5(0x727)](_0x186082),null;if(!_0x1edb41)throw new Error(_0x116dd5(0x85b));const _0x4b0817=_0x3d0153=>Float32Array[_0x116dd5(0x5f7)](_0x3d0153);let _0x59f339;switch(_0x5e8373){case _0x116dd5(0x7bc):_0x59f339=_0x1edb41[_0x116dd5(0x7bc)](_0x4364e4[0x0],_0x4b0817(_0x4364e4[0x1]));break;case'remove':_0x59f339=_0x1edb41[_0x116dd5(0x6a9)](_0x4364e4);break;case'getAll':{_0x59f339=typeof _0x1edb41[_0x116dd5(0x6ed)]===_0x116dd5(0x40e)?_0x1edb41[_0x116dd5(0x6ed)]():[];if(_0x59f339&&typeof _0x59f339['then']===_0x116dd5(0x40e))_0x59f339=_0x2a08b5(_0x59f339);return Array[_0x116dd5(0x5f7)](_0x59f339??[],_0x5e79f5=>({'key':_0x5e79f5[_0x116dd5(0x491)],'vector':Array[_0x116dd5(0x5f7)](_0x5e79f5[_0x116dd5(0x812)])}));}case _0x116dd5(0x465):_0x59f339=_0x1edb41[_0x116dd5(0x465)](_0x4364e4['puts'][_0x116dd5(0x6f2)](_0x497d60=>({'key':_0x497d60[_0x116dd5(0x491)],'vector':_0x4b0817(_0x497d60[_0x116dd5(0x812)])})),_0x4364e4[_0x116dd5(0x4e5)]);break;case _0x116dd5(0x23b):_0x59f339=_0x1edb41['keys'](_0x4364e4??undefined);if(_0x59f339&&typeof _0x59f339[_0x116dd5(0x1df)]===_0x116dd5(0x40e))_0x59f339=_0x2a08b5(_0x59f339);return Array['from'](_0x59f339??[]);case _0x116dd5(0x616):{_0x59f339=_0x1edb41[_0x116dd5(0x616)](_0x4364e4);if(_0x59f339&&typeof _0x59f339[_0x116dd5(0x1df)]==='function')_0x59f339=_0x2a08b5(_0x59f339);return _0x59f339==null?null:Array[_0x116dd5(0x5f7)](_0x59f339);}case _0x116dd5(0x5ad):return Number(_0x1edb41[_0x116dd5(0x5ad)]());case _0x116dd5(0x869):_0x59f339=_0x1edb41[_0x116dd5(0x869)]();break;case _0x116dd5(0x5fc):return _0x1edb41['stats']()??null;default:throw new Error(_0x116dd5(0x65a)+_0x5e8373);}if(_0x59f339&&typeof _0x59f339[_0x116dd5(0x1df)]===_0x116dd5(0x40e))_0x59f339=_0x2a08b5(_0x59f339);return _0x59f339===undefined?null:_0x59f339;}const _0x22b3b9=new Map();function _0x46b73a(_0x4e2dff,_0x5ee16c,_0x39c3af,_0x17183d){const _0x15e790=_0x3f13,_0x576a7a=_0x4e2dff+'\x00'+_0x39c3af+'\x00'+JSON[_0x15e790(0x4e6)](_0x17183d),_0xbe3160=_0x22b3b9[_0x15e790(0x616)](_0x576a7a);if(_0xbe3160){if(_0xbe3160['state']===_0x15e790(0x4ef))throw _0x191aa8();_0x22b3b9[_0x15e790(0x727)](_0x576a7a);if(_0xbe3160[_0x15e790(0x823)]===_0x15e790(0x5e2))throw _0xbe3160[_0x15e790(0x7fd)];return _0xbe3160['value'];}const _0x524aef=_0x5ee16c[_0x39c3af](_0x17183d);if(!_0x524aef||typeof _0x524aef[_0x15e790(0x1df)]!==_0x15e790(0x40e))return _0x524aef;const _0x21f418={'state':_0x15e790(0x4ef),'value':undefined};_0x524aef[_0x15e790(0x1df)](_0x2aeedf=>{const _0x4bf47c=_0x15e790;_0x21f418[_0x4bf47c(0x823)]='ok',_0x21f418[_0x4bf47c(0x7fd)]=_0x2aeedf;if(_0x22b3b9[_0x4bf47c(0x616)](_0x576a7a)===_0x21f418)_0x5a2a6a(_0x5ee16c);},_0x1aa414=>{const _0x153dc8=_0x15e790;_0x21f418['state']=_0x153dc8(0x5e2),_0x21f418[_0x153dc8(0x7fd)]=_0x1aa414;if(_0x22b3b9[_0x153dc8(0x616)](_0x576a7a)===_0x21f418)_0x5a2a6a(_0x5ee16c);});for(let _0x4335c7=0x0;_0x4335c7<0x64&&_0x21f418[_0x15e790(0x823)]==='pending';_0x4335c7++)process[_0x15e790(0x500)]();if(_0x21f418[_0x15e790(0x823)]==='ok')return _0x21f418['value'];if(_0x21f418[_0x15e790(0x823)]===_0x15e790(0x5e2))throw _0x21f418[_0x15e790(0x7fd)];_0x22b3b9['set'](_0x576a7a,_0x21f418);throw _0x191aa8();}const _0x11b1b8=new Map(),_0x195bd4=0xa*0x3c*0x3e8;function _0x4dd85d(_0x3570c8,_0x353143,_0x3033fd){const _0xcdb189=_0x3f13,_0x126449=Array['isArray'](_0x3033fd)?_0x3033fd:Array['from'](_0x3033fd??[]);let _0x15b7c4=_0x11b1b8[_0xcdb189(0x616)](_0x3570c8);if(!_0x15b7c4)_0x11b1b8['set'](_0x3570c8,_0x15b7c4=new Map());const _0x32300f=Date[_0xcdb189(0x38b)]();for(const [_0x166be9,_0xc659ad]of _0x15b7c4)if(_0xc659ad['req'][_0xcdb189(0x823)]!==_0xcdb189(0x4ef)&&_0x32300f-_0xc659ad[_0xcdb189(0x42a)]['at']>_0x195bd4)_0x15b7c4[_0xcdb189(0x727)](_0x166be9);const _0x472776=_0x126449[_0xcdb189(0x6f2)](_0x3d5696=>JSON[_0xcdb189(0x4e6)](_0x3d5696));let _0x5314e8=![];const _0x434153=[],_0x259414=new Set();for(let _0x46480b=0x0;_0x46480b<_0x472776[_0xcdb189(0x479)];_0x46480b++){const _0x15ef58=_0x15b7c4[_0xcdb189(0x616)](_0x472776[_0x46480b]);if(!_0x15ef58)!_0x259414[_0xcdb189(0x4a8)](_0x472776[_0x46480b])&&(_0x259414['add'](_0x472776[_0x46480b]),_0x434153['push'](_0x46480b));else{if(_0x15ef58[_0xcdb189(0x42a)]['state']==='pending')_0x5314e8=!![];else{if(_0x15ef58[_0xcdb189(0x42a)][_0xcdb189(0x823)]===_0xcdb189(0x5e2)){const _0x38a787=_0x15ef58[_0xcdb189(0x42a)][_0xcdb189(0x7fd)];for(const [_0x36ae14,_0x4da8b0]of _0x15b7c4)if(_0x4da8b0['req']===_0x15ef58[_0xcdb189(0x42a)])_0x15b7c4['delete'](_0x36ae14);throw _0x38a787;}}}}if(_0x5314e8)throw _0x191aa8();if(_0x434153[_0xcdb189(0x479)]){const _0xf2a78d=_0x434153[_0xcdb189(0x6f2)](_0x28ed22=>_0x126449[_0x28ed22]),_0x1e91c3=_0x353143[_0xcdb189(0x3fa)](_0xf2a78d),_0x4320f8={'state':_0xcdb189(0x4ef),'value':undefined,'at':0x0},_0x49a091=(_0x4aef2d,_0x15f3c2)=>{const _0x58338c=_0xcdb189;_0x4320f8[_0x58338c(0x823)]=_0x4aef2d,_0x4320f8['value']=_0x15f3c2,_0x4320f8['at']=Date['now']();};if(!_0x1e91c3||typeof _0x1e91c3[_0xcdb189(0x1df)]!==_0xcdb189(0x40e))_0x49a091('ok',_0x1e91c3);else{let _0x4de418=!![];_0x1e91c3[_0xcdb189(0x1df)](_0x4773cd=>{_0x49a091('ok',_0x4773cd);if(!_0x4de418)_0x5a2a6a(_0x353143);},_0x4b0b63=>{const _0x1268c7=_0xcdb189;_0x49a091(_0x1268c7(0x5e2),_0x4b0b63);if(!_0x4de418)_0x5a2a6a(_0x353143);});for(let _0x28348b=0x0;_0x28348b<0x64&&_0x4320f8[_0xcdb189(0x823)]===_0xcdb189(0x4ef);_0x28348b++)process['_tickCallback']();_0x4de418=![];}for(let _0x18e759=0x0;_0x18e759<_0x434153[_0xcdb189(0x479)];_0x18e759++)_0x15b7c4[_0xcdb189(0x488)](_0x472776[_0x434153[_0x18e759]],{'req':_0x4320f8,'index':_0x18e759});if(_0x4320f8['state']==='err'){for(const _0x39d52b of _0x434153)_0x15b7c4[_0xcdb189(0x727)](_0x472776[_0x39d52b]);throw _0x4320f8[_0xcdb189(0x7fd)];}if(_0x4320f8[_0xcdb189(0x823)]===_0xcdb189(0x4ef))throw _0x191aa8();}const _0x525fee=_0x472776[_0xcdb189(0x6f2)](_0xb2ea82=>{const _0x67621e=_0xcdb189,_0x257df7=_0x15b7c4[_0x67621e(0x616)](_0xb2ea82),_0x3a5941=_0x257df7['req'][_0x67621e(0x7fd)];return _0x3a5941?_0x3a5941[_0x257df7[_0x67621e(0x880)]]:undefined;});for(const _0x3ea3e5 of _0x472776)_0x15b7c4[_0xcdb189(0x727)](_0x3ea3e5);if(!_0x15b7c4['size'])_0x11b1b8[_0xcdb189(0x727)](_0x3570c8);return _0x525fee;}function _0x191aa8(){const _0x25912b=_0x3f13;return Object[_0x25912b(0x257)](new Error(_0x25912b(0x216)),{'code':_0x25912b(0x688)});}function _0x5a2a6a(_0x4d9724){const _0x1ec667=_0x3f13;_0x3cbd84();try{const _0x429b5d=_0x4d9724[_0x1ec667(0x1e3)]||_0x347c1f;if(_0x429b5d&&_0x429b5d[_0x1ec667(0x232)])_0x429b5d[_0x1ec667(0x82b)](_0x1ec667(0x425),null,_0x1ec667(0x7bb),['embeddings:embed:settled',{}],!![]);}catch{}}function _0x237d55(_0x282272,_0x160803,_0x448020){const _0x5840dc=_0x3f13,_0x4c2fcd=_0x1d8190[_0x5840dc(0x616)](_0x282272);if(!_0x4c2fcd||typeof _0x4c2fcd[_0x160803]!==_0x5840dc(0x40e))return{'__absent':!![]};let _0xd07403=_0x4c2fcd[_0x160803](...Array['isArray'](_0x448020)?_0x448020:[]);if(_0xd07403&&typeof _0xd07403[_0x5840dc(0x1df)]==='function')_0xd07403=_0x2a08b5(_0xd07403);return{'value':_0xd07403===undefined?null:_0xd07403};}const _0x2e7f63=new Map();let _0x393673=0x1;const _0x46581c=new Map(),_0x3be77e=new Map();function _0x14861c(_0x4a7352,_0x470b1a=null){const _0x1db17b=_0x3f13,_0xef6c2a=_0x393673++;_0x2e7f63['set'](_0xef6c2a,_0x4a7352);if(_0x470b1a)_0x3be77e[_0x1db17b(0x488)](_0xef6c2a,_0x470b1a);return _0xef6c2a;}function _0x1f16aa(_0x4517a9){const _0x480e06=_0x3f13;for(const [_0x3a0d62,_0x1df77e]of _0x46581c)if(_0x1df77e&&_0x1df77e[_0x480e06(0x555)]===_0x4517a9)_0x46581c['delete'](_0x3a0d62);for(const [_0x55fe02,_0x574d23]of _0x398f5f)if(_0x574d23===_0x4517a9)_0x398f5f[_0x480e06(0x727)](_0x55fe02);for(const [_0x32c186,_0x2fb920]of _0x3be77e)_0x2fb920===_0x4517a9&&(_0x3be77e[_0x480e06(0x727)](_0x32c186),_0x2e7f63[_0x480e06(0x727)](_0x32c186));if(_0x347c1f===_0x4517a9)_0x347c1f=null;}function _0x12e9a2(_0xeaa40d,_0x44dd72){const _0x10f9f4=_0x3f13;_0x46581c[_0x10f9f4(0x488)](_0xeaa40d,_0x44dd72);}function _0x2a7f93(_0x1303fa){const _0x2cb65e=_0x3f13;if(_0x1303fa&&typeof _0x1303fa==='object'&&Object['keys'](_0x1303fa)['length']===0x1&&_0x1303fa[_0x2cb65e(0x55b)]!==undefined)return _0x2e7f63[_0x2cb65e(0x616)](_0x1303fa[_0x2cb65e(0x55b)]);return _0x1303fa;}function _0x2a08b5(_0x3bf0a1){const _0x505ed9=_0x3f13;let _0x4a780a=![],_0x15c7f2=![],_0x462f63;_0x3bf0a1[_0x505ed9(0x1df)](_0x276af3=>{_0x4a780a=!![],_0x462f63=_0x276af3;},_0x2b5dc7=>{_0x4a780a=!![],_0x15c7f2=!![],_0x462f63=_0x2b5dc7;});for(let _0x3d15d2=0x0;_0x3d15d2<0x2710&&!_0x4a780a;_0x3d15d2++)process['_tickCallback']();if(!_0x4a780a)return _0x3bf0a1[_0x505ed9(0x1df)](undefined,_0x5845cd=>{const _0x3c1d11=_0x505ed9;try{process[_0x3c1d11(0x307)](_0x3c1d11(0x183)+(_0x5845cd&&_0x5845cd[_0x3c1d11(0x806)]?_0x5845cd[_0x3c1d11(0x806)]:_0x5845cd));}catch{}}),undefined;if(_0x15c7f2)throw _0x462f63;return _0x462f63;}function _0x597d87(_0x2699d0,_0xee2b8a,_0x39e728){const _0x40cb67=_0x3f13,_0x1fdc2b=_0x2ffd1f(_0x2699d0),_0xf1e694=_0x46581c[_0x40cb67(0x616)](_0xee2b8a);try{const _0x281a7f=_0x1fdc2b(_0x39e728,{'okdb':_0xf1e694&&_0xf1e694[_0x40cb67(0x555)],'env':_0xf1e694});if(_0x281a7f&&typeof _0x281a7f['then']===_0x40cb67(0x40e))_0x2a08b5(_0x281a7f);}catch(_0x53df6c){if(_0x53df6c&&_0x53df6c[_0x40cb67(0x623)]===!![]&&_0x53df6c[_0x40cb67(0x431)]!==_0x40cb67(0x150)){const _0x183325=new Error(_0x53df6c[_0x40cb67(0x806)]);_0x183325[_0x40cb67(0x431)]='__HOLD__';throw _0x183325;}throw _0x53df6c;}}const _0x2a5590=new Map();function _0x4b93b3(_0x1abced,_0x13dafa,_0x28a6df,_0x4c17af,_0x9ef096,_0x475f92){const _0x196e86=_0x3f13,_0x3d0014=_0x2ffd1f(_0x1abced),_0xe72497=(_0x46581c[_0x196e86(0x616)](_0x475f92)||{})['okdb']||_0x347c1f,_0x56c4d4=new AbortController(),_0x2c0b25=(_0x118c42,..._0x170f47)=>_0xe72497['_call']('queue',_0x196e86(0x693),_0x118c42,_0x170f47,![]),_0x500e96={'okdb':_0xe72497,'env':_0x46581c[_0x196e86(0x616)](_0x475f92)||null,'job':_0x4c17af,'jobId':_0x9ef096,'signal':_0x56c4d4[_0x196e86(0x4ea)],'heartbeat':()=>_0x2c0b25(_0x196e86(0x198),_0x28a6df),'markProgress':_0x1495cf=>_0x2c0b25(_0x196e86(0x389),_0x28a6df,_0x1495cf),'log':(_0x431367,_0x421d3d)=>_0x2c0b25(_0x196e86(0x6c7),_0x28a6df,_0x431367,_0x421d3d)};_0x2a5590[_0x196e86(0x488)](_0x28a6df,{'ctrl':_0x56c4d4,'call':_0x2c0b25});const _0x15ab64=()=>{const _0x57dc79=_0x196e86;_0x2a5590[_0x57dc79(0x727)](_0x28a6df);try{_0x2c0b25(_0x57dc79(0x74c),_0x28a6df);}catch{}};let _0x546878;try{_0x546878=_0x3d0014(_0x13dafa,_0x500e96);}catch(_0x2251cc){_0x15ab64();throw _0x2251cc;}if(_0x546878&&typeof _0x546878[_0x196e86(0x1df)]===_0x196e86(0x40e)){const _0x499439=_0x13efcc(_0x546878);return _0x546878['then'](_0x15ab64,_0x15ab64),{'$token':_0x499439};}return _0x15ab64(),_0x546878;}function _0x34c9a0(){const _0x5c2def=_0x3f13;for(const [_0x2479bd,_0x29c2e7]of _0x2a5590){if(_0x29c2e7[_0x5c2def(0x5ab)][_0x5c2def(0x4ea)][_0x5c2def(0x88b)])continue;let _0x4ca9fd;try{_0x4ca9fd=_0x29c2e7[_0x5c2def(0x881)](_0x5c2def(0x6ae),_0x2479bd);}catch{continue;}if(_0x4ca9fd&&_0x4ca9fd[_0x5c2def(0x88b)]){const {OKDBError:_0x5f1085}=requireErrors();_0x29c2e7[_0x5c2def(0x5ab)][_0x5c2def(0x19f)](new _0x5f1085(_0x4ca9fd[_0x5c2def(0x806)],_0x4ca9fd[_0x5c2def(0x431)]));}}}let _0x347c1f=null;function _0x3dec7b(_0x34eb46){_0x347c1f=_0x34eb46;}function _0x474cbb(_0x803653,_0x400bb3,_0x47d863,_0x11785b,_0x5a2b63,_0x269cc3,_0x68bfb4){const _0x1e13bc=_0x3f13,_0x364539=_0x2ffd1f(_0x803653),_0x3ae605=_0x46581c[_0x1e13bc(0x616)](_0x47d863);try{const _0xa9c720=_0x400bb3?_0x364539(_0x5a2b63,_0x269cc3):_0x364539({'env':_0x3ae605,'okdb':_0x3ae605&&_0x3ae605[_0x1e13bc(0x555)],'payload':_0x2a7f93(_0x11785b)},_0x5a2b63,_0x269cc3);if(_0xa9c720&&typeof _0xa9c720[_0x1e13bc(0x1df)]===_0x1e13bc(0x40e)){if(_0x269cc3&&_0x269cc3[_0x1e13bc(0x75b)]==='inline')_0xa9c720[_0x1e13bc(0x1df)](undefined,()=>{});else{if(_0x68bfb4){const _0x4ec4ed=_0x306646(_0xa9c720);if(_0x4ec4ed===0x0)return null;return{'$token':_0x4ec4ed};}else _0x2a08b5(_0xa9c720);}}}catch(_0x5efdb2){if(_0x5efdb2&&_0x5efdb2[_0x1e13bc(0x623)]===!![]&&_0x5efdb2[_0x1e13bc(0x431)]!=='__HOLD__'){const _0x10d5fc=new Error(_0x5efdb2[_0x1e13bc(0x806)]);_0x10d5fc[_0x1e13bc(0x431)]=_0x1e13bc(0x150);throw _0x10d5fc;}throw _0x5efdb2;}return null;}function _0x306646(_0x503777){const _0x1a03b2=_0x3f13;let _0x178358=_0x1a03b2(0x4ef),_0x57cbd5;_0x503777[_0x1a03b2(0x1df)](_0x2c93ad=>{_0x178358='ok',_0x57cbd5=_0x2c93ad;},_0x5e9f0a=>{const _0x3767c3=_0x1a03b2;_0x178358=_0x3767c3(0x5e2),_0x57cbd5=_0x5e9f0a;});for(let _0x515e47=0x0;_0x515e47<0x64&&_0x178358===_0x1a03b2(0x4ef);_0x515e47++)process[_0x1a03b2(0x500)]();if(_0x178358==='ok')return 0x0;const _0x5c58a4=_0x3f1548++,_0x367a1e={'state':_0x178358,'value':_0x57cbd5};_0x242a1d[_0x1a03b2(0x488)](_0x5c58a4,_0x367a1e);if(_0x178358===_0x1a03b2(0x4ef))_0x503777[_0x1a03b2(0x1df)](_0x2b8612=>{const _0x520bd4=_0x1a03b2;_0x367a1e[_0x520bd4(0x823)]='ok',_0x367a1e[_0x520bd4(0x7fd)]=_0x2b8612,_0x3cbd84();},_0xc63ccd=>{const _0x54d995=_0x1a03b2;_0x367a1e[_0x54d995(0x823)]=_0x54d995(0x5e2),_0x367a1e[_0x54d995(0x7fd)]=_0xc63ccd,_0x3cbd84();});return _0x5c58a4;}function _0x43cff5(_0x5cafbc){const _0xb0c65b=_0x3f13;let _0x4c60d6=_0x33633a[_0xb0c65b(0x616)](_0x5cafbc);return _0x4c60d6===undefined&&(_0x4c60d6=_0x496132++,_0x33633a[_0xb0c65b(0x488)](_0x5cafbc,_0x4c60d6),_0x2aa5e6[_0xb0c65b(0x488)](_0x4c60d6,{'fn':_0x5cafbc,'refs':0x0})),_0x2aa5e6[_0xb0c65b(0x616)](_0x4c60d6)[_0xb0c65b(0x3d2)]++,_0x4c60d6;}function _0x14c471(_0x349c92){const _0x532c5e=_0x3f13,_0x4a9f72=_0x2aa5e6[_0x532c5e(0x616)](_0x349c92);if(!_0x4a9f72)return;--_0x4a9f72[_0x532c5e(0x3d2)]<=0x0&&(_0x2aa5e6[_0x532c5e(0x727)](_0x349c92),_0x33633a[_0x532c5e(0x727)](_0x4a9f72['fn']));}function _0x2ffd1f(_0x195eb8){const _0xf94800=_0x3f13,_0x4014e8=_0x2aa5e6[_0xf94800(0x616)](_0x195eb8);if(!_0x4014e8)throw new Error(_0xf94800(0x376)+_0x195eb8);return _0x4014e8['fn'];}function _0x13efcc(_0x4e12f5){const _0x113d82=_0x3f13;if(_0x4e12f5&&typeof _0x4e12f5[_0x113d82(0x1df)]===_0x113d82(0x40e)){const _0x4d0ce4=_0x3f1548++,_0x245367={'state':'pending','value':undefined};return _0x242a1d[_0x113d82(0x488)](_0x4d0ce4,_0x245367),_0x4e12f5['then'](_0x343355=>{const _0x1159c4=_0x113d82;_0x245367[_0x1159c4(0x823)]='ok',_0x245367[_0x1159c4(0x7fd)]=_0x343355,_0x3cbd84();},_0x3b864a=>{const _0x314eaf=_0x113d82;_0x245367[_0x314eaf(0x823)]=_0x314eaf(0x5e2),_0x245367['value']=_0x3b864a,_0x3cbd84();}),_0x4d0ce4;}return 0x0;}let _0x34d0d8=()=>{},_0x4ef51f=null;function _0x2374a8(_0x1287fb,_0xc05943=null){_0x34d0d8=_0x1287fb,_0x4ef51f=_0xc05943;}function _0xf90fed(_0xdf981f){return _0x4ef51f===_0xdf981f;}function _0x3cbd84(){_0x34d0d8();}function _0x23a59e(_0x3d8f24){const _0x243692=_0x3f13,_0x174f2c=_0x242a1d[_0x243692(0x616)](_0x3d8f24);if(!_0x174f2c)return{'state':_0x243692(0x5e2),'error':{'message':_0x243692(0x683)}};if(_0x174f2c[_0x243692(0x823)]===_0x243692(0x4ef))return{'state':_0x243692(0x4ef)};_0x242a1d['delete'](_0x3d8f24);if(_0x174f2c[_0x243692(0x823)]==='ok')return{'state':'ok','value':_0x174f2c[_0x243692(0x7fd)]};const _0x64581=_0x174f2c[_0x243692(0x7fd)];return{'state':_0x243692(0x5e2),'error':{'message':_0x64581&&_0x64581[_0x243692(0x806)]!=null?String(_0x64581[_0x243692(0x806)]):String(_0x64581),'stack':_0x64581&&_0x64581[_0x243692(0x5e8)],'code':_0x64581&&_0x64581[_0x243692(0x431)],'status':_0x64581&&typeof _0x64581[_0x243692(0x371)]==='number'?_0x64581[_0x243692(0x371)]:undefined,'hold':!!(_0x64581&&_0x64581['processorHold']===!![])}};}function _0xbcbce(_0x251789,_0x107535){const _0x3324be=_0x3f13;_0x2dcc9e[_0x3324be(0x488)](_0x251789,_0x107535);}function _0x15c836(_0x3a8773){const _0x2d4858=_0x3f13;_0x2dcc9e[_0x2d4858(0x727)](_0x3a8773);}let _0x2cfdad=0x0;function _0x564ce3(){return _0x2cfdad>0x0;}function _0x502a0b(){_0x2cfdad++;try{return _0x5378ae['apply'](undefined,arguments);}finally{_0x2cfdad--;}}function _0x5378ae(_0x508c18,_0x33c26d,_0x4d7c04,_0x343974,_0x667e38,_0x224957){const _0x566796=_0x3f13;switch(_0x508c18){case _0x566796(0x3db):return _0x43cff5(_0x33c26d);case _0x566796(0x5e4):return _0x14c471(_0x33c26d);case _0x566796(0x881):{const _0x94fb29=Array['prototype'][_0x566796(0x4e8)][_0x566796(0x881)](arguments,0x2),_0x3621e7=_0x2ffd1f(_0x33c26d)[_0x566796(0x2ec)](undefined,_0x94fb29);return _0x3621e7&&typeof _0x3621e7['then']===_0x566796(0x40e)?_0x2a08b5(_0x3621e7):_0x3621e7;}case _0x566796(0x24d):{const _0x37fb5d=Array[_0x566796(0x259)][_0x566796(0x4e8)][_0x566796(0x881)](arguments,0x2),_0x46eb5c=_0x2ffd1f(_0x33c26d)[_0x566796(0x2ec)](undefined,_0x37fb5d);if(_0x46eb5c&&typeof _0x46eb5c['then']===_0x566796(0x40e))return{'$token':_0x13efcc(_0x46eb5c)};return{'$value':_0x46eb5c===undefined?null:_0x46eb5c,'$undef':_0x46eb5c===undefined};}case _0x566796(0x68b):{const _0x3c1a9b=_0x2dcc9e[_0x566796(0x616)](_0x33c26d);if(_0x3c1a9b)_0x3c1a9b[_0x566796(0x1ab)](_0x4d7c04,_0x343974);return undefined;}case _0x566796(0x629):{const _0x2b1614=_0x2dcc9e['get'](_0x33c26d);if(_0x2b1614)_0x2b1614[_0x566796(0x312)](_0x4d7c04);return undefined;}case _0x566796(0x54a):return _0x474cbb(_0x33c26d,_0x4d7c04,_0x343974,_0x667e38,_0x224957,arguments[0x6],arguments[0x7]);case _0x566796(0x549):return _0x597d87(_0x33c26d,_0x4d7c04,_0x343974);case _0x566796(0x7da):return _0x4b93b3(_0x33c26d,_0x4d7c04,_0x343974,_0x667e38,_0x224957,arguments[0x6]);case _0x566796(0x739):return _0x51cd4d[_0x566796(0x2ec)](null,Array[_0x566796(0x259)][_0x566796(0x4e8)][_0x566796(0x881)](arguments,0x1));case'api':return _0x237d55(_0x33c26d,_0x4d7c04,_0x343974);case _0x566796(0x816):return _0x23a59e(_0x33c26d);case _0x566796(0x742):{const _0x4dbcb5=((async()=>{const _0x3eab8e=_0x566796,_0x2068a5=await globalThis[_0x3eab8e(0x777)](_0x33c26d);if(!_0x2068a5['ok']){const _0x8a24cd=new Error(_0x3eab8e(0x18e)+_0x2068a5[_0x3eab8e(0x371)]);_0x8a24cd[_0x3eab8e(0x431)]=_0x3eab8e(0x76c);throw _0x8a24cd;}return _0x2068a5[_0x3eab8e(0x3c3)]();})());return _0x2a08b5(_0x4dbcb5)??null;}case'emb':return _0x19797b(_0x33c26d,_0x4d7c04,_0x343974);case'alg':return _0x1c70a7(_0x33c26d,_0x4d7c04,_0x343974);case _0x566796(0x35a):return _0x2541a0(_0x33c26d,_0x4d7c04,_0x343974);default:throw new Error(_0x566796(0x48f)+_0x508c18);}}return bridge_1={'inNativeCall':_0x564ce3,'regObject':_0x3122bb,'checkSignals':_0x34c9a0,'setCurrentDb':_0x3dec7b,'forgetDb':_0x1f16aa,'storePayload':_0x14861c,'registerEnv':_0x12e9a2,'resolvePayload':_0x2a7f93,'bridge':_0x502a0b,'reg':_0x43cff5,'unreg':_0x14c471,'fnOf':_0x2ffd1f,'track':_0x13efcc,'resolve':_0x23a59e,'registerTarget':_0xbcbce,'unregisterTarget':_0x15c836,'setKick':_0x2374a8,'kickOwnedBy':_0xf90fed},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1a1003=_0x1ade1a;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x1d90d5}=requireErrors(),_0xeeca54=requireBridge(),_0x325b4f=new Map();let _0x2f6de9=null;function _0xe3b023(_0x2bec23){const _0x1cad52=_0x3f13;if(_0x2f6de9)return;_0x2f6de9=_0x2bec23,_0x2bec23[_0x1cad52(0x364)](_0x1512f3);}function _0x1512f3(){const _0x3ad93e=_0x3f13,_0x28db7e=_0x2f6de9[_0x3ad93e(0x768)]();for(const _0x174f4f of _0x28db7e){const _0x2aa0e3=_0x325b4f[_0x3ad93e(0x616)](_0x174f4f);_0x2aa0e3&&(_0x325b4f['delete'](_0x174f4f),_0x2aa0e3());}}function _0x359652(_0x50958c,_0x4cf5e7){const _0x59a9af=_0x3f13;_0x325b4f[_0x59a9af(0x488)](_0x50958c,_0x4cf5e7);}class _0x5b5a03{constructor(_0x3e4464){const _0x1cc3ab=_0x3f13;this['db']=_0x3e4464,this['queue']=[],this['scheduled']=![],this[_0x1cc3ab(0x362)]=![],this[_0x1cc3ab(0x4cf)]=new Set();}[_0x1a1003(0x281)](_0x1cead6,_0x3f8425,_0x5c1eed,_0x201404){const _0x412360=_0x1a1003;if(_0xeeca54[_0x412360(0x2d6)]())try{return Promise[_0x412360(0x816)](this['db'][_0x412360(0x82b)](_0x1cead6,_0x3f8425,_0x5c1eed,_0x201404));}catch(_0x54540a){return Promise[_0x412360(0x19a)](_0x54540a);}const _0x4130c6=new Promise((_0x1adf30,_0x15f9e3)=>{const _0x5b8f5b=_0x412360;this['queue'][_0x5b8f5b(0x2e6)]({'item':[_0x1cead6,_0x3f8425,_0x5c1eed,_0x201404],'resolve':_0x1adf30,'reject':_0x15f9e3});});this[_0x412360(0x4cf)][_0x412360(0x76e)](_0x4130c6);const _0x5170d9=()=>this[_0x412360(0x4cf)][_0x412360(0x727)](_0x4130c6);return _0x4130c6[_0x412360(0x1df)](_0x5170d9,_0x5170d9),!this[_0x412360(0x4f5)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x5b2df1=_0x412360;this[_0x5b2df1(0x4f5)]=![],this[_0x5b2df1(0x346)]();})),_0x4130c6;}['commit'](){const _0x174097=_0x1a1003;if(!this[_0x174097(0x7b6)][_0x174097(0x479)])return;if(this[_0x174097(0x362)]){!this[_0x174097(0x4f5)]&&(this[_0x174097(0x4f5)]=!![],setImmediate(()=>{const _0x2163fd=_0x174097;this[_0x2163fd(0x4f5)]=![],this[_0x2163fd(0x346)]();}));return;}const _0x16b9f1=this[_0x174097(0x7b6)];this[_0x174097(0x7b6)]=[],this['_run'](_0x16b9f1);}[_0x1a1003(0x59e)](_0x570333){const _0x5f3ceb=_0x1a1003;let _0x58af40;this['inBatch']=!![];try{_0x58af40=this['db'][_0x5f3ceb(0x18f)][_0x5f3ceb(0x5d3)](_0x570333[_0x5f3ceb(0x6f2)](_0x73cdbc=>_0x73cdbc[_0x5f3ceb(0x51e)]));}catch(_0x4ad467){this[_0x5f3ceb(0x362)]=![];if(_0x570333[_0x5f3ceb(0x479)]>0x1){for(const _0x512468 of _0x570333)this[_0x5f3ceb(0x59e)]([_0x512468]);return;}const _0x2c71ac=_0x1d90d5(_0x4ad467);for(const _0x162a0f of _0x570333)_0x162a0f[_0x5f3ceb(0x19a)](_0x2c71ac);return;}finally{this[_0x5f3ceb(0x362)]=![];}try{this['db'][_0x5f3ceb(0x755)][_0x5f3ceb(0x270)]();}catch{}const [_0x109dd1,_0x5296ee]=_0x58af40;_0x359652(_0x5296ee,()=>{const _0xa73499=_0x5f3ceb;for(let _0x4e05fb=0x0;_0x4e05fb<_0x570333['length'];_0x4e05fb++){const _0x3aea7a=_0x109dd1[_0x4e05fb];if(_0x3aea7a&&_0x3aea7a[0x0])_0x570333[_0x4e05fb]['resolve'](_0x3aea7a[0x1]);else _0x570333[_0x4e05fb][_0xa73499(0x19a)](_0x1d90d5(_0x3aea7a?_0x3aea7a[0x1]:new Error(_0xa73499(0x5c9))));}});}async[_0x1a1003(0x303)](){const _0x39798c=_0x1a1003;this[_0x39798c(0x346)]();while(this[_0x39798c(0x4cf)][_0x39798c(0x1d3)]){await Promise[_0x39798c(0x82e)]([...this[_0x39798c(0x4cf)]]),this[_0x39798c(0x346)]();}let _0x4cb27d;try{_0x4cb27d=this['db'][_0x39798c(0x18f)][_0x39798c(0x865)]();}catch{return;}await new Promise(_0x205925=>_0x359652(_0x4cb27d,_0x205925));}}return writebatch={'install':_0xe3b023,'WriteBatch':_0x5b5a03,'whenSettled':_0x359652},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x533e3b=_0x1ade1a;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0xf13299=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x27cd30{constructor(_0x364208){const _0x5e2311=_0x3f13;this['native']=_0x364208,this['timer']=null,this[_0x5e2311(0x4ab)]=null,this['running']=![],this[_0x5e2311(0x26b)]=![],this[_0x5e2311(0x796)]=![],this[_0x5e2311(0x1d1)]=![],this['turns']=0x0,this[_0x5e2311(0x3d5)]=[],this[_0x5e2311(0x793)]=[];}['nextTurn'](_0x519d52){return new Promise(_0xc7a45a=>{const _0x3e82a6=_0x3f13,_0x5452d0=setTimeout(_0x7cbb54,_0x519d52);function _0x7cbb54(){clearTimeout(_0x5452d0),_0xc7a45a();}this[_0x3e82a6(0x793)][_0x3e82a6(0x2e6)](_0x7cbb54);});}[_0x533e3b(0x297)](){const _0x519c5d=_0x533e3b;if(this[_0x519c5d(0x793)][_0x519c5d(0x479)]===0x0)return;const _0x1f6378=this[_0x519c5d(0x793)];this[_0x519c5d(0x793)]=[];for(const _0x2df313 of _0x1f6378)_0x2df313();}['start'](){const _0x2b8723=_0x533e3b;this[_0x2b8723(0x26b)]=![],this['wake']();}[_0x533e3b(0x851)](){const _0x21870a=_0x533e3b;this[_0x21870a(0x26b)]=!![];if(this[_0x21870a(0x855)])clearTimeout(this[_0x21870a(0x855)]);if(this[_0x21870a(0x4ab)])clearImmediate(this[_0x21870a(0x4ab)]);this[_0x21870a(0x855)]=this[_0x21870a(0x4ab)]=null,this[_0x21870a(0x297)]();}['wake'](){const _0x4d4522=_0x533e3b;if(this[_0x4d4522(0x26b)]||this[_0x4d4522(0x4ab)])return;this['timer']&&(clearTimeout(this[_0x4d4522(0x855)]),this[_0x4d4522(0x855)]=null),this['immediate']=setImmediate(()=>{const _0x381730=_0x4d4522;this['immediate']=null,this[_0x381730(0x5c8)]();});}['turn'](){const _0x32d241=_0x533e3b;if(this[_0x32d241(0x26b)]||this[_0x32d241(0x796)]){this['dirty']=!![];return;}this[_0x32d241(0x796)]=!![];let _0x25b872;try{this['turns']++,_0x25b872=this[_0x32d241(0x83c)][_0x32d241(0x167)]();if(this['afterTurn'])this[_0x32d241(0x22f)]();}catch(_0x4e012e){_0x25b872=_0xf13299,process['nextTick'](()=>{throw _0x4e012e;});}finally{this[_0x32d241(0x796)]=![],this[_0x32d241(0x297)]();}if(this['stopped']||_0x25b872===-0x2)return;if(this[_0x32d241(0x1d1)])return this[_0x32d241(0x1d1)]=![],this[_0x32d241(0x270)]();const _0x51b71f=_0x25b872<0x0?_0xf13299:Math[_0x32d241(0x3c5)](0x0,Math[_0x32d241(0x5b5)](_0x25b872,_0xf13299));if(_0x51b71f<=0x0)return this[_0x32d241(0x270)]();this['timer']=setTimeout(()=>{const _0x1116e4=_0x32d241;this[_0x1116e4(0x855)]=null,this[_0x1116e4(0x5c8)]();},Math[_0x32d241(0x475)](_0x51b71f));if(this['timer']['unref'])this[_0x32d241(0x855)]['unref']();}}return pump={'Pumper':_0x27cd30},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x26e78a=_0x1ade1a;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x4a9c26=Symbol[_0x26e78a(0x28e)](_0x26e78a(0x703)),_0x300dd6={'value':null,'done':!![]},_0x7ed7be={'value':null,'done':!![]};!Symbol[_0x26e78a(0x269)]&&(Symbol[_0x26e78a(0x269)]=Symbol['for'](_0x26e78a(0x598)));const _0x12ca50={};class _0x3400d5{constructor(_0x57dbe3){const _0x281d71=_0x26e78a;_0x57dbe3&&(this['iterate']=_0x57dbe3[Symbol[_0x281d71(0x821)]][_0x281d71(0x2f4)](_0x57dbe3));}[_0x26e78a(0x6f2)](_0x2c74ba){const _0x204ce9=_0x26e78a;let _0x30474a=this,_0x1b8cfd=new _0x3400d5();return _0x1b8cfd[_0x204ce9(0x48b)]=(_0xb77084=_0x12ca50)=>{const _0x49c37a=_0x204ce9,{async:_0x35777c}=_0xb77084;let _0x188587=_0x30474a[_0x35777c?Symbol[_0x49c37a(0x269)]:Symbol[_0x49c37a(0x821)]](_0xb77084);if(!_0x35777c)_0x30474a[_0x49c37a(0x857)]=!![];let _0xe9973e=-0x1;return{'next'(_0x416966){const _0x5318b=_0x49c37a;let _0x30a5bb;do{let _0x243cc4;try{if(_0x416966)_0x243cc4=_0x416966,_0x416966=null;else{_0xe9973e++,_0x243cc4=_0x188587['next']();if(_0x243cc4[_0x5318b(0x1df)])return!_0x35777c&&this[_0x5318b(0x515)](new Error(_0x5318b(0x877))),_0x243cc4[_0x5318b(0x1df)](_0x645f49=>this['next'](_0x645f49),_0x3f99e8=>{const _0x139b63=_0x5318b;return this[_0x139b63(0x515)](_0x3f99e8);});}if(_0x243cc4[_0x5318b(0x45e)]===!![]){this[_0x5318b(0x45e)]=!![];if(_0x1b8cfd[_0x5318b(0x87b)])_0x1b8cfd[_0x5318b(0x87b)]();return _0x243cc4;}try{_0x30a5bb=_0x2c74ba[_0x5318b(0x881)](_0x30474a,_0x243cc4[_0x5318b(0x7fd)],_0xe9973e);if(_0x30a5bb&&_0x30a5bb[_0x5318b(0x1df)]&&_0x35777c)return _0x30a5bb[_0x5318b(0x1df)](_0x7d16e6=>_0x7d16e6===_0x4a9c26?this[_0x5318b(0x67f)]():{'value':_0x7d16e6},_0x45010b=>{const _0x55eccc=_0x5318b;if(_0xb77084[_0x55eccc(0x7c3)])_0x45010b['continueIteration']=!![];return this['throw'](_0x45010b);});}catch(_0x2f7700){if(_0xb77084[_0x5318b(0x7c3)])_0x2f7700[_0x5318b(0x7dd)]=!![];throw _0x2f7700;}}catch(_0x42e054){if(_0x1b8cfd['handleError'])try{_0x30a5bb=_0x1b8cfd[_0x5318b(0x163)](_0x42e054,_0xe9973e);}catch(_0x5d0eef){return this[_0x5318b(0x515)](_0x5d0eef);}else return this[_0x5318b(0x515)](_0x42e054);}}while(_0x30a5bb===_0x4a9c26);if(_0x30a5bb===_0x300dd6)return this[_0x5318b(0x5dc)]();return{'value':_0x30a5bb};},'return'(_0x3467c0){const _0x2cdeec=_0x49c37a;if(!this[_0x2cdeec(0x45e)]){_0x7ed7be[_0x2cdeec(0x7fd)]=_0x3467c0,this['done']=!![];if(_0x1b8cfd[_0x2cdeec(0x87b)])_0x1b8cfd[_0x2cdeec(0x87b)]();_0x188587[_0x2cdeec(0x5dc)]?.();}return _0x7ed7be;},'throw'(_0xb17a92){const _0x136e72=_0x49c37a;if(_0xb17a92[_0x136e72(0x7dd)]){if(_0x1b8cfd[_0x136e72(0x3c2)])try{return{'value':_0x1b8cfd[_0x136e72(0x3c2)](_0xb17a92)};}catch(_0x6cd12f){this[_0x136e72(0x5dc)]();throw _0x6cd12f;}if(_0xb77084[_0x136e72(0x7c3)])throw _0xb17a92;}this[_0x136e72(0x5dc)]();throw _0xb17a92;}};},_0x1b8cfd;}[Symbol[_0x26e78a(0x269)]](_0x7b0b84){const _0x193ef4=_0x26e78a;if(_0x7b0b84)_0x7b0b84={..._0x7b0b84,'async':!![]};else _0x7b0b84={'async':!![]};return this[_0x193ef4(0x821)]=this['iterate'](_0x7b0b84);}[Symbol['iterator']](_0x3a085d){const _0x1981cb=_0x26e78a;return this[_0x1981cb(0x821)]=this[_0x1981cb(0x48b)](_0x3a085d);}[_0x26e78a(0x658)](_0x16cd4c){const _0x334d97=_0x26e78a;let _0x292bf4=this[_0x334d97(0x6f2)](_0x25537c=>{const _0x3f12a5=_0x334d97;let _0xb2f75d=_0x16cd4c(_0x25537c);if(_0xb2f75d?.[_0x3f12a5(0x1df)])return _0xb2f75d['then'](_0x5790af=>_0x5790af?_0x25537c:_0x4a9c26);else return _0xb2f75d?_0x25537c:_0x4a9c26;}),_0x3cbc7e=_0x292bf4[_0x334d97(0x48b)];return _0x292bf4[_0x334d97(0x48b)]=(_0x368555=_0x12ca50)=>{const _0xca46eb=_0x334d97;if(_0x368555[_0xca46eb(0x7c3)])_0x368555={..._0x368555,'continueOnRecoverableError':![]};return _0x3cbc7e(_0x368555);},_0x292bf4;}[_0x26e78a(0x39f)](_0x3743e1){const _0x2df3bf=_0x26e78a;let _0x3d4ff2=this[_0x2df3bf(0x821)]=this[_0x2df3bf(0x48b)](),_0x32e7aa;while((_0x32e7aa=_0x3d4ff2[_0x2df3bf(0x67f)]())[_0x2df3bf(0x45e)]!==!![]){_0x3743e1(_0x32e7aa[_0x2df3bf(0x7fd)]);}}[_0x26e78a(0x45c)](_0x4d62ee){const _0xcc32c0=_0x26e78a;let _0x5bafa8=new _0x3400d5();return _0x5bafa8[_0xcc32c0(0x48b)]=(_0x5b19c9=_0x12ca50)=>{const _0x186a43=_0xcc32c0;let _0x2d7057=this[_0x186a43(0x821)]=this['iterate'](_0x5b19c9),_0x4d71c1=!![];function _0x1c9345(_0x20bb57){const _0x2eb2d5=_0x186a43;if(_0x4d71c1)try{_0x4d71c1=![],_0x2d7057=_0x4d62ee[_0x5b19c9[_0x2eb2d5(0x38a)]?Symbol[_0x2eb2d5(0x269)]:Symbol[_0x2eb2d5(0x821)]](),_0x20bb57=_0x2d7057['next']();if(_0x5bafa8[_0x2eb2d5(0x87b)]){if(_0x20bb57[_0x2eb2d5(0x1df)]){if(!_0x5b19c9['async'])throw new Error(_0x2eb2d5(0x877));_0x20bb57[_0x2eb2d5(0x1df)](_0x278b5e=>{const _0x165958=_0x2eb2d5;if(_0x278b5e[_0x165958(0x45e)]())_0x5bafa8[_0x165958(0x87b)]();},_0x2fb54d=>{const _0x4192ac=_0x2eb2d5;this[_0x4192ac(0x5dc)]();throw _0x2fb54d;});}else{if(_0x20bb57['done'])_0x5bafa8[_0x2eb2d5(0x87b)]();}}}catch(_0x54b7c4){this[_0x2eb2d5(0x515)](_0x54b7c4);}else{if(_0x5bafa8[_0x2eb2d5(0x87b)])_0x5bafa8[_0x2eb2d5(0x87b)]();}return _0x20bb57;}return{'next'(){const _0x27d25e=_0x186a43;try{let _0x5093b7=_0x2d7057[_0x27d25e(0x67f)]();if(_0x5093b7[_0x27d25e(0x1df)]){if(!_0x5b19c9['async'])throw new Error(_0x27d25e(0x877));return _0x5093b7[_0x27d25e(0x1df)](_0x291387=>{const _0x3a1a53=_0x27d25e;if(_0x291387[_0x3a1a53(0x45e)])return _0x1c9345(_0x291387);return _0x291387;});}if(_0x5093b7[_0x27d25e(0x45e)])return _0x1c9345(_0x5093b7);return _0x5093b7;}catch(_0x248950){this[_0x27d25e(0x515)](_0x248950);}},'return'(_0x216eb1){const _0x22186b=_0x186a43;if(!this[_0x22186b(0x45e)]){_0x7ed7be[_0x22186b(0x7fd)]=_0x216eb1,this[_0x22186b(0x45e)]=!![];if(_0x5bafa8[_0x22186b(0x87b)])_0x5bafa8[_0x22186b(0x87b)]();_0x2d7057['return']();}return _0x7ed7be;},'throw'(_0x25dc87){const _0x4ca374=_0x186a43;if(_0x5b19c9[_0x4ca374(0x7c3)])throw _0x25dc87;this[_0x4ca374(0x5dc)]();throw _0x25dc87;}};},_0x5bafa8;}[_0x26e78a(0x3f1)](_0x49c71e){const _0x49b21b=_0x26e78a;let _0x3a220e=new _0x3400d5();return _0x3a220e[_0x49b21b(0x48b)]=(_0x4ffe38=_0x12ca50)=>{const _0x2e51ef=_0x49b21b;let _0x5af8b3=this[_0x2e51ef(0x821)]=this[_0x2e51ef(0x48b)](_0x4ffe38),_0xb2cc25;return{'next'(_0x2b6a89){const _0x29ae6d=_0x2e51ef;try{do{if(_0xb2cc25){let _0x387e5c;if(_0x2b6a89)_0x387e5c=_0x2b6a89,_0x2b6a89=undefined;else _0x387e5c=_0xb2cc25[_0x29ae6d(0x67f)]();if(_0x387e5c[_0x29ae6d(0x1df)]){if(!_0x4ffe38[_0x29ae6d(0x38a)])throw new Error(_0x29ae6d(0x877));return _0x387e5c[_0x29ae6d(0x1df)](_0x36a66a=>this[_0x29ae6d(0x67f)](_0x36a66a));}if(!_0x387e5c[_0x29ae6d(0x45e)])return _0x387e5c;}let _0x25ae3f;if(_0x2b6a89!=undefined)_0x25ae3f=_0x2b6a89,_0x2b6a89=undefined;else _0x25ae3f=_0x5af8b3[_0x29ae6d(0x67f)]();if(_0x25ae3f[_0x29ae6d(0x1df)]){if(!_0x4ffe38[_0x29ae6d(0x38a)])throw new Error(_0x29ae6d(0x877));return _0xb2cc25=undefined,_0x25ae3f[_0x29ae6d(0x1df)](_0x10ead0=>this[_0x29ae6d(0x67f)](_0x10ead0));}if(_0x25ae3f[_0x29ae6d(0x45e)]){if(_0x3a220e[_0x29ae6d(0x87b)])_0x3a220e[_0x29ae6d(0x87b)]();return _0x25ae3f;}try{let _0x22f9ac=_0x49c71e(_0x25ae3f['value']);if(_0x22f9ac?.[_0x29ae6d(0x1df)]){if(!_0x4ffe38['async'])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x22f9ac[_0x29ae6d(0x1df)](_0x530e97=>{const _0x287e38=_0x29ae6d;return Array[_0x287e38(0x4b6)](_0x530e97)||_0x530e97 instanceof _0x3400d5?(_0xb2cc25=_0x530e97[Symbol[_0x287e38(0x821)]](),this[_0x287e38(0x67f)]()):(_0xb2cc25=null,{'value':_0x530e97});},_0x85c670=>{const _0x4ea66a=_0x29ae6d;if(_0x4ffe38['continueOnRecoverableError'])_0x85c670[_0x4ea66a(0x7dd)]=!![];this[_0x4ea66a(0x515)](_0x85c670);});}if(Array[_0x29ae6d(0x4b6)](_0x22f9ac)||_0x22f9ac instanceof _0x3400d5)_0xb2cc25=_0x22f9ac[Symbol[_0x29ae6d(0x821)]]();else return _0xb2cc25=null,{'value':_0x22f9ac};}catch(_0x2ad533){if(_0x4ffe38[_0x29ae6d(0x7c3)])_0x2ad533[_0x29ae6d(0x7dd)]=!![];throw _0x2ad533;}}while(!![]);}catch(_0x263286){this[_0x29ae6d(0x515)](_0x263286);}},'return'(){const _0x55a754=_0x2e51ef;if(_0x3a220e[_0x55a754(0x87b)])_0x3a220e[_0x55a754(0x87b)]();if(_0xb2cc25)_0xb2cc25[_0x55a754(0x5dc)]();return _0x5af8b3[_0x55a754(0x5dc)]();},'throw'(_0x3646cc){const _0x59ae8b=_0x2e51ef;if(_0x4ffe38[_0x59ae8b(0x7c3)])throw _0x3646cc;if(_0x3a220e[_0x59ae8b(0x87b)])_0x3a220e[_0x59ae8b(0x87b)]();if(_0xb2cc25)_0xb2cc25[_0x59ae8b(0x5dc)]();this[_0x59ae8b(0x5dc)]();throw _0x3646cc;}};},_0x3a220e;}[_0x26e78a(0x4e8)](_0x12a6ad,_0x42dc49){const _0x146148=_0x26e78a;let _0x2b9762=this[_0x146148(0x6f2)]((_0x588ef3,_0x2ed164)=>{const _0x4364d4=_0x146148;if(_0x2ed164<_0x12a6ad)return _0x4a9c26;if(_0x2ed164>=_0x42dc49)return _0x300dd6[_0x4364d4(0x7fd)]=_0x588ef3,_0x300dd6;return _0x588ef3;});return _0x2b9762[_0x146148(0x163)]=(_0x5056e5,_0x2bdd99)=>{if(_0x2bdd99<_0x12a6ad)return _0x4a9c26;if(_0x2bdd99>=_0x42dc49)return _0x300dd6;throw _0x5056e5;},_0x2b9762;}[_0x26e78a(0x3a4)](_0x57f6bd){const _0x28b50e=_0x26e78a;if(typeof _0x57f6bd!==_0x28b50e(0x40e))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x112f8f=this[_0x28b50e(0x6f2)](_0x1a59d7=>{return _0x1a59d7;}),_0x2e22be=_0x112f8f[_0x28b50e(0x48b)];return _0x112f8f[_0x28b50e(0x48b)]=(_0x47e359=_0x12ca50)=>{return _0x2e22be({..._0x47e359,'continueOnRecoverableError':!![]});},_0x112f8f['returnRecoverableErrors']=_0x57f6bd,_0x112f8f;}[_0x26e78a(0x67f)](){const _0x62a872=_0x26e78a;if(!this[_0x62a872(0x821)])this[_0x62a872(0x821)]=this[_0x62a872(0x48b)]();return this[_0x62a872(0x821)][_0x62a872(0x67f)]();}[_0x26e78a(0x644)](){const _0x2dda38=_0x26e78a;if(this[_0x2dda38(0x34f)]&&this['asArray'][_0x2dda38(0x39f)])return this[_0x2dda38(0x34f)];const _0x5e03ee=new Error(_0x2dda38(0x6fe));_0x5e03ee[_0x2dda38(0x6b6)]=this[_0x2dda38(0x34f)];throw _0x5e03ee;}get[_0x26e78a(0x34f)](){const _0x44bd3d=_0x26e78a;if(this['_asArray'])return this[_0x44bd3d(0x562)];let _0x3b8992=new Promise((_0x1940b1,_0x23b4bf)=>{const _0x541ba6=_0x44bd3d;let _0x4ecf83=this[_0x541ba6(0x48b)](!![]),_0x4ad8dc=[],_0x36e010=this;Object[_0x541ba6(0x882)](_0x4ad8dc,_0x541ba6(0x36a),{'value':_0x36e010});function _0x641bc2(_0x2a777a){const _0x37629b=_0x541ba6;while(_0x2a777a[_0x37629b(0x45e)]!==!![]){if(_0x2a777a[_0x37629b(0x1df)])return _0x2a777a[_0x37629b(0x1df)](_0x641bc2);else _0x4ad8dc[_0x37629b(0x2e6)](_0x2a777a[_0x37629b(0x7fd)]);_0x2a777a=_0x4ecf83['next']();}_0x1940b1(_0x36e010[_0x37629b(0x562)]=_0x4ad8dc);}_0x641bc2(_0x4ecf83[_0x541ba6(0x67f)]());});return _0x3b8992['iterable']=this,this['_asArray']||(this[_0x44bd3d(0x562)]=_0x3b8992);}[_0x26e78a(0x305)](){return this['asArray'];}['at'](_0x341b82){for(let _0x1adda3 of this){if(_0x341b82--===0x0)return _0x1adda3;}}}return _0x3400d5[_0x26e78a(0x259)][_0x26e78a(0x6c9)]=_0x300dd6,dist$1[_0x26e78a(0x14c)]=_0x3400d5,dist$1[_0x26e78a(0x564)]=_0x4a9c26,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x9648e8=_0x1ade1a;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x247cbb}=requireDist$1(),_0x4033cc=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x13b591=Math[_0x9648e8(0x5b5)](_0x4033cc,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x5423f9=new Set(['getRange',_0x9648e8(0x1f0),_0x9648e8(0x3a1),'getChanges']),_0x1047c7=Math[_0x9648e8(0x5b5)](_0x13b591,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x5cea3f=0x4,_0x8634a4=(_0x131a4a,_0xac94a7=_0x4033cc)=>Math['min'](_0xac94a7,_0x131a4a*_0x5cea3f),_0x5dde11={'value':undefined,'done':!![]};function _0x1252c8(_0x458027){const _0x210b44=new _0x247cbb();return _0x210b44['iterate']=()=>{let _0x19a1fe=0x0;return{'next'(){const _0x11eec9=_0x3f13;return _0x19a1fe<_0x458027[_0x11eec9(0x479)]?{'value':_0x458027[_0x19a1fe++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){return _0x19a1fe=_0x458027['length'],{'value':undefined,'done':!![]};},'throw'(){const _0x25f6a9=_0x3f13;return _0x19a1fe=_0x458027[_0x25f6a9(0x479)],{'value':undefined,'done':!![]};}};},_0x210b44;}const _0x16b521=_0x1e773a=>typeof _0x1e773a===_0x9648e8(0x729)&&!Number[_0x9648e8(0x41f)](_0x1e773a)?Math[_0x9648e8(0x3c5)](0x0,Math['ceil'](_0x1e773a)):Infinity,_0x12e089=_0x3bacb7=>typeof _0x3bacb7==='number'?Math[_0x9648e8(0x3c5)](0x0,Math['trunc'](_0x3bacb7))||0x0:0x0;function _0x206d1b(_0x9042fa,_0x4b00ab,_0x1d23b6,_0x159587={}){const _0x4a2a77=_0x9648e8,_0x382cc7=new _0x247cbb(),_0x17c6cf=(_0x159587[_0x4a2a77(0x181)]||_0x16b521)(_0x4b00ab[_0x4a2a77(0x5fd)]),_0x186828=_0x159587[_0x4a2a77(0x43a)]?_0x13b591:_0x4033cc,_0x5beee1=_0x159587['resumeOpts']||((_0x3cb613,_0x588378)=>{const _0x2aae80=_0x4a2a77;_0x3cb613[_0x2aae80(0x525)]=_0x588378,_0x3cb613[_0x2aae80(0x339)]=!![],delete _0x3cb613[_0x2aae80(0x746)];});let _0x3d9377=null;if(_0x159587[_0x4a2a77(0x5a9)]){const _0x4b1ed9={..._0x4b00ab,'limit':Math['min'](_0x1047c7,_0x17c6cf)};_0x3d9377={'rows':_0x9042fa(_0x4b1ed9),'limit':_0x4b1ed9[_0x4a2a77(0x5fd)]};const _0x52332a=_0x3d9377;queueMicrotask(()=>{const _0x1b3f7a=_0x4a2a77;_0x52332a[_0x1b3f7a(0x3d7)]=!![];});}return _0x382cc7[_0x4a2a77(0x48b)]=()=>{const _0x274e39=_0x4a2a77;let _0x3f1469=[],_0x222b18=0x0,_0x48c0a7=0x0,_0x2df89c,_0x2a35ea=![],_0x5c4110=![],_0x20e1ce=_0x1047c7;if(_0x3d9377&&!_0x3d9377[_0x274e39(0x3d7)]&&!_0x3d9377[_0x274e39(0x638)]){_0x3d9377['taken']=!![],_0x3f1469=_0x3d9377[_0x274e39(0x43a)],_0x2a35ea=!![],_0x20e1ce=_0x8634a4(_0x20e1ce,_0x186828);if(_0x3f1469[_0x274e39(0x479)]<_0x3d9377['limit'])_0x5c4110=!![];if(_0x3f1469[_0x274e39(0x479)])_0x2df89c=_0x1d23b6(_0x3f1469[_0x3f1469[_0x274e39(0x479)]-0x1]);}const _0x181ee7=()=>{const _0x36d68c=_0x274e39;if(_0x5c4110)return;const _0x437888=_0x17c6cf-_0x48c0a7;if(_0x437888<=0x0){_0x5c4110=!![],_0x3f1469=[];return;}const _0x1b3884={..._0x4b00ab,'limit':Math[_0x36d68c(0x5b5)](_0x20e1ce,_0x437888)};if(_0x2a35ea)_0x5beee1(_0x1b3884,_0x2df89c);_0x2a35ea=!![],_0x20e1ce=_0x8634a4(_0x20e1ce,_0x186828),_0x3f1469=_0x9042fa(_0x1b3884),_0x222b18=0x0;if(_0x3f1469['length']<_0x1b3884[_0x36d68c(0x5fd)])_0x5c4110=!![];if(_0x3f1469[_0x36d68c(0x479)])_0x2df89c=_0x1d23b6(_0x3f1469[_0x3f1469[_0x36d68c(0x479)]-0x1]);};return{'next'(){const _0x536bd4=_0x274e39;if(_0x222b18>=_0x3f1469[_0x536bd4(0x479)])_0x181ee7();if(_0x222b18>=_0x3f1469[_0x536bd4(0x479)])return{'value':undefined,'done':!![]};return _0x48c0a7++,{'value':_0x3f1469[_0x222b18++],'done':![]};},'return'(){return _0x5c4110=!![],_0x3f1469=[],{'value':undefined,'done':!![]};},'throw'(){return _0x5c4110=!![],_0x3f1469=[],{'value':undefined,'done':!![]};}};},_0x382cc7;}function _0x3be9ce(_0xcfa26f,_0x50f884,_0x2f96d4,_0x140e65,_0x24f36c={}){const _0x1f71e3=_0x9648e8,_0x3ed4cc=(_0x24f36c['limitOf']||_0x16b521)(_0x140e65&&_0x140e65[_0x1f71e3(0x5fd)]),_0x431d19=_0x5423f9[_0x1f71e3(0x4a8)](_0x50f884)?_0x13b591:_0x4033cc,_0x54fbdb=(_0x24f36c[_0x1f71e3(0x1f9)]||_0x12e089)(_0x140e65&&_0x140e65[_0x1f71e3(0x746)]),_0x5c6202=(_0x58aa55,_0xb728a9,_0x4ed18b)=>{const _0x57777d=_0x1f71e3,_0x322290=_0x3ed4cc-_0xb728a9,_0x2017f7=Math[_0x57777d(0x5b5)](_0x4ed18b,_0x322290),_0x16d4d2={'limit':_0x2017f7,'offset':_0x54fbdb+_0xb728a9},_0x5075d2=_0xcfa26f(_0x57777d(0x445),[_0x58aa55,_0x50f884,_0x2017f7===_0x322290?Infinity:_0x2017f7,..._0x2f96d4(_0x16d4d2)]);if(_0x5075d2[0x0]===-0x1){const _0x41aa41={'offset':_0x54fbdb+_0xb728a9};if(_0x322290!==Infinity)_0x41aa41[_0x57777d(0x5fd)]=_0x322290;return{'pin':0x0,'rows':_0xcfa26f(_0x50f884,_0x2f96d4(_0x41aa41)),'raw':Infinity,'eager':!![]};}return{'pin':_0x5075d2[0x0],'rows':_0x5075d2[0x1],'raw':_0x5075d2[0x2]};},_0x5b1843=_0x4d503b=>{const _0x2a79d1=_0x1f71e3;if(_0x4d503b)_0xcfa26f(_0x2a79d1(0x31c),[_0x4d503b]);};function _0xcd2d29(_0x367b87,_0x3b0726,_0x51726e){const _0x283ba4=_0x1f71e3;let _0x4e26d1=0x0,_0x55c232=[],_0x264231=0x0,_0x5baee7=_0x367b87,_0x5dcc42=_0x1047c7,_0x188262=_0x3ed4cc-_0x367b87<=0x0;if(_0x51726e)({buf:_0x55c232,pos:_0x264231,consumed:_0x5baee7,size:_0x5dcc42,exhausted:_0x188262}=_0x51726e);const _0x39a94b=_0x401ebb=>{const _0x176d09=_0x3f13;_0x4e26d1=_0x401ebb[_0x176d09(0x61e)],_0x55c232=_0x401ebb[_0x176d09(0x43a)],_0x264231=0x0,_0x5baee7+=_0x401ebb[_0x176d09(0x14d)],_0x5dcc42=_0x8634a4(_0x5dcc42,_0x431d19);if(!_0x4e26d1)_0x188262=!![];};if(_0x3b0726)_0x39a94b(_0x3b0726);const _0x267626=()=>{const _0x142c91=_0x4e26d1;_0x4e26d1=0x0,_0x5b1843(_0x142c91);},_0x51e2ef={'next'(){const _0x1a9bf7=_0x3f13;while(_0x264231>=_0x55c232[_0x1a9bf7(0x479)]){if(_0x188262||_0x3ed4cc-_0x5baee7<=0x0)return _0x188262=!![],_0x267626(),_0x5dde11;try{_0x39a94b(_0x5c6202(_0x4e26d1,_0x5baee7,_0x5dcc42));}catch(_0x4df834){_0x4e26d1=0x0,_0x188262=!![],_0x55c232=[];throw _0x4df834;}}return{'value':_0x55c232[_0x264231++],'done':![]};},'return'(){return _0x267626(),_0x5dde11;},'throw'(){return _0x267626(),_0x5dde11;},'resumed'(){return _0xcd2d29(0x0,null,{'buf':_0x55c232,'pos':_0x264231,'consumed':_0x5baee7,'size':_0x5dcc42,'exhausted':_0x188262});},[Symbol[_0x283ba4(0x821)]](){return this;}};return _0x51e2ef;}function _0x5d3a36(){if(_0x3ed4cc<=0x0)return null;const _0x4d312b=_0x5c6202(0x0,0x0,_0x1047c7);return queueMicrotask(()=>{const _0x40049c=_0x3f13;!_0x4d312b[_0x40049c(0x638)]&&(_0x4d312b['dropped']=!![],_0x5b1843(_0x4d312b[_0x40049c(0x61e)]));}),_0x4d312b;}return{'source':_0xcd2d29,'prefetch':_0x5d3a36};}function _0x3a5342(_0x3190d2){const _0xc209c8=_0x9648e8;if(!_0x3190d2||_0x3190d2[_0xc209c8(0x638)]||_0x3190d2[_0xc209c8(0x3d7)])return null;return _0x3190d2[_0xc209c8(0x638)]=!![],_0x3190d2;}return iterable={'fromArray':_0x1252c8,'chunkedRange':_0x206d1b,'pinnedChunks':_0x3be9ce,'claimPrefetch':_0x3a5342,'lmdbLimit':_0x16b521,'lmdbOffset':_0x12e089,'CHUNK':_0x4033cc,'ROW_CHUNK':_0x13b591,'FIRST':_0x1047c7},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x3903cb=_0x1ade1a;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x57b1b0}=requireIterable();class _0x474df2{constructor(_0x49e693,_0x5319f5='',_0x58ed3c={},_0x161c95=null){const _0x2554d6=_0x3f13;this[_0x2554d6(0x6f4)]=_0x49e693,this['name']=_0x5319f5,this[_0x2554d6(0x3cf)]=!!(_0x58ed3c&&_0x58ed3c[_0x2554d6(0x3cf)]),this[_0x2554d6(0x7ce)]=!!(_0x58ed3c&&_0x58ed3c[_0x2554d6(0x7ce)]),this[_0x2554d6(0x143)]=_0x161c95||this,this['_buf']=null;}get['_dupArg'](){const _0x42cc8b=_0x3f13;return this[_0x42cc8b(0x3cf)]?!![]:this[_0x42cc8b(0x7ce)]?'v':![];}['_n'](_0x419019,_0x5361bb){const _0x71462c=_0x3f13;return this[_0x71462c(0x6f4)][_0x71462c(0x555)][_0x71462c(0x82b)](_0x71462c(0x14d),this[_0x71462c(0x6f4)][_0x71462c(0x885)],_0x419019,[this[_0x71462c(0x885)],this[_0x71462c(0x5e1)],..._0x5361bb],!![]);}[_0x3903cb(0x494)](_0x1a1635,_0x535dbf){const _0x35c906=_0x3903cb;return this[_0x35c906(0x6f4)][_0x35c906(0x555)][_0x35c906(0x82b)](_0x35c906(0x14d),this[_0x35c906(0x6f4)]['name'],_0x1a1635,[this[_0x35c906(0x885)],this[_0x35c906(0x5e1)],..._0x535dbf],![]);}[_0x3903cb(0x2da)](_0x50c4f8){const _0x13bebb=_0x3903cb,_0x3cef8c=this[_0x13bebb(0x6f4)][_0x13bebb(0x574)];if(_0x3cef8c)_0x3cef8c['push']({'sub':this['name'],'dup':this[_0x13bebb(0x5e1)],..._0x50c4f8});else this[_0x13bebb(0x6f4)][_0x13bebb(0x555)]['_call'](_0x13bebb(0x14d),this[_0x13bebb(0x6f4)][_0x13bebb(0x885)],'batch',[[{'sub':this[_0x13bebb(0x885)],'dup':this['_dupArg'],..._0x50c4f8}]],!![]);}[_0x3903cb(0x616)](_0x3fdb1f){const _0x2ca3e0=_0x3903cb;return this[_0x2ca3e0(0x494)](_0x2ca3e0(0x616),[_0x3fdb1f]);}[_0x3903cb(0x242)](_0x42b392){const _0x145047=_0x3903cb;if(this[_0x145047(0x7ce)])return this['_read'](_0x145047(0x242),[_0x42b392]);const _0x1e15d7=this['get'](_0x42b392);return _0x1e15d7===undefined?undefined:{'value':_0x1e15d7};}[_0x3903cb(0x7e9)](_0x5b40a0){const _0x26d24e=_0x3903cb;return this['_read'](_0x26d24e(0x5e7),[_0x5b40a0]);}['getBinary'](_0x1b1987){const _0x55b3ae=_0x3903cb;return this[_0x55b3ae(0x616)](_0x1b1987);}[_0x3903cb(0x805)](_0x4e55da={}){const _0x575f6e=_0x3903cb,_0x485114=this[_0x575f6e(0x494)]('getRange',[_0x4e55da]),_0x59e27f=_0x4e55da[_0x575f6e(0x3b9)]===![],_0x5905b9=_0x4e55da['keys']===![];return _0x57b1b0(_0x485114[_0x575f6e(0x6f2)](([_0x339c99,_0x25b3b8,_0x132112])=>{if(_0x59e27f)return _0x339c99;if(_0x5905b9)return _0x25b3b8;return _0x132112===undefined?{'key':_0x339c99,'value':_0x25b3b8}:{'key':_0x339c99,'value':_0x25b3b8,'version':_0x132112};}));}['getKeys'](_0x5c9945={}){const _0x6f98a8=_0x3903cb;return _0x57b1b0(this[_0x6f98a8(0x494)](_0x6f98a8(0x805),[_0x5c9945])['map'](([_0x40e49f])=>_0x40e49f));}[_0x3903cb(0x521)](_0x58108a,_0x1f0363={}){const _0x3d8e46=_0x3903cb,_0x7fe074=this[_0x3d8e46(0x494)](_0x3d8e46(0x805),[{..._0x1f0363,'start':_0x58108a,'end':_0x58108a,'inclusiveEnd':!![]}]);return _0x57b1b0(_0x7fe074[_0x3d8e46(0x6f2)](([,_0x33f7a9])=>_0x33f7a9));}[_0x3903cb(0x3b4)](_0x5e8f5d={}){return this['_read']('count',[_0x5e8f5d]);}['getStats'](){return{'entryCount':this['getCount']()};}[_0x3903cb(0x7bc)](_0xf26f90,_0x24d322,_0x1bc3fa){const _0x6b7958=_0x3903cb;return this['_write']({'op':'put','key':_0xf26f90,'value':_0x24d322,'version':_0x1bc3fa}),Promise[_0x6b7958(0x816)](!![]);}[_0x3903cb(0x3c7)](_0x5e182d,_0x209e99,_0x274cd8){return this['_write']({'op':'put','key':_0x5e182d,'value':_0x209e99,'version':_0x274cd8}),!![];}[_0x3903cb(0x6a9)](_0x43d455,_0x1234a4){const _0x5cf5f7=_0x3903cb;return this[_0x5cf5f7(0x2da)]({'op':_0x5cf5f7(0x6a9),'key':_0x43d455,'value':_0x1234a4}),Promise['resolve'](!![]);}['removeSync'](_0x5719e7,_0x4cad76){const _0x2c8463=_0x3903cb;return this[_0x2c8463(0x2da)]({'op':_0x2c8463(0x6a9),'key':_0x5719e7,'value':_0x4cad76}),!![];}[_0x3903cb(0x4d7)](){const _0x432a27=_0x3903cb;this[_0x432a27(0x2da)]({'op':_0x432a27(0x400)});}[_0x3903cb(0x3df)](){const _0x528727=_0x3903cb;return this['_write']({'op':_0x528727(0x400)}),Promise[_0x528727(0x816)]();}['drop'](){const _0x506a78=_0x3903cb;this[_0x506a78(0x4d7)]();}[_0x3903cb(0x55a)](_0x2e3544,_0x390fba={}){const _0x4fbb03=_0x3903cb,_0x399650=typeof _0x2e3544===_0x4fbb03(0x6f7)?_0x2e3544:_0x390fba,_0x1aa844=typeof _0x2e3544===_0x4fbb03(0x6f7)?_0x2e3544[_0x4fbb03(0x885)]:_0x2e3544,_0x519d3f=new _0x474df2(this[_0x4fbb03(0x6f4)],_0x1aa844,_0x399650);return _0x519d3f[_0x4fbb03(0x2da)]({'op':_0x4fbb03(0x4e2)}),_0x519d3f;}['close'](){}[_0x3903cb(0x6da)](_0xf0bb9f){const _0x5c7aaa=_0x3903cb;return this[_0x5c7aaa(0x604)](_0xf0bb9f);}async['transaction'](_0x54dcfd){return this['_tx'](_0x54dcfd);}['childTransaction'](_0x21f061){const _0xe4af1e=_0x3903cb;return this[_0xe4af1e(0x604)](_0x21f061);}[_0x3903cb(0x604)](_0x55427b){const _0x5145a0=_0x3903cb,_0x13a7dd=this[_0x5145a0(0x6f4)];if(_0x13a7dd[_0x5145a0(0x574)])return _0x55427b();_0x13a7dd['_rawTxnBuf']=[];let _0x5bdd21;try{_0x5bdd21=_0x55427b();}catch(_0x26bd1d){_0x13a7dd[_0x5145a0(0x574)]=null;throw _0x26bd1d;}const _0x5b8bc9=_0x13a7dd[_0x5145a0(0x574)];_0x13a7dd[_0x5145a0(0x574)]=null;if(_0x5b8bc9['length'])_0x13a7dd['okdb']['_call'](_0x5145a0(0x14d),_0x13a7dd[_0x5145a0(0x885)],_0x5145a0(0x480),[_0x5b8bc9],!![]);return _0x5bdd21;}[_0x3903cb(0x6cb)](){return{'done'(){}};}[_0x3903cb(0x268)](){}}return rawdb={'RawDb':_0x474df2},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x41f25c=_0x1ade1a;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x33a854}=requireRawdb();class _0x106c2b{constructor(_0x6d9a25){const _0x55d625=_0x3f13;this[_0x55d625(0x53c)]=_0x6d9a25,this['_n']=(_0x232c13,_0xb3c40d,_0x52bec7=!![])=>_0x6d9a25[_0x55d625(0x555)][_0x55d625(0x82b)](_0x55d625(0x4fd),_0x6d9a25[_0x55d625(0x885)],_0x232c13,_0xb3c40d,_0x52bec7);}get['_viewState'](){const _0x5d9e87=_0x3f13,_0x8734fd=this,_0x2ae091=this[_0x5d9e87(0x53c)],_0x849a5b=_0x320e92=>_0x320e92?new _0x33a854(_0x2ae091,_0x320e92[_0x5d9e87(0x885)],{'dupSort':_0x320e92[_0x5d9e87(0x4ad)]}):undefined,_0x36008c=_0x31c185=>{const _0x5e35dd=_0x5d9e87,_0x553952=_0x8734fd['_n'](_0x5e35dd(0x2b9),[_0x31c185],![]);if(!_0x553952)return undefined;const _0x48c670=_0x553952[_0x5e35dd(0x78b)],_0x4a57d9=new Map(Object['entries'](_0x48c670[_0x5e35dd(0x3d2)])),_0x3c3681=new Map(Object[_0x5e35dd(0x325)](_0x553952[_0x5e35dd(0x223)])[_0x5e35dd(0x6f2)](([_0xac292c,_0x562655])=>[_0xac292c,_0x849a5b(_0x562655)]));return{'name':_0x31c185,'compiled':{'T':_0x48c670['T'],'reducers':_0x48c670[_0x5e35dd(0x5b6)],'refs':_0x4a57d9,'granId':_0x48c670[_0x5e35dd(0x800)],'type':_0x48c670[_0x5e35dd(0x79c)],'_nidFor':_0x27e713=>_0x8734fd['_n'](_0x5e35dd(0x241),[_0x31c185,_0x27e713],![])},'viewDb':_0x849a5b(_0x553952[_0x5e35dd(0x378)][_0x5e35dd(0x2a5)]),'metaDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x6d2)]),'itemsDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x1f6)]),'bucketsDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x5db)]),'sortedDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x64b)]),'groupsDb':_0x849a5b(_0x553952[_0x5e35dd(0x378)][_0x5e35dd(0x569)]),'prevDb':_0x849a5b(_0x553952[_0x5e35dd(0x378)][_0x5e35dd(0x526)]),'refItemsDbs':_0x3c3681,'refTrackingDbs':new Map(Object[_0x5e35dd(0x325)](_0x553952[_0x5e35dd(0x7d0)]||{})[_0x5e35dd(0x6f2)](([_0x573c7d,_0x375f33])=>[_0x573c7d,_0x849a5b(_0x375f33)])),'stopFn':_0x553952[_0x5e35dd(0x320)]?async()=>_0x8734fd['_n'](_0x5e35dd(0x226),[_0x31c185]):null,'bootstrapWorker':null};};return{'get':_0x38be88=>_0x36008c(_0x38be88),'has':_0x45ef26=>_0x8734fd['_n'](_0x5d9e87(0x567),[],![])[_0x5d9e87(0x2bc)](_0x45ef26),'keys':()=>_0x8734fd['_n']('stateNames',[],![])[Symbol[_0x5d9e87(0x821)]](),get 'size'(){const _0x314f7a=_0x5d9e87;return _0x8734fd['_n'](_0x314f7a(0x567),[],![])[_0x314f7a(0x479)];},[Symbol[_0x5d9e87(0x821)]]:()=>_0x8734fd['_n'](_0x5d9e87(0x567),[],![])[_0x5d9e87(0x6f2)](_0x23543a=>[_0x23543a,_0x36008c(_0x23543a)])[Symbol[_0x5d9e87(0x821)]]()};}get[_0x41f25c(0x7a6)](){const _0x2726a4=_0x41f25c,_0x19d2f1=this;return{'has':_0x253a8a=>_0x19d2f1['_n'](_0x2726a4(0x478),[],![])[_0x2726a4(0x2bc)](_0x253a8a),get 'size'(){const _0x223bcf=_0x2726a4;return _0x19d2f1['_n']('customReducerNames',[],![])[_0x223bcf(0x479)];},'keys':()=>_0x19d2f1['_n'](_0x2726a4(0x478),[],![])[Symbol['iterator']]()};}async['bootSyncedViewsInline'](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x41f25c(0x6c1)](_0x440425={}){const _0x366dc6=_0x41f25c;return this['_n'](_0x366dc6(0x6c1),[_0x440425]);}async[_0x41f25c(0x267)](_0x55f517,_0x37dd10){const _0x1d4d3f=_0x41f25c;return this['_n'](_0x1d4d3f(0x4e7),[_0x55f517,_0x37dd10]),await this[_0x1d4d3f(0x745)](_0x55f517),{'name':_0x55f517};}async[_0x41f25c(0x745)](_0x4bb379){const _0x4eae03=_0x41f25c,_0x4615a6=this[_0x4eae03(0x53c)][_0x4eae03(0x555)][_0x4eae03(0x755)];while(this['_n'](_0x4eae03(0x642),[_0x4bb379],![]))await _0x4615a6[_0x4eae03(0x690)](0xfa);this['_n'](_0x4eae03(0x708),[_0x4bb379],![]);}[_0x41f25c(0x616)](_0x1893c0,_0x1423dc={}){const _0x42458f=_0x41f25c,_0xec9879=this['_n']('get',[_0x1893c0,{'preview':_0x1423dc?.[_0x42458f(0x6fa)]??{}}],![]);if(_0xec9879==null)return null;const _0x4e0b87=this['_n'](_0x42458f(0x69c),[_0x1893c0],![]);if(!_0x4e0b87)return _0xec9879;const _0x11cd55=_0x5e4693=>(_0x2fca37={})=>this['_n'](_0x42458f(0x51f),[_0x1893c0,_0x5e4693,_0x2fca37],![]);if(_0x4e0b87['view']){_0xec9879[_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x4a6)});for(const _0x38835b of _0x4e0b87[_0x42458f(0x5b6)]){if(!_0x38835b['items'])continue;if(_0x38835b['grouped']){const _0x441925=_0xec9879[_0x38835b[_0x42458f(0x885)]];if(_0x441925?.[_0x42458f(0x6fa)]&&Array[_0x42458f(0x4b6)](_0x441925[_0x42458f(0x6fa)])){for(const _0x74dc8d of _0x441925[_0x42458f(0x6fa)])_0x74dc8d[_0x42458f(0x51f)]=_0x11cd55({'kind':'group','reducer':_0x38835b[_0x42458f(0x885)],'key':_0x74dc8d[_0x42458f(0x491)]});}}else _0xec9879[_0x38835b[_0x42458f(0x885)]]&&(_0xec9879[_0x38835b[_0x42458f(0x885)]][_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x856),'reducer':_0x38835b[_0x42458f(0x885)]}));}}for(const _0x5290d4 of _0x4e0b87['refs']){if(!_0x5290d4[_0x42458f(0x4a6)])continue;const _0x570de3=_0xec9879[_0x5290d4[_0x42458f(0x885)]];if(!_0x570de3||typeof _0x570de3!==_0x42458f(0x6f7))continue;_0x570de3[_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x4a6),'ref':_0x5290d4[_0x42458f(0x885)]});for(const _0x147ac7 of _0x5290d4[_0x42458f(0x5b6)]){if(!_0x147ac7[_0x42458f(0x51f)])continue;if(_0x147ac7[_0x42458f(0x462)]){const _0x53fa94=_0x570de3[_0x147ac7[_0x42458f(0x885)]];if(_0x53fa94?.[_0x42458f(0x6fa)]&&Array[_0x42458f(0x4b6)](_0x53fa94[_0x42458f(0x6fa)])){for(const _0x98861c of _0x53fa94[_0x42458f(0x6fa)])_0x98861c[_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x28a),'ref':_0x5290d4[_0x42458f(0x885)],'reducer':_0x147ac7[_0x42458f(0x885)],'key':_0x98861c[_0x42458f(0x491)]});}}else _0x570de3[_0x147ac7[_0x42458f(0x885)]]&&(_0x570de3[_0x147ac7[_0x42458f(0x885)]][_0x42458f(0x51f)]=_0x11cd55({'kind':'reducer','ref':_0x5290d4[_0x42458f(0x885)],'reducer':_0x147ac7[_0x42458f(0x885)]}));}}return _0xec9879;}[_0x41f25c(0x7f6)](_0x27e712){const _0x6a8dd6=_0x41f25c;return this['_n'](_0x6a8dd6(0x7f6),[_0x27e712],![]);}[_0x41f25c(0x64c)](_0x35f7ef,_0x5eb9a1={}){const _0x487477=_0x41f25c;return this['_n'](_0x487477(0x64c),[_0x35f7ef,_0x5eb9a1],![]);}[_0x41f25c(0x692)](_0x30601b,_0xa5f87b={}){const _0x543705=_0x41f25c;return this['_n'](_0x543705(0x692),[_0x30601b,_0xa5f87b],![]);}[_0x41f25c(0x46a)](_0x316617,_0x3c5fd3={}){return this['_n']('listBuckets',[_0x316617,_0x3c5fd3],![]);}async[_0x41f25c(0x3f8)](){const _0x2a9ce9=_0x41f25c;return this['_n'](_0x2a9ce9(0x3f8),[],![]);}async[_0x41f25c(0x762)](_0x3aff22){const _0x94ded0=_0x41f25c;return this['_n'](_0x94ded0(0x762),[_0x3aff22],![])??null;}async[_0x41f25c(0x6a9)](_0x24bc35,_0x2c9c7b={}){const _0x367b31=_0x41f25c;return this['_n'](_0x367b31(0x6a9),[_0x24bc35,_0x2c9c7b]);}async['stop'](_0x20600d){const _0x257c95=_0x41f25c;return this['_n'](_0x257c95(0x851),[_0x20600d]);}async[_0x41f25c(0x525)](_0x582c09){const _0x2b01bd=_0x41f25c;this['_n'](_0x2b01bd(0x317),[_0x582c09]),await this[_0x2b01bd(0x745)](_0x582c09);}async[_0x41f25c(0x429)](_0x5f28bc){this['_n']('rebuildBegin',[_0x5f28bc]),await this['_awaitBuild'](_0x5f28bc);}async[_0x41f25c(0x363)](_0x198f67){const _0x44091e=_0x41f25c;this['_n'](_0x44091e(0x4a2),[_0x198f67]),await this[_0x44091e(0x745)](_0x198f67);}[_0x41f25c(0x7a1)](_0x3c47c4,_0x4f3ab2={}){const _0x980afd=_0x41f25c;return this['_n'](_0x980afd(0x7a1),[_0x3c47c4,{'apply':_0x4f3ab2&&_0x4f3ab2['apply']}]);}}return views={'OKDBViews':_0x106c2b},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x3379dd=_0x1ade1a;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x4c2e1a}=requireErrors(),_0x2820a3=requireBridge();class _0x170df2{constructor(_0x1fdbee){const _0x579035=_0x3f13;this[_0x579035(0x53c)]=_0x1fdbee,this['okdb']=_0x1fdbee[_0x579035(0x555)],this['log']=_0x1fdbee[_0x579035(0x555)][_0x579035(0x629)][_0x579035(0x782)]({'feature':_0x579035(0x7b6)}),this[_0x579035(0x40a)]=new Set();}['_n'](_0x158416,_0x30bae5,_0x1ea6ea=!![]){const _0x23244f=_0x3f13;return this[_0x23244f(0x555)][_0x23244f(0x82b)](_0x23244f(0x7b6),this['env'][_0x23244f(0x885)],_0x158416,_0x30bae5,_0x1ea6ea);}['_w'](_0x37a64c,_0xc610f9){const _0x1e6c5d=_0x3f13;return this['okdb'][_0x1e6c5d(0x51a)](this['_n'](_0x37a64c,_0xc610f9));}async['_ensure'](){const _0x4131b9=_0x3f13;return this['_n'](_0x4131b9(0x4e2),[]);}async[_0x3379dd(0x3f8)](_0x1238de={}){const _0x5a1c69=_0x3379dd;return this['_n'](_0x5a1c69(0x3f8),[_0x1238de],![]);}get['_logsDb'](){const _0x1ed7e0=_0x3379dd,{RawDb:_0xf3beb8}=requireRawdb();return this[_0x1ed7e0(0x68d)]||(this[_0x1ed7e0(0x68d)]=new _0xf3beb8(this['env'],_0x1ed7e0(0x2ef)));}async[_0x3379dd(0x4d6)](){return this['_w']('sweepOrphanLogs',[]);}async[_0x3379dd(0x281)](_0x517d9c,_0x2ad28e,_0x15eb82={}){const _0x566626=_0x3379dd,{txn:_0x45172c,..._0x543892}=_0x15eb82||{};if(_0x45172c)return this[_0x566626(0x720)](_0x45172c,_0x517d9c,_0x2ad28e,_0x543892);const _0x5a0251=this[_0x566626(0x555)][_0x566626(0x630)];if(_0x5a0251&&_0x5a0251[_0x566626(0x7b6)][_0x566626(0x479)])_0x5a0251[_0x566626(0x346)]();const _0x282ece=this['_n']('enqueueClaim',[_0x517d9c,_0x2ad28e,_0x543892],![]);return this[_0x566626(0x555)]['_settleWrite'](_0x282ece['id'])[_0x566626(0x1df)](_0x564364=>{const _0x4f5b32=_0x566626;if(_0x282ece[_0x4f5b32(0x4be)])this[_0x4f5b32(0x165)](_0x517d9c);else try{this[_0x4f5b32(0x555)][_0x4f5b32(0x755)]['wake']();}catch{}return _0x564364;});}[_0x3379dd(0x165)](_0x3ae614){queueMicrotask(()=>{const _0x4ff66f=_0x3f13;try{this['_n'](_0x4ff66f(0x256),[_0x3ae614]);}catch{}});}['_enqueueInTxn'](_0x4517bc,_0xa1afe9,_0x15bfdb,_0x2ebc04){const _0x709dec=_0x3379dd,_0x5d81a8=_0x4517bc['raw']??_0x4517bc;if(_0x5d81a8[_0x709dec(0x3a3)])throw new _0x4c2e1a(_0x709dec(0x596),_0x709dec(0x1d8));if(_0x5d81a8['okdb']&&_0x5d81a8[_0x709dec(0x555)]!==this[_0x709dec(0x53c)]&&_0x5d81a8['okdb'][_0x709dec(0x885)]!==this[_0x709dec(0x53c)][_0x709dec(0x885)])throw new _0x4c2e1a(_0x709dec(0x1d4),_0x709dec(0x77e),{'txnEnv':_0x5d81a8[_0x709dec(0x555)][_0x709dec(0x885)],'queueEnv':this[_0x709dec(0x53c)][_0x709dec(0x885)]});const _0x1b0bd9=this['_n'](_0x709dec(0x3d9),[_0xa1afe9,_0x15bfdb,_0x2ebc04],![]);if(_0x1b0bd9['existing'])return _0x1b0bd9['id'];if(_0x1b0bd9[_0x709dec(0x718)])_0x4517bc[_0x709dec(0x601)](_0x709dec(0x1b9),_0x1b0bd9[_0x709dec(0x718)][_0x709dec(0x491)],_0x1b0bd9[_0x709dec(0x718)][_0x709dec(0x7fd)],{'ifVersion':_0x1b0bd9['release'][_0x709dec(0x2ce)]});if(_0x15bfdb!==undefined)_0x4517bc[_0x709dec(0x7bc)]('~queue_payloads',_0x1b0bd9['id'],_0x15bfdb);_0x4517bc[_0x709dec(0x7bc)](_0x709dec(0x1b9),_0x1b0bd9['id'],_0x1b0bd9['job']);if(typeof _0x5d81a8[_0x709dec(0x2d9)]==='function')_0x5d81a8[_0x709dec(0x2d9)](()=>{const _0x56bae6=_0x709dec;if(this['_n'](_0x56bae6(0x7c6),[_0x1b0bd9['id'],_0xa1afe9,_0x1b0bd9[_0x56bae6(0x2aa)],_0x1b0bd9[_0x56bae6(0x4d3)]]))this['_startClaimedSoon'](_0xa1afe9);});return _0x1b0bd9['id'];}async[_0x3379dd(0x2ca)](_0x1c4c22,_0x3c9488={}){const _0x108777=_0x3379dd;if(typeof _0x1c4c22!==_0x108777(0x4c1)||!_0x1c4c22)throw new _0x4c2e1a(_0x108777(0x3ea),_0x108777(0x229));return this['_w'](_0x108777(0x2ca),[_0x1c4c22,_0x3c9488]);}async['markJobHeartbeat'](_0x3102da,_0x535096,_0x1aa7a9=null){return this['_w']('markJobHeartbeat',[_0x3102da,_0x535096,_0x1aa7a9]);}async[_0x3379dd(0x227)](_0x57b032,_0x5bb21e,_0x1a38fb=null){const _0x1b9742=_0x3379dd;return this[_0x1b9742(0x19c)](_0x57b032,_0x5bb21e,_0x1a38fb);}async[_0x3379dd(0x587)](_0x4a01d2,_0x1e4201,_0x252889){const _0x1675c5=_0x3379dd;return this['_w'](_0x1675c5(0x587),[_0x4a01d2,_0x1e4201,_0x252889]);}async[_0x3379dd(0x5d5)](_0x8f06e5,_0x7a1e34,_0x12e4aa){const _0x279a8d=_0x3379dd;return this['_w'](_0x279a8d(0x5d5),[_0x8f06e5,_0x7a1e34,_0x12e4aa]);}async['completeJob'](_0x330007,_0x1cc212,_0x5d514b){const _0x4e8a4a=_0x3379dd;return this[_0x4e8a4a(0x5d5)](_0x330007,_0x1cc212,_0x5d514b);}async['markJobFail'](_0xbdc2b5,_0x2dcd15,_0x2bfd4d,_0x5e0d5f){const _0x3e0be8=_0x3379dd,_0x317cb9=_0x2bfd4d instanceof Error?{'message':_0x2bfd4d[_0x3e0be8(0x806)],'stack':_0x2bfd4d[_0x3e0be8(0x5e8)]}:_0x2bfd4d;return this['_w'](_0x3e0be8(0x209),[_0xbdc2b5,_0x2dcd15,_0x317cb9,_0x5e0d5f]);}async[_0x3379dd(0x678)](_0x37d335,_0x45cae3,_0x579d6b,_0x1e4767){const _0xb4806c=_0x3379dd;return this[_0xb4806c(0x209)](_0x37d335,_0x45cae3,_0x579d6b,_0x1e4767);}async[_0x3379dd(0x48a)](_0x24d15b,_0x6dc8c5,_0x198bea={}){return this['_w']('releaseClaim',[_0x24d15b,_0x6dc8c5,_0x198bea]);}async[_0x3379dd(0x1c8)](_0x37bdaf){const _0x31f55c=_0x3379dd;return this['_n'](_0x31f55c(0x1c8),[_0x37bdaf],![]);}async[_0x3379dd(0x6d5)](_0x876dfc,_0x479464={},_0xf7f305={}){const _0x47fbf9=_0x3379dd,_0x38ed38=_0xf7f305&&_0xf7f305['txn'];if(!_0x38ed38)return this['_w'](_0x47fbf9(0x6d5),[_0x876dfc,_0x479464]);const {next:_0x327a7b,version:_0x4cff5f}=this['_n'](_0x47fbf9(0x578),[_0x876dfc,_0x479464],![]);_0x38ed38[_0x47fbf9(0x601)](_0x47fbf9(0x1b9),_0x876dfc,_0x327a7b,{'ifVersion':_0x4cff5f});let _0x163a44;if(_0x47fbf9(0x2f3)in _0x479464){if(_0x479464[_0x47fbf9(0x2f3)]===undefined){if(this[_0x47fbf9(0x53c)][_0x47fbf9(0x242)](_0x47fbf9(0x358),_0x876dfc))_0x38ed38[_0x47fbf9(0x6a9)]('~queue_payloads',_0x876dfc);}else _0x38ed38['put'](_0x47fbf9(0x358),_0x876dfc,_0x479464[_0x47fbf9(0x2f3)]);_0x163a44=_0x479464[_0x47fbf9(0x2f3)];}else _0x163a44=this[_0x47fbf9(0x53c)][_0x47fbf9(0x616)](_0x47fbf9(0x358),_0x876dfc);return{..._0x327a7b,'payload':_0x163a44};}async[_0x3379dd(0x829)](_0x3d16b9,_0x232696={}){const _0x3ff2d8=_0x3379dd,_0x120d8f=_0x232696&&_0x232696[_0x3ff2d8(0x82f)];if(!_0x120d8f)return this['_w'](_0x3ff2d8(0x829),[_0x3d16b9]);if(!_0x3d16b9)throw new _0x4c2e1a(_0x3ff2d8(0x5c7),_0x3ff2d8(0x229));if(!this[_0x3ff2d8(0x53c)][_0x3ff2d8(0x242)](_0x3ff2d8(0x1b9),_0x3d16b9))return![];_0x120d8f['remove']('~queue_jobs',_0x3d16b9);if(this['env']['getEntry']('~queue_payloads',_0x3d16b9))_0x120d8f[_0x3ff2d8(0x6a9)]('~queue_payloads',_0x3d16b9);if(typeof _0x120d8f[_0x3ff2d8(0x2d9)]==='function')_0x120d8f[_0x3ff2d8(0x2d9)](()=>this['_n']('removeJobLogsAfterCommit',[_0x3d16b9]));return!![];}async['cancelJob'](_0xea2de6){const _0x551834=_0x3379dd;return this['_w'](_0x551834(0x6d1),[_0xea2de6]);}async[_0x3379dd(0x14a)](_0x93ae22){return this['_w']('retryJob',[_0x93ae22]);}async[_0x3379dd(0x72c)](_0x5429ed,_0x2c5fbc,_0x540427){const _0x4aebcf=_0x3379dd,_0x5be042=this['_n'](_0x4aebcf(0x80e),[_0x2c5fbc??null,_0x540427??0x0,_0x5429ed]),_0x5409c9=0x1f4;for(let _0x43a0c2=0x0;_0x43a0c2<_0x5be042[_0x4aebcf(0x479)];_0x43a0c2+=_0x5409c9){this['_n'](_0x4aebcf(0x775),[_0x5be042['slice'](_0x43a0c2,_0x43a0c2+_0x5409c9),_0x43a0c2,_0x5be042[_0x4aebcf(0x479)],_0x2c5fbc??null]);if(_0x43a0c2+_0x5409c9<_0x5be042[_0x4aebcf(0x479)])await new Promise(_0xceb23f=>setImmediate(_0xceb23f));}return this['_n'](_0x4aebcf(0x7cf),[_0x5be042[_0x4aebcf(0x479)],_0x2c5fbc??null]),await new Promise(_0x2346e9=>setImmediate(_0x2346e9)),_0x5be042[_0x4aebcf(0x479)];}async[_0x3379dd(0x2e3)](_0x4a62c7,_0x10a7a3){const _0x40e3af=_0x3379dd;return this[_0x40e3af(0x72c)](_0x40e3af(0x45e),_0x4a62c7,_0x10a7a3);}async[_0x3379dd(0x4af)](_0x91b5b8,_0x496c84){const _0x3c649a=_0x3379dd;return this[_0x3c649a(0x72c)](_0x3c649a(0x1dc),_0x91b5b8,_0x496c84);}async[_0x3379dd(0x430)](_0x3f3fa5,_0x2ceb46){return this['_w']('retryFailed',[_0x3f3fa5??null,_0x2ceb46??0x0]);}async[_0x3379dd(0x33d)](_0x5ae6dd,_0x18bc4b){return this['_w']('clearStuck',[_0x5ae6dd??null,_0x18bc4b??0x0]);}async['appendJobLog'](_0x54c199,_0x2e6856,_0x3432cf){return this['_w']('appendJobLog',[_0x54c199,_0x2e6856,_0x3432cf]);}async[_0x3379dd(0x7f5)](_0x4beded,_0x4e3e2d={}){const _0x577292=_0x3379dd;return this['_n'](_0x577292(0x7f5),[_0x4beded,_0x4e3e2d],![]);}async[_0x3379dd(0x5de)](_0x59e396,_0x2277b9={}){const _0x1b7b35=_0x3379dd,{txn:_0x5d4211,..._0x512894}=_0x2277b9||{};if(!_0x5d4211)return this['_w']('addBucket',[_0x59e396,_0x512894]);const _0x235cab=(_0x7eb3a3,_0x56c368,_0x546369,_0x233629)=>{const _0x50ec27=_0x3f13,_0x603542=Math[_0x50ec27(0x64f)](Number(_0x7eb3a3));return Number['isFinite'](_0x603542)?Math['min'](_0x233629,Math['max'](_0x546369,_0x603542)):_0x56c368;},_0x1cc9b1=typeof _0x59e396==='string'?_0x59e396[_0x1b7b35(0x4ee)]():'';if(!_0x1cc9b1)throw new Error('bucket\x20id\x20required');const _0xc68053=_0x235cab(_0x512894[_0x1b7b35(0x148)],0x0,0x0,0x3b9aca00);_0x5d4211['put'](_0x1b7b35(0x615),_0x1cc9b1,{'id':_0x1cc9b1,'tokens':_0x235cab(_0x512894[_0x1b7b35(0x319)],_0xc68053,0x0,_0xc68053),'capacity':_0xc68053,'refill_amount':_0x235cab(_0x512894[_0x1b7b35(0x80a)],0x0,0x0,0x3b9aca00),'refill_every':_0x235cab(_0x512894['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x1b7b35(0x38b)]()});}async[_0x3379dd(0x3ca)](_0xe5188a,_0x1a78a4){const _0x5901bc=_0x3379dd;return this['_w'](_0x5901bc(0x3ca),[_0xe5188a,_0x1a78a4]);}async[_0x3379dd(0x472)](_0x258184){return this['_w']('removeBucket',[_0x258184]);}[_0x3379dd(0x4b1)](_0x17fe14){const _0x239dbb=_0x3379dd,_0x2619e4=this['_n']('getBucket',[_0x17fe14],![]);return _0x2619e4===null&&typeof _0x17fe14===_0x239dbb(0x4c1)&&_0x17fe14[_0x239dbb(0x4ee)]()?undefined:_0x2619e4;}async['tryClaimTokens'](_0x343299,_0x107b2a){const _0x34d465=_0x3379dd;return this['_w'](_0x34d465(0x24e),[_0x343299,_0x107b2a]);}async['addJobType'](_0x72010,_0xc71873={}){const _0x37a86f=_0x3379dd;return this['_w'](_0x37a86f(0x329),[_0x72010,_0xc71873]);}async['getJobType'](_0x6e2a37){return this['_n']('getJobType',[_0x6e2a37],![]);}async[_0x3379dd(0x64d)](){const _0x337375=_0x3379dd;return this['_n'](_0x337375(0x64d),[],![]);}async[_0x3379dd(0x42f)](_0x15be4a){const _0x36998c=_0x3379dd;return this['_w'](_0x36998c(0x42f),[_0x15be4a]);}[_0x3379dd(0x4ca)](_0x393c55){const _0x23e352=_0x3379dd;return this['_n'](_0x23e352(0x4ca),[_0x393c55]);}[_0x3379dd(0x517)](_0x4d5c62){return this['_n']('resumeJobType',[_0x4d5c62]);}[_0x3379dd(0x4ff)](_0x56bfe7){const _0x4ace04=_0x3379dd;return this['_n'](_0x4ace04(0x4ff),[_0x56bfe7]);}async[_0x3379dd(0x6f0)](_0x2a4903,_0x21e79a,_0x4423d2=![]){const _0xc73bd9=_0x3379dd;return this['_w'](_0xc73bd9(0x6f0),[_0x2a4903,_0x21e79a,_0x4423d2]);}async[_0x3379dd(0x2f2)](_0x36edae){return this['_w']('removeJobTypeSchema',[_0x36edae]);}async['samplePayloads'](_0x44c895,_0x173a0f=0x5){return this['_n']('samplePayloads',[_0x44c895,_0x173a0f],![]);}async[_0x3379dd(0x29a)](_0x2aefa7){const _0x205b80=_0x3379dd;return this['_n'](_0x205b80(0x669),[_0x2aefa7]);}async[_0x3379dd(0x463)](_0x97566d=0x7530){const _0x423ba4=_0x3379dd;await Promise['allSettled']([...this[_0x423ba4(0x40a)]]['map'](_0x581e87=>_0x581e87[_0x423ba4(0x851)](_0x97566d)));const _0x35d185=this['_n'](_0x423ba4(0x463),[0x0]);return this['_workers']['clear'](),_0x35d185;}async[_0x3379dd(0x711)](){const _0x5a726a=_0x3379dd,_0x1c1190=this['_n'](_0x5a726a(0x711),[]);return this['_workers'][_0x5a726a(0x400)](),_0x1c1190;}[_0x3379dd(0x58a)](_0x4c3c69,_0x24627b,_0x73e91b){const _0x27203b=_0x3379dd;let _0x585254,_0x18c45f;if(Array[_0x27203b(0x4b6)](_0x4c3c69)){if(typeof _0x24627b==='function')throw new _0x4c2e1a(_0x27203b(0x67d),_0x27203b(0x229));_0x18c45f=_0x24627b??{};if(_0x18c45f[_0x27203b(0x43c)]!=null&&typeof _0x18c45f[_0x27203b(0x43c)]!=='function')throw new _0x4c2e1a('process\x20options.admission\x20must\x20be\x20a\x20function',_0x27203b(0x229));if(_0x4c3c69['length']===0x0)throw new _0x4c2e1a(_0x27203b(0x22d),_0x27203b(0x229));_0x585254=_0x4c3c69['map'](_0x57959=>{const _0x10698b=_0x27203b;if(!_0x57959||typeof _0x57959[_0x10698b(0x79c)]!==_0x10698b(0x4c1)||!_0x57959[_0x10698b(0x79c)])throw new _0x4c2e1a(_0x10698b(0x5aa),_0x10698b(0x229));if(typeof _0x57959[_0x10698b(0x54a)]!==_0x10698b(0x40e))throw new _0x4c2e1a(_0x10698b(0x71d)+_0x57959[_0x10698b(0x79c)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x10698b(0x229));return{..._0x57959};});}else{_0x18c45f=_0x73e91b??{};if(typeof _0x24627b!=='function')throw new _0x4c2e1a(_0x27203b(0x71d)+_0x4c3c69+_0x27203b(0x6e3),_0x27203b(0x229));_0x585254=[{'type':_0x4c3c69,'handler':_0x24627b,..._0x73e91b??{}}];}const _0x3b44bf=this[_0x27203b(0x555)];for(const _0x1ebfff of _0x585254){const _0x41c8cb=_0x1ebfff[_0x27203b(0x54a)];_0x1ebfff[_0x27203b(0x54a)]=function(..._0x1ae592){const _0x1e22a9=_0x27203b;return _0x3b44bf[_0x1e22a9(0x46b)]()['then'](()=>_0x41c8cb[_0x1e22a9(0x2ec)](this,_0x1ae592));};}const _0x1dfdf5=this['_n'](_0x27203b(0x58a),[_0x585254,_0x18c45f]),_0x3f5683=this,_0x1ba30b={'id':_0x1dfdf5['id'],'type':_0x1dfdf5[_0x27203b(0x79c)],get 'running'(){const _0x3f3b9d=_0x27203b;return _0x3f5683['_n'](_0x3f3b9d(0x7d6),[_0x1dfdf5['id']],![])[_0x3f3b9d(0x709)];},'isRunning'(){const _0x361322=_0x27203b;return _0x3f5683['_n']('workerState',[_0x1dfdf5['id']],![])[_0x361322(0x709)];},async 'stop'(_0x2c1c9a=0x7530){const _0x2c50fa=_0x27203b;_0x3f5683['_n'](_0x2c50fa(0x5fa),[_0x1dfdf5['id']]);const _0x49ffcc=Date[_0x2c50fa(0x38b)]()+_0x2c1c9a;while(_0x3f5683['_n'](_0x2c50fa(0x7d6),[_0x1dfdf5['id']],![])[_0x2c50fa(0x75c)]>0x0&&Date[_0x2c50fa(0x38b)]()<_0x49ffcc)await new Promise(_0xf15cb5=>setTimeout(_0xf15cb5,0x2));_0x3f5683['_n'](_0x2c50fa(0x495),[_0x1dfdf5['id']]),_0x2820a3[_0x2c50fa(0x20f)](),_0x3f5683[_0x2c50fa(0x40a)]['delete'](_0x1ba30b);},async 'kill'(){const _0x5153f1=_0x27203b;_0x3f5683['_n']('killWorker',[_0x1dfdf5['id']]),_0x3f5683['_workers'][_0x5153f1(0x727)](_0x1ba30b);}};return this[_0x27203b(0x40a)][_0x27203b(0x76e)](_0x1ba30b),_0x1ba30b;}['worker'](_0x31b412){const _0x23e907=_0x3379dd;throw new _0x4c2e1a(_0x23e907(0x853)+_0x31b412+_0x23e907(0x433)+_0x31b412+_0x23e907(0x609),_0x23e907(0x561));}[_0x3379dd(0x583)](_0x2b3ec6){const _0x55710c=_0x3379dd;return this[_0x55710c(0x309)](_0x2b3ec6);}}return queue={'OKDBQueue':_0x170df2},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x18c236=_0x1ade1a;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x2d1e54}=requireIterable();class _0x4110cf{constructor(_0xfbca31){const _0x1ade14=_0x3f13;this[_0x1ade14(0x53c)]=_0xfbca31,this[_0x1ade14(0x555)]=_0xfbca31['okdb'];const _0x2b1f37=(_0x4e927f,_0x43ded7)=>this['_n'](_0x4e927f,_0x43ded7,![]);this[_0x1ade14(0x874)]={'getDiffs':(_0x5746cc,_0x5af5e8,_0x475bac)=>_0x2b1f37('storeGetDiffs',[_0x5746cc,_0x5af5e8,_0x475bac||{}]),'hasDiff':(_0x258eab,_0x37deec,_0x519f27)=>_0x2b1f37(_0x1ade14(0x304),[_0x258eab,_0x37deec,_0x519f27]),'getHead':(_0x5d30da,_0x11470a)=>_0x2b1f37(_0x1ade14(0x5e3),[_0x5d30da,_0x11470a])??null,'getHeadCount':_0x4f3e01=>_0x2b1f37(_0x1ade14(0x16f),[_0x4f3e01]),'getTotalHeadCount':()=>_0x2b1f37(_0x1ade14(0x392),[]),'getDiffsInRange':(_0x1f84d2,_0x21f6dc,_0x143fc1)=>_0x2b1f37('storeGetDiffsInRange',[_0x1f84d2??null,_0x21f6dc,_0x143fc1]),'getConfig':()=>_0x2b1f37(_0x1ade14(0x7e4),[])??null,'getCursor':()=>this['_n'](_0x1ade14(0x3b8),[],![])??null,get 'db'(){const _0x4337c6=_0x1ade14;try{return _0x2b1f37(_0x4337c6(0x392),[]),{};}catch{return null;}}};}get[_0x18c236(0x628)](){const _0x5ebf45=_0x18c236,_0x46a48e=(this[_0x5ebf45(0x53c)][_0x5ebf45(0x548)]?.[_0x5ebf45(0x3f8)]?.()||[])['filter'](_0x1eeb24=>String(_0x1eeb24[_0x5ebf45(0x758)]||'')[_0x5ebf45(0x70d)]('time-machine:'))[_0x5ebf45(0x479)];return{'size':_0x46a48e};}['_n'](_0x289246,_0x197d31,_0x1b04aa=!![]){const _0x5d429c=_0x18c236;return this[_0x5d429c(0x555)][_0x5d429c(0x82b)]('tm',this[_0x5d429c(0x53c)][_0x5d429c(0x885)],_0x289246,_0x197d31,_0x1b04aa);}async[_0x18c236(0x716)](_0x3f3883){return this['_n']('enable',[_0x3f3883??null]);}async[_0x18c236(0x671)](_0x3a6eae){const _0x1ccb50=_0x18c236;return this['_n'](_0x1ccb50(0x671),[_0x3a6eae??null]);}async[_0x18c236(0x1e1)](){const _0x30eb1e=_0x18c236;return this['_n'](_0x30eb1e(0x1e1),[]);}async[_0x18c236(0x7aa)](){const _0x424c54=_0x18c236;return this['_n'](_0x424c54(0x7aa),[]);}async[_0x18c236(0x332)](_0x4201e4){const _0x249517=_0x18c236;return this['_n'](_0x249517(0x332),[_0x4201e4??null]);}async[_0x18c236(0x869)](){return this['_n']('dropAll',[]);}[_0x18c236(0x23d)](_0x506ba8){const _0x44412a=_0x18c236;return this['_n'](_0x44412a(0x23d),[_0x506ba8??null],![]);}[_0x18c236(0x3f8)](){const _0x2dc34f=_0x18c236;return this['_n'](_0x2dc34f(0x3f8),[],![]);}[_0x18c236(0x371)](_0x4faf2a){const _0x15c75e=_0x18c236;return this['_n'](_0x15c75e(0x371),[_0x4faf2a??null],![]);}[_0x18c236(0x859)](_0x526d15){const _0x436418=_0x18c236;if(!_0x526d15)return this['_n'](_0x436418(0x3b8),[],![]);return this['_n']('getCursor',[_0x526d15],![]);}[_0x18c236(0x3b8)](){return this['_n']('getLegacyCursor',[],![]);}[_0x18c236(0x275)](_0x2f1e93,_0x8c422e,_0x208a2c){const _0x35e48d=_0x18c236;return this['_n'](_0x35e48d(0x275),[_0x2f1e93,_0x8c422e,_0x208a2c],![]);}['getHistory'](_0x1667d8,_0x49de30,_0x4cb771){const _0x21effb=_0x18c236;return this['_n'](_0x21effb(0x3e0),[_0x1667d8,_0x49de30,_0x4cb771||{}],![]);}[_0x18c236(0x6fd)](_0x3dbfc5,_0x1996b5,_0x48c3e0){const _0x483ede=_0x18c236;return this['_n']('getChanges',[_0x3dbfc5??null,_0x1996b5,_0x48c3e0],![])[Symbol[_0x483ede(0x821)]]();}async[_0x18c236(0x5c4)](_0x487b37){const _0xc9859=_0x18c236;return this['_n'](_0xc9859(0x5c4),[_0x487b37??null]);}}return timemachine={'OKDBTimeMachine':_0x4110cf},timemachine;}function _0x3f13(_0x139502,_0x39f143){_0x139502=_0x139502-0x135;const _0x394df1=_0x394d();let _0x3f13f6=_0x394df1[_0x139502];return _0x3f13f6;}var files,hasRequiredFiles;function requireFiles(){const _0x34f8d2=_0x1ade1a;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x203827=require$$0,{Readable:_0xba85ac}=require$$1,{OKDBError:_0x3f4c90,optionsArg:_0x499744,invalidArgument:_0x745187}=requireErrors(),{RawDb:_0x4cac06}=requireRawdb();async function _0x1a5133(_0x458c93){const _0x4a6b0a=_0x3f13;if(Buffer['isBuffer'](_0x458c93))return _0x458c93;if(_0x458c93 instanceof Uint8Array)return Buffer[_0x4a6b0a(0x5f7)](_0x458c93);if(typeof _0x458c93===_0x4a6b0a(0x4c1))return Buffer['from'](_0x458c93);const _0x2fb956=[];for await(const _0x178851 of _0x458c93)_0x2fb956[_0x4a6b0a(0x2e6)](Buffer['isBuffer'](_0x178851)?_0x178851:Buffer[_0x4a6b0a(0x5f7)](_0x178851));return Buffer[_0x4a6b0a(0x45c)](_0x2fb956);}class _0x4e77ca{constructor(_0x5c4aea){const _0x442d02=_0x3f13;this[_0x442d02(0x53c)]=_0x5c4aea,this[_0x442d02(0x555)]=_0x5c4aea[_0x442d02(0x555)];}['_n'](_0x35820a,_0x14fd3c,_0x2823fb=!![]){const _0x47e1b3=_0x3f13;return this[_0x47e1b3(0x555)][_0x47e1b3(0x82b)](_0x47e1b3(0x513),this[_0x47e1b3(0x53c)][_0x47e1b3(0x885)],_0x35820a,_0x14fd3c,_0x2823fb);}[_0x34f8d2(0x525)](){return!![];}['stop'](){}async[_0x34f8d2(0x222)](){const _0x593bba=_0x34f8d2;this['_n'](_0x593bba(0x4e2),[]);}async[_0x34f8d2(0x343)](_0x445e05,_0x1f247f){const _0x284b0a=_0x34f8d2;return this[_0x284b0a(0x555)][_0x284b0a(0x51a)](this['_n'](_0x284b0a(0x6f3),[_0x445e05,await _0x1a5133(_0x1f247f)]));}get[_0x34f8d2(0x1c3)](){const _0x4d8911=_0x34f8d2;return this['__blobStatusDb']||(this['__blobStatusDb']=new _0x4cac06(this[_0x4d8911(0x53c)],_0x4d8911(0x74b)));}async[_0x34f8d2(0x66c)](_0x2f5966){const _0x1b279f=_0x34f8d2;return this[_0x1b279f(0x1c3)][_0x1b279f(0x604)](_0x2f5966);}async['upload'](_0x51b298){const _0x309739=_0x34f8d2,{id:_0x251139,stream:_0x230f3d,mime:mime=_0x309739(0x137),path:_0x55f735='',txn:txn=null}=_0x499744(_0x51b298);if(!_0x251139)throw _0x745187(_0x309739(0x85f),_0x309739(0x497),_0x251139);if(!_0x230f3d)throw _0x745187(_0x309739(0x505),_0x309739(0x511),_0x230f3d);const _0x50fa76=await _0x1a5133(_0x230f3d);if(txn){const _0x1bf9a0=this['_n'](_0x309739(0x78f),[_0x251139,_0x50fa76,{'mime':mime,'path':_0x55f735}]);return txn[_0x309739(0x7bc)]('~files',_0x251139,_0x1bf9a0['record']),txn['onDo'](()=>this['_n'](_0x309739(0x172),[_0x1bf9a0[_0x309739(0x62b)]])),txn[_0x309739(0x721)](()=>this['_n'](_0x309739(0x4b4),[_0x1bf9a0[_0x309739(0x62b)]])),_0x1bf9a0[_0x309739(0x2ee)];}return this[_0x309739(0x555)]['_settleWrite'](this['_n'](_0x309739(0x85e),[_0x251139,_0x50fa76,{'mime':mime,'path':_0x55f735}]));}[_0x34f8d2(0x616)](_0x5a0b3c){return this['_n']('get',[_0x5a0b3c],![])??null;}['streamByHash'](_0x3d5985){const _0x545a83=_0x34f8d2,_0x3b202c=this[_0x545a83(0x2a7)](_0x3d5985);if(!_0x203827[_0x545a83(0x40f)](_0x3b202c))throw Object['assign'](new Error(_0x545a83(0x73f)+_0x3d5985),{'status':0x194});return this[_0x545a83(0x20e)](_0x3d5985);}[_0x34f8d2(0x20e)](_0x5134c6){const _0x9403cf=0x100*0x400,_0x42b791=this;let _0x112080=0x0;return new _0xba85ac({'highWaterMark':_0x9403cf,'read'(){const _0x1ea94b=_0x3f13;let _0x4216fa;try{const _0xbf3ae7=_0x42b791['_n']('readHashRange',[_0x5134c6,_0x112080,_0x9403cf],![]);_0x4216fa=Buffer[_0x1ea94b(0x47d)](_0xbf3ae7)?_0xbf3ae7:Buffer[_0x1ea94b(0x5f7)](_0xbf3ae7);}catch(_0x287b58){this['destroy'](_0x287b58);return;}_0x112080+=_0x4216fa[_0x1ea94b(0x479)];if(_0x4216fa['length'])this['push'](_0x4216fa);if(_0x4216fa[_0x1ea94b(0x479)]<_0x9403cf)this[_0x1ea94b(0x2e6)](null);}});}async[_0x34f8d2(0x37f)](_0x2f9c09){const _0x2b0e08=_0x34f8d2;return this['okdb']['_settleRead'](this['_n'](_0x2b0e08(0x37f),[_0x2f9c09],![]));}async[_0x34f8d2(0x265)](_0x78aa4e){const _0x14a226=_0x34f8d2,_0x431333=this[_0x14a226(0x616)](_0x78aa4e);if(!_0x431333)throw Object[_0x14a226(0x257)](new Error(_0x14a226(0x86f)+_0x78aa4e),{'status':0x194});const _0x4b52f8=this['_blobPath'](_0x431333[_0x14a226(0x1fe)]);if(!_0x203827[_0x14a226(0x40f)](_0x4b52f8))throw Object[_0x14a226(0x257)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x78aa4e),{'status':0x194});return{'stream':this[_0x14a226(0x20e)](_0x431333[_0x14a226(0x1fe)]),'record':_0x431333};}async['remove'](_0x4fe319,_0x27525e){const _0x381ef1=_0x34f8d2,{txn:txn=null}=_0x499744(_0x27525e);if(txn){const _0x1e4835=this['_n'](_0x381ef1(0x7e7),[_0x4fe319]);txn[_0x381ef1(0x6a9)](_0x381ef1(0x19d),_0x4fe319),txn[_0x381ef1(0x2d9)](()=>this['_n']('txnDone',[_0x1e4835[_0x381ef1(0x62b)]])),txn[_0x381ef1(0x721)](()=>this['_n'](_0x381ef1(0x4b4),[_0x1e4835[_0x381ef1(0x62b)]]));return;}return this[_0x381ef1(0x555)][_0x381ef1(0x51a)](this['_n'](_0x381ef1(0x6a9),[_0x4fe319]));}async[_0x34f8d2(0x530)](_0x304cb0,_0x544c32={}){const _0x129ade=_0x34f8d2;return this['_n'](_0x129ade(0x530),[_0x304cb0,_0x544c32],![]);}[_0x34f8d2(0x5fb)](_0x1b92ed){return this['_n']('getBlobStatus',[_0x1b92ed],![]);}[_0x34f8d2(0x40d)](){const _0x69f470=_0x34f8d2;return this['_n'](_0x69f470(0x40d),[],![]);}['gcOrphanedBlobs'](_0x522d2c){const _0x45cd38=_0x34f8d2,{minAgeMs:_0x474604}=_0x499744(_0x522d2c);return this['_n'](_0x45cd38(0x33b),[_0x474604??null]);}[_0x34f8d2(0x602)](_0x52d165,_0x4d5c3e){const _0xdf984f=_0x34f8d2;if(typeof _0x4d5c3e!==_0xdf984f(0x40e))throw new _0x3f4c90('files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function',_0xdf984f(0x229));const _0x4ba110=this['_n'](_0xdf984f(0x602),[_0x52d165,_0x4d5c3e]);return()=>this['_n'](_0xdf984f(0x185),[_0x4ba110]);}async[_0x34f8d2(0x2cb)](_0x24ddd6){const _0x3e0a77=_0x34f8d2;return _0x24ddd6=_0x499744(_0x24ddd6),this['_n'](_0x3e0a77(0x2cb),[_0x24ddd6]);}async[_0x34f8d2(0x51c)](_0x290469){const _0x3731d0=_0x34f8d2,{peerIds:_0x58c86d}=_0x499744(_0x290469);return this['_n'](_0x3731d0(0x51c),[_0x58c86d??null]);}[_0x34f8d2(0x2a7)](_0x59c84d){const _0x3d5116=_0x34f8d2;if(typeof _0x59c84d!==_0x3d5116(0x4c1))return require$$4['join'](this[_0x3d5116(0x653)],_0x59c84d['slice'](0x0,0x2),_0x59c84d['slice'](0x2));return this['_n']('blobPath',[_0x59c84d],![]);}get[_0x34f8d2(0x653)](){const _0x56c3e5=_0x34f8d2;return this['_n'](_0x56c3e5(0x861),[],![]);}}return files={'OKDBFiles':_0x4e77ca},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x1f2be5=_0x1ade1a;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x14667a}=requireErrors(),_0x14cbb3=requireBridge(),_0x3daa53=new Set([_0x1f2be5(0x6ff),_0x1f2be5(0x1e4),_0x1f2be5(0x205),_0x1f2be5(0x724)]),_0x2cbf15=new Set(['count',_0x1f2be5(0x786),_0x1f2be5(0x6df)]),_0x3aeb88=['validate','patchConfig',_0x1f2be5(0x1b6),'assertStartAllowed',_0x1f2be5(0x450),_0x1f2be5(0x851),_0x1f2be5(0x6e1)],_0xdfbef0={'embedder':new Set([_0x1f2be5(0x6df),'fingerprint'])},_0x5c81a7=new Set([_0x1f2be5(0x492),'processor','queue-worker']);class _0x4d6bfd{constructor(_0x3fde70,_0x51ea39,_0x27a6ee,_0x45753c){const _0x33e4cd=_0x1f2be5;this[_0x33e4cd(0x3e2)]=_0x3fde70,this['key']=_0x51ea39,this[_0x33e4cd(0x79c)]=_0x27a6ee,this[_0x33e4cd(0x885)]=_0x45753c,this['engineType']=_0x27a6ee;}[_0x1f2be5(0x7c0)](){const _0xdf52b1=_0x1f2be5;return this[_0xdf52b1(0x3e2)]['_n'](_0xdf52b1(0x786),[this[_0xdf52b1(0x79c)],this[_0xdf52b1(0x885)]],![]);}get[_0x1f2be5(0x49e)](){const _0x5dbd47=_0x1f2be5;return this[_0x5dbd47(0x7c0)]()['doc'];}get[_0x1f2be5(0x874)](){const _0x16d358=_0x1f2be5,_0x380cb6=this['_info']()[_0x16d358(0x888)];return _0x380cb6?this[_0x16d358(0x3e2)][_0x16d358(0x555)][_0x16d358(0x2b2)][_0x16d358(0x616)](_0x380cb6):undefined;}get[_0x1f2be5(0x509)](){const _0x3a3549=_0x1f2be5;return this[_0x3a3549(0x7c0)]()['docEntry'];}get[_0x1f2be5(0x25c)](){const _0x36b836=_0x1f2be5;return this[_0x36b836(0x7c0)]()[_0x36b836(0x25c)];}get['isRunning'](){return this['_info']()['isRunning'];}get[_0x1f2be5(0x371)](){const _0x1c51cf=_0x1f2be5;return this[_0x1c51cf(0x7c0)]()[_0x1c51cf(0x371)];}get[_0x1f2be5(0x471)](){const _0x3f7ff4=_0x1f2be5;return this[_0x3f7ff4(0x7c0)]()['reason'];}get['lastError'](){const _0x1897e8=_0x1f2be5,_0x16dd54=this[_0x1897e8(0x7c0)]()[_0x1897e8(0x415)];return _0x16dd54?Object[_0x1897e8(0x257)](new Error(_0x16dd54[_0x1897e8(0x806)]),{'code':_0x16dd54[_0x1897e8(0x431)]}):null;}get['runtimeState'](){const _0x3d7ce2=_0x1f2be5;return this[_0x3d7ce2(0x7c0)]()[_0x3d7ce2(0x854)];}get[_0x1f2be5(0x739)](){const _0x81f23b=_0x1f2be5;return this['_facade'][_0x81f23b(0x625)][_0x81f23b(0x616)](this[_0x81f23b(0x79c)])??null;}get[_0x1f2be5(0x4fc)](){const _0x54e043=_0x1f2be5;if(!this['_info']()[_0x54e043(0x405)])return null;const _0x20e341=this;return new Proxy({},{'get'(_0x2b3f41,_0x598ee1){const _0x19f408=_0x54e043;if(typeof _0x598ee1==='symbol'||_0x598ee1===_0x19f408(0x1df))return undefined;if(_0xdfbef0[_0x20e341[_0x19f408(0x79c)]]&&_0xdfbef0[_0x20e341[_0x19f408(0x79c)]]['has'](_0x598ee1))return _0x20e341[_0x19f408(0x3e2)]['_n'](_0x19f408(0x487),[_0x20e341[_0x19f408(0x79c)],_0x20e341[_0x19f408(0x885)],_0x598ee1,[]],![])[_0x19f408(0x7fd)];if(_0x20e341[_0x19f408(0x79c)]==='indexer'&&_0x598ee1===_0x19f408(0x5c4))return async(_0x212776={})=>{const _0x580063=_0x19f408,_0x2240ce=(_0x2a3bf3,..._0x42ddc4)=>_0x20e341[_0x580063(0x3e2)]['_n'](_0x580063(0x487),[_0x20e341[_0x580063(0x79c)],_0x20e341[_0x580063(0x885)],_0x2a3bf3,_0x42ddc4],!![])[_0x580063(0x7fd)],_0x2815b3=_0x2240ce('flushMaxWait',_0x212776??{}),_0x3ee9eb=Date[_0x580063(0x38b)]();for(;;){const _0x28150f=await _0x20e341[_0x580063(0x3e2)][_0x580063(0x555)][_0x580063(0x39b)](()=>_0x2240ce(_0x580063(0x140)));if(_0x28150f[_0x580063(0x84b)]>=_0x28150f[_0x580063(0x56f)])return;Date[_0x580063(0x38b)]()-_0x3ee9eb>=_0x2815b3&&_0x2240ce(_0x580063(0x2c7),_0x212776??{},_0x28150f),await new Promise(_0x387e4d=>setTimeout(_0x387e4d,0x3));}};return(..._0x49d6f1)=>{const _0x5d154c=_0x19f408,_0x18a989=()=>_0x20e341['_facade']['_n'](_0x5d154c(0x487),[_0x20e341['type'],_0x20e341[_0x5d154c(0x885)],_0x598ee1,_0x49d6f1],!![]),_0x48a8b0=_0x372e4e=>{const _0x15520e=_0x5d154c;if(_0x372e4e&&_0x372e4e['__absent'])throw new TypeError(_0x15520e(0x5f3)+_0x598ee1+'\x27');return _0x372e4e[_0x15520e(0x7fd)];};if(_0x3daa53['has'](_0x20e341[_0x5d154c(0x79c)])&&!_0x2cbf15[_0x5d154c(0x4a8)](_0x598ee1)){const _0x25051b=_0x20e341[_0x5d154c(0x3e2)][_0x5d154c(0x555)];return _0x25051b[_0x5d154c(0x6d8)](()=>_0x25051b[_0x5d154c(0x39b)](_0x18a989))[_0x5d154c(0x1df)](_0x48a8b0);}if(_0x5c81a7[_0x5d154c(0x4a8)](_0x20e341[_0x5d154c(0x79c)]))try{return Promise['resolve'](_0x48a8b0(_0x18a989()));}catch(_0x4224a3){return Promise['reject'](_0x4224a3);}return _0x48a8b0(_0x18a989());};}});}async[_0x1f2be5(0x6c8)](_0x45da36={}){const _0x4b7baf=_0x1f2be5;return await this[_0x4b7baf(0x3e2)][_0x4b7baf(0x47b)](_0x4b7baf(0x6c8),[this[_0x4b7baf(0x79c)],this[_0x4b7baf(0x885)],_0x45da36]),this;}async[_0x1f2be5(0x525)](){const _0x2b9689=_0x1f2be5;await this[_0x2b9689(0x3e2)]['_nm'](_0x2b9689(0x7bf),[this['type'],this[_0x2b9689(0x885)]]);}async[_0x1f2be5(0x851)](_0x4161fa={}){const _0x384e11=_0x1f2be5;await this['_facade'][_0x384e11(0x47b)](_0x384e11(0x1cc),[this[_0x384e11(0x79c)],this[_0x384e11(0x885)],_0x4161fa]);}async['patchDeclaration'](_0x13dee9={}){const _0x1cfd5e=_0x1f2be5;return await this[_0x1cfd5e(0x3e2)][_0x1cfd5e(0x47b)](_0x1cfd5e(0x730),[this['type'],this['name'],_0x13dee9]),this;}async[_0x1f2be5(0x6e1)](){const _0x4caa22=_0x1f2be5;await this[_0x4caa22(0x3e2)][_0x4caa22(0x47b)](_0x4caa22(0x63a),[this['type'],this[_0x4caa22(0x885)]]);}}class _0x55b5e0{constructor(_0x3c0ae4,_0x36affc=null,_0x308d4a=null){const _0x1a8a14=_0x1f2be5;this['okdb']=_0x3c0ae4,this['envName']=_0x36affc,this[_0x1a8a14(0x650)]=_0x36affc===null,this[_0x1a8a14(0x143)]=_0x308d4a||this,this[_0x1a8a14(0x625)]=this['_root']===this?_0xddf613(this):this[_0x1a8a14(0x143)][_0x1a8a14(0x625)],this[_0x1a8a14(0x340)]=new Map();}['_n'](_0x25d03d,_0x41b863,_0x50ce89=!![]){const _0x4644c3=_0x1f2be5;return this['okdb'][_0x4644c3(0x82b)]('engines',this['envName'],_0x25d03d,_0x41b863,_0x50ce89);}['_nm'](_0x29e451,_0x24e50f){const _0x10d75a=_0x1f2be5;return this[_0x10d75a(0x555)][_0x10d75a(0x421)](_0x10d75a(0x5a4),this[_0x10d75a(0x4f9)],_0x29e451,_0x24e50f,!![]);}get[_0x1f2be5(0x53c)](){const _0x10f0fb=_0x1f2be5;return this[_0x10f0fb(0x4f9)]?this[_0x10f0fb(0x555)][_0x10f0fb(0x53c)](this['envName']):null;}[_0x1f2be5(0x2ac)](_0x3afef0){const _0x1d42da=_0x1f2be5;if(!_0x3afef0)return null;let _0x57c97a=this['_handles'][_0x1d42da(0x616)](_0x3afef0[_0x1d42da(0x491)]);return!_0x57c97a&&(_0x57c97a=new _0x4d6bfd(this,_0x3afef0[_0x1d42da(0x491)],_0x3afef0[_0x1d42da(0x79c)],_0x3afef0[_0x1d42da(0x885)]),this[_0x1d42da(0x340)][_0x1d42da(0x488)](_0x3afef0[_0x1d42da(0x491)],_0x57c97a)),_0x57c97a;}[_0x1f2be5(0x496)](_0x4a00f4,_0x49aefd){const _0x4c6c6b=_0x1f2be5;if(!_0x4a00f4||typeof _0x4a00f4!==_0x4c6c6b(0x4c1))throw new _0x14667a(_0x4c6c6b(0x36f),_0x4c6c6b(0x366),{'type':_0x4a00f4});if(!_0x49aefd||typeof _0x49aefd!==_0x4c6c6b(0x6f7))throw new _0x14667a(_0x4c6c6b(0x345)+_0x4a00f4+_0x4c6c6b(0x1b3),_0x4c6c6b(0x40c),{'type':_0x4a00f4});if(typeof _0x49aefd[_0x4c6c6b(0x525)]!==_0x4c6c6b(0x40e))throw new _0x14667a(_0x4c6c6b(0x345)+_0x4a00f4+_0x4c6c6b(0x631),_0x4c6c6b(0x717),{'type':_0x4a00f4});const _0x1e3b5e=this[_0x4c6c6b(0x143)];if(_0x1e3b5e[_0x4c6c6b(0x625)]['has'](_0x4a00f4))throw new _0x14667a(_0x4c6c6b(0x684)+_0x4a00f4+'\x22',_0x4c6c6b(0x876),{'type':_0x4a00f4});const _0x31d7f3=_0x14cbb3[_0x4c6c6b(0x39c)](_0x49aefd,this[_0x4c6c6b(0x555)]),_0x2f92dc=_0x3aeb88['filter'](_0x209894=>typeof _0x49aefd[_0x209894]===_0x4c6c6b(0x40e)),_0x79412=_0x49aefd['docs']&&typeof _0x49aefd[_0x4c6c6b(0x5e9)]===_0x4c6c6b(0x6f7)?_0x49aefd[_0x4c6c6b(0x5e9)]:{};this[_0x4c6c6b(0x555)]['_call'](_0x4c6c6b(0x5a4),null,_0x4c6c6b(0x496),[_0x4a00f4,{'$id':_0x31d7f3,'has':_0x2f92dc,'docs':_0x79412}]),_0x1e3b5e['drivers']['_set'](_0x4a00f4,_0x49aefd);}get[_0x1f2be5(0x33e)](){const _0xc48533=_0x1f2be5;return this[_0xc48533(0x555)][_0xc48533(0x82b)](_0xc48533(0x5a4),null,'orchestratorStarted',[],![]);}get[_0x1f2be5(0x827)](){const _0x4bc436=this;return{get '_started'(){return _0x4bc436['_started'];}};}[_0x1f2be5(0x28c)](_0x4ecf28){const _0x2c8c3a=_0x1f2be5;if(!_0x4ecf28||typeof _0x4ecf28!=='object')throw new _0x14667a(_0x2c8c3a(0x566),_0x2c8c3a(0x4c4));if(!_0x4ecf28['id']||typeof _0x4ecf28['id']!==_0x2c8c3a(0x4c1))throw new _0x14667a('Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string',_0x2c8c3a(0x4c4));if(!['engine',_0x2c8c3a(0x84e)][_0x2c8c3a(0x2bc)](_0x4ecf28['kind']))throw new _0x14667a(_0x2c8c3a(0x541)+_0x4ecf28['id'],'ENGINE_INVALID_TEMPLATE');if(typeof _0x4ecf28[_0x2c8c3a(0x13b)]!==_0x2c8c3a(0x40e))throw new _0x14667a(_0x2c8c3a(0x815)+_0x4ecf28['id'],'ENGINE_INVALID_TEMPLATE');const _0x300b2e=this[_0x2c8c3a(0x555)],_0x56f507=typeof _0x4ecf28['inputSchema']===_0x2c8c3a(0x40e);return this['_n'](_0x2c8c3a(0x28c),[{'id':_0x4ecf28['id'],'kind':_0x4ecf28['kind'],'family':_0x4ecf28[_0x2c8c3a(0x68f)]??null,'engineType':_0x4ecf28[_0x2c8c3a(0x81d)]??null,'pipelineFamily':_0x4ecf28[_0x2c8c3a(0x510)]??null,'recommended':_0x4ecf28[_0x2c8c3a(0x813)]===!![],'summary':_0x4ecf28['summary']??null,'description':_0x4ecf28[_0x2c8c3a(0x455)]??null,'inputSchema':_0x56f507?null:_0x4ecf28[_0x2c8c3a(0x306)]??null,'inputSchemaFn':_0x56f507?()=>_0x4ecf28[_0x2c8c3a(0x306)](_0x300b2e):null,'defaults':_0x4ecf28[_0x2c8c3a(0x6cc)]??null,'notes':Array[_0x2c8c3a(0x4b6)](_0x4ecf28[_0x2c8c3a(0x685)])?_0x4ecf28['notes']:[],'links':Array[_0x2c8c3a(0x4b6)](_0x4ecf28['links'])?_0x4ecf28[_0x2c8c3a(0x2c9)]:[],'build':(_0x42a112,_0x43bf77)=>_0x4ecf28[_0x2c8c3a(0x13b)](_0x42a112??{},{'okdb':_0x300b2e,'envName':_0x43bf77??null})}],![]);}['listTemplates'](_0x16577d){const _0x415152=_0x1f2be5;return this['_n'](_0x415152(0x646),[_0x16577d??null],![]);}[_0x1f2be5(0x61b)](_0x4d5fea){return this['_n']('getTemplate',[_0x4d5fea],![]);}[_0x1f2be5(0x2c6)](_0x113e74,_0x396e1b,_0x203a3e){return this['_n']('previewTemplate',[_0x113e74,_0x396e1b,_0x203a3e??this['envName']],![]);}[_0x1f2be5(0x86a)](){return this['_n']('catalog',[],![]);}async[_0x1f2be5(0x525)](){return this['_nm']('start',[]);}async['stop'](){const _0x37017c=_0x1f2be5;return this[_0x37017c(0x47b)]('stop',[]);}async[_0x1f2be5(0x359)](_0x1a7853,_0x109d7c,_0x6e634a={},_0x4ffa3b={},_0x19eebc={}){const _0x9dffc1=_0x1f2be5;return this[_0x9dffc1(0x2ac)](await this[_0x9dffc1(0x47b)]('createEngine',[_0x1a7853,_0x109d7c,_0x6e634a,_0x4ffa3b,_0x19eebc]));}async[_0x1f2be5(0x50b)](_0x16fde5,_0xd73f34,_0x42b071={},_0x46d0d7={},_0x3a7537={}){const _0x5b1d3b=_0x1f2be5;return this[_0x5b1d3b(0x2ac)](await this['_nm'](_0x5b1d3b(0x50b),[_0x16fde5,_0xd73f34,_0x42b071,_0x46d0d7,_0x3a7537]));}[_0x1f2be5(0x538)](_0x3125d0,_0xb6519f){const _0x35d432=_0x1f2be5;return this[_0x35d432(0x2ac)](this['_n'](_0x35d432(0x538),[_0x3125d0,_0xb6519f],![]));}[_0x1f2be5(0x273)](_0x4b83a9,_0x16ee32){const _0x5d8ef4=_0x1f2be5;return this[_0x5d8ef4(0x2ac)](this['_n'](_0x5d8ef4(0x273),[_0x4b83a9,_0x16ee32],![]));}[_0x1f2be5(0x3f8)](_0x2ce709){const _0xbe76b2=_0x1f2be5;return this['_n']('list',[_0x2ce709??null],![])[_0xbe76b2(0x6f2)](_0x53988a=>this['_wrap'](_0x53988a));}async[_0x1f2be5(0x579)](_0x16f969,_0x11f0cc){const _0x37f20f=_0x1f2be5;return this[_0x37f20f(0x2ac)](await this[_0x37f20f(0x47b)](_0x37f20f(0x579),[_0x16f969,_0x11f0cc]));}async[_0x1f2be5(0x30d)](_0x19697b,_0x365b0f){const _0x247475=_0x1f2be5;return this[_0x247475(0x340)][_0x247475(0x727)](_0x19697b+':'+_0x365b0f),this[_0x247475(0x47b)](_0x247475(0x30d),[_0x19697b,_0x365b0f]);}async['startNewEnginesFromSync'](_0x53bc24){const _0x30f9c1=_0x1f2be5;return this[_0x30f9c1(0x47b)](_0x30f9c1(0x2d5),[_0x53bc24]);}async['bootSyncedEngines'](){const _0x120253=_0x1f2be5;return this[_0x120253(0x47b)]('bootSyncedEngines',[]);}}function _0xddf613(_0x2668d4){const _0x52de42=_0x1f2be5,_0x7ceaf8=new Map();return{'has':_0x2809b2=>_0x7ceaf8['has'](_0x2809b2)||_0x2668d4[_0x52de42(0x555)][_0x52de42(0x82b)](_0x52de42(0x5a4),null,_0x52de42(0x754),[_0x2809b2],![]),'get':_0x23acdc=>_0x7ceaf8[_0x52de42(0x616)](_0x23acdc),'set':()=>{const _0x42f7f0=_0x52de42;throw new _0x14667a('use\x20engines.registerDriver()',_0x42f7f0(0x229));},'_set':(_0x32ebb1,_0x352e86)=>_0x7ceaf8['set'](_0x32ebb1,_0x352e86),'keys':()=>_0x7ceaf8[_0x52de42(0x23b)](),'entries':()=>_0x7ceaf8[_0x52de42(0x325)](),'values':()=>_0x7ceaf8[_0x52de42(0x3b9)](),get 'size'(){const _0x4fc046=_0x52de42;return _0x7ceaf8[_0x4fc046(0x1d3)];},[Symbol['iterator']]:()=>_0x7ceaf8[Symbol[_0x52de42(0x821)]]()};}class _0x1b5a37{constructor(_0x4febb9,_0x694f9b=null){const _0x49c1f7=_0x1f2be5;this['okdb']=_0x4febb9,this[_0x49c1f7(0x4f9)]=_0x694f9b;}['_n'](_0x3cb3ca,_0x46b908,_0x1c830c=!![]){const _0x42a715=_0x1f2be5;return this[_0x42a715(0x555)][_0x42a715(0x82b)](_0x42a715(0x35c),this[_0x42a715(0x4f9)],_0x3cb3ca,_0x46b908,_0x1c830c);}[_0x1f2be5(0x47b)](_0x3ef906,_0x4e51e8){const _0x32ede8=_0x1f2be5;return this[_0x32ede8(0x555)][_0x32ede8(0x421)](_0x32ede8(0x35c),this[_0x32ede8(0x4f9)],_0x3ef906,_0x4e51e8,!![]);}get[_0x1f2be5(0x5e5)](){const _0x532b23=_0x1f2be5;return this[_0x532b23(0x4f9)]===null;}async['ensure'](_0x21ae5c){const _0x5daa81=_0x1f2be5;return this['_n'](_0x5daa81(0x4e2),[_0x21ae5c]);}async[_0x1f2be5(0x616)](_0xb19df4,_0x2d7978){return this['_n']('get',[_0xb19df4,_0x2d7978??null],![]);}async[_0x1f2be5(0x47c)](_0x385da0,_0x42d347){const _0x437b1e=_0x1f2be5;return this['_n'](_0x437b1e(0x47c),[_0x385da0,_0x42d347??null],![]);}async[_0x1f2be5(0x3f8)](_0x9e87cc){return this['_n']('list',[_0x9e87cc??null],![]);}async[_0x1f2be5(0x3e8)](_0x4118dd={}){const _0x15aa60=_0x1f2be5;return this['_n'](_0x15aa60(0x3e8),[_0x4118dd?.[_0x15aa60(0x4f9)]??null],![]);}['validate'](_0x1fa48c,_0x24ce03){const _0xb73610=_0x1f2be5;return this['_n'](_0xb73610(0x260),[_0x1fa48c,_0x24ce03??null],![]);}async[_0x1f2be5(0x267)](_0x261703){const _0x35281e=_0x1f2be5;return this[_0x35281e(0x47b)]('create',[_0x261703]);}async[_0x1f2be5(0x601)](_0x55480a,_0x5cda1f){const _0x1bcfb5=_0x1f2be5;return this[_0x1bcfb5(0x47b)]('update',[_0x55480a,_0x5cda1f]);}async[_0x1f2be5(0x851)](_0x5aa99f){const _0xd258bb=_0x1f2be5;return this[_0xd258bb(0x47b)](_0xd258bb(0x851),[_0x5aa99f]);}async['_settled'](_0x2e3296){const _0x4f646f=_0x1f2be5;if(!_0x2e3296||typeof _0x2e3296!==_0x4f646f(0x6f7)||!_0x2e3296[_0x4f646f(0x885)]||!_0x2e3296[_0x4f646f(0x5a4)])return _0x2e3296;for(let _0x3bcf1c=0x0;_0x3bcf1c<0x3;_0x3bcf1c++)await new Promise(_0x5ae4d4=>setImmediate(_0x5ae4d4));try{const _0x129efe=this['envName']!==null?await this[_0x4f646f(0x616)](_0x2e3296[_0x4f646f(0x885)]):_0x2e3296[_0x4f646f(0x53c)]?await this[_0x4f646f(0x616)](_0x2e3296[_0x4f646f(0x53c)],_0x2e3296[_0x4f646f(0x885)]):null;return _0x129efe||_0x2e3296;}catch{return _0x2e3296;}}async[_0x1f2be5(0x525)](_0x273f81){return this['_settled'](await this['_nm']('start',[_0x273f81]));}async[_0x1f2be5(0x579)](_0x2bd938){const _0x191d40=_0x1f2be5;return this[_0x191d40(0x402)](await this[_0x191d40(0x47b)](_0x191d40(0x579),[_0x2bd938]));}async[_0x1f2be5(0x429)](_0x233d1c){const _0x5ddb82=_0x1f2be5;return this['_nm'](_0x5ddb82(0x429),[_0x233d1c]);}async[_0x1f2be5(0x632)](_0x449798,_0x2d2194,_0x38decb){const _0x2ed7e2=_0x1f2be5;return this[_0x2ed7e2(0x47b)](_0x2ed7e2(0x632),[_0x449798,_0x2d2194,_0x38decb]);}async[_0x1f2be5(0x6a9)](_0x5187ed){const _0x7961d5=_0x1f2be5;return this[_0x7961d5(0x47b)](_0x7961d5(0x6a9),[_0x5187ed]);}async[_0x1f2be5(0x463)](){return this['_nm']('stopAll',[]);}async[_0x1f2be5(0x59f)](){const _0x57640a=_0x1f2be5;return this[_0x57640a(0x47b)]('bootSyncedPipelines',[]);}['findOwner'](_0x4ee725,_0x1f1cc8){const _0x2377c3=_0x1f2be5;return this['_n'](_0x2377c3(0x7e1),[_0x4ee725,_0x1f1cc8],![]);}}return engines={'OKDBEngines':_0x55b5e0,'OKDBPipelines':_0x1b5a37,'OKDBEngineHandle':_0x4d6bfd},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x108e29=_0x1ade1a;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x56ce89}=requireErrors(),_0x350622=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x1d43cf{constructor(_0x45d473,_0x39761d=null){const _0x5b2052=_0x3f13;this[_0x5b2052(0x555)]=_0x45d473,this[_0x5b2052(0x4f9)]=_0x39761d??_0x5b2052(0x196);}get[_0x108e29(0x53c)](){const _0x1c18d7=_0x108e29;return this['okdb'][_0x1c18d7(0x2b2)][_0x1c18d7(0x616)](this[_0x1c18d7(0x4f9)])??null;}['_n'](_0x5ac0a4,_0x1fb22c=[],_0x26d2e3=!![]){const _0x23e51b=_0x108e29;try{return this['okdb']['_call'](_0x23e51b(0x4a7),this[_0x23e51b(0x4f9)],_0x5ac0a4,_0x1fb22c,_0x26d2e3);}catch(_0x4aeaf6){throw _0x53c382(_0x4aeaf6);}}async[_0x108e29(0x47b)](_0x2b2986,_0x37cd09=[]){const _0x43c07a=_0x108e29;try{return await this['okdb'][_0x43c07a(0x421)]('functions',this[_0x43c07a(0x4f9)],_0x2b2986,_0x37cd09,!![]);}catch(_0x11eb86){throw _0x53c382(_0x11eb86);}}async['list'](){const _0x3504c5=_0x108e29;return this['_n'](_0x3504c5(0x3f8),[],![]);}async[_0x108e29(0x616)](_0x28c32e){const _0x4489da=_0x108e29;return this['_n'](_0x4489da(0x616),[_0x28c32e],![]);}async[_0x108e29(0x267)](_0x2f2940){const _0xa7179a=_0x108e29;return this['_n'](_0xa7179a(0x267),[_0x2f2940]);}async[_0x108e29(0x601)](_0x598256,_0x37f978={}){return this['_n']('update',[_0x598256,_0x37f978]);}async[_0x108e29(0x6a9)](_0x476ed3){return this['_n']('remove',[_0x476ed3]);}async[_0x108e29(0x2b7)](_0x5c8ef0){const _0xe0ee54=_0x108e29,{functionName:functionName=null}=_0x56ce89(_0x5c8ef0);return this['_n'](_0xe0ee54(0x2b7),[{'functionName':functionName}],![]);}async['getRun'](_0xf86c9e){const _0x5335aa=_0x108e29;return this['_n'](_0x5335aa(0x447),[_0xf86c9e],![]);}async['recordRun'](_0x242448){const _0x98d98c=_0x108e29;return _0x242448=_0x56ce89(_0x242448,'run'),this['_n'](_0x98d98c(0x464),[_0x242448]);}async[_0x108e29(0x7be)](_0x15a3f7,_0x554102=null,_0x47ecfc={}){const _0x5304eb=_0x108e29,_0x432b38={..._0x47ecfc},_0x1f1f52=_0x432b38[_0x5304eb(0x4ea)];if(_0x1f1f52)_0x432b38[_0x5304eb(0x88b)]=!!_0x1f1f52[_0x5304eb(0x88b)];delete _0x432b38[_0x5304eb(0x4ea)];const _0x2554a5=await this['_nm'](_0x5304eb(0x25e),[_0x15a3f7,_0x554102,_0x432b38]),_0x48fe60=this[_0x5304eb(0x555)],_0x735527=()=>_0x48fe60[_0x5304eb(0x755)][_0x5304eb(0x270)]();if(_0x1f1f52&&typeof _0x1f1f52[_0x5304eb(0x7b7)]===_0x5304eb(0x40e))_0x1f1f52[_0x5304eb(0x7b7)](_0x5304eb(0x19f),_0x735527,{'once':!![]});let _0x375106=![];try{for(;;){const _0x486b60=_0x48fe60['_pumper'][_0x5304eb(0x690)](_0x350622);let _0x479d89;try{_0x479d89=await _0x48fe60[_0x5304eb(0x421)](_0x5304eb(0x4a7),this[_0x5304eb(0x4f9)],_0x5304eb(0x30b),[_0x2554a5,!!_0x1f1f52?.['aborted']],![],![]);}catch(_0x5f213c){_0x375106=!![];throw _0x53c382(_0x5f213c);}if(!_0x479d89||_0x479d89[_0x5304eb(0x177)]!==!![])return _0x375106=!![],_0x48fe60['_pumper'][_0x5304eb(0x270)](),_0x479d89;if(_0x479d89[_0x5304eb(0x3f7)])_0x48fe60[_0x5304eb(0x755)][_0x5304eb(0x270)]();await _0x486b60;}}finally{if(_0x1f1f52&&typeof _0x1f1f52['removeEventListener']===_0x5304eb(0x40e))_0x1f1f52[_0x5304eb(0x3c1)](_0x5304eb(0x19f),_0x735527);if(!_0x375106)try{_0x48fe60[_0x5304eb(0x82b)]('functions',this['envName'],_0x5304eb(0x6b7),[_0x2554a5],![]);}catch{}}}async[_0x108e29(0x6fa)](_0x53f008={},_0x23effb=null,_0x5b7d35={}){const _0x1fe4bc=_0x108e29;return this['_nm'](_0x1fe4bc(0x6fa),[_0x53f008,_0x23effb,_0x5b7d35]);}async[_0x108e29(0x851)](){}}function _0x53c382(_0x1ff295){const _0x4e2a74=_0x108e29;if(_0x1ff295&&_0x1ff295[_0x4e2a74(0x7fa)]&&_0x1ff295[_0x4e2a74(0x7fa)][_0x4e2a74(0x4ac)])_0x1ff295['_runRecord']=_0x1ff295[_0x4e2a74(0x7fa)][_0x4e2a74(0x4ac)];return _0x1ff295;}return functions={'OKDBFunctions':_0x1d43cf},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x303eac=_0x1ade1a;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x208640}=requireErrors();class _0x3800c7{constructor(_0x58ca58,_0x5f4817){const _0x5203e7=_0x3f13;this['_lock']=_0x58ca58,this[_0x5203e7(0x245)]=_0x5f4817;}['_n'](_0x423b67,_0x34b29b=[]){const _0x52866e=_0x3f13;return this[_0x52866e(0x83d)]['_n'](_0x423b67,[this[_0x52866e(0x245)],..._0x34b29b]);}[_0x303eac(0x70c)](){const _0xc73b6a=_0x303eac;return this['_n'](_0xc73b6a(0x70c));}get[_0x303eac(0x58c)](){const _0x39c260=_0x303eac;return this['_n'](_0x39c260(0x58c));}[_0x303eac(0x6ea)](){const _0x3aa406=_0x303eac;return this['_n'](_0x3aa406(0x6ea));}['extend'](_0x51f4cf){const _0x303f7c=_0x303eac;return this['_n'](_0x303f7c(0x214),[_0x51f4cf]);}async[_0x303eac(0x718)](){const _0x5f1da4=_0x303eac;return this['_n'](_0x5f1da4(0x718));}}class _0x56961f{constructor(_0x4eb062,_0x4eb561,_0x2defb2,_0x472113){const _0x26084c=_0x303eac,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x208640(_0x472113);this[_0x26084c(0x555)]=_0x4eb062,this[_0x26084c(0x797)]=_0x2defb2,this[_0x26084c(0x245)]=_0x4eb062[_0x26084c(0x82b)](_0x26084c(0x785),_0x4eb561,_0x26084c(0x2fb),[_0x2defb2,ttlMs,heartbeatMs],![]),this[_0x26084c(0x6f4)]=_0x4eb561;}['_n'](_0x3ea9d1,_0xa5fedf=[]){const _0x9faaad=_0x303eac;return this[_0x9faaad(0x555)][_0x9faaad(0x82b)](_0x9faaad(0x785),this['_env'],_0x3ea9d1,_0xa5fedf,![]);}[_0x303eac(0x7f2)](_0x1f4ce4){const _0x241121=_0x303eac;return this['_n'](_0x241121(0x491),[this['_id'],_0x1f4ce4]);}async[_0x303eac(0x4d5)](_0x24c5c2,_0x4a7843={},_0x535999={}){const _0x529327=_0x303eac,_0xa412cd=this['_n'](_0x529327(0x4d5),[this[_0x529327(0x245)],_0x24c5c2,_0x4a7843,_0x535999]);return{'acquired':_0xa412cd['acquired'],'handle':_0xa412cd[_0x529327(0x1de)]==null?null:new _0x3800c7(this,_0xa412cd[_0x529327(0x1de)]),'current':_0xa412cd['current']};}['inspect'](_0x4054f0){const _0x34c559=_0x303eac;return this['_n'](_0x34c559(0x850),[this[_0x34c559(0x245)],_0x4054f0]);}[_0x303eac(0x3f8)](){const _0x3c5b67=_0x303eac;return this['_n'](_0x3c5b67(0x3f8),[this['_id']]);}[_0x303eac(0x284)](_0x579647){const _0x2e8ee6=_0x303eac;return this['_n'](_0x2e8ee6(0x284),[this[_0x2e8ee6(0x245)],_0x579647]);}[_0x303eac(0x7e6)](_0x18a072,_0xf83c1e=0x3e8){const _0x1de12d=_0x303eac;return this['_n'](_0x1de12d(0x7e6),[this['_id'],_0x18a072,_0xf83c1e]);}}return lock={'NativeLock':_0x56961f,'NativeLockHandle':_0x3800c7},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x3bee25=_0x1ade1a;if(hasRequiredProcessor)return processor[_0x3bee25(0x3bf)];hasRequiredProcessor=0x1;const _0x35f7f6=requireBridge(),{RawDb:_0x3f6f24}=requireRawdb(),{NativeLock:_0x4766db}=requireLock();function _0x528e81(_0x2d787e){}class _0x44dc2c{constructor(_0x41d824){const _0xbd8616=_0x3bee25;this[_0xbd8616(0x53c)]=_0x41d824,this[_0xbd8616(0x555)]=_0x41d824;try{this['_n'](_0xbd8616(0x3fe),[(_0x1aeacb,_0x338d8a)=>{const _0x493762=_0xbd8616,_0x3d2d3c=this[_0x493762(0x555)][_0x493762(0x629)],_0x60f61a=_0x3d2d3c?.[_0x1aeacb]??_0x3d2d3c?.[_0x493762(0x786)];if(typeof _0x60f61a===_0x493762(0x40e))_0x60f61a[_0x493762(0x881)](_0x3d2d3c,_0x338d8a);}],![]);}catch{}}['_n'](_0x25a231,_0x376e63,_0x219e51=!![]){const _0x279f45=_0x3bee25;return this[_0x279f45(0x53c)][_0x279f45(0x555)][_0x279f45(0x82b)](_0x279f45(0x428),this['env']['name'],_0x25a231,_0x376e63,_0x219e51);}[_0x3bee25(0x6f8)](_0x1e6089,_0x4288a3={}){const _0x1f842f=_0x3bee25,_0x4ae213={..._0x4288a3};if(typeof _0x4ae213[_0x1f842f(0x54a)]===_0x1f842f(0x40e)&&_0x4ae213['module']!=null)throw new Error(_0x1f842f(0x1f4)+'Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.');if(typeof _0x4ae213[_0x1f842f(0x54a)]===_0x1f842f(0x4c1)&&_0x4ae213[_0x1f842f(0x792)]!=null)throw new Error(_0x1f842f(0x453));if(_0x4ae213[_0x1f842f(0x792)]!=null){if(!_0x4ae213[_0x1f842f(0x792)]['path'])throw new Error(_0x1f842f(0x5af));const _0x2002e4=_0x4ae213['module'][_0x1f842f(0x333)]??_0x4ae213[_0x1f842f(0x792)][_0x1f842f(0x50d)]??_0x1f842f(0x58a),_0x330bd6=require['resolve'](_0x4ae213[_0x1f842f(0x792)][_0x1f842f(0x72d)]),_0x49cefb=require(_0x330bd6),_0x4f1b52=_0x49cefb[_0x2002e4]??_0x49cefb[_0x1f842f(0x693)]??_0x49cefb;if(typeof _0x4f1b52!==_0x1f842f(0x40e))throw new Error(_0x1f842f(0x74e)+_0x4ae213['module'][_0x1f842f(0x72d)]+_0x1f842f(0x4da)+_0x2002e4+_0x1f842f(0x81f));this['env']['okdb'][_0x1f842f(0x3ed)](_0x1f842f(0x428),_0x1f842f(0x3da),[_0x330bd6,_0x2002e4,_0x4f1b52]),_0x4ae213['module']={'path':_0x330bd6,'export':_0x2002e4};}if(_0x4ae213[_0x1f842f(0x549)]!=null){if(typeof _0x4ae213['quantum']['module']!==_0x1f842f(0x4c1))throw new Error('processor:\x20quantum.module\x20must\x20be\x20a\x20string');const _0xb9febf=require['resolve'](_0x4ae213[_0x1f842f(0x549)][_0x1f842f(0x792)]),_0x348b69=require(_0xb9febf),_0x3eee04=_0x4ae213[_0x1f842f(0x549)][_0x1f842f(0x50d)],_0x50e128=_0x3eee04?_0x348b69[_0x3eee04]:_0x348b69[_0x1f842f(0x693)]??_0x348b69;if(typeof _0x50e128===_0x1f842f(0x40e)){const _0x15bd99=_0x3eee04?_0x4ae213['quantum'][_0x1f842f(0x792)]+'#'+_0x3eee04:_0x4ae213['quantum']['module'];this[_0x1f842f(0x53c)][_0x1f842f(0x555)][_0x1f842f(0x3ed)](_0x1f842f(0x428),'registerQuantum',[_0x15bd99,_0x50e128]);}_0x4ae213[_0x1f842f(0x549)]={..._0x4ae213[_0x1f842f(0x549)]};}_0x4ae213[_0x1f842f(0x2f3)]!=null&&typeof _0x4ae213[_0x1f842f(0x2f3)]==='object'&&(_0x4ae213[_0x1f842f(0x2f3)]={'$payload':_0x35f7f6[_0x1f842f(0x280)](_0x4ae213['payload'],this[_0x1f842f(0x53c)][_0x1f842f(0x555)])});if(_0x4ae213[_0x1f842f(0x429)]!=null&&typeof _0x4ae213['rebuild']!==_0x1f842f(0x40e))throw new Error(_0x1f842f(0x59c));const _0x169766=this['_n'](_0x1f842f(0x6f8),[_0x1e6089??null,_0x4ae213]);return this[_0x1f842f(0x60a)](_0x169766['id'],_0x169766[_0x1f842f(0x758)]);}[_0x3bee25(0x60a)](_0x432324,_0x4494f1){const _0x3037a4=_0x3bee25,_0x43164f=this,_0x1f312c=async()=>{const _0x1e03bc=_0x3f13;_0x43164f['_n'](_0x1e03bc(0x807),[_0x432324]);};return _0x1f312c['id']=_0x432324,_0x1f312c[_0x3037a4(0x758)]=_0x4494f1,_0x1f312c[_0x3037a4(0x52c)]=()=>_0x4494f1?_0x43164f['_n']('handleDurableClock',[_0x432324],![]):0x0,_0x1f312c[_0x3037a4(0x371)]=()=>_0x43164f[_0x3037a4(0x616)](_0x432324),_0x1f312c[_0x3037a4(0x1e0)]=_0x1f312c[_0x3037a4(0x371)],_0x1f312c[_0x3037a4(0x200)]=()=>_0x43164f[_0x3037a4(0x200)](_0x432324),_0x1f312c[_0x3037a4(0x592)]=()=>_0x43164f[_0x3037a4(0x592)](_0x432324),_0x1f312c[_0x3037a4(0x4bc)]=()=>_0x43164f['kick'](_0x432324),_0x1f312c[_0x3037a4(0x4dd)]=()=>_0x43164f[_0x3037a4(0x4dd)](_0x432324),_0x1f312c[_0x3037a4(0x7eb)]=_0x4d6b60=>_0x43164f[_0x3037a4(0x7eb)](_0x432324,_0x4d6b60),_0x1f312c;}get['_stops'](){const _0x22a35a=_0x3bee25;try{return this['_n'](_0x22a35a(0x3f8),[],![])[_0x22a35a(0x6f2)](_0x4210b6=>({'id':_0x4210b6['id']}));}catch{return[];}}async[_0x3bee25(0x1b0)](_0x34efe5){return new Set(this['_n']('pauseAllAndDrain',[]));}[_0x3bee25(0x7d5)](_0x47c034){return this['_n']('resumeAllAfterDrain',[[..._0x47c034??[]]]);}get[_0x3bee25(0x7b0)](){const _0x36cd0b=_0x3bee25;return new Set(this['_n'](_0x36cd0b(0x3f8),[],![])[_0x36cd0b(0x658)](_0x129170=>_0x129170[_0x36cd0b(0x79c)]==null)[_0x36cd0b(0x6f2)](_0x215715=>_0x215715['id']));}[_0x3bee25(0x41b)](){}get[_0x3bee25(0x83d)](){const _0x34129a=_0x3bee25;if(!this[_0x34129a(0x534)]){const _0x5014b0=new _0x4766db(this['env']['okdb'],this[_0x34129a(0x53c)][_0x34129a(0x885)],'proc'),_0x1d055b=this[_0x34129a(0x53c)];_0x5014b0[_0x34129a(0x612)]=()=>new _0x3f6f24(_0x1d055b,_0x34129a(0x15c)),this[_0x34129a(0x534)]=_0x5014b0;}return this[_0x34129a(0x534)];}[_0x3bee25(0x884)](_0x57f8b3,_0x9b45c2){const _0xda68d1=_0x3bee25;return this['_n'](_0xda68d1(0x490),[typeof _0x57f8b3==='string'?_0x57f8b3:_0x57f8b3['id'],_0x9b45c2?.[_0xda68d1(0x806)]??String(_0x9b45c2??'')]);}get[_0x3bee25(0x1ce)](){const _0x5c74ee=_0x3bee25;return this[_0x5c74ee(0x3f9)]||(this[_0x5c74ee(0x3f9)]=new _0x3f6f24(this[_0x5c74ee(0x53c)],_0x5c74ee(0x512)));}get[_0x3bee25(0x628)](){const _0xfd2a1c=_0x3bee25,_0xc99c0=this,_0x2ab414=_0x3904de=>{const _0x41d5a1=_0x3f13,_0x4d1e11=()=>_0xc99c0['_n'](_0x41d5a1(0x2a4),[_0x3904de],![]);if(!_0x4d1e11())return undefined;const _0x5dd0b3=_0x50d58c=>()=>_0x4d1e11()?.[_0x50d58c],_0x428a60={'id':_0x3904de},_0x30937c=(_0x3c6148,_0x4f0331,_0x489faf)=>Object[_0x41d5a1(0x882)](_0x428a60,_0x3c6148,{'get':_0x4f0331,'set':_0x489faf,'enumerable':!![],'configurable':!![]});return _0x30937c(_0x41d5a1(0x823),_0x5dd0b3(_0x41d5a1(0x823))),_0x30937c(_0x41d5a1(0x75b),_0x5dd0b3(_0x41d5a1(0x75b))),_0x30937c('paused',_0x5dd0b3(_0x41d5a1(0x840))),_0x30937c(_0x41d5a1(0x49f),_0x5dd0b3(_0x41d5a1(0x49f)),_0x4a1d47=>_0xc99c0['_n'](_0x41d5a1(0x6dd),[_0x3904de,_0x4a1d47])),_0x30937c(_0x41d5a1(0x758),_0x5dd0b3(_0x41d5a1(0x758))),_0x30937c(_0x41d5a1(0x5c0),_0x5dd0b3('claimGated'),_0x48711e=>_0xc99c0['_n']('setClaimGated',[_0x3904de,!!_0x48711e])),_0x30937c(_0x41d5a1(0x39a),_0x5dd0b3('handlerName')),_0x30937c('flushQuantum',_0x5dd0b3(_0x41d5a1(0x23e))),_0x30937c('drainDeadlineMs',_0x5dd0b3(_0x41d5a1(0x563))),_0x30937c('_modeApplied',_0x5dd0b3(_0x41d5a1(0x6bd)),_0x16029e=>_0xc99c0['_n'](_0x41d5a1(0x53f),[_0x3904de,_0x16029e])),_0x30937c(_0x41d5a1(0x5c1),()=>_0xc99c0['get'](_0x3904de)?.[_0x41d5a1(0x5c1)]),_0x30937c(_0x41d5a1(0x5ff),()=>_0x4d1e11()?.[_0x41d5a1(0x13a)]?{'isHeld':()=>!!_0x4d1e11()?.[_0x41d5a1(0x13a)]}:null),_0x30937c(_0x41d5a1(0x594),()=>_0x4d1e11()?.[_0x41d5a1(0x866)]?()=>{}:null),_0x30937c(_0x41d5a1(0x870),()=>_0x4d1e11()?.[_0x41d5a1(0x1c0)]?{}:null),_0x30937c(_0x41d5a1(0x835),()=>_0x4d1e11()?.[_0x41d5a1(0x5bb)]?{}:null),_0x428a60;},_0x1fb02d=()=>_0xc99c0['_n'](_0xfd2a1c(0x3f8),[],![])[_0xfd2a1c(0x6f2)](_0x438964=>_0x438964['id']);return{'get':_0x17a9bf=>_0x2ab414(_0x17a9bf),'has':_0x1a1dc9=>_0x1fb02d()[_0xfd2a1c(0x2bc)](_0x1a1dc9),get 'size'(){const _0x26dee8=_0xfd2a1c;return _0x1fb02d()[_0x26dee8(0x479)];},'keys':()=>_0x1fb02d()[Symbol[_0xfd2a1c(0x821)]](),'values':()=>_0x1fb02d()[_0xfd2a1c(0x6f2)](_0x2ab414)[Symbol[_0xfd2a1c(0x821)]](),'entries':()=>_0x1fb02d()[_0xfd2a1c(0x6f2)](_0x5718f0=>[_0x5718f0,_0x2ab414(_0x5718f0)])[Symbol[_0xfd2a1c(0x821)]](),[Symbol[_0xfd2a1c(0x821)]]:()=>_0x1fb02d()[_0xfd2a1c(0x6f2)](_0x8fde34=>[_0x8fde34,_0x2ab414(_0x8fde34)])[Symbol[_0xfd2a1c(0x821)]](),'forEach':_0x5d4fdc=>_0x1fb02d()[_0xfd2a1c(0x39f)](_0x356062=>_0x5d4fdc(_0x2ab414(_0x356062),_0x356062))};}async[_0x3bee25(0x463)](){const _0x1accaa=_0x3bee25;return this['_n'](_0x1accaa(0x463),[]);}[_0x3bee25(0x3f8)](){const _0x3ccc0e=_0x3bee25,_0x4be53f=this['_n'](_0x3ccc0e(0x3f8),[],![]);if(!this['env']['name'][_0x3ccc0e(0x70d)]('~'))try{const _0x539b04=this[_0x3ccc0e(0x53c)][_0x3ccc0e(0x555)][_0x3ccc0e(0x5c1)];for(const _0x4f93e1 of _0x539b04[_0x3ccc0e(0x55e)](this[_0x3ccc0e(0x53c)][_0x3ccc0e(0x885)])){for(const _0x32fd7e of _0x539b04[_0x3ccc0e(0x300)](_0x4f93e1,this[_0x3ccc0e(0x53c)][_0x3ccc0e(0x885)])){const _0x189982=_0x3ccc0e(0x434)+_0x4f93e1+':'+_0x32fd7e;_0x4be53f['push']({'id':_0x189982,'type':_0x4f93e1,'mode':'inline','state':_0x3ccc0e(0x40b),'paused':![],'lag':0x0,'cursorKey':_0x189982,'meta':{'name':_0x189982}});}}}catch{}return _0x4be53f;}[_0x3bee25(0x546)](){const _0x41ee12=_0x3bee25;return this['_n'](_0x41ee12(0x546),[],![]);}['durableTierLag'](){return this['_n']('durableTierLag',[],![]);}['durableCursorFloor'](){return this['_n']('durableCursorFloor',[],![]);}[_0x3bee25(0x616)](_0x3a9a6c){return this['_n']('get',[_0x3a9a6c],![]);}[_0x3bee25(0x78e)](_0x298474){const _0x1c8207=_0x3bee25;return this['get'](typeof _0x298474===_0x1c8207(0x4c1)?_0x298474:_0x298474['id']);}[_0x3bee25(0x859)](_0x453c1a){const _0x7ffdf8=_0x3bee25;return this['_n'](_0x7ffdf8(0x859),[_0x453c1a],![]);}[_0x3bee25(0x252)](_0x19b418){const _0x333839=_0x3bee25;return this['_n'](_0x333839(0x252),[_0x19b418]);}['markSnapshotComplete'](_0x151b90){const _0x546d72=_0x3bee25;return this['_n'](_0x546d72(0x218),[_0x151b90]);}[_0x3bee25(0x156)](_0x4f2c52){const _0x292ef2=_0x3bee25;return this['_n'](_0x292ef2(0x156),[_0x4f2c52],![]);}[_0x3bee25(0x6ac)](_0x24d4da,_0x122904){const _0x5a78ff=_0x3bee25;return this['_n'](_0x5a78ff(0x6ac),[_0x24d4da,_0x122904]);}async['awaitIdle'](_0x46bf3c,_0x25ccbf){const _0x52ce11=_0x3bee25;return this['_n'](_0x52ce11(0x7eb),[_0x46bf3c,_0x25ccbf??0x7530]);}[_0x3bee25(0x200)](_0x210dfe){const _0x3a4aa7=_0x3bee25;return this['_n'](_0x3a4aa7(0x200),[_0x210dfe]);}[_0x3bee25(0x592)](_0x330e26){const _0x1f9a34=_0x3bee25;return this['_n'](_0x1f9a34(0x592),[_0x330e26]);}async[_0x3bee25(0x5d7)](_0x182a53){const _0x537afc=_0x3bee25;return this['_n'](_0x537afc(0x5d7),[_0x182a53]);}[_0x3bee25(0x4bc)](_0x5d025f){const _0x1f098b=_0x3bee25;return this['_n'](_0x1f098b(0x4bc),[_0x5d025f]);}['retry'](_0x21d3d7){const _0x14a6f9=_0x3bee25;return this['_n'](_0x14a6f9(0x4dd),[_0x21d3d7]);}[_0x3bee25(0x579)](_0x2b8d14,_0x37f46e={}){const _0x36ac54=_0x3bee25;return this['_n'](_0x36ac54(0x579),[_0x2b8d14,_0x37f46e]);}async[_0x3bee25(0x81b)](_0x2f2934,_0x4ef2e0,_0x13c05e){const _0x2e9fb8=_0x3bee25,[_0x45b7b4,_0x4d75d4]=this['_n'](_0x2e9fb8(0x81b),[_0x2f2934,_0x4ef2e0,_0x13c05e]);return{'version':_0x45b7b4,'flipClock':_0x4d75d4};}async[_0x3bee25(0x2d4)](_0x1093c4,_0x1de670,_0x4e3896={}){const _0x17ed82=_0x3bee25;return this['_n'](_0x17ed82(0x2d4),[_0x1093c4,_0x1de670,_0x4e3896]);}}_0x44dc2c[_0x3bee25(0x4b2)]=function _0x422f91(_0x55cde5,_0x2959ef){const _0x21b514=_0x3bee25;if(typeof _0x55cde5!==_0x21b514(0x4c1)||!_0x55cde5)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x2959ef!==_0x21b514(0x40e))throw new Error(_0x21b514(0x68c));_0x54c940(_0x21b514(0x428),_0x21b514(0x4b2),[_0x55cde5,_0x2959ef]);},_0x44dc2c[_0x3bee25(0x6d7)]=function _0xa26656(_0x2a9570,_0x26ebbe){const _0xda41ec=_0x3bee25;if(typeof _0x2a9570!==_0xda41ec(0x4c1)||!_0x2a9570)throw new Error('registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x26ebbe!==_0xda41ec(0x40e))throw new Error(_0xda41ec(0x6b9));let _0x574390=null;_0x54c940('proc',_0xda41ec(0x6d7),[_0x2a9570,(_0x83ab16,_0x368a11)=>{if(!_0x574390)_0x574390=_0x26ebbe();return _0x574390(_0x83ab16,_0x368a11);}]);},_0x44dc2c[_0x3bee25(0x501)]=_0x9ba347=>/closed|not open|released/i[_0x3bee25(0x787)](String(_0x9ba347)),_0x44dc2c[_0x3bee25(0x65f)]=![];function _0x54c940(_0x1aa1b2,_0x39d15b,_0x56fb20){const {staticCall:_0x1808a5}=requireLib();return _0x1808a5(_0x1aa1b2,_0x39d15b,_0x56fb20);}return processor[_0x3bee25(0x3bf)]=_0x44dc2c,processor[_0x3bee25(0x3bf)]['OKDBProcessor']=_0x44dc2c,processor[_0x3bee25(0x3bf)]['setNative']=_0x528e81,processor[_0x3bee25(0x3bf)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1c1f1f=_0x1ade1a;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x274704={'PUT':_0x1c1f1f(0x7bc),'REMOVE':_0x1c1f1f(0x6a9),'INDEX_DROP':_0x1c1f1f(0x253),'INDEX_REGISTER':_0x1c1f1f(0x2d7),'INDEX_RESET':'resetIndex','TYPE_REGISTER':_0x1c1f1f(0x4eb),'TYPE_DROP':'dropType','FTS_REGISTER':'registerFts','FTS_DROP':_0x1c1f1f(0x3dc),'FTS_RESET':_0x1c1f1f(0x69e),'SCHEMA_SET':_0x1c1f1f(0x4e4),'SCHEMA_DROP':_0x1c1f1f(0x3c9),'TTL_SET':'setTtl','TTL_CLEAR':'clearTtl'},_0x2cc0ca={'SYSTEM_READY':'system:ready','FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':_0x1c1f1f(0x772),'SYSTEM_CLOCK_CHANGE':_0x1c1f1f(0x5ae),'SYSTEM_POKE':_0x1c1f1f(0x22e),'SYSTEM_DRAIN':_0x1c1f1f(0x6d3),'SYSTEM_TYPE_DROP':_0x1c1f1f(0x299),'SYSTEM_PROC':_0x1c1f1f(0x82c),'SYSTEM_BUS_STATE_CHANGE':_0x1c1f1f(0x70e),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x1c1f1f(0x201),'ITEM_PENDING':_0x1c1f1f(0x7a5),'INDEX_RESET':'index:reset','INDEX_READY':_0x1c1f1f(0x544),'INDEX_PROGRESS':_0x1c1f1f(0x44d),'VIEW_PROGRESS':_0x1c1f1f(0x212),'INDEX_DROP':_0x1c1f1f(0x1d7),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x1c1f1f(0x7fc),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x1c1f1f(0x3b3),'UNIQUE_VIOLATION':_0x1c1f1f(0x7f1),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x1c1f1f(0x32a),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':'sync:apply','TXN_START':'txn:start','TXN_END':_0x1c1f1f(0x2e4),'TXN_ROLLBACK':_0x1c1f1f(0x27f),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x1c1f1f(0x31e),'ENV_OPENED':_0x1c1f1f(0x6fc),'ENV_REMOVED':_0x1c1f1f(0x338),'SYSTEM_ENV_RELEASE':_0x1c1f1f(0x6b5),'TTL_EXPIRED':_0x1c1f1f(0x15d),'TTL_SET':_0x1c1f1f(0x699),'TTL_CLEAR':_0x1c1f1f(0x654),'LICENSE_INVALID':_0x1c1f1f(0x531),'LICENSE_ADDED':_0x1c1f1f(0x752),'LICENSE_ACTIVATED':_0x1c1f1f(0x21f),'LICENSE_REMOVED':_0x1c1f1f(0x409)},_0x2cc2ca={'CREATING':_0x1c1f1f(0x254),'RESETTING':_0x1c1f1f(0x394),'READY':_0x1c1f1f(0x5ef),'DROPPING':_0x1c1f1f(0x78a),'WAITING':_0x1c1f1f(0x225),'ERROR':_0x1c1f1f(0x814)},_0x202177={'CREATED':_0x1c1f1f(0x249),'STARTING':'starting','STARTED':'started','STOPPING':_0x1c1f1f(0x607),'STOPPED':_0x1c1f1f(0x26b)},_0x91765b={'CREATING':_0x1c1f1f(0x254),'READY':_0x1c1f1f(0x5ef),'HALTED':'halted','STOPPED':_0x1c1f1f(0x26b),'RESETTING':_0x1c1f1f(0x394)},_0x55836a=Object[_0x1c1f1f(0x493)]({'POKE':_0x1c1f1f(0x838),'DRAIN':_0x1c1f1f(0x2a8),'TYPE_DROP':_0x1c1f1f(0x554),'PROC':_0x1c1f1f(0x5f0),'ENV_RELEASE':_0x1c1f1f(0x577)});return okdbEnums={'BUS_EVENTS':_0x55836a,'CHANGE_ACTIONS':_0x274704,'EVENTS':_0x2cc0ca,'INDEX_STATE':_0x2cc2ca,'OKDB_STATE':_0x202177,'VIEW_STATE':_0x91765b},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x261571=_0x1ade1a;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0xd7224d={'SKIP':Symbol[_0x261571(0x28e)]('@harperdb/extended-iterable:skip')},{OKDBError:_0x12fa58}=requireOkdbError(),_0x486e67={'value':null,'done':!![]};class _0x22874c{constructor(_0x230119){const _0x3423bc=_0x261571;this[_0x3423bc(0x7ef)]=_0x230119;}get[_0x261571(0x6c9)](){return _0x486e67;}[Symbol[_0x261571(0x821)]](){const _0x25c21e=_0x261571;return this[_0x25c21e(0x7ef)]();}['map'](_0x434aec){const _0xe79e3e=this;return new _0x22874c(()=>{const _0x5bd457=_0x3f13,_0x2cd00b=_0xe79e3e[Symbol[_0x5bd457(0x821)]]();return{'next'(){const _0x1e10ff=_0x5bd457;for(;;){const _0x68390f=_0x2cd00b[_0x1e10ff(0x67f)]();if(_0x68390f[_0x1e10ff(0x45e)])return{'done':!![],'value':undefined};const _0x385f35=_0x434aec(_0x68390f[_0x1e10ff(0x7fd)]);if(_0x385f35===_0xd7224d[_0x1e10ff(0x564)])continue;if(_0x385f35===_0x486e67)return _0x2cd00b[_0x1e10ff(0x5dc)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x385f35};}},'return'(){const _0x3cfb19=_0x5bd457;return _0x2cd00b[_0x3cfb19(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5bd457(0x821)]](){return this;}};});}[_0x261571(0x658)](_0xf5d49b){const _0x3b5723=_0x261571;return this[_0x3b5723(0x6f2)](_0xc98ec7=>_0xf5d49b(_0xc98ec7)?_0xc98ec7:_0xd7224d[_0x3b5723(0x564)]);}['forEach'](_0x397a4d){for(const _0x54d18c of this)_0x397a4d(_0x54d18c);}[_0x261571(0x4e8)](_0x16a702=0x0,_0x5c0a8a=Infinity){const _0x30d521=this;return new _0x22874c(()=>{const _0x5be142=_0x3f13,_0x15befe=_0x30d521[Symbol['iterator']]();let _0x3ee8b9=0x0;return{'next'(){const _0x56897f=_0x3f13;for(;;){const _0x3b819d=_0x15befe[_0x56897f(0x67f)]();if(_0x3b819d[_0x56897f(0x45e)])return{'done':!![],'value':undefined};const _0xbfea9d=_0x3ee8b9++;if(_0xbfea9d<_0x16a702)continue;if(_0xbfea9d>=_0x5c0a8a)return _0x15befe['return']?.(),{'done':!![],'value':undefined};return _0x3b819d;}},'return'(){const _0x4e67cd=_0x3f13;return _0x15befe[_0x4e67cd(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5be142(0x821)]](){return this;}};});}['at'](_0x13ff53){let _0x5192f9=0x0;for(const _0x3a2481 of this)if(_0x5192f9++===_0x13ff53)return _0x3a2481;return undefined;}['flatMap'](_0x32ea91){const _0x5d554f=this;return new _0x22874c(()=>{const _0x24a2ea=_0x3f13,_0x22a123=_0x5d554f[Symbol[_0x24a2ea(0x821)]]();let _0x51c8fb=[];return{'next'(){const _0x19cd2c=_0x24a2ea;for(;;){if(_0x51c8fb[_0x19cd2c(0x479)])return{'done':![],'value':_0x51c8fb['shift']()};const _0x52153e=_0x22a123['next']();if(_0x52153e[_0x19cd2c(0x45e)])return{'done':!![],'value':undefined};const _0x51194d=_0x32ea91(_0x52153e[_0x19cd2c(0x7fd)]);if(Array[_0x19cd2c(0x4b6)](_0x51194d))_0x51c8fb=_0x51c8fb[_0x19cd2c(0x45c)](_0x51194d);else{if(_0x51194d!=null&&(_0x51194d instanceof _0x22874c||typeof _0x51194d[Symbol[_0x19cd2c(0x821)]]==='function'&&_0x19cd2c(0x34f)in _0x51194d))_0x51c8fb=_0x51c8fb[_0x19cd2c(0x45c)](Array[_0x19cd2c(0x5f7)](_0x51194d));else{if(_0x51194d!==_0xd7224d[_0x19cd2c(0x564)])return{'done':![],'value':_0x51194d};}}}},'return'(){return _0x22a123['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x261571(0x45c)](_0x5d6f1c){const _0x52591a=this;return new _0x22874c(()=>{const _0x30b23c=_0x3f13;let _0x445cc3=_0x52591a[Symbol[_0x30b23c(0x821)]](),_0x5bf737=![];return{'next'(){const _0x5e2a43=_0x30b23c;for(;;){const _0x993853=_0x445cc3[_0x5e2a43(0x67f)]();if(!_0x993853[_0x5e2a43(0x45e)])return _0x993853;if(_0x5bf737)return{'done':!![],'value':undefined};_0x5bf737=!![],_0x445cc3=_0x5d6f1c[Symbol[_0x5e2a43(0x821)]]();}},'return'(){const _0x14915c=_0x30b23c;return _0x445cc3[_0x14915c(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x30b23c(0x821)]](){return this;}};});}['mapError'](_0x1e123c){const _0x552406=this;return new _0x22874c(()=>{const _0x46c6e4=_0x3f13,_0x31964a=_0x552406[Symbol['iterator']]();return{'next'(){const _0x34b98c=_0x3f13;for(;;){try{return _0x31964a[_0x34b98c(0x67f)]();}catch(_0x4a4ddb){const _0x2286b1=_0x1e123c(_0x4a4ddb);if(_0x2286b1===_0xd7224d[_0x34b98c(0x564)]||_0x2286b1===undefined)continue;return{'done':![],'value':_0x2286b1};}}},'return'(){const _0x2d6af6=_0x3f13;return _0x31964a[_0x2d6af6(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x46c6e4(0x821)]](){return this;}};});}[_0x261571(0x644)](){return Array['from'](this);}get[_0x261571(0x34f)](){const _0x443656=_0x261571;return Array[_0x443656(0x5f7)](this);}}const _0x294f78={'total':0x0,'byLabel':{},'last':null};function _0x30bcfd(_0x46d17d){const _0x1fd23d=_0x261571;_0x294f78['total']++;if(_0x46d17d)_0x294f78['byLabel'][_0x46d17d]=(_0x294f78[_0x1fd23d(0x57e)][_0x46d17d]??0x0)+0x1;_0x294f78['last']={'label':_0x46d17d??null,'at':Date[_0x1fd23d(0x38b)]()};}function _0x29fe52(){const _0x94c489=_0x261571;return{'total':_0x294f78[_0x94c489(0x38f)],'byLabel':{..._0x294f78[_0x94c489(0x57e)]},'last':_0x294f78[_0x94c489(0x16d)]};}function _0x184dbd(_0x1efbce,_0x240344={}){const {getTxnId:_0x5ecbe7,resume:_0x15b25e,label:_0x9535e,baseline:_0x3f114f}=_0x240344;return new _0x22874c(()=>{const _0x404011=_0x3f13;let _0x66227d=null,_0x949909=![],_0x18bce0=![],_0x55ac06=![],_0x2edbaf,_0x562495=0x0,_0x5eaf71;return{'next'(){const _0x246be0=_0x3f13;if(_0x55ac06)return{'done':!![],'value':undefined};if(_0x18bce0){let _0x5cf37a=![];if(_0x15b25e&&_0x5ecbe7)try{_0x5cf37a=_0x5ecbe7()===_0x5eaf71;}catch{}if(!_0x5cf37a){_0x55ac06=!![],_0x30bcfd(_0x9535e);throw new _0x12fa58(_0x15b25e?_0x246be0(0x74d)+'meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20'+_0x246be0(0x291):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+_0x246be0(0x7a3)+_0x246be0(0x1d2),_0x246be0(0x459));}_0x66227d=_0x15b25e(_0x2edbaf,_0x562495)[Symbol[_0x246be0(0x821)]](),_0x18bce0=![];}if(!_0x66227d){if(_0x3f114f!==undefined)_0x5eaf71=_0x3f114f;else try{_0x5eaf71=_0x5ecbe7?_0x5ecbe7():undefined;}catch{_0x5eaf71=undefined;}try{_0x66227d=_0x1efbce()[Symbol[_0x246be0(0x821)]]();}catch(_0x4e632e){_0x55ac06=!![];throw _0x4e632e;}}!_0x949909&&(_0x949909=!![],queueMicrotask(()=>{const _0x258016=_0x246be0;_0x949909=![];if(_0x55ac06||_0x18bce0)return;try{_0x66227d?.[_0x258016(0x5dc)]?.();}catch{}_0x66227d=null,_0x18bce0=!![];}));const _0x4cd66f=_0x66227d[_0x246be0(0x67f)]();if(_0x4cd66f[_0x246be0(0x45e)])return _0x55ac06=!![],{'done':!![],'value':undefined};return _0x2edbaf=_0x4cd66f[_0x246be0(0x7fd)],_0x562495++,_0x4cd66f;},'return'(){_0x55ac06=!![];try{_0x66227d?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x404011(0x821)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x184dbd,'OKDBGuardedRange':_0x22874c,'recordGuardTrip':_0x30bcfd,'getGuardTripStats':_0x29fe52},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1ba971=_0x1ade1a;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x36d467,performance:_0x50e87f}=require$$0$1,_0x581ac5=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1ba971(0x2fa),_0x1b9268=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x4d3b0f=process.env.OKDB_LOOP_LAG_ALL==='1',_0x392f66=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x40f3b{constructor(){const _0x4fefcc=_0x1ba971;this[_0x4fefcc(0x25c)]=_0x581ac5,this[_0x4fefcc(0x277)]=new Map(),this['_h']=null,this[_0x4fefcc(0x79b)]=null,this[_0x4fefcc(0x33e)]=![],this[_0x4fefcc(0x312)]=(_0x9da586,_0x400d19)=>process[_0x4fefcc(0x59a)]['write'](_0x9da586+(_0x400d19?'\x20'+JSON[_0x4fefcc(0x4e6)](_0x400d19):'')+'\x0a');}[_0x1ba971(0x38b)](){const _0xa265bf=_0x1ba971;return _0x50e87f[_0xa265bf(0x38b)]();}[_0x1ba971(0x2b6)](_0x2e0c49){const _0x57e720=_0x1ba971;if(typeof _0x2e0c49===_0x57e720(0x40e))this[_0x57e720(0x312)]=_0x2e0c49;}[_0x1ba971(0x426)](_0x1ffa2c,_0xbcac83,_0x48a2b9){const _0x2a4d28=_0x1ba971;if(!this['enabled'])return;let _0x44ffa1=this['_buckets'][_0x2a4d28(0x616)](_0x1ffa2c);!_0x44ffa1&&(_0x44ffa1={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x2a4d28(0x277)][_0x2a4d28(0x488)](_0x1ffa2c,_0x44ffa1)),_0x44ffa1['ms']+=_0xbcac83,_0x44ffa1['count']+=0x1,_0xbcac83>_0x44ffa1[_0x2a4d28(0x357)]&&(_0x44ffa1[_0x2a4d28(0x357)]=_0xbcac83,_0x44ffa1[_0x2a4d28(0x714)]=_0x48a2b9||'');}[_0x1ba971(0x525)](_0x3dd1c2){const _0x43c3a2=_0x1ba971;if(!this['enabled']||this['_started'])return;this[_0x43c3a2(0x33e)]=!![];if(_0x3dd1c2)this[_0x43c3a2(0x312)]=_0x3dd1c2;this['_h']=_0x36d467({'resolution':0xa}),this['_h'][_0x43c3a2(0x716)](),this['_timer']=setInterval(()=>this[_0x43c3a2(0x707)](),_0x1b9268);if(this[_0x43c3a2(0x79b)]['unref'])this[_0x43c3a2(0x79b)][_0x43c3a2(0x7ed)]();}[_0x1ba971(0x5b3)](_0x4b5f86){const _0x33f4e8=_0x1ba971;if(!this['_windowCbs'])this[_0x33f4e8(0x440)]=new Set();this[_0x33f4e8(0x440)][_0x33f4e8(0x76e)](_0x4b5f86);if(!this[_0x33f4e8(0x33e)])this[_0x33f4e8(0x34d)]();}['offWindow'](_0x1700a){const _0x35d7e7=_0x1ba971;this[_0x35d7e7(0x440)]?.[_0x35d7e7(0x727)](_0x1700a);}[_0x1ba971(0x34d)](){const _0xfc88ed=_0x1ba971;if(this['_admissionStarted'])return;this[_0xfc88ed(0x7b9)]=!![];!this['_h']&&(this['_h']=_0x36d467({'resolution':0xa}),this['_h'][_0xfc88ed(0x716)]());const _0x32ad85=_0x1b9268;this[_0xfc88ed(0x4d1)]=setInterval(()=>{const _0x5dca9b=_0xfc88ed,_0x2c051c=this['_h'];if(!_0x2c051c)return;const _0x51ee62=_0x2c051c['percentile'](0x63)/0xf4240,_0x3c3fa1=_0x2c051c[_0x5dca9b(0x3c5)]/0xf4240,_0x210824=_0x2c051c[_0x5dca9b(0x618)]/0xf4240;_0x2c051c['reset']();if(this['_windowCbs'])for(const _0x3eb700 of this['_windowCbs']){try{_0x3eb700({'p99Ms':_0x51ee62,'maxMs':_0x3c3fa1,'meanMs':_0x210824,'reportMs':_0x32ad85});}catch{}}},_0x32ad85);if(this[_0xfc88ed(0x4d1)][_0xfc88ed(0x7ed)])this[_0xfc88ed(0x4d1)][_0xfc88ed(0x7ed)]();}[_0x1ba971(0x707)](){const _0x1db787=_0x1ba971,_0x579d38=this['_h'],_0x53cf0c=_0x579d38[_0x1db787(0x3c5)]/0xf4240,_0x4522a6=_0x579d38[_0x1db787(0x206)](0x63)/0xf4240,_0xbdbce5=_0x579d38[_0x1db787(0x618)]/0xf4240;_0x579d38['reset']();const _0x2fa861=[...this[_0x1db787(0x277)][_0x1db787(0x325)]()][_0x1db787(0x6f2)](([_0x4e48ad,_0x5c177c])=>({'label':_0x4e48ad,..._0x5c177c}))[_0x1db787(0x76f)]((_0x332e60,_0x39971f)=>_0x39971f['ms']-_0x332e60['ms'])['slice'](0x0,0x8);this[_0x1db787(0x277)]['clear']();const _0x479e55=_0x2fa861[_0x1db787(0x2f1)]((_0x1164ad,_0x665e31)=>_0x1164ad+_0x665e31['ms'],0x0),_0x1dfde3=_0x2fa861[_0x1db787(0x6f2)](_0x42a7b2=>_0x42a7b2[_0x1db787(0x473)]+'='+_0x42a7b2['ms']['toFixed'](0x0)+_0x1db787(0x442)+_0x42a7b2['count']+(_0x42a7b2[_0x1db787(0x357)]>0x5?_0x1db787(0x360)+_0x42a7b2[_0x1db787(0x357)][_0x1db787(0x69f)](0x0)+'ms'+(_0x42a7b2[_0x1db787(0x714)]?'\x20'+_0x42a7b2[_0x1db787(0x714)]:'')+')':''));(_0x4d3b0f||_0x53cf0c>=_0x392f66)&&this['_log'](_0x1db787(0x231)+_0x1b9268+_0x1db787(0x23a)+_0x53cf0c[_0x1db787(0x69f)](0x0)+_0x1db787(0x71a)+_0x4522a6[_0x1db787(0x69f)](0x0)+_0x1db787(0x1e7)+_0xbdbce5[_0x1db787(0x69f)](0x0)+'ms\x20busy='+_0x479e55['toFixed'](0x0)+'ms'+(_0x1dfde3[_0x1db787(0x479)]?'\x20│\x20'+_0x1dfde3['join']('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x1db787(0x440)])for(const _0xb6d281 of this['_windowCbs']){try{_0xb6d281({'p99Ms':_0x4522a6,'maxMs':_0x53cf0c,'meanMs':_0xbdbce5,'reportMs':_0x1b9268});}catch{}}}[_0x1ba971(0x851)](){const _0x231549=_0x1ba971;if(this['_timer'])clearInterval(this[_0x231549(0x79b)]);if(this['_h'])this['_h'][_0x231549(0x671)]();this[_0x231549(0x79b)]=null,this['_h']=null,this['_started']=![];}}const _0x581b6e=new _0x40f3b();if(_0x581b6e[_0x1ba971(0x25c)])_0x581b6e[_0x1ba971(0x525)]();return okdbLoopMonitor={'LOOP':_0x581b6e},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x3b6c74=_0x1ade1a;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x912529={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x1c60e9}=requireOkdbEnums(),{OKDBError:_0x5b733d}=requireOkdbError(),{recordGuardTrip:_0x455224,guardSnapshotIterable:_0x4d8d48}=requireOkdbGuardedRange(),{LOOP:_0x5894c5}=requireOkdbLoopMonitor();function _0x1ae1bc(_0x7b80db){const _0x447723=_0x3f13;return _0x7b80db[_0x447723(0x6f2)](_0x5877d7=>{const _0xa475e3=_0x447723,[_0x38c219,_0x5c557d]=_0x5877d7[_0xa475e3(0x643)]||[];return{'action':_0x5877d7['action'],'type':_0x38c219,'key':_0x5c557d};});}class _0x5071bb{['okdb'];[_0x3b6c74(0x77d)]=[];['_doHooks']=[];['_undoHooks']=[];constructor(_0x2454a8,_0x5b67a1={'useReadTransaction':![]}){const _0x281af8=_0x3b6c74;this['okdb']=_0x2454a8,this[_0x281af8(0x5c3)]=_0x5b67a1,this['id']=_0x912529['v4']();if(this[_0x281af8(0x5c3)][_0x281af8(0x6cb)])try{this[_0x281af8(0x2a1)]=this[_0x281af8(0x555)]['db'][_0x281af8(0x6e6)]()['lastTxnId'];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x281af8(0x3a0)]=this[_0x281af8(0x5c3)][_0x281af8(0x6cb)]?this[_0x281af8(0x555)]['db']['useReadTransaction']():null,this[_0x281af8(0x3a3)]=![],this[_0x281af8(0x6f6)]=![],this[_0x281af8(0x3a0)]&&queueMicrotask(()=>{const _0xde456=_0x281af8;this[_0xde456(0x3a0)]&&(this['_closeReadTransaction'](),this['_readViewExpired']=!![]);});}['onDo'](_0x588102){const _0x39ed3e=_0x3b6c74;this[_0x39ed3e(0x5cd)][_0x39ed3e(0x2e6)](_0x588102);}[_0x3b6c74(0x721)](_0x3dcc19){const _0x111e6e=_0x3b6c74;this[_0x111e6e(0x764)][_0x111e6e(0x2e6)](_0x3dcc19);}[_0x3b6c74(0x867)](){const _0x12bb04=_0x3b6c74;if(!this['readTransaction'])return;try{this[_0x12bb04(0x3a0)][_0x12bb04(0x45e)]();}catch(_0x20376b){}this[_0x12bb04(0x3a0)]=null;}['_assertOpen'](){const _0x28981c=_0x3b6c74;if(this[_0x28981c(0x3a3)])throw new _0x5b733d('Transaction\x20already\x20closed',_0x28981c(0x1d8));if(this[_0x28981c(0x6f6)]){let _0x3e2e85=![];if(this['options'][_0x28981c(0x6cb)]==='tolerant'&&this[_0x28981c(0x2a1)]!==undefined)try{_0x3e2e85=this['okdb']['db'][_0x28981c(0x6e6)]()[_0x28981c(0x53d)]===this[_0x28981c(0x2a1)];}catch{}if(!_0x3e2e85){_0x455224((this[_0x28981c(0x555)]?.[_0x28981c(0x885)]??'?')+_0x28981c(0x1f7));throw new _0x5b733d(_0x28981c(0x533)+_0x28981c(0x3ac)+_0x28981c(0x24a)+_0x28981c(0x87d),_0x28981c(0x459));}}}[_0x3b6c74(0x616)](_0xf7c8a3,_0x33954a){const _0x437f2e=_0x3b6c74;return this[_0x437f2e(0x4b5)](),this['okdb'][_0x437f2e(0x616)](_0xf7c8a3,_0x33954a,{'transaction':this[_0x437f2e(0x3a0)]});}[_0x3b6c74(0x242)](_0x974121,_0x5c9090){const _0x4dc2ab=_0x3b6c74;return this[_0x4dc2ab(0x4b5)](),this['okdb'][_0x4dc2ab(0x242)](_0x974121,_0x5c9090,{'transaction':this[_0x4dc2ab(0x3a0)]});}['getMany'](_0x391705,_0x41a2de){const _0x25bd29=_0x3b6c74;return this[_0x25bd29(0x4b5)](),this[_0x25bd29(0x555)][_0x25bd29(0x84f)](_0x391705,_0x41a2de,{'transaction':this[_0x25bd29(0x3a0)]});}[_0x3b6c74(0x6b3)](_0x20c9eb){const _0x294137=_0x3b6c74;if(!this['options'][_0x294137(0x6cb)])return _0x20c9eb;if(_0x20c9eb&&typeof _0x20c9eb[_0x294137(0x1df)]==='function')return _0x20c9eb;if(Array[_0x294137(0x4b6)](_0x20c9eb))return _0x20c9eb;const _0x176224=this,_0x25bc72=_0x176224['options'][_0x294137(0x6cb)]===_0x294137(0x50a),_0xb562b5=()=>{const _0xae5cf8=_0x294137;if(!_0x176224[_0xae5cf8(0x6f6)])return![];if(!_0x25bc72)return!![];if(_0x176224['_txnIdAtSnapshot']===undefined)return!![];try{return _0x176224[_0xae5cf8(0x555)]['db'][_0xae5cf8(0x6e6)]()[_0xae5cf8(0x53d)]!==_0x176224['_txnIdAtSnapshot'];}catch{return!![];}};return _0x4d8d48(()=>{const _0x1268ad=_0x294137;if(_0x176224[_0x1268ad(0x3a3)])throw new _0x5b733d(_0x1268ad(0x596),_0x1268ad(0x1d8));if(_0xb562b5()){_0x455224((_0x176224['okdb']?.[_0x1268ad(0x885)]??'?')+_0x1268ad(0x186));throw new _0x5b733d(_0x1268ad(0x836)+_0x1268ad(0x3de)+_0x1268ad(0x803),_0x1268ad(0x459));}return _0x20c9eb;},{'label':(_0x176224['okdb']?.['name']??'?')+_0x294137(0x186),..._0x25bc72?{'baseline':_0x176224['_txnIdAtSnapshot'],'getTxnId':()=>_0x176224[_0x294137(0x555)]['db'][_0x294137(0x6e6)]()[_0x294137(0x53d)],'resume':(_0x5e1a4e,_0x41f1dd)=>_0x20c9eb['slice'](_0x41f1dd)}:{}});}[_0x3b6c74(0x805)](_0x1590bf,_0x309269={}){const _0x49cc9f=_0x3b6c74;return this[_0x49cc9f(0x4b5)](),this['_range'](this[_0x49cc9f(0x555)][_0x49cc9f(0x805)](_0x1590bf,{'transaction':this['readTransaction'],..._0x309269}));}[_0x3b6c74(0x521)](_0x289b13,_0x41f21c={}){const _0x29bbe6=_0x3b6c74;return this[_0x29bbe6(0x4b5)](),this[_0x29bbe6(0x6b3)](this['okdb'][_0x29bbe6(0x521)](_0x289b13,{'transaction':this[_0x29bbe6(0x3a0)],..._0x41f21c}));}[_0x3b6c74(0x42e)](_0x1fb7e6,_0x8b3dfd={}){const _0x40cb00=_0x3b6c74;return this[_0x40cb00(0x4b5)](),this[_0x40cb00(0x6b3)](this['okdb'][_0x40cb00(0x42e)](_0x1fb7e6,{'transaction':this[_0x40cb00(0x3a0)],..._0x8b3dfd}));}[_0x3b6c74(0x1f0)](_0x232d3d,_0x2733d5,_0x332547={}){const _0x1722f3=_0x3b6c74;return this[_0x1722f3(0x4b5)](),this[_0x1722f3(0x6b3)](this['okdb'][_0x1722f3(0x1f0)](_0x232d3d,_0x2733d5,{'transaction':this['readTransaction'],..._0x332547}));}[_0x3b6c74(0x3a1)](_0x3375b9,_0x309382,_0x337414={}){const _0x17eeff=_0x3b6c74;return this['_assertOpen'](),this[_0x17eeff(0x6b3)](this[_0x17eeff(0x555)][_0x17eeff(0x3a1)](_0x3375b9,_0x309382,{'transaction':this[_0x17eeff(0x3a0)],..._0x337414}));}[_0x3b6c74(0x353)](_0x17b628=null){const _0x1993f2=_0x3b6c74;return this[_0x1993f2(0x4b5)](),this[_0x1993f2(0x555)][_0x1993f2(0x353)](_0x17b628,{'transaction':this['readTransaction']});}[_0x3b6c74(0x3b4)](_0x146669){const _0x35ee2b=_0x3b6c74;return this[_0x35ee2b(0x4b5)](),this['okdb'][_0x35ee2b(0x3b4)](_0x146669,{'transaction':this[_0x35ee2b(0x3a0)]});}[_0x3b6c74(0x7bc)](_0x4586f1,_0x30660e,_0x1ae92c,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3b6c74(0x38b)](),origin:origin=null,ttl:ttl=null}={}){const _0x445ec3=_0x3b6c74;this[_0x445ec3(0x77d)][_0x445ec3(0x2e6)]({'action':_0x445ec3(0x7bc),'args':[_0x4586f1,_0x30660e,_0x1ae92c,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x601)](_0x193511,_0x4f70ae,_0x8aed1b,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3b6c74(0x38b)](),origin:origin=null,ttl:ttl=null}={}){const _0x433769=_0x3b6c74;this[_0x433769(0x77d)]['push']({'action':_0x433769(0x601),'args':[_0x193511,_0x4f70ae,_0x8aed1b,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x369)](_0x49b056,_0x44cea6,_0x5e7a91,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x42785d=_0x3b6c74;this['actions'][_0x42785d(0x2e6)]({'action':_0x42785d(0x369),'args':[_0x49b056,_0x44cea6,_0x5e7a91,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x267)](_0x1cad04,_0x29252d,_0x3613e0,{version:version=null,timestamp:timestamp=Date[_0x3b6c74(0x38b)](),origin:origin=null,ttl:ttl=null}={}){const _0x1fd87b=_0x3b6c74;this[_0x1fd87b(0x77d)]['push']({'action':_0x1fd87b(0x267),'args':[_0x1cad04,_0x29252d,_0x3613e0,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x6a9)](_0x211054,_0x1e6c59,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x409c7b=_0x3b6c74;this[_0x409c7b(0x77d)]['push']({'action':_0x409c7b(0x6a9),'args':[_0x211054,_0x1e6c59,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}['setTTL'](_0x5e7dd6,_0x380de2,_0x2044cc){const _0x49383e=_0x3b6c74;this[_0x49383e(0x77d)][_0x49383e(0x2e6)]({'action':'setTTL','args':[_0x5e7dd6,_0x380de2,_0x2044cc]});}[_0x3b6c74(0x347)](_0x5d786d,_0x378f03){const _0x17c245=_0x3b6c74;this[_0x17c245(0x77d)][_0x17c245(0x2e6)]({'action':'clearTTL','args':[_0x5d786d,_0x378f03]});}[_0x3b6c74(0x784)](){const _0x17bc24=_0x3b6c74;if(this[_0x17bc24(0x3a3)])return;for(const _0x50c019 of this['_undoHooks']){try{_0x50c019();}catch{}}this[_0x17bc24(0x555)][_0x17bc24(0x425)][_0x17bc24(0x7bb)](_0x1c60e9['TXN_ROLLBACK'],{'id':this['id']}),this[_0x17bc24(0x77d)]=[],this['_closeReadTransaction'](),this[_0x17bc24(0x3a3)]=!![];}async['commit'](){const _0x259926=_0x3b6c74;if(this['_closed'])throw new Error(_0x259926(0x596));const _0x523c9f={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x259926(0x77d)]};this[_0x259926(0x555)]['events'][_0x259926(0x7bb)](_0x1c60e9['TXN_START'],_0x523c9f);try{const _0x2d9882=_0x5894c5[_0x259926(0x25c)]?_0x5894c5[_0x259926(0x38b)]():0x0;await this[_0x259926(0x555)][_0x259926(0x57b)][_0x259926(0x84d)](()=>{const _0x2615ba=_0x259926;for(const _0x400157 of this[_0x2615ba(0x77d)]){const _0x4b9dd9=this['okdb']['_'+_0x400157['action']];if(typeof _0x4b9dd9!=='function')throw new Error(_0x2615ba(0x581)+_0x400157[_0x2615ba(0x3a6)]);_0x4b9dd9[_0x2615ba(0x881)](this[_0x2615ba(0x555)],this,..._0x400157[_0x2615ba(0x643)]);}}),_0x5894c5['enabled']&&_0x5894c5['note'](_0x259926(0x2f0),_0x5894c5[_0x259926(0x38b)]()-_0x2d9882,(this[_0x259926(0x555)]['name']??'?')+'\x20actions='+this['actions'][_0x259926(0x479)]);}catch(_0x1be15d){for(const _0x43254d of this[_0x259926(0x764)]){try{_0x43254d();}catch{}}this[_0x259926(0x867)](),this[_0x259926(0x3a3)]=!![];if(_0x1be15d instanceof _0x5b733d)throw _0x1be15d;const _0x20c51e={'cause':_0x1be15d,'env':this[_0x259926(0x555)]?.['name'],'envPath':this['okdb']?.['path'],'pid':process[_0x259926(0x778)],'txnId':this['id'],'actionCount':this['actions']['length'],'actions':_0x1ae1bc(this[_0x259926(0x77d)]),'nativeCode':_0x1be15d?.[_0x259926(0x431)],'nativeName':_0x1be15d?.[_0x259926(0x885)]};try{this[_0x259926(0x555)]?.[_0x259926(0x629)]?.[_0x259926(0x814)]?.(_0x259926(0x852),{'env':_0x20c51e['env'],'envPath':_0x20c51e[_0x259926(0x77b)],'pid':_0x20c51e[_0x259926(0x778)],'txnId':_0x20c51e[_0x259926(0x599)],'actionCount':_0x20c51e['actionCount'],'actions':_0x20c51e[_0x259926(0x77d)],'nativeCode':_0x20c51e[_0x259926(0x246)],'error':_0x1be15d?.[_0x259926(0x806)],'stack':_0x1be15d?.['stack']});}catch{}throw new _0x5b733d(_0x1be15d?.['message']||'Unknown\x20OKDB\x20transaction\x20error',_0x259926(0x639),_0x20c51e);}this[_0x259926(0x555)][_0x259926(0x425)][_0x259926(0x7bb)](_0x1c60e9[_0x259926(0x26e)],_0x523c9f);for(const _0x496584 of this['_doHooks']){try{await _0x496584();}catch{}}this[_0x259926(0x77d)]=[],this['_closeReadTransaction'](),this['_closed']=!![];}static['createWriteFacade'](_0x81b454){const _0xa5e7bd=_0x3b6c74;return Object[_0xa5e7bd(0x493)]({'id':_0x81b454['id'],'put':_0x81b454[_0xa5e7bd(0x7bc)][_0xa5e7bd(0x2f4)](_0x81b454),'update':_0x81b454[_0xa5e7bd(0x601)][_0xa5e7bd(0x2f4)](_0x81b454),'patch':_0x81b454['patch'][_0xa5e7bd(0x2f4)](_0x81b454),'create':_0x81b454[_0xa5e7bd(0x267)][_0xa5e7bd(0x2f4)](_0x81b454),'remove':_0x81b454[_0xa5e7bd(0x6a9)][_0xa5e7bd(0x2f4)](_0x81b454),'setTTL':_0x81b454[_0xa5e7bd(0x24c)][_0xa5e7bd(0x2f4)](_0x81b454),'clearTTL':_0x81b454[_0xa5e7bd(0x347)]['bind'](_0x81b454),'commit':_0x81b454[_0xa5e7bd(0x346)][_0xa5e7bd(0x2f4)](_0x81b454),'rollback':_0x81b454[_0xa5e7bd(0x784)]['bind'](_0x81b454),'get':_0x81b454['get'][_0xa5e7bd(0x2f4)](_0x81b454),'getEntry':_0x81b454['getEntry']['bind'](_0x81b454),'getMany':_0x81b454[_0xa5e7bd(0x84f)][_0xa5e7bd(0x2f4)](_0x81b454),'getRange':_0x81b454[_0xa5e7bd(0x805)][_0xa5e7bd(0x2f4)](_0x81b454),'getValues':_0x81b454[_0xa5e7bd(0x521)][_0xa5e7bd(0x2f4)](_0x81b454),'getKeys':_0x81b454['getKeys'][_0xa5e7bd(0x2f4)](_0x81b454),'byIndex':_0x81b454[_0xa5e7bd(0x1f0)][_0xa5e7bd(0x2f4)](_0x81b454),'query':_0x81b454[_0xa5e7bd(0x3a1)][_0xa5e7bd(0x2f4)](_0x81b454),'getClock':_0x81b454[_0xa5e7bd(0x353)][_0xa5e7bd(0x2f4)](_0x81b454),'getCount':_0x81b454[_0xa5e7bd(0x3b4)][_0xa5e7bd(0x2f4)](_0x81b454),'read':_0x81b454,'raw':_0x81b454});}static[_0x3b6c74(0x375)](_0x5c48c4,_0x2243b3=[]){const _0x49786b=_0x3b6c74;if(!Array[_0x49786b(0x4b6)](_0x2243b3))throw new _0x5b733d('txn\x20ops\x20must\x20be\x20an\x20array',_0x49786b(0x50c));for(const _0xd5ecfd of _0x2243b3){if(Array[_0x49786b(0x4b6)](_0xd5ecfd)){const [_0x32a3b1,..._0x407bce]=_0xd5ecfd;if(typeof _0x5c48c4[_0x32a3b1]!==_0x49786b(0x40e))throw new _0x5b733d(_0x49786b(0x581)+_0x32a3b1,_0x49786b(0x733),{'action':_0x32a3b1});_0x5c48c4[_0x32a3b1](..._0x407bce);continue;}if(!_0xd5ecfd||typeof _0xd5ecfd!==_0x49786b(0x6f7))throw new _0x5b733d('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x49786b(0x831));const {action:_0x465020}=_0xd5ecfd;if(typeof _0x465020!==_0x49786b(0x4c1)||typeof _0x5c48c4[_0x465020]!==_0x49786b(0x40e))throw new _0x5b733d('Unknown\x20transaction\x20action:\x20'+_0x465020,_0x49786b(0x733),{'action':_0x465020});switch(_0x465020){case _0x49786b(0x7bc):case'update':case _0x49786b(0x267):_0x5c48c4[_0x465020](_0xd5ecfd['type'],_0xd5ecfd['key'],_0xd5ecfd['value'],{..._0xd5ecfd[_0x49786b(0x5c3)],'ttl':_0xd5ecfd[_0x49786b(0x192)]??_0xd5ecfd[_0x49786b(0x5c3)]?.[_0x49786b(0x192)]??null});break;case _0x49786b(0x369):_0x5c48c4['patch'](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd[_0x49786b(0x491)],_0xd5ecfd['patch'],{..._0xd5ecfd[_0x49786b(0x5c3)],'ttl':_0xd5ecfd['ttl']??_0xd5ecfd[_0x49786b(0x5c3)]?.[_0x49786b(0x192)]??null});break;case _0x49786b(0x6a9):_0x5c48c4[_0x49786b(0x6a9)](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd[_0x49786b(0x491)],_0xd5ecfd[_0x49786b(0x5c3)]||{});break;case'setTTL':_0x5c48c4[_0x49786b(0x24c)](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd['key'],_0xd5ecfd['ttl']);break;case'clearTTL':_0x5c48c4[_0x49786b(0x347)](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd[_0x49786b(0x491)]);break;default:throw new _0x5b733d(_0x49786b(0x769)+_0x465020,'TXN_INVALID_ACTION',{'action':_0x465020});}}}static async[_0x3b6c74(0x7be)](_0x55040e,_0x26fcc6,_0x41af97={}){const _0x21ba94=_0x3b6c74,_0xc0737a=new _0x5071bb(_0x55040e,_0x41af97),_0x14a1c8=_0x5071bb['createWriteFacade'](_0xc0737a);try{typeof _0x26fcc6===_0x21ba94(0x40e)?await _0x26fcc6(_0x14a1c8):_0x5071bb['applyOps'](_0xc0737a,_0x26fcc6||[]);const _0x2e7642=_0xc0737a['actions'][_0x21ba94(0x479)];return await _0xc0737a[_0x21ba94(0x346)](),{'id':_0xc0737a['id'],'actions':_0x2e7642};}catch(_0x257c64){try{_0xc0737a[_0x21ba94(0x784)]();}catch(_0x2865ea){}throw _0x257c64;}}}return okdbTransaction=_0x5071bb,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x1b0508=_0x1ade1a;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x1b0508(0x882)](dist,'__esModule',{'value':!![]});const _0x38198f=new Float64Array(0x2),_0x539866=new Int32Array(_0x38198f[_0x1b0508(0x55c)],0x0,0x4),{lowIdx:_0x298ae8,highIdx:_0x2b4e0c}=((()=>{const _0x27e187=_0x1b0508;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x27e187(0x55c)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x2a7d24=![],_0x54a1cb;try{_0x54a1cb=new TextEncoder();}catch(_0x5f5689){}function _0x39fff2(_0x47df6e,_0x1a1c5e,position,_0x561a52){const _0x2fac46=_0x1b0508;let _0x5b2a7d=_0x1a1c5e[_0x2fac46(0x4b0)];if(!_0x5b2a7d)_0x5b2a7d=_0x1a1c5e['dataView']=new DataView(_0x1a1c5e[_0x2fac46(0x55c)],_0x1a1c5e[_0x2fac46(0x4d9)],_0x1a1c5e[_0x2fac46(0x1ac)]+0x3>>0x2<<0x2);switch(typeof _0x47df6e){case _0x2fac46(0x4c1):let _0x4e7c83=_0x47df6e[_0x2fac46(0x479)],_0x225201=_0x47df6e[_0x2fac46(0x57c)](0x0);if(!(_0x225201>=0x1c))_0x1a1c5e[position++]=0x1b;if(_0x4e7c83<0x40){let _0x1fd226,_0x490735;for(_0x1fd226=0x0;_0x1fd226<_0x4e7c83;_0x1fd226++){_0x225201=_0x47df6e[_0x2fac46(0x57c)](_0x1fd226);if(_0x225201<=0x4)_0x1a1c5e[position++]=0x4,_0x1a1c5e[position++]=_0x225201;else{if(_0x225201<0x80)_0x1a1c5e[position++]=_0x225201;else{if(_0x225201<0x800)_0x1a1c5e[position++]=_0x225201>>0x6|0xc0,_0x1a1c5e[position++]=_0x225201&0x3f|0x80;else(_0x225201&0xfc00)===0xd800&&((_0x490735=_0x47df6e[_0x2fac46(0x57c)](_0x1fd226+0x1))&0xfc00)===0xdc00?(_0x225201=0x10000+((_0x225201&0x3ff)<<0xa)+(_0x490735&0x3ff),_0x1fd226++,_0x1a1c5e[position++]=_0x225201>>0x12|0xf0,_0x1a1c5e[position++]=_0x225201>>0xc&0x3f|0x80,_0x1a1c5e[position++]=_0x225201>>0x6&0x3f|0x80,_0x1a1c5e[position++]=_0x225201&0x3f|0x80):(_0x1a1c5e[position++]=_0x225201>>0xc|0xe0,_0x1a1c5e[position++]=_0x225201>>0x6&0x3f|0x80,_0x1a1c5e[position++]=_0x225201&0x3f|0x80);}}}}else{if(_0x1a1c5e[_0x2fac46(0x66b)])position+=_0x1a1c5e[_0x2fac46(0x66b)](_0x47df6e,position,_0x1a1c5e['byteLength']-position);else position+=_0x54a1cb[_0x2fac46(0x2cf)](_0x47df6e,_0x1a1c5e[_0x2fac46(0x57a)](position))['written'];if(position>_0x1a1c5e[_0x2fac46(0x479)]-0x4)throw new RangeError('String\x20does\x20not\x20fit\x20in\x20target\x20buffer');}break;case'number':_0x38198f[0x0]=_0x47df6e;let _0x22be03=_0x539866[_0x298ae8],_0x15e585=_0x539866[_0x2b4e0c],_0x171cb8;if(_0x47df6e<0x0)return _0x5b2a7d['setInt32'](position+0x4,~(_0x22be03>>>0x4|_0x15e585<<0x1c)),_0x5b2a7d['setInt32'](position+0x0,(_0x15e585^0x7fffffff)>>>0x4),_0x5b2a7d[_0x2fac46(0x4bf)](position+0x8,(_0x22be03&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x22be03&0xf||_0x561a52)_0x171cb8=0x9;else{if(_0x22be03&0xfffff)_0x171cb8=0x8;else{if(_0x22be03||_0x15e585&0xf)_0x171cb8=0x6;else _0x171cb8=0x4;}}}_0x5b2a7d[_0x2fac46(0x4bf)](position+0x0,_0x15e585>>>0x4|0x10000000),_0x5b2a7d[_0x2fac46(0x4bf)](position+0x4,_0x22be03>>>0x4|_0x15e585<<0x1c),_0x5b2a7d[_0x2fac46(0x4bf)](position+0x8,(_0x22be03&0xf)<<0x4,!![]);return position+_0x171cb8;case'object':if(_0x47df6e){if(Array[_0x2fac46(0x4b6)](_0x47df6e)){for(let _0x1d7479=0x0,_0x21b0d8=_0x47df6e[_0x2fac46(0x479)];_0x1d7479<_0x21b0d8;_0x1d7479++){if(_0x1d7479>0x0)_0x1a1c5e[position++]=0x0;position=_0x39fff2(_0x47df6e[_0x1d7479],_0x1a1c5e,position,!![]);}break;}else{if(_0x47df6e instanceof Uint8Array){_0x1a1c5e[_0x2fac46(0x488)](_0x47df6e,position),position+=_0x47df6e['length'];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON['stringify'](_0x47df6e));}}else _0x1a1c5e[position++]=0x0;break;case _0x2fac46(0x3be):_0x5b2a7d[_0x2fac46(0x22a)](position++,_0x47df6e?0x7:0x6,!![]);return position;case _0x2fac46(0x4b9):let _0x4d586a=Number(_0x47df6e);if(BigInt(_0x4d586a)>_0x47df6e){_0x38198f[0x0]=_0x4d586a;if(_0x4d586a>0x0){if(_0x539866[_0x298ae8])_0x539866[_0x298ae8]--;else _0x539866[_0x2b4e0c]--,_0x539866[_0x298ae8]=0xffffffff;}else{if(_0x539866[_0x298ae8]<0xffffffff)_0x539866[_0x298ae8]++;else _0x539866[_0x2b4e0c]++,_0x539866[_0x298ae8]=0x0;}_0x4d586a=_0x38198f[0x0];}let _0x31462e=_0x47df6e-BigInt(_0x4d586a);if(_0x31462e===0x0n)return _0x39fff2(_0x4d586a,_0x1a1c5e,position,_0x561a52);_0x39fff2(_0x4d586a,_0x1a1c5e,position,_0x561a52),position+=0x9;let _0x23001d=BigInt((_0x539866[_0x2b4e0c]>>0x14&0x7ff)-0x437),_0x265b32=_0x31462e>>_0x23001d;_0x1a1c5e[position-0x1]|=Number(_0x265b32),_0x31462e-=_0x265b32<<_0x23001d;let _0x569fac=!![];while(_0x31462e||_0x569fac){_0x569fac=![],_0x23001d-=0x7n;let _0x265ed8=_0x31462e>>_0x23001d;_0x1a1c5e[position++]=Number(_0x265ed8)|0x80,_0x31462e-=_0x265ed8<<_0x23001d;}return position;case _0x2fac46(0x296):return position;case _0x2fac46(0x640):_0x1a1c5e[position++]=0x2;return _0x39fff2(_0x47df6e[_0x2fac46(0x455)],_0x1a1c5e,position,_0x561a52);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0x47df6e);}if(_0x2a7d24&&!_0x561a52)_0x5b2a7d['setUint32'](position,0x0);return position;}let position;function _0x16512c(_0x3699d9,_0x3091e5,_0x55e3dc,_0xf468bc){const _0x54c11a=_0x1b0508;position=_0x3091e5;let _0x4d710b=_0x3699d9[position],_0x1db1f3;if(_0x4d710b<0x18){if(_0x4d710b<0x8){position++;if(_0x4d710b==0x6)_0x1db1f3=![];else{if(_0x4d710b==0x7)_0x1db1f3=!![];else{if(_0x4d710b==0x0)_0x1db1f3=null;else{if(_0x4d710b==0x2)_0x1db1f3=Symbol[_0x54c11a(0x28e)](_0x20fff0(_0x3699d9,_0x55e3dc));else return Uint8Array[_0x54c11a(0x259)][_0x54c11a(0x4e8)][_0x54c11a(0x881)](_0x3699d9,_0x3091e5,_0x55e3dc);}}}}else{let _0x45c09e;try{_0x45c09e=_0x3699d9[_0x54c11a(0x4b0)]||(_0x3699d9[_0x54c11a(0x4b0)]=new DataView(_0x3699d9['buffer'],_0x3699d9[_0x54c11a(0x4d9)],_0x3699d9[_0x54c11a(0x1ac)]+0x3>>0x2<<0x2));}catch(_0xf45ffe){_0x45c09e=_0x3699d9['dataView']||(_0x3699d9[_0x54c11a(0x4b0)]=new DataView(_0x3699d9[_0x54c11a(0x55c)],_0x3699d9[_0x54c11a(0x4d9)],_0x3699d9[_0x54c11a(0x55c)]['byteLength']-_0x3699d9[_0x54c11a(0x4d9)]));}let _0x5041df=_0x45c09e[_0x54c11a(0x53a)](position)<<0x4,_0x5430f6=_0x55e3dc-position,_0x152f6c;if(_0x5430f6>0x4)_0x152f6c=position+0x8<=_0x3699d9['length']?_0x45c09e[_0x54c11a(0x53a)](position+0x4):_0x3699d9[position+0x4]<<0x18|_0x3699d9[position+0x5]<<0x10|_0x3699d9[position+0x6]<<0x8|_0x3699d9[position+0x7],_0x5041df|=_0x152f6c>>>0x1c,_0x5430f6<=0x6&&(_0x152f6c&=-0x10000),_0x152f6c=_0x152f6c<<0x4,_0x5430f6>0x8&&(_0x152f6c=_0x152f6c|_0x3699d9[position+0x8]>>0x4);else _0x152f6c=0x0;_0x4d710b<0x10&&(_0x5041df=_0x5041df^0x7fffffff,_0x152f6c=~_0x152f6c);_0x539866[_0x2b4e0c]=_0x5041df,_0x539866[_0x298ae8]=_0x152f6c,_0x1db1f3=_0x38198f[0x0],position+=0x9;if(_0x5430f6>0x9&&_0x3699d9[position]>0x0){_0x1db1f3=BigInt(_0x1db1f3);let _0x1c620c=_0x5041df>>0x14&0x7ff,_0x2e7c30=_0x3699d9[position-0x1]&0xf;_0x1db1f3+=BigInt(_0x2e7c30)<<BigInt(_0x1c620c-0x437);while((_0x2e7c30=_0x3699d9[position])>0x0&&position++<_0x55e3dc){_0x1db1f3+=BigInt(_0x2e7c30&0x7f)<<BigInt((_0x3091e5-position)*0x7+_0x1c620c-0x3f8);}}}}else{_0x4d710b==0x1b&&position++;_0x1db1f3=_0x20fff0(_0x3699d9,_0x55e3dc);if(position<_0x55e3dc)position--;}while(position<_0x55e3dc){if(_0x3699d9[position]===0x0)position++;if(_0xf468bc)return _0x3ad2e6[_0x54c11a(0x833)]=position,_0x1db1f3;let _0x4f4a69=_0x16512c(_0x3699d9,position,_0x55e3dc,!![]);if(_0x1db1f3 instanceof Array)_0x1db1f3[_0x54c11a(0x2e6)](_0x4f4a69);else _0x1db1f3=[_0x1db1f3,_0x4f4a69];}return _0x1db1f3;}const _0x36d975=()=>_0x2a7d24=!![],_0x3ad2e6={'writeKey':_0x39fff2,'readKey':_0x16512c,'enableNullTermination':_0x36d975};let _0x1cac41=[],_0x458855=0x0;const _0x5b681e=typeof Buffer!==_0x1b0508(0x296),_0x6daad0=_0x5b681e?Buffer[_0x1b0508(0x7cb)]:Uint8Array,_0x24c3ed=_0xbbdbdc=>{const _0x4d35ae=_0x1b0508;let _0x1dbc85;_0x458855+0x64>_0x1cac41[_0x4d35ae(0x479)]&&(_0x1cac41=new _0x6daad0(0x2000),_0x458855=0x0,_0x1dbc85=!![]);try{let _0x3af7c6=_0x1cac41[_0x4d35ae(0x4e8)](_0x458855,_0x458855=_0x39fff2(_0xbbdbdc,_0x1cac41,_0x458855));if(_0x458855>_0x1cac41['length']){if(_0x1dbc85)throw new Error(_0x4d35ae(0x2f7));return _0x24c3ed(_0xbbdbdc);}return _0x3af7c6;}catch(_0x16f20b){if(_0x1dbc85)throw _0x16f20b;return _0x458855=_0x1cac41['length'],_0x24c3ed(_0xbbdbdc);}},_0x381831=_0x87eefc=>{return _0x16512c(_0x87eefc,0x0,_0x87eefc['length']);},fromCharCode=String[_0x1b0508(0x484)];function _0x283093(){const _0x6ac6e7=_0x1b0508;let _0x138b51=_0x6ac6e7(0x41a),_0x212f70=[];for(let _0x35188b=0x0;_0x35188b<0x30;_0x35188b++){let _0x477edd=fromCharCode((_0x35188b&0xf)+0x61)+fromCharCode((_0x35188b>>0x4)+0x61);_0x138b51+=_0x6ac6e7(0x466)+_0x477edd+_0x6ac6e7(0x586)+_0x477edd+_0x6ac6e7(0x64e)+_0x477edd+_0x6ac6e7(0x610)+_0x477edd+_0x6ac6e7(0x32b)+_0x477edd+',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20('+_0x477edd+_0x6ac6e7(0x696)+_0x477edd+_0x6ac6e7(0x886)+_0x212f70+_0x6ac6e7(0x845),_0x212f70[_0x6ac6e7(0x2e6)](_0x477edd);}return _0x138b51+=_0x6ac6e7(0x293)+_0x212f70+')\x20+\x20readString(source)}',_0x138b51;}const readString=typeof process!==_0x1b0508(0x296)&&process[_0x1b0508(0x710)]?function(_0x55c94b){let {setPosition:_0x164e0a,getPosition:_0x320552,readString:readString}=_0x55c94b;return _0x5d8b4f=>{_0x164e0a(position);let _0x5ed0bf=readString(_0x5d8b4f);return position=_0x320552(),_0x5ed0bf;};}(new Function(_0x1b0508(0x484),_0x1b0508(0x499)+_0x283093()+';return\x20{'+'setPosition(p)\x20{\x20position\x20=\x20p\x20},'+_0x1b0508(0x1a5)+_0x1b0508(0x4d2))(fromCharCode)):eval(_0x283093());function _0x20fff0(_0x5ad3eb,_0x5a33fc){if(_0x5ad3eb[_0x5a33fc]>0x0){let _0x187b63=_0x5ad3eb[_0x5a33fc];try{return _0x5ad3eb[_0x5a33fc]=0x0,readString(_0x5ad3eb);}finally{_0x5ad3eb[_0x5a33fc]=_0x187b63;}}else return readString(_0x5ad3eb);}function _0xb9c176(_0xf3f7bf,_0x35d129){const _0x3d1255=_0x1b0508;if(typeof _0xf3f7bf==_0x3d1255(0x6f7)){if(!_0xf3f7bf)return _0x35d129==null?0x0:-0x1;if(_0xf3f7bf['compare']){if(_0x35d129==null)return 0x1;else return _0x35d129[_0x3d1255(0x59b)]?_0xf3f7bf[_0x3d1255(0x59b)](_0x35d129):-0x1;}let _0x59ebb5;if(_0x35d129 instanceof Array){let _0x402040=0x0;while((_0x59ebb5=_0xb9c176(_0xf3f7bf[_0x402040],_0x35d129[_0x402040]))==0x0&&_0x402040<=_0xf3f7bf['length']){_0x402040++;}return _0x59ebb5;}_0x59ebb5=_0xb9c176(_0xf3f7bf[0x0],_0x35d129);if(_0x59ebb5==0x0&&_0xf3f7bf[_0x3d1255(0x479)]>0x1)return 0x1;return _0x59ebb5;}else{if(typeof _0xf3f7bf==typeof _0x35d129)return typeof _0xf3f7bf===_0x3d1255(0x640)&&(_0xf3f7bf=Symbol[_0x3d1255(0x1ef)](_0xf3f7bf),_0x35d129=Symbol[_0x3d1255(0x1ef)](_0x35d129)),_0xf3f7bf<_0x35d129?-0x1:_0xf3f7bf===_0x35d129?0x0:0x1;else{if(typeof _0x35d129==_0x3d1255(0x6f7)){if(_0x35d129 instanceof Array)return-_0xb9c176(_0x35d129,_0xf3f7bf);return 0x1;}else return _0x945cec[typeof _0xf3f7bf]<_0x945cec[typeof _0x35d129]?-0x1:0x1;}}}const _0x945cec={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x4f5baf=null,_0x4f7f9f=new Uint8Array([0xff]);return dist['MAXIMUM_KEY']=_0x4f7f9f,dist[_0x1b0508(0x49d)]=_0x4f5baf,dist[_0x1b0508(0x1d6)]=_0xb9c176,dist['enableNullTermination']=_0x36d975,dist[_0x1b0508(0x289)]=_0x3ad2e6,dist['fromBufferKey']=_0x381831,dist[_0x1b0508(0x822)]=_0x16512c,dist['toBufferKey']=_0x24c3ed,dist[_0x1b0508(0x634)]=_0x39fff2,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x248fe4=_0x1ade1a;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x5120c4}=requireDist(),_0x1f23e1=0x7ba,_0x2015c2=0x1000;function _0x581a40(_0x4fd5f2,_0xa1b5ff){const _0x1f825c=_0x3f13;switch(typeof _0x4fd5f2){case _0x1f825c(0x4c1):return _0x4fd5f2['length']<=_0x1f23e1&&_0x4fd5f2[_0x1f825c(0x30e)]();case _0x1f825c(0x729):case _0x1f825c(0x3be):return!![];case _0x1f825c(0x6f7):if(_0x4fd5f2===null)return!![];if(Array['isArray'](_0x4fd5f2)){if(_0xa1b5ff>0x8||_0x4fd5f2[_0x1f825c(0x479)]>_0x1f23e1)return![];for(let _0x2c5f77=0x0;_0x2c5f77<_0x4fd5f2[_0x1f825c(0x479)];_0x2c5f77++)if(!_0x581a40(_0x4fd5f2[_0x2c5f77],_0xa1b5ff+0x1))return![];return!![];}return Buffer['isBuffer'](_0x4fd5f2)&&_0x4fd5f2[_0x1f825c(0x479)]<=_0x1f23e1;default:return![];}}function _0x7f364d(_0x4932a0,_0x5cb6bc){const _0x4c43bb=_0x3f13,_0x5a4587=typeof _0x4932a0;if(_0x5a4587===_0x4c43bb(0x4c1)){if(_0x4932a0['length']>=0x40||!_0x4932a0[_0x4c43bb(0x30e)]()){if(!_0x581a40(_0x4932a0,0x0))return-0x1;}}else{if(_0x5a4587!==_0x4c43bb(0x729)){if(Array['isArray'](_0x4932a0)?_0x4932a0['length']===0x0||!_0x581a40(_0x4932a0,0x0):!_0x581a40(_0x4932a0,0x0))return-0x1;}}let _0x246f9d;try{_0x246f9d=_0x5120c4(_0x4932a0,_0x5cb6bc,0x0);}catch{return-0x1;}return _0x246f9d>0x0&&_0x246f9d<=_0x1f23e1?_0x246f9d:-0x1;}return keyenc={'encodeKey':_0x7f364d,'KEY_BUF_SIZE':_0x2015c2,'NO_FAST':Symbol(_0x248fe4(0x46f))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x41a663=0x400,_0x35eb9a=_0x41a663-0x1,_0x55cf15=0xea60;function _0x4583a4(_0x11b757,_0x193c38){const _0x3cb034=_0x3f13;return _0x11b757*_0x41a663+Math[_0x3cb034(0x3c5)](0x0,Math[_0x3cb034(0x5b5)](_0x193c38,_0x35eb9a));}function _0x4e91cb(_0x5d48b0){const _0x42ddcd=_0x3f13,_0xffb06e=Math[_0x42ddcd(0x3c5)](0x0,Number(_0x5d48b0)||0x0),_0xe10e46=_0xffb06e%_0x41a663,_0x4c1d0e=(_0xffb06e-_0xe10e46)/_0x41a663;return{'pt':_0x4c1d0e,'l':_0xe10e46};}function _0x3f2197(_0x5f58fa,_0x33d06a=Date['now']()){const _0x14c9ea=_0x3f13,{pt:_0x14e8ad,l:_0x49b381}=_0x4e91cb(_0x5f58fa),_0x99edfd=Math['max'](_0x14e8ad,_0x33d06a),_0x298a01=_0x99edfd===_0x14e8ad?Math[_0x14c9ea(0x5b5)](_0x49b381+0x1,_0x35eb9a):0x0;return _0x4583a4(_0x99edfd,_0x298a01);}function _0x4ea141(_0x317642,_0x4a44b5,_0x2c73a6=Date['now']()){const _0x3fc380=_0x3f13,{pt:_0x52d192,l:_0x3b0221}=_0x4e91cb(_0x317642),{pt:_0x2184f9,l:_0x5b524a}=_0x4e91cb(_0x4a44b5),_0x4d430c=Math[_0x3fc380(0x3c5)](_0x52d192,_0x2184f9,_0x2c73a6);let _0x22b310;if(_0x4d430c===_0x52d192&&_0x4d430c===_0x2184f9)_0x22b310=Math['min'](Math[_0x3fc380(0x3c5)](_0x3b0221,_0x5b524a)+0x1,_0x35eb9a);else{if(_0x4d430c===_0x52d192)_0x22b310=Math[_0x3fc380(0x5b5)](_0x3b0221+0x1,_0x35eb9a);else _0x4d430c===_0x2184f9?_0x22b310=Math[_0x3fc380(0x5b5)](_0x5b524a+0x1,_0x35eb9a):_0x22b310=0x0;}return _0x4583a4(_0x4d430c,_0x22b310);}function _0x1e7ae5(_0x5c0c31,_0x584061){const _0x32594b=Number(_0x5c0c31)||0x0,_0xb1d119=Number(_0x584061)||0x0;if(_0x32594b<_0xb1d119)return-0x1;if(_0x32594b>_0xb1d119)return 0x1;return 0x0;}function _0x5de2c0(_0x2ec898){return _0x4e91cb(_0x2ec898)['pt'];}return okdbHlc={'send':_0x3f2197,'recv':_0x4ea141,'compare':_0x1e7ae5,'toMs':_0x5de2c0,'encode':_0x4583a4,'decode':_0x4e91cb,'SCALE':_0x41a663,'L_MAX':_0x35eb9a,'DRIFT_MAX':_0x55cf15},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x5b0fae=_0x1ade1a;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x42bf0f,chunkedRange:_0x3bdb9e,pinnedChunks:_0x354de5,claimPrefetch:_0x20d677}=requireIterable(),{reclass:_0x425c4a,NotImplementedNative:_0x278464,OKDBError:_0x50c0e8,optionsArg:_0x5de396}=requireErrors(),{OKDBViews:_0x565dde}=requireViews(),{OKDBQueue:_0x2390e7}=requireQueue(),{OKDBTimeMachine:_0x39ce78}=requireTimemachine(),_0x4e7a41=_0x586911=>{const _0x12d92c=_0x3f13;try{return!_0x586911[_0x12d92c(0x27b)]||_0x586911[_0x12d92c(0x27b)]['isFeatureEnabled'](_0x12d92c(0x337));}catch{return!![];}},{OKDBFiles:_0x3f31f8}=requireFiles(),{OKDBEngines:_0x1343e5,OKDBPipelines:_0x316802}=requireEngines(),{OKDBFunctions:_0x393bdb}=requireFunctions(),_0x49f8b5=requireProcessor(),{RawDb:_0x13e6a4}=requireRawdb(),_0x4860b3=requireBridge();let _0x21f4a4=null;const _0x35927d=()=>_0x21f4a4||=requireOkdbTransaction(),_0x224c76=(..._0x134034)=>requireOkdbGuardedRange()[_0x5b0fae(0x52a)](..._0x134034),_0x190aa1=Buffer[_0x5b0fae(0x5f7)]([0xff]),_0x2a802d=process.env.OKDB_NATIVE_RAW_READS!=='0',_0xe5da38=_0x2a802d&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x4ff23f}=requireKeyenc(),_0x13e67c=new Set(_0x2a802d?[_0x5b0fae(0x805),_0x5b0fae(0x1f0),_0x5b0fae(0x3a1),_0x5b0fae(0x6fd),_0x5b0fae(0x42e)]:[]),_0x5e70ae=new Set([_0x5b0fae(0x616),_0x5b0fae(0x242),'getMany',_0x5b0fae(0x805),'getKeys',_0x5b0fae(0x521),_0x5b0fae(0x3b4),_0x5b0fae(0x744),_0x5b0fae(0x676),'byIndex',_0x5b0fae(0x155),_0x5b0fae(0x3a1),_0x5b0fae(0x79e),_0x5b0fae(0x743),_0x5b0fae(0x353),_0x5b0fae(0x6fd),_0x5b0fae(0x5ad),_0x5b0fae(0x38b),_0x5b0fae(0x176),_0x5b0fae(0x55e),_0x5b0fae(0x45d),_0x5b0fae(0x224),_0x5b0fae(0x3e5),'pinned',_0x5b0fae(0x31c),_0x5b0fae(0x258),_0x5b0fae(0x182),'getUniqueViolation',_0x5b0fae(0x384),'getViolation',_0x5b0fae(0x302),'getRefViolation','listRefViolations',_0x5b0fae(0x695),_0x5b0fae(0x1c2),_0x5b0fae(0x4ec),_0x5b0fae(0x802),_0x5b0fae(0x885),'path','id',_0x5b0fae(0x53d),_0x5b0fae(0x18b),_0x5b0fae(0x4b3),_0x5b0fae(0x776),_0x5b0fae(0x20d)]),_0x891614=new Set([_0x5b0fae(0x525),'end',_0x5b0fae(0x1a8),_0x5b0fae(0x5fd),'offset',_0x5b0fae(0x7cd),_0x5b0fae(0x339),_0x5b0fae(0x790),_0x5b0fae(0x3b9),'snapshot',_0x5b0fae(0x84d),_0x5b0fae(0x491),'valuesForKey','prefix']);function _0x9ad447(_0x1563d8,_0x1668ca,_0x8eaf7b){const _0x4fe662=new Map();return(_0x85f96d,_0x20e25c)=>{const _0x47b6b4=_0x3f13,_0x363bf2=JSON[_0x47b6b4(0x4e6)](_0x20e25c),_0x4d60f6=_0x4fe662[_0x47b6b4(0x616)](_0x363bf2);if(_0x4d60f6){if(_0x4d60f6[_0x47b6b4(0x823)]===_0x47b6b4(0x4ef))throw _0x45ce9f();_0x4fe662[_0x47b6b4(0x727)](_0x363bf2);if(_0x4d60f6['state']===_0x47b6b4(0x5e2))throw _0x4d60f6[_0x47b6b4(0x7fd)];return _0x4d60f6[_0x47b6b4(0x7fd)];}const _0x3516f6=_0x85f96d(..._0x20e25c);if(!_0x3516f6||typeof _0x3516f6[_0x47b6b4(0x1df)]!==_0x47b6b4(0x40e))return _0x3516f6;const _0x5f0430={'state':_0x47b6b4(0x4ef),'value':undefined},_0x4f1bd3=(_0x167a21,_0x3cac8a)=>{const _0xe3ed4f=_0x47b6b4;_0x5f0430['state']=_0x167a21,_0x5f0430[_0xe3ed4f(0x7fd)]=_0x3cac8a;if(_0x4fe662[_0xe3ed4f(0x616)](_0x363bf2)!==_0x5f0430)return;setTimeout(()=>_0x4fe662[_0xe3ed4f(0x616)](_0x363bf2)===_0x5f0430&&_0x4fe662['delete'](_0x363bf2),0x7530)['unref']();try{_0x1563d8[_0xe3ed4f(0x555)][_0xe3ed4f(0x82b)](_0xe3ed4f(0x425),null,_0xe3ed4f(0x7bb),[_0xe3ed4f(0x3b2),{'env':_0x1563d8[_0xe3ed4f(0x885)],'type':_0x1668ca,'field':_0x8eaf7b}],!![]);}catch{}};_0x3516f6[_0x47b6b4(0x1df)](_0x168be9=>_0x4f1bd3('ok',_0x168be9),_0x2e7b19=>_0x4f1bd3('err',_0x2e7b19));for(let _0x3aba0f=0x0;_0x3aba0f<0x64&&_0x5f0430[_0x47b6b4(0x823)]===_0x47b6b4(0x4ef);_0x3aba0f++)process['_tickCallback']();if(_0x5f0430[_0x47b6b4(0x823)]==='ok')return _0x5f0430[_0x47b6b4(0x7fd)];if(_0x5f0430[_0x47b6b4(0x823)]===_0x47b6b4(0x5e2))throw _0x5f0430[_0x47b6b4(0x7fd)];_0x4fe662[_0x47b6b4(0x488)](_0x363bf2,_0x5f0430);throw _0x45ce9f();};}function _0x45ce9f(){const _0x417a7c=_0x5b0fae;return Object[_0x417a7c(0x257)](new Error(_0x417a7c(0x7ee)),{'code':_0x417a7c(0x3bc)});}class _0x3c0f75{constructor(_0x3cc71e,_0x344b6e){const _0x18b597=_0x5b0fae;this[_0x18b597(0x555)]=_0x3cc71e,this[_0x18b597(0x885)]=_0x344b6e,this[_0x18b597(0x425)]=_0x3cc71e[_0x18b597(0x425)],this['log']=_0x3cc71e[_0x18b597(0x629)],this[_0x18b597(0x232)]=!![],this[_0x18b597(0x56d)]=null,this[_0x18b597(0x4fd)]=new _0x565dde(this),this[_0x18b597(0x548)]=new _0x49f8b5(this);if(!_0x344b6e[_0x18b597(0x70d)]('~')||_0x344b6e[_0x18b597(0x2bc)](':emb:'))this[_0x18b597(0x7b6)]=new _0x2390e7(this);if(!_0x344b6e[_0x18b597(0x70d)]('~'))this[_0x18b597(0x513)]=new _0x3f31f8(this);this[_0x18b597(0x4a7)]=new _0x393bdb(_0x3cc71e,_0x344b6e),this[_0x18b597(0x5a4)]=new _0x1343e5(_0x3cc71e,_0x344b6e,_0x3cc71e[_0x18b597(0x5a4)]),this[_0x18b597(0x35c)]=new _0x316802(_0x3cc71e,_0x344b6e);if(!_0x344b6e[_0x18b597(0x70d)]('~')&&_0x3cc71e['options'][_0x18b597(0x337)]&&_0x4e7a41(_0x3cc71e))this[_0x18b597(0x337)]=new _0x39ce78(this);_0x4860b3[_0x18b597(0x849)](this[_0x18b597(0x72d)],this);const _0x5c5581=this;this[_0x18b597(0x57b)]={async 'transaction'(_0x288293){const _0x285500=_0x18b597,_0x4caafe=[];_0x5c5581['_txnBuf']=_0x4caafe;try{_0x288293();}finally{_0x5c5581['_txnBuf']=null;}return _0x5c5581['okdb'][_0x285500(0x630)][_0x285500(0x281)](_0x285500(0x53c),_0x5c5581[_0x285500(0x885)],'commit',[_0x4caafe]);},'drain'(){const _0x1095f1=_0x18b597;return _0x5c5581[_0x1095f1(0x555)][_0x1095f1(0x630)][_0x1095f1(0x303)]();},'flushLmdb'(){const _0x4c4837=_0x18b597;return _0x5c5581['okdb'][_0x4c4837(0x630)][_0x4c4837(0x303)]();},'markClosed'(){}};const _0x34ef34=new _0x13e6a4(this,'');_0x34ef34[_0x18b597(0x6e6)]=()=>({'lastTxnId':this['_n'](_0x18b597(0x53d),[])}),Object[_0x18b597(0x882)](_0x34ef34,_0x18b597(0x29b),{'get':()=>this['okdb']['_wb'][_0x18b597(0x303)](),'configurable':!![]}),Object['defineProperty'](_0x34ef34,_0x18b597(0x43f),{'get':()=>this['okdb'][_0x18b597(0x630)][_0x18b597(0x303)](),'configurable':!![]});const _0x553c6b=_0x34ef34[_0x18b597(0x616)]['bind'](_0x34ef34);_0x34ef34['get']=_0x9677fb=>_0x9677fb===_0x18b597(0x85a)?this['_n'](_0x18b597(0x353),[null]):_0x553c6b(_0x9677fb),this['db']=_0x34ef34;}async[_0x5b0fae(0x469)](){const _0x3665a2=_0x5b0fae;this[_0x3665a2(0x386)]=!![];}get[_0x5b0fae(0x2bb)](){const _0x4ebc45=_0x5b0fae;return new Map(this[_0x4ebc45(0x555)][_0x4ebc45(0x82b)]('db',null,_0x4ebc45(0x5e6),[this[_0x4ebc45(0x885)]],![]));}get['typesDb'](){const _0x184f5e=_0x5b0fae;return this[_0x184f5e(0x4e9)]||(this['_typesDb']=new _0x13e6a4(this,_0x184f5e(0x504)));}[_0x5b0fae(0x83f)](_0x3c761e){const _0x443e6=_0x5b0fae,_0x4b6145=this[_0x443e6(0x1bb)][_0x443e6(0x616)](_0x3c761e);if(_0x4b6145===undefined||String(_0x3c761e)[_0x443e6(0x70d)](_0x443e6(0x158))||String(_0x3c761e)[_0x443e6(0x70d)](_0x443e6(0x66e))){const {OKDBError:_0x46763a}=requireErrors();throw new _0x46763a('Type\x20\x22'+_0x3c761e+_0x443e6(0x7a9),'TYPE_NOT_REGISTERED',{'type':_0x3c761e});}const _0x5d02f3=this,_0x12d3aa=new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x73d)),_0x14dfe9=new Map();for(const _0x47a2df of _0x12d3aa[_0x443e6(0x42e)]()){const _0x27946f=_0x12d3aa[_0x443e6(0x616)](_0x47a2df)||{},_0x3b9d07={'parts':_0x47a2df[_0x443e6(0x3bd)]('~'),'db':new _0x13e6a4(_0x5d02f3,'type:'+_0x3c761e+_0x443e6(0x1e6)+_0x47a2df,{'dupSort':!![]})};if(_0x27946f[_0x443e6(0x15a)])_0x3b9d07[_0x443e6(0x15a)]=_0x27946f[_0x443e6(0x15a)];if(_0x27946f['unique'])_0x3b9d07[_0x443e6(0x58e)]=!![];if(_0x27946f[_0x443e6(0x6a6)])_0x3b9d07[_0x443e6(0x6a6)]=!![];if(_0x27946f[_0x443e6(0x6b2)])_0x3b9d07[_0x443e6(0x6b2)]=_0x27946f[_0x443e6(0x6b2)];_0x3b9d07[_0x443e6(0x13d)]=new Set((_0x27946f[_0x443e6(0x13d)]??[])['map'](_0x11a366=>_0x11a366[_0x443e6(0x14e)]+':'+_0x11a366['name'])),_0x14dfe9[_0x443e6(0x488)](_0x47a2df,_0x3b9d07);}return{'root':new _0x13e6a4(_0x5d02f3,'type:'+_0x3c761e),'data':new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x757),{'useVersions':!![]}),'indexes':_0x12d3aa,'clockToChange':new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x35e)),'keyToChange':new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x2e9)),'fieldSchema':new Map(Object[_0x443e6(0x325)](_0x4b6145['fields']||{})[_0x443e6(0x6f2)](([_0x801422,_0x57cac0])=>[_0x801422,new Set(Array[_0x443e6(0x4b6)](_0x57cac0)?_0x57cac0:[_0x57cac0])])),'indexToDb':_0x14dfe9,'ftsToDb':null,'schema':_0x4b6145[_0x443e6(0x17d)]||null,'defaultTTL':_0x4b6145[_0x443e6(0x571)]||null};}get[_0x5b0fae(0x847)](){const _0x60d778=_0x5b0fae,_0x1d38fc=this,_0x14fb26=()=>_0x1d38fc[_0x60d778(0x55e)]();return{'get':_0x10066c=>{const _0x3e5ee1=_0x60d778;try{return _0x1d38fc[_0x3e5ee1(0x83f)](_0x10066c);}catch{return undefined;}},'has':_0x43bec8=>_0x14fb26()[_0x60d778(0x2bc)](_0x43bec8),'keys':()=>_0x14fb26()[Symbol[_0x60d778(0x821)]](),get 'size'(){return _0x14fb26()['length'];}};}[_0x5b0fae(0x811)](){const _0x1bc389=_0x5b0fae;return this[_0x1bc389(0x55e)]();}get['changeToClockDb'](){const _0x4fe24f=_0x5b0fae;return this['_changeToClockDb']||(this[_0x4fe24f(0x828)]=new _0x13e6a4(this,_0x4fe24f(0x51b)));}get[_0x5b0fae(0x2c1)](){const _0x4a985a=_0x5b0fae;return this['_clockToChangeDb']||(this[_0x4a985a(0x2dd)]=new _0x13e6a4(this,_0x4a985a(0x80f)));}[_0x5b0fae(0x637)](_0xc0ec7d){const _0xf2c3e7=_0x5b0fae;return this['_n'](_0xf2c3e7(0x4ba),[_0xc0ec7d]);}get['_noChangelog'](){const _0x478852=_0x5b0fae;return!this['_n'](_0x478852(0x52e),[],![]);}get[_0x5b0fae(0x765)](){const _0x26212b=_0x5b0fae;return this[_0x26212b(0x30a)]!==undefined?this[_0x26212b(0x30a)]:this['_n'](_0x26212b(0x52e),[],![]);}set[_0x5b0fae(0x765)](_0x33ae6f){const _0x560878=_0x5b0fae;this[_0x560878(0x30a)]=_0x33ae6f;}get[_0x5b0fae(0x722)](){const _0x455e16=_0x5b0fae;return this[_0x455e16(0x60b)]||(this[_0x455e16(0x60b)]=new(requireLock())[(_0x455e16(0x288))](this[_0x455e16(0x555)],_0x455e16(0x196),_0x455e16(0x2b0),{'ttlMs':0xea60}));}get[_0x5b0fae(0x72d)](){const _0x115c7e=_0x5b0fae;return this[_0x115c7e(0x3ff)]??(this[_0x115c7e(0x3ff)]=this['_n'](_0x115c7e(0x72d),[]));}get['id'](){return this['_n']('id',[]);}get[_0x5b0fae(0x4fa)](){const _0x31a2d3=_0x5b0fae;return this[_0x31a2d3(0x555)][_0x31a2d3(0x4fa)];}['_n'](_0x506232,_0x34e87e){const _0x59db6e=_0x5b0fae;return this[_0x59db6e(0x555)]['_call'](_0x59db6e(0x53c),this[_0x59db6e(0x885)],_0x506232,_0x34e87e,!_0x5e70ae[_0x59db6e(0x4a8)](_0x506232));}[_0x5b0fae(0x2c8)](_0x2f6bae){const _0x63aa05=_0x5b0fae;return this[_0x63aa05(0x555)][_0x63aa05(0x51a)](_0x2f6bae);}[_0x5b0fae(0x668)](_0x2e9ced,_0x10fd0b){const _0x116327=_0x5b0fae;if(_0x13e67c[_0x116327(0x4a8)](_0x2e9ced===_0x116327(0x445)?_0x10fd0b[0x1]:_0x2e9ced))return this[_0x116327(0x555)][_0x116327(0x873)](this[_0x116327(0x885)],_0x2e9ced,_0x10fd0b);return this[_0x116327(0x555)][_0x116327(0x49c)](_0x116327(0x53c),this[_0x116327(0x885)],_0x2e9ced,_0x10fd0b);}[_0x5b0fae(0x84d)](_0x3d01a5={'useReadTransaction':![]}){return new(_0x35927d())(this,_0x3d01a5);}async[_0x5b0fae(0x82f)](_0x2dd5e8,_0x69b56d){const _0x2a1477=_0x5b0fae;return _0x35927d()[_0x2a1477(0x7be)](this,_0x2dd5e8,_0x69b56d);}[_0x5b0fae(0x6ec)](_0x2864ee,_0x14b8d6){const _0xf12d18=_0x5b0fae;if(this[_0xf12d18(0x56d)])this[_0xf12d18(0x56d)]['push']({'action':_0x2864ee,'args':_0x14b8d6});else this['_n'](_0x2864ee,_0x14b8d6);}[_0x5b0fae(0x1ea)](_0x4c0caf,_0x4888f1,_0x4d8c4e,_0x131b3e,_0x7ce1ae){const _0x4d03c4=_0x5b0fae;this[_0x4d03c4(0x6ec)]('put',[_0x4888f1,_0x4d8c4e,_0x131b3e,_0x7ce1ae]);}['_update'](_0xc7387e,_0x31206f,_0x29855a,_0x1e71e4,_0x3e8ba7){const _0x28c632=_0x5b0fae;this[_0x28c632(0x6ec)](_0x28c632(0x601),[_0x31206f,_0x29855a,_0x1e71e4,_0x3e8ba7]);}['_patch'](_0x495f6d,_0x5e903f,_0x558e17,_0x30ad81,_0x42b55c){const _0x5d7582=_0x5b0fae;this[_0x5d7582(0x6ec)](_0x5d7582(0x369),[_0x5e903f,_0x558e17,_0x30ad81,_0x42b55c]);}[_0x5b0fae(0x595)](_0x1a878d,_0x3afcd6,_0x4fd48a,_0x2c16bf,_0x20c0ce){const _0x6c2468=_0x5b0fae;this[_0x6c2468(0x6ec)](_0x6c2468(0x267),[_0x3afcd6,_0x4fd48a,_0x2c16bf,_0x20c0ce]);}[_0x5b0fae(0x498)](_0x293999,_0x27f782,_0x35c688,_0x1ca27a){const _0x1eef19=_0x5b0fae;this['_low'](_0x1eef19(0x6a9),[_0x27f782,_0x35c688,_0x1ca27a]);}['_setTTL'](_0x1448ac,_0x273fc4,_0x4c8490,_0x8062c9){const _0x671520=_0x5b0fae;this['_low'](_0x671520(0x24c),[_0x273fc4,_0x4c8490,_0x8062c9]);}[_0x5b0fae(0x4bd)](_0x4a5239,_0x15d1da,_0x5d93bd){const _0x4b8a9a=_0x5b0fae;this[_0x4b8a9a(0x6ec)]('clearTTL',[_0x15d1da,_0x5d93bd]);}['_w'](_0x594fa3,_0x1b8d3d){const _0x5aebcc=_0x5b0fae;return this['okdb']['_wb']['enqueue']('env',this[_0x5aebcc(0x885)],_0x594fa3,_0x1b8d3d);}['put'](_0x51b627,_0x3a1974,_0x24db21,_0x1b03d4={}){const _0x3741b1=_0x5b0fae;return this['_w'](_0x3741b1(0x7bc),[_0x51b627,_0x3a1974,_0x24db21,_0x1b03d4]);}[_0x5b0fae(0x601)](_0x361b39,_0x538447,_0x2643ed,_0x6e2fc7={}){const _0x445541=_0x5b0fae;return this['_w'](_0x445541(0x601),[_0x361b39,_0x538447,_0x2643ed,_0x6e2fc7]);}['patch'](_0x2b9cf2,_0xdfb468,_0x117667,_0x8ab572={}){const _0x204a7b=_0x5b0fae;return this['_w'](_0x204a7b(0x369),[_0x2b9cf2,_0xdfb468,_0x117667,_0x8ab572]);}[_0x5b0fae(0x267)](_0x5aea09,_0x4bf43a,_0x57a2e3,_0x11b615={}){const _0xb6c370=_0x5b0fae;return this['_w'](_0xb6c370(0x267),[_0x5aea09,_0x4bf43a,_0x57a2e3,_0x11b615]);}[_0x5b0fae(0x6a9)](_0x3c18b2,_0x25b280,_0x339dc4={}){const _0x44ccb4=_0x5b0fae;return this['_w'](_0x44ccb4(0x6a9),[_0x3c18b2,_0x25b280,_0x339dc4]);}['get'](_0x1a7b9d,_0x30262c,_0xa91a25){const _0x430013=_0x5b0fae;if(_0xe5da38&&typeof _0x1a7b9d===_0x430013(0x4c1)){const _0x481609=this[_0x430013(0x555)][_0x430013(0x1c9)](this['name'],_0x1a7b9d,_0x30262c);if(_0x481609!==_0x4ff23f)return _0x481609===null?this['_n'](_0x430013(0x616),[_0x1a7b9d,_0x30262c]):_0x481609;}if(_0x2a802d&&(typeof _0x30262c===_0x430013(0x4c1)||typeof _0x30262c===_0x430013(0x729))){const _0x14bca6=this[_0x430013(0x555)]['_getRaw'](this[_0x430013(0x885)],_0x1a7b9d,_0x30262c);if(_0x14bca6!==null)return _0x14bca6;}return this['_n'](_0x430013(0x616),[_0x1a7b9d,typeof _0x30262c===_0x430013(0x640)?null:_0x30262c]);}[_0x5b0fae(0x84f)](_0x596e5e,_0x5a0450,_0x14e321){const _0x325f8a=_0x5b0fae,_0x34db23=[_0x596e5e,Array['isArray'](_0x5a0450)&&_0x5a0450['some'](_0x1245fb=>typeof _0x1245fb===_0x325f8a(0x640))?_0x5a0450['map'](_0xafa920=>typeof _0xafa920===_0x325f8a(0x640)?null:_0xafa920):_0x5a0450];return _0x2a802d?this['okdb']['_callRows'](this[_0x325f8a(0x885)],_0x325f8a(0x84f),_0x34db23):this['_n'](_0x325f8a(0x84f),_0x34db23);}[_0x5b0fae(0x242)](_0x30a841,_0x5791e6,_0x2f8575){const _0xb0fd4f=_0x5b0fae;return this['_n'](_0xb0fd4f(0x242),[_0x30a841,typeof _0x5791e6===_0xb0fd4f(0x640)?null:_0x5791e6]);}['getCount'](_0x120265,_0x418012){const _0xff6ce3=_0x5b0fae;return this['_assertRangeOptions'](_0xff6ce3(0x3b4),_0x418012),this['_n'](_0xff6ce3(0x3b4),[_0x120265,_0x4e4015(_0x418012)]);}[_0x5b0fae(0x424)](_0x1288da,_0xf6a7f0,_0xe862e=[]){const _0x175852=_0x5b0fae;if(!_0xf6a7f0||typeof _0xf6a7f0!==_0x175852(0x6f7))return;for(const _0x3040d9 of Object[_0x175852(0x23b)](_0xf6a7f0)){if(!_0x891614[_0x175852(0x4a8)](_0x3040d9)&&!_0xe862e['includes'](_0x3040d9))throw new _0x50c0e8(_0x1288da+_0x175852(0x1bc)+_0x3040d9+'\x27',_0x175852(0x524),{'option':_0x3040d9});}}[_0x5b0fae(0x6b3)](_0x1948c0,_0x3f9ccd,_0x3d11c3,_0x4c7789,_0x187980,_0x43560a){const _0x36c6e4=_0x5b0fae;this[_0x36c6e4(0x424)](_0x1948c0,_0x4c7789);const _0x2a2ce9=_0x4c7789?.[_0x36c6e4(0x7e2)],_0x18eed2=_0x4e4015(_0x4c7789);if(_0x2a2ce9===!![]||_0x2a2ce9===_0x36c6e4(0x50a)){const _0x483002=this[_0x36c6e4(0x7ab)](_0x1948c0,_0x3f9ccd,_0x1f4034=>[_0x3d11c3,{..._0x18eed2,..._0x1f4034}],_0x4c7789);return _0x43560a?_0x483002[_0x36c6e4(0x6f2)](_0x43560a):_0x483002;}const _0x1fc731=_0x3bdb9e(_0x5c140f=>this[_0x36c6e4(0x668)](_0x3f9ccd,[_0x3d11c3,_0x5c140f]),_0x18eed2,_0x187980,{'rows':_0x3f9ccd===_0x36c6e4(0x805)});return _0x43560a?_0x1fc731['map'](_0x43560a):_0x1fc731;}[_0x5b0fae(0x7ab)](_0x370b5e,_0x4b70c6,_0x488c54,_0x471e0b,_0x146813,_0x57bba5=![]){const _0x1691eb=_0x5b0fae,{source:_0x29365e,prefetch:_0x175d9c}=_0x354de5((_0x2cd773,_0x1cbcb9)=>_0x2cd773===_0x1691eb(0x31c)?this['_n'](_0x2cd773,_0x1cbcb9):this[_0x1691eb(0x668)](_0x2cd773,_0x1cbcb9),_0x4b70c6,_0x488c54,_0x471e0b||{},_0x146813),_0x4041c1=_0x175d9c(),_0x3c47ff=!_0x57bba5&&_0x471e0b&&_0x471e0b[_0x1691eb(0x7e2)]===_0x1691eb(0x50a);let _0x4acf8b=null;return _0x224c76(()=>({[Symbol[_0x1691eb(0x821)]]:()=>_0x4acf8b=_0x29365e(0x0,_0x20d677(_0x4041c1))}),{'label':this[_0x1691eb(0x885)]+':'+_0x370b5e,..._0x3c47ff?{'getTxnId':()=>this['db'][_0x1691eb(0x6e6)]()[_0x1691eb(0x53d)],'resume':()=>({[Symbol[_0x1691eb(0x821)]]:()=>_0x4acf8b=_0x4acf8b[_0x1691eb(0x18d)]()})}:{}});}[_0x5b0fae(0x805)](_0x3b1e8d,_0x1b2f0c){const _0x2ce8d2=_0x5b0fae;return this[_0x2ce8d2(0x6b3)](_0x2ce8d2(0x805),_0x2ce8d2(0x805),_0x3b1e8d,_0x1b2f0c,_0x4ab98e=>_0x4ab98e[_0x2ce8d2(0x491)]);}[_0x5b0fae(0x42e)](_0x2c8900,_0x4958c1){const _0x2f163b=_0x5b0fae;return this[_0x2f163b(0x6b3)]('getKeys',_0x2f163b(0x42e),_0x2c8900,_0x4958c1,_0x384324=>_0x384324);}[_0x5b0fae(0x521)](_0x22781d,_0x3fda67){const _0x5c2ab2=_0x5b0fae;return this[_0x5c2ab2(0x6b3)](_0x5c2ab2(0x521),'getRange',_0x22781d,_0x3fda67,_0x2f1ae9=>_0x2f1ae9[_0x5c2ab2(0x491)],_0x6e378=>_0x6e378[_0x5c2ab2(0x7fd)]);}[_0x5b0fae(0x744)](_0x4aab47,_0x3fe1fa,_0x3b7014={}){return this['getRange'](_0x4aab47,{'start':_0x3fe1fa,'end':_0x3fe1fa+'￿',..._0x3b7014});}[_0x5b0fae(0x676)](_0x515d2d,_0x422401,_0x2fe52d={}){const _0xe498a0=_0x5b0fae;this[_0xe498a0(0x424)]('getIndex',_0x2fe52d,[_0xe498a0(0x1c5)]);const _0x45d8fc=_0x4e4015(_0x2fe52d);if(_0x2fe52d&&_0x2fe52d['transaction'])return _0x42bf0f(this['_n'](_0xe498a0(0x676),[_0x515d2d,_0x422401,_0x45d8fc]));return this['_lazyPinned']('getIndex','getIndex',_0x28b5b2=>[_0x515d2d,_0x422401,{..._0x45d8fc,..._0x28b5b2}],_0x2fe52d,undefined,!![]);}[_0x5b0fae(0x1f0)](_0x3080a1,_0x4c29b6,_0x47883e){const _0x446be4=_0x5b0fae;this[_0x446be4(0x424)](_0x446be4(0x1f0),_0x47883e,['prefix',_0x446be4(0x78c)]);const _0x1822cb=_0x4e4015(_0x47883e);if(_0x47883e&&_0x47883e[_0x446be4(0x84d)])return _0x42bf0f(this['_n'](_0x446be4(0x1f0),[_0x3080a1,_0x4c29b6,_0x1822cb]));return this[_0x446be4(0x7ab)](_0x446be4(0x1f0),_0x446be4(0x1f0),_0x3ad766=>[_0x3080a1,_0x4c29b6,{..._0x1822cb,..._0x3ad766}],_0x47883e,undefined,!![]);}[_0x5b0fae(0x155)](_0x57c94c,_0x51b8a2,_0x4f78ef={}){const _0x168622=_0x5b0fae;return this['_n'](_0x168622(0x155),[_0x57c94c,_0x51b8a2,_0x4e4015(_0x4f78ef)]);}[_0x5b0fae(0x3a1)](_0x1c90ed,_0x40ab38={},_0x2a8a9d={}){const _0x2651cd=_0x5b0fae,_0x2bea6e=_0x21d722(_0x2a8a9d);if(_0x2a8a9d){for(const _0x20118 of Object[_0x2651cd(0x23b)](_0x2a8a9d))if(_0x20118!==_0x2651cd(0x1b5)&&typeof _0x2a8a9d[_0x20118]===_0x2651cd(0x40e))_0x2bea6e[_0x20118]=null;}if(_0x2a8a9d&&(_0x2a8a9d[_0x2651cd(0x60e)]||_0x2a8a9d[_0x2651cd(0x812)]))return this['_n']('assertQueryOptions',[_0x2bea6e]),this[_0x2651cd(0x48d)](_0x1c90ed,_0x40ab38,_0x2a8a9d);const _0x29c6bc=typeof _0x2a8a9d[_0x2651cd(0x1b5)]===_0x2651cd(0x40e)?_0x2a8a9d[_0x2651cd(0x1b5)]:null;if(_0x2a8a9d[_0x2651cd(0x70f)]||_0x115685(_0x40ab38)||_0x2a8a9d[_0x2651cd(0x84d)]!==undefined){let _0x2b3978=this['_n'](_0x2651cd(0x3a1),[_0x1c90ed,_0x40ab38,_0x2bea6e]);if(_0x29c6bc)_0x2b3978=_0x2b3978['map'](_0x29c6bc);if(_0x2a8a9d[_0x2651cd(0x70f)]||_0x115685(_0x40ab38))return _0x2b3978;return _0x42bf0f(_0x2b3978);}const _0x2ba873=_0x1e738c=>typeof _0x1e738c===_0x2651cd(0x729)&&Number[_0x2651cd(0x32e)](_0x1e738c)?Math[_0x2651cd(0x3c5)](0x0,_0x1e738c):Infinity;let _0x55a54a;if(_0x2a8a9d[_0x2651cd(0x880)]){const _0x32432c=_0x5307a9=>typeof _0x5307a9===_0x2651cd(0x729)&&_0x5307a9>0x0?Math[_0x2651cd(0x475)](_0x5307a9):0x0;_0x55a54a=this['_lazyPinned']('query','query',_0x4deb8e=>[_0x1c90ed,_0x40ab38,{..._0x2bea6e,..._0x4deb8e}],null,{'limitOf':()=>_0x2ba873(_0x2bea6e['limit']),'offsetOf':()=>_0x32432c(_0x2bea6e[_0x2651cd(0x746)])});}else _0x55a54a=_0x3bdb9e(_0x351066=>{const _0x4c8aaf=_0x2651cd,{__after:_0x55583f,..._0x1436fa}=_0x351066;return this[_0x4c8aaf(0x668)](_0x4c8aaf(0x3a1),_0x55583f===undefined?[_0x1c90ed,_0x40ab38,_0x1436fa]:[_0x1c90ed,_0x40ab38,_0x1436fa,_0x55583f]);},_0x2bea6e,_0x368190=>_0x368190[_0x2651cd(0x491)],{'limitOf':_0x2ba873,'rows':!![],'prefetch':!![],'resumeOpts':(_0xc3e456,_0x1fa4db)=>{const _0x2688f8=_0x2651cd;_0xc3e456['offset']=0x0,_0xc3e456[_0x2688f8(0x33f)]=_0x1fa4db;}});return _0x29c6bc?_0x55a54a[_0x2651cd(0x6f2)](_0x29c6bc):_0x55a54a;}async[_0x5b0fae(0x48d)](_0x2a1c33,_0x3c1895,_0x589700){const _0x3feb77=_0x5b0fae,{select:_0x5bff6e,..._0x19efca}=_0x21d722(_0x589700);let _0x2bfed7={..._0x19efca};const _0xc6e76b=_0x2bfed7[_0x3feb77(0x880)];if(_0xc6e76b&&!Array[_0x3feb77(0x4b6)](_0xc6e76b)&&typeof _0xc6e76b==='object'&&_0xc6e76b[_0x3feb77(0x153)]){const {fields:_0x137cc5,prefix:_0x2f24da,start:_0x540965,end:_0x5bd181}=_0xc6e76b;_0x2bfed7={..._0x2bfed7,'index':_0x137cc5,'prefix':_0x2f24da??_0x2bfed7[_0x3feb77(0x1c5)],'startIndex':_0x540965??_0x2bfed7[_0x3feb77(0x77c)],'endIndex':_0x5bd181??_0x2bfed7[_0x3feb77(0x723)]};}const _0x135833=await this[_0x3feb77(0x555)]['_callMacro'](_0x3feb77(0x5cf),null,_0x3feb77(0x69a),[this[_0x3feb77(0x885)],_0x2a1c33,_0x3c1895,_0x2bfed7],![]),_0x32e2a9=typeof _0x589700[_0x3feb77(0x1b5)]===_0x3feb77(0x40e)?_0x589700[_0x3feb77(0x1b5)]:null;if(!_0x32e2a9)return _0x135833;return _0x135833[_0x3feb77(0x6f2)](_0x59106e=>{const _0x42122c=_0x3feb77,{score:_0x35723a,ftsScore:_0x53dcbb,numTerms:_0x57b126,maxScore:_0x5435f7,vectorScore:_0x1c48e0,chunkHash:_0x5e46c9,chunk:_0x4badc1,..._0x2ff510}=_0x59106e,_0x139eef=_0x32e2a9(_0x2ff510);for(const [_0x46a6ba,_0x360611]of Object[_0x42122c(0x325)]({'score':_0x35723a,'ftsScore':_0x53dcbb,'numTerms':_0x57b126,'maxScore':_0x5435f7,'vectorScore':_0x1c48e0,'chunkHash':_0x5e46c9,'chunk':_0x4badc1}))if(_0x360611!==undefined)_0x139eef[_0x46a6ba]=_0x360611;return _0x139eef;});}[_0x5b0fae(0x743)](_0x3d9af6,_0x325053,_0x5ea268={}){const _0x239e9c=_0x5b0fae;let _0x1c15c7=this['_n'](_0x239e9c(0x743),[_0x3d9af6,_0x325053,_0x21d722(_0x5ea268)]);if(typeof _0x5ea268['select']===_0x239e9c(0x40e))_0x1c15c7=_0x1c15c7[_0x239e9c(0x6f2)](_0x5ea268[_0x239e9c(0x1b5)]);return _0x1c15c7;}[_0x5b0fae(0x353)](_0x1af44e=null,_0x3f6d53={}){return this['_n']('getClock',[_0x1af44e]);}[_0x5b0fae(0x6fd)](_0x418441=null,_0x2a4d6d=0x0,_0x4ece4b=Number['MAX_SAFE_INTEGER'],_0x2701a2={}){const _0x308c57=_0x5b0fae,_0x11a076=_0x4e4015(_0x2701a2);if(_0x2701a2&&_0x2701a2[_0x308c57(0x84d)])return _0x42bf0f(this['_n'](_0x308c57(0x6fd),[_0x418441,_0x2a4d6d,_0x4ece4b,_0x11a076]));return this[_0x308c57(0x7ab)](_0x308c57(0x6fd),_0x308c57(0x6fd),_0x9bc34f=>[_0x418441,_0x2a4d6d,_0x4ece4b,{..._0x11a076,..._0x9bc34f}],_0x2701a2);}[_0x5b0fae(0x5ad)](_0x57ea1e){const _0x3b3cd3=_0x5b0fae;if(Array[_0x3b3cd3(0x4b6)](_0x57ea1e))return _0x57ea1e[_0x3b3cd3(0x479)];let _0x5dd0bf=0x0;for(const _0x58c7b1 of _0x57ea1e)_0x5dd0bf++;return _0x5dd0bf;}*[_0x5b0fae(0x692)](_0x4c5cde){yield*_0x4c5cde;}[_0x5b0fae(0x38b)](){const _0x58b310=_0x5b0fae;return requireOkdbHlc()[_0x58b310(0x677)](this[_0x58b310(0x7df)]);}get[_0x5b0fae(0x1a7)](){const _0x2fe538=_0x5b0fae,_0x406cfb=this[_0x2fe538(0x555)][_0x2fe538(0x232)]?this[_0x2fe538(0x555)][_0x2fe538(0x82b)]('db',null,_0x2fe538(0x62e),[this['name']],![]):null;if(!_0x406cfb)return null;if(this[_0x2fe538(0x410)]===_0x406cfb[_0x2fe538(0x691)])return null;this[_0x2fe538(0x53b)]=this[_0x2fe538(0x53b)]||new Map();let _0x2271d1=this[_0x2fe538(0x53b)]['get'](_0x406cfb[_0x2fe538(0x691)]);if(!_0x2271d1){const _0x128027=this;_0x2271d1={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x406cfb[_0x2fe538(0x691)],'at':_0x406cfb['at'],'target':_0x406cfb['target'],get '_destroyed'(){const _0x29fac8=_0x2fe538,_0x11daf6=_0x128027[_0x29fac8(0x555)][_0x29fac8(0x232)]?_0x128027[_0x29fac8(0x555)][_0x29fac8(0x82b)]('db',null,_0x29fac8(0x62e),[_0x128027[_0x29fac8(0x885)]],![]):null;return!_0x11daf6||_0x11daf6[_0x29fac8(0x691)]!==this[_0x29fac8(0x691)]||_0x128027[_0x29fac8(0x410)]===this[_0x29fac8(0x691)];}},this[_0x2fe538(0x53b)][_0x2fe538(0x488)](_0x406cfb[_0x2fe538(0x691)],_0x2271d1);}return _0x2271d1;}['_cancelTTLTimeout'](){const _0x57fe2d=_0x5b0fae,_0x97d0b0=this[_0x57fe2d(0x555)][_0x57fe2d(0x82b)]('db',null,'ttlTimer',[this[_0x57fe2d(0x885)]],![]);if(_0x97d0b0)this[_0x57fe2d(0x410)]=_0x97d0b0['gen'];}get[_0x5b0fae(0x44b)](){const _0xa80f9e=_0x5b0fae,_0x46c8ca=this[_0xa80f9e(0x555)][_0xa80f9e(0x82b)]('db',null,_0xa80f9e(0x62e),[this['name']],![]);return _0x46c8ca?_0x46c8ca[_0xa80f9e(0x771)]:null;}get[_0x5b0fae(0x367)](){const _0xb4f7cc=_0x5b0fae;return this['okdb'][_0xb4f7cc(0x82b)]('db',null,_0xb4f7cc(0x398),[this['name']],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x94df70=_0x5b0fae;this['okdb']['_call']('db',null,_0x94df70(0x2ed),[this[_0x94df70(0x885)]],![]);}[_0x5b0fae(0x290)](){this['okdb']['_call']('db',null,'stopAutoCompactCheck',[this['name']],![]);}get[_0x5b0fae(0x1af)](){const _0x3bd1=_0x5b0fae,_0x1f1114=(_0x25fa3e,_0x2cdcc2)=>this[_0x3bd1(0x555)][_0x3bd1(0x82b)]('db',null,_0x25fa3e,[this[_0x3bd1(0x885)],..._0x2cdcc2],![]),_0x2712ec=Object[_0x3bd1(0x23b)](_0x1f1114(_0x3bd1(0x507),[])||{}),_0x108071={};for(const _0x4bb928 of _0x2712ec)Object['defineProperty'](_0x108071,_0x4bb928,{'enumerable':!![],'get':()=>_0x1f1114(_0x3bd1(0x507),[])?.[_0x4bb928],'set':_0x5bc70d=>{const _0xcd2433=_0x3bd1;_0x1f1114(_0xcd2433(0x208),[_0x4bb928,_0x5bc70d]);}});return _0x108071;}get['_hlc'](){return this['_n']('hlc',[]);}['equal'](_0x4751c,_0x21cd27){const _0x50b6b9=_0x5b0fae;return require$$16[_0x50b6b9(0x6a0)](_0x4751c,_0x21cd27);}async[_0x5b0fae(0x4eb)](_0xce336e,_0x40f833){const _0x24cf7c=_0x5b0fae;return this['_wsettle'](this['_n'](_0x24cf7c(0x4eb),[_0xce336e]));}[_0x5b0fae(0x176)](_0x1f2e0d){const _0x48fb71=_0x5b0fae;return this['_n'](_0x48fb71(0x176),[_0x1f2e0d]);}['listTypes'](){const _0x28215b=_0x5b0fae;return this['_n'](_0x28215b(0x55e),[]);}async[_0x5b0fae(0x6b1)](_0x469a95,_0x157765){const _0x1ed3b5=_0x5b0fae;return this[_0x1ed3b5(0x2c8)](this['_n']('dropType',[_0x469a95]));}async[_0x5b0fae(0x85d)](_0x9cff74,_0x1f1c2c){const {timestamp:_0x4f0e91,indexes:indexes=[]}=_0x5de396(_0x1f1c2c);return this['_wsettle'](this['_n']('ensureType',[_0x9cff74,{'indexes':indexes}]));}async[_0x5b0fae(0x4e2)](_0xff385d){const _0x4cf63a=_0x5b0fae,{type:_0x18147a,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x5de396(_0xff385d,_0x4cf63a(0x32d));if(!_0x18147a)throw new Error(_0x4cf63a(0x53e));await this['ensureType'](_0x18147a,{'indexes':indexes});for(const _0x3a2ed8 of fts){const {name:_0x158dfa,fields:_0x455dec,..._0x345ac0}=_0x3a2ed8;if(!_0x158dfa||!_0x455dec)throw new Error(_0x4cf63a(0x3d4));await this[_0x4cf63a(0x555)][_0x4cf63a(0x60e)][_0x4cf63a(0x4e2)](_0x18147a,_0x158dfa,{'fields':_0x455dec,..._0x345ac0},this);}for(const _0x5550b4 of views){const {name:_0xd02afa,definition:_0x2eead7}=_0x5550b4;if(!_0xd02afa||!_0x2eead7)throw new Error(_0x4cf63a(0x619));if(!await this[_0x4cf63a(0x4fd)][_0x4cf63a(0x762)](_0xd02afa))await this[_0x4cf63a(0x4fd)][_0x4cf63a(0x267)](_0xd02afa,_0x2eead7);}if(schema)await this['setSchema'](_0x18147a,schema);}async['registerIndex'](_0x21aada,_0x23b870,_0x94b7d0){const _0x4f51ce=_0x5b0fae,_0x5bc176=this['_n'](_0x4f51ce(0x73e),[_0x21aada,_0x23b870,typeof _0x94b7d0===_0x4f51ce(0x6f7)?_0x94b7d0:{}]);if(!_0x5bc176)return this[_0x4f51ce(0x2c8)](undefined);const _0x50f87e=this['_n'](_0x4f51ce(0x5b4),[_0x21aada,_0x23b870,!![]]);if(_0x50f87e===undefined)return this[_0x4f51ce(0x2c8)](undefined);return this[_0x4f51ce(0x2c8)](await this[_0x4f51ce(0x7e5)](_0x21aada,_0x23b870,_0x50f87e));}async['_indexBuild'](_0x102a75,_0x160449,_0x2407b9){const _0x213cb7=_0x5b0fae,_0x179871=_0x102a75+'@'+[][_0x213cb7(0x45c)](_0x160449)[_0x213cb7(0x6a2)]('~');if(!this[_0x213cb7(0x6fb)])this[_0x213cb7(0x6fb)]=new Map();const _0x1737f9=this[_0x213cb7(0x6fb)][_0x213cb7(0x616)](_0x179871);if(_0x1737f9)return _0x1737f9;const _0x4f2dd7=((async()=>{const _0x53da18=_0x213cb7;do await new Promise(_0x4bad00=>setImmediate(_0x4bad00));while(!this['_n'](_0x53da18(0x633),[_0x102a75,_0x160449,_0x2407b9,!![]]));})());this[_0x213cb7(0x6fb)][_0x213cb7(0x488)](_0x179871,_0x4f2dd7);try{return await _0x4f2dd7;}finally{this['_indexBuilds'][_0x213cb7(0x727)](_0x179871);}}async[_0x5b0fae(0x253)](_0x351d17,_0x225793,_0x30a77c){const _0x193f3e=_0x5b0fae;return this[_0x193f3e(0x2c8)](this['_n'](_0x193f3e(0x253),[_0x351d17,_0x225793]));}async[_0x5b0fae(0x588)](_0x18fdd4,_0x140fc0,_0x2fa07b){const _0x61e9a2=_0x5b0fae,_0x2313e3=this[_0x61e9a2(0x6fb)]&&this[_0x61e9a2(0x6fb)][_0x61e9a2(0x616)](_0x18fdd4+'@'+[]['concat'](_0x140fc0)[_0x61e9a2(0x6a2)]('~'));if(_0x2313e3)return _0x2313e3;const _0x2c434f=this['_n'](_0x61e9a2(0x5b4),[_0x18fdd4,_0x140fc0,_0x2fa07b]);if(_0x2c434f===undefined)return;return await new Promise(_0x5a1f5b=>setImmediate(_0x5a1f5b)),this[_0x61e9a2(0x2c8)](await this['_indexBuild'](_0x18fdd4,_0x140fc0,_0x2c434f));}['hasIndex'](_0xb7ad20,_0x1ba8fd){const _0x550c35=_0x5b0fae;return this['_n'](_0x550c35(0x45d),[_0xb7ad20,_0x1ba8fd]);}['getIndexStatus'](_0xc046fb,_0x5057f0){const _0x68fa40=_0x5b0fae;return this['_n'](_0x68fa40(0x224),[_0xc046fb,_0x5057f0]);}async[_0x5b0fae(0x21c)](_0x45a4c5,_0x5ac66f){const _0x6020d5=_0x5b0fae;if(this['_n'](_0x6020d5(0x224),[_0x45a4c5,_0x5ac66f])==='ready')return!![];let _0xe0a2ec=0xa;for(;;){await new Promise(_0x10a36d=>setTimeout(_0x10a36d,_0xe0a2ec));if(!this[_0x6020d5(0x555)][_0x6020d5(0x232)]||this[_0x6020d5(0x386)])return![];let _0x57121a;try{_0x57121a=this['_n'](_0x6020d5(0x3e5),[_0x45a4c5,Array[_0x6020d5(0x4b6)](_0x5ac66f)?_0x5ac66f['join']('~'):String(_0x5ac66f)['split'](',')['join']('~')]);}catch{return![];}const _0x5ebbc3=_0x57121a&&_0x57121a[_0x6020d5(0x371)];if(_0x5ebbc3===_0x6020d5(0x5ef))return!![];if(_0x5ebbc3===undefined)return![];_0xe0a2ec=Math[_0x6020d5(0x5b5)](_0xe0a2ec*0x2,0xfa);}}['getIndexMeta'](_0x2671c9,_0x424396){const _0x3c054d=_0x5b0fae;return this['_n'](_0x3c054d(0x3e5),[_0x2671c9,_0x424396])??null;}['getUniqueViolations'](_0x1180d1,_0x4ae4b8){const _0x1678a0=_0x5b0fae;return this['_n'](_0x1678a0(0x258),[_0x1180d1,_0x4ae4b8]);}['hasUniqueViolations'](_0x2334ba,_0x226359){const _0x40e253=_0x5b0fae;return this['_n'](_0x40e253(0x182),[_0x2334ba,_0x226359]);}[_0x5b0fae(0x14b)](_0x34bcbc,_0x4f2a86,_0x52ee6d){const _0x2fbf91=_0x5b0fae;return this['_n'](_0x2fbf91(0x14b),[_0x34bcbc,_0x4f2a86,_0x52ee6d])??null;}[_0x5b0fae(0x384)](_0x185a0b){const _0x3b8c46=_0x5b0fae;return this['_n'](_0x3b8c46(0x384),[_0x185a0b])??null;}async['setSchema'](_0x7e17d0,_0x50039e){const _0xcb755d=_0x5b0fae;return this[_0xcb755d(0x2c8)](this['_n']('setSchema',[_0x7e17d0,_0x50039e]));}async[_0x5b0fae(0x3c9)](_0x30454d){const _0x58804d=_0x5b0fae;return this[_0x58804d(0x2c8)](this['_n'](_0x58804d(0x3c9),[_0x30454d]));}[_0x5b0fae(0x86c)](_0x1dbace,_0x3de40b){return this['_n']('getViolation',[_0x1dbace,_0x3de40b])??null;}[_0x5b0fae(0x302)](_0x5cf9f3){const _0x2cc803=_0x5b0fae;return this['_n'](_0x2cc803(0x302),[_0x5cf9f3]);}[_0x5b0fae(0x41e)](_0x57ce4d,_0x4dd452,_0x3b39c2){const _0x23b483=_0x5b0fae;return this['_n'](_0x23b483(0x41e),[_0x57ce4d,_0x4dd452,_0x3b39c2])??null;}[_0x5b0fae(0x486)](_0x3576c5){return this['_n']('listRefViolations',[_0x3576c5]);}async[_0x5b0fae(0x24c)](_0x2d5e06,_0x9dcc7e,_0x59999e){const _0x1dff10=_0x5b0fae;return this[_0x1dff10(0x2c8)](this['_n']('setTTL',[_0x2d5e06,_0x9dcc7e,_0x59999e]));}[_0x5b0fae(0x695)](_0x490f0e,_0x34b0d7){const _0x45e49e=_0x5b0fae;return this['_n'](_0x45e49e(0x695),[_0x490f0e,_0x34b0d7]);}async[_0x5b0fae(0x347)](_0x50f09e,_0x401942){const _0x2f6f7d=_0x5b0fae;return this['_wsettle'](this['_n'](_0x2f6f7d(0x347),[_0x50f09e,_0x401942]));}async[_0x5b0fae(0x56c)](_0xbf599){const _0xd5213e=_0x5b0fae;return this['_n'](_0xd5213e(0x56c),[_0xbf599]);}[_0x5b0fae(0x1c2)](_0x3f97a4={}){const _0x3fae06=_0x5b0fae;return this['_n'](_0x3fae06(0x1c2),[_0x3f97a4]);}['ttlStats'](_0x4e4db6){const _0x5148e5=_0x5b0fae;return this['_n'](_0x5148e5(0x4ec),[_0x4e4db6]);}async[_0x5b0fae(0x25b)](_0x402350,_0x37b8bd){const _0x5ab650=_0x5b0fae;return this[_0x5ab650(0x2c8)](this['_n'](_0x5ab650(0x25b),[_0x402350,_0x37b8bd]));}[_0x5b0fae(0x802)](_0x45e348){const _0x28dea9=_0x5b0fae;return this['_n'](_0x28dea9(0x802),[_0x45e348]);}async[_0x5b0fae(0x58b)](_0x11a63e){const _0x16b366=_0x5b0fae;return this[_0x16b366(0x2c8)](this['_n'](_0x16b366(0x58b),[_0x11a63e]));}async[_0x5b0fae(0x62c)](_0x31d897,_0xcfefaf,_0x280730,_0x4ed72d){const _0x4db011=_0x5b0fae,{batch:batch=null,batchSize:_0x13e478}=_0x5de396(_0x4ed72d);if(typeof _0x31d897!==_0x4db011(0x4c1)||!_0x31d897)throw new _0x50c0e8(_0x4db011(0x1c7),'BAD_PARAM');if(typeof _0xcfefaf!==_0x4db011(0x4c1)||!_0xcfefaf)throw new _0x50c0e8(_0x4db011(0x584),_0x4db011(0x229));if(_0x280730!=null&&typeof _0x280730!=='function')throw new _0x50c0e8(_0x4db011(0x6e5),'BAD_PARAM');if(batch!=null&&typeof batch!==_0x4db011(0x40e))throw new _0x50c0e8(_0x4db011(0x379),'BAD_PARAM');if(!_0x280730&&!batch)throw new _0x50c0e8(_0x4db011(0x368),_0x4db011(0x229));if(_0x13e478!==undefined&&!(Number[_0x4db011(0x32e)](_0x13e478)&&_0x13e478>0x0))throw new _0x50c0e8('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x4db011(0x229));const _0x277196=batch?async _0x1bda56=>(await batch(_0x1bda56))[_0x4db011(0x6f2)](_0x20151d=>_0x20151d instanceof Error?{'__error':!![],'message':_0x20151d[_0x4db011(0x806)]}:_0x20151d):null,_0x3678ae=_0x9ad447(this,_0x31d897,_0xcfefaf),_0x1912a6=this['_n'](_0x4db011(0x62c),[_0x31d897,_0xcfefaf,_0x280730?(_0x2a4bf9,_0x47f0fe)=>_0x3678ae(_0x280730,[_0x2a4bf9,_0x47f0fe]):null,{'batch':_0x277196?_0x27cbee=>_0x3678ae(_0x277196,[_0x27cbee]):null,'batchSize':_0x13e478}]);return()=>this['_n'](_0x4db011(0x27d),[_0x1912a6]);}async[_0x5b0fae(0x5a1)](_0x56b180,_0x5c21df){return this['_n']('unresolveField',[_0x56b180,_0x5c21df]);}[_0x5b0fae(0x4b3)](_0x1eabac){const _0x279396=_0x5b0fae;return this['_n'](_0x279396(0x4b3),[_0x1eabac]);}async[_0x5b0fae(0x776)](_0x13b6d0,_0x514808,_0x1e2d9c,_0x505b01){const _0x451172=_0x5b0fae;return this[_0x451172(0x555)]['_callMacro'](_0x451172(0x53c),this[_0x451172(0x885)],_0x451172(0x776),[_0x13b6d0,_0x514808,_0x1e2d9c,_0x505b01],![]);}async[_0x5b0fae(0x20d)](_0x178d3a,_0x4a8c35,_0x7513bd){const _0x54ef5d=_0x5b0fae;return this[_0x54ef5d(0x555)][_0x54ef5d(0x421)](_0x54ef5d(0x53c),this[_0x54ef5d(0x885)],'readFieldMany',[_0x178d3a,_0x4a8c35,_0x7513bd],![]);}[_0x5b0fae(0x6a4)](){}[_0x5b0fae(0x4d0)](_0x4dc33f,_0x335a7a,_0x4aa9ea,_0xca4a39={},_0x508145={}){const _0x422e27=_0x5b0fae;return this[_0x422e27(0x555)]['_call']('fts',null,_0x422e27(0x4d0),[_0x4dc33f,_0x335a7a,_0x4aa9ea,_0xca4a39,_0x508145,this['name']],![]);}get['fts'](){const _0x3f9830=_0x5b0fae;return this[_0x3f9830(0x555)]['fts'];}[_0x5b0fae(0x21d)](){const _0x1709e3=_0x5b0fae;return this[_0x1709e3(0x555)][_0x1709e3(0x82b)](_0x1709e3(0x53c),this[_0x1709e3(0x885)],_0x1709e3(0x21d),[],![]);}[_0x5b0fae(0x2f9)](){const _0x34de05=_0x5b0fae;return this[_0x34de05(0x555)][_0x34de05(0x2f9)]();}[_0x5b0fae(0x552)](){const _0x14924e=_0x5b0fae;return this[_0x14924e(0x555)][_0x14924e(0x82b)](_0x14924e(0x53c),this[_0x14924e(0x885)],_0x14924e(0x552),[],![]);}[_0x5b0fae(0x15e)](){}get['locks'](){const _0x2b9473=_0x5b0fae;return this[_0x2b9473(0x674)]||(this[_0x2b9473(0x674)]=new(requireLock())[(_0x2b9473(0x288))](this[_0x2b9473(0x555)],this['name'],'env'));}[_0x5b0fae(0x24f)](){const _0x4df152=_0x5b0fae;return this['okdb'][_0x4df152(0x82b)]('env',this[_0x4df152(0x885)],_0x4df152(0x24f),[],![]);}['_registerType'](_0x5d1c6a){const _0x510c46=_0x5b0fae;this['_n'](_0x510c46(0x4eb),[_0x5d1c6a]);}[_0x5b0fae(0x50f)](_0x4de131){const _0x2d8666=_0x5b0fae;this['_n'](_0x2d8666(0x5d0),[_0x4de131]);}['_ttlState'](){return this['_n']('ttlState',[]);}['_ttlCompositeKey'](_0x565701,_0x584bf5){return _0x565701+'\x09'+_0x584bf5;}['_ttlParseComposite'](_0x485c49){const _0x290c5a=_0x5b0fae,_0x4f134d=_0x485c49['indexOf']('\x09');return{'type':_0x485c49[_0x290c5a(0x4e8)](0x0,_0x4f134d),'key':_0x485c49[_0x290c5a(0x4e8)](_0x4f134d+0x1)};}get[_0x5b0fae(0x34b)](){const _0x1bfe4d=_0x5b0fae;if(!this[_0x1bfe4d(0x5be)]()['enabled'])return null;return this[_0x1bfe4d(0x673)]||(this[_0x1bfe4d(0x673)]=new _0x13e6a4(this,'~ttl:key'));}get[_0x5b0fae(0x295)](){const _0x585fa1=_0x5b0fae;if(!this[_0x585fa1(0x5be)]()[_0x585fa1(0x25c)])return null;return this[_0x585fa1(0x6bf)]||(this['__ttlByExpiry']=new _0x13e6a4(this,_0x585fa1(0x645),{'dupSort':!![]}));}[_0x5b0fae(0x85c)](_0x21152b,_0x28b1b2,_0x3e4dff){const _0x3352be=_0x5b0fae;this['_n'](_0x3352be(0x590),[_0x21152b,_0x28b1b2,_0x3e4dff]);}['_isExpired'](_0x4e54ad,_0x528ebc){const _0x3e7ce7=_0x5b0fae,_0x57abd7=this['_ttlByKey']?.['get'](this[_0x3e7ce7(0x42c)](_0x4e54ad,_0x528ebc));return _0x57abd7!=null&&_0x57abd7<=Date[_0x3e7ce7(0x38b)]();}get[_0x5b0fae(0x5ea)](){const _0x4e896d=_0x5b0fae;return this[_0x4e896d(0x5be)]()[_0x4e896d(0x468)]??null;}get['_ttlBackoffUntil'](){return this['_ttlState']()['backoffUntil']||0x0;}get[_0x5b0fae(0x25d)](){return![];}['_scheduleTTLSweep'](){}async[_0x5b0fae(0x263)](_0x37194c,_0x153d04){const _0x55ed46=_0x5b0fae;if(this[_0x55ed46(0x580)]){const {OKDBError:_0xfdb3f2}=requireErrors();throw new _0xfdb3f2(_0x55ed46(0x2f5),_0x55ed46(0x5b9));}this['_rebuilding']=!![];try{return await this[_0x55ed46(0x555)][_0x55ed46(0x421)](_0x55ed46(0x53c),this[_0x55ed46(0x885)],_0x37194c,[_0x153d04],!![]);}finally{this[_0x55ed46(0x580)]=![];}}async[_0x5b0fae(0x2b0)](_0x3aeddd={}){const _0x4a8471=_0x5b0fae;return this['_rebuild'](_0x4a8471(0x2b0),_0x3aeddd);}async[_0x5b0fae(0x387)](_0x28d69b={}){return this['_rebuild']('repair',_0x28d69b);}}_0x3c0f75[_0x5b0fae(0x2e0)]=_0x190aa1;function _0x115685(_0x4de8ab){const _0xfc4855=_0x5b0fae;if(!_0x4de8ab||typeof _0x4de8ab!==_0xfc4855(0x6f7))return![];for(const _0x4ed7cf of Object[_0xfc4855(0x23b)](_0x4de8ab)){const _0x18ef05=_0x4de8ab[_0x4ed7cf];if(_0x18ef05&&typeof _0x18ef05==='object'&&(_0x18ef05['$near']||_0x18ef05[_0xfc4855(0x7f0)]))return!![];}return![];}function _0x4e4015(_0x4bda71){const _0x55ee47=_0x5b0fae;if(!_0x4bda71||typeof _0x4bda71!==_0x55ee47(0x6f7))return{};const _0x50d08a={};for(const _0x39cf41 of Object[_0x55ee47(0x23b)](_0x4bda71)){if(_0x39cf41==='transaction'||_0x39cf41==='snapshot')continue;_0x50d08a[_0x39cf41]=_0x4bda71[_0x39cf41];}return _0x50d08a;}function _0x21d722(_0x21e389){const _0x43d406=_0x5b0fae;if(!_0x21e389||typeof _0x21e389!=='object')return{};const _0x12ad00={};for(const _0x1ccd25 of Object[_0x43d406(0x23b)](_0x21e389)){if(typeof _0x21e389[_0x1ccd25]===_0x43d406(0x40e))continue;_0x12ad00[_0x1ccd25]=_0x21e389[_0x1ccd25];}return _0x12ad00;}return env={'OKDBEnv':_0x3c0f75,'HIGH_SENTINEL':_0x190aa1},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x5160cb}=requireErrors();function _0x42fd40(_0x184e09){const _0x5e45a0=_0x2b11f9=>{throw new _0x5160cb(_0x184e09,_0x2b11f9);};return new Proxy(function(){},{'get'(_0x58d213,_0x261685){const _0x355a88=_0x3f13;if(typeof _0x261685===_0x355a88(0x640)||_0x261685===_0x355a88(0x1df)||_0x261685===_0x355a88(0x644)||_0x261685===_0x355a88(0x850))return undefined;if(_0x261685===_0x355a88(0x679))return _0x184e09;return(..._0x5ca4c4)=>_0x5e45a0(_0x184e09+'.'+String(_0x261685));},'apply'(){_0x5e45a0(_0x184e09);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x42fd40},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x2717f7=_0x1ade1a;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x2fd304(_0x1a2272,_0x1e9bc8={}){const _0x25a12a=_0x3f13,_0x6728d9=[];let _0x3c0b9a=![];_0x1a2272[_0x25a12a(0x1d9)]('/*')&&(_0x3c0b9a=!![],_0x1a2272=_0x1a2272[_0x25a12a(0x4e8)](0x0,-0x2),_0x6728d9['push']('*'));let _0x447797=_0x1a2272[_0x25a12a(0x2a6)](/\/+$/,'')['replace'](/\[([^\]]*)\]/g,(_0x1cdbb9,_0x2cecf9)=>{const _0x418a9d=_0x25a12a,_0xbb8184=_0x2cecf9[_0x418a9d(0x2a6)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x5a0faf,_0x3b7a33)=>{const _0xce4b5=_0x418a9d;return _0x6728d9[_0xce4b5(0x2e6)](_0x3b7a33),_0xce4b5(0x416);});return _0x418a9d(0x7d1)+_0xbb8184+')?';})[_0x25a12a(0x2a6)](/\/:(\w+)/g,(_0x431101,_0x1028ae)=>{const _0x3257d2=_0x25a12a;return _0x6728d9['push'](_0x1028ae),_0x3257d2(0x416);});if(_0x447797==='')_0x447797='/';return{'keys':_0x6728d9,'defaults':_0x1e9bc8||{},'wildcard':_0x3c0b9a,'regex':new RegExp('^'+_0x447797+(_0x3c0b9a?_0x25a12a(0x448):'')+_0x25a12a(0x670))};}const _0x52e46c=require$$0$3,{PassThrough:_0x18fa59}=require$$1;function _0x77dbe0(_0x164964){const _0x276d1c=_0x3f13,_0x2d9b52=_0x164964[_0x276d1c(0x69b)](':'),_0x2ffff7=_0x164964[_0x276d1c(0x4e8)](0x0,_0x2d9b52)[_0x276d1c(0x2a6)](/^\[|\]$/g,'');return{'address':_0x2ffff7,'family':_0x2ffff7[_0x276d1c(0x2bc)](':')?_0x276d1c(0x2ae):'IPv4','port':Number(_0x164964[_0x276d1c(0x4e8)](_0x2d9b52+0x1))};}class _0x4efedb extends _0x52e46c[_0x2717f7(0x558)]{constructor(_0x55d2a2,_0x287003){const _0x3caba2=_0x2717f7;super(),this['_http']=_0x55d2a2,this[_0x3caba2(0x178)]=_0x77dbe0(_0x287003),this['listening']=!![],this[_0x3caba2(0x770)]=setInterval(()=>{},0x7fffffff);}get[_0x2717f7(0x660)](){const _0x276927=_0x2717f7;return this[_0x276927(0x649)];}set[_0x2717f7(0x660)](_0x92d9c9){const _0x3dccfa=_0x2717f7;this[_0x3dccfa(0x649)]=_0x92d9c9;}['address'](){return this['listening']?{...this['_addr']}:null;}[_0x2717f7(0x613)](){const _0x46aa83=_0x2717f7;if(this[_0x46aa83(0x770)])clearInterval(this['_keepAlive']);this['_keepAlive']=null;}[_0x2717f7(0x469)](_0x4c45a8){const _0x429ee7=_0x2717f7;this['_release']();const _0x27dadd=this['_http'][_0x429ee7(0x469)]();if(_0x4c45a8)_0x27dadd['then'](()=>_0x4c45a8(),_0x4c45a8);return this;}[_0x2717f7(0x3e4)](){return this['_keepAlive']?.['ref'](),this;}[_0x2717f7(0x7ed)](){const _0x3ad177=_0x2717f7;return this[_0x3ad177(0x770)]?.[_0x3ad177(0x7ed)](),this;}}class _0x3f11e9{constructor(_0xe445a1){const _0x147a95=_0x2717f7;this[_0x147a95(0x555)]=_0xe445a1,this['servers']=[],this[_0x147a95(0x470)]={'cookieName':'okdb_session'};}get[_0x2717f7(0x6b8)](){const _0x30016a=_0x2717f7;return this[_0x30016a(0x67b)][0x0]||null;}['_n'](_0x177921,_0x3958b7=[]){const _0x312f2b=_0x2717f7;return this[_0x312f2b(0x555)][_0x312f2b(0x421)]('http',null,_0x177921,_0x3958b7,!![]);}async[_0x2717f7(0x1de)](_0x5d6cc8,_0x20b696,_0x2207a0={},_0x291d8b={}){const _0x37a8b2=_0x2717f7;let _0x12640a=await this['_n'](_0x37a8b2(0x1de),[_0x5d6cc8,_0x20b696,_0x2207a0,_0x291d8b]),_0x45e7f1=0x0;return _0x12640a=await this['_settle'](_0x12640a,_0x45e7f1),_0x12640a;}async[_0x2717f7(0x73a)](_0x39bebf,_0x456e23){const _0x52fe52=_0x2717f7;while(_0x39bebf&&typeof _0x39bebf===_0x52fe52(0x6f7)&&_0x39bebf[_0x52fe52(0x177)]!==undefined){await new Promise(_0x47c36a=>setTimeout(_0x47c36a,_0x456e23<0x5?0x1:0x5)),_0x456e23++,_0x39bebf=await this['_n']('handleResult',[_0x39bebf['$pending']]);}if(_0x39bebf&&_0x39bebf[_0x52fe52(0x641)]&&typeof _0x39bebf[_0x52fe52(0x641)]==='object'&&_0x39bebf[_0x52fe52(0x641)][_0x52fe52(0x35d)]!==undefined)_0x39bebf[_0x52fe52(0x641)]=this['_stream'](_0x39bebf[_0x52fe52(0x641)]['$streamId']);return _0x39bebf;}[_0x2717f7(0x1be)](_0x275e96){const _0x280bdd=_0x2717f7,_0x603035=new _0x18fa59();let _0x4e6840=![];const _0x43ca28=()=>{const _0x1abbb0=_0x3f13;if(_0x4e6840)return;_0x4e6840=!![],clearTimeout(_0x3f3ff2),setImmediate(()=>this[_0x1abbb0(0x555)][_0x1abbb0(0x232)]&&this[_0x1abbb0(0x555)][_0x1abbb0(0x82b)](_0x1abbb0(0x740),null,_0x1abbb0(0x197),[_0x275e96],!![]));};let _0x3f3ff2=null;const _0x59726e=()=>{const _0x5ddba6=_0x3f13;if(_0x4e6840)return;let _0x2cd5f6;try{_0x2cd5f6=this[_0x5ddba6(0x555)][_0x5ddba6(0x82b)](_0x5ddba6(0x740),null,_0x5ddba6(0x7a4),[_0x275e96],!![]);}catch{_0x2cd5f6={'chunks':[],'end':!![]};}for(const _0x5829ba of _0x2cd5f6[_0x5ddba6(0x31f)])_0x603035[_0x5ddba6(0x465)](_0x5829ba);if(_0x2cd5f6[_0x5ddba6(0x5a6)]){_0x4e6840=!![],_0x603035[_0x5ddba6(0x5a6)]();return;}_0x3f3ff2=setTimeout(_0x59726e,_0x2cd5f6[_0x5ddba6(0x31f)]['length']?0x0:0xa);};_0x603035['on'](_0x280bdd(0x469),_0x43ca28),_0x59726e();if(!_0x4e6840)_0x59726e();if(_0x4e6840)_0x603035[_0x280bdd(0x6bb)]();else{if(!_0x3f3ff2)_0x3f3ff2=setTimeout(_0x59726e,0x0);}return _0x603035;}[_0x2717f7(0x76e)](_0x1ae9eb,_0xc3733e,_0x2718d1,_0x2b546b={}){const _0x50d33f=_0x2717f7;return this[_0x50d33f(0x555)]['_call'](_0x50d33f(0x740),null,'add',[_0x1ae9eb,_0xc3733e,_0x2718d1,_0x2b546b,![]],!![]),this;}['addRaw'](_0x247fe5,_0x316fd8,_0x40080d,_0x25613e={}){const _0x50f44e=_0x2717f7;return this[_0x50f44e(0x555)][_0x50f44e(0x82b)](_0x50f44e(0x740),null,_0x50f44e(0x76e),[_0x247fe5,_0x316fd8,_0x40080d,_0x25613e,!![]],!![]),this;}[_0x2717f7(0x48c)](_0x4bbb78,_0x32a401){const _0x40be6e=_0x2717f7,_0x326b32=async _0x266f41=>{const _0x5c649f=_0x3f13,_0x157210={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x93e8a8={'status'(_0x45a7ed){return _0x157210['status']=_0x45a7ed,_0x93e8a8;},'setHeader'(_0x5c1499,_0x3af9bb){const _0x2005b4=_0x3f13;_0x157210[_0x2005b4(0x238)][_0x2005b4(0x2e6)]([_0x5c1499,_0x3af9bb]);},'send'(_0x2d3482){const _0x460f34=_0x3f13;_0x157210[_0x460f34(0x748)]=!![],_0x157210[_0x460f34(0x641)]=_0x2d3482;}};_0x266f41[_0x5c649f(0x3cb)]={'remoteAddress':_0x266f41['remoteAddress']??null};const _0x12c09e=await _0x32a401(_0x266f41,_0x93e8a8);return{'allowed':_0x12c09e!==![],..._0x157210};};this[_0x40be6e(0x555)][_0x40be6e(0x82b)](_0x40be6e(0x740),null,_0x40be6e(0x48c),[_0x491600=>!!_0x4bbb78(_0x491600),_0x326b32],!![]);}[_0x2717f7(0x308)](_0x10cfa9){const _0x2be845=_0x2717f7,_0x11c501=async _0x479f53=>{const _0x258d05=_0x3f13,_0x2fa1b9={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x3f4d98=![];const _0x210909={'status'(_0xb21d3b){return _0x2fa1b9['status']=_0xb21d3b,_0x210909;},'setHeader'(_0x5abded,_0x2add41){const _0x144095=_0x3f13;_0x2fa1b9[_0x144095(0x238)]['push']([_0x5abded,_0x2add41]);},'send'(_0x15fb46){const _0x336620=_0x3f13;_0x2fa1b9['hasBody']=!![],_0x2fa1b9[_0x336620(0x641)]=_0x15fb46;}};return _0x479f53[_0x258d05(0x3cb)]={'remoteAddress':_0x479f53[_0x258d05(0x37c)]??null},await _0x10cfa9(_0x479f53,_0x210909,async()=>{_0x3f4d98=!![];}),{'allowed':_0x3f4d98,..._0x2fa1b9};};return this['okdb'][_0x2be845(0x82b)](_0x2be845(0x740),null,_0x2be845(0x308),[_0x11c501],!![]),this;}get[_0x2717f7(0x7f7)](){const _0x5da43c=_0x2717f7;return this[_0x5da43c(0x555)]['_call'](_0x5da43c(0x740),null,_0x5da43c(0x1c6),[],![]);}set[_0x2717f7(0x7f7)](_0x1712d3){const _0x345064=_0x2717f7;this[_0x345064(0x555)]['_call'](_0x345064(0x740),null,_0x345064(0x38e),[Number(_0x1712d3)],![]);}[_0x2717f7(0x63c)](_0x537ca1,_0x2d9a01,_0x284a75={}){const _0x28b773=_0x2717f7,_0x3ad9ad=new Map(),_0x44f620=(_0x1a3e19,_0x56f1f2)=>this[_0x28b773(0x555)][_0x28b773(0x82b)](_0x28b773(0x740),null,_0x1a3e19,_0x56f1f2,![]),_0x24b1e9=_0x1732f0=>{const _0x4df25f=_0x28b773,{connId:_0x5094ac}=_0x1732f0;if(_0x1732f0['cleanup']){const _0x5ba826=_0x3ad9ad[_0x4df25f(0x616)](_0x5094ac);_0x3ad9ad[_0x4df25f(0x727)](_0x5094ac);if(typeof _0x5ba826===_0x4df25f(0x40e))_0x5ba826();return;}const _0x11704c=(_0x3b8953,_0x3c2067,_0x26cff5={})=>{try{_0x44f620('sseSend',[_0x5094ac,_0x3b8953,_0x3c2067,_0x26cff5]);}catch{}},_0x1910c6=()=>{const _0x5b2944=_0x4df25f;try{_0x44f620(_0x5b2944(0x570),[_0x5094ac]);}catch{}},_0x36ba1b=(_0x42292a,_0x271cf8)=>_0x44f620(_0x4df25f(0x65b),[_0x5094ac,String(_0x42292a),String(_0x271cf8)]),_0x3b6b73={'auth':{'open':_0x1732f0[_0x4df25f(0x875)],'isAuthenticated':_0x1732f0[_0x4df25f(0x149)]}},_0xcd972a=_0x2d9a01({'send':_0x11704c,'close':_0x1910c6,'params':_0x1732f0[_0x4df25f(0x3a7)]??{},'query':_0x1732f0['query']??{},'headers':_0x1732f0[_0x4df25f(0x238)]??{},'context':_0x3b6b73,'setHeader':_0x36ba1b});_0x3ad9ad[_0x4df25f(0x488)](_0x5094ac,_0xcd972a);};return this['okdb'][_0x28b773(0x82b)](_0x28b773(0x740),null,_0x28b773(0x63c),[_0x537ca1,_0x24b1e9,_0x284a75],!![]),this;}get[_0x2717f7(0x19e)](){const _0xd87b21=_0x2717f7;return this[_0xd87b21(0x756)]();}[_0x2717f7(0x756)](){const _0x589262=_0x2717f7;return this['okdb']['_call'](_0x589262(0x740),null,_0x589262(0x756),[],![])[_0x589262(0x6f2)](_0x281e7a=>({..._0x281e7a,'matcher':_0x2fd304(_0x281e7a[_0x589262(0x72d)],_0x281e7a[_0x589262(0x6cc)])}));}[_0x2717f7(0x72e)](_0x8efbe2,_0x565e40){const _0x30ebf8=_0x2717f7;return this[_0x30ebf8(0x555)]['_call'](_0x30ebf8(0x740),null,'validateRouteInput',[_0x8efbe2,_0x565e40],![]);}['listen'](_0x533d4e,_0x482ded={}){const _0x517126=_0x2717f7;if(typeof _0x482ded===_0x517126(0x4c1)||Array[_0x517126(0x4b6)](_0x482ded))_0x482ded={'host':_0x482ded};_0x482ded=_0x482ded??{};if((Number(_0x482ded[_0x517126(0x543)])||0x0)>=0x1||_0x482ded[_0x517126(0x2fe)]!=null||_0x482ded['primaryOkdb']!=null){const _0x21074d=new Error('http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20'+_0x517126(0x701)+_0x517126(0x652)+_0x517126(0x2c5));_0x21074d['code']=_0x517126(0x3f2);throw _0x21074d;}if(this['servers'][_0x517126(0x479)])throw new Error('HTTP\x20server\x20already\x20running');const _0x52b930=_0x482ded[_0x517126(0x14f)]==null?[undefined]:[][_0x517126(0x45c)](_0x482ded[_0x517126(0x14f)]);if(!_0x52b930[_0x517126(0x479)]||_0x52b930[_0x517126(0x737)](_0x3e300d=>_0x3e300d!==undefined&&(typeof _0x3e300d!==_0x517126(0x4c1)||!_0x3e300d))){const _0x4576c7=new Error(_0x517126(0x622));_0x4576c7['code']=_0x517126(0x4de);throw _0x4576c7;}const _0x551e88=require$$2[_0x517126(0x36b)]?{..._0x482ded,'reuseport':!![]}:_0x482ded,_0x5a08a7=this[_0x517126(0x555)][_0x517126(0x82b)](_0x517126(0x740),null,_0x517126(0x5d6),[_0x533d4e,_0x551e88],!![]),_0x4c9bbf=_0x5a08a7[_0x517126(0x655)]??_0x533d4e,_0x44e05f=_0x482ded['host']==null?':'+_0x4c9bbf:_0x52b930['map'](_0x1f2a25=>(_0x1f2a25[_0x517126(0x2bc)](':')?'['+_0x1f2a25+']':_0x1f2a25)+':'+_0x4c9bbf)[_0x517126(0x6a2)](',\x20');try{this[_0x517126(0x555)]['processes'][_0x517126(0x1ca)](_0x44e05f);if(!require(_0x517126(0x452))[_0x517126(0x36b)])this[_0x517126(0x555)]['processes']['register']({'kind':'standalone','listenAddr':_0x44e05f});}catch{}this[_0x517126(0x67b)]=_0x5a08a7[_0x517126(0x48e)][_0x517126(0x6f2)](_0x431a6c=>new _0x4efedb(this,_0x431a6c));const _0x47c516=this[_0x517126(0x67b)][0x0];return process[_0x517126(0x7b2)](()=>this['servers'][_0x517126(0x39f)](_0x1f7be1=>_0x1f7be1[_0x517126(0x7bb)](_0x517126(0x660)))),_0x47c516;}async['close'](_0x558c2a={}){const _0x3b1f4c=_0x2717f7,_0x110981=this['servers'];this[_0x3b1f4c(0x67b)]=[];if(require$$2[_0x3b1f4c(0x36b)]&&!process[_0x3b1f4c(0x887)]&&_0x558c2a[_0x3b1f4c(0x705)]==null)_0x558c2a={..._0x558c2a,'forceAfterMs':Infinity};if(_0x110981[_0x3b1f4c(0x479)]){const _0x59cc29=_0x558c2a['forceAfterMs']===Infinity?Infinity:Number['isFinite'](_0x558c2a[_0x3b1f4c(0x705)])?Math['max'](0x0,_0x558c2a[_0x3b1f4c(0x705)]):0x3e8,_0x226b51=Date[_0x3b1f4c(0x38b)]();while(this[_0x3b1f4c(0x555)][_0x3b1f4c(0x82b)](_0x3b1f4c(0x740),null,_0x3b1f4c(0x393),[],!![])>0x0&&Date[_0x3b1f4c(0x38b)]()-_0x226b51<_0x59cc29)await new Promise(_0x376d0f=>setTimeout(_0x376d0f,0x5));_0x558c2a={..._0x558c2a,'forceAfterMs':_0x59cc29===Infinity?0x3e8:Math[_0x3b1f4c(0x3c5)](0x0,_0x59cc29-(Date[_0x3b1f4c(0x38b)]()-_0x226b51))};}await this['_n']('close',[_0x558c2a]);for(const _0x508e64 of _0x110981){_0x508e64['_release'](),_0x508e64[_0x3b1f4c(0x660)]=![],_0x508e64[_0x3b1f4c(0x7bb)]('close');}}}return http={'OKDBHttp':_0x3f11e9},http;}var fts,hasRequiredFts;function requireFts(){const _0x44ebb5=_0x1ade1a;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x4dbf31=_0x465571=>(_0x465571&&typeof _0x465571===_0x44ebb5(0x6f7)?_0x465571[_0x44ebb5(0x885)]:_0x465571)??_0x44ebb5(0x693);class _0x26a0f5{constructor(_0x17eda2){this['okdb']=_0x17eda2;}['_n'](_0xe8cd30,_0x1d1572,_0x4194bd=![]){const _0x511459=_0x44ebb5;return this['okdb'][_0x511459(0x82b)](_0x511459(0x60e),null,_0xe8cd30,_0x1d1572,_0x4194bd);}[_0x44ebb5(0x47b)](_0x4c9a78,_0x1f28cf){const _0x128d02=_0x44ebb5;return this[_0x128d02(0x555)][_0x128d02(0x421)](_0x128d02(0x60e),null,_0x4c9a78,_0x1f28cf,!![]);}get[_0x44ebb5(0x47a)](){const _0x25b009=this,_0x546db7=_0x16eda6=>{const _0x347833=_0x3f13,_0x3f7bb9=_0x16eda6[_0x347833(0x789)](':'),_0x1077d8=_0x16eda6['slice'](0x0,_0x3f7bb9),_0x214cbb=_0x25b009[_0x347833(0x555)][_0x347833(0x2b2)][_0x347833(0x616)](_0x1077d8);if(!_0x214cbb)return undefined;const _0x2b35a8=_0x214cbb[_0x347833(0x548)][_0x347833(0x3f8)]()['find'](_0x163b9e=>_0x163b9e['cursorKey']===_0x347833(0x31b)+_0x16eda6);if(!_0x2b35a8)return undefined;return _0x214cbb[_0x347833(0x548)]['_stopFor'](_0x2b35a8['id'],_0x2b35a8['cursorKey']);};return{'get':_0x546db7,'has':_0x15a7a8=>!!_0x546db7(_0x15a7a8)};}get['_pendingOps'](){return[];}['_envIndexDb'](){const _0x3dd2f6=_0x44ebb5,{RawDb:_0x16e72e}=requireRawdb();return new _0x16e72e(this['okdb'][_0x3dd2f6(0x70a)],_0x3dd2f6(0x6de));}[_0x44ebb5(0x4a8)](_0x3aff2e,_0x1a9acc,_0x54b60b){const _0x4f6375=_0x44ebb5;return this['_n'](_0x4f6375(0x4a8),[_0x3aff2e,_0x1a9acc,_0x4dbf31(_0x54b60b)]);}[_0x44ebb5(0x371)](_0x9d5dd0,_0x304ebf,_0x582157){return this['_n']('status',[_0x9d5dd0,_0x304ebf,_0x4dbf31(_0x582157)]);}[_0x44ebb5(0x3f8)](_0x3be102,_0x37e105){return this['_n']('list',[_0x3be102,_0x4dbf31(_0x37e105)]);}async[_0x44ebb5(0x57d)](_0x2074cb,_0x5bf146,_0x295c05,_0xa29c72,_0x50fecf){const _0x56cd97=_0x44ebb5,_0x498129=(_0x4b901e,_0x2d401e)=>this['okdb']['_callMacro']('fts',null,_0x4b901e,_0x2d401e,!![],![]),_0x6f5ec4=Date[_0x56cd97(0x38b)]()+0x1d4c0;let _0x526ddd=_0x2074cb,_0x1f953c=_0x5bf146;for(;;){try{return await _0x498129(_0x526ddd,_0x1f953c);}catch(_0x574cd4){if(_0x574cd4[_0x56cd97(0x431)]===_0x56cd97(0x58d)){_0x526ddd=_0x56cd97(0x2b5),_0x1f953c=[_0x295c05,_0xa29c72,_0x4dbf31(_0x50fecf)];if(_0x574cd4['details']&&_0x574cd4[_0x56cd97(0x7fa)][_0x56cd97(0x56e)])await new Promise(_0x4f8d9f=>setTimeout(_0x4f8d9f,0x2));continue;}if(_0x574cd4['code']!==_0x56cd97(0x3bc)||Date['now']()>=_0x6f5ec4)throw _0x574cd4;}await new Promise(_0x1b1fbd=>setTimeout(_0x1b1fbd,0x5)),_0x526ddd=_0x56cd97(0x2d1),_0x1f953c=[_0x295c05,_0xa29c72,!![],_0x4dbf31(_0x50fecf)];}}async[_0x44ebb5(0x6f8)](_0x2cd782,_0x44b9c5,_0x302be8,_0x9cfa47,_0x47ac87){const _0x7cefe8=_0x44ebb5;return this[_0x7cefe8(0x57d)]('register',[_0x2cd782,_0x44b9c5,_0x302be8,_0x9cfa47,_0x4dbf31(_0x47ac87)],_0x2cd782,_0x44b9c5,_0x47ac87);}async['drop'](_0x2f04f2,_0x9b883b,_0x2086ef){const _0x4cf826=_0x44ebb5;return this[_0x4cf826(0x47b)](_0x4cf826(0x332),[_0x2f04f2,_0x9b883b,_0x4dbf31(_0x2086ef)]);}async[_0x44ebb5(0x4e2)](_0x88c187,_0x27d1ab,_0x33dcc7,_0x5b2625){const _0x226da4=_0x44ebb5;return this[_0x226da4(0x57d)]('ensure',[_0x88c187,_0x27d1ab,_0x33dcc7,_0x4dbf31(_0x5b2625)],_0x88c187,_0x27d1ab,_0x5b2625);}async['reset'](_0x3b4050,_0x134d11,_0x40dd7b,_0x36fab3){const _0x458df4=_0x44ebb5;return this[_0x458df4(0x57d)](_0x458df4(0x2d1),[_0x3b4050,_0x134d11,_0x40dd7b,_0x4dbf31(_0x36fab3)],_0x3b4050,_0x134d11,_0x36fab3);}async[_0x44ebb5(0x667)](_0x505ac5,_0x852ab0,_0x51b4cf,_0x38ccb3=0x1d4c0){const _0x3052be=_0x44ebb5,_0x3e795d=Date[_0x3052be(0x38b)]()+_0x38ccb3;for(;;){try{return await this[_0x3052be(0x47b)](_0x505ac5,[..._0x852ab0,0x1]);}catch(_0x4768c8){if(_0x4768c8[_0x3052be(0x431)]!==_0x51b4cf||Date[_0x3052be(0x38b)]()>=_0x3e795d)throw _0x4768c8;}await new Promise(_0xe3b6cb=>setTimeout(_0xe3b6cb,0x2));}}async[_0x44ebb5(0x5ef)](_0x589480,_0x4b391a,_0x4734ee){const _0x512cc7=_0x44ebb5;return this[_0x512cc7(0x667)](_0x512cc7(0x5ef),[_0x589480,null,_0x4dbf31(_0x4734ee)],'FTS_READY_TIMEOUT');}async[_0x44ebb5(0x5c4)](_0x7923a3,_0x9c4ae6){const _0x269ce3=_0x44ebb5;return this[_0x269ce3(0x667)](_0x269ce3(0x5c4),[_0x7923a3,_0x4dbf31(_0x9c4ae6)],_0x269ce3(0x2b1));}async['compact'](_0xca369,_0x5cd90d){const _0x7d2143=_0x44ebb5;return this['_nm'](_0x7d2143(0x2b0),[_0xca369,_0x4dbf31(_0x5cd90d)]);}async[_0x44ebb5(0x58a)](_0x743ad7={}){const _0x534fc7=_0x44ebb5;return this[_0x534fc7(0x47b)]('process',[_0x743ad7]);}async[_0x44ebb5(0x780)](_0xcc829b){const _0x4f0ed6=_0x44ebb5;return this[_0x4f0ed6(0x47b)](_0x4f0ed6(0x780),[_0x4dbf31(_0xcc829b)]);}[_0x44ebb5(0x7c5)](_0x23f0ee){const _0x15c5a8=_0x44ebb5;return this['_n'](_0x15c5a8(0x7c5),[_0x4dbf31(_0x23f0ee)]);}['search'](_0x3cd0a3,_0x48bb19,_0x2da7b7,_0x235c67,_0x2132ad){return this['_n']('search',[_0x3cd0a3,_0x48bb19,_0x2da7b7,_0x235c67||{},_0x4dbf31(_0x2132ad)]);}[_0x44ebb5(0x2cc)](_0x17ceec,_0x59082d,_0x4a5889,_0x2d5c30,_0x357a19,_0x2afda4){const _0x340b58=_0x44ebb5;return this['_n'](_0x340b58(0x2cc),[_0x17ceec,_0x59082d,_0x4a5889,_0x2d5c30||{},_0x4dbf31(_0x357a19),_0x2afda4]);}['_searchWithScores'](_0x30763d,_0x119101,_0x4d237f,_0x55d86f,_0xdbe4a1){return this['_n']('searchWithScores',[_0x30763d,_0x119101,_0x4d237f,_0x55d86f||{},_0x4dbf31(_0xdbe4a1)]);}['listFtsEnvs'](){return this['_n']('listFtsEnvs',[]);}async[_0x44ebb5(0x303)](){const _0x29248d=_0x44ebb5;return this[_0x29248d(0x47b)](_0x29248d(0x303),[]);}}return fts={'OKDBFts':_0x26a0f5},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x39df8a=_0x1ade1a;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x642ead,invalidArgument:_0x20c91a}=requireErrors();requireBridge();const _0x4a9e25=Object[_0x39df8a(0x493)]({'EMBEDDER':_0x39df8a(0x6ff),'INDEXER':_0x39df8a(0x1e4),'SEARCH':_0x39df8a(0x205),'WORKER':'embed-worker'}),_0x25810b=_0x408c27=>typeof _0x408c27===_0x39df8a(0x4c1)||_0x408c27==null?_0x408c27:Array[_0x39df8a(0x5f7)](_0x408c27);class _0x94e222{constructor(_0x411741){const _0x45bb82=_0x39df8a;this[_0x45bb82(0x555)]=_0x411741,this['_jsFactories']=new Map(),this[_0x45bb82(0x818)]=new Map(),this[_0x45bb82(0x66f)]=new Map();}['_n'](_0x1b50d8,_0x3cc263=[],_0x5992c9=!![]){const _0x1a784b=_0x39df8a;return this[_0x1a784b(0x555)][_0x1a784b(0x82b)](_0x1a784b(0x5cf),null,_0x1b50d8,_0x3cc263,_0x5992c9);}['_nm'](_0x2ca4e4,_0x4c5aea=[]){const _0x183369=_0x39df8a;return this[_0x183369(0x555)][_0x183369(0x421)]('embeddings',null,_0x2ca4e4,_0x4c5aea,!![]);}[_0x39df8a(0x2ac)](_0xa67202){const _0x189e57=_0x39df8a;return _0xa67202?this[_0x189e57(0x555)][_0x189e57(0x5a4)]['_wrap'](_0xa67202):null;}['registerEmbedderFactory'](_0x345ef6,_0x4a5299,_0x26d21e={}){const _0x4404b4=_0x39df8a;if(typeof _0x4a5299!==_0x4404b4(0x40e))throw new _0x642ead(_0x4404b4(0x589),_0x4404b4(0x229),{'name':_0x345ef6});this[_0x4404b4(0x451)][_0x4404b4(0x488)](_0x345ef6,_0x4a5299),this[_0x4404b4(0x818)][_0x4404b4(0x488)](_0x345ef6,_0x26d21e);const _0x5ebad7=this['okdb'],_0x3e01d4=_0x34f8d1=>_0x4a5299(_0x34f8d1,_0x5ebad7);_0x3e01d4[_0x4404b4(0x1e3)]=_0x5ebad7,this['_n']('registerEmbedderFactory',[_0x345ef6,_0x3e01d4,_0x26d21e??{}],![]);}[_0x39df8a(0x477)](_0x37bd06){const _0x5e69ac=_0x39df8a,_0x51196f=this[_0x5e69ac(0x451)]['get'](_0x37bd06);if(_0x51196f)return _0x51196f;if(!this['_n'](_0x5e69ac(0x7ca),[_0x37bd06],![]))return null;const _0x1f78f7=this;return(_0x514dc5={})=>{const _0x4125da=_0x5e69ac,_0x1886a8=_0x1f78f7['_n'](_0x4125da(0x135),[_0x37bd06,_0x514dc5],![]),_0x39347c=_0x1f78f7['_n'](_0x4125da(0x42d),[_0x1886a8],![]),_0x2b570f=(_0x148bf8,_0x2d7841)=>_0x1f78f7['_n']('embedderCall',[_0x1886a8,_0x148bf8,_0x2d7841],![]),_0xa36f6c={'embed':async _0xe954ab=>Float32Array[_0x4125da(0x5f7)](_0x2b570f(_0x4125da(0x26d),_0xe954ab)),'start':async()=>_0x2b570f('start'),'stop':async()=>{const _0x4505e1=_0x4125da;_0x2b570f(_0x4505e1(0x851)),_0x2b570f(_0x4505e1(0x1ff));}};if(_0x39347c)_0xa36f6c['embedBatch']=async _0x277b02=>_0x2b570f(_0x4125da(0x3fa),_0x277b02)['map'](_0x173933=>Float32Array[_0x4125da(0x5f7)](_0x173933));return _0xa36f6c;};}[_0x39df8a(0x335)](_0x2652e4){const _0x1bf392=_0x39df8a;return this['_jsSchemas'][_0x1bf392(0x616)](_0x2652e4)??this['_n']('getEmbedderSchema',[_0x2652e4],![])??undefined;}[_0x39df8a(0x27c)](_0x30bc0d,_0x14d929,_0x29dd08={}){const _0x2d1c87=_0x39df8a;if(typeof _0x14d929!==_0x2d1c87(0x40e))throw new _0x642ead(_0x2d1c87(0x7af),'BAD_PARAM',{'name':_0x30bc0d});this['_n'](_0x2d1c87(0x27c),[_0x30bc0d,(_0xf04814,_0x424794)=>_0x14d929(_0xf04814,_0x424794),_0x29dd08??{}],![]);}['listAlgorithms'](){const _0x5b8b6b=_0x39df8a;return this['_n'](_0x5b8b6b(0x7ad),[],![]);}['registerPreparer'](_0x2bc4d9,_0x139569){const _0x1f7772=_0x39df8a;if(typeof _0x139569!==_0x1f7772(0x40e))throw new _0x642ead(_0x1f7772(0x84c),_0x1f7772(0x229),{'name':_0x2bc4d9});this['_n'](_0x1f7772(0x3ba),[_0x2bc4d9,_0x139569]);}[_0x39df8a(0x1ee)](_0x477723,_0x3e65e9){const _0xcbacec=_0x39df8a;if(typeof _0x3e65e9!=='function')throw new _0x642ead('chunk\x20strategy\x20must\x20be\x20a\x20function',_0xcbacec(0x229),{'name':_0x477723});this['_n']('registerChunkStrategy',[_0x477723,_0x3e65e9]);}['setStorageResolver'](_0x31a63f){const _0x2925a1=_0x39df8a;if(_0x31a63f==null)return this['_n'](_0x2925a1(0x234),[null],![]);if(typeof _0x31a63f!==_0x2925a1(0x40e))throw new _0x642ead(_0x2925a1(0x62f),_0x2925a1(0x229));const _0x51d780=this[_0x2925a1(0x555)];this['_n'](_0x2925a1(0x234),[_0x54435=>_0x31a63f(_0x54435,_0x51d780)],![]);}async[_0x39df8a(0x860)](_0x5e06b0,_0xbc1d6a={},_0x22c199={},_0x7c49f8=null){const _0x10cbe2=_0x39df8a;return this['_wrap'](await this[_0x10cbe2(0x47b)]('createEmbedder',[_0x5e06b0,_0xbc1d6a,_0x22c199,_0x7c49f8]));}async[_0x39df8a(0x5f4)](_0x23e579,_0x585b1c={},_0x5587e9={}){const _0x3ad1ef=_0x39df8a;return this['_wrap'](await this['_nm'](_0x3ad1ef(0x5f4),[_0x23e579,_0x585b1c,_0x5587e9]));}async[_0x39df8a(0x7f3)](_0x23b155,_0x30ad43={},_0x1f91fb={}){const _0xb0fb97=_0x39df8a;return this['_wrap'](await this[_0xb0fb97(0x47b)](_0xb0fb97(0x7f3),[_0x23b155,_0x30ad43,_0x1f91fb]));}async[_0x39df8a(0x1e2)](_0x186aba,_0x495142={},_0xbdd78d={}){const _0x55113b=_0x39df8a;return this['_wrap'](await this['_nm'](_0x55113b(0x1e2),[_0x186aba,_0x495142,_0xbdd78d]));}async[_0x39df8a(0x49a)](_0xbac1a0,_0x581d22={},_0x1c64ae={}){const _0x3c047c=_0x39df8a,_0x3a366a=await this['_nm']('createPipeline',[_0xbac1a0,_0x581d22,_0x1c64ae]);return{'embedder':this['_wrap'](_0x3a366a['embedder']),'indexer':this[_0x3c047c(0x2ac)](_0x3a366a[_0x3c047c(0x1e4)]),'worker':this[_0x3c047c(0x2ac)](_0x3a366a[_0x3c047c(0x309)]),'search':this['_wrap'](_0x3a366a[_0x3c047c(0x474)]),'api':this[_0x3c047c(0x1ad)](_0x3a366a['scopedName'],_0x3a366a['embedder'][_0x3c047c(0x885)],_0x3a366a[_0x3c047c(0x309)]?_0x3a366a[_0x3c047c(0x309)]['name']:_0x3a366a['scopedName']+_0x3c047c(0x365))};}[_0x39df8a(0x5ec)](_0x55bf04,_0x4087b0){const _0x458702=_0x39df8a;return this['okdb']['engines'][_0x458702(0x273)](_0x55bf04,_0x4087b0)?.['api']??null;}['embedder'](_0x11cb3a){const _0x2581f5=_0x39df8a,_0x502348=this[_0x2581f5(0x5ec)](_0x4a9e25[_0x2581f5(0x2ea)],_0x11cb3a);if(!_0x502348)return null;const _0x50b2fe=this,_0x3af453=_0x2df79b=>Array[_0x2581f5(0x4b6)](_0x2df79b)&&Array[_0x2581f5(0x4b6)](_0x2df79b[0x0])?_0x2df79b[_0x2581f5(0x6f2)](_0x2b6d22=>Float32Array[_0x2581f5(0x5f7)](_0x2b6d22)):Float32Array[_0x2581f5(0x5f7)](_0x2df79b);return new Proxy(_0x502348,{'get'(_0xaf81c1,_0xfef84e){const _0x207e5f=_0x2581f5;if(_0xfef84e===_0x207e5f(0x6df))return _0x50b2fe[_0x207e5f(0x555)]['_call'](_0x207e5f(0x5a4),null,'apiCall',[_0x4a9e25[_0x207e5f(0x2ea)],_0x11cb3a,_0x207e5f(0x6df),[]],![])[_0x207e5f(0x7fd)];if(_0xfef84e==='embed')return async _0x226aa4=>_0x3af453(await _0x502348[_0x207e5f(0x26d)](_0x226aa4));if(_0xfef84e==='embedBatch')return async _0x15d591=>(await _0x502348['embedBatch'](_0x15d591))[_0x207e5f(0x6f2)](_0xc31f3f=>Float32Array['from'](_0xc31f3f));return _0xaf81c1[_0xfef84e];}});}[_0x39df8a(0x1e4)](_0xcce6af){const _0x1cfeaa=_0x39df8a;return this[_0x1cfeaa(0x5ec)](_0x4a9e25['INDEXER'],_0xcce6af);}[_0x39df8a(0x309)](_0x35a46e){const _0x2bcae5=_0x39df8a;return this[_0x2bcae5(0x5ec)](_0x4a9e25[_0x2bcae5(0x3b1)],_0x35a46e);}['search'](_0x28230c){const _0x3fe11c=_0x39df8a,_0x340b3c=this['_running'](_0x4a9e25[_0x3fe11c(0x795)],_0x28230c);if(_0x340b3c)return _0x340b3c;return this[_0x3fe11c(0x72a)](_0x28230c);}[_0x39df8a(0x72a)](_0x3b26ef){const _0x404fa2=_0x39df8a,_0x18846d=this;return{'search':(_0x3aeac5,_0x449676={})=>_0x18846d['okdb']['_callMacro'](_0x404fa2(0x5cf),null,_0x404fa2(0x474),[_0x3b26ef,_0x25810b(_0x3aeac5),_0x449676],![]),'stats':async()=>_0x18846d['_n'](_0x404fa2(0x56b),[_0x3b26ef],![]),'count':()=>_0x18846d['_n'](_0x404fa2(0x842),[_0x3b26ef,_0x404fa2(0x5ad)],![])};}async[_0x39df8a(0x2cc)](_0x66fbf,_0x48afe9,_0x4431fb={}){const _0x44dd5f=_0x39df8a,{limit:limit=0xa,..._0x474f90}=_0x4431fb;return this[_0x44dd5f(0x47b)](_0x44dd5f(0x2cc),[_0x66fbf,_0x25810b(_0x48afe9),{..._0x474f90,'limit':limit}]);}[_0x39df8a(0x168)](_0x2244a7){const _0x4d846b=_0x39df8a;return this['_n'](_0x4d846b(0x168),[_0x2244a7],![]);}['_durableEngineDoc'](_0x32039a,_0x51ec8a){return this['_n']('durableEngineDoc',[_0x32039a,_0x51ec8a],![]);}[_0x39df8a(0x6a1)](_0x42a273){const _0x52f23e=_0x39df8a;return this['_n'](_0x52f23e(0x603),[_0x42a273],![]);}async[_0x39df8a(0x6d6)](_0x294b06){const _0xb811cb=_0x39df8a;return this['_n'](_0xb811cb(0x55f),[_0x294b06],![]);}async['_durableIndexerDocs'](_0xd44335,_0x1c09e5={}){const _0x59efab=_0x39df8a;return this['_n'](_0x59efab(0x39e),[_0xd44335,_0x1c09e5],![]);}async[_0x39df8a(0x2fc)](_0x3040f9,_0x5dbf2c){const _0x56018d=_0x39df8a;return this['_n'](_0x56018d(0x735),[_0x3040f9,_0x5dbf2c],![]);}async[_0x39df8a(0x278)](_0xf4e991,_0x512eb0,_0x3f05fc,_0x1d8c67){const _0x40465b=_0x39df8a;if(_0xf4e991!=null&&typeof _0xf4e991[_0x40465b(0x2bc)]!==_0x40465b(0x40e))throw _0x20c91a(_0x40465b(0x885),_0x40465b(0x7c7),_0xf4e991);if(!_0xf4e991||!_0x3f05fc)return null;return this[_0x40465b(0x555)]['_callMacro'](_0x40465b(0x5cf),null,_0x40465b(0x278),[_0xf4e991,_0x512eb0,_0x3f05fc,_0x1d8c67??null],![]);}async[_0x39df8a(0x680)](_0x2ddcbb,_0x49d9d9,_0x1c2d88={}){const _0x297d46=_0x39df8a,_0x4c7bc3={..._0x1c2d88};if(_0x4c7bc3['vector'])_0x4c7bc3[_0x297d46(0x812)]=Array['from'](_0x4c7bc3[_0x297d46(0x812)]);return this['_n'](_0x297d46(0x680),[_0x2ddcbb,_0x49d9d9,_0x4c7bc3]);}async['durableMarkFail'](_0x4c0352,_0x104d44,_0x401e2a,_0x5e2f12={}){const _0x8f5c56=_0x39df8a;return this['_n'](_0x8f5c56(0x66a),[_0x4c0352,_0x104d44,_0x401e2a,_0x5e2f12]);}async[_0x39df8a(0x5ee)](_0x576728,_0x43ae54){const _0x2ccfc4=_0x39df8a;return this['_n'](_0x2ccfc4(0x5ee),[_0x576728,_0x43ae54]);}async[_0x39df8a(0x485)](_0x2695bb,_0x3c682c){const _0x33e61c=_0x39df8a;return this['_n'](_0x33e61c(0x485),[_0x2695bb,_0x3c682c]);}async[_0x39df8a(0x1ec)](_0xa82f99,_0x3e11b4={}){return this['_n']('durableRetryFailed',[_0xa82f99,_0x3e11b4]);}async[_0x39df8a(0x4e0)](_0x315e60){const _0x310978=_0x39df8a;return this['_nm'](_0x310978(0x4e0),[_0x315e60]);}async[_0x39df8a(0x5d2)](_0x496bb0){const _0x4877f6=_0x39df8a;return this['_n'](_0x4877f6(0x6e9),[_0x496bb0],![]);}[_0x39df8a(0x72b)](_0x3d3c01){const _0x3b41d8=_0x39df8a;return this['_n'](_0x3b41d8(0x72b),[_0x3d3c01],![]);}['listVectorStores'](){const _0x32cc43=_0x39df8a;return this['_n'](_0x32cc43(0x5da),[],![]);}[_0x39df8a(0x4f3)](_0x1d4f16,_0x4c7eff){const _0xbb2979=_0x39df8a,_0x57c3e1=this['_n']('getVector',[_0x1d4f16,_0x4c7eff],![]);return _0x57c3e1==null?null:Float32Array[_0xbb2979(0x5f7)](_0x57c3e1);}[_0x39df8a(0x55d)](_0x11cb6b,_0x1652c2){const _0x256582=_0x39df8a;return this['_n'](_0x256582(0x55d),[_0x11cb6b,_0x1652c2??null],![])??undefined;}async[_0x39df8a(0x314)](_0x1a0732,_0xcd75bc,_0x5e648d,_0x1d0a2b=''){const _0x1067d2=_0x39df8a;return this['_n'](_0x1067d2(0x314),[_0x1a0732,_0xcd75bc,_0x5e648d,_0x1d0a2b]);}['listModels'](_0x30b0c9=null){const _0x210e8f=_0x39df8a;return this['_n'](_0x210e8f(0x435),[_0x30b0c9],![]);}[_0x39df8a(0x1a0)](){const _0x234376=_0x39df8a;return this['_n'](_0x234376(0x1a0),[],![]);}async[_0x39df8a(0x54c)](_0x10ea7b,_0x24367c){const _0x373030=_0x39df8a;return this['_n'](_0x373030(0x868),[_0x10ea7b,_0x24367c],![]),this[_0x373030(0x555)]['_ensureEnv']('~'+_0x10ea7b+_0x373030(0x6e2)+_0x24367c);}async[_0x39df8a(0x274)](_0x5d3b52,_0xa5665f){const _0x59c450=_0x39df8a;return await this[_0x59c450(0x54c)](_0x5d3b52,_0xa5665f),{'adapter':_0x189d68=>this[_0x59c450(0x36d)](_0x5d3b52,_0xa5665f,_0x189d68)};}['_makeLazyVectorAdapter'](_0x2a5775,_0x3230fa,_0x172c0a){const _0x4b5c72=this;return{async 'put'(_0x458870,_0x2b5c5f){const _0x23aad8=_0x3f13;return _0x4b5c72['_n'](_0x23aad8(0x545),[_0x2a5775,_0x3230fa,_0x172c0a,_0x458870,Array['from'](_0x2b5c5f)]);},async 'remove'(_0x5ed6b5){const _0x1ffdff=_0x3f13;return _0x4b5c72['_n'](_0x1ffdff(0x17a),[_0x2a5775,_0x3230fa,_0x172c0a,_0x5ed6b5]);}};}get[_0x39df8a(0x298)](){const _0x31bd65=_0x39df8a,_0x493543=this,_0x3d6d47=()=>_0x493543['_n'](_0x31bd65(0x4c5),[],![]),_0x49ea61=_0x11d166=>{const _0x35c146=_0x31bd65,_0x146772=_0x8bdc61=>_0x493543['_n'](_0x35c146(0x842),[_0x11d166,_0x8bdc61],![]);return{'name':_0x11d166,'_evict':async()=>_0x146772(_0x35c146(0x344)),'evict':async()=>_0x146772(_0x35c146(0x344)),'snapshot':async()=>_0x146772(_0x35c146(0x7e2)),'_snapshot':async()=>_0x146772(_0x35c146(0x7e2)),'rebuild':async()=>_0x146772(_0x35c146(0x429)),'stats':()=>_0x146772(_0x35c146(0x5fc)),get 'count'(){return _0x146772('count');},get 'loaded'(){const _0x571852=_0x35c146;return _0x146772(_0x571852(0x86d));}};};return{get 'size'(){return _0x3d6d47()['length'];},'has':_0x417286=>_0x3d6d47()['includes'](_0x417286),'get':_0x15102e=>_0x3d6d47()['includes'](_0x15102e)?_0x49ea61(_0x15102e):undefined,'keys':()=>_0x3d6d47()[Symbol[_0x31bd65(0x821)]](),'values':()=>_0x3d6d47()[_0x31bd65(0x6f2)](_0x49ea61)[Symbol[_0x31bd65(0x821)]](),[Symbol[_0x31bd65(0x821)]]:()=>_0x3d6d47()[_0x31bd65(0x6f2)](_0x4d8b57=>[_0x4d8b57,_0x49ea61(_0x4d8b57)])[Symbol['iterator']]()};}async[_0x39df8a(0x525)](){}async[_0x39df8a(0x851)](){const _0x394598=_0x39df8a;this['_n'](_0x394598(0x851),[]);}[_0x39df8a(0x1ad)](_0x220407,_0x1e3312,_0x14bbb7){const _0x22dd86=_0x39df8a;return{'search':(_0x334743,_0x59c087={})=>{const _0x79773e=_0x3f13,_0x287365=this['search'](_0x220407);if(!_0x287365)throw new Error(_0x79773e(0x184)+_0x220407+'\x22');return _0x287365[_0x79773e(0x474)](_0x334743,_0x59c087);},'searchDocs':(_0x591162,_0x2112a7={})=>this[_0x22dd86(0x2cc)](_0x220407,_0x591162,_0x2112a7),'flush':_0x157a7a=>{const _0x55cd96=_0x22dd86,_0x5db377=this[_0x55cd96(0x1e4)](_0x220407);if(!_0x5db377)throw new Error(_0x55cd96(0x7f9)+_0x220407+'\x22');return _0x5db377['flush'](_0x157a7a);},'stats':async()=>({'embedder':await this[_0x22dd86(0x6ff)](_0x1e3312)?.['health']?.(),'indexer':await this[_0x22dd86(0x1e4)](_0x220407)?.['stats']?.(),'worker':await this[_0x22dd86(0x309)](_0x14bbb7)?.[_0x22dd86(0x5fc)]?.(),'search':await this[_0x22dd86(0x474)](_0x220407)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x94e222,'ENGINE_TYPES':_0x4a9e25},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x53de26=_0x1ade1a;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x59e86a}=requireErrors();class _0x4bd743{constructor(_0xf2166d){const _0x205c9a=_0x3f13;this[_0x205c9a(0x555)]=_0xf2166d;}['_n'](_0xd3e6fc,_0x5128e1=[],_0x4a01fc=![]){const _0x320c4c=_0x3f13;return this[_0x320c4c(0x555)][_0x320c4c(0x82b)]('auth',null,_0xd3e6fc,_0x5128e1,_0x4a01fc);}[_0x53de26(0x47b)](_0x48920f,_0x24d358=[]){const _0x56ce52=_0x53de26;return this[_0x56ce52(0x555)][_0x56ce52(0x421)]('auth',null,_0x48920f,_0x24d358,![]);}get[_0x53de26(0x75b)](){const _0x14fcbb=_0x53de26;return this['_n'](_0x14fcbb(0x75b));}get['isSetupMode'](){const _0x567f67=_0x53de26;return this['_n'](_0x567f67(0x213));}get[_0x53de26(0x7ba)](){const _0x319c3f=_0x53de26;return this[_0x319c3f(0x555)]['options'][_0x319c3f(0x470)]?.[_0x319c3f(0x1bd)]||{};}[_0x53de26(0x7fe)](_0x4fbef8){const _0x28e34d=_0x53de26;return this['_n'](_0x28e34d(0x7fe),[_0x4fbef8??null]);}['_isOpenForIp'](_0x12170a){const _0x1ae572=_0x53de26;return this['_n'](_0x1ae572(0x4a4),[_0x12170a??null]);}[_0x53de26(0x271)](_0x31f9aa){const _0x79ef74=_0x53de26;return this['_n'](_0x79ef74(0x3af),[_0x31f9aa??null]);}[_0x53de26(0x666)](){return this['_n']('isBootstrap');}[_0x53de26(0x82d)](){const _0xf3125=_0x53de26;return this['_n'](_0xf3125(0x82d));}[_0x53de26(0x380)](){return this['_n']('getAuthOptions');}[_0x53de26(0x1fd)](_0x4d28e9){const _0x490efc=_0x53de26;return this['_n'](_0x490efc(0x1fd),[_0x4d28e9]);}['authenticateToken'](_0x38362d){const _0x1ee7f3=_0x53de26;return this['_n'](_0x1ee7f3(0x54e),[_0x38362d]);}[_0x53de26(0x388)](_0x2ad7bb){const _0x257bfc=_0x53de26;if(_0x2ad7bb!=null&&typeof _0x2ad7bb!==_0x257bfc(0x4c1))throw _0x59e86a(_0x257bfc(0x841),'a\x20string',_0x2ad7bb);return this['_n'](_0x257bfc(0x388),[_0x2ad7bb??null]);}async[_0x53de26(0x810)](){const _0x3c7e1d=_0x53de26;return this['_n'](_0x3c7e1d(0x1f1),[],!![]);}async[_0x53de26(0x2bf)](_0x13ed56){const _0x5a8c21=_0x53de26;return this['_n'](_0x5a8c21(0x13e),[_0x13ed56]);}async[_0x53de26(0x848)](_0xcce48f){const _0x20b6d5=_0x53de26;return this['_n'](_0x20b6d5(0x539),[_0xcce48f]);}async[_0x53de26(0x3d8)](_0x525fb7){const _0x362361=_0x53de26;return this['_n'](_0x362361(0x87e),[_0x525fb7]);}async[_0x53de26(0x5cc)](_0x4c33a2){const _0x30ddcb=_0x53de26,_0x4ae3e4=_0x4c33a2?.[_0x30ddcb(0x238)]||{};return this['_n']('authenticateRequest',[{'remoteAddress':_0x4c33a2[_0x30ddcb(0x3cb)]?.[_0x30ddcb(0x37c)]??null,'internal':_0x4c33a2?.['context']?.[_0x30ddcb(0x2db)]===!![],'authorization':_0x4ae3e4['authorization']??null,'cookies':_0x4c33a2?.[_0x30ddcb(0x7e8)]??{}}]);}async[_0x53de26(0x61f)](_0x34147a,_0x39aa1e){const _0x2325dd=_0x53de26;return this['_nm'](_0x2325dd(0x61f),[_0x34147a??null,_0x39aa1e??null]);}async['loginSelect'](_0x412aea,_0xb0cb52,_0x130e18){const _0x2f0e27=_0x53de26;return this[_0x2f0e27(0x47b)](_0x2f0e27(0x41d),[_0x412aea??null,_0xb0cb52??null,_0x130e18??null]);}[_0x53de26(0x5ca)](){const _0x15d3de=_0x53de26;return this['_n'](_0x15d3de(0x5ca));}[_0x53de26(0x871)](){const _0xcddb28=_0x53de26;return this['_n'](_0xcddb28(0x871));}[_0x53de26(0x1ed)](_0x32a365={},_0x5f3199=0x927c0){const _0x1a8126=_0x53de26;return this['_n'](_0x1a8126(0x1ed),[_0x32a365,_0x5f3199]);}['consumeLoginState'](_0x27175d){const _0x26d7e9=_0x53de26;return this['_n'](_0x26d7e9(0x404),[_0x27175d]);}async[_0x53de26(0x46e)](_0x4fc2be,_0x97fc7b={}){const _0x3fe991=_0x53de26;return this[_0x3fe991(0x47b)](_0x3fe991(0x33c),[_0x4fc2be,_0x97fc7b]);}async[_0x53de26(0x682)](_0x2a7c69={}){const _0xa7707c=_0x53de26;return this[_0xa7707c(0x47b)](_0xa7707c(0x71f),[_0x2a7c69]);}[_0x53de26(0x26c)](_0x4810bb){return this['_n']('normalizeOAuthAuthResult',[_0x4810bb]);}}return auth={'OKDBAuth':_0x4bd743},auth;}var sync,hasRequiredSync;function requireSync(){const _0x346445=_0x1ade1a;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x12783e}=requireRawdb();class _0x1416ff{constructor(_0xa0594e){this['_s']=_0xa0594e;}get['_ackDb'](){const _0x2de22d=_0x3f13;return this['_ack']||(this[_0x2de22d(0x272)]=new _0x12783e(this['_s']['okdb']['_systemEnv'],_0x2de22d(0x482)));}[_0x346445(0x443)](){const _0x39c0bc=_0x346445;return this[_0x39c0bc(0x47f)];}[_0x346445(0x41b)](){const _0x28bc9e=_0x346445;return this[_0x28bc9e(0x47f)];}['_n'](_0x1bb3ef,_0x2f5182=[]){return this['_s']['_n']('gc.'+_0x1bb3ef,_0x2f5182);}['recordPeerAck'](_0x6a51af,_0x50a585){const _0x1b2791=_0x346445;return this['_n'](_0x1b2791(0x481),[_0x6a51af,_0x50a585]);}async[_0x346445(0x444)](_0x11917d){return this['_n']('forceResync',[_0x11917d]);}['getPeerAcks'](){const _0x4942d8=_0x346445;return this['_n'](_0x4942d8(0x2eb));}[_0x346445(0x659)](_0x315825){const _0x53a37d=_0x346445;return this['_n'](_0x53a37d(0x659),[_0x315825]);}async[_0x346445(0x2a0)](){const _0xb964fb=_0x346445;return this['_n'](_0xb964fb(0x2a0));}['getStatus'](){return this['_n']('getStatus');}[_0x346445(0x525)](){const _0x44cf93=_0x346445;return this['_n'](_0x44cf93(0x525));}[_0x346445(0x851)](){const _0x209cc6=_0x346445;return this['_n'](_0x209cc6(0x851));}get[_0x346445(0x71b)](){const _0x1cac42=_0x346445;try{return this['_n'](_0x1cac42(0x1ae))?{}:null;}catch{return null;}}}class _0x13f5bd{constructor(_0x1f30f9){const _0x3a9763=_0x346445;this['okdb']=_0x1f30f9,this['gc']=new _0x1416ff(this);const _0x2deb95=this;this[_0x3a9763(0x5c3)]=new Proxy({},{'get':(_0xcb20db,_0x42e397)=>typeof _0x42e397===_0x3a9763(0x4c1)?_0x2deb95['_n']('options')[_0x42e397]:undefined,'set':(_0x1026eb,_0x55fedf,_0x5b097f)=>{const _0x336193=_0x3a9763;if(_0x55fedf===_0x336193(0x244))_0x2deb95['_n'](_0x336193(0x355),[_0x5b097f??null]);else{if(_0x55fedf===_0x336193(0x4c8))_0x2deb95['_n'](_0x336193(0x3fd),[_0x5b097f??null]);else{if(_0x55fedf===_0x336193(0x2a9))_0x2deb95['_n'](_0x336193(0x675),[_0x5b097f]);}}return!![];},'ownKeys':()=>Object[_0x3a9763(0x23b)](_0x2deb95['_n'](_0x3a9763(0x5c3))),'getOwnPropertyDescriptor':(_0xc0657b,_0x13827b)=>({'enumerable':!![],'configurable':!![],'value':_0x2deb95['_n']('options')[_0x13827b]}),'has':(_0x7d183d,_0x21a7a9)=>_0x21a7a9 in _0x2deb95['_n'](_0x3a9763(0x5c3))});}['_n'](_0x19267b,_0xc3bccb=[],_0xd4fd58=![]){const _0x1f048f=_0x346445;return this[_0x1f048f(0x555)][_0x1f048f(0x82b)](_0x1f048f(0x7a8),null,_0x19267b,_0xc3bccb,_0xd4fd58);}[_0x346445(0x47b)](_0x2bc2bf,_0x3a4527=[]){const _0x4319c8=_0x346445;return this['okdb'][_0x4319c8(0x421)](_0x4319c8(0x7a8),null,_0x2bc2bf,_0x3a4527,!![]);}get[_0x346445(0x417)](){const _0x1e4dc6=_0x346445;return this[_0x1e4dc6(0x518)]||(this[_0x1e4dc6(0x518)]=new _0x12783e(this[_0x1e4dc6(0x555)][_0x1e4dc6(0x70a)],_0x1e4dc6(0x16e)));}[_0x346445(0x3ef)](){const _0x2a9fc7=_0x346445;return this[_0x2a9fc7(0x417)];}get[_0x346445(0x761)](){const _0xb8adae=_0x346445;return this[_0xb8adae(0x5f5)]||(this[_0xb8adae(0x5f5)]=new(requireLock())[(_0xb8adae(0x288))](this[_0xb8adae(0x555)],_0xb8adae(0x196),_0xb8adae(0x7a8),{'ttlMs':0x7530}));}get[_0x346445(0x244)](){const _0x2df4d6=_0x346445;return this['_n'](_0x2df4d6(0x5c3))['address'];}get['_clockListener'](){const _0x670935=_0x346445;return this['okdb']['_isOpen']&&this['_n'](_0x670935(0x221))?{}:null;}get[_0x346445(0x30f)](){const _0x64848f=_0x346445;return this[_0x64848f(0x162)];}get[_0x346445(0x17c)](){const _0x5df36e=_0x346445;return this['_n'](_0x5df36e(0x179))?.[_0x5df36e(0x2f8)];}get[_0x346445(0x63e)](){const _0x600c8=_0x346445;return this['_n'](_0x600c8(0x179))?.[_0x600c8(0x837)];}[_0x346445(0x786)](){const _0x47e119=_0x346445;return this['_n'](_0x47e119(0x786));}[_0x346445(0x60f)](){const _0x977abb=_0x346445;return this['_n'](_0x977abb(0x60f));}get['peers'](){const _0x1a96ba=_0x346445;return this['__peers']||(()=>this['_n'](_0x1a96ba(0x7ff)));}set[_0x346445(0x7ff)](_0x2aee9d){const _0x1f9bec=_0x346445;this['__peers']=typeof _0x2aee9d===_0x1f9bec(0x40e)?_0x2aee9d:null,this['_n'](_0x1f9bec(0x154),[this[_0x1f9bec(0x626)]]);}[_0x346445(0x1b1)](){const _0x4f1d01=_0x346445;return this['_n'](_0x4f1d01(0x54b));}async[_0x346445(0x669)](){const _0x3f0e70=_0x346445;return this[_0x3f0e70(0x47b)](_0x3f0e70(0x669));}async['reconcilePeer'](_0xf5ccc2){const _0x14759d=_0x346445;return this['_nm'](_0x14759d(0x16b),[_0xf5ccc2]);}async[_0x346445(0x287)](_0x3f3e5c,_0x579a94={}){const _0x1324b1=_0x346445;return this['_nm'](_0x1324b1(0x414),[_0x3f3e5c,_0x579a94]);}['stop'](){return this['_n']('stop');}[_0x346445(0x7ec)](){return this['_n']('listLinks');}async[_0x346445(0x4f0)](_0x3b814f,_0x55d7db={}){const _0x39c5ca=_0x346445;return this['_n'](_0x39c5ca(0x4f0),[_0x3b814f,_0x55d7db],!![]);}async['removeLink'](_0xdb0594){const _0x1cefa8=_0x346445;return this['_n'](_0x1cefa8(0x19b),[_0xdb0594],!![]);}[_0x346445(0x45f)](_0x5215fb){const _0x1a3fea=_0x346445;return this['_n'](_0x1a3fea(0x4c6),[_0x5215fb]);}[_0x346445(0x64a)](_0x5a0c50){const _0x26b621=_0x346445;return this['_n'](_0x26b621(0x712),[_0x5a0c50]);}async[_0x346445(0x3bb)](_0x26e516,_0x1380bd,_0x3f74a1={}){return this['_n']('setPeerState',[_0x26e516,_0x1380bd,_0x3f74a1]);}async[_0x346445(0x86b)](_0x3df2f7){const _0xe1c3fa=_0x346445;return this['_n'](_0xe1c3fa(0x25f),[_0x3df2f7]);}async[_0x346445(0x222)](){const _0x227f22=_0x346445;return this['_n'](_0x227f22(0x4e2),[],!![]);}async['patchSelf'](_0x224d74){const _0x479b5b=_0x346445;return this['_n'](_0x479b5b(0x439),[_0x224d74],!![]);}async[_0x346445(0x6a2)](_0x330394,_0x17c383={}){return this['_nm']('join',[_0x330394,_0x17c383]);}async[_0x346445(0x489)](_0x81972b={},_0x14523f={}){const _0x2ca78c=_0x346445;return void _0x81972b[_0x2ca78c(0x196)],this['_n'](_0x2ca78c(0x489),[_0x81972b,_0x14523f]);}async[_0x346445(0x572)](_0x59d2c7,_0x248404,_0x1fb5ba,_0x55004b){const _0x414b29=_0x346445;return this[_0x414b29(0x47b)]('fetchPeer',[_0x59d2c7,_0x248404,_0x1fb5ba,_0x55004b??null]);}async[_0x346445(0x819)](_0x16198c,_0x1df42d,_0x156335={}){return this['_nm']('fetchRemoteDelta',[_0x16198c,_0x1df42d,_0x156335]);}[_0x346445(0x7d8)](_0x5a9737,_0x44061e=null){const _0x436881=_0x346445;return this['_n'](_0x436881(0x32c),[_0x5a9737,_0x44061e?_0x44061e[_0x436881(0x885)]:null]);}[_0x346445(0x279)](_0x188459,_0x21e829=null){const _0x2f8f2e=_0x346445;return this['_n'](_0x2f8f2e(0x279),[_0x188459,_0x21e829?_0x21e829[_0x2f8f2e(0x885)]:null],!![]);}}return sync={'OKDBSync':_0x13f5bd},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x2cf47b=_0x1ade1a;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x49be7a}=requireErrors(),_0x5ece10=require$$0,_0x108dd8=require$$4,_0x45699d=0x40*0x400;async function _0x3f3d44(_0x597fa8,_0x4bfaf4){const _0x59f329=_0x3f13;for(let _0xb775ba=0x0;_0xb775ba<_0x4bfaf4[_0x59f329(0x479)];){let _0x2504bf=Math[_0x59f329(0x5b5)](_0x4bfaf4[_0x59f329(0x479)],_0xb775ba+_0x45699d);if(_0x2504bf<_0x4bfaf4[_0x59f329(0x479)]){const _0x3b5273=_0x4bfaf4[_0x59f329(0x789)](0xa,_0x2504bf-0x1);_0x2504bf=_0x3b5273===-0x1?_0x4bfaf4['length']:_0x3b5273+0x1;}const _0x383e4=_0x597fa8['write'](_0x4bfaf4[_0x59f329(0x57a)](_0xb775ba,_0x2504bf));_0xb775ba=_0x2504bf;if(!_0x383e4)await new Promise(_0x475772=>_0x597fa8[_0x59f329(0x38c)](_0x59f329(0x303),_0x475772));await new Promise(_0xc0d524=>setImmediate(_0xc0d524));}}async function _0x18b67b(_0x4c712c){const _0x26cab8=_0x3f13,_0x1cf16e=[];for await(const _0x2fb7a5 of _0x4c712c)_0x1cf16e[_0x26cab8(0x2e6)](Buffer['isBuffer'](_0x2fb7a5)?_0x2fb7a5:Buffer[_0x26cab8(0x5f7)](_0x2fb7a5,'utf8'));return Buffer[_0x26cab8(0x45c)](_0x1cf16e);}class _0x22f5c2{constructor(_0x43da31){const _0x4452dc=_0x3f13;this[_0x4452dc(0x555)]=_0x43da31;}['_n'](_0x47a821,_0x17e13f){const _0x133401=_0x3f13;return this['okdb']['_call'](_0x133401(0x3ee),null,_0x47a821,_0x17e13f,!![]);}async['exportToStream'](_0x17257c,_0x150cd1={}){const _0x28dbb3=_0x3f13,{data:_0x2811dd,stats:_0x36b06a}=this['_n'](_0x28dbb3(0x820),[_0x150cd1]);return await _0x3f3d44(_0x17257c,Buffer['from'](_0x2811dd)),_0x36b06a;}async[_0x2cf47b(0x86e)](_0xcf0184,_0x478636={}){const _0x3b0637=_0x2cf47b;_0x5ece10['mkdirSync'](_0x108dd8[_0x3b0637(0x741)](_0xcf0184),{'recursive':!![]});const _0x1ef8a8=_0x5ece10[_0x3b0637(0x78d)](_0xcf0184),_0x45d60d=await this[_0x3b0637(0x665)](_0x1ef8a8,_0x478636);return await new Promise((_0x43fb54,_0x704ad2)=>{const _0x50cc55=_0x3b0637;_0x1ef8a8[_0x50cc55(0x5a6)](),_0x1ef8a8[_0x50cc55(0x38c)](_0x50cc55(0x75f),_0x43fb54),_0x1ef8a8['once'](_0x50cc55(0x814),_0x704ad2);}),{..._0x45d60d,'filePath':_0xcf0184};}async[_0x2cf47b(0x58f)](_0x4dc5da,_0x31bf6d={}){const _0x1e0fec=_0x2cf47b,{data:_0x16ba37,stats:_0x17c3ee}=this['_n'](_0x1e0fec(0x736),[_0x31bf6d]);return await _0x3f3d44(_0x4dc5da,Buffer[_0x1e0fec(0x5f7)](_0x16ba37)),_0x17c3ee;}async[_0x2cf47b(0x1fc)](_0x59bd05,_0x2164da={}){const _0x1810f1=_0x2cf47b,_0x3d7fd6=await _0x18b67b(_0x59bd05),{onProgress:_0xc61677,..._0x132289}=_0x2164da,_0x4baf0c=this['_n']('importBuf',[_0x3d7fd6,_0x132289]);if(typeof _0xc61677===_0x1810f1(0x40e))_0xc61677({'type':null,'count':_0x4baf0c['records']});return _0x4baf0c;}async['importFromFile'](_0x12594b,_0x541cc8={}){const _0x1ff4a9=_0x2cf47b;return this[_0x1ff4a9(0x1fc)](_0x5ece10[_0x1ff4a9(0x193)](_0x12594b,{'encoding':_0x1ff4a9(0x2e2)}),_0x541cc8);}async[_0x2cf47b(0x7c8)](_0x495e72,_0x11f0b7={}){const _0xebcece=_0x2cf47b;return this['_n'](_0xebcece(0x7c8),[_0x495e72,_0x11f0b7]);}[_0x2cf47b(0x686)](){return this['_n']('backupRoot',[]);}[_0x2cf47b(0x2cd)](_0x3afe99){const _0x186cd7=_0x2cf47b;return this['_n'](_0x186cd7(0x2cd),[_0x3afe99??null]);}async['export'](_0x113992={}){const _0x49c973=_0x2cf47b;return this['_n'](_0x49c973(0x333),[_0x113992]);}async['import'](_0xb058ba,_0x47d0ae={}){return this['_n']('import',[_0xb058ba,_0x47d0ae]);}async[_0x2cf47b(0x161)](_0x13d105){const _0x5806e2=_0x2cf47b,{pretty:pretty=![]}=_0x49be7a(_0x13d105);return JSON[_0x5806e2(0x4e6)](await this[_0x5806e2(0x333)](),null,pretty?0x2:0x0);}async[_0x2cf47b(0x1f8)](_0x3f55bf){const _0x57fdb2=_0x2cf47b;return this[_0x57fdb2(0x3e1)](JSON['parse'](_0x3f55bf));}[_0x2cf47b(0x529)](){const _0x186e00=_0x2cf47b;if(!this[_0x186e00(0x555)][_0x186e00(0x2b2)][_0x186e00(0x616)]('default')?.[_0x186e00(0x513)])throw new Error('files\x20feature\x20not\x20available');}async[_0x2cf47b(0x698)](_0x5e1adb){const _0x453a62=_0x2cf47b;return this[_0x453a62(0x529)](),this['_n'](_0x453a62(0x698),[_0x5e1adb]);}async[_0x2cf47b(0x37e)](_0xad754e){const _0x3e0ad7=_0x2cf47b;return this[_0x3e0ad7(0x529)](),this['_n'](_0x3e0ad7(0x37e),[_0xad754e]);}['_allEnvsWithFiles'](){const _0x5026a0=_0x2cf47b;return this['_n'](_0x5026a0(0x753),[])[_0x5026a0(0x6f2)](_0x117233=>this[_0x5026a0(0x555)][_0x5026a0(0x53c)](_0x117233));}async[_0x2cf47b(0x2a2)](){const _0x5729f7=_0x2cf47b;return this[_0x5729f7(0x529)](),this['_n']('validateBlobIntegrity',[]);}async[_0x2cf47b(0x4c9)](){const _0x37ceb6=_0x2cf47b;return this[_0x37ceb6(0x529)](),this['_n'](_0x37ceb6(0x4c9),[]);}}return migrate={'OKDBMigrate':_0x22f5c2},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x552ec7=_0x1ade1a;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x2cb1cd{constructor(_0x4b892c){const _0x38704a=_0x3f13;this[_0x38704a(0x555)]=_0x4b892c,this[_0x38704a(0x749)]=new Map();}['_n'](_0x506bb5,_0xaa85c3){const _0x3a71c6=_0x3f13;try{return this[_0x3a71c6(0x555)][_0x3a71c6(0x82b)]('mcp',null,_0x506bb5,_0xaa85c3,!![]);}catch(_0xebabd2){if(_0xebabd2&&_0xebabd2[_0x3a71c6(0x431)]===_0x3a71c6(0x4a3)&&_0xebabd2['details']){if(_0xebabd2[_0x3a71c6(0x7fa)][_0x3a71c6(0x536)]!==undefined)_0xebabd2['jsonrpcCode']=_0xebabd2['details'][_0x3a71c6(0x536)];_0xebabd2[_0x3a71c6(0x7fa)]=_0xebabd2['details'][_0x3a71c6(0x7fa)],_0xebabd2[_0x3a71c6(0x431)]=undefined;}throw _0xebabd2;}}[_0x552ec7(0x83a)](){const _0x5d4dda=_0x552ec7;return this['_n'](_0x5d4dda(0x7e0),[]);}async[_0x552ec7(0x82b)](_0x483d51,_0x1093e9={}){const _0x468467=_0x552ec7;return this['_n'](_0x468467(0x881),[_0x483d51??null,_0x1093e9??{}]);}async[_0x552ec7(0x503)](_0x2ebc6b,_0x514d75={}){return this['_n']('handle',[_0x2ebc6b,_0x514d75??{}]);}['_initialize'](_0xf87e84){const _0x398044=_0x552ec7;return this['_n'](_0x398044(0x5d4),[_0xf87e84??null]);}}return mcp={'OKDBMcp':_0x2cb1cd},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x15f78c=_0x1ade1a;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x19b81c(_0x4d1842,_0x505cf3,_0x16c36a){const _0x3aeacd=_0x3f13,_0x43216d={};for(const [_0x587d17,_0x4fe0a1]of Object['entries'](_0x16c36a)){_0x43216d[_0x587d17]=_0x4fe0a1===_0x3aeacd(0x38a)?async(..._0x3d0111)=>_0x4d1842[_0x3aeacd(0x82b)](_0x505cf3,null,_0x587d17,_0x3d0111):(..._0x45cc1c)=>_0x4d1842['_call'](_0x505cf3,null,_0x587d17,_0x45cc1c,![]);}return _0x43216d;}const _0x5b7daf=[_0x15f78c(0x55e),_0x15f78c(0x664),_0x15f78c(0x3cd),_0x15f78c(0x16a),_0x15f78c(0x300),'isIndex',_0x15f78c(0x224),_0x15f78c(0x3d0),_0x15f78c(0x456),_0x15f78c(0x817),'indexStats','describeTypeDetailed',_0x15f78c(0x460),_0x15f78c(0x5c1),_0x15f78c(0x7d7),_0x15f78c(0x326),_0x15f78c(0x28f),_0x15f78c(0x2af),_0x15f78c(0x3cc),'recomputeFields',_0x15f78c(0x6dc)],_0x40ffb3={'add':_0x15f78c(0x38a),'activate':_0x15f78c(0x38a),'remove':_0x15f78c(0x38a),'list':_0x15f78c(0x7a8),'get':_0x15f78c(0x7a8),'effective':_0x15f78c(0x7a8)},_0x46c14e={'open':_0x15f78c(0x38a),'register':_0x15f78c(0x38a),'buildOwnRow':_0x15f78c(0x7a8),'_buildProcessingFacet':_0x15f78c(0x7a8),'reportThreadStats':_0x15f78c(0x7a8),'clearThreadStats':_0x15f78c(0x7a8),'emitProc':'sync','addSupervisedChild':_0x15f78c(0x38a),'removeSupervisedChild':_0x15f78c(0x7a8),'updateSupervisedChildStats':_0x15f78c(0x7a8),'publishChildRow':_0x15f78c(0x38a),'putNode':_0x15f78c(0x38a),'removeNode':_0x15f78c(0x38a),'nodeDead':_0x15f78c(0x7a8),'listNodes':_0x15f78c(0x7a8),'reap':_0x15f78c(0x38a),'publishOwnRow':_0x15f78c(0x38a),'deregisterSelf':_0x15f78c(0x38a),'setOwnMeta':_0x15f78c(0x7a8),'noteListenAddr':_0x15f78c(0x7a8),'hasDesired':'sync','getDesired':_0x15f78c(0x7a8),'setDesired':_0x15f78c(0x38a),'listDesired':_0x15f78c(0x7a8),'getCmd':_0x15f78c(0x7a8),'bumpCmd':'async','processingStatusView':'sync','processorsView':_0x15f78c(0x7a8),'clusterStatusView':_0x15f78c(0x7a8),'nodesView':_0x15f78c(0x7a8),'treeView':_0x15f78c(0x7a8),'getProcess':_0x15f78c(0x7a8),'runtimeProcessesView':'sync'};function _0x41ea7a(_0x2e45e0){const _0x359912=_0x15f78c,_0xc5f314={},_0x3e9557=_0x150642=>_0x150642&&typeof _0x150642===_0x359912(0x6f7)&&!Array[_0x359912(0x4b6)](_0x150642)&&typeof _0x150642[_0x359912(0x885)]===_0x359912(0x4c1)?_0x150642[_0x359912(0x885)]:_0x150642;for(const _0x5f165a of _0x5b7daf)_0xc5f314[_0x5f165a]=_0x5f165a==='recomputeFields'?async(..._0x390843)=>_0x2e45e0[_0x359912(0x82b)](_0x359912(0x5c1),null,_0x5f165a,_0x390843[_0x359912(0x6f2)](_0x3e9557),!![]):(..._0x1d0e4e)=>_0x2e45e0[_0x359912(0x82b)](_0x359912(0x5c1),null,_0x5f165a,_0x1d0e4e[_0x359912(0x6f2)](_0x3e9557),![]);return _0xc5f314;}function _0x15ed32(_0x5c289f){const _0x4f715b=_0x15f78c,_0x327588=_0x19b81c(_0x5c289f,_0x4f715b(0x248),_0x40ffb3);return _0x327588;}function _0x525f7f(_0x305011){const _0x5f2d28=_0x15f78c,_0x150fba=()=>_0x305011['licenses'][_0x5f2d28(0x461)](),_0x5a673d=_0x31b0e2=>_0x31b0e2[_0x5f2d28(0x1ff)]?{..._0x31b0e2,'_isFree':!![]}:_0x31b0e2;return{async 'addLicense'(_0x504698){const _0x51bc98=_0x5f2d28;return _0x305011[_0x51bc98(0x248)][_0x51bc98(0x76e)](_0x504698);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x2e9b02=_0x150fba();return _0x2e9b02['free']?null:_0x2e9b02;},get 'effective'(){return _0x5a673d(_0x150fba());},'hasLimit'(_0x4d5b78){const _0x54b8b4=_0x5f2d28,_0x22cb38=_0x150fba();if(!_0x22cb38[_0x54b8b4(0x597)])return![];const _0x7d3f0b=_0x22cb38[_0x54b8b4(0x6d4)]?.[_0x4d5b78];return!(_0x7d3f0b===null||_0x7d3f0b===undefined||_0x7d3f0b===0x0);},'isFeatureEnabled'(_0x356670){const _0x230ca7=_0x5f2d28,_0x2ab33a=_0x150fba();return!_0x2ab33a[_0x230ca7(0x597)]||!!_0x2ab33a[_0x230ca7(0x52d)]?.[_0x356670];},'assertFeature'(_0x48bfdc){const _0x348cd8=_0x5f2d28,_0x39b7c0=_0x150fba();if(!_0x39b7c0[_0x348cd8(0x597)]||_0x39b7c0[_0x348cd8(0x52d)]?.[_0x48bfdc])return;const {OKDBError:_0x55673f}=requireErrors(),_0x55d366=_0x39b7c0[_0x348cd8(0x1ff)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0x48bfdc+_0x348cd8(0x657)+_0x48bfdc+_0x348cd8(0x6ba):_0x348cd8(0x141)+_0x48bfdc+'.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22'+_0x48bfdc+'\x22.';throw new _0x55673f(_0x55d366,_0x348cd8(0x4bb),{'feature':_0x48bfdc});},'assertLimit'(_0x47facf,_0x565603){const _0x3cca93=_0x5f2d28,_0x1a451d=_0x150fba();if(!_0x1a451d['enforced'])return;const _0x3b94c0=_0x1a451d[_0x3cca93(0x6d4)]?.[_0x47facf];if(_0x3b94c0===null||_0x3b94c0===undefined||_0x3b94c0===0x0)return;if(_0x565603>=_0x3b94c0){const {OKDBError:_0x25c1c2}=requireErrors();throw new _0x25c1c2(_0x3cca93(0x2fd)+_0x47facf+'\x20('+_0x565603+'/'+_0x3b94c0+')',_0x3cca93(0x422),{'limit':_0x47facf,'current':_0x565603,'max':_0x3b94c0});}},'listLicenses'(){const _0x192bbe=_0x5f2d28;return _0x305011['licenses'][_0x192bbe(0x3f8)]();},'getPins'(){const _0x46ffb5=_0x5f2d28;return _0x305011['licenses'][_0x46ffb5(0x3f8)]()[_0x46ffb5(0x6f2)](_0x1d5574=>({'licenseId':_0x1d5574['id'],'pin':_0x1d5574[_0x46ffb5(0x79c)]==='open'?null:_0x1d5574[_0x46ffb5(0x61e)]}));}};}function _0x5a1bc7(_0x33424b){const _0x48891e=_0x15f78c,_0x2d3bea=_0x19b81c(_0x33424b,_0x48891e(0x4a0),_0x46c14e);Object[_0x48891e(0x882)](_0x2d3bea,_0x48891e(0x37d),{'get':()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x37d),[],![])}),Object['defineProperty'](_0x2d3bea,_0x48891e(0x1e8),{'get':()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,'rowKey',[],![])}),_0x2d3bea[_0x48891e(0x1c1)]=null;const _0x1cef25=_0x2d3bea['noteListenAddr'];_0x2d3bea[_0x48891e(0x1ca)]=_0x1097b7=>{const _0x35e9e8=_0x48891e;return _0x2d3bea[_0x35e9e8(0x1c1)]=_0x1097b7,_0x1cef25(_0x1097b7);};const _0x193eb9=()=>_0x2d3bea[_0x48891e(0x43d)]()[_0x48891e(0x6f2)](_0x2f0c77=>({'key':_0x2f0c77[_0x48891e(0x6c3)],'value':_0x2f0c77,'version':0x1})),_0x422403={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x58fdfa=>_0x58fdfa==='node','getRange':_0x3707ab=>_0x3707ab===_0x48891e(0x66d)?_0x193eb9()[Symbol[_0x48891e(0x821)]]():[][Symbol[_0x48891e(0x821)]](),'getKeys':_0x1e03c2=>_0x1e03c2===_0x48891e(0x66d)?_0x193eb9()['map'](_0x1cd6de=>_0x1cd6de[_0x48891e(0x491)])[Symbol[_0x48891e(0x821)]]():[][Symbol[_0x48891e(0x821)]](),'getValues':_0x3c43df=>_0x3c43df==='node'?_0x193eb9()['map'](_0x3fe84e=>_0x3fe84e[_0x48891e(0x7fd)])[Symbol[_0x48891e(0x821)]]():[][Symbol[_0x48891e(0x821)]](),'get':(_0x4ccf49,_0x554774)=>_0x4ccf49===_0x48891e(0x66d)?_0x193eb9()['find'](_0x884b22=>_0x884b22[_0x48891e(0x491)]===_0x554774)?.['value']:undefined,'getCount':_0x44efa4=>_0x44efa4===_0x48891e(0x66d)?_0x193eb9()[_0x48891e(0x479)]:0x0};Object[_0x48891e(0x882)](_0x2d3bea,_0x48891e(0x164),{'get':()=>_0x33424b[_0x48891e(0x82b)]('processes',null,_0x48891e(0x4fe),[],![])?_0x422403:null});const _0x4fd7fc=_0x2d3bea[_0x48891e(0x2fb)];_0x2d3bea[_0x48891e(0x2fb)]=async _0x537765=>{const _0xc27c15=_0x48891e;return await _0x4fd7fc(_0x537765),_0x2d3bea[_0xc27c15(0x164)];},_0x2d3bea[_0x48891e(0x2be)]=()=>_0x33424b[_0x48891e(0x82b)]('processes',null,_0x48891e(0x6af),[],!![]);const {RawDb:_0x82e922}=requireRawdb();return Object[_0x48891e(0x882)](_0x2d3bea,_0x48891e(0x457),{'get':()=>_0x33424b[_0x48891e(0x70a)]?_0x2d3bea['__desired']||=new _0x82e922(_0x33424b[_0x48891e(0x70a)],_0x48891e(0x781)):undefined}),Object[_0x48891e(0x882)](_0x2d3bea,'_cmd',{'get':()=>_0x33424b[_0x48891e(0x70a)]?_0x2d3bea[_0x48891e(0x46c)]||=new _0x82e922(_0x33424b['_systemEnv'],'~processes:cmd'):undefined}),_0x2d3bea['isActive']=()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x321),[],![]),Object['defineProperty'](_0x2d3bea,_0x48891e(0x351),{'get':()=>_0x33424b[_0x48891e(0x82b)]('processes',null,_0x48891e(0x21e),[],![])}),Object[_0x48891e(0x882)](_0x2d3bea,'_isReader',{'get':()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x1b7),[],![])}),_0x2d3bea[_0x48891e(0x34c)]=()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x377),[],![]),_0x2d3bea[_0x48891e(0x5a0)]=(_0x4def22,_0x363b4b)=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x39d),[_0x4def22,_0x363b4b],![]),_0x2d3bea;}return sys={'makeMeta':_0x41ea7a,'makeLicenses':_0x15ed32,'makeLicenseChecker':_0x525f7f,'makeProcesses':_0x5a1bc7},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x40fe85=_0x1ade1a;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x545a19={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x19509a{constructor(_0x522ba6){const _0x30fd3a=_0x3f13;this[_0x30fd3a(0x555)]=_0x522ba6,this['_sinks']=new Set(),this[_0x30fd3a(0x175)]={};}[_0x40fe85(0x782)](_0x52090b){const _0x27f12c=_0x40fe85,_0x5ba151=new _0x19509a(this[_0x27f12c(0x555)]);return _0x5ba151['_sinks']=this[_0x27f12c(0x4db)],_0x5ba151['_meta']={...this[_0x27f12c(0x175)],..._0x52090b},_0x5ba151;}[_0x40fe85(0x323)](_0x63d0f4){const _0x38f8c3=_0x40fe85;return this['_sinks'][_0x38f8c3(0x76e)](_0x63d0f4),()=>this['_sinks'][_0x38f8c3(0x727)](_0x63d0f4);}[_0x40fe85(0x4f7)](){const _0x213b59=_0x40fe85,_0x310cb3=_0x545a19[process.env.OKDB_LOG_LEVEL]??_0x545a19[_0x213b59(0x786)];return this[_0x213b59(0x759)]=this['attach'](({level:_0x16a99b,msg:_0x3388f0,meta:_0x2ccd6e,context:_0x1db0f5,ts:_0x1bcddf})=>{const _0x372923=_0x213b59;if((_0x545a19[_0x16a99b]??_0x545a19[_0x372923(0x786)])<_0x310cb3)return;if(_0x2ccd6e?.[_0x372923(0x5d1)]===_0x372923(0x4a7)&&(_0x16a99b===_0x372923(0x786)||_0x16a99b==='debug'))return;const _0x46d705=_0x16a99b==='error'?console[_0x372923(0x814)]:_0x16a99b===_0x372923(0x5b0)?console[_0x372923(0x5b0)]:_0x16a99b===_0x372923(0x786)?console['info']:console[_0x372923(0x629)],_0x4e0ae0=_0x2ccd6e&&Object[_0x372923(0x23b)](_0x2ccd6e)[_0x372923(0x479)]>0x0;_0x4e0ae0||_0x1db0f5!==undefined?_0x46d705(new Date(_0x1bcddf)[_0x372923(0x74f)](),_0x3388f0,..._0x4e0ae0?[_0x2ccd6e]:[],..._0x1db0f5!==undefined?[_0x1db0f5]:[]):_0x46d705(new Date(_0x1bcddf)[_0x372923(0x74f)](),_0x3388f0);}),this['_detachConsole'];}[_0x40fe85(0x2d8)](){const _0x46313c=_0x40fe85;this[_0x46313c(0x759)]&&(this['_detachConsole'](),this[_0x46313c(0x759)]=null);}[_0x40fe85(0x728)](_0x947dcc,_0x8e5071){const _0x49f3b5=require$$0$4,_0x54d3ed=0x1f4,_0x3615c6=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x341ba2=[],_0x135791=0x0,_0x254c8d=null;const _0x5a68a8=()=>{const _0x166979=_0x3f13;_0x254c8d=null;if(_0x341ba2['length']===0x0)return;const _0x4f65e0=_0x341ba2;_0x341ba2=[],_0x135791>0x0&&(_0x4f65e0[_0x166979(0x2e6)]({'ts':Date['now'](),'level':_0x166979(0x5b0),'msg':'[log-sink]\x20'+_0x135791+_0x166979(0x243)+(_0x135791===0x1?'y':_0x166979(0x788))+_0x166979(0x6f5),'feature':'log','node':_0x8e5071,'context':null}),_0x135791=0x0),_0x947dcc[_0x166979(0x82f)](_0x1f63a7=>{const _0x394b31=_0x166979;for(const _0x52ae17 of _0x4f65e0)_0x1f63a7[_0x394b31(0x7bc)](_0x394b31(0x3d6),_0x49f3b5[_0x394b31(0x6f1)](),_0x52ae17);})['catch'](()=>{});},_0x258334=this['attach'](({level:_0x3ad706,msg:_0x282f85,meta:_0xe58aa6,context:_0xbb6dcc,ts:_0x5b1fd6})=>{const _0x3398a4=_0x3f13;if(_0x3ad706===_0x3398a4(0x2df))return;_0x341ba2[_0x3398a4(0x479)]>=_0x54d3ed&&(_0x135791++,_0x341ba2[_0x3398a4(0x138)]()),_0x341ba2[_0x3398a4(0x2e6)]({'ts':_0x5b1fd6,'level':_0x3ad706,'msg':_0x282f85,'feature':_0xe58aa6?.[_0x3398a4(0x5d1)]??_0xe58aa6?.[_0x3398a4(0x792)]??null,'node':_0x8e5071,'context':_0xbb6dcc??null}),!_0x254c8d&&(_0x254c8d=setTimeout(_0x5a68a8,_0x3615c6),_0x254c8d[_0x3398a4(0x7ed)]?.());});return()=>{_0x258334();if(_0x254c8d)clearTimeout(_0x254c8d);_0x5a68a8();};}[_0x40fe85(0x2b3)](_0x4bb337,_0x406901,_0x10b243){const _0x15ff56=_0x40fe85;_0x406901 instanceof Error&&(_0x10b243={'message':_0x406901[_0x15ff56(0x806)],'stack':_0x406901['stack'],..._0x10b243},_0x406901=_0x406901[_0x15ff56(0x806)]);const _0x53bbb4={'level':_0x4bb337,'msg':_0x406901,'meta':{...this[_0x15ff56(0x175)]},'context':_0x10b243,'ts':Date[_0x15ff56(0x38b)]()};try{this[_0x15ff56(0x555)][_0x15ff56(0x425)]['emit'](_0x15ff56(0x629),_0x53bbb4);}catch{}for(const _0x399604 of this[_0x15ff56(0x4db)]){try{_0x399604(_0x53bbb4);}catch{}}}['ingest'](_0xa6326){const _0x10a0ae=_0x40fe85;try{this[_0x10a0ae(0x555)]?.['events']?.[_0x10a0ae(0x7bb)]('log',_0xa6326);}catch{}for(const _0x3666b8 of this[_0x10a0ae(0x4db)]){try{_0x3666b8(_0xa6326);}catch{}}}['info'](_0x32e1ee,_0x18fba6){const _0x25fe6d=_0x40fe85;this[_0x25fe6d(0x2b3)](_0x25fe6d(0x786),_0x32e1ee,_0x18fba6);}[_0x40fe85(0x5b0)](_0x4e7110,_0x3728c6){const _0x1c09ee=_0x40fe85;this[_0x1c09ee(0x2b3)](_0x1c09ee(0x5b0),_0x4e7110,_0x3728c6);}['error'](_0x2ee591,_0x478f1c){const _0x3673db=_0x40fe85;this['_emit'](_0x3673db(0x814),_0x2ee591,_0x478f1c);}[_0x40fe85(0x2df)](_0x56ae85,_0x58bef0){const _0x1e10e5=_0x40fe85;this['_emit'](_0x1e10e5(0x2df),_0x56ae85,_0x58bef0);}}return okdbLogger=_0x19509a,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x436f88=_0x1ade1a;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x2f5b33}=requireOkdbEnums(),{OKDBError:_0x84fa8c}=requireOkdbError();class _0x5269c1{constructor(_0x16ebb7){const _0x3fb840=_0x3f13;this['okdb']=_0x16ebb7,this[_0x3fb840(0x6a5)]=[];}[_0x436f88(0x6f8)](_0x561a54,_0x4bd176){const _0x2c6763=_0x436f88;if(this[_0x2c6763(0x555)][_0x2c6763(0x823)]!==_0x2f5b33[_0x2c6763(0x13c)])throw new _0x84fa8c('Cannot\x20register\x20plugins\x20after\x20start','INVALID_STATE',{'state':this[_0x2c6763(0x555)]['state']});if(!_0x561a54[_0x2c6763(0x885)])throw new _0x84fa8c(_0x2c6763(0x3aa),_0x2c6763(0x7c2),{'plugin':_0x561a54[_0x2c6763(0x885)]});const _0x6633fa=_0x561a54[_0x2c6763(0x3c8)]??[];for(const _0xd41375 of _0x6633fa){if(!this[_0x2c6763(0x6a5)][_0x2c6763(0x737)](_0x209391=>_0x209391['module'][_0x2c6763(0x885)]===_0xd41375))throw new _0x84fa8c('Missing\x20plugin:\x20'+_0xd41375+_0x2c6763(0x4ce)+_0x561a54['name']+')','PLUGIN_DEPENDENCY_MISSING',{'required':_0xd41375});}if(this['_plugins'][_0x2c6763(0x310)](_0x174d74=>_0x174d74[_0x2c6763(0x792)][_0x2c6763(0x885)]===_0x561a54[_0x2c6763(0x885)]))throw new _0x84fa8c(_0x2c6763(0x199)+_0x561a54['name']+_0x2c6763(0x68e),_0x2c6763(0x7f4),{'plugin':_0x561a54['name']});if(_0x561a54['name']in this[_0x2c6763(0x555)])throw new _0x84fa8c(_0x2c6763(0x520)+_0x561a54[_0x2c6763(0x885)]+_0x2c6763(0x4cd),_0x2c6763(0x264));const _0x509f64=_0x561a54[_0x2c6763(0x6f8)](this[_0x2c6763(0x555)],_0x4bd176);if(!_0x509f64||typeof _0x509f64!==_0x2c6763(0x6f7))throw new _0x84fa8c(_0x2c6763(0x199)+_0x561a54[_0x2c6763(0x885)]+_0x2c6763(0x80b),_0x2c6763(0x7c2),{'plugin':_0x561a54[_0x2c6763(0x885)]});this[_0x2c6763(0x6a5)]['push']({'module':_0x561a54,'options':_0x4bd176,'instance':_0x509f64});}[_0x436f88(0x33e)]=[];async[_0x436f88(0x525)](){const _0x18ad82=_0x436f88;try{for(const _0x13cc1b of this[_0x18ad82(0x6a5)]){await _0x13cc1b[_0x18ad82(0x4dc)][_0x18ad82(0x525)]?.(this[_0x18ad82(0x555)]),this['_started'][_0x18ad82(0x2e6)](_0x13cc1b);}}catch(_0xe8bd95){await this[_0x18ad82(0x851)]()['catch'](()=>{});throw _0xe8bd95;}}async[_0x436f88(0x851)](){const _0x30bad7=_0x436f88,_0x904947=this['_started'][_0x30bad7(0x1a8)]();this['_started']=[];let _0x270964=null;for(const _0x4dab7b of _0x904947){try{await _0x4dab7b[_0x30bad7(0x4dc)][_0x30bad7(0x851)]?.(this[_0x30bad7(0x555)]);}catch(_0x451fbf){_0x270964??=_0x451fbf;}}if(_0x270964)throw _0x270964;}}return okdbPlugins=_0x5269c1,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x5b7dd4=_0x1ade1a;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x29aae2={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':'balanced'},_0x3f03c8=new Set(['maxDbs',_0x5b7dd4(0x71e),'compression',_0x5b7dd4(0x6b0),'encryptionKeys',_0x5b7dd4(0x166),_0x5b7dd4(0x467),'allowUnsafe',_0x5b7dd4(0x878),_0x5b7dd4(0x470),_0x5b7dd4(0x7a8),'queue',_0x5b7dd4(0x4a7),_0x5b7dd4(0x337),'mcp','runtimeDeclarations',_0x5b7dd4(0x629),_0x5b7dd4(0x1e9),_0x5b7dd4(0x516),'engines',_0x5b7dd4(0x1f3),'compaction','processes',_0x5b7dd4(0x5f8),_0x5b7dd4(0x4fc),_0x5b7dd4(0x879),_0x5b7dd4(0x7ea),_0x5b7dd4(0x2df),_0x5b7dd4(0x514),_0x5b7dd4(0x7c8)]),_0x2f708d={'http':'there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called'};return statics={'defaults':_0x29aae2,'KNOWN_OPTIONS':_0x3f03c8,'_OPTION_HINTS':_0x2f708d},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x2c1340=_0x1ade1a;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x942b05=require$$0$2,_0x326ec8='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x2ad36b=_0x942b05[_0x2c1340(0x858)](_0x2c1340(0x3d1))[_0x2c1340(0x601)](_0x942b05[_0x2c1340(0x5f9)](_0x326ec8)[_0x2c1340(0x333)]({'type':_0x2c1340(0x20a),'format':_0x2c1340(0x81e)}))[_0x2c1340(0x385)]('hex')['slice'](0x0,0x10),_0xd07f6e={'LICENSED_BUILD':_0x2c1340(0x2fa),'PUBLIC_KEY_PEM':_0x326ec8,'PUB_FINGERPRINT':_0x2ad36b,'LICENSE_EXPIRED_ACTION':_0x2c1340(0x629)};return licenseConfig={'_C':_0xd07f6e,'PUBLIC_KEY_PEM':_0x326ec8,'PUB_FINGERPRINT':_0x2ad36b},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x49e20d=_0x1ade1a;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x4d9b36=require$$0$5,{OKDBError:_0x43b1f1}=requireOkdbError(),_0x2b96b7=[_0x49e20d(0x396),_0x49e20d(0x6d9),_0x49e20d(0x13f),'$gte',_0x49e20d(0x73b),_0x49e20d(0x4df),'$in',_0x49e20d(0x706),_0x49e20d(0x17e),_0x49e20d(0x36e),_0x49e20d(0x3c6),_0x49e20d(0x336),_0x49e20d(0x3c0),'$all','$type','$elemMatch',_0x49e20d(0x189),_0x49e20d(0x170),_0x49e20d(0x266),_0x49e20d(0x508)],_0x250c7e=[_0x49e20d(0x5d9)];function _0x29ae00(_0x4a5b8a){return()=>{const _0x474b7e=_0x3f13,_0x41d3e9=new _0x43b1f1(_0x474b7e(0x341)+_0x4a5b8a+_0x474b7e(0x719),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x4a5b8a});_0x41d3e9[_0x474b7e(0x371)]=0x190;throw _0x41d3e9;};}const _0x3b9eb2=Object[_0x49e20d(0x493)]({...Object[_0x49e20d(0x237)](_0x2b96b7[_0x49e20d(0x6f2)](_0x307a66=>[_0x307a66,_0x4d9b36[_0x307a66]])),...Object['fromEntries'](_0x250c7e[_0x49e20d(0x6f2)](_0x4c90c2=>[_0x4c90c2,_0x29ae00(_0x4c90c2)]))});function _0x5bf1cc(_0x56b731){const _0x1e21be=_0x49e20d;return _0x4d9b36[_0x1e21be(0x614)](_0x56b731,{'operations':_0x3b9eb2});}function _0x331306(_0xd2585c){const _0x26845b=_0x49e20d;if(_0xd2585c==null)return;try{_0x5bf1cc(_0xd2585c);}catch(_0x5df0bb){if(_0x5df0bb?.['code']===_0x26845b(0x826))throw _0x5df0bb;}}return okdbQueryFilter={'compileFilter':_0x5bf1cc,'assertFilterAllowed':_0x331306,'ALLOWED_OPERATORS':_0x2b96b7,'FORBIDDEN_OPERATORS':_0x250c7e},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x28b818=_0x1ade1a;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0xf97d17,EVENTS:_0x5cf4d4}=requireOkdbEnums(),{OKDBError:_0x1565bb,OKDBForeignKeyDeleteError:_0x448950}=requireOkdbError(),_0x50674e=_0x28b818(0x725),_0x35567b=new Set([_0x28b818(0x3b0),_0x28b818(0x391),'set_null',_0x28b818(0x76b)]);function _0x29af23(_0x8a4716,_0x9549d2){const _0x456ed0=_0x28b818;if(_0x8a4716==null||!_0x9549d2)return undefined;const _0xcf20a6=_0x9549d2[_0x456ed0(0x3bd)]('.');let _0x2ab878=_0x8a4716;for(const _0x8dbc43 of _0xcf20a6){if(_0x2ab878==null||typeof _0x2ab878!==_0x456ed0(0x6f7)||!(_0x8dbc43 in _0x2ab878))return undefined;_0x2ab878=_0x2ab878[_0x8dbc43];}return _0x2ab878;}function _0x258f30(_0x2c2c36,_0xc82813,_0x47f052){const _0x56b3fc=_0x28b818,_0x4db36b=_0xc82813[_0x56b3fc(0x3bd)]('.'),_0x2751e8={..._0x2c2c36};let _0x280d40=_0x2751e8;for(let _0x3e84f1=0x0;_0x3e84f1<_0x4db36b[_0x56b3fc(0x479)]-0x1;_0x3e84f1++){_0x280d40[_0x4db36b[_0x3e84f1]]=_0x280d40[_0x4db36b[_0x3e84f1]]!=null?{..._0x280d40[_0x4db36b[_0x3e84f1]]}:{},_0x280d40=_0x280d40[_0x4db36b[_0x3e84f1]];}return _0x280d40[_0x4db36b[_0x4db36b[_0x56b3fc(0x479)]-0x1]]=_0x47f052,_0x2751e8;}function _0x9f620e(_0x41ebf3,_0x2c6324,_0x54c651,_0x1f512f,_0x3bb38e){return[_0x41ebf3,_0x2c6324,_0x54c651,_0x1f512f,_0x3bb38e];}function _0x237787(_0x44ec66){const _0xa49b0d=_0x28b818;return typeof _0x44ec66===_0xa49b0d(0x4c1)||typeof _0x44ec66==='number';}function _0x54296f(_0x3362e5,_0x5ae42e){return JSON['stringify']([_0x3362e5,_0x5ae42e]);}function*_0x2690e3(_0x2243b6,_0x427210,_0xc0726){const _0x4d3b17=_0x28b818,_0x2ed0ad=_0xc0726!==undefined;for(const {key:_0x17e931}of _0x2243b6[_0x4d3b17(0x805)]({'start':_0x2ed0ad?[_0x427210,_0xc0726]:[_0x427210]})){if(!Array['isArray'](_0x17e931))continue;if(_0x17e931[0x0]!==_0x427210||_0x2ed0ad&&_0x17e931[0x1]!==_0xc0726)break;yield _0x17e931;}}function _0x3742a9(_0x264117,_0x47abc2='',_0x428f02=null){const _0x36c334=_0x28b818,_0x227799=[];if(!_0x264117||typeof _0x264117!==_0x36c334(0x6f7))return _0x227799;if(!_0x428f02)_0x428f02=_0x264117;if(_0x264117[_0x36c334(0x169)]){const _0x29b2b2=_0x264117[_0x36c334(0x169)][_0x36c334(0x251)](/^#\/\$defs\/(.+)$/);if(_0x29b2b2&&_0x428f02?.[_0x36c334(0x4ae)]?.[_0x29b2b2[0x1]])return _0x3742a9(_0x428f02[_0x36c334(0x4ae)][_0x29b2b2[0x1]],_0x47abc2,_0x428f02);return _0x227799;}if(_0x264117['ref']&&typeof _0x264117['ref']===_0x36c334(0x6f7)&&_0x264117[_0x36c334(0x3e4)][_0x36c334(0x79c)]){const _0x36139d=_0x264117[_0x36c334(0x3e4)][_0x36c334(0x573)]||_0x36c334(0x3b0);if(!_0x35567b[_0x36c334(0x4a8)](_0x36139d))throw new _0x1565bb(_0x36c334(0x61c)+_0x36139d+_0x36c334(0x15f)+(_0x47abc2||_0x36c334(0x54f))+_0x36c334(0x4f6)+[..._0x35567b][_0x36c334(0x6a2)](',\x20'),_0x36c334(0x28b));_0x227799[_0x36c334(0x2e6)]({'fieldPath':_0x47abc2,'targetType':_0x264117[_0x36c334(0x3e4)][_0x36c334(0x79c)],'onDelete':_0x36139d});}if(_0x264117[_0x36c334(0x4c3)])for(const [_0x22fb15,_0x5930be]of Object['entries'](_0x264117[_0x36c334(0x4c3)])){const _0x2fc0f9=_0x47abc2?_0x47abc2+'.'+_0x22fb15:_0x22fb15;_0x227799['push'](..._0x3742a9(_0x5930be,_0x2fc0f9,_0x428f02));}return _0x227799;}function _0x4cdfa5(_0x2b7ac7){const _0x149422=_0x28b818,_0x155423=new Map(),_0xeac329=new Map();for(const _0x43172a of _0x2b7ac7['_typeKeys']()){if(_0x43172a[_0x149422(0x70d)]('~'))continue;const _0x405649=_0x2b7ac7[_0x149422(0x1bb)][_0x149422(0x616)](_0x43172a);if(!_0x405649?.[_0x149422(0x17d)]?.[_0x149422(0x56a)])continue;let _0x4aefbc;try{_0x4aefbc=_0x3742a9(_0x405649['schema'][_0x149422(0x56a)]);}catch{continue;}if(_0x4aefbc['length']>0x0){_0x155423['set'](_0x43172a,_0x4aefbc);for(const _0x4924cc of _0x4aefbc){if(!_0xeac329[_0x149422(0x4a8)](_0x4924cc[_0x149422(0x4d8)]))_0xeac329[_0x149422(0x488)](_0x4924cc[_0x149422(0x4d8)],[]);_0xeac329[_0x149422(0x616)](_0x4924cc['targetType'])[_0x149422(0x2e6)]({'sourceType':_0x43172a,'fieldPath':_0x4924cc[_0x149422(0x702)],'onDelete':_0x4924cc[_0x149422(0x573)]});}}}_0x2b7ac7[_0x149422(0x50e)]={'outgoing':_0x155423,'incoming':_0xeac329};if(_0x155423['size']>0x0)_0x11d54e(_0x2b7ac7);}function _0xd31167(_0x57f8,_0x4f8a41){const _0x59b475=_0x28b818;return _0x57f8['_refCache'][_0x59b475(0x390)][_0x59b475(0x616)](_0x4f8a41)||[];}function _0x1b47b0(_0x19436a,_0x3c117a){return _0x19436a['_refCache']['incoming']['get'](_0x3c117a)||[];}function _0x11d54e(_0x5dcf83){const _0x5482dd=_0x28b818;if(_0x5dcf83[_0x5482dd(0x38d)])return _0x5dcf83[_0x5482dd(0x38d)];return _0x5dcf83[_0x5482dd(0x38d)]=_0x5dcf83['db'][_0x5482dd(0x55a)](_0x5482dd(0x315),{'dupSort':![]}),_0x5dcf83[_0x5482dd(0x38d)];}function _0x599f8a(_0x42a65c,_0x33674b,_0x9ddc4,_0x13a4e0,_0x2f0893){const _0x207679=_0x28b818,_0x2f8606=_0xd31167(_0x42a65c,_0x33674b);if(_0x2f8606['length']===0x0)return;const _0x44a23e=_0x11d54e(_0x42a65c);for(const _0x3482e3 of _0x2f8606){const _0x23bd5f=_0x2f0893!=null?_0x29af23(_0x2f0893,_0x3482e3[_0x207679(0x702)]):undefined,_0x4b091f=_0x13a4e0!=null?_0x29af23(_0x13a4e0,_0x3482e3[_0x207679(0x702)]):undefined;if(_0x23bd5f===_0x4b091f)continue;_0x237787(_0x23bd5f)&&_0x44a23e[_0x207679(0x7b1)](_0x9f620e(_0x3482e3['targetType'],_0x23bd5f,_0x33674b,_0x9ddc4,_0x3482e3[_0x207679(0x702)])),_0x237787(_0x4b091f)&&_0x44a23e[_0x207679(0x3c7)](_0x9f620e(_0x3482e3[_0x207679(0x4d8)],_0x4b091f,_0x33674b,_0x9ddc4,_0x3482e3['fieldPath']),0x1);}}function _0x255e37(_0x368303,_0x116117,_0x10b83d,_0x32c588){const _0x5c0031=_0x28b818,_0x31ec4c=_0xd31167(_0x368303,_0x116117);if(_0x31ec4c[_0x5c0031(0x479)]===0x0)return;const _0x62da4c=_0x11d54e(_0x368303);for(const _0x3b3119 of _0x31ec4c){const _0x360319=_0x32c588!=null?_0x29af23(_0x32c588,_0x3b3119[_0x5c0031(0x702)]):undefined;_0x237787(_0x360319)&&_0x62da4c[_0x5c0031(0x7b1)](_0x9f620e(_0x3b3119[_0x5c0031(0x4d8)],_0x360319,_0x116117,_0x10b83d,_0x3b3119[_0x5c0031(0x702)]));}}function _0x375cfe(_0x723640,_0x48ca64,_0xa4226f,_0x2059bf){const _0x39edb0=_0x28b818,_0x540a1d=_0xd31167(_0x723640,_0x48ca64);if(_0x540a1d[_0x39edb0(0x479)]===0x0)return[];const _0xc5c8c7=[];for(const _0x1ac998 of _0x540a1d){const _0x57075d=_0x29af23(_0x2059bf,_0x1ac998[_0x39edb0(0x702)]);if(_0x57075d==null)continue;if(!_0x723640[_0x39edb0(0x176)](_0x1ac998[_0x39edb0(0x4d8)])){_0xc5c8c7[_0x39edb0(0x2e6)]({'fieldPath':_0x1ac998[_0x39edb0(0x702)],'targetType':_0x1ac998[_0x39edb0(0x4d8)],'targetKey':_0x57075d,'message':_0x39edb0(0x550)+_0x1ac998[_0x39edb0(0x4d8)]+_0x39edb0(0x328)});continue;}const _0x113628=_0x723640[_0x39edb0(0x83f)](_0x1ac998[_0x39edb0(0x4d8)])[_0x39edb0(0x522)];!_0x113628['doesExist'](_0x57075d)&&_0xc5c8c7[_0x39edb0(0x2e6)]({'fieldPath':_0x1ac998['fieldPath'],'targetType':_0x1ac998[_0x39edb0(0x4d8)],'targetKey':_0x57075d,'message':'Referenced\x20key\x20\x27'+_0x57075d+_0x39edb0(0x476)+_0x1ac998[_0x39edb0(0x4d8)]+'\x27'});}return _0xc5c8c7;}function _0x31d4df(_0x849cdc,_0x134dda,_0x1d0937,_0x1bb1f3,_0x9d435f,{timestamp:_0x3bba3b,origin:_0x487ada,_cascadeVisited:_0x494853}){const _0x190a43=_0x28b818,_0x125229=_0x1b47b0(_0x849cdc,_0x1d0937);if(_0x125229[_0x190a43(0x479)]===0x0)return;const _0x39c358=_0x11d54e(_0x849cdc),_0xba373d=[];for(const [,,_0x2cb6c8,_0xd3278d,_0x3a32b8]of _0x2690e3(_0x39c358,_0x1d0937,_0x1bb1f3)){_0xba373d[_0x190a43(0x2e6)]({'sourceType':_0x2cb6c8,'sourceKey':_0xd3278d,'fieldPath':_0x3a32b8});}if(_0xba373d[_0x190a43(0x479)]===0x0)return;for(const _0x4f4d0c of _0xba373d){const _0xe5b184=_0x125229['find'](_0x2f05bb=>_0x2f05bb[_0x190a43(0x327)]===_0x4f4d0c[_0x190a43(0x327)]&&_0x2f05bb['fieldPath']===_0x4f4d0c[_0x190a43(0x702)]),_0x18243c=_0xe5b184?.[_0x190a43(0x573)]||_0x190a43(0x3b0);switch(_0x18243c){case _0x190a43(0x76b):{if(_0x487ada===null)throw new _0x448950(_0x1d0937,_0x1bb1f3,_0xba373d['filter'](_0x4db671=>{const _0x1de98c=_0x190a43,_0x186ad3=_0x125229['find'](_0x1450e3=>_0x1450e3['sourceType']===_0x4db671[_0x1de98c(0x327)]&&_0x1450e3[_0x1de98c(0x702)]===_0x4db671[_0x1de98c(0x702)]);return(_0x186ad3?.[_0x1de98c(0x573)]||_0x1de98c(0x3b0))===_0x1de98c(0x76b);}));break;}case _0x190a43(0x391):{const _0x359351=_0x54296f(_0x4f4d0c[_0x190a43(0x327)],_0x4f4d0c[_0x190a43(0x600)]);if(_0x494853[_0x190a43(0x4a8)](_0x359351))continue;_0x849cdc[_0x190a43(0x83f)](_0x4f4d0c[_0x190a43(0x327)])['data'][_0x190a43(0x7e9)](_0x4f4d0c['sourceKey'])&&_0x849cdc[_0x190a43(0x498)](_0x134dda,_0x4f4d0c[_0x190a43(0x327)],_0x4f4d0c[_0x190a43(0x600)],{'timestamp':_0x3bba3b,'origin':_0x487ada,'_cascadeVisited':_0x494853});break;}case _0x190a43(0x36c):{const _0xfc96df=_0x849cdc[_0x190a43(0x83f)](_0x4f4d0c[_0x190a43(0x327)])[_0x190a43(0x522)],_0x43541d=_0xfc96df[_0x190a43(0x242)](_0x4f4d0c[_0x190a43(0x600)]);if(_0x43541d){const _0x2a5a8a=_0x258f30(_0x43541d[_0x190a43(0x7fd)],_0x4f4d0c[_0x190a43(0x702)],null);_0x849cdc[_0x190a43(0x2da)](_0x134dda,_0x190a43(0x7bc),_0x4f4d0c[_0x190a43(0x327)],_0x4f4d0c[_0x190a43(0x600)],_0x2a5a8a,{'timestamp':_0x3bba3b,'origin':_0x487ada,'_cascading':!![]});}break;}}}}function _0xff51ce(_0x99fd2c){const _0x28f66c=_0x28b818;!_0x99fd2c[_0x28f66c(0x176)](_0x50674e)&&_0x99fd2c[_0x28f66c(0x4a5)](_0x50674e);}function _0x5d4447(_0x3715c4,_0x4cd7b9,_0x482852,_0x500272,_0x3dba18,_0x3dcb77,_0x1e5a7c,{timestamp:timestamp=Date[_0x28b818(0x38b)](),origin:origin=null}={}){const _0x54eaef=_0x28b818;_0xff51ce(_0x3715c4);const _0x484ba9=_0x482852+'@'+_0x500272+'@'+_0x3dba18,_0x2ef98d={'sourceType':_0x482852,'sourceKey':_0x500272,'fieldPath':_0x3dba18,'targetType':_0x3dcb77,'targetKey':_0x1e5a7c,'timestamp':timestamp,'origin':origin},_0x4548f9=_0x3715c4['_getType'](_0x50674e)['data'],_0x1e7e4e=_0x4548f9['getEntry'](_0x484ba9),_0x2e2de0=_0x1e7e4e?_0x1e7e4e[_0x54eaef(0x2ce)]+0x1:0x1;_0x4548f9[_0x54eaef(0x3c7)](_0x484ba9,_0x2ef98d,_0x2e2de0),_0x3715c4[_0x54eaef(0x50f)]({'id':_0x54eaef(0x15b)+_0x50674e+'@'+_0x484ba9,'type':_0x50674e,'key':_0x484ba9,'action':_0xf97d17[_0x54eaef(0x7cc)],'timestamp':timestamp,'txnId':_0x4cd7b9?.['id'],'origin':origin},_0x1e7e4e?.['value'],_0x2ef98d),_0x3715c4[_0x54eaef(0x425)][_0x54eaef(0x7bb)](_0x5cf4d4[_0x54eaef(0x5bc)],{'sourceType':_0x482852,'sourceKey':_0x500272,'fieldPath':_0x3dba18,'targetType':_0x3dcb77,'targetKey':_0x1e5a7c,'env':_0x3715c4[_0x54eaef(0x885)]});}function _0x9e01d7(_0x27cd3e,_0x247ded,_0x3378fc,_0x1d501b,_0x44487e,{timestamp:timestamp=Date[_0x28b818(0x38b)](),origin:origin=null}={}){const _0x2e9301=_0x28b818;if(!_0x27cd3e[_0x2e9301(0x176)](_0x50674e))return;const _0x496ef7=_0x3378fc+'@'+_0x1d501b+'@'+_0x44487e,_0x3b11cb=_0x27cd3e[_0x2e9301(0x83f)](_0x50674e)[_0x2e9301(0x522)],_0x9a80f9=_0x3b11cb['getEntry'](_0x496ef7);if(!_0x9a80f9)return;_0x3b11cb[_0x2e9301(0x7b1)](_0x496ef7),_0x27cd3e['_logChange']({'id':_0x2e9301(0x15b)+_0x50674e+'@'+_0x496ef7,'type':_0x50674e,'key':_0x496ef7,'action':_0xf97d17['REMOVE'],'timestamp':timestamp,'txnId':_0x247ded?.['id'],'origin':origin},_0x9a80f9['value'],undefined),_0x27cd3e['events']['emit'](_0x5cf4d4[_0x2e9301(0x403)],{'sourceType':_0x3378fc,'sourceKey':_0x1d501b,'fieldPath':_0x44487e,'env':_0x27cd3e[_0x2e9301(0x885)]});}function _0x4757e9(_0x54d1b3,_0x3fa505,_0x771d15,_0x1b85c1,_0x1cff10={}){const _0x25814e=_0x28b818;if(!_0x54d1b3[_0x25814e(0x176)](_0x50674e))return;const _0xfcd5ca=_0x54d1b3['_getType'](_0x50674e)[_0x25814e(0x522)],_0x29cfe4=_0x771d15+'@'+_0x1b85c1+'@',_0x21636a=[];for(const {key:_0x28a380,value:_0x2f16ce}of _0xfcd5ca[_0x25814e(0x805)]({'start':_0x29cfe4,'end':_0x29cfe4+'\uffff'})){if(_0x2f16ce?.[_0x25814e(0x327)]===_0x771d15&&_0x2f16ce?.['sourceKey']===_0x1b85c1)_0x21636a['push'](_0x28a380);}for(const _0x569333 of _0x21636a){const _0x73f37d=_0xfcd5ca[_0x25814e(0x242)](_0x569333);if(!_0x73f37d)continue;_0xfcd5ca['removeSync'](_0x569333),_0x54d1b3[_0x25814e(0x50f)]({'id':_0x25814e(0x15b)+_0x50674e+'@'+_0x569333,'type':_0x50674e,'key':_0x569333,'action':_0xf97d17[_0x25814e(0x383)],'timestamp':_0x1cff10[_0x25814e(0x217)]||Date[_0x25814e(0x38b)](),'txnId':_0x3fa505?.['id'],'origin':_0x1cff10[_0x25814e(0x348)]},_0x73f37d[_0x25814e(0x7fd)],undefined);}}function _0x175450(_0x3bfdd3,_0x5abb45){const _0xd4dd87=_0x28b818;if(!_0x3bfdd3[_0xd4dd87(0x176)](_0x50674e))return;const _0x1f411e=_0x3bfdd3[_0xd4dd87(0x83f)](_0x50674e)['data'],_0x395607=_0x5abb45+'@',_0x4dc94e=[];for(const {key:_0xe9659a,value:_0x477b1d}of _0x1f411e[_0xd4dd87(0x805)]({'start':_0x395607,'end':_0x395607+'\uffff'})){if(_0x477b1d?.[_0xd4dd87(0x327)]===_0x5abb45)_0x4dc94e['push'](_0xe9659a);}for(const _0x44dde9 of _0x4dc94e)_0x1f411e[_0xd4dd87(0x7b1)](_0x44dde9);}async function _0x37a2f6(_0x37b6de,_0x476079){const _0x11efda=_0x28b818,_0x13b077=_0xd31167(_0x37b6de,_0x476079);if(_0x13b077[_0x11efda(0x479)]===0x0)return;await _0x37b6de[_0x11efda(0x57b)]['transaction'](()=>{const _0x30695f=_0x11efda;for(const {key:_0x322c92,value:_0x311b80}of _0x37b6de[_0x30695f(0x805)](_0x476079)){_0x599f8a(_0x37b6de,_0x476079,_0x322c92,_0x311b80,null);const _0x59d18d=_0x375cfe(_0x37b6de,_0x476079,_0x322c92,_0x311b80);for(const _0x1e876f of _0x59d18d){_0x5d4447(_0x37b6de,null,_0x476079,_0x322c92,_0x1e876f[_0x30695f(0x702)],_0x1e876f[_0x30695f(0x4d8)],_0x1e876f[_0x30695f(0x734)]);}}});}const _0x271492=0x1388;async function _0x11affb(_0x57b0d0){const _0xd2906d=_0x28b818,_0xf9a49a=_0x57b0d0['_refCache']?.['outgoing']?.[_0xd2906d(0x1d3)]>0x0;if(!_0xf9a49a&&!_0x57b0d0[_0xd2906d(0x38d)])return{'dropped':0x0,'written':0x0};const _0x2d722f=_0x11d54e(_0x57b0d0);let _0xbbe7ec=0x0;for(;;){const _0x3b5497=Array[_0xd2906d(0x5f7)](_0x2d722f[_0xd2906d(0x42e)]({'limit':_0x271492}));if(_0x3b5497['length']===0x0)break;let _0x306fda=0x0;await _0x57b0d0['_writer'][_0xd2906d(0x84d)](()=>{for(const _0x43b94a of _0x3b5497)if(_0x2d722f['removeSync'](_0x43b94a))_0x306fda++;});if(_0x306fda===0x0)break;_0xbbe7ec+=_0x306fda;}let _0x1a7e4f=0x0;for(const _0x45a5f6 of _0x57b0d0['_refCache'][_0xd2906d(0x390)][_0xd2906d(0x23b)]()){if(_0x45a5f6[_0xd2906d(0x70d)]('~')||!_0x57b0d0['hasType'](_0x45a5f6))continue;const _0x74f36e=_0xd31167(_0x57b0d0,_0x45a5f6);await _0x57b0d0[_0xd2906d(0x57b)]['transaction'](()=>{const _0x2cd9db=_0xd2906d;for(const {key:_0x39775c,value:_0x5f5276}of _0x57b0d0[_0x2cd9db(0x805)](_0x45a5f6)){for(const _0x1d6052 of _0x74f36e){const _0x314b16=_0x29af23(_0x5f5276,_0x1d6052[_0x2cd9db(0x702)]);if(!_0x237787(_0x314b16))continue;_0x2d722f['putSync'](_0x9f620e(_0x1d6052[_0x2cd9db(0x4d8)],_0x314b16,_0x45a5f6,_0x39775c,_0x1d6052[_0x2cd9db(0x702)]),0x1),_0x1a7e4f++;}}});}return{'dropped':_0xbbe7ec,'written':_0x1a7e4f};}return okdbEnvRefs={'getFieldValue':_0x29af23,'setFieldValue':_0x258f30,'refIndexKey':_0x9f620e,'isRefTarget':_0x237787,'cascadeVisitKey':_0x54296f,'extractRefs':_0x3742a9,'rebuildRefCache':_0x4cdfa5,'getTypeRefs':_0xd31167,'getIncomingRefs':_0x1b47b0,'getRefIndexDb':_0x11d54e,'updateRefIndex':_0x599f8a,'removeRefIndexEntries':_0x255e37,'refIndexRowsFor':_0x2690e3,'rebuildRefIndex':_0x11affb,'checkForeignKeys':_0x375cfe,'processDeleteCascade':_0x31d4df,'setRefViolation':_0x5d4447,'clearRefViolation':_0x9e01d7,'clearRefViolationsForKey':_0x4757e9,'clearRefViolationsForType':_0x175450,'syncRefIndex':_0x37a2f6},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x2b4efd=_0x1ade1a;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore['exports'];hasRequiredOkdbSubscriptionsStore=0x1;const _0x2417c5=require$$0$4,{assertFilterAllowed:_0x1920d2}=requireOkdbQueryFilter(),{rebuildRefCache:_0x2550d3}=requireOkdbEnvRefs(),_0x3cddaf=_0x2b4efd(0x2e1),_0x5289ef=_0x2b4efd(0x1a4),_0xe48e51='interest',_0xb73eb5=[_0x2b4efd(0x29e),_0x2b4efd(0x79c),'key'],_0x424540=['dataEnv',_0x2b4efd(0x79c)],_0x35328f=0x5a*0x3e8,_0xa4b985=Math[_0x2b4efd(0x63f)](_0x35328f/0x2);class _0x34823c{constructor(_0x314c6c,_0x2a284b={}){const _0x48833c=_0x2b4efd;this[_0x48833c(0x555)]=_0x314c6c,this[_0x48833c(0x1a3)]=Number[_0x48833c(0x560)](_0x2a284b[_0x48833c(0x1a3)])&&_0x2a284b[_0x48833c(0x1a3)]>0x0?_0x2a284b[_0x48833c(0x1a3)]:_0x35328f,this[_0x48833c(0x6ca)]=Number[_0x48833c(0x560)](_0x2a284b[_0x48833c(0x6ca)])?_0x2a284b[_0x48833c(0x6ca)]:_0xa4b985,this[_0x48833c(0x5ba)]=null;}async['open'](){const _0x49e630=_0x2b4efd;if(this[_0x49e630(0x5ba)])return this['_sub'];const _0x378f1d=await this[_0x49e630(0x555)]['createEnvironment'](_0x3cddaf,{'sync':![]});return await _0x378f1d['ensureType'](_0x5289ef,{'indexes':[_0x424540]}),await _0x378f1d[_0x49e630(0x85d)](_0xe48e51),_0x378f1d[_0x49e630(0x384)](_0xe48e51)?_0x2550d3(_0x378f1d):await _0x378f1d[_0x49e630(0x4e4)](_0xe48e51,{'definition':{'type':_0x49e630(0x6f7),'properties':{'sessionId':{'type':_0x49e630(0x4c1),'ref':{'type':_0x5289ef,'onDelete':_0x49e630(0x391)}},'dataEnv':{'type':_0x49e630(0x4c1)},'type':{'type':_0x49e630(0x4c1)},'key':{'type':'string'}},'required':[_0x49e630(0x585),'dataEnv',_0x49e630(0x79c),_0x49e630(0x491)]},'enforce':!![]}),await _0x378f1d[_0x49e630(0x85d)](_0xe48e51,{'indexes':[_0xb73eb5]}),await _0x378f1d[_0x49e630(0x21c)](_0xe48e51,_0xb73eb5),await _0x378f1d['indexReady'](_0x5289ef,_0x424540),this[_0x49e630(0x5ba)]=_0x378f1d,_0x378f1d;}['_env'](){const _0x252acb=_0x2b4efd;if(!this['_sub'])throw new Error(_0x252acb(0x3ad));return this['_sub'];}async['createSession']({sessionId:_0x55623e,dataEnv:_0xdcd21f,type:_0x2f44a1,filter:filter=null,ttlMs:_0x16bd55}={}){const _0x94a568=_0x2b4efd,_0x1aa6e5=this[_0x94a568(0x6f4)]();_0x1920d2(filter);const _0x269137=_0x55623e!=null&&String(_0x55623e)[_0x94a568(0x479)]>0x0?String(_0x55623e):_0x2417c5[_0x94a568(0x6f1)](),_0x2a3f9c=Number[_0x94a568(0x560)](_0x16bd55)&&_0x16bd55>0x0?_0x16bd55:this[_0x94a568(0x1a3)],_0x4dca29=Date[_0x94a568(0x38b)](),_0x517e77={'sessionId':_0x269137,'dataEnv':_0xdcd21f,'type':_0x2f44a1,'filter':filter??null,'version':0x0,'createdAt':_0x4dca29,'expiresAt':_0x4dca29+_0x2a3f9c};return await _0x1aa6e5[_0x94a568(0x7bc)](_0x5289ef,_0x269137,_0x517e77,{'ttl':_0x2a3f9c}),{'sessionId':_0x269137,'version':0x0};}[_0x2b4efd(0x261)](_0x95b3f){const _0x295e53=_0x2b4efd;if(!_0x95b3f)return null;return this[_0x295e53(0x6f4)]()[_0x295e53(0x616)](_0x5289ef,String(_0x95b3f))??null;}async[_0x2b4efd(0x1dd)](_0x32eef0){const _0x53629e=this['_env'](),_0x404d8f=String(_0x32eef0);if(!_0x53629e['get'](_0x5289ef,_0x404d8f))return![];return await _0x53629e['remove'](_0x5289ef,_0x404d8f),!![];}async[_0x2b4efd(0x5a2)](_0x407c8e){const _0x1bb9b7=_0x2b4efd,_0x322884=this[_0x1bb9b7(0x6f4)](),_0x423ec9=String(_0x407c8e),_0x71a26a=_0x322884[_0x1bb9b7(0x616)](_0x5289ef,_0x423ec9);if(!_0x71a26a)return null;const _0xce13de=(Number[_0x1bb9b7(0x560)](_0x71a26a[_0x1bb9b7(0x2ce)])?_0x71a26a[_0x1bb9b7(0x2ce)]:0x0)+0x1;return await _0x322884['put'](_0x5289ef,_0x423ec9,{..._0x71a26a,'version':_0xce13de}),_0xce13de;}async[_0x2b4efd(0x704)](_0x548d62,_0x240485){const _0x182a8a=_0x2b4efd,_0x31cde0=this['_env'](),_0x536b71=String(_0x548d62);if(!_0x31cde0[_0x182a8a(0x616)](_0x5289ef,_0x536b71))return![];const _0xc8e320=Number[_0x182a8a(0x560)](_0x240485)&&_0x240485>0x0?_0x240485:this[_0x182a8a(0x1a3)];if(this['_isFar'](_0x536b71))return![];return await _0x31cde0[_0x182a8a(0x24c)](_0x5289ef,_0x536b71,_0xc8e320),await this[_0x182a8a(0x34a)](_0x536b71,_0xc8e320),!![];}async['refreshTtlBatch'](_0x240064,_0xa43bc8){const _0x37a1a7=_0x2b4efd,_0x3712bf=this[_0x37a1a7(0x6f4)](),_0x4268f=Number[_0x37a1a7(0x560)](_0xa43bc8)&&_0xa43bc8>0x0?_0xa43bc8:this[_0x37a1a7(0x1a3)],_0x4b531c=Date[_0x37a1a7(0x38b)](),_0x44cc6c=[];for(const _0x4df6b8 of _0x240064||[]){const _0x4c1ff3=String(_0x4df6b8),_0x599b90=_0x3712bf[_0x37a1a7(0x616)](_0x5289ef,_0x4c1ff3);if(!_0x599b90)continue;if(this[_0x37a1a7(0x282)](_0x4c1ff3,_0x4b531c))continue;_0x44cc6c[_0x37a1a7(0x2e6)]({'id':_0x4c1ff3,'cur':_0x599b90});}if(_0x44cc6c[_0x37a1a7(0x479)]===0x0)return[];return await _0x3712bf[_0x37a1a7(0x82f)](async _0x441ff5=>{const _0x2b962e=_0x37a1a7;for(const {id:_0x55f1ed,cur:_0x422830}of _0x44cc6c){_0x441ff5[_0x2b962e(0x7bc)](_0x5289ef,_0x55f1ed,{..._0x422830,'expiresAt':_0x4b531c+_0x4268f}),_0x441ff5[_0x2b962e(0x24c)](_0x5289ef,_0x55f1ed,_0x4268f);}}),_0x44cc6c[_0x37a1a7(0x6f2)](_0x574500=>_0x574500['id']);}[_0x2b4efd(0x282)](_0x18299d,_0xdddf2=Date[_0x2b4efd(0x38b)]()){const _0x39cd3f=_0x2b4efd,_0x5ed784=this[_0x39cd3f(0x6f4)]()[_0x39cd3f(0x695)](_0x5289ef,String(_0x18299d));if(!_0x5ed784)return![];return _0x5ed784[_0x39cd3f(0x235)]-_0xdddf2>this[_0x39cd3f(0x6ca)];}async['_syncExpiresAtField'](_0x104f3c,_0x10a790){const _0x2f8570=_0x2b4efd,_0x2bf201=this[_0x2f8570(0x6f4)](),_0x30b2f2=_0x2bf201[_0x2f8570(0x616)](_0x5289ef,_0x104f3c);if(!_0x30b2f2)return;await _0x2bf201[_0x2f8570(0x7bc)](_0x5289ef,_0x104f3c,{..._0x30b2f2,'expiresAt':Date['now']()+_0x10a790});}async[_0x2b4efd(0x79f)](_0x2bdeac,_0x108f12,_0x47d895){const _0x374fa7=_0x2b4efd,_0x1e9337=this['_env'](),_0x19869e=String(_0x2bdeac),_0x1038b5=_0x1e9337[_0x374fa7(0x616)](_0x5289ef,_0x19869e);if(!_0x1038b5)throw new Error(_0x374fa7(0x1cb)+_0x19869e);const _0x3877b0=_0x2417c5[_0x374fa7(0x6f1)]();return await _0x1e9337[_0x374fa7(0x7bc)](_0xe48e51,_0x3877b0,{'sessionId':_0x19869e,'dataEnv':String(_0x1038b5[_0x374fa7(0x29e)]),'type':String(_0x108f12),'key':String(_0x47d895)}),_0x3877b0;}async['_commitSessionMutation'](_0x54ed5e,_0x5dd825,{retries:retries=0x8}={}){const _0x133af8=_0x2b4efd,_0xacdb59=this['_env']();for(let _0x24b964=0x0;;_0x24b964++){const _0x441ab3=_0xacdb59[_0x133af8(0x242)](_0x5289ef,_0x54ed5e);if(!_0x441ab3)return null;const _0x1b1730=_0x441ab3[_0x133af8(0x7fd)],_0x5b799d=(Number[_0x133af8(0x560)](_0x1b1730[_0x133af8(0x2ce)])?_0x1b1730[_0x133af8(0x2ce)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x5dd825(_0x1b1730,_0xacdb59)||{};try{return await _0xacdb59[_0x133af8(0x82f)](async _0x2579f6=>{const _0x490a6b=_0x133af8;applyInterests?.(_0x2579f6),_0x2579f6[_0x490a6b(0x7bc)](_0x5289ef,_0x54ed5e,{..._0x1b1730,...sessionPatch,'version':_0x5b799d},{'ifVersion':_0x441ab3[_0x490a6b(0x2ce)]});}),_0x5b799d;}catch(_0x32d7cb){if(_0x32d7cb?.[_0x133af8(0x431)]===_0x133af8(0x35f)&&_0x24b964<retries)continue;throw _0x32d7cb;}}}async[_0x2b4efd(0x1eb)](_0x2dc36e,{add:add=[],remove:remove=[]}={}){const _0x6f8221=_0x2b4efd,_0x1892df=String(_0x2dc36e);return this[_0x6f8221(0x70b)](_0x1892df,(_0x1b8f01,_0x52d6c1)=>{const _0xd43f24=_0x6f8221,_0x6b230a=String(_0x1b8f01[_0xd43f24(0x29e)]),_0x5bc846=new Set((remove||[])[_0xd43f24(0x6f2)](_0x46854a=>String(_0x46854a[_0xd43f24(0x79c)])+'\x00'+String(_0x46854a[_0xd43f24(0x491)]))),_0x3d227c=[];if(_0x5bc846[_0xd43f24(0x1d3)]>0x0)for(const {key:_0x33a67a,value:_0x2e13dc}of _0x52d6c1[_0xd43f24(0x805)](_0xe48e51,{})){if(!_0x2e13dc||_0x2e13dc[_0xd43f24(0x585)]!==_0x1892df)continue;if(_0x5bc846[_0xd43f24(0x4a8)](_0x2e13dc['type']+'\x00'+_0x2e13dc[_0xd43f24(0x491)]))_0x3d227c[_0xd43f24(0x2e6)](_0x33a67a);}const _0x38740=(add||[])[_0xd43f24(0x6f2)](_0x16ce42=>({'id':_0x2417c5['randomUUID'](),'type':String(_0x16ce42['type']),'key':String(_0x16ce42[_0xd43f24(0x491)])}));return{'applyInterests':_0x5879fc=>{const _0x12ecd4=_0xd43f24;for(const _0x1a857f of _0x3d227c)_0x5879fc[_0x12ecd4(0x6a9)](_0xe48e51,_0x1a857f);for(const _0x5f5615 of _0x38740)_0x5879fc[_0x12ecd4(0x7bc)](_0xe48e51,_0x5f5615['id'],{'sessionId':_0x1892df,'dataEnv':_0x6b230a,'type':_0x5f5615['type'],'key':_0x5f5615[_0x12ecd4(0x491)]});}};});}async[_0x2b4efd(0x54d)](_0x179281,_0xbca270){const _0x4b77f=_0x2b4efd;_0x1920d2(_0xbca270);const _0x4bfd83=String(_0x179281);return this[_0x4b77f(0x70b)](_0x4bfd83,()=>({'sessionPatch':{'filter':_0xbca270??null}}));}async[_0x2b4efd(0x783)](_0x16087f,_0x306118,_0x4c8ab0){const _0x40415b=_0x2b4efd,_0x4a4c0b=this['_env'](),_0x56ce1d=String(_0x16087f),_0x35e722=String(_0x306118),_0x41f88b=String(_0x4c8ab0),_0x19b0fc=[];for(const {key:_0x3ed574,value:_0x5b241c}of _0x4a4c0b[_0x40415b(0x805)](_0xe48e51,{})){if(_0x5b241c&&_0x5b241c[_0x40415b(0x585)]===_0x56ce1d&&_0x5b241c['type']===_0x35e722&&_0x5b241c['key']===_0x41f88b)_0x19b0fc[_0x40415b(0x2e6)](_0x3ed574);}for(const _0x2cca70 of _0x19b0fc)await _0x4a4c0b[_0x40415b(0x6a9)](_0xe48e51,_0x2cca70);return _0x19b0fc['length'];}async[_0x2b4efd(0x420)](_0x4342a6,_0x54b457){const _0x156d34=String(_0x4342a6);return this['_commitSessionMutation'](_0x156d34,(_0x1d82e6,_0x6f15ce)=>{const _0x2d1422=_0x3f13,_0x14cdd3=String(_0x1d82e6['dataEnv']),_0x51b06a=[];for(const {key:_0x188078,value:_0x107256}of _0x6f15ce[_0x2d1422(0x805)](_0xe48e51,{})){if(_0x107256&&_0x107256[_0x2d1422(0x585)]===_0x156d34)_0x51b06a[_0x2d1422(0x2e6)](_0x188078);}const _0x39a04f=(_0x54b457||[])[_0x2d1422(0x6f2)](_0x2d0a79=>({'id':_0x2417c5[_0x2d1422(0x6f1)](),'type':String(_0x2d0a79['type']),'key':String(_0x2d0a79[_0x2d1422(0x491)])}));return{'applyInterests':_0x5bfc80=>{const _0x58e6bb=_0x2d1422;for(const _0x1367e7 of _0x51b06a)_0x5bfc80[_0x58e6bb(0x6a9)](_0xe48e51,_0x1367e7);for(const _0x517fda of _0x39a04f)_0x5bfc80[_0x58e6bb(0x7bc)](_0xe48e51,_0x517fda['id'],{'sessionId':_0x156d34,'dataEnv':_0x14cdd3,'type':_0x517fda['type'],'key':_0x517fda[_0x58e6bb(0x491)]});}};});}[_0x2b4efd(0x4aa)](_0xee4a95,_0x5a48fd,_0x1bb6ae){const _0x4078c3=_0x2b4efd,_0x49b4fc=this[_0x4078c3(0x6f4)](),_0xe421d5=String(_0xee4a95),_0x403ed7=String(_0x5a48fd),_0x4f9cd7=String(_0x1bb6ae),_0xb92329=new Set();for(const {value:_0x24ace1}of _0x49b4fc[_0x4078c3(0x1f0)](_0xe48e51,_0xb73eb5,{'start':[_0xe421d5,_0x403ed7,_0x4f9cd7],'end':[_0xe421d5,_0x403ed7,_0x4f9cd7,'￿']})){if(_0x24ace1&&_0x24ace1[_0x4078c3(0x585)])_0xb92329[_0x4078c3(0x76e)](_0x24ace1[_0x4078c3(0x585)]);}return[..._0xb92329];}['filterSessionsForType'](_0x25f560,_0x481c94){const _0x5471a5=_0x2b4efd,_0x3c2b5e=this[_0x5471a5(0x6f4)](),_0x3b3359=String(_0x25f560),_0x4fec61=String(_0x481c94),_0x39383d=[];for(const {value:_0x3b3da0}of _0x3c2b5e[_0x5471a5(0x1f0)](_0x5289ef,_0x424540,{'start':[_0x3b3359,_0x4fec61],'end':[_0x3b3359,_0x4fec61,'\uffff']})){if(!_0x3b3da0||_0x3b3da0[_0x5471a5(0x29e)]!==_0x3b3359||_0x3b3da0['type']!==_0x4fec61)continue;if(_0x3b3da0[_0x5471a5(0x658)]==null)continue;_0x39383d['push']({'sessionId':_0x3b3da0[_0x5471a5(0x585)],'filter':_0x3b3da0['filter'],'version':Number[_0x5471a5(0x560)](_0x3b3da0[_0x5471a5(0x2ce)])?_0x3b3da0[_0x5471a5(0x2ce)]:0x0});}return _0x39383d;}async[_0x2b4efd(0x7d4)](){const _0x76f27c=_0x2b4efd;return this[_0x76f27c(0x6f4)]()[_0x76f27c(0x56c)]();}}return okdbSubscriptionsStore[_0x2b4efd(0x3bf)]=_0x34823c,okdbSubscriptionsStore[_0x2b4efd(0x3bf)][_0x2b4efd(0x559)]=_0x3cddaf,okdbSubscriptionsStore[_0x2b4efd(0x3bf)]['T_SESSION']=_0x5289ef,okdbSubscriptionsStore[_0x2b4efd(0x3bf)][_0x2b4efd(0x67a)]=_0xe48e51,okdbSubscriptionsStore['exports']['REVERSE_INDEX']=_0xb73eb5,okdbSubscriptionsStore['exports']['SESSION_TYPE_INDEX']=_0x424540,okdbSubscriptionsStore['exports'][_0x2b4efd(0x1a1)]=_0x35328f,okdbSubscriptionsStore[_0x2b4efd(0x3bf)];}var version=_0x1ade1a(0x44e),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x583a55=_0x1ade1a;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0xd2b7a6=_0x583a55(0x3dd),_0x565152=0xa,_0x660741=Object[_0x583a55(0x493)]({'CREATED':_0x583a55(0x249),'ONLINE':_0x583a55(0x40b),'STOPPED':_0x583a55(0x26b),'INACTIVE':'inactive','ERROR':'error','REMOVED':_0x583a55(0x2c2)}),_0x3b2fe5=Object['freeze']({'STARTED':_0x583a55(0x2dc),'STOPPED':_0x583a55(0x26b),'ERROR':'error','INSTALLED':_0x583a55(0x556),'UNINSTALLED':_0x583a55(0x804)}),_0x5d4c6a=Object[_0x583a55(0x493)](new Set([_0x660741[_0x583a55(0x4c0)],_0x660741[_0x583a55(0x575)],_0x660741[_0x583a55(0x611)],_0x660741['ERROR']]));function _0xa1ca05(_0x48a6a2){const _0x333e35=_0x583a55;return _0x48a6a2?.[_0x333e35(0x25c)]===![]?_0x660741['STOPPED']:_0x333e35(0x1b4);}return okdbEnginesEnums={'TYPE_ENGINES':_0xd2b7a6,'MAX_UPDATE_RETRIES':_0x565152,'ENGINE_STATUS':_0x660741,'ENGINE_EVENTS':_0x3b2fe5,'UPDATABLE_STATUSES':_0x5d4c6a,'durableOnlyEngineState':_0xa1ca05},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x981616=_0x1ade1a;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x53e126=Object[_0x981616(0x493)]({'EMBEDDER':'embedder','INDEXER':_0x981616(0x1e4),'SEARCH':_0x981616(0x205),'WORKER':_0x981616(0x724)}),_0x33d3e7=Object['freeze']({'PENDING':_0x981616(0x4ef),'DONE':_0x981616(0x45e),'FAILED':_0x981616(0x1dc),'DELETED':_0x981616(0x774)}),_0x5ac754=Object[_0x981616(0x493)]({'INDEXER_READY':'embeddings:indexer:ready','INDEXER_FLUSHED':_0x981616(0x26f),'INDEXER_DOC_DONE':_0x981616(0x4b7),'INDEXER_DOC_FAILED':_0x981616(0x60d),'INDEXER_DOC_QUEUED':_0x981616(0x18c),'STRATEGY_REGISTERED':_0x981616(0x419),'DOC_STATUS_CHANGE':_0x981616(0x63d),'PIPELINE_READY':_0x981616(0x7ac)}),_0xdefdba=Object['freeze']({'MODELS':_0x981616(0x159),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':'vec:'});return enums={'ENGINE_TYPES':_0x53e126,'INDEXER_DOC_STATUS':_0x33d3e7,'EMBEDDINGS_EVENTS':_0x5ac754,'INTERNAL_TYPES':_0xdefdba},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x13968d=_0x1ade1a;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x5669ce=Object['freeze']({'PENDING':_0x13968d(0x4ef),'RUNNING':_0x13968d(0x709),'DONE':'done','FAILED':_0x13968d(0x1dc)}),_0x4f9ba7=Object[_0x13968d(0x493)]({'ACTIVE':'active','PAUSED':_0x13968d(0x840),'DRAINING':'draining'}),_0x4e1929=Object[_0x13968d(0x493)]({'ENQUEUED':_0x13968d(0x71c),'DONE':_0x13968d(0x537),'FAILED':'queue:failed','RETRY':_0x13968d(0x76d),'RESCHEDULED':_0x13968d(0x29c),'REMOVED':_0x13968d(0x62a),'RECONCILED':_0x13968d(0x151),'CLEAR_PROGRESS':'queue:clear-progress','CLEAR_DONE':_0x13968d(0x6c2),'LOG':_0x13968d(0x203)}),_0x4d979f=Object[_0x13968d(0x493)]([_0x13968d(0x2df),_0x13968d(0x786),_0x13968d(0x5b0),'error']),_0x3251c4=0x1,_0x53f5ab=0xc350,_0x3adb18=0x400,_0x48ff43=0x800;function _0x2fd01f(_0x542c40){const _0x23e6ce=_0x13968d;return _0x542c40!=null&&typeof _0x542c40===_0x23e6ce(0x6f7)&&(_0x542c40[_0x23e6ce(0x75d)]===Object||Object[_0x23e6ce(0x483)](_0x542c40)===null);}function _0x37ca5a(_0x532f2f,_0xb83531,_0x4eb613,_0x18b588){const _0x136f1f=_0x13968d;if(_0x532f2f==null)return _0xb83531;const _0x5234e3=Number(_0x532f2f);if(!Number[_0x136f1f(0x560)](_0x5234e3))return _0xb83531;const _0x41c677=Math[_0x136f1f(0x64f)](_0x5234e3);if(_0x41c677<_0x4eb613)return _0x4eb613;if(_0x41c677>_0x18b588)return _0x18b588;return _0x41c677;}function _0x11d767(_0x36e4ff){const _0x1fe864=_0x13968d;if(!_0x36e4ff)return[];if(typeof _0x36e4ff===_0x1fe864(0x4c1))_0x36e4ff=[_0x36e4ff];if(!Array['isArray'](_0x36e4ff))throw new Error(_0x1fe864(0x276));const _0x3d4298=[],_0x1d1574=new Set();for(const _0x22a79b of _0x36e4ff){if(_0x22a79b==null)continue;const _0x1fe33c=String(_0x22a79b)[_0x1fe864(0x4ee)]();if(!_0x1fe33c)continue;if(_0x1fe33c[_0x1fe864(0x479)]>0x80)throw new Error(_0x1fe864(0x4ed));if(_0x1d1574[_0x1fe864(0x4a8)](_0x1fe33c))continue;_0x1d1574[_0x1fe864(0x76e)](_0x1fe33c),_0x3d4298[_0x1fe864(0x2e6)](_0x1fe33c);if(_0x3d4298[_0x1fe864(0x479)]>=0x20)break;}return _0x3d4298;}function _0x3578c3(_0x548ea2){const _0x34ded7=_0x13968d;if(_0x548ea2==null)return null;const _0x11df41=String(_0x548ea2)[_0x34ded7(0x4ee)]();if(!_0x11df41)return null;if(_0x11df41[_0x34ded7(0x479)]>0x80)throw new Error(_0x34ded7(0x26a));return _0x11df41;}function _0xba4140(_0x3cf066,_0x448677=0x1){const _0x3128f3=_0x13968d;if(_0x3cf066==null)return[];if(typeof _0x3cf066===_0x3128f3(0x4c1)){const _0x517e26=_0x3578c3(_0x3cf066);if(!_0x517e26)return[];return[{'id':_0x517e26,'tokens':_0x448677}];}if(!Array[_0x3128f3(0x4b6)](_0x3cf066))throw new Error(_0x3128f3(0x5fe));const _0x211e5c=[],_0x1e9fd3=new Set();for(const _0x2f23da of _0x3cf066){let _0x4a110c,_0x3cdfcf;if(Array['isArray'](_0x2f23da))[_0x4a110c,_0x3cdfcf]=_0x2f23da;else{if(_0x2f23da&&typeof _0x2f23da===_0x3128f3(0x6f7))({id:_0x4a110c,tokens:_0x3cdfcf}=_0x2f23da);else{if(typeof _0x2f23da===_0x3128f3(0x4c1))_0x4a110c=_0x2f23da,_0x3cdfcf=_0x448677;else continue;}}_0x4a110c=_0x3578c3(_0x4a110c);if(!_0x4a110c)continue;const _0x4f76e1=_0x3cdfcf==null?_0x448677:Math[_0x3128f3(0x64f)](Number(_0x3cdfcf));if(!Number[_0x3128f3(0x560)](_0x4f76e1)||_0x4f76e1<0x1)throw new Error(_0x3128f3(0x2d0)+_0x4a110c+_0x3128f3(0x3b7));if(_0x4f76e1>0xf4240)throw new Error('bucket\x20\x22'+_0x4a110c+_0x3128f3(0x535));if(_0x1e9fd3[_0x3128f3(0x4a8)](_0x4a110c))throw new Error('duplicate\x20bucket:\x20'+_0x4a110c);_0x1e9fd3['add'](_0x4a110c),_0x211e5c['push']({'id':_0x4a110c,'tokens':_0x4f76e1});}return _0x211e5c;}function _0x1bf83c(_0x386449,_0x4b3745=0x400){if(_0x386449==null)return null;const _0x30be58=String(_0x386449)['slice'](0x0,_0x4b3745);return _0x30be58||null;}function _0x228b38(_0x2a6ec0){const _0x5b0e56=_0x13968d;if(_0x2a6ec0==null)return null;if(_0x2a6ec0[_0x5b0e56(0x491)]!==undefined&&_0x2a6ec0[_0x5b0e56(0x7fd)]!==undefined)return _0x2a6ec0;return{'key':_0x2a6ec0['id']??null,'value':_0x2a6ec0};}function _0x1eecc0(_0xd2ee18){const _0x35a938=_0x13968d;let _0x50a70c=_0xd2ee18;if(typeof _0xd2ee18===_0x35a938(0x4c1))_0x50a70c={'message':_0xd2ee18};if(!_0x2fd01f(_0x50a70c))throw new Error(_0x35a938(0x697));const _0x5a4759=_0x50a70c['level']==null?_0x35a938(0x786):String(_0x50a70c[_0x35a938(0x5cb)])['toLowerCase']();if(!_0x4d979f[_0x35a938(0x2bc)](_0x5a4759))throw new Error(_0x35a938(0x5c6)+_0x5a4759);if(_0x50a70c[_0x35a938(0x806)]==null)throw new Error('log\x20entry\x20message\x20required');const _0x21c1e1=String(_0x50a70c[_0x35a938(0x806)])[_0x35a938(0x4e8)](0x0,_0x3adb18);let _0x2a2a18=null;if(_0x50a70c[_0x35a938(0x153)]!=null){if(!_0x2fd01f(_0x50a70c['fields']))throw new Error('log\x20entry\x20fields\x20must\x20be\x20object|null');if(JSON[_0x35a938(0x4e6)](_0x50a70c['fields'])[_0x35a938(0x479)]>_0x48ff43)throw new Error(_0x35a938(0x6d0));_0x2a2a18=_0x50a70c[_0x35a938(0x153)];}return{'level':_0x5a4759,'message':_0x21c1e1,'fields':_0x2a2a18,'ts':Date['now']()};}function _0x38408d(_0x23e58a){const _0x294517=_0x13968d;if(_0x23e58a==null)return;if(!Number[_0x294517(0x32e)](_0x23e58a)||_0x23e58a<_0x3251c4||_0x23e58a>_0x53f5ab)throw new Error(_0x294517(0x44f)+_0x3251c4+',\x20'+_0x53f5ab+']');}function _0x441ea3(_0x1ae962){const _0x243244=_0x13968d;if(!_0x2fd01f(_0x1ae962))throw new Error('job\x20must\x20be\x20object');if(typeof _0x1ae962['id']!=='string'||_0x1ae962['id'][_0x243244(0x479)]<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x1ae962[_0x243244(0x79c)]!==_0x243244(0x4c1)||!_0x1ae962['type'])throw new Error(_0x243244(0x21a));if(!Object[_0x243244(0x3b9)](_0x5669ce)[_0x243244(0x2bc)](_0x1ae962[_0x243244(0x371)]))throw new Error(_0x243244(0x194)+_0x1ae962[_0x243244(0x371)]);for(const _0x21a4cd of[_0x243244(0x2aa),'created','updated']){if(typeof _0x1ae962[_0x21a4cd]!==_0x243244(0x729)||!Number[_0x243244(0x560)](_0x1ae962[_0x21a4cd]))throw new Error(_0x243244(0x565)+_0x21a4cd+'\x20must\x20be\x20number');}if(_0x1ae962[_0x243244(0x5a5)]!=null&&(typeof _0x1ae962[_0x243244(0x5a5)]!==_0x243244(0x729)||!Number[_0x243244(0x560)](_0x1ae962[_0x243244(0x5a5)])))throw new Error(_0x243244(0x423));if(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x1d0)])||_0x1ae962[_0x243244(0x1d0)]<0x0)throw new Error(_0x243244(0x506));if(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x4d3)]))throw new Error(_0x243244(0x61a));if(_0x1ae962[_0x243244(0x77a)]!==null&&_0x1ae962[_0x243244(0x77a)]!==Infinity&&(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x77a)])||_0x1ae962[_0x243244(0x77a)]<0x1))throw new Error('job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity');if(_0x1ae962['retry_delay']!=null&&(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x1e5)])||_0x1ae962[_0x243244(0x1e5)]<0x0))throw new Error(_0x243244(0x65d));if(_0x1ae962[_0x243244(0x352)]!=null&&(typeof _0x1ae962[_0x243244(0x352)]!==_0x243244(0x729)||_0x1ae962[_0x243244(0x352)]<0x1))throw new Error(_0x243244(0x239));if(_0x1ae962[_0x243244(0x7c1)]!=null&&typeof _0x1ae962[_0x243244(0x7c1)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x2b4));if(_0x1ae962[_0x243244(0x220)]!=null&&(typeof _0x1ae962[_0x243244(0x220)]!=='number'||!Number[_0x243244(0x560)](_0x1ae962[_0x243244(0x220)])))throw new Error(_0x243244(0x75a));if(_0x1ae962[_0x243244(0x7dc)]!=null&&typeof _0x1ae962[_0x243244(0x7dc)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x3b5));if(_0x1ae962[_0x243244(0x79a)]!=null&&(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x79a)])||_0x1ae962[_0x243244(0x79a)]<0x1))throw new Error(_0x243244(0x188));if(_0x1ae962[_0x243244(0x236)]!=null){if(!Array[_0x243244(0x4b6)](_0x1ae962[_0x243244(0x236)]))throw new Error(_0x243244(0x5a7));for(const _0x5742a2 of _0x1ae962['buckets']){if(!_0x5742a2||typeof _0x5742a2!==_0x243244(0x6f7))throw new Error(_0x243244(0x547));if(typeof _0x5742a2['id']!==_0x243244(0x4c1)||!_0x5742a2['id'][_0x243244(0x4ee)]())throw new Error(_0x243244(0x27e));if(!Number[_0x243244(0x32e)](_0x5742a2['tokens'])||_0x5742a2[_0x243244(0x319)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x1ae962['cron']!=null&&typeof _0x1ae962[_0x243244(0x210)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x1db));if(_0x1ae962[_0x243244(0x370)]!=null&&typeof _0x1ae962[_0x243244(0x370)]!=='string')throw new Error(_0x243244(0x6db));if(!Array['isArray'](_0x1ae962[_0x243244(0x1a9)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x1ae962[_0x243244(0x766)]!=null&&typeof _0x1ae962['tag']!==_0x243244(0x4c1))throw new Error(_0x243244(0x84a));if(_0x1ae962[_0x243244(0x582)]!=null&&typeof _0x1ae962['status_code']!==_0x243244(0x4c1))throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x1ae962[_0x243244(0x83e)]!=null&&typeof _0x1ae962[_0x243244(0x83e)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x636));if(_0x1ae962['error_stack']!=null&&typeof _0x1ae962[_0x243244(0x28d)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x61d));for(const _0x2908ef of[_0x243244(0x779),_0x243244(0x52b)]){const _0x35193f=_0x1ae962[_0x2908ef];if(_0x35193f!=null&&(!Number[_0x243244(0x32e)](_0x35193f)||_0x35193f<0x0))throw new Error(_0x243244(0x565)+_0x2908ef+_0x243244(0x6e4));}_0x38408d(_0x1ae962[_0x243244(0x413)]);}function _0x5e3280(_0x2432f5){const _0x3266e3=_0x13968d;if(!_0x2fd01f(_0x2432f5))throw new Error(_0x3266e3(0x825));if(typeof _0x2432f5['id']!==_0x3266e3(0x4c1)||!_0x2432f5['id'][_0x3266e3(0x4ee)]())throw new Error(_0x3266e3(0x3a8));if(!Object[_0x3266e3(0x3b9)](_0x4f9ba7)['includes'](_0x2432f5[_0x3266e3(0x371)]))throw new Error(_0x3266e3(0x1c4)+_0x2432f5[_0x3266e3(0x371)]);if(_0x2432f5[_0x3266e3(0x5a8)]!=null&&(!Number['isInteger'](_0x2432f5['max_concurrency'])||_0x2432f5[_0x3266e3(0x5a8)]<0x1))throw new Error(_0x3266e3(0x2ab));if(_0x2432f5[_0x3266e3(0x6cc)]!=null){if(!_0x2fd01f(_0x2432f5[_0x3266e3(0x6cc)]))throw new Error(_0x3266e3(0x591));const _0x4cd398=_0x2432f5['defaults'];if(_0x4cd398[_0x3266e3(0x77a)]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398[_0x3266e3(0x77a)])||_0x4cd398['max_tries']<0x1))throw new Error(_0x3266e3(0x17f));if(_0x4cd398[_0x3266e3(0x1e5)]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398['retry_delay'])||_0x4cd398['retry_delay']<0x0))throw new Error(_0x3266e3(0x7b4));if(_0x4cd398['backoff_multiplier']!=null&&(typeof _0x4cd398['backoff_multiplier']!==_0x3266e3(0x729)||_0x4cd398[_0x3266e3(0x352)]<0x1))throw new Error(_0x3266e3(0x5f2));if(_0x4cd398[_0x3266e3(0x4d3)]!=null&&!Number[_0x3266e3(0x32e)](_0x4cd398[_0x3266e3(0x4d3)]))throw new Error(_0x3266e3(0x29f));if(_0x4cd398[_0x3266e3(0x192)]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398[_0x3266e3(0x192)])||_0x4cd398[_0x3266e3(0x192)]<0x0))throw new Error('job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null');for(const _0x279107 of['done_ttl',_0x3266e3(0x52b)]){if(_0x4cd398[_0x279107]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398[_0x279107])||_0x4cd398[_0x279107]<0x0))throw new Error(_0x3266e3(0x5d8)+_0x279107+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x4cd398['buckets']!=null&&!Array[_0x3266e3(0x4b6)](_0x4cd398['buckets']))throw new Error(_0x3266e3(0x763));_0x38408d(_0x4cd398[_0x3266e3(0x413)]);}if(_0x2432f5[_0x3266e3(0x204)]!=null){if(!_0x2fd01f(_0x2432f5[_0x3266e3(0x204)]))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x2fd01f(_0x2432f5['payload_schema'][_0x3266e3(0x56a)]))throw new Error(_0x3266e3(0x191));if(typeof _0x2432f5[_0x3266e3(0x204)]['enforce']!==_0x3266e3(0x3be))throw new Error('job_type.payload_schema.enforce\x20must\x20be\x20boolean');}for(const _0x357691 of['created_at',_0x3266e3(0x449)]){if(typeof _0x2432f5[_0x357691]!=='number'||!Number[_0x3266e3(0x560)](_0x2432f5[_0x357691]))throw new Error('job_type.'+_0x357691+_0x3266e3(0x23c));}}function _0x4049b8(_0x355215){const _0x1857cb=_0x13968d;if(!_0x2fd01f(_0x355215))throw new Error('bucket\x20must\x20be\x20object');if(typeof _0x355215['id']!==_0x1857cb(0x4c1)||!_0x355215['id'][_0x1857cb(0x4ee)]())throw new Error(_0x1857cb(0x844));if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x319)])||_0x355215[_0x1857cb(0x319)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x148)])||_0x355215[_0x1857cb(0x148)]<0x0)throw new Error(_0x1857cb(0x5bd));if(_0x355215[_0x1857cb(0x319)]>_0x355215[_0x1857cb(0x148)])throw new Error(_0x1857cb(0x292));if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x80a)])||_0x355215[_0x1857cb(0x80a)]<0x0)throw new Error(_0x1857cb(0x190));if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x438)])||_0x355215['refill_every']<0x0)throw new Error(_0x1857cb(0x2ff));if(typeof _0x355215[_0x1857cb(0x349)]!==_0x1857cb(0x729)||!Number['isFinite'](_0x355215[_0x1857cb(0x349)]))throw new Error(_0x1857cb(0x843));}return okdbQueueValidate={'STATUS':_0x5669ce,'JOB_TYPE_STATUS':_0x4f9ba7,'QUEUE_EVENTS':_0x4e1929,'LOG_LEVELS':_0x4d979f,'LOG_CAP_MIN':_0x3251c4,'LOG_CAP_MAX':_0x53f5ab,'clampInt':_0x37ca5a,'asNullableString':_0x1bf83c,'normalizeResult':_0x228b38,'normalizeTags':_0x11d767,'normalizeBucket':_0x3578c3,'normalizeBuckets':_0xba4140,'normalizeLogEntry':_0x1eecc0,'validateJobShape':_0x441ea3,'validateJobTypeShape':_0x5e3280,'validateBucketShape':_0x4049b8},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x53285c=0x2**0x1f-0x1;function _0x4e3aec(_0x287f92){if(!(_0x287f92>0x0))return 0x0;return _0x287f92>_0x53285c?_0x53285c:_0x287f92;}function _0x11eaeb(_0x1e4f6d){return _0x1e4f6d===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x53285c,'clampTimerDelay':_0x4e3aec,'isNeverDelay':_0x11eaeb},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x3777e8=_0x1ade1a;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x55922c=require$$0$6,{clampTimerDelay:_0xc4146e}=requireOkdbTimers(),{EVENTS:_0x2a24d6,CHANGE_ACTIONS:_0xa089cf}=requireOkdbEnums(),{LOOP:_0x262288}=requireOkdbLoopMonitor(),_0x31343b=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x302b5d=0x5,_0x2ec494=0x2710;class _0x1587c3 extends _0x55922c{constructor(_0x36d267,_0x5bbb38={}){const _0x5b0d35=_0x3f13;super(),this[_0x5b0d35(0x555)]=_0x36d267,this[_0x5b0d35(0x523)]=_0x5bbb38['quantum']??_0x31343b,this[_0x5b0d35(0x2c3)]=_0x5bbb38[_0x5b0d35(0x6ab)]??_0x302b5d,this[_0x5b0d35(0x240)]=_0x5bbb38[_0x5b0d35(0x33a)]??_0x2ec494,this[_0x5b0d35(0x33e)]=![],this['_cursors']=new Map(),this[_0x5b0d35(0x656)]=new Map(),this['_pending']=new Map(),this['_flushTimer']=null,this[_0x5b0d35(0x2d2)]=![],this[_0x5b0d35(0x5b1)]=new Set(),this['_pendingLocal']=new Set(),this[_0x5b0d35(0x42b)]=_0x59c308=>this[_0x5b0d35(0x23f)](_0x59c308),this[_0x5b0d35(0x31a)]=_0x54c57a=>this['_handlePending'](_0x54c57a),this['_onPoke']=_0x38a403=>this['_handlePoke'](_0x38a403),this[_0x5b0d35(0x247)]=()=>this[_0x5b0d35(0x851)]();}['start'](){const _0x421fe9=_0x3f13;if(this['_started'])return;this[_0x421fe9(0x33e)]=!![];for(const [_0x41c36c,_0x5ee9cb]of this[_0x421fe9(0x555)][_0x421fe9(0x2b2)]){if(_0x41c36c[_0x421fe9(0x70d)]('~'))continue;try{_0x5ee9cb[_0x421fe9(0x6a4)]();}catch{}}for(const [_0x330071,_0x12ccc1]of this[_0x421fe9(0x555)]['_envs']){if(_0x330071[_0x421fe9(0x70d)]('~'))continue;try{this[_0x421fe9(0x656)][_0x421fe9(0x488)](_0x330071,_0x12ccc1[_0x421fe9(0x353)]()||0x0);}catch{}}const {events:_0x5585cd}=this[_0x421fe9(0x555)];_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x6ef)],this[_0x421fe9(0x31a)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x412)],this[_0x421fe9(0x42b)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x3ec)],this[_0x421fe9(0x42b)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x798)],this[_0x421fe9(0x42b)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x283)],this[_0x421fe9(0x31d)]),_0x5585cd[_0x421fe9(0x38c)](_0x2a24d6[_0x421fe9(0x87c)],this[_0x421fe9(0x247)]);}[_0x3777e8(0x851)](){const _0x35cbc4=_0x3777e8;if(!this[_0x35cbc4(0x33e)])return;this[_0x35cbc4(0x33e)]=![];const {events:_0x27eef9}=this[_0x35cbc4(0x555)];_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x6ef)],this['_onPending']),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x412)],this['_onItem']),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x3ec)],this[_0x35cbc4(0x42b)]),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6['ITEM_REMOVE'],this[_0x35cbc4(0x42b)]),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x283)],this['_onPoke']);try{_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x87c)],this[_0x35cbc4(0x247)]);}catch{}this[_0x35cbc4(0x76a)]&&(clearTimeout(this['_flushTimer']),this['_flushTimer']=null),this[_0x35cbc4(0x37a)][_0x35cbc4(0x400)](),this[_0x35cbc4(0x532)][_0x35cbc4(0x400)](),this['_baselines'][_0x35cbc4(0x400)](),this['_seen'][_0x35cbc4(0x400)](),this['_pendingLocal'][_0x35cbc4(0x400)]();}[_0x3777e8(0x661)](_0x21e1ee,_0x12deff,_0x33e9bf,_0x40160d){return _0x21e1ee+'\x00'+_0x12deff+'\x00'+_0x33e9bf+'\x00'+_0x40160d;}[_0x3777e8(0x553)](_0x2b87d3,_0x363408,_0x2b8b70,_0x1d54fc){const _0x37ed2a=_0x3777e8,_0x5d9d9c=this[_0x37ed2a(0x661)](_0x2b87d3,_0x363408,_0x2b8b70,_0x1d54fc);if(this[_0x37ed2a(0x5b1)][_0x37ed2a(0x4a8)](_0x5d9d9c))return![];this['_seen']['add'](_0x5d9d9c);if(this['_seen'][_0x37ed2a(0x1d3)]>this[_0x37ed2a(0x240)]){const _0x14cbcf=this[_0x37ed2a(0x5b1)]['values']()[_0x37ed2a(0x67f)]()[_0x37ed2a(0x7fd)];this[_0x37ed2a(0x5b1)][_0x37ed2a(0x727)](_0x14cbcf);}return!![];}['_handlePending'](_0x7c0030){const _0x3ee9c9=_0x3777e8;if(!this[_0x3ee9c9(0x33e)]||!_0x7c0030)return;const {env:_0x46a86e,type:_0x17f23f,key:_0x12d406,clock:_0x442eef}=_0x7c0030;if(_0x46a86e==null||_0x17f23f==null||_0x12d406==null)return;if(typeof _0x46a86e===_0x3ee9c9(0x4c1)&&_0x46a86e[_0x3ee9c9(0x70d)]('~'))return;if(typeof _0x17f23f==='string'&&_0x17f23f[_0x3ee9c9(0x70d)]('~'))return;this['_pendingLocal'][_0x3ee9c9(0x76e)](this[_0x3ee9c9(0x661)](_0x46a86e,_0x17f23f,_0x12d406,_0x442eef)),this[_0x3ee9c9(0x883)][_0x3ee9c9(0x1d3)]>this[_0x3ee9c9(0x240)]&&this[_0x3ee9c9(0x883)][_0x3ee9c9(0x727)](this['_pendingLocal']['values']()[_0x3ee9c9(0x67f)]()[_0x3ee9c9(0x7fd)]);}[_0x3777e8(0x23f)](_0x4bb30c){const _0x145b3b=_0x3777e8;if(!this[_0x145b3b(0x33e)]||!_0x4bb30c)return;const {env:_0x5918ba,type:_0x38a99f,key:_0x4b09ba,clock:_0x4ab57c,origin:_0x7ef628,action:_0xd01155,newValue:_0x29f7b5,oldValue:_0x34388e}=_0x4bb30c;if(_0x5918ba==null||_0x38a99f==null||_0x4b09ba==null)return;if(typeof _0x5918ba===_0x145b3b(0x4c1)&&_0x5918ba[_0x145b3b(0x70d)]('~'))return;if(typeof _0x38a99f===_0x145b3b(0x4c1)&&_0x38a99f[_0x145b3b(0x70d)]('~'))return;this['_pendingLocal'][_0x145b3b(0x727)](this[_0x145b3b(0x661)](_0x5918ba,_0x38a99f,_0x4b09ba,_0x4ab57c));if(!this[_0x145b3b(0x553)](_0x5918ba,_0x38a99f,_0x4b09ba,_0x4ab57c))return;const _0x5ab37f=_0xd01155===_0xa089cf[_0x145b3b(0x383)]?_0x145b3b(0x6a9):_0x145b3b(0x7bc);this[_0x145b3b(0x7bb)](_0x145b3b(0x809),{'env':_0x5918ba,'type':_0x38a99f,'key':_0x4b09ba,'op':_0x5ab37f,'clock':_0x4ab57c,'origin':_0x7ef628,'value':_0x5ab37f===_0x145b3b(0x6a9)?null:_0x29f7b5,'prevValue':_0x34388e});}['_handlePoke'](_0x58f3ee){const _0x4aaa98=_0x3777e8;if(!this[_0x4aaa98(0x33e)])return;if(!_0x58f3ee||typeof _0x58f3ee['env']!==_0x4aaa98(0x4c1)||typeof _0x58f3ee['type']!==_0x4aaa98(0x4c1))return;const {env:_0x5948d,type:_0x4b8da8}=_0x58f3ee;if(_0x5948d[_0x4aaa98(0x70d)]('~')||_0x4b8da8[_0x4aaa98(0x70d)]('~'))return;this[_0x4aaa98(0x37a)][_0x4aaa98(0x488)](_0x5948d+'\x00'+_0x4b8da8,{'env':_0x5948d,'type':_0x4b8da8}),this[_0x4aaa98(0x862)]();}[_0x3777e8(0x862)](){const _0x44a253=_0x3777e8;if(this[_0x44a253(0x76a)])return;const _0x588935=()=>{const _0x3e8be4=_0x44a253;this[_0x3e8be4(0x76a)]=null,this[_0x3e8be4(0x687)]()['catch'](()=>{});};this[_0x44a253(0x76a)]=setTimeout(_0x588935,_0xc4146e(this['_flushDebounce']));}async[_0x3777e8(0x687)](){const _0x156dca=_0x3777e8;if(this[_0x156dca(0x2d2)]){this[_0x156dca(0x862)]();return;}this[_0x156dca(0x2d2)]=!![];try{const _0x3542a2=[...this[_0x156dca(0x37a)][_0x156dca(0x3b9)]()];this[_0x156dca(0x37a)][_0x156dca(0x400)]();let _0x8ef89e=![];for(const {env:_0x48fa7b,type:_0x23d8b6}of _0x3542a2){try{const _0x291eca=await this[_0x156dca(0x3e6)](_0x48fa7b,_0x23d8b6);if(_0x291eca)_0x8ef89e=!![];}catch{this['_pending'][_0x156dca(0x488)](_0x48fa7b+'\x00'+_0x23d8b6,{'env':_0x48fa7b,'type':_0x23d8b6}),_0x8ef89e=!![];}}if(_0x8ef89e||this[_0x156dca(0x37a)]['size']>0x0)this[_0x156dca(0x862)]();}finally{this[_0x156dca(0x2d2)]=![];}}async[_0x3777e8(0x3e6)](_0x3bed6e,_0x50d408){const _0x10e7a3=_0x3777e8,_0x514463=await this[_0x10e7a3(0x555)]['_openEnvLazy'](_0x3bed6e),_0x11018e=_0x3bed6e+'\x00'+_0x50d408;!this[_0x10e7a3(0x532)]['has'](_0x11018e)&&(!this['_baselines'][_0x10e7a3(0x4a8)](_0x3bed6e)&&(_0x514463['_enableChangelog'](),this[_0x10e7a3(0x656)][_0x10e7a3(0x488)](_0x3bed6e,_0x514463['getClock']()||0x0)),this['_cursors'][_0x10e7a3(0x488)](_0x11018e,this['_baselines'][_0x10e7a3(0x616)](_0x3bed6e)));const _0x3025ac=this['_cursors'][_0x10e7a3(0x616)](_0x11018e),_0x1eeb94=_0x514463['getClock'](_0x50d408)||0x0;if(_0x1eeb94<=_0x3025ac)return![];const _0xc4b0e3=_0x3025ac+this[_0x10e7a3(0x523)],_0x514b99=Math[_0x10e7a3(0x5b5)](_0x1eeb94,_0xc4b0e3),_0x424be7=_0x262288[_0x10e7a3(0x25c)]?_0x262288[_0x10e7a3(0x38b)]():0x0,_0x481ea9=Array[_0x10e7a3(0x5f7)](_0x514463['getChanges'](_0x50d408,_0x3025ac+0x1,_0x514b99));let _0x5c0638=_0x3025ac;for(const _0x4359b9 of _0x481ea9){const {clock:_0x20db54,key:_0x5bd9fd,action:_0x4357f9,origin:_0x4a907b}=_0x4359b9;if(_0x20db54>_0x5c0638)_0x5c0638=_0x20db54;if(_0x5bd9fd==null)continue;if(this['_pendingLocal'][_0x10e7a3(0x4a8)](this[_0x10e7a3(0x661)](_0x3bed6e,_0x50d408,_0x5bd9fd,_0x20db54)))continue;if(!this[_0x10e7a3(0x553)](_0x3bed6e,_0x50d408,_0x5bd9fd,_0x20db54))continue;let _0x56a37d,_0x56eb91;if(_0x4357f9===_0xa089cf['REMOVE'])_0x56a37d='remove',_0x56eb91=null;else{const _0x4ae1ce=_0x514463[_0x10e7a3(0x616)](_0x50d408,_0x5bd9fd);_0x4ae1ce==null?(_0x56a37d=_0x10e7a3(0x6a9),_0x56eb91=null):(_0x56a37d=_0x10e7a3(0x7bc),_0x56eb91=_0x4ae1ce);}this[_0x10e7a3(0x7bb)](_0x10e7a3(0x809),{'env':_0x3bed6e,'type':_0x50d408,'key':_0x5bd9fd,'op':_0x56a37d,'clock':_0x20db54,'origin':_0x4a907b,'value':_0x56eb91});}if(_0x262288[_0x10e7a3(0x25c)])_0x262288[_0x10e7a3(0x426)](_0x10e7a3(0x49b)+_0x3bed6e+':'+_0x50d408,_0x262288[_0x10e7a3(0x38b)]()-_0x424be7,'n='+_0x481ea9[_0x10e7a3(0x479)]);return this[_0x10e7a3(0x532)]['set'](_0x11018e,Math[_0x10e7a3(0x3c5)](_0x5c0638,_0x514b99)),_0x514463[_0x10e7a3(0x353)](_0x50d408)>_0x514b99;}[_0x3777e8(0x371)](){const _0x310f59=_0x3777e8;return{'started':this[_0x310f59(0x33e)],'quantum':this[_0x310f59(0x523)],'flushDebounce':this[_0x310f59(0x2c3)],'cursors':Object[_0x310f59(0x237)]([...this[_0x310f59(0x532)][_0x310f59(0x325)]()][_0x310f59(0x6f2)](([_0x3e9406,_0x89addd])=>[_0x3e9406[_0x310f59(0x2a6)]('\x00',':'),_0x89addd])),'pending':this['_pending'][_0x310f59(0x1d3)],'seen':this[_0x310f59(0x5b1)][_0x310f59(0x1d3)]};}}return _0x1587c3[_0x3777e8(0x5ce)]=_0x31343b,okdbChangefeed={'OKDBChangefeed':_0x1587c3},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x3eca4d=_0x1ade1a;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x190f08}=requireOkdbEnums(),_0x3b10c8=new Set([_0x190f08[_0x3eca4d(0x412)],_0x190f08[_0x3eca4d(0x3ec)],_0x190f08[_0x3eca4d(0x798)]]),{ENGINE_EVENTS:_0x4090b1}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x45fa99}=requireEnums(),{QUEUE_EVENTS:_0x5c9494}=requireOkdbQueueValidate(),_0x453fd6=Object['values'](_0x190f08),_0x534622=Object[_0x3eca4d(0x3b9)](_0x4090b1)['map'](_0x2fdbb6=>_0x3eca4d(0x662)+_0x2fdbb6),_0xa0f6fb=Object[_0x3eca4d(0x3b9)](_0x45fa99),_0x446d6b=Object[_0x3eca4d(0x3b9)](_0x5c9494),_0x355a5b=[_0x3eca4d(0x6e7),'processor:progress',_0x3eca4d(0x4d4),'processor:paused',_0x3eca4d(0x3f6),_0x3eca4d(0x4f1)],_0x1f3d76=[..._0x453fd6,..._0x534622,..._0xa0f6fb,..._0x446d6b,..._0x355a5b,_0x3eca4d(0x629)],_0x3cf84f=new Set(_0x1f3d76),_0x7010f2=new Set([_0x190f08['ITEM_CREATE'],_0x190f08[_0x3eca4d(0x3ec)],_0x190f08[_0x3eca4d(0x798)],_0x190f08[_0x3eca4d(0x542)],_0x190f08['TXN_END'],_0x190f08['TXN_ROLLBACK'],_0x190f08['SYSTEM_CLOCK_CHANGE'],_0x190f08['INDEX_PROGRESS'],_0x45fa99[_0x3eca4d(0x3e3)],_0x45fa99[_0x3eca4d(0x4a1)],_0x45fa99[_0x3eca4d(0x180)],_0x45fa99[_0x3eca4d(0x2ad)],_0x3eca4d(0x689)]),_0x5e3db0=_0x1f3d76[_0x3eca4d(0x658)](_0x6e3514=>_0x6e3514===_0x3eca4d(0x629)||!_0x7010f2[_0x3eca4d(0x4a8)](_0x6e3514)),_0x56d35c=0x14,_0x2a43cf=0xc8;class _0x150118{constructor(_0x381552,_0x2faa2c={}){const _0x4e9876=_0x3eca4d;this[_0x4e9876(0x555)]=_0x381552,this[_0x4e9876(0x694)]=_0x2faa2c['maxConnections']??_0x56d35c,this[_0x4e9876(0x5df)]=_0x2faa2c[_0x4e9876(0x334)]??_0x2a43cf,this[_0x4e9876(0x75e)]=new Set(),this[_0x4e9876(0x620)]=[],this[_0x4e9876(0x2bd)]=[],this[_0x4e9876(0x527)]=null,this[_0x4e9876(0x750)]=![],this[_0x4e9876(0x502)]=null,this[_0x4e9876(0x233)]=null;}[_0x3eca4d(0x323)](){const _0x3b3ba9=_0x3eca4d;if(this['_attached'])return;this['_attached']=!![];const {okdb:_0x3dfc91}=this;this[_0x3b3ba9(0x527)]=_0x3dfc91[_0x3b3ba9(0x629)][_0x3b3ba9(0x323)](_0x4864e8=>this[_0x3b3ba9(0x69d)](_0x3b3ba9(0x629),_0x4864e8));for(const _0x5ad7f7 of _0x1f3d76){if(_0x5ad7f7===_0x3b3ba9(0x629))continue;const _0x43193e=_0x3b10c8[_0x3b3ba9(0x4a8)](_0x5ad7f7),_0x4ce476=_0x2999cd=>{const _0x3d3079=_0x3b3ba9;if(_0x43193e&&this[_0x3d3079(0x502)])return;this[_0x3d3079(0x69d)](_0x5ad7f7,_0x2999cd??{});};_0x3dfc91[_0x3b3ba9(0x425)]['on'](_0x5ad7f7,_0x4ce476),this[_0x3b3ba9(0x2bd)][_0x3b3ba9(0x2e6)]({'event':_0x5ad7f7,'handler':_0x4ce476});}this[_0x3b3ba9(0x247)]=()=>this[_0x3b3ba9(0x5eb)](),_0x3dfc91[_0x3b3ba9(0x425)][_0x3b3ba9(0x38c)](_0x190f08[_0x3b3ba9(0x87c)],this[_0x3b3ba9(0x247)]);}['detach'](){const _0x5e4afe=_0x3eca4d;if(!this[_0x5e4afe(0x750)])return;if(this[_0x5e4afe(0x247)]){try{this[_0x5e4afe(0x555)]['events'][_0x5e4afe(0x5c5)](_0x190f08['SYSTEM_STOPPED'],this[_0x5e4afe(0x247)]);}catch{}this[_0x5e4afe(0x247)]=null;}this[_0x5e4afe(0x527)]?.(),this[_0x5e4afe(0x527)]=null;for(const {event:_0x5a79b3,handler:_0xb9efa3}of this[_0x5e4afe(0x2bd)]){try{this[_0x5e4afe(0x555)][_0x5e4afe(0x425)]['off'](_0x5a79b3,_0xb9efa3);}catch{}}this[_0x5e4afe(0x2bd)]=[];for(const _0x53f481 of this[_0x5e4afe(0x75e)]){try{_0x53f481[_0x5e4afe(0x469)]?.();}catch{}}this[_0x5e4afe(0x75e)]['clear'](),this[_0x5e4afe(0x173)](),this[_0x5e4afe(0x750)]=![];}[_0x3eca4d(0x738)](_0x4babce){const _0x5cac51=_0x3eca4d;if(!_0x4babce||this['_feed']===_0x4babce)return;this[_0x5cac51(0x173)](),this['_feed']=_0x4babce,this[_0x5cac51(0x233)]=_0x221af1=>{const _0x1f98b1=_0x5cac51;if(!_0x221af1)return;const _0x2233a9=_0x221af1['op']===_0x1f98b1(0x6a9)?_0x190f08['ITEM_REMOVE']:_0x190f08[_0x1f98b1(0x3ec)];this['_push'](_0x2233a9,_0x221af1);},_0x4babce['on'](_0x5cac51(0x809),this[_0x5cac51(0x233)]);}[_0x3eca4d(0x173)](){const _0x441829=_0x3eca4d;if(this[_0x441829(0x502)]&&this[_0x441829(0x233)])try{this[_0x441829(0x502)][_0x441829(0x5c5)]('change',this['_onFeedChange']);}catch{}this[_0x441829(0x502)]=null,this[_0x441829(0x233)]=null;}[_0x3eca4d(0x7d2)](_0x3695ec,_0x595d50){const _0xb1bc04=_0x3eca4d;if(!_0x3cf84f['has'](_0x3695ec))return;this[_0xb1bc04(0x69d)](_0x3695ec,_0x595d50??{});}[_0x3eca4d(0x1aa)](_0x477ece,_0x39c36f,_0x5942f1){const _0x4935fe=_0x3eca4d;if(this[_0x4935fe(0x75e)][_0x4935fe(0x1d3)]>=this[_0x4935fe(0x694)])return _0x39c36f(_0x4935fe(0x3fc),{'message':_0x4935fe(0x1a2),'code':_0x4935fe(0x374)}),()=>{};const _0x142838=this['_resolveFilter'](_0x477ece),_0xa2acfa={'send':_0x39c36f,'filter':_0x142838,'close':_0x5942f1??null};this[_0x4935fe(0x75e)][_0x4935fe(0x76e)](_0xa2acfa);for(const {event:_0x5c6d07,data:_0x37a5b9}of this[_0x4935fe(0x620)]){if(_0x142838[_0x4935fe(0x4a8)](_0x5c6d07))try{_0x39c36f(_0x5c6d07,_0x37a5b9);}catch{}}return()=>this[_0x4935fe(0x75e)][_0x4935fe(0x727)](_0xa2acfa);}[_0x3eca4d(0x18a)](){const _0x412478=_0x3eca4d;if(this[_0x412478(0x502)])return this[_0x412478(0x502)];const {OKDBChangefeed:_0x2b082e}=requireOkdbChangefeed(),_0x4af907=new _0x2b082e(this['okdb']);_0x4af907[_0x412478(0x525)](),this[_0x412478(0x738)](_0x4af907);if(this['okdb']&&!this[_0x412478(0x555)][_0x412478(0x3e9)])this[_0x412478(0x555)][_0x412478(0x3e9)]=_0x4af907;return this[_0x412478(0x502)];}get[_0x3eca4d(0x593)](){const _0x2896c6=_0x3eca4d;return this[_0x2896c6(0x75e)][_0x2896c6(0x1d3)];}[_0x3eca4d(0x5fc)](){const _0x2efb63=_0x3eca4d;return{'connections':this[_0x2efb63(0x593)],'bufferSize':this[_0x2efb63(0x620)][_0x2efb63(0x479)],'attached':this[_0x2efb63(0x750)],'allEvents':_0x1f3d76[_0x2efb63(0x479)],'defaultEvents':_0x5e3db0['length']};}static get[_0x3eca4d(0x621)](){return _0x1f3d76;}static get[_0x3eca4d(0x44a)](){return _0x5e3db0;}static get[_0x3eca4d(0x285)](){return[..._0x7010f2];}[_0x3eca4d(0x6be)](_0x5f56ad){const _0x302126=_0x3eca4d;if(!_0x5f56ad||!_0x5f56ad[_0x302126(0x479)])return new Set(_0x5e3db0);const _0x5c0f32=_0x5f56ad[_0x302126(0x658)](_0x19c9fe=>_0x3cf84f[_0x302126(0x4a8)](_0x19c9fe));return new Set(_0x5c0f32['length']?_0x5c0f32:_0x5e3db0);}['_push'](_0x323d14,_0x4ade30){const _0x31d66d=_0x3eca4d,_0x1d7228={..._0x4ade30,'_ts':_0x4ade30?.['_ts']??_0x4ade30?.['ts']??Date[_0x31d66d(0x38b)]()};this[_0x31d66d(0x620)][_0x31d66d(0x2e6)]({'event':_0x323d14,'data':_0x1d7228});if(this['_buffer'][_0x31d66d(0x479)]>this[_0x31d66d(0x5df)])this['_buffer'][_0x31d66d(0x138)]();for(const _0x36e719 of this['_connections']){if(_0x36e719['filter'][_0x31d66d(0x4a8)](_0x323d14))try{_0x36e719[_0x31d66d(0x74a)](_0x323d14,_0x1d7228);}catch{}}}}return okdbRelay=_0x150118,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x1c7c73=_0x1ade1a;if(hasRequiredLib)return lib[_0x1c7c73(0x3bf)];return hasRequiredLib=0x1,function(_0x56caa7){const _0x3c4e42=_0x1c7c73,_0x5e7ea1=require$$0$6,{load:_0x587891}=require$$1$1,_0x280c32=requireBridge(),_0x2936d0=requireWritebatch(),{Pumper:_0x5dfa1c}=requirePump(),{OKDBEnv:_0x151b4f,HIGH_SENTINEL:_0x62c0ef}=requireEnv(),{reclass:_0x456613,NotImplementedNative:_0x414ff9,OKDBError:_0x43afb7,optionsArg:_0x2d0ef4,invalidArgument:_0x30194e}=requireErrors(),{notImplemented:_0x55db66}=requireUnsupported(),{OKDBHttp:_0x1b9806}=requireHttp(),{OKDBFts:_0x181d4e}=requireFts(),{OKDBEmbeddings:_0x5c9a70}=requireEmbeddings(),{OKDBAuth:_0x355f33}=requireAuth(),{OKDBSync:_0x501da8}=requireSync(),{OKDBMigrate:_0x11fa71}=requireMigrate(),{OKDBFunctions:_0x2aff8b}=requireFunctions(),{OKDBMcp:_0x427025}=requireMcp(),{OKDBEngines:_0x3e2309,OKDBPipelines:_0x64ade2}=requireEngines(),{makeMeta:_0xa2878a,makeLicenses:_0x5e4bf2,makeLicenseChecker:_0x17b9f2,makeProcesses:_0x5f3c06}=requireSys();let _0x1ac1e2=null;function _0x57ab5a(_0x2db548){const _0xbf094e=_0x3f13;if(!_0x1ac1e2){const {Unpackr:_0x388342}=require$$18;_0x1ac1e2=new _0x388342({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x1ac1e2[_0xbf094e(0x7de)](_0x2db548);}let _0x248035=null;function _0x2b9a2f(_0x23af4b,_0x3756b4){const _0x534765=_0x3f13;if(!_0x248035){const {Unpackr:_0x21aeb2}=require$$18;_0x248035=new _0x21aeb2({'copyBuffers':!![]});}return _0x248035[_0x534765(0x7de)](_0x23af4b,_0x3756b4);}const {encodeKey:_0x7a4ba7,KEY_BUF_SIZE:_0x3ee727,NO_FAST:_0x4d030e}=requireKeyenc(),_0x5e72c1=0x40*0x400,_0x4bc92d=0x4*0x400*0x400;function _0x15b420(_0x2ae398,_0x4dd94c){const _0x5d36d4=_0x3f13,_0xe0d835=_0x2ae398[0x2],_0x46d3ce=_0xe0d835?(_0x2ae398[_0x5d36d4(0x479)]-0x3)/Math[_0x5d36d4(0x361)](_0xe0d835):0x0,_0x3d8609=new Array(_0x46d3ce);let _0x1f3163=0x3;if(_0xe0d835===0x2){for(let _0x533034=0x0;_0x533034<_0x46d3ce;_0x533034++,_0x1f3163+=0x2)_0x3d8609[_0x533034]={'key':_0x2ae398[_0x1f3163],'value':_0x2ae398[_0x1f3163+0x1]};}else{if(_0xe0d835===0x3){for(let _0x4da7d0=0x0;_0x4da7d0<_0x46d3ce;_0x4da7d0++,_0x1f3163+=0x3)_0x3d8609[_0x4da7d0]={'key':_0x2ae398[_0x1f3163],'value':_0x2ae398[_0x1f3163+0x1],'version':_0x2ae398[_0x1f3163+0x2]};}else{if(_0xe0d835===-0x2){for(let _0x4c6f7c=0x0;_0x4c6f7c<_0x46d3ce;_0x4c6f7c++,_0x1f3163+=0x2)_0x3d8609[_0x4c6f7c]={'clock':_0x2ae398[_0x1f3163],..._0x2ae398[_0x1f3163+0x1]};}else{if(_0xe0d835===0x4){for(let _0x38dd27=0x0;_0x38dd27<_0x46d3ce;_0x38dd27++,_0x1f3163+=0x4)_0x3d8609[_0x38dd27]={'key':_0x2ae398[_0x1f3163],'value':_0x2ae398[_0x1f3163+0x1],'version':_0x2ae398[_0x1f3163+0x2],'indexKey':_0x2ae398[_0x1f3163+0x3]};}else{if(_0x46d3ce)throw new Error('callRows:\x20unexpected\x20row\x20stride\x20'+_0xe0d835);}}}}return _0x4dd94c?[_0x2ae398[0x0],_0x3d8609,_0x2ae398[0x1]]:_0x3d8609;}let _0x110a56=null;function _0x19860a(_0x4ed893,_0x332b27,_0x4a14aa){const _0x5d6aa9=_0x3f13;if(!_0x110a56)_0x110a56=requireDist()[_0x5d6aa9(0x822)];const _0x43914b=new DataView(_0x4ed893[_0x5d6aa9(0x55c)],_0x4ed893[_0x5d6aa9(0x4d9)],_0x332b27),_0x267a00=_0x43914b[_0x5d6aa9(0x647)](0x10,!![]),_0x331bbb=new Array(_0x267a00);let _0x380531=0x14;for(let _0x18700e=0x0;_0x18700e<_0x267a00;_0x18700e++){const _0x4d27b6=_0x4ed893[_0x380531]|_0x4ed893[_0x380531+0x1]<<0x8;_0x380531+=0x2,_0x331bbb[_0x18700e]=_0x110a56(_0x4ed893,_0x380531,_0x380531+_0x4d27b6),_0x380531+=_0x4d27b6;}return _0x4a14aa?[_0x43914b[_0x5d6aa9(0x6ee)](0x0,!![]),_0x331bbb,_0x43914b[_0x5d6aa9(0x6ee)](0x8,!![])]:_0x331bbb;}const _0x23da5a=requireOkdbLogger(),_0x2836bc=requireOkdbPlugins(),{OKDB_STATE:_0x1bf51b,EVENTS:_0x135095}=requireOkdbEnums(),_0x4c6532=requireStatics();let _0x1da3f6=null,_0x65f908=![],_0x2727c4=0x1;const _0x2452cf=new Map(),_0x201764=new Set(['FIELD_RESOLVER_PENDING',_0x3c4e42(0x688)]),_0x36419f=_0x3f7036=>!!_0x3f7036&&_0x201764[_0x3c4e42(0x4a8)](_0x3f7036[_0x3c4e42(0x431)]),_0x1dd7f6=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x3a3666(){const _0x3ba09f=_0x3c4e42;!_0x65f908&&(_0xd6733e()[_0x3ba09f(0x1bf)](_0x280c32[_0x3ba09f(0x3a9)]),_0x2936d0[_0x3ba09f(0x450)](_0xd6733e()),_0x65f908=!![]);}function _0xd6733e(){if(!_0x1da3f6)_0x1da3f6=_0x587891();return _0x1da3f6;}class _0x1f7da9 extends Map{constructor(_0x2218c1){const _0x57c369=_0x3c4e42;super(),this[_0x57c369(0x612)]=_0x2218c1;}[_0x3c4e42(0x765)](){const _0x4e7039=_0x3c4e42,_0x4e3d29=this[_0x4e7039(0x612)];if(!_0x4e3d29[_0x4e7039(0x232)])return;let _0x1cac6c;try{_0x1cac6c=_0x4e3d29[_0x4e7039(0x82b)]('db',null,'envNames',[],![]);}catch{return;}for(const _0x101673 of _0x1cac6c)if(!super[_0x4e7039(0x4a8)](_0x101673)&&_0x4e3d29[_0x4e7039(0x82b)]('db',null,'hasEnv',[_0x101673],![]))_0x4e3d29[_0x4e7039(0x5dd)](_0x101673);}[_0x3c4e42(0x616)](_0x264189){const _0x35f412=_0x3c4e42,_0x1bf68e=super[_0x35f412(0x616)](_0x264189);if(_0x1bf68e!==undefined||typeof _0x264189!==_0x35f412(0x4c1))return _0x1bf68e;const _0x2417d4=this[_0x35f412(0x612)];if(_0x264189===_0x35f412(0x342))return _0x2417d4[_0x35f412(0x232)]?_0x2417d4[_0x35f412(0x4a0)]['_statusEnv']??undefined:undefined;if(_0x2417d4['_isOpen']&&_0x2417d4[_0x35f412(0x82b)]('db',null,'hasEnv',[_0x264189],![]))return _0x2417d4[_0x35f412(0x5dd)](_0x264189);if(_0x2417d4[_0x35f412(0x232)]&&typeof _0x264189===_0x35f412(0x4c1)&&!_0x264189[_0x35f412(0x70d)]('~')){_0x2417d4['_call']('db',null,'pumpEnvSync',[],![]);if(_0x2417d4[_0x35f412(0x82b)]('db',null,_0x35f412(0x7bd),[_0x264189],![]))return _0x2417d4['_ensureEnv'](_0x264189);}return undefined;}[_0x3c4e42(0x4a8)](_0x5c87d1){const _0xfb7ac4=_0x3c4e42;return this[_0xfb7ac4(0x616)](_0x5c87d1)!==undefined;}get[_0x3c4e42(0x1d3)](){const _0x4642e4=_0x3c4e42;return this[_0x4642e4(0x765)](),super[_0x4642e4(0x1d3)];}[_0x3c4e42(0x23b)](){const _0x406052=_0x3c4e42;return this[_0x406052(0x765)](),super[_0x406052(0x23b)]();}['values'](){const _0x46be76=_0x3c4e42;return this['_sync'](),super[_0x46be76(0x3b9)]();}[_0x3c4e42(0x325)](){const _0xe95348=_0x3c4e42;return this['_sync'](),super[_0xe95348(0x325)]();}[_0x3c4e42(0x39f)](_0x1dd1fe,_0x20513b){const _0x203b76=_0x3c4e42;return this['_sync'](),super[_0x203b76(0x39f)](_0x1dd1fe,_0x20513b);}[Symbol[_0x3c4e42(0x821)]](){const _0x51e6c9=_0x3c4e42;return this[_0x51e6c9(0x765)](),super[Symbol[_0x51e6c9(0x821)]]();}}class _0x10248a{constructor(_0x199e7d,_0x2df7ef={}){const _0x3e91df=_0x3c4e42,_0x349674=_0xd6733e();this[_0x3e91df(0x72d)]=_0x199e7d,this[_0x3e91df(0x7a0)]=_0x2727c4++,this['_key']='db'+this['_uid'],this[_0x3e91df(0x5c3)]={..._0x4c6532[_0x3e91df(0x6cc)],..._0x2df7ef,'auth':_0x2df7ef[_0x3e91df(0x470)]?{..._0x2df7ef[_0x3e91df(0x470)]}:undefined,'lmdb':{..._0x2df7ef[_0x3e91df(0x878)]||{}}},this[_0x3e91df(0x425)]=new _0x5e7ea1(),this[_0x3e91df(0x425)][_0x3e91df(0x2de)](0x0),this[_0x3e91df(0x16c)]=new Set(),this['events']['on'](_0x3e91df(0x872),_0x11c15b=>this[_0x3e91df(0x3c4)](_0x11c15b)),this['log']=new _0x23da5a(this),this[_0x3e91df(0x629)][_0x3e91df(0x4f7)](),_0x280c32[_0x3e91df(0x65e)](this['_key'],{'_deliver':(_0x255633,_0xe32cca)=>this[_0x3e91df(0x801)](_0x255633,_0xe32cca),'_log':_0x4b672a=>{const _0x2a65e1=_0x3e91df;if(this[_0x2a65e1(0x791)])this[_0x2a65e1(0x791)]['push'](_0x4b672a);const _0x2cf684=_0x4b672a&&_0x4b672a[_0x2a65e1(0x5cb)];if(_0x2cf684&&Object[_0x2a65e1(0x259)]['hasOwnProperty'][_0x2a65e1(0x881)](this[_0x2a65e1(0x629)],_0x2cf684)&&typeof this[_0x2a65e1(0x629)][_0x2cf684]===_0x2a65e1(0x40e)){const _0x104616=_0x4b672a['context'];return this[_0x2a65e1(0x629)][_0x2cf684](_0x4b672a['msg'],{..._0x4b672a[_0x2a65e1(0x5c1)]||{},..._0x104616&&typeof _0x104616===_0x2a65e1(0x6f7)?_0x104616:{}});}return this[_0x2a65e1(0x629)][_0x2a65e1(0x43e)](_0x4b672a);}}),_0x3a3666();try{const _0x2655b1={};if(typeof _0x3e91df(0x2fa)===_0x3e91df(0x296)||'true'!==_0x3e91df(0x2fa));const _0x57ca55={..._0x2df7ef,'_clusterWorker':require(_0x3e91df(0x452))[_0x3e91df(0x36b)],..._0x2655b1};this[_0x3e91df(0x3e7)]={'instance':null,'envs':new Map()};typeof _0x2df7ef[_0x3e91df(0x6b0)]==='function'&&(this[_0x3e91df(0x3e7)][_0x3e91df(0x4dc)]=_0x2df7ef[_0x3e91df(0x6b0)],delete _0x57ca55['encryptionKey']);if(_0x2df7ef[_0x3e91df(0x350)]&&typeof _0x2df7ef[_0x3e91df(0x350)]===_0x3e91df(0x6f7)){for(const [_0xc0fe80,_0x43fd8e]of Object[_0x3e91df(0x325)](_0x2df7ef[_0x3e91df(0x350)]))this[_0x3e91df(0x3e7)][_0x3e91df(0x411)][_0x3e91df(0x488)](_0xc0fe80,_0x43fd8e);}delete _0x57ca55[_0x3e91df(0x350)],this[_0x3e91df(0x18f)]=new _0x349674['Native'](_0x199e7d,_0x57ca55,this[_0x3e91df(0x7f2)]);}catch(_0xa659d4){_0x280c32[_0x3e91df(0x4c2)](this['_key']);throw _0x456613(_0xa659d4);}this['state']=_0x1bf51b['CREATED'],this[_0x3e91df(0x232)]=![],this['_envs']=new _0x1f7da9(this),this[_0x3e91df(0x755)]=new _0x5dfa1c({'pump':()=>this[_0x3e91df(0x18f)][_0x3e91df(0x167)]()}),this[_0x3e91df(0x630)]=new _0x2936d0[(_0x3e91df(0x2ba))](this),this['_pumper'][_0x3e91df(0x22f)]=()=>_0x280c32[_0x3e91df(0x20f)](),_0x280c32[_0x3e91df(0x4cb)](()=>this['_pumper'][_0x3e91df(0x270)](),this),_0x2452cf[_0x3e91df(0x488)](this[_0x3e91df(0x7a0)],this),this[_0x3e91df(0x427)]={},_0x280c32[_0x3e91df(0x5b8)](this),this[_0x3e91df(0x60e)]=new _0x181d4e(this),this['embeddings']=new _0x5c9a70(this),this['engines']=new _0x3e2309(this,null,null),this[_0x3e91df(0x35c)]=new _0x64ade2(this,null),this[_0x3e91df(0x5c1)]=_0xa2878a(this),this[_0x3e91df(0x248)]=_0x5e4bf2(this),this[_0x3e91df(0x27b)]=_0x17b9f2(this),this['processes']=_0x5f3c06(this),this[_0x3e91df(0x1f3)]=_0x447931(this),this[_0x3e91df(0x889)]=new _0x2836bc(this),this[_0x3e91df(0x740)]=new _0x1b9806(this),this['sync']=new _0x501da8(this),this['auth']=new _0x355f33(this),this[_0x3e91df(0x4a7)]=new _0x2aff8b(this,null),this[_0x3e91df(0x863)]=new _0x427025(this),this[_0x3e91df(0x879)]=_0x2df7ef&&_0x2df7ef[_0x3e91df(0x879)]===![]?null:_0x55db66(_0x3e91df(0x879)),this[_0x3e91df(0x4fc)]=_0x55db66(_0x3e91df(0x4fc)),this[_0x3e91df(0x3ee)]=new _0x11fa71(this);}[_0x3c4e42(0x82b)](_0x33b88b,_0x459dbf,_0x8f71a8,_0x3bb4c2,_0x2da6e2=!![]){const _0x1dd760=_0x3c4e42;if(_0x2da6e2&&this[_0x1dd760(0x630)]&&this[_0x1dd760(0x630)][_0x1dd760(0x7b6)][_0x1dd760(0x479)])this[_0x1dd760(0x630)]['commit']();try{return this[_0x1dd760(0x18f)][_0x1dd760(0x881)](_0x33b88b,_0x459dbf,_0x8f71a8,_0x3bb4c2);}catch(_0xb1064c){throw _0x456613(_0xb1064c);}finally{if(_0x2da6e2)this[_0x1dd760(0x755)][_0x1dd760(0x270)]();}}['_callPacked'](_0x1d73d0,_0x557f16,_0x583dc6,_0x308d26){const _0x577bf2=_0x3c4e42;let _0x3040f2;try{_0x3040f2=this[_0x577bf2(0x18f)][_0x577bf2(0x22c)](_0x1d73d0,_0x557f16,_0x583dc6,_0x308d26);}catch(_0x263cba){throw _0x456613(_0x263cba);}return _0x3040f2 instanceof Uint8Array?_0x57ab5a(_0x3040f2):_0x3040f2[0x0];}[_0x3c4e42(0x142)](_0x440284){const _0x17990a=_0x3c4e42;let _0x3ff3ee=this[_0x17990a(0x408)];if(_0x3ff3ee&&_0x440284<=_0x3ff3ee[_0x17990a(0x479)])return _0x3ff3ee;let _0x3964c7=_0x3ff3ee?_0x3ff3ee[_0x17990a(0x479)]:_0x5e72c1;while(_0x3964c7<_0x440284)_0x3964c7*=0x2;if(_0x3964c7>_0x4bc92d)return _0x3ff3ee;return _0x3ff3ee=this[_0x17990a(0x408)]=Buffer[_0x17990a(0x7cb)](_0x3964c7),this[_0x17990a(0x18f)][_0x17990a(0x760)](_0x3ff3ee),_0x3ff3ee;}[_0x3c4e42(0x80d)](_0x3a342d,_0x17b74b,_0x5e2ad4){const _0x22750f=_0x3c4e42;if(!this['_rbuf'])this[_0x22750f(0x142)](0x0);const _0x24306a=this[_0x22750f(0x18f)][_0x22750f(0x834)](_0x3a342d,_0x17b74b,_0x5e2ad4);if(typeof _0x24306a===_0x22750f(0x729))return _0x2b9a2f(this[_0x22750f(0x408)],_0x24306a);if(_0x24306a===undefined||_0x24306a===null)return _0x24306a;return this[_0x22750f(0x142)](_0x24306a[_0x22750f(0x479)]),_0x2b9a2f(_0x24306a);}[_0x3c4e42(0x1c9)](_0x4b7170,_0x445efc,_0x5a2843){const _0x31dcb6=_0x3c4e42;let _0x139b8d=this[_0x31dcb6(0x1f2)];if(!_0x139b8d){_0x139b8d=this['_kbuf']=Buffer[_0x31dcb6(0x7cb)](_0x3ee727),this[_0x31dcb6(0x18f)][_0x31dcb6(0x6ad)](_0x139b8d),this['_tids']=new Map();if(!this['_rbuf'])this['_readBuf'](0x0);}const _0x13d1ee=_0x7a4ba7(_0x5a2843,_0x139b8d);if(_0x13d1ee<0x0)return _0x4d030e;let _0x303864=this[_0x31dcb6(0x5b7)]['get'](_0x4b7170);if(_0x303864===undefined)this[_0x31dcb6(0x5b7)][_0x31dcb6(0x488)](_0x4b7170,_0x303864=new Map());let _0xa9472c=_0x303864[_0x31dcb6(0x616)](_0x445efc);if(_0xa9472c===undefined)_0x303864[_0x31dcb6(0x488)](_0x445efc,_0xa9472c=this['_native']['typeId'](_0x4b7170,_0x445efc));if(_0xa9472c<0x0)return _0x4d030e;const _0x46ebc4=this[_0x31dcb6(0x18f)][_0x31dcb6(0x7b5)](_0xa9472c,_0x13d1ee);if(typeof _0x46ebc4===_0x31dcb6(0x729))return _0x2b9a2f(this[_0x31dcb6(0x408)],_0x46ebc4);if(_0x46ebc4===undefined||_0x46ebc4===null)return _0x46ebc4;return this['_readBuf'](_0x46ebc4[_0x31dcb6(0x479)]),_0x2b9a2f(_0x46ebc4);}['_callRows'](_0x2aa91f,_0x67e1d2,_0x3b3a76){const _0x4b05e4=_0x3c4e42;if(!this[_0x4b05e4(0x408)])this[_0x4b05e4(0x142)](0x0);let _0x3b8c3a;try{_0x3b8c3a=this[_0x4b05e4(0x18f)][_0x4b05e4(0x62d)](_0x2aa91f,_0x67e1d2,_0x3b3a76);}catch(_0x5112f1){throw _0x456613(_0x5112f1);}const _0xac430a=_0x67e1d2===_0x4b05e4(0x445),_0x1f9e28=_0xac430a?_0x3b3a76[0x1]:_0x67e1d2;let _0x340af7=this['_rbuf'],_0x4aa2a6=_0x3b8c3a;if(_0x3b8c3a instanceof Uint8Array)this['_readBuf'](_0x3b8c3a[_0x4b05e4(0x479)]),_0x340af7=_0x3b8c3a,_0x4aa2a6=_0x3b8c3a[_0x4b05e4(0x479)];else{if(typeof _0x3b8c3a!==_0x4b05e4(0x729))return _0x3b8c3a[0x0];}if(_0x1f9e28===_0x4b05e4(0x42e))return _0x19860a(_0x340af7,_0x4aa2a6,_0xac430a);if(_0x1f9e28===_0x4b05e4(0x84f))return _0x2b9a2f(_0x340af7,_0x4aa2a6);return _0x15b420(_0x2b9a2f(_0x340af7,_0x4aa2a6),_0xac430a);}[_0x3c4e42(0x421)](_0x1c98d9,_0xcd92bf,_0x7501eb,_0x28cf6c,_0x19b27a=!![],_0x37fb1a=!![]){const _0x2f96b4=_0x3c4e42,_0x16986c=()=>this[_0x2f96b4(0x39b)](()=>this[_0x2f96b4(0x82b)](_0x1c98d9,_0xcd92bf,_0x7501eb,_0x28cf6c,_0x19b27a));if(!_0x37fb1a)return _0x16986c();return this[_0x2f96b4(0x6d8)](_0x16986c);}[_0x3c4e42(0x6d8)](_0x2ce45b){return _0x2ce45b()['catch'](async _0x4e0a97=>{const _0x50236f=_0x3f13;if(!_0x36419f(_0x4e0a97))throw _0x4e0a97;const _0x1cd0e6=Date[_0x50236f(0x38b)]()+_0x1dd7f6;let _0x8595f8=0x1;while(_0x36419f(_0x4e0a97)&&Date[_0x50236f(0x38b)]()<_0x1cd0e6){await new Promise(_0x571af1=>setTimeout(_0x571af1,_0x8595f8)),_0x8595f8=Math[_0x50236f(0x5b5)](_0x8595f8*0x2,0x14);try{return await _0x2ce45b();}catch(_0x277f19){_0x4e0a97=_0x277f19;}}throw _0x4e0a97;});}[_0x3c4e42(0x751)](_0x199d18){const _0x37c84f=_0x3c4e42;if(_0x280c32[_0x37c84f(0x2d6)]())return Promise[_0x37c84f(0x816)](_0x199d18);return new Promise(_0x16f908=>setImmediate(()=>_0x16f908(_0x199d18)));}[_0x3c4e42(0x51a)](_0x2f9049){const _0x79aefd=_0x3c4e42;if(_0x280c32[_0x79aefd(0x2d6)]())return Promise[_0x79aefd(0x816)](_0x2f9049);return this[_0x79aefd(0x46b)]()[_0x79aefd(0x1df)](()=>_0x2f9049);}['_afterDurable'](){return new Promise(_0x2e413c=>setImmediate(()=>{const _0x3dde58=_0x3f13;let _0x1d5049;try{_0x1d5049=this[_0x3dde58(0x18f)][_0x3dde58(0x865)]();}catch{return _0x2e413c();}_0x2936d0[_0x3dde58(0x1d5)](_0x1d5049,_0x2e413c);}));}['_macro'](_0x107894){return new Promise((_0x59e625,_0x2d9bc9)=>setImmediate(()=>{try{_0x59e625(_0x107894());}catch(_0xc2c7b6){_0x2d9bc9(_0xc2c7b6);}}));}[_0x3c4e42(0x3ed)](_0x533ca4,_0x19b5de,_0x2f840d){return _0x3fa2cb(_0x533ca4,_0x19b5de,_0x2f840d);}[_0x3c4e42(0x3c4)](_0x245426){const _0x3e8968=_0x3c4e42;if(typeof _0x245426!==_0x3e8968(0x4c1)||this[_0x3e8968(0x16c)]['has'](_0x245426)||_0x245426===_0x3e8968(0x872)||_0x245426==='removeListener')return;this[_0x3e8968(0x16c)][_0x3e8968(0x76e)](_0x245426);try{this[_0x3e8968(0x18f)][_0x3e8968(0x881)](_0x3e8968(0x425),null,_0x3e8968(0x1aa),[this[_0x3e8968(0x7f2)],_0x245426]);}catch{}}[_0x3c4e42(0x801)](_0x4ea1d8,_0x46ae30){const _0xc2b09c=_0x3c4e42;this[_0xc2b09c(0x425)][_0xc2b09c(0x7bb)](_0x4ea1d8,_0x46ae30);}async[_0x3c4e42(0x605)](){const _0x26a5e9=_0x3c4e42,_0x3b8866=this[_0x26a5e9(0x3e7)];if(_0x3b8866['instance'])this[_0x26a5e9(0x21b)](null,await _0x3b8866['instance'](null),!![]);for(const [_0x226883,_0x589273]of _0x3b8866['envs'])this[_0x26a5e9(0x21b)](_0x226883,typeof _0x589273===_0x26a5e9(0x40e)?await _0x589273(_0x226883):_0x589273,typeof _0x589273==='function');(_0x3b8866[_0x26a5e9(0x4dc)]||[..._0x3b8866[_0x26a5e9(0x411)][_0x26a5e9(0x3b9)]()][_0x26a5e9(0x737)](_0x35500a=>typeof _0x35500a===_0x26a5e9(0x40e)))&&!this[_0x26a5e9(0x432)]&&(this[_0x26a5e9(0x432)]=_0x3e495e=>{const _0x81500f=_0x26a5e9,_0x547820=_0x3e495e&&_0x3e495e[_0x81500f(0x53c)]!=null?_0x3e495e[_0x81500f(0x53c)]:null,_0x35bce3=_0x547820==null?_0x3b8866['instance']:_0x3b8866['envs']['get'](_0x547820);if(typeof _0x35bce3!==_0x81500f(0x40e))return;Promise['resolve']()['then'](()=>_0x35bce3(_0x547820))['then'](_0x403da7=>this['_setKey'](_0x547820,_0x403da7,!![]))[_0x81500f(0x681)](_0x4cdd18=>this[_0x81500f(0x629)][_0x81500f(0x814)](_0x81500f(0x6c5)+(_0x4cdd18&&_0x4cdd18[_0x81500f(0x806)]),{'env':_0x547820}));},this[_0x26a5e9(0x425)]['on'](_0x26a5e9(0x436),this[_0x26a5e9(0x432)]));}['_setKey'](_0x39e048,_0x2ae69e,_0x52ce94){const _0xc04277=_0x3c4e42;if(_0x2ae69e==null)throw new _0x43afb7(_0xc04277(0x824)+(_0x39e048?_0xc04277(0x4b8)+_0x39e048+'\x22':'')+_0xc04277(0x311),_0xc04277(0x2c4));this['_native'][_0xc04277(0x881)]('db',null,_0xc04277(0x228),[_0x39e048,_0x2ae69e,!!_0x52ce94]);}async['changeEncryptionKey'](_0x1e8af3){const _0x211e50=_0x3c4e42;this['_assertOpen']();const {env:env=null,to:_0x31c26f}=_0x2d0ef4(_0x1e8af3),_0x652aba=typeof _0x31c26f==='function',_0x4aaa8a=_0x652aba?await _0x31c26f(env):_0x31c26f;if(_0x4aaa8a==null)throw _0x30194e(_0x211e50(0x6c0),_0x211e50(0x399),_0x4aaa8a);const _0x6293ea=this[_0x211e50(0x82b)]('db',null,'changeEncryptionKey',[env,_0x4aaa8a,_0x652aba]);if(_0x652aba){if(env==null)this[_0x211e50(0x3e7)][_0x211e50(0x4dc)]=_0x31c26f;else this[_0x211e50(0x3e7)][_0x211e50(0x411)]['set'](env,_0x31c26f);}return _0x6293ea;}async[_0x3c4e42(0x4f4)](_0x904500){const _0x4e1dfd=_0x3c4e42;this[_0x4e1dfd(0x4b5)]();const _0x123dc3=_0x2d0ef4(_0x904500);if(!_0x123dc3['env'])throw _0x30194e('reencrypt:\x20env','an\x20environment\x20name',_0x123dc3[_0x4e1dfd(0x53c)]);let _0x2a70e0=_0x123dc3['to'];const _0x340a4a=typeof _0x2a70e0===_0x4e1dfd(0x40e);if(_0x340a4a)_0x2a70e0=await _0x123dc3['to'](_0x123dc3[_0x4e1dfd(0x53c)]);const _0x4c3fce=await this['_macro'](()=>this[_0x4e1dfd(0x82b)]('db',null,'reencrypt',[_0x123dc3[_0x4e1dfd(0x53c)],'to'in _0x123dc3?_0x2a70e0:undefined,_0x340a4a]));if(_0x340a4a)this[_0x4e1dfd(0x3e7)][_0x4e1dfd(0x411)][_0x4e1dfd(0x488)](_0x123dc3[_0x4e1dfd(0x53c)],_0x123dc3['to']);return _0x4c3fce;}async[_0x3c4e42(0x2fb)](){const _0xfff00e=_0x3c4e42;if(this[_0xfff00e(0x823)]===_0x1bf51b[_0xfff00e(0x4f8)])return;if(this['state']!==_0x1bf51b[_0xfff00e(0x13c)])throw new _0x43afb7(_0xfff00e(0x171),_0xfff00e(0x6a3),{'state':this[_0xfff00e(0x823)]});this['state']=_0x1bf51b[_0xfff00e(0x219)],this[_0xfff00e(0x791)]=[];try{try{await this[_0xfff00e(0x605)](),await this[_0xfff00e(0x39b)](()=>this[_0xfff00e(0x18f)]['open']());}catch(_0x2504ec){throw _0x456613(_0x2504ec);}}catch(_0x13d2aa){this[_0xfff00e(0x823)]=_0x1bf51b[_0xfff00e(0x575)],this[_0xfff00e(0x791)]=null,this['_teardownNative']();throw _0x13d2aa;}this[_0xfff00e(0x232)]=!![],this[_0xfff00e(0x823)]=_0x1bf51b[_0xfff00e(0x4f8)];try{this[_0xfff00e(0x82b)]('db',null,_0xfff00e(0x146),[this[_0xfff00e(0x889)]['_plugins'][_0xfff00e(0x6f2)](_0x2b999f=>_0x2b999f[_0xfff00e(0x792)]?.['name'])[_0xfff00e(0x658)](Boolean)],![]),await this[_0xfff00e(0x889)][_0xfff00e(0x525)]();}catch(_0x13e467){this[_0xfff00e(0x823)]=_0x1bf51b[_0xfff00e(0x2d3)];try{this[_0xfff00e(0x18f)][_0xfff00e(0x469)]();}catch{}this[_0xfff00e(0x823)]=_0x1bf51b['STOPPED'],this[_0xfff00e(0x232)]=![],this[_0xfff00e(0x195)]();throw _0x13e467;}for(const _0x2d5a2b of this[_0xfff00e(0x82b)]('db',null,'envNames',[],![]))if(!_0x2d5a2b[_0xfff00e(0x70d)]('~'))this[_0xfff00e(0x5dd)](_0x2d5a2b);try{if(this['_call']('db',null,_0xfff00e(0x7bd),[_0xfff00e(0x5f1)],![])){this[_0xfff00e(0x557)]=this[_0xfff00e(0x5dd)](_0xfff00e(0x5f1));const _0x113463=new Set(this[_0xfff00e(0x629)][_0xfff00e(0x4db)]);this[_0xfff00e(0x830)]=this['log'][_0xfff00e(0x728)](this[_0xfff00e(0x557)],this['id']);const _0x4d6a71=[...this[_0xfff00e(0x629)][_0xfff00e(0x4db)]][_0xfff00e(0x310)](_0x270352=>!_0x113463[_0xfff00e(0x4a8)](_0x270352)),_0x100bda=this[_0xfff00e(0x82b)]('db',null,_0xfff00e(0x2e5),[],![]);for(const _0x3d3983 of(this[_0xfff00e(0x791)]??[])[_0xfff00e(0x4e8)](_0x100bda))_0x4d6a71?.(_0x3d3983);}}catch{}this[_0xfff00e(0x791)]=null,this[_0xfff00e(0x18f)][_0xfff00e(0x458)](()=>this['_pumper'][_0xfff00e(0x270)]()),this[_0xfff00e(0x755)][_0xfff00e(0x525)]();}get['_viewRebuildChain'](){const _0x19a43c=()=>{const _0x441a71=_0x3f13;if(!this[_0x441a71(0x232)])return![];for(const _0x3f82f7 of this[_0x441a71(0x82b)]('db',null,_0x441a71(0x3f3),[],![])){if(!_0x3f82f7[_0x441a71(0x70d)]('~')&&this[_0x441a71(0x82b)](_0x441a71(0x4fd),_0x3f82f7,_0x441a71(0x354),[],![]))return!![];}return![];};return((async()=>{const _0x42ef0d=_0x3f13;while(_0x19a43c())await this[_0x42ef0d(0x755)][_0x42ef0d(0x690)](0xfa);})());}async[_0x3c4e42(0x37b)](){const _0x51acee=_0x3c4e42;return this[_0x51acee(0x421)]('db',null,'bootRuntime',[]);}async[_0x3c4e42(0x469)](){const _0x42a73c=_0x3c4e42;if(this[_0x42a73c(0x823)]===_0x1bf51b[_0x42a73c(0x575)])return;if(this[_0x42a73c(0x823)]!==_0x1bf51b[_0x42a73c(0x4f8)])throw new _0x43afb7('Database\x20not\x20started','INVALID_STATE',{'state':this[_0x42a73c(0x823)]});this[_0x42a73c(0x823)]=_0x1bf51b[_0x42a73c(0x2d3)],this[_0x42a73c(0x232)]=![];let _0x3ee9e0=null;if(this[_0x42a73c(0x740)][_0x42a73c(0x67b)][_0x42a73c(0x479)])try{await this[_0x42a73c(0x740)][_0x42a73c(0x469)]();}catch(_0x43621e){_0x3ee9e0=_0x43621e;}if(this[_0x42a73c(0x60c)]){try{this[_0x42a73c(0x60c)]['detachFeed'](),this[_0x42a73c(0x60c)][_0x42a73c(0x5eb)]();}catch{}this['__adminRelay']=null;}try{this['_changefeed']?.[_0x42a73c(0x851)]?.();}catch{}try{await this['plugins'][_0x42a73c(0x851)]();}catch(_0x35116b){_0x3ee9e0=_0x35116b;}for(const _0x1b6531 of[...Map[_0x42a73c(0x259)][_0x42a73c(0x3b9)][_0x42a73c(0x881)](this['_envs'])]){try{await _0x1b6531[_0x42a73c(0x548)][_0x42a73c(0x463)]();}catch{}try{await _0x1b6531[_0x42a73c(0x5a4)][_0x42a73c(0x851)]();}catch{}}for(const _0x525b34 of[()=>this[_0x42a73c(0x7a8)][_0x42a73c(0x851)](),()=>this['embeddings']['stop'](),()=>this[_0x42a73c(0x60e)]&&this['fts'][_0x42a73c(0x851)]?.()]){try{await _0x525b34();}catch{}}const _0x467958=this[_0x42a73c(0x5c3)][_0x42a73c(0x1e9)]??0x7530,_0x5eb6a4=[];for(const _0x56e7e3 of[...Map[_0x42a73c(0x259)][_0x42a73c(0x3b9)][_0x42a73c(0x881)](this[_0x42a73c(0x2b2)])]){if(_0x56e7e3[_0x42a73c(0x7b6)]?.[_0x42a73c(0x40a)]?.['size']>0x0)_0x5eb6a4['push'](_0x56e7e3[_0x42a73c(0x7b6)][_0x42a73c(0x463)](_0x467958));}if(_0x5eb6a4['length']>0x0)await Promise['allSettled'](_0x5eb6a4);try{this[_0x42a73c(0x830)]?.();}catch{}this['_detachLogSink']=null;try{await this[_0x42a73c(0x630)][_0x42a73c(0x303)]();}catch{}this['_pumper'][_0x42a73c(0x851)]();try{await this[_0x42a73c(0x39b)](()=>this['_native']['close']());}catch(_0x524313){_0x3ee9e0=_0x3ee9e0||_0x456613(_0x524313);}this[_0x42a73c(0x823)]=_0x1bf51b[_0x42a73c(0x575)],this[_0x42a73c(0x195)](),Map['prototype'][_0x42a73c(0x400)][_0x42a73c(0x881)](this['_envs']);if(_0x3ee9e0)throw _0x3ee9e0;}[_0x3c4e42(0x195)](){const _0x2d97c0=_0x3c4e42;this[_0x2d97c0(0x755)]['stop']();try{this[_0x2d97c0(0x18f)][_0x2d97c0(0x458)](null);}catch{}try{this['_native'][_0x2d97c0(0x718)]();}catch{}this[_0x2d97c0(0x408)]=null,this[_0x2d97c0(0x1f2)]=null,this[_0x2d97c0(0x5b7)]=null,_0x280c32[_0x2d97c0(0x4c2)](this['_key']),_0x280c32['forgetDb'](this),_0x2452cf[_0x2d97c0(0x727)](this['_uid']);if(_0x280c32['kickOwnedBy'](this)){const _0x42d8cc=[..._0x2452cf[_0x2d97c0(0x3b9)]()][_0x2d97c0(0x20b)]();if(_0x42d8cc)_0x280c32[_0x2d97c0(0x4cb)](()=>_0x42d8cc[_0x2d97c0(0x755)][_0x2d97c0(0x270)](),_0x42d8cc);else _0x280c32[_0x2d97c0(0x4cb)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x3c4e42(0x637)](_0x153670){const _0x158b40=_0x3c4e42;return this['env'](_0x158b40(0x693))[_0x158b40(0x637)](_0x153670);}get[_0x3c4e42(0x1fb)](){const _0x175ab7=_0x3c4e42;return this['_rootDb']['get'](_0x175ab7(0x30c));}get[_0x3c4e42(0x17c)](){const _0x5452fb=_0x3c4e42;return this[_0x5452fb(0x7a8)][_0x5452fb(0x17c)];}get[_0x3c4e42(0x63e)](){const _0x32ff5f=_0x3c4e42;return this[_0x32ff5f(0x7a8)][_0x32ff5f(0x63e)];}get['_subsV2'](){const _0x47d98d=_0x3c4e42;if(!this[_0x47d98d(0x232)]||!this[_0x47d98d(0x82b)]('db',null,_0x47d98d(0x294),[],![]))return undefined;if(!this[_0x47d98d(0x7d9)]){const _0x5915db=requireOkdbSubscriptionsStore(),_0x21abc6=new _0x5915db(this,this['options']&&this[_0x47d98d(0x5c3)][_0x47d98d(0x7ea)]);_0x21abc6[_0x47d98d(0x5ba)]=this[_0x47d98d(0x53c)](_0x47d98d(0x2e1));const {compileFilter:_0x446a69}=requireOkdbQueryFilter(),_0x2db2a3=(_0x4febb8,_0x2ada38)=>{if(_0x4febb8==null)return![];try{return _0x446a69(_0x4febb8)(_0x2ada38);}catch{return![];}};this[_0x47d98d(0x7d9)]={'store':_0x21abc6,'router':{'_matches':_0x2db2a3}};}return this[_0x47d98d(0x7d9)];}get[_0x3c4e42(0x454)](){const _0x349263=_0x3c4e42;return this[_0x349263(0x4fa)];}get[_0x3c4e42(0x5f6)](){const _0x33a931=_0x3c4e42;return this[_0x33a931(0x82b)]('db',null,'formerIds',[],![]);}get[_0x3c4e42(0x4fa)](){const _0x5147d6=_0x3c4e42;return{...this[_0x5147d6(0x82b)]('db',null,_0x5147d6(0x4fa),[],![])};}get[_0x3c4e42(0x2ce)](){const _0x52eb02=_0x3c4e42;return require$$29[_0x52eb02(0x2ce)];}get[_0x3c4e42(0x528)](){const _0x192aff=_0x3c4e42;return this['_call']('db',null,_0x192aff(0x207),[],![]);}get[_0x3c4e42(0x786)](){const _0x4b43c6=_0x3c4e42;return this[_0x4b43c6(0x82b)]('db',null,_0x4b43c6(0x786),[],![]);}[_0x3c4e42(0x21d)](){const _0x737d8e=_0x3c4e42;return this['_call']('db',null,_0x737d8e(0x3f0),[],![]);}[_0x3c4e42(0x2f9)](){const _0x25287a=_0x3c4e42;return this[_0x25287a(0x82b)]('db',null,_0x25287a(0x2f9),[],![]);}async['setProcessingConfig'](_0x3c9d41){const _0x24af53=_0x3c4e42;this['_assertOpen'](),this[_0x24af53(0x82b)]('db',null,_0x24af53(0x286),[_0x3c9d41],![]);}[_0x3c4e42(0x46d)](){const _0x1fa0eb=_0x3c4e42,_0x4a43e6=Date['now']();if(this['_pressure']&&_0x4a43e6-this['_pressure']['at']<0xfa)return this['_pressure']['value'];const _0x18ba08=this[_0x1fa0eb(0x82b)]('db',null,_0x1fa0eb(0x46d),[],![]);return this[_0x1fa0eb(0x3f5)]={'at':_0x4a43e6,'value':_0x18ba08},_0x18ba08;}['_assertOpen'](){const _0x27e685=_0x3c4e42;if(!this[_0x27e685(0x232)])throw new _0x43afb7(_0x27e685(0x2a3),_0x27e685(0x6a3),{'state':this[_0x27e685(0x823)]});}get[_0x3c4e42(0x3fb)](){const _0x515c67=_0x3c4e42;if(this[_0x515c67(0x823)]===_0x1bf51b['STOPPED']||!this['_isOpen'])return null;if(this[_0x515c67(0x82b)]('db',null,_0x515c67(0x51d),[],![])==null)return null;if(!this['_busFacade']){const _0x55df6c=this;this[_0x515c67(0x5b2)]={get 'state'(){const _0x8dc28b=_0x515c67;return _0x55df6c['_call']('db',null,_0x8dc28b(0x51d),[],![]);},get 'magic'(){const _0x41df2b=_0x515c67;return Buffer[_0x41df2b(0x5f7)](_0x41df2b(0x6cd)+_0x55df6c['id']);},get 'isRunning'(){const _0x5311bf=_0x515c67;return _0x55df6c[_0x5311bf(0x82b)]('db',null,'busState',[],![])===_0x5311bf(0x2dc);},'emit'(_0x480989,_0x568e41=''){const _0x5913ed=_0x515c67;_0x55df6c[_0x5913ed(0x82b)]('db',null,_0x5913ed(0x6bc),[_0x480989,String(_0x568e41)],![]);}};}return this[_0x515c67(0x5b2)];}['_emitProc'](_0x4c24ca,_0xeb2aca){const _0x3ef0c6=_0x3c4e42;this[_0x3ef0c6(0x3fb)]?.[_0x3ef0c6(0x7bb)](_0x3ef0c6(0x5f0),JSON['stringify']({'kind':_0x3ef0c6(0x669),'scope':_0x4c24ca,'key':_0xeb2aca}));}get['locks'](){const _0x93ea6a=_0x3c4e42;return this['_locks']||(this[_0x93ea6a(0x674)]=new(requireLock())[(_0x93ea6a(0x288))](this,_0x93ea6a(0x196),_0x93ea6a(0x1b8)));}get['_rootDb'](){const _0xd21d5=_0x3c4e42;return this[_0xd21d5(0x70a)]?this[_0xd21d5(0x70a)]['db']:undefined;}get[_0x3c4e42(0x7a2)](){const _0xf4f664=_0x3c4e42,_0x50eab1=this[_0xf4f664(0x70a)]?.[_0xf4f664(0x548)];if(!_0x50eab1)return null;const _0x5612f1=_0x50eab1[_0xf4f664(0x3f8)]()['find'](_0x1b2666=>_0x1b2666[_0xf4f664(0x5c1)]?.[_0xf4f664(0x885)]===_0xf4f664(0x2f6));return _0x5612f1?_0x50eab1[_0xf4f664(0x60a)](_0x5612f1['id'],_0x5612f1[_0xf4f664(0x758)]):null;}get[_0x3c4e42(0x70a)](){const _0x2fb5b6=_0x3c4e42;return this[_0x2fb5b6(0x232)]?this[_0x2fb5b6(0x2b2)][_0x2fb5b6(0x616)](_0x2fb5b6(0x196)):undefined;}[_0x3c4e42(0x5dd)](_0x36a911){const _0x269f02=_0x3c4e42;let _0x509f21=Map['prototype'][_0x269f02(0x616)][_0x269f02(0x881)](this[_0x269f02(0x2b2)],_0x36a911);if(!_0x509f21){_0x509f21=new _0x151b4f(this,_0x36a911),Map['prototype'][_0x269f02(0x488)][_0x269f02(0x881)](this['_envs'],_0x36a911,_0x509f21);if(_0x36a911===_0x269f02(0x693))this[_0x269f02(0x372)]=_0x509f21;}return _0x509f21;}['env'](_0x4c5b23=_0x3c4e42(0x693)){const _0x44828e=_0x3c4e42,_0x2b074b=this[_0x44828e(0x2b2)][_0x44828e(0x616)](_0x4c5b23);if(_0x2b074b)return _0x2b074b;if(this[_0x44828e(0x232)]&&this['_call']('db',null,'hasEnv',[_0x4c5b23],![]))return this[_0x44828e(0x5dd)](_0x4c5b23);throw new _0x43afb7('Environment\x20\x22'+_0x4c5b23+_0x44828e(0x1ba),_0x44828e(0x77f));}get[_0x3c4e42(0x693)](){const _0x3f197f=_0x3c4e42;return this[_0x3f197f(0x53c)](_0x3f197f(0x693));}get[_0x3c4e42(0x7b8)](){const _0x3d7ec4=_0x3c4e42;return this[_0x3d7ec4(0x2b2)]['get'](_0x3d7ec4(0x693))??this[_0x3d7ec4(0x372)];}get[_0x3c4e42(0x513)](){const _0x2e0ad3=_0x3c4e42;return this['_defaultEnv'][_0x2e0ad3(0x513)];}get[_0x3c4e42(0x7b6)](){const _0x1f871f=_0x3c4e42;return this[_0x1f871f(0x7b8)][_0x1f871f(0x7b6)];}[_0x3c4e42(0x373)](_0x104918){const _0x34f47a=_0x3c4e42;if(!this[_0x34f47a(0x232)])return null;return this[_0x34f47a(0x82b)]('db',null,_0x34f47a(0x4f2),[_0x104918],![])?{'ref'(){},'unref'(){}}:null;}get[_0x3c4e42(0x395)](){const _0x2b390d=_0x3c4e42;return this[_0x2b390d(0x373)]('readerCheck');}['_reconcileDesired'](){const _0xa1085b=_0x3c4e42;return this['_call']('db',null,_0xa1085b(0x6e0),[],!![]);}get[_0x3c4e42(0x7c4)](){const _0x62dded=_0x3c4e42;return this[_0x62dded(0x373)](_0x62dded(0x136));}get[_0x3c4e42(0x147)](){const _0x3bc07f=_0x3c4e42;return this[_0x3bc07f(0x373)](_0x3bc07f(0x27a));}get[_0x3c4e42(0x7df)](){const _0x364730=_0x3c4e42;return this[_0x364730(0x53c)](_0x364730(0x693))['_hlc'];}get[_0x3c4e42(0x543)](){const _0x518345=_0x3c4e42;throw new _0x43afb7(_0x518345(0x418),_0x518345(0x83b));}get[_0x3c4e42(0x548)](){const _0xd068c9=_0x3c4e42;return this[_0xd068c9(0x7b8)][_0xd068c9(0x548)];}get[_0x3c4e42(0x4fd)](){const _0x34ddd9=_0x3c4e42;return this[_0x34ddd9(0x7b8)]['views'];}async[_0x3c4e42(0x331)](_0x52b9cd,_0x11b8a0={}){const _0x141ebb=_0x3c4e42;this[_0x141ebb(0x4b5)]();if(_0x11b8a0&&typeof _0x11b8a0[_0x141ebb(0x6b0)]===_0x141ebb(0x40e)){const _0x18f145=_0x11b8a0[_0x141ebb(0x6b0)];this[_0x141ebb(0x21b)](_0x52b9cd,await _0x18f145(_0x52b9cd),!![]),this[_0x141ebb(0x3e7)][_0x141ebb(0x411)][_0x141ebb(0x488)](_0x52b9cd,_0x18f145),_0x11b8a0={..._0x11b8a0,'encryptionKey':!![]};}return this[_0x141ebb(0x82b)]('db',null,'createEnvironment',[_0x52b9cd,_0x11b8a0]),this[_0x141ebb(0x5dd)](_0x52b9cd);}async[_0x3c4e42(0x648)](_0x39e53e){const _0x292b23=_0x3c4e42;if(!this[_0x292b23(0x232)])throw new _0x43afb7(_0x292b23(0x230)+_0x39e53e+_0x292b23(0x1cd),_0x292b23(0x6a3));return this['_call']('db',null,_0x292b23(0x648),[_0x39e53e]),this[_0x292b23(0x5dd)](_0x39e53e);}get['_adminRelay'](){const _0x864151=_0x3c4e42;if(!this[_0x864151(0x60c)]&&this['_isOpen']){const _0x846e94=requireOkdbRelay(),_0x3bdcc7=new _0x846e94(this,this[_0x864151(0x5c3)]?.[_0x864151(0x879)]?.[_0x864151(0x139)]??{});_0x3bdcc7[_0x864151(0x323)](),_0x3bdcc7[_0x864151(0x82a)]=!![],this[_0x864151(0x60c)]=_0x3bdcc7;}return this[_0x864151(0x60c)]??null;}set[_0x3c4e42(0x551)](_0x26f101){this['__adminRelay']=_0x26f101;}get[_0x3c4e42(0x25a)](){const _0x311e71=_0x3c4e42;let _0x852887=0x0;if(this['_isOpen'])for(const [_0xa83596]of Map[_0x311e71(0x259)][_0x311e71(0x325)][_0x311e71(0x881)](this[_0x311e71(0x2b2)])){try{_0x852887+=this[_0x311e71(0x82b)]('proc',_0xa83596,_0x311e71(0x3f4),[],![])||0x0;}catch{}}return{'total':_0x852887,'maxObserved':_0x852887>0x0?0x1:0x0,'inFlight':0x0};}async[_0x3c4e42(0x726)](_0x2f54ea){const _0x1b3389=_0x3c4e42,_0x2b301c=this[_0x1b3389(0x2b2)]['get'](_0x2f54ea);if(_0x2b301c)return _0x2b301c;if(!this[_0x1b3389(0x82b)]('db',null,_0x1b3389(0x7bd),[_0x2f54ea],![]))throw new Error('okdb._openEnvLazy:\x20env\x20\x22'+_0x2f54ea+_0x1b3389(0x67e));return this[_0x1b3389(0x648)](_0x2f54ea);}async[_0x3c4e42(0x864)](_0x2edeca){const _0x25217a=_0x3c4e42,_0x25692b=this[_0x25217a(0x82b)]('db',null,_0x25217a(0x144),[_0x2edeca]);return this['_envs']['delete'](_0x2edeca),_0x25692b;}async[_0x3c4e42(0x401)](_0x12f075,_0x9d08f8={}){const _0x463e83=_0x3c4e42;this[_0x463e83(0x4b5)]();const _0x295a9c=this['_call']('db',null,_0x463e83(0x401),[_0x12f075,_0x9d08f8]);return this['_envs'][_0x463e83(0x727)](_0x12f075),_0x295a9c;}static get[_0x3c4e42(0x6cc)](){const _0x4a0b5e=_0x3c4e42;return _0x4c6532[_0x4a0b5e(0x6cc)];}static get[_0x3c4e42(0x187)](){return _0x4c6532['KNOWN_OPTIONS'];}static get[_0x3c4e42(0x145)](){const _0x259496=_0x3c4e42;return _0x4c6532[_0x259496(0x145)];}static async[_0x3c4e42(0x1a6)](_0x2e9e3d,_0x46da85){const _0x440ff1=_0x3c4e42;return _0x3fa2cb('db',_0x440ff1(0x1a6),[_0x2e9e3d,_0x46da85]);}static[_0x3c4e42(0x2b8)](_0xe11093){const _0x58eca2=_0x3c4e42;return _0x3fa2cb('db',_0x58eca2(0x2b8),[_0xe11093]);}static[_0x3c4e42(0x65c)](_0x5108a5,_0x1ca418){const _0x445da8=_0x3c4e42;_0x3fa2cb(_0x445da8(0x4fd),_0x445da8(0x65c),[_0x5108a5,_0x1ca418]);}static[_0x3c4e42(0x4cc)](_0x589055,_0x3e57ee){const _0x536c0e=_0x3c4e42;_0x3fa2cb(_0x536c0e(0x4fd),_0x536c0e(0x4cc),[_0x589055,_0x3e57ee]);}static[_0x3c4e42(0x255)](){}[_0x3c4e42(0x313)](_0x586976,_0x28b1de){const _0x18df57=_0x3c4e42;return require$$16[_0x18df57(0x6a0)](_0x586976,_0x28b1de);}}_0x10248a[_0x3c4e42(0x2e0)]=_0x62c0ef,Object[_0x3c4e42(0x882)](_0x10248a,_0x3c4e42(0x7a7),{'get'(){const _0xed4908=_0x3c4e42;return _0x10248a[_0xed4908(0x2e7)]||(_0x10248a[_0xed4908(0x2e7)]=new Set());},'set'(_0x359b54){const _0x539d96=_0x3c4e42;_0x10248a[_0x539d96(0x2e7)]=_0x359b54;try{_0x3fa2cb('db',_0x539d96(0x6b4),[]);}catch{}},'configurable':!![]});for(const _0x3264af of[_0x3c4e42(0x84d),_0x3c4e42(0x82f),'put',_0x3c4e42(0x601),'patch',_0x3c4e42(0x267),_0x3c4e42(0x6a9),_0x3c4e42(0x616),'getMany','getEntry',_0x3c4e42(0x805),_0x3c4e42(0x521),_0x3c4e42(0x42e),'getCount',_0x3c4e42(0x744),_0x3c4e42(0x676),_0x3c4e42(0x1f0),_0x3c4e42(0x155),_0x3c4e42(0x3a1),_0x3c4e42(0x743),_0x3c4e42(0x4d0),'registerType',_0x3c4e42(0x85d),_0x3c4e42(0x4e2),_0x3c4e42(0x384),_0x3c4e42(0x176),_0x3c4e42(0x6b1),_0x3c4e42(0x2d7),_0x3c4e42(0x45d),_0x3c4e42(0x253),'resetIndex',_0x3c4e42(0x21c),'getIndexStatus','getUniqueViolations',_0x3c4e42(0x182),_0x3c4e42(0x14b),'getClock',_0x3c4e42(0x6fd),'setTTL','getTTL',_0x3c4e42(0x347),'sweepExpiredTTL',_0x3c4e42(0x1c2),'ttlStats','setDefaultTTL','getDefaultTTL',_0x3c4e42(0x58b),_0x3c4e42(0x5ad),_0x3c4e42(0x692),_0x3c4e42(0x38b)]){_0x10248a[_0x3c4e42(0x259)][_0x3264af]=function(..._0x34c80d){const _0x34bdb0=_0x3c4e42,_0x34d2c3=this[_0x34bdb0(0x53c)](_0x34bdb0(0x693));return _0x34d2c3[_0x3264af](..._0x34c80d);};}function _0x447931(_0x28f9ed){const _0xc1630d=_0x3c4e42,_0xf5ef8d=_0x586892=>()=>{const _0x5d14fa=_0x3f13;throw new Error(_0x5d14fa(0x1b2)+_0x586892+_0x5d14fa(0x617));};return{'process':_0xf5ef8d(_0xc1630d(0x2e8)),'processRest':_0xf5ef8d(_0xc1630d(0x606)),'processEverything':_0xf5ef8d(_0xc1630d(0x6aa)),async 'start'(){const _0x4c9cff=_0xc1630d;return _0x28f9ed[_0x4c9cff(0x82b)]('db',null,_0x4c9cff(0x3ab),[]);},async 'stop'(){const _0x2387e4=_0xc1630d;return _0x28f9ed[_0x2387e4(0x82b)]('db',null,_0x2387e4(0x301),[]);},'status'(){const _0xbb61ba=_0xc1630d;return _0x28f9ed['_call']('db',null,_0xbb61ba(0x5a3),[],![]);},get 'participating'(){return _0x28f9ed['_call']('db',null,'processorsParticipating',[],![]);},get '_participate'(){const _0x3fda11=_0xc1630d;return _0x28f9ed['_call']('db',null,_0x3fda11(0x437),[],![]);}};}function _0x3fa2cb(_0x5e8f3b,_0x457af9,_0x1a46ef){const _0x49d609=_0x3c4e42;_0x3a3666();try{return _0xd6733e()[_0x49d609(0x519)](_0x5e8f3b,_0x457af9,_0x1a46ef);}catch(_0xdcb14b){throw _0x456613(_0xdcb14b);}}_0x56caa7[_0x3c4e42(0x3bf)]=_0x10248a,_0x56caa7[_0x3c4e42(0x3bf)]['staticCall']=_0x3fa2cb,_0x56caa7[_0x3c4e42(0x3bf)][_0x3c4e42(0x152)]=_0x10248a,_0x56caa7[_0x3c4e42(0x3bf)]['HIGH_SENTINEL']=_0x62c0ef,_0x56caa7[_0x3c4e42(0x3bf)][_0x3c4e42(0x693)]=_0x10248a,Object[_0x3c4e42(0x882)](_0x56caa7['exports'],_0x3c4e42(0x160),{'get':()=>require$$1$1[_0x3c4e42(0x608)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x1c7c73(0x3bf)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);function _0x394d(){const _0x3a40e5=['isHeld','startsWith','system:bus_state_change','near','isBun','killAll','getPeerState','140FBFpYY','maxExtra','FOREIGN_KEY_DELETE_RESTRICTED','enable','ENGINE_DRIVER_MISSING_START','release','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','ms\x20p99=','_gcTimer','queue:enqueued','process()\x20entry\x20\x22','pageSize','getOidcDiscovery','_enqueueInTxn','onUndo','compactLock','endIndex','embed-worker','~ref_violations','_openEnvLazy','delete','attachOKDB','number','_localViewApi','vectorStoreStats','_clearChunked','path','validateRouteInput','OKDBNotFoundError','patchDeclaration','\x20references\x20','\x20does\x20not\x20exist','TXN_INVALID_ACTION','targetKey','durableDoc','exportEnvsBuf','some','attachFeed','driver','_settle','$lt','\x27,\x20cannot\x20map\x20to\x20\x27',':index','registerIndexDeferred','Blob\x20not\x20found:\x20','http','dirname','fetchJson','geoQuery','getByPrefix','_awaitBuild','offset','\x20which\x20does\x20not\x20exist','hasBody','clients','send','~file:blob_status','ctxRelease','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','processor:\x20module\x20\x27','toISOString','_attached','_settleRead','license:added','envsWithFiles','hasDriver','_pumper','listRoutes',':data','cursorKey','_detachConsole','job.claim_expires\x20must\x20be\x20number|null','mode','inFlight','constructor','_connections','finish','setReadBuffer','syncLock','getDefinition','job_type.defaults.buckets\x20must\x20be\x20array|null','_undoHooks','_sync','tag','OKDBIndexHasConsumersError','settledTickets','Unsupported\x20transaction\x20action:\x20','_flushTimer','restrict','HTTP_ERROR','queue:retry','add','sort','_keepAlive','target','system:stopped','BAD_ALGORITHM_FACTORY','deleted','bulkRemoveChunk','readField','fetch','pid','done_ttl','max_tries','envPath','startIndex','actions','TXN_ENV_MISMATCH','ENV_NOT_FOUND','compactStorage','~processes:desired','child','removeInterest','rollback','lock','info','test','ies','indexOf','dropping','compiled','includeViolations','createWriteStream','_status','uploadTxn','versions','_bootLog','module','turnWaiters','config','SEARCH','pumping','namespace','ITEM_REMOVE','storeEnvPath','bucket_tokens','_timer','type','null','assertQueryOptions','addInterest','_uid','registerReducer','_envSyncStop','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','streamRead','item:pending','_customReducers','_unknownOptionsWarned','sync','\x22\x20is\x20not\x20registered','disableAll','_lazyPinned','embeddings:pipeline:ready','listAlgorithms','OKDBIndexAlreadyRegisteredError','Algorithm\x20factory\x20must\x20be\x20a\x20function','_envWide','removeSync','nextTick',';\x20got\x20','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','getFast','queue','addEventListener','_defaultEnv','_admissionStarted','_oauthConfig','emit','put','hasEnv','run','engineStart','_info','claim_id','BAD_PLUGIN','continueOnRecoverableError','_licenseInterval','envSize','announceEnqueued','a\x20string','backup','__esModule','hasEmbedderFactory','allocUnsafeSlow','PUT','inclusiveEnd','useVersions','emitClearDone','refTrackingDbs','(?:','pushEphemeral','node:crypto','sweepExpired','resumeAllAfterDrain','workerState','getTypeCount','_shouldApplyChange','_subsV2Obj','job','dir','bucket','continueIteration','unpack','_hlc','tools','findOwner','snapshot','\x22\x20on\x20\x22','storeGetConfig','_indexBuild','isWanted','removeTxn','cookies','doesExist','subscriptions','awaitIdle','listLinks','unref','field\x20resolver\x20request\x20still\x20pending','_makeIterator','$within','unique:violation','_key','createSearch','PLUGIN_ALREADY_REGISTERED','getJobLogs','getMeta','maxBodyBytes','hasOwnProperty','indexer\x20engine\x20not\x20running:\x20\x22','details','OKDBIndexNotRegisteredError','fts:registered','value','isOAuthEmailAllowed','peers','granId','_deliverEvent','getDefaultTTL','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','uninstalled','getRange','message','stopHandle','node:events','change','refill_amount','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','_getRaw','clearScan','clocks','_ensureTokensType','_typeKeys','vector','recommended','error','Engine\x20template\x20build()\x20is\x20required:\x20','resolve','typeStats','_jsSchemas','fetchRemoteDelta','algorithm\x20is\x20gone','setMode','INDEX_NOT_REGISTERED','engineType','der','\x27\x20is\x20not\x20a\x20function','exportBuf','iterator','readKey','state','encryption\x20key\x20function','job\x20type\x20must\x20be\x20object','QUERY_OPERATOR_FORBIDDEN','orchestrator','_changeToClockDb','removeJob','_okdbAdminAttached','_call','system:proc','getOpenWarning','allSettled','txn','_detachLogSink','TXN_INVALID_OP',',\x20got\x20','position','getRaw','_debounceTimer','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','publicKey','bus:poke','INVALID_OPTIONS','_tools','WORKERS_REMOVED','native','_lock','status_message','_getType','paused','header','viewOp','bucket.updated\x20must\x20be\x20number','bucket.id\x20must\x20be\x20non-empty\x20string',')\x0a\x09\x09}\x0a\x09\x09','NOT_IMPLEMENTED_NATIVE','typeSubDbs','_lookupByName','registerEnv','job.tag\x20must\x20be\x20string|null','cursor','preparer\x20must\x20be\x20a\x20function','transaction','pipeline','getMany','inspect','stop','transaction\x20commit\x20failed','queue.worker(\x27','runtimeState','timer','reducer','isSync','createHash','getCursor','clock','storage\x20adapter\x20is\x20gone','_setTTLEntry','ensureType','upload','files.upload:\x20id','createEmbedder','blobsDir','_scheduleFlush','mcp','_closeEnvLocally','flushTicket','pokeHandler','_closeReadTransaction','ensureTypeEnv','dropAll','catalog','_ensurePeerState','getViolation','loaded','exportToFile','File\x20not\x20found:\x20','_flushIntervalTimer','getLoginConfig','newListener','_callRows','_store','authOpen','ENGINE_DRIVER_ALREADY_REGISTERED','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','lmdb','admin','cause','onDone','SYSTEM_STOPPED','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','lookupAllByName','non-empty\x20string','index','call','defineProperty','_pendingLocal','_fail','name','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','connected','storeEnv','plugins','\x27:\x20','aborted','embedderNew','license','application/octet-stream','shift','relay','lockHeld','build','CREATED','usedBy','lookupByTokenHash','$gt','flushPoll','Feature\x20not\x20licensed:\x20','_readBuf','_root','closeEnvLocally','_OPTION_HINTS','setHostPlugins','_writerWatchdogInterval','capacity','authenticated','retryJob','getUniqueViolation','ExtendedIterable','raw','kind','host','__HOLD__','queue:reconciled','OKDB','fields','setPeersFn','countByIndex','isSnapshotComplete','INDEX_ALREADY_REGISTERED','~fts:','~emb:models','geoConfig','item:','~lock','ttl:expired','refreshReadTxn','\x27\x20at\x20','nativeBinaryPath','exportJSON','_clockListener','handleError','_statusEnv','_startClaimedSoon','mapSize','pump','vectorSpace','$ref','describeAllTypes','reconcilePeer','_subscribed','last','__sync:peer_state','storeGetHeadCount','$and','Database\x20already\x20opened/closed','txnDone','detachFeed','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','_meta','hasType','$pending','_addr','nodeKeys','vecRemove','4086OeFLpz','_nodePrivateKey','schema','$exists','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','INDEXER_DOC_QUEUED','limitOf','hasUniqueViolations','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','vector-search\x20engine\x20not\x20running:\x20\x22','unregisterExtractor',':txnRange','KNOWN_OPTIONS','job.bucket_tokens\x20must\x20be\x20int\x20>=1','$not','ensureFeed','hlc','embeddings:indexer:doc:queued','resumed','HTTP\x20','_native','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','job_type.payload_schema.definition\x20must\x20be\x20object','ttl','createReadStream','invalid\x20job.status:\x20','_teardownNative','~system','streamClose','ctxHeartbeat','Plugin\x20\x27','reject','removeLink','markJobHeartbeat','~files','routes','abort','listProviders','DEFAULT_TTL_MS','Too\x20many\x20concurrent\x20connections','ttlMs','session','getPosition()\x20{\x20return\x20position\x20},','clone','_ttlTimeout','reverse','tags','subscribe','_deliver','byteLength','_makePipelineApi','timerArmed','_autoCompact','pauseAllAndDrain','_listPeers','db.processors.','\x22\x20must\x20be\x20a\x20plain\x20object','remote','select','assertCreateAllowed','isReader','system','~queue_jobs','\x22\x20not\x20found','typesDb',':\x20unknown\x20option\x20\x27','oauth','_stream','setBridge','intervalTimer','_listenAddr','listTTL','_blobStatusDb','invalid\x20job_type.status:\x20','prefix','getMaxBodyBytes','resolveField:\x20type\x20required','getJob','_getFast','noteListenAddr','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','engineStop','\x22)\x20before\x20open()','_stateDb','OKDBUniqueConstraintError','tries','dirty','Array.from)\x20before\x20any\x20await.','size','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','whenSettled','compareKeys','index:drop','TXN_CLOSED','endsWith','node:stream','job.cron\x20must\x20be\x20string|null','failed','closeSession','handle','then','getStatus','enableAll','createWorker','__okdb','indexer','retry_delay',':index:','ms\x20mean=','rowKey','shutdownTimeout','_put','applyInterestDelta','durableRetryFailed','createLoginState','registerChunkStrategy','keyFor','byIndex','ensureTokensType','_kbuf','processors','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','SCHEMA_COLLECTION_INVALID','itemsDb',':useReadTransaction','importJSON','offsetOf','BAD_EMBEDDER_FACTORY','_tokenSecret','importFromStream','issueToken','hash','free','pause','item:remove','assertStartAllowed','queue:log','payload_schema','vector-search','percentile','quarantined','setAutoCompact','markJobFail','spki','pop','setPrototypeOf','readFieldMany','_blobStream','checkSignals','cron','Invalid\x20index\x20key\x20type\x20for\x20\x27','view:progress','isSetupMode','extend','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','embedder\x20request\x20still\x20pending','timestamp','markSnapshotComplete','STARTING','job.type\x20must\x20be\x20non-empty\x20string','_setKey','indexReady','getResolvedOptions','isWriter','license:activated','claim_expires','drives','_ensure','refItemsDbs','getIndexStatus','waiting','stopView','heartbeat','setEncryptionKey','BAD_PARAM','setUint32','\x22\x20is\x20used\x20by:\x20','callPacked','process(entries)\x20requires\x20at\x20least\x20one\x20entry','system:poke','afterTurn','Cannot\x20openEnv(\x22','loop-lag\x20','_isOpen','_onFeedChange','setStorageResolver','expiresAt','buckets','fromEntries','headers','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','ms\x20max=','keys','\x20must\x20be\x20number','isEnabled','flushQuantum','_handleInProcess','_dedupeMax','nidFor','getEntry','\x20log\x20entr','address','_id','nativeCode','_onStop','licenses','created','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','OKDBError','setTTL','callAsync','tryClaimTokens','storageStats','OKDBInvalidIndexKeyError','match','resetCursor','dropIndex','creating','_warnUnknownOptions','startClaimed','assign','getUniqueViolations','prototype','_quantumGate','setDefaultTTL','enabled','_sweepInProgress','runStart','ensurePeerState','validate','getSession','INDEX_HAS_CONSUMERS','_rebuild','PLUGIN_NAME_CONFLICT','stream','$or','create','resetReadTxn','asyncIterator','bucket\x20too\x20long','stopped','_normalizeOAuthAuthResult','embed','TXN_END','embeddings:indexer:flushed','wake','_isLoopbackIp','_ack','getRunningEngine','_ensureVectorStore','getStateAt','tags\x20must\x20be\x20array\x20or\x20string','_buckets','describeChunk','applyChange','writerWatchdog','_license','registerAlgorithmFactory','removeResolver','job.buckets[].id\x20must\x20be\x20non-empty\x20string','txn:rollback','storePayload','enqueue','_isFar','SYSTEM_POKE','signalWant','HIGH_FREQ_EVENTS','setProcessingConfig','_reconcilePeer','NativeLock','encoder','group','INVALID_SCHEMA','registerTemplate','error_stack','for','isTypeEmpty','_stopAutoCompactCheck','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','bucket.tokens\x20cannot\x20exceed\x20capacity','return\x20fromCharCode(','subsBuilt','_ttlByExpiry','undefined','_settleWaiters','_localViews','system:type_drop','_reconcile','committed','queue:rescheduled','captureStackTrace','dataEnv','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','runGc','_txnIdAtSnapshot','validateBlobIntegrity','Database\x20not\x20started','regInfo','viewDb','replace','_blobPath','bus:drain','delta_limit','when','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','_wrap','DOC_STATUS_CHANGE','IPv6','areIndexesReady','compact','FTS_FLUSH_TIMEOUT','_envs','_emit','job.claim_id\x20must\x20be\x20string|null','buildStep','setLogger','listRuns','reidentify','stateInfo','WriteBatch','_formerOrigins','includes','_listeners','_ensureDesired','_lookupByTokenHash','new','clockToChangeDb','removed','_flushDebounce','ENCRYPTION_KEY_REQUIRED','okdb.http.listen(port)\x20in\x20each\x20worker.','previewTemplate','flushTimeoutError','_wsettle','links','claim','indexContent','searchDocs','resolveBackupDest','version','encodeInto','bucket\x20\x22','reset','_draining','STOPPING','snapshotScan','startNewEnginesFromSync','inNativeCall','registerIndex','detachConsole','onDo','_write','internal','started','_clockToChangeDb','setMaxListeners','debug','HIGH_SENTINEL','~sub','utf8','clearDone','txn:end','bootLogMark','push','__warned','process(filter)',':keyToChange','EMBEDDER','getPeerAcks','apply','startAutoCompactCheck','record','~queue_logs','txn-commit','reduce','removeJobTypeSchema','payload','bind','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','system:env-sync','Key\x20is\x20too\x20large','privateKey','diag','true','open','_durableIndexerDoc','License\x20limit\x20exceeded:\x20','makeOkdb','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','listIndexes','processorsStop','listViolations','drain','storeHasDiff','resolveData','inputSchema','emitWarning','use','worker','__syncOverride','runPoll','__tokenSecret','uninstallEngine','isWellFormed','_pokeListener','find','\x20returned\x20no\x20key','_log','equal','registerModel','__ref_index','Type\x20\x27','startBegin','44695wpJrjc','tokens','_onPending','fts:','unpin','_onPoke','type:drop','chunks','hasStopFn','isActive','Index\x20\x22','attach','empty\x20string','entries','getIndexCount','sourceType','\x27\x20does\x20not\x20exist','addJobType','ref:violation','\x20=\x20finishUtf8(','shouldApplyChange','spec','isInteger','msgpackr','algorithm\x20has\x20no\x20method\x20','createEnvironment','drop','export','ringSize','getEmbedderSchema','$mod','timeMachine','env:removed','exclusiveStart','dedupeMax','gcOrphanedBlobs','validateOidcAccessToken','clearStuck','_started','__after','_handles','Query\x20operator\x20\x22','~processes','_writeBlob','evict','Engine\x20driver\x20for\x20\x22','commit','clearTTL','origin','updated','_syncExpiresAtField','_ttlByKey','_buildOwnRow','_startAdmission','TypeError','asArray','encryptionKeys','_isWriter','backoff_multiplier','getClock','buildsPending','setAddress','670314VpNyVB','maxMs','~queue_payloads','createEngine','stor','opts','pipelines','$streamId',':clockToChange','VERSION_MISMATCH','(worst\x20','abs','inBatch','resetView','setFlushNotify','-worker','ENGINE_INVALID_TYPE','_autoCompactTimer','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','patch','iterable','isWorker','set_null','_makeLazyVectorAdapter','$regex','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','idempotency_key','status','_defaultEnvObj','_timerHandle','RELAY_FULL','applyOps','okdb-node:\x20unknown\x20callback\x20id\x20','buildOwnRow','dbs','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','_pending','bootRuntimeDeclarations','remoteAddress','selfKey','importBlobs','read','getAuthOptions','Index\x20\x27','Version\x20mismatch\x20for\x20','REMOVE','getSchema','digest','_closedHandle','repair','parseBearer','ctxProgress','async','now','once','_refIndexDb','setMaxBodyBytes','total','outgoing','cascade','storeGetTotalHeadCount','pendingResponses','resetting','_readerCheckInterval','$eq','OKDBTypeNotRegisteredError','autoCompactTimerArmed','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','_handlerName','_macro','regObject','emitProc','durableDocs','forEach','readTransaction','query','\x20must\x20be\x20','_closed','mapError','968oDEiAn','action','params','job_type.id\x20must\x20be\x20non-empty\x20string','bridge','Plugin\x20must\x20have\x20a\x20name','processorsStart','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','subscriptions-store:\x20open()\x20not\x20called','OKDBInvalidValueError','isLoopbackIp','no_action','WORKER','field:resolver_registered','schema:drop','getCount','job.bucket\x20must\x20be\x20string|null','OKDBAlreadyExistsError','\x22\x20tokens\x20must\x20be\x20>=\x201','getLegacyCursor','values','registerPreparer','_setPeerState','FIELD_RESOLVER_PENDING','split','boolean','exports','$size','removeEventListener','returnRecoverableErrors','json','_subscribeEvent','max','$options','putSync','requires','dropSchema','updateBucket','socket','explainIndex','describeType','3ZeSqAz','dupSort','describeIndex','sha256','refs','patchConfig','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','errors','~log_entry','dropped','_lookupAllByName','prepareTxnEnqueue','registerModule','reg','dropFts','~engines','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','clearAsync','getHistory','import','_facade','INDEXER_DOC_DONE','ref','getIndexMeta','_drainOne','_keyFns','listRecords','_changefeed','claim\x20requires\x20non-empty\x20type','OKDBNotImplementedNativeError','ITEM_UPDATE','_staticCall','migrate','_openLocalPeerDb','resolvedOptions','flatMap','HTTP_CLUSTER_REMOVED','envNames','gateQuanta','_pressure','processor:resumed','progressed','list','__stateDb','embedBatch','bus','relay:error','setToken','setLogSink','_path','clear','removeEnvironment','_settled','REF_VIOLATION_RESOLVED','consumeLoginState','hasApi','storeEnvName','OKDBVersionMismatchError','_rbuf','license:removed','_workers','online','ENGINE_INVALID_DRIVER','listBlobStatus','function','existsSync','__ttlCancelledGen','envs','ITEM_CREATE','logCap','reconcilePeerPull','lastError','/([^/]+)','_peerDb','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.','embeddings:strategy:registered','(source)\x20=>\x20{','_ensureDbs','references','loginSelect','getRefViolation','isNaN','replaceInterests','_callMacro','LICENSE_LIMIT_EXCEEDED','job.finished\x20must\x20be\x20number|null','_assertRangeOptions','events','note','_features','proc','rebuild','req','_onItem','_ttlCompositeKey','hasNativeBatch','getKeys','removeJobType','retryFailed','code','_keyListener','\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','index:','listModels','encryption:key-changed','processorsParticipating','refill_every','patchSelf','rows','sift','admission','listNodes','ingest','flushed','_windowCbs','INVALID_VALUE','ms/','_openAckDb','forceResync','pinned','node:fs','getRun','(?:/(.*))?','updated_at','DEFAULT_EVENTS','_ttlTimerAt','empty\x20array','index:progress','3.1.7','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','install','_jsFactories','node:cluster','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','_role','description','describeIndexes','_desired','setWake','READER_HELD_ACROSS_AWAIT','array','716594gBdQxH','concat','hasIndex','done','_getNodeRecord','describeAllTypesDetailed','effective','grouped','stopAll','recordRun','write','\x0a\x09\x09let\x20','durability','nextExpiry','close','listBuckets','_afterDurable','__cmd','pressure','_validateOidcAccessToken','okdb.noFast','auth','reason','removeBucket','label','search','ceil','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','getEmbedderFactory','customReducerNames','length','_processorStops','_nm','getRecord','isBuffer','ctxUpdateStatus','_ackDb','batch','recordPeerAck','__sync:acks','getPrototypeOf','fromCharCode','durableRetryDoc','listRefViolations','apiCall','set','calculateDelta','releaseClaim','iterate','guard','_hybridQuery','addrs','okdb-node:\x20unknown\x20bridge\x20op\x20','fail','key','materializer','freeze','_read','stopWorkerAbort','registerDriver','a\x20non-empty\x20string','_remove','let\x20position;\x20let\x20readString\x20=\x20','createPipeline','feed:','_callPacked','MINIMUM_KEY','doc','lastClock','processes','INDEXER_DOC_FAILED','resetViewBegin','MCP_ERROR','isOpenForIp','_registerType','view','functions','has','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','sessionsForKey','immediate','runRecord','dup','$defs','clearFailed','dataView','getBucket','registerHandler','resolvedFields','txnUndone','_assertOpen','isArray','embeddings:indexer:doc:done','\x20of\x20env\x20\x22','bigint','advanceHlcOnRecv','LICENSE_FEATURE_DISABLED','kick','_clearTTL','claimed','setInt32','ONLINE','string','unregisterTarget','properties','ENGINE_INVALID_TEMPLATE','localViewNames','getNodeRecord','OKDBSchemaCollectionError','token','repairBlobRefs','pauseJobType','setKick','registerViewReducer','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','\x20(required\x20by\x20','inflight','ftsQuery','_admissionTimer','readString\x20}','priority','processor:error','tryAcquire','_sweepOrphanLogs','clearSync','targetType','byteOffset','\x27\x20export\x20\x27','_sinks','instance','retry','BAD_HOST','$lte','durableRebuild','OKDBInvalidPrimaryKeyError','ensure','Map','setSchema','removes','stringify','createBegin','slice','_typesDb','signal','registerType','ttlStats','tag\x20too\x20long','trim','pending','upsertLink','processor:retry','instanceTimerArmed','getVector','reencrypt','scheduled','.\x20Valid:\x20','attachConsole','STARTED','envName','role','failures','api','views','statusOpen','drainJobType','_tickCallback','_isClosedEnvError','_feed','_handle','types','files.upload:\x20stream','job.tries\x20must\x20be\x20non-negative\x20int','autoCompactState','$nor','docEntry','tolerant','createAndStartEngine','TXN_INVALID_OPS','exportName','_refCache','_logChange','pipelineFamily','a\x20Buffer\x20or\x20readable\x20stream','~proc:state','files','onLicenseExpired','throw','readerCheckIntervalMs','resumeJobType','_pdb','callStatic','_settleWrite','changes','syncBlobs','busState','item','items','Plugin\x20name\x20\x27','getValues','data','_quantum','UNKNOWN_RANGE_OPTION','start','prevDb','_detachLog','quarantinedEnvs','_assertFiles','guardSnapshotIterable','failed_ttl','durableClock','features','hasChangelog','SCHEMA_VALIDATION_FAILED','listPath','license:invalid','_cursors','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','__lock','\x22\x20tokens\x20too\x20large','jsonrpcCode','queue:done','getEngine','lookupByName','getInt32','_timerObjs','env','lastTxnId','ensure:\x20type\x20is\x20required','setModeApplied','OKDBForeignKeyError','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','TXN_START','workers','index:ready','vecPut','tierList','job.buckets\x20entries\x20must\x20be\x20objects','processor','quantum','handler','listPeers','_ensureTypeEnv','setFilter','authenticateToken','root','Referenced\x20type\x20\x27','_adminRelay','writerStatus','_markSeen','bus:type_drop','okdb','installed','_logEnv','Server','SUB_ENV','openDB','$payload','buffer','resolveModelDims','listTypes','durableStats','isFinite','QUEUE_WORKER_REMOVED','_asArray','drainDeadlineMs','SKIP','job.','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','stateNames','\x27\x20on\x20type\x20\x27','groupsDb','definition','localViewStats','sweepExpiredTTL','_txnBuf','wait','head','sseClose','defaultTTL','fetchPeer','onDelete','_rawTxnBuf','STOPPED','2464884JagZgZ','bus:env_release','planUpdateJob','restart','subarray','_writer','charCodeAt','_build','byLabel','OKDBSchemaValidationError','_rebuilding','Unknown\x20transaction\x20action:\x20','status_code','spawn','resolveField:\x20field\x20required','sessionId','\x20=\x20source[position++]\x0a\x09\x09if\x20(','markJobProgress','resetIndex','Embedder\x20factory\x20must\x20be\x20a\x20function','process','clearDefaultTTL','acquiredAt','FTS_BUILD_CONTINUE','unique','exportEnvsToStream','ttlSetEntry','job_type.defaults\x20must\x20be\x20object|null','resume','connectionCount','_pokeHandler','_create','Transaction\x20already\x20closed','enforced','Symbol.asyncIterator','txnId','stderr','compare','processor:\x20rebuild\x20must\x20be\x20a\x20function','embedder\x20is\x20gone','_run','bootSyncedPipelines','_emitProc','unresolveField','bumpVersion','processorsStatus','engines','finished','end','job.buckets\x20must\x20be\x20array|null','max_concurrency','prefetch','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','ctrl','\x20already\x20exists','count','system:clock_change','processor:\x20module.path\x20is\x20required','warn','_seen','_busFacade','onWindow','resetIndexBegin','min','reducers','_tids','setCurrentDb','REBUILD_IN_PROGRESS','_sub','debounceTimer','REF_VIOLATION','bucket.capacity\x20must\x20be\x20int\x20>=\x200','_ttlState','Cannot\x20set\x20enforce\x20schema\x20on\x20','_claimGated','meta','node:path','options','flush','off','invalid\x20log\x20level:\x20','job\x20id\x20required','turn','write\x20batch:\x20missing\x20result','getSecurityNotices','level','authenticateRequest','_doHooks','CHANGEFEED_QUANTUM','embeddings','logChange','feature','_durableWorkerStats','callBatch','initialize','markJobComplete','listen','setClaiming','job_type.defaults.','$where','listVectorStores','bucketsDb','return','_ensureEnv','addBucket','_ringSize','FOREIGN_KEY_VIOLATION','_dupArg','err','storeGetHead','unreg','isCoordinator','formerOrigins','exists','stack','docs','_nextExpiry','detach','_running','24660CjfnSP','durableMarkDelete','ready','bus:proc','~log','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','engine\x20api\x20has\x20no\x20method\x20\x27','createIndexer','_syncLock','formerIds','from','autoCompact','createPublicKey','stopWorkerBegin','getBlobStatus','stats','limit','buckets\x20must\x20be\x20array\x20or\x20string','_lockHandle','sourceKey','update','registerExtractor','durableEmbedderInfo','_tx','_resolveKeys','processRest()','stopping','loadedPath','\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.','_stopFor','_compactLock','__adminRelay','embeddings:indexer:doc:failed','fts','getSelfNode','\x20>=\x200x80)\x20','INACTIVE','_db','_release','createQueryTester','~queue_buckets','get','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','mean','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','job.priority\x20must\x20be\x20int','getTemplate','Invalid\x20onDelete\x20rule\x20\x27','job.error_stack\x20must\x20be\x20string|null','pin','login','_buffer','ALL_EVENTS','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','processorHold','tick','drivers','__peers','type:','_registrations','log','queue:removed','hook','resolveField','callRows','ttlTimer','Storage\x20resolver\x20must\x20be\x20a\x20function','_wb','\x22\x20must\x20have\x20a\x20start()\x20method','replaceMember','resetIndexFinish','writeKey','INVALID_PRIMARY_KEY','job.status_message\x20must\x20be\x20string|null','_advanceHlcOnRecv','taken','TXN_ERROR','engineUninstall','17381639rlqYfq','addSSE','embeddings:doc:status_change','_nodePublicKey','floor','symbol','body','buildPending','args','toJSON','~ttl:expiry','listTemplates','getUint32','openEnv','_listening','_getPeerState','sortedDb','itemsGroups','listJobTypes','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','trunc','isOrchestrator',':\x20expected\x20','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','_blobsDir','ttl:clear','port','_baselines','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','filter','getGcHorizon','storage\x20adapter\x20has\x20no\x20method\x20','sseSetHeader','registerBucketProjection','job.retry_delay\x20must\x20be\x20int\x20>=\x200','registerTarget','_inlineClosureWarned','listening','_dedupeKey','engine:','must\x20be\x20an\x20object;\x20got\x20null','isType','exportToStream','_isBootstrap','_waitNative','_np','reconcile','durableMarkFail','utf8Write','_blobStatusTxn','node','__fts:','_viewCache','/?$','disable','crypto','__ttlByKey','_locks','setDeltaLimit','getIndex','toMs','failJob','__notImplementedNative','T_INTEREST','servers','TYPE_ALREADY_REGISTERED','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.','\x22\x20not\x20found\x20in\x20~envs','next','durableMarkDone','catch','_getOidcDiscovery','unknown\x20promise\x20token','Engine\x20driver\x20already\x20registered:\x20\x22','notes','backupRoot','_drain','EMBED_PENDING','processor:progress','retryable','event','registerHandler:\x20fn\x20must\x20be\x20a\x20function','__logsDb','\x27\x20already\x20registered','family','nextTurn','gen','range','default','_maxConnections','getTTL','\x20===\x204)\x0a\x09\x09\x09\x09','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','exportBlobs','ttl:set','hybridQuery','lastIndexOf','itemsPlan','_push','resetFts','toFixed','isDeepStrictEqual','_durableEmbedderInfo','join','INVALID_STATE','_enableChangelog','_plugins','sparse','OKDBTypeAlreadyRegisteredError','Foreign\x20key\x20violation:\x20','remove','processEverything()','flushDebounce','setCursor','setKeyBuffer','ctxSignal','ensureDesired','encryptionKey','dropType','createdBy','_range','resetUnknownOptionsWarned','system:env_release','resolution','runDrop','server','registerQuantum:\x20load\x20must\x20be\x20a\x20function','\x22\x20to\x20enable\x20it.','destroy','busEmit','modeApplied','_resolveFilter','__ttlByExpiry','changeEncryptionKey:\x20to','bootSyncedViews','queue:clear-done','nodeKey','OKDBForeignKeyDeleteError','encryption\x20key\x20function\x20failed:\x20','RangeError','ctxLog','load','DONE','refreshThresholdMs','useReadTransaction','defaults','okdb-','\x27\x20doesn\x27t\x20exist','./native-loader.js','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','cancelJob','metaDb','system:drain','limits','updateJob','_durableIndexerStats','registerQuantum','_retryPending','$ne','transactionSync','job.idempotency_key\x20must\x20be\x20string|null','listIndexKeys','setLastClock','~fts:envs','dims','reconcileDesired','uninstall',':emb:','\x22\x20requires\x20a\x20`handler`\x20function','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','resolveField:\x20resolver\x20must\x20be\x20a\x20function','getStats','processor:ready','75275lWWRvY','durableWorkerStats','holder','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','_low','getAll','getFloat64','ITEM_PENDING','setJobTypeSchema','randomUUID','map','writeBlob','_env','\x20dropped\x20(buffer\x20full)','_readViewExpired','object','register',':\x20key\x20[','preview','_indexBuilds','env:opened','getChanges','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','embedder','Invalid\x20primary\x20key\x20type:\x20','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','fieldPath','@harperdb/extended-iterable:skip','refreshTtl','forceAfterMs','$nin','_report','takeBuildResult','running','_systemEnv','_commitSessionMutation'];_0x394d=function(){return _0x3a40e5;};return _0x394d();}module[_0x1ade1a(0x3bf)]=index;