@inploi/plugin-kin 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +23 -23
- package/dist/{code-block-37QAKDTI-af2193be.js → code-block-37QAKDTI-227b441d.js} +1 -1
- package/dist/{code-block-37QAKDTI-576199ff.cjs → code-block-37QAKDTI-7f27b799.cjs} +1 -1
- package/dist/{index-40023a17.js → index-67f360ea.js} +863 -865
- package/dist/{index-5fda7aab.cjs → index-70a5a203.cjs} +25 -25
- package/dist/kin.d.ts +4 -5
- package/dist/{mermaid-4DMBBIKO-532dee41.cjs → mermaid-4DMBBIKO-37b05f47.cjs} +1 -1
- package/dist/{mermaid-4DMBBIKO-86182ec6.js → mermaid-4DMBBIKO-82ae8ed9.js} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +3 -3
|
@@ -60,11 +60,11 @@ function vr() {
|
|
|
60
60
|
vr.__r = 0;
|
|
61
61
|
}
|
|
62
62
|
function Lo(e, t, n, r, i, a, s, u, o, l, f) {
|
|
63
|
-
var d, p, h, m, T,
|
|
64
|
-
for (n.__k = [], d = 0; d <
|
|
65
|
-
(m = n.__k[d] = (m = t[d]) == null || typeof m == "boolean" || typeof m == "function" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" ? yr(null, m, null, null, m) : Kr(m) ? yr($e, { children: m }, null, null, null) : m.__b > 0 ? yr(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) != null && (m.__ = n, m.__b = n.__b + 1, (
|
|
66
|
-
for (n.__e =
|
|
67
|
-
|
|
63
|
+
var d, p, h, m, T, C, y, I, w, D, R = 0, A = r && r.__k || wo, H = A.length, B = H, U = t.length;
|
|
64
|
+
for (n.__k = [], d = 0; d < U; d++)
|
|
65
|
+
(m = n.__k[d] = (m = t[d]) == null || typeof m == "boolean" || typeof m == "function" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" ? yr(null, m, null, null, m) : Kr(m) ? yr($e, { children: m }, null, null, null) : m.__b > 0 ? yr(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) != null && (m.__ = n, m.__b = n.__b + 1, (I = h0(m, A, y = d + R, B)) === -1 ? h = sn : (h = A[I] || sn, A[I] = void 0, B--), ba(e, m, h, i, a, s, u, o, l, f), T = m.__e, (p = m.ref) && h.ref != p && (h.ref && Ea(h.ref, null, m), f.push(p, m.__c || T, m)), T != null && (C == null && (C = T), D = !(w = h === sn || h.__v === null) && I === y, w ? I == -1 && R-- : I !== y && (I === y + 1 ? (R++, D = !0) : I > y ? B > U - y ? (R += I - y, D = !0) : R-- : R = I < y && I == y - 1 ? I - y : 0), y = d + R, D = D || I == d && !w, typeof m.type != "function" || I === y && h.__k !== m.__k ? typeof m.type == "function" || D ? m.__d !== void 0 ? (o = m.__d, m.__d = void 0) : o = T.nextSibling : o = Ro(e, T, o) : o = vo(m, o, e), typeof n.type == "function" && (n.__d = o)));
|
|
66
|
+
for (n.__e = C, d = H; d--; )
|
|
67
|
+
A[d] != null && (typeof n.type == "function" && A[d].__e != null && A[d].__e == n.__d && (n.__d = A[d].__e.nextSibling), Do(A[d], A[d]));
|
|
68
68
|
}
|
|
69
69
|
function vo(e, t, n) {
|
|
70
70
|
for (var r, i = e.__k, a = 0; i && a < i.length; a++)
|
|
@@ -143,42 +143,42 @@ function Es(e) {
|
|
|
143
143
|
return this.l[e.type + !0](W.event ? W.event(e) : e);
|
|
144
144
|
}
|
|
145
145
|
function ba(e, t, n, r, i, a, s, u, o, l) {
|
|
146
|
-
var f, d, p, h, m, T,
|
|
146
|
+
var f, d, p, h, m, T, C, y, I, w, D, R, A, H, B, U = t.type;
|
|
147
147
|
if (t.constructor !== void 0)
|
|
148
148
|
return null;
|
|
149
149
|
n.__h != null && (o = n.__h, u = t.__e = n.__e, t.__h = null, a = [u]), (f = W.__b) && f(t);
|
|
150
150
|
try {
|
|
151
151
|
e:
|
|
152
|
-
if (typeof
|
|
153
|
-
if (
|
|
154
|
-
|
|
152
|
+
if (typeof U == "function") {
|
|
153
|
+
if (y = t.props, I = (f = U.contextType) && r[f.__c], w = f ? I ? I.props.value : f.__ : r, n.__c ? C = (d = t.__c = n.__c).__ = d.__E : ("prototype" in U && U.prototype.render ? t.__c = d = new U(y, w) : (t.__c = d = new ht(y, w), d.constructor = U, d.render = g0), I && I.sub(d), d.props = y, d.state || (d.state = {}), d.context = w, d.__n = r, p = d.__d = !0, d.__h = [], d._sb = []), d.__s == null && (d.__s = d.state), U.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = vt({}, d.__s)), vt(d.__s, U.getDerivedStateFromProps(y, d.__s))), h = d.props, m = d.state, d.__v = t, p)
|
|
154
|
+
U.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
|
|
155
155
|
else {
|
|
156
|
-
if (
|
|
157
|
-
for (t.__v !== n.__v && (d.props =
|
|
158
|
-
|
|
159
|
-
}),
|
|
160
|
-
d.__h.push(d._sb[
|
|
156
|
+
if (U.getDerivedStateFromProps == null && y !== h && d.componentWillReceiveProps != null && d.componentWillReceiveProps(y, w), !d.__e && (d.shouldComponentUpdate != null && d.shouldComponentUpdate(y, d.__s, w) === !1 || t.__v === n.__v)) {
|
|
157
|
+
for (t.__v !== n.__v && (d.props = y, d.state = d.__s, d.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(N) {
|
|
158
|
+
N && (N.__ = t);
|
|
159
|
+
}), D = 0; D < d._sb.length; D++)
|
|
160
|
+
d.__h.push(d._sb[D]);
|
|
161
161
|
d._sb = [], d.__h.length && s.push(d);
|
|
162
162
|
break e;
|
|
163
163
|
}
|
|
164
|
-
d.componentWillUpdate != null && d.componentWillUpdate(
|
|
164
|
+
d.componentWillUpdate != null && d.componentWillUpdate(y, d.__s, w), d.componentDidUpdate != null && d.__h.push(function() {
|
|
165
165
|
d.componentDidUpdate(h, m, T);
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
if (d.context = w, d.props =
|
|
169
|
-
for (d.state = d.__s, d.__d = !1,
|
|
170
|
-
d.__h.push(d._sb[
|
|
168
|
+
if (d.context = w, d.props = y, d.__P = e, d.__e = !1, R = W.__r, A = 0, "prototype" in U && U.prototype.render) {
|
|
169
|
+
for (d.state = d.__s, d.__d = !1, R && R(t), f = d.render(d.props, d.state, d.context), H = 0; H < d._sb.length; H++)
|
|
170
|
+
d.__h.push(d._sb[H]);
|
|
171
171
|
d._sb = [];
|
|
172
172
|
} else
|
|
173
173
|
do
|
|
174
|
-
d.__d = !1,
|
|
175
|
-
while (d.__d && ++
|
|
176
|
-
d.state = d.__s, d.getChildContext != null && (r = vt(vt({}, r), d.getChildContext())), p || d.getSnapshotBeforeUpdate == null || (T = d.getSnapshotBeforeUpdate(h, m)), Lo(e, Kr(B = f != null && f.type === $e && f.key == null ? f.props.children : f) ? B : [B], t, n, r, i, a, s, u, o, l), d.base = t.__e, t.__h = null, d.__h.length && s.push(d),
|
|
174
|
+
d.__d = !1, R && R(t), f = d.render(d.props, d.state, d.context), d.state = d.__s;
|
|
175
|
+
while (d.__d && ++A < 25);
|
|
176
|
+
d.state = d.__s, d.getChildContext != null && (r = vt(vt({}, r), d.getChildContext())), p || d.getSnapshotBeforeUpdate == null || (T = d.getSnapshotBeforeUpdate(h, m)), Lo(e, Kr(B = f != null && f.type === $e && f.key == null ? f.props.children : f) ? B : [B], t, n, r, i, a, s, u, o, l), d.base = t.__e, t.__h = null, d.__h.length && s.push(d), C && (d.__E = d.__ = null);
|
|
177
177
|
} else
|
|
178
178
|
a == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = m0(n.__e, t, n, r, i, a, s, o, l);
|
|
179
179
|
(f = W.diffed) && f(t);
|
|
180
|
-
} catch (
|
|
181
|
-
t.__v = null, (o || a != null) && (t.__e = u, t.__h = !!o, a[a.indexOf(u)] = null), W.__e(
|
|
180
|
+
} catch (N) {
|
|
181
|
+
t.__v = null, (o || a != null) && (t.__e = u, t.__h = !!o, a[a.indexOf(u)] = null), W.__e(N, t, n);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function Oo(e, t, n) {
|
|
@@ -1169,11 +1169,11 @@ function G0({
|
|
|
1169
1169
|
onUploadFile: s,
|
|
1170
1170
|
inputRef: u
|
|
1171
1171
|
}) {
|
|
1172
|
-
const [o, l] = ce(""), [f, d] = ce(!1), p = Le(null), h = u ?? p, m = Le(null), [T,
|
|
1172
|
+
const [o, l] = ce(""), [f, d] = ce(!1), p = Le(null), h = u ?? p, m = Le(null), [T, C] = ce($.isStreaming.value), [y, I] = ce($.connectionState.value), [w, D] = ce($.messages.value.length > 0), [R, A] = ce($.uploadState.value), [H, B] = ce($.uploadError.value), [U, N] = ce($.uploadFileName.value), [Y, M] = ce($.hasUnreadMessages.value);
|
|
1173
1173
|
we(() => tr(() => {
|
|
1174
|
-
|
|
1174
|
+
C($.isStreaming.value), I($.connectionState.value), D($.messages.value.length > 0), A($.uploadState.value), B($.uploadError.value), N($.uploadFileName.value), M($.hasUnreadMessages.value);
|
|
1175
1175
|
}), []);
|
|
1176
|
-
const Q =
|
|
1176
|
+
const Q = y === "connected", ie = y === "connecting", K = y === "disconnected", Z = y === "idle", J = R === "uploading" || R === "processing", V = o.length > ws, Fe = o.trim().length > 0 && !T && !J && !V && (Q || ie), x = Q && !T && !J;
|
|
1177
1177
|
we(() => {
|
|
1178
1178
|
e && h.current && requestAnimationFrame(() => {
|
|
1179
1179
|
var ue;
|
|
@@ -1202,7 +1202,7 @@ function G0({
|
|
|
1202
1202
|
}, xe = () => {
|
|
1203
1203
|
var ue;
|
|
1204
1204
|
(ue = m.current) == null || ue.click();
|
|
1205
|
-
}, Ee = () => J ?
|
|
1205
|
+
}, Ee = () => J ? U ? `Uploading ${U}...` : "Uploading file..." : ie ? "Connecting..." : K ? "Disconnected - Click to retry" : T ? "Waiting for response..." : !e && w ? "Continue conversation..." : "Message...", We = () => J ? U ? `Uploading ${U}...` : "Uploading file..." : T ? "Waiting for response" : Z ? "Click to connect" : ie ? "Connecting..." : !Q && o.trim().length === 0 ? "Enter a message to send" : Q ? o.trim().length === 0 ? "Enter a message to send" : "Send message" : "Cannot send message", Ge = () => J ? "Uploading..." : x ? "Attach file (CV, document, or image)" : "Cannot upload file", Qe = (ue) => {
|
|
1206
1206
|
a(), $.addMessage({
|
|
1207
1207
|
role: "user",
|
|
1208
1208
|
content: ue.message
|
|
@@ -1264,7 +1264,7 @@ function G0({
|
|
|
1264
1264
|
}), b("button", {
|
|
1265
1265
|
type: "button",
|
|
1266
1266
|
class: `kin-launcher-attach ${J ? "is-uploading" : ""}`,
|
|
1267
|
-
disabled: !
|
|
1267
|
+
disabled: !x,
|
|
1268
1268
|
"aria-label": Ge(),
|
|
1269
1269
|
onClick: xe,
|
|
1270
1270
|
children: J ? b(W0, {}) : b(V0, {})
|
|
@@ -1280,11 +1280,11 @@ function G0({
|
|
|
1280
1280
|
class: "kin-sr-only",
|
|
1281
1281
|
role: "status",
|
|
1282
1282
|
"aria-live": "polite",
|
|
1283
|
-
children: [ie && "Connecting to Kin...", K && "Connection lost. Click input to retry.", T && "Kin is responding...", J && (
|
|
1284
|
-
}),
|
|
1283
|
+
children: [ie && "Connecting to Kin...", K && "Connection lost. Click input to retry.", T && "Kin is responding...", J && (U ? `Uploading ${U}...` : "Uploading file...")]
|
|
1284
|
+
}), H && R === "error" && b("div", {
|
|
1285
1285
|
class: "kin-upload-error",
|
|
1286
1286
|
role: "alert",
|
|
1287
|
-
children:
|
|
1287
|
+
children: H
|
|
1288
1288
|
}), V && b("div", {
|
|
1289
1289
|
class: "kin-char-limit-error",
|
|
1290
1290
|
role: "alert",
|
|
@@ -1616,18 +1616,18 @@ function Zo(e, t, n, r) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
return p;
|
|
1618
1618
|
function p() {
|
|
1619
|
-
let h = Xo, m, T,
|
|
1619
|
+
let h = Xo, m, T, C;
|
|
1620
1620
|
if ((!t || a(o, l, f[f.length - 1] || void 0)) && (h = pf(n(o, f)), h[0] === Gi))
|
|
1621
1621
|
return h;
|
|
1622
1622
|
if ("children" in o && o.children) {
|
|
1623
|
-
const
|
|
1623
|
+
const y = (
|
|
1624
1624
|
/** @type {UnistParent} */
|
|
1625
1625
|
o
|
|
1626
1626
|
);
|
|
1627
|
-
if (
|
|
1628
|
-
for (T = (r ?
|
|
1629
|
-
const
|
|
1630
|
-
if (m = u(
|
|
1627
|
+
if (y.children && h[0] !== Qi)
|
|
1628
|
+
for (T = (r ? y.children.length : -1) + s, C = f.concat(y); T > -1 && T < y.children.length; ) {
|
|
1629
|
+
const I = y.children[T];
|
|
1630
|
+
if (m = u(I, T, C)(), m[0] === Gi)
|
|
1631
1631
|
return m;
|
|
1632
1632
|
T = typeof m[1] == "number" ? m[1] : T + s;
|
|
1633
1633
|
}
|
|
@@ -4036,10 +4036,10 @@ function mh(e, t, n, r) {
|
|
|
4036
4036
|
}
|
|
4037
4037
|
return -1;
|
|
4038
4038
|
}
|
|
4039
|
-
var
|
|
4039
|
+
var O;
|
|
4040
4040
|
(function(e) {
|
|
4041
4041
|
e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/";
|
|
4042
|
-
})(
|
|
4042
|
+
})(O || (O = {}));
|
|
4043
4043
|
var jt;
|
|
4044
4044
|
(function(e) {
|
|
4045
4045
|
e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
|
|
@@ -4186,7 +4186,7 @@ function En(e) {
|
|
|
4186
4186
|
return (t = gh.get(e)) !== null && t !== void 0 ? t : c.UNKNOWN;
|
|
4187
4187
|
}
|
|
4188
4188
|
const P = c, bh = {
|
|
4189
|
-
[
|
|
4189
|
+
[O.HTML]: /* @__PURE__ */ new Set([
|
|
4190
4190
|
P.ADDRESS,
|
|
4191
4191
|
P.APPLET,
|
|
4192
4192
|
P.AREA,
|
|
@@ -4269,11 +4269,11 @@ const P = c, bh = {
|
|
|
4269
4269
|
P.WBR,
|
|
4270
4270
|
P.XMP
|
|
4271
4271
|
]),
|
|
4272
|
-
[
|
|
4273
|
-
[
|
|
4274
|
-
[
|
|
4275
|
-
[
|
|
4276
|
-
[
|
|
4272
|
+
[O.MATHML]: /* @__PURE__ */ new Set([P.MI, P.MO, P.MN, P.MS, P.MTEXT, P.ANNOTATION_XML]),
|
|
4273
|
+
[O.SVG]: /* @__PURE__ */ new Set([P.TITLE, P.FOREIGN_OBJECT, P.DESC]),
|
|
4274
|
+
[O.XLINK]: /* @__PURE__ */ new Set(),
|
|
4275
|
+
[O.XML]: /* @__PURE__ */ new Set(),
|
|
4276
|
+
[O.XMLNS]: /* @__PURE__ */ new Set()
|
|
4277
4277
|
}, ea = /* @__PURE__ */ new Set([P.H1, P.H2, P.H3, P.H4, P.H5, P.H6]);
|
|
4278
4278
|
S.STYLE, S.SCRIPT, S.XMP, S.IFRAME, S.NOEMBED, S.NOFRAMES, S.PLAINTEXT;
|
|
4279
4279
|
var E;
|
|
@@ -6241,7 +6241,7 @@ class Ih {
|
|
|
6241
6241
|
}
|
|
6242
6242
|
//Update current element
|
|
6243
6243
|
_isInTemplate() {
|
|
6244
|
-
return this.currentTagId === c.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) ===
|
|
6244
|
+
return this.currentTagId === c.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === O.HTML;
|
|
6245
6245
|
}
|
|
6246
6246
|
_updateCurrentElement() {
|
|
6247
6247
|
this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
|
|
@@ -6266,7 +6266,7 @@ class Ih {
|
|
|
6266
6266
|
let n = this.stackTop + 1;
|
|
6267
6267
|
do
|
|
6268
6268
|
n = this.tagIDs.lastIndexOf(t, n - 1);
|
|
6269
|
-
while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !==
|
|
6269
|
+
while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== O.HTML);
|
|
6270
6270
|
this.shortenToLength(Math.max(n, 0));
|
|
6271
6271
|
}
|
|
6272
6272
|
shortenToLength(t) {
|
|
@@ -6284,10 +6284,10 @@ class Ih {
|
|
|
6284
6284
|
this.shortenToLength(Math.max(r, 0));
|
|
6285
6285
|
}
|
|
6286
6286
|
popUntilNumberedHeaderPopped() {
|
|
6287
|
-
this.popUntilPopped(ea,
|
|
6287
|
+
this.popUntilPopped(ea, O.HTML);
|
|
6288
6288
|
}
|
|
6289
6289
|
popUntilTableCellPopped() {
|
|
6290
|
-
this.popUntilPopped(wh,
|
|
6290
|
+
this.popUntilPopped(wh, O.HTML);
|
|
6291
6291
|
}
|
|
6292
6292
|
popAllUpToHtmlElement() {
|
|
6293
6293
|
this.tmplCount = 0, this.shortenToLength(1);
|
|
@@ -6303,13 +6303,13 @@ class Ih {
|
|
|
6303
6303
|
this.shortenToLength(r + 1);
|
|
6304
6304
|
}
|
|
6305
6305
|
clearBackToTableContext() {
|
|
6306
|
-
this.clearBackTo(Sh,
|
|
6306
|
+
this.clearBackTo(Sh, O.HTML);
|
|
6307
6307
|
}
|
|
6308
6308
|
clearBackToTableBodyContext() {
|
|
6309
|
-
this.clearBackTo(Ch,
|
|
6309
|
+
this.clearBackTo(Ch, O.HTML);
|
|
6310
6310
|
}
|
|
6311
6311
|
clearBackToTableRowContext() {
|
|
6312
|
-
this.clearBackTo(Ah,
|
|
6312
|
+
this.clearBackTo(Ah, O.HTML);
|
|
6313
6313
|
}
|
|
6314
6314
|
remove(t) {
|
|
6315
6315
|
const n = this._indexOf(t);
|
|
@@ -6334,19 +6334,19 @@ class Ih {
|
|
|
6334
6334
|
for (let r = this.stackTop; r >= 0; r--) {
|
|
6335
6335
|
const i = this.tagIDs[r];
|
|
6336
6336
|
switch (this.treeAdapter.getNamespaceURI(this.items[r])) {
|
|
6337
|
-
case
|
|
6337
|
+
case O.HTML: {
|
|
6338
6338
|
if (i === t)
|
|
6339
6339
|
return !0;
|
|
6340
6340
|
if (n.has(i))
|
|
6341
6341
|
return !1;
|
|
6342
6342
|
break;
|
|
6343
6343
|
}
|
|
6344
|
-
case
|
|
6344
|
+
case O.SVG: {
|
|
6345
6345
|
if (eu.has(i))
|
|
6346
6346
|
return !1;
|
|
6347
6347
|
break;
|
|
6348
6348
|
}
|
|
6349
|
-
case
|
|
6349
|
+
case O.MATHML: {
|
|
6350
6350
|
if (Js.has(i))
|
|
6351
6351
|
return !1;
|
|
6352
6352
|
break;
|
|
@@ -6368,19 +6368,19 @@ class Ih {
|
|
|
6368
6368
|
for (let t = this.stackTop; t >= 0; t--) {
|
|
6369
6369
|
const n = this.tagIDs[t];
|
|
6370
6370
|
switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
|
|
6371
|
-
case
|
|
6371
|
+
case O.HTML: {
|
|
6372
6372
|
if (ea.has(n))
|
|
6373
6373
|
return !0;
|
|
6374
6374
|
if (Fr.has(n))
|
|
6375
6375
|
return !1;
|
|
6376
6376
|
break;
|
|
6377
6377
|
}
|
|
6378
|
-
case
|
|
6378
|
+
case O.SVG: {
|
|
6379
6379
|
if (eu.has(n))
|
|
6380
6380
|
return !1;
|
|
6381
6381
|
break;
|
|
6382
6382
|
}
|
|
6383
|
-
case
|
|
6383
|
+
case O.MATHML: {
|
|
6384
6384
|
if (Js.has(n))
|
|
6385
6385
|
return !1;
|
|
6386
6386
|
break;
|
|
@@ -6391,7 +6391,7 @@ class Ih {
|
|
|
6391
6391
|
}
|
|
6392
6392
|
hasInTableScope(t) {
|
|
6393
6393
|
for (let n = this.stackTop; n >= 0; n--)
|
|
6394
|
-
if (this.treeAdapter.getNamespaceURI(this.items[n]) ===
|
|
6394
|
+
if (this.treeAdapter.getNamespaceURI(this.items[n]) === O.HTML)
|
|
6395
6395
|
switch (this.tagIDs[n]) {
|
|
6396
6396
|
case t:
|
|
6397
6397
|
return !0;
|
|
@@ -6403,7 +6403,7 @@ class Ih {
|
|
|
6403
6403
|
}
|
|
6404
6404
|
hasTableBodyContextInTableScope() {
|
|
6405
6405
|
for (let t = this.stackTop; t >= 0; t--)
|
|
6406
|
-
if (this.treeAdapter.getNamespaceURI(this.items[t]) ===
|
|
6406
|
+
if (this.treeAdapter.getNamespaceURI(this.items[t]) === O.HTML)
|
|
6407
6407
|
switch (this.tagIDs[t]) {
|
|
6408
6408
|
case c.TBODY:
|
|
6409
6409
|
case c.THEAD:
|
|
@@ -6417,7 +6417,7 @@ class Ih {
|
|
|
6417
6417
|
}
|
|
6418
6418
|
hasInSelectScope(t) {
|
|
6419
6419
|
for (let n = this.stackTop; n >= 0; n--)
|
|
6420
|
-
if (this.treeAdapter.getNamespaceURI(this.items[n]) ===
|
|
6420
|
+
if (this.treeAdapter.getNamespaceURI(this.items[n]) === O.HTML)
|
|
6421
6421
|
switch (this.tagIDs[n]) {
|
|
6422
6422
|
case t:
|
|
6423
6423
|
return !0;
|
|
@@ -6837,17 +6837,17 @@ const ru = {
|
|
|
6837
6837
|
"yChannelSelector",
|
|
6838
6838
|
"zoomAndPan"
|
|
6839
6839
|
].map((e) => [e.toLowerCase(), e])), Uh = /* @__PURE__ */ new Map([
|
|
6840
|
-
["xlink:actuate", { prefix: "xlink", name: "actuate", namespace:
|
|
6841
|
-
["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace:
|
|
6842
|
-
["xlink:href", { prefix: "xlink", name: "href", namespace:
|
|
6843
|
-
["xlink:role", { prefix: "xlink", name: "role", namespace:
|
|
6844
|
-
["xlink:show", { prefix: "xlink", name: "show", namespace:
|
|
6845
|
-
["xlink:title", { prefix: "xlink", name: "title", namespace:
|
|
6846
|
-
["xlink:type", { prefix: "xlink", name: "type", namespace:
|
|
6847
|
-
["xml:lang", { prefix: "xml", name: "lang", namespace:
|
|
6848
|
-
["xml:space", { prefix: "xml", name: "space", namespace:
|
|
6849
|
-
["xmlns", { prefix: "", name: "xmlns", namespace:
|
|
6850
|
-
["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace:
|
|
6840
|
+
["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: O.XLINK }],
|
|
6841
|
+
["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: O.XLINK }],
|
|
6842
|
+
["xlink:href", { prefix: "xlink", name: "href", namespace: O.XLINK }],
|
|
6843
|
+
["xlink:role", { prefix: "xlink", name: "role", namespace: O.XLINK }],
|
|
6844
|
+
["xlink:show", { prefix: "xlink", name: "show", namespace: O.XLINK }],
|
|
6845
|
+
["xlink:title", { prefix: "xlink", name: "title", namespace: O.XLINK }],
|
|
6846
|
+
["xlink:type", { prefix: "xlink", name: "type", namespace: O.XLINK }],
|
|
6847
|
+
["xml:lang", { prefix: "xml", name: "lang", namespace: O.XML }],
|
|
6848
|
+
["xml:space", { prefix: "xml", name: "space", namespace: O.XML }],
|
|
6849
|
+
["xmlns", { prefix: "", name: "xmlns", namespace: O.XMLNS }],
|
|
6850
|
+
["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: O.XMLNS }]
|
|
6851
6851
|
]), zh = new Map([
|
|
6852
6852
|
"altGlyph",
|
|
6853
6853
|
"altGlyphDef",
|
|
@@ -6959,20 +6959,20 @@ function jh(e) {
|
|
|
6959
6959
|
t != null && (e.tagName = t, e.tagID = En(e.tagName));
|
|
6960
6960
|
}
|
|
6961
6961
|
function qh(e, t) {
|
|
6962
|
-
return t ===
|
|
6962
|
+
return t === O.MATHML && (e === c.MI || e === c.MO || e === c.MN || e === c.MS || e === c.MTEXT);
|
|
6963
6963
|
}
|
|
6964
6964
|
function Vh(e, t, n) {
|
|
6965
|
-
if (t ===
|
|
6965
|
+
if (t === O.MATHML && e === c.ANNOTATION_XML) {
|
|
6966
6966
|
for (let r = 0; r < n.length; r++)
|
|
6967
6967
|
if (n[r].name === jt.ENCODING) {
|
|
6968
6968
|
const i = n[r].value.toLowerCase();
|
|
6969
6969
|
return i === ru.TEXT_HTML || i === ru.APPLICATION_XML;
|
|
6970
6970
|
}
|
|
6971
6971
|
}
|
|
6972
|
-
return t ===
|
|
6972
|
+
return t === O.SVG && (e === c.FOREIGN_OBJECT || e === c.DESC || e === c.TITLE);
|
|
6973
6973
|
}
|
|
6974
6974
|
function Wh(e, t, n, r) {
|
|
6975
|
-
return (!r || r ===
|
|
6975
|
+
return (!r || r === O.HTML) && Vh(e, t, n) || (!r || r === O.MATHML) && qh(e, t);
|
|
6976
6976
|
}
|
|
6977
6977
|
const Gh = "hidden", Qh = 8, Kh = 3;
|
|
6978
6978
|
var _;
|
|
@@ -7009,8 +7009,8 @@ class au {
|
|
|
7009
7009
|
...iu,
|
|
7010
7010
|
...n
|
|
7011
7011
|
};
|
|
7012
|
-
t ?? (t = r.treeAdapter.createElement(S.TEMPLATE,
|
|
7013
|
-
const i = r.treeAdapter.createElement("documentmock",
|
|
7012
|
+
t ?? (t = r.treeAdapter.createElement(S.TEMPLATE, O.HTML, []));
|
|
7013
|
+
const i = r.treeAdapter.createElement("documentmock", O.HTML, []), a = new this(r, i, t);
|
|
7014
7014
|
return a.fragmentContextID === c.TEMPLATE && a.tmplInsertionModeStack.unshift(_.IN_TEMPLATE), a._initTokenizerForFragmentParsing(), a._insertFakeRootElement(), a._resetInsertionMode(), a._findFormInFragmentContext(), a;
|
|
7015
7015
|
}
|
|
7016
7016
|
getFragment() {
|
|
@@ -7049,12 +7049,12 @@ class au {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
}
|
|
7051
7051
|
_setContextModes(t, n) {
|
|
7052
|
-
const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) ===
|
|
7052
|
+
const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === O.HTML;
|
|
7053
7053
|
this.currentNotInHTML = !r, this.tokenizer.inForeignNode = !r && t !== void 0 && n !== void 0 && !this._isIntegrationPoint(n, t);
|
|
7054
7054
|
}
|
|
7055
7055
|
/** @protected */
|
|
7056
7056
|
_switchToTextParsing(t, n) {
|
|
7057
|
-
this._insertElement(t,
|
|
7057
|
+
this._insertElement(t, O.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = _.TEXT;
|
|
7058
7058
|
}
|
|
7059
7059
|
switchToPlaintextParsing() {
|
|
7060
7060
|
this.insertionMode = _.TEXT, this.originalInsertionMode = _.IN_BODY, this.tokenizer.state = Ae.PLAINTEXT;
|
|
@@ -7076,7 +7076,7 @@ class au {
|
|
|
7076
7076
|
}
|
|
7077
7077
|
}
|
|
7078
7078
|
_initTokenizerForFragmentParsing() {
|
|
7079
|
-
if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !==
|
|
7079
|
+
if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== O.HTML))
|
|
7080
7080
|
switch (this.fragmentContextID) {
|
|
7081
7081
|
case c.TITLE:
|
|
7082
7082
|
case c.TEXTAREA: {
|
|
@@ -7143,17 +7143,17 @@ class au {
|
|
|
7143
7143
|
}
|
|
7144
7144
|
/** @protected */
|
|
7145
7145
|
_insertFakeElement(t, n) {
|
|
7146
|
-
const r = this.treeAdapter.createElement(t,
|
|
7146
|
+
const r = this.treeAdapter.createElement(t, O.HTML, []);
|
|
7147
7147
|
this._attachElementToTree(r, null), this.openElements.push(r, n);
|
|
7148
7148
|
}
|
|
7149
7149
|
/** @protected */
|
|
7150
7150
|
_insertTemplate(t) {
|
|
7151
|
-
const n = this.treeAdapter.createElement(t.tagName,
|
|
7151
|
+
const n = this.treeAdapter.createElement(t.tagName, O.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
|
|
7152
7152
|
this.treeAdapter.setTemplateContent(n, r), this._attachElementToTree(n, t.location), this.openElements.push(n, t.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(r, null);
|
|
7153
7153
|
}
|
|
7154
7154
|
/** @protected */
|
|
7155
7155
|
_insertFakeRootElement() {
|
|
7156
|
-
const t = this.treeAdapter.createElement(S.HTML,
|
|
7156
|
+
const t = this.treeAdapter.createElement(S.HTML, O.HTML, []);
|
|
7157
7157
|
this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(t, null), this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t, c.HTML);
|
|
7158
7158
|
}
|
|
7159
7159
|
/** @protected */
|
|
@@ -7203,11 +7203,11 @@ class au {
|
|
|
7203
7203
|
if (!this.currentNotInHTML)
|
|
7204
7204
|
return !1;
|
|
7205
7205
|
let n, r;
|
|
7206
|
-
return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === c.SVG && this.treeAdapter.getTagName(n) === S.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) ===
|
|
7206
|
+
return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === c.SVG && this.treeAdapter.getTagName(n) === S.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === O.MATHML ? !1 : (
|
|
7207
7207
|
// Check that `current` is not an integration point for HTML or MathML elements.
|
|
7208
7208
|
this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
|
|
7209
7209
|
// integration point.
|
|
7210
|
-
(t.tagID === c.MGLYPH || t.tagID === c.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n,
|
|
7210
|
+
(t.tagID === c.MGLYPH || t.tagID === c.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, O.HTML)
|
|
7211
7211
|
);
|
|
7212
7212
|
}
|
|
7213
7213
|
/** @protected */
|
|
@@ -7368,7 +7368,7 @@ class au {
|
|
|
7368
7368
|
const n = this.openElements.items[t];
|
|
7369
7369
|
switch (this.openElements.tagIDs[t]) {
|
|
7370
7370
|
case c.TEMPLATE: {
|
|
7371
|
-
if (this.treeAdapter.getNamespaceURI(n) ===
|
|
7371
|
+
if (this.treeAdapter.getNamespaceURI(n) === O.HTML)
|
|
7372
7372
|
return { parent: this.treeAdapter.getTemplateContent(n), beforeElement: null };
|
|
7373
7373
|
break;
|
|
7374
7374
|
}
|
|
@@ -7926,7 +7926,7 @@ function np(e, t, n) {
|
|
|
7926
7926
|
e._fosterParentElement(n);
|
|
7927
7927
|
else {
|
|
7928
7928
|
const a = e.treeAdapter.getNamespaceURI(t);
|
|
7929
|
-
i === c.TEMPLATE && a ===
|
|
7929
|
+
i === c.TEMPLATE && a === O.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
|
|
7930
7930
|
}
|
|
7931
7931
|
}
|
|
7932
7932
|
function rp(e, t, n) {
|
|
@@ -7978,7 +7978,7 @@ function wn(e, t) {
|
|
|
7978
7978
|
e._err(t, L.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, tt.QUIRKS), e.insertionMode = _.BEFORE_HTML, e._processToken(t);
|
|
7979
7979
|
}
|
|
7980
7980
|
function up(e, t) {
|
|
7981
|
-
t.tagID === c.HTML ? (e._insertElement(t,
|
|
7981
|
+
t.tagID === c.HTML ? (e._insertElement(t, O.HTML), e.insertionMode = _.BEFORE_HEAD) : Fn(e, t);
|
|
7982
7982
|
}
|
|
7983
7983
|
function op(e, t) {
|
|
7984
7984
|
const n = t.tagID;
|
|
@@ -7994,7 +7994,7 @@ function lp(e, t) {
|
|
|
7994
7994
|
break;
|
|
7995
7995
|
}
|
|
7996
7996
|
case c.HEAD: {
|
|
7997
|
-
e._insertElement(t,
|
|
7997
|
+
e._insertElement(t, O.HTML), e.headElement = e.openElements.current, e.insertionMode = _.IN_HEAD;
|
|
7998
7998
|
break;
|
|
7999
7999
|
}
|
|
8000
8000
|
default:
|
|
@@ -8019,7 +8019,7 @@ function lt(e, t) {
|
|
|
8019
8019
|
case c.BGSOUND:
|
|
8020
8020
|
case c.LINK:
|
|
8021
8021
|
case c.META: {
|
|
8022
|
-
e._appendElement(t,
|
|
8022
|
+
e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
|
|
8023
8023
|
break;
|
|
8024
8024
|
}
|
|
8025
8025
|
case c.TITLE: {
|
|
@@ -8027,7 +8027,7 @@ function lt(e, t) {
|
|
|
8027
8027
|
break;
|
|
8028
8028
|
}
|
|
8029
8029
|
case c.NOSCRIPT: {
|
|
8030
|
-
e.options.scriptingEnabled ? e._switchToTextParsing(t, Ae.RAWTEXT) : (e._insertElement(t,
|
|
8030
|
+
e.options.scriptingEnabled ? e._switchToTextParsing(t, Ae.RAWTEXT) : (e._insertElement(t, O.HTML), e.insertionMode = _.IN_HEAD_NO_SCRIPT);
|
|
8031
8031
|
break;
|
|
8032
8032
|
}
|
|
8033
8033
|
case c.NOFRAMES:
|
|
@@ -8126,11 +8126,11 @@ function pp(e, t) {
|
|
|
8126
8126
|
break;
|
|
8127
8127
|
}
|
|
8128
8128
|
case c.BODY: {
|
|
8129
|
-
e._insertElement(t,
|
|
8129
|
+
e._insertElement(t, O.HTML), e.framesetOk = !1, e.insertionMode = _.IN_BODY;
|
|
8130
8130
|
break;
|
|
8131
8131
|
}
|
|
8132
8132
|
case c.FRAMESET: {
|
|
8133
|
-
e._insertElement(t,
|
|
8133
|
+
e._insertElement(t, O.HTML), e.insertionMode = _.IN_FRAMESET;
|
|
8134
8134
|
break;
|
|
8135
8135
|
}
|
|
8136
8136
|
case c.BASE:
|
|
@@ -8216,20 +8216,20 @@ function bp(e, t) {
|
|
|
8216
8216
|
}
|
|
8217
8217
|
function Ep(e, t) {
|
|
8218
8218
|
const n = e.openElements.tryPeekProperlyNestedBodyElement();
|
|
8219
|
-
e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t,
|
|
8219
|
+
e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_FRAMESET);
|
|
8220
8220
|
}
|
|
8221
8221
|
function Tp(e, t) {
|
|
8222
|
-
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t,
|
|
8222
|
+
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML);
|
|
8223
8223
|
}
|
|
8224
8224
|
function _p(e, t) {
|
|
8225
|
-
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && ea.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t,
|
|
8225
|
+
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && ea.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, O.HTML);
|
|
8226
8226
|
}
|
|
8227
8227
|
function kp(e, t) {
|
|
8228
|
-
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t,
|
|
8228
|
+
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
|
|
8229
8229
|
}
|
|
8230
8230
|
function xp(e, t) {
|
|
8231
8231
|
const n = e.openElements.tmplCount > 0;
|
|
8232
|
-
(!e.formElement || n) && (e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t,
|
|
8232
|
+
(!e.formElement || n) && (e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), n || (e.formElement = e.openElements.current));
|
|
8233
8233
|
}
|
|
8234
8234
|
function yp(e, t) {
|
|
8235
8235
|
e.framesetOk = !1;
|
|
@@ -8243,51 +8243,51 @@ function yp(e, t) {
|
|
|
8243
8243
|
if (i !== c.ADDRESS && i !== c.DIV && i !== c.P && e._isSpecialElement(e.openElements.items[r], i))
|
|
8244
8244
|
break;
|
|
8245
8245
|
}
|
|
8246
|
-
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t,
|
|
8246
|
+
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML);
|
|
8247
8247
|
}
|
|
8248
8248
|
function Ap(e, t) {
|
|
8249
|
-
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t,
|
|
8249
|
+
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), e.tokenizer.state = Ae.PLAINTEXT;
|
|
8250
8250
|
}
|
|
8251
8251
|
function Cp(e, t) {
|
|
8252
|
-
e.openElements.hasInScope(c.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(c.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t,
|
|
8252
|
+
e.openElements.hasInScope(c.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(c.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.framesetOk = !1;
|
|
8253
8253
|
}
|
|
8254
8254
|
function Sp(e, t) {
|
|
8255
8255
|
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);
|
|
8256
|
-
n && (Pa(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t,
|
|
8256
|
+
n && (Pa(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
8257
8257
|
}
|
|
8258
8258
|
function wp(e, t) {
|
|
8259
|
-
e._reconstructActiveFormattingElements(), e._insertElement(t,
|
|
8259
|
+
e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
8260
8260
|
}
|
|
8261
8261
|
function Ip(e, t) {
|
|
8262
|
-
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(c.NOBR) && (Pa(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t,
|
|
8262
|
+
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(c.NOBR) && (Pa(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
8263
8263
|
}
|
|
8264
8264
|
function Np(e, t) {
|
|
8265
|
-
e._reconstructActiveFormattingElements(), e._insertElement(t,
|
|
8265
|
+
e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
8266
8266
|
}
|
|
8267
8267
|
function Lp(e, t) {
|
|
8268
|
-
e.treeAdapter.getDocumentMode(e.document) !== tt.QUIRKS && e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t,
|
|
8268
|
+
e.treeAdapter.getDocumentMode(e.document) !== tt.QUIRKS && e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._insertElement(t, O.HTML), e.framesetOk = !1, e.insertionMode = _.IN_TABLE;
|
|
8269
8269
|
}
|
|
8270
8270
|
function Ll(e, t) {
|
|
8271
|
-
e._reconstructActiveFormattingElements(), e._appendElement(t,
|
|
8271
|
+
e._reconstructActiveFormattingElements(), e._appendElement(t, O.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
8272
8272
|
}
|
|
8273
8273
|
function vl(e) {
|
|
8274
8274
|
const t = Tl(e, jt.TYPE);
|
|
8275
8275
|
return t != null && t.toLowerCase() === Gh;
|
|
8276
8276
|
}
|
|
8277
8277
|
function vp(e, t) {
|
|
8278
|
-
e._reconstructActiveFormattingElements(), e._appendElement(t,
|
|
8278
|
+
e._reconstructActiveFormattingElements(), e._appendElement(t, O.HTML), vl(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
|
|
8279
8279
|
}
|
|
8280
8280
|
function Rp(e, t) {
|
|
8281
|
-
e._appendElement(t,
|
|
8281
|
+
e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
|
|
8282
8282
|
}
|
|
8283
8283
|
function Op(e, t) {
|
|
8284
|
-
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._appendElement(t,
|
|
8284
|
+
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._appendElement(t, O.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
|
|
8285
8285
|
}
|
|
8286
8286
|
function Dp(e, t) {
|
|
8287
8287
|
t.tagName = S.IMG, t.tagID = c.IMG, Ll(e, t);
|
|
8288
8288
|
}
|
|
8289
8289
|
function Pp(e, t) {
|
|
8290
|
-
e._insertElement(t,
|
|
8290
|
+
e._insertElement(t, O.HTML), e.skipNextNewLine = !0, e.tokenizer.state = Ae.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = _.TEXT;
|
|
8291
8291
|
}
|
|
8292
8292
|
function Mp(e, t) {
|
|
8293
8293
|
e.openElements.hasInButtonScope(c.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, Ae.RAWTEXT);
|
|
@@ -8299,25 +8299,25 @@ function su(e, t) {
|
|
|
8299
8299
|
e._switchToTextParsing(t, Ae.RAWTEXT);
|
|
8300
8300
|
}
|
|
8301
8301
|
function Fp(e, t) {
|
|
8302
|
-
e._reconstructActiveFormattingElements(), e._insertElement(t,
|
|
8302
|
+
e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === _.IN_TABLE || e.insertionMode === _.IN_CAPTION || e.insertionMode === _.IN_TABLE_BODY || e.insertionMode === _.IN_ROW || e.insertionMode === _.IN_CELL ? _.IN_SELECT_IN_TABLE : _.IN_SELECT;
|
|
8303
8303
|
}
|
|
8304
8304
|
function Hp(e, t) {
|
|
8305
|
-
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t,
|
|
8305
|
+
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML);
|
|
8306
8306
|
}
|
|
8307
8307
|
function Up(e, t) {
|
|
8308
|
-
e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t,
|
|
8308
|
+
e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, O.HTML);
|
|
8309
8309
|
}
|
|
8310
8310
|
function zp(e, t) {
|
|
8311
|
-
e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(c.RTC), e._insertElement(t,
|
|
8311
|
+
e.openElements.hasInScope(c.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(c.RTC), e._insertElement(t, O.HTML);
|
|
8312
8312
|
}
|
|
8313
8313
|
function $p(e, t) {
|
|
8314
|
-
e._reconstructActiveFormattingElements(), Cl(t), Da(t), t.selfClosing ? e._appendElement(t,
|
|
8314
|
+
e._reconstructActiveFormattingElements(), Cl(t), Da(t), t.selfClosing ? e._appendElement(t, O.MATHML) : e._insertElement(t, O.MATHML), t.ackSelfClosing = !0;
|
|
8315
8315
|
}
|
|
8316
8316
|
function Yp(e, t) {
|
|
8317
|
-
e._reconstructActiveFormattingElements(), Sl(t), Da(t), t.selfClosing ? e._appendElement(t,
|
|
8317
|
+
e._reconstructActiveFormattingElements(), Sl(t), Da(t), t.selfClosing ? e._appendElement(t, O.SVG) : e._insertElement(t, O.SVG), t.ackSelfClosing = !0;
|
|
8318
8318
|
}
|
|
8319
8319
|
function uu(e, t) {
|
|
8320
|
-
e._reconstructActiveFormattingElements(), e._insertElement(t,
|
|
8320
|
+
e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML);
|
|
8321
8321
|
}
|
|
8322
8322
|
function Me(e, t) {
|
|
8323
8323
|
switch (t.tagID) {
|
|
@@ -8705,16 +8705,16 @@ function xi(e, t) {
|
|
|
8705
8705
|
ir(e, t);
|
|
8706
8706
|
}
|
|
8707
8707
|
function n1(e, t) {
|
|
8708
|
-
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t,
|
|
8708
|
+
e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_CAPTION;
|
|
8709
8709
|
}
|
|
8710
8710
|
function r1(e, t) {
|
|
8711
|
-
e.openElements.clearBackToTableContext(), e._insertElement(t,
|
|
8711
|
+
e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_COLUMN_GROUP;
|
|
8712
8712
|
}
|
|
8713
8713
|
function i1(e, t) {
|
|
8714
8714
|
e.openElements.clearBackToTableContext(), e._insertFakeElement(S.COLGROUP, c.COLGROUP), e.insertionMode = _.IN_COLUMN_GROUP, Ba(e, t);
|
|
8715
8715
|
}
|
|
8716
8716
|
function a1(e, t) {
|
|
8717
|
-
e.openElements.clearBackToTableContext(), e._insertElement(t,
|
|
8717
|
+
e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_TABLE_BODY;
|
|
8718
8718
|
}
|
|
8719
8719
|
function s1(e, t) {
|
|
8720
8720
|
e.openElements.clearBackToTableContext(), e._insertFakeElement(S.TBODY, c.TBODY), e.insertionMode = _.IN_TABLE_BODY, ii(e, t);
|
|
@@ -8723,10 +8723,10 @@ function u1(e, t) {
|
|
|
8723
8723
|
e.openElements.hasInTableScope(c.TABLE) && (e.openElements.popUntilTagNamePopped(c.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
8724
8724
|
}
|
|
8725
8725
|
function o1(e, t) {
|
|
8726
|
-
vl(t) ? e._appendElement(t,
|
|
8726
|
+
vl(t) ? e._appendElement(t, O.HTML) : ir(e, t), t.ackSelfClosing = !0;
|
|
8727
8727
|
}
|
|
8728
8728
|
function l1(e, t) {
|
|
8729
|
-
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t,
|
|
8729
|
+
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, O.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
8730
8730
|
}
|
|
8731
8731
|
function dn(e, t) {
|
|
8732
8732
|
switch (t.tagID) {
|
|
@@ -8857,7 +8857,7 @@ function Ba(e, t) {
|
|
|
8857
8857
|
break;
|
|
8858
8858
|
}
|
|
8859
8859
|
case c.COL: {
|
|
8860
|
-
e._appendElement(t,
|
|
8860
|
+
e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
|
|
8861
8861
|
break;
|
|
8862
8862
|
}
|
|
8863
8863
|
case c.TEMPLATE: {
|
|
@@ -8890,7 +8890,7 @@ function Hr(e, t) {
|
|
|
8890
8890
|
function ii(e, t) {
|
|
8891
8891
|
switch (t.tagID) {
|
|
8892
8892
|
case c.TR: {
|
|
8893
|
-
e.openElements.clearBackToTableBodyContext(), e._insertElement(t,
|
|
8893
|
+
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_ROW;
|
|
8894
8894
|
break;
|
|
8895
8895
|
}
|
|
8896
8896
|
case c.TH:
|
|
@@ -8941,7 +8941,7 @@ function ai(e, t) {
|
|
|
8941
8941
|
switch (t.tagID) {
|
|
8942
8942
|
case c.TH:
|
|
8943
8943
|
case c.TD: {
|
|
8944
|
-
e.openElements.clearBackToTableRowContext(), e._insertElement(t,
|
|
8944
|
+
e.openElements.clearBackToTableRowContext(), e._insertElement(t, O.HTML), e.insertionMode = _.IN_CELL, e.activeFormattingElements.insertMarker();
|
|
8945
8945
|
break;
|
|
8946
8946
|
}
|
|
8947
8947
|
case c.CAPTION:
|
|
@@ -9023,15 +9023,15 @@ function Fl(e, t) {
|
|
|
9023
9023
|
break;
|
|
9024
9024
|
}
|
|
9025
9025
|
case c.OPTION: {
|
|
9026
|
-
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._insertElement(t,
|
|
9026
|
+
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e._insertElement(t, O.HTML);
|
|
9027
9027
|
break;
|
|
9028
9028
|
}
|
|
9029
9029
|
case c.OPTGROUP: {
|
|
9030
|
-
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._insertElement(t,
|
|
9030
|
+
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._insertElement(t, O.HTML);
|
|
9031
9031
|
break;
|
|
9032
9032
|
}
|
|
9033
9033
|
case c.HR: {
|
|
9034
|
-
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._appendElement(t,
|
|
9034
|
+
e.openElements.currentTagId === c.OPTION && e.openElements.pop(), e.openElements.currentTagId === c.OPTGROUP && e.openElements.pop(), e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
|
|
9035
9035
|
break;
|
|
9036
9036
|
}
|
|
9037
9037
|
case c.INPUT:
|
|
@@ -9146,11 +9146,11 @@ function _1(e, t) {
|
|
|
9146
9146
|
break;
|
|
9147
9147
|
}
|
|
9148
9148
|
case c.FRAMESET: {
|
|
9149
|
-
e._insertElement(t,
|
|
9149
|
+
e._insertElement(t, O.HTML);
|
|
9150
9150
|
break;
|
|
9151
9151
|
}
|
|
9152
9152
|
case c.FRAME: {
|
|
9153
|
-
e._appendElement(t,
|
|
9153
|
+
e._appendElement(t, O.HTML), t.ackSelfClosing = !0;
|
|
9154
9154
|
break;
|
|
9155
9155
|
}
|
|
9156
9156
|
case c.NOFRAMES: {
|
|
@@ -9202,7 +9202,7 @@ function w1(e, t) {
|
|
|
9202
9202
|
e._insertCharacters(t), e.framesetOk = !1;
|
|
9203
9203
|
}
|
|
9204
9204
|
function $l(e) {
|
|
9205
|
-
for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !==
|
|
9205
|
+
for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== O.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
|
|
9206
9206
|
e.openElements.pop();
|
|
9207
9207
|
}
|
|
9208
9208
|
function I1(e, t) {
|
|
@@ -9210,7 +9210,7 @@ function I1(e, t) {
|
|
|
9210
9210
|
$l(e), e._startTagOutsideForeignContent(t);
|
|
9211
9211
|
else {
|
|
9212
9212
|
const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
|
|
9213
|
-
r ===
|
|
9213
|
+
r === O.MATHML ? Cl(t) : r === O.SVG && (jh(t), Sl(t)), Da(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
|
|
9214
9214
|
}
|
|
9215
9215
|
}
|
|
9216
9216
|
function N1(e, t) {
|
|
@@ -9220,7 +9220,7 @@ function N1(e, t) {
|
|
|
9220
9220
|
}
|
|
9221
9221
|
for (let n = e.openElements.stackTop; n > 0; n--) {
|
|
9222
9222
|
const r = e.openElements.items[n];
|
|
9223
|
-
if (e.treeAdapter.getNamespaceURI(r) ===
|
|
9223
|
+
if (e.treeAdapter.getNamespaceURI(r) === O.HTML) {
|
|
9224
9224
|
e._endTagOutsideForeignContent(t);
|
|
9225
9225
|
break;
|
|
9226
9226
|
}
|
|
@@ -9908,25 +9908,25 @@ function im(e, t, n) {
|
|
|
9908
9908
|
function o(l, f) {
|
|
9909
9909
|
const d = f[f.length - 1], p = a[s][0], h = a[s][1];
|
|
9910
9910
|
let m = 0;
|
|
9911
|
-
const
|
|
9912
|
-
let
|
|
9911
|
+
const C = d.children.indexOf(l);
|
|
9912
|
+
let y = !1, I = [];
|
|
9913
9913
|
p.lastIndex = 0;
|
|
9914
9914
|
let w = p.exec(l.value);
|
|
9915
9915
|
for (; w; ) {
|
|
9916
|
-
const
|
|
9916
|
+
const D = w.index, R = {
|
|
9917
9917
|
index: w.index,
|
|
9918
9918
|
input: w.input,
|
|
9919
9919
|
stack: [...f, l]
|
|
9920
9920
|
};
|
|
9921
|
-
let
|
|
9922
|
-
if (typeof
|
|
9921
|
+
let A = h(...w, R);
|
|
9922
|
+
if (typeof A == "string" && (A = A.length > 0 ? { type: "text", value: A } : void 0), A === !1 ? p.lastIndex = D + 1 : (m !== D && I.push({
|
|
9923
9923
|
type: "text",
|
|
9924
|
-
value: l.value.slice(m,
|
|
9925
|
-
}), Array.isArray(
|
|
9924
|
+
value: l.value.slice(m, D)
|
|
9925
|
+
}), Array.isArray(A) ? I.push(...A) : A && I.push(A), m = D + w[0].length, y = !0), !p.global)
|
|
9926
9926
|
break;
|
|
9927
9927
|
w = p.exec(l.value);
|
|
9928
9928
|
}
|
|
9929
|
-
return
|
|
9929
|
+
return y ? (m < l.value.length && I.push({ type: "text", value: l.value.slice(m) }), d.children.splice(C, 1, ...I)) : I = [l], C + I.length;
|
|
9930
9930
|
}
|
|
9931
9931
|
}
|
|
9932
9932
|
function am(e) {
|
|
@@ -10217,17 +10217,17 @@ function Hm(e, t) {
|
|
|
10217
10217
|
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Fm, a = [], s = [], u = [], o = [];
|
|
10218
10218
|
let l = 0, f = -1;
|
|
10219
10219
|
for (; ++f < e.length; ) {
|
|
10220
|
-
const T = [],
|
|
10221
|
-
let
|
|
10222
|
-
for (e[f].length > l && (l = e[f].length); ++
|
|
10223
|
-
const
|
|
10220
|
+
const T = [], C = [];
|
|
10221
|
+
let y = -1;
|
|
10222
|
+
for (e[f].length > l && (l = e[f].length); ++y < e[f].length; ) {
|
|
10223
|
+
const I = Um(e[f][y]);
|
|
10224
10224
|
if (n.alignDelimiters !== !1) {
|
|
10225
|
-
const w = i(
|
|
10226
|
-
|
|
10225
|
+
const w = i(I);
|
|
10226
|
+
C[y] = w, (o[y] === void 0 || w > o[y]) && (o[y] = w);
|
|
10227
10227
|
}
|
|
10228
|
-
T.push(
|
|
10228
|
+
T.push(I);
|
|
10229
10229
|
}
|
|
10230
|
-
s[f] = T, u[f] =
|
|
10230
|
+
s[f] = T, u[f] = C;
|
|
10231
10231
|
}
|
|
10232
10232
|
let d = -1;
|
|
10233
10233
|
if (typeof r == "object" && "length" in r)
|
|
@@ -10242,34 +10242,34 @@ function Hm(e, t) {
|
|
|
10242
10242
|
const p = [], h = [];
|
|
10243
10243
|
for (; ++d < l; ) {
|
|
10244
10244
|
const T = a[d];
|
|
10245
|
-
let
|
|
10246
|
-
T === 99 ? (
|
|
10247
|
-
let
|
|
10245
|
+
let C = "", y = "";
|
|
10246
|
+
T === 99 ? (C = ":", y = ":") : T === 108 ? C = ":" : T === 114 && (y = ":");
|
|
10247
|
+
let I = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
10248
10248
|
1,
|
|
10249
|
-
o[d] -
|
|
10249
|
+
o[d] - C.length - y.length
|
|
10250
10250
|
);
|
|
10251
|
-
const w =
|
|
10252
|
-
n.alignDelimiters !== !1 && (
|
|
10251
|
+
const w = C + "-".repeat(I) + y;
|
|
10252
|
+
n.alignDelimiters !== !1 && (I = C.length + I + y.length, I > o[d] && (o[d] = I), h[d] = I), p[d] = w;
|
|
10253
10253
|
}
|
|
10254
10254
|
s.splice(1, 0, p), u.splice(1, 0, h), f = -1;
|
|
10255
10255
|
const m = [];
|
|
10256
10256
|
for (; ++f < s.length; ) {
|
|
10257
|
-
const T = s[f],
|
|
10257
|
+
const T = s[f], C = u[f];
|
|
10258
10258
|
d = -1;
|
|
10259
|
-
const
|
|
10259
|
+
const y = [];
|
|
10260
10260
|
for (; ++d < l; ) {
|
|
10261
|
-
const
|
|
10262
|
-
let w = "",
|
|
10261
|
+
const I = T[d] || "";
|
|
10262
|
+
let w = "", D = "";
|
|
10263
10263
|
if (n.alignDelimiters !== !1) {
|
|
10264
|
-
const
|
|
10265
|
-
|
|
10264
|
+
const R = o[d] - (C[d] || 0), A = a[d];
|
|
10265
|
+
A === 114 ? w = " ".repeat(R) : A === 99 ? R % 2 ? (w = " ".repeat(R / 2 + 0.5), D = " ".repeat(R / 2 - 0.5)) : (w = " ".repeat(R / 2), D = w) : D = " ".repeat(R);
|
|
10266
10266
|
}
|
|
10267
|
-
n.delimiterStart !== !1 && !d &&
|
|
10267
|
+
n.delimiterStart !== !1 && !d && y.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
10268
10268
|
// empty: there will be a closing space.
|
|
10269
|
-
!(n.alignDelimiters === !1 &&
|
|
10269
|
+
!(n.alignDelimiters === !1 && I === "") && (n.delimiterStart !== !1 || d) && y.push(" "), n.alignDelimiters !== !1 && y.push(w), y.push(I), n.alignDelimiters !== !1 && y.push(D), n.padding !== !1 && y.push(" "), (n.delimiterEnd !== !1 || d !== l - 1) && y.push("|");
|
|
10270
10270
|
}
|
|
10271
10271
|
m.push(
|
|
10272
|
-
n.delimiterEnd === !1 ?
|
|
10272
|
+
n.delimiterEnd === !1 ? y.join("").replace(/ +$/, "") : y.join("")
|
|
10273
10273
|
);
|
|
10274
10274
|
}
|
|
10275
10275
|
return m.join(`
|
|
@@ -11026,21 +11026,21 @@ function Lg(e) {
|
|
|
11026
11026
|
tableRow: u
|
|
11027
11027
|
}
|
|
11028
11028
|
};
|
|
11029
|
-
function s(h, m, T,
|
|
11030
|
-
return l(f(h, T,
|
|
11029
|
+
function s(h, m, T, C) {
|
|
11030
|
+
return l(f(h, T, C), h.align);
|
|
11031
11031
|
}
|
|
11032
|
-
function u(h, m, T,
|
|
11033
|
-
const
|
|
11034
|
-
return
|
|
11032
|
+
function u(h, m, T, C) {
|
|
11033
|
+
const y = d(h, T, C), I = l([y]);
|
|
11034
|
+
return I.slice(0, I.indexOf(`
|
|
11035
11035
|
`));
|
|
11036
11036
|
}
|
|
11037
|
-
function o(h, m, T,
|
|
11038
|
-
const
|
|
11039
|
-
...
|
|
11037
|
+
function o(h, m, T, C) {
|
|
11038
|
+
const y = T.enter("tableCell"), I = T.enter("phrasing"), w = T.containerPhrasing(h, {
|
|
11039
|
+
...C,
|
|
11040
11040
|
before: a,
|
|
11041
11041
|
after: a
|
|
11042
11042
|
});
|
|
11043
|
-
return
|
|
11043
|
+
return I(), y(), w;
|
|
11044
11044
|
}
|
|
11045
11045
|
function l(h, m) {
|
|
11046
11046
|
return Hm(h, {
|
|
@@ -11054,24 +11054,24 @@ function Lg(e) {
|
|
|
11054
11054
|
});
|
|
11055
11055
|
}
|
|
11056
11056
|
function f(h, m, T) {
|
|
11057
|
-
const
|
|
11058
|
-
let
|
|
11059
|
-
const
|
|
11060
|
-
for (; ++
|
|
11061
|
-
|
|
11062
|
-
return w(),
|
|
11057
|
+
const C = h.children;
|
|
11058
|
+
let y = -1;
|
|
11059
|
+
const I = [], w = m.enter("table");
|
|
11060
|
+
for (; ++y < C.length; )
|
|
11061
|
+
I[y] = d(C[y], m, T);
|
|
11062
|
+
return w(), I;
|
|
11063
11063
|
}
|
|
11064
11064
|
function d(h, m, T) {
|
|
11065
|
-
const
|
|
11066
|
-
let
|
|
11067
|
-
const
|
|
11068
|
-
for (; ++
|
|
11069
|
-
|
|
11070
|
-
return w(),
|
|
11065
|
+
const C = h.children;
|
|
11066
|
+
let y = -1;
|
|
11067
|
+
const I = [], w = m.enter("tableRow");
|
|
11068
|
+
for (; ++y < C.length; )
|
|
11069
|
+
I[y] = o(C[y], h, m, T);
|
|
11070
|
+
return w(), I;
|
|
11071
11071
|
}
|
|
11072
11072
|
function p(h, m, T) {
|
|
11073
|
-
let
|
|
11074
|
-
return T.stack.includes("tableCell") && (
|
|
11073
|
+
let C = hc.inlineCode(h, m, T);
|
|
11074
|
+
return T.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
11075
11075
|
}
|
|
11076
11076
|
}
|
|
11077
11077
|
function vg() {
|
|
@@ -11633,71 +11633,71 @@ const xu = {
|
|
|
11633
11633
|
function sb(e, t, n) {
|
|
11634
11634
|
const r = this, i = {
|
|
11635
11635
|
partial: !0,
|
|
11636
|
-
tokenize:
|
|
11636
|
+
tokenize: R
|
|
11637
11637
|
};
|
|
11638
11638
|
let a = 0, s = 0, u;
|
|
11639
11639
|
return o;
|
|
11640
|
-
function o(
|
|
11641
|
-
return l(
|
|
11640
|
+
function o(A) {
|
|
11641
|
+
return l(A);
|
|
11642
11642
|
}
|
|
11643
|
-
function l(
|
|
11644
|
-
const
|
|
11645
|
-
return a =
|
|
11643
|
+
function l(A) {
|
|
11644
|
+
const H = r.events[r.events.length - 1];
|
|
11645
|
+
return a = H && H[1].type === "linePrefix" ? H[2].sliceSerialize(H[1], !0).length : 0, u = A, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(A);
|
|
11646
11646
|
}
|
|
11647
|
-
function f(
|
|
11648
|
-
return
|
|
11647
|
+
function f(A) {
|
|
11648
|
+
return A === u ? (s++, e.consume(A), f) : s < 3 ? n(A) : (e.exit("codeFencedFenceSequence"), ae(A) ? oe(e, d, "whitespace")(A) : d(A));
|
|
11649
11649
|
}
|
|
11650
|
-
function d(
|
|
11651
|
-
return
|
|
11650
|
+
function d(A) {
|
|
11651
|
+
return A === null || G(A) ? (e.exit("codeFencedFence"), r.interrupt ? t(A) : e.check(xu, T, D)(A)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
11652
11652
|
contentType: "string"
|
|
11653
|
-
}), p(
|
|
11653
|
+
}), p(A));
|
|
11654
11654
|
}
|
|
11655
|
-
function p(
|
|
11656
|
-
return
|
|
11655
|
+
function p(A) {
|
|
11656
|
+
return A === null || G(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(A)) : ae(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), oe(e, h, "whitespace")(A)) : A === 96 && A === u ? n(A) : (e.consume(A), p);
|
|
11657
11657
|
}
|
|
11658
|
-
function h(
|
|
11659
|
-
return
|
|
11658
|
+
function h(A) {
|
|
11659
|
+
return A === null || G(A) ? d(A) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
11660
11660
|
contentType: "string"
|
|
11661
|
-
}), m(
|
|
11661
|
+
}), m(A));
|
|
11662
11662
|
}
|
|
11663
|
-
function m(
|
|
11664
|
-
return
|
|
11663
|
+
function m(A) {
|
|
11664
|
+
return A === null || G(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(A)) : A === 96 && A === u ? n(A) : (e.consume(A), m);
|
|
11665
11665
|
}
|
|
11666
|
-
function T(
|
|
11667
|
-
return e.attempt(i,
|
|
11666
|
+
function T(A) {
|
|
11667
|
+
return e.attempt(i, D, C)(A);
|
|
11668
11668
|
}
|
|
11669
|
-
function A
|
|
11670
|
-
return e.enter("lineEnding"), e.consume(
|
|
11669
|
+
function C(A) {
|
|
11670
|
+
return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), y;
|
|
11671
11671
|
}
|
|
11672
|
-
function
|
|
11673
|
-
return a > 0 && ae(
|
|
11672
|
+
function y(A) {
|
|
11673
|
+
return a > 0 && ae(A) ? oe(e, I, "linePrefix", a + 1)(A) : I(A);
|
|
11674
11674
|
}
|
|
11675
|
-
function
|
|
11676
|
-
return
|
|
11675
|
+
function I(A) {
|
|
11676
|
+
return A === null || G(A) ? e.check(xu, T, D)(A) : (e.enter("codeFlowValue"), w(A));
|
|
11677
11677
|
}
|
|
11678
|
-
function w(
|
|
11679
|
-
return
|
|
11678
|
+
function w(A) {
|
|
11679
|
+
return A === null || G(A) ? (e.exit("codeFlowValue"), I(A)) : (e.consume(A), w);
|
|
11680
11680
|
}
|
|
11681
|
-
function
|
|
11682
|
-
return e.exit("codeFenced"), t(
|
|
11681
|
+
function D(A) {
|
|
11682
|
+
return e.exit("codeFenced"), t(A);
|
|
11683
11683
|
}
|
|
11684
|
-
function
|
|
11685
|
-
let
|
|
11686
|
-
return
|
|
11687
|
-
function
|
|
11688
|
-
return
|
|
11684
|
+
function R(A, H, B) {
|
|
11685
|
+
let U = 0;
|
|
11686
|
+
return N;
|
|
11687
|
+
function N(K) {
|
|
11688
|
+
return A.enter("lineEnding"), A.consume(K), A.exit("lineEnding"), Y;
|
|
11689
11689
|
}
|
|
11690
11690
|
function Y(K) {
|
|
11691
|
-
return
|
|
11691
|
+
return A.enter("codeFencedFence"), ae(K) ? oe(A, M, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(K) : M(K);
|
|
11692
11692
|
}
|
|
11693
11693
|
function M(K) {
|
|
11694
|
-
return K === u ? (
|
|
11694
|
+
return K === u ? (A.enter("codeFencedFenceSequence"), Q(K)) : B(K);
|
|
11695
11695
|
}
|
|
11696
11696
|
function Q(K) {
|
|
11697
|
-
return K === u ? (
|
|
11697
|
+
return K === u ? (U++, A.consume(K), Q) : U >= s ? (A.exit("codeFencedFenceSequence"), ae(K) ? oe(A, ie, "whitespace")(K) : ie(K)) : B(K);
|
|
11698
11698
|
}
|
|
11699
11699
|
function ie(K) {
|
|
11700
|
-
return K === null || G(K) ? (
|
|
11700
|
+
return K === null || G(K) ? (A.exit("codeFencedFence"), H(K)) : B(K);
|
|
11701
11701
|
}
|
|
11702
11702
|
}
|
|
11703
11703
|
}
|
|
@@ -11995,7 +11995,7 @@ function gb(e, t) {
|
|
|
11995
11995
|
s || (s = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
|
|
11996
11996
|
const u = s.events, o = [], l = {};
|
|
11997
11997
|
let f, d, p = -1, h = n, m = 0, T = 0;
|
|
11998
|
-
const
|
|
11998
|
+
const C = [T];
|
|
11999
11999
|
for (; h; ) {
|
|
12000
12000
|
for (; e.get(++i)[1] !== h; )
|
|
12001
12001
|
;
|
|
@@ -12003,10 +12003,10 @@ function gb(e, t) {
|
|
|
12003
12003
|
}
|
|
12004
12004
|
for (h = n; ++p < u.length; )
|
|
12005
12005
|
// Find a void token that includes a break.
|
|
12006
|
-
u[p][0] === "exit" && u[p - 1][0] === "enter" && u[p][1].type === u[p - 1][1].type && u[p][1].start.line !== u[p][1].end.line && (T = p + 1,
|
|
12007
|
-
for (s.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) :
|
|
12008
|
-
const
|
|
12009
|
-
o.push([
|
|
12006
|
+
u[p][0] === "exit" && u[p - 1][0] === "enter" && u[p][1].type === u[p - 1][1].type && u[p][1].start.line !== u[p][1].end.line && (T = p + 1, C.push(T), h._tokenizer = void 0, h.previous = void 0, h = h.next);
|
|
12007
|
+
for (s.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : C.pop(), p = C.length; p--; ) {
|
|
12008
|
+
const y = u.slice(C[p], C[p + 1]), I = a.pop();
|
|
12009
|
+
o.push([I, I + y.length - 1]), e.splice(I, 2, y);
|
|
12010
12010
|
}
|
|
12011
12011
|
for (o.reverse(), p = -1; ++p < o.length; )
|
|
12012
12012
|
l[m + o[p][0]] = m + o[p][1], m += o[p][1] - o[p][0] - 1;
|
|
@@ -12060,27 +12060,27 @@ function Ic(e, t, n, r, i, a, s, u, o) {
|
|
|
12060
12060
|
const l = o || Number.POSITIVE_INFINITY;
|
|
12061
12061
|
let f = 0;
|
|
12062
12062
|
return d;
|
|
12063
|
-
function d(
|
|
12064
|
-
return
|
|
12063
|
+
function d(y) {
|
|
12064
|
+
return y === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(y), e.exit(a), p) : y === null || y === 32 || y === 41 || zr(y) ? n(y) : (e.enter(r), e.enter(s), e.enter(u), e.enter("chunkString", {
|
|
12065
12065
|
contentType: "string"
|
|
12066
|
-
}), T(
|
|
12066
|
+
}), T(y));
|
|
12067
12067
|
}
|
|
12068
|
-
function p(
|
|
12069
|
-
return
|
|
12068
|
+
function p(y) {
|
|
12069
|
+
return y === 62 ? (e.enter(a), e.consume(y), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(u), e.enter("chunkString", {
|
|
12070
12070
|
contentType: "string"
|
|
12071
|
-
}), h(
|
|
12071
|
+
}), h(y));
|
|
12072
12072
|
}
|
|
12073
|
-
function h(
|
|
12074
|
-
return
|
|
12073
|
+
function h(y) {
|
|
12074
|
+
return y === 62 ? (e.exit("chunkString"), e.exit(u), p(y)) : y === null || y === 60 || G(y) ? n(y) : (e.consume(y), y === 92 ? m : h);
|
|
12075
12075
|
}
|
|
12076
|
-
function m(
|
|
12077
|
-
return
|
|
12076
|
+
function m(y) {
|
|
12077
|
+
return y === 60 || y === 62 || y === 92 ? (e.consume(y), h) : h(y);
|
|
12078
12078
|
}
|
|
12079
|
-
function T(
|
|
12080
|
-
return !f && (
|
|
12079
|
+
function T(y) {
|
|
12080
|
+
return !f && (y === null || y === 41 || ge(y)) ? (e.exit("chunkString"), e.exit(u), e.exit(s), e.exit(r), t(y)) : f < l && y === 40 ? (e.consume(y), f++, T) : y === 41 ? (e.consume(y), f--, T) : y === null || y === 32 || y === 40 || zr(y) ? n(y) : (e.consume(y), y === 92 ? C : T);
|
|
12081
12081
|
}
|
|
12082
|
-
function
|
|
12083
|
-
return
|
|
12082
|
+
function C(y) {
|
|
12083
|
+
return y === 40 || y === 41 || y === 92 ? (e.consume(y), T) : T(y);
|
|
12084
12084
|
}
|
|
12085
12085
|
}
|
|
12086
12086
|
function Nc(e, t, n, r, i, a) {
|
|
@@ -12350,63 +12350,63 @@ function Mb(e, t, n) {
|
|
|
12350
12350
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(k), d;
|
|
12351
12351
|
}
|
|
12352
12352
|
function d(k) {
|
|
12353
|
-
return k === 33 ? (e.consume(k), p) : k === 47 ? (e.consume(k), a = !0, T) : k === 63 ? (e.consume(k), i = 3, r.interrupt ? t :
|
|
12353
|
+
return k === 33 ? (e.consume(k), p) : k === 47 ? (e.consume(k), a = !0, T) : k === 63 ? (e.consume(k), i = 3, r.interrupt ? t : x) : Ue(k) ? (e.consume(k), s = String.fromCharCode(k), C) : n(k);
|
|
12354
12354
|
}
|
|
12355
12355
|
function p(k) {
|
|
12356
|
-
return k === 45 ? (e.consume(k), i = 2, h) : k === 91 ? (e.consume(k), i = 5, u = 0, m) : Ue(k) ? (e.consume(k), i = 4, r.interrupt ? t :
|
|
12356
|
+
return k === 45 ? (e.consume(k), i = 2, h) : k === 91 ? (e.consume(k), i = 5, u = 0, m) : Ue(k) ? (e.consume(k), i = 4, r.interrupt ? t : x) : n(k);
|
|
12357
12357
|
}
|
|
12358
12358
|
function h(k) {
|
|
12359
|
-
return k === 45 ? (e.consume(k), r.interrupt ? t :
|
|
12359
|
+
return k === 45 ? (e.consume(k), r.interrupt ? t : x) : n(k);
|
|
12360
12360
|
}
|
|
12361
12361
|
function m(k) {
|
|
12362
12362
|
const he = "CDATA[";
|
|
12363
12363
|
return k === he.charCodeAt(u++) ? (e.consume(k), u === he.length ? r.interrupt ? t : M : m) : n(k);
|
|
12364
12364
|
}
|
|
12365
12365
|
function T(k) {
|
|
12366
|
-
return Ue(k) ? (e.consume(k), s = String.fromCharCode(k),
|
|
12366
|
+
return Ue(k) ? (e.consume(k), s = String.fromCharCode(k), C) : n(k);
|
|
12367
12367
|
}
|
|
12368
|
-
function
|
|
12368
|
+
function C(k) {
|
|
12369
12369
|
if (k === null || k === 47 || k === 62 || ge(k)) {
|
|
12370
12370
|
const he = k === 47, Ye = s.toLowerCase();
|
|
12371
|
-
return !he && !a && Au.includes(Ye) ? (i = 1, r.interrupt ? t(k) : M(k)) : vb.includes(s.toLowerCase()) ? (i = 6, he ? (e.consume(k),
|
|
12371
|
+
return !he && !a && Au.includes(Ye) ? (i = 1, r.interrupt ? t(k) : M(k)) : vb.includes(s.toLowerCase()) ? (i = 6, he ? (e.consume(k), y) : r.interrupt ? t(k) : M(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? I(k) : w(k));
|
|
12372
12372
|
}
|
|
12373
|
-
return k === 45 || Pe(k) ? (e.consume(k), s += String.fromCharCode(k),
|
|
12373
|
+
return k === 45 || Pe(k) ? (e.consume(k), s += String.fromCharCode(k), C) : n(k);
|
|
12374
12374
|
}
|
|
12375
|
-
function
|
|
12375
|
+
function y(k) {
|
|
12376
12376
|
return k === 62 ? (e.consume(k), r.interrupt ? t : M) : n(k);
|
|
12377
12377
|
}
|
|
12378
|
-
function
|
|
12379
|
-
return ae(k) ? (e.consume(k),
|
|
12378
|
+
function I(k) {
|
|
12379
|
+
return ae(k) ? (e.consume(k), I) : N(k);
|
|
12380
12380
|
}
|
|
12381
12381
|
function w(k) {
|
|
12382
|
-
return k === 47 ? (e.consume(k),
|
|
12382
|
+
return k === 47 ? (e.consume(k), N) : k === 58 || k === 95 || Ue(k) ? (e.consume(k), D) : ae(k) ? (e.consume(k), w) : N(k);
|
|
12383
12383
|
}
|
|
12384
|
-
function
|
|
12385
|
-
return k === 45 || k === 46 || k === 58 || k === 95 || Pe(k) ? (e.consume(k),
|
|
12384
|
+
function D(k) {
|
|
12385
|
+
return k === 45 || k === 46 || k === 58 || k === 95 || Pe(k) ? (e.consume(k), D) : R(k);
|
|
12386
12386
|
}
|
|
12387
|
-
function
|
|
12388
|
-
return k === 61 ? (e.consume(k),
|
|
12387
|
+
function R(k) {
|
|
12388
|
+
return k === 61 ? (e.consume(k), A) : ae(k) ? (e.consume(k), R) : w(k);
|
|
12389
12389
|
}
|
|
12390
|
-
function
|
|
12391
|
-
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), o = k,
|
|
12390
|
+
function A(k) {
|
|
12391
|
+
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), o = k, H) : ae(k) ? (e.consume(k), A) : B(k);
|
|
12392
12392
|
}
|
|
12393
|
-
function
|
|
12394
|
-
return k === o ? (e.consume(k), o = null,
|
|
12393
|
+
function H(k) {
|
|
12394
|
+
return k === o ? (e.consume(k), o = null, U) : k === null || G(k) ? n(k) : (e.consume(k), H);
|
|
12395
12395
|
}
|
|
12396
12396
|
function B(k) {
|
|
12397
|
-
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || ge(k) ?
|
|
12397
|
+
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || ge(k) ? R(k) : (e.consume(k), B);
|
|
12398
12398
|
}
|
|
12399
|
-
function
|
|
12399
|
+
function U(k) {
|
|
12400
12400
|
return k === 47 || k === 62 || ae(k) ? w(k) : n(k);
|
|
12401
12401
|
}
|
|
12402
|
-
function
|
|
12402
|
+
function N(k) {
|
|
12403
12403
|
return k === 62 ? (e.consume(k), Y) : n(k);
|
|
12404
12404
|
}
|
|
12405
12405
|
function Y(k) {
|
|
12406
12406
|
return k === null || G(k) ? M(k) : ae(k) ? (e.consume(k), Y) : n(k);
|
|
12407
12407
|
}
|
|
12408
12408
|
function M(k) {
|
|
12409
|
-
return k === 45 && i === 2 ? (e.consume(k), Z) : k === 60 && i === 1 ? (e.consume(k), J) : k === 62 && i === 4 ? (e.consume(k), Re) : k === 63 && i === 3 ? (e.consume(k),
|
|
12409
|
+
return k === 45 && i === 2 ? (e.consume(k), Z) : k === 60 && i === 1 ? (e.consume(k), J) : k === 62 && i === 4 ? (e.consume(k), Re) : k === 63 && i === 3 ? (e.consume(k), x) : k === 93 && i === 5 ? (e.consume(k), Fe) : G(k) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ob, He, Q)(k)) : k === null || G(k) ? (e.exit("htmlFlowData"), Q(k)) : (e.consume(k), M);
|
|
12410
12410
|
}
|
|
12411
12411
|
function Q(k) {
|
|
12412
12412
|
return e.check(Db, ie, He)(k);
|
|
@@ -12418,7 +12418,7 @@ function Mb(e, t, n) {
|
|
|
12418
12418
|
return k === null || G(k) ? Q(k) : (e.enter("htmlFlowData"), M(k));
|
|
12419
12419
|
}
|
|
12420
12420
|
function Z(k) {
|
|
12421
|
-
return k === 45 ? (e.consume(k),
|
|
12421
|
+
return k === 45 ? (e.consume(k), x) : M(k);
|
|
12422
12422
|
}
|
|
12423
12423
|
function J(k) {
|
|
12424
12424
|
return k === 47 ? (e.consume(k), s = "", V) : M(k);
|
|
@@ -12431,10 +12431,10 @@ function Mb(e, t, n) {
|
|
|
12431
12431
|
return Ue(k) && s.length < 8 ? (e.consume(k), s += String.fromCharCode(k), V) : M(k);
|
|
12432
12432
|
}
|
|
12433
12433
|
function Fe(k) {
|
|
12434
|
-
return k === 93 ? (e.consume(k),
|
|
12434
|
+
return k === 93 ? (e.consume(k), x) : M(k);
|
|
12435
12435
|
}
|
|
12436
|
-
function
|
|
12437
|
-
return k === 62 ? (e.consume(k), Re) : k === 45 && i === 2 ? (e.consume(k),
|
|
12436
|
+
function x(k) {
|
|
12437
|
+
return k === 62 ? (e.consume(k), Re) : k === 45 && i === 2 ? (e.consume(k), x) : M(k);
|
|
12438
12438
|
}
|
|
12439
12439
|
function Re(k) {
|
|
12440
12440
|
return k === null || G(k) ? (e.exit("htmlFlowData"), He(k)) : (e.consume(k), Re);
|
|
@@ -12467,93 +12467,93 @@ function Ub(e, t, n) {
|
|
|
12467
12467
|
const r = this;
|
|
12468
12468
|
let i, a, s;
|
|
12469
12469
|
return u;
|
|
12470
|
-
function u(
|
|
12471
|
-
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(
|
|
12470
|
+
function u(x) {
|
|
12471
|
+
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(x), o;
|
|
12472
12472
|
}
|
|
12473
|
-
function o(
|
|
12474
|
-
return
|
|
12473
|
+
function o(x) {
|
|
12474
|
+
return x === 33 ? (e.consume(x), l) : x === 47 ? (e.consume(x), R) : x === 63 ? (e.consume(x), w) : Ue(x) ? (e.consume(x), B) : n(x);
|
|
12475
12475
|
}
|
|
12476
|
-
function l(
|
|
12477
|
-
return
|
|
12476
|
+
function l(x) {
|
|
12477
|
+
return x === 45 ? (e.consume(x), f) : x === 91 ? (e.consume(x), a = 0, m) : Ue(x) ? (e.consume(x), I) : n(x);
|
|
12478
12478
|
}
|
|
12479
|
-
function f(
|
|
12480
|
-
return
|
|
12479
|
+
function f(x) {
|
|
12480
|
+
return x === 45 ? (e.consume(x), h) : n(x);
|
|
12481
12481
|
}
|
|
12482
|
-
function d(
|
|
12483
|
-
return
|
|
12482
|
+
function d(x) {
|
|
12483
|
+
return x === null ? n(x) : x === 45 ? (e.consume(x), p) : G(x) ? (s = d, J(x)) : (e.consume(x), d);
|
|
12484
12484
|
}
|
|
12485
|
-
function p(
|
|
12486
|
-
return
|
|
12485
|
+
function p(x) {
|
|
12486
|
+
return x === 45 ? (e.consume(x), h) : d(x);
|
|
12487
12487
|
}
|
|
12488
|
-
function h(
|
|
12489
|
-
return
|
|
12488
|
+
function h(x) {
|
|
12489
|
+
return x === 62 ? Z(x) : x === 45 ? p(x) : d(x);
|
|
12490
12490
|
}
|
|
12491
|
-
function m(
|
|
12491
|
+
function m(x) {
|
|
12492
12492
|
const Re = "CDATA[";
|
|
12493
|
-
return
|
|
12493
|
+
return x === Re.charCodeAt(a++) ? (e.consume(x), a === Re.length ? T : m) : n(x);
|
|
12494
12494
|
}
|
|
12495
|
-
function T(
|
|
12496
|
-
return
|
|
12495
|
+
function T(x) {
|
|
12496
|
+
return x === null ? n(x) : x === 93 ? (e.consume(x), C) : G(x) ? (s = T, J(x)) : (e.consume(x), T);
|
|
12497
12497
|
}
|
|
12498
|
-
function
|
|
12499
|
-
return
|
|
12498
|
+
function C(x) {
|
|
12499
|
+
return x === 93 ? (e.consume(x), y) : T(x);
|
|
12500
12500
|
}
|
|
12501
|
-
function x
|
|
12502
|
-
return
|
|
12501
|
+
function y(x) {
|
|
12502
|
+
return x === 62 ? Z(x) : x === 93 ? (e.consume(x), y) : T(x);
|
|
12503
12503
|
}
|
|
12504
|
-
function
|
|
12505
|
-
return
|
|
12504
|
+
function I(x) {
|
|
12505
|
+
return x === null || x === 62 ? Z(x) : G(x) ? (s = I, J(x)) : (e.consume(x), I);
|
|
12506
12506
|
}
|
|
12507
|
-
function w(
|
|
12508
|
-
return
|
|
12507
|
+
function w(x) {
|
|
12508
|
+
return x === null ? n(x) : x === 63 ? (e.consume(x), D) : G(x) ? (s = w, J(x)) : (e.consume(x), w);
|
|
12509
12509
|
}
|
|
12510
|
-
function
|
|
12511
|
-
return
|
|
12510
|
+
function D(x) {
|
|
12511
|
+
return x === 62 ? Z(x) : w(x);
|
|
12512
12512
|
}
|
|
12513
|
-
function
|
|
12514
|
-
return Ue(
|
|
12513
|
+
function R(x) {
|
|
12514
|
+
return Ue(x) ? (e.consume(x), A) : n(x);
|
|
12515
12515
|
}
|
|
12516
|
-
function
|
|
12517
|
-
return
|
|
12516
|
+
function A(x) {
|
|
12517
|
+
return x === 45 || Pe(x) ? (e.consume(x), A) : H(x);
|
|
12518
12518
|
}
|
|
12519
|
-
function
|
|
12520
|
-
return G(
|
|
12519
|
+
function H(x) {
|
|
12520
|
+
return G(x) ? (s = H, J(x)) : ae(x) ? (e.consume(x), H) : Z(x);
|
|
12521
12521
|
}
|
|
12522
|
-
function B(
|
|
12523
|
-
return
|
|
12522
|
+
function B(x) {
|
|
12523
|
+
return x === 45 || Pe(x) ? (e.consume(x), B) : x === 47 || x === 62 || ge(x) ? U(x) : n(x);
|
|
12524
12524
|
}
|
|
12525
|
-
function
|
|
12526
|
-
return
|
|
12525
|
+
function U(x) {
|
|
12526
|
+
return x === 47 ? (e.consume(x), Z) : x === 58 || x === 95 || Ue(x) ? (e.consume(x), N) : G(x) ? (s = U, J(x)) : ae(x) ? (e.consume(x), U) : Z(x);
|
|
12527
12527
|
}
|
|
12528
|
-
function
|
|
12529
|
-
return
|
|
12528
|
+
function N(x) {
|
|
12529
|
+
return x === 45 || x === 46 || x === 58 || x === 95 || Pe(x) ? (e.consume(x), N) : Y(x);
|
|
12530
12530
|
}
|
|
12531
|
-
function Y(
|
|
12532
|
-
return
|
|
12531
|
+
function Y(x) {
|
|
12532
|
+
return x === 61 ? (e.consume(x), M) : G(x) ? (s = Y, J(x)) : ae(x) ? (e.consume(x), Y) : U(x);
|
|
12533
12533
|
}
|
|
12534
|
-
function M(
|
|
12535
|
-
return
|
|
12534
|
+
function M(x) {
|
|
12535
|
+
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), i = x, Q) : G(x) ? (s = M, J(x)) : ae(x) ? (e.consume(x), M) : (e.consume(x), ie);
|
|
12536
12536
|
}
|
|
12537
|
-
function Q(
|
|
12538
|
-
return
|
|
12537
|
+
function Q(x) {
|
|
12538
|
+
return x === i ? (e.consume(x), i = void 0, K) : x === null ? n(x) : G(x) ? (s = Q, J(x)) : (e.consume(x), Q);
|
|
12539
12539
|
}
|
|
12540
|
-
function ie(
|
|
12541
|
-
return
|
|
12540
|
+
function ie(x) {
|
|
12541
|
+
return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || ge(x) ? U(x) : (e.consume(x), ie);
|
|
12542
12542
|
}
|
|
12543
|
-
function K(
|
|
12544
|
-
return
|
|
12543
|
+
function K(x) {
|
|
12544
|
+
return x === 47 || x === 62 || ge(x) ? U(x) : n(x);
|
|
12545
12545
|
}
|
|
12546
|
-
function Z(
|
|
12547
|
-
return
|
|
12546
|
+
function Z(x) {
|
|
12547
|
+
return x === 62 ? (e.consume(x), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(x);
|
|
12548
12548
|
}
|
|
12549
|
-
function J(
|
|
12550
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(
|
|
12549
|
+
function J(x) {
|
|
12550
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), V;
|
|
12551
12551
|
}
|
|
12552
|
-
function V(
|
|
12553
|
-
return ae(
|
|
12552
|
+
function V(x) {
|
|
12553
|
+
return ae(x) ? oe(e, Fe, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : Fe(x);
|
|
12554
12554
|
}
|
|
12555
|
-
function Fe(
|
|
12556
|
-
return e.enter("htmlTextData"), s(
|
|
12555
|
+
function Fe(x) {
|
|
12556
|
+
return e.enter("htmlTextData"), s(x);
|
|
12557
12557
|
}
|
|
12558
12558
|
}
|
|
12559
12559
|
const Ya = {
|
|
@@ -13138,8 +13138,8 @@ function _2(e) {
|
|
|
13138
13138
|
return d > 1 ? o(m) : (s.consume(m), d++, h);
|
|
13139
13139
|
if (d < 2 && !n)
|
|
13140
13140
|
return o(m);
|
|
13141
|
-
const
|
|
13142
|
-
return
|
|
13141
|
+
const C = s.exit("strikethroughSequenceTemporary"), y = fn(m);
|
|
13142
|
+
return C._open = !y || y === 2 && !!T, C._close = !T || T === 2 && !!y, u(m);
|
|
13143
13143
|
}
|
|
13144
13144
|
}
|
|
13145
13145
|
}
|
|
@@ -13247,7 +13247,7 @@ function C2(e, t, n) {
|
|
|
13247
13247
|
const r = this;
|
|
13248
13248
|
let i = 0, a = 0, s;
|
|
13249
13249
|
return u;
|
|
13250
|
-
function u(
|
|
13250
|
+
function u(N) {
|
|
13251
13251
|
let Y = r.events.length - 1;
|
|
13252
13252
|
for (; Y > -1; ) {
|
|
13253
13253
|
const ie = r.events[Y][1].type;
|
|
@@ -13257,62 +13257,62 @@ function C2(e, t, n) {
|
|
|
13257
13257
|
else
|
|
13258
13258
|
break;
|
|
13259
13259
|
}
|
|
13260
|
-
const M = Y > -1 ? r.events[Y][1].type : null, Q = M === "tableHead" || M === "tableRow" ?
|
|
13261
|
-
return Q ===
|
|
13260
|
+
const M = Y > -1 ? r.events[Y][1].type : null, Q = M === "tableHead" || M === "tableRow" ? A : o;
|
|
13261
|
+
return Q === A && r.parser.lazy[r.now().line] ? n(N) : Q(N);
|
|
13262
13262
|
}
|
|
13263
|
-
function o(
|
|
13264
|
-
return e.enter("tableHead"), e.enter("tableRow"), l(
|
|
13263
|
+
function o(N) {
|
|
13264
|
+
return e.enter("tableHead"), e.enter("tableRow"), l(N);
|
|
13265
13265
|
}
|
|
13266
|
-
function l(
|
|
13267
|
-
return
|
|
13266
|
+
function l(N) {
|
|
13267
|
+
return N === 124 || (s = !0, a += 1), f(N);
|
|
13268
13268
|
}
|
|
13269
|
-
function f(
|
|
13270
|
-
return
|
|
13269
|
+
function f(N) {
|
|
13270
|
+
return N === null ? n(N) : G(N) ? a > 1 ? (a = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), h) : n(N) : ae(N) ? oe(e, f, "whitespace")(N) : (a += 1, s && (s = !1, i += 1), N === 124 ? (e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), s = !0, f) : (e.enter("data"), d(N)));
|
|
13271
13271
|
}
|
|
13272
|
-
function d(
|
|
13273
|
-
return
|
|
13272
|
+
function d(N) {
|
|
13273
|
+
return N === null || N === 124 || ge(N) ? (e.exit("data"), f(N)) : (e.consume(N), N === 92 ? p : d);
|
|
13274
13274
|
}
|
|
13275
|
-
function p(
|
|
13276
|
-
return
|
|
13275
|
+
function p(N) {
|
|
13276
|
+
return N === 92 || N === 124 ? (e.consume(N), d) : d(N);
|
|
13277
13277
|
}
|
|
13278
|
-
function h(
|
|
13279
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
|
13278
|
+
function h(N) {
|
|
13279
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(N) : (e.enter("tableDelimiterRow"), s = !1, ae(N) ? oe(e, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : m(N));
|
|
13280
13280
|
}
|
|
13281
|
-
function m(
|
|
13282
|
-
return
|
|
13281
|
+
function m(N) {
|
|
13282
|
+
return N === 45 || N === 58 ? C(N) : N === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), T) : R(N);
|
|
13283
13283
|
}
|
|
13284
|
-
function T(
|
|
13285
|
-
return ae(
|
|
13284
|
+
function T(N) {
|
|
13285
|
+
return ae(N) ? oe(e, C, "whitespace")(N) : C(N);
|
|
13286
13286
|
}
|
|
13287
|
-
function
|
|
13288
|
-
return
|
|
13287
|
+
function C(N) {
|
|
13288
|
+
return N === 58 ? (a += 1, s = !0, e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), y) : N === 45 ? (a += 1, y(N)) : N === null || G(N) ? D(N) : R(N);
|
|
13289
13289
|
}
|
|
13290
|
-
function
|
|
13291
|
-
return
|
|
13290
|
+
function y(N) {
|
|
13291
|
+
return N === 45 ? (e.enter("tableDelimiterFiller"), I(N)) : R(N);
|
|
13292
13292
|
}
|
|
13293
|
-
function N
|
|
13294
|
-
return
|
|
13293
|
+
function I(N) {
|
|
13294
|
+
return N === 45 ? (e.consume(N), I) : N === 58 ? (s = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(N));
|
|
13295
13295
|
}
|
|
13296
|
-
function w(
|
|
13297
|
-
return ae(
|
|
13296
|
+
function w(N) {
|
|
13297
|
+
return ae(N) ? oe(e, D, "whitespace")(N) : D(N);
|
|
13298
13298
|
}
|
|
13299
|
-
function
|
|
13300
|
-
return
|
|
13299
|
+
function D(N) {
|
|
13300
|
+
return N === 124 ? m(N) : N === null || G(N) ? !s || i !== a ? R(N) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(N)) : R(N);
|
|
13301
13301
|
}
|
|
13302
|
-
function
|
|
13303
|
-
return n(
|
|
13302
|
+
function R(N) {
|
|
13303
|
+
return n(N);
|
|
13304
13304
|
}
|
|
13305
|
-
function
|
|
13306
|
-
return e.enter("tableRow"),
|
|
13305
|
+
function A(N) {
|
|
13306
|
+
return e.enter("tableRow"), H(N);
|
|
13307
13307
|
}
|
|
13308
|
-
function
|
|
13309
|
-
return
|
|
13308
|
+
function H(N) {
|
|
13309
|
+
return N === 124 ? (e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), H) : N === null || G(N) ? (e.exit("tableRow"), t(N)) : ae(N) ? oe(e, H, "whitespace")(N) : (e.enter("data"), B(N));
|
|
13310
13310
|
}
|
|
13311
|
-
function B(
|
|
13312
|
-
return
|
|
13311
|
+
function B(N) {
|
|
13312
|
+
return N === null || N === 124 || ge(N) ? (e.exit("data"), H(N)) : (e.consume(N), N === 92 ? U : B);
|
|
13313
13313
|
}
|
|
13314
|
-
function
|
|
13315
|
-
return
|
|
13314
|
+
function U(N) {
|
|
13315
|
+
return N === 92 || N === 124 ? (e.consume(N), B) : B(N);
|
|
13316
13316
|
}
|
|
13317
13317
|
}
|
|
13318
13318
|
function S2(e, t) {
|
|
@@ -13982,18 +13982,18 @@ const HE = (e, t) => {
|
|
|
13982
13982
|
let s = 0, u = 0, o = 0, l;
|
|
13983
13983
|
const f = i.length;
|
|
13984
13984
|
for (let T = 0; T < f; T++) {
|
|
13985
|
-
const
|
|
13985
|
+
const C = i[T];
|
|
13986
13986
|
if (s === 0 && u === 0) {
|
|
13987
|
-
if (
|
|
13987
|
+
if (C === Ru) {
|
|
13988
13988
|
a.push(i.slice(o, T)), o = T + 1;
|
|
13989
13989
|
continue;
|
|
13990
13990
|
}
|
|
13991
|
-
if (
|
|
13991
|
+
if (C === "/") {
|
|
13992
13992
|
l = T;
|
|
13993
13993
|
continue;
|
|
13994
13994
|
}
|
|
13995
13995
|
}
|
|
13996
|
-
|
|
13996
|
+
C === "[" ? s++ : C === "]" ? s-- : C === "(" ? u++ : C === ")" && u--;
|
|
13997
13997
|
}
|
|
13998
13998
|
const d = a.length === 0 ? i : i.slice(o);
|
|
13999
13999
|
let p = d, h = !1;
|
|
@@ -14057,26 +14057,26 @@ const HE = (e, t) => {
|
|
|
14057
14057
|
o = f + (o.length > 0 ? " " + o : o);
|
|
14058
14058
|
continue;
|
|
14059
14059
|
}
|
|
14060
|
-
let
|
|
14061
|
-
if (!
|
|
14062
|
-
if (!
|
|
14060
|
+
let C = !!T, y = r(C ? m.substring(0, T) : m);
|
|
14061
|
+
if (!y) {
|
|
14062
|
+
if (!C) {
|
|
14063
14063
|
o = f + (o.length > 0 ? " " + o : o);
|
|
14064
14064
|
continue;
|
|
14065
14065
|
}
|
|
14066
|
-
if (
|
|
14066
|
+
if (y = r(m), !y) {
|
|
14067
14067
|
o = f + (o.length > 0 ? " " + o : o);
|
|
14068
14068
|
continue;
|
|
14069
14069
|
}
|
|
14070
|
-
|
|
14070
|
+
C = !1;
|
|
14071
14071
|
}
|
|
14072
|
-
const
|
|
14073
|
-
if (s.indexOf(
|
|
14072
|
+
const I = p.length === 0 ? "" : p.length === 1 ? p[0] : a(p).join(":"), w = h ? I + sa : I, D = w + y;
|
|
14073
|
+
if (s.indexOf(D) > -1)
|
|
14074
14074
|
continue;
|
|
14075
|
-
s.push(
|
|
14076
|
-
const
|
|
14077
|
-
for (let
|
|
14078
|
-
const
|
|
14079
|
-
s.push(w +
|
|
14075
|
+
s.push(D);
|
|
14076
|
+
const R = i(y, C);
|
|
14077
|
+
for (let A = 0; A < R.length; ++A) {
|
|
14078
|
+
const H = R[A];
|
|
14079
|
+
s.push(w + H);
|
|
14080
14080
|
}
|
|
14081
14081
|
o = f + (o.length > 0 ? " " + o : o);
|
|
14082
14082
|
}
|
|
@@ -14121,7 +14121,7 @@ const HE = (e, t) => {
|
|
|
14121
14121
|
const r = qc.exec(e);
|
|
14122
14122
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
14123
14123
|
}, Wc = (e) => e === "position" || e === "percentage", Gc = (e) => e === "image" || e === "url", Qc = (e) => e === "length" || e === "size" || e === "bg-size", Kc = (e) => e === "length", y3 = (e) => e === "number", A3 = (e) => e === "family-name", Xc = (e) => e === "shadow", C3 = () => {
|
|
14124
|
-
const e = Se("color"), t = Se("font"), n = Se("text"), r = Se("font-weight"), i = Se("tracking"), a = Se("leading"), s = Se("breakpoint"), u = Se("container"), o = Se("spacing"), l = Se("radius"), f = Se("shadow"), d = Se("inset-shadow"), p = Se("text-shadow"), h = Se("drop-shadow"), m = Se("blur"), T = Se("perspective"),
|
|
14124
|
+
const e = Se("color"), t = Se("font"), n = Se("text"), r = Se("font-weight"), i = Se("tracking"), a = Se("leading"), s = Se("breakpoint"), u = Se("container"), o = Se("spacing"), l = Se("radius"), f = Se("shadow"), d = Se("inset-shadow"), p = Se("text-shadow"), h = Se("drop-shadow"), m = Se("blur"), T = Se("perspective"), C = Se("aspect"), y = Se("ease"), I = Se("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [
|
|
14125
14125
|
"center",
|
|
14126
14126
|
"top",
|
|
14127
14127
|
"bottom",
|
|
@@ -14139,11 +14139,11 @@ const HE = (e, t) => {
|
|
|
14139
14139
|
"bottom-left",
|
|
14140
14140
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
14141
14141
|
"left-bottom"
|
|
14142
|
-
],
|
|
14142
|
+
], R = () => [...D(), q, j], A = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], B = () => [q, j, o], U = () => [tn, "full", "auto", ...B()], N = () => [Ct, "none", "subgrid", q, j], Y = () => ["auto", {
|
|
14143
14143
|
span: ["full", Ct, q, j]
|
|
14144
|
-
}, Ct, q, j], M = () => [Ct, "auto", q, j], Q = () => ["auto", "min", "max", "fr", q, j], ie = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...B()], J = () => [tn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...B()], V = () => [e, q, j], Fe = () => [...
|
|
14144
|
+
}, Ct, q, j], M = () => [Ct, "auto", q, j], Q = () => ["auto", "min", "max", "fr", q, j], ie = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...B()], J = () => [tn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...B()], V = () => [e, q, j], Fe = () => [...D(), Pu, Du, {
|
|
14145
14145
|
position: [q, j]
|
|
14146
|
-
}],
|
|
14146
|
+
}], x = () => ["no-repeat", {
|
|
14147
14147
|
repeat: ["", "x", "y", "space", "round"]
|
|
14148
14148
|
}], Re = () => ["auto", "cover", "contain", k3, E3, {
|
|
14149
14149
|
size: [q, j]
|
|
@@ -14195,7 +14195,7 @@ const HE = (e, t) => {
|
|
|
14195
14195
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
14196
14196
|
*/
|
|
14197
14197
|
aspect: [{
|
|
14198
|
-
aspect: ["auto", "square", tn, j, q,
|
|
14198
|
+
aspect: ["auto", "square", tn, j, q, C]
|
|
14199
14199
|
}],
|
|
14200
14200
|
/**
|
|
14201
14201
|
* Container
|
|
@@ -14286,49 +14286,49 @@ const HE = (e, t) => {
|
|
|
14286
14286
|
* @see https://tailwindcss.com/docs/object-position
|
|
14287
14287
|
*/
|
|
14288
14288
|
"object-position": [{
|
|
14289
|
-
object:
|
|
14289
|
+
object: R()
|
|
14290
14290
|
}],
|
|
14291
14291
|
/**
|
|
14292
14292
|
* Overflow
|
|
14293
14293
|
* @see https://tailwindcss.com/docs/overflow
|
|
14294
14294
|
*/
|
|
14295
14295
|
overflow: [{
|
|
14296
|
-
overflow:
|
|
14296
|
+
overflow: A()
|
|
14297
14297
|
}],
|
|
14298
14298
|
/**
|
|
14299
14299
|
* Overflow X
|
|
14300
14300
|
* @see https://tailwindcss.com/docs/overflow
|
|
14301
14301
|
*/
|
|
14302
14302
|
"overflow-x": [{
|
|
14303
|
-
"overflow-x":
|
|
14303
|
+
"overflow-x": A()
|
|
14304
14304
|
}],
|
|
14305
14305
|
/**
|
|
14306
14306
|
* Overflow Y
|
|
14307
14307
|
* @see https://tailwindcss.com/docs/overflow
|
|
14308
14308
|
*/
|
|
14309
14309
|
"overflow-y": [{
|
|
14310
|
-
"overflow-y":
|
|
14310
|
+
"overflow-y": A()
|
|
14311
14311
|
}],
|
|
14312
14312
|
/**
|
|
14313
14313
|
* Overscroll Behavior
|
|
14314
14314
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
14315
14315
|
*/
|
|
14316
14316
|
overscroll: [{
|
|
14317
|
-
overscroll:
|
|
14317
|
+
overscroll: H()
|
|
14318
14318
|
}],
|
|
14319
14319
|
/**
|
|
14320
14320
|
* Overscroll Behavior X
|
|
14321
14321
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
14322
14322
|
*/
|
|
14323
14323
|
"overscroll-x": [{
|
|
14324
|
-
"overscroll-x":
|
|
14324
|
+
"overscroll-x": H()
|
|
14325
14325
|
}],
|
|
14326
14326
|
/**
|
|
14327
14327
|
* Overscroll Behavior Y
|
|
14328
14328
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
14329
14329
|
*/
|
|
14330
14330
|
"overscroll-y": [{
|
|
14331
|
-
"overscroll-y":
|
|
14331
|
+
"overscroll-y": H()
|
|
14332
14332
|
}],
|
|
14333
14333
|
/**
|
|
14334
14334
|
* Position
|
|
@@ -14340,63 +14340,63 @@ const HE = (e, t) => {
|
|
|
14340
14340
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14341
14341
|
*/
|
|
14342
14342
|
inset: [{
|
|
14343
|
-
inset:
|
|
14343
|
+
inset: U()
|
|
14344
14344
|
}],
|
|
14345
14345
|
/**
|
|
14346
14346
|
* Right / Left
|
|
14347
14347
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14348
14348
|
*/
|
|
14349
14349
|
"inset-x": [{
|
|
14350
|
-
"inset-x":
|
|
14350
|
+
"inset-x": U()
|
|
14351
14351
|
}],
|
|
14352
14352
|
/**
|
|
14353
14353
|
* Top / Bottom
|
|
14354
14354
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14355
14355
|
*/
|
|
14356
14356
|
"inset-y": [{
|
|
14357
|
-
"inset-y":
|
|
14357
|
+
"inset-y": U()
|
|
14358
14358
|
}],
|
|
14359
14359
|
/**
|
|
14360
14360
|
* Start
|
|
14361
14361
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14362
14362
|
*/
|
|
14363
14363
|
start: [{
|
|
14364
|
-
start:
|
|
14364
|
+
start: U()
|
|
14365
14365
|
}],
|
|
14366
14366
|
/**
|
|
14367
14367
|
* End
|
|
14368
14368
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14369
14369
|
*/
|
|
14370
14370
|
end: [{
|
|
14371
|
-
end:
|
|
14371
|
+
end: U()
|
|
14372
14372
|
}],
|
|
14373
14373
|
/**
|
|
14374
14374
|
* Top
|
|
14375
14375
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14376
14376
|
*/
|
|
14377
14377
|
top: [{
|
|
14378
|
-
top:
|
|
14378
|
+
top: U()
|
|
14379
14379
|
}],
|
|
14380
14380
|
/**
|
|
14381
14381
|
* Right
|
|
14382
14382
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14383
14383
|
*/
|
|
14384
14384
|
right: [{
|
|
14385
|
-
right:
|
|
14385
|
+
right: U()
|
|
14386
14386
|
}],
|
|
14387
14387
|
/**
|
|
14388
14388
|
* Bottom
|
|
14389
14389
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14390
14390
|
*/
|
|
14391
14391
|
bottom: [{
|
|
14392
|
-
bottom:
|
|
14392
|
+
bottom: U()
|
|
14393
14393
|
}],
|
|
14394
14394
|
/**
|
|
14395
14395
|
* Left
|
|
14396
14396
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
14397
14397
|
*/
|
|
14398
14398
|
left: [{
|
|
14399
|
-
left:
|
|
14399
|
+
left: U()
|
|
14400
14400
|
}],
|
|
14401
14401
|
/**
|
|
14402
14402
|
* Visibility
|
|
@@ -14467,7 +14467,7 @@ const HE = (e, t) => {
|
|
|
14467
14467
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
14468
14468
|
*/
|
|
14469
14469
|
"grid-cols": [{
|
|
14470
|
-
"grid-cols":
|
|
14470
|
+
"grid-cols": N()
|
|
14471
14471
|
}],
|
|
14472
14472
|
/**
|
|
14473
14473
|
* Grid Column Start / End
|
|
@@ -14495,7 +14495,7 @@ const HE = (e, t) => {
|
|
|
14495
14495
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
14496
14496
|
*/
|
|
14497
14497
|
"grid-rows": [{
|
|
14498
|
-
"grid-rows":
|
|
14498
|
+
"grid-rows": N()
|
|
14499
14499
|
}],
|
|
14500
14500
|
/**
|
|
14501
14501
|
* Grid Row Start / End
|
|
@@ -15121,7 +15121,7 @@ const HE = (e, t) => {
|
|
|
15121
15121
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
15122
15122
|
*/
|
|
15123
15123
|
"bg-repeat": [{
|
|
15124
|
-
bg:
|
|
15124
|
+
bg: x()
|
|
15125
15125
|
}],
|
|
15126
15126
|
/**
|
|
15127
15127
|
* Background Size
|
|
@@ -15755,7 +15755,7 @@ const HE = (e, t) => {
|
|
|
15755
15755
|
}]
|
|
15756
15756
|
}],
|
|
15757
15757
|
"mask-image-radial-pos": [{
|
|
15758
|
-
"mask-radial-at":
|
|
15758
|
+
"mask-radial-at": D()
|
|
15759
15759
|
}],
|
|
15760
15760
|
"mask-image-conic-pos": [{
|
|
15761
15761
|
"mask-conic": [ne]
|
|
@@ -15798,7 +15798,7 @@ const HE = (e, t) => {
|
|
|
15798
15798
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
15799
15799
|
*/
|
|
15800
15800
|
"mask-repeat": [{
|
|
15801
|
-
mask:
|
|
15801
|
+
mask: x()
|
|
15802
15802
|
}],
|
|
15803
15803
|
/**
|
|
15804
15804
|
* Mask Size
|
|
@@ -16064,7 +16064,7 @@ const HE = (e, t) => {
|
|
|
16064
16064
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
16065
16065
|
*/
|
|
16066
16066
|
ease: [{
|
|
16067
|
-
ease: ["linear", "initial",
|
|
16067
|
+
ease: ["linear", "initial", y, q, j]
|
|
16068
16068
|
}],
|
|
16069
16069
|
/**
|
|
16070
16070
|
* Transition Delay
|
|
@@ -16078,7 +16078,7 @@ const HE = (e, t) => {
|
|
|
16078
16078
|
* @see https://tailwindcss.com/docs/animation
|
|
16079
16079
|
*/
|
|
16080
16080
|
animate: [{
|
|
16081
|
-
animate: ["none",
|
|
16081
|
+
animate: ["none", I, q, j]
|
|
16082
16082
|
}],
|
|
16083
16083
|
// ------------------
|
|
16084
16084
|
// --- Transforms ---
|
|
@@ -16102,7 +16102,7 @@ const HE = (e, t) => {
|
|
|
16102
16102
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
16103
16103
|
*/
|
|
16104
16104
|
"perspective-origin": [{
|
|
16105
|
-
"perspective-origin":
|
|
16105
|
+
"perspective-origin": R()
|
|
16106
16106
|
}],
|
|
16107
16107
|
/**
|
|
16108
16108
|
* Rotate
|
|
@@ -16198,7 +16198,7 @@ const HE = (e, t) => {
|
|
|
16198
16198
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
16199
16199
|
*/
|
|
16200
16200
|
"transform-origin": [{
|
|
16201
|
-
origin:
|
|
16201
|
+
origin: R()
|
|
16202
16202
|
}],
|
|
16203
16203
|
/**
|
|
16204
16204
|
* Transform Style
|
|
@@ -16616,8 +16616,8 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
|
|
|
16616
16616
|
function i(m) {
|
|
16617
16617
|
var T = m.match(R3);
|
|
16618
16618
|
T && (n += T.length);
|
|
16619
|
-
var
|
|
16620
|
-
r = ~
|
|
16619
|
+
var C = m.lastIndexOf(H3);
|
|
16620
|
+
r = ~C ? m.length - C : r + m.length;
|
|
16621
16621
|
}
|
|
16622
16622
|
function a() {
|
|
16623
16623
|
var m = { line: n, column: r };
|
|
@@ -16639,8 +16639,8 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
|
|
|
16639
16639
|
function o(m) {
|
|
16640
16640
|
var T = m.exec(e);
|
|
16641
16641
|
if (T) {
|
|
16642
|
-
var
|
|
16643
|
-
return i(
|
|
16642
|
+
var C = T[0];
|
|
16643
|
+
return i(C), e = e.slice(C.length), T;
|
|
16644
16644
|
}
|
|
16645
16645
|
}
|
|
16646
16646
|
function l() {
|
|
@@ -16659,10 +16659,10 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
|
|
|
16659
16659
|
++T;
|
|
16660
16660
|
if (T += 2, $t === e.charAt(T - 1))
|
|
16661
16661
|
return u("End of comment missing");
|
|
16662
|
-
var
|
|
16663
|
-
return r += 2, i(
|
|
16662
|
+
var C = e.slice(2, T - 2);
|
|
16663
|
+
return r += 2, i(C), e = e.slice(T), r += 2, m({
|
|
16664
16664
|
type: U3,
|
|
16665
|
-
comment:
|
|
16665
|
+
comment: C
|
|
16666
16666
|
});
|
|
16667
16667
|
}
|
|
16668
16668
|
}
|
|
@@ -16671,12 +16671,12 @@ var Va = {}, Fu = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, R3 = /\n/g, O3 = /^\s*/, D3
|
|
|
16671
16671
|
if (T) {
|
|
16672
16672
|
if (d(), !o(P3))
|
|
16673
16673
|
return u("property missing ':'");
|
|
16674
|
-
var
|
|
16674
|
+
var C = o(M3), y = m({
|
|
16675
16675
|
type: z3,
|
|
16676
16676
|
property: zu(T[0].replace(Fu, $t)),
|
|
16677
|
-
value:
|
|
16677
|
+
value: C ? zu(C[0].replace(Fu, $t)) : $t
|
|
16678
16678
|
});
|
|
16679
|
-
return o(B3),
|
|
16679
|
+
return o(B3), y;
|
|
16680
16680
|
}
|
|
16681
16681
|
}
|
|
16682
16682
|
function h() {
|
|
@@ -17164,28 +17164,28 @@ function IT(e) {
|
|
|
17164
17164
|
return u;
|
|
17165
17165
|
function u(w) {
|
|
17166
17166
|
if (r < n.length) {
|
|
17167
|
-
const
|
|
17168
|
-
return t.containerState =
|
|
17167
|
+
const D = n[r];
|
|
17168
|
+
return t.containerState = D[1], e.attempt(D[0].continuation, o, l)(w);
|
|
17169
17169
|
}
|
|
17170
17170
|
return l(w);
|
|
17171
17171
|
}
|
|
17172
17172
|
function o(w) {
|
|
17173
17173
|
if (r++, t.containerState._closeFlow) {
|
|
17174
|
-
t.containerState._closeFlow = void 0, i &&
|
|
17175
|
-
const
|
|
17176
|
-
let
|
|
17177
|
-
for (;
|
|
17178
|
-
if (t.events[
|
|
17179
|
-
|
|
17174
|
+
t.containerState._closeFlow = void 0, i && I();
|
|
17175
|
+
const D = t.events.length;
|
|
17176
|
+
let R = D, A;
|
|
17177
|
+
for (; R--; )
|
|
17178
|
+
if (t.events[R][0] === "exit" && t.events[R][1].type === "chunkFlow") {
|
|
17179
|
+
A = t.events[R][1].end;
|
|
17180
17180
|
break;
|
|
17181
17181
|
}
|
|
17182
|
-
|
|
17183
|
-
let
|
|
17184
|
-
for (;
|
|
17185
|
-
t.events[
|
|
17186
|
-
...
|
|
17187
|
-
},
|
|
17188
|
-
return et(t.events,
|
|
17182
|
+
y(r);
|
|
17183
|
+
let H = D;
|
|
17184
|
+
for (; H < t.events.length; )
|
|
17185
|
+
t.events[H][1].end = {
|
|
17186
|
+
...A
|
|
17187
|
+
}, H++;
|
|
17188
|
+
return et(t.events, R + 1, 0, t.events.slice(D)), t.events.length = H, l(w);
|
|
17189
17189
|
}
|
|
17190
17190
|
return u(w);
|
|
17191
17191
|
}
|
|
@@ -17200,7 +17200,7 @@ function IT(e) {
|
|
|
17200
17200
|
return t.containerState = {}, e.check(qu, f, d)(w);
|
|
17201
17201
|
}
|
|
17202
17202
|
function f(w) {
|
|
17203
|
-
return i &&
|
|
17203
|
+
return i && I(), y(r), p(w);
|
|
17204
17204
|
}
|
|
17205
17205
|
function d(w) {
|
|
17206
17206
|
return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, m(w);
|
|
@@ -17213,7 +17213,7 @@ function IT(e) {
|
|
|
17213
17213
|
}
|
|
17214
17214
|
function m(w) {
|
|
17215
17215
|
if (w === null) {
|
|
17216
|
-
i &&
|
|
17216
|
+
i && I(), y(0), e.consume(w);
|
|
17217
17217
|
return;
|
|
17218
17218
|
}
|
|
17219
17219
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -17224,49 +17224,49 @@ function IT(e) {
|
|
|
17224
17224
|
}
|
|
17225
17225
|
function T(w) {
|
|
17226
17226
|
if (w === null) {
|
|
17227
|
-
|
|
17227
|
+
C(e.exit("chunkFlow"), !0), y(0), e.consume(w);
|
|
17228
17228
|
return;
|
|
17229
17229
|
}
|
|
17230
|
-
return G(w) ? (e.consume(w),
|
|
17230
|
+
return G(w) ? (e.consume(w), C(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, u) : (e.consume(w), T);
|
|
17231
17231
|
}
|
|
17232
|
-
function
|
|
17233
|
-
const
|
|
17234
|
-
if (
|
|
17235
|
-
let
|
|
17236
|
-
for (;
|
|
17232
|
+
function C(w, D) {
|
|
17233
|
+
const R = t.sliceStream(w);
|
|
17234
|
+
if (D && R.push(null), w.previous = a, a && (a.next = w), a = w, i.defineSkip(w.start), i.write(R), t.parser.lazy[w.start.line]) {
|
|
17235
|
+
let A = i.events.length;
|
|
17236
|
+
for (; A--; )
|
|
17237
17237
|
if (
|
|
17238
17238
|
// The token starts before the line ending…
|
|
17239
|
-
i.events[
|
|
17240
|
-
(!i.events[
|
|
17241
|
-
i.events[
|
|
17239
|
+
i.events[A][1].start.offset < s && // …and either is not ended yet…
|
|
17240
|
+
(!i.events[A][1].end || // …or ends after it.
|
|
17241
|
+
i.events[A][1].end.offset > s)
|
|
17242
17242
|
)
|
|
17243
17243
|
return;
|
|
17244
|
-
const
|
|
17245
|
-
let B =
|
|
17244
|
+
const H = t.events.length;
|
|
17245
|
+
let B = H, U, N;
|
|
17246
17246
|
for (; B--; )
|
|
17247
17247
|
if (t.events[B][0] === "exit" && t.events[B][1].type === "chunkFlow") {
|
|
17248
|
-
if (
|
|
17249
|
-
|
|
17248
|
+
if (U) {
|
|
17249
|
+
N = t.events[B][1].end;
|
|
17250
17250
|
break;
|
|
17251
17251
|
}
|
|
17252
|
-
|
|
17252
|
+
U = !0;
|
|
17253
17253
|
}
|
|
17254
|
-
for (
|
|
17255
|
-
t.events[
|
|
17256
|
-
...
|
|
17257
|
-
},
|
|
17258
|
-
et(t.events, B + 1, 0, t.events.slice(
|
|
17254
|
+
for (y(r), A = H; A < t.events.length; )
|
|
17255
|
+
t.events[A][1].end = {
|
|
17256
|
+
...N
|
|
17257
|
+
}, A++;
|
|
17258
|
+
et(t.events, B + 1, 0, t.events.slice(H)), t.events.length = A;
|
|
17259
17259
|
}
|
|
17260
17260
|
}
|
|
17261
|
-
function
|
|
17262
|
-
let
|
|
17263
|
-
for (;
|
|
17264
|
-
const
|
|
17265
|
-
t.containerState =
|
|
17261
|
+
function y(w) {
|
|
17262
|
+
let D = n.length;
|
|
17263
|
+
for (; D-- > w; ) {
|
|
17264
|
+
const R = n[D];
|
|
17265
|
+
t.containerState = R[1], R[0].exit.call(t, e);
|
|
17266
17266
|
}
|
|
17267
17267
|
n.length = w;
|
|
17268
17268
|
}
|
|
17269
|
-
function
|
|
17269
|
+
function I() {
|
|
17270
17270
|
i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
17271
17271
|
}
|
|
17272
17272
|
}
|
|
@@ -17466,12 +17466,12 @@ function VT(e, t, n) {
|
|
|
17466
17466
|
const i = {}, a = [];
|
|
17467
17467
|
let s = [], u = [];
|
|
17468
17468
|
const o = {
|
|
17469
|
-
attempt:
|
|
17470
|
-
check:
|
|
17471
|
-
consume:
|
|
17469
|
+
attempt: H(R),
|
|
17470
|
+
check: H(A),
|
|
17471
|
+
consume: I,
|
|
17472
17472
|
enter: w,
|
|
17473
|
-
exit:
|
|
17474
|
-
interrupt:
|
|
17473
|
+
exit: D,
|
|
17474
|
+
interrupt: H(A, {
|
|
17475
17475
|
interrupt: !0
|
|
17476
17476
|
})
|
|
17477
17477
|
}, l = {
|
|
@@ -17489,7 +17489,7 @@ function VT(e, t, n) {
|
|
|
17489
17489
|
let f = t.tokenize.call(l, o);
|
|
17490
17490
|
return t.resolveAll && a.push(t), l;
|
|
17491
17491
|
function d(Y) {
|
|
17492
|
-
return s = nt(s, Y),
|
|
17492
|
+
return s = nt(s, Y), C(), s[s.length - 1] !== null ? [] : (B(t, 0), l.events = oi(a, l.events, l), l.events);
|
|
17493
17493
|
}
|
|
17494
17494
|
function p(Y, M) {
|
|
17495
17495
|
return GT(h(Y), M);
|
|
@@ -17514,24 +17514,24 @@ function VT(e, t, n) {
|
|
|
17514
17514
|
};
|
|
17515
17515
|
}
|
|
17516
17516
|
function T(Y) {
|
|
17517
|
-
i[Y.line] = Y.column,
|
|
17517
|
+
i[Y.line] = Y.column, N();
|
|
17518
17518
|
}
|
|
17519
|
-
function
|
|
17519
|
+
function C() {
|
|
17520
17520
|
let Y;
|
|
17521
17521
|
for (; r._index < s.length; ) {
|
|
17522
17522
|
const M = s[r._index];
|
|
17523
17523
|
if (typeof M == "string")
|
|
17524
17524
|
for (Y = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === Y && r._bufferIndex < M.length; )
|
|
17525
|
-
|
|
17525
|
+
y(M.charCodeAt(r._bufferIndex));
|
|
17526
17526
|
else
|
|
17527
|
-
|
|
17527
|
+
y(M);
|
|
17528
17528
|
}
|
|
17529
17529
|
}
|
|
17530
|
-
function
|
|
17530
|
+
function y(Y) {
|
|
17531
17531
|
f = f(Y);
|
|
17532
17532
|
}
|
|
17533
|
-
function
|
|
17534
|
-
G(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1,
|
|
17533
|
+
function I(Y) {
|
|
17534
|
+
G(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, N()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
17535
17535
|
// strings.
|
|
17536
17536
|
/** @type {string} */
|
|
17537
17537
|
s[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = Y;
|
|
@@ -17540,20 +17540,20 @@ function VT(e, t, n) {
|
|
|
17540
17540
|
const Q = M || {};
|
|
17541
17541
|
return Q.type = Y, Q.start = m(), l.events.push(["enter", Q, l]), u.push(Q), Q;
|
|
17542
17542
|
}
|
|
17543
|
-
function
|
|
17543
|
+
function D(Y) {
|
|
17544
17544
|
const M = u.pop();
|
|
17545
17545
|
return M.end = m(), l.events.push(["exit", M, l]), M;
|
|
17546
17546
|
}
|
|
17547
|
-
function
|
|
17547
|
+
function R(Y, M) {
|
|
17548
17548
|
B(Y, M.from);
|
|
17549
17549
|
}
|
|
17550
|
-
function
|
|
17550
|
+
function A(Y, M) {
|
|
17551
17551
|
M.restore();
|
|
17552
17552
|
}
|
|
17553
|
-
function
|
|
17553
|
+
function H(Y, M) {
|
|
17554
17554
|
return Q;
|
|
17555
17555
|
function Q(ie, K, Z) {
|
|
17556
|
-
let J, V, Fe,
|
|
17556
|
+
let J, V, Fe, x;
|
|
17557
17557
|
return Array.isArray(ie) ? (
|
|
17558
17558
|
/* c8 ignore next 1 */
|
|
17559
17559
|
He(ie)
|
|
@@ -17582,7 +17582,7 @@ function VT(e, t, n) {
|
|
|
17582
17582
|
function k(xe) {
|
|
17583
17583
|
return Ee;
|
|
17584
17584
|
function Ee(We) {
|
|
17585
|
-
return
|
|
17585
|
+
return x = U(), Fe = xe, xe.partial || (l.currentConstruct = xe), xe.name && l.parser.constructs.disable.null.includes(xe.name) ? Ye() : xe.tokenize.call(
|
|
17586
17586
|
// If we do have fields, create an object w/ `context` as its
|
|
17587
17587
|
// prototype.
|
|
17588
17588
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -17594,27 +17594,27 @@ function VT(e, t, n) {
|
|
|
17594
17594
|
}
|
|
17595
17595
|
}
|
|
17596
17596
|
function he(xe) {
|
|
17597
|
-
return Y(Fe,
|
|
17597
|
+
return Y(Fe, x), K;
|
|
17598
17598
|
}
|
|
17599
17599
|
function Ye(xe) {
|
|
17600
|
-
return
|
|
17600
|
+
return x.restore(), ++V < J.length ? k(J[V]) : Z;
|
|
17601
17601
|
}
|
|
17602
17602
|
}
|
|
17603
17603
|
}
|
|
17604
17604
|
function B(Y, M) {
|
|
17605
17605
|
Y.resolveAll && !a.includes(Y) && a.push(Y), Y.resolve && et(l.events, M, l.events.length - M, Y.resolve(l.events.slice(M), l)), Y.resolveTo && (l.events = Y.resolveTo(l.events, l));
|
|
17606
17606
|
}
|
|
17607
|
-
function
|
|
17607
|
+
function U() {
|
|
17608
17608
|
const Y = m(), M = l.previous, Q = l.currentConstruct, ie = l.events.length, K = Array.from(u);
|
|
17609
17609
|
return {
|
|
17610
17610
|
from: ie,
|
|
17611
17611
|
restore: Z
|
|
17612
17612
|
};
|
|
17613
17613
|
function Z() {
|
|
17614
|
-
r = Y, l.previous = M, l.currentConstruct = Q, l.events.length = ie, u = K,
|
|
17614
|
+
r = Y, l.previous = M, l.currentConstruct = Q, l.events.length = ie, u = K, N();
|
|
17615
17615
|
}
|
|
17616
17616
|
}
|
|
17617
|
-
function
|
|
17617
|
+
function N() {
|
|
17618
17618
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
17619
17619
|
}
|
|
17620
17620
|
}
|
|
@@ -17748,20 +17748,20 @@ function JT(e) {
|
|
|
17748
17748
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
17749
17749
|
enter: {
|
|
17750
17750
|
autolink: a(fs),
|
|
17751
|
-
autolinkProtocol:
|
|
17752
|
-
autolinkEmail:
|
|
17751
|
+
autolinkProtocol: U,
|
|
17752
|
+
autolinkEmail: U,
|
|
17753
17753
|
atxHeading: a(yn),
|
|
17754
17754
|
blockQuote: a(Qe),
|
|
17755
|
-
characterEscape:
|
|
17756
|
-
characterReference:
|
|
17755
|
+
characterEscape: U,
|
|
17756
|
+
characterReference: U,
|
|
17757
17757
|
codeFenced: a(ct),
|
|
17758
17758
|
codeFencedFenceInfo: s,
|
|
17759
17759
|
codeFencedFenceMeta: s,
|
|
17760
17760
|
codeIndented: a(ct, s),
|
|
17761
17761
|
codeText: a(ue, s),
|
|
17762
|
-
codeTextData:
|
|
17763
|
-
data:
|
|
17764
|
-
codeFlowValue:
|
|
17762
|
+
codeTextData: U,
|
|
17763
|
+
data: U,
|
|
17764
|
+
codeFlowValue: U,
|
|
17765
17765
|
definition: a(Ke),
|
|
17766
17766
|
definitionDestinationString: s,
|
|
17767
17767
|
definitionLabelString: s,
|
|
@@ -17770,9 +17770,9 @@ function JT(e) {
|
|
|
17770
17770
|
hardBreakEscape: a(cs),
|
|
17771
17771
|
hardBreakTrailing: a(cs),
|
|
17772
17772
|
htmlFlow: a(ds, s),
|
|
17773
|
-
htmlFlowData:
|
|
17773
|
+
htmlFlowData: U,
|
|
17774
17774
|
htmlText: a(ds, s),
|
|
17775
|
-
htmlTextData:
|
|
17775
|
+
htmlTextData: U,
|
|
17776
17776
|
image: a(r0),
|
|
17777
17777
|
label: s,
|
|
17778
17778
|
link: a(fs),
|
|
@@ -17791,36 +17791,36 @@ function JT(e) {
|
|
|
17791
17791
|
},
|
|
17792
17792
|
exit: {
|
|
17793
17793
|
atxHeading: o(),
|
|
17794
|
-
atxHeadingSequence:
|
|
17794
|
+
atxHeadingSequence: R,
|
|
17795
17795
|
autolink: o(),
|
|
17796
17796
|
autolinkEmail: Ge,
|
|
17797
17797
|
autolinkProtocol: We,
|
|
17798
17798
|
blockQuote: o(),
|
|
17799
|
-
characterEscapeValue:
|
|
17799
|
+
characterEscapeValue: N,
|
|
17800
17800
|
characterReferenceMarkerHexadecimal: Ye,
|
|
17801
17801
|
characterReferenceMarkerNumeric: Ye,
|
|
17802
17802
|
characterReferenceValue: xe,
|
|
17803
17803
|
characterReference: Ee,
|
|
17804
|
-
codeFenced: o(
|
|
17804
|
+
codeFenced: o(C),
|
|
17805
17805
|
codeFencedFence: T,
|
|
17806
17806
|
codeFencedFenceInfo: h,
|
|
17807
17807
|
codeFencedFenceMeta: m,
|
|
17808
|
-
codeFlowValue:
|
|
17809
|
-
codeIndented: o(
|
|
17808
|
+
codeFlowValue: N,
|
|
17809
|
+
codeIndented: o(y),
|
|
17810
17810
|
codeText: o(K),
|
|
17811
|
-
codeTextData:
|
|
17812
|
-
data:
|
|
17811
|
+
codeTextData: N,
|
|
17812
|
+
data: N,
|
|
17813
17813
|
definition: o(),
|
|
17814
|
-
definitionDestinationString:
|
|
17815
|
-
definitionLabelString:
|
|
17814
|
+
definitionDestinationString: D,
|
|
17815
|
+
definitionLabelString: I,
|
|
17816
17816
|
definitionTitleString: w,
|
|
17817
17817
|
emphasis: o(),
|
|
17818
17818
|
hardBreakEscape: o(M),
|
|
17819
17819
|
hardBreakTrailing: o(M),
|
|
17820
17820
|
htmlFlow: o(Q),
|
|
17821
|
-
htmlFlowData:
|
|
17821
|
+
htmlFlowData: N,
|
|
17822
17822
|
htmlText: o(ie),
|
|
17823
|
-
htmlTextData:
|
|
17823
|
+
htmlTextData: N,
|
|
17824
17824
|
image: o(J),
|
|
17825
17825
|
label: Fe,
|
|
17826
17826
|
labelText: V,
|
|
@@ -17831,12 +17831,12 @@ function JT(e) {
|
|
|
17831
17831
|
listUnordered: o(),
|
|
17832
17832
|
paragraph: o(),
|
|
17833
17833
|
referenceString: he,
|
|
17834
|
-
resourceDestinationString:
|
|
17834
|
+
resourceDestinationString: x,
|
|
17835
17835
|
resourceTitleString: Re,
|
|
17836
17836
|
resource: He,
|
|
17837
17837
|
setextHeading: o(B),
|
|
17838
|
-
setextHeadingLineSequence:
|
|
17839
|
-
setextHeadingText:
|
|
17838
|
+
setextHeadingLineSequence: H,
|
|
17839
|
+
setextHeadingText: A,
|
|
17840
17840
|
strong: o(),
|
|
17841
17841
|
thematicBreak: o()
|
|
17842
17842
|
}
|
|
@@ -17844,13 +17844,13 @@ function JT(e) {
|
|
|
17844
17844
|
sd(t, (e || {}).mdastExtensions || []);
|
|
17845
17845
|
const n = {};
|
|
17846
17846
|
return r;
|
|
17847
|
-
function r(
|
|
17848
|
-
let
|
|
17847
|
+
function r(v) {
|
|
17848
|
+
let z = {
|
|
17849
17849
|
type: "root",
|
|
17850
17850
|
children: []
|
|
17851
17851
|
};
|
|
17852
17852
|
const ee = {
|
|
17853
|
-
stack: [
|
|
17853
|
+
stack: [z],
|
|
17854
17854
|
tokenStack: [],
|
|
17855
17855
|
config: t,
|
|
17856
17856
|
enter: u,
|
|
@@ -17860,43 +17860,43 @@ function JT(e) {
|
|
|
17860
17860
|
data: n
|
|
17861
17861
|
}, se = [];
|
|
17862
17862
|
let pe = -1;
|
|
17863
|
-
for (; ++pe <
|
|
17864
|
-
if (
|
|
17865
|
-
if (
|
|
17863
|
+
for (; ++pe < v.length; )
|
|
17864
|
+
if (v[pe][1].type === "listOrdered" || v[pe][1].type === "listUnordered")
|
|
17865
|
+
if (v[pe][0] === "enter")
|
|
17866
17866
|
se.push(pe);
|
|
17867
17867
|
else {
|
|
17868
17868
|
const st = se.pop();
|
|
17869
|
-
pe = i(
|
|
17869
|
+
pe = i(v, st, pe);
|
|
17870
17870
|
}
|
|
17871
|
-
for (pe = -1; ++pe <
|
|
17872
|
-
const st = t[
|
|
17873
|
-
ad.call(st,
|
|
17874
|
-
sliceSerialize:
|
|
17875
|
-
}, ee),
|
|
17871
|
+
for (pe = -1; ++pe < v.length; ) {
|
|
17872
|
+
const st = t[v[pe][0]];
|
|
17873
|
+
ad.call(st, v[pe][1].type) && st[v[pe][1].type].call(Object.assign({
|
|
17874
|
+
sliceSerialize: v[pe][2].sliceSerialize
|
|
17875
|
+
}, ee), v[pe][1]);
|
|
17876
17876
|
}
|
|
17877
17877
|
if (ee.tokenStack.length > 0) {
|
|
17878
17878
|
const st = ee.tokenStack[ee.tokenStack.length - 1];
|
|
17879
17879
|
(st[1] || Wu).call(ee, void 0, st[0]);
|
|
17880
17880
|
}
|
|
17881
|
-
for (
|
|
17882
|
-
start: St(
|
|
17881
|
+
for (z.position = {
|
|
17882
|
+
start: St(v.length > 0 ? v[0][1].start : {
|
|
17883
17883
|
line: 1,
|
|
17884
17884
|
column: 1,
|
|
17885
17885
|
offset: 0
|
|
17886
17886
|
}),
|
|
17887
|
-
end: St(
|
|
17887
|
+
end: St(v.length > 0 ? v[v.length - 2][1].end : {
|
|
17888
17888
|
line: 1,
|
|
17889
17889
|
column: 1,
|
|
17890
17890
|
offset: 0
|
|
17891
17891
|
})
|
|
17892
17892
|
}, pe = -1; ++pe < t.transforms.length; )
|
|
17893
|
-
|
|
17894
|
-
return
|
|
17893
|
+
z = t.transforms[pe](z) || z;
|
|
17894
|
+
return z;
|
|
17895
17895
|
}
|
|
17896
|
-
function i(
|
|
17897
|
-
let se =
|
|
17896
|
+
function i(v, z, ee) {
|
|
17897
|
+
let se = z - 1, pe = -1, st = !1, Bt, Et, An, Cn;
|
|
17898
17898
|
for (; ++se <= ee; ) {
|
|
17899
|
-
const Xe =
|
|
17899
|
+
const Xe = v[se];
|
|
17900
17900
|
switch (Xe[1].type) {
|
|
17901
17901
|
case "listUnordered":
|
|
17902
17902
|
case "listOrdered":
|
|
@@ -17921,15 +17921,15 @@ function JT(e) {
|
|
|
17921
17921
|
if (Bt) {
|
|
17922
17922
|
let Jt = se;
|
|
17923
17923
|
for (Et = void 0; Jt--; ) {
|
|
17924
|
-
const Tt =
|
|
17924
|
+
const Tt = v[Jt];
|
|
17925
17925
|
if (Tt[1].type === "lineEnding" || Tt[1].type === "lineEndingBlank") {
|
|
17926
17926
|
if (Tt[0] === "exit")
|
|
17927
17927
|
continue;
|
|
17928
|
-
Et && (
|
|
17928
|
+
Et && (v[Et][1].type = "lineEndingBlank", st = !0), Tt[1].type = "lineEnding", Et = Jt;
|
|
17929
17929
|
} else if (!(Tt[1].type === "linePrefix" || Tt[1].type === "blockQuotePrefix" || Tt[1].type === "blockQuotePrefixWhitespace" || Tt[1].type === "blockQuoteMarker" || Tt[1].type === "listItemIndent"))
|
|
17930
17930
|
break;
|
|
17931
17931
|
}
|
|
17932
|
-
An && (!Et || An < Et) && (Bt._spread = !0), Bt.end = Object.assign({}, Et ?
|
|
17932
|
+
An && (!Et || An < Et) && (Bt._spread = !0), Bt.end = Object.assign({}, Et ? v[Et][1].start : Xe[1].end), v.splice(Et || se, 0, ["exit", Bt, Xe[2]]), se++, ee++;
|
|
17933
17933
|
}
|
|
17934
17934
|
if (Xe[1].type === "listItemPrefix") {
|
|
17935
17935
|
const Jt = {
|
|
@@ -17939,16 +17939,16 @@ function JT(e) {
|
|
|
17939
17939
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
17940
17940
|
end: void 0
|
|
17941
17941
|
};
|
|
17942
|
-
Bt = Jt,
|
|
17942
|
+
Bt = Jt, v.splice(se, 0, ["enter", Jt, Xe[2]]), se++, ee++, An = void 0, Cn = !0;
|
|
17943
17943
|
}
|
|
17944
17944
|
}
|
|
17945
17945
|
}
|
|
17946
|
-
return
|
|
17946
|
+
return v[z][1]._spread = st, ee;
|
|
17947
17947
|
}
|
|
17948
|
-
function a(
|
|
17948
|
+
function a(v, z) {
|
|
17949
17949
|
return ee;
|
|
17950
17950
|
function ee(se) {
|
|
17951
|
-
u.call(this,
|
|
17951
|
+
u.call(this, v(se), se), z && z.call(this, se);
|
|
17952
17952
|
}
|
|
17953
17953
|
}
|
|
17954
17954
|
function s() {
|
|
@@ -17957,29 +17957,29 @@ function JT(e) {
|
|
|
17957
17957
|
children: []
|
|
17958
17958
|
});
|
|
17959
17959
|
}
|
|
17960
|
-
function u(
|
|
17961
|
-
this.stack[this.stack.length - 1].children.push(
|
|
17962
|
-
start: St(
|
|
17960
|
+
function u(v, z, ee) {
|
|
17961
|
+
this.stack[this.stack.length - 1].children.push(v), this.stack.push(v), this.tokenStack.push([z, ee || void 0]), v.position = {
|
|
17962
|
+
start: St(z.start),
|
|
17963
17963
|
// @ts-expect-error: `end` will be patched later.
|
|
17964
17964
|
end: void 0
|
|
17965
17965
|
};
|
|
17966
17966
|
}
|
|
17967
|
-
function o(
|
|
17968
|
-
return
|
|
17969
|
-
function
|
|
17970
|
-
|
|
17967
|
+
function o(v) {
|
|
17968
|
+
return z;
|
|
17969
|
+
function z(ee) {
|
|
17970
|
+
v && v.call(this, ee), l.call(this, ee);
|
|
17971
17971
|
}
|
|
17972
17972
|
}
|
|
17973
|
-
function l(
|
|
17973
|
+
function l(v, z) {
|
|
17974
17974
|
const ee = this.stack.pop(), se = this.tokenStack.pop();
|
|
17975
17975
|
if (se)
|
|
17976
|
-
se[0].type !==
|
|
17976
|
+
se[0].type !== v.type && (z ? z.call(this, v, se[0]) : (se[1] || Wu).call(this, v, se[0]));
|
|
17977
17977
|
else
|
|
17978
|
-
throw new Error("Cannot close `" +
|
|
17979
|
-
start:
|
|
17980
|
-
end:
|
|
17978
|
+
throw new Error("Cannot close `" + v.type + "` (" + jn({
|
|
17979
|
+
start: v.start,
|
|
17980
|
+
end: v.end
|
|
17981
17981
|
}) + "): it’s not open");
|
|
17982
|
-
ee.position.end = St(
|
|
17982
|
+
ee.position.end = St(v.end);
|
|
17983
17983
|
}
|
|
17984
17984
|
function f() {
|
|
17985
17985
|
return Ha(this.stack.pop());
|
|
@@ -17987,134 +17987,134 @@ function JT(e) {
|
|
|
17987
17987
|
function d() {
|
|
17988
17988
|
this.data.expectingFirstListItemValue = !0;
|
|
17989
17989
|
}
|
|
17990
|
-
function p(
|
|
17990
|
+
function p(v) {
|
|
17991
17991
|
if (this.data.expectingFirstListItemValue) {
|
|
17992
|
-
const
|
|
17993
|
-
|
|
17992
|
+
const z = this.stack[this.stack.length - 2];
|
|
17993
|
+
z.start = Number.parseInt(this.sliceSerialize(v), 10), this.data.expectingFirstListItemValue = void 0;
|
|
17994
17994
|
}
|
|
17995
17995
|
}
|
|
17996
17996
|
function h() {
|
|
17997
|
-
const
|
|
17998
|
-
|
|
17997
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
17998
|
+
z.lang = v;
|
|
17999
17999
|
}
|
|
18000
18000
|
function m() {
|
|
18001
|
-
const
|
|
18002
|
-
|
|
18001
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18002
|
+
z.meta = v;
|
|
18003
18003
|
}
|
|
18004
18004
|
function T() {
|
|
18005
18005
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
18006
18006
|
}
|
|
18007
|
-
function
|
|
18008
|
-
const
|
|
18009
|
-
|
|
18007
|
+
function C() {
|
|
18008
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18009
|
+
z.value = v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
18010
18010
|
}
|
|
18011
|
-
function
|
|
18012
|
-
const
|
|
18013
|
-
|
|
18011
|
+
function y() {
|
|
18012
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18013
|
+
z.value = v.replace(/(\r?\n|\r)$/g, "");
|
|
18014
18014
|
}
|
|
18015
|
-
function
|
|
18016
|
-
const
|
|
18017
|
-
ee.label =
|
|
18015
|
+
function I(v) {
|
|
18016
|
+
const z = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
18017
|
+
ee.label = z, ee.identifier = ot(this.sliceSerialize(v)).toLowerCase();
|
|
18018
18018
|
}
|
|
18019
18019
|
function w() {
|
|
18020
|
-
const
|
|
18021
|
-
|
|
18020
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18021
|
+
z.title = v;
|
|
18022
18022
|
}
|
|
18023
|
-
function
|
|
18024
|
-
const
|
|
18025
|
-
|
|
18023
|
+
function D() {
|
|
18024
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18025
|
+
z.url = v;
|
|
18026
18026
|
}
|
|
18027
|
-
function
|
|
18028
|
-
const
|
|
18029
|
-
if (!
|
|
18030
|
-
const ee = this.sliceSerialize(
|
|
18031
|
-
|
|
18027
|
+
function R(v) {
|
|
18028
|
+
const z = this.stack[this.stack.length - 1];
|
|
18029
|
+
if (!z.depth) {
|
|
18030
|
+
const ee = this.sliceSerialize(v).length;
|
|
18031
|
+
z.depth = ee;
|
|
18032
18032
|
}
|
|
18033
18033
|
}
|
|
18034
|
-
function
|
|
18034
|
+
function A() {
|
|
18035
18035
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
18036
18036
|
}
|
|
18037
|
-
function
|
|
18038
|
-
const
|
|
18039
|
-
|
|
18037
|
+
function H(v) {
|
|
18038
|
+
const z = this.stack[this.stack.length - 1];
|
|
18039
|
+
z.depth = this.sliceSerialize(v).codePointAt(0) === 61 ? 1 : 2;
|
|
18040
18040
|
}
|
|
18041
18041
|
function B() {
|
|
18042
18042
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
18043
18043
|
}
|
|
18044
|
-
function
|
|
18044
|
+
function U(v) {
|
|
18045
18045
|
const ee = this.stack[this.stack.length - 1].children;
|
|
18046
18046
|
let se = ee[ee.length - 1];
|
|
18047
18047
|
(!se || se.type !== "text") && (se = u0(), se.position = {
|
|
18048
|
-
start: St(
|
|
18048
|
+
start: St(v.start),
|
|
18049
18049
|
// @ts-expect-error: we’ll add `end` later.
|
|
18050
18050
|
end: void 0
|
|
18051
18051
|
}, ee.push(se)), this.stack.push(se);
|
|
18052
18052
|
}
|
|
18053
|
-
function
|
|
18054
|
-
const
|
|
18055
|
-
|
|
18053
|
+
function N(v) {
|
|
18054
|
+
const z = this.stack.pop();
|
|
18055
|
+
z.value += this.sliceSerialize(v), z.position.end = St(v.end);
|
|
18056
18056
|
}
|
|
18057
|
-
function Y(
|
|
18058
|
-
const
|
|
18057
|
+
function Y(v) {
|
|
18058
|
+
const z = this.stack[this.stack.length - 1];
|
|
18059
18059
|
if (this.data.atHardBreak) {
|
|
18060
|
-
const ee =
|
|
18061
|
-
ee.position.end = St(
|
|
18060
|
+
const ee = z.children[z.children.length - 1];
|
|
18061
|
+
ee.position.end = St(v.end), this.data.atHardBreak = void 0;
|
|
18062
18062
|
return;
|
|
18063
18063
|
}
|
|
18064
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(
|
|
18064
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(z.type) && (U.call(this, v), N.call(this, v));
|
|
18065
18065
|
}
|
|
18066
18066
|
function M() {
|
|
18067
18067
|
this.data.atHardBreak = !0;
|
|
18068
18068
|
}
|
|
18069
18069
|
function Q() {
|
|
18070
|
-
const
|
|
18071
|
-
|
|
18070
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18071
|
+
z.value = v;
|
|
18072
18072
|
}
|
|
18073
18073
|
function ie() {
|
|
18074
|
-
const
|
|
18075
|
-
|
|
18074
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18075
|
+
z.value = v;
|
|
18076
18076
|
}
|
|
18077
18077
|
function K() {
|
|
18078
|
-
const
|
|
18079
|
-
|
|
18078
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18079
|
+
z.value = v;
|
|
18080
18080
|
}
|
|
18081
18081
|
function Z() {
|
|
18082
|
-
const
|
|
18082
|
+
const v = this.stack[this.stack.length - 1];
|
|
18083
18083
|
if (this.data.inReference) {
|
|
18084
|
-
const
|
|
18085
|
-
|
|
18084
|
+
const z = this.data.referenceType || "shortcut";
|
|
18085
|
+
v.type += "Reference", v.referenceType = z, delete v.url, delete v.title;
|
|
18086
18086
|
} else
|
|
18087
|
-
delete
|
|
18087
|
+
delete v.identifier, delete v.label;
|
|
18088
18088
|
this.data.referenceType = void 0;
|
|
18089
18089
|
}
|
|
18090
18090
|
function J() {
|
|
18091
|
-
const
|
|
18091
|
+
const v = this.stack[this.stack.length - 1];
|
|
18092
18092
|
if (this.data.inReference) {
|
|
18093
|
-
const
|
|
18094
|
-
|
|
18093
|
+
const z = this.data.referenceType || "shortcut";
|
|
18094
|
+
v.type += "Reference", v.referenceType = z, delete v.url, delete v.title;
|
|
18095
18095
|
} else
|
|
18096
|
-
delete
|
|
18096
|
+
delete v.identifier, delete v.label;
|
|
18097
18097
|
this.data.referenceType = void 0;
|
|
18098
18098
|
}
|
|
18099
|
-
function V(
|
|
18100
|
-
const
|
|
18101
|
-
ee.label = xg(
|
|
18099
|
+
function V(v) {
|
|
18100
|
+
const z = this.sliceSerialize(v), ee = this.stack[this.stack.length - 2];
|
|
18101
|
+
ee.label = xg(z), ee.identifier = ot(z).toLowerCase();
|
|
18102
18102
|
}
|
|
18103
18103
|
function Fe() {
|
|
18104
|
-
const
|
|
18104
|
+
const v = this.stack[this.stack.length - 1], z = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
18105
18105
|
if (this.data.inReference = !0, ee.type === "link") {
|
|
18106
|
-
const se =
|
|
18106
|
+
const se = v.children;
|
|
18107
18107
|
ee.children = se;
|
|
18108
18108
|
} else
|
|
18109
|
-
ee.alt =
|
|
18109
|
+
ee.alt = z;
|
|
18110
18110
|
}
|
|
18111
|
-
function
|
|
18112
|
-
const
|
|
18113
|
-
|
|
18111
|
+
function x() {
|
|
18112
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18113
|
+
z.url = v;
|
|
18114
18114
|
}
|
|
18115
18115
|
function Re() {
|
|
18116
|
-
const
|
|
18117
|
-
|
|
18116
|
+
const v = this.resume(), z = this.stack[this.stack.length - 1];
|
|
18117
|
+
z.title = v;
|
|
18118
18118
|
}
|
|
18119
18119
|
function He() {
|
|
18120
18120
|
this.data.inReference = void 0;
|
|
@@ -18122,33 +18122,33 @@ function JT(e) {
|
|
|
18122
18122
|
function k() {
|
|
18123
18123
|
this.data.referenceType = "collapsed";
|
|
18124
18124
|
}
|
|
18125
|
-
function he(
|
|
18126
|
-
const
|
|
18127
|
-
ee.label =
|
|
18125
|
+
function he(v) {
|
|
18126
|
+
const z = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
18127
|
+
ee.label = z, ee.identifier = ot(this.sliceSerialize(v)).toLowerCase(), this.data.referenceType = "full";
|
|
18128
18128
|
}
|
|
18129
|
-
function Ye(
|
|
18130
|
-
this.data.characterReferenceType =
|
|
18129
|
+
function Ye(v) {
|
|
18130
|
+
this.data.characterReferenceType = v.type;
|
|
18131
18131
|
}
|
|
18132
|
-
function xe(
|
|
18133
|
-
const
|
|
18132
|
+
function xe(v) {
|
|
18133
|
+
const z = this.sliceSerialize(v), ee = this.data.characterReferenceType;
|
|
18134
18134
|
let se;
|
|
18135
|
-
ee ? (se = pc(
|
|
18135
|
+
ee ? (se = pc(z, ee === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : se = za(z);
|
|
18136
18136
|
const pe = this.stack[this.stack.length - 1];
|
|
18137
18137
|
pe.value += se;
|
|
18138
18138
|
}
|
|
18139
|
-
function Ee(
|
|
18140
|
-
const
|
|
18141
|
-
|
|
18139
|
+
function Ee(v) {
|
|
18140
|
+
const z = this.stack.pop();
|
|
18141
|
+
z.position.end = St(v.end);
|
|
18142
18142
|
}
|
|
18143
|
-
function We(
|
|
18144
|
-
|
|
18145
|
-
const
|
|
18146
|
-
|
|
18143
|
+
function We(v) {
|
|
18144
|
+
N.call(this, v);
|
|
18145
|
+
const z = this.stack[this.stack.length - 1];
|
|
18146
|
+
z.url = this.sliceSerialize(v);
|
|
18147
18147
|
}
|
|
18148
|
-
function Ge(
|
|
18149
|
-
|
|
18150
|
-
const
|
|
18151
|
-
|
|
18148
|
+
function Ge(v) {
|
|
18149
|
+
N.call(this, v);
|
|
18150
|
+
const z = this.stack[this.stack.length - 1];
|
|
18151
|
+
z.url = "mailto:" + this.sliceSerialize(v);
|
|
18152
18152
|
}
|
|
18153
18153
|
function Qe() {
|
|
18154
18154
|
return {
|
|
@@ -18220,19 +18220,19 @@ function JT(e) {
|
|
|
18220
18220
|
children: []
|
|
18221
18221
|
};
|
|
18222
18222
|
}
|
|
18223
|
-
function hs(
|
|
18223
|
+
function hs(v) {
|
|
18224
18224
|
return {
|
|
18225
18225
|
type: "list",
|
|
18226
|
-
ordered:
|
|
18226
|
+
ordered: v.type === "listOrdered",
|
|
18227
18227
|
start: null,
|
|
18228
|
-
spread:
|
|
18228
|
+
spread: v._spread,
|
|
18229
18229
|
children: []
|
|
18230
18230
|
};
|
|
18231
18231
|
}
|
|
18232
|
-
function i0(
|
|
18232
|
+
function i0(v) {
|
|
18233
18233
|
return {
|
|
18234
18234
|
type: "listItem",
|
|
18235
|
-
spread:
|
|
18235
|
+
spread: v._spread,
|
|
18236
18236
|
checked: null,
|
|
18237
18237
|
children: []
|
|
18238
18238
|
};
|
|
@@ -18703,8 +18703,8 @@ function L_(e) {
|
|
|
18703
18703
|
const m = [], T = e.footnoteCounts.get(d);
|
|
18704
18704
|
for (; T !== void 0 && ++h <= T; ) {
|
|
18705
18705
|
m.length > 0 && m.push({ type: "text", value: " " });
|
|
18706
|
-
let
|
|
18707
|
-
typeof
|
|
18706
|
+
let I = typeof n == "string" ? n : n(o, h);
|
|
18707
|
+
typeof I == "string" && (I = { type: "text", value: I }), m.push({
|
|
18708
18708
|
type: "element",
|
|
18709
18709
|
tagName: "a",
|
|
18710
18710
|
properties: {
|
|
@@ -18713,22 +18713,22 @@ function L_(e) {
|
|
|
18713
18713
|
ariaLabel: typeof r == "string" ? r : r(o, h),
|
|
18714
18714
|
className: ["data-footnote-backref"]
|
|
18715
18715
|
},
|
|
18716
|
-
children: Array.isArray(
|
|
18716
|
+
children: Array.isArray(I) ? I : [I]
|
|
18717
18717
|
});
|
|
18718
18718
|
}
|
|
18719
|
-
const
|
|
18720
|
-
if (
|
|
18721
|
-
const
|
|
18722
|
-
|
|
18719
|
+
const C = f[f.length - 1];
|
|
18720
|
+
if (C && C.type === "element" && C.tagName === "p") {
|
|
18721
|
+
const I = C.children[C.children.length - 1];
|
|
18722
|
+
I && I.type === "text" ? I.value += " " : C.children.push({ type: "text", value: " " }), C.children.push(...m);
|
|
18723
18723
|
} else
|
|
18724
18724
|
f.push(...m);
|
|
18725
|
-
const
|
|
18725
|
+
const y = {
|
|
18726
18726
|
type: "element",
|
|
18727
18727
|
tagName: "li",
|
|
18728
18728
|
properties: { id: t + "fn-" + p },
|
|
18729
18729
|
children: e.wrap(f, !0)
|
|
18730
18730
|
};
|
|
18731
|
-
e.patch(l,
|
|
18731
|
+
e.patch(l, y), u.push(y);
|
|
18732
18732
|
}
|
|
18733
18733
|
if (u.length !== 0)
|
|
18734
18734
|
return {
|
|
@@ -18785,8 +18785,8 @@ function R_(e, t) {
|
|
|
18785
18785
|
return h(u, f, d);
|
|
18786
18786
|
if (u.options.passThrough && u.options.passThrough.includes(p)) {
|
|
18787
18787
|
if ("children" in f) {
|
|
18788
|
-
const { children: T, ...
|
|
18789
|
-
return
|
|
18788
|
+
const { children: T, ...C } = f, y = Vt(C);
|
|
18789
|
+
return y.children = u.all(f), y;
|
|
18790
18790
|
}
|
|
18791
18791
|
return Vt(f);
|
|
18792
18792
|
}
|
|
@@ -20282,27 +20282,27 @@ ${f}` : f;
|
|
|
20282
20282
|
break;
|
|
20283
20283
|
d = t[0], e = e.substring(d.length);
|
|
20284
20284
|
let h = t[2].split(`
|
|
20285
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (
|
|
20286
|
-
`, 1)[0], T = !h.trim(),
|
|
20287
|
-
if (this.options.pedantic ? (
|
|
20285
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (y) => " ".repeat(3 * y.length)), m = e.split(`
|
|
20286
|
+
`, 1)[0], T = !h.trim(), C = 0;
|
|
20287
|
+
if (this.options.pedantic ? (C = 2, p = h.trimStart()) : T ? C = t[1].length + 1 : (C = t[2].search(this.rules.other.nonSpaceChar), C = C > 4 ? 1 : C, p = h.slice(C), C += t[1].length), T && this.rules.other.blankLine.test(m) && (d += m + `
|
|
20288
20288
|
`, e = e.substring(m.length + 1), f = !0), !f) {
|
|
20289
|
-
let
|
|
20289
|
+
let y = this.rules.other.nextBulletRegex(C), I = this.rules.other.hrRegex(C), w = this.rules.other.fencesBeginRegex(C), D = this.rules.other.headingBeginRegex(C), R = this.rules.other.htmlBeginRegex(C);
|
|
20290
20290
|
for (; e; ) {
|
|
20291
|
-
let
|
|
20292
|
-
`, 1)[0],
|
|
20293
|
-
if (m =
|
|
20291
|
+
let A = e.split(`
|
|
20292
|
+
`, 1)[0], H;
|
|
20293
|
+
if (m = A, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "), H = m) : H = m.replace(this.rules.other.tabCharGlobal, " "), w.test(m) || D.test(m) || R.test(m) || y.test(m) || I.test(m))
|
|
20294
20294
|
break;
|
|
20295
|
-
if (
|
|
20295
|
+
if (H.search(this.rules.other.nonSpaceChar) >= C || !m.trim())
|
|
20296
20296
|
p += `
|
|
20297
|
-
` +
|
|
20297
|
+
` + H.slice(C);
|
|
20298
20298
|
else {
|
|
20299
|
-
if (T || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || w.test(h) ||
|
|
20299
|
+
if (T || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || w.test(h) || D.test(h) || I.test(h))
|
|
20300
20300
|
break;
|
|
20301
20301
|
p += `
|
|
20302
20302
|
` + m;
|
|
20303
20303
|
}
|
|
20304
|
-
!T && !m.trim() && (T = !0), d +=
|
|
20305
|
-
`, e = e.substring(
|
|
20304
|
+
!T && !m.trim() && (T = !0), d += A + `
|
|
20305
|
+
`, e = e.substring(A.length + 1), h = H.slice(C);
|
|
20306
20306
|
}
|
|
20307
20307
|
}
|
|
20308
20308
|
s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (o = !0)), s.items.push({ type: "list_item", raw: d, task: !!this.options.gfm && this.rules.other.listIsTask.test(p), loose: !1, text: p, tokens: [] }), s.raw += d;
|
|
@@ -20709,9 +20709,9 @@ ${f}` : f;
|
|
|
20709
20709
|
}
|
|
20710
20710
|
let m = t;
|
|
20711
20711
|
if ((p = this.options.extensions) != null && p.startInline) {
|
|
20712
|
-
let T = 1 / 0,
|
|
20713
|
-
this.options.extensions.startInline.forEach((
|
|
20714
|
-
|
|
20712
|
+
let T = 1 / 0, C = t.slice(1), y;
|
|
20713
|
+
this.options.extensions.startInline.forEach((I) => {
|
|
20714
|
+
y = I.call({ lexer: this }, C), typeof y == "number" && y >= 0 && (T = Math.min(T, y));
|
|
20715
20715
|
}), T < 1 / 0 && T >= 0 && (m = t.substring(0, T + 1));
|
|
20716
20716
|
}
|
|
20717
20717
|
if (h = this.tokenizer.inlineText(m)) {
|
|
@@ -21295,25 +21295,25 @@ function qk(e = {}) {
|
|
|
21295
21295
|
let m = () => {
|
|
21296
21296
|
o.current && (clearTimeout(o.current), o.current = null), l.current && (p(l.current), l.current = null);
|
|
21297
21297
|
}, T = (w) => {
|
|
21298
|
-
l.current = d((
|
|
21299
|
-
|
|
21298
|
+
l.current = d((D) => {
|
|
21299
|
+
D.timeRemaining() > 0 || D.didTimeout ? (s(!0), w.disconnect()) : l.current = d(() => {
|
|
21300
21300
|
s(!0), w.disconnect();
|
|
21301
21301
|
}, { timeout: i / 2 });
|
|
21302
21302
|
}, { timeout: i });
|
|
21303
|
-
},
|
|
21303
|
+
}, C = (w) => {
|
|
21304
21304
|
m(), o.current = window.setTimeout(() => {
|
|
21305
|
-
var
|
|
21306
|
-
let
|
|
21307
|
-
(
|
|
21305
|
+
var D, R;
|
|
21306
|
+
let A = w.takeRecords();
|
|
21307
|
+
(A.length === 0 || (R = (D = A.at(-1)) == null ? void 0 : D.isIntersecting) != null && R) && T(w);
|
|
21308
21308
|
}, n);
|
|
21309
|
-
},
|
|
21310
|
-
w.isIntersecting ?
|
|
21311
|
-
},
|
|
21312
|
-
for (let
|
|
21313
|
-
|
|
21309
|
+
}, y = (w, D) => {
|
|
21310
|
+
w.isIntersecting ? C(D) : m();
|
|
21311
|
+
}, I = new IntersectionObserver((w) => {
|
|
21312
|
+
for (let D of w)
|
|
21313
|
+
y(D, I);
|
|
21314
21314
|
}, { rootMargin: r, threshold: 0 });
|
|
21315
|
-
return
|
|
21316
|
-
o.current && clearTimeout(o.current), l.current && p(l.current),
|
|
21315
|
+
return I.observe(h), () => {
|
|
21316
|
+
o.current && clearTimeout(o.current), l.current && p(l.current), I.disconnect();
|
|
21317
21317
|
};
|
|
21318
21318
|
}, [t, n, r, i, p, d]), { shouldRender: a, containerRef: u };
|
|
21319
21319
|
}
|
|
@@ -21329,8 +21329,8 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
|
|
|
21329
21329
|
}
|
|
21330
21330
|
try {
|
|
21331
21331
|
u || (await navigator.clipboard.writeText(p), o(!0), e == null || e(), l.current = window.setTimeout(() => o(!1), n));
|
|
21332
|
-
} catch (
|
|
21333
|
-
t == null || t(
|
|
21332
|
+
} catch (C) {
|
|
21333
|
+
t == null || t(C);
|
|
21334
21334
|
}
|
|
21335
21335
|
};
|
|
21336
21336
|
we(() => () => {
|
|
@@ -21390,7 +21390,7 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
|
|
|
21390
21390
|
}, [t, n]), t ? b("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm", "data-streamdown": "link-safety-modal", onClick: n, onKeyDown: (o) => {
|
|
21391
21391
|
o.key === "Escape" && n();
|
|
21392
21392
|
}, role: "button", tabIndex: 0, children: b("div", { className: "relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg", onClick: (o) => o.stopPropagation(), onKeyDown: (o) => o.stopPropagation(), role: "presentation", children: [b("button", { className: "absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground", onClick: n, title: "Close", type: "button", children: b(kd, { size: 16 }) }), b("div", { className: "flex flex-col gap-2", children: [b("div", { className: "flex items-center gap-2 font-semibold text-lg", children: [b(go, { size: 20 }), b("span", { children: "Open external link?" })] }), b("p", { className: "text-muted-foreground text-sm", children: "You're about to visit an external website." })] }), b("div", { className: X("break-all rounded-md bg-muted p-3 font-mono text-sm", e.length > 100 && "max-h-32 overflow-y-auto"), children: e }), b("div", { className: "flex gap-2", children: [b("button", { className: "flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted", onClick: s, type: "button", children: i ? b($e, { children: [b(ss, { size: 14 }), b("span", { children: "Copied" })] }) : b($e, { children: [b(us, { size: 14 }), b("span", { children: "Copy link" })] }) }), b("button", { className: "flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90", onClick: u, type: "button", children: [b(go, { size: 14 }), b("span", { children: "Open link" })] })] })] }) }) : null;
|
|
21393
|
-
}, ma = Ta(null), yd = () => at(ma),
|
|
21393
|
+
}, ma = Ta(null), yd = () => at(ma), ux = () => {
|
|
21394
21394
|
var e;
|
|
21395
21395
|
let t = yd();
|
|
21396
21396
|
return (e = t == null ? void 0 : t.code) != null ? e : null;
|
|
@@ -21431,18 +21431,18 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
|
|
|
21431
21431
|
a == null || a(new Error("Mermaid plugin not available"));
|
|
21432
21432
|
return;
|
|
21433
21433
|
}
|
|
21434
|
-
let h = f.getMermaid(i), m = e.split("").reduce((
|
|
21435
|
-
if (!
|
|
21434
|
+
let h = f.getMermaid(i), m = e.split("").reduce((y, I) => (y << 5) - y + I.charCodeAt(0) | 0, 0), T = `mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: C } = await h.render(T, e);
|
|
21435
|
+
if (!C) {
|
|
21436
21436
|
a == null || a(new Error("SVG not found. Please wait for the diagram to render."));
|
|
21437
21437
|
return;
|
|
21438
21438
|
}
|
|
21439
21439
|
if (p === "svg") {
|
|
21440
|
-
ln("diagram.svg",
|
|
21440
|
+
ln("diagram.svg", C, "image/svg+xml"), u(!1), r == null || r(p);
|
|
21441
21441
|
return;
|
|
21442
21442
|
}
|
|
21443
21443
|
if (p === "png") {
|
|
21444
|
-
let
|
|
21445
|
-
ln("diagram.png",
|
|
21444
|
+
let y = await i6(C);
|
|
21445
|
+
ln("diagram.png", y, "image/png"), r == null || r(p), u(!1);
|
|
21446
21446
|
return;
|
|
21447
21447
|
}
|
|
21448
21448
|
} catch (h) {
|
|
@@ -21576,27 +21576,27 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
|
|
|
21576
21576
|
`);
|
|
21577
21577
|
}, d6 = ({ children: e, className: t, onCopy: n, onError: r, timeout: i = 2e3 }) => {
|
|
21578
21578
|
let [a, s] = ce(!1), [u, o] = ce(!1), l = Le(null), f = Le(0), { isAnimating: d } = at(it), p = async (m) => {
|
|
21579
|
-
var T,
|
|
21579
|
+
var T, C;
|
|
21580
21580
|
if (typeof window > "u" || !((T = navigator == null ? void 0 : navigator.clipboard) != null && T.write)) {
|
|
21581
21581
|
r == null || r(new Error("Clipboard API not available"));
|
|
21582
21582
|
return;
|
|
21583
21583
|
}
|
|
21584
21584
|
try {
|
|
21585
|
-
let
|
|
21586
|
-
if (!
|
|
21585
|
+
let y = (C = l.current) == null ? void 0 : C.closest('[data-streamdown="table-wrapper"]'), I = y == null ? void 0 : y.querySelector("table");
|
|
21586
|
+
if (!I) {
|
|
21587
21587
|
r == null || r(new Error("Table not found"));
|
|
21588
21588
|
return;
|
|
21589
21589
|
}
|
|
21590
|
-
let w = Ad(
|
|
21591
|
-
await navigator.clipboard.write([
|
|
21592
|
-
} catch (
|
|
21593
|
-
r == null || r(
|
|
21590
|
+
let w = Ad(I), D = m === "csv" ? Cd(w) : l6(w), R = new ClipboardItem({ "text/plain": new Blob([D], { type: "text/plain" }), "text/html": new Blob([I.outerHTML], { type: "text/html" }) });
|
|
21591
|
+
await navigator.clipboard.write([R]), o(!0), s(!1), n == null || n(m), f.current = window.setTimeout(() => o(!1), i);
|
|
21592
|
+
} catch (y) {
|
|
21593
|
+
r == null || r(y);
|
|
21594
21594
|
}
|
|
21595
21595
|
};
|
|
21596
21596
|
we(() => {
|
|
21597
21597
|
let m = (T) => {
|
|
21598
|
-
let
|
|
21599
|
-
l.current && !
|
|
21598
|
+
let C = T.composedPath();
|
|
21599
|
+
l.current && !C.includes(l.current) && s(!1);
|
|
21600
21600
|
};
|
|
21601
21601
|
return document.addEventListener("mousedown", m), () => {
|
|
21602
21602
|
document.removeEventListener("mousedown", m), window.clearTimeout(f.current);
|
|
@@ -21628,7 +21628,7 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
|
|
|
21628
21628
|
document.removeEventListener("mousedown", l);
|
|
21629
21629
|
};
|
|
21630
21630
|
}, []), b("div", { className: "relative", ref: s, children: [b("button", { className: X("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: u, onClick: () => a(!i), title: "Download table", type: "button", children: e ?? b(hi, { size: 14 }) }), i ? b("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [b("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => o("csv"), title: "Download table as CSV", type: "button", children: "CSV" }), b("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => o("markdown"), title: "Download table as Markdown", type: "button", children: "Markdown" })] }) : null] });
|
|
21631
|
-
}, h6 = ({ children: e, className: t, showControls: n, ...r }) => b("div", { className: "my-4 flex flex-col space-y-2", "data-streamdown": "table-wrapper", children: [n ? b("div", { className: "flex items-center justify-end gap-1", children: [b(d6, {}), b(f6, {})] }) : null, b("div", { className: "overflow-x-auto", children: b("table", { className: X("w-full border-collapse border border-border", t), "data-streamdown": "table", ...r, children: e }) })] }), p6 = Qo(() => import("./code-block-37QAKDTI-
|
|
21631
|
+
}, h6 = ({ children: e, className: t, showControls: n, ...r }) => b("div", { className: "my-4 flex flex-col space-y-2", "data-streamdown": "table-wrapper", children: [n ? b("div", { className: "flex items-center justify-end gap-1", children: [b(d6, {}), b(f6, {})] }) : null, b("div", { className: "overflow-x-auto", children: b("table", { className: X("w-full border-collapse border border-border", t), "data-streamdown": "table", ...r, children: e }) })] }), p6 = Qo(() => import("./code-block-37QAKDTI-227b441d.js").then((e) => ({ default: e.CodeBlock }))), m6 = Qo(() => import("./mermaid-4DMBBIKO-82ae8ed9.js").then((e) => ({ default: e.Mermaid }))), g6 = /language-([^\s]+)/;
|
|
21632
21632
|
function pi(e, t) {
|
|
21633
21633
|
if (!(e != null && e.position || t != null && t.position))
|
|
21634
21634
|
return !0;
|
|
@@ -21755,8 +21755,8 @@ var E6 = ({ node: e, className: t, children: n, ...r }) => {
|
|
|
21755
21755
|
return b("code", { className: X("rounded bg-muted px-1.5 py-0.5 font-mono text-sm", t), "data-streamdown": "inline-code", ...r, children: n });
|
|
21756
21756
|
let d = t == null ? void 0 : t.match(g6), p = (s = d == null ? void 0 : d.at(1)) != null ? s : "", h = "";
|
|
21757
21757
|
if (rn(n) && n.props && typeof n.props == "object" && "children" in n.props && typeof n.props.children == "string" ? h = n.props.children : typeof n == "string" && (h = n), p === "mermaid" && f) {
|
|
21758
|
-
let T = ga(l, "mermaid"),
|
|
21759
|
-
return b(Bn, { fallback: b(To, {}), children: b("div", { className: X("group relative my-4 h-auto rounded-xl border p-4", t), "data-streamdown": "mermaid-block", children: [
|
|
21758
|
+
let T = ga(l, "mermaid"), C = _r(l, "download"), y = _r(l, "copy"), I = _r(l, "fullscreen"), w = _r(l, "panZoom"), D = T && (C || y || I);
|
|
21759
|
+
return b(Bn, { fallback: b(To, {}), children: b("div", { className: X("group relative my-4 h-auto rounded-xl border p-4", t), "data-streamdown": "mermaid-block", children: [D ? b("div", { className: "flex items-center justify-end gap-2", children: [C ? b(a6, { chart: h, config: o == null ? void 0 : o.config }) : null, y ? b(bo, { code: h }) : null, I ? b(o6, { chart: h, config: o == null ? void 0 : o.config }) : null] }) : null, b(m6, { chart: h, config: o == null ? void 0 : o.config, showControls: w })] }) });
|
|
21760
21760
|
}
|
|
21761
21761
|
let m = ga(l, "code");
|
|
21762
21762
|
return b(Bn, { fallback: b(To, {}), children: b(p6, { className: X("overflow-x-auto border-border border-t", t), code: h, language: p, children: m ? b($e, { children: [b(Zk, { code: h, language: p }), b(bo, {})] }) : null }) });
|
|
@@ -21799,8 +21799,8 @@ var T6 = { ol: ls, li: Sd, ul: wd, hr: Id, strong: Nd, a: Ld, h1: vd, h2: Rd, h3
|
|
|
21799
21799
|
if (p > 0 && (d += ","), Array.isArray(h)) {
|
|
21800
21800
|
let [m, T] = h;
|
|
21801
21801
|
if (typeof m == "function") {
|
|
21802
|
-
let
|
|
21803
|
-
|
|
21802
|
+
let C = kr.get(m);
|
|
21803
|
+
C || (C = m.name, kr.set(m, C)), d += C;
|
|
21804
21804
|
} else
|
|
21805
21805
|
d += String(m);
|
|
21806
21806
|
d += ":", d += JSON.stringify(T);
|
|
@@ -21913,49 +21913,49 @@ var T6 = { ol: ls, li: Sd, ul: wd, hr: Id, strong: Nd, a: Ld, h1: vd, h2: Rd, h3
|
|
|
21913
21913
|
return !(e.rehypePlugins !== t.rehypePlugins || e.remarkPlugins !== t.remarkPlugins);
|
|
21914
21914
|
});
|
|
21915
21915
|
Xd.displayName = "Block";
|
|
21916
|
-
var M6 = ["github-light", "github-dark"], Zd = be(({ children: e, mode: t = "streaming", parseIncompleteMarkdown: n = !0, components: r, rehypePlugins: i = R6, remarkPlugins: a = O6, className: s, shikiTheme: u = M6, mermaid: o, controls: l = !0, isAnimating: f = !1, BlockComponent: d = Xd, parseMarkdownIntoBlocksFn: p = N6, caret: h, plugins: m, remend: T, linkSafety:
|
|
21917
|
-
let
|
|
21916
|
+
var M6 = ["github-light", "github-dark"], Zd = be(({ children: e, mode: t = "streaming", parseIncompleteMarkdown: n = !0, components: r, rehypePlugins: i = R6, remarkPlugins: a = O6, className: s, shikiTheme: u = M6, mermaid: o, controls: l = !0, isAnimating: f = !1, BlockComponent: d = Xd, parseMarkdownIntoBlocksFn: p = N6, caret: h, plugins: m, remend: T, linkSafety: C = { enabled: !0 }, ...y }) => {
|
|
21917
|
+
let I = E0(), [w, D] = of(), R = Oe(() => typeof e != "string" ? "" : t === "streaming" && n ? BE(e, T) : e, [e, t, n, T]), A = Oe(() => p(R), [R, p]), [H, B] = ce(A);
|
|
21918
21918
|
we(() => {
|
|
21919
|
-
t === "streaming" ?
|
|
21920
|
-
B(
|
|
21921
|
-
}) : B(
|
|
21922
|
-
}, [
|
|
21923
|
-
let
|
|
21919
|
+
t === "streaming" ? D(() => {
|
|
21920
|
+
B(A);
|
|
21921
|
+
}) : B(A);
|
|
21922
|
+
}, [A, t]);
|
|
21923
|
+
let U = t === "streaming" ? H : A, N = Oe(() => U.map((Z, J) => `${I}-${J}`), [U.length, I]), Y = Oe(() => {
|
|
21924
21924
|
var Z, J;
|
|
21925
|
-
return { shikiTheme: (J = (Z = m == null ? void 0 : m.code) == null ? void 0 : Z.getThemes()) != null ? J : u, controls: l, isAnimating: f, mode: t, mermaid: o, linkSafety:
|
|
21926
|
-
}, [u, l, f, t, o,
|
|
21925
|
+
return { shikiTheme: (J = (Z = m == null ? void 0 : m.code) == null ? void 0 : Z.getThemes()) != null ? J : u, controls: l, isAnimating: f, mode: t, mermaid: o, linkSafety: C };
|
|
21926
|
+
}, [u, l, f, t, o, C, m == null ? void 0 : m.code]), M = Oe(() => ({ ...T6, ...r }), [r]), Q = Oe(() => {
|
|
21927
21927
|
let Z = [];
|
|
21928
21928
|
return m != null && m.cjk && (Z = [...Z, ...m.cjk.remarkPluginsBefore]), Z = [...Z, ...a], m != null && m.cjk && (Z = [...Z, ...m.cjk.remarkPluginsAfter]), m != null && m.math && (Z = [...Z, m.math.remarkPlugin]), Z;
|
|
21929
21929
|
}, [a, m == null ? void 0 : m.math, m == null ? void 0 : m.cjk]), ie = Oe(() => m != null && m.math ? [...i, m.math.rehypePlugin] : i, [i, m == null ? void 0 : m.math]), K = Oe(() => h && f ? { "--streamdown-caret": `"${D6[h]}"` } : void 0, [h, f]);
|
|
21930
|
-
return t === "static" ? b(ma.Provider, { value: m ?? null, children: b(it.Provider, { value: Y, children: b("div", { className: X("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0", s), children: b(Kd, { components: M, rehypePlugins: ie, remarkPlugins: Q, ...
|
|
21930
|
+
return t === "static" ? b(ma.Provider, { value: m ?? null, children: b(it.Provider, { value: Y, children: b("div", { className: X("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0", s), children: b(Kd, { components: M, rehypePlugins: ie, remarkPlugins: Q, ...y, children: e }) }) }) }) : b(ma.Provider, { value: m ?? null, children: b(it.Provider, { value: Y, children: b("div", { className: X("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0", h ? "*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)" : null, s), style: K, children: [U.length === 0 && h && f && b("span", {}), U.map((Z, J) => b(d, { components: M, content: Z, index: J, rehypePlugins: ie, remarkPlugins: Q, shouldParseIncompleteMarkdown: n, ...y }, N[J]))] }) }) });
|
|
21931
21931
|
}, (e, t) => e.children === t.children && e.shikiTheme === t.shikiTheme && e.isAnimating === t.isAnimating && e.mode === t.mode && e.plugins === t.plugins && e.className === t.className && e.linkSafety === t.linkSafety);
|
|
21932
21932
|
Zd.displayName = "Streamdown";
|
|
21933
21933
|
var B6 = ({ children: e, className: t, minZoom: n = 0.5, maxZoom: r = 3, zoomStep: i = 0.1, showControls: a = !0, initialZoom: s = 1, fullscreen: u = !1 }) => {
|
|
21934
|
-
let o = Le(null), l = Le(null), [f, d] = ce(s), [p, h] = ce({ x: 0, y: 0 }), [m, T] = ce(!1), [
|
|
21934
|
+
let o = Le(null), l = Le(null), [f, d] = ce(s), [p, h] = ce({ x: 0, y: 0 }), [m, T] = ce(!1), [C, y] = ce({ x: 0, y: 0 }), [I, w] = ce({ x: 0, y: 0 }), D = De((M) => {
|
|
21935
21935
|
d((Q) => Math.max(n, Math.min(r, Q + M)));
|
|
21936
|
-
}, [n, r]),
|
|
21937
|
-
|
|
21938
|
-
}, [
|
|
21939
|
-
|
|
21940
|
-
}, [
|
|
21936
|
+
}, [n, r]), R = De(() => {
|
|
21937
|
+
D(i);
|
|
21938
|
+
}, [D, i]), A = De(() => {
|
|
21939
|
+
D(-i);
|
|
21940
|
+
}, [D, i]), H = De(() => {
|
|
21941
21941
|
d(s), h({ x: 0, y: 0 });
|
|
21942
21942
|
}, [s]), B = De((M) => {
|
|
21943
21943
|
M.preventDefault();
|
|
21944
21944
|
let Q = M.deltaY > 0 ? -i : i;
|
|
21945
|
-
|
|
21946
|
-
}, [
|
|
21945
|
+
D(Q);
|
|
21946
|
+
}, [D, i]), U = De((M) => {
|
|
21947
21947
|
if (M.button !== 0 || M.isPrimary === !1)
|
|
21948
21948
|
return;
|
|
21949
|
-
T(!0),
|
|
21949
|
+
T(!0), y({ x: M.clientX, y: M.clientY }), w(p);
|
|
21950
21950
|
let Q = M.currentTarget;
|
|
21951
21951
|
Q instanceof HTMLElement && Q.setPointerCapture(M.pointerId);
|
|
21952
|
-
}, [p]),
|
|
21952
|
+
}, [p]), N = De((M) => {
|
|
21953
21953
|
if (!m)
|
|
21954
21954
|
return;
|
|
21955
21955
|
M.preventDefault();
|
|
21956
|
-
let Q = M.clientX -
|
|
21957
|
-
h({ x:
|
|
21958
|
-
}, [m,
|
|
21956
|
+
let Q = M.clientX - C.x, ie = M.clientY - C.y;
|
|
21957
|
+
h({ x: I.x + Q, y: I.y + ie });
|
|
21958
|
+
}, [m, C, I]), Y = De((M) => {
|
|
21959
21959
|
T(!1);
|
|
21960
21960
|
let Q = M.currentTarget;
|
|
21961
21961
|
Q instanceof HTMLElement && Q.releasePointerCapture(M.pointerId);
|
|
@@ -21969,41 +21969,41 @@ var B6 = ({ children: e, className: t, minZoom: n = 0.5, maxZoom: r = 3, zoomSte
|
|
|
21969
21969
|
}, [B]), we(() => {
|
|
21970
21970
|
let M = l.current;
|
|
21971
21971
|
if (M && m)
|
|
21972
|
-
return document.body.style.userSelect = "none", M.addEventListener("pointermove",
|
|
21973
|
-
document.body.style.userSelect = "", M.removeEventListener("pointermove",
|
|
21972
|
+
return document.body.style.userSelect = "none", M.addEventListener("pointermove", N, { passive: !1 }), M.addEventListener("pointerup", Y), M.addEventListener("pointercancel", Y), () => {
|
|
21973
|
+
document.body.style.userSelect = "", M.removeEventListener("pointermove", N), M.removeEventListener("pointerup", Y), M.removeEventListener("pointercancel", Y);
|
|
21974
21974
|
};
|
|
21975
|
-
}, [m,
|
|
21975
|
+
}, [m, N, Y]), b("div", { className: X("relative flex flex-col", u ? "h-full w-full" : "min-h-28 w-full", t), ref: o, style: { cursor: m ? "grabbing" : "grab" }, children: [a ? b("div", { className: X("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm", u ? "bottom-4 left-4" : "bottom-2 left-2"), children: [b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: f >= r, onClick: R, title: "Zoom in", type: "button", children: b(Qk, { size: 16 }) }), b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", disabled: f <= n, onClick: A, title: "Zoom out", type: "button", children: b(Kk, { size: 16 }) }), b("button", { className: "flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground", onClick: H, title: "Reset zoom and pan", type: "button", children: b(Gk, { size: 16 }) })] }) : null, b("div", { className: X("flex-1 origin-center transition-transform duration-150 ease-out", u ? "flex h-full w-full items-center justify-center" : "flex w-full items-center justify-center"), onPointerDown: U, ref: l, role: "application", style: { transform: `translate(${p.x}px, ${p.y}px) scale(${f})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
|
|
21976
21976
|
}, F6 = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
|
|
21977
|
-
let [a, s] = ce(null), [u, o] = ce(!1), [l, f] = ce(""), [d, p] = ce(""), [h, m] = ce(0), { mermaid: T } = at(it),
|
|
21977
|
+
let [a, s] = ce(null), [u, o] = ce(!1), [l, f] = ce(""), [d, p] = ce(""), [h, m] = ce(0), { mermaid: T } = at(it), C = os(), y = T == null ? void 0 : T.errorComponent, { shouldRender: I, containerRef: w } = qk({ immediate: r });
|
|
21978
21978
|
if (we(() => {
|
|
21979
|
-
if (
|
|
21980
|
-
if (!
|
|
21979
|
+
if (I) {
|
|
21980
|
+
if (!C) {
|
|
21981
21981
|
s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
|
|
21982
21982
|
return;
|
|
21983
21983
|
}
|
|
21984
21984
|
(async () => {
|
|
21985
21985
|
try {
|
|
21986
21986
|
s(null), o(!0);
|
|
21987
|
-
let
|
|
21987
|
+
let R = C.getMermaid(n), A = e.split("").reduce((U, N) => (U << 5) - U + N.charCodeAt(0) | 0, 0), H = `mermaid-${Math.abs(A)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: B } = await R.render(H, e);
|
|
21988
21988
|
f(B), p(B);
|
|
21989
|
-
} catch (
|
|
21989
|
+
} catch (R) {
|
|
21990
21990
|
if (!(d || l)) {
|
|
21991
|
-
let
|
|
21992
|
-
s(
|
|
21991
|
+
let A = R instanceof Error ? R.message : "Failed to render Mermaid chart";
|
|
21992
|
+
s(A);
|
|
21993
21993
|
}
|
|
21994
21994
|
} finally {
|
|
21995
21995
|
o(!1);
|
|
21996
21996
|
}
|
|
21997
21997
|
})();
|
|
21998
21998
|
}
|
|
21999
|
-
}, [e, n, h,
|
|
21999
|
+
}, [e, n, h, I, C]), !(I || l || d))
|
|
22000
22000
|
return b("div", { className: X("my-4 min-h-[200px]", t), ref: w });
|
|
22001
22001
|
if (u && !l && !d)
|
|
22002
22002
|
return b("div", { className: X("my-4 flex justify-center p-4", t), ref: w, children: b("div", { className: "flex items-center space-x-2 text-muted-foreground", children: [b("div", { className: "h-4 w-4 animate-spin rounded-full border-current border-b-2" }), b("span", { className: "text-sm", children: "Loading diagram..." })] }) });
|
|
22003
22003
|
if (a && !l && !d)
|
|
22004
|
-
return
|
|
22005
|
-
let
|
|
22006
|
-
return b("div", { className: X("size-full", t), "data-streamdown": "mermaid", ref: w, children: b(B6, { className: X(r ? "size-full overflow-hidden" : "my-4 overflow-hidden", t), fullscreen: r, maxZoom: 3, minZoom: 0.5, showControls: i, zoomStep: 0.1, children: b("div", { "aria-label": "Mermaid chart", className: X("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html:
|
|
22004
|
+
return y ? b("div", { ref: w, children: b(y, { chart: e, error: a, retry: () => m((A) => A + 1) }) }) : b("div", { className: X("rounded-lg border border-red-200 bg-red-50 p-4", t), ref: w, children: [b("p", { className: "font-mono text-red-700 text-sm", children: ["Mermaid Error: ", a] }), b("details", { className: "mt-2", children: [b("summary", { className: "cursor-pointer text-red-600 text-xs", children: "Show Code" }), b("pre", { className: "mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs", children: e })] })] });
|
|
22005
|
+
let D = l || d;
|
|
22006
|
+
return b("div", { className: X("size-full", t), "data-streamdown": "mermaid", ref: w, children: b(B6, { className: X(r ? "size-full overflow-hidden" : "my-4 overflow-hidden", t), fullscreen: r, maxZoom: 3, minZoom: 0.5, showControls: i, zoomStep: 0.1, children: b("div", { "aria-label": "Mermaid chart", className: X("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: D }, role: "img" }) }) });
|
|
22007
22007
|
};
|
|
22008
22008
|
function H6({
|
|
22009
22009
|
href: e,
|
|
@@ -22247,37 +22247,37 @@ function W6({
|
|
|
22247
22247
|
const h = De(() => {
|
|
22248
22248
|
d.current = document.activeElement, n();
|
|
22249
22249
|
}, [n]), m = De(() => {
|
|
22250
|
-
var
|
|
22251
|
-
r(), (
|
|
22250
|
+
var C;
|
|
22251
|
+
r(), (C = d.current) == null || C.focus();
|
|
22252
22252
|
}, [r]), T = De(() => {
|
|
22253
|
-
var
|
|
22254
|
-
(
|
|
22253
|
+
var C;
|
|
22254
|
+
(C = p.current) == null || C.focus();
|
|
22255
22255
|
}, []);
|
|
22256
22256
|
return we(() => {
|
|
22257
22257
|
if (!o)
|
|
22258
22258
|
return;
|
|
22259
|
-
const
|
|
22259
|
+
const C = () => {
|
|
22260
22260
|
var w;
|
|
22261
|
-
let
|
|
22262
|
-
for (; (w =
|
|
22263
|
-
|
|
22264
|
-
return
|
|
22265
|
-
},
|
|
22266
|
-
if (
|
|
22261
|
+
let I = document.activeElement;
|
|
22262
|
+
for (; (w = I == null ? void 0 : I.shadowRoot) != null && w.activeElement; )
|
|
22263
|
+
I = I.shadowRoot.activeElement;
|
|
22264
|
+
return I;
|
|
22265
|
+
}, y = (I) => {
|
|
22266
|
+
if (I.key !== "Tab")
|
|
22267
22267
|
return;
|
|
22268
22268
|
const w = f.current;
|
|
22269
22269
|
if (!w)
|
|
22270
22270
|
return;
|
|
22271
|
-
const
|
|
22272
|
-
if (
|
|
22271
|
+
const D = w.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])');
|
|
22272
|
+
if (D.length === 0)
|
|
22273
22273
|
return;
|
|
22274
|
-
const
|
|
22275
|
-
if (!
|
|
22274
|
+
const R = D[0], A = D[D.length - 1];
|
|
22275
|
+
if (!R || !A)
|
|
22276
22276
|
return;
|
|
22277
|
-
const
|
|
22278
|
-
|
|
22277
|
+
const H = C();
|
|
22278
|
+
I.shiftKey && H === R ? (I.preventDefault(), A.focus()) : !I.shiftKey && H === A && (I.preventDefault(), R.focus());
|
|
22279
22279
|
};
|
|
22280
|
-
return document.addEventListener("keydown",
|
|
22280
|
+
return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
|
|
22281
22281
|
}, [o]), b("div", {
|
|
22282
22282
|
ref: f,
|
|
22283
22283
|
class: "kin-widget",
|
|
@@ -26286,22 +26286,22 @@ function J6(e) {
|
|
|
26286
26286
|
}
|
|
26287
26287
|
const wt = (e, t, n) => `oklch(${e}% ${t} ${n})`;
|
|
26288
26288
|
function ex(e) {
|
|
26289
|
-
var m, T,
|
|
26289
|
+
var m, T, C, y, I, w, D, R;
|
|
26290
26290
|
const {
|
|
26291
26291
|
accentColor: t,
|
|
26292
26292
|
mode: n
|
|
26293
|
-
} = e, r = J6(t), i = X6[n], a = Z6[n], s = 30, u = r.c / 0.22, o = (
|
|
26294
|
-
const
|
|
26295
|
-
if (!
|
|
26293
|
+
} = e, r = J6(t), i = X6[n], a = Z6[n], s = 30, u = r.c / 0.22, o = (A) => {
|
|
26294
|
+
const H = i[A];
|
|
26295
|
+
if (!H)
|
|
26296
26296
|
return wt(60, 0.22, r.h);
|
|
26297
|
-
const [B,
|
|
26298
|
-
return
|
|
26299
|
-
}, l = (
|
|
26300
|
-
const
|
|
26301
|
-
if (!
|
|
26297
|
+
const [B, U] = H;
|
|
26298
|
+
return A === "9" ? wt(r.l, r.c, r.h) : wt(B, U * u, r.h);
|
|
26299
|
+
}, l = (A) => {
|
|
26300
|
+
const H = a[A];
|
|
26301
|
+
if (!H)
|
|
26302
26302
|
return wt(50, 5e-3, s);
|
|
26303
|
-
const [B,
|
|
26304
|
-
return wt(B,
|
|
26303
|
+
const [B, U] = H;
|
|
26304
|
+
return wt(B, U, s);
|
|
26305
26305
|
}, f = wt(r.l, r.c, r.h), d = wt(r.l * 0.9, r.c * 0.9, (r.h + 20) % 360), p = wt(r.l * 0.8, r.c * 0.8, (r.h + 40) % 360), h = n === "light" ? {
|
|
26306
26306
|
// Light mode backgrounds
|
|
26307
26307
|
"--kin-bg-base": l("1"),
|
|
@@ -26310,7 +26310,7 @@ function ex(e) {
|
|
|
26310
26310
|
"--kin-bg-muted": l("4"),
|
|
26311
26311
|
// Borders
|
|
26312
26312
|
"--kin-border": `oklch(${((m = a[6]) == null ? void 0 : m[0]) ?? 83}% ${((T = a[6]) == null ? void 0 : T[1]) ?? 4e-3} ${s} / 0.4)`,
|
|
26313
|
-
"--kin-border-subtle": `oklch(${((
|
|
26313
|
+
"--kin-border-subtle": `oklch(${((C = a[5]) == null ? void 0 : C[0]) ?? 88}% ${((y = a[5]) == null ? void 0 : y[1]) ?? 5e-3} ${s} / 0.25)`,
|
|
26314
26314
|
// Text
|
|
26315
26315
|
"--kin-text": l("12"),
|
|
26316
26316
|
"--kin-text-secondary": l("10"),
|
|
@@ -26334,8 +26334,8 @@ function ex(e) {
|
|
|
26334
26334
|
"--kin-bg-surface": l("3"),
|
|
26335
26335
|
"--kin-bg-muted": l("4"),
|
|
26336
26336
|
// Borders
|
|
26337
|
-
"--kin-border": `oklch(${((
|
|
26338
|
-
"--kin-border-subtle": `oklch(${((
|
|
26337
|
+
"--kin-border": `oklch(${((I = a[6]) == null ? void 0 : I[0]) ?? 83}% ${((w = a[6]) == null ? void 0 : w[1]) ?? 4e-3} ${s} / 0.4)`,
|
|
26338
|
+
"--kin-border-subtle": `oklch(${((D = a[5]) == null ? void 0 : D[0]) ?? 88}% ${((R = a[5]) == null ? void 0 : R[1]) ?? 5e-3} ${s} / 0.25)`,
|
|
26339
26339
|
// Text
|
|
26340
26340
|
"--kin-text": l("12"),
|
|
26341
26341
|
"--kin-text-secondary": l("11"),
|
|
@@ -26353,13 +26353,13 @@ function ex(e) {
|
|
|
26353
26353
|
"--kin-glow-2": d,
|
|
26354
26354
|
"--kin-glow-3": p
|
|
26355
26355
|
};
|
|
26356
|
-
return Object.entries(h).map(([
|
|
26356
|
+
return Object.entries(h).map(([A, H]) => `${A}: ${H};`).join(`
|
|
26357
26357
|
`);
|
|
26358
26358
|
}
|
|
26359
26359
|
const tx = {
|
|
26360
26360
|
accentColor: "#FF4D00",
|
|
26361
26361
|
mode: "light"
|
|
26362
|
-
},
|
|
26362
|
+
}, ox = {
|
|
26363
26363
|
/** Inploi - Tangerine orange, light mode */
|
|
26364
26364
|
inploi: {
|
|
26365
26365
|
accentColor: "#FF4D00",
|
|
@@ -26381,39 +26381,41 @@ const tx = {
|
|
|
26381
26381
|
mode: "light"
|
|
26382
26382
|
}
|
|
26383
26383
|
}, nx = `:host{--kin-bg-base: #0a0a0a;--kin-bg-elevated: #141414;--kin-bg-surface: #1a1a1a;--kin-bg-muted: #262626;--kin-border: rgba(255, 255, 255, .08);--kin-border-subtle: rgba(255, 255, 255, .05);--kin-text: #ffffff;--kin-text-secondary: #a1a1a1;--kin-text-muted: #8a8a8a;--kin-accent: #635bff;--kin-bubble-user: #f5f5f5;--kin-bubble-user-text: #171717;--kin-bubble-assistant: #1a1a1a;--kin-bubble-assistant-text: #ffffff;--kin-glow-1: #ff6b6b;--kin-glow-2: #c850c0;--kin-glow-3: #635bff;--kin-focus-ring: var(--kin-accent);--kin-focus-ring-offset: 2px;--kin-radius: 16px;--kin-radius-sm: 8px;--kin-panel-width: 450px;--kin-panel-height: min(640px, calc(100svh - 16px));--kin-launcher-width: 380px;--kin-launcher-width-expanded: 450px;--kin-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--kin-font-size: 14px;--kin-line-height: 1.5;--kin-transition: .2s ease;--kin-open-duration: .35s;--kin-open-easing: cubic-bezier(.32, .72, 0, 1)}.kin-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.kin-skip-link{position:absolute;top:-100%;left:50%;transform:translate(-50%);z-index:1000000;padding:8px 16px;background:var(--kin-bg-elevated);color:var(--kin-text);border-radius:var(--kin-radius-sm);text-decoration:none;font-weight:500}.kin-skip-link:focus{top:8px;outline:2px solid var(--kin-focus-ring);outline-offset:2px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.kin-widget{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:999999;font-family:var(--kin-font);font-size:var(--kin-font-size);line-height:var(--kin-line-height);display:flex;flex-direction:column;align-items:center;gap:16px}.kin-launcher{width:var(--kin-launcher-width);max-width:calc(100vw - 48px);transition:width var(--kin-open-duration) var(--kin-open-easing)}.kin-launcher:has(:focus-within){width:var(--kin-launcher-width-expanded)}.kin-launcher.is-open{width:var(--kin-panel-width)}.kin-launcher-form{position:relative}.kin-launcher-input-wrapper{position:relative;display:flex;align-items:center;background:var(--kin-bg-elevated);border-radius:24px;padding:4px 6px 4px 16px;gap:12px;box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:focus-within{box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:25px;padding:2px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.85;transition:opacity var(--kin-transition);pointer-events:none}.kin-launcher-input-wrapper:after{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:26px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;filter:blur(6px);opacity:.35;transition:opacity var(--kin-transition);pointer-events:none;z-index:-1}.kin-launcher-input-wrapper:focus-within:before{opacity:1}.kin-launcher-input-wrapper:focus-within:after{opacity:.5}@keyframes kin-gradient{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.kin-launcher-icon{width:20px;height:20px;color:var(--kin-text-muted);flex-shrink:0}.kin-launcher-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0}.kin-notification-badge{position:absolute;top:-4px;right:-4px;width:10px;height:10px;background:var(--kin-accent);border-radius:50%;border:2px solid var(--kin-bg-surface);animation:kin-pulse 2s ease-in-out infinite}@keyframes kin-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@media (prefers-reduced-motion: reduce){.kin-notification-badge{animation:none}}.kin-launcher-input{flex:1;background:transparent;border:none;outline:none;color:var(--kin-text);font-size:var(--kin-font-size);font-family:var(--kin-font);padding:12px 0;min-width:0}.kin-launcher-input::placeholder{color:var(--kin-text-muted)}.kin-launcher-send{width:36px;height:36px;border-radius:50%;border:none;background:var(--kin-bg-muted);color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0}.kin-launcher-send:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-send:not(:disabled){background:var(--kin-text);color:var(--kin-bg-base)}.kin-launcher-send:not(:disabled):hover{transform:scale(1.05)}.kin-launcher-send:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-send svg{width:18px;height:18px}.kin-launcher-attach{width:36px;height:36px;border-radius:50%;border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0;margin-right:-8px}.kin-launcher-attach:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-attach:not(:disabled):hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-launcher-attach:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-attach svg{width:18px;height:18px}.kin-launcher-attach.is-uploading svg{animation:kin-spin 1s linear infinite}@keyframes kin-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.kin-upload-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;animation:kin-error-in .2s ease}@keyframes kin-error-in{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.kin-char-limit-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;animation:kin-error-in .2s ease}.kin-panel{width:var(--kin-panel-width);max-width:calc(100vw - 32px);height:var(--kin-panel-height);max-height:calc(100svh - 120px);background:var(--kin-bg-base);border-radius:var(--kin-radius);border:1px solid var(--kin-border);box-shadow:0 8px 32px #00000080,0 0 0 1px var(--kin-border);display:flex;flex-direction:column;overflow:hidden;animation:kin-panel-in var(--kin-open-duration) var(--kin-open-easing);transform-origin:bottom center}@keyframes kin-panel-in{0%{opacity:0;transform:translateY(16px) scale(.96)}40%{opacity:1}to{opacity:1;transform:translateY(0) scale(1)}}.kin-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--kin-border);background:var(--kin-bg-elevated)}.kin-header-title{font-size:14px;font-weight:500;color:var(--kin-text);margin:0}.kin-header-actions{display:flex;align-items:center;gap:4px}.kin-icon-btn{width:32px;height:32px;border-radius:var(--kin-radius-sm);border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition)}.kin-icon-btn:hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset);background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn svg{width:18px;height:18px}.kin-clear-btn{font-size:14px;transition:all var(--kin-transition);color:var(--kin-accent)}.kin-clear-btn:hover{background:var(--kin-bg-muted);color:var(--kin-accent)}.kin-clear-confirm{background:var(--kin-accent);color:#fff}.kin-clear-confirm:hover{background:var(--kin-accent);opacity:.9;color:#fff}.kin-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.kin-messages-empty{justify-content:center;align-items:center}.kin-empty-state{text-align:center;padding:24px}.kin-empty-icon{width:48px;height:48px;margin:0 auto 16px;color:var(--kin-text-muted);opacity:.5}.kin-empty-icon svg{width:100%;height:100%}.kin-empty-text{color:var(--kin-text);font-size:15px;margin:0 0 8px}.kin-empty-subtext{color:var(--kin-text-muted);font-size:13px;margin:0}.kin-starter-prompts{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:8px;padding:0 0 12px;margin-left:0}.kin-starter-btn{display:inline-block;padding:10px 16px;background:var(--kin-bg-elevated);border:1px solid var(--kin-border);border-radius:20px;color:var(--kin-text);font-size:13px;font-family:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .1s ease;text-align:left;white-space:nowrap;opacity:0;animation:kin-starter-fade-in .3s ease-out forwards}.kin-starter-btn:nth-child(1){animation-delay:.05s}.kin-starter-btn:nth-child(2){animation-delay:.1s}.kin-starter-btn:nth-child(3){animation-delay:.15s}.kin-starter-btn:nth-child(4){animation-delay:.2s}.kin-starter-btn:nth-child(5){animation-delay:.25s}@keyframes kin-starter-fade-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.kin-starter-btn:hover{background:var(--kin-bg-surface);border-color:var(--kin-text-muted)}.kin-starter-btn:focus{outline:none;box-shadow:0 0 0 2px var(--kin-focus-ring)}.kin-starter-btn:active{transform:scale(.98)}@media (prefers-reduced-motion: reduce){.kin-starter-prompts,.kin-starter-btn{animation:none;opacity:1;transform:none}}.kin-divider{display:flex;align-items:center;gap:12px;color:var(--kin-glow-1);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:500}.kin-divider:before,.kin-divider:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--kin-glow-1),transparent);opacity:.3}.kin-system-message{display:flex;justify-content:center;padding:8px 16px}.kin-system-message span{font-size:12px;color:var(--kin-text-muted);background:var(--kin-bg-surface);padding:6px 12px;border-radius:12px;border:1px solid var(--kin-border)}.kin-message{display:flex;flex-direction:column;max-width:85%}.kin-message-user{align-self:flex-end}.kin-message-assistant{align-self:flex-start}.kin-bubble{padding:12px 16px;border-radius:var(--kin-radius)}.kin-message-user .kin-bubble{background:var(--kin-bubble-user);color:var(--kin-bubble-user-text);border-bottom-right-radius:4px}.kin-message-assistant .kin-bubble{background:var(--kin-bubble-assistant);color:var(--kin-bubble-assistant-text);border:1px solid var(--kin-border);border-bottom-left-radius:4px}.kin-bubble p{margin:0}.kin-message-footer{display:flex;align-items:center;gap:6px;margin-top:6px;padding-left:4px;font-size:11px;color:var(--kin-text-muted)}.kin-loading-dots{display:flex;gap:6px;padding:8px}.kin-loading-dots span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-loading-dots span:nth-child(2){animation-delay:.15s}.kin-loading-dots span:nth-child(3){animation-delay:.3s}.kin-typing-container{display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;width:fit-content}.kin-typing{display:inline-flex;align-items:center;gap:5px;padding:12px 16px;min-height:44px;box-sizing:border-box;background:var(--kin-bubble-assistant);border:1px solid var(--kin-border);border-radius:var(--kin-radius);border-bottom-left-radius:4px}.kin-typing span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-typing span:nth-child(2){animation-delay:.15s}.kin-typing span:nth-child(3){animation-delay:.3s}@keyframes kin-typing{0%,to{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.kin-markdown{line-height:1.65;font-size:14px;color:var(--kin-bubble-assistant-text)}.kin-markdown p{margin:0 0 1em}.kin-markdown p:last-child{margin-bottom:0}.kin-markdown strong,.kin-markdown b{font-weight:600}.kin-markdown em,.kin-markdown i{font-style:italic}.kin-markdown a{color:var(--kin-accent);text-decoration:underline;text-underline-offset:2px;transition:color var(--kin-transition)}.kin-markdown a:hover{text-decoration-thickness:2px}.kin-markdown a:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:2px;border-radius:2px}.kin-markdown code{background:rgba(255,255,255,.1);padding:.15em .4em;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.kin-markdown pre{background:rgba(0,0,0,.4);padding:14px 16px;border-radius:var(--kin-radius-sm);overflow-x:auto;margin:1em 0;border:1px solid var(--kin-border)}.kin-markdown pre code{background:none;padding:0;font-size:.85em;line-height:1.5}.kin-markdown ul{margin:.75em 0;padding-left:1.5em;list-style-type:disc}.kin-markdown ol{margin:.75em 0;padding-left:1.5em;list-style-type:decimal}.kin-markdown li{margin:.35em 0}.kin-markdown li::marker{color:var(--kin-text-muted)}.kin-markdown ul ul,.kin-markdown ol ol,.kin-markdown ul ol,.kin-markdown ol ul{margin:.25em 0}.kin-markdown blockquote{border-left:3px solid var(--kin-accent);margin:1em 0;padding:.5em 0 .5em 1em;color:var(--kin-text-secondary);font-style:italic}.kin-markdown h1,.kin-markdown h2,.kin-markdown h3,.kin-markdown h4{font-weight:600;margin:1.25em 0 .5em;line-height:1.3}.kin-markdown h1:first-child,.kin-markdown h2:first-child,.kin-markdown h3:first-child{margin-top:0}.kin-markdown h1{font-size:1.4em}.kin-markdown h2{font-size:1.25em}.kin-markdown h3{font-size:1.1em}.kin-markdown h4{font-size:1em}.kin-markdown table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9em}.kin-markdown th,.kin-markdown td{padding:.5em .75em;border:1px solid var(--kin-border);text-align:left}.kin-markdown th{background:var(--kin-bg-muted);font-weight:600}.kin-markdown hr{border:none;border-top:1px solid var(--kin-border);margin:1.5em 0}.kin-markdown input[type=checkbox]{margin-right:.5em;accent-color:var(--kin-accent)}.kin-markdown .streamdown-caret{display:inline-block;width:2px;height:1em;background:var(--kin-accent);margin-left:2px;animation:kin-caret 1s ease-in-out infinite;vertical-align:text-bottom}@keyframes kin-caret{0%,to{opacity:1}50%{opacity:0}}.kin-messages::-webkit-scrollbar{width:6px}.kin-messages::-webkit-scrollbar-track{background:transparent}.kin-messages::-webkit-scrollbar-thumb{background:var(--kin-bg-muted);border-radius:3px}.kin-messages::-webkit-scrollbar-thumb:hover{background:var(--kin-text-muted)}@media (forced-colors: active){.kin-launcher-input-wrapper,.kin-panel,.kin-bubble{border:2px solid CanvasText}.kin-launcher-send,.kin-icon-btn{border:1px solid ButtonText}.kin-launcher-input-wrapper:before{display:none}}@media (min-resolution: 1dppx){.kin-widget{font-size:max(14px,1rem)}.kin-panel{min-height:auto}.kin-messages{word-wrap:break-word;overflow-wrap:break-word}}
|
|
26384
|
-
`,
|
|
26385
|
-
serviceUrl: e,
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
|
|
26389
|
-
|
|
26390
|
-
container: a
|
|
26384
|
+
`, rx = "wss://agents.inploi.com", lx = ({
|
|
26385
|
+
serviceUrl: e = rx,
|
|
26386
|
+
theme: t = tx,
|
|
26387
|
+
starterPrompts: n = [],
|
|
26388
|
+
mode: r = "floating",
|
|
26389
|
+
container: i
|
|
26391
26390
|
}) => d0(({
|
|
26392
|
-
logger:
|
|
26391
|
+
logger: a,
|
|
26392
|
+
publishableKey: s
|
|
26393
26393
|
}) => {
|
|
26394
|
-
|
|
26395
|
-
|
|
26396
|
-
|
|
26397
|
-
|
|
26398
|
-
|
|
26399
|
-
|
|
26400
|
-
|
|
26394
|
+
if (!s)
|
|
26395
|
+
throw new Error("Kin plugin requires a publishableKey. Pass it to initialiseSdk().");
|
|
26396
|
+
let u = !1, o = null, l = t, f = null, d = !1, p = null, h = null, m = !1;
|
|
26397
|
+
const T = r === "embedded", C = () => {
|
|
26398
|
+
if (i)
|
|
26399
|
+
if (typeof i == "string") {
|
|
26400
|
+
const H = document.querySelector(i);
|
|
26401
|
+
if (H instanceof HTMLElement)
|
|
26402
|
+
return h = H, m = !1, H;
|
|
26401
26403
|
} else
|
|
26402
|
-
return
|
|
26403
|
-
const
|
|
26404
|
-
if (
|
|
26405
|
-
return
|
|
26406
|
-
const
|
|
26407
|
-
return
|
|
26408
|
-
},
|
|
26409
|
-
const
|
|
26410
|
-
let
|
|
26404
|
+
return h = i, m = !1, i;
|
|
26405
|
+
const R = document.getElementById("inploi-kin-root");
|
|
26406
|
+
if (R)
|
|
26407
|
+
return h = R, m = !1, R;
|
|
26408
|
+
const A = document.createElement("div");
|
|
26409
|
+
return A.id = "inploi-kin-root", T && (A.className = "kin-embedded"), document.body.appendChild(A), h = A, m = !0, A;
|
|
26410
|
+
}, y = (R) => {
|
|
26411
|
+
const A = ex(R);
|
|
26412
|
+
let H = `${nx}
|
|
26411
26413
|
|
|
26412
26414
|
/* Theme overrides */
|
|
26413
26415
|
:host {
|
|
26414
|
-
${
|
|
26416
|
+
${A}
|
|
26415
26417
|
}`;
|
|
26416
|
-
return
|
|
26418
|
+
return T && (H += `
|
|
26417
26419
|
/* Embedded mode overrides */
|
|
26418
26420
|
.kin-widget {
|
|
26419
26421
|
position: relative !important;
|
|
@@ -26439,57 +26441,57 @@ ${v}
|
|
|
26439
26441
|
transform: none !important;
|
|
26440
26442
|
animation: none !important;
|
|
26441
26443
|
}
|
|
26442
|
-
`),
|
|
26443
|
-
},
|
|
26444
|
+
`), H;
|
|
26445
|
+
}, I = () => {
|
|
26444
26446
|
if (typeof window > "u")
|
|
26445
26447
|
return;
|
|
26446
|
-
const
|
|
26448
|
+
const R = C(), A = R.shadowRoot || R.attachShadow({
|
|
26447
26449
|
mode: "open"
|
|
26448
26450
|
});
|
|
26449
26451
|
Ts(Ot($e, {}, [Ot("style", {
|
|
26450
26452
|
id: "kin-styles"
|
|
26451
|
-
},
|
|
26452
|
-
starterPrompts:
|
|
26453
|
-
embedded:
|
|
26454
|
-
onSendMessage: (
|
|
26455
|
-
o && o.sendMessage(
|
|
26453
|
+
}, y(l)), Ot(W6, {
|
|
26454
|
+
starterPrompts: n,
|
|
26455
|
+
embedded: T,
|
|
26456
|
+
onSendMessage: (H) => {
|
|
26457
|
+
o && o.sendMessage(H);
|
|
26456
26458
|
},
|
|
26457
26459
|
onOpen: () => {
|
|
26458
|
-
|
|
26460
|
+
w(), $.isOpen.value = !0, $.clearUnreadMessages();
|
|
26459
26461
|
},
|
|
26460
26462
|
onClose: () => {
|
|
26461
|
-
|
|
26463
|
+
T || ($.isOpen.value = !1);
|
|
26462
26464
|
},
|
|
26463
26465
|
onConnect: () => {
|
|
26464
|
-
|
|
26466
|
+
w();
|
|
26465
26467
|
},
|
|
26466
26468
|
onClearData: () => {
|
|
26467
26469
|
o && o.clearData();
|
|
26468
26470
|
},
|
|
26469
|
-
onUploadFile: async (
|
|
26471
|
+
onUploadFile: async (H, B) => {
|
|
26470
26472
|
if (!o) {
|
|
26471
|
-
$.setUploadState("error",
|
|
26473
|
+
$.setUploadState("error", H.name, "Not connected");
|
|
26472
26474
|
return;
|
|
26473
26475
|
}
|
|
26474
|
-
$.setUploadState("uploading",
|
|
26475
|
-
const U = await o.uploadFile(
|
|
26476
|
-
U.success || $.setUploadState("error",
|
|
26476
|
+
$.setUploadState("uploading", H.name);
|
|
26477
|
+
const U = await o.uploadFile(H, B);
|
|
26478
|
+
U.success || $.setUploadState("error", H.name, U.error);
|
|
26477
26479
|
}
|
|
26478
|
-
})]),
|
|
26479
|
-
},
|
|
26480
|
+
})]), A);
|
|
26481
|
+
}, w = () => {
|
|
26480
26482
|
if (o)
|
|
26481
26483
|
return;
|
|
26482
26484
|
$.connectionState.value = "connecting", f || (f = ps());
|
|
26483
|
-
const
|
|
26485
|
+
const R = `${e}/agent/candidate/${f}?key=${s}`;
|
|
26484
26486
|
o = z0({
|
|
26485
|
-
url:
|
|
26486
|
-
onMessage: (
|
|
26487
|
-
switch (
|
|
26487
|
+
url: R,
|
|
26488
|
+
onMessage: (A) => {
|
|
26489
|
+
switch (A.type) {
|
|
26488
26490
|
case "authenticated":
|
|
26489
|
-
|
|
26491
|
+
a.info(`Authenticated with ${A.company}`), $.connectionState.value = "connected";
|
|
26490
26492
|
break;
|
|
26491
26493
|
case "history":
|
|
26492
|
-
|
|
26494
|
+
A.messages && A.messages.length > 0 && (a.info(`Loaded ${A.messages.length} messages from server`), $.setMessages(A.messages));
|
|
26493
26495
|
break;
|
|
26494
26496
|
case "response_start":
|
|
26495
26497
|
$.isStreaming.value = !0, $.addMessage({
|
|
@@ -26498,96 +26500,92 @@ ${v}
|
|
|
26498
26500
|
});
|
|
26499
26501
|
break;
|
|
26500
26502
|
case "response_chunk":
|
|
26501
|
-
$.appendToLastMessage(
|
|
26503
|
+
$.appendToLastMessage(A.content || "");
|
|
26502
26504
|
break;
|
|
26503
26505
|
case "response_end":
|
|
26504
26506
|
$.isStreaming.value = !1, $.syncToOtherTabs(), $.isOpen.value || $.setHasUnreadMessages(!0);
|
|
26505
26507
|
break;
|
|
26506
26508
|
case "data_cleared":
|
|
26507
|
-
|
|
26509
|
+
a.info("User data cleared"), $.clearMessages(), $.addMessage({
|
|
26508
26510
|
role: "system",
|
|
26509
26511
|
content: "Your conversation data has been cleared."
|
|
26510
26512
|
});
|
|
26511
26513
|
break;
|
|
26512
26514
|
case "guardrail_block":
|
|
26513
|
-
$.isStreaming.value = !1,
|
|
26515
|
+
$.isStreaming.value = !1, a.warn("Content blocked by safety policy"), $.addMessage({
|
|
26514
26516
|
role: "system",
|
|
26515
|
-
content:
|
|
26517
|
+
content: A.content || "I'm not able to help with that request."
|
|
26516
26518
|
}), $.syncToOtherTabs();
|
|
26517
26519
|
break;
|
|
26518
26520
|
case "upload_received":
|
|
26519
|
-
|
|
26521
|
+
a.info(`File upload received: ${A.fileName}`), $.setUploadState("processing", A.fileName);
|
|
26520
26522
|
break;
|
|
26521
26523
|
case "file_processing":
|
|
26522
|
-
|
|
26524
|
+
a.info(`Processing file: ${A.fileName}`), $.setUploadState("processing", A.fileName);
|
|
26523
26525
|
break;
|
|
26524
26526
|
case "file_processed":
|
|
26525
|
-
|
|
26527
|
+
A.status === "success" ? (a.info(`File processed successfully: ${A.fileName}`), $.setUploadState("success", A.fileName), setTimeout(() => $.resetUploadState(), 2e3)) : (a.error(`File processing failed: ${A.error}`), $.setUploadState("error", A.fileName, A.error));
|
|
26526
26528
|
break;
|
|
26527
26529
|
case "error":
|
|
26528
|
-
$.isStreaming.value = !1, $.uploadState.value !== "idle" && $.setUploadState("error", void 0,
|
|
26530
|
+
$.isStreaming.value = !1, $.uploadState.value !== "idle" && $.setUploadState("error", void 0, A.content), a.error("Kin error:", A.content), $.addMessage({
|
|
26529
26531
|
role: "assistant",
|
|
26530
|
-
content:
|
|
26532
|
+
content: A.content || "An error occurred"
|
|
26531
26533
|
});
|
|
26532
26534
|
break;
|
|
26533
26535
|
}
|
|
26534
26536
|
},
|
|
26535
26537
|
onOpen: () => {
|
|
26536
|
-
|
|
26538
|
+
a.info("WebSocket opened, awaiting authentication...");
|
|
26537
26539
|
},
|
|
26538
26540
|
onClose: () => {
|
|
26539
|
-
|
|
26540
|
-
const
|
|
26541
|
-
o = null, d = !1, !
|
|
26542
|
-
p = null,
|
|
26541
|
+
a.info("Disconnected from Kin service"), $.connectionState.value = "disconnected", $.isStreaming.value = !1;
|
|
26542
|
+
const A = d;
|
|
26543
|
+
o = null, d = !1, !A && $.isOpen.value && (a.info("Attempting to reconnect..."), p = setTimeout(() => {
|
|
26544
|
+
p = null, w();
|
|
26543
26545
|
}, 1e3));
|
|
26544
26546
|
},
|
|
26545
|
-
onError: (
|
|
26546
|
-
|
|
26547
|
+
onError: (A) => {
|
|
26548
|
+
a.error("Kin connection error:", A), $.connectionState.value = "error", $.isStreaming.value = !1;
|
|
26547
26549
|
}
|
|
26548
26550
|
});
|
|
26549
|
-
},
|
|
26551
|
+
}, D = () => {
|
|
26550
26552
|
p && (clearTimeout(p), p = null), o && (d = !0, o.disconnect(), o = null);
|
|
26551
26553
|
};
|
|
26552
26554
|
return {
|
|
26553
26555
|
prepare: () => {
|
|
26554
|
-
typeof window > "u" || u || (f = ps(),
|
|
26556
|
+
typeof window > "u" || u || (f = ps(), I(), u = !0, w(), a.info("Kin plugin prepared"));
|
|
26555
26557
|
},
|
|
26556
26558
|
open: () => {
|
|
26557
|
-
typeof window > "u" || (u || (
|
|
26559
|
+
typeof window > "u" || (u || (I(), u = !0), w(), $.isOpen.value = !0, $.clearUnreadMessages(), a.info("Kin opened"));
|
|
26558
26560
|
},
|
|
26559
26561
|
close: () => {
|
|
26560
|
-
typeof window > "u" || ($.isOpen.value = !1,
|
|
26562
|
+
typeof window > "u" || ($.isOpen.value = !1, a.info("Kin closed"));
|
|
26561
26563
|
},
|
|
26562
26564
|
toggle: () => {
|
|
26563
|
-
typeof window > "u" || ($.isOpen.value ? $.isOpen.value = !1 : (u || (
|
|
26565
|
+
typeof window > "u" || ($.isOpen.value ? $.isOpen.value = !1 : (u || (I(), u = !0), w(), $.isOpen.value = !0, $.clearUnreadMessages()));
|
|
26564
26566
|
},
|
|
26565
|
-
setTheme: (
|
|
26566
|
-
var
|
|
26567
|
-
if (l =
|
|
26568
|
-
const
|
|
26569
|
-
|
|
26567
|
+
setTheme: (R) => {
|
|
26568
|
+
var A;
|
|
26569
|
+
if (l = R, u && h) {
|
|
26570
|
+
const H = (A = h.shadowRoot) == null ? void 0 : A.getElementById("kin-styles");
|
|
26571
|
+
H && (H.textContent = y(l));
|
|
26570
26572
|
}
|
|
26571
|
-
|
|
26573
|
+
a.info("Kin theme updated:", R);
|
|
26572
26574
|
},
|
|
26573
26575
|
destroy: () => {
|
|
26574
|
-
|
|
26575
|
-
return;
|
|
26576
|
-
N();
|
|
26577
|
-
const w = document.getElementById("inploi-kin-root");
|
|
26578
|
-
w && (w.shadowRoot && Ts(null, w.shadowRoot), w.remove()), $.isOpen.value = !1, $.isStreaming.value = !1, $.connectionState.value = "idle", $.clearMessages(), $.resetUploadState(), $.clearUnreadMessages(), u = !1, s.info("Kin plugin destroyed");
|
|
26576
|
+
typeof window > "u" || (D(), h && (h.shadowRoot && Ts(null, h.shadowRoot), m && h.remove()), $.isOpen.value = !1, $.isStreaming.value = !1, $.connectionState.value = "idle", $.clearMessages(), $.resetUploadState(), $.clearUnreadMessages(), u = !1, h = null, m = !1, a.info("Kin plugin destroyed"));
|
|
26579
26577
|
}
|
|
26580
26578
|
};
|
|
26581
26579
|
});
|
|
26582
26580
|
export {
|
|
26583
|
-
|
|
26581
|
+
ox as B,
|
|
26584
26582
|
Oe as F,
|
|
26585
26583
|
it as N,
|
|
26586
26584
|
Xk as a,
|
|
26587
26585
|
X as b,
|
|
26588
|
-
|
|
26586
|
+
ux as c,
|
|
26589
26587
|
ce as h,
|
|
26590
|
-
|
|
26588
|
+
lx as k,
|
|
26591
26589
|
b as o,
|
|
26592
26590
|
we as p,
|
|
26593
26591
|
at as q,
|