@kedem/okdb 2.1.2 → 2.2.0

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.
@@ -264,7 +264,7 @@ Queue-mode embeddings records keep the same explicit membership order in the gen
264
264
  // For a pipeline named 'articles' in the default env, the scoped key is 'default:articles'
265
265
  const indexer = okdb.embeddings.indexer('default:articles');
266
266
  const stats = await indexer.stats();
267
- // { total, pending, embedded, failed }
267
+ // { doc_counts: { pending, done, failed, deleted, total }, ... }
268
268
 
269
269
  // Pipeline api.stats() wraps all four components
270
270
  const { api } = await okdb.embeddings.createPipeline('articles', { ... });
@@ -278,8 +278,8 @@ function waitForIdle(pipelineKey, timeoutMs = 120_000) {
278
278
  const check = async () => {
279
279
  const api = okdb.embeddings.indexer(pipelineKey);
280
280
  if (!api) return;
281
- const { pending } = await api.stats().catch(() => ({ pending: 1 }));
282
- if (pending === 0) { clearTimeout(timer); resolve(); }
281
+ const { doc_counts } = await api.stats().catch(() => ({ doc_counts: { pending: 1 } }));
282
+ if (doc_counts.pending === 0) { clearTimeout(timer); resolve(); }
283
283
  };
284
284
  okdb.events.on(`embeddings:indexer_flushed@indexer@${pipelineKey}`, check);
285
285
  check();
package/docs/querying.md CHANGED
@@ -118,12 +118,30 @@ const recent = okdb.query(
118
118
  limit: 20,
119
119
  },
120
120
  );
121
+
122
+ // Arbitrary (non-prefix) range on an index: use startIndex/endIndex, not start/end —
123
+ // query()'s own bound names differ from byIndex's (see below). Passing start/end here
124
+ // throws, pointing you at the right names, instead of silently scanning everything.
125
+ const weekAgo = Date.now() - 7 * 86400_000;
126
+ const recentAdmins = okdb.query(
127
+ 'users',
128
+ {},
129
+ {
130
+ index: ['role', 'createdAt'],
131
+ startIndex: ['admin', weekAgo],
132
+ endIndex: ['admin', Infinity],
133
+ },
134
+ );
121
135
  ```
122
136
 
123
137
  :::tip
124
138
  There is no query planner. If you pass `index`, OKDB uses it without cost analysis. Pick the most selective index for your query by hand.
125
139
  :::
126
140
 
141
+ :::warning Unrecognized options throw
142
+ `query()`'s options are a fixed, invented vocabulary (`index`, `prefix`, `startIndex`, `endIndex`, `startKey`, `endKey`, `reverse`, `limit`, `offset`, `select`, `near`, `fts`, `vector`) — not a raw pass-through to the underlying range scan. Passing anything else, including the byIndex/getRange-style `start`/`end`, throws immediately rather than silently ignoring the key and scanning unfiltered.
143
+ :::
144
+
127
145
  ---
128
146
 
129
147
  ## Index scans
@@ -161,6 +179,8 @@ for (const { key, value } of okdb.byIndex('articles', ['author', 'publishedAt'],
161
179
  | `offset` | number | Skip this many entries |
162
180
  | `includeViolations` | boolean | For unique indexes: include all violating entries |
163
181
 
182
+ `start`/`end` are always the lower/upper bound regardless of `reverse` — `byIndex`/`getIndex`/`countByIndex` swap them internally for a descending scan, so you never need to. Unrecognized option keys throw immediately rather than being silently ignored.
183
+
164
184
  `getIndex` returns primary keys from the index sub-database (not full records) as a **lazy iterable**. Spread to an array if you need `.length`: `[...env.getIndex(...)]`.
165
185
 
166
186
  ---
package/docs/views.md CHANGED
@@ -31,7 +31,7 @@ const stats = env.views.get('orderStats');
31
31
  // total: { value: 142500 },
32
32
  // count: { value: 312 },
33
33
  // avgValue: { value: 456.7 },
34
- // byRegion: { EU: { value: 140 }, US: { value: 172 } }
34
+ // byRegion: { totalGroups: 2, preview: [{ key: 'EU', value: 140 }, { key: 'US', value: 172 }], hasMore: false, cursor: null }
35
35
  // }
36
36
  ```
37
37
 
@@ -82,14 +82,14 @@ reduce: {
82
82
 
83
83
  Each key in `reduce` becomes an output field. The value is a reducer spec:
84
84
 
85
- | Reducer | Spec | Output | Notes |
86
- | ---------- | ----------------------- | ------------------------------ | ---------------------------------------------------- |
87
- | `$count` | `{ $count: true }` | `{ value: N }` | Counts matching docs |
88
- | `$sum` | `{ $sum: 'field' }` | `{ value: N }` | Sums a numeric field; non-numeric values are ignored |
89
- | `$avg` | `{ $avg: 'field' }` | `{ value: N }` | Running average; `value` is `0` when no docs match |
90
- | `$min` | `{ $min: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
91
- | `$max` | `{ $max: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
92
- | `$countBy` | `{ $countBy: 'field' }` | `{ [groupKey]: { value: N } }` | Groups docs by a field value |
85
+ | Reducer | Spec | Output | Notes |
86
+ | ---------- | ----------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------------- |
87
+ | `$count` | `{ $count: true }` | `{ value: N }` | Counts matching docs |
88
+ | `$sum` | `{ $sum: 'field' }` | `{ value: N }` | Sums a numeric field; non-numeric values are ignored |
89
+ | `$avg` | `{ $avg: 'field' }` | `{ value: N }` | Running average; `value` is `0` when no docs match |
90
+ | `$min` | `{ $min: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
91
+ | `$max` | `{ $max: 'field' }` | `{ value: X }` | Index-backed: auto-creates an index on the field |
92
+ | `$countBy` | `{ $countBy: 'field' }` | `{ totalGroups, preview: [{key, value}], hasMore, cursor }` | Groups docs by a field value — paginated, see [Output shape](#output-shape) |
93
93
 
94
94
  Field paths in all reducers support dot notation for nested access: `{ $sum: 'metrics.revenue' }`, `{ $countBy: 'address.country' }`. This is consistent with how indexes handle nested fields.
95
95
 
@@ -102,14 +102,14 @@ Field paths in all reducers support dot notation for nested access: `{ $sum: 'me
102
102
  `views.get(name)` returns an object with one key per entry in `reduce`. The shape depends on the reducer:
103
103
 
104
104
  - **Scalar reducers** (`$count`, `$sum`, `$avg`, `$min`, `$max`): `{ value: N }`
105
- - **Grouped reducer** (`$countBy`): `{ [groupKey]: { value: N } }`
105
+ - **Grouped reducers** (`$countBy`, `$group`): `{ totalGroups, preview: [...], hasMore, cursor }` — a paginated top-N of groups, not a plain `{ [groupKey]: ... }` map. `preview` entries are `{ key, value }` for `$countBy` and `{ key, <subReducerName>: { value } , ... }` for `$group`. By default `$countBy` sorts by count descending, capped at 50 groups; pass `{ preview: { limit, order, axis, cursor } }` to `get()` to page through the rest (`hasMore`/`cursor` mirror the next page).
106
106
  - **`$ref` slots**: a nested object with the same shape as a top-level `reduce` result (see [$ref aggregations](#ref-aggregations))
107
107
 
108
108
  ```js
109
109
  const result = env.views.get('orderStats');
110
110
  result.total.value; // → 142500 (number)
111
111
  result.avgValue.value; // → 456.7 (number)
112
- result.byRegion.EU.value; // → 140 (number)
112
+ result.byRegion.preview.find((e) => e.key === 'EU').value; // → 140 (number)
113
113
  ```
114
114
 
115
115
  ### `items: true`
@@ -123,7 +123,7 @@ reduce: {
123
123
  }
124
124
 
125
125
  // Access source docs for a specific group
126
- const euOrders = result.byRegion.EU.items(); // → Order[]
126
+ const euOrders = result.byRegion.preview.find((e) => e.key === 'EU').items(); // → Order[]
127
127
 
128
128
  // Scalar items() returns all matching docs
129
129
  const allOrders = result.total.items(); // → Order[]
@@ -156,18 +156,17 @@ reduce: {
156
156
 
157
157
  ### Output shape
158
158
 
159
- Each populated group key maps to a nested object with one entry per sub-reducer:
159
+ Like `$countBy`, the result is the paginated `{ totalGroups, preview, hasMore, cursor }` shape (see [Output shape](#output-shape) above) — not a plain `{ [groupKey]: {...} }` map. Each `preview` entry is `{ key, <subReducerName>: { value }, ... }`:
160
160
 
161
161
  ```js
162
162
  {
163
- groupKey1: {
164
- revenue: { value: 1200 },
165
- count: { value: 4 },
166
- },
167
- groupKey2: {
168
- revenue: { value: 800 },
169
- count: { value: 3 },
170
- },
163
+ totalGroups: 2,
164
+ preview: [
165
+ { key: 'groupKey1', revenue: { value: 1200 }, count: { value: 4 } },
166
+ { key: 'groupKey2', revenue: { value: 800 }, count: { value: 3 } },
167
+ ],
168
+ hasMore: false,
169
+ cursor: null,
171
170
  }
172
171
  ```
173
172
 
@@ -175,8 +174,9 @@ Empty groups (count/sum reaching 0) are removed automatically — they are never
175
174
 
176
175
  ```js
177
176
  const stats = env.views.get('orderStats');
178
- stats.byProduct.p1.revenue.value; // → 1200
179
- stats.byProduct.p1.count.value; // → 4
177
+ const p1 = stats.byProduct.preview.find((e) => e.key === 'p1');
178
+ p1.revenue.value; // → 1200
179
+ p1.count.value; // → 4
180
180
  ```
181
181
 
182
182
  ### Compound key
@@ -190,7 +190,7 @@ $group: {
190
190
  }
191
191
 
192
192
  // Key for product_id='p1', region='EU': 'p1\x00EU'
193
- stats.byProductRegion['p1\x00EU'].count.value;
193
+ stats.byProductRegion.preview.find((e) => e.key === 'p1\x00EU').count.value;
194
194
  ```
195
195
 
196
196
  ### Filter semantics
@@ -227,10 +227,10 @@ await env.views.create('lineItemStats', {
227
227
  });
228
228
 
229
229
  const stats = env.views.get('lineItemStats');
230
- // stats.byProduct = {
231
- // 'p1': { revenue: { value: 1500 }, count: { value: 3 } },
232
- // 'p2': { revenue: { value: 800 }, count: { value: 2 } },
233
- // }
230
+ // stats.byProduct.preview = [
231
+ // { key: 'p1', revenue: { value: 1500 }, count: { value: 3 } },
232
+ // { key: 'p2', revenue: { value: 800 }, count: { value: 2 } },
233
+ // ]
234
234
  ```
235
235
 
236
236
  `$group` also works inside `$ref.reduce`:
@@ -253,7 +253,7 @@ reduce: {
253
253
  },
254
254
  }
255
255
 
256
- stats.lineItems.byProduct.p1.total.value; // → aggregate revenue for product p1
256
+ stats.lineItems.byProduct.preview.find((e) => e.key === 'p1').total.value; // → aggregate revenue for product p1
257
257
  ```
258
258
 
259
259
  ---
@@ -315,12 +315,12 @@ await db.put('products', 'p1', { vendor: 'ACME' });
315
315
  await db.put('line_items', 'li1', { product_id: 'p1', amount: 100 });
316
316
  await db.put('line_items', 'li2', { product_id: 'p1', amount: 200 });
317
317
 
318
- // salesByVendor.byVendor = { ACME: { value: 2 } }
318
+ // salesByVendor.byVendor.preview → [{ key: 'ACME', value: 2 }]
319
319
 
320
320
  await db.put('products', 'p1', { vendor: 'NewCo' }); // rename the vendor
321
321
 
322
322
  // After propagation:
323
- // salesByVendor.byVendor = { NewCo: { value: 2 } }
323
+ // salesByVendor.byVendor.preview → [{ key: 'NewCo', value: 2 }]
324
324
  // ACME bucket is removed; both li1 and li2 moved to NewCo automatically.
325
325
  ```
326
326
 
@@ -451,7 +451,7 @@ Each entry:
451
451
 
452
452
  - `bucketKey` — canonical string key for the bucket (ISO date string for `preset:'time'`)
453
453
  - `granularity` — the view's configured granularity
454
- - `reducers` — `{ [outputField]: { value: N } }` for scalar reducers; `{ [outputField]: { [groupKey]: { value: N } } }` for `$countBy`
454
+ - `reducers` — `{ [outputField]: { value: N } }` for scalar reducers; `{ [outputField]: { totalGroups, preview: [{key, value}], hasMore, cursor } }` for `$countBy`/`$group`
455
455
  - `refs` — `{ [refName]: { [subField]: { value: N } } }` for `$ref` sub-views
456
456
 
457
457
  ### `listBuckets(name, options)` — enumerate populated buckets
@@ -1 +1 @@
1
- 'use strict';const _0x449694=_0x5978;(function(_0x444bb5,_0x3c995e){const _0x3c2561=_0x5978,_0x3c8bd0=_0x444bb5();while(!![]){try{const _0x5a1603=-parseInt(_0x3c2561(0x2c8))/0x1+-parseInt(_0x3c2561(0x1ea))/0x2+parseInt(_0x3c2561(0x252))/0x3+-parseInt(_0x3c2561(0x22d))/0x4+parseInt(_0x3c2561(0x22b))/0x5*(-parseInt(_0x3c2561(0x280))/0x6)+parseInt(_0x3c2561(0x34c))/0x7*(-parseInt(_0x3c2561(0x315))/0x8)+parseInt(_0x3c2561(0x21b))/0x9;if(_0x5a1603===_0x3c995e)break;else _0x3c8bd0['push'](_0x3c8bd0['shift']());}catch(_0x5b469c){_0x3c8bd0['push'](_0x3c8bd0['shift']());}}}(_0x3536,0x54f9e));var require$$0$4=require(_0x449694(0x260)),require$$2=require('v8'),require$$0=require(_0x449694(0x1f4)),require$$0$3=require(_0x449694(0x334)),require$$0$1=require('lmdb'),require$$0$2=require(_0x449694(0x2b1)),require$$6=require('./okdb');function getDefaultExportFromCjs(_0x2ec5a5){const _0x3e9e97=_0x449694;return _0x2ec5a5&&_0x2ec5a5[_0x3e9e97(0x363)]&&Object[_0x3e9e97(0x2b7)][_0x3e9e97(0x30f)][_0x3e9e97(0x336)](_0x2ec5a5,_0x3e9e97(0x1e6))?_0x2ec5a5[_0x3e9e97(0x1e6)]:_0x2ec5a5;}var okdbFunctionsSandboxWorker$1={},okdbFatalReport,hasRequiredOkdbFatalReport;function requireOkdbFatalReport(){if(hasRequiredOkdbFatalReport)return okdbFatalReport;hasRequiredOkdbFatalReport=0x1;function _0x16e445(_0x546c49){const _0x19f7e7=_0x5978;if(process.env.OKDB_FATAL_REPORT!=='1')return;try{if(!process['report'])return;process[_0x19f7e7(0x2bf)][_0x19f7e7(0x33e)]=!![];try{if('excludeEnv'in process[_0x19f7e7(0x2bf)])process[_0x19f7e7(0x2bf)]['excludeEnv']=process.env.OKDB_FATAL_REPORT_ENV!=='1';}catch{}if(process[_0x19f7e7(0x2c5)]!==_0x19f7e7(0x2fa))try{process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2cb)]=!![];if(typeof process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2dd)]===_0x19f7e7(0x332))process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2dd)]='SIGSEGV';}catch{}if(process.env.OKDB_REPORT_DIR)try{require('fs')[_0x19f7e7(0x368)](process.env.OKDB_REPORT_DIR,{'recursive':!![]}),process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2e0)]=process.env.OKDB_REPORT_DIR;}catch{}try{process[_0x19f7e7(0x2bf)][_0x19f7e7(0x2fd)]='';}catch{}if(_0x546c49)process.env.OKDB_REPORT_TAG=String(_0x546c49);}catch{}}return okdbFatalReport={'enableFatalReport':_0x16e445},okdbFatalReport;}var okdbFunctionsSandbox,hasRequiredOkdbFunctionsSandbox;function requireOkdbFunctionsSandbox(){if(hasRequiredOkdbFunctionsSandbox)return okdbFunctionsSandbox;hasRequiredOkdbFunctionsSandbox=0x1;const _0x450b6f=require$$0;function _0x1d259e(_0x16701e){const _0x408ca4=_0x16701e==='*',_0x4635a3=_0x408ca4?null:new Set(Array['isArray'](_0x16701e)?_0x16701e:[]);return function _0x2afd32(_0x222910,_0x41e7c9){const _0x4cc1f0=_0x5978;if(!_0x408ca4){let _0x1f8509;try{const _0x102f00=new URL(typeof _0x222910===_0x4cc1f0(0x332)?_0x222910:_0x222910?.['url']??String(_0x222910));_0x1f8509=_0x102f00[_0x4cc1f0(0x22e)];}catch{const _0x38ce74=new Error(_0x4cc1f0(0x218));return _0x38ce74['code']=_0x4cc1f0(0x2ff),Promise['reject'](_0x38ce74);}if(!_0x4635a3[_0x4cc1f0(0x270)](_0x1f8509)){const _0x241347=new Error(_0x4635a3['size']===0x0?_0x4cc1f0(0x312):_0x4cc1f0(0x331)+_0x1f8509+_0x4cc1f0(0x1fd));return _0x241347['code']=_0x4cc1f0(0x2ff),Promise[_0x4cc1f0(0x1f2)](_0x241347);}}return fetch(_0x222910,_0x41e7c9);};}function _0x1dd1e5(_0x3fcf6c={}){const _0x506f85=_0x5978,_0x9de61d=_0x3fcf6c[_0x506f85(0x1e3)]!==![],_0x3544e1=_0x3fcf6c[_0x506f85(0x345)]??[],_0x4020c9={'Date':Date,'Math':Math,'JSON':JSON,'Array':Array,'Object':Object,'String':String,'Number':Number,'Boolean':Boolean,'Map':Map,'Set':Set,'Promise':Promise,'URL':URL,'URLSearchParams':URLSearchParams,'TextEncoder':TextEncoder,'TextDecoder':TextDecoder,'AbortController':AbortController,'AbortSignal':AbortSignal,'setTimeout':setTimeout,'clearTimeout':clearTimeout,'setInterval':setInterval,'clearInterval':clearInterval,'queueMicrotask':queueMicrotask,'structuredClone':structuredClone,'crypto':globalThis[_0x506f85(0x267)]};return _0x9de61d&&typeof fetch===_0x506f85(0x2e4)&&(_0x4020c9['fetch']=_0x1d259e(_0x3544e1)),_0x4020c9[_0x506f85(0x221)]=_0x4020c9,_0x4020c9;}function _0x40a09f(_0x1b876b,_0x3c2a31={}){const _0x49a2c1=_0x5978,_0x4d0590=_0x1dd1e5(_0x3c2a31),_0x37ffb9=_0x450b6f[_0x49a2c1(0x36a)](_0x4d0590,{'name':'okdb-function-sandbox','codeGeneration':{'strings':![],'wasm':![]}});let _0x49ec62;try{_0x49ec62=new _0x450b6f[(_0x49a2c1(0x1fe))]('('+_0x1b876b+')',{'filename':_0x3c2a31[_0x49a2c1(0x2fd)]??_0x49a2c1(0x34b)});}catch(_0x30d35c){const _0x5d5b10=new Error(_0x30d35c?.[_0x49a2c1(0x208)]||_0x49a2c1(0x32c));_0x5d5b10['code']='FUNCTION_SCRIPT_COMPILE_FAILED',_0x5d5b10['cause']=_0x30d35c;throw _0x5d5b10;}let _0x5b621f;try{_0x5b621f=_0x49ec62[_0x49a2c1(0x2fc)](_0x37ffb9,{'timeout':_0x3c2a31['compileTimeoutMs']??0x64});}catch(_0x18c4b7){const _0x477803=new Error(_0x18c4b7?.[_0x49a2c1(0x208)]||_0x49a2c1(0x28f));_0x477803['code']=_0x49a2c1(0x261),_0x477803[_0x49a2c1(0x2b9)]=_0x18c4b7;throw _0x477803;}if(typeof _0x5b621f!==_0x49a2c1(0x2e4)){const _0x1b362d=new Error(_0x49a2c1(0x328));_0x1b362d[_0x49a2c1(0x2be)]=_0x49a2c1(0x1f5);throw _0x1b362d;}return _0x5b621f;}return okdbFunctionsSandbox={'createSandboxGlobals':_0x1dd1e5,'compileFunctionExpression':_0x40a09f,'_buildRestrictedFetch':_0x1d259e},okdbFunctionsSandbox;}var okdbFunctionsIpc,hasRequiredOkdbFunctionsIpc;function requireOkdbFunctionsIpc(){if(hasRequiredOkdbFunctionsIpc)return okdbFunctionsIpc;hasRequiredOkdbFunctionsIpc=0x1;function _0x5c8919(_0x29c9fe){const _0x1b0907=_0x5978;if(!_0x29c9fe)return null;return{'message':_0x29c9fe['message']||String(_0x29c9fe),'stack':_0x29c9fe['stack']||null,'code':_0x29c9fe['code']||null,'details':_0x29c9fe[_0x1b0907(0x2ad)]||null};}function _0x3fee8(_0x402ce9){const _0x1ea885=_0x5978;if(!_0x402ce9)return new Error(_0x1ea885(0x1f9));const _0x25e868=new Error(_0x402ce9[_0x1ea885(0x208)]||String(_0x402ce9));if(_0x402ce9[_0x1ea885(0x365)])_0x25e868[_0x1ea885(0x365)]=_0x402ce9[_0x1ea885(0x365)];if(_0x402ce9['code'])_0x25e868['code']=_0x402ce9[_0x1ea885(0x2be)];if(_0x402ce9[_0x1ea885(0x2ad)])_0x25e868[_0x1ea885(0x2ad)]=_0x402ce9[_0x1ea885(0x2ad)];return _0x25e868;}return okdbFunctionsIpc={'serializeError':_0x5c8919,'deserializeError':_0x3fee8},okdbFunctionsIpc;}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x194c39=_0x449694;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x1790bb={'PUT':_0x194c39(0x223),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x194c39(0x20a),'INDEX_RESET':_0x194c39(0x2ce),'TYPE_REGISTER':'registerType','TYPE_DROP':'dropType','FTS_REGISTER':_0x194c39(0x2f4),'FTS_DROP':_0x194c39(0x24c),'FTS_RESET':_0x194c39(0x2a9),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x194c39(0x1ff),'TTL_SET':_0x194c39(0x2bc),'TTL_CLEAR':_0x194c39(0x219)},_0x260ddd={'SYSTEM_READY':'system:ready','SYSTEM_STOPPED':_0x194c39(0x309),'SYSTEM_CLOCK_CHANGE':_0x194c39(0x255),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x194c39(0x24b),'SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x194c39(0x291),'SYSTEM_BUS_STATE_CHANGE':_0x194c39(0x211),'ITEM_CREATE':_0x194c39(0x25d),'ITEM_UPDATE':_0x194c39(0x247),'ITEM_REMOVE':_0x194c39(0x337),'INDEX_RESET':'index:reset','INDEX_READY':_0x194c39(0x1e8),'INDEX_PROGRESS':_0x194c39(0x224),'VIEW_PROGRESS':_0x194c39(0x2d1),'INDEX_DROP':_0x194c39(0x2ab),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x194c39(0x369),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':_0x194c39(0x2b4),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x194c39(0x2fb),'UNIQUE_VIOLATION_RESOLVED':_0x194c39(0x232),'REF_VIOLATION':_0x194c39(0x220),'REF_VIOLATION_RESOLVED':_0x194c39(0x2d8),'SYNC_APPLY':'sync:apply','TXN_START':_0x194c39(0x30e),'TXN_END':_0x194c39(0x325),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x194c39(0x282),'TYPE_DROP':_0x194c39(0x205),'ENV_OPENED':_0x194c39(0x2c6),'ENV_REMOVED':_0x194c39(0x2b2),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':'ttl:expired','TTL_SET':_0x194c39(0x317),'TTL_CLEAR':_0x194c39(0x330),'LICENSE_INVALID':_0x194c39(0x1e9),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x194c39(0x33f)},_0x1b0e2c={'CREATING':_0x194c39(0x327),'RESETTING':_0x194c39(0x2bd),'READY':'ready','DROPPING':_0x194c39(0x2cf),'WAITING':'waiting'},_0x438e22={'CREATED':_0x194c39(0x2f5),'STARTING':'starting','STARTED':_0x194c39(0x215),'STOPPING':_0x194c39(0x2cc),'STOPPED':_0x194c39(0x34f)},_0x46ab1f={'CREATING':_0x194c39(0x327),'READY':_0x194c39(0x212),'HALTED':_0x194c39(0x2f6),'STOPPED':_0x194c39(0x34f),'RESETTING':_0x194c39(0x2bd)},_0x4b5cbc=Object['freeze']({'POKE':'bus:poke','DRAIN':_0x194c39(0x23d),'TYPE_DROP':_0x194c39(0x2f3),'PROC':_0x194c39(0x2c3),'ENV_RELEASE':_0x194c39(0x274)});return okdbEnums={'BUS_EVENTS':_0x4b5cbc,'CHANGE_ACTIONS':_0x1790bb,'EVENTS':_0x260ddd,'INDEX_STATE':_0x1b0e2c,'OKDB_STATE':_0x438e22,'VIEW_STATE':_0x46ab1f},okdbEnums;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x388676 extends Error{constructor(_0x5dd30d,_0x15d28f,_0x3cebc7={}){const _0x1ff713=_0x5978;super(_0x5dd30d),this['name']=_0x1ff713(0x2c7),this[_0x1ff713(0x2be)]=_0x15d28f,this[_0x1ff713(0x2ad)]=_0x3cebc7,_0x3cebc7[_0x1ff713(0x2b9)]&&(this['cause']=_0x3cebc7[_0x1ff713(0x2b9)]),Error[_0x1ff713(0x21c)](this,this[_0x1ff713(0x364)]);}}class _0x1641cc extends _0x388676{constructor(_0x1cb9df,_0x533227,_0x49d7a5,_0x2beb6d){const _0x22f8bf=_0x5978;super('Version\x20mismatch\x20for\x20'+_0x1cb9df+'@'+_0x533227+_0x22f8bf(0x235)+_0x49d7a5+',\x20got\x20'+_0x2beb6d,_0x22f8bf(0x2a8),{'type':_0x1cb9df,'key':_0x533227,'expectedVersion':_0x49d7a5,'actualVersion':_0x2beb6d}),this[_0x22f8bf(0x322)]=_0x22f8bf(0x2e2);}}class _0xcea38 extends _0x388676{constructor(_0x46f9be,_0x31ec26){const _0xd9e39f=_0x5978;super(_0x46f9be+'@'+_0x31ec26+_0xd9e39f(0x25a),_0xd9e39f(0x2e5),{'type':_0x46f9be,'key':_0x31ec26}),this['name']='OKDBNotFoundError';}}class _0x582c91 extends _0x388676{constructor(_0x2d40b2,_0xdbc86){const _0x19d7cf=_0x5978;super(_0x2d40b2+'@'+_0xdbc86+'\x20already\x20exists',_0x19d7cf(0x263),{'type':_0x2d40b2,'key':_0xdbc86}),this[_0x19d7cf(0x322)]=_0x19d7cf(0x20f);}}class _0x4836c1 extends _0x388676{constructor(_0x4563eb,_0x5839e0){const _0x4dcb0c=_0x5978,_0x1d2ca8=typeof _0x5839e0;super(_0x4dcb0c(0x360)+_0x4563eb+'\x27:\x20'+_0x1d2ca8+_0x4dcb0c(0x29f)+_0x5839e0,_0x4dcb0c(0x31a),{'index':_0x4563eb,'key':_0x5839e0,'keyType':_0x1d2ca8}),this[_0x4dcb0c(0x322)]=_0x4dcb0c(0x335);}}class _0x14755f extends _0x388676{constructor(_0x2e358a){const _0x1e325d=_0x5978,_0x40407d=typeof _0x2e358a;super(_0x1e325d(0x24a)+_0x40407d+_0x1e325d(0x2d4)+_0x2e358a,_0x1e325d(0x2bb),{'key':_0x2e358a,'keyType':_0x40407d}),this[_0x1e325d(0x322)]='OKDBInvalidPrimaryKeyError';}}class _0x102748 extends _0x388676{constructor(_0x38bb33){const _0x34b45d=_0x5978;super(_0x34b45d(0x226)+_0x38bb33+_0x34b45d(0x290),_0x34b45d(0x2e1),{'type':_0x38bb33}),this[_0x34b45d(0x322)]='OKDBTypeNotRegisteredError';}}class _0x5a422c extends _0x388676{constructor(_0x536f74){const _0xacb86b=_0x5978;super(_0xacb86b(0x226)+_0x536f74+'\x27\x20already\x20registered',_0xacb86b(0x311),{'type':_0x536f74}),this[_0xacb86b(0x322)]=_0xacb86b(0x21f);}}class _0x3b34c5 extends _0x388676{constructor(_0x43f87b,_0x1e4e05){const _0x17ea61=_0x5978;super(_0x17ea61(0x2aa)+_0x1e4e05+'\x27\x20on\x20type\x20\x27'+_0x43f87b+_0x17ea61(0x290),_0x17ea61(0x302),{'type':_0x43f87b,'index':_0x1e4e05}),this['name']='OKDBIndexNotRegisteredError';}}class _0xb533b2 extends _0x388676{constructor(_0x5673b7,_0x330abf){const _0x1489ef=_0x5978;super(_0x1489ef(0x2aa)+_0x330abf+'\x27\x20on\x20type\x20\x27'+_0x5673b7+'\x27\x20is\x20already\x20registered','INDEX_ALREADY_REGISTERED',{'type':_0x5673b7,'index':_0x330abf}),this[_0x1489ef(0x322)]=_0x1489ef(0x210);}}class _0x34007c extends _0x388676{constructor(_0x54d43e,_0x39391b={}){const _0x28b7e5=_0x5978;super(_0x54d43e,_0x28b7e5(0x2d7),_0x39391b),this[_0x28b7e5(0x322)]=_0x28b7e5(0x239);}}class _0x36bdd9 extends _0x388676{constructor(_0x19823b,_0x607829,_0x553776,_0x40e9ee,_0x59cc81){const _0x1eaa83=_0x5978;super('Unique\x20constraint\x20violated\x20on\x20'+_0x19823b+'@'+_0x607829+':\x20key\x20['+_0x553776+']\x20already\x20maps\x20to\x20\x27'+_0x40e9ee+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x59cc81+'\x27','UNIQUE_CONSTRAINT',{'type':_0x19823b,'index':_0x607829,'indexKey':_0x553776,'existingKey':_0x40e9ee,'conflictingKey':_0x59cc81}),this[_0x1eaa83(0x322)]=_0x1eaa83(0x2c1);}}class _0x294107 extends _0x388676{constructor(_0x41c7f8,_0x35da57,_0x3f7bd5){const _0x28c895=_0x5978;super('Schema\x20validation\x20failed\x20for\x20'+_0x41c7f8+'@'+_0x35da57,_0x28c895(0x357),{'type':_0x41c7f8,'key':_0x35da57,'errors':_0x3f7bd5}),this['name']='OKDBSchemaValidationError',this[_0x28c895(0x361)]=_0x41c7f8,this[_0x28c895(0x2c2)]=_0x35da57,this[_0x28c895(0x2d5)]=_0x3f7bd5;}}class _0x2039f3 extends _0x388676{constructor(_0x140672,_0x1c9fda){const _0x2084e5=_0x5978;super('Cannot\x20set\x20enforce\x20schema\x20on\x20'+_0x140672+':\x20'+_0x1c9fda['length']+'\x20documents\x20fail\x20validation','SCHEMA_COLLECTION_INVALID',{'type':_0x140672,'failures':_0x1c9fda}),this[_0x2084e5(0x322)]='OKDBSchemaCollectionError',this[_0x2084e5(0x361)]=_0x140672,this[_0x2084e5(0x2b3)]=_0x1c9fda;}}class _0x5c8b0b extends _0x388676{constructor(_0x4b2f77,_0x4c8f61,_0x4382a9,_0x102ef2,_0x47143b){const _0x338a93=_0x5978;super('Foreign\x20key\x20violation:\x20'+_0x4b2f77+'@'+_0x4c8f61+'.'+_0x4382a9+_0x338a93(0x238)+_0x102ef2+'@'+_0x47143b+'\x20which\x20does\x20not\x20exist',_0x338a93(0x24f),{'sourceType':_0x4b2f77,'sourceKey':_0x4c8f61,'fieldPath':_0x4382a9,'targetType':_0x102ef2,'targetKey':_0x47143b}),this[_0x338a93(0x322)]=_0x338a93(0x27b),this[_0x338a93(0x2a6)]=_0x4b2f77,this[_0x338a93(0x2fe)]=_0x4c8f61,this[_0x338a93(0x1ef)]=_0x4382a9,this[_0x338a93(0x2a1)]=_0x102ef2,this[_0x338a93(0x2af)]=_0x47143b;}}class _0x3d9252 extends _0x388676{constructor(_0x3c62d5,_0x39a31e,_0x1316f1){const _0x318316=_0x5978;super(_0x318316(0x301)+_0x3c62d5+'@'+_0x39a31e+':\x20'+_0x1316f1[_0x318316(0x31d)]+_0x318316(0x287),_0x318316(0x1e5),{'targetType':_0x3c62d5,'targetKey':_0x39a31e,'references':_0x1316f1}),this[_0x318316(0x322)]=_0x318316(0x277),this[_0x318316(0x2a1)]=_0x3c62d5,this[_0x318316(0x2af)]=_0x39a31e,this[_0x318316(0x2b5)]=_0x1316f1;}}class _0x18f32e extends _0x388676{constructor(_0x2093d7,_0x587527,_0x2fa33f){const _0x523c3=_0x5978;super(_0x523c3(0x358)+_0x587527+'\x22\x20on\x20\x22'+_0x2093d7+_0x523c3(0x33c)+_0x2fa33f[_0x523c3(0x1e7)](_0x5ba326=>_0x5ba326[_0x523c3(0x25f)]+':'+_0x5ba326[_0x523c3(0x322)])[_0x523c3(0x2b0)](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x2093d7,'index':_0x587527,'usedBy':_0x2fa33f}),this[_0x523c3(0x322)]=_0x523c3(0x28b);}}return okdbError={'OKDBError':_0x388676,'OKDBVersionMismatchError':_0x1641cc,'OKDBNotFoundError':_0xcea38,'OKDBAlreadyExistsError':_0x582c91,'OKDBInvalidIndexKeyError':_0x4836c1,'OKDBInvalidPrimaryKeyError':_0x14755f,'OKDBTypeNotRegisteredError':_0x102748,'OKDBTypeAlreadyRegisteredError':_0x5a422c,'OKDBIndexNotRegisteredError':_0x3b34c5,'OKDBIndexAlreadyRegisteredError':_0xb533b2,'OKDBInvalidValueError':_0x34007c,'OKDBUniqueConstraintError':_0x36bdd9,'OKDBSchemaValidationError':_0x294107,'OKDBSchemaCollectionError':_0x2039f3,'OKDBForeignKeyError':_0x5c8b0b,'OKDBForeignKeyDeleteError':_0x3d9252,'OKDBIndexHasConsumersError':_0x18f32e},okdbError;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x124b96=_0x449694;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x415adc=require$$0$1,{OKDBError:_0x50b67b}=requireOkdbError(),_0x3f2339={'value':null,'done':!![]};class _0x2e3e0f{constructor(_0x5c1db2){const _0x2de339=_0x5978;this[_0x2de339(0x1ed)]=_0x5c1db2;}get[_0x124b96(0x2ee)](){return _0x3f2339;}[Symbol['iterator']](){const _0x30d491=_0x124b96;return this[_0x30d491(0x1ed)]();}[_0x124b96(0x1e7)](_0x90fe4d){const _0x544a33=this;return new _0x2e3e0f(()=>{const _0xa8a099=_0x5978,_0x5b489a=_0x544a33[Symbol[_0xa8a099(0x24e)]]();return{'next'(){const _0x39a77a=_0xa8a099;for(;;){const _0x1cbb79=_0x5b489a['next']();if(_0x1cbb79[_0x39a77a(0x339)])return{'done':!![],'value':undefined};const _0x14c9f5=_0x90fe4d(_0x1cbb79[_0x39a77a(0x23c)]);if(_0x14c9f5===_0x415adc[_0x39a77a(0x2ec)])continue;if(_0x14c9f5===_0x3f2339)return _0x5b489a[_0x39a77a(0x266)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x14c9f5};}},'return'(){const _0x191f06=_0xa8a099;return _0x5b489a[_0x191f06(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['filter'](_0x475acf){const _0x3fca01=_0x124b96;return this[_0x3fca01(0x1e7)](_0x2de216=>_0x475acf(_0x2de216)?_0x2de216:_0x415adc['SKIP']);}['forEach'](_0x1df9a4){for(const _0x1342c0 of this)_0x1df9a4(_0x1342c0);}[_0x124b96(0x243)](_0x89de0c=0x0,_0x34a312=Infinity){const _0x5eea18=this;return new _0x2e3e0f(()=>{const _0x29c1cc=_0x5978,_0x4f7791=_0x5eea18[Symbol[_0x29c1cc(0x24e)]]();let _0x569e55=0x0;return{'next'(){const _0x5b88b2=_0x29c1cc;for(;;){const _0x8f4311=_0x4f7791[_0x5b88b2(0x2d3)]();if(_0x8f4311[_0x5b88b2(0x339)])return{'done':!![],'value':undefined};const _0x55b912=_0x569e55++;if(_0x55b912<_0x89de0c)continue;if(_0x55b912>=_0x34a312)return _0x4f7791[_0x5b88b2(0x266)]?.(),{'done':!![],'value':undefined};return _0x8f4311;}},'return'(){const _0x8d1d85=_0x29c1cc;return _0x4f7791[_0x8d1d85(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x29c1cc(0x24e)]](){return this;}};});}['at'](_0x262666){let _0x2c1c68=0x0;for(const _0x2def9a of this)if(_0x2c1c68++===_0x262666)return _0x2def9a;return undefined;}[_0x124b96(0x233)](_0x58b73e){const _0x1abdee=this;return new _0x2e3e0f(()=>{const _0x188f6d=_0x5978,_0x371495=_0x1abdee[Symbol[_0x188f6d(0x24e)]]();let _0x1c46ae=[];return{'next'(){const _0x435afc=_0x188f6d;for(;;){if(_0x1c46ae[_0x435afc(0x31d)])return{'done':![],'value':_0x1c46ae[_0x435afc(0x36b)]()};const _0x526114=_0x371495[_0x435afc(0x2d3)]();if(_0x526114[_0x435afc(0x339)])return{'done':!![],'value':undefined};const _0x3c0bf6=_0x58b73e(_0x526114[_0x435afc(0x23c)]);if(Array[_0x435afc(0x244)](_0x3c0bf6))_0x1c46ae=_0x1c46ae[_0x435afc(0x26d)](_0x3c0bf6);else{if(_0x3c0bf6!=null&&(_0x3c0bf6 instanceof _0x2e3e0f||typeof _0x3c0bf6[Symbol[_0x435afc(0x24e)]]===_0x435afc(0x2e4)&&'asArray'in _0x3c0bf6))_0x1c46ae=_0x1c46ae[_0x435afc(0x26d)](Array[_0x435afc(0x2a0)](_0x3c0bf6));else{if(_0x3c0bf6!==_0x415adc[_0x435afc(0x2ec)])return{'done':![],'value':_0x3c0bf6};}}}},'return'(){const _0xa08121=_0x188f6d;return _0x371495[_0xa08121(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x188f6d(0x24e)]](){return this;}};});}['concat'](_0x3de81b){const _0x299fd8=this;return new _0x2e3e0f(()=>{const _0x1c49e1=_0x5978;let _0x4e1389=_0x299fd8[Symbol[_0x1c49e1(0x24e)]](),_0x4e4889=![];return{'next'(){const _0x1e34d0=_0x1c49e1;for(;;){const _0xfb769e=_0x4e1389[_0x1e34d0(0x2d3)]();if(!_0xfb769e[_0x1e34d0(0x339)])return _0xfb769e;if(_0x4e4889)return{'done':!![],'value':undefined};_0x4e4889=!![],_0x4e1389=_0x3de81b[Symbol['iterator']]();}},'return'(){const _0x456383=_0x1c49e1;return _0x4e1389[_0x456383(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x1c49e1(0x24e)]](){return this;}};});}[_0x124b96(0x24d)](_0x131666){const _0x1c7e8e=this;return new _0x2e3e0f(()=>{const _0x5bb6c7=_0x5978,_0x1e9f38=_0x1c7e8e[Symbol[_0x5bb6c7(0x24e)]]();return{'next'(){const _0x522075=_0x5bb6c7;for(;;){try{return _0x1e9f38[_0x522075(0x2d3)]();}catch(_0x280175){const _0x48b030=_0x131666(_0x280175);if(_0x48b030===_0x415adc[_0x522075(0x2ec)]||_0x48b030===undefined)continue;return{'done':![],'value':_0x48b030};}}},'return'(){const _0xe99f40=_0x5bb6c7;return _0x1e9f38[_0xe99f40(0x266)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5bb6c7(0x24e)]](){return this;}};});}[_0x124b96(0x230)](){return Array['from'](this);}get[_0x124b96(0x338)](){const _0x5a6595=_0x124b96;return Array[_0x5a6595(0x2a0)](this);}}const _0xc1841f={'total':0x0,'byLabel':{},'last':null};function _0x30fd0c(_0x4cc239){const _0x508d36=_0x124b96;_0xc1841f[_0x508d36(0x22c)]++;if(_0x4cc239)_0xc1841f[_0x508d36(0x35e)][_0x4cc239]=(_0xc1841f[_0x508d36(0x35e)][_0x4cc239]??0x0)+0x1;_0xc1841f[_0x508d36(0x35d)]={'label':_0x4cc239??null,'at':Date['now']()};}function _0x3e9b31(){return{'total':_0xc1841f['total'],'byLabel':{..._0xc1841f['byLabel']},'last':_0xc1841f['last']};}function _0x4ea4dc(_0x46ed3f,_0x56da95={}){const {getTxnId:_0x1f6b0c,resume:_0x54a963,label:_0x4aa133,baseline:_0x2d3a54}=_0x56da95;return new _0x2e3e0f(()=>{const _0x5a8082=_0x5978;let _0x13a259=null,_0x2cd398=![],_0x213f1c=![],_0x5e2797=![],_0xaee85b,_0x53bcfd=0x0,_0x3a9c40;return{'next'(){const _0x176640=_0x5978;if(_0x5e2797)return{'done':!![],'value':undefined};if(_0x213f1c){let _0x4dd40b=![];if(_0x54a963&&_0x1f6b0c)try{_0x4dd40b=_0x1f6b0c()===_0x3a9c40;}catch{}if(!_0x4dd40b){_0x5e2797=!![],_0x30fd0c(_0x4aa133);throw new _0x50b67b(_0x54a963?_0x176640(0x29e)+_0x176640(0x29b)+_0x176640(0x241):_0x176640(0x324)+_0x176640(0x278)+_0x176640(0x2a7),'READER_HELD_ACROSS_AWAIT');}_0x13a259=_0x54a963(_0xaee85b,_0x53bcfd)[Symbol[_0x176640(0x24e)]](),_0x213f1c=![];}if(!_0x13a259){if(_0x2d3a54!==undefined)_0x3a9c40=_0x2d3a54;else try{_0x3a9c40=_0x1f6b0c?_0x1f6b0c():undefined;}catch{_0x3a9c40=undefined;}try{_0x13a259=_0x46ed3f()[Symbol['iterator']]();}catch(_0x992803){_0x5e2797=!![];throw _0x992803;}}!_0x2cd398&&(_0x2cd398=!![],queueMicrotask(()=>{const _0x37a39b=_0x176640;_0x2cd398=![];if(_0x5e2797||_0x213f1c)return;try{_0x13a259?.[_0x37a39b(0x266)]?.();}catch{}_0x13a259=null,_0x213f1c=!![];}));const _0x3aac1b=_0x13a259['next']();if(_0x3aac1b[_0x176640(0x339)])return _0x5e2797=!![],{'done':!![],'value':undefined};return _0xaee85b=_0x3aac1b[_0x176640(0x23c)],_0x53bcfd++,_0x3aac1b;},'return'(){const _0x345c47=_0x5978;_0x5e2797=!![];try{_0x13a259?.[_0x345c47(0x266)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x5a8082(0x24e)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x4ea4dc,'OKDBGuardedRange':_0x2e3e0f,'recordGuardTrip':_0x30fd0c,'getGuardTripStats':_0x3e9b31},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1af960=_0x449694;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x39709,performance:_0x1c486c}=require$$0$2,_0x2e919a=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1af960(0x297),_0x2f1f67=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x45daad=process.env.OKDB_LOOP_LAG_ALL==='1',_0x15c4e5=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x2b59b4{constructor(){const _0x3a448e=_0x1af960;this['enabled']=_0x2e919a,this[_0x3a448e(0x21d)]=new Map(),this['_h']=null,this[_0x3a448e(0x2d6)]=null,this[_0x3a448e(0x353)]=![],this[_0x3a448e(0x2ed)]=(_0x576f70,_0x13edf0)=>process[_0x3a448e(0x258)][_0x3a448e(0x285)](_0x576f70+(_0x13edf0?'\x20'+JSON[_0x3a448e(0x1f0)](_0x13edf0):'')+'\x0a');}['now'](){const _0x3b2a7c=_0x1af960;return _0x1c486c[_0x3b2a7c(0x2de)]();}[_0x1af960(0x31e)](_0x27bcca){const _0x449f82=_0x1af960;if(typeof _0x27bcca===_0x449f82(0x2e4))this['_log']=_0x27bcca;}['note'](_0x4ba36f,_0x2f59cb,_0x2e7192){const _0x16635e=_0x1af960;if(!this['enabled'])return;let _0x35af6e=this[_0x16635e(0x21d)]['get'](_0x4ba36f);!_0x35af6e&&(_0x35af6e={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x16635e(0x21d)][_0x16635e(0x2eb)](_0x4ba36f,_0x35af6e)),_0x35af6e['ms']+=_0x2f59cb,_0x35af6e[_0x16635e(0x23a)]+=0x1,_0x2f59cb>_0x35af6e[_0x16635e(0x25e)]&&(_0x35af6e[_0x16635e(0x25e)]=_0x2f59cb,_0x35af6e[_0x16635e(0x304)]=_0x2e7192||'');}[_0x1af960(0x257)](_0xde238e){const _0x182de2=_0x1af960;if(!this[_0x182de2(0x1f1)]||this[_0x182de2(0x353)])return;this[_0x182de2(0x353)]=!![];if(_0xde238e)this[_0x182de2(0x2ed)]=_0xde238e;this['_h']=_0x39709({'resolution':0xa}),this['_h'][_0x182de2(0x1f8)](),this['_timer']=setInterval(()=>this[_0x182de2(0x362)](),_0x2f1f67);if(this[_0x182de2(0x2d6)][_0x182de2(0x2c4)])this['_timer']['unref']();}[_0x1af960(0x36c)](_0x1c7853){const _0x5fa480=_0x1af960;if(!this[_0x5fa480(0x207)])this[_0x5fa480(0x207)]=new Set();this['_windowCbs']['add'](_0x1c7853);if(!this['_started'])this[_0x5fa480(0x32b)]();}[_0x1af960(0x30a)](_0x3a136c){const _0x2bfcb7=_0x1af960;this[_0x2bfcb7(0x207)]?.[_0x2bfcb7(0x292)](_0x3a136c);}[_0x1af960(0x32b)](){const _0x22c28c=_0x1af960;if(this[_0x22c28c(0x22a)])return;this[_0x22c28c(0x22a)]=!![];!this['_h']&&(this['_h']=_0x39709({'resolution':0xa}),this['_h']['enable']());const _0x1b1976=_0x2f1f67;this[_0x22c28c(0x25b)]=setInterval(()=>{const _0x16dec2=_0x22c28c,_0xd18e1e=this['_h'];if(!_0xd18e1e)return;const _0x205d77=_0xd18e1e[_0x16dec2(0x2f2)](0x63)/0xf4240,_0x2d5e14=_0xd18e1e[_0x16dec2(0x237)]/0xf4240,_0x636249=_0xd18e1e[_0x16dec2(0x242)]/0xf4240;_0xd18e1e[_0x16dec2(0x1fc)]();if(this['_windowCbs'])for(const _0x49a50d of this[_0x16dec2(0x207)]){try{_0x49a50d({'p99Ms':_0x205d77,'maxMs':_0x2d5e14,'meanMs':_0x636249,'reportMs':_0x1b1976});}catch{}}},_0x1b1976);if(this['_admissionTimer'][_0x22c28c(0x2c4)])this[_0x22c28c(0x25b)][_0x22c28c(0x2c4)]();}['_report'](){const _0x345c44=_0x1af960,_0x10eb56=this['_h'],_0x38d3d5=_0x10eb56[_0x345c44(0x237)]/0xf4240,_0x101962=_0x10eb56[_0x345c44(0x2f2)](0x63)/0xf4240,_0x45c867=_0x10eb56['mean']/0xf4240;_0x10eb56['reset']();const _0x365280=[...this[_0x345c44(0x21d)]['entries']()][_0x345c44(0x1e7)](([_0x4fc21b,_0x2a8eb7])=>({'label':_0x4fc21b,..._0x2a8eb7}))[_0x345c44(0x342)]((_0xd98cd4,_0x1350b2)=>_0x1350b2['ms']-_0xd98cd4['ms'])[_0x345c44(0x243)](0x0,0x8);this[_0x345c44(0x21d)]['clear']();const _0x19db16=_0x365280[_0x345c44(0x229)]((_0x154fe8,_0x45d9cb)=>_0x154fe8+_0x45d9cb['ms'],0x0),_0x4e8a18=_0x365280['map'](_0x266ce5=>_0x266ce5[_0x345c44(0x288)]+'='+_0x266ce5['ms'][_0x345c44(0x204)](0x0)+'ms/'+_0x266ce5['count']+(_0x266ce5[_0x345c44(0x25e)]>0x5?'(worst\x20'+_0x266ce5[_0x345c44(0x25e)][_0x345c44(0x204)](0x0)+'ms'+(_0x266ce5[_0x345c44(0x304)]?'\x20'+_0x266ce5[_0x345c44(0x304)]:'')+')':''));(_0x45daad||_0x38d3d5>=_0x15c4e5)&&this['_log'](_0x345c44(0x240)+_0x2f1f67+_0x345c44(0x2e6)+_0x38d3d5[_0x345c44(0x204)](0x0)+_0x345c44(0x268)+_0x101962['toFixed'](0x0)+_0x345c44(0x279)+_0x45c867[_0x345c44(0x204)](0x0)+_0x345c44(0x28c)+_0x19db16[_0x345c44(0x204)](0x0)+'ms'+(_0x4e8a18[_0x345c44(0x31d)]?_0x345c44(0x225)+_0x4e8a18[_0x345c44(0x2b0)]('\x20\x20'):''),{'feature':_0x345c44(0x1eb)});if(this['_windowCbs'])for(const _0x1f1ed5 of this[_0x345c44(0x207)]){try{_0x1f1ed5({'p99Ms':_0x101962,'maxMs':_0x38d3d5,'meanMs':_0x45c867,'reportMs':_0x2f1f67});}catch{}}}[_0x1af960(0x346)](){const _0x4f03c1=_0x1af960;if(this[_0x4f03c1(0x2d6)])clearInterval(this[_0x4f03c1(0x2d6)]);if(this['_h'])this['_h'][_0x4f03c1(0x33a)]();this[_0x4f03c1(0x2d6)]=null,this['_h']=null,this['_started']=![];}}const _0x21951a=new _0x2b59b4();if(_0x21951a[_0x1af960(0x1f1)])_0x21951a['start']();return okdbLoopMonitor={'LOOP':_0x21951a},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x3385e5=_0x449694;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x282cb3=require$$0$3,{EVENTS:_0x5237ad}=requireOkdbEnums(),{OKDBError:_0x5bea50}=requireOkdbError(),{recordGuardTrip:_0x59d3ce,guardSnapshotIterable:_0x679ae3}=requireOkdbGuardedRange(),{LOOP:_0x2af126}=requireOkdbLoopMonitor();function _0x12d4ed(_0x20bfb0){const _0x4a43ed=_0x5978;return _0x20bfb0[_0x4a43ed(0x1e7)](_0x580039=>{const _0x2a4a4d=_0x4a43ed,[_0x1832e9,_0x232e77]=_0x580039[_0x2a4a4d(0x367)]||[];return{'action':_0x580039[_0x2a4a4d(0x34d)],'type':_0x1832e9,'key':_0x232e77};});}class _0x391b08{[_0x3385e5(0x307)];[_0x3385e5(0x1f6)]=[];[_0x3385e5(0x1ec)]=[];[_0x3385e5(0x2f7)]=[];constructor(_0x37c481,_0x1cdbbc={'useReadTransaction':![]}){const _0x42a004=_0x3385e5;this[_0x42a004(0x307)]=_0x37c481,this[_0x42a004(0x32e)]=_0x1cdbbc,this['id']=_0x282cb3['v4']();if(this[_0x42a004(0x32e)][_0x42a004(0x264)])try{this['_txnIdAtSnapshot']=this[_0x42a004(0x307)]['db'][_0x42a004(0x2a3)]()['lastTxnId'];}catch{this[_0x42a004(0x34a)]=undefined;}this['readTransaction']=this[_0x42a004(0x32e)][_0x42a004(0x264)]?this[_0x42a004(0x307)]['db']['useReadTransaction']():null,this[_0x42a004(0x275)]=![],this[_0x42a004(0x2c9)]=![],this[_0x42a004(0x2ef)]&&queueMicrotask(()=>{const _0x4ac78e=_0x42a004;this[_0x4ac78e(0x2ef)]&&(this[_0x4ac78e(0x250)](),this[_0x4ac78e(0x2c9)]=!![]);});}['onDo'](_0x494d6f){const _0x30928f=_0x3385e5;this[_0x30928f(0x1ec)]['push'](_0x494d6f);}['onUndo'](_0x1ff79f){const _0x1d5fbb=_0x3385e5;this[_0x1d5fbb(0x2f7)][_0x1d5fbb(0x350)](_0x1ff79f);}[_0x3385e5(0x250)](){const _0x5eb447=_0x3385e5;if(!this['readTransaction'])return;try{this['readTransaction'][_0x5eb447(0x339)]();}catch(_0x4271c4){}this[_0x5eb447(0x2ef)]=null;}[_0x3385e5(0x366)](){const _0x180bdc=_0x3385e5;if(this[_0x180bdc(0x275)])throw new _0x5bea50(_0x180bdc(0x2ca),_0x180bdc(0x323));if(this[_0x180bdc(0x2c9)]){let _0x4cb88d=![];if(this[_0x180bdc(0x32e)][_0x180bdc(0x264)]==='tolerant'&&this['_txnIdAtSnapshot']!==undefined)try{_0x4cb88d=this['okdb']['db'][_0x180bdc(0x2a3)]()[_0x180bdc(0x293)]===this[_0x180bdc(0x34a)];}catch{}if(!_0x4cb88d){_0x59d3ce((this['okdb']?.['name']??'?')+':useReadTransaction');throw new _0x5bea50('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+_0x180bdc(0x1ee)+_0x180bdc(0x340)+_0x180bdc(0x36e),_0x180bdc(0x2cd));}}}[_0x3385e5(0x35b)](_0x42f26f,_0x5375d4){const _0x4ee53e=_0x3385e5;return this[_0x4ee53e(0x366)](),this['okdb'][_0x4ee53e(0x35b)](_0x42f26f,_0x5375d4,{'transaction':this[_0x4ee53e(0x2ef)]});}[_0x3385e5(0x2df)](_0x37940d,_0x374392){const _0x5d5baa=_0x3385e5;return this[_0x5d5baa(0x366)](),this[_0x5d5baa(0x307)][_0x5d5baa(0x2df)](_0x37940d,_0x374392,{'transaction':this[_0x5d5baa(0x2ef)]});}['getMany'](_0xedf006,_0x16ae9a){const _0x46b6da=_0x3385e5;return this[_0x46b6da(0x366)](),this[_0x46b6da(0x307)][_0x46b6da(0x354)](_0xedf006,_0x16ae9a,{'transaction':this[_0x46b6da(0x2ef)]});}['_range'](_0x30b8cf){const _0x1cc28b=_0x3385e5;if(!this['options'][_0x1cc28b(0x264)])return _0x30b8cf;if(_0x30b8cf&&typeof _0x30b8cf[_0x1cc28b(0x31b)]===_0x1cc28b(0x2e4))return _0x30b8cf;if(Array[_0x1cc28b(0x244)](_0x30b8cf))return _0x30b8cf;const _0x3d0499=this,_0x689454=_0x3d0499[_0x1cc28b(0x32e)][_0x1cc28b(0x264)]===_0x1cc28b(0x30d),_0x2f3d03=()=>{const _0x30112f=_0x1cc28b;if(!_0x3d0499[_0x30112f(0x2c9)])return![];if(!_0x689454)return!![];if(_0x3d0499['_txnIdAtSnapshot']===undefined)return!![];try{return _0x3d0499[_0x30112f(0x307)]['db'][_0x30112f(0x2a3)]()[_0x30112f(0x293)]!==_0x3d0499[_0x30112f(0x34a)];}catch{return!![];}};return _0x679ae3(()=>{const _0x557711=_0x1cc28b;if(_0x3d0499['_closed'])throw new _0x5bea50(_0x557711(0x2ca),_0x557711(0x323));if(_0x2f3d03()){_0x59d3ce((_0x3d0499[_0x557711(0x307)]?.[_0x557711(0x322)]??'?')+_0x557711(0x29a));throw new _0x5bea50(_0x557711(0x2c0)+_0x557711(0x272)+'materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.',_0x557711(0x2cd));}return _0x30b8cf;},{'label':(_0x3d0499[_0x1cc28b(0x307)]?.[_0x1cc28b(0x322)]??'?')+':txnRange',..._0x689454?{'baseline':_0x3d0499[_0x1cc28b(0x34a)],'getTxnId':()=>_0x3d0499['okdb']['db']['getStats']()[_0x1cc28b(0x293)],'resume':(_0x2ff350,_0x33b9f6)=>_0x30b8cf[_0x1cc28b(0x243)](_0x33b9f6)}:{}});}[_0x3385e5(0x256)](_0x311132,_0x56b16b={}){const _0x46903e=_0x3385e5;return this[_0x46903e(0x366)](),this[_0x46903e(0x22f)](this[_0x46903e(0x307)]['getRange'](_0x311132,{'transaction':this[_0x46903e(0x2ef)],..._0x56b16b}));}[_0x3385e5(0x313)](_0x44c643,_0x113325={}){const _0x5e0afd=_0x3385e5;return this['_assertOpen'](),this[_0x5e0afd(0x22f)](this['okdb'][_0x5e0afd(0x313)](_0x44c643,{'transaction':this[_0x5e0afd(0x2ef)],..._0x113325}));}[_0x3385e5(0x308)](_0x5bbd7a,_0x358c08={}){const _0x2ec98f=_0x3385e5;return this[_0x2ec98f(0x366)](),this['_range'](this[_0x2ec98f(0x307)][_0x2ec98f(0x308)](_0x5bbd7a,{'transaction':this[_0x2ec98f(0x2ef)],..._0x358c08}));}[_0x3385e5(0x298)](_0x3a896f,_0x229b4e,_0x346f15={}){const _0x53e108=_0x3385e5;return this[_0x53e108(0x366)](),this[_0x53e108(0x22f)](this[_0x53e108(0x307)][_0x53e108(0x298)](_0x3a896f,_0x229b4e,{'transaction':this['readTransaction'],..._0x346f15}));}[_0x3385e5(0x320)](_0x153e9f,_0x5303c3,_0x3cb616={}){const _0x2a2745=_0x3385e5;return this[_0x2a2745(0x366)](),this[_0x2a2745(0x22f)](this[_0x2a2745(0x307)][_0x2a2745(0x320)](_0x153e9f,_0x5303c3,{'transaction':this[_0x2a2745(0x2ef)],..._0x3cb616}));}[_0x3385e5(0x30b)](_0x1d085d=null){const _0x4b2ba9=_0x3385e5;return this['_assertOpen'](),this[_0x4b2ba9(0x307)][_0x4b2ba9(0x30b)](_0x1d085d,{'transaction':this[_0x4b2ba9(0x2ef)]});}[_0x3385e5(0x35f)](_0x5962fa){const _0x277821=_0x3385e5;return this[_0x277821(0x366)](),this[_0x277821(0x307)][_0x277821(0x35f)](_0x5962fa,{'transaction':this['readTransaction']});}[_0x3385e5(0x223)](_0x162f66,_0x3fce4c,_0xcd3aec,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null,ttl:ttl=null}={}){const _0x388d87=_0x3385e5;this['actions'][_0x388d87(0x350)]({'action':_0x388d87(0x223),'args':[_0x162f66,_0x3fce4c,_0xcd3aec,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3385e5(0x300)](_0x46c949,_0x420641,_0x45bb53,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null,ttl:ttl=null}={}){const _0x90e6ef=_0x3385e5;this[_0x90e6ef(0x1f6)][_0x90e6ef(0x350)]({'action':_0x90e6ef(0x300),'args':[_0x46c949,_0x420641,_0x45bb53,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3385e5(0x2ba)](_0x94c59c,_0x2f539b,_0x3b2e40,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x164667=_0x3385e5;this[_0x164667(0x1f6)][_0x164667(0x350)]({'action':_0x164667(0x2ba),'args':[_0x94c59c,_0x2f539b,_0x3b2e40,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3385e5(0x2e3)](_0xfeb77b,_0x59d973,_0x44c812,{version:version=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null,ttl:ttl=null}={}){const _0x33cba9=_0x3385e5;this['actions'][_0x33cba9(0x350)]({'action':'create','args':[_0xfeb77b,_0x59d973,_0x44c812,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['remove'](_0x43d040,_0x1a7918,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x3385e5(0x2de)](),origin:origin=null}={}){const _0x1c2275=_0x3385e5;this[_0x1c2275(0x1f6)]['push']({'action':'remove','args':[_0x43d040,_0x1a7918,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x3385e5(0x1f3)](_0xc03542,_0x3fdc80,_0x398469){const _0xc655d4=_0x3385e5;this[_0xc655d4(0x1f6)][_0xc655d4(0x350)]({'action':_0xc655d4(0x1f3),'args':[_0xc03542,_0x3fdc80,_0x398469]});}[_0x3385e5(0x253)](_0x742760,_0x3ee24e){const _0x50bd66=_0x3385e5;this[_0x50bd66(0x1f6)][_0x50bd66(0x350)]({'action':_0x50bd66(0x253),'args':[_0x742760,_0x3ee24e]});}[_0x3385e5(0x355)](){const _0x2b00cd=_0x3385e5;if(this[_0x2b00cd(0x275)])return;for(const _0x408a72 of this['_undoHooks']){try{_0x408a72();}catch{}}this[_0x2b00cd(0x307)][_0x2b00cd(0x2db)][_0x2b00cd(0x2d2)](_0x5237ad[_0x2b00cd(0x36d)],{'id':this['id']}),this[_0x2b00cd(0x1f6)]=[],this[_0x2b00cd(0x250)](),this[_0x2b00cd(0x275)]=!![];}async[_0x3385e5(0x29c)](){const _0x340475=_0x3385e5;if(this[_0x340475(0x275)])throw new Error(_0x340475(0x2ca));const _0x429421={'id':this['id'],'timestamp':Date[_0x340475(0x2de)](),'actions':this[_0x340475(0x1f6)]};this['okdb'][_0x340475(0x2db)]['emit'](_0x5237ad['TXN_START'],_0x429421);try{const _0x53c14c=_0x2af126[_0x340475(0x1f1)]?_0x2af126[_0x340475(0x2de)]():0x0;await this[_0x340475(0x307)]['_writer']['transaction'](()=>{const _0x216523=_0x340475;for(const _0x36455b of this[_0x216523(0x1f6)]){const _0xb1b4b9=this['okdb']['_'+_0x36455b[_0x216523(0x34d)]];if(typeof _0xb1b4b9!==_0x216523(0x2e4))throw new Error(_0x216523(0x318)+_0x36455b[_0x216523(0x34d)]);_0xb1b4b9['call'](this[_0x216523(0x307)],this,..._0x36455b[_0x216523(0x367)]);}}),_0x2af126['enabled']&&_0x2af126[_0x340475(0x1e4)](_0x340475(0x296),_0x2af126[_0x340475(0x2de)]()-_0x53c14c,(this[_0x340475(0x307)]['name']??'?')+_0x340475(0x349)+this[_0x340475(0x1f6)][_0x340475(0x31d)]);}catch(_0x5b2dcd){for(const _0x3d158b of this[_0x340475(0x2f7)]){try{_0x3d158b();}catch{}}this[_0x340475(0x250)](),this[_0x340475(0x275)]=!![];if(_0x5b2dcd instanceof _0x5bea50)throw _0x5b2dcd;const _0x1b13a8={'cause':_0x5b2dcd,'env':this['okdb']?.[_0x340475(0x322)],'envPath':this['okdb']?.[_0x340475(0x202)],'pid':process[_0x340475(0x27a)],'txnId':this['id'],'actionCount':this[_0x340475(0x1f6)][_0x340475(0x31d)],'actions':_0x12d4ed(this[_0x340475(0x1f6)]),'nativeCode':_0x5b2dcd?.[_0x340475(0x2be)],'nativeName':_0x5b2dcd?.[_0x340475(0x322)]};try{this[_0x340475(0x307)]?.[_0x340475(0x200)]?.['error']?.(_0x340475(0x283),{'env':_0x1b13a8[_0x340475(0x20e)],'envPath':_0x1b13a8[_0x340475(0x273)],'pid':_0x1b13a8[_0x340475(0x27a)],'txnId':_0x1b13a8[_0x340475(0x333)],'actionCount':_0x1b13a8[_0x340475(0x2b6)],'actions':_0x1b13a8[_0x340475(0x1f6)],'nativeCode':_0x1b13a8[_0x340475(0x351)],'error':_0x5b2dcd?.[_0x340475(0x208)],'stack':_0x5b2dcd?.[_0x340475(0x365)]});}catch{}throw new _0x5bea50(_0x5b2dcd?.[_0x340475(0x208)]||_0x340475(0x347),_0x340475(0x259),_0x1b13a8);}this[_0x340475(0x307)][_0x340475(0x2db)][_0x340475(0x2d2)](_0x5237ad['TXN_END'],_0x429421);for(const _0x224f2d of this['_doHooks']){try{await _0x224f2d();}catch{}}this[_0x340475(0x1f6)]=[],this['_closeReadTransaction'](),this[_0x340475(0x275)]=!![];}static[_0x3385e5(0x217)](_0x3382d1){const _0x1531bd=_0x3385e5;return Object['freeze']({'id':_0x3382d1['id'],'put':_0x3382d1[_0x1531bd(0x223)][_0x1531bd(0x2a5)](_0x3382d1),'update':_0x3382d1[_0x1531bd(0x300)][_0x1531bd(0x2a5)](_0x3382d1),'patch':_0x3382d1[_0x1531bd(0x2ba)][_0x1531bd(0x2a5)](_0x3382d1),'create':_0x3382d1[_0x1531bd(0x2e3)][_0x1531bd(0x2a5)](_0x3382d1),'remove':_0x3382d1['remove'][_0x1531bd(0x2a5)](_0x3382d1),'setTTL':_0x3382d1[_0x1531bd(0x1f3)]['bind'](_0x3382d1),'clearTTL':_0x3382d1[_0x1531bd(0x253)]['bind'](_0x3382d1),'commit':_0x3382d1['commit'][_0x1531bd(0x2a5)](_0x3382d1),'rollback':_0x3382d1[_0x1531bd(0x355)][_0x1531bd(0x2a5)](_0x3382d1),'get':_0x3382d1[_0x1531bd(0x35b)]['bind'](_0x3382d1),'getEntry':_0x3382d1[_0x1531bd(0x2df)][_0x1531bd(0x2a5)](_0x3382d1),'getMany':_0x3382d1['getMany'][_0x1531bd(0x2a5)](_0x3382d1),'getRange':_0x3382d1[_0x1531bd(0x256)][_0x1531bd(0x2a5)](_0x3382d1),'getValues':_0x3382d1[_0x1531bd(0x313)][_0x1531bd(0x2a5)](_0x3382d1),'getKeys':_0x3382d1['getKeys']['bind'](_0x3382d1),'byIndex':_0x3382d1[_0x1531bd(0x298)]['bind'](_0x3382d1),'query':_0x3382d1[_0x1531bd(0x320)]['bind'](_0x3382d1),'getClock':_0x3382d1['getClock'][_0x1531bd(0x2a5)](_0x3382d1),'getCount':_0x3382d1['getCount'][_0x1531bd(0x2a5)](_0x3382d1),'read':_0x3382d1,'raw':_0x3382d1});}static['applyOps'](_0x132cca,_0x507a1c=[]){const _0x5e3025=_0x3385e5;if(!Array['isArray'](_0x507a1c))throw new _0x5bea50(_0x5e3025(0x20c),_0x5e3025(0x23e));for(const _0x119df8 of _0x507a1c){if(Array[_0x5e3025(0x244)](_0x119df8)){const [_0x2a7bcb,..._0x10a509]=_0x119df8;if(typeof _0x132cca[_0x2a7bcb]!==_0x5e3025(0x2e4))throw new _0x5bea50(_0x5e3025(0x318)+_0x2a7bcb,_0x5e3025(0x32f),{'action':_0x2a7bcb});_0x132cca[_0x2a7bcb](..._0x10a509);continue;}if(!_0x119df8||typeof _0x119df8!==_0x5e3025(0x344))throw new _0x5bea50(_0x5e3025(0x343),'TXN_INVALID_OP');const {action:_0x4228d8}=_0x119df8;if(typeof _0x4228d8!=='string'||typeof _0x132cca[_0x4228d8]!==_0x5e3025(0x2e4))throw new _0x5bea50(_0x5e3025(0x318)+_0x4228d8,_0x5e3025(0x32f),{'action':_0x4228d8});switch(_0x4228d8){case _0x5e3025(0x223):case _0x5e3025(0x300):case _0x5e3025(0x2e3):_0x132cca[_0x4228d8](_0x119df8[_0x5e3025(0x361)],_0x119df8[_0x5e3025(0x2c2)],_0x119df8['value'],{..._0x119df8['options'],'ttl':_0x119df8['ttl']??_0x119df8[_0x5e3025(0x32e)]?.[_0x5e3025(0x26e)]??null});break;case'patch':_0x132cca[_0x5e3025(0x2ba)](_0x119df8[_0x5e3025(0x361)],_0x119df8['key'],_0x119df8[_0x5e3025(0x2ba)],{..._0x119df8[_0x5e3025(0x32e)],'ttl':_0x119df8[_0x5e3025(0x26e)]??_0x119df8[_0x5e3025(0x32e)]?.[_0x5e3025(0x26e)]??null});break;case _0x5e3025(0x29d):_0x132cca['remove'](_0x119df8[_0x5e3025(0x361)],_0x119df8[_0x5e3025(0x2c2)],_0x119df8[_0x5e3025(0x32e)]||{});break;case _0x5e3025(0x1f3):_0x132cca[_0x5e3025(0x1f3)](_0x119df8[_0x5e3025(0x361)],_0x119df8['key'],_0x119df8[_0x5e3025(0x26e)]);break;case'clearTTL':_0x132cca[_0x5e3025(0x253)](_0x119df8[_0x5e3025(0x361)],_0x119df8[_0x5e3025(0x2c2)]);break;default:throw new _0x5bea50(_0x5e3025(0x206)+_0x4228d8,'TXN_INVALID_ACTION',{'action':_0x4228d8});}}}static async[_0x3385e5(0x2a2)](_0x5b8415,_0x2b11f6,_0x162dec={}){const _0x27e626=_0x3385e5,_0x6eadb1=new _0x391b08(_0x5b8415,_0x162dec),_0x3f973f=_0x391b08[_0x27e626(0x217)](_0x6eadb1);try{typeof _0x2b11f6===_0x27e626(0x2e4)?await _0x2b11f6(_0x3f973f):_0x391b08[_0x27e626(0x21a)](_0x6eadb1,_0x2b11f6||[]);const _0x51faf4=_0x6eadb1[_0x27e626(0x1f6)][_0x27e626(0x31d)];return await _0x6eadb1[_0x27e626(0x29c)](),{'id':_0x6eadb1['id'],'actions':_0x51faf4};}catch(_0x140894){try{_0x6eadb1['rollback']();}catch(_0x3e722d){}throw _0x140894;}}}return okdbTransaction=_0x391b08,okdbTransaction;}var okdbFunctionsFacades,hasRequiredOkdbFunctionsFacades;function _0x3536(){const _0x38ca72=['length','setLogger','runId','query','materializerContext','name','TXN_CLOSED','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','txn:end','global','creating','Function\x20script\x20must\x20evaluate\x20to\x20a\x20callable\x20function','sdk','unsafe','_startAdmission','Function\x20script\x20failed\x20to\x20compile','tags','options','TXN_INVALID_ACTION','ttl:clear','fetch\x20blocked:\x20hostname\x20\x22','string','txnId','uuid','OKDBInvalidIndexKeyError','call','item:remove','asArray','done','disable','jobContext','\x22\x20is\x20used\x20by:\x20','geoQuery','reportOnFatalError','license:removed','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','stats','sort','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','object','allowedFetchDomains','stop','Unknown\x20OKDB\x20transaction\x20error','getIndexStatus','\x20actions=','_txnIdAtSnapshot','okdb-function.js','182AcBoyw','action','enqueue','stopped','push','nativeCode','job','_started','getMany','rollback','dropType','SCHEMA_VALIDATION_FAILED','Index\x20\x22','sandbox\x20worker:\x20rootPath\x20missing\x20from\x20workerData','used_heap_size','get','cancel','last','byLabel','getCount','Invalid\x20index\x20key\x20type\x20for\x20\x27','type','_report','__esModule','constructor','stack','_assertOpen','args','mkdirSync','fts:registered','createContext','shift','onWindow','TXN_ROLLBACK','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','allowFetch','note','FOREIGN_KEY_DELETE_RESTRICTED','default','map','index:ready','license:invalid','1372372ZYQhZP','loop-lag','_doHooks','_makeIterator','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','fieldPath','stringify','enabled','reject','setTTL','node:vm','FUNCTION_SCRIPT_INVALID_SHAPE','actions','stream','enable','Unknown\x20custom\x20function\x20error','listTTL','bucket','reset','\x22\x20is\x20not\x20in\x20the\x20allowedFetchDomains\x20list','Script','dropSchema','log','dryRunActions','path','exports','toFixed','type:drop','Unsupported\x20transaction\x20action:\x20','_windowCbs','message','getHeapStatistics','registerIndex','getByPath','txn\x20ops\x20must\x20be\x20an\x20array','createEnvironment','env','OKDBAlreadyExistsError','OKDBIndexAlreadyRegisteredError','system:bus_state_change','ready','sourceEnv','job_progress','started','sandbox','createWriteFacade','fetch\x20blocked:\x20invalid\x20URL','clearTtl','applyOps','10832706ihHpzM','captureStackTrace','_buckets','claimId','OKDBTypeAlreadyRegisteredError','ref:violation','globalThis','processor','put','index:progress','\x20│\x20','Type\x20\x27','indexReady','materializer','reduce','_admissionStarted','62165dbIlvn','total','1365728uFHSlF','hostname','_range','toJSON','registerType','unique:violation_resolved','flatMap','result',':\x20expected\x20','range','max','\x20references\x20','OKDBInvalidValueError','count','requestedAt','value','bus:drain','TXN_INVALID_OPS','_envs','loop-lag\x20','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','mean','slice','isArray','ensureType','getChanges','item:update','getByPrefix','setDefaultTTL','Invalid\x20primary\x20key\x20type:\x20','system:drain','dropFts','mapError','iterator','FOREIGN_KEY_VIOLATION','_closeReadTransaction','upload','1750287ZVHgPH','clearTTL','~system','system:clock_change','getRange','start','stderr','TXN_ERROR','\x20does\x20not\x20exist','_admissionTimer','list','item:create','maxMs','kind','worker_threads','FUNCTION_SCRIPT_COMPILE_FAILED','addBucket','ALREADY_EXISTS','useReadTransaction','processorContext','return','crypto','ms\x20p99=','_drainHandler','open','warn','openEnv','concat','ttl','keys','has','trigger','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','envPath','bus:env_release','_closed','txn','OKDBForeignKeyDeleteError','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','ms\x20mean=','pid','OKDBForeignKeyError','getJob','getTTL','close','exit','102VJSRKG','debug','type:registered','transaction\x20commit\x20failed','envName','write','getDefaultTTL','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','label','requestId','timeout','OKDBIndexHasConsumersError','ms\x20busy=','mode','getBucket','Function\x20script\x20failed\x20to\x20initialize','\x27\x20doesn\x27t\x20exist','system:proc','delete','lastTxnId','script','clearDefaultTTL','txn-commit','true','byIndex','listBuckets',':txnRange','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','commit','remove','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','from','targetType','run','getStats','info','bind','sourceType','Array.from)\x20before\x20any\x20await.','VERSION_MISMATCH','resetFts','Index\x20\x27','index:drop','hasIndex','details','dropIndex','targetKey','join','node:perf_hooks','env:removed','failures','schema:set','references','actionCount','prototype','error','cause','patch','INVALID_PRIMARY_KEY','setTtl','resetting','code','report','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','OKDBUniqueConstraintError','key','bus:proc','unref','platform','env:opened','OKDBError','87962krOlFC','_readViewExpired','Transaction\x20already\x20closed','reportOnSignal','stopping','READER_HELD_ACROSS_AWAIT','resetIndex','dropping','payload','view:progress','emit','next','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','errors','_timer','INVALID_VALUE','ref:violation_resolved','sandbox-','queue','events','removeJob','signal','now','getEntry','directory','TYPE_NOT_REGISTERED','OKDBVersionMismatchError','create','function','NOT_FOUND','ms\x20max=','priority','cursorKey','ttlStats','timeoutMs','set','SKIP','_log','DONE','readTransaction','ftsQuery','job_heartbeat','percentile','bus:type_drop','registerFts','created','halted','_undoHooks','files','engineKey','win32','unique:violation','runInContext','filename','sourceKey','FETCH_NOT_ALLOWED','update','Cannot\x20delete\x20','INDEX_NOT_REGISTERED','transaction','maxExtra','runtime','removeEnvironment','okdb','getKeys','system:stopped','offWindow','getClock','functionName','tolerant','txn:start','hasOwnProperty','targetEnv','TYPE_ALREADY_REGISTERED','fetch\x20is\x20not\x20allowed\x20in\x20this\x20function\x20sandbox\x20(no\x20allowedFetchDomains\x20configured)','getValues','updateJob','34480praVrj','tries','ttl:set','Unknown\x20transaction\x20action:\x20','hasType','INVALID_INDEX_KEY','then','sweepExpiredTTL'];_0x3536=function(){return _0x38ca72;};return _0x3536();}function requireOkdbFunctionsFacades(){if(hasRequiredOkdbFunctionsFacades)return okdbFunctionsFacades;hasRequiredOkdbFunctionsFacades=0x1;const _0x17a7e1=requireOkdbTransaction();function _0x4b6d62(_0x1f0f67){const _0x23d37f=_0x5978;return{'transaction':typeof _0x1f0f67[_0x23d37f(0x303)]==='function'?_0x1f0f67[_0x23d37f(0x303)][_0x23d37f(0x2a5)](_0x1f0f67):_0x117396=>new _0x17a7e1(_0x1f0f67,_0x117396),'txn':typeof _0x1f0f67['txn']===_0x23d37f(0x2e4)?_0x1f0f67[_0x23d37f(0x276)]['bind'](_0x1f0f67):(_0x4c00c1,_0x1144cb)=>_0x17a7e1['run'](_0x1f0f67,_0x4c00c1,_0x1144cb)};}function _0x211f82(_0x599f62){const _0x9c40de=_0x5978;return{'name':_0x599f62['name'],..._0x4b6d62(_0x599f62),'put':_0x599f62[_0x9c40de(0x223)]['bind'](_0x599f62),'update':_0x599f62[_0x9c40de(0x300)][_0x9c40de(0x2a5)](_0x599f62),'patch':_0x599f62[_0x9c40de(0x2ba)][_0x9c40de(0x2a5)](_0x599f62),'create':_0x599f62[_0x9c40de(0x2e3)][_0x9c40de(0x2a5)](_0x599f62),'remove':_0x599f62[_0x9c40de(0x29d)]['bind'](_0x599f62),'get':_0x599f62['get']['bind'](_0x599f62),'getMany':_0x599f62[_0x9c40de(0x354)][_0x9c40de(0x2a5)](_0x599f62),'getEntry':_0x599f62[_0x9c40de(0x2df)][_0x9c40de(0x2a5)](_0x599f62),'getRange':_0x599f62[_0x9c40de(0x256)]['bind'](_0x599f62),'getValues':_0x599f62[_0x9c40de(0x313)][_0x9c40de(0x2a5)](_0x599f62),'getKeys':_0x599f62[_0x9c40de(0x308)][_0x9c40de(0x2a5)](_0x599f62),'getCount':_0x599f62[_0x9c40de(0x35f)]['bind'](_0x599f62),'getByPrefix':_0x599f62[_0x9c40de(0x248)]['bind'](_0x599f62),'getIndex':_0x599f62['getIndex'][_0x9c40de(0x2a5)](_0x599f62),'byIndex':_0x599f62[_0x9c40de(0x298)][_0x9c40de(0x2a5)](_0x599f62),'query':_0x599f62[_0x9c40de(0x320)]['bind'](_0x599f62),'geoQuery':_0x599f62[_0x9c40de(0x33d)][_0x9c40de(0x2a5)](_0x599f62),'ftsQuery':_0x599f62[_0x9c40de(0x2f0)][_0x9c40de(0x2a5)](_0x599f62),'setTTL':_0x599f62[_0x9c40de(0x1f3)][_0x9c40de(0x2a5)](_0x599f62),'getTTL':_0x599f62[_0x9c40de(0x27d)][_0x9c40de(0x2a5)](_0x599f62),'clearTTL':_0x599f62[_0x9c40de(0x253)]['bind'](_0x599f62),'sweepExpiredTTL':_0x599f62['sweepExpiredTTL']['bind'](_0x599f62),'listTTL':_0x599f62[_0x9c40de(0x1fa)][_0x9c40de(0x2a5)](_0x599f62),'ttlStats':_0x599f62[_0x9c40de(0x2e9)]['bind'](_0x599f62),'setDefaultTTL':_0x599f62['setDefaultTTL']['bind'](_0x599f62),'getDefaultTTL':_0x599f62['getDefaultTTL'][_0x9c40de(0x2a5)](_0x599f62),'clearDefaultTTL':_0x599f62[_0x9c40de(0x295)][_0x9c40de(0x2a5)](_0x599f62),'registerType':_0x599f62[_0x9c40de(0x231)][_0x9c40de(0x2a5)](_0x599f62),'ensureType':_0x599f62[_0x9c40de(0x245)][_0x9c40de(0x2a5)](_0x599f62),'hasType':_0x599f62[_0x9c40de(0x319)][_0x9c40de(0x2a5)](_0x599f62),'dropType':_0x599f62[_0x9c40de(0x356)][_0x9c40de(0x2a5)](_0x599f62),'registerIndex':_0x599f62[_0x9c40de(0x20a)]['bind'](_0x599f62),'hasIndex':_0x599f62['hasIndex'][_0x9c40de(0x2a5)](_0x599f62),'dropIndex':_0x599f62[_0x9c40de(0x2ae)][_0x9c40de(0x2a5)](_0x599f62),'resetIndex':_0x599f62[_0x9c40de(0x2ce)][_0x9c40de(0x2a5)](_0x599f62),'indexReady':_0x599f62[_0x9c40de(0x227)][_0x9c40de(0x2a5)](_0x599f62),'getIndexStatus':_0x599f62['getIndexStatus'][_0x9c40de(0x2a5)](_0x599f62),'getClock':_0x599f62[_0x9c40de(0x30b)][_0x9c40de(0x2a5)](_0x599f62),'getChanges':_0x599f62[_0x9c40de(0x246)][_0x9c40de(0x2a5)](_0x599f62),'count':_0x599f62[_0x9c40de(0x23a)][_0x9c40de(0x2a5)](_0x599f62),'range':_0x599f62[_0x9c40de(0x236)]['bind'](_0x599f62),'now':_0x599f62[_0x9c40de(0x2de)][_0x9c40de(0x2a5)](_0x599f62)};}function _0x2698f5(_0x172d15){const _0x13b1dc=_0x5978;if(!_0x172d15)return null;const _0xc9d19f={};for(const _0x13974d of[_0x13b1dc(0x34e),'getJob',_0x13b1dc(0x25c),_0x13b1dc(0x314),_0x13b1dc(0x2dc),_0x13b1dc(0x262),_0x13b1dc(0x28e),'listBuckets']){if(typeof _0x172d15[_0x13974d]===_0x13b1dc(0x2e4))_0xc9d19f[_0x13974d]=_0x172d15[_0x13974d]['bind'](_0x172d15);}return Object[_0x13b1dc(0x26f)](_0xc9d19f)['length']?_0xc9d19f:null;}function _0x181e18(_0x2d3005){const _0x1f4d61=_0x5978;if(!_0x2d3005)return null;const _0x25998f={};for(const _0x1d09fc of['upload',_0x1f4d61(0x1f7),_0x1f4d61(0x29d),_0x1f4d61(0x35b),'list',_0x1f4d61(0x20b)]){if(typeof _0x2d3005[_0x1d09fc]==='function')_0x25998f[_0x1d09fc]=_0x2d3005[_0x1d09fc][_0x1f4d61(0x2a5)](_0x2d3005);}return Object['keys'](_0x25998f)[_0x1f4d61(0x31d)]?_0x25998f:null;}function _0x3de942(_0x1a13e6){const _0x31999e=_0x5978;return{'env':_0x1a13e6[_0x31999e(0x20e)][_0x31999e(0x2a5)](_0x1a13e6),'createEnvironment':_0x1a13e6[_0x31999e(0x20d)][_0x31999e(0x2a5)](_0x1a13e6),'removeEnvironment':_0x1a13e6[_0x31999e(0x306)]['bind'](_0x1a13e6),'info':_0x1a13e6[_0x31999e(0x2a4)],..._0x4b6d62(_0x1a13e6),'put':_0x1a13e6[_0x31999e(0x223)][_0x31999e(0x2a5)](_0x1a13e6),'update':_0x1a13e6[_0x31999e(0x300)][_0x31999e(0x2a5)](_0x1a13e6),'patch':_0x1a13e6['patch'][_0x31999e(0x2a5)](_0x1a13e6),'create':_0x1a13e6['create'][_0x31999e(0x2a5)](_0x1a13e6),'remove':_0x1a13e6[_0x31999e(0x29d)]['bind'](_0x1a13e6),'get':_0x1a13e6[_0x31999e(0x35b)][_0x31999e(0x2a5)](_0x1a13e6),'getMany':_0x1a13e6[_0x31999e(0x354)]['bind'](_0x1a13e6),'getEntry':_0x1a13e6[_0x31999e(0x2df)][_0x31999e(0x2a5)](_0x1a13e6),'getRange':_0x1a13e6[_0x31999e(0x256)][_0x31999e(0x2a5)](_0x1a13e6),'getValues':_0x1a13e6[_0x31999e(0x313)]['bind'](_0x1a13e6),'getKeys':_0x1a13e6[_0x31999e(0x308)][_0x31999e(0x2a5)](_0x1a13e6),'getCount':_0x1a13e6[_0x31999e(0x35f)][_0x31999e(0x2a5)](_0x1a13e6),'getByPrefix':_0x1a13e6['getByPrefix'][_0x31999e(0x2a5)](_0x1a13e6),'getIndex':_0x1a13e6['getIndex'][_0x31999e(0x2a5)](_0x1a13e6),'byIndex':_0x1a13e6[_0x31999e(0x298)][_0x31999e(0x2a5)](_0x1a13e6),'query':_0x1a13e6[_0x31999e(0x320)][_0x31999e(0x2a5)](_0x1a13e6),'setTTL':_0x1a13e6['setTTL'][_0x31999e(0x2a5)](_0x1a13e6),'getTTL':_0x1a13e6['getTTL'][_0x31999e(0x2a5)](_0x1a13e6),'clearTTL':_0x1a13e6['clearTTL'][_0x31999e(0x2a5)](_0x1a13e6),'sweepExpiredTTL':_0x1a13e6[_0x31999e(0x31c)][_0x31999e(0x2a5)](_0x1a13e6),'listTTL':_0x1a13e6[_0x31999e(0x1fa)][_0x31999e(0x2a5)](_0x1a13e6),'ttlStats':_0x1a13e6[_0x31999e(0x2e9)][_0x31999e(0x2a5)](_0x1a13e6),'setDefaultTTL':_0x1a13e6[_0x31999e(0x249)][_0x31999e(0x2a5)](_0x1a13e6),'getDefaultTTL':_0x1a13e6[_0x31999e(0x286)][_0x31999e(0x2a5)](_0x1a13e6),'clearDefaultTTL':_0x1a13e6['clearDefaultTTL'][_0x31999e(0x2a5)](_0x1a13e6),'ensureType':_0x1a13e6[_0x31999e(0x245)][_0x31999e(0x2a5)](_0x1a13e6),'registerType':_0x1a13e6[_0x31999e(0x231)][_0x31999e(0x2a5)](_0x1a13e6),'hasType':_0x1a13e6['hasType']['bind'](_0x1a13e6),'dropType':_0x1a13e6[_0x31999e(0x356)][_0x31999e(0x2a5)](_0x1a13e6),'registerIndex':_0x1a13e6['registerIndex']['bind'](_0x1a13e6),'hasIndex':_0x1a13e6[_0x31999e(0x2ac)][_0x31999e(0x2a5)](_0x1a13e6),'dropIndex':_0x1a13e6[_0x31999e(0x2ae)][_0x31999e(0x2a5)](_0x1a13e6),'resetIndex':_0x1a13e6[_0x31999e(0x2ce)][_0x31999e(0x2a5)](_0x1a13e6),'indexReady':_0x1a13e6['indexReady'][_0x31999e(0x2a5)](_0x1a13e6),'getIndexStatus':_0x1a13e6[_0x31999e(0x348)][_0x31999e(0x2a5)](_0x1a13e6),'getClock':_0x1a13e6['getClock'][_0x31999e(0x2a5)](_0x1a13e6),'getChanges':_0x1a13e6[_0x31999e(0x246)]['bind'](_0x1a13e6),'queue':_0x1a13e6[_0x31999e(0x2da)],'files':_0x1a13e6[_0x31999e(0x2f8)]};}return okdbFunctionsFacades={'createEnvFacade':_0x211f82,'createQueueFacade':_0x2698f5,'createFilesFacade':_0x181e18,'createGlobalFacade':_0x3de942},okdbFunctionsFacades;}var okdbFunctionsDryrun,hasRequiredOkdbFunctionsDryrun;function requireOkdbFunctionsDryrun(){const _0x4a89a4=_0x449694;if(hasRequiredOkdbFunctionsDryrun)return okdbFunctionsDryrun;hasRequiredOkdbFunctionsDryrun=0x1;const _0x43e683=new Set([_0x4a89a4(0x223),_0x4a89a4(0x2ba),'create',_0x4a89a4(0x29d),_0x4a89a4(0x300),_0x4a89a4(0x1f3),'clearTTL',_0x4a89a4(0x31c),_0x4a89a4(0x249),_0x4a89a4(0x295),'dropType','dropIndex',_0x4a89a4(0x2ce)]),_0x48bd8a=new Set([_0x4a89a4(0x34e),_0x4a89a4(0x314),_0x4a89a4(0x2dc),_0x4a89a4(0x262)]),_0x4435b1=new Set([_0x4a89a4(0x251),_0x4a89a4(0x29d)]);function _0x297173(_0x4efc80,_0xd40395){const _0x29c026=_0x4a89a4;if(_0x4efc80===_0x29c026(0x20e)||_0x4efc80===_0x29c026(0x326))return _0x43e683['has'](_0xd40395);if(_0x4efc80===_0x29c026(0x2da))return _0x48bd8a['has'](_0xd40395);if(_0x4efc80===_0x29c026(0x2f8))return _0x4435b1[_0x29c026(0x270)](_0xd40395);return![];}function _0xd6b514(_0x2c18b1,_0x2c29af,_0x317c5f,_0x7557d4){if(!_0x2c18b1)return _0x2c18b1;return new Proxy(_0x2c18b1,{'get'(_0x4bf968,_0x3b61ba,_0x1e75da){const _0xe78893=_0x5978,_0x115c53=Reflect[_0xe78893(0x35b)](_0x4bf968,_0x3b61ba,_0x1e75da);if(typeof _0x115c53!==_0xe78893(0x2e4))return _0x115c53;if(!_0x297173(_0x2c29af,_0x3b61ba))return _0x115c53[_0xe78893(0x2a5)](_0x4bf968);return function(..._0x15b48d){const _0x56da7e=_0xe78893;return _0x7557d4[_0x56da7e(0x350)]({'scope':_0x2c29af,'method':_0x3b61ba,'envName':_0x317c5f,'args':_0x15b48d}),null;};}});}function _0x5e63ea(_0x43afad,_0x19b4ae,_0x2ccb0b,_0x3e009d){const _0x459589={};for(const _0x5133d1 of _0x2ccb0b){_0x459589[_0x5133d1]=(..._0x48cbaa)=>{const _0x3c015b=_0x5978;return _0x297173(_0x43afad,_0x5133d1)&&_0x3e009d[_0x3c015b(0x350)]({'scope':_0x43afad,'method':_0x5133d1,'envName':_0x19b4ae,'args':_0x48cbaa}),null;};}return _0x459589;}return okdbFunctionsDryrun={'isWriteMethod':_0x297173,'wrapForDryRun':_0xd6b514,'syntheticDryRunFacade':_0x5e63ea,'ENV_WRITE_METHODS':_0x43e683,'QUEUE_WRITE_METHODS':_0x48bd8a,'FILES_WRITE_METHODS':_0x4435b1},okdbFunctionsDryrun;}var okdbFunctionsContext,hasRequiredOkdbFunctionsContext;function requireOkdbFunctionsContext(){const _0x11edaf=_0x449694;if(hasRequiredOkdbFunctionsContext)return okdbFunctionsContext;hasRequiredOkdbFunctionsContext=0x1;const {createEnvFacade:_0x3a431b,createQueueFacade:_0x2a3d4a,createFilesFacade:_0x3189ca,createGlobalFacade:_0x1e765c}=requireOkdbFunctionsFacades(),{wrapForDryRun:_0x55a690,syntheticDryRunFacade:_0x59d939}=requireOkdbFunctionsDryrun(),_0x52e145=[_0x11edaf(0x34e),_0x11edaf(0x27c),'list',_0x11edaf(0x314),_0x11edaf(0x2dc),_0x11edaf(0x262),'getBucket',_0x11edaf(0x299)],_0x3b68d2=['upload',_0x11edaf(0x1f7),_0x11edaf(0x29d),_0x11edaf(0x35b),_0x11edaf(0x25c),_0x11edaf(0x20b)];function _0x49630d(_0x6a6a6b,_0x320a3a){const _0x43d6a1=_0x11edaf,_0x2f7b4c=(_0x4a66f3,_0x25c484,_0x4752ed)=>_0x320a3a({'type':_0x43d6a1(0x200),'requestId':_0x6a6a6b[_0x43d6a1(0x289)],'runId':_0x6a6a6b[_0x43d6a1(0x31f)],'entry':{'level':_0x4a66f3,'msg':_0x25c484,'context':_0x4752ed,'ts':Date['now']()}}),_0x12d5fb=(_0x1eb5d8,_0x443cd9)=>_0x2f7b4c('info',_0x1eb5d8,_0x443cd9);return _0x12d5fb[_0x43d6a1(0x2a4)]=(_0xc0a20a,_0x4f7c6c)=>_0x2f7b4c(_0x43d6a1(0x2a4),_0xc0a20a,_0x4f7c6c),_0x12d5fb['warn']=(_0xa3f64c,_0x5597be)=>_0x2f7b4c(_0x43d6a1(0x26b),_0xa3f64c,_0x5597be),_0x12d5fb[_0x43d6a1(0x2b8)]=(_0xc569d5,_0x1c0d1f)=>_0x2f7b4c(_0x43d6a1(0x2b8),_0xc569d5,_0x1c0d1f),_0x12d5fb['debug']=(_0x310f2d,_0x309b12)=>_0x2f7b4c(_0x43d6a1(0x281),_0x310f2d,_0x309b12),_0x12d5fb;}function _0x114b31(_0x119c09,_0x19613b,_0x4e6027){const _0x5ca587=_0x11edaf;if(!_0x119c09)return null;return{'id':_0x119c09['id']??null,'type':_0x119c09[_0x5ca587(0x361)]??null,'tries':_0x119c09[_0x5ca587(0x316)]??null,'created':_0x119c09[_0x5ca587(0x2f5)]??null,'tags':_0x119c09[_0x5ca587(0x32d)]??null,'priority':_0x119c09[_0x5ca587(0x2e7)]??null,'bucket':_0x119c09[_0x5ca587(0x1fb)]??null,'cron':_0x119c09['cron']??null,'heartbeat'(){const _0x508017=_0x5ca587;_0x4e6027({'type':_0x508017(0x2f1),'requestId':_0x19613b['requestId'],'runId':_0x19613b[_0x508017(0x31f)],'jobId':_0x119c09['id'],'claimId':_0x119c09[_0x508017(0x21e)]});},'markProgress'(_0x1750cb){const _0x57bde5=_0x5ca587;_0x4e6027({'type':_0x57bde5(0x214),'requestId':_0x19613b['requestId'],'runId':_0x19613b[_0x57bde5(0x31f)],'jobId':_0x119c09['id'],'claimId':_0x119c09['claimId'],'message':_0x1750cb});}};}function _0x25eb89(_0x24c25b){const _0x2c30ed=_0x11edaf;if(!_0x24c25b)return null;return{'mode':_0x24c25b['mode']??null,'sourceType':_0x24c25b[_0x2c30ed(0x2a6)]??null,'sourceEnv':_0x24c25b[_0x2c30ed(0x213)]??null,'processor':_0x24c25b['processor']??null,'engineKey':_0x24c25b[_0x2c30ed(0x2f9)]??null,'cursorKey':_0x24c25b[_0x2c30ed(0x2e8)]??null};}function _0x3d8248(_0x4168aa){const _0x292207=_0x11edaf;if(!_0x4168aa)return null;return{'mode':_0x4168aa[_0x292207(0x28d)]??null,'sourceType':_0x4168aa[_0x292207(0x2a6)]??null,'targetType':_0x4168aa[_0x292207(0x2a1)]??null,'sourceEnv':_0x4168aa['sourceEnv']??null,'targetEnv':_0x4168aa[_0x292207(0x310)]??null,'engineKey':_0x4168aa[_0x292207(0x2f9)]??null,'cursorKey':_0x4168aa[_0x292207(0x2e8)]??null};}function _0x37e17c(_0x403927,_0x3653cf,_0x348369,_0xbbedfd=null,_0x389ee1=null){const _0x4a44d3=_0x11edaf,_0x37928b={'runId':_0x3653cf['runId'],'scope':_0x4a44d3(0x20e),'env':_0x3653cf[_0x4a44d3(0x284)]??null,'functionName':_0x3653cf[_0x4a44d3(0x30c)],'trigger':_0x3653cf[_0x4a44d3(0x2a4)]?.[_0x4a44d3(0x271)]??_0x4a44d3(0x329),'requestedAt':_0x3653cf[_0x4a44d3(0x2a4)]?.[_0x4a44d3(0x23b)]??Date['now']()},_0x432b04=_0x49630d(_0x3653cf,_0x348369),_0x2102d9=AbortSignal[_0x4a44d3(0x28a)](Math[_0x4a44d3(0x237)](0x1,_0x3653cf['runtime']?.[_0x4a44d3(0x2ea)]??0x3e8)),_0x32f08a=_0x389ee1?AbortSignal['any']([_0x2102d9,_0x389ee1]):_0x2102d9,_0x15129f=_0x403927[_0x4a44d3(0x20e)](_0x3653cf['envName']),_0x57d3de=_0xbbedfd?_0x55a690(_0x15129f,'env',_0x3653cf['envName'],_0xbbedfd):_0x15129f,_0x381ed4=_0xbbedfd?_0x15129f[_0x4a44d3(0x2da)]?_0x55a690(_0x15129f[_0x4a44d3(0x2da)],_0x4a44d3(0x2da),_0x3653cf[_0x4a44d3(0x284)],_0xbbedfd):_0x59d939(_0x4a44d3(0x2da),_0x3653cf['envName'],_0x52e145,_0xbbedfd):_0x15129f[_0x4a44d3(0x2da)],_0x5752ba=_0xbbedfd?_0x15129f[_0x4a44d3(0x2f8)]?_0x55a690(_0x15129f['files'],_0x4a44d3(0x2f8),_0x3653cf['envName'],_0xbbedfd):_0x59d939(_0x4a44d3(0x2f8),_0x3653cf['envName'],_0x3b68d2,_0xbbedfd):_0x15129f[_0x4a44d3(0x2f8)],_0x4d7303=_0x3a431b(_0x57d3de),_0xee558=_0x2a3d4a(_0x381ed4),_0x1fa6dd=_0x3189ca(_0x5752ba);if(_0xee558)_0x4d7303[_0x4a44d3(0x2da)]=_0xee558;if(_0x1fa6dd)_0x4d7303['files']=_0x1fa6dd;const _0x527ecf={'payload':_0x3653cf[_0x4a44d3(0x2d0)]??null,'info':_0x37928b,'signal':_0x32f08a,'log':_0x432b04,'env':_0x4d7303},_0x1cf4e8=_0x114b31(_0x3653cf[_0x4a44d3(0x33b)],_0x3653cf,_0x348369);if(_0x1cf4e8)_0x527ecf[_0x4a44d3(0x352)]=_0x1cf4e8;const _0x2a41f8=_0x25eb89(_0x3653cf[_0x4a44d3(0x265)]);if(_0x2a41f8)_0x527ecf[_0x4a44d3(0x222)]=_0x2a41f8;const _0x196a41=_0x3d8248(_0x3653cf[_0x4a44d3(0x321)]);if(_0x196a41)_0x527ecf[_0x4a44d3(0x228)]=_0x196a41;if(_0x3653cf[_0x4a44d3(0x32a)]){const _0x386e89=_0xbbedfd?_0x55a690(_0x403927,'global',null,_0xbbedfd):_0x403927;_0x527ecf[_0x4a44d3(0x307)]=_0x1e765c(_0x386e89);}return _0x527ecf;}return okdbFunctionsContext={'createExecutionContext':_0x37e17c,'createScriptLogger':_0x49630d},okdbFunctionsContext;}var hasRequiredOkdbFunctionsSandboxWorker;function requireOkdbFunctionsSandboxWorker(){const _0xc14703=_0x449694;if(hasRequiredOkdbFunctionsSandboxWorker)return okdbFunctionsSandboxWorker$1;hasRequiredOkdbFunctionsSandboxWorker=0x1;const {parentPort:_0x32fa31,workerData:_0x21a05a}=require$$0$4;requireOkdbFatalReport()['enableFatalReport'](_0xc14703(0x216));const _0x51b95e=require$$2,{compileFunctionExpression:_0x504cfc}=requireOkdbFunctionsSandbox(),{serializeError:_0x141962}=requireOkdbFunctionsIpc(),{createExecutionContext:_0x40df76}=requireOkdbFunctionsContext(),_0xda4aee=require$$6;let _0x37ab6a=null,_0x4dca75=![];const _0x320684=new Map(),_0x23d882=new Map();function _0x32711c(_0x2139c4){try{_0x32fa31['postMessage'](_0x2139c4);}catch{}}function _0x5e2f83(_0x2f9c68){const _0x113e3f=_0xc14703,_0x65c51d=(_0x2f9c68[_0x113e3f(0x284)]||_0x113e3f(0x254))+':'+_0x2f9c68[_0x113e3f(0x30c)]+':'+_0x2f9c68['version']+':'+_0x2f9c68['hash'];let _0x1a7405=_0x320684['get'](_0x65c51d);return!_0x1a7405&&(_0x1a7405=_0x504cfc(_0x2f9c68[_0x113e3f(0x294)],{'allowFetch':_0x2f9c68[_0x113e3f(0x305)]?.[_0x113e3f(0x1e3)]!==![],'allowedFetchDomains':_0x2f9c68['runtime']?.[_0x113e3f(0x345)],'filename':_0x2f9c68[_0x113e3f(0x30c)]+'.okdb-function.js'}),_0x320684['set'](_0x65c51d,_0x1a7405)),_0x1a7405;}async function _0x25c6a5(_0x2a2561){const _0x135792=_0xc14703,_0x5496e8=Date[_0x135792(0x2de)](),_0xaa546c=new AbortController();_0x23d882[_0x135792(0x2eb)](_0x2a2561[_0x135792(0x289)],_0xaa546c);try{const _0x793498=_0x5e2f83(_0x2a2561);if(_0x2a2561[_0x135792(0x284)])await _0x37ab6a[_0x135792(0x26c)](_0x2a2561[_0x135792(0x284)]);const _0x29803f=_0x2a2561['dryRun']?[]:null,_0x30d3a6=_0x40df76(_0x37ab6a,_0x2a2561,_0x32711c,_0x29803f,_0xaa546c[_0x135792(0x2dd)]),_0x303a95=await _0x793498(_0x30d3a6),_0x186ffc={'type':_0x135792(0x234),'requestId':_0x2a2561[_0x135792(0x289)],'runId':_0x2a2561[_0x135792(0x31f)],'result':_0x303a95,'meta':{'runnerId':_0x135792(0x2d9)+process[_0x135792(0x27a)],'startedAt':_0x5496e8,'finishedAt':Date['now'](),'durationMs':Date['now']()-_0x5496e8}};if(_0x29803f)_0x186ffc[_0x135792(0x201)]=_0x29803f;_0x32711c(_0x186ffc);}catch(_0x52d82a){_0x32711c({'type':_0x135792(0x2b8),'requestId':_0x2a2561['requestId'],'runId':_0x2a2561[_0x135792(0x31f)],'error':_0x141962(_0x52d82a),'meta':{'runnerId':_0x135792(0x2d9)+process[_0x135792(0x27a)],'startedAt':_0x5496e8,'finishedAt':Date[_0x135792(0x2de)](),'durationMs':Date['now']()-_0x5496e8}});}finally{_0x23d882[_0x135792(0x292)](_0x2a2561[_0x135792(0x289)]);}}async function _0xd88dd9(){const _0x629b5b=_0xc14703;if(_0x4dca75)return;_0x4dca75=!![];try{await _0x37ab6a?.[_0x629b5b(0x27e)]?.();}catch{}process[_0x629b5b(0x27f)](0x0);}async function _0x543b83(){const _0x24a562=_0xc14703,{rootPath:_0xa6357d}=_0x21a05a??{};if(!_0xa6357d)throw new Error(_0x24a562(0x359));_0x37ab6a=new _0xda4aee(_0xa6357d,{'engines':![],'processors':![],'compaction':![],'http':![],'auth':{'open':!![]},'processes':![]}),await _0x37ab6a[_0x24a562(0x26a)]();const _0x1a6eb9=setInterval(()=>{const _0x1d1ae5=_0x24a562;if(_0x4dca75)return;for(const [,_0x316884]of _0x37ab6a[_0x1d1ae5(0x23f)]){try{_0x316884[_0x1d1ae5(0x269)]?.();}catch{}}},0xc8);if(typeof _0x1a6eb9[_0x24a562(0x2c4)]===_0x24a562(0x2e4))_0x1a6eb9[_0x24a562(0x2c4)]();_0x32fa31['on']('message',_0x3daad4=>{const _0x231f90=_0x24a562;if(!_0x3daad4||typeof _0x3daad4!==_0x231f90(0x344))return;if(_0x3daad4['type']==='stop')return void _0xd88dd9();if(_0x3daad4[_0x231f90(0x361)]===_0x231f90(0x35c)){_0x23d882[_0x231f90(0x35b)](_0x3daad4[_0x231f90(0x289)])?.['abort'](new Error('cancelled\x20by\x20caller'));return;}_0x3daad4[_0x231f90(0x361)]===_0x231f90(0x2a2)&&void _0x25c6a5(_0x3daad4['job']);});const _0x3ddc21=Math[_0x24a562(0x237)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x2a0926=setInterval(()=>{const _0x2e3586=_0x24a562;try{_0x32711c({'type':_0x2e3586(0x341),'heapUsed':_0x51b95e[_0x2e3586(0x209)]()[_0x2e3586(0x35a)]});}catch{}},_0x3ddc21);if(typeof _0x2a0926[_0x24a562(0x2c4)]===_0x24a562(0x2e4))_0x2a0926['unref']();_0x32711c({'type':_0x24a562(0x212)});}return _0x543b83()['catch'](_0x368261=>{const _0x6a744b=_0xc14703;_0x32711c({'type':'fatal','error':_0x141962(_0x368261)}),process[_0x6a744b(0x27f)](0x1);}),okdbFunctionsSandboxWorker$1;}var okdbFunctionsSandboxWorkerExports=requireOkdbFunctionsSandboxWorker(),okdbFunctionsSandboxWorker=getDefaultExportFromCjs(okdbFunctionsSandboxWorkerExports);function _0x5978(_0x2e431,_0x50e44e){_0x2e431=_0x2e431-0x1e3;const _0x3536be=_0x3536();let _0x5978fa=_0x3536be[_0x2e431];return _0x5978fa;}module[_0x449694(0x203)]=okdbFunctionsSandboxWorker;
1
+ 'use strict';const _0x17c6d3=_0x1f6d;(function(_0x2a88c7,_0x241732){const _0x460817=_0x1f6d,_0x47d161=_0x2a88c7();while(!![]){try{const _0x469b2b=-parseInt(_0x460817(0x1d3))/0x1*(parseInt(_0x460817(0x1e5))/0x2)+parseInt(_0x460817(0x204))/0x3+-parseInt(_0x460817(0x2be))/0x4+-parseInt(_0x460817(0x268))/0x5*(parseInt(_0x460817(0x1c8))/0x6)+parseInt(_0x460817(0x230))/0x7*(-parseInt(_0x460817(0x27b))/0x8)+-parseInt(_0x460817(0x16d))/0x9+parseInt(_0x460817(0x2b3))/0xa;if(_0x469b2b===_0x241732)break;else _0x47d161['push'](_0x47d161['shift']());}catch(_0x5e2400){_0x47d161['push'](_0x47d161['shift']());}}}(_0x1cb3,0x81753));var require$$0$4=require(_0x17c6d3(0x212)),require$$2=require('v8'),require$$0=require(_0x17c6d3(0x15c)),require$$0$3=require(_0x17c6d3(0x235)),require$$0$1=require('lmdb'),require$$0$2=require(_0x17c6d3(0x2db)),require$$6=require(_0x17c6d3(0x1ee));function getDefaultExportFromCjs(_0x22a4ef){const _0x25a4a7=_0x17c6d3;return _0x22a4ef&&_0x22a4ef[_0x25a4a7(0x195)]&&Object[_0x25a4a7(0x173)][_0x25a4a7(0x2b1)][_0x25a4a7(0x19e)](_0x22a4ef,'default')?_0x22a4ef[_0x25a4a7(0x295)]:_0x22a4ef;}var okdbFunctionsSandboxWorker$1={},okdbFatalReport,hasRequiredOkdbFatalReport;function requireOkdbFatalReport(){if(hasRequiredOkdbFatalReport)return okdbFatalReport;hasRequiredOkdbFatalReport=0x1;function _0xeb7c68(_0x4db215){const _0x276e61=_0x1f6d;if(process.env.OKDB_FATAL_REPORT!=='1')return;try{if(!process[_0x276e61(0x1f5)])return;process[_0x276e61(0x1f5)]['reportOnFatalError']=!![];try{if(_0x276e61(0x2bd)in process[_0x276e61(0x1f5)])process[_0x276e61(0x1f5)][_0x276e61(0x2bd)]=process.env.OKDB_FATAL_REPORT_ENV!=='1';}catch{}if(process[_0x276e61(0x18e)]!==_0x276e61(0x1be))try{process[_0x276e61(0x1f5)]['reportOnSignal']=!![];if(typeof process['report']['signal']===_0x276e61(0x2a5))process[_0x276e61(0x1f5)][_0x276e61(0x2c5)]=_0x276e61(0x28f);}catch{}if(process.env.OKDB_REPORT_DIR)try{require('fs')[_0x276e61(0x20e)](process.env.OKDB_REPORT_DIR,{'recursive':!![]}),process['report'][_0x276e61(0x260)]=process.env.OKDB_REPORT_DIR;}catch{}try{process[_0x276e61(0x1f5)]['filename']='';}catch{}if(_0x4db215)process.env.OKDB_REPORT_TAG=String(_0x4db215);}catch{}}return okdbFatalReport={'enableFatalReport':_0xeb7c68},okdbFatalReport;}var okdbFunctionsSandbox,hasRequiredOkdbFunctionsSandbox;function requireOkdbFunctionsSandbox(){if(hasRequiredOkdbFunctionsSandbox)return okdbFunctionsSandbox;hasRequiredOkdbFunctionsSandbox=0x1;const _0x5045a5=require$$0;function _0x4094cc(_0x148ef7){const _0x5b9295=_0x1f6d,_0x532972=_0x148ef7==='*',_0x2c52e4=_0x532972?null:new Set(Array[_0x5b9295(0x266)](_0x148ef7)?_0x148ef7:[]);return function _0x11b153(_0x5e3770,_0x209bc3){const _0x284c39=_0x5b9295;if(!_0x532972){let _0x361ad2;try{const _0x215972=new URL(typeof _0x5e3770===_0x284c39(0x2a5)?_0x5e3770:_0x5e3770?.[_0x284c39(0x15a)]??String(_0x5e3770));_0x361ad2=_0x215972[_0x284c39(0x1a7)];}catch{const _0x276476=new Error('fetch\x20blocked:\x20invalid\x20URL');return _0x276476[_0x284c39(0x1dc)]=_0x284c39(0x208),Promise['reject'](_0x276476);}if(!_0x2c52e4[_0x284c39(0x17f)](_0x361ad2)){const _0x349096=new Error(_0x2c52e4['size']===0x0?_0x284c39(0x201):_0x284c39(0x1a0)+_0x361ad2+_0x284c39(0x1e7));return _0x349096[_0x284c39(0x1dc)]=_0x284c39(0x208),Promise[_0x284c39(0x17c)](_0x349096);}}return fetch(_0x5e3770,_0x209bc3);};}function _0xfa5f60(_0x16b6e3={}){const _0x502108=_0x1f6d,_0x9018c1=_0x16b6e3[_0x502108(0x197)]!==![],_0x25ac52=_0x16b6e3['allowedFetchDomains']??[],_0x390a27={'Date':Date,'Math':Math,'JSON':JSON,'Array':Array,'Object':Object,'String':String,'Number':Number,'Boolean':Boolean,'Map':Map,'Set':Set,'Promise':Promise,'URL':URL,'URLSearchParams':URLSearchParams,'TextEncoder':TextEncoder,'TextDecoder':TextDecoder,'AbortController':AbortController,'AbortSignal':AbortSignal,'setTimeout':setTimeout,'clearTimeout':clearTimeout,'setInterval':setInterval,'clearInterval':clearInterval,'queueMicrotask':queueMicrotask,'structuredClone':structuredClone,'crypto':globalThis[_0x502108(0x17a)]};return _0x9018c1&&typeof fetch==='function'&&(_0x390a27[_0x502108(0x284)]=_0x4094cc(_0x25ac52)),_0x390a27['globalThis']=_0x390a27,_0x390a27;}function _0x19b32a(_0x206165,_0x2c4e8f={}){const _0x412810=_0x1f6d,_0x2890fb=_0xfa5f60(_0x2c4e8f),_0xc8055e=_0x5045a5[_0x412810(0x238)](_0x2890fb,{'name':_0x412810(0x26c),'codeGeneration':{'strings':![],'wasm':![]}});let _0x3d5929;try{_0x3d5929=new _0x5045a5[(_0x412810(0x182))]('('+_0x206165+')',{'filename':_0x2c4e8f[_0x412810(0x25a)]??_0x412810(0x1a8)});}catch(_0x124cba){const _0x5d0444=new Error(_0x124cba?.['message']||_0x412810(0x21b));_0x5d0444['code']=_0x412810(0x29b),_0x5d0444[_0x412810(0x27e)]=_0x124cba;throw _0x5d0444;}let _0x3dd54f;try{_0x3dd54f=_0x3d5929[_0x412810(0x27d)](_0xc8055e,{'timeout':_0x2c4e8f[_0x412810(0x186)]??0x64});}catch(_0x471a7d){const _0x1c05a7=new Error(_0x471a7d?.[_0x412810(0x1a5)]||_0x412810(0x18b));_0x1c05a7[_0x412810(0x1dc)]=_0x412810(0x29b),_0x1c05a7[_0x412810(0x27e)]=_0x471a7d;throw _0x1c05a7;}if(typeof _0x3dd54f!==_0x412810(0x1af)){const _0x35c667=new Error('Function\x20script\x20must\x20evaluate\x20to\x20a\x20callable\x20function');_0x35c667['code']=_0x412810(0x1a2);throw _0x35c667;}return _0x3dd54f;}return okdbFunctionsSandbox={'createSandboxGlobals':_0xfa5f60,'compileFunctionExpression':_0x19b32a,'_buildRestrictedFetch':_0x4094cc},okdbFunctionsSandbox;}var okdbFunctionsIpc,hasRequiredOkdbFunctionsIpc;function _0x1cb3(){const _0x4b6fb4=['env:removed','hasIndex','createContext','unref','enqueue','total','ttlStats','_started','sourceEnv','DONE','OKDBForeignKeyError','OKDBIndexHasConsumersError','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','forEach','close','timeout','script','\x27,\x20cannot\x20map\x20to\x20\x27','ref:violation','result','sandbox\x20worker:\x20rootPath\x20missing\x20from\x20workerData','addBucket','disable','VERSION_MISMATCH','name','keys','events','trigger','Transaction\x20already\x20closed','\x20actions=','kind','queue','_admissionTimer','runId','_readViewExpired','\x20already\x20exists','filename','resetting','registerIndex',':useReadTransaction','getKeys','query','directory','OKDBSchemaCollectionError','asArray','INVALID_INDEX_KEY','envPath','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','isArray','error','95tTiBfL','commit','tags','info','okdb-function-sandbox','job_progress','bus:drain','openEnv','ttl:expired','registerType','remove','type:registered','iterator','global','map','index:progress','targetType','create','_timer','32GWHqId','system:drain','runInContext','cause','TXN_CLOSED','hasType','ftsQuery','getRange','targetKey','fetch','Cannot\x20set\x20enforce\x20schema\x20on\x20','max','ttl','Unsupported\x20transaction\x20action:\x20','OKDBSchemaValidationError','_closed','maxExtra','set','Unique\x20constraint\x20violated\x20on\x20','captureStackTrace','SIGSEGV','delete','Foreign\x20key\x20violation:\x20','txn\x20ops\x20must\x20be\x20an\x20array','unique:violation_resolved','starting','default','_range','label','license:removed','sandbox-','loop-lag','FUNCTION_SCRIPT_COMPILE_FAILED','Index\x20\x22','get','ms\x20max=','processorContext','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','true','OKDBInvalidValueError','getStats','requestedAt','string','ms\x20mean=','view:progress','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','FOREIGN_KEY_DELETE_RESTRICTED','join','started','args','runtime','processor','object','update','hasOwnProperty','TXN_ROLLBACK','24566720ZckQuk','getCount','sandbox','clearTTL','bucket','waiting','clearTtl','Cannot\x20delete\x20','index:drop','count','excludeEnv','1222032PSBftP','details','Version\x20mismatch\x20for\x20','registerFts','getValues','listBuckets','listTTL','signal','open','SCHEMA_VALIDATION_FAILED','done','system:bus_state_change','constructor','_report','dropIndex','dryRun','getEntry','_admissionStarted','options','slice','from','schema:set','run','createWriteFacade','sourceKey','cron','jobContext','emit','patch','node:perf_hooks',':txnRange','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','getIndex','dryRunActions','push','item:update','\x27\x20doesn\x27t\x20exist','mean','failures','next','type','url','updateJob','node:vm','stopping','last','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','TYPE_ALREADY_REGISTERED','license:activated','txn:end','fts:reset','removeJob','_assertOpen','bus:poke','postMessage','_log','actions','byIndex','schema:drop','concat','414855kaTKrX','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','allowedFetchDomains','rollback','cancelled\x20by\x20caller','materializer','prototype','READER_HELD_ACROSS_AWAIT','job_heartbeat','system:ready','INVALID_VALUE','mapError','stopped','crypto','\x20does\x20not\x20exist','reject','_undoHooks','references','has','geoQuery','\x27\x20on\x20type\x20\x27','Script','OKDBIndexAlreadyRegisteredError','system:poke','ready','compileTimeoutMs','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','requestId','getClock','reset','Function\x20script\x20failed\x20to\x20initialize','getByPrefix','priority','platform','TXN_INVALID_ACTION','byLabel','note','system:stopped','index:reset','put','__esModule','stringify','allowFetch','ttl:set','getHeapStatistics','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','unique:violation','getByPath','_startAdmission','call','key','fetch\x20blocked:\x20hostname\x20\x22','NOT_FOUND','FUNCTION_SCRIPT_INVALID_SHAPE','toFixed','fieldPath','message','lastTxnId','hostname','okdb-function.js','_txnIdAtSnapshot','materializerContext','resetFts','fts:registered','debug','freeze','function','fts:drop','transaction\x20commit\x20failed','halted','\x22\x20is\x20used\x20by:\x20','value','claimId','bus:type_drop','exports','_buckets','ensureType','return','dropType','getMany','payload','win32','_windowCbs','INDEX_ALREADY_REGISTERED','onUndo','length','sort','SCHEMA_COLLECTION_INVALID','dropSchema','UNIQUE_CONSTRAINT','ms\x20busy=','236838KpvBnR','functionName','sweepExpiredTTL','stack','setTTL','\x20which\x20does\x20not\x20exist','license:added','.okdb-function.js','upload','action','type:drop','555419smdhbp','okdb','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','applyOps','list','OKDBTypeNotRegisteredError','INVALID_PRIMARY_KEY','getChanges','exit','code','system:type_drop','sync:apply','index:registered','indexReady','_makeIterator','transaction','TXN_END','envName','2SzQsUa','Unknown\x20transaction\x20action:\x20','\x22\x20is\x20not\x20in\x20the\x20allowedFetchDomains\x20list','used_heap_size','reduce','tries','OKDBVersionMismatchError','\x22\x20on\x20\x22','setDefaultTTL','./okdb','stream','Array.from)\x20before\x20any\x20await.','txn:start','getDefaultTTL','enabled','system:clock_change','report','percentile','OKDBForeignKeyDeleteError','pid','txn','maxMs','SKIP','_doHooks','system:env_release','hash','getTTL','any','fetch\x20is\x20not\x20allowed\x20in\x20this\x20function\x20sandbox\x20(no\x20allowedFetchDomains\x20configured)','creating','OKDBAlreadyExistsError','1249728Hqqnka','_closeReadTransaction','shift','version','FETCH_NOT_ALLOWED','created','OKDBUniqueConstraintError','sourceType','\x27\x20is\x20already\x20registered','enable','mkdirSync','ALREADY_EXISTS','Unknown\x20OKDB\x20transaction\x20error','txnId','worker_threads','Invalid\x20primary\x20key\x20type:\x20','bind','now','dropping','TXN_INVALID_OP','timeoutMs','mode','item:create','Function\x20script\x20failed\x20to\x20compile','txn-commit','stats',':\x20expected\x20',':\x20key\x20[','OKDBNotFoundError','getIndexStatus','setLogger','OKDBError','unsafe','\x20documents\x20fail\x20validation','Type\x20\x27','files','useReadTransaction','TYPE_NOT_REGISTERED','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','readTransaction','dropFts','env','tolerant','warn','1200465zbTgrM','system:proc','clearDefaultTTL','TXN_ERROR','resetIndex','uuid'];_0x1cb3=function(){return _0x4b6fb4;};return _0x1cb3();}function requireOkdbFunctionsIpc(){if(hasRequiredOkdbFunctionsIpc)return okdbFunctionsIpc;hasRequiredOkdbFunctionsIpc=0x1;function _0x67e103(_0x15ecd0){const _0x31ed73=_0x1f6d;if(!_0x15ecd0)return null;return{'message':_0x15ecd0['message']||String(_0x15ecd0),'stack':_0x15ecd0[_0x31ed73(0x1cb)]||null,'code':_0x15ecd0[_0x31ed73(0x1dc)]||null,'details':_0x15ecd0[_0x31ed73(0x2bf)]||null};}function _0x4d6bfa(_0x41b8d0){const _0x353c6b=_0x1f6d;if(!_0x41b8d0)return new Error('Unknown\x20custom\x20function\x20error');const _0x51915a=new Error(_0x41b8d0[_0x353c6b(0x1a5)]||String(_0x41b8d0));if(_0x41b8d0[_0x353c6b(0x1cb)])_0x51915a[_0x353c6b(0x1cb)]=_0x41b8d0[_0x353c6b(0x1cb)];if(_0x41b8d0['code'])_0x51915a[_0x353c6b(0x1dc)]=_0x41b8d0['code'];if(_0x41b8d0['details'])_0x51915a[_0x353c6b(0x2bf)]=_0x41b8d0[_0x353c6b(0x2bf)];return _0x51915a;}return okdbFunctionsIpc={'serializeError':_0x67e103,'deserializeError':_0x4d6bfa},okdbFunctionsIpc;}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x2dc51b=_0x17c6d3;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x21997e={'PUT':'put','REMOVE':_0x2dc51b(0x272),'INDEX_DROP':_0x2dc51b(0x2cc),'INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x2dc51b(0x234),'TYPE_REGISTER':_0x2dc51b(0x271),'TYPE_DROP':_0x2dc51b(0x1bb),'FTS_REGISTER':_0x2dc51b(0x2c1),'FTS_DROP':_0x2dc51b(0x22c),'FTS_RESET':_0x2dc51b(0x1ab),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x2dc51b(0x1c5),'TTL_SET':'setTtl','TTL_CLEAR':_0x2dc51b(0x2b9)},_0x1873bf={'SYSTEM_READY':_0x2dc51b(0x176),'SYSTEM_STOPPED':_0x2dc51b(0x192),'SYSTEM_CLOCK_CHANGE':_0x2dc51b(0x1f4),'SYSTEM_POKE':_0x2dc51b(0x184),'SYSTEM_DRAIN':_0x2dc51b(0x27c),'SYSTEM_TYPE_DROP':_0x2dc51b(0x1dd),'SYSTEM_PROC':_0x2dc51b(0x231),'SYSTEM_BUS_STATE_CHANGE':_0x2dc51b(0x2c9),'ITEM_CREATE':_0x2dc51b(0x21a),'ITEM_UPDATE':_0x2dc51b(0x154),'ITEM_REMOVE':'item:remove','INDEX_RESET':_0x2dc51b(0x193),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x2dc51b(0x277),'VIEW_PROGRESS':_0x2dc51b(0x2a7),'INDEX_DROP':_0x2dc51b(0x2bb),'INDEX_REGISTERED':_0x2dc51b(0x1df),'FTS_REGISTERED':_0x2dc51b(0x1ac),'FTS_DROP':_0x2dc51b(0x1b0),'FTS_RESET':_0x2dc51b(0x163),'SCHEMA_SET':_0x2dc51b(0x2d3),'SCHEMA_DROP':_0x2dc51b(0x16b),'UNIQUE_VIOLATION':_0x2dc51b(0x19b),'UNIQUE_VIOLATION_RESOLVED':_0x2dc51b(0x293),'REF_VIOLATION':_0x2dc51b(0x248),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x2dc51b(0x1de),'TXN_START':_0x2dc51b(0x1f1),'TXN_END':_0x2dc51b(0x162),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x2dc51b(0x273),'TYPE_DROP':_0x2dc51b(0x1d2),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x2dc51b(0x236),'SYSTEM_ENV_RELEASE':_0x2dc51b(0x1fd),'TTL_EXPIRED':_0x2dc51b(0x270),'TTL_SET':_0x2dc51b(0x198),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x2dc51b(0x1ce),'LICENSE_ACTIVATED':_0x2dc51b(0x161),'LICENSE_REMOVED':_0x2dc51b(0x298)},_0x214a07={'CREATING':_0x2dc51b(0x202),'RESETTING':_0x2dc51b(0x25b),'READY':_0x2dc51b(0x185),'DROPPING':_0x2dc51b(0x216),'WAITING':_0x2dc51b(0x2b8)},_0xba0a9b={'CREATED':_0x2dc51b(0x209),'STARTING':_0x2dc51b(0x294),'STARTED':_0x2dc51b(0x2ab),'STOPPING':_0x2dc51b(0x15d),'STOPPED':'stopped'},_0x3f712f={'CREATING':_0x2dc51b(0x202),'READY':_0x2dc51b(0x185),'HALTED':_0x2dc51b(0x1b2),'STOPPED':_0x2dc51b(0x179),'RESETTING':_0x2dc51b(0x25b)},_0x7c07bb=Object['freeze']({'POKE':_0x2dc51b(0x166),'DRAIN':_0x2dc51b(0x26e),'TYPE_DROP':_0x2dc51b(0x1b6),'PROC':'bus:proc','ENV_RELEASE':'bus:env_release'});return okdbEnums={'BUS_EVENTS':_0x7c07bb,'CHANGE_ACTIONS':_0x21997e,'EVENTS':_0x1873bf,'INDEX_STATE':_0x214a07,'OKDB_STATE':_0xba0a9b,'VIEW_STATE':_0x3f712f},okdbEnums;}var okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x2bc371 extends Error{constructor(_0x15d766,_0x1ed331,_0x57197b={}){const _0x258f87=_0x1f6d;super(_0x15d766),this[_0x258f87(0x24e)]=_0x258f87(0x223),this['code']=_0x1ed331,this['details']=_0x57197b,_0x57197b['cause']&&(this[_0x258f87(0x27e)]=_0x57197b[_0x258f87(0x27e)]),Error[_0x258f87(0x28e)](this,this[_0x258f87(0x2ca)]);}}class _0x529d04 extends _0x2bc371{constructor(_0x23934f,_0x43ba3e,_0x2f8a9b,_0x86a20e){const _0x3b7a82=_0x1f6d;super(_0x3b7a82(0x2c0)+_0x23934f+'@'+_0x43ba3e+_0x3b7a82(0x21e)+_0x2f8a9b+',\x20got\x20'+_0x86a20e,_0x3b7a82(0x24d),{'type':_0x23934f,'key':_0x43ba3e,'expectedVersion':_0x2f8a9b,'actualVersion':_0x86a20e}),this[_0x3b7a82(0x24e)]=_0x3b7a82(0x1eb);}}class _0x4aadb0 extends _0x2bc371{constructor(_0x53a264,_0x1cfe03){const _0x49a9ae=_0x1f6d;super(_0x53a264+'@'+_0x1cfe03+_0x49a9ae(0x17b),_0x49a9ae(0x1a1),{'type':_0x53a264,'key':_0x1cfe03}),this[_0x49a9ae(0x24e)]=_0x49a9ae(0x220);}}class _0x430b60 extends _0x2bc371{constructor(_0x4e8dbf,_0x4b5787){const _0x31d50b=_0x1f6d;super(_0x4e8dbf+'@'+_0x4b5787+_0x31d50b(0x259),_0x31d50b(0x20f),{'type':_0x4e8dbf,'key':_0x4b5787}),this['name']=_0x31d50b(0x203);}}class _0x311479 extends _0x2bc371{constructor(_0x3a8d19,_0x20c3e8){const _0x3fc4ea=_0x1f6d,_0x2efe62=typeof _0x20c3e8;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x3a8d19+'\x27:\x20'+_0x2efe62+_0x3fc4ea(0x2a0)+_0x20c3e8,_0x3fc4ea(0x263),{'index':_0x3a8d19,'key':_0x20c3e8,'keyType':_0x2efe62}),this['name']='OKDBInvalidIndexKeyError';}}class _0x5074c9 extends _0x2bc371{constructor(_0x35219f){const _0x436946=_0x1f6d,_0xa92e13=typeof _0x35219f;super(_0x436946(0x213)+_0xa92e13+_0x436946(0x242)+_0x35219f,_0x436946(0x1d9),{'key':_0x35219f,'keyType':_0xa92e13}),this[_0x436946(0x24e)]='OKDBInvalidPrimaryKeyError';}}class _0x2038aa extends _0x2bc371{constructor(_0x38f2f1){const _0x76de0e=_0x1f6d;super('Type\x20\x27'+_0x38f2f1+_0x76de0e(0x155),_0x76de0e(0x229),{'type':_0x38f2f1}),this[_0x76de0e(0x24e)]=_0x76de0e(0x1d8);}}class _0x5e507b extends _0x2bc371{constructor(_0x1287af){const _0x46cf46=_0x1f6d;super(_0x46cf46(0x226)+_0x1287af+'\x27\x20already\x20registered',_0x46cf46(0x160),{'type':_0x1287af}),this[_0x46cf46(0x24e)]='OKDBTypeAlreadyRegisteredError';}}class _0x5a0196 extends _0x2bc371{constructor(_0x428940,_0x13ba72){const _0x480f9b=_0x1f6d;super('Index\x20\x27'+_0x13ba72+_0x480f9b(0x181)+_0x428940+_0x480f9b(0x155),'INDEX_NOT_REGISTERED',{'type':_0x428940,'index':_0x13ba72}),this[_0x480f9b(0x24e)]='OKDBIndexNotRegisteredError';}}class _0x4b6d7b extends _0x2bc371{constructor(_0x10fa43,_0x55ab10){const _0x104d05=_0x1f6d;super('Index\x20\x27'+_0x55ab10+_0x104d05(0x181)+_0x10fa43+_0x104d05(0x20c),_0x104d05(0x1c0),{'type':_0x10fa43,'index':_0x55ab10}),this[_0x104d05(0x24e)]=_0x104d05(0x183);}}class _0x16bc73 extends _0x2bc371{constructor(_0xb32157,_0xdf0c21={}){const _0x701564=_0x1f6d;super(_0xb32157,_0x701564(0x177),_0xdf0c21),this['name']=_0x701564(0x2a2);}}class _0x24dbd8 extends _0x2bc371{constructor(_0x276ef9,_0x276365,_0x30faea,_0x3a780f,_0x4b1b3e){const _0x27b302=_0x1f6d;super(_0x27b302(0x28d)+_0x276ef9+'@'+_0x276365+_0x27b302(0x21f)+_0x30faea+']\x20already\x20maps\x20to\x20\x27'+_0x3a780f+_0x27b302(0x247)+_0x4b1b3e+'\x27',_0x27b302(0x1c6),{'type':_0x276ef9,'index':_0x276365,'indexKey':_0x30faea,'existingKey':_0x3a780f,'conflictingKey':_0x4b1b3e}),this[_0x27b302(0x24e)]=_0x27b302(0x20a);}}class _0x298c42 extends _0x2bc371{constructor(_0x526d40,_0x29742d,_0x38371f){const _0x42aad0=_0x1f6d;super('Schema\x20validation\x20failed\x20for\x20'+_0x526d40+'@'+_0x29742d,_0x42aad0(0x2c7),{'type':_0x526d40,'key':_0x29742d,'errors':_0x38371f}),this[_0x42aad0(0x24e)]=_0x42aad0(0x289),this['type']=_0x526d40,this['key']=_0x29742d,this['errors']=_0x38371f;}}class _0x5e0427 extends _0x2bc371{constructor(_0x1f6979,_0x4159a8){const _0x3c2af0=_0x1f6d;super(_0x3c2af0(0x285)+_0x1f6979+':\x20'+_0x4159a8[_0x3c2af0(0x1c2)]+_0x3c2af0(0x225),_0x3c2af0(0x1c4),{'type':_0x1f6979,'failures':_0x4159a8}),this[_0x3c2af0(0x24e)]=_0x3c2af0(0x261),this[_0x3c2af0(0x159)]=_0x1f6979,this[_0x3c2af0(0x157)]=_0x4159a8;}}class _0x5ab002 extends _0x2bc371{constructor(_0x1ec625,_0x10cd93,_0x2b23cf,_0x5a5f8d,_0x37c11e){const _0x27a5cc=_0x1f6d;super(_0x27a5cc(0x291)+_0x1ec625+'@'+_0x10cd93+'.'+_0x2b23cf+'\x20references\x20'+_0x5a5f8d+'@'+_0x37c11e+_0x27a5cc(0x1cd),'FOREIGN_KEY_VIOLATION',{'sourceType':_0x1ec625,'sourceKey':_0x10cd93,'fieldPath':_0x2b23cf,'targetType':_0x5a5f8d,'targetKey':_0x37c11e}),this[_0x27a5cc(0x24e)]=_0x27a5cc(0x240),this[_0x27a5cc(0x20b)]=_0x1ec625,this[_0x27a5cc(0x2d6)]=_0x10cd93,this[_0x27a5cc(0x1a4)]=_0x2b23cf,this[_0x27a5cc(0x278)]=_0x5a5f8d,this[_0x27a5cc(0x283)]=_0x37c11e;}}class _0x4d6868 extends _0x2bc371{constructor(_0x312650,_0x53e039,_0x31ce64){const _0x29e7c7=_0x1f6d;super(_0x29e7c7(0x2ba)+_0x312650+'@'+_0x53e039+':\x20'+_0x31ce64[_0x29e7c7(0x1c2)]+_0x29e7c7(0x2a8),_0x29e7c7(0x2a9),{'targetType':_0x312650,'targetKey':_0x53e039,'references':_0x31ce64}),this[_0x29e7c7(0x24e)]=_0x29e7c7(0x1f7),this[_0x29e7c7(0x278)]=_0x312650,this['targetKey']=_0x53e039,this[_0x29e7c7(0x17e)]=_0x31ce64;}}class _0x91733e extends _0x2bc371{constructor(_0x3f4023,_0x4a3b41,_0x6e757a){const _0x217989=_0x1f6d;super(_0x217989(0x29c)+_0x4a3b41+_0x217989(0x1ec)+_0x3f4023+_0x217989(0x1b3)+_0x6e757a[_0x217989(0x276)](_0x5604ab=>_0x5604ab[_0x217989(0x254)]+':'+_0x5604ab[_0x217989(0x24e)])['join'](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x3f4023,'index':_0x4a3b41,'usedBy':_0x6e757a}),this['name']=_0x217989(0x241);}}return okdbError={'OKDBError':_0x2bc371,'OKDBVersionMismatchError':_0x529d04,'OKDBNotFoundError':_0x4aadb0,'OKDBAlreadyExistsError':_0x430b60,'OKDBInvalidIndexKeyError':_0x311479,'OKDBInvalidPrimaryKeyError':_0x5074c9,'OKDBTypeNotRegisteredError':_0x2038aa,'OKDBTypeAlreadyRegisteredError':_0x5e507b,'OKDBIndexNotRegisteredError':_0x5a0196,'OKDBIndexAlreadyRegisteredError':_0x4b6d7b,'OKDBInvalidValueError':_0x16bc73,'OKDBUniqueConstraintError':_0x24dbd8,'OKDBSchemaValidationError':_0x298c42,'OKDBSchemaCollectionError':_0x5e0427,'OKDBForeignKeyError':_0x5ab002,'OKDBForeignKeyDeleteError':_0x4d6868,'OKDBIndexHasConsumersError':_0x91733e},okdbError;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x53dda5=_0x17c6d3;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x2f6ea8=require$$0$1,{OKDBError:_0x427f36}=requireOkdbError(),_0x1136ae={'value':null,'done':!![]};class _0x5d1851{constructor(_0x3d96be){const _0x2de17b=_0x1f6d;this[_0x2de17b(0x1e1)]=_0x3d96be;}get[_0x53dda5(0x23f)](){return _0x1136ae;}[Symbol[_0x53dda5(0x274)]](){return this['_makeIterator']();}[_0x53dda5(0x276)](_0x91cab){const _0x62bc7d=this;return new _0x5d1851(()=>{const _0x3c530d=_0x1f6d,_0x1db63c=_0x62bc7d[Symbol[_0x3c530d(0x274)]]();return{'next'(){const _0x3e5095=_0x3c530d;for(;;){const _0x1d97ca=_0x1db63c[_0x3e5095(0x158)]();if(_0x1d97ca['done'])return{'done':!![],'value':undefined};const _0x442621=_0x91cab(_0x1d97ca['value']);if(_0x442621===_0x2f6ea8[_0x3e5095(0x1fb)])continue;if(_0x442621===_0x1136ae)return _0x1db63c[_0x3e5095(0x1ba)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x442621};}},'return'(){const _0x1bfd6b=_0x3c530d;return _0x1db63c[_0x1bfd6b(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3c530d(0x274)]](){return this;}};});}['filter'](_0x186533){const _0x3f1937=_0x53dda5;return this[_0x3f1937(0x276)](_0x4ebe4f=>_0x186533(_0x4ebe4f)?_0x4ebe4f:_0x2f6ea8['SKIP']);}[_0x53dda5(0x243)](_0x40192d){for(const _0xa4778e of this)_0x40192d(_0xa4778e);}[_0x53dda5(0x2d1)](_0x4f085b=0x0,_0x5120aa=Infinity){const _0x37eb2f=this;return new _0x5d1851(()=>{const _0x568c46=_0x1f6d,_0x5c5b0e=_0x37eb2f[Symbol[_0x568c46(0x274)]]();let _0x21c442=0x0;return{'next'(){const _0x535bde=_0x568c46;for(;;){const _0x5c106a=_0x5c5b0e[_0x535bde(0x158)]();if(_0x5c106a[_0x535bde(0x2c8)])return{'done':!![],'value':undefined};const _0x5f21d6=_0x21c442++;if(_0x5f21d6<_0x4f085b)continue;if(_0x5f21d6>=_0x5120aa)return _0x5c5b0e['return']?.(),{'done':!![],'value':undefined};return _0x5c106a;}},'return'(){const _0x4c5b44=_0x568c46;return _0x5c5b0e[_0x4c5b44(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x568c46(0x274)]](){return this;}};});}['at'](_0x43396c){let _0x3853d9=0x0;for(const _0x150cca of this)if(_0x3853d9++===_0x43396c)return _0x150cca;return undefined;}['flatMap'](_0x4cfc75){const _0x3c5ff4=this;return new _0x5d1851(()=>{const _0x4772e3=_0x1f6d,_0x5581ac=_0x3c5ff4[Symbol[_0x4772e3(0x274)]]();let _0x4f4a64=[];return{'next'(){const _0x17a8e0=_0x4772e3;for(;;){if(_0x4f4a64[_0x17a8e0(0x1c2)])return{'done':![],'value':_0x4f4a64[_0x17a8e0(0x206)]()};const _0x572fb2=_0x5581ac[_0x17a8e0(0x158)]();if(_0x572fb2[_0x17a8e0(0x2c8)])return{'done':!![],'value':undefined};const _0x5ecfba=_0x4cfc75(_0x572fb2['value']);if(Array[_0x17a8e0(0x266)](_0x5ecfba))_0x4f4a64=_0x4f4a64[_0x17a8e0(0x16c)](_0x5ecfba);else{if(_0x5ecfba!=null&&(_0x5ecfba instanceof _0x5d1851||typeof _0x5ecfba[Symbol['iterator']]===_0x17a8e0(0x1af)&&_0x17a8e0(0x262)in _0x5ecfba))_0x4f4a64=_0x4f4a64[_0x17a8e0(0x16c)](Array[_0x17a8e0(0x2d2)](_0x5ecfba));else{if(_0x5ecfba!==_0x2f6ea8[_0x17a8e0(0x1fb)])return{'done':![],'value':_0x5ecfba};}}}},'return'(){const _0x5cbc56=_0x4772e3;return _0x5581ac[_0x5cbc56(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x4772e3(0x274)]](){return this;}};});}[_0x53dda5(0x16c)](_0x1d903a){const _0x15c4e3=this;return new _0x5d1851(()=>{const _0xd84c7=_0x1f6d;let _0x4eb66d=_0x15c4e3[Symbol[_0xd84c7(0x274)]](),_0x4c5200=![];return{'next'(){const _0x2c7b15=_0xd84c7;for(;;){const _0x22589a=_0x4eb66d[_0x2c7b15(0x158)]();if(!_0x22589a[_0x2c7b15(0x2c8)])return _0x22589a;if(_0x4c5200)return{'done':!![],'value':undefined};_0x4c5200=!![],_0x4eb66d=_0x1d903a[Symbol[_0x2c7b15(0x274)]]();}},'return'(){const _0x27b915=_0xd84c7;return _0x4eb66d[_0x27b915(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xd84c7(0x274)]](){return this;}};});}[_0x53dda5(0x178)](_0x350ea6){const _0x433b15=this;return new _0x5d1851(()=>{const _0x5278e7=_0x1f6d,_0x473d7b=_0x433b15[Symbol[_0x5278e7(0x274)]]();return{'next'(){const _0x461dcc=_0x5278e7;for(;;){try{return _0x473d7b[_0x461dcc(0x158)]();}catch(_0x3387c9){const _0x7ab3ae=_0x350ea6(_0x3387c9);if(_0x7ab3ae===_0x2f6ea8['SKIP']||_0x7ab3ae===undefined)continue;return{'done':![],'value':_0x7ab3ae};}}},'return'(){const _0x4332ae=_0x5278e7;return _0x473d7b[_0x4332ae(0x1ba)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['toJSON'](){const _0x244265=_0x53dda5;return Array[_0x244265(0x2d2)](this);}get[_0x53dda5(0x262)](){return Array['from'](this);}}const _0x43f9a9={'total':0x0,'byLabel':{},'last':null};function _0x4b5f63(_0x271777){const _0xf28964=_0x53dda5;_0x43f9a9['total']++;if(_0x271777)_0x43f9a9[_0xf28964(0x190)][_0x271777]=(_0x43f9a9[_0xf28964(0x190)][_0x271777]??0x0)+0x1;_0x43f9a9['last']={'label':_0x271777??null,'at':Date['now']()};}function _0x4b2baf(){const _0x523732=_0x53dda5;return{'total':_0x43f9a9[_0x523732(0x23b)],'byLabel':{..._0x43f9a9[_0x523732(0x190)]},'last':_0x43f9a9[_0x523732(0x15e)]};}function _0x1c4f00(_0x1254f4,_0x55340b={}){const {getTxnId:_0x15322b,resume:_0x4459f1,label:_0x160cd0,baseline:_0x11f20a}=_0x55340b;return new _0x5d1851(()=>{const _0x39bf9c=_0x1f6d;let _0x457f24=null,_0x5438be=![],_0x35611e=![],_0x69212=![],_0x368726,_0x199fee=0x0,_0xb7d1af;return{'next'(){const _0x55a800=_0x1f6d;if(_0x69212)return{'done':!![],'value':undefined};if(_0x35611e){let _0x5bd057=![];if(_0x4459f1&&_0x15322b)try{_0x5bd057=_0x15322b()===_0xb7d1af;}catch{}if(!_0x5bd057){_0x69212=!![],_0x4b5f63(_0x160cd0);throw new _0x427f36(_0x4459f1?_0x55a800(0x1d5)+_0x55a800(0x187)+'before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.':_0x55a800(0x22a)+_0x55a800(0x16e)+_0x55a800(0x1f0),_0x55a800(0x174));}_0x457f24=_0x4459f1(_0x368726,_0x199fee)[Symbol[_0x55a800(0x274)]](),_0x35611e=![];}if(!_0x457f24){if(_0x11f20a!==undefined)_0xb7d1af=_0x11f20a;else try{_0xb7d1af=_0x15322b?_0x15322b():undefined;}catch{_0xb7d1af=undefined;}try{_0x457f24=_0x1254f4()[Symbol[_0x55a800(0x274)]]();}catch(_0x224d90){_0x69212=!![];throw _0x224d90;}}!_0x5438be&&(_0x5438be=!![],queueMicrotask(()=>{const _0x50663c=_0x55a800;_0x5438be=![];if(_0x69212||_0x35611e)return;try{_0x457f24?.[_0x50663c(0x1ba)]?.();}catch{}_0x457f24=null,_0x35611e=!![];}));const _0x59b516=_0x457f24[_0x55a800(0x158)]();if(_0x59b516[_0x55a800(0x2c8)])return _0x69212=!![],{'done':!![],'value':undefined};return _0x368726=_0x59b516[_0x55a800(0x1b4)],_0x199fee++,_0x59b516;},'return'(){const _0x168d8b=_0x1f6d;_0x69212=!![];try{_0x457f24?.[_0x168d8b(0x1ba)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x39bf9c(0x274)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x1c4f00,'OKDBGuardedRange':_0x5d1851,'recordGuardTrip':_0x4b5f63,'getGuardTripStats':_0x4b2baf},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function _0x1f6d(_0x42efcd,_0x542672){_0x42efcd=_0x42efcd-0x154;const _0x1cb3d8=_0x1cb3();let _0x1f6dec=_0x1cb3d8[_0x42efcd];return _0x1f6dec;}function requireOkdbLoopMonitor(){const _0x2a63a1=_0x17c6d3;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x59c4bd,performance:_0x384ad5}=require$$0$2,_0x156ec4=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x2a63a1(0x2a1),_0x2c8f66=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x32df89=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2f4da1=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5ec547{constructor(){const _0x16068b=_0x2a63a1;this[_0x16068b(0x1f3)]=_0x156ec4,this[_0x16068b(0x1b8)]=new Map(),this['_h']=null,this[_0x16068b(0x27a)]=null,this[_0x16068b(0x23d)]=![],this[_0x16068b(0x168)]=(_0x3a6566,_0x257685)=>process['stderr']['write'](_0x3a6566+(_0x257685?'\x20'+JSON[_0x16068b(0x196)](_0x257685):'')+'\x0a');}[_0x2a63a1(0x215)](){return _0x384ad5['now']();}[_0x2a63a1(0x222)](_0x59ca26){const _0x1925ad=_0x2a63a1;if(typeof _0x59ca26==='function')this[_0x1925ad(0x168)]=_0x59ca26;}['note'](_0x5a90fe,_0x120b15,_0x4b5501){const _0x5dd3ee=_0x2a63a1;if(!this[_0x5dd3ee(0x1f3)])return;let _0x5b3113=this[_0x5dd3ee(0x1b8)][_0x5dd3ee(0x29d)](_0x5a90fe);!_0x5b3113&&(_0x5b3113={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x5dd3ee(0x1b8)]['set'](_0x5a90fe,_0x5b3113)),_0x5b3113['ms']+=_0x120b15,_0x5b3113['count']+=0x1,_0x120b15>_0x5b3113[_0x5dd3ee(0x1fa)]&&(_0x5b3113[_0x5dd3ee(0x1fa)]=_0x120b15,_0x5b3113[_0x5dd3ee(0x28b)]=_0x4b5501||'');}['start'](_0x8ab60e){const _0x61dca9=_0x2a63a1;if(!this[_0x61dca9(0x1f3)]||this[_0x61dca9(0x23d)])return;this[_0x61dca9(0x23d)]=!![];if(_0x8ab60e)this[_0x61dca9(0x168)]=_0x8ab60e;this['_h']=_0x59c4bd({'resolution':0xa}),this['_h'][_0x61dca9(0x20d)](),this[_0x61dca9(0x27a)]=setInterval(()=>this[_0x61dca9(0x2cb)](),_0x2c8f66);if(this[_0x61dca9(0x27a)][_0x61dca9(0x239)])this[_0x61dca9(0x27a)][_0x61dca9(0x239)]();}['onWindow'](_0x1cdb83){const _0x59a81f=_0x2a63a1;if(!this[_0x59a81f(0x1bf)])this[_0x59a81f(0x1bf)]=new Set();this[_0x59a81f(0x1bf)]['add'](_0x1cdb83);if(!this[_0x59a81f(0x23d)])this['_startAdmission']();}['offWindow'](_0x2e17c5){const _0x33bf69=_0x2a63a1;this[_0x33bf69(0x1bf)]?.[_0x33bf69(0x290)](_0x2e17c5);}[_0x2a63a1(0x19d)](){const _0x5ba22d=_0x2a63a1;if(this[_0x5ba22d(0x2cf)])return;this[_0x5ba22d(0x2cf)]=!![];!this['_h']&&(this['_h']=_0x59c4bd({'resolution':0xa}),this['_h'][_0x5ba22d(0x20d)]());const _0x3838f1=_0x2c8f66;this[_0x5ba22d(0x256)]=setInterval(()=>{const _0x22f41d=_0x5ba22d,_0x55f55a=this['_h'];if(!_0x55f55a)return;const _0x1d7576=_0x55f55a['percentile'](0x63)/0xf4240,_0x5a3ff6=_0x55f55a[_0x22f41d(0x286)]/0xf4240,_0x58fcb1=_0x55f55a[_0x22f41d(0x156)]/0xf4240;_0x55f55a[_0x22f41d(0x18a)]();if(this['_windowCbs'])for(const _0x2ce4f2 of this[_0x22f41d(0x1bf)]){try{_0x2ce4f2({'p99Ms':_0x1d7576,'maxMs':_0x5a3ff6,'meanMs':_0x58fcb1,'reportMs':_0x3838f1});}catch{}}},_0x3838f1);if(this[_0x5ba22d(0x256)][_0x5ba22d(0x239)])this[_0x5ba22d(0x256)][_0x5ba22d(0x239)]();}['_report'](){const _0x228d46=_0x2a63a1,_0x17036c=this['_h'],_0x1cc41d=_0x17036c['max']/0xf4240,_0x282168=_0x17036c[_0x228d46(0x1f6)](0x63)/0xf4240,_0x3fc53a=_0x17036c[_0x228d46(0x156)]/0xf4240;_0x17036c[_0x228d46(0x18a)]();const _0x41e889=[...this[_0x228d46(0x1b8)]['entries']()][_0x228d46(0x276)](([_0x4d6ea0,_0xb53435])=>({'label':_0x4d6ea0,..._0xb53435}))[_0x228d46(0x1c3)]((_0x51a861,_0x46f9ac)=>_0x46f9ac['ms']-_0x51a861['ms'])['slice'](0x0,0x8);this['_buckets']['clear']();const _0x1dd33e=_0x41e889[_0x228d46(0x1e9)]((_0x472c20,_0x41c07a)=>_0x472c20+_0x41c07a['ms'],0x0),_0x5c6b1d=_0x41e889[_0x228d46(0x276)](_0x54b814=>_0x54b814[_0x228d46(0x297)]+'='+_0x54b814['ms'][_0x228d46(0x1a3)](0x0)+'ms/'+_0x54b814[_0x228d46(0x2bc)]+(_0x54b814[_0x228d46(0x1fa)]>0x5?'(worst\x20'+_0x54b814[_0x228d46(0x1fa)][_0x228d46(0x1a3)](0x0)+'ms'+(_0x54b814[_0x228d46(0x28b)]?'\x20'+_0x54b814[_0x228d46(0x28b)]:'')+')':''));(_0x32df89||_0x1cc41d>=_0x2f4da1)&&this[_0x228d46(0x168)]('loop-lag\x20'+_0x2c8f66+_0x228d46(0x29e)+_0x1cc41d['toFixed'](0x0)+'ms\x20p99='+_0x282168['toFixed'](0x0)+_0x228d46(0x2a6)+_0x3fc53a[_0x228d46(0x1a3)](0x0)+_0x228d46(0x1c7)+_0x1dd33e['toFixed'](0x0)+'ms'+(_0x5c6b1d[_0x228d46(0x1c2)]?'\x20│\x20'+_0x5c6b1d[_0x228d46(0x2aa)]('\x20\x20'):''),{'feature':_0x228d46(0x29a)});if(this[_0x228d46(0x1bf)])for(const _0x3e368d of this[_0x228d46(0x1bf)]){try{_0x3e368d({'p99Ms':_0x282168,'maxMs':_0x1cc41d,'meanMs':_0x3fc53a,'reportMs':_0x2c8f66});}catch{}}}['stop'](){const _0x2360a9=_0x2a63a1;if(this['_timer'])clearInterval(this[_0x2360a9(0x27a)]);if(this['_h'])this['_h'][_0x2360a9(0x24c)]();this[_0x2360a9(0x27a)]=null,this['_h']=null,this[_0x2360a9(0x23d)]=![];}}const _0x188fab=new _0x5ec547();if(_0x188fab[_0x2a63a1(0x1f3)])_0x188fab['start']();return okdbLoopMonitor={'LOOP':_0x188fab},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xee4ce1=_0x17c6d3;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x395d50=require$$0$3,{EVENTS:_0x3e8bf4}=requireOkdbEnums(),{OKDBError:_0x4f2c9e}=requireOkdbError(),{recordGuardTrip:_0x5595bd,guardSnapshotIterable:_0x13fdee}=requireOkdbGuardedRange(),{LOOP:_0x478d14}=requireOkdbLoopMonitor();function _0x4ee1d4(_0x499e24){return _0x499e24['map'](_0x14a399=>{const _0x52b83f=_0x1f6d,[_0x425786,_0x4726a6]=_0x14a399[_0x52b83f(0x2ac)]||[];return{'action':_0x14a399['action'],'type':_0x425786,'key':_0x4726a6};});}class _0x12edce{[_0xee4ce1(0x1d4)];[_0xee4ce1(0x169)]=[];[_0xee4ce1(0x1fc)]=[];['_undoHooks']=[];constructor(_0x3506d6,_0x47fe05={'useReadTransaction':![]}){const _0x5289d1=_0xee4ce1;this[_0x5289d1(0x1d4)]=_0x3506d6,this[_0x5289d1(0x2d0)]=_0x47fe05,this['id']=_0x395d50['v4']();if(this[_0x5289d1(0x2d0)][_0x5289d1(0x228)])try{this[_0x5289d1(0x1a9)]=this[_0x5289d1(0x1d4)]['db'][_0x5289d1(0x2a3)]()[_0x5289d1(0x1a6)];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x5289d1(0x22b)]=this[_0x5289d1(0x2d0)][_0x5289d1(0x228)]?this[_0x5289d1(0x1d4)]['db']['useReadTransaction']():null,this['_closed']=![],this[_0x5289d1(0x258)]=![],this['readTransaction']&&queueMicrotask(()=>{const _0xfcb898=_0x5289d1;this['readTransaction']&&(this[_0xfcb898(0x205)](),this[_0xfcb898(0x258)]=!![]);});}['onDo'](_0x57b7b8){const _0x2f513a=_0xee4ce1;this['_doHooks'][_0x2f513a(0x2e0)](_0x57b7b8);}[_0xee4ce1(0x1c1)](_0x427088){const _0x1ca189=_0xee4ce1;this[_0x1ca189(0x17d)][_0x1ca189(0x2e0)](_0x427088);}[_0xee4ce1(0x205)](){const _0x27619a=_0xee4ce1;if(!this[_0x27619a(0x22b)])return;try{this['readTransaction'][_0x27619a(0x2c8)]();}catch(_0x14d222){}this[_0x27619a(0x22b)]=null;}['_assertOpen'](){const _0x19b125=_0xee4ce1;if(this[_0x19b125(0x28a)])throw new _0x4f2c9e(_0x19b125(0x252),'TXN_CLOSED');if(this['_readViewExpired']){let _0x43426b=![];if(this[_0x19b125(0x2d0)][_0x19b125(0x228)]===_0x19b125(0x22e)&&this[_0x19b125(0x1a9)]!==undefined)try{_0x43426b=this[_0x19b125(0x1d4)]['db'][_0x19b125(0x2a3)]()[_0x19b125(0x1a6)]===this[_0x19b125(0x1a9)];}catch{}if(!_0x43426b){_0x5595bd((this['okdb']?.['name']??'?')+_0x19b125(0x25d));throw new _0x4f2c9e('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+'boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20'+_0x19b125(0x19a)+'no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.',_0x19b125(0x174));}}}[_0xee4ce1(0x29d)](_0x3c7bed,_0x222bed){const _0x52824d=_0xee4ce1;return this[_0x52824d(0x165)](),this[_0x52824d(0x1d4)][_0x52824d(0x29d)](_0x3c7bed,_0x222bed,{'transaction':this[_0x52824d(0x22b)]});}[_0xee4ce1(0x2ce)](_0x50f331,_0x3f6186){const _0x3e1495=_0xee4ce1;return this[_0x3e1495(0x165)](),this['okdb']['getEntry'](_0x50f331,_0x3f6186,{'transaction':this[_0x3e1495(0x22b)]});}['getMany'](_0x51a90d,_0x3feeeb){const _0x23b9d2=_0xee4ce1;return this[_0x23b9d2(0x165)](),this[_0x23b9d2(0x1d4)][_0x23b9d2(0x1bc)](_0x51a90d,_0x3feeeb,{'transaction':this[_0x23b9d2(0x22b)]});}[_0xee4ce1(0x296)](_0x47b048){const _0xdcfbb6=_0xee4ce1;if(!this[_0xdcfbb6(0x2d0)][_0xdcfbb6(0x228)])return _0x47b048;if(_0x47b048&&typeof _0x47b048['then']==='function')return _0x47b048;if(Array[_0xdcfbb6(0x266)](_0x47b048))return _0x47b048;const _0x254d62=this,_0x2b7695=_0x254d62['options']['useReadTransaction']===_0xdcfbb6(0x22e),_0x24c856=()=>{const _0x4ab5e3=_0xdcfbb6;if(!_0x254d62['_readViewExpired'])return![];if(!_0x2b7695)return!![];if(_0x254d62['_txnIdAtSnapshot']===undefined)return!![];try{return _0x254d62[_0x4ab5e3(0x1d4)]['db'][_0x4ab5e3(0x2a3)]()[_0x4ab5e3(0x1a6)]!==_0x254d62[_0x4ab5e3(0x1a9)];}catch{return!![];}};return _0x13fdee(()=>{const _0xe078c4=_0xdcfbb6;if(_0x254d62['_closed'])throw new _0x4f2c9e(_0xe078c4(0x252),_0xe078c4(0x27f));if(_0x24c856()){_0x5595bd((_0x254d62[_0xe078c4(0x1d4)]?.[_0xe078c4(0x24e)]??'?')+_0xe078c4(0x2dc));throw new _0x4f2c9e('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0xe078c4(0x15f)+_0xe078c4(0x265),_0xe078c4(0x174));}return _0x47b048;},{'label':(_0x254d62['okdb']?.[_0xdcfbb6(0x24e)]??'?')+_0xdcfbb6(0x2dc),..._0x2b7695?{'baseline':_0x254d62[_0xdcfbb6(0x1a9)],'getTxnId':()=>_0x254d62[_0xdcfbb6(0x1d4)]['db']['getStats']()['lastTxnId'],'resume':(_0xdc4d41,_0x4d93da)=>_0x47b048['slice'](_0x4d93da)}:{}});}[_0xee4ce1(0x282)](_0x64e17f,_0x3e58bb={}){const _0x5deb76=_0xee4ce1;return this[_0x5deb76(0x165)](),this[_0x5deb76(0x296)](this[_0x5deb76(0x1d4)][_0x5deb76(0x282)](_0x64e17f,{'transaction':this['readTransaction'],..._0x3e58bb}));}[_0xee4ce1(0x2c2)](_0x126276,_0x376802={}){const _0x44e464=_0xee4ce1;return this['_assertOpen'](),this[_0x44e464(0x296)](this['okdb'][_0x44e464(0x2c2)](_0x126276,{'transaction':this[_0x44e464(0x22b)],..._0x376802}));}[_0xee4ce1(0x25e)](_0x136365,_0x1d545f={}){const _0x1d5f45=_0xee4ce1;return this['_assertOpen'](),this[_0x1d5f45(0x296)](this[_0x1d5f45(0x1d4)][_0x1d5f45(0x25e)](_0x136365,{'transaction':this['readTransaction'],..._0x1d545f}));}[_0xee4ce1(0x16a)](_0x3512c9,_0x2cebae,_0x4a7fc0={}){const _0x4814e5=_0xee4ce1;return this['_assertOpen'](),this[_0x4814e5(0x296)](this[_0x4814e5(0x1d4)][_0x4814e5(0x16a)](_0x3512c9,_0x2cebae,{'transaction':this[_0x4814e5(0x22b)],..._0x4a7fc0}));}[_0xee4ce1(0x25f)](_0x144c74,_0x293e4e,_0x56b8b6={}){const _0x56c1a7=_0xee4ce1;return this[_0x56c1a7(0x165)](),this[_0x56c1a7(0x296)](this[_0x56c1a7(0x1d4)]['query'](_0x144c74,_0x293e4e,{'transaction':this[_0x56c1a7(0x22b)],..._0x56b8b6}));}[_0xee4ce1(0x189)](_0x1d8c69=null){const _0x36baad=_0xee4ce1;return this[_0x36baad(0x165)](),this[_0x36baad(0x1d4)][_0x36baad(0x189)](_0x1d8c69,{'transaction':this[_0x36baad(0x22b)]});}[_0xee4ce1(0x2b4)](_0x3bf606){const _0x5eff52=_0xee4ce1;return this[_0x5eff52(0x165)](),this['okdb'][_0x5eff52(0x2b4)](_0x3bf606,{'transaction':this['readTransaction']});}[_0xee4ce1(0x194)](_0x280ec4,_0x5a9eb9,_0x22162b,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x54ff85=_0xee4ce1;this[_0x54ff85(0x169)][_0x54ff85(0x2e0)]({'action':'put','args':[_0x280ec4,_0x5a9eb9,_0x22162b,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['update'](_0x1d9728,_0x793cce,_0x4f11a3,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x59b1f6=_0xee4ce1;this[_0x59b1f6(0x169)][_0x59b1f6(0x2e0)]({'action':_0x59b1f6(0x2b0),'args':[_0x1d9728,_0x793cce,_0x4f11a3,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xee4ce1(0x2da)](_0x4c35e6,_0x5a5b61,_0x58f32f,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x24f36c=_0xee4ce1;this[_0x24f36c(0x169)][_0x24f36c(0x2e0)]({'action':_0x24f36c(0x2da),'args':[_0x4c35e6,_0x5a5b61,_0x58f32f,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xee4ce1(0x279)](_0x5ca920,_0x4a35ce,_0x22425f,{version:version=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null,ttl:ttl=null}={}){const _0x345720=_0xee4ce1;this[_0x345720(0x169)]['push']({'action':_0x345720(0x279),'args':[_0x5ca920,_0x4a35ce,_0x22425f,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xee4ce1(0x272)](_0x5e229c,_0x324476,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xee4ce1(0x215)](),origin:origin=null}={}){const _0x549b87=_0xee4ce1;this[_0x549b87(0x169)][_0x549b87(0x2e0)]({'action':_0x549b87(0x272),'args':[_0x5e229c,_0x324476,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}['setTTL'](_0x420f85,_0xdd634d,_0x55ad17){const _0x27ba84=_0xee4ce1;this[_0x27ba84(0x169)][_0x27ba84(0x2e0)]({'action':_0x27ba84(0x1cc),'args':[_0x420f85,_0xdd634d,_0x55ad17]});}[_0xee4ce1(0x2b6)](_0x23c18e,_0x42296c){const _0x375c9a=_0xee4ce1;this[_0x375c9a(0x169)][_0x375c9a(0x2e0)]({'action':_0x375c9a(0x2b6),'args':[_0x23c18e,_0x42296c]});}[_0xee4ce1(0x170)](){const _0x2eb756=_0xee4ce1;if(this[_0x2eb756(0x28a)])return;for(const _0x556977 of this[_0x2eb756(0x17d)]){try{_0x556977();}catch{}}this['okdb'][_0x2eb756(0x250)][_0x2eb756(0x2d9)](_0x3e8bf4[_0x2eb756(0x2b2)],{'id':this['id']}),this[_0x2eb756(0x169)]=[],this[_0x2eb756(0x205)](),this[_0x2eb756(0x28a)]=!![];}async[_0xee4ce1(0x269)](){const _0x5cdda6=_0xee4ce1;if(this[_0x5cdda6(0x28a)])throw new Error(_0x5cdda6(0x252));const _0x2d5bd7={'id':this['id'],'timestamp':Date[_0x5cdda6(0x215)](),'actions':this[_0x5cdda6(0x169)]};this[_0x5cdda6(0x1d4)][_0x5cdda6(0x250)]['emit'](_0x3e8bf4['TXN_START'],_0x2d5bd7);try{const _0x1de049=_0x478d14[_0x5cdda6(0x1f3)]?_0x478d14[_0x5cdda6(0x215)]():0x0;await this['okdb']['_writer'][_0x5cdda6(0x1e2)](()=>{const _0x56785b=_0x5cdda6;for(const _0x2f5392 of this[_0x56785b(0x169)]){const _0x5d4389=this[_0x56785b(0x1d4)]['_'+_0x2f5392[_0x56785b(0x1d1)]];if(typeof _0x5d4389!=='function')throw new Error(_0x56785b(0x1e6)+_0x2f5392['action']);_0x5d4389[_0x56785b(0x19e)](this['okdb'],this,..._0x2f5392['args']);}}),_0x478d14[_0x5cdda6(0x1f3)]&&_0x478d14[_0x5cdda6(0x191)](_0x5cdda6(0x21c),_0x478d14['now']()-_0x1de049,(this[_0x5cdda6(0x1d4)]['name']??'?')+_0x5cdda6(0x253)+this[_0x5cdda6(0x169)][_0x5cdda6(0x1c2)]);}catch(_0x94a133){for(const _0x22a66b of this[_0x5cdda6(0x17d)]){try{_0x22a66b();}catch{}}this[_0x5cdda6(0x205)](),this[_0x5cdda6(0x28a)]=!![];if(_0x94a133 instanceof _0x4f2c9e)throw _0x94a133;const _0x306f5b={'cause':_0x94a133,'env':this[_0x5cdda6(0x1d4)]?.['name'],'envPath':this['okdb']?.['path'],'pid':process[_0x5cdda6(0x1f8)],'txnId':this['id'],'actionCount':this[_0x5cdda6(0x169)][_0x5cdda6(0x1c2)],'actions':_0x4ee1d4(this[_0x5cdda6(0x169)]),'nativeCode':_0x94a133?.[_0x5cdda6(0x1dc)],'nativeName':_0x94a133?.[_0x5cdda6(0x24e)]};try{this[_0x5cdda6(0x1d4)]?.['log']?.[_0x5cdda6(0x267)]?.(_0x5cdda6(0x1b1),{'env':_0x306f5b[_0x5cdda6(0x22d)],'envPath':_0x306f5b[_0x5cdda6(0x264)],'pid':_0x306f5b[_0x5cdda6(0x1f8)],'txnId':_0x306f5b[_0x5cdda6(0x211)],'actionCount':_0x306f5b['actionCount'],'actions':_0x306f5b[_0x5cdda6(0x169)],'nativeCode':_0x306f5b['nativeCode'],'error':_0x94a133?.['message'],'stack':_0x94a133?.[_0x5cdda6(0x1cb)]});}catch{}throw new _0x4f2c9e(_0x94a133?.[_0x5cdda6(0x1a5)]||_0x5cdda6(0x210),_0x5cdda6(0x233),_0x306f5b);}this[_0x5cdda6(0x1d4)][_0x5cdda6(0x250)][_0x5cdda6(0x2d9)](_0x3e8bf4[_0x5cdda6(0x1e3)],_0x2d5bd7);for(const _0x23c581 of this[_0x5cdda6(0x1fc)]){try{await _0x23c581();}catch{}}this[_0x5cdda6(0x169)]=[],this[_0x5cdda6(0x205)](),this[_0x5cdda6(0x28a)]=!![];}static[_0xee4ce1(0x2d5)](_0x77ca04){const _0x3bba7c=_0xee4ce1;return Object[_0x3bba7c(0x1ae)]({'id':_0x77ca04['id'],'put':_0x77ca04[_0x3bba7c(0x194)]['bind'](_0x77ca04),'update':_0x77ca04[_0x3bba7c(0x2b0)][_0x3bba7c(0x214)](_0x77ca04),'patch':_0x77ca04[_0x3bba7c(0x2da)][_0x3bba7c(0x214)](_0x77ca04),'create':_0x77ca04[_0x3bba7c(0x279)][_0x3bba7c(0x214)](_0x77ca04),'remove':_0x77ca04['remove']['bind'](_0x77ca04),'setTTL':_0x77ca04[_0x3bba7c(0x1cc)]['bind'](_0x77ca04),'clearTTL':_0x77ca04[_0x3bba7c(0x2b6)][_0x3bba7c(0x214)](_0x77ca04),'commit':_0x77ca04[_0x3bba7c(0x269)][_0x3bba7c(0x214)](_0x77ca04),'rollback':_0x77ca04[_0x3bba7c(0x170)][_0x3bba7c(0x214)](_0x77ca04),'get':_0x77ca04[_0x3bba7c(0x29d)]['bind'](_0x77ca04),'getEntry':_0x77ca04[_0x3bba7c(0x2ce)]['bind'](_0x77ca04),'getMany':_0x77ca04['getMany'][_0x3bba7c(0x214)](_0x77ca04),'getRange':_0x77ca04[_0x3bba7c(0x282)][_0x3bba7c(0x214)](_0x77ca04),'getValues':_0x77ca04['getValues']['bind'](_0x77ca04),'getKeys':_0x77ca04['getKeys'][_0x3bba7c(0x214)](_0x77ca04),'byIndex':_0x77ca04[_0x3bba7c(0x16a)][_0x3bba7c(0x214)](_0x77ca04),'query':_0x77ca04[_0x3bba7c(0x25f)][_0x3bba7c(0x214)](_0x77ca04),'getClock':_0x77ca04['getClock']['bind'](_0x77ca04),'getCount':_0x77ca04[_0x3bba7c(0x2b4)][_0x3bba7c(0x214)](_0x77ca04),'read':_0x77ca04,'raw':_0x77ca04});}static[_0xee4ce1(0x1d6)](_0x310ee0,_0x1d8881=[]){const _0x4211a3=_0xee4ce1;if(!Array[_0x4211a3(0x266)](_0x1d8881))throw new _0x4f2c9e(_0x4211a3(0x292),'TXN_INVALID_OPS');for(const _0x5f337c of _0x1d8881){if(Array['isArray'](_0x5f337c)){const [_0x38d840,..._0x5e967f]=_0x5f337c;if(typeof _0x310ee0[_0x38d840]!==_0x4211a3(0x1af))throw new _0x4f2c9e(_0x4211a3(0x1e6)+_0x38d840,_0x4211a3(0x18f),{'action':_0x38d840});_0x310ee0[_0x38d840](..._0x5e967f);continue;}if(!_0x5f337c||typeof _0x5f337c!==_0x4211a3(0x2af))throw new _0x4f2c9e(_0x4211a3(0x2dd),_0x4211a3(0x217));const {action:_0x3228ac}=_0x5f337c;if(typeof _0x3228ac!==_0x4211a3(0x2a5)||typeof _0x310ee0[_0x3228ac]!==_0x4211a3(0x1af))throw new _0x4f2c9e(_0x4211a3(0x1e6)+_0x3228ac,_0x4211a3(0x18f),{'action':_0x3228ac});switch(_0x3228ac){case _0x4211a3(0x194):case _0x4211a3(0x2b0):case _0x4211a3(0x279):_0x310ee0[_0x3228ac](_0x5f337c[_0x4211a3(0x159)],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x1b4)],{..._0x5f337c[_0x4211a3(0x2d0)],'ttl':_0x5f337c[_0x4211a3(0x287)]??_0x5f337c['options']?.[_0x4211a3(0x287)]??null});break;case'patch':_0x310ee0[_0x4211a3(0x2da)](_0x5f337c['type'],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x2da)],{..._0x5f337c[_0x4211a3(0x2d0)],'ttl':_0x5f337c[_0x4211a3(0x287)]??_0x5f337c[_0x4211a3(0x2d0)]?.[_0x4211a3(0x287)]??null});break;case _0x4211a3(0x272):_0x310ee0[_0x4211a3(0x272)](_0x5f337c[_0x4211a3(0x159)],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x2d0)]||{});break;case'setTTL':_0x310ee0[_0x4211a3(0x1cc)](_0x5f337c['type'],_0x5f337c[_0x4211a3(0x19f)],_0x5f337c[_0x4211a3(0x287)]);break;case _0x4211a3(0x2b6):_0x310ee0[_0x4211a3(0x2b6)](_0x5f337c[_0x4211a3(0x159)],_0x5f337c[_0x4211a3(0x19f)]);break;default:throw new _0x4f2c9e(_0x4211a3(0x288)+_0x3228ac,_0x4211a3(0x18f),{'action':_0x3228ac});}}}static async[_0xee4ce1(0x2d4)](_0x17d8bd,_0x240ca1,_0x1eda6c={}){const _0xa5f20e=_0xee4ce1,_0x18b786=new _0x12edce(_0x17d8bd,_0x1eda6c),_0x2d999b=_0x12edce[_0xa5f20e(0x2d5)](_0x18b786);try{typeof _0x240ca1===_0xa5f20e(0x1af)?await _0x240ca1(_0x2d999b):_0x12edce[_0xa5f20e(0x1d6)](_0x18b786,_0x240ca1||[]);const _0x327b00=_0x18b786['actions'][_0xa5f20e(0x1c2)];return await _0x18b786[_0xa5f20e(0x269)](),{'id':_0x18b786['id'],'actions':_0x327b00};}catch(_0x131f35){try{_0x18b786[_0xa5f20e(0x170)]();}catch(_0x3ef3d7){}throw _0x131f35;}}}return okdbTransaction=_0x12edce,okdbTransaction;}var okdbFunctionsFacades,hasRequiredOkdbFunctionsFacades;function requireOkdbFunctionsFacades(){if(hasRequiredOkdbFunctionsFacades)return okdbFunctionsFacades;hasRequiredOkdbFunctionsFacades=0x1;const _0x5ed3d2=requireOkdbTransaction();function _0x4e22fe(_0x2f6fd9){const _0x467c9e=_0x1f6d;return{'transaction':typeof _0x2f6fd9[_0x467c9e(0x1e2)]===_0x467c9e(0x1af)?_0x2f6fd9[_0x467c9e(0x1e2)][_0x467c9e(0x214)](_0x2f6fd9):_0x19d95e=>new _0x5ed3d2(_0x2f6fd9,_0x19d95e),'txn':typeof _0x2f6fd9['txn']===_0x467c9e(0x1af)?_0x2f6fd9[_0x467c9e(0x1f9)][_0x467c9e(0x214)](_0x2f6fd9):(_0x210667,_0x1bf116)=>_0x5ed3d2['run'](_0x2f6fd9,_0x210667,_0x1bf116)};}function _0x5ac306(_0x35f935){const _0x43b90c=_0x1f6d;return{'name':_0x35f935['name'],..._0x4e22fe(_0x35f935),'put':_0x35f935['put'][_0x43b90c(0x214)](_0x35f935),'update':_0x35f935['update']['bind'](_0x35f935),'patch':_0x35f935[_0x43b90c(0x2da)][_0x43b90c(0x214)](_0x35f935),'create':_0x35f935[_0x43b90c(0x279)][_0x43b90c(0x214)](_0x35f935),'remove':_0x35f935['remove'][_0x43b90c(0x214)](_0x35f935),'get':_0x35f935['get'][_0x43b90c(0x214)](_0x35f935),'getMany':_0x35f935[_0x43b90c(0x1bc)][_0x43b90c(0x214)](_0x35f935),'getEntry':_0x35f935[_0x43b90c(0x2ce)][_0x43b90c(0x214)](_0x35f935),'getRange':_0x35f935[_0x43b90c(0x282)][_0x43b90c(0x214)](_0x35f935),'getValues':_0x35f935[_0x43b90c(0x2c2)][_0x43b90c(0x214)](_0x35f935),'getKeys':_0x35f935[_0x43b90c(0x25e)]['bind'](_0x35f935),'getCount':_0x35f935['getCount'][_0x43b90c(0x214)](_0x35f935),'getByPrefix':_0x35f935[_0x43b90c(0x18c)][_0x43b90c(0x214)](_0x35f935),'getIndex':_0x35f935[_0x43b90c(0x2de)][_0x43b90c(0x214)](_0x35f935),'byIndex':_0x35f935['byIndex'][_0x43b90c(0x214)](_0x35f935),'query':_0x35f935[_0x43b90c(0x25f)]['bind'](_0x35f935),'geoQuery':_0x35f935[_0x43b90c(0x180)]['bind'](_0x35f935),'ftsQuery':_0x35f935[_0x43b90c(0x281)][_0x43b90c(0x214)](_0x35f935),'setTTL':_0x35f935[_0x43b90c(0x1cc)][_0x43b90c(0x214)](_0x35f935),'getTTL':_0x35f935['getTTL'][_0x43b90c(0x214)](_0x35f935),'clearTTL':_0x35f935[_0x43b90c(0x2b6)][_0x43b90c(0x214)](_0x35f935),'sweepExpiredTTL':_0x35f935[_0x43b90c(0x1ca)][_0x43b90c(0x214)](_0x35f935),'listTTL':_0x35f935[_0x43b90c(0x2c4)]['bind'](_0x35f935),'ttlStats':_0x35f935[_0x43b90c(0x23c)]['bind'](_0x35f935),'setDefaultTTL':_0x35f935['setDefaultTTL']['bind'](_0x35f935),'getDefaultTTL':_0x35f935[_0x43b90c(0x1f2)][_0x43b90c(0x214)](_0x35f935),'clearDefaultTTL':_0x35f935[_0x43b90c(0x232)]['bind'](_0x35f935),'registerType':_0x35f935[_0x43b90c(0x271)][_0x43b90c(0x214)](_0x35f935),'ensureType':_0x35f935[_0x43b90c(0x1b9)][_0x43b90c(0x214)](_0x35f935),'hasType':_0x35f935[_0x43b90c(0x280)][_0x43b90c(0x214)](_0x35f935),'dropType':_0x35f935[_0x43b90c(0x1bb)][_0x43b90c(0x214)](_0x35f935),'registerIndex':_0x35f935[_0x43b90c(0x25c)]['bind'](_0x35f935),'hasIndex':_0x35f935[_0x43b90c(0x237)][_0x43b90c(0x214)](_0x35f935),'dropIndex':_0x35f935['dropIndex'][_0x43b90c(0x214)](_0x35f935),'resetIndex':_0x35f935[_0x43b90c(0x234)]['bind'](_0x35f935),'indexReady':_0x35f935[_0x43b90c(0x1e0)][_0x43b90c(0x214)](_0x35f935),'getIndexStatus':_0x35f935[_0x43b90c(0x221)][_0x43b90c(0x214)](_0x35f935),'getClock':_0x35f935[_0x43b90c(0x189)][_0x43b90c(0x214)](_0x35f935),'getChanges':_0x35f935[_0x43b90c(0x1da)][_0x43b90c(0x214)](_0x35f935),'count':_0x35f935[_0x43b90c(0x2bc)][_0x43b90c(0x214)](_0x35f935),'range':_0x35f935['range'][_0x43b90c(0x214)](_0x35f935),'now':_0x35f935[_0x43b90c(0x215)][_0x43b90c(0x214)](_0x35f935)};}function _0x24f103(_0x356116){const _0x47665e=_0x1f6d;if(!_0x356116)return null;const _0x4c6908={};for(const _0x3d8220 of[_0x47665e(0x23a),'getJob',_0x47665e(0x1d7),_0x47665e(0x15b),_0x47665e(0x164),_0x47665e(0x24b),'getBucket',_0x47665e(0x2c3)]){if(typeof _0x356116[_0x3d8220]===_0x47665e(0x1af))_0x4c6908[_0x3d8220]=_0x356116[_0x3d8220][_0x47665e(0x214)](_0x356116);}return Object[_0x47665e(0x24f)](_0x4c6908)[_0x47665e(0x1c2)]?_0x4c6908:null;}function _0x2fe3f8(_0x3136b1){const _0x2b4c09=_0x1f6d;if(!_0x3136b1)return null;const _0x3bf696={};for(const _0x499ca6 of[_0x2b4c09(0x1d0),_0x2b4c09(0x1ef),'remove',_0x2b4c09(0x29d),'list',_0x2b4c09(0x19c)]){if(typeof _0x3136b1[_0x499ca6]===_0x2b4c09(0x1af))_0x3bf696[_0x499ca6]=_0x3136b1[_0x499ca6]['bind'](_0x3136b1);}return Object['keys'](_0x3bf696)['length']?_0x3bf696:null;}function _0x1a49e1(_0x4f0718){const _0x18a316=_0x1f6d;return{'env':_0x4f0718['env'][_0x18a316(0x214)](_0x4f0718),'createEnvironment':_0x4f0718['createEnvironment']['bind'](_0x4f0718),'removeEnvironment':_0x4f0718['removeEnvironment'][_0x18a316(0x214)](_0x4f0718),'info':_0x4f0718[_0x18a316(0x26b)],..._0x4e22fe(_0x4f0718),'put':_0x4f0718[_0x18a316(0x194)][_0x18a316(0x214)](_0x4f0718),'update':_0x4f0718[_0x18a316(0x2b0)][_0x18a316(0x214)](_0x4f0718),'patch':_0x4f0718[_0x18a316(0x2da)][_0x18a316(0x214)](_0x4f0718),'create':_0x4f0718[_0x18a316(0x279)][_0x18a316(0x214)](_0x4f0718),'remove':_0x4f0718[_0x18a316(0x272)][_0x18a316(0x214)](_0x4f0718),'get':_0x4f0718[_0x18a316(0x29d)][_0x18a316(0x214)](_0x4f0718),'getMany':_0x4f0718[_0x18a316(0x1bc)][_0x18a316(0x214)](_0x4f0718),'getEntry':_0x4f0718[_0x18a316(0x2ce)][_0x18a316(0x214)](_0x4f0718),'getRange':_0x4f0718['getRange'][_0x18a316(0x214)](_0x4f0718),'getValues':_0x4f0718[_0x18a316(0x2c2)][_0x18a316(0x214)](_0x4f0718),'getKeys':_0x4f0718['getKeys'][_0x18a316(0x214)](_0x4f0718),'getCount':_0x4f0718[_0x18a316(0x2b4)][_0x18a316(0x214)](_0x4f0718),'getByPrefix':_0x4f0718[_0x18a316(0x18c)][_0x18a316(0x214)](_0x4f0718),'getIndex':_0x4f0718['getIndex'][_0x18a316(0x214)](_0x4f0718),'byIndex':_0x4f0718[_0x18a316(0x16a)][_0x18a316(0x214)](_0x4f0718),'query':_0x4f0718[_0x18a316(0x25f)][_0x18a316(0x214)](_0x4f0718),'setTTL':_0x4f0718[_0x18a316(0x1cc)][_0x18a316(0x214)](_0x4f0718),'getTTL':_0x4f0718[_0x18a316(0x1ff)]['bind'](_0x4f0718),'clearTTL':_0x4f0718[_0x18a316(0x2b6)][_0x18a316(0x214)](_0x4f0718),'sweepExpiredTTL':_0x4f0718[_0x18a316(0x1ca)][_0x18a316(0x214)](_0x4f0718),'listTTL':_0x4f0718[_0x18a316(0x2c4)]['bind'](_0x4f0718),'ttlStats':_0x4f0718[_0x18a316(0x23c)][_0x18a316(0x214)](_0x4f0718),'setDefaultTTL':_0x4f0718[_0x18a316(0x1ed)][_0x18a316(0x214)](_0x4f0718),'getDefaultTTL':_0x4f0718[_0x18a316(0x1f2)][_0x18a316(0x214)](_0x4f0718),'clearDefaultTTL':_0x4f0718[_0x18a316(0x232)]['bind'](_0x4f0718),'ensureType':_0x4f0718[_0x18a316(0x1b9)]['bind'](_0x4f0718),'registerType':_0x4f0718[_0x18a316(0x271)][_0x18a316(0x214)](_0x4f0718),'hasType':_0x4f0718[_0x18a316(0x280)]['bind'](_0x4f0718),'dropType':_0x4f0718[_0x18a316(0x1bb)][_0x18a316(0x214)](_0x4f0718),'registerIndex':_0x4f0718[_0x18a316(0x25c)][_0x18a316(0x214)](_0x4f0718),'hasIndex':_0x4f0718[_0x18a316(0x237)][_0x18a316(0x214)](_0x4f0718),'dropIndex':_0x4f0718[_0x18a316(0x2cc)][_0x18a316(0x214)](_0x4f0718),'resetIndex':_0x4f0718[_0x18a316(0x234)][_0x18a316(0x214)](_0x4f0718),'indexReady':_0x4f0718['indexReady'][_0x18a316(0x214)](_0x4f0718),'getIndexStatus':_0x4f0718[_0x18a316(0x221)][_0x18a316(0x214)](_0x4f0718),'getClock':_0x4f0718[_0x18a316(0x189)][_0x18a316(0x214)](_0x4f0718),'getChanges':_0x4f0718['getChanges'][_0x18a316(0x214)](_0x4f0718),'queue':_0x4f0718[_0x18a316(0x255)],'files':_0x4f0718['files']};}return okdbFunctionsFacades={'createEnvFacade':_0x5ac306,'createQueueFacade':_0x24f103,'createFilesFacade':_0x2fe3f8,'createGlobalFacade':_0x1a49e1},okdbFunctionsFacades;}var okdbFunctionsDryrun,hasRequiredOkdbFunctionsDryrun;function requireOkdbFunctionsDryrun(){const _0x3e4e02=_0x17c6d3;if(hasRequiredOkdbFunctionsDryrun)return okdbFunctionsDryrun;hasRequiredOkdbFunctionsDryrun=0x1;const _0x2c70ba=new Set([_0x3e4e02(0x194),_0x3e4e02(0x2da),_0x3e4e02(0x279),_0x3e4e02(0x272),_0x3e4e02(0x2b0),_0x3e4e02(0x1cc),_0x3e4e02(0x2b6),_0x3e4e02(0x1ca),'setDefaultTTL',_0x3e4e02(0x232),_0x3e4e02(0x1bb),_0x3e4e02(0x2cc),_0x3e4e02(0x234)]),_0x441e46=new Set([_0x3e4e02(0x23a),_0x3e4e02(0x15b),_0x3e4e02(0x164),_0x3e4e02(0x24b)]),_0xe5e6f8=new Set([_0x3e4e02(0x1d0),_0x3e4e02(0x272)]);function _0x4c17ab(_0x479e54,_0x2ed99a){const _0x2e1e16=_0x3e4e02;if(_0x479e54===_0x2e1e16(0x22d)||_0x479e54==='global')return _0x2c70ba[_0x2e1e16(0x17f)](_0x2ed99a);if(_0x479e54===_0x2e1e16(0x255))return _0x441e46[_0x2e1e16(0x17f)](_0x2ed99a);if(_0x479e54===_0x2e1e16(0x227))return _0xe5e6f8[_0x2e1e16(0x17f)](_0x2ed99a);return![];}function _0x3b3140(_0x38a687,_0x53876d,_0x3d4023,_0xaa5e1b){if(!_0x38a687)return _0x38a687;return new Proxy(_0x38a687,{'get'(_0x335418,_0x49ef1c,_0x3c4dbc){const _0x1025c3=_0x1f6d,_0x4b0968=Reflect[_0x1025c3(0x29d)](_0x335418,_0x49ef1c,_0x3c4dbc);if(typeof _0x4b0968!==_0x1025c3(0x1af))return _0x4b0968;if(!_0x4c17ab(_0x53876d,_0x49ef1c))return _0x4b0968['bind'](_0x335418);return function(..._0x5c2e2f){const _0x51776f=_0x1025c3;return _0xaa5e1b[_0x51776f(0x2e0)]({'scope':_0x53876d,'method':_0x49ef1c,'envName':_0x3d4023,'args':_0x5c2e2f}),null;};}});}function _0x4f3641(_0x32efb4,_0x2a04d8,_0xc5566c,_0x764947){const _0x15b23a={};for(const _0x184385 of _0xc5566c){_0x15b23a[_0x184385]=(..._0x193653)=>{const _0x29303a=_0x1f6d;return _0x4c17ab(_0x32efb4,_0x184385)&&_0x764947[_0x29303a(0x2e0)]({'scope':_0x32efb4,'method':_0x184385,'envName':_0x2a04d8,'args':_0x193653}),null;};}return _0x15b23a;}return okdbFunctionsDryrun={'isWriteMethod':_0x4c17ab,'wrapForDryRun':_0x3b3140,'syntheticDryRunFacade':_0x4f3641,'ENV_WRITE_METHODS':_0x2c70ba,'QUEUE_WRITE_METHODS':_0x441e46,'FILES_WRITE_METHODS':_0xe5e6f8},okdbFunctionsDryrun;}var okdbFunctionsContext,hasRequiredOkdbFunctionsContext;function requireOkdbFunctionsContext(){const _0x43195a=_0x17c6d3;if(hasRequiredOkdbFunctionsContext)return okdbFunctionsContext;hasRequiredOkdbFunctionsContext=0x1;const {createEnvFacade:_0x49fc89,createQueueFacade:_0x5aee85,createFilesFacade:_0x136922,createGlobalFacade:_0x2bc10a}=requireOkdbFunctionsFacades(),{wrapForDryRun:_0x1468d3,syntheticDryRunFacade:_0x4dc6c3}=requireOkdbFunctionsDryrun(),_0x4834a1=['enqueue','getJob',_0x43195a(0x1d7),_0x43195a(0x15b),_0x43195a(0x164),'addBucket','getBucket',_0x43195a(0x2c3)],_0x30f4be=['upload','stream',_0x43195a(0x272),_0x43195a(0x29d),_0x43195a(0x1d7),'getByPath'];function _0x4e8b1f(_0x4b24f2,_0x4f6719){const _0x51f6fc=_0x43195a,_0xa22916=(_0x345bcd,_0x1a97fb,_0x4ad6dc)=>_0x4f6719({'type':'log','requestId':_0x4b24f2[_0x51f6fc(0x188)],'runId':_0x4b24f2[_0x51f6fc(0x257)],'entry':{'level':_0x345bcd,'msg':_0x1a97fb,'context':_0x4ad6dc,'ts':Date[_0x51f6fc(0x215)]()}}),_0x54a6c4=(_0x434df6,_0x571f32)=>_0xa22916(_0x51f6fc(0x26b),_0x434df6,_0x571f32);return _0x54a6c4[_0x51f6fc(0x26b)]=(_0x1db76f,_0x22ce7e)=>_0xa22916(_0x51f6fc(0x26b),_0x1db76f,_0x22ce7e),_0x54a6c4['warn']=(_0x2f8b1d,_0x498666)=>_0xa22916(_0x51f6fc(0x22f),_0x2f8b1d,_0x498666),_0x54a6c4[_0x51f6fc(0x267)]=(_0x3469c6,_0x54c63f)=>_0xa22916(_0x51f6fc(0x267),_0x3469c6,_0x54c63f),_0x54a6c4['debug']=(_0x29bc4e,_0x3f0945)=>_0xa22916(_0x51f6fc(0x1ad),_0x29bc4e,_0x3f0945),_0x54a6c4;}function _0xd3b951(_0x4d1abe,_0x468bf9,_0x53b7cc){const _0x4d64dc=_0x43195a;if(!_0x4d1abe)return null;return{'id':_0x4d1abe['id']??null,'type':_0x4d1abe[_0x4d64dc(0x159)]??null,'tries':_0x4d1abe[_0x4d64dc(0x1ea)]??null,'created':_0x4d1abe[_0x4d64dc(0x209)]??null,'tags':_0x4d1abe[_0x4d64dc(0x26a)]??null,'priority':_0x4d1abe[_0x4d64dc(0x18d)]??null,'bucket':_0x4d1abe[_0x4d64dc(0x2b7)]??null,'cron':_0x4d1abe[_0x4d64dc(0x2d7)]??null,'heartbeat'(){const _0x5a99a7=_0x4d64dc;_0x53b7cc({'type':_0x5a99a7(0x175),'requestId':_0x468bf9[_0x5a99a7(0x188)],'runId':_0x468bf9[_0x5a99a7(0x257)],'jobId':_0x4d1abe['id'],'claimId':_0x4d1abe[_0x5a99a7(0x1b5)]});},'markProgress'(_0x4b2cfa){const _0x5ab139=_0x4d64dc;_0x53b7cc({'type':_0x5ab139(0x26d),'requestId':_0x468bf9[_0x5ab139(0x188)],'runId':_0x468bf9[_0x5ab139(0x257)],'jobId':_0x4d1abe['id'],'claimId':_0x4d1abe['claimId'],'message':_0x4b2cfa});}};}function _0x232091(_0x44314b){const _0x4bdb21=_0x43195a;if(!_0x44314b)return null;return{'mode':_0x44314b[_0x4bdb21(0x219)]??null,'sourceType':_0x44314b[_0x4bdb21(0x20b)]??null,'sourceEnv':_0x44314b['sourceEnv']??null,'processor':_0x44314b[_0x4bdb21(0x2ae)]??null,'engineKey':_0x44314b['engineKey']??null,'cursorKey':_0x44314b['cursorKey']??null};}function _0x3ec945(_0xb6c9a3){const _0x2c5d37=_0x43195a;if(!_0xb6c9a3)return null;return{'mode':_0xb6c9a3[_0x2c5d37(0x219)]??null,'sourceType':_0xb6c9a3['sourceType']??null,'targetType':_0xb6c9a3['targetType']??null,'sourceEnv':_0xb6c9a3[_0x2c5d37(0x23e)]??null,'targetEnv':_0xb6c9a3['targetEnv']??null,'engineKey':_0xb6c9a3['engineKey']??null,'cursorKey':_0xb6c9a3['cursorKey']??null};}function _0x501a0c(_0x519fd5,_0x4f34d5,_0x51c5cd,_0xe9d920=null,_0x1055c2=null){const _0x58b535=_0x43195a,_0x3dc1ff={'runId':_0x4f34d5[_0x58b535(0x257)],'scope':_0x58b535(0x22d),'env':_0x4f34d5['envName']??null,'functionName':_0x4f34d5['functionName'],'trigger':_0x4f34d5[_0x58b535(0x26b)]?.[_0x58b535(0x251)]??'sdk','requestedAt':_0x4f34d5['info']?.[_0x58b535(0x2a4)]??Date[_0x58b535(0x215)]()},_0x1661b6=_0x4e8b1f(_0x4f34d5,_0x51c5cd),_0x54449f=AbortSignal[_0x58b535(0x245)](Math[_0x58b535(0x286)](0x1,_0x4f34d5[_0x58b535(0x2ad)]?.[_0x58b535(0x218)]??0x3e8)),_0x55c508=_0x1055c2?AbortSignal[_0x58b535(0x200)]([_0x54449f,_0x1055c2]):_0x54449f,_0x147d2d=_0x519fd5['env'](_0x4f34d5[_0x58b535(0x1e4)]),_0x48a0f5=_0xe9d920?_0x1468d3(_0x147d2d,_0x58b535(0x22d),_0x4f34d5[_0x58b535(0x1e4)],_0xe9d920):_0x147d2d,_0x13199a=_0xe9d920?_0x147d2d['queue']?_0x1468d3(_0x147d2d[_0x58b535(0x255)],'queue',_0x4f34d5['envName'],_0xe9d920):_0x4dc6c3('queue',_0x4f34d5[_0x58b535(0x1e4)],_0x4834a1,_0xe9d920):_0x147d2d[_0x58b535(0x255)],_0x237fc1=_0xe9d920?_0x147d2d[_0x58b535(0x227)]?_0x1468d3(_0x147d2d[_0x58b535(0x227)],_0x58b535(0x227),_0x4f34d5[_0x58b535(0x1e4)],_0xe9d920):_0x4dc6c3(_0x58b535(0x227),_0x4f34d5[_0x58b535(0x1e4)],_0x30f4be,_0xe9d920):_0x147d2d[_0x58b535(0x227)],_0x129519=_0x49fc89(_0x48a0f5),_0x123bdb=_0x5aee85(_0x13199a),_0x1acbb8=_0x136922(_0x237fc1);if(_0x123bdb)_0x129519[_0x58b535(0x255)]=_0x123bdb;if(_0x1acbb8)_0x129519[_0x58b535(0x227)]=_0x1acbb8;const _0x30a007={'payload':_0x4f34d5[_0x58b535(0x1bd)]??null,'info':_0x3dc1ff,'signal':_0x55c508,'log':_0x1661b6,'env':_0x129519},_0x3512ff=_0xd3b951(_0x4f34d5[_0x58b535(0x2d8)],_0x4f34d5,_0x51c5cd);if(_0x3512ff)_0x30a007['job']=_0x3512ff;const _0x3134d6=_0x232091(_0x4f34d5[_0x58b535(0x29f)]);if(_0x3134d6)_0x30a007['processor']=_0x3134d6;const _0x5d4b70=_0x3ec945(_0x4f34d5[_0x58b535(0x1aa)]);if(_0x5d4b70)_0x30a007[_0x58b535(0x172)]=_0x5d4b70;if(_0x4f34d5[_0x58b535(0x224)]){const _0xce8d4c=_0xe9d920?_0x1468d3(_0x519fd5,_0x58b535(0x275),null,_0xe9d920):_0x519fd5;_0x30a007[_0x58b535(0x1d4)]=_0x2bc10a(_0xce8d4c);}return _0x30a007;}return okdbFunctionsContext={'createExecutionContext':_0x501a0c,'createScriptLogger':_0x4e8b1f},okdbFunctionsContext;}var hasRequiredOkdbFunctionsSandboxWorker;function requireOkdbFunctionsSandboxWorker(){const _0x46ef02=_0x17c6d3;if(hasRequiredOkdbFunctionsSandboxWorker)return okdbFunctionsSandboxWorker$1;hasRequiredOkdbFunctionsSandboxWorker=0x1;const {parentPort:_0x53b3ba,workerData:_0x273cce}=require$$0$4;requireOkdbFatalReport()['enableFatalReport'](_0x46ef02(0x2b5));const _0xd377e6=require$$2,{compileFunctionExpression:_0x165eea}=requireOkdbFunctionsSandbox(),{serializeError:_0x3bc611}=requireOkdbFunctionsIpc(),{createExecutionContext:_0x117aee}=requireOkdbFunctionsContext(),_0x33792e=require$$6;let _0xb09e53=null,_0x3697ba=![];const _0x512bf4=new Map(),_0x1a1697=new Map();function _0x4db407(_0x66c8e6){const _0x435828=_0x46ef02;try{_0x53b3ba[_0x435828(0x167)](_0x66c8e6);}catch{}}function _0x2f29c5(_0x68dd3b){const _0x48256f=_0x46ef02,_0x493bfa=(_0x68dd3b[_0x48256f(0x1e4)]||'~system')+':'+_0x68dd3b['functionName']+':'+_0x68dd3b[_0x48256f(0x207)]+':'+_0x68dd3b[_0x48256f(0x1fe)];let _0x41aebc=_0x512bf4[_0x48256f(0x29d)](_0x493bfa);return!_0x41aebc&&(_0x41aebc=_0x165eea(_0x68dd3b[_0x48256f(0x246)],{'allowFetch':_0x68dd3b[_0x48256f(0x2ad)]?.[_0x48256f(0x197)]!==![],'allowedFetchDomains':_0x68dd3b['runtime']?.[_0x48256f(0x16f)],'filename':_0x68dd3b[_0x48256f(0x1c9)]+_0x48256f(0x1cf)}),_0x512bf4[_0x48256f(0x28c)](_0x493bfa,_0x41aebc)),_0x41aebc;}async function _0x50e086(_0x55ed82){const _0x565cd5=_0x46ef02,_0x5c7ac8=Date[_0x565cd5(0x215)](),_0x1f2eb5=new AbortController();_0x1a1697['set'](_0x55ed82[_0x565cd5(0x188)],_0x1f2eb5);try{const _0x3d1105=_0x2f29c5(_0x55ed82);if(_0x55ed82[_0x565cd5(0x1e4)])await _0xb09e53[_0x565cd5(0x26f)](_0x55ed82[_0x565cd5(0x1e4)]);const _0x718251=_0x55ed82[_0x565cd5(0x2cd)]?[]:null,_0x19d0db=_0x117aee(_0xb09e53,_0x55ed82,_0x4db407,_0x718251,_0x1f2eb5['signal']),_0x6f4f4b=await _0x3d1105(_0x19d0db),_0x175f63={'type':_0x565cd5(0x249),'requestId':_0x55ed82['requestId'],'runId':_0x55ed82['runId'],'result':_0x6f4f4b,'meta':{'runnerId':_0x565cd5(0x299)+process[_0x565cd5(0x1f8)],'startedAt':_0x5c7ac8,'finishedAt':Date[_0x565cd5(0x215)](),'durationMs':Date['now']()-_0x5c7ac8}};if(_0x718251)_0x175f63[_0x565cd5(0x2df)]=_0x718251;_0x4db407(_0x175f63);}catch(_0x71937d){_0x4db407({'type':_0x565cd5(0x267),'requestId':_0x55ed82[_0x565cd5(0x188)],'runId':_0x55ed82['runId'],'error':_0x3bc611(_0x71937d),'meta':{'runnerId':_0x565cd5(0x299)+process[_0x565cd5(0x1f8)],'startedAt':_0x5c7ac8,'finishedAt':Date[_0x565cd5(0x215)](),'durationMs':Date[_0x565cd5(0x215)]()-_0x5c7ac8}});}finally{_0x1a1697[_0x565cd5(0x290)](_0x55ed82[_0x565cd5(0x188)]);}}async function _0x5085f6(){const _0x535fb2=_0x46ef02;if(_0x3697ba)return;_0x3697ba=!![];try{await _0xb09e53?.[_0x535fb2(0x244)]?.();}catch{}process[_0x535fb2(0x1db)](0x0);}async function _0x37cd1f(){const _0x1c8cbc=_0x46ef02,{rootPath:_0x34296b}=_0x273cce??{};if(!_0x34296b)throw new Error(_0x1c8cbc(0x24a));_0xb09e53=new _0x33792e(_0x34296b,{'engines':![],'processors':![],'compaction':![],'http':![],'auth':{'open':!![]},'processes':![]}),await _0xb09e53[_0x1c8cbc(0x2c6)]();const _0x2a3470=setInterval(()=>{if(_0x3697ba)return;for(const [,_0x4a0c5b]of _0xb09e53['_envs']){try{_0x4a0c5b['_drainHandler']?.();}catch{}}},0xc8);if(typeof _0x2a3470['unref']==='function')_0x2a3470[_0x1c8cbc(0x239)]();_0x53b3ba['on'](_0x1c8cbc(0x1a5),_0x1e72a8=>{const _0x103c05=_0x1c8cbc;if(!_0x1e72a8||typeof _0x1e72a8!==_0x103c05(0x2af))return;if(_0x1e72a8['type']==='stop')return void _0x5085f6();if(_0x1e72a8[_0x103c05(0x159)]==='cancel'){_0x1a1697[_0x103c05(0x29d)](_0x1e72a8[_0x103c05(0x188)])?.['abort'](new Error(_0x103c05(0x171)));return;}_0x1e72a8[_0x103c05(0x159)]===_0x103c05(0x2d4)&&void _0x50e086(_0x1e72a8['job']);});const _0x4b3e63=Math[_0x1c8cbc(0x286)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x4b11dd=setInterval(()=>{const _0x202d22=_0x1c8cbc;try{_0x4db407({'type':_0x202d22(0x21d),'heapUsed':_0xd377e6[_0x202d22(0x199)]()[_0x202d22(0x1e8)]});}catch{}},_0x4b3e63);if(typeof _0x4b11dd[_0x1c8cbc(0x239)]===_0x1c8cbc(0x1af))_0x4b11dd[_0x1c8cbc(0x239)]();_0x4db407({'type':_0x1c8cbc(0x185)});}return _0x37cd1f()['catch'](_0x225c0e=>{const _0x5d7268=_0x46ef02;_0x4db407({'type':'fatal','error':_0x3bc611(_0x225c0e)}),process[_0x5d7268(0x1db)](0x1);}),okdbFunctionsSandboxWorker$1;}var okdbFunctionsSandboxWorkerExports=requireOkdbFunctionsSandboxWorker(),okdbFunctionsSandboxWorker=getDefaultExportFromCjs(okdbFunctionsSandboxWorkerExports);module[_0x17c6d3(0x1b7)]=okdbFunctionsSandboxWorker;