@delali/narsil 0.3.1-next.90 → 0.3.1-next.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/browser/{chunk-JACCR3BJ.mjs → chunk-66KYAOIK.mjs} +1 -1
  2. package/dist/browser/{chunk-3GZQKGVQ.mjs → chunk-B6XE7KXY.mjs} +11 -3
  3. package/dist/browser/{chunk-RAHUQOJL.mjs → chunk-NOUZ6RH3.mjs} +2219 -2005
  4. package/dist/browser/{durability-wiring-VSUBLUDK.mjs → durability-wiring-F4OGQUSU.mjs} +3 -3
  5. package/dist/browser/{snapshot-5MXBEDXF.mjs → snapshot-5EJ7I7QY.mjs} +12 -6
  6. package/dist/browser/{write-6SBYTS62.mjs → write-K5V4XQ72.mjs} +2 -2
  7. package/dist/{capabilities-SJPttcgQ.d.ts → capabilities-CvExBThq.d.ts} +11 -3
  8. package/dist/{chunk-MWJIAREY.mjs → chunk-3RDS4UHC.mjs} +2 -2
  9. package/dist/{chunk-QAMUC2BJ.mjs → chunk-3TTYK5A7.mjs} +7 -6
  10. package/dist/{chunk-URGLSNKR.mjs → chunk-43ORORN6.mjs} +201 -15
  11. package/dist/{chunk-A3UB2MXL.mjs → chunk-5ER245FI.mjs} +2 -505
  12. package/dist/{chunk-VY4DXZ5P.mjs → chunk-67Z2V6TC.mjs} +1 -1
  13. package/dist/{chunk-EMXAYPTQ.mjs → chunk-6VZ3Q73N.mjs} +2265 -3461
  14. package/dist/{chunk-S4LQDSUL.mjs → chunk-7OQHSDK6.mjs} +3 -3
  15. package/dist/chunk-7X5JST5L.mjs +114 -0
  16. package/dist/{chunk-R6BMMQXH.mjs → chunk-A4G7JSYO.mjs} +106 -41
  17. package/dist/{chunk-DCK4P5BI.mjs → chunk-BJ2YKRNX.mjs} +16 -7
  18. package/dist/{chunk-J2BPXTD7.mjs → chunk-CO4MRKST.mjs} +1 -1
  19. package/dist/{chunk-CL4OM7GB.mjs → chunk-EONIHG3V.mjs} +8 -4
  20. package/dist/chunk-MKWUXWQH.mjs +35 -0
  21. package/dist/chunk-NVL4ZR3K.mjs +426 -0
  22. package/dist/{chunk-GCM3JFVA.mjs → chunk-OHP7QR33.mjs} +2 -1
  23. package/dist/{chunk-YRX6XMOQ.mjs → chunk-R6PR4WYZ.mjs} +1 -0
  24. package/dist/{chunk-OOSIDHA3.mjs → chunk-RSRVGAIQ.mjs} +1 -1
  25. package/dist/{chunk-V7YUSKKZ.mjs → chunk-T4DB5YFB.mjs} +7 -3
  26. package/dist/{chunk-XSZVS4S3.mjs → chunk-UXQE2ROB.mjs} +6 -2
  27. package/dist/chunk-X5CV2E2B.mjs +1 -0
  28. package/dist/chunk-XLJ2S2BH.mjs +3572 -0
  29. package/dist/chunk-ZIJ63TBT.mjs +507 -0
  30. package/dist/{client-BMK53IR2.d.ts → client-Cc42b42j.d.ts} +27 -3
  31. package/dist/client.d.ts +9 -8
  32. package/dist/client.mjs +15 -2
  33. package/dist/{config-BUR-7eVQ.d.ts → config-BYne-yCI.d.ts} +2 -2
  34. package/dist/{config-UJx1dyX1.d.ts → config-DyRowvVP.d.ts} +2 -2
  35. package/dist/{direct-executor-EGESD26S.mjs → direct-executor-CHXVCBN7.mjs} +9 -5
  36. package/dist/distribution/coordinator/etcd.d.ts +3 -2
  37. package/dist/distribution/coordinator/etcd.mjs +4 -0
  38. package/dist/distribution/coordinator/in-memory.d.ts +3 -2
  39. package/dist/distribution/coordinator/in-memory.mjs +4 -0
  40. package/dist/distribution/transport/grpc.mjs +2 -2
  41. package/dist/distribution/transport/in-memory.mjs +1 -1
  42. package/dist/distribution/transport/tcp.mjs +2 -2
  43. package/dist/distribution.d.ts +43 -9
  44. package/dist/distribution.mjs +4590 -4263
  45. package/dist/{durability-wiring-ZLRQU6FG.mjs → durability-wiring-6AN4QTT3.mjs} +20 -16
  46. package/dist/{engine-9X6W5naj.d.ts → engine-96_kLtSY.d.ts} +43 -7
  47. package/dist/{index-vCMu8OeQ.d.ts → index-ONAEaqtx.d.ts} +8 -1
  48. package/dist/index.browser.mjs +1 -1
  49. package/dist/index.d.ts +44 -25
  50. package/dist/index.mjs +13 -9
  51. package/dist/{memory-CV9NAxLY.d.ts → memory-dd3GESdc.d.ts} +3 -3
  52. package/dist/partial-words.mjs +2 -1
  53. package/dist/persistence/durability/checkpoint-worker.d.ts +60 -58
  54. package/dist/persistence/durability/checkpoint-worker.mjs +18 -14
  55. package/dist/react.d.ts +8 -7
  56. package/dist/{schema-DtsgmNfU.d.ts → schema-DttzM-ln.d.ts} +12 -0
  57. package/dist/server.d.ts +11 -10
  58. package/dist/server.mjs +33 -6
  59. package/dist/{snapshot-22CUEYYW.mjs → snapshot-JFZVOGZV.mjs} +28 -18
  60. package/dist/synonyms-CpOAHPa-.d.ts +52 -0
  61. package/dist/synonyms.d.ts +22 -0
  62. package/dist/synonyms.mjs +12 -0
  63. package/dist/{tasks-BGaZJyoY.d.ts → tasks-DA1Ff0G4.d.ts} +4 -1
  64. package/dist/{thread-ZP3UMIZT.mjs → thread-VTDLLYXC.mjs} +7 -5
  65. package/dist/vector/search-worker.d.ts +2 -1
  66. package/dist/workers/entry.mjs +4 -4
  67. package/dist/{write-PXDKPG2R.mjs → write-OJR3H4BI.mjs} +14 -10
  68. package/package.json +15 -7
  69. package/dist/chunk-PR4O7CAP.mjs +0 -18
  70. package/dist/chunk-X4SEXL4U.mjs +0 -2310
@@ -0,0 +1,507 @@
1
+ import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
2
+ import { createNarsilError, ErrorCodes } from './chunk-TPJU7NDJ.mjs';
3
+
4
+ // src/core/tokenizer/constants.ts
5
+ var TOKEN_CACHE_SIZE_FLOOR = 5e4;
6
+ var TOKEN_CACHE_SIZE_CEILING = 2e6;
7
+ var TOKEN_CACHE_BYTES_PER_ENTRY = 200;
8
+ var NODE_TOKEN_CACHE_ENTRIES = 1e6;
9
+ var UNKNOWN_MEMORY_TOKEN_CACHE_ENTRIES = 2e5;
10
+ var CONSTRAINED_MEMORY_TOKEN_CACHE_FRACTION = 0.05;
11
+ var SMALL_DEVICE_MEMORY_GB = 1;
12
+ var MEDIUM_DEVICE_MEMORY_GB = 4;
13
+ var SMALL_DEVICE_TOKEN_CACHE_ENTRIES = 1e5;
14
+ var MEDIUM_DEVICE_TOKEN_CACHE_ENTRIES = 25e4;
15
+ var LARGE_DEVICE_TOKEN_CACHE_ENTRIES = 5e5;
16
+ var DEFAULT_MIN_TOKEN_LENGTH = 1;
17
+
18
+ // src/core/tokenizer/normalize.ts
19
+ var DOTTED_CAPITAL_I = "\u0130";
20
+ var COMBINING_DOT_ABOVE = "\u0307";
21
+ var ARMENIAN_MARKS = /[\u055B-\u055F]/;
22
+ var FOLDED_FORMS = /\u0307|[\u0130\u055B-\u055F\u2018\u2019\u02BC\u02BB]/g;
23
+ var WIDTH_FORMS = /[\uFF01-\uFF5E\uFF61-\uFF9F]/;
24
+ var WIDTH_FORMS_GLOBAL = /[\uFF01-\uFF5E\uFF61-\uFF9F]/g;
25
+ var FULLWIDTH_ASCII_END = 65374;
26
+ var FULLWIDTH_ASCII_OFFSET = 65248;
27
+ var HALFWIDTH_KANA_START = 65377;
28
+ var HALFWIDTH_VOICED_MARK = 65438;
29
+ var HALFWIDTH_SEMI_VOICED_MARK = 65439;
30
+ var COMBINING_VOICED_MARK = "\u3099";
31
+ var COMBINING_SEMI_VOICED_MARK = "\u309A";
32
+ var HALFWIDTH_KANA_TARGETS = "\u3002\u300C\u300D\u3001\u30FB\u30F2\u30A1\u30A3\u30A5\u30A7\u30A9\u30E3\u30E5\u30E7\u30C3\u30FC\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F3";
33
+ function foldForm(match) {
34
+ if (match === DOTTED_CAPITAL_I) return "i";
35
+ if (match === COMBINING_DOT_ABOVE || ARMENIAN_MARKS.test(match)) return "";
36
+ return "'";
37
+ }
38
+ function foldWidth(match) {
39
+ const codePoint = match.charCodeAt(0);
40
+ if (codePoint <= FULLWIDTH_ASCII_END) return String.fromCharCode(codePoint - FULLWIDTH_ASCII_OFFSET);
41
+ if (codePoint === HALFWIDTH_VOICED_MARK) return COMBINING_VOICED_MARK;
42
+ if (codePoint === HALFWIDTH_SEMI_VOICED_MARK) return COMBINING_SEMI_VOICED_MARK;
43
+ return HALFWIDTH_KANA_TARGETS[codePoint - HALFWIDTH_KANA_START];
44
+ }
45
+ function isAscii(text) {
46
+ for (let i = 0; i < text.length; i++) {
47
+ if (text.charCodeAt(i) > 127) return false;
48
+ }
49
+ return true;
50
+ }
51
+ function foldWidthForms(text) {
52
+ if (!WIDTH_FORMS.test(text)) return text;
53
+ return text.replace(WIDTH_FORMS_GLOBAL, foldWidth);
54
+ }
55
+ function normalizeForSplitting(text) {
56
+ if (isAscii(text)) return text.toLowerCase();
57
+ return foldWidthForms(text).normalize("NFC").replace(FOLDED_FORMS, foldForm).toLowerCase();
58
+ }
59
+ function stripDiacritics(text) {
60
+ return text.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
61
+ }
62
+
63
+ // src/core/tokenizer/cache.ts
64
+ function clampCacheSize(entries) {
65
+ return Math.max(TOKEN_CACHE_SIZE_FLOOR, Math.min(entries, TOKEN_CACHE_SIZE_CEILING));
66
+ }
67
+ function computeDefaultCacheSize() {
68
+ try {
69
+ if (typeof process !== "undefined" && typeof process.versions?.node === "string" && typeof window === "undefined") {
70
+ const constrainedMemory = typeof process.constrainedMemory === "function" ? process.constrainedMemory() : 0;
71
+ if (constrainedMemory > 0 && constrainedMemory < Number.MAX_SAFE_INTEGER) {
72
+ const budget = constrainedMemory * CONSTRAINED_MEMORY_TOKEN_CACHE_FRACTION;
73
+ return clampCacheSize(Math.floor(budget / TOKEN_CACHE_BYTES_PER_ENTRY));
74
+ }
75
+ return clampCacheSize(NODE_TOKEN_CACHE_ENTRIES);
76
+ }
77
+ if (typeof navigator !== "undefined") {
78
+ const mem = navigator.deviceMemory;
79
+ if (typeof mem === "number" && mem > 0) {
80
+ let entries;
81
+ if (mem <= SMALL_DEVICE_MEMORY_GB) entries = SMALL_DEVICE_TOKEN_CACHE_ENTRIES;
82
+ else if (mem <= MEDIUM_DEVICE_MEMORY_GB) entries = MEDIUM_DEVICE_TOKEN_CACHE_ENTRIES;
83
+ else entries = LARGE_DEVICE_TOKEN_CACHE_ENTRIES;
84
+ return clampCacheSize(entries);
85
+ }
86
+ }
87
+ } catch {
88
+ return clampCacheSize(UNKNOWN_MEMORY_TOKEN_CACHE_ENTRIES);
89
+ }
90
+ return clampCacheSize(UNKNOWN_MEMORY_TOKEN_CACHE_ENTRIES);
91
+ }
92
+ var normalizationCache = /* @__PURE__ */ new Map();
93
+ var normalizationCacheSize = 0;
94
+ var maxCacheSize = computeDefaultCacheSize();
95
+ var cachedLangName = "";
96
+ var cachedFlags = "";
97
+ var cachedBucket = null;
98
+ function configureNormalizationCache(maxSize) {
99
+ if (!Number.isFinite(maxSize)) {
100
+ throw createNarsilError(ErrorCodes.CONFIG_INVALID, "tokenizerCacheSize must be a finite number", {
101
+ received: maxSize
102
+ });
103
+ }
104
+ if (maxSize < 0) {
105
+ throw createNarsilError(ErrorCodes.CONFIG_INVALID, "tokenizerCacheSize must not be negative", {
106
+ received: maxSize
107
+ });
108
+ }
109
+ if (maxSize === 0) {
110
+ throw createNarsilError(
111
+ ErrorCodes.CONFIG_INVALID,
112
+ "tokenizerCacheSize must be greater than zero; the normalization cache cannot be disabled",
113
+ {
114
+ received: maxSize
115
+ }
116
+ );
117
+ }
118
+ maxCacheSize = Math.max(TOKEN_CACHE_SIZE_FLOOR, Math.min(Math.floor(maxSize), TOKEN_CACHE_SIZE_CEILING));
119
+ if (normalizationCacheSize > maxCacheSize) {
120
+ evictOldestEntries(normalizationCacheSize - maxCacheSize);
121
+ }
122
+ }
123
+ function getCacheBucket(language, flags) {
124
+ const langKey = `${language.name}@${language.revision}`;
125
+ if (cachedBucket && langKey === cachedLangName && flags === cachedFlags) return cachedBucket;
126
+ const key = `${langKey}:${flags}`;
127
+ let bucket = normalizationCache.get(key);
128
+ if (!bucket) {
129
+ bucket = /* @__PURE__ */ new Map();
130
+ normalizationCache.set(key, bucket);
131
+ }
132
+ cachedLangName = langKey;
133
+ cachedFlags = flags;
134
+ cachedBucket = bucket;
135
+ return bucket;
136
+ }
137
+ function evictOldestEntries(count) {
138
+ let remaining = count;
139
+ for (const [key, bucket] of normalizationCache) {
140
+ if (remaining <= 0) break;
141
+ if (bucket.size <= remaining) {
142
+ remaining -= bucket.size;
143
+ normalizationCacheSize -= bucket.size;
144
+ normalizationCache.delete(key);
145
+ if (bucket === cachedBucket) cachedBucket = null;
146
+ } else {
147
+ let deleted = 0;
148
+ for (const raw of bucket.keys()) {
149
+ if (deleted >= remaining) break;
150
+ bucket.delete(raw);
151
+ deleted++;
152
+ }
153
+ normalizationCacheSize -= deleted;
154
+ remaining = 0;
155
+ }
156
+ }
157
+ }
158
+ function transformToken(raw, language, stem, removeDiacritics) {
159
+ const flags = (stem ? "s" : "") + (removeDiacritics ? "d" : "");
160
+ let bucket = getCacheBucket(language, flags);
161
+ const cached = bucket.get(raw);
162
+ if (cached !== void 0) return cached;
163
+ let normalized = raw;
164
+ if (language.normalizer) {
165
+ normalized = language.normalizer(normalized);
166
+ }
167
+ if (removeDiacritics) {
168
+ normalized = stripDiacritics(normalized);
169
+ }
170
+ if (stem && language.stemmer) {
171
+ normalized = language.stemmer(normalized);
172
+ }
173
+ if (normalizationCacheSize >= maxCacheSize) {
174
+ evictOldestEntries(Math.max(1, maxCacheSize >>> 2));
175
+ bucket = getCacheBucket(language, flags);
176
+ }
177
+ bucket.set(raw, normalized);
178
+ normalizationCacheSize++;
179
+ return normalized;
180
+ }
181
+ function clearNormalizationCache() {
182
+ normalizationCache.clear();
183
+ normalizationCacheSize = 0;
184
+ cachedBucket = null;
185
+ }
186
+ function resetNormalizationCache() {
187
+ clearNormalizationCache();
188
+ maxCacheSize = computeDefaultCacheSize();
189
+ }
190
+ function getNormalizationCacheSize() {
191
+ return normalizationCacheSize;
192
+ }
193
+
194
+ // src/core/tokenizer/ngrams.ts
195
+ var OTHER_SCRIPT = 0;
196
+ var HAN_SCRIPT = 1;
197
+ var HIRAGANA_SCRIPT = 2;
198
+ var KATAKANA_SCRIPT = 3;
199
+ var HANGUL_SCRIPT = 4;
200
+ var THAI_SCRIPT = 5;
201
+ var LAO_SCRIPT = 6;
202
+ var KHMER_SCRIPT = 7;
203
+ var MYANMAR_SCRIPT = 8;
204
+ var PROLONGED_SOUND_MARK = 12540;
205
+ var IDEOGRAPHIC_ITERATION_MARK = 12293;
206
+ var LOWEST_NGRAM_CODE_POINT = 3584;
207
+ var LOWEST_MARK_CODE_POINT = 768;
208
+ var THAI_BLOCK_END = 3711;
209
+ var LAO_BLOCK_END = 3839;
210
+ var MYANMAR_BLOCK_START = 4096;
211
+ var MYANMAR_BLOCK_END = 4255;
212
+ var KHMER_BLOCK_START = 6016;
213
+ var KHMER_BLOCK_END = 6655;
214
+ var SOUTHEAST_ASIAN_BLOCKS_END = 6656;
215
+ var HIRAGANA_BLOCK_START = 12352;
216
+ var HIRAGANA_BLOCK_END = 12447;
217
+ var COMBINING_VOICED_MARK2 = 12441;
218
+ var COMBINING_SEMI_VOICED_MARK2 = 12442;
219
+ var KATAKANA_BLOCK_START = 12448;
220
+ var KATAKANA_BLOCK_END = 12543;
221
+ var HAN_EXTENSION_A_START = 13312;
222
+ var HAN_EXTENSION_A_END = 19903;
223
+ var HAN_UNIFIED_START = 19968;
224
+ var HAN_UNIFIED_END = 40959;
225
+ var HANGUL_SYLLABLE_START = 44032;
226
+ var HANGUL_SYLLABLE_END = 55203;
227
+ var HAN_COMPATIBILITY_START = 63744;
228
+ var HAN_COMPATIBILITY_END = 64255;
229
+ var SUPPLEMENTARY_PLANE_START = 65536;
230
+ var MARK = /\p{M}/uy;
231
+ var HAN = /\p{Script=Han}/uy;
232
+ var HIRAGANA = /\p{Script=Hiragana}/uy;
233
+ var KATAKANA = /\p{Script=Katakana}/uy;
234
+ var HANGUL = /\p{Script=Hangul}/uy;
235
+ var THAI = /\p{Script=Thai}/uy;
236
+ var LAO = /\p{Script=Lao}/uy;
237
+ var KHMER = /\p{Script=Khmer}/uy;
238
+ var MYANMAR = /\p{Script=Myanmar}/uy;
239
+ function matchesAt(pattern, part, index) {
240
+ pattern.lastIndex = index;
241
+ return pattern.test(part);
242
+ }
243
+ function isMark(part, index, codePoint) {
244
+ if (codePoint < LOWEST_MARK_CODE_POINT) return false;
245
+ if (codePoint >= HAN_UNIFIED_START && codePoint <= HAN_UNIFIED_END) return false;
246
+ if (codePoint >= HIRAGANA_BLOCK_START && codePoint <= KATAKANA_BLOCK_END) {
247
+ return codePoint === COMBINING_VOICED_MARK2 || codePoint === COMBINING_SEMI_VOICED_MARK2;
248
+ }
249
+ if (codePoint >= HANGUL_SYLLABLE_START && codePoint <= HANGUL_SYLLABLE_END) return false;
250
+ if (codePoint >= HAN_EXTENSION_A_START && codePoint <= HAN_EXTENSION_A_END) return false;
251
+ return matchesAt(MARK, part, index);
252
+ }
253
+ function classifyOutsideCommonBlocks(part, index) {
254
+ if (matchesAt(HAN, part, index)) return HAN_SCRIPT;
255
+ if (matchesAt(HIRAGANA, part, index)) return HIRAGANA_SCRIPT;
256
+ if (matchesAt(KATAKANA, part, index)) return KATAKANA_SCRIPT;
257
+ if (matchesAt(HANGUL, part, index)) return HANGUL_SCRIPT;
258
+ if (matchesAt(THAI, part, index)) return THAI_SCRIPT;
259
+ if (matchesAt(LAO, part, index)) return LAO_SCRIPT;
260
+ if (matchesAt(KHMER, part, index)) return KHMER_SCRIPT;
261
+ if (matchesAt(MYANMAR, part, index)) return MYANMAR_SCRIPT;
262
+ return OTHER_SCRIPT;
263
+ }
264
+ function classifySoutheastAsian(part, index, codePoint) {
265
+ if (codePoint <= THAI_BLOCK_END) return matchesAt(THAI, part, index) ? THAI_SCRIPT : OTHER_SCRIPT;
266
+ if (codePoint <= LAO_BLOCK_END) return matchesAt(LAO, part, index) ? LAO_SCRIPT : OTHER_SCRIPT;
267
+ if (codePoint >= MYANMAR_BLOCK_START && codePoint <= MYANMAR_BLOCK_END) {
268
+ return matchesAt(MYANMAR, part, index) ? MYANMAR_SCRIPT : OTHER_SCRIPT;
269
+ }
270
+ if (codePoint >= KHMER_BLOCK_START && codePoint <= KHMER_BLOCK_END) {
271
+ return matchesAt(KHMER, part, index) ? KHMER_SCRIPT : OTHER_SCRIPT;
272
+ }
273
+ return classifyOutsideCommonBlocks(part, index);
274
+ }
275
+ function classify(part, index, codePoint, current) {
276
+ if (codePoint < LOWEST_NGRAM_CODE_POINT) return OTHER_SCRIPT;
277
+ if (codePoint < SOUTHEAST_ASIAN_BLOCKS_END) return classifySoutheastAsian(part, index, codePoint);
278
+ if (codePoint === PROLONGED_SOUND_MARK) {
279
+ return current === HIRAGANA_SCRIPT ? HIRAGANA_SCRIPT : KATAKANA_SCRIPT;
280
+ }
281
+ if (codePoint >= HIRAGANA_BLOCK_START && codePoint <= HIRAGANA_BLOCK_END) return HIRAGANA_SCRIPT;
282
+ if (codePoint >= KATAKANA_BLOCK_START && codePoint <= KATAKANA_BLOCK_END) return KATAKANA_SCRIPT;
283
+ if (codePoint >= HAN_UNIFIED_START && codePoint <= HAN_UNIFIED_END) return HAN_SCRIPT;
284
+ if (codePoint >= HAN_EXTENSION_A_START && codePoint <= HAN_EXTENSION_A_END) return HAN_SCRIPT;
285
+ if (codePoint >= HANGUL_SYLLABLE_START && codePoint <= HANGUL_SYLLABLE_END) return HANGUL_SCRIPT;
286
+ if (codePoint >= HAN_COMPATIBILITY_START && codePoint <= HAN_COMPATIBILITY_END) return HAN_SCRIPT;
287
+ if (codePoint === IDEOGRAPHIC_ITERATION_MARK) return HAN_SCRIPT;
288
+ return classifyOutsideCommonBlocks(part, index);
289
+ }
290
+ function emitRun(part, offsets, kind, size, out) {
291
+ const count = offsets.length - 1;
292
+ if (count < 1) return;
293
+ if (kind === OTHER_SCRIPT || count <= size) {
294
+ out.push(part.slice(offsets[0], offsets[count]));
295
+ return;
296
+ }
297
+ for (let start = 0; start + size <= count; start++) {
298
+ out.push(part.slice(offsets[start], offsets[start + size]));
299
+ }
300
+ }
301
+ function expandNgrams(part, size, out) {
302
+ const length = part.length;
303
+ if (length === 0) return;
304
+ const offsets = [];
305
+ let kind = OTHER_SCRIPT;
306
+ let index = 0;
307
+ while (index < length) {
308
+ const codePoint = part.codePointAt(index);
309
+ if (codePoint === void 0) break;
310
+ const width = codePoint >= SUPPLEMENTARY_PLANE_START ? 2 : 1;
311
+ if (offsets.length > 0 && isMark(part, index, codePoint)) {
312
+ index += width;
313
+ continue;
314
+ }
315
+ const next = classify(part, index, codePoint, kind);
316
+ if (offsets.length > 0 && next !== kind) {
317
+ offsets.push(index);
318
+ emitRun(part, offsets, kind, size, out);
319
+ offsets.length = 0;
320
+ }
321
+ kind = next;
322
+ offsets.push(index);
323
+ index += width;
324
+ }
325
+ offsets.push(length);
326
+ emitRun(part, offsets, kind, size, out);
327
+ }
328
+
329
+ // src/core/tokenizer/tokenize.ts
330
+ function producesSurfaceForms(language, options) {
331
+ if (!options?.collectSurfaces || options.customTokenizer) return false;
332
+ return (options.stem ?? true) && language.stemmer !== null;
333
+ }
334
+ var DEFAULT_SPLIT_PATTERN = /[^\p{L}\p{M}\p{N}_'-]+/u;
335
+ function resolveStopWords(language, override) {
336
+ if (!override) return language.stopWords;
337
+ if (override instanceof Set) return override;
338
+ return override(language.stopWords);
339
+ }
340
+ function splitText(text, language) {
341
+ const pattern = language.tokenizer?.splitPattern ?? DEFAULT_SPLIT_PATTERN;
342
+ const parts = text.split(pattern);
343
+ const ngramSize = language.tokenizer?.ngramSize;
344
+ if (ngramSize === void 0 || ngramSize < 1) return parts;
345
+ const size = Math.floor(ngramSize);
346
+ const expanded = [];
347
+ for (const part of parts) {
348
+ expandNgrams(part, size, expanded);
349
+ }
350
+ return expanded;
351
+ }
352
+ var CHAR_APOSTROPHE = 39;
353
+ var CHAR_S = 115;
354
+ function stripPossessive(token) {
355
+ const len = token.length;
356
+ if (len >= 2 && token.charCodeAt(len - 1) === CHAR_S && token.charCodeAt(len - 2) === CHAR_APOSTROPHE) {
357
+ return token.slice(0, -2);
358
+ }
359
+ if (len >= 1 && token.charCodeAt(len - 1) === CHAR_APOSTROPHE) {
360
+ return token.slice(0, -1);
361
+ }
362
+ return token;
363
+ }
364
+ function visitTokens(text, language, options, visit) {
365
+ const {
366
+ stem = true,
367
+ removeStopWords = true,
368
+ removeDiacritics = false,
369
+ collectSurfaces = false,
370
+ customTokenizer,
371
+ stopWordOverride
372
+ } = options ?? {};
373
+ if (customTokenizer) {
374
+ for (const entry of customTokenizer.tokenize(text)) visit(entry.token, entry.position, void 0, entry.token);
375
+ return;
376
+ }
377
+ const rawParts = splitText(normalizeForSplitting(text), language);
378
+ const minLength = language.tokenizer?.minTokenLength ?? DEFAULT_MIN_TOKEN_LENGTH;
379
+ const effectiveDiacritics = removeDiacritics || (language.tokenizer?.normalizeDiacritics ?? false);
380
+ const wantSurfaces = collectSurfaces && stem && language.stemmer !== null;
381
+ const stopWords = removeStopWords ? resolveStopWords(language, stopWordOverride) : null;
382
+ const stripPossessives = language.tokenizer?.stripPossessive ?? false;
383
+ for (let position = 0; position < rawParts.length; position++) {
384
+ const part = rawParts[position];
385
+ const candidate = stripPossessives ? stripPossessive(part) : part;
386
+ if (candidate.length < minLength || stopWords?.has(candidate)) continue;
387
+ const processed = transformToken(candidate, language, stem, effectiveDiacritics);
388
+ if (processed.length === 0) continue;
389
+ if (!wantSurfaces) {
390
+ visit(processed, position, void 0, part);
391
+ continue;
392
+ }
393
+ const surface = effectiveDiacritics ? transformToken(candidate, language, false, true) : candidate;
394
+ visit(processed, position, surface === processed ? void 0 : surface, part);
395
+ }
396
+ }
397
+ function visitSurfaceSpellings(text, language, visit) {
398
+ const rawParts = splitText(normalizeForSplitting(text), language);
399
+ const minLength = language.tokenizer?.minTokenLength ?? DEFAULT_MIN_TOKEN_LENGTH;
400
+ const removeDiacritics = language.tokenizer?.normalizeDiacritics ?? false;
401
+ const stripPossessives = language.tokenizer?.stripPossessive ?? false;
402
+ for (const part of rawParts) {
403
+ const candidate = stripPossessives ? stripPossessive(part) : part;
404
+ if (candidate.length < minLength) continue;
405
+ visit(removeDiacritics ? transformToken(candidate, language, false, true) : candidate);
406
+ }
407
+ }
408
+ function tokenize(text, language, options) {
409
+ if (options?.customTokenizer) {
410
+ const customResult = options.customTokenizer.tokenize(text);
411
+ return { tokens: customResult, originalTokens: customResult.map((entry) => entry.token) };
412
+ }
413
+ const tokens = [];
414
+ const originalTokens = [];
415
+ const surfaces = producesSurfaceForms(language, options) ? [] : void 0;
416
+ visitTokens(text, language, options, (token, position, surface, original) => {
417
+ tokens.push({ token, position });
418
+ originalTokens.push(original);
419
+ surfaces?.push(surface);
420
+ });
421
+ return { tokens, originalTokens, surfaces };
422
+ }
423
+
424
+ // src/core/partition/constants.ts
425
+ var TARGET_BLOCK_ENTRIES = 128;
426
+ var PRUNING_REJECTION_SLACK = 1e-12;
427
+ var SCORE_BUFFER_INITIAL_TOUCHED_CAPACITY = 1024;
428
+ var SEGMENT_TOKEN_TABLE_START = 1 << 12;
429
+ var SEGMENT_POSTING_LOG_START = 1 << 14;
430
+ var SEGMENT_POSITION_POOL_START = 1 << 16;
431
+ var SEGMENT_FIELD_SCRATCH_START = 1 << 10;
432
+ var LOOKUP_KEY_SCRATCH_BYTES = 4096;
433
+ var FROZEN_REMOVAL_INDEX_MAX_PROCESS_FRACTION = 0.9;
434
+ var SORT_COLUMN_MINIMUM_REBUILD_THRESHOLD = 1024;
435
+ var SORT_COLUMN_REBUILD_FRACTION_SHIFT = 2;
436
+
437
+ // src/core/partition/frozen/string-blob.ts
438
+ var SURROGATE = /[\ud800-\udfff]/;
439
+ var UTF8_BYTES_PER_UTF16_UNIT = 3;
440
+ var encoder = new TextEncoder();
441
+ var lookupKeyBytes = new Uint8Array(LOOKUP_KEY_SCRATCH_BYTES);
442
+ function encodeLookupKey(text) {
443
+ if (text.length * UTF8_BYTES_PER_UTF16_UNIT > LOOKUP_KEY_SCRATCH_BYTES) return encoder.encode(text);
444
+ const { written } = encoder.encodeInto(text, lookupKeyBytes);
445
+ return lookupKeyBytes.subarray(0, written);
446
+ }
447
+ function encodeOneByOne(strings) {
448
+ const encoded = new Array(strings.length);
449
+ let blobLength = 0;
450
+ for (let i = 0; i < strings.length; i++) {
451
+ encoded[i] = encoder.encode(strings[i]);
452
+ blobLength += encoded[i].length;
453
+ }
454
+ const blob = new Uint8Array(blobLength);
455
+ const offsets = new Uint32Array(strings.length + 1);
456
+ let cursor = 0;
457
+ for (let i = 0; i < strings.length; i++) {
458
+ blob.set(encoded[i], cursor);
459
+ cursor += encoded[i].length;
460
+ offsets[i + 1] = cursor;
461
+ }
462
+ return { blob, offsets };
463
+ }
464
+ function basicPlaneUtf8Bytes(text) {
465
+ let bytes = text.length;
466
+ for (let i = 0; i < text.length; i++) {
467
+ const unit = text.charCodeAt(i);
468
+ if (unit >= 128) bytes += unit < 2048 ? 1 : 2;
469
+ }
470
+ return bytes;
471
+ }
472
+ function encodeStringBlob(strings) {
473
+ const joined = strings.join("");
474
+ if (SURROGATE.test(joined)) return encodeOneByOne(strings);
475
+ const blob = encoder.encode(joined);
476
+ const offsets = new Uint32Array(strings.length + 1);
477
+ let cursor = 0;
478
+ for (let i = 0; i < strings.length; i++) {
479
+ cursor += basicPlaneUtf8Bytes(strings[i]);
480
+ offsets[i + 1] = cursor;
481
+ }
482
+ return cursor === blob.length ? { blob, offsets } : encodeOneByOne(strings);
483
+ }
484
+ function orderByComparator(strings) {
485
+ const order = new Array(strings.length);
486
+ for (let i = 0; i < strings.length; i++) order[i] = i;
487
+ return order.sort((a, b) => compareCodePoints(strings[a], strings[b]));
488
+ }
489
+ function alreadyInCodePointOrder(strings) {
490
+ for (let i = 1; i < strings.length; i++) {
491
+ if (compareCodePoints(strings[i - 1], strings[i]) > 0) return false;
492
+ }
493
+ return true;
494
+ }
495
+ function codePointOrder(strings) {
496
+ if (alreadyInCodePointOrder(strings)) return strings.map((_, i) => i);
497
+ if (SURROGATE.test(strings.join(""))) return orderByComparator(strings);
498
+ const positions = /* @__PURE__ */ new Map();
499
+ for (let i = 0; i < strings.length; i++) positions.set(strings[i], i);
500
+ if (positions.size !== strings.length) return orderByComparator(strings);
501
+ const order = new Array(strings.length);
502
+ const sorted = [...strings].sort();
503
+ for (let i = 0; i < sorted.length; i++) order[i] = positions.get(sorted[i]) ?? 0;
504
+ return order;
505
+ }
506
+
507
+ export { FROZEN_REMOVAL_INDEX_MAX_PROCESS_FRACTION, PRUNING_REJECTION_SLACK, SCORE_BUFFER_INITIAL_TOUCHED_CAPACITY, SEGMENT_FIELD_SCRATCH_START, SEGMENT_POSITION_POOL_START, SEGMENT_POSTING_LOG_START, SEGMENT_TOKEN_TABLE_START, SORT_COLUMN_MINIMUM_REBUILD_THRESHOLD, SORT_COLUMN_REBUILD_FRACTION_SHIFT, TARGET_BLOCK_ENTRIES, clearNormalizationCache, codePointOrder, configureNormalizationCache, encodeLookupKey, encodeStringBlob, getNormalizationCacheSize, resetNormalizationCache, resolveStopWords, tokenize, transformToken, visitSurfaceSpellings, visitTokens };
@@ -1,6 +1,7 @@
1
- import { P as PartitionConfig, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-DtsgmNfU.js';
2
- import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, h as ListResult, I as IndexInfo, g as IndexStats, P as PartitionStatsResult, Q as QueryParams, e as QueryResult, j as PreflightResult, k as SuggestParams, l as SuggestResult } from './memory-CV9NAxLY.js';
3
- import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-BGaZJyoY.js';
1
+ import { P as PartitionConfig, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-DttzM-ln.js';
2
+ import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, h as ListResult, I as IndexInfo, g as IndexStats, P as PartitionStatsResult, Q as QueryParams, e as QueryResult, j as PreflightResult, k as SuggestParams, l as SuggestResult } from './memory-dd3GESdc.js';
3
+ import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
4
+ import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-DA1Ff0G4.js';
4
5
 
5
6
  /**
6
7
  * This is the `fetch` implementation the client sends every request through.
@@ -233,6 +234,29 @@ interface AdminOperations {
233
234
  * ceiling falls below what the index already holds.
234
235
  */
235
236
  updatePartitionConfig(indexName: string, partitionConfig: Partial<PartitionConfig>, options?: RequestOptions): Promise<void>;
237
+ /**
238
+ * Replaces the synonym set of an index, which takes effect from the next
239
+ * search without a rebuild. Send an empty list to remove the set.
240
+ *
241
+ * @param indexName - The server replaces the set of this index.
242
+ * @param synonyms - This is the new set, in the shape that
243
+ * {@link SynonymRule} describes.
244
+ * @param options - This sets the signal, the deadline, and the headers for
245
+ * this request.
246
+ * @throws A `NarsilError` with `CONFIG_INVALID` when a rule breaks that
247
+ * shape, when a word analyses to no token or to more than one, or when the
248
+ * set passes its limits. The index then keeps the set that it held before.
249
+ */
250
+ updateSynonyms(indexName: string, synonyms: SynonymRule[], options?: RequestOptions): Promise<void>;
251
+ /**
252
+ * Reads the synonym set of an index, with every word as the caller wrote it.
253
+ *
254
+ * @param indexName - The server returns the set of this index.
255
+ * @param options - This sets the signal, the deadline, and the headers for
256
+ * this request.
257
+ * @returns The rules of the set, or an empty list when the index holds none.
258
+ */
259
+ getSynonyms(indexName: string, options?: RequestOptions): Promise<SynonymRule[]>;
236
260
  /**
237
261
  * Reanalyses every document in an index, as a task. An index analysed by an
238
262
  * earlier revision of its language module must run this before its terms
package/dist/client.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-CV9NAxLY.js';
2
- export { A as ASYNC_IMPORT_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, T as TASK_CANCEL_CAPABILITY, a as TASK_FILTER_CAPABILITY } from './capabilities-SJPttcgQ.js';
3
- export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-BGaZJyoY.js';
4
- export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-BMK53IR2.js';
5
- import './schema-DtsgmNfU.js';
1
+ export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-dd3GESdc.js';
2
+ export { A as ASYNC_IMPORT_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-CvExBThq.js';
3
+ export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-DA1Ff0G4.js';
4
+ export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-Cc42b42j.js';
5
+ import './schema-DttzM-ln.js';
6
6
  import './adapters-79OIa4xm.js';
7
- import './config-UJx1dyX1.js';
8
- import './config-BUR-7eVQ.js';
9
- import './index-vCMu8OeQ.js';
7
+ import './synonyms-CpOAHPa-.js';
8
+ import './config-DyRowvVP.js';
9
+ import './config-BYne-yCI.js';
10
+ import './index-ONAEaqtx.js';
10
11
  import './types-Cb9kiY5P.js';
package/dist/client.mjs CHANGED
@@ -156,13 +156,15 @@ var TASK_FILTER_CAPABILITY = "tasks.filter";
156
156
  var REBUILD_ANALYSIS_CAPABILITY = "indexes.rebuildAnalysis";
157
157
  var INDEX_LIFECYCLE_CAPABILITY = "indexes.lifecycle";
158
158
  var DOCUMENT_EXPORT_CAPABILITY = "indexes.documentExport";
159
+ var SYNONYMS_CAPABILITY = "indexes.synonyms";
159
160
  var SERVER_CAPABILITIES = [
160
161
  ASYNC_IMPORT_CAPABILITY,
161
162
  TASK_CANCEL_CAPABILITY,
162
163
  TASK_FILTER_CAPABILITY,
163
164
  REBUILD_ANALYSIS_CAPABILITY,
164
165
  INDEX_LIFECYCLE_CAPABILITY,
165
- DOCUMENT_EXPORT_CAPABILITY
166
+ DOCUMENT_EXPORT_CAPABILITY,
167
+ SYNONYMS_CAPABILITY
166
168
  ];
167
169
 
168
170
  // src/json-encoding.ts
@@ -307,6 +309,17 @@ function createAdminOperations(transport) {
307
309
  async updatePartitionConfig(indexName, partitionConfig, options) {
308
310
  await postJson(`${indexPath(indexName)}/partition-config`, partitionConfig, options);
309
311
  },
312
+ async updateSynonyms(indexName, synonyms, options) {
313
+ await postJson(`${indexPath(indexName)}/synonyms`, { synonyms }, options);
314
+ },
315
+ async getSynonyms(indexName, options) {
316
+ const path = `${indexPath(indexName)}/synonyms`;
317
+ const body = await readBody(
318
+ await transport.json({ method: "GET", path, options }),
319
+ path
320
+ );
321
+ return body.synonyms;
322
+ },
310
323
  async rebuildAnalysis(indexName, options) {
311
324
  const path = `${indexPath(indexName)}/_rebuild-analysis`;
312
325
  return readBody(await transport.json({ method: "POST", path, options }), path);
@@ -897,4 +910,4 @@ function createNarsilClient(options) {
897
910
  };
898
911
  }
899
912
 
900
- export { ASYNC_IMPORT_CAPABILITY, ClientErrorCodes, DOCUMENT_EXPORT_CAPABILITY, ErrorCodes, INDEX_LIFECYCLE_CAPABILITY, NarsilError, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, ServerErrorCodes, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, createNarsilClient, isNarsilError };
913
+ export { ASYNC_IMPORT_CAPABILITY, ClientErrorCodes, DOCUMENT_EXPORT_CAPABILITY, ErrorCodes, INDEX_LIFECYCLE_CAPABILITY, NarsilError, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, ServerErrorCodes, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, createNarsilClient, isNarsilError };
@@ -1,6 +1,6 @@
1
1
  import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter } from './adapters-79OIa4xm.js';
2
- import { Q as QueryParams, e as QueryResult, f as NarsilEventHandlers } from './memory-CV9NAxLY.js';
3
- import { I as IndexConfig, A as AnyDocument } from './schema-DtsgmNfU.js';
2
+ import { Q as QueryParams, e as QueryResult, f as NarsilEventHandlers } from './memory-dd3GESdc.js';
3
+ import { I as IndexConfig, A as AnyDocument } from './schema-DttzM-ln.js';
4
4
 
5
5
  /**
6
6
  * Hooks that the engine calls alongside its own work, so that an application
@@ -1,5 +1,5 @@
1
- import { N as NarsilConfig } from './config-BUR-7eVQ.js';
2
- import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-vCMu8OeQ.js';
1
+ import { N as NarsilConfig } from './config-BYne-yCI.js';
2
+ import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-ONAEaqtx.js';
3
3
  import { N as NodeTransport } from './types-Cb9kiY5P.js';
4
4
 
5
5
  /**
@@ -1,16 +1,20 @@
1
- export { createDirectExecutor } from './chunk-EMXAYPTQ.mjs';
2
- import './chunk-X4SEXL4U.mjs';
3
- import './chunk-PR4O7CAP.mjs';
1
+ export { createDirectExecutor } from './chunk-XLJ2S2BH.mjs';
2
+ import './chunk-6VZ3Q73N.mjs';
3
+ import './chunk-MKWUXWQH.mjs';
4
4
  import './chunk-TGP5M5R7.mjs';
5
+ import './chunk-U2BKYEC7.mjs';
5
6
  import './chunk-T6CNO72J.mjs';
6
7
  import './chunk-WQBCBKY3.mjs';
7
- import './chunk-A3UB2MXL.mjs';
8
+ import './chunk-5ER245FI.mjs';
8
9
  import './chunk-CVQWQVFX.mjs';
9
10
  import './chunk-FGMGUDHX.mjs';
10
11
  import './chunk-KEHK2O6P.mjs';
11
12
  import './chunk-GES7U2PM.mjs';
12
13
  import './chunk-BVOJIYRV.mjs';
13
- import './chunk-U2BKYEC7.mjs';
14
+ import './chunk-NVL4ZR3K.mjs';
15
+ import './chunk-X5CV2E2B.mjs';
16
+ import './chunk-7X5JST5L.mjs';
17
+ import './chunk-ZIJ63TBT.mjs';
14
18
  import './chunk-R6A773WK.mjs';
15
19
  import './chunk-YTJCGKM4.mjs';
16
20
  import './chunk-R7OSDAFK.mjs';
@@ -1,6 +1,7 @@
1
- import { C as ClusterCoordinator } from '../../index-vCMu8OeQ.js';
2
- import '../../schema-DtsgmNfU.js';
1
+ import { C as ClusterCoordinator } from '../../index-ONAEaqtx.js';
2
+ import '../../schema-DttzM-ln.js';
3
3
  import '../../adapters-79OIa4xm.js';
4
+ import '../../synonyms-CpOAHPa-.js';
4
5
 
5
6
  /**
6
7
  * Configures where {@link createEtcdCoordinator} connects, how long etcd keeps