@arcgis/coding-components 5.2.0-next.78 → 5.2.0-next.79

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.
@@ -2,7 +2,7 @@ class Bi {
2
2
  constructor() {
3
3
  this.listeners = [], this.unexpectedErrorHandler = function(e) {
4
4
  setTimeout(() => {
5
- throw e.stack ? it.isErrorNoTelemetry(e) ? new it(e.message + `
5
+ throw e.stack ? at.isErrorNoTelemetry(e) ? new at(e.message + `
6
6
 
7
7
  ` + e.stack) : new Error(e.message + `
8
8
 
@@ -38,7 +38,7 @@ function pn(t) {
38
38
  name: e,
39
39
  message: n,
40
40
  stack: s,
41
- noTelemetry: it.isErrorNoTelemetry(t),
41
+ noTelemetry: at.isErrorNoTelemetry(t),
42
42
  cause: r ? pn(r) : void 0,
43
43
  code: t.code
44
44
  };
@@ -54,14 +54,14 @@ class ti extends Error {
54
54
  super(bn), this.name = this.message;
55
55
  }
56
56
  }
57
- class it extends Error {
57
+ class at extends Error {
58
58
  constructor(e) {
59
59
  super(e), this.name = "CodeExpectedError";
60
60
  }
61
61
  static fromError(e) {
62
- if (e instanceof it)
62
+ if (e instanceof at)
63
63
  return e;
64
- const n = new it();
64
+ const n = new at();
65
65
  return n.message = e.message, n.stack = e.stack, n;
66
66
  }
67
67
  static isErrorNoTelemetry(e) {
@@ -86,7 +86,7 @@ function xt(t) {
86
86
  t(), Ft(new K("Assertion Failed"));
87
87
  }
88
88
  }
89
- function Hn(t, e) {
89
+ function zn(t, e) {
90
90
  let n = 0;
91
91
  for (; n < t.length - 1; ) {
92
92
  const r = t[n], s = t[n + 1];
@@ -104,8 +104,8 @@ function Wi(t) {
104
104
  }
105
105
  var Bt;
106
106
  (function(t) {
107
- function e(y) {
108
- return !!y && typeof y == "object" && typeof y[Symbol.iterator] == "function";
107
+ function e(x) {
108
+ return !!x && typeof x == "object" && typeof x[Symbol.iterator] == "function";
109
109
  }
110
110
  t.is = e;
111
111
  const n = Object.freeze([]);
@@ -113,99 +113,99 @@ var Bt;
113
113
  return n;
114
114
  }
115
115
  t.empty = r;
116
- function* s(y) {
117
- yield y;
116
+ function* s(x) {
117
+ yield x;
118
118
  }
119
119
  t.single = s;
120
- function i(y) {
121
- return e(y) ? y : s(y);
120
+ function i(x) {
121
+ return e(x) ? x : s(x);
122
122
  }
123
123
  t.wrap = i;
124
- function a(y) {
125
- return y ?? n;
124
+ function a(x) {
125
+ return x ?? n;
126
126
  }
127
127
  t.from = a;
128
- function* l(y) {
129
- for (let v = y.length - 1; v >= 0; v--)
130
- yield y[v];
128
+ function* l(x) {
129
+ for (let v = x.length - 1; v >= 0; v--)
130
+ yield x[v];
131
131
  }
132
132
  t.reverse = l;
133
- function u(y) {
134
- return !y || y[Symbol.iterator]().next().done === !0;
133
+ function u(x) {
134
+ return !x || x[Symbol.iterator]().next().done === !0;
135
135
  }
136
136
  t.isEmpty = u;
137
- function c(y) {
138
- return y[Symbol.iterator]().next().value;
137
+ function c(x) {
138
+ return x[Symbol.iterator]().next().value;
139
139
  }
140
140
  t.first = c;
141
- function h(y, v) {
141
+ function h(x, v) {
142
142
  let S = 0;
143
- for (const B of y)
143
+ for (const B of x)
144
144
  if (v(B, S++))
145
145
  return !0;
146
146
  return !1;
147
147
  }
148
148
  t.some = h;
149
- function f(y, v) {
149
+ function f(x, v) {
150
150
  let S = 0;
151
- for (const B of y)
151
+ for (const B of x)
152
152
  if (!v(B, S++))
153
153
  return !1;
154
154
  return !0;
155
155
  }
156
156
  t.every = f;
157
- function m(y, v) {
158
- for (const S of y)
157
+ function m(x, v) {
158
+ for (const S of x)
159
159
  if (v(S))
160
160
  return S;
161
161
  }
162
162
  t.find = m;
163
- function* p(y, v) {
164
- for (const S of y)
163
+ function* p(x, v) {
164
+ for (const S of x)
165
165
  v(S) && (yield S);
166
166
  }
167
167
  t.filter = p;
168
- function* d(y, v) {
168
+ function* d(x, v) {
169
169
  let S = 0;
170
- for (const B of y)
170
+ for (const B of x)
171
171
  yield v(B, S++);
172
172
  }
173
173
  t.map = d;
174
- function* g(y, v) {
174
+ function* g(x, v) {
175
175
  let S = 0;
176
- for (const B of y)
176
+ for (const B of x)
177
177
  yield* v(B, S++);
178
178
  }
179
179
  t.flatMap = g;
180
- function* w(...y) {
181
- for (const v of y)
180
+ function* w(...x) {
181
+ for (const v of x)
182
182
  Wi(v) ? yield* v : yield v;
183
183
  }
184
184
  t.concat = w;
185
- function x(y, v, S) {
185
+ function y(x, v, S) {
186
186
  let B = S;
187
- for (const W of y)
187
+ for (const W of x)
188
188
  B = v(B, W);
189
189
  return B;
190
190
  }
191
- t.reduce = x;
192
- function _(y) {
191
+ t.reduce = y;
192
+ function _(x) {
193
193
  let v = 0;
194
- for (const S of y)
194
+ for (const S of x)
195
195
  v++;
196
196
  return v;
197
197
  }
198
198
  t.length = _;
199
- function* L(y, v, S = y.length) {
200
- for (v < -y.length && (v = 0), v < 0 && (v += y.length), S < 0 ? S += y.length : S > y.length && (S = y.length); v < S; v++)
201
- yield y[v];
199
+ function* L(x, v, S = x.length) {
200
+ for (v < -x.length && (v = 0), v < 0 && (v += x.length), S < 0 ? S += x.length : S > x.length && (S = x.length); v < S; v++)
201
+ yield x[v];
202
202
  }
203
203
  t.slice = L;
204
- function A(y, v = Number.POSITIVE_INFINITY) {
204
+ function A(x, v = Number.POSITIVE_INFINITY) {
205
205
  const S = [];
206
206
  if (v === 0)
207
- return [S, y];
208
- const B = y[Symbol.iterator]();
207
+ return [S, x];
208
+ const B = x[Symbol.iterator]();
209
209
  for (let W = 0; W < v; W++) {
210
210
  const D = B.next();
211
211
  if (D.done)
@@ -217,16 +217,16 @@ var Bt;
217
217
  } }];
218
218
  }
219
219
  t.consume = A;
220
- async function I(y) {
220
+ async function I(x) {
221
221
  const v = [];
222
- for await (const S of y)
222
+ for await (const S of x)
223
223
  v.push(S);
224
224
  return v;
225
225
  }
226
226
  t.asyncToArray = I;
227
- async function O(y) {
227
+ async function O(x) {
228
228
  let v = [];
229
- for await (const S of y)
229
+ for await (const S of x)
230
230
  v = v.concat(S);
231
231
  return v;
232
232
  }
@@ -250,10 +250,10 @@ function ni(t) {
250
250
  } else if (t)
251
251
  return t.dispose(), t;
252
252
  }
253
- function zi(...t) {
254
- return yt(() => ni(t));
253
+ function Hi(...t) {
254
+ return vt(() => ni(t));
255
255
  }
256
- class Hi {
256
+ class zi {
257
257
  constructor(e) {
258
258
  this._isDisposed = !1, this._fn = e;
259
259
  }
@@ -265,8 +265,8 @@ class Hi {
265
265
  }
266
266
  }
267
267
  }
268
- function yt(t) {
269
- return new Hi(t);
268
+ function vt(t) {
269
+ return new zi(t);
270
270
  }
271
271
  class Ct {
272
272
  static {
@@ -304,7 +304,7 @@ class Ct {
304
304
  * Add a new {@link IDisposable disposable} to the collection.
305
305
  */
306
306
  add(e) {
307
- if (!e || e === vt.None)
307
+ if (!e || e === Lt.None)
308
308
  return e;
309
309
  if (e === this)
310
310
  throw new Error("Cannot register a disposable on itself!");
@@ -322,7 +322,7 @@ class Ct {
322
322
  }
323
323
  }
324
324
  }
325
- class vt {
325
+ class Lt {
326
326
  static {
327
327
  this.None = Object.freeze({ dispose() {
328
328
  } });
@@ -443,28 +443,28 @@ function Ji(t, e) {
443
443
  }
444
444
  return n;
445
445
  }
446
- const Ke = "en";
447
- let wn = !1, xn = !1, nn = !1, si = !1, jn = !1, kt, rn = Ke, nr = Ke, Xi, Re;
448
- const ke = globalThis;
449
- let ce;
450
- typeof ke.vscode < "u" && typeof ke.vscode.process < "u" ? ce = ke.vscode.process : typeof process < "u" && typeof process?.versions?.node == "string" && (ce = process);
451
- const Yi = typeof ce?.versions?.electron == "string", Zi = Yi && ce?.type === "renderer";
452
- if (typeof ce == "object") {
453
- wn = ce.platform === "win32", xn = ce.platform === "darwin", nn = ce.platform === "linux", nn && ce.env.SNAP && ce.env.SNAP_REVISION, ce.env.CI || ce.env.BUILD_ARTIFACTSTAGINGDIRECTORY || ce.env.GITHUB_WORKSPACE, kt = Ke, rn = Ke;
454
- const t = ce.env.VSCODE_NLS_CONFIG;
446
+ const et = "en";
447
+ let wn = !1, yn = !1, nn = !1, si = !1, jn = !1, kt, rn = et, nr = et, Xi, ke;
448
+ const Ee = globalThis;
449
+ let fe;
450
+ typeof Ee.vscode < "u" && typeof Ee.vscode.process < "u" ? fe = Ee.vscode.process : typeof process < "u" && typeof process?.versions?.node == "string" && (fe = process);
451
+ const Yi = typeof fe?.versions?.electron == "string", Zi = Yi && fe?.type === "renderer";
452
+ if (typeof fe == "object") {
453
+ wn = fe.platform === "win32", yn = fe.platform === "darwin", nn = fe.platform === "linux", nn && fe.env.SNAP && fe.env.SNAP_REVISION, fe.env.CI || fe.env.BUILD_ARTIFACTSTAGINGDIRECTORY || fe.env.GITHUB_WORKSPACE, kt = et, rn = et;
454
+ const t = fe.env.VSCODE_NLS_CONFIG;
455
455
  if (t)
456
456
  try {
457
457
  const e = JSON.parse(t);
458
- kt = e.userLocale, nr = e.osLocale, rn = e.resolvedLanguage || Ke, Xi = e.languagePack?.translationsConfigFile;
458
+ kt = e.userLocale, nr = e.osLocale, rn = e.resolvedLanguage || et, Xi = e.languagePack?.translationsConfigFile;
459
459
  } catch {
460
460
  }
461
461
  si = !0;
462
- } else typeof navigator == "object" && !Zi ? (Re = navigator.userAgent, wn = Re.indexOf("Windows") >= 0, xn = Re.indexOf("Macintosh") >= 0, (Re.indexOf("Macintosh") >= 0 || Re.indexOf("iPad") >= 0 || Re.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, nn = Re.indexOf("Linux") >= 0, Re?.indexOf("Mobi") >= 0, jn = !0, rn = ri() || Ke, kt = navigator.language.toLowerCase(), nr = kt) : console.error("Unable to resolve platform.");
463
- const Lt = wn, Ki = xn, ea = si, ta = jn, na = jn && typeof ke.importScripts == "function", ra = na ? ke.origin : void 0, Ne = Re, sa = typeof ke.postMessage == "function" && !ke.importScripts;
462
+ } else typeof navigator == "object" && !Zi ? (ke = navigator.userAgent, wn = ke.indexOf("Windows") >= 0, yn = ke.indexOf("Macintosh") >= 0, (ke.indexOf("Macintosh") >= 0 || ke.indexOf("iPad") >= 0 || ke.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, nn = ke.indexOf("Linux") >= 0, ke?.indexOf("Mobi") >= 0, jn = !0, rn = ri() || et, kt = navigator.language.toLowerCase(), nr = kt) : console.error("Unable to resolve platform.");
463
+ const _t = wn, Ki = yn, ea = si, ta = jn, na = jn && typeof Ee.importScripts == "function", ra = na ? Ee.origin : void 0, Se = ke, sa = typeof Ee.postMessage == "function" && !Ee.importScripts;
464
464
  (() => {
465
465
  if (sa) {
466
466
  const t = [];
467
- ke.addEventListener("message", (n) => {
467
+ Ee.addEventListener("message", (n) => {
468
468
  if (n.data && n.data.vscodeScheduleAsyncWork)
469
469
  for (let r = 0, s = t.length; r < s; r++) {
470
470
  const i = t[r];
@@ -480,21 +480,21 @@ const Lt = wn, Ki = xn, ea = si, ta = jn, na = jn && typeof ke.importScripts ==
480
480
  t.push({
481
481
  id: r,
482
482
  callback: n
483
- }), ke.postMessage({ vscodeScheduleAsyncWork: r }, "*");
483
+ }), Ee.postMessage({ vscodeScheduleAsyncWork: r }, "*");
484
484
  };
485
485
  }
486
486
  return (t) => setTimeout(t);
487
487
  })();
488
- const ia = !!(Ne && Ne.indexOf("Chrome") >= 0);
489
- Ne && Ne.indexOf("Firefox") >= 0;
490
- !ia && Ne && Ne.indexOf("Safari") >= 0;
491
- Ne && Ne.indexOf("Edg/") >= 0;
492
- Ne && Ne.indexOf("Android") >= 0;
493
- let tt;
488
+ const ia = !!(Se && Se.indexOf("Chrome") >= 0);
489
+ Se && Se.indexOf("Firefox") >= 0;
490
+ !ia && Se && Se.indexOf("Safari") >= 0;
491
+ Se && Se.indexOf("Edg/") >= 0;
492
+ Se && Se.indexOf("Android") >= 0;
493
+ let nt;
494
494
  const sn = globalThis.vscode;
495
495
  if (typeof sn < "u" && typeof sn.process < "u") {
496
496
  const t = sn.process;
497
- tt = {
497
+ nt = {
498
498
  get platform() {
499
499
  return t.platform;
500
500
  },
@@ -508,7 +508,7 @@ if (typeof sn < "u" && typeof sn.process < "u") {
508
508
  return t.cwd();
509
509
  }
510
510
  };
511
- } else typeof process < "u" && typeof process?.versions?.node == "string" ? tt = {
511
+ } else typeof process < "u" && typeof process?.versions?.node == "string" ? nt = {
512
512
  get platform() {
513
513
  return process.platform;
514
514
  },
@@ -521,10 +521,10 @@ if (typeof sn < "u" && typeof sn.process < "u") {
521
521
  cwd() {
522
522
  return process.env.VSCODE_CWD || process.cwd();
523
523
  }
524
- } : tt = {
524
+ } : nt = {
525
525
  // Supported
526
526
  get platform() {
527
- return Lt ? "win32" : Ki ? "darwin" : "linux";
527
+ return _t ? "win32" : Ki ? "darwin" : "linux";
528
528
  },
529
529
  get arch() {
530
530
  },
@@ -536,7 +536,7 @@ if (typeof sn < "u" && typeof sn.process < "u") {
536
536
  return "/";
537
537
  }
538
538
  };
539
- const Vt = tt.cwd, ii = tt.env, aa = tt.platform, oa = globalThis.performance.now.bind(globalThis.performance);
539
+ const Vt = nt.cwd, ii = nt.env, aa = nt.platform, oa = globalThis.performance.now.bind(globalThis.performance);
540
540
  class Yt {
541
541
  static create(e) {
542
542
  return new Yt(e);
@@ -558,9 +558,9 @@ const la = 100, rr = 6e4;
558
558
  function sr() {
559
559
  return !!ii.VSCODE_DEV;
560
560
  }
561
- var yn;
561
+ var xn;
562
562
  (function(t) {
563
- t.None = () => vt.None;
563
+ t.None = () => Lt.None;
564
564
  function e(R, N, k) {
565
565
  return m(R, () => {
566
566
  }, 0, void 0, N ?? !0, void 0, k);
@@ -569,9 +569,9 @@ var yn;
569
569
  function n(R) {
570
570
  return (N, k = null, M) => {
571
571
  let E = !1, $;
572
- return $ = R((z) => {
572
+ return $ = R((H) => {
573
573
  if (!E)
574
- return $ ? $.dispose() : E = !0, N.call(k, z);
574
+ return $ ? $.dispose() : E = !0, N.call(k, H);
575
575
  }, null, M), E && $.dispose(), $;
576
576
  };
577
577
  }
@@ -581,17 +581,17 @@ var yn;
581
581
  }
582
582
  t.onceIf = r;
583
583
  function s(R, N, k) {
584
- return h((M, E = null, $) => R((z) => M.call(E, N(z)), null, $), k);
584
+ return h((M, E = null, $) => R((H) => M.call(E, N(H)), null, $), k);
585
585
  }
586
586
  t.map = s;
587
587
  function i(R, N, k) {
588
- return h((M, E = null, $) => R((z) => {
589
- N(z), M.call(E, z);
588
+ return h((M, E = null, $) => R((H) => {
589
+ N(H), M.call(E, H);
590
590
  }, null, $), k);
591
591
  }
592
592
  t.forEach = i;
593
593
  function a(R, N, k) {
594
- return h((M, E = null, $) => R((z) => N(z) && M.call(E, z), null, $), k);
594
+ return h((M, E = null, $) => R((H) => N(H) && M.call(E, H), null, $), k);
595
595
  }
596
596
  t.filter = a;
597
597
  function l(R) {
@@ -600,7 +600,7 @@ var yn;
600
600
  t.signal = l;
601
601
  function u(...R) {
602
602
  return (N, k = null, M) => {
603
- const E = zi(...R.map(($) => $((z) => N.call(k, z))));
603
+ const E = Hi(...R.map(($) => $((H) => N.call(k, H))));
604
604
  return f(E, M);
605
605
  };
606
606
  }
@@ -619,63 +619,63 @@ var yn;
619
619
  onDidRemoveLastListener() {
620
620
  k?.dispose();
621
621
  }
622
- }, E = new xe(M);
622
+ }, E = new ye(M);
623
623
  return N?.add(E), E.event;
624
624
  }
625
625
  function f(R, N) {
626
626
  return N instanceof Array ? N.push(R) : N && N.add(R), R;
627
627
  }
628
- function m(R, N, k = 100, M = !1, E = !1, $, z) {
629
- let te, Q, re, ne = 0, oe;
628
+ function m(R, N, k = 100, M = !1, E = !1, $, H) {
629
+ let te, Q, se, ne = 0, ue;
630
630
  const qe = {
631
631
  leakWarningThreshold: $,
632
632
  onWillAddFirstListener() {
633
633
  te = R((Di) => {
634
- ne++, Q = N(Q, Di), M && !re && (He.fire(Q), Q = void 0), oe = () => {
634
+ ne++, Q = N(Q, Di), M && !se && (je.fire(Q), Q = void 0), ue = () => {
635
635
  const $i = Q;
636
- Q = void 0, re = void 0, (!M || ne > 1) && He.fire($i), ne = 0;
637
- }, typeof k == "number" ? (re && clearTimeout(re), re = setTimeout(oe, k)) : re === void 0 && (re = null, queueMicrotask(oe));
636
+ Q = void 0, se = void 0, (!M || ne > 1) && je.fire($i), ne = 0;
637
+ }, typeof k == "number" ? (se && clearTimeout(se), se = setTimeout(ue, k)) : se === void 0 && (se = null, queueMicrotask(ue));
638
638
  });
639
639
  },
640
640
  onWillRemoveListener() {
641
- E && ne > 0 && oe?.();
641
+ E && ne > 0 && ue?.();
642
642
  },
643
643
  onDidRemoveLastListener() {
644
- oe = void 0, te.dispose();
644
+ ue = void 0, te.dispose();
645
645
  }
646
- }, He = new xe(qe);
647
- return z?.add(He), He.event;
646
+ }, je = new ye(qe);
647
+ return H?.add(je), je.event;
648
648
  }
649
649
  t.debounce = m;
650
650
  function p(R, N = 0, k, M) {
651
651
  return t.debounce(R, (E, $) => E ? (E.push($), E) : [$], N, void 0, k ?? !0, void 0, M);
652
652
  }
653
653
  t.accumulate = p;
654
- function d(R, N, k = 100, M = !0, E = !0, $, z) {
655
- let te, Q, re, ne = 0;
656
- const oe = {
654
+ function d(R, N, k = 100, M = !0, E = !0, $, H) {
655
+ let te, Q, se, ne = 0;
656
+ const ue = {
657
657
  leakWarningThreshold: $,
658
658
  onWillAddFirstListener() {
659
- te = R((He) => {
660
- ne++, Q = N(Q, He), re === void 0 && (M && (qe.fire(Q), Q = void 0, ne = 0), typeof k == "number" ? re = setTimeout(() => {
661
- E && ne > 0 && qe.fire(Q), Q = void 0, re = void 0, ne = 0;
662
- }, k) : (re = 0, queueMicrotask(() => {
663
- E && ne > 0 && qe.fire(Q), Q = void 0, re = void 0, ne = 0;
659
+ te = R((je) => {
660
+ ne++, Q = N(Q, je), se === void 0 && (M && (qe.fire(Q), Q = void 0, ne = 0), typeof k == "number" ? se = setTimeout(() => {
661
+ E && ne > 0 && qe.fire(Q), Q = void 0, se = void 0, ne = 0;
662
+ }, k) : (se = 0, queueMicrotask(() => {
663
+ E && ne > 0 && qe.fire(Q), Q = void 0, se = void 0, ne = 0;
664
664
  })));
665
665
  });
666
666
  },
667
667
  onDidRemoveLastListener() {
668
668
  te.dispose();
669
669
  }
670
- }, qe = new xe(oe);
671
- return z?.add(qe), qe.event;
670
+ }, qe = new ye(ue);
671
+ return H?.add(qe), qe.event;
672
672
  }
673
673
  t.throttle = d;
674
674
  function g(R, N = (M, E) => M === E, k) {
675
675
  let M = !0, E;
676
676
  return a(R, ($) => {
677
- const z = M || !N($, E);
678
- return M = !1, E = $, z;
677
+ const H = M || !N($, E);
678
+ return M = !1, E = $, H;
679
679
  }, k);
680
680
  }
681
681
  t.latch = g;
@@ -686,30 +686,30 @@ var yn;
686
686
  ];
687
687
  }
688
688
  t.split = w;
689
- function x(R, N, k = !1, M = [], E) {
690
- let $ = M.slice(), z;
691
- sr() && (z = {
689
+ function y(R, N, k = !1, M = [], E) {
690
+ let $ = M.slice(), H;
691
+ sr() && (H = {
692
692
  stack: Zt.create(),
693
693
  timerId: setTimeout(() => {
694
- $ && $.length > 0 && z && !z.warned && (z.warned = !0, console.warn(`[Event.buffer][${N}] potential LEAK detected: ${$.length} events buffered for ${rr / 1e3}s without being consumed. Buffered here:`), z.stack.print());
694
+ $ && $.length > 0 && H && !H.warned && (H.warned = !0, console.warn(`[Event.buffer][${N}] potential LEAK detected: ${$.length} events buffered for ${rr / 1e3}s without being consumed. Buffered here:`), H.stack.print());
695
695
  }, rr),
696
696
  warned: !1
697
- }, E && E.add(yt(() => clearTimeout(z.timerId))));
697
+ }, E && E.add(vt(() => clearTimeout(H.timerId))));
698
698
  const te = () => {
699
- z && clearTimeout(z.timerId);
699
+ H && clearTimeout(H.timerId);
700
700
  };
701
- let Q = R((oe) => {
702
- $ ? ($.push(oe), sr() && z && !z.warned && $.length >= la && (z.warned = !0, console.warn(`[Event.buffer][${N}] potential LEAK detected: ${$.length} events buffered without being consumed. Buffered here:`), z.stack.print())) : ne.fire(oe);
701
+ let Q = R((ue) => {
702
+ $ ? ($.push(ue), sr() && H && !H.warned && $.length >= la && (H.warned = !0, console.warn(`[Event.buffer][${N}] potential LEAK detected: ${$.length} events buffered without being consumed. Buffered here:`), H.stack.print())) : ne.fire(ue);
703
703
  });
704
704
  E && E.add(Q);
705
- const re = () => {
706
- $?.forEach((oe) => ne.fire(oe)), $ = null, te();
707
- }, ne = new xe({
705
+ const se = () => {
706
+ $?.forEach((ue) => ne.fire(ue)), $ = null, te();
707
+ }, ne = new ye({
708
708
  onWillAddFirstListener() {
709
- Q || (Q = R((oe) => ne.fire(oe)), E && E.add(Q));
709
+ Q || (Q = R((ue) => ne.fire(ue)), E && E.add(Q));
710
710
  },
711
711
  onDidAddFirstListener() {
712
- $ && (k ? setTimeout(re) : re());
712
+ $ && (k ? setTimeout(se) : se());
713
713
  },
714
714
  onDidRemoveLastListener() {
715
715
  Q && Q.dispose(), Q = null, te();
@@ -717,12 +717,12 @@ var yn;
717
717
  });
718
718
  return E && E.add(ne), ne.event;
719
719
  }
720
- t.buffer = x;
720
+ t.buffer = y;
721
721
  function _(R, N) {
722
722
  return (M, E, $) => {
723
- const z = N(new A());
723
+ const H = N(new A());
724
724
  return R(function(te) {
725
- const Q = z.evaluate(te);
725
+ const Q = H.evaluate(te);
726
726
  Q !== L && M.call(E, Q);
727
727
  }, void 0, $);
728
728
  };
@@ -761,16 +761,16 @@ var yn;
761
761
  }
762
762
  }
763
763
  function I(R, N, k = (M) => M) {
764
- const M = (...te) => z.fire(k(...te)), E = () => R.on(N, M), $ = () => R.removeListener(N, M), z = new xe({ onWillAddFirstListener: E, onDidRemoveLastListener: $ });
765
- return z.event;
764
+ const M = (...te) => H.fire(k(...te)), E = () => R.on(N, M), $ = () => R.removeListener(N, M), H = new ye({ onWillAddFirstListener: E, onDidRemoveLastListener: $ });
765
+ return H.event;
766
766
  }
767
767
  t.fromNodeEventEmitter = I;
768
768
  function O(R, N, k = (M) => M) {
769
- const M = (...te) => z.fire(k(...te)), E = () => R.addEventListener(N, M), $ = () => R.removeEventListener(N, M), z = new xe({ onWillAddFirstListener: E, onDidRemoveLastListener: $ });
770
- return z.event;
769
+ const M = (...te) => H.fire(k(...te)), E = () => R.addEventListener(N, M), $ = () => R.removeEventListener(N, M), H = new ye({ onWillAddFirstListener: E, onDidRemoveLastListener: $ });
770
+ return H.event;
771
771
  }
772
772
  t.fromDOMEventEmitter = O;
773
- function y(R, N) {
773
+ function x(R, N) {
774
774
  let k, M;
775
775
  const E = new Promise(($) => {
776
776
  M = n(R)($), vn(M, N), k = () => {
@@ -779,7 +779,7 @@ var yn;
779
779
  });
780
780
  return E.cancel = k, N && E.finally(() => ir(M, N)), E;
781
781
  }
782
- t.toPromise = y;
782
+ t.toPromise = x;
783
783
  function v(R, N) {
784
784
  return R((k) => N.fire(k));
785
785
  }
@@ -799,7 +799,7 @@ var yn;
799
799
  N.removeObserver(this);
800
800
  }
801
801
  };
802
- this.emitter = new xe(M), k && k.add(this.emitter);
802
+ this.emitter = new ye(M), k && k.add(this.emitter);
803
803
  }
804
804
  beginUpdate(N) {
805
805
  this._counter++;
@@ -820,7 +820,7 @@ var yn;
820
820
  function D(R) {
821
821
  return (N, k, M) => {
822
822
  let E = 0, $ = !1;
823
- const z = {
823
+ const H = {
824
824
  beginUpdate() {
825
825
  E++;
826
826
  },
@@ -833,17 +833,17 @@ var yn;
833
833
  $ = !0;
834
834
  }
835
835
  };
836
- R.addObserver(z), R.reportChanges();
836
+ R.addObserver(H), R.reportChanges();
837
837
  const te = {
838
838
  dispose() {
839
- R.removeObserver(z);
839
+ R.removeObserver(H);
840
840
  }
841
841
  };
842
842
  return vn(te, M), te;
843
843
  };
844
844
  }
845
845
  t.fromObservableLight = D;
846
- })(yn || (yn = {}));
846
+ })(xn || (xn = {}));
847
847
  class qt {
848
848
  static {
849
849
  this.all = /* @__PURE__ */ new Set();
@@ -935,7 +935,7 @@ class an {
935
935
  }
936
936
  }
937
937
  const ha = 2;
938
- class xe {
938
+ class ye {
939
939
  constructor(e) {
940
940
  this._size = 0, this._options = e, this._leakageMon = this._options?.leakWarningThreshold ? new Gn(e?.onListenerError ?? Ft, this._options?.leakWarningThreshold ?? ua, this._options?.leakWarningName) : void 0, this._perfMon = this._options?._profName ? new qt(this._options._profName) : void 0, this._deliveryQueue = this._options?.deliveryQueue;
941
941
  }
@@ -952,15 +952,15 @@ class xe {
952
952
  const l = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
953
953
  console.warn(l);
954
954
  const u = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], c = u[1] / this._size > 0.3 ? "dominated" : "popular", h = new ca(c, `${l}. HINT: Stack shows most frequent listener (${u[1]}-times)`, u[0], this._size, this._options?.leakWarningName);
955
- return (this._options?.onListenerError || Ft)(h), vt.None;
955
+ return (this._options?.onListenerError || Ft)(h), Lt.None;
956
956
  }
957
957
  if (this._disposed)
958
- return vt.None;
958
+ return Lt.None;
959
959
  n && (e = e.bind(n));
960
960
  const s = new an(e);
961
961
  let i;
962
962
  this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (s.stack = Zt.create(), i = this._leakageMon.check(s.stack, this._size + 1)), this._listeners ? this._listeners instanceof an ? (this._deliveryQueue ??= new fa(), this._listeners = [this._listeners, s]) : this._listeners.push(s) : (this._options?.onWillAddFirstListener?.(this), this._listeners = s, this._options?.onDidAddFirstListener?.(this)), this._options?.onDidAddListener?.(this), this._size++;
963
- const a = yt(() => {
963
+ const a = vt(() => {
964
964
  i?.(), this._removeListener(s);
965
965
  });
966
966
  return vn(a, r), a;
@@ -1112,7 +1112,7 @@ function wa(t) {
1112
1112
  }
1113
1113
  return -1;
1114
1114
  }
1115
- function xa(t, e = t.length - 1) {
1115
+ function ya(t, e = t.length - 1) {
1116
1116
  for (let n = e; n >= 0; n--) {
1117
1117
  const r = t.charCodeAt(n);
1118
1118
  if (r !== 32 && r !== 9)
@@ -1143,7 +1143,7 @@ function Nn(t, e) {
1143
1143
  function Sn(t) {
1144
1144
  return 55296 <= t && t <= 56319;
1145
1145
  }
1146
- function ya(t) {
1146
+ function xa(t) {
1147
1147
  return 56320 <= t && t <= 57343;
1148
1148
  }
1149
1149
  function va(t, e) {
@@ -1153,7 +1153,7 @@ function La(t, e, n) {
1153
1153
  const r = t.charCodeAt(n);
1154
1154
  if (Sn(r) && n + 1 < e) {
1155
1155
  const s = t.charCodeAt(n + 1);
1156
- if (ya(s))
1156
+ if (xa(s))
1157
1157
  return va(r, s);
1158
1158
  }
1159
1159
  return r;
@@ -1288,7 +1288,7 @@ class Aa {
1288
1288
  }
1289
1289
  listen(e, n, r) {
1290
1290
  let s = null;
1291
- const i = new xe({
1291
+ const i = new ye({
1292
1292
  onWillAddFirstListener: () => {
1293
1293
  s = String(++this._lastSentReq), this._pendingEmitters.set(s, i), this._send(new Ra(this._workerId, s, e, n, r));
1294
1294
  },
@@ -1497,13 +1497,13 @@ class ur {
1497
1497
  function Fa(t, e, n) {
1498
1498
  return new Ie(new ur(t), new ur(e)).ComputeDiff(n).changes;
1499
1499
  }
1500
- class je {
1500
+ class Ge {
1501
1501
  static Assert(e, n) {
1502
1502
  if (!e)
1503
1503
  throw new Error(n);
1504
1504
  }
1505
1505
  }
1506
- class Ge {
1506
+ class Qe {
1507
1507
  /**
1508
1508
  * Copies a range of elements from an Array starting at the specified source index and pastes
1509
1509
  * them to another Array starting at the specified destination index. The length and the indexes
@@ -1642,11 +1642,11 @@ class Ie {
1642
1642
  n--, s--;
1643
1643
  if (e > n || r > s) {
1644
1644
  let f;
1645
- return r <= s ? (je.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), f = [
1645
+ return r <= s ? (Ge.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), f = [
1646
1646
  new Pe(e, 0, r, s - r + 1)
1647
- ]) : e <= n ? (je.Assert(r === s + 1, "modifiedStart should only be one more than modifiedEnd"), f = [
1647
+ ]) : e <= n ? (Ge.Assert(r === s + 1, "modifiedStart should only be one more than modifiedEnd"), f = [
1648
1648
  new Pe(e, n - e + 1, r, 0)
1649
- ]) : (je.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), je.Assert(r === s + 1, "modifiedStart should only be one more than modifiedEnd"), f = []), f;
1649
+ ]) : (Ge.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), Ge.Assert(r === s + 1, "modifiedStart should only be one more than modifiedEnd"), f = []), f;
1650
1650
  }
1651
1651
  const a = [0], l = [0], u = this.ComputeRecursionPoint(e, n, r, s, a, l, i), c = a[0], h = l[0];
1652
1652
  if (u !== null)
@@ -1662,11 +1662,11 @@ class Ie {
1662
1662
  new Pe(e, n - e + 1, r, s - r + 1)
1663
1663
  ];
1664
1664
  }
1665
- WALKTRACE(e, n, r, s, i, a, l, u, c, h, f, m, p, d, g, w, x, _) {
1666
- let L = null, A = null, I = new cr(), O = n, y = r, v = p[0] - w[0] - s, S = -1073741824, B = this.m_forwardHistory.length - 1;
1665
+ WALKTRACE(e, n, r, s, i, a, l, u, c, h, f, m, p, d, g, w, y, _) {
1666
+ let L = null, A = null, I = new cr(), O = n, x = r, v = p[0] - w[0] - s, S = -1073741824, B = this.m_forwardHistory.length - 1;
1667
1667
  do {
1668
1668
  const W = v + e;
1669
- W === O || W < y && c[W - 1] < c[W + 1] ? (f = c[W + 1], d = f - v - s, f < S && I.MarkNextChange(), S = f, I.AddModifiedElement(f + 1, d), v = W + 1 - e) : (f = c[W - 1] + 1, d = f - v - s, f < S && I.MarkNextChange(), S = f - 1, I.AddOriginalElement(f, d + 1), v = W - 1 - e), B >= 0 && (c = this.m_forwardHistory[B], e = c[0], O = 1, y = c.length - 1);
1669
+ W === O || W < x && c[W - 1] < c[W + 1] ? (f = c[W + 1], d = f - v - s, f < S && I.MarkNextChange(), S = f, I.AddModifiedElement(f + 1, d), v = W + 1 - e) : (f = c[W - 1] + 1, d = f - v - s, f < S && I.MarkNextChange(), S = f - 1, I.AddOriginalElement(f, d + 1), v = W - 1 - e), B >= 0 && (c = this.m_forwardHistory[B], e = c[0], O = 1, x = c.length - 1);
1670
1670
  } while (--B >= -1);
1671
1671
  if (L = I.getReverseChanges(), _[0]) {
1672
1672
  let W = p[0] + 1, D = w[0] + 1;
@@ -1678,10 +1678,10 @@ class Ie {
1678
1678
  new Pe(W, m - W + 1, D, g - D + 1)
1679
1679
  ];
1680
1680
  } else {
1681
- I = new cr(), O = a, y = l, v = p[0] - w[0] - u, S = 1073741824, B = x ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;
1681
+ I = new cr(), O = a, x = l, v = p[0] - w[0] - u, S = 1073741824, B = y ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;
1682
1682
  do {
1683
1683
  const W = v + i;
1684
- W === O || W < y && h[W - 1] >= h[W + 1] ? (f = h[W + 1] - 1, d = f - v - u, f > S && I.MarkNextChange(), S = f + 1, I.AddOriginalElement(f + 1, d + 1), v = W + 1 - i) : (f = h[W - 1], d = f - v - u, f > S && I.MarkNextChange(), S = f, I.AddModifiedElement(f + 1, d + 1), v = W - 1 - i), B >= 0 && (h = this.m_reverseHistory[B], i = h[0], O = 1, y = h.length - 1);
1684
+ W === O || W < x && h[W - 1] >= h[W + 1] ? (f = h[W + 1] - 1, d = f - v - u, f > S && I.MarkNextChange(), S = f + 1, I.AddOriginalElement(f + 1, d + 1), v = W + 1 - i) : (f = h[W - 1], d = f - v - u, f > S && I.MarkNextChange(), S = f, I.AddModifiedElement(f + 1, d + 1), v = W - 1 - i), B >= 0 && (h = this.m_reverseHistory[B], i = h[0], O = 1, x = h.length - 1);
1685
1685
  } while (--B >= -1);
1686
1686
  A = I.getChanges();
1687
1687
  }
@@ -1706,8 +1706,8 @@ class Ie {
1706
1706
  ComputeRecursionPoint(e, n, r, s, i, a, l) {
1707
1707
  let u = 0, c = 0, h = 0, f = 0, m = 0, p = 0;
1708
1708
  e--, r--, i[0] = 0, a[0] = 0, this.m_forwardHistory = [], this.m_reverseHistory = [];
1709
- const d = n - e + (s - r), g = d + 1, w = new Int32Array(g), x = new Int32Array(g), _ = s - r, L = n - e, A = e - r, I = n - s, y = (L - _) % 2 === 0;
1710
- w[_] = e, x[L] = n, l[0] = !1;
1709
+ const d = n - e + (s - r), g = d + 1, w = new Int32Array(g), y = new Int32Array(g), _ = s - r, L = n - e, A = e - r, I = n - s, x = (L - _) % 2 === 0;
1710
+ w[_] = e, y[L] = n, l[0] = !1;
1711
1711
  for (let v = 1; v <= d / 2 + 1; v++) {
1712
1712
  let S = 0, B = 0;
1713
1713
  h = this.ClipDiagonalBound(_ - v, v, _, g), f = this.ClipDiagonalBound(_ + v, v, _, g);
@@ -1716,29 +1716,29 @@ class Ie {
1716
1716
  const R = u;
1717
1717
  for (; u < n && c < s && this.ElementsAreEqual(u + 1, c + 1); )
1718
1718
  u++, c++;
1719
- if (w[D] = u, u + c > S + B && (S = u, B = c), !y && Math.abs(D - L) <= v - 1 && u >= x[D])
1720
- return i[0] = u, a[0] = c, R <= x[D] && v <= 1448 ? this.WALKTRACE(_, h, f, A, L, m, p, I, w, x, u, n, i, c, s, a, y, l) : null;
1719
+ if (w[D] = u, u + c > S + B && (S = u, B = c), !x && Math.abs(D - L) <= v - 1 && u >= y[D])
1720
+ return i[0] = u, a[0] = c, R <= y[D] && v <= 1448 ? this.WALKTRACE(_, h, f, A, L, m, p, I, w, y, u, n, i, c, s, a, x, l) : null;
1721
1721
  }
1722
1722
  const W = (S - e + (B - r) - v) / 2;
1723
1723
  if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(S, W))
1724
- return l[0] = !0, i[0] = S, a[0] = B, W > 0 && v <= 1448 ? this.WALKTRACE(_, h, f, A, L, m, p, I, w, x, u, n, i, c, s, a, y, l) : (e++, r++, [
1724
+ return l[0] = !0, i[0] = S, a[0] = B, W > 0 && v <= 1448 ? this.WALKTRACE(_, h, f, A, L, m, p, I, w, y, u, n, i, c, s, a, x, l) : (e++, r++, [
1725
1725
  new Pe(e, n - e + 1, r, s - r + 1)
1726
1726
  ]);
1727
1727
  m = this.ClipDiagonalBound(L - v, v, L, g), p = this.ClipDiagonalBound(L + v, v, L, g);
1728
1728
  for (let D = m; D <= p; D += 2) {
1729
- D === m || D < p && x[D - 1] >= x[D + 1] ? u = x[D + 1] - 1 : u = x[D - 1], c = u - (D - L) - I;
1729
+ D === m || D < p && y[D - 1] >= y[D + 1] ? u = y[D + 1] - 1 : u = y[D - 1], c = u - (D - L) - I;
1730
1730
  const R = u;
1731
1731
  for (; u > e && c > r && this.ElementsAreEqual(u, c); )
1732
1732
  u--, c--;
1733
- if (x[D] = u, y && Math.abs(D - _) <= v && u <= w[D])
1734
- return i[0] = u, a[0] = c, R >= w[D] && v <= 1448 ? this.WALKTRACE(_, h, f, A, L, m, p, I, w, x, u, n, i, c, s, a, y, l) : null;
1733
+ if (y[D] = u, x && Math.abs(D - _) <= v && u <= w[D])
1734
+ return i[0] = u, a[0] = c, R >= w[D] && v <= 1448 ? this.WALKTRACE(_, h, f, A, L, m, p, I, w, y, u, n, i, c, s, a, x, l) : null;
1735
1735
  }
1736
1736
  if (v <= 1447) {
1737
1737
  let D = new Int32Array(f - h + 2);
1738
- D[0] = _ - h + 1, Ge.Copy2(w, h, D, 1, f - h + 1), this.m_forwardHistory.push(D), D = new Int32Array(p - m + 2), D[0] = L - m + 1, Ge.Copy2(x, m, D, 1, p - m + 1), this.m_reverseHistory.push(D);
1738
+ D[0] = _ - h + 1, Qe.Copy2(w, h, D, 1, f - h + 1), this.m_forwardHistory.push(D), D = new Int32Array(p - m + 2), D[0] = L - m + 1, Qe.Copy2(y, m, D, 1, p - m + 1), this.m_reverseHistory.push(D);
1739
1739
  }
1740
1740
  }
1741
- return this.WALKTRACE(_, h, f, A, L, m, p, I, w, x, u, n, i, c, s, a, y, l);
1741
+ return this.WALKTRACE(_, h, f, A, L, m, p, I, w, y, u, n, i, c, s, a, x, l);
1742
1742
  }
1743
1743
  /**
1744
1744
  * Shifts the given changes to provide a more intuitive diff.
@@ -1863,10 +1863,10 @@ class Ie {
1863
1863
  return n.length > 0 ? n : e;
1864
1864
  if (this.ChangesOverlap(e[e.length - 1], n[0], r)) {
1865
1865
  const s = new Array(e.length + n.length - 1);
1866
- return Ge.Copy(e, 0, s, 0, e.length - 1), s[e.length - 1] = r[0], Ge.Copy(n, 1, s, e.length, n.length - 1), s;
1866
+ return Qe.Copy(e, 0, s, 0, e.length - 1), s[e.length - 1] = r[0], Qe.Copy(n, 1, s, e.length, n.length - 1), s;
1867
1867
  } else {
1868
1868
  const s = new Array(e.length + n.length);
1869
- return Ge.Copy(e, 0, s, 0, e.length), Ge.Copy(n, 0, s, e.length, n.length), s;
1869
+ return Qe.Copy(e, 0, s, 0, e.length), Qe.Copy(n, 0, s, e.length, n.length), s;
1870
1870
  }
1871
1871
  }
1872
1872
  /**
@@ -1878,7 +1878,7 @@ class Ie {
1878
1878
  * @returns True if the two changes overlap
1879
1879
  */
1880
1880
  ChangesOverlap(e, n, r) {
1881
- if (je.Assert(e.originalStart <= n.originalStart, "Left change is not less than or equal to right change"), je.Assert(e.modifiedStart <= n.modifiedStart, "Left change is not less than or equal to right change"), e.originalStart + e.originalLength >= n.originalStart || e.modifiedStart + e.modifiedLength >= n.modifiedStart) {
1881
+ if (Ge.Assert(e.originalStart <= n.originalStart, "Left change is not less than or equal to right change"), Ge.Assert(e.modifiedStart <= n.modifiedStart, "Left change is not less than or equal to right change"), e.originalStart + e.originalLength >= n.originalStart || e.modifiedStart + e.modifiedLength >= n.modifiedStart) {
1882
1882
  const s = e.originalStart;
1883
1883
  let i = e.originalLength;
1884
1884
  const a = e.modifiedStart;
@@ -2269,7 +2269,7 @@ class C {
2269
2269
  function hr(t) {
2270
2270
  return t < 0 ? 0 : t > 255 ? 255 : t | 0;
2271
2271
  }
2272
- function Qe(t) {
2272
+ function Je(t) {
2273
2273
  return t < 0 ? 0 : t > 4294967295 ? 4294967295 : t | 0;
2274
2274
  }
2275
2275
  class Qn {
@@ -2467,29 +2467,29 @@ function $a() {
2467
2467
  ]
2468
2468
  ])), ln;
2469
2469
  }
2470
- let ut = null;
2470
+ let ct = null;
2471
2471
  function Ba() {
2472
- if (ut === null) {
2473
- ut = new Qn(
2472
+ if (ct === null) {
2473
+ ct = new Qn(
2474
2474
  0
2475
2475
  /* CharacterClass.None */
2476
2476
  );
2477
2477
  const t = ` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;
2478
2478
  for (let n = 0; n < t.length; n++)
2479
- ut.set(
2479
+ ct.set(
2480
2480
  t.charCodeAt(n),
2481
2481
  1
2482
2482
  /* CharacterClass.ForceTermination */
2483
2483
  );
2484
2484
  const e = ".,;:";
2485
2485
  for (let n = 0; n < e.length; n++)
2486
- ut.set(
2486
+ ct.set(
2487
2487
  e.charCodeAt(n),
2488
2488
  2
2489
2489
  /* CharacterClass.CannotEndIn */
2490
2490
  );
2491
2491
  }
2492
- return ut;
2492
+ return ct;
2493
2493
  }
2494
2494
  class Ut {
2495
2495
  static _createLink(e, n, r, s, i) {
@@ -2520,7 +2520,7 @@ class Ut {
2520
2520
  const l = e.getLineContent(i), u = l.length;
2521
2521
  let c = 0, h = 0, f = 0, m = 1, p = !1, d = !1, g = !1, w = !1;
2522
2522
  for (; c < u; ) {
2523
- let x = !1;
2523
+ let y = !1;
2524
2524
  const _ = l.charCodeAt(c);
2525
2525
  if (m === 13) {
2526
2526
  let L;
@@ -2559,13 +2559,13 @@ class Ut {
2559
2559
  default:
2560
2560
  L = r.get(_);
2561
2561
  }
2562
- L === 1 && (s.push(Ut._createLink(r, l, i, h, c)), x = !0);
2562
+ L === 1 && (s.push(Ut._createLink(r, l, i, h, c)), y = !0);
2563
2563
  } else if (m === 12) {
2564
2564
  let L;
2565
- _ === 91 ? (d = !0, L = 0) : L = r.get(_), L === 1 ? x = !0 : m = 13;
2565
+ _ === 91 ? (d = !0, L = 0) : L = r.get(_), L === 1 ? y = !0 : m = 13;
2566
2566
  } else
2567
- m = n.nextState(m, _), m === 0 && (x = !0);
2568
- x && (m = 1, p = !1, d = !1, w = !1, h = c + 1, f = _), c++;
2567
+ m = n.nextState(m, _), m === 0 && (y = !0);
2568
+ y && (m = 1, p = !1, d = !1, w = !1, h = c + 1, f = _), c++;
2569
2569
  }
2570
2570
  m === 13 && s.push(Ut._createLink(r, l, i, h, u));
2571
2571
  }
@@ -2643,7 +2643,7 @@ var Ot;
2643
2643
  }
2644
2644
  t.isCancellationToken = e, t.None = Object.freeze({
2645
2645
  isCancellationRequested: !1,
2646
- onCancellationRequested: yn.None
2646
+ onCancellationRequested: xn.None
2647
2647
  }), t.Cancelled = Object.freeze({
2648
2648
  isCancellationRequested: !0,
2649
2649
  onCancellationRequested: ui
@@ -2660,7 +2660,7 @@ class It {
2660
2660
  return this._isCancelled;
2661
2661
  }
2662
2662
  get onCancellationRequested() {
2663
- return this._isCancelled ? ui : (this._emitter || (this._emitter = new xe()), this._emitter.event);
2663
+ return this._isCancelled ? ui : (this._emitter || (this._emitter = new ye()), this._emitter.event);
2664
2664
  }
2665
2665
  dispose() {
2666
2666
  this._emitter && (this._emitter.dispose(), this._emitter = null);
@@ -2982,11 +2982,11 @@ var fr;
2982
2982
  }
2983
2983
  t.toElectronAccelerator = a;
2984
2984
  })(fr || (fr = {}));
2985
- function za(t, e) {
2985
+ function Ha(t, e) {
2986
2986
  const n = (e & 65535) << 16 >>> 0;
2987
2987
  return (t | n) >>> 0;
2988
2988
  }
2989
- const Ha = 65, ja = 97, Ga = 90, Qa = 122, ze = 46, ee = 47, le = 92, Se = 58, Ja = 63;
2989
+ const za = 65, ja = 97, Ga = 90, Qa = 122, He = 46, ee = 47, ce = 92, Ce = 58, Ja = 63;
2990
2990
  class ci extends Error {
2991
2991
  constructor(e, n, r) {
2992
2992
  let s;
@@ -3006,13 +3006,13 @@ function Z(t, e) {
3006
3006
  }
3007
3007
  const Te = aa === "win32";
3008
3008
  function U(t) {
3009
- return t === ee || t === le;
3009
+ return t === ee || t === ce;
3010
3010
  }
3011
3011
  function kn(t) {
3012
3012
  return t === ee;
3013
3013
  }
3014
- function Ce(t) {
3015
- return t >= Ha && t <= Ga || t >= ja && t <= Qa;
3014
+ function Re(t) {
3015
+ return t >= za && t <= Ga || t >= ja && t <= Qa;
3016
3016
  }
3017
3017
  function Wt(t, e, n, r) {
3018
3018
  let s = "", i = 0, a = -1, l = 0, u = 0;
@@ -3026,7 +3026,7 @@ function Wt(t, e, n, r) {
3026
3026
  }
3027
3027
  if (r(u)) {
3028
3028
  if (!(a === c - 1 || l === 1)) if (l === 2) {
3029
- if (s.length < 2 || i !== 2 || s.charCodeAt(s.length - 1) !== ze || s.charCodeAt(s.length - 2) !== ze) {
3029
+ if (s.length < 2 || i !== 2 || s.charCodeAt(s.length - 1) !== He || s.charCodeAt(s.length - 2) !== He) {
3030
3030
  if (s.length > 2) {
3031
3031
  const h = s.lastIndexOf(n);
3032
3032
  h === -1 ? (s = "", i = 0) : (s = s.slice(0, h), i = s.length - 1 - s.lastIndexOf(n)), a = c, l = 0;
@@ -3040,7 +3040,7 @@ function Wt(t, e, n, r) {
3040
3040
  } else
3041
3041
  s.length > 0 ? s += `${n}${t.slice(a + 1, c)}` : s = t.slice(a + 1, c), i = c - a - 1;
3042
3042
  a = c, l = 0;
3043
- } else u === ze && l !== -1 ? ++l : l = -1;
3043
+ } else u === He && l !== -1 ? ++l : l = -1;
3044
3044
  }
3045
3045
  return s;
3046
3046
  }
@@ -3052,7 +3052,7 @@ function hi(t, e) {
3052
3052
  const n = e.dir || e.root, r = e.base || `${e.name || ""}${Ya(e.ext)}`;
3053
3053
  return n ? n === e.root ? `${n}${r}` : `${n}${t}${r}` : r;
3054
3054
  }
3055
- const se = {
3055
+ const ie = {
3056
3056
  // path.resolve([from ...], to)
3057
3057
  resolve(...t) {
3058
3058
  let e = "", n = "", r = !1;
@@ -3061,7 +3061,7 @@ const se = {
3061
3061
  if (s >= 0) {
3062
3062
  if (i = t[s], Z(i, `paths[${s}]`), i.length === 0)
3063
3063
  continue;
3064
- } else e.length === 0 ? i = Vt() : (i = ii[`=${e}`] || Vt(), (i === void 0 || i.slice(0, 2).toLowerCase() !== e.toLowerCase() && i.charCodeAt(2) === le) && (i = `${e}\\`));
3064
+ } else e.length === 0 ? i = Vt() : (i = ii[`=${e}`] || Vt(), (i === void 0 || i.slice(0, 2).toLowerCase() !== e.toLowerCase() && i.charCodeAt(2) === ce) && (i = `${e}\\`));
3065
3065
  const a = i.length;
3066
3066
  let l = 0, u = "", c = !1;
3067
3067
  const h = i.charCodeAt(0);
@@ -3084,7 +3084,7 @@ const se = {
3084
3084
  }
3085
3085
  } else
3086
3086
  l = 1;
3087
- else Ce(h) && i.charCodeAt(1) === Se && (u = i.slice(0, 2), l = 2, a > 2 && U(i.charCodeAt(2)) && (c = !0, l = 3));
3087
+ else Re(h) && i.charCodeAt(1) === Ce && (u = i.slice(0, 2), l = 2, a > 2 && U(i.charCodeAt(2)) && (c = !0, l = 3));
3088
3088
  if (u.length > 0)
3089
3089
  if (e.length > 0) {
3090
3090
  if (u.toLowerCase() !== e.toLowerCase())
@@ -3127,10 +3127,10 @@ const se = {
3127
3127
  }
3128
3128
  } else
3129
3129
  n = 1;
3130
- else Ce(i) && t.charCodeAt(1) === Se && (r = t.slice(0, 2), n = 2, e > 2 && U(t.charCodeAt(2)) && (s = !0, n = 3));
3130
+ else Re(i) && t.charCodeAt(1) === Ce && (r = t.slice(0, 2), n = 2, e > 2 && U(t.charCodeAt(2)) && (s = !0, n = 3));
3131
3131
  let a = n < e ? Wt(t.slice(n), !s, "\\", U) : "";
3132
3132
  if (a.length === 0 && !s && (a = "."), a.length > 0 && U(t.charCodeAt(e - 1)) && (a += "\\"), !s && r === void 0 && t.includes(":")) {
3133
- if (a.length >= 2 && Ce(a.charCodeAt(0)) && a.charCodeAt(1) === Se)
3133
+ if (a.length >= 2 && Re(a.charCodeAt(0)) && a.charCodeAt(1) === Ce)
3134
3134
  return `.\\${a}`;
3135
3135
  let l = t.indexOf(":");
3136
3136
  do
@@ -3147,7 +3147,7 @@ const se = {
3147
3147
  return !1;
3148
3148
  const n = t.charCodeAt(0);
3149
3149
  return U(n) || // Possible device root
3150
- e > 2 && Ce(n) && t.charCodeAt(1) === Se && U(t.charCodeAt(2));
3150
+ e > 2 && Re(n) && t.charCodeAt(1) === Ce && U(t.charCodeAt(2));
3151
3151
  },
3152
3152
  join(...t) {
3153
3153
  if (t.length === 0)
@@ -3170,7 +3170,7 @@ const se = {
3170
3170
  s++;
3171
3171
  s >= 2 && (e = `\\${e.slice(s)}`);
3172
3172
  }
3173
- return se.normalize(e);
3173
+ return ie.normalize(e);
3174
3174
  },
3175
3175
  // It will solve the relative path from `from` to `to`, for instance:
3176
3176
  // from = 'C:\\orandea\\test\\aaa'
@@ -3179,30 +3179,30 @@ const se = {
3179
3179
  relative(t, e) {
3180
3180
  if (Z(t, "from"), Z(e, "to"), t === e)
3181
3181
  return "";
3182
- const n = se.resolve(t), r = se.resolve(e);
3182
+ const n = ie.resolve(t), r = ie.resolve(e);
3183
3183
  if (n === r || (t = n.toLowerCase(), e = r.toLowerCase(), t === e))
3184
3184
  return "";
3185
3185
  if (n.length !== t.length || r.length !== e.length) {
3186
3186
  const d = n.split("\\"), g = r.split("\\");
3187
3187
  d[d.length - 1] === "" && d.pop(), g[g.length - 1] === "" && g.pop();
3188
- const w = d.length, x = g.length, _ = w < x ? w : x;
3188
+ const w = d.length, y = g.length, _ = w < y ? w : y;
3189
3189
  let L;
3190
3190
  for (L = 0; L < _ && d[L].toLowerCase() === g[L].toLowerCase(); L++)
3191
3191
  ;
3192
- return L === 0 ? r : L === _ ? x > _ ? g.slice(L).join("\\") : w > _ ? "..\\".repeat(w - 1 - L) + ".." : "" : "..\\".repeat(w - L) + g.slice(L).join("\\");
3192
+ return L === 0 ? r : L === _ ? y > _ ? g.slice(L).join("\\") : w > _ ? "..\\".repeat(w - 1 - L) + ".." : "" : "..\\".repeat(w - L) + g.slice(L).join("\\");
3193
3193
  }
3194
3194
  let s = 0;
3195
- for (; s < t.length && t.charCodeAt(s) === le; )
3195
+ for (; s < t.length && t.charCodeAt(s) === ce; )
3196
3196
  s++;
3197
3197
  let i = t.length;
3198
- for (; i - 1 > s && t.charCodeAt(i - 1) === le; )
3198
+ for (; i - 1 > s && t.charCodeAt(i - 1) === ce; )
3199
3199
  i--;
3200
3200
  const a = i - s;
3201
3201
  let l = 0;
3202
- for (; l < e.length && e.charCodeAt(l) === le; )
3202
+ for (; l < e.length && e.charCodeAt(l) === ce; )
3203
3203
  l++;
3204
3204
  let u = e.length;
3205
- for (; u - 1 > l && e.charCodeAt(u - 1) === le; )
3205
+ for (; u - 1 > l && e.charCodeAt(u - 1) === ce; )
3206
3206
  u--;
3207
3207
  const c = u - l, h = a < c ? a : c;
3208
3208
  let f = -1, m = 0;
@@ -3210,38 +3210,38 @@ const se = {
3210
3210
  const d = t.charCodeAt(s + m);
3211
3211
  if (d !== e.charCodeAt(l + m))
3212
3212
  break;
3213
- d === le && (f = m);
3213
+ d === ce && (f = m);
3214
3214
  }
3215
3215
  if (m !== h) {
3216
3216
  if (f === -1)
3217
3217
  return r;
3218
3218
  } else {
3219
3219
  if (c > h) {
3220
- if (e.charCodeAt(l + m) === le)
3220
+ if (e.charCodeAt(l + m) === ce)
3221
3221
  return r.slice(l + m + 1);
3222
3222
  if (m === 2)
3223
3223
  return r.slice(l + m);
3224
3224
  }
3225
- a > h && (t.charCodeAt(s + m) === le ? f = m : m === 2 && (f = 3)), f === -1 && (f = 0);
3225
+ a > h && (t.charCodeAt(s + m) === ce ? f = m : m === 2 && (f = 3)), f === -1 && (f = 0);
3226
3226
  }
3227
3227
  let p = "";
3228
3228
  for (m = s + f + 1; m <= i; ++m)
3229
- (m === i || t.charCodeAt(m) === le) && (p += p.length === 0 ? ".." : "\\..");
3230
- return l += f, p.length > 0 ? `${p}${r.slice(l, u)}` : (r.charCodeAt(l) === le && ++l, r.slice(l, u));
3229
+ (m === i || t.charCodeAt(m) === ce) && (p += p.length === 0 ? ".." : "\\..");
3230
+ return l += f, p.length > 0 ? `${p}${r.slice(l, u)}` : (r.charCodeAt(l) === ce && ++l, r.slice(l, u));
3231
3231
  },
3232
3232
  toNamespacedPath(t) {
3233
3233
  if (typeof t != "string" || t.length === 0)
3234
3234
  return t;
3235
- const e = se.resolve(t);
3235
+ const e = ie.resolve(t);
3236
3236
  if (e.length <= 2)
3237
3237
  return t;
3238
- if (e.charCodeAt(0) === le) {
3239
- if (e.charCodeAt(1) === le) {
3238
+ if (e.charCodeAt(0) === ce) {
3239
+ if (e.charCodeAt(1) === ce) {
3240
3240
  const n = e.charCodeAt(2);
3241
- if (n !== Ja && n !== ze)
3241
+ if (n !== Ja && n !== He)
3242
3242
  return `\\\\?\\UNC\\${e.slice(2)}`;
3243
3243
  }
3244
- } else if (Ce(e.charCodeAt(0)) && e.charCodeAt(1) === Se && e.charCodeAt(2) === le)
3244
+ } else if (Re(e.charCodeAt(0)) && e.charCodeAt(1) === Ce && e.charCodeAt(2) === ce)
3245
3245
  return `\\\\?\\${e}`;
3246
3246
  return e;
3247
3247
  },
@@ -3271,7 +3271,7 @@ const se = {
3271
3271
  }
3272
3272
  }
3273
3273
  }
3274
- } else Ce(s) && t.charCodeAt(1) === Se && (n = e > 2 && U(t.charCodeAt(2)) ? 3 : 2, r = n);
3274
+ } else Re(s) && t.charCodeAt(1) === Ce && (n = e > 2 && U(t.charCodeAt(2)) ? 3 : 2, r = n);
3275
3275
  let i = -1, a = !0;
3276
3276
  for (let l = e - 1; l >= r; --l)
3277
3277
  if (U(t.charCodeAt(l))) {
@@ -3291,7 +3291,7 @@ const se = {
3291
3291
  basename(t, e) {
3292
3292
  e !== void 0 && Z(e, "suffix"), Z(t, "path");
3293
3293
  let n = 0, r = -1, s = !0, i;
3294
- if (t.length >= 2 && Ce(t.charCodeAt(0)) && t.charCodeAt(1) === Se && (n = 2), e !== void 0 && e.length > 0 && e.length <= t.length) {
3294
+ if (t.length >= 2 && Re(t.charCodeAt(0)) && t.charCodeAt(1) === Ce && (n = 2), e !== void 0 && e.length > 0 && e.length <= t.length) {
3295
3295
  if (e === t)
3296
3296
  return "";
3297
3297
  let a = e.length - 1, l = -1;
@@ -3319,7 +3319,7 @@ const se = {
3319
3319
  extname(t) {
3320
3320
  Z(t, "path");
3321
3321
  let e = 0, n = -1, r = 0, s = -1, i = !0, a = 0;
3322
- t.length >= 2 && t.charCodeAt(1) === Se && Ce(t.charCodeAt(0)) && (e = r = 2);
3322
+ t.length >= 2 && t.charCodeAt(1) === Ce && Re(t.charCodeAt(0)) && (e = r = 2);
3323
3323
  for (let l = t.length - 1; l >= e; --l) {
3324
3324
  const u = t.charCodeAt(l);
3325
3325
  if (U(u)) {
@@ -3329,7 +3329,7 @@ const se = {
3329
3329
  }
3330
3330
  continue;
3331
3331
  }
3332
- s === -1 && (i = !1, s = l + 1), u === ze ? n === -1 ? n = l : a !== 1 && (a = 1) : n !== -1 && (a = -1);
3332
+ s === -1 && (i = !1, s = l + 1), u === He ? n === -1 ? n = l : a !== 1 && (a = 1) : n !== -1 && (a = -1);
3333
3333
  }
3334
3334
  return n === -1 || s === -1 || // We saw a non-dot character immediately before the dot
3335
3335
  a === 0 || // The (right-most) trimmed path component is exactly '..'
@@ -3360,7 +3360,7 @@ const se = {
3360
3360
  }
3361
3361
  }
3362
3362
  }
3363
- } else if (Ce(s) && t.charCodeAt(1) === Se) {
3363
+ } else if (Re(s) && t.charCodeAt(1) === Ce) {
3364
3364
  if (n <= 2)
3365
3365
  return e.root = e.dir = t, e;
3366
3366
  if (r = 2, U(t.charCodeAt(2))) {
@@ -3379,7 +3379,7 @@ const se = {
3379
3379
  }
3380
3380
  continue;
3381
3381
  }
3382
- l === -1 && (u = !1, l = c + 1), s === ze ? i === -1 ? i = c : h !== 1 && (h = 1) : i !== -1 && (h = -1);
3382
+ l === -1 && (u = !1, l = c + 1), s === He ? i === -1 ? i = c : h !== 1 && (h = 1) : i !== -1 && (h = -1);
3383
3383
  }
3384
3384
  return l !== -1 && (i === -1 || // We saw a non-dot character immediately before the dot
3385
3385
  h === 0 || // The (right-most) trimmed path component is exactly '..'
@@ -3398,7 +3398,7 @@ const se = {
3398
3398
  };
3399
3399
  }
3400
3400
  return () => Vt();
3401
- })(), ie = {
3401
+ })(), ae = {
3402
3402
  // path.resolve([from ...], to)
3403
3403
  resolve(...t) {
3404
3404
  let e = "", n = !1;
@@ -3429,10 +3429,10 @@ const se = {
3429
3429
  const r = t[n];
3430
3430
  Z(r, "path"), r.length > 0 && e.push(r);
3431
3431
  }
3432
- return e.length === 0 ? "." : ie.normalize(e.join("/"));
3432
+ return e.length === 0 ? "." : ae.normalize(e.join("/"));
3433
3433
  },
3434
3434
  relative(t, e) {
3435
- if (Z(t, "from"), Z(e, "to"), t === e || (t = ie.resolve(t), e = ie.resolve(e), t === e))
3435
+ if (Z(t, "from"), Z(e, "to"), t === e || (t = ae.resolve(t), e = ae.resolve(e), t === e))
3436
3436
  return "";
3437
3437
  const n = 1, r = t.length, s = r - n, i = 1, a = e.length - i, l = s < a ? s : a;
3438
3438
  let u = -1, c = 0;
@@ -3537,7 +3537,7 @@ const se = {
3537
3537
  }
3538
3538
  continue;
3539
3539
  }
3540
- a === -1 && (l = !1, a = u + 1), h === ze ? s === -1 ? s = u : c !== 1 && (c = 1) : s !== -1 && (c = -1);
3540
+ a === -1 && (l = !1, a = u + 1), h === He ? s === -1 ? s = u : c !== 1 && (c = 1) : s !== -1 && (c = -1);
3541
3541
  }
3542
3542
  if (a !== -1) {
3543
3543
  const h = i === 0 && n ? 1 : i;
@@ -3552,16 +3552,16 @@ const se = {
3552
3552
  win32: null,
3553
3553
  posix: null
3554
3554
  };
3555
- ie.win32 = se.win32 = se;
3556
- ie.posix = se.posix = ie;
3557
- Te ? se.normalize : ie.normalize;
3558
- const Ka = Te ? se.join : ie.join;
3559
- Te ? se.resolve : ie.resolve;
3560
- Te ? se.relative : ie.relative;
3561
- Te ? se.dirname : ie.dirname;
3562
- Te ? se.basename : ie.basename;
3563
- Te ? se.extname : ie.extname;
3564
- Te ? se.sep : ie.sep;
3555
+ ae.win32 = ie.win32 = ie;
3556
+ ae.posix = ie.posix = ae;
3557
+ Te ? ie.normalize : ae.normalize;
3558
+ const Ka = Te ? ie.join : ae.join;
3559
+ Te ? ie.resolve : ae.resolve;
3560
+ Te ? ie.relative : ae.relative;
3561
+ Te ? ie.dirname : ae.dirname;
3562
+ Te ? ie.basename : ae.basename;
3563
+ Te ? ie.extname : ae.extname;
3564
+ Te ? ie.sep : ae.sep;
3565
3565
  const eo = /^\w[\w\d+.-]*$/, to = /^\//, no = /^\/\//;
3566
3566
  function ro(t, e) {
3567
3567
  if (!t.scheme && e)
@@ -3586,15 +3586,15 @@ function io(t, e) {
3586
3586
  case "https":
3587
3587
  case "http":
3588
3588
  case "file":
3589
- e ? e[0] !== ye && (e = ye + e) : e = ye;
3589
+ e ? e[0] !== xe && (e = xe + e) : e = xe;
3590
3590
  break;
3591
3591
  }
3592
3592
  return e;
3593
3593
  }
3594
- const j = "", ye = "/", ao = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
3595
- class ge {
3594
+ const j = "", xe = "/", ao = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
3595
+ class be {
3596
3596
  static isUri(e) {
3597
- return e instanceof ge ? !0 : !e || typeof e != "object" ? !1 : typeof e.authority == "string" && typeof e.fragment == "string" && typeof e.path == "string" && typeof e.query == "string" && typeof e.scheme == "string" && typeof e.fsPath == "string" && typeof e.with == "function" && typeof e.toString == "function";
3597
+ return e instanceof be ? !0 : !e || typeof e != "object" ? !1 : typeof e.authority == "string" && typeof e.fragment == "string" && typeof e.path == "string" && typeof e.query == "string" && typeof e.scheme == "string" && typeof e.fsPath == "string" && typeof e.with == "function" && typeof e.toString == "function";
3598
3598
  }
3599
3599
  /**
3600
3600
  * @internal
@@ -3635,7 +3635,7 @@ class ge {
3635
3635
  if (!e)
3636
3636
  return this;
3637
3637
  let { scheme: n, authority: r, path: s, query: i, fragment: a } = e;
3638
- return n === void 0 ? n = this.scheme : n === null && (n = j), r === void 0 ? r = this.authority : r === null && (r = j), s === void 0 ? s = this.path : s === null && (s = j), i === void 0 ? i = this.query : i === null && (i = j), a === void 0 ? a = this.fragment : a === null && (a = j), n === this.scheme && r === this.authority && s === this.path && i === this.query && a === this.fragment ? this : new Je(n, r, s, i, a);
3638
+ return n === void 0 ? n = this.scheme : n === null && (n = j), r === void 0 ? r = this.authority : r === null && (r = j), s === void 0 ? s = this.path : s === null && (s = j), i === void 0 ? i = this.query : i === null && (i = j), a === void 0 ? a = this.fragment : a === null && (a = j), n === this.scheme && r === this.authority && s === this.path && i === this.query && a === this.fragment ? this : new Xe(n, r, s, i, a);
3639
3639
  }
3640
3640
  // ---- parse & validate ------------------------
3641
3641
  /**
@@ -3646,7 +3646,7 @@ class ge {
3646
3646
  */
3647
3647
  static parse(e, n = !1) {
3648
3648
  const r = ao.exec(e);
3649
- return r ? new Je(r[2] || j, Et(r[4] || j), Et(r[5] || j), Et(r[7] || j), Et(r[9] || j), n) : new Je(j, j, j, j, j);
3649
+ return r ? new Xe(r[2] || j, Et(r[4] || j), Et(r[5] || j), Et(r[7] || j), Et(r[9] || j), n) : new Xe(j, j, j, j, j);
3650
3650
  }
3651
3651
  /**
3652
3652
  * Creates a new URI from a file system path, e.g. `c:\my\files`,
@@ -3671,11 +3671,11 @@ class ge {
3671
3671
  */
3672
3672
  static file(e) {
3673
3673
  let n = j;
3674
- if (Lt && (e = e.replace(/\\/g, ye)), e[0] === ye && e[1] === ye) {
3675
- const r = e.indexOf(ye, 2);
3676
- r === -1 ? (n = e.substring(2), e = ye) : (n = e.substring(2, r), e = e.substring(r) || ye);
3674
+ if (_t && (e = e.replace(/\\/g, xe)), e[0] === xe && e[1] === xe) {
3675
+ const r = e.indexOf(xe, 2);
3676
+ r === -1 ? (n = e.substring(2), e = xe) : (n = e.substring(2, r), e = e.substring(r) || xe);
3677
3677
  }
3678
- return new Je("file", n, e, j, j);
3678
+ return new Xe("file", n, e, j, j);
3679
3679
  }
3680
3680
  /**
3681
3681
  * Creates new URI from uri components.
@@ -3685,7 +3685,7 @@ class ge {
3685
3685
  * user input, command arguments etc
3686
3686
  */
3687
3687
  static from(e, n) {
3688
- return new Je(e.scheme, e.authority, e.path, e.query, e.fragment, n);
3688
+ return new Xe(e.scheme, e.authority, e.path, e.query, e.fragment, n);
3689
3689
  }
3690
3690
  /**
3691
3691
  * Join a URI path with path fragments and normalizes the resulting path.
@@ -3698,7 +3698,7 @@ class ge {
3698
3698
  if (!e.path)
3699
3699
  throw new Error(`[UriError]: cannot call joinPath on URI without path: ${e.toString()}`);
3700
3700
  let r;
3701
- return Lt && e.scheme === "file" ? r = ge.file(se.join(En(e, !0), ...n)).path : r = ie.join(e.path, ...n), e.with({ path: r });
3701
+ return _t && e.scheme === "file" ? r = be.file(ie.join(En(e, !0), ...n)).path : r = ae.join(e.path, ...n), e.with({ path: r });
3702
3702
  }
3703
3703
  // ---- printing/externalize ---------------------------
3704
3704
  /**
@@ -3720,17 +3720,17 @@ class ge {
3720
3720
  }
3721
3721
  static revive(e) {
3722
3722
  if (e) {
3723
- if (e instanceof ge)
3723
+ if (e instanceof be)
3724
3724
  return e;
3725
3725
  {
3726
- const n = new Je(e);
3726
+ const n = new Xe(e);
3727
3727
  return n._formatted = e.external ?? null, n._fsPath = e._sep === fi ? e.fsPath ?? null : null, n;
3728
3728
  }
3729
3729
  } else return e;
3730
3730
  }
3731
3731
  }
3732
- const fi = Lt ? 1 : void 0;
3733
- class Je extends ge {
3732
+ const fi = _t ? 1 : void 0;
3733
+ class Xe extends be {
3734
3734
  constructor() {
3735
3735
  super(...arguments), this._formatted = null, this._fsPath = null;
3736
3736
  }
@@ -3795,12 +3795,12 @@ function oo(t) {
3795
3795
  }
3796
3796
  function En(t, e) {
3797
3797
  let n;
3798
- return t.authority && t.path.length > 1 && t.scheme === "file" ? n = `//${t.authority}${t.path}` : t.path.charCodeAt(0) === 47 && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && t.path.charCodeAt(2) === 58 ? e ? n = t.path.substr(1) : n = t.path[1].toLowerCase() + t.path.substr(2) : n = t.path, Lt && (n = n.replace(/\//g, "\\")), n;
3798
+ return t.authority && t.path.length > 1 && t.scheme === "file" ? n = `//${t.authority}${t.path}` : t.path.charCodeAt(0) === 47 && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && t.path.charCodeAt(2) === 58 ? e ? n = t.path.substr(1) : n = t.path[1].toLowerCase() + t.path.substr(2) : n = t.path, _t && (n = n.replace(/\//g, "\\")), n;
3799
3799
  }
3800
3800
  function An(t, e) {
3801
3801
  const n = e ? oo : mr;
3802
3802
  let r = "", { scheme: s, authority: i, path: a, query: l, fragment: u } = t;
3803
- if (s && (r += s, r += ":"), (i || s === "file") && (r += ye, r += ye), i) {
3803
+ if (s && (r += s, r += ":"), (i || s === "file") && (r += xe, r += xe), i) {
3804
3804
  let c = i.indexOf("@");
3805
3805
  if (c !== -1) {
3806
3806
  const h = i.substr(0, c);
@@ -3831,7 +3831,7 @@ const dr = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
3831
3831
  function Et(t) {
3832
3832
  return t.match(dr) ? t.replace(dr, (e) => di(e)) : t;
3833
3833
  }
3834
- class fe extends C {
3834
+ class me extends C {
3835
3835
  constructor(e, n, r, s) {
3836
3836
  super(e, n, r, s), this.selectionStartLineNumber = e, this.selectionStartColumn = n, this.positionLineNumber = r, this.positionColumn = s;
3837
3837
  }
@@ -3845,7 +3845,7 @@ class fe extends C {
3845
3845
  * Test if equals other selection.
3846
3846
  */
3847
3847
  equalsSelection(e) {
3848
- return fe.selectionsEqual(this, e);
3848
+ return me.selectionsEqual(this, e);
3849
3849
  }
3850
3850
  /**
3851
3851
  * Test if the two selections are equal.
@@ -3863,7 +3863,7 @@ class fe extends C {
3863
3863
  * Create a new selection with a different `positionLineNumber` and `positionColumn`.
3864
3864
  */
3865
3865
  setEndPosition(e, n) {
3866
- return this.getDirection() === 0 ? new fe(this.startLineNumber, this.startColumn, e, n) : new fe(e, n, this.startLineNumber, this.startColumn);
3866
+ return this.getDirection() === 0 ? new me(this.startLineNumber, this.startColumn, e, n) : new me(e, n, this.startLineNumber, this.startColumn);
3867
3867
  }
3868
3868
  /**
3869
3869
  * Get the position at `positionLineNumber` and `positionColumn`.
@@ -3881,26 +3881,26 @@ class fe extends C {
3881
3881
  * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`.
3882
3882
  */
3883
3883
  setStartPosition(e, n) {
3884
- return this.getDirection() === 0 ? new fe(e, n, this.endLineNumber, this.endColumn) : new fe(this.endLineNumber, this.endColumn, e, n);
3884
+ return this.getDirection() === 0 ? new me(e, n, this.endLineNumber, this.endColumn) : new me(this.endLineNumber, this.endColumn, e, n);
3885
3885
  }
3886
3886
  // ----
3887
3887
  /**
3888
3888
  * Create a `Selection` from one or two positions
3889
3889
  */
3890
3890
  static fromPositions(e, n = e) {
3891
- return new fe(e.lineNumber, e.column, n.lineNumber, n.column);
3891
+ return new me(e.lineNumber, e.column, n.lineNumber, n.column);
3892
3892
  }
3893
3893
  /**
3894
3894
  * Creates a `Selection` from a range, given a direction.
3895
3895
  */
3896
3896
  static fromRange(e, n) {
3897
- return n === 0 ? new fe(e.startLineNumber, e.startColumn, e.endLineNumber, e.endColumn) : new fe(e.endLineNumber, e.endColumn, e.startLineNumber, e.startColumn);
3897
+ return n === 0 ? new me(e.startLineNumber, e.startColumn, e.endLineNumber, e.endColumn) : new me(e.endLineNumber, e.endColumn, e.startLineNumber, e.startColumn);
3898
3898
  }
3899
3899
  /**
3900
3900
  * Create a `Selection` from an `ISelection`.
3901
3901
  */
3902
3902
  static liftSelection(e) {
3903
- return new fe(e.selectionStartLineNumber, e.selectionStartColumn, e.positionLineNumber, e.positionColumn);
3903
+ return new me(e.selectionStartLineNumber, e.selectionStartColumn, e.positionLineNumber, e.positionColumn);
3904
3904
  }
3905
3905
  /**
3906
3906
  * `a` equals `b`.
@@ -3927,7 +3927,7 @@ class fe extends C {
3927
3927
  * Create with a direction.
3928
3928
  */
3929
3929
  static createWithDirection(e, n, r, s, i) {
3930
- return i === 0 ? new fe(e, n, r, s) : new fe(r, s, e, n);
3930
+ return i === 0 ? new me(e, n, r, s) : new me(r, s, e, n);
3931
3931
  }
3932
3932
  }
3933
3933
  const gr = /* @__PURE__ */ Object.create(null);
@@ -4698,7 +4698,7 @@ const lo = {
4698
4698
  };
4699
4699
  class co {
4700
4700
  constructor() {
4701
- this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new xe(), this.onDidChange = this._onDidChange.event, this._colorMap = null;
4701
+ this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new ye(), this.onDidChange = this._onDidChange.event, this._colorMap = null;
4702
4702
  }
4703
4703
  handleChange(e) {
4704
4704
  this._onDidChange.fire({
@@ -4707,7 +4707,7 @@ class co {
4707
4707
  });
4708
4708
  }
4709
4709
  register(e, n) {
4710
- return this._tokenizationSupports.set(e, n), this.handleChange([e]), yt(() => {
4710
+ return this._tokenizationSupports.set(e, n), this.handleChange([e]), vt(() => {
4711
4711
  this._tokenizationSupports.get(e) === n && (this._tokenizationSupports.delete(e), this.handleChange([e]));
4712
4712
  });
4713
4713
  }
@@ -4717,7 +4717,7 @@ class co {
4717
4717
  registerFactory(e, n) {
4718
4718
  this._factories.get(e)?.dispose();
4719
4719
  const r = new ho(this, e, n);
4720
- return this._factories.set(e, r), yt(() => {
4720
+ return this._factories.set(e, r), vt(() => {
4721
4721
  const s = this._factories.get(e);
4722
4722
  !s || s !== r || (this._factories.delete(e), s.dispose());
4723
4723
  });
@@ -4751,7 +4751,7 @@ class co {
4751
4751
  ] : null;
4752
4752
  }
4753
4753
  }
4754
- class ho extends vt {
4754
+ class ho extends Lt {
4755
4755
  get isResolved() {
4756
4756
  return this._isResolved;
4757
4757
  }
@@ -4991,14 +4991,14 @@ var wr;
4991
4991
  (function(t) {
4992
4992
  t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit";
4993
4993
  })(wr || (wr = {}));
4994
- var xr;
4994
+ var yr;
4995
4995
  (function(t) {
4996
4996
  t[t.Code = 1] = "Code", t[t.Label = 2] = "Label";
4997
- })(xr || (xr = {}));
4998
- var yr;
4997
+ })(yr || (yr = {}));
4998
+ var xr;
4999
4999
  (function(t) {
5000
5000
  t[t.Accepted = 0] = "Accepted", t[t.Rejected = 1] = "Rejected", t[t.Ignored = 2] = "Ignored";
5001
- })(yr || (yr = {}));
5001
+ })(xr || (xr = {}));
5002
5002
  var vr;
5003
5003
  (function(t) {
5004
5004
  t[t.Automatic = 0] = "Automatic", t[t.PasteAs = 1] = "PasteAs";
@@ -5248,14 +5248,14 @@ var Wr;
5248
5248
  (function(t) {
5249
5249
  t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 3] = "Right";
5250
5250
  })(Wr || (Wr = {}));
5251
- var zr;
5251
+ var Hr;
5252
5252
  (function(t) {
5253
5253
  t[t.Increase = 0] = "Increase", t[t.Decrease = 1] = "Decrease";
5254
- })(zr || (zr = {}));
5255
- var Hr;
5254
+ })(Hr || (Hr = {}));
5255
+ var zr;
5256
5256
  (function(t) {
5257
5257
  t[t.None = 0] = "None", t[t.Indent = 1] = "Indent", t[t.IndentOutdent = 2] = "IndentOutdent", t[t.Outdent = 3] = "Outdent";
5258
- })(Hr || (Hr = {}));
5258
+ })(zr || (zr = {}));
5259
5259
  var jr;
5260
5260
  (function(t) {
5261
5261
  t[t.Both = 0] = "Both", t[t.Right = 1] = "Right", t[t.Left = 2] = "Left", t[t.None = 3] = "None";
@@ -5394,7 +5394,7 @@ class mo {
5394
5394
  this.WinCtrl = 256;
5395
5395
  }
5396
5396
  static chord(e, n) {
5397
- return za(e, n);
5397
+ return Ha(e, n);
5398
5398
  }
5399
5399
  }
5400
5400
  function go() {
@@ -5404,23 +5404,23 @@ function go() {
5404
5404
  languages: void 0,
5405
5405
  // undefined override expected here
5406
5406
  CancellationTokenSource: qa,
5407
- Emitter: xe,
5407
+ Emitter: ye,
5408
5408
  KeyCode: Mn,
5409
5409
  KeyMod: mo,
5410
5410
  Position: q,
5411
5411
  Range: C,
5412
- Selection: fe,
5412
+ Selection: me,
5413
5413
  SelectionDirection: Fn,
5414
5414
  MarkerSeverity: Tn,
5415
5415
  MarkerTag: Pn,
5416
- Uri: ge,
5416
+ Uri: be,
5417
5417
  Token: fo
5418
5418
  };
5419
5419
  }
5420
- var xs;
5420
+ var ys;
5421
5421
  class po {
5422
5422
  constructor() {
5423
- this[xs] = "LinkedMap", this._map = /* @__PURE__ */ new Map(), this._head = void 0, this._tail = void 0, this._size = 0, this._state = 0;
5423
+ this[ys] = "LinkedMap", this._map = /* @__PURE__ */ new Map(), this._head = void 0, this._tail = void 0, this._size = 0, this._state = 0;
5424
5424
  }
5425
5425
  clear() {
5426
5426
  this._map.clear(), this._head = void 0, this._tail = void 0, this._size = 0, this._state++;
@@ -5556,7 +5556,7 @@ class po {
5556
5556
  };
5557
5557
  return s;
5558
5558
  }
5559
- [(xs = Symbol.toStringTag, Symbol.iterator)]() {
5559
+ [(ys = Symbol.toStringTag, Symbol.iterator)]() {
5560
5560
  return this.entries();
5561
5561
  }
5562
5562
  trimOld(e) {
@@ -5692,7 +5692,7 @@ class wo extends bo {
5692
5692
  return super.set(e, n), this.checkTrim(), this;
5693
5693
  }
5694
5694
  }
5695
- class xo {
5695
+ class yo {
5696
5696
  constructor() {
5697
5697
  this.map = /* @__PURE__ */ new Map();
5698
5698
  }
@@ -5710,10 +5710,10 @@ class xo {
5710
5710
  }
5711
5711
  }
5712
5712
  new wo(10);
5713
- var ys;
5713
+ var xs;
5714
5714
  (function(t) {
5715
5715
  t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 4] = "Right", t[t.Full = 7] = "Full";
5716
- })(ys || (ys = {}));
5716
+ })(xs || (xs = {}));
5717
5717
  var vs;
5718
5718
  (function(t) {
5719
5719
  t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 3] = "Right";
@@ -5726,7 +5726,7 @@ var _s;
5726
5726
  (function(t) {
5727
5727
  t[t.Both = 0] = "Both", t[t.Right = 1] = "Right", t[t.Left = 2] = "Left", t[t.None = 3] = "None";
5728
5728
  })(_s || (_s = {}));
5729
- function yo(t) {
5729
+ function xo(t) {
5730
5730
  if (!t || t.length === 0)
5731
5731
  return !1;
5732
5732
  for (let e = 0, n = t.length; e < n; e++) {
@@ -5867,7 +5867,7 @@ class ko {
5867
5867
  l === "allNonBasicAscii" ? u = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : u = new RegExp(`${Eo(Array.from(l))}`, "g");
5868
5868
  const c = new No(null, u), h = [];
5869
5869
  let f = !1, m, p = 0, d = 0, g = 0;
5870
- e: for (let w = s, x = i; w <= x; w++) {
5870
+ e: for (let w = s, y = i; w <= y; w++) {
5871
5871
  const _ = e.getLineContent(w), L = _.length;
5872
5872
  c.reset(0);
5873
5873
  do
@@ -5882,9 +5882,9 @@ class ko {
5882
5882
  Sn(S) && I++;
5883
5883
  }
5884
5884
  const O = _.substring(A, I);
5885
- let y = Yn(A + 1, gi, _, 0);
5886
- y && y.endColumn <= A + 1 && (y = null);
5887
- const v = a.shouldHighlightNonBasicASCII(O, y ? y.word : null);
5885
+ let x = Yn(A + 1, gi, _, 0);
5886
+ x && x.endColumn <= A + 1 && (x = null);
5887
+ const v = a.shouldHighlightNonBasicASCII(O, x ? x.word : null);
5888
5888
  if (v !== 0) {
5889
5889
  if (v === 3 ? p++ : v === 2 ? d++ : v === 1 ? g++ : qi(), h.length >= 1e3) {
5890
5890
  f = !0;
@@ -5969,7 +5969,7 @@ function Ss(t) {
5969
5969
  return t === " " || t === `
5970
5970
  ` || t === " ";
5971
5971
  }
5972
- class ft {
5972
+ class mt {
5973
5973
  constructor(e, n, r) {
5974
5974
  this.changes = e, this.moves = n, this.hitTimeout = r;
5975
5975
  }
@@ -6026,10 +6026,10 @@ var In;
6026
6026
  }
6027
6027
  t.isNeitherLessOrGreaterThan = s, t.greaterThan = 1, t.lessThan = -1, t.neitherLessOrGreaterThan = 0;
6028
6028
  })(In || (In = {}));
6029
- function nt(t, e) {
6029
+ function rt(t, e) {
6030
6030
  return (n, r) => e(t(n), t(r));
6031
6031
  }
6032
- const mt = (t, e) => t - e;
6032
+ const dt = (t, e) => t - e;
6033
6033
  function Io(t) {
6034
6034
  return (e, n) => -t(e, n);
6035
6035
  }
@@ -6205,11 +6205,11 @@ class P {
6205
6205
  return n === void 0 && (n = e), new P(this.start - e, this.endExclusive + n);
6206
6206
  }
6207
6207
  }
6208
- function at(t, e) {
6209
- const n = ot(t, e);
6208
+ function ot(t, e) {
6209
+ const n = lt(t, e);
6210
6210
  return n === -1 ? void 0 : t[n];
6211
6211
  }
6212
- function ot(t, e, n = 0, r = t.length) {
6212
+ function lt(t, e, n = 0, r = t.length) {
6213
6213
  let s = n, i = r;
6214
6214
  for (; s < i; ) {
6215
6215
  const a = Math.floor((s + i) / 2);
@@ -6249,7 +6249,7 @@ class en {
6249
6249
  }
6250
6250
  this._prevFindLastPredicate = e;
6251
6251
  }
6252
- const n = ot(this._array, e, this._findLastMonotonousLastIdx);
6252
+ const n = lt(this._array, e, this._findLastMonotonousLastIdx);
6253
6253
  return this._findLastMonotonousLastIdx = n + 1, n === -1 ? void 0 : this._array[n];
6254
6254
  }
6255
6255
  }
@@ -6264,7 +6264,7 @@ class V {
6264
6264
  return new V(e.startLineNumber, e.endLineNumber + 1);
6265
6265
  }
6266
6266
  static {
6267
- this.compareByStart = nt((e) => e.startLineNumber, mt);
6267
+ this.compareByStart = rt((e) => e.startLineNumber, dt);
6268
6268
  }
6269
6269
  /**
6270
6270
  * @param lineRanges An array of arrays of of sorted line ranges.
@@ -6396,7 +6396,7 @@ class _e {
6396
6396
  addRange(e) {
6397
6397
  if (e.length === 0)
6398
6398
  return;
6399
- const n = Dn(this._normalizedRanges, (s) => s.endLineNumberExclusive >= e.startLineNumber), r = ot(this._normalizedRanges, (s) => s.startLineNumber <= e.endLineNumberExclusive) + 1;
6399
+ const n = Dn(this._normalizedRanges, (s) => s.endLineNumberExclusive >= e.startLineNumber), r = lt(this._normalizedRanges, (s) => s.startLineNumber <= e.endLineNumberExclusive) + 1;
6400
6400
  if (n === r)
6401
6401
  this._normalizedRanges.splice(n, 0, e);
6402
6402
  else if (n === r - 1) {
@@ -6408,11 +6408,11 @@ class _e {
6408
6408
  }
6409
6409
  }
6410
6410
  contains(e) {
6411
- const n = at(this._normalizedRanges, (r) => r.startLineNumber <= e);
6411
+ const n = ot(this._normalizedRanges, (r) => r.startLineNumber <= e);
6412
6412
  return !!n && n.endLineNumberExclusive > e;
6413
6413
  }
6414
6414
  intersects(e) {
6415
- const n = at(this._normalizedRanges, (r) => r.startLineNumber < e.endLineNumberExclusive);
6415
+ const n = ot(this._normalizedRanges, (r) => r.startLineNumber < e.endLineNumberExclusive);
6416
6416
  return !!n && n.endLineNumberExclusive > e.startLineNumber;
6417
6417
  }
6418
6418
  getUnion(e) {
@@ -6436,7 +6436,7 @@ class _e {
6436
6436
  * Subtracts all ranges in this set from `range` and returns the result.
6437
6437
  */
6438
6438
  subtractFrom(e) {
6439
- const n = Dn(this._normalizedRanges, (a) => a.endLineNumberExclusive >= e.startLineNumber), r = ot(this._normalizedRanges, (a) => a.startLineNumber <= e.endLineNumberExclusive) + 1;
6439
+ const n = Dn(this._normalizedRanges, (a) => a.endLineNumberExclusive >= e.startLineNumber), r = lt(this._normalizedRanges, (a) => a.startLineNumber <= e.endLineNumberExclusive) + 1;
6440
6440
  if (n === r)
6441
6441
  return new _e([e]);
6442
6442
  const s = [];
@@ -6463,25 +6463,25 @@ class _e {
6463
6463
  return new _e(this._normalizedRanges.map((n) => n.delta(e)));
6464
6464
  }
6465
6465
  }
6466
- class ae {
6466
+ class oe {
6467
6467
  static {
6468
- this.zero = new ae(0, 0);
6468
+ this.zero = new oe(0, 0);
6469
6469
  }
6470
6470
  static betweenPositions(e, n) {
6471
- return e.lineNumber === n.lineNumber ? new ae(0, n.column - e.column) : new ae(n.lineNumber - e.lineNumber, n.column - 1);
6471
+ return e.lineNumber === n.lineNumber ? new oe(0, n.column - e.column) : new oe(n.lineNumber - e.lineNumber, n.column - 1);
6472
6472
  }
6473
6473
  static fromPosition(e) {
6474
- return new ae(e.lineNumber - 1, e.column - 1);
6474
+ return new oe(e.lineNumber - 1, e.column - 1);
6475
6475
  }
6476
6476
  static ofRange(e) {
6477
- return ae.betweenPositions(e.getStartPosition(), e.getEndPosition());
6477
+ return oe.betweenPositions(e.getStartPosition(), e.getEndPosition());
6478
6478
  }
6479
6479
  static ofText(e) {
6480
6480
  let n = 0, r = 0;
6481
6481
  for (const s of e)
6482
6482
  s === `
6483
6483
  ` ? (n++, r = 0) : r++;
6484
- return new ae(n, r);
6484
+ return new oe(n, r);
6485
6485
  }
6486
6486
  constructor(e, n) {
6487
6487
  this.lineCount = e, this.columnCount = n;
@@ -6490,7 +6490,7 @@ class ae {
6490
6490
  return this.lineCount !== e.lineCount ? this.lineCount > e.lineCount : this.columnCount >= e.columnCount;
6491
6491
  }
6492
6492
  add(e) {
6493
- return e.lineCount === 0 ? new ae(this.lineCount, this.columnCount + e.columnCount) : new ae(this.lineCount + e.lineCount, e.columnCount);
6493
+ return e.lineCount === 0 ? new oe(this.lineCount, this.columnCount + e.columnCount) : new oe(this.lineCount + e.lineCount, e.columnCount);
6494
6494
  }
6495
6495
  createRange(e) {
6496
6496
  return this.lineCount === 0 ? new C(e.lineNumber, e.column, e.lineNumber, e.column + this.columnCount) : new C(e.lineNumber, e.column, e.lineNumber + this.lineCount, this.columnCount + 1);
@@ -6516,17 +6516,17 @@ class $o {
6516
6516
  return C.fromPositions(this.getPosition(e.start), this.getPosition(e.endExclusive));
6517
6517
  }
6518
6518
  getStringReplacement(e) {
6519
- return new dt.deps.StringReplacement(this.getOffsetRange(e.range), e.text);
6519
+ return new gt.deps.StringReplacement(this.getOffsetRange(e.range), e.text);
6520
6520
  }
6521
6521
  getTextReplacement(e) {
6522
- return new dt.deps.TextReplacement(this.getRange(e.replaceRange), e.newText);
6522
+ return new gt.deps.TextReplacement(this.getRange(e.replaceRange), e.newText);
6523
6523
  }
6524
6524
  getTextEdit(e) {
6525
6525
  const n = e.replacements.map((r) => this.getTextReplacement(r));
6526
- return new dt.deps.TextEdit(n);
6526
+ return new gt.deps.TextEdit(n);
6527
6527
  }
6528
6528
  }
6529
- class dt {
6529
+ class gt {
6530
6530
  static {
6531
6531
  this._deps = void 0;
6532
6532
  }
@@ -6537,9 +6537,9 @@ class dt {
6537
6537
  }
6538
6538
  }
6539
6539
  function Bo(t) {
6540
- dt._deps = t;
6540
+ gt._deps = t;
6541
6541
  }
6542
- class xi extends $o {
6542
+ class yi extends $o {
6543
6543
  constructor(e) {
6544
6544
  super(), this.text = e;
6545
6545
  }
@@ -6574,18 +6574,18 @@ class xi extends $o {
6574
6574
  return e.column - 1 > r ? new q(e.lineNumber, r + 1) : e;
6575
6575
  }
6576
6576
  getPosition(e) {
6577
- const n = ot(this.lineStartOffsetByLineIdx, (i) => i <= e), r = n + 1, s = e - this.lineStartOffsetByLineIdx[n] + 1;
6577
+ const n = lt(this.lineStartOffsetByLineIdx, (i) => i <= e), r = n + 1, s = e - this.lineStartOffsetByLineIdx[n] + 1;
6578
6578
  return new q(r, s);
6579
6579
  }
6580
6580
  get textLength() {
6581
6581
  const e = this.lineStartOffsetByLineIdx.length - 1;
6582
- return new dt.deps.TextLength(e, this.text.length - this.lineStartOffsetByLineIdx[e]);
6582
+ return new gt.deps.TextLength(e, this.text.length - this.lineStartOffsetByLineIdx[e]);
6583
6583
  }
6584
6584
  getLineLength(e) {
6585
6585
  return this.lineEndOffsetByLineIdx[e - 1] - this.lineStartOffsetByLineIdx[e - 1];
6586
6586
  }
6587
6587
  }
6588
- class yi {
6588
+ class xi {
6589
6589
  constructor() {
6590
6590
  this._transformer = void 0;
6591
6591
  }
@@ -6605,13 +6605,13 @@ class yi {
6605
6605
  return this.getValueOfRange(new C(e, 1, e, Number.MAX_SAFE_INTEGER)).length;
6606
6606
  }
6607
6607
  getTransformer() {
6608
- return this._transformer || (this._transformer = new xi(this.getValue())), this._transformer;
6608
+ return this._transformer || (this._transformer = new yi(this.getValue())), this._transformer;
6609
6609
  }
6610
6610
  getLineAt(e) {
6611
6611
  return this.getValueOfRange(new C(e, 1, e, Number.MAX_SAFE_INTEGER));
6612
6612
  }
6613
6613
  }
6614
- class Vo extends yi {
6614
+ class Vo extends xi {
6615
6615
  constructor(e, n) {
6616
6616
  Ui(n >= 1), super(), this._getLineContent = e, this._lineCount = n;
6617
6617
  }
@@ -6630,7 +6630,7 @@ class Vo extends yi {
6630
6630
  }
6631
6631
  get length() {
6632
6632
  const e = this._getLineContent(this._lineCount);
6633
- return new ae(this._lineCount - 1, e.length);
6633
+ return new oe(this._lineCount - 1, e.length);
6634
6634
  }
6635
6635
  }
6636
6636
  class At extends Vo {
@@ -6638,9 +6638,9 @@ class At extends Vo {
6638
6638
  super((n) => e[n - 1], e.length);
6639
6639
  }
6640
6640
  }
6641
- class zt extends yi {
6641
+ class Ht extends xi {
6642
6642
  constructor(e) {
6643
- super(), this.value = e, this._t = new xi(this.value);
6643
+ super(), this.value = e, this._t = new yi(this.value);
6644
6644
  }
6645
6645
  getValueOfRange(e) {
6646
6646
  return this._t.getOffsetRange(e).substring(this.value);
@@ -6653,17 +6653,17 @@ class zt extends yi {
6653
6653
  return this._t;
6654
6654
  }
6655
6655
  }
6656
- class Ht {
6656
+ class zt {
6657
6657
  static fromStringEdit(e, n) {
6658
6658
  const r = e.replacements.map((s) => ve.fromStringReplacement(s, n));
6659
- return new Ht(r);
6659
+ return new zt(r);
6660
6660
  }
6661
6661
  static fromParallelReplacementsUnsorted(e) {
6662
- const n = e.slice().sort(nt((r) => r.range, C.compareRangesUsingStarts));
6663
- return new Ht(n);
6662
+ const n = e.slice().sort(rt((r) => r.range, C.compareRangesUsingStarts));
6663
+ return new zt(n);
6664
6664
  }
6665
6665
  constructor(e) {
6666
- this.replacements = e, xt(() => Hn(e, (n, r) => n.range.getEndPosition().isBeforeOrEqual(r.range.getStartPosition())));
6666
+ this.replacements = e, xt(() => zn(e, (n, r) => n.range.getEndPosition().isBeforeOrEqual(r.range.getStartPosition())));
6667
6667
  }
6668
6668
  mapPosition(e) {
6669
6669
  let n = 0, r = 0, s = 0;
@@ -6671,7 +6671,7 @@ class Ht {
6671
6671
  const a = i.range.getStartPosition();
6672
6672
  if (e.isBeforeOrEqual(a))
6673
6673
  break;
6674
- const l = i.range.getEndPosition(), u = ae.ofText(i.text);
6674
+ const l = i.range.getEndPosition(), u = oe.ofText(i.text);
6675
6675
  if (e.isBefore(l)) {
6676
6676
  const c = new q(a.lineNumber + n, a.column + (a.lineNumber + n === r ? s : 0)), h = u.addToPosition(c);
6677
6677
  return Mt(c, h);
@@ -6700,14 +6700,14 @@ class Ht {
6700
6700
  return s.isEmpty() || (n += e.getValueOfRange(s)), n;
6701
6701
  }
6702
6702
  applyToString(e) {
6703
- const n = new zt(e);
6703
+ const n = new Ht(e);
6704
6704
  return this.apply(n);
6705
6705
  }
6706
6706
  getNewRanges() {
6707
6707
  const e = [];
6708
6708
  let n = 0, r = 0, s = 0;
6709
6709
  for (const i of this.replacements) {
6710
- const a = ae.ofText(i.text), l = q.lift({
6710
+ const a = oe.ofText(i.text), l = q.lift({
6711
6711
  lineNumber: i.range.startLineNumber + r,
6712
6712
  column: i.range.startColumn + (i.range.startLineNumber === n ? s : 0)
6713
6713
  }), u = a.createRange(l);
@@ -6733,7 +6733,7 @@ class Ht {
6733
6733
  }
6734
6734
  toString(e) {
6735
6735
  return e === void 0 ? this.replacements.map((n) => n.toString()).join(`
6736
- `) : typeof e == "string" ? this.toString(new zt(e)) : this.replacements.length === 0 ? "" : this.replacements.map((n) => {
6736
+ `) : typeof e == "string" ? this.toString(new Ht(e)) : this.replacements.length === 0 ? "" : this.replacements.map((n) => {
6737
6737
  const s = e.getValueOfRange(n.range), i = C.fromPositions(new q(Math.max(1, n.range.startLineNumber - 1), 1), n.range.getStartPosition());
6738
6738
  let a = e.getValueOfRange(i);
6739
6739
  a.length > 10 && (a = "..." + a.substring(a.length - 10));
@@ -6798,7 +6798,7 @@ class ve {
6798
6798
  `, `
6799
6799
  `), r = this.text.replaceAll(`\r
6800
6800
  `, `
6801
- `), s = _n(n, r), i = ae.ofText(n.substring(0, s)).addToPosition(this.range.getStartPosition()), a = r.substring(s), l = C.fromPositions(i, this.range.getEndPosition());
6801
+ `), s = _n(n, r), i = oe.ofText(n.substring(0, s)).addToPosition(this.range.getStartPosition()), a = r.substring(s), l = C.fromPositions(i, this.range.getEndPosition());
6802
6802
  return new ve(l, a);
6803
6803
  }
6804
6804
  removeCommonSuffix(e) {
@@ -6806,7 +6806,7 @@ class ve {
6806
6806
  `, `
6807
6807
  `), r = this.text.replaceAll(`\r
6808
6808
  `, `
6809
- `), s = Nn(n, r), i = ae.ofText(n.substring(0, n.length - s)).addToPosition(this.range.getStartPosition()), a = r.substring(0, r.length - s), l = C.fromPositions(this.range.getStartPosition(), i);
6809
+ `), s = Nn(n, r), i = oe.ofText(n.substring(0, n.length - s)).addToPosition(this.range.getStartPosition()), a = r.substring(0, r.length - s), l = C.fromPositions(this.range.getStartPosition(), i);
6810
6810
  return new ve(l, a);
6811
6811
  }
6812
6812
  toString() {
@@ -6821,22 +6821,22 @@ function Mt(t, e) {
6821
6821
  throw new K("start must be before end");
6822
6822
  return new C(t.lineNumber, t.column, e.lineNumber, e.column);
6823
6823
  }
6824
- class de {
6824
+ class pe {
6825
6825
  static inverse(e, n, r) {
6826
6826
  const s = [];
6827
6827
  let i = 1, a = 1;
6828
6828
  for (const u of e) {
6829
- const c = new de(new V(i, u.original.startLineNumber), new V(a, u.modified.startLineNumber));
6829
+ const c = new pe(new V(i, u.original.startLineNumber), new V(a, u.modified.startLineNumber));
6830
6830
  c.modified.isEmpty || s.push(c), i = u.original.endLineNumberExclusive, a = u.modified.endLineNumberExclusive;
6831
6831
  }
6832
- const l = new de(new V(i, n + 1), new V(a, r + 1));
6832
+ const l = new pe(new V(i, n + 1), new V(a, r + 1));
6833
6833
  return l.modified.isEmpty || s.push(l), s;
6834
6834
  }
6835
6835
  static clip(e, n, r) {
6836
6836
  const s = [];
6837
6837
  for (const i of e) {
6838
6838
  const a = i.original.intersect(n), l = i.modified.intersect(r);
6839
- a && !a.isEmpty && l && !l.isEmpty && s.push(new de(a, l));
6839
+ a && !a.isEmpty && l && !l.isEmpty && s.push(new pe(a, l));
6840
6840
  }
6841
6841
  return s;
6842
6842
  }
@@ -6847,10 +6847,10 @@ class de {
6847
6847
  return `{${this.original.toString()}->${this.modified.toString()}}`;
6848
6848
  }
6849
6849
  flip() {
6850
- return new de(this.modified, this.original);
6850
+ return new pe(this.modified, this.original);
6851
6851
  }
6852
6852
  join(e) {
6853
- return new de(this.original.join(e.original), this.modified.join(e.modified));
6853
+ return new pe(this.original.join(e.original), this.modified.join(e.modified));
6854
6854
  }
6855
6855
  /**
6856
6856
  * This method assumes that the LineRangeMapping describes a valid diff!
@@ -6860,13 +6860,13 @@ class de {
6860
6860
  toRangeMapping() {
6861
6861
  const e = this.original.toInclusiveRange(), n = this.modified.toInclusiveRange();
6862
6862
  if (e && n)
6863
- return new me(e, n);
6863
+ return new ge(e, n);
6864
6864
  if (this.original.startLineNumber === 1 || this.modified.startLineNumber === 1) {
6865
6865
  if (!(this.modified.startLineNumber === 1 && this.original.startLineNumber === 1))
6866
6866
  throw new K("not a valid diff");
6867
- return new me(new C(this.original.startLineNumber, 1, this.original.endLineNumberExclusive, 1), new C(this.modified.startLineNumber, 1, this.modified.endLineNumberExclusive, 1));
6867
+ return new ge(new C(this.original.startLineNumber, 1, this.original.endLineNumberExclusive, 1), new C(this.modified.startLineNumber, 1, this.modified.endLineNumberExclusive, 1));
6868
6868
  } else
6869
- return new me(new C(this.original.startLineNumber - 1, Number.MAX_SAFE_INTEGER, this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), new C(this.modified.startLineNumber - 1, Number.MAX_SAFE_INTEGER, this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER));
6869
+ return new ge(new C(this.original.startLineNumber - 1, Number.MAX_SAFE_INTEGER, this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), new C(this.modified.startLineNumber - 1, Number.MAX_SAFE_INTEGER, this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER));
6870
6870
  }
6871
6871
  /**
6872
6872
  * This method assumes that the LineRangeMapping describes a valid diff!
@@ -6875,15 +6875,15 @@ class de {
6875
6875
  */
6876
6876
  toRangeMapping2(e, n) {
6877
6877
  if (Cs(this.original.endLineNumberExclusive, e) && Cs(this.modified.endLineNumberExclusive, n))
6878
- return new me(new C(this.original.startLineNumber, 1, this.original.endLineNumberExclusive, 1), new C(this.modified.startLineNumber, 1, this.modified.endLineNumberExclusive, 1));
6878
+ return new ge(new C(this.original.startLineNumber, 1, this.original.endLineNumberExclusive, 1), new C(this.modified.startLineNumber, 1, this.modified.endLineNumberExclusive, 1));
6879
6879
  if (!this.original.isEmpty && !this.modified.isEmpty)
6880
- return new me(C.fromPositions(new q(this.original.startLineNumber, 1), Xe(new q(this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), e)), C.fromPositions(new q(this.modified.startLineNumber, 1), Xe(new q(this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), n)));
6880
+ return new ge(C.fromPositions(new q(this.original.startLineNumber, 1), Ye(new q(this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), e)), C.fromPositions(new q(this.modified.startLineNumber, 1), Ye(new q(this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), n)));
6881
6881
  if (this.original.startLineNumber > 1 && this.modified.startLineNumber > 1)
6882
- return new me(C.fromPositions(Xe(new q(this.original.startLineNumber - 1, Number.MAX_SAFE_INTEGER), e), Xe(new q(this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), e)), C.fromPositions(Xe(new q(this.modified.startLineNumber - 1, Number.MAX_SAFE_INTEGER), n), Xe(new q(this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), n)));
6882
+ return new ge(C.fromPositions(Ye(new q(this.original.startLineNumber - 1, Number.MAX_SAFE_INTEGER), e), Ye(new q(this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), e)), C.fromPositions(Ye(new q(this.modified.startLineNumber - 1, Number.MAX_SAFE_INTEGER), n), Ye(new q(this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), n)));
6883
6883
  throw new K();
6884
6884
  }
6885
6885
  }
6886
- function Xe(t, e) {
6886
+ function Ye(t, e) {
6887
6887
  if (t.lineNumber < 1)
6888
6888
  return new q(1, 1);
6889
6889
  if (t.lineNumber > e.length)
@@ -6894,25 +6894,25 @@ function Xe(t, e) {
6894
6894
  function Cs(t, e) {
6895
6895
  return t >= 1 && t <= e.length;
6896
6896
  }
6897
- class Ee extends de {
6897
+ class Ae extends pe {
6898
6898
  static fromRangeMappings(e) {
6899
6899
  const n = V.join(e.map((s) => V.fromRangeInclusive(s.originalRange))), r = V.join(e.map((s) => V.fromRangeInclusive(s.modifiedRange)));
6900
- return new Ee(n, r, e);
6900
+ return new Ae(n, r, e);
6901
6901
  }
6902
6902
  constructor(e, n, r) {
6903
6903
  super(e, n), this.innerChanges = r;
6904
6904
  }
6905
6905
  flip() {
6906
- return new Ee(this.modified, this.original, this.innerChanges?.map((e) => e.flip()));
6906
+ return new Ae(this.modified, this.original, this.innerChanges?.map((e) => e.flip()));
6907
6907
  }
6908
6908
  withInnerChangesFromLineRanges() {
6909
- return new Ee(this.original, this.modified, [this.toRangeMapping()]);
6909
+ return new Ae(this.original, this.modified, [this.toRangeMapping()]);
6910
6910
  }
6911
6911
  }
6912
- class me {
6912
+ class ge {
6913
6913
  static fromEdit(e) {
6914
6914
  const n = e.getNewRanges();
6915
- return e.replacements.map((s, i) => new me(s.range, n[i]));
6915
+ return e.replacements.map((s, i) => new ge(s.range, n[i]));
6916
6916
  }
6917
6917
  static assertSorted(e) {
6918
6918
  for (let n = 1; n < e.length; n++) {
@@ -6928,7 +6928,7 @@ class me {
6928
6928
  return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`;
6929
6929
  }
6930
6930
  flip() {
6931
- return new me(this.modifiedRange, this.originalRange);
6931
+ return new ge(this.modifiedRange, this.originalRange);
6932
6932
  }
6933
6933
  /**
6934
6934
  * Creates a single text edit that describes the change from the original to the modified text.
@@ -6942,21 +6942,21 @@ function $n(t, e, n, r = !1) {
6942
6942
  const s = [];
6943
6943
  for (const i of Mo(t.map((a) => qo(a, e, n)), (a, l) => a.original.intersectsOrTouches(l.original) || a.modified.intersectsOrTouches(l.modified))) {
6944
6944
  const a = i[0], l = i[i.length - 1];
6945
- s.push(new Ee(a.original.join(l.original), a.modified.join(l.modified), i.map((u) => u.innerChanges[0])));
6945
+ s.push(new Ae(a.original.join(l.original), a.modified.join(l.modified), i.map((u) => u.innerChanges[0])));
6946
6946
  }
6947
- return xt(() => !r && s.length > 0 && (s[0].modified.startLineNumber !== s[0].original.startLineNumber || n.length.lineCount - s[s.length - 1].modified.endLineNumberExclusive !== e.length.lineCount - s[s.length - 1].original.endLineNumberExclusive) ? !1 : Hn(s, (i, a) => a.original.startLineNumber - i.original.endLineNumberExclusive === a.modified.startLineNumber - i.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
6947
+ return xt(() => !r && s.length > 0 && (s[0].modified.startLineNumber !== s[0].original.startLineNumber || n.length.lineCount - s[s.length - 1].modified.endLineNumberExclusive !== e.length.lineCount - s[s.length - 1].original.endLineNumberExclusive) ? !1 : zn(s, (i, a) => a.original.startLineNumber - i.original.endLineNumberExclusive === a.modified.startLineNumber - i.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
6948
6948
  i.original.endLineNumberExclusive < a.original.startLineNumber && i.modified.endLineNumberExclusive < a.modified.startLineNumber)), s;
6949
6949
  }
6950
6950
  function qo(t, e, n) {
6951
6951
  let r = 0, s = 0;
6952
6952
  t.modifiedRange.endColumn === 1 && t.originalRange.endColumn === 1 && t.originalRange.startLineNumber + r <= t.originalRange.endLineNumber && t.modifiedRange.startLineNumber + r <= t.modifiedRange.endLineNumber && (s = -1), t.modifiedRange.startColumn - 1 >= n.getLineLength(t.modifiedRange.startLineNumber) && t.originalRange.startColumn - 1 >= e.getLineLength(t.originalRange.startLineNumber) && t.originalRange.startLineNumber <= t.originalRange.endLineNumber + s && t.modifiedRange.startLineNumber <= t.modifiedRange.endLineNumber + s && (r = 1);
6953
6953
  const i = new V(t.originalRange.startLineNumber + r, t.originalRange.endLineNumber + 1 + s), a = new V(t.modifiedRange.startLineNumber + r, t.modifiedRange.endLineNumber + 1 + s);
6954
- return new Ee(i, a, [t]);
6954
+ return new Ae(i, a, [t]);
6955
6955
  }
6956
6956
  const Uo = 3;
6957
6957
  class Oo {
6958
6958
  computeDiff(e, n, r) {
6959
- const i = new Ho(e, n, {
6959
+ const i = new zo(e, n, {
6960
6960
  maxComputationTime: r.maxComputationTimeMs,
6961
6961
  shouldIgnoreTrimWhitespace: r.ignoreTrimWhitespace,
6962
6962
  shouldComputeCharChanges: !0,
@@ -6969,11 +6969,11 @@ class Oo {
6969
6969
  u.originalEndLineNumber === 0 ? c = new V(u.originalStartLineNumber + 1, u.originalStartLineNumber + 1) : c = new V(u.originalStartLineNumber, u.originalEndLineNumber + 1);
6970
6970
  let h;
6971
6971
  u.modifiedEndLineNumber === 0 ? h = new V(u.modifiedStartLineNumber + 1, u.modifiedStartLineNumber + 1) : h = new V(u.modifiedStartLineNumber, u.modifiedEndLineNumber + 1);
6972
- let f = new Ee(c, h, u.charChanges?.map((m) => new me(new C(m.originalStartLineNumber, m.originalStartColumn, m.originalEndLineNumber, m.originalEndColumn), new C(m.modifiedStartLineNumber, m.modifiedStartColumn, m.modifiedEndLineNumber, m.modifiedEndColumn))));
6973
- l && (l.modified.endLineNumberExclusive === f.modified.startLineNumber || l.original.endLineNumberExclusive === f.original.startLineNumber) && (f = new Ee(l.original.join(f.original), l.modified.join(f.modified), l.innerChanges && f.innerChanges ? l.innerChanges.concat(f.innerChanges) : void 0), a.pop()), a.push(f), l = f;
6972
+ let f = new Ae(c, h, u.charChanges?.map((m) => new ge(new C(m.originalStartLineNumber, m.originalStartColumn, m.originalEndLineNumber, m.originalEndColumn), new C(m.modifiedStartLineNumber, m.modifiedStartColumn, m.modifiedEndLineNumber, m.modifiedEndColumn))));
6973
+ l && (l.modified.endLineNumberExclusive === f.modified.startLineNumber || l.original.endLineNumberExclusive === f.original.startLineNumber) && (f = new Ae(l.original.join(f.original), l.modified.join(f.modified), l.innerChanges && f.innerChanges ? l.innerChanges.concat(f.innerChanges) : void 0), a.pop()), a.push(f), l = f;
6974
6974
  }
6975
- return xt(() => Hn(a, (u, c) => c.original.startLineNumber - u.original.endLineNumberExclusive === c.modified.startLineNumber - u.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
6976
- u.original.endLineNumberExclusive < c.original.startLineNumber && u.modified.endLineNumberExclusive < c.modified.startLineNumber)), new ft(a, [], i.quitEarly);
6975
+ return xt(() => zn(a, (u, c) => c.original.startLineNumber - u.original.endLineNumberExclusive === c.modified.startLineNumber - u.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
6976
+ u.original.endLineNumberExclusive < c.original.startLineNumber && u.modified.endLineNumberExclusive < c.modified.startLineNumber)), new mt(a, [], i.quitEarly);
6977
6977
  }
6978
6978
  }
6979
6979
  function vi(t, e, n, r) {
@@ -7040,16 +7040,16 @@ class Wo {
7040
7040
  return e === -1 ? this.getStartColumn(e + 1) : (this._assertIndex(e, this._columns), this._charCodes[e] === 10 ? 1 : this._columns[e] + 1);
7041
7041
  }
7042
7042
  }
7043
- class rt {
7043
+ class st {
7044
7044
  constructor(e, n, r, s, i, a, l, u) {
7045
7045
  this.originalStartLineNumber = e, this.originalStartColumn = n, this.originalEndLineNumber = r, this.originalEndColumn = s, this.modifiedStartLineNumber = i, this.modifiedStartColumn = a, this.modifiedEndLineNumber = l, this.modifiedEndColumn = u;
7046
7046
  }
7047
7047
  static createFromDiffChange(e, n, r) {
7048
7048
  const s = n.getStartLineNumber(e.originalStart), i = n.getStartColumn(e.originalStart), a = n.getEndLineNumber(e.originalStart + e.originalLength - 1), l = n.getEndColumn(e.originalStart + e.originalLength - 1), u = r.getStartLineNumber(e.modifiedStart), c = r.getStartColumn(e.modifiedStart), h = r.getEndLineNumber(e.modifiedStart + e.modifiedLength - 1), f = r.getEndColumn(e.modifiedStart + e.modifiedLength - 1);
7049
- return new rt(s, i, a, l, u, c, h, f);
7049
+ return new st(s, i, a, l, u, c, h, f);
7050
7050
  }
7051
7051
  }
7052
- function zo(t) {
7052
+ function Ho(t) {
7053
7053
  if (t.length <= 1)
7054
7054
  return t;
7055
7055
  const e = [t[0]];
@@ -7060,7 +7060,7 @@ function zo(t) {
7060
7060
  }
7061
7061
  return e;
7062
7062
  }
7063
- class gt {
7063
+ class pt {
7064
7064
  constructor(e, n, r, s, i) {
7065
7065
  this.originalStartLineNumber = e, this.originalEndLineNumber = n, this.modifiedStartLineNumber = r, this.modifiedEndLineNumber = s, this.charChanges = i;
7066
7066
  }
@@ -7070,15 +7070,15 @@ class gt {
7070
7070
  const p = r.createCharSequence(e, n.originalStart, n.originalStart + n.originalLength - 1), d = s.createCharSequence(e, n.modifiedStart, n.modifiedStart + n.modifiedLength - 1);
7071
7071
  if (p.getElements().length > 0 && d.getElements().length > 0) {
7072
7072
  let g = vi(p, d, i, !0).changes;
7073
- l && (g = zo(g)), m = [];
7074
- for (let w = 0, x = g.length; w < x; w++)
7075
- m.push(rt.createFromDiffChange(g[w], p, d));
7073
+ l && (g = Ho(g)), m = [];
7074
+ for (let w = 0, y = g.length; w < y; w++)
7075
+ m.push(st.createFromDiffChange(g[w], p, d));
7076
7076
  }
7077
7077
  }
7078
- return new gt(u, c, h, f, m);
7078
+ return new pt(u, c, h, f, m);
7079
7079
  }
7080
7080
  }
7081
- class Ho {
7081
+ class zo {
7082
7082
  constructor(e, n, r) {
7083
7083
  this.shouldComputeCharChanges = r.shouldComputeCharChanges, this.shouldPostProcessCharChanges = r.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = r.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = r.shouldMakePrettyDiff, this.originalLines = e, this.modifiedLines = n, this.original = new Rs(e), this.modified = new Rs(n), this.continueLineDiff = ks(r.maxComputationTime), this.continueCharDiff = ks(r.maxComputationTime === 0 ? 0 : Math.min(r.maxComputationTime, 5e3));
7084
7084
  }
@@ -7112,7 +7112,7 @@ class Ho {
7112
7112
  if (this.shouldIgnoreTrimWhitespace) {
7113
7113
  const l = [];
7114
7114
  for (let u = 0, c = n.length; u < c; u++)
7115
- l.push(gt.createFromDiffResult(this.shouldIgnoreTrimWhitespace, n[u], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));
7115
+ l.push(pt.createFromDiffResult(this.shouldIgnoreTrimWhitespace, n[u], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));
7116
7116
  return {
7117
7117
  quitEarly: r,
7118
7118
  changes: l
@@ -7128,8 +7128,8 @@ class Ho {
7128
7128
  {
7129
7129
  let d = Bn(m, 1), g = Bn(p, 1);
7130
7130
  for (; d > 1 && g > 1; ) {
7131
- const w = m.charCodeAt(d - 2), x = p.charCodeAt(g - 2);
7132
- if (w !== x)
7131
+ const w = m.charCodeAt(d - 2), y = p.charCodeAt(g - 2);
7132
+ if (w !== y)
7133
7133
  break;
7134
7134
  d--, g--;
7135
7135
  }
@@ -7137,19 +7137,19 @@ class Ho {
7137
7137
  }
7138
7138
  {
7139
7139
  let d = Vn(m, 1), g = Vn(p, 1);
7140
- const w = m.length + 1, x = p.length + 1;
7141
- for (; d < w && g < x; ) {
7140
+ const w = m.length + 1, y = p.length + 1;
7141
+ for (; d < w && g < y; ) {
7142
7142
  const _ = m.charCodeAt(d - 1), L = m.charCodeAt(g - 1);
7143
7143
  if (_ !== L)
7144
7144
  break;
7145
7145
  d++, g++;
7146
7146
  }
7147
- (d < w || g < x) && this._pushTrimWhitespaceCharChange(s, i + 1, d, w, a + 1, g, x);
7147
+ (d < w || g < y) && this._pushTrimWhitespaceCharChange(s, i + 1, d, w, a + 1, g, y);
7148
7148
  }
7149
7149
  }
7150
7150
  i++, a++;
7151
7151
  }
7152
- c && (s.push(gt.createFromDiffResult(this.shouldIgnoreTrimWhitespace, c, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), i += c.originalLength, a += c.modifiedLength);
7152
+ c && (s.push(pt.createFromDiffResult(this.shouldIgnoreTrimWhitespace, c, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), i += c.originalLength, a += c.modifiedLength);
7153
7153
  }
7154
7154
  return {
7155
7155
  quitEarly: r,
@@ -7160,14 +7160,14 @@ class Ho {
7160
7160
  if (this._mergeTrimWhitespaceCharChange(e, n, r, s, i, a, l))
7161
7161
  return;
7162
7162
  let u;
7163
- this.shouldComputeCharChanges && (u = [new rt(n, r, n, s, i, a, i, l)]), e.push(new gt(n, n, i, i, u));
7163
+ this.shouldComputeCharChanges && (u = [new st(n, r, n, s, i, a, i, l)]), e.push(new pt(n, n, i, i, u));
7164
7164
  }
7165
7165
  _mergeTrimWhitespaceCharChange(e, n, r, s, i, a, l) {
7166
7166
  const u = e.length;
7167
7167
  if (u === 0)
7168
7168
  return !1;
7169
7169
  const c = e[u - 1];
7170
- return c.originalEndLineNumber === 0 || c.modifiedEndLineNumber === 0 ? !1 : c.originalEndLineNumber === n && c.modifiedEndLineNumber === i ? (this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new rt(n, r, n, s, i, a, i, l)), !0) : c.originalEndLineNumber + 1 === n && c.modifiedEndLineNumber + 1 === i ? (c.originalEndLineNumber = n, c.modifiedEndLineNumber = i, this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new rt(n, r, n, s, i, a, i, l)), !0) : !1;
7170
+ return c.originalEndLineNumber === 0 || c.modifiedEndLineNumber === 0 ? !1 : c.originalEndLineNumber === n && c.modifiedEndLineNumber === i ? (this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new st(n, r, n, s, i, a, i, l)), !0) : c.originalEndLineNumber + 1 === n && c.modifiedEndLineNumber + 1 === i ? (c.originalEndLineNumber = n, c.modifiedEndLineNumber = i, this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new st(n, r, n, s, i, a, i, l)), !0) : !1;
7171
7171
  }
7172
7172
  }
7173
7173
  function Bn(t, e) {
@@ -7175,7 +7175,7 @@ function Bn(t, e) {
7175
7175
  return n === -1 ? e : n + 1;
7176
7176
  }
7177
7177
  function Vn(t, e) {
7178
- const n = xa(t);
7178
+ const n = ya(t);
7179
7179
  return n === -1 ? e : n + 2;
7180
7180
  }
7181
7181
  function ks(t) {
@@ -7184,12 +7184,12 @@ function ks(t) {
7184
7184
  const e = Date.now();
7185
7185
  return () => Date.now() - e < t;
7186
7186
  }
7187
- class Ae {
7187
+ class Me {
7188
7188
  static trivial(e, n) {
7189
- return new Ae([new Y(P.ofLength(e.length), P.ofLength(n.length))], !1);
7189
+ return new Me([new Y(P.ofLength(e.length), P.ofLength(n.length))], !1);
7190
7190
  }
7191
7191
  static trivialTimedOut(e, n) {
7192
- return new Ae([new Y(P.ofLength(e.length), P.ofLength(n.length))], !0);
7192
+ return new Me([new Y(P.ofLength(e.length), P.ofLength(n.length))], !0);
7193
7193
  }
7194
7194
  constructor(e, n) {
7195
7195
  this.diffs = e, this.hitTimeout = n;
@@ -7298,7 +7298,7 @@ class un {
7298
7298
  function qn(t) {
7299
7299
  return t === 32 || t === 9;
7300
7300
  }
7301
- class _t {
7301
+ class Nt {
7302
7302
  static {
7303
7303
  this.chrKeys = /* @__PURE__ */ new Map();
7304
7304
  }
@@ -7313,11 +7313,11 @@ class _t {
7313
7313
  const a = n[i];
7314
7314
  for (let u = 0; u < a.length; u++) {
7315
7315
  s++;
7316
- const c = a[u], h = _t.getKey(c);
7316
+ const c = a[u], h = Nt.getKey(c);
7317
7317
  this.histogram[h] = (this.histogram[h] || 0) + 1;
7318
7318
  }
7319
7319
  s++;
7320
- const l = _t.getKey(`
7320
+ const l = Nt.getKey(`
7321
7321
  `);
7322
7322
  this.histogram[l] = (this.histogram[l] || 0) + 1;
7323
7323
  }
@@ -7334,20 +7334,20 @@ class _t {
7334
7334
  class Go {
7335
7335
  compute(e, n, r = Rt.instance, s) {
7336
7336
  if (e.length === 0 || n.length === 0)
7337
- return Ae.trivial(e, n);
7337
+ return Me.trivial(e, n);
7338
7338
  const i = new un(e.length, n.length), a = new un(e.length, n.length), l = new un(e.length, n.length);
7339
7339
  for (let d = 0; d < e.length; d++)
7340
7340
  for (let g = 0; g < n.length; g++) {
7341
7341
  if (!r.isValid())
7342
- return Ae.trivialTimedOut(e, n);
7343
- const w = d === 0 ? 0 : i.get(d - 1, g), x = g === 0 ? 0 : i.get(d, g - 1);
7342
+ return Me.trivialTimedOut(e, n);
7343
+ const w = d === 0 ? 0 : i.get(d - 1, g), y = g === 0 ? 0 : i.get(d, g - 1);
7344
7344
  let _;
7345
7345
  e.getElement(d) === n.getElement(g) ? (d === 0 || g === 0 ? _ = 0 : _ = i.get(d - 1, g - 1), d > 0 && g > 0 && a.get(d - 1, g - 1) === 3 && (_ += l.get(d - 1, g - 1)), _ += s ? s(d, g) : 1) : _ = -1;
7346
- const L = Math.max(w, x, _);
7346
+ const L = Math.max(w, y, _);
7347
7347
  if (L === _) {
7348
7348
  const A = d > 0 && g > 0 ? l.get(d - 1, g - 1) : 0;
7349
7349
  l.set(d, g, A + 1), a.set(d, g, 3);
7350
- } else L === w ? (l.set(d, g, 0), a.set(d, g, 1)) : L === x && (l.set(d, g, 0), a.set(d, g, 2));
7350
+ } else L === w ? (l.set(d, g, 0), a.set(d, g, 1)) : L === y && (l.set(d, g, 0), a.set(d, g, 2));
7351
7351
  i.set(d, g, L);
7352
7352
  }
7353
7353
  const u = [];
@@ -7358,13 +7358,13 @@ class Go {
7358
7358
  let m = e.length - 1, p = n.length - 1;
7359
7359
  for (; m >= 0 && p >= 0; )
7360
7360
  a.get(m, p) === 3 ? (f(m, p), m--, p--) : a.get(m, p) === 1 ? m-- : p--;
7361
- return f(-1, -1), u.reverse(), new Ae(u, !1);
7361
+ return f(-1, -1), u.reverse(), new Me(u, !1);
7362
7362
  }
7363
7363
  }
7364
7364
  class Li {
7365
7365
  compute(e, n, r = Rt.instance) {
7366
7366
  if (e.length === 0 || n.length === 0)
7367
- return Ae.trivial(e, n);
7367
+ return Me.trivial(e, n);
7368
7368
  const s = e, i = n;
7369
7369
  function a(g, w) {
7370
7370
  for (; g < s.length && w < i.length && s.getElement(g) === i.getElement(w); )
@@ -7379,15 +7379,15 @@ class Li {
7379
7379
  let h = 0;
7380
7380
  e: for (; ; ) {
7381
7381
  if (l++, !r.isValid())
7382
- return Ae.trivialTimedOut(s, i);
7382
+ return Me.trivialTimedOut(s, i);
7383
7383
  const g = -Math.min(l, i.length + l % 2), w = Math.min(l, s.length + l % 2);
7384
7384
  for (h = g; h <= w; h += 2) {
7385
- const x = h === w ? -1 : u.get(h + 1), _ = h === g ? -1 : u.get(h - 1) + 1, L = Math.min(Math.max(x, _), s.length), A = L - h;
7385
+ const y = h === w ? -1 : u.get(h + 1), _ = h === g ? -1 : u.get(h - 1) + 1, L = Math.min(Math.max(y, _), s.length), A = L - h;
7386
7386
  if (L > s.length || A > i.length)
7387
7387
  continue;
7388
7388
  const I = a(L, A);
7389
7389
  u.set(h, I);
7390
- const O = L === x ? c.get(h + 1) : c.get(h - 1);
7390
+ const O = L === y ? c.get(h + 1) : c.get(h - 1);
7391
7391
  if (c.set(h, I !== L ? new Es(O, L, A, I - L) : O), u.get(h) === s.length && u.get(h) - h === i.length)
7392
7392
  break e;
7393
7393
  }
@@ -7401,7 +7401,7 @@ class Li {
7401
7401
  break;
7402
7402
  p = f.x, d = f.y, f = f.prev;
7403
7403
  }
7404
- return m.reverse(), new Ae(m, !1);
7404
+ return m.reverse(), new Me(m, !1);
7405
7405
  }
7406
7406
  }
7407
7407
  class Es {
@@ -7486,7 +7486,7 @@ class jt {
7486
7486
  return n !== r && (s += 10, n === 0 && r === 1 && (s += 1)), s += Ms(n), s += Ms(r), s;
7487
7487
  }
7488
7488
  translateOffset(e, n = "right") {
7489
- const r = ot(this.firstElementOffsetByLineIdx, (i) => i <= e), s = e - this.firstElementOffsetByLineIdx[r];
7489
+ const r = lt(this.firstElementOffsetByLineIdx, (i) => i <= e), s = e - this.firstElementOffsetByLineIdx[r];
7490
7490
  return new q(this.range.startLineNumber + r, 1 + this.lineStartOffsets[r] + s + (s === 0 && n === "left" ? 0 : this.trimmedWsLengthsByLineIdx[r]));
7491
7491
  }
7492
7492
  translateRange(e) {
@@ -7497,25 +7497,25 @@ class jt {
7497
7497
  * Finds the word that contains the character at the given offset
7498
7498
  */
7499
7499
  findWordContaining(e) {
7500
- if (e < 0 || e >= this.elements.length || !Ye(this.elements[e]))
7500
+ if (e < 0 || e >= this.elements.length || !Ze(this.elements[e]))
7501
7501
  return;
7502
7502
  let n = e;
7503
- for (; n > 0 && Ye(this.elements[n - 1]); )
7503
+ for (; n > 0 && Ze(this.elements[n - 1]); )
7504
7504
  n--;
7505
7505
  let r = e;
7506
- for (; r < this.elements.length && Ye(this.elements[r]); )
7506
+ for (; r < this.elements.length && Ze(this.elements[r]); )
7507
7507
  r++;
7508
7508
  return new P(n, r);
7509
7509
  }
7510
7510
  /** fooBar has the two sub-words foo and bar */
7511
7511
  findSubWordContaining(e) {
7512
- if (e < 0 || e >= this.elements.length || !Ye(this.elements[e]))
7512
+ if (e < 0 || e >= this.elements.length || !Ze(this.elements[e]))
7513
7513
  return;
7514
7514
  let n = e;
7515
- for (; n > 0 && Ye(this.elements[n - 1]) && !As(this.elements[n]); )
7515
+ for (; n > 0 && Ze(this.elements[n - 1]) && !As(this.elements[n]); )
7516
7516
  n--;
7517
7517
  let r = e;
7518
- for (; r < this.elements.length && Ye(this.elements[r]) && !As(this.elements[r]); )
7518
+ for (; r < this.elements.length && Ze(this.elements[r]) && !As(this.elements[r]); )
7519
7519
  r++;
7520
7520
  return new P(n, r);
7521
7521
  }
@@ -7526,11 +7526,11 @@ class jt {
7526
7526
  return this.elements[e] === this.elements[n];
7527
7527
  }
7528
7528
  extendToFullLines(e) {
7529
- const n = at(this.firstElementOffsetByLineIdx, (s) => s <= e.start) ?? 0, r = Do(this.firstElementOffsetByLineIdx, (s) => e.endExclusive <= s) ?? this.elements.length;
7529
+ const n = ot(this.firstElementOffsetByLineIdx, (s) => s <= e.start) ?? 0, r = Do(this.firstElementOffsetByLineIdx, (s) => e.endExclusive <= s) ?? this.elements.length;
7530
7530
  return new P(n, r);
7531
7531
  }
7532
7532
  }
7533
- function Ye(t) {
7533
+ function Ze(t) {
7534
7534
  return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57;
7535
7535
  }
7536
7536
  function As(t) {
@@ -7571,76 +7571,76 @@ function Zo(t, e) {
7571
7571
  return n;
7572
7572
  }
7573
7573
  function Ko(t, e, n, r) {
7574
- const s = [], i = t.filter((u) => u.modified.isEmpty && u.original.length >= 3).map((u) => new _t(u.original, e, u)), a = new Set(t.filter((u) => u.original.isEmpty && u.modified.length >= 3).map((u) => new _t(u.modified, n, u))), l = /* @__PURE__ */ new Set();
7574
+ const s = [], i = t.filter((u) => u.modified.isEmpty && u.original.length >= 3).map((u) => new Nt(u.original, e, u)), a = new Set(t.filter((u) => u.original.isEmpty && u.modified.length >= 3).map((u) => new Nt(u.modified, n, u))), l = /* @__PURE__ */ new Set();
7575
7575
  for (const u of i) {
7576
7576
  let c = -1, h;
7577
7577
  for (const f of a) {
7578
7578
  const m = u.computeSimilarity(f);
7579
7579
  m > c && (c = m, h = f);
7580
7580
  }
7581
- if (c > 0.9 && h && (a.delete(h), s.push(new de(u.range, h.range)), l.add(u.source), l.add(h.source)), !r.isValid())
7581
+ if (c > 0.9 && h && (a.delete(h), s.push(new pe(u.range, h.range)), l.add(u.source), l.add(h.source)), !r.isValid())
7582
7582
  return { moves: s, excludedChanges: l };
7583
7583
  }
7584
7584
  return { moves: s, excludedChanges: l };
7585
7585
  }
7586
7586
  function el(t, e, n, r, s, i) {
7587
- const a = [], l = new xo();
7587
+ const a = [], l = new yo();
7588
7588
  for (const m of t)
7589
7589
  for (let p = m.original.startLineNumber; p < m.original.endLineNumberExclusive - 2; p++) {
7590
7590
  const d = `${e[p - 1]}:${e[p + 1 - 1]}:${e[p + 2 - 1]}`;
7591
7591
  l.add(d, { range: new V(p, p + 3) });
7592
7592
  }
7593
7593
  const u = [];
7594
- t.sort(nt((m) => m.modified.startLineNumber, mt));
7594
+ t.sort(rt((m) => m.modified.startLineNumber, dt));
7595
7595
  for (const m of t) {
7596
7596
  let p = [];
7597
7597
  for (let d = m.modified.startLineNumber; d < m.modified.endLineNumberExclusive - 2; d++) {
7598
- const g = `${n[d - 1]}:${n[d + 1 - 1]}:${n[d + 2 - 1]}`, w = new V(d, d + 3), x = [];
7598
+ const g = `${n[d - 1]}:${n[d + 1 - 1]}:${n[d + 2 - 1]}`, w = new V(d, d + 3), y = [];
7599
7599
  l.forEach(g, ({ range: _ }) => {
7600
7600
  for (const A of p)
7601
7601
  if (A.originalLineRange.endLineNumberExclusive + 1 === _.endLineNumberExclusive && A.modifiedLineRange.endLineNumberExclusive + 1 === w.endLineNumberExclusive) {
7602
- A.originalLineRange = new V(A.originalLineRange.startLineNumber, _.endLineNumberExclusive), A.modifiedLineRange = new V(A.modifiedLineRange.startLineNumber, w.endLineNumberExclusive), x.push(A);
7602
+ A.originalLineRange = new V(A.originalLineRange.startLineNumber, _.endLineNumberExclusive), A.modifiedLineRange = new V(A.modifiedLineRange.startLineNumber, w.endLineNumberExclusive), y.push(A);
7603
7603
  return;
7604
7604
  }
7605
7605
  const L = {
7606
7606
  modifiedLineRange: w,
7607
7607
  originalLineRange: _
7608
7608
  };
7609
- u.push(L), x.push(L);
7610
- }), p = x;
7609
+ u.push(L), y.push(L);
7610
+ }), p = y;
7611
7611
  }
7612
7612
  if (!i.isValid())
7613
7613
  return [];
7614
7614
  }
7615
- u.sort(Io(nt((m) => m.modifiedLineRange.length, mt)));
7615
+ u.sort(Io(rt((m) => m.modifiedLineRange.length, dt)));
7616
7616
  const c = new _e(), h = new _e();
7617
7617
  for (const m of u) {
7618
7618
  const p = m.modifiedLineRange.startLineNumber - m.originalLineRange.startLineNumber, d = c.subtractFrom(m.modifiedLineRange), g = h.subtractFrom(m.originalLineRange).getWithDelta(p), w = d.getIntersection(g);
7619
- for (const x of w.ranges) {
7620
- if (x.length < 3)
7619
+ for (const y of w.ranges) {
7620
+ if (y.length < 3)
7621
7621
  continue;
7622
- const _ = x, L = x.delta(-p);
7623
- a.push(new de(L, _)), c.addRange(_), h.addRange(L);
7622
+ const _ = y, L = y.delta(-p);
7623
+ a.push(new pe(L, _)), c.addRange(_), h.addRange(L);
7624
7624
  }
7625
7625
  }
7626
- a.sort(nt((m) => m.original.startLineNumber, mt));
7626
+ a.sort(rt((m) => m.original.startLineNumber, dt));
7627
7627
  const f = new en(t);
7628
7628
  for (let m = 0; m < a.length; m++) {
7629
- const p = a[m], d = f.findLastMonotonous((O) => O.original.startLineNumber <= p.original.startLineNumber), g = at(t, (O) => O.modified.startLineNumber <= p.modified.startLineNumber), w = Math.max(p.original.startLineNumber - d.original.startLineNumber, p.modified.startLineNumber - g.modified.startLineNumber), x = f.findLastMonotonous((O) => O.original.startLineNumber < p.original.endLineNumberExclusive), _ = at(t, (O) => O.modified.startLineNumber < p.modified.endLineNumberExclusive), L = Math.max(x.original.endLineNumberExclusive - p.original.endLineNumberExclusive, _.modified.endLineNumberExclusive - p.modified.endLineNumberExclusive);
7629
+ const p = a[m], d = f.findLastMonotonous((O) => O.original.startLineNumber <= p.original.startLineNumber), g = ot(t, (O) => O.modified.startLineNumber <= p.modified.startLineNumber), w = Math.max(p.original.startLineNumber - d.original.startLineNumber, p.modified.startLineNumber - g.modified.startLineNumber), y = f.findLastMonotonous((O) => O.original.startLineNumber < p.original.endLineNumberExclusive), _ = ot(t, (O) => O.modified.startLineNumber < p.modified.endLineNumberExclusive), L = Math.max(y.original.endLineNumberExclusive - p.original.endLineNumberExclusive, _.modified.endLineNumberExclusive - p.modified.endLineNumberExclusive);
7630
7630
  let A;
7631
7631
  for (A = 0; A < w; A++) {
7632
- const O = p.original.startLineNumber - A - 1, y = p.modified.startLineNumber - A - 1;
7633
- if (O > r.length || y > s.length || c.contains(y) || h.contains(O) || !Ps(r[O - 1], s[y - 1], i))
7632
+ const O = p.original.startLineNumber - A - 1, x = p.modified.startLineNumber - A - 1;
7633
+ if (O > r.length || x > s.length || c.contains(x) || h.contains(O) || !Ps(r[O - 1], s[x - 1], i))
7634
7634
  break;
7635
7635
  }
7636
7636
  A > 0 && (h.addRange(new V(p.original.startLineNumber - A, p.original.startLineNumber)), c.addRange(new V(p.modified.startLineNumber - A, p.modified.startLineNumber)));
7637
7637
  let I;
7638
7638
  for (I = 0; I < L; I++) {
7639
- const O = p.original.endLineNumberExclusive + I, y = p.modified.endLineNumberExclusive + I;
7640
- if (O > r.length || y > s.length || c.contains(y) || h.contains(O) || !Ps(r[O - 1], s[y - 1], i))
7639
+ const O = p.original.endLineNumberExclusive + I, x = p.modified.endLineNumberExclusive + I;
7640
+ if (O > r.length || x > s.length || c.contains(x) || h.contains(O) || !Ps(r[O - 1], s[x - 1], i))
7641
7641
  break;
7642
7642
  }
7643
- I > 0 && (h.addRange(new V(p.original.endLineNumberExclusive, p.original.endLineNumberExclusive + I)), c.addRange(new V(p.modified.endLineNumberExclusive, p.modified.endLineNumberExclusive + I))), (A > 0 || I > 0) && (a[m] = new de(new V(p.original.startLineNumber - A, p.original.endLineNumberExclusive + I), new V(p.modified.startLineNumber - A, p.modified.endLineNumberExclusive + I)));
7643
+ I > 0 && (h.addRange(new V(p.original.endLineNumberExclusive, p.original.endLineNumberExclusive + I)), c.addRange(new V(p.modified.endLineNumberExclusive, p.modified.endLineNumberExclusive + I))), (A > 0 || I > 0) && (a[m] = new pe(new V(p.original.startLineNumber - A, p.original.endLineNumberExclusive + I), new V(p.modified.startLineNumber - A, p.modified.endLineNumberExclusive + I)));
7644
7644
  }
7645
7645
  return a;
7646
7646
  }
@@ -7668,7 +7668,7 @@ function Ps(t, e, n) {
7668
7668
  function tl(t) {
7669
7669
  if (t.length === 0)
7670
7670
  return t;
7671
- t.sort(nt((n) => n.original.startLineNumber, mt));
7671
+ t.sort(rt((n) => n.original.startLineNumber, dt));
7672
7672
  const e = [t[0]];
7673
7673
  for (let n = 1; n < t.length; n++) {
7674
7674
  const r = e[e.length - 1], s = t[n], i = s.original.startLineNumber - r.original.endLineNumberExclusive, a = s.modified.startLineNumber - r.modified.endLineNumberExclusive;
@@ -7683,7 +7683,7 @@ function tl(t) {
7683
7683
  function nl(t, e) {
7684
7684
  const n = new en(t);
7685
7685
  return e = e.filter((r) => {
7686
- const s = n.findLastMonotonous((l) => l.original.startLineNumber < r.original.endLineNumberExclusive) || new de(new V(1, 1), new V(1, 1)), i = at(t, (l) => l.modified.startLineNumber < r.modified.endLineNumberExclusive);
7686
+ const s = n.findLastMonotonous((l) => l.original.startLineNumber < r.original.endLineNumberExclusive) || new pe(new V(1, 1), new V(1, 1)), i = ot(t, (l) => l.modified.startLineNumber < r.modified.endLineNumberExclusive);
7687
7687
  return s !== i;
7688
7688
  }), e;
7689
7689
  }
@@ -7780,18 +7780,18 @@ function $s(t, e, n, r, s = !1) {
7780
7780
  return;
7781
7781
  let d = new Y(m, p);
7782
7782
  const g = d.intersect(f);
7783
- let w = g.seq1Range.length, x = g.seq2Range.length;
7783
+ let w = g.seq1Range.length, y = g.seq2Range.length;
7784
7784
  for (; i.length > 0; ) {
7785
7785
  const _ = i[0];
7786
7786
  if (!(_.seq1Range.intersects(d.seq1Range) || _.seq2Range.intersects(d.seq2Range)))
7787
7787
  break;
7788
- const A = r(t, _.seq1Range.start), I = r(e, _.seq2Range.start), O = new Y(A, I), y = O.intersect(_);
7789
- if (w += y.seq1Range.length, x += y.seq2Range.length, d = d.join(O), d.seq1Range.endExclusive >= _.seq1Range.endExclusive)
7788
+ const A = r(t, _.seq1Range.start), I = r(e, _.seq2Range.start), O = new Y(A, I), x = O.intersect(_);
7789
+ if (w += x.seq1Range.length, y += x.seq2Range.length, d = d.join(O), d.seq1Range.endExclusive >= _.seq1Range.endExclusive)
7790
7790
  i.shift();
7791
7791
  else
7792
7792
  break;
7793
7793
  }
7794
- (s && w + x < d.seq1Range.length + d.seq2Range.length || w + x < (d.seq1Range.length + d.seq2Range.length) * 2 / 3) && a.push(d), l = d.getEndExclusives();
7794
+ (s && w + y < d.seq1Range.length + d.seq2Range.length || w + y < (d.seq1Range.length + d.seq2Range.length) * 2 / 3) && a.push(d), l = d.getEndExclusives();
7795
7795
  }
7796
7796
  for (; i.length > 0; ) {
7797
7797
  const h = i.shift();
@@ -7849,11 +7849,11 @@ function ol(t, e, n) {
7849
7849
  const _ = t.getText(w).trim();
7850
7850
  if (_.length > 20 || _.split(/\r\n|\r|\n/).length > 1)
7851
7851
  return !1;
7852
- const L = t.countLinesIn(d.seq1Range), A = d.seq1Range.length, I = e.countLinesIn(d.seq2Range), O = d.seq2Range.length, y = t.countLinesIn(g.seq1Range), v = g.seq1Range.length, S = e.countLinesIn(g.seq2Range), B = g.seq2Range.length, W = 130;
7852
+ const L = t.countLinesIn(d.seq1Range), A = d.seq1Range.length, I = e.countLinesIn(d.seq2Range), O = d.seq2Range.length, x = t.countLinesIn(g.seq1Range), v = g.seq1Range.length, S = e.countLinesIn(g.seq2Range), B = g.seq2Range.length, W = 130;
7853
7853
  function D(R) {
7854
7854
  return Math.min(R, W);
7855
7855
  }
7856
- return Math.pow(Math.pow(D(L * 40 + A), 1.5) + Math.pow(D(I * 40 + O), 1.5), 1.5) + Math.pow(Math.pow(D(y * 40 + v), 1.5) + Math.pow(D(S * 40 + B), 1.5), 1.5) > (W ** 1.5) ** 1.5 * 1.3;
7856
+ return Math.pow(Math.pow(D(L * 40 + A), 1.5) + Math.pow(D(I * 40 + O), 1.5), 1.5) + Math.pow(Math.pow(D(x * 40 + v), 1.5) + Math.pow(D(S * 40 + B), 1.5), 1.5) > (W ** 1.5) ** 1.5 * 1.3;
7857
7857
  };
7858
7858
  var l = m;
7859
7859
  const h = r[c], f = u[u.length - 1];
@@ -7871,8 +7871,8 @@ function ol(t, e, n) {
7871
7871
  m(d) && (f = f.deltaStart(-d.length));
7872
7872
  const g = t.getText(new P(c.seq1Range.endExclusive, p.endExclusive));
7873
7873
  m(g) && (f = f.deltaEnd(g.length));
7874
- const w = Y.fromOffsetPairs(u ? u.getEndExclusives() : Le.zero, h ? h.getStarts() : Le.max), x = f.intersect(w);
7875
- a.length > 0 && x.getStarts().equals(a[a.length - 1].getEndExclusives()) ? a[a.length - 1] = a[a.length - 1].join(x) : a.push(x);
7874
+ const w = Y.fromOffsetPairs(u ? u.getEndExclusives() : Le.zero, h ? h.getStarts() : Le.max), y = f.intersect(w);
7875
+ a.length > 0 && y.getStarts().equals(a[a.length - 1].getEndExclusives()) ? a[a.length - 1] = a[a.length - 1].join(y) : a.push(y);
7876
7876
  }), a;
7877
7877
  }
7878
7878
  class Bs {
@@ -7908,26 +7908,26 @@ class ll {
7908
7908
  this.dynamicProgrammingDiffing = new Go(), this.myersDiffingAlgorithm = new Li();
7909
7909
  }
7910
7910
  computeDiff(e, n, r) {
7911
- if (e.length <= 1 && Ao(e, n, (y, v) => y === v))
7912
- return new ft([], [], !1);
7911
+ if (e.length <= 1 && Ao(e, n, (x, v) => x === v))
7912
+ return new mt([], [], !1);
7913
7913
  if (e.length === 1 && e[0].length === 0 || n.length === 1 && n[0].length === 0)
7914
- return new ft([
7915
- new Ee(new V(1, e.length + 1), new V(1, n.length + 1), [
7916
- new me(new C(1, 1, e.length, e[e.length - 1].length + 1), new C(1, 1, n.length, n[n.length - 1].length + 1))
7914
+ return new mt([
7915
+ new Ae(new V(1, e.length + 1), new V(1, n.length + 1), [
7916
+ new ge(new C(1, 1, e.length, e[e.length - 1].length + 1), new C(1, 1, n.length, n[n.length - 1].length + 1))
7917
7917
  ])
7918
7918
  ], [], !1);
7919
7919
  const s = r.maxComputationTimeMs === 0 ? Rt.instance : new jo(r.maxComputationTimeMs), i = !r.ignoreTrimWhitespace, a = /* @__PURE__ */ new Map();
7920
- function l(y) {
7921
- let v = a.get(y);
7922
- return v === void 0 && (v = a.size, a.set(y, v)), v;
7920
+ function l(x) {
7921
+ let v = a.get(x);
7922
+ return v === void 0 && (v = a.size, a.set(x, v)), v;
7923
7923
  }
7924
- const u = e.map((y) => l(y.trim())), c = n.map((y) => l(y.trim())), h = new Bs(u, e), f = new Bs(c, n), m = h.length + f.length < 1700 ? this.dynamicProgrammingDiffing.compute(h, f, s, (y, v) => e[y] === n[v] ? n[v].length === 0 ? 0.1 : 1 + Math.log(1 + n[v].length) : 0.99) : this.myersDiffingAlgorithm.compute(h, f, s);
7924
+ const u = e.map((x) => l(x.trim())), c = n.map((x) => l(x.trim())), h = new Bs(u, e), f = new Bs(c, n), m = h.length + f.length < 1700 ? this.dynamicProgrammingDiffing.compute(h, f, s, (x, v) => e[x] === n[v] ? n[v].length === 0 ? 0.1 : 1 + Math.log(1 + n[v].length) : 0.99) : this.myersDiffingAlgorithm.compute(h, f, s);
7925
7925
  let p = m.diffs, d = m.hitTimeout;
7926
7926
  p = Fs(h, f, p), p = al(h, f, p);
7927
- const g = [], w = (y) => {
7927
+ const g = [], w = (x) => {
7928
7928
  if (i)
7929
- for (let v = 0; v < y; v++) {
7930
- const S = x + v, B = _ + v;
7929
+ for (let v = 0; v < x; v++) {
7930
+ const S = y + v, B = _ + v;
7931
7931
  if (e[S] !== n[B]) {
7932
7932
  const W = this.refineDiff(e, n, new Y(new P(S, S + 1), new P(B, B + 1)), s, i, r);
7933
7933
  for (const D of W.mappings)
@@ -7936,21 +7936,21 @@ class ll {
7936
7936
  }
7937
7937
  }
7938
7938
  };
7939
- let x = 0, _ = 0;
7940
- for (const y of p) {
7941
- xt(() => y.seq1Range.start - x === y.seq2Range.start - _);
7942
- const v = y.seq1Range.start - x;
7943
- w(v), x = y.seq1Range.endExclusive, _ = y.seq2Range.endExclusive;
7944
- const S = this.refineDiff(e, n, y, s, i, r);
7939
+ let y = 0, _ = 0;
7940
+ for (const x of p) {
7941
+ xt(() => x.seq1Range.start - y === x.seq2Range.start - _);
7942
+ const v = x.seq1Range.start - y;
7943
+ w(v), y = x.seq1Range.endExclusive, _ = x.seq2Range.endExclusive;
7944
+ const S = this.refineDiff(e, n, x, s, i, r);
7945
7945
  S.hitTimeout && (d = !0);
7946
7946
  for (const B of S.mappings)
7947
7947
  g.push(B);
7948
7948
  }
7949
- w(e.length - x);
7949
+ w(e.length - y);
7950
7950
  const L = new At(e), A = new At(n), I = $n(g, L, A);
7951
7951
  let O = [];
7952
7952
  return r.computeMoves && (O = this.computeMoves(I, e, n, u, c, s, i, r)), xt(() => {
7953
- function y(S, B) {
7953
+ function x(S, B) {
7954
7954
  if (S.lineNumber < 1 || S.lineNumber > B.length)
7955
7955
  return !1;
7956
7956
  const W = B[S.lineNumber - 1];
@@ -7963,13 +7963,13 @@ class ll {
7963
7963
  if (!S.innerChanges)
7964
7964
  return !1;
7965
7965
  for (const B of S.innerChanges)
7966
- if (!(y(B.modifiedRange.getStartPosition(), n) && y(B.modifiedRange.getEndPosition(), n) && y(B.originalRange.getStartPosition(), e) && y(B.originalRange.getEndPosition(), e)))
7966
+ if (!(x(B.modifiedRange.getStartPosition(), n) && x(B.modifiedRange.getEndPosition(), n) && x(B.originalRange.getStartPosition(), e) && x(B.originalRange.getEndPosition(), e)))
7967
7967
  return !1;
7968
7968
  if (!v(S.modified, n) || !v(S.original, e))
7969
7969
  return !1;
7970
7970
  }
7971
7971
  return !0;
7972
- }), new ft(I, O, d);
7972
+ }), new mt(I, O, d);
7973
7973
  }
7974
7974
  computeMoves(e, n, r, s, i, a, l, u) {
7975
7975
  return Yo(e, n, r, s, i, a).map((f) => {
@@ -7981,13 +7981,13 @@ class ll {
7981
7981
  const u = ul(r).toRangeMapping2(e, n), c = new jt(e, u.originalRange, i), h = new jt(n, u.modifiedRange, i), f = c.length + h.length < 500 ? this.dynamicProgrammingDiffing.compute(c, h, s) : this.myersDiffingAlgorithm.compute(c, h, s);
7982
7982
  let m = f.diffs;
7983
7983
  return m = Fs(c, h, m), m = $s(c, h, m, (d, g) => d.findWordContaining(g)), a.extendToSubwords && (m = $s(c, h, m, (d, g) => d.findSubWordContaining(g), !0)), m = sl(c, h, m), m = ol(c, h, m), {
7984
- mappings: m.map((d) => new me(c.translateRange(d.seq1Range), h.translateRange(d.seq2Range))),
7984
+ mappings: m.map((d) => new ge(c.translateRange(d.seq1Range), h.translateRange(d.seq2Range))),
7985
7985
  hitTimeout: f.hitTimeout
7986
7986
  };
7987
7987
  }
7988
7988
  }
7989
7989
  function ul(t) {
7990
- return new de(new V(t.seq1Range.start + 1, t.seq1Range.endExclusive + 1), new V(t.seq2Range.start + 1, t.seq2Range.endExclusive + 1));
7990
+ return new pe(new V(t.seq1Range.start + 1, t.seq1Range.endExclusive + 1), new V(t.seq2Range.start + 1, t.seq2Range.endExclusive + 1));
7991
7991
  }
7992
7992
  var $e;
7993
7993
  (function(t) {
@@ -8002,7 +8002,7 @@ class hl {
8002
8002
  this._preferredWebSchema = e;
8003
8003
  }
8004
8004
  get _remoteResourcesPath() {
8005
- return ie.join(this._serverRootPath, $e.vscodeRemoteResource);
8005
+ return ae.join(this._serverRootPath, $e.vscodeRemoteResource);
8006
8006
  }
8007
8007
  rewrite(e) {
8008
8008
  if (this._delegate)
@@ -8016,7 +8016,7 @@ class hl {
8016
8016
  r && r.indexOf(":") !== -1 && r.indexOf("[") === -1 && (r = `[${r}]`);
8017
8017
  const s = this._ports[n], i = this._connectionTokens[n];
8018
8018
  let a = `path=${encodeURIComponent(e.path)}`;
8019
- return typeof i == "string" && (a += `&${cl}=${encodeURIComponent(i)}`), ge.from({
8019
+ return typeof i == "string" && (a += `&${cl}=${encodeURIComponent(i)}`), be.from({
8020
8020
  scheme: ta ? this._preferredWebSchema : $e.vscodeRemoteResource,
8021
8021
  authority: `${r}:${s}`,
8022
8022
  path: this._remoteResourcesPath,
@@ -8063,14 +8063,14 @@ class Gt {
8063
8063
  );
8064
8064
  }
8065
8065
  toUri(e) {
8066
- if (ge.isUri(e))
8066
+ if (be.isUri(e))
8067
8067
  return e;
8068
8068
  if (globalThis._VSCODE_FILE_ROOT) {
8069
8069
  const n = globalThis._VSCODE_FILE_ROOT;
8070
8070
  if (/^\w[\w\d+.-]*:\/\//.test(n))
8071
- return ge.joinPath(ge.parse(n, !0), e);
8071
+ return be.joinPath(be.parse(n, !0), e);
8072
8072
  const r = Ka(n, e);
8073
- return ge.file(r);
8073
+ return be.file(r);
8074
8074
  }
8075
8075
  throw new Error("Cannot determine URI for module id!");
8076
8076
  }
@@ -8087,7 +8087,7 @@ var qs;
8087
8087
  const n = "vscode-coi";
8088
8088
  function r(i) {
8089
8089
  let a;
8090
- typeof i == "string" ? a = new URL(i).searchParams : i instanceof URL ? a = i.searchParams : ge.isUri(i) && (a = new URL(i.toString(!0)).searchParams);
8090
+ typeof i == "string" ? a = new URL(i).searchParams : i instanceof URL ? a = i.searchParams : be.isUri(i) && (a = new URL(i.toString(!0)).searchParams);
8091
8091
  const l = a?.get(n);
8092
8092
  if (l)
8093
8093
  return e.get(l);
@@ -8259,7 +8259,7 @@ class wl {
8259
8259
  return new P(this.replaceRange.start, this.replaceRange.start + this.getNewLength());
8260
8260
  }
8261
8261
  }
8262
- class xl extends bl {
8262
+ class yl extends bl {
8263
8263
  apply(e) {
8264
8264
  const n = [];
8265
8265
  let r = 0;
@@ -8276,7 +8276,7 @@ class xl extends bl {
8276
8276
  return new Oe(n);
8277
8277
  }
8278
8278
  }
8279
- class yl extends wl {
8279
+ class xl extends wl {
8280
8280
  constructor(e, n) {
8281
8281
  super(e), this.newText = n;
8282
8282
  }
@@ -8312,7 +8312,7 @@ class yl extends wl {
8312
8312
  };
8313
8313
  }
8314
8314
  }
8315
- class Oe extends xl {
8315
+ class Oe extends yl {
8316
8316
  static {
8317
8317
  this.empty = new Oe([]);
8318
8318
  }
@@ -8334,7 +8334,7 @@ class Oe extends xl {
8334
8334
  return new Oe(e);
8335
8335
  }
8336
8336
  }
8337
- class Be extends yl {
8337
+ class Be extends xl {
8338
8338
  static insert(e, n) {
8339
8339
  return new Be(P.emptyAt(e), n);
8340
8340
  }
@@ -8355,8 +8355,8 @@ Bo({
8355
8355
  StringEdit: Oe,
8356
8356
  StringReplacement: Be,
8357
8357
  TextReplacement: ve,
8358
- TextEdit: Ht,
8359
- TextLength: ae
8358
+ TextEdit: zt,
8359
+ TextLength: oe
8360
8360
  });
8361
8361
  let cn, hn, fn;
8362
8362
  function Us() {
@@ -8378,8 +8378,8 @@ class Ll {
8378
8378
  this._computer = e;
8379
8379
  }
8380
8380
  computeDiff(e, n, r) {
8381
- const s = new zt(e.join(`
8382
- `)), i = new zt(n.join(`
8381
+ const s = new Ht(e.join(`
8382
+ `)), i = new Ht(n.join(`
8383
8383
  `)), a = this._computer.computeDiff(s.value, i.value, {
8384
8384
  // TODO: this currently throws
8385
8385
  ignoreTrimWhitespace: !0,
@@ -8391,16 +8391,16 @@ class Ll {
8391
8391
  }), l = s.getTransformer(), u = i.getTransformer(), c = [];
8392
8392
  let h = 0;
8393
8393
  for (const p of a.edits.replacements) {
8394
- const d = p.range.start + h, g = d + p.newText.length, w = l.getRange(new P(p.range.start, p.range.endExclusive)), x = u.getRange(new P(d, g));
8395
- c.push(new me(w, x)), h += p.newText.length - (p.range.endExclusive - p.range.start);
8394
+ const d = p.range.start + h, g = d + p.newText.length, w = l.getRange(new P(p.range.start, p.range.endExclusive)), y = u.getRange(new P(d, g));
8395
+ c.push(new ge(w, y)), h += p.newText.length - (p.range.endExclusive - p.range.start);
8396
8396
  }
8397
8397
  const f = $n(c, s, i), m = [];
8398
8398
  if (r.computeMoves)
8399
8399
  for (const p of a.moves) {
8400
- const d = l.getPosition(p.range.original.start), g = l.getPosition(p.range.original.endExclusive), w = u.getPosition(p.range.modified.start), x = u.getPosition(p.range.modified.endExclusive), _ = new V(d.lineNumber, g.lineNumber), L = new V(w.lineNumber, x.lineNumber);
8401
- m.push(new wi(new de(_, L), []));
8400
+ const d = l.getPosition(p.range.original.start), g = l.getPosition(p.range.original.endExclusive), w = u.getPosition(p.range.modified.start), y = u.getPosition(p.range.modified.endExclusive), _ = new V(d.lineNumber, g.lineNumber), L = new V(w.lineNumber, y.lineNumber);
8401
+ m.push(new wi(new pe(_, L), []));
8402
8402
  }
8403
- return new ft(f, m, a.hitTimeout);
8403
+ return new mt(f, m, a.hitTimeout);
8404
8404
  }
8405
8405
  }
8406
8406
  const Tt = {
@@ -8475,7 +8475,7 @@ class we {
8475
8475
  return new b(Math.round(a * 255), Math.round(l * 255), Math.round(u * 255), i);
8476
8476
  }
8477
8477
  }
8478
- class et {
8478
+ class tt {
8479
8479
  constructor(e, n, r, s) {
8480
8480
  this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = Ve(Math.max(Math.min(1, n), 0), 3), this.v = Ve(Math.max(Math.min(1, r), 0), 3), this.a = Ve(Math.max(Math.min(1, s), 0), 3);
8481
8481
  }
@@ -8486,7 +8486,7 @@ class et {
8486
8486
  static fromRGBA(e) {
8487
8487
  const n = e.r / 255, r = e.g / 255, s = e.b / 255, i = Math.max(n, r, s), a = Math.min(n, r, s), l = i - a, u = i === 0 ? 0 : l / i;
8488
8488
  let c;
8489
- return l === 0 ? c = 0 : i === n ? c = ((r - s) / l % 6 + 6) % 6 : i === r ? c = (s - n) / l + 2 : c = (n - r) / l + 4, new et(Math.round(c * 60), u, i, e.a);
8489
+ return l === 0 ? c = 0 : i === n ? c = ((r - s) / l % 6 + 6) % 6 : i === r ? c = (s - n) / l + 2 : c = (n - r) / l + 4, new tt(Math.round(c * 60), u, i, e.a);
8490
8490
  }
8491
8491
  // from http://www.rapidtables.com/convert/color/hsv-to-rgb.htm
8492
8492
  static toRGBA(e) {
@@ -8506,7 +8506,7 @@ class J {
8506
8506
  return this._hsla ? this._hsla : we.fromRGBA(this.rgba);
8507
8507
  }
8508
8508
  get hsva() {
8509
- return this._hsva ? this._hsva : et.fromRGBA(this.rgba);
8509
+ return this._hsva ? this._hsva : tt.fromRGBA(this.rgba);
8510
8510
  }
8511
8511
  constructor(e) {
8512
8512
  if (e)
@@ -8514,14 +8514,14 @@ class J {
8514
8514
  this.rgba = e;
8515
8515
  else if (e instanceof we)
8516
8516
  this._hsla = e, this.rgba = we.toRGBA(e);
8517
- else if (e instanceof et)
8518
- this._hsva = e, this.rgba = et.toRGBA(e);
8517
+ else if (e instanceof tt)
8518
+ this._hsva = e, this.rgba = tt.toRGBA(e);
8519
8519
  else
8520
8520
  throw new Error("Invalid color ctor argument");
8521
8521
  else throw new Error("Color needs a value");
8522
8522
  }
8523
8523
  equals(e) {
8524
- return !!e && b.equals(this.rgba, e.rgba) && we.equals(this.hsla, e.hsla) && et.equals(this.hsva, e.hsva);
8524
+ return !!e && b.equals(this.rgba, e.rgba) && we.equals(this.hsla, e.hsla) && tt.equals(this.hsva, e.hsva);
8525
8525
  }
8526
8526
  /**
8527
8527
  * http://www.w3.org/TR/WCAG20/#relativeluminancedef
@@ -8674,15 +8674,15 @@ class J {
8674
8674
  const w = g.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);
8675
8675
  if (!w)
8676
8676
  throw new Error("Invalid color format " + g);
8677
- const x = parseInt(w.groups?.r ?? "0"), _ = parseInt(w.groups?.g ?? "0"), L = parseInt(w.groups?.b ?? "0"), A = parseFloat(w.groups?.a ?? "0");
8678
- return new t(new b(x, _, L, A));
8677
+ const y = parseInt(w.groups?.r ?? "0"), _ = parseInt(w.groups?.g ?? "0"), L = parseInt(w.groups?.b ?? "0"), A = parseFloat(w.groups?.a ?? "0");
8678
+ return new t(new b(y, _, L, A));
8679
8679
  }
8680
8680
  if (g.startsWith("rgb(")) {
8681
8681
  const w = g.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);
8682
8682
  if (!w)
8683
8683
  throw new Error("Invalid color format " + g);
8684
- const x = parseInt(w.groups?.r ?? "0"), _ = parseInt(w.groups?.g ?? "0"), L = parseInt(w.groups?.b ?? "0");
8685
- return new t(new b(x, _, L));
8684
+ const y = parseInt(w.groups?.r ?? "0"), _ = parseInt(w.groups?.g ?? "0"), L = parseInt(w.groups?.b ?? "0");
8685
+ return new t(new b(y, _, L));
8686
8686
  }
8687
8687
  return m(g);
8688
8688
  }
@@ -8994,20 +8994,20 @@ class J {
8994
8994
  if (w === 0 || g.charCodeAt(0) !== 35)
8995
8995
  return null;
8996
8996
  if (w === 7) {
8997
- const x = 16 * d(g.charCodeAt(1)) + d(g.charCodeAt(2)), _ = 16 * d(g.charCodeAt(3)) + d(g.charCodeAt(4)), L = 16 * d(g.charCodeAt(5)) + d(g.charCodeAt(6));
8998
- return new t(new b(x, _, L, 1));
8997
+ const y = 16 * d(g.charCodeAt(1)) + d(g.charCodeAt(2)), _ = 16 * d(g.charCodeAt(3)) + d(g.charCodeAt(4)), L = 16 * d(g.charCodeAt(5)) + d(g.charCodeAt(6));
8998
+ return new t(new b(y, _, L, 1));
8999
8999
  }
9000
9000
  if (w === 9) {
9001
- const x = 16 * d(g.charCodeAt(1)) + d(g.charCodeAt(2)), _ = 16 * d(g.charCodeAt(3)) + d(g.charCodeAt(4)), L = 16 * d(g.charCodeAt(5)) + d(g.charCodeAt(6)), A = 16 * d(g.charCodeAt(7)) + d(g.charCodeAt(8));
9002
- return new t(new b(x, _, L, A / 255));
9001
+ const y = 16 * d(g.charCodeAt(1)) + d(g.charCodeAt(2)), _ = 16 * d(g.charCodeAt(3)) + d(g.charCodeAt(4)), L = 16 * d(g.charCodeAt(5)) + d(g.charCodeAt(6)), A = 16 * d(g.charCodeAt(7)) + d(g.charCodeAt(8));
9002
+ return new t(new b(y, _, L, A / 255));
9003
9003
  }
9004
9004
  if (w === 4) {
9005
- const x = d(g.charCodeAt(1)), _ = d(g.charCodeAt(2)), L = d(g.charCodeAt(3));
9006
- return new t(new b(16 * x + x, 16 * _ + _, 16 * L + L));
9005
+ const y = d(g.charCodeAt(1)), _ = d(g.charCodeAt(2)), L = d(g.charCodeAt(3));
9006
+ return new t(new b(16 * y + y, 16 * _ + _, 16 * L + L));
9007
9007
  }
9008
9008
  if (w === 5) {
9009
- const x = d(g.charCodeAt(1)), _ = d(g.charCodeAt(2)), L = d(g.charCodeAt(3)), A = d(g.charCodeAt(4));
9010
- return new t(new b(16 * x + x, 16 * _ + _, 16 * L + L, (16 * A + A) / 255));
9009
+ const y = d(g.charCodeAt(1)), _ = d(g.charCodeAt(2)), L = d(g.charCodeAt(3)), A = d(g.charCodeAt(4));
9010
+ return new t(new b(16 * y + y, 16 * _ + _, 16 * L + L, (16 * A + A) / 255));
9011
9011
  }
9012
9012
  return null;
9013
9013
  }
@@ -9080,7 +9080,7 @@ function Zn(t, e, n, r) {
9080
9080
  alpha: r
9081
9081
  };
9082
9082
  }
9083
- function ct(t, e) {
9083
+ function ht(t, e) {
9084
9084
  const n = e.index, r = e[0].length;
9085
9085
  if (n === void 0)
9086
9086
  return;
@@ -9111,7 +9111,7 @@ function Ws(t, e, n) {
9111
9111
  color: Zn(i[0], i[1], i[2], n ? i[3] : 1)
9112
9112
  };
9113
9113
  }
9114
- function zs(t, e, n) {
9114
+ function Hs(t, e, n) {
9115
9115
  if (!t || e.length !== 1)
9116
9116
  return;
9117
9117
  const s = e[0].values(), i = _i(s), a = new J(new we(i[0], i[1] / 100, i[2] / 100, n ? i[3] : 1));
@@ -9120,11 +9120,11 @@ function zs(t, e, n) {
9120
9120
  color: Zn(a.rgba.r, a.rgba.g, a.rgba.b, a.rgba.a)
9121
9121
  };
9122
9122
  }
9123
- function ht(t, e) {
9123
+ function ft(t, e) {
9124
9124
  return typeof t == "string" ? [...t.matchAll(e)] : t.findMatches(e);
9125
9125
  }
9126
9126
  function Nl(t) {
9127
- const e = [], r = ht(t, /\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%\/]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);
9127
+ const e = [], r = ft(t, /\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%\/]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);
9128
9128
  if (r.length > 0)
9129
9129
  for (const s of r) {
9130
9130
  const i = s.filter((c) => c !== void 0), a = i[1], l = i[2];
@@ -9133,17 +9133,17 @@ function Nl(t) {
9133
9133
  let u;
9134
9134
  if (a === "rgb") {
9135
9135
  const c = /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;
9136
- u = Ws(ct(t, s), ht(l, c), !1);
9136
+ u = Ws(ht(t, s), ft(l, c), !1);
9137
9137
  } else if (a === "rgba") {
9138
9138
  const c = /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;
9139
- u = Ws(ct(t, s), ht(l, c), !0);
9139
+ u = Ws(ht(t, s), ft(l, c), !0);
9140
9140
  } else if (a === "hsl") {
9141
9141
  const c = /^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;
9142
- u = zs(ct(t, s), ht(l, c), !1);
9142
+ u = Hs(ht(t, s), ft(l, c), !1);
9143
9143
  } else if (a === "hsla") {
9144
9144
  const c = /^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;
9145
- u = zs(ct(t, s), ht(l, c), !0);
9146
- } else a === "#" && (u = _l(ct(t, s), a + l));
9145
+ u = Hs(ht(t, s), ft(l, c), !0);
9146
+ } else a === "#" && (u = _l(ht(t, s), a + l));
9147
9147
  u && e.push(u);
9148
9148
  }
9149
9149
  return e;
@@ -9151,7 +9151,7 @@ function Nl(t) {
9151
9151
  function Sl(t) {
9152
9152
  return !t || typeof t.getValue != "function" || typeof t.positionAt != "function" ? [] : Nl(t);
9153
9153
  }
9154
- const Cl = /^-+|-+$/g, Hs = 100, Rl = 5;
9154
+ const Cl = /^-+|-+$/g, zs = 100, Rl = 5;
9155
9155
  function kl(t, e) {
9156
9156
  let n = [];
9157
9157
  if (e.findRegionSectionHeaders && e.foldingRules?.markers) {
@@ -9186,11 +9186,11 @@ function Al(t, e) {
9186
9186
  const n = [], r = t.getLineCount();
9187
9187
  if (!e.markSectionHeaderRegex || e.markSectionHeaderRegex.trim() === "")
9188
9188
  return n;
9189
- const s = yo(e.markSectionHeaderRegex), i = new RegExp(e.markSectionHeaderRegex, `gdm${s ? "s" : ""}`);
9189
+ const s = xo(e.markSectionHeaderRegex), i = new RegExp(e.markSectionHeaderRegex, `gdm${s ? "s" : ""}`);
9190
9190
  if (pa(i))
9191
9191
  return n;
9192
- for (let a = 1; a <= r; a += Hs - Rl) {
9193
- const l = Math.min(a + Hs - 1, r), u = [];
9192
+ for (let a = 1; a <= r; a += zs - Rl) {
9193
+ const l = Math.min(a + zs - 1, r), u = [];
9194
9194
  for (let f = a; f <= l; f++)
9195
9195
  u.push(t.getLineContent(f));
9196
9196
  const c = u.join(`
@@ -9199,16 +9199,16 @@ function Al(t, e) {
9199
9199
  let h;
9200
9200
  for (; (h = i.exec(c)) !== null; ) {
9201
9201
  const f = c.substring(0, h.index), m = (f.match(/\n/g) || []).length, p = a + m, d = h[0].split(`
9202
- `), g = d.length, w = p + g - 1, x = f.lastIndexOf(`
9203
- `) + 1, _ = h.index - x + 1, L = d[d.length - 1], A = g === 1 ? _ + h[0].length : L.length + 1, I = {
9202
+ `), g = d.length, w = p + g - 1, y = f.lastIndexOf(`
9203
+ `) + 1, _ = h.index - y + 1, L = d[d.length - 1], A = g === 1 ? _ + h[0].length : L.length + 1, I = {
9204
9204
  startLineNumber: p,
9205
9205
  startColumn: _,
9206
9206
  endLineNumber: w,
9207
9207
  endColumn: A
9208
- }, O = (h.groups ?? {}).label ?? "", y = ((h.groups ?? {}).separator ?? "") !== "", v = {
9208
+ }, O = (h.groups ?? {}).label ?? "", x = ((h.groups ?? {}).separator ?? "") !== "", v = {
9209
9209
  range: I,
9210
9210
  text: O,
9211
- hasSeparatorLine: y,
9211
+ hasSeparatorLine: x,
9212
9212
  shouldBeInComments: !0
9213
9213
  };
9214
9214
  (v.text || v.hasSeparatorLine) && (n.length === 0 || n[n.length - 1].range.endLineNumber < v.range.startLineNumber) && n.push(v), i.lastIndex = h.index + h[0].length;
@@ -9307,7 +9307,7 @@ class Tl {
9307
9307
  }
9308
9308
  }
9309
9309
  }
9310
- class ue {
9310
+ class he {
9311
9311
  constructor(e, n) {
9312
9312
  this._onReturn = n, this._producerConsumer = new Tl(), this._iterator = {
9313
9313
  next: () => this._producerConsumer.consume(),
@@ -9331,22 +9331,22 @@ class ue {
9331
9331
  });
9332
9332
  }
9333
9333
  static fromArray(e) {
9334
- return new ue((n) => {
9334
+ return new he((n) => {
9335
9335
  n.emitMany(e);
9336
9336
  });
9337
9337
  }
9338
9338
  static fromPromise(e) {
9339
- return new ue(async (n) => {
9339
+ return new he(async (n) => {
9340
9340
  n.emitMany(await e);
9341
9341
  });
9342
9342
  }
9343
9343
  static fromPromisesResolveOrder(e) {
9344
- return new ue(async (n) => {
9344
+ return new he(async (n) => {
9345
9345
  await Promise.all(e.map(async (r) => n.emitOne(await r)));
9346
9346
  });
9347
9347
  }
9348
9348
  static merge(e) {
9349
- return new ue(async (n) => {
9349
+ return new he(async (n) => {
9350
9350
  await Promise.all(e.map(async (r) => {
9351
9351
  for await (const s of r)
9352
9352
  n.emitOne(s);
@@ -9354,10 +9354,10 @@ class ue {
9354
9354
  });
9355
9355
  }
9356
9356
  static {
9357
- this.EMPTY = ue.fromArray([]);
9357
+ this.EMPTY = he.fromArray([]);
9358
9358
  }
9359
9359
  static map(e, n) {
9360
- return new ue(async (r) => {
9360
+ return new he(async (r) => {
9361
9361
  for await (const s of e)
9362
9362
  r.emitOne(n(s));
9363
9363
  });
@@ -9374,26 +9374,26 @@ class ue {
9374
9374
  } finally {
9375
9375
  s.complete();
9376
9376
  }
9377
- }, a = new ue(async (u) => (n = u, i(), s.p)), l = new ue(async (u) => (r = u, i(), s.p));
9377
+ }, a = new he(async (u) => (n = u, i(), s.p)), l = new he(async (u) => (r = u, i(), s.p));
9378
9378
  return [a, l];
9379
9379
  }
9380
9380
  map(e) {
9381
- return ue.map(this, e);
9381
+ return he.map(this, e);
9382
9382
  }
9383
9383
  static coalesce(e) {
9384
- return ue.filter(e, (n) => !!n);
9384
+ return he.filter(e, (n) => !!n);
9385
9385
  }
9386
9386
  coalesce() {
9387
- return ue.coalesce(this);
9387
+ return he.coalesce(this);
9388
9388
  }
9389
9389
  static filter(e, n) {
9390
- return new ue(async (r) => {
9390
+ return new he(async (r) => {
9391
9391
  for await (const s of e)
9392
9392
  n(s) && r.emitOne(s);
9393
9393
  });
9394
9394
  }
9395
9395
  filter(e) {
9396
- return ue.filter(this, e);
9396
+ return he.filter(this, e);
9397
9397
  }
9398
9398
  _finishOk() {
9399
9399
  this._producerConsumer.hasFinalValue || this._producerConsumer.produceFinal({ ok: !0, value: { done: !0, value: void 0 } });
@@ -9410,15 +9410,15 @@ class Pl {
9410
9410
  this.values = e, this.prefixSum = new Uint32Array(e.length), this.prefixSumValidIndex = new Int32Array(1), this.prefixSumValidIndex[0] = -1;
9411
9411
  }
9412
9412
  insertValues(e, n) {
9413
- e = Qe(e);
9413
+ e = Je(e);
9414
9414
  const r = this.values, s = this.prefixSum, i = n.length;
9415
9415
  return i === 0 ? !1 : (this.values = new Uint32Array(r.length + i), this.values.set(r.subarray(0, e), 0), this.values.set(r.subarray(e), e + i), this.values.set(n, e), e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), this.prefixSum = new Uint32Array(this.values.length), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(s.subarray(0, this.prefixSumValidIndex[0] + 1)), !0);
9416
9416
  }
9417
9417
  setValue(e, n) {
9418
- return e = Qe(e), n = Qe(n), this.values[e] === n ? !1 : (this.values[e] = n, e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), !0);
9418
+ return e = Je(e), n = Je(n), this.values[e] === n ? !1 : (this.values[e] = n, e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), !0);
9419
9419
  }
9420
9420
  removeValues(e, n) {
9421
- e = Qe(e), n = Qe(n);
9421
+ e = Je(e), n = Je(n);
9422
9422
  const r = this.values, s = this.prefixSum;
9423
9423
  if (e >= r.length)
9424
9424
  return !1;
@@ -9433,7 +9433,7 @@ class Pl {
9433
9433
  * @returns `SUM(0 <= j <= index, values[j])`.
9434
9434
  */
9435
9435
  getPrefixSum(e) {
9436
- return e < 0 ? 0 : (e = Qe(e), this._getPrefixSum(e));
9436
+ return e < 0 ? 0 : (e = Je(e), this._getPrefixSum(e));
9437
9437
  }
9438
9438
  _getPrefixSum(e) {
9439
9439
  if (e <= this.prefixSumValidIndex[0])
@@ -9532,7 +9532,7 @@ class Dl {
9532
9532
  return Object.keys(this._models).forEach((n) => e.push(this._models[n])), e;
9533
9533
  }
9534
9534
  $acceptNewModel(e) {
9535
- this._models[e.url] = new $l(ge.parse(e.url), e.lines, e.EOL, e.versionId);
9535
+ this._models[e.url] = new $l(be.parse(e.url), e.lines, e.EOL, e.versionId);
9536
9536
  }
9537
9537
  $acceptModelChanged(e, n) {
9538
9538
  if (!this._models[e])
@@ -9652,7 +9652,7 @@ class $l extends Il {
9652
9652
  return s ? { lineNumber: n, column: r } : e;
9653
9653
  }
9654
9654
  }
9655
- class pt {
9655
+ class bt {
9656
9656
  constructor(e = null) {
9657
9657
  this._foreignModule = e, this._requestHandlerBrand = void 0, this._workerTextModelSyncServer = new Dl();
9658
9658
  }
@@ -9690,7 +9690,7 @@ class pt {
9690
9690
  if (!i || !a)
9691
9691
  return null;
9692
9692
  const l = await Bl(s);
9693
- return pt.computeDiff(i, a, r, l);
9693
+ return bt.computeDiff(i, a, r, l);
9694
9694
  }
9695
9695
  static computeDiff(e, n, r, s) {
9696
9696
  const i = e.getLinesContent(), a = n.getLinesContent(), l = s.computeDiff(i, a, r), u = l.changes.length > 0 ? !1 : this._modelsAreIdentical(e, n);
@@ -9755,17 +9755,17 @@ class pt {
9755
9755
  const f = s.getValueInRange(u);
9756
9756
  if (c = c.replace(/\r\n|\n|\r/g, s.eol), f === c)
9757
9757
  continue;
9758
- if (Math.max(c.length, f.length) > pt._diffLimit) {
9758
+ if (Math.max(c.length, f.length) > bt._diffLimit) {
9759
9759
  i.push({ range: u, text: c });
9760
9760
  continue;
9761
9761
  }
9762
9762
  const m = Fa(f, c, r), p = s.offsetAt(C.lift(u).getStartPosition());
9763
9763
  for (const d of m) {
9764
- const g = s.positionAt(p + d.originalStart), w = s.positionAt(p + d.originalStart + d.originalLength), x = {
9764
+ const g = s.positionAt(p + d.originalStart), w = s.positionAt(p + d.originalStart + d.originalLength), y = {
9765
9765
  text: c.substr(d.modifiedStart, d.modifiedLength),
9766
9766
  range: { startLineNumber: g.lineNumber, startColumn: g.column, endLineNumber: w.lineNumber, endColumn: w.column }
9767
9767
  };
9768
- s.getValueInRange(x.range) !== x.text && i.push(x);
9768
+ s.getValueInRange(y.range) !== y.text && i.push(y);
9769
9769
  }
9770
9770
  }
9771
9771
  return typeof a == "number" && i.push({ eol: a, text: "", range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } }), i;
@@ -9789,7 +9789,7 @@ class pt {
9789
9789
  const c = this._getModel(u);
9790
9790
  if (c) {
9791
9791
  for (const h of c.words(a))
9792
- if (!(h === n || !isNaN(Number(h))) && (l.add(h), l.size > pt._suggestionsLimit))
9792
+ if (!(h === n || !isNaN(Number(h))) && (l.add(h), l.size > bt._suggestionsLimit))
9793
9793
  break e;
9794
9794
  }
9795
9795
  }
@@ -9887,7 +9887,7 @@ function Si(t) {
9887
9887
  }),
9888
9888
  getMirrorModels: () => n.requestHandler.getModels()
9889
9889
  };
9890
- return e = t(a), new pt(e);
9890
+ return e = t(a), new bt(e);
9891
9891
  });
9892
9892
  return e;
9893
9893
  }
@@ -9903,7 +9903,7 @@ function ql(t) {
9903
9903
  self.onmessage = () => {
9904
9904
  Vl() || Si(() => ({}));
9905
9905
  };
9906
- class Nt {
9906
+ class St {
9907
9907
  constructor(e, n, r, s) {
9908
9908
  this._uri = e, this._languageId = n, this._version = r, this._content = s, this._lineOffsets = void 0;
9909
9909
  }
@@ -9925,7 +9925,7 @@ class Nt {
9925
9925
  }
9926
9926
  update(e, n) {
9927
9927
  for (const r of e)
9928
- if (Nt.isIncremental(r)) {
9928
+ if (St.isIncremental(r)) {
9929
9929
  const s = ki(r.range), i = this.offsetAt(s.start), a = this.offsetAt(s.end);
9930
9930
  this._content = this._content.substring(0, i) + r.text + this._content.substring(a, this._content.length);
9931
9931
  const l = Math.max(s.start.line, 0), u = Math.max(s.end.line, 0);
@@ -9940,7 +9940,7 @@ class Nt {
9940
9940
  if (f !== 0)
9941
9941
  for (let m = l + 1 + h.length, p = c.length; m < p; m++)
9942
9942
  c[m] = c[m] + f;
9943
- } else if (Nt.isFull(r))
9943
+ } else if (St.isFull(r))
9944
9944
  this._content = r.text, this._lineOffsets = void 0;
9945
9945
  else
9946
9946
  throw new Error("Unknown change event received");
@@ -9994,11 +9994,11 @@ class Nt {
9994
9994
  var Un;
9995
9995
  (function(t) {
9996
9996
  function e(s, i, a, l) {
9997
- return new Nt(s, i, a, l);
9997
+ return new St(s, i, a, l);
9998
9998
  }
9999
9999
  t.create = e;
10000
10000
  function n(s, i, a) {
10001
- if (s instanceof Nt)
10001
+ if (s instanceof St)
10002
10002
  return s.update(i, a), s;
10003
10003
  throw new Error("TextDocument.update: document must be created by TextDocument.create");
10004
10004
  }
@@ -10053,13 +10053,13 @@ function Ul(t) {
10053
10053
  const e = ki(t.range);
10054
10054
  return e !== t.range ? { newText: t.newText, range: e } : t;
10055
10055
  }
10056
- class pe extends Error {
10056
+ class de extends Error {
10057
10057
  constructor(e, n, r, s = {}) {
10058
10058
  super(e), this.name = "SqlParseError", this.start = n, this.end = r, this.expected = s.expected, this.found = s.found;
10059
10059
  }
10060
10060
  }
10061
10061
  function Ei(t) {
10062
- return t instanceof pe;
10062
+ return t instanceof de;
10063
10063
  }
10064
10064
  const Ai = /* @__PURE__ */ Symbol("sqlNodeSpan"), Ol = (t) => {
10065
10065
  const e = /* @__PURE__ */ new Set();
@@ -10071,15 +10071,15 @@ const Ai = /* @__PURE__ */ Symbol("sqlNodeSpan"), Ol = (t) => {
10071
10071
  for (const n of t.operators)
10072
10072
  e.add(n);
10073
10073
  return Array.from(e).sort((n, r) => r.length - n.length);
10074
- }, zl = (t, e) => {
10074
+ }, Hl = (t, e) => {
10075
10075
  const n = [], r = [], s = Ol(e), i = Wl(e), a = e.specialChars.identifierQuote;
10076
10076
  let l = 0;
10077
10077
  const u = t.length, c = (d) => {
10078
10078
  const g = Math.max(t.lastIndexOf(`
10079
10079
  `, d - 1), t.lastIndexOf("\r", d - 1));
10080
10080
  return g === -1 ? 0 : g + 1;
10081
- }, h = (d, g, w, x) => {
10082
- n.push({ kind: d, value: g, start: w, end: x });
10081
+ }, h = (d, g, w, y) => {
10082
+ n.push({ kind: d, value: g, start: w, end: y });
10083
10083
  }, f = (d) => /[A-Za-z_]/u.test(d), m = (d) => /[A-Za-z0-9_\$]/u.test(d), p = (d) => /[0-9]/u.test(d);
10084
10084
  for (; l < u; ) {
10085
10085
  const d = t[l];
@@ -10097,7 +10097,7 @@ const Ai = /* @__PURE__ */ Symbol("sqlNodeSpan"), Ol = (t) => {
10097
10097
  continue;
10098
10098
  }
10099
10099
  if (d === "-" && t[l + 1] === "-") {
10100
- const w = l, x = c(w);
10100
+ const w = l, y = c(w);
10101
10101
  for (l += 2; l < u && t[l] !== `
10102
10102
  `; )
10103
10103
  l += 1;
@@ -10106,12 +10106,12 @@ const Ai = /* @__PURE__ */ Symbol("sqlNodeSpan"), Ol = (t) => {
10106
10106
  text: t.slice(w, l),
10107
10107
  start: w,
10108
10108
  end: l,
10109
- codeBefore: t.slice(x, w)
10109
+ codeBefore: t.slice(y, w)
10110
10110
  });
10111
10111
  continue;
10112
10112
  }
10113
10113
  if (d === "/" && t[l + 1] === "*") {
10114
- const w = l, x = c(w);
10114
+ const w = l, y = c(w);
10115
10115
  for (l += 2; l < u && !(t[l] === "*" && t[l + 1] === "/"); )
10116
10116
  l += 1;
10117
10117
  l < u && (l += 2), r.push({
@@ -10119,85 +10119,85 @@ const Ai = /* @__PURE__ */ Symbol("sqlNodeSpan"), Ol = (t) => {
10119
10119
  text: t.slice(w, l),
10120
10120
  start: w,
10121
10121
  end: l,
10122
- codeBefore: t.slice(x, w)
10122
+ codeBefore: t.slice(y, w)
10123
10123
  });
10124
10124
  continue;
10125
10125
  }
10126
10126
  if (d === "'") {
10127
10127
  const w = l;
10128
10128
  l += 1;
10129
- let x = "";
10129
+ let y = "";
10130
10130
  for (; l < u; ) {
10131
10131
  if (t[l] === "'" && t[l + 1] === "'") {
10132
- x += "'", l += 2;
10132
+ y += "'", l += 2;
10133
10133
  continue;
10134
10134
  }
10135
10135
  if (t[l] === "'") {
10136
10136
  l += 1;
10137
10137
  break;
10138
10138
  }
10139
- x += t[l], l += 1;
10139
+ y += t[l], l += 1;
10140
10140
  }
10141
- h("string", x, w, l);
10141
+ h("string", y, w, l);
10142
10142
  continue;
10143
10143
  }
10144
10144
  if (d === a.start) {
10145
10145
  const w = l;
10146
10146
  l += 1;
10147
- let x = "";
10147
+ let y = "";
10148
10148
  for (; l < u; ) {
10149
10149
  if (t[l] === a.end) {
10150
10150
  if (t[l + 1] === a.end) {
10151
- x += a.end, l += 2;
10151
+ y += a.end, l += 2;
10152
10152
  continue;
10153
10153
  }
10154
10154
  l += 1;
10155
10155
  break;
10156
10156
  }
10157
- x += t[l], l += 1;
10157
+ y += t[l], l += 1;
10158
10158
  }
10159
- h("identifier", x, w, l);
10159
+ h("identifier", y, w, l);
10160
10160
  continue;
10161
10161
  }
10162
10162
  if (p(d)) {
10163
10163
  const w = l;
10164
- let x = "";
10164
+ let y = "";
10165
10165
  for (; l < u && p(t[l]); )
10166
- x += t[l], l += 1;
10166
+ y += t[l], l += 1;
10167
10167
  if (t[l] === ".")
10168
- for (x += t[l], l += 1; l < u && p(t[l]); )
10169
- x += t[l], l += 1;
10170
- h("number", x, w, l);
10168
+ for (y += t[l], l += 1; l < u && p(t[l]); )
10169
+ y += t[l], l += 1;
10170
+ h("number", y, w, l);
10171
10171
  continue;
10172
10172
  }
10173
10173
  if (f(d)) {
10174
10174
  const w = l;
10175
- let x = "";
10175
+ let y = "";
10176
10176
  for (; l < u && m(t[l]); )
10177
- x += t[l], l += 1;
10178
- const _ = x.toUpperCase();
10179
- s.has(_) ? h("keyword", _, w, l) : h("identifier", x, w, l);
10177
+ y += t[l], l += 1;
10178
+ const _ = y.toUpperCase();
10179
+ s.has(_) ? h("keyword", _, w, l) : h("identifier", y, w, l);
10180
10180
  continue;
10181
10181
  }
10182
10182
  if (d === ":" || d === "@") {
10183
10183
  const w = l;
10184
10184
  l += 1;
10185
- let x = d;
10185
+ let y = d;
10186
10186
  if (l >= u)
10187
- throw new pe(`Unexpected character '${d}' at ${w}.`, w, Math.min(w + 1, u), {
10187
+ throw new de(`Unexpected character '${d}' at ${w}.`, w, Math.min(w + 1, u), {
10188
10188
  found: { kind: "punctuation", value: d }
10189
10189
  });
10190
10190
  if (p(t[l]))
10191
10191
  for (; l < u && p(t[l]); )
10192
- x += t[l], l += 1;
10192
+ y += t[l], l += 1;
10193
10193
  else if (f(t[l]))
10194
10194
  for (; l < u && m(t[l]); )
10195
- x += t[l], l += 1;
10195
+ y += t[l], l += 1;
10196
10196
  else
10197
- throw new pe(`Unexpected character '${d}' at ${w}.`, w, Math.min(w + 1, u), {
10197
+ throw new de(`Unexpected character '${d}' at ${w}.`, w, Math.min(w + 1, u), {
10198
10198
  found: { kind: "punctuation", value: d }
10199
10199
  });
10200
- h("identifier", x, w, l);
10200
+ h("identifier", y, w, l);
10201
10201
  continue;
10202
10202
  }
10203
10203
  const g = i.find((w) => t.startsWith(w, l));
@@ -10211,14 +10211,14 @@ const Ai = /* @__PURE__ */ Symbol("sqlNodeSpan"), Ol = (t) => {
10211
10211
  l += 1, h("punctuation", d, w, l);
10212
10212
  continue;
10213
10213
  }
10214
- throw new pe(`Unexpected character '${d}' at ${l}.`, l, Math.min(l + 1, u), {
10214
+ throw new de(`Unexpected character '${d}' at ${l}.`, l, Math.min(l + 1, u), {
10215
10215
  found: { kind: "punctuation", value: d }
10216
10216
  });
10217
10217
  }
10218
10218
  return n.push({ kind: "eof", value: "", start: l, end: l }), { tokens: n, trivia: r };
10219
10219
  }, Kn = (t, e) => {
10220
- const { tokens: n, trivia: r } = zl(t, e), i = new Kl(n).parseProgram(r);
10221
- return Hl(i, r), i;
10220
+ const { tokens: n, trivia: r } = Hl(t, e), i = new Kl(n).parseProgram(r);
10221
+ return zl(i, r), i;
10222
10222
  };
10223
10223
  function Qs(t, e, n) {
10224
10224
  return Object.defineProperty(t, Ai, {
@@ -10231,11 +10231,11 @@ function Qs(t, e, n) {
10231
10231
  function X(t) {
10232
10232
  return t[Ai] ?? null;
10233
10233
  }
10234
- function Ze(t, e, n) {
10234
+ function Ke(t, e, n) {
10235
10235
  const r = t[e] ?? [];
10236
10236
  r.push(n), t[e] = r;
10237
10237
  }
10238
- function Hl(t, e) {
10238
+ function zl(t, e) {
10239
10239
  if (e.length === 0 || t.body.length === 0)
10240
10240
  return;
10241
10241
  const n = Gl(t.body);
@@ -10245,27 +10245,27 @@ function Hl(t, e) {
10245
10245
  for (const i of [...e].sort((a, l) => a.start - l.start)) {
10246
10246
  const a = Ql(s, i.start), l = Jl(r, i.end), u = Xl(n, i), c = i.codeBefore.trim().length > 0;
10247
10247
  if (c && a) {
10248
- Ze(a.node, "trailingTrivia", i);
10248
+ Ke(a.node, "trailingTrivia", i);
10249
10249
  continue;
10250
10250
  }
10251
10251
  if (!c && a && l) {
10252
- Ze(a.node, "trailingTrivia", i);
10252
+ Ke(a.node, "trailingTrivia", i);
10253
10253
  continue;
10254
10254
  }
10255
10255
  if (!c && l) {
10256
- Ze(jl(n, l).node, "leadingTrivia", i);
10256
+ Ke(jl(n, l).node, "leadingTrivia", i);
10257
10257
  continue;
10258
10258
  }
10259
10259
  if (!c && a) {
10260
- Ze(a.node, "trailingTrivia", i);
10260
+ Ke(a.node, "trailingTrivia", i);
10261
10261
  continue;
10262
10262
  }
10263
10263
  const h = Yl(a, l, i);
10264
10264
  if (h) {
10265
- Ze(h.node, "trailingTrivia", i);
10265
+ Ke(h.node, "trailingTrivia", i);
10266
10266
  continue;
10267
10267
  }
10268
- u && Ze(u.node, "danglingTrivia", i);
10268
+ u && Ke(u.node, "danglingTrivia", i);
10269
10269
  }
10270
10270
  }
10271
10271
  function jl(t, e) {
@@ -10283,11 +10283,17 @@ function Gl(t) {
10283
10283
  case "binary":
10284
10284
  n(a.left), n(a.right);
10285
10285
  return;
10286
+ case "case":
10287
+ a.operand && n(a.operand);
10288
+ for (const l of a.when)
10289
+ i(l), n(l.when), n(l.then);
10290
+ a.else && n(a.else);
10291
+ return;
10286
10292
  case "cast":
10287
10293
  n(a.expression);
10288
10294
  return;
10289
10295
  case "functionCall":
10290
- a.args.forEach(n);
10296
+ n(a.name), a.args.forEach(n);
10291
10297
  return;
10292
10298
  case "grouped":
10293
10299
  n(a.expression);
@@ -10418,7 +10424,7 @@ class Kl {
10418
10424
  if (this.matchWord("FETCH")) {
10419
10425
  if (!this.matchWord("FIRST") && !this.matchWord("NEXT")) {
10420
10426
  const p = this.peek(), d = this.getErrorRangeForToken(p);
10421
- throw new pe(`Expected keyword FIRST at ${p.start}.`, d.start, d.end, {
10427
+ throw new de(`Expected keyword FIRST at ${p.start}.`, d.start, d.end, {
10422
10428
  expected: { kind: "keyword", value: "FIRST" },
10423
10429
  found: { kind: p.kind, value: p.value }
10424
10430
  });
@@ -10427,7 +10433,7 @@ class Kl {
10427
10433
  this.advance();
10428
10434
  else {
10429
10435
  const p = this.peek(), d = this.getErrorRangeForToken(p);
10430
- throw new pe(`Expected keyword ROWS at ${p.start}.`, d.start, d.end, {
10436
+ throw new de(`Expected keyword ROWS at ${p.start}.`, d.start, d.end, {
10431
10437
  expected: { kind: "keyword", value: "ROWS" },
10432
10438
  found: { kind: p.kind, value: p.value }
10433
10439
  });
@@ -10505,7 +10511,7 @@ class Kl {
10505
10511
  if (this.matchPunctuation("(")) {
10506
10512
  if (this.tokens[this.index - 1], !this.peekKeyword("SELECT")) {
10507
10513
  const i = this.peek(), a = this.getErrorRangeForToken(i);
10508
- throw new pe(`Expected keyword SELECT at ${i.start}.`, a.start, a.end, {
10514
+ throw new de(`Expected keyword SELECT at ${i.start}.`, a.start, a.end, {
10509
10515
  expected: { kind: "keyword", value: "SELECT" },
10510
10516
  found: { kind: i.kind, value: i.value }
10511
10517
  });
@@ -10654,70 +10660,95 @@ class Kl {
10654
10660
  e.end
10655
10661
  );
10656
10662
  if ((this.peekWord("DATE") || this.peekWord("TIMESTAMP")) && this.tokens[this.index + 1]?.kind === "string") {
10657
- const i = this.advance(), a = this.expect("string"), l = i.value.toUpperCase();
10663
+ const s = this.advance(), i = this.expect("string"), a = s.value.toUpperCase();
10658
10664
  return this.markNode(
10659
- { type: "typedLiteral", dataType: l, value: a.value },
10660
- i.start,
10661
- a.end
10665
+ { type: "typedLiteral", dataType: a, value: i.value },
10666
+ s.start,
10667
+ i.end
10662
10668
  );
10663
10669
  }
10664
10670
  if (e.kind === "identifier" && (e.value.startsWith(":") || e.value.startsWith("@")))
10665
10671
  return this.advance(), this.markNode({ type: "bindParameter", token: e.value }, e.start, e.end);
10666
10672
  if (this.matchOperator(["*"])) {
10667
- const i = this.tokens[this.index - 1];
10668
- return this.markNode({ type: "wildcard" }, i.start, i.end);
10673
+ const s = this.tokens[this.index - 1];
10674
+ return this.markNode({ type: "wildcard" }, s.start, s.end);
10669
10675
  }
10676
+ if (this.matchKeyword("CASE"))
10677
+ return this.parseCaseExpression(e.start);
10670
10678
  if (e.kind === "punctuation" && e.value === "(") {
10671
- const i = this.advance();
10679
+ const s = this.advance();
10672
10680
  if (this.peekKeyword("SELECT")) {
10673
- const l = this.parseSelectStatement();
10674
- return this.expectPunctuation(")"), this.markNode({ type: "subquery", query: l }, i.start, this.lastConsumedEnd(i.start));
10681
+ const a = this.parseSelectStatement();
10682
+ return this.expectPunctuation(")"), this.markNode({ type: "subquery", query: a }, s.start, this.lastConsumedEnd(s.start));
10675
10683
  }
10676
- const a = this.parseExpression();
10677
- return this.expectPunctuation(")"), this.markNode({ type: "grouped", expression: a }, i.start, this.lastConsumedEnd(i.start));
10684
+ const i = this.parseExpression();
10685
+ return this.expectPunctuation(")"), this.markNode({ type: "grouped", expression: i }, s.start, this.lastConsumedEnd(s.start));
10678
10686
  }
10679
- const n = this.peek().start, r = this.parseIdentifier();
10687
+ const n = this.peek().start, r = this.parseQualifiedIdentifierExpression();
10688
+ if (r.type === "wildcard")
10689
+ return r;
10680
10690
  if (this.matchPunctuation("(")) {
10681
- if (r.toUpperCase() === "CAST") {
10682
- const l = this.parseExpression();
10691
+ if ((r.type === "identifier" ? r.name.toUpperCase() : void 0) === "CAST") {
10692
+ const a = this.parseExpression();
10683
10693
  this.expectKeyword("AS");
10684
- const u = this.parseIdentifier();
10685
- let c;
10694
+ const l = this.parseIdentifier();
10695
+ let u;
10686
10696
  if (this.matchPunctuation("(")) {
10687
- c = [];
10697
+ u = [];
10688
10698
  do {
10689
- const h = this.expect("number");
10690
- c.push(Number(h.value));
10699
+ const c = this.expect("number");
10700
+ u.push(Number(c.value));
10691
10701
  } while (this.matchPunctuation(","));
10692
10702
  this.expectPunctuation(")");
10693
10703
  }
10694
10704
  return this.expectPunctuation(")"), this.markNode(
10695
- { type: "cast", expression: l, dataType: u, dataTypeParams: c },
10705
+ { type: "cast", expression: a, dataType: l, dataTypeParams: u },
10696
10706
  n,
10697
10707
  this.lastConsumedEnd(n)
10698
10708
  );
10699
10709
  }
10700
- const a = [];
10710
+ const i = [];
10701
10711
  if (!this.matchPunctuation(")")) {
10702
10712
  do
10703
10713
  if (this.matchOperator(["*"])) {
10704
- const l = this.tokens[this.index - 1];
10705
- a.push(this.markNode({ type: "wildcard" }, l.start, l.end));
10714
+ const a = this.tokens[this.index - 1];
10715
+ i.push(this.markNode({ type: "wildcard" }, a.start, a.end));
10706
10716
  } else
10707
- a.push(this.parseExpression());
10717
+ i.push(this.parseExpression());
10708
10718
  while (this.matchPunctuation(","));
10709
10719
  this.expectPunctuation(")");
10710
10720
  }
10711
- return this.markNode({ type: "functionCall", name: r, args: a }, n, this.lastConsumedEnd(n));
10721
+ return this.markNode({ type: "functionCall", name: r, args: i }, n, this.lastConsumedEnd(n));
10712
10722
  }
10713
- const s = [r];
10714
- for (; this.matchPunctuation("."); )
10715
- s.push(this.parseIdentifier());
10716
- return s.length > 1 ? this.markNode(
10717
- { type: "qualifiedIdentifier", parts: s },
10718
- n,
10719
- this.lastConsumedEnd(n)
10720
- ) : this.markNode({ type: "identifier", name: r }, n, this.lastConsumedEnd(n));
10723
+ return r;
10724
+ }
10725
+ parseQualifiedIdentifierExpression() {
10726
+ const e = this.peek().start, n = [this.parseIdentifier()];
10727
+ for (; this.matchPunctuation("."); ) {
10728
+ if (this.matchOperator(["*"]))
10729
+ return this.markNode({ type: "wildcard", qualifier: n }, e, this.lastConsumedEnd(e));
10730
+ n.push(this.parseIdentifier());
10731
+ }
10732
+ const r = this.lastConsumedEnd(e);
10733
+ return n.length === 1 ? this.markNode({ type: "identifier", name: n[0] }, e, r) : this.markNode({ type: "qualifiedIdentifier", parts: n }, e, r);
10734
+ }
10735
+ parseCaseExpression(e) {
10736
+ const n = this.peekKeyword("WHEN") ? void 0 : this.parseExpression(), r = [];
10737
+ for (; this.matchKeyword("WHEN"); ) {
10738
+ const i = this.tokens[this.index - 1].start, a = this.parseExpression();
10739
+ this.expectKeyword("THEN");
10740
+ const l = this.parseExpression();
10741
+ r.push(this.markNode({ when: a, then: l }, i, this.lastConsumedEnd(i)));
10742
+ }
10743
+ if (r.length === 0) {
10744
+ const i = this.peek(), a = this.getErrorRangeForToken(i);
10745
+ throw new de(`Expected keyword WHEN at ${i.start}.`, a.start, a.end, {
10746
+ expected: { kind: "keyword", value: "WHEN" },
10747
+ found: { kind: i.kind, value: i.value }
10748
+ });
10749
+ }
10750
+ const s = this.matchKeyword("ELSE") ? this.parseExpression() : void 0;
10751
+ return this.expectKeyword("END"), this.markNode({ type: "case", operand: n, when: r, else: s }, e, this.lastConsumedEnd(e));
10721
10752
  }
10722
10753
  parseInList() {
10723
10754
  const e = this.peek().start;
@@ -10736,7 +10767,7 @@ class Kl {
10736
10767
  if (e.kind === "identifier" || e.kind === "keyword")
10737
10768
  return this.advance(), e.value;
10738
10769
  const n = this.getErrorRangeForToken(e);
10739
- throw new pe(`Expected identifier at ${e.start}.`, n.start, n.end, {
10770
+ throw new de(`Expected identifier at ${e.start}.`, n.start, n.end, {
10740
10771
  expected: { kind: "identifier" },
10741
10772
  found: { kind: e.kind, value: e.value }
10742
10773
  });
@@ -10803,7 +10834,7 @@ class Kl {
10803
10834
  const n = this.peek();
10804
10835
  if (n.kind !== e) {
10805
10836
  const r = this.getErrorRangeForToken(n);
10806
- throw new pe(`Expected ${e} at ${n.start}.`, r.start, r.end, {
10837
+ throw new de(`Expected ${e} at ${n.start}.`, r.start, r.end, {
10807
10838
  expected: { kind: e },
10808
10839
  found: { kind: n.kind, value: n.value }
10809
10840
  });
@@ -10820,7 +10851,7 @@ class Kl {
10820
10851
  expectKeyword(e) {
10821
10852
  if (!this.matchKeyword(e)) {
10822
10853
  const n = this.peek(), r = this.getErrorRangeForToken(n);
10823
- throw new pe(`Expected keyword ${e} at ${n.start}.`, r.start, r.end, {
10854
+ throw new de(`Expected keyword ${e} at ${n.start}.`, r.start, r.end, {
10824
10855
  expected: { kind: "keyword", value: e },
10825
10856
  found: { kind: n.kind, value: n.value }
10826
10857
  });
@@ -10829,7 +10860,7 @@ class Kl {
10829
10860
  expectWord(e) {
10830
10861
  if (!this.matchWord(e)) {
10831
10862
  const n = this.peek(), r = this.getErrorRangeForToken(n);
10832
- throw new pe(`Expected keyword ${e} at ${n.start}.`, r.start, r.end, {
10863
+ throw new de(`Expected keyword ${e} at ${n.start}.`, r.start, r.end, {
10833
10864
  expected: { kind: "keyword", value: e },
10834
10865
  found: { kind: n.kind, value: n.value }
10835
10866
  });
@@ -10846,7 +10877,7 @@ class Kl {
10846
10877
  expectPunctuation(e) {
10847
10878
  if (!this.matchPunctuation(e)) {
10848
10879
  const n = this.peek(), r = this.getErrorRangeForToken(n);
10849
- throw new pe(`Expected '${e}' at ${n.start}.`, r.start, r.end, {
10880
+ throw new de(`Expected '${e}' at ${n.start}.`, r.start, r.end, {
10850
10881
  expected: { kind: "punctuation", value: e },
10851
10882
  found: { kind: n.kind, value: n.value }
10852
10883
  });
@@ -10959,7 +10990,7 @@ const su = (t, e) => {
10959
10990
  }, Ti = {
10960
10991
  Error: 8
10961
10992
  };
10962
- function st(t) {
10993
+ function it(t) {
10963
10994
  return t.trim().toLowerCase();
10964
10995
  }
10965
10996
  function Js(t) {
@@ -10989,7 +11020,7 @@ const hu = /^[A-Za-z_][A-Za-z0-9_$]*$/u, fu = {
10989
11020
  }, mu = {
10990
11021
  indent: " ",
10991
11022
  keywordCase: "upper"
10992
- }, he = `
11023
+ }, le = `
10993
11024
  `;
10994
11025
  function du(t, e, n = {}) {
10995
11026
  return gu(Kn(t, e), e, n);
@@ -11000,53 +11031,53 @@ function gu(t, e, n = {}) {
11000
11031
  keywordSet: new Set(e.keywords.map((i) => i.toUpperCase())),
11001
11032
  options: r
11002
11033
  };
11003
- return t.body.map((i) => tn(i, s)).join(`;${he}${he}`);
11034
+ return t.body.map((i) => tn(i, s)).join(`;${le}${le}`);
11004
11035
  }
11005
11036
  function tn(t, e) {
11006
11037
  const n = [];
11007
- t.with && t.with.length > 0 && (n.push(H("WITH", e)), n.push(
11038
+ t.with && t.with.length > 0 && (n.push(z("WITH", e)), n.push(
11008
11039
  ...Pt(
11009
11040
  t.with.map((s) => pu(s, e)),
11010
11041
  e
11011
11042
  )
11012
11043
  ));
11013
- const r = H("SELECT", e);
11014
- return n.push(t.distinct ? `${r} ${H("DISTINCT", e)}` : r), n.push(
11044
+ const r = z("SELECT", e);
11045
+ return n.push(t.distinct ? `${r} ${z("DISTINCT", e)}` : r), n.push(
11015
11046
  ...Pt(
11016
11047
  t.columns.map((s) => bu(s, e)),
11017
11048
  e
11018
11049
  )
11019
- ), t.from && t.from.length > 0 && (n.push(H("FROM", e)), n.push(...wu(t.from, e))), t.where && n.push(...Ys("WHERE", t.where, e)), t.groupBy && t.groupBy.length > 0 && (n.push(`${H("GROUP", e)} ${H("BY", e)}`), n.push(
11050
+ ), t.from && t.from.length > 0 && (n.push(z("FROM", e)), n.push(...wu(t.from, e))), t.where && n.push(...Ys("WHERE", t.where, e)), t.groupBy && t.groupBy.length > 0 && (n.push(`${z("GROUP", e)} ${z("BY", e)}`), n.push(
11020
11051
  ...Pt(
11021
- t.groupBy.map((s) => be(s, e)),
11052
+ t.groupBy.map((s) => re(s, e)),
11022
11053
  e
11023
11054
  )
11024
- )), t.having && n.push(...Ys("HAVING", t.having, e)), t.orderBy && t.orderBy.length > 0 && (n.push(`${H("ORDER", e)} ${H("BY", e)}`), n.push(
11055
+ )), t.having && n.push(...Ys("HAVING", t.having, e)), t.orderBy && t.orderBy.length > 0 && (n.push(`${z("ORDER", e)} ${z("BY", e)}`), n.push(
11025
11056
  ...Pt(
11026
11057
  t.orderBy.map(
11027
- (s) => `${be(s.expression, e)} ${H(s.direction, e)}`
11058
+ (s) => `${re(s.expression, e)} ${z(s.direction, e)}`
11028
11059
  ),
11029
11060
  e
11030
11061
  )
11031
- )), typeof t.offset == "number" && n.push(`${H("OFFSET", e)} ${String(t.offset)} ${H("ROWS", e)}`), typeof t.fetchFirst == "number" && n.push(
11032
- `${H("FETCH", e)} ${H("FIRST", e)} ${String(t.fetchFirst)} ${H("ROWS", e)} ${H("ONLY", e)}`
11033
- ), typeof t.limit == "number" && n.push(`${H("LIMIT", e)} ${String(t.limit)}`), lt(n.join(he), t, e);
11062
+ )), typeof t.offset == "number" && n.push(`${z("OFFSET", e)} ${String(t.offset)} ${z("ROWS", e)}`), typeof t.fetchFirst == "number" && n.push(
11063
+ `${z("FETCH", e)} ${z("FIRST", e)} ${String(t.fetchFirst)} ${z("ROWS", e)} ${z("ONLY", e)}`
11064
+ ), typeof t.limit == "number" && n.push(`${z("LIMIT", e)} ${String(t.limit)}`), ut(n.join(le), t, e);
11034
11065
  }
11035
11066
  function pu(t, e) {
11036
- const n = t.columns?.length ? `(${t.columns.map((s) => Me(s, e)).join(", ")})` : "", r = Xt(tn(t.query, e), e, !0);
11037
- return lt(
11038
- `${Me(t.name, e)}${n} ${H("AS", e)} ${r}`,
11067
+ const n = t.columns?.length ? `(${t.columns.map((s) => Ne(s, e)).join(", ")})` : "", r = Xt(tn(t.query, e), e, !0);
11068
+ return ut(
11069
+ `${Ne(t.name, e)}${n} ${z("AS", e)} ${r}`,
11039
11070
  t,
11040
11071
  e
11041
11072
  );
11042
11073
  }
11043
11074
  function bu(t, e) {
11044
- const n = be(t.expression, e), r = _u(n), s = n.slice(r.length);
11045
- return t.alias ? lt(
11046
- `${r} ${H("AS", e)} ${Me(t.alias, e)}${s}`,
11075
+ const n = re(t.expression, e), r = _u(n), s = n.slice(r.length);
11076
+ return t.alias ? ut(
11077
+ `${r} ${z("AS", e)} ${Ne(t.alias, e)}${s}`,
11047
11078
  t,
11048
11079
  e
11049
- ) : lt(n, t, e);
11080
+ ) : ut(n, t, e);
11050
11081
  }
11051
11082
  function wu(t, e) {
11052
11083
  const n = [];
@@ -11055,24 +11086,24 @@ function wu(t, e) {
11055
11086
  const i = n[n.length - 1];
11056
11087
  n[n.length - 1] = `${i},`;
11057
11088
  }
11058
- n.push(...xu(s, e));
11089
+ n.push(...yu(s, e));
11059
11090
  }
11060
11091
  return n;
11061
11092
  }
11062
- function xu(t, e) {
11093
+ function yu(t, e) {
11063
11094
  const n = [];
11064
- n.push(St(Pi(t, e), e.options.indent));
11095
+ n.push(ze(Pi(t, e), e.options.indent));
11065
11096
  for (const r of t.joins ?? [])
11066
- n.push(St(yu(r, e), e.options.indent));
11067
- return lt(n.join(he), t, e, e.options.indent).split(he);
11097
+ n.push(ze(xu(r, e), e.options.indent));
11098
+ return ut(n.join(le), t, e, e.options.indent).split(le);
11068
11099
  }
11069
- function yu(t, e) {
11070
- const n = H("JOIN", e), s = `${H(t.type, e)} ${n} `, i = Pi(t.table, e), a = `${s}${i}`;
11100
+ function xu(t, e) {
11101
+ const n = z("JOIN", e), s = `${z(t.type, e)} ${n} `, i = Pi(t.table, e), a = `${s}${i}`;
11071
11102
  if (t.on)
11072
- return `${a} ${H("ON", e)} ${be(t.on, e)}`;
11103
+ return `${a} ${z("ON", e)} ${re(t.on, e)}`;
11073
11104
  if (t.using && t.using.length > 0) {
11074
- const l = t.using.map((u) => Me(u, e)).join(", ");
11075
- return `${a} ${H("USING", e)} (${l})`;
11105
+ const l = t.using.map((u) => Ne(u, e)).join(", ");
11106
+ return `${a} ${z("USING", e)} (${l})`;
11076
11107
  }
11077
11108
  return a;
11078
11109
  }
@@ -11083,44 +11114,51 @@ function Pi(t, e) {
11083
11114
  return `${Nu(t.name, e)}${Xs(t.alias, e)}`;
11084
11115
  throw new Error("Invalid table reference: expected table name or subquery");
11085
11116
  }
11086
- function be(t, e, n = 0) {
11087
- const r = vu(t, e), i = zn(t) < n ? `(${r})` : r;
11088
- return lt(i, t, e);
11117
+ function re(t, e, n = 0) {
11118
+ const r = vu(t, e), i = Hn(t) < n ? `(${r})` : r;
11119
+ return ut(i, t, e);
11089
11120
  }
11090
11121
  function vu(t, e) {
11091
11122
  switch (t.type) {
11092
11123
  case "identifier":
11093
- return Me(t.name, e);
11124
+ return Ne(t.name, e);
11094
11125
  case "qualifiedIdentifier":
11095
- return t.parts.map((n) => Me(n, e)).join(".");
11126
+ return t.parts.map((n) => Ne(n, e)).join(".");
11096
11127
  case "literal":
11097
11128
  return mn(t.value, e);
11098
11129
  case "typedLiteral":
11099
- return `${H(t.dataType, e)} ${mn(t.value, e)}`;
11130
+ return `${z(t.dataType, e)} ${mn(t.value, e)}`;
11100
11131
  case "bindParameter":
11101
11132
  return t.token;
11102
11133
  case "wildcard":
11103
- return "*";
11134
+ return t.qualifier ? `${t.qualifier.map((n) => Ne(n, e)).join(".")}.*` : "*";
11135
+ case "case": {
11136
+ const n = z("CASE", e), r = z("WHEN", e), s = z("THEN", e), i = z("ELSE", e), a = z("END", e), l = t.operand ? `${n} ${re(t.operand, e)}` : n, u = t.when.map((h) => {
11137
+ const f = re(h.when, e), m = re(h.then, e);
11138
+ return ze(`${r} ${f} ${s} ${m}`, e.options.indent);
11139
+ }), c = t.else ? [ze(`${i} ${re(t.else, e)}`, e.options.indent)] : [];
11140
+ return [l, ...u, ...c, a].join(le);
11141
+ }
11104
11142
  case "grouped":
11105
- return Xt(be(t.expression, e), e);
11143
+ return Xt(re(t.expression, e), e);
11106
11144
  case "subquery":
11107
11145
  return Xt(tn(t.query, e), e, !0);
11108
11146
  case "functionCall": {
11109
- const n = t.args.map((r) => be(r, e)).join(", ");
11110
- return `${t.name}(${n})`;
11147
+ const n = re(t.name, e), r = t.args.map((s) => re(s, e)).join(", ");
11148
+ return `${n}(${r})`;
11111
11149
  }
11112
11150
  case "cast": {
11113
11151
  const n = t.dataTypeParams ? `(${t.dataTypeParams.map((r) => String(r)).join(", ")})` : "";
11114
- return `${H("CAST", e)}(${be(t.expression, e)} ${H("AS", e)} ${Me(t.dataType, e)}${n})`;
11152
+ return `${z("CAST", e)}(${re(t.expression, e)} ${z("AS", e)} ${Ne(t.dataType, e)}${n})`;
11115
11153
  }
11116
11154
  case "inList":
11117
- return `(${t.values.map((r) => be(r, e)).join(", ")})`;
11155
+ return `(${t.values.map((r) => re(r, e)).join(", ")})`;
11118
11156
  case "unary": {
11119
- const n = be(t.operand, e, zn(t)), r = dn(t.operator) ? H(t.operator, e) : t.operator;
11157
+ const n = re(t.operand, e, Hn(t)), r = dn(t.operator) ? z(t.operator, e) : t.operator;
11120
11158
  return dn(t.operator) ? `${r} ${n}` : `${r}${n}`;
11121
11159
  }
11122
11160
  case "binary": {
11123
- const n = zn(t), r = be(t.left, e, n), s = be(t.right, e, n + 1), i = dn(t.operator) ? t.operator.split(" ").map((l) => H(l, e)).join(" ") : t.operator, a = t.operator === "LIKE" && t.escape ? ` ${H("ESCAPE", e)} ${mn(t.escape, e)}` : "";
11161
+ const n = Hn(t), r = re(t.left, e, n), s = re(t.right, e, n + 1), i = dn(t.operator) ? t.operator.split(" ").map((l) => z(l, e)).join(" ") : t.operator, a = t.operator === "LIKE" && t.escape ? ` ${z("ESCAPE", e)} ${mn(t.escape, e)}` : "";
11124
11162
  return `${r} ${i} ${s}${a}`;
11125
11163
  }
11126
11164
  default:
@@ -11128,28 +11166,28 @@ function vu(t, e) {
11128
11166
  }
11129
11167
  }
11130
11168
  function mn(t, e) {
11131
- return t === null ? H("NULL", e) : typeof t == "boolean" ? H(t ? "TRUE" : "FALSE", e) : typeof t == "number" ? String(t) : `'${t.replaceAll("'", "''")}'`;
11169
+ return t === null ? z("NULL", e) : typeof t == "boolean" ? z(t ? "TRUE" : "FALSE", e) : typeof t == "number" ? String(t) : `'${t.replaceAll("'", "''")}'`;
11132
11170
  }
11133
11171
  function Xs(t, e) {
11134
- return t ? ` ${H("AS", e)} ${Me(t, e)}` : "";
11172
+ return t ? ` ${z("AS", e)} ${Ne(t, e)}` : "";
11135
11173
  }
11136
11174
  function Pt(t, e) {
11137
11175
  return t.map((n, r) => {
11138
11176
  const s = r < t.length - 1 ? "," : "";
11139
- return `${St(n, e.options.indent)}${s}`;
11177
+ return `${ze(n, e.options.indent)}${s}`;
11140
11178
  });
11141
11179
  }
11142
11180
  function Ys(t, e, n) {
11143
- const r = H(t, n), s = be(e, n);
11144
- return [r, St(s, n.options.indent)];
11181
+ const r = z(t, n), s = re(e, n);
11182
+ return [r, ze(s, n.options.indent)];
11145
11183
  }
11146
- function St(t, e) {
11147
- return t.split(he).map((n) => `${e}${n}`).join(he);
11184
+ function ze(t, e) {
11185
+ return t.split(le).map((n) => `${e}${n}`).join(le);
11148
11186
  }
11149
11187
  function Xt(t, e, n = !1) {
11150
- return !n && !t.includes(he) ? `(${t})` : ["(", St(t, e.options.indent), ")"].join(he);
11188
+ return !n && !t.includes(le) ? `(${t})` : ["(", ze(t, e.options.indent), ")"].join(le);
11151
11189
  }
11152
- function lt(t, e, n, r = "") {
11190
+ function ut(t, e, n, r = "") {
11153
11191
  if (!e)
11154
11192
  return t;
11155
11193
  const s = Wn(e.leadingTrivia, n, r), i = Wn(e.danglingTrivia, n, r), { contentWithInlineTrailing: a, trailingBlocks: l } = Lu(
@@ -11158,7 +11196,7 @@ function lt(t, e, n, r = "") {
11158
11196
  n,
11159
11197
  r
11160
11198
  );
11161
- return [...s, a, ...l, ...i].join(he);
11199
+ return [...s, a, ...l, ...i].join(le);
11162
11200
  }
11163
11201
  function Lu(t, e, n, r) {
11164
11202
  if (!e || e.length === 0)
@@ -11166,7 +11204,7 @@ function Lu(t, e, n, r) {
11166
11204
  let s = t;
11167
11205
  const i = [];
11168
11206
  for (const a of e) {
11169
- if (a.codeBefore.trim().length > 0 && (a.kind === "lineComment" || !a.text.includes(he))) {
11207
+ if (a.codeBefore.trim().length > 0 && (a.kind === "lineComment" || !a.text.includes(le))) {
11170
11208
  s += ` ${a.text}`;
11171
11209
  continue;
11172
11210
  }
@@ -11175,10 +11213,10 @@ function Lu(t, e, n, r) {
11175
11213
  return { contentWithInlineTrailing: s, trailingBlocks: i };
11176
11214
  }
11177
11215
  function Wn(t, e, n) {
11178
- return !t || t.length === 0 ? [] : t.flatMap((r) => r.text.split(he).map((s) => `${n}${s}`));
11216
+ return !t || t.length === 0 ? [] : t.flatMap((r) => r.text.split(le).map((s) => `${n}${s}`));
11179
11217
  }
11180
11218
  function _u(t) {
11181
- const e = t.split(he);
11219
+ const e = t.split(le);
11182
11220
  for (let n = e.length - 1; n >= 0; n -= 1) {
11183
11221
  const r = e[n], s = r.indexOf("--");
11184
11222
  if (s === -1)
@@ -11193,12 +11231,12 @@ function _u(t) {
11193
11231
  e[n] = i.trimEnd();
11194
11232
  break;
11195
11233
  }
11196
- return e.join(he);
11234
+ return e.join(le);
11197
11235
  }
11198
11236
  function Nu(t, e) {
11199
- return t.split(".").map((n) => Me(n, e)).join(".");
11237
+ return t.split(".").map((n) => Ne(n, e)).join(".");
11200
11238
  }
11201
- function Me(t, e) {
11239
+ function Ne(t, e) {
11202
11240
  const n = t.trim();
11203
11241
  if (!n || !Su(n, e))
11204
11242
  return n;
@@ -11208,13 +11246,13 @@ function Me(t, e) {
11208
11246
  function Su(t, e) {
11209
11247
  return hu.test(t) ? e.keywordSet.has(t.toUpperCase()) : !0;
11210
11248
  }
11211
- function H(t, e) {
11249
+ function z(t, e) {
11212
11250
  return e.options.keywordCase === "lower" ? t.toLowerCase() : t.toUpperCase();
11213
11251
  }
11214
11252
  function dn(t) {
11215
11253
  return /^[A-Za-z ]+$/u.test(t);
11216
11254
  }
11217
- function zn(t) {
11255
+ function Hn(t) {
11218
11256
  switch (t.type) {
11219
11257
  case "binary":
11220
11258
  return fu[t.operator];
@@ -11222,6 +11260,7 @@ function zn(t) {
11222
11260
  return 6;
11223
11261
  case "identifier":
11224
11262
  case "bindParameter":
11263
+ case "case":
11225
11264
  case "qualifiedIdentifier":
11226
11265
  case "literal":
11227
11266
  case "typedLiteral":
@@ -11318,11 +11357,11 @@ class Cu {
11318
11357
  }
11319
11358
  const Ru = /((?:[A-Za-z_][A-Za-z0-9_$]*\.)*[A-Za-z_][A-Za-z0-9_$]*)\.[A-Za-z0-9_$]*$/u, ku = (t, e, n, r) => {
11320
11359
  const s = gn(e.keywords).map(
11321
- (c) => bt(c, wt.Keyword, t, { sortText: `3-${c}` })
11360
+ (c) => wt(c, yt.Keyword, t, { sortText: `3-${c}` })
11322
11361
  ), i = gn(e.functions).map(
11323
- (c) => bt(c, wt.Function, t, { sortText: `4-${c}` })
11362
+ (c) => wt(c, yt.Function, t, { sortText: `4-${c}` })
11324
11363
  ), a = gn(e.operators).map(
11325
- (c) => bt(c, wt.Operator, t, { sortText: `5-${c}` })
11364
+ (c) => wt(c, yt.Operator, t, { sortText: `5-${c}` })
11326
11365
  );
11327
11366
  if (!n)
11328
11367
  return [...s, ...i, ...a];
@@ -11364,7 +11403,7 @@ function Eu(t) {
11364
11403
  return !1;
11365
11404
  }
11366
11405
  }
11367
- const bt = (t, e, n, r = {}) => ({
11406
+ const wt = (t, e, n, r = {}) => ({
11368
11407
  label: t,
11369
11408
  kind: e,
11370
11409
  insertText: t,
@@ -11374,7 +11413,7 @@ const bt = (t, e, n, r = {}) => ({
11374
11413
  function Au(t, e, n) {
11375
11414
  const r = n === "from" || n === "join" ? "1" : "9";
11376
11415
  return t.map(
11377
- (s) => bt(s.completionLabel, wt.Table, e, {
11416
+ (s) => wt(s.completionLabel, yt.Table, e, {
11378
11417
  insertText: s.insertText,
11379
11418
  detail: s.detail,
11380
11419
  documentation: s.documentation,
@@ -11387,7 +11426,7 @@ function Mu(t, e, n) {
11387
11426
  return t.tables.forEach((i) => {
11388
11427
  i.columns.forEach((a) => {
11389
11428
  s.push(
11390
- bt(a.completionLabel, wt.Field, e, {
11429
+ wt(a.completionLabel, yt.Field, e, {
11391
11430
  insertText: a.insertText,
11392
11431
  detail: [i.name, a.detail].filter(Boolean).join(" | "),
11393
11432
  documentation: a.documentation,
@@ -11401,7 +11440,7 @@ function Tu(t, e) {
11401
11440
  const n = Pu(t);
11402
11441
  if (!n)
11403
11442
  return { tables: e.tables };
11404
- const r = st(n), s = e.aliases.get(r);
11443
+ const r = it(n), s = e.aliases.get(r);
11405
11444
  if (s)
11406
11445
  return { qualifier: n, tables: [s] };
11407
11446
  const i = er(n, e.tables);
@@ -11448,7 +11487,7 @@ function Bu(t, e) {
11448
11487
  if (!i.name)
11449
11488
  return;
11450
11489
  const a = er(i.name, e.tables);
11451
- a && (r.push(a), i.alias && s.set(st(i.alias), a));
11490
+ a && (r.push(a), i.alias && s.set(it(i.alias), a));
11452
11491
  }), { tables: Ii(r), aliases: s };
11453
11492
  }
11454
11493
  function Vu(t, e) {
@@ -11458,7 +11497,7 @@ function Vu(t, e) {
11458
11497
  const r = [], s = /* @__PURE__ */ new Map();
11459
11498
  return n.forEach((i) => {
11460
11499
  const a = er(i.name, e.tables);
11461
- a && (r.push(a), i.alias && s.set(st(i.alias), a));
11500
+ a && (r.push(a), i.alias && s.set(it(i.alias), a));
11462
11501
  }), r.length ? { tables: Ii(r), aliases: s } : null;
11463
11502
  }
11464
11503
  function qu(t) {
@@ -11479,16 +11518,16 @@ function Uu(t) {
11479
11518
  return e;
11480
11519
  }
11481
11520
  function er(t, e) {
11482
- const n = st(t), r = st(Js(t));
11521
+ const n = it(t), r = it(Js(t));
11483
11522
  return e.find(
11484
- (s) => s.normalizedName === n || st(Js(s.name)) === r
11523
+ (s) => s.normalizedName === n || it(Js(s.name)) === r
11485
11524
  );
11486
11525
  }
11487
11526
  function Ii(t) {
11488
11527
  const e = /* @__PURE__ */ new Set();
11489
11528
  return t.filter((n) => e.has(n.id) ? !1 : (e.add(n.id), !0));
11490
11529
  }
11491
- const gn = (t) => Array.from(new Set(t)), wt = {
11530
+ const gn = (t) => Array.from(new Set(t)), yt = {
11492
11531
  Field: 5,
11493
11532
  Function: 3,
11494
11533
  Keyword: 14,