@fencyai/react 0.1.90 → 0.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +672 -664
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createChatCompletion as ga, listMemories as Kg, listMemoryTypes as Xg, createStream as Zg } from "@fencyai/js";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import
|
|
3
|
+
import Ve, { createContext as Qg, useContext as Jg, useState as ee, useCallback as le, useMemo as rn, useEffect as ke, useRef as Be, useLayoutEffect as fa } from "react";
|
|
4
4
|
import { z as ef } from "zod";
|
|
5
5
|
import { jsxs as Fe, jsx as P, Fragment as jr } from "react/jsx-runtime";
|
|
6
6
|
import './assets/index.css';const vd = Qg(
|
|
@@ -247,7 +247,7 @@ function _d(e, t) {
|
|
|
247
247
|
), [a, i] = ee(
|
|
248
248
|
null
|
|
249
249
|
), o = wt(), s = async (c) => {
|
|
250
|
-
const d = await c.fetchClientSecret(), { fetchClientSecret: g, nextPageToken: f, previousPageToken: m, ...y } = c,
|
|
250
|
+
const d = await c.fetchClientSecret(), { fetchClientSecret: g, nextPageToken: f, previousPageToken: m, ...y } = c, h = await e({
|
|
251
251
|
pk: o.fency.publishableKey,
|
|
252
252
|
clientSecret: d.clientSecret,
|
|
253
253
|
request: {
|
|
@@ -260,17 +260,17 @@ function _d(e, t) {
|
|
|
260
260
|
},
|
|
261
261
|
baseUrl: o.fency.baseUrl
|
|
262
262
|
});
|
|
263
|
-
return
|
|
263
|
+
return h.type === "success" && h.items && h.pagination ? {
|
|
264
264
|
type: "success",
|
|
265
265
|
page: {
|
|
266
|
-
items:
|
|
267
|
-
hasNextPage:
|
|
268
|
-
hasPreviousPage:
|
|
269
|
-
pagination:
|
|
266
|
+
items: h.items,
|
|
267
|
+
hasNextPage: h.pagination.nextPageToken != null,
|
|
268
|
+
hasPreviousPage: h.pagination.previousPageToken != null,
|
|
269
|
+
pagination: h.pagination
|
|
270
270
|
}
|
|
271
271
|
} : {
|
|
272
272
|
type: "error",
|
|
273
|
-
error:
|
|
273
|
+
error: h.error ?? {
|
|
274
274
|
code: "UNKNOWN_ERROR",
|
|
275
275
|
message: "An unknown error occurred"
|
|
276
276
|
}
|
|
@@ -677,7 +677,7 @@ const df = (e) => {
|
|
|
677
677
|
};
|
|
678
678
|
return r((y) => [
|
|
679
679
|
...y.filter(
|
|
680
|
-
(
|
|
680
|
+
(h) => h.streamId !== d.stream.id
|
|
681
681
|
),
|
|
682
682
|
{
|
|
683
683
|
triggeredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -2077,12 +2077,12 @@ function Yf(e, t) {
|
|
|
2077
2077
|
var f = i(), m = u($f);
|
|
2078
2078
|
if (m) {
|
|
2079
2079
|
if (c(), !u(zf)) return s("property missing ':'");
|
|
2080
|
-
var y = u(Gf),
|
|
2080
|
+
var y = u(Gf), h = f({
|
|
2081
2081
|
type: qf,
|
|
2082
2082
|
property: rc(m[0].replace(ec, yt)),
|
|
2083
2083
|
value: y ? rc(y[0].replace(ec, yt)) : yt
|
|
2084
2084
|
});
|
|
2085
|
-
return u(Hf),
|
|
2085
|
+
return u(Hf), h;
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
2088
|
function g() {
|
|
@@ -2660,7 +2660,7 @@ function jd(e, t) {
|
|
|
2660
2660
|
n > 1114111 ? "�" : String.fromCodePoint(n)
|
|
2661
2661
|
);
|
|
2662
2662
|
}
|
|
2663
|
-
function
|
|
2663
|
+
function $e(e) {
|
|
2664
2664
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2665
2665
|
}
|
|
2666
2666
|
const we = gt(/[A-Za-z]/), he = gt(/[\dA-Za-z]/), Pm = gt(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -2776,7 +2776,7 @@ function Hm(e) {
|
|
|
2776
2776
|
T = t.events[_][1].end;
|
|
2777
2777
|
break;
|
|
2778
2778
|
}
|
|
2779
|
-
|
|
2779
|
+
h(r);
|
|
2780
2780
|
let I = v;
|
|
2781
2781
|
for (; I < t.events.length; )
|
|
2782
2782
|
t.events[I][1].end = {
|
|
@@ -2797,7 +2797,7 @@ function Hm(e) {
|
|
|
2797
2797
|
return t.containerState = {}, e.check(cc, p, c)(A);
|
|
2798
2798
|
}
|
|
2799
2799
|
function p(A) {
|
|
2800
|
-
return a && S(),
|
|
2800
|
+
return a && S(), h(r), d(A);
|
|
2801
2801
|
}
|
|
2802
2802
|
function c(A) {
|
|
2803
2803
|
return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, f(A);
|
|
@@ -2810,7 +2810,7 @@ function Hm(e) {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
function f(A) {
|
|
2812
2812
|
if (A === null) {
|
|
2813
|
-
a && S(),
|
|
2813
|
+
a && S(), h(0), e.consume(A);
|
|
2814
2814
|
return;
|
|
2815
2815
|
}
|
|
2816
2816
|
return a = a || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -2821,7 +2821,7 @@ function Hm(e) {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
function m(A) {
|
|
2823
2823
|
if (A === null) {
|
|
2824
|
-
y(e.exit("chunkFlow"), !0),
|
|
2824
|
+
y(e.exit("chunkFlow"), !0), h(0), e.consume(A);
|
|
2825
2825
|
return;
|
|
2826
2826
|
}
|
|
2827
2827
|
return H(A) ? (e.consume(A), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(A), m);
|
|
@@ -2848,14 +2848,14 @@ function Hm(e) {
|
|
|
2848
2848
|
}
|
|
2849
2849
|
M = !0;
|
|
2850
2850
|
}
|
|
2851
|
-
for (
|
|
2851
|
+
for (h(r), T = I; T < t.events.length; )
|
|
2852
2852
|
t.events[T][1].end = {
|
|
2853
2853
|
...k
|
|
2854
2854
|
}, T++;
|
|
2855
2855
|
Oe(t.events, O + 1, 0, t.events.slice(I)), t.events.length = T;
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function h(A) {
|
|
2859
2859
|
let v = n.length;
|
|
2860
2860
|
for (; v-- > A; ) {
|
|
2861
2861
|
const _ = n[v];
|
|
@@ -3134,9 +3134,9 @@ function tb(e, t, n) {
|
|
|
3134
3134
|
return e.attempt(a, v, y)(T);
|
|
3135
3135
|
}
|
|
3136
3136
|
function y(T) {
|
|
3137
|
-
return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"),
|
|
3137
|
+
return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), h;
|
|
3138
3138
|
}
|
|
3139
|
-
function
|
|
3139
|
+
function h(T) {
|
|
3140
3140
|
return i > 0 && Y(T) ? J(e, S, "linePrefix", i + 1)(T) : S(T);
|
|
3141
3141
|
}
|
|
3142
3142
|
function S(T) {
|
|
@@ -3471,8 +3471,8 @@ function db(e, t) {
|
|
|
3471
3471
|
// Find a void token that includes a break.
|
|
3472
3472
|
s[d][0] === "exit" && s[d - 1][0] === "enter" && s[d][1].type === s[d - 1][1].type && s[d][1].start.line !== s[d][1].end.line && (m = d + 1, y.push(m), g._tokenizer = void 0, g.previous = void 0, g = g.next);
|
|
3473
3473
|
for (o.events = [], g ? (g._tokenizer = void 0, g.previous = void 0) : y.pop(), d = y.length; d--; ) {
|
|
3474
|
-
const
|
|
3475
|
-
u.push([S, S +
|
|
3474
|
+
const h = s.slice(y[d], y[d + 1]), S = i.pop();
|
|
3475
|
+
u.push([S, S + h.length - 1]), e.splice(S, 2, h);
|
|
3476
3476
|
}
|
|
3477
3477
|
for (u.reverse(), d = -1; ++d < u.length; )
|
|
3478
3478
|
l[f + u[d][0]] = f + u[d][1], f += u[d][1] - u[d][0] - 1;
|
|
@@ -3526,27 +3526,27 @@ function Kd(e, t, n, r, a, i, o, s, u) {
|
|
|
3526
3526
|
const l = u || Number.POSITIVE_INFINITY;
|
|
3527
3527
|
let p = 0;
|
|
3528
3528
|
return c;
|
|
3529
|
-
function c(
|
|
3530
|
-
return
|
|
3529
|
+
function c(h) {
|
|
3530
|
+
return h === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(h), e.exit(i), d) : h === null || h === 32 || h === 41 || Hn(h) ? n(h) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", {
|
|
3531
3531
|
contentType: "string"
|
|
3532
|
-
}), m(
|
|
3532
|
+
}), m(h));
|
|
3533
3533
|
}
|
|
3534
|
-
function d(
|
|
3535
|
-
return
|
|
3534
|
+
function d(h) {
|
|
3535
|
+
return h === 62 ? (e.enter(i), e.consume(h), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
|
|
3536
3536
|
contentType: "string"
|
|
3537
|
-
}), g(
|
|
3537
|
+
}), g(h));
|
|
3538
3538
|
}
|
|
3539
|
-
function g(
|
|
3540
|
-
return
|
|
3539
|
+
function g(h) {
|
|
3540
|
+
return h === 62 ? (e.exit("chunkString"), e.exit(s), d(h)) : h === null || h === 60 || H(h) ? n(h) : (e.consume(h), h === 92 ? f : g);
|
|
3541
3541
|
}
|
|
3542
|
-
function f(
|
|
3543
|
-
return
|
|
3542
|
+
function f(h) {
|
|
3543
|
+
return h === 60 || h === 62 || h === 92 ? (e.consume(h), g) : g(h);
|
|
3544
3544
|
}
|
|
3545
|
-
function m(
|
|
3546
|
-
return !p && (
|
|
3545
|
+
function m(h) {
|
|
3546
|
+
return !p && (h === null || h === 41 || re(h)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(h)) : p < l && h === 40 ? (e.consume(h), p++, m) : h === 41 ? (e.consume(h), p--, m) : h === null || h === 32 || h === 40 || Hn(h) ? n(h) : (e.consume(h), h === 92 ? y : m);
|
|
3547
3547
|
}
|
|
3548
|
-
function y(
|
|
3549
|
-
return
|
|
3548
|
+
function y(h) {
|
|
3549
|
+
return h === 40 || h === 41 || h === 92 ? (e.consume(h), m) : m(h);
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
3552
|
function Xd(e, t, n, r, a, i) {
|
|
@@ -3628,7 +3628,7 @@ function Eb(e, t, n) {
|
|
|
3628
3628
|
)(g);
|
|
3629
3629
|
}
|
|
3630
3630
|
function s(g) {
|
|
3631
|
-
return a =
|
|
3631
|
+
return a = $e(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), u) : n(g);
|
|
3632
3632
|
}
|
|
3633
3633
|
function u(g) {
|
|
3634
3634
|
return re(g) ? en(e, l)(g) : l(g);
|
|
@@ -3834,11 +3834,11 @@ function xb(e, t, n) {
|
|
|
3834
3834
|
function y(w) {
|
|
3835
3835
|
if (w === null || w === 47 || w === 62 || re(w)) {
|
|
3836
3836
|
const ue = w === 47, ce = o.toLowerCase();
|
|
3837
|
-
return !ue && !i && fc.includes(ce) ? (a = 1, r.interrupt ? t(w) : x(w)) : _b.includes(o.toLowerCase()) ? (a = 6, ue ? (e.consume(w),
|
|
3837
|
+
return !ue && !i && fc.includes(ce) ? (a = 1, r.interrupt ? t(w) : x(w)) : _b.includes(o.toLowerCase()) ? (a = 6, ue ? (e.consume(w), h) : r.interrupt ? t(w) : x(w)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : i ? S(w) : A(w));
|
|
3838
3838
|
}
|
|
3839
3839
|
return w === 45 || he(w) ? (e.consume(w), o += String.fromCharCode(w), y) : n(w);
|
|
3840
3840
|
}
|
|
3841
|
-
function
|
|
3841
|
+
function h(w) {
|
|
3842
3842
|
return w === 62 ? (e.consume(w), r.interrupt ? t : x) : n(w);
|
|
3843
3843
|
}
|
|
3844
3844
|
function S(w) {
|
|
@@ -3962,10 +3962,10 @@ function Mb(e, t, n) {
|
|
|
3962
3962
|
return E === null ? n(E) : E === 93 ? (e.consume(E), y) : H(E) ? (o = m, z(E)) : (e.consume(E), m);
|
|
3963
3963
|
}
|
|
3964
3964
|
function y(E) {
|
|
3965
|
-
return E === 93 ? (e.consume(E),
|
|
3965
|
+
return E === 93 ? (e.consume(E), h) : m(E);
|
|
3966
3966
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return E === 62 ? G(E) : E === 93 ? (e.consume(E),
|
|
3967
|
+
function h(E) {
|
|
3968
|
+
return E === 62 ? G(E) : E === 93 ? (e.consume(E), h) : m(E);
|
|
3969
3969
|
}
|
|
3970
3970
|
function S(E) {
|
|
3971
3971
|
return E === null || E === 62 ? G(E) : H(E) ? (o = S, z(E)) : (e.consume(E), S);
|
|
@@ -4096,7 +4096,7 @@ function zb(e, t, n) {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
return s;
|
|
4098
4098
|
function s(d) {
|
|
4099
|
-
return i ? i._inactive ? c(d) : (o = r.parser.defined.includes(
|
|
4099
|
+
return i ? i._inactive ? c(d) : (o = r.parser.defined.includes($e(r.sliceSerialize({
|
|
4100
4100
|
start: i.end,
|
|
4101
4101
|
end: r.now()
|
|
4102
4102
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(d);
|
|
@@ -4148,7 +4148,7 @@ function Hb(e, t, n) {
|
|
|
4148
4148
|
return Xd.call(r, e, i, o, "reference", "referenceMarker", "referenceString")(s);
|
|
4149
4149
|
}
|
|
4150
4150
|
function i(s) {
|
|
4151
|
-
return r.parser.defined.includes(
|
|
4151
|
+
return r.parser.defined.includes($e(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(s) : n(s);
|
|
4152
4152
|
}
|
|
4153
4153
|
function o(s) {
|
|
4154
4154
|
return n(s);
|
|
@@ -4609,12 +4609,12 @@ function Ah(e, t, n) {
|
|
|
4609
4609
|
const x = o[r._index];
|
|
4610
4610
|
if (typeof x == "string")
|
|
4611
4611
|
for (C = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === C && r._bufferIndex < x.length; )
|
|
4612
|
-
|
|
4612
|
+
h(x.charCodeAt(r._bufferIndex));
|
|
4613
4613
|
else
|
|
4614
|
-
|
|
4614
|
+
h(x);
|
|
4615
4615
|
}
|
|
4616
4616
|
}
|
|
4617
|
-
function
|
|
4617
|
+
function h(C) {
|
|
4618
4618
|
p = p(C);
|
|
4619
4619
|
}
|
|
4620
4620
|
function S(C) {
|
|
@@ -4654,11 +4654,11 @@ function Ah(e, t, n) {
|
|
|
4654
4654
|
function K(ie) {
|
|
4655
4655
|
return _e;
|
|
4656
4656
|
function _e(de) {
|
|
4657
|
-
const Ae = de !== null && ie[de],
|
|
4657
|
+
const Ae = de !== null && ie[de], j = de !== null && ie.null, Z = [
|
|
4658
4658
|
// To do: add more extension tests.
|
|
4659
4659
|
/* c8 ignore next 2 */
|
|
4660
4660
|
...Array.isArray(Ae) ? Ae : Ae ? [Ae] : [],
|
|
4661
|
-
...Array.isArray(
|
|
4661
|
+
...Array.isArray(j) ? j : j ? [j] : []
|
|
4662
4662
|
];
|
|
4663
4663
|
return te(Z)(de);
|
|
4664
4664
|
}
|
|
@@ -4848,7 +4848,7 @@ function Oh(e) {
|
|
|
4848
4848
|
autolinkProtocol: M,
|
|
4849
4849
|
autolinkEmail: M,
|
|
4850
4850
|
atxHeading: i(Je),
|
|
4851
|
-
blockQuote: i(
|
|
4851
|
+
blockQuote: i(j),
|
|
4852
4852
|
characterEscape: M,
|
|
4853
4853
|
characterReference: M,
|
|
4854
4854
|
codeFenced: i(Z),
|
|
@@ -4866,9 +4866,9 @@ function Oh(e) {
|
|
|
4866
4866
|
emphasis: i(Ie),
|
|
4867
4867
|
hardBreakEscape: i(Pe),
|
|
4868
4868
|
hardBreakTrailing: i(Pe),
|
|
4869
|
-
htmlFlow: i(
|
|
4869
|
+
htmlFlow: i(He, o),
|
|
4870
4870
|
htmlFlowData: M,
|
|
4871
|
-
htmlText: i(
|
|
4871
|
+
htmlText: i(He, o),
|
|
4872
4872
|
htmlTextData: M,
|
|
4873
4873
|
image: i(kt),
|
|
4874
4874
|
label: o,
|
|
@@ -4903,7 +4903,7 @@ function Oh(e) {
|
|
|
4903
4903
|
codeFencedFenceInfo: g,
|
|
4904
4904
|
codeFencedFenceMeta: f,
|
|
4905
4905
|
codeFlowValue: k,
|
|
4906
|
-
codeIndented: u(
|
|
4906
|
+
codeIndented: u(h),
|
|
4907
4907
|
codeText: u(B),
|
|
4908
4908
|
codeTextData: k,
|
|
4909
4909
|
data: k,
|
|
@@ -4946,7 +4946,7 @@ function Oh(e) {
|
|
|
4946
4946
|
type: "root",
|
|
4947
4947
|
children: []
|
|
4948
4948
|
};
|
|
4949
|
-
const
|
|
4949
|
+
const V = {
|
|
4950
4950
|
stack: [F],
|
|
4951
4951
|
tokenStack: [],
|
|
4952
4952
|
config: t,
|
|
@@ -4969,11 +4969,11 @@ function Oh(e) {
|
|
|
4969
4969
|
const Ue = t[N[ne][0]];
|
|
4970
4970
|
ep.call(Ue, N[ne][1].type) && Ue[N[ne][1].type].call(Object.assign({
|
|
4971
4971
|
sliceSerialize: N[ne][2].sliceSerialize
|
|
4972
|
-
},
|
|
4972
|
+
}, V), N[ne][1]);
|
|
4973
4973
|
}
|
|
4974
|
-
if (
|
|
4975
|
-
const Ue =
|
|
4976
|
-
(Ue[1] || hc).call(
|
|
4974
|
+
if (V.tokenStack.length > 0) {
|
|
4975
|
+
const Ue = V.tokenStack[V.tokenStack.length - 1];
|
|
4976
|
+
(Ue[1] || hc).call(V, void 0, Ue[0]);
|
|
4977
4977
|
}
|
|
4978
4978
|
for (F.position = {
|
|
4979
4979
|
start: ot(N.length > 0 ? N[0][1].start : {
|
|
@@ -4990,9 +4990,9 @@ function Oh(e) {
|
|
|
4990
4990
|
F = t.transforms[ne](F) || F;
|
|
4991
4991
|
return F;
|
|
4992
4992
|
}
|
|
4993
|
-
function a(N, F,
|
|
4993
|
+
function a(N, F, V) {
|
|
4994
4994
|
let Q = F - 1, ne = -1, Ue = !1, bt, et, Kt, Xt;
|
|
4995
|
-
for (; ++Q <=
|
|
4995
|
+
for (; ++Q <= V; ) {
|
|
4996
4996
|
const Ne = N[Q];
|
|
4997
4997
|
switch (Ne[1].type) {
|
|
4998
4998
|
case "listUnordered":
|
|
@@ -5024,7 +5024,7 @@ function Oh(e) {
|
|
|
5024
5024
|
et && (N[et][1].type = "lineEndingBlank", Ue = !0), tt[1].type = "lineEnding", et = vt;
|
|
5025
5025
|
} else if (!(tt[1].type === "linePrefix" || tt[1].type === "blockQuotePrefix" || tt[1].type === "blockQuotePrefixWhitespace" || tt[1].type === "blockQuoteMarker" || tt[1].type === "listItemIndent")) break;
|
|
5026
5026
|
}
|
|
5027
|
-
Kt && (!et || Kt < et) && (bt._spread = !0), bt.end = Object.assign({}, et ? N[et][1].start : Ne[1].end), N.splice(et || Q, 0, ["exit", bt, Ne[2]]), Q++,
|
|
5027
|
+
Kt && (!et || Kt < et) && (bt._spread = !0), bt.end = Object.assign({}, et ? N[et][1].start : Ne[1].end), N.splice(et || Q, 0, ["exit", bt, Ne[2]]), Q++, V++;
|
|
5028
5028
|
}
|
|
5029
5029
|
if (Ne[1].type === "listItemPrefix") {
|
|
5030
5030
|
const vt = {
|
|
@@ -5034,15 +5034,15 @@ function Oh(e) {
|
|
|
5034
5034
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
5035
5035
|
end: void 0
|
|
5036
5036
|
};
|
|
5037
|
-
bt = vt, N.splice(Q, 0, ["enter", vt, Ne[2]]), Q++,
|
|
5037
|
+
bt = vt, N.splice(Q, 0, ["enter", vt, Ne[2]]), Q++, V++, Kt = void 0, Xt = !0;
|
|
5038
5038
|
}
|
|
5039
5039
|
}
|
|
5040
5040
|
}
|
|
5041
|
-
return N[F][1]._spread = Ue,
|
|
5041
|
+
return N[F][1]._spread = Ue, V;
|
|
5042
5042
|
}
|
|
5043
5043
|
function i(N, F) {
|
|
5044
|
-
return
|
|
5045
|
-
function
|
|
5044
|
+
return V;
|
|
5045
|
+
function V(Q) {
|
|
5046
5046
|
s.call(this, N(Q), Q), F && F.call(this, Q);
|
|
5047
5047
|
}
|
|
5048
5048
|
}
|
|
@@ -5052,8 +5052,8 @@ function Oh(e) {
|
|
|
5052
5052
|
children: []
|
|
5053
5053
|
});
|
|
5054
5054
|
}
|
|
5055
|
-
function s(N, F,
|
|
5056
|
-
this.stack[this.stack.length - 1].children.push(N), this.stack.push(N), this.tokenStack.push([F,
|
|
5055
|
+
function s(N, F, V) {
|
|
5056
|
+
this.stack[this.stack.length - 1].children.push(N), this.stack.push(N), this.tokenStack.push([F, V || void 0]), N.position = {
|
|
5057
5057
|
start: ot(F.start),
|
|
5058
5058
|
// @ts-expect-error: `end` will be patched later.
|
|
5059
5059
|
end: void 0
|
|
@@ -5061,19 +5061,19 @@ function Oh(e) {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
function u(N) {
|
|
5063
5063
|
return F;
|
|
5064
|
-
function F(
|
|
5065
|
-
N && N.call(this,
|
|
5064
|
+
function F(V) {
|
|
5065
|
+
N && N.call(this, V), l.call(this, V);
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
5068
|
function l(N, F) {
|
|
5069
|
-
const
|
|
5069
|
+
const V = this.stack.pop(), Q = this.tokenStack.pop();
|
|
5070
5070
|
if (Q)
|
|
5071
5071
|
Q[0].type !== N.type && (F ? F.call(this, N, Q[0]) : (Q[1] || hc).call(this, N, Q[0]));
|
|
5072
5072
|
else throw new Error("Cannot close `" + N.type + "` (" + Jt({
|
|
5073
5073
|
start: N.start,
|
|
5074
5074
|
end: N.end
|
|
5075
5075
|
}) + "): it’s not open");
|
|
5076
|
-
|
|
5076
|
+
V.position.end = ot(N.end);
|
|
5077
5077
|
}
|
|
5078
5078
|
function p() {
|
|
5079
5079
|
return Ta(this.stack.pop());
|
|
@@ -5102,13 +5102,13 @@ function Oh(e) {
|
|
|
5102
5102
|
const N = this.resume(), F = this.stack[this.stack.length - 1];
|
|
5103
5103
|
F.value = N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
5104
5104
|
}
|
|
5105
|
-
function
|
|
5105
|
+
function h() {
|
|
5106
5106
|
const N = this.resume(), F = this.stack[this.stack.length - 1];
|
|
5107
5107
|
F.value = N.replace(/(\r?\n|\r)$/g, "");
|
|
5108
5108
|
}
|
|
5109
5109
|
function S(N) {
|
|
5110
|
-
const F = this.resume(),
|
|
5111
|
-
|
|
5110
|
+
const F = this.resume(), V = this.stack[this.stack.length - 1];
|
|
5111
|
+
V.label = F, V.identifier = $e(this.sliceSerialize(N)).toLowerCase();
|
|
5112
5112
|
}
|
|
5113
5113
|
function A() {
|
|
5114
5114
|
const N = this.resume(), F = this.stack[this.stack.length - 1];
|
|
@@ -5121,8 +5121,8 @@ function Oh(e) {
|
|
|
5121
5121
|
function _(N) {
|
|
5122
5122
|
const F = this.stack[this.stack.length - 1];
|
|
5123
5123
|
if (!F.depth) {
|
|
5124
|
-
const
|
|
5125
|
-
F.depth =
|
|
5124
|
+
const V = this.sliceSerialize(N).length;
|
|
5125
|
+
F.depth = V;
|
|
5126
5126
|
}
|
|
5127
5127
|
}
|
|
5128
5128
|
function T() {
|
|
@@ -5136,13 +5136,13 @@ function Oh(e) {
|
|
|
5136
5136
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
5137
5137
|
}
|
|
5138
5138
|
function M(N) {
|
|
5139
|
-
const
|
|
5140
|
-
let Q =
|
|
5139
|
+
const V = this.stack[this.stack.length - 1].children;
|
|
5140
|
+
let Q = V[V.length - 1];
|
|
5141
5141
|
(!Q || Q.type !== "text") && (Q = qg(), Q.position = {
|
|
5142
5142
|
start: ot(N.start),
|
|
5143
5143
|
// @ts-expect-error: we’ll add `end` later.
|
|
5144
5144
|
end: void 0
|
|
5145
|
-
},
|
|
5145
|
+
}, V.push(Q)), this.stack.push(Q);
|
|
5146
5146
|
}
|
|
5147
5147
|
function k(N) {
|
|
5148
5148
|
const F = this.stack.pop();
|
|
@@ -5151,8 +5151,8 @@ function Oh(e) {
|
|
|
5151
5151
|
function C(N) {
|
|
5152
5152
|
const F = this.stack[this.stack.length - 1];
|
|
5153
5153
|
if (this.data.atHardBreak) {
|
|
5154
|
-
const
|
|
5155
|
-
|
|
5154
|
+
const V = F.children[F.children.length - 1];
|
|
5155
|
+
V.position.end = ot(N.end), this.data.atHardBreak = void 0;
|
|
5156
5156
|
return;
|
|
5157
5157
|
}
|
|
5158
5158
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(F.type) && (M.call(this, N), k.call(this, N));
|
|
@@ -5191,16 +5191,16 @@ function Oh(e) {
|
|
|
5191
5191
|
this.data.referenceType = void 0;
|
|
5192
5192
|
}
|
|
5193
5193
|
function $(N) {
|
|
5194
|
-
const F = this.sliceSerialize(N),
|
|
5195
|
-
|
|
5194
|
+
const F = this.sliceSerialize(N), V = this.stack[this.stack.length - 2];
|
|
5195
|
+
V.label = Nh(F), V.identifier = $e(F).toLowerCase();
|
|
5196
5196
|
}
|
|
5197
5197
|
function W() {
|
|
5198
|
-
const N = this.stack[this.stack.length - 1], F = this.resume(),
|
|
5199
|
-
if (this.data.inReference = !0,
|
|
5198
|
+
const N = this.stack[this.stack.length - 1], F = this.resume(), V = this.stack[this.stack.length - 1];
|
|
5199
|
+
if (this.data.inReference = !0, V.type === "link") {
|
|
5200
5200
|
const Q = N.children;
|
|
5201
|
-
|
|
5201
|
+
V.children = Q;
|
|
5202
5202
|
} else
|
|
5203
|
-
|
|
5203
|
+
V.alt = F;
|
|
5204
5204
|
}
|
|
5205
5205
|
function E() {
|
|
5206
5206
|
const N = this.resume(), F = this.stack[this.stack.length - 1];
|
|
@@ -5217,16 +5217,16 @@ function Oh(e) {
|
|
|
5217
5217
|
this.data.referenceType = "collapsed";
|
|
5218
5218
|
}
|
|
5219
5219
|
function ue(N) {
|
|
5220
|
-
const F = this.resume(),
|
|
5221
|
-
|
|
5220
|
+
const F = this.resume(), V = this.stack[this.stack.length - 1];
|
|
5221
|
+
V.label = F, V.identifier = $e(this.sliceSerialize(N)).toLowerCase(), this.data.referenceType = "full";
|
|
5222
5222
|
}
|
|
5223
5223
|
function ce(N) {
|
|
5224
5224
|
this.data.characterReferenceType = N.type;
|
|
5225
5225
|
}
|
|
5226
5226
|
function ie(N) {
|
|
5227
|
-
const F = this.sliceSerialize(N),
|
|
5227
|
+
const F = this.sliceSerialize(N), V = this.data.characterReferenceType;
|
|
5228
5228
|
let Q;
|
|
5229
|
-
|
|
5229
|
+
V ? (Q = jd(F, V === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Q = sn(F);
|
|
5230
5230
|
const ne = this.stack[this.stack.length - 1];
|
|
5231
5231
|
ne.value += Q;
|
|
5232
5232
|
}
|
|
@@ -5244,7 +5244,7 @@ function Oh(e) {
|
|
|
5244
5244
|
const F = this.stack[this.stack.length - 1];
|
|
5245
5245
|
F.url = "mailto:" + this.sliceSerialize(N);
|
|
5246
5246
|
}
|
|
5247
|
-
function
|
|
5247
|
+
function j() {
|
|
5248
5248
|
return {
|
|
5249
5249
|
type: "blockquote",
|
|
5250
5250
|
children: []
|
|
@@ -5292,7 +5292,7 @@ function Oh(e) {
|
|
|
5292
5292
|
type: "break"
|
|
5293
5293
|
};
|
|
5294
5294
|
}
|
|
5295
|
-
function
|
|
5295
|
+
function He() {
|
|
5296
5296
|
return {
|
|
5297
5297
|
type: "html",
|
|
5298
5298
|
value: ""
|
|
@@ -5978,13 +5978,13 @@ function gy(e) {
|
|
|
5978
5978
|
S && S.type === "text" ? S.value += " " : y.children.push({ type: "text", value: " " }), y.children.push(...f);
|
|
5979
5979
|
} else
|
|
5980
5980
|
p.push(...f);
|
|
5981
|
-
const
|
|
5981
|
+
const h = {
|
|
5982
5982
|
type: "element",
|
|
5983
5983
|
tagName: "li",
|
|
5984
5984
|
properties: { id: t + "fn-" + d },
|
|
5985
5985
|
children: e.wrap(p, !0)
|
|
5986
5986
|
};
|
|
5987
|
-
e.patch(l,
|
|
5987
|
+
e.patch(l, h), s.push(h);
|
|
5988
5988
|
}
|
|
5989
5989
|
if (s.length !== 0)
|
|
5990
5990
|
return {
|
|
@@ -6131,13 +6131,13 @@ function lp(e, t, n, r) {
|
|
|
6131
6131
|
if ((!t || i(u, l, p[p.length - 1] || void 0)) && (g = wy(n(u, p)), g[0] === Zr))
|
|
6132
6132
|
return g;
|
|
6133
6133
|
if ("children" in u && u.children) {
|
|
6134
|
-
const
|
|
6134
|
+
const h = (
|
|
6135
6135
|
/** @type {UnistParent} */
|
|
6136
6136
|
u
|
|
6137
6137
|
);
|
|
6138
|
-
if (
|
|
6139
|
-
for (m = (r ?
|
|
6140
|
-
const S =
|
|
6138
|
+
if (h.children && g[0] !== Sy)
|
|
6139
|
+
for (m = (r ? h.children.length : -1) + o, y = p.concat(h); m > -1 && m < h.children.length; ) {
|
|
6140
|
+
const S = h.children[m];
|
|
6141
6141
|
if (f = s(S, m, y)(), f[0] === Zr)
|
|
6142
6142
|
return f;
|
|
6143
6143
|
m = typeof f[1] == "number" ? f[1] : m + o;
|
|
@@ -6185,8 +6185,8 @@ function Ty(e, t) {
|
|
|
6185
6185
|
return g(s, p, c);
|
|
6186
6186
|
if (s.options.passThrough && s.options.passThrough.includes(d)) {
|
|
6187
6187
|
if ("children" in p) {
|
|
6188
|
-
const { children: m, ...y } = p,
|
|
6189
|
-
return
|
|
6188
|
+
const { children: m, ...y } = p, h = Vn(y);
|
|
6189
|
+
return h.children = s.all(p), h;
|
|
6190
6190
|
}
|
|
6191
6191
|
return Vn(p);
|
|
6192
6192
|
}
|
|
@@ -6374,7 +6374,7 @@ function xy(e, t) {
|
|
|
6374
6374
|
a(null, o);
|
|
6375
6375
|
}
|
|
6376
6376
|
}
|
|
6377
|
-
const
|
|
6377
|
+
const je = { basename: Oy, dirname: Ly, extname: Dy, join: My, sep: "/" };
|
|
6378
6378
|
function Oy(e, t) {
|
|
6379
6379
|
if (t !== void 0 && typeof t != "string")
|
|
6380
6380
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -6580,7 +6580,7 @@ class cp {
|
|
|
6580
6580
|
* Basename.
|
|
6581
6581
|
*/
|
|
6582
6582
|
get basename() {
|
|
6583
|
-
return typeof this.path == "string" ?
|
|
6583
|
+
return typeof this.path == "string" ? je.basename(this.path) : void 0;
|
|
6584
6584
|
}
|
|
6585
6585
|
/**
|
|
6586
6586
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -6595,7 +6595,7 @@ class cp {
|
|
|
6595
6595
|
* Nothing.
|
|
6596
6596
|
*/
|
|
6597
6597
|
set basename(t) {
|
|
6598
|
-
_r(t, "basename"), vr(t, "basename"), this.path =
|
|
6598
|
+
_r(t, "basename"), vr(t, "basename"), this.path = je.join(this.dirname || "", t);
|
|
6599
6599
|
}
|
|
6600
6600
|
/**
|
|
6601
6601
|
* Get the parent path (example: `'~'`).
|
|
@@ -6604,7 +6604,7 @@ class cp {
|
|
|
6604
6604
|
* Dirname.
|
|
6605
6605
|
*/
|
|
6606
6606
|
get dirname() {
|
|
6607
|
-
return typeof this.path == "string" ?
|
|
6607
|
+
return typeof this.path == "string" ? je.dirname(this.path) : void 0;
|
|
6608
6608
|
}
|
|
6609
6609
|
/**
|
|
6610
6610
|
* Set the parent path (example: `'~'`).
|
|
@@ -6617,7 +6617,7 @@ class cp {
|
|
|
6617
6617
|
* Nothing.
|
|
6618
6618
|
*/
|
|
6619
6619
|
set dirname(t) {
|
|
6620
|
-
Lc(this.basename, "dirname"), this.path =
|
|
6620
|
+
Lc(this.basename, "dirname"), this.path = je.join(t || "", this.basename);
|
|
6621
6621
|
}
|
|
6622
6622
|
/**
|
|
6623
6623
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -6626,7 +6626,7 @@ class cp {
|
|
|
6626
6626
|
* Extname.
|
|
6627
6627
|
*/
|
|
6628
6628
|
get extname() {
|
|
6629
|
-
return typeof this.path == "string" ?
|
|
6629
|
+
return typeof this.path == "string" ? je.extname(this.path) : void 0;
|
|
6630
6630
|
}
|
|
6631
6631
|
/**
|
|
6632
6632
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -6647,7 +6647,7 @@ class cp {
|
|
|
6647
6647
|
if (t.includes(".", 1))
|
|
6648
6648
|
throw new Error("`extname` cannot contain multiple dots");
|
|
6649
6649
|
}
|
|
6650
|
-
this.path =
|
|
6650
|
+
this.path = je.join(this.dirname, this.stem + (t || ""));
|
|
6651
6651
|
}
|
|
6652
6652
|
/**
|
|
6653
6653
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -6680,7 +6680,7 @@ class cp {
|
|
|
6680
6680
|
* Stem.
|
|
6681
6681
|
*/
|
|
6682
6682
|
get stem() {
|
|
6683
|
-
return typeof this.path == "string" ?
|
|
6683
|
+
return typeof this.path == "string" ? je.basename(this.path, this.extname) : void 0;
|
|
6684
6684
|
}
|
|
6685
6685
|
/**
|
|
6686
6686
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6695,7 +6695,7 @@ class cp {
|
|
|
6695
6695
|
* Nothing.
|
|
6696
6696
|
*/
|
|
6697
6697
|
set stem(t) {
|
|
6698
|
-
_r(t, "stem"), vr(t, "stem"), this.path =
|
|
6698
|
+
_r(t, "stem"), vr(t, "stem"), this.path = je.join(this.dirname || "", t + (this.extname || ""));
|
|
6699
6699
|
}
|
|
6700
6700
|
// Normal prototypal methods.
|
|
6701
6701
|
/**
|
|
@@ -6909,9 +6909,9 @@ class cp {
|
|
|
6909
6909
|
}
|
|
6910
6910
|
}
|
|
6911
6911
|
function vr(e, t) {
|
|
6912
|
-
if (e && e.includes(
|
|
6912
|
+
if (e && e.includes(je.sep))
|
|
6913
6913
|
throw new Error(
|
|
6914
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
|
6914
|
+
"`" + t + "` cannot be a path: did not expect `" + je.sep + "`"
|
|
6915
6915
|
);
|
|
6916
6916
|
}
|
|
6917
6917
|
function _r(e, t) {
|
|
@@ -7705,12 +7705,12 @@ function pp(e) {
|
|
|
7705
7705
|
className: Bc(s.className)
|
|
7706
7706
|
});
|
|
7707
7707
|
else {
|
|
7708
|
-
var g = Object.keys(n).reduce(function(
|
|
7708
|
+
var g = Object.keys(n).reduce(function(h, S) {
|
|
7709
7709
|
return S.split(".").forEach(function(A) {
|
|
7710
|
-
|
|
7711
|
-
}),
|
|
7712
|
-
}, []), f = s.className && s.className.includes("token") ? ["token"] : [], m = s.className && f.concat(s.className.filter(function(
|
|
7713
|
-
return !g.includes(
|
|
7710
|
+
h.includes(A) || h.push(A);
|
|
7711
|
+
}), h;
|
|
7712
|
+
}, []), f = s.className && s.className.includes("token") ? ["token"] : [], m = s.className && f.concat(s.className.filter(function(h) {
|
|
7713
|
+
return !g.includes(h);
|
|
7714
7714
|
}));
|
|
7715
7715
|
d = xt(xt({}, s), {}, {
|
|
7716
7716
|
className: Bc(m) || void 0,
|
|
@@ -7718,7 +7718,7 @@ function pp(e) {
|
|
|
7718
7718
|
});
|
|
7719
7719
|
}
|
|
7720
7720
|
var y = c(t.children);
|
|
7721
|
-
return /* @__PURE__ */
|
|
7721
|
+
return /* @__PURE__ */ Ve.createElement(l, ra({
|
|
7722
7722
|
key: o
|
|
7723
7723
|
}, d), y);
|
|
7724
7724
|
}
|
|
@@ -7757,7 +7757,7 @@ function EE(e) {
|
|
|
7757
7757
|
var t = e.lines, n = e.startingLineNumber, r = e.style;
|
|
7758
7758
|
return t.map(function(a, i) {
|
|
7759
7759
|
var o = i + n;
|
|
7760
|
-
return /* @__PURE__ */
|
|
7760
|
+
return /* @__PURE__ */ Ve.createElement("span", {
|
|
7761
7761
|
key: "line-".concat(i),
|
|
7762
7762
|
className: "react-syntax-highlighter-line-number",
|
|
7763
7763
|
style: typeof r == "function" ? r(o) : r
|
|
@@ -7770,7 +7770,7 @@ function SE(e) {
|
|
|
7770
7770
|
float: "left",
|
|
7771
7771
|
paddingRight: "10px"
|
|
7772
7772
|
} : r, i = e.numberStyle, o = i === void 0 ? {} : i, s = e.startingLineNumber;
|
|
7773
|
-
return /* @__PURE__ */
|
|
7773
|
+
return /* @__PURE__ */ Ve.createElement("code", {
|
|
7774
7774
|
style: Object.assign({}, n, a)
|
|
7775
7775
|
}, EE({
|
|
7776
7776
|
lines: t.replace(/\n$/, "").split(`
|
|
@@ -7869,7 +7869,7 @@ function AE(e, t, n, r, a, i, o, s, u) {
|
|
|
7869
7869
|
var I = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
7870
7870
|
return t || I.length > 0 ? f(_, T, I) : m(_, T);
|
|
7871
7871
|
}
|
|
7872
|
-
for (var
|
|
7872
|
+
for (var h = function() {
|
|
7873
7873
|
var T = p[g], I = T.children[0].value, O = yE(I);
|
|
7874
7874
|
if (O) {
|
|
7875
7875
|
var M = I.split(`
|
|
@@ -7909,7 +7909,7 @@ function AE(e, t, n, r, a, i, o, s, u) {
|
|
|
7909
7909
|
}
|
|
7910
7910
|
g++;
|
|
7911
7911
|
}; g < p.length; )
|
|
7912
|
-
|
|
7912
|
+
h();
|
|
7913
7913
|
if (d !== p.length - 1) {
|
|
7914
7914
|
var S = p.slice(d + 1, p.length);
|
|
7915
7915
|
if (S && S.length) {
|
|
@@ -7959,9 +7959,9 @@ function vE(e, t) {
|
|
|
7959
7959
|
var a, i, o = r.language, s = r.children, u = r.style, l = u === void 0 ? t : u, p = r.customStyle, c = p === void 0 ? {} : p, d = r.codeTagProps, g = d === void 0 ? {
|
|
7960
7960
|
className: o ? "language-".concat(o) : void 0,
|
|
7961
7961
|
style: lt(lt({}, l['code[class*="language-"]']), l['code[class*="language-'.concat(o, '"]')])
|
|
7962
|
-
} : d, f = r.useInlineStyles, m = f === void 0 ? !0 : f, y = r.showLineNumbers,
|
|
7962
|
+
} : d, f = r.useInlineStyles, m = f === void 0 ? !0 : f, y = r.showLineNumbers, h = y === void 0 ? !1 : y, S = r.showInlineLineNumbers, A = S === void 0 ? !0 : S, v = r.startingLineNumber, _ = v === void 0 ? 1 : v, T = r.lineNumberContainerStyle, I = r.lineNumberStyle, O = I === void 0 ? {} : I, M = r.wrapLines, k = r.wrapLongLines, C = k === void 0 ? !1 : k, x = r.lineProps, L = x === void 0 ? {} : x, U = r.renderer, B = r.PreTag, G = B === void 0 ? "pre" : B, z = r.CodeTag, $ = z === void 0 ? "code" : z, W = r.code, E = W === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : W, K = r.astGenerator, te = aE(r, bE);
|
|
7963
7963
|
K = K || e;
|
|
7964
|
-
var w =
|
|
7964
|
+
var w = h ? /* @__PURE__ */ Ve.createElement(SE, {
|
|
7965
7965
|
containerStyle: T,
|
|
7966
7966
|
codeStyle: g.style || {},
|
|
7967
7967
|
numberStyle: O,
|
|
@@ -7980,7 +7980,7 @@ function vE(e, t) {
|
|
|
7980
7980
|
}, g.style) : g.style = lt({
|
|
7981
7981
|
whiteSpace: "pre"
|
|
7982
7982
|
}, g.style), !K)
|
|
7983
|
-
return /* @__PURE__ */
|
|
7983
|
+
return /* @__PURE__ */ Ve.createElement(G, ie, w, /* @__PURE__ */ Ve.createElement($, g, E));
|
|
7984
7984
|
(M === void 0 && U || C) && (M = !0), U = U || TE;
|
|
7985
7985
|
var _e = [{
|
|
7986
7986
|
type: "text",
|
|
@@ -7992,8 +7992,8 @@ function vE(e, t) {
|
|
|
7992
7992
|
defaultCodeValue: _e
|
|
7993
7993
|
});
|
|
7994
7994
|
de.language === null && (de.value = _e);
|
|
7995
|
-
var Ae = (a = (i = E.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && a !== void 0 ? a : 0,
|
|
7996
|
-
return /* @__PURE__ */
|
|
7995
|
+
var Ae = (a = (i = E.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && a !== void 0 ? a : 0, j = _ + Ae, Z = AE(de, M, L, h, A, _, j, O, C);
|
|
7996
|
+
return /* @__PURE__ */ Ve.createElement(G, ie, /* @__PURE__ */ Ve.createElement($, g, !A && w, U({
|
|
7997
7997
|
rows: Z,
|
|
7998
7998
|
stylesheet: l,
|
|
7999
7999
|
useInlineStyles: m
|
|
@@ -8339,14 +8339,14 @@ function UE(e, t) {
|
|
|
8339
8339
|
let p = (u ? u.line : 0) || 1, c = (u ? u.column : 0) || 1, d = f(), g;
|
|
8340
8340
|
for (i--; ++i <= e.length; )
|
|
8341
8341
|
if (g === 10 && (c = (l ? l[o] : 0) || 1), g = e.charCodeAt(i), g === 38) {
|
|
8342
|
-
const
|
|
8343
|
-
if (
|
|
8342
|
+
const h = e.charCodeAt(i + 1);
|
|
8343
|
+
if (h === 9 || h === 10 || h === 12 || h === 32 || h === 38 || h === 60 || Number.isNaN(h) || r && h === r) {
|
|
8344
8344
|
s += String.fromCharCode(g), c++;
|
|
8345
8345
|
continue;
|
|
8346
8346
|
}
|
|
8347
8347
|
const S = i + 1;
|
|
8348
8348
|
let A = S, v = S, _;
|
|
8349
|
-
if (
|
|
8349
|
+
if (h === 35) {
|
|
8350
8350
|
v = ++A;
|
|
8351
8351
|
const L = e.charCodeAt(v);
|
|
8352
8352
|
L === 88 || L === 120 ? (_ = "hexadecimal", v = ++A) : _ = "decimal";
|
|
@@ -8419,13 +8419,13 @@ function UE(e, t) {
|
|
|
8419
8419
|
offset: i + ((u ? u.offset : 0) || 0)
|
|
8420
8420
|
};
|
|
8421
8421
|
}
|
|
8422
|
-
function m(
|
|
8422
|
+
function m(h, S) {
|
|
8423
8423
|
let A;
|
|
8424
8424
|
n.warning && (A = f(), A.column += S, A.offset += S, n.warning.call(
|
|
8425
8425
|
n.warningContext || void 0,
|
|
8426
|
-
PE[
|
|
8426
|
+
PE[h],
|
|
8427
8427
|
A,
|
|
8428
|
-
|
|
8428
|
+
h
|
|
8429
8429
|
));
|
|
8430
8430
|
}
|
|
8431
8431
|
function y() {
|
|
@@ -8801,29 +8801,29 @@ function Ep(e, t, n, r, a, i) {
|
|
|
8801
8801
|
var f = l.pattern.toString().match(/[imsuy]*$/)[0];
|
|
8802
8802
|
l.pattern = RegExp(l.pattern.source, f + "g");
|
|
8803
8803
|
}
|
|
8804
|
-
for (var m = l.pattern || l, y = r.next,
|
|
8804
|
+
for (var m = l.pattern || l, y = r.next, h = a; y !== t.tail && !(i && h >= i.reach); h += y.value.length, y = y.next) {
|
|
8805
8805
|
var S = y.value;
|
|
8806
8806
|
if (t.length > e.length)
|
|
8807
8807
|
return;
|
|
8808
8808
|
if (!(S instanceof nn)) {
|
|
8809
8809
|
var A = 1, v;
|
|
8810
8810
|
if (d) {
|
|
8811
|
-
if (v = Vc(m,
|
|
8811
|
+
if (v = Vc(m, h, e, c), !v || v.index >= e.length)
|
|
8812
8812
|
break;
|
|
8813
|
-
var O = v.index, _ = v.index + v[0].length, T =
|
|
8813
|
+
var O = v.index, _ = v.index + v[0].length, T = h;
|
|
8814
8814
|
for (T += y.value.length; O >= T; )
|
|
8815
8815
|
y = y.next, T += y.value.length;
|
|
8816
|
-
if (T -= y.value.length,
|
|
8816
|
+
if (T -= y.value.length, h = T, y.value instanceof nn)
|
|
8817
8817
|
continue;
|
|
8818
8818
|
for (var I = y; I !== t.tail && (T < _ || typeof I.value == "string"); I = I.next)
|
|
8819
8819
|
A++, T += I.value.length;
|
|
8820
|
-
A--, S = e.slice(
|
|
8820
|
+
A--, S = e.slice(h, T), v.index -= h;
|
|
8821
8821
|
} else if (v = Vc(m, 0, S, c), !v)
|
|
8822
8822
|
continue;
|
|
8823
|
-
var O = v.index, M = v[0], k = S.slice(0, O), C = S.slice(O + M.length), x =
|
|
8823
|
+
var O = v.index, M = v[0], k = S.slice(0, O), C = S.slice(O + M.length), x = h + S.length;
|
|
8824
8824
|
i && x > i.reach && (i.reach = x);
|
|
8825
8825
|
var L = y.prev;
|
|
8826
|
-
k && (L = Un(t, L, k),
|
|
8826
|
+
k && (L = Un(t, L, k), h += k.length), HE(t, L, A);
|
|
8827
8827
|
var U = new nn(
|
|
8828
8828
|
o,
|
|
8829
8829
|
p ? pe.tokenize(M, p) : M,
|
|
@@ -8840,7 +8840,7 @@ function Ep(e, t, n, r, a, i) {
|
|
|
8840
8840
|
t,
|
|
8841
8841
|
n,
|
|
8842
8842
|
y.prev,
|
|
8843
|
-
|
|
8843
|
+
h,
|
|
8844
8844
|
B
|
|
8845
8845
|
), i && B.reach > i.reach && (i.reach = B.reach);
|
|
8846
8846
|
}
|
|
@@ -8871,14 +8871,14 @@ const Sp = pe;
|
|
|
8871
8871
|
function wp() {
|
|
8872
8872
|
}
|
|
8873
8873
|
wp.prototype = Sp;
|
|
8874
|
-
const
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8874
|
+
const b = new wp();
|
|
8875
|
+
b.highlight = VE;
|
|
8876
|
+
b.register = WE;
|
|
8877
|
+
b.alias = qE;
|
|
8878
|
+
b.registered = YE;
|
|
8879
|
+
b.listLanguages = KE;
|
|
8880
|
+
b.util.encode = XE;
|
|
8881
|
+
b.Token.stringify = ia;
|
|
8882
8882
|
function VE(e, t) {
|
|
8883
8883
|
if (typeof e != "string")
|
|
8884
8884
|
throw new TypeError("Expected `string` for `value`, got `" + e + "`");
|
|
@@ -8888,24 +8888,24 @@ function VE(e, t) {
|
|
|
8888
8888
|
else {
|
|
8889
8889
|
if (r = t, typeof r != "string")
|
|
8890
8890
|
throw new TypeError("Expected `string` for `name`, got `" + r + "`");
|
|
8891
|
-
if (Object.hasOwn(
|
|
8892
|
-
n =
|
|
8891
|
+
if (Object.hasOwn(b.languages, r))
|
|
8892
|
+
n = b.languages[r];
|
|
8893
8893
|
else
|
|
8894
8894
|
throw new Error("Unknown language: `" + r + "` is not registered");
|
|
8895
8895
|
}
|
|
8896
8896
|
return {
|
|
8897
8897
|
type: "root",
|
|
8898
8898
|
// @ts-expect-error: we hacked Prism to accept and return the things we want.
|
|
8899
|
-
children: Sp.highlight.call(
|
|
8899
|
+
children: Sp.highlight.call(b, e, n, r)
|
|
8900
8900
|
};
|
|
8901
8901
|
}
|
|
8902
8902
|
function WE(e) {
|
|
8903
8903
|
if (typeof e != "function" || !e.displayName)
|
|
8904
8904
|
throw new Error("Expected `function` for `syntax`, got `" + e + "`");
|
|
8905
|
-
Object.hasOwn(
|
|
8905
|
+
Object.hasOwn(b.languages, e.displayName) || e(b);
|
|
8906
8906
|
}
|
|
8907
8907
|
function qE(e, t) {
|
|
8908
|
-
const n =
|
|
8908
|
+
const n = b.languages;
|
|
8909
8909
|
let r = {};
|
|
8910
8910
|
typeof e == "string" ? t && (r[e] = t) : r = e;
|
|
8911
8911
|
let a;
|
|
@@ -8922,10 +8922,10 @@ function YE(e) {
|
|
|
8922
8922
|
throw new TypeError(
|
|
8923
8923
|
"Expected `string` for `aliasOrLanguage`, got `" + e + "`"
|
|
8924
8924
|
);
|
|
8925
|
-
return Object.hasOwn(
|
|
8925
|
+
return Object.hasOwn(b.languages, e);
|
|
8926
8926
|
}
|
|
8927
8927
|
function KE() {
|
|
8928
|
-
const e =
|
|
8928
|
+
const e = b.languages, t = [];
|
|
8929
8929
|
let n;
|
|
8930
8930
|
for (n in e)
|
|
8931
8931
|
Object.hasOwn(e, n) && typeof e[n] == "object" && t.push(n);
|
|
@@ -8954,7 +8954,7 @@ function ia(e, t) {
|
|
|
8954
8954
|
};
|
|
8955
8955
|
return e.alias && n.classes.push(
|
|
8956
8956
|
...typeof e.alias == "string" ? [e.alias] : e.alias
|
|
8957
|
-
),
|
|
8957
|
+
), b.hooks.run("wrap", n), LE(
|
|
8958
8958
|
n.tag + "." + n.classes.join("."),
|
|
8959
8959
|
ZE(n.attributes),
|
|
8960
8960
|
n.content
|
|
@@ -11417,7 +11417,7 @@ function Gt(e) {
|
|
|
11417
11417
|
), c = a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2), d = a(/\((?:[^()]|<<self>>)*\)/.source, 2), g = /@?\b[A-Za-z_]\w*\b/.source, f = n(/<<0>>(?:\s*<<1>>)?/.source, [g, c]), m = n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
|
|
11418
11418
|
l,
|
|
11419
11419
|
f
|
|
11420
|
-
]), y = /\[\s*(?:,\s*)*\]/.source,
|
|
11420
|
+
]), y = /\[\s*(?:,\s*)*\]/.source, h = n(
|
|
11421
11421
|
/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
|
|
11422
11422
|
[m, y]
|
|
11423
11423
|
), S = n(
|
|
@@ -11499,7 +11499,7 @@ function Gt(e) {
|
|
|
11499
11499
|
// as Foo<A>, is Bar<B>
|
|
11500
11500
|
// (things like if(a is Foo b) is covered by variable declaration)
|
|
11501
11501
|
pattern: r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
|
|
11502
|
-
|
|
11502
|
+
h
|
|
11503
11503
|
]),
|
|
11504
11504
|
lookbehind: !0,
|
|
11505
11505
|
inside: _
|
|
@@ -14277,13 +14277,13 @@ function Se(e) {
|
|
|
14277
14277
|
var c = o[i], d = r.tokenStack[c], g = typeof p == "string" ? p : p.content, f = n(a, c), m = g.indexOf(f);
|
|
14278
14278
|
if (m > -1) {
|
|
14279
14279
|
++i;
|
|
14280
|
-
var y = g.substring(0, m),
|
|
14280
|
+
var y = g.substring(0, m), h = new t.Token(
|
|
14281
14281
|
a,
|
|
14282
14282
|
t.tokenize(d, r.grammar),
|
|
14283
14283
|
"language-" + a,
|
|
14284
14284
|
d
|
|
14285
14285
|
), S = g.substring(m + f.length), A = [];
|
|
14286
|
-
y && A.push.apply(A, s([y])), A.push(
|
|
14286
|
+
y && A.push.apply(A, s([y])), A.push(h), S && A.push.apply(A, s([S])), typeof p == "string" ? u.splice.apply(u, [l, 1].concat(A)) : p.content = A;
|
|
14287
14287
|
}
|
|
14288
14288
|
} else p.content && s(p.content);
|
|
14289
14289
|
}
|
|
@@ -16861,30 +16861,30 @@ function Ao(e) {
|
|
|
16861
16861
|
function i(y) {
|
|
16862
16862
|
return r[a + y];
|
|
16863
16863
|
}
|
|
16864
|
-
function o(y,
|
|
16865
|
-
|
|
16864
|
+
function o(y, h) {
|
|
16865
|
+
h = h || 0;
|
|
16866
16866
|
for (var S = 0; S < y.length; S++) {
|
|
16867
|
-
var A = i(S +
|
|
16867
|
+
var A = i(S + h);
|
|
16868
16868
|
if (!A || A.type !== y[S])
|
|
16869
16869
|
return !1;
|
|
16870
16870
|
}
|
|
16871
16871
|
return !0;
|
|
16872
16872
|
}
|
|
16873
|
-
function s(y,
|
|
16873
|
+
function s(y, h) {
|
|
16874
16874
|
for (var S = 1, A = a; A < r.length; A++) {
|
|
16875
16875
|
var v = r[A], _ = v.content;
|
|
16876
16876
|
if (v.type === "punctuation" && typeof _ == "string") {
|
|
16877
16877
|
if (y.test(_))
|
|
16878
16878
|
S++;
|
|
16879
|
-
else if (
|
|
16879
|
+
else if (h.test(_) && (S--, S === 0))
|
|
16880
16880
|
return A;
|
|
16881
16881
|
}
|
|
16882
16882
|
}
|
|
16883
16883
|
return -1;
|
|
16884
16884
|
}
|
|
16885
|
-
function u(y,
|
|
16885
|
+
function u(y, h) {
|
|
16886
16886
|
var S = y.alias;
|
|
16887
|
-
S ? Array.isArray(S) || (y.alias = S = [S]) : y.alias = S = [], S.push(
|
|
16887
|
+
S ? Array.isArray(S) || (y.alias = S = [S]) : y.alias = S = [], S.push(h);
|
|
16888
16888
|
}
|
|
16889
16889
|
for (; a < r.length; ) {
|
|
16890
16890
|
var l = r[a++];
|
|
@@ -19396,23 +19396,23 @@ function Qo(e) {
|
|
|
19396
19396
|
return "___" + m.toUpperCase() + "_" + f + "___";
|
|
19397
19397
|
}
|
|
19398
19398
|
function l(f, m, y) {
|
|
19399
|
-
var
|
|
19399
|
+
var h = {
|
|
19400
19400
|
code: f,
|
|
19401
19401
|
grammar: m,
|
|
19402
19402
|
language: y
|
|
19403
19403
|
};
|
|
19404
|
-
return t.hooks.run("before-tokenize",
|
|
19404
|
+
return t.hooks.run("before-tokenize", h), h.tokens = t.tokenize(h.code, h.grammar), t.hooks.run("after-tokenize", h), h.tokens;
|
|
19405
19405
|
}
|
|
19406
19406
|
function p(f) {
|
|
19407
19407
|
var m = {};
|
|
19408
19408
|
m["interpolation-punctuation"] = i;
|
|
19409
19409
|
var y = t.tokenize(f, m);
|
|
19410
19410
|
if (y.length === 3) {
|
|
19411
|
-
var
|
|
19412
|
-
|
|
19413
|
-
|
|
19411
|
+
var h = [1, 1];
|
|
19412
|
+
h.push.apply(
|
|
19413
|
+
h,
|
|
19414
19414
|
l(y[1], t.languages.javascript, "javascript")
|
|
19415
|
-
), y.splice.apply(y,
|
|
19415
|
+
), y.splice.apply(y, h);
|
|
19416
19416
|
}
|
|
19417
19417
|
return new t.Token(
|
|
19418
19418
|
"interpolation",
|
|
@@ -19422,12 +19422,12 @@ function Qo(e) {
|
|
|
19422
19422
|
);
|
|
19423
19423
|
}
|
|
19424
19424
|
function c(f, m, y) {
|
|
19425
|
-
var
|
|
19425
|
+
var h = t.tokenize(f, {
|
|
19426
19426
|
interpolation: {
|
|
19427
19427
|
pattern: RegExp(o),
|
|
19428
19428
|
lookbehind: !0
|
|
19429
19429
|
}
|
|
19430
|
-
}), S = 0, A = {}, v =
|
|
19430
|
+
}), S = 0, A = {}, v = h.map(function(O) {
|
|
19431
19431
|
if (typeof O == "string")
|
|
19432
19432
|
return O;
|
|
19433
19433
|
for (var M = O.content, k; f.indexOf(
|
|
@@ -19483,8 +19483,8 @@ function Qo(e) {
|
|
|
19483
19483
|
if (!(f.language in d))
|
|
19484
19484
|
return;
|
|
19485
19485
|
function m(y) {
|
|
19486
|
-
for (var
|
|
19487
|
-
var A = y[
|
|
19486
|
+
for (var h = 0, S = y.length; h < S; h++) {
|
|
19487
|
+
var A = y[h];
|
|
19488
19488
|
if (typeof A != "string") {
|
|
19489
19489
|
var v = A.content;
|
|
19490
19490
|
if (!Array.isArray(v)) {
|
|
@@ -24778,7 +24778,7 @@ function vl(e) {
|
|
|
24778
24778
|
pattern: /\S[\s\S]*/,
|
|
24779
24779
|
alias: "language-csharp",
|
|
24780
24780
|
inside: m
|
|
24781
|
-
},
|
|
24781
|
+
}, h = {
|
|
24782
24782
|
pattern: RegExp(/(^|[^@])/.source + l),
|
|
24783
24783
|
lookbehind: !0,
|
|
24784
24784
|
greedy: !0,
|
|
@@ -24794,7 +24794,7 @@ function vl(e) {
|
|
|
24794
24794
|
"inside",
|
|
24795
24795
|
"punctuation",
|
|
24796
24796
|
{
|
|
24797
|
-
value:
|
|
24797
|
+
value: h
|
|
24798
24798
|
},
|
|
24799
24799
|
t.languages.cshtml.tag.inside["attr-value"]
|
|
24800
24800
|
), t.languages.insertBefore("cshtml", "prolog", {
|
|
@@ -24838,7 +24838,7 @@ function vl(e) {
|
|
|
24838
24838
|
csharp: y
|
|
24839
24839
|
}
|
|
24840
24840
|
},
|
|
24841
|
-
value:
|
|
24841
|
+
value: h,
|
|
24842
24842
|
"delegate-operator": {
|
|
24843
24843
|
pattern: /(^|[^@])@(?=<)/,
|
|
24844
24844
|
lookbehind: !0,
|
|
@@ -25620,12 +25620,12 @@ function Fl(e) {
|
|
|
25620
25620
|
pattern: /(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,
|
|
25621
25621
|
lookbehind: !0,
|
|
25622
25622
|
alias: "keyword"
|
|
25623
|
-
},
|
|
25623
|
+
}, h = /aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source, S = {
|
|
25624
25624
|
pattern: RegExp(
|
|
25625
25625
|
/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(
|
|
25626
25626
|
/<act>/g,
|
|
25627
25627
|
function() {
|
|
25628
|
-
return
|
|
25628
|
+
return h;
|
|
25629
25629
|
}
|
|
25630
25630
|
),
|
|
25631
25631
|
"i"
|
|
@@ -25634,7 +25634,7 @@ function Fl(e) {
|
|
|
25634
25634
|
inside: {
|
|
25635
25635
|
keyword: RegExp(
|
|
25636
25636
|
/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g, function() {
|
|
25637
|
-
return
|
|
25637
|
+
return h;
|
|
25638
25638
|
}),
|
|
25639
25639
|
"i"
|
|
25640
25640
|
),
|
|
@@ -28673,304 +28673,304 @@ function xu(e) {
|
|
|
28673
28673
|
});
|
|
28674
28674
|
})(e);
|
|
28675
28675
|
}
|
|
28676
|
-
|
|
28677
|
-
|
|
28678
|
-
|
|
28679
|
-
|
|
28680
|
-
|
|
28681
|
-
|
|
28682
|
-
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
|
|
28686
|
-
|
|
28687
|
-
|
|
28688
|
-
|
|
28689
|
-
|
|
28690
|
-
|
|
28691
|
-
|
|
28692
|
-
|
|
28693
|
-
|
|
28694
|
-
|
|
28695
|
-
|
|
28696
|
-
|
|
28697
|
-
|
|
28698
|
-
|
|
28699
|
-
|
|
28700
|
-
|
|
28701
|
-
|
|
28702
|
-
|
|
28703
|
-
|
|
28704
|
-
|
|
28705
|
-
|
|
28706
|
-
|
|
28707
|
-
|
|
28708
|
-
|
|
28709
|
-
|
|
28710
|
-
|
|
28711
|
-
|
|
28712
|
-
|
|
28713
|
-
|
|
28714
|
-
|
|
28715
|
-
|
|
28716
|
-
|
|
28717
|
-
|
|
28718
|
-
|
|
28719
|
-
|
|
28720
|
-
|
|
28721
|
-
|
|
28722
|
-
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
|
|
28726
|
-
|
|
28727
|
-
|
|
28728
|
-
|
|
28729
|
-
|
|
28730
|
-
|
|
28731
|
-
|
|
28732
|
-
|
|
28733
|
-
|
|
28734
|
-
|
|
28735
|
-
|
|
28736
|
-
|
|
28737
|
-
|
|
28738
|
-
|
|
28739
|
-
|
|
28740
|
-
|
|
28741
|
-
|
|
28742
|
-
|
|
28743
|
-
|
|
28744
|
-
|
|
28745
|
-
|
|
28746
|
-
|
|
28747
|
-
|
|
28748
|
-
|
|
28749
|
-
|
|
28750
|
-
|
|
28751
|
-
|
|
28752
|
-
|
|
28753
|
-
|
|
28754
|
-
|
|
28755
|
-
|
|
28756
|
-
|
|
28757
|
-
|
|
28758
|
-
|
|
28759
|
-
|
|
28760
|
-
|
|
28761
|
-
|
|
28762
|
-
|
|
28763
|
-
|
|
28764
|
-
|
|
28765
|
-
|
|
28766
|
-
|
|
28767
|
-
|
|
28768
|
-
|
|
28769
|
-
|
|
28770
|
-
|
|
28771
|
-
|
|
28772
|
-
|
|
28773
|
-
|
|
28774
|
-
|
|
28775
|
-
|
|
28776
|
-
|
|
28777
|
-
|
|
28778
|
-
|
|
28779
|
-
|
|
28780
|
-
|
|
28781
|
-
|
|
28782
|
-
|
|
28783
|
-
|
|
28784
|
-
|
|
28785
|
-
|
|
28786
|
-
|
|
28787
|
-
|
|
28788
|
-
|
|
28789
|
-
|
|
28790
|
-
|
|
28791
|
-
|
|
28792
|
-
|
|
28793
|
-
|
|
28794
|
-
|
|
28795
|
-
|
|
28796
|
-
|
|
28797
|
-
|
|
28798
|
-
|
|
28799
|
-
|
|
28800
|
-
|
|
28801
|
-
|
|
28802
|
-
|
|
28803
|
-
|
|
28804
|
-
|
|
28805
|
-
|
|
28806
|
-
|
|
28807
|
-
|
|
28808
|
-
|
|
28809
|
-
|
|
28810
|
-
|
|
28811
|
-
|
|
28812
|
-
|
|
28813
|
-
|
|
28814
|
-
|
|
28815
|
-
|
|
28816
|
-
|
|
28817
|
-
|
|
28818
|
-
|
|
28819
|
-
|
|
28820
|
-
|
|
28821
|
-
|
|
28822
|
-
|
|
28823
|
-
|
|
28824
|
-
|
|
28825
|
-
|
|
28826
|
-
|
|
28827
|
-
|
|
28828
|
-
|
|
28829
|
-
|
|
28830
|
-
|
|
28831
|
-
|
|
28832
|
-
|
|
28833
|
-
|
|
28834
|
-
|
|
28835
|
-
|
|
28836
|
-
|
|
28837
|
-
|
|
28838
|
-
|
|
28839
|
-
|
|
28840
|
-
|
|
28841
|
-
|
|
28842
|
-
|
|
28843
|
-
|
|
28844
|
-
|
|
28845
|
-
|
|
28846
|
-
|
|
28847
|
-
|
|
28848
|
-
|
|
28849
|
-
|
|
28850
|
-
|
|
28851
|
-
|
|
28852
|
-
|
|
28853
|
-
|
|
28854
|
-
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
|
|
28858
|
-
|
|
28859
|
-
|
|
28860
|
-
|
|
28861
|
-
|
|
28862
|
-
|
|
28863
|
-
|
|
28864
|
-
|
|
28865
|
-
|
|
28866
|
-
|
|
28867
|
-
|
|
28868
|
-
|
|
28869
|
-
|
|
28870
|
-
|
|
28871
|
-
|
|
28872
|
-
|
|
28873
|
-
|
|
28874
|
-
|
|
28875
|
-
|
|
28876
|
-
|
|
28877
|
-
|
|
28878
|
-
|
|
28879
|
-
|
|
28880
|
-
|
|
28881
|
-
|
|
28882
|
-
|
|
28883
|
-
|
|
28884
|
-
|
|
28885
|
-
|
|
28886
|
-
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
|
|
28890
|
-
|
|
28891
|
-
|
|
28892
|
-
|
|
28893
|
-
|
|
28894
|
-
|
|
28895
|
-
|
|
28896
|
-
|
|
28897
|
-
|
|
28898
|
-
|
|
28899
|
-
|
|
28900
|
-
|
|
28901
|
-
|
|
28902
|
-
|
|
28903
|
-
|
|
28904
|
-
|
|
28905
|
-
|
|
28906
|
-
|
|
28907
|
-
|
|
28908
|
-
|
|
28909
|
-
|
|
28910
|
-
|
|
28911
|
-
|
|
28912
|
-
|
|
28913
|
-
|
|
28914
|
-
|
|
28915
|
-
|
|
28916
|
-
|
|
28917
|
-
|
|
28918
|
-
|
|
28919
|
-
|
|
28920
|
-
|
|
28921
|
-
|
|
28922
|
-
|
|
28923
|
-
|
|
28924
|
-
|
|
28925
|
-
|
|
28926
|
-
|
|
28927
|
-
|
|
28928
|
-
|
|
28929
|
-
|
|
28930
|
-
|
|
28931
|
-
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
|
|
28939
|
-
|
|
28940
|
-
|
|
28941
|
-
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
28947
|
-
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
|
|
28954
|
-
|
|
28955
|
-
|
|
28956
|
-
|
|
28957
|
-
|
|
28958
|
-
|
|
28959
|
-
|
|
28960
|
-
|
|
28961
|
-
|
|
28962
|
-
|
|
28963
|
-
|
|
28964
|
-
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
28970
|
-
|
|
28971
|
-
|
|
28972
|
-
|
|
28973
|
-
var Ap = vE(
|
|
28676
|
+
b.register(fe);
|
|
28677
|
+
b.register(Tt);
|
|
28678
|
+
b.register(X);
|
|
28679
|
+
b.register(xa);
|
|
28680
|
+
b.register(Ee);
|
|
28681
|
+
b.register(Oa);
|
|
28682
|
+
b.register(La);
|
|
28683
|
+
b.register(Da);
|
|
28684
|
+
b.register(Ma);
|
|
28685
|
+
b.register(Fa);
|
|
28686
|
+
b.register(Pa);
|
|
28687
|
+
b.register(Ua);
|
|
28688
|
+
b.register(Ba);
|
|
28689
|
+
b.register(bn);
|
|
28690
|
+
b.register($a);
|
|
28691
|
+
b.register(za);
|
|
28692
|
+
b.register(Ga);
|
|
28693
|
+
b.register(Ha);
|
|
28694
|
+
b.register(Xe);
|
|
28695
|
+
b.register(zt);
|
|
28696
|
+
b.register(ja);
|
|
28697
|
+
b.register(Va);
|
|
28698
|
+
b.register(Wa);
|
|
28699
|
+
b.register(ar);
|
|
28700
|
+
b.register(ir);
|
|
28701
|
+
b.register(qa);
|
|
28702
|
+
b.register(Ya);
|
|
28703
|
+
b.register(Ka);
|
|
28704
|
+
b.register(Gt);
|
|
28705
|
+
b.register(Xa);
|
|
28706
|
+
b.register(Za);
|
|
28707
|
+
b.register(Qa);
|
|
28708
|
+
b.register(Ja);
|
|
28709
|
+
b.register(ei);
|
|
28710
|
+
b.register(ti);
|
|
28711
|
+
b.register(ni);
|
|
28712
|
+
b.register(ri);
|
|
28713
|
+
b.register(or);
|
|
28714
|
+
b.register(ai);
|
|
28715
|
+
b.register(ii);
|
|
28716
|
+
b.register(oi);
|
|
28717
|
+
b.register(si);
|
|
28718
|
+
b.register(li);
|
|
28719
|
+
b.register(ui);
|
|
28720
|
+
b.register(ci);
|
|
28721
|
+
b.register(di);
|
|
28722
|
+
b.register(pi);
|
|
28723
|
+
b.register(gi);
|
|
28724
|
+
b.register(fi);
|
|
28725
|
+
b.register(mi);
|
|
28726
|
+
b.register(bi);
|
|
28727
|
+
b.register(hi);
|
|
28728
|
+
b.register(yi);
|
|
28729
|
+
b.register(Ei);
|
|
28730
|
+
b.register(Si);
|
|
28731
|
+
b.register(wi);
|
|
28732
|
+
b.register(Ai);
|
|
28733
|
+
b.register(Ti);
|
|
28734
|
+
b.register(ki);
|
|
28735
|
+
b.register(vi);
|
|
28736
|
+
b.register(_i);
|
|
28737
|
+
b.register(Ri);
|
|
28738
|
+
b.register(Ii);
|
|
28739
|
+
b.register(Ht);
|
|
28740
|
+
b.register(Ni);
|
|
28741
|
+
b.register(Ci);
|
|
28742
|
+
b.register(xi);
|
|
28743
|
+
b.register(Oi);
|
|
28744
|
+
b.register(Li);
|
|
28745
|
+
b.register(Di);
|
|
28746
|
+
b.register(Mi);
|
|
28747
|
+
b.register(Fi);
|
|
28748
|
+
b.register(Pi);
|
|
28749
|
+
b.register(Ui);
|
|
28750
|
+
b.register(Bi);
|
|
28751
|
+
b.register(Se);
|
|
28752
|
+
b.register($i);
|
|
28753
|
+
b.register(zi);
|
|
28754
|
+
b.register(Gi);
|
|
28755
|
+
b.register(Hi);
|
|
28756
|
+
b.register(ji);
|
|
28757
|
+
b.register(Vi);
|
|
28758
|
+
b.register(Wi);
|
|
28759
|
+
b.register(qi);
|
|
28760
|
+
b.register(Yi);
|
|
28761
|
+
b.register(Ki);
|
|
28762
|
+
b.register(sr);
|
|
28763
|
+
b.register(Xi);
|
|
28764
|
+
b.register(Zi);
|
|
28765
|
+
b.register(Qi);
|
|
28766
|
+
b.register(Ji);
|
|
28767
|
+
b.register(eo);
|
|
28768
|
+
b.register(to);
|
|
28769
|
+
b.register(no);
|
|
28770
|
+
b.register(ro);
|
|
28771
|
+
b.register(ao);
|
|
28772
|
+
b.register(io);
|
|
28773
|
+
b.register(oo);
|
|
28774
|
+
b.register(so);
|
|
28775
|
+
b.register(lo);
|
|
28776
|
+
b.register(uo);
|
|
28777
|
+
b.register(co);
|
|
28778
|
+
b.register(po);
|
|
28779
|
+
b.register(go);
|
|
28780
|
+
b.register(fo);
|
|
28781
|
+
b.register(mo);
|
|
28782
|
+
b.register(bo);
|
|
28783
|
+
b.register(ho);
|
|
28784
|
+
b.register(yo);
|
|
28785
|
+
b.register(Eo);
|
|
28786
|
+
b.register(So);
|
|
28787
|
+
b.register(wo);
|
|
28788
|
+
b.register(Ao);
|
|
28789
|
+
b.register(To);
|
|
28790
|
+
b.register(ko);
|
|
28791
|
+
b.register(vo);
|
|
28792
|
+
b.register(_o);
|
|
28793
|
+
b.register(Ro);
|
|
28794
|
+
b.register(Io);
|
|
28795
|
+
b.register(hn);
|
|
28796
|
+
b.register(No);
|
|
28797
|
+
b.register(Co);
|
|
28798
|
+
b.register(xo);
|
|
28799
|
+
b.register(Oo);
|
|
28800
|
+
b.register(Lo);
|
|
28801
|
+
b.register(Do);
|
|
28802
|
+
b.register(yn);
|
|
28803
|
+
b.register(Mo);
|
|
28804
|
+
b.register(Fo);
|
|
28805
|
+
b.register(Po);
|
|
28806
|
+
b.register(Uo);
|
|
28807
|
+
b.register(Bo);
|
|
28808
|
+
b.register($o);
|
|
28809
|
+
b.register(zo);
|
|
28810
|
+
b.register(Go);
|
|
28811
|
+
b.register(Ho);
|
|
28812
|
+
b.register(jo);
|
|
28813
|
+
b.register(Vo);
|
|
28814
|
+
b.register(jt);
|
|
28815
|
+
b.register(Vt);
|
|
28816
|
+
b.register(Wt);
|
|
28817
|
+
b.register(Wo);
|
|
28818
|
+
b.register(qo);
|
|
28819
|
+
b.register(Yo);
|
|
28820
|
+
b.register(Ko);
|
|
28821
|
+
b.register(Xo);
|
|
28822
|
+
b.register(Zo);
|
|
28823
|
+
b.register(Qo);
|
|
28824
|
+
b.register(En);
|
|
28825
|
+
b.register(Jo);
|
|
28826
|
+
b.register(es);
|
|
28827
|
+
b.register(ts);
|
|
28828
|
+
b.register(ns);
|
|
28829
|
+
b.register(rs);
|
|
28830
|
+
b.register(as);
|
|
28831
|
+
b.register(is);
|
|
28832
|
+
b.register(os);
|
|
28833
|
+
b.register(ss);
|
|
28834
|
+
b.register(ls);
|
|
28835
|
+
b.register(us);
|
|
28836
|
+
b.register(cs);
|
|
28837
|
+
b.register(ds);
|
|
28838
|
+
b.register(ps);
|
|
28839
|
+
b.register(Sn);
|
|
28840
|
+
b.register(gs);
|
|
28841
|
+
b.register(fs);
|
|
28842
|
+
b.register(ms);
|
|
28843
|
+
b.register(bs);
|
|
28844
|
+
b.register(hs);
|
|
28845
|
+
b.register(ys);
|
|
28846
|
+
b.register(Es);
|
|
28847
|
+
b.register(Ss);
|
|
28848
|
+
b.register(ws);
|
|
28849
|
+
b.register(lr);
|
|
28850
|
+
b.register(As);
|
|
28851
|
+
b.register(Ts);
|
|
28852
|
+
b.register(ks);
|
|
28853
|
+
b.register(vs);
|
|
28854
|
+
b.register(_s);
|
|
28855
|
+
b.register(Rs);
|
|
28856
|
+
b.register(Is);
|
|
28857
|
+
b.register(Ns);
|
|
28858
|
+
b.register(Cs);
|
|
28859
|
+
b.register(xs);
|
|
28860
|
+
b.register(Os);
|
|
28861
|
+
b.register(Ls);
|
|
28862
|
+
b.register(Ds);
|
|
28863
|
+
b.register(Ms);
|
|
28864
|
+
b.register(Fs);
|
|
28865
|
+
b.register(Ps);
|
|
28866
|
+
b.register(Us);
|
|
28867
|
+
b.register(Bs);
|
|
28868
|
+
b.register($s);
|
|
28869
|
+
b.register(zs);
|
|
28870
|
+
b.register(Gs);
|
|
28871
|
+
b.register(Hs);
|
|
28872
|
+
b.register(js);
|
|
28873
|
+
b.register(Vs);
|
|
28874
|
+
b.register(Ws);
|
|
28875
|
+
b.register(qs);
|
|
28876
|
+
b.register(Ys);
|
|
28877
|
+
b.register(Ks);
|
|
28878
|
+
b.register(Xs);
|
|
28879
|
+
b.register(Zs);
|
|
28880
|
+
b.register(Qs);
|
|
28881
|
+
b.register(Js);
|
|
28882
|
+
b.register(el);
|
|
28883
|
+
b.register(tl);
|
|
28884
|
+
b.register(nl);
|
|
28885
|
+
b.register(rl);
|
|
28886
|
+
b.register(al);
|
|
28887
|
+
b.register(il);
|
|
28888
|
+
b.register(ol);
|
|
28889
|
+
b.register(sl);
|
|
28890
|
+
b.register(ll);
|
|
28891
|
+
b.register(ul);
|
|
28892
|
+
b.register(cl);
|
|
28893
|
+
b.register(dl);
|
|
28894
|
+
b.register(pl);
|
|
28895
|
+
b.register(gl);
|
|
28896
|
+
b.register(fl);
|
|
28897
|
+
b.register(ml);
|
|
28898
|
+
b.register(bl);
|
|
28899
|
+
b.register(hl);
|
|
28900
|
+
b.register(yl);
|
|
28901
|
+
b.register(ur);
|
|
28902
|
+
b.register(El);
|
|
28903
|
+
b.register(Sl);
|
|
28904
|
+
b.register(wl);
|
|
28905
|
+
b.register(Al);
|
|
28906
|
+
b.register(Tl);
|
|
28907
|
+
b.register(kl);
|
|
28908
|
+
b.register(vl);
|
|
28909
|
+
b.register(cr);
|
|
28910
|
+
b.register(_l);
|
|
28911
|
+
b.register(Rl);
|
|
28912
|
+
b.register(Il);
|
|
28913
|
+
b.register(Nl);
|
|
28914
|
+
b.register(Cl);
|
|
28915
|
+
b.register(xl);
|
|
28916
|
+
b.register(Ol);
|
|
28917
|
+
b.register(Ll);
|
|
28918
|
+
b.register(Dl);
|
|
28919
|
+
b.register(Ml);
|
|
28920
|
+
b.register(Fl);
|
|
28921
|
+
b.register(Pl);
|
|
28922
|
+
b.register(Ul);
|
|
28923
|
+
b.register(Bl);
|
|
28924
|
+
b.register($l);
|
|
28925
|
+
b.register(zl);
|
|
28926
|
+
b.register(Gl);
|
|
28927
|
+
b.register(Hl);
|
|
28928
|
+
b.register(jl);
|
|
28929
|
+
b.register(Vl);
|
|
28930
|
+
b.register(dr);
|
|
28931
|
+
b.register(Wl);
|
|
28932
|
+
b.register(ql);
|
|
28933
|
+
b.register(Yl);
|
|
28934
|
+
b.register(Kl);
|
|
28935
|
+
b.register(Xl);
|
|
28936
|
+
b.register(Zl);
|
|
28937
|
+
b.register(Ql);
|
|
28938
|
+
b.register(Jl);
|
|
28939
|
+
b.register(eu);
|
|
28940
|
+
b.register(tu);
|
|
28941
|
+
b.register(wn);
|
|
28942
|
+
b.register(nu);
|
|
28943
|
+
b.register(pr);
|
|
28944
|
+
b.register(ru);
|
|
28945
|
+
b.register(au);
|
|
28946
|
+
b.register(iu);
|
|
28947
|
+
b.register(ou);
|
|
28948
|
+
b.register(su);
|
|
28949
|
+
b.register(lu);
|
|
28950
|
+
b.register(uu);
|
|
28951
|
+
b.register(cu);
|
|
28952
|
+
b.register(du);
|
|
28953
|
+
b.register(pu);
|
|
28954
|
+
b.register(gu);
|
|
28955
|
+
b.register(fu);
|
|
28956
|
+
b.register(mu);
|
|
28957
|
+
b.register(bu);
|
|
28958
|
+
b.register(hu);
|
|
28959
|
+
b.register(yu);
|
|
28960
|
+
b.register(Eu);
|
|
28961
|
+
b.register(Su);
|
|
28962
|
+
b.register(wu);
|
|
28963
|
+
b.register(Au);
|
|
28964
|
+
b.register(Tu);
|
|
28965
|
+
b.register(ku);
|
|
28966
|
+
b.register(vu);
|
|
28967
|
+
b.register(_u);
|
|
28968
|
+
b.register(Ru);
|
|
28969
|
+
b.register(Iu);
|
|
28970
|
+
b.register(Nu);
|
|
28971
|
+
b.register(Cu);
|
|
28972
|
+
b.register(xu);
|
|
28973
|
+
var Ap = vE(b, QE);
|
|
28974
28974
|
Ap.supportedLanguages = _E;
|
|
28975
28975
|
const JE = {
|
|
28976
28976
|
'code[class*="language-"]': {
|
|
@@ -29162,7 +29162,7 @@ function tS(e, t, n) {
|
|
|
29162
29162
|
const c = p[p.length - 1], d = i[o][0], g = i[o][1];
|
|
29163
29163
|
let f = 0;
|
|
29164
29164
|
const y = c.children.indexOf(l);
|
|
29165
|
-
let
|
|
29165
|
+
let h = !1, S = [];
|
|
29166
29166
|
d.lastIndex = 0;
|
|
29167
29167
|
let A = d.exec(l.value);
|
|
29168
29168
|
for (; A; ) {
|
|
@@ -29175,11 +29175,11 @@ function tS(e, t, n) {
|
|
|
29175
29175
|
if (typeof T == "string" && (T = T.length > 0 ? { type: "text", value: T } : void 0), T === !1 ? d.lastIndex = v + 1 : (f !== v && S.push({
|
|
29176
29176
|
type: "text",
|
|
29177
29177
|
value: l.value.slice(f, v)
|
|
29178
|
-
}), Array.isArray(T) ? S.push(...T) : T && S.push(T), f = v + A[0].length,
|
|
29178
|
+
}), Array.isArray(T) ? S.push(...T) : T && S.push(T), f = v + A[0].length, h = !0), !d.global)
|
|
29179
29179
|
break;
|
|
29180
29180
|
A = d.exec(l.value);
|
|
29181
29181
|
}
|
|
29182
|
-
return
|
|
29182
|
+
return h ? (f < l.value.length && S.push({ type: "text", value: l.value.slice(f) }), c.children.splice(y, 1, ...S)) : S = [l], y + S.length;
|
|
29183
29183
|
}
|
|
29184
29184
|
}
|
|
29185
29185
|
function nS(e) {
|
|
@@ -29342,7 +29342,7 @@ function SS(e) {
|
|
|
29342
29342
|
}
|
|
29343
29343
|
function wS(e) {
|
|
29344
29344
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
29345
|
-
n.type, n.identifier =
|
|
29345
|
+
n.type, n.identifier = $e(
|
|
29346
29346
|
this.sliceSerialize(e)
|
|
29347
29347
|
).toLowerCase(), n.label = t;
|
|
29348
29348
|
}
|
|
@@ -29351,7 +29351,7 @@ function AS(e) {
|
|
|
29351
29351
|
}
|
|
29352
29352
|
function TS(e) {
|
|
29353
29353
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
29354
|
-
n.type, n.identifier =
|
|
29354
|
+
n.type, n.identifier = $e(
|
|
29355
29355
|
this.sliceSerialize(e)
|
|
29356
29356
|
).toLowerCase(), n.label = t;
|
|
29357
29357
|
}
|
|
@@ -29467,12 +29467,12 @@ function FS(e, t) {
|
|
|
29467
29467
|
let l = 0, p = -1;
|
|
29468
29468
|
for (; ++p < e.length; ) {
|
|
29469
29469
|
const m = [], y = [];
|
|
29470
|
-
let
|
|
29471
|
-
for (e[p].length > l && (l = e[p].length); ++
|
|
29472
|
-
const S = PS(e[p][
|
|
29470
|
+
let h = -1;
|
|
29471
|
+
for (e[p].length > l && (l = e[p].length); ++h < e[p].length; ) {
|
|
29472
|
+
const S = PS(e[p][h]);
|
|
29473
29473
|
if (n.alignDelimiters !== !1) {
|
|
29474
29474
|
const A = a(S);
|
|
29475
|
-
y[
|
|
29475
|
+
y[h] = A, (u[h] === void 0 || A > u[h]) && (u[h] = A);
|
|
29476
29476
|
}
|
|
29477
29477
|
m.push(S);
|
|
29478
29478
|
}
|
|
@@ -29491,21 +29491,21 @@ function FS(e, t) {
|
|
|
29491
29491
|
const d = [], g = [];
|
|
29492
29492
|
for (; ++c < l; ) {
|
|
29493
29493
|
const m = i[c];
|
|
29494
|
-
let y = "",
|
|
29495
|
-
m === 99 ? (y = ":",
|
|
29494
|
+
let y = "", h = "";
|
|
29495
|
+
m === 99 ? (y = ":", h = ":") : m === 108 ? y = ":" : m === 114 && (h = ":");
|
|
29496
29496
|
let S = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
29497
29497
|
1,
|
|
29498
|
-
u[c] - y.length -
|
|
29498
|
+
u[c] - y.length - h.length
|
|
29499
29499
|
);
|
|
29500
|
-
const A = y + "-".repeat(S) +
|
|
29501
|
-
n.alignDelimiters !== !1 && (S = y.length + S +
|
|
29500
|
+
const A = y + "-".repeat(S) + h;
|
|
29501
|
+
n.alignDelimiters !== !1 && (S = y.length + S + h.length, S > u[c] && (u[c] = S), g[c] = S), d[c] = A;
|
|
29502
29502
|
}
|
|
29503
29503
|
o.splice(1, 0, d), s.splice(1, 0, g), p = -1;
|
|
29504
29504
|
const f = [];
|
|
29505
29505
|
for (; ++p < o.length; ) {
|
|
29506
29506
|
const m = o[p], y = s[p];
|
|
29507
29507
|
c = -1;
|
|
29508
|
-
const
|
|
29508
|
+
const h = [];
|
|
29509
29509
|
for (; ++c < l; ) {
|
|
29510
29510
|
const S = m[c] || "";
|
|
29511
29511
|
let A = "", v = "";
|
|
@@ -29513,12 +29513,12 @@ function FS(e, t) {
|
|
|
29513
29513
|
const _ = u[c] - (y[c] || 0), T = i[c];
|
|
29514
29514
|
T === 114 ? A = " ".repeat(_) : T === 99 ? _ % 2 ? (A = " ".repeat(_ / 2 + 0.5), v = " ".repeat(_ / 2 - 0.5)) : (A = " ".repeat(_ / 2), v = A) : v = " ".repeat(_);
|
|
29515
29515
|
}
|
|
29516
|
-
n.delimiterStart !== !1 && !c &&
|
|
29516
|
+
n.delimiterStart !== !1 && !c && h.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
29517
29517
|
// empty: there will be a closing space.
|
|
29518
|
-
!(n.alignDelimiters === !1 && S === "") && (n.delimiterStart !== !1 || c) &&
|
|
29518
|
+
!(n.alignDelimiters === !1 && S === "") && (n.delimiterStart !== !1 || c) && h.push(" "), n.alignDelimiters !== !1 && h.push(A), h.push(S), n.alignDelimiters !== !1 && h.push(v), n.padding !== !1 && h.push(" "), (n.delimiterEnd !== !1 || c !== l - 1) && h.push("|");
|
|
29519
29519
|
}
|
|
29520
29520
|
f.push(
|
|
29521
|
-
n.delimiterEnd === !1 ?
|
|
29521
|
+
n.delimiterEnd === !1 ? h.join("").replace(/ +$/, "") : h.join("")
|
|
29522
29522
|
);
|
|
29523
29523
|
}
|
|
29524
29524
|
return f.join(`
|
|
@@ -30211,17 +30211,17 @@ function Aw(e) {
|
|
|
30211
30211
|
return l(p(g, m, y), g.align);
|
|
30212
30212
|
}
|
|
30213
30213
|
function s(g, f, m, y) {
|
|
30214
|
-
const
|
|
30214
|
+
const h = c(g, m, y), S = l([h]);
|
|
30215
30215
|
return S.slice(0, S.indexOf(`
|
|
30216
30216
|
`));
|
|
30217
30217
|
}
|
|
30218
30218
|
function u(g, f, m, y) {
|
|
30219
|
-
const
|
|
30219
|
+
const h = m.enter("tableCell"), S = m.enter("phrasing"), A = m.containerPhrasing(g, {
|
|
30220
30220
|
...y,
|
|
30221
30221
|
before: i,
|
|
30222
30222
|
after: i
|
|
30223
30223
|
});
|
|
30224
|
-
return S(),
|
|
30224
|
+
return S(), h(), A;
|
|
30225
30225
|
}
|
|
30226
30226
|
function l(g, f) {
|
|
30227
30227
|
return FS(g, {
|
|
@@ -30236,18 +30236,18 @@ function Aw(e) {
|
|
|
30236
30236
|
}
|
|
30237
30237
|
function p(g, f, m) {
|
|
30238
30238
|
const y = g.children;
|
|
30239
|
-
let
|
|
30239
|
+
let h = -1;
|
|
30240
30240
|
const S = [], A = f.enter("table");
|
|
30241
|
-
for (; ++
|
|
30242
|
-
S[
|
|
30241
|
+
for (; ++h < y.length; )
|
|
30242
|
+
S[h] = c(y[h], f, m);
|
|
30243
30243
|
return A(), S;
|
|
30244
30244
|
}
|
|
30245
30245
|
function c(g, f, m) {
|
|
30246
30246
|
const y = g.children;
|
|
30247
|
-
let
|
|
30247
|
+
let h = -1;
|
|
30248
30248
|
const S = [], A = f.enter("tableRow");
|
|
30249
|
-
for (; ++
|
|
30250
|
-
S[
|
|
30249
|
+
for (; ++h < y.length; )
|
|
30250
|
+
S[h] = u(y[h], g, f, m);
|
|
30251
30251
|
return A(), S;
|
|
30252
30252
|
}
|
|
30253
30253
|
function d(g, f, m) {
|
|
@@ -30564,7 +30564,7 @@ function Gw(e, t, n) {
|
|
|
30564
30564
|
function s(u) {
|
|
30565
30565
|
if (!o || !o._balanced)
|
|
30566
30566
|
return n(u);
|
|
30567
|
-
const l =
|
|
30567
|
+
const l = $e(r.sliceSerialize({
|
|
30568
30568
|
start: o.end,
|
|
30569
30569
|
end: r.now()
|
|
30570
30570
|
}));
|
|
@@ -30643,7 +30643,7 @@ function jw(e, t, n) {
|
|
|
30643
30643
|
if (c === 93) {
|
|
30644
30644
|
e.exit("chunkString");
|
|
30645
30645
|
const d = e.exit("gfmFootnoteCallString");
|
|
30646
|
-
return a.includes(
|
|
30646
|
+
return a.includes($e(r.sliceSerialize(d))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(c), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(c);
|
|
30647
30647
|
}
|
|
30648
30648
|
return re(c) || (o = !0), i++, e.consume(c), c === 92 ? p : l;
|
|
30649
30649
|
}
|
|
@@ -30673,7 +30673,7 @@ function Vw(e, t, n) {
|
|
|
30673
30673
|
if (f === 93) {
|
|
30674
30674
|
e.exit("chunkString");
|
|
30675
30675
|
const m = e.exit("gfmFootnoteDefinitionLabelString");
|
|
30676
|
-
return i =
|
|
30676
|
+
return i = $e(r.sliceSerialize(m)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(f), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), d;
|
|
30677
30677
|
}
|
|
30678
30678
|
return re(f) || (s = !0), o++, e.consume(f), f === 92 ? c : p;
|
|
30679
30679
|
}
|
|
@@ -30757,8 +30757,8 @@ function Kw(e) {
|
|
|
30757
30757
|
if (f === 126)
|
|
30758
30758
|
return c > 1 ? u(f) : (o.consume(f), c++, g);
|
|
30759
30759
|
if (c < 2 && !n) return u(f);
|
|
30760
|
-
const y = o.exit("strikethroughSequenceTemporary"),
|
|
30761
|
-
return y._open = !
|
|
30760
|
+
const y = o.exit("strikethroughSequenceTemporary"), h = Mt(f);
|
|
30761
|
+
return y._open = !h || h === 2 && !!m, y._close = !m || m === 2 && !!h, s(f);
|
|
30762
30762
|
}
|
|
30763
30763
|
}
|
|
30764
30764
|
}
|
|
@@ -30901,9 +30901,9 @@ function eA(e, t, n) {
|
|
|
30901
30901
|
return Y(k) ? J(e, y, "whitespace")(k) : y(k);
|
|
30902
30902
|
}
|
|
30903
30903
|
function y(k) {
|
|
30904
|
-
return k === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"),
|
|
30904
|
+
return k === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), h) : k === 45 ? (i += 1, h(k)) : k === null || H(k) ? v(k) : _(k);
|
|
30905
30905
|
}
|
|
30906
|
-
function
|
|
30906
|
+
function h(k) {
|
|
30907
30907
|
return k === 45 ? (e.enter("tableDelimiterFiller"), S(k)) : _(k);
|
|
30908
30908
|
}
|
|
30909
30909
|
function S(k) {
|
|
@@ -31046,7 +31046,7 @@ function lA(e) {
|
|
|
31046
31046
|
a.push(oA(n)), i.push(Rw()), o.push(Iw(n));
|
|
31047
31047
|
}
|
|
31048
31048
|
const uA = ({ messages: e }) => {
|
|
31049
|
-
const t =
|
|
31049
|
+
const t = Be(null);
|
|
31050
31050
|
return ke(() => {
|
|
31051
31051
|
t.current && (t.current.scrollTop = t.current.scrollHeight);
|
|
31052
31052
|
}), /* @__PURE__ */ P(
|
|
@@ -31221,7 +31221,7 @@ function EA({
|
|
|
31221
31221
|
onMentionChange: t,
|
|
31222
31222
|
onChangeMentionPlaceholders: n
|
|
31223
31223
|
}) {
|
|
31224
|
-
const r =
|
|
31224
|
+
const r = Be([]), a = le(
|
|
31225
31225
|
(s) => {
|
|
31226
31226
|
const u = /* @__PURE__ */ new Set();
|
|
31227
31227
|
if (e.length > 0) {
|
|
@@ -31286,7 +31286,7 @@ function SA({
|
|
|
31286
31286
|
getCaretPosition: r,
|
|
31287
31287
|
setCaretPosition: a
|
|
31288
31288
|
}) {
|
|
31289
|
-
const i =
|
|
31289
|
+
const i = Be(""), o = le((c) => c.replace(/</g, "<").replace(/>/g, ">").replace(/\n/g, "<br>"), []), s = le((c, d = !1) => {
|
|
31290
31290
|
if (!e.current) return;
|
|
31291
31291
|
const g = d ? r() : 0;
|
|
31292
31292
|
let f = "";
|
|
@@ -31304,13 +31304,21 @@ function SA({
|
|
|
31304
31304
|
html: `<span class="${n}" data-mention="${S.label}">${_[0]}</span>`
|
|
31305
31305
|
});
|
|
31306
31306
|
}), m.sort((S, A) => S.start - A.start);
|
|
31307
|
-
let
|
|
31307
|
+
let h = 0;
|
|
31308
31308
|
m.forEach((S) => {
|
|
31309
|
-
f += o(c.slice(
|
|
31310
|
-
}), f += o(c.slice(
|
|
31309
|
+
f += o(c.slice(h, S.start)), f += S.html, h = S.end;
|
|
31310
|
+
}), f += o(c.slice(h));
|
|
31311
31311
|
} else
|
|
31312
31312
|
f = o(c);
|
|
31313
|
-
e.current.innerHTML = f || "<br>",
|
|
31313
|
+
if (e.current.innerHTML = f || "<br>", !f || f === "<br>") {
|
|
31314
|
+
const y = window.getSelection();
|
|
31315
|
+
if (y && e.current) {
|
|
31316
|
+
e.current.innerHTML = "", e.current.innerHTML = "<br>";
|
|
31317
|
+
const h = document.createRange();
|
|
31318
|
+
h.setStart(e.current, 0), h.collapse(!0), y.removeAllRanges(), y.addRange(h);
|
|
31319
|
+
}
|
|
31320
|
+
}
|
|
31321
|
+
d && requestAnimationFrame(() => {
|
|
31314
31322
|
a(g);
|
|
31315
31323
|
});
|
|
31316
31324
|
}, [e, t, n, r, a, o]), u = le((c) => {
|
|
@@ -31318,9 +31326,9 @@ function SA({
|
|
|
31318
31326
|
if (t.length > 0) {
|
|
31319
31327
|
const g = [...t].sort((m, y) => y.label.length - m.label.length), f = [];
|
|
31320
31328
|
g.forEach((m) => {
|
|
31321
|
-
const y = m.label.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
|
|
31329
|
+
const y = m.label.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), h = new RegExp(`@${y}(?=\\s|$)`, "g");
|
|
31322
31330
|
let S;
|
|
31323
|
-
for (; (S =
|
|
31331
|
+
for (; (S = h.exec(c)) !== null; )
|
|
31324
31332
|
f.some((A) => Math.abs(A - S.index) < m.label.length) || (d.push(`${S.index}:${S[0]}`), f.push(S.index));
|
|
31325
31333
|
});
|
|
31326
31334
|
}
|
|
@@ -31394,8 +31402,8 @@ function qp(e, t = []) {
|
|
|
31394
31402
|
const s = R.createContext(o), u = n.length;
|
|
31395
31403
|
n = [...n, o];
|
|
31396
31404
|
const l = (c) => {
|
|
31397
|
-
var
|
|
31398
|
-
const { scope: d, children: g, ...f } = c, m = ((
|
|
31405
|
+
var h;
|
|
31406
|
+
const { scope: d, children: g, ...f } = c, m = ((h = d == null ? void 0 : d[e]) == null ? void 0 : h[u]) || s, y = R.useMemo(() => f, Object.values(f));
|
|
31399
31407
|
return /* @__PURE__ */ P(m.Provider, { value: y, children: g });
|
|
31400
31408
|
};
|
|
31401
31409
|
l.displayName = i + "Provider";
|
|
@@ -31452,7 +31460,7 @@ var ed;
|
|
|
31452
31460
|
function TA() {
|
|
31453
31461
|
if (ed) return me;
|
|
31454
31462
|
ed = 1;
|
|
31455
|
-
var e =
|
|
31463
|
+
var e = Ve;
|
|
31456
31464
|
function t(u) {
|
|
31457
31465
|
var l = "https://react.dev/errors/" + u;
|
|
31458
31466
|
if (1 < arguments.length) {
|
|
@@ -31640,7 +31648,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31640
31648
|
), c;
|
|
31641
31649
|
}
|
|
31642
31650
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
31643
|
-
var s =
|
|
31651
|
+
var s = Ve, u = {
|
|
31644
31652
|
d: {
|
|
31645
31653
|
f: e,
|
|
31646
31654
|
r: function() {
|
|
@@ -31922,7 +31930,7 @@ var DA = "DismissableLayer", la = "dismissableLayer.update", MA = "dismissableLa
|
|
|
31922
31930
|
onInteractOutside: o,
|
|
31923
31931
|
onDismiss: s,
|
|
31924
31932
|
...u
|
|
31925
|
-
} = e, l = R.useContext(Xp), [p, c] = R.useState(null), d = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = R.useState({}), f = ft(t, (I) => c(I)), m = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1),
|
|
31933
|
+
} = e, l = R.useContext(Xp), [p, c] = R.useState(null), d = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = R.useState({}), f = ft(t, (I) => c(I)), m = Array.from(l.layers), [y] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), h = m.indexOf(y), S = p ? m.indexOf(p) : -1, A = l.layersWithOutsidePointerEventsDisabled.size > 0, v = S >= h, _ = BA((I) => {
|
|
31926
31934
|
const O = I.target, M = [...l.branches].some((k) => k.contains(O));
|
|
31927
31935
|
!v || M || (a == null || a(I), o == null || o(I), I.defaultPrevented || s == null || s());
|
|
31928
31936
|
}, d), T = $A((I) => {
|
|
@@ -32063,13 +32071,13 @@ var Fr = "focusScope.autoFocusOnMount", Pr = "focusScope.autoFocusOnUnmount", id
|
|
|
32063
32071
|
if (g.paused || !s) return;
|
|
32064
32072
|
const v = A.relatedTarget;
|
|
32065
32073
|
v !== null && (s.contains(v) || st(c.current, { select: !0 }));
|
|
32066
|
-
},
|
|
32074
|
+
}, h = function(A) {
|
|
32067
32075
|
if (document.activeElement === document.body)
|
|
32068
32076
|
for (const _ of A)
|
|
32069
32077
|
_.removedNodes.length > 0 && st(s);
|
|
32070
32078
|
};
|
|
32071
32079
|
document.addEventListener("focusin", m), document.addEventListener("focusout", y);
|
|
32072
|
-
const S = new MutationObserver(
|
|
32080
|
+
const S = new MutationObserver(h);
|
|
32073
32081
|
return s && S.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
32074
32082
|
document.removeEventListener("focusin", m), document.removeEventListener("focusout", y), S.disconnect();
|
|
32075
32083
|
};
|
|
@@ -32079,13 +32087,13 @@ var Fr = "focusScope.autoFocusOnMount", Pr = "focusScope.autoFocusOnUnmount", id
|
|
|
32079
32087
|
sd.add(g);
|
|
32080
32088
|
const m = document.activeElement;
|
|
32081
32089
|
if (!s.contains(m)) {
|
|
32082
|
-
const
|
|
32083
|
-
s.addEventListener(Fr, l), s.dispatchEvent(
|
|
32090
|
+
const h = new CustomEvent(Fr, id);
|
|
32091
|
+
s.addEventListener(Fr, l), s.dispatchEvent(h), h.defaultPrevented || (HA(YA(eg(s)), { select: !0 }), document.activeElement === m && st(s));
|
|
32084
32092
|
}
|
|
32085
32093
|
return () => {
|
|
32086
32094
|
s.removeEventListener(Fr, l), setTimeout(() => {
|
|
32087
|
-
const
|
|
32088
|
-
s.addEventListener(Pr, p), s.dispatchEvent(
|
|
32095
|
+
const h = new CustomEvent(Pr, id);
|
|
32096
|
+
s.addEventListener(Pr, p), s.dispatchEvent(h), h.defaultPrevented || st(m ?? document.body, { select: !0 }), s.removeEventListener(Pr, p), sd.remove(g);
|
|
32089
32097
|
}, 0);
|
|
32090
32098
|
};
|
|
32091
32099
|
}
|
|
@@ -32093,10 +32101,10 @@ var Fr = "focusScope.autoFocusOnMount", Pr = "focusScope.autoFocusOnUnmount", id
|
|
|
32093
32101
|
const f = R.useCallback(
|
|
32094
32102
|
(m) => {
|
|
32095
32103
|
if (!n && !r || g.paused) return;
|
|
32096
|
-
const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey,
|
|
32097
|
-
if (y &&
|
|
32104
|
+
const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, h = document.activeElement;
|
|
32105
|
+
if (y && h) {
|
|
32098
32106
|
const S = m.currentTarget, [A, v] = jA(S);
|
|
32099
|
-
A && v ? !m.shiftKey &&
|
|
32107
|
+
A && v ? !m.shiftKey && h === v ? (m.preventDefault(), n && st(A, { select: !0 })) : m.shiftKey && h === A && (m.preventDefault(), n && st(v, { select: !0 })) : h === S && m.preventDefault();
|
|
32100
32108
|
}
|
|
32101
32109
|
},
|
|
32102
32110
|
[n, r, g.paused]
|
|
@@ -32347,13 +32355,13 @@ const uT = async (e, t, n) => {
|
|
|
32347
32355
|
for (let m = 0; m < s.length; m++) {
|
|
32348
32356
|
const {
|
|
32349
32357
|
name: y,
|
|
32350
|
-
fn:
|
|
32358
|
+
fn: h
|
|
32351
32359
|
} = s[m], {
|
|
32352
32360
|
x: S,
|
|
32353
32361
|
y: A,
|
|
32354
32362
|
data: v,
|
|
32355
32363
|
reset: _
|
|
32356
|
-
} = await
|
|
32364
|
+
} = await h({
|
|
32357
32365
|
x: p,
|
|
32358
32366
|
y: c,
|
|
32359
32367
|
initialPlacement: r,
|
|
@@ -32406,7 +32414,7 @@ async function dn(e, t) {
|
|
|
32406
32414
|
elementContext: c = "floating",
|
|
32407
32415
|
altBoundary: d = !1,
|
|
32408
32416
|
padding: g = 0
|
|
32409
|
-
} = nt(t, e), f = tg(g), y = s[d ? c === "floating" ? "reference" : "floating" : c],
|
|
32417
|
+
} = nt(t, e), f = tg(g), y = s[d ? c === "floating" ? "reference" : "floating" : c], h = Kn(await i.getClippingRect({
|
|
32410
32418
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
32411
32419
|
boundary: l,
|
|
32412
32420
|
rootBoundary: p,
|
|
@@ -32429,10 +32437,10 @@ async function dn(e, t) {
|
|
|
32429
32437
|
strategy: u
|
|
32430
32438
|
}) : S);
|
|
32431
32439
|
return {
|
|
32432
|
-
top: (
|
|
32433
|
-
bottom: (_.bottom -
|
|
32434
|
-
left: (
|
|
32435
|
-
right: (_.right -
|
|
32440
|
+
top: (h.top - _.top + f.top) / v.y,
|
|
32441
|
+
bottom: (_.bottom - h.bottom + f.bottom) / v.y,
|
|
32442
|
+
left: (h.left - _.left + f.left) / v.x,
|
|
32443
|
+
right: (_.right - h.right + f.right) / v.x
|
|
32436
32444
|
};
|
|
32437
32445
|
}
|
|
32438
32446
|
const cT = (e) => ({
|
|
@@ -32456,10 +32464,10 @@ const cT = (e) => ({
|
|
|
32456
32464
|
const c = tg(p), d = {
|
|
32457
32465
|
x: n,
|
|
32458
32466
|
y: r
|
|
32459
|
-
}, g = Uu(a), f = Pu(g), m = await o.getDimensions(l), y = g === "y",
|
|
32467
|
+
}, g = Uu(a), f = Pu(g), m = await o.getDimensions(l), y = g === "y", h = y ? "top" : "left", S = y ? "bottom" : "right", A = y ? "clientHeight" : "clientWidth", v = i.reference[f] + i.reference[g] - d[g] - i.floating[f], _ = d[g] - i.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
|
|
32460
32468
|
let I = T ? T[A] : 0;
|
|
32461
32469
|
(!I || !await (o.isElement == null ? void 0 : o.isElement(T))) && (I = s.floating[A] || i.floating[f]);
|
|
32462
|
-
const O = v / 2 - _ / 2, M = I / 2 - m[f] / 2 - 1, k = dt(c[
|
|
32470
|
+
const O = v / 2 - _ / 2, M = I / 2 - m[f] / 2 - 1, k = dt(c[h], M), C = dt(c[S], M), x = k, L = I - m[f] - C, U = I / 2 - m[f] / 2 + O, B = ua(x, U, L), G = !u.arrow && qt(a) != null && U !== B && i.reference[f] / 2 - (U < x ? k : C) - m[f] / 2 < 0, z = G ? U < x ? U - x : U - L : 0;
|
|
32463
32471
|
return {
|
|
32464
32472
|
[g]: d[g] + z,
|
|
32465
32473
|
data: {
|
|
@@ -32496,11 +32504,11 @@ const cT = (e) => ({
|
|
|
32496
32504
|
} = nt(e, t);
|
|
32497
32505
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
32498
32506
|
return {};
|
|
32499
|
-
const
|
|
32507
|
+
const h = rt(a), S = qe(s), A = rt(s) === s, v = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), _ = d || (A || !m ? [Yn(s)] : rT(s)), T = f !== "none";
|
|
32500
32508
|
!d && T && _.push(...sT(s, m, f, v));
|
|
32501
32509
|
const I = [s, ..._], O = await dn(t, y), M = [];
|
|
32502
32510
|
let k = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
32503
|
-
if (p && M.push(O[
|
|
32511
|
+
if (p && M.push(O[h]), c) {
|
|
32504
32512
|
const U = nT(a, o, v);
|
|
32505
32513
|
M.push(O[U[0]], O[U[1]]);
|
|
32506
32514
|
}
|
|
@@ -32671,11 +32679,11 @@ const fT = function(e) {
|
|
|
32671
32679
|
limiter: s = {
|
|
32672
32680
|
fn: (y) => {
|
|
32673
32681
|
let {
|
|
32674
|
-
x:
|
|
32682
|
+
x: h,
|
|
32675
32683
|
y: S
|
|
32676
32684
|
} = y;
|
|
32677
32685
|
return {
|
|
32678
|
-
x:
|
|
32686
|
+
x: h,
|
|
32679
32687
|
y: S
|
|
32680
32688
|
};
|
|
32681
32689
|
}
|
|
@@ -32687,11 +32695,11 @@ const fT = function(e) {
|
|
|
32687
32695
|
}, p = await dn(t, u), c = qe(rt(a)), d = Fu(c);
|
|
32688
32696
|
let g = l[d], f = l[c];
|
|
32689
32697
|
if (i) {
|
|
32690
|
-
const y = d === "y" ? "top" : "left",
|
|
32698
|
+
const y = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", S = g + p[y], A = g - p[h];
|
|
32691
32699
|
g = ua(S, g, A);
|
|
32692
32700
|
}
|
|
32693
32701
|
if (o) {
|
|
32694
|
-
const y = c === "y" ? "top" : "left",
|
|
32702
|
+
const y = c === "y" ? "top" : "left", h = c === "y" ? "bottom" : "right", S = f + p[y], A = f - p[h];
|
|
32695
32703
|
f = ua(S, f, A);
|
|
32696
32704
|
}
|
|
32697
32705
|
const m = s.fn({
|
|
@@ -32744,8 +32752,8 @@ const fT = function(e) {
|
|
|
32744
32752
|
g < v ? g = v : g > _ && (g = _);
|
|
32745
32753
|
}
|
|
32746
32754
|
if (l) {
|
|
32747
|
-
var
|
|
32748
|
-
const A = d === "y" ? "width" : "height", v = ng.has(rt(a)), _ = i.reference[c] - i.floating[A] + (v && ((
|
|
32755
|
+
var h, S;
|
|
32756
|
+
const A = d === "y" ? "width" : "height", v = ng.has(rt(a)), _ = i.reference[c] - i.floating[A] + (v && ((h = o.offset) == null ? void 0 : h[c]) || 0) + (v ? 0 : y.crossAxis), T = i.reference[c] + i.reference[A] + (v ? 0 : ((S = o.offset) == null ? void 0 : S[c]) || 0) - (v ? y.crossAxis : 0);
|
|
32749
32757
|
f < _ ? f = _ : f > T && (f = T);
|
|
32750
32758
|
}
|
|
32751
32759
|
return {
|
|
@@ -32773,9 +32781,9 @@ const fT = function(e) {
|
|
|
32773
32781
|
width: f,
|
|
32774
32782
|
height: m
|
|
32775
32783
|
} = i.floating;
|
|
32776
|
-
let y,
|
|
32777
|
-
c === "top" || c === "bottom" ? (y = c,
|
|
32778
|
-
const S = m - p.top - p.bottom, A = f - p.left - p.right, v = dt(m - p[y], S), _ = dt(f - p[
|
|
32784
|
+
let y, h;
|
|
32785
|
+
c === "top" || c === "bottom" ? (y = c, h = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (h = c, y = d === "end" ? "top" : "bottom");
|
|
32786
|
+
const S = m - p.top - p.bottom, A = f - p.left - p.right, v = dt(m - p[y], S), _ = dt(f - p[h], A), T = !t.middlewareData.shift;
|
|
32779
32787
|
let I = v, O = _;
|
|
32780
32788
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = A), (r = t.middlewareData.shift) != null && r.enabled.y && (I = S), T && !d) {
|
|
32781
32789
|
const k = xe(p.left, 0), C = xe(p.right, 0), x = xe(p.top, 0), L = xe(p.bottom, 0);
|
|
@@ -32812,7 +32820,7 @@ function Qe(e) {
|
|
|
32812
32820
|
function rg(e) {
|
|
32813
32821
|
return gr() ? e instanceof Node || e instanceof Le(e).Node : !1;
|
|
32814
32822
|
}
|
|
32815
|
-
function
|
|
32823
|
+
function ze(e) {
|
|
32816
32824
|
return gr() ? e instanceof Element || e instanceof Le(e).Element : !1;
|
|
32817
32825
|
}
|
|
32818
32826
|
function Ke(e) {
|
|
@@ -32828,7 +32836,7 @@ function An(e) {
|
|
|
32828
32836
|
overflowX: n,
|
|
32829
32837
|
overflowY: r,
|
|
32830
32838
|
display: a
|
|
32831
|
-
} =
|
|
32839
|
+
} = Ge(e);
|
|
32832
32840
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !yT.has(a);
|
|
32833
32841
|
}
|
|
32834
32842
|
const ET = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -32847,7 +32855,7 @@ function fr(e) {
|
|
|
32847
32855
|
}
|
|
32848
32856
|
const AT = ["transform", "translate", "scale", "rotate", "perspective"], TT = ["transform", "translate", "scale", "rotate", "perspective", "filter"], kT = ["paint", "layout", "strict", "content"];
|
|
32849
32857
|
function Bu(e) {
|
|
32850
|
-
const t = $u(), n =
|
|
32858
|
+
const t = $u(), n = ze(e) ? Ge(e) : e;
|
|
32851
32859
|
return AT.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || TT.some((r) => (n.willChange || "").includes(r)) || kT.some((r) => (n.contain || "").includes(r));
|
|
32852
32860
|
}
|
|
32853
32861
|
function vT(e) {
|
|
@@ -32868,11 +32876,11 @@ const _T = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
32868
32876
|
function Pt(e) {
|
|
32869
32877
|
return _T.has(Yt(e));
|
|
32870
32878
|
}
|
|
32871
|
-
function
|
|
32879
|
+
function Ge(e) {
|
|
32872
32880
|
return Le(e).getComputedStyle(e);
|
|
32873
32881
|
}
|
|
32874
32882
|
function mr(e) {
|
|
32875
|
-
return
|
|
32883
|
+
return ze(e) ? {
|
|
32876
32884
|
scrollLeft: e.scrollLeft,
|
|
32877
32885
|
scrollTop: e.scrollTop
|
|
32878
32886
|
} : {
|
|
@@ -32910,7 +32918,7 @@ function da(e) {
|
|
|
32910
32918
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
32911
32919
|
}
|
|
32912
32920
|
function ig(e) {
|
|
32913
|
-
const t =
|
|
32921
|
+
const t = Ge(e);
|
|
32914
32922
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
32915
32923
|
const a = Ke(e), i = a ? e.offsetWidth : n, o = a ? e.offsetHeight : r, s = qn(n) !== i || qn(r) !== o;
|
|
32916
32924
|
return s && (n = i, r = o), {
|
|
@@ -32920,7 +32928,7 @@ function ig(e) {
|
|
|
32920
32928
|
};
|
|
32921
32929
|
}
|
|
32922
32930
|
function zu(e) {
|
|
32923
|
-
return
|
|
32931
|
+
return ze(e) ? e : e.contextElement;
|
|
32924
32932
|
}
|
|
32925
32933
|
function Lt(e) {
|
|
32926
32934
|
const t = zu(e);
|
|
@@ -32952,14 +32960,14 @@ function St(e, t, n, r) {
|
|
|
32952
32960
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
32953
32961
|
const a = e.getBoundingClientRect(), i = zu(e);
|
|
32954
32962
|
let o = Ye(1);
|
|
32955
|
-
t && (r ?
|
|
32963
|
+
t && (r ? ze(r) && (o = Lt(r)) : o = Lt(e));
|
|
32956
32964
|
const s = IT(i, n, r) ? og(i) : Ye(0);
|
|
32957
32965
|
let u = (a.left + s.x) / o.x, l = (a.top + s.y) / o.y, p = a.width / o.x, c = a.height / o.y;
|
|
32958
32966
|
if (i) {
|
|
32959
|
-
const d = Le(i), g = r &&
|
|
32967
|
+
const d = Le(i), g = r && ze(r) ? Le(r) : r;
|
|
32960
32968
|
let f = d, m = da(f);
|
|
32961
32969
|
for (; m && r && g !== f; ) {
|
|
32962
|
-
const y = Lt(m),
|
|
32970
|
+
const y = Lt(m), h = m.getBoundingClientRect(), S = Ge(m), A = h.left + (m.clientLeft + parseFloat(S.paddingLeft)) * y.x, v = h.top + (m.clientTop + parseFloat(S.paddingTop)) * y.y;
|
|
32963
32971
|
u *= y.x, l *= y.y, p *= y.x, c *= y.y, u += A, l += v, f = Le(m), m = da(f);
|
|
32964
32972
|
}
|
|
32965
32973
|
}
|
|
@@ -33015,7 +33023,7 @@ function xT(e) {
|
|
|
33015
33023
|
const t = Qe(e), n = mr(e), r = e.ownerDocument.body, a = xe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = xe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
33016
33024
|
let o = -n.scrollLeft + br(e);
|
|
33017
33025
|
const s = -n.scrollTop;
|
|
33018
|
-
return
|
|
33026
|
+
return Ge(r).direction === "rtl" && (o += xe(t.clientWidth, r.clientWidth) - a), {
|
|
33019
33027
|
width: a,
|
|
33020
33028
|
height: i,
|
|
33021
33029
|
x: o,
|
|
@@ -33059,7 +33067,7 @@ function bd(e, t, n) {
|
|
|
33059
33067
|
r = OT(e, n);
|
|
33060
33068
|
else if (t === "document")
|
|
33061
33069
|
r = xT(Qe(e));
|
|
33062
|
-
else if (
|
|
33070
|
+
else if (ze(t))
|
|
33063
33071
|
r = DT(t, n);
|
|
33064
33072
|
else {
|
|
33065
33073
|
const a = og(e);
|
|
@@ -33074,17 +33082,17 @@ function bd(e, t, n) {
|
|
|
33074
33082
|
}
|
|
33075
33083
|
function lg(e, t) {
|
|
33076
33084
|
const n = pt(e);
|
|
33077
|
-
return n === t ||
|
|
33085
|
+
return n === t || !ze(n) || Pt(n) ? !1 : Ge(n).position === "fixed" || lg(n, t);
|
|
33078
33086
|
}
|
|
33079
33087
|
function MT(e, t) {
|
|
33080
33088
|
const n = t.get(e);
|
|
33081
33089
|
if (n)
|
|
33082
33090
|
return n;
|
|
33083
|
-
let r = pn(e, [], !1).filter((s) =>
|
|
33084
|
-
const i =
|
|
33091
|
+
let r = pn(e, [], !1).filter((s) => ze(s) && Yt(s) !== "body"), a = null;
|
|
33092
|
+
const i = Ge(e).position === "fixed";
|
|
33085
33093
|
let o = i ? pt(e) : e;
|
|
33086
|
-
for (;
|
|
33087
|
-
const s =
|
|
33094
|
+
for (; ze(o) && !Pt(o); ) {
|
|
33095
|
+
const s = Ge(o), u = Bu(o);
|
|
33088
33096
|
!u && s.position === "fixed" && (a = null), (i ? !u && !a : !u && s.position === "static" && !!a && LT.has(a.position) || An(o) && !u && lg(e, o)) ? r = r.filter((p) => p !== o) : a = s, o = pt(o);
|
|
33089
33097
|
}
|
|
33090
33098
|
return t.set(e, r), r;
|
|
@@ -33142,10 +33150,10 @@ function UT(e, t, n) {
|
|
|
33142
33150
|
};
|
|
33143
33151
|
}
|
|
33144
33152
|
function Ur(e) {
|
|
33145
|
-
return
|
|
33153
|
+
return Ge(e).position === "static";
|
|
33146
33154
|
}
|
|
33147
33155
|
function hd(e, t) {
|
|
33148
|
-
if (!Ke(e) ||
|
|
33156
|
+
if (!Ke(e) || Ge(e).position === "fixed")
|
|
33149
33157
|
return null;
|
|
33150
33158
|
if (t)
|
|
33151
33159
|
return t(e);
|
|
@@ -33159,7 +33167,7 @@ function ug(e, t) {
|
|
|
33159
33167
|
if (!Ke(e)) {
|
|
33160
33168
|
let a = pt(e);
|
|
33161
33169
|
for (; a && !Pt(a); ) {
|
|
33162
|
-
if (
|
|
33170
|
+
if (ze(a) && !Ur(a))
|
|
33163
33171
|
return a;
|
|
33164
33172
|
a = pt(a);
|
|
33165
33173
|
}
|
|
@@ -33183,7 +33191,7 @@ const BT = async function(e) {
|
|
|
33183
33191
|
};
|
|
33184
33192
|
};
|
|
33185
33193
|
function $T(e) {
|
|
33186
|
-
return
|
|
33194
|
+
return Ge(e).direction === "rtl";
|
|
33187
33195
|
}
|
|
33188
33196
|
const zT = {
|
|
33189
33197
|
convertOffsetParentRelativeRectToViewportRelativeRect: NT,
|
|
@@ -33194,7 +33202,7 @@ const zT = {
|
|
|
33194
33202
|
getClientRects: CT,
|
|
33195
33203
|
getDimensions: PT,
|
|
33196
33204
|
getScale: Lt,
|
|
33197
|
-
isElement:
|
|
33205
|
+
isElement: ze,
|
|
33198
33206
|
isRTL: $T
|
|
33199
33207
|
};
|
|
33200
33208
|
function cg(e, t) {
|
|
@@ -33217,8 +33225,8 @@ function GT(e, t) {
|
|
|
33217
33225
|
} = l;
|
|
33218
33226
|
if (s || t(), !d || !g)
|
|
33219
33227
|
return;
|
|
33220
|
-
const f = Nn(c), m = Nn(a.clientWidth - (p + d)), y = Nn(a.clientHeight - (c + g)),
|
|
33221
|
-
rootMargin: -f + "px " + -m + "px " + -y + "px " + -
|
|
33228
|
+
const f = Nn(c), m = Nn(a.clientWidth - (p + d)), y = Nn(a.clientHeight - (c + g)), h = Nn(p), A = {
|
|
33229
|
+
rootMargin: -f + "px " + -m + "px " + -y + "px " + -h + "px",
|
|
33222
33230
|
threshold: xe(0, dt(1, u)) || 1
|
|
33223
33231
|
};
|
|
33224
33232
|
let v = !0;
|
|
@@ -33255,15 +33263,15 @@ function HT(e, t, n, r) {
|
|
|
33255
33263
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
33256
33264
|
animationFrame: u = !1
|
|
33257
33265
|
} = r, l = zu(e), p = a || i ? [...l ? pn(l) : [], ...pn(t)] : [];
|
|
33258
|
-
p.forEach((
|
|
33259
|
-
a &&
|
|
33266
|
+
p.forEach((h) => {
|
|
33267
|
+
a && h.addEventListener("scroll", n, {
|
|
33260
33268
|
passive: !0
|
|
33261
|
-
}), i &&
|
|
33269
|
+
}), i && h.addEventListener("resize", n);
|
|
33262
33270
|
});
|
|
33263
33271
|
const c = l && s ? GT(l, n) : null;
|
|
33264
33272
|
let d = -1, g = null;
|
|
33265
|
-
o && (g = new ResizeObserver((
|
|
33266
|
-
let [S] =
|
|
33273
|
+
o && (g = new ResizeObserver((h) => {
|
|
33274
|
+
let [S] = h;
|
|
33267
33275
|
S && S.target === l && g && (g.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
33268
33276
|
var A;
|
|
33269
33277
|
(A = g) == null || A.observe(t);
|
|
@@ -33272,14 +33280,14 @@ function HT(e, t, n, r) {
|
|
|
33272
33280
|
let f, m = u ? St(e) : null;
|
|
33273
33281
|
u && y();
|
|
33274
33282
|
function y() {
|
|
33275
|
-
const
|
|
33276
|
-
m && !cg(m,
|
|
33283
|
+
const h = St(e);
|
|
33284
|
+
m && !cg(m, h) && n(), m = h, f = requestAnimationFrame(y);
|
|
33277
33285
|
}
|
|
33278
33286
|
return n(), () => {
|
|
33279
|
-
var
|
|
33287
|
+
var h;
|
|
33280
33288
|
p.forEach((S) => {
|
|
33281
33289
|
a && S.removeEventListener("scroll", n), i && S.removeEventListener("resize", n);
|
|
33282
|
-
}), c == null || c(), (
|
|
33290
|
+
}), c == null || c(), (h = g) == null || h.disconnect(), g = null, u && cancelAnimationFrame(f);
|
|
33283
33291
|
};
|
|
33284
33292
|
}
|
|
33285
33293
|
const jT = fT, VT = mT, WT = dT, qT = hT, YT = pT, yd = cT, KT = bT, XT = (e, t, n) => {
|
|
@@ -33363,10 +33371,10 @@ function JT(e) {
|
|
|
33363
33371
|
isPositioned: !1
|
|
33364
33372
|
}), [d, g] = R.useState(r);
|
|
33365
33373
|
Xn(d, r) || g(r);
|
|
33366
|
-
const [f, m] = R.useState(null), [y,
|
|
33374
|
+
const [f, m] = R.useState(null), [y, h] = R.useState(null), S = R.useCallback(($) => {
|
|
33367
33375
|
$ !== T.current && (T.current = $, m($));
|
|
33368
33376
|
}, []), A = R.useCallback(($) => {
|
|
33369
|
-
$ !== I.current && (I.current = $,
|
|
33377
|
+
$ !== I.current && (I.current = $, h($));
|
|
33370
33378
|
}, []), v = i || f, _ = o || y, T = R.useRef(null), I = R.useRef(null), O = R.useRef(p), M = u != null, k = Br(u), C = Br(a), x = Br(l), L = R.useCallback(() => {
|
|
33371
33379
|
if (!T.current || !I.current)
|
|
33372
33380
|
return;
|
|
@@ -33541,7 +33549,7 @@ var hg = "PopperAnchor", yg = R.forwardRef(
|
|
|
33541
33549
|
yg.displayName = hg;
|
|
33542
33550
|
var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
|
|
33543
33551
|
(e, t) => {
|
|
33544
|
-
var _e, de, Ae,
|
|
33552
|
+
var _e, de, Ae, j, Z, Re;
|
|
33545
33553
|
const {
|
|
33546
33554
|
__scopePopper: n,
|
|
33547
33555
|
side: r = "bottom",
|
|
@@ -33557,7 +33565,7 @@ var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
|
|
|
33557
33565
|
updatePositionStrategy: g = "optimized",
|
|
33558
33566
|
onPlaced: f,
|
|
33559
33567
|
...m
|
|
33560
|
-
} = e, y = mg(Hu, n), [
|
|
33568
|
+
} = e, y = mg(Hu, n), [h, S] = R.useState(null), A = ft(t, (oe) => S(oe)), [v, _] = R.useState(null), T = ck(v), I = (T == null ? void 0 : T.width) ?? 0, O = (T == null ? void 0 : T.height) ?? 0, M = r + (i !== "center" ? "-" + i : ""), k = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, C = Array.isArray(l) ? l : [l], x = C.length > 0, L = {
|
|
33561
33569
|
padding: k,
|
|
33562
33570
|
boundary: C.filter(mk),
|
|
33563
33571
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -33584,8 +33592,8 @@ var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
|
|
|
33584
33592
|
ik({
|
|
33585
33593
|
...L,
|
|
33586
33594
|
apply: ({ elements: oe, rects: Ie, availableWidth: Je, availableHeight: Pe }) => {
|
|
33587
|
-
const { width:
|
|
33588
|
-
De.setProperty("--radix-popper-available-width", `${Je}px`), De.setProperty("--radix-popper-available-height", `${Pe}px`), De.setProperty("--radix-popper-anchor-width", `${
|
|
33595
|
+
const { width: He, height: kt } = Ie.reference, De = oe.floating.style;
|
|
33596
|
+
De.setProperty("--radix-popper-available-width", `${Je}px`), De.setProperty("--radix-popper-available-height", `${Pe}px`), De.setProperty("--radix-popper-anchor-width", `${He}px`), De.setProperty("--radix-popper-anchor-height", `${kt}px`);
|
|
33589
33597
|
}
|
|
33590
33598
|
}),
|
|
33591
33599
|
v && sk({ element: v, padding: s }),
|
|
@@ -33598,8 +33606,8 @@ var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
|
|
|
33598
33606
|
}, [z, K]);
|
|
33599
33607
|
const te = (_e = $.arrow) == null ? void 0 : _e.x, w = (de = $.arrow) == null ? void 0 : de.y, ue = ((Ae = $.arrow) == null ? void 0 : Ae.centerOffset) !== 0, [ce, ie] = R.useState();
|
|
33600
33608
|
return ct(() => {
|
|
33601
|
-
|
|
33602
|
-
}, [
|
|
33609
|
+
h && ie(window.getComputedStyle(h).zIndex);
|
|
33610
|
+
}, [h]), /* @__PURE__ */ P(
|
|
33603
33611
|
"div",
|
|
33604
33612
|
{
|
|
33605
33613
|
ref: U.setFloating,
|
|
@@ -33611,7 +33619,7 @@ var Hu = "PopperContent", [pk, gk] = gg(Hu), Eg = R.forwardRef(
|
|
|
33611
33619
|
minWidth: "max-content",
|
|
33612
33620
|
zIndex: ce,
|
|
33613
33621
|
"--radix-popper-transform-origin": [
|
|
33614
|
-
(
|
|
33622
|
+
(j = $.transformOrigin) == null ? void 0 : j.x,
|
|
33615
33623
|
(Z = $.transformOrigin) == null ? void 0 : Z.y
|
|
33616
33624
|
].join(" "),
|
|
33617
33625
|
// hide the content if using the hide middleware and should be hidden
|
|
@@ -33712,8 +33720,8 @@ var bk = (e) => ({
|
|
|
33712
33720
|
name: "transformOrigin",
|
|
33713
33721
|
options: e,
|
|
33714
33722
|
fn(t) {
|
|
33715
|
-
var y,
|
|
33716
|
-
const { placement: n, rects: r, middlewareData: a } = t, o = ((y = a.arrow) == null ? void 0 : y.centerOffset) !== 0, s = o ? 0 : e.arrowWidth, u = o ? 0 : e.arrowHeight, [l, p] = Ag(n), c = { start: "0%", center: "50%", end: "100%" }[p], d = (((
|
|
33723
|
+
var y, h, S;
|
|
33724
|
+
const { placement: n, rects: r, middlewareData: a } = t, o = ((y = a.arrow) == null ? void 0 : y.centerOffset) !== 0, s = o ? 0 : e.arrowWidth, u = o ? 0 : e.arrowHeight, [l, p] = Ag(n), c = { start: "0%", center: "50%", end: "100%" }[p], d = (((h = a.arrow) == null ? void 0 : h.x) ?? 0) + s / 2, g = (((S = a.arrow) == null ? void 0 : S.y) ?? 0) + u / 2;
|
|
33717
33725
|
let f = "", m = "";
|
|
33718
33726
|
return l === "bottom" ? (f = o ? c : `${d}px`, m = `${-u}px`) : l === "top" ? (f = o ? c : `${d}px`, m = `${r.floating.height + u}px`) : l === "right" ? (f = `${-u}px`, m = o ? c : `${g}px`) : l === "left" && (f = `${r.floating.width + u}px`, m = o ? c : `${g}px`), { data: { x: f, y: m } };
|
|
33719
33727
|
}
|
|
@@ -33875,8 +33883,8 @@ var Ik = function(e) {
|
|
|
33875
33883
|
try {
|
|
33876
33884
|
var g = d.getAttribute(r), f = g !== null && g !== "false", m = (Rt.get(d) || 0) + 1, y = (i.get(d) || 0) + 1;
|
|
33877
33885
|
Rt.set(d, m), i.set(d, y), o.push(d), m === 1 && f && xn.set(d, !0), y === 1 && d.setAttribute(n, "true"), f || d.setAttribute(r, "true");
|
|
33878
|
-
} catch (
|
|
33879
|
-
console.error("aria-hidden: cannot operate on ", d,
|
|
33886
|
+
} catch (h) {
|
|
33887
|
+
console.error("aria-hidden: cannot operate on ", d, h);
|
|
33880
33888
|
}
|
|
33881
33889
|
});
|
|
33882
33890
|
};
|
|
@@ -33892,14 +33900,14 @@ var Ik = function(e) {
|
|
|
33892
33900
|
return a ? (r.push.apply(r, Array.from(a.querySelectorAll("[aria-live], script"))), Ck(r, a, n, "aria-hidden")) : function() {
|
|
33893
33901
|
return null;
|
|
33894
33902
|
};
|
|
33895
|
-
},
|
|
33896
|
-
return
|
|
33903
|
+
}, We = function() {
|
|
33904
|
+
return We = Object.assign || function(t) {
|
|
33897
33905
|
for (var n, r = 1, a = arguments.length; r < a; r++) {
|
|
33898
33906
|
n = arguments[r];
|
|
33899
33907
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
33900
33908
|
}
|
|
33901
33909
|
return t;
|
|
33902
|
-
},
|
|
33910
|
+
}, We.apply(this, arguments);
|
|
33903
33911
|
};
|
|
33904
33912
|
function _g(e, t) {
|
|
33905
33913
|
var n = {};
|
|
@@ -34020,7 +34028,7 @@ function Bk(e, t) {
|
|
|
34020
34028
|
function $k(e) {
|
|
34021
34029
|
e === void 0 && (e = {});
|
|
34022
34030
|
var t = Bk(null);
|
|
34023
|
-
return t.options =
|
|
34031
|
+
return t.options = We({ async: !0, ssr: !1 }, e), t;
|
|
34024
34032
|
}
|
|
34025
34033
|
var Rg = function(e) {
|
|
34026
34034
|
var t = e.sideCar, n = _g(e, ["sideCar"]);
|
|
@@ -34029,7 +34037,7 @@ var Rg = function(e) {
|
|
|
34029
34037
|
var r = t.read();
|
|
34030
34038
|
if (!r)
|
|
34031
34039
|
throw new Error("Sidecar medium not found");
|
|
34032
|
-
return R.createElement(r,
|
|
34040
|
+
return R.createElement(r, We({}, n));
|
|
34033
34041
|
};
|
|
34034
34042
|
Rg.isSideCarExport = !0;
|
|
34035
34043
|
function zk(e, t) {
|
|
@@ -34041,12 +34049,12 @@ var Ig = $k(), Gr = function() {
|
|
|
34041
34049
|
onScrollCapture: Gr,
|
|
34042
34050
|
onWheelCapture: Gr,
|
|
34043
34051
|
onTouchMoveCapture: Gr
|
|
34044
|
-
}), a = r[0], i = r[1], o = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, g = e.noRelative, f = e.noIsolation, m = e.inert, y = e.allowPinchZoom,
|
|
34052
|
+
}), a = r[0], i = r[1], o = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, g = e.noRelative, f = e.noIsolation, m = e.inert, y = e.allowPinchZoom, h = e.as, S = h === void 0 ? "div" : h, A = e.gapMode, v = _g(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, T = Pk([n, t]), I = We(We({}, v), a);
|
|
34045
34053
|
return R.createElement(
|
|
34046
34054
|
R.Fragment,
|
|
34047
34055
|
null,
|
|
34048
34056
|
p && R.createElement(_, { sideCar: Ig, removeScrollBar: l, shards: c, noRelative: g, noIsolation: f, inert: m, setCallbacks: i, allowPinchZoom: !!y, lockRef: n, gapMode: A }),
|
|
34049
|
-
o ? R.cloneElement(R.Children.only(s),
|
|
34057
|
+
o ? R.cloneElement(R.Children.only(s), We(We({}, I), { ref: T })) : R.createElement(S, We({}, I, { className: u, ref: T }), s)
|
|
34050
34058
|
);
|
|
34051
34059
|
});
|
|
34052
34060
|
hr.defaultProps = {
|
|
@@ -34248,8 +34256,8 @@ var It = pa ? { passive: !1 } : !1, tv = function(e) {
|
|
|
34248
34256
|
do {
|
|
34249
34257
|
if (!s)
|
|
34250
34258
|
break;
|
|
34251
|
-
var g = Og(e, s), f = g[0], m = g[1], y = g[2],
|
|
34252
|
-
(f ||
|
|
34259
|
+
var g = Og(e, s), f = g[0], m = g[1], y = g[2], h = m - y - i * f;
|
|
34260
|
+
(f || h) && xg(e, s) && (c += h, d += f);
|
|
34253
34261
|
var S = s.parentNode;
|
|
34254
34262
|
s = S && S.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? S.host : S;
|
|
34255
34263
|
} while (
|
|
@@ -34292,7 +34300,7 @@ function dv(e) {
|
|
|
34292
34300
|
var s = R.useCallback(function(m, y) {
|
|
34293
34301
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
34294
34302
|
return !o.current.allowPinchZoom;
|
|
34295
|
-
var
|
|
34303
|
+
var h = Dn(m), S = n.current, A = "deltaX" in m ? m.deltaX : S[0] - h[0], v = "deltaY" in m ? m.deltaY : S[1] - h[1], _, T = m.target, I = Math.abs(A) > Math.abs(v) ? "h" : "v";
|
|
34296
34304
|
if ("touches" in m && I === "h" && T.type === "range")
|
|
34297
34305
|
return !1;
|
|
34298
34306
|
var O = window.getSelection(), M = O && O.anchorNode, k = M ? M === T || M.contains(T) : !1;
|
|
@@ -34310,8 +34318,8 @@ function dv(e) {
|
|
|
34310
34318
|
}, []), u = R.useCallback(function(m) {
|
|
34311
34319
|
var y = m;
|
|
34312
34320
|
if (!(!Nt.length || Nt[Nt.length - 1] !== i)) {
|
|
34313
|
-
var
|
|
34314
|
-
return _.name === y.type && (_.target === y.target || y.target === _.shadowParent) && lv(_.delta,
|
|
34321
|
+
var h = "deltaY" in y ? Td(y) : Dn(y), S = t.current.filter(function(_) {
|
|
34322
|
+
return _.name === y.type && (_.target === y.target || y.target === _.shadowParent) && lv(_.delta, h);
|
|
34315
34323
|
})[0];
|
|
34316
34324
|
if (S && S.should) {
|
|
34317
34325
|
y.cancelable && y.preventDefault();
|
|
@@ -34324,8 +34332,8 @@ function dv(e) {
|
|
|
34324
34332
|
v && y.cancelable && y.preventDefault();
|
|
34325
34333
|
}
|
|
34326
34334
|
}
|
|
34327
|
-
}, []), l = R.useCallback(function(m, y,
|
|
34328
|
-
var A = { name: m, delta: y, target:
|
|
34335
|
+
}, []), l = R.useCallback(function(m, y, h, S) {
|
|
34336
|
+
var A = { name: m, delta: y, target: h, should: S, shadowParent: pv(h) };
|
|
34329
34337
|
t.current.push(A), setTimeout(function() {
|
|
34330
34338
|
t.current = t.current.filter(function(v) {
|
|
34331
34339
|
return v !== A;
|
|
@@ -34364,7 +34372,7 @@ function pv(e) {
|
|
|
34364
34372
|
}
|
|
34365
34373
|
const gv = zk(Ig, dv);
|
|
34366
34374
|
var Lg = R.forwardRef(function(e, t) {
|
|
34367
|
-
return R.createElement(hr,
|
|
34375
|
+
return R.createElement(hr, We({}, e, { ref: t, sideCar: gv }));
|
|
34368
34376
|
});
|
|
34369
34377
|
Lg.classNames = hr.classNames;
|
|
34370
34378
|
var yr = "Popover", [Dg] = qp(yr, [
|
|
@@ -34626,7 +34634,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34626
34634
|
categoryName: s,
|
|
34627
34635
|
onResetQuery: u
|
|
34628
34636
|
}) => {
|
|
34629
|
-
const l =
|
|
34637
|
+
const l = Be(null), p = Be([]);
|
|
34630
34638
|
if (fa(() => {
|
|
34631
34639
|
if (!a || !l.current) return;
|
|
34632
34640
|
a.getBoundingClientRect();
|
|
@@ -34754,29 +34762,29 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34754
34762
|
memories: o
|
|
34755
34763
|
}) => {
|
|
34756
34764
|
var Ae;
|
|
34757
|
-
const [s, u] = ee(""), [l, p] = ee(""), [c, d] = ee(""), [g, f] = ee(!1), [m, y] = ee(0), [
|
|
34758
|
-
const
|
|
34765
|
+
const [s, u] = ee(""), [l, p] = ee(""), [c, d] = ee(""), [g, f] = ee(!1), [m, y] = ee(0), [h, S] = ee(0), [A, v] = ee(null), [_, T] = ee(0), [I, O] = ee(null), M = Be(null), k = Be(null), C = Be(!1), [x, L] = ee([]), U = Be(/* @__PURE__ */ new Map()), B = rn(() => {
|
|
34766
|
+
const j = /* @__PURE__ */ new Map();
|
|
34759
34767
|
return U.current.forEach((Z, Re) => {
|
|
34760
|
-
|
|
34768
|
+
j.set(Re, Z);
|
|
34761
34769
|
}), o.forEach((Z) => {
|
|
34762
|
-
|
|
34763
|
-
}), Array.from(
|
|
34770
|
+
j.set(Z.id, Z);
|
|
34771
|
+
}), Array.from(j.values()).map((Z) => ({
|
|
34764
34772
|
id: Z.id,
|
|
34765
34773
|
label: Z.title ?? ""
|
|
34766
34774
|
}));
|
|
34767
34775
|
}, [o]);
|
|
34768
34776
|
ke(() => {
|
|
34769
|
-
const
|
|
34777
|
+
const j = setTimeout(() => {
|
|
34770
34778
|
d(l);
|
|
34771
34779
|
}, 300);
|
|
34772
34780
|
return () => {
|
|
34773
|
-
clearTimeout(
|
|
34781
|
+
clearTimeout(j);
|
|
34774
34782
|
};
|
|
34775
34783
|
}, [l]);
|
|
34776
34784
|
const G = rn(() => {
|
|
34777
|
-
const
|
|
34785
|
+
const j = I !== null || l !== "", Z = I === null && l === "";
|
|
34778
34786
|
return [
|
|
34779
|
-
...
|
|
34787
|
+
...j ? o.map((oe) => ({
|
|
34780
34788
|
type: "option",
|
|
34781
34789
|
id: oe.id,
|
|
34782
34790
|
label: oe.title ?? ""
|
|
@@ -34812,8 +34820,8 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34812
34820
|
getCaretPosition: E,
|
|
34813
34821
|
setCaretPosition: K
|
|
34814
34822
|
});
|
|
34815
|
-
function ie(
|
|
34816
|
-
const Z = G[
|
|
34823
|
+
function ie(j) {
|
|
34824
|
+
const Z = G[j];
|
|
34817
34825
|
if (!Z) return;
|
|
34818
34826
|
if (Z.type === "category") {
|
|
34819
34827
|
O(Z.id), p("");
|
|
@@ -34824,9 +34832,9 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34824
34832
|
Re && U.current.set(Re.id, Re);
|
|
34825
34833
|
const oe = s, Ie = oe.slice(0, m), Je = oe.slice(m), Pe = Ie.lastIndexOf("@");
|
|
34826
34834
|
if (Pe === -1) return;
|
|
34827
|
-
const
|
|
34828
|
-
u(
|
|
34829
|
-
w(
|
|
34835
|
+
const He = Ie.slice(0, Pe) + "@" + Z.label + " " + Je, kt = Ie.slice(0, Pe).length + Z.label.length + 2;
|
|
34836
|
+
u(He), e(He), z(He), W(), ce(He), requestAnimationFrame(() => {
|
|
34837
|
+
w(He, !1), requestAnimationFrame(() => {
|
|
34830
34838
|
var De;
|
|
34831
34839
|
(De = M.current) == null || De.focus(), K(kt), y(kt);
|
|
34832
34840
|
});
|
|
@@ -34835,12 +34843,12 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34835
34843
|
const { handleKeyDown: _e } = yA({
|
|
34836
34844
|
onArrowDown: () => {
|
|
34837
34845
|
T(
|
|
34838
|
-
(
|
|
34846
|
+
(j) => (j + 1) % G.length
|
|
34839
34847
|
);
|
|
34840
34848
|
},
|
|
34841
34849
|
onArrowUp: () => {
|
|
34842
34850
|
T(
|
|
34843
|
-
(
|
|
34851
|
+
(j) => (j - 1 + G.length) % G.length
|
|
34844
34852
|
);
|
|
34845
34853
|
},
|
|
34846
34854
|
onEnter: () => {
|
|
@@ -34851,8 +34859,8 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34851
34859
|
}
|
|
34852
34860
|
}), de = le(() => {
|
|
34853
34861
|
if (C.current) return;
|
|
34854
|
-
const
|
|
34855
|
-
u(
|
|
34862
|
+
const j = te(), Z = E();
|
|
34863
|
+
u(j), e(j), z(j), y(Z), $(j, Z), (ue(j) || j.trim() === "") && w(j, !0);
|
|
34856
34864
|
}, [
|
|
34857
34865
|
te,
|
|
34858
34866
|
E,
|
|
@@ -34881,8 +34889,8 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34881
34889
|
{
|
|
34882
34890
|
editableRef: M,
|
|
34883
34891
|
onInput: de,
|
|
34884
|
-
onKeyDown: (
|
|
34885
|
-
g && _e(
|
|
34892
|
+
onKeyDown: (j) => {
|
|
34893
|
+
g && _e(j);
|
|
34886
34894
|
},
|
|
34887
34895
|
isComposingRef: C,
|
|
34888
34896
|
handleInput: de
|
|
@@ -34894,7 +34902,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34894
34902
|
ghostRef: k,
|
|
34895
34903
|
isOpen: g,
|
|
34896
34904
|
value: s,
|
|
34897
|
-
atPosition:
|
|
34905
|
+
atPosition: h,
|
|
34898
34906
|
caretPos: m
|
|
34899
34907
|
}
|
|
34900
34908
|
),
|
|
@@ -34908,12 +34916,12 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34908
34916
|
caretElement: A,
|
|
34909
34917
|
query: l,
|
|
34910
34918
|
isInCategory: I !== null,
|
|
34911
|
-
categoryName: I && ((Ae = i.find((
|
|
34919
|
+
categoryName: I && ((Ae = i.find((j) => j.id === I)) == null ? void 0 : Ae.name) || null,
|
|
34912
34920
|
onResetQuery: () => {
|
|
34913
34921
|
p(""), d(""), I && O(null);
|
|
34914
|
-
const
|
|
34922
|
+
const j = s, Z = j.slice(0, m), Re = j.slice(m), oe = Z.lastIndexOf("@");
|
|
34915
34923
|
if (oe !== -1) {
|
|
34916
|
-
const Ie =
|
|
34924
|
+
const Ie = j.slice(0, oe + 1) + Re, Je = oe + 1;
|
|
34917
34925
|
u(Ie), e(Ie), z(Ie), requestAnimationFrame(() => {
|
|
34918
34926
|
w(Ie, !1), requestAnimationFrame(() => {
|
|
34919
34927
|
var Pe;
|
|
@@ -34932,22 +34940,22 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34932
34940
|
}) => {
|
|
34933
34941
|
const [r, a] = ee(""), [i, o] = ee(null), [s, u] = ee(null), { listFirstPage: l } = cf(), { listFirstPage: p } = uf(), [c, d] = ee(
|
|
34934
34942
|
null
|
|
34935
|
-
), [g, f] = ee(null), [m, y] = ee([]);
|
|
34943
|
+
), [g, f] = ee(null), [m, y] = ee([]), h = Be(!1);
|
|
34936
34944
|
return ke(() => {
|
|
34937
|
-
l({
|
|
34945
|
+
h.current || (h.current = !0, l({
|
|
34938
34946
|
fetchClientSecret: t
|
|
34939
|
-
}).then((
|
|
34940
|
-
|
|
34941
|
-
});
|
|
34942
|
-
}, []), ke(() => {
|
|
34947
|
+
}).then((S) => {
|
|
34948
|
+
S.type === "success" && d(S.page.items);
|
|
34949
|
+
}));
|
|
34950
|
+
}, [l, t]), ke(() => {
|
|
34943
34951
|
i === null && r === "" || p({
|
|
34944
34952
|
fetchClientSecret: n,
|
|
34945
34953
|
typeId: i ?? void 0,
|
|
34946
34954
|
memoryIds: s ?? void 0,
|
|
34947
34955
|
title: r,
|
|
34948
34956
|
meta: {}
|
|
34949
|
-
}).then((
|
|
34950
|
-
|
|
34957
|
+
}).then((S) => {
|
|
34958
|
+
S.type === "success" && f(S.page.items);
|
|
34951
34959
|
});
|
|
34952
34960
|
}, [i, s, r]), /* @__PURE__ */ Fe(
|
|
34953
34961
|
"div",
|
|
@@ -34984,16 +34992,16 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34984
34992
|
{
|
|
34985
34993
|
memoryTypes: c ?? [],
|
|
34986
34994
|
memories: g ?? [],
|
|
34987
|
-
onMemoryTypeChange: (
|
|
34988
|
-
o(
|
|
34995
|
+
onMemoryTypeChange: (S) => {
|
|
34996
|
+
o(S);
|
|
34989
34997
|
},
|
|
34990
|
-
onTitleQueryChange: (
|
|
34991
|
-
a(
|
|
34998
|
+
onTitleQueryChange: (S) => {
|
|
34999
|
+
a(S);
|
|
34992
35000
|
},
|
|
34993
35001
|
onChange: () => {
|
|
34994
35002
|
},
|
|
34995
|
-
onMentionChange: (
|
|
34996
|
-
u(
|
|
35003
|
+
onMentionChange: (S) => {
|
|
35004
|
+
u(S);
|
|
34997
35005
|
},
|
|
34998
35006
|
onChangeMentionPlaceholders: () => {
|
|
34999
35007
|
}
|
|
@@ -35006,7 +35014,7 @@ const Iv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35006
35014
|
function Xv({ fency: e, children: t }) {
|
|
35007
35015
|
const [n, r] = ee(
|
|
35008
35016
|
null
|
|
35009
|
-
), [a, i] = ee(!0), [o, s] = ee(null), [u, l] = ee(null), p =
|
|
35017
|
+
), [a, i] = ee(!0), [o, s] = ee(null), [u, l] = ee(null), p = Be(null);
|
|
35010
35018
|
ke(() => {
|
|
35011
35019
|
e.then((g) => {
|
|
35012
35020
|
r(g), i(!1);
|
|
@@ -35024,17 +35032,17 @@ function Xv({ fency: e, children: t }) {
|
|
|
35024
35032
|
const y = (async () => {
|
|
35025
35033
|
if (!n)
|
|
35026
35034
|
throw new Error("Fency instance not initialized");
|
|
35027
|
-
const
|
|
35035
|
+
const h = await Zg({
|
|
35028
35036
|
pk: n.publishableKey,
|
|
35029
35037
|
baseUrl: n.baseUrl,
|
|
35030
35038
|
request: g
|
|
35031
35039
|
});
|
|
35032
|
-
if (
|
|
35040
|
+
if (h.type === "success") {
|
|
35033
35041
|
const S = {
|
|
35034
|
-
stream:
|
|
35042
|
+
stream: h.stream,
|
|
35035
35043
|
createdAt: Date.now()
|
|
35036
35044
|
};
|
|
35037
|
-
return l(S), p.current = null,
|
|
35045
|
+
return l(S), p.current = null, h.stream;
|
|
35038
35046
|
} else
|
|
35039
35047
|
throw p.current = null, new Error("Failed to create stream");
|
|
35040
35048
|
})();
|