@kedem/okdb 1.0.1 → 1.0.3

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 (193) hide show
  1. package/bin/okdb.js +1 -1
  2. package/keys/public.pem +3 -0
  3. package/okdb.js +1 -1
  4. package/package.json +2 -2
  5. package/public/admin-app.js +1 -1
  6. package/public/components/admin-route-host.ok.js +1 -1
  7. package/public/components/env-picker.ok.js +1 -1
  8. package/public/components/field-path-input.ok.js +1 -1
  9. package/public/components/geo-map.ok.js +1 -1
  10. package/public/components/ok-cron-input.ok.js +1 -1
  11. package/public/components/ok-dropzone.ok.js +1 -1
  12. package/public/components/ok-js-input.ok.js +1 -1
  13. package/public/components/ok-json-input.ok.js +1 -1
  14. package/public/components/ok-text-monaco-input.ok.js +1 -1
  15. package/public/components/theme-toggle.ok.js +1 -1
  16. package/public/login-app.js +1 -1
  17. package/public/modules/ok.js +1 -1
  18. package/public/sections/api/parts/api-endpoint.ok.js +1 -1
  19. package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
  20. package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
  21. package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
  22. package/public/sections/auth/parts/token-detail.ok.js +1 -1
  23. package/public/sections/auth/parts/token-list.ok.js +1 -1
  24. package/public/sections/db/modals/add-item-modal.ok.js +1 -1
  25. package/public/sections/db/modals/create-env-modal.ok.js +1 -1
  26. package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
  27. package/public/sections/db/modals/create-index-modal.ok.js +1 -1
  28. package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
  29. package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
  30. package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
  31. package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
  32. package/public/sections/db/parts/db-overview.ok.js +1 -1
  33. package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
  34. package/public/sections/db/parts/edit-row.ok.js +1 -1
  35. package/public/sections/db/parts/tm-timeline.ok.js +1 -1
  36. package/public/sections/db/parts/type-changelog.ok.js +1 -1
  37. package/public/sections/db/parts/type-list.ok.js +1 -1
  38. package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
  39. package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
  40. package/public/sections/db/parts/type-viewer.ok.js +1 -1
  41. package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
  42. package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
  43. package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
  44. package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
  45. package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
  46. package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
  47. package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
  48. package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
  49. package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
  50. package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
  51. package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
  52. package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
  53. package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
  54. package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
  55. package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
  56. package/public/sections/engines/engine-panel-shared-style.js +1 -1
  57. package/public/sections/engines/engine-ui-utils.js +1 -1
  58. package/public/sections/engines/modals/engine-modal.ok.js +1 -1
  59. package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
  60. package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
  61. package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
  62. package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
  63. package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
  64. package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
  65. package/public/sections/files/parts/files-blob-status.ok.js +1 -1
  66. package/public/sections/files/parts/files-collection-list.ok.js +1 -1
  67. package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
  68. package/public/sections/files/parts/files-file-list.ok.js +1 -1
  69. package/public/sections/files/parts/files-overview.ok.js +1 -1
  70. package/public/sections/files/parts/files-path-browser.ok.js +1 -1
  71. package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
  72. package/public/sections/functions/modals/function-modal.ok.js +1 -1
  73. package/public/sections/functions/parts/function-detail.ok.js +1 -1
  74. package/public/sections/functions/parts/function-logs.ok.js +1 -1
  75. package/public/sections/functions/parts/function-runner.ok.js +1 -1
  76. package/public/sections/functions/parts/functions-list.ok.js +1 -1
  77. package/public/sections/license/parts/license-panel.ok.js +1 -1
  78. package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
  79. package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
  80. package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
  81. package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
  82. package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
  83. package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
  84. package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
  85. package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
  86. package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
  87. package/public/sections/queue/parts/queue-types.ok.js +1 -1
  88. package/public/sections/queue/parts/queue-workers.ok.js +1 -1
  89. package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
  90. package/public/sections/sync/parts/sync-retention.ok.js +1 -1
  91. package/public/sections/sync/parts/sync-topology.ok.js +1 -1
  92. package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
  93. package/public/sections/system/parts/system-api-panel.ok.js +1 -1
  94. package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
  95. package/public/sections/system/parts/system-log-history.ok.js +1 -1
  96. package/public/sections/system/parts/system-log.ok.js +1 -1
  97. package/public/sections/system/parts/system-status.ok.js +1 -1
  98. package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
  99. package/public/sections/views/modals/create-view-modal.ok.js +1 -1
  100. package/public/sections/views/parts/view-detail.ok.js +1 -1
  101. package/public/sections/views/parts/views-list.ok.js +1 -1
  102. package/public/sections/views/parts/views-overview.ok.js +1 -1
  103. package/public/setup-app.js +1 -1
  104. package/public/stores/auth-store.js +1 -1
  105. package/public/stores/events-store.js +1 -1
  106. package/public/stores/functions-store.js +1 -1
  107. package/public/stores/okdb-store.js +1 -1
  108. package/public/stores/theme-store.js +1 -1
  109. package/public/util/permissions.js +1 -1
  110. package/public/util/sift-schema.js +1 -1
  111. package/public/vendor/okjs/ok.esm.min.js +1 -2
  112. package/public/vendor/okjs/toolkit/behavior/async.ok.js +1 -1
  113. package/public/vendor/okjs/toolkit/components/ok-chart.ok.js +1 -1
  114. package/public/vendor/okjs/toolkit/components/ok-doc-viewer.ok.js +1 -1
  115. package/public/vendor/okjs/toolkit/components/ok-marked.ok.js +1 -1
  116. package/public/vendor/okjs/toolkit/components/ok-monaco.ok.js +1 -1
  117. package/public/vendor/okjs/toolkit/core/ok-layer-service.ok.js +1 -1
  118. package/public/vendor/okjs/toolkit/core/ok-layer.ok.js +1 -1
  119. package/public/vendor/okjs/toolkit/core/ok-overlay.ok.js +1 -1
  120. package/public/vendor/okjs/toolkit/core/ok-sandbox.ok.js +1 -1
  121. package/public/vendor/okjs/toolkit/core/transition.ok.js +1 -1
  122. package/public/vendor/okjs/toolkit/core/virtualized.ok.js +1 -1
  123. package/public/vendor/okjs/toolkit/devtools/ok-console-service.ok.js +1 -1
  124. package/public/vendor/okjs/toolkit/devtools/ok-console.ok.js +1 -1
  125. package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor-service.ok.js +1 -1
  126. package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor.ok.js +1 -1
  127. package/public/vendor/okjs/toolkit/devtools/ok-inspector-service.ok.js +1 -1
  128. package/public/vendor/okjs/toolkit/devtools/ok-inspector.ok.js +1 -1
  129. package/public/vendor/okjs/toolkit/devtools/ok-js-tree.ok.js +1 -1
  130. package/public/vendor/okjs/toolkit/devtools/ok-timeline-service.ok.js +1 -1
  131. package/public/vendor/okjs/toolkit/devtools/ok-timeline.ok.js +1 -1
  132. package/public/vendor/okjs/toolkit/docs/doc-viewer.ok.js +1 -1
  133. package/public/vendor/okjs/toolkit/editor/ok-live-component.ok.js +1 -1
  134. package/public/vendor/okjs/toolkit/editor/ok-live-example.ok.js +1 -1
  135. package/public/vendor/okjs/toolkit/editor/ok-live-shell.ok.js +1 -1
  136. package/public/vendor/okjs/toolkit/elements/ok-dropdown.ok.js +1 -1
  137. package/public/vendor/okjs/toolkit/elements/ok-icon.ok.js +1 -1
  138. package/public/vendor/okjs/toolkit/elements/ok-select.ok.js +1 -1
  139. package/public/vendor/okjs/toolkit/elements/ok-table.ok.js +1 -1
  140. package/public/vendor/okjs/toolkit/errors/ok-crash-boundary.ok.js +1 -1
  141. package/public/vendor/okjs/toolkit/errors/ok-crash-info.ok.js +1 -1
  142. package/public/vendor/okjs/toolkit/i18n/i18n-editor-examples.ok.js +1 -1
  143. package/public/vendor/okjs/toolkit/i18n/i18n-editor.ok.js +1 -1
  144. package/public/vendor/okjs/toolkit/i18n/i18n-key-editor-tips.ok.js +1 -1
  145. package/public/vendor/okjs/toolkit/i18n/i18n-key-editor.ok.js +1 -1
  146. package/public/vendor/okjs/toolkit/i18n/i18n-service.ok.js +1 -1
  147. package/public/vendor/okjs/toolkit/i18n/ok-i18n.js +1 -1
  148. package/public/vendor/okjs/toolkit/interaction/ok-contextmenu.ok.js +1 -1
  149. package/public/vendor/okjs/toolkit/interaction/ok-dismiss-service.ok.js +1 -1
  150. package/public/vendor/okjs/toolkit/interaction/ok-draggable.ok.js +1 -1
  151. package/public/vendor/okjs/toolkit/interaction/ok-flyover-panel.ok.js +1 -1
  152. package/public/vendor/okjs/toolkit/interaction/ok-flyover.ok.js +1 -1
  153. package/public/vendor/okjs/toolkit/interaction/ok-highlight-service.ok.js +1 -1
  154. package/public/vendor/okjs/toolkit/interaction/ok-highlight.ok.js +1 -1
  155. package/public/vendor/okjs/toolkit/interaction/ok-hotkeys-service.ok.js +1 -1
  156. package/public/vendor/okjs/toolkit/interaction/ok-picker-service.ok.js +1 -1
  157. package/public/vendor/okjs/toolkit/interaction/ok-popout-service.ok.js +1 -1
  158. package/public/vendor/okjs/toolkit/interaction/ok-popout.ok.js +1 -1
  159. package/public/vendor/okjs/toolkit/interaction/ok-portal-service.ok.js +1 -1
  160. package/public/vendor/okjs/toolkit/interaction/ok-submenu.ok.js +1 -1
  161. package/public/vendor/okjs/toolkit/layout/ok-resizer.ok.js +1 -1
  162. package/public/vendor/okjs/toolkit/manifest.js +1 -1
  163. package/public/vendor/okjs/toolkit/modals/ok-modal-service.ok.js +1 -1
  164. package/public/vendor/okjs/toolkit/modals/ok-modal.ok.js +1 -1
  165. package/public/vendor/okjs/toolkit/modals/ok-toast-service.ok.js +1 -1
  166. package/public/vendor/okjs/toolkit/modals/ok-window.ok.js +1 -1
  167. package/public/vendor/okjs/toolkit/navigation/hash-router.ok.js +1 -1
  168. package/public/vendor/okjs/toolkit/navigation/history-router.ok.js +1 -1
  169. package/public/vendor/okjs/toolkit/navigation/router.ok.js +1 -1
  170. package/public/vendor/okjs/toolkit/sync/reactive-sync-service.ok.js +1 -1
  171. package/public/vendor/okjs/toolkit/sync/reactive-sync.js +1 -1
  172. package/public/vendor/okjs/toolkit/theming/blocks/ok-design-button.css.js +1 -1
  173. package/public/vendor/okjs/toolkit/theming/blocks/ok-design-input.css.js +1 -1
  174. package/public/vendor/okjs/toolkit/theming/ok-design-style.js +1 -1
  175. package/public/vendor/okjs/toolkit/theming/ok-design-vars.js +1 -1
  176. package/public/vendor/okjs/toolkit/theming/ok-design.ok.js +1 -1
  177. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-input.ok.js +1 -1
  178. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-service.ok.js +1 -1
  179. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-style.js +1 -1
  180. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-utils.js +1 -1
  181. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-variable.ok.js +1 -1
  182. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-vm.js +1 -1
  183. package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor.ok.js +1 -1
  184. package/public/vendor/okjs/toolkit/theming/ok-theme.ok.js +1 -1
  185. package/public/view-models/type-query-vm.js +1 -1
  186. package/okdb-data/default/data.mdb +0 -0
  187. package/okdb-data/default/lock.mdb +0 -0
  188. package/okdb-data/~log/data.mdb +0 -0
  189. package/okdb-data/~log/lock.mdb +0 -0
  190. package/okdb-data/~system/data.mdb +0 -0
  191. package/okdb-data/~system/lock.mdb +0 -0
  192. package/public/images/logo.png +0 -0
  193. package/public/images/logo.svg +0 -333
@@ -1 +1 @@
1
- function _0x4cfa(_0x2179f9,_0x409015){_0x2179f9=_0x2179f9-0xac;const _0x3413d0=_0x3413();let _0x4cfad3=_0x3413d0[_0x2179f9];return _0x4cfad3;}const _0x5989dc=_0x4cfa;(function(_0x149a44,_0x595027){const _0x2ecbed=_0x4cfa,_0x13b253=_0x149a44();while(!![]){try{const _0x1f3096=-parseInt(_0x2ecbed(0xb4))/0x1*(parseInt(_0x2ecbed(0xac))/0x2)+-parseInt(_0x2ecbed(0xb2))/0x3*(-parseInt(_0x2ecbed(0xb0))/0x4)+parseInt(_0x2ecbed(0xad))/0x5+-parseInt(_0x2ecbed(0xb3))/0x6+-parseInt(_0x2ecbed(0xaf))/0x7+-parseInt(_0x2ecbed(0xb5))/0x8+parseInt(_0x2ecbed(0xae))/0x9*(parseInt(_0x2ecbed(0xb6))/0xa);if(_0x1f3096===_0x595027)break;else _0x13b253['push'](_0x13b253['shift']());}catch(_0x1e3ad9){_0x13b253['push'](_0x13b253['shift']());}}}(_0x3413,0xda000));export const ENGINE_PANEL_SHARED_STYLE=_0x5989dc(0xb1);function _0x3413(){const _0x4377a0=['129215pdkkuF','11630456IhELlD','35294860HKrQLM','26Enybnm','4524615JeCBzp','9GmmkxJ','9200681PIRBYr','160852dAWnHB','\x0a\x20\x20.card\x20{\x20background:var(--okdb-app-surface);\x20border-radius:12px;\x20padding:16px;\x20box-shadow:0\x200\x205px\x20#ffffff1a;\x20}\x0a\x20\x20.card-title\x20{\x20font-weight:600;\x20margin-bottom:10px;\x20}\x0a\x20\x20.card-subtitle\x20{\x20font-size:11px;\x20opacity:.55;\x20line-height:1.6;\x20}\x0a\x20\x20.panel-grid\x20{\x20display:grid;\x20gap:12px;\x20}\x0a\x20\x20.panel-grid--two\x20{\x20grid-template-columns:repeat(auto-fit,minmax(260px,1fr));\x20}\x0a\x20\x20.kv-grid\x20{\x20display:grid;\x20grid-template-columns:140px\x201fr;\x20gap:4px\x2012px;\x20font-size:13px;\x20}\x0a\x20\x20.kv-grid--compact\x20{\x20grid-template-columns:120px\x201fr;\x20gap:6px\x2010px;\x20font-size:12px;\x20}\x0a\x20\x20.kv-key\x20\x20{\x20opacity:.6;\x20}\x0a\x20\x20.kv-val\x20\x20{\x20word-break:break-all;\x20}\x0a\x20\x20.metric-grid\x20{\x20display:grid;\x20grid-template-columns:repeat(auto-fit,minmax(120px,1fr));\x20gap:10px;\x20}\x0a\x20\x20.metric-card\x20{\x20background:var(--okdb-app-bg);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:10px;\x20padding:12px;\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x20}\x0a\x20\x20.metric-title\x20{\x20font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.06em;\x20}\x0a\x20\x20.metric-value\x20{\x20font-size:24px;\x20font-weight:700;\x20color:var(--okdb-app-fg-strong);\x20}\x0a\x20\x20.metric-note\x20{\x20font-size:11px;\x20opacity:.55;\x20line-height:1.5;\x20}\x0a\x20\x20.metric-grid--compact\x20{\x20grid-template-columns:repeat(auto-fit,minmax(110px,1fr));\x20gap:8px;\x20}\x0a\x20\x20.metric-card--compact\x20{\x20padding:10px;\x20gap:4px;\x20}\x0a\x20\x20.metric-card--compact\x20.metric-value\x20{\x20font-size:20px;\x20}\x0a\x20\x20.story-card\x20{\x20display:flex;\x20flex-direction:column;\x20gap:12px;\x20}\x0a\x20\x20.story-lead\x20{\x20font-size:13px;\x20line-height:1.7;\x20color:var(--okdb-app-fg);\x20}\x0a\x20\x20.story-lead\x20strong\x20{\x20color:#ffffff;\x20font-weight:700;\x20}\x0a\x20\x20.story-note\x20{\x20font-size:11px;\x20color:var(--okdb-app-fg-muted);\x20line-height:1.6;\x20}\x0a\x20\x20.pill-row\x20{\x20display:flex;\x20gap:8px;\x20flex-wrap:wrap;\x20align-items:center;\x20}\x0a\x20\x20.info-pill\x20{\x20padding:5px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20font-size:11px;\x20color:var(--okdb-app-fg);\x20}\x0a\x20\x20.info-pill__label\x20{\x20opacity:.55;\x20margin-right:6px;\x20}\x0a\x20\x20.stack-compact\x20{\x20display:flex;\x20flex-direction:column;\x20gap:10px;\x20}\x0a\x20\x20.split-story\x20{\x20display:grid;\x20grid-template-columns:minmax(0,1.2fr)\x20minmax(260px,.8fr);\x20gap:12px;\x20align-items:start;\x20}\x0a\x20\x20.split-story--compact\x20{\x20grid-template-columns:minmax(0,1fr)\x20minmax(240px,.75fr);\x20}\x0a\x20\x20.section-divider\x20{\x20height:1px;\x20background:var(--okdb-app-border);\x20border:none;\x20margin:0;\x20}\x0a\x20\x20.stat-box\x20\x20\x20{\x20background:var(--okdb-app-border);\x20border-radius:8px;\x20padding:12px\x208px;\x20}\x0a\x20\x20.stat-val\x20\x20\x20{\x20font-size:28px;\x20font-weight:600;\x20}\x0a\x20\x20.stat-label\x20{\x20font-size:11px;\x20opacity:.6;\x20margin-top:2px;\x20}\x0a\x20\x20.form-grid\x20{\x20display:grid;\x20grid-template-columns:repeat(auto-fit,minmax(180px,1fr));\x20gap:12px;\x20}\x0a\x20\x20.field-stack\x20{\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x20min-width:0;\x20}\x0a\x20\x20.field-label\x20{\x20font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x20}\x0a\x20\x20.field-input\x20{\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:8px;\x20padding:8px\x2010px;\x20color:inherit;\x20font-size:13px;\x20width:100%;\x20box-sizing:border-box;\x20}\x0a\x20\x20.helper-text\x20{\x20font-size:11px;\x20opacity:.5;\x20line-height:1.6;\x20}\x0a\x20\x20.card-actions\x20{\x20display:flex;\x20gap:8px;\x20align-items:center;\x20justify-content:flex-end;\x20flex-wrap:wrap;\x20}\x0a\x20\x20.raw-toggle-row\x20{\x20display:flex;\x20gap:8px;\x20flex-wrap:wrap;\x20align-items:center;\x20}\x0a\x20\x20.raw-toggle\x20{\x20font-size:11px;\x20padding:4px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20}\x0a\x20\x20.raw-toggle--active\x20{\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2040%,\x20transparent);\x20color:var(--okdb-accent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x207%,\x20transparent);\x20}\x0a\x20\x20.alert\x20{\x20padding:12px\x2014px;\x20border-radius:10px;\x20font-size:12px;\x20line-height:1.6;\x20}\x0a\x20\x20.alert--error\x20{\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20background:#2a1113;\x20color:#fca5a5;\x20}\x0a\x20\x20.muted-code\x20{\x20font-family:monospace;\x20color:var(--okdb-app-fg-muted);\x20word-break:break-all;\x20}\x0a\x20\x20.inline-link\x20{\x20background:none;\x20border:none;\x20padding:0;\x20color:var(--okdb-accent);\x20font:inherit;\x20cursor:pointer;\x20text-decoration:underline;\x20text-underline-offset:2px;\x20}\x0a\x20\x20.inline-link:hover\x20{\x20color:var(--okdb-sky);\x20}\x0a\x20\x20.json-block\x20{\x20margin:0;\x20max-height:280px;\x20overflow:auto;\x20padding:10px;\x20border-radius:8px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20font-size:11px;\x20line-height:1.55;\x20white-space:pre-wrap;\x20word-break:break-word;\x20}\x0a','105KMRXtG','3005706chLTqE'];_0x3413=function(){return _0x4377a0;};return _0x3413();}
1
+ const _0x43d749=_0x45aa;(function(_0x39676f,_0x2b59ba){const _0x44f152=_0x45aa,_0x473997=_0x39676f();while(!![]){try{const _0x8b3929=-parseInt(_0x44f152(0x6f))/0x1*(-parseInt(_0x44f152(0x67))/0x2)+-parseInt(_0x44f152(0x72))/0x3*(-parseInt(_0x44f152(0x6e))/0x4)+-parseInt(_0x44f152(0x70))/0x5*(parseInt(_0x44f152(0x6c))/0x6)+parseInt(_0x44f152(0x66))/0x7+-parseInt(_0x44f152(0x6a))/0x8*(-parseInt(_0x44f152(0x69))/0x9)+-parseInt(_0x44f152(0x71))/0xa+-parseInt(_0x44f152(0x68))/0xb*(parseInt(_0x44f152(0x6b))/0xc);if(_0x8b3929===_0x2b59ba)break;else _0x473997['push'](_0x473997['shift']());}catch(_0x5553cc){_0x473997['push'](_0x473997['shift']());}}}(_0x3e51,0x49dde));export const ENGINE_PANEL_SHARED_STYLE=_0x43d749(0x6d);function _0x45aa(_0x376631,_0x286e7f){_0x376631=_0x376631-0x66;const _0x3e5197=_0x3e51();let _0x45aaf1=_0x3e5197[_0x376631];return _0x45aaf1;}function _0x3e51(){const _0x90ee8a=['1221010iirXza','1206eiNSmS','2944102erzKkY','2BDFWXk','22wneqsO','198oTwwHv','177080bIMamZ','3057708CLQZKN','25044AmrIhL','\x0a\x20\x20.card\x20{\x20background:var(--okdb-app-surface);\x20border-radius:12px;\x20padding:16px;\x20box-shadow:0\x200\x205px\x20#ffffff1a;\x20}\x0a\x20\x20.card-title\x20{\x20font-weight:600;\x20margin-bottom:10px;\x20}\x0a\x20\x20.card-subtitle\x20{\x20font-size:11px;\x20opacity:.55;\x20line-height:1.6;\x20}\x0a\x20\x20.panel-grid\x20{\x20display:grid;\x20gap:12px;\x20}\x0a\x20\x20.panel-grid--two\x20{\x20grid-template-columns:repeat(auto-fit,minmax(260px,1fr));\x20}\x0a\x20\x20.kv-grid\x20{\x20display:grid;\x20grid-template-columns:140px\x201fr;\x20gap:4px\x2012px;\x20font-size:13px;\x20}\x0a\x20\x20.kv-grid--compact\x20{\x20grid-template-columns:120px\x201fr;\x20gap:6px\x2010px;\x20font-size:12px;\x20}\x0a\x20\x20.kv-key\x20\x20{\x20opacity:.6;\x20}\x0a\x20\x20.kv-val\x20\x20{\x20word-break:break-all;\x20}\x0a\x20\x20.metric-grid\x20{\x20display:grid;\x20grid-template-columns:repeat(auto-fit,minmax(120px,1fr));\x20gap:10px;\x20}\x0a\x20\x20.metric-card\x20{\x20background:var(--okdb-app-bg);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:10px;\x20padding:12px;\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x20}\x0a\x20\x20.metric-title\x20{\x20font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.06em;\x20}\x0a\x20\x20.metric-value\x20{\x20font-size:24px;\x20font-weight:700;\x20color:var(--okdb-app-fg-strong);\x20}\x0a\x20\x20.metric-note\x20{\x20font-size:11px;\x20opacity:.55;\x20line-height:1.5;\x20}\x0a\x20\x20.metric-grid--compact\x20{\x20grid-template-columns:repeat(auto-fit,minmax(110px,1fr));\x20gap:8px;\x20}\x0a\x20\x20.metric-card--compact\x20{\x20padding:10px;\x20gap:4px;\x20}\x0a\x20\x20.metric-card--compact\x20.metric-value\x20{\x20font-size:20px;\x20}\x0a\x20\x20.story-card\x20{\x20display:flex;\x20flex-direction:column;\x20gap:12px;\x20}\x0a\x20\x20.story-lead\x20{\x20font-size:13px;\x20line-height:1.7;\x20color:var(--okdb-app-fg);\x20}\x0a\x20\x20.story-lead\x20strong\x20{\x20color:#ffffff;\x20font-weight:700;\x20}\x0a\x20\x20.story-note\x20{\x20font-size:11px;\x20color:var(--okdb-app-fg-muted);\x20line-height:1.6;\x20}\x0a\x20\x20.pill-row\x20{\x20display:flex;\x20gap:8px;\x20flex-wrap:wrap;\x20align-items:center;\x20}\x0a\x20\x20.info-pill\x20{\x20padding:5px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20font-size:11px;\x20color:var(--okdb-app-fg);\x20}\x0a\x20\x20.info-pill__label\x20{\x20opacity:.55;\x20margin-right:6px;\x20}\x0a\x20\x20.stack-compact\x20{\x20display:flex;\x20flex-direction:column;\x20gap:10px;\x20}\x0a\x20\x20.split-story\x20{\x20display:grid;\x20grid-template-columns:minmax(0,1.2fr)\x20minmax(260px,.8fr);\x20gap:12px;\x20align-items:start;\x20}\x0a\x20\x20.split-story--compact\x20{\x20grid-template-columns:minmax(0,1fr)\x20minmax(240px,.75fr);\x20}\x0a\x20\x20.section-divider\x20{\x20height:1px;\x20background:var(--okdb-app-border);\x20border:none;\x20margin:0;\x20}\x0a\x20\x20.stat-box\x20\x20\x20{\x20background:var(--okdb-app-border);\x20border-radius:8px;\x20padding:12px\x208px;\x20}\x0a\x20\x20.stat-val\x20\x20\x20{\x20font-size:28px;\x20font-weight:600;\x20}\x0a\x20\x20.stat-label\x20{\x20font-size:11px;\x20opacity:.6;\x20margin-top:2px;\x20}\x0a\x20\x20.form-grid\x20{\x20display:grid;\x20grid-template-columns:repeat(auto-fit,minmax(180px,1fr));\x20gap:12px;\x20}\x0a\x20\x20.field-stack\x20{\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x20min-width:0;\x20}\x0a\x20\x20.field-label\x20{\x20font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x20}\x0a\x20\x20.field-input\x20{\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:8px;\x20padding:8px\x2010px;\x20color:inherit;\x20font-size:13px;\x20width:100%;\x20box-sizing:border-box;\x20}\x0a\x20\x20.helper-text\x20{\x20font-size:11px;\x20opacity:.5;\x20line-height:1.6;\x20}\x0a\x20\x20.card-actions\x20{\x20display:flex;\x20gap:8px;\x20align-items:center;\x20justify-content:flex-end;\x20flex-wrap:wrap;\x20}\x0a\x20\x20.raw-toggle-row\x20{\x20display:flex;\x20gap:8px;\x20flex-wrap:wrap;\x20align-items:center;\x20}\x0a\x20\x20.raw-toggle\x20{\x20font-size:11px;\x20padding:4px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20}\x0a\x20\x20.raw-toggle--active\x20{\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2040%,\x20transparent);\x20color:var(--okdb-accent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x207%,\x20transparent);\x20}\x0a\x20\x20.alert\x20{\x20padding:12px\x2014px;\x20border-radius:10px;\x20font-size:12px;\x20line-height:1.6;\x20}\x0a\x20\x20.alert--error\x20{\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20background:#2a1113;\x20color:#fca5a5;\x20}\x0a\x20\x20.muted-code\x20{\x20font-family:monospace;\x20color:var(--okdb-app-fg-muted);\x20word-break:break-all;\x20}\x0a\x20\x20.inline-link\x20{\x20background:none;\x20border:none;\x20padding:0;\x20color:var(--okdb-accent);\x20font:inherit;\x20cursor:pointer;\x20text-decoration:underline;\x20text-underline-offset:2px;\x20}\x0a\x20\x20.inline-link:hover\x20{\x20color:var(--okdb-sky);\x20}\x0a\x20\x20.json-block\x20{\x20margin:0;\x20max-height:280px;\x20overflow:auto;\x20padding:10px;\x20border-radius:8px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20font-size:11px;\x20line-height:1.55;\x20white-space:pre-wrap;\x20word-break:break-word;\x20}\x0a','2452ZfVZXV','226913FeNlgI','535OjQegg'];_0x3e51=function(){return _0x90ee8a;};return _0x3e51();}
@@ -1 +1 @@
1
- const _0x58c08b=_0x14c4;(function(_0x29bb7d,_0x4a50c4){const _0x3219ac=_0x14c4,_0x3c606d=_0x29bb7d();while(!![]){try{const _0x22022b=-parseInt(_0x3219ac(0x172))/0x1+parseInt(_0x3219ac(0xe9))/0x2+-parseInt(_0x3219ac(0x17b))/0x3*(parseInt(_0x3219ac(0xc4))/0x4)+-parseInt(_0x3219ac(0x139))/0x5+-parseInt(_0x3219ac(0x13d))/0x6+-parseInt(_0x3219ac(0x11a))/0x7+-parseInt(_0x3219ac(0x19f))/0x8*(-parseInt(_0x3219ac(0x19e))/0x9);if(_0x22022b===_0x4a50c4)break;else _0x3c606d['push'](_0x3c606d['shift']());}catch(_0x4e6eae){_0x3c606d['push'](_0x3c606d['shift']());}}}(_0x2ce6,0x7f0c4));export const EMBEDDINGS_ENGINE_TYPES=new Set([_0x58c08b(0xd0),_0x58c08b(0x1a9),'embed-worker',_0x58c08b(0xd5)]);function _0x2ce6(){const _0x4b34e5=['title','map','Run\x20log','Engine','deleted','Storage','3531080fsHovS','details','Failed\x20batches','done','1713786ECLKgZ','string','Type','color','message','isFinite','/type/','Queue\x20env','vector_count','Reason:\x20','processedChanges','Clear\x20target','Watches\x20','yes','object','stats','/pipelines','field','degraded','chunk','catch','Progress','Active','replace','danger','isArray','storeEnv','Running\x20batches','/pipelines/','/queue','headClock','Batch','Function\x20run\x20recording\x20policy','Searches\x20','Changes','inactive','store\x20text\x20','Indexed\x20documents\x20/\x20total\x20tracked\x20documents','env','vector\x20index','queue-worker','Dims','result','location','targetCount','\x20more)','pipelines','Done','\x20on\x20','target_env','\x20ms','Validation\x20failed:\x20','max','33800JWgMFs','Rows','Algorithm','is\x20invalid','algorithm_config','sourceType','mode','Clock','dims','2821683tsxYhK','Error','affinity','source_env','prepare','forEach','/env/','stringify','unhealthy','bootstrap','\x20overlap','\x20(+','ttl','embed-worker','Target\x20env','join','async','Indexer','Bootstrap','error','last_seen_clock','paused','/embeddings/engines/','select-pipeline','config','pipelineName','Chunk','\x20—\x20','overlap','enabled','Provider','model','isRunning','filter','round','666DVIHSH','371272gdOMYR','materializer','search','Prepare','strategy','trimEnd','lag','Handler','source','Affinity','indexer','building','key','target','processed','latency','\x20/\x20','head_clock','count','hash','TTL','function','$vars','test','Field','source\x20changes','find','Engine\x20is\x20disabled','code','selectedEnv','data','var(--okdb-app-fg-muted)','Origin','originMode','Ops','4ikexxd','value','batchSize','Job\x20type','okdb','running','toString','caught\x20up','set','appliedOps','targetSection','runtime','embedder','split','jobType','json','Runs\x20queued\x20embedding\x20jobs','vector-search','Pending','queue\x20jobs','Request\x20failed','algorithm','$router','$ok','storeText','success','status','job_type','in_flight','Status:\x20','idle','stopped','_search','workers','source_type','doc_counts','trim','104752hKLbjO','/engines','Mode','Uses\x20ƒ\x20','API','push','queue','parse','#/engines?','processor','Indexes\x20','neutral','\x20chars','/functions','Poll','var(--okdb-warning)','queue_env','default','concurrency','targetTab','type','reason','entries','recordRuns','Latency','storage_key','pollInterval','disabled','Concurrency','off','_uiEnv','slice','chunked','envName','total','var(--okdb-success)','Vectors','resolve','accent','healthy','target_type','Consumes\x20','handler','Queue\x20worker\x20handler','warning','length','provider','label','whole\x20record','7000322xtwqUw','Source\x20env','clock\x20','var(--okdb-info)','tone','lastClock','failedBatches','stores','name','Queue','Lag','Target','var(--okdb-danger)','failed','Model','/db','size','engines','Provider\x20health\x20check\x20failed','Source','runningBatches','state','get','Embedder','includes'];_0x2ce6=function(){return _0x4b34e5;};return _0x2ce6();}export function isEmbeddingsEngineType(_0x5b1a0b){return EMBEDDINGS_ENGINE_TYPES['has'](_0x5b1a0b);}export function isEmbeddingsEngine(_0x148023){return isEmbeddingsEngineType(_0x148023?.['type']);}export function cloneValue(_0x153fef,_0x1a4c66={}){const _0x1747c5=_0x58c08b;try{return JSON[_0x1747c5(0xf0)](JSON[_0x1747c5(0x182)](_0x153fef??_0x1a4c66));}catch{return JSON[_0x1747c5(0xf0)](JSON['stringify'](_0x1a4c66));}}export function parseTagList(_0x22f977){const _0x4f1f42=_0x58c08b,_0x12aa18=String(_0x22f977??'')[_0x4f1f42(0xd1)](',')['map'](_0x12b14a=>_0x12b14a[_0x4f1f42(0xe8)]())[_0x4f1f42(0x19c)](Boolean);return _0x12aa18[_0x4f1f42(0x116)]?[...new Set(_0x12aa18)]:null;}export function statusTone(_0x15f8cc=null){const _0x511295=_0x58c08b;return _0x15f8cc?.[_0x511295(0x19b)]?_0x511295(0x10c):'inactive'===_0x15f8cc?.['status']?_0x511295(0xf8):_0x511295(0x18e)===_0x15f8cc?.[_0x511295(0xde)]?'var(--okdb-danger)':'var(--okdb-app-fg-muted)';}export function readableReason(_0x3a0e7f){const _0x298d6c=_0x58c08b;return _0x3a0e7f?String(_0x3a0e7f)[_0x298d6c(0x154)](/_/g,'\x20'):null;}export function formatJsonValue(_0xb1d316){const _0x13323b=_0x58c08b;try{return JSON[_0x13323b(0x182)](_0xb1d316,null,0x2);}catch{return String(_0xb1d316??'');}}export function resolveEngineEnvName(_0xfc30bd=null,_0x1b8989=null){const _0x1ef8fe=_0x58c08b;return _0x1b8989??_0xfc30bd?.[_0x1ef8fe(0x163)]??_0xfc30bd?.[_0x1ef8fe(0x107)]??_0xfc30bd?.[_0x1ef8fe(0x157)]??_0xfc30bd?.[_0x1ef8fe(0x193)]?.[_0x1ef8fe(0x17e)]??null;}export function getEnginePipelineName(_0xb72c0=null){return _0xb72c0?.['meta']?.['pipeline']??null;}export function buildFunctionsRoute(_0x471265,_0x17bd01=null){const _0x185fb4=_0x58c08b,_0x939a0c=new URLSearchParams(),_0xc36d35=_0x471265?.[_0x185fb4(0xdb)]?.['stores']?.[_0x185fb4(0xc8)]?.[_0x185fb4(0xbe)]??null;_0xc36d35&&_0x939a0c['set'](_0x185fb4(0x163),_0xc36d35),_0x17bd01&&_0x939a0c[_0x185fb4(0xcc)](_0x185fb4(0x122),_0x17bd01);const _0x37743d=_0x939a0c['toString']();return _0x185fb4(0xf6)+(_0x37743d?'?'+_0x37743d:'');}export function openFunctionRoute(_0x2dd303,_0x485452,{beforeNavigate:_0x45fbc1}={}){const _0x3ec834=_0x58c08b;if(!_0x485452)return!0x1;const _0x52df19=_0x2dd303?.[_0x3ec834(0xb7)]?.[_0x3ec834(0xda)];if('function'==typeof _0x45fbc1&&_0x45fbc1(),_0x52df19?.[_0x3ec834(0xee)]){const _0x4dd988={..._0x52df19[_0x3ec834(0xe4)]||{}},_0x41ae46=_0x2dd303?.[_0x3ec834(0xdb)]?.[_0x3ec834(0x121)]?.[_0x3ec834(0xc8)]?.[_0x3ec834(0xbe)]??null;_0x41ae46?_0x4dd988[_0x3ec834(0x163)]=_0x41ae46:delete _0x4dd988[_0x3ec834(0x163)],_0x4dd988['name']=_0x485452;const _0x139f4b=_0x3ec834(0xb6)==typeof _0x52df19[_0x3ec834(0x10e)]?_0x52df19[_0x3ec834(0x10e)](_0x3ec834(0xf6),_0x4dd988):buildFunctionsRoute(_0x2dd303,_0x485452);return _0x52df19[_0x3ec834(0xee)](_0x139f4b),!0x0;}return!!globalThis[_0x3ec834(0x168)]&&(globalThis[_0x3ec834(0x168)][_0x3ec834(0xb4)]='#'+buildFunctionsRoute(_0x2dd303,_0x485452),!0x0);}export function dispatchEnginePipelineSelection(_0x1e365e,_0x326c14=null){const _0xc4e3bf=_0x58c08b,_0x1eae0b=getEnginePipelineName(_0x326c14);return!!_0x1eae0b&&(_0x1e365e['$dispatch'](_0xc4e3bf(0x192),_0x1eae0b),!0x0);}function matchesLinkedEngine(_0x391941=null,_0x5705f9=null){const _0x341c8b=_0x58c08b;return!!_0x5705f9&&(_0x391941?.[_0x341c8b(0x122)]===_0x5705f9||_0x391941?.[_0x341c8b(0x1ab)]===_0x5705f9);}function matchesLinkedFunction(_0x2254e3=null,_0xe6c397=null){const _0x401c49=_0x58c08b;return!!_0xe6c397&&(_0x2254e3?.['config']?.[_0x401c49(0x113)]?.[_0x401c49(0x122)]===_0xe6c397||_0x2254e3?.['runtime']?.[_0x401c49(0x113)]?.[_0x401c49(0x122)]===_0xe6c397);}function linkedMemberSourceType(_0x4ce97f=null){const _0x5928f7=_0x58c08b;return _0x4ce97f?.[_0x5928f7(0x193)]?.['source_type']??_0x4ce97f?.[_0x5928f7(0xcf)]?.['source_type']??null;}function linkedMemberJobType(_0x50709b=null){const _0x53ccce=_0x58c08b;return _0x50709b?.[_0x53ccce(0x193)]?.[_0x53ccce(0xdf)]??_0x50709b?.['runtime']?.[_0x53ccce(0xdf)]??null;}function linkedMemberQueueEnv(_0x31d932=null){const _0x3c21f3=_0x58c08b;return _0x31d932?.[_0x3c21f3(0x193)]?.[_0x3c21f3(0xf9)]??_0x31d932?.[_0x3c21f3(0xcf)]?.[_0x3c21f3(0xf9)]??null;}export async function resolveLinkedPipeline(_0x2621c8,{envName:_0xcfab45=null,pipelineName:_0x1354d1=null,ownerEngine:_0x460c22=null,functionName:_0x2c09cd=null}={}){const _0x55f3f8=_0x58c08b,_0xfa4703=_0xcfab45??_0x2621c8?.[_0x55f3f8(0xdb)]?.[_0x55f3f8(0x121)]?.[_0x55f3f8(0xc8)]?.[_0x55f3f8(0xbe)]??null;if(!_0xfa4703||!_0x1354d1&&!_0x460c22&&!_0x2c09cd)return null;let _0x588f07=[],_0x535c53=null,_0x36b435=null,_0x435da8=null,_0x43a0ed=_0x55f3f8(0x16b);try{const _0x79aa8=await fetch(__ENV__['API']+_0x55f3f8(0x181)+encodeURIComponent(_0xfa4703)+_0x55f3f8(0x14d));if(_0x79aa8['ok']){const _0x56d6de=await _0x79aa8[_0x55f3f8(0xd3)]()[_0x55f3f8(0x151)](()=>({}));_0x588f07=_0x56d6de?.[_0x55f3f8(0xbf)]??_0x56d6de?.[_0x55f3f8(0x167)]??[],_0x535c53=_0x588f07[_0x55f3f8(0xbb)](_0x50fb12=>!!_0x50fb12&&(!(!_0x1354d1||_0x50fb12[_0x55f3f8(0x122)]!==_0x1354d1)||(_0x50fb12['engines']??[])['some'](_0x47cc30=>matchesLinkedEngine(_0x47cc30,_0x460c22)||matchesLinkedFunction(_0x47cc30,_0x2c09cd))))??null,_0x36b435=(_0x535c53?.[_0x55f3f8(0x12b)]??[])[_0x55f3f8(0xbb)](_0x44d1b0=>matchesLinkedEngine(_0x44d1b0,_0x460c22))??(_0x535c53?.['engines']??[])[_0x55f3f8(0xbb)](_0x228b69=>matchesLinkedFunction(_0x228b69,_0x2c09cd))??(_0x535c53?.[_0x55f3f8(0x12b)]??[])['find'](_0x53ad4a=>linkedMemberSourceType(_0x53ad4a)&&[_0x55f3f8(0xf2),_0x55f3f8(0x1a0),_0x55f3f8(0x165)][_0x55f3f8(0x132)](_0x53ad4a?.['type']))??(_0x535c53?.[_0x55f3f8(0x12b)]??[])[_0x55f3f8(0xbb)](_0x37222e=>linkedMemberSourceType(_0x37222e))??(_0x535c53?.[_0x55f3f8(0x12b)]??[])[_0x55f3f8(0xbb)](_0x383a10=>_0x383a10?.[_0x55f3f8(0x193)]?.[_0x55f3f8(0xdf)])??null,['processor',_0x55f3f8(0x1a0),_0x55f3f8(0x165)][_0x55f3f8(0x132)](_0x36b435?.[_0x55f3f8(0xfd)])&&(_0x43a0ed='engines');}}catch{}if(!_0x36b435&&(_0x460c22||_0x2c09cd))try{const _0x144e43=await fetch(__ENV__[_0x55f3f8(0xed)]+_0x55f3f8(0x181)+encodeURIComponent(_0xfa4703)+'/engines');if(_0x144e43['ok']){const _0x5ce71d=await _0x144e43['json']()[_0x55f3f8(0x151)](()=>({})),_0x5b5bfe=_0x5ce71d?.['data']??_0x5ce71d?.[_0x55f3f8(0x167)]??[];_0x435da8=_0x5b5bfe[_0x55f3f8(0xbb)](_0x4c3953=>_0x4c3953?.['name']===_0x460c22||_0x4c3953?.['key']===_0x460c22)??_0x5b5bfe['find'](_0x22b309=>_0x22b309?.[_0x55f3f8(0x193)]?.[_0x55f3f8(0x113)]?.['name']===_0x2c09cd)??null,!_0x535c53&&_0x435da8&&(_0x535c53=_0x588f07[_0x55f3f8(0xbb)](_0x1c2767=>(_0x1c2767?.[_0x55f3f8(0x12b)]??[])['some'](_0x5f2b27=>matchesLinkedEngine(_0x5f2b27,_0x435da8?.[_0x55f3f8(0x122)])||matchesLinkedEngine(_0x5f2b27,_0x435da8?.[_0x55f3f8(0x1ab)])||matchesLinkedFunction(_0x5f2b27,_0x2c09cd)))??null),!_0x36b435&&_0x535c53&&(_0x36b435=(_0x535c53?.['engines']??[])[_0x55f3f8(0xbb)](_0x4c51c7=>matchesLinkedEngine(_0x4c51c7,_0x435da8?.[_0x55f3f8(0x122)]))??(_0x535c53?.['engines']??[])[_0x55f3f8(0xbb)](_0x57cf79=>matchesLinkedEngine(_0x57cf79,_0x435da8?.[_0x55f3f8(0x1ab)]))??(_0x535c53?.[_0x55f3f8(0x12b)]??[])[_0x55f3f8(0xbb)](_0x319124=>matchesLinkedFunction(_0x319124,_0x2c09cd))??null),[_0x55f3f8(0xf2),_0x55f3f8(0x1a0),_0x55f3f8(0x165)][_0x55f3f8(0x132)]((_0x36b435??_0x435da8)?.['type'])&&(_0x43a0ed=_0x55f3f8(0x12b));}}catch{}const _0x533f62=linkedMemberSourceType(_0x36b435)??_0x435da8?.[_0x55f3f8(0x193)]?.['source_type']??_0x435da8?.['runtime']?.[_0x55f3f8(0xe6)]??(_0x535c53?.[_0x55f3f8(0x12b)]??[])['map'](linkedMemberSourceType)[_0x55f3f8(0xbb)](Boolean)??null,_0x34418a=linkedMemberJobType(_0x36b435)??_0x435da8?.[_0x55f3f8(0x193)]?.[_0x55f3f8(0xdf)]??_0x435da8?.['runtime']?.[_0x55f3f8(0xdf)]??(_0x535c53?.[_0x55f3f8(0x12b)]??[])[_0x55f3f8(0x134)](linkedMemberJobType)[_0x55f3f8(0xbb)](Boolean)??null,_0x26409e=linkedMemberQueueEnv(_0x36b435)??_0x435da8?.['config']?.[_0x55f3f8(0xf9)]??_0x435da8?.[_0x55f3f8(0xcf)]?.[_0x55f3f8(0xf9)]??_0xfa4703;return'queue-worker'===(_0x36b435??_0x435da8)?.[_0x55f3f8(0xfd)]||_0x34418a?{'envName':_0x26409e,'pipelineName':_0x1354d1??_0x535c53?.[_0x55f3f8(0x122)]??null,'ownerEngine':_0x460c22??_0x36b435?.['name']??_0x36b435?.[_0x55f3f8(0x1ab)]??_0x435da8?.[_0x55f3f8(0x122)]??_0x435da8?.[_0x55f3f8(0x1ab)]??null,'sourceType':null,'jobType':_0x34418a,'targetTab':'workers','targetSection':_0x55f3f8(0xef)}:_0x533f62?{'envName':_0xfa4703,'pipelineName':_0x1354d1??_0x535c53?.[_0x55f3f8(0x122)]??null,'ownerEngine':_0x460c22??_0x36b435?.[_0x55f3f8(0x122)]??_0x36b435?.[_0x55f3f8(0x1ab)]??_0x435da8?.[_0x55f3f8(0x122)]??_0x435da8?.[_0x55f3f8(0x1ab)]??null,'sourceType':_0x533f62,'jobType':null,'targetTab':_0x43a0ed,'targetSection':'db'}:null;}export async function openLinkedPipelineRoute(_0x51ca89,{envName:_0x2957d1=null,pipelineName:_0x26c17f=null,ownerEngine:_0x2e5d72=null,functionName:_0x2e518e=null,beforeNavigate:_0x1f6343}={}){const _0x2037cb=_0x58c08b,_0x4ce6fa=_0x51ca89?.[_0x2037cb(0xb7)]?.[_0x2037cb(0xda)],_0x4ca16f=await resolveLinkedPipeline(_0x51ca89,{'envName':_0x2957d1,'pipelineName':_0x26c17f,'ownerEngine':_0x2e5d72,'functionName':_0x2e518e});if(!_0x4ca16f)return!0x1;if('function'==typeof _0x1f6343&&_0x1f6343(),_0x51ca89?.['$ok']?.[_0x2037cb(0x121)]?.['okdb']?.['selectedEnv']&&_0x51ca89[_0x2037cb(0xdb)]['stores'][_0x2037cb(0xc8)][_0x2037cb(0xbe)]!==_0x4ca16f['envName']&&_0x51ca89[_0x2037cb(0xdb)]['stores'][_0x2037cb(0xc8)]['selectEnv'](_0x4ca16f[_0x2037cb(0x10a)]),_0x4ce6fa?.[_0x2037cb(0xee)]&&_0x2037cb(0xb6)==typeof _0x4ce6fa['resolve']){if(_0x2037cb(0xef)===_0x4ca16f[_0x2037cb(0xce)]){const _0x4079dd={'env':_0x4ca16f['envName'],'view':_0x4ca16f[_0x2037cb(0xfc)]??'workers'};return _0x4ca16f[_0x2037cb(0xd2)]&&(_0x4079dd[_0x2037cb(0xfd)]=_0x4ca16f[_0x2037cb(0xd2)]),_0x4ce6fa['push'](_0x4ce6fa[_0x2037cb(0x10e)](_0x2037cb(0x15a),_0x4079dd)),!0x0;}if(_0x4ca16f[_0x2037cb(0x194)]){const _0x28552f={'env':_0x4ca16f[_0x2037cb(0x10a)],'pipeline':_0x4ca16f[_0x2037cb(0x194)]};return _0x4ca16f[_0x2037cb(0x177)]&&(_0x28552f[_0x2037cb(0x177)]=_0x4ca16f[_0x2037cb(0x177)]),_0x4ce6fa[_0x2037cb(0xee)](_0x4ce6fa[_0x2037cb(0x10e)](_0x2037cb(0xea),_0x28552f)),!0x0;}return!!_0x4ca16f[_0x2037cb(0x177)]&&(_0x4ce6fa['push'](_0x4ce6fa[_0x2037cb(0x10e)](_0x2037cb(0x129),{'env':_0x4ca16f[_0x2037cb(0x10a)],'type':_0x4ca16f[_0x2037cb(0x177)],'tab':_0x4ca16f[_0x2037cb(0xfc)]})),!0x0);}if(globalThis[_0x2037cb(0x168)]){if('queue'===_0x4ca16f[_0x2037cb(0xce)]){const _0x10c714=new URLSearchParams({'env':_0x4ca16f['envName'],'view':_0x4ca16f[_0x2037cb(0xfc)]??_0x2037cb(0xe5)});return _0x4ca16f[_0x2037cb(0xd2)]&&_0x10c714[_0x2037cb(0xcc)](_0x2037cb(0xfd),_0x4ca16f[_0x2037cb(0xd2)]),globalThis[_0x2037cb(0x168)][_0x2037cb(0xb4)]='#/queue?'+_0x10c714['toString'](),!0x0;}if(_0x4ca16f[_0x2037cb(0x194)]){const _0x365382=new URLSearchParams({'env':_0x4ca16f[_0x2037cb(0x10a)],'pipeline':_0x4ca16f['pipelineName']});return _0x4ca16f[_0x2037cb(0x177)]&&_0x365382[_0x2037cb(0xcc)](_0x2037cb(0x177),_0x4ca16f['sourceType']),globalThis[_0x2037cb(0x168)][_0x2037cb(0xb4)]=_0x2037cb(0xf1)+_0x365382[_0x2037cb(0xca)](),!0x0;}if(!_0x4ca16f['sourceType'])return!0x1;const _0x2424a3=new URLSearchParams({'env':_0x4ca16f[_0x2037cb(0x10a)],'type':_0x4ca16f[_0x2037cb(0x177)],'tab':_0x4ca16f[_0x2037cb(0xfc)]});return globalThis[_0x2037cb(0x168)][_0x2037cb(0xb4)]='#/db?'+_0x2424a3[_0x2037cb(0xca)](),!0x0;}return!0x1;}export function buildEmbeddingsPipelineUrl(_0x2c871c=null,_0x433411=null){const _0x167c09=_0x58c08b,_0x52630e=_0x2c871c?.[_0x167c09(0x193)]??{},_0x5440ae=encodeURIComponent(_0x52630e[_0x167c09(0x17e)]??_0x167c09(0xfa)),_0x48022c=encodeURIComponent(_0x52630e[_0x167c09(0xe6)]??''),_0x24fd41=encodeURIComponent(_0x52630e['storage_key']??_0x433411??_0x2c871c?.['name']??'');return __ENV__['API']+'/env/'+_0x5440ae+_0x167c09(0x143)+_0x48022c+_0x167c09(0x159)+_0x24fd41;}export function maskSensitiveConfig(_0x3989b2={}){const _0x37a255=_0x58c08b;if(Array[_0x37a255(0x156)](_0x3989b2))return _0x3989b2['map'](_0x1ca64f=>maskSensitiveConfig(_0x1ca64f));if(!_0x3989b2||_0x37a255(0x14b)!=typeof _0x3989b2)return _0x3989b2;const _0x42d1a6={};for(const [_0x4c2697,_0x1acf2e]of Object[_0x37a255(0xff)](_0x3989b2))_0x42d1a6[_0x4c2697]=/key|secret|pass|token/i['test'](_0x4c2697)?'***':maskSensitiveConfig(_0x1acf2e);return _0x42d1a6;}export function summarizeValidationDetails(_0x10907a=[]){const _0x5eae70=_0x58c08b;if(!Array['isArray'](_0x10907a)||0x0===_0x10907a[_0x5eae70(0x116)])return null;const _0x59d9ff=_0x10907a[_0x5eae70(0x108)](0x0,0x3)[_0x5eae70(0x134)]((_0x12fe3b={})=>(''+(_0x12fe3b[_0x5eae70(0x14e)]?_0x12fe3b[_0x5eae70(0x14e)]+'\x20':'')+(_0x12fe3b[_0x5eae70(0x141)]||_0x5eae70(0x175)))[_0x5eae70(0xe8)]())[_0x5eae70(0x18a)](';\x20');return _0x10907a[_0x5eae70(0x116)]>0x3?_0x59d9ff+_0x5eae70(0x186)+(_0x10907a[_0x5eae70(0x116)]-0x3)+_0x5eae70(0x16a):_0x59d9ff;}function _0x14c4(_0x1fcf18,_0x5a9144){_0x1fcf18=_0x1fcf18-0xae;const _0x2ce662=_0x2ce6();let _0x14c47a=_0x2ce662[_0x1fcf18];return _0x14c47a;}export function getApiErrorMessage(_0x1915f1=null,_0x2f976a=_0x58c08b(0xd8)){const _0x19a2f6=_0x58c08b,_0x56770b=_0x1915f1?.['error']??null,_0x448f04=summarizeValidationDetails(_0x56770b?.[_0x19a2f6(0x13a)]??_0x1915f1?.['details']??null);return _0x19a2f6(0x13e)==typeof _0x56770b?_0x1915f1?.['message']?_0x1915f1['message']:_0x448f04&&/^[A-Z0-9_]+$/[_0x19a2f6(0xb8)](_0x56770b)?_0x19a2f6(0x170)+_0x448f04:_0x56770b||_0x2f976a:_0x56770b?.[_0x19a2f6(0x141)]?_0x448f04&&'VALIDATION_ERROR'===_0x56770b[_0x19a2f6(0xbd)]&&!_0x56770b[_0x19a2f6(0x141)][_0x19a2f6(0x132)](_0x448f04)?_0x56770b['message']+_0x19a2f6(0x196)+_0x448f04:_0x56770b['message']:_0x1915f1?.[_0x19a2f6(0x141)]?_0x448f04&&!_0x1915f1['message']['includes'](_0x448f04)?_0x1915f1[_0x19a2f6(0x141)]+_0x19a2f6(0x196)+_0x448f04:_0x1915f1['message']:_0x448f04?'Validation\x20failed:\x20'+_0x448f04:_0x2f976a;}export function buildEngineBasePath(_0x4e1e61=null,_0x2e6afb=null){const _0x408a39=_0x58c08b;if(!_0x4e1e61)return null;if(isEmbeddingsEngine(_0x4e1e61))return _0x4e1e61[_0x408a39(0x1ab)]?__ENV__['API']+_0x408a39(0x191)+encodeURIComponent(_0x4e1e61['key']):null;const _0x21ec62=resolveEngineEnvName(_0x4e1e61,_0x2e6afb);return _0x21ec62&&_0x4e1e61[_0x408a39(0xfd)]&&_0x4e1e61[_0x408a39(0x122)]?__ENV__[_0x408a39(0xed)]+_0x408a39(0x181)+encodeURIComponent(_0x21ec62)+'/engines/'+encodeURIComponent(_0x4e1e61[_0x408a39(0xfd)])+'/'+encodeURIComponent(_0x4e1e61[_0x408a39(0x122)]):null;}function compactCount(_0x35a8a1){const _0x3be47d=_0x58c08b;if(null==_0x35a8a1||''===_0x35a8a1)return null;const _0x4fda87=Number(_0x35a8a1);return Number[_0x3be47d(0x142)](_0x4fda87)&&Number['isInteger'](_0x4fda87)?_0x4fda87['toLocaleString']():String(_0x35a8a1);}function firstDefined(..._0x9a5bc6){for(const _0x303328 of _0x9a5bc6)if(null!=_0x303328&&''!==_0x303328)return _0x303328;return null;}function pushBadge(_0x1329c0,_0x4bedd0,_0x528851=_0x58c08b(0xc0),_0x2ddab0=null){const _0x3eadec=_0x58c08b;null!=_0x4bedd0&&''!==_0x4bedd0&&_0x1329c0[_0x3eadec(0xee)]({'text':String(_0x4bedd0),'color':_0x528851,'title':_0x2ddab0??String(_0x4bedd0)});}function pushMetric(_0x492ce6,_0x1633d8,_0x29f149,_0x306998={}){const _0x13c712=_0x58c08b;null!=_0x1633d8&&''!==_0x1633d8&&null!=_0x29f149&&''!==_0x29f149&&'—'!==_0x29f149&&_0x492ce6[_0x13c712(0xee)]({'label':String(_0x1633d8),'value':String(_0x29f149),'tone':_0x306998[_0x13c712(0x11e)]??'neutral','title':_0x306998[_0x13c712(0x133)]??_0x1633d8+':\x20'+_0x29f149});}function buildStatusMeta(_0x5589c8,_0x231e83,_0x1ae59c=null){const _0x228d80=_0x58c08b;return{'label':_0x5589c8,'color':_0x231e83,'title':_0x1ae59c??_0x228d80(0xe1)+_0x5589c8};}function formatClockBadge(_0x411206,_0x32de0e){const _0x894d38=_0x58c08b,_0x23def4=compactCount(_0x411206),_0x25a106=compactCount(_0x32de0e);return null==_0x23def4&&null==_0x25a106?null:_0x894d38(0x11c)+(_0x23def4??'—')+_0x894d38(0xb1)+(_0x25a106??'—');}function inferLag(_0x38e48a,_0x16e7be,_0x5ad5e8){const _0x166380=_0x58c08b;if(null!=_0x38e48a&&''!==_0x38e48a)return _0x38e48a;const _0x510586=Number(_0x16e7be),_0x48b3cd=Number(_0x5ad5e8);return Number[_0x166380(0x142)](_0x510586)&&Number[_0x166380(0x142)](_0x48b3cd)?Math[_0x166380(0x171)](0x0,_0x48b3cd-_0x510586):null;}function formatBool(_0x32265c,_0x590c4b=_0x58c08b(0x14a),_0x4367fc='no'){return null==_0x32265c||''===_0x32265c?null:_0x32265c?_0x590c4b:_0x4367fc;}function formatChunkConfig(_0x42877f=null){const _0x30995e=_0x58c08b;if(!_0x42877f||_0x30995e(0x14b)!=typeof _0x42877f)return null;const _0x536ce4=[_0x42877f[_0x30995e(0x1a3)]??_0x42877f[_0x30995e(0xfd)]??_0x30995e(0x109)];return null!=_0x42877f[_0x30995e(0x12a)]&&_0x536ce4[_0x30995e(0xee)](compactCount(_0x42877f[_0x30995e(0x12a)])+_0x30995e(0xf5)),null!=_0x42877f[_0x30995e(0x197)]&&_0x536ce4[_0x30995e(0xee)](compactCount(_0x42877f['overlap'])+_0x30995e(0x185)),null!=_0x42877f[_0x30995e(0xdc)]&&_0x536ce4[_0x30995e(0xee)](_0x30995e(0x161)+formatBool(_0x42877f[_0x30995e(0xdc)],'on','off')),_0x536ce4['filter'](Boolean)[_0x30995e(0x18a)](_0x30995e(0xb1));}function formatIndexerProgress(_0xdc0cf8=null){const _0x584864=_0x58c08b;if(!_0xdc0cf8||_0x584864(0x14b)!=typeof _0xdc0cf8)return null;const _0x2f4f23=Number(_0xdc0cf8['done']??0x0),_0x2f938e=Number(_0xdc0cf8['pending']??0x0),_0x34b0ea=Number(_0xdc0cf8[_0x584864(0x127)]??0x0),_0x156098=Number(_0xdc0cf8[_0x584864(0x10b)]??_0x2f4f23+_0x2f938e+_0x34b0ea+Number(_0xdc0cf8[_0x584864(0x137)]??0x0));if(!Number[_0x584864(0x142)](_0x156098)||_0x156098<=0x0)return null;const _0x5ef6b3=Math['round'](Math[_0x584864(0x171)](0x0,_0x2f4f23)/_0x156098*0x64);return{'value':compactCount(_0x2f4f23)+'/'+compactCount(_0x156098)+'\x20('+_0x5ef6b3+'%)','tone':_0x34b0ea>0x0?'danger':_0x2f938e>0x0?_0x584864(0x115):_0x584864(0xdd)};}function formatClockProgress(_0x305d53,_0x139e24){const _0x16de4f=_0x58c08b,_0x3fcdf9=Number(_0x305d53),_0x25483a=Number(_0x139e24);if(!Number[_0x16de4f(0x142)](_0x3fcdf9)||!Number[_0x16de4f(0x142)](_0x25483a)||_0x25483a<=0x0)return null;const _0xed6f19=Math[_0x16de4f(0x171)](0x0,Math['min'](_0x3fcdf9,_0x25483a)),_0x26467d=Math[_0x16de4f(0x19d)](_0xed6f19/_0x25483a*0x64);return{'value':compactCount(_0xed6f19)+'/'+compactCount(_0x25483a)+'\x20('+_0x26467d+'%)','tone':_0xed6f19>=_0x25483a?_0x16de4f(0xdd):'warning'};}export function compactEngineErrorText(_0x333811=null,_0x3f2c65=0xa0){const _0x386565=_0x58c08b,_0x51d304=firstDefined(_0x333811?.[_0x386565(0x14c)]?.['error'],_0x333811?.['runtime']?.[_0x386565(0x18e)],_0x333811?.[_0x386565(0x18e)]);if(null==_0x51d304)return null;const _0x2e24c2=String(_0x51d304)[_0x386565(0x154)](/\s+/g,'\x20')[_0x386565(0xe8)]();return _0x2e24c2?_0x2e24c2[_0x386565(0x116)]>_0x3f2c65?_0x2e24c2[_0x386565(0x108)](0x0,Math[_0x386565(0x171)](0x0,_0x3f2c65-0x1))[_0x386565(0x1a4)]()+'…':_0x2e24c2:null;}export function compactEngineStatusMeta(_0x2842ff=null){const _0x24ba6f=_0x58c08b,_0x52ee2d=_0x2842ff?.[_0x24ba6f(0x14c)]??{},_0x20f299=_0x2842ff?.[_0x24ba6f(0xcf)]??{},_0x1111ec=firstDefined(_0x52ee2d?.[_0x24ba6f(0x12f)],_0x20f299?.['state'],_0x2842ff?.[_0x24ba6f(0x12f)],_0x2842ff?.['status']);return!0x0===firstDefined(_0x52ee2d?.['paused'],_0x20f299?.[_0x24ba6f(0x190)],_0x2842ff?.[_0x24ba6f(0x190)])?buildStatusMeta(_0x24ba6f(0x190),_0x24ba6f(0xf8)):'error'===_0x1111ec||_0x24ba6f(0x18e)===_0x2842ff?.[_0x24ba6f(0xde)]?buildStatusMeta(_0x24ba6f(0x18e),_0x24ba6f(0x126)):_0x24ba6f(0x160)===_0x1111ec||_0x24ba6f(0x160)===_0x2842ff?.['status']?buildStatusMeta(_0x24ba6f(0x160),_0x24ba6f(0xf8)):_0x24ba6f(0x1aa)===_0x1111ec?buildStatusMeta(_0x24ba6f(0x1aa),_0x24ba6f(0x11d)):_0x2842ff?.[_0x24ba6f(0x19b)]||'online'===_0x1111ec||'running'===_0x1111ec?buildStatusMeta(_0x24ba6f(0xc9),_0x24ba6f(0x10c)):'degraded'===_0x1111ec?buildStatusMeta(_0x24ba6f(0x14f),_0x24ba6f(0xf8)):buildStatusMeta('stopped'===_0x1111ec||_0x24ba6f(0xe2)===_0x1111ec?_0x24ba6f(0xe3):_0x1111ec?String(_0x1111ec):_0x24ba6f(0xe3),_0x24ba6f(0xc0));}export function compactEngineRowStatusBadges(_0x20e474=null){const _0x358d47=_0x58c08b,_0x172b39=_0x20e474?.[_0x358d47(0x14c)]??{},_0x367a7c=[],_0x581925=compactEngineStatusMeta(_0x20e474),_0x3d62c0=readableReason(_0x20e474?.[_0x358d47(0xfe)]);return pushBadge(_0x367a7c,_0x581925[_0x358d47(0x118)],_0x581925[_0x358d47(0x140)],_0x581925[_0x358d47(0x133)]),_0x358d47(0xd0)===_0x20e474?.[_0x358d47(0xfd)]&&(!0x0===_0x172b39?.['ok']&&pushBadge(_0x367a7c,_0x358d47(0x110),_0x358d47(0x10c),'Provider\x20health\x20check\x20is\x20healthy'),!0x1===_0x172b39?.['ok']&&pushBadge(_0x367a7c,_0x358d47(0x183),_0x358d47(0x126),_0x358d47(0x12c))),!0x1===_0x20e474?.[_0x358d47(0x198)]&&pushBadge(_0x367a7c,_0x358d47(0x104),_0x358d47(0xc0),_0x358d47(0xbc)),_0x3d62c0&&_0x3d62c0!==_0x581925[_0x358d47(0x118)]&&pushBadge(_0x367a7c,_0x3d62c0,'var(--okdb-app-fg-muted)',_0x358d47(0x146)+_0x3d62c0),_0x367a7c;}export function compactEngineRowSummary(_0x3ce228=null){const _0x2296ee=_0x58c08b,_0x289480=_0x3ce228?.['config']??{},_0x242780=_0x3ce228?.[_0x2296ee(0x14c)]??{},_0x35ce45=_0x242780?.[_0x2296ee(0x1a9)]??_0x242780??{},_0x45ab7a=_0x242780?.[_0x2296ee(0x1a1)]??_0x242780??{},_0x474ed5=_0x242780?.[_0x2296ee(0x113)]?.['name']??_0x289480?.[_0x2296ee(0x113)]?.[_0x2296ee(0x122)]??null;switch(_0x3ce228?.[_0x2296ee(0xfd)]){case'queue-worker':return _0x2296ee(0x112)+(_0x242780?.[_0x2296ee(0xdf)]??_0x289480?.['job_type']??_0x2296ee(0xd7));case _0x2296ee(0xf2):return _0x2296ee(0x149)+(_0x242780?.[_0x2296ee(0xe6)]??_0x289480?.[_0x2296ee(0xe6)]??_0x2296ee(0xba));case _0x2296ee(0x1a0):return(_0x242780?.[_0x2296ee(0xe6)]??_0x289480?.[_0x2296ee(0xe6)]??_0x2296ee(0x1a7))+'\x20→\x20'+(_0x242780?.[_0x2296ee(0x111)]??_0x289480?.[_0x2296ee(0x111)]??_0x2296ee(0xae));case _0x2296ee(0xd0):return(_0x242780?.[_0x2296ee(0x19a)]??_0x289480?.['model']??_0x3ce228?.['name']??_0x2296ee(0x131))+_0x2296ee(0x16d)+(_0x242780?.[_0x2296ee(0xfd)]??_0x289480?.[_0x2296ee(0xfd)]??_0x289480?.[_0x2296ee(0x117)]??_0x2296ee(0x117));case _0x2296ee(0x1a9):return _0x2296ee(0xf3)+(_0x35ce45?.['source_type']??_0x289480?.[_0x2296ee(0xe6)]??'source\x20docs');case _0x2296ee(0xd5):return _0x2296ee(0x15e)+(_0x45ab7a?.[_0x2296ee(0x102)]??_0x289480?.[_0x2296ee(0x102)]??_0x3ce228?.[_0x2296ee(0x122)]??_0x2296ee(0x164));case _0x2296ee(0x188):return _0x2296ee(0xd4)+(_0x242780?.[_0x2296ee(0x1a9)]??_0x289480?.[_0x2296ee(0x1a9)]?'\x20for\x20'+(_0x242780?.[_0x2296ee(0x1a9)]??_0x289480[_0x2296ee(0x1a9)]):'');default:return _0x474ed5?_0x2296ee(0xec)+_0x474ed5:_0x3ce228?.[_0x2296ee(0x122)]??_0x3ce228?.[_0x2296ee(0x1ab)]??_0x2296ee(0x136);}}export function compactEngineRowMetrics(_0x1611c3=null){const _0x5b201a=_0x58c08b,_0x437479=_0x1611c3?.[_0x5b201a(0x193)]??{},_0x326ce9=_0x1611c3?.[_0x5b201a(0x14c)]??{},_0x36b271=_0x326ce9?.[_0x5b201a(0x1a9)]??_0x326ce9??{},_0x3d88aa=_0x326ce9?.[_0x5b201a(0x1a1)]??_0x326ce9??{},_0x3de323=[],_0x307edb=firstDefined(_0x326ce9?.[_0x5b201a(0x11f)],_0x1611c3?.[_0x5b201a(0xcf)]?.[_0x5b201a(0x11f)],_0x1611c3?.[_0x5b201a(0x11f)],_0x36b271?.[_0x5b201a(0x18f)],_0x3d88aa?.[_0x5b201a(0x18f)]),_0x320185=firstDefined(_0x326ce9?.['headClock'],_0x1611c3?.[_0x5b201a(0xcf)]?.[_0x5b201a(0x15b)],_0x1611c3?.[_0x5b201a(0x15b)],_0x36b271?.[_0x5b201a(0xb2)],_0x3d88aa?.[_0x5b201a(0xb2)]),_0x44f3d0=inferLag(firstDefined(_0x326ce9?.[_0x5b201a(0x1a5)],_0x1611c3?.[_0x5b201a(0xcf)]?.[_0x5b201a(0x1a5)],_0x1611c3?.[_0x5b201a(0x1a5)],_0x36b271?.['lag'],_0x3d88aa?.['lag']),_0x307edb,_0x320185),_0x4107b6=formatClockBadge(_0x307edb,_0x320185);switch(_0x1611c3?.['type']){case _0x5b201a(0x165):pushMetric(_0x3de323,_0x5b201a(0x16c),compactCount(_0x326ce9?.[_0x5b201a(0xaf)]??0x0),{'tone':_0x5b201a(0xdd)}),pushMetric(_0x3de323,_0x5b201a(0x17c),compactCount(_0x326ce9?.[_0x5b201a(0x127)]??0x0),{'tone':(_0x326ce9?.[_0x5b201a(0x127)]??0x0)>0x0?_0x5b201a(0x155):_0x5b201a(0xf4)}),pushMetric(_0x3de323,_0x5b201a(0x123),_0x326ce9?.['queue_env']??_0x437479?.['queue_env']??_0x1611c3?.['env']??_0x5b201a(0xfa)),pushMetric(_0x3de323,'Handler',_0x326ce9?.['handler']?.[_0x5b201a(0x122)]??_0x437479?.[_0x5b201a(0x113)]?.[_0x5b201a(0x122)],{'title':_0x5b201a(0x114)});break;case'processor':null!=_0x326ce9?.[_0x5b201a(0x147)]&&pushMetric(_0x3de323,'Changes',compactCount(_0x326ce9[_0x5b201a(0x147)])),null!=_0x326ce9?.[_0x5b201a(0x120)]&&pushMetric(_0x3de323,_0x5b201a(0x17c),compactCount(_0x326ce9['failedBatches']),{'tone':(_0x326ce9?.['failedBatches']??0x0)>0x0?'danger':_0x5b201a(0xf4),'title':_0x5b201a(0x13b)}),null!=_0x326ce9?.[_0x5b201a(0x12e)]&&pushMetric(_0x3de323,_0x5b201a(0x153),compactCount(_0x326ce9['runningBatches']),{'tone':(_0x326ce9?.[_0x5b201a(0x12e)]??0x0)>0x0?_0x5b201a(0x10f):_0x5b201a(0xf4),'title':_0x5b201a(0x158)}),null!=_0x44f3d0&&pushMetric(_0x3de323,_0x5b201a(0x124),0x0===_0x44f3d0?_0x5b201a(0xcb):compactCount(_0x44f3d0),{'tone':Number(_0x44f3d0)>0x0?'warning':'success'}),_0x4107b6&&pushMetric(_0x3de323,_0x5b201a(0x179),_0x4107b6[_0x5b201a(0x154)](/^clock\s+/i,'')),pushMetric(_0x3de323,_0x5b201a(0xeb),_0x326ce9?.[_0x5b201a(0x178)]??_0x437479?.[_0x5b201a(0x178)]??_0x5b201a(0x18b));break;case'materializer':null!=_0x326ce9?.[_0x5b201a(0x169)]&&pushMetric(_0x3de323,'Rows',compactCount(_0x326ce9[_0x5b201a(0x169)]),{'tone':'success'}),null!=_0x326ce9?.[_0x5b201a(0xcd)]&&pushMetric(_0x3de323,_0x5b201a(0xc3),compactCount(_0x326ce9[_0x5b201a(0xcd)])),null!=_0x326ce9?.[_0x5b201a(0x120)]&&pushMetric(_0x3de323,'Error',compactCount(_0x326ce9['failedBatches']),{'tone':(_0x326ce9?.[_0x5b201a(0x120)]??0x0)>0x0?_0x5b201a(0x155):_0x5b201a(0xf4),'title':_0x5b201a(0x13b)}),null!=_0x326ce9?.[_0x5b201a(0x12e)]&&pushMetric(_0x3de323,_0x5b201a(0x153),compactCount(_0x326ce9[_0x5b201a(0x12e)]),{'tone':(_0x326ce9?.[_0x5b201a(0x12e)]??0x0)>0x0?'accent':_0x5b201a(0xf4),'title':_0x5b201a(0x158)}),null!=_0x44f3d0&&pushMetric(_0x3de323,_0x5b201a(0x124),0x0===_0x44f3d0?'caught\x20up':compactCount(_0x44f3d0),{'tone':Number(_0x44f3d0)>0x0?_0x5b201a(0x115):'success'}),_0x4107b6&&pushMetric(_0x3de323,_0x5b201a(0x179),_0x4107b6[_0x5b201a(0x154)](/^clock\s+/i,''));break;case'embedder':pushMetric(_0x3de323,_0x5b201a(0x199),_0x326ce9?.['type']??_0x437479?.[_0x5b201a(0xfd)]??_0x437479?.['provider']),pushMetric(_0x3de323,_0x5b201a(0x128),_0x326ce9?.['model']??_0x437479?.[_0x5b201a(0x19a)]),null!=_0x326ce9?.[_0x5b201a(0xb0)]&&pushMetric(_0x3de323,_0x5b201a(0x101),compactCount(_0x326ce9[_0x5b201a(0xb0)])+_0x5b201a(0x16f),{'tone':'accent'});break;case _0x5b201a(0x1a9):if(_0x36b271[_0x5b201a(0xe7)]&&pushMetric(_0x3de323,_0x5b201a(0x16c),compactCount(_0x36b271[_0x5b201a(0xe7)][_0x5b201a(0x13c)]??0x0),{'tone':_0x5b201a(0xdd)}),_0x36b271[_0x5b201a(0xe7)]){const _0x19d05d=formatIndexerProgress(_0x36b271[_0x5b201a(0xe7)]);_0x19d05d&&pushMetric(_0x3de323,_0x5b201a(0x152),_0x19d05d[_0x5b201a(0xc5)],{'tone':_0x19d05d[_0x5b201a(0x11e)],'title':_0x5b201a(0x162)});}else{const _0x5e117d=formatClockProgress(_0x307edb,_0x320185);_0x5e117d&&pushMetric(_0x3de323,_0x5b201a(0x152),_0x5e117d[_0x5b201a(0xc5)],{'tone':_0x5e117d['tone'],'title':'Indexer\x20cursor\x20/\x20source\x20head\x20clock'});}_0x36b271['doc_counts']&&pushMetric(_0x3de323,'Pending',compactCount(_0x36b271[_0x5b201a(0xe7)]['pending']??0x0),{'tone':(_0x36b271[_0x5b201a(0xe7)]['pending']??0x0)>0x0?_0x5b201a(0x115):_0x5b201a(0xf4)}),_0x36b271[_0x5b201a(0xe7)]&&pushMetric(_0x3de323,_0x5b201a(0x17c),compactCount(_0x36b271[_0x5b201a(0xe7)][_0x5b201a(0x127)]??0x0),{'tone':(_0x36b271[_0x5b201a(0xe7)][_0x5b201a(0x127)]??0x0)>0x0?_0x5b201a(0x155):_0x5b201a(0xf4)}),null!=_0x36b271?.['vector_count']&&pushMetric(_0x3de323,_0x5b201a(0x10d),compactCount(_0x36b271['vector_count']),{'tone':_0x5b201a(0xdd)}),_0x4107b6&&pushMetric(_0x3de323,_0x5b201a(0x179),_0x4107b6[_0x5b201a(0x154)](/^clock\s+/i,'')),null!=_0x44f3d0&&pushMetric(_0x3de323,'Lag',0x0===_0x44f3d0?_0x5b201a(0xcb):compactCount(_0x44f3d0),{'tone':Number(_0x44f3d0)>0x0?_0x5b201a(0x115):_0x5b201a(0xdd)}),pushMetric(_0x3de323,_0x5b201a(0xb9),_0x36b271[_0x5b201a(0x14e)]??_0x437479?.['field']??_0x5b201a(0x119)),pushMetric(_0x3de323,_0x5b201a(0xeb),_0x36b271[_0x5b201a(0x178)]??_0x437479?.[_0x5b201a(0x178)]),pushMetric(_0x3de323,_0x5b201a(0x1a2),_0x36b271['prepare']??_0x437479?.[_0x5b201a(0x17f)]),pushMetric(_0x3de323,_0x5b201a(0x195),formatChunkConfig(_0x36b271[_0x5b201a(0x150)]??_0x437479?.['chunk'])),pushMetric(_0x3de323,'Embedder',_0x36b271['embedder']??_0x437479?.['embedder']);break;case'vector-search':null==_0x3d88aa[_0x5b201a(0xb3)]&&null==_0x3d88aa[_0x5b201a(0x145)]||pushMetric(_0x3de323,'Vectors',compactCount(_0x3d88aa[_0x5b201a(0xb3)]??_0x3d88aa['vector_count']),{'tone':_0x5b201a(0xdd)}),null!=_0x3d88aa[_0x5b201a(0x17a)]&&pushMetric(_0x3de323,_0x5b201a(0x166),compactCount(_0x3d88aa[_0x5b201a(0x17a)])),pushMetric(_0x3de323,_0x5b201a(0x174),_0x3d88aa[_0x5b201a(0xd9)]??_0x437479?.['algorithm']);break;case'embed-worker':null!=_0x326ce9?.[_0x5b201a(0xaf)]&&pushMetric(_0x3de323,'Done',compactCount(_0x326ce9[_0x5b201a(0xaf)]),{'tone':_0x5b201a(0xdd)}),null!=_0x326ce9?.[_0x5b201a(0x127)]&&pushMetric(_0x3de323,_0x5b201a(0x17c),compactCount(_0x326ce9[_0x5b201a(0x127)]),{'tone':(_0x326ce9?.[_0x5b201a(0x127)]??0x0)>0x0?_0x5b201a(0x155):_0x5b201a(0xf4)}),null!=_0x326ce9?.[_0x5b201a(0xe0)]&&pushMetric(_0x3de323,_0x5b201a(0x153),compactCount(_0x326ce9[_0x5b201a(0xe0)]),{'tone':(_0x326ce9?.['in_flight']??0x0)>0x0?'accent':_0x5b201a(0xf4)}),null!=_0x326ce9?.[_0x5b201a(0xfb)]&&pushMetric(_0x3de323,'Workers',compactCount(_0x326ce9[_0x5b201a(0xfb)]),{'tone':_0x5b201a(0x10f)}),pushMetric(_0x3de323,_0x5b201a(0x18c),_0x326ce9?.['indexer']??_0x437479?.[_0x5b201a(0x1a9)]);break;default:null!=_0x44f3d0&&pushMetric(_0x3de323,_0x5b201a(0x124),0x0===_0x44f3d0?_0x5b201a(0xcb):compactCount(_0x44f3d0),{'tone':Number(_0x44f3d0)>0x0?_0x5b201a(0x115):_0x5b201a(0xdd)}),pushMetric(_0x3de323,_0x5b201a(0x13f),_0x437479?.[_0x5b201a(0xe6)]);}return Array[_0x5b201a(0x156)](_0x1611c3?.['affinity'])&&_0x1611c3[_0x5b201a(0x17d)][_0x5b201a(0x116)]&&pushMetric(_0x3de323,_0x5b201a(0x1a8),_0x1611c3['affinity'][_0x5b201a(0x18a)](',\x20')),_0x3de323;}export function compactEngineRowPreview(_0x2b3b00=null){const _0x49d0ae=_0x58c08b,_0x43d8af=compactEngineRowMetrics(_0x2b3b00),_0x461bc2=new Map(_0x43d8af[_0x49d0ae(0x134)](_0x189b6a=>[_0x189b6a['label'],_0x189b6a])),_0x554e32=[],_0x15301f=_0x2da9f4=>{const _0x528bea=_0x49d0ae,_0x3b6224=_0x461bc2[_0x528bea(0x130)](_0x2da9f4);_0x3b6224&&(_0x554e32[_0x528bea(0xee)](_0x3b6224),_0x461bc2['delete'](_0x2da9f4));};switch(_0x2b3b00?.['type']){case _0x49d0ae(0x1a9):[_0x49d0ae(0x152),_0x49d0ae(0x124),_0x49d0ae(0xd6),_0x49d0ae(0x17c),_0x49d0ae(0x10d),'Chunk'][_0x49d0ae(0x180)](_0x15301f);break;case _0x49d0ae(0x188):case _0x49d0ae(0x165):[_0x49d0ae(0x16c),_0x49d0ae(0x17c),_0x49d0ae(0x153),'Workers'][_0x49d0ae(0x180)](_0x15301f);break;case _0x49d0ae(0xf2):[_0x49d0ae(0x15f),'Error','Active',_0x49d0ae(0x124)]['forEach'](_0x15301f);break;case _0x49d0ae(0x1a0):[_0x49d0ae(0x173),'Ops','Error',_0x49d0ae(0x153),'Lag'][_0x49d0ae(0x180)](_0x15301f);break;case _0x49d0ae(0xd5):[_0x49d0ae(0x10d),_0x49d0ae(0x166),_0x49d0ae(0x174)][_0x49d0ae(0x180)](_0x15301f);break;case _0x49d0ae(0xd0):[_0x49d0ae(0x128),_0x49d0ae(0x199),_0x49d0ae(0x101)][_0x49d0ae(0x180)](_0x15301f);break;default:[_0x49d0ae(0x17c),'Lag',_0x49d0ae(0x13f)][_0x49d0ae(0x180)](_0x15301f);}return _0x554e32[_0x49d0ae(0x108)](0x0,0x3);}export function compactEngineConfigMetrics(_0xdec83e=null){const _0x3e0366=_0x58c08b,_0x47353f=_0xdec83e?.[_0x3e0366(0x193)]??{},_0x2b38ec=_0xdec83e?.[_0x3e0366(0x14c)]??{},_0x122710=_0xdec83e?.['runtime']??{},_0x39f7df=[],_0x2f7e2a=_0x47353f?.[_0x3e0366(0x113)]??_0x122710?.[_0x3e0366(0x113)]??_0x2b38ec?.['handler']??null;switch(_0xdec83e?.[_0x3e0366(0xfd)]){case _0x3e0366(0xf2):pushMetric(_0x39f7df,_0x3e0366(0x12d),_0x47353f?.['source_type']??_0x2b38ec?.[_0x3e0366(0xe6)]),pushMetric(_0x39f7df,'Source\x20env',_0x47353f?.[_0x3e0366(0x17e)]??_0x122710?.[_0x3e0366(0x17e)]),pushMetric(_0x39f7df,_0x3e0366(0xeb),_0x47353f?.[_0x3e0366(0x178)]??_0x2b38ec?.[_0x3e0366(0x178)]??'async'),pushMetric(_0x39f7df,_0x3e0366(0x18d),_0x47353f?.[_0x3e0366(0x184)]),pushMetric(_0x39f7df,_0x3e0366(0x15c),compactCount(_0x47353f?.[_0x3e0366(0xc6)])),pushMetric(_0x39f7df,_0x3e0366(0xc1),_0x47353f?.[_0x3e0366(0xc2)]);break;case'materializer':pushMetric(_0x39f7df,'Source',_0x47353f?.[_0x3e0366(0xe6)]??_0x2b38ec?.['source_type']),pushMetric(_0x39f7df,_0x3e0366(0x125),_0x47353f?.[_0x3e0366(0x111)]??_0x2b38ec?.['target_type']),pushMetric(_0x39f7df,'Source\x20env',_0x47353f?.['source_env']??_0x122710?.[_0x3e0366(0x17e)]),pushMetric(_0x39f7df,_0x3e0366(0x189),_0x47353f?.[_0x3e0366(0x16e)]??_0x122710?.['target_env']),pushMetric(_0x39f7df,_0x3e0366(0x18d),_0x47353f?.[_0x3e0366(0x184)]),pushMetric(_0x39f7df,'Batch',compactCount(_0x47353f?.[_0x3e0366(0xc6)])),pushMetric(_0x39f7df,_0x3e0366(0xc1),_0x47353f?.[_0x3e0366(0xc2)]),pushMetric(_0x39f7df,_0x3e0366(0x148),formatBool(_0x47353f?.['clearTargetOnRebuild'],'on',_0x3e0366(0x106)));break;case _0x3e0366(0x165):pushMetric(_0x39f7df,_0x3e0366(0xc7),_0x47353f?.[_0x3e0366(0xdf)]??_0x2b38ec?.[_0x3e0366(0xdf)]),pushMetric(_0x39f7df,_0x3e0366(0x144),_0x47353f?.[_0x3e0366(0xf9)]??_0x2b38ec?.[_0x3e0366(0xf9)]),pushMetric(_0x39f7df,_0x3e0366(0x105),compactCount(_0x47353f?.[_0x3e0366(0xfb)]??_0x2b38ec?.[_0x3e0366(0xfb)]));break;case _0x3e0366(0xd0):pushMetric(_0x39f7df,'Provider',_0x47353f?.['type']??_0x47353f?.[_0x3e0366(0x117)]??_0x2b38ec?.[_0x3e0366(0xfd)]),pushMetric(_0x39f7df,_0x3e0366(0x128),_0x47353f?.[_0x3e0366(0x19a)]??_0x2b38ec?.[_0x3e0366(0x19a)]),pushMetric(_0x39f7df,_0x3e0366(0x166),compactCount(_0x47353f?.[_0x3e0366(0x17a)]??_0x2b38ec?.[_0x3e0366(0x17a)]));break;case _0x3e0366(0x1a9):pushMetric(_0x39f7df,'Source',_0x47353f?.['source_type']??_0x2b38ec?.['source_type']),pushMetric(_0x39f7df,_0x3e0366(0x11b),_0x47353f?.['source_env']??_0x122710?.[_0x3e0366(0x17e)]),pushMetric(_0x39f7df,_0x3e0366(0xb9),_0x47353f?.[_0x3e0366(0x14e)]??_0x2b38ec?.[_0x3e0366(0x14e)]??'whole\x20record'),pushMetric(_0x39f7df,_0x3e0366(0xeb),_0x47353f?.[_0x3e0366(0x178)]??_0x2b38ec?.[_0x3e0366(0x178)]),pushMetric(_0x39f7df,'Storage',_0x47353f?.[_0x3e0366(0x102)]??_0x2b38ec?.[_0x3e0366(0x102)]),pushMetric(_0x39f7df,'Dims',compactCount(_0x47353f?.[_0x3e0366(0x17a)]??_0x2b38ec?.[_0x3e0366(0x17a)])),pushMetric(_0x39f7df,_0x3e0366(0x1a2),_0x47353f?.[_0x3e0366(0x17f)]??_0x2b38ec?.[_0x3e0366(0x17f)]),pushMetric(_0x39f7df,'Chunk',formatChunkConfig(_0x47353f?.[_0x3e0366(0x150)]??_0x2b38ec?.[_0x3e0366(0x150)])),pushMetric(_0x39f7df,'Embedder',_0x47353f?.[_0x3e0366(0xd0)]??_0x2b38ec?.[_0x3e0366(0xd0)]);break;case'vector-search':if(pushMetric(_0x39f7df,_0x3e0366(0x12d),_0x47353f?.['source_type']??_0x2b38ec?.['source_type']),pushMetric(_0x39f7df,_0x3e0366(0x11b),_0x47353f?.['source_env']??_0x122710?.[_0x3e0366(0x17e)]),pushMetric(_0x39f7df,_0x3e0366(0x138),_0x47353f?.[_0x3e0366(0x102)]??_0x2b38ec?.[_0x3e0366(0x102)]),pushMetric(_0x39f7df,_0x3e0366(0x166),compactCount(_0x47353f?.['dims']??_0x2b38ec?.['dims'])),pushMetric(_0x39f7df,'Algorithm',_0x47353f?.[_0x3e0366(0xd9)]??_0x2b38ec?.[_0x3e0366(0xd9)]??'flat'),_0x47353f?.[_0x3e0366(0x176)]&&'object'==typeof _0x47353f[_0x3e0366(0x176)]){for(const [_0x2b5232,_0x6ea360]of Object[_0x3e0366(0xff)](_0x47353f[_0x3e0366(0x176)]))pushMetric(_0x39f7df,_0x2b5232,compactCount(_0x6ea360));}pushMetric(_0x39f7df,_0x3e0366(0x131),_0x47353f?.[_0x3e0366(0xd0)]??_0x2b38ec?.[_0x3e0366(0xd0)]);break;case _0x3e0366(0x188):pushMetric(_0x39f7df,_0x3e0366(0xc7),_0x47353f?.[_0x3e0366(0xdf)]??_0x2b38ec?.[_0x3e0366(0xdf)]),pushMetric(_0x39f7df,_0x3e0366(0x18c),_0x47353f?.[_0x3e0366(0x1a9)]??_0x2b38ec?.[_0x3e0366(0x1a9)]),pushMetric(_0x39f7df,_0x3e0366(0x131),_0x47353f?.['embedder']??_0x2b38ec?.[_0x3e0366(0xd0)]),pushMetric(_0x39f7df,_0x3e0366(0x105),compactCount(_0x47353f?.['concurrency']??_0x2b38ec?.[_0x3e0366(0xfb)])),pushMetric(_0x39f7df,_0x3e0366(0xf7),null!=_0x47353f?.[_0x3e0366(0x103)]?compactCount(_0x47353f[_0x3e0366(0x103)])+'\x20ms':null),pushMetric(_0x39f7df,_0x3e0366(0xb5),null!=_0x47353f?.[_0x3e0366(0x187)]?compactCount(_0x47353f[_0x3e0366(0x187)])+'\x20ms':null);break;default:pushMetric(_0x39f7df,_0x3e0366(0x12d),_0x47353f?.[_0x3e0366(0xe6)]??_0x2b38ec?.[_0x3e0366(0xe6)]),pushMetric(_0x39f7df,_0x3e0366(0x125),_0x47353f?.[_0x3e0366(0x111)]??_0x2b38ec?.['target_type']),pushMetric(_0x39f7df,_0x3e0366(0xeb),_0x47353f?.['mode']??_0x2b38ec?.['mode']);}return _0x2f7e2a?.[_0x3e0366(0x122)]&&pushMetric(_0x39f7df,_0x3e0366(0x1a6),_0x2f7e2a['name'],{'title':'Configured\x20handler\x20function'}),_0x2f7e2a?.[_0x3e0366(0x100)]&&pushMetric(_0x39f7df,_0x3e0366(0x135),_0x2f7e2a[_0x3e0366(0x100)],{'title':_0x3e0366(0x15d)}),_0x39f7df;}
1
+ const _0xed745b=_0x15d9;(function(_0x2c30a0,_0x52b8c5){const _0x20ab71=_0x15d9,_0x363977=_0x2c30a0();while(!![]){try{const _0xfa320a=-parseInt(_0x20ab71(0x282))/0x1+-parseInt(_0x20ab71(0x1ec))/0x2+parseInt(_0x20ab71(0x20c))/0x3*(-parseInt(_0x20ab71(0x1fe))/0x4)+parseInt(_0x20ab71(0x229))/0x5*(-parseInt(_0x20ab71(0x2ab))/0x6)+parseInt(_0x20ab71(0x224))/0x7+parseInt(_0x20ab71(0x227))/0x8+parseInt(_0x20ab71(0x271))/0x9;if(_0xfa320a===_0x52b8c5)break;else _0x363977['push'](_0x363977['shift']());}catch(_0x12798c){_0x363977['push'](_0x363977['shift']());}}}(_0xee43,0xeb5cc));export const EMBEDDINGS_ENGINE_TYPES=new Set([_0xed745b(0x2a3),'indexer','embed-worker',_0xed745b(0x2bc)]);export function isEmbeddingsEngineType(_0x344b01){return EMBEDDINGS_ENGINE_TYPES['has'](_0x344b01);}export function isEmbeddingsEngine(_0x52576c){return isEmbeddingsEngineType(_0x52576c?.['type']);}export function cloneValue(_0x165516,_0x42b144={}){const _0x1d787d=_0xed745b;try{return JSON['parse'](JSON['stringify'](_0x165516??_0x42b144));}catch{return JSON[_0x1d787d(0x216)](JSON[_0x1d787d(0x289)](_0x42b144));}}export function parseTagList(_0xf0c7bb){const _0x1f260b=_0xed745b,_0x12eb45=String(_0xf0c7bb??'')[_0x1f260b(0x2c7)](',')[_0x1f260b(0x204)](_0x1ff7b4=>_0x1ff7b4[_0x1f260b(0x24a)]())[_0x1f260b(0x215)](Boolean);return _0x12eb45['length']?[...new Set(_0x12eb45)]:null;}function _0xee43(){const _0x23901d=['\x20for\x20','stopped','vector_count','concurrency','381VywzIi','accent','Validation\x20failed:\x20','async','targetSection','Workers','recordRuns','materializer','processor','filter','parse','/queue','TTL','isRunning','Ops','$dispatch','originMode','tone','object','_uiEnv','/env/','overlap','Engine','/functions','2849630zUDSYI','dims','jobType','10071824LfFolR','okdb','35YffDpy','clock\x20','head_clock','Field','Algorithm','Indexes\x20','Pending','\x20overlap','danger','pending','location','caught\x20up','find','Batch','/pipelines','Target','Dims','inactive','job_type','Progress','test','provider','online','_search','queue_env','strategy','Function\x20run\x20recording\x20policy','total','config','search','label','queue-worker','failedBatches','trim','runningBatches','type','doc_counts','\x20/\x20','\x20chars','Latency','headClock','targetCount','pipelines','hash','stats','Done','count','Running\x20batches','meta','storeText','#/queue?','error','algorithm','target_type','chunk','details','Indexed\x20documents\x20/\x20total\x20tracked\x20documents','color','some','deleted','Provider\x20health\x20check\x20failed','isFinite','engines','Mode','/embeddings/engines/','Engine\x20is\x20disabled','target','function','key','select-pipeline','Chunk','Indexer\x20cursor\x20/\x20source\x20head\x20clock','46840518jbwnNU','queue\x20jobs','processed','Embedder','Active','neutral','Clock','Runs\x20queued\x20embedding\x20jobs','var(--okdb-app-fg-muted)','\x20ms','model','forEach','title','Type','enabled','processedChanges','replace','822060RIhsgi','indexer','catch','Prepare','Job\x20type','source_env','Bootstrap','stringify','***','Configured\x20handler\x20function','Model','source','storage_key','chunked','ttl','Handler','whole\x20record','Concurrency','$vars','name','unhealthy','field','\x20on\x20','isArray','delete','Rows','default','Watches\x20','handler','join','latency','status','Source','embedder','running','/db','batchSize','warning','storeEnv','Provider','pollInterval','1487118GOQsIR','source_type','var(--okdb-danger)','entries','max','selectedEnv','Poll','in_flight','off','last_seen_clock','value','Vectors','Error','is\x20invalid','Lag','$router','\x20—\x20','vector-search','push','Uses\x20ƒ\x20','Affinity','failed','Source\x20env','bootstrap','stores','algorithm_config','Origin','Searches\x20','split','set','Storage','sourceType','disabled','healthy','workers','resolve','queue','$ok','flat','embed-worker','var(--okdb-info)','VALIDATION_ERROR','Queue\x20env','length','result','env','success','Changes','envName','yes','source\x20docs','toString','mode','var(--okdb-warning)','pipelineName','string','2934456OhDOzr','prepare','includes','trimEnd','round','targetTab','/pipelines/','API','store\x20text\x20','runtime','lastClock','size','lag','message','Indexer','reason','target_env','affinity','59284Nsuotu','building','state','json','appliedOps','#/db?','map','\x20more)','degraded','paused'];_0xee43=function(){return _0x23901d;};return _0xee43();}export function statusTone(_0x4ea12a=null){const _0x35f5cb=_0xed745b;return _0x4ea12a?.[_0x35f5cb(0x219)]?'var(--okdb-success)':_0x35f5cb(0x23a)===_0x4ea12a?.[_0x35f5cb(0x2a1)]?'var(--okdb-warning)':'error'===_0x4ea12a?.['status']?'var(--okdb-danger)':_0x35f5cb(0x279);}export function readableReason(_0x2e25c7){return _0x2e25c7?String(_0x2e25c7)['replace'](/_/g,'\x20'):null;}export function formatJsonValue(_0xb7bf45){try{return JSON['stringify'](_0xb7bf45,null,0x2);}catch{return String(_0xb7bf45??'');}}export function resolveEngineEnvName(_0x1d9642=null,_0x50e9f9=null){const _0x30cadc=_0xed745b;return _0x50e9f9??_0x1d9642?.['env']??_0x1d9642?.[_0x30cadc(0x21f)]??_0x1d9642?.[_0x30cadc(0x2a8)]??_0x1d9642?.['config']?.[_0x30cadc(0x287)]??null;}export function getEnginePipelineName(_0x4c2f7f=null){const _0x362a20=_0xed745b;return _0x4c2f7f?.[_0x362a20(0x259)]?.['pipeline']??null;}export function buildFunctionsRoute(_0x2320d,_0x30f5cc=null){const _0x3c695a=_0xed745b,_0xaa2383=new URLSearchParams(),_0x11aafe=_0x2320d?.[_0x3c695a(0x1d9)]?.[_0x3c695a(0x2c3)]?.[_0x3c695a(0x228)]?.[_0x3c695a(0x2b0)]??null;_0x11aafe&&_0xaa2383[_0x3c695a(0x2c8)](_0x3c695a(0x1e1),_0x11aafe),_0x30f5cc&&_0xaa2383[_0x3c695a(0x2c8)]('name',_0x30f5cc);const _0x3b6996=_0xaa2383[_0x3c695a(0x1e7)]();return _0x3c695a(0x223)+(_0x3b6996?'?'+_0x3b6996:'');}export function openFunctionRoute(_0xb85a47,_0x1c6ba6,{beforeNavigate:_0x1e1f04}={}){const _0x2059a0=_0xed745b;if(!_0x1c6ba6)return!0x1;const _0x21087c=_0xb85a47?.[_0x2059a0(0x294)]?.[_0x2059a0(0x2ba)];if(_0x2059a0(0x26c)==typeof _0x1e1f04&&_0x1e1f04(),_0x21087c?.[_0x2059a0(0x2bd)]){const _0x379ebb={..._0x21087c[_0x2059a0(0x240)]||{}},_0x3c1c88=_0xb85a47?.[_0x2059a0(0x1d9)]?.[_0x2059a0(0x2c3)]?.['okdb']?.[_0x2059a0(0x2b0)]??null;_0x3c1c88?_0x379ebb['env']=_0x3c1c88:delete _0x379ebb[_0x2059a0(0x1e1)],_0x379ebb[_0x2059a0(0x295)]=_0x1c6ba6;const _0x5f237c=_0x2059a0(0x26c)==typeof _0x21087c[_0x2059a0(0x2ce)]?_0x21087c[_0x2059a0(0x2ce)](_0x2059a0(0x223),_0x379ebb):buildFunctionsRoute(_0xb85a47,_0x1c6ba6);return _0x21087c[_0x2059a0(0x2bd)](_0x5f237c),!0x0;}return!!globalThis[_0x2059a0(0x233)]&&(globalThis[_0x2059a0(0x233)]['hash']='#'+buildFunctionsRoute(_0xb85a47,_0x1c6ba6),!0x0);}export function dispatchEnginePipelineSelection(_0x528ab1,_0x517de6=null){const _0x4b278f=_0xed745b,_0x4b5151=getEnginePipelineName(_0x517de6);return!!_0x4b5151&&(_0x528ab1[_0x4b278f(0x21b)](_0x4b278f(0x26e),_0x4b5151),!0x0);}function matchesLinkedEngine(_0x46a7a5=null,_0x326e10=null){const _0x54cfce=_0xed745b;return!!_0x326e10&&(_0x46a7a5?.[_0x54cfce(0x295)]===_0x326e10||_0x46a7a5?.[_0x54cfce(0x26d)]===_0x326e10);}function matchesLinkedFunction(_0xd4cfbe=null,_0x30d2b1=null){const _0x284b7f=_0xed745b;return!!_0x30d2b1&&(_0xd4cfbe?.[_0x284b7f(0x245)]?.[_0x284b7f(0x29e)]?.[_0x284b7f(0x295)]===_0x30d2b1||_0xd4cfbe?.[_0x284b7f(0x1f5)]?.['handler']?.[_0x284b7f(0x295)]===_0x30d2b1);}function linkedMemberSourceType(_0x3364a3=null){const _0x2d3e00=_0xed745b;return _0x3364a3?.[_0x2d3e00(0x245)]?.['source_type']??_0x3364a3?.['runtime']?.[_0x2d3e00(0x2ac)]??null;}function linkedMemberJobType(_0x4b8e19=null){const _0xee969d=_0xed745b;return _0x4b8e19?.[_0xee969d(0x245)]?.[_0xee969d(0x23b)]??_0x4b8e19?.['runtime']?.[_0xee969d(0x23b)]??null;}function linkedMemberQueueEnv(_0x26e5ff=null){const _0x3ec9ec=_0xed745b;return _0x26e5ff?.[_0x3ec9ec(0x245)]?.['queue_env']??_0x26e5ff?.[_0x3ec9ec(0x1f5)]?.[_0x3ec9ec(0x241)]??null;}export async function resolveLinkedPipeline(_0x4b6182,{envName:_0xc43dc3=null,pipelineName:_0x221fcb=null,ownerEngine:_0x2de552=null,functionName:_0x345712=null}={}){const _0x21d98b=_0xed745b,_0x3bd3e8=_0xc43dc3??_0x4b6182?.[_0x21d98b(0x1d9)]?.[_0x21d98b(0x2c3)]?.[_0x21d98b(0x228)]?.['selectedEnv']??null;if(!_0x3bd3e8||!_0x221fcb&&!_0x2de552&&!_0x345712)return null;let _0x37f4d7=[],_0x2dfa78=null,_0x35c7ee=null,_0x90cacd=null,_0x309e13=_0x21d98b(0x253);try{const _0xcb8076=await fetch(__ENV__['API']+_0x21d98b(0x220)+encodeURIComponent(_0x3bd3e8)+_0x21d98b(0x237));if(_0xcb8076['ok']){const _0x850cb9=await _0xcb8076[_0x21d98b(0x201)]()[_0x21d98b(0x284)](()=>({}));_0x37f4d7=_0x850cb9?.['data']??_0x850cb9?.[_0x21d98b(0x1e0)]??[],_0x2dfa78=_0x37f4d7['find'](_0x24e76d=>!!_0x24e76d&&(!(!_0x221fcb||_0x24e76d[_0x21d98b(0x295)]!==_0x221fcb)||(_0x24e76d[_0x21d98b(0x267)]??[])['some'](_0x3698ce=>matchesLinkedEngine(_0x3698ce,_0x2de552)||matchesLinkedFunction(_0x3698ce,_0x345712))))??null,_0x35c7ee=(_0x2dfa78?.[_0x21d98b(0x267)]??[])['find'](_0x549906=>matchesLinkedEngine(_0x549906,_0x2de552))??(_0x2dfa78?.['engines']??[])[_0x21d98b(0x235)](_0x450260=>matchesLinkedFunction(_0x450260,_0x345712))??(_0x2dfa78?.[_0x21d98b(0x267)]??[])[_0x21d98b(0x235)](_0x2c154b=>linkedMemberSourceType(_0x2c154b)&&[_0x21d98b(0x214),_0x21d98b(0x213),_0x21d98b(0x248)][_0x21d98b(0x1ee)](_0x2c154b?.['type']))??(_0x2dfa78?.[_0x21d98b(0x267)]??[])[_0x21d98b(0x235)](_0x1d94e0=>linkedMemberSourceType(_0x1d94e0))??(_0x2dfa78?.[_0x21d98b(0x267)]??[])['find'](_0x38f14a=>_0x38f14a?.[_0x21d98b(0x245)]?.['job_type'])??null,['processor',_0x21d98b(0x213),_0x21d98b(0x248)][_0x21d98b(0x1ee)](_0x35c7ee?.[_0x21d98b(0x24c)])&&(_0x309e13=_0x21d98b(0x267));}}catch{}if(!_0x35c7ee&&(_0x2de552||_0x345712))try{const _0x337630=await fetch(__ENV__['API']+'/env/'+encodeURIComponent(_0x3bd3e8)+'/engines');if(_0x337630['ok']){const _0x44729a=await _0x337630['json']()[_0x21d98b(0x284)](()=>({})),_0x97e254=_0x44729a?.['data']??_0x44729a?.[_0x21d98b(0x1e0)]??[];_0x90cacd=_0x97e254[_0x21d98b(0x235)](_0x5d0464=>_0x5d0464?.[_0x21d98b(0x295)]===_0x2de552||_0x5d0464?.[_0x21d98b(0x26d)]===_0x2de552)??_0x97e254[_0x21d98b(0x235)](_0x2a2bba=>_0x2a2bba?.['config']?.['handler']?.[_0x21d98b(0x295)]===_0x345712)??null,!_0x2dfa78&&_0x90cacd&&(_0x2dfa78=_0x37f4d7[_0x21d98b(0x235)](_0xa0ada8=>(_0xa0ada8?.[_0x21d98b(0x267)]??[])[_0x21d98b(0x263)](_0x54fba1=>matchesLinkedEngine(_0x54fba1,_0x90cacd?.[_0x21d98b(0x295)])||matchesLinkedEngine(_0x54fba1,_0x90cacd?.[_0x21d98b(0x26d)])||matchesLinkedFunction(_0x54fba1,_0x345712)))??null),!_0x35c7ee&&_0x2dfa78&&(_0x35c7ee=(_0x2dfa78?.[_0x21d98b(0x267)]??[])[_0x21d98b(0x235)](_0x13d9b9=>matchesLinkedEngine(_0x13d9b9,_0x90cacd?.['name']))??(_0x2dfa78?.[_0x21d98b(0x267)]??[])[_0x21d98b(0x235)](_0x268485=>matchesLinkedEngine(_0x268485,_0x90cacd?.[_0x21d98b(0x26d)]))??(_0x2dfa78?.['engines']??[])['find'](_0x10ff1f=>matchesLinkedFunction(_0x10ff1f,_0x345712))??null),[_0x21d98b(0x214),_0x21d98b(0x213),_0x21d98b(0x248)]['includes']((_0x35c7ee??_0x90cacd)?.[_0x21d98b(0x24c)])&&(_0x309e13=_0x21d98b(0x267));}}catch{}const _0x3fcba5=linkedMemberSourceType(_0x35c7ee)??_0x90cacd?.[_0x21d98b(0x245)]?.[_0x21d98b(0x2ac)]??_0x90cacd?.[_0x21d98b(0x1f5)]?.[_0x21d98b(0x2ac)]??(_0x2dfa78?.[_0x21d98b(0x267)]??[])[_0x21d98b(0x204)](linkedMemberSourceType)['find'](Boolean)??null,_0x26daea=linkedMemberJobType(_0x35c7ee)??_0x90cacd?.['config']?.[_0x21d98b(0x23b)]??_0x90cacd?.[_0x21d98b(0x1f5)]?.[_0x21d98b(0x23b)]??(_0x2dfa78?.['engines']??[])[_0x21d98b(0x204)](linkedMemberJobType)['find'](Boolean)??null,_0x450ce1=linkedMemberQueueEnv(_0x35c7ee)??_0x90cacd?.[_0x21d98b(0x245)]?.[_0x21d98b(0x241)]??_0x90cacd?.[_0x21d98b(0x1f5)]?.[_0x21d98b(0x241)]??_0x3bd3e8;return'queue-worker'===(_0x35c7ee??_0x90cacd)?.[_0x21d98b(0x24c)]||_0x26daea?{'envName':_0x450ce1,'pipelineName':_0x221fcb??_0x2dfa78?.[_0x21d98b(0x295)]??null,'ownerEngine':_0x2de552??_0x35c7ee?.[_0x21d98b(0x295)]??_0x35c7ee?.['key']??_0x90cacd?.[_0x21d98b(0x295)]??_0x90cacd?.[_0x21d98b(0x26d)]??null,'sourceType':null,'jobType':_0x26daea,'targetTab':_0x21d98b(0x2cd),'targetSection':_0x21d98b(0x2cf)}:_0x3fcba5?{'envName':_0x3bd3e8,'pipelineName':_0x221fcb??_0x2dfa78?.[_0x21d98b(0x295)]??null,'ownerEngine':_0x2de552??_0x35c7ee?.[_0x21d98b(0x295)]??_0x35c7ee?.['key']??_0x90cacd?.['name']??_0x90cacd?.[_0x21d98b(0x26d)]??null,'sourceType':_0x3fcba5,'jobType':null,'targetTab':_0x309e13,'targetSection':'db'}:null;}export async function openLinkedPipelineRoute(_0x9eee6d,{envName:_0x3006a5=null,pipelineName:_0x5a2abf=null,ownerEngine:_0x131156=null,functionName:_0x42760d=null,beforeNavigate:_0x59d69c}={}){const _0x3b8916=_0xed745b,_0x308799=_0x9eee6d?.[_0x3b8916(0x294)]?.[_0x3b8916(0x2ba)],_0x48962f=await resolveLinkedPipeline(_0x9eee6d,{'envName':_0x3006a5,'pipelineName':_0x5a2abf,'ownerEngine':_0x131156,'functionName':_0x42760d});if(!_0x48962f)return!0x1;if(_0x3b8916(0x26c)==typeof _0x59d69c&&_0x59d69c(),_0x9eee6d?.[_0x3b8916(0x1d9)]?.[_0x3b8916(0x2c3)]?.['okdb']?.[_0x3b8916(0x2b0)]&&_0x9eee6d[_0x3b8916(0x1d9)][_0x3b8916(0x2c3)][_0x3b8916(0x228)][_0x3b8916(0x2b0)]!==_0x48962f['envName']&&_0x9eee6d[_0x3b8916(0x1d9)][_0x3b8916(0x2c3)][_0x3b8916(0x228)]['selectEnv'](_0x48962f[_0x3b8916(0x1e4)]),_0x308799?.[_0x3b8916(0x2bd)]&&_0x3b8916(0x26c)==typeof _0x308799[_0x3b8916(0x2ce)]){if('queue'===_0x48962f[_0x3b8916(0x210)]){const _0x5f385c={'env':_0x48962f[_0x3b8916(0x1e4)],'view':_0x48962f[_0x3b8916(0x1f1)]??'workers'};return _0x48962f[_0x3b8916(0x226)]&&(_0x5f385c[_0x3b8916(0x24c)]=_0x48962f['jobType']),_0x308799['push'](_0x308799[_0x3b8916(0x2ce)](_0x3b8916(0x217),_0x5f385c)),!0x0;}if(_0x48962f[_0x3b8916(0x1ea)]){const _0x378cc3={'env':_0x48962f[_0x3b8916(0x1e4)],'pipeline':_0x48962f[_0x3b8916(0x1ea)]};return _0x48962f[_0x3b8916(0x2ca)]&&(_0x378cc3[_0x3b8916(0x2ca)]=_0x48962f['sourceType']),_0x308799[_0x3b8916(0x2bd)](_0x308799[_0x3b8916(0x2ce)]('/engines',_0x378cc3)),!0x0;}return!!_0x48962f[_0x3b8916(0x2ca)]&&(_0x308799['push'](_0x308799[_0x3b8916(0x2ce)](_0x3b8916(0x2a5),{'env':_0x48962f[_0x3b8916(0x1e4)],'type':_0x48962f[_0x3b8916(0x2ca)],'tab':_0x48962f['targetTab']})),!0x0);}if(globalThis[_0x3b8916(0x233)]){if('queue'===_0x48962f['targetSection']){const _0x107c1d=new URLSearchParams({'env':_0x48962f['envName'],'view':_0x48962f[_0x3b8916(0x1f1)]??_0x3b8916(0x2cd)});return _0x48962f['jobType']&&_0x107c1d[_0x3b8916(0x2c8)](_0x3b8916(0x24c),_0x48962f['jobType']),globalThis[_0x3b8916(0x233)][_0x3b8916(0x254)]=_0x3b8916(0x25b)+_0x107c1d['toString'](),!0x0;}if(_0x48962f[_0x3b8916(0x1ea)]){const _0x3ec408=new URLSearchParams({'env':_0x48962f[_0x3b8916(0x1e4)],'pipeline':_0x48962f[_0x3b8916(0x1ea)]});return _0x48962f[_0x3b8916(0x2ca)]&&_0x3ec408[_0x3b8916(0x2c8)](_0x3b8916(0x2ca),_0x48962f[_0x3b8916(0x2ca)]),globalThis['location']['hash']='#/engines?'+_0x3ec408[_0x3b8916(0x1e7)](),!0x0;}if(!_0x48962f[_0x3b8916(0x2ca)])return!0x1;const _0x18f176=new URLSearchParams({'env':_0x48962f[_0x3b8916(0x1e4)],'type':_0x48962f[_0x3b8916(0x2ca)],'tab':_0x48962f[_0x3b8916(0x1f1)]});return globalThis[_0x3b8916(0x233)][_0x3b8916(0x254)]=_0x3b8916(0x203)+_0x18f176[_0x3b8916(0x1e7)](),!0x0;}return!0x1;}export function buildEmbeddingsPipelineUrl(_0x51f6e5=null,_0x1744b5=null){const _0x3355aa=_0xed745b,_0x47e7b9=_0x51f6e5?.[_0x3355aa(0x245)]??{},_0x2179a5=encodeURIComponent(_0x47e7b9['source_env']??_0x3355aa(0x29c)),_0x2c91d1=encodeURIComponent(_0x47e7b9[_0x3355aa(0x2ac)]??''),_0x5f33b1=encodeURIComponent(_0x47e7b9[_0x3355aa(0x28e)]??_0x1744b5??_0x51f6e5?.[_0x3355aa(0x295)]??'');return __ENV__[_0x3355aa(0x1f3)]+_0x3355aa(0x220)+_0x2179a5+'/type/'+_0x2c91d1+_0x3355aa(0x1f2)+_0x5f33b1;}export function maskSensitiveConfig(_0x6d6f72={}){const _0x42faae=_0xed745b;if(Array[_0x42faae(0x299)](_0x6d6f72))return _0x6d6f72['map'](_0x2f1829=>maskSensitiveConfig(_0x2f1829));if(!_0x6d6f72||_0x42faae(0x21e)!=typeof _0x6d6f72)return _0x6d6f72;const _0x5e5771={};for(const [_0x322ffd,_0x59f7c8]of Object[_0x42faae(0x2ae)](_0x6d6f72))_0x5e5771[_0x322ffd]=/key|secret|pass|token/i[_0x42faae(0x23d)](_0x322ffd)?_0x42faae(0x28a):maskSensitiveConfig(_0x59f7c8);return _0x5e5771;}export function summarizeValidationDetails(_0x54e324=[]){const _0xa1b64b=_0xed745b;if(!Array[_0xa1b64b(0x299)](_0x54e324)||0x0===_0x54e324[_0xa1b64b(0x1df)])return null;const _0xbab568=_0x54e324['slice'](0x0,0x3)[_0xa1b64b(0x204)]((_0x2948c4={})=>(''+(_0x2948c4[_0xa1b64b(0x297)]?_0x2948c4[_0xa1b64b(0x297)]+'\x20':'')+(_0x2948c4[_0xa1b64b(0x1f9)]||_0xa1b64b(0x2b8)))[_0xa1b64b(0x24a)]())[_0xa1b64b(0x29f)](';\x20');return _0x54e324[_0xa1b64b(0x1df)]>0x3?_0xbab568+'\x20(+'+(_0x54e324[_0xa1b64b(0x1df)]-0x3)+_0xa1b64b(0x205):_0xbab568;}export function getApiErrorMessage(_0x380e65=null,_0x26f081='Request\x20failed'){const _0x11401b=_0xed745b,_0xc3082e=_0x380e65?.[_0x11401b(0x25c)]??null,_0x5ef4ef=summarizeValidationDetails(_0xc3082e?.[_0x11401b(0x260)]??_0x380e65?.['details']??null);return _0x11401b(0x1eb)==typeof _0xc3082e?_0x380e65?.[_0x11401b(0x1f9)]?_0x380e65[_0x11401b(0x1f9)]:_0x5ef4ef&&/^[A-Z0-9_]+$/[_0x11401b(0x23d)](_0xc3082e)?_0x11401b(0x20e)+_0x5ef4ef:_0xc3082e||_0x26f081:_0xc3082e?.[_0x11401b(0x1f9)]?_0x5ef4ef&&_0x11401b(0x1dd)===_0xc3082e['code']&&!_0xc3082e[_0x11401b(0x1f9)][_0x11401b(0x1ee)](_0x5ef4ef)?_0xc3082e[_0x11401b(0x1f9)]+_0x11401b(0x2bb)+_0x5ef4ef:_0xc3082e[_0x11401b(0x1f9)]:_0x380e65?.[_0x11401b(0x1f9)]?_0x5ef4ef&&!_0x380e65[_0x11401b(0x1f9)][_0x11401b(0x1ee)](_0x5ef4ef)?_0x380e65['message']+_0x11401b(0x2bb)+_0x5ef4ef:_0x380e65[_0x11401b(0x1f9)]:_0x5ef4ef?_0x11401b(0x20e)+_0x5ef4ef:_0x26f081;}export function buildEngineBasePath(_0x44e131=null,_0x2d281e=null){const _0xf3b9b8=_0xed745b;if(!_0x44e131)return null;if(isEmbeddingsEngine(_0x44e131))return _0x44e131['key']?__ENV__[_0xf3b9b8(0x1f3)]+_0xf3b9b8(0x269)+encodeURIComponent(_0x44e131[_0xf3b9b8(0x26d)]):null;const _0x593869=resolveEngineEnvName(_0x44e131,_0x2d281e);return _0x593869&&_0x44e131[_0xf3b9b8(0x24c)]&&_0x44e131[_0xf3b9b8(0x295)]?__ENV__['API']+_0xf3b9b8(0x220)+encodeURIComponent(_0x593869)+'/engines/'+encodeURIComponent(_0x44e131[_0xf3b9b8(0x24c)])+'/'+encodeURIComponent(_0x44e131[_0xf3b9b8(0x295)]):null;}function compactCount(_0x258a72){const _0x141b6d=_0xed745b;if(null==_0x258a72||''===_0x258a72)return null;const _0x5aae76=Number(_0x258a72);return Number[_0x141b6d(0x266)](_0x5aae76)&&Number['isInteger'](_0x5aae76)?_0x5aae76['toLocaleString']():String(_0x258a72);}function firstDefined(..._0x183f56){for(const _0x281f12 of _0x183f56)if(null!=_0x281f12&&''!==_0x281f12)return _0x281f12;return null;}function pushBadge(_0x3ce36b,_0x302358,_0x4c1cf1=_0xed745b(0x279),_0x37b6af=null){const _0x554bf6=_0xed745b;null!=_0x302358&&''!==_0x302358&&_0x3ce36b[_0x554bf6(0x2bd)]({'text':String(_0x302358),'color':_0x4c1cf1,'title':_0x37b6af??String(_0x302358)});}function pushMetric(_0x3c1b97,_0x12420a,_0xff3366,_0x5bdafb={}){const _0x2d1fdb=_0xed745b;null!=_0x12420a&&''!==_0x12420a&&null!=_0xff3366&&''!==_0xff3366&&'—'!==_0xff3366&&_0x3c1b97[_0x2d1fdb(0x2bd)]({'label':String(_0x12420a),'value':String(_0xff3366),'tone':_0x5bdafb[_0x2d1fdb(0x21d)]??_0x2d1fdb(0x276),'title':_0x5bdafb['title']??_0x12420a+':\x20'+_0xff3366});}function buildStatusMeta(_0x2f7fc9,_0x2500a7,_0x1f4c3b=null){return{'label':_0x2f7fc9,'color':_0x2500a7,'title':_0x1f4c3b??'Status:\x20'+_0x2f7fc9};}function formatClockBadge(_0x20d5fb,_0x443bd6){const _0x128adb=_0xed745b,_0x38f1f0=compactCount(_0x20d5fb),_0x3fbf0b=compactCount(_0x443bd6);return null==_0x38f1f0&&null==_0x3fbf0b?null:_0x128adb(0x22a)+(_0x38f1f0??'—')+_0x128adb(0x24e)+(_0x3fbf0b??'—');}function _0x15d9(_0x485815,_0x59f75a){_0x485815=_0x485815-0x1d9;const _0xee4398=_0xee43();let _0x15d9e8=_0xee4398[_0x485815];return _0x15d9e8;}function inferLag(_0x3dd76d,_0x3a2788,_0x10a373){const _0x30de86=_0xed745b;if(null!=_0x3dd76d&&''!==_0x3dd76d)return _0x3dd76d;const _0x437c17=Number(_0x3a2788),_0x4d3782=Number(_0x10a373);return Number[_0x30de86(0x266)](_0x437c17)&&Number[_0x30de86(0x266)](_0x4d3782)?Math['max'](0x0,_0x4d3782-_0x437c17):null;}function formatBool(_0xdbe7d,_0x5d85ff=_0xed745b(0x1e5),_0x1f9d4e='no'){return null==_0xdbe7d||''===_0xdbe7d?null:_0xdbe7d?_0x5d85ff:_0x1f9d4e;}function formatChunkConfig(_0x4bd744=null){const _0x12d523=_0xed745b;if(!_0x4bd744||_0x12d523(0x21e)!=typeof _0x4bd744)return null;const _0x2bc0fb=[_0x4bd744[_0x12d523(0x242)]??_0x4bd744[_0x12d523(0x24c)]??_0x12d523(0x28f)];return null!=_0x4bd744['size']&&_0x2bc0fb[_0x12d523(0x2bd)](compactCount(_0x4bd744[_0x12d523(0x1f7)])+_0x12d523(0x24f)),null!=_0x4bd744[_0x12d523(0x221)]&&_0x2bc0fb[_0x12d523(0x2bd)](compactCount(_0x4bd744[_0x12d523(0x221)])+_0x12d523(0x230)),null!=_0x4bd744[_0x12d523(0x25a)]&&_0x2bc0fb[_0x12d523(0x2bd)](_0x12d523(0x1f4)+formatBool(_0x4bd744[_0x12d523(0x25a)],'on',_0x12d523(0x2b3))),_0x2bc0fb[_0x12d523(0x215)](Boolean)[_0x12d523(0x29f)](_0x12d523(0x24e));}function formatIndexerProgress(_0x1f37d4=null){const _0xff74dd=_0xed745b;if(!_0x1f37d4||_0xff74dd(0x21e)!=typeof _0x1f37d4)return null;const _0x101d30=Number(_0x1f37d4['done']??0x0),_0x2bd6a8=Number(_0x1f37d4[_0xff74dd(0x232)]??0x0),_0x1b22f8=Number(_0x1f37d4[_0xff74dd(0x2c0)]??0x0),_0x141a58=Number(_0x1f37d4[_0xff74dd(0x244)]??_0x101d30+_0x2bd6a8+_0x1b22f8+Number(_0x1f37d4[_0xff74dd(0x264)]??0x0));if(!Number['isFinite'](_0x141a58)||_0x141a58<=0x0)return null;const _0xf2f5e4=Math[_0xff74dd(0x1f0)](Math[_0xff74dd(0x2af)](0x0,_0x101d30)/_0x141a58*0x64);return{'value':compactCount(_0x101d30)+'/'+compactCount(_0x141a58)+'\x20('+_0xf2f5e4+'%)','tone':_0x1b22f8>0x0?_0xff74dd(0x231):_0x2bd6a8>0x0?_0xff74dd(0x2a7):'success'};}function formatClockProgress(_0x39b157,_0x528f3c){const _0x4d4a81=_0xed745b,_0x3daae2=Number(_0x39b157),_0x43843f=Number(_0x528f3c);if(!Number['isFinite'](_0x3daae2)||!Number[_0x4d4a81(0x266)](_0x43843f)||_0x43843f<=0x0)return null;const _0x581515=Math['max'](0x0,Math['min'](_0x3daae2,_0x43843f)),_0x3bfc3c=Math[_0x4d4a81(0x1f0)](_0x581515/_0x43843f*0x64);return{'value':compactCount(_0x581515)+'/'+compactCount(_0x43843f)+'\x20('+_0x3bfc3c+'%)','tone':_0x581515>=_0x43843f?_0x4d4a81(0x1e2):_0x4d4a81(0x2a7)};}export function compactEngineErrorText(_0x4c76c8=null,_0x1f0106=0xa0){const _0x1ac160=_0xed745b,_0x36f392=firstDefined(_0x4c76c8?.['stats']?.[_0x1ac160(0x25c)],_0x4c76c8?.[_0x1ac160(0x1f5)]?.[_0x1ac160(0x25c)],_0x4c76c8?.[_0x1ac160(0x25c)]);if(null==_0x36f392)return null;const _0xa46831=String(_0x36f392)[_0x1ac160(0x281)](/\s+/g,'\x20')[_0x1ac160(0x24a)]();return _0xa46831?_0xa46831[_0x1ac160(0x1df)]>_0x1f0106?_0xa46831['slice'](0x0,Math[_0x1ac160(0x2af)](0x0,_0x1f0106-0x1))[_0x1ac160(0x1ef)]()+'…':_0xa46831:null;}export function compactEngineStatusMeta(_0x3e77ab=null){const _0x2ba5c0=_0xed745b,_0x15b5f5=_0x3e77ab?.[_0x2ba5c0(0x255)]??{},_0x359fa3=_0x3e77ab?.[_0x2ba5c0(0x1f5)]??{},_0x199a39=firstDefined(_0x15b5f5?.['state'],_0x359fa3?.[_0x2ba5c0(0x200)],_0x3e77ab?.['state'],_0x3e77ab?.['status']);return!0x0===firstDefined(_0x15b5f5?.[_0x2ba5c0(0x207)],_0x359fa3?.[_0x2ba5c0(0x207)],_0x3e77ab?.[_0x2ba5c0(0x207)])?buildStatusMeta(_0x2ba5c0(0x207),_0x2ba5c0(0x1e9)):_0x2ba5c0(0x25c)===_0x199a39||_0x2ba5c0(0x25c)===_0x3e77ab?.[_0x2ba5c0(0x2a1)]?buildStatusMeta(_0x2ba5c0(0x25c),_0x2ba5c0(0x2ad)):_0x2ba5c0(0x23a)===_0x199a39||_0x2ba5c0(0x23a)===_0x3e77ab?.[_0x2ba5c0(0x2a1)]?buildStatusMeta(_0x2ba5c0(0x23a),_0x2ba5c0(0x1e9)):_0x2ba5c0(0x1ff)===_0x199a39?buildStatusMeta(_0x2ba5c0(0x1ff),_0x2ba5c0(0x1dc)):_0x3e77ab?.[_0x2ba5c0(0x219)]||_0x2ba5c0(0x23f)===_0x199a39||'running'===_0x199a39?buildStatusMeta(_0x2ba5c0(0x2a4),'var(--okdb-success)'):_0x2ba5c0(0x206)===_0x199a39?buildStatusMeta(_0x2ba5c0(0x206),_0x2ba5c0(0x1e9)):buildStatusMeta(_0x2ba5c0(0x209)===_0x199a39||'idle'===_0x199a39?'stopped':_0x199a39?String(_0x199a39):_0x2ba5c0(0x209),'var(--okdb-app-fg-muted)');}export function compactEngineRowStatusBadges(_0x196026=null){const _0x1a0039=_0xed745b,_0x425388=_0x196026?.['stats']??{},_0x27cfe0=[],_0xbe7370=compactEngineStatusMeta(_0x196026),_0x1eca4d=readableReason(_0x196026?.[_0x1a0039(0x1fb)]);return pushBadge(_0x27cfe0,_0xbe7370['label'],_0xbe7370[_0x1a0039(0x262)],_0xbe7370[_0x1a0039(0x27d)]),_0x1a0039(0x2a3)===_0x196026?.['type']&&(!0x0===_0x425388?.['ok']&&pushBadge(_0x27cfe0,_0x1a0039(0x2cc),'var(--okdb-success)','Provider\x20health\x20check\x20is\x20healthy'),!0x1===_0x425388?.['ok']&&pushBadge(_0x27cfe0,_0x1a0039(0x296),'var(--okdb-danger)',_0x1a0039(0x265))),!0x1===_0x196026?.[_0x1a0039(0x27f)]&&pushBadge(_0x27cfe0,_0x1a0039(0x2cb),_0x1a0039(0x279),_0x1a0039(0x26a)),_0x1eca4d&&_0x1eca4d!==_0xbe7370['label']&&pushBadge(_0x27cfe0,_0x1eca4d,_0x1a0039(0x279),'Reason:\x20'+_0x1eca4d),_0x27cfe0;}export function compactEngineRowSummary(_0x133bf3=null){const _0x3c0607=_0xed745b,_0x5c84b7=_0x133bf3?.['config']??{},_0x4405d5=_0x133bf3?.[_0x3c0607(0x255)]??{},_0x212a43=_0x4405d5?.[_0x3c0607(0x283)]??_0x4405d5??{},_0x113c83=_0x4405d5?.['search']??_0x4405d5??{},_0x1c9a18=_0x4405d5?.['handler']?.[_0x3c0607(0x295)]??_0x5c84b7?.[_0x3c0607(0x29e)]?.[_0x3c0607(0x295)]??null;switch(_0x133bf3?.['type']){case _0x3c0607(0x248):return'Consumes\x20'+(_0x4405d5?.[_0x3c0607(0x23b)]??_0x5c84b7?.['job_type']??_0x3c0607(0x272));case _0x3c0607(0x214):return _0x3c0607(0x29d)+(_0x4405d5?.[_0x3c0607(0x2ac)]??_0x5c84b7?.['source_type']??'source\x20changes');case _0x3c0607(0x213):return(_0x4405d5?.['source_type']??_0x5c84b7?.[_0x3c0607(0x2ac)]??_0x3c0607(0x28d))+'\x20→\x20'+(_0x4405d5?.['target_type']??_0x5c84b7?.['target_type']??_0x3c0607(0x26b));case _0x3c0607(0x2a3):return(_0x4405d5?.[_0x3c0607(0x27b)]??_0x5c84b7?.['model']??_0x133bf3?.['name']??_0x3c0607(0x274))+_0x3c0607(0x298)+(_0x4405d5?.[_0x3c0607(0x24c)]??_0x5c84b7?.['type']??_0x5c84b7?.['provider']??_0x3c0607(0x23e));case _0x3c0607(0x283):return _0x3c0607(0x22e)+(_0x212a43?.['source_type']??_0x5c84b7?.[_0x3c0607(0x2ac)]??_0x3c0607(0x1e6));case _0x3c0607(0x2bc):return _0x3c0607(0x2c6)+(_0x113c83?.[_0x3c0607(0x28e)]??_0x5c84b7?.[_0x3c0607(0x28e)]??_0x133bf3?.[_0x3c0607(0x295)]??'vector\x20index');case _0x3c0607(0x1db):return _0x3c0607(0x278)+(_0x4405d5?.['indexer']??_0x5c84b7?.[_0x3c0607(0x283)]?_0x3c0607(0x208)+(_0x4405d5?.[_0x3c0607(0x283)]??_0x5c84b7[_0x3c0607(0x283)]):'');default:return _0x1c9a18?_0x3c0607(0x2be)+_0x1c9a18:_0x133bf3?.[_0x3c0607(0x295)]??_0x133bf3?.[_0x3c0607(0x26d)]??_0x3c0607(0x222);}}export function compactEngineRowMetrics(_0x52ccf5=null){const _0x2a5068=_0xed745b,_0x1be33c=_0x52ccf5?.['config']??{},_0x4b7cb8=_0x52ccf5?.[_0x2a5068(0x255)]??{},_0x27baea=_0x4b7cb8?.[_0x2a5068(0x283)]??_0x4b7cb8??{},_0x6facb=_0x4b7cb8?.[_0x2a5068(0x246)]??_0x4b7cb8??{},_0x1db2b8=[],_0x15a9cd=firstDefined(_0x4b7cb8?.[_0x2a5068(0x1f6)],_0x52ccf5?.[_0x2a5068(0x1f5)]?.[_0x2a5068(0x1f6)],_0x52ccf5?.['lastClock'],_0x27baea?.[_0x2a5068(0x2b4)],_0x6facb?.[_0x2a5068(0x2b4)]),_0x3a7a8d=firstDefined(_0x4b7cb8?.['headClock'],_0x52ccf5?.['runtime']?.[_0x2a5068(0x251)],_0x52ccf5?.[_0x2a5068(0x251)],_0x27baea?.[_0x2a5068(0x22b)],_0x6facb?.[_0x2a5068(0x22b)]),_0x27825=inferLag(firstDefined(_0x4b7cb8?.[_0x2a5068(0x1f8)],_0x52ccf5?.[_0x2a5068(0x1f5)]?.['lag'],_0x52ccf5?.[_0x2a5068(0x1f8)],_0x27baea?.[_0x2a5068(0x1f8)],_0x6facb?.[_0x2a5068(0x1f8)]),_0x15a9cd,_0x3a7a8d),_0x463ac2=formatClockBadge(_0x15a9cd,_0x3a7a8d);switch(_0x52ccf5?.[_0x2a5068(0x24c)]){case'queue-worker':pushMetric(_0x1db2b8,'Done',compactCount(_0x4b7cb8?.['processed']??0x0),{'tone':_0x2a5068(0x1e2)}),pushMetric(_0x1db2b8,_0x2a5068(0x2b7),compactCount(_0x4b7cb8?.['failed']??0x0),{'tone':(_0x4b7cb8?.[_0x2a5068(0x2c0)]??0x0)>0x0?'danger':_0x2a5068(0x276)}),pushMetric(_0x1db2b8,'Queue',_0x4b7cb8?.[_0x2a5068(0x241)]??_0x1be33c?.[_0x2a5068(0x241)]??_0x52ccf5?.['env']??_0x2a5068(0x29c)),pushMetric(_0x1db2b8,_0x2a5068(0x291),_0x4b7cb8?.[_0x2a5068(0x29e)]?.[_0x2a5068(0x295)]??_0x1be33c?.['handler']?.['name'],{'title':'Queue\x20worker\x20handler'});break;case _0x2a5068(0x214):null!=_0x4b7cb8?.['processedChanges']&&pushMetric(_0x1db2b8,_0x2a5068(0x1e3),compactCount(_0x4b7cb8[_0x2a5068(0x280)])),null!=_0x4b7cb8?.[_0x2a5068(0x249)]&&pushMetric(_0x1db2b8,_0x2a5068(0x2b7),compactCount(_0x4b7cb8['failedBatches']),{'tone':(_0x4b7cb8?.[_0x2a5068(0x249)]??0x0)>0x0?_0x2a5068(0x231):_0x2a5068(0x276),'title':'Failed\x20batches'}),null!=_0x4b7cb8?.[_0x2a5068(0x24b)]&&pushMetric(_0x1db2b8,_0x2a5068(0x275),compactCount(_0x4b7cb8[_0x2a5068(0x24b)]),{'tone':(_0x4b7cb8?.['runningBatches']??0x0)>0x0?_0x2a5068(0x20d):_0x2a5068(0x276),'title':_0x2a5068(0x258)}),null!=_0x27825&&pushMetric(_0x1db2b8,_0x2a5068(0x2b9),0x0===_0x27825?'caught\x20up':compactCount(_0x27825),{'tone':Number(_0x27825)>0x0?_0x2a5068(0x2a7):'success'}),_0x463ac2&&pushMetric(_0x1db2b8,_0x2a5068(0x277),_0x463ac2[_0x2a5068(0x281)](/^clock\s+/i,'')),pushMetric(_0x1db2b8,_0x2a5068(0x268),_0x4b7cb8?.[_0x2a5068(0x1e8)]??_0x1be33c?.[_0x2a5068(0x1e8)]??_0x2a5068(0x20f));break;case _0x2a5068(0x213):null!=_0x4b7cb8?.[_0x2a5068(0x252)]&&pushMetric(_0x1db2b8,_0x2a5068(0x29b),compactCount(_0x4b7cb8[_0x2a5068(0x252)]),{'tone':_0x2a5068(0x1e2)}),null!=_0x4b7cb8?.[_0x2a5068(0x202)]&&pushMetric(_0x1db2b8,_0x2a5068(0x21a),compactCount(_0x4b7cb8[_0x2a5068(0x202)])),null!=_0x4b7cb8?.[_0x2a5068(0x249)]&&pushMetric(_0x1db2b8,'Error',compactCount(_0x4b7cb8[_0x2a5068(0x249)]),{'tone':(_0x4b7cb8?.[_0x2a5068(0x249)]??0x0)>0x0?'danger':'neutral','title':'Failed\x20batches'}),null!=_0x4b7cb8?.[_0x2a5068(0x24b)]&&pushMetric(_0x1db2b8,_0x2a5068(0x275),compactCount(_0x4b7cb8[_0x2a5068(0x24b)]),{'tone':(_0x4b7cb8?.[_0x2a5068(0x24b)]??0x0)>0x0?'accent':_0x2a5068(0x276),'title':_0x2a5068(0x258)}),null!=_0x27825&&pushMetric(_0x1db2b8,_0x2a5068(0x2b9),0x0===_0x27825?_0x2a5068(0x234):compactCount(_0x27825),{'tone':Number(_0x27825)>0x0?_0x2a5068(0x2a7):_0x2a5068(0x1e2)}),_0x463ac2&&pushMetric(_0x1db2b8,_0x2a5068(0x277),_0x463ac2[_0x2a5068(0x281)](/^clock\s+/i,''));break;case _0x2a5068(0x2a3):pushMetric(_0x1db2b8,_0x2a5068(0x2a9),_0x4b7cb8?.['type']??_0x1be33c?.[_0x2a5068(0x24c)]??_0x1be33c?.[_0x2a5068(0x23e)]),pushMetric(_0x1db2b8,'Model',_0x4b7cb8?.[_0x2a5068(0x27b)]??_0x1be33c?.[_0x2a5068(0x27b)]),null!=_0x4b7cb8?.[_0x2a5068(0x2a0)]&&pushMetric(_0x1db2b8,_0x2a5068(0x250),compactCount(_0x4b7cb8[_0x2a5068(0x2a0)])+_0x2a5068(0x27a),{'tone':_0x2a5068(0x20d)});break;case _0x2a5068(0x283):if(_0x27baea[_0x2a5068(0x24d)]&&pushMetric(_0x1db2b8,_0x2a5068(0x256),compactCount(_0x27baea[_0x2a5068(0x24d)]['done']??0x0),{'tone':_0x2a5068(0x1e2)}),_0x27baea[_0x2a5068(0x24d)]){const _0x1932e2=formatIndexerProgress(_0x27baea['doc_counts']);_0x1932e2&&pushMetric(_0x1db2b8,'Progress',_0x1932e2[_0x2a5068(0x2b5)],{'tone':_0x1932e2[_0x2a5068(0x21d)],'title':_0x2a5068(0x261)});}else{const _0x3bcc8d=formatClockProgress(_0x15a9cd,_0x3a7a8d);_0x3bcc8d&&pushMetric(_0x1db2b8,_0x2a5068(0x23c),_0x3bcc8d['value'],{'tone':_0x3bcc8d[_0x2a5068(0x21d)],'title':_0x2a5068(0x270)});}_0x27baea[_0x2a5068(0x24d)]&&pushMetric(_0x1db2b8,_0x2a5068(0x22f),compactCount(_0x27baea[_0x2a5068(0x24d)][_0x2a5068(0x232)]??0x0),{'tone':(_0x27baea['doc_counts']['pending']??0x0)>0x0?_0x2a5068(0x2a7):_0x2a5068(0x276)}),_0x27baea[_0x2a5068(0x24d)]&&pushMetric(_0x1db2b8,'Error',compactCount(_0x27baea[_0x2a5068(0x24d)][_0x2a5068(0x2c0)]??0x0),{'tone':(_0x27baea['doc_counts'][_0x2a5068(0x2c0)]??0x0)>0x0?_0x2a5068(0x231):_0x2a5068(0x276)}),null!=_0x27baea?.['vector_count']&&pushMetric(_0x1db2b8,'Vectors',compactCount(_0x27baea[_0x2a5068(0x20a)]),{'tone':'success'}),_0x463ac2&&pushMetric(_0x1db2b8,_0x2a5068(0x277),_0x463ac2['replace'](/^clock\s+/i,'')),null!=_0x27825&&pushMetric(_0x1db2b8,_0x2a5068(0x2b9),0x0===_0x27825?_0x2a5068(0x234):compactCount(_0x27825),{'tone':Number(_0x27825)>0x0?_0x2a5068(0x2a7):_0x2a5068(0x1e2)}),pushMetric(_0x1db2b8,'Field',_0x27baea[_0x2a5068(0x297)]??_0x1be33c?.[_0x2a5068(0x297)]??'whole\x20record'),pushMetric(_0x1db2b8,_0x2a5068(0x268),_0x27baea[_0x2a5068(0x1e8)]??_0x1be33c?.['mode']),pushMetric(_0x1db2b8,'Prepare',_0x27baea[_0x2a5068(0x1ed)]??_0x1be33c?.['prepare']),pushMetric(_0x1db2b8,_0x2a5068(0x26f),formatChunkConfig(_0x27baea[_0x2a5068(0x25f)]??_0x1be33c?.['chunk'])),pushMetric(_0x1db2b8,_0x2a5068(0x274),_0x27baea[_0x2a5068(0x2a3)]??_0x1be33c?.[_0x2a5068(0x2a3)]);break;case _0x2a5068(0x2bc):null==_0x6facb[_0x2a5068(0x257)]&&null==_0x6facb[_0x2a5068(0x20a)]||pushMetric(_0x1db2b8,'Vectors',compactCount(_0x6facb[_0x2a5068(0x257)]??_0x6facb[_0x2a5068(0x20a)]),{'tone':_0x2a5068(0x1e2)}),null!=_0x6facb[_0x2a5068(0x225)]&&pushMetric(_0x1db2b8,_0x2a5068(0x239),compactCount(_0x6facb[_0x2a5068(0x225)])),pushMetric(_0x1db2b8,_0x2a5068(0x22d),_0x6facb[_0x2a5068(0x25d)]??_0x1be33c?.['algorithm']);break;case _0x2a5068(0x1db):null!=_0x4b7cb8?.[_0x2a5068(0x273)]&&pushMetric(_0x1db2b8,_0x2a5068(0x256),compactCount(_0x4b7cb8[_0x2a5068(0x273)]),{'tone':_0x2a5068(0x1e2)}),null!=_0x4b7cb8?.[_0x2a5068(0x2c0)]&&pushMetric(_0x1db2b8,_0x2a5068(0x2b7),compactCount(_0x4b7cb8['failed']),{'tone':(_0x4b7cb8?.[_0x2a5068(0x2c0)]??0x0)>0x0?_0x2a5068(0x231):_0x2a5068(0x276)}),null!=_0x4b7cb8?.['in_flight']&&pushMetric(_0x1db2b8,'Active',compactCount(_0x4b7cb8[_0x2a5068(0x2b2)]),{'tone':(_0x4b7cb8?.[_0x2a5068(0x2b2)]??0x0)>0x0?_0x2a5068(0x20d):'neutral'}),null!=_0x4b7cb8?.['concurrency']&&pushMetric(_0x1db2b8,_0x2a5068(0x211),compactCount(_0x4b7cb8['concurrency']),{'tone':_0x2a5068(0x20d)}),pushMetric(_0x1db2b8,'Indexer',_0x4b7cb8?.[_0x2a5068(0x283)]??_0x1be33c?.[_0x2a5068(0x283)]);break;default:null!=_0x27825&&pushMetric(_0x1db2b8,_0x2a5068(0x2b9),0x0===_0x27825?_0x2a5068(0x234):compactCount(_0x27825),{'tone':Number(_0x27825)>0x0?_0x2a5068(0x2a7):_0x2a5068(0x1e2)}),pushMetric(_0x1db2b8,_0x2a5068(0x27e),_0x1be33c?.['source_type']);}return Array[_0x2a5068(0x299)](_0x52ccf5?.['affinity'])&&_0x52ccf5[_0x2a5068(0x1fd)]['length']&&pushMetric(_0x1db2b8,_0x2a5068(0x2bf),_0x52ccf5['affinity'][_0x2a5068(0x29f)](',\x20')),_0x1db2b8;}export function compactEngineRowPreview(_0x1f5f2b=null){const _0x10fe0b=_0xed745b,_0x5dc7e9=compactEngineRowMetrics(_0x1f5f2b),_0x2cbd1b=new Map(_0x5dc7e9['map'](_0x39e601=>[_0x39e601[_0x10fe0b(0x247)],_0x39e601])),_0x50113a=[],_0x505e8b=_0x22a3fc=>{const _0x1f0871=_0x10fe0b,_0x121b0d=_0x2cbd1b['get'](_0x22a3fc);_0x121b0d&&(_0x50113a['push'](_0x121b0d),_0x2cbd1b[_0x1f0871(0x29a)](_0x22a3fc));};switch(_0x1f5f2b?.[_0x10fe0b(0x24c)]){case _0x10fe0b(0x283):[_0x10fe0b(0x23c),_0x10fe0b(0x2b9),'Pending',_0x10fe0b(0x2b7),_0x10fe0b(0x2b6),'Chunk'][_0x10fe0b(0x27c)](_0x505e8b);break;case _0x10fe0b(0x1db):case _0x10fe0b(0x248):[_0x10fe0b(0x256),_0x10fe0b(0x2b7),'Active',_0x10fe0b(0x211)][_0x10fe0b(0x27c)](_0x505e8b);break;case _0x10fe0b(0x214):[_0x10fe0b(0x1e3),_0x10fe0b(0x2b7),'Active',_0x10fe0b(0x2b9)][_0x10fe0b(0x27c)](_0x505e8b);break;case'materializer':[_0x10fe0b(0x29b),_0x10fe0b(0x21a),'Error',_0x10fe0b(0x275),'Lag'][_0x10fe0b(0x27c)](_0x505e8b);break;case'vector-search':['Vectors',_0x10fe0b(0x239),_0x10fe0b(0x22d)][_0x10fe0b(0x27c)](_0x505e8b);break;case _0x10fe0b(0x2a3):['Model',_0x10fe0b(0x2a9),_0x10fe0b(0x250)]['forEach'](_0x505e8b);break;default:[_0x10fe0b(0x2b7),_0x10fe0b(0x2b9),_0x10fe0b(0x27e)][_0x10fe0b(0x27c)](_0x505e8b);}return _0x50113a['slice'](0x0,0x3);}export function compactEngineConfigMetrics(_0x442b7a=null){const _0x30e0b2=_0xed745b,_0x5a8387=_0x442b7a?.[_0x30e0b2(0x245)]??{},_0x2a10f1=_0x442b7a?.['stats']??{},_0x31c2b7=_0x442b7a?.[_0x30e0b2(0x1f5)]??{},_0x1cb893=[],_0xd73964=_0x5a8387?.[_0x30e0b2(0x29e)]??_0x31c2b7?.['handler']??_0x2a10f1?.[_0x30e0b2(0x29e)]??null;switch(_0x442b7a?.[_0x30e0b2(0x24c)]){case _0x30e0b2(0x214):pushMetric(_0x1cb893,_0x30e0b2(0x2a2),_0x5a8387?.[_0x30e0b2(0x2ac)]??_0x2a10f1?.[_0x30e0b2(0x2ac)]),pushMetric(_0x1cb893,_0x30e0b2(0x2c1),_0x5a8387?.[_0x30e0b2(0x287)]??_0x31c2b7?.[_0x30e0b2(0x287)]),pushMetric(_0x1cb893,_0x30e0b2(0x268),_0x5a8387?.['mode']??_0x2a10f1?.['mode']??'async'),pushMetric(_0x1cb893,_0x30e0b2(0x288),_0x5a8387?.[_0x30e0b2(0x2c2)]),pushMetric(_0x1cb893,_0x30e0b2(0x236),compactCount(_0x5a8387?.[_0x30e0b2(0x2a6)])),pushMetric(_0x1cb893,'Origin',_0x5a8387?.[_0x30e0b2(0x21c)]);break;case _0x30e0b2(0x213):pushMetric(_0x1cb893,_0x30e0b2(0x2a2),_0x5a8387?.['source_type']??_0x2a10f1?.[_0x30e0b2(0x2ac)]),pushMetric(_0x1cb893,'Target',_0x5a8387?.['target_type']??_0x2a10f1?.['target_type']),pushMetric(_0x1cb893,_0x30e0b2(0x2c1),_0x5a8387?.[_0x30e0b2(0x287)]??_0x31c2b7?.[_0x30e0b2(0x287)]),pushMetric(_0x1cb893,'Target\x20env',_0x5a8387?.[_0x30e0b2(0x1fc)]??_0x31c2b7?.[_0x30e0b2(0x1fc)]),pushMetric(_0x1cb893,_0x30e0b2(0x288),_0x5a8387?.[_0x30e0b2(0x2c2)]),pushMetric(_0x1cb893,_0x30e0b2(0x236),compactCount(_0x5a8387?.[_0x30e0b2(0x2a6)])),pushMetric(_0x1cb893,_0x30e0b2(0x2c5),_0x5a8387?.['originMode']),pushMetric(_0x1cb893,'Clear\x20target',formatBool(_0x5a8387?.['clearTargetOnRebuild'],'on',_0x30e0b2(0x2b3)));break;case'queue-worker':pushMetric(_0x1cb893,_0x30e0b2(0x286),_0x5a8387?.[_0x30e0b2(0x23b)]??_0x2a10f1?.[_0x30e0b2(0x23b)]),pushMetric(_0x1cb893,_0x30e0b2(0x1de),_0x5a8387?.[_0x30e0b2(0x241)]??_0x2a10f1?.[_0x30e0b2(0x241)]),pushMetric(_0x1cb893,_0x30e0b2(0x293),compactCount(_0x5a8387?.[_0x30e0b2(0x20b)]??_0x2a10f1?.[_0x30e0b2(0x20b)]));break;case _0x30e0b2(0x2a3):pushMetric(_0x1cb893,'Provider',_0x5a8387?.[_0x30e0b2(0x24c)]??_0x5a8387?.[_0x30e0b2(0x23e)]??_0x2a10f1?.[_0x30e0b2(0x24c)]),pushMetric(_0x1cb893,_0x30e0b2(0x28c),_0x5a8387?.[_0x30e0b2(0x27b)]??_0x2a10f1?.[_0x30e0b2(0x27b)]),pushMetric(_0x1cb893,_0x30e0b2(0x239),compactCount(_0x5a8387?.[_0x30e0b2(0x225)]??_0x2a10f1?.['dims']));break;case _0x30e0b2(0x283):pushMetric(_0x1cb893,'Source',_0x5a8387?.['source_type']??_0x2a10f1?.[_0x30e0b2(0x2ac)]),pushMetric(_0x1cb893,_0x30e0b2(0x2c1),_0x5a8387?.[_0x30e0b2(0x287)]??_0x31c2b7?.['source_env']),pushMetric(_0x1cb893,_0x30e0b2(0x22c),_0x5a8387?.['field']??_0x2a10f1?.[_0x30e0b2(0x297)]??_0x30e0b2(0x292)),pushMetric(_0x1cb893,_0x30e0b2(0x268),_0x5a8387?.['mode']??_0x2a10f1?.[_0x30e0b2(0x1e8)]),pushMetric(_0x1cb893,_0x30e0b2(0x2c9),_0x5a8387?.[_0x30e0b2(0x28e)]??_0x2a10f1?.[_0x30e0b2(0x28e)]),pushMetric(_0x1cb893,_0x30e0b2(0x239),compactCount(_0x5a8387?.[_0x30e0b2(0x225)]??_0x2a10f1?.[_0x30e0b2(0x225)])),pushMetric(_0x1cb893,_0x30e0b2(0x285),_0x5a8387?.['prepare']??_0x2a10f1?.[_0x30e0b2(0x1ed)]),pushMetric(_0x1cb893,'Chunk',formatChunkConfig(_0x5a8387?.[_0x30e0b2(0x25f)]??_0x2a10f1?.[_0x30e0b2(0x25f)])),pushMetric(_0x1cb893,_0x30e0b2(0x274),_0x5a8387?.[_0x30e0b2(0x2a3)]??_0x2a10f1?.[_0x30e0b2(0x2a3)]);break;case _0x30e0b2(0x2bc):if(pushMetric(_0x1cb893,'Source',_0x5a8387?.[_0x30e0b2(0x2ac)]??_0x2a10f1?.['source_type']),pushMetric(_0x1cb893,'Source\x20env',_0x5a8387?.[_0x30e0b2(0x287)]??_0x31c2b7?.[_0x30e0b2(0x287)]),pushMetric(_0x1cb893,'Storage',_0x5a8387?.[_0x30e0b2(0x28e)]??_0x2a10f1?.['storage_key']),pushMetric(_0x1cb893,_0x30e0b2(0x239),compactCount(_0x5a8387?.[_0x30e0b2(0x225)]??_0x2a10f1?.[_0x30e0b2(0x225)])),pushMetric(_0x1cb893,_0x30e0b2(0x22d),_0x5a8387?.[_0x30e0b2(0x25d)]??_0x2a10f1?.['algorithm']??_0x30e0b2(0x1da)),_0x5a8387?.[_0x30e0b2(0x2c4)]&&'object'==typeof _0x5a8387[_0x30e0b2(0x2c4)]){for(const [_0x1d3a3f,_0x4156fd]of Object[_0x30e0b2(0x2ae)](_0x5a8387[_0x30e0b2(0x2c4)]))pushMetric(_0x1cb893,_0x1d3a3f,compactCount(_0x4156fd));}pushMetric(_0x1cb893,_0x30e0b2(0x274),_0x5a8387?.[_0x30e0b2(0x2a3)]??_0x2a10f1?.[_0x30e0b2(0x2a3)]);break;case _0x30e0b2(0x1db):pushMetric(_0x1cb893,_0x30e0b2(0x286),_0x5a8387?.[_0x30e0b2(0x23b)]??_0x2a10f1?.[_0x30e0b2(0x23b)]),pushMetric(_0x1cb893,_0x30e0b2(0x1fa),_0x5a8387?.[_0x30e0b2(0x283)]??_0x2a10f1?.['indexer']),pushMetric(_0x1cb893,_0x30e0b2(0x274),_0x5a8387?.[_0x30e0b2(0x2a3)]??_0x2a10f1?.[_0x30e0b2(0x2a3)]),pushMetric(_0x1cb893,'Concurrency',compactCount(_0x5a8387?.[_0x30e0b2(0x20b)]??_0x2a10f1?.[_0x30e0b2(0x20b)])),pushMetric(_0x1cb893,_0x30e0b2(0x2b1),null!=_0x5a8387?.[_0x30e0b2(0x2aa)]?compactCount(_0x5a8387[_0x30e0b2(0x2aa)])+_0x30e0b2(0x27a):null),pushMetric(_0x1cb893,_0x30e0b2(0x218),null!=_0x5a8387?.[_0x30e0b2(0x290)]?compactCount(_0x5a8387[_0x30e0b2(0x290)])+_0x30e0b2(0x27a):null);break;default:pushMetric(_0x1cb893,'Source',_0x5a8387?.[_0x30e0b2(0x2ac)]??_0x2a10f1?.[_0x30e0b2(0x2ac)]),pushMetric(_0x1cb893,_0x30e0b2(0x238),_0x5a8387?.[_0x30e0b2(0x25e)]??_0x2a10f1?.['target_type']),pushMetric(_0x1cb893,_0x30e0b2(0x268),_0x5a8387?.[_0x30e0b2(0x1e8)]??_0x2a10f1?.[_0x30e0b2(0x1e8)]);}return _0xd73964?.['name']&&pushMetric(_0x1cb893,_0x30e0b2(0x291),_0xd73964['name'],{'title':_0x30e0b2(0x28b)}),_0xd73964?.['recordRuns']&&pushMetric(_0x1cb893,'Run\x20log',_0xd73964[_0x30e0b2(0x212)],{'title':_0x30e0b2(0x243)}),_0x1cb893;}
@@ -1 +1 @@
1
- function _0x5d9d(_0x527b80,_0x3a485e){_0x527b80=_0x527b80-0x84;var _0xbf4e61=_0xbf4e();var _0x5d9d80=_0xbf4e61[_0x527b80];return _0x5d9d80;}function _0xbf4e(){var _0x3da418=['$attr','328pJroZN','240513qJAKQm','759856tWFPMn','$watch','engine','width:min(1180px,\x20calc(100vw\x20-\x2048px));max-width:calc(100vw\x20-\x2048px);min-width:860px;max-height:calc(100vh\x20-\x2060px);display:flex;flex-direction:column;gap:14px;','close','\x0a<div\x20:style=\x22modalStyle\x22>\x0a\x20\x20<div\x20style=\x22min-height:0;padding-right:4px;display:flex;flex-direction:column;gap:14px;\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22!isEmbeddings\x22>\x0a\x20\x20\x20\x20\x20\x20<generic-engine-panel\x0a\x20\x20\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:env=\x22envName\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:modal=\x22$attr.modal\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@deleted=\x22handleDeleted()\x22\x0a\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22isEmbeddings\x22>\x0a\x20\x20\x20\x20\x20\x20<embeddings-engine-panel\x0a\x20\x20\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@deleted=\x22handleDeleted()\x22\x0a\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22hasConfig\x20&&\x20isEmbeddings\x22>\x0a\x20\x20\x20\x20\x20\x20<details\x20style=\x22border:1px\x20solid\x20var(--okdb-app-surface-2);border-radius:10px;background:var(--okdb-app-bg-deep);padding:8px\x2010px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<summary\x20style=\x22display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--okdb-app-fg-muted);cursor:pointer;user-select:none;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>&#9658;\x20Configuration</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</summary>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22margin:8px\x200\x200;max-height:260px;overflow:auto;padding:10px;border-radius:8px;background:var(--okdb-app-bg-deep);border:1px\x20solid\x20var(--okdb-app-surface-2);font-size:11px;line-height:1.55;white-space:pre-wrap;word-break:break-word;color:var(--okdb-app-fg-muted);\x22>{{\x20configJson\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20</details>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a</div>\x0a','17063262GhrykO','type','length','878440yBptBV','onDone','queue-worker','modal','hasConfig','99113ZskJah','notifyDone','config','width:min(920px,\x20calc(100vw\x20-\x2048px));max-width:calc(100vw\x20-\x2048px);min-width:720px;max-height:calc(100vh\x20-\x2060px);display:flex;flex-direction:column;gap:14px;','12FYgVIE','2986950QGQvjF','keys','eng','engineState','1959840ACUohf'];_0xbf4e=function(){return _0x3da418;};return _0xbf4e();}var _0x3d3151=_0x5d9d;(function(_0xa9fe69,_0x5c516d){var _0x2eee80=_0x5d9d,_0x4163ba=_0xa9fe69();while(!![]){try{var _0x3dbd6a=-parseInt(_0x2eee80(0x85))/0x1+parseInt(_0x2eee80(0x86))/0x2+parseInt(_0x2eee80(0x98))/0x3*(-parseInt(_0x2eee80(0x8f))/0x4)+parseInt(_0x2eee80(0x9d))/0x5+-parseInt(_0x2eee80(0x99))/0x6+parseInt(_0x2eee80(0x94))/0x7*(-parseInt(_0x2eee80(0x84))/0x8)+parseInt(_0x2eee80(0x8c))/0x9;if(_0x3dbd6a===_0x5c516d)break;else _0x4163ba['push'](_0x4163ba['shift']());}catch(_0x2fcdcb){_0x4163ba['push'](_0x4163ba['shift']());}}}(_0xbf4e,0x72df5));import _0x2a8aa7 from'../../embeddings/parts/embeddings-engine-panel.ok.js';import _0x2c2b5f from'../parts/generic-engine-panel.ok.js';import{formatJsonValue as _0x51a2cf,isEmbeddingsEngine as _0x52c387,maskSensitiveConfig as _0xc85aa3}from'../engine-ui-utils.js';export default{'tag':'engine-modal','dependencies':[_0x2c2b5f,_0x2a8aa7],'attr':{'modal':{},'engine':{},'env':{},'onDone':{}},'context':_0x100fc0=>({'engineState':_0x100fc0['$attr'][_0x3d3151(0x88)]??null,get 'eng'(){var _0x5cb673=_0x3d3151;return this[_0x5cb673(0x9c)]??{};},get 'envName'(){var _0x35a9a9=_0x3d3151;return _0x100fc0[_0x35a9a9(0x9e)]['env']??this[_0x35a9a9(0x9b)]['env']??null;},get 'isEmbeddings'(){var _0x5b40dc=_0x3d3151;return _0x52c387(this[_0x5b40dc(0x9b)]);},get 'isQueueWorker'(){var _0x56b161=_0x3d3151;return _0x56b161(0x91)===this[_0x56b161(0x9b)]?.[_0x56b161(0x8d)];},get 'hasConfig'(){var _0x25c19c=_0x3d3151;return!!this[_0x25c19c(0x9b)]?.[_0x25c19c(0x96)]&&Object[_0x25c19c(0x9a)](this[_0x25c19c(0x9b)][_0x25c19c(0x96)])[_0x25c19c(0x8e)]>0x0;},get 'configJson'(){var _0x1b36fa=_0x3d3151;return this[_0x1b36fa(0x93)]?_0x51a2cf(_0xc85aa3(this[_0x1b36fa(0x9b)][_0x1b36fa(0x96)])):'';},get 'modalStyle'(){var _0x59b838=_0x3d3151;return this['isQueueWorker']?_0x59b838(0x97):_0x59b838(0x89);},'setEngine'(_0x5a9b65){var _0x55dc52=_0x3d3151;_0x5a9b65&&(this[_0x55dc52(0x9c)]={...this['engineState']??{},..._0x5a9b65});},async 'notifyDone'(_0x4b20a4=null){var _0x4c020f=_0x3d3151;await _0x100fc0[_0x4c020f(0x9e)][_0x4c020f(0x90)]?.(_0x4b20a4??this['engineState']);},async 'handleEngineUpdated'(_0x51637c){var _0x395e4b=_0x3d3151;this['setEngine'](_0x51637c),await this[_0x395e4b(0x95)](this[_0x395e4b(0x9c)]);},async 'handleRefresh'(){var _0x8c2e1d=_0x3d3151;await this[_0x8c2e1d(0x95)](this[_0x8c2e1d(0x9c)]);},async 'handleDeleted'(){var _0x2aab58=_0x3d3151;await this[_0x2aab58(0x95)]({...this[_0x2aab58(0x9c)]??{},'_deleted':!0x0}),await _0x100fc0[_0x2aab58(0x9e)][_0x2aab58(0x92)]?.[_0x2aab58(0x8a)]?.();},'close'(){var _0x5aacc8=_0x3d3151;_0x100fc0['$attr']['modal']?.[_0x5aacc8(0x8a)]?.();}}),'init'(_0x5c1e75){var _0x3acfaa=_0x3d3151;_0x5c1e75[_0x3acfaa(0x87)](()=>_0x5c1e75[_0x3acfaa(0x9e)]['engine'],()=>{var _0x1e80b1=_0x3acfaa;this['engineState']=_0x5c1e75[_0x1e80b1(0x9e)][_0x1e80b1(0x88)]??null;});},'template':_0x3d3151(0x8b)};
1
+ var _0x58ba09=_0x5c92;function _0x5381(){var _0x2cc967=['isQueueWorker','queue-worker','1621032pEsgOC','keys','\x0a<div\x20:style=\x22modalStyle\x22>\x0a\x20\x20<div\x20style=\x22min-height:0;padding-right:4px;display:flex;flex-direction:column;gap:14px;\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22!isEmbeddings\x22>\x0a\x20\x20\x20\x20\x20\x20<generic-engine-panel\x0a\x20\x20\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:env=\x22envName\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:modal=\x22$attr.modal\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@deleted=\x22handleDeleted()\x22\x0a\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22isEmbeddings\x22>\x0a\x20\x20\x20\x20\x20\x20<embeddings-engine-panel\x0a\x20\x20\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@deleted=\x22handleDeleted()\x22\x0a\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22hasConfig\x20&&\x20isEmbeddings\x22>\x0a\x20\x20\x20\x20\x20\x20<details\x20style=\x22border:1px\x20solid\x20var(--okdb-app-surface-2);border-radius:10px;background:var(--okdb-app-bg-deep);padding:8px\x2010px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<summary\x20style=\x22display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--okdb-app-fg-muted);cursor:pointer;user-select:none;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>&#9658;\x20Configuration</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</summary>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22margin:8px\x200\x200;max-height:260px;overflow:auto;padding:10px;border-radius:8px;background:var(--okdb-app-bg-deep);border:1px\x20solid\x20var(--okdb-app-surface-2);font-size:11px;line-height:1.55;white-space:pre-wrap;word-break:break-word;color:var(--okdb-app-fg-muted);\x22>{{\x20configJson\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20</details>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a</div>\x0a','6zRFtTo','248572kcAORP','engine','2961DMfqkQ','length','eng','3109872KHpnEH','close','notifyDone','3Vgvxee','640306ZWzXjy','23550GSNwPo','onDone','236335zYhwSh','modal','engineState','388454ZXFwcu','config','$attr','env'];_0x5381=function(){return _0x2cc967;};return _0x5381();}(function(_0x22f6c3,_0x1cc1c5){var _0x490ef4=_0x5c92,_0x107052=_0x22f6c3();while(!![]){try{var _0x16c810=-parseInt(_0x490ef4(0xf8))/0x1+parseInt(_0x490ef4(0x10b))/0x2+-parseInt(_0x490ef4(0x10a))/0x3*(-parseInt(_0x490ef4(0x102))/0x4)+-parseInt(_0x490ef4(0x10e))/0x5*(-parseInt(_0x490ef4(0x101))/0x6)+-parseInt(_0x490ef4(0xfe))/0x7+-parseInt(_0x490ef4(0x107))/0x8+-parseInt(_0x490ef4(0x104))/0x9*(-parseInt(_0x490ef4(0x10c))/0xa);if(_0x16c810===_0x1cc1c5)break;else _0x107052['push'](_0x107052['shift']());}catch(_0x2b38ff){_0x107052['push'](_0x107052['shift']());}}}(_0x5381,0x2fc0a));import _0x37058c from'../../embeddings/parts/embeddings-engine-panel.ok.js';function _0x5c92(_0x50f0f6,_0x45629d){_0x50f0f6=_0x50f0f6-0xf7;var _0x53812b=_0x5381();var _0x5c92cd=_0x53812b[_0x50f0f6];return _0x5c92cd;}import _0x23b39d from'../parts/generic-engine-panel.ok.js';import{formatJsonValue as _0x1bff18,isEmbeddingsEngine as _0x297307,maskSensitiveConfig as _0x5b1957}from'../engine-ui-utils.js';export default{'tag':'engine-modal','dependencies':[_0x23b39d,_0x37058c],'attr':{'modal':{},'engine':{},'env':{},'onDone':{}},'context':_0x515b2c=>({'engineState':_0x515b2c[_0x58ba09(0xfa)][_0x58ba09(0x103)]??null,get 'eng'(){var _0x4f4dfc=_0x58ba09;return this[_0x4f4dfc(0xf7)]??{};},get 'envName'(){var _0x3903f6=_0x58ba09;return _0x515b2c[_0x3903f6(0xfa)][_0x3903f6(0xfb)]??this[_0x3903f6(0x106)][_0x3903f6(0xfb)]??null;},get 'isEmbeddings'(){var _0x180aff=_0x58ba09;return _0x297307(this[_0x180aff(0x106)]);},get 'isQueueWorker'(){var _0x1c92f7=_0x58ba09;return _0x1c92f7(0xfd)===this[_0x1c92f7(0x106)]?.['type'];},get 'hasConfig'(){var _0x5df918=_0x58ba09;return!!this['eng']?.[_0x5df918(0xf9)]&&Object[_0x5df918(0xff)](this[_0x5df918(0x106)][_0x5df918(0xf9)])[_0x5df918(0x105)]>0x0;},get 'configJson'(){var _0x3ee265=_0x58ba09;return this['hasConfig']?_0x1bff18(_0x5b1957(this[_0x3ee265(0x106)]['config'])):'';},get 'modalStyle'(){var _0x28bb81=_0x58ba09;return this[_0x28bb81(0xfc)]?'width:min(920px,\x20calc(100vw\x20-\x2048px));max-width:calc(100vw\x20-\x2048px);min-width:720px;max-height:calc(100vh\x20-\x2060px);display:flex;flex-direction:column;gap:14px;':'width:min(1180px,\x20calc(100vw\x20-\x2048px));max-width:calc(100vw\x20-\x2048px);min-width:860px;max-height:calc(100vh\x20-\x2060px);display:flex;flex-direction:column;gap:14px;';},'setEngine'(_0x81ff39){var _0x1e4b5e=_0x58ba09;_0x81ff39&&(this[_0x1e4b5e(0xf7)]={...this[_0x1e4b5e(0xf7)]??{},..._0x81ff39});},async 'notifyDone'(_0x43ceaf=null){var _0x1aad25=_0x58ba09;await _0x515b2c[_0x1aad25(0xfa)][_0x1aad25(0x10d)]?.(_0x43ceaf??this[_0x1aad25(0xf7)]);},async 'handleEngineUpdated'(_0x57791e){var _0x5ed9a1=_0x58ba09;this['setEngine'](_0x57791e),await this['notifyDone'](this[_0x5ed9a1(0xf7)]);},async 'handleRefresh'(){var _0xab64aa=_0x58ba09;await this[_0xab64aa(0x109)](this['engineState']);},async 'handleDeleted'(){var _0x3aca03=_0x58ba09;await this[_0x3aca03(0x109)]({...this['engineState']??{},'_deleted':!0x0}),await _0x515b2c['$attr']['modal']?.['close']?.();},'close'(){var _0x502220=_0x58ba09;_0x515b2c[_0x502220(0xfa)][_0x502220(0x10f)]?.[_0x502220(0x108)]?.();}}),'init'(_0x181eb2){var _0x5e347d=_0x58ba09;_0x181eb2['$watch'](()=>_0x181eb2['$attr'][_0x5e347d(0x103)],()=>{var _0x3778bd=_0x5e347d;this[_0x3778bd(0xf7)]=_0x181eb2[_0x3778bd(0xfa)][_0x3778bd(0x103)]??null;});},'template':_0x58ba09(0x100)};
@@ -1 +1 @@
1
- const _0x18b552=_0x1595;(function(_0x4c1d02,_0x17dcb7){const _0x58a2e1=_0x1595,_0x52afb6=_0x4c1d02();while(!![]){try{const _0x13e1c2=-parseInt(_0x58a2e1(0xeb))/0x1+-parseInt(_0x58a2e1(0x107))/0x2+parseInt(_0x58a2e1(0xee))/0x3*(parseInt(_0x58a2e1(0xef))/0x4)+parseInt(_0x58a2e1(0xff))/0x5+-parseInt(_0x58a2e1(0xe3))/0x6*(-parseInt(_0x58a2e1(0xfd))/0x7)+-parseInt(_0x58a2e1(0xe7))/0x8+parseInt(_0x58a2e1(0x110))/0x9;if(_0x13e1c2===_0x17dcb7)break;else _0x52afb6['push'](_0x52afb6['shift']());}catch(_0x4ff6b6){_0x52afb6['push'](_0x52afb6['shift']());}}}(_0x41d4,0xeb071));function _0x41d4(){const _0x458b28=['result','success','10931256yyZFbd','application/json','message','object','1003199CzlCKU','engine-declaration-editor','syncDrafts','411024Ltzski','8EIOYkX','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:12px;\x20padding:14px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:12px;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:13px;\x22>Advanced\x20declaration</div>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.45;\x22>enablement,\x20affinity,\x20and\x20synced\x20meta</div>\x0a\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22toggleOpen()\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x20opacity:.8;\x22>\x0a\x20\x20\x20\x20\x20\x20{{\x20open\x20?\x20\x27Hide\x27\x20:\x20\x27Edit\x20declaration\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22kv-grid\x20kv-grid--compact\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22kv-key\x22>enabled</span><span\x20class=\x22kv-val\x22>{{\x20eng.enabled\x20===\x20false\x20?\x20\x27no\x27\x20:\x20\x27yes\x27\x20}}</span>\x0a\x20\x20\x20\x20<span\x20class=\x22kv-key\x22>affinity</span><span\x20class=\x22kv-val\x22>{{\x20affinitySummary\x20}}</span>\x0a\x20\x20\x20\x20<span\x20class=\x22kv-key\x22>meta</span><span\x20class=\x22kv-val\x22>{{\x20metaSummary\x20}}</span>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22open\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:12px;\x20padding-top:4px;\x20border-top:1px\x20solid\x20var(--okdb-app-border);\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.5;\x22>These\x20values\x20are\x20persisted\x20and\x20synced.</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22save()\x22\x20:disabled=\x22saving\x20||\x20!canEdit\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x20color:var(--okdb-accent);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2033%,\x20transparent);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20saving\x20?\x20\x27Saving…\x27\x20:\x20\x27Save\x20declaration\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22checkbox\x22\x20:checked=\x22enabledDraft\x22\x20@change=\x22enabledDraft\x20=\x20$event.target.checked\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>Enabled\x20on\x20eligible\x20nodes</span>\x0a\x20\x20\x20\x20\x20\x20</label>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Affinity\x20tags</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:value=\x22affinityDraft\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@input=\x22affinityDraft\x20=\x20$event.target.value\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keydown.enter=\x22save()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20placeholder=\x22all\x20nodes\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:6px;\x20padding:6px\x208px;\x20color:inherit;\x20font-size:12px;\x20font-family:monospace;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.45;\x20line-height:1.5;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Leave\x20empty\x20to\x20run\x20on\x20any\x20node.\x20Otherwise\x20the\x20local\x20node\x20must\x20match\x20all\x20listed\x20tags.\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:6px;\x20min-height:0;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Meta</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22min-height:160px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:8px;\x20overflow:hidden;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-json-input\x20mode=\x22textbox\x22\x20:value=\x22metaDraft\x22\x20@edit=\x22metaDraft\x20=\x20cloneMeta($event.detail)\x22\x20style=\x22height:100%;\x20display:flex;\x20min-height:160px;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22error\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:12px;\x20color:var(--okdb-danger);\x22>{{\x20error\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a</div>\x0a','open','enabled','metaDraft','$attr','length','engine','toast','shared','keys','all\x20nodes','empty','status','7040971JRmBPL','error','8167320mlgdzC','canEdit','Failed\x20(','eng','json','join','data','$ok','3119298iSruMb','enabledDraft','refresh','$watch','$dispatch','Engine\x20declaration\x20saved','meta','PATCH','isArray','17807355qosNsv','affinity','basePath','affinityDraft','saving','6jCwlQl','stringify'];_0x41d4=function(){return _0x458b28;};return _0x41d4();}import _0x19e492 from'../../../components/ok-json-input.ok.js';function _0x1595(_0xe54009,_0x5ba9b1){_0xe54009=_0xe54009-0xdf;const _0x41d453=_0x41d4();let _0x1595a8=_0x41d453[_0xe54009];return _0x1595a8;}import{buildEngineBasePath as _0x1ce5e5,cloneValue as _0x10ca82,getApiErrorMessage as _0x7c047e,parseTagList as _0xad6184}from'../engine-ui-utils.js';export default{'tag':_0x18b552(0xec),'dependencies':[_0x19e492],'attr':{'engine':{},'env':{}},'context':_0x4fe108=>({'saving':!0x1,'error':null,'open':!0x1,'enabledDraft':!0x0,'affinityDraft':'','metaDraft':{},get 'eng'(){const _0x153da4=_0x18b552;return _0x4fe108[_0x153da4(0xf4)][_0x153da4(0xf6)]??{};},get 'basePath'(){const _0x5936f7=_0x18b552;return _0x1ce5e5(this[_0x5936f7(0x102)],_0x4fe108['$attr']['env']??null);},get 'canEdit'(){const _0x176ab1=_0x18b552;return!!this[_0x176ab1(0xe0)];},get 'affinitySummary'(){const _0x53a694=_0x18b552;return Array[_0x53a694(0x10f)](this[_0x53a694(0x102)]?.[_0x53a694(0xdf)])&&this[_0x53a694(0x102)][_0x53a694(0xdf)][_0x53a694(0xf5)]?this[_0x53a694(0x102)][_0x53a694(0xdf)][_0x53a694(0x104)](',\x20'):_0x53a694(0xfa);},get 'metaSummary'(){const _0x328cfe=_0x18b552,_0x1dc109=this[_0x328cfe(0x102)]?.['meta']??{},_0x87206b=_0x328cfe(0xea)==typeof _0x1dc109&&_0x1dc109&&!Array[_0x328cfe(0x10f)](_0x1dc109)?Object[_0x328cfe(0xf9)](_0x1dc109)[_0x328cfe(0xf5)]:0x0;return _0x87206b?_0x87206b+'\x20field'+(0x1===_0x87206b?'':'s'):_0x328cfe(0xfb);},'syncDrafts'(_0x10969e=null){const _0x24b3ba=_0x18b552,_0x4b814e=_0x10969e??this[_0x24b3ba(0x102)]??{};this[_0x24b3ba(0x108)]=!0x1!==_0x4b814e[_0x24b3ba(0xf2)],this[_0x24b3ba(0xe1)]=Array[_0x24b3ba(0x10f)](_0x4b814e[_0x24b3ba(0xdf)])?_0x4b814e[_0x24b3ba(0xdf)][_0x24b3ba(0x104)](',\x20'):'',this[_0x24b3ba(0xf3)]=_0x10ca82(_0x4b814e[_0x24b3ba(0x10d)],{}),this[_0x24b3ba(0xfe)]=null;},'cloneMeta':_0x2e05a6=>_0x10ca82(_0x2e05a6,{}),'toggleOpen'(){const _0x178bce=_0x18b552;this[_0x178bce(0xf1)]=!this[_0x178bce(0xf1)];},async 'save'(){const _0x53b4f4=_0x18b552;if(this[_0x53b4f4(0x100)]&&!this[_0x53b4f4(0xe2)]){this[_0x53b4f4(0xe2)]=!0x0,this['error']=null;try{const _0x12cab8=await fetch(this[_0x53b4f4(0xe0)],{'method':_0x53b4f4(0x10e),'headers':{'Content-Type':_0x53b4f4(0xe8)},'body':JSON[_0x53b4f4(0xe4)]({'enabled':this[_0x53b4f4(0x108)],'affinity':_0xad6184(this[_0x53b4f4(0xe1)]),'meta':_0x10ca82(this['metaDraft'],{})})}),_0x3dd9d1=await _0x12cab8[_0x53b4f4(0x103)]()['catch'](()=>({}));if(!_0x12cab8['ok'])throw new Error(_0x7c047e(_0x3dd9d1,_0x53b4f4(0x101)+_0x12cab8[_0x53b4f4(0xfc)]+')'));const _0x42ee8d=_0x3dd9d1?.[_0x53b4f4(0x105)]??_0x3dd9d1?.[_0x53b4f4(0xe5)]??null;_0x42ee8d&&(this[_0x53b4f4(0xed)](_0x42ee8d),_0x4fe108[_0x53b4f4(0x10b)]('engine-updated',_0x42ee8d)),this['open']=!0x1,_0x4fe108[_0x53b4f4(0x10b)](_0x53b4f4(0x109)),_0x4fe108['$ok']['shared']?.[_0x53b4f4(0xf7)]?.[_0x53b4f4(0xe6)]?.(_0x53b4f4(0x10c));}catch(_0x56da3e){this['error']=_0x56da3e?.[_0x53b4f4(0xe9)]||String(_0x56da3e),this['open']=!0x0,_0x4fe108[_0x53b4f4(0x106)][_0x53b4f4(0xf8)]?.[_0x53b4f4(0xf7)]?.['error']?.(this[_0x53b4f4(0xfe)]);}finally{this[_0x53b4f4(0xe2)]=!0x1;}}}}),'init'(_0x26278b){const _0x4e0d71=_0x18b552;this['syncDrafts'](_0x26278b[_0x4e0d71(0xf4)]['engine']),_0x26278b[_0x4e0d71(0x10a)](()=>_0x26278b[_0x4e0d71(0xf4)][_0x4e0d71(0xf6)],()=>this[_0x4e0d71(0xed)](_0x26278b['$attr'][_0x4e0d71(0xf6)]));},'template':_0x18b552(0xf0)};
1
+ const _0x3823bf=_0x1741;(function(_0x3f0cec,_0x505004){const _0x578eb1=_0x1741,_0x396b0f=_0x3f0cec();while(!![]){try{const _0x23750a=-parseInt(_0x578eb1(0x11e))/0x1*(parseInt(_0x578eb1(0x109))/0x2)+-parseInt(_0x578eb1(0x118))/0x3+parseInt(_0x578eb1(0x111))/0x4+parseInt(_0x578eb1(0x11d))/0x5*(parseInt(_0x578eb1(0x110))/0x6)+-parseInt(_0x578eb1(0x107))/0x7+-parseInt(_0x578eb1(0x114))/0x8*(parseInt(_0x578eb1(0x102))/0x9)+parseInt(_0x578eb1(0x11c))/0xa;if(_0x23750a===_0x505004)break;else _0x396b0f['push'](_0x396b0f['shift']());}catch(_0x3fdde3){_0x396b0f['push'](_0x396b0f['shift']());}}}(_0x366e,0x1ce84));function _0x366e(){const _0xa97e9e=['application/json','keys','saving','affinityDraft','affinity','enabledDraft','status','isArray','Engine\x20declaration\x20saved','canEdit','basePath','toast','object','$attr','$ok','PATCH','refresh','open','syncDrafts','enabled','catch','83277XwJuAy','eng','success','engine-updated','data','1635599FwNsoD','\x20field','405784oyRFZD','$dispatch','length','$watch','error','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:12px;\x20padding:14px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:12px;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:13px;\x22>Advanced\x20declaration</div>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.45;\x22>enablement,\x20affinity,\x20and\x20synced\x20meta</div>\x0a\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22toggleOpen()\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x20opacity:.8;\x22>\x0a\x20\x20\x20\x20\x20\x20{{\x20open\x20?\x20\x27Hide\x27\x20:\x20\x27Edit\x20declaration\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22kv-grid\x20kv-grid--compact\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22kv-key\x22>enabled</span><span\x20class=\x22kv-val\x22>{{\x20eng.enabled\x20===\x20false\x20?\x20\x27no\x27\x20:\x20\x27yes\x27\x20}}</span>\x0a\x20\x20\x20\x20<span\x20class=\x22kv-key\x22>affinity</span><span\x20class=\x22kv-val\x22>{{\x20affinitySummary\x20}}</span>\x0a\x20\x20\x20\x20<span\x20class=\x22kv-key\x22>meta</span><span\x20class=\x22kv-val\x22>{{\x20metaSummary\x20}}</span>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22open\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:12px;\x20padding-top:4px;\x20border-top:1px\x20solid\x20var(--okdb-app-border);\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.5;\x22>These\x20values\x20are\x20persisted\x20and\x20synced.</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22save()\x22\x20:disabled=\x22saving\x20||\x20!canEdit\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x20color:var(--okdb-accent);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2033%,\x20transparent);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20saving\x20?\x20\x27Saving…\x27\x20:\x20\x27Save\x20declaration\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22checkbox\x22\x20:checked=\x22enabledDraft\x22\x20@change=\x22enabledDraft\x20=\x20$event.target.checked\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>Enabled\x20on\x20eligible\x20nodes</span>\x0a\x20\x20\x20\x20\x20\x20</label>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Affinity\x20tags</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:value=\x22affinityDraft\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@input=\x22affinityDraft\x20=\x20$event.target.value\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@keydown.enter=\x22save()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20placeholder=\x22all\x20nodes\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:6px;\x20padding:6px\x208px;\x20color:inherit;\x20font-size:12px;\x20font-family:monospace;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.45;\x20line-height:1.5;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Leave\x20empty\x20to\x20run\x20on\x20any\x20node.\x20Otherwise\x20the\x20local\x20node\x20must\x20match\x20all\x20listed\x20tags.\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:6px;\x20min-height:0;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:10px;\x20opacity:.45;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Meta</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22min-height:160px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:8px;\x20overflow:hidden;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-json-input\x20mode=\x22textbox\x22\x20:value=\x22metaDraft\x22\x20@edit=\x22metaDraft\x20=\x20cloneMeta($event.detail)\x22\x20style=\x22height:100%;\x20display:flex;\x20min-height:160px;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22error\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:12px;\x20color:var(--okdb-danger);\x22>{{\x20error\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a</div>\x0a','message','54PmpUuc','102580CTNeIi','shared','meta','184WfXvqM','empty','stringify','engine-declaration-editor','431661cXRRjn','join','engine','env','6709050MRVuqZ','119505PAQTbW','1ycAcke','json','Failed\x20(','result'];_0x366e=function(){return _0xa97e9e;};return _0x366e();}function _0x1741(_0x3a6c90,_0x19f114){_0x3a6c90=_0x3a6c90-0xf0;const _0x366ef4=_0x366e();let _0x174164=_0x366ef4[_0x3a6c90];return _0x174164;}import _0x20857f from'../../../components/ok-json-input.ok.js';import{buildEngineBasePath as _0x53c14e,cloneValue as _0x3bcbb5,getApiErrorMessage as _0x3c7a70,parseTagList as _0x925c1f}from'../engine-ui-utils.js';export default{'tag':_0x3823bf(0x117),'dependencies':[_0x20857f],'attr':{'engine':{},'env':{}},'context':_0x1edcc4=>({'saving':!0x1,'error':null,'open':!0x1,'enabledDraft':!0x0,'affinityDraft':'','metaDraft':{},get 'eng'(){const _0x6c3fa7=_0x3823bf;return _0x1edcc4[_0x6c3fa7(0xfa)]['engine']??{};},get 'basePath'(){const _0x5387e6=_0x3823bf;return _0x53c14e(this[_0x5387e6(0x103)],_0x1edcc4['$attr'][_0x5387e6(0x11b)]??null);},get 'canEdit'(){return!!this['basePath'];},get 'affinitySummary'(){const _0xc3b3e1=_0x3823bf;return Array[_0xc3b3e1(0xf4)](this['eng']?.[_0xc3b3e1(0xf1)])&&this['eng'][_0xc3b3e1(0xf1)]['length']?this[_0xc3b3e1(0x103)][_0xc3b3e1(0xf1)][_0xc3b3e1(0x119)](',\x20'):'all\x20nodes';},get 'metaSummary'(){const _0x5720a9=_0x3823bf,_0x4c4ea5=this[_0x5720a9(0x103)]?.[_0x5720a9(0x113)]??{},_0x45b1ec=_0x5720a9(0xf9)==typeof _0x4c4ea5&&_0x4c4ea5&&!Array['isArray'](_0x4c4ea5)?Object[_0x5720a9(0x123)](_0x4c4ea5)[_0x5720a9(0x10b)]:0x0;return _0x45b1ec?_0x45b1ec+_0x5720a9(0x108)+(0x1===_0x45b1ec?'':'s'):_0x5720a9(0x115);},'syncDrafts'(_0x310fd3=null){const _0x480482=_0x3823bf,_0x1ab702=_0x310fd3??this[_0x480482(0x103)]??{};this[_0x480482(0xf2)]=!0x1!==_0x1ab702[_0x480482(0x100)],this['affinityDraft']=Array[_0x480482(0xf4)](_0x1ab702[_0x480482(0xf1)])?_0x1ab702[_0x480482(0xf1)]['join'](',\x20'):'',this['metaDraft']=_0x3bcbb5(_0x1ab702['meta'],{}),this[_0x480482(0x10d)]=null;},'cloneMeta':_0x3a51cf=>_0x3bcbb5(_0x3a51cf,{}),'toggleOpen'(){const _0x5c2c38=_0x3823bf;this[_0x5c2c38(0xfe)]=!this[_0x5c2c38(0xfe)];},async 'save'(){const _0x3dc22d=_0x3823bf;if(this[_0x3dc22d(0xf6)]&&!this['saving']){this[_0x3dc22d(0x124)]=!0x0,this[_0x3dc22d(0x10d)]=null;try{const _0x218836=await fetch(this[_0x3dc22d(0xf7)],{'method':_0x3dc22d(0xfc),'headers':{'Content-Type':_0x3dc22d(0x122)},'body':JSON[_0x3dc22d(0x116)]({'enabled':this[_0x3dc22d(0xf2)],'affinity':_0x925c1f(this[_0x3dc22d(0xf0)]),'meta':_0x3bcbb5(this['metaDraft'],{})})}),_0x1dbbc3=await _0x218836[_0x3dc22d(0x11f)]()[_0x3dc22d(0x101)](()=>({}));if(!_0x218836['ok'])throw new Error(_0x3c7a70(_0x1dbbc3,_0x3dc22d(0x120)+_0x218836[_0x3dc22d(0xf3)]+')'));const _0x296282=_0x1dbbc3?.[_0x3dc22d(0x106)]??_0x1dbbc3?.[_0x3dc22d(0x121)]??null;_0x296282&&(this[_0x3dc22d(0xff)](_0x296282),_0x1edcc4[_0x3dc22d(0x10a)](_0x3dc22d(0x105),_0x296282)),this[_0x3dc22d(0xfe)]=!0x1,_0x1edcc4[_0x3dc22d(0x10a)](_0x3dc22d(0xfd)),_0x1edcc4[_0x3dc22d(0xfb)][_0x3dc22d(0x112)]?.['toast']?.[_0x3dc22d(0x104)]?.(_0x3dc22d(0xf5));}catch(_0x443254){this[_0x3dc22d(0x10d)]=_0x443254?.[_0x3dc22d(0x10f)]||String(_0x443254),this['open']=!0x0,_0x1edcc4[_0x3dc22d(0xfb)]['shared']?.[_0x3dc22d(0xf8)]?.['error']?.(this['error']);}finally{this[_0x3dc22d(0x124)]=!0x1;}}}}),'init'(_0x3eb8be){const _0x46f726=_0x3823bf;this['syncDrafts'](_0x3eb8be[_0x46f726(0xfa)][_0x46f726(0x11a)]),_0x3eb8be[_0x46f726(0x10c)](()=>_0x3eb8be[_0x46f726(0xfa)]['engine'],()=>this['syncDrafts'](_0x3eb8be[_0x46f726(0xfa)]['engine']));},'template':_0x3823bf(0x10e)};
@@ -1 +1 @@
1
- const _0x50cc6a=_0x2144;(function(_0xe44d31,_0x1a49d2){const _0x103dc0=_0x2144,_0x44daa1=_0xe44d31();while(!![]){try{const _0x318bd2=parseInt(_0x103dc0(0x106))/0x1*(-parseInt(_0x103dc0(0x11a))/0x2)+-parseInt(_0x103dc0(0x108))/0x3+-parseInt(_0x103dc0(0x155))/0x4+-parseInt(_0x103dc0(0x121))/0x5+parseInt(_0x103dc0(0x116))/0x6*(parseInt(_0x103dc0(0x149))/0x7)+-parseInt(_0x103dc0(0x103))/0x8+-parseInt(_0x103dc0(0x115))/0x9*(-parseInt(_0x103dc0(0x10b))/0xa);if(_0x318bd2===_0x1a49d2)break;else _0x44daa1['push'](_0x44daa1['shift']());}catch(_0xfec2fe){_0x44daa1['push'](_0x44daa1['shift']());}}}(_0x3a99,0xda613));import{buildEngineBasePath as _0x385727,isEmbeddingsEngine as _0x3a780d,readableReason as _0x220c33}from'../engine-ui-utils.js';function s(_0x149dc7,_0xeb2c37=!0x1){const _0x1d96b5=_0x2144;return null==_0x149dc7?_0xeb2c37:!0x0===_0x149dc7||'true'===_0x149dc7||!0x1!==_0x149dc7&&_0x1d96b5(0x111)!==_0x149dc7&&Boolean(_0x149dc7);}export default{'tag':'engine-lifecycle-actions','attr':{'engine':{},'env':{},'compact':{},'showdelete':{}},'context':_0x382e6f=>({'busy':!0x1,'error':null,get 'eng'(){return _0x382e6f['$attr']['engine']??{};},get 'basePath'(){const _0x159244=_0x2144;return _0x385727(this['eng'],_0x382e6f[_0x159244(0x13a)][_0x159244(0x130)]??null);},get 'running'(){const _0x3535df=_0x2144;return!!this['eng'][_0x3535df(0x159)];},get 'status'(){return this['eng']['status']??'';},get 'reason'(){const _0x2ba8bb=_0x2144;return _0x220c33(this[_0x2ba8bb(0x142)][_0x2ba8bb(0x134)])??'';},get 'embeddingsMode'(){const _0x59b3d1=_0x2144;return _0x3a780d(this[_0x59b3d1(0x142)]);},get 'compactMode'(){const _0x529677=_0x2144;return s(_0x382e6f[_0x529677(0x13a)][_0x529677(0x107)],!0x1);},get 'showDelete'(){const _0xefea18=_0x2144;return s(_0x382e6f[_0xefea18(0x13a)][_0xefea18(0x12c)],!0x0);},get 'canRunLifecycle'(){const _0x1d6849=_0x2144;return!!this[_0x1d6849(0x151)];},get 'canRetry'(){const _0x3e344e=_0x2144;return!this[_0x3e344e(0x11d)]&&_0x3e344e(0x158)===this[_0x3e344e(0x15a)];},get 'canResetCursor'(){const _0x40aab2=_0x2144;return _0x40aab2(0x13b)===this[_0x40aab2(0x142)][_0x40aab2(0x120)];},get 'paused'(){const _0x5ad7bb=_0x2144;return!0x0===this[_0x5ad7bb(0x142)]?.['stats']?.[_0x5ad7bb(0x13e)]||!0x0===this[_0x5ad7bb(0x142)]?.['runtime']?.[_0x5ad7bb(0x13e)]||!0x0===this[_0x5ad7bb(0x142)]?.[_0x5ad7bb(0x13e)];},'actionStyle'(_0x772902='var(--okdb-app-fg-muted)',{subtle:_0xa9cf8b=!0x1}={}){const _0x4a9d74=_0x2144,_0x113d8d=this[_0x4a9d74(0x117)]?_0x4a9d74(0x14b):_0x4a9d74(0x10d),_0x6d30db=this[_0x4a9d74(0x117)]?_0x4a9d74(0x11e):'4px\x2010px',_0x467e1f=_0x772902[_0x4a9d74(0x148)](_0x4a9d74(0x10a));return'font-size:'+_0x113d8d+_0x4a9d74(0x11c)+_0x6d30db+';color:'+_0x772902+_0x4a9d74(0x146)+(_0xa9cf8b||this[_0x4a9d74(0x117)]?_0x467e1f?_0x4a9d74(0x129)+_0x772902+_0x4a9d74(0x132):_0x772902+'55':_0x772902)+_0x4a9d74(0x141);},async '_request'(_0x2a68be,_0x1725e8=''){const _0x3a5fed=_0x2144;if(!this[_0x3a5fed(0x151)])return null;this[_0x3a5fed(0x127)]=!0x0,this[_0x3a5fed(0x158)]=null;try{const _0x373a98=await fetch(''+this[_0x3a5fed(0x151)]+_0x1725e8,{'method':_0x2a68be}),_0x5f0f32=await _0x373a98[_0x3a5fed(0x10e)]()[_0x3a5fed(0x102)](()=>({}));if(!_0x373a98['ok'])throw new Error(_0x5f0f32?.[_0x3a5fed(0x158)]?.[_0x3a5fed(0x10f)]||(_0x2a68be+'\x20'+(_0x1725e8||''))[_0x3a5fed(0x12f)]()+_0x3a5fed(0x126));return _0x5f0f32?.['data']??_0x5f0f32?.[_0x3a5fed(0x152)]??null;}catch(_0x33f44c){return this['error']=_0x33f44c?.['message']||String(_0x33f44c),_0x382e6f[_0x3a5fed(0x10c)][_0x3a5fed(0x12d)]?.[_0x3a5fed(0x11f)]?.[_0x3a5fed(0x158)]?.(this[_0x3a5fed(0x158)]),null;}finally{this[_0x3a5fed(0x127)]=!0x1;}},'_emitUpdated'(_0x131b30,_0x279408){const _0x17939d=_0x2144;(_0x131b30||_0x17939d(0x113)===_0x279408)&&(_0x131b30&&_0x382e6f[_0x17939d(0x12e)](_0x17939d(0x109),_0x131b30),_0x382e6f[_0x17939d(0x12e)](_0x17939d(0x138),_0x279408),_0x382e6f[_0x17939d(0x12e)]('refresh'));},async 'stop'(){const _0x2bdddc=_0x2144;if(!await _0x382e6f['$ok'][_0x2bdddc(0x12d)]['modal'][_0x2bdddc(0x143)](_0x2bdddc(0x144)+this[_0x2bdddc(0x142)][_0x2bdddc(0x123)]+'\x22?'))return;const _0x288d46=await this['_request'](_0x2bdddc(0x131),_0x2bdddc(0x125));_0x288d46&&(_0x382e6f[_0x2bdddc(0x10c)]['shared']?.['toast']?.['info']?.('Engine\x20stopped'),this[_0x2bdddc(0x150)](_0x288d46,_0x2bdddc(0x13d)));},async 'start'(){const _0x14be7d=_0x2144,_0x155879=await this['_request']('POST',_0x14be7d(0x145));if(_0x155879){const _0x415cfd='error'===_0x155879['status']?_0x14be7d(0x128)+_0x155879['error']:_0x14be7d(0x14a)===_0x155879[_0x14be7d(0x15a)]?_0x14be7d(0x13c)+(_0x220c33(_0x155879[_0x14be7d(0x134)])||'not\x20eligible')+')':'Engine\x20started';_0x14be7d(0x158)===_0x155879[_0x14be7d(0x15a)]?_0x382e6f[_0x14be7d(0x10c)][_0x14be7d(0x12d)]?.['toast']?.[_0x14be7d(0x158)]?.(_0x415cfd):_0x14be7d(0x14a)===_0x155879[_0x14be7d(0x15a)]?_0x382e6f[_0x14be7d(0x10c)][_0x14be7d(0x12d)]?.[_0x14be7d(0x11f)]?.[_0x14be7d(0x147)]?.(_0x415cfd):_0x382e6f[_0x14be7d(0x10c)][_0x14be7d(0x12d)]?.['toast']?.[_0x14be7d(0x119)]?.(_0x415cfd),this[_0x14be7d(0x150)](_0x155879,'inactive'===_0x155879[_0x14be7d(0x15a)]?_0x14be7d(0x14a):_0x14be7d(0x11b));}},async 'restart'(){const _0x23cfea=_0x2144;if(this['embeddingsMode']&&!await _0x382e6f[_0x23cfea(0x10c)]['shared']['modal'][_0x23cfea(0x143)](_0x23cfea(0x105)+this[_0x23cfea(0x142)][_0x23cfea(0x123)]+'\x22?'))return;const _0x3b0294=await this[_0x23cfea(0x139)](_0x23cfea(0x131),_0x23cfea(0x136));if(_0x3b0294){const _0x9f605f=this[_0x23cfea(0x11d)]?_0x23cfea(0x158)===_0x3b0294[_0x23cfea(0x15a)]?'Restart\x20failed:\x20'+_0x3b0294[_0x23cfea(0x158)]:_0x23cfea(0x14a)===_0x3b0294[_0x23cfea(0x15a)]?_0x23cfea(0x13c)+(_0x220c33(_0x3b0294['reason'])||_0x23cfea(0x14f))+')':'Engine\x20restarted':_0x23cfea(0x14d);this['embeddingsMode']?_0x23cfea(0x158)===_0x3b0294[_0x23cfea(0x15a)]?_0x382e6f['$ok']['shared']?.['toast']?.[_0x23cfea(0x158)]?.(_0x9f605f):_0x23cfea(0x14a)===_0x3b0294[_0x23cfea(0x15a)]?_0x382e6f[_0x23cfea(0x10c)][_0x23cfea(0x12d)]?.[_0x23cfea(0x11f)]?.['info']?.(_0x9f605f):_0x382e6f['$ok'][_0x23cfea(0x12d)]?.[_0x23cfea(0x11f)]?.['success']?.(_0x9f605f):_0x382e6f[_0x23cfea(0x10c)][_0x23cfea(0x12d)]?.['toast']?.[_0x23cfea(0x119)]?.(_0x9f605f),this['_emitUpdated'](_0x3b0294,'restarted');}},async 'pause'(){const _0x2136be=_0x2144,_0x305e93=await this['_request'](_0x2136be(0x131),_0x2136be(0x114));_0x305e93&&(_0x382e6f[_0x2136be(0x10c)][_0x2136be(0x12d)]?.[_0x2136be(0x11f)]?.[_0x2136be(0x147)]?.(_0x2136be(0x154)),this[_0x2136be(0x150)](_0x305e93,_0x2136be(0x13e)));},async 'resume'(){const _0x3d1efb=_0x2144,_0x3149b7=await this['_request'](_0x3d1efb(0x131),_0x3d1efb(0x14e));_0x3149b7&&(_0x382e6f[_0x3d1efb(0x10c)][_0x3d1efb(0x12d)]?.[_0x3d1efb(0x11f)]?.[_0x3d1efb(0x119)]?.('Engine\x20resumed'),this['_emitUpdated'](_0x3149b7,_0x3d1efb(0x156)));},async 'retry'(){const _0x3c639a=_0x2144,_0x1678c4=await this[_0x3c639a(0x139)](_0x3c639a(0x131),_0x3c639a(0x137));_0x1678c4&&(_0x382e6f[_0x3c639a(0x10c)][_0x3c639a(0x12d)]?.[_0x3c639a(0x11f)]?.[_0x3c639a(0x119)]?.(_0x3c639a(0x104)),this['_emitUpdated'](_0x1678c4,_0x3c639a(0x122)));},async 'resetCursor'(){const _0x2ab746=_0x2144;if(!await _0x382e6f['$ok'][_0x2ab746(0x12d)]['modal'][_0x2ab746(0x143)]('Reset\x20cursor\x20for\x20engine\x20\x22'+this[_0x2ab746(0x142)][_0x2ab746(0x123)]+'\x22?'))return;const _0x4f698f=await this['_request']('POST',_0x2ab746(0x157));_0x4f698f&&(_0x382e6f[_0x2ab746(0x10c)][_0x2ab746(0x12d)]?.[_0x2ab746(0x11f)]?.['success']?.(_0x2ab746(0x110)),this[_0x2ab746(0x150)](_0x4f698f,_0x2ab746(0x112)));},async 'rebuild'(){const _0x111c59=_0x2144;if(!await _0x382e6f[_0x111c59(0x10c)][_0x111c59(0x12d)][_0x111c59(0x124)][_0x111c59(0x143)](_0x111c59(0x12b)+this[_0x111c59(0x142)][_0x111c59(0x123)]+'\x22?'))return;const _0x4ce37b=await this[_0x111c59(0x139)](_0x111c59(0x131),_0x111c59(0x153));_0x4ce37b&&(_0x382e6f[_0x111c59(0x10c)]['shared']?.[_0x111c59(0x11f)]?.[_0x111c59(0x119)]?.('Engine\x20rebuild\x20started'),this[_0x111c59(0x150)](_0x4ce37b,_0x111c59(0x135)));},async 'deleteEngine'(){const _0x277cf3=_0x2144;await _0x382e6f[_0x277cf3(0x10c)]['shared'][_0x277cf3(0x124)][_0x277cf3(0x143)](_0x277cf3(0x14c)+this['eng']['name']+_0x277cf3(0x12a))&&null!==await this[_0x277cf3(0x139)](_0x277cf3(0x118))&&(_0x382e6f[_0x277cf3(0x10c)][_0x277cf3(0x12d)]?.['toast']?.[_0x277cf3(0x119)]?.('Engine\x20deleted'),_0x382e6f['$dispatch']('deleted',this[_0x277cf3(0x142)]),_0x382e6f[_0x277cf3(0x12e)]('action',_0x277cf3(0x140)),_0x382e6f[_0x277cf3(0x12e)](_0x277cf3(0x133)));}}),'template':_0x50cc6a(0x13f)};function _0x2144(_0x33cb69,_0x449ce0){_0x33cb69=_0x33cb69-0x102;const _0x3a997f=_0x3a99();let _0x214440=_0x3a997f[_0x33cb69];return _0x214440;}function _0x3a99(){const _0x5d9a3e=['status','catch','6791432htVEAO','Engine\x20retry\x20started','Restart\x20engine\x20\x22','3039qyvJYd','compact','3739998yxhaJC','engine-updated','var(','153250EgdDcv','$ok','12px','json','message','Engine\x20cursor\x20reset','false','cursor-reset','delete','/pause','2763NVLxCj','92238zMJMxk','compactMode','DELETE','success','122cCEZVe','started',';padding:','embeddingsMode','2px\x207px','toast','type','336765PrneGD','retried','name','modal','/stop','\x20failed','busy','Failed\x20to\x20start:\x20','color-mix(in\x20srgb,\x20','</b>\x22?','Rebuild\x20engine\x20\x22','showdelete','shared','$dispatch','trim','env','POST','\x2033%,\x20transparent)','refresh','reason','rebuilt','/restart','/retry','action','_request','$attr','materializer','Engine\x20is\x20inactive\x20on\x20this\x20node\x20(','stopped','paused','\x0a<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20<if\x20:=\x22embeddingsMode\x20&&\x20running\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22stop()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-warning)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27■\x20Stop\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a\x20\x20<if\x20:=\x22embeddingsMode\x20&&\x20!running\x20&&\x20status\x20!==\x20\x27error\x27\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22start()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-success)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27▶\x20Start\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a\x20\x20<if\x20:=\x22embeddingsMode\x20&&\x20(status\x20===\x20\x27error\x27\x20||\x20running)\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22restart()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-orange)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27↺\x20Restart\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22!embeddingsMode\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22!paused\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22pause()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-warning)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>⏸\x20Pause</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<if\x20:=\x22paused\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22resume()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-success)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>▶\x20Resume</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22restart()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-app-fg)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20>↺\x20Restart</button>\x0a\x20\x20\x20\x20<if\x20:=\x22canRetry\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22retry()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-orange)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>↻\x20Retry</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<if\x20:=\x22eng.type\x20===\x20\x27materializer\x27\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22resetCursor()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x20||\x20!canResetCursor\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-info)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>⇤\x20Reset\x20cursor</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22rebuild()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-success)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>⟳\x20Rebuild</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22showDelete\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22deleteEngine()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-danger)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27✕\x20Delete\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a</div>\x0a','deleted',';background:transparent;border-radius:999px;line-height:1.35;','eng','confirm','Stop\x20engine\x20\x22','/start',';border:1px\x20solid\x20','info','startsWith','133XvZiAQ','inactive','11px','Delete\x20engine\x20\x22<b>','Engine\x20restarted','/resume','not\x20eligible','_emitUpdated','basePath','result','/rebuild','Engine\x20paused','7016208MeyUDV','resumed','/reset-cursor','error','isRunning'];_0x3a99=function(){return _0x5d9a3e;};return _0x3a99();}
1
+ function _0x59dd(_0x1353d9,_0x2bda88){_0x1353d9=_0x1353d9-0x15b;const _0x4dd4c3=_0x4dd4();let _0x59ddb7=_0x4dd4c3[_0x1353d9];return _0x59ddb7;}const _0x141853=_0x59dd;(function(_0x329492,_0x49c438){const _0x4d741a=_0x59dd,_0x3c6553=_0x329492();while(!![]){try{const _0x1d77d0=parseInt(_0x4d741a(0x1ad))/0x1*(parseInt(_0x4d741a(0x181))/0x2)+-parseInt(_0x4d741a(0x1b2))/0x3+-parseInt(_0x4d741a(0x15c))/0x4*(parseInt(_0x4d741a(0x1a3))/0x5)+-parseInt(_0x4d741a(0x180))/0x6*(-parseInt(_0x4d741a(0x1a5))/0x7)+parseInt(_0x4d741a(0x1ac))/0x8+parseInt(_0x4d741a(0x160))/0x9*(-parseInt(_0x4d741a(0x170))/0xa)+-parseInt(_0x4d741a(0x173))/0xb;if(_0x1d77d0===_0x49c438)break;else _0x3c6553['push'](_0x3c6553['shift']());}catch(_0x37cdb3){_0x3c6553['push'](_0x3c6553['shift']());}}}(_0x4dd4,0xb92ac));function _0x4dd4(){const _0x4706c7=['Engine\x20retry\x20started','2px\x207px','materializer','status','11px','960OokoKN','runtime','/start','4002669jfoCKc','Restart\x20failed:\x20','startsWith','var(--okdb-app-fg-muted)','12px','eng','Reset\x20cursor\x20for\x20engine\x20\x22','/rebuild','$ok','paused','Restart\x20engine\x20\x22','$attr','message','6KqcLWc','815476wlFevX','cursor-reset','Engine\x20started','confirm','delete','name','/pause','Engine\x20is\x20inactive\x20on\x20this\x20node\x20(','$dispatch','Engine\x20resumed','Engine\x20restarted','POST','data','toast','success','/reset-cursor','Delete\x20engine\x20\x22<b>','var(','error','deleted',';padding:','engine','modal','info','basePath','action','reason','showdelete','/retry','\x0a<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20<if\x20:=\x22embeddingsMode\x20&&\x20running\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22stop()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-warning)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27■\x20Stop\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a\x20\x20<if\x20:=\x22embeddingsMode\x20&&\x20!running\x20&&\x20status\x20!==\x20\x27error\x27\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22start()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-success)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27▶\x20Start\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a\x20\x20<if\x20:=\x22embeddingsMode\x20&&\x20(status\x20===\x20\x27error\x27\x20||\x20running)\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22restart()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-orange)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27↺\x20Restart\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22!embeddingsMode\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22!paused\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22pause()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-warning)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>⏸\x20Pause</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<if\x20:=\x22paused\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22resume()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-success)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>▶\x20Resume</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22restart()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-app-fg)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20>↺\x20Restart</button>\x0a\x20\x20\x20\x20<if\x20:=\x22canRetry\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22retry()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-orange)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>↻\x20Retry</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<if\x20:=\x22eng.type\x20===\x20\x27materializer\x27\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22resetCursor()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x20||\x20!canResetCursor\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-info)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>⇤\x20Reset\x20cursor</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22rebuild()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-success)\x27,\x20{\x20subtle:\x20true\x20})\x22\x0a\x20\x20\x20\x20\x20\x20>⟳\x20Rebuild</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22showDelete\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22deleteEngine()\x22\x0a\x20\x20\x20\x20\x20\x20:disabled=\x22busy\x20||\x20!canRunLifecycle\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22actionStyle(\x27var(--okdb-danger)\x27)\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20{{\x20busy\x20?\x20\x27…\x27\x20:\x20\x27✕\x20Delete\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</if>\x0a</div>\x0a','DELETE','engine-updated','/restart','busy','15icAEVP','/resume','10157063KiUnDn','not\x20eligible','restarted','color-mix(in\x20srgb,\x20','Engine\x20paused','_request','embeddingsMode','10693136ZKLxmu','2lHcirv','shared','_emitUpdated','env','Rebuild\x20engine\x20\x22','3466329sXPgZc',';color:','catch','490476kwAFWN','\x20failed','compactMode','result','89766ZsEXRb','started','Stop\x20engine\x20\x22','stopped','</b>\x22?','Engine\x20rebuild\x20started',';border:1px\x20solid\x20','4px\x2010px','resumed','type','inactive'];_0x4dd4=function(){return _0x4706c7;};return _0x4dd4();}import{buildEngineBasePath as _0x5487a8,isEmbeddingsEngine as _0x13d928,readableReason as _0x250075}from'../engine-ui-utils.js';function s(_0x124a51,_0x10d730=!0x1){return null==_0x124a51?_0x10d730:!0x0===_0x124a51||'true'===_0x124a51||!0x1!==_0x124a51&&'false'!==_0x124a51&&Boolean(_0x124a51);}export default{'tag':'engine-lifecycle-actions','attr':{'engine':{},'env':{},'compact':{},'showdelete':{}},'context':_0x39114c=>({'busy':!0x1,'error':null,get 'eng'(){const _0x10b8c9=_0x59dd;return _0x39114c[_0x10b8c9(0x17e)][_0x10b8c9(0x196)]??{};},get 'basePath'(){const _0x1c4700=_0x59dd;return _0x5487a8(this[_0x1c4700(0x178)],_0x39114c[_0x1c4700(0x17e)][_0x1c4700(0x1b0)]??null);},get 'running'(){const _0x5ad77c=_0x59dd;return!!this[_0x5ad77c(0x178)]['isRunning'];},get 'status'(){const _0x2f75d6=_0x59dd;return this[_0x2f75d6(0x178)][_0x2f75d6(0x16e)]??'';},get 'reason'(){const _0x3526c3=_0x59dd;return _0x250075(this[_0x3526c3(0x178)][_0x3526c3(0x19b)])??'';},get 'embeddingsMode'(){const _0x61adc6=_0x59dd;return _0x13d928(this[_0x61adc6(0x178)]);},get 'compactMode'(){return s(_0x39114c['$attr']['compact'],!0x1);},get 'showDelete'(){const _0x191430=_0x59dd;return s(_0x39114c[_0x191430(0x17e)][_0x191430(0x19c)],!0x0);},get 'canRunLifecycle'(){const _0x4d2916=_0x59dd;return!!this[_0x4d2916(0x199)];},get 'canRetry'(){const _0x1f7a64=_0x59dd;return!this[_0x1f7a64(0x1ab)]&&_0x1f7a64(0x193)===this[_0x1f7a64(0x16e)];},get 'canResetCursor'(){const _0x22aa81=_0x59dd;return _0x22aa81(0x16d)===this[_0x22aa81(0x178)][_0x22aa81(0x169)];},get 'paused'(){const _0x1a625b=_0x59dd;return!0x0===this[_0x1a625b(0x178)]?.['stats']?.[_0x1a625b(0x17c)]||!0x0===this[_0x1a625b(0x178)]?.[_0x1a625b(0x171)]?.[_0x1a625b(0x17c)]||!0x0===this[_0x1a625b(0x178)]?.[_0x1a625b(0x17c)];},'actionStyle'(_0x2b388e=_0x141853(0x176),{subtle:_0x51b3e9=!0x1}={}){const _0x531dfa=_0x141853,_0x30f9e6=this[_0x531dfa(0x15e)]?_0x531dfa(0x16f):_0x531dfa(0x177),_0x2b5ffa=this[_0x531dfa(0x15e)]?_0x531dfa(0x16c):_0x531dfa(0x167),_0xe753f8=_0x2b388e[_0x531dfa(0x175)](_0x531dfa(0x192));return'font-size:'+_0x30f9e6+_0x531dfa(0x195)+_0x2b5ffa+_0x531dfa(0x1b3)+_0x2b388e+_0x531dfa(0x166)+(_0x51b3e9||this[_0x531dfa(0x15e)]?_0xe753f8?_0x531dfa(0x1a8)+_0x2b388e+'\x2033%,\x20transparent)':_0x2b388e+'55':_0x2b388e)+';background:transparent;border-radius:999px;line-height:1.35;';},async '_request'(_0x5af7e4,_0x183852=''){const _0x226bdb=_0x141853;if(!this[_0x226bdb(0x199)])return null;this[_0x226bdb(0x1a2)]=!0x0,this[_0x226bdb(0x193)]=null;try{const _0x2b404c=await fetch(''+this[_0x226bdb(0x199)]+_0x183852,{'method':_0x5af7e4}),_0x37e637=await _0x2b404c['json']()[_0x226bdb(0x15b)](()=>({}));if(!_0x2b404c['ok'])throw new Error(_0x37e637?.[_0x226bdb(0x193)]?.[_0x226bdb(0x17f)]||(_0x5af7e4+'\x20'+(_0x183852||''))['trim']()+_0x226bdb(0x15d));return _0x37e637?.[_0x226bdb(0x18d)]??_0x37e637?.[_0x226bdb(0x15f)]??null;}catch(_0x2cb8db){return this[_0x226bdb(0x193)]=_0x2cb8db?.['message']||String(_0x2cb8db),_0x39114c[_0x226bdb(0x17b)][_0x226bdb(0x1ae)]?.[_0x226bdb(0x18e)]?.[_0x226bdb(0x193)]?.(this['error']),null;}finally{this[_0x226bdb(0x1a2)]=!0x1;}},'_emitUpdated'(_0x26967e,_0x2f258f){const _0x8d201=_0x141853;(_0x26967e||_0x8d201(0x185)===_0x2f258f)&&(_0x26967e&&_0x39114c[_0x8d201(0x189)](_0x8d201(0x1a0),_0x26967e),_0x39114c[_0x8d201(0x189)](_0x8d201(0x19a),_0x2f258f),_0x39114c['$dispatch']('refresh'));},async 'stop'(){const _0x3c4dc0=_0x141853;if(!await _0x39114c[_0x3c4dc0(0x17b)][_0x3c4dc0(0x1ae)]['modal'][_0x3c4dc0(0x184)](_0x3c4dc0(0x162)+this[_0x3c4dc0(0x178)][_0x3c4dc0(0x186)]+'\x22?'))return;const _0x2d8579=await this[_0x3c4dc0(0x1aa)]('POST','/stop');_0x2d8579&&(_0x39114c[_0x3c4dc0(0x17b)][_0x3c4dc0(0x1ae)]?.[_0x3c4dc0(0x18e)]?.[_0x3c4dc0(0x198)]?.('Engine\x20stopped'),this['_emitUpdated'](_0x2d8579,_0x3c4dc0(0x163)));},async 'start'(){const _0x2bed89=_0x141853,_0x46a052=await this[_0x2bed89(0x1aa)](_0x2bed89(0x18c),_0x2bed89(0x172));if(_0x46a052){const _0x1b3980=_0x2bed89(0x193)===_0x46a052[_0x2bed89(0x16e)]?'Failed\x20to\x20start:\x20'+_0x46a052[_0x2bed89(0x193)]:_0x2bed89(0x16a)===_0x46a052[_0x2bed89(0x16e)]?_0x2bed89(0x188)+(_0x250075(_0x46a052[_0x2bed89(0x19b)])||_0x2bed89(0x1a6))+')':_0x2bed89(0x183);_0x2bed89(0x193)===_0x46a052[_0x2bed89(0x16e)]?_0x39114c[_0x2bed89(0x17b)][_0x2bed89(0x1ae)]?.[_0x2bed89(0x18e)]?.[_0x2bed89(0x193)]?.(_0x1b3980):_0x2bed89(0x16a)===_0x46a052['status']?_0x39114c[_0x2bed89(0x17b)][_0x2bed89(0x1ae)]?.['toast']?.[_0x2bed89(0x198)]?.(_0x1b3980):_0x39114c['$ok'][_0x2bed89(0x1ae)]?.[_0x2bed89(0x18e)]?.[_0x2bed89(0x18f)]?.(_0x1b3980),this[_0x2bed89(0x1af)](_0x46a052,_0x2bed89(0x16a)===_0x46a052[_0x2bed89(0x16e)]?_0x2bed89(0x16a):_0x2bed89(0x161));}},async 'restart'(){const _0x21210b=_0x141853;if(this[_0x21210b(0x1ab)]&&!await _0x39114c[_0x21210b(0x17b)]['shared'][_0x21210b(0x197)][_0x21210b(0x184)](_0x21210b(0x17d)+this['eng'][_0x21210b(0x186)]+'\x22?'))return;const _0x19feca=await this[_0x21210b(0x1aa)](_0x21210b(0x18c),_0x21210b(0x1a1));if(_0x19feca){const _0x3980d1=this[_0x21210b(0x1ab)]?'error'===_0x19feca['status']?_0x21210b(0x174)+_0x19feca[_0x21210b(0x193)]:_0x21210b(0x16a)===_0x19feca[_0x21210b(0x16e)]?'Engine\x20is\x20inactive\x20on\x20this\x20node\x20('+(_0x250075(_0x19feca[_0x21210b(0x19b)])||'not\x20eligible')+')':'Engine\x20restarted':_0x21210b(0x18b);this['embeddingsMode']?'error'===_0x19feca[_0x21210b(0x16e)]?_0x39114c[_0x21210b(0x17b)]['shared']?.[_0x21210b(0x18e)]?.[_0x21210b(0x193)]?.(_0x3980d1):_0x21210b(0x16a)===_0x19feca[_0x21210b(0x16e)]?_0x39114c[_0x21210b(0x17b)][_0x21210b(0x1ae)]?.[_0x21210b(0x18e)]?.[_0x21210b(0x198)]?.(_0x3980d1):_0x39114c['$ok'][_0x21210b(0x1ae)]?.[_0x21210b(0x18e)]?.[_0x21210b(0x18f)]?.(_0x3980d1):_0x39114c[_0x21210b(0x17b)]['shared']?.['toast']?.[_0x21210b(0x18f)]?.(_0x3980d1),this['_emitUpdated'](_0x19feca,_0x21210b(0x1a7));}},async 'pause'(){const _0x4d61ae=_0x141853,_0x1247f7=await this[_0x4d61ae(0x1aa)](_0x4d61ae(0x18c),_0x4d61ae(0x187));_0x1247f7&&(_0x39114c[_0x4d61ae(0x17b)][_0x4d61ae(0x1ae)]?.[_0x4d61ae(0x18e)]?.[_0x4d61ae(0x198)]?.(_0x4d61ae(0x1a9)),this['_emitUpdated'](_0x1247f7,_0x4d61ae(0x17c)));},async 'resume'(){const _0x16f270=_0x141853,_0x7b6811=await this['_request'](_0x16f270(0x18c),_0x16f270(0x1a4));_0x7b6811&&(_0x39114c[_0x16f270(0x17b)][_0x16f270(0x1ae)]?.[_0x16f270(0x18e)]?.[_0x16f270(0x18f)]?.(_0x16f270(0x18a)),this[_0x16f270(0x1af)](_0x7b6811,_0x16f270(0x168)));},async 'retry'(){const _0x1f4291=_0x141853,_0x5b9e6a=await this[_0x1f4291(0x1aa)](_0x1f4291(0x18c),_0x1f4291(0x19d));_0x5b9e6a&&(_0x39114c['$ok']['shared']?.[_0x1f4291(0x18e)]?.[_0x1f4291(0x18f)]?.(_0x1f4291(0x16b)),this['_emitUpdated'](_0x5b9e6a,'retried'));},async 'resetCursor'(){const _0x1ffb83=_0x141853;if(!await _0x39114c[_0x1ffb83(0x17b)][_0x1ffb83(0x1ae)][_0x1ffb83(0x197)][_0x1ffb83(0x184)](_0x1ffb83(0x179)+this[_0x1ffb83(0x178)][_0x1ffb83(0x186)]+'\x22?'))return;const _0x8ff791=await this['_request'](_0x1ffb83(0x18c),_0x1ffb83(0x190));_0x8ff791&&(_0x39114c['$ok'][_0x1ffb83(0x1ae)]?.[_0x1ffb83(0x18e)]?.[_0x1ffb83(0x18f)]?.('Engine\x20cursor\x20reset'),this[_0x1ffb83(0x1af)](_0x8ff791,_0x1ffb83(0x182)));},async 'rebuild'(){const _0x29e5a9=_0x141853;if(!await _0x39114c[_0x29e5a9(0x17b)][_0x29e5a9(0x1ae)][_0x29e5a9(0x197)][_0x29e5a9(0x184)](_0x29e5a9(0x1b1)+this['eng'][_0x29e5a9(0x186)]+'\x22?'))return;const _0x5820de=await this[_0x29e5a9(0x1aa)]('POST',_0x29e5a9(0x17a));_0x5820de&&(_0x39114c[_0x29e5a9(0x17b)][_0x29e5a9(0x1ae)]?.[_0x29e5a9(0x18e)]?.['success']?.(_0x29e5a9(0x165)),this[_0x29e5a9(0x1af)](_0x5820de,'rebuilt'));},async 'deleteEngine'(){const _0x2d0ea3=_0x141853;await _0x39114c[_0x2d0ea3(0x17b)][_0x2d0ea3(0x1ae)][_0x2d0ea3(0x197)][_0x2d0ea3(0x184)](_0x2d0ea3(0x191)+this[_0x2d0ea3(0x178)][_0x2d0ea3(0x186)]+_0x2d0ea3(0x164))&&null!==await this[_0x2d0ea3(0x1aa)](_0x2d0ea3(0x19f))&&(_0x39114c[_0x2d0ea3(0x17b)][_0x2d0ea3(0x1ae)]?.[_0x2d0ea3(0x18e)]?.[_0x2d0ea3(0x18f)]?.('Engine\x20deleted'),_0x39114c[_0x2d0ea3(0x189)](_0x2d0ea3(0x194),this[_0x2d0ea3(0x178)]),_0x39114c[_0x2d0ea3(0x189)](_0x2d0ea3(0x19a),'deleted'),_0x39114c[_0x2d0ea3(0x189)]('refresh'));}}),'template':_0x141853(0x19e)};
@@ -1 +1 @@
1
- const _0x5184f1=_0x3fc0;function _0x4522(){const _0x403ec5=['1735920nIqEBH','refreshDisabled','\x0a<div\x20:style=\x22rootStyle\x22>\x0a\x20\x20<div\x20style=\x22display:flex;align-items:flex-start;gap:12px;justify-content:space-between;flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;flex-direction:column;gap:6px;min-width:0;flex:1;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27width:10px;height:10px;border-radius:50%;background:\x27\x20+\x20tone\x20+\x20\x27;flex-shrink:0;\x27\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:18px;font-weight:700;color:var(--okdb-app-fg);word-break:break-word;min-width:0;\x22>{{\x20titleLabel\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20\x27\x20+\x20alpha(typeColorValue,27)\x20+\x20\x27;color:\x27\x20+\x20typeColorValue\x20+\x20\x27;text-transform:uppercase;letter-spacing:.05em;font-size:11px;\x27\x22>{{\x20typeLabelValue\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22showStatusBadge\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20\x27\x20+\x20alpha(tone,33)\x20+\x20\x27;color:\x27\x20+\x20tone\x20+\x20\x27;font-size:11px;\x27\x22>{{\x20statusLabel\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:12px;color:#8aa7bc;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22showReasonBadge\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-app-fg-subtle)\x2033%,\x20transparent);color:var(--okdb-app-fg-muted);\x22>{{\x20reasonLabel\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22envName\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);color:var(--okdb-app-fg-muted);\x22>env:\x20{{\x20envName\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22canOpenPipeline\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openPipeline()\x22\x20:title=\x22pipelineTitleValue\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent-2)\x2033%,\x20transparent);color:var(--okdb-accent-2);background:color-mix(in\x20srgb,\x20var(--okdb-accent-2)\x207%,\x20transparent);cursor:pointer;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20↗\x20{{\x20pipelineText\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22extraBadges\x22\x20let:item=\x22badge\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22badgeStyle(badge)\x22\x20:title=\x22badge.title\x20||\x20badge.text\x20||\x20badge.label\x22>{{\x20badge.text\x20||\x20badge.label\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22eng.key\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;color:var(--okdb-app-fg-subtle);font-family:monospace;word-break:break-all;\x22>{{\x20eng.key\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;\x22>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22showRefreshAction\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clickRefresh()\x22\x20:disabled=\x22refreshBusyValue\x20||\x20refreshDisabledValue\x22\x20style=\x22opacity:.8;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20refreshBusyValue\x20?\x20\x27…\x27\x20:\x20refreshLabelValue\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22showLifecycleActions\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<engine-lifecycle-actions\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:env=\x22envName\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@deleted=\x22handleDeleted($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22showErrorCard\x20&&\x20eng.error\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22alert\x20alert--error\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-weight:600;margin-bottom:4px;\x22>Engine\x20error</div>\x0a\x20\x20\x20\x20\x20\x20<div>{{\x20eng.error\x20}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<slot\x20/>\x0a\x0a\x20\x20<if\x20:=\x22showDeclarationEditor\x22>\x0a\x20\x20\x20\x20<engine-declaration-editor\x0a\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20:env=\x22envName\x22\x0a\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20</if>\x0a</div>\x0a','function','engine-updated','engine','1960644oOWXXF','badges','var(--okdb-accent)','$attr','statusLabel','onRefresh','var(--okdb-app-fg-muted)','32PsPhMH','meta','showDeclaration','isRunning','reason','error','24BuLGvW',';color:','online','padStart','flex-direction:column','refresh','height:100%','gap:16px','inactive','pipelineLabel','toString','typeLabel','↻\x20Refresh','isArray','26488dEylKJ','filter','View\x20pipeline','color-mix(in\x20srgb,\x20','background','refreshDisabledValue','showLifecycle','false','engine-panel-shell','var(','type','startsWith','showRefresh','pipeline','View\x20pipeline:\x20','onPipeline','refreshBusy','showRefreshAction','alpha','min-width:0','status','3075793peEBUx','pipelineText','3356200XuQzjZ','eng','reasonLabel','true','round','$dispatch','stopped','pipelineTitle','display:flex','showError','90264pVRKSk','840710AnpJme'];_0x4522=function(){return _0x403ec5;};return _0x4522();}(function(_0x55265f,_0x54e956){const _0x1c2489=_0x3fc0,_0x13656b=_0x55265f();while(!![]){try{const _0x2e7155=parseInt(_0x1c2489(0x19b))/0x1*(parseInt(_0x1c2489(0x187))/0x2)+parseInt(_0x1c2489(0x178))/0x3*(-parseInt(_0x1c2489(0x18d))/0x4)+-parseInt(_0x1c2489(0x179))/0x5+parseInt(_0x1c2489(0x180))/0x6+parseInt(_0x1c2489(0x16c))/0x7+-parseInt(_0x1c2489(0x16e))/0x8+-parseInt(_0x1c2489(0x17a))/0x9;if(_0x2e7155===_0x54e956)break;else _0x13656b['push'](_0x13656b['shift']());}catch(_0x3201ee){_0x13656b['push'](_0x13656b['shift']());}}}(_0x4522,0x37e2a));import _0x1e59e0 from'./engine-declaration-editor.ok.js';import _0x51155e from'./engine-lifecycle-actions.ok.js';function _0x3fc0(_0x26b036,_0x22b2a4){_0x26b036=_0x26b036-0x163;const _0x452242=_0x4522();let _0x3fc0b6=_0x452242[_0x26b036];return _0x3fc0b6;}import{readableReason as _0xd2a7c0,resolveEngineEnvName as _0x2e3e2d,statusTone as _0x19cc5e}from'../engine-ui-utils.js';function i(_0x108a32,_0x2f3656=!0x1){const _0x5b0004=_0x3fc0;return null==_0x108a32?_0x2f3656:!0x0===_0x108a32||_0x5b0004(0x171)===_0x108a32||!0x1!==_0x108a32&&_0x5b0004(0x1a2)!==_0x108a32&&Boolean(_0x108a32);}export default{'tag':_0x5184f1(0x1a3),'dependencies':[_0x1e59e0,_0x51155e],'attr':{'engine':{},'env':{},'title':{},'typeLabel':{},'typeColor':{},'badges':{},'showRefresh':{},'refreshLabel':{},'refreshBusy':{},'refreshDisabled':{},'onRefresh':{},'onPipeline':{},'pipelineLabel':{},'pipelineTitle':{},'showDeclaration':{},'showLifecycle':{},'showError':{},'fill':{}},'context':_0x5c4fe9=>({get 'eng'(){const _0x32b4db=_0x5184f1;return _0x5c4fe9[_0x32b4db(0x183)][_0x32b4db(0x17f)]??{};},get 'envName'(){const _0x4918a0=_0x5184f1;return _0x2e3e2d(this[_0x4918a0(0x16f)],_0x5c4fe9[_0x4918a0(0x183)]['env']??null);},get 'titleLabel'(){const _0x266218=_0x5184f1;return _0x5c4fe9['$attr']['title']??this[_0x266218(0x16f)]['name']??this[_0x266218(0x16f)]['key']??'Engine';},get 'typeLabelValue'(){const _0x3d4a83=_0x5184f1;return _0x5c4fe9[_0x3d4a83(0x183)][_0x3d4a83(0x198)]??this[_0x3d4a83(0x16f)][_0x3d4a83(0x1a5)]??'engine';},get 'typeColorValue'(){const _0x71b854=_0x5184f1;return _0x5c4fe9['$attr']['typeColor']??_0x71b854(0x182);},'alpha':(_0x259de0,_0x378e91)=>_0x259de0[_0x5184f1(0x1a6)](_0x5184f1(0x1a4))?_0x5184f1(0x19e)+_0x259de0+'\x20'+_0x378e91+'%,\x20transparent)':''+_0x259de0+Math[_0x5184f1(0x172)](2.55*_0x378e91)[_0x5184f1(0x197)](0x10)[_0x5184f1(0x190)](0x2,'0'),get 'tone'(){const _0x3d10fa=_0x5184f1;return _0x19cc5e(this[_0x3d10fa(0x16f)]);},get 'statusLabel'(){const _0x1b1458=_0x5184f1;return _0x1b1458(0x18c)===this[_0x1b1458(0x16f)][_0x1b1458(0x16b)]?'error':_0x1b1458(0x195)===this[_0x1b1458(0x16f)][_0x1b1458(0x16b)]?'inactive':this['eng'][_0x1b1458(0x18a)]||_0x1b1458(0x18f)===this['eng'][_0x1b1458(0x16b)]?'running':this[_0x1b1458(0x16f)][_0x1b1458(0x16b)]||_0x1b1458(0x174);},get 'showStatusBadge'(){const _0x572e1f=_0x5184f1;return!(this[_0x572e1f(0x16f)]['isRunning']||_0x572e1f(0x18f)===this[_0x572e1f(0x16f)]['status']);},get 'reasonLabel'(){const _0x73b104=_0x5184f1;return _0xd2a7c0(this['eng'][_0x73b104(0x18b)]);},get 'showReasonBadge'(){const _0x5afc96=_0x5184f1;return!!this[_0x5afc96(0x170)]&&this[_0x5afc96(0x170)]!==this[_0x5afc96(0x184)];},get 'extraBadges'(){const _0x5c5c87=_0x5184f1;return Array[_0x5c5c87(0x19a)](_0x5c4fe9['$attr']['badges'])?_0x5c4fe9[_0x5c5c87(0x183)][_0x5c5c87(0x181)][_0x5c5c87(0x19c)](Boolean):[];},get 'showRefreshAction'(){const _0x2f263a=_0x5184f1;return i(_0x5c4fe9[_0x2f263a(0x183)][_0x2f263a(0x163)],!0x1)&&_0x2f263a(0x17d)==typeof _0x5c4fe9[_0x2f263a(0x183)][_0x2f263a(0x185)];},get 'refreshLabelValue'(){const _0x1db158=_0x5184f1;return _0x5c4fe9['$attr']['refreshLabel']??_0x1db158(0x199);},get 'refreshBusyValue'(){const _0x37090e=_0x5184f1;return i(_0x5c4fe9[_0x37090e(0x183)][_0x37090e(0x167)],!0x1);},get 'refreshDisabledValue'(){const _0xa0723f=_0x5184f1;return i(_0x5c4fe9['$attr'][_0xa0723f(0x17b)],!0x1);},get 'showDeclarationEditor'(){const _0x5cf8fb=_0x5184f1;return i(_0x5c4fe9[_0x5cf8fb(0x183)][_0x5cf8fb(0x189)],!0x0);},get 'showLifecycleActions'(){const _0x1f4fb5=_0x5184f1;return i(_0x5c4fe9[_0x1f4fb5(0x183)][_0x1f4fb5(0x1a1)],!0x0);},get 'showErrorCard'(){const _0x2cc131=_0x5184f1;return i(_0x5c4fe9[_0x2cc131(0x183)][_0x2cc131(0x177)],!0x0);},get 'pipelineText'(){const _0x1e6910=_0x5184f1;return _0x5c4fe9[_0x1e6910(0x183)][_0x1e6910(0x196)]??this['eng'][_0x1e6910(0x188)]?.[_0x1e6910(0x164)]??null;},get 'canOpenPipeline'(){const _0x1488e6=_0x5184f1;return!!this[_0x1488e6(0x16d)]&&_0x1488e6(0x17d)==typeof _0x5c4fe9[_0x1488e6(0x183)][_0x1488e6(0x166)];},get 'pipelineTitleValue'(){const _0xf0eedc=_0x5184f1;return _0x5c4fe9[_0xf0eedc(0x183)][_0xf0eedc(0x175)]??(this[_0xf0eedc(0x16d)]?_0xf0eedc(0x165)+this[_0xf0eedc(0x16d)]:_0xf0eedc(0x19d));},get 'rootStyle'(){const _0x569851=_0x5184f1,_0x311ce1=i(_0x5c4fe9[_0x569851(0x183)]['fill'],!0x1);return[_0x569851(0x176),_0x569851(0x191),_0x569851(0x194),_0x569851(0x16a),_0x311ce1?_0x569851(0x193):'',_0x311ce1?'min-height:0':''][_0x569851(0x19c)](Boolean)['join'](';')+';';},'badgeStyle'(_0x3be42f=null){const _0x3110b2=_0x5184f1;if(!_0x3be42f)return'';const _0x4d8985=_0x3be42f['color']??_0x3110b2(0x186);return'padding:2px\x208px;border-radius:999px;font-size:11px;border:1px\x20solid\x20'+(_0x3be42f['borderColor']??this[_0x3110b2(0x169)](_0x4d8985,0x21))+_0x3110b2(0x18e)+_0x4d8985+';background:'+(_0x3be42f[_0x3110b2(0x19f)]??this['alpha'](_0x4d8985,0x7))+';';},async 'clickRefresh'(){const _0x31bdf9=_0x5184f1;!this[_0x31bdf9(0x168)]||this['refreshBusyValue']||this[_0x31bdf9(0x1a0)]||(await _0x5c4fe9[_0x31bdf9(0x183)][_0x31bdf9(0x185)]?.(),_0x5c4fe9['$dispatch']('refresh'));},async 'handleRefresh'(){const _0x27c7ee=_0x5184f1;await _0x5c4fe9[_0x27c7ee(0x183)][_0x27c7ee(0x185)]?.(),_0x5c4fe9['$dispatch'](_0x27c7ee(0x192));},'handleEngineUpdated'(_0x3f4221){const _0x3e4eaf=_0x5184f1;_0x5c4fe9[_0x3e4eaf(0x173)](_0x3e4eaf(0x17e),_0x3f4221);},'handleDeleted'(_0x29da19){const _0x171726=_0x5184f1;_0x5c4fe9[_0x171726(0x173)]('deleted',_0x29da19);},'openPipeline'(){const _0x24f12d=_0x5184f1;_0x5c4fe9[_0x24f12d(0x183)][_0x24f12d(0x166)]?.(this[_0x24f12d(0x16d)]);}}),'template':_0x5184f1(0x17c)};
1
+ const _0x874524=_0x55a4;(function(_0x6e8e3e,_0x36affc){const _0xdd1068=_0x55a4,_0xfa4aa7=_0x6e8e3e();while(!![]){try{const _0x466f61=parseInt(_0xdd1068(0x13e))/0x1+-parseInt(_0xdd1068(0x147))/0x2+-parseInt(_0xdd1068(0x14c))/0x3*(parseInt(_0xdd1068(0x140))/0x4)+-parseInt(_0xdd1068(0x13f))/0x5*(parseInt(_0xdd1068(0x157))/0x6)+parseInt(_0xdd1068(0x144))/0x7+parseInt(_0xdd1068(0x141))/0x8+-parseInt(_0xdd1068(0x161))/0x9*(-parseInt(_0xdd1068(0x13a))/0xa);if(_0x466f61===_0x36affc)break;else _0xfa4aa7['push'](_0xfa4aa7['shift']());}catch(_0x2b49b4){_0xfa4aa7['push'](_0xfa4aa7['shift']());}}}(_0x5aef,0x3f934));function _0x55a4(_0x286482,_0x3116c1){_0x286482=_0x286482-0x132;const _0x5aefc4=_0x5aef();let _0x55a46d=_0x5aefc4[_0x286482];return _0x55a46d;}import _0x50313e from'./engine-declaration-editor.ok.js';import _0x597853 from'./engine-lifecycle-actions.ok.js';import{readableReason as _0x115eb8,resolveEngineEnvName as _0x4e77d9,statusTone as _0x1738cd}from'../engine-ui-utils.js';function i(_0x2cb9c8,_0xcffa4=!0x1){const _0x5de085=_0x55a4;return null==_0x2cb9c8?_0xcffa4:!0x0===_0x2cb9c8||_0x5de085(0x15c)===_0x2cb9c8||!0x1!==_0x2cb9c8&&'false'!==_0x2cb9c8&&Boolean(_0x2cb9c8);}export default{'tag':_0x874524(0x14f),'dependencies':[_0x50313e,_0x597853],'attr':{'engine':{},'env':{},'title':{},'typeLabel':{},'typeColor':{},'badges':{},'showRefresh':{},'refreshLabel':{},'refreshBusy':{},'refreshDisabled':{},'onRefresh':{},'onPipeline':{},'pipelineLabel':{},'pipelineTitle':{},'showDeclaration':{},'showLifecycle':{},'showError':{},'fill':{}},'context':_0x4aead2=>({get 'eng'(){const _0x4661cf=_0x874524;return _0x4aead2[_0x4661cf(0x156)][_0x4661cf(0x177)]??{};},get 'envName'(){const _0x7f8531=_0x874524;return _0x4e77d9(this[_0x7f8531(0x160)],_0x4aead2[_0x7f8531(0x156)][_0x7f8531(0x13c)]??null);},get 'titleLabel'(){const _0x29c1b4=_0x874524;return _0x4aead2['$attr'][_0x29c1b4(0x162)]??this['eng'][_0x29c1b4(0x165)]??this[_0x29c1b4(0x160)][_0x29c1b4(0x139)]??_0x29c1b4(0x14b);},get 'typeLabelValue'(){const _0x487584=_0x874524;return _0x4aead2[_0x487584(0x156)][_0x487584(0x16c)]??this['eng'][_0x487584(0x168)]??'engine';},get 'typeColorValue'(){const _0x3a179c=_0x874524;return _0x4aead2[_0x3a179c(0x156)]['typeColor']??_0x3a179c(0x16f);},'alpha':(_0xb40531,_0xb2095b)=>_0xb40531[_0x874524(0x136)](_0x874524(0x174))?'color-mix(in\x20srgb,\x20'+_0xb40531+'\x20'+_0xb2095b+_0x874524(0x178):''+_0xb40531+Math[_0x874524(0x172)](2.55*_0xb2095b)[_0x874524(0x167)](0x10)[_0x874524(0x169)](0x2,'0'),get 'tone'(){const _0x4b3c4d=_0x874524;return _0x1738cd(this[_0x4b3c4d(0x160)]);},get 'statusLabel'(){const _0x5d77c2=_0x874524;return _0x5d77c2(0x166)===this[_0x5d77c2(0x160)][_0x5d77c2(0x171)]?'error':'inactive'===this[_0x5d77c2(0x160)][_0x5d77c2(0x171)]?_0x5d77c2(0x15b):this[_0x5d77c2(0x160)][_0x5d77c2(0x133)]||_0x5d77c2(0x145)===this[_0x5d77c2(0x160)]['status']?_0x5d77c2(0x163):this[_0x5d77c2(0x160)][_0x5d77c2(0x171)]||'stopped';},get 'showStatusBadge'(){const _0x2e25e3=_0x874524;return!(this[_0x2e25e3(0x160)][_0x2e25e3(0x133)]||_0x2e25e3(0x145)===this['eng'][_0x2e25e3(0x171)]);},get 'reasonLabel'(){const _0x27348f=_0x874524;return _0x115eb8(this[_0x27348f(0x160)][_0x27348f(0x134)]);},get 'showReasonBadge'(){return!!this['reasonLabel']&&this['reasonLabel']!==this['statusLabel'];},get 'extraBadges'(){const _0x41d7f5=_0x874524;return Array[_0x41d7f5(0x13b)](_0x4aead2[_0x41d7f5(0x156)][_0x41d7f5(0x176)])?_0x4aead2[_0x41d7f5(0x156)][_0x41d7f5(0x176)][_0x41d7f5(0x170)](Boolean):[];},get 'showRefreshAction'(){const _0x255930=_0x874524;return i(_0x4aead2['$attr']['showRefresh'],!0x1)&&'function'==typeof _0x4aead2[_0x255930(0x156)][_0x255930(0x179)];},get 'refreshLabelValue'(){const _0x360e7b=_0x874524;return _0x4aead2[_0x360e7b(0x156)]['refreshLabel']??_0x360e7b(0x150);},get 'refreshBusyValue'(){const _0x1853e8=_0x874524;return i(_0x4aead2[_0x1853e8(0x156)][_0x1853e8(0x142)],!0x1);},get 'refreshDisabledValue'(){const _0x2acccf=_0x874524;return i(_0x4aead2[_0x2acccf(0x156)][_0x2acccf(0x15f)],!0x1);},get 'showDeclarationEditor'(){const _0x63d551=_0x874524;return i(_0x4aead2[_0x63d551(0x156)][_0x63d551(0x155)],!0x0);},get 'showLifecycleActions'(){const _0x824594=_0x874524;return i(_0x4aead2[_0x824594(0x156)][_0x824594(0x173)],!0x0);},get 'showErrorCard'(){const _0x10a1be=_0x874524;return i(_0x4aead2['$attr'][_0x10a1be(0x14d)],!0x0);},get 'pipelineText'(){const _0x21e043=_0x874524;return _0x4aead2['$attr'][_0x21e043(0x17a)]??this['eng']['meta']?.[_0x21e043(0x138)]??null;},get 'canOpenPipeline'(){const _0xb7f8ef=_0x874524;return!!this['pipelineText']&&_0xb7f8ef(0x146)==typeof _0x4aead2[_0xb7f8ef(0x156)][_0xb7f8ef(0x135)];},get 'pipelineTitleValue'(){const _0x5b2f4b=_0x874524;return _0x4aead2['$attr']['pipelineTitle']??(this[_0x5b2f4b(0x16e)]?_0x5b2f4b(0x14a)+this[_0x5b2f4b(0x16e)]:_0x5b2f4b(0x153));},get 'rootStyle'(){const _0x3a0bbe=_0x874524,_0x2dde33=i(_0x4aead2[_0x3a0bbe(0x156)][_0x3a0bbe(0x164)],!0x1);return[_0x3a0bbe(0x154),_0x3a0bbe(0x159),'gap:16px','min-width:0',_0x2dde33?_0x3a0bbe(0x132):'',_0x2dde33?_0x3a0bbe(0x13d):''][_0x3a0bbe(0x170)](Boolean)[_0x3a0bbe(0x16b)](';')+';';},'badgeStyle'(_0x532213=null){const _0x52197b=_0x874524;if(!_0x532213)return'';const _0x405752=_0x532213[_0x52197b(0x151)]??_0x52197b(0x15a);return _0x52197b(0x15d)+(_0x532213[_0x52197b(0x143)]??this[_0x52197b(0x14e)](_0x405752,0x21))+_0x52197b(0x16d)+_0x405752+_0x52197b(0x15e)+(_0x532213[_0x52197b(0x152)]??this[_0x52197b(0x14e)](_0x405752,0x7))+';';},async 'clickRefresh'(){const _0x51ba1e=_0x874524;!this[_0x51ba1e(0x16a)]||this['refreshBusyValue']||this[_0x51ba1e(0x137)]||(await _0x4aead2['$attr']['onRefresh']?.(),_0x4aead2[_0x51ba1e(0x17b)]('refresh'));},async 'handleRefresh'(){const _0x1ea9d3=_0x874524;await _0x4aead2['$attr'][_0x1ea9d3(0x179)]?.(),_0x4aead2[_0x1ea9d3(0x17b)](_0x1ea9d3(0x148));},'handleEngineUpdated'(_0x3bdf82){const _0x3838da=_0x874524;_0x4aead2[_0x3838da(0x17b)](_0x3838da(0x175),_0x3bdf82);},'handleDeleted'(_0x449052){const _0x2c3e7=_0x874524;_0x4aead2[_0x2c3e7(0x17b)](_0x2c3e7(0x158),_0x449052);},'openPipeline'(){const _0x2a4c14=_0x874524;_0x4aead2[_0x2a4c14(0x156)][_0x2a4c14(0x135)]?.(this[_0x2a4c14(0x16e)]);}}),'template':_0x874524(0x149)};function _0x5aef(){const _0x4ee3bf=['isRunning','reason','onPipeline','startsWith','refreshDisabledValue','pipeline','key','8390wKJTgl','isArray','env','min-height:0','153603dycAlh','605mpQQJZ','144EFQGBk','1081576qMBEnn','refreshBusy','borderColor','1448881edClHC','online','function','770960DudTGm','refresh','\x0a<div\x20:style=\x22rootStyle\x22>\x0a\x20\x20<div\x20style=\x22display:flex;align-items:flex-start;gap:12px;justify-content:space-between;flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;flex-direction:column;gap:6px;min-width:0;flex:1;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27width:10px;height:10px;border-radius:50%;background:\x27\x20+\x20tone\x20+\x20\x27;flex-shrink:0;\x27\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:18px;font-weight:700;color:var(--okdb-app-fg);word-break:break-word;min-width:0;\x22>{{\x20titleLabel\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20\x27\x20+\x20alpha(typeColorValue,27)\x20+\x20\x27;color:\x27\x20+\x20typeColorValue\x20+\x20\x27;text-transform:uppercase;letter-spacing:.05em;font-size:11px;\x27\x22>{{\x20typeLabelValue\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22showStatusBadge\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20\x27\x20+\x20alpha(tone,33)\x20+\x20\x27;color:\x27\x20+\x20tone\x20+\x20\x27;font-size:11px;\x27\x22>{{\x20statusLabel\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:12px;color:#8aa7bc;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22showReasonBadge\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-app-fg-subtle)\x2033%,\x20transparent);color:var(--okdb-app-fg-muted);\x22>{{\x20reasonLabel\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22envName\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);color:var(--okdb-app-fg-muted);\x22>env:\x20{{\x20envName\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22canOpenPipeline\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openPipeline()\x22\x20:title=\x22pipelineTitleValue\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;padding:2px\x208px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent-2)\x2033%,\x20transparent);color:var(--okdb-accent-2);background:color-mix(in\x20srgb,\x20var(--okdb-accent-2)\x207%,\x20transparent);cursor:pointer;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20↗\x20{{\x20pipelineText\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22extraBadges\x22\x20let:item=\x22badge\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22badgeStyle(badge)\x22\x20:title=\x22badge.title\x20||\x20badge.text\x20||\x20badge.label\x22>{{\x20badge.text\x20||\x20badge.label\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22eng.key\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;color:var(--okdb-app-fg-subtle);font-family:monospace;word-break:break-all;\x22>{{\x20eng.key\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;\x22>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22showRefreshAction\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clickRefresh()\x22\x20:disabled=\x22refreshBusyValue\x20||\x20refreshDisabledValue\x22\x20style=\x22opacity:.8;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20refreshBusyValue\x20?\x20\x27…\x27\x20:\x20refreshLabelValue\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22showLifecycleActions\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<engine-lifecycle-actions\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:env=\x22envName\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@deleted=\x22handleDeleted($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22showErrorCard\x20&&\x20eng.error\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22alert\x20alert--error\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-weight:600;margin-bottom:4px;\x22>Engine\x20error</div>\x0a\x20\x20\x20\x20\x20\x20<div>{{\x20eng.error\x20}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<slot\x20/>\x0a\x0a\x20\x20<if\x20:=\x22showDeclarationEditor\x22>\x0a\x20\x20\x20\x20<engine-declaration-editor\x0a\x20\x20\x20\x20\x20\x20:engine=\x22eng\x22\x0a\x20\x20\x20\x20\x20\x20:env=\x22envName\x22\x0a\x20\x20\x20\x20\x20\x20@engine-updated=\x22handleEngineUpdated($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20@refresh=\x22handleRefresh()\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20</if>\x0a</div>\x0a','View\x20pipeline:\x20','Engine','34746UzMZMU','showError','alpha','engine-panel-shell','↻\x20Refresh','color','background','View\x20pipeline','display:flex','showDeclaration','$attr','6246KKOvQd','deleted','flex-direction:column','var(--okdb-app-fg-muted)','inactive','true','padding:2px\x208px;border-radius:999px;font-size:11px;border:1px\x20solid\x20',';background:','refreshDisabled','eng','7434wHcwJW','title','running','fill','name','error','toString','type','padStart','showRefreshAction','join','typeLabel',';color:','pipelineText','var(--okdb-accent)','filter','status','round','showLifecycle','var(','engine-updated','badges','engine','%,\x20transparent)','onRefresh','pipelineLabel','$dispatch','height:100%'];_0x5aef=function(){return _0x4ee3bf;};return _0x5aef();}