@langsword/trace 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trace.es.js CHANGED
@@ -1,11 +1,11 @@
1
- import { defineStore as Lu } from "pinia";
2
- import _u from "axios";
3
- var xo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, va = { exports: {} }, yo;
1
+ import { defineStore as Su } from "pinia";
2
+ import ku from "axios";
3
+ var bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, va = { exports: {} }, yo;
4
4
  function fr() {
5
5
  return yo || (yo = 1, function(y, f) {
6
6
  (function(h, P) {
7
7
  y.exports = P();
8
- })(xo, function() {
8
+ })(bo, function() {
9
9
  var h = navigator.userAgent, P = navigator.platform, T = /gecko\/\d/i.test(h), E = /MSIE \d/.test(h), O = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(h), C = /Edge\/(\d+)/.exec(h), _ = E || O || C, b = _ && (E ? document.documentMode || 6 : +(C || O)[1]), D = !C && /WebKit\//.test(h), Q = D && /Qt\/\d+\.\d+/.test(h), N = !C && /Chrome\/(\d+)/.exec(h), Y = N && +N[1], B = /Opera\//.test(h), j = /Apple Computer/.test(navigator.vendor), I = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(h), x = /PhantomJS/.test(h), k = j && (/Mobile\/\w+/.test(h) || navigator.maxTouchPoints > 2), W = /Android/.test(h), X = k || W || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(h), Z = k || /Mac/.test(P), ie = /\bCrOS\b/.test(h), se = /win/i.test(P), fe = B && h.match(/Version\/(\d*\.\d*)/);
10
10
  fe && (fe = Number(fe[1])), fe && fe >= 15 && (B = !1, D = !0);
11
11
  var Ie = Z && (Q || B && (fe == null || fe < 12.11)), Ne = T || _ && b >= 9;
@@ -663,9 +663,9 @@ b`.split(/\n/).length != 3 ? function(e) {
663
663
  if (t.line < e.first)
664
664
  return S(e.first, 0);
665
665
  var n = e.first + e.size - 1;
666
- return t.line > n ? S(n, J(e, n).text.length) : _o(t, J(e, t.line).text.length);
666
+ return t.line > n ? S(n, J(e, n).text.length) : ko(t, J(e, t.line).text.length);
667
667
  }
668
- function _o(e, t) {
668
+ function ko(e, t) {
669
669
  var n = e.ch;
670
670
  return n == null || n > t ? S(e.line, t) : n < 0 ? S(e.line, 0) : e;
671
671
  }
@@ -744,7 +744,7 @@ b`.split(/\n/).length != 3 ? function(e) {
744
744
  var r = e.doc, i = e.display;
745
745
  if (!r.mode.startState)
746
746
  return new At(r, !0, t);
747
- var a = Do(e, t, n), s = a > r.first && J(r, a - 1).stateAfter, o = s ? At.fromSaved(r, s, a) : new At(r, Nr(r.mode), a);
747
+ var a = To(e, t, n), s = a > r.first && J(r, a - 1).stateAfter, o = s ? At.fromSaved(r, s, a) : new At(r, Nr(r.mode), a);
748
748
  return r.iter(a, t, function(l) {
749
749
  Ci(e, l.text, o);
750
750
  var u = o.line;
@@ -818,7 +818,7 @@ b`.split(/\n/).length != 3 ? function(e) {
818
818
  i(L, u), l = L;
819
819
  }
820
820
  }
821
- function Do(e, t, n) {
821
+ function To(e, t, n) {
822
822
  for (var r, i, a = e.doc, s = n ? -1 : t - (e.doc.mode.innerMode ? 1e3 : 100), o = t; o > s; --o) {
823
823
  if (o <= a.first)
824
824
  return a.first;
@@ -830,7 +830,7 @@ b`.split(/\n/).length != 3 ? function(e) {
830
830
  }
831
831
  return i;
832
832
  }
833
- function Oo(e, t) {
833
+ function Lo(e, t) {
834
834
  if (e.modeFrontier = Math.min(e.modeFrontier, t), !(e.highlightFrontier < t - 10)) {
835
835
  for (var n = e.first, r = t - 1; r > n; r--) {
836
836
  var i = J(e, r).stateAfter;
@@ -843,10 +843,10 @@ b`.split(/\n/).length != 3 ? function(e) {
843
843
  }
844
844
  }
845
845
  var La = !1, zt = !1;
846
- function Mo() {
846
+ function _o() {
847
847
  La = !0;
848
848
  }
849
- function No() {
849
+ function Do() {
850
850
  zt = !0;
851
851
  }
852
852
  function zn(e, t, n) {
@@ -860,16 +860,16 @@ b`.split(/\n/).length != 3 ? function(e) {
860
860
  return r;
861
861
  }
862
862
  }
863
- function Ao(e, t) {
863
+ function Oo(e, t) {
864
864
  for (var n, r = 0; r < e.length; ++r)
865
865
  e[r] != t && (n || (n = [])).push(e[r]);
866
866
  return n;
867
867
  }
868
- function Io(e, t, n) {
868
+ function Mo(e, t, n) {
869
869
  var r = n && window.WeakSet && (n.markedSpans || (n.markedSpans = /* @__PURE__ */ new WeakSet()));
870
870
  r && e.markedSpans && r.has(e.markedSpans) ? e.markedSpans.push(t) : (e.markedSpans = e.markedSpans ? e.markedSpans.concat([t]) : [t], r && r.add(e.markedSpans)), t.marker.attachLine(e);
871
871
  }
872
- function Ro(e, t, n) {
872
+ function No(e, t, n) {
873
873
  var r;
874
874
  if (e)
875
875
  for (var i = 0; i < e.length; ++i) {
@@ -881,7 +881,7 @@ b`.split(/\n/).length != 3 ? function(e) {
881
881
  }
882
882
  return r;
883
883
  }
884
- function Eo(e, t, n) {
884
+ function Ao(e, t, n) {
885
885
  var r;
886
886
  if (e)
887
887
  for (var i = 0; i < e.length; ++i) {
@@ -903,7 +903,7 @@ b`.split(/\n/).length != 3 ? function(e) {
903
903
  var n = M(e, t.from.line) && J(e, t.from.line).markedSpans, r = M(e, t.to.line) && J(e, t.to.line).markedSpans;
904
904
  if (!n && !r)
905
905
  return null;
906
- var i = t.from.ch, a = t.to.ch, s = G(t.from, t.to) == 0, o = Ro(n, i, s), l = Eo(r, a, s), u = t.text.length == 1, d = he(t.text).length + (u ? i : 0);
906
+ var i = t.from.ch, a = t.to.ch, s = G(t.from, t.to) == 0, o = No(n, i, s), l = Ao(r, a, s), u = t.text.length == 1, d = he(t.text).length + (u ? i : 0);
907
907
  if (o)
908
908
  for (var v = 0; v < o.length; ++v) {
909
909
  var w = o[v];
@@ -941,7 +941,7 @@ b`.split(/\n/).length != 3 ? function(e) {
941
941
  }
942
942
  return e.length ? e : null;
943
943
  }
944
- function Po(e, t, n) {
944
+ function Io(e, t, n) {
945
945
  var r = null;
946
946
  if (e.iter(t.line, n.line + 1, function(m) {
947
947
  if (m.markedSpans)
@@ -1005,7 +1005,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1005
1005
  function Kn(e) {
1006
1006
  return Ma(e, !1);
1007
1007
  }
1008
- function Wo(e, t) {
1008
+ function Ro(e, t) {
1009
1009
  var n = zt && e.markedSpans, r;
1010
1010
  if (n)
1011
1011
  for (var i = 0; i < n.length; ++i) {
@@ -1031,12 +1031,12 @@ b`.split(/\n/).length != 3 ? function(e) {
1031
1031
  e = t.find(-1, !0).line;
1032
1032
  return e;
1033
1033
  }
1034
- function Ho(e) {
1034
+ function Eo(e) {
1035
1035
  for (var t; t = Kn(e); )
1036
1036
  e = t.find(1, !0).line;
1037
1037
  return e;
1038
1038
  }
1039
- function Fo(e) {
1039
+ function Po(e) {
1040
1040
  for (var t, n; t = Kn(e); )
1041
1041
  e = t.find(1, !0).line, (n || (n = [])).push(e);
1042
1042
  return n;
@@ -1121,19 +1121,19 @@ b`.split(/\n/).length != 3 ? function(e) {
1121
1121
  Ir.prototype.lineNo = function() {
1122
1122
  return c(this);
1123
1123
  }, mt(Ir);
1124
- function Bo(e, t, n, r) {
1124
+ function Wo(e, t, n, r) {
1125
1125
  e.text = t, e.stateAfter && (e.stateAfter = null), e.styles && (e.styles = null), e.order != null && (e.order = null), Da(e), Oa(e, n);
1126
1126
  var i = r ? r(e) : 1;
1127
1127
  i != e.height && dt(e, i);
1128
1128
  }
1129
- function zo(e) {
1129
+ function Ho(e) {
1130
1130
  e.parent = null, Da(e);
1131
1131
  }
1132
- var Uo = {}, Go = {};
1132
+ var Fo = {}, Bo = {};
1133
1133
  function Ra(e, t) {
1134
1134
  if (!e || /^\s*$/.test(e))
1135
1135
  return null;
1136
- var n = t.addModeClass ? Go : Uo;
1136
+ var n = t.addModeClass ? Bo : Fo;
1137
1137
  return n[e] || (n[e] = e.replace(/\S+/g, "cm-$&"));
1138
1138
  }
1139
1139
  function Ea(e, t) {
@@ -1149,9 +1149,9 @@ b`.split(/\n/).length != 3 ? function(e) {
1149
1149
  t.measure = {};
1150
1150
  for (var i = 0; i <= (t.rest ? t.rest.length : 0); i++) {
1151
1151
  var a = i ? t.rest[i - 1] : t.line, s = void 0;
1152
- r.pos = 0, r.addToken = $o, Zt(e.display.measure) && (s = ce(a, e.doc.direction)) && (r.addToken = Xo(r.addToken, s)), r.map = [];
1152
+ r.pos = 0, r.addToken = Uo, Zt(e.display.measure) && (s = ce(a, e.doc.direction)) && (r.addToken = Ko(r.addToken, s)), r.map = [];
1153
1153
  var o = t != e.display.externalMeasured && c(a);
1154
- Yo(a, r, wa(e, a, o)), a.styleClasses && (a.styleClasses.bgClass && (r.bgClass = Ee(a.styleClasses.bgClass, r.bgClass || "")), a.styleClasses.textClass && (r.textClass = Ee(a.styleClasses.textClass, r.textClass || ""))), r.map.length == 0 && r.map.push(0, 0, r.content.appendChild(Hn(e.display.measure))), i == 0 ? (t.measure.map = r.map, t.measure.cache = {}) : ((t.measure.maps || (t.measure.maps = [])).push(r.map), (t.measure.caches || (t.measure.caches = [])).push({}));
1154
+ $o(a, r, wa(e, a, o)), a.styleClasses && (a.styleClasses.bgClass && (r.bgClass = Ee(a.styleClasses.bgClass, r.bgClass || "")), a.styleClasses.textClass && (r.textClass = Ee(a.styleClasses.textClass, r.textClass || ""))), r.map.length == 0 && r.map.push(0, 0, r.content.appendChild(Hn(e.display.measure))), i == 0 ? (t.measure.map = r.map, t.measure.cache = {}) : ((t.measure.maps || (t.measure.maps = [])).push(r.map), (t.measure.caches || (t.measure.caches = [])).push({}));
1155
1155
  }
1156
1156
  if (D) {
1157
1157
  var l = r.content.lastChild;
@@ -1159,13 +1159,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1159
1159
  }
1160
1160
  return Ce(e, "renderLine", e, t.line, r.pre), r.pre.className && (r.textClass = Ee(r.pre.className, r.textClass || "")), r;
1161
1161
  }
1162
- function Ko(e) {
1162
+ function zo(e) {
1163
1163
  var t = g("span", "•", "cm-invalidchar");
1164
1164
  return t.title = "\\u" + e.charCodeAt(0).toString(16), t.setAttribute("aria-label", t.title), t;
1165
1165
  }
1166
- function $o(e, t, n, r, i, a, s) {
1166
+ function Uo(e, t, n, r, i, a, s) {
1167
1167
  if (t) {
1168
- var o = e.splitSpaces ? qo(t, e.trailingSpace) : t, l = e.cm.state.specialChars, u = !1, d;
1168
+ var o = e.splitSpaces ? Go(t, e.trailingSpace) : t, l = e.cm.state.specialChars, u = !1, d;
1169
1169
  if (!l.test(t))
1170
1170
  e.col += t.length, d = document.createTextNode(o), e.map.push(e.pos, e.pos + t.length, d), _ && b < 9 && (u = !0), e.pos += t.length;
1171
1171
  else {
@@ -1201,7 +1201,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1201
1201
  e.content.appendChild(d);
1202
1202
  }
1203
1203
  }
1204
- function qo(e, t) {
1204
+ function Go(e, t) {
1205
1205
  if (e.length > 1 && !/ /.test(e))
1206
1206
  return e;
1207
1207
  for (var n = t, r = "", i = 0; i < e.length; i++) {
@@ -1210,7 +1210,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1210
1210
  }
1211
1211
  return r;
1212
1212
  }
1213
- function Xo(e, t) {
1213
+ function Ko(e, t) {
1214
1214
  return function(n, r, i, a, s, o, l) {
1215
1215
  i = i ? i + " cm-force-border" : "cm-force-border";
1216
1216
  for (var u = n.pos, d = u + r.length; ; ) {
@@ -1226,7 +1226,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1226
1226
  var i = !r && n.widgetNode;
1227
1227
  i && e.map.push(e.pos, e.pos + t, i), !r && e.cm.display.input.needsContentAttribute && (i || (i = e.content.appendChild(document.createElement("span"))), i.setAttribute("cm-marker", n.id)), i && (e.cm.display.input.setUneditable(i), e.content.appendChild(i)), e.pos += t, e.trailingSpace = !1;
1228
1228
  }
1229
- function Yo(e, t, n) {
1229
+ function $o(e, t, n) {
1230
1230
  var r = e.markedSpans, i = e.text, a = 0;
1231
1231
  if (!r) {
1232
1232
  for (var s = 1; s < n.length; s += 2)
@@ -1292,7 +1292,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1292
1292
  }
1293
1293
  }
1294
1294
  function Wa(e, t, n) {
1295
- this.line = t, this.rest = Fo(t), this.size = this.rest ? c(he(this.rest)) - n + 1 : 1, this.node = this.text = null, this.hidden = tr(e, t);
1295
+ this.line = t, this.rest = Po(t), this.size = this.rest ? c(he(this.rest)) - n + 1 : 1, this.node = this.text = null, this.hidden = tr(e, t);
1296
1296
  }
1297
1297
  function qn(e, t, n) {
1298
1298
  for (var r = [], i, a = t; a < n; a = i) {
@@ -1302,13 +1302,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1302
1302
  return r;
1303
1303
  }
1304
1304
  var Rr = null;
1305
- function Jo(e) {
1305
+ function qo(e) {
1306
1306
  Rr ? Rr.ops.push(e) : e.ownsGroup = Rr = {
1307
1307
  ops: [e],
1308
1308
  delayedCallbacks: []
1309
1309
  };
1310
1310
  }
1311
- function jo(e) {
1311
+ function Xo(e) {
1312
1312
  var t = e.delayedCallbacks, n = 0;
1313
1313
  do {
1314
1314
  for (; n < t.length; n++)
@@ -1321,11 +1321,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1321
1321
  }
1322
1322
  } while (n < t.length);
1323
1323
  }
1324
- function Qo(e, t) {
1324
+ function Yo(e, t) {
1325
1325
  var n = e.ownsGroup;
1326
1326
  if (n)
1327
1327
  try {
1328
- jo(n);
1328
+ Xo(n);
1329
1329
  } finally {
1330
1330
  Rr = null, t(n);
1331
1331
  }
@@ -1335,7 +1335,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1335
1335
  var n = Ft(e, t);
1336
1336
  if (n.length) {
1337
1337
  var r = Array.prototype.slice.call(arguments, 2), i;
1338
- Rr ? i = Rr.delayedCallbacks : on ? i = on : (i = on = [], setTimeout(Zo, 0));
1338
+ Rr ? i = Rr.delayedCallbacks : on ? i = on : (i = on = [], setTimeout(Jo, 0));
1339
1339
  for (var a = function(o) {
1340
1340
  i.push(function() {
1341
1341
  return n[o].apply(null, r);
@@ -1344,7 +1344,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1344
1344
  a(s);
1345
1345
  }
1346
1346
  }
1347
- function Zo() {
1347
+ function Jo() {
1348
1348
  var e = on;
1349
1349
  on = null;
1350
1350
  for (var t = 0; t < e.length; ++t)
@@ -1353,14 +1353,14 @@ b`.split(/\n/).length != 3 ? function(e) {
1353
1353
  function Ha(e, t, n, r) {
1354
1354
  for (var i = 0; i < t.changes.length; i++) {
1355
1355
  var a = t.changes[i];
1356
- a == "text" ? el(e, t) : a == "gutter" ? Ba(e, t, n, r) : a == "class" ? Oi(e, t) : a == "widget" && tl(e, t, r);
1356
+ a == "text" ? Qo(e, t) : a == "gutter" ? Ba(e, t, n, r) : a == "class" ? Oi(e, t) : a == "widget" && Zo(e, t, r);
1357
1357
  }
1358
1358
  t.changes = null;
1359
1359
  }
1360
1360
  function ln(e) {
1361
1361
  return e.node == e.text && (e.node = g("div", null, null, "position: relative"), e.text.parentNode && e.text.parentNode.replaceChild(e.node, e.text), e.node.appendChild(e.text), _ && b < 8 && (e.node.style.zIndex = 2)), e.node;
1362
1362
  }
1363
- function Vo(e, t) {
1363
+ function jo(e, t) {
1364
1364
  var n = t.bgClass ? t.bgClass + " " + (t.line.bgClass || "") : t.line.bgClass;
1365
1365
  if (n && (n += " CodeMirror-linebackground"), t.background)
1366
1366
  n ? t.background.className = n : (t.background.parentNode.removeChild(t.background), t.background = null);
@@ -1373,12 +1373,12 @@ b`.split(/\n/).length != 3 ? function(e) {
1373
1373
  var n = e.display.externalMeasured;
1374
1374
  return n && n.line == t.line ? (e.display.externalMeasured = null, t.measure = n.measure, n.built) : Ea(e, t);
1375
1375
  }
1376
- function el(e, t) {
1376
+ function Qo(e, t) {
1377
1377
  var n = t.text.className, r = Fa(e, t);
1378
1378
  t.text == t.node && (t.node = r.pre), t.text.parentNode.replaceChild(r.pre, t.text), t.text = r.pre, r.bgClass != t.bgClass || r.textClass != t.textClass ? (t.bgClass = r.bgClass, t.textClass = r.textClass, Oi(e, t)) : n && (t.text.className = n);
1379
1379
  }
1380
1380
  function Oi(e, t) {
1381
- Vo(e, t), t.line.wrapClass ? ln(t).className = t.line.wrapClass : t.node != t.text && (t.node.className = "");
1381
+ jo(e, t), t.line.wrapClass ? ln(t).className = t.line.wrapClass : t.node != t.text && (t.node.className = "");
1382
1382
  var n = t.textClass ? t.textClass + " " + (t.line.textClass || "") : t.line.textClass;
1383
1383
  t.text.className = n || "";
1384
1384
  }
@@ -1414,13 +1414,13 @@ b`.split(/\n/).length != 3 ? function(e) {
1414
1414
  }
1415
1415
  }
1416
1416
  }
1417
- function tl(e, t, n) {
1417
+ function Zo(e, t, n) {
1418
1418
  t.alignable && (t.alignable = null);
1419
1419
  for (var r = ye("CodeMirror-linewidget"), i = t.node.firstChild, a = void 0; i; i = a)
1420
1420
  a = i.nextSibling, r.test(i.className) && t.node.removeChild(i);
1421
1421
  za(e, t, n);
1422
1422
  }
1423
- function rl(e, t, n, r) {
1423
+ function Vo(e, t, n, r) {
1424
1424
  var i = Fa(e, t);
1425
1425
  return t.text = t.node = i.pre, i.bgClass && (t.bgClass = i.bgClass), i.textClass && (t.textClass = i.textClass), Oi(e, t), Ba(e, t, n, r), za(e, t, r), t.node;
1426
1426
  }
@@ -1433,10 +1433,10 @@ b`.split(/\n/).length != 3 ? function(e) {
1433
1433
  if (t.widgets)
1434
1434
  for (var a = ln(n), s = 0, o = t.widgets; s < o.length; ++s) {
1435
1435
  var l = o[s], u = g("div", [l.node], "CodeMirror-linewidget" + (l.className ? " " + l.className : ""));
1436
- l.handleMouseEvents || u.setAttribute("cm-ignore-events", "true"), nl(l, u, n, r), e.display.input.setUneditable(u), i && l.above ? a.insertBefore(u, n.gutter || n.text) : a.appendChild(u), He(l, "redraw");
1436
+ l.handleMouseEvents || u.setAttribute("cm-ignore-events", "true"), el(l, u, n, r), e.display.input.setUneditable(u), i && l.above ? a.insertBefore(u, n.gutter || n.text) : a.appendChild(u), He(l, "redraw");
1437
1437
  }
1438
1438
  }
1439
- function nl(e, t, n, r) {
1439
+ function el(e, t, n, r) {
1440
1440
  if (e.noHScroll) {
1441
1441
  (n.alignable || (n.alignable = [])).push(t);
1442
1442
  var i = r.wrapperWidth;
@@ -1482,7 +1482,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1482
1482
  function Ni(e) {
1483
1483
  return e.display.scroller.clientHeight - It(e) - e.display.barHeight;
1484
1484
  }
1485
- function il(e, t, n) {
1485
+ function tl(e, t, n) {
1486
1486
  var r = e.options.lineWrapping, i = r && vr(e);
1487
1487
  if (!t.measure.heights || r && t.measure.width != i) {
1488
1488
  var a = t.measure.heights = [];
@@ -1508,7 +1508,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1508
1508
  return { map: e.measure.maps[i], cache: e.measure.caches[i], before: !0 };
1509
1509
  }
1510
1510
  }
1511
- function al(e, t) {
1511
+ function rl(e, t) {
1512
1512
  t = St(t);
1513
1513
  var n = c(t), r = e.display.externalMeasured = new Wa(e.doc, t, n);
1514
1514
  r.lineN = n;
@@ -1527,7 +1527,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1527
1527
  }
1528
1528
  function Er(e, t) {
1529
1529
  var n = c(t), r = Ai(e, n);
1530
- r && !r.text ? r = null : r && r.changes && (Ha(e, r, n, Wi(e)), e.curOp.forceUpdate = !0), r || (r = al(e, t));
1530
+ r && !r.text ? r = null : r && r.changes && (Ha(e, r, n, Wi(e)), e.curOp.forceUpdate = !0), r || (r = rl(e, t));
1531
1531
  var i = Ka(r, t, n);
1532
1532
  return {
1533
1533
  line: t,
@@ -1542,7 +1542,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1542
1542
  function Rt(e, t, n, r, i) {
1543
1543
  t.before && (n = -1);
1544
1544
  var a = n + (r || ""), s;
1545
- return t.cache.hasOwnProperty(a) ? s = t.cache[a] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (il(e, t.view, t.rect), t.hasHeights = !0), s = ol(e, t, n, r), s.bogus || (t.cache[a] = s)), {
1545
+ return t.cache.hasOwnProperty(a) ? s = t.cache[a] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (tl(e, t.view, t.rect), t.hasHeights = !0), s = il(e, t, n, r), s.bogus || (t.cache[a] = s)), {
1546
1546
  left: s.left,
1547
1547
  right: s.right,
1548
1548
  top: i ? s.rtop : s.top,
@@ -1563,7 +1563,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1563
1563
  }
1564
1564
  return { node: r, start: i, end: a, collapse: s, coverStart: o, coverEnd: l };
1565
1565
  }
1566
- function sl(e, t) {
1566
+ function nl(e, t) {
1567
1567
  var n = qa;
1568
1568
  if (t == "left")
1569
1569
  for (var r = 0; r < e.length && (n = e[r]).left == n.right; r++)
@@ -1573,7 +1573,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1573
1573
  ;
1574
1574
  return n;
1575
1575
  }
1576
- function ol(e, t, n, r) {
1576
+ function il(e, t, n, r) {
1577
1577
  var i = Xa(t.map, n, r), a = i.node, s = i.start, o = i.end, l = i.collapse, u;
1578
1578
  if (a.nodeType == 3) {
1579
1579
  for (var d = 0; d < 4; d++) {
@@ -1581,11 +1581,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1581
1581
  --s;
1582
1582
  for (; i.coverStart + o < i.coverEnd && De(t.line.text.charAt(i.coverStart + o)); )
1583
1583
  ++o;
1584
- if (_ && b < 9 && s == 0 && o == i.coverEnd - i.coverStart ? u = a.parentNode.getBoundingClientRect() : u = sl(Ke(a, s, o).getClientRects(), r), u.left || u.right || s == 0)
1584
+ if (_ && b < 9 && s == 0 && o == i.coverEnd - i.coverStart ? u = a.parentNode.getBoundingClientRect() : u = nl(Ke(a, s, o).getClientRects(), r), u.left || u.right || s == 0)
1585
1585
  break;
1586
1586
  o = s, s = s - 1, l = "right";
1587
1587
  }
1588
- _ && b < 11 && (u = ll(e.display.measure, u));
1588
+ _ && b < 11 && (u = al(e.display.measure, u));
1589
1589
  } else {
1590
1590
  s > 0 && (l = r = "right");
1591
1591
  var v;
@@ -1605,7 +1605,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1605
1605
  };
1606
1606
  return !u.left && !u.right && (q.bogus = !0), e.options.singleCursorHeightPerLine || (q.rtop = m, q.rbottom = L), q;
1607
1607
  }
1608
- function ll(e, t) {
1608
+ function al(e, t) {
1609
1609
  if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !xi(e))
1610
1610
  return t;
1611
1611
  var n = screen.logicalXDPI / screen.deviceXDPI, r = screen.logicalYDPI / screen.deviceYDPI;
@@ -1710,7 +1710,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1710
1710
  return Ri(r.first + r.size - 1, J(r, a).text.length, null, 1, 1);
1711
1711
  t < 0 && (t = 0);
1712
1712
  for (var s = J(r, i); ; ) {
1713
- var o = ul(e, s, i, t, n), l = Wo(s, o.ch + (o.xRel > 0 || o.outside > 0 ? 1 : 0));
1713
+ var o = sl(e, s, i, t, n), l = Ro(s, o.ch + (o.xRel > 0 || o.outside > 0 ? 1 : 0));
1714
1714
  if (!l)
1715
1715
  return o;
1716
1716
  var u = l.find(1);
@@ -1736,11 +1736,11 @@ b`.split(/\n/).length != 3 ? function(e) {
1736
1736
  function Pi(e, t, n, r) {
1737
1737
  return e.bottom <= n ? !1 : e.top > n ? !0 : (r ? e.left : e.right) > t;
1738
1738
  }
1739
- function ul(e, t, n, r, i) {
1739
+ function sl(e, t, n, r, i) {
1740
1740
  i -= Ut(t);
1741
1741
  var a = Er(e, t), s = Ii(t), o = 0, l = t.text.length, u = !0, d = ce(t, e.doc.direction);
1742
1742
  if (d) {
1743
- var v = (e.options.lineWrapping ? cl : fl)(e, t, n, a, d, r, i);
1743
+ var v = (e.options.lineWrapping ? ll : ol)(e, t, n, a, d, r, i);
1744
1744
  u = v.level != 1, o = u ? v.from : v.to - 1, l = u ? v.to : v.from - 1;
1745
1745
  }
1746
1746
  var w = null, m = null, L = Mt(function(te) {
@@ -1757,7 +1757,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1757
1757
  }
1758
1758
  return L = Yt(t.text, L, 1), Ri(n, L, F, z, r - A);
1759
1759
  }
1760
- function fl(e, t, n, r, i, a, s) {
1760
+ function ol(e, t, n, r, i, a, s) {
1761
1761
  var o = Mt(function(v) {
1762
1762
  var w = i[v], m = w.level != 1;
1763
1763
  return Pi(kt(
@@ -1780,7 +1780,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1780
1780
  }
1781
1781
  return l;
1782
1782
  }
1783
- function cl(e, t, n, r, i, a, s) {
1783
+ function ll(e, t, n, r, i, a, s) {
1784
1784
  var o = es(e, t, r, s), l = o.begin, u = o.end;
1785
1785
  /\s/.test(t.text.charAt(u - 1)) && u--;
1786
1786
  for (var d = null, v = null, w = 0; w < i.length; w++) {
@@ -1931,7 +1931,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1931
1931
  }
1932
1932
  return { index: i, lineN: n };
1933
1933
  }
1934
- function hl(e, t, n) {
1934
+ function ul(e, t, n) {
1935
1935
  var r = e.display, i = r.view;
1936
1936
  i.length == 0 || t >= r.viewTo || n <= r.viewFrom ? (r.view = qn(e, t, n), r.viewFrom = t) : (r.viewFrom > t ? r.view = qn(e, t, r.viewFrom).concat(r.view) : r.viewFrom < t && (r.view = r.view.slice(mr(e, t))), r.viewFrom = t, r.viewTo < n ? r.view = r.view.concat(qn(e, r.viewTo, n)) : r.viewTo > n && (r.view = r.view.slice(0, mr(e, n)))), r.viewTo = n;
1937
1937
  }
@@ -1958,7 +1958,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1958
1958
  var d = s(e, l);
1959
1959
  d && Bi(e, d, i);
1960
1960
  } else (u || e.options.showCursorWhenSelecting) && Bi(e, l.head, i);
1961
- u || dl(e, l, a);
1961
+ u || fl(e, l, a);
1962
1962
  }
1963
1963
  }
1964
1964
  return r;
@@ -1977,7 +1977,7 @@ b`.split(/\n/).length != 3 ? function(e) {
1977
1977
  function Qn(e, t) {
1978
1978
  return e.top - t.top || e.left - t.left;
1979
1979
  }
1980
- function dl(e, t, n) {
1980
+ function fl(e, t, n) {
1981
1981
  var r = e.display, i = e.doc, a = document.createDocumentFragment(), s = Ga(e.display), o = s.left, l = Math.max(r.sizerWidth, vr(e) - r.sizer.offsetLeft) - s.right, u = i.direction == "ltr";
1982
1982
  function d(U, q, te, V) {
1983
1983
  q < 0 && (q = 0), q = Math.round(q), V = Math.round(V), a.appendChild(g("div", null, "CodeMirror-selected", "position: absolute; left: " + U + `px;
@@ -2083,7 +2083,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2083
2083
  }
2084
2084
  return { from: a, to: Math.max(s, a + 1) };
2085
2085
  }
2086
- function pl(e, t) {
2086
+ function cl(e, t) {
2087
2087
  if (!Se(e, "scrollCursorIntoView")) {
2088
2088
  var n = e.display, r = n.sizer.getBoundingClientRect(), i = null, a = n.wrapper.ownerDocument;
2089
2089
  if (t.top + r.top < 0 ? i = !0 : t.bottom + r.top > (a.defaultView.innerHeight || a.documentElement.clientHeight) && (i = !1), i != null && !x) {
@@ -2095,7 +2095,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2095
2095
  }
2096
2096
  }
2097
2097
  }
2098
- function vl(e, t, n, r) {
2098
+ function hl(e, t, n, r) {
2099
2099
  r == null && (r = 0);
2100
2100
  var i;
2101
2101
  !e.options.lineWrapping && t == n && (n = t.sticky == "before" ? S(t.line, t.ch + 1, "before") : t, t = t.ch ? S(t.line, t.sticky == "before" ? t.ch - 1 : t.ch, "after") : t);
@@ -2113,7 +2113,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2113
2113
  }
2114
2114
  return i;
2115
2115
  }
2116
- function gl(e, t) {
2116
+ function dl(e, t) {
2117
2117
  var n = Ki(e, t);
2118
2118
  n.scrollTop != null && dn(e, n.scrollTop), n.scrollLeft != null && br(e, n.scrollLeft);
2119
2119
  }
@@ -2143,7 +2143,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2143
2143
  function hn(e, t, n) {
2144
2144
  (t != null || n != null) && ei(e), t != null && (e.curOp.scrollLeft = t), n != null && (e.curOp.scrollTop = n);
2145
2145
  }
2146
- function yl(e, t) {
2146
+ function pl(e, t) {
2147
2147
  ei(e), e.curOp.scrollToPos = t;
2148
2148
  }
2149
2149
  function ei(e) {
@@ -2260,7 +2260,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2260
2260
  n == "horizontal" ? br(e, t) : dn(e, t);
2261
2261
  }, e), e.display.scrollbars.addClass && xe(e.display.wrapper, e.display.scrollbars.addClass);
2262
2262
  }
2263
- var ml = 0;
2263
+ var vl = 0;
2264
2264
  function xr(e) {
2265
2265
  e.curOp = {
2266
2266
  cm: e,
@@ -2290,59 +2290,59 @@ b`.split(/\n/).length != 3 ? function(e) {
2290
2290
  scrollToPos: null,
2291
2291
  // Used to scroll to a specific position
2292
2292
  focus: !1,
2293
- id: ++ml,
2293
+ id: ++vl,
2294
2294
  // Unique ID
2295
2295
  markArrays: null
2296
2296
  // Used by addMarkedSpan
2297
- }, Jo(e.curOp);
2297
+ }, qo(e.curOp);
2298
2298
  }
2299
2299
  function Cr(e) {
2300
2300
  var t = e.curOp;
2301
- t && Qo(t, function(n) {
2301
+ t && Yo(t, function(n) {
2302
2302
  for (var r = 0; r < n.ops.length; r++)
2303
2303
  n.ops[r].cm.curOp = null;
2304
- bl(n);
2304
+ gl(n);
2305
2305
  });
2306
2306
  }
2307
- function bl(e) {
2307
+ function gl(e) {
2308
2308
  for (var t = e.ops, n = 0; n < t.length; n++)
2309
- wl(t[n]);
2309
+ yl(t[n]);
2310
2310
  for (var r = 0; r < t.length; r++)
2311
- xl(t[r]);
2311
+ ml(t[r]);
2312
2312
  for (var i = 0; i < t.length; i++)
2313
- Cl(t[i]);
2313
+ bl(t[i]);
2314
2314
  for (var a = 0; a < t.length; a++)
2315
- Sl(t[a]);
2315
+ wl(t[a]);
2316
2316
  for (var s = 0; s < t.length; s++)
2317
- kl(t[s]);
2317
+ xl(t[s]);
2318
2318
  }
2319
- function wl(e) {
2319
+ function yl(e) {
2320
2320
  var t = e.cm, n = t.display;
2321
- Ll(t), e.updateMaxLine && Di(t), e.mustUpdate = e.viewChanged || e.forceUpdate || e.scrollTop != null || e.scrollToPos && (e.scrollToPos.from.line < n.viewFrom || e.scrollToPos.to.line >= n.viewTo) || n.maxLineChanged && t.options.lineWrapping, e.update = e.mustUpdate && new ti(t, e.mustUpdate && { top: e.scrollTop, ensure: e.scrollToPos }, e.forceUpdate);
2321
+ Sl(t), e.updateMaxLine && Di(t), e.mustUpdate = e.viewChanged || e.forceUpdate || e.scrollTop != null || e.scrollToPos && (e.scrollToPos.from.line < n.viewFrom || e.scrollToPos.to.line >= n.viewTo) || n.maxLineChanged && t.options.lineWrapping, e.update = e.mustUpdate && new ti(t, e.mustUpdate && { top: e.scrollTop, ensure: e.scrollToPos }, e.forceUpdate);
2322
2322
  }
2323
- function xl(e) {
2323
+ function ml(e) {
2324
2324
  e.updatedDisplay = e.mustUpdate && qi(e.cm, e.update);
2325
2325
  }
2326
- function Cl(e) {
2326
+ function bl(e) {
2327
2327
  var t = e.cm, n = t.display;
2328
2328
  e.updatedDisplay && Zn(t), e.barMeasure = pn(t), n.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = $a(t, n.maxLine, n.maxLine.text.length).left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(n.scroller.clientWidth, n.sizer.offsetLeft + e.adjustWidthTo + It(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, n.sizer.offsetLeft + e.adjustWidthTo - vr(t))), (e.updatedDisplay || e.selectionChanged) && (e.preparedSelection = n.input.prepareSelection());
2329
2329
  }
2330
- function Sl(e) {
2330
+ function wl(e) {
2331
2331
  var t = e.cm;
2332
2332
  e.adjustWidthTo != null && (t.display.sizer.style.minWidth = e.adjustWidthTo + "px", e.maxScrollLeft < t.doc.scrollLeft && br(t, Math.min(t.display.scroller.scrollLeft, e.maxScrollLeft), !0), t.display.maxLineChanged = !1);
2333
2333
  var n = e.focus && e.focus == _e(yt(t));
2334
2334
  e.preparedSelection && t.display.input.showSelection(e.preparedSelection, n), (e.updatedDisplay || e.startHeight != t.doc.height) && Br(t, e.barMeasure), e.updatedDisplay && Ji(t, e.barMeasure), e.selectionChanged && zi(t), t.state.focused && e.updateInput && t.display.input.reset(e.typing), n && as(e.cm);
2335
2335
  }
2336
- function kl(e) {
2336
+ function xl(e) {
2337
2337
  var t = e.cm, n = t.display, r = t.doc;
2338
2338
  if (e.updatedDisplay && hs(t, e.update), n.wheelStartX != null && (e.scrollTop != null || e.scrollLeft != null || e.scrollToPos) && (n.wheelStartX = n.wheelStartY = null), e.scrollTop != null && ls(t, e.scrollTop, e.forceScroll), e.scrollLeft != null && br(t, e.scrollLeft, !0, !0), e.scrollToPos) {
2339
- var i = vl(
2339
+ var i = hl(
2340
2340
  t,
2341
2341
  ne(r, e.scrollToPos.from),
2342
2342
  ne(r, e.scrollToPos.to),
2343
2343
  e.scrollToPos.margin
2344
2344
  );
2345
- pl(t, i);
2345
+ cl(t, i);
2346
2346
  }
2347
2347
  var a = e.maybeHiddenMarkers, s = e.maybeUnhiddenMarkers;
2348
2348
  if (a)
@@ -2401,9 +2401,9 @@ b`.split(/\n/).length != 3 ? function(e) {
2401
2401
  };
2402
2402
  }
2403
2403
  function gn(e, t) {
2404
- e.doc.highlightFrontier < e.display.viewTo && e.state.highlight.set(t, re(Tl, e));
2404
+ e.doc.highlightFrontier < e.display.viewTo && e.state.highlight.set(t, re(Cl, e));
2405
2405
  }
2406
- function Tl(e) {
2406
+ function Cl(e) {
2407
2407
  var t = e.doc;
2408
2408
  if (!(t.highlightFrontier >= e.display.viewTo)) {
2409
2409
  var n = +/* @__PURE__ */ new Date() + e.options.workTime, r = an(e, t.highlightFrontier), i = [];
@@ -2436,11 +2436,11 @@ b`.split(/\n/).length != 3 ? function(e) {
2436
2436
  for (var e = 0; e < this.events.length; e++)
2437
2437
  Ce.apply(null, this.events[e]);
2438
2438
  };
2439
- function Ll(e) {
2439
+ function Sl(e) {
2440
2440
  var t = e.display;
2441
2441
  !t.scrollbarsClipped && t.scroller.offsetWidth && (t.nativeBarWidth = t.scroller.offsetWidth - t.scroller.clientWidth, t.heightForcer.style.height = It(e) + "px", t.sizer.style.marginBottom = -t.nativeBarWidth + "px", t.sizer.style.borderRightWidth = It(e) + "px", t.scrollbarsClipped = !0);
2442
2442
  }
2443
- function _l(e) {
2443
+ function kl(e) {
2444
2444
  if (e.hasFocus())
2445
2445
  return null;
2446
2446
  var t = _e(yt(e));
@@ -2453,7 +2453,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2453
2453
  }
2454
2454
  return n;
2455
2455
  }
2456
- function Dl(e) {
2456
+ function Tl(e) {
2457
2457
  if (!(!e || !e.activeElt || e.activeElt == _e(Pe(e.activeElt))) && (e.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName) && e.anchorNode && Re(document.body, e.anchorNode) && Re(document.body, e.focusNode))) {
2458
2458
  var t = e.activeElt.ownerDocument, n = t.defaultView.getSelection(), r = t.createRange();
2459
2459
  r.setEnd(e.anchorNode, e.anchorOffset), r.collapse(!1), n.removeAllRanges(), n.addRange(r), n.extend(e.focusNode, e.focusOffset);
@@ -2469,12 +2469,12 @@ b`.split(/\n/).length != 3 ? function(e) {
2469
2469
  var i = r.first + r.size, a = Math.max(t.visible.from - e.options.viewportMargin, r.first), s = Math.min(i, t.visible.to + e.options.viewportMargin);
2470
2470
  n.viewFrom < a && a - n.viewFrom < 20 && (a = Math.max(r.first, n.viewFrom)), n.viewTo > s && n.viewTo - s < 20 && (s = Math.min(i, n.viewTo)), zt && (a = Li(e.doc, a), s = Ia(e.doc, s));
2471
2471
  var o = a != n.viewFrom || s != n.viewTo || n.lastWrapHeight != t.wrapperHeight || n.lastWrapWidth != t.wrapperWidth;
2472
- hl(e, a, s), n.viewOffset = Ut(J(e.doc, n.viewFrom)), e.display.mover.style.top = n.viewOffset + "px";
2472
+ ul(e, a, s), n.viewOffset = Ut(J(e.doc, n.viewFrom)), e.display.mover.style.top = n.viewOffset + "px";
2473
2473
  var l = ns(e);
2474
2474
  if (!o && l == 0 && !t.force && n.renderedView == n.view && (n.updateLineNumbers == null || n.updateLineNumbers >= n.viewTo))
2475
2475
  return !1;
2476
- var u = _l(e);
2477
- return l > 4 && (n.lineDiv.style.display = "none"), Ol(e, n.updateLineNumbers, t.dims), l > 4 && (n.lineDiv.style.display = ""), n.renderedView = n.view, Dl(u), R(n.cursorDiv), R(n.selectionDiv), n.gutters.style.height = n.sizer.style.minHeight = 0, o && (n.lastWrapHeight = t.wrapperHeight, n.lastWrapWidth = t.wrapperWidth, gn(e, 400)), n.updateLineNumbers = null, !0;
2476
+ var u = kl(e);
2477
+ return l > 4 && (n.lineDiv.style.display = "none"), Ll(e, n.updateLineNumbers, t.dims), l > 4 && (n.lineDiv.style.display = ""), n.renderedView = n.view, Tl(u), R(n.cursorDiv), R(n.selectionDiv), n.gutters.style.height = n.sizer.style.minHeight = 0, o && (n.lastWrapHeight = t.wrapperHeight, n.lastWrapWidth = t.wrapperWidth, gn(e, 400)), n.updateLineNumbers = null, !0;
2478
2478
  }
2479
2479
  function hs(e, t) {
2480
2480
  for (var n = t.viewport, r = !0; ; r = !1) {
@@ -2498,7 +2498,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2498
2498
  cn(e), Br(e, r), Ji(e, r), n.finish();
2499
2499
  }
2500
2500
  }
2501
- function Ol(e, t, n) {
2501
+ function Ll(e, t, n) {
2502
2502
  var r = e.display, i = e.options.lineNumbers, a = r.lineDiv, s = a.firstChild;
2503
2503
  function o(L) {
2504
2504
  var A = L.nextSibling;
@@ -2507,7 +2507,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2507
2507
  for (var l = r.view, u = r.viewFrom, d = 0; d < l.length; d++) {
2508
2508
  var v = l[d];
2509
2509
  if (!v.hidden) if (!v.node || v.node.parentNode != a) {
2510
- var w = rl(e, v, u, n);
2510
+ var w = Vo(e, v, u, n);
2511
2511
  a.insertBefore(w, s);
2512
2512
  } else {
2513
2513
  for (; s != v.node; )
@@ -2579,7 +2579,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2579
2579
  function yn(e) {
2580
2580
  vs(e.display), rt(e), ds(e);
2581
2581
  }
2582
- function Ml(e, t, n, r) {
2582
+ function _l(e, t, n, r) {
2583
2583
  var i = this;
2584
2584
  this.input = n, i.scrollbarFiller = g("div", null, "CodeMirror-scrollbar-filler"), i.scrollbarFiller.setAttribute("cm-not-content", "true"), i.gutterFiller = g("div", null, "CodeMirror-gutter-filler"), i.gutterFiller.setAttribute("cm-not-content", "true"), i.lineDiv = je("div", null, "CodeMirror-code"), i.selectionDiv = g("div", null, null, "position: relative; z-index: 1"), i.cursorDiv = g("div", null, "CodeMirror-cursors"), i.measure = g("div", null, "CodeMirror-measure"), i.lineMeasure = g("div", null, "CodeMirror-measure"), i.lineSpace = je(
2585
2585
  "div",
@@ -2596,7 +2596,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2596
2596
  var t = e.wheelDeltaX, n = e.wheelDeltaY;
2597
2597
  return t == null && e.detail && e.axis == e.HORIZONTAL_AXIS && (t = e.detail), n == null && e.detail && e.axis == e.VERTICAL_AXIS ? n = e.detail : n == null && (n = e.wheelDelta), { x: t, y: n };
2598
2598
  }
2599
- function Nl(e) {
2599
+ function Dl(e) {
2600
2600
  var t = gs(e);
2601
2601
  return t.x *= Kt, t.y *= Kt, t;
2602
2602
  }
@@ -2720,7 +2720,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2720
2720
  function bs(e, t, n) {
2721
2721
  return e.line == t.line ? S(n.line, e.ch - t.ch + n.ch) : S(n.line + (e.line - t.line), e.ch);
2722
2722
  }
2723
- function Al(e, t, n) {
2723
+ function Ol(e, t, n) {
2724
2724
  for (var r = [], i = S(e.first, 0), a = i, s = 0; s < t.length; s++) {
2725
2725
  var o = t[s], l = bs(o.from, i, a), u = bs(ar(o), i, a);
2726
2726
  if (i = o.to, a = u, n == "around") {
@@ -2747,7 +2747,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2747
2747
  return n ? n[K] : null;
2748
2748
  }
2749
2749
  function a(K, U, q) {
2750
- Bo(K, U, q, r), He(K, "change", K, t);
2750
+ Wo(K, U, q, r), He(K, "change", K, t);
2751
2751
  }
2752
2752
  function s(K, U) {
2753
2753
  for (var q = [], te = K; te < U; ++te)
@@ -2797,7 +2797,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2797
2797
  function Cs(e) {
2798
2798
  (e.doc.direction == "rtl" ? xe : Je)(e.display.lineDiv, "CodeMirror-rtl");
2799
2799
  }
2800
- function Il(e) {
2800
+ function Ml(e) {
2801
2801
  lt(e, function() {
2802
2802
  Cs(e), rt(e);
2803
2803
  });
@@ -2820,7 +2820,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2820
2820
  break;
2821
2821
  }
2822
2822
  }
2823
- function Rl(e, t) {
2823
+ function Nl(e, t) {
2824
2824
  if (t)
2825
2825
  return Ss(e.done), he(e.done);
2826
2826
  if (e.done.length && !he(e.done).ranges)
@@ -2832,7 +2832,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2832
2832
  var i = e.history;
2833
2833
  i.undone.length = 0;
2834
2834
  var a = +/* @__PURE__ */ new Date(), s, o;
2835
- if ((i.lastOp == r || i.lastOrigin == t.origin && t.origin && (t.origin.charAt(0) == "+" && i.lastModTime > a - (e.cm ? e.cm.options.historyEventDelay : 500) || t.origin.charAt(0) == "*")) && (s = Rl(i, i.lastOp == r)))
2835
+ if ((i.lastOp == r || i.lastOrigin == t.origin && t.origin && (t.origin.charAt(0) == "+" && i.lastModTime > a - (e.cm ? e.cm.options.historyEventDelay : 500) || t.origin.charAt(0) == "*")) && (s = Nl(i, i.lastOp == r)))
2836
2836
  o = he(s.changes), G(t.from, t.to) == 0 && G(t.from, o.to) == 0 ? o.to = ar(t) : s.changes.push(ea(e, t));
2837
2837
  else {
2838
2838
  var l = he(i.done);
@@ -2844,13 +2844,13 @@ b`.split(/\n/).length != 3 ? function(e) {
2844
2844
  }
2845
2845
  i.done.push(n), i.generation = ++i.maxGeneration, i.lastModTime = i.lastSelTime = a, i.lastOp = i.lastSelOp = r, i.lastOrigin = i.lastSelOrigin = t.origin, o || Ce(e, "historyAdded");
2846
2846
  }
2847
- function El(e, t, n, r) {
2847
+ function Al(e, t, n, r) {
2848
2848
  var i = t.charAt(0);
2849
2849
  return i == "*" || i == "+" && n.ranges.length == r.ranges.length && n.somethingSelected() == r.somethingSelected() && /* @__PURE__ */ new Date() - e.history.lastSelTime <= (e.cm ? e.cm.options.historyEventDelay : 500);
2850
2850
  }
2851
- function Pl(e, t, n, r) {
2851
+ function Il(e, t, n, r) {
2852
2852
  var i = e.history, a = r && r.origin;
2853
- n == i.lastSelOp || a && i.lastSelOrigin == a && (i.lastModTime == i.lastSelTime && i.lastOrigin == a || El(e, a, he(i.done), t)) ? i.done[i.done.length - 1] = t : ii(t, i.done), i.lastSelTime = +/* @__PURE__ */ new Date(), i.lastSelOrigin = a, i.lastSelOp = n, r && r.clearRedo !== !1 && Ss(i.undone);
2853
+ n == i.lastSelOp || a && i.lastSelOrigin == a && (i.lastModTime == i.lastSelTime && i.lastOrigin == a || Al(e, a, he(i.done), t)) ? i.done[i.done.length - 1] = t : ii(t, i.done), i.lastSelTime = +/* @__PURE__ */ new Date(), i.lastSelOrigin = a, i.lastSelOp = n, r && r.clearRedo !== !1 && Ss(i.undone);
2854
2854
  }
2855
2855
  function ii(e, t) {
2856
2856
  var n = he(t);
@@ -2862,23 +2862,23 @@ b`.split(/\n/).length != 3 ? function(e) {
2862
2862
  s.markedSpans && ((i || (i = t["spans_" + e.id] = {}))[a] = s.markedSpans), ++a;
2863
2863
  });
2864
2864
  }
2865
- function Wl(e) {
2865
+ function Rl(e) {
2866
2866
  if (!e)
2867
2867
  return null;
2868
2868
  for (var t, n = 0; n < e.length; ++n)
2869
2869
  e[n].marker.explicitlyCleared ? t || (t = e.slice(0, n)) : t && t.push(e[n]);
2870
2870
  return t ? t.length ? t : null : e;
2871
2871
  }
2872
- function Hl(e, t) {
2872
+ function El(e, t) {
2873
2873
  var n = t["spans_" + e.id];
2874
2874
  if (!n)
2875
2875
  return null;
2876
2876
  for (var r = [], i = 0; i < t.text.length; ++i)
2877
- r.push(Wl(n[i]));
2877
+ r.push(Rl(n[i]));
2878
2878
  return r;
2879
2879
  }
2880
2880
  function Ls(e, t) {
2881
- var n = Hl(e, t), r = ki(e, t);
2881
+ var n = El(e, t), r = ki(e, t);
2882
2882
  if (!n)
2883
2883
  return r;
2884
2884
  if (!r)
@@ -2941,7 +2941,7 @@ b`.split(/\n/).length != 3 ? function(e) {
2941
2941
  function Ds(e, t, n, r) {
2942
2942
  Xe(e, ir(t, n), r);
2943
2943
  }
2944
- function Fl(e, t, n) {
2944
+ function Pl(e, t, n) {
2945
2945
  var r = {
2946
2946
  ranges: t.ranges,
2947
2947
  update: function(i) {
@@ -2961,10 +2961,10 @@ b`.split(/\n/).length != 3 ? function(e) {
2961
2961
  i && i.ranges ? (r[r.length - 1] = t, si(e, t, n)) : Xe(e, t, n);
2962
2962
  }
2963
2963
  function Xe(e, t, n) {
2964
- si(e, t, n), Pl(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n);
2964
+ si(e, t, n), Il(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n);
2965
2965
  }
2966
2966
  function si(e, t, n) {
2967
- (ot(e, "beforeSelectionChange") || e.cm && ot(e.cm, "beforeSelectionChange")) && (t = Fl(e, t, n));
2967
+ (ot(e, "beforeSelectionChange") || e.cm && ot(e.cm, "beforeSelectionChange")) && (t = Pl(e, t, n));
2968
2968
  var r = n && n.bias || (G(t.primary().head, e.sel.primary().head) < 0 ? -1 : 1);
2969
2969
  Ms(e, As(e, t, r, !0)), !(n && n.scroll === !1) && e.cm && e.cm.getOption("readOnly") != "nocursor" && Fr(e.cm);
2970
2970
  }
@@ -3039,7 +3039,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3039
3039
  return;
3040
3040
  }
3041
3041
  if (!((ot(e, "beforeChange") || e.cm && ot(e.cm, "beforeChange")) && (t = Es(e, t, !0), !t))) {
3042
- var r = La && !n && Po(e, t.from, t.to);
3042
+ var r = La && !n && Io(e, t.from, t.to);
3043
3043
  if (r)
3044
3044
  for (var i = r.length - 1; i >= 0; --i)
3045
3045
  Ps(e, { from: r[i].from, to: r[i].to, text: i ? [""] : t.text, origin: t.origin });
@@ -3130,10 +3130,10 @@ b`.split(/\n/).length != 3 ? function(e) {
3130
3130
  to: S(a, J(e, a).text.length),
3131
3131
  text: [t.text[0]],
3132
3132
  origin: t.origin
3133
- }), t.removed = Bt(e, t.from, t.to), n || (n = Qi(e, t)), e.cm ? Bl(e.cm, t, r) : Vi(e, t, r), si(e, n, ct), e.cantEdit && oi(e, S(e.firstLine(), 0)) && (e.cantEdit = !1);
3133
+ }), t.removed = Bt(e, t.from, t.to), n || (n = Qi(e, t)), e.cm ? Wl(e.cm, t, r) : Vi(e, t, r), si(e, n, ct), e.cantEdit && oi(e, S(e.firstLine(), 0)) && (e.cantEdit = !1);
3134
3134
  }
3135
3135
  }
3136
- function Bl(e, t, n) {
3136
+ function Wl(e, t, n) {
3137
3137
  var r = e.doc, i = e.display, a = t.from, s = t.to, o = !1, l = a.line;
3138
3138
  e.options.lineWrapping || (l = c(St(J(r, a.line))), r.iter(l, s.line + 1, function(m) {
3139
3139
  if (m == i.maxLine)
@@ -3141,7 +3141,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3141
3141
  })), r.sel.contains(t.from, t.to) > -1 && vt(e), Vi(r, t, n, rs(e)), e.options.lineWrapping || (r.iter(l, a.line + t.text.length, function(m) {
3142
3142
  var L = $n(m);
3143
3143
  L > i.maxLineLength && (i.maxLine = m, i.maxLineLength = L, i.maxLineChanged = !0, o = !1);
3144
- }), o && (e.curOp.updateMaxLine = !0)), Oo(r, a.line), gn(e, 400);
3144
+ }), o && (e.curOp.updateMaxLine = !0)), Lo(r, a.line), gn(e, 400);
3145
3145
  var u = t.text.length - (s.line - a.line) - 1;
3146
3146
  t.full ? rt(e) : a.line == s.line && t.text.length == 1 && !ws(e.doc, t) ? rr(e, a.line, "text") : rt(e, a.line, s.line + 1, u);
3147
3147
  var d = ot(e, "changes"), v = ot(e, "change");
@@ -3207,7 +3207,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3207
3207
  removeInner: function(e, t) {
3208
3208
  for (var n = e, r = e + t; n < r; ++n) {
3209
3209
  var i = this.lines[n];
3210
- this.height -= i.height, zo(i), He(i, "delete");
3210
+ this.height -= i.height, Ho(i), He(i, "delete");
3211
3211
  }
3212
3212
  this.lines.splice(e, t);
3213
3213
  },
@@ -3341,7 +3341,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3341
3341
  function zs(e, t, n) {
3342
3342
  Ut(t) < (e.curOp && e.curOp.scrollTop || e.doc.scrollTop) && $i(e, n);
3343
3343
  }
3344
- function zl(e, t, n, r) {
3344
+ function Hl(e, t, n, r) {
3345
3345
  var i = new Sn(e, n, r), a = e.cm;
3346
3346
  return a && i.noHScroll && (a.display.alignWidgets = !0), wn(e, t, "widget", function(s) {
3347
3347
  var o = s.widgets || (s.widgets = []);
@@ -3364,7 +3364,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3364
3364
  }
3365
3365
  for (var r = null, i = null, a = 0; a < this.lines.length; ++a) {
3366
3366
  var s = this.lines[a], o = sn(s.markedSpans, this);
3367
- e && !this.collapsed ? rr(e, c(s), "text") : e && (o.to != null && (i = c(s)), o.from != null && (r = c(s))), s.markedSpans = Ao(s.markedSpans, o), o.from == null && this.collapsed && !tr(this.doc, s) && e && dt(s, Pr(e.display));
3367
+ e && !this.collapsed ? rr(e, c(s), "text") : e && (o.to != null && (i = c(s)), o.from != null && (r = c(s))), s.markedSpans = Oo(s.markedSpans, o), o.from == null && this.collapsed && !tr(this.doc, s) && e && dt(s, Pr(e.display));
3368
3368
  }
3369
3369
  if (e && this.collapsed && !e.options.lineWrapping)
3370
3370
  for (var l = 0; l < this.lines.length; ++l) {
@@ -3409,7 +3409,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3409
3409
  }, mt(or);
3410
3410
  function $r(e, t, n, r, i) {
3411
3411
  if (r && r.shared)
3412
- return Ul(e, t, n, r, i);
3412
+ return Fl(e, t, n, r, i);
3413
3413
  if (e.cm && !e.cm.curOp)
3414
3414
  return Fe(e.cm, $r)(e, t, n, r, i);
3415
3415
  var a = new or(e, i), s = G(t, n);
@@ -3418,12 +3418,12 @@ b`.split(/\n/).length != 3 ? function(e) {
3418
3418
  if (a.replacedWith && (a.collapsed = !0, a.widgetNode = je("span", [a.replacedWith], "CodeMirror-widget"), r.handleMouseEvents || a.widgetNode.setAttribute("cm-ignore-events", "true"), r.insertLeft && (a.widgetNode.insertLeft = !0)), a.collapsed) {
3419
3419
  if (Aa(e, t.line, t, n, a) || t.line != n.line && Aa(e, n.line, t, n, a))
3420
3420
  throw new Error("Inserting collapsed marker partially overlapping an existing one");
3421
- No();
3421
+ Do();
3422
3422
  }
3423
3423
  a.addToHistory && ks(e, { from: t, to: n, origin: "markText" }, e.sel, NaN);
3424
3424
  var o = t.line, l = e.cm, u;
3425
3425
  if (e.iter(o, n.line + 1, function(v) {
3426
- l && a.collapsed && !l.options.lineWrapping && St(v) == l.display.maxLine && (u = !0), a.collapsed && o != t.line && dt(v, 0), Io(v, new zn(
3426
+ l && a.collapsed && !l.options.lineWrapping && St(v) == l.display.maxLine && (u = !0), a.collapsed && o != t.line && dt(v, 0), Mo(v, new zn(
3427
3427
  a,
3428
3428
  o == t.line ? t.ch : null,
3429
3429
  o == n.line ? n.ch : null
@@ -3432,7 +3432,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3432
3432
  tr(e, v) && dt(v, 0);
3433
3433
  }), a.clearOnEnter && ee(a, "beforeCursorEnter", function() {
3434
3434
  return a.clear();
3435
- }), a.readOnly && (Mo(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), a.collapsed && (a.id = ++Us, a.atomic = !0), l) {
3435
+ }), a.readOnly && (_o(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), a.collapsed && (a.id = ++Us, a.atomic = !0), l) {
3436
3436
  if (u && (l.curOp.updateMaxLine = !0), a.collapsed)
3437
3437
  rt(l, t.line, n.line + 1);
3438
3438
  else if (a.className || a.startStyle || a.endStyle || a.css || a.attributes || a.title)
@@ -3457,7 +3457,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3457
3457
  }, kn.prototype.find = function(e, t) {
3458
3458
  return this.primary.find(e, t);
3459
3459
  }, mt(kn);
3460
- function Ul(e, t, n, r, i) {
3460
+ function Fl(e, t, n, r, i) {
3461
3461
  r = ue(r), r.shared = !1;
3462
3462
  var a = [$r(e, t, n, r, i)], s = a[0], o = r.widgetNode;
3463
3463
  return sr(e, function(l) {
@@ -3473,7 +3473,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3473
3473
  return t.parent;
3474
3474
  });
3475
3475
  }
3476
- function Gl(e, t) {
3476
+ function Bl(e, t) {
3477
3477
  for (var n = 0; n < t.length; n++) {
3478
3478
  var r = t[n], i = r.find(), a = e.clipPos(i.from), s = e.clipPos(i.to);
3479
3479
  if (G(a, s)) {
@@ -3482,7 +3482,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3482
3482
  }
3483
3483
  }
3484
3484
  }
3485
- function Kl(e) {
3485
+ function zl(e) {
3486
3486
  for (var t = function(r) {
3487
3487
  var i = e[r], a = [i.primary.doc];
3488
3488
  sr(i.primary.doc, function(l) {
@@ -3494,12 +3494,12 @@ b`.split(/\n/).length != 3 ? function(e) {
3494
3494
  }
3495
3495
  }, n = 0; n < e.length; n++) t(n);
3496
3496
  }
3497
- var $l = 0, nt = function(e, t, n, r, i) {
3497
+ var Ul = 0, nt = function(e, t, n, r, i) {
3498
3498
  if (!(this instanceof nt))
3499
3499
  return new nt(e, t, n, r, i);
3500
3500
  n == null && (n = 0), Cn.call(this, [new xn([new Ir("", null)])]), this.first = n, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = n;
3501
3501
  var a = S(n, 0);
3502
- this.sel = ir(a), this.history = new ni(null), this.id = ++$l, this.modeOption = t, this.lineSep = r, this.direction = i == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof e == "string" && (e = this.splitLines(e)), Vi(this, { from: a, to: a, text: e }), Xe(this, ir(a), ct);
3502
+ this.sel = ir(a), this.history = new ni(null), this.id = ++Ul, this.modeOption = t, this.lineSep = r, this.direction = i == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof e == "string" && (e = this.splitLines(e)), Vi(this, { from: a, to: a, text: e }), Xe(this, ir(a), ct);
3503
3503
  };
3504
3504
  nt.prototype = En(Cn.prototype, {
3505
3505
  constructor: nt,
@@ -3632,7 +3632,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3632
3632
  var s = i.ranges[a];
3633
3633
  r[a] = { from: s.from(), to: s.to(), text: this.splitLines(e[a]), origin: n };
3634
3634
  }
3635
- for (var o = t && t != "end" && Al(this, r, t), l = r.length - 1; l >= 0; l--)
3635
+ for (var o = t && t != "end" && Ol(this, r, t), l = r.length - 1; l >= 0; l--)
3636
3636
  Gr(this, r[l]);
3637
3637
  o ? Os(this, o) : this.cm && Fr(this.cm);
3638
3638
  }),
@@ -3749,7 +3749,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3749
3749
  });
3750
3750
  }),
3751
3751
  addLineWidget: Be(function(e, t, n) {
3752
- return zl(this, e, t, n);
3752
+ return Hl(this, e, t, n);
3753
3753
  }),
3754
3754
  removeLineWidget: function(e) {
3755
3755
  e.clear();
@@ -3833,14 +3833,14 @@ b`.split(/\n/).length != 3 ? function(e) {
3833
3833
  var t = this.first, n = this.first + this.size;
3834
3834
  e.from != null && e.from > t && (t = e.from), e.to != null && e.to < n && (n = e.to);
3835
3835
  var r = new nt(nn(this, t, n), e.mode || this.modeOption, t, this.lineSep, this.direction);
3836
- return e.sharedHist && (r.history = this.history), (this.linked || (this.linked = [])).push({ doc: r, sharedHist: e.sharedHist }), r.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }], Gl(r, Gs(this)), r;
3836
+ return e.sharedHist && (r.history = this.history), (this.linked || (this.linked = [])).push({ doc: r, sharedHist: e.sharedHist }), r.linked = [{ doc: this, isParent: !0, sharedHist: e.sharedHist }], Bl(r, Gs(this)), r;
3837
3837
  },
3838
3838
  unlinkDoc: function(e) {
3839
3839
  if (e instanceof be && (e = e.doc), this.linked)
3840
3840
  for (var t = 0; t < this.linked.length; ++t) {
3841
3841
  var n = this.linked[t];
3842
3842
  if (n.doc == e) {
3843
- this.linked.splice(t, 1), e.unlinkDoc(this), Kl(Gs(this));
3843
+ this.linked.splice(t, 1), e.unlinkDoc(this), zl(Gs(this));
3844
3844
  break;
3845
3845
  }
3846
3846
  }
@@ -3870,11 +3870,11 @@ b`.split(/\n/).length != 3 ? function(e) {
3870
3870
  setDirection: Be(function(e) {
3871
3871
  e != "rtl" && (e = "ltr"), e != this.direction && (this.direction = e, this.iter(function(t) {
3872
3872
  return t.order = null;
3873
- }), this.cm && Il(this.cm));
3873
+ }), this.cm && Ml(this.cm));
3874
3874
  })
3875
3875
  }), nt.prototype.eachLine = nt.prototype.iter;
3876
3876
  var Ks = 0;
3877
- function ql(e) {
3877
+ function Gl(e) {
3878
3878
  var t = this;
3879
3879
  if ($s(t), !(Se(t, e) || Gt(t.display, e))) {
3880
3880
  qe(e), _ && (Ks = +/* @__PURE__ */ new Date());
@@ -3935,7 +3935,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3935
3935
  }
3936
3936
  }
3937
3937
  }
3938
- function Xl(e, t) {
3938
+ function Kl(e, t) {
3939
3939
  if (_ && (!e.state.draggingText || +/* @__PURE__ */ new Date() - Ks < 100)) {
3940
3940
  Qt(t);
3941
3941
  return;
@@ -3945,7 +3945,7 @@ b`.split(/\n/).length != 3 ? function(e) {
3945
3945
  n.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", B && (n.width = n.height = 1, e.display.wrapper.appendChild(n), n._top = n.offsetTop), t.dataTransfer.setDragImage(n, 0, 0), B && n.parentNode.removeChild(n);
3946
3946
  }
3947
3947
  }
3948
- function Yl(e, t) {
3948
+ function $l(e, t) {
3949
3949
  var n = yr(e, t);
3950
3950
  if (n) {
3951
3951
  var r = document.createDocumentFragment();
@@ -3968,20 +3968,20 @@ b`.split(/\n/).length != 3 ? function(e) {
3968
3968
  }
3969
3969
  }
3970
3970
  var Xs = !1;
3971
- function Jl() {
3972
- Xs || (jl(), Xs = !0);
3971
+ function ql() {
3972
+ Xs || (Xl(), Xs = !0);
3973
3973
  }
3974
- function jl() {
3974
+ function Xl() {
3975
3975
  var e;
3976
3976
  ee(window, "resize", function() {
3977
3977
  e == null && (e = setTimeout(function() {
3978
- e = null, qs(Ql);
3978
+ e = null, qs(Yl);
3979
3979
  }, 100));
3980
3980
  }), ee(window, "blur", function() {
3981
3981
  return qs(Hr);
3982
3982
  });
3983
3983
  }
3984
- function Ql(e) {
3984
+ function Yl(e) {
3985
3985
  var t = e.display;
3986
3986
  t.cachedCharWidth = t.cachedTextHeight = t.cachedPaddingH = null, t.scrollbarsClipped = !1, e.setSize();
3987
3987
  }
@@ -4142,7 +4142,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4142
4142
  "Ctrl-Down": "goDocEnd",
4143
4143
  fallthrough: ["basic", "emacsy"]
4144
4144
  }, $t.default = Z ? $t.macDefault : $t.pcDefault;
4145
- function Zl(e) {
4145
+ function Jl(e) {
4146
4146
  var t = e.split(/-(?!$)/);
4147
4147
  e = t[t.length - 1];
4148
4148
  for (var n, r, i, a, s = 0; s < t.length - 1; s++) {
@@ -4160,7 +4160,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4160
4160
  }
4161
4161
  return n && (e = "Alt-" + e), r && (e = "Ctrl-" + e), a && (e = "Cmd-" + e), i && (e = "Shift-" + e), e;
4162
4162
  }
4163
- function Vl(e) {
4163
+ function jl(e) {
4164
4164
  var t = {};
4165
4165
  for (var n in e)
4166
4166
  if (e.hasOwnProperty(n)) {
@@ -4171,7 +4171,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4171
4171
  delete e[n];
4172
4172
  continue;
4173
4173
  }
4174
- for (var i = hr(n.split(" "), Zl), a = 0; a < i.length; a++) {
4174
+ for (var i = hr(n.split(" "), Jl), a = 0; a < i.length; a++) {
4175
4175
  var s = void 0, o = void 0;
4176
4176
  a == i.length - 1 ? (o = i.join(" "), s = r) : (o = i.slice(0, a + 1).join(" "), s = "...");
4177
4177
  var l = t[o];
@@ -4267,7 +4267,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4267
4267
  }
4268
4268
  return new S(r, i < 0 ? n.text.length : 0, i < 0 ? "before" : "after");
4269
4269
  }
4270
- function eu(e, t, n, r) {
4270
+ function Ql(e, t, n, r) {
4271
4271
  var i = ce(t, e.doc.direction);
4272
4272
  if (!i)
4273
4273
  return ia(t, n, r);
@@ -4380,7 +4380,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4380
4380
  goLineEnd: function(e) {
4381
4381
  return e.extendSelectionsBy(
4382
4382
  function(t) {
4383
- return tu(e, t.head.line);
4383
+ return Zl(e, t.head.line);
4384
4384
  },
4385
4385
  { origin: "+move", bias: -1 }
4386
4386
  );
@@ -4536,8 +4536,8 @@ b`.split(/\n/).length != 3 ? function(e) {
4536
4536
  var n = J(e.doc, t), r = St(n);
4537
4537
  return r != n && (t = c(r)), aa(!0, e, r, t, 1);
4538
4538
  }
4539
- function tu(e, t) {
4540
- var n = J(e.doc, t), r = Ho(n);
4539
+ function Zl(e, t) {
4540
+ var n = J(e.doc, t), r = Eo(n);
4541
4541
  return r != n && (t = c(r)), aa(!0, e, n, t, -1);
4542
4542
  }
4543
4543
  function Zs(e, t) {
@@ -4560,7 +4560,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4560
4560
  }
4561
4561
  return i;
4562
4562
  }
4563
- function ru(e, t, n) {
4563
+ function Vl(e, t, n) {
4564
4564
  for (var r = 0; r < e.state.keyMaps.length; r++) {
4565
4565
  var i = qr(t, e.state.keyMaps[r], n, e);
4566
4566
  if (i)
@@ -4568,13 +4568,13 @@ b`.split(/\n/).length != 3 ? function(e) {
4568
4568
  }
4569
4569
  return e.options.extraKeys && qr(t, e.options.extraKeys, n, e) || qr(t, e.options.keyMap, n, e);
4570
4570
  }
4571
- var nu = new _t();
4571
+ var eu = new _t();
4572
4572
  function Dn(e, t, n, r) {
4573
4573
  var i = e.state.keySeq;
4574
4574
  if (i) {
4575
4575
  if (Ys(t))
4576
4576
  return "handled";
4577
- if (/\'$/.test(t) ? e.state.keySeq = null : nu.set(50, function() {
4577
+ if (/\'$/.test(t) ? e.state.keySeq = null : eu.set(50, function() {
4578
4578
  e.state.keySeq == i && (e.state.keySeq = null, e.display.input.reset());
4579
4579
  }), Vs(e, i + " " + t, n, r))
4580
4580
  return !0;
@@ -4582,7 +4582,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4582
4582
  return Vs(e, t, n, r);
4583
4583
  }
4584
4584
  function Vs(e, t, n, r) {
4585
- var i = ru(e, t, r);
4585
+ var i = Vl(e, t, r);
4586
4586
  return i == "multi" && (e.state.keySeq = t), i == "handled" && He(e, "keyHandled", e, t, n), (i == "handled" || i == "multi") && (qe(n), zi(e)), !!i;
4587
4587
  }
4588
4588
  function eo(e, t) {
@@ -4596,7 +4596,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4596
4596
  return ci(e, r);
4597
4597
  }) : !1;
4598
4598
  }
4599
- function iu(e, t, n) {
4599
+ function tu(e, t, n) {
4600
4600
  return Dn(e, "'" + n + "'", t, function(r) {
4601
4601
  return ci(e, r, !0);
4602
4602
  });
@@ -4609,10 +4609,10 @@ b`.split(/\n/).length != 3 ? function(e) {
4609
4609
  var n = e.keyCode;
4610
4610
  t.display.shift = n == 16 || e.shiftKey;
4611
4611
  var r = eo(t, e);
4612
- B && (sa = r ? n : null, !r && n == 88 && !Fn && (Z ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), T && !Z && !r && n == 46 && e.shiftKey && !e.ctrlKey && document.execCommand && document.execCommand("cut"), n == 18 && !/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) && au(t);
4612
+ B && (sa = r ? n : null, !r && n == 88 && !Fn && (Z ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), T && !Z && !r && n == 46 && e.shiftKey && !e.ctrlKey && document.execCommand && document.execCommand("cut"), n == 18 && !/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) && ru(t);
4613
4613
  }
4614
4614
  }
4615
- function au(e) {
4615
+ function ru(e) {
4616
4616
  var t = e.display.lineDiv;
4617
4617
  xe(t, "CodeMirror-crosshair");
4618
4618
  function n(r) {
@@ -4633,18 +4633,18 @@ b`.split(/\n/).length != 3 ? function(e) {
4633
4633
  }
4634
4634
  if (!(B && (!e.which || e.which < 10) && eo(t, e))) {
4635
4635
  var i = String.fromCharCode(r ?? n);
4636
- i != "\b" && (iu(t, e, i) || t.display.input.onKeyPress(e));
4636
+ i != "\b" && (tu(t, e, i) || t.display.input.onKeyPress(e));
4637
4637
  }
4638
4638
  }
4639
4639
  }
4640
- var su = 400, oa = function(e, t, n) {
4640
+ var nu = 400, oa = function(e, t, n) {
4641
4641
  this.time = e, this.pos = t, this.button = n;
4642
4642
  };
4643
4643
  oa.prototype.compare = function(e, t, n) {
4644
- return this.time + su > e && G(t, this.pos) == 0 && n == this.button;
4644
+ return this.time + nu > e && G(t, this.pos) == 0 && n == this.button;
4645
4645
  };
4646
4646
  var On, Mn;
4647
- function ou(e, t) {
4647
+ function iu(e, t) {
4648
4648
  var n = +/* @__PURE__ */ new Date();
4649
4649
  return Mn && Mn.compare(n, e, t) ? (On = Mn = null, "triple") : On && On.compare(n, e, t) ? (Mn = new oa(n, e, t), On = null, "double") : (On = new oa(n, e, t), Mn = null, "single");
4650
4650
  }
@@ -4658,14 +4658,14 @@ b`.split(/\n/).length != 3 ? function(e) {
4658
4658
  return;
4659
4659
  }
4660
4660
  if (!la(t, e)) {
4661
- var r = yr(t, e), i = bt(e), a = r ? ou(r, i) : "single";
4662
- ae(t).focus(), i == 1 && t.state.selectingText && t.state.selectingText(e), !(r && lu(t, i, r, a, e)) && (i == 1 ? r ? fu(t, r, a, e) : en(e) == n.scroller && qe(e) : i == 2 ? (r && ai(t.doc, r), setTimeout(function() {
4661
+ var r = yr(t, e), i = bt(e), a = r ? iu(r, i) : "single";
4662
+ ae(t).focus(), i == 1 && t.state.selectingText && t.state.selectingText(e), !(r && au(t, i, r, a, e)) && (i == 1 ? r ? ou(t, r, a, e) : en(e) == n.scroller && qe(e) : i == 2 ? (r && ai(t.doc, r), setTimeout(function() {
4663
4663
  return n.input.focus();
4664
4664
  }, 20)) : i == 3 && (Ne ? t.display.input.onContextMenu(e) : Ui(t)));
4665
4665
  }
4666
4666
  }
4667
4667
  }
4668
- function lu(e, t, n, r, i) {
4668
+ function au(e, t, n, r, i) {
4669
4669
  var a = "Click";
4670
4670
  return r == "double" ? a = "Double" + a : r == "triple" && (a = "Triple" + a), a = (t == 1 ? "Left" : t == 2 ? "Middle" : "Right") + a, Dn(e, Js(a, i), i, function(s) {
4671
4671
  if (typeof s == "string" && (s = _n[s]), !s)
@@ -4679,7 +4679,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4679
4679
  return o;
4680
4680
  });
4681
4681
  }
4682
- function uu(e, t, n) {
4682
+ function su(e, t, n) {
4683
4683
  var r = e.getOption("configureMouse"), i = r ? r(e, t, n) : {};
4684
4684
  if (i.unit == null) {
4685
4685
  var a = ie ? n.shiftKey && n.metaKey : n.altKey;
@@ -4687,12 +4687,12 @@ b`.split(/\n/).length != 3 ? function(e) {
4687
4687
  }
4688
4688
  return (i.extend == null || e.doc.extend) && (i.extend = e.doc.extend || n.shiftKey), i.addNew == null && (i.addNew = Z ? n.metaKey : n.ctrlKey), i.moveOnDrag == null && (i.moveOnDrag = !(Z ? n.altKey : n.ctrlKey)), i;
4689
4689
  }
4690
- function fu(e, t, n, r) {
4690
+ function ou(e, t, n, r) {
4691
4691
  _ ? setTimeout(re(as, e), 0) : e.curOp.focus = _e(yt(e));
4692
- var i = uu(e, n, r), a = e.doc.sel, s;
4693
- e.options.dragDrop && wi && !e.isReadOnly() && n == "single" && (s = a.contains(t)) > -1 && (G((s = a.ranges[s]).from(), t) < 0 || t.xRel > 0) && (G(s.to(), t) > 0 || t.xRel < 0) ? cu(e, r, t, i) : hu(e, r, t, i);
4692
+ var i = su(e, n, r), a = e.doc.sel, s;
4693
+ e.options.dragDrop && wi && !e.isReadOnly() && n == "single" && (s = a.contains(t)) > -1 && (G((s = a.ranges[s]).from(), t) < 0 || t.xRel > 0) && (G(s.to(), t) > 0 || t.xRel < 0) ? lu(e, r, t, i) : uu(e, r, t, i);
4694
4694
  }
4695
- function cu(e, t, n, r) {
4695
+ function lu(e, t, n, r) {
4696
4696
  var i = e.display, a = !1, s = Fe(e, function(u) {
4697
4697
  D && (i.scroller.draggable = !1), e.state.draggingText = !1, e.state.delayingBlurEvent && (e.hasFocus() ? e.state.delayingBlurEvent = !1 : Ui(e)), $e(i.wrapper.ownerDocument, "mouseup", s), $e(i.wrapper.ownerDocument, "mousemove", o), $e(i.scroller, "dragstart", l), $e(i.scroller, "drop", s), a || (qe(u), r.addNew || ai(e.doc, n, null, null, r.extend), D && !j || _ && b == 9 ? setTimeout(function() {
4698
4698
  i.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), i.input.focus();
@@ -4716,7 +4716,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4716
4716
  var r = n(e, t);
4717
4717
  return new pe(r.from, r.to);
4718
4718
  }
4719
- function hu(e, t, n, r) {
4719
+ function uu(e, t, n, r) {
4720
4720
  _ && Ui(e);
4721
4721
  var i = e.display, a = e.doc;
4722
4722
  qe(t);
@@ -4753,7 +4753,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4753
4753
  var at = s, Ge = ao(e, U, r.unit), Ae = at.anchor, Me;
4754
4754
  G(Ge.anchor, Ae) > 0 ? (Me = Ge.head, Ae = Ar(at.from(), Ge.anchor)) : (Me = Ge.anchor, Ae = tt(at.to(), Ge.head));
4755
4755
  var Te = l.ranges.slice(0);
4756
- Te[o] = du(e, new pe(ne(a, Ae), Me)), Xe(a, Tt(e, Te, o), Dt);
4756
+ Te[o] = fu(e, new pe(ne(a, Ae), Me)), Xe(a, Tt(e, Te, o), Dt);
4757
4757
  }
4758
4758
  }
4759
4759
  var m = i.wrapper.getBoundingClientRect(), L = 0;
@@ -4781,7 +4781,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4781
4781
  }), K = Fe(e, F);
4782
4782
  e.state.selectingText = K, ee(i.wrapper.ownerDocument, "mousemove", z), ee(i.wrapper.ownerDocument, "mouseup", K);
4783
4783
  }
4784
- function du(e, t) {
4784
+ function fu(e, t) {
4785
4785
  var n = t.anchor, r = t.head, i = J(e.doc, n.line);
4786
4786
  if (G(n, r) == 0 && n.sticky == r.sticky)
4787
4787
  return t;
@@ -4833,9 +4833,9 @@ b`.split(/\n/).length != 3 ? function(e) {
4833
4833
  return so(e, t, "gutterClick", !0);
4834
4834
  }
4835
4835
  function oo(e, t) {
4836
- Gt(e.display, t) || pu(e, t) || Se(e, t, "contextmenu") || Ne || e.display.input.onContextMenu(t);
4836
+ Gt(e.display, t) || cu(e, t) || Se(e, t, "contextmenu") || Ne || e.display.input.onContextMenu(t);
4837
4837
  }
4838
- function pu(e, t) {
4838
+ function cu(e, t) {
4839
4839
  return ot(e, "gutterContextMenu") ? so(e, t, "gutterContextMenu", !1) : !1;
4840
4840
  }
4841
4841
  function lo(e) {
@@ -4844,7 +4844,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4844
4844
  var Yr = { toString: function() {
4845
4845
  return "CodeMirror.Init";
4846
4846
  } }, uo = {}, hi = {};
4847
- function vu(e) {
4847
+ function hu(e) {
4848
4848
  var t = e.optionHandlers;
4849
4849
  function n(r, i, a, s) {
4850
4850
  e.defaults[r] = i, a && (t[r] = s ? function(o, l, u) {
@@ -4874,7 +4874,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4874
4874
  }
4875
4875
  }), n("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g, function(r, i, a) {
4876
4876
  r.state.specialChars = new RegExp(i.source + (i.test(" ") ? "" : "| "), "g"), a != Yr && r.refresh();
4877
- }), n("specialCharPlaceholder", Ko, function(r) {
4877
+ }), n("specialCharPlaceholder", zo, function(r) {
4878
4878
  return r.refresh();
4879
4879
  }, !0), n("electricChars", !0), n("inputStyle", X ? "contenteditable" : "textarea", function() {
4880
4880
  throw new Error("inputStyle can not (yet) be changed in a running editor");
@@ -4889,7 +4889,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4889
4889
  }, !0), n("keyMap", "default", function(r, i, a) {
4890
4890
  var s = fi(i), o = a != Yr && fi(a);
4891
4891
  o && o.detach && o.detach(r, s), s.attach && s.attach(r, o || null);
4892
- }), n("extraKeys", null), n("configureMouse", null), n("lineWrapping", !1, yu, !0), n("gutters", [], function(r, i) {
4892
+ }), n("extraKeys", null), n("configureMouse", null), n("lineWrapping", !1, pu, !0), n("gutters", [], function(r, i) {
4893
4893
  r.display.gutterSpecs = ji(i, r.options.lineNumbers), yn(r);
4894
4894
  }, !0), n("fixedGutter", !0, function(r, i) {
4895
4895
  r.display.gutters.style.left = i ? Hi(r.display) + "px" : "0", r.refresh();
@@ -4907,7 +4907,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4907
4907
  i = i === "" ? null : i, r.display.input.screenReaderLabelChanged(i);
4908
4908
  }), n("disableInput", !1, function(r, i) {
4909
4909
  i || r.display.input.reset();
4910
- }, !0), n("dragDrop", !0, gu), n("allowDropFileTypes", null), n("cursorBlinkRate", 530), n("cursorScrollMargin", 0), n("cursorHeight", 1, cn, !0), n("singleCursorHeightPerLine", !0, cn, !0), n("workTime", 100), n("workDelay", 100), n("flattenSpans", !0, mn, !0), n("addModeClass", !1, mn, !0), n("pollInterval", 100), n("undoDepth", 200, function(r, i) {
4910
+ }, !0), n("dragDrop", !0, du), n("allowDropFileTypes", null), n("cursorBlinkRate", 530), n("cursorScrollMargin", 0), n("cursorHeight", 1, cn, !0), n("singleCursorHeightPerLine", !0, cn, !0), n("workTime", 100), n("workDelay", 100), n("flattenSpans", !0, mn, !0), n("addModeClass", !1, mn, !0), n("pollInterval", 100), n("undoDepth", 200, function(r, i) {
4911
4911
  return r.doc.history.undoDepth = i;
4912
4912
  }), n("historyEventDelay", 1250), n("viewportMargin", 10, function(r) {
4913
4913
  return r.refresh();
@@ -4919,14 +4919,14 @@ b`.split(/\n/).length != 3 ? function(e) {
4919
4919
  return r.doc.setDirection(i);
4920
4920
  }, !0), n("phrases", null);
4921
4921
  }
4922
- function gu(e, t, n) {
4922
+ function du(e, t, n) {
4923
4923
  var r = n && n != Yr;
4924
4924
  if (!t != !r) {
4925
4925
  var i = e.display.dragFunctions, a = t ? ee : $e;
4926
4926
  a(e.display.scroller, "dragstart", i.start), a(e.display.scroller, "dragenter", i.enter), a(e.display.scroller, "dragover", i.over), a(e.display.scroller, "dragleave", i.leave), a(e.display.scroller, "drop", i.drop);
4927
4927
  }
4928
4928
  }
4929
- function yu(e) {
4929
+ function pu(e) {
4930
4930
  e.options.lineWrapping ? (xe(e.display.wrapper, "CodeMirror-wrap"), e.display.sizer.style.minWidth = "", e.display.sizerWidth = null) : (Je(e.display.wrapper, "CodeMirror-wrap"), Di(e)), Fi(e), rt(e), fn(e), setTimeout(function() {
4931
4931
  return Br(e);
4932
4932
  }, 100);
@@ -4938,7 +4938,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4938
4938
  this.options = t = t ? ue(t) : {}, ue(uo, t, !1);
4939
4939
  var r = t.value;
4940
4940
  typeof r == "string" ? r = new nt(r, t.mode, null, t.lineSeparator, t.direction) : t.mode && (r.modeOption = t.mode), this.doc = r;
4941
- var i = new be.inputStyles[t.inputStyle](this), a = this.display = new Ml(e, r, i, t);
4941
+ var i = new be.inputStyles[t.inputStyle](this), a = this.display = new _l(e, r, i, t);
4942
4942
  a.wrapper.CodeMirror = this, lo(this), t.lineWrapping && (this.display.wrapper.className += " CodeMirror-wrap"), cs(this), this.state = {
4943
4943
  keyMaps: [],
4944
4944
  // stores maps added by addKeyMap
@@ -4963,7 +4963,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4963
4963
  specialChars: null
4964
4964
  }, t.autofocus && !X && a.input.focus(), _ && b < 11 && setTimeout(function() {
4965
4965
  return n.display.input.reset(!0);
4966
- }, 20), mu(this), Jl(), xr(this), this.curOp.forceUpdate = !0, xs(this, r), t.autofocus && !X || this.hasFocus() ? setTimeout(function() {
4966
+ }, 20), vu(this), ql(), xr(this), this.curOp.forceUpdate = !0, xs(this, r), t.autofocus && !X || this.hasFocus() ? setTimeout(function() {
4967
4967
  n.hasFocus() && !n.state.focused && Gi(n);
4968
4968
  }, 20) : Hr(this);
4969
4969
  for (var s in hi)
@@ -4974,7 +4974,7 @@ b`.split(/\n/).length != 3 ? function(e) {
4974
4974
  Cr(this), D && t.lineWrapping && getComputedStyle(a.lineDiv).textRendering == "optimizelegibility" && (a.lineDiv.style.textRendering = "auto");
4975
4975
  }
4976
4976
  be.defaults = uo, be.optionHandlers = hi;
4977
- function mu(e) {
4977
+ function vu(e) {
4978
4978
  var t = e.display;
4979
4979
  ee(t.scroller, "mousedown", Fe(e, io)), _ && b < 11 ? ee(t.scroller, "dblclick", Fe(e, function(l) {
4980
4980
  if (!Se(e, l)) {
@@ -5042,12 +5042,12 @@ b`.split(/\n/).length != 3 ? function(e) {
5042
5042
  Se(e, l) || Qt(l);
5043
5043
  },
5044
5044
  over: function(l) {
5045
- Se(e, l) || (Yl(e, l), Qt(l));
5045
+ Se(e, l) || ($l(e, l), Qt(l));
5046
5046
  },
5047
5047
  start: function(l) {
5048
- return Xl(e, l);
5048
+ return Kl(e, l);
5049
5049
  },
5050
- drop: Fe(e, ql),
5050
+ drop: Fe(e, Gl),
5051
5051
  leave: function(l) {
5052
5052
  Se(e, l) || $s(e);
5053
5053
  }
@@ -5166,7 +5166,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5166
5166
  var e = g("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"), t = g("div", [e], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
5167
5167
  return D ? e.style.width = "1000px" : e.setAttribute("wrap", "off"), k && (e.style.border = "1px solid black"), t;
5168
5168
  }
5169
- function bu(e) {
5169
+ function gu(e) {
5170
5170
  var t = e.optionHandlers, n = e.helpers = {};
5171
5171
  e.prototype = {
5172
5172
  constructor: e,
@@ -5334,7 +5334,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5334
5334
  var v = Math.max(l.wrapper.clientHeight, this.doc.height), w = Math.max(l.sizer.clientWidth, l.lineSpace.clientWidth);
5335
5335
  (s == "above" || r.bottom + i.offsetHeight > v) && r.top > i.offsetHeight ? u = r.top - i.offsetHeight : r.bottom + i.offsetHeight <= v && (u = r.bottom), d + i.offsetWidth > w && (d = w - i.offsetWidth);
5336
5336
  }
5337
- i.style.top = u + "px", i.style.left = i.style.right = "", o == "right" ? (d = l.sizer.clientWidth - i.offsetWidth, i.style.right = "0px") : (o == "left" ? d = 0 : o == "middle" && (d = (l.sizer.clientWidth - i.offsetWidth) / 2), i.style.left = d + "px"), a && gl(this, { left: d, top: u, right: d + i.offsetWidth, bottom: u + i.offsetHeight });
5337
+ i.style.top = u + "px", i.style.left = i.style.right = "", o == "right" ? (d = l.sizer.clientWidth - i.offsetWidth, i.style.right = "0px") : (o == "left" ? d = 0 : o == "middle" && (d = (l.sizer.clientWidth - i.offsetWidth) / 2), i.style.left = d + "px"), a && dl(this, { left: d, top: u, right: d + i.offsetWidth, bottom: u + i.offsetHeight });
5338
5338
  },
5339
5339
  triggerOnKeyDown: Ze(to),
5340
5340
  triggerOnKeyPress: Ze(no),
@@ -5433,7 +5433,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5433
5433
  };
5434
5434
  },
5435
5435
  scrollIntoView: Ze(function(r, i) {
5436
- r == null ? (r = { from: this.doc.sel.primary().head, to: null }, i == null && (i = this.options.cursorScrollMargin)) : typeof r == "number" ? r = { from: S(r, 0), to: null } : r.from == null && (r = { from: r, to: null }), r.to || (r.to = r.from), r.margin = i || 0, r.from.line != null ? yl(this, r) : os(this, r.from, r.to, r.margin);
5436
+ r == null ? (r = { from: this.doc.sel.primary().head, to: null }, i == null && (i = this.options.cursorScrollMargin)) : typeof r == "number" ? r = { from: S(r, 0), to: null } : r.from == null && (r = { from: r, to: null }), r.to || (r.to = r.from), r.margin = i || 0, r.from.line != null ? pl(this, r) : os(this, r.from, r.to, r.margin);
5437
5437
  }),
5438
5438
  setSize: Ze(function(r, i) {
5439
5439
  var a = this, s = function(l) {
@@ -5507,7 +5507,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5507
5507
  var te = n > 0 ? q >= 55296 && q < 56320 : q >= 56320 && q < 57343;
5508
5508
  U = new S(t.line, Math.max(0, Math.min(o.text.length, t.ch + n * (te ? 2 : 1))), -n);
5509
5509
  }
5510
- } else i ? U = eu(e.cm, o, t, n) : U = ia(o, t, n);
5510
+ } else i ? U = Ql(e.cm, o, t, n) : U = ia(o, t, n);
5511
5511
  if (U == null)
5512
5512
  if (!K && u())
5513
5513
  t = aa(i, e.cm, o, t.line, l);
@@ -5687,7 +5687,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5687
5687
  }, ge.prototype.pollSelection = function() {
5688
5688
  if (!(this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged())) {
5689
5689
  var e = this.getSelection(), t = this.cm;
5690
- if (W && N && this.cm.display.gutterSpecs.length && wu(e.anchorNode)) {
5690
+ if (W && N && this.cm.display.gutterSpecs.length && yu(e.anchorNode)) {
5691
5691
  this.cm.triggerOnKeyDown({ type: "keydown", keyCode: 8, preventDefault: Math.abs }), this.blur(), this.focus();
5692
5692
  return;
5693
5693
  }
@@ -5709,7 +5709,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5709
5709
  var l = mr(e, i.line), u, d;
5710
5710
  if (l == t.view.length - 1 ? (u = t.viewTo - 1, d = t.lineDiv.lastChild) : (u = c(t.view[l + 1].line) - 1, d = t.view[l + 1].node.previousSibling), !o)
5711
5711
  return !1;
5712
- for (var v = e.doc.splitLines(xu(e, o, d, s, u)), w = Bt(e.doc, S(s, 0), S(u, J(e.doc, u).text.length)); v.length > 1 && w.length > 1; )
5712
+ for (var v = e.doc.splitLines(mu(e, o, d, s, u)), w = Bt(e.doc, S(s, 0), S(u, J(e.doc, u).text.length)); v.length > 1 && w.length > 1; )
5713
5713
  if (he(v) == he(w))
5714
5714
  v.pop(), w.pop(), u--;
5715
5715
  else if (v[0] == w[0])
@@ -5772,7 +5772,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5772
5772
  var l = Xa(i.map, t.ch, s);
5773
5773
  return l.offset = l.collapse == "right" ? l.end : l.start, l;
5774
5774
  }
5775
- function wu(e) {
5775
+ function yu(e) {
5776
5776
  for (var t = e; t; t = t.parentNode)
5777
5777
  if (/CodeMirror-gutter-wrapper/.test(t.className))
5778
5778
  return !0;
@@ -5781,7 +5781,7 @@ b`.split(/\n/).length != 3 ? function(e) {
5781
5781
  function Jr(e, t) {
5782
5782
  return t && (e.bad = !0), e;
5783
5783
  }
5784
- function xu(e, t, n, r, i) {
5784
+ function mu(e, t, n, r, i) {
5785
5785
  var a = "", s = !1, o = e.doc.lineSeparator(), l = !1;
5786
5786
  function u(m) {
5787
5787
  return function(L) {
@@ -5838,10 +5838,10 @@ b`.split(/\n/).length != 3 ? function(e) {
5838
5838
  for (var i = 0; i < e.display.view.length; i++) {
5839
5839
  var a = e.display.view[i];
5840
5840
  if (a.node == r)
5841
- return Cu(a, t, n);
5841
+ return bu(a, t, n);
5842
5842
  }
5843
5843
  }
5844
- function Cu(e, t, n) {
5844
+ function bu(e, t, n) {
5845
5845
  var r = e.text.firstChild, i = !1;
5846
5846
  if (!t || !Re(r, t))
5847
5847
  return Jr(S(c(e.line), 0), !0);
@@ -6059,7 +6059,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6059
6059
  e || this.reset(), this.textarea.disabled = e == "nocursor", this.textarea.readOnly = !!e;
6060
6060
  }, Le.prototype.setUneditable = function() {
6061
6061
  }, Le.prototype.needsContentAttribute = !1;
6062
- function Su(e, t) {
6062
+ function wu(e, t) {
6063
6063
  if (t = t ? ue(t) : {}, t.value = e.value, !t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex), !t.placeholder && e.placeholder && (t.placeholder = e.placeholder), t.autofocus == null) {
6064
6064
  var n = _e(Pe(e));
6065
6065
  t.autofocus = n == e || e.getAttribute("autofocus") != null && n == document.body;
@@ -6093,13 +6093,13 @@ b`.split(/\n/).length != 3 ? function(e) {
6093
6093
  );
6094
6094
  return o;
6095
6095
  }
6096
- function ku(e) {
6097
- e.off = $e, e.on = ee, e.wheelEventPixels = Nl, e.Doc = nt, e.splitLines = gt, e.countColumn = ve, e.findColumn = Ot, e.isWordChar = Vr, e.Pass = Xt, e.signal = Ce, e.Line = Ir, e.changeEnd = ar, e.scrollbarModel = fs, e.Pos = S, e.cmpPos = G, e.modes = _r, e.mimeModes = xt, e.resolveMode = Dr, e.getMode = Or, e.modeExtensions = er, e.extendMode = Mr, e.copyState = Nt, e.startState = Nr, e.innerMode = rn, e.commands = _n, e.keyMap = $t, e.keyName = js, e.isModifierKey = Ys, e.lookupKey = qr, e.normalizeKeyMap = Vl, e.StringStream = ke, e.SharedTextMarker = kn, e.TextMarker = or, e.LineWidget = Sn, e.e_preventDefault = qe, e.e_stopPropagation = Tr, e.e_stop = Qt, e.addClass = xe, e.contains = Re, e.rmClass = Je, e.keyNames = lr;
6096
+ function xu(e) {
6097
+ e.off = $e, e.on = ee, e.wheelEventPixels = Dl, e.Doc = nt, e.splitLines = gt, e.countColumn = ve, e.findColumn = Ot, e.isWordChar = Vr, e.Pass = Xt, e.signal = Ce, e.Line = Ir, e.changeEnd = ar, e.scrollbarModel = fs, e.Pos = S, e.cmpPos = G, e.modes = _r, e.mimeModes = xt, e.resolveMode = Dr, e.getMode = Or, e.modeExtensions = er, e.extendMode = Mr, e.copyState = Nt, e.startState = Nr, e.innerMode = rn, e.commands = _n, e.keyMap = $t, e.keyName = js, e.isModifierKey = Ys, e.lookupKey = qr, e.normalizeKeyMap = jl, e.StringStream = ke, e.SharedTextMarker = kn, e.TextMarker = or, e.LineWidget = Sn, e.e_preventDefault = qe, e.e_stopPropagation = Tr, e.e_stop = Qt, e.addClass = xe, e.contains = Re, e.rmClass = Je, e.keyNames = lr;
6098
6098
  }
6099
- vu(be), bu(be);
6100
- var Tu = "iter insert remove copy getEditor constructor".split(" ");
6099
+ hu(be), gu(be);
6100
+ var Cu = "iter insert remove copy getEditor constructor".split(" ");
6101
6101
  for (var vi in nt.prototype)
6102
- nt.prototype.hasOwnProperty(vi) && oe(Tu, vi) < 0 && (be.prototype[vi] = /* @__PURE__ */ function(e) {
6102
+ nt.prototype.hasOwnProperty(vi) && oe(Cu, vi) < 0 && (be.prototype[vi] = /* @__PURE__ */ function(e) {
6103
6103
  return function() {
6104
6104
  return e.apply(this.doc, arguments);
6105
6105
  };
@@ -6114,7 +6114,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6114
6114
  be.prototype[e] = t;
6115
6115
  }, be.defineDocExtension = function(e, t) {
6116
6116
  nt.prototype[e] = t;
6117
- }, be.fromTextArea = Su, ku(be), be.version = "5.65.20", be;
6117
+ }, be.fromTextArea = wu, xu(be), be.version = "5.65.20", be;
6118
6118
  });
6119
6119
  }(va)), va.exports;
6120
6120
  }
@@ -7034,120 +7034,118 @@ b`.split(/\n/).length != 3 ? function(e) {
7034
7034
  });
7035
7035
  });
7036
7036
  })();
7037
- var mo = { exports: {} }, bo;
7038
- function Co() {
7039
- return bo || (bo = 1, function(y, f) {
7040
- (function(h) {
7041
- h(fr());
7042
- })(function(h) {
7043
- function P(C, _, b, D) {
7044
- if (b && b.call) {
7045
- var Q = b;
7046
- b = null;
7047
- } else
7048
- var Q = O(C, b, "rangeFinder");
7049
- typeof _ == "number" && (_ = h.Pos(_, 0));
7050
- var N = O(C, b, "minFoldSize");
7051
- function Y(x) {
7052
- var k = Q(C, _);
7053
- if (!k || k.to.line - k.from.line < N) return null;
7054
- if (D === "fold") return k;
7055
- for (var W = C.findMarksAt(k.from), X = 0; X < W.length; ++X)
7056
- if (W[X].__isFold) {
7057
- if (!x) return null;
7058
- k.cleared = !0, W[X].clear();
7059
- }
7060
- return k;
7061
- }
7062
- var B = Y(!0);
7063
- if (O(C, b, "scanUp")) for (; !B && _.line > C.firstLine(); )
7064
- _ = h.Pos(_.line - 1, 0), B = Y(!1);
7065
- if (!(!B || B.cleared || D === "unfold")) {
7066
- var j = T(C, b, B);
7067
- h.on(j, "mousedown", function(x) {
7068
- I.clear(), h.e_preventDefault(x);
7069
- });
7070
- var I = C.markText(B.from, B.to, {
7071
- replacedWith: j,
7072
- clearOnEnter: O(C, b, "clearOnEnter"),
7073
- __isFold: !0
7074
- });
7075
- I.on("clear", function(x, k) {
7076
- h.signal(C, "unfold", C, x, k);
7077
- }), h.signal(C, "fold", C, B.from, B.to);
7078
- }
7079
- }
7080
- function T(C, _, b) {
7081
- var D = O(C, _, "widget");
7082
- if (typeof D == "function" && (D = D(b.from, b.to)), typeof D == "string") {
7083
- var Q = document.createTextNode(D);
7084
- D = document.createElement("span"), D.appendChild(Q), D.className = "CodeMirror-foldmarker";
7085
- } else D && (D = D.cloneNode(!0));
7086
- return D;
7087
- }
7088
- h.newFoldFunction = function(C, _) {
7089
- return function(b, D) {
7090
- P(b, D, { rangeFinder: C, widget: _ });
7091
- };
7092
- }, h.defineExtension("foldCode", function(C, _, b) {
7093
- P(this, C, _, b);
7094
- }), h.defineExtension("isFolded", function(C) {
7095
- for (var _ = this.findMarksAt(C), b = 0; b < _.length; ++b)
7096
- if (_[b].__isFold) return !0;
7097
- }), h.commands.toggleFold = function(C) {
7098
- C.foldCode(C.getCursor());
7099
- }, h.commands.fold = function(C) {
7100
- C.foldCode(C.getCursor(), null, "fold");
7101
- }, h.commands.unfold = function(C) {
7102
- C.foldCode(C.getCursor(), { scanUp: !1 }, "unfold");
7103
- }, h.commands.foldAll = function(C) {
7104
- C.operation(function() {
7105
- for (var _ = C.firstLine(), b = C.lastLine(); _ <= b; _++)
7106
- C.foldCode(h.Pos(_, 0), { scanUp: !1 }, "fold");
7037
+ var Tu = { exports: {} };
7038
+ (function(y, f) {
7039
+ (function(h) {
7040
+ h(fr());
7041
+ })(function(h) {
7042
+ function P(C, _, b, D) {
7043
+ if (b && b.call) {
7044
+ var Q = b;
7045
+ b = null;
7046
+ } else
7047
+ var Q = O(C, b, "rangeFinder");
7048
+ typeof _ == "number" && (_ = h.Pos(_, 0));
7049
+ var N = O(C, b, "minFoldSize");
7050
+ function Y(x) {
7051
+ var k = Q(C, _);
7052
+ if (!k || k.to.line - k.from.line < N) return null;
7053
+ if (D === "fold") return k;
7054
+ for (var W = C.findMarksAt(k.from), X = 0; X < W.length; ++X)
7055
+ if (W[X].__isFold) {
7056
+ if (!x) return null;
7057
+ k.cleared = !0, W[X].clear();
7058
+ }
7059
+ return k;
7060
+ }
7061
+ var B = Y(!0);
7062
+ if (O(C, b, "scanUp")) for (; !B && _.line > C.firstLine(); )
7063
+ _ = h.Pos(_.line - 1, 0), B = Y(!1);
7064
+ if (!(!B || B.cleared || D === "unfold")) {
7065
+ var j = T(C, b, B);
7066
+ h.on(j, "mousedown", function(x) {
7067
+ I.clear(), h.e_preventDefault(x);
7107
7068
  });
7108
- }, h.commands.unfoldAll = function(C) {
7109
- C.operation(function() {
7110
- for (var _ = C.firstLine(), b = C.lastLine(); _ <= b; _++)
7111
- C.foldCode(h.Pos(_, 0), { scanUp: !1 }, "unfold");
7069
+ var I = C.markText(B.from, B.to, {
7070
+ replacedWith: j,
7071
+ clearOnEnter: O(C, b, "clearOnEnter"),
7072
+ __isFold: !0
7112
7073
  });
7113
- }, h.registerHelper("fold", "combine", function() {
7114
- var C = Array.prototype.slice.call(arguments, 0);
7115
- return function(_, b) {
7116
- for (var D = 0; D < C.length; ++D) {
7117
- var Q = C[D](_, b);
7118
- if (Q) return Q;
7119
- }
7120
- };
7121
- }), h.registerHelper("fold", "auto", function(C, _) {
7122
- for (var b = C.getHelpers(_, "fold"), D = 0; D < b.length; D++) {
7123
- var Q = b[D](C, _);
7074
+ I.on("clear", function(x, k) {
7075
+ h.signal(C, "unfold", C, x, k);
7076
+ }), h.signal(C, "fold", C, B.from, B.to);
7077
+ }
7078
+ }
7079
+ function T(C, _, b) {
7080
+ var D = O(C, _, "widget");
7081
+ if (typeof D == "function" && (D = D(b.from, b.to)), typeof D == "string") {
7082
+ var Q = document.createTextNode(D);
7083
+ D = document.createElement("span"), D.appendChild(Q), D.className = "CodeMirror-foldmarker";
7084
+ } else D && (D = D.cloneNode(!0));
7085
+ return D;
7086
+ }
7087
+ h.newFoldFunction = function(C, _) {
7088
+ return function(b, D) {
7089
+ P(b, D, { rangeFinder: C, widget: _ });
7090
+ };
7091
+ }, h.defineExtension("foldCode", function(C, _, b) {
7092
+ P(this, C, _, b);
7093
+ }), h.defineExtension("isFolded", function(C) {
7094
+ for (var _ = this.findMarksAt(C), b = 0; b < _.length; ++b)
7095
+ if (_[b].__isFold) return !0;
7096
+ }), h.commands.toggleFold = function(C) {
7097
+ C.foldCode(C.getCursor());
7098
+ }, h.commands.fold = function(C) {
7099
+ C.foldCode(C.getCursor(), null, "fold");
7100
+ }, h.commands.unfold = function(C) {
7101
+ C.foldCode(C.getCursor(), { scanUp: !1 }, "unfold");
7102
+ }, h.commands.foldAll = function(C) {
7103
+ C.operation(function() {
7104
+ for (var _ = C.firstLine(), b = C.lastLine(); _ <= b; _++)
7105
+ C.foldCode(h.Pos(_, 0), { scanUp: !1 }, "fold");
7106
+ });
7107
+ }, h.commands.unfoldAll = function(C) {
7108
+ C.operation(function() {
7109
+ for (var _ = C.firstLine(), b = C.lastLine(); _ <= b; _++)
7110
+ C.foldCode(h.Pos(_, 0), { scanUp: !1 }, "unfold");
7111
+ });
7112
+ }, h.registerHelper("fold", "combine", function() {
7113
+ var C = Array.prototype.slice.call(arguments, 0);
7114
+ return function(_, b) {
7115
+ for (var D = 0; D < C.length; ++D) {
7116
+ var Q = C[D](_, b);
7124
7117
  if (Q) return Q;
7125
7118
  }
7126
- });
7127
- var E = {
7128
- rangeFinder: h.fold.auto,
7129
- widget: "↔",
7130
- minFoldSize: 0,
7131
- scanUp: !1,
7132
- clearOnEnter: !0
7133
7119
  };
7134
- h.defineOption("foldOptions", null);
7135
- function O(C, _, b) {
7136
- if (_ && _[b] !== void 0)
7137
- return _[b];
7138
- var D = C.options.foldOptions;
7139
- return D && D[b] !== void 0 ? D[b] : E[b];
7140
- }
7141
- h.defineExtension("foldOption", function(C, _) {
7142
- return O(this, C, _);
7143
- });
7120
+ }), h.registerHelper("fold", "auto", function(C, _) {
7121
+ for (var b = C.getHelpers(_, "fold"), D = 0; D < b.length; D++) {
7122
+ var Q = b[D](C, _);
7123
+ if (Q) return Q;
7124
+ }
7144
7125
  });
7145
- }()), mo.exports;
7146
- }
7147
- Co();
7126
+ var E = {
7127
+ rangeFinder: h.fold.auto,
7128
+ widget: "↔",
7129
+ minFoldSize: 0,
7130
+ scanUp: !1,
7131
+ clearOnEnter: !0
7132
+ };
7133
+ h.defineOption("foldOptions", null);
7134
+ function O(C, _, b) {
7135
+ if (_ && _[b] !== void 0)
7136
+ return _[b];
7137
+ var D = C.options.foldOptions;
7138
+ return D && D[b] !== void 0 ? D[b] : E[b];
7139
+ }
7140
+ h.defineExtension("foldOption", function(C, _) {
7141
+ return O(this, C, _);
7142
+ });
7143
+ });
7144
+ })();
7145
+ var Lu = Tu.exports;
7148
7146
  (function(y, f) {
7149
7147
  (function(h) {
7150
- h(fr(), Co());
7148
+ h(fr(), Lu);
7151
7149
  })(function(h) {
7152
7150
  h.defineOption("foldGutter", !1, function(I, x, k) {
7153
7151
  k && k != h.Init && (I.clearGutter(I.state.foldGutter.options.gutter), I.state.foldGutter = null, I.off("gutterClick", Q), I.off("changes", Y), I.off("viewportChange", B), I.off("fold", j), I.off("unfold", j), I.off("swapDoc", Y), I.off("optionChange", N)), x && (I.state.foldGutter = new T(E(x)), D(I), I.on("gutterClick", Q), I.on("changes", Y), I.on("viewportChange", B), I.on("fold", j), I.on("unfold", j), I.on("swapDoc", Y), I.on("optionChange", N));
@@ -7363,7 +7361,7 @@ Co();
7363
7361
  });
7364
7362
  });
7365
7363
  })();
7366
- const Du = Lu("trace", {
7364
+ const _u = Su("trace", {
7367
7365
  state: () => ({
7368
7366
  traces: [],
7369
7367
  currentTrace: null
@@ -7381,11 +7379,11 @@ const Du = Lu("trace", {
7381
7379
  }
7382
7380
  }
7383
7381
  });
7384
- var So = { exports: {} };
7382
+ var wo = { exports: {} };
7385
7383
  (function(y, f) {
7386
7384
  (function(h, P) {
7387
7385
  y.exports = P(fr());
7388
- })(xo, function(h) {
7386
+ })(bo, function(h) {
7389
7387
  return function(P) {
7390
7388
  function T(O) {
7391
7389
  if (E[O]) return E[O].exports;
@@ -7531,10 +7529,10 @@ var So = { exports: {} };
7531
7529
  T.a = _;
7532
7530
  }]);
7533
7531
  });
7534
- })(So);
7535
- var Ou = So.exports;
7536
- const Mu = () => typeof __TRACE_API_BASE_URL__ < "u" ? __TRACE_API_BASE_URL__ : typeof window < "u" && window.__TRACE_API_BASE_URL__ ? window.__TRACE_API_BASE_URL__ : typeof process < "u" && process.env && process.env.TRACE_API_BASE_URL ? process.env.TRACE_API_BASE_URL : "/tracing", gi = _u.create({
7537
- baseURL: Mu(),
7532
+ })(wo);
7533
+ var Du = wo.exports;
7534
+ const Ou = () => typeof __TRACE_API_BASE_URL__ < "u" ? __TRACE_API_BASE_URL__ : typeof window < "u" && window.__TRACE_API_BASE_URL__ ? window.__TRACE_API_BASE_URL__ : typeof process < "u" && process.env && process.env.TRACE_API_BASE_URL ? process.env.TRACE_API_BASE_URL : "/tracing", gi = ku.create({
7535
+ baseURL: Ou(),
7538
7536
  timeout: 3e4
7539
7537
  }), An = {
7540
7538
  getTraceList(y, f, h, P, T) {
@@ -7552,14 +7550,14 @@ const Mu = () => typeof __TRACE_API_BASE_URL__ < "u" ? __TRACE_API_BASE_URL__ :
7552
7550
  return y && (P.query = y), f && (P.startTime = f), h && (P.endTime = h), gi.delete("/v1/trace", { params: P }).then((T) => T.data);
7553
7551
  }
7554
7552
  };
7555
- function ko(y, f, h, P, T, E, O, C) {
7553
+ function xo(y, f, h, P, T, E, O, C) {
7556
7554
  var _ = typeof y == "function" ? y.options : y;
7557
7555
  return f && (_.render = f, _.staticRenderFns = h, _._compiled = !0), E && (_._scopeId = "data-v-" + E), {
7558
7556
  exports: y,
7559
7557
  options: _
7560
7558
  };
7561
7559
  }
7562
- const Nu = {
7560
+ const Mu = {
7563
7561
  name: "TraceSpanTree",
7564
7562
  props: {
7565
7563
  spans: {
@@ -7684,7 +7682,7 @@ const Nu = {
7684
7682
  }
7685
7683
  }
7686
7684
  };
7687
- var Au = function() {
7685
+ var Nu = function() {
7688
7686
  var f = this, h = f._self._c;
7689
7687
  return h("div", { staticClass: "span-tree-container" }, [f.treeData.length === 0 ? h("div", { staticClass: "empty-state" }, [h("el-empty", { attrs: { description: "暂无 Span 数据" } })], 1) : h("div", { staticClass: "timeline-wrapper" }, [h("div", { staticClass: "timeline-header" }, [h("div", { staticClass: "time-scale" }, [h("span", { staticClass: "time-start" }, [f._v(f._s(f.formatTime(f.traceStartTime)))]), h("span", { staticClass: "time-end" }, [f._v(f._s(f.formatTime(f.traceEndTime)))])])]), h("div", { ref: "timelineContent", staticClass: "timeline-content" }, f._l(f.treeData, function(P, T) {
7690
7688
  return h("div", { key: P.span_id, staticClass: "timeline-node", class: { selected: f.selectedSpanId === P.span_id }, on: { click: function(E) {
@@ -7703,19 +7701,19 @@ var Au = function() {
7703
7701
  }), 0) : f._e()]);
7704
7702
  }), 0) : f._e()]);
7705
7703
  }), 0)])]);
7706
- }, Iu = [], Ru = /* @__PURE__ */ ko(
7704
+ }, Au = [], Iu = /* @__PURE__ */ xo(
7705
+ Mu,
7707
7706
  Nu,
7708
7707
  Au,
7709
- Iu,
7710
7708
  !1,
7711
7709
  null,
7712
7710
  "4f00ade1"
7713
7711
  );
7714
- const To = Ru.exports, Eu = {
7712
+ const Co = Iu.exports, Ru = {
7715
7713
  name: "Trace",
7716
7714
  components: {
7717
- TraceSpanTree: To,
7718
- codemirror: Ou.codemirror
7715
+ TraceSpanTree: Co,
7716
+ codemirror: Du.codemirror
7719
7717
  },
7720
7718
  data() {
7721
7719
  return {
@@ -7724,6 +7722,7 @@ const To = Ru.exports, Eu = {
7724
7722
  searchQuery: "",
7725
7723
  dateRange: null,
7726
7724
  loading: !1,
7725
+ deleteLoading: !1,
7727
7726
  showColumnDialog: !1,
7728
7727
  selectedColumns: ["trace_id", "timestamp_ms", "status", "execution_time_ms", "trace_type", "trace_name"],
7729
7728
  visibleColumns: {
@@ -7926,7 +7925,7 @@ const To = Ru.exports, Eu = {
7926
7925
  return;
7927
7926
  }
7928
7927
  const y = this.spanSearchQuery.toLowerCase();
7929
- this.filteredSpans = this.spans.filter((f) => f.name.toLowerCase().includes(y) || f.type.toLowerCase().includes(y) || f.span_id.toLowerCase().includes(y));
7928
+ this.filteredSpans = this.spans.filter((f) => f.name.toLowerCase().includes(y) || f.type.toLowerCase().includes(y));
7930
7929
  },
7931
7930
  handleSpanSelect(y) {
7932
7931
  var f, h;
@@ -7979,7 +7978,7 @@ const To = Ru.exports, Eu = {
7979
7978
  cancelButtonText: this.$t("common.cancel"),
7980
7979
  type: P,
7981
7980
  dangerouslyUseHTMLString: !1
7982
- }), this.loading = !0;
7981
+ }), this.deleteLoading = !0;
7983
7982
  let O = null, C = null;
7984
7983
  this.dateRange && Array.isArray(this.dateRange) && (this.dateRange.length === 2 ? (this.dateRange[0] !== null && this.dateRange[0] !== void 0 && this.dateRange[0] !== "" && (O = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10)), this.dateRange[1] !== null && this.dateRange[1] !== void 0 && this.dateRange[1] !== "" && (C = typeof this.dateRange[1] == "number" ? this.dateRange[1] : parseInt(this.dateRange[1], 10))) : this.dateRange.length === 1 && this.dateRange[0] !== null && (C = typeof this.dateRange[0] == "number" ? this.dateRange[0] : parseInt(this.dateRange[0], 10))), await An.deleteTraces(
7985
7984
  y ? this.searchQuery : null,
@@ -7993,7 +7992,7 @@ const To = Ru.exports, Eu = {
7993
7992
  this.$message.error(`${this.$t("trace.deleteFailed")}: ${C}`);
7994
7993
  }
7995
7994
  } finally {
7996
- this.loading = !1;
7995
+ this.deleteLoading = !1;
7997
7996
  }
7998
7997
  },
7999
7998
  getStatusType(y) {
@@ -8093,14 +8092,14 @@ const To = Ru.exports, Eu = {
8093
8092
  }
8094
8093
  }
8095
8094
  };
8096
- var Pu = function() {
8095
+ var Eu = function() {
8097
8096
  var P, T, E, O, C, _;
8098
8097
  var f = this, h = f._self._c;
8099
8098
  return h("div", { staticClass: "trace-list-container" }, [h("el-card", [h("div", { staticClass: "trace-content-wrapper" }, [h("div", { staticClass: "trace-toolbar" }, [h("el-input", { staticClass: "toolbar-input", attrs: { placeholder: f.$t("trace.searchPlaceholder"), "prefix-icon": "el-icon-search", clearable: "", size: "mini" }, on: { clear: f.handleSearchClear, input: f.handleSearch }, model: { value: f.searchQuery, callback: function(b) {
8100
8099
  f.searchQuery = b;
8101
8100
  }, expression: "searchQuery" } }), h("el-date-picker", { staticClass: "toolbar-date-picker", attrs: { type: "datetimerange", "range-separator": f.$t("trace.to"), "start-placeholder": f.$t("trace.startTime"), "end-placeholder": f.$t("trace.endTime"), "value-format": "timestamp", format: "yyyy-MM-dd HH:mm:ss", size: "mini", "picker-options": f.pickerOptions, clearable: "" }, on: { change: f.handleDateRangeChange }, model: { value: f.dateRange, callback: function(b) {
8102
8101
  f.dateRange = b;
8103
- }, expression: "dateRange" } }), h("el-button", { attrs: { type: "danger", icon: "el-icon-delete", size: "mini", disabled: f.loading }, on: { click: f.handleBatchDelete } }, [f._v(" " + f._s(f.$t("trace.batchDelete")) + " ")]), h("el-button", { attrs: { icon: "el-icon-refresh", size: "mini", circle: "", title: f.$t("common.refresh") }, on: { click: f.refresh } }), h("el-button", { attrs: { icon: "el-icon-setting", size: "mini" }, on: { click: function(b) {
8102
+ }, expression: "dateRange" } }), h("el-button", { attrs: { type: "danger", icon: "el-icon-delete", size: "mini", disabled: f.deleteLoading }, on: { click: f.handleBatchDelete } }, [f._v(" " + f._s(f.$t("trace.batchDelete")) + " ")]), h("el-button", { attrs: { icon: "el-icon-refresh", size: "mini", circle: "", title: f.$t("common.refresh") }, on: { click: f.refresh } }), h("el-button", { attrs: { icon: "el-icon-setting", size: "mini" }, on: { click: function(b) {
8104
8103
  f.showColumnDialog = !0;
8105
8104
  } } }, [f._v(" " + f._s(f.$t("common.columns")) + " ")])], 1), h("div", { staticClass: "trace-table-wrapper" }, [h("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: f.loading, expression: "loading" }], staticStyle: { width: "100%" }, attrs: { data: f.filteredTraceList, size: "mini", stripe: "", "row-class-name": f.tableRowClassName }, on: { "row-click": f.handleRowClick } }, [h("el-table-column", { attrs: { type: "index", label: "#", width: "60", index: f.getIndex } }), f.visibleColumns.trace_id ? h("el-table-column", { attrs: { prop: "trace_id", label: f.$t("trace.requestId"), width: "280", "show-overflow-tooltip": "" }, scopedSlots: f._u([{ key: "default", fn: function(b) {
8106
8105
  return [h("el-link", { attrs: { type: "primary" }, on: { click: function(D) {
@@ -8128,7 +8127,7 @@ var Pu = function() {
8128
8127
  f.showColumnDialog = !1;
8129
8128
  } } }, [f._v(f._s(f.$t("common.cancel")))]), h("el-button", { attrs: { size: "mini", type: "primary" }, on: { click: f.applyColumns } }, [f._v(f._s(f.$t("common.confirm")))])], 1)], 1), h("el-drawer", { attrs: { visible: f.drawerVisible, "with-header": !0, title: f.drawerTitle, size: "90%", direction: "rtl", "before-close": f.handleDrawerClose }, on: { "update:visible": function(b) {
8130
8129
  f.drawerVisible = b;
8131
- } } }, [f.currentTraceId ? h("div", { staticClass: "trace-detail-content" }, [h("div", { staticClass: "trace-info-section" }, [h("el-descriptions", { attrs: { column: 3, border: "" } }, [h("el-descriptions-item", { attrs: { label: f.$t("trace.traceId") } }, [f._v(f._s(f.traceInfo.trace_id))]), h("el-descriptions-item", { attrs: { label: f.$t("trace.status") } }, [h("el-tag", { attrs: { type: f.getStatusType(f.traceInfo.status), size: "mini" } }, [f._v(" " + f._s(f.traceInfo.status) + " ")])], 1), h("el-descriptions-item", { attrs: { label: f.$t("trace.executionTime") } }, [f._v(" " + f._s(f.formatDuration(f.traceInfo.execution_time_ms)) + " ")]), h("el-descriptions-item", { attrs: { label: f.$t("trace.timeCreated") } }, [f._v(" " + f._s(f.formatTimestamp(f.traceInfo.timestamp_ms)) + " ")]), h("el-descriptions-item", { attrs: { label: f.$t("trace.experimentId") } }, [f._v(f._s(f.traceInfo.experiment_id))]), h("el-descriptions-item", { attrs: { label: f.$t("trace.traceType") } }, [h("el-tag", { attrs: { size: "mini", type: "info" } }, [f._v(f._s(f.traceInfo.trace_type || "-"))])], 1), h("el-descriptions-item", { attrs: { label: f.$t("trace.traceName"), span: 2 } }, [f._v(" " + f._s(f.traceInfo.trace_name || "-") + " ")])], 1)], 1), h("el-divider"), h("el-row", { attrs: { gutter: 20 } }, [h("el-col", { staticClass: "span-tree-col", attrs: { span: 8 } }, [h("el-card", [h("div", { attrs: { slot: "header" }, slot: "header" }, [h("el-input", { attrs: { placeholder: f.$t("common.search"), "prefix-icon": "el-icon-search", size: "small", clearable: "" }, on: { input: f.handleSpanSearch }, model: { value: f.spanSearchQuery, callback: function(b) {
8130
+ } } }, [f.currentTraceId ? h("div", { staticClass: "trace-detail-content" }, [h("div", { staticClass: "trace-info-section" }, [h("el-descriptions", { attrs: { column: 3, border: "" } }, [h("el-descriptions-item", { attrs: { label: f.$t("trace.traceId") } }, [f._v(f._s(f.traceInfo.trace_id))]), h("el-descriptions-item", { attrs: { label: f.$t("trace.status") } }, [h("el-tag", { attrs: { type: f.getStatusType(f.traceInfo.status), size: "mini" } }, [f._v(" " + f._s(f.traceInfo.status) + " ")])], 1), h("el-descriptions-item", { attrs: { label: f.$t("trace.executionTime") } }, [f._v(" " + f._s(f.formatDuration(f.traceInfo.execution_time_ms)) + " ")]), h("el-descriptions-item", { attrs: { label: f.$t("trace.timeCreated") } }, [f._v(" " + f._s(f.formatTimestamp(f.traceInfo.timestamp_ms)) + " ")]), h("el-descriptions-item", { attrs: { label: f.$t("trace.experimentId") } }, [f._v(f._s(f.traceInfo.experiment_id))]), h("el-descriptions-item", { attrs: { label: f.$t("trace.traceType") } }, [h("el-tag", { attrs: { size: "mini", type: "info" } }, [f._v(f._s(f.traceInfo.trace_type || "-"))])], 1), h("el-descriptions-item", { attrs: { label: f.$t("trace.traceName"), span: 2 } }, [f._v(" " + f._s(f.traceInfo.trace_name || "-") + " ")])], 1)], 1), h("el-divider"), h("el-row", { attrs: { gutter: 20 } }, [h("el-col", { staticClass: "span-tree-col", attrs: { span: 8 } }, [h("el-card", [h("div", { attrs: { slot: "header" }, slot: "header" }, [h("el-input", { attrs: { placeholder: f.$t("span.searchTree"), "prefix-icon": "el-icon-search", size: "small", clearable: "" }, on: { input: f.handleSpanSearch }, model: { value: f.spanSearchQuery, callback: function(b) {
8132
8131
  f.spanSearchQuery = b;
8133
8132
  }, expression: "spanSearchQuery" } })], 1), h("TraceSpanTree", { attrs: { spans: f.filteredSpans, "selected-span-id": f.selectedSpanId, "trace-start-time": f.traceStartTime, "trace-end-time": f.traceEndTime }, on: { "span-select": f.handleSpanSelect } })], 1)], 1), h("el-col", { staticClass: "span-detail-col", attrs: { span: 16 } }, [h("el-card", [h("div", { attrs: { slot: "header" }, slot: "header" }, [h("span", [f._v(f._s(f.$t("trace.spanDetail")))])]), f.selectedSpan ? h("div", { staticClass: "span-detail-content" }, [h("el-tabs", { model: { value: f.activeTab, callback: function(b) {
8134
8133
  f.activeTab = b;
@@ -8147,26 +8146,26 @@ var Pu = function() {
8147
8146
  }, expression: "rawIoCollapse" } }, [h("el-collapse-item", { attrs: { title: f.$t("trace.rawInputs"), name: "rawInputs" } }, [h("codemirror", { key: `raw-inputs-${f.selectedSpanId}-${f.rawInputsKey}`, staticClass: "code-editor-wrapper", attrs: { value: f.formatRawJson(f.rawInputs), options: f.cmOptions } })], 1)], 1)], 1) : f._e(), f.rawOutputs ? h("div", { staticClass: "raw-io-section" }, [h("el-collapse", { model: { value: f.rawIoCollapse, callback: function(b) {
8148
8147
  f.rawIoCollapse = b;
8149
8148
  }, expression: "rawIoCollapse" } }, [h("el-collapse-item", { attrs: { title: f.$t("trace.rawOutputs"), name: "rawOutputs" } }, [h("codemirror", { key: `raw-outputs-${f.selectedSpanId}-${f.rawOutputsKey}`, staticClass: "code-editor-wrapper", attrs: { value: f.formatRawJson(f.rawOutputs), options: f.cmOptions } })], 1)], 1)], 1) : f._e(), !f.rawInputs && !f.rawOutputs ? h("div", { staticClass: "empty-raw-io" }, [h("el-empty", { attrs: { description: f.$t("trace.noIoData") } })], 1) : f._e()]) : f._e()])], 1)], 1) : h("el-empty", { attrs: { description: f.$t("trace.selectSpan") } })], 1)], 1)], 1)], 1) : f._e()])], 1);
8150
- }, Wu = [], Hu = /* @__PURE__ */ ko(
8149
+ }, Pu = [], Wu = /* @__PURE__ */ xo(
8150
+ Ru,
8151
8151
  Eu,
8152
8152
  Pu,
8153
- Wu,
8154
8153
  !1,
8155
8154
  null,
8156
- "95f212cc"
8155
+ "3f3363a5"
8157
8156
  );
8158
- const Lo = Hu.exports, Fu = {
8157
+ const So = Wu.exports, Hu = {
8159
8158
  routes: [
8160
8159
  {
8161
8160
  path: "/trace",
8162
8161
  name: "trace",
8163
- component: Lo
8162
+ component: So
8164
8163
  }
8165
8164
  ],
8166
8165
  beforeEach: (y, f, h) => {
8167
8166
  h();
8168
8167
  }
8169
- }, Bu = {
8168
+ }, Fu = {
8170
8169
  common: {
8171
8170
  home: "首页",
8172
8171
  todos: "待办事项",
@@ -8183,6 +8182,9 @@ const Lo = Hu.exports, Fu = {
8183
8182
  viewDetail: "查看详情",
8184
8183
  language: "语言"
8185
8184
  },
8185
+ span: {
8186
+ searchTree: "Span名称/Span类型"
8187
+ },
8186
8188
  trace: {
8187
8189
  title: "追踪列表",
8188
8190
  searchPlaceholder: "追踪ID/追踪名称/追踪类型",
@@ -8231,7 +8233,7 @@ const Lo = Hu.exports, Fu = {
8231
8233
  deleteFailed: "删除失败",
8232
8234
  unknownError: "未知错误"
8233
8235
  }
8234
- }, zu = {
8236
+ }, Bu = {
8235
8237
  common: {
8236
8238
  home: "Home",
8237
8239
  todos: "Todos",
@@ -8248,6 +8250,9 @@ const Lo = Hu.exports, Fu = {
8248
8250
  viewDetail: "View Detail",
8249
8251
  language: "Language"
8250
8252
  },
8253
+ span: {
8254
+ searchTree: "Span Name/Span Type"
8255
+ },
8251
8256
  trace: {
8252
8257
  title: "Traces",
8253
8258
  searchPlaceholder: "Trace ID/Trace Name/Trace Type",
@@ -8297,37 +8302,37 @@ This operation cannot be undone. Are you sure you want to continue?`,
8297
8302
  unknownError: "Unknown error"
8298
8303
  }
8299
8304
  }, In = {
8300
- "zh-CN": Bu,
8301
- "en-US": zu
8305
+ "zh-CN": Fu,
8306
+ "en-US": Bu
8302
8307
  };
8303
8308
  let ga = !1;
8304
- const wo = (y) => {
8309
+ const mo = (y) => {
8305
8310
  !y || ga || (y.mergeLocaleMessage ? (Object.keys(In).forEach((f) => {
8306
8311
  y.mergeLocaleMessage(f, In[f]);
8307
8312
  }), ga = !0) : y.messages && (Object.keys(In).forEach((f) => {
8308
8313
  y.messages[f] || (y.messages[f] = {}), Object.assign(y.messages[f], In[f]);
8309
8314
  }), ga = !0));
8310
- }, Ku = {
8311
- store: Du,
8312
- router: Fu,
8315
+ }, Gu = {
8316
+ store: _u,
8317
+ router: Hu,
8313
8318
  components: {
8314
- Trace: Lo,
8315
- TraceSpanTree: To
8319
+ Trace: So,
8320
+ TraceSpanTree: Co
8316
8321
  },
8317
8322
  api: An,
8318
8323
  locales: In,
8319
8324
  setI18n(y) {
8320
- wo(y);
8325
+ mo(y);
8321
8326
  },
8322
- registerLocales: wo
8327
+ registerLocales: mo
8323
8328
  };
8324
8329
  export {
8325
- Lo as Trace,
8326
- To as TraceSpanTree,
8327
- Ku as default,
8328
- zu as enUS,
8330
+ So as Trace,
8331
+ Co as TraceSpanTree,
8332
+ Gu as default,
8333
+ Bu as enUS,
8329
8334
  An as traceApi,
8330
- Fu as traceRouter,
8331
- Du as traceStore,
8332
- Bu as zhCN
8335
+ Hu as traceRouter,
8336
+ _u as traceStore,
8337
+ Fu as zhCN
8333
8338
  };