@kedem/okdb 2.5.0 → 2.6.1

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.
Files changed (229) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/algorithm-worker-thread.js +1 -1
  3. package/bin/okdb.js +1 -1
  4. package/docs/auth-permissions.md +31 -5
  5. package/okdb-functions-sandbox-worker.js +1 -1
  6. package/okdb-http-worker-child.js +1 -1
  7. package/okdb-views-bootstrap-worker.js +1 -1
  8. package/okdb.js +1 -1
  9. package/package.json +1 -1
  10. package/public/admin-app.js +1 -1
  11. package/public/components/schema-edit-modal.ok.js +1 -0
  12. package/public/core/db/db-section.ok.html +1 -0
  13. package/public/core/db/modals/add-item-modal.ok.js +1 -0
  14. package/public/core/db/modals/create-fts-modal.ok.js +1 -0
  15. package/public/core/db/modals/create-index-modal.ok.js +1 -0
  16. package/public/core/db/parts/db-overview.ok.js +1 -0
  17. package/public/core/db/parts/edit-row.ok.js +1 -0
  18. package/public/core/db/parts/type-changelog.ok.js +1 -0
  19. package/public/core/db/parts/type-data-tab.ok.js +1 -0
  20. package/public/core/db/parts/type-list.ok.js +1 -0
  21. package/public/core/db/parts/type-manage-tab.ok.js +1 -0
  22. package/public/core/db/parts/type-schema-tab.ok.js +1 -0
  23. package/public/core/db/parts/type-viewer.ok.js +1 -0
  24. package/public/core/db/type-ops.js +1 -0
  25. package/public/core/docs/docs-page.ok.html +1 -0
  26. package/public/core/license/license-panel.ok.js +1 -0
  27. package/public/core/system/parts/system-log.ok.js +1 -0
  28. package/public/core/system/parts/system-processing-panel.ok.js +1 -0
  29. package/public/core/system/parts/system-storage-panel.ok.js +1 -0
  30. package/public/core/system/system-events-page.ok.js +1 -0
  31. package/public/core/system/system-logs-page.ok.js +1 -0
  32. package/public/core/system/system-overview-page.ok.html +1 -0
  33. package/public/core/system/system-runtime-page.ok.js +1 -0
  34. package/public/core/system/system-section.ok.html +1 -0
  35. package/public/features/api/api-panel.ok.js +1 -0
  36. package/public/features/api/index.js +1 -0
  37. package/public/features/auth/auth-panel.ok.js +1 -0
  38. package/public/features/auth/index.js +1 -0
  39. package/public/features/files/files-section.ok.html +1 -0
  40. package/public/features/files/index.js +1 -0
  41. package/public/features/files/parts/files-file-list.ok.js +1 -0
  42. package/public/features/files/parts/files-path-browser.ok.js +1 -0
  43. package/public/features/files/parts/files-preview.ok.js +1 -0
  44. package/public/features/files/parts/files-upload-panel.ok.js +1 -0
  45. package/public/features/functions/exports.js +1 -0
  46. package/public/features/functions/functions-section.ok.html +1 -0
  47. package/public/features/functions/functions-store.js +1 -0
  48. package/public/features/functions/index.js +1 -0
  49. package/public/features/functions/modals/function-modal.ok.js +1 -0
  50. package/public/features/functions/parts/function-detail.ok.js +1 -0
  51. package/public/features/functions/parts/function-logs.ok.js +1 -0
  52. package/public/features/functions/parts/function-runner.ok.js +1 -0
  53. package/public/features/pipelines/engine-ui-utils.js +1 -0
  54. package/public/features/pipelines/exports.js +1 -0
  55. package/public/features/pipelines/index.js +1 -0
  56. package/public/features/pipelines/modals/create-pipeline-modal.ok.js +1 -0
  57. package/public/features/pipelines/modals/edit-pipeline-modal.ok.js +1 -0
  58. package/public/features/pipelines/modals/engine-modal.ok.js +1 -0
  59. package/public/features/pipelines/parts/embed-create-panel.ok.js +1 -0
  60. package/public/features/pipelines/parts/embed-embedder-panel.ok.js +1 -0
  61. package/public/features/pipelines/parts/embed-indexer-panel.ok.js +1 -0
  62. package/public/features/pipelines/parts/embed-search-panel.ok.js +1 -0
  63. package/public/features/pipelines/parts/embed-worker-panel.ok.js +1 -0
  64. package/public/features/pipelines/parts/embeddings-engine-panel.ok.js +1 -0
  65. package/public/features/pipelines/parts/engine-declaration-editor.ok.js +1 -0
  66. package/public/features/pipelines/parts/engines-overview.ok.js +1 -0
  67. package/public/features/pipelines/parts/generic-engine-panel.ok.js +1 -0
  68. package/public/features/pipelines/parts/pipeline-create-panel.ok.js +1 -0
  69. package/public/features/pipelines/parts/pipeline-flow-strip.ok.js +1 -0
  70. package/public/features/pipelines/parts/type-pipelines-tab.ok.js +1 -0
  71. package/public/features/pipelines/pipelines-section.ok.html +1 -0
  72. package/public/features/queue/index.js +1 -0
  73. package/public/features/queue/modals/create-bucket-modal.ok.js +1 -0
  74. package/public/features/queue/modals/edit-bucket-modal.ok.js +1 -0
  75. package/public/features/queue/modals/edit-job-modal.ok.js +1 -0
  76. package/public/features/queue/modals/enqueue-job-modal.ok.js +1 -0
  77. package/public/features/queue/modals/job-type-modal.ok.js +1 -0
  78. package/public/features/queue/parts/job-log-panel.ok.js +1 -0
  79. package/public/features/queue/parts/queue-buckets.ok.js +1 -0
  80. package/public/features/queue/parts/queue-job-types.ok.js +1 -0
  81. package/public/features/queue/parts/queue-jobs.ok.js +1 -0
  82. package/public/features/queue/parts/queue-types.ok.js +1 -0
  83. package/public/features/queue/parts/queue-workers.ok.js +1 -0
  84. package/public/features/queue/queue-section.ok.html +1 -0
  85. package/public/features/sync/index.js +1 -0
  86. package/public/features/sync/sync-panel.ok.js +1 -0
  87. package/public/features/views/index.js +1 -0
  88. package/public/features/views/modals/create-view-modal.ok.js +1 -0
  89. package/public/features/views/parts/views-list.ok.js +1 -0
  90. package/public/features/views/parts/views-overview.ok.js +1 -0
  91. package/public/features/views/views-section.ok.html +1 -0
  92. package/public/features/views/views-store.js +1 -0
  93. package/public/index.html +9 -3
  94. package/public/modules/ok.js +1 -1
  95. package/public/shell/admin-shell.ok.html +3 -0
  96. package/public/shell/core-manifest.js +1 -0
  97. package/public/shell/shell-piece.ok.js +1 -0
  98. package/public/shell/shell-section-host.ok.js +1 -0
  99. package/public/shell/shell-section.ok.js +1 -0
  100. package/public/shell/shell-store.js +1 -0
  101. package/public/stores/auth-store.js +1 -1
  102. package/public/stores/okdb-store.js +1 -1
  103. package/public/stores/storage-store.js +1 -0
  104. package/public/styles.css +1 -1
  105. package/public/vendor/okjs/ok.esm.min.js +1 -1
  106. package/public/vendor/okjs/toolkit/components/ok-chart.ok.js +1 -1
  107. package/public/vendor/okjs/toolkit/components/ok-doc-viewer.ok.js +1 -1
  108. package/public/vendor/okjs/toolkit/components/ok-marked.ok.js +1 -1
  109. package/public/vendor/okjs/toolkit/components/ok-monaco.ok.js +1 -1
  110. package/public/vendor/okjs/toolkit/core/virtualized.ok.js +1 -1
  111. package/public/vendor/okjs/toolkit/editor/ok-live-shell.ok.js +1 -1
  112. package/public/vendor/okjs/toolkit/elements/ok-select.ok.js +1 -1
  113. package/public/vendor/okjs/toolkit/elements/ok-table.ok.js +1 -1
  114. package/public/components/admin-route-host.ok.js +0 -1
  115. package/public/components/field.html +0 -158
  116. package/public/layouts/_default.ok.html +0 -3
  117. package/public/sections/api/index.ok.html +0 -1
  118. package/public/sections/auth/index.ok.html +0 -1
  119. package/public/sections/auth/modals/perm-info-popover.ok.js +0 -1
  120. package/public/sections/db/index.ok.html +0 -1
  121. package/public/sections/db/modals/add-item-modal.ok.js +0 -1
  122. package/public/sections/db/modals/create-fts-modal.ok.js +0 -1
  123. package/public/sections/db/modals/create-index-modal.ok.js +0 -1
  124. package/public/sections/db/modals/create-pipeline-modal.ok.js +0 -1
  125. package/public/sections/db/modals/schema-edit-modal.ok.js +0 -1
  126. package/public/sections/db/parts/db-overview.ok.js +0 -1
  127. package/public/sections/db/parts/edit-row.ok.js +0 -1
  128. package/public/sections/db/parts/type-changelog.ok.js +0 -1
  129. package/public/sections/db/parts/type-list.ok.js +0 -1
  130. package/public/sections/db/parts/type-pipelines-tab.ok.js +0 -1
  131. package/public/sections/db/parts/type-schema-tab.ok.js +0 -1
  132. package/public/sections/db/parts/type-viewer.ok.js +0 -1
  133. package/public/sections/db/parts/type-violations-tab.ok.js +0 -1
  134. package/public/sections/docs/index.ok.html +0 -1
  135. package/public/sections/embeddings/index.ok.html +0 -1
  136. package/public/sections/embeddings/modals/edit-pipeline-modal.ok.js +0 -1
  137. package/public/sections/embeddings/parts/embed-create-panel.ok.js +0 -1
  138. package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +0 -1
  139. package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +0 -1
  140. package/public/sections/embeddings/parts/embed-engine-list.ok.js +0 -1
  141. package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +0 -1
  142. package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +0 -1
  143. package/public/sections/embeddings/parts/embed-overview.ok.js +0 -1
  144. package/public/sections/embeddings/parts/embed-search-panel.ok.js +0 -1
  145. package/public/sections/embeddings/parts/embed-worker-panel.ok.js +0 -1
  146. package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +0 -1
  147. package/public/sections/embeddings/parts/engines-overview.ok.js +0 -1
  148. package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +0 -1
  149. package/public/sections/embeddings/parts/pipeline-flow-strip.ok.js +0 -1
  150. package/public/sections/engines/engine-ui-utils.js +0 -1
  151. package/public/sections/engines/index.ok.html +0 -1
  152. package/public/sections/engines/modals/engine-modal.ok.js +0 -1
  153. package/public/sections/engines/parts/engine-declaration-editor.ok.js +0 -1
  154. package/public/sections/engines/parts/generic-engine-panel.ok.js +0 -1
  155. package/public/sections/files/index.ok.html +0 -1
  156. package/public/sections/files/parts/files-collection-list.ok.js +0 -1
  157. package/public/sections/files/parts/files-collection-panel.ok.js +0 -1
  158. package/public/sections/files/parts/files-file-list.ok.js +0 -1
  159. package/public/sections/files/parts/files-path-browser.ok.js +0 -1
  160. package/public/sections/files/parts/files-preview.ok.js +0 -1
  161. package/public/sections/files/parts/files-upload-panel.ok.js +0 -1
  162. package/public/sections/functions/index.ok.html +0 -1
  163. package/public/sections/functions/modals/function-modal.ok.js +0 -1
  164. package/public/sections/functions/parts/function-detail.ok.js +0 -1
  165. package/public/sections/functions/parts/function-logs.ok.js +0 -1
  166. package/public/sections/functions/parts/function-runner.ok.js +0 -1
  167. package/public/sections/license/index.ok.html +0 -1
  168. package/public/sections/license/parts/license-panel.ok.js +0 -1
  169. package/public/sections/queue/index.ok.html +0 -1
  170. package/public/sections/queue/modals/create-bucket-modal.ok.js +0 -1
  171. package/public/sections/queue/modals/edit-bucket-modal.ok.js +0 -1
  172. package/public/sections/queue/modals/edit-job-modal.ok.js +0 -1
  173. package/public/sections/queue/modals/enqueue-job-modal.ok.js +0 -1
  174. package/public/sections/queue/modals/job-type-modal.ok.js +0 -1
  175. package/public/sections/queue/parts/job-log-panel.ok.js +0 -1
  176. package/public/sections/queue/parts/ok-job-form.ok.js +0 -1
  177. package/public/sections/queue/parts/queue-buckets.ok.js +0 -1
  178. package/public/sections/queue/parts/queue-job-types.ok.js +0 -1
  179. package/public/sections/queue/parts/queue-jobs.ok.js +0 -1
  180. package/public/sections/queue/parts/queue-types.ok.js +0 -1
  181. package/public/sections/queue/parts/queue-workers.ok.js +0 -1
  182. package/public/sections/sync/index.ok.html +0 -5
  183. package/public/sections/sync/parts/sync-node-detail.ok.js +0 -1
  184. package/public/sections/system/index.ok.html +0 -1
  185. package/public/sections/system/parts/system-api-panel.ok.js +0 -1
  186. package/public/sections/system/parts/system-auth-panel.ok.js +0 -1
  187. package/public/sections/system/parts/system-log.ok.js +0 -1
  188. package/public/sections/system/parts/system-processing-panel.ok.js +0 -1
  189. package/public/sections/system/parts/system-status.ok.js +0 -1
  190. package/public/sections/system/parts/system-storage-panel.ok.js +0 -1
  191. package/public/sections/system/parts/system-sync-panel.ok.js +0 -1
  192. package/public/sections/views/index.ok.html +0 -1
  193. package/public/sections/views/modals/create-view-modal.ok.js +0 -1
  194. package/public/sections/views/parts/views-list.ok.js +0 -1
  195. package/public/sections/views/parts/views-overview.ok.js +0 -1
  196. package/public/stores/functions-store.js +0 -1
  197. /package/public/{sections → core}/db/parts/tm-timeline.ok.js +0 -0
  198. /package/public/{util → core/db}/sift-schema.js +0 -0
  199. /package/public/{view-models → core/db}/type-query-vm.js +0 -0
  200. /package/public/{sections → core}/system/modals/data-ops-modal.ok.js +0 -0
  201. /package/public/{sections → core}/system/parts/system-locks-panel.ok.js +0 -0
  202. /package/public/{sections → core}/system/parts/system-log-history.ok.js +0 -0
  203. /package/public/{sections → core}/system/parts/system-process-panel.ok.js +0 -0
  204. /package/public/{sections → core}/system/parts/system-runtime-overview.ok.js +0 -0
  205. /package/public/{sections → features}/api/parts/api-endpoint.ok.js +0 -0
  206. /package/public/{sections → features}/auth/modals/create-token-modal.ok.js +0 -0
  207. /package/public/{sections → features}/auth/modals/edit-token-modal.ok.js +0 -0
  208. /package/public/{sections → features}/auth/parts/token-detail.ok.js +0 -0
  209. /package/public/{sections → features}/auth/parts/token-list.ok.js +0 -0
  210. /package/public/{sections → features}/files/parts/files-blob-status.ok.js +0 -0
  211. /package/public/{sections → features}/files/parts/files-overview.ok.js +0 -0
  212. /package/public/{sections → features}/functions/parts/functions-list.ok.js +0 -0
  213. /package/public/{sections/engines → features/pipelines}/engine-panel-shared-style.js +0 -0
  214. /package/public/{sections/embeddings → features/pipelines}/modals/register-model-modal.ok.js +0 -0
  215. /package/public/{sections/embeddings → features/pipelines}/modals/replace-embedder-modal.ok.js +0 -0
  216. /package/public/{sections/embeddings → features/pipelines}/parts/embed-model-catalog.ok.js +0 -0
  217. /package/public/{sections/engines → features/pipelines}/parts/engine-lifecycle-actions.ok.js +0 -0
  218. /package/public/{sections/engines → features/pipelines}/parts/engine-panel-shell.ok.js +0 -0
  219. /package/public/{sections/engines → features/pipelines}/parts/engine-resource-card.ok.js +0 -0
  220. /package/public/{sections/engines → features/pipelines}/parts/engine-row-item.ok.js +0 -0
  221. /package/public/{sections/embeddings → features/pipelines}/parts/pipeline-try-search.ok.js +0 -0
  222. /package/public/{sections → features}/queue/parts/code-panel.ok.js +0 -0
  223. /package/public/{sections → features}/sync/modals/connect-peer-modal.ok.js +0 -0
  224. /package/public/{sections → features}/sync/parts/sync-retention.ok.js +0 -0
  225. /package/public/{sections → features}/sync/parts/sync-topology.ok.js +0 -0
  226. /package/public/{sections → features}/views/parts/view-detail.ok.js +0 -0
  227. /package/public/{sections/db → shell}/modals/create-env-modal.ok.js +0 -0
  228. /package/public/{sections/db → shell}/modals/demo-env-modal.ok.js +0 -0
  229. /package/public/{sections/db → shell}/modals/remove-env-modal.ok.js +0 -0
@@ -1 +1 @@
1
- 'use strict';const _0x1f2bca=_0x2789;(function(_0x324f11,_0x119017){const _0x2ec401=_0x2789,_0x31c973=_0x324f11();while(!![]){try{const _0x32169b=parseInt(_0x2ec401(0x223))/0x1+-parseInt(_0x2ec401(0x2ff))/0x2*(parseInt(_0x2ec401(0x1ff))/0x3)+-parseInt(_0x2ec401(0x368))/0x4+parseInt(_0x2ec401(0x2b8))/0x5*(parseInt(_0x2ec401(0x2d3))/0x6)+parseInt(_0x2ec401(0x177))/0x7+-parseInt(_0x2ec401(0x2da))/0x8*(parseInt(_0x2ec401(0x190))/0x9)+parseInt(_0x2ec401(0x17f))/0xa;if(_0x32169b===_0x119017)break;else _0x31c973['push'](_0x31c973['shift']());}catch(_0x3ba58f){_0x31c973['push'](_0x31c973['shift']());}}}(_0x70b3,0xa3bc3));var require$$0$5=require('./okdb'),require$$1$1=require(_0x1f2bca(0x176)),require$$1=require(_0x1f2bca(0x2bb)),require$$0$3=require('os'),require$$2=require(_0x1f2bca(0x32e)),require$$0=require(_0x1f2bca(0x36b)),require$$0$2=require(_0x1f2bca(0x21f)),require$$0$1=require('fs'),require$$0$4=require(_0x1f2bca(0x1e7));function getDefaultExportFromCjs(_0x20d899){const _0x5f0fb4=_0x1f2bca;return _0x20d899&&_0x20d899[_0x5f0fb4(0x329)]&&Object[_0x5f0fb4(0x1c6)][_0x5f0fb4(0x2d0)][_0x5f0fb4(0x18d)](_0x20d899,'default')?_0x20d899[_0x5f0fb4(0x2e7)]:_0x20d899;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1a2e66=_0x1f2bca;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0xacd92={'PUT':_0x1a2e66(0x134),'REMOVE':_0x1a2e66(0x13d),'INDEX_DROP':_0x1a2e66(0x1ea),'INDEX_REGISTER':_0x1a2e66(0x171),'INDEX_RESET':_0x1a2e66(0x2a3),'TYPE_REGISTER':_0x1a2e66(0x311),'TYPE_DROP':_0x1a2e66(0x189),'FTS_REGISTER':'registerFts','FTS_DROP':_0x1a2e66(0x140),'FTS_RESET':'resetFts','SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x1a2e66(0x1f5),'TTL_SET':_0x1a2e66(0x188),'TTL_CLEAR':'clearTtl'},_0x4a78c0={'SYSTEM_READY':_0x1a2e66(0x2e4),'FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':_0x1a2e66(0x291),'SYSTEM_POKE':_0x1a2e66(0x259),'SYSTEM_DRAIN':_0x1a2e66(0x28c),'SYSTEM_TYPE_DROP':_0x1a2e66(0x14a),'SYSTEM_PROC':_0x1a2e66(0x139),'SYSTEM_BUS_STATE_CHANGE':_0x1a2e66(0x31f),'ITEM_CREATE':_0x1a2e66(0x289),'ITEM_UPDATE':_0x1a2e66(0x30d),'ITEM_REMOVE':_0x1a2e66(0x25d),'ITEM_PENDING':_0x1a2e66(0x145),'INDEX_RESET':_0x1a2e66(0x239),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x1a2e66(0x2b6),'VIEW_PROGRESS':_0x1a2e66(0x2c8),'INDEX_DROP':_0x1a2e66(0x14f),'INDEX_REGISTERED':_0x1a2e66(0x347),'FTS_REGISTERED':_0x1a2e66(0x339),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':_0x1a2e66(0x1d5),'SCHEMA_DROP':_0x1a2e66(0x1b8),'UNIQUE_VIOLATION':_0x1a2e66(0x2eb),'UNIQUE_VIOLATION_RESOLVED':_0x1a2e66(0x31d),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':'sync:apply','TXN_START':'txn:start','TXN_END':_0x1a2e66(0x1a5),'TXN_ROLLBACK':_0x1a2e66(0x16b),'TYPE_REGISTERED':_0x1a2e66(0x1d1),'TYPE_DROP':'type:drop','ENV_OPENED':_0x1a2e66(0x254),'ENV_REMOVED':_0x1a2e66(0x2de),'SYSTEM_ENV_RELEASE':_0x1a2e66(0x2ca),'TTL_EXPIRED':_0x1a2e66(0x26e),'TTL_SET':_0x1a2e66(0x217),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x1a2e66(0x292),'LICENSE_ACTIVATED':_0x1a2e66(0x1b2),'LICENSE_REMOVED':_0x1a2e66(0x27e)},_0x937616={'CREATING':'creating','RESETTING':'resetting','READY':_0x1a2e66(0x313),'DROPPING':_0x1a2e66(0x1de),'WAITING':_0x1a2e66(0x143),'ERROR':_0x1a2e66(0x263)},_0x4640f1={'CREATED':_0x1a2e66(0x2fa),'STARTING':_0x1a2e66(0x16f),'STARTED':_0x1a2e66(0x141),'STOPPING':_0x1a2e66(0x205),'STOPPED':_0x1a2e66(0x13b)},_0x297cfa={'CREATING':'creating','READY':_0x1a2e66(0x313),'HALTED':_0x1a2e66(0x27b),'STOPPED':'stopped','RESETTING':_0x1a2e66(0x28d)},_0x7ef601=Object[_0x1a2e66(0x285)]({'POKE':_0x1a2e66(0x1db),'DRAIN':_0x1a2e66(0x31c),'TYPE_DROP':_0x1a2e66(0x1fa),'PROC':'bus:proc','ENV_RELEASE':_0x1a2e66(0x356)});return okdbEnums={'BUS_EVENTS':_0x7ef601,'CHANGE_ACTIONS':_0xacd92,'EVENTS':_0x4a78c0,'INDEX_STATE':_0x937616,'OKDB_STATE':_0x4640f1,'VIEW_STATE':_0x297cfa},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0xeea1b5=_0x1f2bca;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x34748d,performance:_0xc9065a}=require$$0,_0x59fb11=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x45dca1=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x7c831d=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2ac8f5=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x379573{constructor(){const _0x26a9d5=_0x2789;this[_0x26a9d5(0x36c)]=_0x59fb11,this['_buckets']=new Map(),this['_h']=null,this[_0x26a9d5(0x1d9)]=null,this[_0x26a9d5(0x2b5)]=![],this[_0x26a9d5(0x23e)]=(_0x5146d5,_0x48dedc)=>process['stderr'][_0x26a9d5(0x133)](_0x5146d5+(_0x48dedc?'\x20'+JSON['stringify'](_0x48dedc):'')+'\x0a');}[_0xeea1b5(0x1cf)](){const _0x2fc33e=_0xeea1b5;return _0xc9065a[_0x2fc33e(0x1cf)]();}['setLogger'](_0x57b0eb){const _0x1ac06b=_0xeea1b5;if(typeof _0x57b0eb===_0x1ac06b(0x14b))this[_0x1ac06b(0x23e)]=_0x57b0eb;}['note'](_0xf0b82a,_0x268028,_0x596246){const _0x496933=_0xeea1b5;if(!this['enabled'])return;let _0x37b6c3=this[_0x496933(0x288)][_0x496933(0x245)](_0xf0b82a);!_0x37b6c3&&(_0x37b6c3={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x496933(0x1c4)](_0xf0b82a,_0x37b6c3)),_0x37b6c3['ms']+=_0x268028,_0x37b6c3[_0x496933(0x1b4)]+=0x1,_0x268028>_0x37b6c3[_0x496933(0x230)]&&(_0x37b6c3[_0x496933(0x230)]=_0x268028,_0x37b6c3[_0x496933(0x1d3)]=_0x596246||'');}[_0xeea1b5(0x35f)](_0x3db274){const _0x5c8754=_0xeea1b5;if(!this['enabled']||this['_started'])return;this[_0x5c8754(0x2b5)]=!![];if(_0x3db274)this[_0x5c8754(0x23e)]=_0x3db274;this['_h']=_0x34748d({'resolution':0xa}),this['_h'][_0x5c8754(0x2bf)](),this[_0x5c8754(0x1d9)]=setInterval(()=>this[_0x5c8754(0x1cd)](),_0x45dca1);if(this[_0x5c8754(0x1d9)][_0x5c8754(0x343)])this[_0x5c8754(0x1d9)][_0x5c8754(0x343)]();}[_0xeea1b5(0x21a)](_0x3137e6){const _0x4eea5c=_0xeea1b5;if(!this[_0x4eea5c(0x2f1)])this[_0x4eea5c(0x2f1)]=new Set();this[_0x4eea5c(0x2f1)][_0x4eea5c(0x342)](_0x3137e6);if(!this['_started'])this[_0x4eea5c(0x2be)]();}[_0xeea1b5(0x359)](_0x38cc74){const _0xc82677=_0xeea1b5;this[_0xc82677(0x2f1)]?.[_0xc82677(0x2d8)](_0x38cc74);}['_startAdmission'](){const _0x1fe17c=_0xeea1b5;if(this[_0x1fe17c(0x25c)])return;this[_0x1fe17c(0x25c)]=!![];!this['_h']&&(this['_h']=_0x34748d({'resolution':0xa}),this['_h']['enable']());const _0x58002c=_0x45dca1;this[_0x1fe17c(0x169)]=setInterval(()=>{const _0x475a81=_0x1fe17c,_0x3b26a8=this['_h'];if(!_0x3b26a8)return;const _0x5c072d=_0x3b26a8[_0x475a81(0x153)](0x63)/0xf4240,_0x11855c=_0x3b26a8['max']/0xf4240,_0x4ff6c2=_0x3b26a8[_0x475a81(0x20a)]/0xf4240;_0x3b26a8[_0x475a81(0x21b)]();if(this[_0x475a81(0x2f1)])for(const _0x570128 of this[_0x475a81(0x2f1)]){try{_0x570128({'p99Ms':_0x5c072d,'maxMs':_0x11855c,'meanMs':_0x4ff6c2,'reportMs':_0x58002c});}catch{}}},_0x58002c);if(this[_0x1fe17c(0x169)][_0x1fe17c(0x343)])this[_0x1fe17c(0x169)]['unref']();}[_0xeea1b5(0x1cd)](){const _0x5b0430=_0xeea1b5,_0xeccce8=this['_h'],_0x5bcfef=_0xeccce8[_0x5b0430(0x1a3)]/0xf4240,_0x24b8e7=_0xeccce8[_0x5b0430(0x153)](0x63)/0xf4240,_0x1b9a3=_0xeccce8[_0x5b0430(0x20a)]/0xf4240;_0xeccce8[_0x5b0430(0x21b)]();const _0x51c8fd=[...this[_0x5b0430(0x288)]['entries']()][_0x5b0430(0x328)](([_0x588e2a,_0x340ac1])=>({'label':_0x588e2a,..._0x340ac1}))[_0x5b0430(0x213)]((_0x3146d9,_0x12ea73)=>_0x12ea73['ms']-_0x3146d9['ms'])[_0x5b0430(0x2d1)](0x0,0x8);this[_0x5b0430(0x288)][_0x5b0430(0x30e)]();const _0x36a395=_0x51c8fd[_0x5b0430(0x352)]((_0x1669e3,_0x3f8bbd)=>_0x1669e3+_0x3f8bbd['ms'],0x0),_0x264391=_0x51c8fd[_0x5b0430(0x328)](_0x1daa9b=>_0x1daa9b[_0x5b0430(0x2af)]+'='+_0x1daa9b['ms'][_0x5b0430(0x252)](0x0)+_0x5b0430(0x1aa)+_0x1daa9b[_0x5b0430(0x1b4)]+(_0x1daa9b[_0x5b0430(0x230)]>0x5?_0x5b0430(0x30b)+_0x1daa9b['maxMs'][_0x5b0430(0x252)](0x0)+'ms'+(_0x1daa9b[_0x5b0430(0x1d3)]?'\x20'+_0x1daa9b['maxExtra']:'')+')':''));(_0x7c831d||_0x5bcfef>=_0x2ac8f5)&&this[_0x5b0430(0x23e)](_0x5b0430(0x144)+_0x45dca1+_0x5b0430(0x312)+_0x5bcfef[_0x5b0430(0x252)](0x0)+_0x5b0430(0x1e8)+_0x24b8e7[_0x5b0430(0x252)](0x0)+_0x5b0430(0x37a)+_0x1b9a3[_0x5b0430(0x252)](0x0)+_0x5b0430(0x198)+_0x36a395[_0x5b0430(0x252)](0x0)+'ms'+(_0x264391['length']?_0x5b0430(0x12b)+_0x264391[_0x5b0430(0x2fb)]('\x20\x20'):''),{'feature':_0x5b0430(0x350)});if(this['_windowCbs'])for(const _0x2c20af of this[_0x5b0430(0x2f1)]){try{_0x2c20af({'p99Ms':_0x24b8e7,'maxMs':_0x5bcfef,'meanMs':_0x1b9a3,'reportMs':_0x45dca1});}catch{}}}[_0xeea1b5(0x33c)](){const _0x361e02=_0xeea1b5;if(this[_0x361e02(0x1d9)])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x361e02(0x1ad)]();this['_timer']=null,this['_h']=null,this[_0x361e02(0x2b5)]=![];}}const _0xef1d4a=new _0x379573();if(_0xef1d4a[_0xeea1b5(0x36c)])_0xef1d4a[_0xeea1b5(0x35f)]();return okdbLoopMonitor={'LOOP':_0xef1d4a},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x94ac74=require$$0$1,_0x1709e3=require$$1;let _0x373fb6,_0x4d31de,_0x2b0d78,_0x5b7a37,_0x541ee4,_0x436b8a,_0x42cbb7,_0x3593ae=![];const _0x34798a=new Set();let _0x1cca8d=null;const _0x1d08c4=new Map();function _0x24c9a6(){const _0x10c861=_0x2789;if(_0x373fb6!==undefined)return _0x373fb6;_0x373fb6=process.env.OKDB_DIAG==='1';if(!_0x373fb6)return![];_0x4d31de=process.env.OKDB_DIAG_STACK==='1',_0x5b7a37=Math[_0x10c861(0x1a3)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x2b0d78=new Array(_0x5b7a37),_0x541ee4=0x0,_0x436b8a=0x0,_0x42cbb7=process.env.OKDB_DIAG_DIR||null;if(_0x42cbb7)try{_0x94ac74['mkdirSync'](_0x42cbb7,{'recursive':!![]});}catch{}return!![];}function _0x3b38ae(){return _0x373fb6===undefined?_0x24c9a6():_0x373fb6;}function _0x2e0839(_0x4240fb,_0x5de4d2){const _0x516488=_0x2789;if(_0x373fb6===undefined?!_0x24c9a6():!_0x373fb6)return;let _0x2773fa;if(_0x4d31de){const _0x212022=new Error()['stack']||'';_0x2773fa=_0x212022[_0x516488(0x296)]('\x0a')['slice'](0x3)[_0x516488(0x328)](_0x3949d6=>_0x3949d6[_0x516488(0x2d9)]())[_0x516488(0x336)](Boolean)[_0x516488(0x2d1)](0x0,0x8);}_0x2b0d78[_0x541ee4]={'seq':_0x436b8a++,'t':Date['now'](),'env':_0x4240fb,'kind':_0x5de4d2||'commit','stack':_0x2773fa},_0x541ee4=(_0x541ee4+0x1)%_0x5b7a37;}function _0x293ee0(_0x5d497a){const _0x42cca5=_0x2789,_0x289599=[];for(let _0x12cecd=0x0;_0x12cecd<_0x5b7a37;_0x12cecd++){const _0x370203=_0x2b0d78[(_0x541ee4-0x1-_0x12cecd+_0x5b7a37*0x2)%_0x5b7a37];if(!_0x370203)continue;_0x289599[_0x42cca5(0x22b)](_0x370203);if(_0x289599[_0x42cca5(0x2b7)]>=_0x5d497a)break;}return _0x289599;}function _0x49ceda(_0x6e67e2){const _0x5936f7=_0x2789;try{process[_0x5936f7(0x229)][_0x5936f7(0x133)](_0x6e67e2+'\x0a');}catch{}if(_0x42cbb7)try{_0x94ac74[_0x5936f7(0x2df)](_0x1709e3['join'](_0x42cbb7,_0x5936f7(0x286)+process[_0x5936f7(0x13a)]+_0x5936f7(0x207)),_0x6e67e2+'\x0a');}catch{}}function _0x2ec2f6(_0x42a4cc){const _0x4c4478=_0x2789,_0x1bbe71=_0x293ee0(_0x42a4cc);if(!_0x1bbe71[_0x4c4478(0x2b7)])return _0x4c4478(0x321);const _0x46d3cb=Date[_0x4c4478(0x1cf)]();return _0x1bbe71[_0x4c4478(0x328)](_0x4587e1=>{const _0xc1e78=_0x4c4478,_0x360c01=_0xc1e78(0x2f7)+_0x4587e1['seq']+'\x20-'+(_0x46d3cb-_0x4587e1['t'])+_0xc1e78(0x142)+_0x4587e1['env']+'\x20'+_0x4587e1[_0xc1e78(0x2c3)];return _0x4587e1[_0xc1e78(0x168)]&&_0x4587e1[_0xc1e78(0x168)][_0xc1e78(0x2b7)]?_0x360c01+'\x0a\x20\x20\x20\x20\x20\x20'+_0x4587e1[_0xc1e78(0x168)]['join'](_0xc1e78(0x335)):_0x360c01;})[_0x4c4478(0x2fb)]('\x0a');}function _0x40af2b(_0x5a76a2,_0x3b5b65){const _0x9ad7c4=_0x2789,_0x585fd2=_0x9ad7c4(0x25b)+_0x5a76a2+_0x9ad7c4(0x211)+new Date()[_0x9ad7c4(0x32f)]()+_0x9ad7c4(0x1d2)+process[_0x9ad7c4(0x13a)]+_0x9ad7c4(0x2f6),_0x99f4c6=[_0x585fd2,_0x9ad7c4(0x12a)+(_0x3b5b65&&_0x3b5b65[_0x9ad7c4(0x168)]?_0x3b5b65['stack'][_0x9ad7c4(0x296)]('\x0a')[0x0]:_0x3b5b65),_0x9ad7c4(0x24c)+(_0x4d31de?'':_0x9ad7c4(0x2cf))+':',_0x2ec2f6(0x18),_0x522ef1(),'='[_0x9ad7c4(0x186)](_0x585fd2['length']-0x1)];_0x49ceda(_0x99f4c6[_0x9ad7c4(0x2fb)]('\x0a'));}function _0x35e994(_0x2d8002){const _0x19629f=_0x2789;if(!_0x3b38ae())return;const _0x512558=String(_0x2d8002&&_0x2d8002[_0x19629f(0x2f8)]||_0x2d8002||''),_0x4e22f5=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x19629f(0x216)](_0x512558);_0x40af2b(_0x4e22f5?_0x19629f(0x2ac):'uncaughtException',_0x2d8002);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x4e22f5)return;try{console[_0x19629f(0x263)](_0x2d8002&&_0x2d8002[_0x19629f(0x168)]?_0x2d8002[_0x19629f(0x168)]:_0x2d8002);}catch{}process['exit'](0x1);}function _0x288a04(_0x395c4c){const _0x1c15bb=_0x2789;if(!_0x3b38ae())return;const _0x4fa929=String(_0x395c4c&&_0x395c4c[_0x1c15bb(0x2f8)]||_0x395c4c||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x1c15bb(0x216)](_0x4fa929)&&_0x40af2b(_0x1c15bb(0x32a),_0x395c4c);}function _0x522ef1(){const _0x409ed1=_0x2789,_0x1e575b=[_0x409ed1(0x18a)];let _0x5294a7=![];for(const _0x30899a of _0x34798a){const _0x5480e5=_0x30899a&&_0x30899a[_0x409ed1(0x30f)];if(!_0x5480e5)continue;for(const [_0x527443,_0x25b057]of _0x5480e5){const _0x5d14da=_0x25b057&&_0x25b057['_coordinator']&&_0x25b057[_0x409ed1(0x279)][_0x409ed1(0x246)];if(!_0x5d14da)continue;let _0x498fbc,_0x4d445a;try{_0x498fbc=Atomics[_0x409ed1(0x1c0)](_0x5d14da,0x0),_0x4d445a=Atomics[_0x409ed1(0x1c0)](_0x5d14da,0x1);}catch{continue;}if(_0x498fbc===0x0)continue;_0x5294a7=!![];const _0x22b47b=_0x498fbc>0x0?_0x409ed1(0x22f):_0x409ed1(0x364),_0x30a9be=Date[_0x409ed1(0x1cf)]()-Math[_0x409ed1(0x2a2)](_0x498fbc)*0x3e8,_0x61d4f5=((()=>{const _0x2835b4=_0x409ed1;try{return _0x25b057['_writer']&&_0x25b057[_0x2835b4(0x2ad)][_0x2835b4(0x1b7)]?_0x25b057[_0x2835b4(0x2ad)][_0x2835b4(0x1b7)]():null;}catch{return null;}})());_0x1e575b[_0x409ed1(0x22b)](_0x409ed1(0x202)+_0x527443+_0x409ed1(0x2fd)+_0x22b47b+_0x409ed1(0x333)+_0x30a9be+_0x409ed1(0x2c2)+_0x4d445a+(_0x61d4f5?_0x409ed1(0x1ee)+_0x61d4f5[_0x409ed1(0x1b5)]+_0x409ed1(0x24e)+_0x61d4f5[_0x409ed1(0x199)]+'\x20parkedNow='+_0x61d4f5['parkedNow']+'}':''));}}if(!_0x5294a7)_0x1e575b['push'](_0x409ed1(0x2fc));return _0x1e575b[_0x409ed1(0x2fb)]('\x0a');}function _0xd56de7(){const _0x3cc540=_0x2789;if(!_0x3b38ae())return;const _0x543d2f=Math[_0x3cc540(0x1a3)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x31a961=Date['now']();for(const _0x1ecb32 of _0x34798a){const _0x479008=_0x1ecb32&&_0x1ecb32[_0x3cc540(0x30f)];if(!_0x479008)continue;for(const [_0x49eed1,_0x190604]of _0x479008){const _0x34216c=_0x190604&&_0x190604[_0x3cc540(0x279)]&&_0x190604['_coordinator']['view'];if(!_0x34216c)continue;let _0x468d9f;try{_0x468d9f=Atomics[_0x3cc540(0x1c0)](_0x34216c,0x0);}catch{continue;}const _0x25e002=_0x1ecb32['path']+'|'+_0x49eed1;if(_0x468d9f<=0x0){_0x1d08c4[_0x3cc540(0x2d8)](_0x25e002);continue;}const _0x49c430=_0x31a961-_0x468d9f*0x3e8,_0x2dee08=_0x1d08c4[_0x3cc540(0x245)](_0x25e002);if(_0x49c430<_0x543d2f)continue;if(_0x2dee08&&_0x31a961-_0x2dee08[_0x3cc540(0x2a6)]<_0x543d2f)continue;_0x1d08c4[_0x3cc540(0x1c4)](_0x25e002,{'firstTs':_0x2dee08?_0x2dee08['firstTs']:_0x468d9f,'dumpedAt':_0x31a961});const _0x5a7721=_0x3cc540(0x19c)+_0x49c430+_0x3cc540(0x29e)+_0x49eed1+_0x3cc540(0x211)+new Date()[_0x3cc540(0x32f)]()+_0x3cc540(0x1d2)+process['pid']+_0x3cc540(0x2f6);_0x49ceda([_0x5a7721,_0x522ef1(),'='['repeat'](_0x5a7721[_0x3cc540(0x2b7)]-0x1)]['join']('\x0a'));}}}function _0x2836b3(){const _0x3d64fb=_0x2789;if(!_0x3b38ae()||_0x3593ae)return;_0x3593ae=!![],process[_0x3d64fb(0x284)](_0x3d64fb(0x301),_0x35e994),process[_0x3d64fb(0x284)](_0x3d64fb(0x295),_0x288a04);const _0x47c762=Math['max'](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x1cca8d=setInterval(_0xd56de7,_0x47c762);if(_0x1cca8d[_0x3d64fb(0x343)])_0x1cca8d['unref']();}function _0x180b13(_0x1edebf){if(!_0x3b38ae()||!_0x1edebf)return;_0x34798a['add'](_0x1edebf),_0x2836b3();}function _0x4a2a65(_0x320e24){const _0x25909f=_0x2789;_0x34798a[_0x25909f(0x2d8)](_0x320e24);}function _0x2e7af9(){const _0x3f47f8=_0x2789;if(!_0x3b38ae())return{'enabled':![],'hint':_0x3f47f8(0x260)};return{'enabled':!![],'stackCapture':!!_0x4d31de,'recentWrites':_0x293ee0(0x10),'drain':_0x522ef1()};}return okdbDiag={'isEnabled':_0x3b38ae,'recordWrite':_0x2e0839,'installDiag':_0x2836b3,'registerOkdb':_0x180b13,'unregisterOkdb':_0x4a2a65,'snapshot':_0x2e7af9},okdbDiag;}function _0x2789(_0x421321,_0x2ff325){_0x421321=_0x421321-0x129;const _0x70b330=_0x70b3();let _0x278995=_0x70b330[_0x421321];return _0x278995;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x3b2118=_0x1f2bca;if(hasRequiredOkdbWriter)return okdbWriter['exports'];hasRequiredOkdbWriter=0x1;const {performance:_0x38b668}=require$$0$2,_0x4faa99=requireOkdbDiag(),_0x1ce402=process.env.OKDB_COMMIT_MODE==='sync';class _0x383015{constructor(_0x351f77){const _0xe60803=_0x2789;this[_0xe60803(0x28e)]=_0x351f77,this['_inflight']=new Set(),this[_0xe60803(0x26d)]=new Map(),this[_0xe60803(0x282)]=0x0,this[_0xe60803(0x29d)]=[],this[_0xe60803(0x12c)]=[],this[_0xe60803(0x18b)]=Math[_0xe60803(0x1a3)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this['_outstanding']=0x0,this[_0xe60803(0x26c)]=[],this['_bpParkedTotal']=0x0,this[_0xe60803(0x280)]=null,this[_0xe60803(0x181)]=0x0,this['_nestedTotal']=0x0,this[_0xe60803(0x2f0)]=![];}async[_0x3b2118(0x1ed)](_0x36d0d1,_0x540eb2,{admitted:admitted=![]}={}){const _0xee1ef1=_0x3b2118;if(_0x4faa99[_0xee1ef1(0x1f4)]())_0x4faa99['recordWrite'](this['env']?.[_0xee1ef1(0x369)],_0x540eb2);if(this[_0xee1ef1(0x1dd)]){const _0x2ed097=new Error('okdb-writer:\x20env\x20closing\x20—\x20retry');_0x2ed097[_0xee1ef1(0x187)]=_0xee1ef1(0x25a);throw _0x2ed097;}if(this[_0xee1ef1(0x18b)]>0x0){let _0x3994f3=![];while(this[_0xee1ef1(0x1bb)]>=this[_0xee1ef1(0x18b)]&&!this[_0xee1ef1(0x1dd)]){!_0x3994f3&&(_0x3994f3=!![],this[_0xee1ef1(0x283)]++),await new Promise(_0x3931f4=>this[_0xee1ef1(0x26c)][_0xee1ef1(0x22b)](_0x3931f4));}if(this['_closed']){const _0x11f215=new Error(_0xee1ef1(0x1da));_0x11f215[_0xee1ef1(0x187)]=_0xee1ef1(0x25a);throw _0x11f215;}}this['_outstanding']++;const _0x6a9989=admitted?null:this['env'][_0xee1ef1(0x279)];for(;;){while(this[_0xee1ef1(0x280)])await this[_0xee1ef1(0x280)];if(_0x6a9989)try{await _0x6a9989[_0xee1ef1(0x235)]();}catch(_0x29b09c){this[_0xee1ef1(0x1bb)]--;if(this[_0xee1ef1(0x26c)][_0xee1ef1(0x2b7)]&&this[_0xee1ef1(0x1bb)]<this[_0xee1ef1(0x18b)])this[_0xee1ef1(0x26c)][_0xee1ef1(0x35e)]()();throw _0x29b09c;}if(!this[_0xee1ef1(0x280)])break;if(_0x6a9989)_0x6a9989[_0xee1ef1(0x2e0)]();}if(this[_0xee1ef1(0x1dd)]){if(_0x6a9989)_0x6a9989['afterWrite']();this[_0xee1ef1(0x1bb)]--;if(this[_0xee1ef1(0x26c)][_0xee1ef1(0x2b7)]&&this[_0xee1ef1(0x1bb)]<this[_0xee1ef1(0x18b)])this[_0xee1ef1(0x26c)][_0xee1ef1(0x35e)]()();const _0x50446c=new Error(_0xee1ef1(0x1da));_0x50446c[_0xee1ef1(0x187)]='ENV_CLOSING_RETRY';throw _0x50446c;}const _0x4d2eff=_0x38b668['now']();if(_0x1ce402)try{const _0x48b701=this[_0xee1ef1(0x28e)]['db'][_0xee1ef1(0x222)](_0x36d0d1);this[_0xee1ef1(0x282)]++;if(this[_0xee1ef1(0x29d)][_0xee1ef1(0x22b)](_0x38b668['now']()-_0x4d2eff)>0x100)this[_0xee1ef1(0x29d)][_0xee1ef1(0x35e)]();if(this[_0xee1ef1(0x12c)][_0xee1ef1(0x22b)](_0x38b668[_0xee1ef1(0x1cf)]())>0x800)this[_0xee1ef1(0x12c)][_0xee1ef1(0x35e)]();return _0x48b701;}finally{this[_0xee1ef1(0x1bb)]--;if(this[_0xee1ef1(0x26c)]['length']&&this[_0xee1ef1(0x1bb)]<this[_0xee1ef1(0x18b)])this[_0xee1ef1(0x26c)][_0xee1ef1(0x35e)]()();if(_0x6a9989)_0x6a9989[_0xee1ef1(0x2e0)]();}let _0x2ba72c=null;const _0xc6887c=()=>{const _0x17eabd=_0xee1ef1,_0xd467ef=_0x36d0d1();if(_0xd467ef&&typeof _0xd467ef[_0x17eabd(0x156)]===_0x17eabd(0x14b)&&!_0x2ba72c){this[_0x17eabd(0x181)]++;let _0x4b7130;const _0x27cd75=new Promise(_0x12188c=>_0x4b7130=_0x12188c);this[_0x17eabd(0x280)]=_0x27cd75,_0x2ba72c=()=>{const _0x3992a7=_0x17eabd;if(this[_0x3992a7(0x280)]===_0x27cd75)this[_0x3992a7(0x280)]=null;_0x4b7130();};}return _0xd467ef;};let _0x14da1b;try{_0x14da1b=this[_0xee1ef1(0x28e)]['db'][_0xee1ef1(0x258)](_0xc6887c);}catch(_0x37eafd){_0x14da1b=Promise[_0xee1ef1(0x1a7)](_0x37eafd);}(!_0x14da1b||typeof _0x14da1b[_0xee1ef1(0x156)]!==_0xee1ef1(0x14b))&&(this[_0xee1ef1(0x330)]++,!this[_0xee1ef1(0x2f0)]&&(this['_nestedWarned']=!![],console['warn'](_0xee1ef1(0x224)+(this[_0xee1ef1(0x28e)]?.[_0xee1ef1(0x369)]??'?')+_0xee1ef1(0x14e))),_0x14da1b=Promise[_0xee1ef1(0x33a)](_0x14da1b));const _0x50b342=()=>{if(_0x2ba72c)_0x2ba72c();};_0x14da1b[_0xee1ef1(0x156)](_0x50b342,_0x50b342),this[_0xee1ef1(0x1fc)][_0xee1ef1(0x342)](_0x14da1b),this[_0xee1ef1(0x26d)][_0xee1ef1(0x1c4)](_0x14da1b,_0x4d2eff);const _0x3a6ccf=()=>{const _0xa4ad82=_0xee1ef1;this['_inflight'][_0xa4ad82(0x2d8)](_0x14da1b),this[_0xa4ad82(0x26d)]['delete'](_0x14da1b),this[_0xa4ad82(0x282)]++,this[_0xa4ad82(0x1bb)]--;this[_0xa4ad82(0x26c)][_0xa4ad82(0x2b7)]&&this[_0xa4ad82(0x1bb)]<this[_0xa4ad82(0x18b)]&&this[_0xa4ad82(0x26c)]['shift']()();if(this['_durs'][_0xa4ad82(0x22b)](_0x38b668[_0xa4ad82(0x1cf)]()-_0x4d2eff)>0x100)this[_0xa4ad82(0x29d)][_0xa4ad82(0x35e)]();if(this['_done'][_0xa4ad82(0x22b)](_0x38b668[_0xa4ad82(0x1cf)]())>0x800)this[_0xa4ad82(0x12c)][_0xa4ad82(0x35e)]();};_0x14da1b[_0xee1ef1(0x156)](_0x3a6ccf,_0x3a6ccf);try{return await _0x14da1b;}finally{if(_0x6a9989)_0x6a9989[_0xee1ef1(0x2e0)]();}}['status'](){const _0x5a7f57=_0x3b2118,_0x11f6a2=_0x38b668[_0x5a7f57(0x1cf)]();let _0x4063b6=0x0;for(const _0x2d0bd8 of this[_0x5a7f57(0x26d)][_0x5a7f57(0x20c)]()){const _0x351377=_0x11f6a2-_0x2d0bd8;if(_0x351377>_0x4063b6)_0x4063b6=_0x351377;}let _0x5cfb8c=0x0;for(let _0x1638fd=this[_0x5a7f57(0x12c)]['length']-0x1;_0x1638fd>=0x0;_0x1638fd--){if(_0x11f6a2-this['_done'][_0x1638fd]>0x3e8)break;_0x5cfb8c++;}let _0x48fb2c=0x0;if(this[_0x5a7f57(0x29d)][_0x5a7f57(0x2b7)]){const _0x1ae47e=[...this[_0x5a7f57(0x29d)]][_0x5a7f57(0x213)]((_0x5d3f1b,_0x3bd948)=>_0x5d3f1b-_0x3bd948);_0x48fb2c=_0x1ae47e[Math[_0x5a7f57(0x1f0)](_0x1ae47e['length']-0x1,Math[_0x5a7f57(0x1be)](_0x1ae47e[_0x5a7f57(0x2b7)]*0.99))];}return{'depth':this[_0x5a7f57(0x1fc)][_0x5a7f57(0x194)],'oldestPendingMs':Math[_0x5a7f57(0x24f)](_0x4063b6),'committed':this[_0x5a7f57(0x282)],'commitsPerSec':_0x5cfb8c,'commitP99Ms':Math[_0x5a7f57(0x24f)](_0x48fb2c),'parkedNow':this['_bpWaiters'][_0x5a7f57(0x2b7)],'parkedTotal':this[_0x5a7f57(0x283)],'highWater':this[_0x5a7f57(0x18b)]};}[_0x3b2118(0x308)](){const _0x550ac7=_0x3b2118,_0x140e44=_0x38b668[_0x550ac7(0x1cf)]();return[...this[_0x550ac7(0x26d)][_0x550ac7(0x20c)]()][_0x550ac7(0x328)](_0x43a8aa=>Math[_0x550ac7(0x24f)](_0x140e44-_0x43a8aa))[_0x550ac7(0x213)]((_0x2bbbb3,_0x264d16)=>_0x264d16-_0x2bbbb3);}['markClosed'](){const _0x26baec=_0x3b2118;this['_closed']=!![];for(const _0x4dc10b of this[_0x26baec(0x26c)][_0x26baec(0x1f6)](0x0))_0x4dc10b();}async[_0x3b2118(0x219)](){const _0x1769ae=_0x3b2118;let _0x439549=0x0;while(this['_inflight'][_0x1769ae(0x194)]&&_0x439549++<0x3e8){await Promise[_0x1769ae(0x1bd)]([...this[_0x1769ae(0x1fc)]]);}}async['put'](_0x3f8323,_0x1e9abc,_0xa45980,_0x58cbd5){const _0x58bf6c=_0x3b2118;return this[_0x58bf6c(0x1ed)](()=>{const _0xa2e8ff=_0x58bf6c;if(_0x58cbd5===undefined)_0x3f8323[_0xa2e8ff(0x22d)](_0x1e9abc,_0xa45980);else _0x3f8323[_0xa2e8ff(0x22d)](_0x1e9abc,_0xa45980,_0x58cbd5);},_0x58bf6c(0x225));}async[_0x3b2118(0x13d)](_0x1690d8,_0x12e996){const _0x2852b6=_0x3b2118;return this[_0x2852b6(0x1ed)](()=>_0x1690d8[_0x2852b6(0x267)](_0x12e996),_0x2852b6(0x1b3));}}async function _0xd9dea2(_0x2453f1,_0x1be925){const _0x1b7e98=_0x3b2118;if(_0x1be925==null)_0x1be925=Math[_0x1b7e98(0x1a3)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x39fc99=_0x2453f1?.[_0x1b7e98(0x17e)];if(!_0x39fc99||typeof _0x39fc99['then']!==_0x1b7e98(0x14b))return;await Promise[_0x1b7e98(0x1f7)]([Promise[_0x1b7e98(0x33a)](_0x39fc99)[_0x1b7e98(0x22e)](()=>{}),new Promise(_0x2f8cbb=>{const _0x172dd7=_0x1b7e98,_0x769b88=setTimeout(_0x2f8cbb,_0x1be925);if(_0x769b88[_0x172dd7(0x343)])_0x769b88[_0x172dd7(0x343)]();})]);}catch{}}function _0x583ca4(_0x33264b){const _0x3a9f11=_0x3b2118;if(_0x1ce402)return Promise[_0x3a9f11(0x33a)]();const _0x128c4b=_0x33264b?.[_0x3a9f11(0x15d)];return _0x128c4b&&typeof _0x128c4b[_0x3a9f11(0x156)]==='function'?_0x128c4b:Promise[_0x3a9f11(0x33a)]();}const _0x59a2c7=Math[_0x3b2118(0x1a3)](0x1,Math['floor'](Number(process.env.UV_THREADPOOL_SIZE))||0x4),_0x2663cc=Math[_0x3b2118(0x1a3)](0x1,_0x59a2c7-0x2);let _0x41e48e=0x0;const _0x9b8518=[];async function _0x261a1d(_0x2b0999){const _0x47477b=_0x3b2118;if(_0x41e48e<_0x2663cc)_0x41e48e++;else await new Promise(_0x26bacd=>_0x9b8518[_0x47477b(0x22b)](_0x26bacd));try{return await _0x2b0999();}finally{const _0x222f56=_0x9b8518[_0x47477b(0x35e)]();if(_0x222f56)_0x222f56();else _0x41e48e--;}}return okdbWriter[_0x3b2118(0x21c)]=_0x383015,okdbWriter['exports'][_0x3b2118(0x14c)]=_0x261a1d,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x15f)]=_0x2663cc,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x2ae)]=_0xd9dea2,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x15d)]=_0x583ca4,okdbWriter[_0x3b2118(0x21c)][_0x3b2118(0x19d)]=_0x1ce402,okdbWriter[_0x3b2118(0x21c)];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x46ea8c=_0x1f2bca;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x2fb108=require$$0$3,{SYNC_COMMITS:_0x124fea}=requireOkdbWriter(),_0x4e6018=_0x46ea8c(0x136);class _0xfe6ecd{constructor(_0x4f86c4,_0x4fdcce,_0x3b1c72){const _0x341434=_0x46ea8c;this[_0x341434(0x1d0)]=_0x4f86c4,this[_0x341434(0x33d)]=_0x4fdcce,this[_0x341434(0x2b4)]=_0x3b1c72,this[_0x341434(0x157)]=![],this['_heartbeatTimer']=null,this['_heartbeatInFlight']=null;}['isHeld'](){const _0x2befca=_0x46ea8c;if(this[_0x2befca(0x157)])return![];try{const _0x5bab79=this['_lock']['_db']()[_0x2befca(0x245)](this['_key']);if(!_0x5bab79||_0x5bab79[_0x2befca(0x26f)]!==this[_0x2befca(0x2b4)])return![];const _0x18839e=_0x5bab79[_0x2befca(0x208)]??_0x5bab79[_0x2befca(0x26f)];if(_0x18839e+_0x5bab79[_0x2befca(0x2ab)]<Date['now']())return![];return!![];}catch{return!this[_0x2befca(0x157)];}}[_0x46ea8c(0x160)](){const _0x2748f8=_0x46ea8c;if(this[_0x2748f8(0x157)])return null;try{return this[_0x2748f8(0x1d0)]['_db']()[_0x2748f8(0x245)](this['_key'])??null;}catch{return null;}}async[_0x46ea8c(0x331)](_0x4485ff){const _0x156937=_0x46ea8c;if(this[_0x156937(0x157)])return;try{if(this[_0x156937(0x1d0)][_0x156937(0x1dd)]())return;const _0x44bcb9=this[_0x156937(0x1d0)][_0x156937(0x2d6)]()[_0x156937(0x245)](this[_0x156937(0x33d)]);if(!_0x44bcb9||_0x44bcb9[_0x156937(0x26f)]!==this[_0x156937(0x2b4)])return;if(_0x124fea)this[_0x156937(0x1d0)][_0x156937(0x2d6)]()[_0x156937(0x22d)](this[_0x156937(0x33d)],{..._0x44bcb9,'ttlMs':_0x44bcb9[_0x156937(0x2ab)]+_0x4485ff});else await this[_0x156937(0x1d0)][_0x156937(0x2d6)]()[_0x156937(0x134)](this[_0x156937(0x33d)],{..._0x44bcb9,'ttlMs':_0x44bcb9[_0x156937(0x2ab)]+_0x4485ff});}catch{}}async[_0x46ea8c(0x297)](){const _0x50147b=_0x46ea8c;if(this[_0x50147b(0x157)])return;if(this[_0x50147b(0x32c)])try{await this[_0x50147b(0x32c)];}catch{}clearInterval(this[_0x50147b(0x2ee)]),this['_heartbeatTimer']=null,this[_0x50147b(0x157)]=!![];try{if(this[_0x50147b(0x1d0)][_0x50147b(0x1dd)]())return;const _0x1a2193=this[_0x50147b(0x1d0)][_0x50147b(0x2d6)]()['get'](this[_0x50147b(0x33d)]);if(_0x1a2193&&_0x1a2193[_0x50147b(0x26f)]===this[_0x50147b(0x2b4)]){if(_0x124fea)this[_0x50147b(0x1d0)][_0x50147b(0x2d6)]()[_0x50147b(0x267)](this['_key']);else await this[_0x50147b(0x1d0)][_0x50147b(0x2d6)]()[_0x50147b(0x13d)](this[_0x50147b(0x33d)]);}}catch{}}[_0x46ea8c(0x25e)](_0x5b5488,_0x58144e){const _0x540feb=_0x46ea8c,_0x1d95a2=_0x58144e??Math['floor'](_0x5b5488/0x3);this['_heartbeatTimer']=setInterval(()=>{const _0x726842=_0x2789;if(this['_released'])return;this[_0x726842(0x32c)]=((async()=>{const _0x8fbc9b=_0x726842;try{if(this[_0x8fbc9b(0x1d0)][_0x8fbc9b(0x1dd)]())return;const _0x497c1a=this[_0x8fbc9b(0x1d0)][_0x8fbc9b(0x2d6)]()[_0x8fbc9b(0x245)](this['_key']);if(!_0x497c1a||_0x497c1a[_0x8fbc9b(0x26f)]!==this[_0x8fbc9b(0x2b4)]){this[_0x8fbc9b(0x157)]=!![],clearInterval(this['_heartbeatTimer']),this[_0x8fbc9b(0x2ee)]=null;return;}if(_0x124fea)this[_0x8fbc9b(0x1d0)][_0x8fbc9b(0x2d6)]()[_0x8fbc9b(0x22d)](this[_0x8fbc9b(0x33d)],{..._0x497c1a,'updatedAt':Date['now']()});else await this[_0x8fbc9b(0x1d0)]['_db']()[_0x8fbc9b(0x134)](this[_0x8fbc9b(0x33d)],{..._0x497c1a,'updatedAt':Date[_0x8fbc9b(0x1cf)]()});}catch{}this[_0x8fbc9b(0x32c)]=null;})());},_0x1d95a2);if(this[_0x540feb(0x2ee)][_0x540feb(0x343)])this[_0x540feb(0x2ee)][_0x540feb(0x343)]();}}class _0x1a9c34{constructor(_0xab87a5,{namespace:_0x39dace,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x3177bd=_0x46ea8c;this[_0x3177bd(0x1ba)]=_0xab87a5,this['namespace']=_0x39dace,this[_0x3177bd(0x2ab)]=ttlMs,this[_0x3177bd(0x26b)]=heartbeatMs,this[_0x3177bd(0x281)]=null;}[_0x46ea8c(0x2d6)](){const _0x1d7e0e=_0x46ea8c;return this[_0x1d7e0e(0x1c1)](),(!this[_0x1d7e0e(0x281)]||this[_0x1d7e0e(0x1e3)]!==this[_0x1d7e0e(0x1ba)])&&(this[_0x1d7e0e(0x281)]=this[_0x1d7e0e(0x1ba)]['openDB'](_0x4e6018,{'dupSort':![]}),this[_0x1d7e0e(0x1e3)]=this[_0x1d7e0e(0x1ba)]),this[_0x1d7e0e(0x281)];}[_0x46ea8c(0x234)](){const _0x5a2ea0=_0x46ea8c;return this[_0x5a2ea0(0x1c1)](),(!this['_wantDbHandle']||this['_wantDbOf']!==this['_rawDb'])&&(this[_0x5a2ea0(0x24a)]=this[_0x5a2ea0(0x1ba)]['openDB'](_0x4e6018+_0x5a2ea0(0x1a0),{'dupSort':![]}),this[_0x5a2ea0(0x172)]=this['_rawDb']),this['_wantDbHandle'];}[_0x46ea8c(0x1dd)](){const _0x4a750d=_0x46ea8c,_0x9c2de9=this[_0x4a750d(0x1ba)]?.[_0x4a750d(0x1b7)];return _0x9c2de9==='closing'||_0x9c2de9===_0x4a750d(0x2c0);}[_0x46ea8c(0x1c1)](){const _0x17b594=_0x46ea8c;if(this[_0x17b594(0x1dd)]())throw new Error(_0x17b594(0x206));}[_0x46ea8c(0x33d)](_0x3ad570){const _0x25ab94=_0x46ea8c;return this[_0x25ab94(0x22c)]+':'+_0x3ad570;}[_0x46ea8c(0x1cc)](_0x42bcfc){const _0x53fe35=_0x46ea8c;try{if(this[_0x53fe35(0x1dd)]())return;_0x124fea?this[_0x53fe35(0x234)]()[_0x53fe35(0x22d)](this[_0x53fe35(0x33d)](_0x42bcfc),Date[_0x53fe35(0x1cf)]()):this[_0x53fe35(0x234)]()[_0x53fe35(0x134)](this[_0x53fe35(0x33d)](_0x42bcfc),Date[_0x53fe35(0x1cf)]())?.['catch']?.(()=>{});}catch{}}[_0x46ea8c(0x2e9)](_0x21e978,_0x3418ea=0x3e8){const _0x5e9015=_0x46ea8c;try{const _0x359104=this[_0x5e9015(0x234)]()[_0x5e9015(0x245)](this[_0x5e9015(0x33d)](_0x21e978));return typeof _0x359104===_0x5e9015(0x2f4)&&Date[_0x5e9015(0x1cf)]()-_0x359104<_0x3418ea;}catch{return![];}}['_isStale'](_0x5c433e){const _0x17b756=_0x46ea8c,_0x149095=_0x5c433e[_0x17b756(0x208)]??_0x5c433e[_0x17b756(0x26f)];return _0x149095+_0x5c433e[_0x17b756(0x2ab)]<Date[_0x17b756(0x1cf)]();}static[_0x46ea8c(0x1d6)](_0x68f7e7){const _0x37fe86=_0x46ea8c,_0xbd43ff=_0x68f7e7?.[_0x37fe86(0x160)];if(!_0xbd43ff||typeof _0xbd43ff['pid']!==_0x37fe86(0x2f4))return![];if(_0xbd43ff['hostname']!==_0x2fb108[_0x37fe86(0x15e)]())return![];if(_0xbd43ff[_0x37fe86(0x13a)]===process[_0x37fe86(0x13a)])return![];try{return process[_0x37fe86(0x2b3)](_0xbd43ff[_0x37fe86(0x13a)],0x0),![];}catch(_0x255f6b){return _0x255f6b[_0x37fe86(0x187)]===_0x37fe86(0x29f);}}async['tryAcquire'](_0x4c7efb,_0x12cc50={},_0x4a3fd8={}){const _0x23404e=_0x46ea8c,_0x2001ae=this[_0x23404e(0x33d)](_0x4c7efb),_0x58f5e3=_0x4a3fd8['ttlMs']??this[_0x23404e(0x2ab)],_0x53f25a=Date['now'](),_0x596d7e={'holder':{'pid':process[_0x23404e(0x13a)],'hostname':_0x2fb108[_0x23404e(0x15e)](),..._0x12cc50},'acquiredAt':_0x53f25a,'updatedAt':_0x53f25a,'ttlMs':_0x58f5e3};let _0x373be9=![],_0x52f796=null;if(this['_closed']())return{'acquired':![],'handle':null,'current':null};try{const _0x16f4e9=()=>{const _0x14c2f4=_0x23404e,_0x16e7f5=this[_0x14c2f4(0x2d6)]()[_0x14c2f4(0x245)](_0x2001ae);if(_0x16e7f5&&!this[_0x14c2f4(0x155)](_0x16e7f5)&&!_0x1a9c34['_holderDead'](_0x16e7f5)){const _0x18c7c4=_0x12cc50[_0x14c2f4(0x29b)]!=null&&_0x16e7f5[_0x14c2f4(0x160)][_0x14c2f4(0x13a)]===process['pid']&&_0x16e7f5[_0x14c2f4(0x160)]['processorId']===_0x12cc50['processorId'];if(!_0x18c7c4){_0x373be9=![],_0x52f796=_0x16e7f5;return;}_0x596d7e[_0x14c2f4(0x26f)]<=_0x16e7f5['acquiredAt']&&(_0x596d7e[_0x14c2f4(0x26f)]=_0x16e7f5[_0x14c2f4(0x26f)]+0x1,_0x596d7e[_0x14c2f4(0x208)]=_0x596d7e[_0x14c2f4(0x26f)]);}this[_0x14c2f4(0x2d6)]()[_0x14c2f4(0x134)](_0x2001ae,_0x596d7e),_0x373be9=!![],_0x52f796=_0x596d7e;};if(_0x124fea)this[_0x23404e(0x2d6)]()[_0x23404e(0x222)](_0x16f4e9);else await this['_db']()[_0x23404e(0x258)](_0x16f4e9);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x373be9)return{'acquired':![],'handle':null,'current':_0x52f796};const _0x3ce321=new _0xfe6ecd(this,_0x2001ae,_0x596d7e[_0x23404e(0x26f)]);return _0x3ce321[_0x23404e(0x25e)](_0x58f5e3,this[_0x23404e(0x26b)]),{'acquired':!![],'handle':_0x3ce321,'current':_0x52f796};}[_0x46ea8c(0x272)](_0x2229df){const _0x1a5dc8=_0x46ea8c;try{return this['_db']()['get'](this[_0x1a5dc8(0x33d)](_0x2229df))??null;}catch{return null;}}[_0x46ea8c(0x294)](){const _0x216ce2=_0x46ea8c,_0x4d15a7=this[_0x216ce2(0x22c)]+':',_0xcc375a=[];try{for(const {key:_0x4896a8,value:_0x1dc531}of this['_db']()[_0x216ce2(0x2dd)]({'start':_0x4d15a7,'end':_0x4d15a7+'\xff'})){typeof _0x4896a8===_0x216ce2(0x218)&&_0x4896a8[_0x216ce2(0x2c5)](_0x4d15a7)&&_0xcc375a['push']({'id':_0x4896a8[_0x216ce2(0x2d1)](_0x4d15a7[_0x216ce2(0x2b7)]),'entry':_0x1dc531});}}catch{}return _0xcc375a;}static[_0x46ea8c(0x317)](_0x3400ed){const _0x30a80b=_0x46ea8c,_0x3ff2a6=[];try{const _0x386a75=_0x3400ed[_0x30a80b(0x163)](_0x4e6018,{'dupSort':![]});for(const {key:_0x1b2423,value:_0x35e80a}of _0x386a75[_0x30a80b(0x2dd)]({})){if(typeof _0x1b2423!==_0x30a80b(0x218))continue;const _0x470a6e=_0x1b2423[_0x30a80b(0x276)](':');if(_0x470a6e<0x1)continue;_0x3ff2a6[_0x30a80b(0x22b)]({'namespace':_0x1b2423['slice'](0x0,_0x470a6e),'id':_0x1b2423[_0x30a80b(0x2d1)](_0x470a6e+0x1),'entry':_0x35e80a});}}catch{}return _0x3ff2a6;}}return okdbLock={'OKDBLock':_0x1a9c34},okdbLock;}function _0x70b3(){const _0x3a3f66=['instanceId','off',':want','_onItem','_rowKey','max','assign','txn:end','nodeKey','reject','isPrimary','SYSTEM_STOPPED','ms/','noteListenAddr','caps','disable','event','commitsPerSec','warn','null','license:activated','raw-remove','count','depth','_pending','status','schema:drop','listNodes','_rawDb','_outstanding','processor:retry','allSettled','floor','isDead','load','_assertUsable','_baselines','processor:error','set','_nodeDb','prototype','_adminRelay','_isWriter','http-server','procmode/','data','signalWant','_report','workers','now','_lock','type:registered','\x20pid=','maxExtra','[okdb-cluster]\x20change-feed\x20init\x20failed:\x20','schema:set','_holderDead','hard-killed','--inspect','_timer','okdb-writer:\x20env\x20closing\x20—\x20retry','bus:poke','flushDebounce','_closed','dropping','includes','listenAddr','_seen','publishChildRow','_lockDbOf','_getType','_cmd','engines','node:events','ms\x20p99=','publishOwnRow','dropIndex','_buildProcessingFacet','CHANGEFEED_QUANTUM','transaction','\x20writer{depth=','ITEM_PENDING','min','lifecycle','children','disconnect','isEnabled','dropSchema','splice','race','fn-runner','procmodeack/','bus:type_drop','listening','_inflight','_singletonLock','_clusterOrphanWatch','3okJZZj','cli','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','\x20\x20env=','_isReader','cluster-wide','stopping','okdb-lock:\x20env\x20closed','.log','updatedAt','__okdbSlot','mean','_collectSingletonClaims','values','_sampleOwnStats','processors','_singletonLocks','_versionSkewWarned','\x20@\x20','threads','sort','migrations','isActive','test','ttl:set','string','drain','onWindow','reset','exports','cpuWindowMs','_caps','perf_hooks','--watch','updateSupervisedChildStats','transactionSync','776876JXAyAc','okdb-writer[','raw-put','_handlePending','ms\x20(attempt\x20','getCmd','stderr','note','push','namespace','putSync','catch','SWAP','maxMs','draining','decommissioning','setupPrimary','_wantDb','beforeWrite','process','deaths','building','index:reset','getDesired','role','FTS_REGISTERED','quantum','_log','slot','once','setDesired','removeNode','stats','msg','get','view','_nodeDbCache','getClock','_desired','_wantDbHandle','__okdbCluster','recent\x20writes\x20(newest\x20first)','listen','\x20oldestPendingMs=','round','deregisterSelf','_publishNow','toFixed','parkedNow','env:opened','_openEnvLazy','_removeRowAsync','entry','childTransaction','system:poke','ENV_CLOSING_RETRY','\x0a===\x20OKDB_DIAG\x20','_admissionStarted','item:remove','_startHeartbeat','putNode','set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)','_kind','platform','error','runtimeProcessesView','killable','consecutiveFailures','removeSync','_nodeDead','createEnvironment','[okdb-cluster]\x20','heartbeatMs','_bpWaiters','_enqueuedAt','ttl:expired','acquiredAt','_groupByProcess','log','inspect','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','claimGated','\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20','indexOf','host','single','_coordinator','compaction','halted','keys','mode','license:removed','processorsView','_held','_lockDb','_committed','_bpParkedTotal','prependListener','freeze','okdb-diag.','paused','_buckets','item:create','_cursors','some','system:drain','resetting','env','_supervisorKey','_ownMeta','system:clock_change','license:added','hasDesired','list','unhandledRejection','split','release','send',')\x20exited\x20','1ofN:','processorId','cpus','_durs','ms\x20on\x20env=','ESRCH','dead','_systemEnv','abs','resetIndex','user','events','dumpedAt','_dedupeKey','exit','SYSTEM_PROC','SYSTEM_POKE','ttlMs','ORPHAN\x20(env-closed\x20write)','_writer','flushLmdb','label','claims','_maybePublish','heldBy','kill','_acquiredAt','_started','index:progress','length','3580095WAYeva','FTS_RESET','INDEX_READY','path','change','\x20statusEnv=','_startAdmission','enable','closed','supervisorKey','ms\x20activeWriters=','kind','find','startsWith','okdb','processing','view:progress','inst:','system:env_release','processor:ready','sandbox','execArgv','ITEM_UPDATE','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','hasOwnProperty','slice','from','6CGnjWh','respawnTimer','online','_db','registry\x20publish\x20failing:\x20','delete','trim','8032DvvnCE','primary','\x20ipc\x20error:\x20','getRange','env:removed','appendFileSync','afterWrite','_putRowAsync','_onStop','processKey','system:ready','_threadStats','running','default','startHeartbeat','isWanted','feed:','unique:violation','_quantum','_publishFailWarned','_heartbeatTimer','open','_nestedWarned','_windowCbs','confirm','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','number','_desiredOverlay','\x20===','\x20\x20#','message','INDEX_RESET','created','join','\x20\x20(no\x20env\x20draining)','\x20phase=','registry-publish','2287306YolECE','dedupeMax','uncaughtException','next','_handlePoke','node','~processes:desired','standalone','_onPoke','inflightAgesMs','_handleInProcess','ephemeral','(worst\x20','stopHeartbeat','item:update','clear','_envs','REMOVE','registerType','ms\x20max=','ready','\x20forked\x20','\x20worker\x20slot=','level','listAll','compact','_migrateVocab','singletonClaims','_putRowSync','bus:drain','unique:violation_resolved','_rootDb','system:bus_state_change','SIGKILL','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','FTS_DROP','getChanges','_markSeen','liveThreadStats','_children','_activateProcesses','map','__esModule','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','cursorKey','_heartbeatInFlight','mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.','crypto','toISOString','_nestedTotal','extend','_lastCpuUsage','\x20drainAge=','entries','\x0a\x20\x20\x20\x20\x20\x20','filter','uptime','startedAt','fts:registered','resolve',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','stop','_key','ITEM_CREATE','functions','_onPending','meta','add','unref','_pendingLocal','info','embedded','index:registered','~processes','node/','async','_startedAt','heapUsed','ITEM_REMOVE','listDesired','ingest','loop-lag',',\x20signal=','reduce','_selfKey','writerStatus','worker','bus:env_release','selfKey','fanout','offWindow','slotKey','processor:resumed','_drain','cluster:','shift','start','win32','_draining','\x20died\x20','parse','copy','unclaimed','_hbTimer','[okdb-cluster]\x20slot=','292876tVolsD','name',');\x20','node:perf_hooks','enabled','_ensureDesired','state','attachFeed','_drainOne','reap','_onProcEvent','participate','stringify','_collectWriterFacet','processor:progress','\x20(durable\x20desired-state)','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','heapTotal','ms\x20mean=','ppid','error:\x20','\x20│\x20','_done','has','_buildOwnRow','sync','\x20worker(s)\x20still\x20serving','fromEntries','version','write','put','_enableChangelog','~lock','_flushDebounce','options','system:proc','pid','stopped','--eval','remove','[okdb-cluster]\x20worker\x20pid=','_nodeDbFor','dropFts','started','ms\x20env=','waiting','loop-lag\x20','item:pending','attach','_scheduleFlush','_dedupeMax','_instanceId','system:type_drop','function','withPoolHold','[okdb-cluster]\x20primary\x20pid=',']:\x20transaction\x20ran\x20nested\x20inside\x20a\x20write\x20txn\x20held\x20open\x20by\x20a\x20non-writer\x20caller','index:drop','detachConsole','cpuPct','_onTick','percentile','rss','_isStale','then','_released','processes','instances','_statusEnv','close','~processes:cmd','committed','hostname','MAX_POOL_HOLDS','holder','memoryUsage','_buildChildRow','openDB','\x20while\x20this\x20process\x20runs\x20','setOwnMeta','isWorker','clusterStatusView','stack','_admissionTimer','connected','txn:rollback','cpuUsage','removeSupervisedChild','isConnected','starting','_processStartedAt','registerIndex','_wantDbOf','_lastCpuWindowMs','processingSig','\x20(slot=','cluster','3210522MClhtJ','_clusterWorkerAttached','system','_flushTimer','http','object','_lastCpuPct','flushed','3586740GhQUBq','pushEphemeral','_heldTotal','busy','INDEX_PROGRESS','expiresAt','envsOpen','repeat','code','setTtl','dropType','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','_highWater','--print','call','decommission','[okdb-cluster]\x20respawning\x20worker\x20slot=','3789dqggbJ','decommissioned','VIEW_PROGRESS','epoch','size','_refreshDesiredSnapshot','_lastPublishAt','_listenAddr','ms\x20busy=','oldestPendingMs','clearThreadStats','processor:paused','\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20','SYNC_COMMITS'];_0x70b3=function(){return _0x3a3f66;};return _0x70b3();}var version='2.5.0',require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x5c609f=_0x1f2bca;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x12226b=require$$0$3,_0x5022d3=require$$1$1,_0x1139e2=require$$2,{LOOP:_0x4e8e2c}=requireOkdbLoopMonitor(),{OKDBLock:_0x513caf}=requireOkdbLock(),{SYNC_COMMITS:_0x4fcfd1}=requireOkdbWriter(),_0x2aae72=_0x5c609f(0x348),_0x152022='node',_0x35404c=_0x5c609f(0x305),_0x4e28a1=_0x5c609f(0x15c),_0x21d492=(_0x53554d,_0x556d15)=>_0x53554d+':'+_0x556d15,_0x40a41e=(_0x429951,_0x5d5a80)=>_0x429951+'::'+_0x5d5a80,_0x2868ed=(_0x36fc2c,_0x18ff4a)=>_0x36fc2c+'/'+_0x18ff4a,_0x126f72=(_0x215658,_0x13af8b)=>_0x215658+'#'+_0x13af8b,_0x5cfd24=_0x33d5e1=>{const _0x53082a=_0x5c609f;if(_0x33d5e1?.[_0x53082a(0x2e3)])return _0x33d5e1['processKey'];const _0x1b4a5f=_0x33d5e1?.[_0x53082a(0x1a6)];return typeof _0x1b4a5f===_0x53082a(0x218)&&_0x1b4a5f[_0x53082a(0x1df)]('#')?_0x1b4a5f[_0x53082a(0x2d1)](0x0,_0x1b4a5f[_0x53082a(0x276)]('#')):_0x1b4a5f;},_0x208953=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x119659=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x5bc795=_0x208953*0x3,_0x18268e=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x5c609f(0x1a3)](0x927c0,_0x5bc795*0x14),_0x5b50c7=[_0x5c609f(0x376),_0x5c609f(0x2cb),_0x5c609f(0x1bc),_0x5c609f(0x1c3),_0x5c609f(0x19b),_0x5c609f(0x35b)];let _0x23efd7=null;function _0x5c5590(){const _0x33c1a4=_0x5c609f;if(_0x23efd7==null)_0x23efd7=Math[_0x33c1a4(0x24f)]((Date[_0x33c1a4(0x1cf)]()-process[_0x33c1a4(0x337)]()*0x3e8)/0x3e8)*0x3e8;return _0x23efd7;}function _0x3e193d(_0x489b33){const _0x55aed2=_0x5c609f;if(process.env.OKDB_PROCESS_KILL==='off')return![];if(_0x489b33?.[_0x55aed2(0x138)]?.[_0x55aed2(0x158)]&&typeof _0x489b33['options']['processes']==='object'&&_0x489b33[_0x55aed2(0x138)]['processes'][_0x55aed2(0x2b3)]===![])return![];return!![];}function _0x1dd7d1(_0x1d9d5c,_0x5c32c8){const _0xf8ad2a=_0x5c609f,_0x33378d=!!_0x5c32c8?.['processors'];switch(_0x1d9d5c){case _0xf8ad2a(0x2db):return{'controllable':_0x33378d,'decommissionable':![],'killable':!![],'killConfirm':_0xf8ad2a(0x204)};case'cli':case _0xf8ad2a(0x306):return{'controllable':_0x33378d,'decommissionable':![],'killable':!![],'killConfirm':_0xf8ad2a(0x2f2)};case _0xf8ad2a(0x346):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case'queue-worker':case _0xf8ad2a(0x1f8):case _0xf8ad2a(0x355):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x6866a6{constructor(_0x24f0ba){const _0x1e776e=_0x5c609f;this[_0x1e776e(0x2c6)]=_0x24f0ba,this['_statusEnv']=null,this['_desired']=null,this[_0x1e776e(0x2f5)]=new Map(),this[_0x1e776e(0x1e5)]=null,this['_isWriter']=![],this[_0x1e776e(0x203)]=![],this[_0x1e776e(0x170)]=_0x5c5590(),this['_selfKey']=_0x21d492(process['pid'],this[_0x1e776e(0x170)]),this[_0x1e776e(0x149)]=_0x1139e2['randomUUID']()[_0x1e776e(0x2d1)](0x0,0x8),this[_0x1e776e(0x1a2)]=_0x126f72(this['_selfKey'],this[_0x1e776e(0x149)]),this['_startedAt']=Date['now'](),this['_kind']=null,this[_0x1e776e(0x28f)]=null,this[_0x1e776e(0x197)]=null,this[_0x1e776e(0x366)]=null,this[_0x1e776e(0x372)]=null,this['_onTick']=null,this['_lastPublishAt']=0x0,this[_0x1e776e(0x290)]={},this['_children']=new Map(),this['_lastCpuUsage']=process[_0x1e776e(0x16c)](),this['_lastCpuAt']=Date['now'](),this[_0x1e776e(0x17d)]=0x0,this['_threadStats']=new Map();}get[_0x5c609f(0x357)](){const _0x1b3c75=_0x5c609f;return this[_0x1b3c75(0x353)];}get['rowKey'](){const _0x49ec18=_0x5c609f;return this[_0x49ec18(0x1a2)];}[_0x5c609f(0x21e)](_0x1937c8,_0x165bd8){const _0x2c9d21=_0x5c609f,_0x551ba0=_0x1dd7d1(_0x1937c8,_0x165bd8);if(_0x551ba0[_0x2c9d21(0x265)]&&!_0x3e193d(this[_0x2c9d21(0x2c6)]))return{..._0x551ba0,'killable':![],'killConfirm':undefined};return _0x551ba0;}[_0x5c609f(0x215)](){const _0x1fba1c=_0x5c609f;return!!this[_0x1fba1c(0x15a)];}[_0x5c609f(0x165)](_0x4fa565){const _0x693c27=_0x5c609f;Object[_0x693c27(0x1a4)](this['_ownMeta'],_0x4fa565||{});}[_0x5c609f(0x1ab)](_0x1d78f4){const _0x25ea89=_0x5c609f;if(_0x1d78f4)this[_0x25ea89(0x197)]=_0x1d78f4;}['register'](_0x45e910={}){const _0x3acc76=_0x5c609f;return this['okdb'][_0x3acc76(0x327)](_0x45e910);}['processingStatusView'](){const _0x3fb7ba=_0x5c609f,_0x122365={};let _0xccbdbe=0x0,_0x1b66ca=0x0;const _0x388bcd=new Set();for(const _0x12651a of this['listNodes']()){_0x1b66ca++;const _0xec0261=_0x12651a['processing'];if(!_0xec0261)continue;if(_0xec0261[_0x3fb7ba(0x373)])_0xccbdbe++;for(const _0x19b64a of _0xec0261[_0x3fb7ba(0x20e)]||[]){if(!['single',_0x3fb7ba(0x358)][_0x3fb7ba(0x1df)](_0x19b64a[_0x3fb7ba(0x27d)]))continue;(_0x19b64a[_0x3fb7ba(0x36e)]===_0x3fb7ba(0x2d5)||_0x19b64a[_0x3fb7ba(0x36e)]===_0x3fb7ba(0x238))&&_0x19b64a[_0x3fb7ba(0x32b)]&&_0x388bcd[_0x3fb7ba(0x342)]((_0x19b64a[_0x3fb7ba(0x28e)]||_0x3fb7ba(0x2e7))+':'+_0x19b64a[_0x3fb7ba(0x32b)]);const _0x14a810=_0x19b64a[_0x3fb7ba(0x28e)]||_0x3fb7ba(0x2e7);(_0x122365[_0x14a810]||=[])['push']({..._0x19b64a,'env':_0x14a810,'owner':{'pid':_0x12651a[_0x3fb7ba(0x13a)]??null,'kind':_0x12651a[_0x3fb7ba(0x2c3)]??null}});}}for(const [_0x100185,_0x38b9e3]of Object[_0x3fb7ba(0x334)](_0x122365)){for(const _0x1a5051 of _0x38b9e3){if(_0x1a5051[_0x3fb7ba(0x27d)]==='single'&&!_0x1a5051[_0x3fb7ba(0x274)]){const _0x59da62=_0x100185+':'+(_0x1a5051[_0x3fb7ba(0x32b)]??'');if(!_0x388bcd[_0x3fb7ba(0x12d)](_0x59da62))_0x1a5051[_0x3fb7ba(0x365)]=!![];}}}return{'envs':_0x122365,'policy':null,'participation':{'participating':_0xccbdbe,'total':_0x1b66ca},'source':_0x3fb7ba(0x1ce)};}[_0x5c609f(0x27f)](){const _0x59fdcc=_0x5c609f,_0x420ec4=_0x584b73=>{const _0x2b285a=_0x2789;if(_0x584b73[_0x2b285a(0x36e)]===_0x2b285a(0x2d5)||_0x584b73['state']===_0x2b285a(0x238)||_0x584b73['state']===_0x2b285a(0x263))return 0x3;if(_0x584b73['claimGated'])return 0x1;return 0x2;},_0x166ca6=new Map();for(const _0x4581d9 of this[_0x59fdcc(0x1b9)]()){for(const _0x339d9a of _0x4581d9[_0x59fdcc(0x2c7)]?.[_0x59fdcc(0x20e)]||[]){const _0xbf312d={..._0x339d9a,'owner':{'pid':_0x4581d9[_0x59fdcc(0x13a)]??null,'kind':_0x4581d9[_0x59fdcc(0x2c3)]??null,'host':_0x4581d9['host']??null}},_0x8e7897=_0x339d9a[_0x59fdcc(0x27d)]===_0x59fdcc(0x278)?_0x59fdcc(0x29a)+(_0x339d9a[_0x59fdcc(0x28e)]??'')+'::'+(_0x339d9a[_0x59fdcc(0x32b)]??_0x339d9a['type']??_0x339d9a['id']):_0x59fdcc(0x2c9)+(_0x4581d9[_0x59fdcc(0x1a6)]??_0x4581d9['processKey']??'')+'::'+(_0x339d9a[_0x59fdcc(0x28e)]??'')+'::'+_0x339d9a['id'],_0x3afa86=_0x166ca6['get'](_0x8e7897);if(!_0x3afa86||_0x420ec4(_0xbf312d)>_0x420ec4(_0x3afa86))_0x166ca6['set'](_0x8e7897,_0xbf312d);}}return[..._0x166ca6[_0x59fdcc(0x20c)]()];}[_0x5c609f(0x167)](){const _0xe34707=_0x5c609f,_0x4ef762=Date[_0xe34707(0x1cf)](),_0x38f807=this[_0xe34707(0x1b9)](),_0x30dbcd=_0x3f7286=>Math['max'](0x0,Math[_0xe34707(0x24f)]((_0x4ef762-(_0x3f7286[_0xe34707(0x338)]||_0x4ef762))/0x3e8)),_0x49bc17=_0x38f807[_0xe34707(0x2c4)](_0x545926=>_0x545926['kind']===_0xe34707(0x2db)),_0x25d278=_0x38f807[_0xe34707(0x336)](_0x5857ec=>_0x5857ec[_0xe34707(0x2c3)]===_0xe34707(0x1c9));if(_0x49bc17||_0x25d278[_0xe34707(0x2b7)])return{'primary':_0x49bc17?{'pid':_0x49bc17[_0xe34707(0x13a)],'uptime':_0x30dbcd(_0x49bc17)}:null,'workers':_0x25d278['map'](_0x50695e=>({'pid':_0x50695e['pid'],'uptime':_0x30dbcd(_0x50695e)})),'workersConfigured':_0x49bc17?.[_0xe34707(0x341)]?.['workersConfigured']??_0x25d278[_0xe34707(0x2b7)],'mode':_0xe34707(0x176)};const _0x5cc079=_0x38f807['find'](_0x583e48=>_0x583e48[_0xe34707(0x2c3)]===_0xe34707(0x200)||_0x583e48[_0xe34707(0x2c3)]==='standalone'||_0x583e48[_0xe34707(0x2c3)]===_0xe34707(0x346)),_0x338a74=_0x5cc079?{'pid':_0x5cc079[_0xe34707(0x13a)],'uptime':_0x30dbcd(_0x5cc079)}:{'pid':process[_0xe34707(0x13a)],'uptime':Math['max'](0x0,Math[_0xe34707(0x24f)](process[_0xe34707(0x337)]()))};return{'primary':_0x338a74,'workers':[_0x338a74],'workersConfigured':0x1,'mode':_0xe34707(0x278)};}['nodesView'](){const _0x14f954=_0x5c609f;return this[_0x14f954(0x270)]();}['treeView'](){const _0x1882e1=_0x5c609f,_0x40cf61=new Map();for(const _0xc0242c of this[_0x1882e1(0x270)]())_0x40cf61['set'](_0xc0242c[_0x1882e1(0x2e3)],{..._0xc0242c,'children':[]});const _0x5c18a1=[];for(const _0x29eaa4 of _0x40cf61[_0x1882e1(0x20c)]()){const _0x203e9c=_0x29eaa4['supervisorKey']?_0x40cf61[_0x1882e1(0x245)](_0x29eaa4[_0x1882e1(0x2c1)]):null;if(_0x203e9c&&_0x203e9c!==_0x29eaa4)_0x203e9c['children'][_0x1882e1(0x22b)](_0x29eaa4);else _0x5c18a1[_0x1882e1(0x22b)](_0x29eaa4);}const _0xf98203=(_0x8cffe8,_0x2f7ab9)=>_0x8cffe8['kind']===_0x2f7ab9[_0x1882e1(0x2c3)]?(_0x8cffe8['pid']||0x0)-(_0x2f7ab9[_0x1882e1(0x13a)]||0x0):(_0x8cffe8['kind']??'')<(_0x2f7ab9[_0x1882e1(0x2c3)]??'')?-0x1:0x1,_0x220818=_0x5b95fe=>{const _0xffb3e7=_0x1882e1;_0x5b95fe[_0xffb3e7(0x213)](_0xf98203);for(const _0x291b89 of _0x5b95fe)if(_0x291b89[_0xffb3e7(0x1f2)]['length'])_0x220818(_0x291b89[_0xffb3e7(0x1f2)]);};return _0x220818(_0x5c18a1),_0x5c18a1;}['getProcess'](_0x391636){const _0x56b65d=_0x5c609f;return this[_0x56b65d(0x270)]()[_0x56b65d(0x2c4)](_0x1a61a5=>_0x1a61a5[_0x56b65d(0x2e3)]===_0x391636)??null;}['_groupByProcess'](_0x483f2e=Date[_0x5c609f(0x1cf)]()){const _0x29b4de=_0x5c609f,_0x3a2e6b=new Map();for(const _0x3f4c1d of this[_0x29b4de(0x1b9)]()){const _0x23b89c=_0x5cfd24(_0x3f4c1d);let _0x4fe5bb=_0x3a2e6b[_0x29b4de(0x245)](_0x23b89c);!_0x4fe5bb&&(_0x4fe5bb={'processKey':_0x23b89c,'nodeKey':_0x23b89c,'pid':_0x3f4c1d[_0x29b4de(0x13a)],'ppid':_0x3f4c1d[_0x29b4de(0x129)]??null,'host':_0x3f4c1d[_0x29b4de(0x277)]??null,'kind':_0x3f4c1d[_0x29b4de(0x2c3)],'role':null,'supervisorKey':_0x3f4c1d[_0x29b4de(0x2c1)]??null,'slot':_0x3f4c1d[_0x29b4de(0x23f)]??null,'slotKey':_0x3f4c1d[_0x29b4de(0x35a)]??null,'caps':_0x3f4c1d[_0x29b4de(0x1ac)]??null,'lifecycle':_0x3f4c1d[_0x29b4de(0x1f1)]??null,'uptime':Math[_0x29b4de(0x1a3)](0x0,Math[_0x29b4de(0x24f)]((_0x483f2e-(_0x3f4c1d[_0x29b4de(0x338)]||_0x483f2e))/0x3e8)),'startedAt':_0x3f4c1d[_0x29b4de(0x338)]??null,'meta':_0x3f4c1d['meta']??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x3a2e6b[_0x29b4de(0x1c4)](_0x23b89c,_0x4fe5bb));_0x4fe5bb[_0x29b4de(0x159)]['push']({'instanceId':_0x3f4c1d[_0x29b4de(0x19e)]??null,'role':_0x3f4c1d[_0x29b4de(0x23b)]??null,'listenAddr':_0x3f4c1d[_0x29b4de(0x1e0)]??null,'lifecycle':_0x3f4c1d[_0x29b4de(0x1f1)]??null,'processing':_0x3f4c1d[_0x29b4de(0x2c7)]??null});if(!_0x4fe5bb[_0x29b4de(0x23b)]&&_0x3f4c1d['role'])_0x4fe5bb['role']=_0x3f4c1d[_0x29b4de(0x23b)];if(!_0x4fe5bb[_0x29b4de(0x1e0)]&&_0x3f4c1d[_0x29b4de(0x1e0)])_0x4fe5bb[_0x29b4de(0x1e0)]=_0x3f4c1d['listenAddr'];if(!_0x4fe5bb['processing']&&_0x3f4c1d[_0x29b4de(0x2c7)])_0x4fe5bb['processing']=_0x3f4c1d[_0x29b4de(0x2c7)];if(!_0x4fe5bb[_0x29b4de(0x1e6)]&&_0x3f4c1d[_0x29b4de(0x1e6)])_0x4fe5bb['engines']=_0x3f4c1d['engines'];if(!_0x4fe5bb[_0x29b4de(0x31a)]&&_0x3f4c1d['singletonClaims'])_0x4fe5bb[_0x29b4de(0x31a)]=_0x3f4c1d['singletonClaims'];if(_0x4fe5bb[_0x29b4de(0x1ac)]==null&&_0x3f4c1d[_0x29b4de(0x1ac)])_0x4fe5bb['caps']=_0x3f4c1d['caps'];if(_0x3f4c1d[_0x29b4de(0x243)]&&(!_0x4fe5bb[_0x29b4de(0x243)]||(_0x3f4c1d['stats']['at']??0x0)>(_0x4fe5bb[_0x29b4de(0x243)]['at']??0x0)))_0x4fe5bb[_0x29b4de(0x243)]=_0x3f4c1d['stats'];}return[..._0x3a2e6b[_0x29b4de(0x20c)]()];}[_0x5c609f(0x264)](){const _0xc03132=_0x5c609f,_0x7bced3=[],_0x20e894={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x5e3912 of this[_0xc03132(0x270)]()){_0x7bced3[_0xc03132(0x22b)]({'processKey':_0x5e3912[_0xc03132(0x2e3)],'kind':_0x5e3912[_0xc03132(0x2c3)],'pid':_0x5e3912[_0xc03132(0x13a)],'supervisorKey':_0x5e3912[_0xc03132(0x2c1)],'meta':_0x5e3912['meta']??null,'uptime':_0x5e3912['uptime'],'stats':_0x5e3912[_0xc03132(0x243)]??null}),_0x20e894[_0xc03132(0x158)]++;if(_0x5e3912[_0xc03132(0x243)]){_0x20e894['rss']+=_0x5e3912[_0xc03132(0x243)][_0xc03132(0x154)]||0x0,_0x20e894[_0xc03132(0x34c)]+=(_0x5e3912[_0xc03132(0x243)][_0xc03132(0x34c)]||0x0)+(_0x5e3912[_0xc03132(0x243)][_0xc03132(0x212)]?.[_0xc03132(0x34c)]||0x0);const _0x2bb675=_0x5e3912['stats']['threads'];_0x2bb675&&(_0x20e894['threads']['count']+=_0x2bb675[_0xc03132(0x1b4)]||0x0,_0x20e894[_0xc03132(0x212)]['sandbox']+=_0x2bb675[_0xc03132(0x2cc)]||0x0,_0x20e894[_0xc03132(0x212)]['busy']+=_0x2bb675['busy']||0x0);}}return{'totals':_0x20e894,'nodes':_0x7bced3};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x217aa1=_0x5c609f;this[_0x217aa1(0x1c8)]=this['_isWriter']||!!writer,this[_0x217aa1(0x203)]=this['_isReader']||!!reader,this[_0x217aa1(0x261)]=kind||this[_0x217aa1(0x261)]||(_0x5022d3[_0x217aa1(0x166)]?_0x217aa1(0x1c9):_0x217aa1(0x200)),this['_supervisorKey']=supervisorKey??this[_0x217aa1(0x28f)],this['_listenAddr']=listenAddr??this[_0x217aa1(0x197)],this[_0x217aa1(0x36d)](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x217aa1(0x15a)]){const _0x5a94bc=await this['okdb'][_0x217aa1(0x269)](_0x2aae72,{'sync':![],'durability':'fast'});await _0x5a94bc['ensureType'](_0x152022),this[_0x217aa1(0x15a)]=_0x5a94bc;}return this['_statusEnv'];}[_0x5c609f(0x1c5)](){const _0x449d0d=_0x5c609f;return this[_0x449d0d(0x13f)]!==this[_0x449d0d(0x15a)]&&(this[_0x449d0d(0x13f)]=this[_0x449d0d(0x15a)],this[_0x449d0d(0x247)]=this[_0x449d0d(0x15a)][_0x449d0d(0x1e4)](_0x152022)[_0x449d0d(0x1cb)]),this[_0x449d0d(0x247)];}[_0x5c609f(0x2e1)](_0x1d3a9e){const _0x29a725=_0x5c609f;if(_0x4fcfd1)return this[_0x29a725(0x1c5)]()[_0x29a725(0x22d)](_0x1d3a9e['nodeKey'],_0x1d3a9e,0x1);const _0x403651=this[_0x29a725(0x1c5)]()[_0x29a725(0x134)](_0x1d3a9e[_0x29a725(0x1a6)],_0x1d3a9e,0x1);if(_0x403651&&typeof _0x403651[_0x29a725(0x156)]===_0x29a725(0x14b))_0x403651['then'](undefined,()=>{});return _0x403651;}['_putRowSync'](_0xec80f7){const _0x50c1b0=_0x5c609f;return this[_0x50c1b0(0x1c5)]()[_0x50c1b0(0x22d)](_0xec80f7['nodeKey'],_0xec80f7,0x1);}['_removeRowAsync'](_0x49859e){const _0x14c0cb=_0x5c609f;if(_0x4fcfd1)try{return this[_0x14c0cb(0x1c5)]()[_0x14c0cb(0x267)](_0x49859e);}catch{return![];}const _0x2361ba=this[_0x14c0cb(0x1c5)]()[_0x14c0cb(0x13d)](_0x49859e);if(_0x2361ba&&typeof _0x2361ba[_0x14c0cb(0x156)]===_0x14c0cb(0x14b))_0x2361ba[_0x14c0cb(0x156)](undefined,()=>{});return _0x2361ba;}async[_0x5c609f(0x25f)](_0x55b6d9){const _0xb4a769=_0x5c609f;if(!this[_0xb4a769(0x15a)]||!this[_0xb4a769(0x1c8)]||!_0x55b6d9?.[_0xb4a769(0x1a6)])return;return this['_putRowAsync'](_0x55b6d9);}async[_0x5c609f(0x242)](_0x2e4fe4){const _0x4911ba=_0x5c609f;if(!this[_0x4911ba(0x15a)]||!this[_0x4911ba(0x1c8)]||!_0x2e4fe4)return;const _0x1f3a34=_0x2e4fe4[_0x4911ba(0x1df)]('#'),_0x518474=[];for(const {key:_0x2d9a8c}of this[_0x4911ba(0x15a)][_0x4911ba(0x2dd)](_0x152022)){if(_0x2d9a8c===_0x2e4fe4||!_0x1f3a34&&typeof _0x2d9a8c===_0x4911ba(0x218)&&_0x2d9a8c['startsWith'](_0x2e4fe4+'#'))_0x518474[_0x4911ba(0x22b)](_0x2d9a8c);}for(const _0xe246a5 of _0x518474){try{this[_0x4911ba(0x1c5)]()[_0x4911ba(0x267)](_0xe246a5);}catch{}}}[_0x5c609f(0x268)](_0x21b7e7){const _0x2c44bb=_0x5c609f;if(typeof _0x21b7e7?.[_0x2c44bb(0x13a)]!==_0x2c44bb(0x2f4))return![];if(_0x21b7e7[_0x2c44bb(0x277)]!==_0x12226b['hostname']())return![];if(_0x21b7e7['pid']===process[_0x2c44bb(0x13a)])return![];if(_0x21b7e7[_0x2c44bb(0x184)]!=null&&_0x21b7e7['expiresAt']<Date[_0x2c44bb(0x1cf)]()-_0x18268e)return!![];try{return process[_0x2c44bb(0x2b3)](_0x21b7e7[_0x2c44bb(0x13a)],0x0),![];}catch(_0x19345e){return _0x19345e[_0x2c44bb(0x187)]===_0x2c44bb(0x29f);}}['listNodes'](){const _0x242f99=_0x5c609f;if(!this[_0x242f99(0x15a)])return[];try{this['_statusEnv']['db']?.['resetReadTxn']?.();}catch{}const _0x4d10a2=Date['now'](),_0x1e5b4b=_0x12226b[_0x242f99(0x15e)](),_0x21c5ff=[];for(const {value:_0x119c82}of this[_0x242f99(0x15a)]['getRange'](_0x152022)){if(!_0x119c82)continue;let _0x674af0=null;_0x119c82[_0x242f99(0x277)]===_0x1e5b4b&&typeof _0x119c82[_0x242f99(0x13a)]==='number'&&(_0x674af0=!this['_nodeDead'](_0x119c82));if(_0x674af0===![])continue;const _0x3be0ea=_0x119c82[_0x242f99(0x184)]==null||_0x119c82[_0x242f99(0x184)]>=_0x4d10a2;if(_0x674af0===!![]||_0x3be0ea)_0x21c5ff[_0x242f99(0x22b)](_0x119c82);}return _0x21c5ff;}async[_0x5c609f(0x371)](_0x42cddf=0x0){const _0x471a31=_0x5c609f;if(!this[_0x471a31(0x15a)]||!this['_isWriter'])return;const _0x2e44f8=Date[_0x471a31(0x1cf)]()-_0x42cddf,_0x5450f4=new Set(),_0x14fd7b=[],_0x3c5fea=_0x12226b[_0x471a31(0x15e)](),_0x322f16=require$$6[_0x471a31(0x132)];for(const {key:_0x382499,value:_0x5b8328}of this['_statusEnv'][_0x471a31(0x2dd)](_0x152022)){if(!_0x5b8328)continue;const _0x303944=_0x5b8328[_0x471a31(0x277)]===_0x3c5fea&&typeof _0x5b8328[_0x471a31(0x13a)]===_0x471a31(0x2f4),_0x1a481a=_0x303944?this[_0x471a31(0x268)](_0x5b8328):_0x5b8328[_0x471a31(0x184)]!=null&&_0x5b8328[_0x471a31(0x184)]<_0x2e44f8;if(_0x1a481a)_0x14fd7b[_0x471a31(0x22b)](_0x382499);else{_0x5450f4[_0x471a31(0x342)](_0x5cfd24(_0x5b8328)??_0x382499);if(_0x5b8328['version']&&_0x5b8328[_0x471a31(0x132)]!==_0x322f16){if(!this[_0x471a31(0x210)])this[_0x471a31(0x210)]=new Set();!this[_0x471a31(0x210)][_0x471a31(0x12d)](_0x5b8328['version'])&&(this['_versionSkewWarned'][_0x471a31(0x342)](_0x5b8328[_0x471a31(0x132)]),this[_0x471a31(0x2c6)]['log']?.[_0x471a31(0x1b0)]?.('process\x20'+(_0x5b8328[_0x471a31(0x13a)]??'?')+_0x471a31(0x275)+_0x5b8328['version']+_0x471a31(0x164)+_0x322f16+'\x20—\x20'+_0x471a31(0x32d),{'feature':_0x471a31(0x214)}));}}}for(const _0xb099fe of _0x14fd7b)this[_0x471a31(0x256)](_0xb099fe);if(this[_0x471a31(0x36d)]()){const _0x3517b7=[];for(const {key:_0x48297d}of this[_0x471a31(0x34e)](_0x471a31(0x304))){if(!_0x5450f4[_0x471a31(0x12d)](_0x48297d)){if(_0x4fcfd1)try{this[_0x471a31(0x249)]['removeSync'](_0x471a31(0x349)+_0x48297d);}catch{}else _0x3517b7['push'](this[_0x471a31(0x249)]['remove'](_0x471a31(0x349)+_0x48297d));}}if(_0x3517b7[_0x471a31(0x2b7)])await Promise['allSettled'](_0x3517b7);}}[_0x5c609f(0x2e8)](_0x28b5d7=null){const _0x35469b=_0x5c609f;if(this['_hbTimer'])return;if(!this[_0x35469b(0x1c8)]||!this[_0x35469b(0x15a)]){this['okdb']?.['log']?.['warn']?.('registry\x20heartbeat\x20skipped\x20(writer='+this[_0x35469b(0x1c8)]+_0x35469b(0x2bd)+!!this[_0x35469b(0x15a)]+_0x35469b(0x33b),{'feature':_0x35469b(0x158)});return;}this[_0x35469b(0x152)]=_0x28b5d7,this[_0x35469b(0x372)]=()=>this[_0x35469b(0x2b1)]();for(const _0x3ff5b0 of _0x5b50c7)this[_0x35469b(0x2c6)][_0x35469b(0x2a5)]['on'](_0x3ff5b0,this[_0x35469b(0x372)]);this[_0x35469b(0x251)]();const _0x307fa7=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x208953;this['_hbTimer']=setInterval(()=>{const _0x5bc401=_0x35469b;if(this[_0x5bc401(0x152)])try{this[_0x5bc401(0x152)]();}catch{}this[_0x5bc401(0x251)](),this['reap']()['catch'](()=>{});},_0x307fa7);if(this['_hbTimer']['unref'])this[_0x35469b(0x366)][_0x35469b(0x343)]();}['_maybePublish'](){const _0x8a4715=_0x5c609f;if(!this[_0x8a4715(0x1c8)]||!this[_0x8a4715(0x15a)])return;if(Date[_0x8a4715(0x1cf)]()-this[_0x8a4715(0x196)]<_0x119659)return;this[_0x8a4715(0x251)]();}[_0x5c609f(0x251)](){const _0x3560fc=_0x5c609f;if(!this[_0x3560fc(0x1c8)]||!this['_statusEnv'])return;this[_0x3560fc(0x196)]=Date['now']();try{const _0x560bc6=[this[_0x3560fc(0x12e)]()];for(const _0x27c534 of this[_0x3560fc(0x326)][_0x3560fc(0x20c)]())_0x560bc6[_0x3560fc(0x22b)](this['_buildChildRow'](_0x27c534));const _0x24fe2c=_0x4e8e2c['enabled']?_0x4e8e2c[_0x3560fc(0x1cf)]():0x0;for(const _0x3915f5 of _0x560bc6){try{this[_0x3560fc(0x31b)](_0x3915f5),this[_0x3560fc(0x2ed)]=![];}catch(_0x8f631){!this[_0x3560fc(0x2ed)]&&(this[_0x3560fc(0x2ed)]=!![],this[_0x3560fc(0x2c6)]?.[_0x3560fc(0x271)]?.[_0x3560fc(0x1b0)]?.(_0x3560fc(0x2d7)+_0x8f631[_0x3560fc(0x2f8)],{'feature':_0x3560fc(0x158)}));}}if(_0x4e8e2c[_0x3560fc(0x36c)])_0x4e8e2c[_0x3560fc(0x22a)](_0x3560fc(0x2fe),_0x4e8e2c[_0x3560fc(0x1cf)]()-_0x24fe2c,'rows='+_0x560bc6[_0x3560fc(0x2b7)]+'\x20sync');}catch(_0x598ea6){!this[_0x3560fc(0x2ed)]&&(this['_publishFailWarned']=!![],this[_0x3560fc(0x2c6)]?.[_0x3560fc(0x271)]?.['warn']?.(_0x3560fc(0x2d7)+_0x598ea6[_0x3560fc(0x2f8)],{'feature':_0x3560fc(0x158)}));}}async[_0x5c609f(0x30c)](){const _0x3dabec=_0x5c609f;if(this[_0x3dabec(0x372)]){for(const _0x12cd6a of _0x5b50c7){try{this['okdb']['events'][_0x3dabec(0x19f)](_0x12cd6a,this[_0x3dabec(0x372)]);}catch{}}this['_onProcEvent']=null;}this[_0x3dabec(0x366)]&&(clearInterval(this['_hbTimer']),this[_0x3dabec(0x366)]=null);try{if(this[_0x3dabec(0x15a)]&&this[_0x3dabec(0x1c8)])await this[_0x3dabec(0x242)](this[_0x3dabec(0x1a2)]);}catch{}}async[_0x5c609f(0x250)](){const _0x1fb7ff=_0x5c609f;if(!this[_0x1fb7ff(0x15a)]||!this[_0x1fb7ff(0x1c8)])return;try{await this['removeNode'](this[_0x1fb7ff(0x1a2)]);}catch{}try{const _0xb6ed81=[];for(const {value:_0x4952a1}of this[_0x1fb7ff(0x15a)]['getRange'](_0x152022)){if(_0x4952a1?.['ppid']===process[_0x1fb7ff(0x13a)]&&_0x4952a1[_0x1fb7ff(0x1a6)])_0xb6ed81[_0x1fb7ff(0x22b)](_0x4952a1[_0x1fb7ff(0x1a6)]);}for(const _0x392014 of _0xb6ed81){try{await this[_0x1fb7ff(0x242)](_0x392014);}catch{}}}catch{}}async[_0x5c609f(0x1e9)](){const _0x54f927=_0x5c609f;return this[_0x54f927(0x25f)](this['_buildOwnRow']());}async[_0x5c609f(0x1e2)](_0x8151df){const _0x5befa5=_0x5c609f;if(!this[_0x5befa5(0x15a)]||!this[_0x5befa5(0x1c8)])return;return this['putNode'](this[_0x5befa5(0x162)](_0x8151df));}['_buildChildRow']({pid:_0x5008f3,startedAt:_0x1dfdca,kind:_0x370fb7,supervisorKey:_0x138f25,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x5c609f(0x2e6),meta:meta=null,stats:stats=null}){const _0x47dda4=_0x5c609f,_0x5bf381=Date[_0x47dda4(0x1cf)](),_0x2dd6d7=_0x21d492(_0x5008f3,_0x1dfdca);return{'nodeKey':_0x126f72(_0x2dd6d7,'0'),'processKey':_0x2dd6d7,'instanceId':'0','pid':_0x5008f3,'startedAt':_0x1dfdca,'ppid':process[_0x47dda4(0x13a)],'host':_0x12226b[_0x47dda4(0x15e)](),'supervisorKey':_0x138f25,'slot':slot,'slotKey':slotKey,'kind':_0x370fb7,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x5bf381,'expiresAt':_0x5bf381+_0x5bc795,'caps':this['_caps'](_0x370fb7,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async['addSupervisedChild'](_0x2f6989){const _0x2babc0=_0x5c609f;if(!_0x2f6989?.['pid'])return null;const _0x182cd5=_0x21d492(_0x2f6989['pid'],_0x2f6989[_0x2babc0(0x338)]);this[_0x2babc0(0x326)]['set'](_0x182cd5,{..._0x2f6989,'supervisorKey':_0x2f6989[_0x2babc0(0x2c1)]??this[_0x2babc0(0x353)]});if(this[_0x2babc0(0x1c8)])await this['publishChildRow'](this[_0x2babc0(0x326)][_0x2babc0(0x245)](_0x182cd5))[_0x2babc0(0x22e)]?.(()=>{});return _0x182cd5;}[_0x5c609f(0x16d)](_0x41994){const _0x39704a=_0x5c609f;if(!_0x41994)return;return this[_0x39704a(0x326)][_0x39704a(0x2d8)](_0x41994),this[_0x39704a(0x242)](_0x41994);}[_0x5c609f(0x20d)](){const _0x1ba546=_0x5c609f,_0x5c19bb=Date['now'](),_0x403034=process['cpuUsage'](),_0x40748f=(_0x5c19bb-this['_lastCpuAt'])*0x3e8;if(_0x40748f>=0x3d090){const _0x1a24f9=_0x403034[_0x1ba546(0x2a4)]-this['_lastCpuUsage'][_0x1ba546(0x2a4)]+(_0x403034[_0x1ba546(0x179)]-this[_0x1ba546(0x332)][_0x1ba546(0x179)]),_0x27f87e=_0x12226b[_0x1ba546(0x29c)]()[_0x1ba546(0x2b7)]||0x1;this[_0x1ba546(0x17d)]=Math['min'](0x64,Math[_0x1ba546(0x24f)](_0x1a24f9/(_0x40748f*_0x27f87e)*0x64)),this['_lastCpuWindowMs']=Math['round'](_0x40748f/0x3e8),this[_0x1ba546(0x332)]=_0x403034,this['_lastCpuAt']=_0x5c19bb;}const _0x5c943b=process[_0x1ba546(0x161)](),_0x4fd7a2=this[_0x1ba546(0x2e5)][_0x1ba546(0x194)];let _0xe02500=0x0;if(_0x4fd7a2>0x0){const _0x337f9b=[this[_0x1ba546(0x2c6)],...this[_0x1ba546(0x2c6)][_0x1ba546(0x30f)]?.[_0x1ba546(0x20c)]?.()??[]];for(const _0x263546 of _0x337f9b){const _0x417d72=_0x263546[_0x1ba546(0x33f)]?.['_sandbox'];if(_0x417d72)_0xe02500+=_0x417d72[_0x1ba546(0x325)][_0x1ba546(0x182)];}}let _0x184431=null;const _0x3ef376=_0x4fd7a2;if(_0x3ef376>0x0){let _0x5f5008=0x0;for(const _0x2d33a4 of this[_0x1ba546(0x2e5)][_0x1ba546(0x20c)]())_0x5f5008+=_0x2d33a4[_0x1ba546(0x34c)]||0x0;_0x184431={'count':_0x3ef376,'heapUsed':_0x5f5008,'sandbox':_0x4fd7a2,'busy':_0xe02500};}return{'rss':_0x5c943b[_0x1ba546(0x154)],'heapUsed':_0x5c943b[_0x1ba546(0x34c)],'heapTotal':_0x5c943b[_0x1ba546(0x379)],'external':_0x5c943b['external'],'cpuPct':this[_0x1ba546(0x17d)],'cpuWindowMs':this[_0x1ba546(0x173)]??null,'threads':_0x184431,'at':_0x5c19bb};}['reportThreadStats'](_0xb6e5c2,_0x1a1cdc){const _0x377539=_0x5c609f;if(!_0xb6e5c2||!_0x1a1cdc)return;this[_0x377539(0x2e5)][_0x377539(0x1c4)](_0xb6e5c2,_0x1a1cdc);}[_0x5c609f(0x19a)](_0x143483){const _0xbe1f08=_0x5c609f;this[_0xbe1f08(0x2e5)]['delete'](_0x143483);}[_0x5c609f(0x221)](_0x257ccf,_0x4faa62,_0x3a5160=undefined){const _0x1ebabe=_0x5c609f,_0x1d4107=this[_0x1ebabe(0x326)][_0x1ebabe(0x245)](_0x257ccf);if(!_0x1d4107||!_0x4faa62)return;if(_0x3a5160!==undefined)_0x1d4107[_0x1ebabe(0x2c7)]=_0x3a5160;_0x1d4107[_0x1ebabe(0x243)]={'rss':_0x4faa62[_0x1ebabe(0x154)]??null,'heapUsed':_0x4faa62['heapUsed']??null,'heapTotal':_0x4faa62[_0x1ebabe(0x379)]??null,'external':_0x4faa62['external']??null,'cpuPct':_0x4faa62[_0x1ebabe(0x151)]??null,'cpuWindowMs':_0x4faa62[_0x1ebabe(0x21d)]??null,'threads':_0x4faa62[_0x1ebabe(0x212)]??null,'claims':_0x4faa62[_0x1ebabe(0x2b0)]??null,'envsOpen':_0x4faa62[_0x1ebabe(0x185)]??null,'at':Date[_0x1ebabe(0x1cf)]()};}[_0x5c609f(0x12e)](){const _0x2db744=_0x5c609f,_0x28d6a8=Date[_0x2db744(0x1cf)](),_0x43787c=this[_0x2db744(0x2c6)]['_role']||{},_0x3a1053=this[_0x2db744(0x261)]||'cli';return{'nodeKey':this[_0x2db744(0x1a2)],'processKey':this[_0x2db744(0x353)],'instanceId':this[_0x2db744(0x149)],'pid':process[_0x2db744(0x13a)],'startedAt':this[_0x2db744(0x170)],'instanceStartedAt':this[_0x2db744(0x34b)],'ppid':typeof process[_0x2db744(0x129)]===_0x2db744(0x2f4)?process[_0x2db744(0x129)]:null,'host':_0x12226b[_0x2db744(0x15e)](),'supervisorKey':this[_0x2db744(0x28f)]??null,'version':require$$6['version'],'kind':_0x3a1053,'role':{'engines':!!_0x43787c[_0x2db744(0x1e6)],'processors':!!_0x43787c[_0x2db744(0x20e)],'compaction':_0x43787c[_0x2db744(0x27a)],'http':_0x43787c[_0x2db744(0x17b)]},'listenAddr':this['_listenAddr']??null,'heartbeatAt':_0x28d6a8,'expiresAt':_0x28d6a8+_0x5bc795,'caps':this['_caps'](_0x3a1053,_0x43787c),'lifecycle':{'state':_0x2db744(0x2e6),'desiredVersionApplied':null},'meta':{...this[_0x2db744(0x290)]},'processing':_0x43787c[_0x2db744(0x20e)]?this['_buildProcessingFacet']():null,'engines':_0x43787c[_0x2db744(0x1e6)]?[...this[_0x2db744(0x2c6)]['_servingEngines']??[]]:null,'singletonClaims':this['_collectSingletonClaims'](),'stats':this[_0x2db744(0x20d)](),'writers':this[_0x2db744(0x375)]()};}[_0x5c609f(0x375)](){const _0x23e63a=_0x5c609f,_0x552a90={};try{for(const [_0x2f091f,_0x125a06]of this['okdb']['_envs']){try{const _0x3a5c7e=_0x125a06[_0x23e63a(0x354)]?.();if(!_0x3a5c7e)continue;if(!_0x3a5c7e[_0x23e63a(0x1b5)]&&!_0x3a5c7e[_0x23e63a(0x15d)]&&!(_0x3a5c7e[_0x23e63a(0x253)]??0x0)&&!_0x3a5c7e[_0x23e63a(0x231)])continue;_0x552a90[_0x2f091f]={'depth':_0x3a5c7e[_0x23e63a(0x1b5)],'oldestPendingMs':_0x3a5c7e[_0x23e63a(0x199)],'committed':_0x3a5c7e[_0x23e63a(0x15d)],'commitsPerSec':_0x3a5c7e[_0x23e63a(0x1af)],'commitP99Ms':_0x3a5c7e['commitP99Ms'],'parkedNow':_0x3a5c7e[_0x23e63a(0x253)]??0x0,'draining':!!_0x3a5c7e[_0x23e63a(0x231)]};}catch{}}}catch{}return Object[_0x23e63a(0x27c)](_0x552a90)[_0x23e63a(0x2b7)]?_0x552a90:null;}[_0x5c609f(0x20b)](){const _0x5df75c=_0x5c609f,_0x11a449=process[_0x5df75c(0x13a)],_0x74a3f6=Date['now'](),_0x1f9c1c=_0x1763ba=>{const _0x273125=_0x5df75c;if(!_0x1763ba)return[];const _0x41df33=[];try{for(const {id:_0x3a9cb7,entry:_0x54892e}of _0x1763ba['list']()){if(_0x54892e?.[_0x273125(0x160)]?.[_0x273125(0x13a)]!==_0x11a449)continue;const _0x9a3740=_0x54892e[_0x273125(0x208)]??_0x54892e['acquiredAt']??0x0;if(_0x9a3740+(_0x54892e[_0x273125(0x2ab)]??0x0)<_0x74a3f6)continue;_0x41df33[_0x273125(0x22b)](_0x3a9cb7);}}catch{}return _0x41df33;},_0x490bed=_0x1f9c1c(this[_0x5df75c(0x1fd)](_0x5df75c(0x318))),_0x2d3779=_0x1f9c1c(this[_0x5df75c(0x1fd)](_0x5df75c(0x12f)));if(!_0x490bed['length']&&!_0x2d3779[_0x5df75c(0x2b7)])return null;return{'compact':_0x490bed,'replicate':_0x2d3779};}[_0x5c609f(0x1fd)](_0x2ebf3e){const _0x4a4bee=_0x5c609f;if(!this[_0x4a4bee(0x2c6)]?.['_rootDb'])return null;if(!this[_0x4a4bee(0x20f)])this[_0x4a4bee(0x20f)]=new Map();let _0x2740f6=this['_singletonLocks'][_0x4a4bee(0x245)](_0x2ebf3e);if(!_0x2740f6)try{_0x2740f6=new _0x513caf(this[_0x4a4bee(0x2c6)][_0x4a4bee(0x31e)],{'namespace':_0x2ebf3e}),this['_singletonLocks'][_0x4a4bee(0x1c4)](_0x2ebf3e,_0x2740f6);}catch{return null;}return _0x2740f6;}['_buildProcessingFacet'](){const _0x6672dc=_0x5c609f,_0x4f7a42=[];try{for(const [_0x458669,_0x4d96e0]of this['okdb'][_0x6672dc(0x30f)]){if(_0x458669[_0x6672dc(0x2c5)]('~'))continue;for(const _0x6b27f4 of _0x4d96e0['processor']['tierList']())_0x4f7a42[_0x6672dc(0x22b)]({..._0x6b27f4,'env':_0x458669});}}catch{}return{'participate':this[_0x6672dc(0x2c6)]['processors']?.['_participate']??![],'processors':_0x4f7a42};}[_0x5c609f(0x36d)](){const _0x33bc59=_0x5c609f;if(this[_0x33bc59(0x249)])return!![];const _0xf343e9=this[_0x33bc59(0x2c6)][_0x33bc59(0x31e)];if(!_0xf343e9)return![];return this['_desired']=_0xf343e9[_0x33bc59(0x163)](_0x35404c,{'dupSort':![]}),this[_0x33bc59(0x1e5)]=_0xf343e9['openDB'](_0x4e28a1,{'dupSort':![]}),!![];}async[_0x5c609f(0x319)](){const _0x1d4fc3=_0x5c609f;if(!this['_ensureDesired']())return;const _0x186d46='__vocab/version',_0x29b3bb=0x1,_0x339223=this[_0x1d4fc3(0x249)][_0x1d4fc3(0x245)](_0x186d46)??0x0;if(_0x339223>=_0x29b3bb)return;const _0x3cd27c=_0x25fb78=>{const _0x4adb01=_0x1d4fc3;if(_0x25fb78===_0x4adb01(0x355))return _0x4adb01(0x278);if(_0x25fb78===_0x4adb01(0x34a))return _0x4adb01(0x358);return _0x25fb78;};await this[_0x1d4fc3(0x2c6)][_0x1d4fc3(0x2a1)]['_writer'][_0x1d4fc3(0x1ed)](()=>{const _0x176345=_0x1d4fc3;for(const _0x33fcab of[_0x176345(0x1ca),_0x176345(0x1f9)]){for(const {key:_0xa1cfc1,value:_0x13746f}of this['_desired'][_0x176345(0x2dd)]({'start':_0x33fcab,'end':_0x33fcab+'\xff'})){if(typeof _0xa1cfc1!==_0x176345(0x218)||!_0xa1cfc1['startsWith'](_0x33fcab))break;const _0xd3a44d=_0x3cd27c(_0x13746f[_0x176345(0x27d)]);if(_0xd3a44d!==_0x13746f['mode'])this[_0x176345(0x249)]['put'](_0xa1cfc1,{..._0x13746f,'mode':_0xd3a44d});}}this[_0x176345(0x249)][_0x176345(0x134)](_0x186d46,_0x29b3bb);});}[_0x5c609f(0x293)](){const _0xfac2df=_0x5c609f;return!!this[_0xfac2df(0x249)];}['getDesired'](_0x4cb934,_0x34b8d6){const _0x330e9b=_0x5c609f;if(!this[_0x330e9b(0x36d)]())return null;const _0x102b64=_0x4cb934+'/'+_0x34b8d6;return this[_0x330e9b(0x195)](),this['_desiredOverlay'][_0x330e9b(0x245)](_0x102b64)??this[_0x330e9b(0x249)][_0x330e9b(0x245)](_0x102b64)??null;}[_0x5c609f(0x195)](){const _0x23072c=_0x5c609f;if(!_0x4fcfd1)return;try{this[_0x23072c(0x2c6)][_0x23072c(0x2a1)]?.['db']?.['resetReadTxn']?.();}catch{}}async[_0x5c609f(0x241)](_0x56f73a,_0x5cd80b,_0x6b5f1d){const _0x2585ed=_0x5c609f;if(!this[_0x2585ed(0x36d)]())return null;const _0x16cf2e=_0x56f73a+'/'+_0x5cd80b;this[_0x2585ed(0x195)]();const _0x2bed17=this[_0x2585ed(0x2f5)][_0x2585ed(0x245)](_0x16cf2e)??this[_0x2585ed(0x249)][_0x2585ed(0x245)](_0x16cf2e)??{'version':0x0},_0x333aff=(_0x2bed17[_0x2585ed(0x132)]||0x0)+0x1,_0x459005={..._0x2bed17,..._0x6b5f1d,'version':_0x333aff,'updatedAt':Date[_0x2585ed(0x1cf)]()};this['_desiredOverlay'][_0x2585ed(0x1c4)](_0x16cf2e,_0x459005);try{await this['okdb'][_0x2585ed(0x2a1)][_0x2585ed(0x2ad)][_0x2585ed(0x1ed)](()=>{const _0x5773f4=_0x2585ed;this[_0x5773f4(0x249)][_0x5773f4(0x134)](_0x16cf2e,_0x459005);});}finally{if(this[_0x2585ed(0x2f5)][_0x2585ed(0x245)](_0x16cf2e)===_0x459005)this[_0x2585ed(0x2f5)][_0x2585ed(0x2d8)](_0x16cf2e);}return _0x333aff;}['listDesired'](_0x18fce6){const _0x32bddc=_0x5c609f;if(!this['_ensureDesired']())return[];this['_refreshDesiredSnapshot']();const _0x4e0a20=_0x18fce6+'/',_0x588cb5=[];for(const {key:_0x24f883,value:_0x32b4fa}of this['_desired'][_0x32bddc(0x2dd)]({'start':_0x4e0a20,'end':_0x4e0a20+'\xff'})){if(typeof _0x24f883!==_0x32bddc(0x218)||!_0x24f883['startsWith'](_0x4e0a20))break;_0x588cb5['push']({'key':_0x24f883[_0x32bddc(0x2d1)](_0x4e0a20[_0x32bddc(0x2b7)]),'value':_0x32b4fa});}return _0x588cb5;}[_0x5c609f(0x228)](_0x5cd6c5){const _0x1f42ef=_0x5c609f;if(!this[_0x1f42ef(0x36d)]())return null;return this[_0x1f42ef(0x1e5)][_0x1f42ef(0x245)](_0x5cd6c5)??null;}async['bumpCmd'](_0x3fd104,_0x463469,_0x7dc0c4={}){const _0x4f9370=_0x5c609f;if(!this[_0x4f9370(0x36d)]())return null;let _0x190520;return await this['okdb'][_0x4f9370(0x2a1)]['_writer'][_0x4f9370(0x1ed)](()=>{const _0x2841cb=_0x4f9370,_0x3c6260=this['_cmd']['get'](_0x3fd104)||{'epoch':0x0};_0x190520=(_0x3c6260[_0x2841cb(0x193)]||0x0)+0x1,this[_0x2841cb(0x1e5)]['put'](_0x3fd104,{..._0x3c6260,..._0x7dc0c4,'cmd':_0x463469,'epoch':_0x190520,'updatedAt':Date[_0x2841cb(0x1cf)]()});}),_0x190520;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x6866a6,'nodeKey':_0x21d492,'logicalKey':_0x40a41e,'slotKey':_0x2868ed,'PROCESS_ENV':_0x2aae72,'NODE_TYPE':_0x152022},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x48c4c7=_0x1f2bca;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x37d774=require$$0$4,{EVENTS:_0x1a607b,CHANGE_ACTIONS:_0x2d4315}=requireOkdbEnums(),{LOOP:_0x3f960a}=requireOkdbLoopMonitor(),_0x2f198b=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x2582d5=0x5,_0x3ae284=0x2710;class _0x2700dd extends _0x37d774{constructor(_0x4d4c7e,_0x537ffd={}){const _0x2b73c3=_0x2789;super(),this[_0x2b73c3(0x2c6)]=_0x4d4c7e,this[_0x2b73c3(0x2ec)]=_0x537ffd[_0x2b73c3(0x23d)]??_0x2f198b,this[_0x2b73c3(0x137)]=_0x537ffd[_0x2b73c3(0x1dc)]??_0x2582d5,this[_0x2b73c3(0x148)]=_0x537ffd[_0x2b73c3(0x300)]??_0x3ae284,this[_0x2b73c3(0x2b5)]=![],this[_0x2b73c3(0x28a)]=new Map(),this['_baselines']=new Map(),this[_0x2b73c3(0x1b6)]=new Map(),this[_0x2b73c3(0x17a)]=null,this[_0x2b73c3(0x361)]=![],this['_seen']=new Set(),this[_0x2b73c3(0x344)]=new Set(),this['_onItem']=_0x1ac13f=>this[_0x2b73c3(0x309)](_0x1ac13f),this[_0x2b73c3(0x340)]=_0x40417a=>this[_0x2b73c3(0x226)](_0x40417a),this[_0x2b73c3(0x307)]=_0x18bb3a=>this['_handlePoke'](_0x18bb3a),this['_onStop']=()=>this['stop']();}[_0x48c4c7(0x35f)](){const _0x36da77=_0x48c4c7;if(this['_started'])return;this[_0x36da77(0x2b5)]=!![];for(const [_0x122243,_0x566771]of this[_0x36da77(0x2c6)][_0x36da77(0x30f)]){if(_0x122243[_0x36da77(0x2c5)]('~'))continue;try{_0x566771['_enableChangelog']();}catch{}}for(const [_0x1c9567,_0x45f28c]of this['okdb'][_0x36da77(0x30f)]){if(_0x1c9567[_0x36da77(0x2c5)]('~'))continue;try{this['_baselines'][_0x36da77(0x1c4)](_0x1c9567,_0x45f28c[_0x36da77(0x248)]()||0x0);}catch{}}const {events:_0x31c047}=this[_0x36da77(0x2c6)];_0x31c047['on'](_0x1a607b[_0x36da77(0x1ef)],this[_0x36da77(0x340)]),_0x31c047['on'](_0x1a607b[_0x36da77(0x33e)],this['_onItem']),_0x31c047['on'](_0x1a607b[_0x36da77(0x2ce)],this[_0x36da77(0x1a1)]),_0x31c047['on'](_0x1a607b['ITEM_REMOVE'],this[_0x36da77(0x1a1)]),_0x31c047['on'](_0x1a607b[_0x36da77(0x2aa)],this[_0x36da77(0x307)]),_0x31c047[_0x36da77(0x240)](_0x1a607b[_0x36da77(0x1a9)],this[_0x36da77(0x2e2)]);}[_0x48c4c7(0x33c)](){const _0x24cce1=_0x48c4c7;if(!this[_0x24cce1(0x2b5)])return;this[_0x24cce1(0x2b5)]=![];const {events:_0x2882e1}=this[_0x24cce1(0x2c6)];_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x1ef)],this[_0x24cce1(0x340)]),_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x33e)],this[_0x24cce1(0x1a1)]),_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x2ce)],this[_0x24cce1(0x1a1)]),_0x2882e1['off'](_0x1a607b[_0x24cce1(0x34d)],this['_onItem']),_0x2882e1['off'](_0x1a607b[_0x24cce1(0x2aa)],this[_0x24cce1(0x307)]);try{_0x2882e1[_0x24cce1(0x19f)](_0x1a607b[_0x24cce1(0x1a9)],this[_0x24cce1(0x2e2)]);}catch{}this[_0x24cce1(0x17a)]&&(clearTimeout(this[_0x24cce1(0x17a)]),this[_0x24cce1(0x17a)]=null),this[_0x24cce1(0x1b6)][_0x24cce1(0x30e)](),this[_0x24cce1(0x28a)][_0x24cce1(0x30e)](),this['_baselines'][_0x24cce1(0x30e)](),this[_0x24cce1(0x1e1)][_0x24cce1(0x30e)](),this[_0x24cce1(0x344)]['clear']();}[_0x48c4c7(0x2a7)](_0x30555e,_0x2472f2,_0x1cda1e,_0x26733c){return _0x30555e+'\x00'+_0x2472f2+'\x00'+_0x1cda1e+'\x00'+_0x26733c;}[_0x48c4c7(0x324)](_0x33df02,_0x5048ad,_0x598a48,_0x60910){const _0x373418=_0x48c4c7,_0x42c1f0=this[_0x373418(0x2a7)](_0x33df02,_0x5048ad,_0x598a48,_0x60910);if(this[_0x373418(0x1e1)][_0x373418(0x12d)](_0x42c1f0))return![];this[_0x373418(0x1e1)]['add'](_0x42c1f0);if(this[_0x373418(0x1e1)][_0x373418(0x194)]>this[_0x373418(0x148)]){const _0x5b47f8=this[_0x373418(0x1e1)][_0x373418(0x20c)]()[_0x373418(0x302)]()['value'];this['_seen'][_0x373418(0x2d8)](_0x5b47f8);}return!![];}['_handlePending'](_0xb61eaf){const _0x2beee5=_0x48c4c7;if(!this[_0x2beee5(0x2b5)]||!_0xb61eaf)return;const {env:_0x316182,type:_0x566203,key:_0x39e988,clock:_0x365a7f}=_0xb61eaf;if(_0x316182==null||_0x566203==null||_0x39e988==null)return;if(typeof _0x316182===_0x2beee5(0x218)&&_0x316182[_0x2beee5(0x2c5)]('~'))return;if(typeof _0x566203===_0x2beee5(0x218)&&_0x566203['startsWith']('~'))return;this[_0x2beee5(0x344)][_0x2beee5(0x342)](this[_0x2beee5(0x2a7)](_0x316182,_0x566203,_0x39e988,_0x365a7f)),this[_0x2beee5(0x344)][_0x2beee5(0x194)]>this[_0x2beee5(0x148)]&&this['_pendingLocal'][_0x2beee5(0x2d8)](this[_0x2beee5(0x344)][_0x2beee5(0x20c)]()[_0x2beee5(0x302)]()['value']);}['_handleInProcess'](_0x4f7ddc){const _0x4532ab=_0x48c4c7;if(!this['_started']||!_0x4f7ddc)return;const {env:_0x335cd6,type:_0x529f42,key:_0x3b612c,clock:_0x2985c2,origin:_0x1e7c70,action:_0xb1a3d4,newValue:_0x4cc843,oldValue:_0xbec5f1}=_0x4f7ddc;if(_0x335cd6==null||_0x529f42==null||_0x3b612c==null)return;if(typeof _0x335cd6==='string'&&_0x335cd6[_0x4532ab(0x2c5)]('~'))return;if(typeof _0x529f42===_0x4532ab(0x218)&&_0x529f42[_0x4532ab(0x2c5)]('~'))return;this['_pendingLocal']['delete'](this[_0x4532ab(0x2a7)](_0x335cd6,_0x529f42,_0x3b612c,_0x2985c2));if(!this[_0x4532ab(0x324)](_0x335cd6,_0x529f42,_0x3b612c,_0x2985c2))return;const _0xb02155=_0xb1a3d4===_0x2d4315[_0x4532ab(0x310)]?_0x4532ab(0x13d):'put';this['emit'](_0x4532ab(0x2bc),{'env':_0x335cd6,'type':_0x529f42,'key':_0x3b612c,'op':_0xb02155,'clock':_0x2985c2,'origin':_0x1e7c70,'value':_0xb02155==='remove'?null:_0x4cc843,'prevValue':_0xbec5f1});}[_0x48c4c7(0x303)](_0x5ae16e){const _0x50333f=_0x48c4c7;if(!this[_0x50333f(0x2b5)])return;if(!_0x5ae16e||typeof _0x5ae16e['env']!==_0x50333f(0x218)||typeof _0x5ae16e['type']!=='string')return;const {env:_0x35127e,type:_0x57ec96}=_0x5ae16e;if(_0x35127e[_0x50333f(0x2c5)]('~')||_0x57ec96['startsWith']('~'))return;this[_0x50333f(0x1b6)]['set'](_0x35127e+'\x00'+_0x57ec96,{'env':_0x35127e,'type':_0x57ec96}),this[_0x50333f(0x147)]();}[_0x48c4c7(0x147)](){const _0x36e2d2=_0x48c4c7;if(this['_flushTimer'])return;const _0xedc4f4=()=>{const _0x1dc9f7=_0x2789;this[_0x1dc9f7(0x17a)]=null,this['_drain']()[_0x1dc9f7(0x22e)](()=>{});};this[_0x36e2d2(0x17a)]=setTimeout(_0xedc4f4,this[_0x36e2d2(0x137)]>0x0?this[_0x36e2d2(0x137)]:0x0);}async[_0x48c4c7(0x35c)](){const _0x2803a0=_0x48c4c7;if(this[_0x2803a0(0x361)]){this[_0x2803a0(0x147)]();return;}this[_0x2803a0(0x361)]=!![];try{const _0x752f7c=[...this[_0x2803a0(0x1b6)][_0x2803a0(0x20c)]()];this['_pending'][_0x2803a0(0x30e)]();let _0x39c297=![];for(const {env:_0x265765,type:_0x536fd0}of _0x752f7c){try{const _0x53dc92=await this[_0x2803a0(0x370)](_0x265765,_0x536fd0);if(_0x53dc92)_0x39c297=!![];}catch{this[_0x2803a0(0x1b6)][_0x2803a0(0x1c4)](_0x265765+'\x00'+_0x536fd0,{'env':_0x265765,'type':_0x536fd0}),_0x39c297=!![];}}if(_0x39c297||this['_pending'][_0x2803a0(0x194)]>0x0)this[_0x2803a0(0x147)]();}finally{this['_draining']=![];}}async[_0x48c4c7(0x370)](_0x5e7473,_0x3dede5){const _0x550c1f=_0x48c4c7,_0x27646c=await this[_0x550c1f(0x2c6)][_0x550c1f(0x255)](_0x5e7473),_0xab8b24=_0x5e7473+'\x00'+_0x3dede5;!this['_cursors'][_0x550c1f(0x12d)](_0xab8b24)&&(!this['_baselines'][_0x550c1f(0x12d)](_0x5e7473)&&(_0x27646c[_0x550c1f(0x135)](),this['_baselines'][_0x550c1f(0x1c4)](_0x5e7473,_0x27646c[_0x550c1f(0x248)]()||0x0)),this['_cursors']['set'](_0xab8b24,this[_0x550c1f(0x1c2)][_0x550c1f(0x245)](_0x5e7473)));const _0x18e5a7=this['_cursors'][_0x550c1f(0x245)](_0xab8b24),_0x396398=_0x27646c['getClock'](_0x3dede5)||0x0;if(_0x396398<=_0x18e5a7)return![];const _0x5d1820=_0x18e5a7+this[_0x550c1f(0x2ec)],_0x3a336a=Math['min'](_0x396398,_0x5d1820),_0x507094=_0x3f960a[_0x550c1f(0x36c)]?_0x3f960a[_0x550c1f(0x1cf)]():0x0,_0x41036a=Array[_0x550c1f(0x2d2)](_0x27646c[_0x550c1f(0x323)](_0x3dede5,_0x18e5a7+0x1,_0x3a336a));let _0x3a294e=_0x18e5a7;for(const _0x2d9753 of _0x41036a){const {clock:_0x27bca9,key:_0x4d7153,action:_0x4c354f,origin:_0x34f162}=_0x2d9753;if(_0x27bca9>_0x3a294e)_0x3a294e=_0x27bca9;if(_0x4d7153==null)continue;if(this['_pendingLocal']['has'](this[_0x550c1f(0x2a7)](_0x5e7473,_0x3dede5,_0x4d7153,_0x27bca9)))continue;if(!this[_0x550c1f(0x324)](_0x5e7473,_0x3dede5,_0x4d7153,_0x27bca9))continue;let _0x715484,_0x551c08;if(_0x4c354f===_0x2d4315[_0x550c1f(0x310)])_0x715484=_0x550c1f(0x13d),_0x551c08=null;else{const _0x2af677=_0x27646c[_0x550c1f(0x245)](_0x3dede5,_0x4d7153);_0x2af677==null?(_0x715484=_0x550c1f(0x13d),_0x551c08=null):(_0x715484='put',_0x551c08=_0x2af677);}this['emit'](_0x550c1f(0x2bc),{'env':_0x5e7473,'type':_0x3dede5,'key':_0x4d7153,'op':_0x715484,'clock':_0x27bca9,'origin':_0x34f162,'value':_0x551c08});}if(_0x3f960a['enabled'])_0x3f960a[_0x550c1f(0x22a)](_0x550c1f(0x2ea)+_0x5e7473+':'+_0x3dede5,_0x3f960a[_0x550c1f(0x1cf)]()-_0x507094,'n='+_0x41036a[_0x550c1f(0x2b7)]);return this[_0x550c1f(0x28a)][_0x550c1f(0x1c4)](_0xab8b24,Math[_0x550c1f(0x1a3)](_0x3a294e,_0x3a336a)),_0x27646c[_0x550c1f(0x248)](_0x3dede5)>_0x3a336a;}[_0x48c4c7(0x1b7)](){const _0x5cb58c=_0x48c4c7;return{'started':this[_0x5cb58c(0x2b5)],'quantum':this[_0x5cb58c(0x2ec)],'flushDebounce':this[_0x5cb58c(0x137)],'cursors':Object[_0x5cb58c(0x131)]([...this[_0x5cb58c(0x28a)][_0x5cb58c(0x334)]()][_0x5cb58c(0x328)](([_0x3ce20f,_0x118eeb])=>[_0x3ce20f['replace']('\x00',':'),_0x118eeb])),'pending':this[_0x5cb58c(0x1b6)][_0x5cb58c(0x194)],'seen':this[_0x5cb58c(0x1e1)][_0x5cb58c(0x194)]};}}return _0x2700dd[_0x48c4c7(0x1ec)]=_0x2f198b,okdbChangefeed={'OKDBChangefeed':_0x2700dd},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x57631f=_0x1f2bca;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0xf2c981=require$$1$1,_0x58a900=require$$1,{EVENTS:_0x1eaa90}=requireOkdbEnums(),_0x48b894=require$$0$3,{slotKey:_0x225b86}=requireOkdbProcessRegistry(),_0xaceba1=Number(process.env.OKDB_CLUSTER_RESPAWN_BACKOFF_MS)||0xfa,_0x3eab39=0xfa0,_0x195d08=0x5,_0xf0d2a3=0x2710,_0xee7eed=0xbb8,_0x3645c9=0x7d0,_0x3f4fd0=_0x57631f(0x24b),_0x4d1859=_0x57631f(0x30a),_0x15544e='log',_0x3d1317='stats',_0x209f43=[_0x1eaa90[_0x57631f(0x192)],_0x1eaa90[_0x57631f(0x23c)],_0x1eaa90[_0x57631f(0x322)],_0x1eaa90[_0x57631f(0x2b9)],_0x1eaa90[_0x57631f(0x183)],_0x1eaa90[_0x57631f(0x2ba)],_0x1eaa90[_0x57631f(0x2f9)],_0x1eaa90['INDEX_REGISTERED'],_0x57631f(0x2cb),_0x57631f(0x376),_0x57631f(0x1c3),'processor:paused',_0x57631f(0x35b),'processor:retry'],_0x52564d=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0,_0x46e3fc=0x64;function _0x4a696b(_0x137caf){const _0x3debab=_0x57631f;if(!_0x137caf)return _0x3debab(0x1b1);const _0x40cb6f=(_0x137caf[_0x3debab(0x20e)]||[])[_0x3debab(0x328)](_0x3fb2b7=>[_0x3fb2b7[_0x3debab(0x28e)],_0x3fb2b7['id'],_0x3fb2b7[_0x3debab(0x27d)],_0x3fb2b7[_0x3debab(0x36e)],!!_0x3fb2b7[_0x3debab(0x287)],!!_0x3fb2b7[_0x3debab(0x365)],!!_0x3fb2b7[_0x3debab(0x274)],_0x3fb2b7[_0x3debab(0x2b2)]?.[_0x3debab(0x13a)]??null,_0x3fb2b7[_0x3debab(0x263)]?String(_0x3fb2b7[_0x3debab(0x263)]?.[_0x3debab(0x2f8)]??_0x3fb2b7[_0x3debab(0x263)]):null]);return JSON[_0x3debab(0x374)]([!!_0x137caf[_0x3debab(0x373)],_0x40cb6f]);}function _0x22aae5({workers:_0x1647c8,makeOkdb:_0x53cdd6,port:_0x1f7afd,primaryOkdb:_0x38c222,childEntry:childEntry=![],workerEnv:workerEnv=null,workerRole:workerRole=null,listenAddr:listenAddr=null}={}){const _0x56cc18=_0x57631f;if(_0xf2c981[_0x56cc18(0x1a8)])return childEntry&&_0xf2c981[_0x56cc18(0x233)]({'exec':_0x58a900[_0x56cc18(0x2fb)](__dirname,'okdb-http-worker-child.js'),'args':[],'execArgv':((()=>{const _0x215218=_0x56cc18,_0x5d79d4=[];for(let _0x1957d1=0x0;_0x1957d1<process[_0x215218(0x2cd)][_0x215218(0x2b7)];_0x1957d1++){const _0x453cbf=process[_0x215218(0x2cd)][_0x1957d1];if(_0x453cbf[_0x215218(0x2c5)]('--test')||_0x453cbf[_0x215218(0x2c5)](_0x215218(0x220))||_0x453cbf[_0x215218(0x2c5)](_0x215218(0x1d8)))continue;if(_0x453cbf==='-e'||_0x453cbf===_0x215218(0x13c)||_0x453cbf==='-p'||_0x453cbf===_0x215218(0x18c)){_0x1957d1++;continue;}_0x5d79d4[_0x215218(0x22b)](_0x453cbf);}return _0x5d79d4;})())}),_0x4092a6({'workers':_0x1647c8,'port':_0x1f7afd,'primaryOkdb':_0x38c222,'workerEnv':workerEnv,'workerRole':workerRole,'listenAddr':listenAddr??':'+_0x1f7afd});return _0x5d4555({'makeOkdb':_0x53cdd6,'port':_0x1f7afd});}function _0x4092a6({workers:_0x4aa27d,port:_0x35f3cf,primaryOkdb:_0x5dc233,workerEnv:_0x46f0de,workerRole:_0x1c1568,listenAddr:_0x2236ba}){const _0x512c2a=_0x57631f,_0x522fd2=new Map(),_0x197ba8=new Map();let _0x33b352=![];const _0x5e9732=_0x14cda0=>_0x14cda0?.[_0x512c2a(0x209)],_0x565ff6=_0x31df67=>{const _0x25f0cf=_0x512c2a,_0x389923=_0xf2c981['fork']({...process.env,..._0x46f0de||{},'OKDB_CLUSTER_SLOT':String(_0x31df67)});return _0x389923[_0x25f0cf(0x209)]=_0x31df67,_0x522fd2[_0x25f0cf(0x1c4)](_0x389923[_0x25f0cf(0x236)][_0x25f0cf(0x13a)],{'worker':_0x389923,'startedAt':Date[_0x25f0cf(0x1cf)](),'slot':_0x31df67}),_0x389923['on'](_0x25f0cf(0x263),_0x1c1915=>{const _0x5e5748=_0x25f0cf;console[_0x5e5748(0x271)](_0x5e5748(0x13e)+_0x389923['process']['pid']+_0x5e5748(0x2dc)+(_0x1c1915?.[_0x5e5748(0x2f8)]??_0x1c1915));}),_0x389923['on'](_0x25f0cf(0x2d5),()=>_0x157086()),_0x389923;},_0x4b8cfb=_0x413874=>{const _0x1ce1a9=_0x512c2a;for(const {worker:_0x1054f7}of _0x522fd2['values']()){if(_0x1054f7[_0x1ce1a9(0x1bf)]()||!_0x1054f7[_0x1ce1a9(0x16e)]())continue;try{_0x1054f7['send'](_0x413874);}catch{}}};_0x5dc233?.[_0x512c2a(0x327)]?.({'kind':_0x512c2a(0x2db),'listenAddr':_0x2236ba})[_0x512c2a(0x22e)](()=>{}),_0x5dc233?.[_0x512c2a(0x158)]?.[_0x512c2a(0x165)]?.({'workersConfigured':_0x4aa27d});const _0xc2610d={'engines':!![],'processors':!![],'compaction':!![],..._0x1c1568,'http':!![]},_0x157086=()=>{const _0x58ffcc=_0x512c2a,_0x4b3238=_0x5dc233?.[_0x58ffcc(0x158)];if(!_0x4b3238||!_0x4b3238[_0x58ffcc(0x1c8)])return;const _0x1af8df=_0x4b3238[_0x58ffcc(0x357)];for(const {worker:_0x2d0be7,startedAt:_0x224e09,slot:_0x517d5c,stats:_0x344749,processing:_0x10db51}of _0x522fd2[_0x58ffcc(0x20c)]()){if(_0x2d0be7['isDead']())continue;const _0x25b10a=_0x4b3238[_0x58ffcc(0x293)]?.()&&_0x4b3238[_0x58ffcc(0x23a)](_0x58ffcc(0x23f),_0x407fe5(_0x517d5c))?.[_0x58ffcc(0x18e)]===!![];_0x4b3238[_0x58ffcc(0x1e2)]({'pid':_0x2d0be7[_0x58ffcc(0x236)]['pid'],'startedAt':_0x224e09,'kind':_0x58ffcc(0x1c9),'supervisorKey':_0x1af8df,'slot':_0x517d5c,'slotKey':_0x407fe5(_0x517d5c),'role':_0xc2610d,'listenAddr':_0x2236ba,'lifecycle':_0x25b10a?_0x58ffcc(0x232):_0x58ffcc(0x2e6),'processing':_0x10db51??null,'stats':_0x344749??null})['catch'](()=>{});}},_0x407fe5=_0x5d0875=>_0x225b86(_0x512c2a(0x35d)+_0x35f3cf,_0x5d0875),_0x2746e2=_0x35748f=>{const _0x55f0db=_0x512c2a,_0x144d3f=_0x5dc233?.[_0x55f0db(0x158)];if(!_0x144d3f?.[_0x55f0db(0x293)]?.())return![];return _0x144d3f[_0x55f0db(0x23a)](_0x55f0db(0x23f),_0x407fe5(_0x35748f))?.[_0x55f0db(0x18e)]===!![];};for(let _0x56552c=0x0;_0x56552c<_0x4aa27d;_0x56552c++){const _0x42e3bf=_0x2746e2(_0x56552c);_0x197ba8[_0x512c2a(0x1c4)](_0x56552c,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x42e3bf,'respawnTimer':null}),_0x42e3bf?console[_0x512c2a(0x271)](_0x512c2a(0x367)+_0x56552c+_0x512c2a(0x378)):_0x565ff6(_0x56552c);}const _0x3b80c1=()=>{const _0x262b23=_0x512c2a,_0x130ae3=_0x5dc233?.[_0x262b23(0x158)];if(!_0x130ae3?.[_0x262b23(0x1c8)]||!_0x130ae3[_0x262b23(0x293)]?.())return;for(const [_0x45fa09,_0x3ad660]of _0x197ba8[_0x262b23(0x334)]()){const _0x500457=_0x130ae3[_0x262b23(0x23a)]('slot',_0x407fe5(_0x45fa09)),_0x4fbabd=_0x500457?.['decommission']===!![],_0x41cdf2=_0x500457?.[_0x262b23(0x2b3)]===!![];if(_0x4fbabd&&!_0x3ad660['dead']){_0x3ad660[_0x262b23(0x2a0)]=!![];_0x3ad660[_0x262b23(0x2d4)]&&(clearTimeout(_0x3ad660['respawnTimer']),_0x3ad660[_0x262b23(0x2d4)]=null);for(const {worker:_0x2d37cf}of _0x522fd2[_0x262b23(0x20c)]()){if(_0x5e9732(_0x2d37cf)!==_0x45fa09||_0x2d37cf[_0x262b23(0x1bf)]())continue;try{if(_0x41cdf2)_0x2d37cf[_0x262b23(0x236)][_0x262b23(0x2b3)](_0x262b23(0x320));else _0x2d37cf[_0x262b23(0x16e)]()&&_0x2d37cf[_0x262b23(0x1f3)]();}catch{}}console['log'](_0x262b23(0x26a)+(_0x41cdf2?_0x262b23(0x1d7):_0x262b23(0x191))+_0x262b23(0x315)+_0x45fa09+_0x262b23(0x377));}else{if(!_0x4fbabd&&_0x3ad660[_0x262b23(0x2a0)]&&_0x500457){_0x3ad660[_0x262b23(0x2a0)]=![],_0x3ad660[_0x262b23(0x237)]=[],_0x3ad660['consecutiveFailures']=0x0;const _0x41e81b=[..._0x522fd2[_0x262b23(0x20c)]()][_0x262b23(0x28b)](({worker:_0x2bbceb})=>_0x5e9732(_0x2bbceb)===_0x45fa09&&!_0x2bbceb[_0x262b23(0x1bf)]());!_0x41e81b&&!_0x33b352&&(_0x565ff6(_0x45fa09),console[_0x262b23(0x271)](_0x262b23(0x201)+_0x45fa09));}}}},_0x441d24=()=>{try{_0x3b80c1();}catch{}};_0x5dc233?.[_0x512c2a(0x2a5)]?.['on']?.(_0x1eaa90['SYSTEM_PROC'],_0x441d24);const _0xee6410=[];if(_0x5dc233?.['events']?.['on'])for(const _0x407328 of _0x209f43){const _0x48fcc7=_0x176372=>{_0x4b8cfb({[_0x3f4fd0]:_0x4d1859,'event':_0x407328,'data':_0x176372??{}});};_0x5dc233[_0x512c2a(0x2a5)]['on'](_0x407328,_0x48fcc7),_0xee6410[_0x512c2a(0x22b)]({'event':_0x407328,'handler':_0x48fcc7});}const _0x1d42f3=setInterval(()=>{_0x3b80c1(),_0x157086();},_0x52564d);_0x1d42f3['unref']?.();const _0x33b9fa=(_0x4f6502,_0x30c1ef)=>{const _0x4d8afc=_0x512c2a;if(!_0x30c1ef||typeof _0x30c1ef!=='object'||_0x30c1ef[_0x3f4fd0]!==_0x15544e)return;if(!_0x5dc233?.[_0x4d8afc(0x271)]?.[_0x4d8afc(0x34f)])return;const _0x3865a9=_0x30c1ef[_0x4d8afc(0x257)]||{};_0x5dc233[_0x4d8afc(0x271)][_0x4d8afc(0x34f)]({..._0x3865a9,'msg':'[w'+_0x30c1ef['slot']+']\x20'+(_0x3865a9[_0x4d8afc(0x244)]??''),'meta':{..._0x3865a9[_0x4d8afc(0x341)]||{},'worker':_0x30c1ef[_0x4d8afc(0x23f)],'workerPid':_0x30c1ef[_0x4d8afc(0x13a)]}});};_0xf2c981['on'](_0x512c2a(0x2f8),_0x33b9fa);const _0x1109b8=(_0x5224e4,_0xd9c17c)=>{const _0x177072=_0x512c2a;if(!_0xd9c17c||typeof _0xd9c17c!=='object'||_0xd9c17c[_0x3f4fd0]!==_0x3d1317)return;const _0x5e26f0=_0x522fd2[_0x177072(0x245)](_0x5224e4[_0x177072(0x236)][_0x177072(0x13a)]);if(_0x5e26f0){_0x5e26f0[_0x177072(0x243)]={..._0xd9c17c[_0x177072(0x243)],'at':Date[_0x177072(0x1cf)]()};if(_0xd9c17c[_0x177072(0x2c7)]!==undefined){const _0x2b04a9=_0x4a696b(_0xd9c17c[_0x177072(0x2c7)]);_0x2b04a9!==_0x5e26f0[_0x177072(0x174)]&&(_0x5e26f0[_0x177072(0x174)]=_0x2b04a9,_0x513202()),_0x5e26f0[_0x177072(0x2c7)]=_0xd9c17c['processing'];}}};let _0x584b47=null;const _0x513202=()=>{const _0x9be83d=_0x512c2a;if(_0x584b47||_0x33b352)return;_0x584b47=setTimeout(()=>{_0x584b47=null;if(!_0x33b352)_0x157086();},_0x46e3fc),_0x584b47[_0x9be83d(0x343)]?.();};_0xf2c981['on']('message',_0x1109b8),_0xf2c981['on'](_0x512c2a(0x2a8),(_0x1e552c,_0xd89518,_0xeb6af)=>{const _0xc81398=_0x512c2a,_0x3d8cb3=_0x1e552c[_0xc81398(0x236)][_0xc81398(0x13a)],_0x23f0c4=_0x5e9732(_0x1e552c),_0x2ba814=_0x522fd2[_0xc81398(0x245)](_0x3d8cb3);if(_0x2ba814&&_0x5dc233?.[_0xc81398(0x158)])_0x5dc233[_0xc81398(0x158)]['removeNode'](_0x3d8cb3+':'+_0x2ba814[_0xc81398(0x338)])['catch'](()=>{});_0x522fd2['delete'](_0x3d8cb3),console[_0xc81398(0x271)](_0xc81398(0x13e)+_0x3d8cb3+_0xc81398(0x175)+(_0x23f0c4??'?')+_0xc81398(0x299)+('(code='+_0xd89518+_0xc81398(0x351)+(_0xeb6af??'none')+_0xc81398(0x36a)+_0x522fd2[_0xc81398(0x194)]+'\x20worker(s)\x20remaining')),_0x157086();if(_0x33b352||_0x23f0c4==null)return;const _0x44a99a=_0x197ba8[_0xc81398(0x245)](_0x23f0c4);if(!_0x44a99a||_0x44a99a[_0xc81398(0x2a0)])return;const _0x58ad69=Date['now']();_0x44a99a['deaths'][_0xc81398(0x22b)](_0x58ad69),_0x44a99a[_0xc81398(0x237)]=_0x44a99a[_0xc81398(0x237)][_0xc81398(0x336)](_0x268fd6=>_0x58ad69-_0x268fd6<=_0xf0d2a3);if(_0x44a99a[_0xc81398(0x237)][_0xc81398(0x2b7)]>=_0x195d08){_0x44a99a[_0xc81398(0x2a0)]=!![],console[_0xc81398(0x263)]('[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot='+_0x23f0c4+_0xc81398(0x362)+_0x44a99a[_0xc81398(0x237)][_0xc81398(0x2b7)]+'\x20times\x20in\x20'+(_0xf0d2a3+'ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20'+_0x522fd2[_0xc81398(0x194)]+_0xc81398(0x130)));return;}_0x44a99a[_0xc81398(0x266)]++;const _0x4e48e0=Math[_0xc81398(0x1f0)](_0x3eab39,_0xaceba1*0x2**(_0x44a99a[_0xc81398(0x266)]-0x1));console['log'](_0xc81398(0x18f)+_0x23f0c4+'\x20in\x20'+_0x4e48e0+_0xc81398(0x227)+_0x44a99a['consecutiveFailures']+')'),_0x44a99a[_0xc81398(0x2d4)]=setTimeout(()=>{const _0x345cb8=_0xc81398;_0x44a99a[_0x345cb8(0x2d4)]=null;if(_0x33b352||_0x44a99a[_0x345cb8(0x2a0)])return;const _0x13325f=_0x565ff6(_0x23f0c4);_0x13325f[_0x345cb8(0x240)](_0x345cb8(0x1fb),()=>{const _0x517a9f=_0x345cb8;if(_0x197ba8[_0x517a9f(0x245)](_0x23f0c4)===_0x44a99a)_0x44a99a[_0x517a9f(0x266)]=0x0;});},_0x4e48e0),_0x44a99a[_0xc81398(0x2d4)]['unref']?.();});const _0x1007eb=[..._0x522fd2[_0x512c2a(0x27c)]()];console[_0x512c2a(0x271)](_0x512c2a(0x14d)+process[_0x512c2a(0x13a)]+_0x512c2a(0x314)+_0x4aa27d+'\x20HTTP\x20server(s)\x20on\x20port\x20'+_0x35f3cf+':\x20'+('['+_0x1007eb[_0x512c2a(0x2fb)](',\x20')+']'));const _0x462c5d={'_isClusterController':!![],'port':_0x35f3cf,'primaryOkdb':_0x5dc233??null,'status'(){const _0x995e38=_0x512c2a;return{'clustered':!![],'primaryPid':process[_0x995e38(0x13a)],'port':_0x35f3cf,'primaryRole':_0x5dc233?.['role']??null,'processorPid':null,'supervisorPid':process['pid'],'workers':[..._0x522fd2[_0x995e38(0x20c)]()][_0x995e38(0x328)](({worker:_0x86d3c9})=>({'pid':_0x86d3c9[_0x995e38(0x236)][_0x995e38(0x13a)],'id':_0x86d3c9['id'],'dead':_0x86d3c9['isDead']()}))};},async 'close'(){const _0x4b3f28=_0x512c2a;_0x33b352=!![];for(const _0x20b0b3 of _0x197ba8['values']()){_0x20b0b3['dead']=!![],_0x20b0b3['respawnTimer']&&(clearTimeout(_0x20b0b3['respawnTimer']),_0x20b0b3['respawnTimer']=null);}clearInterval(_0x1d42f3);_0x584b47&&(clearTimeout(_0x584b47),_0x584b47=null);_0xf2c981[_0x4b3f28(0x19f)](_0x4b3f28(0x2f8),_0x33b9fa),_0xf2c981[_0x4b3f28(0x19f)](_0x4b3f28(0x2f8),_0x1109b8),_0x5dc233?.[_0x4b3f28(0x2a5)]?.[_0x4b3f28(0x19f)]?.(_0x1eaa90[_0x4b3f28(0x2a9)],_0x441d24);if(_0x5dc233?.[_0x4b3f28(0x2a5)]?.[_0x4b3f28(0x19f)])for(const {event:_0xc29b9c,handler:_0x34d1bc}of _0xee6410){try{_0x5dc233['events'][_0x4b3f28(0x19f)](_0xc29b9c,_0x34d1bc);}catch{}}_0xee6410['length']=0x0;const _0x215f6c=[..._0x522fd2[_0x4b3f28(0x20c)]()][_0x4b3f28(0x328)](({worker:_0x24982c})=>_0x24982c);if(_0x215f6c['length']===0x0)return;await Promise['all'](_0x215f6c['map'](_0x47023c=>new Promise(_0x2179de=>{const _0x2da59d=_0x4b3f28;if(_0x47023c[_0x2da59d(0x1bf)]()){_0x2179de();return;}let _0x1c9c79=![];const _0x574843=()=>{if(_0x1c9c79)return;_0x1c9c79=!![];if(_0x2d01a7)clearTimeout(_0x2d01a7);_0x2179de();};_0x47023c[_0x2da59d(0x240)](_0x2da59d(0x2a8),_0x574843);const _0x2d01a7=setTimeout(()=>{const _0x221368=_0x2da59d;try{_0x47023c[_0x221368(0x236)][_0x221368(0x2b3)]();}catch{}},_0xee7eed+0x1f4);_0x2d01a7[_0x2da59d(0x343)]?.();try{_0x47023c[_0x2da59d(0x1f3)]();}catch{try{_0x47023c['process'][_0x2da59d(0x2b3)]();}catch{}}})));}};return _0x462c5d;}async function _0x5d4555({makeOkdb:_0x277d4d,port:_0x480953}){const _0x28057=_0x57631f,_0x3dda54=await _0x277d4d();return _0x301823(_0x3dda54),_0x3dda54[_0x28057(0x17b)][_0x28057(0x24d)](_0x480953);}function _0x301823(_0x3a457c){const _0x16094f=_0x57631f;if(!_0x3a457c||_0x3a457c['_clusterWorkerAttached'])return;_0x3a457c[_0x16094f(0x178)]=!![];try{const {OKDBChangefeed:_0x7156ac}=requireOkdbChangefeed(),_0x23c88f=_0x3a457c[_0x16094f(0x1c7)];if(_0x23c88f&&typeof _0x23c88f['attachFeed']===_0x16094f(0x14b)){const _0x55397f=new _0x7156ac(_0x3a457c);_0x55397f[_0x16094f(0x35f)](),_0x23c88f[_0x16094f(0x36f)](_0x55397f),_0x3a457c['_changefeed']=_0x55397f;}}catch(_0x254dd8){_0x3a457c[_0x16094f(0x271)]?.['warn']?.(_0x16094f(0x1d4)+(_0x254dd8?.[_0x16094f(0x2f8)]??_0x254dd8),{'feature':_0x16094f(0x176)});}const _0x12188a=_0x51eb97=>{const _0x4e6e9d=_0x16094f;if(!_0x51eb97||typeof _0x51eb97!==_0x4e6e9d(0x17c)||_0x51eb97[_0x3f4fd0]==null)return;if(_0x51eb97[_0x3f4fd0]===_0x4d1859)try{_0x3a457c['_adminRelay']?.[_0x4e6e9d(0x180)]?.(_0x51eb97[_0x4e6e9d(0x1ae)],_0x51eb97[_0x4e6e9d(0x1cb)]);}catch{}};process['on'](_0x16094f(0x2f8),_0x12188a),_0x3a457c['_clusterOnMessage']=_0x12188a;{let _0x4fe0c8=process[_0x16094f(0x16c)](),_0xc53f55=Date[_0x16094f(0x1cf)]();const _0x299ca3=()=>{const _0x3d897e=_0x16094f;if(typeof process[_0x3d897e(0x298)]!==_0x3d897e(0x14b)||!process['connected'])return;const _0x35ac23=Date[_0x3d897e(0x1cf)](),_0x4175e4=process['cpuUsage'](),_0x30bed5=(_0x35ac23-_0xc53f55)*0x3e8,_0x5b7ed7=_0x4175e4[_0x3d897e(0x2a4)]-_0x4fe0c8['user']+(_0x4175e4[_0x3d897e(0x179)]-_0x4fe0c8[_0x3d897e(0x179)]),_0x3c98fa=_0x30bed5>0x0?Math['min'](0x64,Math[_0x3d897e(0x24f)](_0x5b7ed7/(_0x30bed5*(_0x48b894['cpus']()[_0x3d897e(0x2b7)]||0x1))*0x64)):0x0;_0x4fe0c8=_0x4175e4,_0xc53f55=_0x35ac23;const _0x5b7572=process['memoryUsage']();let _0x2f17d3=null;try{_0x2f17d3=_0x3a457c['role']?.[_0x3d897e(0x20e)]?_0x3a457c[_0x3d897e(0x158)]?.[_0x3d897e(0x1eb)]?.()??null:null;}catch{}try{process[_0x3d897e(0x298)]({[_0x3f4fd0]:_0x3d1317,'stats':{'rss':_0x5b7572[_0x3d897e(0x154)],'heapUsed':_0x5b7572[_0x3d897e(0x34c)],'heapTotal':_0x5b7572[_0x3d897e(0x379)],'external':_0x5b7572['external'],'cpuPct':_0x3c98fa,'cpuWindowMs':Math[_0x3d897e(0x24f)](_0x30bed5/0x3e8)||null},'processing':_0x2f17d3});}catch{}},_0x2528be=Math[_0x16094f(0x1a3)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0xab814b=setInterval(_0x299ca3,_0x2528be);_0xab814b[_0x16094f(0x343)]?.(),_0x299ca3();for(const _0x58e17b of[_0x16094f(0x19b),_0x16094f(0x35b)]){_0x3a457c[_0x16094f(0x2a5)]?.['on']?.(_0x58e17b,()=>{try{_0x299ca3();}catch{}});}}let _0x459876=![];const _0x29a89f=async _0x49173f=>{const _0x413e83=_0x16094f;if(_0x459876)return;_0x459876=!![];const _0x4b1d13=setTimeout(()=>process['exit'](_0x49173f),_0xee7eed);_0x4b1d13[_0x413e83(0x343)]?.();try{await _0x3a457c[_0x413e83(0x15b)]?.();}catch{}process[_0x413e83(0x2a8)](_0x49173f);};process['on'](_0x16094f(0x1f3),()=>_0x29a89f(0x0));if(process[_0x16094f(0x298)]&&!process[_0x16094f(0x16a)])_0x29a89f(0x0);if(process[_0x16094f(0x262)]!==_0x16094f(0x360)){const _0x5de02c=setInterval(()=>{const _0x117a86=_0x16094f;if(process[_0x117a86(0x129)]===0x1)_0x29a89f(0x0);},_0x3645c9);_0x5de02c['unref']?.(),_0x3a457c[_0x16094f(0x1fe)]=_0x5de02c;}}return okdbCluster={'runClustered':_0x22aae5,'attachWorkerCluster':_0x301823},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x507ee2=_0x1f2bca;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x28e05d=require$$0$5,{attachWorkerCluster:_0x415acc}=requireOkdbCluster();async function _0x47ac3b(){const _0x3599f1=_0x2789,_0x1c7ff4=process.env.OKDB_HTTP_CHILD;if(!_0x1c7ff4)throw new Error(_0x3599f1(0x273));const {rootPath:_0x327736,port:_0x29e9c6,options:options={},logLevel:logLevel=_0x3599f1(0x345)}=JSON[_0x3599f1(0x363)](_0x1c7ff4);if(!_0x327736||!_0x29e9c6)throw new Error(_0x3599f1(0x2f3));const _0x873380=new _0x28e05d(_0x327736,{...options,'engines':![],'processors':![],'compaction':![]});_0x873380[_0x3599f1(0x271)][_0x3599f1(0x150)]?.();const _0x5f2f36=process.env.OKDB_CLUSTER_SLOT??'?',_0x5e3ed0={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x34d797=_0x5e3ed0[logLevel]??_0x5e3ed0['info'];_0x873380['log'][_0x3599f1(0x146)](_0x15370c=>{const _0x5cad6f=_0x3599f1;if((_0x5e3ed0[_0x15370c[_0x5cad6f(0x316)]]??0x1)<_0x34d797)return;try{process[_0x5cad6f(0x298)]?.({'__okdbCluster':_0x5cad6f(0x271),'slot':_0x5f2f36,'pid':process['pid'],'entry':_0x15370c});}catch{}}),await _0x873380[_0x3599f1(0x2ef)](),_0x415acc(_0x873380),await _0x873380[_0x3599f1(0x17b)][_0x3599f1(0x24d)](_0x29e9c6);}return _0x47ac3b()[_0x507ee2(0x22e)](_0x169272=>{const _0x82889e=_0x507ee2;try{process[_0x82889e(0x298)]?.({'__okdbCluster':_0x82889e(0x271),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process['pid'],'entry':{'level':_0x82889e(0x263),'msg':'http\x20worker\x20child\x20failed:\x20'+(_0x169272?.['message']??_0x169272)}});}catch{}process['exit'](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0x1f2bca(0x21c)]=okdbHttpWorkerChild;
1
+ 'use strict';const _0xa5e620=_0x70ef;(function(_0x422392,_0x3ecc48){const _0x54e20a=_0x70ef,_0x53d6e4=_0x422392();while(!![]){try{const _0x2deac1=-parseInt(_0x54e20a(0x2a8))/0x1+-parseInt(_0x54e20a(0x13e))/0x2*(parseInt(_0x54e20a(0x13a))/0x3)+parseInt(_0x54e20a(0x236))/0x4*(parseInt(_0x54e20a(0x230))/0x5)+-parseInt(_0x54e20a(0x131))/0x6+-parseInt(_0x54e20a(0xae))/0x7+parseInt(_0x54e20a(0xdc))/0x8*(parseInt(_0x54e20a(0x170))/0x9)+parseInt(_0x54e20a(0x1e2))/0xa;if(_0x2deac1===_0x3ecc48)break;else _0x53d6e4['push'](_0x53d6e4['shift']());}catch(_0x27372b){_0x53d6e4['push'](_0x53d6e4['shift']());}}}(_0x1e20,0xbdce7));var require$$0$5=require(_0xa5e620(0x246)),require$$1$1=require(_0xa5e620(0xc4)),require$$1=require(_0xa5e620(0x26a)),require$$0$3=require('os'),require$$2=require(_0xa5e620(0x290)),require$$0=require(_0xa5e620(0x2bc)),require$$0$2=require(_0xa5e620(0x8c)),require$$0$1=require('fs'),require$$0$4=require('node:events');function _0x70ef(_0x3b0300,_0x43cca7){_0x3b0300=_0x3b0300-0x83;const _0x1e2005=_0x1e20();let _0x70ef97=_0x1e2005[_0x3b0300];return _0x70ef97;}function getDefaultExportFromCjs(_0xaa5154){const _0x372f0e=_0xa5e620;return _0xaa5154&&_0xaa5154[_0x372f0e(0x1f9)]&&Object[_0x372f0e(0x17d)]['hasOwnProperty']['call'](_0xaa5154,'default')?_0xaa5154[_0x372f0e(0x209)]:_0xaa5154;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x2734ea=_0xa5e620;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x2b024c={'PUT':_0x2734ea(0x1bf),'REMOVE':_0x2734ea(0x21b),'INDEX_DROP':_0x2734ea(0x2b8),'INDEX_REGISTER':_0x2734ea(0x29f),'INDEX_RESET':_0x2734ea(0x2c9),'TYPE_REGISTER':_0x2734ea(0x1cf),'TYPE_DROP':'dropType','FTS_REGISTER':_0x2734ea(0x193),'FTS_DROP':_0x2734ea(0x1a0),'FTS_RESET':_0x2734ea(0x1ae),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x2734ea(0x207),'TTL_SET':_0x2734ea(0x148),'TTL_CLEAR':_0x2734ea(0xd0)},_0x71b2e2={'SYSTEM_READY':_0x2734ea(0x171),'FIELD_RESOLVER_REGISTERED':_0x2734ea(0x27a),'SYSTEM_STOPPED':_0x2734ea(0x127),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x2734ea(0x224),'SYSTEM_DRAIN':_0x2734ea(0x90),'SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x2734ea(0xe2),'SYSTEM_BUS_STATE_CHANGE':_0x2734ea(0x19b),'ITEM_CREATE':_0x2734ea(0xb5),'ITEM_UPDATE':_0x2734ea(0xe6),'ITEM_REMOVE':_0x2734ea(0x208),'ITEM_PENDING':_0x2734ea(0x1db),'INDEX_RESET':_0x2734ea(0x1c8),'INDEX_READY':_0x2734ea(0x8b),'INDEX_PROGRESS':_0x2734ea(0x136),'VIEW_PROGRESS':_0x2734ea(0x26b),'INDEX_DROP':_0x2734ea(0x101),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':'fts:registered','FTS_DROP':'fts:drop','FTS_RESET':_0x2734ea(0x23b),'SCHEMA_SET':_0x2734ea(0x15e),'SCHEMA_DROP':_0x2734ea(0x260),'UNIQUE_VIOLATION':_0x2734ea(0x2ad),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x2734ea(0x11b),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x2734ea(0xaf),'TXN_START':_0x2734ea(0x103),'TXN_END':_0x2734ea(0x13c),'TXN_ROLLBACK':_0x2734ea(0x14d),'TYPE_REGISTERED':_0x2734ea(0x84),'TYPE_DROP':_0x2734ea(0x10e),'ENV_OPENED':_0x2734ea(0x227),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0x2734ea(0x146),'TTL_EXPIRED':_0x2734ea(0x26d),'TTL_SET':_0x2734ea(0x282),'TTL_CLEAR':_0x2734ea(0x243),'LICENSE_INVALID':_0x2734ea(0xa2),'LICENSE_ADDED':_0x2734ea(0x2c6),'LICENSE_ACTIVATED':_0x2734ea(0x270),'LICENSE_REMOVED':_0x2734ea(0x100)},_0xb0889a={'CREATING':'creating','RESETTING':'resetting','READY':'ready','DROPPING':_0x2734ea(0x27f),'WAITING':_0x2734ea(0x168),'ERROR':_0x2734ea(0x110)},_0x18a086={'CREATED':_0x2734ea(0x237),'STARTING':_0x2734ea(0x102),'STARTED':_0x2734ea(0x13b),'STOPPING':_0x2734ea(0xcd),'STOPPED':'stopped'},_0x428e21={'CREATING':'creating','READY':_0x2734ea(0x231),'HALTED':'halted','STOPPED':'stopped','RESETTING':_0x2734ea(0x2b7)},_0x20ca6c=Object[_0x2734ea(0x296)]({'POKE':_0x2734ea(0x145),'DRAIN':'bus:drain','TYPE_DROP':_0x2734ea(0xbe),'PROC':'bus:proc','ENV_RELEASE':_0x2734ea(0x2bb)});return okdbEnums={'BUS_EVENTS':_0x20ca6c,'CHANGE_ACTIONS':_0x2b024c,'EVENTS':_0x71b2e2,'INDEX_STATE':_0xb0889a,'OKDB_STATE':_0x18a086,'VIEW_STATE':_0x428e21},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x2ace7f=_0xa5e620;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x54a114,performance:_0x3ea5f3}=require$$0,_0x273706=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x2ace7f(0x1d3),_0xedfad5=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x2b783d=process.env.OKDB_LOOP_LAG_ALL==='1',_0x4ce7fc=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x3059fe{constructor(){const _0xcd274a=_0x2ace7f;this['enabled']=_0x273706,this[_0xcd274a(0xdf)]=new Map(),this['_h']=null,this[_0xcd274a(0x26f)]=null,this[_0xcd274a(0x2a0)]=![],this[_0xcd274a(0x17c)]=(_0x26ab77,_0x1d237e)=>process[_0xcd274a(0x114)][_0xcd274a(0x22a)](_0x26ab77+(_0x1d237e?'\x20'+JSON[_0xcd274a(0x279)](_0x1d237e):'')+'\x0a');}['now'](){const _0x48d61c=_0x2ace7f;return _0x3ea5f3[_0x48d61c(0x1a7)]();}[_0x2ace7f(0x167)](_0x49810c){const _0x1ded4b=_0x2ace7f;if(typeof _0x49810c===_0x1ded4b(0xc0))this['_log']=_0x49810c;}['note'](_0x1faa80,_0x70ac65,_0x2f9b08){const _0x4ba4c6=_0x2ace7f;if(!this[_0x4ba4c6(0x1a6)])return;let _0x140d56=this[_0x4ba4c6(0xdf)][_0x4ba4c6(0x10c)](_0x1faa80);!_0x140d56&&(_0x140d56={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x4ba4c6(0xdf)][_0x4ba4c6(0x198)](_0x1faa80,_0x140d56)),_0x140d56['ms']+=_0x70ac65,_0x140d56['count']+=0x1,_0x70ac65>_0x140d56[_0x4ba4c6(0x143)]&&(_0x140d56[_0x4ba4c6(0x143)]=_0x70ac65,_0x140d56[_0x4ba4c6(0x169)]=_0x2f9b08||'');}[_0x2ace7f(0xc3)](_0x27f0d8){const _0x19262e=_0x2ace7f;if(!this[_0x19262e(0x1a6)]||this[_0x19262e(0x2a0)])return;this[_0x19262e(0x2a0)]=!![];if(_0x27f0d8)this[_0x19262e(0x17c)]=_0x27f0d8;this['_h']=_0x54a114({'resolution':0xa}),this['_h'][_0x19262e(0x1ba)](),this[_0x19262e(0x26f)]=setInterval(()=>this['_report'](),_0xedfad5);if(this[_0x19262e(0x26f)][_0x19262e(0x187)])this[_0x19262e(0x26f)][_0x19262e(0x187)]();}['onWindow'](_0x38d8d8){const _0x3523c8=_0x2ace7f;if(!this['_windowCbs'])this['_windowCbs']=new Set();this[_0x3523c8(0x26c)][_0x3523c8(0x1f0)](_0x38d8d8);if(!this[_0x3523c8(0x2a0)])this['_startAdmission']();}['offWindow'](_0x2a7558){const _0x51bf44=_0x2ace7f;this[_0x51bf44(0x26c)]?.[_0x51bf44(0x200)](_0x2a7558);}[_0x2ace7f(0x205)](){const _0x78cf03=_0x2ace7f;if(this[_0x78cf03(0x1b5)])return;this[_0x78cf03(0x1b5)]=!![];!this['_h']&&(this['_h']=_0x54a114({'resolution':0xa}),this['_h']['enable']());const _0x1e1fc4=_0xedfad5;this[_0x78cf03(0x160)]=setInterval(()=>{const _0x3cdef1=_0x78cf03,_0x2b2125=this['_h'];if(!_0x2b2125)return;const _0x52b413=_0x2b2125[_0x3cdef1(0x26e)](0x63)/0xf4240,_0xe53e0c=_0x2b2125['max']/0xf4240,_0x39d109=_0x2b2125[_0x3cdef1(0x14f)]/0xf4240;_0x2b2125[_0x3cdef1(0xe7)]();if(this['_windowCbs'])for(const _0x291e36 of this[_0x3cdef1(0x26c)]){try{_0x291e36({'p99Ms':_0x52b413,'maxMs':_0xe53e0c,'meanMs':_0x39d109,'reportMs':_0x1e1fc4});}catch{}}},_0x1e1fc4);if(this[_0x78cf03(0x160)][_0x78cf03(0x187)])this[_0x78cf03(0x160)][_0x78cf03(0x187)]();}[_0x2ace7f(0x1ee)](){const _0x3e4b15=_0x2ace7f,_0x33fc37=this['_h'],_0x5a58f0=_0x33fc37['max']/0xf4240,_0x5254b4=_0x33fc37[_0x3e4b15(0x26e)](0x63)/0xf4240,_0x5c1dc9=_0x33fc37['mean']/0xf4240;_0x33fc37[_0x3e4b15(0xe7)]();const _0x2478fd=[...this[_0x3e4b15(0xdf)]['entries']()][_0x3e4b15(0xcc)](([_0x38121f,_0x57b5bd])=>({'label':_0x38121f,..._0x57b5bd}))[_0x3e4b15(0x117)]((_0x46fa05,_0x4c8aab)=>_0x4c8aab['ms']-_0x46fa05['ms'])['slice'](0x0,0x8);this['_buckets']['clear']();const _0x5e709f=_0x2478fd[_0x3e4b15(0x1d2)]((_0x23c1f4,_0x452924)=>_0x23c1f4+_0x452924['ms'],0x0),_0x368a70=_0x2478fd['map'](_0x3fe2e1=>_0x3fe2e1[_0x3e4b15(0x11a)]+'='+_0x3fe2e1['ms']['toFixed'](0x0)+_0x3e4b15(0xf5)+_0x3fe2e1['count']+(_0x3fe2e1[_0x3e4b15(0x143)]>0x5?_0x3e4b15(0xf8)+_0x3fe2e1[_0x3e4b15(0x143)][_0x3e4b15(0x177)](0x0)+'ms'+(_0x3fe2e1[_0x3e4b15(0x169)]?'\x20'+_0x3fe2e1[_0x3e4b15(0x169)]:'')+')':''));(_0x2b783d||_0x5a58f0>=_0x4ce7fc)&&this[_0x3e4b15(0x17c)](_0x3e4b15(0x154)+_0xedfad5+'ms\x20max='+_0x5a58f0[_0x3e4b15(0x177)](0x0)+_0x3e4b15(0x23f)+_0x5254b4['toFixed'](0x0)+_0x3e4b15(0x24a)+_0x5c1dc9[_0x3e4b15(0x177)](0x0)+'ms\x20busy='+_0x5e709f[_0x3e4b15(0x177)](0x0)+'ms'+(_0x368a70['length']?_0x3e4b15(0x252)+_0x368a70['join']('\x20\x20'):''),{'feature':_0x3e4b15(0x245)});if(this[_0x3e4b15(0x26c)])for(const _0x437f5c of this[_0x3e4b15(0x26c)]){try{_0x437f5c({'p99Ms':_0x5254b4,'maxMs':_0x5a58f0,'meanMs':_0x5c1dc9,'reportMs':_0xedfad5});}catch{}}}['stop'](){const _0x4163dc=_0x2ace7f;if(this[_0x4163dc(0x26f)])clearInterval(this[_0x4163dc(0x26f)]);if(this['_h'])this['_h'][_0x4163dc(0x9f)]();this['_timer']=null,this['_h']=null,this[_0x4163dc(0x2a0)]=![];}}const _0x2ce79c=new _0x3059fe();if(_0x2ce79c[_0x2ace7f(0x1a6)])_0x2ce79c[_0x2ace7f(0xc3)]();return okdbLoopMonitor={'LOOP':_0x2ce79c},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x4038f7=require$$0$1,_0x43ac5c=require$$1;let _0x76f68a,_0x759919,_0x43b536,_0x1b6922,_0x553a1d,_0x386e92,_0x5c90af,_0x2c24bf=![];const _0x2d987a=new Set();let _0x410411=null;const _0x1eb853=new Map();function _0x1b742e(){const _0x2de970=_0x70ef;if(_0x76f68a!==undefined)return _0x76f68a;_0x76f68a=process.env.OKDB_DIAG==='1';if(!_0x76f68a)return![];_0x759919=process.env.OKDB_DIAG_STACK==='1',_0x1b6922=Math[_0x2de970(0x293)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x43b536=new Array(_0x1b6922),_0x553a1d=0x0,_0x386e92=0x0,_0x5c90af=process.env.OKDB_DIAG_DIR||null;if(_0x5c90af)try{_0x4038f7[_0x2de970(0x272)](_0x5c90af,{'recursive':!![]});}catch{}return!![];}function _0x15bd6(){return _0x76f68a===undefined?_0x1b742e():_0x76f68a;}function _0x3991b1(_0x11e61e,_0x2d9e3e){const _0x562c82=_0x70ef;if(_0x76f68a===undefined?!_0x1b742e():!_0x76f68a)return;let _0x2fb1ec;if(_0x759919){const _0x448301=new Error()[_0x562c82(0xba)]||'';_0x2fb1ec=_0x448301[_0x562c82(0x2ba)]('\x0a')[_0x562c82(0x219)](0x3)[_0x562c82(0xcc)](_0x44cdb9=>_0x44cdb9[_0x562c82(0x1a1)]())[_0x562c82(0xda)](Boolean)[_0x562c82(0x219)](0x0,0x8);}_0x43b536[_0x553a1d]={'seq':_0x386e92++,'t':Date[_0x562c82(0x1a7)](),'env':_0x11e61e,'kind':_0x2d9e3e||_0x562c82(0x1ec),'stack':_0x2fb1ec},_0x553a1d=(_0x553a1d+0x1)%_0x1b6922;}function _0xfc425f(_0x18d13d){const _0xef527e=_0x70ef,_0x5bae21=[];for(let _0x48159f=0x0;_0x48159f<_0x1b6922;_0x48159f++){const _0x2d9ce0=_0x43b536[(_0x553a1d-0x1-_0x48159f+_0x1b6922*0x2)%_0x1b6922];if(!_0x2d9ce0)continue;_0x5bae21[_0xef527e(0x206)](_0x2d9ce0);if(_0x5bae21['length']>=_0x18d13d)break;}return _0x5bae21;}function _0x326abf(_0x50b74d){const _0x57d4de=_0x70ef;try{process[_0x57d4de(0x114)][_0x57d4de(0x22a)](_0x50b74d+'\x0a');}catch{}if(_0x5c90af)try{_0x4038f7[_0x57d4de(0xb8)](_0x43ac5c[_0x57d4de(0xf4)](_0x5c90af,_0x57d4de(0x2ae)+process[_0x57d4de(0x1c1)]+'.log'),_0x50b74d+'\x0a');}catch{}}function _0x162898(_0x2dd77e){const _0x51eed1=_0x70ef,_0x5a856b=_0xfc425f(_0x2dd77e);if(!_0x5a856b['length'])return _0x51eed1(0x226);const _0x2dcafc=Date['now']();return _0x5a856b[_0x51eed1(0xcc)](_0x482f60=>{const _0x5f0c59=_0x51eed1,_0x471420='\x20\x20#'+_0x482f60['seq']+'\x20-'+(_0x2dcafc-_0x482f60['t'])+_0x5f0c59(0xf7)+_0x482f60[_0x5f0c59(0x11d)]+'\x20'+_0x482f60[_0x5f0c59(0x194)];return _0x482f60[_0x5f0c59(0xba)]&&_0x482f60[_0x5f0c59(0xba)]['length']?_0x471420+_0x5f0c59(0x249)+_0x482f60['stack'][_0x5f0c59(0xf4)](_0x5f0c59(0x249)):_0x471420;})['join']('\x0a');}function _0x189f4e(_0x547fa9,_0x5e5f10){const _0x3093b3=_0x70ef,_0xc12f3d=_0x3093b3(0x1f4)+_0x547fa9+_0x3093b3(0x109)+new Date()['toISOString']()+_0x3093b3(0x116)+process[_0x3093b3(0x1c1)]+_0x3093b3(0x29e),_0x2ae2cb=[_0xc12f3d,'error:\x20'+(_0x5e5f10&&_0x5e5f10[_0x3093b3(0xba)]?_0x5e5f10['stack'][_0x3093b3(0x2ba)]('\x0a')[0x0]:_0x5e5f10),'recent\x20writes\x20(newest\x20first)'+(_0x759919?'':_0x3093b3(0x96))+':',_0x162898(0x18),_0x1b03cd(),'='['repeat'](_0xc12f3d[_0x3093b3(0x202)]-0x1)];_0x326abf(_0x2ae2cb[_0x3093b3(0xf4)]('\x0a'));}function _0x39fb6e(_0x6eae5f){const _0x8a6f79=_0x70ef;if(!_0x15bd6())return;const _0x5a824f=String(_0x6eae5f&&_0x6eae5f['message']||_0x6eae5f||''),_0x24a224=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x8a6f79(0x242)](_0x5a824f);_0x189f4e(_0x24a224?_0x8a6f79(0x204):_0x8a6f79(0x1e3),_0x6eae5f);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x24a224)return;try{console['error'](_0x6eae5f&&_0x6eae5f[_0x8a6f79(0xba)]?_0x6eae5f['stack']:_0x6eae5f);}catch{}process[_0x8a6f79(0x2bd)](0x1);}function _0xc1c6a4(_0x171252){const _0x4c40c8=_0x70ef;if(!_0x15bd6())return;const _0x572aa3=String(_0x171252&&_0x171252[_0x4c40c8(0x28a)]||_0x171252||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x4c40c8(0x242)](_0x572aa3)&&_0x189f4e(_0x4c40c8(0xe9),_0x171252);}function _0x1b03cd(){const _0x54c606=_0x70ef,_0x3fdb56=[_0x54c606(0xef)];let _0x111147=![];for(const _0x297589 of _0x2d987a){const _0xa7eebf=_0x297589&&_0x297589[_0x54c606(0x24d)];if(!_0xa7eebf)continue;for(const [_0x2cf157,_0x11d2ca]of _0xa7eebf){const _0xee905a=_0x11d2ca&&_0x11d2ca[_0x54c606(0x269)]&&_0x11d2ca[_0x54c606(0x269)][_0x54c606(0xde)];if(!_0xee905a)continue;let _0x46db2f,_0x296188;try{_0x46db2f=Atomics[_0x54c606(0x250)](_0xee905a,0x0),_0x296188=Atomics['load'](_0xee905a,0x1);}catch{continue;}if(_0x46db2f===0x0)continue;_0x111147=!![];const _0x2365e6=_0x46db2f>0x0?'SWAP':_0x54c606(0x186),_0x515231=Date[_0x54c606(0x1a7)]()-Math[_0x54c606(0x258)](_0x46db2f)*0x3e8,_0x352018=((()=>{const _0x107a36=_0x54c606;try{return _0x11d2ca[_0x107a36(0xb6)]&&_0x11d2ca[_0x107a36(0xb6)]['status']?_0x11d2ca[_0x107a36(0xb6)][_0x107a36(0x1a5)]():null;}catch{return null;}})());_0x3fdb56['push'](_0x54c606(0x1b7)+_0x2cf157+_0x54c606(0x1da)+_0x2365e6+_0x54c606(0x27b)+_0x515231+_0x54c606(0x149)+_0x296188+(_0x352018?_0x54c606(0x18f)+_0x352018[_0x54c606(0x2b1)]+'\x20oldestPendingMs='+_0x352018[_0x54c606(0x27e)]+_0x54c606(0xe1)+_0x352018[_0x54c606(0x2b2)]+'}':''));}}if(!_0x111147)_0x3fdb56[_0x54c606(0x206)](_0x54c606(0x180));return _0x3fdb56[_0x54c606(0xf4)]('\x0a');}function _0xf32f4a(){const _0x227f66=_0x70ef;if(!_0x15bd6())return;const _0x495b75=Math[_0x227f66(0x293)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x5d5473=Date[_0x227f66(0x1a7)]();for(const _0x120e1a of _0x2d987a){const _0x5304f9=_0x120e1a&&_0x120e1a[_0x227f66(0x24d)];if(!_0x5304f9)continue;for(const [_0x355526,_0x596773]of _0x5304f9){const _0x166463=_0x596773&&_0x596773[_0x227f66(0x269)]&&_0x596773[_0x227f66(0x269)][_0x227f66(0xde)];if(!_0x166463)continue;let _0x2b35f2;try{_0x2b35f2=Atomics[_0x227f66(0x250)](_0x166463,0x0);}catch{continue;}const _0x44ac70=_0x120e1a[_0x227f66(0x26a)]+'|'+_0x355526;if(_0x2b35f2<=0x0){_0x1eb853[_0x227f66(0x200)](_0x44ac70);continue;}const _0x35a2c3=_0x5d5473-_0x2b35f2*0x3e8,_0x2abeb9=_0x1eb853[_0x227f66(0x10c)](_0x44ac70);if(_0x35a2c3<_0x495b75)continue;if(_0x2abeb9&&_0x5d5473-_0x2abeb9[_0x227f66(0x29c)]<_0x495b75)continue;_0x1eb853[_0x227f66(0x198)](_0x44ac70,{'firstTs':_0x2abeb9?_0x2abeb9['firstTs']:_0x2b35f2,'dumpedAt':_0x5d5473});const _0x2c2c3f='\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20'+_0x35a2c3+_0x227f66(0x1fc)+_0x355526+_0x227f66(0x109)+new Date()['toISOString']()+_0x227f66(0x116)+process['pid']+_0x227f66(0x29e);_0x326abf([_0x2c2c3f,_0x1b03cd(),'='['repeat'](_0x2c2c3f[_0x227f66(0x202)]-0x1)]['join']('\x0a'));}}}function _0x5f4890(){const _0x517776=_0x70ef;if(!_0x15bd6()||_0x2c24bf)return;_0x2c24bf=!![],process[_0x517776(0x118)](_0x517776(0x1e3),_0x39fb6e),process[_0x517776(0x118)]('unhandledRejection',_0xc1c6a4);const _0x53027e=Math[_0x517776(0x293)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x410411=setInterval(_0xf32f4a,_0x53027e);if(_0x410411[_0x517776(0x187)])_0x410411['unref']();}function _0x2af6be(_0x18b034){if(!_0x15bd6()||!_0x18b034)return;_0x2d987a['add'](_0x18b034),_0x5f4890();}function _0x14cf5c(_0x1588d0){_0x2d987a['delete'](_0x1588d0);}function _0x5e1a9e(){if(!_0x15bd6())return{'enabled':![],'hint':'set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)'};return{'enabled':!![],'stackCapture':!!_0x759919,'recentWrites':_0xfc425f(0x10),'drain':_0x1b03cd()};}return okdbDiag={'isEnabled':_0x15bd6,'recordWrite':_0x3991b1,'installDiag':_0x5f4890,'registerOkdb':_0x2af6be,'unregisterOkdb':_0x14cf5c,'snapshot':_0x5e1a9e},okdbDiag;}function _0x1e20(){const _0x486d48=['allSettled','\x20│\x20','resetReadTxn','name','catch','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','_wantDbOf','abs','FTS_DROP','killable','_publishNow','extend','feed:','_buildProcessingFacet','clear','schema:drop','stopHeartbeat','putNode','selfKey','change','respawnTimer','[okdb-cluster]\x20','__vocab/version','http-server','_coordinator','path','view:progress','_windowCbs','ttl:expired','percentile','_timer','license:activated','[okdb-cluster]\x20worker\x20pid=','mkdirSync','_participate','has','FTS_REGISTERED','workersConfigured','noteListenAddr','\x20statusEnv=','stringify','field:resolver_registered','\x20drainAge=','role','value','oldestPendingMs','dropping','decommissioned','hard-killed','ttl:set','MAX_POOL_HOLDS','heldBy','_lock','transactionSync','startHeartbeat','_quantum','_collectSingletonClaims','message','VIEW_PROGRESS','race','FTS_RESET','_clusterOrphanWatch','putSync','crypto','reap','registry\x20publish\x20failing:\x20','max','_hbTimer','_putRowSync','freeze','_processStartedAt','ppid','ESRCH','~processes:desired','emit','dumpedAt','ENV_CLOSING_RETRY','\x20===','registerIndex','_started','_acquiredAt','_systemEnv','msg','namespace','_ownMeta','dead','SIGKILL','749790troJeP','okdb','\x20(slot=','cluster-wide','1ofN:','unique:violation','okdb-diag.','procmode/','_rowKey','depth','parkedNow','transaction','stats','_wantDbHandle','cpuWindowMs','resetting','dropIndex','_isStale','split','bus:env_release','node:perf_hooks','exit','_pendingLocal',')\x20exited\x20','REMOVE','_nestedWarned','_desired','_cmd','size','close','license:added','processing','lifecycle','resetIndex','_startHeartbeat','type:registered','_caps','_sandbox','draining','log','[okdb-cluster]\x20primary\x20pid=','holder','index:ready','perf_hooks','_bpWaiters','ITEM_CREATE','_enableChangelog','system:drain','_flushDebounce','round','_groupByProcess','SYNC_COMMITS','_buildOwnRow','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','okdb-writer[','none','okdb-writer:\x20env\x20closing\x20—\x20retry','_onProcEvent','_enqueuedAt','isPrimary','meta','_scheduleFlush','disable','engines','unclaimed','license:invalid','_lastPublishAt','processor:ready','publishChildRow','cpuUsage','stop','win32',']:\x20transaction\x20ran\x20nested\x20inside\x20a\x20write\x20txn\x20held\x20open\x20by\x20a\x20non-writer\x20caller','raw-remove','_inflight','_highWater','external','4439491KxAuQr','sync:apply','reportThreadStats','\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20','process\x20','_markSeen','single','item:create','_writer','info','appendFileSync','workers','stack','node','mode','_getType','bus:type_drop','ms\x20(attempt\x20','function','shift','platform','start','cluster','all','listen','_maybePublish','processor:paused','list','decommissioning','raw-put','map','stopping','_servingEngines','splice','clearTtl','removeSync','drain','_clusterOnMessage','_pending','fanout','isWanted','markClosed','connected','hostname','filter','warn','3300616VXUidK','fast','view','_buckets','send','\x20parkedNow=','system:proc','_statusEnv','randomUUID','_versionSkewWarned','item:update','reset','processorsView','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','isEnabled','processes','_role','claimGated','\x20ipc\x20error:\x20','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','startsWith','note','_handlePending','off','join','ms/','version','ms\x20env=','(worst\x20','listenAddr','updatedAt','setDesired','\x20died\x20','beforeWrite','clearThreadStats','openDB','license:removed','index:drop','starting','txn:start','getProcess','_clusterWorkerAttached','_publishFailWarned','http','rss','\x20@\x20','_sampleOwnStats','acquiredAt','get','_drainOne','type:drop','_nodeDbFor','error','release','_heartbeatInFlight','_singletonLocks','stderr','--print','\x20pid=','sort','prependListener','childTransaction','label','ref:violation',',\x20signal=','env','SYSTEM_STOPPED','primary','pushEphemeral','find','_onPending','rows=','getChanges','nodeKey','instances','system:stopped',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','_adminRelay','_putRowAsync','worker','startedAt','ITEM_PENDING','slot','registry-publish','_lastCpuWindowMs','1052148xUYwHl','isActive','register','closing','_selfKey','index:progress','_listenAddr','_lockDb','_heldTotal','1549293iJVmpc','started','txn:end','async','6fEiJIq','\x20worker(s)\x20still\x20serving','_seen','processor:resumed','registry\x20heartbeat\x20skipped\x20(writer=','maxMs','standalone','bus:poke','system:env_release','--test','setTtl','ms\x20activeWriters=','busy','kill','object','txn:rollback','claims','mean',');\x20','exports','process','number','loop-lag\x20','_lastCpuUsage','runtimeProcessesView','entries','_assertUsable','children','type','then','heartbeatMs','_children','schema:set','_instanceId','_admissionTimer','instanceId','processingStatusView','_outstanding','quantum','_baselines','_singletonLock','setLogger','waiting','maxExtra','listening','_ensureDesired','listNodes','state','_lockDbOf','some','9slqqoV','system:ready','isWorker','_held','processingSig','_nestedTotal','dedupeMax','toFixed','_heartbeatTimer','values','_bpParkedTotal','min','_log','prototype','mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.','expiresAt','\x20\x20(no\x20env\x20draining)','_kind','resolve','createEnvironment','~lock','_nodeDb','copy','unref','getClock','getCmd','CHANGEFEED_QUANTUM','sync','once','processor:progress','removeNode','\x20writer{depth=','running','user','uptime','registerFts','kind','processor:error','_migrateVocab','_draining','set','host','2.6.1','system:bus_state_change','ingest','_durs','isDead','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','dropFts','trim','[okdb-cluster]\x20slot=','execArgv','_refreshDesiredSnapshot','status','enabled','now','_collectWriterFacet','_rootDb','deaths','INDEX_READY','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','okdb-lock:\x20env\x20closed','resetFts','_activateProcesses','threads','options','ITEM_REMOVE','_handlePoke','_cursors','_admissionStarted','INDEX_PROGRESS','\x20\x20env=','_nodeDbCache','_dedupeMax','enable','SYSTEM_PROC','_rawDb','singletonClaims','code','put','_released','pid','processor:retry','parse','cursorKey','getDesired','getRange','_key','index:reset','_isReader','_supervisorKey','open','--inspect','queue-worker','processors','registerType','rowKey','next','reduce','true','_onTick','isConnected','\x20(durable\x20desired-state)','_db','setOwnMeta','_onPoke','\x20phase=','item:pending','fromEntries','_dedupeKey','_flushTimer','decommission','updateSupervisedChildStats','count','23736370jhRypV','uncaughtException','online','__okdbSlot','committed','tierList','participate','indexOf','_onStop','hasDesired','commit','_threadStats','_report','level','add',':want','commitsPerSec','--eval','\x0a===\x20OKDB_DIAG\x20','string','listDesired','fn-runner','sandbox','__esModule','[okdb-cluster]\x20respawning\x20worker\x20slot=','embedded','ms\x20on\x20env=','(code=','system','cli','delete','cpus','length','_nodeDead','ORPHAN\x20(env-closed\x20write)','_startAdmission','push','dropSchema','item:remove','default','\x20sync','processKey','disconnect','_removeRowAsync','afterWrite','listAll','attachFeed','_closed','ttlMs','migrations','fork','slotKey','_buildChildRow','clusterStatusView','_desiredOverlay','slice','signalWant','remove','__okdbCluster','heapUsed','_committed','floor','consecutiveFailures','procmodeack/','_isWriter','memoryUsage','system:poke','\x20times\x20in\x20','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','env:opened','includes','_wantDb','write','_drain','supervisorKey','building','SYSTEM_POKE','replace','5wJRexT','ready','epoch','_done','events','commitP99Ms','4399548ZEMsEI','created','confirm','withPoolHold','\x20in\x20','fts:reset','processorId','_lastCpuPct','setupPrimary','ms\x20p99=','_holderDead','okdb-http-worker-child.js','test','ttl:clear','nodesView','loop-lag','./okdb','caps','INDEX_RESET','\x0a\x20\x20\x20\x20\x20\x20','ms\x20mean=','~processes','_onItem','_envs','heapTotal','node/','load'];_0x1e20=function(){return _0x486d48;};return _0x1e20();}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x17b1f0=_0xa5e620;if(hasRequiredOkdbWriter)return okdbWriter[_0x17b1f0(0x151)];hasRequiredOkdbWriter=0x1;const {performance:_0x3c07f3}=require$$0$2,_0x4bf6cf=requireOkdbDiag(),_0x1f8797=process.env.OKDB_COMMIT_MODE===_0x17b1f0(0x18b);class _0x17da11{constructor(_0x136ab8){const _0x5c4faf=_0x17b1f0;this[_0x5c4faf(0x11d)]=_0x136ab8,this[_0x5c4faf(0xab)]=new Set(),this['_enqueuedAt']=new Map(),this[_0x5c4faf(0x21e)]=0x0,this[_0x5c4faf(0x19d)]=[],this[_0x5c4faf(0x233)]=[],this[_0x5c4faf(0xac)]=Math[_0x5c4faf(0x293)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x5c4faf(0x163)]=0x0,this[_0x5c4faf(0x8d)]=[],this[_0x5c4faf(0x17a)]=0x0,this[_0x5c4faf(0x173)]=null,this[_0x5c4faf(0x139)]=0x0,this[_0x5c4faf(0x175)]=0x0,this[_0x5c4faf(0x2c1)]=![];}async[_0x17b1f0(0x2b3)](_0x38f5b8,_0x50ebe6,{admitted:admitted=![]}={}){const _0xc6d478=_0x17b1f0;if(_0x4bf6cf[_0xc6d478(0xea)]())_0x4bf6cf['recordWrite'](this[_0xc6d478(0x11d)]?.[_0xc6d478(0x254)],_0x50ebe6);if(this[_0xc6d478(0x211)]){const _0x47d3c0=new Error('okdb-writer:\x20env\x20closing\x20—\x20retry');_0x47d3c0[_0xc6d478(0x1be)]=_0xc6d478(0x29d);throw _0x47d3c0;}if(this[_0xc6d478(0xac)]>0x0){let _0x2d7d65=![];while(this[_0xc6d478(0x163)]>=this[_0xc6d478(0xac)]&&!this[_0xc6d478(0x211)]){!_0x2d7d65&&(_0x2d7d65=!![],this['_bpParkedTotal']++),await new Promise(_0x39cc00=>this['_bpWaiters'][_0xc6d478(0x206)](_0x39cc00));}if(this['_closed']){const _0xfd0cb5=new Error(_0xc6d478(0x99));_0xfd0cb5['code']=_0xc6d478(0x29d);throw _0xfd0cb5;}}this[_0xc6d478(0x163)]++;const _0x458f96=admitted?null:this[_0xc6d478(0x11d)]['_coordinator'];for(;;){while(this['_held'])await this[_0xc6d478(0x173)];if(_0x458f96)try{await _0x458f96[_0xc6d478(0xfd)]();}catch(_0x178eb9){this[_0xc6d478(0x163)]--;if(this['_bpWaiters'][_0xc6d478(0x202)]&&this[_0xc6d478(0x163)]<this[_0xc6d478(0xac)])this[_0xc6d478(0x8d)][_0xc6d478(0xc1)]()();throw _0x178eb9;}if(!this['_held'])break;if(_0x458f96)_0x458f96['afterWrite']();}if(this[_0xc6d478(0x211)]){if(_0x458f96)_0x458f96[_0xc6d478(0x20e)]();this['_outstanding']--;if(this[_0xc6d478(0x8d)][_0xc6d478(0x202)]&&this[_0xc6d478(0x163)]<this[_0xc6d478(0xac)])this[_0xc6d478(0x8d)][_0xc6d478(0xc1)]()();const _0x44233c=new Error(_0xc6d478(0x99));_0x44233c[_0xc6d478(0x1be)]='ENV_CLOSING_RETRY';throw _0x44233c;}const _0x2610d1=_0x3c07f3[_0xc6d478(0x1a7)]();if(_0x1f8797)try{const _0x2527c2=this[_0xc6d478(0x11d)]['db'][_0xc6d478(0x286)](_0x38f5b8);this[_0xc6d478(0x21e)]++;if(this[_0xc6d478(0x19d)][_0xc6d478(0x206)](_0x3c07f3[_0xc6d478(0x1a7)]()-_0x2610d1)>0x100)this[_0xc6d478(0x19d)][_0xc6d478(0xc1)]();if(this[_0xc6d478(0x233)][_0xc6d478(0x206)](_0x3c07f3[_0xc6d478(0x1a7)]())>0x800)this['_done'][_0xc6d478(0xc1)]();return _0x2527c2;}finally{this['_outstanding']--;if(this[_0xc6d478(0x8d)]['length']&&this['_outstanding']<this[_0xc6d478(0xac)])this[_0xc6d478(0x8d)][_0xc6d478(0xc1)]()();if(_0x458f96)_0x458f96[_0xc6d478(0x20e)]();}let _0x4f44e3=null;const _0x272a38=()=>{const _0x3b27e2=_0xc6d478,_0x10793a=_0x38f5b8();if(_0x10793a&&typeof _0x10793a[_0x3b27e2(0x15b)]===_0x3b27e2(0xc0)&&!_0x4f44e3){this[_0x3b27e2(0x139)]++;let _0xf7a95b;const _0x21a1b8=new Promise(_0x3da250=>_0xf7a95b=_0x3da250);this[_0x3b27e2(0x173)]=_0x21a1b8,_0x4f44e3=()=>{const _0x45b6c6=_0x3b27e2;if(this[_0x45b6c6(0x173)]===_0x21a1b8)this[_0x45b6c6(0x173)]=null;_0xf7a95b();};}return _0x10793a;};let _0x3d4967;try{_0x3d4967=this[_0xc6d478(0x11d)]['db']['childTransaction'](_0x272a38);}catch(_0x2a9b28){_0x3d4967=Promise['reject'](_0x2a9b28);}(!_0x3d4967||typeof _0x3d4967[_0xc6d478(0x15b)]!==_0xc6d478(0xc0))&&(this[_0xc6d478(0x175)]++,!this[_0xc6d478(0x2c1)]&&(this[_0xc6d478(0x2c1)]=!![],console[_0xc6d478(0xdb)](_0xc6d478(0x97)+(this[_0xc6d478(0x11d)]?.[_0xc6d478(0x254)]??'?')+_0xc6d478(0xa9))),_0x3d4967=Promise[_0xc6d478(0x182)](_0x3d4967));const _0x4fe6f8=()=>{if(_0x4f44e3)_0x4f44e3();};_0x3d4967['then'](_0x4fe6f8,_0x4fe6f8),this[_0xc6d478(0xab)][_0xc6d478(0x1f0)](_0x3d4967),this[_0xc6d478(0x9b)][_0xc6d478(0x198)](_0x3d4967,_0x2610d1);const _0x504604=()=>{const _0x5626ed=_0xc6d478;this[_0x5626ed(0xab)][_0x5626ed(0x200)](_0x3d4967),this[_0x5626ed(0x9b)][_0x5626ed(0x200)](_0x3d4967),this[_0x5626ed(0x21e)]++,this[_0x5626ed(0x163)]--;this[_0x5626ed(0x8d)][_0x5626ed(0x202)]&&this['_outstanding']<this[_0x5626ed(0xac)]&&this[_0x5626ed(0x8d)]['shift']()();if(this[_0x5626ed(0x19d)][_0x5626ed(0x206)](_0x3c07f3[_0x5626ed(0x1a7)]()-_0x2610d1)>0x100)this[_0x5626ed(0x19d)][_0x5626ed(0xc1)]();if(this['_done'][_0x5626ed(0x206)](_0x3c07f3[_0x5626ed(0x1a7)]())>0x800)this['_done'][_0x5626ed(0xc1)]();};_0x3d4967[_0xc6d478(0x15b)](_0x504604,_0x504604);try{return await _0x3d4967;}finally{if(_0x458f96)_0x458f96[_0xc6d478(0x20e)]();}}[_0x17b1f0(0x1a5)](){const _0x1e0450=_0x17b1f0,_0x3e6038=_0x3c07f3[_0x1e0450(0x1a7)]();let _0x263edb=0x0;for(const _0x3aaba7 of this[_0x1e0450(0x9b)]['values']()){const _0x306a10=_0x3e6038-_0x3aaba7;if(_0x306a10>_0x263edb)_0x263edb=_0x306a10;}let _0x4adf99=0x0;for(let _0x3be9e0=this[_0x1e0450(0x233)]['length']-0x1;_0x3be9e0>=0x0;_0x3be9e0--){if(_0x3e6038-this[_0x1e0450(0x233)][_0x3be9e0]>0x3e8)break;_0x4adf99++;}let _0x5024b7=0x0;if(this[_0x1e0450(0x19d)][_0x1e0450(0x202)]){const _0x51f147=[...this['_durs']][_0x1e0450(0x117)]((_0x427180,_0x296447)=>_0x427180-_0x296447);_0x5024b7=_0x51f147[Math['min'](_0x51f147[_0x1e0450(0x202)]-0x1,Math['floor'](_0x51f147[_0x1e0450(0x202)]*0.99))];}return{'depth':this[_0x1e0450(0xab)][_0x1e0450(0x2c4)],'oldestPendingMs':Math['round'](_0x263edb),'committed':this[_0x1e0450(0x21e)],'commitsPerSec':_0x4adf99,'commitP99Ms':Math[_0x1e0450(0x92)](_0x5024b7),'parkedNow':this[_0x1e0450(0x8d)][_0x1e0450(0x202)],'parkedTotal':this['_bpParkedTotal'],'highWater':this[_0x1e0450(0xac)]};}['inflightAgesMs'](){const _0xa7b08e=_0x17b1f0,_0x562700=_0x3c07f3[_0xa7b08e(0x1a7)]();return[...this[_0xa7b08e(0x9b)][_0xa7b08e(0x179)]()][_0xa7b08e(0xcc)](_0x467599=>Math[_0xa7b08e(0x92)](_0x562700-_0x467599))[_0xa7b08e(0x117)]((_0x1c0fe9,_0x1c1b19)=>_0x1c1b19-_0x1c0fe9);}[_0x17b1f0(0xd7)](){const _0x40d0cc=_0x17b1f0;this[_0x40d0cc(0x211)]=!![];for(const _0x296086 of this[_0x40d0cc(0x8d)][_0x40d0cc(0xcf)](0x0))_0x296086();}async[_0x17b1f0(0xd2)](){const _0x1dc79e=_0x17b1f0;let _0x43ee5b=0x0;while(this[_0x1dc79e(0xab)]['size']&&_0x43ee5b++<0x3e8){await Promise[_0x1dc79e(0x251)]([...this[_0x1dc79e(0xab)]]);}}async[_0x17b1f0(0x1bf)](_0x56a49e,_0x49b2b0,_0x4c49f5,_0x4ed679){const _0x59571c=_0x17b1f0;return this[_0x59571c(0x2b3)](()=>{const _0x10376f=_0x59571c;if(_0x4ed679===undefined)_0x56a49e[_0x10376f(0x28f)](_0x49b2b0,_0x4c49f5);else _0x56a49e[_0x10376f(0x28f)](_0x49b2b0,_0x4c49f5,_0x4ed679);},_0x59571c(0xcb));}async[_0x17b1f0(0x21b)](_0x3d0a41,_0x392ce4){const _0x580d8b=_0x17b1f0;return this[_0x580d8b(0x2b3)](()=>_0x3d0a41['removeSync'](_0x392ce4),_0x580d8b(0xaa));}}async function _0x71cff9(_0x5b663f,_0x3d4dff){const _0xf231fb=_0x17b1f0;if(_0x3d4dff==null)_0x3d4dff=Math[_0xf231fb(0x293)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0xf72d76=_0x5b663f?.['flushed'];if(!_0xf72d76||typeof _0xf72d76[_0xf231fb(0x15b)]!==_0xf231fb(0xc0))return;await Promise[_0xf231fb(0x28c)]([Promise[_0xf231fb(0x182)](_0xf72d76)[_0xf231fb(0x255)](()=>{}),new Promise(_0x2f6082=>{const _0x5ba987=_0xf231fb,_0x546f85=setTimeout(_0x2f6082,_0x3d4dff);if(_0x546f85[_0x5ba987(0x187)])_0x546f85[_0x5ba987(0x187)]();})]);}catch{}}function _0x393db2(_0x51de3e){const _0x927db5=_0x17b1f0;if(_0x1f8797)return Promise[_0x927db5(0x182)]();const _0x3d535a=_0x51de3e?.['committed'];return _0x3d535a&&typeof _0x3d535a[_0x927db5(0x15b)]==='function'?_0x3d535a:Promise['resolve']();}const _0xae5d35=Math[_0x17b1f0(0x293)](0x1,Math[_0x17b1f0(0x21f)](Number(process.env.UV_THREADPOOL_SIZE))||0x4),_0x5a5d26=Math[_0x17b1f0(0x293)](0x1,_0xae5d35-0x2);let _0x593dfd=0x0;const _0x57ee42=[];async function _0x2a0af0(_0x223e41){const _0x494c17=_0x17b1f0;if(_0x593dfd<_0x5a5d26)_0x593dfd++;else await new Promise(_0x3448d6=>_0x57ee42['push'](_0x3448d6));try{return await _0x223e41();}finally{const _0x460a2d=_0x57ee42[_0x494c17(0xc1)]();if(_0x460a2d)_0x460a2d();else _0x593dfd--;}}return okdbWriter['exports']=_0x17da11,okdbWriter[_0x17b1f0(0x151)][_0x17b1f0(0x239)]=_0x2a0af0,okdbWriter['exports'][_0x17b1f0(0x283)]=_0x5a5d26,okdbWriter[_0x17b1f0(0x151)]['flushLmdb']=_0x71cff9,okdbWriter[_0x17b1f0(0x151)]['committed']=_0x393db2,okdbWriter[_0x17b1f0(0x151)][_0x17b1f0(0x94)]=_0x1f8797,okdbWriter['exports'];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x282cc7=_0xa5e620;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x49b668=require$$0$3,{SYNC_COMMITS:_0x473a8f}=requireOkdbWriter(),_0x14bfa0=_0x282cc7(0x184);class _0x38fcbd{constructor(_0x151cd0,_0x368d80,_0x9d15){const _0x17789a=_0x282cc7;this['_lock']=_0x151cd0,this[_0x17789a(0x1c7)]=_0x368d80,this['_acquiredAt']=_0x9d15,this['_released']=![],this[_0x17789a(0x178)]=null,this[_0x17789a(0x112)]=null;}['isHeld'](){const _0x77652a=_0x282cc7;if(this['_released'])return![];try{const _0x19e55b=this[_0x77652a(0x285)][_0x77652a(0x1d7)]()['get'](this['_key']);if(!_0x19e55b||_0x19e55b[_0x77652a(0x10b)]!==this[_0x77652a(0x2a1)])return![];const _0x34c47d=_0x19e55b['updatedAt']??_0x19e55b[_0x77652a(0x10b)];if(_0x34c47d+_0x19e55b[_0x77652a(0x212)]<Date[_0x77652a(0x1a7)]())return![];return!![];}catch{return!this[_0x77652a(0x1c0)];}}[_0x282cc7(0x8a)](){const _0x4112a1=_0x282cc7;if(this['_released'])return null;try{return this[_0x4112a1(0x285)][_0x4112a1(0x1d7)]()[_0x4112a1(0x10c)](this['_key'])??null;}catch{return null;}}async[_0x282cc7(0x25c)](_0x450e52){const _0x391d44=_0x282cc7;if(this[_0x391d44(0x1c0)])return;try{if(this[_0x391d44(0x285)][_0x391d44(0x211)]())return;const _0x2f1a41=this[_0x391d44(0x285)][_0x391d44(0x1d7)]()[_0x391d44(0x10c)](this[_0x391d44(0x1c7)]);if(!_0x2f1a41||_0x2f1a41[_0x391d44(0x10b)]!==this['_acquiredAt'])return;if(_0x473a8f)this[_0x391d44(0x285)][_0x391d44(0x1d7)]()[_0x391d44(0x28f)](this[_0x391d44(0x1c7)],{..._0x2f1a41,'ttlMs':_0x2f1a41[_0x391d44(0x212)]+_0x450e52});else await this[_0x391d44(0x285)]['_db']()[_0x391d44(0x1bf)](this[_0x391d44(0x1c7)],{..._0x2f1a41,'ttlMs':_0x2f1a41['ttlMs']+_0x450e52});}catch{}}async[_0x282cc7(0x111)](){const _0xbfa140=_0x282cc7;if(this[_0xbfa140(0x1c0)])return;if(this[_0xbfa140(0x112)])try{await this[_0xbfa140(0x112)];}catch{}clearInterval(this['_heartbeatTimer']),this[_0xbfa140(0x178)]=null,this[_0xbfa140(0x1c0)]=!![];try{if(this['_lock'][_0xbfa140(0x211)]())return;const _0x3c03b6=this[_0xbfa140(0x285)][_0xbfa140(0x1d7)]()[_0xbfa140(0x10c)](this[_0xbfa140(0x1c7)]);if(_0x3c03b6&&_0x3c03b6[_0xbfa140(0x10b)]===this['_acquiredAt']){if(_0x473a8f)this[_0xbfa140(0x285)][_0xbfa140(0x1d7)]()[_0xbfa140(0xd1)](this[_0xbfa140(0x1c7)]);else await this[_0xbfa140(0x285)][_0xbfa140(0x1d7)]()[_0xbfa140(0x21b)](this[_0xbfa140(0x1c7)]);}}catch{}}[_0x282cc7(0x83)](_0x332a56,_0x317f20){const _0x357323=_0x282cc7,_0x386bb4=_0x317f20??Math[_0x357323(0x21f)](_0x332a56/0x3);this[_0x357323(0x178)]=setInterval(()=>{const _0x24fed6=_0x357323;if(this[_0x24fed6(0x1c0)])return;this[_0x24fed6(0x112)]=((async()=>{const _0x628069=_0x24fed6;try{if(this['_lock'][_0x628069(0x211)]())return;const _0x26923e=this[_0x628069(0x285)][_0x628069(0x1d7)]()[_0x628069(0x10c)](this[_0x628069(0x1c7)]);if(!_0x26923e||_0x26923e['acquiredAt']!==this[_0x628069(0x2a1)]){this[_0x628069(0x1c0)]=!![],clearInterval(this['_heartbeatTimer']),this['_heartbeatTimer']=null;return;}if(_0x473a8f)this[_0x628069(0x285)][_0x628069(0x1d7)]()[_0x628069(0x28f)](this['_key'],{..._0x26923e,'updatedAt':Date['now']()});else await this[_0x628069(0x285)][_0x628069(0x1d7)]()[_0x628069(0x1bf)](this[_0x628069(0x1c7)],{..._0x26923e,'updatedAt':Date[_0x628069(0x1a7)]()});}catch{}this['_heartbeatInFlight']=null;})());},_0x386bb4);if(this[_0x357323(0x178)][_0x357323(0x187)])this[_0x357323(0x178)]['unref']();}}class _0x143055{constructor(_0x377fb0,{namespace:_0x285b84,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x2e757d=_0x282cc7;this[_0x2e757d(0x1bc)]=_0x377fb0,this[_0x2e757d(0x2a4)]=_0x285b84,this['ttlMs']=ttlMs,this[_0x2e757d(0x15c)]=heartbeatMs,this[_0x2e757d(0x138)]=null;}['_db'](){const _0x2f2e48=_0x282cc7;return this[_0x2f2e48(0x158)](),(!this[_0x2f2e48(0x138)]||this[_0x2f2e48(0x16e)]!==this[_0x2f2e48(0x1bc)])&&(this[_0x2f2e48(0x138)]=this[_0x2f2e48(0x1bc)][_0x2f2e48(0xff)](_0x14bfa0,{'dupSort':![]}),this[_0x2f2e48(0x16e)]=this['_rawDb']),this[_0x2f2e48(0x138)];}[_0x282cc7(0x229)](){const _0x1c9e8f=_0x282cc7;return this[_0x1c9e8f(0x158)](),(!this[_0x1c9e8f(0x2b5)]||this[_0x1c9e8f(0x257)]!==this[_0x1c9e8f(0x1bc)])&&(this[_0x1c9e8f(0x2b5)]=this[_0x1c9e8f(0x1bc)]['openDB'](_0x14bfa0+_0x1c9e8f(0x1f1),{'dupSort':![]}),this[_0x1c9e8f(0x257)]=this[_0x1c9e8f(0x1bc)]),this[_0x1c9e8f(0x2b5)];}[_0x282cc7(0x211)](){const _0x45d407=_0x282cc7,_0x343f52=this[_0x45d407(0x1bc)]?.['status'];return _0x343f52===_0x45d407(0x134)||_0x343f52==='closed';}[_0x282cc7(0x158)](){const _0xec0554=_0x282cc7;if(this['_closed']())throw new Error(_0xec0554(0x1ad));}[_0x282cc7(0x1c7)](_0x302049){return this['namespace']+':'+_0x302049;}[_0x282cc7(0x21a)](_0x46bad0){const _0x2bfc46=_0x282cc7;try{if(this[_0x2bfc46(0x211)]())return;_0x473a8f?this[_0x2bfc46(0x229)]()[_0x2bfc46(0x28f)](this[_0x2bfc46(0x1c7)](_0x46bad0),Date['now']()):this[_0x2bfc46(0x229)]()[_0x2bfc46(0x1bf)](this[_0x2bfc46(0x1c7)](_0x46bad0),Date[_0x2bfc46(0x1a7)]())?.[_0x2bfc46(0x255)]?.(()=>{});}catch{}}[_0x282cc7(0xd6)](_0x3fcc9a,_0x42778f=0x3e8){const _0x723041=_0x282cc7;try{const _0x46d5f6=this[_0x723041(0x229)]()['get'](this[_0x723041(0x1c7)](_0x3fcc9a));return typeof _0x46d5f6==='number'&&Date[_0x723041(0x1a7)]()-_0x46d5f6<_0x42778f;}catch{return![];}}[_0x282cc7(0x2b9)](_0xb3de3){const _0xcc072c=_0x282cc7,_0x555490=_0xb3de3[_0xcc072c(0xfa)]??_0xb3de3[_0xcc072c(0x10b)];return _0x555490+_0xb3de3[_0xcc072c(0x212)]<Date['now']();}static[_0x282cc7(0x240)](_0x5de783){const _0x25fa57=_0x282cc7,_0x3a39ee=_0x5de783?.[_0x25fa57(0x8a)];if(!_0x3a39ee||typeof _0x3a39ee[_0x25fa57(0x1c1)]!==_0x25fa57(0x153))return![];if(_0x3a39ee[_0x25fa57(0xd9)]!==_0x49b668['hostname']())return![];if(_0x3a39ee['pid']===process[_0x25fa57(0x1c1)])return![];try{return process[_0x25fa57(0x14b)](_0x3a39ee[_0x25fa57(0x1c1)],0x0),![];}catch(_0xdb362d){return _0xdb362d['code']===_0x25fa57(0x299);}}async['tryAcquire'](_0x2e6697,_0x4e207b={},_0x3cb67e={}){const _0x122fa9=_0x282cc7,_0xb6f198=this[_0x122fa9(0x1c7)](_0x2e6697),_0x3082ec=_0x3cb67e[_0x122fa9(0x212)]??this['ttlMs'],_0x5419ed=Date[_0x122fa9(0x1a7)](),_0x44d857={'holder':{'pid':process[_0x122fa9(0x1c1)],'hostname':_0x49b668[_0x122fa9(0xd9)](),..._0x4e207b},'acquiredAt':_0x5419ed,'updatedAt':_0x5419ed,'ttlMs':_0x3082ec};let _0x45bb66=![],_0x1a62f4=null;if(this['_closed']())return{'acquired':![],'handle':null,'current':null};try{const _0x8a9ded=()=>{const _0x4b1717=_0x122fa9,_0x520e3f=this[_0x4b1717(0x1d7)]()[_0x4b1717(0x10c)](_0xb6f198);if(_0x520e3f&&!this[_0x4b1717(0x2b9)](_0x520e3f)&&!_0x143055[_0x4b1717(0x240)](_0x520e3f)){const _0x1b4092=_0x4e207b[_0x4b1717(0x23c)]!=null&&_0x520e3f['holder']['pid']===process['pid']&&_0x520e3f[_0x4b1717(0x8a)][_0x4b1717(0x23c)]===_0x4e207b[_0x4b1717(0x23c)];if(!_0x1b4092){_0x45bb66=![],_0x1a62f4=_0x520e3f;return;}_0x44d857[_0x4b1717(0x10b)]<=_0x520e3f['acquiredAt']&&(_0x44d857[_0x4b1717(0x10b)]=_0x520e3f[_0x4b1717(0x10b)]+0x1,_0x44d857[_0x4b1717(0xfa)]=_0x44d857['acquiredAt']);}this[_0x4b1717(0x1d7)]()[_0x4b1717(0x1bf)](_0xb6f198,_0x44d857),_0x45bb66=!![],_0x1a62f4=_0x44d857;};if(_0x473a8f)this[_0x122fa9(0x1d7)]()[_0x122fa9(0x286)](_0x8a9ded);else await this['_db']()[_0x122fa9(0x119)](_0x8a9ded);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x45bb66)return{'acquired':![],'handle':null,'current':_0x1a62f4};const _0x21221c=new _0x38fcbd(this,_0xb6f198,_0x44d857['acquiredAt']);return _0x21221c['_startHeartbeat'](_0x3082ec,this[_0x122fa9(0x15c)]),{'acquired':!![],'handle':_0x21221c,'current':_0x1a62f4};}['inspect'](_0x3c365c){const _0x1a6d34=_0x282cc7;try{return this[_0x1a6d34(0x1d7)]()[_0x1a6d34(0x10c)](this[_0x1a6d34(0x1c7)](_0x3c365c))??null;}catch{return null;}}[_0x282cc7(0xc9)](){const _0x51d477=_0x282cc7,_0x2940d5=this[_0x51d477(0x2a4)]+':',_0x3a3a27=[];try{for(const {key:_0x3b6746,value:_0x5c1e33}of this['_db']()['getRange']({'start':_0x2940d5,'end':_0x2940d5+'\xff'})){typeof _0x3b6746===_0x51d477(0x1f5)&&_0x3b6746['startsWith'](_0x2940d5)&&_0x3a3a27['push']({'id':_0x3b6746[_0x51d477(0x219)](_0x2940d5[_0x51d477(0x202)]),'entry':_0x5c1e33});}}catch{}return _0x3a3a27;}static[_0x282cc7(0x20f)](_0x55114e){const _0x58f3be=_0x282cc7,_0x142b07=[];try{const _0x1519ba=_0x55114e[_0x58f3be(0xff)](_0x14bfa0,{'dupSort':![]});for(const {key:_0x5d8ce0,value:_0x464747}of _0x1519ba[_0x58f3be(0x1c6)]({})){if(typeof _0x5d8ce0!==_0x58f3be(0x1f5))continue;const _0x266d4d=_0x5d8ce0['indexOf'](':');if(_0x266d4d<0x1)continue;_0x142b07[_0x58f3be(0x206)]({'namespace':_0x5d8ce0['slice'](0x0,_0x266d4d),'id':_0x5d8ce0[_0x58f3be(0x219)](_0x266d4d+0x1),'entry':_0x464747});}}catch{}return _0x142b07;}}return okdbLock={'OKDBLock':_0x143055},okdbLock;}var version=_0xa5e620(0x19a),require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x468433=_0xa5e620;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x596be7=require$$0$3,_0x4c308f=require$$1$1,_0x82104=require$$2,{LOOP:_0x2a1fe2}=requireOkdbLoopMonitor(),{OKDBLock:_0x5bf68e}=requireOkdbLock(),{SYNC_COMMITS:_0x3a4305}=requireOkdbWriter(),_0x3e9705=_0x468433(0x24b),_0x1f2a53=_0x468433(0xbb),_0x432641=_0x468433(0x29a),_0x4e0e8d='~processes:cmd',_0x4b3643=(_0x17355e,_0xb6cae0)=>_0x17355e+':'+_0xb6cae0,_0x50f8d3=(_0x4c2f0b,_0x44d808)=>_0x4c2f0b+'::'+_0x44d808,_0x5bab41=(_0x5b2e60,_0x4dd641)=>_0x5b2e60+'/'+_0x4dd641,_0x5a2ed8=(_0x374b44,_0x497725)=>_0x374b44+'#'+_0x497725,_0x46d951=_0x1b7090=>{const _0x5156ee=_0x468433;if(_0x1b7090?.[_0x5156ee(0x20b)])return _0x1b7090[_0x5156ee(0x20b)];const _0xd112b9=_0x1b7090?.['nodeKey'];return typeof _0xd112b9===_0x5156ee(0x1f5)&&_0xd112b9[_0x5156ee(0x228)]('#')?_0xd112b9[_0x5156ee(0x219)](0x0,_0xd112b9[_0x5156ee(0x1e9)]('#')):_0xd112b9;},_0x37d55a=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x1b0310=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x410fca=_0x37d55a*0x3,_0x27c1a3=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x468433(0x293)](0x927c0,_0x410fca*0x14),_0x47f7c3=[_0x468433(0x18d),'processor:ready','processor:retry',_0x468433(0x195),_0x468433(0xc8),_0x468433(0x141)];let _0x14d4f4=null;function _0x53fc56(){const _0x218651=_0x468433;if(_0x14d4f4==null)_0x14d4f4=Math['round']((Date[_0x218651(0x1a7)]()-process[_0x218651(0x192)]()*0x3e8)/0x3e8)*0x3e8;return _0x14d4f4;}function _0x53a4d6(_0x1c6b9c){const _0x3660ac=_0x468433;if(process.env.OKDB_PROCESS_KILL===_0x3660ac(0xf3))return![];if(_0x1c6b9c?.[_0x3660ac(0x1b1)]?.[_0x3660ac(0xeb)]&&typeof _0x1c6b9c[_0x3660ac(0x1b1)]['processes']===_0x3660ac(0x14c)&&_0x1c6b9c[_0x3660ac(0x1b1)][_0x3660ac(0xeb)][_0x3660ac(0x14b)]===![])return![];return!![];}function _0x26c283(_0x4ba61b,_0x591d4e){const _0x180b42=_0x468433,_0x1d2565=!!_0x591d4e?.[_0x180b42(0x1ce)];switch(_0x4ba61b){case'primary':return{'controllable':_0x1d2565,'decommissionable':![],'killable':!![],'killConfirm':_0x180b42(0x2ab)};case _0x180b42(0x1ff):case _0x180b42(0x144):return{'controllable':_0x1d2565,'decommissionable':![],'killable':!![],'killConfirm':_0x180b42(0x238)};case _0x180b42(0x1fb):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case _0x180b42(0x1cd):case _0x180b42(0x1f7):case _0x180b42(0x12b):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x1f04cf{constructor(_0x408dae){const _0x4e6207=_0x468433;this['okdb']=_0x408dae,this[_0x4e6207(0xe3)]=null,this['_desired']=null,this['_desiredOverlay']=new Map(),this[_0x4e6207(0x2c3)]=null,this[_0x4e6207(0x222)]=![],this[_0x4e6207(0x1c9)]=![],this[_0x4e6207(0x297)]=_0x53fc56(),this[_0x4e6207(0x135)]=_0x4b3643(process['pid'],this[_0x4e6207(0x297)]),this[_0x4e6207(0x15f)]=_0x82104[_0x4e6207(0xe4)]()['slice'](0x0,0x8),this['_rowKey']=_0x5a2ed8(this[_0x4e6207(0x135)],this[_0x4e6207(0x15f)]),this['_startedAt']=Date['now'](),this[_0x4e6207(0x181)]=null,this[_0x4e6207(0x1ca)]=null,this[_0x4e6207(0x137)]=null,this[_0x4e6207(0x294)]=null,this[_0x4e6207(0x9a)]=null,this['_onTick']=null,this[_0x4e6207(0xa3)]=0x0,this[_0x4e6207(0x2a5)]={},this[_0x4e6207(0x15d)]=new Map(),this[_0x4e6207(0x155)]=process[_0x4e6207(0xa6)](),this['_lastCpuAt']=Date[_0x4e6207(0x1a7)](),this['_lastCpuPct']=0x0,this['_threadStats']=new Map();}get[_0x468433(0x263)](){const _0x5e47db=_0x468433;return this[_0x5e47db(0x135)];}get[_0x468433(0x1d0)](){return this['_rowKey'];}[_0x468433(0x85)](_0x3894c5,_0x41dc76){const _0x2c55e6=_0x468433,_0x3d5bf3=_0x26c283(_0x3894c5,_0x41dc76);if(_0x3d5bf3[_0x2c55e6(0x25a)]&&!_0x53a4d6(this[_0x2c55e6(0x2a9)]))return{..._0x3d5bf3,'killable':![],'killConfirm':undefined};return _0x3d5bf3;}[_0x468433(0x132)](){return!!this['_statusEnv'];}[_0x468433(0x1d8)](_0x3c8a59){const _0x1791ed=_0x468433;Object['assign'](this[_0x1791ed(0x2a5)],_0x3c8a59||{});}[_0x468433(0x277)](_0x1f56cd){const _0x1b719d=_0x468433;if(_0x1f56cd)this[_0x1b719d(0x137)]=_0x1f56cd;}[_0x468433(0x133)](_0xd23189={}){const _0x4deb86=_0x468433;return this['okdb'][_0x4deb86(0x1af)](_0xd23189);}[_0x468433(0x162)](){const _0x11aada=_0x468433,_0x94bf62={};let _0x566d5b=0x0,_0x3f0f0c=0x0;const _0x5cb8ac=new Set();for(const _0x2070b7 of this['listNodes']()){_0x3f0f0c++;const _0xe19bca=_0x2070b7[_0x11aada(0x2c7)];if(!_0xe19bca)continue;if(_0xe19bca[_0x11aada(0x1e8)])_0x566d5b++;for(const _0xd3cc80 of _0xe19bca[_0x11aada(0x1ce)]||[]){if(![_0x11aada(0xb4),_0x11aada(0xd5)][_0x11aada(0x228)](_0xd3cc80[_0x11aada(0xbc)]))continue;(_0xd3cc80[_0x11aada(0x16d)]===_0x11aada(0x1e4)||_0xd3cc80[_0x11aada(0x16d)]===_0x11aada(0x22d))&&_0xd3cc80['cursorKey']&&_0x5cb8ac[_0x11aada(0x1f0)]((_0xd3cc80['env']||_0x11aada(0x209))+':'+_0xd3cc80[_0x11aada(0x1c4)]);const _0x22c7ed=_0xd3cc80['env']||_0x11aada(0x209);(_0x94bf62[_0x22c7ed]||=[])[_0x11aada(0x206)]({..._0xd3cc80,'env':_0x22c7ed,'owner':{'pid':_0x2070b7['pid']??null,'kind':_0x2070b7[_0x11aada(0x194)]??null}});}}for(const [_0x129b29,_0x3826f3]of Object[_0x11aada(0x157)](_0x94bf62)){for(const _0x27209a of _0x3826f3){if(_0x27209a['mode']==='single'&&!_0x27209a[_0x11aada(0xed)]){const _0xddee0b=_0x129b29+':'+(_0x27209a['cursorKey']??'');if(!_0x5cb8ac[_0x11aada(0x274)](_0xddee0b))_0x27209a['unclaimed']=!![];}}}return{'envs':_0x94bf62,'policy':null,'participation':{'participating':_0x566d5b,'total':_0x3f0f0c},'source':_0x11aada(0xb9)};}[_0x468433(0xe8)](){const _0xcbd480=_0x468433,_0x1ecce8=_0x35f9eb=>{const _0x31ea2c=_0x70ef;if(_0x35f9eb[_0x31ea2c(0x16d)]===_0x31ea2c(0x1e4)||_0x35f9eb[_0x31ea2c(0x16d)]==='building'||_0x35f9eb[_0x31ea2c(0x16d)]===_0x31ea2c(0x110))return 0x3;if(_0x35f9eb[_0x31ea2c(0xed)])return 0x1;return 0x2;},_0x25420c=new Map();for(const _0x3be3ac of this[_0xcbd480(0x16c)]()){for(const _0x93cc4e of _0x3be3ac[_0xcbd480(0x2c7)]?.[_0xcbd480(0x1ce)]||[]){const _0x47ab95={..._0x93cc4e,'owner':{'pid':_0x3be3ac['pid']??null,'kind':_0x3be3ac[_0xcbd480(0x194)]??null,'host':_0x3be3ac[_0xcbd480(0x199)]??null}},_0x1af738=_0x93cc4e['mode']==='single'?_0xcbd480(0x2ac)+(_0x93cc4e[_0xcbd480(0x11d)]??'')+'::'+(_0x93cc4e[_0xcbd480(0x1c4)]??_0x93cc4e[_0xcbd480(0x15a)]??_0x93cc4e['id']):'inst:'+(_0x3be3ac['nodeKey']??_0x3be3ac[_0xcbd480(0x20b)]??'')+'::'+(_0x93cc4e['env']??'')+'::'+_0x93cc4e['id'],_0x3d31f2=_0x25420c[_0xcbd480(0x10c)](_0x1af738);if(!_0x3d31f2||_0x1ecce8(_0x47ab95)>_0x1ecce8(_0x3d31f2))_0x25420c[_0xcbd480(0x198)](_0x1af738,_0x47ab95);}}return[..._0x25420c[_0xcbd480(0x179)]()];}[_0x468433(0x217)](){const _0x23a44b=_0x468433,_0x2b8899=Date['now'](),_0x2684dd=this['listNodes'](),_0x512197=_0x4716a7=>Math['max'](0x0,Math[_0x23a44b(0x92)]((_0x2b8899-(_0x4716a7[_0x23a44b(0x12c)]||_0x2b8899))/0x3e8)),_0x3098ef=_0x2684dd[_0x23a44b(0x121)](_0x37ce2b=>_0x37ce2b['kind']===_0x23a44b(0x11f)),_0x324361=_0x2684dd[_0x23a44b(0xda)](_0x18a890=>_0x18a890[_0x23a44b(0x194)]===_0x23a44b(0x268));if(_0x3098ef||_0x324361[_0x23a44b(0x202)])return{'primary':_0x3098ef?{'pid':_0x3098ef[_0x23a44b(0x1c1)],'uptime':_0x512197(_0x3098ef)}:null,'workers':_0x324361[_0x23a44b(0xcc)](_0x4ffc02=>({'pid':_0x4ffc02[_0x23a44b(0x1c1)],'uptime':_0x512197(_0x4ffc02)})),'workersConfigured':_0x3098ef?.[_0x23a44b(0x9d)]?.[_0x23a44b(0x276)]??_0x324361[_0x23a44b(0x202)],'mode':'cluster'};const _0x4eb923=_0x2684dd['find'](_0x460bde=>_0x460bde[_0x23a44b(0x194)]==='cli'||_0x460bde[_0x23a44b(0x194)]===_0x23a44b(0x144)||_0x460bde[_0x23a44b(0x194)]===_0x23a44b(0x1fb)),_0xc642bb=_0x4eb923?{'pid':_0x4eb923[_0x23a44b(0x1c1)],'uptime':_0x512197(_0x4eb923)}:{'pid':process['pid'],'uptime':Math[_0x23a44b(0x293)](0x0,Math['round'](process[_0x23a44b(0x192)]()))};return{'primary':_0xc642bb,'workers':[_0xc642bb],'workersConfigured':0x1,'mode':_0x23a44b(0xb4)};}[_0x468433(0x244)](){const _0x530d9c=_0x468433;return this[_0x530d9c(0x93)]();}['treeView'](){const _0x3f843f=_0x468433,_0x34dd30=new Map();for(const _0x59f8e2 of this[_0x3f843f(0x93)]())_0x34dd30[_0x3f843f(0x198)](_0x59f8e2[_0x3f843f(0x20b)],{..._0x59f8e2,'children':[]});const _0x34434e=[];for(const _0x1f2b4d of _0x34dd30['values']()){const _0x15b797=_0x1f2b4d['supervisorKey']?_0x34dd30[_0x3f843f(0x10c)](_0x1f2b4d[_0x3f843f(0x22c)]):null;if(_0x15b797&&_0x15b797!==_0x1f2b4d)_0x15b797[_0x3f843f(0x159)][_0x3f843f(0x206)](_0x1f2b4d);else _0x34434e['push'](_0x1f2b4d);}const _0x2bde8a=(_0x4545ba,_0x59238b)=>_0x4545ba[_0x3f843f(0x194)]===_0x59238b['kind']?(_0x4545ba['pid']||0x0)-(_0x59238b['pid']||0x0):(_0x4545ba['kind']??'')<(_0x59238b[_0x3f843f(0x194)]??'')?-0x1:0x1,_0x2cf9e4=_0x25f110=>{const _0x2772e0=_0x3f843f;_0x25f110[_0x2772e0(0x117)](_0x2bde8a);for(const _0x18f034 of _0x25f110)if(_0x18f034[_0x2772e0(0x159)][_0x2772e0(0x202)])_0x2cf9e4(_0x18f034['children']);};return _0x2cf9e4(_0x34434e),_0x34434e;}[_0x468433(0x104)](_0x4e1efb){const _0x368092=_0x468433;return this['_groupByProcess']()[_0x368092(0x121)](_0x3ad231=>_0x3ad231[_0x368092(0x20b)]===_0x4e1efb)??null;}['_groupByProcess'](_0x2a8292=Date[_0x468433(0x1a7)]()){const _0x4dbf84=_0x468433,_0x37ff39=new Map();for(const _0x4dc62f of this[_0x4dbf84(0x16c)]()){const _0x4ad93e=_0x46d951(_0x4dc62f);let _0x224fa0=_0x37ff39[_0x4dbf84(0x10c)](_0x4ad93e);!_0x224fa0&&(_0x224fa0={'processKey':_0x4ad93e,'nodeKey':_0x4ad93e,'pid':_0x4dc62f[_0x4dbf84(0x1c1)],'ppid':_0x4dc62f[_0x4dbf84(0x298)]??null,'host':_0x4dc62f[_0x4dbf84(0x199)]??null,'kind':_0x4dc62f[_0x4dbf84(0x194)],'role':null,'supervisorKey':_0x4dc62f[_0x4dbf84(0x22c)]??null,'slot':_0x4dc62f[_0x4dbf84(0x12e)]??null,'slotKey':_0x4dc62f[_0x4dbf84(0x215)]??null,'caps':_0x4dc62f[_0x4dbf84(0x247)]??null,'lifecycle':_0x4dc62f[_0x4dbf84(0x2c8)]??null,'uptime':Math[_0x4dbf84(0x293)](0x0,Math[_0x4dbf84(0x92)]((_0x2a8292-(_0x4dc62f[_0x4dbf84(0x12c)]||_0x2a8292))/0x3e8)),'startedAt':_0x4dc62f[_0x4dbf84(0x12c)]??null,'meta':_0x4dc62f[_0x4dbf84(0x9d)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x37ff39[_0x4dbf84(0x198)](_0x4ad93e,_0x224fa0));_0x224fa0[_0x4dbf84(0x126)][_0x4dbf84(0x206)]({'instanceId':_0x4dc62f[_0x4dbf84(0x161)]??null,'role':_0x4dc62f[_0x4dbf84(0x27c)]??null,'listenAddr':_0x4dc62f[_0x4dbf84(0xf9)]??null,'lifecycle':_0x4dc62f['lifecycle']??null,'processing':_0x4dc62f[_0x4dbf84(0x2c7)]??null});if(!_0x224fa0[_0x4dbf84(0x27c)]&&_0x4dc62f['role'])_0x224fa0[_0x4dbf84(0x27c)]=_0x4dc62f['role'];if(!_0x224fa0[_0x4dbf84(0xf9)]&&_0x4dc62f[_0x4dbf84(0xf9)])_0x224fa0[_0x4dbf84(0xf9)]=_0x4dc62f[_0x4dbf84(0xf9)];if(!_0x224fa0['processing']&&_0x4dc62f[_0x4dbf84(0x2c7)])_0x224fa0['processing']=_0x4dc62f[_0x4dbf84(0x2c7)];if(!_0x224fa0['engines']&&_0x4dc62f['engines'])_0x224fa0[_0x4dbf84(0xa0)]=_0x4dc62f['engines'];if(!_0x224fa0['singletonClaims']&&_0x4dc62f[_0x4dbf84(0x1bd)])_0x224fa0[_0x4dbf84(0x1bd)]=_0x4dc62f[_0x4dbf84(0x1bd)];if(_0x224fa0[_0x4dbf84(0x247)]==null&&_0x4dc62f['caps'])_0x224fa0[_0x4dbf84(0x247)]=_0x4dc62f[_0x4dbf84(0x247)];if(_0x4dc62f[_0x4dbf84(0x2b4)]&&(!_0x224fa0[_0x4dbf84(0x2b4)]||(_0x4dc62f[_0x4dbf84(0x2b4)]['at']??0x0)>(_0x224fa0[_0x4dbf84(0x2b4)]['at']??0x0)))_0x224fa0[_0x4dbf84(0x2b4)]=_0x4dc62f[_0x4dbf84(0x2b4)];}return[..._0x37ff39[_0x4dbf84(0x179)]()];}[_0x468433(0x156)](){const _0x2e31a9=_0x468433,_0x2b6221=[],_0x6d5cb={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x1f0697 of this[_0x2e31a9(0x93)]()){_0x2b6221[_0x2e31a9(0x206)]({'processKey':_0x1f0697['processKey'],'kind':_0x1f0697[_0x2e31a9(0x194)],'pid':_0x1f0697[_0x2e31a9(0x1c1)],'supervisorKey':_0x1f0697[_0x2e31a9(0x22c)],'meta':_0x1f0697[_0x2e31a9(0x9d)]??null,'uptime':_0x1f0697[_0x2e31a9(0x192)],'stats':_0x1f0697[_0x2e31a9(0x2b4)]??null}),_0x6d5cb[_0x2e31a9(0xeb)]++;if(_0x1f0697['stats']){_0x6d5cb[_0x2e31a9(0x108)]+=_0x1f0697['stats'][_0x2e31a9(0x108)]||0x0,_0x6d5cb[_0x2e31a9(0x21d)]+=(_0x1f0697[_0x2e31a9(0x2b4)][_0x2e31a9(0x21d)]||0x0)+(_0x1f0697[_0x2e31a9(0x2b4)]['threads']?.[_0x2e31a9(0x21d)]||0x0);const _0x2ff0b8=_0x1f0697[_0x2e31a9(0x2b4)]['threads'];_0x2ff0b8&&(_0x6d5cb[_0x2e31a9(0x1b0)][_0x2e31a9(0x1e1)]+=_0x2ff0b8[_0x2e31a9(0x1e1)]||0x0,_0x6d5cb[_0x2e31a9(0x1b0)][_0x2e31a9(0x1f8)]+=_0x2ff0b8[_0x2e31a9(0x1f8)]||0x0,_0x6d5cb[_0x2e31a9(0x1b0)]['busy']+=_0x2ff0b8[_0x2e31a9(0x14a)]||0x0);}}return{'totals':_0x6d5cb,'nodes':_0x2b6221};}async[_0x468433(0x1cb)]({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x1cc9ba=_0x468433;this[_0x1cc9ba(0x222)]=this[_0x1cc9ba(0x222)]||!!writer,this[_0x1cc9ba(0x1c9)]=this[_0x1cc9ba(0x1c9)]||!!reader,this[_0x1cc9ba(0x181)]=kind||this[_0x1cc9ba(0x181)]||(_0x4c308f[_0x1cc9ba(0x172)]?_0x1cc9ba(0x268):'cli'),this[_0x1cc9ba(0x1ca)]=supervisorKey??this[_0x1cc9ba(0x1ca)],this['_listenAddr']=listenAddr??this[_0x1cc9ba(0x137)],this[_0x1cc9ba(0x16b)](),await this[_0x1cc9ba(0x196)]();if(!writer&&!reader)return null;if(!this[_0x1cc9ba(0xe3)]){const _0x3b750a=await this[_0x1cc9ba(0x2a9)][_0x1cc9ba(0x183)](_0x3e9705,{'sync':![],'durability':_0x1cc9ba(0xdd)});await _0x3b750a['ensureType'](_0x1f2a53),this['_statusEnv']=_0x3b750a;}return this['_statusEnv'];}[_0x468433(0x185)](){const _0x23d6fb=_0x468433;return this[_0x23d6fb(0x10f)]!==this[_0x23d6fb(0xe3)]&&(this[_0x23d6fb(0x10f)]=this[_0x23d6fb(0xe3)],this[_0x23d6fb(0x1b8)]=this[_0x23d6fb(0xe3)][_0x23d6fb(0xbd)](_0x1f2a53)['data']),this[_0x23d6fb(0x1b8)];}[_0x468433(0x12a)](_0x3c699d){const _0xd04502=_0x468433;if(_0x3a4305)return this[_0xd04502(0x185)]()[_0xd04502(0x28f)](_0x3c699d[_0xd04502(0x125)],_0x3c699d,0x1);const _0x454a4d=this[_0xd04502(0x185)]()[_0xd04502(0x1bf)](_0x3c699d[_0xd04502(0x125)],_0x3c699d,0x1);if(_0x454a4d&&typeof _0x454a4d['then']===_0xd04502(0xc0))_0x454a4d['then'](undefined,()=>{});return _0x454a4d;}[_0x468433(0x295)](_0x179d00){const _0x543628=_0x468433;return this[_0x543628(0x185)]()[_0x543628(0x28f)](_0x179d00['nodeKey'],_0x179d00,0x1);}[_0x468433(0x20d)](_0x3611d3){const _0x3ae8fe=_0x468433;if(_0x3a4305)try{return this['_nodeDb']()['removeSync'](_0x3611d3);}catch{return![];}const _0x5cde65=this[_0x3ae8fe(0x185)]()[_0x3ae8fe(0x21b)](_0x3611d3);if(_0x5cde65&&typeof _0x5cde65[_0x3ae8fe(0x15b)]==='function')_0x5cde65[_0x3ae8fe(0x15b)](undefined,()=>{});return _0x5cde65;}async['putNode'](_0x1706c1){const _0x182c12=_0x468433;if(!this[_0x182c12(0xe3)]||!this[_0x182c12(0x222)]||!_0x1706c1?.['nodeKey'])return;return this[_0x182c12(0x12a)](_0x1706c1);}async[_0x468433(0x18e)](_0x1fd67d){const _0x27f8b4=_0x468433;if(!this['_statusEnv']||!this[_0x27f8b4(0x222)]||!_0x1fd67d)return;const _0x5f2896=_0x1fd67d['includes']('#'),_0x57a1de=[];for(const {key:_0x5e0299}of this[_0x27f8b4(0xe3)][_0x27f8b4(0x1c6)](_0x1f2a53)){if(_0x5e0299===_0x1fd67d||!_0x5f2896&&typeof _0x5e0299===_0x27f8b4(0x1f5)&&_0x5e0299[_0x27f8b4(0xf0)](_0x1fd67d+'#'))_0x57a1de[_0x27f8b4(0x206)](_0x5e0299);}for(const _0x12f6a1 of _0x57a1de){try{this[_0x27f8b4(0x185)]()[_0x27f8b4(0xd1)](_0x12f6a1);}catch{}}}[_0x468433(0x203)](_0x574772){const _0xf1c9cd=_0x468433;if(typeof _0x574772?.['pid']!==_0xf1c9cd(0x153))return![];if(_0x574772[_0xf1c9cd(0x199)]!==_0x596be7[_0xf1c9cd(0xd9)]())return![];if(_0x574772[_0xf1c9cd(0x1c1)]===process['pid'])return![];if(_0x574772[_0xf1c9cd(0x17f)]!=null&&_0x574772[_0xf1c9cd(0x17f)]<Date[_0xf1c9cd(0x1a7)]()-_0x27c1a3)return!![];try{return process[_0xf1c9cd(0x14b)](_0x574772[_0xf1c9cd(0x1c1)],0x0),![];}catch(_0x2cfcd6){return _0x2cfcd6[_0xf1c9cd(0x1be)]===_0xf1c9cd(0x299);}}[_0x468433(0x16c)](){const _0x4666ca=_0x468433;if(!this['_statusEnv'])return[];try{this['_statusEnv']['db']?.[_0x4666ca(0x253)]?.();}catch{}const _0x17c6fa=Date[_0x4666ca(0x1a7)](),_0x2007e1=_0x596be7[_0x4666ca(0xd9)](),_0x159afd=[];for(const {value:_0x3084de}of this[_0x4666ca(0xe3)][_0x4666ca(0x1c6)](_0x1f2a53)){if(!_0x3084de)continue;let _0x3f12e3=null;_0x3084de[_0x4666ca(0x199)]===_0x2007e1&&typeof _0x3084de[_0x4666ca(0x1c1)]===_0x4666ca(0x153)&&(_0x3f12e3=!this['_nodeDead'](_0x3084de));if(_0x3f12e3===![])continue;const _0x1039ca=_0x3084de[_0x4666ca(0x17f)]==null||_0x3084de['expiresAt']>=_0x17c6fa;if(_0x3f12e3===!![]||_0x1039ca)_0x159afd['push'](_0x3084de);}return _0x159afd;}async[_0x468433(0x291)](_0x1f48a6=0x0){const _0x267695=_0x468433;if(!this['_statusEnv']||!this[_0x267695(0x222)])return;const _0x3f43c5=Date['now']()-_0x1f48a6,_0x1a8ff8=new Set(),_0xec2674=[],_0xabc629=_0x596be7[_0x267695(0xd9)](),_0x4488e8=require$$6[_0x267695(0xf6)];for(const {key:_0x4d5a5e,value:_0x49e74c}of this['_statusEnv'][_0x267695(0x1c6)](_0x1f2a53)){if(!_0x49e74c)continue;const _0x2dd2d4=_0x49e74c[_0x267695(0x199)]===_0xabc629&&typeof _0x49e74c[_0x267695(0x1c1)]===_0x267695(0x153),_0x55103a=_0x2dd2d4?this[_0x267695(0x203)](_0x49e74c):_0x49e74c[_0x267695(0x17f)]!=null&&_0x49e74c['expiresAt']<_0x3f43c5;if(_0x55103a)_0xec2674['push'](_0x4d5a5e);else{_0x1a8ff8['add'](_0x46d951(_0x49e74c)??_0x4d5a5e);if(_0x49e74c[_0x267695(0xf6)]&&_0x49e74c[_0x267695(0xf6)]!==_0x4488e8){if(!this[_0x267695(0xe5)])this['_versionSkewWarned']=new Set();!this['_versionSkewWarned'][_0x267695(0x274)](_0x49e74c[_0x267695(0xf6)])&&(this['_versionSkewWarned'][_0x267695(0x1f0)](_0x49e74c[_0x267695(0xf6)]),this['okdb'][_0x267695(0x88)]?.[_0x267695(0xdb)]?.(_0x267695(0xb2)+(_0x49e74c['pid']??'?')+_0x267695(0xb1)+_0x49e74c[_0x267695(0xf6)]+'\x20while\x20this\x20process\x20runs\x20'+_0x4488e8+'\x20—\x20'+_0x267695(0x17e),{'feature':_0x267695(0x213)}));}}}for(const _0x47208c of _0xec2674)this[_0x267695(0x20d)](_0x47208c);if(this[_0x267695(0x16b)]()){const _0x4b9868=[];for(const {key:_0x42c794}of this[_0x267695(0x1f6)](_0x267695(0xbb))){if(!_0x1a8ff8[_0x267695(0x274)](_0x42c794)){if(_0x3a4305)try{this['_desired'][_0x267695(0xd1)](_0x267695(0x24f)+_0x42c794);}catch{}else _0x4b9868[_0x267695(0x206)](this['_desired'][_0x267695(0x21b)](_0x267695(0x24f)+_0x42c794));}}if(_0x4b9868[_0x267695(0x202)])await Promise['allSettled'](_0x4b9868);}}[_0x468433(0x287)](_0x1fa9d2=null){const _0x23aa61=_0x468433;if(this[_0x23aa61(0x294)])return;if(!this[_0x23aa61(0x222)]||!this[_0x23aa61(0xe3)]){this['okdb']?.['log']?.[_0x23aa61(0xdb)]?.(_0x23aa61(0x142)+this['_isWriter']+_0x23aa61(0x278)+!!this[_0x23aa61(0xe3)]+_0x23aa61(0x128),{'feature':_0x23aa61(0xeb)});return;}this[_0x23aa61(0x1d4)]=_0x1fa9d2,this[_0x23aa61(0x9a)]=()=>this[_0x23aa61(0xc7)]();for(const _0x451c9c of _0x47f7c3)this['okdb'][_0x23aa61(0x234)]['on'](_0x451c9c,this[_0x23aa61(0x9a)]);this['_publishNow']();const _0x4bd653=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x37d55a;this[_0x23aa61(0x294)]=setInterval(()=>{const _0x3e5a0f=_0x23aa61;if(this['_onTick'])try{this[_0x3e5a0f(0x1d4)]();}catch{}this[_0x3e5a0f(0x25b)](),this[_0x3e5a0f(0x291)]()[_0x3e5a0f(0x255)](()=>{});},_0x4bd653);if(this[_0x23aa61(0x294)][_0x23aa61(0x187)])this[_0x23aa61(0x294)]['unref']();}[_0x468433(0xc7)](){const _0x5287ca=_0x468433;if(!this['_isWriter']||!this[_0x5287ca(0xe3)])return;if(Date['now']()-this['_lastPublishAt']<_0x1b0310)return;this[_0x5287ca(0x25b)]();}[_0x468433(0x25b)](){const _0x5f0985=_0x468433;if(!this[_0x5f0985(0x222)]||!this[_0x5f0985(0xe3)])return;this[_0x5f0985(0xa3)]=Date[_0x5f0985(0x1a7)]();try{const _0x4dfd4a=[this[_0x5f0985(0x95)]()];for(const _0xce78a6 of this[_0x5f0985(0x15d)]['values']())_0x4dfd4a[_0x5f0985(0x206)](this['_buildChildRow'](_0xce78a6));const _0x4ba99b=_0x2a1fe2[_0x5f0985(0x1a6)]?_0x2a1fe2[_0x5f0985(0x1a7)]():0x0;for(const _0x1cb682 of _0x4dfd4a){try{this[_0x5f0985(0x295)](_0x1cb682),this[_0x5f0985(0x106)]=![];}catch(_0x27d4bf){!this[_0x5f0985(0x106)]&&(this[_0x5f0985(0x106)]=!![],this[_0x5f0985(0x2a9)]?.['log']?.[_0x5f0985(0xdb)]?.(_0x5f0985(0x292)+_0x27d4bf[_0x5f0985(0x28a)],{'feature':_0x5f0985(0xeb)}));}}if(_0x2a1fe2[_0x5f0985(0x1a6)])_0x2a1fe2[_0x5f0985(0xf1)](_0x5f0985(0x12f),_0x2a1fe2[_0x5f0985(0x1a7)]()-_0x4ba99b,_0x5f0985(0x123)+_0x4dfd4a[_0x5f0985(0x202)]+_0x5f0985(0x20a));}catch(_0x54e24e){!this[_0x5f0985(0x106)]&&(this[_0x5f0985(0x106)]=!![],this[_0x5f0985(0x2a9)]?.[_0x5f0985(0x88)]?.[_0x5f0985(0xdb)]?.('registry\x20publish\x20failing:\x20'+_0x54e24e['message'],{'feature':'processes'}));}}async[_0x468433(0x261)](){const _0x556ff5=_0x468433;if(this[_0x556ff5(0x9a)]){for(const _0x19fe99 of _0x47f7c3){try{this['okdb'][_0x556ff5(0x234)][_0x556ff5(0xf3)](_0x19fe99,this[_0x556ff5(0x9a)]);}catch{}}this[_0x556ff5(0x9a)]=null;}this['_hbTimer']&&(clearInterval(this[_0x556ff5(0x294)]),this[_0x556ff5(0x294)]=null);try{if(this['_statusEnv']&&this[_0x556ff5(0x222)])await this[_0x556ff5(0x18e)](this[_0x556ff5(0x2b0)]);}catch{}}async['deregisterSelf'](){const _0x4ea4fe=_0x468433;if(!this[_0x4ea4fe(0xe3)]||!this[_0x4ea4fe(0x222)])return;try{await this['removeNode'](this['_rowKey']);}catch{}try{const _0xdcae56=[];for(const {value:_0x313dd0}of this['_statusEnv'][_0x4ea4fe(0x1c6)](_0x1f2a53)){if(_0x313dd0?.['ppid']===process[_0x4ea4fe(0x1c1)]&&_0x313dd0[_0x4ea4fe(0x125)])_0xdcae56[_0x4ea4fe(0x206)](_0x313dd0['nodeKey']);}for(const _0x2e7e29 of _0xdcae56){try{await this['removeNode'](_0x2e7e29);}catch{}}}catch{}}async['publishOwnRow'](){const _0x595c8b=_0x468433;return this[_0x595c8b(0x262)](this[_0x595c8b(0x95)]());}async[_0x468433(0xa5)](_0x435459){const _0x5a09e4=_0x468433;if(!this[_0x5a09e4(0xe3)]||!this[_0x5a09e4(0x222)])return;return this[_0x5a09e4(0x262)](this[_0x5a09e4(0x216)](_0x435459));}['_buildChildRow']({pid:_0x226f28,startedAt:_0x40cf6d,kind:_0x53ae26,supervisorKey:_0x5acbd9,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x468433(0x190),meta:meta=null,stats:stats=null}){const _0x3f1b58=_0x468433,_0x55647a=Date[_0x3f1b58(0x1a7)](),_0x40fbd4=_0x4b3643(_0x226f28,_0x40cf6d);return{'nodeKey':_0x5a2ed8(_0x40fbd4,'0'),'processKey':_0x40fbd4,'instanceId':'0','pid':_0x226f28,'startedAt':_0x40cf6d,'ppid':process[_0x3f1b58(0x1c1)],'host':_0x596be7[_0x3f1b58(0xd9)](),'supervisorKey':_0x5acbd9,'slot':slot,'slotKey':slotKey,'kind':_0x53ae26,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x55647a,'expiresAt':_0x55647a+_0x410fca,'caps':this[_0x3f1b58(0x85)](_0x53ae26,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async['addSupervisedChild'](_0x284f0d){const _0x263c2b=_0x468433;if(!_0x284f0d?.[_0x263c2b(0x1c1)])return null;const _0x4ba729=_0x4b3643(_0x284f0d[_0x263c2b(0x1c1)],_0x284f0d[_0x263c2b(0x12c)]);this[_0x263c2b(0x15d)]['set'](_0x4ba729,{..._0x284f0d,'supervisorKey':_0x284f0d[_0x263c2b(0x22c)]??this[_0x263c2b(0x135)]});if(this[_0x263c2b(0x222)])await this[_0x263c2b(0xa5)](this[_0x263c2b(0x15d)]['get'](_0x4ba729))['catch']?.(()=>{});return _0x4ba729;}['removeSupervisedChild'](_0x2754f8){const _0x576e41=_0x468433;if(!_0x2754f8)return;return this[_0x576e41(0x15d)][_0x576e41(0x200)](_0x2754f8),this[_0x576e41(0x18e)](_0x2754f8);}['_sampleOwnStats'](){const _0xefab88=_0x468433,_0x3264e7=Date[_0xefab88(0x1a7)](),_0x52d41d=process[_0xefab88(0xa6)](),_0x5cd8f6=(_0x3264e7-this['_lastCpuAt'])*0x3e8;if(_0x5cd8f6>=0x3d090){const _0x17098e=_0x52d41d['user']-this[_0xefab88(0x155)][_0xefab88(0x191)]+(_0x52d41d[_0xefab88(0x1fe)]-this[_0xefab88(0x155)]['system']),_0x127786=_0x596be7[_0xefab88(0x201)]()[_0xefab88(0x202)]||0x1;this[_0xefab88(0x23d)]=Math[_0xefab88(0x17b)](0x64,Math[_0xefab88(0x92)](_0x17098e/(_0x5cd8f6*_0x127786)*0x64)),this[_0xefab88(0x130)]=Math[_0xefab88(0x92)](_0x5cd8f6/0x3e8),this[_0xefab88(0x155)]=_0x52d41d,this['_lastCpuAt']=_0x3264e7;}const _0xbd87b2=process['memoryUsage'](),_0x4ba1c0=this[_0xefab88(0x1ed)][_0xefab88(0x2c4)];let _0x281936=0x0;if(_0x4ba1c0>0x0){const _0x5ede69=[this['okdb'],...this[_0xefab88(0x2a9)][_0xefab88(0x24d)]?.['values']?.()??[]];for(const _0x14b363 of _0x5ede69){const _0x218c79=_0x14b363['functions']?.[_0xefab88(0x86)];if(_0x218c79)_0x281936+=_0x218c79['liveThreadStats'][_0xefab88(0x14a)];}}let _0x1d27f6=null;const _0x446c17=_0x4ba1c0;if(_0x446c17>0x0){let _0x2ab9bb=0x0;for(const _0x3d40f9 of this[_0xefab88(0x1ed)]['values']())_0x2ab9bb+=_0x3d40f9[_0xefab88(0x21d)]||0x0;_0x1d27f6={'count':_0x446c17,'heapUsed':_0x2ab9bb,'sandbox':_0x4ba1c0,'busy':_0x281936};}return{'rss':_0xbd87b2[_0xefab88(0x108)],'heapUsed':_0xbd87b2['heapUsed'],'heapTotal':_0xbd87b2['heapTotal'],'external':_0xbd87b2[_0xefab88(0xad)],'cpuPct':this[_0xefab88(0x23d)],'cpuWindowMs':this['_lastCpuWindowMs']??null,'threads':_0x1d27f6,'at':_0x3264e7};}[_0x468433(0xb0)](_0x58979e,_0x2f19cc){const _0x2323dd=_0x468433;if(!_0x58979e||!_0x2f19cc)return;this[_0x2323dd(0x1ed)][_0x2323dd(0x198)](_0x58979e,_0x2f19cc);}[_0x468433(0xfe)](_0x3e7dbe){const _0x2919cc=_0x468433;this[_0x2919cc(0x1ed)][_0x2919cc(0x200)](_0x3e7dbe);}[_0x468433(0x1e0)](_0x16dbb3,_0x4dd8f8,_0x23f17b=undefined){const _0x587a24=_0x468433,_0x1973aa=this['_children']['get'](_0x16dbb3);if(!_0x1973aa||!_0x4dd8f8)return;if(_0x23f17b!==undefined)_0x1973aa[_0x587a24(0x2c7)]=_0x23f17b;_0x1973aa[_0x587a24(0x2b4)]={'rss':_0x4dd8f8['rss']??null,'heapUsed':_0x4dd8f8[_0x587a24(0x21d)]??null,'heapTotal':_0x4dd8f8['heapTotal']??null,'external':_0x4dd8f8['external']??null,'cpuPct':_0x4dd8f8['cpuPct']??null,'cpuWindowMs':_0x4dd8f8[_0x587a24(0x2b6)]??null,'threads':_0x4dd8f8[_0x587a24(0x1b0)]??null,'claims':_0x4dd8f8[_0x587a24(0x14e)]??null,'envsOpen':_0x4dd8f8['envsOpen']??null,'at':Date[_0x587a24(0x1a7)]()};}['_buildOwnRow'](){const _0x1ee60f=_0x468433,_0x55116b=Date['now'](),_0x3d6fe7=this[_0x1ee60f(0x2a9)][_0x1ee60f(0xec)]||{},_0x3ce3d6=this[_0x1ee60f(0x181)]||_0x1ee60f(0x1ff);return{'nodeKey':this['_rowKey'],'processKey':this[_0x1ee60f(0x135)],'instanceId':this[_0x1ee60f(0x15f)],'pid':process['pid'],'startedAt':this[_0x1ee60f(0x297)],'instanceStartedAt':this['_startedAt'],'ppid':typeof process[_0x1ee60f(0x298)]===_0x1ee60f(0x153)?process[_0x1ee60f(0x298)]:null,'host':_0x596be7[_0x1ee60f(0xd9)](),'supervisorKey':this[_0x1ee60f(0x1ca)]??null,'version':require$$6[_0x1ee60f(0xf6)],'kind':_0x3ce3d6,'role':{'engines':!!_0x3d6fe7[_0x1ee60f(0xa0)],'processors':!!_0x3d6fe7['processors'],'compaction':_0x3d6fe7['compaction'],'http':_0x3d6fe7[_0x1ee60f(0x107)]},'listenAddr':this[_0x1ee60f(0x137)]??null,'heartbeatAt':_0x55116b,'expiresAt':_0x55116b+_0x410fca,'caps':this['_caps'](_0x3ce3d6,_0x3d6fe7),'lifecycle':{'state':_0x1ee60f(0x190),'desiredVersionApplied':null},'meta':{...this[_0x1ee60f(0x2a5)]},'processing':_0x3d6fe7[_0x1ee60f(0x1ce)]?this['_buildProcessingFacet']():null,'engines':_0x3d6fe7[_0x1ee60f(0xa0)]?[...this[_0x1ee60f(0x2a9)][_0x1ee60f(0xce)]??[]]:null,'singletonClaims':this[_0x1ee60f(0x289)](),'stats':this[_0x1ee60f(0x10a)](),'writers':this[_0x1ee60f(0x1a8)]()};}[_0x468433(0x1a8)](){const _0x3c57a3=_0x468433,_0x14da2d={};try{for(const [_0x4d0e79,_0x55e8e2]of this['okdb'][_0x3c57a3(0x24d)]){try{const _0x10457a=_0x55e8e2['writerStatus']?.();if(!_0x10457a)continue;if(!_0x10457a[_0x3c57a3(0x2b1)]&&!_0x10457a[_0x3c57a3(0x1e6)]&&!(_0x10457a['parkedNow']??0x0)&&!_0x10457a[_0x3c57a3(0x87)])continue;_0x14da2d[_0x4d0e79]={'depth':_0x10457a[_0x3c57a3(0x2b1)],'oldestPendingMs':_0x10457a[_0x3c57a3(0x27e)],'committed':_0x10457a[_0x3c57a3(0x1e6)],'commitsPerSec':_0x10457a[_0x3c57a3(0x1f2)],'commitP99Ms':_0x10457a[_0x3c57a3(0x235)],'parkedNow':_0x10457a[_0x3c57a3(0x2b2)]??0x0,'draining':!!_0x10457a[_0x3c57a3(0x87)]};}catch{}}}catch{}return Object['keys'](_0x14da2d)[_0x3c57a3(0x202)]?_0x14da2d:null;}[_0x468433(0x289)](){const _0x26c016=_0x468433,_0x25bc3d=process[_0x26c016(0x1c1)],_0x41c596=Date[_0x26c016(0x1a7)](),_0x4f2f07=_0x57ae5c=>{const _0x20014f=_0x26c016;if(!_0x57ae5c)return[];const _0x186d00=[];try{for(const {id:_0x4cefee,entry:_0x224b1d}of _0x57ae5c[_0x20014f(0xc9)]()){if(_0x224b1d?.[_0x20014f(0x8a)]?.[_0x20014f(0x1c1)]!==_0x25bc3d)continue;const _0x312540=_0x224b1d[_0x20014f(0xfa)]??_0x224b1d['acquiredAt']??0x0;if(_0x312540+(_0x224b1d[_0x20014f(0x212)]??0x0)<_0x41c596)continue;_0x186d00[_0x20014f(0x206)](_0x4cefee);}}catch{}return _0x186d00;},_0x58762c=_0x4f2f07(this[_0x26c016(0x166)]('compact')),_0x33cb39=_0x4f2f07(this[_0x26c016(0x166)](_0x26c016(0x18b)));if(!_0x58762c[_0x26c016(0x202)]&&!_0x33cb39['length'])return null;return{'compact':_0x58762c,'replicate':_0x33cb39};}['_singletonLock'](_0x2cb467){const _0x25144f=_0x468433;if(!this[_0x25144f(0x2a9)]?.[_0x25144f(0x1a9)])return null;if(!this[_0x25144f(0x113)])this[_0x25144f(0x113)]=new Map();let _0xe82aac=this[_0x25144f(0x113)][_0x25144f(0x10c)](_0x2cb467);if(!_0xe82aac)try{_0xe82aac=new _0x5bf68e(this['okdb']['_rootDb'],{'namespace':_0x2cb467}),this[_0x25144f(0x113)][_0x25144f(0x198)](_0x2cb467,_0xe82aac);}catch{return null;}return _0xe82aac;}['_buildProcessingFacet'](){const _0x511c69=_0x468433,_0x4f6ed4=[];try{for(const [_0x267b2d,_0x5e30bd]of this['okdb']['_envs']){if(_0x267b2d[_0x511c69(0xf0)]('~'))continue;for(const _0x236626 of _0x5e30bd['processor'][_0x511c69(0x1e7)]())_0x4f6ed4[_0x511c69(0x206)]({..._0x236626,'env':_0x267b2d});}}catch{}return{'participate':this[_0x511c69(0x2a9)][_0x511c69(0x1ce)]?.[_0x511c69(0x273)]??![],'processors':_0x4f6ed4};}[_0x468433(0x16b)](){const _0x28c202=_0x468433;if(this[_0x28c202(0x2c2)])return!![];const _0x23c7db=this[_0x28c202(0x2a9)]['_rootDb'];if(!_0x23c7db)return![];return this['_desired']=_0x23c7db[_0x28c202(0xff)](_0x432641,{'dupSort':![]}),this['_cmd']=_0x23c7db[_0x28c202(0xff)](_0x4e0e8d,{'dupSort':![]}),!![];}async[_0x468433(0x196)](){const _0x385ac0=_0x468433;if(!this[_0x385ac0(0x16b)]())return;const _0x5a0242=_0x385ac0(0x267),_0x5791c9=0x1,_0x1c56cd=this[_0x385ac0(0x2c2)][_0x385ac0(0x10c)](_0x5a0242)??0x0;if(_0x1c56cd>=_0x5791c9)return;const _0x35d1b0=_0x3bbda6=>{const _0xdf68e7=_0x385ac0;if(_0x3bbda6===_0xdf68e7(0x12b))return _0xdf68e7(0xb4);if(_0x3bbda6===_0xdf68e7(0x13d))return'fanout';return _0x3bbda6;};await this[_0x385ac0(0x2a9)][_0x385ac0(0x2a2)][_0x385ac0(0xb6)]['transaction'](()=>{const _0x24e69f=_0x385ac0;for(const _0x20feca of[_0x24e69f(0x2af),_0x24e69f(0x221)]){for(const {key:_0x580188,value:_0x1fb142}of this['_desired'][_0x24e69f(0x1c6)]({'start':_0x20feca,'end':_0x20feca+'\xff'})){if(typeof _0x580188!==_0x24e69f(0x1f5)||!_0x580188[_0x24e69f(0xf0)](_0x20feca))break;const _0x4557fb=_0x35d1b0(_0x1fb142[_0x24e69f(0xbc)]);if(_0x4557fb!==_0x1fb142[_0x24e69f(0xbc)])this[_0x24e69f(0x2c2)][_0x24e69f(0x1bf)](_0x580188,{..._0x1fb142,'mode':_0x4557fb});}}this[_0x24e69f(0x2c2)]['put'](_0x5a0242,_0x5791c9);});}[_0x468433(0x1eb)](){const _0xff7357=_0x468433;return!!this[_0xff7357(0x2c2)];}[_0x468433(0x1c5)](_0x5e10b4,_0xc0e80d){const _0x3a05d3=_0x468433;if(!this['_ensureDesired']())return null;const _0x5563da=_0x5e10b4+'/'+_0xc0e80d;return this[_0x3a05d3(0x1a4)](),this[_0x3a05d3(0x218)][_0x3a05d3(0x10c)](_0x5563da)??this[_0x3a05d3(0x2c2)][_0x3a05d3(0x10c)](_0x5563da)??null;}[_0x468433(0x1a4)](){const _0x5eb9f6=_0x468433;if(!_0x3a4305)return;try{this[_0x5eb9f6(0x2a9)][_0x5eb9f6(0x2a2)]?.['db']?.[_0x5eb9f6(0x253)]?.();}catch{}}async[_0x468433(0xfb)](_0x2387d0,_0x49c3bf,_0x3581c8){const _0x4a7422=_0x468433;if(!this[_0x4a7422(0x16b)]())return null;const _0x2e1c0b=_0x2387d0+'/'+_0x49c3bf;this['_refreshDesiredSnapshot']();const _0x44ab5f=this[_0x4a7422(0x218)][_0x4a7422(0x10c)](_0x2e1c0b)??this[_0x4a7422(0x2c2)][_0x4a7422(0x10c)](_0x2e1c0b)??{'version':0x0},_0x1a6dce=(_0x44ab5f[_0x4a7422(0xf6)]||0x0)+0x1,_0x53dab5={..._0x44ab5f,..._0x3581c8,'version':_0x1a6dce,'updatedAt':Date[_0x4a7422(0x1a7)]()};this[_0x4a7422(0x218)]['set'](_0x2e1c0b,_0x53dab5);try{await this[_0x4a7422(0x2a9)][_0x4a7422(0x2a2)][_0x4a7422(0xb6)][_0x4a7422(0x2b3)](()=>{const _0x1c2590=_0x4a7422;this['_desired'][_0x1c2590(0x1bf)](_0x2e1c0b,_0x53dab5);});}finally{if(this[_0x4a7422(0x218)][_0x4a7422(0x10c)](_0x2e1c0b)===_0x53dab5)this['_desiredOverlay']['delete'](_0x2e1c0b);}return _0x1a6dce;}[_0x468433(0x1f6)](_0x2bf554){const _0x151f21=_0x468433;if(!this[_0x151f21(0x16b)]())return[];this[_0x151f21(0x1a4)]();const _0x1645f3=_0x2bf554+'/',_0x5ebd0d=[];for(const {key:_0x2e7567,value:_0x5174f0}of this[_0x151f21(0x2c2)][_0x151f21(0x1c6)]({'start':_0x1645f3,'end':_0x1645f3+'\xff'})){if(typeof _0x2e7567!==_0x151f21(0x1f5)||!_0x2e7567[_0x151f21(0xf0)](_0x1645f3))break;_0x5ebd0d[_0x151f21(0x206)]({'key':_0x2e7567[_0x151f21(0x219)](_0x1645f3['length']),'value':_0x5174f0});}return _0x5ebd0d;}[_0x468433(0x189)](_0x202c98){const _0x4428cb=_0x468433;if(!this['_ensureDesired']())return null;return this[_0x4428cb(0x2c3)][_0x4428cb(0x10c)](_0x202c98)??null;}async['bumpCmd'](_0x23ff4b,_0x586c19,_0x26e55f={}){const _0x2dd0c=_0x468433;if(!this[_0x2dd0c(0x16b)]())return null;let _0x346f07;return await this['okdb'][_0x2dd0c(0x2a2)][_0x2dd0c(0xb6)][_0x2dd0c(0x2b3)](()=>{const _0x4e165f=_0x2dd0c,_0x1b2527=this[_0x4e165f(0x2c3)]['get'](_0x23ff4b)||{'epoch':0x0};_0x346f07=(_0x1b2527[_0x4e165f(0x232)]||0x0)+0x1,this[_0x4e165f(0x2c3)]['put'](_0x23ff4b,{..._0x1b2527,..._0x26e55f,'cmd':_0x586c19,'epoch':_0x346f07,'updatedAt':Date[_0x4e165f(0x1a7)]()});}),_0x346f07;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x1f04cf,'nodeKey':_0x4b3643,'logicalKey':_0x50f8d3,'slotKey':_0x5bab41,'PROCESS_ENV':_0x3e9705,'NODE_TYPE':_0x1f2a53},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x263001=_0xa5e620;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2838d2=require$$0$4,{EVENTS:_0x666ad5,CHANGE_ACTIONS:_0x11ccc2}=requireOkdbEnums(),{LOOP:_0x1b786c}=requireOkdbLoopMonitor(),_0x2be887=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x500d7f=0x5,_0x4786fe=0x2710;class _0x18697d extends _0x2838d2{constructor(_0x4df425,_0x2b2f4a={}){const _0x52cb2c=_0x70ef;super(),this['okdb']=_0x4df425,this[_0x52cb2c(0x288)]=_0x2b2f4a[_0x52cb2c(0x164)]??_0x2be887,this[_0x52cb2c(0x91)]=_0x2b2f4a['flushDebounce']??_0x500d7f,this[_0x52cb2c(0x1b9)]=_0x2b2f4a[_0x52cb2c(0x176)]??_0x4786fe,this['_started']=![],this[_0x52cb2c(0x1b4)]=new Map(),this['_baselines']=new Map(),this['_pending']=new Map(),this[_0x52cb2c(0x1de)]=null,this['_draining']=![],this['_seen']=new Set(),this[_0x52cb2c(0x2be)]=new Set(),this[_0x52cb2c(0x24c)]=_0x2ac871=>this['_handleInProcess'](_0x2ac871),this[_0x52cb2c(0x122)]=_0x2b2b47=>this[_0x52cb2c(0xf2)](_0x2b2b47),this[_0x52cb2c(0x1d9)]=_0x4cc1c9=>this[_0x52cb2c(0x1b3)](_0x4cc1c9),this[_0x52cb2c(0x1ea)]=()=>this[_0x52cb2c(0xa7)]();}[_0x263001(0xc3)](){const _0x53235f=_0x263001;if(this['_started'])return;this[_0x53235f(0x2a0)]=!![];for(const [_0x1abbb9,_0x4591a]of this[_0x53235f(0x2a9)][_0x53235f(0x24d)]){if(_0x1abbb9[_0x53235f(0xf0)]('~'))continue;try{_0x4591a[_0x53235f(0x8f)]();}catch{}}for(const [_0x5d41fa,_0x154c2f]of this[_0x53235f(0x2a9)][_0x53235f(0x24d)]){if(_0x5d41fa[_0x53235f(0xf0)]('~'))continue;try{this[_0x53235f(0x165)][_0x53235f(0x198)](_0x5d41fa,_0x154c2f[_0x53235f(0x188)]()||0x0);}catch{}}const {events:_0x1c347a}=this[_0x53235f(0x2a9)];_0x1c347a['on'](_0x666ad5[_0x53235f(0x12d)],this[_0x53235f(0x122)]),_0x1c347a['on'](_0x666ad5['ITEM_CREATE'],this[_0x53235f(0x24c)]),_0x1c347a['on'](_0x666ad5['ITEM_UPDATE'],this['_onItem']),_0x1c347a['on'](_0x666ad5[_0x53235f(0x1b2)],this['_onItem']),_0x1c347a['on'](_0x666ad5[_0x53235f(0x22e)],this[_0x53235f(0x1d9)]),_0x1c347a['once'](_0x666ad5[_0x53235f(0x11e)],this[_0x53235f(0x1ea)]);}[_0x263001(0xa7)](){const _0x3d8b82=_0x263001;if(!this['_started'])return;this[_0x3d8b82(0x2a0)]=![];const {events:_0x2c5e7d}=this[_0x3d8b82(0x2a9)];_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5[_0x3d8b82(0x12d)],this['_onPending']),_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5[_0x3d8b82(0x8e)],this['_onItem']),_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5['ITEM_UPDATE'],this[_0x3d8b82(0x24c)]),_0x2c5e7d['off'](_0x666ad5[_0x3d8b82(0x1b2)],this[_0x3d8b82(0x24c)]),_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5['SYSTEM_POKE'],this[_0x3d8b82(0x1d9)]);try{_0x2c5e7d[_0x3d8b82(0xf3)](_0x666ad5[_0x3d8b82(0x11e)],this['_onStop']);}catch{}this[_0x3d8b82(0x1de)]&&(clearTimeout(this[_0x3d8b82(0x1de)]),this[_0x3d8b82(0x1de)]=null),this['_pending'][_0x3d8b82(0x25f)](),this['_cursors'][_0x3d8b82(0x25f)](),this[_0x3d8b82(0x165)]['clear'](),this[_0x3d8b82(0x140)][_0x3d8b82(0x25f)](),this[_0x3d8b82(0x2be)][_0x3d8b82(0x25f)]();}[_0x263001(0x1dd)](_0x3c8671,_0x27a6af,_0x33f7b4,_0x2eb1b3){return _0x3c8671+'\x00'+_0x27a6af+'\x00'+_0x33f7b4+'\x00'+_0x2eb1b3;}[_0x263001(0xb3)](_0x37739d,_0x448c4,_0x3f155b,_0x84b00d){const _0x4dc47a=_0x263001,_0x19a049=this['_dedupeKey'](_0x37739d,_0x448c4,_0x3f155b,_0x84b00d);if(this[_0x4dc47a(0x140)][_0x4dc47a(0x274)](_0x19a049))return![];this[_0x4dc47a(0x140)][_0x4dc47a(0x1f0)](_0x19a049);if(this['_seen'][_0x4dc47a(0x2c4)]>this['_dedupeMax']){const _0x2ce02a=this[_0x4dc47a(0x140)][_0x4dc47a(0x179)]()[_0x4dc47a(0x1d1)]()['value'];this[_0x4dc47a(0x140)]['delete'](_0x2ce02a);}return!![];}[_0x263001(0xf2)](_0xe44f5b){const _0x26cea7=_0x263001;if(!this[_0x26cea7(0x2a0)]||!_0xe44f5b)return;const {env:_0x7d0677,type:_0x46d89b,key:_0x583e3f,clock:_0x5541f5}=_0xe44f5b;if(_0x7d0677==null||_0x46d89b==null||_0x583e3f==null)return;if(typeof _0x7d0677==='string'&&_0x7d0677[_0x26cea7(0xf0)]('~'))return;if(typeof _0x46d89b===_0x26cea7(0x1f5)&&_0x46d89b[_0x26cea7(0xf0)]('~'))return;this[_0x26cea7(0x2be)][_0x26cea7(0x1f0)](this[_0x26cea7(0x1dd)](_0x7d0677,_0x46d89b,_0x583e3f,_0x5541f5)),this['_pendingLocal'][_0x26cea7(0x2c4)]>this[_0x26cea7(0x1b9)]&&this[_0x26cea7(0x2be)][_0x26cea7(0x200)](this[_0x26cea7(0x2be)][_0x26cea7(0x179)]()[_0x26cea7(0x1d1)]()[_0x26cea7(0x27d)]);}['_handleInProcess'](_0x3fdbe3){const _0x55ead7=_0x263001;if(!this[_0x55ead7(0x2a0)]||!_0x3fdbe3)return;const {env:_0x487841,type:_0x5ef9c5,key:_0x56519c,clock:_0x2b3250,origin:_0x57f0ad,action:_0x5075ce,newValue:_0x250438,oldValue:_0x374bb7}=_0x3fdbe3;if(_0x487841==null||_0x5ef9c5==null||_0x56519c==null)return;if(typeof _0x487841===_0x55ead7(0x1f5)&&_0x487841['startsWith']('~'))return;if(typeof _0x5ef9c5===_0x55ead7(0x1f5)&&_0x5ef9c5['startsWith']('~'))return;this[_0x55ead7(0x2be)][_0x55ead7(0x200)](this[_0x55ead7(0x1dd)](_0x487841,_0x5ef9c5,_0x56519c,_0x2b3250));if(!this[_0x55ead7(0xb3)](_0x487841,_0x5ef9c5,_0x56519c,_0x2b3250))return;const _0x520e6a=_0x5075ce===_0x11ccc2[_0x55ead7(0x2c0)]?_0x55ead7(0x21b):_0x55ead7(0x1bf);this[_0x55ead7(0x29b)](_0x55ead7(0x264),{'env':_0x487841,'type':_0x5ef9c5,'key':_0x56519c,'op':_0x520e6a,'clock':_0x2b3250,'origin':_0x57f0ad,'value':_0x520e6a===_0x55ead7(0x21b)?null:_0x250438,'prevValue':_0x374bb7});}[_0x263001(0x1b3)](_0x511796){const _0xdc811a=_0x263001;if(!this['_started'])return;if(!_0x511796||typeof _0x511796[_0xdc811a(0x11d)]!==_0xdc811a(0x1f5)||typeof _0x511796[_0xdc811a(0x15a)]!==_0xdc811a(0x1f5))return;const {env:_0x182d87,type:_0x384d00}=_0x511796;if(_0x182d87[_0xdc811a(0xf0)]('~')||_0x384d00[_0xdc811a(0xf0)]('~'))return;this['_pending'][_0xdc811a(0x198)](_0x182d87+'\x00'+_0x384d00,{'env':_0x182d87,'type':_0x384d00}),this[_0xdc811a(0x9e)]();}[_0x263001(0x9e)](){if(this['_flushTimer'])return;const _0x5b7a02=()=>{const _0x248a20=_0x70ef;this['_flushTimer']=null,this['_drain']()[_0x248a20(0x255)](()=>{});};this['_flushTimer']=setTimeout(_0x5b7a02,this['_flushDebounce']>0x0?this['_flushDebounce']:0x0);}async[_0x263001(0x22b)](){const _0x3b9fed=_0x263001;if(this[_0x3b9fed(0x197)]){this[_0x3b9fed(0x9e)]();return;}this['_draining']=!![];try{const _0x37ccf0=[...this[_0x3b9fed(0xd4)][_0x3b9fed(0x179)]()];this[_0x3b9fed(0xd4)]['clear']();let _0x4bea92=![];for(const {env:_0x5d60d7,type:_0x18bfcb}of _0x37ccf0){try{const _0x107baa=await this[_0x3b9fed(0x10d)](_0x5d60d7,_0x18bfcb);if(_0x107baa)_0x4bea92=!![];}catch{this[_0x3b9fed(0xd4)][_0x3b9fed(0x198)](_0x5d60d7+'\x00'+_0x18bfcb,{'env':_0x5d60d7,'type':_0x18bfcb}),_0x4bea92=!![];}}if(_0x4bea92||this[_0x3b9fed(0xd4)][_0x3b9fed(0x2c4)]>0x0)this[_0x3b9fed(0x9e)]();}finally{this[_0x3b9fed(0x197)]=![];}}async[_0x263001(0x10d)](_0x51b8ac,_0xc1bfb7){const _0x29afae=_0x263001,_0x1db3bf=await this['okdb']['_openEnvLazy'](_0x51b8ac),_0x5e0df2=_0x51b8ac+'\x00'+_0xc1bfb7;!this['_cursors'][_0x29afae(0x274)](_0x5e0df2)&&(!this[_0x29afae(0x165)]['has'](_0x51b8ac)&&(_0x1db3bf[_0x29afae(0x8f)](),this[_0x29afae(0x165)][_0x29afae(0x198)](_0x51b8ac,_0x1db3bf[_0x29afae(0x188)]()||0x0)),this[_0x29afae(0x1b4)]['set'](_0x5e0df2,this[_0x29afae(0x165)]['get'](_0x51b8ac)));const _0x8b79b5=this[_0x29afae(0x1b4)][_0x29afae(0x10c)](_0x5e0df2),_0x1bb7aa=_0x1db3bf[_0x29afae(0x188)](_0xc1bfb7)||0x0;if(_0x1bb7aa<=_0x8b79b5)return![];const _0x5e8d12=_0x8b79b5+this['_quantum'],_0x4299bc=Math[_0x29afae(0x17b)](_0x1bb7aa,_0x5e8d12),_0x456215=_0x1b786c[_0x29afae(0x1a6)]?_0x1b786c[_0x29afae(0x1a7)]():0x0,_0x9bf140=Array['from'](_0x1db3bf[_0x29afae(0x124)](_0xc1bfb7,_0x8b79b5+0x1,_0x4299bc));let _0xd95ca5=_0x8b79b5;for(const _0x230e5d of _0x9bf140){const {clock:_0x29939b,key:_0x50770e,action:_0x1f56b1,origin:_0x4ce635}=_0x230e5d;if(_0x29939b>_0xd95ca5)_0xd95ca5=_0x29939b;if(_0x50770e==null)continue;if(this[_0x29afae(0x2be)][_0x29afae(0x274)](this[_0x29afae(0x1dd)](_0x51b8ac,_0xc1bfb7,_0x50770e,_0x29939b)))continue;if(!this[_0x29afae(0xb3)](_0x51b8ac,_0xc1bfb7,_0x50770e,_0x29939b))continue;let _0x433f4b,_0x572f02;if(_0x1f56b1===_0x11ccc2[_0x29afae(0x2c0)])_0x433f4b=_0x29afae(0x21b),_0x572f02=null;else{const _0x17d2ec=_0x1db3bf[_0x29afae(0x10c)](_0xc1bfb7,_0x50770e);_0x17d2ec==null?(_0x433f4b=_0x29afae(0x21b),_0x572f02=null):(_0x433f4b=_0x29afae(0x1bf),_0x572f02=_0x17d2ec);}this[_0x29afae(0x29b)](_0x29afae(0x264),{'env':_0x51b8ac,'type':_0xc1bfb7,'key':_0x50770e,'op':_0x433f4b,'clock':_0x29939b,'origin':_0x4ce635,'value':_0x572f02});}if(_0x1b786c[_0x29afae(0x1a6)])_0x1b786c[_0x29afae(0xf1)](_0x29afae(0x25d)+_0x51b8ac+':'+_0xc1bfb7,_0x1b786c[_0x29afae(0x1a7)]()-_0x456215,'n='+_0x9bf140['length']);return this[_0x29afae(0x1b4)][_0x29afae(0x198)](_0x5e0df2,Math['max'](_0xd95ca5,_0x4299bc)),_0x1db3bf[_0x29afae(0x188)](_0xc1bfb7)>_0x4299bc;}[_0x263001(0x1a5)](){const _0x240d86=_0x263001;return{'started':this[_0x240d86(0x2a0)],'quantum':this[_0x240d86(0x288)],'flushDebounce':this[_0x240d86(0x91)],'cursors':Object[_0x240d86(0x1dc)]([...this[_0x240d86(0x1b4)][_0x240d86(0x157)]()][_0x240d86(0xcc)](([_0x1ed54f,_0x356a79])=>[_0x1ed54f[_0x240d86(0x22f)]('\x00',':'),_0x356a79])),'pending':this[_0x240d86(0xd4)][_0x240d86(0x2c4)],'seen':this['_seen']['size']};}}return _0x18697d[_0x263001(0x18a)]=_0x2be887,okdbChangefeed={'OKDBChangefeed':_0x18697d},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x317aa8=_0xa5e620;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x80b076=require$$1$1,_0x64d597=require$$1,{EVENTS:_0xd0c31c}=requireOkdbEnums(),_0x32ea33=require$$0$3,{slotKey:_0x3dd6f6}=requireOkdbProcessRegistry(),_0x233976=Number(process.env.OKDB_CLUSTER_RESPAWN_BACKOFF_MS)||0xfa,_0x102cf2=0xfa0,_0x289313=0x5,_0x4056b7=0x2710,_0x10c29d=0xbb8,_0x18d9d6=0x7d0,_0x1fc319=_0x317aa8(0x21c),_0x42616b='ephemeral',_0x37e59c='log',_0x3e61e5=_0x317aa8(0x2b4),_0x25d4d4=[_0xd0c31c[_0x317aa8(0x28b)],_0xd0c31c[_0x317aa8(0x275)],_0xd0c31c[_0x317aa8(0x259)],_0xd0c31c[_0x317aa8(0x28d)],_0xd0c31c[_0x317aa8(0x1b6)],_0xd0c31c[_0x317aa8(0x1ab)],_0xd0c31c[_0x317aa8(0x248)],_0xd0c31c['INDEX_REGISTERED'],_0x317aa8(0xa4),_0x317aa8(0x18d),_0x317aa8(0x195),_0x317aa8(0xc8),'processor:resumed',_0x317aa8(0x1c2)],_0x3d87f4=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0,_0x5e296b=0x64;function _0x2cbf3c(_0x2231e1){const _0x35dc6d=_0x317aa8;if(!_0x2231e1)return'null';const _0xfabaa6=(_0x2231e1[_0x35dc6d(0x1ce)]||[])[_0x35dc6d(0xcc)](_0x1ff793=>[_0x1ff793['env'],_0x1ff793['id'],_0x1ff793['mode'],_0x1ff793['state'],!!_0x1ff793['paused'],!!_0x1ff793[_0x35dc6d(0xa1)],!!_0x1ff793[_0x35dc6d(0xed)],_0x1ff793[_0x35dc6d(0x284)]?.[_0x35dc6d(0x1c1)]??null,_0x1ff793[_0x35dc6d(0x110)]?String(_0x1ff793[_0x35dc6d(0x110)]?.['message']??_0x1ff793[_0x35dc6d(0x110)]):null]);return JSON[_0x35dc6d(0x279)]([!!_0x2231e1[_0x35dc6d(0x1e8)],_0xfabaa6]);}function _0x51282b({workers:_0xf9207b,makeOkdb:_0x2b8f7f,port:_0x322e0c,primaryOkdb:_0xf3837c,childEntry:childEntry=![],workerEnv:workerEnv=null,workerRole:workerRole=null,listenAddr:listenAddr=null}={}){const _0x3cf267=_0x317aa8;if(_0x80b076[_0x3cf267(0x9c)])return childEntry&&_0x80b076[_0x3cf267(0x23e)]({'exec':_0x64d597[_0x3cf267(0xf4)](__dirname,_0x3cf267(0x241)),'args':[],'execArgv':((()=>{const _0x2519b8=_0x3cf267,_0x302f5a=[];for(let _0x589e00=0x0;_0x589e00<process['execArgv'][_0x2519b8(0x202)];_0x589e00++){const _0x2403de=process[_0x2519b8(0x1a3)][_0x589e00];if(_0x2403de[_0x2519b8(0xf0)](_0x2519b8(0x147))||_0x2403de[_0x2519b8(0xf0)]('--watch')||_0x2403de['startsWith'](_0x2519b8(0x1cc)))continue;if(_0x2403de==='-e'||_0x2403de===_0x2519b8(0x1f3)||_0x2403de==='-p'||_0x2403de===_0x2519b8(0x115)){_0x589e00++;continue;}_0x302f5a[_0x2519b8(0x206)](_0x2403de);}return _0x302f5a;})())}),_0x29cb18({'workers':_0xf9207b,'port':_0x322e0c,'primaryOkdb':_0xf3837c,'workerEnv':workerEnv,'workerRole':workerRole,'listenAddr':listenAddr??':'+_0x322e0c});return _0x34eada({'makeOkdb':_0x2b8f7f,'port':_0x322e0c});}function _0x29cb18({workers:_0x4514a5,port:_0x37c795,primaryOkdb:_0xc3d945,workerEnv:_0x303f7e,workerRole:_0x2db5ca,listenAddr:_0x5efb45}){const _0x346bfb=_0x317aa8,_0x2ee090=new Map(),_0x24839c=new Map();let _0x1e9c5b=![];const _0x5aeedf=_0x44ec0d=>_0x44ec0d?.['__okdbSlot'],_0x444f58=_0x36efb5=>{const _0x2c2980=_0x70ef,_0x6ff3df=_0x80b076[_0x2c2980(0x214)]({...process.env,..._0x303f7e||{},'OKDB_CLUSTER_SLOT':String(_0x36efb5)});return _0x6ff3df[_0x2c2980(0x1e5)]=_0x36efb5,_0x2ee090[_0x2c2980(0x198)](_0x6ff3df[_0x2c2980(0x152)][_0x2c2980(0x1c1)],{'worker':_0x6ff3df,'startedAt':Date['now'](),'slot':_0x36efb5}),_0x6ff3df['on'](_0x2c2980(0x110),_0x2b25a8=>{const _0x4260b2=_0x2c2980;console[_0x4260b2(0x88)](_0x4260b2(0x271)+_0x6ff3df['process'][_0x4260b2(0x1c1)]+_0x4260b2(0xee)+(_0x2b25a8?.[_0x4260b2(0x28a)]??_0x2b25a8));}),_0x6ff3df['on'](_0x2c2980(0x1e4),()=>_0x4dd79c()),_0x6ff3df;},_0x53656e=_0x50d752=>{const _0x268635=_0x70ef;for(const {worker:_0x17d382}of _0x2ee090[_0x268635(0x179)]()){if(_0x17d382[_0x268635(0x19e)]()||!_0x17d382[_0x268635(0x1d5)]())continue;try{_0x17d382[_0x268635(0xe0)](_0x50d752);}catch{}}};_0xc3d945?.['_activateProcesses']?.({'kind':'primary','listenAddr':_0x5efb45})['catch'](()=>{}),_0xc3d945?.[_0x346bfb(0xeb)]?.[_0x346bfb(0x1d8)]?.({'workersConfigured':_0x4514a5});const _0x1b4955={'engines':!![],'processors':!![],'compaction':!![],..._0x2db5ca,'http':!![]},_0x4dd79c=()=>{const _0x38164c=_0x346bfb,_0x16e07c=_0xc3d945?.[_0x38164c(0xeb)];if(!_0x16e07c||!_0x16e07c[_0x38164c(0x222)])return;const _0xb6bf1a=_0x16e07c['selfKey'];for(const {worker:_0x73d12d,startedAt:_0x4deba5,slot:_0x47aadf,stats:_0x4ea64e,processing:_0x13f100}of _0x2ee090[_0x38164c(0x179)]()){if(_0x73d12d[_0x38164c(0x19e)]())continue;const _0x47202b=_0x16e07c[_0x38164c(0x1eb)]?.()&&_0x16e07c[_0x38164c(0x1c5)](_0x38164c(0x12e),_0x365488(_0x47aadf))?.[_0x38164c(0x1df)]===!![];_0x16e07c[_0x38164c(0xa5)]({'pid':_0x73d12d['process'][_0x38164c(0x1c1)],'startedAt':_0x4deba5,'kind':_0x38164c(0x268),'supervisorKey':_0xb6bf1a,'slot':_0x47aadf,'slotKey':_0x365488(_0x47aadf),'role':_0x1b4955,'listenAddr':_0x5efb45,'lifecycle':_0x47202b?_0x38164c(0xca):_0x38164c(0x190),'processing':_0x13f100??null,'stats':_0x4ea64e??null})[_0x38164c(0x255)](()=>{});}},_0x365488=_0x37370a=>_0x3dd6f6('cluster:'+_0x37c795,_0x37370a),_0x38f4fe=_0x8b41=>{const _0x2daa9d=_0x346bfb,_0x4572c1=_0xc3d945?.[_0x2daa9d(0xeb)];if(!_0x4572c1?.['hasDesired']?.())return![];return _0x4572c1['getDesired'](_0x2daa9d(0x12e),_0x365488(_0x8b41))?.[_0x2daa9d(0x1df)]===!![];};for(let _0x555ba3=0x0;_0x555ba3<_0x4514a5;_0x555ba3++){const _0x12af1c=_0x38f4fe(_0x555ba3);_0x24839c[_0x346bfb(0x198)](_0x555ba3,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x12af1c,'respawnTimer':null}),_0x12af1c?console['log'](_0x346bfb(0x1a2)+_0x555ba3+_0x346bfb(0x19f)):_0x444f58(_0x555ba3);}const _0x3d1f89=()=>{const _0x1ff0ed=_0x346bfb,_0x5f5a6=_0xc3d945?.[_0x1ff0ed(0xeb)];if(!_0x5f5a6?.['_isWriter']||!_0x5f5a6['hasDesired']?.())return;for(const [_0x8b7466,_0x4dfa78]of _0x24839c[_0x1ff0ed(0x157)]()){const _0x522625=_0x5f5a6['getDesired'](_0x1ff0ed(0x12e),_0x365488(_0x8b7466)),_0x5a591a=_0x522625?.[_0x1ff0ed(0x1df)]===!![],_0x493001=_0x522625?.[_0x1ff0ed(0x14b)]===!![];if(_0x5a591a&&!_0x4dfa78[_0x1ff0ed(0x2a6)]){_0x4dfa78[_0x1ff0ed(0x2a6)]=!![];_0x4dfa78['respawnTimer']&&(clearTimeout(_0x4dfa78[_0x1ff0ed(0x265)]),_0x4dfa78[_0x1ff0ed(0x265)]=null);for(const {worker:_0x2f0d8c}of _0x2ee090[_0x1ff0ed(0x179)]()){if(_0x5aeedf(_0x2f0d8c)!==_0x8b7466||_0x2f0d8c[_0x1ff0ed(0x19e)]())continue;try{if(_0x493001)_0x2f0d8c['process'][_0x1ff0ed(0x14b)](_0x1ff0ed(0x2a7));else _0x2f0d8c['isConnected']()&&_0x2f0d8c[_0x1ff0ed(0x20c)]();}catch{}}console[_0x1ff0ed(0x88)](_0x1ff0ed(0x266)+(_0x493001?_0x1ff0ed(0x281):_0x1ff0ed(0x280))+'\x20worker\x20slot='+_0x8b7466+_0x1ff0ed(0x1d6));}else{if(!_0x5a591a&&_0x4dfa78['dead']&&_0x522625){_0x4dfa78[_0x1ff0ed(0x2a6)]=![],_0x4dfa78[_0x1ff0ed(0x1aa)]=[],_0x4dfa78[_0x1ff0ed(0x220)]=0x0;const _0x56f2d1=[..._0x2ee090['values']()][_0x1ff0ed(0x16f)](({worker:_0x415bef})=>_0x5aeedf(_0x415bef)===_0x8b7466&&!_0x415bef[_0x1ff0ed(0x19e)]());!_0x56f2d1&&!_0x1e9c5b&&(_0x444f58(_0x8b7466),console[_0x1ff0ed(0x88)](_0x1ff0ed(0x256)+_0x8b7466));}}}},_0x404762=()=>{try{_0x3d1f89();}catch{}};_0xc3d945?.[_0x346bfb(0x234)]?.['on']?.(_0xd0c31c[_0x346bfb(0x1bb)],_0x404762);const _0xd25a57=[];if(_0xc3d945?.[_0x346bfb(0x234)]?.['on'])for(const _0x581c0e of _0x25d4d4){const _0x428650=_0x5c59d6=>{_0x53656e({[_0x1fc319]:_0x42616b,'event':_0x581c0e,'data':_0x5c59d6??{}});};_0xc3d945['events']['on'](_0x581c0e,_0x428650),_0xd25a57[_0x346bfb(0x206)]({'event':_0x581c0e,'handler':_0x428650});}const _0x10937d=setInterval(()=>{_0x3d1f89(),_0x4dd79c();},_0x3d87f4);_0x10937d[_0x346bfb(0x187)]?.();const _0x4b6e91=(_0x2475d9,_0x5826f0)=>{const _0x43723c=_0x346bfb;if(!_0x5826f0||typeof _0x5826f0!==_0x43723c(0x14c)||_0x5826f0[_0x1fc319]!==_0x37e59c)return;if(!_0xc3d945?.[_0x43723c(0x88)]?.['ingest'])return;const _0x5cdaa8=_0x5826f0['entry']||{};_0xc3d945[_0x43723c(0x88)][_0x43723c(0x19c)]({..._0x5cdaa8,'msg':'[w'+_0x5826f0[_0x43723c(0x12e)]+']\x20'+(_0x5cdaa8[_0x43723c(0x2a3)]??''),'meta':{..._0x5cdaa8[_0x43723c(0x9d)]||{},'worker':_0x5826f0[_0x43723c(0x12e)],'workerPid':_0x5826f0[_0x43723c(0x1c1)]}});};_0x80b076['on'](_0x346bfb(0x28a),_0x4b6e91);const _0x521625=(_0x5dc4da,_0xbb94da)=>{const _0x228113=_0x346bfb;if(!_0xbb94da||typeof _0xbb94da!==_0x228113(0x14c)||_0xbb94da[_0x1fc319]!==_0x3e61e5)return;const _0x40cdbe=_0x2ee090['get'](_0x5dc4da[_0x228113(0x152)][_0x228113(0x1c1)]);if(_0x40cdbe){_0x40cdbe[_0x228113(0x2b4)]={..._0xbb94da[_0x228113(0x2b4)],'at':Date[_0x228113(0x1a7)]()};if(_0xbb94da[_0x228113(0x2c7)]!==undefined){const _0x103eaa=_0x2cbf3c(_0xbb94da[_0x228113(0x2c7)]);_0x103eaa!==_0x40cdbe[_0x228113(0x174)]&&(_0x40cdbe[_0x228113(0x174)]=_0x103eaa,_0x15ca63()),_0x40cdbe[_0x228113(0x2c7)]=_0xbb94da['processing'];}}};let _0x5b3e33=null;const _0x15ca63=()=>{const _0x5eae3c=_0x346bfb;if(_0x5b3e33||_0x1e9c5b)return;_0x5b3e33=setTimeout(()=>{_0x5b3e33=null;if(!_0x1e9c5b)_0x4dd79c();},_0x5e296b),_0x5b3e33[_0x5eae3c(0x187)]?.();};_0x80b076['on']('message',_0x521625),_0x80b076['on'](_0x346bfb(0x2bd),(_0x45fcd7,_0x372318,_0xa97c9)=>{const _0x3d1c5d=_0x346bfb,_0x40204b=_0x45fcd7[_0x3d1c5d(0x152)][_0x3d1c5d(0x1c1)],_0x3a2711=_0x5aeedf(_0x45fcd7),_0xf1e413=_0x2ee090[_0x3d1c5d(0x10c)](_0x40204b);if(_0xf1e413&&_0xc3d945?.[_0x3d1c5d(0xeb)])_0xc3d945[_0x3d1c5d(0xeb)][_0x3d1c5d(0x18e)](_0x40204b+':'+_0xf1e413[_0x3d1c5d(0x12c)])[_0x3d1c5d(0x255)](()=>{});_0x2ee090[_0x3d1c5d(0x200)](_0x40204b),console[_0x3d1c5d(0x88)](_0x3d1c5d(0x271)+_0x40204b+_0x3d1c5d(0x2aa)+(_0x3a2711??'?')+_0x3d1c5d(0x2bf)+(_0x3d1c5d(0x1fd)+_0x372318+_0x3d1c5d(0x11c)+(_0xa97c9??_0x3d1c5d(0x98))+_0x3d1c5d(0x150)+_0x2ee090[_0x3d1c5d(0x2c4)]+'\x20worker(s)\x20remaining')),_0x4dd79c();if(_0x1e9c5b||_0x3a2711==null)return;const _0x274cdf=_0x24839c[_0x3d1c5d(0x10c)](_0x3a2711);if(!_0x274cdf||_0x274cdf[_0x3d1c5d(0x2a6)])return;const _0x5829ba=Date[_0x3d1c5d(0x1a7)]();_0x274cdf[_0x3d1c5d(0x1aa)][_0x3d1c5d(0x206)](_0x5829ba),_0x274cdf['deaths']=_0x274cdf[_0x3d1c5d(0x1aa)][_0x3d1c5d(0xda)](_0x5b6f66=>_0x5829ba-_0x5b6f66<=_0x4056b7);if(_0x274cdf[_0x3d1c5d(0x1aa)][_0x3d1c5d(0x202)]>=_0x289313){_0x274cdf[_0x3d1c5d(0x2a6)]=!![],console[_0x3d1c5d(0x110)]('[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot='+_0x3a2711+_0x3d1c5d(0xfc)+_0x274cdf['deaths'][_0x3d1c5d(0x202)]+_0x3d1c5d(0x225)+(_0x4056b7+'ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20'+_0x2ee090['size']+_0x3d1c5d(0x13f)));return;}_0x274cdf['consecutiveFailures']++;const _0x18e6f8=Math['min'](_0x102cf2,_0x233976*0x2**(_0x274cdf['consecutiveFailures']-0x1));console['log'](_0x3d1c5d(0x1fa)+_0x3a2711+_0x3d1c5d(0x23a)+_0x18e6f8+_0x3d1c5d(0xbf)+_0x274cdf[_0x3d1c5d(0x220)]+')'),_0x274cdf[_0x3d1c5d(0x265)]=setTimeout(()=>{const _0x1d2408=_0x3d1c5d;_0x274cdf[_0x1d2408(0x265)]=null;if(_0x1e9c5b||_0x274cdf[_0x1d2408(0x2a6)])return;const _0x1555ec=_0x444f58(_0x3a2711);_0x1555ec['once'](_0x1d2408(0x16a),()=>{const _0xf46119=_0x1d2408;if(_0x24839c[_0xf46119(0x10c)](_0x3a2711)===_0x274cdf)_0x274cdf['consecutiveFailures']=0x0;});},_0x18e6f8),_0x274cdf['respawnTimer'][_0x3d1c5d(0x187)]?.();});const _0xd14ae5=[..._0x2ee090['keys']()];console['log'](_0x346bfb(0x89)+process[_0x346bfb(0x1c1)]+'\x20forked\x20'+_0x4514a5+'\x20HTTP\x20server(s)\x20on\x20port\x20'+_0x37c795+':\x20'+('['+_0xd14ae5[_0x346bfb(0xf4)](',\x20')+']'));const _0x165b3d={'_isClusterController':!![],'port':_0x37c795,'primaryOkdb':_0xc3d945??null,'status'(){const _0x36626e=_0x346bfb;return{'clustered':!![],'primaryPid':process[_0x36626e(0x1c1)],'port':_0x37c795,'primaryRole':_0xc3d945?.[_0x36626e(0x27c)]??null,'processorPid':null,'supervisorPid':process[_0x36626e(0x1c1)],'workers':[..._0x2ee090[_0x36626e(0x179)]()][_0x36626e(0xcc)](({worker:_0x30c3fc})=>({'pid':_0x30c3fc['process'][_0x36626e(0x1c1)],'id':_0x30c3fc['id'],'dead':_0x30c3fc[_0x36626e(0x19e)]()}))};},async 'close'(){const _0x90debb=_0x346bfb;_0x1e9c5b=!![];for(const _0x3c2a42 of _0x24839c[_0x90debb(0x179)]()){_0x3c2a42[_0x90debb(0x2a6)]=!![],_0x3c2a42[_0x90debb(0x265)]&&(clearTimeout(_0x3c2a42['respawnTimer']),_0x3c2a42[_0x90debb(0x265)]=null);}clearInterval(_0x10937d);_0x5b3e33&&(clearTimeout(_0x5b3e33),_0x5b3e33=null);_0x80b076[_0x90debb(0xf3)]('message',_0x4b6e91),_0x80b076[_0x90debb(0xf3)](_0x90debb(0x28a),_0x521625),_0xc3d945?.[_0x90debb(0x234)]?.['off']?.(_0xd0c31c[_0x90debb(0x1bb)],_0x404762);if(_0xc3d945?.['events']?.[_0x90debb(0xf3)])for(const {event:_0x2f9c0a,handler:_0x5f4835}of _0xd25a57){try{_0xc3d945['events']['off'](_0x2f9c0a,_0x5f4835);}catch{}}_0xd25a57['length']=0x0;const _0x3dc1af=[..._0x2ee090[_0x90debb(0x179)]()][_0x90debb(0xcc)](({worker:_0x1ab444})=>_0x1ab444);if(_0x3dc1af['length']===0x0)return;await Promise[_0x90debb(0xc5)](_0x3dc1af['map'](_0x14e4fe=>new Promise(_0x1d5683=>{const _0x362253=_0x90debb;if(_0x14e4fe[_0x362253(0x19e)]()){_0x1d5683();return;}let _0x4c891c=![];const _0x383242=()=>{if(_0x4c891c)return;_0x4c891c=!![];if(_0x3b5f57)clearTimeout(_0x3b5f57);_0x1d5683();};_0x14e4fe[_0x362253(0x18c)]('exit',_0x383242);const _0x3b5f57=setTimeout(()=>{const _0xd872f7=_0x362253;try{_0x14e4fe[_0xd872f7(0x152)]['kill']();}catch{}},_0x10c29d+0x1f4);_0x3b5f57[_0x362253(0x187)]?.();try{_0x14e4fe[_0x362253(0x20c)]();}catch{try{_0x14e4fe[_0x362253(0x152)][_0x362253(0x14b)]();}catch{}}})));}};return _0x165b3d;}async function _0x34eada({makeOkdb:_0x1d73fb,port:_0x1fbe00}){const _0x19424b=_0x317aa8,_0x74f8a7=await _0x1d73fb();return _0x5e428c(_0x74f8a7),_0x74f8a7[_0x19424b(0x107)][_0x19424b(0xc6)](_0x1fbe00);}function _0x5e428c(_0x2a28c0){const _0x856aed=_0x317aa8;if(!_0x2a28c0||_0x2a28c0[_0x856aed(0x105)])return;_0x2a28c0[_0x856aed(0x105)]=!![];try{const {OKDBChangefeed:_0x3a7621}=requireOkdbChangefeed(),_0x4aa191=_0x2a28c0[_0x856aed(0x129)];if(_0x4aa191&&typeof _0x4aa191['attachFeed']===_0x856aed(0xc0)){const _0xda48bc=new _0x3a7621(_0x2a28c0);_0xda48bc[_0x856aed(0xc3)](),_0x4aa191[_0x856aed(0x210)](_0xda48bc),_0x2a28c0['_changefeed']=_0xda48bc;}}catch(_0x4fbecc){_0x2a28c0[_0x856aed(0x88)]?.[_0x856aed(0xdb)]?.('[okdb-cluster]\x20change-feed\x20init\x20failed:\x20'+(_0x4fbecc?.[_0x856aed(0x28a)]??_0x4fbecc),{'feature':_0x856aed(0xc4)});}const _0x5006e6=_0x34d6d2=>{const _0xa6089d=_0x856aed;if(!_0x34d6d2||typeof _0x34d6d2!==_0xa6089d(0x14c)||_0x34d6d2[_0x1fc319]==null)return;if(_0x34d6d2[_0x1fc319]===_0x42616b)try{_0x2a28c0[_0xa6089d(0x129)]?.[_0xa6089d(0x120)]?.(_0x34d6d2['event'],_0x34d6d2['data']);}catch{}};process['on'](_0x856aed(0x28a),_0x5006e6),_0x2a28c0[_0x856aed(0xd3)]=_0x5006e6;{let _0x224157=process[_0x856aed(0xa6)](),_0x33cfb6=Date[_0x856aed(0x1a7)]();const _0x381e26=()=>{const _0x122e22=_0x856aed;if(typeof process[_0x122e22(0xe0)]!==_0x122e22(0xc0)||!process[_0x122e22(0xd8)])return;const _0x446377=Date[_0x122e22(0x1a7)](),_0x6100b=process[_0x122e22(0xa6)](),_0x260a82=(_0x446377-_0x33cfb6)*0x3e8,_0x4e06bc=_0x6100b[_0x122e22(0x191)]-_0x224157[_0x122e22(0x191)]+(_0x6100b[_0x122e22(0x1fe)]-_0x224157[_0x122e22(0x1fe)]),_0x243288=_0x260a82>0x0?Math[_0x122e22(0x17b)](0x64,Math[_0x122e22(0x92)](_0x4e06bc/(_0x260a82*(_0x32ea33[_0x122e22(0x201)]()[_0x122e22(0x202)]||0x1))*0x64)):0x0;_0x224157=_0x6100b,_0x33cfb6=_0x446377;const _0x17d297=process[_0x122e22(0x223)]();let _0x5d7c9a=null;try{_0x5d7c9a=_0x2a28c0['role']?.[_0x122e22(0x1ce)]?_0x2a28c0[_0x122e22(0xeb)]?.[_0x122e22(0x25e)]?.()??null:null;}catch{}try{process[_0x122e22(0xe0)]({[_0x1fc319]:_0x3e61e5,'stats':{'rss':_0x17d297[_0x122e22(0x108)],'heapUsed':_0x17d297[_0x122e22(0x21d)],'heapTotal':_0x17d297[_0x122e22(0x24e)],'external':_0x17d297[_0x122e22(0xad)],'cpuPct':_0x243288,'cpuWindowMs':Math[_0x122e22(0x92)](_0x260a82/0x3e8)||null},'processing':_0x5d7c9a});}catch{}},_0x34ad52=Math[_0x856aed(0x293)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x47c8ed=setInterval(_0x381e26,_0x34ad52);_0x47c8ed[_0x856aed(0x187)]?.(),_0x381e26();for(const _0x18b088 of[_0x856aed(0xc8),_0x856aed(0x141)]){_0x2a28c0[_0x856aed(0x234)]?.['on']?.(_0x18b088,()=>{try{_0x381e26();}catch{}});}}let _0x5093c1=![];const _0x4ec65b=async _0x468ca3=>{const _0x537c0a=_0x856aed;if(_0x5093c1)return;_0x5093c1=!![];const _0x56b5ca=setTimeout(()=>process[_0x537c0a(0x2bd)](_0x468ca3),_0x10c29d);_0x56b5ca['unref']?.();try{await _0x2a28c0[_0x537c0a(0x2c5)]?.();}catch{}process[_0x537c0a(0x2bd)](_0x468ca3);};process['on']('disconnect',()=>_0x4ec65b(0x0));if(process[_0x856aed(0xe0)]&&!process[_0x856aed(0xd8)])_0x4ec65b(0x0);if(process[_0x856aed(0xc2)]!==_0x856aed(0xa8)){const _0x54f451=setInterval(()=>{const _0x162724=_0x856aed;if(process[_0x162724(0x298)]===0x1)_0x4ec65b(0x0);},_0x18d9d6);_0x54f451[_0x856aed(0x187)]?.(),_0x2a28c0[_0x856aed(0x28e)]=_0x54f451;}}return okdbCluster={'runClustered':_0x51282b,'attachWorkerCluster':_0x5e428c},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x3b8709=_0xa5e620;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x34734d=require$$0$5,{attachWorkerCluster:_0x15d14c}=requireOkdbCluster();async function _0x35e7fa(){const _0x20ae3e=_0x70ef,_0x5628d7=process.env.OKDB_HTTP_CHILD;if(!_0x5628d7)throw new Error(_0x20ae3e(0x1ac));const {rootPath:_0x32f438,port:_0x299fe8,options:options={},logLevel:logLevel=_0x20ae3e(0xb7)}=JSON[_0x20ae3e(0x1c3)](_0x5628d7);if(!_0x32f438||!_0x299fe8)throw new Error('okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required');const _0x4247f4=new _0x34734d(_0x32f438,{...options,'engines':![],'processors':![],'compaction':![]});_0x4247f4[_0x20ae3e(0x88)]['detachConsole']?.();const _0x6957fc=process.env.OKDB_CLUSTER_SLOT??'?',_0x25ca8c={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x168b81=_0x25ca8c[logLevel]??_0x25ca8c[_0x20ae3e(0xb7)];_0x4247f4[_0x20ae3e(0x88)]['attach'](_0x190be7=>{const _0x5f4e3c=_0x20ae3e;if((_0x25ca8c[_0x190be7[_0x5f4e3c(0x1ef)]]??0x1)<_0x168b81)return;try{process[_0x5f4e3c(0xe0)]?.({'__okdbCluster':_0x5f4e3c(0x88),'slot':_0x6957fc,'pid':process[_0x5f4e3c(0x1c1)],'entry':_0x190be7});}catch{}}),await _0x4247f4[_0x20ae3e(0x1cb)](),_0x15d14c(_0x4247f4),await _0x4247f4[_0x20ae3e(0x107)][_0x20ae3e(0xc6)](_0x299fe8);}return _0x35e7fa()[_0x3b8709(0x255)](_0x4721fa=>{const _0x640c42=_0x3b8709;try{process[_0x640c42(0xe0)]?.({'__okdbCluster':'log','slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x640c42(0x1c1)],'entry':{'level':'error','msg':'http\x20worker\x20child\x20failed:\x20'+(_0x4721fa?.['message']??_0x4721fa)}});}catch{}process[_0x640c42(0x2bd)](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0xa5e620(0x151)]=okdbHttpWorkerChild;