@farris/x-ui 0.5.8 → 0.5.9
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/assets/css/icons.css +1 -1
- package/assets/icon-preview.html +13 -4
- package/farris.x-ui.esm.js +375 -374
- package/farris.x-ui.umd.cjs +23 -23
- package/index.css +1 -1
- package/package.json +1 -1
package/farris.x-ui.esm.js
CHANGED
|
@@ -557,10 +557,10 @@ const mu = /* @__PURE__ */ ut({
|
|
|
557
557
|
const n = be(1), r = be(0), i = be(0), a = be(typeof window > "u" ? 0 : window.innerWidth), s = be(typeof window > "u" ? 0 : window.innerHeight), l = be(null), d = be(null);
|
|
558
558
|
let m = null;
|
|
559
559
|
function p(W, G) {
|
|
560
|
-
const fe = a.value * gi, J = Math.max(1, s.value * gi - jl),
|
|
560
|
+
const fe = a.value * gi, J = Math.max(1, s.value * gi - jl), se = Math.min(1, fe / W, J / G);
|
|
561
561
|
return {
|
|
562
|
-
width: Math.max(1, Math.floor(W *
|
|
563
|
-
height: Math.max(1, Math.floor(G *
|
|
562
|
+
width: Math.max(1, Math.floor(W * se)),
|
|
563
|
+
height: Math.max(1, Math.floor(G * se))
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
566
|
const h = me(() => r.value <= 0 || i.value <= 0 ? {
|
|
@@ -673,8 +673,8 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
673
673
|
if (e.role !== "user") return !1;
|
|
674
674
|
const J = n.value;
|
|
675
675
|
if (J.length !== 1) return !1;
|
|
676
|
-
const
|
|
677
|
-
return Gl(
|
|
676
|
+
const se = J[0];
|
|
677
|
+
return Gl(se) && !!se.url;
|
|
678
678
|
}), {
|
|
679
679
|
formatFileName: s,
|
|
680
680
|
formatFileSize: l,
|
|
@@ -698,35 +698,35 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
698
698
|
"f-chat-bubble-attachment-name": !0,
|
|
699
699
|
"name-tip": e.enableFixedWidth
|
|
700
700
|
}));
|
|
701
|
-
function M(J,
|
|
702
|
-
if (!
|
|
703
|
-
if (Gl(
|
|
704
|
-
b(
|
|
701
|
+
function M(J, se) {
|
|
702
|
+
if (!se.pending) {
|
|
703
|
+
if (Gl(se) && se.url) {
|
|
704
|
+
b(se);
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
|
-
t.emit("preview",
|
|
707
|
+
t.emit("preview", se);
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
function T(J,
|
|
710
|
+
function T(J, se) {
|
|
711
711
|
const ne = String(J.fileId ?? "").trim();
|
|
712
712
|
if (ne)
|
|
713
713
|
return ne;
|
|
714
714
|
const pe = String(J.url ?? "").trim();
|
|
715
|
-
return pe || `${J.name}:${
|
|
715
|
+
return pe || `${J.name}:${se}`;
|
|
716
716
|
}
|
|
717
|
-
function C(J,
|
|
718
|
-
return i.value.includes(T(J,
|
|
717
|
+
function C(J, se) {
|
|
718
|
+
return i.value.includes(T(J, se));
|
|
719
719
|
}
|
|
720
|
-
async function S(J,
|
|
720
|
+
async function S(J, se, ne) {
|
|
721
721
|
J.stopPropagation(), J.preventDefault();
|
|
722
|
-
const pe = Du(
|
|
722
|
+
const pe = Du(se);
|
|
723
723
|
if (!pe)
|
|
724
724
|
return;
|
|
725
|
-
const ke = T(
|
|
725
|
+
const ke = T(se, ne);
|
|
726
726
|
if (!i.value.includes(ke)) {
|
|
727
727
|
i.value = [...i.value, ke];
|
|
728
728
|
try {
|
|
729
|
-
await R1(pe,
|
|
729
|
+
await R1(pe, se.name);
|
|
730
730
|
} finally {
|
|
731
731
|
i.value = i.value.filter((xe) => xe !== ke);
|
|
732
732
|
}
|
|
@@ -762,7 +762,7 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
762
762
|
}
|
|
763
763
|
function $(J) {
|
|
764
764
|
if (!J) return null;
|
|
765
|
-
const
|
|
765
|
+
const se = z(J.type);
|
|
766
766
|
return x("div", {
|
|
767
767
|
class: "file-info f-utils-fill"
|
|
768
768
|
}, [x("span", {
|
|
@@ -772,7 +772,7 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
772
772
|
class: "file-info-footer"
|
|
773
773
|
}, [x("span", {
|
|
774
774
|
class: `file-icon ${m(J.type, "file-type-", J.name)}`
|
|
775
|
-
}, null),
|
|
775
|
+
}, null), se && x(L0, null, [x("span", {
|
|
776
776
|
class: "file-type"
|
|
777
777
|
}, [z(J.type)])]), J.size && x(L0, null, [x("div", {
|
|
778
778
|
class: "file-info-divider"
|
|
@@ -780,11 +780,11 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
780
780
|
class: "file-size"
|
|
781
781
|
}, [l(J.size)])])])]);
|
|
782
782
|
}
|
|
783
|
-
function W(J,
|
|
784
|
-
const ne = Du(J), pe = C(J,
|
|
783
|
+
function W(J, se) {
|
|
784
|
+
const ne = Du(J), pe = C(J, se);
|
|
785
785
|
return x("div", {
|
|
786
786
|
class: "f-chat-bubble-attachment-item " + m(J.type, "attachment-type-", J.name) + (J.pending ? " status-working" : ""),
|
|
787
|
-
key:
|
|
787
|
+
key: se,
|
|
788
788
|
onClick: (ke) => M(ke, J)
|
|
789
789
|
}, [x("div", {
|
|
790
790
|
class: "f-chat-bubble-attachment-main",
|
|
@@ -814,7 +814,7 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
814
814
|
"aria-busy": pe ? "true" : "false",
|
|
815
815
|
title: pe ? "正在下载" : "下载",
|
|
816
816
|
disabled: pe,
|
|
817
|
-
onClick: (ke) => S(ke, J,
|
|
817
|
+
onClick: (ke) => S(ke, J, se)
|
|
818
818
|
}, [pe ? x("span", {
|
|
819
819
|
class: "f-chat-download-spinner",
|
|
820
820
|
"aria-hidden": "true"
|
|
@@ -829,25 +829,25 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
829
829
|
class: "f-chat-bubble-attachment-image",
|
|
830
830
|
"aria-label": `预览图片 ${J.name}`,
|
|
831
831
|
title: J.name,
|
|
832
|
-
onClick: (
|
|
833
|
-
|
|
832
|
+
onClick: (se) => {
|
|
833
|
+
se.stopPropagation(), b(J);
|
|
834
834
|
}
|
|
835
835
|
}, [x("img", {
|
|
836
836
|
src: J.url,
|
|
837
837
|
alt: J.name
|
|
838
838
|
}, null)]) : null;
|
|
839
839
|
}
|
|
840
|
-
function fe(J,
|
|
840
|
+
function fe(J, se) {
|
|
841
841
|
return Gl(J) && J.url ? x("div", {
|
|
842
842
|
class: "f-chat-bubble-attachment-image-wrap",
|
|
843
|
-
key:
|
|
843
|
+
key: se
|
|
844
844
|
}, [G(J)]) : x("div", {
|
|
845
845
|
class: "f-chat-bubble-attachment-toast",
|
|
846
|
-
key:
|
|
846
|
+
key: se
|
|
847
847
|
}, [$(J)]);
|
|
848
848
|
}
|
|
849
849
|
return () => {
|
|
850
|
-
var J,
|
|
850
|
+
var J, se;
|
|
851
851
|
return r.value ? x(L0, null, [x("div", {
|
|
852
852
|
class: {
|
|
853
853
|
"f-chat-bubble-attachments": !0,
|
|
@@ -867,7 +867,7 @@ const m4 = /* @__PURE__ */ ut({
|
|
|
867
867
|
}, null)])]), x(mu, {
|
|
868
868
|
modelValue: p.value !== null,
|
|
869
869
|
src: ((J = p.value) == null ? void 0 : J.url) ?? "",
|
|
870
|
-
name: ((
|
|
870
|
+
name: ((se = p.value) == null ? void 0 : se.name) ?? "",
|
|
871
871
|
onClose: w
|
|
872
872
|
}, null)]) : null;
|
|
873
873
|
};
|
|
@@ -1497,7 +1497,7 @@ function C4() {
|
|
|
1497
1497
|
const Be = n.createElement("template");
|
|
1498
1498
|
Be.content && Be.content.ownerDocument && (n = Be.content.ownerDocument);
|
|
1499
1499
|
}
|
|
1500
|
-
let fe, J = "",
|
|
1500
|
+
let fe, J = "", se, ne = !1, pe = 0;
|
|
1501
1501
|
const ke = function() {
|
|
1502
1502
|
if (pe > 0)
|
|
1503
1503
|
throw za('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
@@ -1516,11 +1516,11 @@ function C4() {
|
|
|
1516
1516
|
pe--;
|
|
1517
1517
|
}
|
|
1518
1518
|
}, le = function() {
|
|
1519
|
-
return ne || (
|
|
1519
|
+
return ne || (se = Up(h, i), ne = !0), se;
|
|
1520
1520
|
}, X = n, ve = X.implementation, Re = X.createNodeIterator, je = X.createDocumentFragment, H = X.getElementsByTagName, te = r.importNode;
|
|
1521
1521
|
let ae = Zf();
|
|
1522
1522
|
t.isSupported = typeof k4 == "function" && typeof T == "function" && ve && ve.createHTMLDocument !== void 0;
|
|
1523
|
-
const ge = Tp, De = Fp,
|
|
1523
|
+
const ge = Tp, De = Fp, ie = Mp, de = Bp, Ae = Op, Te = Ip, Ke = zp, ot = Rp;
|
|
1524
1524
|
let yt = Xf, ct = null;
|
|
1525
1525
|
const at = Bt({}, [...jf, ...Vl, ...Xl, ...Yl, ...Gf]);
|
|
1526
1526
|
let st = null;
|
|
@@ -1824,7 +1824,7 @@ function C4() {
|
|
|
1824
1824
|
null
|
|
1825
1825
|
);
|
|
1826
1826
|
}, li = function(P) {
|
|
1827
|
-
return P = iu(P, ge, " "), P = iu(P, De, " "), P = iu(P,
|
|
1827
|
+
return P = iu(P, ge, " "), P = iu(P, De, " "), P = iu(P, ie, " "), P;
|
|
1828
1828
|
}, hn = function(P) {
|
|
1829
1829
|
var oe;
|
|
1830
1830
|
P.normalize();
|
|
@@ -2129,7 +2129,7 @@ function C4() {
|
|
|
2129
2129
|
let Be = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2130
2130
|
Jr(Be), Et = !0, Tt = ct, t0 = st;
|
|
2131
2131
|
}, t.clearConfig = function() {
|
|
2132
|
-
zr = null, Et = !1, Tt = null, t0 = null, fe =
|
|
2132
|
+
zr = null, Et = !1, Tt = null, t0 = null, fe = se, J = "";
|
|
2133
2133
|
}, t.isValidAttribute = function(Be, P, oe) {
|
|
2134
2134
|
zr || Jr({});
|
|
2135
2135
|
const Ce = ee(Be), Ue = ee(P);
|
|
@@ -7309,13 +7309,13 @@ var q4 = function(t) {
|
|
|
7309
7309
|
else
|
|
7310
7310
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
7311
7311
|
` + W + " children.");
|
|
7312
|
-
for (var
|
|
7313
|
-
var ne = new ka(S[
|
|
7312
|
+
for (var se = 0; se < W; se++) {
|
|
7313
|
+
var ne = new ka(S[se]), pe = new Xr([ne], {
|
|
7314
7314
|
width: "400em",
|
|
7315
7315
|
height: Le($),
|
|
7316
7316
|
viewBox: "0 0 " + l + " " + z,
|
|
7317
|
-
preserveAspectRatio: fe[
|
|
7318
|
-
}), ke = Ea([G[
|
|
7317
|
+
preserveAspectRatio: fe[se] + " slice"
|
|
7318
|
+
}), ke = Ea([G[se]], [pe], n);
|
|
7319
7319
|
if (W === 1)
|
|
7320
7320
|
return {
|
|
7321
7321
|
span: ke,
|
|
@@ -8246,7 +8246,7 @@ var lu = function(t, n, r) {
|
|
|
8246
8246
|
}
|
|
8247
8247
|
var W = _ + S + B, G = Math.max(0, Math.ceil((n - W) / (z * T))), fe = W + G * z * T, J = i.fontMetrics().axisHeight;
|
|
8248
8248
|
r && (J *= i.sizeMultiplier);
|
|
8249
|
-
var
|
|
8249
|
+
var se = fe / 2 - J, ne = [];
|
|
8250
8250
|
if (h.length > 0) {
|
|
8251
8251
|
var pe = fe - _ - S, ke = Math.round(fe * 1e3), xe = h7(h, Math.round(pe * 1e3)), j = new ka(h, xe), le = Le(b / 1e3), X = Le(ke / 1e3), ve = new Xr([j], {
|
|
8252
8252
|
width: le,
|
|
@@ -8269,7 +8269,7 @@ var lu = function(t, n, r) {
|
|
|
8269
8269
|
}
|
|
8270
8270
|
var te = i.havingBaseStyle(gt.TEXT), ae = Nt({
|
|
8271
8271
|
positionType: "bottom",
|
|
8272
|
-
positionData:
|
|
8272
|
+
positionData: se,
|
|
8273
8273
|
children: ne
|
|
8274
8274
|
});
|
|
8275
8275
|
return Y1(Me(["delimsizing", "mult"], [ae], te), gt.TEXT, i, s);
|
|
@@ -9036,8 +9036,8 @@ var Mr = function(t, n) {
|
|
|
9036
9036
|
var fe = Rt(z[i], n);
|
|
9037
9037
|
W < fe.depth && (W = fe.depth), $ < fe.height && ($ = fe.height), G[i] = fe;
|
|
9038
9038
|
}
|
|
9039
|
-
var J = t.rowGaps[r],
|
|
9040
|
-
J && (
|
|
9039
|
+
var J = t.rowGaps[r], se = 0;
|
|
9040
|
+
J && (se = l0(J, n), se > 0 && (se += C, W < se && (W = se), se = 0)), t.addJot && r < t.body.length - 1 && (W += _), G.height = $, G.depth = W, S += $, G.pos = S, S += W + se, d[r] = G, B(s[r + 1]);
|
|
9041
9041
|
}
|
|
9042
9042
|
var ne = S / 2 + n.fontMetrics().axisHeight, pe = t.cols || [], ke = [], xe, j, le = [];
|
|
9043
9043
|
if (t.tags && t.tags.some((it) => it))
|
|
@@ -9059,10 +9059,10 @@ var Mr = function(t, n) {
|
|
|
9059
9059
|
for (var H, te = pe[j], ae = !0; ((ge = te) == null ? void 0 : ge.type) === "separator"; ) {
|
|
9060
9060
|
var ge;
|
|
9061
9061
|
if (ae || (xe = Me(["arraycolsep"], []), xe.style.width = Le(n.fontMetrics().doubleRuleSep), ke.push(xe)), te.separator === "|" || te.separator === ":") {
|
|
9062
|
-
var De = te.separator === "|" ? "solid" : "dashed",
|
|
9063
|
-
|
|
9062
|
+
var De = te.separator === "|" ? "solid" : "dashed", ie = Me(["vertical-separator"], [], n);
|
|
9063
|
+
ie.style.height = Le(S), ie.style.borderRightWidth = Le(p), ie.style.borderRightStyle = De, ie.style.margin = "0 " + Le(-p / 2);
|
|
9064
9064
|
var de = S - ne;
|
|
9065
|
-
de && (
|
|
9065
|
+
de && (ie.style.verticalAlign = Le(-de)), ke.push(ie);
|
|
9066
9066
|
} else
|
|
9067
9067
|
throw new Oe("Invalid separator type: " + te.separator);
|
|
9068
9068
|
j++, te = pe[j], ae = !1;
|
|
@@ -15355,8 +15355,8 @@ function Z9(e, t, n, r) {
|
|
|
15355
15355
|
l = e.push("list_item_open", "li", 1), l.markup = String.fromCharCode(A);
|
|
15356
15356
|
const fe = [d, 0];
|
|
15357
15357
|
l.map = fe, h && (l.info = e.src.slice(s, w - 1));
|
|
15358
|
-
const J = e.tight,
|
|
15359
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = G, e.tight = !0, e.tShift[d] = $ - e.bMarks[d], e.sCount[d] = z, $ >= i && e.isEmpty(d + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, d, n, !0), (!e.tight || T) && (m = !1), T = e.line - d > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = pe, e.tShift[d] =
|
|
15358
|
+
const J = e.tight, se = e.tShift[d], ne = e.sCount[d], pe = e.listIndent;
|
|
15359
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = G, e.tight = !0, e.tShift[d] = $ - e.bMarks[d], e.sCount[d] = z, $ >= i && e.isEmpty(d + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, d, n, !0), (!e.tight || T) && (m = !1), T = e.line - d > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = pe, e.tShift[d] = se, e.sCount[d] = ne, e.tight = J, l = e.push("list_item_close", "li", -1), l.markup = String.fromCharCode(A), d = e.line, fe[1] = d, d >= n || e.sCount[d] < e.blkIndent || e.sCount[d] - e.blkIndent >= 4)
|
|
15360
15360
|
break;
|
|
15361
15361
|
let ke = !1;
|
|
15362
15362
|
for (let xe = 0, j = C.length; xe < j; xe++)
|
|
@@ -15390,7 +15390,7 @@ function Q9(e, t, n, r) {
|
|
|
15390
15390
|
const W = e.md.block.ruler.getRules("reference"), G = e.parentType;
|
|
15391
15391
|
e.parentType = "reference";
|
|
15392
15392
|
let fe = !1;
|
|
15393
|
-
for (let J = 0,
|
|
15393
|
+
for (let J = 0, se = W.length; J < se; J++)
|
|
15394
15394
|
if (W[J](e, C, S, !0)) {
|
|
15395
15395
|
fe = !0;
|
|
15396
15396
|
break;
|
|
@@ -16884,8 +16884,8 @@ function yb() {
|
|
|
16884
16884
|
const q = N.slice(g, D).replace(/[^]/g, "$&̲");
|
|
16885
16885
|
let Q;
|
|
16886
16886
|
g > 15 ? Q = "…" + N.slice(g - 15, g) : Q = N.slice(0, g);
|
|
16887
|
-
let
|
|
16888
|
-
D + 15 < N.length ?
|
|
16887
|
+
let ue;
|
|
16888
|
+
D + 15 < N.length ? ue = N.slice(D, D + 15) + "…" : ue = N.slice(D), f += Q + q + ue;
|
|
16889
16889
|
}
|
|
16890
16890
|
super(f), this.name = "ParseError", Object.setPrototypeOf(this, i.prototype), this.position = g, g != null && D != null && (this.length = D - g), this.rawMessage = u;
|
|
16891
16891
|
}
|
|
@@ -17068,40 +17068,40 @@ function yb() {
|
|
|
17068
17068
|
* Get the style of a superscript given a base in the current style.
|
|
17069
17069
|
*/
|
|
17070
17070
|
sup() {
|
|
17071
|
-
return
|
|
17071
|
+
return se[ne[this.id]];
|
|
17072
17072
|
}
|
|
17073
17073
|
/**
|
|
17074
17074
|
* Get the style of a subscript given a base in the current style.
|
|
17075
17075
|
*/
|
|
17076
17076
|
sub() {
|
|
17077
|
-
return
|
|
17077
|
+
return se[pe[this.id]];
|
|
17078
17078
|
}
|
|
17079
17079
|
/**
|
|
17080
17080
|
* Get the style of a fraction numerator given the fraction in the current
|
|
17081
17081
|
* style.
|
|
17082
17082
|
*/
|
|
17083
17083
|
fracNum() {
|
|
17084
|
-
return
|
|
17084
|
+
return se[ke[this.id]];
|
|
17085
17085
|
}
|
|
17086
17086
|
/**
|
|
17087
17087
|
* Get the style of a fraction denominator given the fraction in the current
|
|
17088
17088
|
* style.
|
|
17089
17089
|
*/
|
|
17090
17090
|
fracDen() {
|
|
17091
|
-
return
|
|
17091
|
+
return se[xe[this.id]];
|
|
17092
17092
|
}
|
|
17093
17093
|
/**
|
|
17094
17094
|
* Get the cramped version of a style (in particular, cramping a cramped style
|
|
17095
17095
|
* doesn't change the style).
|
|
17096
17096
|
*/
|
|
17097
17097
|
cramp() {
|
|
17098
|
-
return
|
|
17098
|
+
return se[j[this.id]];
|
|
17099
17099
|
}
|
|
17100
17100
|
/**
|
|
17101
17101
|
* Get a text or display version of this style.
|
|
17102
17102
|
*/
|
|
17103
17103
|
text() {
|
|
17104
|
-
return
|
|
17104
|
+
return se[le[this.id]];
|
|
17105
17105
|
}
|
|
17106
17106
|
/**
|
|
17107
17107
|
* Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
|
|
@@ -17110,12 +17110,12 @@ function yb() {
|
|
|
17110
17110
|
return this.size >= 2;
|
|
17111
17111
|
}
|
|
17112
17112
|
}
|
|
17113
|
-
const S = 0, B = 1, z = 2, $ = 3, W = 4, G = 5, fe = 6, J = 7,
|
|
17113
|
+
const S = 0, B = 1, z = 2, $ = 3, W = 4, G = 5, fe = 6, J = 7, se = [new C(S, 0, !1), new C(B, 0, !0), new C(z, 1, !1), new C($, 1, !0), new C(W, 2, !1), new C(G, 2, !0), new C(fe, 3, !1), new C(J, 3, !0)], ne = [W, G, W, G, fe, J, fe, J], pe = [G, G, G, G, J, J, J, J], ke = [z, $, W, G, fe, J, fe, J], xe = [$, $, G, G, J, J, J, J], j = [B, B, $, $, G, G, J, J], le = [S, B, z, $, z, $, z, $];
|
|
17114
17114
|
var X = {
|
|
17115
|
-
DISPLAY:
|
|
17116
|
-
TEXT:
|
|
17117
|
-
SCRIPT:
|
|
17118
|
-
SCRIPTSCRIPT:
|
|
17115
|
+
DISPLAY: se[S],
|
|
17116
|
+
TEXT: se[z],
|
|
17117
|
+
SCRIPT: se[W],
|
|
17118
|
+
SCRIPTSCRIPT: se[fe]
|
|
17119
17119
|
};
|
|
17120
17120
|
const ve = [{
|
|
17121
17121
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
@@ -17231,7 +17231,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
17231
17231
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
17232
17232
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
17233
17233
|
M` + (1001 + o) + " " + u + "h400000v" + (40 + o) + "h-400000z";
|
|
17234
|
-
},
|
|
17234
|
+
}, ie = function(o, u) {
|
|
17235
17235
|
return "M424," + (2398 + o + u) + `
|
|
17236
17236
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
17237
17237
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
@@ -17276,7 +17276,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
17276
17276
|
f = De(u, te);
|
|
17277
17277
|
break;
|
|
17278
17278
|
case "sqrtSize3":
|
|
17279
|
-
f =
|
|
17279
|
+
f = ie(u, te);
|
|
17280
17280
|
break;
|
|
17281
17281
|
case "sqrtSize4":
|
|
17282
17282
|
f = de(u, te);
|
|
@@ -20352,32 +20352,32 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
20352
20352
|
if (g.charCodeAt(0) === 55349 && ([q, Q] = hl(g, f)), q.length > 0)
|
|
20353
20353
|
return a0(g, q, f, u, D.concat(Q));
|
|
20354
20354
|
if (N) {
|
|
20355
|
-
let
|
|
20355
|
+
let ue, ce;
|
|
20356
20356
|
if (N === "boldsymbol") {
|
|
20357
20357
|
const he = si(g, f, u, D, c);
|
|
20358
|
-
|
|
20359
|
-
} else F ? (
|
|
20360
|
-
if (ii(g,
|
|
20361
|
-
return a0(g,
|
|
20362
|
-
if (zr.hasOwnProperty(g) &&
|
|
20358
|
+
ue = he.fontName, ce = [he.fontClass];
|
|
20359
|
+
} else F ? (ue = ta[N].fontName, ce = [N]) : (ue = ci(N, u.fontWeight, u.fontShape), ce = [N, u.fontWeight, u.fontShape]);
|
|
20360
|
+
if (ii(g, ue, f).metrics)
|
|
20361
|
+
return a0(g, ue, f, u, D.concat(ce));
|
|
20362
|
+
if (zr.hasOwnProperty(g) && ue.slice(0, 10) === "Typewriter") {
|
|
20363
20363
|
const he = [];
|
|
20364
20364
|
for (let Se = 0; Se < g.length; Se++)
|
|
20365
|
-
he.push(a0(g[Se],
|
|
20365
|
+
he.push(a0(g[Se], ue, f, u, D.concat(ce)));
|
|
20366
20366
|
return hn(he);
|
|
20367
20367
|
}
|
|
20368
20368
|
}
|
|
20369
20369
|
if (c === "mathord")
|
|
20370
20370
|
return a0(g, "Math-Italic", f, u, D.concat(["mathnormal"]));
|
|
20371
20371
|
if (c === "textord") {
|
|
20372
|
-
const
|
|
20373
|
-
if (
|
|
20372
|
+
const ue = n0[f][g] && n0[f][g].font;
|
|
20373
|
+
if (ue === "ams") {
|
|
20374
20374
|
const ce = ci("amsrm", u.fontWeight, u.fontShape);
|
|
20375
20375
|
return a0(g, ce, f, u, D.concat("amsrm", u.fontWeight, u.fontShape));
|
|
20376
|
-
} else if (
|
|
20376
|
+
} else if (ue === "main" || !ue) {
|
|
20377
20377
|
const ce = ci("textrm", u.fontWeight, u.fontShape);
|
|
20378
20378
|
return a0(g, ce, f, u, D.concat(u.fontWeight, u.fontShape));
|
|
20379
20379
|
} else {
|
|
20380
|
-
const ce = ci(
|
|
20380
|
+
const ce = ci(ue, u.fontWeight, u.fontShape);
|
|
20381
20381
|
return a0(g, ce, f, u, D.concat(ce, u.fontWeight, u.fontShape));
|
|
20382
20382
|
}
|
|
20383
20383
|
} else
|
|
@@ -20493,16 +20493,16 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
20493
20493
|
}
|
|
20494
20494
|
N = Math.min(N, Q), q = Math.max(q, Q);
|
|
20495
20495
|
}
|
|
20496
|
-
const
|
|
20497
|
-
|
|
20496
|
+
const ue = Fe(["vlist"], F);
|
|
20497
|
+
ue.style.height = ye(q);
|
|
20498
20498
|
let ce;
|
|
20499
20499
|
if (N < 0) {
|
|
20500
20500
|
const Se = Fe([], []), Pe = Fe(["vlist"], [Se]);
|
|
20501
20501
|
Pe.style.height = ye(-N);
|
|
20502
20502
|
const Je = Fe(["vlist-s"], [new Tt("")]);
|
|
20503
|
-
ce = [Fe(["vlist-r"], [
|
|
20503
|
+
ce = [Fe(["vlist-r"], [ue, Je]), Fe(["vlist-r"], [Pe])];
|
|
20504
20504
|
} else
|
|
20505
|
-
ce = [Fe(["vlist-r"], [
|
|
20505
|
+
ce = [Fe(["vlist-r"], [ue])];
|
|
20506
20506
|
const he = Fe(["vlist-t"], ce);
|
|
20507
20507
|
return ce.length === 2 && he.classes.push("vlist-t2"), he.height = q, he.depth = -N, he;
|
|
20508
20508
|
}, mn = (o, u) => {
|
|
@@ -20745,12 +20745,12 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
20745
20745
|
f === void 0 && (f = [null, null]);
|
|
20746
20746
|
const g = [];
|
|
20747
20747
|
for (let Q = 0; Q < o.length; Q++) {
|
|
20748
|
-
const
|
|
20749
|
-
if (
|
|
20750
|
-
const ce =
|
|
20748
|
+
const ue = ht(o[Q], u);
|
|
20749
|
+
if (ue instanceof at) {
|
|
20750
|
+
const ce = ue.children;
|
|
20751
20751
|
g.push(...ce);
|
|
20752
20752
|
} else
|
|
20753
|
-
g.push(
|
|
20753
|
+
g.push(ue);
|
|
20754
20754
|
}
|
|
20755
20755
|
if (Oa(g), !c)
|
|
20756
20756
|
return g;
|
|
@@ -20760,14 +20760,14 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
20760
20760
|
Q.type === "sizing" ? D = u.havingSize(Q.size) : Q.type === "styling" && (D = u.havingStyle(Ue[Q.style]));
|
|
20761
20761
|
}
|
|
20762
20762
|
const F = Fe([f[0] || "leftmost"], [], u), N = Fe([f[1] || "rightmost"], [], u), q = c === "root";
|
|
20763
|
-
return Lt(g, (Q,
|
|
20764
|
-
const ce =
|
|
20765
|
-
ce === "mbin" && Ce.has(he) ?
|
|
20763
|
+
return Lt(g, (Q, ue) => {
|
|
20764
|
+
const ce = ue.classes[0], he = Q.classes[0];
|
|
20765
|
+
ce === "mbin" && Ce.has(he) ? ue.classes[0] = "mord" : he === "mbin" && oe.has(ce) && (Q.classes[0] = "mord");
|
|
20766
20766
|
}, {
|
|
20767
20767
|
node: F
|
|
20768
|
-
}, N, q), Lt(g, (Q,
|
|
20768
|
+
}, N, q), Lt(g, (Q, ue) => {
|
|
20769
20769
|
var ce, he;
|
|
20770
|
-
const Se = B0(
|
|
20770
|
+
const Se = B0(ue), Pe = B0(Q), Je = Se && Pe ? Q.hasClass("mtight") ? (ce = ns[Se]) == null ? void 0 : ce[Pe] : (he = pl[Se]) == null ? void 0 : he[Pe] : null;
|
|
20771
20771
|
if (Je)
|
|
20772
20772
|
return mn(Je, D);
|
|
20773
20773
|
}, {
|
|
@@ -20787,8 +20787,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
20787
20787
|
const Q = u(F, c.node);
|
|
20788
20788
|
Q && (c.insertAfter ? c.insertAfter(Q) : (o.unshift(Q), D++));
|
|
20789
20789
|
}
|
|
20790
|
-
q ? c.node = F : g && F.hasClass("newline") && (c.node = Fe(["leftmost"])), c.insertAfter = /* @__PURE__ */ ((Q) => (
|
|
20791
|
-
o.splice(Q + 1, 0,
|
|
20790
|
+
q ? c.node = F : g && F.hasClass("newline") && (c.node = Fe(["leftmost"])), c.insertAfter = /* @__PURE__ */ ((Q) => (ue) => {
|
|
20791
|
+
o.splice(Q + 1, 0, ue), D++;
|
|
20792
20792
|
})(D);
|
|
20793
20793
|
}
|
|
20794
20794
|
f && o.pop();
|
|
@@ -20843,10 +20843,10 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
20843
20843
|
let F = [];
|
|
20844
20844
|
for (let Q = 0; Q < f.length; Q++)
|
|
20845
20845
|
if (F.push(f[Q]), f[Q].hasClass("mbin") || f[Q].hasClass("mrel") || f[Q].hasClass("allowbreak")) {
|
|
20846
|
-
let
|
|
20846
|
+
let ue = !1;
|
|
20847
20847
|
for (; Q < f.length - 1 && f[Q + 1].hasClass("mspace") && !f[Q + 1].hasClass("newline"); )
|
|
20848
|
-
Q++, F.push(f[Q]), f[Q].hasClass("nobreak") && (
|
|
20849
|
-
|
|
20848
|
+
Q++, F.push(f[Q]), f[Q].hasClass("nobreak") && (ue = !0);
|
|
20849
|
+
ue || (D.push(as(F, u)), F = []);
|
|
20850
20850
|
} else f[Q].hasClass("newline") && (F.pop(), F.length > 0 && (D.push(as(F, u)), F = []), D.push(f[Q]));
|
|
20851
20851
|
F.length > 0 && D.push(as(F, u));
|
|
20852
20852
|
let N;
|
|
@@ -21427,17 +21427,17 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21427
21427
|
const N = o.label.slice(1);
|
|
21428
21428
|
if (w6.has(N)) {
|
|
21429
21429
|
const q = o, Q = q.base.type === "ordgroup" ? q.base.body.length : 1;
|
|
21430
|
-
let
|
|
21430
|
+
let ue, ce, he;
|
|
21431
21431
|
if (Q > 5)
|
|
21432
|
-
N === "widehat" || N === "widecheck" ? (
|
|
21432
|
+
N === "widehat" || N === "widecheck" ? (ue = 420, F = 2364, he = 0.42, ce = N + "4") : (ue = 312, F = 2340, he = 0.34, ce = "tilde4");
|
|
21433
21433
|
else {
|
|
21434
21434
|
const Je = [1, 1, 2, 2, 3, 3][Q];
|
|
21435
|
-
N === "widehat" || N === "widecheck" ? (F = [0, 1062, 2364, 2364, 2364][Je],
|
|
21435
|
+
N === "widehat" || N === "widecheck" ? (F = [0, 1062, 2364, 2364, 2364][Je], ue = [0, 239, 300, 360, 420][Je], he = [0, 0.24, 0.3, 0.3, 0.36, 0.42][Je], ce = N + Je) : (F = [0, 600, 1033, 2339, 2340][Je], ue = [0, 260, 286, 306, 312][Je], he = [0, 0.26, 0.286, 0.3, 0.306, 0.34][Je], ce = "tilde" + Je);
|
|
21436
21436
|
}
|
|
21437
21437
|
const Se = new an(ce), Pe = new t0([Se], {
|
|
21438
21438
|
width: "100%",
|
|
21439
21439
|
height: ye(he),
|
|
21440
|
-
viewBox: "0 0 " + F + " " +
|
|
21440
|
+
viewBox: "0 0 " + F + " " + ue,
|
|
21441
21441
|
preserveAspectRatio: "none"
|
|
21442
21442
|
});
|
|
21443
21443
|
return {
|
|
@@ -21446,7 +21446,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21446
21446
|
height: he
|
|
21447
21447
|
};
|
|
21448
21448
|
} else {
|
|
21449
|
-
const q = [], Q = y6[N], [
|
|
21449
|
+
const q = [], Q = y6[N], [ue, ce, he] = Q, Se = he / 1e3, Pe = ue.length;
|
|
21450
21450
|
let Je, Ft;
|
|
21451
21451
|
if (Pe === 1) {
|
|
21452
21452
|
const pt = Q[3];
|
|
@@ -21459,7 +21459,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21459
21459
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
21460
21460
|
` + Pe + " children.");
|
|
21461
21461
|
for (let pt = 0; pt < Pe; pt++) {
|
|
21462
|
-
const Mt = new an(
|
|
21462
|
+
const Mt = new an(ue[pt]), Pt = new t0([Mt], {
|
|
21463
21463
|
width: "400em",
|
|
21464
21464
|
height: ye(Se),
|
|
21465
21465
|
viewBox: "0 0 " + F + " " + he,
|
|
@@ -21545,8 +21545,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21545
21545
|
var q, Q;
|
|
21546
21546
|
N = (q = (Q = Td(D)) == null ? void 0 : Q.skew) != null ? q : 0;
|
|
21547
21547
|
}
|
|
21548
|
-
const
|
|
21549
|
-
let ce =
|
|
21548
|
+
const ue = f.label === "\\c";
|
|
21549
|
+
let ce = ue ? D.height + D.depth : Math.min(D.height, u.fontMetrics().xHeight), he;
|
|
21550
21550
|
if (f.isStretchy)
|
|
21551
21551
|
he = us(f, u), he = Ct({
|
|
21552
21552
|
positionType: "firstBaseline",
|
|
@@ -21568,7 +21568,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21568
21568
|
f.label === "\\vec" ? (Pe = eu("vec", u), Je = ts.vec[1]) : (Pe = In({
|
|
21569
21569
|
mode: f.mode,
|
|
21570
21570
|
text: f.label
|
|
21571
|
-
}, u, "textord"), Pe = ei(Pe), Pe.italic = 0, Je = Pe.width,
|
|
21571
|
+
}, u, "textord"), Pe = ei(Pe), Pe.italic = 0, Je = Pe.width, ue && (ce += Pe.depth)), he = Fe(["accent-body"], [Pe]);
|
|
21572
21572
|
const Ft = f.label === "\\textcircled";
|
|
21573
21573
|
Ft && (he.classes.push("accent-full"), ce = D.height);
|
|
21574
21574
|
let pt = N;
|
|
@@ -21740,10 +21740,10 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21740
21740
|
const N = us(o, u), q = -u.fontMetrics().axisHeight + 0.5 * N.height;
|
|
21741
21741
|
let Q = -u.fontMetrics().axisHeight - 0.5 * N.height - 0.111;
|
|
21742
21742
|
(g.depth > 0.25 || o.label === "\\xleftequilibrium") && (Q -= g.depth);
|
|
21743
|
-
let
|
|
21743
|
+
let ue;
|
|
21744
21744
|
if (F) {
|
|
21745
21745
|
const ce = -u.fontMetrics().axisHeight + F.height + 0.5 * N.height + 0.111;
|
|
21746
|
-
|
|
21746
|
+
ue = Ct({
|
|
21747
21747
|
positionType: "individualShift",
|
|
21748
21748
|
children: [{
|
|
21749
21749
|
type: "elem",
|
|
@@ -21760,7 +21760,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21760
21760
|
}]
|
|
21761
21761
|
});
|
|
21762
21762
|
} else
|
|
21763
|
-
|
|
21763
|
+
ue = Ct({
|
|
21764
21764
|
positionType: "individualShift",
|
|
21765
21765
|
children: [{
|
|
21766
21766
|
type: "elem",
|
|
@@ -21772,7 +21772,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21772
21772
|
shift: q
|
|
21773
21773
|
}]
|
|
21774
21774
|
});
|
|
21775
|
-
return
|
|
21775
|
+
return ue.children[0].children[0].children[1].classes.push("svg-align"), Fe(["mrel", "x-arrow"], [ue], u);
|
|
21776
21776
|
},
|
|
21777
21777
|
mathmlBuilder(o, u) {
|
|
21778
21778
|
const c = is(o.label);
|
|
@@ -21991,12 +21991,12 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
21991
21991
|
N.body.push(F[q]);
|
|
21992
21992
|
else {
|
|
21993
21993
|
c.push(N), q += 1;
|
|
21994
|
-
const Q = ss(F[q]).text,
|
|
21995
|
-
if (
|
|
21994
|
+
const Q = ss(F[q]).text, ue = new Array(2);
|
|
21995
|
+
if (ue[0] = {
|
|
21996
21996
|
type: "ordgroup",
|
|
21997
21997
|
mode: "math",
|
|
21998
21998
|
body: []
|
|
21999
|
-
},
|
|
21999
|
+
}, ue[1] = {
|
|
22000
22000
|
type: "ordgroup",
|
|
22001
22001
|
mode: "math",
|
|
22002
22002
|
body: []
|
|
@@ -22010,7 +22010,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22010
22010
|
}
|
|
22011
22011
|
if (Id(F[Je]))
|
|
22012
22012
|
throw new a("Missing a " + Q + " character to complete a CD arrow.", F[Je]);
|
|
22013
|
-
|
|
22013
|
+
ue[Se].body.push(F[Je]);
|
|
22014
22014
|
}
|
|
22015
22015
|
if (Pe)
|
|
22016
22016
|
throw new a("Missing a " + Q + " character to complete a CD arrow.", F[q]);
|
|
@@ -22019,7 +22019,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22019
22019
|
throw new a('Expected one of "<>AV=|." after @', F[q]);
|
|
22020
22020
|
const he = {
|
|
22021
22021
|
type: "styling",
|
|
22022
|
-
body: [D6(Q,
|
|
22022
|
+
body: [D6(Q, ue, o)],
|
|
22023
22023
|
mode: "math",
|
|
22024
22024
|
style: "display"
|
|
22025
22025
|
// CD is always displaystyle.
|
|
@@ -22399,10 +22399,10 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22399
22399
|
type: "kern",
|
|
22400
22400
|
size: -1 * Dl
|
|
22401
22401
|
}, F6 = /* @__PURE__ */ new Set(["|", "\\lvert", "\\rvert", "\\vert"]), M6 = /* @__PURE__ */ new Set(["\\|", "\\lVert", "\\rVert", "\\Vert"]), qd = function(o, u, c, f, g, D) {
|
|
22402
|
-
let F, N, q, Q,
|
|
22402
|
+
let F, N, q, Q, ue = "", ce = 0;
|
|
22403
22403
|
F = q = Q = o, N = null;
|
|
22404
22404
|
let he = "Size1-Regular";
|
|
22405
|
-
o === "\\uparrow" ? q = Q = "⏐" : o === "\\Uparrow" ? q = Q = "‖" : o === "\\downarrow" ? F = q = "⏐" : o === "\\Downarrow" ? F = q = "‖" : o === "\\updownarrow" ? (F = "\\uparrow", q = "⏐", Q = "\\downarrow") : o === "\\Updownarrow" ? (F = "\\Uparrow", q = "‖", Q = "\\Downarrow") : F6.has(o) ? (q = "∣",
|
|
22405
|
+
o === "\\uparrow" ? q = Q = "⏐" : o === "\\Uparrow" ? q = Q = "‖" : o === "\\downarrow" ? F = q = "⏐" : o === "\\Downarrow" ? F = q = "‖" : o === "\\updownarrow" ? (F = "\\uparrow", q = "⏐", Q = "\\downarrow") : o === "\\Updownarrow" ? (F = "\\Uparrow", q = "‖", Q = "\\Downarrow") : F6.has(o) ? (q = "∣", ue = "vert", ce = 333) : M6.has(o) ? (q = "∥", ue = "doublevert", ce = 556) : o === "[" || o === "\\lbrack" ? (F = "⎡", q = "⎢", Q = "⎣", he = "Size4-Regular", ue = "lbrack", ce = 667) : o === "]" || o === "\\rbrack" ? (F = "⎤", q = "⎥", Q = "⎦", he = "Size4-Regular", ue = "rbrack", ce = 667) : o === "\\lfloor" || o === "⌊" ? (q = F = "⎢", Q = "⎣", he = "Size4-Regular", ue = "lfloor", ce = 667) : o === "\\lceil" || o === "⌈" ? (F = "⎡", q = Q = "⎢", he = "Size4-Regular", ue = "lceil", ce = 667) : o === "\\rfloor" || o === "⌋" ? (q = F = "⎥", Q = "⎦", he = "Size4-Regular", ue = "rfloor", ce = 667) : o === "\\rceil" || o === "⌉" ? (F = "⎤", q = Q = "⎥", he = "Size4-Regular", ue = "rceil", ce = 667) : o === "(" || o === "\\lparen" ? (F = "⎛", q = "⎜", Q = "⎝", he = "Size4-Regular", ue = "lparen", ce = 875) : o === ")" || o === "\\rparen" ? (F = "⎞", q = "⎟", Q = "⎠", he = "Size4-Regular", ue = "rparen", ce = 875) : o === "\\{" || o === "\\lbrace" ? (F = "⎧", N = "⎨", Q = "⎩", q = "⎪", he = "Size4-Regular") : o === "\\}" || o === "\\rbrace" ? (F = "⎫", N = "⎬", Q = "⎭", q = "⎪", he = "Size4-Regular") : o === "\\lgroup" || o === "⟮" ? (F = "⎧", Q = "⎩", q = "⎪", he = "Size4-Regular") : o === "\\rgroup" || o === "⟯" ? (F = "⎫", Q = "⎭", q = "⎪", he = "Size4-Regular") : o === "\\lmoustache" || o === "⎰" ? (F = "⎧", Q = "⎭", q = "⎪", he = "Size4-Regular") : (o === "\\rmoustache" || o === "⎱") && (F = "⎫", Q = "⎩", q = "⎪", he = "Size4-Regular");
|
|
22406
22406
|
const Se = tu(F, he, g), Pe = Se.height + Se.depth, Je = tu(q, he, g), Ft = Je.height + Je.depth, pt = tu(Q, he, g), Mt = pt.height + pt.depth;
|
|
22407
22407
|
let Pt = 0, g0 = 1;
|
|
22408
22408
|
if (N !== null) {
|
|
@@ -22413,8 +22413,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22413
22413
|
let hi = f.fontMetrics().axisHeight;
|
|
22414
22414
|
c && (hi *= f.sizeMultiplier);
|
|
22415
22415
|
const vs = $0 / 2 - hi, Y0 = [];
|
|
22416
|
-
if (
|
|
22417
|
-
const Rn = $0 - Pe - Mt, mi = Math.round($0 * 1e3), pi = ct(
|
|
22416
|
+
if (ue.length > 0) {
|
|
22417
|
+
const Rn = $0 - Pe - Mt, mi = Math.round($0 * 1e3), pi = ct(ue, Math.round(Rn * 1e3)), Ot = new an(ue, pi), h0 = ye(ce / 1e3), Kt = ye(mi / 1e3), b0 = new t0([Ot], {
|
|
22418
22418
|
width: h0,
|
|
22419
22419
|
height: Kt,
|
|
22420
22420
|
viewBox: "0 0 " + ce + " " + mi
|
|
@@ -22452,10 +22452,10 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22452
22452
|
const c = u.havingBaseSizing(), f = Wd("\\surd", o * c.sizeMultiplier, Gd, c);
|
|
22453
22453
|
let g = c.sizeMultiplier;
|
|
22454
22454
|
const D = Math.max(0, u.minRuleThickness - u.fontMetrics().sqrtRuleThickness);
|
|
22455
|
-
let F, N = 0, q = 0, Q = 0,
|
|
22456
|
-
return f.type === "small" ? (Q = 1e3 + 1e3 * D + Cl, o < 1 ? g = 1 : o < 1.4 && (g = 0.7), N = (1 + D + Sl) / g, q = (1 + D) / g, F = _l("sqrtMain", N, Q, D, u), F.style.minWidth = "0.853em",
|
|
22455
|
+
let F, N = 0, q = 0, Q = 0, ue;
|
|
22456
|
+
return f.type === "small" ? (Q = 1e3 + 1e3 * D + Cl, o < 1 ? g = 1 : o < 1.4 && (g = 0.7), N = (1 + D + Sl) / g, q = (1 + D) / g, F = _l("sqrtMain", N, Q, D, u), F.style.minWidth = "0.853em", ue = 0.833 / g) : f.type === "large" ? (Q = (1e3 + Cl) * nu[f.size], q = (nu[f.size] + D) / g, N = (nu[f.size] + D + Sl) / g, F = _l("sqrtSize" + f.size, N, Q, D, u), F.style.minWidth = "1.02em", ue = 1 / g) : (N = o + D + Sl, q = o + D, Q = Math.floor(1e3 * o + D) + Cl, F = _l("sqrtTall", N, Q, D, u), F.style.minWidth = "0.742em", ue = 1.056), F.height = q, F.style.height = ye(N), {
|
|
22457
22457
|
span: F,
|
|
22458
|
-
advanceWidth:
|
|
22458
|
+
advanceWidth: ue,
|
|
22459
22459
|
// Calculate the actual line width.
|
|
22460
22460
|
// This actually should depend on the chosen font -- e.g. \boldmath
|
|
22461
22461
|
// should use the thicker surd symbols from e.g. KaTeX_Main-Bold, and
|
|
@@ -22557,7 +22557,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22557
22557
|
const N = Wd(o, u, F, f);
|
|
22558
22558
|
return N.type === "small" ? _6(o, N.style, c, f, g, D) : N.type === "large" ? Hd(o, N.size, c, f, g, D) : qd(o, u, c, f, g, D);
|
|
22559
22559
|
}, Fl = function(o, u, c, f, g, D) {
|
|
22560
|
-
const F = f.fontMetrics().axisHeight * f.sizeMultiplier, N = 901, q = 5 / f.fontMetrics().ptPerEm, Q = Math.max(u - F, c + F),
|
|
22560
|
+
const F = f.fontMetrics().axisHeight * f.sizeMultiplier, N = 901, q = 5 / f.fontMetrics().ptPerEm, Q = Math.max(u - F, c + F), ue = Math.max(
|
|
22561
22561
|
// In real TeX, calculations are done using integral values which are
|
|
22562
22562
|
// 65536 per pt, or 655360 per em. So, the division here truncates in
|
|
22563
22563
|
// TeX but doesn't here, producing different results. If we wanted to
|
|
@@ -22570,7 +22570,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22570
22570
|
Q / 500 * N,
|
|
22571
22571
|
2 * Q - q
|
|
22572
22572
|
);
|
|
22573
|
-
return Tl(o,
|
|
22573
|
+
return Tl(o, ue, !0, f, g, D);
|
|
22574
22574
|
}, Vd = {
|
|
22575
22575
|
"\\bigl": {
|
|
22576
22576
|
mclass: "mopen",
|
|
@@ -22725,8 +22725,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22725
22725
|
let F;
|
|
22726
22726
|
if (o.left === "." ? F = Rr(u, ["mopen"]) : F = Fl(o.left, f, g, u, o.mode, ["mopen"]), c.unshift(F), D)
|
|
22727
22727
|
for (let q = 1; q < c.length; q++) {
|
|
22728
|
-
const
|
|
22729
|
-
|
|
22728
|
+
const ue = c[q].isMiddle;
|
|
22729
|
+
ue && (c[q] = Fl(ue.delim, f, g, ue.options, o.mode, []));
|
|
22730
22730
|
}
|
|
22731
22731
|
let N;
|
|
22732
22732
|
if (o.right === ".")
|
|
@@ -22796,12 +22796,12 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22796
22796
|
const Q = kt({
|
|
22797
22797
|
number: 0.6,
|
|
22798
22798
|
unit: "pt"
|
|
22799
|
-
}, u),
|
|
22799
|
+
}, u), ue = kt({
|
|
22800
22800
|
number: 0.35,
|
|
22801
22801
|
unit: "ex"
|
|
22802
22802
|
}, u), ce = u.havingBaseSizing();
|
|
22803
22803
|
g = g / ce.sizeMultiplier;
|
|
22804
|
-
const he = c.height + c.depth + Q +
|
|
22804
|
+
const he = c.height + c.depth + Q + ue;
|
|
22805
22805
|
c.style.paddingLeft = ye(he / 2 + Q);
|
|
22806
22806
|
const Se = Math.floor(1e3 * he * g), Pe = Ae(Se), Je = new t0([new an("phase", Pe)], {
|
|
22807
22807
|
width: "400em",
|
|
@@ -22809,16 +22809,16 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
22809
22809
|
viewBox: "0 0 400000 " + Se,
|
|
22810
22810
|
preserveAspectRatio: "xMinYMin slice"
|
|
22811
22811
|
});
|
|
22812
|
-
D = Xn(["hide-tail"], [Je], u), D.style.height = ye(he), F = c.depth + Q +
|
|
22812
|
+
D = Xn(["hide-tail"], [Je], u), D.style.height = ye(he), F = c.depth + Q + ue;
|
|
22813
22813
|
} else {
|
|
22814
22814
|
/cancel/.test(f) ? N || c.classes.push("cancel-pad") : f === "angl" ? c.classes.push("anglpad") : c.classes.push("boxpad");
|
|
22815
|
-
let Q = 0,
|
|
22815
|
+
let Q = 0, ue = 0, ce = 0;
|
|
22816
22816
|
/box/.test(f) ? (ce = Math.max(
|
|
22817
22817
|
u.fontMetrics().fboxrule,
|
|
22818
22818
|
// default
|
|
22819
22819
|
u.minRuleThickness
|
|
22820
22820
|
// User override.
|
|
22821
|
-
), Q = u.fontMetrics().fboxsep + (f === "colorbox" ? 0 : ce),
|
|
22821
|
+
), Q = u.fontMetrics().fboxsep + (f === "colorbox" ? 0 : ce), ue = Q) : f === "angl" ? (ce = Math.max(u.fontMetrics().defaultRuleThickness, u.minRuleThickness), Q = 4 * ce, ue = Math.max(0, 0.25 - c.depth)) : (Q = N ? 0.2 : 0, ue = Q), D = x6(c, f, Q, ue, u), /fbox|boxed|fcolorbox/.test(f) ? (D.style.borderStyle = "solid", D.style.borderWidth = ye(ce)) : f === "angl" && ce !== 0.049 && (D.style.borderTopWidth = ye(ce), D.style.borderRightWidth = ye(ce)), F = c.depth + ue, o.backgroundColor && (D.style.backgroundColor = o.backgroundColor, o.borderColor && (D.style.borderColor = o.borderColor));
|
|
22822
22822
|
}
|
|
22823
22823
|
let q;
|
|
22824
22824
|
if (o.backgroundColor)
|
|
@@ -23115,7 +23115,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23115
23115
|
colSeparationType: N,
|
|
23116
23116
|
autoTag: q,
|
|
23117
23117
|
singleRow: Q,
|
|
23118
|
-
emptySingleRow:
|
|
23118
|
+
emptySingleRow: ue,
|
|
23119
23119
|
maxNumCols: ce,
|
|
23120
23120
|
leqno: he
|
|
23121
23121
|
} = u;
|
|
@@ -23158,7 +23158,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23158
23158
|
}
|
|
23159
23159
|
o.consume();
|
|
23160
23160
|
} else if (D0 === "\\end") {
|
|
23161
|
-
Pt(), Se.length === 1 && E0.type === "styling" && E0.body.length === 1 && E0.body[0].type === "ordgroup" && E0.body[0].body.length === 0 && (Pe.length > 1 || !
|
|
23161
|
+
Pt(), Se.length === 1 && E0.type === "styling" && E0.body.length === 1 && E0.body[0].type === "ordgroup" && E0.body[0].body.length === 0 && (Pe.length > 1 || !ue) && Pe.pop(), Ft.length < Pe.length + 1 && Ft.push([]);
|
|
23162
23162
|
break;
|
|
23163
23163
|
} else if (D0 === "\\\\") {
|
|
23164
23164
|
o.consume();
|
|
@@ -23194,13 +23194,13 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23194
23194
|
u.fontMetrics().arrayRuleWidth,
|
|
23195
23195
|
u.minRuleThickness
|
|
23196
23196
|
// User override.
|
|
23197
|
-
),
|
|
23198
|
-
let ce = 5 *
|
|
23197
|
+
), ue = 1 / u.fontMetrics().ptPerEm;
|
|
23198
|
+
let ce = 5 * ue;
|
|
23199
23199
|
o.colSeparationType && o.colSeparationType === "small" && (ce = 0.2778 * (u.havingStyle(X.SCRIPT).sizeMultiplier / u.sizeMultiplier));
|
|
23200
23200
|
const he = o.colSeparationType === "CD" ? kt({
|
|
23201
23201
|
number: 3,
|
|
23202
23202
|
unit: "ex"
|
|
23203
|
-
}, u) : 12 *
|
|
23203
|
+
}, u) : 12 * ue, Se = 3 * ue, Pe = o.arraystretch * he, Je = 0.7 * Pe, Ft = 0.3 * Pe;
|
|
23204
23204
|
let pt = 0;
|
|
23205
23205
|
function Mt(Ot) {
|
|
23206
23206
|
for (let h0 = 0; h0 < Ot.length; ++h0)
|
|
@@ -23350,10 +23350,10 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23350
23350
|
D.setAttribute("columnspacing", he.trim());
|
|
23351
23351
|
} else o.colSeparationType === "alignat" || o.colSeparationType === "gather" ? D.setAttribute("columnspacing", "0em") : o.colSeparationType === "small" ? D.setAttribute("columnspacing", "0.2778em") : o.colSeparationType === "CD" ? D.setAttribute("columnspacing", "0.5em") : D.setAttribute("columnspacing", "1em");
|
|
23352
23352
|
let Q = "";
|
|
23353
|
-
const
|
|
23354
|
-
N +=
|
|
23355
|
-
for (let ce = 1; ce <
|
|
23356
|
-
Q +=
|
|
23353
|
+
const ue = o.hLinesBeforeRow;
|
|
23354
|
+
N += ue[0].length > 0 ? "left " : "", N += ue[ue.length - 1].length > 0 ? "right " : "";
|
|
23355
|
+
for (let ce = 1; ce < ue.length - 1; ce++)
|
|
23356
|
+
Q += ue[ce].length === 0 ? "none " : ue[ce][0] ? "dashed " : "solid ";
|
|
23357
23357
|
return /[sd]/.test(Q) && D.setAttribute("rowlines", Q.trim()), N !== "" && (D = new ze("menclose", [D]), D.setAttribute("notation", N.trim())), o.arraystretch && o.arraystretch < 1 && (D = new ze("mstyle", [D]), D.setAttribute("scriptlevel", "1")), D;
|
|
23358
23358
|
}, Qd = function(o, u) {
|
|
23359
23359
|
o.envName.includes("ed") || ps(o);
|
|
@@ -23373,30 +23373,30 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23373
23373
|
body: []
|
|
23374
23374
|
};
|
|
23375
23375
|
if (u[0] && u[0].type === "ordgroup") {
|
|
23376
|
-
let
|
|
23376
|
+
let ue = "";
|
|
23377
23377
|
for (let ce = 0; ce < u[0].body.length; ce++) {
|
|
23378
23378
|
const he = wt(u[0].body[ce], "textord");
|
|
23379
|
-
|
|
23379
|
+
ue += he.text;
|
|
23380
23380
|
}
|
|
23381
|
-
F = Number(
|
|
23381
|
+
F = Number(ue), N = F * 2;
|
|
23382
23382
|
}
|
|
23383
23383
|
const Q = !N;
|
|
23384
|
-
D.body.forEach(function(
|
|
23385
|
-
for (let ce = 1; ce <
|
|
23386
|
-
const he = wt(
|
|
23384
|
+
D.body.forEach(function(ue) {
|
|
23385
|
+
for (let ce = 1; ce < ue.length; ce += 2) {
|
|
23386
|
+
const he = wt(ue[ce], "styling");
|
|
23387
23387
|
wt(he.body[0], "ordgroup").body.unshift(q);
|
|
23388
23388
|
}
|
|
23389
23389
|
if (Q)
|
|
23390
|
-
N <
|
|
23390
|
+
N < ue.length && (N = ue.length);
|
|
23391
23391
|
else {
|
|
23392
|
-
const ce =
|
|
23392
|
+
const ce = ue.length / 2;
|
|
23393
23393
|
if (F < ce)
|
|
23394
|
-
throw new a("Too many math in a row: " + ("expected " + F + ", but got " + ce),
|
|
23394
|
+
throw new a("Too many math in a row: " + ("expected " + F + ", but got " + ce), ue[0]);
|
|
23395
23395
|
}
|
|
23396
23396
|
});
|
|
23397
|
-
for (let
|
|
23397
|
+
for (let ue = 0; ue < N; ++ue) {
|
|
23398
23398
|
let ce = "r", he = 0;
|
|
23399
|
-
|
|
23399
|
+
ue % 2 === 1 ? ce = "l" : ue > 0 && Q && (he = 1), c[ue] = {
|
|
23400
23400
|
type: "align",
|
|
23401
23401
|
align: ce,
|
|
23402
23402
|
pregap: he,
|
|
@@ -23683,12 +23683,12 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23683
23683
|
mode: c.mode,
|
|
23684
23684
|
envName: D,
|
|
23685
23685
|
parser: c
|
|
23686
|
-
},
|
|
23686
|
+
}, ue = F.handler(Q, N, q);
|
|
23687
23687
|
c.expect("\\end", !1);
|
|
23688
23688
|
const ce = c.nextToken, he = wt(c.parseFunction(), "environment");
|
|
23689
23689
|
if (he.name !== D)
|
|
23690
23690
|
throw new a("Mismatch: \\begin{" + D + "} matched by \\end{" + he.name + "}", ce);
|
|
23691
|
-
return
|
|
23691
|
+
return ue;
|
|
23692
23692
|
}
|
|
23693
23693
|
return {
|
|
23694
23694
|
type: "environment",
|
|
@@ -23816,10 +23816,10 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23816
23816
|
}
|
|
23817
23817
|
D = u.havingStyle(g);
|
|
23818
23818
|
const N = ht(o.denom, D, u);
|
|
23819
|
-
let q, Q,
|
|
23820
|
-
o.hasBarLine ? (o.barSize ? (Q = kt(o.barSize, u), q = Nr("frac-line", u, Q)) : q = Nr("frac-line", u), Q = q.height,
|
|
23819
|
+
let q, Q, ue;
|
|
23820
|
+
o.hasBarLine ? (o.barSize ? (Q = kt(o.barSize, u), q = Nr("frac-line", u, Q)) : q = Nr("frac-line", u), Q = q.height, ue = q.height) : (q = null, Q = 0, ue = u.fontMetrics().defaultRuleThickness);
|
|
23821
23821
|
let ce, he, Se;
|
|
23822
|
-
c.size === X.DISPLAY.size ? (ce = u.fontMetrics().num1, Q > 0 ? he = 3 *
|
|
23822
|
+
c.size === X.DISPLAY.size ? (ce = u.fontMetrics().num1, Q > 0 ? he = 3 * ue : he = 7 * ue, Se = u.fontMetrics().denom1) : (Q > 0 ? (ce = u.fontMetrics().num2, he = ue) : (ce = u.fontMetrics().num3, he = 3 * ue), Se = u.fontMetrics().denom2);
|
|
23823
23823
|
let Pe;
|
|
23824
23824
|
if (q) {
|
|
23825
23825
|
const Mt = u.fontMetrics().axisHeight;
|
|
@@ -23940,8 +23940,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23940
23940
|
throw new Error("Unrecognized genfrac command");
|
|
23941
23941
|
}
|
|
23942
23942
|
const Q = f === "\\cfrac";
|
|
23943
|
-
let
|
|
23944
|
-
return Q || f.startsWith("\\d") ?
|
|
23943
|
+
let ue = null;
|
|
23944
|
+
return Q || f.startsWith("\\d") ? ue = "display" : f.startsWith("\\t") && (ue = "text"), rf({
|
|
23945
23945
|
type: "genfrac",
|
|
23946
23946
|
mode: c.mode,
|
|
23947
23947
|
numer: g,
|
|
@@ -23951,7 +23951,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
23951
23951
|
leftDelim: N,
|
|
23952
23952
|
rightDelim: q,
|
|
23953
23953
|
barSize: null
|
|
23954
|
-
},
|
|
23954
|
+
}, ue);
|
|
23955
23955
|
},
|
|
23956
23956
|
htmlBuilder: H6,
|
|
23957
23957
|
mathmlBuilder: q6
|
|
@@ -24012,8 +24012,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24012
24012
|
parser: c
|
|
24013
24013
|
} = o;
|
|
24014
24014
|
const f = u[4], g = u[5], D = Be(u[0]), F = D.type === "atom" && D.family === "open" ? uf(D.text) : null, N = Be(u[1]), q = N.type === "atom" && N.family === "close" ? uf(N.text) : null, Q = wt(u[2], "size");
|
|
24015
|
-
let
|
|
24016
|
-
Q.isBlank ?
|
|
24015
|
+
let ue, ce = null;
|
|
24016
|
+
Q.isBlank ? ue = !0 : (ce = Q.value, ue = ce.number > 0);
|
|
24017
24017
|
let he = null, Se = u[3];
|
|
24018
24018
|
if (Se.type === "ordgroup") {
|
|
24019
24019
|
if (Se.body.length > 0) {
|
|
@@ -24028,7 +24028,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24028
24028
|
numer: f,
|
|
24029
24029
|
denom: g,
|
|
24030
24030
|
continued: !1,
|
|
24031
|
-
hasBarLine:
|
|
24031
|
+
hasBarLine: ue,
|
|
24032
24032
|
barSize: ce,
|
|
24033
24033
|
leftDelim: F,
|
|
24034
24034
|
rightDelim: q
|
|
@@ -24307,8 +24307,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24307
24307
|
break;
|
|
24308
24308
|
case "\\htmlData": {
|
|
24309
24309
|
const Q = D.split(",");
|
|
24310
|
-
for (let
|
|
24311
|
-
const ce = Q[
|
|
24310
|
+
for (let ue = 0; ue < Q.length; ue++) {
|
|
24311
|
+
const ce = Q[ue], he = ce.indexOf("=");
|
|
24312
24312
|
if (he < 0)
|
|
24313
24313
|
throw new a("\\htmlData key/value '" + ce + "' missing equals sign");
|
|
24314
24314
|
const Se = ce.slice(0, he), Pe = ce.slice(he + 1);
|
|
@@ -24407,9 +24407,9 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24407
24407
|
unit: "em"
|
|
24408
24408
|
}, N = "";
|
|
24409
24409
|
if (c[0]) {
|
|
24410
|
-
const
|
|
24411
|
-
for (let ce = 0; ce <
|
|
24412
|
-
const he =
|
|
24410
|
+
const ue = wt(c[0], "raw").string.split(",");
|
|
24411
|
+
for (let ce = 0; ce < ue.length; ce++) {
|
|
24412
|
+
const he = ue[ce].split("=");
|
|
24413
24413
|
if (he.length === 2) {
|
|
24414
24414
|
const Se = he[1].trim();
|
|
24415
24415
|
switch (he[0].trim()) {
|
|
@@ -24634,10 +24634,10 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24634
24634
|
kern: Math.max(f.fontMetrics().bigOpSpacing2, f.fontMetrics().bigOpSpacing4 - he.height)
|
|
24635
24635
|
};
|
|
24636
24636
|
}
|
|
24637
|
-
let
|
|
24637
|
+
let ue;
|
|
24638
24638
|
if (Q && q) {
|
|
24639
24639
|
const he = f.fontMetrics().bigOpSpacing5 + q.elem.height + q.elem.depth + q.kern + o.depth + F;
|
|
24640
|
-
|
|
24640
|
+
ue = Ct({
|
|
24641
24641
|
positionType: "bottom",
|
|
24642
24642
|
positionData: he,
|
|
24643
24643
|
children: [{
|
|
@@ -24667,7 +24667,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24667
24667
|
});
|
|
24668
24668
|
} else if (q) {
|
|
24669
24669
|
const he = o.height - F;
|
|
24670
|
-
|
|
24670
|
+
ue = Ct({
|
|
24671
24671
|
positionType: "top",
|
|
24672
24672
|
positionData: he,
|
|
24673
24673
|
children: [{
|
|
@@ -24687,7 +24687,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24687
24687
|
});
|
|
24688
24688
|
} else if (Q) {
|
|
24689
24689
|
const he = o.depth + F;
|
|
24690
|
-
|
|
24690
|
+
ue = Ct({
|
|
24691
24691
|
positionType: "bottom",
|
|
24692
24692
|
positionData: he,
|
|
24693
24693
|
children: [{
|
|
@@ -24707,7 +24707,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24707
24707
|
});
|
|
24708
24708
|
} else
|
|
24709
24709
|
return o;
|
|
24710
|
-
const ce = [
|
|
24710
|
+
const ce = [ue];
|
|
24711
24711
|
if (q && D !== 0 && !N) {
|
|
24712
24712
|
const he = Fe(["mspace"], [], f);
|
|
24713
24713
|
he.style.marginRight = ye(D), ce.unshift(he);
|
|
@@ -24747,8 +24747,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24747
24747
|
ce.push(ui(D.name[he], D.mode, u));
|
|
24748
24748
|
q = Fe(["mop"], ce, u);
|
|
24749
24749
|
}
|
|
24750
|
-
let Q = 0,
|
|
24751
|
-
return (q instanceof Tt || D.name === "\\oiint" || D.name === "\\oiiint") && !D.suppressBaseShift && (Q = (q.height - q.depth) / 2 - u.fontMetrics().axisHeight,
|
|
24750
|
+
let Q = 0, ue = 0;
|
|
24751
|
+
return (q instanceof Tt || D.name === "\\oiint" || D.name === "\\oiiint") && !D.suppressBaseShift && (Q = (q.height - q.depth) / 2 - u.fontMetrics().axisHeight, ue = q.italic || 0), g ? lf(q, c, f, u, F, ue, Q) : (Q && (q.style.position = "relative", q.style.top = ye(Q)), q);
|
|
24752
24752
|
}, ru = (o, u) => {
|
|
24753
24753
|
let c;
|
|
24754
24754
|
if (o.symbol)
|
|
@@ -24903,16 +24903,16 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
24903
24903
|
let F;
|
|
24904
24904
|
if (D.body.length > 0) {
|
|
24905
24905
|
const N = D.body.map((Q) => {
|
|
24906
|
-
const
|
|
24907
|
-
return typeof
|
|
24906
|
+
const ue = "text" in Q ? Q.text : void 0;
|
|
24907
|
+
return typeof ue == "string" ? {
|
|
24908
24908
|
type: "textord",
|
|
24909
24909
|
mode: Q.mode,
|
|
24910
|
-
text:
|
|
24910
|
+
text: ue
|
|
24911
24911
|
} : Q;
|
|
24912
24912
|
}), q = Ze(N, u.withFont("mathrm"), !0);
|
|
24913
24913
|
for (let Q = 0; Q < q.length; Q++) {
|
|
24914
|
-
const
|
|
24915
|
-
|
|
24914
|
+
const ue = q[Q];
|
|
24915
|
+
ue instanceof Tt && (ue.text = ue.text.replace(/\u2212/, "-").replace(/\u2217/, "*"));
|
|
24916
24916
|
}
|
|
24917
24917
|
F = Fe(["mop"], q, u);
|
|
24918
24918
|
} else
|
|
@@ -25215,8 +25215,8 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
25215
25215
|
if (F) {
|
|
25216
25216
|
let q = "";
|
|
25217
25217
|
for (let Q = 0; Q < F.body.length; ++Q) {
|
|
25218
|
-
const
|
|
25219
|
-
if (q = ss(
|
|
25218
|
+
const ue = F.body[Q];
|
|
25219
|
+
if (q = ss(ue).text, q === "t")
|
|
25220
25220
|
g = !0;
|
|
25221
25221
|
else if (q === "b")
|
|
25222
25222
|
D = !0;
|
|
@@ -25287,11 +25287,11 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
25287
25287
|
const N = c.height + c.depth + F + g, {
|
|
25288
25288
|
span: q,
|
|
25289
25289
|
ruleWidth: Q,
|
|
25290
|
-
advanceWidth:
|
|
25290
|
+
advanceWidth: ue
|
|
25291
25291
|
} = B6(N, u), ce = q.height - Q;
|
|
25292
25292
|
ce > c.height + c.depth + F && (F = (F + ce - c.height - c.depth) / 2);
|
|
25293
25293
|
const he = q.height - c.height - F - Q;
|
|
25294
|
-
c.style.paddingLeft = ye(
|
|
25294
|
+
c.style.paddingLeft = ye(ue);
|
|
25295
25295
|
const Se = Ct({
|
|
25296
25296
|
positionType: "firstBaseline",
|
|
25297
25297
|
children: [{
|
|
@@ -25391,11 +25391,11 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
25391
25391
|
} = o, F = ht(f, u);
|
|
25392
25392
|
let N, q;
|
|
25393
25393
|
const Q = u.fontMetrics();
|
|
25394
|
-
let
|
|
25394
|
+
let ue = 0, ce = 0;
|
|
25395
25395
|
const he = f && w(f);
|
|
25396
25396
|
if (g) {
|
|
25397
25397
|
const Pt = u.havingStyle(u.style.sup());
|
|
25398
|
-
N = ht(g, Pt, u), he || (
|
|
25398
|
+
N = ht(g, Pt, u), he || (ue = F.height - Pt.fontMetrics().supDrop * Pt.sizeMultiplier / u.sizeMultiplier);
|
|
25399
25399
|
}
|
|
25400
25400
|
if (D) {
|
|
25401
25401
|
const Pt = u.havingStyle(u.style.sub());
|
|
@@ -25411,12 +25411,12 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
25411
25411
|
}
|
|
25412
25412
|
let pt;
|
|
25413
25413
|
if (N && q) {
|
|
25414
|
-
|
|
25414
|
+
ue = Math.max(ue, Se, N.depth + 0.25 * Q.xHeight), ce = Math.max(ce, Q.sub2);
|
|
25415
25415
|
const g0 = 4 * Q.defaultRuleThickness;
|
|
25416
|
-
if (
|
|
25417
|
-
ce = g0 - (
|
|
25418
|
-
const D0 = 0.8 * Q.xHeight - (
|
|
25419
|
-
D0 > 0 && (
|
|
25416
|
+
if (ue - N.depth - (q.height - ce) < g0) {
|
|
25417
|
+
ce = g0 - (ue - N.depth) + q.height;
|
|
25418
|
+
const D0 = 0.8 * Q.xHeight - (ue - N.depth);
|
|
25419
|
+
D0 > 0 && (ue += D0, ce -= D0);
|
|
25420
25420
|
}
|
|
25421
25421
|
const E0 = [{
|
|
25422
25422
|
type: "elem",
|
|
@@ -25427,7 +25427,7 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
25427
25427
|
}, {
|
|
25428
25428
|
type: "elem",
|
|
25429
25429
|
elem: N,
|
|
25430
|
-
shift: -
|
|
25430
|
+
shift: -ue,
|
|
25431
25431
|
marginRight: Je
|
|
25432
25432
|
}];
|
|
25433
25433
|
pt = Ct({
|
|
@@ -25446,9 +25446,9 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
25446
25446
|
}]
|
|
25447
25447
|
});
|
|
25448
25448
|
else if (N)
|
|
25449
|
-
|
|
25449
|
+
ue = Math.max(ue, Se, N.depth + 0.25 * Q.xHeight), pt = Ct({
|
|
25450
25450
|
positionType: "shift",
|
|
25451
|
-
positionData: -
|
|
25451
|
+
positionData: -ue,
|
|
25452
25452
|
children: [{
|
|
25453
25453
|
type: "elem",
|
|
25454
25454
|
elem: N,
|
|
@@ -26095,14 +26095,14 @@ l0,-` + (u + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
26095
26095
|
};
|
|
26096
26096
|
};
|
|
26097
26097
|
u.macros.set("|", q(!1)), g.length && u.macros.set("\\|", q(!0));
|
|
26098
|
-
const Q = u.consumeArg().tokens,
|
|
26098
|
+
const Q = u.consumeArg().tokens, ue = u.expandTokens([
|
|
26099
26099
|
...D,
|
|
26100
26100
|
...Q,
|
|
26101
26101
|
...c
|
|
26102
26102
|
// reversed
|
|
26103
26103
|
]);
|
|
26104
26104
|
return u.macros.endGroup(), {
|
|
26105
|
-
tokens:
|
|
26105
|
+
tokens: ue.reverse(),
|
|
26106
26106
|
numArgs: 0
|
|
26107
26107
|
};
|
|
26108
26108
|
};
|
|
@@ -28795,7 +28795,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Re = j, ve = le), X =
|
|
|
28795
28795
|
Tt ? ge(t0, Tt) : (mt = t0, H(), mt = ""), it++;
|
|
28796
28796
|
}
|
|
28797
28797
|
}
|
|
28798
|
-
function
|
|
28798
|
+
function ie(Ie, Ge) {
|
|
28799
28799
|
return Ie.scope && typeof Ie.scope == "string" && ye.openNode(at.classNameAliases[Ie.scope] || Ie.scope), Ie.beginScope && (Ie.beginScope._wrap ? (ge(mt, at.classNameAliases[Ie.beginScope._wrap] || Ie.beginScope._wrap), mt = "") : Ie.beginScope._multi && (De(Ie.beginScope, Ge), mt = "")), Xe = Object.create(Ie, { parent: { value: Xe } }), Xe;
|
|
28800
28800
|
}
|
|
28801
28801
|
function de(Ie, Ge, it) {
|
|
@@ -28822,7 +28822,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Re = j, ve = le), X =
|
|
|
28822
28822
|
for (const t0 of Tt)
|
|
28823
28823
|
if (t0 && (t0(Ie, Et), Et.isMatchIgnored))
|
|
28824
28824
|
return Ae(Ge);
|
|
28825
|
-
return it.skip ? mt += Ge : (it.excludeBegin && (mt += Ge), ae(), !it.returnBegin && !it.excludeBegin && (mt = Ge)),
|
|
28825
|
+
return it.skip ? mt += Ge : (it.excludeBegin && (mt += Ge), ae(), !it.returnBegin && !it.excludeBegin && (mt = Ge)), ie(it, Ie), it.returnBegin ? 0 : Ge.length;
|
|
28826
28826
|
}
|
|
28827
28827
|
function Ke(Ie) {
|
|
28828
28828
|
const Ge = Ie[0], it = le.substring(Ie.index), Et = de(Xe, Ie, it);
|
|
@@ -28833,7 +28833,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Re = j, ve = le), X =
|
|
|
28833
28833
|
do
|
|
28834
28834
|
Xe.scope && ye.closeNode(), !Xe.skip && !Xe.subLanguage && (Mn += Xe.relevance), Xe = Xe.parent;
|
|
28835
28835
|
while (Xe !== Et.parent);
|
|
28836
|
-
return Et.starts &&
|
|
28836
|
+
return Et.starts && ie(Et.starts, Ie), Tt.returnEnd ? 0 : Ge.length;
|
|
28837
28837
|
}
|
|
28838
28838
|
function ot() {
|
|
28839
28839
|
const Ie = [];
|
|
@@ -29041,7 +29041,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Re = j, ve = le), X =
|
|
|
29041
29041
|
const le = G(j);
|
|
29042
29042
|
return le && !le.disableAutodetect;
|
|
29043
29043
|
}
|
|
29044
|
-
function
|
|
29044
|
+
function se(j) {
|
|
29045
29045
|
j["before:highlightBlock"] && !j["before:highlightElement"] && (j["before:highlightElement"] = (le) => {
|
|
29046
29046
|
j["before:highlightBlock"](
|
|
29047
29047
|
Object.assign({ block: le.el }, le)
|
|
@@ -29053,7 +29053,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Re = j, ve = le), X =
|
|
|
29053
29053
|
});
|
|
29054
29054
|
}
|
|
29055
29055
|
function ne(j) {
|
|
29056
|
-
|
|
29056
|
+
se(j), r.push(j);
|
|
29057
29057
|
}
|
|
29058
29058
|
function pe(j) {
|
|
29059
29059
|
const le = r.indexOf(j);
|
|
@@ -29936,7 +29936,7 @@ function Gv(e) {
|
|
|
29936
29936
|
label: "func.def",
|
|
29937
29937
|
contains: [$],
|
|
29938
29938
|
illegal: /%/
|
|
29939
|
-
},
|
|
29939
|
+
}, se = {
|
|
29940
29940
|
relevance: 0,
|
|
29941
29941
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
29942
29942
|
className: "variable.constant"
|
|
@@ -30148,7 +30148,7 @@ function Gv(e) {
|
|
|
30148
30148
|
contains: [$]
|
|
30149
30149
|
},
|
|
30150
30150
|
pe,
|
|
30151
|
-
|
|
30151
|
+
se,
|
|
30152
30152
|
W,
|
|
30153
30153
|
xe,
|
|
30154
30154
|
{
|
|
@@ -30591,7 +30591,7 @@ function Wv(e) {
|
|
|
30591
30591
|
label: "func.def",
|
|
30592
30592
|
contains: [$],
|
|
30593
30593
|
illegal: /%/
|
|
30594
|
-
},
|
|
30594
|
+
}, se = {
|
|
30595
30595
|
relevance: 0,
|
|
30596
30596
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
30597
30597
|
className: "variable.constant"
|
|
@@ -30803,7 +30803,7 @@ function Wv(e) {
|
|
|
30803
30803
|
contains: [$]
|
|
30804
30804
|
},
|
|
30805
30805
|
pe,
|
|
30806
|
-
|
|
30806
|
+
se,
|
|
30807
30807
|
W,
|
|
30808
30808
|
xe,
|
|
30809
30809
|
{
|
|
@@ -36280,7 +36280,7 @@ var g1 = { exports: {} };
|
|
|
36280
36280
|
if (s) for (var ae of s(te)) d.call(te, ae) && m(H, ae, te[ae]);
|
|
36281
36281
|
return H;
|
|
36282
36282
|
}, h = (H, te) => i(H, a(te)), b = (H, te, ae) => new Promise((ge, De) => {
|
|
36283
|
-
var
|
|
36283
|
+
var ie = (Te) => {
|
|
36284
36284
|
try {
|
|
36285
36285
|
Ae(ae.next(Te));
|
|
36286
36286
|
} catch (Ke) {
|
|
@@ -36292,7 +36292,7 @@ var g1 = { exports: {} };
|
|
|
36292
36292
|
} catch (Ke) {
|
|
36293
36293
|
De(Ke);
|
|
36294
36294
|
}
|
|
36295
|
-
}, Ae = (Te) => Te.done ? ge(Te.value) : Promise.resolve(Te.value).then(
|
|
36295
|
+
}, Ae = (Te) => Te.done ? ge(Te.value) : Promise.resolve(Te.value).then(ie, de);
|
|
36296
36296
|
Ae((ae = ae.apply(H, te)).next());
|
|
36297
36297
|
}), w = ((H) => (H[H.NONE = 0] = "NONE", H[H.LOADING = 1] = "LOADING", H[H.LOADED = 2] = "LOADED", H[H.ERROR = 3] = "ERROR", H))(w || {});
|
|
36298
36298
|
class A {
|
|
@@ -36315,8 +36315,8 @@ var g1 = { exports: {} };
|
|
|
36315
36315
|
const _ = "__RUNTIME_IMPORT__";
|
|
36316
36316
|
function M(H, te) {
|
|
36317
36317
|
var ae, ge;
|
|
36318
|
-
const De = globalThis,
|
|
36319
|
-
return (ge =
|
|
36318
|
+
const De = globalThis, ie = (ae = De[_]) != null ? ae : De[_] = {};
|
|
36319
|
+
return (ge = ie[H]) != null ? ge : ie[H] = te();
|
|
36320
36320
|
}
|
|
36321
36321
|
const T = M("cssCache", () => new A((H) => ({ url: H, status: w.NONE, el: null, error: null, reject: null })));
|
|
36322
36322
|
function C(H, te, ae) {
|
|
@@ -36329,16 +36329,16 @@ var g1 = { exports: {} };
|
|
|
36329
36329
|
}
|
|
36330
36330
|
function S(H) {
|
|
36331
36331
|
const te = T.getOrCreateItemByURL(H), { status: ae, error: ge } = te;
|
|
36332
|
-
return ae === w.LOADED ? Promise.resolve() : ae === w.ERROR ? Promise.reject(ge) : ae === w.LOADING ? new Promise((De,
|
|
36332
|
+
return ae === w.LOADED ? Promise.resolve() : ae === w.ERROR ? Promise.reject(ge) : ae === w.LOADING ? new Promise((De, ie) => {
|
|
36333
36333
|
const { el: de } = te;
|
|
36334
|
-
C(de, () => De(), (Ae) =>
|
|
36335
|
-
}) : (te.status = w.LOADING, new Promise((De,
|
|
36334
|
+
C(de, () => De(), (Ae) => ie(Ae.error));
|
|
36335
|
+
}) : (te.status = w.LOADING, new Promise((De, ie) => {
|
|
36336
36336
|
const de = document.createElement("link");
|
|
36337
36337
|
de.rel = "stylesheet", de.href = H, C(de, () => {
|
|
36338
36338
|
te.status = w.LOADED, De();
|
|
36339
36339
|
}, (Ae) => {
|
|
36340
36340
|
const Te = Ae.error || new Error(`Load css failed. href=${H}`);
|
|
36341
|
-
te.status = w.ERROR, te.error = Te,
|
|
36341
|
+
te.status = w.ERROR, te.error = Te, ie(Te);
|
|
36342
36342
|
}), te.el = de, de.setAttribute("data-runtime-import-type", "css"), document.head.appendChild(de);
|
|
36343
36343
|
}));
|
|
36344
36344
|
}
|
|
@@ -36348,24 +36348,24 @@ var g1 = { exports: {} };
|
|
|
36348
36348
|
const z = M("jsCache", () => new A((H) => ({ url: H, status: w.NONE, el: null, error: null, reject: null, exportThing: void 0 }))), $ = globalThis, { define: W } = $, { keys: G } = Object;
|
|
36349
36349
|
let fe = !1;
|
|
36350
36350
|
typeof W < "u" && !W.runtime_import && (console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."), fe = !0);
|
|
36351
|
-
const J = M("pendingItemMap", () => ({})),
|
|
36351
|
+
const J = M("pendingItemMap", () => ({})), se = function(...H) {
|
|
36352
36352
|
const te = H.pop(), { currentScript: ae } = document;
|
|
36353
36353
|
if (!ae) throw new Error("currentScript is null.");
|
|
36354
36354
|
const { src: ge } = ae, De = J[ge];
|
|
36355
36355
|
if (!De) throw new Error(`Can NOT find item, src=${ge}`);
|
|
36356
36356
|
J[ge] = null;
|
|
36357
36357
|
try {
|
|
36358
|
-
let
|
|
36359
|
-
typeof
|
|
36358
|
+
let ie = H[0] || [], de = null;
|
|
36359
|
+
typeof ie == "string" && (de = ie, ie = H[1] || []);
|
|
36360
36360
|
const Ae = De.exportThing = (() => {
|
|
36361
36361
|
let Te = !1;
|
|
36362
36362
|
const Ke = {};
|
|
36363
|
-
let ot = te(...
|
|
36363
|
+
let ot = te(...ie.map((yt) => yt === "exports" ? (Te = !0, Ke) : $[yt]));
|
|
36364
36364
|
return !ot && Te && (ot = Ke), ot;
|
|
36365
36365
|
})();
|
|
36366
36366
|
de && ($[de] = Ae), Ae && G(Ae).length === 1 && Ae.default && (De.exportThing = Ae.default, De.exportThing.default = Ae.default);
|
|
36367
|
-
} catch (
|
|
36368
|
-
De.status = w.ERROR,
|
|
36367
|
+
} catch (ie) {
|
|
36368
|
+
De.status = w.ERROR, ie instanceof Error && (De.error = ie), De.reject(ie);
|
|
36369
36369
|
}
|
|
36370
36370
|
}, ne = () => {
|
|
36371
36371
|
const { currentScript: H } = document;
|
|
@@ -36376,11 +36376,11 @@ var g1 = { exports: {} };
|
|
|
36376
36376
|
return !1;
|
|
36377
36377
|
};
|
|
36378
36378
|
["amd", "cmd"].forEach((H) => {
|
|
36379
|
-
Object.defineProperty(
|
|
36380
|
-
}),
|
|
36379
|
+
Object.defineProperty(se, H, { get: ne });
|
|
36380
|
+
}), se.runtime_import = !0;
|
|
36381
36381
|
function pe(H, te) {
|
|
36382
36382
|
if (fe) throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");
|
|
36383
|
-
$.define || ($.define =
|
|
36383
|
+
$.define || ($.define = se), J[H] = te;
|
|
36384
36384
|
}
|
|
36385
36385
|
function ke(H) {
|
|
36386
36386
|
const te = /legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(H), ae = window;
|
|
@@ -36392,7 +36392,7 @@ var g1 = { exports: {} };
|
|
|
36392
36392
|
function xe(H, te, ae) {
|
|
36393
36393
|
H.status = w.LOADING, ke(te);
|
|
36394
36394
|
const { umd: ge, crossOrigin: De } = ae;
|
|
36395
|
-
return new Promise((
|
|
36395
|
+
return new Promise((ie, de) => {
|
|
36396
36396
|
const Ae = document.createElement("script");
|
|
36397
36397
|
if (Ae.src = te, Ae.async = !1, Ae.crossOrigin = De, ge) {
|
|
36398
36398
|
Ae.setAttribute("data-runtime-import-type", "javascript-umd"), H.reject = de;
|
|
@@ -36400,7 +36400,7 @@ var g1 = { exports: {} };
|
|
|
36400
36400
|
pe(Te, H);
|
|
36401
36401
|
} else Ae.setAttribute("data-runtime-import-type", "javascript");
|
|
36402
36402
|
C(Ae, () => {
|
|
36403
|
-
H.status = w.LOADED, H.el = null,
|
|
36403
|
+
H.status = w.LOADED, H.el = null, ie(H.exportThing);
|
|
36404
36404
|
}, (Te) => {
|
|
36405
36405
|
const Ke = Te.error || new Error(`Load javascript failed. src=${te}`);
|
|
36406
36406
|
H.status = w.ERROR, H.error = Ke, H.el = null, de(Ke);
|
|
@@ -36408,9 +36408,9 @@ var g1 = { exports: {} };
|
|
|
36408
36408
|
});
|
|
36409
36409
|
}
|
|
36410
36410
|
function j(H, te) {
|
|
36411
|
-
const ae = z.getOrCreateItemByURL(H), { status: ge, exportThing: De, error:
|
|
36411
|
+
const ae = z.getOrCreateItemByURL(H), { status: ge, exportThing: De, error: ie } = ae;
|
|
36412
36412
|
if (ge === w.LOADED) return Promise.resolve(De);
|
|
36413
|
-
if (ge === w.ERROR) return Promise.reject(
|
|
36413
|
+
if (ge === w.ERROR) return Promise.reject(ie);
|
|
36414
36414
|
if (ge === w.LOADING) {
|
|
36415
36415
|
const { el: de } = ae;
|
|
36416
36416
|
return new Promise((Ae, Te) => {
|
|
@@ -36422,9 +36422,9 @@ var g1 = { exports: {} };
|
|
|
36422
36422
|
function le(H, te) {
|
|
36423
36423
|
let ae = Promise.resolve();
|
|
36424
36424
|
const ge = H.length - 1, { umd: De } = te;
|
|
36425
|
-
return H.forEach((
|
|
36425
|
+
return H.forEach((ie, de) => {
|
|
36426
36426
|
const Ae = De && de === ge;
|
|
36427
|
-
ae = ae.then(() => j(
|
|
36427
|
+
ae = ae.then(() => j(ie, h(p({}, te), { umd: Ae })));
|
|
36428
36428
|
}), ae;
|
|
36429
36429
|
}
|
|
36430
36430
|
function X(H) {
|
|
@@ -36434,8 +36434,8 @@ var g1 = { exports: {} };
|
|
|
36434
36434
|
const { urls: Ae } = ae;
|
|
36435
36435
|
yield B(Ae);
|
|
36436
36436
|
}
|
|
36437
|
-
const { dependencies: ge = [], entry: De, umd:
|
|
36438
|
-
if ((De ? ge.concat([De]) : ge).length) return yield le(ge.concat([De]), { umd:
|
|
36437
|
+
const { dependencies: ge = [], entry: De, umd: ie = !0, crossOrigin: de = "anonymous" } = te;
|
|
36438
|
+
if ((De ? ge.concat([De]) : ge).length) return yield le(ge.concat([De]), { umd: ie, crossOrigin: de });
|
|
36439
36439
|
});
|
|
36440
36440
|
}
|
|
36441
36441
|
function ve(H, te) {
|
|
@@ -37009,15 +37009,15 @@ const Cw = /* @__PURE__ */ ut({
|
|
|
37009
37009
|
var J;
|
|
37010
37010
|
return (J = e.content) == null ? void 0 : J.completed;
|
|
37011
37011
|
}), C = me(() => {
|
|
37012
|
-
var
|
|
37012
|
+
var se, ne;
|
|
37013
37013
|
if (T.value) {
|
|
37014
37014
|
const pe = l.value ? `(用时${s.value}秒)` : "";
|
|
37015
|
-
return ((
|
|
37015
|
+
return ((se = e.content) == null ? void 0 : se.title) ?? "思考完成" + pe;
|
|
37016
37016
|
}
|
|
37017
37017
|
return ((ne = e.content) == null ? void 0 : ne.title) ?? "正在思考......";
|
|
37018
37018
|
}), S = me(() => {
|
|
37019
|
-
var J,
|
|
37020
|
-
return M.value ? ((J = n.content) == null ? void 0 : J.displayedValue) ?? "" : ((
|
|
37019
|
+
var J, se;
|
|
37020
|
+
return M.value ? ((J = n.content) == null ? void 0 : J.displayedValue) ?? "" : ((se = e.content) == null ? void 0 : se.content) ?? "";
|
|
37021
37021
|
}), B = me(() => ({
|
|
37022
37022
|
"f-chat-bubble-thinking": !0,
|
|
37023
37023
|
"is-pending": !T.value,
|
|
@@ -37052,9 +37052,9 @@ const Cw = /* @__PURE__ */ ut({
|
|
|
37052
37052
|
}), tt(h, async (J) => {
|
|
37053
37053
|
if (J) {
|
|
37054
37054
|
await $t();
|
|
37055
|
-
const
|
|
37056
|
-
if (!
|
|
37057
|
-
await $t(), A.value =
|
|
37055
|
+
const se = b.value;
|
|
37056
|
+
if (!se) return;
|
|
37057
|
+
await $t(), A.value = se.scrollHeight > se.clientHeight, A.value ? (se.scrollTop = se.scrollHeight, _.value = !0) : _.value = !1;
|
|
37058
37058
|
}
|
|
37059
37059
|
}), Yr(() => {
|
|
37060
37060
|
p();
|
|
@@ -37193,87 +37193,87 @@ function Mw(e) {
|
|
|
37193
37193
|
}
|
|
37194
37194
|
function Bw(e, t, n, r) {
|
|
37195
37195
|
const i = be(e.offsetX || 0), a = be(e.offsetY || 0), s = be(-1), l = be(-1), d = be(-1), m = be(-1), p = be(e.placement), h = be(0), b = be(0), w = be(0), A = me(() => document.documentElement.scrollLeft), _ = me(() => document.documentElement.scrollTop), { hostLeft: M, hostTop: T, hostWidth: C, hostHeight: S, hostBottom: B } = r;
|
|
37196
|
-
tt(() => e.offsetX, (
|
|
37197
|
-
i.value =
|
|
37198
|
-
}), tt(() => e.offsetY, (
|
|
37199
|
-
a.value =
|
|
37196
|
+
tt(() => e.offsetX, (ie) => {
|
|
37197
|
+
i.value = ie;
|
|
37198
|
+
}), tt(() => e.offsetY, (ie) => {
|
|
37199
|
+
a.value = ie;
|
|
37200
37200
|
});
|
|
37201
37201
|
const z = me(() => {
|
|
37202
|
-
const
|
|
37202
|
+
const ie = {
|
|
37203
37203
|
left: `${b.value}px`,
|
|
37204
37204
|
top: `${w.value}px`,
|
|
37205
37205
|
transform: `translate(${i.value}px, ${a.value}px)`
|
|
37206
37206
|
};
|
|
37207
|
-
return e.zIndex !== -1 && (
|
|
37207
|
+
return e.zIndex !== -1 && (ie["z-index"] = e.zIndex), e.fitContent ? e.keepWidthWithReference && n.value && s.value >= n.value.getBoundingClientRect().width && (ie.width = `${s.value}px`) : s.value !== -1 && (ie.width = `${s.value}px`), e.minWidth !== -1 && (ie.minWidth = `${e.minWidth}px`), e.customStyles && Object.assign(ie, e.customStyles), l.value > 0 && (ie.maxHeight = l.value + "px"), ie;
|
|
37208
37208
|
}), $ = me(() => ({
|
|
37209
37209
|
left: `${h.value}px`,
|
|
37210
37210
|
transform: `translateX(${e.arrowOffsetX}px)`
|
|
37211
37211
|
}));
|
|
37212
|
-
function W(
|
|
37213
|
-
if (
|
|
37214
|
-
const de =
|
|
37212
|
+
function W(ie) {
|
|
37213
|
+
if (ie && e.keepWidthWithReference) {
|
|
37214
|
+
const de = ie.getBoundingClientRect();
|
|
37215
37215
|
s.value = Math.max(e.minWidth, de.width);
|
|
37216
37216
|
}
|
|
37217
37217
|
}
|
|
37218
|
-
function G(
|
|
37219
|
-
const Ae = C.value -
|
|
37218
|
+
function G(ie, de) {
|
|
37219
|
+
const Ae = C.value - ie.width - 4;
|
|
37220
37220
|
return Ae > 0 ? Ae : de;
|
|
37221
37221
|
}
|
|
37222
|
-
function fe(
|
|
37223
|
-
const Ae = S.value -
|
|
37222
|
+
function fe(ie, de) {
|
|
37223
|
+
const Ae = S.value - ie.height - 12;
|
|
37224
37224
|
return Ae > 0 ? Ae : de;
|
|
37225
37225
|
}
|
|
37226
|
-
function J(
|
|
37227
|
-
const Te = h.value, Ke = de.left - M.value + de.width / 2 + A.value, ot = de.top - T.value - (
|
|
37226
|
+
function J(ie, de, Ae) {
|
|
37227
|
+
const Te = h.value, Ke = de.left - M.value + de.width / 2 + A.value, ot = de.top - T.value - (ie.height + Ae.height) + _.value;
|
|
37228
37228
|
return { popoverLeft: Ke, popoverTop: ot, arrowLeft: Te };
|
|
37229
37229
|
}
|
|
37230
|
-
function
|
|
37231
|
-
const Te = de.top - T.value + (de.height + Ae.height) + _.value, Ke = fe(
|
|
37230
|
+
function se(ie, de, Ae) {
|
|
37231
|
+
const Te = de.top - T.value + (de.height + Ae.height) + _.value, Ke = fe(ie, Te);
|
|
37232
37232
|
return Math.min(Te, Ke);
|
|
37233
37233
|
}
|
|
37234
|
-
function ne(
|
|
37235
|
-
const Ae = G(de,
|
|
37236
|
-
return { popoverLeft: Math.min(
|
|
37234
|
+
function ne(ie, de) {
|
|
37235
|
+
const Ae = G(de, ie), Te = ie <= Ae ? h.value : ie - Ae;
|
|
37236
|
+
return { popoverLeft: Math.min(ie, Ae), arrowLeft: Te, maxHeight: 0 };
|
|
37237
37237
|
}
|
|
37238
|
-
function pe(
|
|
37239
|
-
const Ae = G(de,
|
|
37240
|
-
return { popoverLeft:
|
|
37238
|
+
function pe(ie, de) {
|
|
37239
|
+
const Ae = G(de, ie), Te = ie <= Ae ? h.value : ie - Ae;
|
|
37240
|
+
return { popoverLeft: ie, arrowLeft: Te, maxHeight: 0 };
|
|
37241
37241
|
}
|
|
37242
|
-
function ke(
|
|
37243
|
-
const Te = de.left - M.value + A.value, { arrowLeft: Ke, popoverLeft: ot } = pe(Te,
|
|
37242
|
+
function ke(ie, de, Ae) {
|
|
37243
|
+
const Te = de.left - M.value + A.value, { arrowLeft: Ke, popoverLeft: ot } = pe(Te, ie), { popoverTop: yt } = J(ie, de, Ae);
|
|
37244
37244
|
return { popoverLeft: ot, popoverTop: yt, arrowLeft: Ke, maxHeight: 0 };
|
|
37245
37245
|
}
|
|
37246
|
-
function xe(
|
|
37247
|
-
const Te = de.left - M.value + de.width / 2 - (Ae.width / 2 - (
|
|
37246
|
+
function xe(ie, de, Ae) {
|
|
37247
|
+
const Te = de.left - M.value + de.width / 2 - (Ae.width / 2 - (ie.left - M.value)) + A.value, { arrowLeft: Ke, popoverLeft: ot } = ne(Te, ie), yt = se(ie, de, Ae);
|
|
37248
37248
|
return { popoverLeft: ot, popoverTop: yt, arrowLeft: Ke, maxHeight: 0 };
|
|
37249
37249
|
}
|
|
37250
|
-
function j(
|
|
37251
|
-
const Te = de.left - M.value + A.value, { arrowLeft: Ke, popoverLeft: ot } = ne(Te,
|
|
37250
|
+
function j(ie, de, Ae) {
|
|
37251
|
+
const Te = de.left - M.value + A.value, { arrowLeft: Ke, popoverLeft: ot } = ne(Te, ie), yt = se(ie, de, Ae);
|
|
37252
37252
|
return { popoverLeft: ot, popoverTop: yt, arrowLeft: Ke, maxHeight: 0 };
|
|
37253
37253
|
}
|
|
37254
|
-
function le(
|
|
37255
|
-
const Te = de.right - M.value -
|
|
37256
|
-
let st =
|
|
37257
|
-
return e.autoFlip && B.value - (de.top + de.height + Ae.height) <
|
|
37254
|
+
function le(ie, de, Ae) {
|
|
37255
|
+
const Te = de.right - M.value - ie.width + A.value, Ke = e.leftBoundary ? e.leftBoundary.getBoundingClientRect().left - M.value + 4 : 4, ot = Math.max(4, Ke), yt = Math.max(Te, ot), ct = yt - Te, at = ie.width - Ae.width - 20 - ct;
|
|
37256
|
+
let st = se(ie, de, Ae);
|
|
37257
|
+
return e.autoFlip && B.value - (de.top + de.height + Ae.height) < ie.height && (st = de.top - T.value - (ie.height + Ae.height) + _.value), { popoverLeft: yt, popoverTop: st, arrowLeft: at, maxHeight: 0 };
|
|
37258
37258
|
}
|
|
37259
|
-
function X(
|
|
37259
|
+
function X(ie, de, Ae) {
|
|
37260
37260
|
const Te = de.left - M.value;
|
|
37261
37261
|
let Ke = 0, ot = 0, yt = 0, ct = 0, at = "bottom-left";
|
|
37262
|
-
window.innerWidth - Te >
|
|
37262
|
+
window.innerWidth - Te > ie.width ? Ke = Te + A.value : (Ke = de.right - ie.width + A.value, yt = ie.width - Ae.width - 20);
|
|
37263
37263
|
let st = 0;
|
|
37264
37264
|
if (e.limitContentBySpace) {
|
|
37265
37265
|
const ye = { topHeight: de.top - T.value - Ae.height - 8, bottomHeight: B.value - de.bottom - Ae.height - 8 };
|
|
37266
|
-
st = Math.max(ye.topHeight, ye.bottomHeight),
|
|
37266
|
+
st = Math.max(ye.topHeight, ye.bottomHeight), ie.height > st && (ct = st, n.value.classList.add("popover-limitmax"));
|
|
37267
37267
|
}
|
|
37268
|
-
const c0 = ct ? Math.floor(ct) :
|
|
37268
|
+
const c0 = ct ? Math.floor(ct) : ie.height, Xe = de.top - T.value + (de.height + Ae.height);
|
|
37269
37269
|
return B.value - Xe > c0 ? ot = Xe + _.value : (ot = de.top - c0 - Ae.height + _.value, B.value - Xe > de.top ? (ot = Xe + _.value, c0 > de.top && (ot = B.value - c0)) : (ot = ot < 0 ? 0 : ot, at = "top")), n.value.classList.add("popover-" + at, "bs-popover-" + at), { popoverLeft: Ke < 0 ? 5 : Ke, popoverTop: ot, arrowLeft: yt, maxHeight: ct };
|
|
37270
37270
|
}
|
|
37271
|
-
function ve(
|
|
37271
|
+
function ve(ie, de, Ae) {
|
|
37272
37272
|
const Te = de.left + de.width, Ke = 0;
|
|
37273
|
-
let ot = 0, yt =
|
|
37273
|
+
let ot = 0, yt = ie.height;
|
|
37274
37274
|
if (e.limitContentBySpace) {
|
|
37275
37275
|
const kt = S.value - 16 - Math.abs(a.value);
|
|
37276
|
-
|
|
37276
|
+
ie.height > kt ? (ot = kt, yt = kt, n.value.classList.add("popover-limitmax")) : n.value.classList.remove("popover-limitmax");
|
|
37277
37277
|
}
|
|
37278
37278
|
const ct = Math.max(de.top - (yt / 2 - de.height / 2), T.value);
|
|
37279
37279
|
let at = T.value + S.value - yt - a.value;
|
|
@@ -37281,19 +37281,19 @@ function Bw(e, t, n, r) {
|
|
|
37281
37281
|
const st = Math.min(ct, at);
|
|
37282
37282
|
return { popoverLeft: Te, popoverTop: st, arrowLeft: Ke, maxHeight: ot };
|
|
37283
37283
|
}
|
|
37284
|
-
function Re(
|
|
37284
|
+
function Re(ie, de, Ae) {
|
|
37285
37285
|
const Te = de.left + de.width, Ke = Math.max(de.top - de.height, T.value);
|
|
37286
|
-
let ot = T.value + S.value -
|
|
37286
|
+
let ot = T.value + S.value - ie.height;
|
|
37287
37287
|
ot < 0 && (ot = Ke);
|
|
37288
37288
|
const yt = Math.min(Ke, ot);
|
|
37289
37289
|
return { popoverLeft: Te, popoverTop: yt, arrowLeft: 0, maxHeight: 0 };
|
|
37290
37290
|
}
|
|
37291
|
-
function je(
|
|
37292
|
-
const Te = de.left - M.value + de.width / 2 -
|
|
37291
|
+
function je(ie, de, Ae) {
|
|
37292
|
+
const Te = de.left - M.value + de.width / 2 - ie.width / 2 + A.value, Ke = de.top - T.value - (ie.height + Ae.height) + _.value, ot = ie.width / 2 - Ae.width / 2;
|
|
37293
37293
|
return { popoverLeft: Te, popoverTop: Ke, arrowLeft: ot, maxHeight: 0 };
|
|
37294
37294
|
}
|
|
37295
|
-
function H(
|
|
37296
|
-
const Te = de.left - M.value + de.width / 2 -
|
|
37295
|
+
function H(ie, de, Ae) {
|
|
37296
|
+
const Te = de.left - M.value + de.width / 2 - ie.width / 2 + A.value, Ke = se(ie, de, Ae), ot = ie.width / 2 - Ae.width / 2;
|
|
37297
37297
|
return { popoverLeft: Te, popoverTop: Ke, arrowLeft: ot, maxHeight: 0 };
|
|
37298
37298
|
}
|
|
37299
37299
|
const te = /* @__PURE__ */ new Map([
|
|
@@ -37308,10 +37308,10 @@ function Bw(e, t, n, r) {
|
|
|
37308
37308
|
["right-top", Re],
|
|
37309
37309
|
["auto", X]
|
|
37310
37310
|
]);
|
|
37311
|
-
function ae(
|
|
37311
|
+
function ae(ie) {
|
|
37312
37312
|
var ot;
|
|
37313
|
-
e.keepWidthWithReference && W(
|
|
37314
|
-
const de =
|
|
37313
|
+
e.keepWidthWithReference && W(ie);
|
|
37314
|
+
const de = ie.getBoundingClientRect();
|
|
37315
37315
|
d.value = de.top, m.value = de.left;
|
|
37316
37316
|
const Ae = t.value ? t.value.getBoundingClientRect() : { height: 4, width: 4 }, Te = (ot = n.value) == null ? void 0 : ot.getBoundingClientRect();
|
|
37317
37317
|
s.value = Te.width;
|
|
@@ -37321,14 +37321,15 @@ function Bw(e, t, n, r) {
|
|
|
37321
37321
|
h.value = yt, b.value = ct, w.value = at, l.value = st || -1;
|
|
37322
37322
|
}
|
|
37323
37323
|
}
|
|
37324
|
-
function ge(
|
|
37325
|
-
if (
|
|
37326
|
-
const de =
|
|
37327
|
-
(de.left !== m.value || de.top !== d.value) && ae(
|
|
37324
|
+
function ge(ie) {
|
|
37325
|
+
if (ie) {
|
|
37326
|
+
const de = ie.getBoundingClientRect();
|
|
37327
|
+
(de.left !== m.value || de.top !== d.value) && ae(ie);
|
|
37328
37328
|
}
|
|
37329
37329
|
}
|
|
37330
37330
|
function De() {
|
|
37331
|
-
|
|
37331
|
+
var ie;
|
|
37332
|
+
p.value = e.placement, h.value = 0, b.value = 0, w.value = 0, s.value = -1, l.value = -1, (ie = n.value) == null || ie.classList.remove("popover-limitmax");
|
|
37332
37333
|
}
|
|
37333
37334
|
return {
|
|
37334
37335
|
arrowStyle: $,
|
|
@@ -37450,11 +37451,11 @@ const Xa = /* @__PURE__ */ ut({
|
|
|
37450
37451
|
onResize: B
|
|
37451
37452
|
} = Iw(e, t, i, a, h, r, S, p), z = me(() => {
|
|
37452
37453
|
let J = b.value;
|
|
37453
|
-
const
|
|
37454
|
+
const se = `popover in popover-${J}`, ne = `bs-popover-${J}`, pe = {
|
|
37454
37455
|
"popover-fitcontent": e.fitContent,
|
|
37455
37456
|
fade: !0
|
|
37456
37457
|
};
|
|
37457
|
-
pe[
|
|
37458
|
+
pe[se] = !0, pe[ne] = !0, e.theme === "dark" && (pe["popover-theme-dark"] = !0), pe[`popover-size-${e.size}`] = !0;
|
|
37458
37459
|
const ke = (e.class || "").split(" ");
|
|
37459
37460
|
return e.isSimpleTips && ke.unshift("popover-tips"), ke.reduce((xe, j) => (xe[j] = !0, xe), pe), pe;
|
|
37460
37461
|
}), $ = me(() => ({
|
|
@@ -37484,11 +37485,11 @@ const Xa = /* @__PURE__ */ ut({
|
|
|
37484
37485
|
...A.value,
|
|
37485
37486
|
...fe.value
|
|
37486
37487
|
},
|
|
37487
|
-
onMousedown: (
|
|
37488
|
-
e.enableDrag ||
|
|
37488
|
+
onMousedown: (se) => {
|
|
37489
|
+
e.enableDrag || se.stopPropagation();
|
|
37489
37490
|
},
|
|
37490
|
-
onClick: (
|
|
37491
|
-
|
|
37491
|
+
onClick: (se) => {
|
|
37492
|
+
se.stopPropagation();
|
|
37492
37493
|
}
|
|
37493
37494
|
}, [G.value && x("div", {
|
|
37494
37495
|
ref: n,
|
|
@@ -38182,7 +38183,7 @@ const Ks = /* @__PURE__ */ ut({
|
|
|
38182
38183
|
onBatchPreview: e.attachmentRowClickOpensPreview !== !1 ? p : void 0,
|
|
38183
38184
|
role: e.role
|
|
38184
38185
|
}, null);
|
|
38185
|
-
},
|
|
38186
|
+
}, se = () => {
|
|
38186
38187
|
var ne, pe, ke, xe, j, le;
|
|
38187
38188
|
return x("div", {
|
|
38188
38189
|
class: `f-chat-bubble-content ${e.placement}`
|
|
@@ -38210,7 +38211,7 @@ const Ks = /* @__PURE__ */ ut({
|
|
|
38210
38211
|
ref: n
|
|
38211
38212
|
}, [x("div", {
|
|
38212
38213
|
class: `f-chat-bubble-wrapper ${e.placement}`
|
|
38213
|
-
}, [e.placement === "start" ? x(L0, null, [a.value && S(),
|
|
38214
|
+
}, [e.placement === "start" ? x(L0, null, [a.value && S(), se()]) : x(L0, null, [se(), a.value && S()])])]);
|
|
38214
38215
|
}
|
|
38215
38216
|
}), Gw = {
|
|
38216
38217
|
/** 组件自定义样式类名 */
|
|
@@ -38773,32 +38774,32 @@ function Qw(e, t) {
|
|
|
38773
38774
|
function B(W) {
|
|
38774
38775
|
if ((A === "left" || A === "right") && M) {
|
|
38775
38776
|
const { left: G } = M.getBoundingClientRect(), { width: fe } = _.getBoundingClientRect(), J = W.clientX - G;
|
|
38776
|
-
let
|
|
38777
|
-
|
|
38777
|
+
let se = A === "left" ? (fe || 0) + (J - i.value) : (fe || 0) - (J - i.value);
|
|
38778
|
+
se = e.minWidth > 0 ? Math.max(e.minWidth, se) : se;
|
|
38778
38779
|
const ne = C();
|
|
38779
|
-
ne != null && ne > 0 && (
|
|
38780
|
+
ne != null && ne > 0 && (se = ne > se ? se : ne), n.value = se;
|
|
38780
38781
|
}
|
|
38781
38782
|
if ((A === "top" || A === "bottom") && M) {
|
|
38782
38783
|
const { top: G } = M.getBoundingClientRect(), { height: fe } = _.getBoundingClientRect(), J = W.clientY - G;
|
|
38783
|
-
let
|
|
38784
|
-
|
|
38784
|
+
let se = A === "top" ? (fe || 0) + (J - d.value) : (fe || 0) - (J - d.value);
|
|
38785
|
+
se = e.minHeight > 0 ? Math.max(e.minHeight, se) : se;
|
|
38785
38786
|
const ne = S();
|
|
38786
|
-
ne != null && ne > 0 && (
|
|
38787
|
+
ne != null && ne > 0 && (se = ne > se ? se : ne), r.value = se;
|
|
38787
38788
|
}
|
|
38788
38789
|
a.value = 0, m.value = 0, i.value = -1, d.value = -1, s.value = !1, l.value = !1, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", A = "", _ = null, M = null;
|
|
38789
38790
|
}
|
|
38790
38791
|
function z(W, G, fe) {
|
|
38791
|
-
if (A = G, _ = fe, s.value = !0, M = W.composedPath().find((
|
|
38792
|
-
const { left:
|
|
38793
|
-
a.value = W.clientX -
|
|
38792
|
+
if (A = G, _ = fe, s.value = !0, M = W.composedPath().find((se) => se.className.split(" ")[0] === "f-splitter"), M) {
|
|
38793
|
+
const { left: se } = M.getBoundingClientRect();
|
|
38794
|
+
a.value = W.clientX - se, i.value = W.clientX - se;
|
|
38794
38795
|
const ne = C();
|
|
38795
38796
|
T = (pe) => p(pe, ne, e.minWidth, A), document.addEventListener("mousemove", T), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
38796
38797
|
}
|
|
38797
38798
|
}
|
|
38798
38799
|
function $(W, G, fe) {
|
|
38799
|
-
if (A = G, _ = fe, l.value = !0, M = W.composedPath().find((
|
|
38800
|
-
const { top:
|
|
38801
|
-
m.value = W.clientY -
|
|
38800
|
+
if (A = G, _ = fe, l.value = !0, M = W.composedPath().find((se) => se.className.split(" ")[0] === "f-splitter"), M) {
|
|
38801
|
+
const { top: se } = M.getBoundingClientRect();
|
|
38802
|
+
m.value = W.clientY - se, d.value = W.clientY - se;
|
|
38802
38803
|
const ne = S();
|
|
38803
38804
|
T = (pe) => h(pe, ne, e.minHeight, A), document.addEventListener("mousemove", T), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
38804
38805
|
}
|
|
@@ -40196,8 +40197,8 @@ const Fx = {
|
|
|
40196
40197
|
B.touches[0].clientY - B.touches[1].clientY
|
|
40197
40198
|
) / m, $ = r;
|
|
40198
40199
|
r = p * (1 + (z - 1));
|
|
40199
|
-
const W = (B.touches[0].clientX + B.touches[1].clientX) / 2, G = (B.touches[0].clientY + B.touches[1].clientY) / 2, fe = n.getBoundingClientRect(), J = (W - fe.left) / $,
|
|
40200
|
-
i -= J * (r - $), a -=
|
|
40200
|
+
const W = (B.touches[0].clientX + B.touches[1].clientX) / 2, G = (B.touches[0].clientY + B.touches[1].clientY) / 2, fe = n.getBoundingClientRect(), J = (W - fe.left) / $, se = (G - fe.top) / $;
|
|
40201
|
+
i -= J * (r - $), a -= se * (r - $), h();
|
|
40201
40202
|
}
|
|
40202
40203
|
}, A = () => {
|
|
40203
40204
|
s = !1;
|
|
@@ -41057,7 +41058,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
41057
41058
|
});
|
|
41058
41059
|
}
|
|
41059
41060
|
le = le || j.width - W.margin * 2, X = X || j.height - W.margin * 2;
|
|
41060
|
-
var ge = G.zoomedHd || G.original, De = Sh(ge) ? le : ge.naturalWidth || le,
|
|
41061
|
+
var ge = G.zoomedHd || G.original, De = Sh(ge) ? le : ge.naturalWidth || le, ie = Sh(ge) ? X : ge.naturalHeight || X, de = ge.getBoundingClientRect(), Ae = de.top, Te = de.left, Ke = de.width, ot = de.height, yt = Math.min(Math.max(Ke, De), le) / Ke, ct = Math.min(Math.max(ot, ie), X) / ot, at = Math.min(yt, ct), st = (-Te + (le - Ke) / 2 + W.margin + j.left) / at, c0 = (-Ae + (X - ot) / 2 + W.margin + j.top) / at, Xe = "scale(" + at + ") translate3d(" + st + "px, " + c0 + "px, 0)";
|
|
41061
41062
|
G.zoomed.style.transform = Xe, G.zoomedHd && (G.zoomedHd.style.transform = Xe);
|
|
41062
41063
|
};
|
|
41063
41064
|
return new r(function(xe) {
|
|
@@ -41595,7 +41596,7 @@ const wa = {
|
|
|
41595
41596
|
</${ve}>
|
|
41596
41597
|
`;
|
|
41597
41598
|
}
|
|
41598
|
-
let z, $, W, G, fe = "", J = "",
|
|
41599
|
+
let z, $, W, G, fe = "", J = "", se = "";
|
|
41599
41600
|
const { open: ne, tagContainer: pe, tagHeader: ke } = m(h[b]), xe = [["class", `${$e}-code`]];
|
|
41600
41601
|
ne && xe.push(["open", ""]);
|
|
41601
41602
|
const j = {
|
|
@@ -41628,7 +41629,7 @@ const wa = {
|
|
|
41628
41629
|
${G}
|
|
41629
41630
|
role="presentation">
|
|
41630
41631
|
${n(h, X, w, A, _)}
|
|
41631
|
-
</div>`,
|
|
41632
|
+
</div>`, se += `
|
|
41632
41633
|
<input
|
|
41633
41634
|
type="radio"
|
|
41634
41635
|
name="${$e}-codetab-lang-${t.editorId}-${b}"
|
|
@@ -41644,7 +41645,7 @@ const wa = {
|
|
|
41644
41645
|
<ul class="${$e}-codetab-label" role="tablist">${fe}</ul>
|
|
41645
41646
|
</div>
|
|
41646
41647
|
<div class="${$e}-code-action">
|
|
41647
|
-
<span class="${$e}-codetab-lang">${
|
|
41648
|
+
<span class="${$e}-codetab-lang">${se}</span>
|
|
41648
41649
|
<span class="${$e}-copy-button" data-tips="${M}"${C ? " data-is-icon=true" : ""}>${T}</span>
|
|
41649
41650
|
${t.extraTools instanceof Function ? t.extraTools({ lang: h[b].info.trim() }) : t.extraTools || ""}
|
|
41650
41651
|
${pe === "details" ? S : ""}
|
|
@@ -41964,7 +41965,7 @@ const wa = {
|
|
|
41964
41965
|
}), G(), G = Ix(xe, {
|
|
41965
41966
|
customIcon: m.value
|
|
41966
41967
|
});
|
|
41967
|
-
},
|
|
41968
|
+
}, se = () => {
|
|
41968
41969
|
qn.emit(i, hx, W.value), e.onHtmlChanged(W.value), e.onGetCatalog(b.value), qn.emit(i, Sc, b.value), $t(() => {
|
|
41969
41970
|
M().then(J), C();
|
|
41970
41971
|
});
|
|
@@ -41992,8 +41993,8 @@ const wa = {
|
|
|
41992
41993
|
});
|
|
41993
41994
|
}
|
|
41994
41995
|
), tt([W, T], () => {
|
|
41995
|
-
|
|
41996
|
-
}), f0(
|
|
41996
|
+
se();
|
|
41997
|
+
}), f0(se), f0(() => {
|
|
41997
41998
|
qn.on(i, {
|
|
41998
41999
|
name: mx,
|
|
41999
42000
|
callback() {
|
|
@@ -42889,7 +42890,7 @@ function t6() {
|
|
|
42889
42890
|
return "";
|
|
42890
42891
|
ve !== !1 && (ve = ve || i, X = ve.process(X));
|
|
42891
42892
|
}
|
|
42892
|
-
return X =
|
|
42893
|
+
return X = se(X), X;
|
|
42893
42894
|
}
|
|
42894
42895
|
var h = /</g, b = />/g, w = /"/g, A = /"/g, _ = /&#([a-zA-Z0-9]*);?/gim, M = /:?/gim, T = /&newline;?/gim, C = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, S = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, B = /u\s*r\s*l\s*\(.*/gi;
|
|
42895
42896
|
function z(j) {
|
|
@@ -42914,7 +42915,7 @@ function t6() {
|
|
|
42914
42915
|
function J(j) {
|
|
42915
42916
|
return j = $(j), j = W(j), j = G(j), j = fe(j), j;
|
|
42916
42917
|
}
|
|
42917
|
-
function
|
|
42918
|
+
function se(j) {
|
|
42918
42919
|
return j = z(j), j = m(j), j;
|
|
42919
42920
|
}
|
|
42920
42921
|
function ne() {
|
|
@@ -42972,7 +42973,7 @@ function t6() {
|
|
|
42972
42973
|
return ve === 127 ? !1 : ve <= 31 ? ve === 10 || ve === 13 : !0;
|
|
42973
42974
|
}), le.join("");
|
|
42974
42975
|
}
|
|
42975
|
-
return i0.whiteList = r(), i0.getDefaultWhiteList = r, i0.onTag = a, i0.onIgnoreTag = s, i0.onTagAttr = l, i0.onIgnoreTagAttr = d, i0.safeAttrValue = p, i0.escapeHtml = m, i0.escapeQuote = z, i0.unescapeQuote = $, i0.escapeHtmlEntities = W, i0.escapeDangerHtml5Entities = G, i0.clearNonPrintableCharacter = fe, i0.friendlyAttrValue = J, i0.escapeAttrValue =
|
|
42976
|
+
return i0.whiteList = r(), i0.getDefaultWhiteList = r, i0.onTag = a, i0.onIgnoreTag = s, i0.onTagAttr = l, i0.onIgnoreTagAttr = d, i0.safeAttrValue = p, i0.escapeHtml = m, i0.escapeQuote = z, i0.unescapeQuote = $, i0.escapeHtmlEntities = W, i0.escapeDangerHtml5Entities = G, i0.clearNonPrintableCharacter = fe, i0.friendlyAttrValue = J, i0.escapeAttrValue = se, i0.onIgnoreTagStripAll = ne, i0.StripTagBody = pe, i0.stripCommentTag = ke, i0.stripBlankChar = xe, i0.attributeWrapSign = '"', i0.cssFilter = i, i0.getDefaultCSSWhiteList = t, i0;
|
|
42976
42977
|
}
|
|
42977
42978
|
var qs = {}, $h;
|
|
42978
42979
|
function n6() {
|
|
@@ -43144,24 +43145,24 @@ function PA() {
|
|
|
43144
43145
|
), M = W.onIgnoreTag);
|
|
43145
43146
|
var G = r(
|
|
43146
43147
|
h,
|
|
43147
|
-
function(fe, J,
|
|
43148
|
+
function(fe, J, se, ne, pe) {
|
|
43148
43149
|
var ke = {
|
|
43149
43150
|
sourcePosition: fe,
|
|
43150
43151
|
position: J,
|
|
43151
43152
|
isClosing: pe,
|
|
43152
|
-
isWhite: Object.prototype.hasOwnProperty.call(A,
|
|
43153
|
-
}, xe = _(
|
|
43153
|
+
isWhite: Object.prototype.hasOwnProperty.call(A, se)
|
|
43154
|
+
}, xe = _(se, ne, ke);
|
|
43154
43155
|
if (!s(xe)) return xe;
|
|
43155
43156
|
if (ke.isWhite) {
|
|
43156
43157
|
if (ke.isClosing)
|
|
43157
|
-
return "</" +
|
|
43158
|
-
var j = l(ne), le = A[
|
|
43159
|
-
var je = a.indexOf(le, ve) !== -1, H = T(
|
|
43160
|
-
return s(H) ? je ? (Re = S(
|
|
43158
|
+
return "</" + se + ">";
|
|
43159
|
+
var j = l(ne), le = A[se], X = i(j.html, function(ve, Re) {
|
|
43160
|
+
var je = a.indexOf(le, ve) !== -1, H = T(se, ve, Re, je);
|
|
43161
|
+
return s(H) ? je ? (Re = S(se, ve, Re, $), Re ? ve + "=" + z + Re + z : ve) : (H = C(se, ve, Re, je), s(H) ? void 0 : H) : H;
|
|
43161
43162
|
});
|
|
43162
|
-
return ne = "<" +
|
|
43163
|
+
return ne = "<" + se, X && (ne += " " + X), j.closing && (ne += " /"), ne += ">", ne;
|
|
43163
43164
|
} else
|
|
43164
|
-
return xe = M(
|
|
43165
|
+
return xe = M(se, ne, ke), s(xe) ? B(ne) : xe;
|
|
43165
43166
|
},
|
|
43166
43167
|
B
|
|
43167
43168
|
);
|
|
@@ -43290,15 +43291,15 @@ const ao = /* @__PURE__ */ ut({
|
|
|
43290
43291
|
const ae = () => {
|
|
43291
43292
|
if (je) return;
|
|
43292
43293
|
if (je = !0, H && (window.clearTimeout(H), H = null), te && (window.clearTimeout(te), te = null), b.value = !0, pe(j), a.value) {
|
|
43293
|
-
const
|
|
43294
|
+
const ie = Date.now() - le, de = Math.max(0, ve - ie);
|
|
43294
43295
|
setTimeout(() => {
|
|
43295
43296
|
i.value = !0;
|
|
43296
43297
|
}, de);
|
|
43297
43298
|
} else
|
|
43298
43299
|
i.value = !0;
|
|
43299
43300
|
const De = () => {
|
|
43300
|
-
var
|
|
43301
|
-
return (
|
|
43301
|
+
var ie;
|
|
43302
|
+
return (ie = e.onIframeLoad) == null ? void 0 : ie.call(e);
|
|
43302
43303
|
};
|
|
43303
43304
|
De(), window.setTimeout(De, 0), window.setTimeout(De, 120);
|
|
43304
43305
|
}, ge = () => {
|
|
@@ -43316,7 +43317,7 @@ const ao = /* @__PURE__ */ ut({
|
|
|
43316
43317
|
var j;
|
|
43317
43318
|
return (j = e.previewConfig) == null ? void 0 : j.contentMap;
|
|
43318
43319
|
}], () => {
|
|
43319
|
-
ne(), l.value && $t(() =>
|
|
43320
|
+
ne(), l.value && $t(() => se());
|
|
43320
43321
|
}, {
|
|
43321
43322
|
flush: "post"
|
|
43322
43323
|
}), tt(() => {
|
|
@@ -43380,7 +43381,7 @@ const ao = /* @__PURE__ */ ut({
|
|
|
43380
43381
|
X.classList.toggle("f-chat-preview-scrollbar-visible", j);
|
|
43381
43382
|
});
|
|
43382
43383
|
}
|
|
43383
|
-
function
|
|
43384
|
+
function se() {
|
|
43384
43385
|
const j = fe();
|
|
43385
43386
|
G = j, j.forEach((le) => {
|
|
43386
43387
|
le.addEventListener("scroll", z, {
|
|
@@ -44968,11 +44969,11 @@ const iE = {
|
|
|
44968
44969
|
const J = document.createRange();
|
|
44969
44970
|
J.setStart(n.value, 0), J.setEnd(S.endContainer, S.endOffset);
|
|
44970
44971
|
const {
|
|
44971
|
-
top:
|
|
44972
|
+
top: se,
|
|
44972
44973
|
right: ne
|
|
44973
44974
|
} = J.getBoundingClientRect(), pe = h();
|
|
44974
44975
|
a.value = {
|
|
44975
|
-
top:
|
|
44976
|
+
top: se - pe - 5,
|
|
44976
44977
|
left: ne + 5,
|
|
44977
44978
|
height: pe
|
|
44978
44979
|
}, s.value === -1 && (s.value = 0), i.value = !0;
|
|
@@ -46289,11 +46290,11 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46289
46290
|
else if (De === "multi_select")
|
|
46290
46291
|
te[ge.id] = ge.default_value ? JSON.parse(ge.default_value) : [];
|
|
46291
46292
|
else if (De === "form") {
|
|
46292
|
-
const
|
|
46293
|
+
const ie = {};
|
|
46293
46294
|
if (Array.isArray(ge.fields))
|
|
46294
46295
|
for (const de of ge.fields)
|
|
46295
|
-
|
|
46296
|
-
te[ge.id] =
|
|
46296
|
+
ie[de.name] = de.default_value ?? "";
|
|
46297
|
+
te[ge.id] = ie;
|
|
46297
46298
|
} else te[ge.id] = ge.default_value ?? "";
|
|
46298
46299
|
ae[ge.id] = {
|
|
46299
46300
|
active: !1,
|
|
@@ -46315,7 +46316,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46315
46316
|
};
|
|
46316
46317
|
for (const ge of H) {
|
|
46317
46318
|
te[ge.id] = ge.answer;
|
|
46318
|
-
const De = e.content.questions.find((
|
|
46319
|
+
const De = e.content.questions.find((ie) => ie.id === ge.id);
|
|
46319
46320
|
De && oa(De.ui_type) === "select" && typeof ge.answer == "string" && !(De.options ?? []).some((Ae) => Ae.label === ge.answer) && ge.answer !== "" && (ae[ge.id] = {
|
|
46320
46321
|
active: !0,
|
|
46321
46322
|
text: ge.answer
|
|
@@ -46350,8 +46351,8 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46350
46351
|
if (te === "text" && (typeof ae != "string" || ae.trim() === "") || te === "select" && (typeof ae != "string" || ae.trim() === "" || ae === qr && (((De = (ge = i.value[H.id]) == null ? void 0 : ge.text) == null ? void 0 : De.trim()) ?? "") === "") || te === "confirm" && typeof ae != "boolean" || te === "multi_select" && (!Array.isArray(ae) || ae.length === 0))
|
|
46351
46352
|
return !1;
|
|
46352
46353
|
if (te === "form") {
|
|
46353
|
-
const
|
|
46354
|
-
for (const Ae of
|
|
46354
|
+
const ie = H.fields ?? [], de = ae;
|
|
46355
|
+
for (const Ae of ie)
|
|
46355
46356
|
if (Ae.required) {
|
|
46356
46357
|
const Te = de[Ae.name];
|
|
46357
46358
|
if (typeof Te != "string" || Te.trim() === "") return !1;
|
|
@@ -46403,9 +46404,9 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46403
46404
|
if (!S.value) return;
|
|
46404
46405
|
const H = [];
|
|
46405
46406
|
for (const De of e.content.questions) {
|
|
46406
|
-
const
|
|
46407
|
+
const ie = oa(De.ui_type);
|
|
46407
46408
|
let de = r.value[De.id];
|
|
46408
|
-
|
|
46409
|
+
ie === "select" && de === qr && (de = ((ae = (te = i.value[De.id]) == null ? void 0 : te.text) == null ? void 0 : ae.trim()) ?? ""), ie === "number" && (de = Number(de)), H.push({
|
|
46409
46410
|
id: De.id,
|
|
46410
46411
|
answer: de
|
|
46411
46412
|
});
|
|
@@ -46423,8 +46424,8 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46423
46424
|
onInput: (ge) => ae(ge.target.value)
|
|
46424
46425
|
}, null)]);
|
|
46425
46426
|
}
|
|
46426
|
-
function
|
|
46427
|
-
const
|
|
46427
|
+
function se(H, te, ae, ge, De) {
|
|
46428
|
+
const ie = (Te) => {
|
|
46428
46429
|
let Ke = Number(H) || 0;
|
|
46429
46430
|
Ke += Te, ge !== void 0 && (Ke = Math.max(ge, Ke)), De !== void 0 && (Ke = Math.min(De, Ke)), ae(String(Ke));
|
|
46430
46431
|
}, de = De !== void 0 && Number(H || 0) >= De, Ae = ge !== void 0 && Number(H || 0) <= ge;
|
|
@@ -46444,14 +46445,14 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46444
46445
|
type: "button",
|
|
46445
46446
|
class: "f-hitl-num-btn",
|
|
46446
46447
|
disabled: te || de,
|
|
46447
|
-
onClick: () =>
|
|
46448
|
+
onClick: () => ie(1)
|
|
46448
46449
|
}, [x("span", {
|
|
46449
46450
|
class: "fx-icon fx-icon-foldup"
|
|
46450
46451
|
}, null)]), x("button", {
|
|
46451
46452
|
type: "button",
|
|
46452
46453
|
class: "f-hitl-num-btn",
|
|
46453
46454
|
disabled: te || Ae,
|
|
46454
|
-
onClick: () =>
|
|
46455
|
+
onClick: () => ie(-1)
|
|
46455
46456
|
}, [x("span", {
|
|
46456
46457
|
class: "fx-icon fx-icon-expanddown"
|
|
46457
46458
|
}, null)])])]);
|
|
@@ -46486,18 +46487,18 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46486
46487
|
}, [H.label]), te]);
|
|
46487
46488
|
}
|
|
46488
46489
|
function ke(H, te, ae) {
|
|
46489
|
-
const ge = r.value[H.id] ?? "", De = r.value[H.id] ?? [],
|
|
46490
|
+
const ge = r.value[H.id] ?? "", De = r.value[H.id] ?? [], ie = i.value[H.id] ?? {
|
|
46490
46491
|
active: !1,
|
|
46491
46492
|
text: ""
|
|
46492
|
-
}, de = ae === "single", Ae = de && ge === qr ||
|
|
46493
|
+
}, de = ae === "single", Ae = de && ge === qr || ie.active, Te = H.allow_other && Ae, Ke = (at) => de ? ge === at.label && !ie.active : De.includes(at.label), ot = (at) => () => {
|
|
46493
46494
|
a.value || (de ? W(H, at.label) : G(H, at.label));
|
|
46494
46495
|
}, yt = () => {
|
|
46495
46496
|
if (!a.value)
|
|
46496
46497
|
if (de)
|
|
46497
46498
|
W(H, qr);
|
|
46498
46499
|
else {
|
|
46499
|
-
const at =
|
|
46500
|
-
|
|
46500
|
+
const at = ie.text;
|
|
46501
|
+
ie.active ? (B(H.id, De.filter((st) => st !== at)), i.value = {
|
|
46501
46502
|
...i.value,
|
|
46502
46503
|
[H.id]: {
|
|
46503
46504
|
active: !1,
|
|
@@ -46507,9 +46508,9 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46507
46508
|
...i.value,
|
|
46508
46509
|
[H.id]: {
|
|
46509
46510
|
active: !0,
|
|
46510
|
-
text:
|
|
46511
|
+
text: ie.text
|
|
46511
46512
|
}
|
|
46512
|
-
},
|
|
46513
|
+
}, ie.text && !De.includes(ie.text) && B(H.id, [...De, ie.text]));
|
|
46513
46514
|
}
|
|
46514
46515
|
}, ct = (at) => {
|
|
46515
46516
|
const st = at.target.value;
|
|
@@ -46519,7 +46520,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46519
46520
|
active: !0,
|
|
46520
46521
|
text: st
|
|
46521
46522
|
}
|
|
46522
|
-
}, de ? B(H.id, qr) : B(H.id, [...De.filter((c0) => c0 !==
|
|
46523
|
+
}, de ? B(H.id, qr) : B(H.id, [...De.filter((c0) => c0 !== ie.text), st]);
|
|
46523
46524
|
};
|
|
46524
46525
|
return x("div", {
|
|
46525
46526
|
key: H.id
|
|
@@ -46542,7 +46543,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46542
46543
|
}, null) : null])]) : null]), Te ? x("input", {
|
|
46543
46544
|
class: "f-hitl-input f-hitl-input--other",
|
|
46544
46545
|
type: "text",
|
|
46545
|
-
value:
|
|
46546
|
+
value: ie.text,
|
|
46546
46547
|
placeholder: "请输入自定义内容",
|
|
46547
46548
|
disabled: a.value,
|
|
46548
46549
|
onInput: ct
|
|
@@ -46559,8 +46560,8 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46559
46560
|
const De = te[ge.name] ?? "";
|
|
46560
46561
|
return ge.type === "select" ? pe(ge, x("div", {
|
|
46561
46562
|
class: "f-hitl-select-group"
|
|
46562
|
-
}, [(ge.options ?? []).map((
|
|
46563
|
-
const de = typeof
|
|
46563
|
+
}, [(ge.options ?? []).map((ie) => {
|
|
46564
|
+
const de = typeof ie == "string" ? ie : ie.label ?? "";
|
|
46564
46565
|
return x("button", {
|
|
46565
46566
|
key: de,
|
|
46566
46567
|
type: "button",
|
|
@@ -46570,13 +46571,13 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46570
46571
|
disabled: a.value,
|
|
46571
46572
|
onClick: () => z(H.id, ge.name, de)
|
|
46572
46573
|
}, [de]);
|
|
46573
|
-
})])) : ge.type === "number" ? pe(ge,
|
|
46574
|
+
})])) : ge.type === "number" ? pe(ge, se(De, a.value, (ie) => z(H.id, ge.name, ie), ge.min, ge.max)) : ge.type === "date" ? pe(ge, J(De, a.value, (ie) => z(H.id, ge.name, ie))) : pe(ge, x("input", {
|
|
46574
46575
|
class: "f-hitl-input",
|
|
46575
46576
|
type: "text",
|
|
46576
46577
|
value: De,
|
|
46577
46578
|
placeholder: ge.default_value ?? "请输入",
|
|
46578
46579
|
disabled: a.value,
|
|
46579
|
-
onInput: (
|
|
46580
|
+
onInput: (ie) => z(H.id, ge.name, ie.target.value)
|
|
46580
46581
|
}, null));
|
|
46581
46582
|
})])]);
|
|
46582
46583
|
}
|
|
@@ -46655,7 +46656,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46655
46656
|
return x("div", {
|
|
46656
46657
|
class: "f-hitl-field",
|
|
46657
46658
|
key: H.id
|
|
46658
|
-
}, [
|
|
46659
|
+
}, [se(ae, a.value, (ge) => B(H.id, ge), H.min, H.max)]);
|
|
46659
46660
|
}
|
|
46660
46661
|
return x("div", {
|
|
46661
46662
|
class: "f-hitl-field f-hitl-field--unsupported",
|
|
@@ -46665,10 +46666,10 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46665
46666
|
}, [xt("暂不支持 ui_type「"), String(H.ui_type), xt("」,请升级前端。")])]);
|
|
46666
46667
|
}
|
|
46667
46668
|
function le(H) {
|
|
46668
|
-
const te = oa(H.ui_type), ae = (De,
|
|
46669
|
+
const te = oa(H.ui_type), ae = (De, ie, de) => x("input", {
|
|
46669
46670
|
class: "f-hitl-input",
|
|
46670
46671
|
type: De,
|
|
46671
|
-
value:
|
|
46672
|
+
value: ie,
|
|
46672
46673
|
readonly: !0,
|
|
46673
46674
|
min: de == null ? void 0 : de.min,
|
|
46674
46675
|
max: de == null ? void 0 : de.max
|
|
@@ -46681,12 +46682,12 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46681
46682
|
}, [ae("text", De)]);
|
|
46682
46683
|
}
|
|
46683
46684
|
if (te === "multi_select") {
|
|
46684
|
-
const De = r.value[H.id] ?? [],
|
|
46685
|
+
const De = r.value[H.id] ?? [], ie = Array.isArray(H.options) ? H.options : [], de = new Set(ie.map((Te) => Te.label)), Ae = De.filter((Te) => !de.has(Te));
|
|
46685
46686
|
return x("div", {
|
|
46686
46687
|
key: H.id
|
|
46687
46688
|
}, [x("div", {
|
|
46688
46689
|
class: "f-hitl-option-list"
|
|
46689
|
-
}, [
|
|
46690
|
+
}, [ie.filter((Te) => De.includes(Te.label)).map((Te) => x("div", {
|
|
46690
46691
|
class: "f-hitl-opt-row",
|
|
46691
46692
|
key: Te.label
|
|
46692
46693
|
}, [x("div", {
|
|
@@ -46702,10 +46703,10 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46702
46703
|
}, [x("span", null, [Te])])]))])]);
|
|
46703
46704
|
}
|
|
46704
46705
|
if (te === "select") {
|
|
46705
|
-
const De = r.value[H.id] ?? "",
|
|
46706
|
+
const De = r.value[H.id] ?? "", ie = i.value[H.id] ?? {
|
|
46706
46707
|
active: !1,
|
|
46707
46708
|
text: ""
|
|
46708
|
-
}, de = Array.isArray(H.options) ? H.options : [], Ae = De === qr ||
|
|
46709
|
+
}, de = Array.isArray(H.options) ? H.options : [], Ae = De === qr || ie.active;
|
|
46709
46710
|
return x("div", {
|
|
46710
46711
|
key: H.id
|
|
46711
46712
|
}, [x("div", {
|
|
@@ -46714,7 +46715,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46714
46715
|
class: "f-hitl-opt-row"
|
|
46715
46716
|
}, [x("div", {
|
|
46716
46717
|
class: "f-hitl-opt-row__label"
|
|
46717
|
-
}, [x("span", null, [
|
|
46718
|
+
}, [x("span", null, [ie.text || "其他"])])]) : de.filter((Te) => Te.label === De).map((Te) => x("div", {
|
|
46718
46719
|
class: "f-hitl-opt-row",
|
|
46719
46720
|
key: Te.label
|
|
46720
46721
|
}, [x("div", {
|
|
@@ -46744,13 +46745,13 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46744
46745
|
class: "f-hitl-submitted-value"
|
|
46745
46746
|
}, [n4(r.value[H.id])])]);
|
|
46746
46747
|
if (te === "form") {
|
|
46747
|
-
const De = r.value[H.id] ?? {},
|
|
46748
|
+
const De = r.value[H.id] ?? {}, ie = H.fields ?? [];
|
|
46748
46749
|
return x("div", {
|
|
46749
46750
|
class: "f-hitl-field",
|
|
46750
46751
|
key: H.id
|
|
46751
46752
|
}, [x("div", {
|
|
46752
46753
|
class: "f-hitl-form-group"
|
|
46753
|
-
}, [
|
|
46754
|
+
}, [ie.map((de) => {
|
|
46754
46755
|
const Ae = De[de.name] ?? "";
|
|
46755
46756
|
let Te;
|
|
46756
46757
|
return de.type === "number" ? Te = ae("number", Ae, {
|
|
@@ -46843,7 +46844,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46843
46844
|
if (!H) return null;
|
|
46844
46845
|
const te = e.pinned ? "f-hitl-card--pinned" : "", ae = e.pinned && e.pinnedWidth ? {
|
|
46845
46846
|
width: e.pinnedWidth
|
|
46846
|
-
} : void 0, ge = e.pinnedInputHeight ?? 0, De = e.pinnedBottom ?? 36,
|
|
46847
|
+
} : void 0, ge = e.pinnedInputHeight ?? 0, De = e.pinnedBottom ?? 36, ie = () => x(L0, null, [x("div", {
|
|
46847
46848
|
class: "f-hitl-card__header"
|
|
46848
46849
|
}, [X(H), ve()]), x("div", {
|
|
46849
46850
|
class: ["f-hitl-card__body", {
|
|
@@ -46872,7 +46873,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46872
46873
|
...ae,
|
|
46873
46874
|
marginBottom: `-${ge}px`
|
|
46874
46875
|
}
|
|
46875
|
-
}, [
|
|
46876
|
+
}, [ie()])]);
|
|
46876
46877
|
if (e.teleportTo) {
|
|
46877
46878
|
const Te = {
|
|
46878
46879
|
...ae,
|
|
@@ -46880,7 +46881,7 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46880
46881
|
}, Ke = x("div", {
|
|
46881
46882
|
class: ["f-hitl-card", te],
|
|
46882
46883
|
style: Te
|
|
46883
|
-
}, [
|
|
46884
|
+
}, [ie()]);
|
|
46884
46885
|
return x(L0, null, [de, x(Gi, {
|
|
46885
46886
|
to: e.teleportTo
|
|
46886
46887
|
}, DE(Ke) ? Ke : {
|
|
@@ -46890,13 +46891,13 @@ const qc = /* @__PURE__ */ ut({
|
|
|
46890
46891
|
const Ae = x("div", {
|
|
46891
46892
|
class: ["f-hitl-card", te],
|
|
46892
46893
|
style: ae
|
|
46893
|
-
}, [
|
|
46894
|
+
}, [ie()]);
|
|
46894
46895
|
return x(L0, null, [de, Ae]);
|
|
46895
46896
|
}
|
|
46896
46897
|
return x("div", {
|
|
46897
46898
|
class: ["f-hitl-card", te],
|
|
46898
46899
|
style: ae
|
|
46899
|
-
}, [
|
|
46900
|
+
}, [ie()]);
|
|
46900
46901
|
}
|
|
46901
46902
|
return () => {
|
|
46902
46903
|
var H;
|