@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
- const _0x77c9b1=_0x57e0;(function(_0x277834,_0x8aa7ed){const _0x15c6d2=_0x57e0,_0x2fa91d=_0x277834();while(!![]){try{const _0xf0e8a=-parseInt(_0x15c6d2(0xbb))/0x1+parseInt(_0x15c6d2(0xbd))/0x2*(-parseInt(_0x15c6d2(0xcb))/0x3)+-parseInt(_0x15c6d2(0xda))/0x4+parseInt(_0x15c6d2(0xb7))/0x5*(-parseInt(_0x15c6d2(0xd9))/0x6)+parseInt(_0x15c6d2(0xe4))/0x7*(-parseInt(_0x15c6d2(0xb4))/0x8)+parseInt(_0x15c6d2(0xc2))/0x9+parseInt(_0x15c6d2(0xb3))/0xa;if(_0xf0e8a===_0x8aa7ed)break;else _0x2fa91d['push'](_0x2fa91d['shift']());}catch(_0x4959e0){_0x2fa91d['push'](_0x2fa91d['shift']());}}}(_0x3a77,0xdfda3));export default{'tag':_0x77c9b1(0xdf),'context':_0x3dbace=>({'views':[],'loading':!0x1,'error':null,'filterState':null,async 'load'(){const _0x523b52=_0x77c9b1;this[_0x523b52(0xd5)]=!0x0,this[_0x523b52(0xb5)]=null;try{const _0x255ca4=_0x3dbace[_0x523b52(0xd4)][_0x523b52(0xc7)][_0x523b52(0xb9)][_0x523b52(0xbe)],_0xd2405c=await fetch(_0x255ca4+_0x523b52(0xca));if(!_0xd2405c['ok'])throw new Error(_0x523b52(0xcd));const _0x35a70d=await _0xd2405c[_0x523b52(0xe5)](),_0x47e298=_0x35a70d[_0x523b52(0xd6)]??_0x35a70d['result']??[],_0x35f170=await Promise[_0x523b52(0xd0)](_0x47e298[_0x523b52(0xd8)](async _0x5d33a5=>{const _0x4e2a95=_0x523b52,[_0x2f6761,_0x1f2b58]=await Promise['all']([fetch(_0x255ca4+_0x4e2a95(0xd1)+_0x5d33a5+_0x4e2a95(0xc8)),fetch(_0x255ca4+_0x4e2a95(0xd1)+_0x5d33a5+'/definition')]),_0x4cc59f=_0x2f6761['ok']?await _0x2f6761[_0x4e2a95(0xe5)]():{},_0x5163eb=_0x1f2b58['ok']?await _0x1f2b58[_0x4e2a95(0xe5)]():{},_0x562bd2=_0x4cc59f['data']??_0x4cc59f[_0x4e2a95(0xcf)]??{},_0x2936a8=_0x5163eb[_0x4e2a95(0xd6)]??_0x5163eb['result']??{};return{'name':_0x5d33a5,'state':_0x562bd2?.['state']??_0x4e2a95(0xc0),'type':_0x2936a8?.[_0x4e2a95(0xc6)]??'?','clock':_0x562bd2?.[_0x4e2a95(0xe2)]??null,'error':_0x562bd2?.['error']??null,'refs':_0x562bd2?.[_0x4e2a95(0xd3)]??null};}));this['views']=_0x35f170;}catch(_0x1dcb0c){this['error']=_0x1dcb0c[_0x523b52(0xde)];}finally{this[_0x523b52(0xd5)]=!0x1;}},get 'totalCount'(){const _0x28fa36=_0x77c9b1;return this[_0x28fa36(0xc5)][_0x28fa36(0xe0)];},get 'readyCount'(){const _0x56839b=_0x77c9b1;return this['views'][_0x56839b(0xbf)](_0x3fdbeb=>_0x56839b(0xd2)===_0x3fdbeb[_0x56839b(0xbc)])[_0x56839b(0xe0)];},get 'haltedCount'(){const _0xe36c87=_0x77c9b1;return this[_0xe36c87(0xc5)][_0xe36c87(0xbf)](_0x478ebc=>_0xe36c87(0xdc)===_0x478ebc[_0xe36c87(0xbc)])['length'];},get 'stoppedCount'(){const _0x409fab=_0x77c9b1;return this[_0x409fab(0xc5)][_0x409fab(0xbf)](_0x4cd052=>_0x409fab(0xba)===_0x4cd052[_0x409fab(0xbc)])['length'];},get 'inProgressCount'(){const _0x3fed1e=_0x77c9b1;return this[_0x3fed1e(0xc5)][_0x3fed1e(0xbf)](_0x5db789=>_0x3fed1e(0xc1)===_0x5db789[_0x3fed1e(0xbc)]||_0x3fed1e(0xdd)===_0x5db789['state'])[_0x3fed1e(0xe0)];},get 'filteredViews'(){const _0x1d523e=_0x77c9b1;return this[_0x1d523e(0xe3)]?this[_0x1d523e(0xc5)]['filter'](_0x1b52e1=>_0x1b52e1['state']===this[_0x1d523e(0xe3)]):this[_0x1d523e(0xc5)];},get 'haltedWithErrors'(){const _0x1605b8=_0x77c9b1;return this[_0x1605b8(0xc5)][_0x1605b8(0xbf)](_0x47c352=>'halted'===_0x47c352[_0x1605b8(0xbc)]&&_0x47c352[_0x1605b8(0xb5)]);},'toggleFilter'(_0x509a41){const _0x384ebd=_0x77c9b1;this[_0x384ebd(0xe3)]=this['filterState']===_0x509a41?null:_0x509a41;},'stateColor'(_0x49dfa0){const _0x48ac19=_0x77c9b1;switch(_0x49dfa0){case _0x48ac19(0xd2):return'var(--okdb-success)';case _0x48ac19(0xc1):case _0x48ac19(0xdd):return _0x48ac19(0xcc);case _0x48ac19(0xdc):return'var(--okdb-danger)';case'stopped':return'var(--okdb-warning)';default:return _0x48ac19(0xc4);}},'fmt':_0x5cf0f7=>null==_0x5cf0f7?'—':Number(_0x5cf0f7)[_0x77c9b1(0xb8)](),'selectView'(_0x55027a){const _0x46d6d3=_0x77c9b1;_0x3dbace[_0x46d6d3(0xce)]('select',_0x55027a[_0x46d6d3(0xdb)]);}}),'mount'(_0x53f936){const _0xfd9ecf=_0x77c9b1;_0x53f936[_0xfd9ecf(0xe1)](()=>_0x53f936[_0xfd9ecf(0xd4)][_0xfd9ecf(0xc7)][_0xfd9ecf(0xb9)][_0xfd9ecf(0xd7)],()=>{const _0x3931e1=_0xfd9ecf;this['filterState']=null,this[_0x3931e1(0xb6)]();}),this[_0xfd9ecf(0xb6)]();},'style':_0x77c9b1(0xc9),'template':_0x77c9b1(0xc3)};function _0x57e0(_0x287a71,_0xbef7d1){_0x287a71=_0x287a71-0xb3;const _0x3a77d3=_0x3a77();let _0x57e068=_0x3a77d3[_0x287a71];return _0x57e068;}function _0x3a77(){const _0x1cf48b=['ready','refs','$ok','loading','data','selectedEnv','map','12HnsXKF','18384ahodiL','name','halted','resetting','message','views-overview','length','$watch','clock','filterState','42CyKzHw','json','52746540jEcejC','716696tTLxKI','error','load','4415585LckJDU','toLocaleString','okdb','stopped','1552053grrLPo','state','115156fpOeNB','apiBase','filter','unknown','creating','705870avWKSr','<div\x20class=\x22vo-wrap\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22><div\x20style=\x22font-weight:600;\x20font-size:18px;\x22>Views\x20Overview</div><if\x20:=\x22loading\x22><span\x20style=\x22font-size:12px;\x20opacity:.4;\x22>loading…</span></if><div\x20style=\x22margin-left:auto;\x22><button\x20@click=\x22load()\x22\x20:disabled=\x22loading\x22\x20style=\x22font-size:12px;\x20padding:5px\x2012px;\x20opacity:.75;\x22>↻\x20Refresh</button></div></div><if\x20:=\x22error\x22><div\x20class=\x22vo-error-banner\x22>{{\x20error\x20}}</div></if><div\x20class=\x22vo-stat-row\x22><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22\x20title=\x22Show\x20all\x20views\x22><div\x20class=\x22vo-stat-label\x22>Total\x20Views</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-accent);\x22>{{\x20totalCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22\x20title=\x22Filter:\x20ready\x22><div\x20class=\x22vo-stat-label\x22>Ready</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-success);\x22>{{\x20readyCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22\x20title=\x22Filter:\x20halted\x22><div\x20class=\x22vo-stat-label\x22>Halted</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-danger);\x22>{{\x20haltedCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22\x20title=\x22Filter:\x20stopped\x22><div\x20class=\x22vo-stat-label\x22>Stopped</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-warning);\x22>{{\x20stoppedCount\x20}}</div></div></div><if\x20:=\x22!loading\x20&&\x20totalCount\x20===\x200\x20&&\x20!error\x22><div\x20class=\x22vo-empty\x22><div\x20style=\x22font-size:32px;\x20opacity:.15;\x22>⊞</div><div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>No\x20views\x20yet</div><div\x20style=\x22font-size:13px;\x20opacity:.55;\x20line-height:1.7;\x20max-width:320px;\x22>Views\x20are\x20materialized\x20projections\x20over\x20your\x20data.\x20Use\x20<b>+\x20Create\x20View</b>\x20in\x20the\x20sidebar\x20to\x20define\x20one.</div></div></if><if\x20:=\x22totalCount\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Views</span><if\x20:=\x22inProgressCount\x20>\x200\x22><span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-sky)\x2030%,\x20transparent);\x20color:var(--okdb-sky);\x20background:color-mix(in\x20srgb,\x20var(--okdb-sky)\x206%,\x20transparent);\x22>{{\x20inProgressCount\x20}}\x20in\x20progress</span></if><div\x20style=\x22margin-left:auto;\x22\x20class=\x22vo-filter-bar\x22><span\x20style=\x22font-size:11px;\x20opacity:.4;\x22>Filter:</span>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22>All</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-success);\x22/>ready</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-danger);\x22/>halted</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-warning);\x22/>stopped</button></div></div><table\x20class=\x22vo-table\x22><thead><tr><th>Name</th><th>Type</th><th>State</th><th\x20style=\x22text-align:right;\x22>Clock</th><th>Error</th><th/></tr></thead><tbody><tr\x20as=\x22repeat\x22\x20:of=\x22filteredViews\x22\x20let:item=\x22v\x22\x20class=\x22vo-row\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><td><span\x20style=\x22font-family:monospace;\x20font-size:13px;\x20font-weight:500;\x22>{{\x20v.name\x20}}</span></td><td><span\x20style=\x22font-family:monospace;\x20font-size:12px;\x20opacity:.7;\x22>{{\x20v.type\x20}}</span></td><td><span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:5px;\x22><span\x20class=\x22vo-state-dot\x22\x20:style=\x22\x27background:\x27\x20+\x20stateColor(v.state)\x22/>\x20<span\x20:style=\x22\x27font-size:12px;\x20color:\x27\x20+\x20stateColor(v.state)\x22>{{\x20v.state\x20}}</span></span></td><td\x20style=\x22text-align:right;\x20font-family:monospace;\x20font-size:12px;\x20opacity:.5;\x22>{{\x20fmt(v.clock)\x20}}</td><td\x20style=\x22max-width:260px;\x22><if\x20:=\x22v.error\x22><span\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x20display:block;\x22\x20:title=\x22v.error\x22>{{\x20v.error\x20}}</span></if></td><td\x20style=\x22text-align:right;\x20opacity:.3;\x20font-size:11px;\x20padding-right:16px;\x22>→</td></tr><if\x20:=\x22filteredViews.length\x20===\x200\x22><tr><td\x20colspan=\x226\x22\x20style=\x22text-align:center;\x20padding:20px;\x20font-size:12px;\x20opacity:.4;\x22>No\x20views\x20match\x20this\x20filter.</td></tr></if></tbody></table></div></if><if\x20:=\x22haltedWithErrors.length\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Errors</span>\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20color:var(--okdb-danger);\x20background:color-mix(in\x20srgb,\x20var(--okdb-danger)\x205%,\x20transparent);\x20font-weight:600;\x22>{{\x20haltedWithErrors.length\x20}}\x20</span><span\x20style=\x22font-size:12px;\x20opacity:.4;\x20margin-left:auto;\x22>halted\x20views\x20with\x20error\x20details</span></div><div\x20style=\x22padding:14px\x2016px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x22><each\x20:of=\x22haltedWithErrors\x22\x20let:item=\x22v\x22><div\x20class=\x22vo-error-card\x22\x20style=\x22cursor:pointer;\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22><span\x20class=\x22vo-error-name\x22>{{\x20v.name\x20}}</span><if\x20:=\x22v.type\x22><span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20opacity:.5;\x22>{{\x20v.type\x20}}</span></if><span\x20style=\x22margin-left:auto;\x20font-size:11px;\x20opacity:.5;\x22>clock\x20{{\x20fmt(v.clock)\x20}}</span></div><div\x20class=\x22vo-error-msg\x22>{{\x20v.error\x20}}</div></div></each></div></div></if></div>','var(--okdb-app-fg-muted)','views','type','stores','/meta','views-overview{display:block}views-overview\x20.vo-wrap{display:flex;flex-direction:column;gap:20px;max-width:860px}views-overview\x20.vo-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}views-overview\x20.vo-stat-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;padding:16px\x2018px;display:flex;flex-direction:column;gap:6px;box-shadow:0\x202px\x208px\x20#0003;cursor:pointer;transition:border-color\x20.15s,box-shadow\x20.15s}views-overview\x20.vo-stat-card:hover{border-color:var(--okdb-app-border-strong)}views-overview\x20.vo-stat-card--active{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2050%,transparent)!important;box-shadow:0\x200\x200\x201px\x20color-mix(in\x20srgb,var(--okdb-accent)\x2015%,transparent),0\x202px\x208px\x20#0003}views-overview\x20.vo-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.5}views-overview\x20.vo-stat-value{font-size:22px;font-weight:700;line-height:1}views-overview\x20.vo-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;overflow:hidden;box-shadow:0\x202px\x208px\x20#0003}views-overview\x20.vo-card-head{padding:13px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-border);display:flex;align-items:center;gap:10px}views-overview\x20.vo-table{width:100%;border-collapse:collapse;font-size:13px}views-overview\x20.vo-table\x20th{padding:7px\x2016px;text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.4;border-bottom:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-bg)}views-overview\x20.vo-table\x20td{padding:9px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-surface-2)}views-overview\x20.vo-row{cursor:pointer;transition:background\x20.1s}views-overview\x20.vo-row:hover\x20td{background:#ffffff07}views-overview\x20.vo-table\x20tbody\x20tr:last-child\x20td{border-bottom:none}views-overview\x20.vo-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}views-overview\x20.vo-filter-pill{display:inline-flex;align-items:center;gap:5px;padding:3px\x2010px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);font-size:11px;cursor:pointer;background:0\x200;color:var(--okdb-app-fg-muted);transition:all\x20.15s}views-overview\x20.vo-filter-pill:hover{border-color:var(--okdb-app-border-strong);color:var(--okdb-app-fg)}views-overview\x20.vo-filter-pill--active{background:color-mix(in\x20srgb,var(--okdb-accent)\x2012%,transparent);border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}views-overview\x20.vo-state-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}views-overview\x20.vo-error-card{background:color-mix(in\x20srgb,var(--okdb-danger)\x205%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px;padding:10px\x2014px;display:flex;flex-direction:column;gap:4px}views-overview\x20.vo-error-name{font-family:monospace;font-size:12px;font-weight:600;color:var(--okdb-danger)}views-overview\x20.vo-error-msg{font-size:12px;color:var(--okdb-app-fg-muted);line-height:1.5;word-break:break-all}views-overview\x20.vo-empty{border:1px\x20dashed\x20var(--okdb-app-border);border-radius:14px;padding:40px\x2032px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}views-overview\x20.vo-error-banner{font-size:12px;color:var(--okdb-danger);padding:10px\x2014px;background:color-mix(in\x20srgb,var(--okdb-danger)\x207%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px}','/views','30pijykH','var(--okdb-sky)','Failed\x20to\x20load\x20views','$dispatch','result','all','/views/'];_0x3a77=function(){return _0x1cf48b;};return _0x3a77();}
1
+ const _0x56df0e=_0x5a4c;function _0x5a4c(_0x12775d,_0x1b5865){_0x12775d=_0x12775d-0x1ab;const _0x1639ac=_0x1639();let _0x5a4c05=_0x1639ac[_0x12775d];return _0x5a4c05;}(function(_0x5c759b,_0x214a59){const _0x14da6a=_0x5a4c,_0xf139cb=_0x5c759b();while(!![]){try{const _0x436c75=-parseInt(_0x14da6a(0x1b8))/0x1*(-parseInt(_0x14da6a(0x1d5))/0x2)+parseInt(_0x14da6a(0x1ae))/0x3+-parseInt(_0x14da6a(0x1d0))/0x4*(parseInt(_0x14da6a(0x1cf))/0x5)+-parseInt(_0x14da6a(0x1d7))/0x6*(-parseInt(_0x14da6a(0x1b2))/0x7)+parseInt(_0x14da6a(0x1bb))/0x8+-parseInt(_0x14da6a(0x1c6))/0x9+-parseInt(_0x14da6a(0x1be))/0xa;if(_0x436c75===_0x214a59)break;else _0xf139cb['push'](_0xf139cb['shift']());}catch(_0x5ec170){_0xf139cb['push'](_0xf139cb['shift']());}}}(_0x1639,0xf05d1));export default{'tag':_0x56df0e(0x1da),'context':_0x4eede0=>({'views':[],'loading':!0x1,'error':null,'filterState':null,async 'load'(){const _0x468821=_0x56df0e;this['loading']=!0x0,this['error']=null;try{const _0x28d676=_0x4eede0[_0x468821(0x1c2)]['stores'][_0x468821(0x1bc)][_0x468821(0x1d2)],_0x4c0c12=await fetch(_0x28d676+_0x468821(0x1c4));if(!_0x4c0c12['ok'])throw new Error(_0x468821(0x1ab));const _0x5b2aa0=await _0x4c0c12['json'](),_0x16bef1=_0x5b2aa0[_0x468821(0x1b6)]??_0x5b2aa0['result']??[],_0x52f7bd=await Promise[_0x468821(0x1ca)](_0x16bef1[_0x468821(0x1ce)](async _0x359123=>{const _0x59095f=_0x468821,[_0x2f1147,_0x36145f]=await Promise[_0x59095f(0x1ca)]([fetch(_0x28d676+_0x59095f(0x1b3)+_0x359123+'/meta'),fetch(_0x28d676+'/views/'+_0x359123+'/definition')]),_0x4408e2=_0x2f1147['ok']?await _0x2f1147[_0x59095f(0x1d4)]():{},_0x4220fb=_0x36145f['ok']?await _0x36145f[_0x59095f(0x1d4)]():{},_0x3a47a6=_0x4408e2[_0x59095f(0x1b6)]??_0x4408e2[_0x59095f(0x1ba)]??{},_0x4170c8=_0x4220fb['data']??_0x4220fb[_0x59095f(0x1ba)]??{};return{'name':_0x359123,'state':_0x3a47a6?.[_0x59095f(0x1c3)]??'unknown','type':_0x4170c8?.[_0x59095f(0x1cb)]??'?','clock':_0x3a47a6?.[_0x59095f(0x1af)]??null,'error':_0x3a47a6?.['error']??null,'refs':_0x3a47a6?.[_0x59095f(0x1c7)]??null};}));this[_0x468821(0x1b4)]=_0x52f7bd;}catch(_0xd6fe29){this[_0x468821(0x1b0)]=_0xd6fe29[_0x468821(0x1c0)];}finally{this[_0x468821(0x1c8)]=!0x1;}},get 'totalCount'(){const _0x808233=_0x56df0e;return this['views'][_0x808233(0x1ad)];},get 'readyCount'(){const _0x275be9=_0x56df0e;return this['views'][_0x275be9(0x1b7)](_0x35681d=>_0x275be9(0x1bf)===_0x35681d['state'])[_0x275be9(0x1ad)];},get 'haltedCount'(){const _0x577c82=_0x56df0e;return this[_0x577c82(0x1b4)]['filter'](_0x194c58=>_0x577c82(0x1cc)===_0x194c58[_0x577c82(0x1c3)])['length'];},get 'stoppedCount'(){const _0x2d2cdd=_0x56df0e;return this[_0x2d2cdd(0x1b4)]['filter'](_0x318745=>_0x2d2cdd(0x1c1)===_0x318745[_0x2d2cdd(0x1c3)])[_0x2d2cdd(0x1ad)];},get 'inProgressCount'(){const _0x482fca=_0x56df0e;return this[_0x482fca(0x1b4)][_0x482fca(0x1b7)](_0x5e851d=>'creating'===_0x5e851d[_0x482fca(0x1c3)]||_0x482fca(0x1b5)===_0x5e851d[_0x482fca(0x1c3)])[_0x482fca(0x1ad)];},get 'filteredViews'(){const _0x345b7a=_0x56df0e;return this[_0x345b7a(0x1ac)]?this['views']['filter'](_0x125e68=>_0x125e68['state']===this[_0x345b7a(0x1ac)]):this[_0x345b7a(0x1b4)];},get 'haltedWithErrors'(){const _0x273c4b=_0x56df0e;return this[_0x273c4b(0x1b4)][_0x273c4b(0x1b7)](_0x48e35e=>'halted'===_0x48e35e[_0x273c4b(0x1c3)]&&_0x48e35e[_0x273c4b(0x1b0)]);},'toggleFilter'(_0x40ca3f){const _0x580f66=_0x56df0e;this['filterState']=this[_0x580f66(0x1ac)]===_0x40ca3f?null:_0x40ca3f;},'stateColor'(_0x4e3901){const _0x15b234=_0x56df0e;switch(_0x4e3901){case _0x15b234(0x1bf):return _0x15b234(0x1b9);case'creating':case'resetting':return'var(--okdb-sky)';case'halted':return _0x15b234(0x1c5);case _0x15b234(0x1c1):return'var(--okdb-warning)';default:return _0x15b234(0x1d9);}},'fmt':_0xb9add5=>null==_0xb9add5?'—':Number(_0xb9add5)['toLocaleString'](),'selectView'(_0x17b65e){const _0x2a8424=_0x56df0e;_0x4eede0[_0x2a8424(0x1b1)](_0x2a8424(0x1bd),_0x17b65e[_0x2a8424(0x1d6)]);}}),'mount'(_0x2b3620){const _0xed82ac=_0x56df0e;_0x2b3620['$watch'](()=>_0x2b3620['$ok'][_0xed82ac(0x1d3)]['okdb'][_0xed82ac(0x1d1)],()=>{const _0x1cc976=_0xed82ac;this[_0x1cc976(0x1ac)]=null,this[_0x1cc976(0x1cd)]();}),this[_0xed82ac(0x1cd)]();},'style':_0x56df0e(0x1d8),'template':_0x56df0e(0x1c9)};function _0x1639(){const _0x39ea2e=['views-overview','Failed\x20to\x20load\x20views','filterState','length','3981984DlhSNq','clock','error','$dispatch','462959ySjKBH','/views/','views','resetting','data','filter','5680GNORIu','var(--okdb-success)','result','1760120jrhPfU','okdb','select','6326630LBOaOV','ready','message','stopped','$ok','state','/views','var(--okdb-danger)','13262229OdTuMX','refs','loading','<div\x20class=\x22vo-wrap\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22><div\x20style=\x22font-weight:600;\x20font-size:18px;\x22>Views\x20Overview</div><if\x20:=\x22loading\x22><span\x20style=\x22font-size:12px;\x20opacity:.4;\x22>loading…</span></if><div\x20style=\x22margin-left:auto;\x22><button\x20@click=\x22load()\x22\x20:disabled=\x22loading\x22\x20style=\x22font-size:12px;\x20padding:5px\x2012px;\x20opacity:.75;\x22>↻\x20Refresh</button></div></div><if\x20:=\x22error\x22><div\x20class=\x22vo-error-banner\x22>{{\x20error\x20}}</div></if><div\x20class=\x22vo-stat-row\x22><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22\x20title=\x22Show\x20all\x20views\x22><div\x20class=\x22vo-stat-label\x22>Total\x20Views</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-accent);\x22>{{\x20totalCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22\x20title=\x22Filter:\x20ready\x22><div\x20class=\x22vo-stat-label\x22>Ready</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-success);\x22>{{\x20readyCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22\x20title=\x22Filter:\x20halted\x22><div\x20class=\x22vo-stat-label\x22>Halted</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-danger);\x22>{{\x20haltedCount\x20}}</div></div><div\x20class=\x22vo-stat-card\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-stat-card--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22\x20title=\x22Filter:\x20stopped\x22><div\x20class=\x22vo-stat-label\x22>Stopped</div><div\x20class=\x22vo-stat-value\x22\x20style=\x22color:var(--okdb-warning);\x22>{{\x20stoppedCount\x20}}</div></div></div><if\x20:=\x22!loading\x20&&\x20totalCount\x20===\x200\x20&&\x20!error\x22><div\x20class=\x22vo-empty\x22><div\x20style=\x22font-size:32px;\x20opacity:.15;\x22>⊞</div><div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>No\x20views\x20yet</div><div\x20style=\x22font-size:13px;\x20opacity:.55;\x20line-height:1.7;\x20max-width:320px;\x22>Views\x20are\x20materialized\x20projections\x20over\x20your\x20data.\x20Use\x20<b>+\x20Create\x20View</b>\x20in\x20the\x20sidebar\x20to\x20define\x20one.</div></div></if><if\x20:=\x22totalCount\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Views</span><if\x20:=\x22inProgressCount\x20>\x200\x22><span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-sky)\x2030%,\x20transparent);\x20color:var(--okdb-sky);\x20background:color-mix(in\x20srgb,\x20var(--okdb-sky)\x206%,\x20transparent);\x22>{{\x20inProgressCount\x20}}\x20in\x20progress</span></if><div\x20style=\x22margin-left:auto;\x22\x20class=\x22vo-filter-bar\x22><span\x20style=\x22font-size:11px;\x20opacity:.4;\x22>Filter:</span>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20null\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(null)\x22>All</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27ready\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27ready\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-success);\x22/>ready</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27halted\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27halted\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-danger);\x22/>halted</button>\x20<button\x20class=\x22vo-filter-pill\x22\x20:class=\x22filterState\x20===\x20\x27stopped\x27\x20?\x20\x27vo-filter-pill--active\x27\x20:\x20\x27\x27\x22\x20@click=\x22toggleFilter(\x27stopped\x27)\x22><span\x20class=\x22vo-state-dot\x22\x20style=\x22background:var(--okdb-warning);\x22/>stopped</button></div></div><table\x20class=\x22vo-table\x22><thead><tr><th>Name</th><th>Type</th><th>State</th><th\x20style=\x22text-align:right;\x22>Clock</th><th>Error</th><th/></tr></thead><tbody><tr\x20as=\x22repeat\x22\x20:of=\x22filteredViews\x22\x20let:item=\x22v\x22\x20class=\x22vo-row\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><td><span\x20style=\x22font-family:monospace;\x20font-size:13px;\x20font-weight:500;\x22>{{\x20v.name\x20}}</span></td><td><span\x20style=\x22font-family:monospace;\x20font-size:12px;\x20opacity:.7;\x22>{{\x20v.type\x20}}</span></td><td><span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:5px;\x22><span\x20class=\x22vo-state-dot\x22\x20:style=\x22\x27background:\x27\x20+\x20stateColor(v.state)\x22/>\x20<span\x20:style=\x22\x27font-size:12px;\x20color:\x27\x20+\x20stateColor(v.state)\x22>{{\x20v.state\x20}}</span></span></td><td\x20style=\x22text-align:right;\x20font-family:monospace;\x20font-size:12px;\x20opacity:.5;\x22>{{\x20fmt(v.clock)\x20}}</td><td\x20style=\x22max-width:260px;\x22><if\x20:=\x22v.error\x22><span\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x20display:block;\x22\x20:title=\x22v.error\x22>{{\x20v.error\x20}}</span></if></td><td\x20style=\x22text-align:right;\x20opacity:.3;\x20font-size:11px;\x20padding-right:16px;\x22>→</td></tr><if\x20:=\x22filteredViews.length\x20===\x200\x22><tr><td\x20colspan=\x226\x22\x20style=\x22text-align:center;\x20padding:20px;\x20font-size:12px;\x20opacity:.4;\x22>No\x20views\x20match\x20this\x20filter.</td></tr></if></tbody></table></div></if><if\x20:=\x22haltedWithErrors.length\x20>\x200\x22><div\x20class=\x22vo-card\x22><div\x20class=\x22vo-card-head\x22><span\x20style=\x22font-weight:600;\x20font-size:14px;\x22>Errors</span>\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20color:var(--okdb-danger);\x20background:color-mix(in\x20srgb,\x20var(--okdb-danger)\x205%,\x20transparent);\x20font-weight:600;\x22>{{\x20haltedWithErrors.length\x20}}\x20</span><span\x20style=\x22font-size:12px;\x20opacity:.4;\x20margin-left:auto;\x22>halted\x20views\x20with\x20error\x20details</span></div><div\x20style=\x22padding:14px\x2016px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x22><each\x20:of=\x22haltedWithErrors\x22\x20let:item=\x22v\x22><div\x20class=\x22vo-error-card\x22\x20style=\x22cursor:pointer;\x22\x20@click=\x22selectView(v)\x22\x20title=\x22Open\x20view\x22><div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22><span\x20class=\x22vo-error-name\x22>{{\x20v.name\x20}}</span><if\x20:=\x22v.type\x22><span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20opacity:.5;\x22>{{\x20v.type\x20}}</span></if><span\x20style=\x22margin-left:auto;\x20font-size:11px;\x20opacity:.5;\x22>clock\x20{{\x20fmt(v.clock)\x20}}</span></div><div\x20class=\x22vo-error-msg\x22>{{\x20v.error\x20}}</div></div></each></div></div></if></div>','all','type','halted','load','map','5ryURMf','3149884xRmWFh','selectedEnv','apiBase','stores','json','518iRMwZh','name','78KXJVIz','views-overview{display:block}views-overview\x20.vo-wrap{display:flex;flex-direction:column;gap:20px;max-width:860px}views-overview\x20.vo-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}views-overview\x20.vo-stat-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;padding:16px\x2018px;display:flex;flex-direction:column;gap:6px;box-shadow:0\x202px\x208px\x20#0003;cursor:pointer;transition:border-color\x20.15s,box-shadow\x20.15s}views-overview\x20.vo-stat-card:hover{border-color:var(--okdb-app-border-strong)}views-overview\x20.vo-stat-card--active{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2050%,transparent)!important;box-shadow:0\x200\x200\x201px\x20color-mix(in\x20srgb,var(--okdb-accent)\x2015%,transparent),0\x202px\x208px\x20#0003}views-overview\x20.vo-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.5}views-overview\x20.vo-stat-value{font-size:22px;font-weight:700;line-height:1}views-overview\x20.vo-card{background:var(--okdb-app-surface);border:1px\x20solid\x20var(--okdb-app-border);border-radius:12px;overflow:hidden;box-shadow:0\x202px\x208px\x20#0003}views-overview\x20.vo-card-head{padding:13px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-border);display:flex;align-items:center;gap:10px}views-overview\x20.vo-table{width:100%;border-collapse:collapse;font-size:13px}views-overview\x20.vo-table\x20th{padding:7px\x2016px;text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.4;border-bottom:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-bg)}views-overview\x20.vo-table\x20td{padding:9px\x2016px;border-bottom:1px\x20solid\x20var(--okdb-app-surface-2)}views-overview\x20.vo-row{cursor:pointer;transition:background\x20.1s}views-overview\x20.vo-row:hover\x20td{background:#ffffff07}views-overview\x20.vo-table\x20tbody\x20tr:last-child\x20td{border-bottom:none}views-overview\x20.vo-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}views-overview\x20.vo-filter-pill{display:inline-flex;align-items:center;gap:5px;padding:3px\x2010px;border-radius:999px;border:1px\x20solid\x20var(--okdb-app-border);font-size:11px;cursor:pointer;background:0\x200;color:var(--okdb-app-fg-muted);transition:all\x20.15s}views-overview\x20.vo-filter-pill:hover{border-color:var(--okdb-app-border-strong);color:var(--okdb-app-fg)}views-overview\x20.vo-filter-pill--active{background:color-mix(in\x20srgb,var(--okdb-accent)\x2012%,transparent);border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}views-overview\x20.vo-state-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block}views-overview\x20.vo-error-card{background:color-mix(in\x20srgb,var(--okdb-danger)\x205%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px;padding:10px\x2014px;display:flex;flex-direction:column;gap:4px}views-overview\x20.vo-error-name{font-family:monospace;font-size:12px;font-weight:600;color:var(--okdb-danger)}views-overview\x20.vo-error-msg{font-size:12px;color:var(--okdb-app-fg-muted);line-height:1.5;word-break:break-all}views-overview\x20.vo-empty{border:1px\x20dashed\x20var(--okdb-app-border);border-radius:14px;padding:40px\x2032px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}views-overview\x20.vo-error-banner{font-size:12px;color:var(--okdb-danger);padding:10px\x2014px;background:color-mix(in\x20srgb,var(--okdb-danger)\x207%,transparent);border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-danger)\x2020%,transparent);border-radius:8px}','var(--okdb-app-fg-muted)'];_0x1639=function(){return _0x39ea2e;};return _0x1639();}
@@ -1 +1 @@
1
- const _0x1c308c=_0x3c9b;function _0x3c9b(_0x5c7aeb,_0x586686){_0x5c7aeb=_0x5c7aeb-0xb6;const _0x1a6c32=_0x1a6c();let _0x3c9b4c=_0x1a6c32[_0x5c7aeb];return _0x3c9b4c;}function _0x1a6c(){const _0x137733=['Passwords\x20do\x20not\x20match','108150wMALfv','Initial\x20admin','joinForm','2454ViXMtz','9330ZRKTUy','submit','createError','catch','location','createConfirm','application/json','Failed\x20to\x20create\x20admin\x20token','1791idPztc','joinAddress','445238wSfgBU','value','172WUdLkh','trim','Failed\x20to\x20join\x20cluster','data','addEventListener','18378HtYnRx','preventDefault','textContent','4501NzUYsw','same-origin','getElementById','joinToken','createName','json','createForm','/admin/login','replace','Username\x20is\x20required','message','11672uWeUHH','hidden','error','451cqijlq','Remote\x20node\x20address\x20is\x20required','Cluster\x20sync\x20token\x20is\x20required','createLabel','/api/auth/tokens','stringify','/admin/setup/join','272207INZhxi'];_0x1a6c=function(){return _0x137733;};return _0x1a6c();}(function(_0x1864f0,_0x33b9d0){const _0x736550=_0x3c9b,_0x735f1c=_0x1864f0();while(!![]){try{const _0x2f2566=-parseInt(_0x736550(0xba))/0x1+parseInt(_0x736550(0xca))/0x2+parseInt(_0x736550(0xd1))/0x3+-parseInt(_0x736550(0xcc))/0x4*(-parseInt(_0x736550(0xc0))/0x5)+-parseInt(_0x736550(0xbf))/0x6*(-parseInt(_0x736550(0xd4))/0x7)+parseInt(_0x736550(0xdf))/0x8*(parseInt(_0x736550(0xc8))/0x9)+-parseInt(_0x736550(0xbc))/0xa*(parseInt(_0x736550(0xe2))/0xb);if(_0x2f2566===_0x33b9d0)break;else _0x735f1c['push'](_0x735f1c['shift']());}catch(_0x85d95f){_0x735f1c['push'](_0x735f1c['shift']());}}}(_0x1a6c,0x23d01),(document[_0x1c308c(0xd6)](_0x1c308c(0xda))[_0x1c308c(0xd0)](_0x1c308c(0xc1),async _0x542402=>{const _0x251d8c=_0x1c308c;_0x542402[_0x251d8c(0xd2)]();const _0x31e68a=document['getElementById'](_0x251d8c(0xc2));_0x31e68a[_0x251d8c(0xe0)]=!0x0;const _0x5791d1=document[_0x251d8c(0xd6)](_0x251d8c(0xd8))[_0x251d8c(0xcb)][_0x251d8c(0xcd)](),_0x51b073=document[_0x251d8c(0xd6)]('createPassword')[_0x251d8c(0xcb)],_0x3cdd35=document[_0x251d8c(0xd6)](_0x251d8c(0xc5))['value'],_0x2a309c=document['getElementById'](_0x251d8c(0xb6))[_0x251d8c(0xcb)][_0x251d8c(0xcd)]()||_0x251d8c(0xbd);if(!_0x5791d1)return _0x31e68a[_0x251d8c(0xe0)]=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]=_0x251d8c(0xdd));if(!_0x51b073)return _0x31e68a['hidden']=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]='Password\x20is\x20required');if(_0x51b073!==_0x3cdd35)return _0x31e68a[_0x251d8c(0xe0)]=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]=_0x251d8c(0xbb));const _0x6f90db=await fetch(_0x251d8c(0xb7),{'method':'POST','headers':{'content-type':_0x251d8c(0xc6)},'credentials':_0x251d8c(0xd5),'body':JSON[_0x251d8c(0xb8)]({'name':_0x5791d1,'password':_0x51b073,'label':_0x2a309c,'permissions':['*']})}),_0x565458=await _0x6f90db[_0x251d8c(0xd9)]()['catch'](()=>({}));if(!_0x6f90db['ok'])return _0x31e68a[_0x251d8c(0xe0)]=!0x1,void(_0x31e68a[_0x251d8c(0xd3)]=_0x565458?.[_0x251d8c(0xe1)]?.[_0x251d8c(0xde)]||_0x565458?.[_0x251d8c(0xe1)]||_0x565458?.[_0x251d8c(0xcf)]?.[_0x251d8c(0xe1)]||_0x251d8c(0xc7));window[_0x251d8c(0xc4)][_0x251d8c(0xdc)](_0x251d8c(0xdb));}),document['getElementById'](_0x1c308c(0xbe))[_0x1c308c(0xd0)](_0x1c308c(0xc1),async _0x225534=>{const _0x55d52a=_0x1c308c;_0x225534['preventDefault']();const _0x4cc2fb=document[_0x55d52a(0xd6)]('joinError');_0x4cc2fb[_0x55d52a(0xe0)]=!0x0;const _0x5b2ab0=document[_0x55d52a(0xd6)](_0x55d52a(0xc9))[_0x55d52a(0xcb)]['trim'](),_0x5eb1b4=document[_0x55d52a(0xd6)](_0x55d52a(0xd7))[_0x55d52a(0xcb)]['trim']();if(!_0x5b2ab0)return _0x4cc2fb[_0x55d52a(0xe0)]=!0x1,void(_0x4cc2fb[_0x55d52a(0xd3)]=_0x55d52a(0xe3));if(!_0x5eb1b4)return _0x4cc2fb['hidden']=!0x1,void(_0x4cc2fb[_0x55d52a(0xd3)]=_0x55d52a(0xe4));const _0xd1e417=await fetch(_0x55d52a(0xb9),{'method':'POST','headers':{'content-type':'application/json'},'credentials':_0x55d52a(0xd5),'body':JSON[_0x55d52a(0xb8)]({'address':_0x5b2ab0,'token':_0x5eb1b4})}),_0x5e6cc5=await _0xd1e417[_0x55d52a(0xd9)]()[_0x55d52a(0xc3)](()=>({}));if(!_0xd1e417['ok'])return _0x4cc2fb['hidden']=!0x1,void(_0x4cc2fb[_0x55d52a(0xd3)]=_0x5e6cc5?.[_0x55d52a(0xe1)]?.[_0x55d52a(0xde)]||_0x5e6cc5?.[_0x55d52a(0xe1)]||_0x5e6cc5?.[_0x55d52a(0xcf)]?.['error']||_0x55d52a(0xce));window[_0x55d52a(0xc4)][_0x55d52a(0xdc)](_0x55d52a(0xdb));})));
1
+ const _0x338f36=_0x8cb8;function _0x8cb8(_0x61030b,_0x1a3a0d){_0x61030b=_0x61030b-0x185;const _0x17d223=_0x17d2();let _0x8cb895=_0x17d223[_0x61030b];return _0x8cb895;}(function(_0x2931f8,_0x270c05){const _0xe8bf8=_0x8cb8,_0x15debd=_0x2931f8();while(!![]){try{const _0x49a07d=-parseInt(_0xe8bf8(0x192))/0x1*(-parseInt(_0xe8bf8(0x1a5))/0x2)+-parseInt(_0xe8bf8(0x1af))/0x3*(parseInt(_0xe8bf8(0x1ae))/0x4)+parseInt(_0xe8bf8(0x193))/0x5+parseInt(_0xe8bf8(0x18c))/0x6+parseInt(_0xe8bf8(0x18f))/0x7+-parseInt(_0xe8bf8(0x186))/0x8+-parseInt(_0xe8bf8(0x195))/0x9*(-parseInt(_0xe8bf8(0x1ac))/0xa);if(_0x49a07d===_0x270c05)break;else _0x15debd['push'](_0x15debd['shift']());}catch(_0x9f7f49){_0x15debd['push'](_0x15debd['shift']());}}}(_0x17d2,0x3a600),(document[_0x338f36(0x18e)](_0x338f36(0x1a2))[_0x338f36(0x185)](_0x338f36(0x191),async _0x464be5=>{const _0x37f88a=_0x338f36;_0x464be5[_0x37f88a(0x1b0)]();const _0x3bf00f=document[_0x37f88a(0x18e)](_0x37f88a(0x18a));_0x3bf00f[_0x37f88a(0x1a1)]=!0x0;const _0x2821de=document['getElementById'](_0x37f88a(0x197))[_0x37f88a(0x199)][_0x37f88a(0x198)](),_0x4b27b4=document[_0x37f88a(0x18e)](_0x37f88a(0x19b))[_0x37f88a(0x199)],_0x520e78=document[_0x37f88a(0x18e)](_0x37f88a(0x18d))[_0x37f88a(0x199)],_0x5002dd=document['getElementById'](_0x37f88a(0x1aa))[_0x37f88a(0x199)][_0x37f88a(0x198)]()||_0x37f88a(0x1a9);if(!_0x2821de)return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]='Username\x20is\x20required');if(!_0x4b27b4)return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]=_0x37f88a(0x188));if(_0x4b27b4!==_0x520e78)return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]=_0x37f88a(0x1a4));const _0x5c8976=await fetch(_0x37f88a(0x18b),{'method':_0x37f88a(0x189),'headers':{'content-type':_0x37f88a(0x1a8)},'credentials':_0x37f88a(0x19f),'body':JSON[_0x37f88a(0x19a)]({'name':_0x2821de,'password':_0x4b27b4,'label':_0x5002dd,'permissions':['*']})}),_0x340cf0=await _0x5c8976['json']()[_0x37f88a(0x190)](()=>({}));if(!_0x5c8976['ok'])return _0x3bf00f[_0x37f88a(0x1a1)]=!0x1,void(_0x3bf00f[_0x37f88a(0x1a3)]=_0x340cf0?.['error']?.[_0x37f88a(0x1ab)]||_0x340cf0?.[_0x37f88a(0x187)]||_0x340cf0?.[_0x37f88a(0x1a7)]?.['error']||_0x37f88a(0x19d));window['location'][_0x37f88a(0x1a0)](_0x37f88a(0x19c));}),document[_0x338f36(0x18e)]('joinForm')[_0x338f36(0x185)](_0x338f36(0x191),async _0x8d89a0=>{const _0x1bb296=_0x338f36;_0x8d89a0[_0x1bb296(0x1b0)]();const _0x4f1ed1=document[_0x1bb296(0x18e)](_0x1bb296(0x1a6));_0x4f1ed1['hidden']=!0x0;const _0x450722=document['getElementById']('joinAddress')[_0x1bb296(0x199)]['trim'](),_0x25b8fe=document[_0x1bb296(0x18e)]('joinToken')[_0x1bb296(0x199)][_0x1bb296(0x198)]();if(!_0x450722)return _0x4f1ed1[_0x1bb296(0x1a1)]=!0x1,void(_0x4f1ed1[_0x1bb296(0x1a3)]=_0x1bb296(0x196));if(!_0x25b8fe)return _0x4f1ed1['hidden']=!0x1,void(_0x4f1ed1[_0x1bb296(0x1a3)]=_0x1bb296(0x194));const _0x24e356=await fetch(_0x1bb296(0x19e),{'method':_0x1bb296(0x189),'headers':{'content-type':_0x1bb296(0x1a8)},'credentials':_0x1bb296(0x19f),'body':JSON['stringify']({'address':_0x450722,'token':_0x25b8fe})}),_0x4d93be=await _0x24e356['json']()[_0x1bb296(0x190)](()=>({}));if(!_0x24e356['ok'])return _0x4f1ed1[_0x1bb296(0x1a1)]=!0x1,void(_0x4f1ed1[_0x1bb296(0x1a3)]=_0x4d93be?.[_0x1bb296(0x187)]?.['message']||_0x4d93be?.['error']||_0x4d93be?.['data']?.[_0x1bb296(0x187)]||_0x1bb296(0x1ad));window['location'][_0x1bb296(0x1a0)](_0x1bb296(0x19c));})));function _0x17d2(){const _0x1407b6=['replace','hidden','createForm','textContent','Passwords\x20do\x20not\x20match','12RJXxkS','joinError','data','application/json','Initial\x20admin','createLabel','message','20aaUBuN','Failed\x20to\x20join\x20cluster','4eGoZaQ','914529MFBsRc','preventDefault','addEventListener','2319752hlaItA','error','Password\x20is\x20required','POST','createError','/api/auth/tokens','2504448xlvSJC','createConfirm','getElementById','1987545jurpSK','catch','submit','311jqDPaI','431485GmoAlk','Cluster\x20sync\x20token\x20is\x20required','199845rKYGcs','Remote\x20node\x20address\x20is\x20required','createName','trim','value','stringify','createPassword','/admin/login','Failed\x20to\x20create\x20admin\x20token','/admin/setup/join','same-origin'];_0x17d2=function(){return _0x1407b6;};return _0x17d2();}
@@ -1 +1 @@
1
- const _0x503f2c=_0x50fa;function _0x2b32(){const _0x5f3a3b=['files:*','6881DBAIvc','_grantsMatchAny','functions','./api/auth/permissions','44070fGOlAY','/admin/index.html','result','roles','length','config','catalog','771501yUwCGn','openAccess','Open\x20access','loading','join','application/json','can','admin','isArray','data:*','/auth/logout','notices','noticesDismissed','functions:read','queue','getItem','message','location','system:read','schema:read','1008756vZwHce','okdb_notices_dismissed','sync:read','implies','POST','Requires\x20','values','sync','loadNotices','Secure','data','catch','search:query','mode','791100kKLrio','files','system','auth','./api/notices','some','same-origin','\x20permission','2004NIMZvB','proxy','replace','user','files:read','loadConfig','646304ApfETB','queue:read','grants','loadSession','queue:work','./login/config','search:*','engines','canAny','functions:run','json','1727112NFjZmJ','./session','username','session'];_0x2b32=function(){return _0x5f3a3b;};return _0x2b32();}(function(_0x19b16b,_0xcfc4ce){const _0x4e9969=_0x50fa,_0x3c392d=_0x19b16b();while(!![]){try{const _0x51d70c=parseInt(_0x4e9969(0x155))/0x1+-parseInt(_0x4e9969(0x141))/0x2+parseInt(_0x4e9969(0x111))/0x3+parseInt(_0x4e9969(0x125))/0x4+-parseInt(_0x4e9969(0x133))/0x5+-parseInt(_0x4e9969(0x13b))/0x6*(-parseInt(_0x4e9969(0x151))/0x7)+-parseInt(_0x4e9969(0x14c))/0x8;if(_0x51d70c===_0xcfc4ce)break;else _0x3c392d['push'](_0x3c392d['shift']());}catch(_0xbab405){_0x3c392d['push'](_0x3c392d['shift']());}}}(_0x2b32,0x2d0a7));function _0x50fa(_0x43aebc,_0x2edddd){_0x43aebc=_0x43aebc-0x111;const _0x2b3226=_0x2b32();let _0x50faee=_0x2b3226[_0x43aebc];return _0x50faee;}import{ok as _0x2cf251}from'../modules/ok.js';import{hasPermission as _0x87329e,setImpliedBy as _0x4c6b57}from'../util/permissions.js';export default _0x2cf251[_0x503f2c(0x13c)]({'config':null,'session':null,'catalog':null,'loading':!0x1,'error':null,'notices':[],'noticesDismissed':!0x1,get 'mode'(){return this['config']?.['mode']??'open';},get 'openAccess'(){const _0x43d987=_0x503f2c;return!!this[_0x43d987(0x15a)]?.['openAccess'];},get 'isAuthenticated'(){const _0x9b8776=_0x503f2c;return!!this[_0x9b8776(0x14f)]?.['authenticated'];},get 'user'(){const _0x5577bf=_0x503f2c;return this[_0x5577bf(0x14f)]?.['user']??null;},get 'grants'(){const _0x3c9a49=_0x503f2c;return this['session']?.[_0x3c9a49(0x143)]??{};},get 'username'(){const _0x45e42c=_0x503f2c;return this[_0x45e42c(0x13e)]?.[_0x45e42c(0x14e)]??(this['openAccess']?'system':null);},get 'rolesLabel'(){const _0x5a2479=_0x503f2c,_0x45f9e2=this['user']?.['roles'];return Array['isArray'](_0x45f9e2)&&_0x45f9e2['length']?_0x45f9e2[_0x5a2479(0x115)](',\x20'):'';},'can'(_0xfa4e1b){const _0x3347bc=_0x503f2c;if(this[_0x3347bc(0x112)])return!0x0;const _0x28fa3f=this[_0x3347bc(0x13e)]?.[_0x3347bc(0x158)];return!!_0x28fa3f&&_0x87329e(_0x28fa3f,_0xfa4e1b);},'canForEnv'(_0xd97717,_0x553062){const _0x201923=_0x503f2c;if(this[_0x201923(0x112)])return!0x0;if(this[_0x201923(0x117)](_0x553062))return!0x0;const _0xdeab2b=this[_0x201923(0x143)][_0xd97717];return!(!Array[_0x201923(0x119)](_0xdeab2b)||0x0===_0xdeab2b[_0x201923(0x159)])&&_0x87329e(_0xdeab2b,_0x553062);},'_grantsMatchAny'(_0x1cd53d){const _0x25f114=_0x503f2c;for(const _0x46437e of Object[_0x25f114(0x12b)](this[_0x25f114(0x143)]))if(Array[_0x25f114(0x119)](_0x46437e)){for(const _0x438b02 of _0x1cd53d)if(_0x87329e(_0x46437e,_0x438b02))return!0x0;}return!0x1;},'canAny'(_0x572758){const _0x333dc0=_0x503f2c;return Array[_0x333dc0(0x119)](_0x572758)&&_0x572758[_0x333dc0(0x138)](_0x24cc1c=>this[_0x333dc0(0x117)](_0x24cc1c));},'canSection'(_0x36e37f){const _0x388641=_0x503f2c;if(this['openAccess'])return!0x0;switch(_0x36e37f){case'db':return this[_0x388641(0x149)](['data:read',_0x388641(0x124),_0x388641(0x131)])||this[_0x388641(0x152)](['data:read',_0x388641(0x124),'search:query',_0x388641(0x11a),'schema:*',_0x388641(0x147),'*']);case _0x388641(0x148):case _0x388641(0x135):return this['can'](_0x388641(0x123));case _0x388641(0x134):return this[_0x388641(0x117)](_0x388641(0x13f))||this['_grantsMatchAny']([_0x388641(0x13f),_0x388641(0x150),'*']);case _0x388641(0x11f):return this[_0x388641(0x149)]([_0x388641(0x142),_0x388641(0x145)])||this['_grantsMatchAny'](['queue:read',_0x388641(0x145),'queue:*','*']);case _0x388641(0x153):return this['canAny']([_0x388641(0x11e),_0x388641(0x14a)])||this[_0x388641(0x152)](['functions:read',_0x388641(0x14a),'functions:*','*']);case _0x388641(0x136):return this[_0x388641(0x117)]('auth:read');case _0x388641(0x12c):return this[_0x388641(0x117)](_0x388641(0x127));default:return!0x1;}},'permTooltip'(_0x19e6cb){const _0x1be06c=_0x503f2c;return this[_0x1be06c(0x117)](_0x19e6cb)?'':_0x1be06c(0x12a)+_0x19e6cb+_0x1be06c(0x13a);},get 'modeLabel'(){const _0x15bd6b=_0x503f2c;return this[_0x15bd6b(0x112)]?_0x15bd6b(0x113):'secure'===this[_0x15bd6b(0x132)]?_0x15bd6b(0x12e):String(this[_0x15bd6b(0x132)]||'auth');},get 'visibleNotices'(){const _0x42fe25=_0x503f2c;return this[_0x42fe25(0x11d)]?[]:this[_0x42fe25(0x11c)]||[];},'dismissNotices'(){const _0x7805b2=_0x503f2c;this[_0x7805b2(0x11d)]=!0x0;try{sessionStorage['setItem']('okdb_notices_dismissed','1');}catch{}},async 'loadConfig'(){const _0x38836b=_0x503f2c,_0x446b94=await fetch(_0x38836b(0x146),{'credentials':_0x38836b(0x139)}),_0x2c4cf6=await _0x446b94[_0x38836b(0x14b)]()[_0x38836b(0x130)](()=>({}));return this[_0x38836b(0x15a)]=_0x2c4cf6?.[_0x38836b(0x12f)]||{},this['config'];},async 'loadSession'(){const _0x459465=_0x503f2c;if(this[_0x459465(0x112)])return this[_0x459465(0x14f)]={'authenticated':!0x0,'user':{'username':_0x459465(0x135),'roles':[_0x459465(0x118)]},'grants':{}},this[_0x459465(0x14f)];const _0x976df3=await fetch(_0x459465(0x14d),{'credentials':_0x459465(0x139)});if(!_0x976df3['ok'])return this[_0x459465(0x14f)]={'authenticated':!0x1,'user':null,'grants':{}},this[_0x459465(0x14f)];const _0x5af0e5=await _0x976df3[_0x459465(0x14b)]()['catch'](()=>({})),_0x304659=_0x5af0e5?.[_0x459465(0x12f)]||_0x5af0e5?.[_0x459465(0x157)]||{'authenticated':!0x1,'user':null};return this[_0x459465(0x14f)]={'grants':{},..._0x304659},this[_0x459465(0x14f)];},async 'loadCatalog'(){const _0x4db682=_0x503f2c,_0xf0d258=await fetch(_0x4db682(0x154),{'credentials':_0x4db682(0x139)});if(!_0xf0d258['ok'])return null;const _0x1f62a9=await _0xf0d258[_0x4db682(0x14b)]()[_0x4db682(0x130)](()=>({})),_0x244d01=_0x1f62a9?.[_0x4db682(0x12f)]||_0x1f62a9?.[_0x4db682(0x157)]||null;return _0x244d01?.['implies']&&_0x4c6b57(_0x244d01[_0x4db682(0x128)]),this[_0x4db682(0x15b)]=_0x244d01,_0x244d01;},async 'loadNotices'(){const _0x3beebd=_0x503f2c;try{if('1'===sessionStorage[_0x3beebd(0x120)](_0x3beebd(0x126)))return void(this['noticesDismissed']=!0x0);const _0x274803=await fetch(_0x3beebd(0x137),{'credentials':_0x3beebd(0x139)});if(_0x274803['ok']){const _0x19bc36=await _0x274803['json']()[_0x3beebd(0x130)](()=>({}));this['notices']=_0x19bc36?.[_0x3beebd(0x12f)]?.[_0x3beebd(0x11c)]??_0x19bc36?.[_0x3beebd(0x157)]?.[_0x3beebd(0x11c)]??[];}}catch{}},async 'init'(){const _0x566106=_0x503f2c;this[_0x566106(0x114)]=!0x0,this['error']=null;try{await this[_0x566106(0x140)](),await this[_0x566106(0x144)](),await this['loadCatalog'](),await this[_0x566106(0x12d)]();}catch(_0x58db29){throw this['error']=_0x58db29?.[_0x566106(0x121)]||String(_0x58db29),_0x58db29;}finally{this[_0x566106(0x114)]=!0x1;}},async 'logout'(){const _0x2b65e5=_0x503f2c;await fetch(_0x2b65e5(0x11b),{'method':_0x2b65e5(0x129),'credentials':_0x2b65e5(0x139),'headers':{'content-type':_0x2b65e5(0x116)}})['catch'](()=>{}),this[_0x2b65e5(0x14f)]={'authenticated':!0x1,'user':null};const _0x426ca3=encodeURIComponent(_0x2b65e5(0x156));window[_0x2b65e5(0x122)][_0x2b65e5(0x13d)]('/admin/login?redirect='+_0x426ca3);}});
1
+ (function(_0x467e39,_0x5d286c){const _0x34b644=_0x226a,_0x4dd676=_0x467e39();while(!![]){try{const _0x2b6f1=parseInt(_0x34b644(0xbe))/0x1*(-parseInt(_0x34b644(0x97))/0x2)+-parseInt(_0x34b644(0x9e))/0x3+parseInt(_0x34b644(0xad))/0x4*(-parseInt(_0x34b644(0xbd))/0x5)+parseInt(_0x34b644(0xc5))/0x6*(parseInt(_0x34b644(0xa2))/0x7)+-parseInt(_0x34b644(0xd4))/0x8+-parseInt(_0x34b644(0x99))/0x9*(-parseInt(_0x34b644(0x8b))/0xa)+-parseInt(_0x34b644(0xc0))/0xb*(-parseInt(_0x34b644(0xa0))/0xc);if(_0x2b6f1===_0x5d286c)break;else _0x4dd676['push'](_0x4dd676['shift']());}catch(_0x517108){_0x4dd676['push'](_0x4dd676['shift']());}}}(_0x4a67,0xdbdc6));function _0x4a67(){const _0x13798d=['schema:read','engines','catch','secure','22gUwHwl','loadSession','4536CtNccY','notices','_grantsMatchAny','queue','setItem','3690258LbOQWd','isArray','12hLMvYH','username','4135901opxApH','\x20permission','mode','openAccess','loadNotices','./api/auth/permissions','data:*','queue:read','user','functions:read','search:query','104WRyULo','files:*','files:read','authenticated','some','values','length','Secure','grants','auth','data:read','Requires\x20','config','Open\x20access','json','queue:*','233395rDCHRy','130957ubRxvV','functions','50126549SKGOAX','functions:*','queue:work','result','/admin/index.html','12orRGSb','open','./api/notices','message','catalog','error','noticesDismissed','roles','system','getItem','location','system:read','sync','implies','data','11981152zyPfzU','/auth/logout','POST','replace','admin','loadConfig','can','functions:run','same-origin','files','10790gPMFua','schema:*','canAny','./session','/admin/login?redirect=','session','loading','loadCatalog'];_0x4a67=function(){return _0x13798d;};return _0x4a67();}function _0x226a(_0x5eaa66,_0x956b3d){_0x5eaa66=_0x5eaa66-0x86;const _0x4a67b6=_0x4a67();let _0x226ab5=_0x4a67b6[_0x5eaa66];return _0x226ab5;}import{ok as _0x267d79}from'../modules/ok.js';import{hasPermission as _0x59fda4,setImpliedBy as _0x5dcbd6}from'../util/permissions.js';export default _0x267d79['proxy']({'config':null,'session':null,'catalog':null,'loading':!0x1,'error':null,'notices':[],'noticesDismissed':!0x1,get 'mode'(){const _0x2724c7=_0x226a;return this[_0x2724c7(0xb9)]?.[_0x2724c7(0xa4)]??_0x2724c7(0xc6);},get 'openAccess'(){const _0x22c75e=_0x226a;return!!this[_0x22c75e(0xb9)]?.[_0x22c75e(0xa5)];},get 'isAuthenticated'(){const _0x2e8ff1=_0x226a;return!!this[_0x2e8ff1(0x90)]?.[_0x2e8ff1(0xb0)];},get 'user'(){const _0x13de47=_0x226a;return this[_0x13de47(0x90)]?.[_0x13de47(0xaa)]??null;},get 'grants'(){const _0x696b4b=_0x226a;return this[_0x696b4b(0x90)]?.[_0x696b4b(0xb5)]??{};},get 'username'(){const _0x3c4f24=_0x226a;return this[_0x3c4f24(0xaa)]?.[_0x3c4f24(0xa1)]??(this[_0x3c4f24(0xa5)]?_0x3c4f24(0xcd):null);},get 'rolesLabel'(){const _0xf7642f=_0x226a,_0x1f4fa1=this[_0xf7642f(0xaa)]?.[_0xf7642f(0xcc)];return Array[_0xf7642f(0x9f)](_0x1f4fa1)&&_0x1f4fa1[_0xf7642f(0xb3)]?_0x1f4fa1['join'](',\x20'):'';},'can'(_0x30d83b){const _0x46996c=_0x226a;if(this['openAccess'])return!0x0;const _0x434fda=this[_0x46996c(0xaa)]?.[_0x46996c(0xcc)];return!!_0x434fda&&_0x59fda4(_0x434fda,_0x30d83b);},'canForEnv'(_0x48d11b,_0x2167f6){const _0x4d2010=_0x226a;if(this['openAccess'])return!0x0;if(this[_0x4d2010(0x87)](_0x2167f6))return!0x0;const _0x92fb4e=this[_0x4d2010(0xb5)][_0x48d11b];return!(!Array[_0x4d2010(0x9f)](_0x92fb4e)||0x0===_0x92fb4e[_0x4d2010(0xb3)])&&_0x59fda4(_0x92fb4e,_0x2167f6);},'_grantsMatchAny'(_0x56bce7){const _0x2be24c=_0x226a;for(const _0x35b464 of Object[_0x2be24c(0xb2)](this[_0x2be24c(0xb5)]))if(Array['isArray'](_0x35b464)){for(const _0xf9c96d of _0x56bce7)if(_0x59fda4(_0x35b464,_0xf9c96d))return!0x0;}return!0x1;},'canAny'(_0x2e9db9){const _0x43952e=_0x226a;return Array[_0x43952e(0x9f)](_0x2e9db9)&&_0x2e9db9[_0x43952e(0xb1)](_0x2c1605=>this[_0x43952e(0x87)](_0x2c1605));},'canSection'(_0x4c5ea0){const _0x37e244=_0x226a;if(this[_0x37e244(0xa5)])return!0x0;switch(_0x4c5ea0){case'db':return this['canAny']([_0x37e244(0xb7),_0x37e244(0x93),_0x37e244(0xac)])||this['_grantsMatchAny']([_0x37e244(0xb7),'schema:read','search:query',_0x37e244(0xa8),_0x37e244(0x8c),'search:*','*']);case _0x37e244(0x94):case _0x37e244(0xcd):return this[_0x37e244(0x87)](_0x37e244(0xd0));case _0x37e244(0x8a):return this[_0x37e244(0x87)](_0x37e244(0xaf))||this[_0x37e244(0x9b)]([_0x37e244(0xaf),_0x37e244(0xae),'*']);case _0x37e244(0x9c):return this[_0x37e244(0x8d)]([_0x37e244(0xa9),'queue:work'])||this[_0x37e244(0x9b)]([_0x37e244(0xa9),_0x37e244(0xc2),_0x37e244(0xbc),'*']);case _0x37e244(0xbf):return this['canAny']([_0x37e244(0xab),_0x37e244(0x88)])||this['_grantsMatchAny']([_0x37e244(0xab),_0x37e244(0x88),_0x37e244(0xc1),'*']);case _0x37e244(0xb6):return this[_0x37e244(0x87)]('auth:read');case _0x37e244(0xd1):return this['can']('sync:read');default:return!0x1;}},'permTooltip'(_0x11a026){const _0x4c00b0=_0x226a;return this[_0x4c00b0(0x87)](_0x11a026)?'':_0x4c00b0(0xb8)+_0x11a026+_0x4c00b0(0xa3);},get 'modeLabel'(){const _0x43a5aa=_0x226a;return this['openAccess']?_0x43a5aa(0xba):_0x43a5aa(0x96)===this[_0x43a5aa(0xa4)]?_0x43a5aa(0xb4):String(this['mode']||_0x43a5aa(0xb6));},get 'visibleNotices'(){const _0x1ea71a=_0x226a;return this[_0x1ea71a(0xcb)]?[]:this[_0x1ea71a(0x9a)]||[];},'dismissNotices'(){const _0x1f19cd=_0x226a;this[_0x1f19cd(0xcb)]=!0x0;try{sessionStorage[_0x1f19cd(0x9d)]('okdb_notices_dismissed','1');}catch{}},async 'loadConfig'(){const _0xb09fa3=_0x226a,_0x47ce9e=await fetch('./login/config',{'credentials':_0xb09fa3(0x89)}),_0x4a73f4=await _0x47ce9e['json']()['catch'](()=>({}));return this['config']=_0x4a73f4?.['data']||{},this[_0xb09fa3(0xb9)];},async 'loadSession'(){const _0x3408d2=_0x226a;if(this[_0x3408d2(0xa5)])return this[_0x3408d2(0x90)]={'authenticated':!0x0,'user':{'username':'system','roles':[_0x3408d2(0xd8)]},'grants':{}},this[_0x3408d2(0x90)];const _0x1c7083=await fetch(_0x3408d2(0x8e),{'credentials':'same-origin'});if(!_0x1c7083['ok'])return this['session']={'authenticated':!0x1,'user':null,'grants':{}},this['session'];const _0x545d39=await _0x1c7083[_0x3408d2(0xbb)]()[_0x3408d2(0x95)](()=>({})),_0x5b48e7=_0x545d39?.[_0x3408d2(0xd3)]||_0x545d39?.[_0x3408d2(0xc3)]||{'authenticated':!0x1,'user':null};return this[_0x3408d2(0x90)]={'grants':{},..._0x5b48e7},this[_0x3408d2(0x90)];},async 'loadCatalog'(){const _0xcf8300=_0x226a,_0xfbcf65=await fetch(_0xcf8300(0xa7),{'credentials':_0xcf8300(0x89)});if(!_0xfbcf65['ok'])return null;const _0xec1cae=await _0xfbcf65['json']()['catch'](()=>({})),_0x55dd3b=_0xec1cae?.[_0xcf8300(0xd3)]||_0xec1cae?.['result']||null;return _0x55dd3b?.[_0xcf8300(0xd2)]&&_0x5dcbd6(_0x55dd3b[_0xcf8300(0xd2)]),this[_0xcf8300(0xc9)]=_0x55dd3b,_0x55dd3b;},async 'loadNotices'(){const _0x4b3387=_0x226a;try{if('1'===sessionStorage[_0x4b3387(0xce)]('okdb_notices_dismissed'))return void(this[_0x4b3387(0xcb)]=!0x0);const _0x866f08=await fetch(_0x4b3387(0xc7),{'credentials':'same-origin'});if(_0x866f08['ok']){const _0x403f30=await _0x866f08[_0x4b3387(0xbb)]()[_0x4b3387(0x95)](()=>({}));this[_0x4b3387(0x9a)]=_0x403f30?.[_0x4b3387(0xd3)]?.['notices']??_0x403f30?.['result']?.['notices']??[];}}catch{}},async 'init'(){const _0x547ee1=_0x226a;this[_0x547ee1(0x91)]=!0x0,this[_0x547ee1(0xca)]=null;try{await this[_0x547ee1(0x86)](),await this[_0x547ee1(0x98)](),await this[_0x547ee1(0x92)](),await this[_0x547ee1(0xa6)]();}catch(_0x1fb0ff){throw this[_0x547ee1(0xca)]=_0x1fb0ff?.[_0x547ee1(0xc8)]||String(_0x1fb0ff),_0x1fb0ff;}finally{this[_0x547ee1(0x91)]=!0x1;}},async 'logout'(){const _0x3dd04d=_0x226a;await fetch(_0x3dd04d(0xd5),{'method':_0x3dd04d(0xd6),'credentials':_0x3dd04d(0x89),'headers':{'content-type':'application/json'}})['catch'](()=>{}),this['session']={'authenticated':!0x1,'user':null};const _0x53c669=encodeURIComponent(_0x3dd04d(0xc4));window[_0x3dd04d(0xcf)][_0x3dd04d(0xd7)](_0x3dd04d(0x8f)+_0x53c669);}});
@@ -1 +1 @@
1
- const _0xe47019=_0x53bc;(function(_0xb0e04,_0x2edfb5){const _0x22452e=_0x53bc,_0x1bbfa9=_0xb0e04();while(!![]){try{const _0x54defc=-parseInt(_0x22452e(0x9a))/0x1*(parseInt(_0x22452e(0xa1))/0x2)+-parseInt(_0x22452e(0x87))/0x3+parseInt(_0x22452e(0x98))/0x4+parseInt(_0x22452e(0xb9))/0x5*(-parseInt(_0x22452e(0x94))/0x6)+-parseInt(_0x22452e(0xab))/0x7+-parseInt(_0x22452e(0xb7))/0x8*(parseInt(_0x22452e(0x82))/0x9)+-parseInt(_0x22452e(0x8f))/0xa*(-parseInt(_0x22452e(0x9c))/0xb);if(_0x54defc===_0x2edfb5)break;else _0x1bbfa9['push'](_0x1bbfa9['shift']());}catch(_0x595f4e){_0x1bbfa9['push'](_0x1bbfa9['shift']());}}}(_0x85d9,0x18de3));import{ok as _0x321a4e}from'../modules/ok.js';const t=[_0xe47019(0x9e),_0xe47019(0x8a),_0xe47019(0xb4),'system:poke',_0xe47019(0xad),'system:bus_state_change',_0xe47019(0xb2),_0xe47019(0x91),'item:remove','index:reset','index:ready',_0xe47019(0xbd),'index:drop',_0xe47019(0x9b),'fts:registered','fts:drop',_0xe47019(0xa2),_0xe47019(0x8c),_0xe47019(0x7f),'txn:end',_0xe47019(0x84),_0xe47019(0xb6),_0xe47019(0x85),'env:opened',_0xe47019(0xbf),_0xe47019(0xa8),_0xe47019(0x9d),_0xe47019(0x83),'engine:installed','engine:uninstalled',_0xe47019(0xc4),_0xe47019(0x8e),_0xe47019(0xbe),_0xe47019(0x86),_0xe47019(0x8b),_0xe47019(0xb5),_0xe47019(0x92),_0xe47019(0xc6),_0xe47019(0x89),_0xe47019(0xa3),_0xe47019(0xc0),_0xe47019(0xc1),_0xe47019(0xc5),_0xe47019(0xac),_0xe47019(0x99),_0xe47019(0xbc),_0xe47019(0xa5),'processor:resumed',_0xe47019(0xaf),_0xe47019(0x96)];function _0x53bc(_0xfe1a07,_0x43849f){_0xfe1a07=_0xfe1a07-0x7e;const _0x85d994=_0x85d9();let _0x53bcc0=_0x85d994[_0xfe1a07];return _0x53bcc0;}export{t as ALL_EVENTS};let n=null;const r={};function s(_0x30b15b){const _0x15068f=_0xe47019;try{return JSON[_0x15068f(0xbb)](_0x30b15b);}catch{return null;}}function o(_0x21a324,_0xa05fbf){const _0x4cea4c=_0xe47019,_0x283bc6=r[_0x21a324];if(_0x283bc6){for(const _0x1799a8 of _0x283bc6)try{_0x1799a8(_0xa05fbf);}catch(_0x399686){console[_0x4cea4c(0xc3)](_0x4cea4c(0xa0),_0x399686);}}}function i(_0x50d141,_0x5934ae){const _0x234eb3=_0xe47019;return[..._0x50d141[_0x234eb3(0x88)]>=0x1f4?_0x50d141[_0x234eb3(0x81)](-0x1f3):_0x50d141,_0x5934ae];}const d=_0x321a4e['proxy']({'connected':!0x1,'connecting':!0x1,'error':null,'activity':[],get 'logs'(){const _0x5cf704=_0xe47019;return this[_0x5cf704(0xa4)][_0x5cf704(0x80)](_0x36f013=>_0x5cf704(0x8d)===_0x36f013[_0x5cf704(0xb0)]);},'connect'(_0x54bbcf=null){const _0x50f7d8=_0xe47019;if(n||this[_0x50f7d8(0xba)])return;this['connecting']=!0x0,this['error']=null;let _0x4010c4=__ENV__[_0x50f7d8(0xa9)]+_0x50f7d8(0xc2);_0x54bbcf?.[_0x50f7d8(0x88)]&&(_0x4010c4+=_0x50f7d8(0x90)+encodeURIComponent(_0x54bbcf[_0x50f7d8(0xaa)](',')));const _0x5e7391=new EventSource(_0x4010c4);n=_0x5e7391,_0x5e7391['addEventListener'](_0x50f7d8(0xa6),()=>{const _0x11906d=_0x50f7d8;this[_0x11906d(0xb1)]=!0x0,this[_0x11906d(0xba)]=!0x1,this[_0x11906d(0xc3)]=null;}),_0x5e7391[_0x50f7d8(0x93)](_0x50f7d8(0xc3),()=>{const _0x461464=_0x50f7d8;this[_0x461464(0xb1)]=!0x1,this[_0x461464(0xba)]=!0x1,this[_0x461464(0xc3)]=_0x461464(0xb3);});const _0x48a1b3=_0x2286e7=>{const _0x1fadcc=_0x50f7d8,_0x5ab450=s(_0x2286e7[_0x1fadcc(0xb8)]);if(!_0x5ab450)return;const _0x33fbff={'_kind':_0x1fadcc(0x8d),'_ts':_0x5ab450['_ts']??_0x5ab450['ts']??Date[_0x1fadcc(0x95)](),..._0x5ab450};this[_0x1fadcc(0xa4)]=i(this[_0x1fadcc(0xa4)],_0x33fbff),o(_0x1fadcc(0x8d),_0x5ab450);};_0x5e7391['addEventListener']('log',_0x48a1b3);for(const _0x30823b of t)_0x5e7391[_0x50f7d8(0x93)](_0x30823b,_0xbf2338=>{const _0x5c9348=_0x50f7d8;try{const _0x43a728=s(_0xbf2338[_0x5c9348(0xb8)]);if(!_0x43a728)return;const _0x16db11={'_kind':'event','_event':_0x30823b,'_ts':_0x43a728[_0x5c9348(0x7e)]??Date[_0x5c9348(0x95)](),..._0x43a728};this['activity']=i(this[_0x5c9348(0xa4)],_0x16db11),o(_0x30823b,_0x43a728);}catch{}});_0x5e7391[_0x50f7d8(0xae)]=_0x48a1b3;},'disconnect'(){const _0x3fd1e5=_0xe47019;n?.[_0x3fd1e5(0xa7)](),n=null,this[_0x3fd1e5(0xb1)]=!0x1,this[_0x3fd1e5(0xba)]=!0x1;},'on':(_0x393ccd,_0x464731)=>(r[_0x393ccd]||(r[_0x393ccd]=new Set()),r[_0x393ccd][_0xe47019(0x97)](_0x464731),()=>r[_0x393ccd]?.['delete'](_0x464731)),'clearActivity'(){const _0xbc35c7=_0xe47019;this[_0xbc35c7(0xa4)]=[];},'clearLogs'(){const _0x18d755=_0xe47019;this[_0x18d755(0x9f)]();}});function _0x85d9(){const _0x35073c=['processor:progress','447BeFBog','index:registered','11tCfQPH','engine:stopped','system:ready','clearActivity','events-store\x20handler\x20error','822PMtKdR','fts:reset','queue:failed','activity','processor:paused','open','close','engine:started','API','join','280497QCHPLx','processor:ready','system:drain','onmessage','processor:retry','_kind','connected','item:create','Stream\x20disconnected\x20—\x20reconnecting…','system:clock_change','embeddings:doc:status_change','type:registered','4024cGgAhm','data','4910MVNaNI','connecting','parse','processor:error','index:progress','embeddings:indexer:doc:done','env:removed','queue:retry','queue:removed','/events','error','embeddings:indexer:ready','queue:reconciled','queue:enqueued','_ts','txn:start','filter','slice','1773vpQqdM','engine:error','txn:rollback','type:drop','embeddings:indexer:doc:failed','323769bzeunv','length','queue:done','system:stopped','embeddings:indexer:doc:queued','sync:apply','log','embeddings:indexer:flushed','5628890hqeSFg','?types=','item:update','embeddings:pipeline:ready','addEventListener','1098iFqgMw','now','relay:error','add','597912indoXx'];_0x85d9=function(){return _0x35073c;};return _0x85d9();}export default d;
1
+ const _0xb1fee9=_0x115d;(function(_0x563e36,_0x4b2e4a){const _0x48ae61=_0x115d,_0x26fd18=_0x563e36();while(!![]){try{const _0x836b66=parseInt(_0x48ae61(0x1c3))/0x1*(-parseInt(_0x48ae61(0x1d4))/0x2)+-parseInt(_0x48ae61(0x1f0))/0x3*(parseInt(_0x48ae61(0x1d5))/0x4)+-parseInt(_0x48ae61(0x1c2))/0x5*(-parseInt(_0x48ae61(0x1dd))/0x6)+parseInt(_0x48ae61(0x1de))/0x7+parseInt(_0x48ae61(0x1ea))/0x8+parseInt(_0x48ae61(0x1e6))/0x9*(parseInt(_0x48ae61(0x1e0))/0xa)+-parseInt(_0x48ae61(0x1fc))/0xb;if(_0x836b66===_0x4b2e4a)break;else _0x26fd18['push'](_0x26fd18['shift']());}catch(_0x45c7cc){_0x26fd18['push'](_0x26fd18['shift']());}}}(_0x35fe,0x470a1));import{ok as _0xf144ef}from'../modules/ok.js';const t=[_0xb1fee9(0x1c7),_0xb1fee9(0x1bb),_0xb1fee9(0x1cc),_0xb1fee9(0x1c6),'system:drain',_0xb1fee9(0x1cf),_0xb1fee9(0x1ca),'item:update',_0xb1fee9(0x1d0),_0xb1fee9(0x1f5),'index:ready','index:progress',_0xb1fee9(0x1d3),_0xb1fee9(0x1d8),_0xb1fee9(0x1db),_0xb1fee9(0x1f3),'fts:reset','sync:apply',_0xb1fee9(0x1c0),'txn:end','txn:rollback',_0xb1fee9(0x1da),_0xb1fee9(0x1f2),_0xb1fee9(0x1dc),'env:removed','engine:started','engine:stopped',_0xb1fee9(0x1c4),'engine:installed',_0xb1fee9(0x1ef),_0xb1fee9(0x1c5),_0xb1fee9(0x1d7),_0xb1fee9(0x1e8),_0xb1fee9(0x1fb),'embeddings:indexer:doc:queued',_0xb1fee9(0x1ce),_0xb1fee9(0x1bd),_0xb1fee9(0x1e1),_0xb1fee9(0x1be),_0xb1fee9(0x1c8),_0xb1fee9(0x1df),'queue:removed',_0xb1fee9(0x1f8),_0xb1fee9(0x1d1),_0xb1fee9(0x1bc),'processor:error',_0xb1fee9(0x1cb),_0xb1fee9(0x1d9),_0xb1fee9(0x1f1),_0xb1fee9(0x1e3)];export{t as ALL_EVENTS};function _0x115d(_0x1d99f3,_0x355a79){_0x1d99f3=_0x1d99f3-0x1bb;const _0x35fed7=_0x35fe();let _0x115dde=_0x35fed7[_0x1d99f3];return _0x115dde;}let n=null;const r={};function s(_0x1bcf8d){const _0x4990d3=_0xb1fee9;try{return JSON[_0x4990d3(0x1d6)](_0x1bcf8d);}catch{return null;}}function o(_0x3db667,_0x253778){const _0x108b04=_0xb1fee9,_0x211e37=r[_0x3db667];if(_0x211e37){for(const _0x4cc972 of _0x211e37)try{_0x4cc972(_0x253778);}catch(_0x27f1fe){console[_0x108b04(0x1c1)](_0x108b04(0x1d2),_0x27f1fe);}}}function _0x35fe(){const _0x1d214=['type:drop','fts:drop','length','index:reset','activity','data','queue:reconciled','addEventListener','log','embeddings:indexer:doc:failed','6870039CpHUht','event','system:stopped','processor:progress','embeddings:pipeline:ready','queue:done','filter','txn:start','error','5LEtbuY','105217BIEufY','engine:error','embeddings:indexer:ready','system:poke','system:ready','queue:failed','delete','item:create','processor:paused','system:clock_change','add','embeddings:doc:status_change','system:bus_state_change','item:remove','processor:ready','events-store\x20handler\x20error','index:drop','4zFsuRd','509452JTEvPr','parse','embeddings:indexer:flushed','index:registered','processor:resumed','type:registered','fts:registered','env:opened','1804266kKWPvb','1100743RamWfb','queue:retry','10UuIwsF','queue:enqueued','now','relay:error','connected','_ts','4693446iNwnUu','join','embeddings:indexer:doc:done','clearActivity','2190952RVMrrL','open','API','connecting','slice','engine:uninstalled','3vYdmtm','processor:retry'];_0x35fe=function(){return _0x1d214;};return _0x35fe();}function i(_0xd22576,_0x47b5b5){const _0x1ce9aa=_0xb1fee9;return[..._0xd22576['length']>=0x1f4?_0xd22576[_0x1ce9aa(0x1ee)](-0x1f3):_0xd22576,_0x47b5b5];}const d=_0xf144ef['proxy']({'connected':!0x1,'connecting':!0x1,'error':null,'activity':[],get 'logs'(){const _0x1062d4=_0xb1fee9;return this['activity'][_0x1062d4(0x1bf)](_0x1a2a20=>_0x1062d4(0x1fa)===_0x1a2a20['_kind']);},'connect'(_0x5c3755=null){const _0x445c82=_0xb1fee9;if(n||this[_0x445c82(0x1ed)])return;this['connecting']=!0x0,this['error']=null;let _0x2f3dac=__ENV__[_0x445c82(0x1ec)]+'/events';_0x5c3755?.[_0x445c82(0x1f4)]&&(_0x2f3dac+='?types='+encodeURIComponent(_0x5c3755[_0x445c82(0x1e7)](',')));const _0x533f27=new EventSource(_0x2f3dac);n=_0x533f27,_0x533f27[_0x445c82(0x1f9)](_0x445c82(0x1eb),()=>{const _0x2d5bd0=_0x445c82;this[_0x2d5bd0(0x1e4)]=!0x0,this[_0x2d5bd0(0x1ed)]=!0x1,this[_0x2d5bd0(0x1c1)]=null;}),_0x533f27[_0x445c82(0x1f9)](_0x445c82(0x1c1),()=>{const _0x1d3973=_0x445c82;this[_0x1d3973(0x1e4)]=!0x1,this[_0x1d3973(0x1ed)]=!0x1,this[_0x1d3973(0x1c1)]='Stream\x20disconnected\x20—\x20reconnecting…';});const _0xd7e661=_0x351d35=>{const _0x5364b7=_0x445c82,_0x17b556=s(_0x351d35[_0x5364b7(0x1f7)]);if(!_0x17b556)return;const _0x4d4530={'_kind':'log','_ts':_0x17b556[_0x5364b7(0x1e5)]??_0x17b556['ts']??Date[_0x5364b7(0x1e2)](),..._0x17b556};this[_0x5364b7(0x1f6)]=i(this['activity'],_0x4d4530),o(_0x5364b7(0x1fa),_0x17b556);};_0x533f27[_0x445c82(0x1f9)](_0x445c82(0x1fa),_0xd7e661);for(const _0x5d7a45 of t)_0x533f27[_0x445c82(0x1f9)](_0x5d7a45,_0x523a55=>{const _0x244604=_0x445c82;try{const _0x49fae1=s(_0x523a55[_0x244604(0x1f7)]);if(!_0x49fae1)return;const _0x1c837d={'_kind':_0x244604(0x1fd),'_event':_0x5d7a45,'_ts':_0x49fae1[_0x244604(0x1e5)]??Date[_0x244604(0x1e2)](),..._0x49fae1};this[_0x244604(0x1f6)]=i(this[_0x244604(0x1f6)],_0x1c837d),o(_0x5d7a45,_0x49fae1);}catch{}});_0x533f27['onmessage']=_0xd7e661;},'disconnect'(){const _0xee442c=_0xb1fee9;n?.['close'](),n=null,this['connected']=!0x1,this[_0xee442c(0x1ed)]=!0x1;},'on':(_0x597031,_0x234e74)=>(r[_0x597031]||(r[_0x597031]=new Set()),r[_0x597031][_0xb1fee9(0x1cd)](_0x234e74),()=>r[_0x597031]?.[_0xb1fee9(0x1c9)](_0x234e74)),'clearActivity'(){const _0x31c79d=_0xb1fee9;this[_0x31c79d(0x1f6)]=[];},'clearLogs'(){const _0x36093a=_0xb1fee9;this[_0x36093a(0x1e9)]();}});export default d;
@@ -1 +1 @@
1
- const _0x59b7f0=_0x3260;(function(_0x16fb8b,_0xddc102){const _0x19b2b4=_0x3260,_0x35e740=_0x16fb8b();while(!![]){try{const _0x2ca665=parseInt(_0x19b2b4(0x10b))/0x1*(parseInt(_0x19b2b4(0x13e))/0x2)+parseInt(_0x19b2b4(0x12e))/0x3+parseInt(_0x19b2b4(0x120))/0x4+-parseInt(_0x19b2b4(0xe8))/0x5+parseInt(_0x19b2b4(0x14b))/0x6+-parseInt(_0x19b2b4(0x101))/0x7+-parseInt(_0x19b2b4(0xea))/0x8*(parseInt(_0x19b2b4(0xf1))/0x9);if(_0x2ca665===_0xddc102)break;else _0x35e740['push'](_0x35e740['shift']());}catch(_0x562b42){_0x35e740['push'](_0x35e740['shift']());}}}(_0x41c8,0xce38f));import{ok as _0x338a26}from'../modules/ok.js';import _0xbaeb74 from'./okdb-store.js';import _0x44b670 from'./events-store.js';function _0x41c8(){const _0x4fd748=['functionsBase','POST','setModalPayloadDraft','3342078UzWgYX','trim','overview','modalPayloadError','\x20\x20return\x20{\x20ok:\x20true\x20};','Payload\x20JSON\x20is\x20invalid','data','stringify','beginCreateDraft','modalNameDraft','logs','envName','level','import','loading','console','70chkZvF','payloadError','/runs/','now','modalRunning','loadList','modalDescriptionDraft','/functions','create','selectedName','items','modalUnsafeDraft','sourceDraft','6495420vpRcTL','Function\x20script\x20must\x20be\x20an\x20anonymous\x20arrow\x20function\x20of\x20the\x20form\x20[async]\x20(ctx)\x20=>\x20{}','join','modalSourceDraft','dryRunMode','modalPreviewRun','has','modalValidation','encode','detail','FUNCTION_SCRIPT_TOO_LARGE','getLogsForRun','FUNCTION_SCRIPT_REQUIRED','filter','find','finishedAt','code','modalMaterializerContextDraft','/env/','source','resetSelection','reloadList','edit','length','memoryMb','isFinite','worker_threads','sort','selected','return\x20(','select','loadRuns','\x20\x20//\x20ctx.env\x20\x20\x20\x20\x20—\x20env-scoped\x20facade:\x20put,\x20get,\x20query,\x20txn,\x20queue,\x20files,\x20...','Failed\x20to\x20save\x20function','/preview','runs','requestedAt','logsForRun','name','currentView','message','replace','timeoutMs','\x20\x20//\x20ctx.log\x20\x20\x20\x20\x20—\x20structured\x20logger:\x20ctx.log.info(msg,\x20data)','/runs','catch','_ts','7424845sGYTTT','modalAllowFetchDraft','8zvulxc','Function\x20script\x20failed\x20to\x20compile','Function\x20script\x20exceeds\x2065536\x20bytes','\x20\x20//\x20Tip:\x20use\x20the\x20\x22seed\x22\x20template\x20when\x20you\x20want\x20bulk\x20inserts\x20via\x20ctx.env.txn(...)','info','DELETE','\x20\x20//\x20ctx.payload\x20—\x20caller\x20input','17144154xSQjEw','meta','loadOverviewRuns','runId','modalJobContextDraft','{\x0a\x20\x20\x0a}','PUT','hydrateOverview','Function\x20script\x20source\x20is\x20required','latestRun','setModalSourceDraft','test','request','parsePayloadDraft','msg','execution','7179438UjgoXB','proxy','buildModalDefinition','hasEnv','Failed\x20to\x20run\x20function','map','selectedRun','live','setModalPreviewContext','overviewRuns','39747gKujWs','running','saving','isArray','FUNCTION_SCRIPT_INVALID_SHAPE','modalEnabledDraft','title','string','add','runtime','enabled','key','modalMode','value','modalProcessorContextDraft','payloadDraft','modalMemoryMbDraft','json','FUNCTION_SCRIPT_COMPILE_FAILED','/run','application/json','6689820Ffduzy','modalTimeoutMsDraft','modalPayloadDraft','slice','validateSource','error','parse','modalPreviewLogs','push','set','script'];_0x41c8=function(){return _0x4fd748;};return _0x41c8();}const a=['async\x20(ctx)\x20=>\x20{',_0x59b7f0(0xf0),_0x59b7f0(0xd9),_0x59b7f0(0xe4),_0x59b7f0(0xed),'',_0x59b7f0(0x132),'}'][_0x59b7f0(0xbb)]('\x0a'),r=_0x59b7f0(0xf6),i=[{'symbol':'require','pattern':/(^|[^\w$.])require\s*\(/},{'symbol':_0x59b7f0(0x13b),'pattern':/(^|[^\w$.])import\b/},{'symbol':_0x59b7f0(0x13d),'pattern':/(^|[^\w$.])console\b/},{'symbol':'module','pattern':/(^|[^\w$.])module\b/},{'symbol':'exports','pattern':/(^|[^\w$.])exports\b/},{'symbol':'process','pattern':/(^|[^\w$.])process\b/},{'symbol':'child_process','pattern':/child_process/},{'symbol':_0x59b7f0(0xd3),'pattern':/worker_threads/}];function _0x3260(_0x4445f9,_0x2ec482){_0x4445f9=_0x4445f9-0xba;const _0x41c8c2=_0x41c8();let _0x3260f2=_0x41c8c2[_0x4445f9];return _0x3260f2;}function n(_0x33f525){const _0x85f6f5=_0x59b7f0;return null==_0x33f525?_0x33f525:JSON[_0x85f6f5(0x126)](JSON[_0x85f6f5(0x135)](_0x33f525));}function o(_0xa1cb62={},_0x432e04='persisted'){const _0x1ab23b=_0x59b7f0,_0x72aa6c=_0xa1cb62?.['meta']??null,_0xe5bf82=_0xa1cb62?.['msg']??_0xa1cb62?.[_0x1ab23b(0xe1)]??_0xa1cb62?.['content']??_0xa1cb62?.[_0x1ab23b(0x111)]??'';return{'runId':_0xa1cb62?.[_0x1ab23b(0xf4)]??_0x72aa6c?.[_0x1ab23b(0xf4)]??null,'ts':_0xa1cb62?.['ts']??_0xa1cb62?.[_0x1ab23b(0xe7)]??Date[_0x1ab23b(0x141)](),'level':_0xa1cb62?.[_0x1ab23b(0x13a)]??_0x1ab23b(0xee),'msg':'string'==typeof _0xe5bf82?_0xe5bf82:JSON[_0x1ab23b(0x135)](_0xe5bf82??''),'meta':_0x72aa6c,'source':_0x432e04};}export default _0x338a26[_0x59b7f0(0x102)]({'items':[],'selectedName':null,'selected':null,'runs':[],'overviewRuns':[],'selectedRun':null,'sourceDraft':'','payloadDraft':r,'currentView':_0x59b7f0(0x130),'modalMode':_0x59b7f0(0x146),'modalNameDraft':'','modalSourceDraft':a,'modalPayloadDraft':r,'modalJobContextDraft':null,'modalProcessorContextDraft':null,'modalMaterializerContextDraft':null,'modalDescriptionDraft':'','modalEnabledDraft':!0x0,'modalUnsafeDraft':!0x1,'modalTimeoutMsDraft':null,'modalMemoryMbDraft':null,'modalAllowFetchDraft':!0x0,'modalValidation':{'ok':!0x1,'code':'FUNCTION_SCRIPT_REQUIRED','message':_0x59b7f0(0xf9)},'modalPayloadError':null,'modalPreviewRun':null,'modalPreviewLogs':[],'modalRunning':!0x1,'modalDryRunMode':!0x1,'loading':!0x1,'saving':!0x1,'running':!0x1,'dryRunMode':!0x1,'payloadError':null,'error':null,get 'envName'(){return _0xbaeb74['selectedEnv']||null;},get 'isGlobalScope'(){const _0x1d7dbf=_0x59b7f0;return'~system'===this[_0x1d7dbf(0x139)];},get 'hasEnv'(){const _0x2048c8=_0x59b7f0;return!!this[_0x2048c8(0x139)];},get 'functionsBase'(){const _0x5c1ea=_0x59b7f0;return this['envName']?__ENV__['API']+_0x5c1ea(0xcb)+encodeURIComponent(this[_0x5c1ea(0x139)])+_0x5c1ea(0x145):null;},get 'canOpenModal'(){return!!this['functionsBase'];},get 'hasSelected'(){const _0x128e45=_0x59b7f0;return!!this[_0x128e45(0x147)]&&!!this[_0x128e45(0xd5)];},get 'latestRun'(){const _0x24dd9c=_0x59b7f0;return this[_0x24dd9c(0xdc)]?.[0x0]?.[_0x24dd9c(0x118)]||this[_0x24dd9c(0xdc)]?.[0x0]||null;},get 'activeRun'(){return this['selectedRun']||this['latestRun']||null;},get 'functionsOverview'(){const _0xa80b98=_0x59b7f0,_0x53c661=new Map();for(const _0x39bf56 of this[_0xa80b98(0x10a)]||[]){const _0x482b60=_0x39bf56?.['value']||_0x39bf56,_0x51e457=_0x482b60?.['functionName'];_0x51e457&&!_0x53c661[_0xa80b98(0xbf)](_0x51e457)&&_0x53c661[_0xa80b98(0x129)](_0x51e457,_0x482b60);}return(this[_0xa80b98(0x148)]||[])[_0xa80b98(0x106)](_0x50ffea=>({..._0x50ffea,'latestRun':_0x53c661['get'](_0x50ffea?.[_0xa80b98(0x116)])||null}));},get 'selectedFunctionTitle'(){const _0x7a6881=_0x59b7f0;return this['selected']?.[_0x7a6881(0xdf)]||this['selectedName']||null;},get 'selectedLogEntries'(){const _0x43bd95=_0x59b7f0,_0x38a46f=this['selectedRun']?.['id']||this[_0x43bd95(0x107)]?.['runId'];if(_0x38a46f)return this[_0x43bd95(0xde)](_0x38a46f);const _0x14e9d8=this[_0x43bd95(0xfa)]?.['id']||this['latestRun']?.['runId'];return _0x14e9d8?this[_0x43bd95(0xde)](_0x14e9d8):[];},'logsForRun'(_0x57b743){const _0x1f3b36=_0x59b7f0;if(!_0x57b743)return[];const _0x1ee132=[this['selectedRun'],this['latestRun'],...(this[_0x1f3b36(0xdc)]||[])[_0x1f3b36(0x106)](_0x3b79c7=>_0x3b79c7?.[_0x1f3b36(0x118)]||_0x3b79c7)]['find'](_0x27bf25=>(_0x27bf25?.['id']||_0x27bf25?.[_0x1f3b36(0xf4)])===_0x57b743)?.['logs'],_0x1d1323=[...Array[_0x1f3b36(0x10e)](_0x1ee132)?_0x1ee132[_0x1f3b36(0x106)](_0x4847d2=>o(_0x4847d2,'persisted')):[],...(_0x44b670['logs']||[])[_0x1f3b36(0xc6)](_0x3e905c=>(_0x3e905c?.[_0x1f3b36(0xf4)]||_0x3e905c?.[_0x1f3b36(0xf2)]?.[_0x1f3b36(0xf4)])===_0x57b743)[_0x1f3b36(0x106)](_0x3d1600=>o(_0x3d1600,_0x1f3b36(0x108)))],_0x1a7c85=new Set(),_0x11a92f=[];for(const _0x34d004 of _0x1d1323){const _0x4147d6=_0x34d004[_0x1f3b36(0xf4)]+'|'+_0x34d004['ts']+'|'+_0x34d004[_0x1f3b36(0x13a)]+'|'+_0x34d004[_0x1f3b36(0xff)]+'|'+JSON[_0x1f3b36(0x135)](_0x34d004['meta']??null);_0x1a7c85[_0x1f3b36(0xbf)](_0x4147d6)||(_0x1a7c85[_0x1f3b36(0x113)](_0x4147d6),_0x11a92f[_0x1f3b36(0x128)](_0x34d004));}return _0x11a92f['sort']((_0xbdf427,_0x51cdcd)=>(_0xbdf427['ts']??0x0)-(_0x51cdcd['ts']??0x0)),_0x11a92f;},'resetSelection'(){const _0x5848bc=_0x59b7f0;this[_0x5848bc(0x147)]=null,this[_0x5848bc(0xd5)]=null,this[_0x5848bc(0xdc)]=[],this[_0x5848bc(0x10a)]=[],this[_0x5848bc(0x107)]=null,this['sourceDraft']='',this[_0x5848bc(0x11a)]=r,this[_0x5848bc(0x13f)]=null,this['error']=null;},'validateSource'(_0x33f7ed){const _0xf78cf0=_0x59b7f0,_0x5defdf=_0xf78cf0(0x112)==typeof _0x33f7ed?_0x33f7ed[_0xf78cf0(0xe2)](/\r\n/g,'\x0a')[_0xf78cf0(0x12f)]():'';if(!_0x5defdf)return{'ok':!0x1,'code':_0xf78cf0(0xc5),'message':_0xf78cf0(0xf9)};const _0x38c916=new TextEncoder()[_0xf78cf0(0xc1)](_0x5defdf)[_0xf78cf0(0xd0)];if(_0x38c916>0x10000)return{'ok':!0x1,'code':_0xf78cf0(0xc3),'message':_0xf78cf0(0xec)};if(!/^(async\s+)?\(\s*[A-Za-z_$][\w$]*\s*\)\s*=>/[_0xf78cf0(0xfc)](_0x5defdf))return{'ok':!0x1,'code':_0xf78cf0(0x10f),'message':_0xf78cf0(0xba)};for(const {symbol:_0x26988e,pattern:_0x2fea01}of i)if(_0x2fea01[_0xf78cf0(0xfc)](_0x5defdf))return{'ok':!0x1,'code':'FUNCTION_SCRIPT_FORBIDDEN_SYMBOL','message':'Function\x20script\x20may\x20not\x20reference\x20'+_0x26988e};try{new Function(_0xf78cf0(0xd6)+_0x5defdf+');')();}catch(_0x2e45e9){return{'ok':!0x1,'code':_0xf78cf0(0x11d),'message':_0x2e45e9?.['message']||_0xf78cf0(0xeb)};}return{'ok':!0x0,'code':null,'message':'','normalizedSource':_0x5defdf,'bytes':_0x38c916};},'parsePayloadDraft'(_0x241404=this[_0x59b7f0(0x11a)]){const _0x3a25e9=_0x59b7f0,_0x5f6bae=String(_0x241404??'')[_0x3a25e9(0x12f)]();return _0x5f6bae?JSON[_0x3a25e9(0x126)](_0x5f6bae):null;},'setModalSourceDraft'(_0x4f2386){const _0x1e5382=_0x59b7f0;this[_0x1e5382(0xbc)]=_0x4f2386??'',this[_0x1e5382(0xc0)]=this[_0x1e5382(0x124)](this[_0x1e5382(0xbc)]);},'setModalPayloadDraft'(_0x147747){const _0xcf0472=_0x59b7f0;this[_0xcf0472(0x122)]=_0x147747??r;try{this[_0xcf0472(0xfe)](this[_0xcf0472(0x122)]),this[_0xcf0472(0x131)]=null;}catch(_0x38696c){this[_0xcf0472(0x131)]=_0x38696c?.[_0xcf0472(0xe1)]||'Payload\x20JSON\x20is\x20invalid';}},'setModalPreviewContext'({jobContext:_0x319dfa=null,processorContext:_0x529483=null,materializerContext:_0x37f1d4=null}={}){const _0x39bd2e=_0x59b7f0;this[_0x39bd2e(0xf5)]=n(_0x319dfa),this[_0x39bd2e(0x119)]=n(_0x529483),this[_0x39bd2e(0xca)]=n(_0x37f1d4);},'beginCreateDraft'(){const _0x4ce683=_0x59b7f0;this[_0x4ce683(0x117)]=_0x4ce683(0x146),this['modalNameDraft']='',this[_0x4ce683(0x144)]='',this[_0x4ce683(0x110)]=!0x0,this['modalUnsafeDraft']=!0x1,this[_0x4ce683(0x121)]=null,this['modalMemoryMbDraft']=null,this['modalAllowFetchDraft']=!0x0,this[_0x4ce683(0xbe)]=null,this[_0x4ce683(0x127)]=[],this[_0x4ce683(0x109)]({}),this[_0x4ce683(0x12d)](this[_0x4ce683(0x11a)]||r),this[_0x4ce683(0xfb)](a);},'beginEditDraft'(){const _0x307111=_0x59b7f0,_0x41734d=this['selected'];this[_0x307111(0x117)]=_0x307111(0xcf),this[_0x307111(0x137)]=_0x41734d?.[_0x307111(0xdf)]||this['selectedName']||'',this['modalDescriptionDraft']=_0x41734d?.['metadata']?.['description']||'',this[_0x307111(0x110)]=!0x1!==_0x41734d?.[_0x307111(0x115)],this[_0x307111(0x149)]=!0x0===_0x41734d?.['unsafe'],this[_0x307111(0x121)]=_0x41734d?.[_0x307111(0x114)]?.[_0x307111(0xe3)]??null,this['modalMemoryMbDraft']=_0x41734d?.[_0x307111(0x114)]?.[_0x307111(0xd1)]??null,this[_0x307111(0xe9)]=!0x1!==_0x41734d?.['runtime']?.['allowFetch'],this[_0x307111(0xbe)]=null,this['modalPreviewLogs']=[],this[_0x307111(0x109)]({}),this[_0x307111(0x12d)](this[_0x307111(0x11a)]||r),this[_0x307111(0xfb)](_0x41734d?.[_0x307111(0x12a)]?.['source']||this[_0x307111(0x14a)]||a);},'buildModalDefinition'(){const _0x1d2eac=_0x59b7f0,_0x5282ca={};return Number[_0x1d2eac(0xd2)](this[_0x1d2eac(0x121)])&&this[_0x1d2eac(0x121)]>0x0&&(_0x5282ca[_0x1d2eac(0xe3)]=this[_0x1d2eac(0x121)]),Number['isFinite'](this['modalMemoryMbDraft'])&&this[_0x1d2eac(0x11b)]>0x0&&(_0x5282ca['memoryMb']=this['modalMemoryMbDraft']),_0x5282ca['allowFetch']=!0x1!==this[_0x1d2eac(0xe9)],{'name':String(this[_0x1d2eac(0x137)]||'')[_0x1d2eac(0x12f)](),'source':this[_0x1d2eac(0xc0)]?.['normalizedSource']||String(this[_0x1d2eac(0xbc)]||'')[_0x1d2eac(0x12f)](),'metadata':{'description':String(this['modalDescriptionDraft']||'')[_0x1d2eac(0x12f)]()},'enabled':!0x1!==this['modalEnabledDraft'],'unsafe':!0x0===this[_0x1d2eac(0x149)],'runtime':_0x5282ca};},get 'canSaveModal'(){const _0x43da0d=_0x59b7f0;return!(!String(this[_0x43da0d(0x137)]||'')[_0x43da0d(0x12f)]()||!this[_0x43da0d(0xc0)]?.['ok']||this[_0x43da0d(0x131)]||this[_0x43da0d(0x10d)]);},async 'loadList'(){const _0x2fceca=_0x59b7f0;if(!this['functionsBase'])return[];this[_0x2fceca(0x13c)]=!0x0,this['error']=null;try{const _0x700b33=await fetch(this[_0x2fceca(0x12b)]),_0x59d330=await _0x700b33[_0x2fceca(0x11c)]();return this[_0x2fceca(0x148)]=_0x59d330?.[_0x2fceca(0x134)]||[],this['selectedName']&&(this[_0x2fceca(0x148)]['find'](_0x24f3d7=>_0x24f3d7['key']===this[_0x2fceca(0x147)])||this[_0x2fceca(0xcd)]()),this[_0x2fceca(0x148)];}catch(_0x2a28c4){throw this[_0x2fceca(0x125)]=_0x2a28c4?.[_0x2fceca(0xe1)]||'Failed\x20to\x20load\x20functions',_0x2a28c4;}finally{this[_0x2fceca(0x13c)]=!0x1;}},async 'reloadList'(){const _0x501696=_0x59b7f0;return this[_0x501696(0x148)]=[],this[_0x501696(0x143)]();},'setView'(_0x17c4d9='overview'){const _0x398e67=_0x59b7f0;this[_0x398e67(0xe0)]='detail'===_0x17c4d9?_0x398e67(0xc2):_0x398e67(0x130);},async 'loadOverviewRuns'(_0x1208eb=0x18){const _0x38829c=_0x59b7f0;if(!this[_0x38829c(0x12b)])return[];const _0x3185cd=(this[_0x38829c(0x148)]||[])[_0x38829c(0x106)](_0x531e9f=>_0x531e9f?.[_0x38829c(0x116)])['filter'](Boolean),_0x2b1adf=[];for(const _0x140c04 of _0x3185cd){const _0x1d1c37=await fetch(this[_0x38829c(0x12b)]+'/'+encodeURIComponent(_0x140c04)+_0x38829c(0xe5)),_0x2e8ff4=await _0x1d1c37['json'](),_0x2a2655=(_0x2e8ff4?.['data']||[])[_0x38829c(0x106)](_0x30bef7=>_0x30bef7?.[_0x38829c(0x118)]?_0x30bef7:{'key':_0x30bef7?.['id']||_0x30bef7?.[_0x38829c(0xf4)],'value':_0x30bef7});_0x2b1adf[_0x38829c(0x128)](..._0x2a2655);}return _0x2b1adf[_0x38829c(0xd4)]((_0xfed26,_0x47dc89)=>{const _0x1fe66c=_0x38829c,_0x7a3faf=_0xfed26?.['value']?.[_0x1fe66c(0x100)]?.['finishedAt']??_0xfed26?.[_0x1fe66c(0x118)]?.[_0x1fe66c(0xfd)]?.[_0x1fe66c(0xdd)]??0x0;return(_0x47dc89?.['value']?.[_0x1fe66c(0x100)]?.[_0x1fe66c(0xc8)]??_0x47dc89?.[_0x1fe66c(0x118)]?.[_0x1fe66c(0xfd)]?.[_0x1fe66c(0xdd)]??0x0)-_0x7a3faf;}),this[_0x38829c(0x10a)]=_0x2b1adf[_0x38829c(0x123)](0x0,_0x1208eb),this[_0x38829c(0x10a)];},async 'hydrateOverview'(){const _0x41ae5d=_0x59b7f0;await this[_0x41ae5d(0x143)](),await this[_0x41ae5d(0xf3)]();},async 'select'(_0x4ac3e1){const _0x48adfc=_0x59b7f0;if(this[_0x48adfc(0x147)]=_0x4ac3e1||null,this[_0x48adfc(0x107)]=null,this[_0x48adfc(0xe0)]=_0x4ac3e1?_0x48adfc(0xc2):'overview',!_0x4ac3e1)return this[_0x48adfc(0xd5)]=null,this[_0x48adfc(0x14a)]='',this['runs']=[],null;const _0x5e33e0=await fetch(this[_0x48adfc(0x12b)]+'/'+encodeURIComponent(_0x4ac3e1)),_0x25ae78=await _0x5e33e0[_0x48adfc(0x11c)]();if(this[_0x48adfc(0xd5)]=_0x25ae78?.[_0x48adfc(0x134)]||null,this['sourceDraft']=this[_0x48adfc(0xd5)]?.[_0x48adfc(0x12a)]?.[_0x48adfc(0xcc)]||'',this[_0x48adfc(0x13f)]=null,await this[_0x48adfc(0xd8)](_0x4ac3e1),!this[_0x48adfc(0x107)]&&this[_0x48adfc(0xdc)]?.[_0x48adfc(0xd0)]){const _0x1da36a=this['runs'][0x0];this['selectedRun']=_0x1da36a?.[_0x48adfc(0x118)]||_0x1da36a||null;}return this[_0x48adfc(0xd5)];},async 'loadRuns'(_0x53fa1c=this[_0x59b7f0(0x147)]){const _0x485d1c=_0x59b7f0;if(!_0x53fa1c)return this[_0x485d1c(0xdc)]=[],[];const _0x24736f=await fetch(this[_0x485d1c(0x12b)]+'/'+encodeURIComponent(_0x53fa1c)+'/runs'),_0x3e8499=await _0x24736f[_0x485d1c(0x11c)]();if(this[_0x485d1c(0xdc)]=_0x3e8499?.[_0x485d1c(0x134)]||[],this[_0x485d1c(0x107)]){const _0x2d3fe9=this[_0x485d1c(0x107)]?.['id']||this[_0x485d1c(0x107)]?.[_0x485d1c(0xf4)],_0x23089c=this['runs'][_0x485d1c(0x106)](_0x19a3c1=>_0x19a3c1?.[_0x485d1c(0x118)]||_0x19a3c1)[_0x485d1c(0xc7)](_0x211d52=>(_0x211d52?.['id']||_0x211d52?.[_0x485d1c(0xf4)])===_0x2d3fe9);this['selectedRun']=_0x23089c||null;}return this['runs'];},async 'refreshSelected'(){const _0x65a9ec=_0x59b7f0;if(!this['selectedName'])return null;const _0x47e21a=this['selectedRun']?.['id']||this['selectedRun']?.[_0x65a9ec(0xf4)];if(await this[_0x65a9ec(0xd7)](this[_0x65a9ec(0x147)]),_0x47e21a){const _0x91b72d=this['runs'][_0x65a9ec(0x106)](_0x2d71b5=>_0x2d71b5?.['value']||_0x2d71b5)[_0x65a9ec(0xc7)](_0x134489=>(_0x134489?.['id']||_0x134489?.[_0x65a9ec(0xf4)])===_0x47e21a);this[_0x65a9ec(0x107)]=_0x91b72d||this[_0x65a9ec(0x107)];}return await this['loadOverviewRuns'](),this[_0x65a9ec(0xd5)];},'setSourceDraft'(_0x53c97d){const _0x24c64c=_0x59b7f0;this[_0x24c64c(0x14a)]=_0x53c97d??'';},'setPayloadDraft'(_0x55cfd6){const _0x564947=_0x59b7f0;this[_0x564947(0x11a)]=_0x55cfd6??r;try{this['parsePayloadDraft'](this[_0x564947(0x11a)]),this[_0x564947(0x13f)]=null;}catch(_0x9bee41){this[_0x564947(0x13f)]=_0x9bee41?.[_0x564947(0xe1)]||_0x564947(0x133);}},async 'create'(_0x29cf47={}){const _0x399570=_0x59b7f0;this[_0x399570(0x10d)]=!0x0,this[_0x399570(0x125)]=null;try{const _0x48f978={..._0x29cf47},_0x832d01=await fetch(this[_0x399570(0x12b)],{'method':_0x399570(0x12c),'headers':{'content-type':'application/json'},'body':JSON[_0x399570(0x135)](_0x48f978)}),_0x6ada89=await _0x832d01[_0x399570(0x11c)]();if(!_0x832d01['ok'])throw new Error(_0x6ada89?.[_0x399570(0x125)]?.['message']||_0x6ada89?.[_0x399570(0x134)]?.['error']||'Failed\x20to\x20create\x20function');return await this[_0x399570(0xce)](),await this['select'](_0x6ada89?.[_0x399570(0x134)]?.[_0x399570(0xdf)]||_0x29cf47['name']),_0x6ada89?.[_0x399570(0x134)];}finally{this[_0x399570(0x10d)]=!0x1;}},async 'saveSelected'(_0x405189={}){const _0x1faf69=_0x59b7f0;if(!this[_0x1faf69(0x147)])return null;this[_0x1faf69(0x10d)]=!0x0,this[_0x1faf69(0x125)]=null;try{const _0x26d65f={..._0x405189,'source':_0x405189?.[_0x1faf69(0xcc)]??this[_0x1faf69(0x14a)]},_0xe233af=await fetch(this[_0x1faf69(0x12b)]+'/'+encodeURIComponent(this[_0x1faf69(0x147)]),{'method':_0x1faf69(0xf7),'headers':{'content-type':'application/json'},'body':JSON[_0x1faf69(0x135)](_0x26d65f)}),_0xacf1ee=await _0xe233af[_0x1faf69(0x11c)]();if(!_0xe233af['ok'])throw new Error(_0xacf1ee?.['error']?.['message']||_0xacf1ee?.['data']?.[_0x1faf69(0x125)]||_0x1faf69(0xda));return await this['reloadList'](),await this[_0x1faf69(0xd7)](this[_0x1faf69(0x147)]),_0xacf1ee?.[_0x1faf69(0x134)];}finally{this['saving']=!0x1;}},async 'saveModalDefinition'(){const _0x487367=_0x59b7f0,_0x141e17=this[_0x487367(0x103)]();return _0x487367(0xcf)===this[_0x487367(0x117)]&&this['selectedName']?await this['saveSelected'](_0x141e17):this[_0x487367(0x146)](_0x141e17);},async 'remove'(_0x271b10=this[_0x59b7f0(0x147)]){const _0x5236e7=_0x59b7f0;if(!_0x271b10)return!0x1;this[_0x5236e7(0x10d)]=!0x0,this[_0x5236e7(0x125)]=null;try{const _0x45a8d4=await fetch(this[_0x5236e7(0x12b)]+'/'+encodeURIComponent(_0x271b10),{'method':_0x5236e7(0xef)});if(!_0x45a8d4['ok']&&0xcc!==_0x45a8d4['status']){const _0x11e6f0=await _0x45a8d4[_0x5236e7(0x11c)]()[_0x5236e7(0xe6)](()=>({}));throw new Error(_0x11e6f0?.[_0x5236e7(0x125)]?.[_0x5236e7(0xe1)]||_0x11e6f0?.['data']?.[_0x5236e7(0x125)]||'Failed\x20to\x20delete\x20function');}return await this[_0x5236e7(0xce)](),await this['loadOverviewRuns'](),this['selectedName']===_0x271b10&&this['resetSelection'](),!0x0;}finally{this['saving']=!0x1;}},async 'runSelected'(){const _0x15d4cd=_0x59b7f0;if(!this[_0x15d4cd(0x147)])return null;this[_0x15d4cd(0x10c)]=!0x0,this[_0x15d4cd(0x125)]=null;try{let _0x26e9de=null;try{_0x26e9de=this[_0x15d4cd(0xfe)](this[_0x15d4cd(0x11a)]),this['payloadError']=null;}catch(_0x1763b4){throw this[_0x15d4cd(0x13f)]=_0x1763b4?.['message']||'Payload\x20JSON\x20is\x20invalid',_0x1763b4;}const _0x2bb02a=await fetch(this['functionsBase']+'/'+encodeURIComponent(this[_0x15d4cd(0x147)])+_0x15d4cd(0x11e),{'method':_0x15d4cd(0x12c),'headers':{'content-type':_0x15d4cd(0x11f)},'body':JSON[_0x15d4cd(0x135)]({'payload':_0x26e9de,...this['dryRunMode']&&{'dryRun':!0x0}})}),_0x3f9622=await _0x2bb02a[_0x15d4cd(0x11c)]();if(!_0x2bb02a['ok']){const _0x5a9a2d=new Error(_0x3f9622?.[_0x15d4cd(0x125)]?.[_0x15d4cd(0xe1)]||_0x3f9622?.[_0x15d4cd(0x134)]?.[_0x15d4cd(0x125)]||_0x15d4cd(0x105));throw _0x5a9a2d[_0x15d4cd(0xc9)]=_0x3f9622?.[_0x15d4cd(0x125)]?.['code']||null,_0x5a9a2d;}return await this[_0x15d4cd(0xd8)](this[_0x15d4cd(0x147)]),this[_0x15d4cd(0x107)]=n(_0x3f9622?.[_0x15d4cd(0x134)]||null),this[_0x15d4cd(0xbd)]||!this[_0x15d4cd(0x107)]?.['id']&&!this[_0x15d4cd(0x107)]?.[_0x15d4cd(0xf4)]||await this['selectRun'](this[_0x15d4cd(0x107)]['id']||this['selectedRun'][_0x15d4cd(0xf4)]),await this[_0x15d4cd(0xf3)](),this[_0x15d4cd(0x107)];}catch(_0x46579c){throw this[_0x15d4cd(0x125)]=_0x46579c?.['code']?_0x46579c[_0x15d4cd(0xc9)]+':\x20'+_0x46579c[_0x15d4cd(0xe1)]:_0x46579c?.[_0x15d4cd(0xe1)]||'Failed\x20to\x20run\x20function',_0x46579c;}finally{this['running']=!0x1;}},async 'runModalDraft'(){const _0x40f551=_0x59b7f0,_0x455f51=this['buildModalDefinition']();this['modalRunning']=!0x0,this[_0x40f551(0x125)]=null;try{const _0x3bd21a=this[_0x40f551(0xfe)](this[_0x40f551(0x122)]);this[_0x40f551(0x131)]=null,this[_0x40f551(0xbe)]=null,this[_0x40f551(0x127)]=[];const _0xee106d=await fetch(this[_0x40f551(0x12b)]+_0x40f551(0xdb),{'method':'POST','headers':{'content-type':_0x40f551(0x11f)},'body':JSON[_0x40f551(0x135)]({..._0x455f51,'payload':_0x3bd21a,...this['modalDryRunMode']&&{'dryRun':!0x0},...this[_0x40f551(0xf5)]?{'jobContext':n(this[_0x40f551(0xf5)])}:{},...this[_0x40f551(0x119)]?{'processorContext':n(this[_0x40f551(0x119)])}:{},...this[_0x40f551(0xca)]?{'materializerContext':n(this[_0x40f551(0xca)])}:{}})}),_0x17d951=await _0xee106d[_0x40f551(0x11c)]();if(!_0xee106d['ok'])throw new Error(_0x17d951?.[_0x40f551(0x125)]?.[_0x40f551(0xe1)]||_0x17d951?.[_0x40f551(0x134)]?.[_0x40f551(0x125)]||'Failed\x20to\x20run\x20draft');return this[_0x40f551(0xbe)]=n(_0x17d951?.['data']||null),this[_0x40f551(0x127)]=this['getLogsForRun'](this[_0x40f551(0xbe)]?.['id']||this['modalPreviewRun']?.[_0x40f551(0xf4)]),this[_0x40f551(0xbe)];}catch(_0x26d25e){throw _0x26d25e instanceof SyntaxError&&(this[_0x40f551(0x131)]=_0x26d25e?.[_0x40f551(0xe1)]||'Payload\x20JSON\x20is\x20invalid'),_0x26d25e;}finally{this[_0x40f551(0x142)]=!0x1;}},'getLogsForRun':_0x23fb71=>_0x23fb71?(_0x44b670[_0x59b7f0(0x138)]||[])['filter'](_0x472f57=>(_0x472f57?.[_0x59b7f0(0xf4)]||_0x472f57?.[_0x59b7f0(0xf2)]?.['runId'])===_0x23fb71):[],'refreshModalPreviewLogs'(){const _0x20d4b1=_0x59b7f0,_0x456a6d=this[_0x20d4b1(0xbe)]?.['id']||this[_0x20d4b1(0xbe)]?.[_0x20d4b1(0xf4)];return _0x456a6d?(this['modalPreviewLogs']=this[_0x20d4b1(0xc4)](_0x456a6d),this[_0x20d4b1(0x127)]):(this[_0x20d4b1(0x127)]=[],[]);},async 'selectRun'(_0x22ebe1){const _0x583b58=_0x59b7f0;if(!this[_0x583b58(0x147)]||!_0x22ebe1)return this[_0x583b58(0x107)]=null,null;const _0x52ce3c=await fetch(this['functionsBase']+'/'+encodeURIComponent(this[_0x583b58(0x147)])+_0x583b58(0x140)+encodeURIComponent(_0x22ebe1)),_0x53b2b3=await _0x52ce3c[_0x583b58(0x11c)]();return this['selectedRun']=_0x53b2b3?.[_0x583b58(0x134)]||null,this[_0x583b58(0x107)];},async 'onEnvChanged'(){const _0x33fefe=_0x59b7f0;this[_0x33fefe(0xcd)](),this[_0x33fefe(0x136)](),this['currentView']=_0x33fefe(0x130),this[_0x33fefe(0x104)]&&await this[_0x33fefe(0xf8)]();}});
1
+ const _0x38007e=_0xf537;(function(_0x3a53f7,_0x260eac){const _0x3e6b14=_0xf537,_0x2f6b79=_0x3a53f7();while(!![]){try{const _0x3635a3=parseInt(_0x3e6b14(0x18c))/0x1+-parseInt(_0x3e6b14(0x167))/0x2+parseInt(_0x3e6b14(0x15c))/0x3*(-parseInt(_0x3e6b14(0x1a3))/0x4)+-parseInt(_0x3e6b14(0x1a4))/0x5*(-parseInt(_0x3e6b14(0x1be))/0x6)+-parseInt(_0x3e6b14(0x17c))/0x7*(-parseInt(_0x3e6b14(0x1a7))/0x8)+parseInt(_0x3e6b14(0x16c))/0x9+-parseInt(_0x3e6b14(0x1e9))/0xa*(parseInt(_0x3e6b14(0x1c1))/0xb);if(_0x3635a3===_0x260eac)break;else _0x2f6b79['push'](_0x2f6b79['shift']());}catch(_0x5dfd61){_0x2f6b79['push'](_0x2f6b79['shift']());}}}(_0x7cf4,0x2b047));function _0xf537(_0x1e2473,_0x2c9a04){_0x1e2473=_0x1e2473-0x150;const _0x7cf4bf=_0x7cf4();let _0xf53725=_0x7cf4bf[_0x1e2473];return _0xf53725;}import{ok as _0x545472}from'../modules/ok.js';import _0x18acd6 from'./okdb-store.js';import _0x2efb80 from'./events-store.js';const a=[_0x38007e(0x196),_0x38007e(0x1c2),_0x38007e(0x18b),'\x20\x20//\x20ctx.log\x20\x20\x20\x20\x20—\x20structured\x20logger:\x20ctx.log.info(msg,\x20data)','\x20\x20//\x20Tip:\x20use\x20the\x20\x22seed\x22\x20template\x20when\x20you\x20want\x20bulk\x20inserts\x20via\x20ctx.env.txn(...)','','\x20\x20return\x20{\x20ok:\x20true\x20};','}'][_0x38007e(0x175)]('\x0a'),r='{\x0a\x20\x20\x0a}',i=[{'symbol':_0x38007e(0x1b0),'pattern':/(^|[^\w$.])require\s*\(/},{'symbol':_0x38007e(0x1ca),'pattern':/(^|[^\w$.])import\b/},{'symbol':_0x38007e(0x194),'pattern':/(^|[^\w$.])console\b/},{'symbol':_0x38007e(0x1d8),'pattern':/(^|[^\w$.])module\b/},{'symbol':_0x38007e(0x16b),'pattern':/(^|[^\w$.])exports\b/},{'symbol':_0x38007e(0x1dd),'pattern':/(^|[^\w$.])process\b/},{'symbol':_0x38007e(0x199),'pattern':/child_process/},{'symbol':_0x38007e(0x153),'pattern':/worker_threads/}];function n(_0x316f84){const _0x3ed627=_0x38007e;return null==_0x316f84?_0x316f84:JSON['parse'](JSON[_0x3ed627(0x1dc)](_0x316f84));}function _0x7cf4(){const _0x8dcde7=['modalValidation','~system','info','selectedRun','msg','modalJobContextDraft','saving','runtime','memoryMb','metadata','FUNCTION_SCRIPT_COMPILE_FAILED','error','FUNCTION_SCRIPT_TOO_LARGE','hydrateOverview','\x20\x20//\x20ctx.env\x20\x20\x20\x20\x20—\x20env-scoped\x20facade:\x20put,\x20get,\x20query,\x20txn,\x20queue,\x20files,\x20...','318518VDQUZh','unsafe','items','selected','modalNameDraft','payloadDraft','Payload\x20JSON\x20is\x20invalid','level','console','selectedName','async\x20(ctx)\x20=>\x20{','Failed\x20to\x20run\x20function','modalPayloadError','child_process','hasEnv','setModalPayloadDraft','modalSourceDraft','/functions','meta','Failed\x20to\x20delete\x20function','persisted','getLogsForRun','length','36724bXNpkg','4135oUzNGw','buildModalDefinition','functionsBase','8kbQzhA','DELETE','timeoutMs','filter','saveSelected','FUNCTION_SCRIPT_REQUIRED','test','Function\x20script\x20exceeds\x2065536\x20bytes','validateSource','require','modalPayloadDraft','detail','message','dryRunMode','application/json','/runs','modalPreviewLogs','find','live','parsePayloadDraft','script','FUNCTION_SCRIPT_INVALID_SHAPE','replace','618CTiPHa','logsForRun','data','11TiHWZF','\x20\x20//\x20ctx.payload\x20—\x20caller\x20input','slice','requestedAt','key','loadRuns','parse','loading','modalTimeoutMsDraft','import','/run','POST','proxy','get','Failed\x20to\x20create\x20function','content','trim','name','set','return\x20(','modalMaterializerContextDraft','modalPreviewRun','request','module','value','resetSelection','_ts','stringify','process','latestRun','Failed\x20to\x20run\x20draft','json','description','reloadList','PUT','Function\x20script\x20failed\x20to\x20compile','title','loadOverviewRuns','sort','runs','1990690GTcYbR','modalEnabledDraft','beginCreateDraft','logs','execution','runId','push','setModalPreviewContext','worker_threads','overview','modalUnsafeDraft','modalProcessorContextDraft','selectedEnv','FUNCTION_SCRIPT_FORBIDDEN_SYMBOL','modalMemoryMbDraft','isFinite','source','96YxriSn','payloadError','sourceDraft','modalAllowFetchDraft','Function\x20script\x20source\x20is\x20required','encode','create','/runs/','string','Function\x20script\x20may\x20not\x20reference\x20','/env/','196204rxBSkx','modalRunning','modalMode','Failed\x20to\x20save\x20function','exports','2855844MyXftZ','select','map','setModalSourceDraft','envName','now','overviewRuns','modalDescriptionDraft','finishedAt','join','code','isArray','currentView','functionName','allowFetch','has','323029wGNvDa'];_0x7cf4=function(){return _0x8dcde7;};return _0x7cf4();}function o(_0x58ca7b={},_0x5baf34='persisted'){const _0x4298c9=_0x38007e,_0x2e0a2b=_0x58ca7b?.[_0x4298c9(0x19e)]??null,_0x389406=_0x58ca7b?.['msg']??_0x58ca7b?.[_0x4298c9(0x1b3)]??_0x58ca7b?.[_0x4298c9(0x1d0)]??_0x58ca7b?.[_0x4298c9(0x1e5)]??'';return{'runId':_0x58ca7b?.['runId']??_0x2e0a2b?.[_0x4298c9(0x150)]??null,'ts':_0x58ca7b?.['ts']??_0x58ca7b?.[_0x4298c9(0x1db)]??Date[_0x4298c9(0x171)](),'level':_0x58ca7b?.['level']??_0x4298c9(0x17f),'msg':'string'==typeof _0x389406?_0x389406:JSON[_0x4298c9(0x1dc)](_0x389406??''),'meta':_0x2e0a2b,'source':_0x5baf34};}export default _0x545472[_0x38007e(0x1cd)]({'items':[],'selectedName':null,'selected':null,'runs':[],'overviewRuns':[],'selectedRun':null,'sourceDraft':'','payloadDraft':r,'currentView':'overview','modalMode':_0x38007e(0x162),'modalNameDraft':'','modalSourceDraft':a,'modalPayloadDraft':r,'modalJobContextDraft':null,'modalProcessorContextDraft':null,'modalMaterializerContextDraft':null,'modalDescriptionDraft':'','modalEnabledDraft':!0x0,'modalUnsafeDraft':!0x1,'modalTimeoutMsDraft':null,'modalMemoryMbDraft':null,'modalAllowFetchDraft':!0x0,'modalValidation':{'ok':!0x1,'code':_0x38007e(0x1ac),'message':'Function\x20script\x20source\x20is\x20required'},'modalPayloadError':null,'modalPreviewRun':null,'modalPreviewLogs':[],'modalRunning':!0x1,'modalDryRunMode':!0x1,'loading':!0x1,'saving':!0x1,'running':!0x1,'dryRunMode':!0x1,'payloadError':null,'error':null,get 'envName'(){const _0x4e57c1=_0x38007e;return _0x18acd6[_0x4e57c1(0x157)]||null;},get 'isGlobalScope'(){const _0x272175=_0x38007e;return _0x272175(0x17e)===this[_0x272175(0x170)];},get 'hasEnv'(){const _0x45c7c1=_0x38007e;return!!this[_0x45c7c1(0x170)];},get 'functionsBase'(){const _0x5be65d=_0x38007e;return this[_0x5be65d(0x170)]?__ENV__['API']+_0x5be65d(0x166)+encodeURIComponent(this[_0x5be65d(0x170)])+_0x5be65d(0x19d):null;},get 'canOpenModal'(){const _0x1b0939=_0x38007e;return!!this[_0x1b0939(0x1a6)];},get 'hasSelected'(){const _0x62cef4=_0x38007e;return!!this[_0x62cef4(0x195)]&&!!this[_0x62cef4(0x18f)];},get 'latestRun'(){const _0x3f5ef9=_0x38007e;return this[_0x3f5ef9(0x1e8)]?.[0x0]?.[_0x3f5ef9(0x1d9)]||this[_0x3f5ef9(0x1e8)]?.[0x0]||null;},get 'activeRun'(){const _0x18d143=_0x38007e;return this[_0x18d143(0x180)]||this['latestRun']||null;},get 'functionsOverview'(){const _0x233b9f=_0x38007e,_0xe7e8b8=new Map();for(const _0x477ef5 of this[_0x233b9f(0x172)]||[]){const _0x5abc59=_0x477ef5?.['value']||_0x477ef5,_0x5239b4=_0x5abc59?.[_0x233b9f(0x179)];_0x5239b4&&!_0xe7e8b8[_0x233b9f(0x17b)](_0x5239b4)&&_0xe7e8b8[_0x233b9f(0x1d3)](_0x5239b4,_0x5abc59);}return(this['items']||[])[_0x233b9f(0x16e)](_0x185d12=>({..._0x185d12,'latestRun':_0xe7e8b8[_0x233b9f(0x1ce)](_0x185d12?.['key'])||null}));},get 'selectedFunctionTitle'(){const _0x95b047=_0x38007e;return this['selected']?.[_0x95b047(0x1d2)]||this[_0x95b047(0x195)]||null;},get 'selectedLogEntries'(){const _0x2dff85=_0x38007e,_0x48f39c=this[_0x2dff85(0x180)]?.['id']||this[_0x2dff85(0x180)]?.[_0x2dff85(0x150)];if(_0x48f39c)return this[_0x2dff85(0x1bf)](_0x48f39c);const _0x4503ab=this[_0x2dff85(0x1de)]?.['id']||this[_0x2dff85(0x1de)]?.['runId'];return _0x4503ab?this[_0x2dff85(0x1bf)](_0x4503ab):[];},'logsForRun'(_0x2f68fe){const _0x474b47=_0x38007e;if(!_0x2f68fe)return[];const _0x4a7ea8=[this[_0x474b47(0x180)],this[_0x474b47(0x1de)],...(this[_0x474b47(0x1e8)]||[])['map'](_0x24b40a=>_0x24b40a?.[_0x474b47(0x1d9)]||_0x24b40a)][_0x474b47(0x1b8)](_0xc0d002=>(_0xc0d002?.['id']||_0xc0d002?.['runId'])===_0x2f68fe)?.[_0x474b47(0x1ec)],_0x1b946f=[...Array[_0x474b47(0x177)](_0x4a7ea8)?_0x4a7ea8[_0x474b47(0x16e)](_0x4c70cf=>o(_0x4c70cf,_0x474b47(0x1a0))):[],...(_0x2efb80['logs']||[])[_0x474b47(0x1aa)](_0xeedc93=>(_0xeedc93?.['runId']||_0xeedc93?.['meta']?.[_0x474b47(0x150)])===_0x2f68fe)['map'](_0x579296=>o(_0x579296,_0x474b47(0x1b9)))],_0x1d3213=new Set(),_0x5591b1=[];for(const _0x326086 of _0x1b946f){const _0x3bbdce=_0x326086[_0x474b47(0x150)]+'|'+_0x326086['ts']+'|'+_0x326086[_0x474b47(0x193)]+'|'+_0x326086[_0x474b47(0x181)]+'|'+JSON[_0x474b47(0x1dc)](_0x326086[_0x474b47(0x19e)]??null);_0x1d3213[_0x474b47(0x17b)](_0x3bbdce)||(_0x1d3213['add'](_0x3bbdce),_0x5591b1[_0x474b47(0x151)](_0x326086));}return _0x5591b1[_0x474b47(0x1e7)]((_0x30dd9c,_0x288bea)=>(_0x30dd9c['ts']??0x0)-(_0x288bea['ts']??0x0)),_0x5591b1;},'resetSelection'(){const _0x56c3e6=_0x38007e;this[_0x56c3e6(0x195)]=null,this[_0x56c3e6(0x18f)]=null,this[_0x56c3e6(0x1e8)]=[],this[_0x56c3e6(0x172)]=[],this[_0x56c3e6(0x180)]=null,this[_0x56c3e6(0x15e)]='',this['payloadDraft']=r,this[_0x56c3e6(0x15d)]=null,this['error']=null;},'validateSource'(_0x365fe1){const _0x1f6b91=_0x38007e,_0x413996=_0x1f6b91(0x164)==typeof _0x365fe1?_0x365fe1[_0x1f6b91(0x1bd)](/\r\n/g,'\x0a')[_0x1f6b91(0x1d1)]():'';if(!_0x413996)return{'ok':!0x1,'code':_0x1f6b91(0x1ac),'message':_0x1f6b91(0x160)};const _0x39f10c=new TextEncoder()[_0x1f6b91(0x161)](_0x413996)[_0x1f6b91(0x1a2)];if(_0x39f10c>0x10000)return{'ok':!0x1,'code':_0x1f6b91(0x189),'message':_0x1f6b91(0x1ae)};if(!/^(async\s+)?\(\s*[A-Za-z_$][\w$]*\s*\)\s*=>/[_0x1f6b91(0x1ad)](_0x413996))return{'ok':!0x1,'code':_0x1f6b91(0x1bc),'message':'Function\x20script\x20must\x20be\x20an\x20anonymous\x20arrow\x20function\x20of\x20the\x20form\x20[async]\x20(ctx)\x20=>\x20{}'};for(const {symbol:_0x26e8f6,pattern:_0x3919d6}of i)if(_0x3919d6[_0x1f6b91(0x1ad)](_0x413996))return{'ok':!0x1,'code':_0x1f6b91(0x158),'message':_0x1f6b91(0x165)+_0x26e8f6};try{new Function(_0x1f6b91(0x1d4)+_0x413996+');')();}catch(_0x10b2e5){return{'ok':!0x1,'code':_0x1f6b91(0x187),'message':_0x10b2e5?.[_0x1f6b91(0x1b3)]||_0x1f6b91(0x1e4)};}return{'ok':!0x0,'code':null,'message':'','normalizedSource':_0x413996,'bytes':_0x39f10c};},'parsePayloadDraft'(_0x414756=this[_0x38007e(0x191)]){const _0x4bece9=_0x38007e,_0x3fe9ea=String(_0x414756??'')['trim']();return _0x3fe9ea?JSON[_0x4bece9(0x1c7)](_0x3fe9ea):null;},'setModalSourceDraft'(_0x1cb1bc){const _0x470fa7=_0x38007e;this[_0x470fa7(0x19c)]=_0x1cb1bc??'',this[_0x470fa7(0x17d)]=this[_0x470fa7(0x1af)](this[_0x470fa7(0x19c)]);},'setModalPayloadDraft'(_0x3cc1b7){const _0x454ca5=_0x38007e;this[_0x454ca5(0x1b1)]=_0x3cc1b7??r;try{this['parsePayloadDraft'](this[_0x454ca5(0x1b1)]),this[_0x454ca5(0x198)]=null;}catch(_0x3c35a5){this['modalPayloadError']=_0x3c35a5?.[_0x454ca5(0x1b3)]||_0x454ca5(0x192);}},'setModalPreviewContext'({jobContext:_0x16b275=null,processorContext:_0x4cc67a=null,materializerContext:_0x357d07=null}={}){const _0x2e5ab4=_0x38007e;this[_0x2e5ab4(0x182)]=n(_0x16b275),this[_0x2e5ab4(0x156)]=n(_0x4cc67a),this[_0x2e5ab4(0x1d5)]=n(_0x357d07);},'beginCreateDraft'(){const _0x9cf22e=_0x38007e;this['modalMode']=_0x9cf22e(0x162),this[_0x9cf22e(0x190)]='',this[_0x9cf22e(0x173)]='',this[_0x9cf22e(0x1ea)]=!0x0,this[_0x9cf22e(0x155)]=!0x1,this['modalTimeoutMsDraft']=null,this['modalMemoryMbDraft']=null,this[_0x9cf22e(0x15f)]=!0x0,this['modalPreviewRun']=null,this['modalPreviewLogs']=[],this[_0x9cf22e(0x152)]({}),this[_0x9cf22e(0x19b)](this[_0x9cf22e(0x191)]||r),this[_0x9cf22e(0x16f)](a);},'beginEditDraft'(){const _0x1b514d=_0x38007e,_0x20016c=this[_0x1b514d(0x18f)];this['modalMode']='edit',this['modalNameDraft']=_0x20016c?.['name']||this[_0x1b514d(0x195)]||'',this[_0x1b514d(0x173)]=_0x20016c?.[_0x1b514d(0x186)]?.[_0x1b514d(0x1e1)]||'',this[_0x1b514d(0x1ea)]=!0x1!==_0x20016c?.['enabled'],this['modalUnsafeDraft']=!0x0===_0x20016c?.[_0x1b514d(0x18d)],this[_0x1b514d(0x1c9)]=_0x20016c?.['runtime']?.[_0x1b514d(0x1a9)]??null,this[_0x1b514d(0x159)]=_0x20016c?.['runtime']?.['memoryMb']??null,this[_0x1b514d(0x15f)]=!0x1!==_0x20016c?.[_0x1b514d(0x184)]?.[_0x1b514d(0x17a)],this[_0x1b514d(0x1d6)]=null,this[_0x1b514d(0x1b7)]=[],this[_0x1b514d(0x152)]({}),this[_0x1b514d(0x19b)](this['payloadDraft']||r),this['setModalSourceDraft'](_0x20016c?.[_0x1b514d(0x1bb)]?.[_0x1b514d(0x15b)]||this[_0x1b514d(0x15e)]||a);},'buildModalDefinition'(){const _0x484e47=_0x38007e,_0x58f76a={};return Number[_0x484e47(0x15a)](this[_0x484e47(0x1c9)])&&this['modalTimeoutMsDraft']>0x0&&(_0x58f76a[_0x484e47(0x1a9)]=this[_0x484e47(0x1c9)]),Number[_0x484e47(0x15a)](this['modalMemoryMbDraft'])&&this[_0x484e47(0x159)]>0x0&&(_0x58f76a[_0x484e47(0x185)]=this[_0x484e47(0x159)]),_0x58f76a[_0x484e47(0x17a)]=!0x1!==this['modalAllowFetchDraft'],{'name':String(this[_0x484e47(0x190)]||'')[_0x484e47(0x1d1)](),'source':this[_0x484e47(0x17d)]?.['normalizedSource']||String(this[_0x484e47(0x19c)]||'')[_0x484e47(0x1d1)](),'metadata':{'description':String(this[_0x484e47(0x173)]||'')[_0x484e47(0x1d1)]()},'enabled':!0x1!==this[_0x484e47(0x1ea)],'unsafe':!0x0===this[_0x484e47(0x155)],'runtime':_0x58f76a};},get 'canSaveModal'(){const _0x58fd6e=_0x38007e;return!(!String(this[_0x58fd6e(0x190)]||'')[_0x58fd6e(0x1d1)]()||!this['modalValidation']?.['ok']||this['modalPayloadError']||this['saving']);},async 'loadList'(){const _0x4e2bd8=_0x38007e;if(!this[_0x4e2bd8(0x1a6)])return[];this[_0x4e2bd8(0x1c8)]=!0x0,this[_0x4e2bd8(0x188)]=null;try{const _0xcbdba8=await fetch(this['functionsBase']),_0x250c3f=await _0xcbdba8[_0x4e2bd8(0x1e0)]();return this[_0x4e2bd8(0x18e)]=_0x250c3f?.[_0x4e2bd8(0x1c0)]||[],this[_0x4e2bd8(0x195)]&&(this[_0x4e2bd8(0x18e)]['find'](_0x54cbca=>_0x54cbca[_0x4e2bd8(0x1c5)]===this['selectedName'])||this[_0x4e2bd8(0x1da)]()),this[_0x4e2bd8(0x18e)];}catch(_0x53143b){throw this[_0x4e2bd8(0x188)]=_0x53143b?.[_0x4e2bd8(0x1b3)]||'Failed\x20to\x20load\x20functions',_0x53143b;}finally{this[_0x4e2bd8(0x1c8)]=!0x1;}},async 'reloadList'(){const _0x435af6=_0x38007e;return this[_0x435af6(0x18e)]=[],this['loadList']();},'setView'(_0x4f9a46=_0x38007e(0x154)){const _0x4f713c=_0x38007e;this[_0x4f713c(0x178)]=_0x4f713c(0x1b2)===_0x4f9a46?_0x4f713c(0x1b2):_0x4f713c(0x154);},async 'loadOverviewRuns'(_0x58f4a3=0x18){const _0x592f81=_0x38007e;if(!this[_0x592f81(0x1a6)])return[];const _0x500ea8=(this[_0x592f81(0x18e)]||[])['map'](_0x317851=>_0x317851?.['key'])[_0x592f81(0x1aa)](Boolean),_0x22f197=[];for(const _0x295961 of _0x500ea8){const _0x5ed0a9=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x295961)+_0x592f81(0x1b6)),_0x94156c=await _0x5ed0a9[_0x592f81(0x1e0)](),_0x5742e4=(_0x94156c?.['data']||[])['map'](_0x2e27e3=>_0x2e27e3?.[_0x592f81(0x1d9)]?_0x2e27e3:{'key':_0x2e27e3?.['id']||_0x2e27e3?.[_0x592f81(0x150)],'value':_0x2e27e3});_0x22f197['push'](..._0x5742e4);}return _0x22f197['sort']((_0x41caef,_0x487775)=>{const _0x196767=_0x592f81,_0x40b044=_0x41caef?.[_0x196767(0x1d9)]?.['execution']?.[_0x196767(0x174)]??_0x41caef?.[_0x196767(0x1d9)]?.['request']?.[_0x196767(0x1c4)]??0x0;return(_0x487775?.[_0x196767(0x1d9)]?.[_0x196767(0x1ed)]?.['finishedAt']??_0x487775?.[_0x196767(0x1d9)]?.[_0x196767(0x1d7)]?.[_0x196767(0x1c4)]??0x0)-_0x40b044;}),this[_0x592f81(0x172)]=_0x22f197[_0x592f81(0x1c3)](0x0,_0x58f4a3),this[_0x592f81(0x172)];},async 'hydrateOverview'(){const _0x478852=_0x38007e;await this['loadList'](),await this[_0x478852(0x1e6)]();},async 'select'(_0x1285ba){const _0x1bfa1e=_0x38007e;if(this[_0x1bfa1e(0x195)]=_0x1285ba||null,this[_0x1bfa1e(0x180)]=null,this['currentView']=_0x1285ba?_0x1bfa1e(0x1b2):_0x1bfa1e(0x154),!_0x1285ba)return this[_0x1bfa1e(0x18f)]=null,this['sourceDraft']='',this[_0x1bfa1e(0x1e8)]=[],null;const _0x31de01=await fetch(this[_0x1bfa1e(0x1a6)]+'/'+encodeURIComponent(_0x1285ba)),_0x5ee678=await _0x31de01[_0x1bfa1e(0x1e0)]();if(this[_0x1bfa1e(0x18f)]=_0x5ee678?.['data']||null,this[_0x1bfa1e(0x15e)]=this[_0x1bfa1e(0x18f)]?.[_0x1bfa1e(0x1bb)]?.[_0x1bfa1e(0x15b)]||'',this[_0x1bfa1e(0x15d)]=null,await this[_0x1bfa1e(0x1c6)](_0x1285ba),!this[_0x1bfa1e(0x180)]&&this[_0x1bfa1e(0x1e8)]?.[_0x1bfa1e(0x1a2)]){const _0x40f32b=this[_0x1bfa1e(0x1e8)][0x0];this[_0x1bfa1e(0x180)]=_0x40f32b?.['value']||_0x40f32b||null;}return this[_0x1bfa1e(0x18f)];},async 'loadRuns'(_0x284ad5=this[_0x38007e(0x195)]){const _0x183cbd=_0x38007e;if(!_0x284ad5)return this[_0x183cbd(0x1e8)]=[],[];const _0x821029=await fetch(this['functionsBase']+'/'+encodeURIComponent(_0x284ad5)+_0x183cbd(0x1b6)),_0x6bbe27=await _0x821029['json']();if(this['runs']=_0x6bbe27?.[_0x183cbd(0x1c0)]||[],this[_0x183cbd(0x180)]){const _0x411435=this[_0x183cbd(0x180)]?.['id']||this[_0x183cbd(0x180)]?.[_0x183cbd(0x150)],_0x352906=this[_0x183cbd(0x1e8)][_0x183cbd(0x16e)](_0x2299e3=>_0x2299e3?.['value']||_0x2299e3)[_0x183cbd(0x1b8)](_0x910770=>(_0x910770?.['id']||_0x910770?.['runId'])===_0x411435);this[_0x183cbd(0x180)]=_0x352906||null;}return this[_0x183cbd(0x1e8)];},async 'refreshSelected'(){const _0x11897f=_0x38007e;if(!this[_0x11897f(0x195)])return null;const _0x3a9d0a=this['selectedRun']?.['id']||this[_0x11897f(0x180)]?.[_0x11897f(0x150)];if(await this[_0x11897f(0x16d)](this[_0x11897f(0x195)]),_0x3a9d0a){const _0x46cae6=this[_0x11897f(0x1e8)][_0x11897f(0x16e)](_0x49f843=>_0x49f843?.[_0x11897f(0x1d9)]||_0x49f843)[_0x11897f(0x1b8)](_0x27dc6f=>(_0x27dc6f?.['id']||_0x27dc6f?.[_0x11897f(0x150)])===_0x3a9d0a);this[_0x11897f(0x180)]=_0x46cae6||this['selectedRun'];}return await this[_0x11897f(0x1e6)](),this[_0x11897f(0x18f)];},'setSourceDraft'(_0x20bf39){this['sourceDraft']=_0x20bf39??'';},'setPayloadDraft'(_0x204055){const _0x5ca25e=_0x38007e;this[_0x5ca25e(0x191)]=_0x204055??r;try{this[_0x5ca25e(0x1ba)](this[_0x5ca25e(0x191)]),this['payloadError']=null;}catch(_0x2c4f88){this[_0x5ca25e(0x15d)]=_0x2c4f88?.[_0x5ca25e(0x1b3)]||'Payload\x20JSON\x20is\x20invalid';}},async 'create'(_0x2cfa32={}){const _0x4e18de=_0x38007e;this[_0x4e18de(0x183)]=!0x0,this[_0x4e18de(0x188)]=null;try{const _0x34d0b7={..._0x2cfa32},_0x2ac42b=await fetch(this[_0x4e18de(0x1a6)],{'method':'POST','headers':{'content-type':_0x4e18de(0x1b5)},'body':JSON[_0x4e18de(0x1dc)](_0x34d0b7)}),_0x1aa89d=await _0x2ac42b[_0x4e18de(0x1e0)]();if(!_0x2ac42b['ok'])throw new Error(_0x1aa89d?.[_0x4e18de(0x188)]?.[_0x4e18de(0x1b3)]||_0x1aa89d?.[_0x4e18de(0x1c0)]?.[_0x4e18de(0x188)]||_0x4e18de(0x1cf));return await this[_0x4e18de(0x1e2)](),await this['select'](_0x1aa89d?.[_0x4e18de(0x1c0)]?.[_0x4e18de(0x1d2)]||_0x2cfa32[_0x4e18de(0x1d2)]),_0x1aa89d?.[_0x4e18de(0x1c0)];}finally{this[_0x4e18de(0x183)]=!0x1;}},async 'saveSelected'(_0x10b0a0={}){const _0xcd9c6d=_0x38007e;if(!this['selectedName'])return null;this[_0xcd9c6d(0x183)]=!0x0,this[_0xcd9c6d(0x188)]=null;try{const _0x5d9ea4={..._0x10b0a0,'source':_0x10b0a0?.[_0xcd9c6d(0x15b)]??this[_0xcd9c6d(0x15e)]},_0x361e0c=await fetch(this[_0xcd9c6d(0x1a6)]+'/'+encodeURIComponent(this['selectedName']),{'method':_0xcd9c6d(0x1e3),'headers':{'content-type':'application/json'},'body':JSON[_0xcd9c6d(0x1dc)](_0x5d9ea4)}),_0x37ad17=await _0x361e0c['json']();if(!_0x361e0c['ok'])throw new Error(_0x37ad17?.[_0xcd9c6d(0x188)]?.[_0xcd9c6d(0x1b3)]||_0x37ad17?.[_0xcd9c6d(0x1c0)]?.[_0xcd9c6d(0x188)]||_0xcd9c6d(0x16a));return await this[_0xcd9c6d(0x1e2)](),await this['select'](this[_0xcd9c6d(0x195)]),_0x37ad17?.['data'];}finally{this[_0xcd9c6d(0x183)]=!0x1;}},async 'saveModalDefinition'(){const _0x3c61fd=_0x38007e,_0x4d8659=this[_0x3c61fd(0x1a5)]();return'edit'===this[_0x3c61fd(0x169)]&&this[_0x3c61fd(0x195)]?await this[_0x3c61fd(0x1ab)](_0x4d8659):this['create'](_0x4d8659);},async 'remove'(_0x59f230=this[_0x38007e(0x195)]){const _0xfd1cb9=_0x38007e;if(!_0x59f230)return!0x1;this[_0xfd1cb9(0x183)]=!0x0,this[_0xfd1cb9(0x188)]=null;try{const _0x60098c=await fetch(this[_0xfd1cb9(0x1a6)]+'/'+encodeURIComponent(_0x59f230),{'method':_0xfd1cb9(0x1a8)});if(!_0x60098c['ok']&&0xcc!==_0x60098c['status']){const _0x42badc=await _0x60098c[_0xfd1cb9(0x1e0)]()['catch'](()=>({}));throw new Error(_0x42badc?.[_0xfd1cb9(0x188)]?.[_0xfd1cb9(0x1b3)]||_0x42badc?.[_0xfd1cb9(0x1c0)]?.[_0xfd1cb9(0x188)]||_0xfd1cb9(0x19f));}return await this[_0xfd1cb9(0x1e2)](),await this[_0xfd1cb9(0x1e6)](),this[_0xfd1cb9(0x195)]===_0x59f230&&this[_0xfd1cb9(0x1da)](),!0x0;}finally{this[_0xfd1cb9(0x183)]=!0x1;}},async 'runSelected'(){const _0x18b983=_0x38007e;if(!this[_0x18b983(0x195)])return null;this['running']=!0x0,this[_0x18b983(0x188)]=null;try{let _0x4e9f82=null;try{_0x4e9f82=this[_0x18b983(0x1ba)](this[_0x18b983(0x191)]),this[_0x18b983(0x15d)]=null;}catch(_0x264b8d){throw this[_0x18b983(0x15d)]=_0x264b8d?.[_0x18b983(0x1b3)]||_0x18b983(0x192),_0x264b8d;}const _0x1a52ac=await fetch(this[_0x18b983(0x1a6)]+'/'+encodeURIComponent(this['selectedName'])+_0x18b983(0x1cb),{'method':_0x18b983(0x1cc),'headers':{'content-type':_0x18b983(0x1b5)},'body':JSON['stringify']({'payload':_0x4e9f82,...this['dryRunMode']&&{'dryRun':!0x0}})}),_0x8b84f6=await _0x1a52ac[_0x18b983(0x1e0)]();if(!_0x1a52ac['ok']){const _0x36a0f7=new Error(_0x8b84f6?.[_0x18b983(0x188)]?.[_0x18b983(0x1b3)]||_0x8b84f6?.['data']?.[_0x18b983(0x188)]||_0x18b983(0x197));throw _0x36a0f7[_0x18b983(0x176)]=_0x8b84f6?.['error']?.['code']||null,_0x36a0f7;}return await this[_0x18b983(0x1c6)](this[_0x18b983(0x195)]),this[_0x18b983(0x180)]=n(_0x8b84f6?.[_0x18b983(0x1c0)]||null),this[_0x18b983(0x1b4)]||!this[_0x18b983(0x180)]?.['id']&&!this['selectedRun']?.[_0x18b983(0x150)]||await this['selectRun'](this['selectedRun']['id']||this[_0x18b983(0x180)]['runId']),await this[_0x18b983(0x1e6)](),this[_0x18b983(0x180)];}catch(_0x408afe){throw this['error']=_0x408afe?.[_0x18b983(0x176)]?_0x408afe['code']+':\x20'+_0x408afe[_0x18b983(0x1b3)]:_0x408afe?.[_0x18b983(0x1b3)]||_0x18b983(0x197),_0x408afe;}finally{this['running']=!0x1;}},async 'runModalDraft'(){const _0x3160a9=_0x38007e,_0x280000=this[_0x3160a9(0x1a5)]();this[_0x3160a9(0x168)]=!0x0,this[_0x3160a9(0x188)]=null;try{const _0x2069af=this[_0x3160a9(0x1ba)](this['modalPayloadDraft']);this[_0x3160a9(0x198)]=null,this[_0x3160a9(0x1d6)]=null,this[_0x3160a9(0x1b7)]=[];const _0xe8707c=await fetch(this[_0x3160a9(0x1a6)]+'/preview',{'method':'POST','headers':{'content-type':_0x3160a9(0x1b5)},'body':JSON[_0x3160a9(0x1dc)]({..._0x280000,'payload':_0x2069af,...this['modalDryRunMode']&&{'dryRun':!0x0},...this[_0x3160a9(0x182)]?{'jobContext':n(this[_0x3160a9(0x182)])}:{},...this[_0x3160a9(0x156)]?{'processorContext':n(this[_0x3160a9(0x156)])}:{},...this['modalMaterializerContextDraft']?{'materializerContext':n(this[_0x3160a9(0x1d5)])}:{}})}),_0x48a56d=await _0xe8707c[_0x3160a9(0x1e0)]();if(!_0xe8707c['ok'])throw new Error(_0x48a56d?.[_0x3160a9(0x188)]?.[_0x3160a9(0x1b3)]||_0x48a56d?.[_0x3160a9(0x1c0)]?.[_0x3160a9(0x188)]||_0x3160a9(0x1df));return this['modalPreviewRun']=n(_0x48a56d?.[_0x3160a9(0x1c0)]||null),this[_0x3160a9(0x1b7)]=this[_0x3160a9(0x1a1)](this['modalPreviewRun']?.['id']||this[_0x3160a9(0x1d6)]?.['runId']),this[_0x3160a9(0x1d6)];}catch(_0x27c903){throw _0x27c903 instanceof SyntaxError&&(this['modalPayloadError']=_0x27c903?.['message']||_0x3160a9(0x192)),_0x27c903;}finally{this[_0x3160a9(0x168)]=!0x1;}},'getLogsForRun':_0x324e3a=>_0x324e3a?(_0x2efb80[_0x38007e(0x1ec)]||[])[_0x38007e(0x1aa)](_0x1f0ea5=>(_0x1f0ea5?.[_0x38007e(0x150)]||_0x1f0ea5?.[_0x38007e(0x19e)]?.[_0x38007e(0x150)])===_0x324e3a):[],'refreshModalPreviewLogs'(){const _0xc0d9be=_0x38007e,_0x5dcdff=this[_0xc0d9be(0x1d6)]?.['id']||this[_0xc0d9be(0x1d6)]?.[_0xc0d9be(0x150)];return _0x5dcdff?(this[_0xc0d9be(0x1b7)]=this[_0xc0d9be(0x1a1)](_0x5dcdff),this[_0xc0d9be(0x1b7)]):(this[_0xc0d9be(0x1b7)]=[],[]);},async 'selectRun'(_0x1681d8){const _0x37ea3f=_0x38007e;if(!this[_0x37ea3f(0x195)]||!_0x1681d8)return this[_0x37ea3f(0x180)]=null,null;const _0x241144=await fetch(this[_0x37ea3f(0x1a6)]+'/'+encodeURIComponent(this[_0x37ea3f(0x195)])+_0x37ea3f(0x163)+encodeURIComponent(_0x1681d8)),_0x456453=await _0x241144[_0x37ea3f(0x1e0)]();return this[_0x37ea3f(0x180)]=_0x456453?.[_0x37ea3f(0x1c0)]||null,this[_0x37ea3f(0x180)];},async 'onEnvChanged'(){const _0x16efbd=_0x38007e;this[_0x16efbd(0x1da)](),this[_0x16efbd(0x1eb)](),this[_0x16efbd(0x178)]='overview',this[_0x16efbd(0x19a)]&&await this[_0x16efbd(0x18a)]();}});
@@ -1 +1 @@
1
- const _0x9b96db=_0x1539;function _0x1539(_0xef15bd,_0x13c675){_0xef15bd=_0xef15bd-0x8a;const _0x2e6138=_0x2e61();let _0x1539b0=_0x2e6138[_0xef15bd];return _0x1539b0;}(function(_0x100e33,_0x498ab7){const _0x4eba5c=_0x1539,_0x5a925=_0x100e33();while(!![]){try{const _0x52b9d8=parseInt(_0x4eba5c(0x8a))/0x1+-parseInt(_0x4eba5c(0xb1))/0x2*(parseInt(_0x4eba5c(0x94))/0x3)+parseInt(_0x4eba5c(0xab))/0x4*(parseInt(_0x4eba5c(0x8b))/0x5)+parseInt(_0x4eba5c(0xa6))/0x6*(parseInt(_0x4eba5c(0x9f))/0x7)+parseInt(_0x4eba5c(0x8d))/0x8+-parseInt(_0x4eba5c(0xb3))/0x9+-parseInt(_0x4eba5c(0x9b))/0xa;if(_0x52b9d8===_0x498ab7)break;else _0x5a925['push'](_0x5a925['shift']());}catch(_0x9fb353){_0x5a925['push'](_0x5a925['shift']());}}}(_0x2e61,0x8e85c));import{ok as _0x2db749}from'../modules/ok.js';export default _0x2db749['proxy']({'selectedEnv':_0x9b96db(0x90),get 'apiBase'(){const _0xd2424d=_0x9b96db,_0x5ee50b=this[_0xd2424d(0xa5)];return _0x5ee50b?__ENV__['API']+_0xd2424d(0xa3)+encodeURIComponent(_0x5ee50b):__ENV__[_0xd2424d(0x9c)]+_0xd2424d(0xac);},'selectEnv'(_0x380916){const _0x34c707=_0x9b96db;this[_0x34c707(0xa5)]!==_0x380916&&(this['selectedEnv']=_0x380916,this[_0x34c707(0xb2)]=null,this[_0x34c707(0x8e)]=null,this[_0x34c707(0xa9)]=null,this[_0x34c707(0xb0)]=null);},'info':null,'_infoPromise':null,async 'loadInfo'(){const _0x88aa1e=_0x9b96db;if(!this[_0x88aa1e(0xa5)])return null;if(null!==this['info'])return this[_0x88aa1e(0xa9)];if(!this[_0x88aa1e(0xb0)]){this[_0x88aa1e(0xb0)]=this['_fetchInfo']();try{this[_0x88aa1e(0xa9)]=await this[_0x88aa1e(0xb0)];}catch(_0x2dc4e9){throw this[_0x88aa1e(0xb0)]=null,_0x2dc4e9;}}return await this[_0x88aa1e(0xb0)],this['info'];},async 'reloadInfo'(){const _0x2f5a16=_0x9b96db;return this[_0x2f5a16(0xa9)]=null,this[_0x2f5a16(0xb0)]=null,this[_0x2f5a16(0x93)]();},async '_fetchInfo'(){const _0x44d84b=_0x9b96db;if(!this[_0x44d84b(0xa5)])return null;const _0x584ab7=await fetch(this[_0x44d84b(0x8f)]+'/info');if(_0x584ab7['ok'])return(await _0x584ab7[_0x44d84b(0x98)]())['data'];if(0x191===_0x584ab7[_0x44d84b(0x9e)]||0x193===_0x584ab7[_0x44d84b(0x9e)])return null;if(0x194===_0x584ab7[_0x44d84b(0x9e)])return null;throw new Error(_0x44d84b(0xa0));},'hasPlugin'(_0x589bca){const _0x1ea40b=_0x9b96db;return this[_0x1ea40b(0xa9)]?.[_0x1ea40b(0x97)]?.[_0x1ea40b(0xa4)](_0x589bca);},'types':null,'_typesPromise':null,async 'loadTypes'(){const _0x7d5065=_0x9b96db;if(!this[_0x7d5065(0xa5)])return[];if(this[_0x7d5065(0xb2)])return this[_0x7d5065(0xb2)];if(!this['_typesPromise']){const _0x47e88d=this[_0x7d5065(0x8f)];this[_0x7d5065(0x8e)]=fetch(_0x47e88d+'/types')['then'](async _0x3317cd=>{const _0x593f3d=_0x7d5065;if(!_0x3317cd['ok']){const _0x27d44d=await _0x3317cd[_0x593f3d(0x98)]()[_0x593f3d(0x9d)](()=>({})),_0x27b6b2=_0x27d44d?.[_0x593f3d(0x9a)],_0x4ce26e=_0x593f3d(0x95)==typeof _0x27b6b2?_0x27b6b2:_0x27b6b2?.['message']||_0x593f3d(0xa8)+_0x3317cd[_0x593f3d(0x9e)]+')',_0xb25bae=new Error(_0x4ce26e);throw _0xb25bae['status']=_0x3317cd[_0x593f3d(0x9e)],_0xb25bae;}const _0x2140fc=await _0x3317cd[_0x593f3d(0x98)]();return this['types']=_0x2140fc?.['data']??_0x2140fc?.[_0x593f3d(0xa2)]??[];})[_0x7d5065(0x9d)](_0x2cd067=>{const _0x40ee03=_0x7d5065;throw this[_0x40ee03(0x8e)]=null,_0x2cd067;});}return this['_typesPromise'];},async 'reloadTypes'(){const _0x4eccd2=_0x9b96db;return this[_0x4eccd2(0xb2)]=null,this['_typesPromise']=null,this[_0x4eccd2(0xae)]();},async 'registerType'(_0x223c72){const _0x41bf8e=_0x9b96db;await fetch(this[_0x41bf8e(0x8f)]+'/type/'+encodeURIComponent(_0x223c72),{'method':_0x41bf8e(0x96)}),await this[_0x41bf8e(0x99)]();},'envs':null,'_envsPromise':null,async 'loadEnvs'(){const _0x54a870=_0x9b96db;return this[_0x54a870(0x92)]?this[_0x54a870(0x92)]:(this[_0x54a870(0xaf)]||(this['_envsPromise']=fetch(__ENV__[_0x54a870(0x9c)]+_0x54a870(0xa7))[_0x54a870(0xad)](async _0x15ccef=>{const _0x271cfc=_0x54a870;if(0x191===_0x15ccef[_0x271cfc(0x9e)]||0x193===_0x15ccef[_0x271cfc(0x9e)])return this[_0x271cfc(0x92)]=[],this[_0x271cfc(0xa5)]=null,[];const {data:_0x1de5c8}=await _0x15ccef['json']();return this[_0x271cfc(0x92)]=_0x1de5c8||[];})['catch'](_0x4c301f=>{throw this['_envsPromise']=null,_0x4c301f;})),this[_0x54a870(0xaf)]);},async 'reloadEnvs'(){const _0x3fe38e=_0x9b96db;return this[_0x3fe38e(0x92)]=null,this['_envsPromise']=null,this[_0x3fe38e(0xb5)]();},'_pickBestEnv'(){const _0x1b3384=_0x9b96db,_0x144b96=(this[_0x1b3384(0x92)]||[])[_0x1b3384(0xa1)](_0x3cbfd3=>!_0x3cbfd3[_0x1b3384(0xb4)]['startsWith']('~')&&!_0x3cbfd3[_0x1b3384(0xaa)]);return _0x144b96['find'](_0x218b60=>_0x218b60[_0x1b3384(0xb4)]===this['selectedEnv'])?this[_0x1b3384(0xa5)]:_0x144b96[0x0]?.['name']??null;},async 'init'(){const _0x4350bb=_0x9b96db;await this['loadEnvs']();const _0x16b956=this[_0x4350bb(0x8c)]();_0x16b956!==this[_0x4350bb(0xa5)]&&this[_0x4350bb(0x91)](_0x16b956),this['selectedEnv']&&await this[_0x4350bb(0x93)]()[_0x4350bb(0x9d)](()=>{const _0x11ff13=_0x4350bb;this[_0x11ff13(0xa9)]=null;});}});function _0x2e61(){const _0x381a85=['reloadTypes','error','11892230ihgzvF','API','catch','status','412279PTzIuJ','Failed\x20to\x20fetch\x20info','filter','result','/env/','includes','selectedEnv','84IxqmHU','/envs','Failed\x20to\x20load\x20types\x20(HTTP\x20','info','orphaned','201388tFGDwM','/env','then','loadTypes','_envsPromise','_infoPromise','152hbQhQA','types','2089908QvOuaH','name','loadEnvs','529190HIUUkh','45BQDhbP','_pickBestEnv','3408864INPNIJ','_typesPromise','apiBase','default','selectEnv','envs','loadInfo','8991gUlalQ','string','POST','plugins','json'];_0x2e61=function(){return _0x381a85;};return _0x2e61();}
1
+ function _0x3498(_0x7e7a96,_0x5b0504){_0x7e7a96=_0x7e7a96-0xa6;const _0x3afed6=_0x3afe();let _0x3498d5=_0x3afed6[_0x7e7a96];return _0x3498d5;}const _0xbf573b=_0x3498;(function(_0x20294c,_0x2b5d47){const _0x420ac2=_0x3498,_0x3589cb=_0x20294c();while(!![]){try{const _0x18d9e6=parseInt(_0x420ac2(0xab))/0x1+parseInt(_0x420ac2(0xbd))/0x2*(-parseInt(_0x420ac2(0xac))/0x3)+-parseInt(_0x420ac2(0xc5))/0x4+-parseInt(_0x420ac2(0xc3))/0x5+-parseInt(_0x420ac2(0xc2))/0x6*(-parseInt(_0x420ac2(0xb7))/0x7)+-parseInt(_0x420ac2(0xb0))/0x8+parseInt(_0x420ac2(0xce))/0x9;if(_0x18d9e6===_0x2b5d47)break;else _0x3589cb['push'](_0x3589cb['shift']());}catch(_0x372e24){_0x3589cb['push'](_0x3589cb['shift']());}}}(_0x3afe,0xcc773));function _0x3afe(){const _0x37b936=['find','apiBase','/type/','228TkmEcO','731625CdtNFV','_typesPromise','2132720ddFxPy','API','name','selectEnv','types','Failed\x20to\x20load\x20types\x20(HTTP\x20','catch','json','_envsPromise','26957520nKypsT','loadInfo','/envs','loadTypes','selectedEnv','loadEnvs','258139UNYHwO','782442rAzfHC','_infoPromise','orphaned','/types','11953368JbMerd','result','data','/info','_pickBestEnv','default','info','51464WyRKDI','filter','Failed\x20to\x20fetch\x20info','then','status','/env','4jTPGVN','envs'];_0x3afe=function(){return _0x37b936;};return _0x3afe();}import{ok as _0xa3f11c}from'../modules/ok.js';export default _0xa3f11c['proxy']({'selectedEnv':_0xbf573b(0xb5),get 'apiBase'(){const _0x3bab83=_0xbf573b,_0x14c5b6=this[_0x3bab83(0xa9)];return _0x14c5b6?__ENV__[_0x3bab83(0xc6)]+'/env/'+encodeURIComponent(_0x14c5b6):__ENV__[_0x3bab83(0xc6)]+_0x3bab83(0xbc);},'selectEnv'(_0x2f6bc1){const _0x4b96c1=_0xbf573b;this[_0x4b96c1(0xa9)]!==_0x2f6bc1&&(this['selectedEnv']=_0x2f6bc1,this[_0x4b96c1(0xc9)]=null,this[_0x4b96c1(0xc4)]=null,this['info']=null,this[_0x4b96c1(0xad)]=null);},'info':null,'_infoPromise':null,async 'loadInfo'(){const _0x53fa19=_0xbf573b;if(!this['selectedEnv'])return null;if(null!==this[_0x53fa19(0xb6)])return this[_0x53fa19(0xb6)];if(!this['_infoPromise']){this[_0x53fa19(0xad)]=this['_fetchInfo']();try{this['info']=await this[_0x53fa19(0xad)];}catch(_0x55edbb){throw this[_0x53fa19(0xad)]=null,_0x55edbb;}}return await this[_0x53fa19(0xad)],this[_0x53fa19(0xb6)];},async 'reloadInfo'(){const _0x478159=_0xbf573b;return this[_0x478159(0xb6)]=null,this[_0x478159(0xad)]=null,this[_0x478159(0xa6)]();},async '_fetchInfo'(){const _0x30c2a9=_0xbf573b;if(!this['selectedEnv'])return null;const _0x559e1c=await fetch(this[_0x30c2a9(0xc0)]+_0x30c2a9(0xb3));if(_0x559e1c['ok'])return(await _0x559e1c[_0x30c2a9(0xcc)]())[_0x30c2a9(0xb2)];if(0x191===_0x559e1c[_0x30c2a9(0xbb)]||0x193===_0x559e1c[_0x30c2a9(0xbb)])return null;if(0x194===_0x559e1c['status'])return null;throw new Error(_0x30c2a9(0xb9));},'hasPlugin'(_0x4fffc8){return this['info']?.['plugins']?.['includes'](_0x4fffc8);},'types':null,'_typesPromise':null,async 'loadTypes'(){const _0x2e66cb=_0xbf573b;if(!this['selectedEnv'])return[];if(this['types'])return this[_0x2e66cb(0xc9)];if(!this[_0x2e66cb(0xc4)]){const _0xf78dc0=this['apiBase'];this[_0x2e66cb(0xc4)]=fetch(_0xf78dc0+_0x2e66cb(0xaf))[_0x2e66cb(0xba)](async _0x42c976=>{const _0x49be2a=_0x2e66cb;if(!_0x42c976['ok']){const _0x19fd97=await _0x42c976[_0x49be2a(0xcc)]()[_0x49be2a(0xcb)](()=>({})),_0x31336f=_0x19fd97?.['error'],_0x3ec737='string'==typeof _0x31336f?_0x31336f:_0x31336f?.['message']||_0x49be2a(0xca)+_0x42c976[_0x49be2a(0xbb)]+')',_0x229b7b=new Error(_0x3ec737);throw _0x229b7b['status']=_0x42c976[_0x49be2a(0xbb)],_0x229b7b;}const _0x264af7=await _0x42c976[_0x49be2a(0xcc)]();return this[_0x49be2a(0xc9)]=_0x264af7?.['data']??_0x264af7?.[_0x49be2a(0xb1)]??[];})[_0x2e66cb(0xcb)](_0x109cac=>{const _0x50e8da=_0x2e66cb;throw this[_0x50e8da(0xc4)]=null,_0x109cac;});}return this[_0x2e66cb(0xc4)];},async 'reloadTypes'(){const _0xef320c=_0xbf573b;return this[_0xef320c(0xc9)]=null,this['_typesPromise']=null,this[_0xef320c(0xa8)]();},async 'registerType'(_0xe7e5a8){const _0x273ea7=_0xbf573b;await fetch(this[_0x273ea7(0xc0)]+_0x273ea7(0xc1)+encodeURIComponent(_0xe7e5a8),{'method':'POST'}),await this['reloadTypes']();},'envs':null,'_envsPromise':null,async 'loadEnvs'(){const _0xc6c1f9=_0xbf573b;return this[_0xc6c1f9(0xbe)]?this[_0xc6c1f9(0xbe)]:(this[_0xc6c1f9(0xcd)]||(this[_0xc6c1f9(0xcd)]=fetch(__ENV__[_0xc6c1f9(0xc6)]+_0xc6c1f9(0xa7))[_0xc6c1f9(0xba)](async _0x2e1582=>{const _0x250eea=_0xc6c1f9;if(0x191===_0x2e1582['status']||0x193===_0x2e1582['status'])return this[_0x250eea(0xbe)]=[],this[_0x250eea(0xa9)]=null,[];const {data:_0x33f790}=await _0x2e1582[_0x250eea(0xcc)]();return this['envs']=_0x33f790||[];})[_0xc6c1f9(0xcb)](_0x427c1c=>{const _0x410a77=_0xc6c1f9;throw this[_0x410a77(0xcd)]=null,_0x427c1c;})),this['_envsPromise']);},async 'reloadEnvs'(){const _0x25bb0f=_0xbf573b;return this[_0x25bb0f(0xbe)]=null,this['_envsPromise']=null,this['loadEnvs']();},'_pickBestEnv'(){const _0xe2bd76=_0xbf573b,_0x4ea8b3=(this[_0xe2bd76(0xbe)]||[])[_0xe2bd76(0xb8)](_0x14b2df=>!_0x14b2df[_0xe2bd76(0xc7)]['startsWith']('~')&&!_0x14b2df[_0xe2bd76(0xae)]);return _0x4ea8b3[_0xe2bd76(0xbf)](_0xd6f071=>_0xd6f071[_0xe2bd76(0xc7)]===this[_0xe2bd76(0xa9)])?this[_0xe2bd76(0xa9)]:_0x4ea8b3[0x0]?.[_0xe2bd76(0xc7)]??null;},async 'init'(){const _0x36ab78=_0xbf573b;await this[_0x36ab78(0xaa)]();const _0x317e26=this[_0x36ab78(0xb4)]();_0x317e26!==this['selectedEnv']&&this[_0x36ab78(0xc8)](_0x317e26),this[_0x36ab78(0xa9)]&&await this[_0x36ab78(0xa6)]()[_0x36ab78(0xcb)](()=>{this['info']=null;});}});
@@ -1 +1 @@
1
- const _0x56e083=_0x1831;function _0x1831(_0x400cf1,_0x56901f){_0x400cf1=_0x400cf1-0x16a;const _0x46dfa2=_0x46df();let _0x1831f4=_0x46dfa2[_0x400cf1];return _0x1831f4;}(function(_0x2494da,_0x16b62e){const _0x367026=_0x1831,_0x3299c1=_0x2494da();while(!![]){try{const _0x523acc=parseInt(_0x367026(0x16e))/0x1*(parseInt(_0x367026(0x179))/0x2)+parseInt(_0x367026(0x185))/0x3+-parseInt(_0x367026(0x16a))/0x4+-parseInt(_0x367026(0x17b))/0x5*(-parseInt(_0x367026(0x17d))/0x6)+-parseInt(_0x367026(0x183))/0x7*(parseInt(_0x367026(0x16c))/0x8)+-parseInt(_0x367026(0x175))/0x9*(-parseInt(_0x367026(0x17c))/0xa)+-parseInt(_0x367026(0x17a))/0xb;if(_0x523acc===_0x16b62e)break;else _0x3299c1['push'](_0x3299c1['shift']());}catch(_0x50e002){_0x3299c1['push'](_0x3299c1['shift']());}}}(_0x46df,0xc6744));function _0x46df(){const _0x2b2a19=['677500dXoXMq','change','matches','(prefers-color-scheme:\x20light)','okdbTheme','light','dark','36BEmuBI','setItem','matchMedia','set','4ZiLHuF','27840406cXYNKL','5iaNVIC','2625670JMAVnz','8316834uoIZCr','addEventListener','getItem','current','isExplicit','undefined','2874235sBjSrT','has','1108635xPJLuk','1626132qEulEs','add','8GlyWhG','data-theme'];_0x46df=function(){return _0x2b2a19;};return _0x46df();}const STORAGE_KEY=_0x56e083(0x172),VALID=new Set([_0x56e083(0x174),_0x56e083(0x173)]);function readSaved(){const _0x128b14=_0x56e083;try{const _0x4f1641=localStorage[_0x128b14(0x17f)]('okdbTheme');return VALID[_0x128b14(0x184)](_0x4f1641)?_0x4f1641:null;}catch{return null;}}function detectPreferred(){const _0x13b8a6=_0x56e083;return _0x13b8a6(0x182)!=typeof window&&window[_0x13b8a6(0x177)]&&window[_0x13b8a6(0x177)]('(prefers-color-scheme:\x20light)')[_0x13b8a6(0x170)]?'light':_0x13b8a6(0x174);}function apply(_0x18672e){const _0x45c7cd=_0x56e083,_0x585ac3=document['documentElement'];'light'===_0x18672e?_0x585ac3['setAttribute']('data-theme',_0x45c7cd(0x173)):_0x585ac3['removeAttribute'](_0x45c7cd(0x16d));}const subscribers=new Set(),themeStore={'current':readSaved()||detectPreferred(),'isExplicit':null!==readSaved(),'set'(_0x951ec5){const _0x4dbd2b=_0x56e083;if(VALID['has'](_0x951ec5)){this[_0x4dbd2b(0x180)]=_0x951ec5,this[_0x4dbd2b(0x181)]=!0x0;try{localStorage[_0x4dbd2b(0x176)](_0x4dbd2b(0x172),_0x951ec5);}catch{}apply(_0x951ec5);for(const _0x3f9c14 of subscribers)_0x3f9c14(_0x951ec5);}},'toggle'(){const _0x4bc8c4=_0x56e083;this[_0x4bc8c4(0x178)](_0x4bc8c4(0x174)===this[_0x4bc8c4(0x180)]?_0x4bc8c4(0x173):_0x4bc8c4(0x174));},'subscribe':_0x35bf3d=>(subscribers[_0x56e083(0x16b)](_0x35bf3d),()=>subscribers['delete'](_0x35bf3d))};if(apply(themeStore[_0x56e083(0x180)]),_0x56e083(0x182)!=typeof window&&window[_0x56e083(0x177)]){const e=window[_0x56e083(0x177)](_0x56e083(0x171)),t=_0xb44100=>{const _0x25be8e=_0x56e083;if(!themeStore[_0x25be8e(0x181)]){themeStore[_0x25be8e(0x180)]=_0xb44100[_0x25be8e(0x170)]?_0x25be8e(0x173):_0x25be8e(0x174),apply(themeStore[_0x25be8e(0x180)]);for(const _0x423c29 of subscribers)_0x423c29(themeStore[_0x25be8e(0x180)]);}};e[_0x56e083(0x17e)]?.(_0x56e083(0x16f),t);}export default themeStore;
1
+ const _0x22aa8a=_0x2038;(function(_0x3acb43,_0x4d13ec){const _0x2f6a89=_0x2038,_0x2f5fed=_0x3acb43();while(!![]){try{const _0x3f0921=parseInt(_0x2f6a89(0xaa))/0x1*(-parseInt(_0x2f6a89(0xa7))/0x2)+-parseInt(_0x2f6a89(0x9b))/0x3*(-parseInt(_0x2f6a89(0xac))/0x4)+parseInt(_0x2f6a89(0x99))/0x5*(-parseInt(_0x2f6a89(0xaf))/0x6)+-parseInt(_0x2f6a89(0x9d))/0x7+-parseInt(_0x2f6a89(0x94))/0x8*(-parseInt(_0x2f6a89(0xab))/0x9)+-parseInt(_0x2f6a89(0xae))/0xa+-parseInt(_0x2f6a89(0xa0))/0xb*(-parseInt(_0x2f6a89(0x9c))/0xc);if(_0x3f0921===_0x4d13ec)break;else _0x2f5fed['push'](_0x2f5fed['shift']());}catch(_0x4d6c13){_0x2f5fed['push'](_0x2f5fed['shift']());}}}(_0x4c2f,0xa2a73));const STORAGE_KEY='okdbTheme',VALID=new Set(['dark',_0x22aa8a(0x93)]);function _0x4c2f(){const _0x73e35d=['data-theme','set','(prefers-color-scheme:\x20light)','2328195aGOweE','isExplicit','93921hcPIeb','12LCOYQI','3115371RheISf','undefined','add','15671777CZnHto','has','matchMedia','documentElement','okdbTheme','dark','getItem','53598KMFdvX','matches','removeAttribute','1ykqxBi','10996857cxtzlW','76ESMfpS','current','11720560EWfgKN','12xtahSW','light','8lYbeZK','setAttribute'];_0x4c2f=function(){return _0x73e35d;};return _0x4c2f();}function readSaved(){const _0xbb29a6=_0x22aa8a;try{const _0x5f36ca=localStorage[_0xbb29a6(0xa6)](_0xbb29a6(0xa4));return VALID[_0xbb29a6(0xa1)](_0x5f36ca)?_0x5f36ca:null;}catch{return null;}}function detectPreferred(){const _0x164edd=_0x22aa8a;return _0x164edd(0x9e)!=typeof window&&window[_0x164edd(0xa2)]&&window[_0x164edd(0xa2)](_0x164edd(0x98))[_0x164edd(0xa8)]?'light':'dark';}function apply(_0x5a0d08){const _0x4de640=_0x22aa8a,_0x56fca1=document[_0x4de640(0xa3)];_0x4de640(0x93)===_0x5a0d08?_0x56fca1[_0x4de640(0x95)]('data-theme',_0x4de640(0x93)):_0x56fca1[_0x4de640(0xa9)](_0x4de640(0x96));}function _0x2038(_0x19ca67,_0x380811){_0x19ca67=_0x19ca67-0x93;const _0x4c2fe3=_0x4c2f();let _0x203862=_0x4c2fe3[_0x19ca67];return _0x203862;}const subscribers=new Set(),themeStore={'current':readSaved()||detectPreferred(),'isExplicit':null!==readSaved(),'set'(_0x5038c5){const _0x1be3d2=_0x22aa8a;if(VALID['has'](_0x5038c5)){this[_0x1be3d2(0xad)]=_0x5038c5,this[_0x1be3d2(0x9a)]=!0x0;try{localStorage['setItem']('okdbTheme',_0x5038c5);}catch{}apply(_0x5038c5);for(const _0x8823 of subscribers)_0x8823(_0x5038c5);}},'toggle'(){const _0x47152c=_0x22aa8a;this[_0x47152c(0x97)](_0x47152c(0xa5)===this[_0x47152c(0xad)]?_0x47152c(0x93):'dark');},'subscribe':_0x1aae3f=>(subscribers[_0x22aa8a(0x9f)](_0x1aae3f),()=>subscribers['delete'](_0x1aae3f))};if(apply(themeStore[_0x22aa8a(0xad)]),'undefined'!=typeof window&&window[_0x22aa8a(0xa2)]){const e=window[_0x22aa8a(0xa2)](_0x22aa8a(0x98)),t=_0x57c343=>{const _0x40abf5=_0x22aa8a;if(!themeStore[_0x40abf5(0x9a)]){themeStore['current']=_0x57c343[_0x40abf5(0xa8)]?_0x40abf5(0x93):_0x40abf5(0xa5),apply(themeStore[_0x40abf5(0xad)]);for(const _0x2e9882 of subscribers)_0x2e9882(themeStore[_0x40abf5(0xad)]);}};e['addEventListener']?.('change',t);}export default themeStore;
@@ -1 +1 @@
1
- (function(_0x1c4f53,_0x1e0126){const _0x570aab=_0x1564,_0x42d8ab=_0x1c4f53();while(!![]){try{const _0x2a50f6=parseInt(_0x570aab(0x139))/0x1*(-parseInt(_0x570aab(0x134))/0x2)+-parseInt(_0x570aab(0x133))/0x3+-parseInt(_0x570aab(0x132))/0x4+parseInt(_0x570aab(0x13a))/0x5+parseInt(_0x570aab(0x135))/0x6+-parseInt(_0x570aab(0x130))/0x7*(-parseInt(_0x570aab(0x137))/0x8)+parseInt(_0x570aab(0x131))/0x9;if(_0x2a50f6===_0x1e0126)break;else _0x42d8ab['push'](_0x42d8ab['shift']());}catch(_0x3a0b57){_0x42d8ab['push'](_0x42d8ab['shift']());}}}(_0x139a,0x7dd47));let IMPLIED_BY={};export function setImpliedBy(_0x187e7b){IMPLIED_BY=_0x187e7b||{};}function _0x1564(_0x5355f9,_0x271e3e){_0x5355f9=_0x5355f9-0x12f;const _0x139a87=_0x139a();let _0x156455=_0x139a87[_0x5355f9];return _0x156455;}export function hasPermission(_0x55bd15,_0x1b02b7){const _0x19e58e=_0x1564;if(!Array[_0x19e58e(0x12f)](_0x55bd15)||0x0===_0x55bd15['length'])return!0x1;for(const _0x20931c of _0x55bd15){if(_0x19e58e(0x138)!=typeof _0x20931c||!_0x20931c['includes'](':')){if('*'===_0x20931c)return!0x0;continue;}const [_0x4b71d7,_0x28b5c0]=_0x20931c['split'](':'),[_0x2ea456,_0x1a11ad]=_0x1b02b7[_0x19e58e(0x136)](':');if(!('*'!==_0x4b71d7&&_0x4b71d7!==_0x2ea456||'*'!==_0x28b5c0&&_0x28b5c0!==_0x1a11ad))return!0x0;}const _0x40e60b=IMPLIED_BY[_0x1b02b7];if(_0x40e60b){for(const _0x56a2b1 of _0x40e60b)if(hasPermission(_0x55bd15,_0x56a2b1))return!0x0;}return!0x1;}export function permLabel(_0xa36430){return _0xa36430;}function _0x139a(){const _0x56cc22=['2542028jTzmjS','5649nycCGH','1058882ofFXCD','2659872aORupo','split','144776JQsRKr','string','1jMtwcq','4143805YOfSPg','isArray','119onOxkH','922572uuBxhW'];_0x139a=function(){return _0x56cc22;};return _0x139a();}
1
+ (function(_0x404b07,_0x410a1d){const _0x49e884=_0x1767,_0x12d35a=_0x404b07();while(!![]){try{const _0x572e54=parseInt(_0x49e884(0x1c4))/0x1+-parseInt(_0x49e884(0x1ca))/0x2*(-parseInt(_0x49e884(0x1cb))/0x3)+parseInt(_0x49e884(0x1cc))/0x4*(parseInt(_0x49e884(0x1ce))/0x5)+parseInt(_0x49e884(0x1c3))/0x6*(-parseInt(_0x49e884(0x1cf))/0x7)+parseInt(_0x49e884(0x1d0))/0x8+-parseInt(_0x49e884(0x1cd))/0x9+-parseInt(_0x49e884(0x1c9))/0xa*(parseInt(_0x49e884(0x1c7))/0xb);if(_0x572e54===_0x410a1d)break;else _0x12d35a['push'](_0x12d35a['shift']());}catch(_0xb38ebd){_0x12d35a['push'](_0x12d35a['shift']());}}}(_0x4ed5,0x58c7a));function _0x1767(_0x55932b,_0x2a0ee5){_0x55932b=_0x55932b-0x1c3;const _0x4ed579=_0x4ed5();let _0x1767ce=_0x4ed579[_0x55932b];return _0x1767ce;}let IMPLIED_BY={};function _0x4ed5(){const _0x1e4950=['3586wkihwy','810yIBTVQ','52gWUatq','1014237ZhFUYI','219935yGHCTV','959eNBhfA','3819744MPXQsQ','13998uZLBTC','101747MUVAJM','split','length','44PzfZcZ','string','2098000YCnxGF'];_0x4ed5=function(){return _0x1e4950;};return _0x4ed5();}export function setImpliedBy(_0x3dd9ca){IMPLIED_BY=_0x3dd9ca||{};}export function hasPermission(_0x2dbbff,_0x316216){const _0x2b50b2=_0x1767;if(!Array['isArray'](_0x2dbbff)||0x0===_0x2dbbff[_0x2b50b2(0x1c6)])return!0x1;for(const _0x16b94f of _0x2dbbff){if(_0x2b50b2(0x1c8)!=typeof _0x16b94f||!_0x16b94f['includes'](':')){if('*'===_0x16b94f)return!0x0;continue;}const [_0x1bab4f,_0x57d47c]=_0x16b94f[_0x2b50b2(0x1c5)](':'),[_0x3f1b05,_0x124f78]=_0x316216['split'](':');if(!('*'!==_0x1bab4f&&_0x1bab4f!==_0x3f1b05||'*'!==_0x57d47c&&_0x57d47c!==_0x124f78))return!0x0;}const _0x55eaf4=IMPLIED_BY[_0x316216];if(_0x55eaf4){for(const _0x257fb7 of _0x55eaf4)if(hasPermission(_0x2dbbff,_0x257fb7))return!0x0;}return!0x1;}export function permLabel(_0x324981){return _0x324981;}
@@ -1 +1 @@
1
- const _0x160a0c=_0x2f57;(function(_0x175722,_0x52f3b2){const _0x100871=_0x2f57,_0x5aa9f7=_0x175722();while(!![]){try{const _0x22f6fc=parseInt(_0x100871(0x17c))/0x1+parseInt(_0x100871(0x163))/0x2+-parseInt(_0x100871(0x16c))/0x3+parseInt(_0x100871(0x177))/0x4*(parseInt(_0x100871(0x16b))/0x5)+parseInt(_0x100871(0x162))/0x6+parseInt(_0x100871(0x157))/0x7+-parseInt(_0x100871(0x15f))/0x8;if(_0x22f6fc===_0x52f3b2)break;else _0x5aa9f7['push'](_0x5aa9f7['shift']());}catch(_0x594939){_0x5aa9f7['push'](_0x5aa9f7['shift']());}}}(_0x421a,0x512b4));const COMPARISON_OPS={'$eq':{'description':'Equals\x20this\x20value\x20exactly'},'$ne':{'description':_0x160a0c(0x178)},'$gt':{'description':'Greater\x20than'},'$gte':{'description':_0x160a0c(0x168)},'$lt':{'description':_0x160a0c(0x16e)},'$lte':{'description':_0x160a0c(0x159)}},SET_OPS={'$in':{'type':_0x160a0c(0x151),'items':{},'description':_0x160a0c(0x16f)},'$nin':{'type':_0x160a0c(0x151),'items':{},'description':_0x160a0c(0x16a)}},ELEMENT_OPS={'$exists':{'type':_0x160a0c(0x164),'enum':[!0x0,!0x1],'description':_0x160a0c(0x17a)},'$type':{'type':_0x160a0c(0x153),'enum':['string',_0x160a0c(0x150),_0x160a0c(0x164),_0x160a0c(0x152),_0x160a0c(0x151),_0x160a0c(0x171),_0x160a0c(0x170)],'description':_0x160a0c(0x175)}},STRING_OPS={'$regex':{'type':_0x160a0c(0x153),'description':'Regular-expression\x20pattern\x20\x20e.g.\x20{\x22$regex\x22:\x20\x22^foo\x22}'},'$options':{'type':_0x160a0c(0x153),'description':_0x160a0c(0x158)}},NUMERIC_OPS={'$mod':{'type':_0x160a0c(0x151),'items':{'type':_0x160a0c(0x150)},'minItems':0x2,'maxItems':0x2,'description':_0x160a0c(0x166)}},ARRAY_OPS={'$size':{'type':_0x160a0c(0x150),'description':'Array\x20length\x20equals\x20this\x20number'},'$all':{'type':_0x160a0c(0x151),'items':{},'description':_0x160a0c(0x15e)},'$elemMatch':{'type':_0x160a0c(0x152),'description':_0x160a0c(0x160)}};function buildOperatorProperties(_0x123a2d=[]){const _0x5b9924=_0x160a0c,_0x4d938b=_0x123a2d[_0x5b9924(0x179)]('number'),_0x5e4189=_0x123a2d[_0x5b9924(0x179)](_0x5b9924(0x153)),_0x1d9f93=_0x123a2d[_0x5b9924(0x179)](_0x5b9924(0x151)),_0x29dd1c=0x0===_0x123a2d[_0x5b9924(0x174)],_0x3b9f9d={...COMPARISON_OPS,...SET_OPS,...ELEMENT_OPS};return(_0x4d938b||_0x29dd1c)&&Object[_0x5b9924(0x155)](_0x3b9f9d,NUMERIC_OPS),(_0x5e4189||_0x29dd1c)&&Object[_0x5b9924(0x155)](_0x3b9f9d,STRING_OPS),(_0x1d9f93||_0x29dd1c)&&Object[_0x5b9924(0x155)](_0x3b9f9d,ARRAY_OPS),_0x3b9f9d[_0x5b9924(0x172)]={'type':_0x5b9924(0x152),'description':_0x5b9924(0x165),'properties':{..._0x3b9f9d},'additionalProperties':!0x1},_0x3b9f9d;}function _0x421a(){const _0x223123=['Modulo\x20[divisor,\x20remainder]\x20\x20e.g.\x20{\x22$mod\x22:[2,0]}\x20matches\x20even\x20numbers','$and','Greater\x20than\x20or\x20equal','any','Value\x20is\x20NOT\x20one\x20of\x20these\x20\x20e.g.\x20{\x22$nin\x22:\x20[1,2]}','59935Nechxw','1212501YcYQsa','OR\x20\x20—\x20at\x20least\x20one\x20sub-condition\x20must\x20match','Less\x20than','Value\x20is\x20one\x20of\x20these\x20(OR\x20match)\x20\x20e.g.\x20{\x22$in\x22:\x20[\x22a\x22,\x22b\x22]}','undefined','null','$not','join','length','Match\x20by\x20JavaScript\x20type\x20name','Direct\x20equality\x20match\x20\x20e.g.\x20\x22value\x22\x20or\x2042','52wSgPiB','Not\x20equal\x20to\x20this\x20value','includes','true\x20→\x20field\x20must\x20be\x20present,\x20\x20false\x20→\x20field\x20must\x20be\x20absent','isArray','334384xvHSJV','Sift\x20filter','number','array','object','string','AND\x20—\x20all\x20sub-conditions\x20must\x20match','assign','\x20|\x20','2964472kXwhJC','Regex\x20flags\x20used\x20with\x20$regex\x20\x20e.g.\x20\x22i\x22\x20for\x20case-insensitive','Less\x20than\x20or\x20equal','MongoDB-style\x20sift\x20filter.\x20\x20Field\x20names\x20are\x20keys;\x20use\x20$and/$or/$nor\x20for\x20logic.','$or','$nor','\x22\x20\x20(','Array\x20contains\x20ALL\x20of\x20these\x20values','3964656iyEYEY','At\x20least\x20one\x20array\x20element\x20matches\x20this\x20sub-query','http://json-schema.org/draft-07/schema#','1609806STFNrb','100410TKlpHP','boolean','Negate\x20the\x20nested\x20operator\x20conditions\x20\x20e.g.\x20{\x22$not\x22:{\x22$gt\x22:5}}'];_0x421a=function(){return _0x223123;};return _0x421a();}function _0x2f57(_0x30d086,_0x2286f1){_0x30d086=_0x30d086-0x14f;const _0x421abf=_0x421a();let _0x2f575c=_0x421abf[_0x30d086];return _0x2f575c;}function buildFieldSchema(_0x1c3af0,_0x4e35cd=[]){const _0x4f543f=_0x160a0c;return{'description':'\x22'+_0x1c3af0+_0x4f543f(0x15d)+(_0x4e35cd[_0x4f543f(0x174)]?_0x4e35cd[_0x4f543f(0x173)](_0x4f543f(0x156)):_0x4f543f(0x169))+')','oneOf':[{'description':_0x4f543f(0x176),'not':{'type':_0x4f543f(0x152)}},{'type':'object','description':'Operator\x20conditions','properties':buildOperatorProperties(_0x4e35cd),'additionalProperties':!0x1}]};}export function buildSiftSchema(_0x31f34a={}){const _0x233a6f=_0x160a0c,_0x13e9c0={};for(const [_0x4bd877,_0x33c8fa]of Object['entries'](_0x31f34a))_0x13e9c0[_0x4bd877]=buildFieldSchema(_0x4bd877,Array[_0x233a6f(0x17b)](_0x33c8fa)?_0x33c8fa:[String(_0x33c8fa)]);const _0x18c053={'$ref':'#'};return _0x13e9c0[_0x233a6f(0x167)]={'type':_0x233a6f(0x151),'items':_0x18c053,'description':_0x233a6f(0x154)},_0x13e9c0[_0x233a6f(0x15b)]={'type':_0x233a6f(0x151),'items':_0x18c053,'description':_0x233a6f(0x16d)},_0x13e9c0[_0x233a6f(0x15c)]={'type':'array','items':_0x18c053,'description':'NOR\x20—\x20no\x20sub-condition\x20may\x20match'},{'$schema':_0x233a6f(0x161),'title':_0x233a6f(0x14f),'description':_0x233a6f(0x15a),'type':_0x233a6f(0x152),'properties':_0x13e9c0,'additionalProperties':buildFieldSchema('(field)',[])};}
1
+ const _0x304a18=_0x279a;function _0x2cfb(){const _0x18ba4f=['2ufvjTd','array','boolean','7nzPzuO','\x22\x20\x20(','Greater\x20than\x20or\x20equal','length','Regular-expression\x20pattern\x20\x20e.g.\x20{\x22$regex\x22:\x20\x22^foo\x22}','Value\x20is\x20NOT\x20one\x20of\x20these\x20\x20e.g.\x20{\x22$nin\x22:\x20[1,2]}','At\x20least\x20one\x20array\x20element\x20matches\x20this\x20sub-query','includes','Direct\x20equality\x20match\x20\x20e.g.\x20\x22value\x22\x20or\x2042','number','Value\x20is\x20one\x20of\x20these\x20(OR\x20match)\x20\x20e.g.\x20{\x22$in\x22:\x20[\x22a\x22,\x22b\x22]}','true\x20→\x20field\x20must\x20be\x20present,\x20\x20false\x20→\x20field\x20must\x20be\x20absent','Greater\x20than','AND\x20—\x20all\x20sub-conditions\x20must\x20match','assign','Less\x20than','Regex\x20flags\x20used\x20with\x20$regex\x20\x20e.g.\x20\x22i\x22\x20for\x20case-insensitive','9LzRWcr','entries','$nor','MongoDB-style\x20sift\x20filter.\x20\x20Field\x20names\x20are\x20keys;\x20use\x20$and/$or/$nor\x20for\x20logic.','join','3056520uqEzcl','\x20|\x20','$or','5158488QhdMLV','1616789ztVeoj','4984KVXUmG','null','Less\x20than\x20or\x20equal','732611JzCUhF','Match\x20by\x20JavaScript\x20type\x20name','isArray','Modulo\x20[divisor,\x20remainder]\x20\x20e.g.\x20{\x22$mod\x22:[2,0]}\x20matches\x20even\x20numbers','1257rdVugP','36Mwxbgz','Array\x20length\x20equals\x20this\x20number','Sift\x20filter','(field)','string','608710ilkzis','object','2747970qjWDxk','http://json-schema.org/draft-07/schema#'];_0x2cfb=function(){return _0x18ba4f;};return _0x2cfb();}(function(_0xea8dd0,_0x14a4b3){const _0xffb1fa=_0x279a,_0x630f3c=_0xea8dd0();while(!![]){try{const _0x25fb9c=-parseInt(_0xffb1fa(0xdd))/0x1*(-parseInt(_0xffb1fa(0xef))/0x2)+parseInt(_0xffb1fa(0xe5))/0x3*(parseInt(_0xffb1fa(0xde))/0x4)+-parseInt(_0xffb1fa(0xeb))/0x5+-parseInt(_0xffb1fa(0x108))/0x6+parseInt(_0xffb1fa(0xf2))/0x7*(-parseInt(_0xffb1fa(0x10b))/0x8)+-parseInt(_0xffb1fa(0x103))/0x9*(-parseInt(_0xffb1fa(0xed))/0xa)+-parseInt(_0xffb1fa(0xe1))/0xb*(parseInt(_0xffb1fa(0xe6))/0xc);if(_0x25fb9c===_0x14a4b3)break;else _0x630f3c['push'](_0x630f3c['shift']());}catch(_0x645e3){_0x630f3c['push'](_0x630f3c['shift']());}}}(_0x2cfb,0xe4f9c));function _0x279a(_0x5f1205,_0x91a915){_0x5f1205=_0x5f1205-0xdd;const _0x2cfbf7=_0x2cfb();let _0x279a9a=_0x2cfbf7[_0x5f1205];return _0x279a9a;}const COMPARISON_OPS={'$eq':{'description':'Equals\x20this\x20value\x20exactly'},'$ne':{'description':'Not\x20equal\x20to\x20this\x20value'},'$gt':{'description':_0x304a18(0xfe)},'$gte':{'description':_0x304a18(0xf4)},'$lt':{'description':_0x304a18(0x101)},'$lte':{'description':_0x304a18(0xe0)}},SET_OPS={'$in':{'type':'array','items':{},'description':_0x304a18(0xfc)},'$nin':{'type':_0x304a18(0xf0),'items':{},'description':_0x304a18(0xf7)}},ELEMENT_OPS={'$exists':{'type':_0x304a18(0xf1),'enum':[!0x0,!0x1],'description':_0x304a18(0xfd)},'$type':{'type':_0x304a18(0xea),'enum':[_0x304a18(0xea),_0x304a18(0xfb),_0x304a18(0xf1),_0x304a18(0xec),'array',_0x304a18(0xdf),'undefined'],'description':_0x304a18(0xe2)}},STRING_OPS={'$regex':{'type':_0x304a18(0xea),'description':_0x304a18(0xf6)},'$options':{'type':_0x304a18(0xea),'description':_0x304a18(0x102)}},NUMERIC_OPS={'$mod':{'type':_0x304a18(0xf0),'items':{'type':'number'},'minItems':0x2,'maxItems':0x2,'description':_0x304a18(0xe4)}},ARRAY_OPS={'$size':{'type':_0x304a18(0xfb),'description':_0x304a18(0xe7)},'$all':{'type':_0x304a18(0xf0),'items':{},'description':'Array\x20contains\x20ALL\x20of\x20these\x20values'},'$elemMatch':{'type':_0x304a18(0xec),'description':_0x304a18(0xf8)}};function buildOperatorProperties(_0x125316=[]){const _0x4f4beb=_0x304a18,_0x3ef32a=_0x125316[_0x4f4beb(0xf9)](_0x4f4beb(0xfb)),_0x5cff41=_0x125316['includes'](_0x4f4beb(0xea)),_0x1b36fd=_0x125316[_0x4f4beb(0xf9)](_0x4f4beb(0xf0)),_0x25e484=0x0===_0x125316[_0x4f4beb(0xf5)],_0x1bc195={...COMPARISON_OPS,...SET_OPS,...ELEMENT_OPS};return(_0x3ef32a||_0x25e484)&&Object['assign'](_0x1bc195,NUMERIC_OPS),(_0x5cff41||_0x25e484)&&Object['assign'](_0x1bc195,STRING_OPS),(_0x1b36fd||_0x25e484)&&Object[_0x4f4beb(0x100)](_0x1bc195,ARRAY_OPS),_0x1bc195['$not']={'type':_0x4f4beb(0xec),'description':'Negate\x20the\x20nested\x20operator\x20conditions\x20\x20e.g.\x20{\x22$not\x22:{\x22$gt\x22:5}}','properties':{..._0x1bc195},'additionalProperties':!0x1},_0x1bc195;}function buildFieldSchema(_0x317bef,_0x575054=[]){const _0x4d8f9b=_0x304a18;return{'description':'\x22'+_0x317bef+_0x4d8f9b(0xf3)+(_0x575054['length']?_0x575054[_0x4d8f9b(0x107)](_0x4d8f9b(0x109)):'any')+')','oneOf':[{'description':_0x4d8f9b(0xfa),'not':{'type':'object'}},{'type':_0x4d8f9b(0xec),'description':'Operator\x20conditions','properties':buildOperatorProperties(_0x575054),'additionalProperties':!0x1}]};}export function buildSiftSchema(_0x4ecc87={}){const _0x6930e1=_0x304a18,_0x33439e={};for(const [_0x3e6976,_0x4e6e79]of Object[_0x6930e1(0x104)](_0x4ecc87))_0x33439e[_0x3e6976]=buildFieldSchema(_0x3e6976,Array[_0x6930e1(0xe3)](_0x4e6e79)?_0x4e6e79:[String(_0x4e6e79)]);const _0x24ce43={'$ref':'#'};return _0x33439e['$and']={'type':'array','items':_0x24ce43,'description':_0x6930e1(0xff)},_0x33439e[_0x6930e1(0x10a)]={'type':_0x6930e1(0xf0),'items':_0x24ce43,'description':'OR\x20\x20—\x20at\x20least\x20one\x20sub-condition\x20must\x20match'},_0x33439e[_0x6930e1(0x105)]={'type':_0x6930e1(0xf0),'items':_0x24ce43,'description':'NOR\x20—\x20no\x20sub-condition\x20may\x20match'},{'$schema':_0x6930e1(0xee),'title':_0x6930e1(0xe8),'description':_0x6930e1(0x106),'type':_0x6930e1(0xec),'properties':_0x33439e,'additionalProperties':buildFieldSchema(_0x6930e1(0xe9),[])};}