@squirrel-cloud/ui-vue 0.2.28 → 0.2.29
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.
|
@@ -20,12 +20,12 @@ function Ft(u, e) {
|
|
|
20
20
|
], -1)
|
|
21
21
|
]));
|
|
22
22
|
}
|
|
23
|
-
const St = /* @__PURE__ */ O(Et, [["render", Ft]]),
|
|
23
|
+
const St = /* @__PURE__ */ O(Et, [["render", Ft]]), Bt = {}, zt = {
|
|
24
24
|
class: "sq-icon",
|
|
25
25
|
"data-icon": "arrow-right"
|
|
26
26
|
};
|
|
27
27
|
function Mt(u, e) {
|
|
28
|
-
return v(), F("span",
|
|
28
|
+
return v(), F("span", zt, e[0] || (e[0] = [
|
|
29
29
|
C("svg", {
|
|
30
30
|
viewBox: "0 0 48 48",
|
|
31
31
|
version: "1.1",
|
|
@@ -36,7 +36,7 @@ function Mt(u, e) {
|
|
|
36
36
|
], -1)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
const Tt = /* @__PURE__ */ O(
|
|
39
|
+
const Tt = /* @__PURE__ */ O(Bt, [["render", Mt]]), qt = {}, Lt = {
|
|
40
40
|
class: "sq-icon",
|
|
41
41
|
"data-icon": "caret-up"
|
|
42
42
|
};
|
|
@@ -148,7 +148,7 @@ function en(u, e) {
|
|
|
148
148
|
], -1)
|
|
149
149
|
]));
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const B0 = /* @__PURE__ */ O(Kt, [["render", en]]), tn = {}, nn = {
|
|
152
152
|
class: "sq-icon",
|
|
153
153
|
"data-icon": "ellipsis"
|
|
154
154
|
};
|
|
@@ -209,7 +209,7 @@ function hn(u, e) {
|
|
|
209
209
|
], -1)
|
|
210
210
|
]));
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const z0 = /* @__PURE__ */ O(fn, [["render", hn]]), pn = {}, bn = {
|
|
213
213
|
class: "sq-icon",
|
|
214
214
|
"data-icon": "jump-to"
|
|
215
215
|
};
|
|
@@ -276,12 +276,12 @@ function Fn(u, e) {
|
|
|
276
276
|
C22.66,27.38,23.22,27.9,23.9,27.9z"></path></svg>`, 1)
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
|
-
const Sn = /* @__PURE__ */ O(En, [["render", Fn]]),
|
|
279
|
+
const Sn = /* @__PURE__ */ O(En, [["render", Fn]]), Bn = {}, zn = {
|
|
280
280
|
class: "sq-icon",
|
|
281
281
|
"data-icon": "warning-filled"
|
|
282
282
|
};
|
|
283
283
|
function Mn(u, e) {
|
|
284
|
-
return v(), F("span",
|
|
284
|
+
return v(), F("span", zn, e[0] || (e[0] = [
|
|
285
285
|
C("svg", {
|
|
286
286
|
viewBox: "0 0 48 48",
|
|
287
287
|
version: "1.1",
|
|
@@ -293,7 +293,7 @@ function Mn(u, e) {
|
|
|
293
293
|
], -1)
|
|
294
294
|
]));
|
|
295
295
|
}
|
|
296
|
-
const M0 = /* @__PURE__ */ O(
|
|
296
|
+
const M0 = /* @__PURE__ */ O(Bn, [["render", Mn]]), Yi = /* @__PURE__ */ I({
|
|
297
297
|
__name: "alert",
|
|
298
298
|
props: {
|
|
299
299
|
type: { default: "info" },
|
|
@@ -311,13 +311,13 @@ const M0 = /* @__PURE__ */ O(zn, [["render", Mn]]), Yi = /* @__PURE__ */ I({
|
|
|
311
311
|
switch (e.type) {
|
|
312
312
|
case "primary":
|
|
313
313
|
case "info":
|
|
314
|
-
return
|
|
314
|
+
return z0;
|
|
315
315
|
case "success":
|
|
316
316
|
return S0;
|
|
317
317
|
case "warn":
|
|
318
318
|
return M0;
|
|
319
319
|
case "error":
|
|
320
|
-
return
|
|
320
|
+
return B0;
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
return (r, c) => (v(), R(q(Gu), {
|
|
@@ -998,7 +998,7 @@ const gr = /[.?*+^$[\]\\(){}|-]/g;
|
|
|
998
998
|
function kr(u) {
|
|
999
999
|
return u.replace(gr, "\\$&");
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function z(u) {
|
|
1002
1002
|
switch (u) {
|
|
1003
1003
|
case 9:
|
|
1004
1004
|
case 32:
|
|
@@ -1085,7 +1085,7 @@ const yr = { mdurl: Un, ucmicro: Gn }, Cr = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1085
1085
|
has: ar,
|
|
1086
1086
|
isMdAsciiPunct: Nu,
|
|
1087
1087
|
isPunctChar: $u,
|
|
1088
|
-
isSpace:
|
|
1088
|
+
isSpace: z,
|
|
1089
1089
|
isString: je,
|
|
1090
1090
|
isValidEntityCode: He,
|
|
1091
1091
|
isWhiteSpace: Ou,
|
|
@@ -1415,11 +1415,11 @@ function Sr(u) {
|
|
|
1415
1415
|
e = u.src.replace(Ar, `
|
|
1416
1416
|
`), e = e.replace(Fr, "�"), u.src = e;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Br(u) {
|
|
1419
1419
|
let e;
|
|
1420
1420
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function zr(u) {
|
|
1423
1423
|
const e = u.tokens;
|
|
1424
1424
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1425
1425
|
const r = e[t];
|
|
@@ -1598,8 +1598,8 @@ function Zr(u) {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
const ge = [
|
|
1600
1600
|
["normalize", Sr],
|
|
1601
|
-
["block",
|
|
1602
|
-
["inline",
|
|
1601
|
+
["block", Br],
|
|
1602
|
+
["inline", zr],
|
|
1603
1603
|
["linkify", qr],
|
|
1604
1604
|
["replacements", Nr],
|
|
1605
1605
|
["smartquotes", Vr],
|
|
@@ -1624,7 +1624,7 @@ function ou(u, e, t, n) {
|
|
|
1624
1624
|
for (let c = 0, i = 0, o = 0, s = 0, a = r.length, l = !1; i < a; i++) {
|
|
1625
1625
|
const f = r.charCodeAt(i);
|
|
1626
1626
|
if (!l)
|
|
1627
|
-
if (
|
|
1627
|
+
if (z(f)) {
|
|
1628
1628
|
o++, f === 9 ? s += 4 - s % 4 : s++;
|
|
1629
1629
|
continue;
|
|
1630
1630
|
} else
|
|
@@ -1648,7 +1648,7 @@ ou.prototype.skipEmptyLines = function(e) {
|
|
|
1648
1648
|
ou.prototype.skipSpaces = function(e) {
|
|
1649
1649
|
for (let t = this.src.length; e < t; e++) {
|
|
1650
1650
|
const n = this.src.charCodeAt(e);
|
|
1651
|
-
if (!
|
|
1651
|
+
if (!z(n))
|
|
1652
1652
|
break;
|
|
1653
1653
|
}
|
|
1654
1654
|
return e;
|
|
@@ -1657,7 +1657,7 @@ ou.prototype.skipSpacesBack = function(e, t) {
|
|
|
1657
1657
|
if (e <= t)
|
|
1658
1658
|
return e;
|
|
1659
1659
|
for (; e > t; )
|
|
1660
|
-
if (!
|
|
1660
|
+
if (!z(this.src.charCodeAt(--e)))
|
|
1661
1661
|
return e + 1;
|
|
1662
1662
|
return e;
|
|
1663
1663
|
};
|
|
@@ -1684,7 +1684,7 @@ ou.prototype.getLines = function(e, t, n, r) {
|
|
|
1684
1684
|
let l = a, f;
|
|
1685
1685
|
for (o + 1 < t || r ? f = this.eMarks[o] + 1 : f = this.eMarks[o]; l < f && s < n; ) {
|
|
1686
1686
|
const p = this.src.charCodeAt(l);
|
|
1687
|
-
if (
|
|
1687
|
+
if (z(p))
|
|
1688
1688
|
p === 9 ? s += 4 - (s + this.bsCount[o]) % 4 : s++;
|
|
1689
1689
|
else if (l - a < this.tShift[o])
|
|
1690
1690
|
s++;
|
|
@@ -1722,11 +1722,11 @@ function Wr(u, e, t, n) {
|
|
|
1722
1722
|
if (i !== 124 && i !== 45 && i !== 58 || c >= u.eMarks[r])
|
|
1723
1723
|
return !1;
|
|
1724
1724
|
const o = u.src.charCodeAt(c++);
|
|
1725
|
-
if (o !== 124 && o !== 45 && o !== 58 && !
|
|
1725
|
+
if (o !== 124 && o !== 45 && o !== 58 && !z(o) || i === 45 && z(o))
|
|
1726
1726
|
return !1;
|
|
1727
1727
|
for (; c < u.eMarks[r]; ) {
|
|
1728
1728
|
const _ = u.src.charCodeAt(c);
|
|
1729
|
-
if (_ !== 124 && _ !== 45 && _ !== 58 && !
|
|
1729
|
+
if (_ !== 124 && _ !== 45 && _ !== 58 && !z(_))
|
|
1730
1730
|
return !1;
|
|
1731
1731
|
c++;
|
|
1732
1732
|
}
|
|
@@ -1859,7 +1859,7 @@ function Xr(u, e, t, n) {
|
|
|
1859
1859
|
let S = k;
|
|
1860
1860
|
for (o.push(u.bMarks[d]), u.bMarks[d] = r; r < c; ) {
|
|
1861
1861
|
const M = u.src.charCodeAt(r);
|
|
1862
|
-
if (
|
|
1862
|
+
if (z(M))
|
|
1863
1863
|
M === 9 ? S += 4 - (S + u.bsCount[d] + (D ? 1 : 0)) % 4 : S++;
|
|
1864
1864
|
else
|
|
1865
1865
|
break;
|
|
@@ -1905,7 +1905,7 @@ function Qr(u, e, t, n) {
|
|
|
1905
1905
|
let o = 1;
|
|
1906
1906
|
for (; c < r; ) {
|
|
1907
1907
|
const a = u.src.charCodeAt(c++);
|
|
1908
|
-
if (a !== i && !
|
|
1908
|
+
if (a !== i && !z(a))
|
|
1909
1909
|
return !1;
|
|
1910
1910
|
a === i && o++;
|
|
1911
1911
|
}
|
|
@@ -1925,7 +1925,7 @@ function l0(u, e) {
|
|
|
1925
1925
|
return -1;
|
|
1926
1926
|
if (n < t) {
|
|
1927
1927
|
const c = u.src.charCodeAt(n);
|
|
1928
|
-
if (!
|
|
1928
|
+
if (!z(c))
|
|
1929
1929
|
return -1;
|
|
1930
1930
|
}
|
|
1931
1931
|
return n;
|
|
@@ -1950,7 +1950,7 @@ function f0(u, e) {
|
|
|
1950
1950
|
break;
|
|
1951
1951
|
return -1;
|
|
1952
1952
|
}
|
|
1953
|
-
return r < n && (c = u.src.charCodeAt(r), !
|
|
1953
|
+
return r < n && (c = u.src.charCodeAt(r), !z(c)) ? -1 : r;
|
|
1954
1954
|
}
|
|
1955
1955
|
function Yr(u, e) {
|
|
1956
1956
|
const t = u.level + 2;
|
|
@@ -2001,8 +2001,8 @@ function Kr(u, e, t, n) {
|
|
|
2001
2001
|
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
|
|
2002
2002
|
const M = [s, 0];
|
|
2003
2003
|
o.map = M, f && (o.info = u.src.slice(i, h - 1));
|
|
2004
|
-
const
|
|
2005
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = S, u.tight = !0, u.tShift[s] = w - u.bMarks[s], u.sCount[s] = k, w >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || y) && (a = !1), y = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = Y, u.tShift[s] = A, u.sCount[s] = H, u.tight =
|
|
2004
|
+
const B = u.tight, A = u.tShift[s], H = u.sCount[s], Y = u.listIndent;
|
|
2005
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = S, u.tight = !0, u.tShift[s] = w - u.bMarks[s], u.sCount[s] = k, w >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || y) && (a = !1), y = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = Y, u.tShift[s] = A, u.sCount[s] = H, u.tight = B, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), s = u.line, M[1] = s, s >= t || u.sCount[s] < u.blkIndent || u.sCount[s] - u.blkIndent >= 4)
|
|
2006
2006
|
break;
|
|
2007
2007
|
let K = !1;
|
|
2008
2008
|
for (let uu = 0, xu = m.length; uu < xu; uu++)
|
|
@@ -2036,8 +2036,8 @@ function uc(u, e, t, n) {
|
|
|
2036
2036
|
const D = u.md.block.ruler.getRules("reference"), S = u.parentType;
|
|
2037
2037
|
u.parentType = "reference";
|
|
2038
2038
|
let M = !1;
|
|
2039
|
-
for (let
|
|
2040
|
-
if (D[
|
|
2039
|
+
for (let B = 0, A = D.length; B < A; B++)
|
|
2040
|
+
if (D[B](u, m, x, !0)) {
|
|
2041
2041
|
M = !0;
|
|
2042
2042
|
break;
|
|
2043
2043
|
}
|
|
@@ -2072,7 +2072,7 @@ function uc(u, e, t, n) {
|
|
|
2072
2072
|
if (m === 10) {
|
|
2073
2073
|
const x = o(i);
|
|
2074
2074
|
x !== null && (s += x, c = s.length, i++);
|
|
2075
|
-
} else if (!
|
|
2075
|
+
} else if (!z(m)) break;
|
|
2076
2076
|
}
|
|
2077
2077
|
const l = u.md.helpers.parseLinkDestination(s, r, c);
|
|
2078
2078
|
if (!l.ok)
|
|
@@ -2087,7 +2087,7 @@ function uc(u, e, t, n) {
|
|
|
2087
2087
|
if (m === 10) {
|
|
2088
2088
|
const x = o(i);
|
|
2089
2089
|
x !== null && (s += x, c = s.length, i++);
|
|
2090
|
-
} else if (!
|
|
2090
|
+
} else if (!z(m)) break;
|
|
2091
2091
|
}
|
|
2092
2092
|
let b = u.md.helpers.parseLinkTitle(s, r, c);
|
|
2093
2093
|
for (; b.can_continue; ) {
|
|
@@ -2098,14 +2098,14 @@ function uc(u, e, t, n) {
|
|
|
2098
2098
|
let g;
|
|
2099
2099
|
for (r < c && d !== r && b.ok ? (g = b.str, r = b.pos) : (g = "", r = p, i = h); r < c; ) {
|
|
2100
2100
|
const m = s.charCodeAt(r);
|
|
2101
|
-
if (!
|
|
2101
|
+
if (!z(m))
|
|
2102
2102
|
break;
|
|
2103
2103
|
r++;
|
|
2104
2104
|
}
|
|
2105
2105
|
if (r < c && s.charCodeAt(r) !== 10 && g)
|
|
2106
2106
|
for (g = "", r = p, i = h; r < c; ) {
|
|
2107
2107
|
const m = s.charCodeAt(r);
|
|
2108
|
-
if (!
|
|
2108
|
+
if (!z(m))
|
|
2109
2109
|
break;
|
|
2110
2110
|
r++;
|
|
2111
2111
|
}
|
|
@@ -2219,13 +2219,13 @@ function bc(u, e, t, n) {
|
|
|
2219
2219
|
let o = 1;
|
|
2220
2220
|
for (i = u.src.charCodeAt(++r); i === 35 && r < c && o <= 6; )
|
|
2221
2221
|
o++, i = u.src.charCodeAt(++r);
|
|
2222
|
-
if (o > 6 || r < c && !
|
|
2222
|
+
if (o > 6 || r < c && !z(i))
|
|
2223
2223
|
return !1;
|
|
2224
2224
|
if (n)
|
|
2225
2225
|
return !0;
|
|
2226
2226
|
c = u.skipSpacesBack(c, r);
|
|
2227
2227
|
const s = u.skipCharsBack(c, 35, r);
|
|
2228
|
-
s > r &&
|
|
2228
|
+
s > r && z(u.src.charCodeAt(s - 1)) && (c = s), u.line = e + 1;
|
|
2229
2229
|
const a = u.push("heading_open", "h" + String(o), 1);
|
|
2230
2230
|
a.markup = "########".slice(0, o), a.map = [e, u.line];
|
|
2231
2231
|
const l = u.push("inline", "", 0);
|
|
@@ -2440,7 +2440,7 @@ function Cc(u, e) {
|
|
|
2440
2440
|
u.pending = u.pending.slice(0, -1), u.push("softbreak", "br", 0);
|
|
2441
2441
|
else
|
|
2442
2442
|
u.push("softbreak", "br", 0);
|
|
2443
|
-
for (t++; t < r &&
|
|
2443
|
+
for (t++; t < r && z(u.src.charCodeAt(t)); )
|
|
2444
2444
|
t++;
|
|
2445
2445
|
return u.pos = t, !0;
|
|
2446
2446
|
}
|
|
@@ -2456,7 +2456,7 @@ function vc(u, e) {
|
|
|
2456
2456
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
2457
2457
|
let r = u.src.charCodeAt(t);
|
|
2458
2458
|
if (r === 10) {
|
|
2459
|
-
for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!
|
|
2459
|
+
for (e || u.push("hardbreak", "br", 0), t++; t < n && (r = u.src.charCodeAt(t), !!z(r)); )
|
|
2460
2460
|
t++;
|
|
2461
2461
|
return u.pos = t, !0;
|
|
2462
2462
|
}
|
|
@@ -2614,15 +2614,15 @@ function Sc(u, e) {
|
|
|
2614
2614
|
return !1;
|
|
2615
2615
|
let d = h + 1;
|
|
2616
2616
|
if (d < f && u.src.charCodeAt(d) === 40) {
|
|
2617
|
-
for (a = !1, d++; d < f && (t = u.src.charCodeAt(d), !(!
|
|
2617
|
+
for (a = !1, d++; d < f && (t = u.src.charCodeAt(d), !(!z(t) && t !== 10)); d++)
|
|
2618
2618
|
;
|
|
2619
2619
|
if (d >= f)
|
|
2620
2620
|
return !1;
|
|
2621
2621
|
if (s = d, r = u.md.helpers.parseLinkDestination(u.src, d, u.posMax), r.ok) {
|
|
2622
|
-
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? d = r.pos : i = "", s = d; d < f && (t = u.src.charCodeAt(d), !(!
|
|
2622
|
+
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? d = r.pos : i = "", s = d; d < f && (t = u.src.charCodeAt(d), !(!z(t) && t !== 10)); d++)
|
|
2623
2623
|
;
|
|
2624
2624
|
if (r = u.md.helpers.parseLinkTitle(u.src, d, u.posMax), d < f && s !== d && r.ok)
|
|
2625
|
-
for (o = r.str, d = r.pos; d < f && (t = u.src.charCodeAt(d), !(!
|
|
2625
|
+
for (o = r.str, d = r.pos; d < f && (t = u.src.charCodeAt(d), !(!z(t) && t !== 10)); d++)
|
|
2626
2626
|
;
|
|
2627
2627
|
}
|
|
2628
2628
|
(d >= f || u.src.charCodeAt(d) !== 41) && (a = !0), d++;
|
|
@@ -2641,7 +2641,7 @@ function Sc(u, e) {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
return u.pos = d, u.posMax = f, !0;
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2644
|
+
function Bc(u, e) {
|
|
2645
2645
|
let t, n, r, c, i, o, s, a, l = "";
|
|
2646
2646
|
const f = u.pos, p = u.posMax;
|
|
2647
2647
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
@@ -2650,14 +2650,14 @@ function zc(u, e) {
|
|
|
2650
2650
|
if (d < 0)
|
|
2651
2651
|
return !1;
|
|
2652
2652
|
if (c = d + 1, c < p && u.src.charCodeAt(c) === 40) {
|
|
2653
|
-
for (c++; c < p && (t = u.src.charCodeAt(c), !(!
|
|
2653
|
+
for (c++; c < p && (t = u.src.charCodeAt(c), !(!z(t) && t !== 10)); c++)
|
|
2654
2654
|
;
|
|
2655
2655
|
if (c >= p)
|
|
2656
2656
|
return !1;
|
|
2657
|
-
for (a = c, o = u.md.helpers.parseLinkDestination(u.src, c, u.posMax), o.ok && (l = u.md.normalizeLink(o.str), u.md.validateLink(l) ? c = o.pos : l = ""), a = c; c < p && (t = u.src.charCodeAt(c), !(!
|
|
2657
|
+
for (a = c, o = u.md.helpers.parseLinkDestination(u.src, c, u.posMax), o.ok && (l = u.md.normalizeLink(o.str), u.md.validateLink(l) ? c = o.pos : l = ""), a = c; c < p && (t = u.src.charCodeAt(c), !(!z(t) && t !== 10)); c++)
|
|
2658
2658
|
;
|
|
2659
2659
|
if (o = u.md.helpers.parseLinkTitle(u.src, c, u.posMax), c < p && a !== c && o.ok)
|
|
2660
|
-
for (s = o.str, c = o.pos; c < p && (t = u.src.charCodeAt(c), !(!
|
|
2660
|
+
for (s = o.str, c = o.pos; c < p && (t = u.src.charCodeAt(c), !(!z(t) && t !== 10)); c++)
|
|
2661
2661
|
;
|
|
2662
2662
|
else
|
|
2663
2663
|
s = "";
|
|
@@ -2685,7 +2685,7 @@ function zc(u, e) {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
return u.pos = c, u.posMax = p, !0;
|
|
2687
2687
|
}
|
|
2688
|
-
const
|
|
2688
|
+
const zc = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Mc = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2689
2689
|
function Tc(u, e) {
|
|
2690
2690
|
let t = u.pos;
|
|
2691
2691
|
if (u.src.charCodeAt(t) !== 60)
|
|
@@ -2712,7 +2712,7 @@ function Tc(u, e) {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
return u.pos += c.length + 2, !0;
|
|
2714
2714
|
}
|
|
2715
|
-
if (
|
|
2715
|
+
if (zc.test(c)) {
|
|
2716
2716
|
const i = u.md.normalizeLink("mailto:" + c);
|
|
2717
2717
|
if (!u.md.validateLink(i))
|
|
2718
2718
|
return !1;
|
|
@@ -2831,7 +2831,7 @@ const ye = [
|
|
|
2831
2831
|
["strikethrough", U0.tokenize],
|
|
2832
2832
|
["emphasis", W0.tokenize],
|
|
2833
2833
|
["link", Sc],
|
|
2834
|
-
["image",
|
|
2834
|
+
["image", Bc],
|
|
2835
2835
|
["autolink", Tc],
|
|
2836
2836
|
["html_inline", Ic],
|
|
2837
2837
|
["entity", $c]
|
|
@@ -2911,7 +2911,7 @@ function Hc(u) {
|
|
|
2911
2911
|
// but can start with > (markdown blockquote)
|
|
2912
2912
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function Be(u) {
|
|
2915
2915
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
2916
2916
|
t && Object.keys(t).forEach(function(n) {
|
|
2917
2917
|
u[n] = t[n];
|
|
@@ -3034,20 +3034,20 @@ function uo(u, e) {
|
|
|
3034
3034
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3035
3035
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function ze(u, e) {
|
|
3038
3038
|
const t = new uo(u, e);
|
|
3039
3039
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3040
3040
|
}
|
|
3041
3041
|
function U(u, e) {
|
|
3042
3042
|
if (!(this instanceof U))
|
|
3043
3043
|
return new U(u, e);
|
|
3044
|
-
e || Gc(u) && (e = u, u = {}), this.__opts__ =
|
|
3044
|
+
e || Gc(u) && (e = u, u = {}), this.__opts__ = Be({}, G0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Be({}, Jc, u), this.__compiled__ = {}, this.__tlds__ = Qc, this.__tlds_replaced__ = !1, this.re = {}, re(this);
|
|
3045
3045
|
}
|
|
3046
3046
|
U.prototype.add = function(e, t) {
|
|
3047
3047
|
return this.__schemas__[e] = t, re(this), this;
|
|
3048
3048
|
};
|
|
3049
3049
|
U.prototype.set = function(e) {
|
|
3050
|
-
return this.__opts__ =
|
|
3050
|
+
return this.__opts__ = Be(this.__opts__, e), this;
|
|
3051
3051
|
};
|
|
3052
3052
|
U.prototype.test = function(e) {
|
|
3053
3053
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
@@ -3071,10 +3071,10 @@ U.prototype.testSchemaAt = function(e, t, n) {
|
|
|
3071
3071
|
U.prototype.match = function(e) {
|
|
3072
3072
|
const t = [];
|
|
3073
3073
|
let n = 0;
|
|
3074
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
|
3074
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(ze(this, n)), n = this.__last_index__);
|
|
3075
3075
|
let r = n ? e.slice(n) : e;
|
|
3076
3076
|
for (; this.test(r); )
|
|
3077
|
-
t.push(
|
|
3077
|
+
t.push(ze(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3078
3078
|
return t.length ? t : null;
|
|
3079
3079
|
};
|
|
3080
3080
|
U.prototype.matchAtStart = function(e) {
|
|
@@ -3082,7 +3082,7 @@ U.prototype.matchAtStart = function(e) {
|
|
|
3082
3082
|
const t = this.re.schema_at_start.exec(e);
|
|
3083
3083
|
if (!t) return null;
|
|
3084
3084
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3085
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
|
3085
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, ze(this, 0)) : null;
|
|
3086
3086
|
};
|
|
3087
3087
|
U.prototype.tlds = function(e, t) {
|
|
3088
3088
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
|
@@ -3521,14 +3521,14 @@ function Co() {
|
|
|
3521
3521
|
case "s_open":
|
|
3522
3522
|
case "link_open": {
|
|
3523
3523
|
if (d) break;
|
|
3524
|
-
const
|
|
3524
|
+
const B = {
|
|
3525
3525
|
tag: h,
|
|
3526
3526
|
children: [],
|
|
3527
3527
|
attrs: p ? Object.fromEntries(p) : {}
|
|
3528
3528
|
};
|
|
3529
3529
|
if (a === "link_open") {
|
|
3530
3530
|
const A = s.attrGet("href") ?? "", H = document.location.origin;
|
|
3531
|
-
A != null && A.startsWith("http") && !A.includes(H) && (
|
|
3531
|
+
A != null && A.startsWith("http") && !A.includes(H) && (B.attrs.target = "_blank", B.attrs.rel = "noopener noreferrer", B.attrs.dataOuter = "", (b = B.children) == null || b.push({ tag: xn }));
|
|
3532
3532
|
}
|
|
3533
3533
|
if (a === "table_open") {
|
|
3534
3534
|
const A = {
|
|
@@ -3538,7 +3538,7 @@ function Co() {
|
|
|
3538
3538
|
};
|
|
3539
3539
|
(g = o.children) == null || g.push(A), c.push(o), o = A;
|
|
3540
3540
|
}
|
|
3541
|
-
(y = o.children) == null || y.push(
|
|
3541
|
+
(y = o.children) == null || y.push(B), c.push(o), o = B;
|
|
3542
3542
|
break;
|
|
3543
3543
|
}
|
|
3544
3544
|
case "heading_close":
|
|
@@ -3571,8 +3571,8 @@ function Co() {
|
|
|
3571
3571
|
}
|
|
3572
3572
|
case "inline": {
|
|
3573
3573
|
if (l) {
|
|
3574
|
-
const
|
|
3575
|
-
(x = o.children) == null || x.push(...
|
|
3574
|
+
const B = n(l);
|
|
3575
|
+
(x = o.children) == null || x.push(...B ?? []);
|
|
3576
3576
|
} else
|
|
3577
3577
|
(_ = o.children) == null || _.push(f);
|
|
3578
3578
|
break;
|
|
@@ -3605,11 +3605,11 @@ function Co() {
|
|
|
3605
3605
|
if (f.startsWith("</"))
|
|
3606
3606
|
o = c.pop();
|
|
3607
3607
|
else {
|
|
3608
|
-
const
|
|
3609
|
-
tag:
|
|
3608
|
+
const B = f.replace("<", "").replace(">", ""), A = {
|
|
3609
|
+
tag: B,
|
|
3610
3610
|
children: []
|
|
3611
3611
|
};
|
|
3612
|
-
|
|
3612
|
+
B === "blur" && (A.tag = "span", A.attrs = {
|
|
3613
3613
|
"data-blur": ""
|
|
3614
3614
|
}), (M = o.children) == null || M.push(A), c.push(o), o = A;
|
|
3615
3615
|
}
|
|
@@ -3704,7 +3704,7 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
3704
3704
|
}, Fo = {
|
|
3705
3705
|
key: 1,
|
|
3706
3706
|
class: "sq-progress-label"
|
|
3707
|
-
}, So = ["textContent"],
|
|
3707
|
+
}, So = ["textContent"], Bo = /* @__PURE__ */ I({
|
|
3708
3708
|
__name: "progress",
|
|
3709
3709
|
props: {
|
|
3710
3710
|
value: {},
|
|
@@ -3772,7 +3772,7 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
3772
3772
|
])) : V("", !0)
|
|
3773
3773
|
], 6));
|
|
3774
3774
|
}
|
|
3775
|
-
}),
|
|
3775
|
+
}), zo = { class: "sq-backtop" }, es = /* @__PURE__ */ I({
|
|
3776
3776
|
__name: "backtop",
|
|
3777
3777
|
props: {
|
|
3778
3778
|
progress: { type: Boolean, default: !0 },
|
|
@@ -3807,12 +3807,12 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
3807
3807
|
default: su(() => {
|
|
3808
3808
|
var f, p, h;
|
|
3809
3809
|
return [
|
|
3810
|
-
ku(C("div",
|
|
3810
|
+
ku(C("div", zo, [
|
|
3811
3811
|
C("div", {
|
|
3812
3812
|
class: "sq-backtop-wrap",
|
|
3813
3813
|
onClick: s
|
|
3814
3814
|
}, [
|
|
3815
|
-
t.progress ? (v(), R(q(
|
|
3815
|
+
t.progress ? (v(), R(q(Bo), {
|
|
3816
3816
|
key: 0,
|
|
3817
3817
|
theme: "circle",
|
|
3818
3818
|
label: !1,
|
|
@@ -3987,7 +3987,7 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
3987
3987
|
function M() {
|
|
3988
3988
|
i.value = "";
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3990
|
+
function B() {
|
|
3991
3991
|
s.value = !s.value;
|
|
3992
3992
|
}
|
|
3993
3993
|
return e({ focus: D, blur: S }), (A, H) => (v(), F("div", {
|
|
@@ -4018,7 +4018,7 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
4018
4018
|
ku(C("span", $o, [
|
|
4019
4019
|
ku((v(), R(hu(f.value), {
|
|
4020
4020
|
class: "sq-input-suffix-pwd",
|
|
4021
|
-
onMousedown:
|
|
4021
|
+
onMousedown: B
|
|
4022
4022
|
}, null, 544)), [
|
|
4023
4023
|
[Fu, g.value]
|
|
4024
4024
|
]),
|
|
@@ -4044,7 +4044,6 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
4044
4044
|
props: {
|
|
4045
4045
|
message: {},
|
|
4046
4046
|
type: { default: "info" },
|
|
4047
|
-
zIndex: {},
|
|
4048
4047
|
offsetTop: {},
|
|
4049
4048
|
onDestroy: {},
|
|
4050
4049
|
onClose: {},
|
|
@@ -4056,13 +4055,13 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
4056
4055
|
switch (t.type) {
|
|
4057
4056
|
case "primary":
|
|
4058
4057
|
case "info":
|
|
4059
|
-
return
|
|
4058
|
+
return z0;
|
|
4060
4059
|
case "success":
|
|
4061
4060
|
return S0;
|
|
4062
4061
|
case "warn":
|
|
4063
4062
|
return M0;
|
|
4064
4063
|
case "error":
|
|
4065
|
-
return
|
|
4064
|
+
return B0;
|
|
4066
4065
|
}
|
|
4067
4066
|
});
|
|
4068
4067
|
Re(() => {
|
|
@@ -4081,7 +4080,7 @@ const { md2tokens: vo, tokens2vueh: Do } = Co(), Ki = I({
|
|
|
4081
4080
|
ku(C("div", {
|
|
4082
4081
|
class: $(["sq-message", `is-${t.type}`]),
|
|
4083
4082
|
id: t.id,
|
|
4084
|
-
style: Cu({ top: `${t.offsetTop}px
|
|
4083
|
+
style: Cu({ top: `${t.offsetTop}px` })
|
|
4085
4084
|
}, [
|
|
4086
4085
|
vu(q(Gu), { class: "sq-message-main" }, {
|
|
4087
4086
|
default: su(() => [
|
|
@@ -4109,7 +4108,7 @@ let Go = 1;
|
|
|
4109
4108
|
const Me = (u = {}) => {
|
|
4110
4109
|
const e = `sq-message-${Go++}`;
|
|
4111
4110
|
let t = document.querySelector(".sq-message-wrap");
|
|
4112
|
-
t || (t = document.createElement("div"), t.classList.add("sq-message-wrap"), document.body.appendChild(t));
|
|
4111
|
+
t || (t = document.createElement("div"), t.classList.add("sq-message-wrap"), document.body.appendChild(t)), t.style.zIndex = Vo().toString();
|
|
4113
4112
|
let n = we;
|
|
4114
4113
|
gu.forEach((a) => {
|
|
4115
4114
|
var l;
|
|
@@ -4120,7 +4119,6 @@ const Me = (u = {}) => {
|
|
|
4120
4119
|
// 用户配置
|
|
4121
4120
|
...u,
|
|
4122
4121
|
// 固有配置
|
|
4123
|
-
zIndex: Vo(),
|
|
4124
4122
|
offsetTop: n,
|
|
4125
4123
|
id: e
|
|
4126
4124
|
}, c = document.createElement("div"), i = r.onClose;
|
|
@@ -4211,7 +4209,7 @@ const cs = Me, Jo = { class: "sq-pagination" }, Xo = { class: "sq-pagination-pag
|
|
|
4211
4209
|
])
|
|
4212
4210
|
]));
|
|
4213
4211
|
}
|
|
4214
|
-
}), Te = Math.min,
|
|
4212
|
+
}), Te = Math.min, Bu = Math.max, ce = Math.round, Yu = Math.floor, nu = (u) => ({
|
|
4215
4213
|
x: u,
|
|
4216
4214
|
y: u
|
|
4217
4215
|
}), Qo = {
|
|
@@ -4495,12 +4493,12 @@ const fi = function(u) {
|
|
|
4495
4493
|
const y = qu(r), m = yu(o), x = qu(o) === o, _ = await (s.isRTL == null ? void 0 : s.isRTL(a.floating)), k = p || (x || !b ? [oe(o)] : ti(o)), w = d !== "none";
|
|
4496
4494
|
!p && w && k.push(...oi(o, b, d, _));
|
|
4497
4495
|
const D = [o, ...k], S = await li(e, g), M = [];
|
|
4498
|
-
let
|
|
4496
|
+
let B = ((n = c.flip) == null ? void 0 : n.overflows) || [];
|
|
4499
4497
|
if (l && M.push(S[y]), f) {
|
|
4500
4498
|
const K = ei(r, i, _);
|
|
4501
4499
|
M.push(S[K[0]], S[K[1]]);
|
|
4502
4500
|
}
|
|
4503
|
-
if (
|
|
4501
|
+
if (B = [...B, {
|
|
4504
4502
|
placement: r,
|
|
4505
4503
|
overflows: M
|
|
4506
4504
|
}], !M.every((K) => K <= 0)) {
|
|
@@ -4508,22 +4506,22 @@ const fi = function(u) {
|
|
|
4508
4506
|
const K = (((A = c.flip) == null ? void 0 : A.index) || 0) + 1, uu = D[K];
|
|
4509
4507
|
if (uu && (!(f === "alignment" ? m !== yu(uu) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4510
4508
|
// overflows the main axis.
|
|
4511
|
-
|
|
4509
|
+
B.every((J) => yu(J.placement) === m ? J.overflows[0] > 0 : !0)))
|
|
4512
4510
|
return {
|
|
4513
4511
|
data: {
|
|
4514
4512
|
index: K,
|
|
4515
|
-
overflows:
|
|
4513
|
+
overflows: B
|
|
4516
4514
|
},
|
|
4517
4515
|
reset: {
|
|
4518
4516
|
placement: uu
|
|
4519
4517
|
}
|
|
4520
4518
|
};
|
|
4521
|
-
let xu = (H =
|
|
4519
|
+
let xu = (H = B.filter((_u) => _u.overflows[0] <= 0).sort((_u, J) => _u.overflows[1] - J.overflows[1])[0]) == null ? void 0 : H.placement;
|
|
4522
4520
|
if (!xu)
|
|
4523
4521
|
switch (h) {
|
|
4524
4522
|
case "bestFit": {
|
|
4525
4523
|
var Y;
|
|
4526
|
-
const _u = (Y =
|
|
4524
|
+
const _u = (Y = B.filter((J) => {
|
|
4527
4525
|
if (w) {
|
|
4528
4526
|
const au = yu(J.placement);
|
|
4529
4527
|
return au === m || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -4727,7 +4725,7 @@ function at(u) {
|
|
|
4727
4725
|
function Qe(u) {
|
|
4728
4726
|
return X(u) ? u : u.contextElement;
|
|
4729
4727
|
}
|
|
4730
|
-
function
|
|
4728
|
+
function zu(u) {
|
|
4731
4729
|
const e = Qe(u);
|
|
4732
4730
|
if (!ru(e))
|
|
4733
4731
|
return nu(1);
|
|
@@ -4757,14 +4755,14 @@ function Du(u, e, t, n) {
|
|
|
4757
4755
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
4758
4756
|
const r = u.getBoundingClientRect(), c = Qe(u);
|
|
4759
4757
|
let i = nu(1);
|
|
4760
|
-
e && (n ? X(n) && (i =
|
|
4758
|
+
e && (n ? X(n) && (i = zu(n)) : i = zu(u));
|
|
4761
4759
|
const o = wi(c, t, n) ? lt(c) : nu(0);
|
|
4762
4760
|
let s = (r.left + o.x) / i.x, a = (r.top + o.y) / i.y, l = r.width / i.x, f = r.height / i.y;
|
|
4763
4761
|
if (c) {
|
|
4764
4762
|
const p = Z(c), h = n && X(n) ? Z(n) : n;
|
|
4765
4763
|
let d = p, b = Le(d);
|
|
4766
4764
|
for (; b && n && h !== d; ) {
|
|
4767
|
-
const g =
|
|
4765
|
+
const g = zu(b), y = b.getBoundingClientRect(), m = Q(b), x = y.left + (b.clientLeft + parseFloat(m.paddingLeft)) * g.x, _ = y.top + (b.clientTop + parseFloat(m.paddingTop)) * g.y;
|
|
4768
4766
|
s *= g.x, a *= g.y, l *= g.x, f *= g.y, s += x, a += _, d = Z(b), b = Le(d);
|
|
4769
4767
|
}
|
|
4770
4768
|
}
|
|
@@ -4803,7 +4801,7 @@ function Ei(u) {
|
|
|
4803
4801
|
const l = nu(0), f = ru(n);
|
|
4804
4802
|
if ((f || !f && !c) && ((wu(n) !== "body" || Wu(i)) && (s = be(n)), ru(n))) {
|
|
4805
4803
|
const h = Du(n);
|
|
4806
|
-
a =
|
|
4804
|
+
a = zu(n), l.x = h.x + n.clientLeft, l.y = h.y + n.clientTop;
|
|
4807
4805
|
}
|
|
4808
4806
|
const p = i && !f && !c ? ft(i, s) : nu(0);
|
|
4809
4807
|
return {
|
|
@@ -4817,10 +4815,10 @@ function Ai(u) {
|
|
|
4817
4815
|
return Array.from(u.getClientRects());
|
|
4818
4816
|
}
|
|
4819
4817
|
function Fi(u) {
|
|
4820
|
-
const e = iu(u), t = be(u), n = u.ownerDocument.body, r =
|
|
4818
|
+
const e = iu(u), t = be(u), n = u.ownerDocument.body, r = Bu(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), c = Bu(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
4821
4819
|
let i = -t.scrollLeft + me(u);
|
|
4822
4820
|
const o = -t.scrollTop;
|
|
4823
|
-
return Q(n).direction === "rtl" && (i +=
|
|
4821
|
+
return Q(n).direction === "rtl" && (i += Bu(e.clientWidth, n.clientWidth) - r), {
|
|
4824
4822
|
width: r,
|
|
4825
4823
|
height: c,
|
|
4826
4824
|
x: i,
|
|
@@ -4848,9 +4846,9 @@ function Si(u, e) {
|
|
|
4848
4846
|
y: s
|
|
4849
4847
|
};
|
|
4850
4848
|
}
|
|
4851
|
-
const
|
|
4852
|
-
function
|
|
4853
|
-
const t = Du(u, !0, e === "fixed"), n = t.top + u.clientTop, r = t.left + u.clientLeft, c = ru(u) ?
|
|
4849
|
+
const Bi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4850
|
+
function zi(u, e) {
|
|
4851
|
+
const t = Du(u, !0, e === "fixed"), n = t.top + u.clientTop, r = t.left + u.clientLeft, c = ru(u) ? zu(u) : nu(1), i = u.clientWidth * c.x, o = u.clientHeight * c.y, s = r * c.x, a = n * c.y;
|
|
4854
4852
|
return {
|
|
4855
4853
|
width: i,
|
|
4856
4854
|
height: o,
|
|
@@ -4865,7 +4863,7 @@ function v0(u, e, t) {
|
|
|
4865
4863
|
else if (e === "document")
|
|
4866
4864
|
n = Fi(iu(u));
|
|
4867
4865
|
else if (X(e))
|
|
4868
|
-
n =
|
|
4866
|
+
n = zi(e, t);
|
|
4869
4867
|
else {
|
|
4870
4868
|
const r = lt(u);
|
|
4871
4869
|
n = {
|
|
@@ -4890,7 +4888,7 @@ function Mi(u, e) {
|
|
|
4890
4888
|
let i = c ? mu(u) : u;
|
|
4891
4889
|
for (; X(i) && !Lu(i); ) {
|
|
4892
4890
|
const o = Q(i), s = Je(i);
|
|
4893
|
-
!s && o.position === "fixed" && (r = null), (c ? !s && !r : !s && o.position === "static" && !!r &&
|
|
4891
|
+
!s && o.position === "fixed" && (r = null), (c ? !s && !r : !s && o.position === "static" && !!r && Bi.has(r.position) || Wu(i) && !s && dt(u, i)) ? n = n.filter((l) => l !== i) : r = o, i = mu(i);
|
|
4894
4892
|
}
|
|
4895
4893
|
return e.set(u, n), n;
|
|
4896
4894
|
}
|
|
@@ -4903,7 +4901,7 @@ function Ti(u) {
|
|
|
4903
4901
|
} = u;
|
|
4904
4902
|
const i = [...t === "clippingAncestors" ? pe(e) ? [] : Mi(e, this._c) : [].concat(t), n], o = i[0], s = i.reduce((a, l) => {
|
|
4905
4903
|
const f = v0(e, l, r);
|
|
4906
|
-
return a.top =
|
|
4904
|
+
return a.top = Bu(f.top, a.top), a.right = Te(f.right, a.right), a.bottom = Te(f.bottom, a.bottom), a.left = Bu(f.left, a.left), a;
|
|
4907
4905
|
}, v0(e, o, r));
|
|
4908
4906
|
return {
|
|
4909
4907
|
width: s.right - s.left,
|
|
@@ -4998,7 +4996,7 @@ const Pi = {
|
|
|
4998
4996
|
getElementRects: Ri,
|
|
4999
4997
|
getClientRects: Ai,
|
|
5000
4998
|
getDimensions: qi,
|
|
5001
|
-
getScale:
|
|
4999
|
+
getScale: zu,
|
|
5002
5000
|
isElement: X,
|
|
5003
5001
|
isRTL: Ii
|
|
5004
5002
|
};
|
|
@@ -5024,7 +5022,7 @@ function Oi(u, e) {
|
|
|
5024
5022
|
return;
|
|
5025
5023
|
const d = Yu(f), b = Yu(r.clientWidth - (l + p)), g = Yu(r.clientHeight - (f + h)), y = Yu(l), x = {
|
|
5026
5024
|
rootMargin: -d + "px " + -b + "px " + -g + "px " + -y + "px",
|
|
5027
|
-
threshold:
|
|
5025
|
+
threshold: Bu(0, Te(1, s)) || 1
|
|
5028
5026
|
};
|
|
5029
5027
|
let _ = !0;
|
|
5030
5028
|
function k(w) {
|
|
@@ -5435,7 +5433,7 @@ export {
|
|
|
5435
5433
|
cs as SqMessage,
|
|
5436
5434
|
os as SqPagination,
|
|
5437
5435
|
is as SqPopover,
|
|
5438
|
-
|
|
5436
|
+
Bo as SqProgress,
|
|
5439
5437
|
ss as SqTag,
|
|
5440
5438
|
Gu as SqText,
|
|
5441
5439
|
ls as SqTimeline,
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
`:">",o},pu.prototype.renderInline=function(u,e,t){let n="";const r=this.rules;for(let o=0,i=u.length;o<i;o++){const c=u[o].type;typeof r[c]<"u"?n+=r[c](u,o,e,t,this):n+=this.renderToken(u,o,e)}return n},pu.prototype.renderInlineAsText=function(u,e,t){let n="";for(let r=0,o=u.length;r<o;r++)switch(u[r].type){case"text":n+=u[r].content;break;case"image":n+=this.renderInlineAsText(u[r].children,e,t);break;case"html_inline":case"html_block":n+=u[r].content;break;case"softbreak":case"hardbreak":n+=`
|
|
55
55
|
`;break}return n},pu.prototype.render=function(u,e,t){let n="";const r=this.rules;for(let o=0,i=u.length;o<i;o++){const c=u[o].type;c==="inline"?n+=this.renderInline(u[o].children,e,t):typeof r[c]<"u"?n+=r[c](u,o,e,t,this):n+=this.renderToken(u,o,e,t)}return n};function v(){this.__rules__=[],this.__cache__=null}v.prototype.__find__=function(u){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===u)return e;return-1},v.prototype.__compile__=function(){const u=this,e=[""];u.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),u.__cache__={},e.forEach(function(t){u.__cache__[t]=[],u.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||u.__cache__[t].push(n.fn))})})},v.prototype.at=function(u,e,t){const n=this.__find__(u),r=t||{};if(n===-1)throw new Error("Parser rule not found: "+u);this.__rules__[n].fn=e,this.__rules__[n].alt=r.alt||[],this.__cache__=null},v.prototype.before=function(u,e,t,n){const r=this.__find__(u),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+u);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:t,alt:o.alt||[]}),this.__cache__=null},v.prototype.after=function(u,e,t,n){const r=this.__find__(u),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+u);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:t,alt:o.alt||[]}),this.__cache__=null},v.prototype.push=function(u,e,t){const n=t||{};this.__rules__.push({name:u,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null},v.prototype.enable=function(u,e){Array.isArray(u)||(u=[u]);const t=[];return u.forEach(function(n){const r=this.__find__(n);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!0,t.push(n)},this),this.__cache__=null,t},v.prototype.enableOnly=function(u,e){Array.isArray(u)||(u=[u]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(u,e)},v.prototype.disable=function(u,e){Array.isArray(u)||(u=[u]);const t=[];return u.forEach(function(n){const r=this.__find__(n);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!1,t.push(n)},this),this.__cache__=null,t},v.prototype.getRules=function(u){return this.__cache__===null&&this.__compile__(),this.__cache__[u]||[]};function Ue(u,e,t){this.src=u,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}Ue.prototype.Token=I;const Vn=/\r\n?|\n/g,jn=/\0/g;function Hn(u){let e;e=u.src.replace(Vn,`
|
|
56
56
|
`),e=e.replace(jn,"�"),u.src=e}function Zn(u){let e;u.inlineMode?(e=new u.Token("inline","",0),e.content=u.src,e.map=[0,1],e.children=[],u.tokens.push(e)):u.md.block.parse(u.src,u.md,u.env,u.tokens)}function Un(u){const e=u.tokens;for(let t=0,n=e.length;t<n;t++){const r=e[t];r.type==="inline"&&u.md.inline.parse(r.content,u.md,u.env,r.children)}}function Wn(u){return/^<a[>\s]/i.test(u)}function Gn(u){return/^<\/a\s*>/i.test(u)}function Jn(u){const e=u.tokens;if(u.md.options.linkify)for(let t=0,n=e.length;t<n;t++){if(e[t].type!=="inline"||!u.md.linkify.pretest(e[t].content))continue;let r=e[t].children,o=0;for(let i=r.length-1;i>=0;i--){const c=r[i];if(c.type==="link_close"){for(i--;r[i].level!==c.level&&r[i].type!=="link_open";)i--;continue}if(c.type==="html_inline"&&(Wn(c.content)&&o>0&&o--,Gn(c.content)&&o++),!(o>0)&&c.type==="text"&&u.md.linkify.test(c.content)){const a=c.content;let l=u.md.linkify.match(a);const f=[];let d=c.level,b=0;l.length>0&&l[0].index===0&&i>0&&r[i-1].type==="text_special"&&(l=l.slice(1));for(let h=0;h<l.length;h++){const p=l[h].url,m=u.md.normalizeLink(p);if(!u.md.validateLink(m))continue;let k=l[h].text;l[h].schema?l[h].schema==="mailto:"&&!/^mailto:/i.test(k)?k=u.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=u.md.normalizeLinkText(k):k=u.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,"");const C=l[h].index;if(C>b){const y=new u.Token("text","",0);y.content=a.slice(b,C),y.level=d,f.push(y)}const x=new u.Token("link_open","a",1);x.attrs=[["href",m]],x.level=d++,x.markup="linkify",x.info="auto",f.push(x);const _=new u.Token("text","",0);_.content=k,_.level=d,f.push(_);const g=new u.Token("link_close","a",-1);g.level=--d,g.markup="linkify",g.info="auto",f.push(g),b=l[h].lastIndex}if(b<a.length){const h=new u.Token("text","",0);h.content=a.slice(b),h.level=d,f.push(h)}e[t].children=r=He(r,i,f)}}}}const We=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Xn=/\((c|tm|r)\)/i,Qn=/\((c|tm|r)\)/ig,Yn={c:"©",r:"®",tm:"™"};function Kn(u,e){return Yn[e.toLowerCase()]}function ur(u){let e=0;for(let t=u.length-1;t>=0;t--){const n=u[t];n.type==="text"&&!e&&(n.content=n.content.replace(Qn,Kn)),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function er(u){let e=0;for(let t=u.length-1;t>=0;t--){const n=u[t];n.type==="text"&&!e&&We.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function tr(u){let e;if(u.md.options.typographer)for(e=u.tokens.length-1;e>=0;e--)u.tokens[e].type==="inline"&&(Xn.test(u.tokens[e].content)&&ur(u.tokens[e].children),We.test(u.tokens[e].content)&&er(u.tokens[e].children))}const nr=/['"]/,Ge=/['"]/g,Je="’";function Lu(u,e,t){return u.slice(0,e)+t+u.slice(e+1)}function rr(u,e){let t;const n=[];for(let r=0;r<u.length;r++){const o=u[r],i=u[r].level;for(t=n.length-1;t>=0&&!(n[t].level<=i);t--);if(n.length=t+1,o.type!=="text")continue;let c=o.content,a=0,l=c.length;u:for(;a<l;){Ge.lastIndex=a;const f=Ge.exec(c);if(!f)break;let d=!0,b=!0;a=f.index+1;const h=f[0]==="'";let p=32;if(f.index-1>=0)p=c.charCodeAt(f.index-1);else for(t=r-1;t>=0&&!(u[t].type==="softbreak"||u[t].type==="hardbreak");t--)if(u[t].content){p=u[t].content.charCodeAt(u[t].content.length-1);break}let m=32;if(a<l)m=c.charCodeAt(a);else for(t=r+1;t<u.length&&!(u[t].type==="softbreak"||u[t].type==="hardbreak");t++)if(u[t].content){m=u[t].content.charCodeAt(0);break}const k=wu(p)||Eu(String.fromCharCode(p)),C=wu(m)||Eu(String.fromCharCode(m)),x=Cu(p),_=Cu(m);if(_?d=!1:C&&(x||k||(d=!1)),x?b=!1:k&&(_||C||(b=!1)),m===34&&f[0]==='"'&&p>=48&&p<=57&&(b=d=!1),d&&b&&(d=k,b=C),!d&&!b){h&&(o.content=Lu(o.content,f.index,Je));continue}if(b)for(t=n.length-1;t>=0;t--){let g=n[t];if(n[t].level<i)break;if(g.single===h&&n[t].level===i){g=n[t];let y,w;h?(y=e.md.options.quotes[2],w=e.md.options.quotes[3]):(y=e.md.options.quotes[0],w=e.md.options.quotes[1]),o.content=Lu(o.content,f.index,w),u[g.token].content=Lu(u[g.token].content,g.pos,y),a+=w.length-1,g.token===r&&(a+=y.length-1),c=o.content,l=c.length,n.length=t;continue u}}d?n.push({token:r,pos:f.index,single:h,level:i}):b&&h&&(o.content=Lu(o.content,f.index,Je))}}}function or(u){if(u.md.options.typographer)for(let e=u.tokens.length-1;e>=0;e--)u.tokens[e].type!=="inline"||!nr.test(u.tokens[e].content)||rr(u.tokens[e].children,u)}function cr(u){let e,t;const n=u.tokens,r=n.length;for(let o=0;o<r;o++){if(n[o].type!=="inline")continue;const i=n[o].children,c=i.length;for(e=0;e<c;e++)i[e].type==="text_special"&&(i[e].type="text");for(e=t=0;e<c;e++)i[e].type==="text"&&e+1<c&&i[e+1].type==="text"?i[e+1].content=i[e].content+i[e+1].content:(e!==t&&(i[t]=i[e]),t++);e!==t&&(i.length=t)}}const ne=[["normalize",Hn],["block",Zn],["inline",Un],["linkify",Jn],["replacements",tr],["smartquotes",or],["text_join",cr]];function re(){this.ruler=new v;for(let u=0;u<ne.length;u++)this.ruler.push(ne[u][0],ne[u][1])}re.prototype.process=function(u){const e=this.ruler.getRules("");for(let t=0,n=e.length;t<n;t++)e[t](u)},re.prototype.State=Ue;function H(u,e,t,n){this.src=u,this.md=e,this.env=t,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,i=0,c=0,a=0,l=r.length,f=!1;i<l;i++){const d=r.charCodeAt(i);if(!f)if(F(d)){c++,d===9?a+=4-a%4:a++;continue}else f=!0;(d===10||i===l-1)&&(d!==10&&i++,this.bMarks.push(o),this.eMarks.push(i),this.tShift.push(c),this.sCount.push(a),this.bsCount.push(0),f=!1,c=0,a=0,o=i+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}H.prototype.push=function(u,e,t){const n=new I(u,e,t);return n.block=!0,t<0&&this.level--,n.level=this.level,t>0&&this.level++,this.tokens.push(n),n},H.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},H.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},H.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const n=this.src.charCodeAt(e);if(!F(n))break}return e},H.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!F(this.src.charCodeAt(--e)))return e+1;return e},H.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},H.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},H.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let i=0,c=e;c<t;c++,i++){let a=0;const l=this.bMarks[c];let f=l,d;for(c+1<t||r?d=this.eMarks[c]+1:d=this.eMarks[c];f<d&&a<n;){const b=this.src.charCodeAt(f);if(F(b))b===9?a+=4-(a+this.bsCount[c])%4:a++;else if(f-l<this.tShift[c])a++;else break;f++}a>n?o[i]=new Array(a-n+1).join(" ")+this.src.slice(f,d):o[i]=this.src.slice(f,d)}return o.join("")},H.prototype.Token=I;const ir=65536;function oe(u,e){const t=u.bMarks[e]+u.tShift[e],n=u.eMarks[e];return u.src.slice(t,n)}function Xe(u){const e=[],t=u.length;let n=0,r=u.charCodeAt(n),o=!1,i=0,c="";for(;n<t;)r===124&&(o?(c+=u.substring(i,n-1),i=n):(e.push(c+u.substring(i,n)),c="",i=n+1)),o=r===92,n++,r=u.charCodeAt(n);return e.push(c+u.substring(i)),e}function sr(u,e,t,n){if(e+2>t)return!1;let r=e+1;if(u.sCount[r]<u.blkIndent||u.sCount[r]-u.blkIndent>=4)return!1;let o=u.bMarks[r]+u.tShift[r];if(o>=u.eMarks[r])return!1;const i=u.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58||o>=u.eMarks[r])return!1;const c=u.src.charCodeAt(o++);if(c!==124&&c!==45&&c!==58&&!F(c)||i===45&&F(c))return!1;for(;o<u.eMarks[r];){const g=u.src.charCodeAt(o);if(g!==124&&g!==45&&g!==58&&!F(g))return!1;o++}let a=oe(u,e+1),l=a.split("|");const f=[];for(let g=0;g<l.length;g++){const y=l[g].trim();if(!y){if(g===0||g===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?f.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?f.push("left"):f.push("")}if(a=oe(u,e).trim(),a.indexOf("|")===-1||u.sCount[e]-u.blkIndent>=4)return!1;l=Xe(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const d=l.length;if(d===0||d!==f.length)return!1;if(n)return!0;const b=u.parentType;u.parentType="table";const h=u.md.block.ruler.getRules("blockquote"),p=u.push("table_open","table",1),m=[e,0];p.map=m;const k=u.push("thead_open","thead",1);k.map=[e,e+1];const C=u.push("tr_open","tr",1);C.map=[e,e+1];for(let g=0;g<l.length;g++){const y=u.push("th_open","th",1);f[g]&&(y.attrs=[["style","text-align:"+f[g]]]);const w=u.push("inline","",0);w.content=l[g].trim(),w.children=[],u.push("th_close","th",-1)}u.push("tr_close","tr",-1),u.push("thead_close","thead",-1);let x,_=0;for(r=e+2;r<t&&!(u.sCount[r]<u.blkIndent);r++){let g=!1;for(let w=0,E=h.length;w<E;w++)if(h[w](u,r,t,!0)){g=!0;break}if(g||(a=oe(u,r).trim(),!a)||u.sCount[r]-u.blkIndent>=4||(l=Xe(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),_+=d-l.length,_>ir))break;if(r===e+2){const w=u.push("tbody_open","tbody",1);w.map=x=[e+2,0]}const y=u.push("tr_open","tr",1);y.map=[r,r+1];for(let w=0;w<d;w++){const E=u.push("td_open","td",1);f[w]&&(E.attrs=[["style","text-align:"+f[w]]]);const A=u.push("inline","",0);A.content=l[w]?l[w].trim():"",A.children=[],u.push("td_close","td",-1)}u.push("tr_close","tr",-1)}return x&&(u.push("tbody_close","tbody",-1),x[1]=r),u.push("table_close","table",-1),m[1]=r,u.parentType=b,u.line=r,!0}function ar(u,e,t){if(u.sCount[e]-u.blkIndent<4)return!1;let n=e+1,r=n;for(;n<t;){if(u.isEmpty(n)){n++;continue}if(u.sCount[n]-u.blkIndent>=4){n++,r=n;continue}break}u.line=r;const o=u.push("code_block","code",0);return o.content=u.getLines(e,r,4+u.blkIndent,!1)+`
|
|
57
|
-
`,o.map=[e,u.line],!0}function lr(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||r+3>o)return!1;const i=u.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let c=r;r=u.skipChars(r,i);let a=r-c;if(a<3)return!1;const l=u.src.slice(c,r),f=u.src.slice(r,o);if(i===96&&f.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;let d=e,b=!1;for(;d++,!(d>=t||(r=c=u.bMarks[d]+u.tShift[d],o=u.eMarks[d],r<o&&u.sCount[d]<u.blkIndent));)if(u.src.charCodeAt(r)===i&&!(u.sCount[d]-u.blkIndent>=4)&&(r=u.skipChars(r,i),!(r-c<a)&&(r=u.skipSpaces(r),!(r<o)))){b=!0;break}a=u.sCount[e],u.line=d+(b?1:0);const h=u.push("fence","code",0);return h.info=f,h.content=u.getLines(e+1,d,a,!0),h.markup=l,h.map=[e,u.line],!0}function fr(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];const i=u.lineMax;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(r)!==62)return!1;if(n)return!0;const c=[],a=[],l=[],f=[],d=u.md.block.ruler.getRules("blockquote"),b=u.parentType;u.parentType="blockquote";let h=!1,p;for(p=e;p<t;p++){const _=u.sCount[p]<u.blkIndent;if(r=u.bMarks[p]+u.tShift[p],o=u.eMarks[p],r>=o)break;if(u.src.charCodeAt(r++)===62&&!_){let y=u.sCount[p]+1,w,E;u.src.charCodeAt(r)===32?(r++,y++,E=!1,w=!0):u.src.charCodeAt(r)===9?(w=!0,(u.bsCount[p]+y)%4===3?(r++,y++,E=!1):E=!0):w=!1;let A=y;for(c.push(u.bMarks[p]),u.bMarks[p]=r;r<o;){const z=u.src.charCodeAt(r);if(F(z))z===9?A+=4-(A+u.bsCount[p]+(E?1:0))%4:A++;else break;r++}h=r>=o,a.push(u.bsCount[p]),u.bsCount[p]=u.sCount[p]+1+(w?1:0),l.push(u.sCount[p]),u.sCount[p]=A-y,f.push(u.tShift[p]),u.tShift[p]=r-u.bMarks[p];continue}if(h)break;let g=!1;for(let y=0,w=d.length;y<w;y++)if(d[y](u,p,t,!0)){g=!0;break}if(g){u.lineMax=p,u.blkIndent!==0&&(c.push(u.bMarks[p]),a.push(u.bsCount[p]),f.push(u.tShift[p]),l.push(u.sCount[p]),u.sCount[p]-=u.blkIndent);break}c.push(u.bMarks[p]),a.push(u.bsCount[p]),f.push(u.tShift[p]),l.push(u.sCount[p]),u.sCount[p]=-1}const m=u.blkIndent;u.blkIndent=0;const k=u.push("blockquote_open","blockquote",1);k.markup=">";const C=[e,0];k.map=C,u.md.block.tokenize(u,e,p);const x=u.push("blockquote_close","blockquote",-1);x.markup=">",u.lineMax=i,u.parentType=b,C[1]=u.line;for(let _=0;_<f.length;_++)u.bMarks[_+e]=c[_],u.tShift[_+e]=f[_],u.sCount[_+e]=l[_],u.bsCount[_+e]=a[_];return u.blkIndent=m,!0}function dr(u,e,t,n){const r=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let o=u.bMarks[e]+u.tShift[e];const i=u.src.charCodeAt(o++);if(i!==42&&i!==45&&i!==95)return!1;let c=1;for(;o<r;){const l=u.src.charCodeAt(o++);if(l!==i&&!F(l))return!1;l===i&&c++}if(c<3)return!1;if(n)return!0;u.line=e+1;const a=u.push("hr","hr",0);return a.map=[e,u.line],a.markup=Array(c+1).join(String.fromCharCode(i)),!0}function Qe(u,e){const t=u.eMarks[e];let n=u.bMarks[e]+u.tShift[e];const r=u.src.charCodeAt(n++);if(r!==42&&r!==45&&r!==43)return-1;if(n<t){const o=u.src.charCodeAt(n);if(!F(o))return-1}return n}function Ye(u,e){const t=u.bMarks[e]+u.tShift[e],n=u.eMarks[e];let r=t;if(r+1>=n)return-1;let o=u.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=n)return-1;if(o=u.src.charCodeAt(r++),o>=48&&o<=57){if(r-t>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<n&&(o=u.src.charCodeAt(r),!F(o))?-1:r}function pr(u,e){const t=u.level+2;for(let n=e+2,r=u.tokens.length-2;n<r;n++)u.tokens[n].level===t&&u.tokens[n].type==="paragraph_open"&&(u.tokens[n+2].hidden=!0,u.tokens[n].hidden=!0,n+=2)}function hr(u,e,t,n){let r,o,i,c,a=e,l=!0;if(u.sCount[a]-u.blkIndent>=4||u.listIndent>=0&&u.sCount[a]-u.listIndent>=4&&u.sCount[a]<u.blkIndent)return!1;let f=!1;n&&u.parentType==="paragraph"&&u.sCount[a]>=u.blkIndent&&(f=!0);let d,b,h;if((h=Ye(u,a))>=0){if(d=!0,i=u.bMarks[a]+u.tShift[a],b=Number(u.src.slice(i,h-1)),f&&b!==1)return!1}else if((h=Qe(u,a))>=0)d=!1;else return!1;if(f&&u.skipSpaces(h)>=u.eMarks[a])return!1;if(n)return!0;const p=u.src.charCodeAt(h-1),m=u.tokens.length;d?(c=u.push("ordered_list_open","ol",1),b!==1&&(c.attrs=[["start",b]])):c=u.push("bullet_list_open","ul",1);const k=[a,0];c.map=k,c.markup=String.fromCharCode(p);let C=!1;const x=u.md.block.ruler.getRules("list"),_=u.parentType;for(u.parentType="list";a<t;){o=h,r=u.eMarks[a];const g=u.sCount[a]+h-(u.bMarks[a]+u.tShift[a]);let y=g;for(;o<r;){const Y=u.src.charCodeAt(o);if(Y===9)y+=4-(y+u.bsCount[a])%4;else if(Y===32)y++;else break;o++}const w=o;let E;w>=r?E=1:E=y-g,E>4&&(E=1);const A=g+E;c=u.push("list_item_open","li",1),c.markup=String.fromCharCode(p);const z=[a,0];c.map=z,d&&(c.info=u.src.slice(i,h-1));const S=u.tight,D=u.tShift[a],N=u.sCount[a],X=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=A,u.tight=!0,u.tShift[a]=w-u.bMarks[a],u.sCount[a]=y,w>=r&&u.isEmpty(a+1)?u.line=Math.min(u.line+2,t):u.md.block.tokenize(u,a,t,!0),(!u.tight||C)&&(l=!1),C=u.line-a>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=X,u.tShift[a]=D,u.sCount[a]=N,u.tight=S,c=u.push("list_item_close","li",-1),c.markup=String.fromCharCode(p),a=u.line,z[1]=a,a>=t||u.sCount[a]<u.blkIndent||u.sCount[a]-u.blkIndent>=4)break;let Q=!1;for(let Y=0,au=x.length;Y<au;Y++)if(x[Y](u,a,t,!0)){Q=!0;break}if(Q)break;if(d){if(h=Ye(u,a),h<0)break;i=u.bMarks[a]+u.tShift[a]}else if(h=Qe(u,a),h<0)break;if(p!==u.src.charCodeAt(h-1))break}return d?c=u.push("ordered_list_close","ol",-1):c=u.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(p),k[1]=a,u.line=a,u.parentType=_,l&&pr(u,m),!0}function br(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e],i=e+1;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(r)!==91)return!1;function c(x){const _=u.lineMax;if(x>=_||u.isEmpty(x))return null;let g=!1;if(u.sCount[x]-u.blkIndent>3&&(g=!0),u.sCount[x]<0&&(g=!0),!g){const E=u.md.block.ruler.getRules("reference"),A=u.parentType;u.parentType="reference";let z=!1;for(let S=0,D=E.length;S<D;S++)if(E[S](u,x,_,!0)){z=!0;break}if(u.parentType=A,z)return null}const y=u.bMarks[x]+u.tShift[x],w=u.eMarks[x];return u.src.slice(y,w+1)}let a=u.src.slice(r,o+1);o=a.length;let l=-1;for(r=1;r<o;r++){const x=a.charCodeAt(r);if(x===91)return!1;if(x===93){l=r;break}else if(x===10){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}else if(x===92&&(r++,r<o&&a.charCodeAt(r)===10)){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}}if(l<0||a.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<o;r++){const x=a.charCodeAt(r);if(x===10){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}else if(!F(x))break}const f=u.md.helpers.parseLinkDestination(a,r,o);if(!f.ok)return!1;const d=u.md.normalizeLink(f.str);if(!u.md.validateLink(d))return!1;r=f.pos;const b=r,h=i,p=r;for(;r<o;r++){const x=a.charCodeAt(r);if(x===10){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}else if(!F(x))break}let m=u.md.helpers.parseLinkTitle(a,r,o);for(;m.can_continue;){const x=c(i);if(x===null)break;a+=x,r=o,o=a.length,i++,m=u.md.helpers.parseLinkTitle(a,r,o,m)}let k;for(r<o&&p!==r&&m.ok?(k=m.str,r=m.pos):(k="",r=b,i=h);r<o;){const x=a.charCodeAt(r);if(!F(x))break;r++}if(r<o&&a.charCodeAt(r)!==10&&k)for(k="",r=b,i=h;r<o;){const x=a.charCodeAt(r);if(!F(x))break;r++}if(r<o&&a.charCodeAt(r)!==10)return!1;const C=Ru(a.slice(1,l));return C?(n||(typeof u.env.references>"u"&&(u.env.references={}),typeof u.env.references[C]>"u"&&(u.env.references[C]={title:k,href:d}),u.line=i),!0):!1}const mr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],xr="[a-zA-Z_:][a-zA-Z0-9:._-]*",_r="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ke="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+xr+"(?:\\s*=\\s*"+_r+")?)")+"*\\s*\\/?>",u0="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",gr="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",kr="<[?][\\s\\S]*?[?]>",yr="<![A-Za-z][^>]*>",Cr="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Er=new RegExp("^(?:"+Ke+"|"+u0+"|"+gr+"|"+kr+"|"+yr+"|"+Cr+")"),wr=new RegExp("^(?:"+Ke+"|"+u0+")"),hu=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+mr.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(wr.source+"\\s*$"),/^$/,!1]];function Dr(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(r)!==60)return!1;let i=u.src.slice(r,o),c=0;for(;c<hu.length&&!hu[c][0].test(i);c++);if(c===hu.length)return!1;if(n)return hu[c][2];let a=e+1;if(!hu[c][1].test(i)){for(;a<t&&!(u.sCount[a]<u.blkIndent);a++)if(r=u.bMarks[a]+u.tShift[a],o=u.eMarks[a],i=u.src.slice(r,o),hu[c][1].test(i)){i.length!==0&&a++;break}}u.line=a;const l=u.push("html_block","",0);return l.map=[e,a],l.content=u.getLines(e,a,u.blkIndent,!0),!0}function Ar(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let i=u.src.charCodeAt(r);if(i!==35||r>=o)return!1;let c=1;for(i=u.src.charCodeAt(++r);i===35&&r<o&&c<=6;)c++,i=u.src.charCodeAt(++r);if(c>6||r<o&&!F(i))return!1;if(n)return!0;o=u.skipSpacesBack(o,r);const a=u.skipCharsBack(o,35,r);a>r&&F(u.src.charCodeAt(a-1))&&(o=a),u.line=e+1;const l=u.push("heading_open","h"+String(c),1);l.markup="########".slice(0,c),l.map=[e,u.line];const f=u.push("inline","",0);f.content=u.src.slice(r,o).trim(),f.map=[e,u.line],f.children=[];const d=u.push("heading_close","h"+String(c),-1);return d.markup="########".slice(0,c),!0}function Fr(u,e,t){const n=u.md.block.ruler.getRules("paragraph");if(u.sCount[e]-u.blkIndent>=4)return!1;const r=u.parentType;u.parentType="paragraph";let o=0,i,c=e+1;for(;c<t&&!u.isEmpty(c);c++){if(u.sCount[c]-u.blkIndent>3)continue;if(u.sCount[c]>=u.blkIndent){let h=u.bMarks[c]+u.tShift[c];const p=u.eMarks[c];if(h<p&&(i=u.src.charCodeAt(h),(i===45||i===61)&&(h=u.skipChars(h,i),h=u.skipSpaces(h),h>=p))){o=i===61?1:2;break}}if(u.sCount[c]<0)continue;let b=!1;for(let h=0,p=n.length;h<p;h++)if(n[h](u,c,t,!0)){b=!0;break}if(b)break}if(!o)return!1;const a=u.getLines(e,c,u.blkIndent,!1).trim();u.line=c+1;const l=u.push("heading_open","h"+String(o),1);l.markup=String.fromCharCode(i),l.map=[e,u.line];const f=u.push("inline","",0);f.content=a,f.map=[e,u.line-1],f.children=[];const d=u.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(i),u.parentType=r,!0}function Sr(u,e,t){const n=u.md.block.ruler.getRules("paragraph"),r=u.parentType;let o=e+1;for(u.parentType="paragraph";o<t&&!u.isEmpty(o);o++){if(u.sCount[o]-u.blkIndent>3||u.sCount[o]<0)continue;let l=!1;for(let f=0,d=n.length;f<d;f++)if(n[f](u,o,t,!0)){l=!0;break}if(l)break}const i=u.getLines(e,o,u.blkIndent,!1).trim();u.line=o;const c=u.push("paragraph_open","p",1);c.map=[e,u.line];const a=u.push("inline","",0);return a.content=i,a.map=[e,u.line],a.children=[],u.push("paragraph_close","p",-1),u.parentType=r,!0}const Nu=[["table",sr,["paragraph","reference"]],["code",ar],["fence",lr,["paragraph","reference","blockquote","list"]],["blockquote",fr,["paragraph","reference","blockquote","list"]],["hr",dr,["paragraph","reference","blockquote","list"]],["list",hr,["paragraph","reference","blockquote"]],["reference",br],["html_block",Dr,["paragraph","reference","blockquote"]],["heading",Ar,["paragraph","reference","blockquote"]],["lheading",Fr],["paragraph",Sr]];function Iu(){this.ruler=new v;for(let u=0;u<Nu.length;u++)this.ruler.push(Nu[u][0],Nu[u][1],{alt:(Nu[u][2]||[]).slice()})}Iu.prototype.tokenize=function(u,e,t){const n=this.ruler.getRules(""),r=n.length,o=u.md.options.maxNesting;let i=e,c=!1;for(;i<t&&(u.line=i=u.skipEmptyLines(i),!(i>=t||u.sCount[i]<u.blkIndent));){if(u.level>=o){u.line=t;break}const a=u.line;let l=!1;for(let f=0;f<r;f++)if(l=n[f](u,i,t,!1),l){if(a>=u.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");u.tight=!c,u.isEmpty(u.line-1)&&(c=!0),i=u.line,i<t&&u.isEmpty(i)&&(c=!0,i++,u.line=i)}},Iu.prototype.parse=function(u,e,t,n){if(!u)return;const r=new this.State(u,e,t,n);this.tokenize(r,r.line,r.lineMax)},Iu.prototype.State=H;function Du(u,e,t,n){this.src=u,this.env=t,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Du.prototype.pushPending=function(){const u=new I("text","",0);return u.content=this.pending,u.level=this.pendingLevel,this.tokens.push(u),this.pending="",u},Du.prototype.push=function(u,e,t){this.pending&&this.pushPending();const n=new I(u,e,t);let r=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n},Du.prototype.scanDelims=function(u,e){const t=this.posMax,n=this.src.charCodeAt(u),r=u>0?this.src.charCodeAt(u-1):32;let o=u;for(;o<t&&this.src.charCodeAt(o)===n;)o++;const i=o-u,c=o<t?this.src.charCodeAt(o):32,a=wu(r)||Eu(String.fromCharCode(r)),l=wu(c)||Eu(String.fromCharCode(c)),f=Cu(r),d=Cu(c),b=!d&&(!l||f||a),h=!f&&(!a||d||l);return{can_open:b&&(e||!h||a),can_close:h&&(e||!b||l),length:i}},Du.prototype.Token=I;function Br(u){switch(u){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function zr(u,e){let t=u.pos;for(;t<u.posMax&&!Br(u.src.charCodeAt(t));)t++;return t===u.pos?!1:(e||(u.pending+=u.src.slice(u.pos,t)),u.pos=t,!0)}const Mr=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Tr(u,e){if(!u.md.options.linkify||u.linkLevel>0)return!1;const t=u.pos,n=u.posMax;if(t+3>n||u.src.charCodeAt(t)!==58||u.src.charCodeAt(t+1)!==47||u.src.charCodeAt(t+2)!==47)return!1;const r=u.pending.match(Mr);if(!r)return!1;const o=r[1],i=u.md.linkify.matchAtStart(u.src.slice(t-o.length));if(!i)return!1;let c=i.url;if(c.length<=o.length)return!1;c=c.replace(/\*+$/,"");const a=u.md.normalizeLink(c);if(!u.md.validateLink(a))return!1;if(!e){u.pending=u.pending.slice(0,-o.length);const l=u.push("link_open","a",1);l.attrs=[["href",a]],l.markup="linkify",l.info="auto";const f=u.push("text","",0);f.content=u.md.normalizeLinkText(c);const d=u.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return u.pos+=c.length-o.length,!0}function qr(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==10)return!1;const n=u.pending.length-1,r=u.posMax;if(!e)if(n>=0&&u.pending.charCodeAt(n)===32)if(n>=1&&u.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&u.pending.charCodeAt(o-1)===32;)o--;u.pending=u.pending.slice(0,o),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(t++;t<r&&F(u.src.charCodeAt(t));)t++;return u.pos=t,!0}const ce=[];for(let u=0;u<256;u++)ce.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u){ce[u.charCodeAt(0)]=1});function vr(u,e){let t=u.pos;const n=u.posMax;if(u.src.charCodeAt(t)!==92||(t++,t>=n))return!1;let r=u.src.charCodeAt(t);if(r===10){for(e||u.push("hardbreak","br",0),t++;t<n&&(r=u.src.charCodeAt(t),!!F(r));)t++;return u.pos=t,!0}let o=u.src[t];if(r>=55296&&r<=56319&&t+1<n){const c=u.src.charCodeAt(t+1);c>=56320&&c<=57343&&(o+=u.src[t+1],t++)}const i="\\"+o;if(!e){const c=u.push("text_special","",0);r<256&&ce[r]!==0?c.content=o:c.content=i,c.markup=i,c.info="escape"}return u.pos=t+1,!0}function Rr(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==96)return!1;const r=t;t++;const o=u.posMax;for(;t<o&&u.src.charCodeAt(t)===96;)t++;const i=u.src.slice(r,t),c=i.length;if(u.backticksScanned&&(u.backticks[c]||0)<=r)return e||(u.pending+=i),u.pos+=c,!0;let a=t,l;for(;(l=u.src.indexOf("`",a))!==-1;){for(a=l+1;a<o&&u.src.charCodeAt(a)===96;)a++;const f=a-l;if(f===c){if(!e){const d=u.push("code_inline","code",0);d.markup=i,d.content=u.src.slice(t,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return u.pos=a,!0}u.backticks[f]=l}return u.backticksScanned=!0,e||(u.pending+=i),u.pos+=c,!0}function Lr(u,e){const t=u.pos,n=u.src.charCodeAt(t);if(e||n!==126)return!1;const r=u.scanDelims(u.pos,!0);let o=r.length;const i=String.fromCharCode(n);if(o<2)return!1;let c;o%2&&(c=u.push("text","",0),c.content=i,o--);for(let a=0;a<o;a+=2)c=u.push("text","",0),c.content=i+i,u.delimiters.push({marker:n,length:0,token:u.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return u.pos+=r.length,!0}function e0(u,e){let t;const n=[],r=e.length;for(let o=0;o<r;o++){const i=e[o];if(i.marker!==126||i.end===-1)continue;const c=e[i.end];t=u.tokens[i.token],t.type="s_open",t.tag="s",t.nesting=1,t.markup="~~",t.content="",t=u.tokens[c.token],t.type="s_close",t.tag="s",t.nesting=-1,t.markup="~~",t.content="",u.tokens[c.token-1].type==="text"&&u.tokens[c.token-1].content==="~"&&n.push(c.token-1)}for(;n.length;){const o=n.pop();let i=o+1;for(;i<u.tokens.length&&u.tokens[i].type==="s_close";)i++;i--,o!==i&&(t=u.tokens[i],u.tokens[i]=u.tokens[o],u.tokens[o]=t)}}function Nr(u){const e=u.tokens_meta,t=u.tokens_meta.length;e0(u,u.delimiters);for(let n=0;n<t;n++)e[n]&&e[n].delimiters&&e0(u,e[n].delimiters)}const t0={tokenize:Lr,postProcess:Nr};function Ir(u,e){const t=u.pos,n=u.src.charCodeAt(t);if(e||n!==95&&n!==42)return!1;const r=u.scanDelims(u.pos,n===42);for(let o=0;o<r.length;o++){const i=u.push("text","",0);i.content=String.fromCharCode(n),u.delimiters.push({marker:n,length:r.length,token:u.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return u.pos+=r.length,!0}function n0(u,e){const t=e.length;for(let n=t-1;n>=0;n--){const r=e[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=e[r.end],i=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===o.token+1,c=String.fromCharCode(r.marker),a=u.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?c+c:c,a.content="";const l=u.tokens[o.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?c+c:c,l.content="",i&&(u.tokens[e[n-1].token].content="",u.tokens[e[r.end+1].token].content="",n--)}}function Pr(u){const e=u.tokens_meta,t=u.tokens_meta.length;n0(u,u.delimiters);for(let n=0;n<t;n++)e[n]&&e[n].delimiters&&n0(u,e[n].delimiters)}const r0={tokenize:Ir,postProcess:Pr};function Or(u,e){let t,n,r,o,i="",c="",a=u.pos,l=!0;if(u.src.charCodeAt(u.pos)!==91)return!1;const f=u.pos,d=u.posMax,b=u.pos+1,h=u.md.helpers.parseLinkLabel(u,u.pos,!0);if(h<0)return!1;let p=h+1;if(p<d&&u.src.charCodeAt(p)===40){for(l=!1,p++;p<d&&(t=u.src.charCodeAt(p),!(!F(t)&&t!==10));p++);if(p>=d)return!1;if(a=p,r=u.md.helpers.parseLinkDestination(u.src,p,u.posMax),r.ok){for(i=u.md.normalizeLink(r.str),u.md.validateLink(i)?p=r.pos:i="",a=p;p<d&&(t=u.src.charCodeAt(p),!(!F(t)&&t!==10));p++);if(r=u.md.helpers.parseLinkTitle(u.src,p,u.posMax),p<d&&a!==p&&r.ok)for(c=r.str,p=r.pos;p<d&&(t=u.src.charCodeAt(p),!(!F(t)&&t!==10));p++);}(p>=d||u.src.charCodeAt(p)!==41)&&(l=!0),p++}if(l){if(typeof u.env.references>"u")return!1;if(p<d&&u.src.charCodeAt(p)===91?(a=p+1,p=u.md.helpers.parseLinkLabel(u,p),p>=0?n=u.src.slice(a,p++):p=h+1):p=h+1,n||(n=u.src.slice(b,h)),o=u.env.references[Ru(n)],!o)return u.pos=f,!1;i=o.href,c=o.title}if(!e){u.pos=b,u.posMax=h;const m=u.push("link_open","a",1),k=[["href",i]];m.attrs=k,c&&k.push(["title",c]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=p,u.posMax=d,!0}function $r(u,e){let t,n,r,o,i,c,a,l,f="";const d=u.pos,b=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;const h=u.pos+2,p=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(p<0)return!1;if(o=p+1,o<b&&u.src.charCodeAt(o)===40){for(o++;o<b&&(t=u.src.charCodeAt(o),!(!F(t)&&t!==10));o++);if(o>=b)return!1;for(l=o,c=u.md.helpers.parseLinkDestination(u.src,o,u.posMax),c.ok&&(f=u.md.normalizeLink(c.str),u.md.validateLink(f)?o=c.pos:f=""),l=o;o<b&&(t=u.src.charCodeAt(o),!(!F(t)&&t!==10));o++);if(c=u.md.helpers.parseLinkTitle(u.src,o,u.posMax),o<b&&l!==o&&c.ok)for(a=c.str,o=c.pos;o<b&&(t=u.src.charCodeAt(o),!(!F(t)&&t!==10));o++);else a="";if(o>=b||u.src.charCodeAt(o)!==41)return u.pos=d,!1;o++}else{if(typeof u.env.references>"u")return!1;if(o<b&&u.src.charCodeAt(o)===91?(l=o+1,o=u.md.helpers.parseLinkLabel(u,o),o>=0?r=u.src.slice(l,o++):o=p+1):o=p+1,r||(r=u.src.slice(h,p)),i=u.env.references[Ru(r)],!i)return u.pos=d,!1;f=i.href,a=i.title}if(!e){n=u.src.slice(h,p);const m=[];u.md.inline.parse(n,u.md,u.env,m);const k=u.push("image","img",0),C=[["src",f],["alt",""]];k.attrs=C,k.children=m,k.content=n,a&&C.push(["title",a])}return u.pos=o,u.posMax=b,!0}const Vr=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,jr=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Hr(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==60)return!1;const n=u.pos,r=u.posMax;for(;;){if(++t>=r)return!1;const i=u.src.charCodeAt(t);if(i===60)return!1;if(i===62)break}const o=u.src.slice(n+1,t);if(jr.test(o)){const i=u.md.normalizeLink(o);if(!u.md.validateLink(i))return!1;if(!e){const c=u.push("link_open","a",1);c.attrs=[["href",i]],c.markup="autolink",c.info="auto";const a=u.push("text","",0);a.content=u.md.normalizeLinkText(o);const l=u.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return u.pos+=o.length+2,!0}if(Vr.test(o)){const i=u.md.normalizeLink("mailto:"+o);if(!u.md.validateLink(i))return!1;if(!e){const c=u.push("link_open","a",1);c.attrs=[["href",i]],c.markup="autolink",c.info="auto";const a=u.push("text","",0);a.content=u.md.normalizeLinkText(o);const l=u.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return u.pos+=o.length+2,!0}return!1}function Zr(u){return/^<a[>\s]/i.test(u)}function Ur(u){return/^<\/a\s*>/i.test(u)}function Wr(u){const e=u|32;return e>=97&&e<=122}function Gr(u,e){if(!u.md.options.html)return!1;const t=u.posMax,n=u.pos;if(u.src.charCodeAt(n)!==60||n+2>=t)return!1;const r=u.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!Wr(r))return!1;const o=u.src.slice(n).match(Er);if(!o)return!1;if(!e){const i=u.push("html_inline","",0);i.content=o[0],Zr(i.content)&&u.linkLevel++,Ur(i.content)&&u.linkLevel--}return u.pos+=o[0].length,!0}const Jr=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Xr=/^&([a-z][a-z0-9]{1,31});/i;function Qr(u,e){const t=u.pos,n=u.posMax;if(u.src.charCodeAt(t)!==38||t+1>=n)return!1;if(u.src.charCodeAt(t+1)===35){const o=u.src.slice(t).match(Jr);if(o){if(!e){const i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),c=u.push("text_special","",0);c.content=te(i)?vu(i):vu(65533),c.markup=o[0],c.info="entity"}return u.pos+=o[0].length,!0}}else{const o=u.src.slice(t).match(Xr);if(o){const i=je(o[0]);if(i!==o[0]){if(!e){const c=u.push("text_special","",0);c.content=i,c.markup=o[0],c.info="entity"}return u.pos+=o[0].length,!0}}}return!1}function o0(u){const e={},t=u.length;if(!t)return;let n=0,r=-2;const o=[];for(let i=0;i<t;i++){const c=u[i];if(o.push(0),(u[n].marker!==c.marker||r!==c.token-1)&&(n=i),r=c.token,c.length=c.length||0,!c.close)continue;e.hasOwnProperty(c.marker)||(e[c.marker]=[-1,-1,-1,-1,-1,-1]);const a=e[c.marker][(c.open?3:0)+c.length%3];let l=n-o[n]-1,f=l;for(;l>a;l-=o[l]+1){const d=u[l];if(d.marker===c.marker&&d.open&&d.end<0){let b=!1;if((d.close||c.open)&&(d.length+c.length)%3===0&&(d.length%3!==0||c.length%3!==0)&&(b=!0),!b){const h=l>0&&!u[l-1].open?o[l-1]+1:0;o[i]=i-l+h,o[l]=h,c.open=!1,d.end=i,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(e[c.marker][(c.open?3:0)+(c.length||0)%3]=f)}}function Yr(u){const e=u.tokens_meta,t=u.tokens_meta.length;o0(u.delimiters);for(let n=0;n<t;n++)e[n]&&e[n].delimiters&&o0(e[n].delimiters)}function Kr(u){let e,t,n=0;const r=u.tokens,o=u.tokens.length;for(e=t=0;e<o;e++)r[e].nesting<0&&n--,r[e].level=n,r[e].nesting>0&&n++,r[e].type==="text"&&e+1<o&&r[e+1].type==="text"?r[e+1].content=r[e].content+r[e+1].content:(e!==t&&(r[t]=r[e]),t++);e!==t&&(r.length=t)}const ie=[["text",zr],["linkify",Tr],["newline",qr],["escape",vr],["backticks",Rr],["strikethrough",t0.tokenize],["emphasis",r0.tokenize],["link",Or],["image",$r],["autolink",Hr],["html_inline",Gr],["entity",Qr]],se=[["balance_pairs",Yr],["strikethrough",t0.postProcess],["emphasis",r0.postProcess],["fragments_join",Kr]];function Au(){this.ruler=new v;for(let u=0;u<ie.length;u++)this.ruler.push(ie[u][0],ie[u][1]);this.ruler2=new v;for(let u=0;u<se.length;u++)this.ruler2.push(se[u][0],se[u][1])}Au.prototype.skipToken=function(u){const e=u.pos,t=this.ruler.getRules(""),n=t.length,r=u.md.options.maxNesting,o=u.cache;if(typeof o[e]<"u"){u.pos=o[e];return}let i=!1;if(u.level<r){for(let c=0;c<n;c++)if(u.level++,i=t[c](u,!0),u.level--,i){if(e>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;i||u.pos++,o[e]=u.pos},Au.prototype.tokenize=function(u){const e=this.ruler.getRules(""),t=e.length,n=u.posMax,r=u.md.options.maxNesting;for(;u.pos<n;){const o=u.pos;let i=!1;if(u.level<r){for(let c=0;c<t;c++)if(i=e[c](u,!1),i){if(o>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(u.pos>=n)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()},Au.prototype.parse=function(u,e,t,n){const r=new this.State(u,e,t,n);this.tokenize(r);const o=this.ruler2.getRules(""),i=o.length;for(let c=0;c<i;c++)o[c](r)},Au.prototype.State=Du;function uo(u){const e={};u=u||{},e.src_Any=Ie.source,e.src_Cc=Pe.source,e.src_Z=$e.source,e.src_P=Yu.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const t="[><|]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(u["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(u["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function ae(u){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){u[n]=t[n]})}),u}function Pu(u){return Object.prototype.toString.call(u)}function eo(u){return Pu(u)==="[object String]"}function to(u){return Pu(u)==="[object Object]"}function no(u){return Pu(u)==="[object RegExp]"}function c0(u){return Pu(u)==="[object Function]"}function ro(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const i0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function oo(u){return Object.keys(u||{}).reduce(function(e,t){return e||i0.hasOwnProperty(t)},!1)}const co={"http:":{validate:function(u,e,t){const n=u.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(n)?n.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(u,e,t){const n=u.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(n)?e>=3&&u[e-3]===":"||e>=3&&u[e-3]==="/"?0:n.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(u,e,t){const n=u.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(n)?n.match(t.re.mailto)[0].length:0}}},io="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",so="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ao(u){u.__index__=-1,u.__text_cache__=""}function lo(u){return function(e,t){const n=e.slice(t);return u.test(n)?n.match(u)[0].length:0}}function s0(){return function(u,e){e.normalize(u)}}function Ou(u){const e=u.re=uo(u.__opts__),t=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||t.push(io),t.push(e.src_xn),e.src_tlds=t.join("|");function n(c){return c.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");const r=[];u.__compiled__={};function o(c,a){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+a)}Object.keys(u.__schemas__).forEach(function(c){const a=u.__schemas__[c];if(a===null)return;const l={validate:null,link:null};if(u.__compiled__[c]=l,to(a)){no(a.validate)?l.validate=lo(a.validate):c0(a.validate)?l.validate=a.validate:o(c,a),c0(a.normalize)?l.normalize=a.normalize:a.normalize?o(c,a):l.normalize=s0();return}if(eo(a)){r.push(c);return}o(c,a)}),r.forEach(function(c){u.__compiled__[u.__schemas__[c]]&&(u.__compiled__[c].validate=u.__compiled__[u.__schemas__[c]].validate,u.__compiled__[c].normalize=u.__compiled__[u.__schemas__[c]].normalize)}),u.__compiled__[""]={validate:null,normalize:s0()};const i=Object.keys(u.__compiled__).filter(function(c){return c.length>0&&u.__compiled__[c]}).map(ro).join("|");u.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","i"),u.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","ig"),u.re.schema_at_start=RegExp("^"+u.re.schema_search.source,"i"),u.re.pretest=RegExp("("+u.re.schema_test.source+")|("+u.re.host_fuzzy_test.source+")|@","i"),ao(u)}function fo(u,e){const t=u.__index__,n=u.__last_index__,r=u.__text_cache__.slice(t,n);this.schema=u.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=n+e,this.raw=r,this.text=r,this.url=r}function le(u,e){const t=new fo(u,e);return u.__compiled__[t.schema].normalize(t,u),t}function R(u,e){if(!(this instanceof R))return new R(u,e);e||oo(u)&&(e=u,u={}),this.__opts__=ae({},i0,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ae({},co,u),this.__compiled__={},this.__tlds__=so,this.__tlds_replaced__=!1,this.re={},Ou(this)}R.prototype.add=function(e,t){return this.__schemas__[e]=t,Ou(this),this},R.prototype.set=function(e){return this.__opts__=ae(this.__opts__,e),this},R.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,i,c,a,l,f;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(e))!==null;)if(o=this.testSchemaAt(e,t[2],a.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=e.indexOf("@"),f>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(i=r.index+r[1].length,c=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c))),this.__index__>=0},R.prototype.pretest=function(e){return this.re.pretest.test(e)},R.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},R.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(le(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(le(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},R.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,le(this,0)):null},R.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,r,o){return n!==o[r-1]}).reverse(),Ou(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ou(this),this)},R.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},R.prototype.onCompile=function(){};const bu=2147483647,Z=36,fe=1,Fu=26,po=38,ho=700,a0=72,l0=128,f0="-",bo=/^xn--/,mo=/[^\0-\x7F]/,xo=/[\x2E\u3002\uFF0E\uFF61]/g,_o={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},de=Z-fe,U=Math.floor,pe=String.fromCharCode;function tu(u){throw new RangeError(_o[u])}function go(u,e){const t=[];let n=u.length;for(;n--;)t[n]=e(u[n]);return t}function d0(u,e){const t=u.split("@");let n="";t.length>1&&(n=t[0]+"@",u=t[1]),u=u.replace(xo,".");const r=u.split("."),o=go(r,e).join(".");return n+o}function p0(u){const e=[];let t=0;const n=u.length;for(;t<n;){const r=u.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){const o=u.charCodeAt(t++);(o&64512)==56320?e.push(((r&1023)<<10)+(o&1023)+65536):(e.push(r),t--)}else e.push(r)}return e}const ko=u=>String.fromCodePoint(...u),yo=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:Z},h0=function(u,e){return u+22+75*(u<26)-((e!=0)<<5)},b0=function(u,e,t){let n=0;for(u=t?U(u/ho):u>>1,u+=U(u/e);u>de*Fu>>1;n+=Z)u=U(u/de);return U(n+(de+1)*u/(u+po))},m0=function(u){const e=[],t=u.length;let n=0,r=l0,o=a0,i=u.lastIndexOf(f0);i<0&&(i=0);for(let c=0;c<i;++c)u.charCodeAt(c)>=128&&tu("not-basic"),e.push(u.charCodeAt(c));for(let c=i>0?i+1:0;c<t;){const a=n;for(let f=1,d=Z;;d+=Z){c>=t&&tu("invalid-input");const b=yo(u.charCodeAt(c++));b>=Z&&tu("invalid-input"),b>U((bu-n)/f)&&tu("overflow"),n+=b*f;const h=d<=o?fe:d>=o+Fu?Fu:d-o;if(b<h)break;const p=Z-h;f>U(bu/p)&&tu("overflow"),f*=p}const l=e.length+1;o=b0(n-a,l,a==0),U(n/l)>bu-r&&tu("overflow"),r+=U(n/l),n%=l,e.splice(n++,0,r)}return String.fromCodePoint(...e)},x0=function(u){const e=[];u=p0(u);const t=u.length;let n=l0,r=0,o=a0;for(const a of u)a<128&&e.push(pe(a));const i=e.length;let c=i;for(i&&e.push(f0);c<t;){let a=bu;for(const f of u)f>=n&&f<a&&(a=f);const l=c+1;a-n>U((bu-r)/l)&&tu("overflow"),r+=(a-n)*l,n=a;for(const f of u)if(f<n&&++r>bu&&tu("overflow"),f===n){let d=r;for(let b=Z;;b+=Z){const h=b<=o?fe:b>=o+Fu?Fu:b-o;if(d<h)break;const p=d-h,m=Z-h;e.push(pe(h0(h+p%m,0))),d=U(p/m)}e.push(pe(h0(d,0))),o=b0(r,l,c===i),r=0,++c}++r,++n}return e.join("")},_0={version:"2.3.1",ucs2:{decode:p0,encode:ko},decode:m0,encode:x0,toASCII:function(u){return d0(u,function(e){return mo.test(e)?"xn--"+x0(e):e})},toUnicode:function(u){return d0(u,function(e){return bo.test(e)?m0(e.slice(4).toLowerCase()):e})}},Co={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Eo=/^(vbscript|javascript|file|data):/,wo=/^data:image\/(gif|png|jpeg|webp);/;function Do(u){const e=u.trim().toLowerCase();return Eo.test(e)?wo.test(e):!0}const g0=["http:","https:","mailto:"];function Ao(u){const e=Qu(u,!0);if(e.hostname&&(!e.protocol||g0.indexOf(e.protocol)>=0))try{e.hostname=_0.toASCII(e.hostname)}catch{}return yu(Xu(e))}function Fo(u){const e=Qu(u,!0);if(e.hostname&&(!e.protocol||g0.indexOf(e.protocol)>=0))try{e.hostname=_0.toUnicode(e.hostname)}catch{}return fu(Xu(e),fu.defaultChars+"%")}function P(u,e){if(!(this instanceof P))return new P(u,e);e||ee(u)||(e=u||{},u="default"),this.inline=new Au,this.block=new Iu,this.core=new re,this.renderer=new pu,this.linkify=new R,this.validateLink=Do,this.normalizeLink=Ao,this.normalizeLinkText=Fo,this.utils=Nn,this.helpers=qu({},$n),this.options={},this.configure(u),e&&this.set(e)}P.prototype.set=function(u){return qu(this.options,u),this},P.prototype.configure=function(u){const e=this;if(ee(u)){const t=u;if(u=Co[t],!u)throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&e.set(u.options),u.components&&Object.keys(u.components).forEach(function(t){u.components[t].rules&&e[t].ruler.enableOnly(u.components[t].rules),u.components[t].rules2&&e[t].ruler2.enableOnly(u.components[t].rules2)}),this},P.prototype.enable=function(u,e){let t=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(u,!0))},this),t=t.concat(this.inline.ruler2.enable(u,!0));const n=u.filter(function(r){return t.indexOf(r)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},P.prototype.disable=function(u,e){let t=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(u,!0))},this),t=t.concat(this.inline.ruler2.disable(u,!0));const n=u.filter(function(r){return t.indexOf(r)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},P.prototype.use=function(u){const e=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,e),this},P.prototype.parse=function(u,e){if(typeof u!="string")throw new Error("Input data should be a String");const t=new this.core.State(u,this,e);return this.core.process(t),t.tokens},P.prototype.render=function(u,e){return e=e||{},this.renderer.render(this.parse(u,e),this.options,e)},P.prototype.parseInline=function(u,e){const t=new this.core.State(u,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens},P.prototype.renderInline=function(u,e){return e=e||{},this.renderer.render(this.parseInline(u,e),this.options,e)};function So(){function u(r,o){const i=new P({html:!0,typographer:!0});return i.use(Xt),o&&o.forEach(c=>i.use(c)),i.parse(r,"")}function e(r){const o=n(r)??[];return s.h("article",{class:"sq-article"},t(o))}function t(r){if(r)return r.map(o=>typeof o=="string"?o:s.h(o.tag,o.attrs,t(o.children)))}function n(r){const o=[],i={children:[]};let c=i;return r.forEach(a=>{var m,k,C,x,_,g,y,w,E,A,z;const{type:l,children:f,content:d,attrs:b,tag:h,hidden:p}=a;switch(l){case"heading_open":case"paragraph_open":case"bullet_list_open":case"ordered_list_open":case"list_item_open":case"table_open":case"thead_open":case"tbody_open":case"tr_open":case"th_open":case"td_open":case"blockquote_open":case"strong_open":case"em_open":case"s_open":case"link_open":{if(p)break;const S={tag:h,children:[],attrs:b?Object.fromEntries(b):{}};if(l==="link_open"){const D=a.attrGet("href")??"",N=document.location.origin;D!=null&&D.startsWith("http")&&!D.includes(N)&&(S.attrs.target="_blank",S.attrs.rel="noopener noreferrer",S.attrs.dataOuter="",(m=S.children)==null||m.push({tag:Mt}))}if(l==="table_open"){const D={tag:"div",children:[],attrs:{class:"sq-article-table"}};(k=c.children)==null||k.push(D),o.push(c),c=D}(C=c.children)==null||C.push(S),o.push(c),c=S;break}case"heading_close":case"paragraph_close":case"bullet_list_close":case"ordered_list_close":case"list_item_close":case"table_close":case"thead_close":case"tbody_close":case"tr_close":case"th_close":case"td_close":case"blockquote_close":case"strong_close":case"em_close":case"s_close":case"link_close":{if(p)break;c=o.pop();break}case"code_inline":{(x=c.children)==null||x.push({tag:"code",children:[d],attrs:b?Object.fromEntries(b):{}});break}case"inline":{if(f){const S=n(f);(_=c.children)==null||_.push(...S??[])}else(g=c.children)==null||g.push(d);break}case"text":{(y=c.children)==null||y.push(d);break}case"image":{(w=c.children)==null||w.push({tag:h,children:[],attrs:b?Object.fromEntries(b):{}});break}case"hr":{(E=c.children)==null||E.push({tag:h});break}case"input":{(A=c.children)==null||A.push({tag:h,children:[],attrs:b?Object.fromEntries(b):{}});break}case"html_inline":{if(d.startsWith("</"))c=o.pop();else{const S=d.replace("<","").replace(">",""),D={tag:S,children:[]};S==="blur"&&(D.tag="span",D.attrs={"data-blur":""}),(z=c.children)==null||z.push(D),o.push(c),c=D}break}}}),i.children}return{md2tokens:u,tokens2vueh:e}}const{md2tokens:Bo,tokens2vueh:zo}=So(),Mo=s.defineComponent({props:{text:{type:String,required:!0},md:{type:Boolean,default:!0},plugins:{type:Object}},setup(u){return()=>{if(!u.md)return s.h("article",{class:"sq-article",innerHTML:u.text});const e=Bo(u.text,u.plugins);return zo(e)}}}),To=["src","alt"],qo=["textContent"],vo=s.defineComponent({__name:"avatar",props:{img:{},alt:{},randomColor:{type:Boolean,default:!0},round:{type:Boolean,default:!0},size:{default:"md"}},setup(u){const e=u,t=s.ref(!0),n=s.computed(()=>{const c=[];return e.size!=="md"&&c.push(`sq-avatar--${e.size}`),e.round&&c.push("is-round"),c}),r=s.computed(()=>{if(!e.randomColor)return;const{getRandomColor:c}=Gt();return{"--avatar-bg-color":c()}}),o=s.computed(()=>e.alt.charAt(0).toUpperCase());function i(){t.value=!1}return(c,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-avatar",n.value]),style:s.normalizeStyle(r.value)},[e.img&&t.value?(s.openBlock(),s.createElementBlock("img",{key:0,src:e.img,alt:e.alt,onError:i},null,40,To)):(s.openBlock(),s.createElementBlock("span",{key:1,textContent:s.toDisplayString(o.value)},null,8,qo))],6))}}),Ro={key:0,viewBox:"0 0 100 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Lo={key:1,class:"sq-progress-label"},No=["textContent"],k0=s.defineComponent({__name:"progress",props:{value:{},min:{default:0},max:{default:100},stroke:{default:4},color:{},type:{default:"primary"},theme:{default:"line"},label:{type:Boolean,default:!0}},setup(u){const e=new ResizeObserver(l),t=u,n=s.ref(100),r=s.shallowRef(null),o=s.computed(()=>{const f=[];return t.color||f.push(`is-${t.type}`),t.theme!=="line"&&f.push(`is-${t.theme}`),f}),i=s.computed(()=>{const f=t.max-t.min;return(t.value-t.min)*100/f}),c=s.computed(()=>`${Math.round(i.value*10)/10} %`),a=s.computed(()=>{const f={};if(f["--progress-stroke"]=`${t.stroke}px`,t.theme==="line")f["--progress-value"]=`${i.value}%`;else if(r.value){const d=100/n.value*t.stroke,b=(100-d)/2,h=Math.PI*b*2,p=i.value/100;f["--progress-circle-r"]=`${b}px`,f["--progress-circle-l"]=`${h}px`,f["--progress-circle-stroke"]=`${d}px`,f["--progress-value"]=`${h*p}`,i.value===0&&(f["--progress-circle-opaciry"]="0")}if(t.color){const b=typeof t.color=="string"?t.color:t.color(i.value);f["--progress-color"]=b}return f});s.onMounted(()=>{e.observe(r.value)}),s.onBeforeUnmount(()=>{e.disconnect()});function l(){n.value=r.value.getBoundingClientRect().width}return(f,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-progress",o.value]),ref_key:"progressRef",ref:r,style:s.normalizeStyle(a.value)},[t.theme==="circle"?(s.openBlock(),s.createElementBlock("svg",Ro,[...d[0]||(d[0]=[s.createElementVNode("circle",{class:"sq-progress-track",cx:"50",cy:"50"},null,-1),s.createElementVNode("circle",{class:"sq-progress-path",cx:"50",cy:"50"},null,-1)])])):s.createCommentVNode("",!0),t.theme==="circle"&&t.label?(s.openBlock(),s.createElementBlock("div",Lo,[s.renderSlot(f.$slots,"default",{percentage:i.value},()=>[s.createElementVNode("span",{textContent:s.toDisplayString(c.value)},null,8,No)])])):s.createCommentVNode("",!0)],6))}}),Io={class:"sq-backtop"},Po=s.defineComponent({__name:"backtop",props:{progress:{type:Boolean,default:!0},icon:{default:Y0},transition:{default:"sq-rotate-in-left"},visibilityHeight:{default:100},target:{default:"#app"},progressProps:{}},setup(u){const e=new ResizeObserver(c),t=u,n=s.ref(100),r=s.ref(0),o=s.computed(()=>r.value>t.visibilityHeight);s.onMounted(()=>{c(),r.value=window.scrollY,window.addEventListener("scroll",i);const l=document.querySelector(t.target)??document.body;e.observe(l)}),s.onBeforeUnmount(()=>{window.removeEventListener("scroll",i),e.disconnect()});function i(){r.value=window.scrollY}function c(){const l=document.body.scrollHeight,f=window.innerHeight;n.value=l-f}function a(){window.scrollTo({top:0,behavior:"smooth"})}return(l,f)=>(s.openBlock(),s.createBlock(s.Transition,{name:t.transition},{default:s.withCtx(()=>{var d,b,h;return[s.withDirectives(s.createElementVNode("div",Io,[s.createElementVNode("div",{class:"sq-backtop-wrap",onClick:a},[t.progress?(s.openBlock(),s.createBlock(s.unref(k0),{key:0,theme:"circle",label:!1,value:r.value,max:n.value,type:(d=t.progressProps)==null?void 0:d.type,stroke:(b=t.progressProps)==null?void 0:b.stroke,color:(h=t.progressProps)==null?void 0:h.color},null,8,["value","max","type","stroke","color"])):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.icon)))])])],512),[[s.vShow,o.value]])]}),_:3},8,["name"]))}}),y0=Symbol("button-group-context-keys"),Oo=["disabled"],Su=s.defineComponent({__name:"button",props:{type:{},round:{type:Boolean},text:{type:Boolean},icon:{},loading:{type:Boolean},disabled:{type:Boolean},size:{default:"md"}},emits:["click"],setup(u,{emit:e}){const t=s.inject(y0,void 0),n=e,r=u,o=s.computed(()=>{const d=[],b=a.value,h=l.value,p=f.value;return b!=="md"&&d.push(`sq-button--${b}`),h&&d.push(`is-${h}`),p&&d.push("is-round"),!(t!=null&&t.value)&&r.text&&d.push("is-text"),d}),i=s.computed(()=>r.loading?Rt:r.icon),c=s.computed(()=>r.loading||r.disabled),a=s.computed(()=>{var d;return((d=t==null?void 0:t.value)==null?void 0:d.size)??r.size}),l=s.computed(()=>{var d;return((d=t==null?void 0:t.value)==null?void 0:d.type)??r.type}),f=s.computed(()=>{var d;return((d=t==null?void 0:t.value)==null?void 0:d.round)??r.round});return(d,b)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["sq-button",o.value]),disabled:c.value,onClick:b[0]||(b[0]=h=>n("click",h))},[s.createVNode(s.unref(ku),{size:r.size==="lg"?"md":r.size},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.value),{key:0})):s.createCommentVNode("",!0),s.renderSlot(d.$slots,"default")]),_:3},8,["size"])],10,Oo))}}),$o={class:"sq-button-group"},Vo=s.defineComponent({__name:"button-group",props:{size:{default:"md"},type:{},round:{type:Boolean}},setup(u){const e=u;return s.provide(y0,s.ref({size:s.toRef(e,"size"),type:s.toRef(e,"type"),round:s.toRef(e,"round")})),(t,n)=>(s.openBlock(),s.createElementBlock("div",$o,[s.renderSlot(t.$slots,"default")]))}}),jo={class:"sq-card"},Ho={key:0,class:"sq-card-header"},Zo=["textContent"],Uo={key:1,class:"sq-card-footer"},Wo=s.defineComponent({__name:"card",props:{title:{},decorative:{type:Boolean,default:!1}},setup(u){const e=s.useSlots(),t=u;return(n,r)=>(s.openBlock(),s.createElementBlock("section",jo,[t.title||s.unref(e).title?(s.openBlock(),s.createElementBlock("div",Ho,[s.createElementVNode("h2",{class:s.normalizeClass({"has-decorative":t.decorative}),textContent:s.toDisplayString(t.title)},null,10,Zo),s.renderSlot(n.$slots,"title")])):s.createCommentVNode("",!0),s.renderSlot(n.$slots,"default"),s.unref(e).footer?(s.openBlock(),s.createElementBlock("div",Uo,[s.renderSlot(n.$slots,"footer")])):s.createCommentVNode("",!0)]))}}),Go={key:0,class:"sq-input-prefix"},Jo=["disabled","readonly","placeholder","type"],Xo={class:"sq-input-suffix"},Qo=s.defineComponent({__name:"input",props:s.mergeModels({status:{},round:{type:Boolean},showStatusIcon:{type:Boolean},prefixIcon:{},suffixIcon:{},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},placeholder:{},type:{default:"text"},size:{default:"md"}},{value:{default:""},valueModifiers:{}}),emits:s.mergeModels(["focus","blur","input","change"],["update:value"]),setup(u,{expose:e,emit:t}){const n=s.useSlots(),r=t,o=u,i=s.useModel(u,"value"),c=s.ref(!1),a=s.ref(!1),l=s.shallowRef(null),f=s.computed(()=>{const D=[];return o.size!=="md"&&D.push(`sq-input--${o.size}`),o.status&&D.push(`is-${o.status}`),o.round&&D.push("is-round"),o.disabled&&D.push("is-disabled"),D}),d=s.computed(()=>a.value?wt:Pt),b=s.computed(()=>a.value?"text":o.type),h=s.computed(()=>n.prefix||o.prefixIcon),p=s.computed(()=>c.value&&i.value.length),m=s.computed(()=>p.value&&o.clearable),k=s.computed(()=>p.value&&o.type==="password"),C=s.computed(()=>{const D=o.showStatusIcon&&o.status;return n.suffix||D||o.suffixIcon}),x=s.computed(()=>k.value||m.value||C.value),_=s.computed(()=>{if(o.showStatusIcon&&o.status)switch(o.status){case"success":return tt;case"warn":return jt;case"error":return pt}return o.suffixIcon});function g(D){r("focus",D),!o.readonly&&(c.value=!0)}function y(D){r("blur",D),!o.readonly&&(c.value=!1)}function w(){setTimeout(E)}function E(){var D;(D=l.value)==null||D.focus()}function A(){var D;c.value=!1,(D=l.value)==null||D.blur()}function z(){i.value=""}function S(){a.value=!a.value}return e({focus:E,blur:A}),(D,N)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-input",f.value]),onMousedown:w},[h.value?(s.openBlock(),s.createElementBlock("span",Go,[s.renderSlot(D.$slots,"prefix",{},()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.prefixIcon)))])])):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":N[0]||(N[0]=X=>i.value=X),class:"sq-input-inner",disabled:o.disabled,readonly:o.readonly,placeholder:o.placeholder,type:b.value,ref_key:"inputRef",ref:l,onFocus:g,onBlur:y,onInput:N[1]||(N[1]=X=>r("input",X)),onChange:N[2]||(N[2]=X=>r("change",X))},null,40,Jo),[[s.vModelDynamic,i.value]]),s.withDirectives(s.createElementVNode("span",Xo,[s.withDirectives((s.openBlock(),s.createBlock(s.resolveDynamicComponent(d.value),{class:"sq-input-suffix-pwd",onMousedown:S},null,544)),[[s.vShow,k.value]]),s.withDirectives(s.createVNode(s.unref(at),{class:"sq-input-suffix-clear",onMousedown:z},null,512),[[s.vShow,m.value]]),s.renderSlot(D.$slots,"suffix",{},()=>[_.value?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(_.value),{key:0,class:s.normalizeClass({"sq-input-suffix-status":o.showStatusIcon})},null,8,["class"])):s.createCommentVNode("",!0)])],512),[[s.vShow,x.value]])],34))}}),Yo=["id"],Ko=["textContent"],uc=s.defineComponent({__name:"message",props:{message:{},type:{default:"info"},zIndex:{},offsetTop:{},onDestroy:{},onClose:{},closeAfter:{default:3e3},id:{}},setup(u,{expose:e}){const t=u,n=s.ref(!0),r=s.computed(()=>{switch(t.type){case"primary":case"info":return Fe;case"success":return De;case"warn":return Se;case"error":return Ae}});s.onMounted(()=>{setTimeout(o,t.closeAfter)});function o(){n.value=!1}return e({close:o}),(i,c)=>(s.openBlock(),s.createBlock(s.Transition,{appear:"",name:"sq-zoom-top",onBeforeLeave:t.onClose,onAfterLeave:t.onDestroy},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["sq-message",`is-${t.type}`]),id:t.id,style:s.normalizeStyle({top:`${t.offsetTop}px`,zIndex:t.zIndex})},[s.createVNode(s.unref(ku),{class:"sq-message-main"},{default:s.withCtx(()=>[t.type&&r.value?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.value),{key:0,class:"sq-message-icon"})):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"sq-message-content",textContent:s.toDisplayString(t.message)},null,8,Ko)]),_:1}),c[0]||(c[0]=s.createElementVNode("div",{class:"sq-message-progress"},null,-1))],14,Yo),[[s.vShow,n.value]])]),_:1},8,["onBeforeLeave","onAfterLeave"]))}}),{nextZIndex:ec}=ze(),ou=[],tc=["primary","success","info","warn","error"],nc=document.documentElement,rc=getComputedStyle(nc),he=parseInt(rc.getPropertyValue("--sq-padding-md"));let oc=1;const be=(u={})=>{const e=`sq-message-${oc++}`;let t=document.querySelector(".sq-message-wrap");t||(t=document.createElement("div"),t.classList.add("sq-message-wrap"),document.body.appendChild(t));let n=he;ou.forEach(l=>{var f;n+=(((f=l.vm.el)==null?void 0:f.offsetHeight)||0)+he});const r={type:"info",...u,zIndex:ec(),offsetTop:n,id:e},o=document.createElement("div"),i=r.onClose;r.onClose=()=>{i==null||i();const l=ou.findIndex(h=>h.vm.component.props.id===a.component.props.id),d=ou.splice(l,1)[0].vm.el.offsetHeight;if(!(ou.length<1))for(let h=l;h<ou.length;h++){const p=ou[h];let m=Number(parseInt(p.vm.el.style.top));m-=d,m-=he,p.vm.component.props.offsetTop=m}};const c=r.onDestroy;r.onDestroy=()=>{c==null||c(),s.render(null,o)};const a=s.createVNode(uc,r);return s.render(a,o),ou.push({vm:a}),t.appendChild(o.firstElementChild),{close:()=>{var l,f;(f=(l=a.component)==null?void 0:l.exposed)==null||f.close()}}};tc.forEach(u=>{be[u]=(e={})=>(typeof e=="string"&&(e={message:e}),be({...e,type:u}))});const cc=be,ic={class:"sq-pagination"},sc={class:"sq-pagination-pager"},ac=s.defineComponent({__name:"pagination",props:s.mergeModels({total:{default:0},disabled:{type:Boolean,default:!1},pagerCount:{default:5}},{current:{default:1},currentModifiers:{},"page-size":{default:10},"page-sizeModifiers":{}}),emits:["update:current","update:page-size"],setup(u){const e=u,t=s.useModel(u,"current"),n=s.useModel(u,"page-size"),r=s.computed(()=>Math.ceil(e.total/n.value)||1),o=s.computed(()=>{const a=[],l=Math.floor(e.pagerCount/2)-1;let f=t.value-l,d=t.value+l;f<2&&(f=2,d=f+l*2),d>r.value-1&&(d=r.value-1,f=d-l*2);for(let b=1;b<=r.value;b++)b===1||b===r.value||b>=f&&b<=d?a.push(b):(b===f-1||b===d+1)&&a.push(0);return a}),i=a=>{t.value+=a},c=a=>{t.value=a};return(a,l)=>(s.openBlock(),s.createElementBlock("div",ic,[s.createElementVNode("div",sc,[s.createVNode(s.unref(Su),{icon:s.unref(H0),disabled:t.value===1||e.disabled,onClick:l[0]||(l[0]=f=>i(-1))},null,8,["icon","disabled"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,f=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:f},[f?(s.openBlock(),s.createBlock(s.unref(Su),{key:0,type:t.value===f?"primary":void 0,disabled:e.disabled,onClick:d=>c(f)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(f),1)]),_:2},1032,["type","disabled","onClick"])):(s.openBlock(),s.createBlock(s.unref(Su),{key:1,icon:s.unref(kt),disabled:""},null,8,["icon"]))],64))),128)),s.createVNode(s.unref(Su),{icon:s.unref(G0),disabled:t.value===r.value||e.disabled,onClick:l[1]||(l[1]=f=>i(1))},null,8,["icon","disabled"])])]))}}),me=Math.min,mu=Math.max,$u=Math.round,Vu=Math.floor,W=u=>({x:u,y:u}),lc={left:"right",right:"left",bottom:"top",top:"bottom"},fc={start:"end",end:"start"};function xe(u,e){return typeof u=="function"?u(e):u}function xu(u){return u.split("-")[0]}function ju(u){return u.split("-")[1]}function dc(u){return u==="x"?"y":"x"}function C0(u){return u==="y"?"height":"width"}const pc=new Set(["top","bottom"]);function cu(u){return pc.has(xu(u))?"y":"x"}function E0(u){return dc(cu(u))}function hc(u,e,t){t===void 0&&(t=!1);const n=ju(u),r=E0(u),o=C0(r);let i=r==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=Hu(i)),[i,Hu(i)]}function bc(u){const e=Hu(u);return[_e(u),e,_e(e)]}function _e(u){return u.replace(/start|end/g,e=>fc[e])}const w0=["left","right"],D0=["right","left"],mc=["top","bottom"],xc=["bottom","top"];function _c(u,e,t){switch(u){case"top":case"bottom":return t?e?D0:w0:e?w0:D0;case"left":case"right":return e?mc:xc;default:return[]}}function gc(u,e,t,n){const r=ju(u);let o=_c(xu(u),t==="start",n);return r&&(o=o.map(i=>i+"-"+r),e&&(o=o.concat(o.map(_e)))),o}function Hu(u){return u.replace(/left|right|bottom|top/g,e=>lc[e])}function kc(u){return{top:0,right:0,bottom:0,left:0,...u}}function yc(u){return typeof u!="number"?kc(u):{top:u,right:u,bottom:u,left:u}}function Zu(u){const{x:e,y:t,width:n,height:r}=u;return{width:n,height:r,top:t,left:e,right:e+n,bottom:t+r,x:e,y:t}}function A0(u,e,t){let{reference:n,floating:r}=u;const o=cu(e),i=E0(e),c=C0(i),a=xu(e),l=o==="y",f=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,b=n[c]/2-r[c]/2;let h;switch(a){case"top":h={x:f,y:n.y-r.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-r.width,y:d};break;default:h={x:n.x,y:n.y}}switch(ju(e)){case"start":h[i]-=b*(t&&l?-1:1);break;case"end":h[i]+=b*(t&&l?-1:1);break}return h}const Cc=async(u,e,t)=>{const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i}=t,c=o.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:u,floating:e,strategy:r}),{x:f,y:d}=A0(l,n,a),b=n,h={},p=0;for(let m=0;m<c.length;m++){const{name:k,fn:C}=c[m],{x,y:_,data:g,reset:y}=await C({x:f,y:d,initialPlacement:n,placement:b,strategy:r,middlewareData:h,rects:l,platform:i,elements:{reference:u,floating:e}});f=x??f,d=_??d,h={...h,[k]:{...h[k],...g}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(b=y.placement),y.rects&&(l=y.rects===!0?await i.getElementRects({reference:u,floating:e,strategy:r}):y.rects),{x:f,y:d}=A0(l,b,a)),m=-1)}return{x:f,y:d,placement:b,strategy:r,middlewareData:h}};async function Ec(u,e){var t;e===void 0&&(e={});const{x:n,y:r,platform:o,rects:i,elements:c,strategy:a}=u,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:b=!1,padding:h=0}=xe(e,u),p=yc(h),k=c[b?d==="floating"?"reference":"floating":d],C=Zu(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(k)))==null||t?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:a})),x=d==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),g=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},y=Zu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:_,strategy:a}):x);return{top:(C.top-y.top+p.top)/g.y,bottom:(y.bottom-C.bottom+p.bottom)/g.y,left:(C.left-y.left+p.left)/g.x,right:(y.right-C.right+p.right)/g.x}}const wc=function(u){return u===void 0&&(u={}),{name:"flip",options:u,async fn(e){var t,n;const{placement:r,middlewareData:o,rects:i,initialPlacement:c,platform:a,elements:l}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:b,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...k}=xe(u,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const C=xu(r),x=cu(c),_=xu(c)===c,g=await(a.isRTL==null?void 0:a.isRTL(l.floating)),y=b||(_||!m?[Hu(c)]:bc(c)),w=p!=="none";!b&&w&&y.push(...gc(c,m,p,g));const E=[c,...y],A=await Ec(e,k),z=[];let S=((n=o.flip)==null?void 0:n.overflows)||[];if(f&&z.push(A[C]),d){const Q=hc(r,i,g);z.push(A[Q[0]],A[Q[1]])}if(S=[...S,{placement:r,overflows:z}],!z.every(Q=>Q<=0)){var D,N;const Q=(((D=o.flip)==null?void 0:D.index)||0)+1,Y=E[Q];if(Y&&(!(d==="alignment"?x!==cu(Y):!1)||S.every(V=>cu(V.placement)===x?V.overflows[0]>0:!0)))return{data:{index:Q,overflows:S},reset:{placement:Y}};let au=(N=S.filter(lu=>lu.overflows[0]<=0).sort((lu,V)=>lu.overflows[1]-V.overflows[1])[0])==null?void 0:N.placement;if(!au)switch(h){case"bestFit":{var X;const lu=(X=S.filter(V=>{if(w){const ru=cu(V.placement);return ru===x||ru==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ru=>ru>0).reduce((ru,bi)=>ru+bi,0)]).sort((V,ru)=>V[1]-ru[1])[0])==null?void 0:X[0];lu&&(au=lu);break}case"initialPlacement":au=c;break}if(r!==au)return{reset:{placement:au}}}return{}}}},Dc=new Set(["left","top"]);async function Ac(u,e){const{placement:t,platform:n,elements:r}=u,o=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=xu(t),c=ju(t),a=cu(t)==="y",l=Dc.has(i)?-1:1,f=o&&a?-1:1,d=xe(e,u);let{mainAxis:b,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof p=="number"&&(h=c==="end"?p*-1:p),a?{x:h*f,y:b*l}:{x:b*l,y:h*f}}const Fc=function(u){return u===void 0&&(u=0),{name:"offset",options:u,async fn(e){var t,n;const{x:r,y:o,placement:i,middlewareData:c}=e,a=await Ac(e,u);return i===((t=c.offset)==null?void 0:t.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:i}}}}};function Uu(){return typeof window<"u"}function iu(u){return ge(u)?(u.nodeName||"").toLowerCase():"#document"}function L(u){var e;return(u==null||(e=u.ownerDocument)==null?void 0:e.defaultView)||window}function G(u){var e;return(e=(ge(u)?u.ownerDocument:u.document)||window.document)==null?void 0:e.documentElement}function ge(u){return Uu()?u instanceof Node||u instanceof L(u).Node:!1}function O(u){return Uu()?u instanceof Element||u instanceof L(u).Element:!1}function J(u){return Uu()?u instanceof HTMLElement||u instanceof L(u).HTMLElement:!1}function F0(u){return!Uu()||typeof ShadowRoot>"u"?!1:u instanceof ShadowRoot||u instanceof L(u).ShadowRoot}const Sc=new Set(["inline","contents"]);function Bu(u){const{overflow:e,overflowX:t,overflowY:n,display:r}=$(u);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!Sc.has(r)}const Bc=new Set(["table","td","th"]);function zc(u){return Bc.has(iu(u))}const Mc=[":popover-open",":modal"];function Wu(u){return Mc.some(e=>{try{return u.matches(e)}catch{return!1}})}const Tc=["transform","translate","scale","rotate","perspective"],qc=["transform","translate","scale","rotate","perspective","filter"],vc=["paint","layout","strict","content"];function ke(u){const e=ye(),t=O(u)?$(u):u;return Tc.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||qc.some(n=>(t.willChange||"").includes(n))||vc.some(n=>(t.contain||"").includes(n))}function Rc(u){let e=nu(u);for(;J(e)&&!_u(e);){if(ke(e))return e;if(Wu(e))return null;e=nu(e)}return null}function ye(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lc=new Set(["html","body","#document"]);function _u(u){return Lc.has(iu(u))}function $(u){return L(u).getComputedStyle(u)}function Gu(u){return O(u)?{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}:{scrollLeft:u.scrollX,scrollTop:u.scrollY}}function nu(u){if(iu(u)==="html")return u;const e=u.assignedSlot||u.parentNode||F0(u)&&u.host||G(u);return F0(e)?e.host:e}function S0(u){const e=nu(u);return _u(e)?u.ownerDocument?u.ownerDocument.body:u.body:J(e)&&Bu(e)?e:S0(e)}function zu(u,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=S0(u),o=r===((n=u.ownerDocument)==null?void 0:n.body),i=L(r);if(o){const c=Ce(i);return e.concat(i,i.visualViewport||[],Bu(r)?r:[],c&&t?zu(c):[])}return e.concat(r,zu(r,[],t))}function Ce(u){return u.parent&&Object.getPrototypeOf(u.parent)?u.frameElement:null}function B0(u){const e=$(u);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=J(u),o=r?u.offsetWidth:t,i=r?u.offsetHeight:n,c=$u(t)!==o||$u(n)!==i;return c&&(t=o,n=i),{width:t,height:n,$:c}}function Ee(u){return O(u)?u:u.contextElement}function gu(u){const e=Ee(u);if(!J(e))return W(1);const t=e.getBoundingClientRect(),{width:n,height:r,$:o}=B0(e);let i=(o?$u(t.width):t.width)/n,c=(o?$u(t.height):t.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Nc=W(0);function z0(u){const e=L(u);return!ye()||!e.visualViewport?Nc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ic(u,e,t){return e===void 0&&(e=!1),!t||e&&t!==L(u)?!1:e}function su(u,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=u.getBoundingClientRect(),o=Ee(u);let i=W(1);e&&(n?O(n)&&(i=gu(n)):i=gu(u));const c=Ic(o,t,n)?z0(o):W(0);let a=(r.left+c.x)/i.x,l=(r.top+c.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(o){const b=L(o),h=n&&O(n)?L(n):n;let p=b,m=Ce(p);for(;m&&n&&h!==p;){const k=gu(m),C=m.getBoundingClientRect(),x=$(m),_=C.left+(m.clientLeft+parseFloat(x.paddingLeft))*k.x,g=C.top+(m.clientTop+parseFloat(x.paddingTop))*k.y;a*=k.x,l*=k.y,f*=k.x,d*=k.y,a+=_,l+=g,p=L(m),m=Ce(p)}}return Zu({width:f,height:d,x:a,y:l})}function Ju(u,e){const t=Gu(u).scrollLeft;return e?e.left+t:su(G(u)).left+t}function M0(u,e){const t=u.getBoundingClientRect(),n=t.left+e.scrollLeft-Ju(u,t),r=t.top+e.scrollTop;return{x:n,y:r}}function Pc(u){let{elements:e,rect:t,offsetParent:n,strategy:r}=u;const o=r==="fixed",i=G(n),c=e?Wu(e.floating):!1;if(n===i||c&&o)return t;let a={scrollLeft:0,scrollTop:0},l=W(1);const f=W(0),d=J(n);if((d||!d&&!o)&&((iu(n)!=="body"||Bu(i))&&(a=Gu(n)),J(n))){const h=su(n);l=gu(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const b=i&&!d&&!o?M0(i,a):W(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+f.x+b.x,y:t.y*l.y-a.scrollTop*l.y+f.y+b.y}}function Oc(u){return Array.from(u.getClientRects())}function $c(u){const e=G(u),t=Gu(u),n=u.ownerDocument.body,r=mu(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=mu(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Ju(u);const c=-t.scrollTop;return $(n).direction==="rtl"&&(i+=mu(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:c}}const T0=25;function Vc(u,e){const t=L(u),n=G(u),r=t.visualViewport;let o=n.clientWidth,i=n.clientHeight,c=0,a=0;if(r){o=r.width,i=r.height;const f=ye();(!f||f&&e==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}const l=Ju(n);if(l<=0){const f=n.ownerDocument,d=f.body,b=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,p=Math.abs(n.clientWidth-d.clientWidth-h);p<=T0&&(o-=p)}else l<=T0&&(o+=l);return{width:o,height:i,x:c,y:a}}const jc=new Set(["absolute","fixed"]);function Hc(u,e){const t=su(u,!0,e==="fixed"),n=t.top+u.clientTop,r=t.left+u.clientLeft,o=J(u)?gu(u):W(1),i=u.clientWidth*o.x,c=u.clientHeight*o.y,a=r*o.x,l=n*o.y;return{width:i,height:c,x:a,y:l}}function q0(u,e,t){let n;if(e==="viewport")n=Vc(u,t);else if(e==="document")n=$c(G(u));else if(O(e))n=Hc(e,t);else{const r=z0(u);n={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Zu(n)}function v0(u,e){const t=nu(u);return t===e||!O(t)||_u(t)?!1:$(t).position==="fixed"||v0(t,e)}function Zc(u,e){const t=e.get(u);if(t)return t;let n=zu(u,[],!1).filter(c=>O(c)&&iu(c)!=="body"),r=null;const o=$(u).position==="fixed";let i=o?nu(u):u;for(;O(i)&&!_u(i);){const c=$(i),a=ke(i);!a&&c.position==="fixed"&&(r=null),(o?!a&&!r:!a&&c.position==="static"&&!!r&&jc.has(r.position)||Bu(i)&&!a&&v0(u,i))?n=n.filter(f=>f!==i):r=c,i=nu(i)}return e.set(u,n),n}function Uc(u){let{element:e,boundary:t,rootBoundary:n,strategy:r}=u;const i=[...t==="clippingAncestors"?Wu(e)?[]:Zc(e,this._c):[].concat(t),n],c=i[0],a=i.reduce((l,f)=>{const d=q0(e,f,r);return l.top=mu(d.top,l.top),l.right=me(d.right,l.right),l.bottom=me(d.bottom,l.bottom),l.left=mu(d.left,l.left),l},q0(e,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Wc(u){const{width:e,height:t}=B0(u);return{width:e,height:t}}function Gc(u,e,t){const n=J(e),r=G(e),o=t==="fixed",i=su(u,!0,o,e);let c={scrollLeft:0,scrollTop:0};const a=W(0);function l(){a.x=Ju(r)}if(n||!n&&!o)if((iu(e)!=="body"||Bu(r))&&(c=Gu(e)),n){const h=su(e,!0,o,e);a.x=h.x+e.clientLeft,a.y=h.y+e.clientTop}else r&&l();o&&!n&&r&&l();const f=r&&!n&&!o?M0(r,c):W(0),d=i.left+c.scrollLeft-a.x-f.x,b=i.top+c.scrollTop-a.y-f.y;return{x:d,y:b,width:i.width,height:i.height}}function we(u){return $(u).position==="static"}function R0(u,e){if(!J(u)||$(u).position==="fixed")return null;if(e)return e(u);let t=u.offsetParent;return G(u)===t&&(t=t.ownerDocument.body),t}function L0(u,e){const t=L(u);if(Wu(u))return t;if(!J(u)){let r=nu(u);for(;r&&!_u(r);){if(O(r)&&!we(r))return r;r=nu(r)}return t}let n=R0(u,e);for(;n&&zc(n)&&we(n);)n=R0(n,e);return n&&_u(n)&&we(n)&&!ke(n)?t:n||Rc(u)||t}const Jc=async function(u){const e=this.getOffsetParent||L0,t=this.getDimensions,n=await t(u.floating);return{reference:Gc(u.reference,await e(u.floating),u.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Xc(u){return $(u).direction==="rtl"}const Qc={convertOffsetParentRelativeRectToViewportRelativeRect:Pc,getDocumentElement:G,getClippingRect:Uc,getOffsetParent:L0,getElementRects:Jc,getClientRects:Oc,getDimensions:Wc,getScale:gu,isElement:O,isRTL:Xc};function N0(u,e){return u.x===e.x&&u.y===e.y&&u.width===e.width&&u.height===e.height}function Yc(u,e){let t=null,n;const r=G(u);function o(){var c;clearTimeout(n),(c=t)==null||c.disconnect(),t=null}function i(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();const l=u.getBoundingClientRect(),{left:f,top:d,width:b,height:h}=l;if(c||e(),!b||!h)return;const p=Vu(d),m=Vu(r.clientWidth-(f+b)),k=Vu(r.clientHeight-(d+h)),C=Vu(f),_={rootMargin:-p+"px "+-m+"px "+-k+"px "+-C+"px",threshold:mu(0,me(1,a))||1};let g=!0;function y(w){const E=w[0].intersectionRatio;if(E!==a){if(!g)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!N0(l,u.getBoundingClientRect())&&i(),g=!1}try{t=new IntersectionObserver(y,{..._,root:r.ownerDocument})}catch{t=new IntersectionObserver(y,_)}t.observe(u)}return i(!0),o}function Kc(u,e,t,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,l=Ee(u),f=r||o?[...l?zu(l):[],...zu(e)]:[];f.forEach(C=>{r&&C.addEventListener("scroll",t,{passive:!0}),o&&C.addEventListener("resize",t)});const d=l&&c?Yc(l,t):null;let b=-1,h=null;i&&(h=new ResizeObserver(C=>{let[x]=C;x&&x.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),t()}),l&&!a&&h.observe(l),h.observe(e));let p,m=a?su(u):null;a&&k();function k(){const C=su(u);m&&!N0(m,C)&&t(),m=C,p=requestAnimationFrame(k)}return t(),()=>{var C;f.forEach(x=>{r&&x.removeEventListener("scroll",t),o&&x.removeEventListener("resize",t)}),d==null||d(),(C=h)==null||C.disconnect(),h=null,a&&cancelAnimationFrame(p)}}const ui=Fc,ei=wc,ti=(u,e,t)=>{const n=new Map,r={platform:Qc,...t},o={...r.platform,_c:n};return Cc(u,e,{...r,platform:o})};function ni(u){return u!=null&&typeof u=="object"&&"$el"in u}function I0(u){if(ni(u)){const e=u.$el;return ge(e)&&iu(e)==="#comment"?null:e}return u}function Mu(u){return typeof u=="function"?u():s.unref(u)}function P0(u){return typeof window>"u"?1:(u.ownerDocument.defaultView||window).devicePixelRatio||1}function O0(u,e){const t=P0(u);return Math.round(e*t)/t}function ri(u,e,t){t===void 0&&(t={});const n=t.whileElementsMounted,r=s.computed(()=>{var E;return(E=Mu(t.open))!=null?E:!0}),o=s.computed(()=>Mu(t.middleware)),i=s.computed(()=>{var E;return(E=Mu(t.placement))!=null?E:"bottom"}),c=s.computed(()=>{var E;return(E=Mu(t.strategy))!=null?E:"absolute"}),a=s.computed(()=>{var E;return(E=Mu(t.transform))!=null?E:!0}),l=s.computed(()=>I0(u.value)),f=s.computed(()=>I0(e.value)),d=s.ref(0),b=s.ref(0),h=s.ref(c.value),p=s.ref(i.value),m=s.shallowRef({}),k=s.ref(!1),C=s.computed(()=>{const E={position:h.value,left:"0",top:"0"};if(!f.value)return E;const A=O0(f.value,d.value),z=O0(f.value,b.value);return a.value?{...E,transform:"translate("+A+"px, "+z+"px)",...P0(f.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:A+"px",top:z+"px"}});let x;function _(){if(l.value==null||f.value==null)return;const E=r.value;ti(l.value,f.value,{middleware:o.value,placement:i.value,strategy:c.value}).then(A=>{d.value=A.x,b.value=A.y,h.value=A.strategy,p.value=A.placement,m.value=A.middlewareData,k.value=E!==!1})}function g(){typeof x=="function"&&(x(),x=void 0)}function y(){if(g(),n===void 0){_();return}if(l.value!=null&&f.value!=null){x=n(l.value,f.value,_);return}}function w(){r.value||(k.value=!1)}return s.watch([o,i,c,r],_,{flush:"sync"}),s.watch([l,f],y,{flush:"sync"}),s.watch(r,w,{flush:"sync"}),s.getCurrentScope()&&s.onScopeDispose(g),{x:s.shallowReadonly(d),y:s.shallowReadonly(b),strategy:s.shallowReadonly(h),placement:s.shallowReadonly(p),middlewareData:s.shallowReadonly(m),isPositioned:s.shallowReadonly(k),floatingStyles:C,update:_}}const oi=s.defineComponent({__name:"popover",props:s.mergeModels({placement:{default:"top"},offset:{default:10},teleported:{type:Boolean,default:!0},trigger:{default:"hover"},showAfter:{default:0},hideAfter:{default:300},disabled:{type:Boolean},transition:{default:"sq-fade"},popoverClass:{}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(u){const{nextZIndex:e}=ze();let t;const n=u,r=s.ref(0),o=s.shallowRef(null),i=s.shallowRef(null),c=s.useModel(u,"visible"),{floatingStyles:a}=ri(o,i,{placement:n.placement,whileElementsMounted:Kc,transform:!1,middleware:[ui(n.offset),ei()]});s.watch(c,m=>{m&&(r.value=e())}),s.onBeforeUnmount(()=>{p(),document.removeEventListener("click",h)});function l(){n.trigger!=="hover"||n.disabled||(p(),t=setTimeout(()=>{b(!1)},n.showAfter))}function f(){n.trigger==="hover"&&(p(),t=setTimeout(()=>{h()},n.hideAfter))}function d(m){n.trigger==="click"&&!n.disabled&&!c.value&&(m.stopPropagation(),b())}function b(m=!0){c.value=!0,m&&document.addEventListener("click",h)}function h(){c.value=!1,document.removeEventListener("click",h)}function p(){t&&(clearTimeout(t),t=void 0)}return(m,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("span",{class:s.normalizeClass(["sq-popover-trigger",m.$attrs.class]),style:s.normalizeStyle(m.$attrs.style),ref_key:"triggerRef",ref:o,onMouseenter:l,onMouseleave:f,onClick:d},[s.renderSlot(m.$slots,"reference")],38),(s.openBlock(),s.createBlock(s.Teleport,{to:"body",disabled:!n.teleported},[s.createVNode(s.Transition,{name:n.transition},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["sq-popover",m.popoverClass]),style:s.normalizeStyle({...s.unref(a),zIndex:r.value}),ref_key:"popverRef",ref:i,onClick:k[0]||(k[0]=s.withModifiers(()=>{},["stop"]))},[s.renderSlot(m.$slots,"default")],6),[[s.vShow,c.value]])]),_:3},8,["name"])],8,["disabled"]))],64))}}),ci=s.defineComponent({__name:"tag",props:{type:{},theme:{default:"plain"},round:{type:Boolean},size:{default:"md"}},setup(u){const e=u,t=s.computed(()=>{const r=[];return e.size!=="md"&&r.push(`sq-tag--${e.size}`),e.theme!=="plain"&&e.type&&r.push(`is-${e.theme}`),e.type&&r.push(`is-${e.type}`),e.round&&r.push("is-round"),r}),n=s.computed(()=>e.size==="lg"?"md":"sm");return(r,o)=>(s.openBlock(),s.createBlock(s.unref(ku),{class:s.normalizeClass(["sq-tag",t.value]),size:n.value},{default:s.withCtx(()=>[s.renderSlot(r.$slots,"default")]),_:3},8,["class","size"]))}}),ii=s.defineComponent({__name:"check-tag",props:{checked:{type:Boolean,default:!1},theme:{default:"plain"},type:{default:"primary"},round:{type:Boolean},size:{default:"md"}},emits:["change"],setup(u,{emit:e}){const t=e,n=u,r=s.computed(()=>{const i=[];return n.size!=="md"&&i.push(`sq-tag--${n.size}`),n.theme!=="plain"&&i.push(`is-${n.theme}`),n.type&&i.push(`is-${n.type}`),n.round&&i.push("is-round"),n.checked&&i.push("is-checked"),i}),o=s.computed(()=>n.size==="lg"?"md":"sm");return(i,c)=>(s.openBlock(),s.createBlock(s.unref(ku),{class:s.normalizeClass(["sq-check-tag",r.value]),size:o.value,onClick:c[0]||(c[0]=a=>t("change",!n.checked))},{default:s.withCtx(()=>[s.renderSlot(i.$slots,"default")]),_:3},8,["class","size"]))}}),ku=s.defineComponent({__name:"text",props:{rowNum:{default:1},ellipsis:{type:Boolean,default:!1},size:{default:"md"}},setup(u){const e=u,t=s.computed(()=>{const r=[];return e.size!=="md"&&r.push(`sq-text--${e.size}`),e.ellipsis&&r.push(e.rowNum>1?"multi-line":"single-line"),r}),n=s.computed(()=>e.ellipsis?`--row-num: ${e.rowNum}`:"");return(r,o)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["sq-text",t.value]),style:s.normalizeStyle(n.value)},[s.renderSlot(r.$slots,"default")],6))}}),si=s.defineComponent({__name:"timeline",props:{align:{default:"left"}},setup(u){const e=u,t=s.computed(()=>{const n=[];return n.push(`align-${e.align}`),n});return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-timeline",t.value])},[s.renderSlot(n.$slots,"default")],2))}}),ai={class:"sq-timeline-dot"},li={class:"sq-timeline-content"},fi=["textContent"],di=["textContent"],pi={class:"content-info"},hi=s.defineComponent({__name:"timeline-item",props:{color:{},type:{},icon:{},hollow:{type:Boolean},timestamp:{},theme:{default:"card"},title:{}},setup(u){const e=u,t=s.computed(()=>{const r=[];return e.theme!=="card"&&r.push(`is-${e.theme}`),e.type&&r.push(`is-${e.type}`),e.hollow&&r.push("is-hollow"),r}),n=s.computed(()=>{const r={};return e.color&&(r["--timeline-dot-color"]=e.color),r});return(r,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-timeline-item",t.value]),style:s.normalizeStyle(n.value)},[s.createElementVNode("span",ai,[e.icon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.icon),{key:0})):s.createCommentVNode("",!0)]),s.createElementVNode("div",li,[e.title?(s.openBlock(),s.createElementBlock("h2",{key:0,class:"content-title",textContent:s.toDisplayString(e.title)},null,8,fi)):s.createCommentVNode("",!0),e.timestamp?(s.openBlock(),s.createElementBlock("span",{key:1,class:"content-time",textContent:s.toDisplayString(e.timestamp)},null,8,di)):s.createCommentVNode("",!0),s.createElementVNode("div",pi,[s.renderSlot(r.$slots,"default")])])],6))}});B.SqAlert=Wt,B.SqArticle=Mo,B.SqAvatar=vo,B.SqBacktop=Po,B.SqButton=Su,B.SqButtonGroup=Vo,B.SqCard=Wo,B.SqCheckTag=ii,B.SqInput=Qo,B.SqMessage=cc,B.SqPagination=ac,B.SqPopover=oi,B.SqProgress=k0,B.SqTag=ci,B.SqText=ku,B.SqTimeline=si,B.SqTimelineItem=hi,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
|
57
|
+
`,o.map=[e,u.line],!0}function lr(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||r+3>o)return!1;const i=u.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let c=r;r=u.skipChars(r,i);let a=r-c;if(a<3)return!1;const l=u.src.slice(c,r),f=u.src.slice(r,o);if(i===96&&f.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;let d=e,b=!1;for(;d++,!(d>=t||(r=c=u.bMarks[d]+u.tShift[d],o=u.eMarks[d],r<o&&u.sCount[d]<u.blkIndent));)if(u.src.charCodeAt(r)===i&&!(u.sCount[d]-u.blkIndent>=4)&&(r=u.skipChars(r,i),!(r-c<a)&&(r=u.skipSpaces(r),!(r<o)))){b=!0;break}a=u.sCount[e],u.line=d+(b?1:0);const h=u.push("fence","code",0);return h.info=f,h.content=u.getLines(e+1,d,a,!0),h.markup=l,h.map=[e,u.line],!0}function fr(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];const i=u.lineMax;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(r)!==62)return!1;if(n)return!0;const c=[],a=[],l=[],f=[],d=u.md.block.ruler.getRules("blockquote"),b=u.parentType;u.parentType="blockquote";let h=!1,p;for(p=e;p<t;p++){const _=u.sCount[p]<u.blkIndent;if(r=u.bMarks[p]+u.tShift[p],o=u.eMarks[p],r>=o)break;if(u.src.charCodeAt(r++)===62&&!_){let y=u.sCount[p]+1,w,E;u.src.charCodeAt(r)===32?(r++,y++,E=!1,w=!0):u.src.charCodeAt(r)===9?(w=!0,(u.bsCount[p]+y)%4===3?(r++,y++,E=!1):E=!0):w=!1;let A=y;for(c.push(u.bMarks[p]),u.bMarks[p]=r;r<o;){const z=u.src.charCodeAt(r);if(F(z))z===9?A+=4-(A+u.bsCount[p]+(E?1:0))%4:A++;else break;r++}h=r>=o,a.push(u.bsCount[p]),u.bsCount[p]=u.sCount[p]+1+(w?1:0),l.push(u.sCount[p]),u.sCount[p]=A-y,f.push(u.tShift[p]),u.tShift[p]=r-u.bMarks[p];continue}if(h)break;let g=!1;for(let y=0,w=d.length;y<w;y++)if(d[y](u,p,t,!0)){g=!0;break}if(g){u.lineMax=p,u.blkIndent!==0&&(c.push(u.bMarks[p]),a.push(u.bsCount[p]),f.push(u.tShift[p]),l.push(u.sCount[p]),u.sCount[p]-=u.blkIndent);break}c.push(u.bMarks[p]),a.push(u.bsCount[p]),f.push(u.tShift[p]),l.push(u.sCount[p]),u.sCount[p]=-1}const m=u.blkIndent;u.blkIndent=0;const k=u.push("blockquote_open","blockquote",1);k.markup=">";const C=[e,0];k.map=C,u.md.block.tokenize(u,e,p);const x=u.push("blockquote_close","blockquote",-1);x.markup=">",u.lineMax=i,u.parentType=b,C[1]=u.line;for(let _=0;_<f.length;_++)u.bMarks[_+e]=c[_],u.tShift[_+e]=f[_],u.sCount[_+e]=l[_],u.bsCount[_+e]=a[_];return u.blkIndent=m,!0}function dr(u,e,t,n){const r=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let o=u.bMarks[e]+u.tShift[e];const i=u.src.charCodeAt(o++);if(i!==42&&i!==45&&i!==95)return!1;let c=1;for(;o<r;){const l=u.src.charCodeAt(o++);if(l!==i&&!F(l))return!1;l===i&&c++}if(c<3)return!1;if(n)return!0;u.line=e+1;const a=u.push("hr","hr",0);return a.map=[e,u.line],a.markup=Array(c+1).join(String.fromCharCode(i)),!0}function Qe(u,e){const t=u.eMarks[e];let n=u.bMarks[e]+u.tShift[e];const r=u.src.charCodeAt(n++);if(r!==42&&r!==45&&r!==43)return-1;if(n<t){const o=u.src.charCodeAt(n);if(!F(o))return-1}return n}function Ye(u,e){const t=u.bMarks[e]+u.tShift[e],n=u.eMarks[e];let r=t;if(r+1>=n)return-1;let o=u.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=n)return-1;if(o=u.src.charCodeAt(r++),o>=48&&o<=57){if(r-t>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<n&&(o=u.src.charCodeAt(r),!F(o))?-1:r}function pr(u,e){const t=u.level+2;for(let n=e+2,r=u.tokens.length-2;n<r;n++)u.tokens[n].level===t&&u.tokens[n].type==="paragraph_open"&&(u.tokens[n+2].hidden=!0,u.tokens[n].hidden=!0,n+=2)}function hr(u,e,t,n){let r,o,i,c,a=e,l=!0;if(u.sCount[a]-u.blkIndent>=4||u.listIndent>=0&&u.sCount[a]-u.listIndent>=4&&u.sCount[a]<u.blkIndent)return!1;let f=!1;n&&u.parentType==="paragraph"&&u.sCount[a]>=u.blkIndent&&(f=!0);let d,b,h;if((h=Ye(u,a))>=0){if(d=!0,i=u.bMarks[a]+u.tShift[a],b=Number(u.src.slice(i,h-1)),f&&b!==1)return!1}else if((h=Qe(u,a))>=0)d=!1;else return!1;if(f&&u.skipSpaces(h)>=u.eMarks[a])return!1;if(n)return!0;const p=u.src.charCodeAt(h-1),m=u.tokens.length;d?(c=u.push("ordered_list_open","ol",1),b!==1&&(c.attrs=[["start",b]])):c=u.push("bullet_list_open","ul",1);const k=[a,0];c.map=k,c.markup=String.fromCharCode(p);let C=!1;const x=u.md.block.ruler.getRules("list"),_=u.parentType;for(u.parentType="list";a<t;){o=h,r=u.eMarks[a];const g=u.sCount[a]+h-(u.bMarks[a]+u.tShift[a]);let y=g;for(;o<r;){const Y=u.src.charCodeAt(o);if(Y===9)y+=4-(y+u.bsCount[a])%4;else if(Y===32)y++;else break;o++}const w=o;let E;w>=r?E=1:E=y-g,E>4&&(E=1);const A=g+E;c=u.push("list_item_open","li",1),c.markup=String.fromCharCode(p);const z=[a,0];c.map=z,d&&(c.info=u.src.slice(i,h-1));const S=u.tight,D=u.tShift[a],N=u.sCount[a],X=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=A,u.tight=!0,u.tShift[a]=w-u.bMarks[a],u.sCount[a]=y,w>=r&&u.isEmpty(a+1)?u.line=Math.min(u.line+2,t):u.md.block.tokenize(u,a,t,!0),(!u.tight||C)&&(l=!1),C=u.line-a>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=X,u.tShift[a]=D,u.sCount[a]=N,u.tight=S,c=u.push("list_item_close","li",-1),c.markup=String.fromCharCode(p),a=u.line,z[1]=a,a>=t||u.sCount[a]<u.blkIndent||u.sCount[a]-u.blkIndent>=4)break;let Q=!1;for(let Y=0,au=x.length;Y<au;Y++)if(x[Y](u,a,t,!0)){Q=!0;break}if(Q)break;if(d){if(h=Ye(u,a),h<0)break;i=u.bMarks[a]+u.tShift[a]}else if(h=Qe(u,a),h<0)break;if(p!==u.src.charCodeAt(h-1))break}return d?c=u.push("ordered_list_close","ol",-1):c=u.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(p),k[1]=a,u.line=a,u.parentType=_,l&&pr(u,m),!0}function br(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e],i=e+1;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(r)!==91)return!1;function c(x){const _=u.lineMax;if(x>=_||u.isEmpty(x))return null;let g=!1;if(u.sCount[x]-u.blkIndent>3&&(g=!0),u.sCount[x]<0&&(g=!0),!g){const E=u.md.block.ruler.getRules("reference"),A=u.parentType;u.parentType="reference";let z=!1;for(let S=0,D=E.length;S<D;S++)if(E[S](u,x,_,!0)){z=!0;break}if(u.parentType=A,z)return null}const y=u.bMarks[x]+u.tShift[x],w=u.eMarks[x];return u.src.slice(y,w+1)}let a=u.src.slice(r,o+1);o=a.length;let l=-1;for(r=1;r<o;r++){const x=a.charCodeAt(r);if(x===91)return!1;if(x===93){l=r;break}else if(x===10){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}else if(x===92&&(r++,r<o&&a.charCodeAt(r)===10)){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}}if(l<0||a.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<o;r++){const x=a.charCodeAt(r);if(x===10){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}else if(!F(x))break}const f=u.md.helpers.parseLinkDestination(a,r,o);if(!f.ok)return!1;const d=u.md.normalizeLink(f.str);if(!u.md.validateLink(d))return!1;r=f.pos;const b=r,h=i,p=r;for(;r<o;r++){const x=a.charCodeAt(r);if(x===10){const _=c(i);_!==null&&(a+=_,o=a.length,i++)}else if(!F(x))break}let m=u.md.helpers.parseLinkTitle(a,r,o);for(;m.can_continue;){const x=c(i);if(x===null)break;a+=x,r=o,o=a.length,i++,m=u.md.helpers.parseLinkTitle(a,r,o,m)}let k;for(r<o&&p!==r&&m.ok?(k=m.str,r=m.pos):(k="",r=b,i=h);r<o;){const x=a.charCodeAt(r);if(!F(x))break;r++}if(r<o&&a.charCodeAt(r)!==10&&k)for(k="",r=b,i=h;r<o;){const x=a.charCodeAt(r);if(!F(x))break;r++}if(r<o&&a.charCodeAt(r)!==10)return!1;const C=Ru(a.slice(1,l));return C?(n||(typeof u.env.references>"u"&&(u.env.references={}),typeof u.env.references[C]>"u"&&(u.env.references[C]={title:k,href:d}),u.line=i),!0):!1}const mr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],xr="[a-zA-Z_:][a-zA-Z0-9:._-]*",_r="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ke="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+xr+"(?:\\s*=\\s*"+_r+")?)")+"*\\s*\\/?>",u0="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",gr="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",kr="<[?][\\s\\S]*?[?]>",yr="<![A-Za-z][^>]*>",Cr="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Er=new RegExp("^(?:"+Ke+"|"+u0+"|"+gr+"|"+kr+"|"+yr+"|"+Cr+")"),wr=new RegExp("^(?:"+Ke+"|"+u0+")"),hu=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+mr.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(wr.source+"\\s*$"),/^$/,!1]];function Dr(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(r)!==60)return!1;let i=u.src.slice(r,o),c=0;for(;c<hu.length&&!hu[c][0].test(i);c++);if(c===hu.length)return!1;if(n)return hu[c][2];let a=e+1;if(!hu[c][1].test(i)){for(;a<t&&!(u.sCount[a]<u.blkIndent);a++)if(r=u.bMarks[a]+u.tShift[a],o=u.eMarks[a],i=u.src.slice(r,o),hu[c][1].test(i)){i.length!==0&&a++;break}}u.line=a;const l=u.push("html_block","",0);return l.map=[e,a],l.content=u.getLines(e,a,u.blkIndent,!0),!0}function Ar(u,e,t,n){let r=u.bMarks[e]+u.tShift[e],o=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let i=u.src.charCodeAt(r);if(i!==35||r>=o)return!1;let c=1;for(i=u.src.charCodeAt(++r);i===35&&r<o&&c<=6;)c++,i=u.src.charCodeAt(++r);if(c>6||r<o&&!F(i))return!1;if(n)return!0;o=u.skipSpacesBack(o,r);const a=u.skipCharsBack(o,35,r);a>r&&F(u.src.charCodeAt(a-1))&&(o=a),u.line=e+1;const l=u.push("heading_open","h"+String(c),1);l.markup="########".slice(0,c),l.map=[e,u.line];const f=u.push("inline","",0);f.content=u.src.slice(r,o).trim(),f.map=[e,u.line],f.children=[];const d=u.push("heading_close","h"+String(c),-1);return d.markup="########".slice(0,c),!0}function Fr(u,e,t){const n=u.md.block.ruler.getRules("paragraph");if(u.sCount[e]-u.blkIndent>=4)return!1;const r=u.parentType;u.parentType="paragraph";let o=0,i,c=e+1;for(;c<t&&!u.isEmpty(c);c++){if(u.sCount[c]-u.blkIndent>3)continue;if(u.sCount[c]>=u.blkIndent){let h=u.bMarks[c]+u.tShift[c];const p=u.eMarks[c];if(h<p&&(i=u.src.charCodeAt(h),(i===45||i===61)&&(h=u.skipChars(h,i),h=u.skipSpaces(h),h>=p))){o=i===61?1:2;break}}if(u.sCount[c]<0)continue;let b=!1;for(let h=0,p=n.length;h<p;h++)if(n[h](u,c,t,!0)){b=!0;break}if(b)break}if(!o)return!1;const a=u.getLines(e,c,u.blkIndent,!1).trim();u.line=c+1;const l=u.push("heading_open","h"+String(o),1);l.markup=String.fromCharCode(i),l.map=[e,u.line];const f=u.push("inline","",0);f.content=a,f.map=[e,u.line-1],f.children=[];const d=u.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(i),u.parentType=r,!0}function Sr(u,e,t){const n=u.md.block.ruler.getRules("paragraph"),r=u.parentType;let o=e+1;for(u.parentType="paragraph";o<t&&!u.isEmpty(o);o++){if(u.sCount[o]-u.blkIndent>3||u.sCount[o]<0)continue;let l=!1;for(let f=0,d=n.length;f<d;f++)if(n[f](u,o,t,!0)){l=!0;break}if(l)break}const i=u.getLines(e,o,u.blkIndent,!1).trim();u.line=o;const c=u.push("paragraph_open","p",1);c.map=[e,u.line];const a=u.push("inline","",0);return a.content=i,a.map=[e,u.line],a.children=[],u.push("paragraph_close","p",-1),u.parentType=r,!0}const Nu=[["table",sr,["paragraph","reference"]],["code",ar],["fence",lr,["paragraph","reference","blockquote","list"]],["blockquote",fr,["paragraph","reference","blockquote","list"]],["hr",dr,["paragraph","reference","blockquote","list"]],["list",hr,["paragraph","reference","blockquote"]],["reference",br],["html_block",Dr,["paragraph","reference","blockquote"]],["heading",Ar,["paragraph","reference","blockquote"]],["lheading",Fr],["paragraph",Sr]];function Iu(){this.ruler=new v;for(let u=0;u<Nu.length;u++)this.ruler.push(Nu[u][0],Nu[u][1],{alt:(Nu[u][2]||[]).slice()})}Iu.prototype.tokenize=function(u,e,t){const n=this.ruler.getRules(""),r=n.length,o=u.md.options.maxNesting;let i=e,c=!1;for(;i<t&&(u.line=i=u.skipEmptyLines(i),!(i>=t||u.sCount[i]<u.blkIndent));){if(u.level>=o){u.line=t;break}const a=u.line;let l=!1;for(let f=0;f<r;f++)if(l=n[f](u,i,t,!1),l){if(a>=u.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");u.tight=!c,u.isEmpty(u.line-1)&&(c=!0),i=u.line,i<t&&u.isEmpty(i)&&(c=!0,i++,u.line=i)}},Iu.prototype.parse=function(u,e,t,n){if(!u)return;const r=new this.State(u,e,t,n);this.tokenize(r,r.line,r.lineMax)},Iu.prototype.State=H;function Du(u,e,t,n){this.src=u,this.env=t,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Du.prototype.pushPending=function(){const u=new I("text","",0);return u.content=this.pending,u.level=this.pendingLevel,this.tokens.push(u),this.pending="",u},Du.prototype.push=function(u,e,t){this.pending&&this.pushPending();const n=new I(u,e,t);let r=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n},Du.prototype.scanDelims=function(u,e){const t=this.posMax,n=this.src.charCodeAt(u),r=u>0?this.src.charCodeAt(u-1):32;let o=u;for(;o<t&&this.src.charCodeAt(o)===n;)o++;const i=o-u,c=o<t?this.src.charCodeAt(o):32,a=wu(r)||Eu(String.fromCharCode(r)),l=wu(c)||Eu(String.fromCharCode(c)),f=Cu(r),d=Cu(c),b=!d&&(!l||f||a),h=!f&&(!a||d||l);return{can_open:b&&(e||!h||a),can_close:h&&(e||!b||l),length:i}},Du.prototype.Token=I;function Br(u){switch(u){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function zr(u,e){let t=u.pos;for(;t<u.posMax&&!Br(u.src.charCodeAt(t));)t++;return t===u.pos?!1:(e||(u.pending+=u.src.slice(u.pos,t)),u.pos=t,!0)}const Mr=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Tr(u,e){if(!u.md.options.linkify||u.linkLevel>0)return!1;const t=u.pos,n=u.posMax;if(t+3>n||u.src.charCodeAt(t)!==58||u.src.charCodeAt(t+1)!==47||u.src.charCodeAt(t+2)!==47)return!1;const r=u.pending.match(Mr);if(!r)return!1;const o=r[1],i=u.md.linkify.matchAtStart(u.src.slice(t-o.length));if(!i)return!1;let c=i.url;if(c.length<=o.length)return!1;c=c.replace(/\*+$/,"");const a=u.md.normalizeLink(c);if(!u.md.validateLink(a))return!1;if(!e){u.pending=u.pending.slice(0,-o.length);const l=u.push("link_open","a",1);l.attrs=[["href",a]],l.markup="linkify",l.info="auto";const f=u.push("text","",0);f.content=u.md.normalizeLinkText(c);const d=u.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return u.pos+=c.length-o.length,!0}function qr(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==10)return!1;const n=u.pending.length-1,r=u.posMax;if(!e)if(n>=0&&u.pending.charCodeAt(n)===32)if(n>=1&&u.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&u.pending.charCodeAt(o-1)===32;)o--;u.pending=u.pending.slice(0,o),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(t++;t<r&&F(u.src.charCodeAt(t));)t++;return u.pos=t,!0}const ce=[];for(let u=0;u<256;u++)ce.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u){ce[u.charCodeAt(0)]=1});function vr(u,e){let t=u.pos;const n=u.posMax;if(u.src.charCodeAt(t)!==92||(t++,t>=n))return!1;let r=u.src.charCodeAt(t);if(r===10){for(e||u.push("hardbreak","br",0),t++;t<n&&(r=u.src.charCodeAt(t),!!F(r));)t++;return u.pos=t,!0}let o=u.src[t];if(r>=55296&&r<=56319&&t+1<n){const c=u.src.charCodeAt(t+1);c>=56320&&c<=57343&&(o+=u.src[t+1],t++)}const i="\\"+o;if(!e){const c=u.push("text_special","",0);r<256&&ce[r]!==0?c.content=o:c.content=i,c.markup=i,c.info="escape"}return u.pos=t+1,!0}function Rr(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==96)return!1;const r=t;t++;const o=u.posMax;for(;t<o&&u.src.charCodeAt(t)===96;)t++;const i=u.src.slice(r,t),c=i.length;if(u.backticksScanned&&(u.backticks[c]||0)<=r)return e||(u.pending+=i),u.pos+=c,!0;let a=t,l;for(;(l=u.src.indexOf("`",a))!==-1;){for(a=l+1;a<o&&u.src.charCodeAt(a)===96;)a++;const f=a-l;if(f===c){if(!e){const d=u.push("code_inline","code",0);d.markup=i,d.content=u.src.slice(t,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return u.pos=a,!0}u.backticks[f]=l}return u.backticksScanned=!0,e||(u.pending+=i),u.pos+=c,!0}function Lr(u,e){const t=u.pos,n=u.src.charCodeAt(t);if(e||n!==126)return!1;const r=u.scanDelims(u.pos,!0);let o=r.length;const i=String.fromCharCode(n);if(o<2)return!1;let c;o%2&&(c=u.push("text","",0),c.content=i,o--);for(let a=0;a<o;a+=2)c=u.push("text","",0),c.content=i+i,u.delimiters.push({marker:n,length:0,token:u.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return u.pos+=r.length,!0}function e0(u,e){let t;const n=[],r=e.length;for(let o=0;o<r;o++){const i=e[o];if(i.marker!==126||i.end===-1)continue;const c=e[i.end];t=u.tokens[i.token],t.type="s_open",t.tag="s",t.nesting=1,t.markup="~~",t.content="",t=u.tokens[c.token],t.type="s_close",t.tag="s",t.nesting=-1,t.markup="~~",t.content="",u.tokens[c.token-1].type==="text"&&u.tokens[c.token-1].content==="~"&&n.push(c.token-1)}for(;n.length;){const o=n.pop();let i=o+1;for(;i<u.tokens.length&&u.tokens[i].type==="s_close";)i++;i--,o!==i&&(t=u.tokens[i],u.tokens[i]=u.tokens[o],u.tokens[o]=t)}}function Nr(u){const e=u.tokens_meta,t=u.tokens_meta.length;e0(u,u.delimiters);for(let n=0;n<t;n++)e[n]&&e[n].delimiters&&e0(u,e[n].delimiters)}const t0={tokenize:Lr,postProcess:Nr};function Ir(u,e){const t=u.pos,n=u.src.charCodeAt(t);if(e||n!==95&&n!==42)return!1;const r=u.scanDelims(u.pos,n===42);for(let o=0;o<r.length;o++){const i=u.push("text","",0);i.content=String.fromCharCode(n),u.delimiters.push({marker:n,length:r.length,token:u.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return u.pos+=r.length,!0}function n0(u,e){const t=e.length;for(let n=t-1;n>=0;n--){const r=e[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=e[r.end],i=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===o.token+1,c=String.fromCharCode(r.marker),a=u.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?c+c:c,a.content="";const l=u.tokens[o.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?c+c:c,l.content="",i&&(u.tokens[e[n-1].token].content="",u.tokens[e[r.end+1].token].content="",n--)}}function Pr(u){const e=u.tokens_meta,t=u.tokens_meta.length;n0(u,u.delimiters);for(let n=0;n<t;n++)e[n]&&e[n].delimiters&&n0(u,e[n].delimiters)}const r0={tokenize:Ir,postProcess:Pr};function Or(u,e){let t,n,r,o,i="",c="",a=u.pos,l=!0;if(u.src.charCodeAt(u.pos)!==91)return!1;const f=u.pos,d=u.posMax,b=u.pos+1,h=u.md.helpers.parseLinkLabel(u,u.pos,!0);if(h<0)return!1;let p=h+1;if(p<d&&u.src.charCodeAt(p)===40){for(l=!1,p++;p<d&&(t=u.src.charCodeAt(p),!(!F(t)&&t!==10));p++);if(p>=d)return!1;if(a=p,r=u.md.helpers.parseLinkDestination(u.src,p,u.posMax),r.ok){for(i=u.md.normalizeLink(r.str),u.md.validateLink(i)?p=r.pos:i="",a=p;p<d&&(t=u.src.charCodeAt(p),!(!F(t)&&t!==10));p++);if(r=u.md.helpers.parseLinkTitle(u.src,p,u.posMax),p<d&&a!==p&&r.ok)for(c=r.str,p=r.pos;p<d&&(t=u.src.charCodeAt(p),!(!F(t)&&t!==10));p++);}(p>=d||u.src.charCodeAt(p)!==41)&&(l=!0),p++}if(l){if(typeof u.env.references>"u")return!1;if(p<d&&u.src.charCodeAt(p)===91?(a=p+1,p=u.md.helpers.parseLinkLabel(u,p),p>=0?n=u.src.slice(a,p++):p=h+1):p=h+1,n||(n=u.src.slice(b,h)),o=u.env.references[Ru(n)],!o)return u.pos=f,!1;i=o.href,c=o.title}if(!e){u.pos=b,u.posMax=h;const m=u.push("link_open","a",1),k=[["href",i]];m.attrs=k,c&&k.push(["title",c]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=p,u.posMax=d,!0}function $r(u,e){let t,n,r,o,i,c,a,l,f="";const d=u.pos,b=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;const h=u.pos+2,p=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(p<0)return!1;if(o=p+1,o<b&&u.src.charCodeAt(o)===40){for(o++;o<b&&(t=u.src.charCodeAt(o),!(!F(t)&&t!==10));o++);if(o>=b)return!1;for(l=o,c=u.md.helpers.parseLinkDestination(u.src,o,u.posMax),c.ok&&(f=u.md.normalizeLink(c.str),u.md.validateLink(f)?o=c.pos:f=""),l=o;o<b&&(t=u.src.charCodeAt(o),!(!F(t)&&t!==10));o++);if(c=u.md.helpers.parseLinkTitle(u.src,o,u.posMax),o<b&&l!==o&&c.ok)for(a=c.str,o=c.pos;o<b&&(t=u.src.charCodeAt(o),!(!F(t)&&t!==10));o++);else a="";if(o>=b||u.src.charCodeAt(o)!==41)return u.pos=d,!1;o++}else{if(typeof u.env.references>"u")return!1;if(o<b&&u.src.charCodeAt(o)===91?(l=o+1,o=u.md.helpers.parseLinkLabel(u,o),o>=0?r=u.src.slice(l,o++):o=p+1):o=p+1,r||(r=u.src.slice(h,p)),i=u.env.references[Ru(r)],!i)return u.pos=d,!1;f=i.href,a=i.title}if(!e){n=u.src.slice(h,p);const m=[];u.md.inline.parse(n,u.md,u.env,m);const k=u.push("image","img",0),C=[["src",f],["alt",""]];k.attrs=C,k.children=m,k.content=n,a&&C.push(["title",a])}return u.pos=o,u.posMax=b,!0}const Vr=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,jr=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Hr(u,e){let t=u.pos;if(u.src.charCodeAt(t)!==60)return!1;const n=u.pos,r=u.posMax;for(;;){if(++t>=r)return!1;const i=u.src.charCodeAt(t);if(i===60)return!1;if(i===62)break}const o=u.src.slice(n+1,t);if(jr.test(o)){const i=u.md.normalizeLink(o);if(!u.md.validateLink(i))return!1;if(!e){const c=u.push("link_open","a",1);c.attrs=[["href",i]],c.markup="autolink",c.info="auto";const a=u.push("text","",0);a.content=u.md.normalizeLinkText(o);const l=u.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return u.pos+=o.length+2,!0}if(Vr.test(o)){const i=u.md.normalizeLink("mailto:"+o);if(!u.md.validateLink(i))return!1;if(!e){const c=u.push("link_open","a",1);c.attrs=[["href",i]],c.markup="autolink",c.info="auto";const a=u.push("text","",0);a.content=u.md.normalizeLinkText(o);const l=u.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return u.pos+=o.length+2,!0}return!1}function Zr(u){return/^<a[>\s]/i.test(u)}function Ur(u){return/^<\/a\s*>/i.test(u)}function Wr(u){const e=u|32;return e>=97&&e<=122}function Gr(u,e){if(!u.md.options.html)return!1;const t=u.posMax,n=u.pos;if(u.src.charCodeAt(n)!==60||n+2>=t)return!1;const r=u.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!Wr(r))return!1;const o=u.src.slice(n).match(Er);if(!o)return!1;if(!e){const i=u.push("html_inline","",0);i.content=o[0],Zr(i.content)&&u.linkLevel++,Ur(i.content)&&u.linkLevel--}return u.pos+=o[0].length,!0}const Jr=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Xr=/^&([a-z][a-z0-9]{1,31});/i;function Qr(u,e){const t=u.pos,n=u.posMax;if(u.src.charCodeAt(t)!==38||t+1>=n)return!1;if(u.src.charCodeAt(t+1)===35){const o=u.src.slice(t).match(Jr);if(o){if(!e){const i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),c=u.push("text_special","",0);c.content=te(i)?vu(i):vu(65533),c.markup=o[0],c.info="entity"}return u.pos+=o[0].length,!0}}else{const o=u.src.slice(t).match(Xr);if(o){const i=je(o[0]);if(i!==o[0]){if(!e){const c=u.push("text_special","",0);c.content=i,c.markup=o[0],c.info="entity"}return u.pos+=o[0].length,!0}}}return!1}function o0(u){const e={},t=u.length;if(!t)return;let n=0,r=-2;const o=[];for(let i=0;i<t;i++){const c=u[i];if(o.push(0),(u[n].marker!==c.marker||r!==c.token-1)&&(n=i),r=c.token,c.length=c.length||0,!c.close)continue;e.hasOwnProperty(c.marker)||(e[c.marker]=[-1,-1,-1,-1,-1,-1]);const a=e[c.marker][(c.open?3:0)+c.length%3];let l=n-o[n]-1,f=l;for(;l>a;l-=o[l]+1){const d=u[l];if(d.marker===c.marker&&d.open&&d.end<0){let b=!1;if((d.close||c.open)&&(d.length+c.length)%3===0&&(d.length%3!==0||c.length%3!==0)&&(b=!0),!b){const h=l>0&&!u[l-1].open?o[l-1]+1:0;o[i]=i-l+h,o[l]=h,c.open=!1,d.end=i,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(e[c.marker][(c.open?3:0)+(c.length||0)%3]=f)}}function Yr(u){const e=u.tokens_meta,t=u.tokens_meta.length;o0(u.delimiters);for(let n=0;n<t;n++)e[n]&&e[n].delimiters&&o0(e[n].delimiters)}function Kr(u){let e,t,n=0;const r=u.tokens,o=u.tokens.length;for(e=t=0;e<o;e++)r[e].nesting<0&&n--,r[e].level=n,r[e].nesting>0&&n++,r[e].type==="text"&&e+1<o&&r[e+1].type==="text"?r[e+1].content=r[e].content+r[e+1].content:(e!==t&&(r[t]=r[e]),t++);e!==t&&(r.length=t)}const ie=[["text",zr],["linkify",Tr],["newline",qr],["escape",vr],["backticks",Rr],["strikethrough",t0.tokenize],["emphasis",r0.tokenize],["link",Or],["image",$r],["autolink",Hr],["html_inline",Gr],["entity",Qr]],se=[["balance_pairs",Yr],["strikethrough",t0.postProcess],["emphasis",r0.postProcess],["fragments_join",Kr]];function Au(){this.ruler=new v;for(let u=0;u<ie.length;u++)this.ruler.push(ie[u][0],ie[u][1]);this.ruler2=new v;for(let u=0;u<se.length;u++)this.ruler2.push(se[u][0],se[u][1])}Au.prototype.skipToken=function(u){const e=u.pos,t=this.ruler.getRules(""),n=t.length,r=u.md.options.maxNesting,o=u.cache;if(typeof o[e]<"u"){u.pos=o[e];return}let i=!1;if(u.level<r){for(let c=0;c<n;c++)if(u.level++,i=t[c](u,!0),u.level--,i){if(e>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;i||u.pos++,o[e]=u.pos},Au.prototype.tokenize=function(u){const e=this.ruler.getRules(""),t=e.length,n=u.posMax,r=u.md.options.maxNesting;for(;u.pos<n;){const o=u.pos;let i=!1;if(u.level<r){for(let c=0;c<t;c++)if(i=e[c](u,!1),i){if(o>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(u.pos>=n)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()},Au.prototype.parse=function(u,e,t,n){const r=new this.State(u,e,t,n);this.tokenize(r);const o=this.ruler2.getRules(""),i=o.length;for(let c=0;c<i;c++)o[c](r)},Au.prototype.State=Du;function uo(u){const e={};u=u||{},e.src_Any=Ie.source,e.src_Cc=Pe.source,e.src_Z=$e.source,e.src_P=Yu.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const t="[><|]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(u["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(u["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function ae(u){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){u[n]=t[n]})}),u}function Pu(u){return Object.prototype.toString.call(u)}function eo(u){return Pu(u)==="[object String]"}function to(u){return Pu(u)==="[object Object]"}function no(u){return Pu(u)==="[object RegExp]"}function c0(u){return Pu(u)==="[object Function]"}function ro(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const i0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function oo(u){return Object.keys(u||{}).reduce(function(e,t){return e||i0.hasOwnProperty(t)},!1)}const co={"http:":{validate:function(u,e,t){const n=u.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(n)?n.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(u,e,t){const n=u.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(n)?e>=3&&u[e-3]===":"||e>=3&&u[e-3]==="/"?0:n.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(u,e,t){const n=u.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(n)?n.match(t.re.mailto)[0].length:0}}},io="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",so="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ao(u){u.__index__=-1,u.__text_cache__=""}function lo(u){return function(e,t){const n=e.slice(t);return u.test(n)?n.match(u)[0].length:0}}function s0(){return function(u,e){e.normalize(u)}}function Ou(u){const e=u.re=uo(u.__opts__),t=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||t.push(io),t.push(e.src_xn),e.src_tlds=t.join("|");function n(c){return c.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");const r=[];u.__compiled__={};function o(c,a){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+a)}Object.keys(u.__schemas__).forEach(function(c){const a=u.__schemas__[c];if(a===null)return;const l={validate:null,link:null};if(u.__compiled__[c]=l,to(a)){no(a.validate)?l.validate=lo(a.validate):c0(a.validate)?l.validate=a.validate:o(c,a),c0(a.normalize)?l.normalize=a.normalize:a.normalize?o(c,a):l.normalize=s0();return}if(eo(a)){r.push(c);return}o(c,a)}),r.forEach(function(c){u.__compiled__[u.__schemas__[c]]&&(u.__compiled__[c].validate=u.__compiled__[u.__schemas__[c]].validate,u.__compiled__[c].normalize=u.__compiled__[u.__schemas__[c]].normalize)}),u.__compiled__[""]={validate:null,normalize:s0()};const i=Object.keys(u.__compiled__).filter(function(c){return c.length>0&&u.__compiled__[c]}).map(ro).join("|");u.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","i"),u.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","ig"),u.re.schema_at_start=RegExp("^"+u.re.schema_search.source,"i"),u.re.pretest=RegExp("("+u.re.schema_test.source+")|("+u.re.host_fuzzy_test.source+")|@","i"),ao(u)}function fo(u,e){const t=u.__index__,n=u.__last_index__,r=u.__text_cache__.slice(t,n);this.schema=u.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=n+e,this.raw=r,this.text=r,this.url=r}function le(u,e){const t=new fo(u,e);return u.__compiled__[t.schema].normalize(t,u),t}function R(u,e){if(!(this instanceof R))return new R(u,e);e||oo(u)&&(e=u,u={}),this.__opts__=ae({},i0,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ae({},co,u),this.__compiled__={},this.__tlds__=so,this.__tlds_replaced__=!1,this.re={},Ou(this)}R.prototype.add=function(e,t){return this.__schemas__[e]=t,Ou(this),this},R.prototype.set=function(e){return this.__opts__=ae(this.__opts__,e),this},R.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,i,c,a,l,f;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(e))!==null;)if(o=this.testSchemaAt(e,t[2],a.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=e.indexOf("@"),f>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(i=r.index+r[1].length,c=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c))),this.__index__>=0},R.prototype.pretest=function(e){return this.re.pretest.test(e)},R.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},R.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(le(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(le(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},R.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,le(this,0)):null},R.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,r,o){return n!==o[r-1]}).reverse(),Ou(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ou(this),this)},R.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},R.prototype.onCompile=function(){};const bu=2147483647,Z=36,fe=1,Fu=26,po=38,ho=700,a0=72,l0=128,f0="-",bo=/^xn--/,mo=/[^\0-\x7F]/,xo=/[\x2E\u3002\uFF0E\uFF61]/g,_o={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},de=Z-fe,U=Math.floor,pe=String.fromCharCode;function tu(u){throw new RangeError(_o[u])}function go(u,e){const t=[];let n=u.length;for(;n--;)t[n]=e(u[n]);return t}function d0(u,e){const t=u.split("@");let n="";t.length>1&&(n=t[0]+"@",u=t[1]),u=u.replace(xo,".");const r=u.split("."),o=go(r,e).join(".");return n+o}function p0(u){const e=[];let t=0;const n=u.length;for(;t<n;){const r=u.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){const o=u.charCodeAt(t++);(o&64512)==56320?e.push(((r&1023)<<10)+(o&1023)+65536):(e.push(r),t--)}else e.push(r)}return e}const ko=u=>String.fromCodePoint(...u),yo=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:Z},h0=function(u,e){return u+22+75*(u<26)-((e!=0)<<5)},b0=function(u,e,t){let n=0;for(u=t?U(u/ho):u>>1,u+=U(u/e);u>de*Fu>>1;n+=Z)u=U(u/de);return U(n+(de+1)*u/(u+po))},m0=function(u){const e=[],t=u.length;let n=0,r=l0,o=a0,i=u.lastIndexOf(f0);i<0&&(i=0);for(let c=0;c<i;++c)u.charCodeAt(c)>=128&&tu("not-basic"),e.push(u.charCodeAt(c));for(let c=i>0?i+1:0;c<t;){const a=n;for(let f=1,d=Z;;d+=Z){c>=t&&tu("invalid-input");const b=yo(u.charCodeAt(c++));b>=Z&&tu("invalid-input"),b>U((bu-n)/f)&&tu("overflow"),n+=b*f;const h=d<=o?fe:d>=o+Fu?Fu:d-o;if(b<h)break;const p=Z-h;f>U(bu/p)&&tu("overflow"),f*=p}const l=e.length+1;o=b0(n-a,l,a==0),U(n/l)>bu-r&&tu("overflow"),r+=U(n/l),n%=l,e.splice(n++,0,r)}return String.fromCodePoint(...e)},x0=function(u){const e=[];u=p0(u);const t=u.length;let n=l0,r=0,o=a0;for(const a of u)a<128&&e.push(pe(a));const i=e.length;let c=i;for(i&&e.push(f0);c<t;){let a=bu;for(const f of u)f>=n&&f<a&&(a=f);const l=c+1;a-n>U((bu-r)/l)&&tu("overflow"),r+=(a-n)*l,n=a;for(const f of u)if(f<n&&++r>bu&&tu("overflow"),f===n){let d=r;for(let b=Z;;b+=Z){const h=b<=o?fe:b>=o+Fu?Fu:b-o;if(d<h)break;const p=d-h,m=Z-h;e.push(pe(h0(h+p%m,0))),d=U(p/m)}e.push(pe(h0(d,0))),o=b0(r,l,c===i),r=0,++c}++r,++n}return e.join("")},_0={version:"2.3.1",ucs2:{decode:p0,encode:ko},decode:m0,encode:x0,toASCII:function(u){return d0(u,function(e){return mo.test(e)?"xn--"+x0(e):e})},toUnicode:function(u){return d0(u,function(e){return bo.test(e)?m0(e.slice(4).toLowerCase()):e})}},Co={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Eo=/^(vbscript|javascript|file|data):/,wo=/^data:image\/(gif|png|jpeg|webp);/;function Do(u){const e=u.trim().toLowerCase();return Eo.test(e)?wo.test(e):!0}const g0=["http:","https:","mailto:"];function Ao(u){const e=Qu(u,!0);if(e.hostname&&(!e.protocol||g0.indexOf(e.protocol)>=0))try{e.hostname=_0.toASCII(e.hostname)}catch{}return yu(Xu(e))}function Fo(u){const e=Qu(u,!0);if(e.hostname&&(!e.protocol||g0.indexOf(e.protocol)>=0))try{e.hostname=_0.toUnicode(e.hostname)}catch{}return fu(Xu(e),fu.defaultChars+"%")}function P(u,e){if(!(this instanceof P))return new P(u,e);e||ee(u)||(e=u||{},u="default"),this.inline=new Au,this.block=new Iu,this.core=new re,this.renderer=new pu,this.linkify=new R,this.validateLink=Do,this.normalizeLink=Ao,this.normalizeLinkText=Fo,this.utils=Nn,this.helpers=qu({},$n),this.options={},this.configure(u),e&&this.set(e)}P.prototype.set=function(u){return qu(this.options,u),this},P.prototype.configure=function(u){const e=this;if(ee(u)){const t=u;if(u=Co[t],!u)throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&e.set(u.options),u.components&&Object.keys(u.components).forEach(function(t){u.components[t].rules&&e[t].ruler.enableOnly(u.components[t].rules),u.components[t].rules2&&e[t].ruler2.enableOnly(u.components[t].rules2)}),this},P.prototype.enable=function(u,e){let t=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(u,!0))},this),t=t.concat(this.inline.ruler2.enable(u,!0));const n=u.filter(function(r){return t.indexOf(r)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},P.prototype.disable=function(u,e){let t=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(u,!0))},this),t=t.concat(this.inline.ruler2.disable(u,!0));const n=u.filter(function(r){return t.indexOf(r)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},P.prototype.use=function(u){const e=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,e),this},P.prototype.parse=function(u,e){if(typeof u!="string")throw new Error("Input data should be a String");const t=new this.core.State(u,this,e);return this.core.process(t),t.tokens},P.prototype.render=function(u,e){return e=e||{},this.renderer.render(this.parse(u,e),this.options,e)},P.prototype.parseInline=function(u,e){const t=new this.core.State(u,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens},P.prototype.renderInline=function(u,e){return e=e||{},this.renderer.render(this.parseInline(u,e),this.options,e)};function So(){function u(r,o){const i=new P({html:!0,typographer:!0});return i.use(Xt),o&&o.forEach(c=>i.use(c)),i.parse(r,"")}function e(r){const o=n(r)??[];return s.h("article",{class:"sq-article"},t(o))}function t(r){if(r)return r.map(o=>typeof o=="string"?o:s.h(o.tag,o.attrs,t(o.children)))}function n(r){const o=[],i={children:[]};let c=i;return r.forEach(a=>{var m,k,C,x,_,g,y,w,E,A,z;const{type:l,children:f,content:d,attrs:b,tag:h,hidden:p}=a;switch(l){case"heading_open":case"paragraph_open":case"bullet_list_open":case"ordered_list_open":case"list_item_open":case"table_open":case"thead_open":case"tbody_open":case"tr_open":case"th_open":case"td_open":case"blockquote_open":case"strong_open":case"em_open":case"s_open":case"link_open":{if(p)break;const S={tag:h,children:[],attrs:b?Object.fromEntries(b):{}};if(l==="link_open"){const D=a.attrGet("href")??"",N=document.location.origin;D!=null&&D.startsWith("http")&&!D.includes(N)&&(S.attrs.target="_blank",S.attrs.rel="noopener noreferrer",S.attrs.dataOuter="",(m=S.children)==null||m.push({tag:Mt}))}if(l==="table_open"){const D={tag:"div",children:[],attrs:{class:"sq-article-table"}};(k=c.children)==null||k.push(D),o.push(c),c=D}(C=c.children)==null||C.push(S),o.push(c),c=S;break}case"heading_close":case"paragraph_close":case"bullet_list_close":case"ordered_list_close":case"list_item_close":case"table_close":case"thead_close":case"tbody_close":case"tr_close":case"th_close":case"td_close":case"blockquote_close":case"strong_close":case"em_close":case"s_close":case"link_close":{if(p)break;c=o.pop();break}case"code_inline":{(x=c.children)==null||x.push({tag:"code",children:[d],attrs:b?Object.fromEntries(b):{}});break}case"inline":{if(f){const S=n(f);(_=c.children)==null||_.push(...S??[])}else(g=c.children)==null||g.push(d);break}case"text":{(y=c.children)==null||y.push(d);break}case"image":{(w=c.children)==null||w.push({tag:h,children:[],attrs:b?Object.fromEntries(b):{}});break}case"hr":{(E=c.children)==null||E.push({tag:h});break}case"input":{(A=c.children)==null||A.push({tag:h,children:[],attrs:b?Object.fromEntries(b):{}});break}case"html_inline":{if(d.startsWith("</"))c=o.pop();else{const S=d.replace("<","").replace(">",""),D={tag:S,children:[]};S==="blur"&&(D.tag="span",D.attrs={"data-blur":""}),(z=c.children)==null||z.push(D),o.push(c),c=D}break}}}),i.children}return{md2tokens:u,tokens2vueh:e}}const{md2tokens:Bo,tokens2vueh:zo}=So(),Mo=s.defineComponent({props:{text:{type:String,required:!0},md:{type:Boolean,default:!0},plugins:{type:Object}},setup(u){return()=>{if(!u.md)return s.h("article",{class:"sq-article",innerHTML:u.text});const e=Bo(u.text,u.plugins);return zo(e)}}}),To=["src","alt"],qo=["textContent"],vo=s.defineComponent({__name:"avatar",props:{img:{},alt:{},randomColor:{type:Boolean,default:!0},round:{type:Boolean,default:!0},size:{default:"md"}},setup(u){const e=u,t=s.ref(!0),n=s.computed(()=>{const c=[];return e.size!=="md"&&c.push(`sq-avatar--${e.size}`),e.round&&c.push("is-round"),c}),r=s.computed(()=>{if(!e.randomColor)return;const{getRandomColor:c}=Gt();return{"--avatar-bg-color":c()}}),o=s.computed(()=>e.alt.charAt(0).toUpperCase());function i(){t.value=!1}return(c,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-avatar",n.value]),style:s.normalizeStyle(r.value)},[e.img&&t.value?(s.openBlock(),s.createElementBlock("img",{key:0,src:e.img,alt:e.alt,onError:i},null,40,To)):(s.openBlock(),s.createElementBlock("span",{key:1,textContent:s.toDisplayString(o.value)},null,8,qo))],6))}}),Ro={key:0,viewBox:"0 0 100 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Lo={key:1,class:"sq-progress-label"},No=["textContent"],k0=s.defineComponent({__name:"progress",props:{value:{},min:{default:0},max:{default:100},stroke:{default:4},color:{},type:{default:"primary"},theme:{default:"line"},label:{type:Boolean,default:!0}},setup(u){const e=new ResizeObserver(l),t=u,n=s.ref(100),r=s.shallowRef(null),o=s.computed(()=>{const f=[];return t.color||f.push(`is-${t.type}`),t.theme!=="line"&&f.push(`is-${t.theme}`),f}),i=s.computed(()=>{const f=t.max-t.min;return(t.value-t.min)*100/f}),c=s.computed(()=>`${Math.round(i.value*10)/10} %`),a=s.computed(()=>{const f={};if(f["--progress-stroke"]=`${t.stroke}px`,t.theme==="line")f["--progress-value"]=`${i.value}%`;else if(r.value){const d=100/n.value*t.stroke,b=(100-d)/2,h=Math.PI*b*2,p=i.value/100;f["--progress-circle-r"]=`${b}px`,f["--progress-circle-l"]=`${h}px`,f["--progress-circle-stroke"]=`${d}px`,f["--progress-value"]=`${h*p}`,i.value===0&&(f["--progress-circle-opaciry"]="0")}if(t.color){const b=typeof t.color=="string"?t.color:t.color(i.value);f["--progress-color"]=b}return f});s.onMounted(()=>{e.observe(r.value)}),s.onBeforeUnmount(()=>{e.disconnect()});function l(){n.value=r.value.getBoundingClientRect().width}return(f,d)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-progress",o.value]),ref_key:"progressRef",ref:r,style:s.normalizeStyle(a.value)},[t.theme==="circle"?(s.openBlock(),s.createElementBlock("svg",Ro,[...d[0]||(d[0]=[s.createElementVNode("circle",{class:"sq-progress-track",cx:"50",cy:"50"},null,-1),s.createElementVNode("circle",{class:"sq-progress-path",cx:"50",cy:"50"},null,-1)])])):s.createCommentVNode("",!0),t.theme==="circle"&&t.label?(s.openBlock(),s.createElementBlock("div",Lo,[s.renderSlot(f.$slots,"default",{percentage:i.value},()=>[s.createElementVNode("span",{textContent:s.toDisplayString(c.value)},null,8,No)])])):s.createCommentVNode("",!0)],6))}}),Io={class:"sq-backtop"},Po=s.defineComponent({__name:"backtop",props:{progress:{type:Boolean,default:!0},icon:{default:Y0},transition:{default:"sq-rotate-in-left"},visibilityHeight:{default:100},target:{default:"#app"},progressProps:{}},setup(u){const e=new ResizeObserver(c),t=u,n=s.ref(100),r=s.ref(0),o=s.computed(()=>r.value>t.visibilityHeight);s.onMounted(()=>{c(),r.value=window.scrollY,window.addEventListener("scroll",i);const l=document.querySelector(t.target)??document.body;e.observe(l)}),s.onBeforeUnmount(()=>{window.removeEventListener("scroll",i),e.disconnect()});function i(){r.value=window.scrollY}function c(){const l=document.body.scrollHeight,f=window.innerHeight;n.value=l-f}function a(){window.scrollTo({top:0,behavior:"smooth"})}return(l,f)=>(s.openBlock(),s.createBlock(s.Transition,{name:t.transition},{default:s.withCtx(()=>{var d,b,h;return[s.withDirectives(s.createElementVNode("div",Io,[s.createElementVNode("div",{class:"sq-backtop-wrap",onClick:a},[t.progress?(s.openBlock(),s.createBlock(s.unref(k0),{key:0,theme:"circle",label:!1,value:r.value,max:n.value,type:(d=t.progressProps)==null?void 0:d.type,stroke:(b=t.progressProps)==null?void 0:b.stroke,color:(h=t.progressProps)==null?void 0:h.color},null,8,["value","max","type","stroke","color"])):s.createCommentVNode("",!0),s.renderSlot(l.$slots,"default",{},()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.icon)))])])],512),[[s.vShow,o.value]])]}),_:3},8,["name"]))}}),y0=Symbol("button-group-context-keys"),Oo=["disabled"],Su=s.defineComponent({__name:"button",props:{type:{},round:{type:Boolean},text:{type:Boolean},icon:{},loading:{type:Boolean},disabled:{type:Boolean},size:{default:"md"}},emits:["click"],setup(u,{emit:e}){const t=s.inject(y0,void 0),n=e,r=u,o=s.computed(()=>{const d=[],b=a.value,h=l.value,p=f.value;return b!=="md"&&d.push(`sq-button--${b}`),h&&d.push(`is-${h}`),p&&d.push("is-round"),!(t!=null&&t.value)&&r.text&&d.push("is-text"),d}),i=s.computed(()=>r.loading?Rt:r.icon),c=s.computed(()=>r.loading||r.disabled),a=s.computed(()=>{var d;return((d=t==null?void 0:t.value)==null?void 0:d.size)??r.size}),l=s.computed(()=>{var d;return((d=t==null?void 0:t.value)==null?void 0:d.type)??r.type}),f=s.computed(()=>{var d;return((d=t==null?void 0:t.value)==null?void 0:d.round)??r.round});return(d,b)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["sq-button",o.value]),disabled:c.value,onClick:b[0]||(b[0]=h=>n("click",h))},[s.createVNode(s.unref(ku),{size:r.size==="lg"?"md":r.size},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.value),{key:0})):s.createCommentVNode("",!0),s.renderSlot(d.$slots,"default")]),_:3},8,["size"])],10,Oo))}}),$o={class:"sq-button-group"},Vo=s.defineComponent({__name:"button-group",props:{size:{default:"md"},type:{},round:{type:Boolean}},setup(u){const e=u;return s.provide(y0,s.ref({size:s.toRef(e,"size"),type:s.toRef(e,"type"),round:s.toRef(e,"round")})),(t,n)=>(s.openBlock(),s.createElementBlock("div",$o,[s.renderSlot(t.$slots,"default")]))}}),jo={class:"sq-card"},Ho={key:0,class:"sq-card-header"},Zo=["textContent"],Uo={key:1,class:"sq-card-footer"},Wo=s.defineComponent({__name:"card",props:{title:{},decorative:{type:Boolean,default:!1}},setup(u){const e=s.useSlots(),t=u;return(n,r)=>(s.openBlock(),s.createElementBlock("section",jo,[t.title||s.unref(e).title?(s.openBlock(),s.createElementBlock("div",Ho,[s.createElementVNode("h2",{class:s.normalizeClass({"has-decorative":t.decorative}),textContent:s.toDisplayString(t.title)},null,10,Zo),s.renderSlot(n.$slots,"title")])):s.createCommentVNode("",!0),s.renderSlot(n.$slots,"default"),s.unref(e).footer?(s.openBlock(),s.createElementBlock("div",Uo,[s.renderSlot(n.$slots,"footer")])):s.createCommentVNode("",!0)]))}}),Go={key:0,class:"sq-input-prefix"},Jo=["disabled","readonly","placeholder","type"],Xo={class:"sq-input-suffix"},Qo=s.defineComponent({__name:"input",props:s.mergeModels({status:{},round:{type:Boolean},showStatusIcon:{type:Boolean},prefixIcon:{},suffixIcon:{},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},placeholder:{},type:{default:"text"},size:{default:"md"}},{value:{default:""},valueModifiers:{}}),emits:s.mergeModels(["focus","blur","input","change"],["update:value"]),setup(u,{expose:e,emit:t}){const n=s.useSlots(),r=t,o=u,i=s.useModel(u,"value"),c=s.ref(!1),a=s.ref(!1),l=s.shallowRef(null),f=s.computed(()=>{const D=[];return o.size!=="md"&&D.push(`sq-input--${o.size}`),o.status&&D.push(`is-${o.status}`),o.round&&D.push("is-round"),o.disabled&&D.push("is-disabled"),D}),d=s.computed(()=>a.value?wt:Pt),b=s.computed(()=>a.value?"text":o.type),h=s.computed(()=>n.prefix||o.prefixIcon),p=s.computed(()=>c.value&&i.value.length),m=s.computed(()=>p.value&&o.clearable),k=s.computed(()=>p.value&&o.type==="password"),C=s.computed(()=>{const D=o.showStatusIcon&&o.status;return n.suffix||D||o.suffixIcon}),x=s.computed(()=>k.value||m.value||C.value),_=s.computed(()=>{if(o.showStatusIcon&&o.status)switch(o.status){case"success":return tt;case"warn":return jt;case"error":return pt}return o.suffixIcon});function g(D){r("focus",D),!o.readonly&&(c.value=!0)}function y(D){r("blur",D),!o.readonly&&(c.value=!1)}function w(){setTimeout(E)}function E(){var D;(D=l.value)==null||D.focus()}function A(){var D;c.value=!1,(D=l.value)==null||D.blur()}function z(){i.value=""}function S(){a.value=!a.value}return e({focus:E,blur:A}),(D,N)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-input",f.value]),onMousedown:w},[h.value?(s.openBlock(),s.createElementBlock("span",Go,[s.renderSlot(D.$slots,"prefix",{},()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.prefixIcon)))])])):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":N[0]||(N[0]=X=>i.value=X),class:"sq-input-inner",disabled:o.disabled,readonly:o.readonly,placeholder:o.placeholder,type:b.value,ref_key:"inputRef",ref:l,onFocus:g,onBlur:y,onInput:N[1]||(N[1]=X=>r("input",X)),onChange:N[2]||(N[2]=X=>r("change",X))},null,40,Jo),[[s.vModelDynamic,i.value]]),s.withDirectives(s.createElementVNode("span",Xo,[s.withDirectives((s.openBlock(),s.createBlock(s.resolveDynamicComponent(d.value),{class:"sq-input-suffix-pwd",onMousedown:S},null,544)),[[s.vShow,k.value]]),s.withDirectives(s.createVNode(s.unref(at),{class:"sq-input-suffix-clear",onMousedown:z},null,512),[[s.vShow,m.value]]),s.renderSlot(D.$slots,"suffix",{},()=>[_.value?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(_.value),{key:0,class:s.normalizeClass({"sq-input-suffix-status":o.showStatusIcon})},null,8,["class"])):s.createCommentVNode("",!0)])],512),[[s.vShow,x.value]])],34))}}),Yo=["id"],Ko=["textContent"],uc=s.defineComponent({__name:"message",props:{message:{},type:{default:"info"},offsetTop:{},onDestroy:{},onClose:{},closeAfter:{default:3e3},id:{}},setup(u,{expose:e}){const t=u,n=s.ref(!0),r=s.computed(()=>{switch(t.type){case"primary":case"info":return Fe;case"success":return De;case"warn":return Se;case"error":return Ae}});s.onMounted(()=>{setTimeout(o,t.closeAfter)});function o(){n.value=!1}return e({close:o}),(i,c)=>(s.openBlock(),s.createBlock(s.Transition,{appear:"",name:"sq-zoom-top",onBeforeLeave:t.onClose,onAfterLeave:t.onDestroy},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["sq-message",`is-${t.type}`]),id:t.id,style:s.normalizeStyle({top:`${t.offsetTop}px`})},[s.createVNode(s.unref(ku),{class:"sq-message-main"},{default:s.withCtx(()=>[t.type&&r.value?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.value),{key:0,class:"sq-message-icon"})):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"sq-message-content",textContent:s.toDisplayString(t.message)},null,8,Ko)]),_:1}),c[0]||(c[0]=s.createElementVNode("div",{class:"sq-message-progress"},null,-1))],14,Yo),[[s.vShow,n.value]])]),_:1},8,["onBeforeLeave","onAfterLeave"]))}}),{nextZIndex:ec}=ze(),ou=[],tc=["primary","success","info","warn","error"],nc=document.documentElement,rc=getComputedStyle(nc),he=parseInt(rc.getPropertyValue("--sq-padding-md"));let oc=1;const be=(u={})=>{const e=`sq-message-${oc++}`;let t=document.querySelector(".sq-message-wrap");t||(t=document.createElement("div"),t.classList.add("sq-message-wrap"),document.body.appendChild(t)),t.style.zIndex=ec().toString();let n=he;ou.forEach(l=>{var f;n+=(((f=l.vm.el)==null?void 0:f.offsetHeight)||0)+he});const r={type:"info",...u,offsetTop:n,id:e},o=document.createElement("div"),i=r.onClose;r.onClose=()=>{i==null||i();const l=ou.findIndex(h=>h.vm.component.props.id===a.component.props.id),d=ou.splice(l,1)[0].vm.el.offsetHeight;if(!(ou.length<1))for(let h=l;h<ou.length;h++){const p=ou[h];let m=Number(parseInt(p.vm.el.style.top));m-=d,m-=he,p.vm.component.props.offsetTop=m}};const c=r.onDestroy;r.onDestroy=()=>{c==null||c(),s.render(null,o)};const a=s.createVNode(uc,r);return s.render(a,o),ou.push({vm:a}),t.appendChild(o.firstElementChild),{close:()=>{var l,f;(f=(l=a.component)==null?void 0:l.exposed)==null||f.close()}}};tc.forEach(u=>{be[u]=(e={})=>(typeof e=="string"&&(e={message:e}),be({...e,type:u}))});const cc=be,ic={class:"sq-pagination"},sc={class:"sq-pagination-pager"},ac=s.defineComponent({__name:"pagination",props:s.mergeModels({total:{default:0},disabled:{type:Boolean,default:!1},pagerCount:{default:5}},{current:{default:1},currentModifiers:{},"page-size":{default:10},"page-sizeModifiers":{}}),emits:["update:current","update:page-size"],setup(u){const e=u,t=s.useModel(u,"current"),n=s.useModel(u,"page-size"),r=s.computed(()=>Math.ceil(e.total/n.value)||1),o=s.computed(()=>{const a=[],l=Math.floor(e.pagerCount/2)-1;let f=t.value-l,d=t.value+l;f<2&&(f=2,d=f+l*2),d>r.value-1&&(d=r.value-1,f=d-l*2);for(let b=1;b<=r.value;b++)b===1||b===r.value||b>=f&&b<=d?a.push(b):(b===f-1||b===d+1)&&a.push(0);return a}),i=a=>{t.value+=a},c=a=>{t.value=a};return(a,l)=>(s.openBlock(),s.createElementBlock("div",ic,[s.createElementVNode("div",sc,[s.createVNode(s.unref(Su),{icon:s.unref(H0),disabled:t.value===1||e.disabled,onClick:l[0]||(l[0]=f=>i(-1))},null,8,["icon","disabled"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,f=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:f},[f?(s.openBlock(),s.createBlock(s.unref(Su),{key:0,type:t.value===f?"primary":void 0,disabled:e.disabled,onClick:d=>c(f)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(f),1)]),_:2},1032,["type","disabled","onClick"])):(s.openBlock(),s.createBlock(s.unref(Su),{key:1,icon:s.unref(kt),disabled:""},null,8,["icon"]))],64))),128)),s.createVNode(s.unref(Su),{icon:s.unref(G0),disabled:t.value===r.value||e.disabled,onClick:l[1]||(l[1]=f=>i(1))},null,8,["icon","disabled"])])]))}}),me=Math.min,mu=Math.max,$u=Math.round,Vu=Math.floor,W=u=>({x:u,y:u}),lc={left:"right",right:"left",bottom:"top",top:"bottom"},fc={start:"end",end:"start"};function xe(u,e){return typeof u=="function"?u(e):u}function xu(u){return u.split("-")[0]}function ju(u){return u.split("-")[1]}function dc(u){return u==="x"?"y":"x"}function C0(u){return u==="y"?"height":"width"}const pc=new Set(["top","bottom"]);function cu(u){return pc.has(xu(u))?"y":"x"}function E0(u){return dc(cu(u))}function hc(u,e,t){t===void 0&&(t=!1);const n=ju(u),r=E0(u),o=C0(r);let i=r==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(i=Hu(i)),[i,Hu(i)]}function bc(u){const e=Hu(u);return[_e(u),e,_e(e)]}function _e(u){return u.replace(/start|end/g,e=>fc[e])}const w0=["left","right"],D0=["right","left"],mc=["top","bottom"],xc=["bottom","top"];function _c(u,e,t){switch(u){case"top":case"bottom":return t?e?D0:w0:e?w0:D0;case"left":case"right":return e?mc:xc;default:return[]}}function gc(u,e,t,n){const r=ju(u);let o=_c(xu(u),t==="start",n);return r&&(o=o.map(i=>i+"-"+r),e&&(o=o.concat(o.map(_e)))),o}function Hu(u){return u.replace(/left|right|bottom|top/g,e=>lc[e])}function kc(u){return{top:0,right:0,bottom:0,left:0,...u}}function yc(u){return typeof u!="number"?kc(u):{top:u,right:u,bottom:u,left:u}}function Zu(u){const{x:e,y:t,width:n,height:r}=u;return{width:n,height:r,top:t,left:e,right:e+n,bottom:t+r,x:e,y:t}}function A0(u,e,t){let{reference:n,floating:r}=u;const o=cu(e),i=E0(e),c=C0(i),a=xu(e),l=o==="y",f=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,b=n[c]/2-r[c]/2;let h;switch(a){case"top":h={x:f,y:n.y-r.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-r.width,y:d};break;default:h={x:n.x,y:n.y}}switch(ju(e)){case"start":h[i]-=b*(t&&l?-1:1);break;case"end":h[i]+=b*(t&&l?-1:1);break}return h}const Cc=async(u,e,t)=>{const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i}=t,c=o.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:u,floating:e,strategy:r}),{x:f,y:d}=A0(l,n,a),b=n,h={},p=0;for(let m=0;m<c.length;m++){const{name:k,fn:C}=c[m],{x,y:_,data:g,reset:y}=await C({x:f,y:d,initialPlacement:n,placement:b,strategy:r,middlewareData:h,rects:l,platform:i,elements:{reference:u,floating:e}});f=x??f,d=_??d,h={...h,[k]:{...h[k],...g}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(b=y.placement),y.rects&&(l=y.rects===!0?await i.getElementRects({reference:u,floating:e,strategy:r}):y.rects),{x:f,y:d}=A0(l,b,a)),m=-1)}return{x:f,y:d,placement:b,strategy:r,middlewareData:h}};async function Ec(u,e){var t;e===void 0&&(e={});const{x:n,y:r,platform:o,rects:i,elements:c,strategy:a}=u,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:b=!1,padding:h=0}=xe(e,u),p=yc(h),k=c[b?d==="floating"?"reference":"floating":d],C=Zu(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(k)))==null||t?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:a})),x=d==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),g=await(o.isElement==null?void 0:o.isElement(_))?await(o.getScale==null?void 0:o.getScale(_))||{x:1,y:1}:{x:1,y:1},y=Zu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:_,strategy:a}):x);return{top:(C.top-y.top+p.top)/g.y,bottom:(y.bottom-C.bottom+p.bottom)/g.y,left:(C.left-y.left+p.left)/g.x,right:(y.right-C.right+p.right)/g.x}}const wc=function(u){return u===void 0&&(u={}),{name:"flip",options:u,async fn(e){var t,n;const{placement:r,middlewareData:o,rects:i,initialPlacement:c,platform:a,elements:l}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:b,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...k}=xe(u,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const C=xu(r),x=cu(c),_=xu(c)===c,g=await(a.isRTL==null?void 0:a.isRTL(l.floating)),y=b||(_||!m?[Hu(c)]:bc(c)),w=p!=="none";!b&&w&&y.push(...gc(c,m,p,g));const E=[c,...y],A=await Ec(e,k),z=[];let S=((n=o.flip)==null?void 0:n.overflows)||[];if(f&&z.push(A[C]),d){const Q=hc(r,i,g);z.push(A[Q[0]],A[Q[1]])}if(S=[...S,{placement:r,overflows:z}],!z.every(Q=>Q<=0)){var D,N;const Q=(((D=o.flip)==null?void 0:D.index)||0)+1,Y=E[Q];if(Y&&(!(d==="alignment"?x!==cu(Y):!1)||S.every(V=>cu(V.placement)===x?V.overflows[0]>0:!0)))return{data:{index:Q,overflows:S},reset:{placement:Y}};let au=(N=S.filter(lu=>lu.overflows[0]<=0).sort((lu,V)=>lu.overflows[1]-V.overflows[1])[0])==null?void 0:N.placement;if(!au)switch(h){case"bestFit":{var X;const lu=(X=S.filter(V=>{if(w){const ru=cu(V.placement);return ru===x||ru==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ru=>ru>0).reduce((ru,bi)=>ru+bi,0)]).sort((V,ru)=>V[1]-ru[1])[0])==null?void 0:X[0];lu&&(au=lu);break}case"initialPlacement":au=c;break}if(r!==au)return{reset:{placement:au}}}return{}}}},Dc=new Set(["left","top"]);async function Ac(u,e){const{placement:t,platform:n,elements:r}=u,o=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=xu(t),c=ju(t),a=cu(t)==="y",l=Dc.has(i)?-1:1,f=o&&a?-1:1,d=xe(e,u);let{mainAxis:b,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof p=="number"&&(h=c==="end"?p*-1:p),a?{x:h*f,y:b*l}:{x:b*l,y:h*f}}const Fc=function(u){return u===void 0&&(u=0),{name:"offset",options:u,async fn(e){var t,n;const{x:r,y:o,placement:i,middlewareData:c}=e,a=await Ac(e,u);return i===((t=c.offset)==null?void 0:t.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:i}}}}};function Uu(){return typeof window<"u"}function iu(u){return ge(u)?(u.nodeName||"").toLowerCase():"#document"}function L(u){var e;return(u==null||(e=u.ownerDocument)==null?void 0:e.defaultView)||window}function G(u){var e;return(e=(ge(u)?u.ownerDocument:u.document)||window.document)==null?void 0:e.documentElement}function ge(u){return Uu()?u instanceof Node||u instanceof L(u).Node:!1}function O(u){return Uu()?u instanceof Element||u instanceof L(u).Element:!1}function J(u){return Uu()?u instanceof HTMLElement||u instanceof L(u).HTMLElement:!1}function F0(u){return!Uu()||typeof ShadowRoot>"u"?!1:u instanceof ShadowRoot||u instanceof L(u).ShadowRoot}const Sc=new Set(["inline","contents"]);function Bu(u){const{overflow:e,overflowX:t,overflowY:n,display:r}=$(u);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!Sc.has(r)}const Bc=new Set(["table","td","th"]);function zc(u){return Bc.has(iu(u))}const Mc=[":popover-open",":modal"];function Wu(u){return Mc.some(e=>{try{return u.matches(e)}catch{return!1}})}const Tc=["transform","translate","scale","rotate","perspective"],qc=["transform","translate","scale","rotate","perspective","filter"],vc=["paint","layout","strict","content"];function ke(u){const e=ye(),t=O(u)?$(u):u;return Tc.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||qc.some(n=>(t.willChange||"").includes(n))||vc.some(n=>(t.contain||"").includes(n))}function Rc(u){let e=nu(u);for(;J(e)&&!_u(e);){if(ke(e))return e;if(Wu(e))return null;e=nu(e)}return null}function ye(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lc=new Set(["html","body","#document"]);function _u(u){return Lc.has(iu(u))}function $(u){return L(u).getComputedStyle(u)}function Gu(u){return O(u)?{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}:{scrollLeft:u.scrollX,scrollTop:u.scrollY}}function nu(u){if(iu(u)==="html")return u;const e=u.assignedSlot||u.parentNode||F0(u)&&u.host||G(u);return F0(e)?e.host:e}function S0(u){const e=nu(u);return _u(e)?u.ownerDocument?u.ownerDocument.body:u.body:J(e)&&Bu(e)?e:S0(e)}function zu(u,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=S0(u),o=r===((n=u.ownerDocument)==null?void 0:n.body),i=L(r);if(o){const c=Ce(i);return e.concat(i,i.visualViewport||[],Bu(r)?r:[],c&&t?zu(c):[])}return e.concat(r,zu(r,[],t))}function Ce(u){return u.parent&&Object.getPrototypeOf(u.parent)?u.frameElement:null}function B0(u){const e=$(u);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=J(u),o=r?u.offsetWidth:t,i=r?u.offsetHeight:n,c=$u(t)!==o||$u(n)!==i;return c&&(t=o,n=i),{width:t,height:n,$:c}}function Ee(u){return O(u)?u:u.contextElement}function gu(u){const e=Ee(u);if(!J(e))return W(1);const t=e.getBoundingClientRect(),{width:n,height:r,$:o}=B0(e);let i=(o?$u(t.width):t.width)/n,c=(o?$u(t.height):t.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Nc=W(0);function z0(u){const e=L(u);return!ye()||!e.visualViewport?Nc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ic(u,e,t){return e===void 0&&(e=!1),!t||e&&t!==L(u)?!1:e}function su(u,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=u.getBoundingClientRect(),o=Ee(u);let i=W(1);e&&(n?O(n)&&(i=gu(n)):i=gu(u));const c=Ic(o,t,n)?z0(o):W(0);let a=(r.left+c.x)/i.x,l=(r.top+c.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(o){const b=L(o),h=n&&O(n)?L(n):n;let p=b,m=Ce(p);for(;m&&n&&h!==p;){const k=gu(m),C=m.getBoundingClientRect(),x=$(m),_=C.left+(m.clientLeft+parseFloat(x.paddingLeft))*k.x,g=C.top+(m.clientTop+parseFloat(x.paddingTop))*k.y;a*=k.x,l*=k.y,f*=k.x,d*=k.y,a+=_,l+=g,p=L(m),m=Ce(p)}}return Zu({width:f,height:d,x:a,y:l})}function Ju(u,e){const t=Gu(u).scrollLeft;return e?e.left+t:su(G(u)).left+t}function M0(u,e){const t=u.getBoundingClientRect(),n=t.left+e.scrollLeft-Ju(u,t),r=t.top+e.scrollTop;return{x:n,y:r}}function Pc(u){let{elements:e,rect:t,offsetParent:n,strategy:r}=u;const o=r==="fixed",i=G(n),c=e?Wu(e.floating):!1;if(n===i||c&&o)return t;let a={scrollLeft:0,scrollTop:0},l=W(1);const f=W(0),d=J(n);if((d||!d&&!o)&&((iu(n)!=="body"||Bu(i))&&(a=Gu(n)),J(n))){const h=su(n);l=gu(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const b=i&&!d&&!o?M0(i,a):W(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+f.x+b.x,y:t.y*l.y-a.scrollTop*l.y+f.y+b.y}}function Oc(u){return Array.from(u.getClientRects())}function $c(u){const e=G(u),t=Gu(u),n=u.ownerDocument.body,r=mu(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=mu(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Ju(u);const c=-t.scrollTop;return $(n).direction==="rtl"&&(i+=mu(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:c}}const T0=25;function Vc(u,e){const t=L(u),n=G(u),r=t.visualViewport;let o=n.clientWidth,i=n.clientHeight,c=0,a=0;if(r){o=r.width,i=r.height;const f=ye();(!f||f&&e==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}const l=Ju(n);if(l<=0){const f=n.ownerDocument,d=f.body,b=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,p=Math.abs(n.clientWidth-d.clientWidth-h);p<=T0&&(o-=p)}else l<=T0&&(o+=l);return{width:o,height:i,x:c,y:a}}const jc=new Set(["absolute","fixed"]);function Hc(u,e){const t=su(u,!0,e==="fixed"),n=t.top+u.clientTop,r=t.left+u.clientLeft,o=J(u)?gu(u):W(1),i=u.clientWidth*o.x,c=u.clientHeight*o.y,a=r*o.x,l=n*o.y;return{width:i,height:c,x:a,y:l}}function q0(u,e,t){let n;if(e==="viewport")n=Vc(u,t);else if(e==="document")n=$c(G(u));else if(O(e))n=Hc(e,t);else{const r=z0(u);n={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Zu(n)}function v0(u,e){const t=nu(u);return t===e||!O(t)||_u(t)?!1:$(t).position==="fixed"||v0(t,e)}function Zc(u,e){const t=e.get(u);if(t)return t;let n=zu(u,[],!1).filter(c=>O(c)&&iu(c)!=="body"),r=null;const o=$(u).position==="fixed";let i=o?nu(u):u;for(;O(i)&&!_u(i);){const c=$(i),a=ke(i);!a&&c.position==="fixed"&&(r=null),(o?!a&&!r:!a&&c.position==="static"&&!!r&&jc.has(r.position)||Bu(i)&&!a&&v0(u,i))?n=n.filter(f=>f!==i):r=c,i=nu(i)}return e.set(u,n),n}function Uc(u){let{element:e,boundary:t,rootBoundary:n,strategy:r}=u;const i=[...t==="clippingAncestors"?Wu(e)?[]:Zc(e,this._c):[].concat(t),n],c=i[0],a=i.reduce((l,f)=>{const d=q0(e,f,r);return l.top=mu(d.top,l.top),l.right=me(d.right,l.right),l.bottom=me(d.bottom,l.bottom),l.left=mu(d.left,l.left),l},q0(e,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Wc(u){const{width:e,height:t}=B0(u);return{width:e,height:t}}function Gc(u,e,t){const n=J(e),r=G(e),o=t==="fixed",i=su(u,!0,o,e);let c={scrollLeft:0,scrollTop:0};const a=W(0);function l(){a.x=Ju(r)}if(n||!n&&!o)if((iu(e)!=="body"||Bu(r))&&(c=Gu(e)),n){const h=su(e,!0,o,e);a.x=h.x+e.clientLeft,a.y=h.y+e.clientTop}else r&&l();o&&!n&&r&&l();const f=r&&!n&&!o?M0(r,c):W(0),d=i.left+c.scrollLeft-a.x-f.x,b=i.top+c.scrollTop-a.y-f.y;return{x:d,y:b,width:i.width,height:i.height}}function we(u){return $(u).position==="static"}function R0(u,e){if(!J(u)||$(u).position==="fixed")return null;if(e)return e(u);let t=u.offsetParent;return G(u)===t&&(t=t.ownerDocument.body),t}function L0(u,e){const t=L(u);if(Wu(u))return t;if(!J(u)){let r=nu(u);for(;r&&!_u(r);){if(O(r)&&!we(r))return r;r=nu(r)}return t}let n=R0(u,e);for(;n&&zc(n)&&we(n);)n=R0(n,e);return n&&_u(n)&&we(n)&&!ke(n)?t:n||Rc(u)||t}const Jc=async function(u){const e=this.getOffsetParent||L0,t=this.getDimensions,n=await t(u.floating);return{reference:Gc(u.reference,await e(u.floating),u.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Xc(u){return $(u).direction==="rtl"}const Qc={convertOffsetParentRelativeRectToViewportRelativeRect:Pc,getDocumentElement:G,getClippingRect:Uc,getOffsetParent:L0,getElementRects:Jc,getClientRects:Oc,getDimensions:Wc,getScale:gu,isElement:O,isRTL:Xc};function N0(u,e){return u.x===e.x&&u.y===e.y&&u.width===e.width&&u.height===e.height}function Yc(u,e){let t=null,n;const r=G(u);function o(){var c;clearTimeout(n),(c=t)==null||c.disconnect(),t=null}function i(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();const l=u.getBoundingClientRect(),{left:f,top:d,width:b,height:h}=l;if(c||e(),!b||!h)return;const p=Vu(d),m=Vu(r.clientWidth-(f+b)),k=Vu(r.clientHeight-(d+h)),C=Vu(f),_={rootMargin:-p+"px "+-m+"px "+-k+"px "+-C+"px",threshold:mu(0,me(1,a))||1};let g=!0;function y(w){const E=w[0].intersectionRatio;if(E!==a){if(!g)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!N0(l,u.getBoundingClientRect())&&i(),g=!1}try{t=new IntersectionObserver(y,{..._,root:r.ownerDocument})}catch{t=new IntersectionObserver(y,_)}t.observe(u)}return i(!0),o}function Kc(u,e,t,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,l=Ee(u),f=r||o?[...l?zu(l):[],...zu(e)]:[];f.forEach(C=>{r&&C.addEventListener("scroll",t,{passive:!0}),o&&C.addEventListener("resize",t)});const d=l&&c?Yc(l,t):null;let b=-1,h=null;i&&(h=new ResizeObserver(C=>{let[x]=C;x&&x.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),t()}),l&&!a&&h.observe(l),h.observe(e));let p,m=a?su(u):null;a&&k();function k(){const C=su(u);m&&!N0(m,C)&&t(),m=C,p=requestAnimationFrame(k)}return t(),()=>{var C;f.forEach(x=>{r&&x.removeEventListener("scroll",t),o&&x.removeEventListener("resize",t)}),d==null||d(),(C=h)==null||C.disconnect(),h=null,a&&cancelAnimationFrame(p)}}const ui=Fc,ei=wc,ti=(u,e,t)=>{const n=new Map,r={platform:Qc,...t},o={...r.platform,_c:n};return Cc(u,e,{...r,platform:o})};function ni(u){return u!=null&&typeof u=="object"&&"$el"in u}function I0(u){if(ni(u)){const e=u.$el;return ge(e)&&iu(e)==="#comment"?null:e}return u}function Mu(u){return typeof u=="function"?u():s.unref(u)}function P0(u){return typeof window>"u"?1:(u.ownerDocument.defaultView||window).devicePixelRatio||1}function O0(u,e){const t=P0(u);return Math.round(e*t)/t}function ri(u,e,t){t===void 0&&(t={});const n=t.whileElementsMounted,r=s.computed(()=>{var E;return(E=Mu(t.open))!=null?E:!0}),o=s.computed(()=>Mu(t.middleware)),i=s.computed(()=>{var E;return(E=Mu(t.placement))!=null?E:"bottom"}),c=s.computed(()=>{var E;return(E=Mu(t.strategy))!=null?E:"absolute"}),a=s.computed(()=>{var E;return(E=Mu(t.transform))!=null?E:!0}),l=s.computed(()=>I0(u.value)),f=s.computed(()=>I0(e.value)),d=s.ref(0),b=s.ref(0),h=s.ref(c.value),p=s.ref(i.value),m=s.shallowRef({}),k=s.ref(!1),C=s.computed(()=>{const E={position:h.value,left:"0",top:"0"};if(!f.value)return E;const A=O0(f.value,d.value),z=O0(f.value,b.value);return a.value?{...E,transform:"translate("+A+"px, "+z+"px)",...P0(f.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:A+"px",top:z+"px"}});let x;function _(){if(l.value==null||f.value==null)return;const E=r.value;ti(l.value,f.value,{middleware:o.value,placement:i.value,strategy:c.value}).then(A=>{d.value=A.x,b.value=A.y,h.value=A.strategy,p.value=A.placement,m.value=A.middlewareData,k.value=E!==!1})}function g(){typeof x=="function"&&(x(),x=void 0)}function y(){if(g(),n===void 0){_();return}if(l.value!=null&&f.value!=null){x=n(l.value,f.value,_);return}}function w(){r.value||(k.value=!1)}return s.watch([o,i,c,r],_,{flush:"sync"}),s.watch([l,f],y,{flush:"sync"}),s.watch(r,w,{flush:"sync"}),s.getCurrentScope()&&s.onScopeDispose(g),{x:s.shallowReadonly(d),y:s.shallowReadonly(b),strategy:s.shallowReadonly(h),placement:s.shallowReadonly(p),middlewareData:s.shallowReadonly(m),isPositioned:s.shallowReadonly(k),floatingStyles:C,update:_}}const oi=s.defineComponent({__name:"popover",props:s.mergeModels({placement:{default:"top"},offset:{default:10},teleported:{type:Boolean,default:!0},trigger:{default:"hover"},showAfter:{default:0},hideAfter:{default:300},disabled:{type:Boolean},transition:{default:"sq-fade"},popoverClass:{}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(u){const{nextZIndex:e}=ze();let t;const n=u,r=s.ref(0),o=s.shallowRef(null),i=s.shallowRef(null),c=s.useModel(u,"visible"),{floatingStyles:a}=ri(o,i,{placement:n.placement,whileElementsMounted:Kc,transform:!1,middleware:[ui(n.offset),ei()]});s.watch(c,m=>{m&&(r.value=e())}),s.onBeforeUnmount(()=>{p(),document.removeEventListener("click",h)});function l(){n.trigger!=="hover"||n.disabled||(p(),t=setTimeout(()=>{b(!1)},n.showAfter))}function f(){n.trigger==="hover"&&(p(),t=setTimeout(()=>{h()},n.hideAfter))}function d(m){n.trigger==="click"&&!n.disabled&&!c.value&&(m.stopPropagation(),b())}function b(m=!0){c.value=!0,m&&document.addEventListener("click",h)}function h(){c.value=!1,document.removeEventListener("click",h)}function p(){t&&(clearTimeout(t),t=void 0)}return(m,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("span",{class:s.normalizeClass(["sq-popover-trigger",m.$attrs.class]),style:s.normalizeStyle(m.$attrs.style),ref_key:"triggerRef",ref:o,onMouseenter:l,onMouseleave:f,onClick:d},[s.renderSlot(m.$slots,"reference")],38),(s.openBlock(),s.createBlock(s.Teleport,{to:"body",disabled:!n.teleported},[s.createVNode(s.Transition,{name:n.transition},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["sq-popover",m.popoverClass]),style:s.normalizeStyle({...s.unref(a),zIndex:r.value}),ref_key:"popverRef",ref:i,onClick:k[0]||(k[0]=s.withModifiers(()=>{},["stop"]))},[s.renderSlot(m.$slots,"default")],6),[[s.vShow,c.value]])]),_:3},8,["name"])],8,["disabled"]))],64))}}),ci=s.defineComponent({__name:"tag",props:{type:{},theme:{default:"plain"},round:{type:Boolean},size:{default:"md"}},setup(u){const e=u,t=s.computed(()=>{const r=[];return e.size!=="md"&&r.push(`sq-tag--${e.size}`),e.theme!=="plain"&&e.type&&r.push(`is-${e.theme}`),e.type&&r.push(`is-${e.type}`),e.round&&r.push("is-round"),r}),n=s.computed(()=>e.size==="lg"?"md":"sm");return(r,o)=>(s.openBlock(),s.createBlock(s.unref(ku),{class:s.normalizeClass(["sq-tag",t.value]),size:n.value},{default:s.withCtx(()=>[s.renderSlot(r.$slots,"default")]),_:3},8,["class","size"]))}}),ii=s.defineComponent({__name:"check-tag",props:{checked:{type:Boolean,default:!1},theme:{default:"plain"},type:{default:"primary"},round:{type:Boolean},size:{default:"md"}},emits:["change"],setup(u,{emit:e}){const t=e,n=u,r=s.computed(()=>{const i=[];return n.size!=="md"&&i.push(`sq-tag--${n.size}`),n.theme!=="plain"&&i.push(`is-${n.theme}`),n.type&&i.push(`is-${n.type}`),n.round&&i.push("is-round"),n.checked&&i.push("is-checked"),i}),o=s.computed(()=>n.size==="lg"?"md":"sm");return(i,c)=>(s.openBlock(),s.createBlock(s.unref(ku),{class:s.normalizeClass(["sq-check-tag",r.value]),size:o.value,onClick:c[0]||(c[0]=a=>t("change",!n.checked))},{default:s.withCtx(()=>[s.renderSlot(i.$slots,"default")]),_:3},8,["class","size"]))}}),ku=s.defineComponent({__name:"text",props:{rowNum:{default:1},ellipsis:{type:Boolean,default:!1},size:{default:"md"}},setup(u){const e=u,t=s.computed(()=>{const r=[];return e.size!=="md"&&r.push(`sq-text--${e.size}`),e.ellipsis&&r.push(e.rowNum>1?"multi-line":"single-line"),r}),n=s.computed(()=>e.ellipsis?`--row-num: ${e.rowNum}`:"");return(r,o)=>(s.openBlock(),s.createElementBlock("span",{class:s.normalizeClass(["sq-text",t.value]),style:s.normalizeStyle(n.value)},[s.renderSlot(r.$slots,"default")],6))}}),si=s.defineComponent({__name:"timeline",props:{align:{default:"left"}},setup(u){const e=u,t=s.computed(()=>{const n=[];return n.push(`align-${e.align}`),n});return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-timeline",t.value])},[s.renderSlot(n.$slots,"default")],2))}}),ai={class:"sq-timeline-dot"},li={class:"sq-timeline-content"},fi=["textContent"],di=["textContent"],pi={class:"content-info"},hi=s.defineComponent({__name:"timeline-item",props:{color:{},type:{},icon:{},hollow:{type:Boolean},timestamp:{},theme:{default:"card"},title:{}},setup(u){const e=u,t=s.computed(()=>{const r=[];return e.theme!=="card"&&r.push(`is-${e.theme}`),e.type&&r.push(`is-${e.type}`),e.hollow&&r.push("is-hollow"),r}),n=s.computed(()=>{const r={};return e.color&&(r["--timeline-dot-color"]=e.color),r});return(r,o)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sq-timeline-item",t.value]),style:s.normalizeStyle(n.value)},[s.createElementVNode("span",ai,[e.icon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.icon),{key:0})):s.createCommentVNode("",!0)]),s.createElementVNode("div",li,[e.title?(s.openBlock(),s.createElementBlock("h2",{key:0,class:"content-title",textContent:s.toDisplayString(e.title)},null,8,fi)):s.createCommentVNode("",!0),e.timestamp?(s.openBlock(),s.createElementBlock("span",{key:1,class:"content-time",textContent:s.toDisplayString(e.timestamp)},null,8,di)):s.createCommentVNode("",!0),s.createElementVNode("div",pi,[s.renderSlot(r.$slots,"default")])])],6))}});B.SqAlert=Wt,B.SqArticle=Mo,B.SqAvatar=vo,B.SqBacktop=Po,B.SqButton=Su,B.SqButtonGroup=Vo,B.SqCard=Wo,B.SqCheckTag=ii,B.SqInput=Qo,B.SqMessage=cc,B.SqPagination=ac,B.SqPopover=oi,B.SqProgress=k0,B.SqTag=ci,B.SqText=ku,B.SqTimeline=si,B.SqTimelineItem=hi,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|