@langsword/trace 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/trace.css +1 -1
- package/dist/trace.es.js +247 -238
- package/dist/trace.umd.js +20 -20
- package/package.json +1 -1
package/dist/trace.es.js
CHANGED
|
@@ -15,9 +15,9 @@ function kr() {
|
|
|
15
15
|
(function(s, l) {
|
|
16
16
|
u.exports = l();
|
|
17
17
|
})(Gu, function() {
|
|
18
|
-
var s = navigator.userAgent, l = navigator.platform, c = /gecko\/\d/i.test(s), g = /MSIE \d/.test(s), p = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(s), w = /Edge\/(\d+)/.exec(s), b = g || p || w, y = b && (g ? document.documentMode || 6 : +(w || p)[1]), k = !w && /WebKit\//.test(s),
|
|
18
|
+
var s = navigator.userAgent, l = navigator.platform, c = /gecko\/\d/i.test(s), g = /MSIE \d/.test(s), p = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(s), w = /Edge\/(\d+)/.exec(s), b = g || p || w, y = b && (g ? document.documentMode || 6 : +(w || p)[1]), k = !w && /WebKit\//.test(s), _ = k && /Qt\/\d+\.\d+/.test(s), L = !w && /Chrome\/(\d+)/.exec(s), H = L && +L[1], F = /Opera\//.test(s), U = /Apple Computer/.test(navigator.vendor), M = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(s), A = /PhantomJS/.test(s), D = U && (/Mobile\/\w+/.test(s) || navigator.maxTouchPoints > 2), P = /Android/.test(s), G = D || P || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(s), J = D || /Mac/.test(l), ne = /\bCrOS\b/.test(s), te = /win/i.test(l), fe = F && s.match(/Version\/(\d*\.\d*)/);
|
|
19
19
|
fe && (fe = Number(fe[1])), fe && fe >= 15 && (F = !1, k = !0);
|
|
20
|
-
var Ne = J && (
|
|
20
|
+
var Ne = J && (_ || F && (fe == null || fe < 12.11)), _e = c || b && y >= 9;
|
|
21
21
|
function Ee(e) {
|
|
22
22
|
return new RegExp("(^|\\s)" + e + "(?:$|\\s)\\s*");
|
|
23
23
|
}
|
|
@@ -1639,10 +1639,10 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
1639
1639
|
Mo(e), e.display.cachedCharWidth = e.display.cachedTextHeight = e.display.cachedPaddingH = null, e.options.lineWrapping || (e.display.maxLineChanged = !0), e.display.lineNumChars = null;
|
|
1640
1640
|
}
|
|
1641
1641
|
function Ro(e) {
|
|
1642
|
-
return
|
|
1642
|
+
return L && P ? -(e.body.getBoundingClientRect().left - parseInt(getComputedStyle(e.body).marginLeft)) : e.defaultView.pageXOffset || (e.documentElement || e.body).scrollLeft;
|
|
1643
1643
|
}
|
|
1644
1644
|
function zo(e) {
|
|
1645
|
-
return
|
|
1645
|
+
return L && P ? -(e.body.getBoundingClientRect().top - parseInt(getComputedStyle(e.body).marginTop)) : e.defaultView.pageYOffset || (e.documentElement || e.body).scrollTop;
|
|
1646
1646
|
}
|
|
1647
1647
|
function qa(e) {
|
|
1648
1648
|
var t = er(e), n = t.widgets, r = 0;
|
|
@@ -2597,10 +2597,10 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
2597
2597
|
"position: relative; outline: none"
|
|
2598
2598
|
);
|
|
2599
2599
|
var o = Je("div", [a.lineSpace], "CodeMirror-lines");
|
|
2600
|
-
a.mover = T("div", [o], null, "position: relative"), a.sizer = T("div", [a.mover], "CodeMirror-sizer"), a.sizerWidth = null, a.heightForcer = T("div", null, null, "position: absolute; height: " + ht + "px; width: 1px;"), a.gutters = T("div", null, "CodeMirror-gutters"), a.lineGutter = null, a.scroller = T("div", [a.sizer, a.heightForcer, a.gutters], "CodeMirror-scroll"), a.scroller.setAttribute("tabIndex", "-1"), a.wrapper = T("div", [a.scrollbarFiller, a.gutterFiller, a.scroller], "CodeMirror"),
|
|
2600
|
+
a.mover = T("div", [o], null, "position: relative"), a.sizer = T("div", [a.mover], "CodeMirror-sizer"), a.sizerWidth = null, a.heightForcer = T("div", null, null, "position: absolute; height: " + ht + "px; width: 1px;"), a.gutters = T("div", null, "CodeMirror-gutters"), a.lineGutter = null, a.scroller = T("div", [a.sizer, a.heightForcer, a.gutters], "CodeMirror-scroll"), a.scroller.setAttribute("tabIndex", "-1"), a.wrapper = T("div", [a.scrollbarFiller, a.gutterFiller, a.scroller], "CodeMirror"), L && H === 105 && (a.wrapper.style.clipPath = "inset(0px)"), a.wrapper.setAttribute("translate", "no"), b && y < 8 && (a.gutters.style.zIndex = -1, a.scroller.style.paddingRight = 0), !k && !(c && G) && (a.scroller.draggable = !0), e && (e.appendChild ? e.appendChild(a.wrapper) : e(a.wrapper)), a.viewFrom = a.viewTo = t.first, a.reportedViewFrom = a.reportedViewTo = t.first, a.view = [], a.renderedView = null, a.externalMeasured = null, a.viewOffset = 0, a.lastWrapHeight = a.lastWrapWidth = 0, a.updateLineNumbers = null, a.nativeBarWidth = a.barHeight = a.barWidth = 0, a.scrollbarsClipped = !1, a.lineNumWidth = a.lineNumInnerWidth = a.lineNumChars = null, a.alignWidgets = !1, a.cachedCharWidth = a.cachedTextHeight = a.cachedPaddingH = null, a.maxLine = null, a.maxLineLength = 0, a.maxLineChanged = !1, a.wheelDX = a.wheelDY = a.wheelStartX = a.wheelStartY = null, a.shift = !1, a.selForContextMenu = null, a.activeTouch = null, a.gutterSpecs = us(r.gutters, r.lineNumbers), el(a), n.init(a);
|
|
2601
2601
|
}
|
|
2602
2602
|
var Ji = 0, yr = null;
|
|
2603
|
-
b ? yr = -0.53 : c ? yr = 15 :
|
|
2603
|
+
b ? yr = -0.53 : c ? yr = 15 : L ? yr = -0.7 : U && (yr = -1 / 3);
|
|
2604
2604
|
function tl(e) {
|
|
2605
2605
|
var t = e.wheelDeltaX, n = e.wheelDeltaY;
|
|
2606
2606
|
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 };
|
|
@@ -2610,7 +2610,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
2610
2610
|
return t.x *= yr, t.y *= yr, t;
|
|
2611
2611
|
}
|
|
2612
2612
|
function rl(e, t) {
|
|
2613
|
-
|
|
2613
|
+
L && H == 102 && (e.display.chromeScrollHack == null ? e.display.sizer.style.pointerEvents = "none" : clearTimeout(e.display.chromeScrollHack), e.display.chromeScrollHack = setTimeout(function() {
|
|
2614
2614
|
e.display.chromeScrollHack = null, e.display.sizer.style.pointerEvents = "";
|
|
2615
2615
|
}, 100));
|
|
2616
2616
|
var n = tl(t), r = n.x, a = n.y, o = yr;
|
|
@@ -5696,7 +5696,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
5696
5696
|
}, De.prototype.pollSelection = function() {
|
|
5697
5697
|
if (!(this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged())) {
|
|
5698
5698
|
var e = this.getSelection(), t = this.cm;
|
|
5699
|
-
if (P &&
|
|
5699
|
+
if (P && L && this.cm.display.gutterSpecs.length && xh(e.anchorNode)) {
|
|
5700
5700
|
this.cm.triggerOnKeyDown({ type: "keydown", keyCode: 8, preventDefault: Math.abs }), this.blur(), this.focus();
|
|
5701
5701
|
return;
|
|
5702
5702
|
}
|
|
@@ -6132,7 +6132,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6132
6132
|
s(kr());
|
|
6133
6133
|
})(function(s) {
|
|
6134
6134
|
s.defineMode("javascript", function(l, c) {
|
|
6135
|
-
var g = l.indentUnit, p = c.statementIndent, w = c.jsonld, b = c.json || w, y = c.trackScope !== !1, k = c.typescript,
|
|
6135
|
+
var g = l.indentUnit, p = c.statementIndent, w = c.jsonld, b = c.json || w, y = c.trackScope !== !1, k = c.typescript, _ = c.wordCharacters || /[\w$\xa1-\uffff]/, L = function() {
|
|
6136
6136
|
function m(st) {
|
|
6137
6137
|
return { type: st, style: "keyword" };
|
|
6138
6138
|
}
|
|
@@ -6216,18 +6216,18 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6216
6216
|
return S.tokenize = ne, ne(m, S);
|
|
6217
6217
|
if (W == "#" && m.peek() == "!")
|
|
6218
6218
|
return m.skipToEnd(), D("meta", "meta");
|
|
6219
|
-
if (W == "#" && m.eatWhile(
|
|
6219
|
+
if (W == "#" && m.eatWhile(_))
|
|
6220
6220
|
return D("variable", "property");
|
|
6221
6221
|
if (W == "<" && m.match("!--") || W == "-" && m.match("->") && !/\S/.test(m.string.slice(0, m.start)))
|
|
6222
6222
|
return m.skipToEnd(), D("comment", "comment");
|
|
6223
6223
|
if (H.test(W))
|
|
6224
6224
|
return (W != ">" || !S.lexical || S.lexical.type != ">") && (m.eat("=") ? (W == "!" || W == "=") && m.eat("=") : /[<>*+\-|&?]/.test(W) && (m.eat(W), W == ">" && m.eat(W))), W == "?" && m.eat(".") ? D(".") : D("operator", "operator", m.current());
|
|
6225
|
-
if (
|
|
6226
|
-
m.eatWhile(
|
|
6225
|
+
if (_.test(W)) {
|
|
6226
|
+
m.eatWhile(_);
|
|
6227
6227
|
var j = m.current();
|
|
6228
6228
|
if (S.lastType != ".") {
|
|
6229
|
-
if (
|
|
6230
|
-
var R =
|
|
6229
|
+
if (L.propertyIsEnumerable(j)) {
|
|
6230
|
+
var R = L[j];
|
|
6231
6231
|
return D(R.type, R.style, j);
|
|
6232
6232
|
}
|
|
6233
6233
|
if (j == "async" && m.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1))
|
|
@@ -6288,7 +6288,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6288
6288
|
}
|
|
6289
6289
|
} else if (Ct >= 3 && Ct < 6)
|
|
6290
6290
|
++R;
|
|
6291
|
-
else if (
|
|
6291
|
+
else if (_.test(st))
|
|
6292
6292
|
Z = !0;
|
|
6293
6293
|
else if (/["'\/`]/.test(st))
|
|
6294
6294
|
for (; ; --Oe) {
|
|
@@ -6843,7 +6843,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6843
6843
|
function g(A, D) {
|
|
6844
6844
|
return D == "pairs" && typeof A == "string" ? A : typeof A == "object" && A[D] != null ? A[D] : l[D];
|
|
6845
6845
|
}
|
|
6846
|
-
var p = { Backspace: k, Enter:
|
|
6846
|
+
var p = { Backspace: k, Enter: _ };
|
|
6847
6847
|
function w(A) {
|
|
6848
6848
|
for (var D = 0; D < A.length; D++) {
|
|
6849
6849
|
var P = A.charAt(D), G = "'" + P + "'";
|
|
@@ -6875,7 +6875,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6875
6875
|
A.replaceRange("", c(te.line, te.ch - 1), c(te.line, te.ch + 1), "+delete");
|
|
6876
6876
|
}
|
|
6877
6877
|
}
|
|
6878
|
-
function
|
|
6878
|
+
function _(A) {
|
|
6879
6879
|
var D = y(A), P = D && g(D, "explode");
|
|
6880
6880
|
if (!P || A.getOption("disableInput")) return s.Pass;
|
|
6881
6881
|
for (var G = A.listSelections(), J = 0; J < G.length; J++) {
|
|
@@ -6886,14 +6886,14 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6886
6886
|
A.operation(function() {
|
|
6887
6887
|
var te = A.lineSeparator() || `
|
|
6888
6888
|
`;
|
|
6889
|
-
A.replaceSelection(te + te, null),
|
|
6889
|
+
A.replaceSelection(te + te, null), L(A, -1), G = A.listSelections();
|
|
6890
6890
|
for (var fe = 0; fe < G.length; fe++) {
|
|
6891
6891
|
var Ne = G[fe].head.line;
|
|
6892
6892
|
A.indentLine(Ne, null, !0), A.indentLine(Ne + 1, null, !0);
|
|
6893
6893
|
}
|
|
6894
6894
|
});
|
|
6895
6895
|
}
|
|
6896
|
-
function
|
|
6896
|
+
function L(A, D) {
|
|
6897
6897
|
for (var P = [], G = A.listSelections(), J = 0, ne = 0; ne < G.length; ne++) {
|
|
6898
6898
|
var te = G[ne];
|
|
6899
6899
|
te.head == A.getCursor() && (J = ne);
|
|
@@ -6937,9 +6937,9 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6937
6937
|
var I = J % 2 ? G.charAt(J - 1) : D, N = J % 2 ? D : G.charAt(J + 1);
|
|
6938
6938
|
A.operation(function() {
|
|
6939
6939
|
if (Ee == "skip")
|
|
6940
|
-
|
|
6940
|
+
L(A, 1);
|
|
6941
6941
|
else if (Ee == "skipThree")
|
|
6942
|
-
|
|
6942
|
+
L(A, 3);
|
|
6943
6943
|
else if (Ee == "surround") {
|
|
6944
6944
|
for (var q = A.getSelections(), se = 0; se < q.length; se++)
|
|
6945
6945
|
q[se] = I + q[se] + N;
|
|
@@ -6947,7 +6947,7 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6947
6947
|
for (var se = 0; se < q.length; se++)
|
|
6948
6948
|
q[se] = H(q[se]);
|
|
6949
6949
|
A.setSelections(q);
|
|
6950
|
-
} else Ee == "both" ? (A.replaceSelection(I + N, null), A.triggerElectric(I + N),
|
|
6950
|
+
} else Ee == "both" ? (A.replaceSelection(I + N, null), A.triggerElectric(I + N), L(A, -1)) : Ee == "addFour" && (A.replaceSelection(I + I + I + I, "before"), L(A, 1));
|
|
6951
6951
|
});
|
|
6952
6952
|
}
|
|
6953
6953
|
function U(A, D) {
|
|
@@ -6968,17 +6968,17 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6968
6968
|
s(kr());
|
|
6969
6969
|
})(function(s) {
|
|
6970
6970
|
var l = /MSIE \d/.test(navigator.userAgent) && (document.documentMode == null || document.documentMode < 8), c = s.Pos, g = { "(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<", "<": ">>", ">": "<<" };
|
|
6971
|
-
function p(
|
|
6972
|
-
return
|
|
6971
|
+
function p(L) {
|
|
6972
|
+
return L && L.bracketRegex || /[(){}[\]]/;
|
|
6973
6973
|
}
|
|
6974
|
-
function w(
|
|
6975
|
-
var U =
|
|
6976
|
-
A == null && (A = /(^| )cm-fat-cursor($| )/.test(
|
|
6974
|
+
function w(L, H, F) {
|
|
6975
|
+
var U = L.getLineHandle(H.line), M = H.ch - 1, A = F && F.afterCursor;
|
|
6976
|
+
A == null && (A = /(^| )cm-fat-cursor($| )/.test(L.getWrapperElement().className));
|
|
6977
6977
|
var D = p(F), P = !A && M >= 0 && D.test(U.text.charAt(M)) && g[U.text.charAt(M)] || D.test(U.text.charAt(M + 1)) && g[U.text.charAt(++M)];
|
|
6978
6978
|
if (!P) return null;
|
|
6979
6979
|
var G = P.charAt(1) == ">" ? 1 : -1;
|
|
6980
6980
|
if (F && F.strict && G > 0 != (M == H.ch)) return null;
|
|
6981
|
-
var J =
|
|
6981
|
+
var J = L.getTokenTypeAt(c(H.line, M + 1)), ne = b(L, c(H.line, M + (G > 0 ? 1 : 0)), G, J, F);
|
|
6982
6982
|
return ne == null ? null : {
|
|
6983
6983
|
from: c(H.line, M),
|
|
6984
6984
|
to: ne && ne.pos,
|
|
@@ -6986,15 +6986,15 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
6986
6986
|
forward: G > 0
|
|
6987
6987
|
};
|
|
6988
6988
|
}
|
|
6989
|
-
function b(
|
|
6990
|
-
for (var A = M && M.maxScanLineLength || 1e4, D = M && M.maxScanLines || 1e3, P = [], G = p(M), J = F > 0 ? Math.min(H.line + D,
|
|
6991
|
-
var te =
|
|
6989
|
+
function b(L, H, F, U, M) {
|
|
6990
|
+
for (var A = M && M.maxScanLineLength || 1e4, D = M && M.maxScanLines || 1e3, P = [], G = p(M), J = F > 0 ? Math.min(H.line + D, L.lastLine() + 1) : Math.max(L.firstLine() - 1, H.line - D), ne = H.line; ne != J; ne += F) {
|
|
6991
|
+
var te = L.getLine(ne);
|
|
6992
6992
|
if (te) {
|
|
6993
6993
|
var fe = F > 0 ? 0 : te.length - 1, Ne = F > 0 ? te.length : -1;
|
|
6994
6994
|
if (!(te.length > A))
|
|
6995
6995
|
for (ne == H.line && (fe = H.ch - (F < 0 ? 1 : 0)); fe != Ne; fe += F) {
|
|
6996
6996
|
var _e = te.charAt(fe);
|
|
6997
|
-
if (G.test(_e) && (U === void 0 || (
|
|
6997
|
+
if (G.test(_e) && (U === void 0 || (L.getTokenTypeAt(c(ne, fe + 1)) || "") == (U || ""))) {
|
|
6998
6998
|
var Ee = g[_e];
|
|
6999
6999
|
if (Ee && Ee.charAt(1) == ">" == F > 0) P.push(_e);
|
|
7000
7000
|
else if (P.length) P.pop();
|
|
@@ -7003,20 +7003,20 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
7003
7003
|
}
|
|
7004
7004
|
}
|
|
7005
7005
|
}
|
|
7006
|
-
return ne - F == (F > 0 ?
|
|
7006
|
+
return ne - F == (F > 0 ? L.lastLine() : L.firstLine()) ? !1 : null;
|
|
7007
7007
|
}
|
|
7008
|
-
function y(
|
|
7009
|
-
for (var U =
|
|
7010
|
-
var G = D[P].empty() && w(
|
|
7011
|
-
if (G && (G.match || M !== !1) &&
|
|
7008
|
+
function y(L, H, F) {
|
|
7009
|
+
for (var U = L.state.matchBrackets.maxHighlightLineLength || 1e3, M = F && F.highlightNonMatching, A = [], D = L.listSelections(), P = 0; P < D.length; P++) {
|
|
7010
|
+
var G = D[P].empty() && w(L, D[P].head, F);
|
|
7011
|
+
if (G && (G.match || M !== !1) && L.getLine(G.from.line).length <= U) {
|
|
7012
7012
|
var J = G.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
|
|
7013
|
-
A.push(
|
|
7013
|
+
A.push(L.markText(G.from, c(G.from.line, G.from.ch + 1), { className: J })), G.to && L.getLine(G.to.line).length <= U && A.push(L.markText(G.to, c(G.to.line, G.to.ch + 1), { className: J }));
|
|
7014
7014
|
}
|
|
7015
7015
|
}
|
|
7016
7016
|
if (A.length) {
|
|
7017
|
-
l &&
|
|
7017
|
+
l && L.state.focused && L.focus();
|
|
7018
7018
|
var ne = function() {
|
|
7019
|
-
|
|
7019
|
+
L.operation(function() {
|
|
7020
7020
|
for (var te = 0; te < A.length; te++) A[te].clear();
|
|
7021
7021
|
});
|
|
7022
7022
|
};
|
|
@@ -7024,22 +7024,22 @@ b`.split(/\n/).length != 3 ? function(e) {
|
|
|
7024
7024
|
else return ne;
|
|
7025
7025
|
}
|
|
7026
7026
|
}
|
|
7027
|
-
function k(
|
|
7028
|
-
|
|
7029
|
-
|
|
7027
|
+
function k(L) {
|
|
7028
|
+
L.operation(function() {
|
|
7029
|
+
L.state.matchBrackets.currentlyHighlighted && (L.state.matchBrackets.currentlyHighlighted(), L.state.matchBrackets.currentlyHighlighted = null), L.state.matchBrackets.currentlyHighlighted = y(L, !1, L.state.matchBrackets);
|
|
7030
7030
|
});
|
|
7031
7031
|
}
|
|
7032
|
-
function L
|
|
7033
|
-
|
|
7032
|
+
function _(L) {
|
|
7033
|
+
L.state.matchBrackets && L.state.matchBrackets.currentlyHighlighted && (L.state.matchBrackets.currentlyHighlighted(), L.state.matchBrackets.currentlyHighlighted = null);
|
|
7034
7034
|
}
|
|
7035
|
-
s.defineOption("matchBrackets", !1, function(
|
|
7036
|
-
F && F != s.Init && (
|
|
7035
|
+
s.defineOption("matchBrackets", !1, function(L, H, F) {
|
|
7036
|
+
F && F != s.Init && (L.off("cursorActivity", k), L.off("focus", k), L.off("blur", _), _(L)), H && (L.state.matchBrackets = typeof H == "object" ? H : {}, L.on("cursorActivity", k), L.on("focus", k), L.on("blur", _));
|
|
7037
7037
|
}), s.defineExtension("matchBrackets", function() {
|
|
7038
7038
|
y(this, !0);
|
|
7039
|
-
}), s.defineExtension("findMatchingBracket", function(
|
|
7040
|
-
return (F || typeof H == "boolean") && (F ? (F.strict = H, H = F) : H = H ? { strict: !0 } : null), w(this,
|
|
7041
|
-
}), s.defineExtension("scanForBracket", function(
|
|
7042
|
-
return b(this,
|
|
7039
|
+
}), s.defineExtension("findMatchingBracket", function(L, H, F) {
|
|
7040
|
+
return (F || typeof H == "boolean") && (F ? (F.strict = H, H = F) : H = H ? { strict: !0 } : null), w(this, L, H);
|
|
7041
|
+
}), s.defineExtension("scanForBracket", function(L, H, F, U) {
|
|
7042
|
+
return b(this, L, H, F, U);
|
|
7043
7043
|
});
|
|
7044
7044
|
});
|
|
7045
7045
|
})();
|
|
@@ -7050,15 +7050,15 @@ var Nh = { exports: {} };
|
|
|
7050
7050
|
})(function(s) {
|
|
7051
7051
|
function l(w, b, y, k) {
|
|
7052
7052
|
if (y && y.call) {
|
|
7053
|
-
var
|
|
7053
|
+
var _ = y;
|
|
7054
7054
|
y = null;
|
|
7055
7055
|
} else
|
|
7056
|
-
var
|
|
7056
|
+
var _ = p(w, y, "rangeFinder");
|
|
7057
7057
|
typeof b == "number" && (b = s.Pos(b, 0));
|
|
7058
|
-
var
|
|
7058
|
+
var L = p(w, y, "minFoldSize");
|
|
7059
7059
|
function H(A) {
|
|
7060
|
-
var D =
|
|
7061
|
-
if (!D || D.to.line - D.from.line <
|
|
7060
|
+
var D = _(w, b);
|
|
7061
|
+
if (!D || D.to.line - D.from.line < L) return null;
|
|
7062
7062
|
if (k === "fold") return D;
|
|
7063
7063
|
for (var P = w.findMarksAt(D.from), G = 0; G < P.length; ++G)
|
|
7064
7064
|
if (P[G].__isFold) {
|
|
@@ -7088,8 +7088,8 @@ var Nh = { exports: {} };
|
|
|
7088
7088
|
function c(w, b, y) {
|
|
7089
7089
|
var k = p(w, b, "widget");
|
|
7090
7090
|
if (typeof k == "function" && (k = k(y.from, y.to)), typeof k == "string") {
|
|
7091
|
-
var
|
|
7092
|
-
k = document.createElement("span"), k.appendChild(
|
|
7091
|
+
var _ = document.createTextNode(k);
|
|
7092
|
+
k = document.createElement("span"), k.appendChild(_), k.className = "CodeMirror-foldmarker";
|
|
7093
7093
|
} else k && (k = k.cloneNode(!0));
|
|
7094
7094
|
return k;
|
|
7095
7095
|
}
|
|
@@ -7122,14 +7122,14 @@ var Nh = { exports: {} };
|
|
|
7122
7122
|
var w = Array.prototype.slice.call(arguments, 0);
|
|
7123
7123
|
return function(b, y) {
|
|
7124
7124
|
for (var k = 0; k < w.length; ++k) {
|
|
7125
|
-
var
|
|
7126
|
-
if (
|
|
7125
|
+
var _ = w[k](b, y);
|
|
7126
|
+
if (_) return _;
|
|
7127
7127
|
}
|
|
7128
7128
|
};
|
|
7129
7129
|
}), s.registerHelper("fold", "auto", function(w, b) {
|
|
7130
7130
|
for (var y = w.getHelpers(b, "fold"), k = 0; k < y.length; k++) {
|
|
7131
|
-
var
|
|
7132
|
-
if (
|
|
7131
|
+
var _ = y[k](w, b);
|
|
7132
|
+
if (_) return _;
|
|
7133
7133
|
}
|
|
7134
7134
|
});
|
|
7135
7135
|
var g = {
|
|
@@ -7157,7 +7157,7 @@ var Mh = Nh.exports;
|
|
|
7157
7157
|
s(kr(), Mh);
|
|
7158
7158
|
})(function(s) {
|
|
7159
7159
|
s.defineOption("foldGutter", !1, function(M, A, D) {
|
|
7160
|
-
D && D != s.Init && (M.clearGutter(M.state.foldGutter.options.gutter), M.state.foldGutter = null, M.off("gutterClick",
|
|
7160
|
+
D && D != s.Init && (M.clearGutter(M.state.foldGutter.options.gutter), M.state.foldGutter = null, M.off("gutterClick", _), M.off("changes", H), M.off("viewportChange", F), M.off("fold", U), M.off("unfold", U), M.off("swapDoc", H), M.off("optionChange", L)), A && (M.state.foldGutter = new c(g(A)), k(M), M.on("gutterClick", _), M.on("changes", H), M.on("viewportChange", F), M.on("fold", U), M.on("unfold", U), M.on("swapDoc", H), M.on("optionChange", L));
|
|
7161
7161
|
});
|
|
7162
7162
|
var l = s.Pos;
|
|
7163
7163
|
function c(M) {
|
|
@@ -7208,7 +7208,7 @@ var Mh = Nh.exports;
|
|
|
7208
7208
|
b(M, A.from, A.to);
|
|
7209
7209
|
}), D.from = A.from, D.to = A.to);
|
|
7210
7210
|
}
|
|
7211
|
-
function
|
|
7211
|
+
function _(M, A, D) {
|
|
7212
7212
|
var P = M.state.foldGutter;
|
|
7213
7213
|
if (P) {
|
|
7214
7214
|
var G = P.options;
|
|
@@ -7218,7 +7218,7 @@ var Mh = Nh.exports;
|
|
|
7218
7218
|
}
|
|
7219
7219
|
}
|
|
7220
7220
|
}
|
|
7221
|
-
function
|
|
7221
|
+
function L(M, A) {
|
|
7222
7222
|
A == "mode" && H(M);
|
|
7223
7223
|
}
|
|
7224
7224
|
function H(M) {
|
|
@@ -7291,26 +7291,26 @@ var Mh = Nh.exports;
|
|
|
7291
7291
|
to: s.Pos(D, G)
|
|
7292
7292
|
};
|
|
7293
7293
|
}
|
|
7294
|
-
for (var
|
|
7295
|
-
var H = y(c[
|
|
7296
|
-
H &&
|
|
7294
|
+
for (var _ = [], L = 0; L < c.length; L++) {
|
|
7295
|
+
var H = y(c[L]);
|
|
7296
|
+
H && _.push(H);
|
|
7297
7297
|
}
|
|
7298
|
-
|
|
7298
|
+
_.sort(function(U, M) {
|
|
7299
7299
|
return U.ch - M.ch;
|
|
7300
7300
|
});
|
|
7301
|
-
for (var
|
|
7302
|
-
var F = k(L
|
|
7301
|
+
for (var L = 0; L < _.length; L++) {
|
|
7302
|
+
var F = k(_[L]);
|
|
7303
7303
|
if (F) return F;
|
|
7304
7304
|
}
|
|
7305
7305
|
return null;
|
|
7306
7306
|
};
|
|
7307
7307
|
}
|
|
7308
7308
|
s.registerHelper("fold", "brace", l([["{", "}"], ["[", "]"]])), s.registerHelper("fold", "brace-paren", l([["{", "}"], ["[", "]"], ["(", ")"]])), s.registerHelper("fold", "import", function(c, g) {
|
|
7309
|
-
function p(
|
|
7310
|
-
if (
|
|
7311
|
-
var H = c.getTokenAt(s.Pos(
|
|
7312
|
-
if (/\S/.test(H.string) || (H = c.getTokenAt(s.Pos(
|
|
7313
|
-
for (var F =
|
|
7309
|
+
function p(L) {
|
|
7310
|
+
if (L < c.firstLine() || L > c.lastLine()) return null;
|
|
7311
|
+
var H = c.getTokenAt(s.Pos(L, 1));
|
|
7312
|
+
if (/\S/.test(H.string) || (H = c.getTokenAt(s.Pos(L, H.end + 1))), H.type != "keyword" || H.string != "import") return null;
|
|
7313
|
+
for (var F = L, U = Math.min(c.lastLine(), L + 10); F <= U; ++F) {
|
|
7314
7314
|
var M = c.getLine(F), A = M.indexOf(";");
|
|
7315
7315
|
if (A != -1) return { startCh: H.end, end: s.Pos(F, A) };
|
|
7316
7316
|
}
|
|
@@ -7319,16 +7319,16 @@ var Mh = Nh.exports;
|
|
|
7319
7319
|
if (!b || p(w - 1) || (y = p(w - 2)) && y.end.line == w - 1)
|
|
7320
7320
|
return null;
|
|
7321
7321
|
for (var k = b.end; ; ) {
|
|
7322
|
-
var
|
|
7323
|
-
if (
|
|
7324
|
-
k =
|
|
7322
|
+
var _ = p(k.line + 1);
|
|
7323
|
+
if (_ == null) break;
|
|
7324
|
+
k = _.end;
|
|
7325
7325
|
}
|
|
7326
7326
|
return { from: c.clipPos(s.Pos(w, b.startCh + 1)), to: k };
|
|
7327
7327
|
}), s.registerHelper("fold", "include", function(c, g) {
|
|
7328
|
-
function p(
|
|
7329
|
-
if (
|
|
7330
|
-
var
|
|
7331
|
-
if (/\S/.test(
|
|
7328
|
+
function p(_) {
|
|
7329
|
+
if (_ < c.firstLine() || _ > c.lastLine()) return null;
|
|
7330
|
+
var L = c.getTokenAt(s.Pos(_, 1));
|
|
7331
|
+
if (/\S/.test(L.string) || (L = c.getTokenAt(s.Pos(_, L.end + 1))), L.type == "meta" && L.string.slice(0, 8) == "#include") return L.start + 8;
|
|
7332
7332
|
}
|
|
7333
7333
|
var w = g.line, b = p(w);
|
|
7334
7334
|
if (b == null || p(w - 1) != null) return null;
|
|
@@ -7423,11 +7423,11 @@ var Xu = { exports: {} };
|
|
|
7423
7423
|
}(p), b = window.CodeMirror || w.default;
|
|
7424
7424
|
typeof Object.assign != "function" && Object.defineProperty(Object, "assign", { value: function(y, k) {
|
|
7425
7425
|
if (y == null) throw new TypeError("Cannot convert undefined or null to object");
|
|
7426
|
-
for (var
|
|
7427
|
-
var H = arguments[
|
|
7428
|
-
if (H != null) for (var F in H) Object.prototype.hasOwnProperty.call(H, F) && (
|
|
7426
|
+
for (var _ = Object(y), L = 1; L < arguments.length; L++) {
|
|
7427
|
+
var H = arguments[L];
|
|
7428
|
+
if (H != null) for (var F in H) Object.prototype.hasOwnProperty.call(H, F) && (_[F] = H[F]);
|
|
7429
7429
|
}
|
|
7430
|
-
return
|
|
7430
|
+
return _;
|
|
7431
7431
|
}, writable: !0, configurable: !0 }), c.default = { name: "codemirror", data: function() {
|
|
7432
7432
|
return { content: "", codemirror: null, cminstance: null };
|
|
7433
7433
|
}, props: { code: String, value: String, marker: Function, unseenLines: Array, name: { type: String, default: "codemirror" }, placeholder: { type: String, default: "" }, merge: { type: Boolean, default: !1 }, options: { type: Object, default: function() {
|
|
@@ -7448,18 +7448,18 @@ var Xu = { exports: {} };
|
|
|
7448
7448
|
this.handerCodeChange(y);
|
|
7449
7449
|
} }, methods: { initialize: function() {
|
|
7450
7450
|
var y = this, k = Object.assign({}, this.globalOptions, this.options);
|
|
7451
|
-
this.merge ? (this.codemirror = b.MergeView(this.$refs.mergeview, k), this.cminstance = this.codemirror.edit) : (this.codemirror = b.fromTextArea(this.$refs.textarea, k), this.cminstance = this.codemirror, this.cminstance.setValue(this.code || this.value || this.content)), this.cminstance.on("change", function(
|
|
7452
|
-
y.content =
|
|
7451
|
+
this.merge ? (this.codemirror = b.MergeView(this.$refs.mergeview, k), this.cminstance = this.codemirror.edit) : (this.codemirror = b.fromTextArea(this.$refs.textarea, k), this.cminstance = this.codemirror, this.cminstance.setValue(this.code || this.value || this.content)), this.cminstance.on("change", function(L) {
|
|
7452
|
+
y.content = L.getValue(), y.$emit && y.$emit("input", y.content);
|
|
7453
7453
|
});
|
|
7454
|
-
var
|
|
7455
|
-
["scroll", "changes", "beforeChange", "cursorActivity", "keyHandled", "inputRead", "electricInput", "beforeSelectionChange", "viewportChange", "swapDoc", "gutterClick", "gutterContextMenu", "focus", "blur", "refresh", "optionChange", "scrollCursorIntoView", "update"].concat(this.events).concat(this.globalEvents).filter(function(
|
|
7456
|
-
return !L
|
|
7457
|
-
}).forEach(function(
|
|
7458
|
-
y.cminstance.on(
|
|
7454
|
+
var _ = {};
|
|
7455
|
+
["scroll", "changes", "beforeChange", "cursorActivity", "keyHandled", "inputRead", "electricInput", "beforeSelectionChange", "viewportChange", "swapDoc", "gutterClick", "gutterContextMenu", "focus", "blur", "refresh", "optionChange", "scrollCursorIntoView", "update"].concat(this.events).concat(this.globalEvents).filter(function(L) {
|
|
7456
|
+
return !_[L] && (_[L] = !0);
|
|
7457
|
+
}).forEach(function(L) {
|
|
7458
|
+
y.cminstance.on(L, function() {
|
|
7459
7459
|
for (var H = arguments.length, F = Array(H), U = 0; U < H; U++) F[U] = arguments[U];
|
|
7460
|
-
y.$emit.apply(y, [
|
|
7461
|
-
var M =
|
|
7462
|
-
M !==
|
|
7460
|
+
y.$emit.apply(y, [L].concat(F));
|
|
7461
|
+
var M = L.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
7462
|
+
M !== L && y.$emit.apply(y, [M].concat(F));
|
|
7463
7463
|
});
|
|
7464
7464
|
}), this.$emit("ready", this.codemirror), this.unseenLineMarkers(), this.refresh();
|
|
7465
7465
|
}, refresh: function() {
|
|
@@ -7479,8 +7479,8 @@ var Xu = { exports: {} };
|
|
|
7479
7479
|
}, unseenLineMarkers: function() {
|
|
7480
7480
|
var y = this;
|
|
7481
7481
|
this.unseenLines !== void 0 && this.marker !== void 0 && this.unseenLines.forEach(function(k) {
|
|
7482
|
-
var
|
|
7483
|
-
y.cminstance.setGutterMarker(k, "breakpoints",
|
|
7482
|
+
var _ = y.cminstance.lineInfo(k);
|
|
7483
|
+
y.cminstance.setGutterMarker(k, "breakpoints", _.gutterMarkers ? null : y.marker());
|
|
7484
7484
|
});
|
|
7485
7485
|
}, switchMerge: function() {
|
|
7486
7486
|
var y = this.cminstance.doc.history, k = this.cminstance.doc.cleanGeneration;
|
|
@@ -7493,31 +7493,31 @@ var Xu = { exports: {} };
|
|
|
7493
7493
|
}, function(l, c, g) {
|
|
7494
7494
|
Object.defineProperty(c, "__esModule", { value: !0 });
|
|
7495
7495
|
var p = g(1), w = g.n(p);
|
|
7496
|
-
for (var b in p) ["default", "default"].indexOf(b) < 0 && function(
|
|
7497
|
-
g.d(c,
|
|
7498
|
-
return p[
|
|
7496
|
+
for (var b in p) ["default", "default"].indexOf(b) < 0 && function(L) {
|
|
7497
|
+
g.d(c, L, function() {
|
|
7498
|
+
return p[L];
|
|
7499
7499
|
});
|
|
7500
7500
|
}(b);
|
|
7501
|
-
var y = g(5), k = g(4),
|
|
7502
|
-
c.default =
|
|
7501
|
+
var y = g(5), k = g(4), _ = k(w.a, y.a, !1, null, null, null);
|
|
7502
|
+
c.default = _.exports;
|
|
7503
7503
|
}, function(l, c, g) {
|
|
7504
7504
|
function p(F) {
|
|
7505
7505
|
return F && F.__esModule ? F : { default: F };
|
|
7506
7506
|
}
|
|
7507
7507
|
Object.defineProperty(c, "__esModule", { value: !0 }), c.install = c.codemirror = c.CodeMirror = void 0;
|
|
7508
|
-
var w = g(0), b = p(w), y = g(2), k = p(y),
|
|
7508
|
+
var w = g(0), b = p(w), y = g(2), k = p(y), _ = window.CodeMirror || b.default, L = function(F, U) {
|
|
7509
7509
|
U && (U.options && (k.default.props.globalOptions.default = function() {
|
|
7510
7510
|
return U.options;
|
|
7511
7511
|
}), U.events && (k.default.props.globalEvents.default = function() {
|
|
7512
7512
|
return U.events;
|
|
7513
7513
|
})), F.component(k.default.name, k.default);
|
|
7514
|
-
}, H = { CodeMirror:
|
|
7515
|
-
c.default = H, c.CodeMirror =
|
|
7514
|
+
}, H = { CodeMirror: _, codemirror: k.default, install: L };
|
|
7515
|
+
c.default = H, c.CodeMirror = _, c.codemirror = k.default, c.install = L;
|
|
7516
7516
|
}, function(l, c) {
|
|
7517
7517
|
l.exports = function(g, p, w, b, y, k) {
|
|
7518
|
-
var
|
|
7519
|
-
H !== "object" && H !== "function" || (
|
|
7520
|
-
var F = typeof
|
|
7518
|
+
var _, L = g = g || {}, H = typeof g.default;
|
|
7519
|
+
H !== "object" && H !== "function" || (_ = g, L = g.default);
|
|
7520
|
+
var F = typeof L == "function" ? L.options : L;
|
|
7521
7521
|
p && (F.render = p.render, F.staticRenderFns = p.staticRenderFns, F._compiled = !0), w && (F.functional = !0), y && (F._scopeId = y);
|
|
7522
7522
|
var U;
|
|
7523
7523
|
if (k ? (U = function(D) {
|
|
@@ -7528,12 +7528,12 @@ var Xu = { exports: {} };
|
|
|
7528
7528
|
return U.call(P), A(D, P);
|
|
7529
7529
|
}) : F.beforeCreate = A ? [].concat(A, U) : [U];
|
|
7530
7530
|
}
|
|
7531
|
-
return { esModule:
|
|
7531
|
+
return { esModule: _, exports: L, options: F };
|
|
7532
7532
|
};
|
|
7533
7533
|
}, function(l, c, g) {
|
|
7534
7534
|
var p = function() {
|
|
7535
|
-
var y = this, k = y.$createElement,
|
|
7536
|
-
return
|
|
7535
|
+
var y = this, k = y.$createElement, _ = y._self._c || k;
|
|
7536
|
+
return _("div", { staticClass: "vue-codemirror", class: { merge: y.merge } }, [y.merge ? _("div", { ref: "mergeview" }) : _("textarea", { ref: "textarea", attrs: { name: y.name, placeholder: y.placeholder } })]);
|
|
7537
7537
|
}, w = [], b = { render: p, staticRenderFns: w };
|
|
7538
7538
|
c.a = b;
|
|
7539
7539
|
}]);
|
|
@@ -7778,30 +7778,30 @@ class Ca {
|
|
|
7778
7778
|
if (!(s = p.exec(i)) || this.rules.block.hr.test(i))
|
|
7779
7779
|
break;
|
|
7780
7780
|
w = s[0], i = i.substring(w.length);
|
|
7781
|
-
let
|
|
7782
|
-
`, 1)[0].replace(/^\t+/, (A) => " ".repeat(3 * A.length)),
|
|
7781
|
+
let _ = s[2].split(`
|
|
7782
|
+
`, 1)[0].replace(/^\t+/, (A) => " ".repeat(3 * A.length)), L = i.split(`
|
|
7783
7783
|
`, 1)[0], H = 0;
|
|
7784
|
-
this.options.pedantic ? (H = 2, b =
|
|
7784
|
+
this.options.pedantic ? (H = 2, b = _.trimStart()) : (H = s[2].search(/[^ ]/), H = H > 4 ? 1 : H, b = _.slice(H), H += s[1].length);
|
|
7785
7785
|
let F = !1;
|
|
7786
|
-
if (!
|
|
7787
|
-
`, i = i.substring(
|
|
7786
|
+
if (!_ && /^ *$/.test(L) && (w += L + `
|
|
7787
|
+
`, i = i.substring(L.length + 1), k = !0), !k) {
|
|
7788
7788
|
const A = new RegExp(`^ {0,${Math.min(3, H - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), D = new RegExp(`^ {0,${Math.min(3, H - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), P = new RegExp(`^ {0,${Math.min(3, H - 1)}}(?:\`\`\`|~~~)`), G = new RegExp(`^ {0,${Math.min(3, H - 1)}}#`);
|
|
7789
7789
|
for (; i; ) {
|
|
7790
7790
|
const J = i.split(`
|
|
7791
7791
|
`, 1)[0];
|
|
7792
|
-
if (
|
|
7792
|
+
if (L = J, this.options.pedantic && (L = L.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), P.test(L) || G.test(L) || A.test(L) || D.test(i))
|
|
7793
7793
|
break;
|
|
7794
|
-
if (
|
|
7794
|
+
if (L.search(/[^ ]/) >= H || !L.trim())
|
|
7795
7795
|
b += `
|
|
7796
|
-
` +
|
|
7796
|
+
` + L.slice(H);
|
|
7797
7797
|
else {
|
|
7798
|
-
if (F ||
|
|
7798
|
+
if (F || _.search(/[^ ]/) >= 4 || P.test(_) || G.test(_) || D.test(_))
|
|
7799
7799
|
break;
|
|
7800
7800
|
b += `
|
|
7801
|
-
` +
|
|
7801
|
+
` + L;
|
|
7802
7802
|
}
|
|
7803
|
-
!F && !
|
|
7804
|
-
`, i = i.substring(J.length + 1),
|
|
7803
|
+
!F && !L.trim() && (F = !0), w += J + `
|
|
7804
|
+
`, i = i.substring(J.length + 1), _ = L.slice(H);
|
|
7805
7805
|
}
|
|
7806
7806
|
}
|
|
7807
7807
|
g.loose || (y ? g.loose = !0 : /\n *\n *$/.test(w) && (y = !0));
|
|
@@ -7819,8 +7819,8 @@ class Ca {
|
|
|
7819
7819
|
g.items[g.items.length - 1].raw = w.trimEnd(), g.items[g.items.length - 1].text = b.trimEnd(), g.raw = g.raw.trimEnd();
|
|
7820
7820
|
for (let k = 0; k < g.items.length; k++)
|
|
7821
7821
|
if (this.lexer.state.top = !1, g.items[k].tokens = this.lexer.blockTokens(g.items[k].text, []), !g.loose) {
|
|
7822
|
-
const
|
|
7823
|
-
g.loose =
|
|
7822
|
+
const _ = g.items[k].tokens.filter((H) => H.type === "space"), L = _.length > 0 && _.some((H) => /\n.*\n/.test(H.raw));
|
|
7823
|
+
g.loose = L;
|
|
7824
7824
|
}
|
|
7825
7825
|
if (g.loose)
|
|
7826
7826
|
for (let k = 0; k < g.items.length; k++)
|
|
@@ -7986,8 +7986,8 @@ class Ca {
|
|
|
7986
7986
|
if (!(c[1] || c[2] || "") || !l || this.rules.inline.punctuation.exec(l)) {
|
|
7987
7987
|
const p = [...c[0]].length - 1;
|
|
7988
7988
|
let w, b, y = p, k = 0;
|
|
7989
|
-
const
|
|
7990
|
-
for (
|
|
7989
|
+
const _ = c[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
7990
|
+
for (_.lastIndex = 0, s = s.slice(-1 * i.length + p); (c = _.exec(s)) != null; ) {
|
|
7991
7991
|
if (w = c[1] || c[2] || c[3] || c[4] || c[5] || c[6], !w)
|
|
7992
7992
|
continue;
|
|
7993
7993
|
if (b = [...w].length, c[3] || c[4]) {
|
|
@@ -8000,7 +8000,7 @@ class Ca {
|
|
|
8000
8000
|
if (y -= b, y > 0)
|
|
8001
8001
|
continue;
|
|
8002
8002
|
b = Math.min(b, b + y + k);
|
|
8003
|
-
const
|
|
8003
|
+
const L = [...c[0]][0].length, H = i.slice(0, p + c.index + L + b);
|
|
8004
8004
|
if (Math.min(p, b) % 2) {
|
|
8005
8005
|
const U = H.slice(1, -1);
|
|
8006
8006
|
return {
|
|
@@ -8385,10 +8385,10 @@ class cr {
|
|
|
8385
8385
|
}
|
|
8386
8386
|
if (g = i, this.options.extensions && this.options.extensions.startInline) {
|
|
8387
8387
|
let k = 1 / 0;
|
|
8388
|
-
const
|
|
8389
|
-
let
|
|
8388
|
+
const _ = i.slice(1);
|
|
8389
|
+
let L;
|
|
8390
8390
|
this.options.extensions.startInline.forEach((H) => {
|
|
8391
|
-
|
|
8391
|
+
L = H.call({ lexer: this }, _), typeof L == "number" && L >= 0 && (k = Math.min(k, L));
|
|
8392
8392
|
}), k < 1 / 0 && k >= 0 && (g = i.substring(0, k + 1));
|
|
8393
8393
|
}
|
|
8394
8394
|
if (l = this.tokenizer.inlineText(g)) {
|
|
@@ -8596,10 +8596,10 @@ class hr {
|
|
|
8596
8596
|
w += this.renderer.tablerow(b);
|
|
8597
8597
|
let y = "";
|
|
8598
8598
|
for (let k = 0; k < p.rows.length; k++) {
|
|
8599
|
-
const
|
|
8599
|
+
const _ = p.rows[k];
|
|
8600
8600
|
b = "";
|
|
8601
|
-
for (let
|
|
8602
|
-
b += this.renderer.tablecell(this.parseInline(L
|
|
8601
|
+
for (let L = 0; L < _.length; L++)
|
|
8602
|
+
b += this.renderer.tablecell(this.parseInline(_[L].tokens), { header: !1, align: p.align[L] });
|
|
8603
8603
|
y += this.renderer.tablerow(b);
|
|
8604
8604
|
}
|
|
8605
8605
|
l += this.renderer.table(w, y);
|
|
@@ -8613,17 +8613,17 @@ class hr {
|
|
|
8613
8613
|
case "list": {
|
|
8614
8614
|
const p = g, w = p.ordered, b = p.start, y = p.loose;
|
|
8615
8615
|
let k = "";
|
|
8616
|
-
for (let
|
|
8617
|
-
const
|
|
8616
|
+
for (let _ = 0; _ < p.items.length; _++) {
|
|
8617
|
+
const L = p.items[_], H = L.checked, F = L.task;
|
|
8618
8618
|
let U = "";
|
|
8619
|
-
if (
|
|
8619
|
+
if (L.task) {
|
|
8620
8620
|
const M = this.renderer.checkbox(!!H);
|
|
8621
|
-
y ?
|
|
8621
|
+
y ? L.tokens.length > 0 && L.tokens[0].type === "paragraph" ? (L.tokens[0].text = M + " " + L.tokens[0].text, L.tokens[0].tokens && L.tokens[0].tokens.length > 0 && L.tokens[0].tokens[0].type === "text" && (L.tokens[0].tokens[0].text = M + " " + L.tokens[0].tokens[0].text)) : L.tokens.unshift({
|
|
8622
8622
|
type: "text",
|
|
8623
8623
|
text: M + " "
|
|
8624
8624
|
}) : U += M + " ";
|
|
8625
8625
|
}
|
|
8626
|
-
U += this.parse(
|
|
8626
|
+
U += this.parse(L.tokens, y), k += this.renderer.listitem(U, F, !!H);
|
|
8627
8627
|
}
|
|
8628
8628
|
l += this.renderer.list(k, w, b);
|
|
8629
8629
|
continue;
|
|
@@ -8839,8 +8839,8 @@ class md {
|
|
|
8839
8839
|
continue;
|
|
8840
8840
|
const w = p, b = l.renderer[w], y = g[w];
|
|
8841
8841
|
g[w] = (...k) => {
|
|
8842
|
-
let
|
|
8843
|
-
return
|
|
8842
|
+
let _ = b.apply(g, k);
|
|
8843
|
+
return _ === !1 && (_ = y.apply(g, k)), _ || "";
|
|
8844
8844
|
};
|
|
8845
8845
|
}
|
|
8846
8846
|
c.renderer = g;
|
|
@@ -8854,8 +8854,8 @@ class md {
|
|
|
8854
8854
|
continue;
|
|
8855
8855
|
const w = p, b = l.tokenizer[w], y = g[w];
|
|
8856
8856
|
g[w] = (...k) => {
|
|
8857
|
-
let
|
|
8858
|
-
return
|
|
8857
|
+
let _ = b.apply(g, k);
|
|
8858
|
+
return _ === !1 && (_ = y.apply(g, k)), _;
|
|
8859
8859
|
};
|
|
8860
8860
|
}
|
|
8861
8861
|
c.tokenizer = g;
|
|
@@ -8870,12 +8870,12 @@ class md {
|
|
|
8870
8870
|
const w = p, b = l.hooks[w], y = g[w];
|
|
8871
8871
|
Li.passThroughHooks.has(p) ? g[w] = (k) => {
|
|
8872
8872
|
if (this.defaults.async)
|
|
8873
|
-
return Promise.resolve(b.call(g, k)).then((
|
|
8874
|
-
const
|
|
8875
|
-
return y.call(g,
|
|
8873
|
+
return Promise.resolve(b.call(g, k)).then((L) => y.call(g, L));
|
|
8874
|
+
const _ = b.call(g, k);
|
|
8875
|
+
return y.call(g, _);
|
|
8876
8876
|
} : g[w] = (...k) => {
|
|
8877
|
-
let
|
|
8878
|
-
return
|
|
8877
|
+
let _ = b.apply(g, k);
|
|
8878
|
+
return _ === !1 && (_ = y.apply(g, k)), _;
|
|
8879
8879
|
};
|
|
8880
8880
|
}
|
|
8881
8881
|
c.hooks = g;
|
|
@@ -9585,8 +9585,8 @@ function ye(u, i, s) {
|
|
|
9585
9585
|
var p = u.listeners, w = p === void 0 ? {} : p;
|
|
9586
9586
|
c = function() {
|
|
9587
9587
|
delete w[g][s], u.removeEventListener(g, c, l);
|
|
9588
|
-
for (var y = arguments.length, k = new Array(y),
|
|
9589
|
-
k[
|
|
9588
|
+
for (var y = arguments.length, k = new Array(y), _ = 0; _ < y; _++)
|
|
9589
|
+
k[_] = arguments[_];
|
|
9590
9590
|
s.apply(u, k);
|
|
9591
9591
|
}, w[g] || (w[g] = {}), w[g][s] && u.removeEventListener(g, w[g][s], l), w[g][s] = c, u.listeners = w;
|
|
9592
9592
|
}
|
|
@@ -9650,8 +9650,8 @@ function jd(u) {
|
|
|
9650
9650
|
var i = qs({}, u), s = [];
|
|
9651
9651
|
return $e(u, function(l, c) {
|
|
9652
9652
|
delete i[c], $e(i, function(g) {
|
|
9653
|
-
var p = Math.abs(l.startX - g.startX), w = Math.abs(l.startY - g.startY), b = Math.abs(l.endX - g.endX), y = Math.abs(l.endY - g.endY), k = Math.sqrt(p * p + w * w),
|
|
9654
|
-
s.push(
|
|
9653
|
+
var p = Math.abs(l.startX - g.startX), w = Math.abs(l.startY - g.startY), b = Math.abs(l.endX - g.endX), y = Math.abs(l.endY - g.endY), k = Math.sqrt(p * p + w * w), _ = Math.sqrt(b * b + y * y), L = (_ - k) / k;
|
|
9654
|
+
s.push(L);
|
|
9655
9655
|
});
|
|
9656
9656
|
}), s.sort(function(l, c) {
|
|
9657
9657
|
return Math.abs(l) < Math.abs(c);
|
|
@@ -9707,16 +9707,16 @@ var qd = {
|
|
|
9707
9707
|
c.innerHTML = "", $e(this.images, function(p, w) {
|
|
9708
9708
|
var b = p.src, y = p.alt || Ud(b), k = i.getImageURL(p);
|
|
9709
9709
|
if (b || k) {
|
|
9710
|
-
var
|
|
9710
|
+
var _ = document.createElement("li"), L = document.createElement("img");
|
|
9711
9711
|
$e(l.inheritedAttributes, function(H) {
|
|
9712
9712
|
var F = p.getAttribute(H);
|
|
9713
|
-
F !== null &&
|
|
9714
|
-
}), l.navbar && (
|
|
9713
|
+
F !== null && L.setAttribute(H, F);
|
|
9714
|
+
}), l.navbar && (L.src = b || k), L.alt = y, L.setAttribute("data-original-url", k || b), _.setAttribute("data-index", w), _.setAttribute("data-viewer-action", "view"), _.setAttribute("role", "button"), l.keyboard && _.setAttribute("tabindex", 0), _.appendChild(L), c.appendChild(_), g.push(_);
|
|
9715
9715
|
}
|
|
9716
9716
|
}), this.items = g, $e(g, function(p) {
|
|
9717
9717
|
var w = p.firstElementChild, b, y;
|
|
9718
|
-
Fs(w, "filled", !0), l.loading && ve(p, Hn), ye(w, qt, b = function(
|
|
9719
|
-
He(w, Jr, y), l.loading && Ie(p, Hn), i.loadImage(
|
|
9718
|
+
Fs(w, "filled", !0), l.loading && ve(p, Hn), ye(w, qt, b = function(_) {
|
|
9719
|
+
He(w, Jr, y), l.loading && Ie(p, Hn), i.loadImage(_);
|
|
9720
9720
|
}, {
|
|
9721
9721
|
once: !0
|
|
9722
9722
|
}), ye(w, Jr, y = function() {
|
|
@@ -9753,9 +9753,9 @@ var qd = {
|
|
|
9753
9753
|
abort: function() {
|
|
9754
9754
|
k.onload = null;
|
|
9755
9755
|
}
|
|
9756
|
-
}, k = hf(c, l, function(
|
|
9757
|
-
var H =
|
|
9758
|
-
s.imageInitializing = !1, b * H > w ? M = w / H : U = b * H, F = Ve(F) ? F : 0.9, U = Math.min(U * F,
|
|
9756
|
+
}, k = hf(c, l, function(_, L) {
|
|
9757
|
+
var H = _ / L, F = Math.max(0, Math.min(1, l.initialCoverage)), U = w, M = b;
|
|
9758
|
+
s.imageInitializing = !1, b * H > w ? M = w / H : U = b * H, F = Ve(F) ? F : 0.9, U = Math.min(U * F, _), M = Math.min(M * F, L);
|
|
9759
9759
|
var A = (w - U) / 2, D = (b - M) / 2, P = {
|
|
9760
9760
|
left: A,
|
|
9761
9761
|
top: D,
|
|
@@ -9764,10 +9764,10 @@ var qd = {
|
|
|
9764
9764
|
width: U,
|
|
9765
9765
|
height: M,
|
|
9766
9766
|
oldRatio: 1,
|
|
9767
|
-
ratio: U /
|
|
9767
|
+
ratio: U / _,
|
|
9768
9768
|
aspectRatio: H,
|
|
9769
|
-
naturalWidth:
|
|
9770
|
-
naturalHeight:
|
|
9769
|
+
naturalWidth: _,
|
|
9770
|
+
naturalHeight: L
|
|
9771
9771
|
}, G = Ft({}, P);
|
|
9772
9772
|
l.rotatable && (P.rotate = y.rotate || 0, G.rotate = 0), l.scalable && (P.scaleX = y.scaleX || 1, P.scaleY = y.scaleY || 1, G.scaleX = 1, G.scaleY = 1), s.imageData = P, s.initialImageData = G, i && i();
|
|
9773
9773
|
});
|
|
@@ -9888,13 +9888,13 @@ var qd = {
|
|
|
9888
9888
|
loadImage: function(i) {
|
|
9889
9889
|
var s = i.target, l = s.parentNode, c = l.offsetWidth || 30, g = l.offsetHeight || 50, p = !!Fn(s, "filled");
|
|
9890
9890
|
hf(s, this.options, function(w, b) {
|
|
9891
|
-
var y = w / b, k = c,
|
|
9892
|
-
g * y > c ? p ? k = g * y :
|
|
9891
|
+
var y = w / b, k = c, _ = g;
|
|
9892
|
+
g * y > c ? p ? k = g * y : _ = c / y : p ? _ = c / y : k = g * y, ar(s, Ft({
|
|
9893
9893
|
width: k,
|
|
9894
|
-
height:
|
|
9894
|
+
height: _
|
|
9895
9895
|
}, Sa({
|
|
9896
9896
|
translateX: (c - k) / 2,
|
|
9897
|
-
translateY: (g -
|
|
9897
|
+
translateY: (g - _) / 2
|
|
9898
9898
|
})));
|
|
9899
9899
|
});
|
|
9900
9900
|
},
|
|
@@ -10044,8 +10044,8 @@ var qd = {
|
|
|
10044
10044
|
Ie(g, Kt), i.hidden();
|
|
10045
10045
|
};
|
|
10046
10046
|
if (c.transition && !s) {
|
|
10047
|
-
var b = function(
|
|
10048
|
-
|
|
10047
|
+
var b = function(_) {
|
|
10048
|
+
_ && _.target === g && (He(g, ir, b), i.hidden());
|
|
10049
10049
|
}, y = function() {
|
|
10050
10050
|
Rn(g, Qe) ? (ye(g, ir, b), Ie(g, Kt)) : w();
|
|
10051
10051
|
};
|
|
@@ -10072,40 +10072,40 @@ var qd = {
|
|
|
10072
10072
|
if (!this.isShown)
|
|
10073
10073
|
return this.index = s, this.show();
|
|
10074
10074
|
this.viewing && this.viewing.abort();
|
|
10075
|
-
var l = this.element, c = this.options, g = this.title, p = this.canvas, w = this.items[s], b = w.querySelector("img"), y = Fn(b, "originalUrl"), k = b.getAttribute("alt"),
|
|
10075
|
+
var l = this.element, c = this.options, g = this.title, p = this.canvas, w = this.items[s], b = w.querySelector("img"), y = Fn(b, "originalUrl"), k = b.getAttribute("alt"), _ = document.createElement("img");
|
|
10076
10076
|
if ($e(c.inheritedAttributes, function(M) {
|
|
10077
10077
|
var A = b.getAttribute(M);
|
|
10078
|
-
A !== null &&
|
|
10079
|
-
}),
|
|
10078
|
+
A !== null && _.setAttribute(M, A);
|
|
10079
|
+
}), _.src = y, _.alt = k, We(c.view) && ye(l, _u, c.view, {
|
|
10080
10080
|
once: !0
|
|
10081
10081
|
}), nt(l, _u, {
|
|
10082
10082
|
originalImage: this.images[s],
|
|
10083
10083
|
index: s,
|
|
10084
|
-
image:
|
|
10084
|
+
image: _
|
|
10085
10085
|
}) === !1 || !this.isShown || this.hiding || this.played)
|
|
10086
10086
|
return this;
|
|
10087
|
-
var
|
|
10088
|
-
|
|
10087
|
+
var L = this.items[this.index];
|
|
10088
|
+
L && (Ie(L, ma), L.removeAttribute("aria-selected")), ve(w, ma), w.setAttribute("aria-selected", !0), c.focus && w.focus(), this.image = _, this.viewed = !1, this.index = s, this.imageData = {}, ve(_, _i), c.loading && ve(p, Hn), p.innerHTML = "", p.appendChild(_), this.renderList(), g.innerHTML = "";
|
|
10089
10089
|
var H = function() {
|
|
10090
10090
|
var A = i.imageData, D = Array.isArray(c.title) ? c.title[1] : c.title;
|
|
10091
|
-
g.innerHTML = Hd(We(D) ? D.call(i,
|
|
10091
|
+
g.innerHTML = Hd(We(D) ? D.call(i, _, A) : "".concat(k, " (").concat(A.naturalWidth, " × ").concat(A.naturalHeight, ")"));
|
|
10092
10092
|
}, F, U;
|
|
10093
10093
|
return ye(l, Oi, H, {
|
|
10094
10094
|
once: !0
|
|
10095
10095
|
}), this.viewing = {
|
|
10096
10096
|
abort: function() {
|
|
10097
|
-
He(l, Oi, H),
|
|
10097
|
+
He(l, Oi, H), _.complete ? i.imageRendering ? i.imageRendering.abort() : i.imageInitializing && i.imageInitializing.abort() : (_.src = "", He(_, qt, F), i.timeout && clearTimeout(i.timeout));
|
|
10098
10098
|
}
|
|
10099
|
-
},
|
|
10100
|
-
He(
|
|
10099
|
+
}, _.complete ? this.load() : (ye(_, qt, F = function() {
|
|
10100
|
+
He(_, Jr, U), i.load();
|
|
10101
10101
|
}, {
|
|
10102
10102
|
once: !0
|
|
10103
|
-
}), ye(
|
|
10104
|
-
He(
|
|
10103
|
+
}), ye(_, Jr, U = function() {
|
|
10104
|
+
He(_, qt, F), i.timeout && (clearTimeout(i.timeout), i.timeout = !1), Ie(_, _i), c.loading && Ie(i.canvas, Hn);
|
|
10105
10105
|
}, {
|
|
10106
10106
|
once: !0
|
|
10107
10107
|
}), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(function() {
|
|
10108
|
-
Ie(
|
|
10108
|
+
Ie(_, _i), i.timeout = !1;
|
|
10109
10109
|
}, 1e3)), this;
|
|
10110
10110
|
},
|
|
10111
10111
|
/**
|
|
@@ -10288,7 +10288,7 @@ var qd = {
|
|
|
10288
10288
|
* @returns {Viewer} this
|
|
10289
10289
|
*/
|
|
10290
10290
|
zoomTo: function(i) {
|
|
10291
|
-
var s = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, p = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, w = this.element, b = this.options, y = this.pointers, k = this.imageData,
|
|
10291
|
+
var s = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, p = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, w = this.element, b = this.options, y = this.pointers, k = this.imageData, _ = k.x, L = k.y, H = k.width, F = k.height, U = k.naturalWidth, M = k.naturalHeight;
|
|
10292
10292
|
if (i = Math.max(0, i), Ve(i) && this.viewed && !this.played && (p || b.zoomable)) {
|
|
10293
10293
|
if (!p) {
|
|
10294
10294
|
var A = Math.max(0.01, b.minZoomRatio), D = Math.min(100, b.maxZoomRatio);
|
|
@@ -10319,8 +10319,8 @@ var qd = {
|
|
|
10319
10319
|
pageX: g.pageX,
|
|
10320
10320
|
pageY: g.pageY
|
|
10321
10321
|
};
|
|
10322
|
-
k.x -= J * ((Ne.pageX - fe.left -
|
|
10323
|
-
} else Pn(c) && Ve(c.x) && Ve(c.y) ? (k.x -= J * ((c.x -
|
|
10322
|
+
k.x -= J * ((Ne.pageX - fe.left - _) / H), k.y -= ne * ((Ne.pageY - fe.top - L) / F);
|
|
10323
|
+
} else Pn(c) && Ve(c.x) && Ve(c.y) ? (k.x -= J * ((c.x - _) / H), k.y -= ne * ((c.y - L) / F)) : (k.x -= J / 2, k.y -= ne / 2);
|
|
10324
10324
|
k.left = k.x, k.top = k.y, k.width = P, k.height = G, k.oldRatio = te, k.ratio = i, this.renderImage(function() {
|
|
10325
10325
|
s.zooming = !1, We(b.zoomed) && ye(w, Ru, b.zoomed, {
|
|
10326
10326
|
once: !0
|
|
@@ -10350,21 +10350,21 @@ var qd = {
|
|
|
10350
10350
|
}), nt(l, zu) === !1)
|
|
10351
10351
|
return this;
|
|
10352
10352
|
var g = this.player, p = this.loadImage.bind(this), w = [], b = 0, y = 0;
|
|
10353
|
-
if (this.played = !0, this.onLoadWhenPlay = p, s && this.requestFullscreen(s), ve(g, Mn), $e(this.items, function(
|
|
10354
|
-
var F =
|
|
10355
|
-
U.src = Fn(F, "originalUrl"), U.alt = F.getAttribute("alt"), U.referrerPolicy = F.referrerPolicy, b += 1, ve(U, ka), Ii(U, Qe, c.transition), Rn(
|
|
10353
|
+
if (this.played = !0, this.onLoadWhenPlay = p, s && this.requestFullscreen(s), ve(g, Mn), $e(this.items, function(L, H) {
|
|
10354
|
+
var F = L.querySelector("img"), U = document.createElement("img");
|
|
10355
|
+
U.src = Fn(F, "originalUrl"), U.alt = F.getAttribute("alt"), U.referrerPolicy = F.referrerPolicy, b += 1, ve(U, ka), Ii(U, Qe, c.transition), Rn(L, ma) && (ve(U, Kt), y = H), w.push(U), ye(U, qt, p, {
|
|
10356
10356
|
once: !0
|
|
10357
10357
|
}), g.appendChild(U);
|
|
10358
10358
|
}), Ve(c.interval) && c.interval > 0) {
|
|
10359
10359
|
var k = function() {
|
|
10360
10360
|
clearTimeout(i.playing.timeout), Ie(w[y], Kt), y -= 1, y = y >= 0 ? y : b - 1, ve(w[y], Kt), i.playing.timeout = setTimeout(k, c.interval);
|
|
10361
|
-
},
|
|
10362
|
-
clearTimeout(i.playing.timeout), Ie(w[y], Kt), y += 1, y = y < b ? y : 0, ve(w[y], Kt), i.playing.timeout = setTimeout(
|
|
10361
|
+
}, _ = function() {
|
|
10362
|
+
clearTimeout(i.playing.timeout), Ie(w[y], Kt), y += 1, y = y < b ? y : 0, ve(w[y], Kt), i.playing.timeout = setTimeout(_, c.interval);
|
|
10363
10363
|
};
|
|
10364
10364
|
b > 1 && (this.playing = {
|
|
10365
10365
|
prev: k,
|
|
10366
|
-
next:
|
|
10367
|
-
timeout: setTimeout(
|
|
10366
|
+
next: _,
|
|
10367
|
+
timeout: setTimeout(_, c.interval)
|
|
10368
10368
|
});
|
|
10369
10369
|
}
|
|
10370
10370
|
return this;
|
|
@@ -10447,8 +10447,8 @@ var qd = {
|
|
|
10447
10447
|
if (this.images = g, this.length = g.length, this.ready) {
|
|
10448
10448
|
var p = [];
|
|
10449
10449
|
if ($e(this.items, function(y, k) {
|
|
10450
|
-
var
|
|
10451
|
-
|
|
10450
|
+
var _ = y.querySelector("img"), L = g[k];
|
|
10451
|
+
L && _ ? (L.src !== _.src || L.alt !== _.alt) && p.push(k) : p.push(k);
|
|
10452
10452
|
}), ar(this.list, {
|
|
10453
10453
|
width: "auto"
|
|
10454
10454
|
}), this.initList(), this.isShown)
|
|
@@ -10598,12 +10598,12 @@ var qd = {
|
|
|
10598
10598
|
if (y.complete)
|
|
10599
10599
|
b();
|
|
10600
10600
|
else {
|
|
10601
|
-
var k,
|
|
10601
|
+
var k, _;
|
|
10602
10602
|
ye(y, qt, k = function() {
|
|
10603
|
-
He(y, Jr,
|
|
10603
|
+
He(y, Jr, _), b();
|
|
10604
10604
|
}, {
|
|
10605
10605
|
once: !0
|
|
10606
|
-
}), ye(y, Jr,
|
|
10606
|
+
}), ye(y, Jr, _ = function() {
|
|
10607
10607
|
He(y, qt, k), b();
|
|
10608
10608
|
}, {
|
|
10609
10609
|
once: !0
|
|
@@ -10623,18 +10623,18 @@ var qd = {
|
|
|
10623
10623
|
if (!this.ready) {
|
|
10624
10624
|
var s = this.element, l = this.options, c = s.parentNode, g = document.createElement("div");
|
|
10625
10625
|
g.innerHTML = _d;
|
|
10626
|
-
var p = g.querySelector(".".concat(ke, "-container")), w = p.querySelector(".".concat(ke, "-title")), b = p.querySelector(".".concat(ke, "-toolbar")), y = p.querySelector(".".concat(ke, "-navbar")), k = p.querySelector(".".concat(ke, "-button")),
|
|
10627
|
-
if (this.parent = c, this.viewer = p, this.title = w, this.toolbar = b, this.navbar = y, this.button = k, this.canvas =
|
|
10626
|
+
var p = g.querySelector(".".concat(ke, "-container")), w = p.querySelector(".".concat(ke, "-title")), b = p.querySelector(".".concat(ke, "-toolbar")), y = p.querySelector(".".concat(ke, "-navbar")), k = p.querySelector(".".concat(ke, "-button")), _ = p.querySelector(".".concat(ke, "-canvas"));
|
|
10627
|
+
if (this.parent = c, this.viewer = p, this.title = w, this.toolbar = b, this.navbar = y, this.button = k, this.canvas = _, this.footer = p.querySelector(".".concat(ke, "-footer")), this.tooltipBox = p.querySelector(".".concat(ke, "-tooltip")), this.player = p.querySelector(".".concat(ke, "-player")), this.list = p.querySelector(".".concat(ke, "-list")), p.id = "".concat(ke).concat(this.id), w.id = "".concat(ke, "Title").concat(this.id), ve(w, l.title ? ba(Array.isArray(l.title) ? l.title[0] : l.title) : Qr), ve(y, l.navbar ? ba(l.navbar) : Qr), Ii(k, Qr, !l.button), l.keyboard && k.setAttribute("tabindex", 0), l.backdrop && (ve(p, "".concat(ke, "-backdrop")), !l.inline && l.backdrop !== "static" && Fs(_, _a, "hide")), Ai(l.className) && l.className && l.className.split(Xs).forEach(function(P) {
|
|
10628
10628
|
ve(p, P);
|
|
10629
10629
|
}), l.toolbar) {
|
|
10630
|
-
var
|
|
10630
|
+
var L = document.createElement("ul"), H = Pn(l.toolbar), F = ya.slice(0, 3), U = ya.slice(7, 9), M = ya.slice(9);
|
|
10631
10631
|
H || ve(b, ba(l.toolbar)), $e(H ? l.toolbar : ya, function(P, G) {
|
|
10632
10632
|
var J = H && Pn(P), ne = H ? Ys(G) : P, te = J && !zn(P.show) ? P.show : P;
|
|
10633
10633
|
if (!(!te || !l.zoomable && F.indexOf(ne) !== -1 || !l.rotatable && U.indexOf(ne) !== -1 || !l.scalable && M.indexOf(ne) !== -1)) {
|
|
10634
10634
|
var fe = J && !zn(P.size) ? P.size : P, Ne = J && !zn(P.click) ? P.click : P, _e = document.createElement("li");
|
|
10635
|
-
l.keyboard && _e.setAttribute("tabindex", 0), _e.setAttribute("role", "button"), ve(_e, "".concat(ke, "-").concat(ne)), We(Ne) || Fs(_e, _a, ne), Ve(te) && ve(_e, ba(te)), ["small", "large"].indexOf(fe) !== -1 ? ve(_e, "".concat(ke, "-").concat(fe)) : ne === "play" && ve(_e, "".concat(ke, "-large")), We(Ne) && ye(_e, $n, Ne),
|
|
10635
|
+
l.keyboard && _e.setAttribute("tabindex", 0), _e.setAttribute("role", "button"), ve(_e, "".concat(ke, "-").concat(ne)), We(Ne) || Fs(_e, _a, ne), Ve(te) && ve(_e, ba(te)), ["small", "large"].indexOf(fe) !== -1 ? ve(_e, "".concat(ke, "-").concat(fe)) : ne === "play" && ve(_e, "".concat(ke, "-large")), We(Ne) && ye(_e, $n, Ne), L.appendChild(_e);
|
|
10636
10636
|
}
|
|
10637
|
-
}), b.appendChild(
|
|
10637
|
+
}), b.appendChild(L);
|
|
10638
10638
|
} else
|
|
10639
10639
|
ve(b, Qr);
|
|
10640
10640
|
if (!l.rotatable) {
|
|
@@ -11120,7 +11120,7 @@ const tv = ({ images: u = [], options: i = {} } = {}) => {
|
|
|
11120
11120
|
function y(I, N) {
|
|
11121
11121
|
return typeof I == "function" ? I(N) : I.propertyIsEnumerable(N);
|
|
11122
11122
|
}
|
|
11123
|
-
var k = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",
|
|
11123
|
+
var k = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran", _ = "alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq", L = "bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available", H = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT", F = b("int long char short double float unsigned signed void bool"), U = b("SEL instancetype id Class Protocol BOOL");
|
|
11124
11124
|
function M(I) {
|
|
11125
11125
|
return y(F, I) || /.+_t$/.test(I);
|
|
11126
11126
|
}
|
|
@@ -11202,7 +11202,7 @@ const tv = ({ images: u = [], options: i = {} } = {}) => {
|
|
|
11202
11202
|
modeProps: { fold: ["brace", "include"] }
|
|
11203
11203
|
}), Me(["text/x-c++src", "text/x-c++hdr"], {
|
|
11204
11204
|
name: "clike",
|
|
11205
|
-
keywords: b(k + " " +
|
|
11205
|
+
keywords: b(k + " " + _),
|
|
11206
11206
|
types: M,
|
|
11207
11207
|
blockKeywords: b(D + " class try catch"),
|
|
11208
11208
|
defKeywords: b(P + " class namespace"),
|
|
@@ -11404,7 +11404,7 @@ const tv = ({ images: u = [], options: i = {} } = {}) => {
|
|
|
11404
11404
|
modeProps: { fold: ["brace", "include"] }
|
|
11405
11405
|
}), Me("text/x-objectivec", {
|
|
11406
11406
|
name: "clike",
|
|
11407
|
-
keywords: b(k + " " +
|
|
11407
|
+
keywords: b(k + " " + L),
|
|
11408
11408
|
types: A,
|
|
11409
11409
|
builtin: b(H),
|
|
11410
11410
|
blockKeywords: b(D + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
|
|
@@ -11420,7 +11420,7 @@ const tv = ({ images: u = [], options: i = {} } = {}) => {
|
|
|
11420
11420
|
modeProps: { fold: ["brace", "include"] }
|
|
11421
11421
|
}), Me("text/x-objectivec++", {
|
|
11422
11422
|
name: "clike",
|
|
11423
|
-
keywords: b(k + " " +
|
|
11423
|
+
keywords: b(k + " " + L + " " + _),
|
|
11424
11424
|
types: A,
|
|
11425
11425
|
builtin: b(H),
|
|
11426
11426
|
blockKeywords: b(D + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
|
|
@@ -11710,10 +11710,13 @@ const rv = {
|
|
|
11710
11710
|
});
|
|
11711
11711
|
},
|
|
11712
11712
|
selectedSpan() {
|
|
11713
|
-
|
|
11713
|
+
var c;
|
|
11714
|
+
if (!this.selectedSpan) return;
|
|
11715
|
+
const u = this.selectedSpan.type === "CLIENT" || this.selectedSpan.type === "CHAT_MODEL", i = (c = this.selectedSpan.parsedContent) == null ? void 0 : c.events, s = i && Array.isArray(i) && i.length > 0, l = [];
|
|
11716
|
+
u && l.push("io", "raw"), l.push("attributes"), s && l.push("events"), l.includes(this.activeTab) || (this.activeTab = "attributes"), this.activeTab === "raw" && this.$nextTick(() => {
|
|
11714
11717
|
this.rawInputsKey++, this.rawOutputsKey++;
|
|
11715
11718
|
}), this.activeTab === "events" && this.$nextTick(() => {
|
|
11716
|
-
this.eventsKey++, this.spanEvents.length > 0 && (this.eventsCollapse = this.spanEvents.map((
|
|
11719
|
+
this.eventsKey++, this.spanEvents.length > 0 && (this.eventsCollapse = this.spanEvents.map((g, p) => `event-${p}`));
|
|
11717
11720
|
});
|
|
11718
11721
|
}
|
|
11719
11722
|
},
|
|
@@ -11765,8 +11768,8 @@ const rv = {
|
|
|
11765
11768
|
w.inputs = JSON.parse(b);
|
|
11766
11769
|
} catch {
|
|
11767
11770
|
try {
|
|
11768
|
-
const
|
|
11769
|
-
w.inputs = JSON.parse(
|
|
11771
|
+
const _ = b.replace(/\\"/g, '"').replace(/^"|"$/g, "");
|
|
11772
|
+
w.inputs = JSON.parse(_);
|
|
11770
11773
|
} catch {
|
|
11771
11774
|
w.inputs = b;
|
|
11772
11775
|
}
|
|
@@ -11776,8 +11779,8 @@ const rv = {
|
|
|
11776
11779
|
w.outputs = JSON.parse(y);
|
|
11777
11780
|
} catch {
|
|
11778
11781
|
try {
|
|
11779
|
-
const
|
|
11780
|
-
w.outputs = JSON.parse(
|
|
11782
|
+
const _ = y.replace(/\\"/g, '"').replace(/^"|"$/g, "");
|
|
11783
|
+
w.outputs = JSON.parse(_);
|
|
11781
11784
|
} catch {
|
|
11782
11785
|
w.outputs = y;
|
|
11783
11786
|
}
|
|
@@ -11791,9 +11794,11 @@ const rv = {
|
|
|
11791
11794
|
parsedContent: w
|
|
11792
11795
|
};
|
|
11793
11796
|
}), this.filteredSpans = this.spans, this.spans.length > 0) {
|
|
11794
|
-
this.selectedSpanId = this.spans[0].span_id, this.selectedSpan = this.spans[0]
|
|
11795
|
-
const p = (
|
|
11796
|
-
p &&
|
|
11797
|
+
this.selectedSpanId = this.spans[0].span_id, this.selectedSpan = this.spans[0];
|
|
11798
|
+
const p = this.spans[0].type === "CLIENT" || this.spans[0].type === "CHAT_MODEL", w = (i = this.selectedSpan.parsedContent) == null ? void 0 : i.events, b = w && Array.isArray(w) && w.length > 0, y = [];
|
|
11799
|
+
p && y.push("io", "raw"), y.push("attributes"), b && y.push("events");
|
|
11800
|
+
let k = "attributes";
|
|
11801
|
+
p && (k = "io"), y.includes(k) ? this.activeTab = k : this.activeTab = "attributes", (l = (s = this.selectedSpan.parsedContent) == null ? void 0 : s.inputs) != null && l.messages ? this.messageCollapse = this.selectedSpan.parsedContent.inputs.messages.map((_, L) => `message-${L}`) : this.messageCollapse = [], b ? this.eventsCollapse = w.map((_, L) => `event-${L}`) : this.eventsCollapse = [];
|
|
11797
11802
|
}
|
|
11798
11803
|
} catch (c) {
|
|
11799
11804
|
console.error("Failed to load trace detail:", c), this.$message.error("加载 trace 详情失败"), this.traceInfo = {}, this.spans = [], this.filteredSpans = [];
|
|
@@ -11808,10 +11813,14 @@ const rv = {
|
|
|
11808
11813
|
this.filteredSpans = this.spans.filter((i) => i.name.toLowerCase().includes(u) || i.type.toLowerCase().includes(u));
|
|
11809
11814
|
},
|
|
11810
11815
|
handleSpanSelect(u) {
|
|
11811
|
-
var
|
|
11812
|
-
this.selectedSpanId = u.span_id, this.selectedSpan = u
|
|
11813
|
-
const i = (
|
|
11814
|
-
i &&
|
|
11816
|
+
var p, w, b;
|
|
11817
|
+
this.selectedSpanId = u.span_id, this.selectedSpan = u;
|
|
11818
|
+
const i = u.type === "CLIENT" || u.type === "CHAT_MODEL", s = (p = u.parsedContent) == null ? void 0 : p.events, l = s && Array.isArray(s) && s.length > 0, c = [];
|
|
11819
|
+
i && c.push("io", "raw"), c.push("attributes"), l && c.push("events");
|
|
11820
|
+
let g = "attributes";
|
|
11821
|
+
i && (g = "io"), this.$nextTick(() => {
|
|
11822
|
+
c.includes(g) ? this.activeTab = g : this.activeTab = "attributes";
|
|
11823
|
+
}), (b = (w = this.selectedSpan.parsedContent) == null ? void 0 : w.inputs) != null && b.messages ? this.messageCollapse = this.selectedSpan.parsedContent.inputs.messages.map((y, k) => `message-${k}`) : this.messageCollapse = [], l ? this.eventsCollapse = s.map((y, k) => `event-${k}`) : this.eventsCollapse = [];
|
|
11815
11824
|
},
|
|
11816
11825
|
handleDrawerClose(u) {
|
|
11817
11826
|
this.currentTraceId = null, this.traceInfo = {}, this.spans = [], this.filteredSpans = [], this.selectedSpanId = null, this.selectedSpan = null, this.spanSearchQuery = "", this.eventsCollapse = [], u();
|
|
@@ -12153,16 +12162,16 @@ var nv = function() {
|
|
|
12153
12162
|
i.drawerVisible = y;
|
|
12154
12163
|
} } }, [i.currentTraceId ? s("div", { staticClass: "trace-detail-content" }, [s("div", { staticClass: "trace-info-section" }, [s("el-descriptions", { attrs: { column: 3, border: "" } }, [s("el-descriptions-item", { attrs: { label: i.$t("trace.traceId") } }, [i._v(i._s(i.traceInfo.trace_id))]), s("el-descriptions-item", { attrs: { label: i.$t("trace.status") } }, [s("el-tag", { attrs: { type: i.getStatusType(i.traceInfo.status), size: "mini" } }, [i._v(" " + i._s(i.traceInfo.status) + " ")])], 1), s("el-descriptions-item", { attrs: { label: i.$t("trace.executionTime") } }, [i._v(" " + i._s(i.formatNanoDuration(i.traceInfo.execution_time_ms)) + " ")]), s("el-descriptions-item", { attrs: { label: i.$t("trace.timeCreated") } }, [i._v(" " + i._s(i.formatTimestamp(i.traceInfo.timestamp_ms)) + " ")]), s("el-descriptions-item", { attrs: { label: i.$t("trace.experimentId") } }, [i._v(i._s(i.traceInfo.experiment_id))]), s("el-descriptions-item", { attrs: { label: i.$t("trace.traceType") } }, [s("el-tag", { attrs: { size: "mini", type: "info" } }, [i._v(i._s(i.traceInfo.trace_type || "-"))])], 1), s("el-descriptions-item", { attrs: { label: i.$t("trace.traceName"), span: 2 } }, [i._v(" " + i._s(i.traceInfo.trace_name || "-") + " ")])], 1)], 1), s("el-divider"), s("el-row", { attrs: { gutter: 20 } }, [s("el-col", { staticClass: "span-tree-col", attrs: { span: 8 } }, [s("el-card", [s("div", { attrs: { slot: "header" }, slot: "header" }, [s("el-input", { attrs: { placeholder: i.$t("span.searchTree"), "prefix-icon": "el-icon-search", size: "small", clearable: "" }, on: { input: i.handleSpanSearch }, model: { value: i.spanSearchQuery, callback: function(y) {
|
|
12155
12164
|
i.spanSearchQuery = y;
|
|
12156
|
-
}, expression: "spanSearchQuery" } })], 1), s("TraceSpanTree", { attrs: { spans: i.filteredSpans, "selected-span-id": i.selectedSpanId, "trace-start-time": i.traceStartTime, "trace-end-time": i.traceEndTime }, on: { "span-select": i.handleSpanSelect } })], 1)], 1), s("el-col", { staticClass: "span-detail-col", attrs: { span: 16 } }, [s("el-card", [i.selectedSpan ? s("div", { staticClass: "span-detail-content" }, [s("el-tabs", { model: { value: i.activeTab, callback: function(y) {
|
|
12165
|
+
}, expression: "spanSearchQuery" } })], 1), s("TraceSpanTree", { attrs: { spans: i.filteredSpans, "selected-span-id": i.selectedSpanId, "trace-start-time": i.traceStartTime, "trace-end-time": i.traceEndTime }, on: { "span-select": i.handleSpanSelect } })], 1)], 1), s("el-col", { staticClass: "span-detail-col", attrs: { span: 16 } }, [s("el-card", [i.selectedSpan ? s("div", { staticClass: "span-detail-content" }, [s("el-tabs", { key: `tabs-${i.selectedSpanId}`, model: { value: i.activeTab, callback: function(y) {
|
|
12157
12166
|
i.activeTab = y;
|
|
12158
12167
|
}, expression: "activeTab" } }, [i.selectedSpan.type === "CLIENT" || i.selectedSpan.type === "CHAT_MODEL" ? s("el-tab-pane", { attrs: { label: `${i.$t("trace.inputs")} / ${i.$t("trace.outputs")}`, name: "io" } }, [s("div", { staticClass: "io-content" }, [i.hasInputs ? s("div", { staticClass: "io-section" }, [s("el-collapse", { model: { value: i.activeCollapse, callback: function(y) {
|
|
12159
12168
|
i.activeCollapse = y;
|
|
12160
12169
|
}, expression: "activeCollapse" } }, [s("el-collapse-item", { attrs: { title: i.$t("trace.inputs"), name: "inputs" } }, [(c = (l = i.selectedSpan.parsedContent) == null ? void 0 : l.inputs) != null && c.messages ? s("div", { staticClass: "messages-section" }, i._l(i.selectedSpan.parsedContent.inputs.messages, function(y, k) {
|
|
12161
|
-
return s("div", { key: k, staticClass: "message-item" }, [s("el-collapse", { model: { value: i.messageCollapse, callback: function(
|
|
12162
|
-
i.messageCollapse =
|
|
12163
|
-
}, expression: "messageCollapse" } }, [s("el-collapse-item", { attrs: { name: `message-${k}` } }, [s("template", { slot: "title" }, [s("i", { staticClass: "message-icon", class: i.getMessageIcon(y.role) }), s("span", { staticClass: "message-role" }, [i._v(i._s(y.role))])]), s("div", { staticClass: "message-content" }, [s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(y.content), function(
|
|
12164
|
-
return s("div", { key:
|
|
12165
|
-
return i.handleImageClick(
|
|
12170
|
+
return s("div", { key: k, staticClass: "message-item" }, [s("el-collapse", { model: { value: i.messageCollapse, callback: function(_) {
|
|
12171
|
+
i.messageCollapse = _;
|
|
12172
|
+
}, expression: "messageCollapse" } }, [s("el-collapse-item", { attrs: { name: `message-${k}` } }, [s("template", { slot: "title" }, [s("i", { staticClass: "message-icon", class: i.getMessageIcon(y.role) }), s("span", { staticClass: "message-role" }, [i._v(i._s(y.role))])]), s("div", { staticClass: "message-content" }, [s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(y.content), function(_) {
|
|
12173
|
+
return s("div", { key: _.key, staticClass: "content-element" }, [_.type === "markdown" ? s("div", { staticClass: "markdown-content", domProps: { innerHTML: i._s(_.content) } }) : _.type === "image" ? s("div", { staticClass: "image-content" }, [_.label ? s("div", { staticClass: "image-label" }, [i._v(i._s(_.label))]) : i._e(), s("img", { staticClass: "content-image", attrs: { src: _.url, alt: "content image" }, on: { click: function(L) {
|
|
12174
|
+
return i.handleImageClick(_.url);
|
|
12166
12175
|
} } })]) : i._e()]);
|
|
12167
12176
|
}), 0)])], 2)], 1)], 1);
|
|
12168
12177
|
}), 0) : (g = i.selectedSpan.parsedContent) != null && g.inputs ? s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(i.selectedSpan.parsedContent.inputs), function(y) {
|
|
@@ -12172,13 +12181,13 @@ var nv = function() {
|
|
|
12172
12181
|
}), 0) : s("div", { staticClass: "empty-content" }, [s("el-empty", { attrs: { description: i.$t("trace.noInputs"), "image-size": 80 } })], 1)])], 1)], 1) : i._e(), i.hasOutputs ? s("div", { staticClass: "io-section" }, [s("el-collapse", { model: { value: i.activeCollapse, callback: function(y) {
|
|
12173
12182
|
i.activeCollapse = y;
|
|
12174
12183
|
}, expression: "activeCollapse" } }, [s("el-collapse-item", { attrs: { title: i.$t("trace.outputs"), name: "outputs" } }, [(w = (p = i.selectedSpan.parsedContent) == null ? void 0 : p.outputs) != null && w.choices ? s("div", { staticClass: "outputs-section" }, i._l(i.selectedSpan.parsedContent.outputs.choices, function(y, k) {
|
|
12175
|
-
return s("div", { key: k, staticClass: "choice-item" }, [s("div", { staticClass: "choice-header" }, [s("span", [i._v("Choice " + i._s(k))])]), s("div", { staticClass: "choice-content" }, [y.message ? s("div", [s("div", { staticClass: "message-header" }, [s("i", { staticClass: "el-icon-user message-icon" }), s("span", [i._v(i._s(y.message.role))])]), s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(y.message.content), function(
|
|
12176
|
-
return s("div", { key:
|
|
12177
|
-
return i.handleImageClick(
|
|
12184
|
+
return s("div", { key: k, staticClass: "choice-item" }, [s("div", { staticClass: "choice-header" }, [s("span", [i._v("Choice " + i._s(k))])]), s("div", { staticClass: "choice-content" }, [y.message ? s("div", [s("div", { staticClass: "message-header" }, [s("i", { staticClass: "el-icon-user message-icon" }), s("span", [i._v(i._s(y.message.role))])]), s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(y.message.content), function(_) {
|
|
12185
|
+
return s("div", { key: _.key, staticClass: "content-element" }, [_.type === "markdown" ? s("div", { staticClass: "markdown-content", domProps: { innerHTML: i._s(_.content) } }) : _.type === "image" ? s("div", { staticClass: "image-content" }, [_.label ? s("div", { staticClass: "image-label" }, [i._v(i._s(_.label))]) : i._e(), s("img", { staticClass: "content-image", attrs: { src: _.url, alt: "content image" }, on: { click: function(L) {
|
|
12186
|
+
return i.handleImageClick(_.url);
|
|
12178
12187
|
} } })]) : i._e()]);
|
|
12179
|
-
}), 0)]) : s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(y), function(
|
|
12180
|
-
return s("div", { key:
|
|
12181
|
-
return i.handleImageClick(
|
|
12188
|
+
}), 0)]) : s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(y), function(_) {
|
|
12189
|
+
return s("div", { key: _.key, staticClass: "content-element" }, [_.type === "markdown" ? s("div", { staticClass: "markdown-content", domProps: { innerHTML: i._s(_.content) } }) : _.type === "image" ? s("div", { staticClass: "image-content" }, [_.label ? s("div", { staticClass: "image-label" }, [i._v(i._s(_.label))]) : i._e(), s("img", { staticClass: "content-image", attrs: { src: _.url, alt: "content image" }, on: { click: function(L) {
|
|
12190
|
+
return i.handleImageClick(_.url);
|
|
12182
12191
|
} } })]) : i._e()]);
|
|
12183
12192
|
}), 0)])]);
|
|
12184
12193
|
}), 0) : (b = i.selectedSpan.parsedContent) != null && b.outputs ? s("div", { staticClass: "structured-content" }, i._l(i.renderStructuredContent(i.selectedSpan.parsedContent.outputs), function(y) {
|
|
@@ -12196,10 +12205,10 @@ var nv = function() {
|
|
|
12196
12205
|
}, expression: "rawIoCollapse" } }, [s("el-collapse-item", { attrs: { title: i.$t("trace.rawOutputs"), name: "rawOutputs" } }, [s("codemirror", { key: `raw-outputs-${i.selectedSpanId}-${i.rawOutputsKey}`, staticClass: "code-editor-wrapper", attrs: { value: i.formatRawJson(i.rawOutputs), options: i.cmOptions } })], 1)], 1)], 1) : i._e(), !i.rawInputs && !i.rawOutputs ? s("div", { staticClass: "empty-raw-io" }, [s("el-empty", { attrs: { description: i.$t("trace.noIoData") } })], 1) : i._e()]) : i._e()]) : i._e(), i.hasEvents ? s("el-tab-pane", { attrs: { label: i.$t("trace.events"), name: "events" } }, [i.activeTab === "events" ? s("div", { staticClass: "events-content" }, [s("el-collapse", { model: { value: i.eventsCollapse, callback: function(y) {
|
|
12197
12206
|
i.eventsCollapse = y;
|
|
12198
12207
|
}, expression: "eventsCollapse" } }, i._l(i.spanEvents, function(y, k) {
|
|
12199
|
-
return s("el-collapse-item", { key: `event-${k}`, attrs: { name: `event-${k}` } }, [s("template", { slot: "title" }, [s("div", { staticClass: "event-header" }, [s("el-tag", { staticClass: "event-name-tag", attrs: { type: y.name === "exception" ? "danger" : "info", size: "mini" } }, [i._v(" " + i._s(y.name) + " ")]), s("span", { staticClass: "event-time" }, [i._v(i._s(i.formatEventTimestamp(y.timestamp)))])], 1)]), s("div", { staticClass: "event-detail" }, [y.name === "exception" ? s("div", { staticClass: "exception-content" }, [y.attributes["exception.type"] ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.exceptionType")))]), s("div", { staticClass: "field-value exception-type" }, [i._v(i._s(y.attributes["exception.type"]))])]) : i._e(), y.attributes["exception.message"] ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.exceptionMessage")))]), s("div", { staticClass: "field-value exception-message" }, [i._v(i._s(y.attributes["exception.message"]))])]) : i._e(), y.attributes["exception.stacktrace"] ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.exceptionStacktrace")))]), s("codemirror", { key: `stacktrace-${i.selectedSpanId}-${k}-${i.eventsKey}`, staticClass: "code-editor-wrapper stacktrace-editor", attrs: { value: y.attributes["exception.stacktrace"], options: i.cmOptionsJava } })], 1) : i._e(), i.getOtherEventAttributes(y).length > 0 ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.otherAttributes")))]), s("el-table", { attrs: { data: i.getOtherEventAttributes(y), border: "", stripe: "", size: "mini" } }, [s("el-table-column", { attrs: { prop: "key", label: i.$t("trace.key"), width: "200" } }), s("el-table-column", { attrs: { prop: "value", label: i.$t("trace.value") } })], 1)], 1) : i._e()]) : s("div", { staticClass: "general-event-content" }, [s("el-table", { attrs: { data: i.getEventAttributesData(y), border: "", stripe: "", size: "mini" } }, [s("el-table-column", { attrs: { prop: "key", label: i.$t("trace.key"), width: "200" }, scopedSlots: i._u([{ key: "default", fn: function(
|
|
12200
|
-
return [s("el-tooltip", { attrs: { content:
|
|
12201
|
-
} }], null, !0) }), s("el-table-column", { attrs: { prop: "value", label: i.$t("trace.value") }, scopedSlots: i._u([{ key: "default", fn: function(
|
|
12202
|
-
return [s("el-tooltip", { attrs: { placement: "top", "open-delay": 500, "popper-class": "attribute-tooltip" } }, [s("div", { staticClass: "attribute-tooltip-content", attrs: { slot: "content" }, slot: "content" }, [i._v(i._s(
|
|
12208
|
+
return s("el-collapse-item", { key: `event-${k}`, attrs: { name: `event-${k}` } }, [s("template", { slot: "title" }, [s("div", { staticClass: "event-header" }, [s("el-tag", { staticClass: "event-name-tag", attrs: { type: y.name === "exception" ? "danger" : "info", size: "mini" } }, [i._v(" " + i._s(y.name) + " ")]), s("span", { staticClass: "event-time" }, [i._v(i._s(i.formatEventTimestamp(y.timestamp)))])], 1)]), s("div", { staticClass: "event-detail" }, [y.name === "exception" ? s("div", { staticClass: "exception-content" }, [y.attributes["exception.type"] ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.exceptionType")))]), s("div", { staticClass: "field-value exception-type" }, [i._v(i._s(y.attributes["exception.type"]))])]) : i._e(), y.attributes["exception.message"] ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.exceptionMessage")))]), s("div", { staticClass: "field-value exception-message" }, [i._v(i._s(y.attributes["exception.message"]))])]) : i._e(), y.attributes["exception.stacktrace"] ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.exceptionStacktrace")))]), s("codemirror", { key: `stacktrace-${i.selectedSpanId}-${k}-${i.eventsKey}`, staticClass: "code-editor-wrapper stacktrace-editor", attrs: { value: y.attributes["exception.stacktrace"], options: i.cmOptionsJava } })], 1) : i._e(), i.getOtherEventAttributes(y).length > 0 ? s("div", { staticClass: "exception-field" }, [s("div", { staticClass: "field-label" }, [i._v(i._s(i.$t("trace.otherAttributes")))]), s("el-table", { attrs: { data: i.getOtherEventAttributes(y), border: "", stripe: "", size: "mini" } }, [s("el-table-column", { attrs: { prop: "key", label: i.$t("trace.key"), width: "200" } }), s("el-table-column", { attrs: { prop: "value", label: i.$t("trace.value") } })], 1)], 1) : i._e()]) : s("div", { staticClass: "general-event-content" }, [s("el-table", { attrs: { data: i.getEventAttributesData(y), border: "", stripe: "", size: "mini" } }, [s("el-table-column", { attrs: { prop: "key", label: i.$t("trace.key"), width: "200" }, scopedSlots: i._u([{ key: "default", fn: function(_) {
|
|
12209
|
+
return [s("el-tooltip", { attrs: { content: _.row.key, placement: "top", "open-delay": 500 } }, [s("span", { staticClass: "attribute-key" }, [i._v(i._s(_.row.key))])])];
|
|
12210
|
+
} }], null, !0) }), s("el-table-column", { attrs: { prop: "value", label: i.$t("trace.value") }, scopedSlots: i._u([{ key: "default", fn: function(_) {
|
|
12211
|
+
return [s("el-tooltip", { attrs: { placement: "top", "open-delay": 500, "popper-class": "attribute-tooltip" } }, [s("div", { staticClass: "attribute-tooltip-content", attrs: { slot: "content" }, slot: "content" }, [i._v(i._s(_.row.value))]), s("div", { staticClass: "attribute-value" }, [i._v(i._s(_.row.value))])])];
|
|
12203
12212
|
} }], null, !0) })], 1)], 1)])], 2);
|
|
12204
12213
|
}), 1), i.spanEvents.length === 0 ? s("div", { staticClass: "empty-events" }, [s("el-empty", { attrs: { description: i.$t("trace.noEvents") } })], 1) : i._e()], 1) : i._e()]) : i._e()], 1)], 1) : s("el-empty", { attrs: { description: i.$t("trace.selectSpan") } })], 1)], 1)], 1)], 1) : i._e()])], 1);
|
|
12205
12214
|
}, iv = [], av = /* @__PURE__ */ of(
|
|
@@ -12208,7 +12217,7 @@ var nv = function() {
|
|
|
12208
12217
|
iv,
|
|
12209
12218
|
!1,
|
|
12210
12219
|
null,
|
|
12211
|
-
"
|
|
12220
|
+
"8e982809"
|
|
12212
12221
|
);
|
|
12213
12222
|
const _f = av.exports, sv = {
|
|
12214
12223
|
routes: [
|