@lyl-build/occo 0.0.0-stage → 0.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.
package/dist/tui.js ADDED
@@ -0,0 +1,4024 @@
1
+ // @bun
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
12
+ var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
20
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
21
+ const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
30
+ if (canCache)
31
+ cache.set(mod, to);
32
+ return to;
33
+ };
34
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
35
+
36
+ // ../../node_modules/.bun/fuzzysort@3.1.0/node_modules/fuzzysort/fuzzysort.js
37
+ var require_fuzzysort = __commonJS(function(exports, module) {
38
+ ((root, UMD) => {
39
+ if (typeof define === "function" && define.amd)
40
+ define([], UMD);
41
+ else if (typeof module === "object" && module.exports)
42
+ module.exports = UMD();
43
+ else
44
+ root["fuzzysort"] = UMD();
45
+ })(exports, (_) => {
46
+ var single = (search, target) => {
47
+ if (!search || !target)
48
+ return NULL;
49
+ var preparedSearch = getPreparedSearch(search);
50
+ if (!isPrepared(target))
51
+ target = getPrepared(target);
52
+ var searchBitflags = preparedSearch.bitflags;
53
+ if ((searchBitflags & target._bitflags) !== searchBitflags)
54
+ return NULL;
55
+ return algorithm(preparedSearch, target);
56
+ };
57
+ var go = (search, targets, options) => {
58
+ if (!search)
59
+ return options?.all ? all(targets, options) : noResults;
60
+ var preparedSearch = getPreparedSearch(search);
61
+ var searchBitflags = preparedSearch.bitflags;
62
+ var containsSpace = preparedSearch.containsSpace;
63
+ var threshold = denormalizeScore(options?.threshold || 0);
64
+ var limit = options?.limit || INFINITY;
65
+ var resultsLen = 0;
66
+ var limitedCount = 0;
67
+ var targetsLen = targets.length;
68
+ function push_result(result) {
69
+ if (resultsLen < limit) {
70
+ q.add(result);
71
+ ++resultsLen;
72
+ } else {
73
+ ++limitedCount;
74
+ if (result._score > q.peek()._score)
75
+ q.replaceTop(result);
76
+ }
77
+ }
78
+ if (options?.key) {
79
+ var key = options.key;
80
+ for (var i = 0;i < targetsLen; ++i) {
81
+ var obj = targets[i];
82
+ var target = getValue(obj, key);
83
+ if (!target)
84
+ continue;
85
+ if (!isPrepared(target))
86
+ target = getPrepared(target);
87
+ if ((searchBitflags & target._bitflags) !== searchBitflags)
88
+ continue;
89
+ var result = algorithm(preparedSearch, target);
90
+ if (result === NULL)
91
+ continue;
92
+ if (result._score < threshold)
93
+ continue;
94
+ result.obj = obj;
95
+ push_result(result);
96
+ }
97
+ } else if (options?.keys) {
98
+ var keys = options.keys;
99
+ var keysLen = keys.length;
100
+ outer:
101
+ for (var i = 0;i < targetsLen; ++i) {
102
+ var obj = targets[i];
103
+ {
104
+ var keysBitflags = 0;
105
+ for (var keyI = 0;keyI < keysLen; ++keyI) {
106
+ var key = keys[keyI];
107
+ var target = getValue(obj, key);
108
+ if (!target) {
109
+ tmpTargets[keyI] = noTarget;
110
+ continue;
111
+ }
112
+ if (!isPrepared(target))
113
+ target = getPrepared(target);
114
+ tmpTargets[keyI] = target;
115
+ keysBitflags |= target._bitflags;
116
+ }
117
+ if ((searchBitflags & keysBitflags) !== searchBitflags)
118
+ continue;
119
+ }
120
+ if (containsSpace)
121
+ for (let i = 0;i < preparedSearch.spaceSearches.length; i++)
122
+ keysSpacesBestScores[i] = NEGATIVE_INFINITY;
123
+ for (var keyI = 0;keyI < keysLen; ++keyI) {
124
+ target = tmpTargets[keyI];
125
+ if (target === noTarget) {
126
+ tmpResults[keyI] = noTarget;
127
+ continue;
128
+ }
129
+ tmpResults[keyI] = algorithm(preparedSearch, target, false, containsSpace);
130
+ if (tmpResults[keyI] === NULL) {
131
+ tmpResults[keyI] = noTarget;
132
+ continue;
133
+ }
134
+ if (containsSpace)
135
+ for (let i = 0;i < preparedSearch.spaceSearches.length; i++) {
136
+ if (allowPartialMatchScores[i] > -1000) {
137
+ if (keysSpacesBestScores[i] > NEGATIVE_INFINITY) {
138
+ var tmp = (keysSpacesBestScores[i] + allowPartialMatchScores[i]) / 4;
139
+ if (tmp > keysSpacesBestScores[i])
140
+ keysSpacesBestScores[i] = tmp;
141
+ }
142
+ }
143
+ if (allowPartialMatchScores[i] > keysSpacesBestScores[i])
144
+ keysSpacesBestScores[i] = allowPartialMatchScores[i];
145
+ }
146
+ }
147
+ if (containsSpace) {
148
+ for (let i = 0;i < preparedSearch.spaceSearches.length; i++) {
149
+ if (keysSpacesBestScores[i] === NEGATIVE_INFINITY)
150
+ continue outer;
151
+ }
152
+ } else {
153
+ var hasAtLeast1Match = false;
154
+ for (let i = 0;i < keysLen; i++) {
155
+ if (tmpResults[i]._score !== NEGATIVE_INFINITY) {
156
+ hasAtLeast1Match = true;
157
+ break;
158
+ }
159
+ }
160
+ if (!hasAtLeast1Match)
161
+ continue;
162
+ }
163
+ var objResults = new KeysResult(keysLen);
164
+ for (let i = 0;i < keysLen; i++) {
165
+ objResults[i] = tmpResults[i];
166
+ }
167
+ if (containsSpace) {
168
+ var score = 0;
169
+ for (let i = 0;i < preparedSearch.spaceSearches.length; i++)
170
+ score += keysSpacesBestScores[i];
171
+ } else {
172
+ var score = NEGATIVE_INFINITY;
173
+ for (let i = 0;i < keysLen; i++) {
174
+ var result = objResults[i];
175
+ if (result._score > -1000) {
176
+ if (score > NEGATIVE_INFINITY) {
177
+ var tmp = (score + result._score) / 4;
178
+ if (tmp > score)
179
+ score = tmp;
180
+ }
181
+ }
182
+ if (result._score > score)
183
+ score = result._score;
184
+ }
185
+ }
186
+ objResults.obj = obj;
187
+ objResults._score = score;
188
+ if (options?.scoreFn) {
189
+ score = options.scoreFn(objResults);
190
+ if (!score)
191
+ continue;
192
+ score = denormalizeScore(score);
193
+ objResults._score = score;
194
+ }
195
+ if (score < threshold)
196
+ continue;
197
+ push_result(objResults);
198
+ }
199
+ } else {
200
+ for (var i = 0;i < targetsLen; ++i) {
201
+ var target = targets[i];
202
+ if (!target)
203
+ continue;
204
+ if (!isPrepared(target))
205
+ target = getPrepared(target);
206
+ if ((searchBitflags & target._bitflags) !== searchBitflags)
207
+ continue;
208
+ var result = algorithm(preparedSearch, target);
209
+ if (result === NULL)
210
+ continue;
211
+ if (result._score < threshold)
212
+ continue;
213
+ push_result(result);
214
+ }
215
+ }
216
+ if (resultsLen === 0)
217
+ return noResults;
218
+ var results = new Array(resultsLen);
219
+ for (var i = resultsLen - 1;i >= 0; --i)
220
+ results[i] = q.poll();
221
+ results.total = resultsLen + limitedCount;
222
+ return results;
223
+ };
224
+ var highlight = (result, open = "<b>", close = "</b>") => {
225
+ var callback = typeof open === "function" ? open : undefined;
226
+ var target = result.target;
227
+ var targetLen = target.length;
228
+ var indexes = result.indexes;
229
+ var highlighted = "";
230
+ var matchI = 0;
231
+ var indexesI = 0;
232
+ var opened = false;
233
+ var parts = [];
234
+ for (var i = 0;i < targetLen; ++i) {
235
+ var char = target[i];
236
+ if (indexes[indexesI] === i) {
237
+ ++indexesI;
238
+ if (!opened) {
239
+ opened = true;
240
+ if (callback) {
241
+ parts.push(highlighted);
242
+ highlighted = "";
243
+ } else {
244
+ highlighted += open;
245
+ }
246
+ }
247
+ if (indexesI === indexes.length) {
248
+ if (callback) {
249
+ highlighted += char;
250
+ parts.push(callback(highlighted, matchI++));
251
+ highlighted = "";
252
+ parts.push(target.substr(i + 1));
253
+ } else {
254
+ highlighted += char + close + target.substr(i + 1);
255
+ }
256
+ break;
257
+ }
258
+ } else {
259
+ if (opened) {
260
+ opened = false;
261
+ if (callback) {
262
+ parts.push(callback(highlighted, matchI++));
263
+ highlighted = "";
264
+ } else {
265
+ highlighted += close;
266
+ }
267
+ }
268
+ }
269
+ highlighted += char;
270
+ }
271
+ return callback ? parts : highlighted;
272
+ };
273
+ var prepare = (target) => {
274
+ if (typeof target === "number")
275
+ target = "" + target;
276
+ else if (typeof target !== "string")
277
+ target = "";
278
+ var info = prepareLowerInfo(target);
279
+ return new_result(target, { _targetLower: info._lower, _targetLowerCodes: info.lowerCodes, _bitflags: info.bitflags });
280
+ };
281
+ var cleanup = () => {
282
+ preparedCache.clear();
283
+ preparedSearchCache.clear();
284
+ };
285
+
286
+ class Result {
287
+ get ["indexes"]() {
288
+ return this._indexes.slice(0, this._indexes.len).sort((a, b) => a - b);
289
+ }
290
+ set ["indexes"](indexes) {
291
+ return this._indexes = indexes;
292
+ }
293
+ ["highlight"](open, close) {
294
+ return highlight(this, open, close);
295
+ }
296
+ get ["score"]() {
297
+ return normalizeScore(this._score);
298
+ }
299
+ set ["score"](score) {
300
+ this._score = denormalizeScore(score);
301
+ }
302
+ }
303
+
304
+ class KeysResult extends Array {
305
+ get ["score"]() {
306
+ return normalizeScore(this._score);
307
+ }
308
+ set ["score"](score) {
309
+ this._score = denormalizeScore(score);
310
+ }
311
+ }
312
+ var new_result = (target, options) => {
313
+ const result = new Result;
314
+ result["target"] = target;
315
+ result["obj"] = options.obj ?? NULL;
316
+ result._score = options._score ?? NEGATIVE_INFINITY;
317
+ result._indexes = options._indexes ?? [];
318
+ result._targetLower = options._targetLower ?? "";
319
+ result._targetLowerCodes = options._targetLowerCodes ?? NULL;
320
+ result._nextBeginningIndexes = options._nextBeginningIndexes ?? NULL;
321
+ result._bitflags = options._bitflags ?? 0;
322
+ return result;
323
+ };
324
+ var normalizeScore = (score) => {
325
+ if (score === NEGATIVE_INFINITY)
326
+ return 0;
327
+ if (score > 1)
328
+ return score;
329
+ return Math.E ** (((-score + 1) ** 0.04307 - 1) * -2);
330
+ };
331
+ var denormalizeScore = (normalizedScore) => {
332
+ if (normalizedScore === 0)
333
+ return NEGATIVE_INFINITY;
334
+ if (normalizedScore > 1)
335
+ return normalizedScore;
336
+ return 1 - Math.pow(Math.log(normalizedScore) / -2 + 1, 1 / 0.04307);
337
+ };
338
+ var prepareSearch = (search) => {
339
+ if (typeof search === "number")
340
+ search = "" + search;
341
+ else if (typeof search !== "string")
342
+ search = "";
343
+ search = search.trim();
344
+ var info = prepareLowerInfo(search);
345
+ var spaceSearches = [];
346
+ if (info.containsSpace) {
347
+ var searches = search.split(/\s+/);
348
+ searches = [...new Set(searches)];
349
+ for (var i = 0;i < searches.length; i++) {
350
+ if (searches[i] === "")
351
+ continue;
352
+ var _info = prepareLowerInfo(searches[i]);
353
+ spaceSearches.push({ lowerCodes: _info.lowerCodes, _lower: searches[i].toLowerCase(), containsSpace: false });
354
+ }
355
+ }
356
+ return { lowerCodes: info.lowerCodes, _lower: info._lower, containsSpace: info.containsSpace, bitflags: info.bitflags, spaceSearches };
357
+ };
358
+ var getPrepared = (target) => {
359
+ if (target.length > 999)
360
+ return prepare(target);
361
+ var targetPrepared = preparedCache.get(target);
362
+ if (targetPrepared !== undefined)
363
+ return targetPrepared;
364
+ targetPrepared = prepare(target);
365
+ preparedCache.set(target, targetPrepared);
366
+ return targetPrepared;
367
+ };
368
+ var getPreparedSearch = (search) => {
369
+ if (search.length > 999)
370
+ return prepareSearch(search);
371
+ var searchPrepared = preparedSearchCache.get(search);
372
+ if (searchPrepared !== undefined)
373
+ return searchPrepared;
374
+ searchPrepared = prepareSearch(search);
375
+ preparedSearchCache.set(search, searchPrepared);
376
+ return searchPrepared;
377
+ };
378
+ var all = (targets, options) => {
379
+ var results = [];
380
+ results.total = targets.length;
381
+ var limit = options?.limit || INFINITY;
382
+ if (options?.key) {
383
+ for (var i = 0;i < targets.length; i++) {
384
+ var obj = targets[i];
385
+ var target = getValue(obj, options.key);
386
+ if (target == NULL)
387
+ continue;
388
+ if (!isPrepared(target))
389
+ target = getPrepared(target);
390
+ var result = new_result(target.target, { _score: target._score, obj });
391
+ results.push(result);
392
+ if (results.length >= limit)
393
+ return results;
394
+ }
395
+ } else if (options?.keys) {
396
+ for (var i = 0;i < targets.length; i++) {
397
+ var obj = targets[i];
398
+ var objResults = new KeysResult(options.keys.length);
399
+ for (var keyI = options.keys.length - 1;keyI >= 0; --keyI) {
400
+ var target = getValue(obj, options.keys[keyI]);
401
+ if (!target) {
402
+ objResults[keyI] = noTarget;
403
+ continue;
404
+ }
405
+ if (!isPrepared(target))
406
+ target = getPrepared(target);
407
+ target._score = NEGATIVE_INFINITY;
408
+ target._indexes.len = 0;
409
+ objResults[keyI] = target;
410
+ }
411
+ objResults.obj = obj;
412
+ objResults._score = NEGATIVE_INFINITY;
413
+ results.push(objResults);
414
+ if (results.length >= limit)
415
+ return results;
416
+ }
417
+ } else {
418
+ for (var i = 0;i < targets.length; i++) {
419
+ var target = targets[i];
420
+ if (target == NULL)
421
+ continue;
422
+ if (!isPrepared(target))
423
+ target = getPrepared(target);
424
+ target._score = NEGATIVE_INFINITY;
425
+ target._indexes.len = 0;
426
+ results.push(target);
427
+ if (results.length >= limit)
428
+ return results;
429
+ }
430
+ }
431
+ return results;
432
+ };
433
+ var algorithm = (preparedSearch, prepared, allowSpaces = false, allowPartialMatch = false) => {
434
+ if (allowSpaces === false && preparedSearch.containsSpace)
435
+ return algorithmSpaces(preparedSearch, prepared, allowPartialMatch);
436
+ var searchLower = preparedSearch._lower;
437
+ var searchLowerCodes = preparedSearch.lowerCodes;
438
+ var searchLowerCode = searchLowerCodes[0];
439
+ var targetLowerCodes = prepared._targetLowerCodes;
440
+ var searchLen = searchLowerCodes.length;
441
+ var targetLen = targetLowerCodes.length;
442
+ var searchI = 0;
443
+ var targetI = 0;
444
+ var matchesSimpleLen = 0;
445
+ for (;; ) {
446
+ var isMatch = searchLowerCode === targetLowerCodes[targetI];
447
+ if (isMatch) {
448
+ matchesSimple[matchesSimpleLen++] = targetI;
449
+ ++searchI;
450
+ if (searchI === searchLen)
451
+ break;
452
+ searchLowerCode = searchLowerCodes[searchI];
453
+ }
454
+ ++targetI;
455
+ if (targetI >= targetLen)
456
+ return NULL;
457
+ }
458
+ var searchI = 0;
459
+ var successStrict = false;
460
+ var matchesStrictLen = 0;
461
+ var nextBeginningIndexes = prepared._nextBeginningIndexes;
462
+ if (nextBeginningIndexes === NULL)
463
+ nextBeginningIndexes = prepared._nextBeginningIndexes = prepareNextBeginningIndexes(prepared.target);
464
+ targetI = matchesSimple[0] === 0 ? 0 : nextBeginningIndexes[matchesSimple[0] - 1];
465
+ var backtrackCount = 0;
466
+ if (targetI !== targetLen)
467
+ for (;; ) {
468
+ if (targetI >= targetLen) {
469
+ if (searchI <= 0)
470
+ break;
471
+ ++backtrackCount;
472
+ if (backtrackCount > 200)
473
+ break;
474
+ --searchI;
475
+ var lastMatch = matchesStrict[--matchesStrictLen];
476
+ targetI = nextBeginningIndexes[lastMatch];
477
+ } else {
478
+ var isMatch = searchLowerCodes[searchI] === targetLowerCodes[targetI];
479
+ if (isMatch) {
480
+ matchesStrict[matchesStrictLen++] = targetI;
481
+ ++searchI;
482
+ if (searchI === searchLen) {
483
+ successStrict = true;
484
+ break;
485
+ }
486
+ ++targetI;
487
+ } else {
488
+ targetI = nextBeginningIndexes[targetI];
489
+ }
490
+ }
491
+ }
492
+ var substringIndex = searchLen <= 1 ? -1 : prepared._targetLower.indexOf(searchLower, matchesSimple[0]);
493
+ var isSubstring = !!~substringIndex;
494
+ var isSubstringBeginning = !isSubstring ? false : substringIndex === 0 || prepared._nextBeginningIndexes[substringIndex - 1] === substringIndex;
495
+ if (isSubstring && !isSubstringBeginning) {
496
+ for (var i = 0;i < nextBeginningIndexes.length; i = nextBeginningIndexes[i]) {
497
+ if (i <= substringIndex)
498
+ continue;
499
+ for (var s = 0;s < searchLen; s++)
500
+ if (searchLowerCodes[s] !== prepared._targetLowerCodes[i + s])
501
+ break;
502
+ if (s === searchLen) {
503
+ substringIndex = i;
504
+ isSubstringBeginning = true;
505
+ break;
506
+ }
507
+ }
508
+ }
509
+ var calculateScore = (matches) => {
510
+ var score = 0;
511
+ var extraMatchGroupCount = 0;
512
+ for (var i = 1;i < searchLen; ++i) {
513
+ if (matches[i] - matches[i - 1] !== 1) {
514
+ score -= matches[i];
515
+ ++extraMatchGroupCount;
516
+ }
517
+ }
518
+ var unmatchedDistance = matches[searchLen - 1] - matches[0] - (searchLen - 1);
519
+ score -= (12 + unmatchedDistance) * extraMatchGroupCount;
520
+ if (matches[0] !== 0)
521
+ score -= matches[0] * matches[0] * 0.2;
522
+ if (!successStrict) {
523
+ score *= 1000;
524
+ } else {
525
+ var uniqueBeginningIndexes = 1;
526
+ for (var i = nextBeginningIndexes[0];i < targetLen; i = nextBeginningIndexes[i])
527
+ ++uniqueBeginningIndexes;
528
+ if (uniqueBeginningIndexes > 24)
529
+ score *= (uniqueBeginningIndexes - 24) * 10;
530
+ }
531
+ score -= (targetLen - searchLen) / 2;
532
+ if (isSubstring)
533
+ score /= 1 + searchLen * searchLen * 1;
534
+ if (isSubstringBeginning)
535
+ score /= 1 + searchLen * searchLen * 1;
536
+ score -= (targetLen - searchLen) / 2;
537
+ return score;
538
+ };
539
+ if (!successStrict) {
540
+ if (isSubstring)
541
+ for (var i = 0;i < searchLen; ++i)
542
+ matchesSimple[i] = substringIndex + i;
543
+ var matchesBest = matchesSimple;
544
+ var score = calculateScore(matchesBest);
545
+ } else {
546
+ if (isSubstringBeginning) {
547
+ for (var i = 0;i < searchLen; ++i)
548
+ matchesSimple[i] = substringIndex + i;
549
+ var matchesBest = matchesSimple;
550
+ var score = calculateScore(matchesSimple);
551
+ } else {
552
+ var matchesBest = matchesStrict;
553
+ var score = calculateScore(matchesStrict);
554
+ }
555
+ }
556
+ prepared._score = score;
557
+ for (var i = 0;i < searchLen; ++i)
558
+ prepared._indexes[i] = matchesBest[i];
559
+ prepared._indexes.len = searchLen;
560
+ const result = new Result;
561
+ result.target = prepared.target;
562
+ result._score = prepared._score;
563
+ result._indexes = prepared._indexes;
564
+ return result;
565
+ };
566
+ var algorithmSpaces = (preparedSearch, target, allowPartialMatch) => {
567
+ var seen_indexes = new Set;
568
+ var score = 0;
569
+ var result = NULL;
570
+ var first_seen_index_last_search = 0;
571
+ var searches = preparedSearch.spaceSearches;
572
+ var searchesLen = searches.length;
573
+ var changeslen = 0;
574
+ var resetNextBeginningIndexes = () => {
575
+ for (let i = changeslen - 1;i >= 0; i--)
576
+ target._nextBeginningIndexes[nextBeginningIndexesChanges[i * 2 + 0]] = nextBeginningIndexesChanges[i * 2 + 1];
577
+ };
578
+ var hasAtLeast1Match = false;
579
+ for (var i = 0;i < searchesLen; ++i) {
580
+ allowPartialMatchScores[i] = NEGATIVE_INFINITY;
581
+ var search = searches[i];
582
+ result = algorithm(search, target);
583
+ if (allowPartialMatch) {
584
+ if (result === NULL)
585
+ continue;
586
+ hasAtLeast1Match = true;
587
+ } else {
588
+ if (result === NULL) {
589
+ resetNextBeginningIndexes();
590
+ return NULL;
591
+ }
592
+ }
593
+ var isTheLastSearch = i === searchesLen - 1;
594
+ if (!isTheLastSearch) {
595
+ var indexes = result._indexes;
596
+ var indexesIsConsecutiveSubstring = true;
597
+ for (let i = 0;i < indexes.len - 1; i++) {
598
+ if (indexes[i + 1] - indexes[i] !== 1) {
599
+ indexesIsConsecutiveSubstring = false;
600
+ break;
601
+ }
602
+ }
603
+ if (indexesIsConsecutiveSubstring) {
604
+ var newBeginningIndex = indexes[indexes.len - 1] + 1;
605
+ var toReplace = target._nextBeginningIndexes[newBeginningIndex - 1];
606
+ for (let i = newBeginningIndex - 1;i >= 0; i--) {
607
+ if (toReplace !== target._nextBeginningIndexes[i])
608
+ break;
609
+ target._nextBeginningIndexes[i] = newBeginningIndex;
610
+ nextBeginningIndexesChanges[changeslen * 2 + 0] = i;
611
+ nextBeginningIndexesChanges[changeslen * 2 + 1] = toReplace;
612
+ changeslen++;
613
+ }
614
+ }
615
+ }
616
+ score += result._score / searchesLen;
617
+ allowPartialMatchScores[i] = result._score / searchesLen;
618
+ if (result._indexes[0] < first_seen_index_last_search) {
619
+ score -= (first_seen_index_last_search - result._indexes[0]) * 2;
620
+ }
621
+ first_seen_index_last_search = result._indexes[0];
622
+ for (var j = 0;j < result._indexes.len; ++j)
623
+ seen_indexes.add(result._indexes[j]);
624
+ }
625
+ if (allowPartialMatch && !hasAtLeast1Match)
626
+ return NULL;
627
+ resetNextBeginningIndexes();
628
+ var allowSpacesResult = algorithm(preparedSearch, target, true);
629
+ if (allowSpacesResult !== NULL && allowSpacesResult._score > score) {
630
+ if (allowPartialMatch) {
631
+ for (var i = 0;i < searchesLen; ++i) {
632
+ allowPartialMatchScores[i] = allowSpacesResult._score / searchesLen;
633
+ }
634
+ }
635
+ return allowSpacesResult;
636
+ }
637
+ if (allowPartialMatch)
638
+ result = target;
639
+ result._score = score;
640
+ var i = 0;
641
+ for (let index of seen_indexes)
642
+ result._indexes[i++] = index;
643
+ result._indexes.len = i;
644
+ return result;
645
+ };
646
+ var remove_accents = (str) => str.replace(/\p{Script=Latin}+/gu, (match) => match.normalize("NFD")).replace(/[\u0300-\u036f]/g, "");
647
+ var prepareLowerInfo = (str) => {
648
+ str = remove_accents(str);
649
+ var strLen = str.length;
650
+ var lower = str.toLowerCase();
651
+ var lowerCodes = [];
652
+ var bitflags = 0;
653
+ var containsSpace = false;
654
+ for (var i = 0;i < strLen; ++i) {
655
+ var lowerCode = lowerCodes[i] = lower.charCodeAt(i);
656
+ if (lowerCode === 32) {
657
+ containsSpace = true;
658
+ continue;
659
+ }
660
+ var bit = lowerCode >= 97 && lowerCode <= 122 ? lowerCode - 97 : lowerCode >= 48 && lowerCode <= 57 ? 26 : lowerCode <= 127 ? 30 : 31;
661
+ bitflags |= 1 << bit;
662
+ }
663
+ return { lowerCodes, bitflags, containsSpace, _lower: lower };
664
+ };
665
+ var prepareBeginningIndexes = (target) => {
666
+ var targetLen = target.length;
667
+ var beginningIndexes = [];
668
+ var beginningIndexesLen = 0;
669
+ var wasUpper = false;
670
+ var wasAlphanum = false;
671
+ for (var i = 0;i < targetLen; ++i) {
672
+ var targetCode = target.charCodeAt(i);
673
+ var isUpper = targetCode >= 65 && targetCode <= 90;
674
+ var isAlphanum = isUpper || targetCode >= 97 && targetCode <= 122 || targetCode >= 48 && targetCode <= 57;
675
+ var isBeginning = isUpper && !wasUpper || !wasAlphanum || !isAlphanum;
676
+ wasUpper = isUpper;
677
+ wasAlphanum = isAlphanum;
678
+ if (isBeginning)
679
+ beginningIndexes[beginningIndexesLen++] = i;
680
+ }
681
+ return beginningIndexes;
682
+ };
683
+ var prepareNextBeginningIndexes = (target) => {
684
+ target = remove_accents(target);
685
+ var targetLen = target.length;
686
+ var beginningIndexes = prepareBeginningIndexes(target);
687
+ var nextBeginningIndexes = [];
688
+ var lastIsBeginning = beginningIndexes[0];
689
+ var lastIsBeginningI = 0;
690
+ for (var i = 0;i < targetLen; ++i) {
691
+ if (lastIsBeginning > i) {
692
+ nextBeginningIndexes[i] = lastIsBeginning;
693
+ } else {
694
+ lastIsBeginning = beginningIndexes[++lastIsBeginningI];
695
+ nextBeginningIndexes[i] = lastIsBeginning === undefined ? targetLen : lastIsBeginning;
696
+ }
697
+ }
698
+ return nextBeginningIndexes;
699
+ };
700
+ var preparedCache = new Map;
701
+ var preparedSearchCache = new Map;
702
+ var matchesSimple = [];
703
+ var matchesStrict = [];
704
+ var nextBeginningIndexesChanges = [];
705
+ var keysSpacesBestScores = [];
706
+ var allowPartialMatchScores = [];
707
+ var tmpTargets = [];
708
+ var tmpResults = [];
709
+ var getValue = (obj, prop) => {
710
+ var tmp = obj[prop];
711
+ if (tmp !== undefined)
712
+ return tmp;
713
+ if (typeof prop === "function")
714
+ return prop(obj);
715
+ var segs = prop;
716
+ if (!Array.isArray(prop))
717
+ segs = prop.split(".");
718
+ var len = segs.length;
719
+ var i = -1;
720
+ while (obj && ++i < len)
721
+ obj = obj[segs[i]];
722
+ return obj;
723
+ };
724
+ var isPrepared = (x) => {
725
+ return typeof x === "object" && typeof x._bitflags === "number";
726
+ };
727
+ var INFINITY = Infinity;
728
+ var NEGATIVE_INFINITY = -INFINITY;
729
+ var noResults = [];
730
+ noResults.total = 0;
731
+ var NULL = null;
732
+ var noTarget = prepare("");
733
+ var fastpriorityqueue = (r) => {
734
+ var e = [], o = 0, a = {}, v = (r) => {
735
+ for (var a = 0, v = e[a], c = 1;c < o; ) {
736
+ var s = c + 1;
737
+ a = c, s < o && e[s]._score < e[c]._score && (a = s), e[a - 1 >> 1] = e[a], c = 1 + (a << 1);
738
+ }
739
+ for (var f = a - 1 >> 1;a > 0 && v._score < e[f]._score; f = (a = f) - 1 >> 1)
740
+ e[a] = e[f];
741
+ e[a] = v;
742
+ };
743
+ return a.add = (r) => {
744
+ var a = o;
745
+ e[o++] = r;
746
+ for (var v = a - 1 >> 1;a > 0 && r._score < e[v]._score; v = (a = v) - 1 >> 1)
747
+ e[a] = e[v];
748
+ e[a] = r;
749
+ }, a.poll = (r) => {
750
+ if (o !== 0) {
751
+ var a = e[0];
752
+ return e[0] = e[--o], v(), a;
753
+ }
754
+ }, a.peek = (r) => {
755
+ if (o !== 0)
756
+ return e[0];
757
+ }, a.replaceTop = (r) => {
758
+ e[0] = r, v();
759
+ }, a;
760
+ };
761
+ var q = fastpriorityqueue();
762
+ return { single, go, prepare, cleanup };
763
+ });
764
+ });
765
+
766
+ // src/tui.tsx
767
+ import { Plugin } from "@opencode/plugin/tui";
768
+ import { createEffect as createEffect3, createMemo as createMemo3, onCleanup as onCleanup4, onMount as onMount3, untrack as untrack3 } from "solid-js";
769
+
770
+ // src/composer.ts
771
+ import { BoxRenderable, TextareaRenderable, InputRenderable } from "@opentui/core";
772
+ function snapshot(editor, session) {
773
+ const selection = editor.getSelection();
774
+ return {
775
+ editor,
776
+ session,
777
+ text: editor.plainText,
778
+ cursor: editor.getTextRange(0, editor.cursorOffset).length,
779
+ selection: selection && {
780
+ start: editor.getTextRange(0, selection.start).length,
781
+ end: editor.getTextRange(0, selection.end).length
782
+ },
783
+ marks: editor.extmarks.getAll().map((mark) => ({
784
+ id: mark.id,
785
+ start: editor.getTextRange(0, mark.start).length,
786
+ end: editor.getTextRange(0, mark.end).length,
787
+ type: mark.typeId,
788
+ virtual: mark.virtual,
789
+ data: JSON.stringify(mark.data),
790
+ pasted: typeof mark.data?.pasted === "string" ? String(mark.data.pasted) : undefined
791
+ }))
792
+ };
793
+ }
794
+ function applyEdit(saved, current, edit) {
795
+ if (saved.editor !== current.editor || saved.editor.isDestroyed || saved.session !== current.session || saved.text !== current.text || saved.cursor !== current.cursor || JSON.stringify(saved.selection) !== JSON.stringify(current.selection) || JSON.stringify(saved.marks) !== JSON.stringify(current.marks))
796
+ return "stale";
797
+ if (edit.start < 0 || edit.end < edit.start || edit.end > saved.text.length)
798
+ return "range";
799
+ if (saved.marks.some((mark) => edit.start < mark.end && edit.end > mark.start || edit.start === edit.end && edit.start > mark.start && edit.start < mark.end))
800
+ return "protected";
801
+ const editor = current.editor;
802
+ const start = editor.editBuffer.measureText(saved.text.slice(0, edit.start));
803
+ const end = editor.editBuffer.measureText(saved.text.slice(0, edit.end));
804
+ if (editor.getTextRange(0, start).length !== edit.start || editor.getTextRange(0, end).length !== edit.end)
805
+ return "range";
806
+ if (start !== end)
807
+ editor.setSelection(start, end);
808
+ if (start === end)
809
+ editor.cursorOffset = start;
810
+ editor.insertText(edit.text);
811
+ return "applied";
812
+ }
813
+ function savedText(saved, selection = false) {
814
+ const range = selection ? saved.selection : { start: 0, end: saved.text.length };
815
+ if (!range)
816
+ return "";
817
+ const marks = saved.marks.filter((mark) => mark.start < range.end && mark.end > range.start).toSorted((a, b) => b.start - a.start);
818
+ if (marks.some((mark) => mark.start < range.start || mark.end > range.end))
819
+ return "";
820
+ return marks.reduce((text, mark) => text.slice(0, mark.start - range.start) + (mark.pasted ?? "") + text.slice(mark.end - range.start), saved.text.slice(range.start, range.end));
821
+ }
822
+ function bindComposer(context, input, changed) {
823
+ const marker = new BoxRenderable(context.renderer, { width: 0, height: 0, position: "absolute" });
824
+ let editor;
825
+ let anchor;
826
+ let disposed = false;
827
+ const detach = () => {
828
+ editor?.editBuffer.off("content-changed", changed);
829
+ editor?.editBuffer.off("cursor-changed", changed);
830
+ editor?.off("traits-changed", changed);
831
+ editor?.off("destroyed", attach);
832
+ editor = undefined;
833
+ anchor = undefined;
834
+ };
835
+ const attach = () => {
836
+ if (disposed)
837
+ return;
838
+ if (!editor || editor.isDestroyed || !editor.parent) {
839
+ detach();
840
+ const binding = findComposer(marker, context.renderer.root);
841
+ editor = binding?.editor;
842
+ anchor = binding?.anchor;
843
+ editor?.editBuffer.on("content-changed", changed);
844
+ editor?.editBuffer.on("cursor-changed", changed);
845
+ editor?.on("traits-changed", changed);
846
+ editor?.on("destroyed", attach);
847
+ }
848
+ changed();
849
+ };
850
+ const current = (allowSelection = false, allowBlur = false) => {
851
+ const route = context.ui.router.current();
852
+ if (!editor || editor.isDestroyed || !editor.visible || !editor.parent || marker.isDestroyed || input.mode !== "normal")
853
+ return;
854
+ if (route.type === "plugin" || (route.type === "session" ? route.sessionID : undefined) !== input.sessionID)
855
+ return;
856
+ if (!allowBlur && (context.renderer.currentFocusedEditor !== editor || !editor.focused || context.keymap.mode.current() !== "base"))
857
+ return;
858
+ if (!allowSelection && (editor.hasSelection() || context.renderer.hasSelection))
859
+ return;
860
+ if (editor.traits.capture?.includes("navigate") || editor.traits.capture?.includes("submit"))
861
+ return;
862
+ return snapshot(editor, input.sessionID);
863
+ };
864
+ return {
865
+ marker,
866
+ editor: () => editor,
867
+ anchor: () => anchor,
868
+ current,
869
+ mount() {
870
+ attach();
871
+ context.renderer.on("focused_editor", attach);
872
+ },
873
+ apply(saved, edit) {
874
+ const value = current(true);
875
+ return value ? applyEdit(saved, value, edit) : "stale";
876
+ },
877
+ dispose() {
878
+ disposed = true;
879
+ context.renderer.off("focused_editor", attach);
880
+ detach();
881
+ }
882
+ };
883
+ }
884
+ function findComposer(marker, root) {
885
+ const editors = (node) => node instanceof TextareaRenderable && !(node instanceof InputRenderable) ? [node] : node.getChildren().flatMap((child) => editors(child));
886
+ for (let node = marker.parent, depth = 0;node && node !== root && depth < 4; node = node.parent, depth++) {
887
+ const found = editors(node);
888
+ if (found.length > 1)
889
+ return;
890
+ if (found.length === 1)
891
+ return { editor: found[0], anchor: node };
892
+ }
893
+ }
894
+
895
+ // src/library.ts
896
+ function createLibrary(storage) {
897
+ const [state, update] = storage.store("state", { initial: { automaticSuggestions: true, prompts: [] } });
898
+ return {
899
+ state,
900
+ toggle: () => update((draft) => {
901
+ draft.automaticSuggestions = !draft.automaticSuggestions;
902
+ }),
903
+ async save(input, expected) {
904
+ if (!input.text.trim())
905
+ return { status: "empty" };
906
+ let result = { status: "conflict" };
907
+ await update((draft) => {
908
+ const current = expected && draft.prompts.find((prompt) => prompt.id === expected.id);
909
+ if (expected && (!current || current.updatedAt !== expected.updatedAt || current.text !== expected.text))
910
+ return;
911
+ const duplicate = draft.prompts.find((prompt) => prompt.text === input.text && prompt.id !== expected?.id);
912
+ if (duplicate) {
913
+ result = { status: "duplicate", prompt: { ...duplicate } };
914
+ return;
915
+ }
916
+ const prompt = {
917
+ id: expected?.id ?? crypto.randomUUID(),
918
+ text: input.text,
919
+ updatedAt: Math.max(Date.now(), (current?.updatedAt ?? 0) + 1)
920
+ };
921
+ if (current)
922
+ draft.prompts[draft.prompts.findIndex((item) => item.id === current.id)] = prompt;
923
+ if (!current)
924
+ draft.prompts.push(prompt);
925
+ result = { status: "saved", prompt };
926
+ });
927
+ return result;
928
+ },
929
+ async remove(expected) {
930
+ let removed = false;
931
+ await update((draft) => {
932
+ const index = draft.prompts.findIndex((prompt) => prompt.id === expected.id && prompt.updatedAt === expected.updatedAt && prompt.text === expected.text);
933
+ if (index < 0)
934
+ return;
935
+ draft.prompts.splice(index, 1);
936
+ removed = true;
937
+ });
938
+ return removed;
939
+ }
940
+ };
941
+ }
942
+
943
+ // src/search.ts
944
+ var import_fuzzysort = __toESM(require_fuzzysort(), 1);
945
+
946
+ // ../../node_modules/.bun/marked@17.0.1/node_modules/marked/lib/marked.esm.js
947
+ function L() {
948
+ return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
949
+ }
950
+ var T = L();
951
+ function Z(u) {
952
+ T = u;
953
+ }
954
+ var C = { exec: () => null };
955
+ function k(u, e = "") {
956
+ let t = typeof u == "string" ? u : u.source, n = { replace: (r, i) => {
957
+ let s = typeof i == "string" ? i : i.source;
958
+ return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
959
+ }, getRegex: () => new RegExp(t, e) };
960
+ return n;
961
+ }
962
+ var me = (() => {
963
+ try {
964
+ return !!new RegExp("(?<=1)(?<!1)");
965
+ } catch {
966
+ return false;
967
+ }
968
+ })();
969
+ var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u) => new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}#`), htmlBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i") };
970
+ var xe = /^(?:[ \t]*(?:\n|$))+/;
971
+ var be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
972
+ var Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
973
+ var I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
974
+ var Te = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
975
+ var N = /(?:[*+-]|\d{1,9}[.)])/;
976
+ var re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
977
+ var se = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
978
+ var Oe = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
979
+ var Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
980
+ var we = /^[^\n]+/;
981
+ var F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
982
+ var ye = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
983
+ var Pe = k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex();
984
+ var v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
985
+ var j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
986
+ var Se = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", j).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
987
+ var ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
988
+ var $e = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex();
989
+ var U = { blockquote: $e, code: be, def: ye, fences: Re, heading: Te, hr: I, html: Se, lheading: se, list: Pe, newline: xe, paragraph: ie, table: C, text: we };
990
+ var te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
991
+ var _e = { ...U, lheading: Oe, table: te, paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() };
992
+ var Le = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: C, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
993
+ ]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
994
+ var Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
995
+ var ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
996
+ var oe = /^( {2,}|\\)\n(?!\s*$)/;
997
+ var Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
998
+ var D = /[\p{P}\p{S}]/u;
999
+ var K = /[\s\p{P}\p{S}]/u;
1000
+ var ae = /[^\s\p{P}\p{S}]/u;
1001
+ var Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex();
1002
+ var le = /(?!~)[\p{P}\p{S}]/u;
1003
+ var Ie = /(?!~)[\s\p{P}\p{S}]/u;
1004
+ var Ee = /(?:[^\s\p{P}\p{S}]|~)/u;
1005
+ var Be = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", me ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
1006
+ var ue = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;
1007
+ var qe = k(ue, "u").replace(/punct/g, D).getRegex();
1008
+ var ve = k(ue, "u").replace(/punct/g, le).getRegex();
1009
+ var pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
1010
+ var De = k(pe, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex();
1011
+ var He = k(pe, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, Ie).replace(/punct/g, le).getRegex();
1012
+ var Ze = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex();
1013
+ var Ge = k(/\\(punct)/, "gu").replace(/punct/g, D).getRegex();
1014
+ var Ne = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
1015
+ var Qe = k(j).replace("(?:-->|$)", "-->").getRegex();
1016
+ var Fe = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
1017
+ var q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/;
1018
+ var je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
1019
+ var ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex();
1020
+ var he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex();
1021
+ var Ue = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex();
1022
+ var ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
1023
+ var W = { _backpedal: C, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: oe, code: ze, del: C, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: je, nolink: he, punctuation: Ce, reflink: ce, reflinkSearch: Ue, tag: Fe, text: Ae, url: C };
1024
+ var Ke = { ...W, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() };
1025
+ var G = { ...W, emStrongRDelimAst: He, emStrongLDelim: ve, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() };
1026
+ var We = { ...G, br: k(oe).replace("{2,}", "*").getRegex(), text: k(G.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
1027
+ var E = { normal: U, gfm: _e, pedantic: Le };
1028
+ var M = { normal: W, gfm: G, breaks: We, pedantic: Ke };
1029
+ var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
1030
+ var ke = (u) => Xe[u];
1031
+ function w(u, e) {
1032
+ if (e) {
1033
+ if (m.escapeTest.test(u))
1034
+ return u.replace(m.escapeReplace, ke);
1035
+ } else if (m.escapeTestNoEncode.test(u))
1036
+ return u.replace(m.escapeReplaceNoEncode, ke);
1037
+ return u;
1038
+ }
1039
+ function X(u) {
1040
+ try {
1041
+ u = encodeURI(u).replace(m.percentDecode, "%");
1042
+ } catch {
1043
+ return null;
1044
+ }
1045
+ return u;
1046
+ }
1047
+ function J(u, e) {
1048
+ let t = u.replace(m.findPipe, (i, s, a) => {
1049
+ let o = false, l = s;
1050
+ for (;--l >= 0 && a[l] === "\\"; )
1051
+ o = !o;
1052
+ return o ? "|" : " |";
1053
+ }), n = t.split(m.splitPipe), r = 0;
1054
+ if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e)
1055
+ if (n.length > e)
1056
+ n.splice(e);
1057
+ else
1058
+ for (;n.length < e; )
1059
+ n.push("");
1060
+ for (;r < n.length; r++)
1061
+ n[r] = n[r].trim().replace(m.slashPipe, "|");
1062
+ return n;
1063
+ }
1064
+ function z(u, e, t) {
1065
+ let n = u.length;
1066
+ if (n === 0)
1067
+ return "";
1068
+ let r = 0;
1069
+ for (;r < n; ) {
1070
+ let i = u.charAt(n - r - 1);
1071
+ if (i === e && !t)
1072
+ r++;
1073
+ else if (i !== e && t)
1074
+ r++;
1075
+ else
1076
+ break;
1077
+ }
1078
+ return u.slice(0, n - r);
1079
+ }
1080
+ function de(u, e) {
1081
+ if (u.indexOf(e[1]) === -1)
1082
+ return -1;
1083
+ let t = 0;
1084
+ for (let n = 0;n < u.length; n++)
1085
+ if (u[n] === "\\")
1086
+ n++;
1087
+ else if (u[n] === e[0])
1088
+ t++;
1089
+ else if (u[n] === e[1] && (t--, t < 0))
1090
+ return n;
1091
+ return t > 0 ? -2 : -1;
1092
+ }
1093
+ function ge(u, e, t, n, r) {
1094
+ let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
1095
+ n.state.inLink = true;
1096
+ let o = { type: u[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: a, tokens: n.inlineTokens(a) };
1097
+ return n.state.inLink = false, o;
1098
+ }
1099
+ function Je(u, e, t) {
1100
+ let n = u.match(t.other.indentCodeCompensation);
1101
+ if (n === null)
1102
+ return e;
1103
+ let r = n[1];
1104
+ return e.split(`
1105
+ `).map((i) => {
1106
+ let s = i.match(t.other.beginningSpace);
1107
+ if (s === null)
1108
+ return i;
1109
+ let [a] = s;
1110
+ return a.length >= r.length ? i.slice(r.length) : i;
1111
+ }).join(`
1112
+ `);
1113
+ }
1114
+ var y = class {
1115
+ options;
1116
+ rules;
1117
+ lexer;
1118
+ constructor(e) {
1119
+ this.options = e || T;
1120
+ }
1121
+ space(e) {
1122
+ let t = this.rules.block.newline.exec(e);
1123
+ if (t && t[0].length > 0)
1124
+ return { type: "space", raw: t[0] };
1125
+ }
1126
+ code(e) {
1127
+ let t = this.rules.block.code.exec(e);
1128
+ if (t) {
1129
+ let n = t[0].replace(this.rules.other.codeRemoveIndent, "");
1130
+ return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : z(n, `
1131
+ `) };
1132
+ }
1133
+ }
1134
+ fences(e) {
1135
+ let t = this.rules.block.fences.exec(e);
1136
+ if (t) {
1137
+ let n = t[0], r = Je(n, t[3] || "", this.rules);
1138
+ return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
1139
+ }
1140
+ }
1141
+ heading(e) {
1142
+ let t = this.rules.block.heading.exec(e);
1143
+ if (t) {
1144
+ let n = t[2].trim();
1145
+ if (this.rules.other.endingHash.test(n)) {
1146
+ let r = z(n, "#");
1147
+ (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
1148
+ }
1149
+ return { type: "heading", raw: t[0], depth: t[1].length, text: n, tokens: this.lexer.inline(n) };
1150
+ }
1151
+ }
1152
+ hr(e) {
1153
+ let t = this.rules.block.hr.exec(e);
1154
+ if (t)
1155
+ return { type: "hr", raw: z(t[0], `
1156
+ `) };
1157
+ }
1158
+ blockquote(e) {
1159
+ let t = this.rules.block.blockquote.exec(e);
1160
+ if (t) {
1161
+ let n = z(t[0], `
1162
+ `).split(`
1163
+ `), r = "", i = "", s = [];
1164
+ for (;n.length > 0; ) {
1165
+ let a = false, o = [], l;
1166
+ for (l = 0;l < n.length; l++)
1167
+ if (this.rules.other.blockquoteStart.test(n[l]))
1168
+ o.push(n[l]), a = true;
1169
+ else if (!a)
1170
+ o.push(n[l]);
1171
+ else
1172
+ break;
1173
+ n = n.slice(l);
1174
+ let p = o.join(`
1175
+ `), c = p.replace(this.rules.other.blockquoteSetextReplace, `
1176
+ $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
1177
+ r = r ? `${r}
1178
+ ${p}` : p, i = i ? `${i}
1179
+ ${c}` : c;
1180
+ let g = this.lexer.state.top;
1181
+ if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = g, n.length === 0)
1182
+ break;
1183
+ let h = s.at(-1);
1184
+ if (h?.type === "code")
1185
+ break;
1186
+ if (h?.type === "blockquote") {
1187
+ let R = h, f = R.raw + `
1188
+ ` + n.join(`
1189
+ `), O = this.blockquote(f);
1190
+ s[s.length - 1] = O, r = r.substring(0, r.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
1191
+ break;
1192
+ } else if (h?.type === "list") {
1193
+ let R = h, f = R.raw + `
1194
+ ` + n.join(`
1195
+ `), O = this.list(f);
1196
+ s[s.length - 1] = O, r = r.substring(0, r.length - h.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
1197
+ `);
1198
+ continue;
1199
+ }
1200
+ }
1201
+ return { type: "blockquote", raw: r, tokens: s, text: i };
1202
+ }
1203
+ }
1204
+ list(e) {
1205
+ let t = this.rules.block.list.exec(e);
1206
+ if (t) {
1207
+ let n = t[1].trim(), r = n.length > 1, i = { type: "list", raw: "", ordered: r, start: r ? +n.slice(0, -1) : "", loose: false, items: [] };
1208
+ n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
1209
+ let s = this.rules.other.listItemRegex(n), a = false;
1210
+ for (;e; ) {
1211
+ let l = false, p = "", c = "";
1212
+ if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
1213
+ break;
1214
+ p = t[0], e = e.substring(p.length);
1215
+ let g = t[2].split(`
1216
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (O) => " ".repeat(3 * O.length)), h = e.split(`
1217
+ `, 1)[0], R = !g.trim(), f = 0;
1218
+ if (this.options.pedantic ? (f = 2, c = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
1219
+ `, e = e.substring(h.length + 1), l = true), !l) {
1220
+ let O = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), fe = this.rules.other.htmlBeginRegex(f);
1221
+ for (;e; ) {
1222
+ let H = e.split(`
1223
+ `, 1)[0], A;
1224
+ if (h = H, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || fe.test(h) || O.test(h) || V.test(h))
1225
+ break;
1226
+ if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim())
1227
+ c += `
1228
+ ` + A.slice(f);
1229
+ else {
1230
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(g) || ee.test(g) || V.test(g))
1231
+ break;
1232
+ c += `
1233
+ ` + h;
1234
+ }
1235
+ !R && !h.trim() && (R = true), p += H + `
1236
+ `, e = e.substring(H.length + 1), g = A.slice(f);
1237
+ }
1238
+ }
1239
+ i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (a = true)), i.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(c), loose: false, text: c, tokens: [] }), i.raw += p;
1240
+ }
1241
+ let o = i.items.at(-1);
1242
+ if (o)
1243
+ o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
1244
+ else
1245
+ return;
1246
+ i.raw = i.raw.trimEnd();
1247
+ for (let l of i.items) {
1248
+ if (this.lexer.state.top = false, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
1249
+ if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), l.tokens[0]?.type === "text" || l.tokens[0]?.type === "paragraph") {
1250
+ l.tokens[0].raw = l.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), l.tokens[0].text = l.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
1251
+ for (let c = this.lexer.inlineQueue.length - 1;c >= 0; c--)
1252
+ if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)) {
1253
+ this.lexer.inlineQueue[c].src = this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask, "");
1254
+ break;
1255
+ }
1256
+ }
1257
+ let p = this.rules.other.listTaskCheckbox.exec(l.raw);
1258
+ if (p) {
1259
+ let c = { type: "checkbox", raw: p[0] + " ", checked: p[0] !== "[ ]" };
1260
+ l.checked = c.checked, i.loose ? l.tokens[0] && ["paragraph", "text"].includes(l.tokens[0].type) && "tokens" in l.tokens[0] && l.tokens[0].tokens ? (l.tokens[0].raw = c.raw + l.tokens[0].raw, l.tokens[0].text = c.raw + l.tokens[0].text, l.tokens[0].tokens.unshift(c)) : l.tokens.unshift({ type: "paragraph", raw: c.raw, text: c.raw, tokens: [c] }) : l.tokens.unshift(c);
1261
+ }
1262
+ }
1263
+ if (!i.loose) {
1264
+ let p = l.tokens.filter((g) => g.type === "space"), c = p.length > 0 && p.some((g) => this.rules.other.anyLine.test(g.raw));
1265
+ i.loose = c;
1266
+ }
1267
+ }
1268
+ if (i.loose)
1269
+ for (let l of i.items) {
1270
+ l.loose = true;
1271
+ for (let p of l.tokens)
1272
+ p.type === "text" && (p.type = "paragraph");
1273
+ }
1274
+ return i;
1275
+ }
1276
+ }
1277
+ html(e) {
1278
+ let t = this.rules.block.html.exec(e);
1279
+ if (t)
1280
+ return { type: "html", block: true, raw: t[0], pre: t[1] === "pre" || t[1] === "script" || t[1] === "style", text: t[0] };
1281
+ }
1282
+ def(e) {
1283
+ let t = this.rules.block.def.exec(e);
1284
+ if (t) {
1285
+ let n = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), r = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", i = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
1286
+ return { type: "def", tag: n, raw: t[0], href: r, title: i };
1287
+ }
1288
+ }
1289
+ table(e) {
1290
+ let t = this.rules.block.table.exec(e);
1291
+ if (!t || !this.rules.other.tableDelimiter.test(t[2]))
1292
+ return;
1293
+ let n = J(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
1294
+ `) : [], s = { type: "table", raw: t[0], header: [], align: [], rows: [] };
1295
+ if (n.length === r.length) {
1296
+ for (let a of r)
1297
+ this.rules.other.tableAlignRight.test(a) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(a) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(a) ? s.align.push("left") : s.align.push(null);
1298
+ for (let a = 0;a < n.length; a++)
1299
+ s.header.push({ text: n[a], tokens: this.lexer.inline(n[a]), header: true, align: s.align[a] });
1300
+ for (let a of i)
1301
+ s.rows.push(J(a, s.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s.align[l] })));
1302
+ return s;
1303
+ }
1304
+ }
1305
+ lheading(e) {
1306
+ let t = this.rules.block.lheading.exec(e);
1307
+ if (t)
1308
+ return { type: "heading", raw: t[0], depth: t[2].charAt(0) === "=" ? 1 : 2, text: t[1], tokens: this.lexer.inline(t[1]) };
1309
+ }
1310
+ paragraph(e) {
1311
+ let t = this.rules.block.paragraph.exec(e);
1312
+ if (t) {
1313
+ let n = t[1].charAt(t[1].length - 1) === `
1314
+ ` ? t[1].slice(0, -1) : t[1];
1315
+ return { type: "paragraph", raw: t[0], text: n, tokens: this.lexer.inline(n) };
1316
+ }
1317
+ }
1318
+ text(e) {
1319
+ let t = this.rules.block.text.exec(e);
1320
+ if (t)
1321
+ return { type: "text", raw: t[0], text: t[0], tokens: this.lexer.inline(t[0]) };
1322
+ }
1323
+ escape(e) {
1324
+ let t = this.rules.inline.escape.exec(e);
1325
+ if (t)
1326
+ return { type: "escape", raw: t[0], text: t[1] };
1327
+ }
1328
+ tag(e) {
1329
+ let t = this.rules.inline.tag.exec(e);
1330
+ if (t)
1331
+ return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = true : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = false), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = true : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = false), { type: "html", raw: t[0], inLink: this.lexer.state.inLink, inRawBlock: this.lexer.state.inRawBlock, block: false, text: t[0] };
1332
+ }
1333
+ link(e) {
1334
+ let t = this.rules.inline.link.exec(e);
1335
+ if (t) {
1336
+ let n = t[2].trim();
1337
+ if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
1338
+ if (!this.rules.other.endAngleBracket.test(n))
1339
+ return;
1340
+ let s = z(n.slice(0, -1), "\\");
1341
+ if ((n.length - s.length) % 2 === 0)
1342
+ return;
1343
+ } else {
1344
+ let s = de(t[2], "()");
1345
+ if (s === -2)
1346
+ return;
1347
+ if (s > -1) {
1348
+ let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
1349
+ t[2] = t[2].substring(0, s), t[0] = t[0].substring(0, o).trim(), t[3] = "";
1350
+ }
1351
+ }
1352
+ let r = t[2], i = "";
1353
+ if (this.options.pedantic) {
1354
+ let s = this.rules.other.pedanticHrefTitle.exec(r);
1355
+ s && (r = s[1], i = s[3]);
1356
+ } else
1357
+ i = t[3] ? t[3].slice(1, -1) : "";
1358
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), ge(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
1359
+ }
1360
+ }
1361
+ reflink(e, t) {
1362
+ let n;
1363
+ if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
1364
+ let r = (n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " "), i = t[r.toLowerCase()];
1365
+ if (!i) {
1366
+ let s = n[0].charAt(0);
1367
+ return { type: "text", raw: s, text: s };
1368
+ }
1369
+ return ge(n, i, n[0], this.lexer, this.rules);
1370
+ }
1371
+ }
1372
+ emStrong(e, t, n = "") {
1373
+ let r = this.rules.inline.emStrongLDelim.exec(e);
1374
+ if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric))
1375
+ return;
1376
+ if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
1377
+ let s = [...r[0]].length - 1, a, o, l = s, p = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
1378
+ for (c.lastIndex = 0, t = t.slice(-1 * e.length + s);(r = c.exec(t)) != null; ) {
1379
+ if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a)
1380
+ continue;
1381
+ if (o = [...a].length, r[3] || r[4]) {
1382
+ l += o;
1383
+ continue;
1384
+ } else if ((r[5] || r[6]) && s % 3 && !((s + o) % 3)) {
1385
+ p += o;
1386
+ continue;
1387
+ }
1388
+ if (l -= o, l > 0)
1389
+ continue;
1390
+ o = Math.min(o, o + l + p);
1391
+ let g = [...r[0]][0].length, h = e.slice(0, s + r.index + g + o);
1392
+ if (Math.min(s, o) % 2) {
1393
+ let f = h.slice(1, -1);
1394
+ return { type: "em", raw: h, text: f, tokens: this.lexer.inlineTokens(f) };
1395
+ }
1396
+ let R = h.slice(2, -2);
1397
+ return { type: "strong", raw: h, text: R, tokens: this.lexer.inlineTokens(R) };
1398
+ }
1399
+ }
1400
+ }
1401
+ codespan(e) {
1402
+ let t = this.rules.inline.code.exec(e);
1403
+ if (t) {
1404
+ let n = t[2].replace(this.rules.other.newLineCharGlobal, " "), r = this.rules.other.nonSpaceChar.test(n), i = this.rules.other.startingSpaceChar.test(n) && this.rules.other.endingSpaceChar.test(n);
1405
+ return r && i && (n = n.substring(1, n.length - 1)), { type: "codespan", raw: t[0], text: n };
1406
+ }
1407
+ }
1408
+ br(e) {
1409
+ let t = this.rules.inline.br.exec(e);
1410
+ if (t)
1411
+ return { type: "br", raw: t[0] };
1412
+ }
1413
+ del(e) {
1414
+ let t = this.rules.inline.del.exec(e);
1415
+ if (t)
1416
+ return { type: "del", raw: t[0], text: t[2], tokens: this.lexer.inlineTokens(t[2]) };
1417
+ }
1418
+ autolink(e) {
1419
+ let t = this.rules.inline.autolink.exec(e);
1420
+ if (t) {
1421
+ let n, r;
1422
+ return t[2] === "@" ? (n = t[1], r = "mailto:" + n) : (n = t[1], r = n), { type: "link", raw: t[0], text: n, href: r, tokens: [{ type: "text", raw: n, text: n }] };
1423
+ }
1424
+ }
1425
+ url(e) {
1426
+ let t;
1427
+ if (t = this.rules.inline.url.exec(e)) {
1428
+ let n, r;
1429
+ if (t[2] === "@")
1430
+ n = t[0], r = "mailto:" + n;
1431
+ else {
1432
+ let i;
1433
+ do
1434
+ i = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
1435
+ while (i !== t[0]);
1436
+ n = t[0], t[1] === "www." ? r = "http://" + t[0] : r = t[0];
1437
+ }
1438
+ return { type: "link", raw: t[0], text: n, href: r, tokens: [{ type: "text", raw: n, text: n }] };
1439
+ }
1440
+ }
1441
+ inlineText(e) {
1442
+ let t = this.rules.inline.text.exec(e);
1443
+ if (t) {
1444
+ let n = this.lexer.state.inRawBlock;
1445
+ return { type: "text", raw: t[0], text: t[0], escaped: n };
1446
+ }
1447
+ }
1448
+ };
1449
+ var x = class u {
1450
+ tokens;
1451
+ options;
1452
+ state;
1453
+ inlineQueue;
1454
+ tokenizer;
1455
+ constructor(e) {
1456
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
1457
+ let t = { other: m, block: E.normal, inline: M.normal };
1458
+ this.options.pedantic ? (t.block = E.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
1459
+ }
1460
+ static get rules() {
1461
+ return { block: E, inline: M };
1462
+ }
1463
+ static lex(e, t) {
1464
+ return new u(t).lex(e);
1465
+ }
1466
+ static lexInline(e, t) {
1467
+ return new u(t).inlineTokens(e);
1468
+ }
1469
+ lex(e) {
1470
+ e = e.replace(m.carriageReturn, `
1471
+ `), this.blockTokens(e, this.tokens);
1472
+ for (let t = 0;t < this.inlineQueue.length; t++) {
1473
+ let n = this.inlineQueue[t];
1474
+ this.inlineTokens(n.src, n.tokens);
1475
+ }
1476
+ return this.inlineQueue = [], this.tokens;
1477
+ }
1478
+ blockTokens(e, t = [], n = false) {
1479
+ for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, ""));e; ) {
1480
+ let r;
1481
+ if (this.options.extensions?.block?.some((s) => (r = s.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), true) : false))
1482
+ continue;
1483
+ if (r = this.tokenizer.space(e)) {
1484
+ e = e.substring(r.raw.length);
1485
+ let s = t.at(-1);
1486
+ r.raw.length === 1 && s !== undefined ? s.raw += `
1487
+ ` : t.push(r);
1488
+ continue;
1489
+ }
1490
+ if (r = this.tokenizer.code(e)) {
1491
+ e = e.substring(r.raw.length);
1492
+ let s = t.at(-1);
1493
+ s?.type === "paragraph" || s?.type === "text" ? (s.raw += (s.raw.endsWith(`
1494
+ `) ? "" : `
1495
+ `) + r.raw, s.text += `
1496
+ ` + r.text, this.inlineQueue.at(-1).src = s.text) : t.push(r);
1497
+ continue;
1498
+ }
1499
+ if (r = this.tokenizer.fences(e)) {
1500
+ e = e.substring(r.raw.length), t.push(r);
1501
+ continue;
1502
+ }
1503
+ if (r = this.tokenizer.heading(e)) {
1504
+ e = e.substring(r.raw.length), t.push(r);
1505
+ continue;
1506
+ }
1507
+ if (r = this.tokenizer.hr(e)) {
1508
+ e = e.substring(r.raw.length), t.push(r);
1509
+ continue;
1510
+ }
1511
+ if (r = this.tokenizer.blockquote(e)) {
1512
+ e = e.substring(r.raw.length), t.push(r);
1513
+ continue;
1514
+ }
1515
+ if (r = this.tokenizer.list(e)) {
1516
+ e = e.substring(r.raw.length), t.push(r);
1517
+ continue;
1518
+ }
1519
+ if (r = this.tokenizer.html(e)) {
1520
+ e = e.substring(r.raw.length), t.push(r);
1521
+ continue;
1522
+ }
1523
+ if (r = this.tokenizer.def(e)) {
1524
+ e = e.substring(r.raw.length);
1525
+ let s = t.at(-1);
1526
+ s?.type === "paragraph" || s?.type === "text" ? (s.raw += (s.raw.endsWith(`
1527
+ `) ? "" : `
1528
+ `) + r.raw, s.text += `
1529
+ ` + r.raw, this.inlineQueue.at(-1).src = s.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = { href: r.href, title: r.title }, t.push(r));
1530
+ continue;
1531
+ }
1532
+ if (r = this.tokenizer.table(e)) {
1533
+ e = e.substring(r.raw.length), t.push(r);
1534
+ continue;
1535
+ }
1536
+ if (r = this.tokenizer.lheading(e)) {
1537
+ e = e.substring(r.raw.length), t.push(r);
1538
+ continue;
1539
+ }
1540
+ let i = e;
1541
+ if (this.options.extensions?.startBlock) {
1542
+ let s = 1 / 0, a = e.slice(1), o;
1543
+ this.options.extensions.startBlock.forEach((l) => {
1544
+ o = l.call({ lexer: this }, a), typeof o == "number" && o >= 0 && (s = Math.min(s, o));
1545
+ }), s < 1 / 0 && s >= 0 && (i = e.substring(0, s + 1));
1546
+ }
1547
+ if (this.state.top && (r = this.tokenizer.paragraph(i))) {
1548
+ let s = t.at(-1);
1549
+ n && s?.type === "paragraph" ? (s.raw += (s.raw.endsWith(`
1550
+ `) ? "" : `
1551
+ `) + r.raw, s.text += `
1552
+ ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
1553
+ continue;
1554
+ }
1555
+ if (r = this.tokenizer.text(e)) {
1556
+ e = e.substring(r.raw.length);
1557
+ let s = t.at(-1);
1558
+ s?.type === "text" ? (s.raw += (s.raw.endsWith(`
1559
+ `) ? "" : `
1560
+ `) + r.raw, s.text += `
1561
+ ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r);
1562
+ continue;
1563
+ }
1564
+ if (e) {
1565
+ let s = "Infinite loop on byte: " + e.charCodeAt(0);
1566
+ if (this.options.silent) {
1567
+ console.error(s);
1568
+ break;
1569
+ } else
1570
+ throw new Error(s);
1571
+ }
1572
+ }
1573
+ return this.state.top = true, t;
1574
+ }
1575
+ inline(e, t = []) {
1576
+ return this.inlineQueue.push({ src: e, tokens: t }), t;
1577
+ }
1578
+ inlineTokens(e, t = []) {
1579
+ let n = e, r = null;
1580
+ if (this.tokens.links) {
1581
+ let o = Object.keys(this.tokens.links);
1582
+ if (o.length > 0)
1583
+ for (;(r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; )
1584
+ o.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
1585
+ }
1586
+ for (;(r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; )
1587
+ n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
1588
+ let i;
1589
+ for (;(r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; )
1590
+ i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
1591
+ n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
1592
+ let s = false, a = "";
1593
+ for (;e; ) {
1594
+ s || (a = ""), s = false;
1595
+ let o;
1596
+ if (this.options.extensions?.inline?.some((p) => (o = p.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false))
1597
+ continue;
1598
+ if (o = this.tokenizer.escape(e)) {
1599
+ e = e.substring(o.raw.length), t.push(o);
1600
+ continue;
1601
+ }
1602
+ if (o = this.tokenizer.tag(e)) {
1603
+ e = e.substring(o.raw.length), t.push(o);
1604
+ continue;
1605
+ }
1606
+ if (o = this.tokenizer.link(e)) {
1607
+ e = e.substring(o.raw.length), t.push(o);
1608
+ continue;
1609
+ }
1610
+ if (o = this.tokenizer.reflink(e, this.tokens.links)) {
1611
+ e = e.substring(o.raw.length);
1612
+ let p = t.at(-1);
1613
+ o.type === "text" && p?.type === "text" ? (p.raw += o.raw, p.text += o.text) : t.push(o);
1614
+ continue;
1615
+ }
1616
+ if (o = this.tokenizer.emStrong(e, n, a)) {
1617
+ e = e.substring(o.raw.length), t.push(o);
1618
+ continue;
1619
+ }
1620
+ if (o = this.tokenizer.codespan(e)) {
1621
+ e = e.substring(o.raw.length), t.push(o);
1622
+ continue;
1623
+ }
1624
+ if (o = this.tokenizer.br(e)) {
1625
+ e = e.substring(o.raw.length), t.push(o);
1626
+ continue;
1627
+ }
1628
+ if (o = this.tokenizer.del(e)) {
1629
+ e = e.substring(o.raw.length), t.push(o);
1630
+ continue;
1631
+ }
1632
+ if (o = this.tokenizer.autolink(e)) {
1633
+ e = e.substring(o.raw.length), t.push(o);
1634
+ continue;
1635
+ }
1636
+ if (!this.state.inLink && (o = this.tokenizer.url(e))) {
1637
+ e = e.substring(o.raw.length), t.push(o);
1638
+ continue;
1639
+ }
1640
+ let l = e;
1641
+ if (this.options.extensions?.startInline) {
1642
+ let p = 1 / 0, c = e.slice(1), g;
1643
+ this.options.extensions.startInline.forEach((h) => {
1644
+ g = h.call({ lexer: this }, c), typeof g == "number" && g >= 0 && (p = Math.min(p, g));
1645
+ }), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
1646
+ }
1647
+ if (o = this.tokenizer.inlineText(l)) {
1648
+ e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a = o.raw.slice(-1)), s = true;
1649
+ let p = t.at(-1);
1650
+ p?.type === "text" ? (p.raw += o.raw, p.text += o.text) : t.push(o);
1651
+ continue;
1652
+ }
1653
+ if (e) {
1654
+ let p = "Infinite loop on byte: " + e.charCodeAt(0);
1655
+ if (this.options.silent) {
1656
+ console.error(p);
1657
+ break;
1658
+ } else
1659
+ throw new Error(p);
1660
+ }
1661
+ }
1662
+ return t;
1663
+ }
1664
+ };
1665
+ var P = class {
1666
+ options;
1667
+ parser;
1668
+ constructor(e) {
1669
+ this.options = e || T;
1670
+ }
1671
+ space(e) {
1672
+ return "";
1673
+ }
1674
+ code({ text: e, lang: t, escaped: n }) {
1675
+ let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
1676
+ `;
1677
+ return r ? '<pre><code class="language-' + w(r) + '">' + (n ? i : w(i, true)) + `</code></pre>
1678
+ ` : "<pre><code>" + (n ? i : w(i, true)) + `</code></pre>
1679
+ `;
1680
+ }
1681
+ blockquote({ tokens: e }) {
1682
+ return `<blockquote>
1683
+ ${this.parser.parse(e)}</blockquote>
1684
+ `;
1685
+ }
1686
+ html({ text: e }) {
1687
+ return e;
1688
+ }
1689
+ def(e) {
1690
+ return "";
1691
+ }
1692
+ heading({ tokens: e, depth: t }) {
1693
+ return `<h${t}>${this.parser.parseInline(e)}</h${t}>
1694
+ `;
1695
+ }
1696
+ hr(e) {
1697
+ return `<hr>
1698
+ `;
1699
+ }
1700
+ list(e) {
1701
+ let { ordered: t, start: n } = e, r = "";
1702
+ for (let a = 0;a < e.items.length; a++) {
1703
+ let o = e.items[a];
1704
+ r += this.listitem(o);
1705
+ }
1706
+ let i = t ? "ol" : "ul", s = t && n !== 1 ? ' start="' + n + '"' : "";
1707
+ return "<" + i + s + `>
1708
+ ` + r + "</" + i + `>
1709
+ `;
1710
+ }
1711
+ listitem(e) {
1712
+ return `<li>${this.parser.parse(e.tokens)}</li>
1713
+ `;
1714
+ }
1715
+ checkbox({ checked: e }) {
1716
+ return "<input " + (e ? 'checked="" ' : "") + 'disabled="" type="checkbox"> ';
1717
+ }
1718
+ paragraph({ tokens: e }) {
1719
+ return `<p>${this.parser.parseInline(e)}</p>
1720
+ `;
1721
+ }
1722
+ table(e) {
1723
+ let t = "", n = "";
1724
+ for (let i = 0;i < e.header.length; i++)
1725
+ n += this.tablecell(e.header[i]);
1726
+ t += this.tablerow({ text: n });
1727
+ let r = "";
1728
+ for (let i = 0;i < e.rows.length; i++) {
1729
+ let s = e.rows[i];
1730
+ n = "";
1731
+ for (let a = 0;a < s.length; a++)
1732
+ n += this.tablecell(s[a]);
1733
+ r += this.tablerow({ text: n });
1734
+ }
1735
+ return r && (r = `<tbody>${r}</tbody>`), `<table>
1736
+ <thead>
1737
+ ` + t + `</thead>
1738
+ ` + r + `</table>
1739
+ `;
1740
+ }
1741
+ tablerow({ text: e }) {
1742
+ return `<tr>
1743
+ ${e}</tr>
1744
+ `;
1745
+ }
1746
+ tablecell(e) {
1747
+ let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
1748
+ return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
1749
+ `;
1750
+ }
1751
+ strong({ tokens: e }) {
1752
+ return `<strong>${this.parser.parseInline(e)}</strong>`;
1753
+ }
1754
+ em({ tokens: e }) {
1755
+ return `<em>${this.parser.parseInline(e)}</em>`;
1756
+ }
1757
+ codespan({ text: e }) {
1758
+ return `<code>${w(e, true)}</code>`;
1759
+ }
1760
+ br(e) {
1761
+ return "<br>";
1762
+ }
1763
+ del({ tokens: e }) {
1764
+ return `<del>${this.parser.parseInline(e)}</del>`;
1765
+ }
1766
+ link({ href: e, title: t, tokens: n }) {
1767
+ let r = this.parser.parseInline(n), i = X(e);
1768
+ if (i === null)
1769
+ return r;
1770
+ e = i;
1771
+ let s = '<a href="' + e + '"';
1772
+ return t && (s += ' title="' + w(t) + '"'), s += ">" + r + "</a>", s;
1773
+ }
1774
+ image({ href: e, title: t, text: n, tokens: r }) {
1775
+ r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1776
+ let i = X(e);
1777
+ if (i === null)
1778
+ return w(n);
1779
+ e = i;
1780
+ let s = `<img src="${e}" alt="${n}"`;
1781
+ return t && (s += ` title="${w(t)}"`), s += ">", s;
1782
+ }
1783
+ text(e) {
1784
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : ("escaped" in e) && e.escaped ? e.text : w(e.text);
1785
+ }
1786
+ };
1787
+ var $ = class {
1788
+ strong({ text: e }) {
1789
+ return e;
1790
+ }
1791
+ em({ text: e }) {
1792
+ return e;
1793
+ }
1794
+ codespan({ text: e }) {
1795
+ return e;
1796
+ }
1797
+ del({ text: e }) {
1798
+ return e;
1799
+ }
1800
+ html({ text: e }) {
1801
+ return e;
1802
+ }
1803
+ text({ text: e }) {
1804
+ return e;
1805
+ }
1806
+ link({ text: e }) {
1807
+ return "" + e;
1808
+ }
1809
+ image({ text: e }) {
1810
+ return "" + e;
1811
+ }
1812
+ br() {
1813
+ return "";
1814
+ }
1815
+ checkbox({ raw: e }) {
1816
+ return e;
1817
+ }
1818
+ };
1819
+ var b = class u {
1820
+ options;
1821
+ renderer;
1822
+ textRenderer;
1823
+ constructor(e) {
1824
+ this.options = e || T, this.options.renderer = this.options.renderer || new P, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
1825
+ }
1826
+ static parse(e, t) {
1827
+ return new u(t).parse(e);
1828
+ }
1829
+ static parseInline(e, t) {
1830
+ return new u(t).parseInline(e);
1831
+ }
1832
+ parse(e) {
1833
+ let t = "";
1834
+ for (let n = 0;n < e.length; n++) {
1835
+ let r = e[n];
1836
+ if (this.options.extensions?.renderers?.[r.type]) {
1837
+ let s = r, a = this.options.extensions.renderers[s.type].call({ parser: this }, s);
1838
+ if (a !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(s.type)) {
1839
+ t += a || "";
1840
+ continue;
1841
+ }
1842
+ }
1843
+ let i = r;
1844
+ switch (i.type) {
1845
+ case "space": {
1846
+ t += this.renderer.space(i);
1847
+ break;
1848
+ }
1849
+ case "hr": {
1850
+ t += this.renderer.hr(i);
1851
+ break;
1852
+ }
1853
+ case "heading": {
1854
+ t += this.renderer.heading(i);
1855
+ break;
1856
+ }
1857
+ case "code": {
1858
+ t += this.renderer.code(i);
1859
+ break;
1860
+ }
1861
+ case "table": {
1862
+ t += this.renderer.table(i);
1863
+ break;
1864
+ }
1865
+ case "blockquote": {
1866
+ t += this.renderer.blockquote(i);
1867
+ break;
1868
+ }
1869
+ case "list": {
1870
+ t += this.renderer.list(i);
1871
+ break;
1872
+ }
1873
+ case "checkbox": {
1874
+ t += this.renderer.checkbox(i);
1875
+ break;
1876
+ }
1877
+ case "html": {
1878
+ t += this.renderer.html(i);
1879
+ break;
1880
+ }
1881
+ case "def": {
1882
+ t += this.renderer.def(i);
1883
+ break;
1884
+ }
1885
+ case "paragraph": {
1886
+ t += this.renderer.paragraph(i);
1887
+ break;
1888
+ }
1889
+ case "text": {
1890
+ t += this.renderer.text(i);
1891
+ break;
1892
+ }
1893
+ default: {
1894
+ let s = 'Token with "' + i.type + '" type was not found.';
1895
+ if (this.options.silent)
1896
+ return console.error(s), "";
1897
+ throw new Error(s);
1898
+ }
1899
+ }
1900
+ }
1901
+ return t;
1902
+ }
1903
+ parseInline(e, t = this.renderer) {
1904
+ let n = "";
1905
+ for (let r = 0;r < e.length; r++) {
1906
+ let i = e[r];
1907
+ if (this.options.extensions?.renderers?.[i.type]) {
1908
+ let a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1909
+ if (a !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
1910
+ n += a || "";
1911
+ continue;
1912
+ }
1913
+ }
1914
+ let s = i;
1915
+ switch (s.type) {
1916
+ case "escape": {
1917
+ n += t.text(s);
1918
+ break;
1919
+ }
1920
+ case "html": {
1921
+ n += t.html(s);
1922
+ break;
1923
+ }
1924
+ case "link": {
1925
+ n += t.link(s);
1926
+ break;
1927
+ }
1928
+ case "image": {
1929
+ n += t.image(s);
1930
+ break;
1931
+ }
1932
+ case "checkbox": {
1933
+ n += t.checkbox(s);
1934
+ break;
1935
+ }
1936
+ case "strong": {
1937
+ n += t.strong(s);
1938
+ break;
1939
+ }
1940
+ case "em": {
1941
+ n += t.em(s);
1942
+ break;
1943
+ }
1944
+ case "codespan": {
1945
+ n += t.codespan(s);
1946
+ break;
1947
+ }
1948
+ case "br": {
1949
+ n += t.br(s);
1950
+ break;
1951
+ }
1952
+ case "del": {
1953
+ n += t.del(s);
1954
+ break;
1955
+ }
1956
+ case "text": {
1957
+ n += t.text(s);
1958
+ break;
1959
+ }
1960
+ default: {
1961
+ let a = 'Token with "' + s.type + '" type was not found.';
1962
+ if (this.options.silent)
1963
+ return console.error(a), "";
1964
+ throw new Error(a);
1965
+ }
1966
+ }
1967
+ }
1968
+ return n;
1969
+ }
1970
+ };
1971
+ var S = class {
1972
+ options;
1973
+ block;
1974
+ constructor(e) {
1975
+ this.options = e || T;
1976
+ }
1977
+ static passThroughHooks = new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
1978
+ static passThroughHooksRespectAsync = new Set(["preprocess", "postprocess", "processAllTokens"]);
1979
+ preprocess(e) {
1980
+ return e;
1981
+ }
1982
+ postprocess(e) {
1983
+ return e;
1984
+ }
1985
+ processAllTokens(e) {
1986
+ return e;
1987
+ }
1988
+ emStrongMask(e) {
1989
+ return e;
1990
+ }
1991
+ provideLexer() {
1992
+ return this.block ? x.lex : x.lexInline;
1993
+ }
1994
+ provideParser() {
1995
+ return this.block ? b.parse : b.parseInline;
1996
+ }
1997
+ };
1998
+ var B = class {
1999
+ defaults = L();
2000
+ options = this.setOptions;
2001
+ parse = this.parseMarkdown(true);
2002
+ parseInline = this.parseMarkdown(false);
2003
+ Parser = b;
2004
+ Renderer = P;
2005
+ TextRenderer = $;
2006
+ Lexer = x;
2007
+ Tokenizer = y;
2008
+ Hooks = S;
2009
+ constructor(...e) {
2010
+ this.use(...e);
2011
+ }
2012
+ walkTokens(e, t) {
2013
+ let n = [];
2014
+ for (let r of e)
2015
+ switch (n = n.concat(t.call(this, r)), r.type) {
2016
+ case "table": {
2017
+ let i = r;
2018
+ for (let s of i.header)
2019
+ n = n.concat(this.walkTokens(s.tokens, t));
2020
+ for (let s of i.rows)
2021
+ for (let a of s)
2022
+ n = n.concat(this.walkTokens(a.tokens, t));
2023
+ break;
2024
+ }
2025
+ case "list": {
2026
+ let i = r;
2027
+ n = n.concat(this.walkTokens(i.items, t));
2028
+ break;
2029
+ }
2030
+ default: {
2031
+ let i = r;
2032
+ this.defaults.extensions?.childTokens?.[i.type] ? this.defaults.extensions.childTokens[i.type].forEach((s) => {
2033
+ let a = i[s].flat(1 / 0);
2034
+ n = n.concat(this.walkTokens(a, t));
2035
+ }) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
2036
+ }
2037
+ }
2038
+ return n;
2039
+ }
2040
+ use(...e) {
2041
+ let t = this.defaults.extensions || { renderers: {}, childTokens: {} };
2042
+ return e.forEach((n) => {
2043
+ let r = { ...n };
2044
+ if (r.async = this.defaults.async || r.async || false, n.extensions && (n.extensions.forEach((i) => {
2045
+ if (!i.name)
2046
+ throw new Error("extension name required");
2047
+ if ("renderer" in i) {
2048
+ let s = t.renderers[i.name];
2049
+ s ? t.renderers[i.name] = function(...a) {
2050
+ let o = i.renderer.apply(this, a);
2051
+ return o === false && (o = s.apply(this, a)), o;
2052
+ } : t.renderers[i.name] = i.renderer;
2053
+ }
2054
+ if ("tokenizer" in i) {
2055
+ if (!i.level || i.level !== "block" && i.level !== "inline")
2056
+ throw new Error("extension level must be 'block' or 'inline'");
2057
+ let s = t[i.level];
2058
+ s ? s.unshift(i.tokenizer) : t[i.level] = [i.tokenizer], i.start && (i.level === "block" ? t.startBlock ? t.startBlock.push(i.start) : t.startBlock = [i.start] : i.level === "inline" && (t.startInline ? t.startInline.push(i.start) : t.startInline = [i.start]));
2059
+ }
2060
+ "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
2061
+ }), r.extensions = t), n.renderer) {
2062
+ let i = this.defaults.renderer || new P(this.defaults);
2063
+ for (let s in n.renderer) {
2064
+ if (!(s in i))
2065
+ throw new Error(`renderer '${s}' does not exist`);
2066
+ if (["options", "parser"].includes(s))
2067
+ continue;
2068
+ let a = s, o = n.renderer[a], l = i[a];
2069
+ i[a] = (...p) => {
2070
+ let c = o.apply(i, p);
2071
+ return c === false && (c = l.apply(i, p)), c || "";
2072
+ };
2073
+ }
2074
+ r.renderer = i;
2075
+ }
2076
+ if (n.tokenizer) {
2077
+ let i = this.defaults.tokenizer || new y(this.defaults);
2078
+ for (let s in n.tokenizer) {
2079
+ if (!(s in i))
2080
+ throw new Error(`tokenizer '${s}' does not exist`);
2081
+ if (["options", "rules", "lexer"].includes(s))
2082
+ continue;
2083
+ let a = s, o = n.tokenizer[a], l = i[a];
2084
+ i[a] = (...p) => {
2085
+ let c = o.apply(i, p);
2086
+ return c === false && (c = l.apply(i, p)), c;
2087
+ };
2088
+ }
2089
+ r.tokenizer = i;
2090
+ }
2091
+ if (n.hooks) {
2092
+ let i = this.defaults.hooks || new S;
2093
+ for (let s in n.hooks) {
2094
+ if (!(s in i))
2095
+ throw new Error(`hook '${s}' does not exist`);
2096
+ if (["options", "block"].includes(s))
2097
+ continue;
2098
+ let a = s, o = n.hooks[a], l = i[a];
2099
+ S.passThroughHooks.has(s) ? i[a] = (p) => {
2100
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s))
2101
+ return (async () => {
2102
+ let g = await o.call(i, p);
2103
+ return l.call(i, g);
2104
+ })();
2105
+ let c = o.call(i, p);
2106
+ return l.call(i, c);
2107
+ } : i[a] = (...p) => {
2108
+ if (this.defaults.async)
2109
+ return (async () => {
2110
+ let g = await o.apply(i, p);
2111
+ return g === false && (g = await l.apply(i, p)), g;
2112
+ })();
2113
+ let c = o.apply(i, p);
2114
+ return c === false && (c = l.apply(i, p)), c;
2115
+ };
2116
+ }
2117
+ r.hooks = i;
2118
+ }
2119
+ if (n.walkTokens) {
2120
+ let i = this.defaults.walkTokens, s = n.walkTokens;
2121
+ r.walkTokens = function(a) {
2122
+ let o = [];
2123
+ return o.push(s.call(this, a)), i && (o = o.concat(i.call(this, a))), o;
2124
+ };
2125
+ }
2126
+ this.defaults = { ...this.defaults, ...r };
2127
+ }), this;
2128
+ }
2129
+ setOptions(e) {
2130
+ return this.defaults = { ...this.defaults, ...e }, this;
2131
+ }
2132
+ lexer(e, t) {
2133
+ return x.lex(e, t ?? this.defaults);
2134
+ }
2135
+ parser(e, t) {
2136
+ return b.parse(e, t ?? this.defaults);
2137
+ }
2138
+ parseMarkdown(e) {
2139
+ return (n, r) => {
2140
+ let i = { ...r }, s = { ...this.defaults, ...i }, a = this.onError(!!s.silent, !!s.async);
2141
+ if (this.defaults.async === true && i.async === false)
2142
+ return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
2143
+ if (typeof n > "u" || n === null)
2144
+ return a(new Error("marked(): input parameter is undefined or null"));
2145
+ if (typeof n != "string")
2146
+ return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
2147
+ if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async)
2148
+ return (async () => {
2149
+ let o = s.hooks ? await s.hooks.preprocess(n) : n, p = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(p) : p;
2150
+ s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
2151
+ let h = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(c, s);
2152
+ return s.hooks ? await s.hooks.postprocess(h) : h;
2153
+ })().catch(a);
2154
+ try {
2155
+ s.hooks && (n = s.hooks.preprocess(n));
2156
+ let l = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
2157
+ s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
2158
+ let c = (s.hooks ? s.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s);
2159
+ return s.hooks && (c = s.hooks.postprocess(c)), c;
2160
+ } catch (o) {
2161
+ return a(o);
2162
+ }
2163
+ };
2164
+ }
2165
+ onError(e, t) {
2166
+ return (n) => {
2167
+ if (n.message += `
2168
+ Please report this to https://github.com/markedjs/marked.`, e) {
2169
+ let r = "<p>An error occurred:</p><pre>" + w(n.message + "", true) + "</pre>";
2170
+ return t ? Promise.resolve(r) : r;
2171
+ }
2172
+ if (t)
2173
+ return Promise.reject(n);
2174
+ throw n;
2175
+ };
2176
+ }
2177
+ };
2178
+ var _ = new B;
2179
+ function d(u, e) {
2180
+ return _.parse(u, e);
2181
+ }
2182
+ d.options = d.setOptions = function(u) {
2183
+ return _.setOptions(u), d.defaults = _.defaults, Z(d.defaults), d;
2184
+ };
2185
+ d.getDefaults = L;
2186
+ d.defaults = T;
2187
+ d.use = function(...u) {
2188
+ return _.use(...u), d.defaults = _.defaults, Z(d.defaults), d;
2189
+ };
2190
+ d.walkTokens = function(u, e) {
2191
+ return _.walkTokens(u, e);
2192
+ };
2193
+ d.parseInline = _.parseInline;
2194
+ d.Parser = b;
2195
+ d.parser = b.parse;
2196
+ d.Renderer = P;
2197
+ d.TextRenderer = $;
2198
+ d.Lexer = x;
2199
+ d.lexer = x.lex;
2200
+ d.Tokenizer = y;
2201
+ d.Hooks = S;
2202
+ d.parse = d;
2203
+ var Dt = d.options;
2204
+ var Ht = d.setOptions;
2205
+ var Zt = d.use;
2206
+ var Gt = d.walkTokens;
2207
+ var Nt = d.parseInline;
2208
+ var Ft = b.parse;
2209
+ var jt = x.lex;
2210
+
2211
+ // ../../node_modules/.bun/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.js
2212
+ var htmlDecodeTree = /* @__PURE__ */ new Uint16Array(/* @__PURE__ */ "\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\x00\x00\x00\x00\x00\x00\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\uD835\uDD04rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\uD835\uDD38plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\uD835\uDC9Cign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\uD835\uDD05pf;\uC000\uD835\uDD39eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\uD835\uDC9Ep\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\uD835\uDD07\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\x00\x00\x00\u0342\u0354\x00\u0405f;\uC000\uD835\uDD3B\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\x00\x00\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\x00\x00\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\x00\u0446\x00\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\x00\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\uD835\uDC9Frok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\uD835\uDD08rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\x00\x00\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\uD835\uDD3Csilon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\uD835\uDD09lled\u0253\u0597\x00\x00\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\x00\u05BF\x00\x00\u05C4f;\uC000\uD835\uDD3DAll;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\uD835\uDD0A;\u62D9pf;\uC000\uD835\uDD3Eeater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\uD835\uDCA2;\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\x00\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\x00\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\uD835\uDD40a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\x00\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\uD835\uDD0Dpf;\uC000\uD835\uDD41\u01E3\u07C7\x00\u07CCr;\uC000\uD835\uDCA5rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\uD835\uDD0Epf;\uC000\uD835\uDD42cr;\uC000\uD835\uDCA6\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\x00\u08C3bleBracket;\u67E6n\u01D4\u08C8\x00\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\uD835\uDD0F\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\uD835\uDD43er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\uD835\uDD10nusPlus;\u6213pf;\uC000\uD835\uDD44c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\uD835\uDD11\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\uD835\uDCA9ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\uD835\uDD12rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\uD835\uDD46enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\uD835\uDCAAash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\uD835\uDD13i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\uD835\uDCAB;\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B\"\u4022r;\uC000\uD835\uDD14pf;\u611Acr;\uC000\uD835\uDCAC\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\x00\u1005bleBracket;\u67E7n\u01D4\u100A\x00\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\uD835\uDD16ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\uD835\uDD4A\u0272\u116D\x00\x00\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\uD835\uDCAEar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\uD835\uDD17\u0100ei\u127B\u1289\u01F2\u1280\x00\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\uD835\uDD4BipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\uD835\uDCAFrok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\x00\u132C\u1331\x00\x00\x00\x00\x00\u1338\u133D\u1377\u1385\x00\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\x00\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\uD835\uDD18rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\uD835\uDD4C\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\uD835\uDCB0ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\uD835\uDD19pf;\uC000\uD835\uDD4Dcr;\uC000\uD835\uDCB1dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\uD835\uDD1Apf;\uC000\uD835\uDD4Ecr;\uC000\uD835\uDCB2\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\uD835\uDD1B;\u439Epf;\uC000\uD835\uDD4Fcr;\uC000\uD835\uDCB3\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\uD835\uDD1Cpf;\uC000\uD835\uDD50cr;\uC000\uD835\uDCB4ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\x00\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\uD835\uDCB5\u0BE1\u1583\u158A\u1590\x00\u15B0\u15B6\u15BF\x00\x00\x00\x00\u15C6\u15DB\u15EB\u165F\u166D\x00\u1695\u169B\u16B2\u16B9\x00\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\uD835\uDD1Erave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\x00\x00\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\uD835\uDD52\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\uD835\uDCB6;\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\uD835\uDD1Fg\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\x00\x00\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\x00\u1833\u01B2\u182F\x00\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\uD835\uDD53\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\uD835\uDCB7mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\x00\u19E8\u1A11\u1A15\u1A32\x00\u1A37\u1A50\x00\x00\u1AB4\x00\x00\u1AC1\x00\x00\u1B21\u1B2E\u1B4D\u1B52\x00\u1BFD\x00\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\x00\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\uD835\uDD20\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\x00\x00\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\x00\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\x00\x00\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\x00\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\uD835\uDD54o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\uD835\uDCB8\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\x00\x00\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\x00\x00\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\uD835\uDD21ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\x00\x00\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\uD835\uDD55\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\x00\x00\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\uD835\uDCB9;\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\uD835\uDD22\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\uD835\uDD56\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\x00\x00\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\x00\u1F9E\x00\u1FA1\u1FA7\x00\x00\u1FC6\u1FCC\x00\u1FD3\x00\u1FE6\u1FEA\u2000\x00\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\x00\x00\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\uD835\uDD23lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\x00\u1FF3f;\uC000\uD835\uDD57\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\x00\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\x00\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\x00\u2036;\u6154;\u6156\u02B4\u203E\u2041\x00\x00\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\x00\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\uD835\uDCBB\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\uD835\uDD24\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\uD835\uDD58\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\x00\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\uD835\uDD25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\uD835\uDD59bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\uD835\uDCBDas\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\x00\u22AA\x00\u22B8\u22C5\u22CE\x00\u22D5\u22F3\x00\x00\u22F8\u2322\u2367\u2362\u237F\x00\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\uD835\uDD26rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\uD835\uDD5Aa;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\uD835\uDCBEn\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\x00\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\uD835\uDD27ath;\u4237pf;\uC000\uD835\uDD5B\u01E3\u23EC\x00\u23F1r;\uC000\uD835\uDCBFrcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\uD835\uDD28reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\uD835\uDD5Ccr;\uC000\uD835\uDCC0\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\x00\u24AA\x00\u24B1\x00\x00\x00\x00\x00\u24B5\u24BA\x00\u24C6\u24C8\u24CD\x00\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\uD835\uDD29\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\uD835\uDD5Dus;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\uD835\uDCC1m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\uD835\uDD2Ao;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\uD835\uDD5E\u0100ct\u28F8\u28FDr;\uC000\uD835\uDCC2pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\x00\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\x00\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\uD835\uDD2B\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\uD835\uDD5F\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\uD835\uDCC3ort\u026D\u2B05\x00\x00\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\u2D2D\x00\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\x00\x00\u2D8D\u2DAB\x00\u2DC8\u2DCE\x00\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\uD835\uDD2C\u036F\u2D79\x00\x00\u2D7C\x00\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\uD835\uDD60\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\x00\u2E7D\x00\u2E80\u2E9D\x00\u2EA2\u2EB9\x00\x00\u2ECB\u0E9C\x00\u2F13\x00\x00\u2F2B\u2FBC\x00\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\x00\x00\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\uD835\uDD2D\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\uD835\uDD61nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\uD835\uDCC5;\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\uD835\uDD2Epf;\uC000\uD835\uDD62rime;\u6057cr;\uC000\uD835\uDCC6\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\uD835\uDD2F\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\uD835\uDD63us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\uD835\uDCC7\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\x00\u337A\u33A4\x00\x00\u33EC\u33F0\x00\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\x00\u3616\x00\x00\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\x00\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\uD835\uDD30\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\x00\x00\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\uD835\uDD64a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\uD835\uDCC8tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\x00\u367E\u36C2\x00\x00\x00\x00\x00\u36DB\u3703\x00\u3709\u376C\x00\x00\x00\u3787\u0272\u3656\x00\x00\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\uD835\uDD31\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\x00\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\uD835\uDD65rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\uD835\uDCC9;\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\x00\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\uD835\uDD32rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\x00\x00\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\uD835\uDD66\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\x00\x00\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\uD835\uDCCA\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\uD835\uDD33tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\uD835\uDD67ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\uD835\uDCCB\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\uD835\uDD34pf;\uC000\uD835\uDD68\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\uD835\uDCCC\u0AE3\u178E\u3A87\x00\u3A8B\x00\u3A90\u3A9B\x00\x00\u3A9D\u3AA8\u3AAB\u3AAF\x00\x00\u3AC3\u3ACE\x00\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\uD835\uDD35\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\uD835\uDD69im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\uD835\uDCCD\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\uD835\uDD36cy;\u4457pf;\uC000\uD835\uDD6Acr;\uC000\uD835\uDCCE\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\uD835\uDD37cy;\u4436grarr;\u61DDpf;\uC000\uD835\uDD6Bcr;\uC000\uD835\uDCCF\u0100jn\u3B85\u3B87;\u600Dj;\u600C".split("").map((c) => c.charCodeAt(0)));
2213
+
2214
+ // ../../node_modules/.bun/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.js
2215
+ var _a;
2216
+ var decodeMap = new Map([
2217
+ [0, 65533],
2218
+ [128, 8364],
2219
+ [130, 8218],
2220
+ [131, 402],
2221
+ [132, 8222],
2222
+ [133, 8230],
2223
+ [134, 8224],
2224
+ [135, 8225],
2225
+ [136, 710],
2226
+ [137, 8240],
2227
+ [138, 352],
2228
+ [139, 8249],
2229
+ [140, 338],
2230
+ [142, 381],
2231
+ [145, 8216],
2232
+ [146, 8217],
2233
+ [147, 8220],
2234
+ [148, 8221],
2235
+ [149, 8226],
2236
+ [150, 8211],
2237
+ [151, 8212],
2238
+ [152, 732],
2239
+ [153, 8482],
2240
+ [154, 353],
2241
+ [155, 8250],
2242
+ [156, 339],
2243
+ [158, 382],
2244
+ [159, 376]
2245
+ ]);
2246
+ var fromCodePoint = (_a = String.fromCodePoint) !== null && _a !== undefined ? _a : function(codePoint) {
2247
+ let output = "";
2248
+ if (codePoint > 65535) {
2249
+ codePoint -= 65536;
2250
+ output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296);
2251
+ codePoint = 56320 | codePoint & 1023;
2252
+ }
2253
+ output += String.fromCharCode(codePoint);
2254
+ return output;
2255
+ };
2256
+ function replaceCodePoint(codePoint) {
2257
+ var _a;
2258
+ if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
2259
+ return 65533;
2260
+ }
2261
+ return (_a = decodeMap.get(codePoint)) !== null && _a !== undefined ? _a : codePoint;
2262
+ }
2263
+
2264
+ // ../../node_modules/.bun/entities@6.0.1/node_modules/entities/dist/esm/decode.js
2265
+ var CharCodes;
2266
+ (function(CharCodes) {
2267
+ CharCodes[CharCodes["NUM"] = 35] = "NUM";
2268
+ CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
2269
+ CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
2270
+ CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
2271
+ CharCodes[CharCodes["NINE"] = 57] = "NINE";
2272
+ CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
2273
+ CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
2274
+ CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
2275
+ CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
2276
+ CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
2277
+ CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
2278
+ CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
2279
+ })(CharCodes || (CharCodes = {}));
2280
+ var TO_LOWER_BIT = 32;
2281
+ var BinTrieFlags;
2282
+ (function(BinTrieFlags) {
2283
+ BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
2284
+ BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
2285
+ BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
2286
+ })(BinTrieFlags || (BinTrieFlags = {}));
2287
+ function isNumber(code) {
2288
+ return code >= CharCodes.ZERO && code <= CharCodes.NINE;
2289
+ }
2290
+ function isHexadecimalCharacter(code) {
2291
+ return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F;
2292
+ }
2293
+ function isAsciiAlphaNumeric(code) {
2294
+ return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z || isNumber(code);
2295
+ }
2296
+ function isEntityInAttributeInvalidEnd(code) {
2297
+ return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
2298
+ }
2299
+ var EntityDecoderState;
2300
+ (function(EntityDecoderState) {
2301
+ EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
2302
+ EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
2303
+ EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
2304
+ EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
2305
+ EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
2306
+ })(EntityDecoderState || (EntityDecoderState = {}));
2307
+ var DecodingMode;
2308
+ (function(DecodingMode) {
2309
+ DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
2310
+ DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
2311
+ DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
2312
+ })(DecodingMode || (DecodingMode = {}));
2313
+
2314
+ class EntityDecoder {
2315
+ constructor(decodeTree, emitCodePoint, errors) {
2316
+ this.decodeTree = decodeTree;
2317
+ this.emitCodePoint = emitCodePoint;
2318
+ this.errors = errors;
2319
+ this.state = EntityDecoderState.EntityStart;
2320
+ this.consumed = 1;
2321
+ this.result = 0;
2322
+ this.treeIndex = 0;
2323
+ this.excess = 1;
2324
+ this.decodeMode = DecodingMode.Strict;
2325
+ }
2326
+ startEntity(decodeMode) {
2327
+ this.decodeMode = decodeMode;
2328
+ this.state = EntityDecoderState.EntityStart;
2329
+ this.result = 0;
2330
+ this.treeIndex = 0;
2331
+ this.excess = 1;
2332
+ this.consumed = 1;
2333
+ }
2334
+ write(input, offset) {
2335
+ switch (this.state) {
2336
+ case EntityDecoderState.EntityStart: {
2337
+ if (input.charCodeAt(offset) === CharCodes.NUM) {
2338
+ this.state = EntityDecoderState.NumericStart;
2339
+ this.consumed += 1;
2340
+ return this.stateNumericStart(input, offset + 1);
2341
+ }
2342
+ this.state = EntityDecoderState.NamedEntity;
2343
+ return this.stateNamedEntity(input, offset);
2344
+ }
2345
+ case EntityDecoderState.NumericStart: {
2346
+ return this.stateNumericStart(input, offset);
2347
+ }
2348
+ case EntityDecoderState.NumericDecimal: {
2349
+ return this.stateNumericDecimal(input, offset);
2350
+ }
2351
+ case EntityDecoderState.NumericHex: {
2352
+ return this.stateNumericHex(input, offset);
2353
+ }
2354
+ case EntityDecoderState.NamedEntity: {
2355
+ return this.stateNamedEntity(input, offset);
2356
+ }
2357
+ }
2358
+ }
2359
+ stateNumericStart(input, offset) {
2360
+ if (offset >= input.length) {
2361
+ return -1;
2362
+ }
2363
+ if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
2364
+ this.state = EntityDecoderState.NumericHex;
2365
+ this.consumed += 1;
2366
+ return this.stateNumericHex(input, offset + 1);
2367
+ }
2368
+ this.state = EntityDecoderState.NumericDecimal;
2369
+ return this.stateNumericDecimal(input, offset);
2370
+ }
2371
+ addToNumericResult(input, start, end, base) {
2372
+ if (start !== end) {
2373
+ const digitCount = end - start;
2374
+ this.result = this.result * Math.pow(base, digitCount) + Number.parseInt(input.substr(start, digitCount), base);
2375
+ this.consumed += digitCount;
2376
+ }
2377
+ }
2378
+ stateNumericHex(input, offset) {
2379
+ const startIndex = offset;
2380
+ while (offset < input.length) {
2381
+ const char = input.charCodeAt(offset);
2382
+ if (isNumber(char) || isHexadecimalCharacter(char)) {
2383
+ offset += 1;
2384
+ } else {
2385
+ this.addToNumericResult(input, startIndex, offset, 16);
2386
+ return this.emitNumericEntity(char, 3);
2387
+ }
2388
+ }
2389
+ this.addToNumericResult(input, startIndex, offset, 16);
2390
+ return -1;
2391
+ }
2392
+ stateNumericDecimal(input, offset) {
2393
+ const startIndex = offset;
2394
+ while (offset < input.length) {
2395
+ const char = input.charCodeAt(offset);
2396
+ if (isNumber(char)) {
2397
+ offset += 1;
2398
+ } else {
2399
+ this.addToNumericResult(input, startIndex, offset, 10);
2400
+ return this.emitNumericEntity(char, 2);
2401
+ }
2402
+ }
2403
+ this.addToNumericResult(input, startIndex, offset, 10);
2404
+ return -1;
2405
+ }
2406
+ emitNumericEntity(lastCp, expectedLength) {
2407
+ var _a;
2408
+ if (this.consumed <= expectedLength) {
2409
+ (_a = this.errors) === null || _a === undefined || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
2410
+ return 0;
2411
+ }
2412
+ if (lastCp === CharCodes.SEMI) {
2413
+ this.consumed += 1;
2414
+ } else if (this.decodeMode === DecodingMode.Strict) {
2415
+ return 0;
2416
+ }
2417
+ this.emitCodePoint(replaceCodePoint(this.result), this.consumed);
2418
+ if (this.errors) {
2419
+ if (lastCp !== CharCodes.SEMI) {
2420
+ this.errors.missingSemicolonAfterCharacterReference();
2421
+ }
2422
+ this.errors.validateNumericCharacterReference(this.result);
2423
+ }
2424
+ return this.consumed;
2425
+ }
2426
+ stateNamedEntity(input, offset) {
2427
+ const { decodeTree } = this;
2428
+ let current = decodeTree[this.treeIndex];
2429
+ let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
2430
+ for (;offset < input.length; offset++, this.excess++) {
2431
+ const char = input.charCodeAt(offset);
2432
+ this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
2433
+ if (this.treeIndex < 0) {
2434
+ return this.result === 0 || this.decodeMode === DecodingMode.Attribute && (valueLength === 0 || isEntityInAttributeInvalidEnd(char)) ? 0 : this.emitNotTerminatedNamedEntity();
2435
+ }
2436
+ current = decodeTree[this.treeIndex];
2437
+ valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
2438
+ if (valueLength !== 0) {
2439
+ if (char === CharCodes.SEMI) {
2440
+ return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
2441
+ }
2442
+ if (this.decodeMode !== DecodingMode.Strict) {
2443
+ this.result = this.treeIndex;
2444
+ this.consumed += this.excess;
2445
+ this.excess = 0;
2446
+ }
2447
+ }
2448
+ }
2449
+ return -1;
2450
+ }
2451
+ emitNotTerminatedNamedEntity() {
2452
+ var _a;
2453
+ const { result, decodeTree } = this;
2454
+ const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
2455
+ this.emitNamedEntityData(result, valueLength, this.consumed);
2456
+ (_a = this.errors) === null || _a === undefined || _a.missingSemicolonAfterCharacterReference();
2457
+ return this.consumed;
2458
+ }
2459
+ emitNamedEntityData(result, valueLength, consumed) {
2460
+ const { decodeTree } = this;
2461
+ this.emitCodePoint(valueLength === 1 ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH : decodeTree[result + 1], consumed);
2462
+ if (valueLength === 3) {
2463
+ this.emitCodePoint(decodeTree[result + 2], consumed);
2464
+ }
2465
+ return consumed;
2466
+ }
2467
+ end() {
2468
+ var _a;
2469
+ switch (this.state) {
2470
+ case EntityDecoderState.NamedEntity: {
2471
+ return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
2472
+ }
2473
+ case EntityDecoderState.NumericDecimal: {
2474
+ return this.emitNumericEntity(0, 2);
2475
+ }
2476
+ case EntityDecoderState.NumericHex: {
2477
+ return this.emitNumericEntity(0, 3);
2478
+ }
2479
+ case EntityDecoderState.NumericStart: {
2480
+ (_a = this.errors) === null || _a === undefined || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
2481
+ return 0;
2482
+ }
2483
+ case EntityDecoderState.EntityStart: {
2484
+ return 0;
2485
+ }
2486
+ }
2487
+ }
2488
+ }
2489
+ function getDecoder(decodeTree) {
2490
+ let returnValue = "";
2491
+ const decoder = new EntityDecoder(decodeTree, (data) => returnValue += fromCodePoint(data));
2492
+ return function decodeWithTrie(input, decodeMode) {
2493
+ let lastIndex = 0;
2494
+ let offset = 0;
2495
+ while ((offset = input.indexOf("&", offset)) >= 0) {
2496
+ returnValue += input.slice(lastIndex, offset);
2497
+ decoder.startEntity(decodeMode);
2498
+ const length = decoder.write(input, offset + 1);
2499
+ if (length < 0) {
2500
+ lastIndex = offset + decoder.end();
2501
+ break;
2502
+ }
2503
+ lastIndex = offset + length;
2504
+ offset = length === 0 ? lastIndex + 1 : lastIndex;
2505
+ }
2506
+ const result = returnValue + input.slice(lastIndex);
2507
+ returnValue = "";
2508
+ return result;
2509
+ };
2510
+ }
2511
+ function determineBranch(decodeTree, current, nodeIndex, char) {
2512
+ const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
2513
+ const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
2514
+ if (branchCount === 0) {
2515
+ return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
2516
+ }
2517
+ if (jumpOffset) {
2518
+ const value = char - jumpOffset;
2519
+ return value < 0 || value >= branchCount ? -1 : decodeTree[nodeIndex + value] - 1;
2520
+ }
2521
+ let lo = nodeIndex;
2522
+ let hi = lo + branchCount - 1;
2523
+ while (lo <= hi) {
2524
+ const mid = lo + hi >>> 1;
2525
+ const midValue = decodeTree[mid];
2526
+ if (midValue < char) {
2527
+ lo = mid + 1;
2528
+ } else if (midValue > char) {
2529
+ hi = mid - 1;
2530
+ } else {
2531
+ return decodeTree[mid + branchCount];
2532
+ }
2533
+ }
2534
+ return -1;
2535
+ }
2536
+ var htmlDecoder = /* @__PURE__ */ getDecoder(htmlDecodeTree);
2537
+ function decodeHTML(htmlString, mode = DecodingMode.Legacy) {
2538
+ return htmlDecoder(htmlString, mode);
2539
+ }
2540
+
2541
+ // ../../node_modules/.bun/entities@6.0.1/node_modules/entities/dist/esm/index.js
2542
+ var EntityLevel;
2543
+ (function(EntityLevel) {
2544
+ EntityLevel[EntityLevel["XML"] = 0] = "XML";
2545
+ EntityLevel[EntityLevel["HTML"] = 1] = "HTML";
2546
+ })(EntityLevel || (EntityLevel = {}));
2547
+ var EncodingMode;
2548
+ (function(EncodingMode) {
2549
+ EncodingMode[EncodingMode["UTF8"] = 0] = "UTF8";
2550
+ EncodingMode[EncodingMode["ASCII"] = 1] = "ASCII";
2551
+ EncodingMode[EncodingMode["Extensive"] = 2] = "Extensive";
2552
+ EncodingMode[EncodingMode["Attribute"] = 3] = "Attribute";
2553
+ EncodingMode[EncodingMode["Text"] = 4] = "Text";
2554
+ })(EncodingMode || (EncodingMode = {}));
2555
+
2556
+ // src/extract.ts
2557
+ var sentences = new Intl.Segmenter("en", { granularity: "sentence" });
2558
+ function extract(markdown) {
2559
+ return blocks(d.lexer(markdown)).filter((text) => text.trim());
2560
+ }
2561
+ function blocks(tokens) {
2562
+ return tokens.flatMap((token) => {
2563
+ if (token.type === "code" || token.type === "html")
2564
+ return [token.text];
2565
+ if (token.type === "blockquote")
2566
+ return blocks(token.tokens);
2567
+ if (token.type === "list")
2568
+ return token.items.flatMap((item) => blocks(item.tokens));
2569
+ if (token.type === "table") {
2570
+ const table = token;
2571
+ return [
2572
+ ...table.header.flatMap((cell) => prose(cell.tokens)),
2573
+ ...table.rows.flatMap((row) => row.flatMap((cell) => prose(cell.tokens)))
2574
+ ];
2575
+ }
2576
+ if (token.type === "heading")
2577
+ return prose(token.tokens, false);
2578
+ if (token.type === "paragraph" || token.type === "text")
2579
+ return prose(token.tokens ?? d.Lexer.lexInline(token.text));
2580
+ return [];
2581
+ });
2582
+ }
2583
+ function inline(tokens) {
2584
+ return tokens.flatMap((token) => {
2585
+ if (token.type === "br")
2586
+ return [{ text: "", protected: false, break: true }];
2587
+ if (token.type === "codespan" || token.type === "html" || token.type === "escape")
2588
+ return [{ text: token.text, protected: true }];
2589
+ if ("tokens" in token && token.tokens)
2590
+ return inline(token.tokens);
2591
+ if (token.type === "text")
2592
+ return [{ text: decodeHTML(token.text).replace(/\s+/g, " "), protected: false }];
2593
+ return [];
2594
+ });
2595
+ }
2596
+ function prose(tokens, split = true) {
2597
+ const lines = [{ text: "", protected: [] }];
2598
+ inline(tokens).forEach((part) => {
2599
+ if (part.break)
2600
+ return void lines.push({ text: "", protected: [] });
2601
+ const line = lines.at(-1);
2602
+ const text = !part.protected && /\s$/.test(line.text) ? part.text.replace(/^\s+/, "") : part.text;
2603
+ if (part.protected)
2604
+ line.protected.push([line.text.length, line.text.length + text.length]);
2605
+ line.text += text;
2606
+ });
2607
+ return lines.flatMap((line) => {
2608
+ if (!split)
2609
+ return [line.text.trim()];
2610
+ const protectedRanges = [
2611
+ ...line.protected,
2612
+ ...Array.from(line.text.matchAll(/(?:https?:\/\/|www\.)\S+|\d+(?:[.,]\d+)+/g), (match) => [
2613
+ match.index,
2614
+ match.index + match[0].length
2615
+ ])
2616
+ ];
2617
+ const result = [];
2618
+ let start = 0;
2619
+ Array.from(sentences.segment(line.text)).forEach((segment) => {
2620
+ const end = segment.index + segment.segment.length;
2621
+ const boundary = line.text.slice(0, end).trimEnd().length;
2622
+ if (end < line.text.length && (protectedRanges.some(([from, to]) => boundary > from && boundary < to) || /(?:\b(?:Mr|Mrs|Ms|Dr|Prof|Sr|Jr|e\.g|i\.e|vs|etc)|\b[A-Z])\.$/i.test(line.text.slice(start, boundary))))
2623
+ return;
2624
+ result.push(line.text.slice(start, end).trim());
2625
+ start = end;
2626
+ });
2627
+ return result;
2628
+ });
2629
+ }
2630
+
2631
+ // src/search.ts
2632
+ var graphemes = new Intl.Segmenter("en", { granularity: "grapheme" });
2633
+ function prepare(entries, saved = []) {
2634
+ return [
2635
+ ...entries,
2636
+ ...saved.map((prompt) => ({
2637
+ id: `saved:${prompt.id}`,
2638
+ text: prompt.text,
2639
+ saved: true,
2640
+ time: prompt.updatedAt
2641
+ }))
2642
+ ].map((entry) => {
2643
+ const readable = entry.saved ? extract(entry.text).join(" ") : entry.text;
2644
+ const normalized = normalize(readable);
2645
+ return { entry, readable, ...normalized, fuzzy: import_fuzzysort.default.prepare(normalized.text) };
2646
+ });
2647
+ }
2648
+ function rank(items, query, fuzzy = true) {
2649
+ const text = normalize(query).text.trim();
2650
+ return items.flatMap((item) => {
2651
+ const offset = item.text.indexOf(text);
2652
+ const found = offset < 0 && fuzzy ? import_fuzzysort.default.single(text, item.fuzzy) : undefined;
2653
+ if (offset < 0 && (!found || found.score < 0.25))
2654
+ return [];
2655
+ const indexes = offset >= 0 ? Array.from({ length: text.length }, (_, i) => offset + i) : found.indexes;
2656
+ const hits = [];
2657
+ indexes.forEach((index) => {
2658
+ const span = item.map[index];
2659
+ const previous = hits.at(-1);
2660
+ if (previous && span.start <= previous.end) {
2661
+ previous.end = Math.max(previous.end, span.end);
2662
+ return;
2663
+ }
2664
+ hits.push({ ...span });
2665
+ });
2666
+ const first = hits[0]?.start ?? 0;
2667
+ return [
2668
+ {
2669
+ entry: item.entry,
2670
+ hits,
2671
+ kind: offset >= 0 ? 0 : 1,
2672
+ coverage: text.length,
2673
+ position: first === 0 ? 0 : /[\p{L}\p{M}\p{N}_]$/u.test(item.readable.slice(0, first)) ? 2 : 1,
2674
+ score: offset >= 0 ? 1 : found.score
2675
+ }
2676
+ ];
2677
+ }).sort(compare);
2678
+ }
2679
+ function complete(items, snapshot, fuzzy = false) {
2680
+ const results = queries(snapshot.text, snapshot.cursor).flatMap((query) => rank(items, query.text, fuzzy).map((match) => ({
2681
+ ...match,
2682
+ query: query.text,
2683
+ edit: {
2684
+ start: query.start,
2685
+ end: query.end,
2686
+ text: match.entry.saved ? match.entry.text : match.entry.text.slice(match.hits[0]?.start ?? 0)
2687
+ }
2688
+ }))).sort(compare);
2689
+ const entries = new Set;
2690
+ const drafts = new Map;
2691
+ results.forEach((result) => {
2692
+ if (entries.has(result.entry.id))
2693
+ return;
2694
+ entries.add(result.entry.id);
2695
+ const draft = snapshot.text.slice(0, result.edit.start) + result.edit.text + snapshot.text.slice(result.edit.end);
2696
+ const previous = drafts.get(draft);
2697
+ if (!previous || result.entry.saved && !previous.entry.saved)
2698
+ drafts.set(draft, result);
2699
+ });
2700
+ return [...drafts.values()];
2701
+ }
2702
+ function queries(text, cursor) {
2703
+ const start = text.lastIndexOf(`
2704
+ `, cursor - 1) + 1;
2705
+ const line = text.slice(start, cursor);
2706
+ const word = line.match(/[\p{L}\p{M}\p{N}_-]+$/u)?.[0] ?? "";
2707
+ const tail = text.slice(cursor).match(/^[\p{L}\p{M}\p{N}_-]+/u)?.[0] ?? "";
2708
+ if (!line.trim())
2709
+ return [{ text: "", start: cursor, end: cursor }];
2710
+ return [
2711
+ ...word ? [
2712
+ {
2713
+ text: word,
2714
+ start: cursor - word.length,
2715
+ end: cursor + tail.length
2716
+ }
2717
+ ] : [],
2718
+ ...line.trimStart() !== word ? [
2719
+ {
2720
+ text: line.trimStart(),
2721
+ start: start + line.length - line.trimStart().length,
2722
+ end: cursor + tail.length
2723
+ }
2724
+ ] : []
2725
+ ];
2726
+ }
2727
+ function automatic(query) {
2728
+ return query.some((item) => !/\s$/.test(item.text) && ((item.text.match(/\p{Script=Han}/gu)?.length ?? 0) >= 2 || /[a-zA-Z]{3}/.test(item.text)));
2729
+ }
2730
+ function compare(a, b) {
2731
+ return a.kind - b.kind || b.coverage - a.coverage || a.position - b.position || b.score - a.score || Number(b.entry.saved) - Number(a.entry.saved) || b.entry.time - a.entry.time || a.entry.id.localeCompare(b.entry.id);
2732
+ }
2733
+ function displayHits(item) {
2734
+ if (!item.entry.saved) {
2735
+ const start = item.hits[0]?.start ?? 0;
2736
+ return item.hits.map((hit) => ({ start: hit.start - start, end: hit.end - start }));
2737
+ }
2738
+ const query = normalize(item.query).text.trim();
2739
+ if (!query)
2740
+ return [];
2741
+ const original = normalize(item.edit.text);
2742
+ const start = original.text.indexOf(query);
2743
+ if (start < 0)
2744
+ return [];
2745
+ return [{ start: original.map[start].start, end: original.map[start + query.length - 1].end }];
2746
+ }
2747
+ function normalize(value) {
2748
+ const map = [];
2749
+ let text = "";
2750
+ Array.from(graphemes.segment(value)).forEach((part) => {
2751
+ const normalized = part.segment.normalize("NFKC").toLowerCase().replace(/\s+/g, " ");
2752
+ Array.from({ length: normalized.length }, (_, index) => {
2753
+ const char = normalized[index];
2754
+ if (char === " " && text.endsWith(" ")) {
2755
+ map.at(-1).end = part.index + part.segment.length;
2756
+ return;
2757
+ }
2758
+ text += char;
2759
+ map.push({ start: part.index, end: part.index + part.segment.length });
2760
+ });
2761
+ });
2762
+ return { text, map };
2763
+ }
2764
+
2765
+ // src/history.ts
2766
+ import { createEffect, createMemo, createSignal, onCleanup, untrack } from "solid-js";
2767
+ function conversation(message) {
2768
+ return extract(messageText(message)).map((text, index) => ({
2769
+ text,
2770
+ id: `${message.id}:${index}`,
2771
+ saved: false,
2772
+ time: message.time.created
2773
+ }));
2774
+ }
2775
+ function messageText(message) {
2776
+ if (message.type === "user")
2777
+ return message.text;
2778
+ if (message.type === "assistant" && message.time.completed !== undefined)
2779
+ return message.content.filter((part) => part.type === "text").map((part) => part.text).join(`
2780
+
2781
+ `);
2782
+ return "";
2783
+ }
2784
+ function conversationHistory(context, session) {
2785
+ const [revision, setRevision] = createSignal(0);
2786
+ const [status, setStatus] = createSignal("ready");
2787
+ const [view, setView] = createSignal({
2788
+ entries: []
2789
+ });
2790
+ let retry = () => {};
2791
+ onCleanup(context.data.on("session.revert.committed", (event) => {
2792
+ if (event.data.sessionID === session())
2793
+ setRevision((value) => value + 1);
2794
+ }));
2795
+ createEffect(() => {
2796
+ const sessionID = session();
2797
+ revision();
2798
+ const controller = new AbortController;
2799
+ onCleanup(() => controller.abort());
2800
+ setView({ session: sessionID, entries: [] });
2801
+ setStatus(sessionID ? "loading" : "ready");
2802
+ retry = () => {};
2803
+ if (!sessionID)
2804
+ return;
2805
+ const messages = new Map;
2806
+ const [synced, setSynced] = createSignal(false);
2807
+ let cursor;
2808
+ let done = false;
2809
+ let running = false;
2810
+ const merge = (incoming, live) => {
2811
+ let changed = false;
2812
+ incoming.forEach((message) => {
2813
+ const previous = messages.get(message.id);
2814
+ if (previous?.live && !live)
2815
+ return;
2816
+ const text = messageText(message);
2817
+ if (previous?.text === text) {
2818
+ previous.live ||= live;
2819
+ return;
2820
+ }
2821
+ messages.set(message.id, {
2822
+ text,
2823
+ entries: conversation(message),
2824
+ live
2825
+ });
2826
+ changed = true;
2827
+ });
2828
+ if (changed)
2829
+ setView({
2830
+ session: sessionID,
2831
+ entries: [...messages.values()].flatMap((item) => item.entries)
2832
+ });
2833
+ };
2834
+ createEffect(() => {
2835
+ const live = context.data.session.message.list(sessionID);
2836
+ if (synced())
2837
+ untrack(() => merge(live, true));
2838
+ });
2839
+ const load = async () => {
2840
+ if (running || controller.signal.aborted)
2841
+ return;
2842
+ running = true;
2843
+ setStatus("loading");
2844
+ const sync = synced() ? Promise.resolve() : context.data.session.message.sync(sessionID).then(() => {
2845
+ if (!controller.signal.aborted)
2846
+ setSynced(true);
2847
+ });
2848
+ const pages = async () => {
2849
+ while (!done) {
2850
+ const page = await context.client.message.list({
2851
+ sessionID,
2852
+ limit: 200,
2853
+ ...cursor ? { cursor } : { order: "desc" }
2854
+ }, { signal: controller.signal });
2855
+ if (controller.signal.aborted)
2856
+ return;
2857
+ merge(page.data, false);
2858
+ cursor = page.cursor.next ?? undefined;
2859
+ done = !cursor;
2860
+ }
2861
+ };
2862
+ const result = await Promise.allSettled([sync, pages()]);
2863
+ running = false;
2864
+ if (!controller.signal.aborted)
2865
+ setStatus(result.some((item) => item.status === "rejected") ? "failed" : "ready");
2866
+ };
2867
+ retry = () => {
2868
+ if (status() === "failed")
2869
+ untrack(load);
2870
+ };
2871
+ untrack(load);
2872
+ });
2873
+ return {
2874
+ entries: createMemo(() => view().session === session() ? view().entries : []),
2875
+ status,
2876
+ retry: () => retry()
2877
+ };
2878
+ }
2879
+
2880
+ // src/suggestions.tsx
2881
+ import { BoxRenderable as BoxRenderable2, TextRenderable, StyledText, TextAttributes, RGBA } from "@opentui/core";
2882
+ import { createEffect as createEffect2, createMemo as createMemo2, createSignal as createSignal2, onCleanup as onCleanup2, onMount, untrack as untrack2 } from "solid-js";
2883
+
2884
+ // src/copy.ts
2885
+ var copy = {
2886
+ library: "Prompt library",
2887
+ show: "Show suggestions",
2888
+ saveCurrent: "Save current prompt",
2889
+ saveSelection: "Save selection",
2890
+ saveToLibrary: "Save prompt",
2891
+ saved: "Prompt saved",
2892
+ openLibrary: "Open prompt library",
2893
+ enable: "Enable automatic suggestions",
2894
+ disable: "Disable automatic suggestions",
2895
+ empty: "No matching suggestions",
2896
+ noSuggestions: "No suggestions yet",
2897
+ insert: "Insert",
2898
+ replaceSelection: "Replace selection",
2899
+ stale: "The draft changed. Close the library and choose an insertion position again.",
2900
+ protected: "This edit would replace an attachment or pasted-text placeholder.",
2901
+ unavailable: "Focus the prompt to choose an insertion position.",
2902
+ conflict: "This prompt changed in another terminal. Your edits are still here. Save as a new prompt or reopen the latest version.",
2903
+ failed: "Could not save. Your edits are still here. Try again.",
2904
+ duplicate: "This text is already in your prompt library.",
2905
+ emptyText: "Enter some prompt text before saving.",
2906
+ discard: "Discard unsaved changes?",
2907
+ discardMessage: "Your changes have not been saved.",
2908
+ discardAction: "Discard",
2909
+ keepEditing: "Keep editing",
2910
+ prompt: "Prompt",
2911
+ newPrompt: "New prompt",
2912
+ editPrompt: "Edit prompt",
2913
+ edit: "Edit",
2914
+ delete: "Delete",
2915
+ deletePrompt: "Delete prompt?",
2916
+ deleteFailed: "Could not delete the prompt. Try again.",
2917
+ save: "Save",
2918
+ saving: "Saving\u2026",
2919
+ saveAsNew: "Save as new",
2920
+ cancel: "Cancel",
2921
+ back: "Back",
2922
+ close: "Close",
2923
+ search: "Search prompts",
2924
+ noText: "Select or enter some prompt text to save.",
2925
+ settingFailed: "Could not save the setting. Try again.",
2926
+ historyLoading: "Loading history\u2026",
2927
+ historyLoadingShort: "Loading\u2026",
2928
+ historyFailed: "History incomplete",
2929
+ historyFailedShort: "Incomplete",
2930
+ historyRetry: "Esc \u2192 F12"
2931
+ };
2932
+
2933
+ // src/suggestions.tsx
2934
+ function suggestions(context, composer, items, enabled, save, history) {
2935
+ const [open, setOpen] = createSignal2(false);
2936
+ const colors = createMemo2(() => {
2937
+ const dialog = context.theme.surface("dialog");
2938
+ const footer = context.theme.surface("dialog.footer");
2939
+ return {
2940
+ background: dialog.background.base,
2941
+ alternate: alternateBackground(dialog.background.base, context.themeMode),
2942
+ text: dialog.text.base,
2943
+ muted: dialog.text.muted,
2944
+ border: dialog.border.base,
2945
+ selectedBackground: dialog.background.action.primary.focused,
2946
+ selectedText: dialog.text.action.primary.focused,
2947
+ footerBackground: footer.background.base,
2948
+ footerText: footer.text.base,
2949
+ footerMuted: footer.text.muted,
2950
+ footerWarning: footer.text.feedback.warning.base
2951
+ };
2952
+ });
2953
+ const popup = new BoxRenderable2(context.renderer, {
2954
+ id: `occo.suggestions.${composer.marker.num}`,
2955
+ position: "absolute",
2956
+ zIndex: 101,
2957
+ visible: false,
2958
+ flexDirection: "column"
2959
+ });
2960
+ let timer;
2961
+ let cooldown = 0;
2962
+ let snapshot;
2963
+ let results = [];
2964
+ let selected = 0;
2965
+ let manual = false;
2966
+ let disposed = false;
2967
+ let bounds = "";
2968
+ let first = 0;
2969
+ let layoutKey = "";
2970
+ let timeColumns = 0;
2971
+ let now = new Date;
2972
+ const layouts = new Map;
2973
+ function close(dismissed = false) {
2974
+ clearTimeout(timer);
2975
+ if (dismissed)
2976
+ cooldown = Date.now() + 3000;
2977
+ setOpen(false);
2978
+ popup.visible = false;
2979
+ }
2980
+ function paint() {
2981
+ if (!open())
2982
+ return;
2983
+ const anchor = composer.anchor();
2984
+ if (!anchor || anchor.y < 2)
2985
+ return close();
2986
+ popup.getChildren().forEach((child) => child.destroyRecursively());
2987
+ popup.backgroundColor = colors().background;
2988
+ const width = Math.max(1, Math.min(anchor.width, context.renderer.width - anchor.x));
2989
+ popup.width = width;
2990
+ popup.left = Math.max(0, anchor.x);
2991
+ const padding = context.renderer.width < 44 ? 1 : 2;
2992
+ const budget = Math.min(8, anchor.y - 1);
2993
+ const contentWidth = width - 1 - 2 - 2;
2994
+ const clockWidth = Math.max(0, Math.min(timeColumns, contentWidth - 1 - 12));
2995
+ const bodyWidth = Math.max(1, contentWidth - (clockWidth ? clockWidth + 1 : 0));
2996
+ const key = `${bodyWidth}:${budget}`;
2997
+ if (key !== layoutKey)
2998
+ layouts.clear();
2999
+ layoutKey = key;
3000
+ const lines = (index) => {
3001
+ const cached = layouts.get(index);
3002
+ if (cached)
3003
+ return cached;
3004
+ const value = preview(results[index], bodyWidth, Math.min(3, budget));
3005
+ layouts.set(index, value);
3006
+ return value;
3007
+ };
3008
+ const view = suggestionWindow(results.length, selected, first, budget, (index) => lines(index).length);
3009
+ first = view.start;
3010
+ if (!results.length) {
3011
+ const empty = new BoxRenderable2(context.renderer, {
3012
+ height: 1,
3013
+ flexShrink: 0,
3014
+ paddingLeft: padding,
3015
+ paddingRight: 1
3016
+ });
3017
+ empty.add(new TextRenderable(context.renderer, {
3018
+ content: history.status() === "ready" ? copy.empty : copy.noSuggestions,
3019
+ height: 1,
3020
+ fg: colors().muted,
3021
+ truncate: true
3022
+ }));
3023
+ popup.add(empty);
3024
+ }
3025
+ results.slice(view.start, view.end).forEach((item, index) => {
3026
+ const position = view.start + index;
3027
+ const highlighted = selected === position;
3028
+ const content = lines(position);
3029
+ const row = new BoxRenderable2(context.renderer, {
3030
+ id: `occo.candidate.${position}`,
3031
+ height: content.length,
3032
+ flexDirection: "row",
3033
+ flexShrink: 0,
3034
+ paddingLeft: 1,
3035
+ paddingRight: 2,
3036
+ backgroundColor: highlighted ? colors().selectedBackground : position % 2 ? colors().alternate : colors().background,
3037
+ onMouseDown(event) {
3038
+ event.preventDefault();
3039
+ event.stopPropagation();
3040
+ },
3041
+ onMouseUp(event) {
3042
+ event.preventDefault();
3043
+ event.stopPropagation();
3044
+ if (event.button !== 0)
3045
+ return;
3046
+ selected = position;
3047
+ paint();
3048
+ }
3049
+ });
3050
+ row.add(new TextRenderable(context.renderer, {
3051
+ content: item.entry.saved ? "\u2B50" : "\uD83D\uDCAC",
3052
+ width: 2,
3053
+ height: 1,
3054
+ flexShrink: 0,
3055
+ selectable: false,
3056
+ fg: highlighted ? colors().selectedText : colors().text
3057
+ }));
3058
+ row.add(new TextRenderable(context.renderer, {
3059
+ content: new StyledText(content.flatMap((line, index) => [...index ? [{
3060
+ text: `
3061
+ `,
3062
+ __isChunk: true
3063
+ }] : [], ...line.chunks])),
3064
+ height: content.length,
3065
+ width: bodyWidth,
3066
+ flexShrink: 0,
3067
+ wrapMode: "none",
3068
+ truncate: true,
3069
+ selectable: false,
3070
+ fg: highlighted ? colors().selectedText : colors().text
3071
+ }));
3072
+ if (clockWidth)
3073
+ row.add(new TextRenderable(context.renderer, {
3074
+ content: fitChunks([{
3075
+ text: formatTime(item.entry.time, now),
3076
+ __isChunk: true
3077
+ }], clockWidth).map((chunk) => chunk.text).join(""),
3078
+ width: clockWidth,
3079
+ marginLeft: 1,
3080
+ height: 1,
3081
+ flexShrink: 0,
3082
+ wrapMode: "none",
3083
+ truncate: true,
3084
+ selectable: false,
3085
+ textAlign: "right",
3086
+ fg: highlighted ? colors().selectedText : colors().muted
3087
+ }));
3088
+ edges(row, content.length, position === view.start, position === view.end - 1);
3089
+ popup.add(row);
3090
+ });
3091
+ const used = results.slice(view.start, view.end).reduce((height, _, index) => height + lines(view.start + index).length, 0);
3092
+ if (results.length && used < view.height)
3093
+ popup.add(new BoxRenderable2(context.renderer, {
3094
+ height: view.height - used,
3095
+ flexShrink: 0
3096
+ }));
3097
+ const controls = new BoxRenderable2(context.renderer, {
3098
+ id: "occo.footer",
3099
+ flexDirection: "row",
3100
+ height: 1,
3101
+ flexShrink: 0,
3102
+ paddingLeft: padding,
3103
+ paddingRight: 2,
3104
+ gap: 2,
3105
+ backgroundColor: colors().footerBackground
3106
+ });
3107
+ const footer = suggestionFooter(width - padding - 2, selected, results.length, history.status());
3108
+ footer.left.forEach((action) => controls.add(new TextRenderable(context.renderer, {
3109
+ id: `occo.footer.${action.action}`,
3110
+ content: new StyledText([{
3111
+ text: action.key,
3112
+ fg: colors().footerText,
3113
+ __isChunk: true
3114
+ }, {
3115
+ text: action.label ? ` ${action.label}` : "",
3116
+ fg: colors().footerMuted,
3117
+ __isChunk: true
3118
+ }]),
3119
+ selectable: false,
3120
+ height: 1,
3121
+ minWidth: 0,
3122
+ wrapMode: "none",
3123
+ truncate: true,
3124
+ flexShrink: 0,
3125
+ onMouseDown(event) {
3126
+ event.preventDefault();
3127
+ event.stopPropagation();
3128
+ },
3129
+ onMouseUp(event) {
3130
+ event.preventDefault();
3131
+ event.stopPropagation();
3132
+ if (event.button !== 0)
3133
+ return;
3134
+ if (action.action === "insert")
3135
+ accept();
3136
+ if (action.action === "close")
3137
+ close(true);
3138
+ if (action.action === "save")
3139
+ saveSelected();
3140
+ }
3141
+ })));
3142
+ if (footer.right)
3143
+ controls.add(new TextRenderable(context.renderer, {
3144
+ id: "occo.footer.state",
3145
+ content: footer.right.text,
3146
+ fg: footer.right.kind === "failed" ? colors().footerWarning : colors().footerMuted,
3147
+ height: 1,
3148
+ flexGrow: 1,
3149
+ textAlign: "right",
3150
+ wrapMode: "none",
3151
+ selectable: false
3152
+ }));
3153
+ popup.add(controls);
3154
+ const height = view.height + 1;
3155
+ popup.height = height;
3156
+ popup.top = anchor.y - height;
3157
+ popup.visible = true;
3158
+ bounds = `${anchor.x}:${anchor.y}:${anchor.width}:${context.renderer.width}:${context.renderer.height}`;
3159
+ }
3160
+ function edges(row, height, first, last) {
3161
+ [false, true].forEach((right) => row.add(new TextRenderable(context.renderer, {
3162
+ id: `occo.edge.${row.num}.${right}`,
3163
+ position: "absolute",
3164
+ left: right ? undefined : 0,
3165
+ right: right ? 0 : undefined,
3166
+ top: 0,
3167
+ width: 1,
3168
+ height,
3169
+ content: Array.from({
3170
+ length: height
3171
+ }, (_, line) => {
3172
+ if (first && last && height === 1)
3173
+ return "-";
3174
+ if (first && !line)
3175
+ return right ? "\u2510" : "\u250C";
3176
+ if (last && line === height - 1)
3177
+ return right ? "\u2518" : "\u2514";
3178
+ return "\u2502";
3179
+ }).join(`
3180
+ `),
3181
+ fg: colors().border,
3182
+ bg: colors().background,
3183
+ wrapMode: "none",
3184
+ selectable: false
3185
+ })));
3186
+ }
3187
+ function show() {
3188
+ const current = composer.current();
3189
+ if (!current)
3190
+ return close();
3191
+ const previous = results[selected]?.entry.id;
3192
+ const changed = !snapshot || snapshot.session !== current.session || JSON.stringify(queries(snapshot.text, snapshot.cursor)) !== JSON.stringify(queries(current.text, current.cursor));
3193
+ snapshot = current;
3194
+ results = complete(items(), current, manual);
3195
+ layouts.clear();
3196
+ now = new Date;
3197
+ timeColumns = results.reduce((width, item) => {
3198
+ const date = new Date(item.entry.time);
3199
+ if (!Number.isFinite(date.getTime()))
3200
+ return width;
3201
+ return Math.max(width, date.getFullYear() !== now.getFullYear() ? 16 : date.toDateString() !== now.toDateString() ? 11 : 5);
3202
+ }, 0);
3203
+ const retained = results.findIndex((item) => item.entry.id === previous);
3204
+ selected = changed ? 0 : retained >= 0 ? retained : Math.min(selected, Math.max(0, results.length - 1));
3205
+ if (changed)
3206
+ first = 0;
3207
+ if (!manual && !results.length)
3208
+ return close();
3209
+ setOpen(true);
3210
+ paint();
3211
+ }
3212
+ function refresh() {
3213
+ if (disposed)
3214
+ return;
3215
+ clearTimeout(timer);
3216
+ const current = composer.current();
3217
+ if (!current)
3218
+ return close();
3219
+ if (open()) {
3220
+ if (!manual && (!enabled() || !automatic(queries(current.text, current.cursor))))
3221
+ return close();
3222
+ return show();
3223
+ }
3224
+ if (!enabled() || Date.now() < cooldown || !automatic(queries(current.text, current.cursor)))
3225
+ return;
3226
+ manual = false;
3227
+ timer = setTimeout(show, 300);
3228
+ }
3229
+ function toggle() {
3230
+ if (open())
3231
+ return close(true);
3232
+ clearTimeout(timer);
3233
+ manual = true;
3234
+ history.retry();
3235
+ snapshot = undefined;
3236
+ show();
3237
+ }
3238
+ function accept() {
3239
+ const item = results[selected];
3240
+ const target = snapshot;
3241
+ if (!item || !target)
3242
+ return;
3243
+ close(true);
3244
+ const result = composer.apply(target, item.edit);
3245
+ if (result !== "applied")
3246
+ context.ui.toast.show({
3247
+ message: result === "protected" ? copy.protected : copy.stale,
3248
+ variant: "warning"
3249
+ });
3250
+ }
3251
+ function saveSelected() {
3252
+ const item = results[selected];
3253
+ if (!item)
3254
+ return;
3255
+ close(true);
3256
+ save(item.entry.text);
3257
+ }
3258
+ context.keymap.layer(() => ({
3259
+ priority: 1000,
3260
+ target: composer.editor,
3261
+ enabled: open(),
3262
+ commands: [{
3263
+ bind: "up",
3264
+ run() {
3265
+ selected = (selected - 1 + results.length) % Math.max(1, results.length);
3266
+ paint();
3267
+ }
3268
+ }, {
3269
+ bind: "down",
3270
+ run() {
3271
+ selected = (selected + 1) % Math.max(1, results.length);
3272
+ paint();
3273
+ }
3274
+ }, {
3275
+ bind: "escape",
3276
+ run: () => close(true)
3277
+ }, {
3278
+ bind: "return",
3279
+ run: accept
3280
+ }, {
3281
+ bind: "ctrl+s",
3282
+ run: saveSelected
3283
+ }]
3284
+ }));
3285
+ createEffect2(() => {
3286
+ items();
3287
+ history.status();
3288
+ enabled();
3289
+ context.keymap.mode.current();
3290
+ context.ui.router.current();
3291
+ untrack2(refresh);
3292
+ });
3293
+ createEffect2(() => {
3294
+ colors();
3295
+ untrack2(paint);
3296
+ });
3297
+ onMount(() => {
3298
+ context.renderer.root.add(popup);
3299
+ context.renderer.setFrameCallback(frame);
3300
+ context.renderer.on("resize", paint);
3301
+ });
3302
+ async function frame() {
3303
+ const anchor = composer.anchor();
3304
+ if (open() && anchor && bounds !== `${anchor.x}:${anchor.y}:${anchor.width}:${context.renderer.width}:${context.renderer.height}`)
3305
+ paint();
3306
+ }
3307
+ onCleanup2(() => {
3308
+ disposed = true;
3309
+ close();
3310
+ context.renderer.removeFrameCallback(frame);
3311
+ context.renderer.off("resize", paint);
3312
+ popup.destroyRecursively();
3313
+ });
3314
+ return {
3315
+ refresh,
3316
+ toggle,
3317
+ close
3318
+ };
3319
+ }
3320
+ function alternateBackground(background, mode) {
3321
+ const lightness = (Math.max(background.r, background.g, background.b) + Math.min(background.r, background.g, background.b)) / 2;
3322
+ const adjusted = Math.max(0, Math.min(1, lightness + (mode === "dark" ? 0.08 : -0.08)));
3323
+ const scale = lightness > 0 && lightness < 1 ? Math.min(adjusted, 1 - adjusted) / Math.min(lightness, 1 - lightness) : 0;
3324
+ return RGBA.fromValues(adjusted + (background.r - lightness) * scale, adjusted + (background.g - lightness) * scale, adjusted + (background.b - lightness) * scale, background.a);
3325
+ }
3326
+ function suggestionFooter(width, selected, total, status) {
3327
+ const actions = [...total ? [{
3328
+ key: "Enter",
3329
+ label: copy.insert,
3330
+ action: "insert"
3331
+ }, {
3332
+ key: "Ctrl+S",
3333
+ label: copy.save,
3334
+ action: "save"
3335
+ }] : [], {
3336
+ key: "Esc",
3337
+ label: copy.close,
3338
+ action: "close"
3339
+ }];
3340
+ const primary = actions.filter((item) => item.action !== "save");
3341
+ const compact = primary.map((item) => ({
3342
+ ...item,
3343
+ label: ""
3344
+ }));
3345
+ const right = status === "loading" ? {
3346
+ text: copy.historyLoading,
3347
+ kind: status
3348
+ } : status === "failed" ? {
3349
+ text: copy.historyFailed,
3350
+ kind: status
3351
+ } : total > 1 ? {
3352
+ text: `\u2191\u2193 ${selected + 1}/${total}`,
3353
+ kind: status
3354
+ } : undefined;
3355
+ const short = right && {
3356
+ kind: right.kind,
3357
+ text: status === "loading" ? copy.historyLoadingShort : status === "failed" ? copy.historyFailedShort : `${selected + 1}/${total}`
3358
+ };
3359
+ const essential = compact.slice(0, 1);
3360
+ return [...status === "failed" ? [{
3361
+ left: actions,
3362
+ right: {
3363
+ text: `${copy.historyFailed} \xB7 ${copy.historyRetry}`,
3364
+ kind: status
3365
+ }
3366
+ }] : [], {
3367
+ left: actions,
3368
+ right
3369
+ }, {
3370
+ left: primary,
3371
+ right
3372
+ }, {
3373
+ left: compact,
3374
+ right
3375
+ }, {
3376
+ left: compact,
3377
+ right: short
3378
+ }, ...status === "ready" ? [{
3379
+ left: compact,
3380
+ right: undefined
3381
+ }] : [], {
3382
+ left: essential,
3383
+ right: short
3384
+ }, {
3385
+ left: essential,
3386
+ right: undefined
3387
+ }, {
3388
+ left: [],
3389
+ right: undefined
3390
+ }].find((layout) => Bun.stringWidth([...layout.left.map((item) => item.key + (item.label ? ` ${item.label}` : "")), ...layout.right ? [layout.right.text] : []].join(" ")) <= Math.max(0, width));
3391
+ }
3392
+ var graphemes2 = new Intl.Segmenter("en", {
3393
+ granularity: "grapheme"
3394
+ });
3395
+ function preview(item, width, limit = 3) {
3396
+ const hits = displayHits(item);
3397
+ const lines = [{
3398
+ chunks: [],
3399
+ width: 0
3400
+ }];
3401
+ Array.from(graphemes2.segment(item.edit.text)).forEach((part) => {
3402
+ if (/^(?:\r\n|\r|\n)$/.test(part.segment)) {
3403
+ lines.push({
3404
+ chunks: [],
3405
+ width: 0
3406
+ });
3407
+ return;
3408
+ }
3409
+ const text = part.segment === "\t" ? " " : part.segment;
3410
+ const columns = Bun.stringWidth(text);
3411
+ if (lines.at(-1).width && lines.at(-1).width + columns > width)
3412
+ lines.push({
3413
+ chunks: [],
3414
+ width: 0
3415
+ });
3416
+ lines.at(-1).chunks.push({
3417
+ text,
3418
+ __isChunk: true,
3419
+ attributes: hits.some((hit) => hit.start <= part.index && hit.end > part.index) ? TextAttributes.BOLD | TextAttributes.UNDERLINE : 0
3420
+ });
3421
+ lines.at(-1).width += columns;
3422
+ });
3423
+ if (lines.length <= limit)
3424
+ return lines.map((line) => new StyledText(line.chunks));
3425
+ const prefix = limit === 3 ? "... " : "";
3426
+ const suffix = lines.length > 3 && Bun.stringWidth(`${prefix} (${lines.length} lines)`) <= width ? ` (${lines.length} lines)` : "";
3427
+ const marker = limit === 3 ? prefix : "\u2026";
3428
+ const content = fitChunks(lines[limit === 3 ? lines.length - 1 : limit - 1].chunks, Math.max(0, width - Bun.stringWidth(marker + suffix)), limit === 3);
3429
+ const muted = (text) => ({
3430
+ text,
3431
+ __isChunk: true,
3432
+ attributes: TextAttributes.DIM
3433
+ });
3434
+ return [...lines.slice(0, limit - 1).map((line) => new StyledText(line.chunks)), new StyledText(limit === 3 ? [muted(marker), ...content, muted(suffix)] : [...content, muted(marker + suffix)])];
3435
+ }
3436
+ function fitChunks(chunks, width, tail = false) {
3437
+ const pieces = chunks.flatMap((chunk) => Array.from(graphemes2.segment(chunk.text), (part) => ({
3438
+ ...chunk,
3439
+ text: part.segment
3440
+ })));
3441
+ const result = [];
3442
+ let used = 0;
3443
+ for (const chunk of tail ? pieces.toReversed() : pieces) {
3444
+ const columns = Bun.stringWidth(chunk.text);
3445
+ if (used + columns > width)
3446
+ break;
3447
+ used += columns;
3448
+ result.push(chunk);
3449
+ }
3450
+ return tail ? result.reverse() : result;
3451
+ }
3452
+ function formatTime(time, now) {
3453
+ const date = new Date(time);
3454
+ if (!Number.isFinite(date.getTime()))
3455
+ return "";
3456
+ const clock = `${String(date.getHours()).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}`;
3457
+ if (date.toDateString() === now.toDateString())
3458
+ return clock;
3459
+ const day = `${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
3460
+ return `${date.getFullYear() === now.getFullYear() ? "" : `${date.getFullYear()}-`}${day} ${clock}`;
3461
+ }
3462
+ function suggestionWindow(total, selected, first, budget, measure) {
3463
+ if (!total)
3464
+ return {
3465
+ start: 0,
3466
+ end: 0,
3467
+ height: 1
3468
+ };
3469
+ let height = 0;
3470
+ for (let index = 0;index < total && height < budget; index++)
3471
+ height += measure(index);
3472
+ height = Math.max(1, Math.min(budget, height));
3473
+ let start = Math.max(0, Math.min(first, selected));
3474
+ if (selected - start >= height)
3475
+ start = selected - height + 1;
3476
+ while (Array.from({
3477
+ length: selected - start + 1
3478
+ }, (_, index) => measure(start + index)).reduce((sum, value) => sum + value, 0) > height)
3479
+ start++;
3480
+ let used = 0;
3481
+ let end = start;
3482
+ while (end < total && used + measure(end) <= height)
3483
+ used += measure(end++);
3484
+ return {
3485
+ start,
3486
+ end,
3487
+ height
3488
+ };
3489
+ }
3490
+
3491
+ // src/library-dialog.tsx
3492
+ import { createComponent as _$createComponent } from "@opentui/solid";
3493
+ import { effect as _$effect } from "@opentui/solid";
3494
+ import { createTextNode as _$createTextNode } from "@opentui/solid";
3495
+ import { memo as _$memo } from "@opentui/solid";
3496
+ import { insertNode as _$insertNode } from "@opentui/solid";
3497
+ import { use as _$use } from "@opentui/solid";
3498
+ import { insert as _$insert } from "@opentui/solid";
3499
+ import { setProp as _$setProp } from "@opentui/solid";
3500
+ import { createElement as _$createElement } from "@opentui/solid";
3501
+ import { TextAttributes as TextAttributes2 } from "@opentui/core";
3502
+ import { createSignal as createSignal3, onCleanup as onCleanup3, onMount as onMount2, Show } from "solid-js";
3503
+ import { useTerminalDimensions } from "@opentui/solid";
3504
+ function libraryDialog(context, library, target, insert, signal) {
3505
+ let current;
3506
+ const preview = (prompt) => {
3507
+ if (signal.aborted)
3508
+ return;
3509
+ current = prompt.id;
3510
+ context.ui.dialog.show(() => {
3511
+ context.ui.dialog.set({
3512
+ size: "large",
3513
+ centered: true
3514
+ });
3515
+ onCleanup3(closeOnAbort(context, signal));
3516
+ const dimensions = useTerminalDimensions();
3517
+ const [lines, setLines] = createSignal3(prompt.text.split(`
3518
+ `).length);
3519
+ let scroll;
3520
+ context.keymap.layer(() => ({
3521
+ mode: "modal",
3522
+ priority: 1000,
3523
+ commands: [{
3524
+ bind: "up",
3525
+ run: () => scroll.scrollBy(-1)
3526
+ }, {
3527
+ bind: "down",
3528
+ run: () => scroll.scrollBy(1)
3529
+ }, {
3530
+ bind: "pageup",
3531
+ run: () => scroll.scrollBy(-scroll.height)
3532
+ }, {
3533
+ bind: "pagedown",
3534
+ run: () => scroll.scrollBy(scroll.height)
3535
+ }, {
3536
+ bind: "ctrl+r",
3537
+ enabled: Boolean(target),
3538
+ run: () => apply(prompt)
3539
+ }, {
3540
+ bind: "ctrl+e",
3541
+ run: () => edit(prompt.text, prompt, true)
3542
+ }, {
3543
+ bind: "escape",
3544
+ run: () => {
3545
+ browse();
3546
+ }
3547
+ }]
3548
+ }));
3549
+ return (() => {
3550
+ var _el$ = _$createElement("box"), _el$2 = _$createElement("text"), _el$3 = _$createElement("scrollbox"), _el$4 = _$createElement("text"), _el$5 = _$createElement("box"), _el$8 = _$createElement("text"), _el$9 = _$createTextNode(`Ctrl+E `), _el$0 = _$createElement("text"), _el$1 = _$createTextNode(`Esc `);
3551
+ _$insertNode(_el$, _el$2);
3552
+ _$insertNode(_el$, _el$3);
3553
+ _$insertNode(_el$, _el$5);
3554
+ _$setProp(_el$, "padding", 1);
3555
+ _$setProp(_el$, "gap", 1);
3556
+ _$insert(_el$2, () => copy.prompt);
3557
+ _$insertNode(_el$3, _el$4);
3558
+ _$use((node) => scroll = node, _el$3);
3559
+ _$setProp(_el$4, "onSizeChange", function() {
3560
+ setLines(this.virtualLineCount);
3561
+ });
3562
+ _$insert(_el$4, () => prompt.text);
3563
+ _$insertNode(_el$5, _el$8);
3564
+ _$insertNode(_el$5, _el$0);
3565
+ _$setProp(_el$5, "flexShrink", 0);
3566
+ _$insert(_el$5, _$createComponent(Show, {
3567
+ when: target,
3568
+ get children() {
3569
+ var _el$6 = _$createElement("text"), _el$7 = _$createTextNode(`Ctrl+R `);
3570
+ _$insertNode(_el$6, _el$7);
3571
+ _$setProp(_el$6, "onMouseUp", () => apply(prompt));
3572
+ _$insert(_el$6, (() => {
3573
+ var _c$ = _$memo(() => !!target?.selection);
3574
+ return () => _c$() ? copy.replaceSelection : copy.insert;
3575
+ })(), null);
3576
+ _$effect((_$p) => _$setProp(_el$6, "fg", context.theme.text.base, _$p));
3577
+ return _el$6;
3578
+ }
3579
+ }), _el$8);
3580
+ _$insertNode(_el$8, _el$9);
3581
+ _$setProp(_el$8, "onMouseUp", () => edit(prompt.text, prompt, true));
3582
+ _$insert(_el$8, () => copy.edit, null);
3583
+ _$insertNode(_el$0, _el$1);
3584
+ _$setProp(_el$0, "onMouseUp", () => {
3585
+ browse();
3586
+ });
3587
+ _$insert(_el$0, () => copy.back, null);
3588
+ _$effect((_p$) => {
3589
+ var _v$ = context.theme.background.raised.base, _v$2 = TextAttributes2.BOLD, _v$3 = context.theme.text.base, _v$4 = Math.max(1, Math.min(20, dimensions().height - (dimensions().width < 60 ? 12 : 8), lines())), _v$5 = context.theme.text.base, _v$6 = dimensions().width < 60 ? "column" : "row", _v$7 = dimensions().width < 60 ? 0 : 3, _v$8 = context.theme.text.base, _v$9 = context.theme.text.muted;
3590
+ _v$ !== _p$.e && (_p$.e = _$setProp(_el$, "backgroundColor", _v$, _p$.e));
3591
+ _v$2 !== _p$.t && (_p$.t = _$setProp(_el$2, "attributes", _v$2, _p$.t));
3592
+ _v$3 !== _p$.a && (_p$.a = _$setProp(_el$2, "fg", _v$3, _p$.a));
3593
+ _v$4 !== _p$.o && (_p$.o = _$setProp(_el$3, "height", _v$4, _p$.o));
3594
+ _v$5 !== _p$.i && (_p$.i = _$setProp(_el$4, "fg", _v$5, _p$.i));
3595
+ _v$6 !== _p$.n && (_p$.n = _$setProp(_el$5, "flexDirection", _v$6, _p$.n));
3596
+ _v$7 !== _p$.s && (_p$.s = _$setProp(_el$5, "gap", _v$7, _p$.s));
3597
+ _v$8 !== _p$.h && (_p$.h = _$setProp(_el$8, "fg", _v$8, _p$.h));
3598
+ _v$9 !== _p$.r && (_p$.r = _$setProp(_el$0, "fg", _v$9, _p$.r));
3599
+ return _p$;
3600
+ }, {
3601
+ e: undefined,
3602
+ t: undefined,
3603
+ a: undefined,
3604
+ o: undefined,
3605
+ i: undefined,
3606
+ n: undefined,
3607
+ s: undefined,
3608
+ h: undefined,
3609
+ r: undefined
3610
+ });
3611
+ return _el$;
3612
+ })();
3613
+ });
3614
+ };
3615
+ const apply = (prompt) => {
3616
+ if (!target)
3617
+ return context.ui.toast.show({
3618
+ message: copy.unavailable,
3619
+ variant: "warning"
3620
+ });
3621
+ context.ui.dialog.clear();
3622
+ queueMicrotask(() => insert(target, prompt.text));
3623
+ };
3624
+ const edit = (text = "", expected, fromPreview = false) => {
3625
+ if (expected)
3626
+ current = expected.id;
3627
+ return promptForm(context, library, text, expected, (saved) => {
3628
+ if (saved)
3629
+ return preview(saved);
3630
+ if (fromPreview && expected)
3631
+ return preview(expected);
3632
+ browse();
3633
+ }, signal, !expected ? copy.newPrompt : undefined);
3634
+ };
3635
+ const browse = async () => {
3636
+ if (signal.aborted)
3637
+ return;
3638
+ const prompts = library.state.prompts.map((prompt) => ({
3639
+ ...prompt
3640
+ })).toSorted((a, b) => b.updatedAt - a.updatedAt);
3641
+ const prepared = prepare([], prompts);
3642
+ const options = prompts.map((prompt, index) => ({
3643
+ title: (prepared[index].readable || prompt.text).replace(/\s+/g, " ").trim(),
3644
+ value: prompt
3645
+ }));
3646
+ const byID = new Map(options.map((option) => [`saved:${option.value.id}`, option]));
3647
+ const pending = context.ui.dialog.select({
3648
+ title: copy.library,
3649
+ placeholder: copy.search,
3650
+ options,
3651
+ current: prompts.find((prompt) => prompt.id === current),
3652
+ search: (query) => rank(prepared, query).map((item) => byID.get(item.entry.id)),
3653
+ actions: [...target ? [{
3654
+ bind: "ctrl+r",
3655
+ title: target.selection ? copy.replaceSelection : copy.insert,
3656
+ onTrigger: apply
3657
+ }] : [], {
3658
+ bind: "ctrl+a",
3659
+ title: copy.newPrompt,
3660
+ selection: "none",
3661
+ onTrigger: () => edit()
3662
+ }, {
3663
+ bind: "ctrl+e",
3664
+ title: copy.edit,
3665
+ onTrigger: (prompt) => edit(prompt.text, prompt)
3666
+ }, {
3667
+ bind: "ctrl+d",
3668
+ title: copy.delete,
3669
+ onTrigger: (prompt) => {
3670
+ current = prompt.id;
3671
+ const pending = context.ui.dialog.confirm({
3672
+ title: copy.deletePrompt,
3673
+ message: Array.from(prompt.text.replace(/\s+/g, " ").trim()).slice(0, 120).join(""),
3674
+ label: {
3675
+ confirm: copy.delete,
3676
+ cancel: copy.cancel
3677
+ }
3678
+ });
3679
+ const stop = closeOnAbort(context, signal);
3680
+ pending.then(async (confirmed) => {
3681
+ stop();
3682
+ if (signal.aborted)
3683
+ return;
3684
+ if (confirmed)
3685
+ await library.remove(prompt).then((removed) => {
3686
+ if (!removed)
3687
+ context.ui.toast.show({
3688
+ message: copy.conflict,
3689
+ variant: "warning"
3690
+ });
3691
+ if (removed)
3692
+ current = prompts[prompts.indexOf(prompt) + 1]?.id ?? prompts[prompts.indexOf(prompt) - 1]?.id;
3693
+ }, () => context.ui.toast.show({
3694
+ message: copy.deleteFailed,
3695
+ variant: "error"
3696
+ }));
3697
+ browse();
3698
+ });
3699
+ }
3700
+ }]
3701
+ });
3702
+ const stop = closeOnAbort(context, signal);
3703
+ const selected = await pending;
3704
+ stop();
3705
+ if (signal.aborted)
3706
+ return;
3707
+ if (selected)
3708
+ preview(selected);
3709
+ };
3710
+ return {
3711
+ open: browse,
3712
+ save: (text) => promptForm(context, library, text, undefined, () => {}, signal, copy.saveToLibrary, true)
3713
+ };
3714
+ }
3715
+ function promptForm(context, library, initial, expected, done, signal, title = expected ? copy.editPrompt : copy.saveToLibrary, notify = false) {
3716
+ let text = initial;
3717
+ let finishing = false;
3718
+ let busy = false;
3719
+ const show = () => {
3720
+ if (signal.aborted)
3721
+ return;
3722
+ context.ui.dialog.show(() => {
3723
+ context.ui.dialog.set({
3724
+ size: "large",
3725
+ centered: true
3726
+ });
3727
+ onCleanup3(closeOnAbort(context, signal));
3728
+ const dimensions = useTerminalDimensions();
3729
+ const [error, setError] = createSignal3("");
3730
+ const [pending, setPending] = createSignal3(false);
3731
+ let body;
3732
+ const save = (asNew = false) => {
3733
+ if (busy)
3734
+ return;
3735
+ text = body.plainText;
3736
+ busy = true;
3737
+ setPending(true);
3738
+ library.save({
3739
+ text
3740
+ }, asNew ? undefined : expected).then((result) => {
3741
+ if (signal.aborted)
3742
+ return;
3743
+ if (result.status === "empty")
3744
+ return setError(copy.emptyText);
3745
+ if (result.status === "conflict")
3746
+ return setError(copy.conflict);
3747
+ finishing = true;
3748
+ context.ui.dialog.clear();
3749
+ if (result.status === "duplicate")
3750
+ context.ui.toast.show({
3751
+ message: copy.duplicate
3752
+ });
3753
+ if (notify && result.status !== "duplicate")
3754
+ context.ui.toast.show({
3755
+ message: copy.saved
3756
+ });
3757
+ done(result.prompt);
3758
+ }, () => setError(copy.failed)).finally(() => {
3759
+ busy = false;
3760
+ setPending(false);
3761
+ });
3762
+ };
3763
+ const cancel = () => {
3764
+ text = body.plainText;
3765
+ if (!busy)
3766
+ context.ui.dialog.clear();
3767
+ };
3768
+ context.keymap.layer(() => ({
3769
+ mode: "modal",
3770
+ priority: 1000,
3771
+ commands: [{
3772
+ bind: "ctrl+s",
3773
+ run: () => save()
3774
+ }, {
3775
+ bind: "ctrl+o",
3776
+ enabled: error() === copy.conflict,
3777
+ run: () => save(true)
3778
+ }, {
3779
+ bind: "escape",
3780
+ run: cancel
3781
+ }]
3782
+ }));
3783
+ onMount2(() => body.focus());
3784
+ return (() => {
3785
+ var _el$10 = _$createElement("box"), _el$11 = _$createElement("text"), _el$12 = _$createElement("textarea"), _el$14 = _$createElement("box"), _el$15 = _$createElement("text"), _el$16 = _$createElement("text"), _el$17 = _$createTextNode(`Esc `);
3786
+ _$insertNode(_el$10, _el$11);
3787
+ _$insertNode(_el$10, _el$12);
3788
+ _$insertNode(_el$10, _el$14);
3789
+ _$setProp(_el$10, "padding", 1);
3790
+ _$setProp(_el$10, "gap", 1);
3791
+ _$insert(_el$11, title);
3792
+ _$use((node) => body = node, _el$12);
3793
+ _$setProp(_el$12, "initialValue", text);
3794
+ _$setProp(_el$12, "onContentChange", () => text = body.plainText);
3795
+ _$insert(_el$10, _$createComponent(Show, {
3796
+ get when() {
3797
+ return error();
3798
+ },
3799
+ get children() {
3800
+ var _el$13 = _$createElement("text");
3801
+ _$insert(_el$13, error);
3802
+ _$effect((_$p) => _$setProp(_el$13, "fg", context.theme.text.feedback.error.base, _$p));
3803
+ return _el$13;
3804
+ }
3805
+ }), _el$14);
3806
+ _$insertNode(_el$14, _el$15);
3807
+ _$insertNode(_el$14, _el$16);
3808
+ _$setProp(_el$14, "flexShrink", 0);
3809
+ _$setProp(_el$15, "onMouseUp", () => save());
3810
+ _$insert(_el$15, (() => {
3811
+ var _c$2 = _$memo(() => !!pending());
3812
+ return () => _c$2() ? copy.saving : `Ctrl+S ${copy.save}`;
3813
+ })());
3814
+ _$insertNode(_el$16, _el$17);
3815
+ _$setProp(_el$16, "onMouseUp", cancel);
3816
+ _$insert(_el$16, () => copy.cancel, null);
3817
+ _$insert(_el$14, _$createComponent(Show, {
3818
+ get when() {
3819
+ return error() === copy.conflict;
3820
+ },
3821
+ get children() {
3822
+ var _el$18 = _$createElement("text"), _el$19 = _$createTextNode(`Ctrl+O `);
3823
+ _$insertNode(_el$18, _el$19);
3824
+ _$setProp(_el$18, "onMouseUp", () => save(true));
3825
+ _$insert(_el$18, () => copy.saveAsNew, null);
3826
+ return _el$18;
3827
+ }
3828
+ }), null);
3829
+ _$effect((_p$) => {
3830
+ var _v$0 = context.theme.background.raised.base, _v$1 = TextAttributes2.BOLD, _v$10 = context.theme.text.base, _v$11 = Math.max(1, Math.min(14, dimensions().height - (dimensions().width < 60 ? 12 : 9) - (error() ? Math.ceil(Bun.stringWidth(error()) / Math.max(1, Math.min(80, dimensions().width - 4) - 2)) + 1 : 0))), _v$12 = context.theme.text.base, _v$13 = context.theme.text.base, _v$14 = context.theme.background.raised.base, _v$15 = context.theme.background.raised.base, _v$16 = dimensions().width < 60 ? "column" : "row", _v$17 = dimensions().width < 60 ? 0 : 3, _v$18 = pending() ? context.theme.text.muted : context.theme.text.base, _v$19 = context.theme.text.muted;
3831
+ _v$0 !== _p$.e && (_p$.e = _$setProp(_el$10, "backgroundColor", _v$0, _p$.e));
3832
+ _v$1 !== _p$.t && (_p$.t = _$setProp(_el$11, "attributes", _v$1, _p$.t));
3833
+ _v$10 !== _p$.a && (_p$.a = _$setProp(_el$11, "fg", _v$10, _p$.a));
3834
+ _v$11 !== _p$.o && (_p$.o = _$setProp(_el$12, "height", _v$11, _p$.o));
3835
+ _v$12 !== _p$.i && (_p$.i = _$setProp(_el$12, "textColor", _v$12, _p$.i));
3836
+ _v$13 !== _p$.n && (_p$.n = _$setProp(_el$12, "focusedTextColor", _v$13, _p$.n));
3837
+ _v$14 !== _p$.s && (_p$.s = _$setProp(_el$12, "backgroundColor", _v$14, _p$.s));
3838
+ _v$15 !== _p$.h && (_p$.h = _$setProp(_el$12, "focusedBackgroundColor", _v$15, _p$.h));
3839
+ _v$16 !== _p$.r && (_p$.r = _$setProp(_el$14, "flexDirection", _v$16, _p$.r));
3840
+ _v$17 !== _p$.d && (_p$.d = _$setProp(_el$14, "gap", _v$17, _p$.d));
3841
+ _v$18 !== _p$.l && (_p$.l = _$setProp(_el$15, "fg", _v$18, _p$.l));
3842
+ _v$19 !== _p$.u && (_p$.u = _$setProp(_el$16, "fg", _v$19, _p$.u));
3843
+ return _p$;
3844
+ }, {
3845
+ e: undefined,
3846
+ t: undefined,
3847
+ a: undefined,
3848
+ o: undefined,
3849
+ i: undefined,
3850
+ n: undefined,
3851
+ s: undefined,
3852
+ h: undefined,
3853
+ r: undefined,
3854
+ d: undefined,
3855
+ l: undefined,
3856
+ u: undefined
3857
+ });
3858
+ return _el$10;
3859
+ })();
3860
+ }, () => queueMicrotask(() => {
3861
+ if (finishing || signal.aborted)
3862
+ return;
3863
+ if (busy)
3864
+ return show();
3865
+ if (text === initial)
3866
+ return done();
3867
+ const pending = context.ui.dialog.confirm({
3868
+ title: copy.discard,
3869
+ message: copy.discardMessage,
3870
+ label: {
3871
+ confirm: copy.discardAction,
3872
+ cancel: copy.keepEditing
3873
+ }
3874
+ });
3875
+ const stop = closeOnAbort(context, signal);
3876
+ pending.then((discard) => {
3877
+ stop();
3878
+ if (signal.aborted)
3879
+ return;
3880
+ if (discard)
3881
+ return done();
3882
+ show();
3883
+ });
3884
+ }));
3885
+ };
3886
+ show();
3887
+ }
3888
+ function closeOnAbort(context, signal) {
3889
+ const close = () => context.ui.dialog.clear();
3890
+ signal.addEventListener("abort", close, {
3891
+ once: true
3892
+ });
3893
+ return () => signal.removeEventListener("abort", close);
3894
+ }
3895
+
3896
+ // src/tui.tsx
3897
+ var tui_default = Plugin.define({
3898
+ id: "occo",
3899
+ setup(context) {
3900
+ const library = createLibrary(context.storage);
3901
+ const lifetime = new AbortController;
3902
+ let active;
3903
+ const failure = (result) => {
3904
+ if (result !== "applied")
3905
+ context.ui.toast.show({
3906
+ message: result === "protected" ? copy.protected : copy.stale,
3907
+ variant: "warning"
3908
+ });
3909
+ };
3910
+ const insert = (target, text) => {
3911
+ if (!active)
3912
+ return failure("stale");
3913
+ failure(active.composer.apply(target, {
3914
+ start: target.selection?.start ?? target.cursor,
3915
+ end: target.selection?.end ?? target.cursor,
3916
+ text
3917
+ }));
3918
+ };
3919
+ const save = (selection = false) => {
3920
+ const target = active?.composer.current(true, true);
3921
+ if (!target)
3922
+ return context.ui.toast.show({
3923
+ message: copy.unavailable,
3924
+ variant: "warning"
3925
+ });
3926
+ const text = savedText(target, selection);
3927
+ if (!text.trim())
3928
+ return context.ui.toast.show({
3929
+ message: copy.noText,
3930
+ variant: "warning"
3931
+ });
3932
+ active?.menu.close(true);
3933
+ libraryDialog(context, library, target, insert, lifetime.signal).save(text);
3934
+ };
3935
+ context.keymap.layer(() => ({
3936
+ mode: "global",
3937
+ commands: [{
3938
+ id: "occo.suggestions",
3939
+ title: copy.show,
3940
+ group: "occo",
3941
+ palette: true,
3942
+ bind: false,
3943
+ run: () => active?.menu.toggle()
3944
+ }, {
3945
+ id: "occo.save",
3946
+ title: copy.saveCurrent,
3947
+ group: "occo",
3948
+ palette: true,
3949
+ run: () => save()
3950
+ }, {
3951
+ id: "occo.save-selection",
3952
+ title: copy.saveSelection,
3953
+ group: "occo",
3954
+ palette: true,
3955
+ run: () => save(true)
3956
+ }, {
3957
+ id: "occo.library",
3958
+ title: copy.openLibrary,
3959
+ group: "occo",
3960
+ palette: true,
3961
+ run() {
3962
+ const target = active?.composer.current(true, true);
3963
+ active?.menu.close(true);
3964
+ libraryDialog(context, library, target, insert, lifetime.signal).open();
3965
+ }
3966
+ }, {
3967
+ id: "occo.automatic",
3968
+ title: library.state.automaticSuggestions ? copy.disable : copy.enable,
3969
+ group: "occo",
3970
+ palette: true,
3971
+ run: () => library.toggle().catch(() => context.ui.toast.show({
3972
+ message: copy.settingFailed,
3973
+ variant: "error"
3974
+ }))
3975
+ }]
3976
+ }));
3977
+ context.keymap.layer(() => ({
3978
+ commands: [{
3979
+ bind: "f12",
3980
+ run: () => active?.menu.toggle()
3981
+ }]
3982
+ }));
3983
+ const unmount = context.ui.slot({
3984
+ append: "prompt.footer",
3985
+ render(input) {
3986
+ let refresh = () => {};
3987
+ const composer = bindComposer(context, input, () => refresh());
3988
+ const history = conversationHistory(context, () => input.sessionID);
3989
+ const items = createMemo3(() => prepare(history.entries(), library.state.prompts));
3990
+ const menu = suggestions(context, composer, items, () => library.state.automaticSuggestions, (text) => libraryDialog(context, library, composer.current(true, true), insert, lifetime.signal).save(text), history);
3991
+ refresh = () => {
3992
+ if (composer.current(true))
3993
+ active = {
3994
+ composer,
3995
+ menu
3996
+ };
3997
+ menu.refresh();
3998
+ };
3999
+ createEffect3(() => {
4000
+ input.sessionID;
4001
+ input.mode;
4002
+ untrack3(refresh);
4003
+ });
4004
+ onMount3(() => composer.mount());
4005
+ onCleanup4(() => {
4006
+ if (active?.composer === composer)
4007
+ active = undefined;
4008
+ composer.dispose();
4009
+ });
4010
+ return composer.marker;
4011
+ }
4012
+ });
4013
+ return () => {
4014
+ lifetime.abort();
4015
+ unmount();
4016
+ };
4017
+ }
4018
+ });
4019
+ export {
4020
+ tui_default as default
4021
+ };
4022
+
4023
+ //# debugId=155E184C0F8BEB8564756E2164756E21
4024
+ //# sourceMappingURL=tui.js.map