@eleven-labs/design-system 0.30.5 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +1 -1
- package/dist/components/Molecules/PostMetadata/PostMetadata.d.ts +1 -2
- package/dist/constants/tokenVariables.d.ts +1 -1
- package/dist/constants/tokenVariablesDesktop.d.ts +1 -1
- package/dist/helpers/systemPropsHelper/typographySystemClassName.d.ts +1 -1
- package/dist/index.es.js +746 -720
- package/dist/index.umd.cjs +13 -13
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/types/SystemProps/TypographySystemProps.d.ts +5 -1
- package/dist/types/tokenTypes.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as M, jsx as c, Fragment as
|
|
1
|
+
import { jsxs as M, jsx as c, Fragment as Ce } from "react/jsx-runtime";
|
|
2
2
|
import * as nt from "react";
|
|
3
|
-
import
|
|
3
|
+
import ye, { forwardRef as qr, Fragment as rt, useMemo as fn, useRef as Ee, useCallback as xe, useEffect as Pe, cloneElement as Wr, Component as Gr, useLayoutEffect as Yr, useReducer as Xr } from "react";
|
|
4
4
|
const Zr = (e) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...e, children: [
|
|
5
5
|
/* @__PURE__ */ c(
|
|
6
6
|
"path",
|
|
@@ -224,8 +224,8 @@ var mn = { exports: {} };
|
|
|
224
224
|
})();
|
|
225
225
|
})(mn);
|
|
226
226
|
var pi = mn.exports;
|
|
227
|
-
const re = /* @__PURE__ */ Re(pi),
|
|
228
|
-
const xc = ["primary", "secondary", "accent"], Ke =
|
|
227
|
+
const re = /* @__PURE__ */ Re(pi), Me = qr;
|
|
228
|
+
const xc = ["primary", "secondary", "accent"], Ke = Me(
|
|
229
229
|
({ as: e = "button", variant: t = "primary", isChoiceChip: n = !1, className: i, children: o, ...r }, s) => /* @__PURE__ */ M(
|
|
230
230
|
F,
|
|
231
231
|
{
|
|
@@ -659,18 +659,19 @@ const qe = {
|
|
|
659
659
|
height: ["height"],
|
|
660
660
|
hiddenBelow: ["display"],
|
|
661
661
|
hiddenAbove: ["display"]
|
|
662
|
-
},
|
|
662
|
+
}, yi = {
|
|
663
663
|
textAlign: ["text-align"],
|
|
664
664
|
textSize: ["font-size", "line-height"],
|
|
665
665
|
fontWeight: ["font-weight"],
|
|
666
666
|
italic: ["font-style"],
|
|
667
667
|
underline: ["text-decoration"],
|
|
668
|
-
textTransform: ["text-transform"]
|
|
669
|
-
|
|
668
|
+
textTransform: ["text-transform"],
|
|
669
|
+
lineClamp: ["-webkit-line-clamp"]
|
|
670
|
+
}, _i = {
|
|
670
671
|
...vn,
|
|
671
672
|
...vi,
|
|
672
673
|
...gi,
|
|
673
|
-
...
|
|
674
|
+
...yi,
|
|
674
675
|
...bi,
|
|
675
676
|
...hi
|
|
676
677
|
}, Ei = {
|
|
@@ -787,7 +788,7 @@ const qe = {
|
|
|
787
788
|
propValue: e.flex,
|
|
788
789
|
className: "flex"
|
|
789
790
|
})
|
|
790
|
-
),
|
|
791
|
+
), yn = (e) => re(
|
|
791
792
|
Object.entries(e).filter(([t]) => Object.keys(vn).includes(t)).reduce((t, [n, i]) => (t.push(
|
|
792
793
|
...we({
|
|
793
794
|
className: n,
|
|
@@ -797,18 +798,20 @@ const qe = {
|
|
|
797
798
|
), Ti = ({
|
|
798
799
|
textAlign: e,
|
|
799
800
|
textSize: t,
|
|
800
|
-
|
|
801
|
+
lineClamp: n,
|
|
802
|
+
...i
|
|
801
803
|
}) => re(
|
|
802
804
|
...we({
|
|
803
805
|
propValue: e,
|
|
804
806
|
className: "text"
|
|
805
807
|
}),
|
|
806
808
|
{
|
|
807
|
-
[`font-weight-${
|
|
808
|
-
[`text-${
|
|
809
|
-
"text-underline":
|
|
810
|
-
"text-italic":
|
|
811
|
-
[`text-${t}`]: t
|
|
809
|
+
[`font-weight-${i.fontWeight}`]: i.fontWeight,
|
|
810
|
+
[`text-${i.textTransform}`]: i.textTransform,
|
|
811
|
+
"text-underline": i.underline,
|
|
812
|
+
"text-italic": i.italic,
|
|
813
|
+
[`text-${t}`]: t,
|
|
814
|
+
[`line-clamp-${n}`]: n
|
|
812
815
|
}
|
|
813
816
|
), it = (e) => typeof e.props == "object" ? Object.keys(e.props).reduce(
|
|
814
817
|
(t, n) => (e.systemPropNames.includes(n) || (t[n] = e.props[n]), t),
|
|
@@ -816,7 +819,7 @@ const qe = {
|
|
|
816
819
|
) : {}, Ai = (e) => re(
|
|
817
820
|
bn(e),
|
|
818
821
|
Si(e),
|
|
819
|
-
|
|
822
|
+
yn(e),
|
|
820
823
|
Ci(e),
|
|
821
824
|
Mi(e),
|
|
822
825
|
Ti(e)
|
|
@@ -828,7 +831,7 @@ const qe = {
|
|
|
828
831
|
...it({ props: o, systemPropNames: [...Object.keys(hn), "color"] }),
|
|
829
832
|
className: re(
|
|
830
833
|
"icon",
|
|
831
|
-
|
|
834
|
+
yn(o),
|
|
832
835
|
bn(o),
|
|
833
836
|
o == null ? void 0 : o.className
|
|
834
837
|
),
|
|
@@ -838,7 +841,7 @@ const qe = {
|
|
|
838
841
|
}
|
|
839
842
|
);
|
|
840
843
|
};
|
|
841
|
-
const wc = ["website", "blog"],
|
|
844
|
+
const wc = ["website", "blog"], _n = Me(({ name: e, size: t, ...n }, i) => /* @__PURE__ */ M(
|
|
842
845
|
F,
|
|
843
846
|
{
|
|
844
847
|
...n,
|
|
@@ -864,7 +867,7 @@ function He(e, t) {
|
|
|
864
867
|
o = i[r], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
865
868
|
return n;
|
|
866
869
|
}
|
|
867
|
-
function
|
|
870
|
+
function ki(e, t) {
|
|
868
871
|
if (e == null)
|
|
869
872
|
return {};
|
|
870
873
|
var n = He(e, t), i, o;
|
|
@@ -881,7 +884,7 @@ function W0(e, t) {
|
|
|
881
884
|
i[n] = e[n];
|
|
882
885
|
return i;
|
|
883
886
|
}
|
|
884
|
-
function
|
|
887
|
+
function Di(e) {
|
|
885
888
|
if (Array.isArray(e))
|
|
886
889
|
return W0(e);
|
|
887
890
|
}
|
|
@@ -905,7 +908,7 @@ function $i() {
|
|
|
905
908
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
906
909
|
}
|
|
907
910
|
function Bi(e) {
|
|
908
|
-
return
|
|
911
|
+
return Di(e) || Pi(e) || Li(e) || $i();
|
|
909
912
|
}
|
|
910
913
|
function p0(e) {
|
|
911
914
|
"@babel/helpers - typeof";
|
|
@@ -1017,28 +1020,28 @@ function In(e) {
|
|
|
1017
1020
|
if (l === "text")
|
|
1018
1021
|
return u;
|
|
1019
1022
|
if (d) {
|
|
1020
|
-
var p = Ki(n, r),
|
|
1023
|
+
var p = Ki(n, r), E;
|
|
1021
1024
|
if (!r)
|
|
1022
|
-
|
|
1025
|
+
E = i0(i0({}, a), {}, {
|
|
1023
1026
|
className: Tt(a.className)
|
|
1024
1027
|
});
|
|
1025
1028
|
else {
|
|
1026
|
-
var N = Object.keys(n).reduce(function(
|
|
1029
|
+
var N = Object.keys(n).reduce(function(T, h) {
|
|
1027
1030
|
return h.split(".").forEach(function(m) {
|
|
1028
|
-
|
|
1029
|
-
}),
|
|
1030
|
-
}, []),
|
|
1031
|
-
return !N.includes(
|
|
1031
|
+
T.includes(m) || T.push(m);
|
|
1032
|
+
}), T;
|
|
1033
|
+
}, []), A = a.className && a.className.includes("token") ? ["token"] : [], R = a.className && A.concat(a.className.filter(function(T) {
|
|
1034
|
+
return !N.includes(T);
|
|
1032
1035
|
}));
|
|
1033
|
-
|
|
1036
|
+
E = i0(i0({}, a), {}, {
|
|
1034
1037
|
className: Tt(R) || void 0,
|
|
1035
1038
|
style: ji(a.className, Object.assign({}, a.style, o), n)
|
|
1036
1039
|
});
|
|
1037
1040
|
}
|
|
1038
|
-
var
|
|
1039
|
-
return /* @__PURE__ */
|
|
1041
|
+
var y = p(t.children);
|
|
1042
|
+
return /* @__PURE__ */ ye.createElement(d, Y({
|
|
1040
1043
|
key: s
|
|
1041
|
-
},
|
|
1044
|
+
}, E), y);
|
|
1042
1045
|
}
|
|
1043
1046
|
}
|
|
1044
1047
|
const Fi = function(e, t) {
|
|
@@ -1075,7 +1078,7 @@ function Yi(e) {
|
|
|
1075
1078
|
var t = e.lines, n = e.startingLineNumber, i = e.style;
|
|
1076
1079
|
return t.map(function(o, r) {
|
|
1077
1080
|
var s = r + n;
|
|
1078
|
-
return /* @__PURE__ */
|
|
1081
|
+
return /* @__PURE__ */ ye.createElement("span", {
|
|
1079
1082
|
key: "line-".concat(r),
|
|
1080
1083
|
className: "react-syntax-highlighter-line-number",
|
|
1081
1084
|
style: typeof i == "function" ? i(s) : i
|
|
@@ -1088,7 +1091,7 @@ function Xi(e) {
|
|
|
1088
1091
|
float: "left",
|
|
1089
1092
|
paddingRight: "10px"
|
|
1090
1093
|
} : i, r = e.numberStyle, s = r === void 0 ? {} : r, a = e.startingLineNumber;
|
|
1091
|
-
return /* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ ye.createElement("code", {
|
|
1092
1095
|
style: Object.assign({}, n, o)
|
|
1093
1096
|
}, Yi({
|
|
1094
1097
|
lines: t.replace(/\n$/, "").split(`
|
|
@@ -1126,17 +1129,17 @@ function wn(e, t, n) {
|
|
|
1126
1129
|
return r;
|
|
1127
1130
|
}
|
|
1128
1131
|
function x0(e) {
|
|
1129
|
-
var t = e.children, n = e.lineNumber, i = e.lineNumberStyle, o = e.largestLineNumber, r = e.showInlineLineNumbers, s = e.lineProps, a = s === void 0 ? {} : s, l = e.className, d = l === void 0 ? [] : l, u = e.showLineNumbers, p = e.wrapLongLines,
|
|
1130
|
-
if (
|
|
1132
|
+
var t = e.children, n = e.lineNumber, i = e.lineNumberStyle, o = e.largestLineNumber, r = e.showInlineLineNumbers, s = e.lineProps, a = s === void 0 ? {} : s, l = e.className, d = l === void 0 ? [] : l, u = e.showLineNumbers, p = e.wrapLongLines, E = typeof a == "function" ? a(n) : a;
|
|
1133
|
+
if (E.className = d, n && r) {
|
|
1131
1134
|
var N = wn(i, n, o);
|
|
1132
1135
|
t.unshift(xn(n, N));
|
|
1133
1136
|
}
|
|
1134
|
-
return p & u && (
|
|
1137
|
+
return p & u && (E.style = ze(ze({}, E.style), {}, {
|
|
1135
1138
|
display: "flex"
|
|
1136
1139
|
})), {
|
|
1137
1140
|
type: "element",
|
|
1138
1141
|
tagName: "span",
|
|
1139
|
-
properties:
|
|
1142
|
+
properties: E,
|
|
1140
1143
|
children: t
|
|
1141
1144
|
};
|
|
1142
1145
|
}
|
|
@@ -1158,9 +1161,9 @@ function Nn(e) {
|
|
|
1158
1161
|
return n;
|
|
1159
1162
|
}
|
|
1160
1163
|
function Qi(e, t, n, i, o, r, s, a, l) {
|
|
1161
|
-
var d, u = Nn(e.value), p = [],
|
|
1162
|
-
function
|
|
1163
|
-
var
|
|
1164
|
+
var d, u = Nn(e.value), p = [], E = -1, N = 0;
|
|
1165
|
+
function A(f, w) {
|
|
1166
|
+
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1164
1167
|
return x0({
|
|
1165
1168
|
children: f,
|
|
1166
1169
|
lineNumber: w,
|
|
@@ -1168,26 +1171,26 @@ function Qi(e, t, n, i, o, r, s, a, l) {
|
|
|
1168
1171
|
largestLineNumber: s,
|
|
1169
1172
|
showInlineLineNumbers: o,
|
|
1170
1173
|
lineProps: n,
|
|
1171
|
-
className:
|
|
1174
|
+
className: k,
|
|
1172
1175
|
showLineNumbers: i,
|
|
1173
1176
|
wrapLongLines: l
|
|
1174
1177
|
});
|
|
1175
1178
|
}
|
|
1176
1179
|
function R(f, w) {
|
|
1177
1180
|
if (i && w && o) {
|
|
1178
|
-
var
|
|
1179
|
-
f.unshift(xn(w,
|
|
1181
|
+
var k = wn(a, w, s);
|
|
1182
|
+
f.unshift(xn(w, k));
|
|
1180
1183
|
}
|
|
1181
1184
|
return f;
|
|
1182
1185
|
}
|
|
1183
|
-
function
|
|
1184
|
-
var
|
|
1185
|
-
return t ||
|
|
1186
|
+
function y(f, w) {
|
|
1187
|
+
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
1188
|
+
return t || k.length > 0 ? A(f, w, k) : R(f, w);
|
|
1186
1189
|
}
|
|
1187
|
-
for (var
|
|
1188
|
-
var w = u[N],
|
|
1190
|
+
for (var T = function() {
|
|
1191
|
+
var w = u[N], k = w.children[0].value, P = Gi(k);
|
|
1189
1192
|
if (P) {
|
|
1190
|
-
var q =
|
|
1193
|
+
var q = k.split(`
|
|
1191
1194
|
`);
|
|
1192
1195
|
q.forEach(function(U, G) {
|
|
1193
1196
|
var X = i && p.length + r, ne = {
|
|
@@ -1196,10 +1199,10 @@ function Qi(e, t, n, i, o, r, s, a, l) {
|
|
|
1196
1199
|
`)
|
|
1197
1200
|
};
|
|
1198
1201
|
if (G === 0) {
|
|
1199
|
-
var Z = u.slice(
|
|
1202
|
+
var Z = u.slice(E + 1, N).concat(x0({
|
|
1200
1203
|
children: [ne],
|
|
1201
1204
|
className: w.properties.className
|
|
1202
|
-
})), ie =
|
|
1205
|
+
})), ie = y(Z, X);
|
|
1203
1206
|
p.push(ie);
|
|
1204
1207
|
} else if (G === q.length - 1) {
|
|
1205
1208
|
var oe = u[N + 1] && u[N + 1].children && u[N + 1].children[0], W = {
|
|
@@ -1213,22 +1216,22 @@ function Qi(e, t, n, i, o, r, s, a, l) {
|
|
|
1213
1216
|
});
|
|
1214
1217
|
u.splice(N + 1, 0, pe);
|
|
1215
1218
|
} else {
|
|
1216
|
-
var ge = [W], x =
|
|
1219
|
+
var ge = [W], x = y(ge, X, w.properties.className);
|
|
1217
1220
|
p.push(x);
|
|
1218
1221
|
}
|
|
1219
1222
|
} else {
|
|
1220
|
-
var
|
|
1223
|
+
var D = [ne], K = y(D, X, w.properties.className);
|
|
1221
1224
|
p.push(K);
|
|
1222
1225
|
}
|
|
1223
|
-
}),
|
|
1226
|
+
}), E = N;
|
|
1224
1227
|
}
|
|
1225
1228
|
N++;
|
|
1226
1229
|
}; N < u.length; )
|
|
1227
|
-
|
|
1228
|
-
if (
|
|
1229
|
-
var h = u.slice(
|
|
1230
|
+
T();
|
|
1231
|
+
if (E !== u.length - 1) {
|
|
1232
|
+
var h = u.slice(E + 1, u.length);
|
|
1230
1233
|
if (h && h.length) {
|
|
1231
|
-
var m = i && p.length + r, g =
|
|
1234
|
+
var m = i && p.length + r, g = y(h, m);
|
|
1232
1235
|
p.push(g);
|
|
1233
1236
|
}
|
|
1234
1237
|
}
|
|
@@ -1274,9 +1277,9 @@ function to(e, t) {
|
|
|
1274
1277
|
var o = i.language, r = i.children, s = i.style, a = s === void 0 ? t : s, l = i.customStyle, d = l === void 0 ? {} : l, u = i.codeTagProps, p = u === void 0 ? {
|
|
1275
1278
|
className: o ? "language-".concat(o) : void 0,
|
|
1276
1279
|
style: ze(ze({}, a['code[class*="language-"]']), a['code[class*="language-'.concat(o, '"]')])
|
|
1277
|
-
} : u,
|
|
1280
|
+
} : u, E = i.useInlineStyles, N = E === void 0 ? !0 : E, A = i.showLineNumbers, R = A === void 0 ? !1 : A, y = i.showInlineLineNumbers, T = y === void 0 ? !0 : y, h = i.startingLineNumber, m = h === void 0 ? 1 : h, g = i.lineNumberContainerStyle, f = i.lineNumberStyle, w = f === void 0 ? {} : f, k = i.wrapLines, P = i.wrapLongLines, q = P === void 0 ? !1 : P, U = i.lineProps, G = U === void 0 ? {} : U, X = i.renderer, ne = i.PreTag, Z = ne === void 0 ? "pre" : ne, ie = i.CodeTag, oe = ie === void 0 ? "code" : ie, W = i.code, pe = W === void 0 ? (Array.isArray(r) ? r[0] : r) || "" : W, ge = i.astGenerator, x = ki(i, qi);
|
|
1278
1281
|
ge = ge || e;
|
|
1279
|
-
var
|
|
1282
|
+
var D = R ? /* @__PURE__ */ ye.createElement(Xi, {
|
|
1280
1283
|
containerStyle: g,
|
|
1281
1284
|
codeStyle: p.style || {},
|
|
1282
1285
|
numberStyle: w,
|
|
@@ -1295,27 +1298,27 @@ function to(e, t) {
|
|
|
1295
1298
|
}) : p.style = ze(ze({}, p.style), {}, {
|
|
1296
1299
|
whiteSpace: "pre"
|
|
1297
1300
|
}), !ge)
|
|
1298
|
-
return /* @__PURE__ */
|
|
1299
|
-
(
|
|
1300
|
-
var
|
|
1301
|
+
return /* @__PURE__ */ ye.createElement(Z, v, D, /* @__PURE__ */ ye.createElement(oe, p, pe));
|
|
1302
|
+
(k === void 0 && X || q) && (k = !0), X = X || Ji;
|
|
1303
|
+
var _ = [{
|
|
1301
1304
|
type: "text",
|
|
1302
1305
|
value: pe
|
|
1303
|
-
}],
|
|
1306
|
+
}], I = eo({
|
|
1304
1307
|
astGenerator: ge,
|
|
1305
1308
|
language: o,
|
|
1306
1309
|
code: pe,
|
|
1307
|
-
defaultCodeValue:
|
|
1310
|
+
defaultCodeValue: _
|
|
1308
1311
|
});
|
|
1309
|
-
|
|
1310
|
-
var C =
|
|
1311
|
-
return /* @__PURE__ */
|
|
1312
|
+
I.language === null && (I.value = _);
|
|
1313
|
+
var C = I.value.length + m, z = Qi(I, k, G, R, T, m, C, w, q);
|
|
1314
|
+
return /* @__PURE__ */ ye.createElement(Z, v, /* @__PURE__ */ ye.createElement(oe, p, !T && D, X({
|
|
1312
1315
|
rows: z,
|
|
1313
1316
|
stylesheet: a,
|
|
1314
1317
|
useInlineStyles: N
|
|
1315
1318
|
})));
|
|
1316
1319
|
};
|
|
1317
1320
|
}
|
|
1318
|
-
var
|
|
1321
|
+
var n0 = {};
|
|
1319
1322
|
function ot(e) {
|
|
1320
1323
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
1321
1324
|
throw new Error("map is read-only");
|
|
@@ -1328,7 +1331,7 @@ function ot(e) {
|
|
|
1328
1331
|
}
|
|
1329
1332
|
var On = ot, no = ot;
|
|
1330
1333
|
On.default = no;
|
|
1331
|
-
class
|
|
1334
|
+
class kt {
|
|
1332
1335
|
/**
|
|
1333
1336
|
* @param {CompiledMode} mode
|
|
1334
1337
|
*/
|
|
@@ -1352,7 +1355,7 @@ function Ze(e, ...t) {
|
|
|
1352
1355
|
}), /** @type {T} */
|
|
1353
1356
|
n;
|
|
1354
1357
|
}
|
|
1355
|
-
const ro = "</span>",
|
|
1358
|
+
const ro = "</span>", Dt = (e) => !!e.kind;
|
|
1356
1359
|
class io {
|
|
1357
1360
|
/**
|
|
1358
1361
|
* Creates a new HTMLRenderer
|
|
@@ -1375,7 +1378,7 @@ class io {
|
|
|
1375
1378
|
*
|
|
1376
1379
|
* @param {Node} node */
|
|
1377
1380
|
openNode(t) {
|
|
1378
|
-
if (!
|
|
1381
|
+
if (!Dt(t))
|
|
1379
1382
|
return;
|
|
1380
1383
|
let n = t.kind;
|
|
1381
1384
|
t.sublanguage || (n = `${this.classPrefix}${n}`), this.span(n);
|
|
@@ -1385,7 +1388,7 @@ class io {
|
|
|
1385
1388
|
*
|
|
1386
1389
|
* @param {Node} node */
|
|
1387
1390
|
closeNode(t) {
|
|
1388
|
-
|
|
1391
|
+
Dt(t) && (this.buffer += ro);
|
|
1389
1392
|
}
|
|
1390
1393
|
/**
|
|
1391
1394
|
* returns the accumulated buffer
|
|
@@ -1576,7 +1579,7 @@ const go = /\b\B/, Rn = "[a-zA-Z]\\w*", st = "[a-zA-Z_]\\w*", ct = "\\b\\d+(\\.\
|
|
|
1576
1579
|
begin: "(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",
|
|
1577
1580
|
relevance: 0
|
|
1578
1581
|
}), i;
|
|
1579
|
-
},
|
|
1582
|
+
}, yo = A0("//", "$"), _o = A0("/\\*", "\\*/"), Eo = A0("#", "$"), Io = {
|
|
1580
1583
|
className: "number",
|
|
1581
1584
|
begin: ct,
|
|
1582
1585
|
relevance: 0
|
|
@@ -1657,8 +1660,8 @@ var b0 = /* @__PURE__ */ Object.freeze({
|
|
|
1657
1660
|
QUOTE_STRING_MODE: bo,
|
|
1658
1661
|
PHRASAL_WORDS_MODE: Tn,
|
|
1659
1662
|
COMMENT: A0,
|
|
1660
|
-
C_LINE_COMMENT_MODE:
|
|
1661
|
-
C_BLOCK_COMMENT_MODE:
|
|
1663
|
+
C_LINE_COMMENT_MODE: yo,
|
|
1664
|
+
C_BLOCK_COMMENT_MODE: _o,
|
|
1662
1665
|
HASH_COMMENT_MODE: Eo,
|
|
1663
1666
|
NUMBER_MODE: Io,
|
|
1664
1667
|
C_NUMBER_MODE: xo,
|
|
@@ -1676,10 +1679,10 @@ function To(e, t) {
|
|
|
1676
1679
|
function Ao(e, t) {
|
|
1677
1680
|
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = To, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
1678
1681
|
}
|
|
1679
|
-
function
|
|
1682
|
+
function ko(e, t) {
|
|
1680
1683
|
Array.isArray(e.illegal) && (e.illegal = co(...e.illegal));
|
|
1681
1684
|
}
|
|
1682
|
-
function
|
|
1685
|
+
function Do(e, t) {
|
|
1683
1686
|
if (e.match) {
|
|
1684
1687
|
if (e.begin || e.end)
|
|
1685
1688
|
throw new Error("begin & end are not supported with match");
|
|
@@ -1752,7 +1755,7 @@ function Ho(e, { plugins: t }) {
|
|
|
1752
1755
|
const d = this.matcherRe.exec(l);
|
|
1753
1756
|
if (!d)
|
|
1754
1757
|
return null;
|
|
1755
|
-
const u = d.findIndex((
|
|
1758
|
+
const u = d.findIndex((E, N) => N > 0 && E !== void 0), p = this.matchIndexes[u];
|
|
1756
1759
|
return d.splice(0, u), Object.assign(d, p);
|
|
1757
1760
|
}
|
|
1758
1761
|
}
|
|
@@ -1803,12 +1806,12 @@ function Ho(e, { plugins: t }) {
|
|
|
1803
1806
|
[
|
|
1804
1807
|
// do this early so compiler extensions generally don't have to worry about
|
|
1805
1808
|
// the distinction between match/begin
|
|
1806
|
-
|
|
1809
|
+
Do
|
|
1807
1810
|
].forEach((p) => p(a, l)), e.compilerExtensions.forEach((p) => p(a, l)), a.__beforeBegin = null, [
|
|
1808
1811
|
Ao,
|
|
1809
1812
|
// do this later so compiler extensions that come earlier have access to the
|
|
1810
1813
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1811
|
-
|
|
1814
|
+
ko,
|
|
1812
1815
|
// default to 1 relevance if not specified
|
|
1813
1816
|
Po
|
|
1814
1817
|
].forEach((p) => p(a, l)), a.isCompiled = !0;
|
|
@@ -1835,13 +1838,13 @@ function Ho(e, { plugins: t }) {
|
|
|
1835
1838
|
e
|
|
1836
1839
|
);
|
|
1837
1840
|
}
|
|
1838
|
-
function
|
|
1839
|
-
return e ? e.endsWithParent ||
|
|
1841
|
+
function kn(e) {
|
|
1842
|
+
return e ? e.endsWithParent || kn(e.starts) : !1;
|
|
1840
1843
|
}
|
|
1841
1844
|
function zo(e) {
|
|
1842
1845
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
|
|
1843
1846
|
return Ze(e, { variants: null }, t);
|
|
1844
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
1847
|
+
})), e.cachedVariants ? e.cachedVariants : kn(e) ? Ze(e, { starts: e.starts ? Ze(e.starts) : null }) : Object.isFrozen(e) ? Ze(e) : e;
|
|
1845
1848
|
}
|
|
1846
1849
|
var Uo = "10.7.3";
|
|
1847
1850
|
function jo(e) {
|
|
@@ -1926,8 +1929,8 @@ function qo(e, t, n) {
|
|
|
1926
1929
|
return !e.length || !t.length ? e.length ? e : t : e[0].offset !== t[0].offset ? e[0].offset < t[0].offset ? e : t : t[0].event === "start" ? e : t;
|
|
1927
1930
|
}
|
|
1928
1931
|
function a(u) {
|
|
1929
|
-
function p(
|
|
1930
|
-
return " " +
|
|
1932
|
+
function p(E) {
|
|
1933
|
+
return " " + E.nodeName + '="' + s0(E.value) + '"';
|
|
1931
1934
|
}
|
|
1932
1935
|
o += "<" + G0(u) + [].map.call(u.attributes, p).join("") + ">";
|
|
1933
1936
|
}
|
|
@@ -1954,7 +1957,7 @@ const Lt = {}, L0 = (e) => {
|
|
|
1954
1957
|
console.error(e);
|
|
1955
1958
|
}, $t = (e, ...t) => {
|
|
1956
1959
|
console.log(`WARN: ${e}`, ...t);
|
|
1957
|
-
},
|
|
1960
|
+
}, ke = (e, t) => {
|
|
1958
1961
|
Lt[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), Lt[`${e}/${t}`] = !0);
|
|
1959
1962
|
}, $0 = s0, Bt = Ze, Vt = Symbol("nomatch"), Wo = function(e) {
|
|
1960
1963
|
const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = [];
|
|
@@ -1977,26 +1980,26 @@ const Lt = {}, L0 = (e) => {
|
|
|
1977
1980
|
function u(b) {
|
|
1978
1981
|
let v = b.className + " ";
|
|
1979
1982
|
v += b.parentNode ? b.parentNode.className : "";
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
1982
|
-
const
|
|
1983
|
-
return
|
|
1983
|
+
const _ = l.languageDetectRe.exec(v);
|
|
1984
|
+
if (_) {
|
|
1985
|
+
const I = ie(_[1]);
|
|
1986
|
+
return I || ($t(s.replace("{}", _[1])), $t("Falling back to no-highlight mode for this block.", b)), I ? _[1] : "no-highlight";
|
|
1984
1987
|
}
|
|
1985
|
-
return v.split(/\s+/).find((
|
|
1988
|
+
return v.split(/\s+/).find((I) => d(I) || ie(I));
|
|
1986
1989
|
}
|
|
1987
|
-
function p(b, v,
|
|
1990
|
+
function p(b, v, _, I) {
|
|
1988
1991
|
let C = "", z = "";
|
|
1989
|
-
typeof v == "object" ? (C = b,
|
|
1992
|
+
typeof v == "object" ? (C = b, _ = v.ignoreIllegals, z = v.language, I = void 0) : (ke("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ke("10.7.0", `Please use highlight(code, options) instead.
|
|
1990
1993
|
https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
1991
1994
|
const H = {
|
|
1992
1995
|
code: C,
|
|
1993
1996
|
language: z
|
|
1994
1997
|
};
|
|
1995
1998
|
x("before:highlight", H);
|
|
1996
|
-
const B = H.result ? H.result :
|
|
1999
|
+
const B = H.result ? H.result : E(H.language, H.code, _, I);
|
|
1997
2000
|
return B.code = H.code, x("after:highlight", B), B;
|
|
1998
2001
|
}
|
|
1999
|
-
function
|
|
2002
|
+
function E(b, v, _, I) {
|
|
2000
2003
|
function C($, j) {
|
|
2001
2004
|
const te = $e.case_insensitive ? j[0].toLowerCase() : j[0];
|
|
2002
2005
|
return Object.prototype.hasOwnProperty.call($.keywords, te) && $.keywords[te];
|
|
@@ -2035,10 +2038,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2035
2038
|
me.addText(fe);
|
|
2036
2039
|
return;
|
|
2037
2040
|
}
|
|
2038
|
-
$ =
|
|
2041
|
+
$ = E(J.subLanguage, fe, !0, Te[J.subLanguage]), Te[J.subLanguage] = /** @type {CompiledMode} */
|
|
2039
2042
|
$.top;
|
|
2040
2043
|
} else
|
|
2041
|
-
$ =
|
|
2044
|
+
$ = A(fe, J.subLanguage.length ? J.subLanguage : null);
|
|
2042
2045
|
J.relevance > 0 && (Fe += $.relevance), me.addSublanguage($.emitter, $.language);
|
|
2043
2046
|
}
|
|
2044
2047
|
function B() {
|
|
@@ -2051,7 +2054,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2051
2054
|
let ue = uo($.endRe, te);
|
|
2052
2055
|
if (ue) {
|
|
2053
2056
|
if ($["on:end"]) {
|
|
2054
|
-
const Oe = new
|
|
2057
|
+
const Oe = new kt($);
|
|
2055
2058
|
$["on:end"](j, Oe), Oe.isMatchIgnored && (ue = !1);
|
|
2056
2059
|
}
|
|
2057
2060
|
if (ue) {
|
|
@@ -2064,16 +2067,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2064
2067
|
return S($.parent, j, te);
|
|
2065
2068
|
}
|
|
2066
2069
|
function de($) {
|
|
2067
|
-
return J.matcher.regexIndex === 0 ? (fe += $[0], 1) : (
|
|
2070
|
+
return J.matcher.regexIndex === 0 ? (fe += $[0], 1) : (Ae = !0, 0);
|
|
2068
2071
|
}
|
|
2069
2072
|
function L($) {
|
|
2070
|
-
const j = $[0], te = $.rule, ue = new
|
|
2073
|
+
const j = $[0], te = $.rule, ue = new kt(te), Oe = [te.__beforeBegin, te["on:begin"]];
|
|
2071
2074
|
for (const v0 of Oe)
|
|
2072
2075
|
if (v0 && (v0($, ue), ue.isMatchIgnored))
|
|
2073
2076
|
return de(j);
|
|
2074
2077
|
return te && te.endSameAsBegin && (te.endRe = ao(j)), te.skip ? fe += j : (te.excludeBegin && (fe += j), B(), !te.returnBegin && !te.excludeBegin && (fe = j)), Q(te), te.returnBegin ? 0 : j.length;
|
|
2075
2078
|
}
|
|
2076
|
-
function
|
|
2079
|
+
function _e($) {
|
|
2077
2080
|
const j = $[0], te = v.substr($.index), ue = S(J, $, te);
|
|
2078
2081
|
if (!ue)
|
|
2079
2082
|
return Vt;
|
|
@@ -2104,11 +2107,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2104
2107
|
}
|
|
2105
2108
|
if (Le = j, j.type === "begin")
|
|
2106
2109
|
return L(j);
|
|
2107
|
-
if (j.type === "illegal" && !
|
|
2110
|
+
if (j.type === "illegal" && !_) {
|
|
2108
2111
|
const ue = new Error('Illegal lexeme "' + te + '" for mode "' + (J.className || "<unnamed>") + '"');
|
|
2109
2112
|
throw ue.mode = J, ue;
|
|
2110
2113
|
} else if (j.type === "end") {
|
|
2111
|
-
const ue =
|
|
2114
|
+
const ue = _e(j);
|
|
2112
2115
|
if (ue !== Vt)
|
|
2113
2116
|
return ue;
|
|
2114
2117
|
}
|
|
@@ -2122,13 +2125,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2122
2125
|
if (!$e)
|
|
2123
2126
|
throw L0(s.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
2124
2127
|
const Be = Ho($e, { plugins: i });
|
|
2125
|
-
let Xe = "", J =
|
|
2126
|
-
const
|
|
2128
|
+
let Xe = "", J = I || Be;
|
|
2129
|
+
const Te = {}, me = new l.__emitter(l);
|
|
2127
2130
|
be();
|
|
2128
|
-
let fe = "", Fe = 0, Ne = 0, Ve = 0,
|
|
2131
|
+
let fe = "", Fe = 0, Ne = 0, Ve = 0, Ae = !1;
|
|
2129
2132
|
try {
|
|
2130
2133
|
for (J.matcher.considerAll(); ; ) {
|
|
2131
|
-
Ve++,
|
|
2134
|
+
Ve++, Ae ? Ae = !1 : J.matcher.considerAll(), J.matcher.lastIndex = Ne;
|
|
2132
2135
|
const $ = J.matcher.exec(v);
|
|
2133
2136
|
if (!$)
|
|
2134
2137
|
break;
|
|
@@ -2182,13 +2185,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2182
2185
|
};
|
|
2183
2186
|
return v.emitter.addText(b), v;
|
|
2184
2187
|
}
|
|
2185
|
-
function
|
|
2188
|
+
function A(b, v) {
|
|
2186
2189
|
v = v || l.languages || Object.keys(t);
|
|
2187
|
-
const
|
|
2188
|
-
(Q) =>
|
|
2190
|
+
const _ = N(b), I = v.filter(ie).filter(W).map(
|
|
2191
|
+
(Q) => E(Q, b, !1)
|
|
2189
2192
|
);
|
|
2190
|
-
|
|
2191
|
-
const C =
|
|
2193
|
+
I.unshift(_);
|
|
2194
|
+
const C = I.sort((Q, S) => {
|
|
2192
2195
|
if (Q.relevance !== S.relevance)
|
|
2193
2196
|
return S.relevance - Q.relevance;
|
|
2194
2197
|
if (Q.language && S.language) {
|
|
@@ -2205,11 +2208,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2205
2208
|
return l.tabReplace || l.useBR ? b.replace(r, (v) => v === `
|
|
2206
2209
|
` ? l.useBR ? "<br>" : v : l.tabReplace ? v.replace(/\t/g, l.tabReplace) : v) : b;
|
|
2207
2210
|
}
|
|
2208
|
-
function
|
|
2209
|
-
const
|
|
2210
|
-
b.classList.add("hljs"),
|
|
2211
|
+
function y(b, v, _) {
|
|
2212
|
+
const I = v ? n[v] : _;
|
|
2213
|
+
b.classList.add("hljs"), I && b.classList.add(I);
|
|
2211
2214
|
}
|
|
2212
|
-
const
|
|
2215
|
+
const T = {
|
|
2213
2216
|
"before:highlightElement": ({ el: b }) => {
|
|
2214
2217
|
l.useBR && (b.innerHTML = b.innerHTML.replace(/\n/g, "").replace(/<br[ /]*>/g, `
|
|
2215
2218
|
`));
|
|
@@ -2227,15 +2230,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2227
2230
|
};
|
|
2228
2231
|
function g(b) {
|
|
2229
2232
|
let v = null;
|
|
2230
|
-
const
|
|
2231
|
-
if (d(
|
|
2233
|
+
const _ = u(b);
|
|
2234
|
+
if (d(_))
|
|
2232
2235
|
return;
|
|
2233
2236
|
x(
|
|
2234
2237
|
"before:highlightElement",
|
|
2235
|
-
{ el: b, language:
|
|
2238
|
+
{ el: b, language: _ }
|
|
2236
2239
|
), v = b;
|
|
2237
|
-
const
|
|
2238
|
-
x("after:highlightElement", { el: b, result: C, text:
|
|
2240
|
+
const I = v.textContent, C = _ ? p(I, { language: _, ignoreIllegals: !0 }) : A(I);
|
|
2241
|
+
x("after:highlightElement", { el: b, result: C, text: I }), b.innerHTML = C.value, y(b, _, C.language), b.result = {
|
|
2239
2242
|
language: C.language,
|
|
2240
2243
|
// TODO: remove with version 11.0
|
|
2241
2244
|
re: C.relevance,
|
|
@@ -2248,15 +2251,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2248
2251
|
});
|
|
2249
2252
|
}
|
|
2250
2253
|
function f(b) {
|
|
2251
|
-
b.useBR && (
|
|
2254
|
+
b.useBR && (ke("10.3.0", "'useBR' will be removed entirely in v11.0"), ke("10.3.0", "Please see https://github.com/highlightjs/highlight.js/issues/2559")), l = Bt(l, b);
|
|
2252
2255
|
}
|
|
2253
2256
|
const w = () => {
|
|
2254
2257
|
if (w.called)
|
|
2255
2258
|
return;
|
|
2256
|
-
w.called = !0,
|
|
2259
|
+
w.called = !0, ke("10.6.0", "initHighlighting() is deprecated. Use highlightAll() instead."), document.querySelectorAll("pre code").forEach(g);
|
|
2257
2260
|
};
|
|
2258
|
-
function
|
|
2259
|
-
|
|
2261
|
+
function k() {
|
|
2262
|
+
ke("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), P = !0;
|
|
2260
2263
|
}
|
|
2261
2264
|
let P = !1;
|
|
2262
2265
|
function q() {
|
|
@@ -2271,17 +2274,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2271
2274
|
}
|
|
2272
2275
|
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", U, !1);
|
|
2273
2276
|
function G(b, v) {
|
|
2274
|
-
let
|
|
2277
|
+
let _ = null;
|
|
2275
2278
|
try {
|
|
2276
|
-
|
|
2277
|
-
} catch (
|
|
2279
|
+
_ = v(e);
|
|
2280
|
+
} catch (I) {
|
|
2278
2281
|
if (L0("Language definition for '{}' could not be registered.".replace("{}", b)), o)
|
|
2279
|
-
L0(
|
|
2282
|
+
L0(I);
|
|
2280
2283
|
else
|
|
2281
|
-
throw
|
|
2282
|
-
|
|
2284
|
+
throw I;
|
|
2285
|
+
_ = a;
|
|
2283
2286
|
}
|
|
2284
|
-
|
|
2287
|
+
_.name || (_.name = b), t[b] = _, _.rawDefinition = v.bind(null, e), _.aliases && oe(_.aliases, { languageName: b });
|
|
2285
2288
|
}
|
|
2286
2289
|
function X(b) {
|
|
2287
2290
|
delete t[b];
|
|
@@ -2292,7 +2295,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2292
2295
|
return Object.keys(t);
|
|
2293
2296
|
}
|
|
2294
2297
|
function Z(b) {
|
|
2295
|
-
|
|
2298
|
+
ke("10.4.0", "requireLanguage will be removed entirely in v11."), ke("10.4.0", "Please see https://github.com/highlightjs/highlight.js/pull/2844");
|
|
2296
2299
|
const v = ie(b);
|
|
2297
2300
|
if (v)
|
|
2298
2301
|
return v;
|
|
@@ -2302,8 +2305,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2302
2305
|
return b = (b || "").toLowerCase(), t[b] || t[n[b]];
|
|
2303
2306
|
}
|
|
2304
2307
|
function oe(b, { languageName: v }) {
|
|
2305
|
-
typeof b == "string" && (b = [b]), b.forEach((
|
|
2306
|
-
n[
|
|
2308
|
+
typeof b == "string" && (b = [b]), b.forEach((_) => {
|
|
2309
|
+
n[_.toLowerCase()] = v;
|
|
2307
2310
|
});
|
|
2308
2311
|
}
|
|
2309
2312
|
function W(b) {
|
|
@@ -2325,28 +2328,28 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2325
2328
|
pe(b), i.push(b);
|
|
2326
2329
|
}
|
|
2327
2330
|
function x(b, v) {
|
|
2328
|
-
const
|
|
2329
|
-
i.forEach(function(
|
|
2330
|
-
|
|
2331
|
+
const _ = b;
|
|
2332
|
+
i.forEach(function(I) {
|
|
2333
|
+
I[_] && I[_](v);
|
|
2331
2334
|
});
|
|
2332
2335
|
}
|
|
2333
|
-
function
|
|
2334
|
-
return
|
|
2336
|
+
function D(b) {
|
|
2337
|
+
return ke("10.2.0", "fixMarkup will be removed entirely in v11.0"), ke("10.2.0", "Please see https://github.com/highlightjs/highlight.js/issues/2534"), R(b);
|
|
2335
2338
|
}
|
|
2336
2339
|
function K(b) {
|
|
2337
|
-
return
|
|
2340
|
+
return ke("10.7.0", "highlightBlock will be removed entirely in v12.0"), ke("10.7.0", "Please use highlightElement now."), g(b);
|
|
2338
2341
|
}
|
|
2339
2342
|
Object.assign(e, {
|
|
2340
2343
|
highlight: p,
|
|
2341
|
-
highlightAuto:
|
|
2344
|
+
highlightAuto: A,
|
|
2342
2345
|
highlightAll: q,
|
|
2343
|
-
fixMarkup:
|
|
2346
|
+
fixMarkup: D,
|
|
2344
2347
|
highlightElement: g,
|
|
2345
2348
|
// TODO: Remove with v12 API
|
|
2346
2349
|
highlightBlock: K,
|
|
2347
2350
|
configure: f,
|
|
2348
2351
|
initHighlighting: w,
|
|
2349
|
-
initHighlightingOnLoad:
|
|
2352
|
+
initHighlightingOnLoad: k,
|
|
2350
2353
|
registerLanguage: G,
|
|
2351
2354
|
unregisterLanguage: X,
|
|
2352
2355
|
listLanguages: ne,
|
|
@@ -2365,9 +2368,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), z = b, C = v);
|
|
|
2365
2368
|
}, e.versionString = Uo;
|
|
2366
2369
|
for (const b in b0)
|
|
2367
2370
|
typeof b0[b] == "object" && On(b0[b]);
|
|
2368
|
-
return Object.assign(e, b0), e.addPlugin(
|
|
2371
|
+
return Object.assign(e, b0), e.addPlugin(T), e.addPlugin(Fo), e.addPlugin(m), e;
|
|
2369
2372
|
};
|
|
2370
|
-
var Go = Wo({}), Yo = Go,
|
|
2373
|
+
var Go = Wo({}), Yo = Go, Dn = { exports: {} };
|
|
2371
2374
|
(function(e) {
|
|
2372
2375
|
(function() {
|
|
2373
2376
|
var t;
|
|
@@ -2379,53 +2382,53 @@ var Go = Wo({}), Yo = Go, kn = { exports: {} };
|
|
|
2379
2382
|
return o.apply(null, [r].concat(s));
|
|
2380
2383
|
}
|
|
2381
2384
|
function o(r) {
|
|
2382
|
-
for (var s = 1, a = [].slice.call(arguments), l = 0, d = r.length, u = "", p,
|
|
2385
|
+
for (var s = 1, a = [].slice.call(arguments), l = 0, d = r.length, u = "", p, E = !1, N, A, R = !1, y, T = function() {
|
|
2383
2386
|
return a[s++];
|
|
2384
2387
|
}, h = function() {
|
|
2385
2388
|
for (var m = ""; /\d/.test(r[l]); )
|
|
2386
2389
|
m += r[l++], p = r[l];
|
|
2387
2390
|
return m.length > 0 ? parseInt(m) : null;
|
|
2388
2391
|
}; l < d; ++l)
|
|
2389
|
-
if (p = r[l],
|
|
2390
|
-
switch (
|
|
2392
|
+
if (p = r[l], E)
|
|
2393
|
+
switch (E = !1, p == "." ? (R = !1, p = r[++l]) : p == "0" && r[l + 1] == "." ? (R = !0, l += 2, p = r[l]) : R = !0, y = h(), p) {
|
|
2391
2394
|
case "b":
|
|
2392
|
-
u += parseInt(
|
|
2395
|
+
u += parseInt(T(), 10).toString(2);
|
|
2393
2396
|
break;
|
|
2394
2397
|
case "c":
|
|
2395
|
-
N =
|
|
2398
|
+
N = T(), typeof N == "string" || N instanceof String ? u += N : u += String.fromCharCode(parseInt(N, 10));
|
|
2396
2399
|
break;
|
|
2397
2400
|
case "d":
|
|
2398
|
-
u += parseInt(
|
|
2401
|
+
u += parseInt(T(), 10);
|
|
2399
2402
|
break;
|
|
2400
2403
|
case "f":
|
|
2401
|
-
|
|
2404
|
+
A = String(parseFloat(T()).toFixed(y || 6)), u += R ? A : A.replace(/^0/, "");
|
|
2402
2405
|
break;
|
|
2403
2406
|
case "j":
|
|
2404
|
-
u += JSON.stringify(
|
|
2407
|
+
u += JSON.stringify(T());
|
|
2405
2408
|
break;
|
|
2406
2409
|
case "o":
|
|
2407
|
-
u += "0" + parseInt(
|
|
2410
|
+
u += "0" + parseInt(T(), 10).toString(8);
|
|
2408
2411
|
break;
|
|
2409
2412
|
case "s":
|
|
2410
|
-
u +=
|
|
2413
|
+
u += T();
|
|
2411
2414
|
break;
|
|
2412
2415
|
case "x":
|
|
2413
|
-
u += "0x" + parseInt(
|
|
2416
|
+
u += "0x" + parseInt(T(), 10).toString(16);
|
|
2414
2417
|
break;
|
|
2415
2418
|
case "X":
|
|
2416
|
-
u += "0x" + parseInt(
|
|
2419
|
+
u += "0x" + parseInt(T(), 10).toString(16).toUpperCase();
|
|
2417
2420
|
break;
|
|
2418
2421
|
default:
|
|
2419
2422
|
u += p;
|
|
2420
2423
|
break;
|
|
2421
2424
|
}
|
|
2422
2425
|
else
|
|
2423
|
-
p === "%" ?
|
|
2426
|
+
p === "%" ? E = !0 : u += p;
|
|
2424
2427
|
return u;
|
|
2425
2428
|
}
|
|
2426
2429
|
})();
|
|
2427
|
-
})(
|
|
2428
|
-
var Xo =
|
|
2430
|
+
})(Dn);
|
|
2431
|
+
var Xo = Dn.exports, Zo = Xo, Qe = Je(Error), Qo = Qe;
|
|
2429
2432
|
Qe.eval = Je(EvalError);
|
|
2430
2433
|
Qe.range = Je(RangeError);
|
|
2431
2434
|
Qe.reference = Je(ReferenceError);
|
|
@@ -2440,11 +2443,11 @@ function Je(e) {
|
|
|
2440
2443
|
}
|
|
2441
2444
|
}
|
|
2442
2445
|
var Ue = Yo, w0 = Qo;
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2446
|
+
n0.highlight = Pn;
|
|
2447
|
+
n0.highlightAuto = ea;
|
|
2448
|
+
n0.registerLanguage = ta;
|
|
2449
|
+
n0.listLanguages = na;
|
|
2450
|
+
n0.registerAlias = ra;
|
|
2448
2451
|
Ge.prototype.addText = aa;
|
|
2449
2452
|
Ge.prototype.addKeyword = ia;
|
|
2450
2453
|
Ge.prototype.addSublanguage = oa;
|
|
@@ -2532,19 +2535,19 @@ function $n(e) {
|
|
|
2532
2535
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
2533
2536
|
}
|
|
2534
2537
|
function Ht(e) {
|
|
2535
|
-
return
|
|
2538
|
+
return e0("(?=", e, ")");
|
|
2536
2539
|
}
|
|
2537
2540
|
function ua(e) {
|
|
2538
|
-
return
|
|
2541
|
+
return e0("(", e, ")?");
|
|
2539
2542
|
}
|
|
2540
|
-
function
|
|
2543
|
+
function e0(...e) {
|
|
2541
2544
|
return e.map((n) => $n(n)).join("");
|
|
2542
2545
|
}
|
|
2543
2546
|
function da(...e) {
|
|
2544
2547
|
return "(" + e.map((n) => $n(n)).join("|") + ")";
|
|
2545
2548
|
}
|
|
2546
2549
|
function fa(e) {
|
|
2547
|
-
const t =
|
|
2550
|
+
const t = e0(/[A-Z_]/, ua(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/), n = /[A-Za-z0-9._:-]+/, i = {
|
|
2548
2551
|
className: "symbol",
|
|
2549
2552
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
2550
2553
|
}, o = {
|
|
@@ -2714,9 +2717,9 @@ function fa(e) {
|
|
|
2714
2717
|
// open tag
|
|
2715
2718
|
{
|
|
2716
2719
|
className: "tag",
|
|
2717
|
-
begin:
|
|
2720
|
+
begin: e0(
|
|
2718
2721
|
/</,
|
|
2719
|
-
Ht(
|
|
2722
|
+
Ht(e0(
|
|
2720
2723
|
t,
|
|
2721
2724
|
// <tag/>
|
|
2722
2725
|
// <tag>
|
|
@@ -2737,9 +2740,9 @@ function fa(e) {
|
|
|
2737
2740
|
// close tag
|
|
2738
2741
|
{
|
|
2739
2742
|
className: "tag",
|
|
2740
|
-
begin:
|
|
2743
|
+
begin: e0(
|
|
2741
2744
|
/<\//,
|
|
2742
|
-
Ht(
|
|
2745
|
+
Ht(e0(
|
|
2743
2746
|
t,
|
|
2744
2747
|
/>/
|
|
2745
2748
|
))
|
|
@@ -2885,7 +2888,7 @@ function ha(e) {
|
|
|
2885
2888
|
};
|
|
2886
2889
|
}
|
|
2887
2890
|
var va = ha;
|
|
2888
|
-
const ba = /* @__PURE__ */ Re(va), zt = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
2891
|
+
const ba = /* @__PURE__ */ Re(va), zt = "[A-Za-z$_][0-9A-Za-z$_]*", ya = [
|
|
2889
2892
|
"as",
|
|
2890
2893
|
// for exports
|
|
2891
2894
|
"in",
|
|
@@ -2928,7 +2931,7 @@ const ba = /* @__PURE__ */ Re(va), zt = "[A-Za-z$_][0-9A-Za-z$_]*", _a = [
|
|
|
2928
2931
|
"from",
|
|
2929
2932
|
"export",
|
|
2930
2933
|
"extends"
|
|
2931
|
-
],
|
|
2934
|
+
], _a = [
|
|
2932
2935
|
"true",
|
|
2933
2936
|
"false",
|
|
2934
2937
|
"null",
|
|
@@ -3037,17 +3040,17 @@ function Oa(e) {
|
|
|
3037
3040
|
* @param {CallbackResponse} response
|
|
3038
3041
|
*/
|
|
3039
3042
|
isTrulyOpeningTag: (g, f) => {
|
|
3040
|
-
const w = g[0].length + g.index,
|
|
3041
|
-
if (
|
|
3043
|
+
const w = g[0].length + g.index, k = g.input[w];
|
|
3044
|
+
if (k === "<") {
|
|
3042
3045
|
f.ignoreMatch();
|
|
3043
3046
|
return;
|
|
3044
3047
|
}
|
|
3045
|
-
|
|
3048
|
+
k === ">" && (t(g, { after: w }) || f.ignoreMatch());
|
|
3046
3049
|
}
|
|
3047
3050
|
}, r = {
|
|
3048
3051
|
$pattern: zt,
|
|
3049
|
-
keyword:
|
|
3050
|
-
literal:
|
|
3052
|
+
keyword: ya,
|
|
3053
|
+
literal: _a,
|
|
3051
3054
|
built_in: Na
|
|
3052
3055
|
}, s = "[0-9](_?[0-9])*", a = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
|
|
3053
3056
|
className: "number",
|
|
@@ -3085,7 +3088,7 @@ function Oa(e) {
|
|
|
3085
3088
|
],
|
|
3086
3089
|
subLanguage: "xml"
|
|
3087
3090
|
}
|
|
3088
|
-
},
|
|
3091
|
+
}, E = {
|
|
3089
3092
|
begin: "css`",
|
|
3090
3093
|
end: "",
|
|
3091
3094
|
starts: {
|
|
@@ -3144,16 +3147,16 @@ function Oa(e) {
|
|
|
3144
3147
|
e.C_BLOCK_COMMENT_MODE,
|
|
3145
3148
|
e.C_LINE_COMMENT_MODE
|
|
3146
3149
|
]
|
|
3147
|
-
},
|
|
3150
|
+
}, y = [
|
|
3148
3151
|
e.APOS_STRING_MODE,
|
|
3149
3152
|
e.QUOTE_STRING_MODE,
|
|
3150
3153
|
p,
|
|
3151
|
-
|
|
3154
|
+
E,
|
|
3152
3155
|
N,
|
|
3153
3156
|
d,
|
|
3154
3157
|
e.REGEXP_MODE
|
|
3155
3158
|
];
|
|
3156
|
-
u.contains =
|
|
3159
|
+
u.contains = y.concat({
|
|
3157
3160
|
// we need to pair up {} inside our subst to prevent
|
|
3158
3161
|
// it from ending too early by matching another }
|
|
3159
3162
|
begin: /\{/,
|
|
@@ -3161,15 +3164,15 @@ function Oa(e) {
|
|
|
3161
3164
|
keywords: r,
|
|
3162
3165
|
contains: [
|
|
3163
3166
|
"self"
|
|
3164
|
-
].concat(
|
|
3167
|
+
].concat(y)
|
|
3165
3168
|
});
|
|
3166
|
-
const
|
|
3169
|
+
const T = [].concat(R, u.contains), h = T.concat([
|
|
3167
3170
|
// eat recursive parens in sub expressions
|
|
3168
3171
|
{
|
|
3169
3172
|
begin: /\(/,
|
|
3170
3173
|
end: /\)/,
|
|
3171
3174
|
keywords: r,
|
|
3172
|
-
contains: ["self"].concat(
|
|
3175
|
+
contains: ["self"].concat(T)
|
|
3173
3176
|
}
|
|
3174
3177
|
]), m = {
|
|
3175
3178
|
className: "params",
|
|
@@ -3202,7 +3205,7 @@ function Oa(e) {
|
|
|
3202
3205
|
e.APOS_STRING_MODE,
|
|
3203
3206
|
e.QUOTE_STRING_MODE,
|
|
3204
3207
|
p,
|
|
3205
|
-
|
|
3208
|
+
E,
|
|
3206
3209
|
N,
|
|
3207
3210
|
R,
|
|
3208
3211
|
d,
|
|
@@ -3617,8 +3620,8 @@ function Aa(e) {
|
|
|
3617
3620
|
]
|
|
3618
3621
|
};
|
|
3619
3622
|
}
|
|
3620
|
-
var
|
|
3621
|
-
const
|
|
3623
|
+
var ka = Aa;
|
|
3624
|
+
const Da = /* @__PURE__ */ Re(ka);
|
|
3622
3625
|
function Pa(e) {
|
|
3623
3626
|
return {
|
|
3624
3627
|
name: "Shell Session",
|
|
@@ -3679,7 +3682,7 @@ function $a(e) {
|
|
|
3679
3682
|
}), a = "[0-9]{4}(-[0-9][0-9]){0,2}", l = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", d = "(\\.[0-9]*)?", u = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", p = {
|
|
3680
3683
|
className: "number",
|
|
3681
3684
|
begin: "\\b" + a + l + d + u + "\\b"
|
|
3682
|
-
},
|
|
3685
|
+
}, E = {
|
|
3683
3686
|
end: ",",
|
|
3684
3687
|
endsWithParent: !0,
|
|
3685
3688
|
excludeEnd: !0,
|
|
@@ -3688,13 +3691,13 @@ function $a(e) {
|
|
|
3688
3691
|
}, N = {
|
|
3689
3692
|
begin: /\{/,
|
|
3690
3693
|
end: /\}/,
|
|
3691
|
-
contains: [
|
|
3694
|
+
contains: [E],
|
|
3692
3695
|
illegal: "\\n",
|
|
3693
3696
|
relevance: 0
|
|
3694
|
-
},
|
|
3697
|
+
}, A = {
|
|
3695
3698
|
begin: "\\[",
|
|
3696
3699
|
end: "\\]",
|
|
3697
|
-
contains: [
|
|
3700
|
+
contains: [E],
|
|
3698
3701
|
illegal: "\\n",
|
|
3699
3702
|
relevance: 0
|
|
3700
3703
|
}, R = [
|
|
@@ -3774,10 +3777,10 @@ function $a(e) {
|
|
|
3774
3777
|
relevance: 0
|
|
3775
3778
|
},
|
|
3776
3779
|
N,
|
|
3777
|
-
|
|
3780
|
+
A,
|
|
3778
3781
|
r
|
|
3779
|
-
],
|
|
3780
|
-
return
|
|
3782
|
+
], y = [...R];
|
|
3783
|
+
return y.pop(), y.push(s), E.contains = y, {
|
|
3781
3784
|
name: "YAML",
|
|
3782
3785
|
case_insensitive: !0,
|
|
3783
3786
|
aliases: ["yml"],
|
|
@@ -3993,12 +3996,12 @@ function Wa(e) {
|
|
|
3993
3996
|
* @param {CallbackResponse} response
|
|
3994
3997
|
*/
|
|
3995
3998
|
isTrulyOpeningTag: (g, f) => {
|
|
3996
|
-
const w = g[0].length + g.index,
|
|
3997
|
-
if (
|
|
3999
|
+
const w = g[0].length + g.index, k = g.input[w];
|
|
4000
|
+
if (k === "<") {
|
|
3998
4001
|
f.ignoreMatch();
|
|
3999
4002
|
return;
|
|
4000
4003
|
}
|
|
4001
|
-
|
|
4004
|
+
k === ">" && (t(g, { after: w }) || f.ignoreMatch());
|
|
4002
4005
|
}
|
|
4003
4006
|
}, r = {
|
|
4004
4007
|
$pattern: O0,
|
|
@@ -4041,7 +4044,7 @@ function Wa(e) {
|
|
|
4041
4044
|
],
|
|
4042
4045
|
subLanguage: "xml"
|
|
4043
4046
|
}
|
|
4044
|
-
},
|
|
4047
|
+
}, E = {
|
|
4045
4048
|
begin: "css`",
|
|
4046
4049
|
end: "",
|
|
4047
4050
|
starts: {
|
|
@@ -4100,16 +4103,16 @@ function Wa(e) {
|
|
|
4100
4103
|
e.C_BLOCK_COMMENT_MODE,
|
|
4101
4104
|
e.C_LINE_COMMENT_MODE
|
|
4102
4105
|
]
|
|
4103
|
-
},
|
|
4106
|
+
}, y = [
|
|
4104
4107
|
e.APOS_STRING_MODE,
|
|
4105
4108
|
e.QUOTE_STRING_MODE,
|
|
4106
4109
|
p,
|
|
4107
|
-
|
|
4110
|
+
E,
|
|
4108
4111
|
N,
|
|
4109
4112
|
d,
|
|
4110
4113
|
e.REGEXP_MODE
|
|
4111
4114
|
];
|
|
4112
|
-
u.contains =
|
|
4115
|
+
u.contains = y.concat({
|
|
4113
4116
|
// we need to pair up {} inside our subst to prevent
|
|
4114
4117
|
// it from ending too early by matching another }
|
|
4115
4118
|
begin: /\{/,
|
|
@@ -4117,15 +4120,15 @@ function Wa(e) {
|
|
|
4117
4120
|
keywords: r,
|
|
4118
4121
|
contains: [
|
|
4119
4122
|
"self"
|
|
4120
|
-
].concat(
|
|
4123
|
+
].concat(y)
|
|
4121
4124
|
});
|
|
4122
|
-
const
|
|
4125
|
+
const T = [].concat(R, u.contains), h = T.concat([
|
|
4123
4126
|
// eat recursive parens in sub expressions
|
|
4124
4127
|
{
|
|
4125
4128
|
begin: /\(/,
|
|
4126
4129
|
end: /\)/,
|
|
4127
4130
|
keywords: r,
|
|
4128
|
-
contains: ["self"].concat(
|
|
4131
|
+
contains: ["self"].concat(T)
|
|
4129
4132
|
}
|
|
4130
4133
|
]), m = {
|
|
4131
4134
|
className: "params",
|
|
@@ -4158,7 +4161,7 @@ function Wa(e) {
|
|
|
4158
4161
|
e.APOS_STRING_MODE,
|
|
4159
4162
|
e.QUOTE_STRING_MODE,
|
|
4160
4163
|
p,
|
|
4161
|
-
|
|
4164
|
+
E,
|
|
4162
4165
|
N,
|
|
4163
4166
|
R,
|
|
4164
4167
|
d,
|
|
@@ -4392,18 +4395,18 @@ function Ga(e) {
|
|
|
4392
4395
|
}, l = {
|
|
4393
4396
|
className: "meta",
|
|
4394
4397
|
begin: "@" + t
|
|
4395
|
-
}, d = (
|
|
4396
|
-
const R =
|
|
4398
|
+
}, d = (E, N, A) => {
|
|
4399
|
+
const R = E.contains.findIndex((y) => y.label === N);
|
|
4397
4400
|
if (R === -1)
|
|
4398
4401
|
throw new Error("can not find mode to replace");
|
|
4399
|
-
|
|
4402
|
+
E.contains.splice(R, 1, A);
|
|
4400
4403
|
}, u = Wa(e);
|
|
4401
4404
|
Object.assign(u.keywords, a), u.exports.PARAMS_CONTAINS.push(l), u.contains = u.contains.concat([
|
|
4402
4405
|
l,
|
|
4403
4406
|
n,
|
|
4404
4407
|
i
|
|
4405
4408
|
]), d(u, "shebang", e.SHEBANG()), d(u, "use_strict", o);
|
|
4406
|
-
const p = u.contains.find((
|
|
4409
|
+
const p = u.contains.find((E) => E.className === "function");
|
|
4407
4410
|
return p.relevance = 0, Object.assign(u, {
|
|
4408
4411
|
name: "TypeScript",
|
|
4409
4412
|
aliases: ["ts", "tsx"]
|
|
@@ -4421,8 +4424,8 @@ function Kt(e) {
|
|
|
4421
4424
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4422
4425
|
return e;
|
|
4423
4426
|
}
|
|
4424
|
-
var qn = to(
|
|
4425
|
-
qn.registerLanguage =
|
|
4427
|
+
var qn = to(n0, {});
|
|
4428
|
+
qn.registerLanguage = n0.registerLanguage;
|
|
4426
4429
|
const Se = qn;
|
|
4427
4430
|
var Wn = {};
|
|
4428
4431
|
(function(e) {
|
|
@@ -4533,7 +4536,7 @@ Se.registerLanguage("bash", ba);
|
|
|
4533
4536
|
Se.registerLanguage("json", Ta);
|
|
4534
4537
|
Se.registerLanguage("yaml", zn);
|
|
4535
4538
|
Se.registerLanguage("yml", zn);
|
|
4536
|
-
Se.registerLanguage("php",
|
|
4539
|
+
Se.registerLanguage("php", Da);
|
|
4537
4540
|
Se.registerLanguage("twig", za);
|
|
4538
4541
|
Se.registerLanguage("xml", Bn);
|
|
4539
4542
|
Se.registerLanguage("html", Bn);
|
|
@@ -4554,12 +4557,12 @@ const Nc = ({ language: e, children: t, ...n }) => /* @__PURE__ */ c(
|
|
|
4554
4557
|
PreTag: "div",
|
|
4555
4558
|
children: t
|
|
4556
4559
|
}
|
|
4557
|
-
), ve =
|
|
4560
|
+
), ve = Me(({ as: e = "p", size: t, children: n, className: i, ...o }, r) => /* @__PURE__ */ c(V, { ...o, as: e, ref: r, className: re({ [`heading-${t}`]: !!t }, i), children: n }));
|
|
4558
4561
|
ve.displayName = "Heading";
|
|
4559
|
-
const ee =
|
|
4562
|
+
const ee = Me(({ as: e = "p", size: t, className: n, children: i, ...o }, r) => /* @__PURE__ */ c(V, { ...o, as: e, ref: r, className: re({ [`text-${t}`]: !!t }, n), children: i }));
|
|
4560
4563
|
ee.displayName = "Text";
|
|
4561
4564
|
const Sc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ c(ee, { as: "blockquote", ...n, pl: "m", size: "m", italic: !0, className: re("blockquote", t), children: e });
|
|
4562
|
-
const We =
|
|
4565
|
+
const We = Me(({ as: e = "div", isLoading: t = !0, children: n, ...i }, o) => /* @__PURE__ */ c(Ce, { children: t ? /* @__PURE__ */ c(
|
|
4563
4566
|
V,
|
|
4564
4567
|
{
|
|
4565
4568
|
...i,
|
|
@@ -4567,7 +4570,7 @@ const We = Ce(({ as: e = "div", isLoading: t = !0, children: n, ...i }, o) => /*
|
|
|
4567
4570
|
ref: o,
|
|
4568
4571
|
bg: "ultra-light-grey",
|
|
4569
4572
|
className: re(t ? ["skeleton", "animate-pulse"] : void 0, i.className),
|
|
4570
|
-
children: n ?? /* @__PURE__ */ c(V, { children: /* @__PURE__ */ c(
|
|
4573
|
+
children: n ?? /* @__PURE__ */ c(V, { children: /* @__PURE__ */ c(Ce, { children: " " }) })
|
|
4571
4574
|
}
|
|
4572
4575
|
) : n }));
|
|
4573
4576
|
We.displayName = "Skeleton";
|
|
@@ -4604,7 +4607,7 @@ const Yn = ({ items: e, ...t }) => /* @__PURE__ */ c(
|
|
|
4604
4607
|
className: re("breadcrumb", t.className),
|
|
4605
4608
|
children: e.map(({ label: n, ...i }, o) => /* @__PURE__ */ M(rt, { children: [
|
|
4606
4609
|
/* @__PURE__ */ M("li", { itemProp: "itemListElement", itemScope: !0, itemType: "https://schema.org/ListItem", children: [
|
|
4607
|
-
i.href ? /* @__PURE__ */ c(
|
|
4610
|
+
i.href ? /* @__PURE__ */ c(r0, { itemProp: "item", ...i, children: /* @__PURE__ */ c(ee, { as: "span", itemProp: "name", children: n }) }) : /* @__PURE__ */ c(ee, { as: "span", itemProp: "name", fontWeight: "regular", children: n }),
|
|
4608
4611
|
/* @__PURE__ */ c("meta", { itemProp: "position", content: (o + 1).toString() })
|
|
4609
4612
|
] }),
|
|
4610
4613
|
o < e.length - 1 && /* @__PURE__ */ c(ee, { as: "span", children: ">" })
|
|
@@ -4614,7 +4617,7 @@ const Yn = ({ items: e, ...t }) => /* @__PURE__ */ c(
|
|
|
4614
4617
|
t == null ? void 0 : t.map((i, o) => /* @__PURE__ */ c("source", { ...i }, o)),
|
|
4615
4618
|
/* @__PURE__ */ c("img", { ...e, alt: e.alt })
|
|
4616
4619
|
] });
|
|
4617
|
-
const
|
|
4620
|
+
const r0 = Me(
|
|
4618
4621
|
({ as: e = "a", icon: t, className: n, children: i, ...o }, r) => t ? /* @__PURE__ */ M(
|
|
4619
4622
|
F,
|
|
4620
4623
|
{
|
|
@@ -4632,7 +4635,7 @@ const e0 = Ce(
|
|
|
4632
4635
|
}
|
|
4633
4636
|
) : /* @__PURE__ */ c(V, { ...o, ref: r, as: e, color: "info", className: re("link", n), children: i })
|
|
4634
4637
|
);
|
|
4635
|
-
|
|
4638
|
+
r0.displayName = "Link";
|
|
4636
4639
|
const Rc = [
|
|
4637
4640
|
"note",
|
|
4638
4641
|
"summary",
|
|
@@ -4646,11 +4649,11 @@ const Rc = [
|
|
|
4646
4649
|
"bug",
|
|
4647
4650
|
"example",
|
|
4648
4651
|
"quote"
|
|
4649
|
-
], Cc =
|
|
4652
|
+
], Cc = Me(({ as: e = "div", variant: t, title: n, children: i, ...o }, r) => /* @__PURE__ */ M(V, { ...o, as: e, ref: r, bg: "white", className: re("reminder", `reminder--${t}`), children: [
|
|
4650
4653
|
/* @__PURE__ */ c(ee, { className: "reminder__title", children: n }),
|
|
4651
4654
|
/* @__PURE__ */ c(V, { p: "xxs", children: i })
|
|
4652
4655
|
] }));
|
|
4653
|
-
const Zn =
|
|
4656
|
+
const Zn = Me(
|
|
4654
4657
|
({ input: e, buttonClose: t = {}, buttonSearch: n, className: i, ...o }, r) => /* @__PURE__ */ M(
|
|
4655
4658
|
V,
|
|
4656
4659
|
{
|
|
@@ -4675,24 +4678,24 @@ var Qn = { exports: {} };
|
|
|
4675
4678
|
})(gn, () => {
|
|
4676
4679
|
return n = { 772: (o, r, s) => {
|
|
4677
4680
|
const a = s(826).remove, l = /[.*+?^${}()|[\]\\]/g, d = /[a-z0-9_]/i, u = /\s+/;
|
|
4678
|
-
o.exports = function(p,
|
|
4679
|
-
var
|
|
4680
|
-
R = { insideWords: !1, findAllOccurrences: !1, requireMatchAll: !1 },
|
|
4681
|
-
R[h] = !!
|
|
4681
|
+
o.exports = function(p, E, N) {
|
|
4682
|
+
var A, R;
|
|
4683
|
+
R = { insideWords: !1, findAllOccurrences: !1, requireMatchAll: !1 }, A = (A = N) || {}, Object.keys(A).forEach((h) => {
|
|
4684
|
+
R[h] = !!A[h];
|
|
4682
4685
|
}), N = R;
|
|
4683
|
-
const
|
|
4684
|
-
let
|
|
4685
|
-
return (
|
|
4686
|
+
const y = Array.from(p).map((h) => a(h));
|
|
4687
|
+
let T = y.join("");
|
|
4688
|
+
return (E = a(E)).trim().split(u).filter((h) => h.length > 0).reduce((h, m) => {
|
|
4686
4689
|
const g = m.length, f = !N.insideWords && d.test(m[0]) ? "\\b" : "", w = new RegExp(f + m.replace(l, "\\$&"), "i");
|
|
4687
|
-
let
|
|
4688
|
-
if (
|
|
4689
|
-
return
|
|
4690
|
-
for (;
|
|
4691
|
-
P =
|
|
4692
|
-
const q = g -
|
|
4693
|
-
if (G[0] !== G[1] && h.push(G),
|
|
4690
|
+
let k, P;
|
|
4691
|
+
if (k = w.exec(T), N.requireMatchAll && k === null)
|
|
4692
|
+
return T = "", [];
|
|
4693
|
+
for (; k; ) {
|
|
4694
|
+
P = k.index;
|
|
4695
|
+
const q = g - y.slice(P, P + g).join("").length, U = P - y.slice(0, P).join("").length, G = [P + U, P + g + U + q];
|
|
4696
|
+
if (G[0] !== G[1] && h.push(G), T = T.slice(0, P) + new Array(g + 1).join(" ") + T.slice(P + g), !N.findAllOccurrences)
|
|
4694
4697
|
break;
|
|
4695
|
-
|
|
4698
|
+
k = w.exec(T);
|
|
4696
4699
|
}
|
|
4697
4700
|
return h;
|
|
4698
4701
|
}, []).sort((h, m) => h[0] - m[0]);
|
|
@@ -4742,7 +4745,7 @@ var Jn = { exports: {} };
|
|
|
4742
4745
|
});
|
|
4743
4746
|
})(Jn);
|
|
4744
4747
|
var es = Jn.exports;
|
|
4745
|
-
const ts = /* @__PURE__ */ Re(es), er =
|
|
4748
|
+
const ts = /* @__PURE__ */ Re(es), er = Me(({ text: e, textQuery: t = "", ...n }, i) => {
|
|
4746
4749
|
const o = nt.useMemo(() => {
|
|
4747
4750
|
const r = Ja(e, t, { findAllOccurrences: !0 });
|
|
4748
4751
|
return ts(e, r);
|
|
@@ -4867,11 +4870,11 @@ const Mc = ["primary", "secondary"], lt = ({
|
|
|
4867
4870
|
isLoading: o,
|
|
4868
4871
|
display: "inline-block",
|
|
4869
4872
|
style: { minWidth: 50, minHeight: 16 },
|
|
4870
|
-
children: i && /* @__PURE__ */ M(
|
|
4873
|
+
children: i && /* @__PURE__ */ M(Ce, { children: [
|
|
4871
4874
|
e === "secondary" && /* @__PURE__ */ c(Ie, { name: "person", size: "24px", color: "light-grey" }),
|
|
4872
|
-
i.map(({ username: p, name:
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
+
i.map(({ username: p, name: E }, N) => /* @__PURE__ */ M(rt, { children: [
|
|
4876
|
+
/* @__PURE__ */ c(ee, { as: "span", children: E }),
|
|
4877
|
+
N !== i.length - 1 && /* @__PURE__ */ c(ee, { as: "span", children: " & " })
|
|
4875
4878
|
] }, p))
|
|
4876
4879
|
] })
|
|
4877
4880
|
},
|
|
@@ -4891,59 +4894,81 @@ const Mc = ["primary", "secondary"], lt = ({
|
|
|
4891
4894
|
...s,
|
|
4892
4895
|
alignItems: "center",
|
|
4893
4896
|
textSize: "s",
|
|
4894
|
-
flexWrap: "
|
|
4897
|
+
flexWrap: "wrap",
|
|
4895
4898
|
gap: e === "secondary" ? "s" : "xxs",
|
|
4896
4899
|
className: re("post-metadata", { [`post-metadata--${e}`]: e }),
|
|
4897
4900
|
children: a
|
|
4898
4901
|
}
|
|
4899
4902
|
);
|
|
4900
4903
|
};
|
|
4901
|
-
const Tc = ["highlight-light", "highlight-dark", "side-image"],
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4904
|
+
const Tc = ["highlight-light", "highlight-dark", "side-image"], k0 = ({
|
|
4905
|
+
slug: e,
|
|
4906
|
+
contentType: t,
|
|
4907
|
+
variant: n = "side-image",
|
|
4908
|
+
cover: i = {},
|
|
4909
|
+
title: o,
|
|
4910
|
+
excerpt: r,
|
|
4911
|
+
date: s,
|
|
4912
|
+
readingTime: a,
|
|
4913
|
+
authors: l,
|
|
4914
|
+
link: d = {},
|
|
4915
|
+
isLoading: u = !1,
|
|
4916
|
+
tutorialLabel: p,
|
|
4917
|
+
...E
|
|
4918
|
+
}) => /* @__PURE__ */ M(
|
|
4919
|
+
V,
|
|
4920
|
+
{
|
|
4921
|
+
as: "article",
|
|
4922
|
+
...E,
|
|
4923
|
+
className: re("post-card", `post-card--${n}`, {
|
|
4924
|
+
"post-card--with-tutorial": t === "tutorial"
|
|
4925
|
+
}),
|
|
4926
|
+
children: [
|
|
4927
|
+
/* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ c(Xn, { ...i, img: { className: "post-card__cover", ...i == null ? void 0 : i.img } }) }),
|
|
4928
|
+
/* @__PURE__ */ M(
|
|
4929
|
+
F,
|
|
4921
4930
|
{
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4931
|
+
flexDirection: "column",
|
|
4932
|
+
justifyContent: "between",
|
|
4933
|
+
my: { xs: "s", md: "m" },
|
|
4934
|
+
pl: { xs: "s", md: "m" },
|
|
4935
|
+
pr: { xs: "xs", md: "m" },
|
|
4936
|
+
flex: "1",
|
|
4937
|
+
children: [
|
|
4938
|
+
/* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ M(ve, { as: "h2", size: "xs", lineClamp: 2, className: "post-card__heading", children: [
|
|
4939
|
+
/* @__PURE__ */ c(ee, { as: "a", ...d, size: "m", "data-internal-link": "post", className: "post-card__link", children: o }),
|
|
4940
|
+
t === "tutorial" && /* @__PURE__ */ c(
|
|
4941
|
+
ee,
|
|
4942
|
+
{
|
|
4943
|
+
size: "xs",
|
|
4944
|
+
py: "xxs-3",
|
|
4945
|
+
px: "xxs-2",
|
|
4946
|
+
color: "primary",
|
|
4947
|
+
textTransform: "uppercase",
|
|
4948
|
+
fontWeight: "bold",
|
|
4949
|
+
className: "post-card__tutoriel-tag",
|
|
4950
|
+
children: p
|
|
4951
|
+
}
|
|
4952
|
+
)
|
|
4953
|
+
] }) }),
|
|
4954
|
+
/* @__PURE__ */ c(
|
|
4955
|
+
lt,
|
|
4956
|
+
{
|
|
4957
|
+
variant: "primary",
|
|
4958
|
+
mt: "xxs",
|
|
4959
|
+
date: s,
|
|
4960
|
+
readingTime: a,
|
|
4961
|
+
authors: l,
|
|
4962
|
+
isLoading: u
|
|
4963
|
+
}
|
|
4964
|
+
),
|
|
4965
|
+
n !== "highlight-dark" && /* @__PURE__ */ c(We, { isLoading: u, children: /* @__PURE__ */ c(ee, { mt: "xs", size: "s", hiddenBelow: "md", lineClamp: 2, className: "post-card__excerpt", children: r }) })
|
|
4966
|
+
]
|
|
4930
4967
|
}
|
|
4931
4968
|
)
|
|
4932
|
-
]
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
{
|
|
4936
|
-
variant: "primary",
|
|
4937
|
-
mt: "xxs",
|
|
4938
|
-
date: r,
|
|
4939
|
-
readingTime: s,
|
|
4940
|
-
authors: a,
|
|
4941
|
-
isLoading: d
|
|
4942
|
-
}
|
|
4943
|
-
),
|
|
4944
|
-
t !== "highlight-dark" && /* @__PURE__ */ c(We, { isLoading: d, children: /* @__PURE__ */ c(ee, { mt: "xs", size: "s", hiddenBelow: "md", className: "post-card__excerpt", children: o }) })
|
|
4945
|
-
] })
|
|
4946
|
-
] });
|
|
4969
|
+
]
|
|
4970
|
+
}
|
|
4971
|
+
);
|
|
4947
4972
|
const os = ({
|
|
4948
4973
|
name: e,
|
|
4949
4974
|
avatarImageUrl: t,
|
|
@@ -4966,7 +4991,7 @@ const os = ({
|
|
|
4966
4991
|
/* @__PURE__ */ c(ee, { as: "div", size: "xs", mt: "xxs-3", italic: !0, children: n })
|
|
4967
4992
|
] }),
|
|
4968
4993
|
/* @__PURE__ */ c(
|
|
4969
|
-
|
|
4994
|
+
r0,
|
|
4970
4995
|
{
|
|
4971
4996
|
...o,
|
|
4972
4997
|
px: { xs: "0", md: "m" },
|
|
@@ -5010,7 +5035,7 @@ const Ac = ["primary", "secondary"], nr = ({
|
|
|
5010
5035
|
...o
|
|
5011
5036
|
}) => /* @__PURE__ */ M(V, { bg: "white", p: "m", className: re("summary-card", { [`summary-card--${e}`]: e }), ...o, children: [
|
|
5012
5037
|
/* @__PURE__ */ c(ve, { size: "m", color: "primary", children: t }),
|
|
5013
|
-
/* @__PURE__ */ c(F, { flexDirection: "column", mt: "m", children: i.map(({ name: r, label: s, ...a }, l) => /* @__PURE__ */ M(
|
|
5038
|
+
/* @__PURE__ */ c(F, { flexDirection: "column", mt: "m", children: i.map(({ name: r, label: s, ...a }, l) => /* @__PURE__ */ M(ye.Fragment, { children: [
|
|
5014
5039
|
/* @__PURE__ */ M(
|
|
5015
5040
|
F,
|
|
5016
5041
|
{
|
|
@@ -5030,7 +5055,7 @@ const Ac = ["primary", "secondary"], nr = ({
|
|
|
5030
5055
|
l !== i.length - 1 && /* @__PURE__ */ c(h0, { my: "xxs" })
|
|
5031
5056
|
] }, l)) })
|
|
5032
5057
|
] });
|
|
5033
|
-
const
|
|
5058
|
+
const kc = ["horizontal", "vertical"], ut = ({
|
|
5034
5059
|
title: e,
|
|
5035
5060
|
description: t,
|
|
5036
5061
|
children: n,
|
|
@@ -5053,23 +5078,23 @@ const Dc = ["horizontal", "vertical"], ut = ({
|
|
|
5053
5078
|
/* @__PURE__ */ c(V, { className: "newsletter-card__form", children: n })
|
|
5054
5079
|
]
|
|
5055
5080
|
}
|
|
5056
|
-
), o0 = -1,
|
|
5081
|
+
), o0 = -1, y0 = (e, t) => {
|
|
5057
5082
|
const n = t - e + 1;
|
|
5058
5083
|
return Array.from({ length: n }, (i, o) => o + e);
|
|
5059
5084
|
}, ss = ({ currentPage: e, totalPages: t, siblingCount: n = 2 }) => fn(() => {
|
|
5060
5085
|
if (n + 5 >= t)
|
|
5061
|
-
return
|
|
5086
|
+
return y0(1, t);
|
|
5062
5087
|
const o = Math.max(e - n, 1), r = Math.min(e + n, t), s = o > 2, a = r < t - 2;
|
|
5063
5088
|
if (!s && a) {
|
|
5064
|
-
const l = 3 + 2 * n, d =
|
|
5089
|
+
const l = 3 + 2 * n, d = y0(1, l);
|
|
5065
5090
|
return [...d, d.at(-1) === t - 1 ? t - 1 : o0, t];
|
|
5066
5091
|
}
|
|
5067
5092
|
if (s && !a) {
|
|
5068
|
-
const l = 3 + 2 * n, d =
|
|
5093
|
+
const l = 3 + 2 * n, d = y0(t - l + 1, t);
|
|
5069
5094
|
return [1, d[0] - 1 === 2 ? 2 : o0, ...d];
|
|
5070
5095
|
}
|
|
5071
5096
|
if (s && a) {
|
|
5072
|
-
const l =
|
|
5097
|
+
const l = y0(o, r);
|
|
5073
5098
|
return [
|
|
5074
5099
|
1,
|
|
5075
5100
|
l[0] - 1 === 2 ? 2 : o0,
|
|
@@ -5133,14 +5158,14 @@ const B0 = (e) => ({
|
|
|
5133
5158
|
}
|
|
5134
5159
|
)
|
|
5135
5160
|
] });
|
|
5136
|
-
},
|
|
5137
|
-
e.map((i, o) => /* @__PURE__ */ c(
|
|
5161
|
+
}, Dc = ({ posts: e, pagination: t, isLoading: n = !1 }) => /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ M(F, { flexDirection: "column", gap: "m", children: [
|
|
5162
|
+
e.map((i, o) => /* @__PURE__ */ c(ye.Fragment, { children: /* @__PURE__ */ c(k0, { ...i || {}, isLoading: n }) }, (i == null ? void 0 : i.slug) ?? o)),
|
|
5138
5163
|
t && (t == null ? void 0 : t.totalPages) > 1 && /* @__PURE__ */ c(cs, { mx: "auto", ...t })
|
|
5139
5164
|
] }) });
|
|
5140
5165
|
function ls(e, t) {
|
|
5141
5166
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Z0(e, t);
|
|
5142
5167
|
}
|
|
5143
|
-
var Q0 = { exports: {} },
|
|
5168
|
+
var Q0 = { exports: {} }, _0 = { exports: {} }, ae = {};
|
|
5144
5169
|
/** @license React v16.13.1
|
|
5145
5170
|
* react-is.production.min.js
|
|
5146
5171
|
*
|
|
@@ -5154,7 +5179,7 @@ function us() {
|
|
|
5154
5179
|
if (Ft)
|
|
5155
5180
|
return ae;
|
|
5156
5181
|
Ft = 1;
|
|
5157
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113,
|
|
5182
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
5158
5183
|
function m(f) {
|
|
5159
5184
|
if (typeof f == "object" && f !== null) {
|
|
5160
5185
|
var w = f.$$typeof;
|
|
@@ -5172,7 +5197,7 @@ function us() {
|
|
|
5172
5197
|
switch (f = f && f.$$typeof, f) {
|
|
5173
5198
|
case a:
|
|
5174
5199
|
case u:
|
|
5175
|
-
case
|
|
5200
|
+
case A:
|
|
5176
5201
|
case N:
|
|
5177
5202
|
case s:
|
|
5178
5203
|
return f;
|
|
@@ -5188,7 +5213,7 @@ function us() {
|
|
|
5188
5213
|
function g(f) {
|
|
5189
5214
|
return m(f) === d;
|
|
5190
5215
|
}
|
|
5191
|
-
return ae.AsyncMode = l, ae.ConcurrentMode = d, ae.ContextConsumer = a, ae.ContextProvider = s, ae.Element = t, ae.ForwardRef = u, ae.Fragment = i, ae.Lazy =
|
|
5216
|
+
return ae.AsyncMode = l, ae.ConcurrentMode = d, ae.ContextConsumer = a, ae.ContextProvider = s, ae.Element = t, ae.ForwardRef = u, ae.Fragment = i, ae.Lazy = A, ae.Memo = N, ae.Portal = n, ae.Profiler = r, ae.StrictMode = o, ae.Suspense = p, ae.isAsyncMode = function(f) {
|
|
5192
5217
|
return g(f) || m(f) === l;
|
|
5193
5218
|
}, ae.isConcurrentMode = g, ae.isContextConsumer = function(f) {
|
|
5194
5219
|
return m(f) === a;
|
|
@@ -5201,7 +5226,7 @@ function us() {
|
|
|
5201
5226
|
}, ae.isFragment = function(f) {
|
|
5202
5227
|
return m(f) === i;
|
|
5203
5228
|
}, ae.isLazy = function(f) {
|
|
5204
|
-
return m(f) ===
|
|
5229
|
+
return m(f) === A;
|
|
5205
5230
|
}, ae.isMemo = function(f) {
|
|
5206
5231
|
return m(f) === N;
|
|
5207
5232
|
}, ae.isPortal = function(f) {
|
|
@@ -5213,7 +5238,7 @@ function us() {
|
|
|
5213
5238
|
}, ae.isSuspense = function(f) {
|
|
5214
5239
|
return m(f) === p;
|
|
5215
5240
|
}, ae.isValidElementType = function(f) {
|
|
5216
|
-
return typeof f == "string" || typeof f == "function" || f === i || f === d || f === r || f === o || f === p || f ===
|
|
5241
|
+
return typeof f == "string" || typeof f == "function" || f === i || f === d || f === r || f === o || f === p || f === E || typeof f == "object" && f !== null && (f.$$typeof === A || f.$$typeof === N || f.$$typeof === s || f.$$typeof === a || f.$$typeof === u || f.$$typeof === y || f.$$typeof === T || f.$$typeof === h || f.$$typeof === R);
|
|
5217
5242
|
}, ae.typeOf = m, ae;
|
|
5218
5243
|
}
|
|
5219
5244
|
var se = {};
|
|
@@ -5228,10 +5253,10 @@ var se = {};
|
|
|
5228
5253
|
var qt;
|
|
5229
5254
|
function ds() {
|
|
5230
5255
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5231
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113,
|
|
5256
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
5232
5257
|
function m(S) {
|
|
5233
5258
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
5234
|
-
S === i || S === d || S === r || S === o || S === p || S ===
|
|
5259
|
+
S === i || S === d || S === r || S === o || S === p || S === E || typeof S == "object" && S !== null && (S.$$typeof === A || S.$$typeof === N || S.$$typeof === s || S.$$typeof === a || S.$$typeof === u || S.$$typeof === y || S.$$typeof === T || S.$$typeof === h || S.$$typeof === R);
|
|
5235
5260
|
}
|
|
5236
5261
|
function g(S) {
|
|
5237
5262
|
if (typeof S == "object" && S !== null) {
|
|
@@ -5248,14 +5273,14 @@ function ds() {
|
|
|
5248
5273
|
case p:
|
|
5249
5274
|
return L;
|
|
5250
5275
|
default:
|
|
5251
|
-
var
|
|
5252
|
-
switch (
|
|
5276
|
+
var _e = L && L.$$typeof;
|
|
5277
|
+
switch (_e) {
|
|
5253
5278
|
case a:
|
|
5254
5279
|
case u:
|
|
5255
|
-
case
|
|
5280
|
+
case A:
|
|
5256
5281
|
case N:
|
|
5257
5282
|
case s:
|
|
5258
|
-
return
|
|
5283
|
+
return _e;
|
|
5259
5284
|
default:
|
|
5260
5285
|
return de;
|
|
5261
5286
|
}
|
|
@@ -5265,14 +5290,14 @@ function ds() {
|
|
|
5265
5290
|
}
|
|
5266
5291
|
}
|
|
5267
5292
|
}
|
|
5268
|
-
var f = l, w = d,
|
|
5293
|
+
var f = l, w = d, k = a, P = s, q = t, U = u, G = i, X = A, ne = N, Z = n, ie = r, oe = o, W = p, pe = !1;
|
|
5269
5294
|
function ge(S) {
|
|
5270
5295
|
return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(S) || g(S) === l;
|
|
5271
5296
|
}
|
|
5272
5297
|
function x(S) {
|
|
5273
5298
|
return g(S) === d;
|
|
5274
5299
|
}
|
|
5275
|
-
function
|
|
5300
|
+
function D(S) {
|
|
5276
5301
|
return g(S) === a;
|
|
5277
5302
|
}
|
|
5278
5303
|
function K(S) {
|
|
@@ -5284,11 +5309,11 @@ function ds() {
|
|
|
5284
5309
|
function v(S) {
|
|
5285
5310
|
return g(S) === u;
|
|
5286
5311
|
}
|
|
5287
|
-
function
|
|
5312
|
+
function _(S) {
|
|
5288
5313
|
return g(S) === i;
|
|
5289
5314
|
}
|
|
5290
|
-
function
|
|
5291
|
-
return g(S) ===
|
|
5315
|
+
function I(S) {
|
|
5316
|
+
return g(S) === A;
|
|
5292
5317
|
}
|
|
5293
5318
|
function C(S) {
|
|
5294
5319
|
return g(S) === N;
|
|
@@ -5305,12 +5330,12 @@ function ds() {
|
|
|
5305
5330
|
function Q(S) {
|
|
5306
5331
|
return g(S) === p;
|
|
5307
5332
|
}
|
|
5308
|
-
se.AsyncMode = f, se.ConcurrentMode = w, se.ContextConsumer =
|
|
5333
|
+
se.AsyncMode = f, se.ConcurrentMode = w, se.ContextConsumer = k, se.ContextProvider = P, se.Element = q, se.ForwardRef = U, se.Fragment = G, se.Lazy = X, se.Memo = ne, se.Portal = Z, se.Profiler = ie, se.StrictMode = oe, se.Suspense = W, se.isAsyncMode = ge, se.isConcurrentMode = x, se.isContextConsumer = D, se.isContextProvider = K, se.isElement = b, se.isForwardRef = v, se.isFragment = _, se.isLazy = I, se.isMemo = C, se.isPortal = z, se.isProfiler = H, se.isStrictMode = B, se.isSuspense = Q, se.isValidElementType = m, se.typeOf = g;
|
|
5309
5334
|
}()), se;
|
|
5310
5335
|
}
|
|
5311
5336
|
var Wt;
|
|
5312
5337
|
function rr() {
|
|
5313
|
-
return Wt || (Wt = 1, process.env.NODE_ENV === "production" ?
|
|
5338
|
+
return Wt || (Wt = 1, process.env.NODE_ENV === "production" ? _0.exports = us() : _0.exports = ds()), _0.exports;
|
|
5314
5339
|
}
|
|
5315
5340
|
/*
|
|
5316
5341
|
object-assign
|
|
@@ -5357,8 +5382,8 @@ function fs() {
|
|
|
5357
5382
|
t.call(a, p) && (l[p] = a[p]);
|
|
5358
5383
|
if (e) {
|
|
5359
5384
|
d = e(a);
|
|
5360
|
-
for (var
|
|
5361
|
-
n.call(a, d[
|
|
5385
|
+
for (var E = 0; E < d.length; E++)
|
|
5386
|
+
n.call(a, d[E]) && (l[d[E]] = a[d[E]]);
|
|
5362
5387
|
}
|
|
5363
5388
|
}
|
|
5364
5389
|
return l;
|
|
@@ -5401,14 +5426,14 @@ function ps() {
|
|
|
5401
5426
|
var p;
|
|
5402
5427
|
try {
|
|
5403
5428
|
if (typeof r[u] != "function") {
|
|
5404
|
-
var
|
|
5429
|
+
var E = Error(
|
|
5405
5430
|
(l || "React class") + ": " + a + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
5406
5431
|
);
|
|
5407
|
-
throw
|
|
5432
|
+
throw E.name = "Invariant Violation", E;
|
|
5408
5433
|
}
|
|
5409
5434
|
p = r[u](s, u, l, a, null, t);
|
|
5410
|
-
} catch (
|
|
5411
|
-
p =
|
|
5435
|
+
} catch (A) {
|
|
5436
|
+
p = A;
|
|
5412
5437
|
}
|
|
5413
5438
|
if (p && !(p instanceof Error) && e(
|
|
5414
5439
|
(l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -5447,19 +5472,19 @@ function gs() {
|
|
|
5447
5472
|
return j0 = function(a, l) {
|
|
5448
5473
|
var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
5449
5474
|
function p(x) {
|
|
5450
|
-
var
|
|
5451
|
-
if (typeof
|
|
5452
|
-
return
|
|
5453
|
-
}
|
|
5454
|
-
var
|
|
5455
|
-
array:
|
|
5456
|
-
bigint:
|
|
5457
|
-
bool:
|
|
5458
|
-
func:
|
|
5459
|
-
number:
|
|
5460
|
-
object:
|
|
5461
|
-
string:
|
|
5462
|
-
symbol:
|
|
5475
|
+
var D = x && (d && x[d] || x[u]);
|
|
5476
|
+
if (typeof D == "function")
|
|
5477
|
+
return D;
|
|
5478
|
+
}
|
|
5479
|
+
var E = "<<anonymous>>", N = {
|
|
5480
|
+
array: T("array"),
|
|
5481
|
+
bigint: T("bigint"),
|
|
5482
|
+
bool: T("boolean"),
|
|
5483
|
+
func: T("function"),
|
|
5484
|
+
number: T("number"),
|
|
5485
|
+
object: T("object"),
|
|
5486
|
+
string: T("string"),
|
|
5487
|
+
symbol: T("symbol"),
|
|
5463
5488
|
any: h(),
|
|
5464
5489
|
arrayOf: m,
|
|
5465
5490
|
element: g(),
|
|
@@ -5467,23 +5492,23 @@ function gs() {
|
|
|
5467
5492
|
instanceOf: w,
|
|
5468
5493
|
node: U(),
|
|
5469
5494
|
objectOf: P,
|
|
5470
|
-
oneOf:
|
|
5495
|
+
oneOf: k,
|
|
5471
5496
|
oneOfType: q,
|
|
5472
5497
|
shape: X,
|
|
5473
5498
|
exact: ne
|
|
5474
5499
|
};
|
|
5475
|
-
function
|
|
5476
|
-
return x ===
|
|
5500
|
+
function A(x, D) {
|
|
5501
|
+
return x === D ? x !== 0 || 1 / x === 1 / D : x !== x && D !== D;
|
|
5477
5502
|
}
|
|
5478
|
-
function R(x,
|
|
5479
|
-
this.message = x, this.data =
|
|
5503
|
+
function R(x, D) {
|
|
5504
|
+
this.message = x, this.data = D && typeof D == "object" ? D : {}, this.stack = "";
|
|
5480
5505
|
}
|
|
5481
5506
|
R.prototype = Error.prototype;
|
|
5482
|
-
function
|
|
5507
|
+
function y(x) {
|
|
5483
5508
|
if (process.env.NODE_ENV !== "production")
|
|
5484
|
-
var
|
|
5485
|
-
function b(
|
|
5486
|
-
if (z = z ||
|
|
5509
|
+
var D = {}, K = 0;
|
|
5510
|
+
function b(_, I, C, z, H, B, Q) {
|
|
5511
|
+
if (z = z || E, B = B || C, Q !== n) {
|
|
5487
5512
|
if (l) {
|
|
5488
5513
|
var S = new Error(
|
|
5489
5514
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -5491,190 +5516,190 @@ function gs() {
|
|
|
5491
5516
|
throw S.name = "Invariant Violation", S;
|
|
5492
5517
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
5493
5518
|
var de = z + ":" + C;
|
|
5494
|
-
!
|
|
5519
|
+
!D[de] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
5495
5520
|
K < 3 && (r(
|
|
5496
5521
|
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
5497
|
-
),
|
|
5522
|
+
), D[de] = !0, K++);
|
|
5498
5523
|
}
|
|
5499
5524
|
}
|
|
5500
|
-
return
|
|
5525
|
+
return I[C] == null ? _ ? I[C] === null ? new R("The " + H + " `" + B + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new R("The " + H + " `" + B + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : x(I, C, z, H, B);
|
|
5501
5526
|
}
|
|
5502
5527
|
var v = b.bind(null, !1);
|
|
5503
5528
|
return v.isRequired = b.bind(null, !0), v;
|
|
5504
5529
|
}
|
|
5505
|
-
function
|
|
5506
|
-
function
|
|
5530
|
+
function T(x) {
|
|
5531
|
+
function D(K, b, v, _, I, C) {
|
|
5507
5532
|
var z = K[b], H = oe(z);
|
|
5508
5533
|
if (H !== x) {
|
|
5509
5534
|
var B = W(z);
|
|
5510
5535
|
return new R(
|
|
5511
|
-
"Invalid " +
|
|
5536
|
+
"Invalid " + _ + " `" + I + "` of type " + ("`" + B + "` supplied to `" + v + "`, expected ") + ("`" + x + "`."),
|
|
5512
5537
|
{ expectedType: x }
|
|
5513
5538
|
);
|
|
5514
5539
|
}
|
|
5515
5540
|
return null;
|
|
5516
5541
|
}
|
|
5517
|
-
return
|
|
5542
|
+
return y(D);
|
|
5518
5543
|
}
|
|
5519
5544
|
function h() {
|
|
5520
|
-
return
|
|
5545
|
+
return y(s);
|
|
5521
5546
|
}
|
|
5522
5547
|
function m(x) {
|
|
5523
|
-
function
|
|
5548
|
+
function D(K, b, v, _, I) {
|
|
5524
5549
|
if (typeof x != "function")
|
|
5525
|
-
return new R("Property `" +
|
|
5550
|
+
return new R("Property `" + I + "` of component `" + v + "` has invalid PropType notation inside arrayOf.");
|
|
5526
5551
|
var C = K[b];
|
|
5527
5552
|
if (!Array.isArray(C)) {
|
|
5528
5553
|
var z = oe(C);
|
|
5529
|
-
return new R("Invalid " +
|
|
5554
|
+
return new R("Invalid " + _ + " `" + I + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected an array."));
|
|
5530
5555
|
}
|
|
5531
5556
|
for (var H = 0; H < C.length; H++) {
|
|
5532
|
-
var B = x(C, H, v,
|
|
5557
|
+
var B = x(C, H, v, _, I + "[" + H + "]", n);
|
|
5533
5558
|
if (B instanceof Error)
|
|
5534
5559
|
return B;
|
|
5535
5560
|
}
|
|
5536
5561
|
return null;
|
|
5537
5562
|
}
|
|
5538
|
-
return
|
|
5563
|
+
return y(D);
|
|
5539
5564
|
}
|
|
5540
5565
|
function g() {
|
|
5541
|
-
function x(
|
|
5542
|
-
var
|
|
5543
|
-
if (!a(
|
|
5544
|
-
var C = oe(
|
|
5545
|
-
return new R("Invalid " + v + " `" +
|
|
5566
|
+
function x(D, K, b, v, _) {
|
|
5567
|
+
var I = D[K];
|
|
5568
|
+
if (!a(I)) {
|
|
5569
|
+
var C = oe(I);
|
|
5570
|
+
return new R("Invalid " + v + " `" + _ + "` of type " + ("`" + C + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
5546
5571
|
}
|
|
5547
5572
|
return null;
|
|
5548
5573
|
}
|
|
5549
|
-
return
|
|
5574
|
+
return y(x);
|
|
5550
5575
|
}
|
|
5551
5576
|
function f() {
|
|
5552
|
-
function x(
|
|
5553
|
-
var
|
|
5554
|
-
if (!e.isValidElementType(
|
|
5555
|
-
var C = oe(
|
|
5556
|
-
return new R("Invalid " + v + " `" +
|
|
5577
|
+
function x(D, K, b, v, _) {
|
|
5578
|
+
var I = D[K];
|
|
5579
|
+
if (!e.isValidElementType(I)) {
|
|
5580
|
+
var C = oe(I);
|
|
5581
|
+
return new R("Invalid " + v + " `" + _ + "` of type " + ("`" + C + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
5557
5582
|
}
|
|
5558
5583
|
return null;
|
|
5559
5584
|
}
|
|
5560
|
-
return
|
|
5585
|
+
return y(x);
|
|
5561
5586
|
}
|
|
5562
5587
|
function w(x) {
|
|
5563
|
-
function
|
|
5588
|
+
function D(K, b, v, _, I) {
|
|
5564
5589
|
if (!(K[b] instanceof x)) {
|
|
5565
|
-
var C = x.name ||
|
|
5566
|
-
return new R("Invalid " +
|
|
5590
|
+
var C = x.name || E, z = ge(K[b]);
|
|
5591
|
+
return new R("Invalid " + _ + " `" + I + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected ") + ("instance of `" + C + "`."));
|
|
5567
5592
|
}
|
|
5568
5593
|
return null;
|
|
5569
5594
|
}
|
|
5570
|
-
return
|
|
5595
|
+
return y(D);
|
|
5571
5596
|
}
|
|
5572
|
-
function
|
|
5597
|
+
function k(x) {
|
|
5573
5598
|
if (!Array.isArray(x))
|
|
5574
5599
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
5575
5600
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
5576
5601
|
) : r("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
5577
|
-
function
|
|
5602
|
+
function D(K, b, v, _, I) {
|
|
5578
5603
|
for (var C = K[b], z = 0; z < x.length; z++)
|
|
5579
|
-
if (
|
|
5604
|
+
if (A(C, x[z]))
|
|
5580
5605
|
return null;
|
|
5581
5606
|
var H = JSON.stringify(x, function(Q, S) {
|
|
5582
5607
|
var de = W(S);
|
|
5583
5608
|
return de === "symbol" ? String(S) : S;
|
|
5584
5609
|
});
|
|
5585
|
-
return new R("Invalid " +
|
|
5610
|
+
return new R("Invalid " + _ + " `" + I + "` of value `" + String(C) + "` " + ("supplied to `" + v + "`, expected one of " + H + "."));
|
|
5586
5611
|
}
|
|
5587
|
-
return
|
|
5612
|
+
return y(D);
|
|
5588
5613
|
}
|
|
5589
5614
|
function P(x) {
|
|
5590
|
-
function
|
|
5615
|
+
function D(K, b, v, _, I) {
|
|
5591
5616
|
if (typeof x != "function")
|
|
5592
|
-
return new R("Property `" +
|
|
5617
|
+
return new R("Property `" + I + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
|
|
5593
5618
|
var C = K[b], z = oe(C);
|
|
5594
5619
|
if (z !== "object")
|
|
5595
|
-
return new R("Invalid " +
|
|
5620
|
+
return new R("Invalid " + _ + " `" + I + "` of type " + ("`" + z + "` supplied to `" + v + "`, expected an object."));
|
|
5596
5621
|
for (var H in C)
|
|
5597
5622
|
if (i(C, H)) {
|
|
5598
|
-
var B = x(C, H, v,
|
|
5623
|
+
var B = x(C, H, v, _, I + "." + H, n);
|
|
5599
5624
|
if (B instanceof Error)
|
|
5600
5625
|
return B;
|
|
5601
5626
|
}
|
|
5602
5627
|
return null;
|
|
5603
5628
|
}
|
|
5604
|
-
return
|
|
5629
|
+
return y(D);
|
|
5605
5630
|
}
|
|
5606
5631
|
function q(x) {
|
|
5607
5632
|
if (!Array.isArray(x))
|
|
5608
5633
|
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
5609
|
-
for (var
|
|
5610
|
-
var K = x[
|
|
5634
|
+
for (var D = 0; D < x.length; D++) {
|
|
5635
|
+
var K = x[D];
|
|
5611
5636
|
if (typeof K != "function")
|
|
5612
5637
|
return r(
|
|
5613
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(K) + " at index " +
|
|
5638
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(K) + " at index " + D + "."
|
|
5614
5639
|
), s;
|
|
5615
5640
|
}
|
|
5616
|
-
function b(v,
|
|
5641
|
+
function b(v, _, I, C, z) {
|
|
5617
5642
|
for (var H = [], B = 0; B < x.length; B++) {
|
|
5618
|
-
var Q = x[B], S = Q(v,
|
|
5643
|
+
var Q = x[B], S = Q(v, _, I, C, z, n);
|
|
5619
5644
|
if (S == null)
|
|
5620
5645
|
return null;
|
|
5621
5646
|
S.data && i(S.data, "expectedType") && H.push(S.data.expectedType);
|
|
5622
5647
|
}
|
|
5623
5648
|
var de = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
5624
|
-
return new R("Invalid " + C + " `" + z + "` supplied to " + ("`" +
|
|
5649
|
+
return new R("Invalid " + C + " `" + z + "` supplied to " + ("`" + I + "`" + de + "."));
|
|
5625
5650
|
}
|
|
5626
|
-
return
|
|
5651
|
+
return y(b);
|
|
5627
5652
|
}
|
|
5628
5653
|
function U() {
|
|
5629
|
-
function x(
|
|
5630
|
-
return Z(
|
|
5654
|
+
function x(D, K, b, v, _) {
|
|
5655
|
+
return Z(D[K]) ? null : new R("Invalid " + v + " `" + _ + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
5631
5656
|
}
|
|
5632
|
-
return
|
|
5657
|
+
return y(x);
|
|
5633
5658
|
}
|
|
5634
|
-
function G(x,
|
|
5659
|
+
function G(x, D, K, b, v) {
|
|
5635
5660
|
return new R(
|
|
5636
|
-
(x || "React class") + ": " +
|
|
5661
|
+
(x || "React class") + ": " + D + " type `" + K + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`."
|
|
5637
5662
|
);
|
|
5638
5663
|
}
|
|
5639
5664
|
function X(x) {
|
|
5640
|
-
function
|
|
5665
|
+
function D(K, b, v, _, I) {
|
|
5641
5666
|
var C = K[b], z = oe(C);
|
|
5642
5667
|
if (z !== "object")
|
|
5643
|
-
return new R("Invalid " +
|
|
5668
|
+
return new R("Invalid " + _ + " `" + I + "` of type `" + z + "` " + ("supplied to `" + v + "`, expected `object`."));
|
|
5644
5669
|
for (var H in x) {
|
|
5645
5670
|
var B = x[H];
|
|
5646
5671
|
if (typeof B != "function")
|
|
5647
|
-
return G(v,
|
|
5648
|
-
var Q = B(C, H, v,
|
|
5672
|
+
return G(v, _, I, H, W(B));
|
|
5673
|
+
var Q = B(C, H, v, _, I + "." + H, n);
|
|
5649
5674
|
if (Q)
|
|
5650
5675
|
return Q;
|
|
5651
5676
|
}
|
|
5652
5677
|
return null;
|
|
5653
5678
|
}
|
|
5654
|
-
return
|
|
5679
|
+
return y(D);
|
|
5655
5680
|
}
|
|
5656
5681
|
function ne(x) {
|
|
5657
|
-
function
|
|
5682
|
+
function D(K, b, v, _, I) {
|
|
5658
5683
|
var C = K[b], z = oe(C);
|
|
5659
5684
|
if (z !== "object")
|
|
5660
|
-
return new R("Invalid " +
|
|
5685
|
+
return new R("Invalid " + _ + " `" + I + "` of type `" + z + "` " + ("supplied to `" + v + "`, expected `object`."));
|
|
5661
5686
|
var H = t({}, K[b], x);
|
|
5662
5687
|
for (var B in H) {
|
|
5663
5688
|
var Q = x[B];
|
|
5664
5689
|
if (i(x, B) && typeof Q != "function")
|
|
5665
|
-
return G(v,
|
|
5690
|
+
return G(v, _, I, B, W(Q));
|
|
5666
5691
|
if (!Q)
|
|
5667
5692
|
return new R(
|
|
5668
|
-
"Invalid " +
|
|
5693
|
+
"Invalid " + _ + " `" + I + "` key `" + B + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(K[b], null, " ") + `
|
|
5669
5694
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
5670
5695
|
);
|
|
5671
|
-
var S = Q(C, B, v,
|
|
5696
|
+
var S = Q(C, B, v, _, I + "." + B, n);
|
|
5672
5697
|
if (S)
|
|
5673
5698
|
return S;
|
|
5674
5699
|
}
|
|
5675
5700
|
return null;
|
|
5676
5701
|
}
|
|
5677
|
-
return
|
|
5702
|
+
return y(D);
|
|
5678
5703
|
}
|
|
5679
5704
|
function Z(x) {
|
|
5680
5705
|
switch (typeof x) {
|
|
@@ -5689,10 +5714,10 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
5689
5714
|
return x.every(Z);
|
|
5690
5715
|
if (x === null || a(x))
|
|
5691
5716
|
return !0;
|
|
5692
|
-
var
|
|
5693
|
-
if (
|
|
5694
|
-
var K =
|
|
5695
|
-
if (
|
|
5717
|
+
var D = p(x);
|
|
5718
|
+
if (D) {
|
|
5719
|
+
var K = D.call(x), b;
|
|
5720
|
+
if (D !== x.entries) {
|
|
5696
5721
|
for (; !(b = K.next()).done; )
|
|
5697
5722
|
if (!Z(b.value))
|
|
5698
5723
|
return !1;
|
|
@@ -5709,41 +5734,41 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
5709
5734
|
return !1;
|
|
5710
5735
|
}
|
|
5711
5736
|
}
|
|
5712
|
-
function ie(x,
|
|
5713
|
-
return x === "symbol" ? !0 :
|
|
5737
|
+
function ie(x, D) {
|
|
5738
|
+
return x === "symbol" ? !0 : D ? D["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && D instanceof Symbol : !1;
|
|
5714
5739
|
}
|
|
5715
5740
|
function oe(x) {
|
|
5716
|
-
var
|
|
5717
|
-
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : ie(
|
|
5741
|
+
var D = typeof x;
|
|
5742
|
+
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : ie(D, x) ? "symbol" : D;
|
|
5718
5743
|
}
|
|
5719
5744
|
function W(x) {
|
|
5720
5745
|
if (typeof x > "u" || x === null)
|
|
5721
5746
|
return "" + x;
|
|
5722
|
-
var
|
|
5723
|
-
if (
|
|
5747
|
+
var D = oe(x);
|
|
5748
|
+
if (D === "object") {
|
|
5724
5749
|
if (x instanceof Date)
|
|
5725
5750
|
return "date";
|
|
5726
5751
|
if (x instanceof RegExp)
|
|
5727
5752
|
return "regexp";
|
|
5728
5753
|
}
|
|
5729
|
-
return
|
|
5754
|
+
return D;
|
|
5730
5755
|
}
|
|
5731
5756
|
function pe(x) {
|
|
5732
|
-
var
|
|
5733
|
-
switch (
|
|
5757
|
+
var D = W(x);
|
|
5758
|
+
switch (D) {
|
|
5734
5759
|
case "array":
|
|
5735
5760
|
case "object":
|
|
5736
|
-
return "an " +
|
|
5761
|
+
return "an " + D;
|
|
5737
5762
|
case "boolean":
|
|
5738
5763
|
case "date":
|
|
5739
5764
|
case "regexp":
|
|
5740
|
-
return "a " +
|
|
5765
|
+
return "a " + D;
|
|
5741
5766
|
default:
|
|
5742
|
-
return
|
|
5767
|
+
return D;
|
|
5743
5768
|
}
|
|
5744
5769
|
}
|
|
5745
5770
|
function ge(x) {
|
|
5746
|
-
return !x.constructor || !x.constructor.name ?
|
|
5771
|
+
return !x.constructor || !x.constructor.name ? E : x.constructor.name;
|
|
5747
5772
|
}
|
|
5748
5773
|
return N.checkPropTypes = o, N.resetWarningCache = o.resetWarningCache, N.PropTypes = N, N;
|
|
5749
5774
|
}, j0;
|
|
@@ -5761,10 +5786,10 @@ function ms() {
|
|
|
5761
5786
|
return n.resetWarningCache = t, K0 = function() {
|
|
5762
5787
|
function i(s, a, l, d, u, p) {
|
|
5763
5788
|
if (p !== e) {
|
|
5764
|
-
var
|
|
5789
|
+
var E = new Error(
|
|
5765
5790
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
5766
5791
|
);
|
|
5767
|
-
throw
|
|
5792
|
+
throw E.name = "Invariant Violation", E;
|
|
5768
5793
|
}
|
|
5769
5794
|
}
|
|
5770
5795
|
i.isRequired = i;
|
|
@@ -5815,72 +5840,72 @@ var J0 = { exports: {} }, ce = {};
|
|
|
5815
5840
|
* LICENSE file in the root directory of this source tree.
|
|
5816
5841
|
*/
|
|
5817
5842
|
var en;
|
|
5818
|
-
function
|
|
5843
|
+
function ys() {
|
|
5819
5844
|
if (en)
|
|
5820
5845
|
return ce;
|
|
5821
5846
|
en = 1;
|
|
5822
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
5823
|
-
|
|
5824
|
-
function R(
|
|
5825
|
-
if (typeof
|
|
5826
|
-
var
|
|
5827
|
-
switch (
|
|
5847
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), A;
|
|
5848
|
+
A = Symbol.for("react.module.reference");
|
|
5849
|
+
function R(y) {
|
|
5850
|
+
if (typeof y == "object" && y !== null) {
|
|
5851
|
+
var T = y.$$typeof;
|
|
5852
|
+
switch (T) {
|
|
5828
5853
|
case e:
|
|
5829
|
-
switch (
|
|
5854
|
+
switch (y = y.type, y) {
|
|
5830
5855
|
case n:
|
|
5831
5856
|
case o:
|
|
5832
5857
|
case i:
|
|
5833
5858
|
case d:
|
|
5834
5859
|
case u:
|
|
5835
|
-
return
|
|
5860
|
+
return y;
|
|
5836
5861
|
default:
|
|
5837
|
-
switch (
|
|
5862
|
+
switch (y = y && y.$$typeof, y) {
|
|
5838
5863
|
case a:
|
|
5839
5864
|
case s:
|
|
5840
5865
|
case l:
|
|
5841
|
-
case
|
|
5866
|
+
case E:
|
|
5842
5867
|
case p:
|
|
5843
5868
|
case r:
|
|
5844
|
-
return
|
|
5869
|
+
return y;
|
|
5845
5870
|
default:
|
|
5846
|
-
return
|
|
5871
|
+
return T;
|
|
5847
5872
|
}
|
|
5848
5873
|
}
|
|
5849
5874
|
case t:
|
|
5850
|
-
return
|
|
5875
|
+
return T;
|
|
5851
5876
|
}
|
|
5852
5877
|
}
|
|
5853
5878
|
}
|
|
5854
|
-
return ce.ContextConsumer = s, ce.ContextProvider = r, ce.Element = e, ce.ForwardRef = l, ce.Fragment = n, ce.Lazy =
|
|
5879
|
+
return ce.ContextConsumer = s, ce.ContextProvider = r, ce.Element = e, ce.ForwardRef = l, ce.Fragment = n, ce.Lazy = E, ce.Memo = p, ce.Portal = t, ce.Profiler = o, ce.StrictMode = i, ce.Suspense = d, ce.SuspenseList = u, ce.isAsyncMode = function() {
|
|
5855
5880
|
return !1;
|
|
5856
5881
|
}, ce.isConcurrentMode = function() {
|
|
5857
5882
|
return !1;
|
|
5858
|
-
}, ce.isContextConsumer = function(
|
|
5859
|
-
return R(
|
|
5860
|
-
}, ce.isContextProvider = function(
|
|
5861
|
-
return R(
|
|
5862
|
-
}, ce.isElement = function(
|
|
5863
|
-
return typeof
|
|
5864
|
-
}, ce.isForwardRef = function(
|
|
5865
|
-
return R(
|
|
5866
|
-
}, ce.isFragment = function(
|
|
5867
|
-
return R(
|
|
5868
|
-
}, ce.isLazy = function(
|
|
5869
|
-
return R(
|
|
5870
|
-
}, ce.isMemo = function(
|
|
5871
|
-
return R(
|
|
5872
|
-
}, ce.isPortal = function(
|
|
5873
|
-
return R(
|
|
5874
|
-
}, ce.isProfiler = function(
|
|
5875
|
-
return R(
|
|
5876
|
-
}, ce.isStrictMode = function(
|
|
5877
|
-
return R(
|
|
5878
|
-
}, ce.isSuspense = function(
|
|
5879
|
-
return R(
|
|
5880
|
-
}, ce.isSuspenseList = function(
|
|
5881
|
-
return R(
|
|
5882
|
-
}, ce.isValidElementType = function(
|
|
5883
|
-
return typeof
|
|
5883
|
+
}, ce.isContextConsumer = function(y) {
|
|
5884
|
+
return R(y) === s;
|
|
5885
|
+
}, ce.isContextProvider = function(y) {
|
|
5886
|
+
return R(y) === r;
|
|
5887
|
+
}, ce.isElement = function(y) {
|
|
5888
|
+
return typeof y == "object" && y !== null && y.$$typeof === e;
|
|
5889
|
+
}, ce.isForwardRef = function(y) {
|
|
5890
|
+
return R(y) === l;
|
|
5891
|
+
}, ce.isFragment = function(y) {
|
|
5892
|
+
return R(y) === n;
|
|
5893
|
+
}, ce.isLazy = function(y) {
|
|
5894
|
+
return R(y) === E;
|
|
5895
|
+
}, ce.isMemo = function(y) {
|
|
5896
|
+
return R(y) === p;
|
|
5897
|
+
}, ce.isPortal = function(y) {
|
|
5898
|
+
return R(y) === t;
|
|
5899
|
+
}, ce.isProfiler = function(y) {
|
|
5900
|
+
return R(y) === o;
|
|
5901
|
+
}, ce.isStrictMode = function(y) {
|
|
5902
|
+
return R(y) === i;
|
|
5903
|
+
}, ce.isSuspense = function(y) {
|
|
5904
|
+
return R(y) === d;
|
|
5905
|
+
}, ce.isSuspenseList = function(y) {
|
|
5906
|
+
return R(y) === u;
|
|
5907
|
+
}, ce.isValidElementType = function(y) {
|
|
5908
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === o || y === i || y === d || y === u || y === N || typeof y == "object" && y !== null && (y.$$typeof === E || y.$$typeof === p || y.$$typeof === r || y.$$typeof === s || y.$$typeof === l || y.$$typeof === A || y.getModuleId !== void 0);
|
|
5884
5909
|
}, ce.typeOf = R, ce;
|
|
5885
5910
|
}
|
|
5886
5911
|
var le = {};
|
|
@@ -5894,12 +5919,12 @@ var le = {};
|
|
|
5894
5919
|
* LICENSE file in the root directory of this source tree.
|
|
5895
5920
|
*/
|
|
5896
5921
|
var tn;
|
|
5897
|
-
function
|
|
5922
|
+
function _s() {
|
|
5898
5923
|
return tn || (tn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5899
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
5924
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), A = !1, R = !1, y = !1, T = !1, h = !1, m;
|
|
5900
5925
|
m = Symbol.for("react.module.reference");
|
|
5901
5926
|
function g(L) {
|
|
5902
|
-
return !!(typeof L == "string" || typeof L == "function" || L === n || L === o || h || L === i || L === d || L === u ||
|
|
5927
|
+
return !!(typeof L == "string" || typeof L == "function" || L === n || L === o || h || L === i || L === d || L === u || T || L === N || A || R || y || typeof L == "object" && L !== null && (L.$$typeof === E || L.$$typeof === p || L.$$typeof === r || L.$$typeof === s || L.$$typeof === l || // This needs to include all possible module reference object
|
|
5903
5928
|
// types supported by any Flight configuration anywhere since
|
|
5904
5929
|
// we don't know which Flight build this will end up being used
|
|
5905
5930
|
// with.
|
|
@@ -5907,8 +5932,8 @@ function ys() {
|
|
|
5907
5932
|
}
|
|
5908
5933
|
function f(L) {
|
|
5909
5934
|
if (typeof L == "object" && L !== null) {
|
|
5910
|
-
var
|
|
5911
|
-
switch (
|
|
5935
|
+
var _e = L.$$typeof;
|
|
5936
|
+
switch (_e) {
|
|
5912
5937
|
case e:
|
|
5913
5938
|
var be = L.type;
|
|
5914
5939
|
switch (be) {
|
|
@@ -5924,24 +5949,24 @@ function ys() {
|
|
|
5924
5949
|
case a:
|
|
5925
5950
|
case s:
|
|
5926
5951
|
case l:
|
|
5927
|
-
case
|
|
5952
|
+
case E:
|
|
5928
5953
|
case p:
|
|
5929
5954
|
case r:
|
|
5930
5955
|
return Le;
|
|
5931
5956
|
default:
|
|
5932
|
-
return
|
|
5957
|
+
return _e;
|
|
5933
5958
|
}
|
|
5934
5959
|
}
|
|
5935
5960
|
case t:
|
|
5936
|
-
return
|
|
5961
|
+
return _e;
|
|
5937
5962
|
}
|
|
5938
5963
|
}
|
|
5939
5964
|
}
|
|
5940
|
-
var w = s,
|
|
5965
|
+
var w = s, k = r, P = e, q = l, U = n, G = E, X = p, ne = t, Z = o, ie = i, oe = d, W = u, pe = !1, ge = !1;
|
|
5941
5966
|
function x(L) {
|
|
5942
5967
|
return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
5943
5968
|
}
|
|
5944
|
-
function
|
|
5969
|
+
function D(L) {
|
|
5945
5970
|
return ge || (ge = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
5946
5971
|
}
|
|
5947
5972
|
function K(L) {
|
|
@@ -5953,14 +5978,14 @@ function ys() {
|
|
|
5953
5978
|
function v(L) {
|
|
5954
5979
|
return typeof L == "object" && L !== null && L.$$typeof === e;
|
|
5955
5980
|
}
|
|
5956
|
-
function
|
|
5981
|
+
function _(L) {
|
|
5957
5982
|
return f(L) === l;
|
|
5958
5983
|
}
|
|
5959
|
-
function
|
|
5984
|
+
function I(L) {
|
|
5960
5985
|
return f(L) === n;
|
|
5961
5986
|
}
|
|
5962
5987
|
function C(L) {
|
|
5963
|
-
return f(L) ===
|
|
5988
|
+
return f(L) === E;
|
|
5964
5989
|
}
|
|
5965
5990
|
function z(L) {
|
|
5966
5991
|
return f(L) === p;
|
|
@@ -5980,10 +6005,10 @@ function ys() {
|
|
|
5980
6005
|
function de(L) {
|
|
5981
6006
|
return f(L) === u;
|
|
5982
6007
|
}
|
|
5983
|
-
le.ContextConsumer = w, le.ContextProvider =
|
|
6008
|
+
le.ContextConsumer = w, le.ContextProvider = k, le.Element = P, le.ForwardRef = q, le.Fragment = U, le.Lazy = G, le.Memo = X, le.Portal = ne, le.Profiler = Z, le.StrictMode = ie, le.Suspense = oe, le.SuspenseList = W, le.isAsyncMode = x, le.isConcurrentMode = D, le.isContextConsumer = K, le.isContextProvider = b, le.isElement = v, le.isForwardRef = _, le.isFragment = I, le.isLazy = C, le.isMemo = z, le.isPortal = H, le.isProfiler = B, le.isStrictMode = Q, le.isSuspense = S, le.isSuspenseList = de, le.isValidElementType = g, le.typeOf = f;
|
|
5984
6009
|
}()), le;
|
|
5985
6010
|
}
|
|
5986
|
-
process.env.NODE_ENV === "production" ? J0.exports =
|
|
6011
|
+
process.env.NODE_ENV === "production" ? J0.exports = ys() : J0.exports = _s();
|
|
5987
6012
|
var nn = J0.exports;
|
|
5988
6013
|
const rn = (e) => typeof e == "object" && e != null && e.nodeType === 1, on = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", F0 = (e, t) => {
|
|
5989
6014
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
@@ -6012,34 +6037,34 @@ const rn = (e) => typeof e == "object" && e != null && e.nodeType === 1, on = (e
|
|
|
6012
6037
|
const { scrollMode: s, block: a, inline: l, boundary: d, skipOverflowHiddenElements: u } = t, p = typeof d == "function" ? d : (oe) => oe !== d;
|
|
6013
6038
|
if (!rn(e))
|
|
6014
6039
|
throw new TypeError("Invalid target");
|
|
6015
|
-
const
|
|
6016
|
-
let
|
|
6017
|
-
for (; rn(
|
|
6018
|
-
if (
|
|
6019
|
-
N.push(
|
|
6040
|
+
const E = document.scrollingElement || document.documentElement, N = [];
|
|
6041
|
+
let A = e;
|
|
6042
|
+
for (; rn(A) && p(A); ) {
|
|
6043
|
+
if (A = Es(A), A === E) {
|
|
6044
|
+
N.push(A);
|
|
6020
6045
|
break;
|
|
6021
6046
|
}
|
|
6022
|
-
|
|
6047
|
+
A != null && A === document.body && F0(A) && !F0(document.documentElement) || A != null && F0(A, u) && N.push(A);
|
|
6023
6048
|
}
|
|
6024
|
-
const R = (i = (n = window.visualViewport) == null ? void 0 : n.width) != null ? i : innerWidth,
|
|
6049
|
+
const R = (i = (n = window.visualViewport) == null ? void 0 : n.width) != null ? i : innerWidth, y = (r = (o = window.visualViewport) == null ? void 0 : o.height) != null ? r : innerHeight, { scrollX: T, scrollY: h } = window, { height: m, width: g, top: f, right: w, bottom: k, left: P } = e.getBoundingClientRect(), { top: q, right: U, bottom: G, left: X } = ((oe) => {
|
|
6025
6050
|
const W = window.getComputedStyle(oe);
|
|
6026
6051
|
return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
|
|
6027
6052
|
})(e);
|
|
6028
|
-
let ne = a === "start" || a === "nearest" ? f - q : a === "end" ?
|
|
6053
|
+
let ne = a === "start" || a === "nearest" ? f - q : a === "end" ? k + G : f + m / 2 - q + G, Z = l === "center" ? P + g / 2 - X + U : l === "end" ? w + U : P - X;
|
|
6029
6054
|
const ie = [];
|
|
6030
6055
|
for (let oe = 0; oe < N.length; oe++) {
|
|
6031
|
-
const W = N[oe], { height: pe, width: ge, top: x, right:
|
|
6032
|
-
if (s === "if-needed" && f >= 0 && P >= 0 &&
|
|
6056
|
+
const W = N[oe], { height: pe, width: ge, top: x, right: D, bottom: K, left: b } = W.getBoundingClientRect();
|
|
6057
|
+
if (s === "if-needed" && f >= 0 && P >= 0 && k <= y && w <= R && f >= x && k <= K && P >= b && w <= D)
|
|
6033
6058
|
return ie;
|
|
6034
|
-
const v = getComputedStyle(W),
|
|
6059
|
+
const v = getComputedStyle(W), _ = parseInt(v.borderLeftWidth, 10), I = parseInt(v.borderTopWidth, 10), C = parseInt(v.borderRightWidth, 10), z = parseInt(v.borderBottomWidth, 10);
|
|
6035
6060
|
let H = 0, B = 0;
|
|
6036
|
-
const Q = "offsetWidth" in W ? W.offsetWidth - W.clientWidth -
|
|
6037
|
-
if (
|
|
6038
|
-
H = a === "start" ? ne : a === "end" ? ne -
|
|
6061
|
+
const Q = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - _ - C : 0, S = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - I - z : 0, de = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : ge / W.offsetWidth : 0, L = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : pe / W.offsetHeight : 0;
|
|
6062
|
+
if (E === W)
|
|
6063
|
+
H = a === "start" ? ne : a === "end" ? ne - y : a === "nearest" ? E0(h, h + y, y, I, z, h + ne, h + ne + m, m) : ne - y / 2, B = l === "start" ? Z : l === "center" ? Z - R / 2 : l === "end" ? Z - R : E0(T, T + R, R, _, C, T + Z, T + Z + g, g), H = Math.max(0, H + h), B = Math.max(0, B + T);
|
|
6039
6064
|
else {
|
|
6040
|
-
H = a === "start" ? ne - x -
|
|
6041
|
-
const { scrollLeft:
|
|
6042
|
-
H = L === 0 ? 0 : Math.max(0, Math.min(be + H / L, W.scrollHeight - pe / L + S)), B = de === 0 ? 0 : Math.max(0, Math.min(
|
|
6065
|
+
H = a === "start" ? ne - x - I : a === "end" ? ne - K + z + S : a === "nearest" ? E0(x, K, pe, I, z + S, ne, ne + m, m) : ne - (x + pe / 2) + S / 2, B = l === "start" ? Z - b - _ : l === "center" ? Z - (b + ge / 2) + Q / 2 : l === "end" ? Z - D + C + Q : E0(b, D, ge, _, C + Q, Z, Z + g, g);
|
|
6066
|
+
const { scrollLeft: _e, scrollTop: be } = W;
|
|
6067
|
+
H = L === 0 ? 0 : Math.max(0, Math.min(be + H / L, W.scrollHeight - pe / L + S)), B = de === 0 ? 0 : Math.max(0, Math.min(_e + B / de, W.scrollWidth - ge / de + Q)), ne += be - H, Z += _e - B;
|
|
6043
6068
|
}
|
|
6044
6069
|
ie.push({ el: W, top: H, left: B });
|
|
6045
6070
|
}
|
|
@@ -6157,7 +6182,7 @@ function et(e) {
|
|
|
6157
6182
|
function Ss(e) {
|
|
6158
6183
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
6159
6184
|
}
|
|
6160
|
-
function
|
|
6185
|
+
function t0(e, t, n, i, o) {
|
|
6161
6186
|
o === void 0 && (o = !1);
|
|
6162
6187
|
var r = n.length;
|
|
6163
6188
|
if (r === 0)
|
|
@@ -6216,7 +6241,7 @@ function dr(e, t) {
|
|
|
6216
6241
|
n.textContent = e, Os(t);
|
|
6217
6242
|
}
|
|
6218
6243
|
}
|
|
6219
|
-
var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, pr = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, gr = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, N0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, S0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, mr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, hr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, vr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, br = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8,
|
|
6244
|
+
var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, pr = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, gr = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, N0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, S0 = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, mr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, hr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, vr = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, br = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, yr = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, _r = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Er = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Ir = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, tt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, xr = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, wr = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Nr = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, Rs = /* @__PURE__ */ Object.freeze({
|
|
6220
6245
|
__proto__: null,
|
|
6221
6246
|
unknown: fr,
|
|
6222
6247
|
mouseUp: pr,
|
|
@@ -6227,15 +6252,15 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6227
6252
|
keyDownEnter: hr,
|
|
6228
6253
|
keyDownHome: vr,
|
|
6229
6254
|
keyDownEnd: br,
|
|
6230
|
-
clickItem:
|
|
6231
|
-
blurInput:
|
|
6255
|
+
clickItem: yr,
|
|
6256
|
+
blurInput: _r,
|
|
6232
6257
|
changeInput: Er,
|
|
6233
6258
|
keyDownSpaceButton: Ir,
|
|
6234
6259
|
clickButton: tt,
|
|
6235
6260
|
blurButton: xr,
|
|
6236
6261
|
controlledPropUpdatedSelectedItem: wr,
|
|
6237
6262
|
touchEnd: Nr
|
|
6238
|
-
}), Cs = ["refKey", "ref"], Ms = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], Ts = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], As = ["refKey", "ref"],
|
|
6263
|
+
}), Cs = ["refKey", "ref"], Ms = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], Ts = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], As = ["refKey", "ref"], ks = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], Ds = /* @__PURE__ */ function() {
|
|
6239
6264
|
var e = /* @__PURE__ */ function(t) {
|
|
6240
6265
|
ls(n, t);
|
|
6241
6266
|
function n(o) {
|
|
@@ -6280,16 +6305,16 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6280
6305
|
}, r.selectHighlightedItem = function(h, m) {
|
|
6281
6306
|
return r.selectItemAtIndex(r.getState().highlightedIndex, h, m);
|
|
6282
6307
|
}, r.internalSetState = function(h, m) {
|
|
6283
|
-
var g, f, w = {},
|
|
6284
|
-
return !
|
|
6308
|
+
var g, f, w = {}, k = typeof h == "function";
|
|
6309
|
+
return !k && h.hasOwnProperty("inputValue") && r.props.onInputValueChange(h.inputValue, Y({}, r.getStateAndHelpers(), h)), r.setState(function(P) {
|
|
6285
6310
|
var q;
|
|
6286
6311
|
P = r.getState(P);
|
|
6287
|
-
var U =
|
|
6312
|
+
var U = k ? h(P) : h;
|
|
6288
6313
|
U = r.props.stateReducer(P, U), g = U.hasOwnProperty("selectedItem");
|
|
6289
6314
|
var G = {};
|
|
6290
6315
|
return g && U.selectedItem !== P.selectedItem && (f = U.selectedItem), (q = U).type || (q.type = fr), Object.keys(U).forEach(function(X) {
|
|
6291
6316
|
P[X] !== U[X] && (w[X] = U[X]), X !== "type" && (U[X], C0(r.props, X) || (G[X] = U[X]));
|
|
6292
|
-
}),
|
|
6317
|
+
}), k && U.hasOwnProperty("inputValue") && r.props.onInputValueChange(U.inputValue, Y({}, r.getStateAndHelpers(), U)), G;
|
|
6293
6318
|
}, function() {
|
|
6294
6319
|
an(m)();
|
|
6295
6320
|
var P = Object.keys(w).length > 1;
|
|
@@ -6298,10 +6323,10 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6298
6323
|
}, r.rootRef = function(h) {
|
|
6299
6324
|
return r._rootNode = h;
|
|
6300
6325
|
}, r.getRootProps = function(h, m) {
|
|
6301
|
-
var g, f = h === void 0 ? {} : h, w = f.refKey,
|
|
6302
|
-
r.getRootProps.called = !0, r.getRootProps.refKey =
|
|
6326
|
+
var g, f = h === void 0 ? {} : h, w = f.refKey, k = w === void 0 ? "ref" : w, P = f.ref, q = He(f, Cs), U = m === void 0 ? {} : m, G = U.suppressRefError, X = G === void 0 ? !1 : G;
|
|
6327
|
+
r.getRootProps.called = !0, r.getRootProps.refKey = k, r.getRootProps.suppressRefError = X;
|
|
6303
6328
|
var ne = r.getState(), Z = ne.isOpen;
|
|
6304
|
-
return Y((g = {}, g[
|
|
6329
|
+
return Y((g = {}, g[k] = a0(P, r.rootRef), g.role = "combobox", g["aria-expanded"] = Z, g["aria-haspopup"] = "listbox", g["aria-owns"] = Z ? r.menuId : void 0, g["aria-labelledby"] = r.labelId, g), q);
|
|
6305
6330
|
}, r.keyDownHandlers = {
|
|
6306
6331
|
ArrowDown: function(m) {
|
|
6307
6332
|
var g = this;
|
|
@@ -6317,7 +6342,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6317
6342
|
}, function() {
|
|
6318
6343
|
var w = g.getItemCount();
|
|
6319
6344
|
if (w > 0) {
|
|
6320
|
-
var
|
|
6345
|
+
var k = g.getState(), P = k.highlightedIndex, q = t0(P, 1, {
|
|
6321
6346
|
length: w
|
|
6322
6347
|
}, g.isItemDisabled, !0);
|
|
6323
6348
|
g.setHighlightedIndex(q, {
|
|
@@ -6340,7 +6365,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6340
6365
|
}, function() {
|
|
6341
6366
|
var w = g.getItemCount();
|
|
6342
6367
|
if (w > 0) {
|
|
6343
|
-
var
|
|
6368
|
+
var k = g.getState(), P = k.highlightedIndex, q = t0(P, -1, {
|
|
6344
6369
|
length: w
|
|
6345
6370
|
}, g.isItemDisabled, !0);
|
|
6346
6371
|
g.setHighlightedIndex(q, {
|
|
@@ -6354,8 +6379,8 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6354
6379
|
var g = this.getState(), f = g.isOpen, w = g.highlightedIndex;
|
|
6355
6380
|
if (f && w != null) {
|
|
6356
6381
|
m.preventDefault();
|
|
6357
|
-
var
|
|
6358
|
-
if (
|
|
6382
|
+
var k = this.items[w], P = this.getItemNodeFromIndex(w);
|
|
6383
|
+
if (k == null || P && P.hasAttribute("disabled"))
|
|
6359
6384
|
return;
|
|
6360
6385
|
this.selectHighlightedItem({
|
|
6361
6386
|
type: hr
|
|
@@ -6384,10 +6409,10 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6384
6409
|
m.preventDefault();
|
|
6385
6410
|
var w = this.getItemCount();
|
|
6386
6411
|
if (!(w <= 0 || !f)) {
|
|
6387
|
-
var
|
|
6412
|
+
var k = l0(0, !1, {
|
|
6388
6413
|
length: w
|
|
6389
6414
|
}, this.isItemDisabled);
|
|
6390
|
-
this.setHighlightedIndex(
|
|
6415
|
+
this.setHighlightedIndex(k, {
|
|
6391
6416
|
type: vr
|
|
6392
6417
|
});
|
|
6393
6418
|
}
|
|
@@ -6399,10 +6424,10 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6399
6424
|
m.preventDefault();
|
|
6400
6425
|
var w = this.getItemCount();
|
|
6401
6426
|
if (!(w <= 0 || !f)) {
|
|
6402
|
-
var
|
|
6427
|
+
var k = l0(w - 1, !0, {
|
|
6403
6428
|
length: w
|
|
6404
6429
|
}, this.isItemDisabled);
|
|
6405
|
-
this.setHighlightedIndex(
|
|
6430
|
+
this.setHighlightedIndex(k, {
|
|
6406
6431
|
type: br
|
|
6407
6432
|
});
|
|
6408
6433
|
}
|
|
@@ -6411,11 +6436,11 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6411
6436
|
}), r.getToggleButtonProps = function(h) {
|
|
6412
6437
|
var m = h === void 0 ? {} : h, g = m.onClick;
|
|
6413
6438
|
m.onPress;
|
|
6414
|
-
var f = m.onKeyDown, w = m.onKeyUp,
|
|
6439
|
+
var f = m.onKeyDown, w = m.onKeyUp, k = m.onBlur, P = He(m, Ms), q = r.getState(), U = q.isOpen, G = {
|
|
6415
6440
|
onClick: he(g, r.buttonHandleClick),
|
|
6416
6441
|
onKeyDown: he(f, r.buttonHandleKeyDown),
|
|
6417
6442
|
onKeyUp: he(w, r.buttonHandleKeyUp),
|
|
6418
|
-
onBlur: he(
|
|
6443
|
+
onBlur: he(k, r.buttonHandleBlur)
|
|
6419
6444
|
}, X = P.disabled ? {} : G;
|
|
6420
6445
|
return Y({
|
|
6421
6446
|
type: "button",
|
|
@@ -6457,14 +6482,14 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6457
6482
|
id: r.labelId
|
|
6458
6483
|
}, h);
|
|
6459
6484
|
}, r.getInputProps = function(h) {
|
|
6460
|
-
var m = h === void 0 ? {} : h, g = m.onKeyDown, f = m.onBlur, w = m.onChange,
|
|
6485
|
+
var m = h === void 0 ? {} : h, g = m.onKeyDown, f = m.onBlur, w = m.onChange, k = m.onInput;
|
|
6461
6486
|
m.onChangeText;
|
|
6462
6487
|
var P = He(m, Ts), q, U = {};
|
|
6463
6488
|
q = "onChange";
|
|
6464
6489
|
var G = r.getState(), X = G.inputValue, ne = G.isOpen, Z = G.highlightedIndex;
|
|
6465
6490
|
if (!P.disabled) {
|
|
6466
6491
|
var ie;
|
|
6467
|
-
U = (ie = {}, ie[q] = he(w,
|
|
6492
|
+
U = (ie = {}, ie[q] = he(w, k, r.inputHandleChange), ie.onKeyDown = he(g, r.inputHandleKeyDown), ie.onBlur = he(f, r.inputHandleBlur), ie);
|
|
6468
6493
|
}
|
|
6469
6494
|
return Y({
|
|
6470
6495
|
"aria-autocomplete": "list",
|
|
@@ -6493,24 +6518,24 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6493
6518
|
if (!(r.isMouseDown || !r.props.environment)) {
|
|
6494
6519
|
var m = r.props.environment.document.activeElement, g = (m == null || (h = m.dataset) == null ? void 0 : h.toggle) && r._rootNode && r._rootNode.contains(m);
|
|
6495
6520
|
g || r.reset({
|
|
6496
|
-
type:
|
|
6521
|
+
type: _r
|
|
6497
6522
|
});
|
|
6498
6523
|
}
|
|
6499
6524
|
});
|
|
6500
6525
|
}, r.menuRef = function(h) {
|
|
6501
6526
|
r._menuNode = h;
|
|
6502
6527
|
}, r.getMenuProps = function(h, m) {
|
|
6503
|
-
var g, f = h === void 0 ? {} : h, w = f.refKey,
|
|
6504
|
-
return r.getMenuProps.called = !0, r.getMenuProps.refKey =
|
|
6528
|
+
var g, f = h === void 0 ? {} : h, w = f.refKey, k = w === void 0 ? "ref" : w, P = f.ref, q = He(f, As), U = m === void 0 ? {} : m, G = U.suppressRefError, X = G === void 0 ? !1 : G;
|
|
6529
|
+
return r.getMenuProps.called = !0, r.getMenuProps.refKey = k, r.getMenuProps.suppressRefError = X, Y((g = {}, g[k] = a0(P, r.menuRef), g.role = "listbox", g["aria-labelledby"] = q && q["aria-label"] ? void 0 : r.labelId, g.id = r.menuId, g), q);
|
|
6505
6530
|
}, r.getItemProps = function(h) {
|
|
6506
|
-
var m, g = h === void 0 ? {} : h, f = g.onMouseMove, w = g.onMouseDown,
|
|
6531
|
+
var m, g = h === void 0 ? {} : h, f = g.onMouseMove, w = g.onMouseDown, k = g.onClick;
|
|
6507
6532
|
g.onPress;
|
|
6508
6533
|
var P = g.index, q = g.item, U = q === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
6509
6534
|
/* istanbul ignore next */
|
|
6510
6535
|
void 0
|
|
6511
|
-
) : ws("getItemProps", "item") : q, G = He(g,
|
|
6536
|
+
) : ws("getItemProps", "item") : q, G = He(g, ks);
|
|
6512
6537
|
P === void 0 ? (r.items.push(U), P = r.items.indexOf(U)) : r.items[P] = U;
|
|
6513
|
-
var X = "onClick", ne =
|
|
6538
|
+
var X = "onClick", ne = k, Z = (m = {
|
|
6514
6539
|
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
6515
6540
|
// is only triggered on actual mouse movement while onMouseEnter
|
|
6516
6541
|
// can fire on DOM changes, interrupting keyboard navigation
|
|
@@ -6526,7 +6551,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6526
6551
|
})
|
|
6527
6552
|
}, m[X] = he(ne, function() {
|
|
6528
6553
|
r.selectItemAtIndex(P, {
|
|
6529
|
-
type:
|
|
6554
|
+
type: yr
|
|
6530
6555
|
});
|
|
6531
6556
|
}), m), ie = G.disabled ? {
|
|
6532
6557
|
onMouseDown: Z.onMouseDown
|
|
@@ -6579,13 +6604,13 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6579
6604
|
r.previousResultCount = f, dr(w, r.props.environment.document);
|
|
6580
6605
|
}
|
|
6581
6606
|
}, 200);
|
|
6582
|
-
var s = r.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, d = l === void 0 ? a : l, u = s.defaultIsOpen, p = s.initialIsOpen,
|
|
6607
|
+
var s = r.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, d = l === void 0 ? a : l, u = s.defaultIsOpen, p = s.initialIsOpen, E = p === void 0 ? u : p, N = s.initialInputValue, A = N === void 0 ? "" : N, R = s.initialSelectedItem, y = R === void 0 ? null : R, T = r.getState({
|
|
6583
6608
|
highlightedIndex: d,
|
|
6584
|
-
isOpen:
|
|
6585
|
-
inputValue:
|
|
6586
|
-
selectedItem:
|
|
6609
|
+
isOpen: E,
|
|
6610
|
+
inputValue: A,
|
|
6611
|
+
selectedItem: y
|
|
6587
6612
|
});
|
|
6588
|
-
return
|
|
6613
|
+
return T.selectedItem != null && r.props.initialInputValue === void 0 && (T.inputValue = r.props.itemToString(T.selectedItem)), r.state = T, r;
|
|
6589
6614
|
}
|
|
6590
6615
|
var i = n.prototype;
|
|
6591
6616
|
return i.internalClearTimeouts = function() {
|
|
@@ -6607,21 +6632,21 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6607
6632
|
}, i.moveHighlightedIndex = function(r, s) {
|
|
6608
6633
|
var a = this.getItemCount(), l = this.getState(), d = l.highlightedIndex;
|
|
6609
6634
|
if (a > 0) {
|
|
6610
|
-
var u =
|
|
6635
|
+
var u = t0(d, r, {
|
|
6611
6636
|
length: a
|
|
6612
6637
|
}, this.isItemDisabled, !0);
|
|
6613
6638
|
this.setHighlightedIndex(u, s);
|
|
6614
6639
|
}
|
|
6615
6640
|
}, i.getStateAndHelpers = function() {
|
|
6616
|
-
var r = this.getState(), s = r.highlightedIndex, a = r.inputValue, l = r.selectedItem, d = r.isOpen, u = this.props.itemToString, p = this.id,
|
|
6641
|
+
var r = this.getState(), s = r.highlightedIndex, a = r.inputValue, l = r.selectedItem, d = r.isOpen, u = this.props.itemToString, p = this.id, E = this.getRootProps, N = this.getToggleButtonProps, A = this.getLabelProps, R = this.getMenuProps, y = this.getInputProps, T = this.getItemProps, h = this.openMenu, m = this.closeMenu, g = this.toggleMenu, f = this.selectItem, w = this.selectItemAtIndex, k = this.selectHighlightedItem, P = this.setHighlightedIndex, q = this.clearSelection, U = this.clearItems, G = this.reset, X = this.setItemCount, ne = this.unsetItemCount, Z = this.internalSetState;
|
|
6617
6642
|
return {
|
|
6618
6643
|
// prop getters
|
|
6619
|
-
getRootProps:
|
|
6644
|
+
getRootProps: E,
|
|
6620
6645
|
getToggleButtonProps: N,
|
|
6621
|
-
getLabelProps:
|
|
6646
|
+
getLabelProps: A,
|
|
6622
6647
|
getMenuProps: R,
|
|
6623
|
-
getInputProps:
|
|
6624
|
-
getItemProps:
|
|
6648
|
+
getInputProps: y,
|
|
6649
|
+
getItemProps: T,
|
|
6625
6650
|
// actions
|
|
6626
6651
|
reset: G,
|
|
6627
6652
|
openMenu: h,
|
|
@@ -6629,7 +6654,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6629
6654
|
toggleMenu: g,
|
|
6630
6655
|
selectItem: f,
|
|
6631
6656
|
selectItemAtIndex: w,
|
|
6632
|
-
selectHighlightedItem:
|
|
6657
|
+
selectHighlightedItem: k,
|
|
6633
6658
|
setHighlightedIndex: P,
|
|
6634
6659
|
clearSelection: q,
|
|
6635
6660
|
clearItems: U,
|
|
@@ -6657,8 +6682,8 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6657
6682
|
r.isMouseDown = !0;
|
|
6658
6683
|
}, a = function(N) {
|
|
6659
6684
|
r.isMouseDown = !1;
|
|
6660
|
-
var
|
|
6661
|
-
!
|
|
6685
|
+
var A = M0(N.target, [r._rootNode, r._menuNode], r.props.environment);
|
|
6686
|
+
!A && r.getState().isOpen && r.reset({
|
|
6662
6687
|
type: pr
|
|
6663
6688
|
}, function() {
|
|
6664
6689
|
return r.props.onOuterClick(r.getStateAndHelpers());
|
|
@@ -6668,8 +6693,8 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6668
6693
|
}, d = function() {
|
|
6669
6694
|
r.isTouchMove = !0;
|
|
6670
6695
|
}, u = function(N) {
|
|
6671
|
-
var
|
|
6672
|
-
!r.isTouchMove && !
|
|
6696
|
+
var A = M0(N.target, [r._rootNode, r._menuNode], r.props.environment, !1);
|
|
6697
|
+
!r.isTouchMove && !A && r.getState().isOpen && r.reset({
|
|
6673
6698
|
type: Nr
|
|
6674
6699
|
}, function() {
|
|
6675
6700
|
return r.props.onOuterClick(r.getStateAndHelpers());
|
|
@@ -6680,8 +6705,8 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6680
6705
|
};
|
|
6681
6706
|
}
|
|
6682
6707
|
}, i.shouldScroll = function(r, s) {
|
|
6683
|
-
var a = this.props.highlightedIndex === void 0 ? this.getState() : this.props, l = a.highlightedIndex, d = s.highlightedIndex === void 0 ? r : s, u = d.highlightedIndex, p = l && this.getState().isOpen && !r.isOpen,
|
|
6684
|
-
return p ||
|
|
6708
|
+
var a = this.props.highlightedIndex === void 0 ? this.getState() : this.props, l = a.highlightedIndex, d = s.highlightedIndex === void 0 ? r : s, u = d.highlightedIndex, p = l && this.getState().isOpen && !r.isOpen, E = l !== u;
|
|
6709
|
+
return p || E;
|
|
6685
6710
|
}, i.componentDidUpdate = function(r, s) {
|
|
6686
6711
|
process.env.NODE_ENV !== "production" && (pt(this.state, r, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && ln(this._menuNode, this.getMenuProps)), C0(this.props, "selectedItem") && this.props.selectedItemChanged(r.selectedItem, this.props.selectedItem) && this.internalSetState({
|
|
6687
6712
|
type: wr,
|
|
@@ -6730,7 +6755,7 @@ var fr = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
6730
6755
|
scrollIntoView: or
|
|
6731
6756
|
}, e.stateChangeTypes = Rs, e;
|
|
6732
6757
|
}();
|
|
6733
|
-
process.env.NODE_ENV !== "production" && (
|
|
6758
|
+
process.env.NODE_ENV !== "production" && (Ds.propTypes = {
|
|
6734
6759
|
children: O.func,
|
|
6735
6760
|
defaultHighlightedIndex: O.number,
|
|
6736
6761
|
defaultIsOpen: O.bool,
|
|
@@ -6813,8 +6838,8 @@ function Hs(e) {
|
|
|
6813
6838
|
}
|
|
6814
6839
|
var zs = ft(function(e, t) {
|
|
6815
6840
|
dr(e(), t);
|
|
6816
|
-
}, 200), Us = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Yr :
|
|
6817
|
-
var n = t.id, i = t.labelId, o = t.menuId, r = t.getItemId, s = t.toggleButtonId, a = t.inputId, l = "downshift-" +
|
|
6841
|
+
}, 200), Us = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Yr : Pe, js = "useId" in ye ? function(t) {
|
|
6842
|
+
var n = t.id, i = t.labelId, o = t.menuId, r = t.getItemId, s = t.toggleButtonId, a = t.inputId, l = "downshift-" + ye.useId();
|
|
6818
6843
|
n || (n = l);
|
|
6819
6844
|
var d = Ee({
|
|
6820
6845
|
labelId: i || n + "-label",
|
|
@@ -6859,21 +6884,21 @@ function Or(e) {
|
|
|
6859
6884
|
return t.current = e, t;
|
|
6860
6885
|
}
|
|
6861
6886
|
function qs(e, t, n, i) {
|
|
6862
|
-
var o = Ee(), r = Ee(), s = xe(function(N,
|
|
6863
|
-
r.current =
|
|
6864
|
-
var R = e(N,
|
|
6887
|
+
var o = Ee(), r = Ee(), s = xe(function(N, A) {
|
|
6888
|
+
r.current = A, N = R0(N, A.props);
|
|
6889
|
+
var R = e(N, A), y = A.props.stateReducer(N, Y({}, A, {
|
|
6865
6890
|
changes: R
|
|
6866
6891
|
}));
|
|
6867
|
-
return
|
|
6892
|
+
return y;
|
|
6868
6893
|
}, [e]), a = Xr(s, t, n), l = a[0], d = a[1], u = Or(t), p = xe(function(N) {
|
|
6869
6894
|
return d(Y({
|
|
6870
6895
|
props: u.current
|
|
6871
6896
|
}, N));
|
|
6872
|
-
}, [u]),
|
|
6873
|
-
return
|
|
6874
|
-
var N =
|
|
6875
|
-
N && $s(
|
|
6876
|
-
}, [l,
|
|
6897
|
+
}, [u]), E = r.current;
|
|
6898
|
+
return Pe(function() {
|
|
6899
|
+
var N = E && o.current && !i(o.current, l);
|
|
6900
|
+
N && $s(E, R0(o.current, E.props), l), o.current = l;
|
|
6901
|
+
}, [l, E, i]), [l, p];
|
|
6877
6902
|
}
|
|
6878
6903
|
var d0 = {
|
|
6879
6904
|
itemToString: Fs,
|
|
@@ -6916,21 +6941,21 @@ function Gs(e, t, n, i) {
|
|
|
6916
6941
|
isMouseDown: !1,
|
|
6917
6942
|
isTouchMove: !1
|
|
6918
6943
|
});
|
|
6919
|
-
return
|
|
6944
|
+
return Pe(function() {
|
|
6920
6945
|
if (n) {
|
|
6921
6946
|
var r = function() {
|
|
6922
6947
|
o.current.isMouseDown = !0;
|
|
6923
6948
|
}, s = function(p) {
|
|
6924
|
-
o.current.isMouseDown = !1, e && !M0(p.target, t.map(function(
|
|
6925
|
-
return
|
|
6949
|
+
o.current.isMouseDown = !1, e && !M0(p.target, t.map(function(E) {
|
|
6950
|
+
return E.current;
|
|
6926
6951
|
}), n) && i();
|
|
6927
6952
|
}, a = function() {
|
|
6928
6953
|
o.current.isTouchMove = !1;
|
|
6929
6954
|
}, l = function() {
|
|
6930
6955
|
o.current.isTouchMove = !0;
|
|
6931
6956
|
}, d = function(p) {
|
|
6932
|
-
e && !o.current.isTouchMove && !M0(p.target, t.map(function(
|
|
6933
|
-
return
|
|
6957
|
+
e && !o.current.isTouchMove && !M0(p.target, t.map(function(E) {
|
|
6958
|
+
return E.current;
|
|
6934
6959
|
}), n, !1) && i();
|
|
6935
6960
|
};
|
|
6936
6961
|
return n.addEventListener("mousedown", r), n.addEventListener("mouseup", s), n.addEventListener("touchstart", a), n.addEventListener("touchmove", l), n.addEventListener("touchend", d), function() {
|
|
@@ -6948,7 +6973,7 @@ process.env.NODE_ENV !== "production" && (Rr = function() {
|
|
|
6948
6973
|
var r = Ee(i.reduce(function(a, l) {
|
|
6949
6974
|
return a[l] = {}, a;
|
|
6950
6975
|
}, {}));
|
|
6951
|
-
|
|
6976
|
+
Pe(function() {
|
|
6952
6977
|
Object.keys(r.current).forEach(function(a) {
|
|
6953
6978
|
var l = r.current[a];
|
|
6954
6979
|
if (t.current && !Object.keys(l).length) {
|
|
@@ -6970,7 +6995,7 @@ process.env.NODE_ENV !== "production" && (Rr = function() {
|
|
|
6970
6995
|
});
|
|
6971
6996
|
function un(e, t, n) {
|
|
6972
6997
|
var i = n.isInitialMount, o = n.highlightedIndex, r = n.items, s = n.environment, a = He(n, Ls);
|
|
6973
|
-
|
|
6998
|
+
Pe(function() {
|
|
6974
6999
|
i || !(s != null && s.document) || zs(function() {
|
|
6975
7000
|
return e(Y({
|
|
6976
7001
|
highlightedIndex: o,
|
|
@@ -6989,7 +7014,7 @@ function Ys(e) {
|
|
|
6989
7014
|
var Cr = De;
|
|
6990
7015
|
process.env.NODE_ENV !== "production" && (Cr = function(t) {
|
|
6991
7016
|
var n = t.isInitialMount, i = t.props, o = t.state, r = Ee(i);
|
|
6992
|
-
|
|
7017
|
+
Pe(function() {
|
|
6993
7018
|
n || (pt(o, r.current, i), r.current = i);
|
|
6994
7019
|
}, [o, i, n]);
|
|
6995
7020
|
});
|
|
@@ -7132,23 +7157,23 @@ process.env.NODE_ENV;
|
|
|
7132
7157
|
process.env.NODE_ENV;
|
|
7133
7158
|
process.env.NODE_ENV;
|
|
7134
7159
|
process.env.NODE_ENV;
|
|
7135
|
-
var mt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, ht = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, vt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, bt = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3,
|
|
7160
|
+
var mt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, ht = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, vt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, bt = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, yt = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, _t = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, Et = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, It = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, xt = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, T0 = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, wt = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, Ar = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, kr = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, Nt = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, Dr = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, Pr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Lr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, $r = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, Br = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, St = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, Vr = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, Hr = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, Ot = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, zr = /* @__PURE__ */ Object.freeze({
|
|
7136
7161
|
__proto__: null,
|
|
7137
7162
|
InputKeyDownArrowDown: mt,
|
|
7138
7163
|
InputKeyDownArrowUp: ht,
|
|
7139
7164
|
InputKeyDownEscape: vt,
|
|
7140
7165
|
InputKeyDownHome: bt,
|
|
7141
|
-
InputKeyDownEnd:
|
|
7142
|
-
InputKeyDownPageUp:
|
|
7166
|
+
InputKeyDownEnd: yt,
|
|
7167
|
+
InputKeyDownPageUp: _t,
|
|
7143
7168
|
InputKeyDownPageDown: Et,
|
|
7144
7169
|
InputKeyDownEnter: It,
|
|
7145
7170
|
InputChange: xt,
|
|
7146
7171
|
InputBlur: T0,
|
|
7147
7172
|
InputClick: wt,
|
|
7148
7173
|
MenuMouseLeave: Ar,
|
|
7149
|
-
ItemMouseMove:
|
|
7174
|
+
ItemMouseMove: kr,
|
|
7150
7175
|
ItemClick: Nt,
|
|
7151
|
-
ToggleButtonClick:
|
|
7176
|
+
ToggleButtonClick: Dr,
|
|
7152
7177
|
FunctionToggleMenu: Pr,
|
|
7153
7178
|
FunctionOpenMenu: Lr,
|
|
7154
7179
|
FunctionCloseMenu: $r,
|
|
@@ -7177,7 +7202,7 @@ var ec = Y({}, Tr, {
|
|
|
7177
7202
|
});
|
|
7178
7203
|
function tc(e, t, n, i) {
|
|
7179
7204
|
var o = Ee(), r = qs(e, t, n, i), s = r[0], a = r[1];
|
|
7180
|
-
return
|
|
7205
|
+
return Pe(function() {
|
|
7181
7206
|
C0(t, "selectedItem") && (t.selectedItemChanged(o.current, t.selectedItem) && a({
|
|
7182
7207
|
type: Ot,
|
|
7183
7208
|
inputValue: t.itemToString(t.selectedItem)
|
|
@@ -7210,7 +7235,7 @@ function rc(e, t) {
|
|
|
7210
7235
|
break;
|
|
7211
7236
|
case mt:
|
|
7212
7237
|
e.isOpen ? s = {
|
|
7213
|
-
highlightedIndex:
|
|
7238
|
+
highlightedIndex: t0(e.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
|
|
7214
7239
|
} : s = {
|
|
7215
7240
|
highlightedIndex: r && e.selectedItem == null ? -1 : f0(o, e, 1),
|
|
7216
7241
|
isOpen: o.items.length >= 0
|
|
@@ -7218,7 +7243,7 @@ function rc(e, t) {
|
|
|
7218
7243
|
break;
|
|
7219
7244
|
case ht:
|
|
7220
7245
|
e.isOpen ? r ? s = dn(o, e.highlightedIndex) : s = {
|
|
7221
|
-
highlightedIndex:
|
|
7246
|
+
highlightedIndex: t0(e.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
|
|
7222
7247
|
} : s = {
|
|
7223
7248
|
highlightedIndex: f0(o, e, -1),
|
|
7224
7249
|
isOpen: o.items.length >= 0
|
|
@@ -7236,14 +7261,14 @@ function rc(e, t) {
|
|
|
7236
7261
|
inputValue: ""
|
|
7237
7262
|
});
|
|
7238
7263
|
break;
|
|
7239
|
-
case
|
|
7264
|
+
case _t:
|
|
7240
7265
|
s = {
|
|
7241
|
-
highlightedIndex:
|
|
7266
|
+
highlightedIndex: t0(e.highlightedIndex, -10, o.items, o.isItemDisabled, !0)
|
|
7242
7267
|
};
|
|
7243
7268
|
break;
|
|
7244
7269
|
case Et:
|
|
7245
7270
|
s = {
|
|
7246
|
-
highlightedIndex:
|
|
7271
|
+
highlightedIndex: t0(e.highlightedIndex, 10, o.items, o.isItemDisabled, !0)
|
|
7247
7272
|
};
|
|
7248
7273
|
break;
|
|
7249
7274
|
case bt:
|
|
@@ -7251,7 +7276,7 @@ function rc(e, t) {
|
|
|
7251
7276
|
highlightedIndex: l0(0, !1, o.items, o.isItemDisabled)
|
|
7252
7277
|
};
|
|
7253
7278
|
break;
|
|
7254
|
-
case
|
|
7279
|
+
case yt:
|
|
7255
7280
|
s = {
|
|
7256
7281
|
highlightedIndex: l0(o.items.length - 1, !0, o.items, o.isItemDisabled)
|
|
7257
7282
|
};
|
|
@@ -7298,13 +7323,13 @@ var ic = ["onMouseLeave", "refKey", "ref"], oc = ["item", "index", "refKey", "re
|
|
|
7298
7323
|
Rt.stateChangeTypes = zr;
|
|
7299
7324
|
function Rt(e) {
|
|
7300
7325
|
e === void 0 && (e = {}), Ur(e, Rt);
|
|
7301
|
-
var t = Y({}, nc, e), n = t.items, i = t.scrollIntoView, o = t.environment, r = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = tc(rc, t, Js, Xs), d = l[0], u = l[1], p = d.isOpen,
|
|
7326
|
+
var t = Y({}, nc, e), n = t.items, i = t.scrollIntoView, o = t.environment, r = t.getA11yStatusMessage, s = t.getA11ySelectionMessage, a = t.itemToString, l = tc(rc, t, Js, Xs), d = l[0], u = l[1], p = d.isOpen, E = d.highlightedIndex, N = d.selectedItem, A = d.inputValue, R = Ee(null), y = Ee({}), T = Ee(null), h = Ee(null), m = Ee(!0), g = js(t), f = Ee(), w = Or({
|
|
7302
7327
|
state: d,
|
|
7303
7328
|
props: t
|
|
7304
|
-
}),
|
|
7305
|
-
return
|
|
7329
|
+
}), k = xe(function(v) {
|
|
7330
|
+
return y.current[g.getItemId(v)];
|
|
7306
7331
|
}, [g]);
|
|
7307
|
-
un(r, [p,
|
|
7332
|
+
un(r, [p, E, A, n], Y({
|
|
7308
7333
|
isInitialMount: m.current,
|
|
7309
7334
|
previousResultCount: f.current,
|
|
7310
7335
|
items: n,
|
|
@@ -7319,81 +7344,81 @@ function Rt(e) {
|
|
|
7319
7344
|
}, d));
|
|
7320
7345
|
var P = Ys({
|
|
7321
7346
|
menuElement: R.current,
|
|
7322
|
-
highlightedIndex:
|
|
7347
|
+
highlightedIndex: E,
|
|
7323
7348
|
isOpen: p,
|
|
7324
|
-
itemRefs:
|
|
7349
|
+
itemRefs: y,
|
|
7325
7350
|
scrollIntoView: i,
|
|
7326
|
-
getItemNodeFromIndex:
|
|
7351
|
+
getItemNodeFromIndex: k
|
|
7327
7352
|
});
|
|
7328
7353
|
Cr({
|
|
7329
7354
|
isInitialMount: m.current,
|
|
7330
7355
|
props: t,
|
|
7331
7356
|
state: d
|
|
7332
|
-
}),
|
|
7357
|
+
}), Pe(function() {
|
|
7333
7358
|
var v = u0(t, "isOpen");
|
|
7334
|
-
v &&
|
|
7335
|
-
}, []),
|
|
7359
|
+
v && T.current && T.current.focus();
|
|
7360
|
+
}, []), Pe(function() {
|
|
7336
7361
|
m.current || (f.current = n.length);
|
|
7337
7362
|
});
|
|
7338
|
-
var q = Gs(p, [
|
|
7363
|
+
var q = Gs(p, [T, R, h], o, function() {
|
|
7339
7364
|
u({
|
|
7340
7365
|
type: T0,
|
|
7341
7366
|
selectItem: !1
|
|
7342
7367
|
});
|
|
7343
7368
|
}), U = Rr("getInputProps", "getMenuProps");
|
|
7344
|
-
|
|
7369
|
+
Pe(function() {
|
|
7345
7370
|
return m.current = !1, function() {
|
|
7346
7371
|
m.current = !0;
|
|
7347
7372
|
};
|
|
7348
|
-
}, []),
|
|
7349
|
-
p || (
|
|
7350
|
-
}, [p]),
|
|
7373
|
+
}, []), Pe(function() {
|
|
7374
|
+
p || (y.current = {});
|
|
7375
|
+
}, [p]), Pe(function() {
|
|
7351
7376
|
var v;
|
|
7352
|
-
!p || !(o != null && o.document) || !(
|
|
7377
|
+
!p || !(o != null && o.document) || !(T != null && (v = T.current) != null && v.focus) || o.document.activeElement !== T.current && T.current.focus();
|
|
7353
7378
|
}, [p, o]);
|
|
7354
7379
|
var G = fn(function() {
|
|
7355
7380
|
return {
|
|
7356
|
-
ArrowDown: function(
|
|
7357
|
-
|
|
7381
|
+
ArrowDown: function(_) {
|
|
7382
|
+
_.preventDefault(), u({
|
|
7358
7383
|
type: mt,
|
|
7359
|
-
altKey:
|
|
7384
|
+
altKey: _.altKey
|
|
7360
7385
|
});
|
|
7361
7386
|
},
|
|
7362
|
-
ArrowUp: function(
|
|
7363
|
-
|
|
7387
|
+
ArrowUp: function(_) {
|
|
7388
|
+
_.preventDefault(), u({
|
|
7364
7389
|
type: ht,
|
|
7365
|
-
altKey:
|
|
7390
|
+
altKey: _.altKey
|
|
7366
7391
|
});
|
|
7367
7392
|
},
|
|
7368
|
-
Home: function(
|
|
7369
|
-
w.current.state.isOpen && (
|
|
7393
|
+
Home: function(_) {
|
|
7394
|
+
w.current.state.isOpen && (_.preventDefault(), u({
|
|
7370
7395
|
type: bt
|
|
7371
7396
|
}));
|
|
7372
7397
|
},
|
|
7373
|
-
End: function(
|
|
7374
|
-
w.current.state.isOpen && (
|
|
7375
|
-
type:
|
|
7398
|
+
End: function(_) {
|
|
7399
|
+
w.current.state.isOpen && (_.preventDefault(), u({
|
|
7400
|
+
type: yt
|
|
7376
7401
|
}));
|
|
7377
7402
|
},
|
|
7378
|
-
Escape: function(
|
|
7379
|
-
var
|
|
7380
|
-
(
|
|
7403
|
+
Escape: function(_) {
|
|
7404
|
+
var I = w.current.state;
|
|
7405
|
+
(I.isOpen || I.inputValue || I.selectedItem || I.highlightedIndex > -1) && (_.preventDefault(), u({
|
|
7381
7406
|
type: vt
|
|
7382
7407
|
}));
|
|
7383
7408
|
},
|
|
7384
|
-
Enter: function(
|
|
7385
|
-
var
|
|
7386
|
-
!
|
|
7409
|
+
Enter: function(_) {
|
|
7410
|
+
var I = w.current.state;
|
|
7411
|
+
!I.isOpen || _.which === 229 || (_.preventDefault(), u({
|
|
7387
7412
|
type: It
|
|
7388
7413
|
}));
|
|
7389
7414
|
},
|
|
7390
|
-
PageUp: function(
|
|
7391
|
-
w.current.state.isOpen && (
|
|
7392
|
-
type:
|
|
7415
|
+
PageUp: function(_) {
|
|
7416
|
+
w.current.state.isOpen && (_.preventDefault(), u({
|
|
7417
|
+
type: _t
|
|
7393
7418
|
}));
|
|
7394
7419
|
},
|
|
7395
|
-
PageDown: function(
|
|
7396
|
-
w.current.state.isOpen && (
|
|
7420
|
+
PageDown: function(_) {
|
|
7421
|
+
w.current.state.isOpen && (_.preventDefault(), u({
|
|
7397
7422
|
type: Et
|
|
7398
7423
|
}));
|
|
7399
7424
|
}
|
|
@@ -7403,69 +7428,69 @@ function Rt(e) {
|
|
|
7403
7428
|
id: g.labelId,
|
|
7404
7429
|
htmlFor: g.inputId
|
|
7405
7430
|
}, v);
|
|
7406
|
-
}, [g]), ne = xe(function(v,
|
|
7407
|
-
var
|
|
7408
|
-
return U("getMenuProps",
|
|
7431
|
+
}, [g]), ne = xe(function(v, _) {
|
|
7432
|
+
var I, C = v === void 0 ? {} : v, z = C.onMouseLeave, H = C.refKey, B = H === void 0 ? "ref" : H, Q = C.ref, S = He(C, ic), de = _ === void 0 ? {} : _, L = de.suppressRefError, _e = L === void 0 ? !1 : L;
|
|
7433
|
+
return U("getMenuProps", _e, B, R), Y((I = {}, I[B] = a0(Q, function(be) {
|
|
7409
7434
|
R.current = be;
|
|
7410
|
-
}),
|
|
7435
|
+
}), I.id = g.menuId, I.role = "listbox", I["aria-labelledby"] = S && S["aria-label"] ? void 0 : "" + g.labelId, I.onMouseLeave = he(z, function() {
|
|
7411
7436
|
u({
|
|
7412
7437
|
type: Ar
|
|
7413
7438
|
});
|
|
7414
|
-
}),
|
|
7439
|
+
}), I), S);
|
|
7415
7440
|
}, [u, U, g]), Z = xe(function(v) {
|
|
7416
|
-
var
|
|
7441
|
+
var _, I, C = v === void 0 ? {} : v, z = C.item, H = C.index, B = C.refKey, Q = B === void 0 ? "ref" : B, S = C.ref, de = C.onMouseMove, L = C.onMouseDown, _e = C.onClick;
|
|
7417
7442
|
C.onPress;
|
|
7418
7443
|
var be = C.disabled, Le = He(C, oc);
|
|
7419
7444
|
be !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
7420
|
-
var Ye = w.current, $e = Ye.props, Be = Ye.state, Xe = Ks(z, H, $e.items, "Pass either item or index to getItemProps!"), J = Xe[0],
|
|
7421
|
-
|
|
7422
|
-
type:
|
|
7423
|
-
index:
|
|
7445
|
+
var Ye = w.current, $e = Ye.props, Be = Ye.state, Xe = Ks(z, H, $e.items, "Pass either item or index to getItemProps!"), J = Xe[0], Te = Xe[1], me = $e.isItemDisabled(J, Te), fe = "onClick", Fe = _e, Ne = function() {
|
|
7446
|
+
Te !== Be.highlightedIndex && (P.current = !1, u({
|
|
7447
|
+
type: kr,
|
|
7448
|
+
index: Te,
|
|
7424
7449
|
disabled: me
|
|
7425
7450
|
}));
|
|
7426
7451
|
}, Ve = function() {
|
|
7427
7452
|
u({
|
|
7428
7453
|
type: Nt,
|
|
7429
|
-
index:
|
|
7454
|
+
index: Te
|
|
7430
7455
|
});
|
|
7431
|
-
},
|
|
7456
|
+
}, Ae = function(j) {
|
|
7432
7457
|
return j.preventDefault();
|
|
7433
7458
|
};
|
|
7434
|
-
return Y((
|
|
7435
|
-
$ && (
|
|
7436
|
-
}),
|
|
7459
|
+
return Y((_ = {}, _[Q] = a0(S, function($) {
|
|
7460
|
+
$ && (y.current[g.getItemId(Te)] = $);
|
|
7461
|
+
}), _["aria-disabled"] = me, _["aria-selected"] = "" + (Te === Be.highlightedIndex), _.id = g.getItemId(Te), _.role = "option", _), !me && (I = {}, I[fe] = he(Fe, Ve), I), {
|
|
7437
7462
|
onMouseMove: he(de, Ne),
|
|
7438
|
-
onMouseDown: he(L,
|
|
7463
|
+
onMouseDown: he(L, Ae)
|
|
7439
7464
|
}, Le);
|
|
7440
7465
|
}, [u, w, P, g]), ie = xe(function(v) {
|
|
7441
|
-
var
|
|
7442
|
-
|
|
7443
|
-
var z =
|
|
7466
|
+
var _, I = v === void 0 ? {} : v, C = I.onClick;
|
|
7467
|
+
I.onPress;
|
|
7468
|
+
var z = I.refKey, H = z === void 0 ? "ref" : z, B = I.ref, Q = He(I, ac), S = w.current.state, de = function() {
|
|
7444
7469
|
u({
|
|
7445
|
-
type:
|
|
7470
|
+
type: Dr
|
|
7446
7471
|
});
|
|
7447
7472
|
};
|
|
7448
|
-
return Y((
|
|
7473
|
+
return Y((_ = {}, _[H] = a0(B, function(L) {
|
|
7449
7474
|
h.current = L;
|
|
7450
|
-
}),
|
|
7475
|
+
}), _["aria-controls"] = g.menuId, _["aria-expanded"] = S.isOpen, _.id = g.toggleButtonId, _.tabIndex = -1, _), !Q.disabled && Y({}, {
|
|
7451
7476
|
onClick: he(C, de)
|
|
7452
7477
|
}), Q);
|
|
7453
|
-
}, [u, w, g]), oe = xe(function(v,
|
|
7454
|
-
var
|
|
7478
|
+
}, [u, w, g]), oe = xe(function(v, _) {
|
|
7479
|
+
var I, C = v === void 0 ? {} : v, z = C.onKeyDown, H = C.onChange, B = C.onInput, Q = C.onBlur;
|
|
7455
7480
|
C.onChangeText;
|
|
7456
|
-
var S = C.onClick, de = C.refKey, L = de === void 0 ? "ref" : de,
|
|
7457
|
-
U("getInputProps", $e, L,
|
|
7458
|
-
var Be = w.current.state, Xe = function(
|
|
7459
|
-
var $ = et(
|
|
7460
|
-
$ && G[$] && G[$](
|
|
7461
|
-
}, J = function(
|
|
7481
|
+
var S = C.onClick, de = C.refKey, L = de === void 0 ? "ref" : de, _e = C.ref, be = He(C, sc), Le = _ === void 0 ? {} : _, Ye = Le.suppressRefError, $e = Ye === void 0 ? !1 : Ye;
|
|
7482
|
+
U("getInputProps", $e, L, T);
|
|
7483
|
+
var Be = w.current.state, Xe = function(Ae) {
|
|
7484
|
+
var $ = et(Ae);
|
|
7485
|
+
$ && G[$] && G[$](Ae);
|
|
7486
|
+
}, J = function(Ae) {
|
|
7462
7487
|
u({
|
|
7463
7488
|
type: xt,
|
|
7464
|
-
inputValue:
|
|
7489
|
+
inputValue: Ae.target.value
|
|
7465
7490
|
});
|
|
7466
|
-
},
|
|
7491
|
+
}, Te = function(Ae) {
|
|
7467
7492
|
if (o != null && o.document && Be.isOpen && !q.current.isMouseDown) {
|
|
7468
|
-
var $ =
|
|
7493
|
+
var $ = Ae.relatedTarget === null && o.document.activeElement !== o.document.body;
|
|
7469
7494
|
u({
|
|
7470
7495
|
type: T0,
|
|
7471
7496
|
selectItem: !$
|
|
@@ -7478,11 +7503,11 @@ function Rt(e) {
|
|
|
7478
7503
|
}, fe = "onChange", Fe = {};
|
|
7479
7504
|
if (!be.disabled) {
|
|
7480
7505
|
var Ne;
|
|
7481
|
-
Fe = (Ne = {}, Ne[fe] = he(H, B, J), Ne.onKeyDown = he(z, Xe), Ne.onBlur = he(Q,
|
|
7506
|
+
Fe = (Ne = {}, Ne[fe] = he(H, B, J), Ne.onKeyDown = he(z, Xe), Ne.onBlur = he(Q, Te), Ne.onClick = he(S, me), Ne);
|
|
7482
7507
|
}
|
|
7483
|
-
return Y((
|
|
7484
|
-
|
|
7485
|
-
}),
|
|
7508
|
+
return Y((I = {}, I[L] = a0(_e, function(Ve) {
|
|
7509
|
+
T.current = Ve;
|
|
7510
|
+
}), I["aria-activedescendant"] = Be.isOpen && Be.highlightedIndex > -1 ? g.getItemId(Be.highlightedIndex) : "", I["aria-autocomplete"] = "list", I["aria-controls"] = g.menuId, I["aria-expanded"] = Be.isOpen, I["aria-labelledby"] = be && be["aria-label"] ? void 0 : g.labelId, I.autoComplete = "off", I.id = g.inputId, I.role = "combobox", I.value = Be.inputValue, I), Fe, be);
|
|
7486
7511
|
}, [U, w, g, G, u, q, o]), W = xe(function() {
|
|
7487
7512
|
u({
|
|
7488
7513
|
type: Pr
|
|
@@ -7500,7 +7525,7 @@ function Rt(e) {
|
|
|
7500
7525
|
type: Br,
|
|
7501
7526
|
highlightedIndex: v
|
|
7502
7527
|
});
|
|
7503
|
-
}, [u]),
|
|
7528
|
+
}, [u]), D = xe(function(v) {
|
|
7504
7529
|
u({
|
|
7505
7530
|
type: St,
|
|
7506
7531
|
selectedItem: v
|
|
@@ -7528,13 +7553,13 @@ function Rt(e) {
|
|
|
7528
7553
|
closeMenu: pe,
|
|
7529
7554
|
setHighlightedIndex: x,
|
|
7530
7555
|
setInputValue: K,
|
|
7531
|
-
selectItem:
|
|
7556
|
+
selectItem: D,
|
|
7532
7557
|
reset: b,
|
|
7533
7558
|
// state.
|
|
7534
|
-
highlightedIndex:
|
|
7559
|
+
highlightedIndex: E,
|
|
7535
7560
|
isOpen: p,
|
|
7536
7561
|
selectedItem: N,
|
|
7537
|
-
inputValue:
|
|
7562
|
+
inputValue: A
|
|
7538
7563
|
};
|
|
7539
7564
|
}
|
|
7540
7565
|
function cc(e) {
|
|
@@ -7569,7 +7594,7 @@ process.env.NODE_ENV;
|
|
|
7569
7594
|
process.env.NODE_ENV;
|
|
7570
7595
|
process.env.NODE_ENV;
|
|
7571
7596
|
process.env.NODE_ENV;
|
|
7572
|
-
const jr =
|
|
7597
|
+
const jr = Me(
|
|
7573
7598
|
({
|
|
7574
7599
|
isOpen: e = !1,
|
|
7575
7600
|
items: t,
|
|
@@ -7579,10 +7604,10 @@ const jr = Ce(
|
|
|
7579
7604
|
highlightedIndex: s = 0,
|
|
7580
7605
|
...a
|
|
7581
7606
|
}, l) => /* @__PURE__ */ M(V, { className: re("autocomplete-result", a.className), ref: l, hidden: !e, children: [
|
|
7582
|
-
t.length > 0 && /* @__PURE__ */ M(
|
|
7583
|
-
t.map(({ slug: d, title: u, date: p, authors:
|
|
7584
|
-
const R = s ===
|
|
7585
|
-
return /* @__PURE__ */ c(
|
|
7607
|
+
t.length > 0 && /* @__PURE__ */ M(Ce, { children: [
|
|
7608
|
+
t.map(({ slug: d, title: u, date: p, authors: E, link: N }, A) => {
|
|
7609
|
+
const R = s === A;
|
|
7610
|
+
return /* @__PURE__ */ c(ye.Fragment, { children: /* @__PURE__ */ M(
|
|
7586
7611
|
F,
|
|
7587
7612
|
{
|
|
7588
7613
|
alignItems: "center",
|
|
@@ -7602,10 +7627,11 @@ const jr = Ce(
|
|
|
7602
7627
|
size: "s",
|
|
7603
7628
|
text: u,
|
|
7604
7629
|
textQuery: n,
|
|
7630
|
+
lineClamp: 2,
|
|
7605
7631
|
className: "autocomplete-result__link"
|
|
7606
7632
|
}
|
|
7607
7633
|
),
|
|
7608
|
-
/* @__PURE__ */ c(lt, { mt: "xxs-3", date: p, authors:
|
|
7634
|
+
/* @__PURE__ */ c(lt, { mt: "xxs-3", date: p, authors: E, displayedFields: ["date", "authors"] })
|
|
7609
7635
|
]
|
|
7610
7636
|
}
|
|
7611
7637
|
) }, d);
|
|
@@ -7618,7 +7644,7 @@ const jr = Ce(
|
|
|
7618
7644
|
textSize: "s",
|
|
7619
7645
|
fontWeight: "medium",
|
|
7620
7646
|
textAlign: "center",
|
|
7621
|
-
children: /* @__PURE__ */ c(
|
|
7647
|
+
children: /* @__PURE__ */ c(r0, { ...o, children: i })
|
|
7622
7648
|
}
|
|
7623
7649
|
)
|
|
7624
7650
|
] }),
|
|
@@ -7630,7 +7656,7 @@ const jr = Ce(
|
|
|
7630
7656
|
] })
|
|
7631
7657
|
);
|
|
7632
7658
|
jr.displayName = "AutocompleteResult";
|
|
7633
|
-
const Kr =
|
|
7659
|
+
const Kr = Me(
|
|
7634
7660
|
({
|
|
7635
7661
|
placeholder: e,
|
|
7636
7662
|
defaultValue: t,
|
|
@@ -7643,19 +7669,19 @@ const Kr = Ce(
|
|
|
7643
7669
|
isOpen: d,
|
|
7644
7670
|
...u
|
|
7645
7671
|
}, p) => {
|
|
7646
|
-
const
|
|
7647
|
-
l &&
|
|
7648
|
-
}, { getInputProps: N, getMenuProps:
|
|
7672
|
+
const E = (k) => {
|
|
7673
|
+
l && k.key === "Enter" && l(k.currentTarget.value);
|
|
7674
|
+
}, { getInputProps: N, getMenuProps: A, getItemProps: R, selectItem: y, toggleMenu: T, isOpen: h, inputValue: m, highlightedIndex: g } = Rt({
|
|
7649
7675
|
defaultInputValue: t,
|
|
7650
7676
|
onInputValueChange: s,
|
|
7651
7677
|
onSelectedItemChange: a,
|
|
7652
7678
|
items: n,
|
|
7653
|
-
itemToString: (
|
|
7679
|
+
itemToString: (k) => k ? k.title : "",
|
|
7654
7680
|
isOpen: d
|
|
7655
|
-
}), f = () =>
|
|
7656
|
-
() => n.map((
|
|
7657
|
-
...
|
|
7658
|
-
...R({ item:
|
|
7681
|
+
}), f = () => y(null), w = ye.useMemo(
|
|
7682
|
+
() => n.map((k, P) => ({
|
|
7683
|
+
...k,
|
|
7684
|
+
...R({ item: k, index: P })
|
|
7659
7685
|
})),
|
|
7660
7686
|
[n, R]
|
|
7661
7687
|
);
|
|
@@ -7663,7 +7689,7 @@ const Kr = Ce(
|
|
|
7663
7689
|
/* @__PURE__ */ c(
|
|
7664
7690
|
Zn,
|
|
7665
7691
|
{
|
|
7666
|
-
input: N({ placeholder: e, onKeyDown:
|
|
7692
|
+
input: N({ placeholder: e, onKeyDown: E }),
|
|
7667
7693
|
buttonSearch: { as: "a", ...o },
|
|
7668
7694
|
buttonClose: { onClick: f },
|
|
7669
7695
|
className: "autocomplete__input"
|
|
@@ -7673,14 +7699,14 @@ const Kr = Ce(
|
|
|
7673
7699
|
jr,
|
|
7674
7700
|
{
|
|
7675
7701
|
isOpen: h && m.length > 0,
|
|
7676
|
-
...
|
|
7702
|
+
...A(),
|
|
7677
7703
|
items: w,
|
|
7678
7704
|
highlightedIndex: g === -1 ? 0 : g,
|
|
7679
7705
|
searchValue: m,
|
|
7680
7706
|
searchLink: {
|
|
7681
7707
|
label: i,
|
|
7682
7708
|
...o,
|
|
7683
|
-
onClick:
|
|
7709
|
+
onClick: T
|
|
7684
7710
|
},
|
|
7685
7711
|
searchNotFound: r
|
|
7686
7712
|
}
|
|
@@ -7699,10 +7725,10 @@ const Pc = ({
|
|
|
7699
7725
|
onToggleMenu: l,
|
|
7700
7726
|
menuIsOpen: d = !1
|
|
7701
7727
|
}) => /* @__PURE__ */ M(F, { as: "header", justifyContent: "between", alignItems: "center", bg: "white", p: "m", className: "header", children: [
|
|
7702
|
-
/* @__PURE__ */ c(V, { as: "a", ...e, color: "primary", children: /* @__PURE__ */ c(
|
|
7728
|
+
/* @__PURE__ */ c(V, { as: "a", ...e, color: "primary", children: /* @__PURE__ */ c(_n, { name: "blog", className: "header__logo" }) }),
|
|
7703
7729
|
/* @__PURE__ */ M(V, { className: re("header__menu", { "header__menu--is-open": d }), children: [
|
|
7704
|
-
t.map(({ label: u, ...p },
|
|
7705
|
-
n && /* @__PURE__ */ M(
|
|
7730
|
+
t.map(({ label: u, ...p }, E) => /* @__PURE__ */ c(r0, { as: "a", ...p, "data-internal-link": "category", className: "header__menu-item", children: u }, E)),
|
|
7731
|
+
n && /* @__PURE__ */ M(Ce, { children: [
|
|
7706
7732
|
/* @__PURE__ */ c(V, { className: "header__separator" }),
|
|
7707
7733
|
/* @__PURE__ */ c(V, { as: "a", ...o, "data-internal-link": "category", className: "header__menu-item", children: i })
|
|
7708
7734
|
] }),
|
|
@@ -7733,7 +7759,7 @@ const lc = ({
|
|
|
7733
7759
|
{
|
|
7734
7760
|
flexDirection: { xs: "column", md: "row" },
|
|
7735
7761
|
justifyContent: "center",
|
|
7736
|
-
alignItems: "end",
|
|
7762
|
+
alignItems: { xs: "center", md: "end" },
|
|
7737
7763
|
py: "m",
|
|
7738
7764
|
bg: "primary-very-dark",
|
|
7739
7765
|
className: "footer__intro",
|
|
@@ -7754,7 +7780,7 @@ const lc = ({
|
|
|
7754
7780
|
pb: { xs: "l", md: "xl" },
|
|
7755
7781
|
mx: "s",
|
|
7756
7782
|
children: [
|
|
7757
|
-
/* @__PURE__ */ c(V, { mb: "xl", children: /* @__PURE__ */ c(F, { justifyContent: { xs: "center", md: "start" }, alignItems: "center", mb: "xxs", children: /* @__PURE__ */ c(
|
|
7783
|
+
/* @__PURE__ */ c(V, { mb: "xl", children: /* @__PURE__ */ c(F, { justifyContent: { xs: "center", md: "start" }, alignItems: "center", mb: "xxs", children: /* @__PURE__ */ c(_n, { name: "website", size: "2.5em" }) }) }),
|
|
7758
7784
|
/* @__PURE__ */ M(V, { children: [
|
|
7759
7785
|
/* @__PURE__ */ c(F, { flexDirection: { xs: "column", md: "row" }, gap: { md: "xl" }, children: o.map((a, l) => /* @__PURE__ */ M(V, { mb: "m", children: [
|
|
7760
7786
|
a.title && /* @__PURE__ */ c(ee, { fontWeight: "bold", mb: "xxs-2", children: a.title }),
|
|
@@ -7791,8 +7817,8 @@ const lc = ({
|
|
|
7791
7817
|
),
|
|
7792
7818
|
/* @__PURE__ */ M(F, { py: "s", justifyContent: "center", alignItems: "center", className: "footer__language-links-container", children: [
|
|
7793
7819
|
/* @__PURE__ */ c(V, { mr: "xxs", children: /* @__PURE__ */ c(Ie, { size: "28px", name: "language" }) }),
|
|
7794
|
-
s.map(({ label: a, isActive: l, ...d }, u) => /* @__PURE__ */ M(
|
|
7795
|
-
l ? /* @__PURE__ */ c(ee, { fontWeight: "bold", children: a }) : /* @__PURE__ */ c(
|
|
7820
|
+
s.map(({ label: a, isActive: l, ...d }, u) => /* @__PURE__ */ M(ye.Fragment, { children: [
|
|
7821
|
+
l ? /* @__PURE__ */ c(ee, { fontWeight: "bold", children: a }) : /* @__PURE__ */ c(r0, { ...d, "data-internal-link": "home", children: a }),
|
|
7796
7822
|
s.length - 1 !== u && /* @__PURE__ */ c(V, { mx: "s" })
|
|
7797
7823
|
] }, u))
|
|
7798
7824
|
] })
|
|
@@ -7804,9 +7830,9 @@ const uc = ({
|
|
|
7804
7830
|
posts: t,
|
|
7805
7831
|
linkSeeMore: { label: n, ...i },
|
|
7806
7832
|
...o
|
|
7807
|
-
}) => /* @__PURE__ */ M(V, { ...o, my: "xl",
|
|
7833
|
+
}) => /* @__PURE__ */ M(V, { ...o, my: "xl", className: "last-articles-block container-content", children: [
|
|
7808
7834
|
/* @__PURE__ */ c(ve, { size: "m", color: "primary", children: e }),
|
|
7809
|
-
/* @__PURE__ */ c(F, { mt: "l", gap: "m", className: "last-articles-block__post-list", children: t.map((r, s) => /* @__PURE__ */ c(
|
|
7835
|
+
/* @__PURE__ */ c(F, { mt: "l", gap: "m", className: "last-articles-block__post-list", children: t.map((r, s) => /* @__PURE__ */ c(ye.Fragment, { children: /* @__PURE__ */ c(k0, { variant: "highlight-light", ...r || {} }) }, (r == null ? void 0 : r.slug) ?? s)) }),
|
|
7810
7836
|
/* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ c(Ke, { mt: "l", as: "a", ...i, children: n }) })
|
|
7811
7837
|
] });
|
|
7812
7838
|
const dc = ({
|
|
@@ -7834,20 +7860,20 @@ const dc = ({
|
|
|
7834
7860
|
/* @__PURE__ */ c(ee, { mt: "l", children: t }),
|
|
7835
7861
|
/* @__PURE__ */ c(Ke, { mt: "l", as: "a", variant: "accent", ...r, children: o })
|
|
7836
7862
|
] }),
|
|
7837
|
-
/* @__PURE__ */ c(F, { gap: "l", className: "last-tutorials-block__post-list", children: i.map((a, l) => /* @__PURE__ */ c(
|
|
7863
|
+
/* @__PURE__ */ c(F, { gap: "l", className: "last-tutorials-block__post-list", children: i.map((a, l) => /* @__PURE__ */ c(ye.Fragment, { children: /* @__PURE__ */ c(k0, { variant: "highlight-dark", tutorialLabel: n, ...a || {} }) }, (a == null ? void 0 : a.slug) ?? l)) })
|
|
7838
7864
|
]
|
|
7839
7865
|
}
|
|
7840
|
-
) }), V =
|
|
7866
|
+
) }), V = Me(({ as: e = "div", className: t, children: n, ...i }, o) => /* @__PURE__ */ c(
|
|
7841
7867
|
e,
|
|
7842
7868
|
{
|
|
7843
|
-
...it({ props: i, systemPropNames: Object.keys(
|
|
7869
|
+
...it({ props: i, systemPropNames: Object.keys(_i) }),
|
|
7844
7870
|
ref: o,
|
|
7845
7871
|
className: re(Ai(i), t),
|
|
7846
7872
|
children: n
|
|
7847
7873
|
}
|
|
7848
7874
|
));
|
|
7849
7875
|
V.displayName = "Box";
|
|
7850
|
-
const F =
|
|
7876
|
+
const F = Me(
|
|
7851
7877
|
({ as: e = "div", display: t = "flex", className: n, children: i, ...o }, r) => /* @__PURE__ */ c(
|
|
7852
7878
|
V,
|
|
7853
7879
|
{
|
|
@@ -7865,7 +7891,7 @@ const Lc = ({ header: e, footer: t, children: n }) => /* @__PURE__ */ M(F, { fle
|
|
|
7865
7891
|
n,
|
|
7866
7892
|
/* @__PURE__ */ c(lc, { ...t })
|
|
7867
7893
|
] });
|
|
7868
|
-
const
|
|
7894
|
+
const D0 = ({
|
|
7869
7895
|
content: e,
|
|
7870
7896
|
sidebar: t,
|
|
7871
7897
|
className: n,
|
|
@@ -7891,7 +7917,7 @@ const k0 = ({
|
|
|
7891
7917
|
}) => /* @__PURE__ */ M(V, { children: [
|
|
7892
7918
|
/* @__PURE__ */ c(ve, { size: "m", mb: "l", color: "primary", children: e }),
|
|
7893
7919
|
t,
|
|
7894
|
-
n && /* @__PURE__ */ M(
|
|
7920
|
+
n && /* @__PURE__ */ M(Ce, { children: [
|
|
7895
7921
|
/* @__PURE__ */ c(h0, { mt: "m" }),
|
|
7896
7922
|
/* @__PURE__ */ c(is, { mt: "l", ...n })
|
|
7897
7923
|
] })
|
|
@@ -7899,10 +7925,10 @@ const k0 = ({
|
|
|
7899
7925
|
categoryIntroBlock: e,
|
|
7900
7926
|
newsletterCard: t,
|
|
7901
7927
|
...n
|
|
7902
|
-
}) => /* @__PURE__ */ M(
|
|
7928
|
+
}) => /* @__PURE__ */ M(Ce, { children: [
|
|
7903
7929
|
/* @__PURE__ */ c(ns, { ...e }),
|
|
7904
7930
|
/* @__PURE__ */ c(
|
|
7905
|
-
|
|
7931
|
+
D0,
|
|
7906
7932
|
{
|
|
7907
7933
|
content: /* @__PURE__ */ c(fc, { ...n }),
|
|
7908
7934
|
sidebar: /* @__PURE__ */ c(ut, { ...t })
|
|
@@ -7913,11 +7939,11 @@ const k0 = ({
|
|
|
7913
7939
|
lastArticlesBlock: t,
|
|
7914
7940
|
lastTutorialsBlock: n,
|
|
7915
7941
|
newsletterCard: i
|
|
7916
|
-
}) => /* @__PURE__ */ M(
|
|
7942
|
+
}) => /* @__PURE__ */ M(Ce, { children: [
|
|
7917
7943
|
/* @__PURE__ */ c(rs, { ...e }),
|
|
7918
7944
|
/* @__PURE__ */ c(uc, { ...t }),
|
|
7919
7945
|
n && /* @__PURE__ */ c(dc, { ...n }),
|
|
7920
|
-
/* @__PURE__ */ c(
|
|
7946
|
+
/* @__PURE__ */ c(ut, { my: "xl", variant: "horizontal", className: "container-content", ...i })
|
|
7921
7947
|
] });
|
|
7922
7948
|
const pc = ({ title: e, authors: t, ...n }) => /* @__PURE__ */ M(V, { ...n, children: [
|
|
7923
7949
|
/* @__PURE__ */ c(ve, { mb: "xxs", size: "m", color: "primary", children: e }),
|
|
@@ -7969,7 +7995,7 @@ const q0 = (e) => {
|
|
|
7969
7995
|
] })
|
|
7970
7996
|
] }), hc = ({ relatedPostListTitle: e, posts: t, ...n }) => /* @__PURE__ */ M(V, { ...n, children: [
|
|
7971
7997
|
/* @__PURE__ */ c(ve, { mb: "m", size: "m", color: "primary", children: e }),
|
|
7972
|
-
t.map((i, o) => /* @__PURE__ */ c(
|
|
7998
|
+
t.map((i, o) => /* @__PURE__ */ c(k0, { ...i, mt: "s" }, (i == null ? void 0 : i.slug) ?? o))
|
|
7973
7999
|
] }), Vc = ["article", "tutorial"], vc = ({
|
|
7974
8000
|
variant: e = "article",
|
|
7975
8001
|
summary: t,
|
|
@@ -7980,13 +8006,13 @@ const q0 = (e) => {
|
|
|
7980
8006
|
contactCard: s,
|
|
7981
8007
|
previousLink: { label: a, ...l } = {},
|
|
7982
8008
|
nextLink: { label: d, ...u } = {}
|
|
7983
|
-
}) => /* @__PURE__ */ M(
|
|
8009
|
+
}) => /* @__PURE__ */ M(Ce, { children: [
|
|
7984
8010
|
/* @__PURE__ */ M(V, { children: [
|
|
7985
8011
|
/* @__PURE__ */ c(mc, { ...n }),
|
|
7986
8012
|
/* @__PURE__ */ c(h0, { mt: "m" }),
|
|
7987
8013
|
/* @__PURE__ */ c(nr, { mt: "l", hiddenAbove: "md", variant: e === "tutorial" ? "secondary" : "primary", ...t }),
|
|
7988
8014
|
/* @__PURE__ */ c(V, { mt: { xs: "l", md: "m" }, className: "post-page__content", children: i }),
|
|
7989
|
-
e === "tutorial" && /* @__PURE__ */ c(
|
|
8015
|
+
e === "tutorial" && /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ M(F, { gap: "l", children: [
|
|
7990
8016
|
a && l && /* @__PURE__ */ c(Ke, { as: "a", mt: "l", variant: "secondary", ...l, children: a }),
|
|
7991
8017
|
d && u && /* @__PURE__ */ c(Ke, { as: "a", mt: "l", ...u, children: d })
|
|
7992
8018
|
] }) }),
|
|
@@ -8006,7 +8032,7 @@ const q0 = (e) => {
|
|
|
8006
8032
|
/* @__PURE__ */ c(Yn, { mx: { xs: "xs", md: "0" }, ...t }),
|
|
8007
8033
|
/* @__PURE__ */ c(Xn, { ...n, mx: { xs: "xs", md: "0" }, img: { className: "post-page__cover", ...n == null ? void 0 : n.img } }),
|
|
8008
8034
|
/* @__PURE__ */ c(
|
|
8009
|
-
|
|
8035
|
+
D0,
|
|
8010
8036
|
{
|
|
8011
8037
|
content: /* @__PURE__ */ c(vc, { ...r, variant: e, summary: i, children: o }),
|
|
8012
8038
|
sidebar: /* @__PURE__ */ c(nr, { hiddenBelow: "md", variant: e === "tutorial" ? "secondary" : "primary", ...i })
|
|
@@ -8014,13 +8040,13 @@ const q0 = (e) => {
|
|
|
8014
8040
|
)
|
|
8015
8041
|
] });
|
|
8016
8042
|
const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
8017
|
-
|
|
8043
|
+
D0,
|
|
8018
8044
|
{
|
|
8019
8045
|
className: "author-page",
|
|
8020
8046
|
content: /* @__PURE__ */ c(bc, { ...t }),
|
|
8021
8047
|
sidebar: /* @__PURE__ */ c(ut, { ...e })
|
|
8022
8048
|
}
|
|
8023
|
-
), bc = ({ author: e, title: t, postCardList: n }) => /* @__PURE__ */ M(
|
|
8049
|
+
), bc = ({ author: e, title: t, postCardList: n }) => /* @__PURE__ */ M(Ce, { children: [
|
|
8024
8050
|
/* @__PURE__ */ M(
|
|
8025
8051
|
F,
|
|
8026
8052
|
{
|
|
@@ -8043,11 +8069,11 @@ const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
|
8043
8069
|
className: "author-page__social_networks",
|
|
8044
8070
|
children: e.socialNetworks.map((i, o) => {
|
|
8045
8071
|
var r;
|
|
8046
|
-
return /* @__PURE__ */ M(
|
|
8072
|
+
return /* @__PURE__ */ M(ye.Fragment, { children: [
|
|
8047
8073
|
/* @__PURE__ */ M(ee, { children: [
|
|
8048
8074
|
/* @__PURE__ */ c(Ie, { name: i.name, size: "24px" }),
|
|
8049
8075
|
" ",
|
|
8050
|
-
/* @__PURE__ */ c(
|
|
8076
|
+
/* @__PURE__ */ c(r0, { href: i.url, target: "_blank", children: i.username })
|
|
8051
8077
|
] }),
|
|
8052
8078
|
o !== (((r = e.socialNetworks) == null ? void 0 : r.length) ?? 0) - 1 && /* @__PURE__ */ c(ee, { as: "span", mx: "xxs", children: "•" })
|
|
8053
8079
|
] }, i.name);
|
|
@@ -8061,7 +8087,7 @@ const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
|
8061
8087
|
/* @__PURE__ */ c(h0, { className: "author-page__divider" }),
|
|
8062
8088
|
/* @__PURE__ */ c(ee, { size: "m", fontWeight: "medium", children: t }),
|
|
8063
8089
|
n
|
|
8064
|
-
] }), Uc = ({ title: e, description: t }) => /* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", flex: "1", children: /* @__PURE__ */ c(tr, { m: "xxl", title: e, description: t }) }),
|
|
8090
|
+
] }), Uc = ({ title: e, description: t }) => /* @__PURE__ */ c(F, { justifyContent: "center", alignItems: "center", flex: "1", children: /* @__PURE__ */ c(tr, { m: "xxl", title: e, description: t }) }), yc = ({
|
|
8065
8091
|
title: e,
|
|
8066
8092
|
description: t,
|
|
8067
8093
|
postCardList: n,
|
|
@@ -8071,10 +8097,10 @@ const zc = ({ newsletterCard: e, ...t }) => /* @__PURE__ */ c(
|
|
|
8071
8097
|
/* @__PURE__ */ c(We, { isLoading: o, children: /* @__PURE__ */ c(ve, { size: "m", fontWeight: "medium", color: "primary", children: e }) }),
|
|
8072
8098
|
/* @__PURE__ */ c(We, { isLoading: o, children: /* @__PURE__ */ c(ve, { size: "s", mb: "l", children: t }) }),
|
|
8073
8099
|
n
|
|
8074
|
-
] }), jc = ({ sidebar: e, ...t }) => /* @__PURE__ */ c(
|
|
8100
|
+
] }), jc = ({ sidebar: e, ...t }) => /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ c(D0, { content: /* @__PURE__ */ c(yc, { ...t }), sidebar: e }) }), _c = typeof window > "u" ? () => {
|
|
8075
8101
|
} : nt.useLayoutEffect, Kc = (e) => {
|
|
8076
8102
|
const [t, n] = nt.useState(!1);
|
|
8077
|
-
return
|
|
8103
|
+
return _c(() => {
|
|
8078
8104
|
const i = window.matchMedia(xi[e]);
|
|
8079
8105
|
i.matches !== t && n(i.matches);
|
|
8080
8106
|
const o = () => n(i.matches);
|
|
@@ -8107,24 +8133,24 @@ export {
|
|
|
8107
8133
|
Ie as Icon,
|
|
8108
8134
|
uc as LastArticlesBlock,
|
|
8109
8135
|
dc as LastTutorialsBlock,
|
|
8110
|
-
|
|
8136
|
+
D0 as LayoutContentWithSidebar,
|
|
8111
8137
|
Lc as LayoutTemplate,
|
|
8112
|
-
|
|
8113
|
-
|
|
8138
|
+
r0 as Link,
|
|
8139
|
+
_n as Logo,
|
|
8114
8140
|
ut as NewsletterCard,
|
|
8115
8141
|
tr as NotFoundBlock,
|
|
8116
8142
|
Uc as NotFoundPage,
|
|
8117
8143
|
cs as Pagination,
|
|
8118
8144
|
Xn as Picture,
|
|
8119
|
-
|
|
8120
|
-
|
|
8145
|
+
k0 as PostCard,
|
|
8146
|
+
Dc as PostCardList,
|
|
8121
8147
|
lt as PostMetadata,
|
|
8122
8148
|
Hc as PostPage,
|
|
8123
8149
|
vc as PostPageContent,
|
|
8124
8150
|
Cc as Reminder,
|
|
8125
8151
|
Zn as SearchField,
|
|
8126
8152
|
jc as SearchPage,
|
|
8127
|
-
|
|
8153
|
+
yc as SearchPageContent,
|
|
8128
8154
|
We as Skeleton,
|
|
8129
8155
|
nr as SummaryCard,
|
|
8130
8156
|
Ac as SummaryCardVariant,
|
|
@@ -8135,12 +8161,12 @@ export {
|
|
|
8135
8161
|
xc as buttonVariant,
|
|
8136
8162
|
Oc as closeButtonVariant,
|
|
8137
8163
|
wc as logoName,
|
|
8138
|
-
|
|
8139
|
-
|
|
8164
|
+
kc as newsletterCardVariant,
|
|
8165
|
+
Me as polyRef,
|
|
8140
8166
|
Tc as postCardVariant,
|
|
8141
8167
|
Mc as postMetadataVariant,
|
|
8142
8168
|
Vc as postPageVariant,
|
|
8143
8169
|
Rc as reminderVariantList,
|
|
8144
|
-
|
|
8170
|
+
_c as useLayoutEffect,
|
|
8145
8171
|
Kc as useMediaQuery
|
|
8146
8172
|
};
|