@apolitical/component-library 1.8.0-beta.3 → 1.8.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/index.js +17 -17
- package/index.mjs +468 -472
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as xe from "react";
|
|
2
|
-
import Ce, { memo as jn, useRef as qe, useEffect as De, useContext as
|
|
2
|
+
import Ce, { memo as jn, useRef as qe, useEffect as De, useContext as kn, useState as we, useLayoutEffect as Kd, useMemo as Ln, Children as sc, createContext as qc, Fragment as Su, useCallback as Qd, useReducer as Dg, Component as Ug, isValidElement as $g, createElement as Tu, Suspense as Hg } from "react";
|
|
3
3
|
import { jsx as C, jsxs as re, Fragment as pt } from "react/jsx-runtime";
|
|
4
4
|
import { useLocation as io, Link as Or, useNavigate as oa } from "react-router-dom";
|
|
5
5
|
var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -393,7 +393,7 @@ function oy() {
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
var w = c, N = f, F = a, B = s, q = t, G = u, W = n, U = p, z = l, ee = r, Y = o,
|
|
396
|
+
var w = c, N = f, F = a, B = s, q = t, G = u, W = n, U = p, z = l, ee = r, Y = o, M = i, V = h, X = !1;
|
|
397
397
|
function de(ne) {
|
|
398
398
|
return X || (X = !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.")), Q(ne) || A(ne) === c;
|
|
399
399
|
}
|
|
@@ -433,7 +433,7 @@ function oy() {
|
|
|
433
433
|
function Ot(ne) {
|
|
434
434
|
return A(ne) === h;
|
|
435
435
|
}
|
|
436
|
-
Pe.AsyncMode = w, Pe.ConcurrentMode = N, Pe.ContextConsumer = F, Pe.ContextProvider = B, Pe.Element = q, Pe.ForwardRef = G, Pe.Fragment = W, Pe.Lazy = U, Pe.Memo = z, Pe.Portal = ee, Pe.Profiler = Y, Pe.StrictMode =
|
|
436
|
+
Pe.AsyncMode = w, Pe.ConcurrentMode = N, Pe.ContextConsumer = F, Pe.ContextProvider = B, Pe.Element = q, Pe.ForwardRef = G, Pe.Fragment = W, Pe.Lazy = U, Pe.Memo = z, Pe.Portal = ee, Pe.Profiler = Y, Pe.StrictMode = M, Pe.Suspense = V, Pe.isAsyncMode = de, Pe.isConcurrentMode = Q, Pe.isContextConsumer = J, Pe.isContextProvider = te, Pe.isElement = ce, Pe.isForwardRef = $e, Pe.isFragment = K, Pe.isLazy = oe, Pe.isMemo = Le, Pe.isPortal = Re, Pe.isProfiler = ft, Pe.isStrictMode = mt, Pe.isSuspense = Ot, Pe.isValidElementType = E, Pe.typeOf = A;
|
|
437
437
|
}()), Pe;
|
|
438
438
|
}
|
|
439
439
|
process.env.NODE_ENV === "production" ? cc.exports = iy() : cc.exports = oy();
|
|
@@ -457,7 +457,7 @@ function uy() {
|
|
|
457
457
|
return typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
458
458
|
}
|
|
459
459
|
function ih(e) {
|
|
460
|
-
const t =
|
|
460
|
+
const t = kn(ry);
|
|
461
461
|
if (!t)
|
|
462
462
|
throw new Error("Missing <CookiesProvider>");
|
|
463
463
|
const [r, n] = we(() => t.getAll());
|
|
@@ -498,121 +498,121 @@ function rt() {
|
|
|
498
498
|
if (Ru)
|
|
499
499
|
return Sa;
|
|
500
500
|
Ru = 1;
|
|
501
|
-
var e = ah(), t = Object.prototype.toString, r = function(
|
|
501
|
+
var e = ah(), t = Object.prototype.toString, r = function(M) {
|
|
502
502
|
return function(V) {
|
|
503
503
|
var X = t.call(V);
|
|
504
|
-
return
|
|
504
|
+
return M[X] || (M[X] = X.slice(8, -1).toLowerCase());
|
|
505
505
|
};
|
|
506
506
|
}(/* @__PURE__ */ Object.create(null));
|
|
507
|
-
function n(
|
|
508
|
-
return
|
|
509
|
-
return r(X) ===
|
|
507
|
+
function n(M) {
|
|
508
|
+
return M = M.toLowerCase(), function(X) {
|
|
509
|
+
return r(X) === M;
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
function i(
|
|
513
|
-
return Array.isArray(
|
|
512
|
+
function i(M) {
|
|
513
|
+
return Array.isArray(M);
|
|
514
514
|
}
|
|
515
|
-
function o(
|
|
516
|
-
return typeof
|
|
515
|
+
function o(M) {
|
|
516
|
+
return typeof M > "u";
|
|
517
517
|
}
|
|
518
|
-
function s(
|
|
519
|
-
return
|
|
518
|
+
function s(M) {
|
|
519
|
+
return M !== null && !o(M) && M.constructor !== null && !o(M.constructor) && typeof M.constructor.isBuffer == "function" && M.constructor.isBuffer(M);
|
|
520
520
|
}
|
|
521
521
|
var a = n("ArrayBuffer");
|
|
522
|
-
function c(
|
|
522
|
+
function c(M) {
|
|
523
523
|
var V;
|
|
524
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? V = ArrayBuffer.isView(
|
|
524
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? V = ArrayBuffer.isView(M) : V = M && M.buffer && a(M.buffer), V;
|
|
525
525
|
}
|
|
526
|
-
function f(
|
|
527
|
-
return typeof
|
|
526
|
+
function f(M) {
|
|
527
|
+
return typeof M == "string";
|
|
528
528
|
}
|
|
529
|
-
function u(
|
|
530
|
-
return typeof
|
|
529
|
+
function u(M) {
|
|
530
|
+
return typeof M == "number";
|
|
531
531
|
}
|
|
532
|
-
function h(
|
|
533
|
-
return
|
|
532
|
+
function h(M) {
|
|
533
|
+
return M !== null && typeof M == "object";
|
|
534
534
|
}
|
|
535
|
-
function d(
|
|
536
|
-
if (r(
|
|
535
|
+
function d(M) {
|
|
536
|
+
if (r(M) !== "object")
|
|
537
537
|
return !1;
|
|
538
|
-
var V = Object.getPrototypeOf(
|
|
538
|
+
var V = Object.getPrototypeOf(M);
|
|
539
539
|
return V === null || V === Object.prototype;
|
|
540
540
|
}
|
|
541
541
|
var l = n("Date"), p = n("File"), m = n("Blob"), b = n("FileList");
|
|
542
|
-
function T(
|
|
543
|
-
return t.call(
|
|
542
|
+
function T(M) {
|
|
543
|
+
return t.call(M) === "[object Function]";
|
|
544
544
|
}
|
|
545
|
-
function _(
|
|
546
|
-
return h(
|
|
545
|
+
function _(M) {
|
|
546
|
+
return h(M) && T(M.pipe);
|
|
547
547
|
}
|
|
548
|
-
function E(
|
|
548
|
+
function E(M) {
|
|
549
549
|
var V = "[object FormData]";
|
|
550
|
-
return
|
|
550
|
+
return M && (typeof FormData == "function" && M instanceof FormData || t.call(M) === V || T(M.toString) && M.toString() === V);
|
|
551
551
|
}
|
|
552
552
|
var A = n("URLSearchParams");
|
|
553
|
-
function w(
|
|
554
|
-
return
|
|
553
|
+
function w(M) {
|
|
554
|
+
return M.trim ? M.trim() : M.replace(/^\s+|\s+$/g, "");
|
|
555
555
|
}
|
|
556
556
|
function N() {
|
|
557
557
|
return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
558
558
|
}
|
|
559
|
-
function F(
|
|
560
|
-
if (!(
|
|
561
|
-
if (typeof
|
|
562
|
-
for (var X = 0, de =
|
|
563
|
-
V.call(null,
|
|
559
|
+
function F(M, V) {
|
|
560
|
+
if (!(M === null || typeof M > "u"))
|
|
561
|
+
if (typeof M != "object" && (M = [M]), i(M))
|
|
562
|
+
for (var X = 0, de = M.length; X < de; X++)
|
|
563
|
+
V.call(null, M[X], X, M);
|
|
564
564
|
else
|
|
565
|
-
for (var Q in
|
|
566
|
-
Object.prototype.hasOwnProperty.call(
|
|
565
|
+
for (var Q in M)
|
|
566
|
+
Object.prototype.hasOwnProperty.call(M, Q) && V.call(null, M[Q], Q, M);
|
|
567
567
|
}
|
|
568
568
|
function B() {
|
|
569
|
-
var
|
|
569
|
+
var M = {};
|
|
570
570
|
function V(Q, J) {
|
|
571
|
-
d(
|
|
571
|
+
d(M[J]) && d(Q) ? M[J] = B(M[J], Q) : d(Q) ? M[J] = B({}, Q) : i(Q) ? M[J] = Q.slice() : M[J] = Q;
|
|
572
572
|
}
|
|
573
573
|
for (var X = 0, de = arguments.length; X < de; X++)
|
|
574
574
|
F(arguments[X], V);
|
|
575
|
-
return
|
|
575
|
+
return M;
|
|
576
576
|
}
|
|
577
|
-
function q(
|
|
577
|
+
function q(M, V, X) {
|
|
578
578
|
return F(V, function(Q, J) {
|
|
579
|
-
X && typeof Q == "function" ?
|
|
580
|
-
}),
|
|
579
|
+
X && typeof Q == "function" ? M[J] = e(Q, X) : M[J] = Q;
|
|
580
|
+
}), M;
|
|
581
581
|
}
|
|
582
|
-
function G(
|
|
583
|
-
return
|
|
582
|
+
function G(M) {
|
|
583
|
+
return M.charCodeAt(0) === 65279 && (M = M.slice(1)), M;
|
|
584
584
|
}
|
|
585
|
-
function W(
|
|
586
|
-
|
|
585
|
+
function W(M, V, X, de) {
|
|
586
|
+
M.prototype = Object.create(V.prototype, de), M.prototype.constructor = M, X && Object.assign(M.prototype, X);
|
|
587
587
|
}
|
|
588
|
-
function U(
|
|
588
|
+
function U(M, V, X) {
|
|
589
589
|
var de, Q, J, te = {};
|
|
590
590
|
V = V || {};
|
|
591
591
|
do {
|
|
592
|
-
for (de = Object.getOwnPropertyNames(
|
|
593
|
-
J = de[Q], te[J] || (V[J] =
|
|
594
|
-
|
|
595
|
-
} while (
|
|
592
|
+
for (de = Object.getOwnPropertyNames(M), Q = de.length; Q-- > 0; )
|
|
593
|
+
J = de[Q], te[J] || (V[J] = M[J], te[J] = !0);
|
|
594
|
+
M = Object.getPrototypeOf(M);
|
|
595
|
+
} while (M && (!X || X(M, V)) && M !== Object.prototype);
|
|
596
596
|
return V;
|
|
597
597
|
}
|
|
598
|
-
function z(
|
|
599
|
-
|
|
600
|
-
var de =
|
|
598
|
+
function z(M, V, X) {
|
|
599
|
+
M = String(M), (X === void 0 || X > M.length) && (X = M.length), X -= V.length;
|
|
600
|
+
var de = M.indexOf(V, X);
|
|
601
601
|
return de !== -1 && de === X;
|
|
602
602
|
}
|
|
603
|
-
function ee(
|
|
604
|
-
if (!
|
|
603
|
+
function ee(M) {
|
|
604
|
+
if (!M)
|
|
605
605
|
return null;
|
|
606
|
-
var V =
|
|
606
|
+
var V = M.length;
|
|
607
607
|
if (o(V))
|
|
608
608
|
return null;
|
|
609
609
|
for (var X = new Array(V); V-- > 0; )
|
|
610
|
-
X[V] =
|
|
610
|
+
X[V] = M[V];
|
|
611
611
|
return X;
|
|
612
612
|
}
|
|
613
|
-
var Y = function(
|
|
613
|
+
var Y = function(M) {
|
|
614
614
|
return function(V) {
|
|
615
|
-
return
|
|
615
|
+
return M && V instanceof M;
|
|
616
616
|
};
|
|
617
617
|
}(typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array));
|
|
618
618
|
return Sa = {
|
|
@@ -768,19 +768,19 @@ function qn() {
|
|
|
768
768
|
}), t.call(u, i.message, o, s, a, c), u.name = i.name, f && Object.assign(u, f), u;
|
|
769
769
|
}, xa = t, xa;
|
|
770
770
|
}
|
|
771
|
-
var Ca,
|
|
771
|
+
var Ca, Mu;
|
|
772
772
|
function ch() {
|
|
773
|
-
return
|
|
773
|
+
return Mu || (Mu = 1, Ca = {
|
|
774
774
|
silentJSONParsing: !0,
|
|
775
775
|
forcedJSONParsing: !0,
|
|
776
776
|
clarifyTimeoutError: !1
|
|
777
777
|
}), Ca;
|
|
778
778
|
}
|
|
779
|
-
var Ra,
|
|
779
|
+
var Ra, ku;
|
|
780
780
|
function uh() {
|
|
781
|
-
if (
|
|
781
|
+
if (ku)
|
|
782
782
|
return Ra;
|
|
783
|
-
|
|
783
|
+
ku = 1;
|
|
784
784
|
var e = rt();
|
|
785
785
|
function t(r, n) {
|
|
786
786
|
n = n || new FormData();
|
|
@@ -882,20 +882,20 @@ function gy() {
|
|
|
882
882
|
return r ? t.replace(/\/+$/, "") + "/" + r.replace(/^\/+/, "") : t;
|
|
883
883
|
}), La;
|
|
884
884
|
}
|
|
885
|
-
var
|
|
885
|
+
var Ma, $u;
|
|
886
886
|
function lh() {
|
|
887
887
|
if ($u)
|
|
888
|
-
return
|
|
888
|
+
return Ma;
|
|
889
889
|
$u = 1;
|
|
890
890
|
var e = my(), t = gy();
|
|
891
|
-
return
|
|
891
|
+
return Ma = function(n, i) {
|
|
892
892
|
return n && !e(i) ? t(n, i) : i;
|
|
893
|
-
},
|
|
893
|
+
}, Ma;
|
|
894
894
|
}
|
|
895
|
-
var
|
|
895
|
+
var ka, Hu;
|
|
896
896
|
function yy() {
|
|
897
897
|
if (Hu)
|
|
898
|
-
return
|
|
898
|
+
return ka;
|
|
899
899
|
Hu = 1;
|
|
900
900
|
var e = rt(), t = [
|
|
901
901
|
"age",
|
|
@@ -916,7 +916,7 @@ function yy() {
|
|
|
916
916
|
"retry-after",
|
|
917
917
|
"user-agent"
|
|
918
918
|
];
|
|
919
|
-
return
|
|
919
|
+
return ka = function(n) {
|
|
920
920
|
var i = {}, o, s, a;
|
|
921
921
|
return n && e.forEach(n.split(`
|
|
922
922
|
`), function(f) {
|
|
@@ -926,7 +926,7 @@ function yy() {
|
|
|
926
926
|
o === "set-cookie" ? i[o] = (i[o] ? i[o] : []).concat([s]) : i[o] = i[o] ? i[o] + ", " + s : s;
|
|
927
927
|
}
|
|
928
928
|
}), i;
|
|
929
|
-
},
|
|
929
|
+
}, ka;
|
|
930
930
|
}
|
|
931
931
|
var Ba, ju;
|
|
932
932
|
function vy() {
|
|
@@ -1016,10 +1016,10 @@ function Wu() {
|
|
|
1016
1016
|
config: d,
|
|
1017
1017
|
request: w
|
|
1018
1018
|
};
|
|
1019
|
-
t(function(
|
|
1020
|
-
p(
|
|
1021
|
-
}, function(
|
|
1022
|
-
m(
|
|
1019
|
+
t(function(M) {
|
|
1020
|
+
p(M), A();
|
|
1021
|
+
}, function(M) {
|
|
1022
|
+
m(M), A();
|
|
1023
1023
|
}, ee), w = null;
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
@@ -1505,8 +1505,8 @@ var Ja, al;
|
|
|
1505
1505
|
function ph() {
|
|
1506
1506
|
return al || (al = 1, Ja = Cy()), Ja;
|
|
1507
1507
|
}
|
|
1508
|
-
var Ry = Function.prototype.toString, Za = Object.create, Ny = Object.defineProperty, Py = Object.getOwnPropertyDescriptor, sl = Object.getOwnPropertyNames, Vc = Object.getOwnPropertySymbols, Iy = Object.getPrototypeOf, mh = Object.prototype, Ly = mh.hasOwnProperty,
|
|
1509
|
-
if (
|
|
1508
|
+
var Ry = Function.prototype.toString, Za = Object.create, Ny = Object.defineProperty, Py = Object.getOwnPropertyDescriptor, sl = Object.getOwnPropertyNames, Vc = Object.getOwnPropertySymbols, Iy = Object.getPrototypeOf, mh = Object.prototype, Ly = mh.hasOwnProperty, My = mh.propertyIsEnumerable, gh = typeof Vc == "function", ky = typeof WeakMap == "function", By = function() {
|
|
1509
|
+
if (ky)
|
|
1510
1510
|
return function() {
|
|
1511
1511
|
return /* @__PURE__ */ new WeakMap();
|
|
1512
1512
|
};
|
|
@@ -1548,7 +1548,7 @@ var Ry = Function.prototype.toString, Za = Object.create, Ny = Object.defineProp
|
|
|
1548
1548
|
Ly.call(e, o) && (i[o] = r(e[o], n));
|
|
1549
1549
|
if (gh)
|
|
1550
1550
|
for (var s = Vc(e), a = 0, c = s.length, f = void 0; a < c; ++a)
|
|
1551
|
-
f = s[a],
|
|
1551
|
+
f = s[a], My.call(e, f) && (i[f] = r(e[f], n));
|
|
1552
1552
|
return i;
|
|
1553
1553
|
}, cl = function(e, t, r, n) {
|
|
1554
1554
|
var i = yh(e, t);
|
|
@@ -1695,7 +1695,7 @@ var jy = function() {
|
|
|
1695
1695
|
f.prototype = r.prototype, i.prototype = new f(), f.prototype = null;
|
|
1696
1696
|
}
|
|
1697
1697
|
return i;
|
|
1698
|
-
}, ev = Zy, Wc = Function.prototype.bind || ev, tv = Function.prototype.call, rv = Object.prototype.hasOwnProperty, nv = Wc, iv = nv.call(tv, rv), ge, Fn = SyntaxError, vh = Function,
|
|
1698
|
+
}, ev = Zy, Wc = Function.prototype.bind || ev, tv = Function.prototype.call, rv = Object.prototype.hasOwnProperty, nv = Wc, iv = nv.call(tv, rv), ge, Fn = SyntaxError, vh = Function, Mn = TypeError, es = function(e) {
|
|
1699
1699
|
try {
|
|
1700
1700
|
return vh('"use strict"; return (' + e + ").constructor;")();
|
|
1701
1701
|
} catch {
|
|
@@ -1708,7 +1708,7 @@ if (tn)
|
|
|
1708
1708
|
tn = null;
|
|
1709
1709
|
}
|
|
1710
1710
|
var ts = function() {
|
|
1711
|
-
throw new
|
|
1711
|
+
throw new Mn();
|
|
1712
1712
|
}, ov = tn ? function() {
|
|
1713
1713
|
try {
|
|
1714
1714
|
return arguments.callee, ts;
|
|
@@ -1780,7 +1780,7 @@ var ts = function() {
|
|
|
1780
1780
|
"%SyntaxError%": Fn,
|
|
1781
1781
|
"%ThrowTypeError%": ov,
|
|
1782
1782
|
"%TypedArray%": sv,
|
|
1783
|
-
"%TypeError%":
|
|
1783
|
+
"%TypeError%": Mn,
|
|
1784
1784
|
"%Uint8Array%": typeof Uint8Array > "u" ? ge : Uint8Array,
|
|
1785
1785
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? ge : Uint8ClampedArray,
|
|
1786
1786
|
"%Uint16Array%": typeof Uint16Array > "u" ? ge : Uint16Array,
|
|
@@ -1880,7 +1880,7 @@ var uv = function e(t) {
|
|
|
1880
1880
|
if (zo(dl, n) && (i = dl[n], n = "%" + i[0] + "%"), zo(rn, n)) {
|
|
1881
1881
|
var o = rn[n];
|
|
1882
1882
|
if (o === Nn && (o = uv(n)), typeof o > "u" && !r)
|
|
1883
|
-
throw new
|
|
1883
|
+
throw new Mn("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
1884
1884
|
return {
|
|
1885
1885
|
alias: i,
|
|
1886
1886
|
name: n,
|
|
@@ -1890,9 +1890,9 @@ var uv = function e(t) {
|
|
|
1890
1890
|
throw new Fn("intrinsic " + t + " does not exist!");
|
|
1891
1891
|
}, cn = function(t, r) {
|
|
1892
1892
|
if (typeof t != "string" || t.length === 0)
|
|
1893
|
-
throw new
|
|
1893
|
+
throw new Mn("intrinsic name must be a non-empty string");
|
|
1894
1894
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
1895
|
-
throw new
|
|
1895
|
+
throw new Mn('"allowMissing" argument must be a boolean');
|
|
1896
1896
|
if (dv(/^%?[^%]*%?$/, t) === null)
|
|
1897
1897
|
throw new Fn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1898
1898
|
var n = mv(t), i = n.length > 0 ? n[0] : "", o = gv("%" + i + "%", r), s = o.name, a = o.value, c = !1, f = o.alias;
|
|
@@ -1906,7 +1906,7 @@ var uv = function e(t) {
|
|
|
1906
1906
|
else if (a != null) {
|
|
1907
1907
|
if (!(d in a)) {
|
|
1908
1908
|
if (!r)
|
|
1909
|
-
throw new
|
|
1909
|
+
throw new Mn("base intrinsic for " + t + " exists, but the property is not available.");
|
|
1910
1910
|
return;
|
|
1911
1911
|
}
|
|
1912
1912
|
if (tn && u + 1 >= n.length) {
|
|
@@ -2018,7 +2018,7 @@ const Cv = {}, Rv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2018
2018
|
__proto__: null,
|
|
2019
2019
|
default: Cv
|
|
2020
2020
|
}, Symbol.toStringTag, { value: "Module" })), Nv = /* @__PURE__ */ oo(Rv);
|
|
2021
|
-
var Yc = typeof Map == "function" && Map.prototype, rs = Object.getOwnPropertyDescriptor && Yc ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ko = Yc && rs && typeof rs.get == "function" ? rs.get : null, vl = Yc && Map.prototype.forEach, Kc = typeof Set == "function" && Set.prototype, ns = Object.getOwnPropertyDescriptor && Kc ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Qo = Kc && ns && typeof ns.get == "function" ? ns.get : null, _l = Kc && Set.prototype.forEach, Pv = typeof WeakMap == "function" && WeakMap.prototype, Xi = Pv ? WeakMap.prototype.has : null, Iv = typeof WeakSet == "function" && WeakSet.prototype, Ji = Iv ? WeakSet.prototype.has : null, Lv = typeof WeakRef == "function" && WeakRef.prototype, El = Lv ? WeakRef.prototype.deref : null,
|
|
2021
|
+
var Yc = typeof Map == "function" && Map.prototype, rs = Object.getOwnPropertyDescriptor && Yc ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ko = Yc && rs && typeof rs.get == "function" ? rs.get : null, vl = Yc && Map.prototype.forEach, Kc = typeof Set == "function" && Set.prototype, ns = Object.getOwnPropertyDescriptor && Kc ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Qo = Kc && ns && typeof ns.get == "function" ? ns.get : null, _l = Kc && Set.prototype.forEach, Pv = typeof WeakMap == "function" && WeakMap.prototype, Xi = Pv ? WeakMap.prototype.has : null, Iv = typeof WeakSet == "function" && WeakSet.prototype, Ji = Iv ? WeakSet.prototype.has : null, Lv = typeof WeakRef == "function" && WeakRef.prototype, El = Lv ? WeakRef.prototype.deref : null, Mv = Boolean.prototype.valueOf, kv = Object.prototype.toString, Bv = Function.prototype.toString, Fv = String.prototype.match, Qc = String.prototype.slice, br = String.prototype.replace, Dv = String.prototype.toUpperCase, bl = String.prototype.toLowerCase, Oh = RegExp.prototype.test, wl = Array.prototype.concat, Gt = Array.prototype.join, Uv = Array.prototype.slice, Sl = Math.floor, fc = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, is = Object.getOwnPropertySymbols, dc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Dn = typeof Symbol == "function" && typeof Symbol.iterator == "object", at = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Dn || "symbol") ? Symbol.toStringTag : null, Ah = Object.prototype.propertyIsEnumerable, Tl = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
2022
2022
|
return e.__proto__;
|
|
2023
2023
|
} : null);
|
|
2024
2024
|
function Ol(e, t) {
|
|
@@ -2076,10 +2076,10 @@ var hc = Nv, Al = hc.custom, xl = Ch(Al) ? Al : null, $v = function e(t, r, n, i
|
|
|
2076
2076
|
return "[Circular]";
|
|
2077
2077
|
function d(z, ee, Y) {
|
|
2078
2078
|
if (ee && (i = Uv.call(i), i.push(ee)), Y) {
|
|
2079
|
-
var
|
|
2079
|
+
var M = {
|
|
2080
2080
|
depth: o.depth
|
|
2081
2081
|
};
|
|
2082
|
-
return Er(o, "quoteStyle") && (
|
|
2082
|
+
return Er(o, "quoteStyle") && (M.quoteStyle = o.quoteStyle), e(z, M, n + 1, i);
|
|
2083
2083
|
}
|
|
2084
2084
|
return e(z, o, n + 1, i);
|
|
2085
2085
|
}
|
|
@@ -2135,7 +2135,7 @@ var hc = Nv, Al = hc.custom, xl = Ch(Al) ? Al : null, $v = function e(t, r, n, i
|
|
|
2135
2135
|
if (zv(t))
|
|
2136
2136
|
return Si(d(fc.call(t)));
|
|
2137
2137
|
if (Wv(t))
|
|
2138
|
-
return Si(
|
|
2138
|
+
return Si(Mv.call(t));
|
|
2139
2139
|
if (Gv(t))
|
|
2140
2140
|
return Si(d(String(t)));
|
|
2141
2141
|
if (typeof window < "u" && t === window)
|
|
@@ -2205,7 +2205,7 @@ function Er(e, t) {
|
|
|
2205
2205
|
return Yv.call(e, t);
|
|
2206
2206
|
}
|
|
2207
2207
|
function Ar(e) {
|
|
2208
|
-
return
|
|
2208
|
+
return kv.call(e);
|
|
2209
2209
|
}
|
|
2210
2210
|
function Kv(e) {
|
|
2211
2211
|
if (e.name)
|
|
@@ -2559,7 +2559,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2559
2559
|
repeat: function(t) {
|
|
2560
2560
|
return t;
|
|
2561
2561
|
}
|
|
2562
|
-
}, cr = Array.isArray, P0 = Array.prototype.push,
|
|
2562
|
+
}, cr = Array.isArray, P0 = Array.prototype.push, Mh = function(e, t) {
|
|
2563
2563
|
P0.apply(e, cr(t) ? t : [t]);
|
|
2564
2564
|
}, I0 = Date.prototype.toISOString, Pl = Zi.default, it = {
|
|
2565
2565
|
addQueryPrefix: !1,
|
|
@@ -2581,7 +2581,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2581
2581
|
strictNullHandling: !1
|
|
2582
2582
|
}, L0 = function(t) {
|
|
2583
2583
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
2584
|
-
}, cs = {},
|
|
2584
|
+
}, cs = {}, M0 = function e(t, r, n, i, o, s, a, c, f, u, h, d, l, p, m, b) {
|
|
2585
2585
|
for (var T = t, _ = b, E = 0, A = !1; (_ = _.get(cs)) !== void 0 && !A; ) {
|
|
2586
2586
|
var w = _.get(t);
|
|
2587
2587
|
if (E += 1, typeof w < "u") {
|
|
@@ -2591,8 +2591,8 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2591
2591
|
}
|
|
2592
2592
|
typeof _.get(cs) > "u" && (E = 0);
|
|
2593
2593
|
}
|
|
2594
|
-
if (typeof c == "function" ? T = c(r, T) : T instanceof Date ? T = h(T) : n === "comma" && cr(T) && (T = Go.maybeMap(T, function(
|
|
2595
|
-
return
|
|
2594
|
+
if (typeof c == "function" ? T = c(r, T) : T instanceof Date ? T = h(T) : n === "comma" && cr(T) && (T = Go.maybeMap(T, function(M) {
|
|
2595
|
+
return M instanceof Date ? h(M) : M;
|
|
2596
2596
|
})), T === null) {
|
|
2597
2597
|
if (o)
|
|
2598
2598
|
return a && !p ? a(r, it.encoder, m, "key", d) : r;
|
|
@@ -2623,7 +2623,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2623
2623
|
var ee = cr(T) ? typeof n == "function" ? n(G, U) : G : G + (u ? "." + U : "[" + U + "]");
|
|
2624
2624
|
b.set(t, E);
|
|
2625
2625
|
var Y = Lh();
|
|
2626
|
-
Y.set(cs, b),
|
|
2626
|
+
Y.set(cs, b), Mh(F, e(
|
|
2627
2627
|
z,
|
|
2628
2628
|
ee,
|
|
2629
2629
|
n,
|
|
@@ -2644,7 +2644,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
2646
|
return F;
|
|
2647
|
-
},
|
|
2647
|
+
}, k0 = function(t) {
|
|
2648
2648
|
if (!t)
|
|
2649
2649
|
return it;
|
|
2650
2650
|
if (t.encoder !== null && typeof t.encoder < "u" && typeof t.encoder != "function")
|
|
@@ -2677,7 +2677,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2677
2677
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : it.strictNullHandling
|
|
2678
2678
|
};
|
|
2679
2679
|
}, B0 = function(e, t) {
|
|
2680
|
-
var r = e, n =
|
|
2680
|
+
var r = e, n = k0(t), i, o;
|
|
2681
2681
|
typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : cr(n.filter) && (o = n.filter, i = o);
|
|
2682
2682
|
var s = [];
|
|
2683
2683
|
if (typeof r != "object" || r === null)
|
|
@@ -2691,7 +2691,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2691
2691
|
i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
|
|
2692
2692
|
for (var u = Lh(), h = 0; h < i.length; ++h) {
|
|
2693
2693
|
var d = i[h];
|
|
2694
|
-
n.skipNulls && r[d] === null ||
|
|
2694
|
+
n.skipNulls && r[d] === null || Mh(s, M0(
|
|
2695
2695
|
r[d],
|
|
2696
2696
|
d,
|
|
2697
2697
|
c,
|
|
@@ -2733,7 +2733,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2733
2733
|
return e.replace(/&#(\d+);/g, function(t, r) {
|
|
2734
2734
|
return String.fromCharCode(parseInt(r, 10));
|
|
2735
2735
|
});
|
|
2736
|
-
},
|
|
2736
|
+
}, kh = function(e, t) {
|
|
2737
2737
|
return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
|
|
2738
2738
|
}, U0 = "utf8=%26%2310003%3B", $0 = "utf8=%E2%9C%93", H0 = function(t, r) {
|
|
2739
2739
|
var n = { __proto__: null }, i = r.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, s = i.split(r.delimiter, o), a = -1, c, f = r.charset;
|
|
@@ -2744,7 +2744,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2744
2744
|
if (c !== a) {
|
|
2745
2745
|
var u = s[c], h = u.indexOf("]="), d = h === -1 ? u.indexOf("=") : h + 1, l, p;
|
|
2746
2746
|
d === -1 ? (l = r.decoder(u, Qe.decoder, f, "key"), p = r.strictNullHandling ? null : "") : (l = r.decoder(u.slice(0, d), Qe.decoder, f, "key"), p = Un.maybeMap(
|
|
2747
|
-
|
|
2747
|
+
kh(u.slice(d + 1), r),
|
|
2748
2748
|
function(m) {
|
|
2749
2749
|
return r.decoder(m, Qe.decoder, f, "value");
|
|
2750
2750
|
}
|
|
@@ -2752,7 +2752,7 @@ var Xc = cn, Gn = xv, o0 = $v, a0 = Xc("%TypeError%"), _o = Xc("%WeakMap%", !0),
|
|
|
2752
2752
|
}
|
|
2753
2753
|
return n;
|
|
2754
2754
|
}, j0 = function(e, t, r, n) {
|
|
2755
|
-
for (var i = n ? t :
|
|
2755
|
+
for (var i = n ? t : kh(t, r), o = e.length - 1; o >= 0; --o) {
|
|
2756
2756
|
var s, a = e[o];
|
|
2757
2757
|
if (a === "[]" && r.parseArrays)
|
|
2758
2758
|
s = [].concat(i);
|
|
@@ -3048,15 +3048,15 @@ function w_(e) {
|
|
|
3048
3048
|
function Uh(e, t) {
|
|
3049
3049
|
if (e) {
|
|
3050
3050
|
if (typeof e == "string")
|
|
3051
|
-
return
|
|
3051
|
+
return Ml(e, t);
|
|
3052
3052
|
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
3053
3053
|
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
|
3054
3054
|
return Array.from(e);
|
|
3055
3055
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
3056
|
-
return
|
|
3056
|
+
return Ml(e, t);
|
|
3057
3057
|
}
|
|
3058
3058
|
}
|
|
3059
|
-
function
|
|
3059
|
+
function Ml(e, t) {
|
|
3060
3060
|
(t == null || t > e.length) && (t = e.length);
|
|
3061
3061
|
for (var r = 0, n = new Array(t); r < t; r++)
|
|
3062
3062
|
n[r] = e[r];
|
|
@@ -3158,7 +3158,7 @@ function us(e) {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
return Math.min(30, Math.max(1, r));
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3161
|
+
function kl(e, t) {
|
|
3162
3162
|
return t("info", "Throttle request to ".concat(e, "/s")), a_({
|
|
3163
3163
|
limit: e,
|
|
3164
3164
|
interval: 1e3,
|
|
@@ -3166,7 +3166,7 @@ function Ml(e, t) {
|
|
|
3166
3166
|
});
|
|
3167
3167
|
}
|
|
3168
3168
|
var P_ = function(e) {
|
|
3169
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "auto", r = e.defaults.logHandler, n = r === void 0 ? _c : r, i = Il(t) ? us(t) : us("auto", t), o =
|
|
3169
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "auto", r = e.defaults.logHandler, n = r === void 0 ? _c : r, i = Il(t) ? us(t) : us("auto", t), o = kl(i, n), s = !1, a = e.interceptors.request.use(function(f) {
|
|
3170
3170
|
return o(function() {
|
|
3171
3171
|
return f;
|
|
3172
3172
|
})();
|
|
@@ -3175,7 +3175,7 @@ var P_ = function(e) {
|
|
|
3175
3175
|
}), c = e.interceptors.response.use(function(f) {
|
|
3176
3176
|
if (!s && Il(t) && (t === "auto" || Ec.test(t)) && f.headers && f.headers["x-contentful-ratelimit-second-limit"]) {
|
|
3177
3177
|
var u = parseInt(f.headers["x-contentful-ratelimit-second-limit"]), h = us(t, u);
|
|
3178
|
-
h !== i && (a && e.interceptors.request.eject(a), i = h, o =
|
|
3178
|
+
h !== i && (a && e.interceptors.request.eject(a), i = h, o = kl(h, n), a = e.interceptors.request.use(function(d) {
|
|
3179
3179
|
return o(function() {
|
|
3180
3180
|
return d;
|
|
3181
3181
|
})();
|
|
@@ -3197,7 +3197,7 @@ var P_ = function(e) {
|
|
|
3197
3197
|
}, L_ = function(t) {
|
|
3198
3198
|
return Math.pow(Math.SQRT2, t);
|
|
3199
3199
|
};
|
|
3200
|
-
function
|
|
3200
|
+
function M_(e) {
|
|
3201
3201
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5, r = e.defaults, n = r.responseLogger, i = n === void 0 ? _c : n, o = r.requestLogger, s = o === void 0 ? _c : o;
|
|
3202
3202
|
e.interceptors.request.use(function(a) {
|
|
3203
3203
|
return s(a), a;
|
|
@@ -3218,7 +3218,7 @@ function k_(e) {
|
|
|
3218
3218
|
})) : Promise.reject(a);
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function k_(e, t) {
|
|
3222
3222
|
e.interceptors.request.use(function(r) {
|
|
3223
3223
|
return t().then(function(n) {
|
|
3224
3224
|
return r.headers = Pn(Pn({}, r.headers), {}, {
|
|
@@ -3293,7 +3293,7 @@ function $h(e, t) {
|
|
|
3293
3293
|
}, l = e.create(d);
|
|
3294
3294
|
return l.httpClientParams = t, l.cloneWithNewParams = function(p) {
|
|
3295
3295
|
return $h(e, Pn(Pn({}, Tr(t)), p));
|
|
3296
|
-
}, n.onBeforeRequest && l.interceptors.request.use(n.onBeforeRequest), typeof n.accessToken == "function" &&
|
|
3296
|
+
}, n.onBeforeRequest && l.interceptors.request.use(n.onBeforeRequest), typeof n.accessToken == "function" && k_(l, n.accessToken), n.throttle && P_(l, n.throttle), M_(l, n.retryLimit), n.onError && l.interceptors.response.use(function(p) {
|
|
3297
3297
|
return p;
|
|
3298
3298
|
}, n.onError), l;
|
|
3299
3299
|
}
|
|
@@ -3473,20 +3473,20 @@ function Vn() {
|
|
|
3473
3473
|
for (var U in F)
|
|
3474
3474
|
u.call(F, U) && (W[U] = q(F[U], G));
|
|
3475
3475
|
if (d)
|
|
3476
|
-
for (var z = a(F), ee = 0, Y = z.length,
|
|
3477
|
-
|
|
3476
|
+
for (var z = a(F), ee = 0, Y = z.length, M = void 0; ee < Y; ++ee)
|
|
3477
|
+
M = z[ee], h.call(F, M) && (W[M] = q(F[M], G));
|
|
3478
3478
|
return W;
|
|
3479
3479
|
}, T = function(F, B, q, G) {
|
|
3480
3480
|
var W = m(F, B);
|
|
3481
3481
|
G.set(F, W);
|
|
3482
|
-
for (var U = d ? s(F).concat(a(F)) : s(F), z = 0, ee = U.length, Y = void 0,
|
|
3482
|
+
for (var U = d ? s(F).concat(a(F)) : s(F), z = 0, ee = U.length, Y = void 0, M = void 0; z < ee; ++z)
|
|
3483
3483
|
if (Y = U[z], Y !== "callee" && Y !== "caller")
|
|
3484
|
-
if (
|
|
3485
|
-
!
|
|
3484
|
+
if (M = o(F, Y), M) {
|
|
3485
|
+
!M.get && !M.set && (M.value = q(F[Y], G));
|
|
3486
3486
|
try {
|
|
3487
|
-
i(W, Y,
|
|
3487
|
+
i(W, Y, M);
|
|
3488
3488
|
} catch {
|
|
3489
|
-
W[Y] =
|
|
3489
|
+
W[Y] = M.value;
|
|
3490
3490
|
}
|
|
3491
3491
|
} else
|
|
3492
3492
|
W[Y] = q(F[Y], G);
|
|
@@ -3503,37 +3503,37 @@ function Vn() {
|
|
|
3503
3503
|
return z;
|
|
3504
3504
|
if (ee.has(z))
|
|
3505
3505
|
return ee.get(z);
|
|
3506
|
-
var Y = z.__proto__ || A(z),
|
|
3507
|
-
if (!
|
|
3506
|
+
var Y = z.__proto__ || A(z), M = Y && Y.constructor;
|
|
3507
|
+
if (!M || M === G.Object)
|
|
3508
3508
|
return W(z, G, U, ee);
|
|
3509
3509
|
var V;
|
|
3510
3510
|
if (E(z)) {
|
|
3511
3511
|
if (q)
|
|
3512
3512
|
return T(z, G, U, ee);
|
|
3513
|
-
V = new
|
|
3513
|
+
V = new M(), ee.set(z, V);
|
|
3514
3514
|
for (var X = 0, de = z.length; X < de; ++X)
|
|
3515
3515
|
V[X] = U(z[X], ee);
|
|
3516
3516
|
return V;
|
|
3517
3517
|
}
|
|
3518
3518
|
if (z instanceof G.Date)
|
|
3519
|
-
return new
|
|
3519
|
+
return new M(z.getTime());
|
|
3520
3520
|
if (z instanceof G.RegExp)
|
|
3521
|
-
return V = new
|
|
3521
|
+
return V = new M(z.source, z.flags || _(z)), V.lastIndex = z.lastIndex, V;
|
|
3522
3522
|
if (G.Map && z instanceof G.Map)
|
|
3523
|
-
return V = new
|
|
3523
|
+
return V = new M(), ee.set(z, V), z.forEach(function(Q, J) {
|
|
3524
3524
|
V.set(J, U(Q, ee));
|
|
3525
3525
|
}), V;
|
|
3526
3526
|
if (G.Set && z instanceof G.Set)
|
|
3527
|
-
return V = new
|
|
3527
|
+
return V = new M(), ee.set(z, V), z.forEach(function(Q) {
|
|
3528
3528
|
V.add(U(Q, ee));
|
|
3529
3529
|
}), V;
|
|
3530
3530
|
if (G.Blob && z instanceof G.Blob)
|
|
3531
3531
|
return z.slice(0, z.size, z.type);
|
|
3532
3532
|
if (G.Buffer && G.Buffer.isBuffer(z))
|
|
3533
|
-
return V = G.Buffer.allocUnsafe ? G.Buffer.allocUnsafe(z.length) : new
|
|
3533
|
+
return V = G.Buffer.allocUnsafe ? G.Buffer.allocUnsafe(z.length) : new M(z.length), ee.set(z, V), z.copy(V), V;
|
|
3534
3534
|
if (G.ArrayBuffer) {
|
|
3535
3535
|
if (G.ArrayBuffer.isView(z))
|
|
3536
|
-
return V = new
|
|
3536
|
+
return V = new M(z.buffer.slice(0)), ee.set(z, V), V;
|
|
3537
3537
|
if (z instanceof G.ArrayBuffer)
|
|
3538
3538
|
return V = z.slice(0), ee.set(z, V), V;
|
|
3539
3539
|
}
|
|
@@ -4202,7 +4202,7 @@ function gE() {
|
|
|
4202
4202
|
(0, e.errorHandler)(Le);
|
|
4203
4203
|
}
|
|
4204
4204
|
}
|
|
4205
|
-
async function
|
|
4205
|
+
async function M() {
|
|
4206
4206
|
let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4207
4207
|
ce(d), K = (0, n.default)(K);
|
|
4208
4208
|
try {
|
|
@@ -4299,7 +4299,7 @@ function gE() {
|
|
|
4299
4299
|
getEntry: z,
|
|
4300
4300
|
getEntries: ee,
|
|
4301
4301
|
getAsset: Y,
|
|
4302
|
-
getAssets:
|
|
4302
|
+
getAssets: M,
|
|
4303
4303
|
getTag: V,
|
|
4304
4304
|
getTags: X,
|
|
4305
4305
|
createAssetKey: de,
|
|
@@ -4724,14 +4724,14 @@ function TE() {
|
|
|
4724
4724
|
var c = s(897), f = s(48), u = { CONTENTFUL: { ENVIRONMENTS_MAPING: { beta: "beta", rc: "rc", live: "master", local: "beta" }, LOCALES: { DEFAULT: "en", SUPPORTED: ["en", "es", "fr", "pt"] }, SPACE: "txbhe1wabmyx", HOSTS: { CDN: "cdn.contentful.com", PREVIEW: "preview.contentful.com" } } };
|
|
4725
4725
|
const { CONTENTFUL: { ENVIRONMENTS_MAPING: h, SPACE: d, HOSTS: l } } = u;
|
|
4726
4726
|
let p = { apiKey: null, previewKey: null, environment: null, isPreview: !1, host: l.CDN, space: d };
|
|
4727
|
-
const m = ({ apiKey: Y, environment:
|
|
4727
|
+
const m = ({ apiKey: Y, environment: M, isPreview: V = !1, location: X, previewKey: de, space: Q = null }) => {
|
|
4728
4728
|
p.apiKey = Y, p.previewKey = de, p.environment = ((J) => {
|
|
4729
4729
|
if (!J)
|
|
4730
4730
|
throw new Error("Cannot map environment: Environment not defined");
|
|
4731
4731
|
if (!h[J])
|
|
4732
4732
|
throw new Error(`Cannot map environment: No mapping found for environment ${J}`);
|
|
4733
4733
|
return h[J];
|
|
4734
|
-
})(
|
|
4734
|
+
})(M), p.isPreview = V || ((J) => {
|
|
4735
4735
|
let te = !1;
|
|
4736
4736
|
if (J && J.search) {
|
|
4737
4737
|
const ce = (0, f.parse)(J.search);
|
|
@@ -4740,55 +4740,55 @@ function TE() {
|
|
|
4740
4740
|
return te;
|
|
4741
4741
|
})(X), p.space = Q || d;
|
|
4742
4742
|
}, b = (Y = !1) => {
|
|
4743
|
-
const { apiKey:
|
|
4744
|
-
return X === !0 || Y === !0 ? { accessToken: de, environment: V, host: l.PREVIEW, space: Q } : { accessToken:
|
|
4743
|
+
const { apiKey: M, environment: V, isPreview: X, previewKey: de, space: Q } = p;
|
|
4744
|
+
return X === !0 || Y === !0 ? { accessToken: de, environment: V, host: l.PREVIEW, space: Q } : { accessToken: M, environment: V, host: l.CDN, space: Q };
|
|
4745
4745
|
}, T = (Y) => typeof Y == "object" && Y !== null, _ = (Y) => Array.isArray(Y) && Y.length, E = (Y) => {
|
|
4746
4746
|
if (!T(Y))
|
|
4747
4747
|
throw new Error("Cannot flatten fields");
|
|
4748
|
-
const { fields:
|
|
4749
|
-
if (!
|
|
4748
|
+
const { fields: M, sys: V } = Y;
|
|
4749
|
+
if (!M)
|
|
4750
4750
|
throw new Error("Cannot flatten fields");
|
|
4751
|
-
let X = { ...
|
|
4751
|
+
let X = { ...M };
|
|
4752
4752
|
if (T(V)) {
|
|
4753
4753
|
const { contentType: de, createdAt: Q, updatedAt: J } = V;
|
|
4754
4754
|
de && Object.assign(X, { contentType: de.sys.id }), Q && Object.assign(X, { createdAt: Q }), J && Object.assign(X, { updatedAt: J });
|
|
4755
4755
|
}
|
|
4756
4756
|
return X;
|
|
4757
|
-
}, { CONTENTFUL: { LOCALES: A } } = u, w = (Y,
|
|
4758
|
-
const V = ((X) => A.SUPPORTED.includes(X) ? X : A.DEFAULT)(
|
|
4757
|
+
}, { CONTENTFUL: { LOCALES: A } } = u, w = (Y, M) => T(Y) && ((V, X) => Object.prototype.hasOwnProperty.call(V, X))(Y, M), N = (Y, M) => {
|
|
4758
|
+
const V = ((X) => A.SUPPORTED.includes(X) ? X : A.DEFAULT)(M);
|
|
4759
4759
|
return w(Y, V) ? Y[V] : w(Y, A.DEFAULT) ? Y[A.DEFAULT] : Y;
|
|
4760
|
-
}, F = (Y) => T(Y) && Y.sys && Y.sys.type === "Asset", B = (Y,
|
|
4760
|
+
}, F = (Y) => T(Y) && Y.sys && Y.sys.type === "Asset", B = (Y, M, V) => {
|
|
4761
4761
|
const { title: X, file: de } = E(Y);
|
|
4762
4762
|
if (!de)
|
|
4763
4763
|
throw new Error("Cannot flatten asset");
|
|
4764
|
-
const { contentType: Q, fileName: J, url: te, details: ce } = N(de,
|
|
4764
|
+
const { contentType: Q, fileName: J, url: te, details: ce } = N(de, M);
|
|
4765
4765
|
if (!te)
|
|
4766
4766
|
throw new Error("Cannot flatten asset");
|
|
4767
4767
|
return V ? { description: X || J, height: ce && ce.image && ce.image.height, type: Q, url: te, width: ce && ce.image && ce.image.width } : te;
|
|
4768
|
-
}, q = (Y) => T(Y) && Y.sys && Y.sys.type === "Entry", G = (Y,
|
|
4768
|
+
}, q = (Y) => T(Y) && Y.sys && Y.sys.type === "Entry", G = (Y, M, V) => {
|
|
4769
4769
|
const X = {}, de = ((Q, J) => {
|
|
4770
4770
|
const te = {};
|
|
4771
4771
|
for (const [ce, $e] of Object.entries(Q))
|
|
4772
4772
|
te[ce] = N($e, J);
|
|
4773
4773
|
return te;
|
|
4774
|
-
})(E(Y),
|
|
4774
|
+
})(E(Y), M);
|
|
4775
4775
|
for (const [Q, J] of Object.entries(de))
|
|
4776
|
-
F(J) ? X[Q] = B(J,
|
|
4776
|
+
F(J) ? X[Q] = B(J, M, V) : q(J) ? X[Q] = G(J, M, V) : _(J) ? X[Q] = J.map((te) => F(te) ? B(te, M, V) : q(te) ? G(te, M, V) : te) : X[Q] = J;
|
|
4777
4777
|
return X;
|
|
4778
4778
|
}, W = ({ items: Y }) => {
|
|
4779
4779
|
if (!_(Y))
|
|
4780
4780
|
throw new Error("Cannot read items");
|
|
4781
4781
|
return Y;
|
|
4782
|
-
}, U = async (Y,
|
|
4783
|
-
const V = b(
|
|
4782
|
+
}, U = async (Y, M) => {
|
|
4783
|
+
const V = b(M);
|
|
4784
4784
|
return await (await (0, c.createClient)(V)).getEntries(Y);
|
|
4785
|
-
}, z = async (Y = {},
|
|
4785
|
+
}, z = async (Y = {}, M = {}, V = !1) => ((X, { flatten: de = !0, locale: Q = "en", assetDetails: J = !1 }) => {
|
|
4786
4786
|
const te = W(X);
|
|
4787
4787
|
return de ? G(te[0], Q, J) : te[0];
|
|
4788
|
-
})(await U(Y, V), { ...Y, ...
|
|
4788
|
+
})(await U(Y, V), { ...Y, ...M }), ee = async (Y = {}, M = {}, V = !1) => ((X, { flatten: de = !0, locale: Q = "en", assetDetails: J = !1 }) => {
|
|
4789
4789
|
const te = W(X);
|
|
4790
4790
|
return de ? ((ce, $e, K) => ce.map((oe) => G(oe, $e, K)))(te, Q, J) : te;
|
|
4791
|
-
})(await U(Y, V), { ...Y, ...
|
|
4791
|
+
})(await U(Y, V), { ...Y, ...M });
|
|
4792
4792
|
}(), a;
|
|
4793
4793
|
}();
|
|
4794
4794
|
});
|
|
@@ -5798,7 +5798,7 @@ function LE() {
|
|
|
5798
5798
|
}(bs)), bs.exports;
|
|
5799
5799
|
}
|
|
5800
5800
|
var _f;
|
|
5801
|
-
function
|
|
5801
|
+
function ME() {
|
|
5802
5802
|
return _f || (_f = 1, function(e, t) {
|
|
5803
5803
|
(function(r, n) {
|
|
5804
5804
|
e.exports = n(OE(), AE(), LE());
|
|
@@ -5946,11 +5946,11 @@ function kE() {
|
|
|
5946
5946
|
}(ys)), ys.exports;
|
|
5947
5947
|
}
|
|
5948
5948
|
var As, Ef;
|
|
5949
|
-
function
|
|
5949
|
+
function kE() {
|
|
5950
5950
|
if (Ef)
|
|
5951
5951
|
return As;
|
|
5952
5952
|
Ef = 1;
|
|
5953
|
-
var e =
|
|
5953
|
+
var e = ME(), t = "https://clouderrorreporting.googleapis.com/v1beta1/projects/", r = function() {
|
|
5954
5954
|
};
|
|
5955
5955
|
r.prototype.start = function(s) {
|
|
5956
5956
|
if (!s.key && !s.targetUrl && !s.customReportingFunction)
|
|
@@ -6067,7 +6067,7 @@ var bf;
|
|
|
6067
6067
|
function BE() {
|
|
6068
6068
|
return bf || (bf = 1, function(e, t) {
|
|
6069
6069
|
(function(r, n) {
|
|
6070
|
-
e.exports = n(
|
|
6070
|
+
e.exports = n(kE());
|
|
6071
6071
|
})(ue, function(r) {
|
|
6072
6072
|
return function() {
|
|
6073
6073
|
var n = { 542: function(a) {
|
|
@@ -6290,7 +6290,7 @@ function HE() {
|
|
|
6290
6290
|
});
|
|
6291
6291
|
}(xs)), xs.exports;
|
|
6292
6292
|
}
|
|
6293
|
-
var Vh = 202, Wh = 502, zh = 400, Yh = 409, Kh = 100, Qh = 201, Xh = 417, jE = 424, Jh = 403, Zh = 504, ep = 410, tp = 505, rp = 418, np = 419, ip = 507, op = 500, ap = 411, sp = 423, cp = 420, up = 405, lp = 301, fp = 302, dp = 207, hp = 300, pp = 511, mp = 204, gp = 203, yp = 406, vp = 404, _p = 501, Ep = 304, bp = 200, wp = 206, Sp = 402, Tp = 308, Op = 412, Ap = 428, xp = 102, Cp = 407, Rp = 431, Np = 408, Pp = 413, Ip = 414, Lp = 416,
|
|
6293
|
+
var Vh = 202, Wh = 502, zh = 400, Yh = 409, Kh = 100, Qh = 201, Xh = 417, jE = 424, Jh = 403, Zh = 504, ep = 410, tp = 505, rp = 418, np = 419, ip = 507, op = 500, ap = 411, sp = 423, cp = 420, up = 405, lp = 301, fp = 302, dp = 207, hp = 300, pp = 511, mp = 204, gp = 203, yp = 406, vp = 404, _p = 501, Ep = 304, bp = 200, wp = 206, Sp = 402, Tp = 308, Op = 412, Ap = 428, xp = 102, Cp = 407, Rp = 431, Np = 408, Pp = 413, Ip = 414, Lp = 416, Mp = 205, kp = 303, Bp = 503, Fp = 101, Dp = 307, Up = 429, $p = 401, Hp = 422, jp = 415, qp = 305;
|
|
6294
6294
|
const qE = {
|
|
6295
6295
|
ACCEPTED: Vh,
|
|
6296
6296
|
BAD_GATEWAY: Wh,
|
|
@@ -6335,8 +6335,8 @@ const qE = {
|
|
|
6335
6335
|
REQUEST_TOO_LONG: Pp,
|
|
6336
6336
|
REQUEST_URI_TOO_LONG: Ip,
|
|
6337
6337
|
REQUESTED_RANGE_NOT_SATISFIABLE: Lp,
|
|
6338
|
-
RESET_CONTENT:
|
|
6339
|
-
SEE_OTHER:
|
|
6338
|
+
RESET_CONTENT: Mp,
|
|
6339
|
+
SEE_OTHER: kp,
|
|
6340
6340
|
SERVICE_UNAVAILABLE: Bp,
|
|
6341
6341
|
SWITCHING_PROTOCOLS: Fp,
|
|
6342
6342
|
TEMPORARY_REDIRECT: Dp,
|
|
@@ -6540,11 +6540,11 @@ const WE = Jo(Jo({}, qE), {
|
|
|
6540
6540
|
REQUEST_TIMEOUT: Np,
|
|
6541
6541
|
REQUEST_TOO_LONG: Pp,
|
|
6542
6542
|
REQUEST_URI_TOO_LONG: Ip,
|
|
6543
|
-
RESET_CONTENT:
|
|
6543
|
+
RESET_CONTENT: Mp,
|
|
6544
6544
|
get ReasonPhrases() {
|
|
6545
6545
|
return wc;
|
|
6546
6546
|
},
|
|
6547
|
-
SEE_OTHER:
|
|
6547
|
+
SEE_OTHER: kp,
|
|
6548
6548
|
SERVICE_UNAVAILABLE: Bp,
|
|
6549
6549
|
SWITCHING_PROTOCOLS: Fp,
|
|
6550
6550
|
get StatusCodes() {
|
|
@@ -6561,7 +6561,7 @@ const WE = Jo(Jo({}, qE), {
|
|
|
6561
6561
|
getStatusCode: Vp,
|
|
6562
6562
|
getStatusText: Wp
|
|
6563
6563
|
}, Symbol.toStringTag, { value: "Module" })), YE = /* @__PURE__ */ oo(zE);
|
|
6564
|
-
var Lo = { exports: {} }, Ii = {}, Ps = {}, Li = {},
|
|
6564
|
+
var Lo = { exports: {} }, Ii = {}, Ps = {}, Li = {}, Mi = {}, Vr = {}, ki = {}, Is = {}, Wr = {}, nr = {}, xf;
|
|
6565
6565
|
function ru() {
|
|
6566
6566
|
if (xf)
|
|
6567
6567
|
return nr;
|
|
@@ -6867,11 +6867,11 @@ function co() {
|
|
|
6867
6867
|
}
|
|
6868
6868
|
return ir;
|
|
6869
6869
|
}
|
|
6870
|
-
var
|
|
6870
|
+
var Mo = { exports: {} }, Ls, Mf;
|
|
6871
6871
|
function eb() {
|
|
6872
|
-
if (
|
|
6872
|
+
if (Mf)
|
|
6873
6873
|
return Ls;
|
|
6874
|
-
|
|
6874
|
+
Mf = 1;
|
|
6875
6875
|
var e = 1e3, t = e * 60, r = t * 60, n = r * 24, i = n * 7, o = n * 365.25;
|
|
6876
6876
|
Ls = function(u, h) {
|
|
6877
6877
|
h = h || {};
|
|
@@ -6950,11 +6950,11 @@ function eb() {
|
|
|
6950
6950
|
}
|
|
6951
6951
|
return Ls;
|
|
6952
6952
|
}
|
|
6953
|
-
var
|
|
6953
|
+
var Ms, kf;
|
|
6954
6954
|
function tb() {
|
|
6955
|
-
if (
|
|
6956
|
-
return
|
|
6957
|
-
|
|
6955
|
+
if (kf)
|
|
6956
|
+
return Ms;
|
|
6957
|
+
kf = 1;
|
|
6958
6958
|
function e(t) {
|
|
6959
6959
|
n.debug = n, n.default = n, n.coerce = f, n.disable = s, n.enable = o, n.enabled = a, n.humanize = eb(), n.destroy = u, Object.keys(t).forEach((h) => {
|
|
6960
6960
|
n[h] = t[h];
|
|
@@ -7036,7 +7036,7 @@ function tb() {
|
|
|
7036
7036
|
}
|
|
7037
7037
|
return n.enable(n.load()), n;
|
|
7038
7038
|
}
|
|
7039
|
-
return
|
|
7039
|
+
return Ms = e, Ms;
|
|
7040
7040
|
}
|
|
7041
7041
|
var Bf;
|
|
7042
7042
|
function Kt() {
|
|
@@ -7172,7 +7172,7 @@ function Kt() {
|
|
|
7172
7172
|
return "[UnexpectedJSONParseError]: " + f.message;
|
|
7173
7173
|
}
|
|
7174
7174
|
};
|
|
7175
|
-
}(
|
|
7175
|
+
}(Mo, Mo.exports)), Mo.exports;
|
|
7176
7176
|
}
|
|
7177
7177
|
var Yr = {}, Ff;
|
|
7178
7178
|
function zp() {
|
|
@@ -7199,12 +7199,12 @@ function zp() {
|
|
|
7199
7199
|
var Df;
|
|
7200
7200
|
function ca() {
|
|
7201
7201
|
if (Df)
|
|
7202
|
-
return
|
|
7202
|
+
return ki;
|
|
7203
7203
|
Df = 1;
|
|
7204
7204
|
var e = ue && ue.__importDefault || function(f) {
|
|
7205
7205
|
return f && f.__esModule ? f : { default: f };
|
|
7206
7206
|
};
|
|
7207
|
-
Object.defineProperty(
|
|
7207
|
+
Object.defineProperty(ki, "__esModule", { value: !0 }), ki.Transport = void 0;
|
|
7208
7208
|
const t = so(), r = Wn, n = co(), i = e(Kt()), o = zp(), s = (0, i.default)("engine.io-client:transport");
|
|
7209
7209
|
class a extends Error {
|
|
7210
7210
|
constructor(u, h, d) {
|
|
@@ -7309,7 +7309,7 @@ function ca() {
|
|
|
7309
7309
|
return h.length ? "?" + h : "";
|
|
7310
7310
|
}
|
|
7311
7311
|
}
|
|
7312
|
-
return
|
|
7312
|
+
return ki.Transport = c, ki;
|
|
7313
7313
|
}
|
|
7314
7314
|
var or = {}, Uf;
|
|
7315
7315
|
function Yp() {
|
|
@@ -7805,14 +7805,14 @@ function ab() {
|
|
|
7805
7805
|
var Wf;
|
|
7806
7806
|
function Kp() {
|
|
7807
7807
|
if (Wf)
|
|
7808
|
-
return
|
|
7809
|
-
Wf = 1, Object.defineProperty(
|
|
7808
|
+
return Mi;
|
|
7809
|
+
Wf = 1, Object.defineProperty(Mi, "__esModule", { value: !0 }), Mi.transports = void 0;
|
|
7810
7810
|
const e = ib(), t = ob(), r = ab();
|
|
7811
|
-
return
|
|
7811
|
+
return Mi.transports = {
|
|
7812
7812
|
websocket: t.WS,
|
|
7813
7813
|
webtransport: r.WT,
|
|
7814
7814
|
polling: e.Polling
|
|
7815
|
-
},
|
|
7815
|
+
}, Mi;
|
|
7816
7816
|
}
|
|
7817
7817
|
var Hi = {}, zf;
|
|
7818
7818
|
function Qp() {
|
|
@@ -8227,7 +8227,7 @@ function cb() {
|
|
|
8227
8227
|
}
|
|
8228
8228
|
return Ii.url = i, Ii;
|
|
8229
8229
|
}
|
|
8230
|
-
var ji = {}, qi = {},
|
|
8230
|
+
var ji = {}, qi = {}, ks = {}, Qr = {}, Xr = {}, Xf;
|
|
8231
8231
|
function Jp() {
|
|
8232
8232
|
if (Xf)
|
|
8233
8233
|
return Xr;
|
|
@@ -8509,7 +8509,7 @@ function nu() {
|
|
|
8509
8509
|
this.reconPack = null, this.buffers = [];
|
|
8510
8510
|
}
|
|
8511
8511
|
}
|
|
8512
|
-
}(
|
|
8512
|
+
}(ks)), ks;
|
|
8513
8513
|
}
|
|
8514
8514
|
var Gi = {}, ed;
|
|
8515
8515
|
function Zp() {
|
|
@@ -9495,11 +9495,11 @@ function hb() {
|
|
|
9495
9495
|
}
|
|
9496
9496
|
return Wi;
|
|
9497
9497
|
}
|
|
9498
|
-
var
|
|
9498
|
+
var ko = {};
|
|
9499
9499
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9500
9500
|
var ad;
|
|
9501
9501
|
function pb() {
|
|
9502
|
-
return ad || (ad = 1,
|
|
9502
|
+
return ad || (ad = 1, ko.read = function(e, t, r, n, i) {
|
|
9503
9503
|
var o, s, a = i * 8 - n - 1, c = (1 << a) - 1, f = c >> 1, u = -7, h = r ? i - 1 : 0, d = r ? -1 : 1, l = e[t + h];
|
|
9504
9504
|
for (h += d, o = l & (1 << -u) - 1, l >>= -u, u += a; u > 0; o = o * 256 + e[t + h], h += d, u -= 8)
|
|
9505
9505
|
;
|
|
@@ -9513,14 +9513,14 @@ function pb() {
|
|
|
9513
9513
|
s = s + Math.pow(2, n), o = o - f;
|
|
9514
9514
|
}
|
|
9515
9515
|
return (l ? -1 : 1) * s * Math.pow(2, o - n);
|
|
9516
|
-
},
|
|
9516
|
+
}, ko.write = function(e, t, r, n, i, o) {
|
|
9517
9517
|
var s, a, c, f = o * 8 - i - 1, u = (1 << f) - 1, h = u >> 1, d = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, l = n ? 0 : o - 1, p = n ? 1 : -1, m = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
9518
9518
|
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (a = isNaN(t) ? 1 : 0, s = u) : (s = Math.floor(Math.log(t) / Math.LN2), t * (c = Math.pow(2, -s)) < 1 && (s--, c *= 2), s + h >= 1 ? t += d / c : t += d * Math.pow(2, 1 - h), t * c >= 2 && (s++, c /= 2), s + h >= u ? (a = 0, s = u) : s + h >= 1 ? (a = (t * c - 1) * Math.pow(2, i), s = s + h) : (a = t * Math.pow(2, h - 1) * Math.pow(2, i), s = 0)); i >= 8; e[r + l] = a & 255, l += p, a /= 256, i -= 8)
|
|
9519
9519
|
;
|
|
9520
9520
|
for (s = s << i | a, f += i; f > 0; e[r + l] = s & 255, l += p, s /= 256, f -= 8)
|
|
9521
9521
|
;
|
|
9522
9522
|
e[r + l - p] |= m * 128;
|
|
9523
|
-
}),
|
|
9523
|
+
}), ko;
|
|
9524
9524
|
}
|
|
9525
9525
|
/*!
|
|
9526
9526
|
* The buffer module from node.js, for the browser.
|
|
@@ -9755,7 +9755,7 @@ function mb() {
|
|
|
9755
9755
|
return v;
|
|
9756
9756
|
case "utf8":
|
|
9757
9757
|
case "utf-8":
|
|
9758
|
-
return
|
|
9758
|
+
return Mt(S).length;
|
|
9759
9759
|
case "ucs2":
|
|
9760
9760
|
case "ucs-2":
|
|
9761
9761
|
case "utf16le":
|
|
@@ -9767,7 +9767,7 @@ function mb() {
|
|
|
9767
9767
|
return xt(S).length;
|
|
9768
9768
|
default:
|
|
9769
9769
|
if (P)
|
|
9770
|
-
return x ? -1 :
|
|
9770
|
+
return x ? -1 : Mt(S).length;
|
|
9771
9771
|
g = ("" + g).toLowerCase(), P = !0;
|
|
9772
9772
|
}
|
|
9773
9773
|
}
|
|
@@ -9935,7 +9935,7 @@ function mb() {
|
|
|
9935
9935
|
return j;
|
|
9936
9936
|
}
|
|
9937
9937
|
function q(S, g, v, x) {
|
|
9938
|
-
return bt(
|
|
9938
|
+
return bt(Mt(g, S.length - v), S, v, x);
|
|
9939
9939
|
}
|
|
9940
9940
|
function G(S, g, v, x) {
|
|
9941
9941
|
return bt(Et(g), S, v, x);
|
|
@@ -10019,10 +10019,10 @@ function mb() {
|
|
|
10019
10019
|
}
|
|
10020
10020
|
j === null ? (j = 65533, le = 1) : j > 65535 && (j -= 65536, x.push(j >>> 10 & 1023 | 55296), j = 56320 | j & 1023), x.push(j), P += le;
|
|
10021
10021
|
}
|
|
10022
|
-
return
|
|
10022
|
+
return M(x);
|
|
10023
10023
|
}
|
|
10024
10024
|
const Y = 4096;
|
|
10025
|
-
function
|
|
10025
|
+
function M(S) {
|
|
10026
10026
|
const g = S.length;
|
|
10027
10027
|
if (g <= Y)
|
|
10028
10028
|
return String.fromCharCode.apply(String, S);
|
|
@@ -10397,7 +10397,7 @@ function mb() {
|
|
|
10397
10397
|
S = S + "=";
|
|
10398
10398
|
return S;
|
|
10399
10399
|
}
|
|
10400
|
-
function
|
|
10400
|
+
function Mt(S, g) {
|
|
10401
10401
|
g = g || 1 / 0;
|
|
10402
10402
|
let v;
|
|
10403
10403
|
const x = S.length;
|
|
@@ -10546,7 +10546,7 @@ function mb() {
|
|
|
10546
10546
|
var d = {};
|
|
10547
10547
|
return function() {
|
|
10548
10548
|
h.r(d), h.d(d, { assets: function() {
|
|
10549
|
-
return
|
|
10549
|
+
return M;
|
|
10550
10550
|
}, auth: function() {
|
|
10551
10551
|
return J;
|
|
10552
10552
|
}, buildAnswer: function() {
|
|
@@ -10560,7 +10560,7 @@ function mb() {
|
|
|
10560
10560
|
}, contentInteraction: function() {
|
|
10561
10561
|
return Ze;
|
|
10562
10562
|
}, decodeBase64: function() {
|
|
10563
|
-
return
|
|
10563
|
+
return kg;
|
|
10564
10564
|
}, default: function() {
|
|
10565
10565
|
return Bg;
|
|
10566
10566
|
}, editorialPages: function() {
|
|
@@ -10574,7 +10574,7 @@ function mb() {
|
|
|
10574
10574
|
}, management: function() {
|
|
10575
10575
|
return Pr;
|
|
10576
10576
|
}, payments: function() {
|
|
10577
|
-
return
|
|
10577
|
+
return Mr;
|
|
10578
10578
|
}, people: function() {
|
|
10579
10579
|
return Bt;
|
|
10580
10580
|
}, peopleEngagement: function() {
|
|
@@ -10592,17 +10592,17 @@ function mb() {
|
|
|
10592
10592
|
var G = h(300), W = h.n(G);
|
|
10593
10593
|
const U = async (I) => {
|
|
10594
10594
|
try {
|
|
10595
|
-
const { message:
|
|
10596
|
-
let Z =
|
|
10595
|
+
const { message: k, response: L, request: $ } = I;
|
|
10596
|
+
let Z = k;
|
|
10597
10597
|
return L ? Z += ` - The request was made and the server responded with ${JSON.stringify({ status: L.status, data: L.data })}` : $ && (Z += " - The request was made but no response was received"), console.warn(Z), await (0, p.reportError)(new Error(Z)), Z;
|
|
10598
|
-
} catch (
|
|
10599
|
-
return console.warn(`Cannot handle error: ${
|
|
10598
|
+
} catch (k) {
|
|
10599
|
+
return console.warn(`Cannot handle error: ${k.message}`), k.message;
|
|
10600
10600
|
}
|
|
10601
10601
|
}, { APIS: { ASSETS_API: { BASE_URL: z, ENDPOINTS: { USERS: ee, CERTIFICATES: Y } } } } = b;
|
|
10602
|
-
var
|
|
10602
|
+
var M = { certificates: { create: async (I, k) => {
|
|
10603
10603
|
let L = [];
|
|
10604
10604
|
try {
|
|
10605
|
-
const { data: $ } = await W().post(`${z}${ee}/${I}${Y}`,
|
|
10605
|
+
const { data: $ } = await W().post(`${z}${ee}/${I}${Y}`, k);
|
|
10606
10606
|
$ && (L = $);
|
|
10607
10607
|
} catch ($) {
|
|
10608
10608
|
await U($);
|
|
@@ -10611,46 +10611,46 @@ function mb() {
|
|
|
10611
10611
|
} } };
|
|
10612
10612
|
const { APIS: { AUTH_API: { BASE_URL: V, ENDPOINTS: { USER_PASSWORD: X, USERS: de } } }, USERS: { MYSELF: Q } } = b;
|
|
10613
10613
|
var J = { userPassword: { update: async (I) => {
|
|
10614
|
-
let
|
|
10614
|
+
let k = null;
|
|
10615
10615
|
try {
|
|
10616
|
-
|
|
10616
|
+
k = await W().put(`${V}${de}/${Q}${X}`, I);
|
|
10617
10617
|
} catch (L) {
|
|
10618
|
-
|
|
10618
|
+
k = { message: (((L || {}).response || {}).data || {}).message }, await U(L);
|
|
10619
10619
|
}
|
|
10620
|
-
return
|
|
10620
|
+
return k;
|
|
10621
10621
|
} } };
|
|
10622
10622
|
const { APIS: { CONTENT_INTERACTION_API: { BASE_URL: te, ENDPOINTS: { ANSWERS: ce, QUESTIONS: $e, LIKES: K } } } } = b, oe = `${te}${$e}`;
|
|
10623
|
-
var Le = { create: async ({ questionSlug: I },
|
|
10623
|
+
var Le = { create: async ({ questionSlug: I }, k) => {
|
|
10624
10624
|
try {
|
|
10625
|
-
await W().post(`${oe}/${encodeURIComponent(I)}${ce}`,
|
|
10625
|
+
await W().post(`${oe}/${encodeURIComponent(I)}${ce}`, k);
|
|
10626
10626
|
} catch (L) {
|
|
10627
10627
|
const $ = await U(L);
|
|
10628
10628
|
throw new Error($);
|
|
10629
10629
|
}
|
|
10630
|
-
}, remove: async ({ questionSlug: I, answerSlug:
|
|
10630
|
+
}, remove: async ({ questionSlug: I, answerSlug: k }) => {
|
|
10631
10631
|
try {
|
|
10632
|
-
await W().delete(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(
|
|
10632
|
+
await W().delete(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}`);
|
|
10633
10633
|
} catch (L) {
|
|
10634
10634
|
const $ = await U(L);
|
|
10635
10635
|
throw new Error($);
|
|
10636
10636
|
}
|
|
10637
|
-
}, update: async ({ questionSlug: I, answerSlug:
|
|
10637
|
+
}, update: async ({ questionSlug: I, answerSlug: k }, L) => {
|
|
10638
10638
|
try {
|
|
10639
|
-
return await W().put(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(
|
|
10639
|
+
return await W().put(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}`, L);
|
|
10640
10640
|
} catch ($) {
|
|
10641
10641
|
const Z = await U($);
|
|
10642
10642
|
throw new Error(Z);
|
|
10643
10643
|
}
|
|
10644
|
-
}, like: async ({ questionSlug: I, answerSlug:
|
|
10644
|
+
}, like: async ({ questionSlug: I, answerSlug: k }, L) => {
|
|
10645
10645
|
try {
|
|
10646
|
-
return await W().post(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(
|
|
10646
|
+
return await W().post(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}${K}`, L);
|
|
10647
10647
|
} catch ($) {
|
|
10648
10648
|
const Z = await U($);
|
|
10649
10649
|
throw new Error(Z);
|
|
10650
10650
|
}
|
|
10651
|
-
}, unlike: async ({ questionSlug: I, answerSlug:
|
|
10651
|
+
}, unlike: async ({ questionSlug: I, answerSlug: k }) => {
|
|
10652
10652
|
try {
|
|
10653
|
-
return await W().delete(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(
|
|
10653
|
+
return await W().delete(`${oe}/${encodeURIComponent(I)}${ce}/${encodeURIComponent(k)}${K}`);
|
|
10654
10654
|
} catch (L) {
|
|
10655
10655
|
const $ = await U(L);
|
|
10656
10656
|
throw new Error($);
|
|
@@ -10660,76 +10660,76 @@ function mb() {
|
|
|
10660
10660
|
var Ot = { create: async (I) => {
|
|
10661
10661
|
try {
|
|
10662
10662
|
return await W().post(mt, I);
|
|
10663
|
-
} catch (
|
|
10664
|
-
const L = await U(
|
|
10663
|
+
} catch (k) {
|
|
10664
|
+
const L = await U(k);
|
|
10665
10665
|
throw new Error(L);
|
|
10666
10666
|
}
|
|
10667
10667
|
}, remove: async ({ questionSlug: I }) => {
|
|
10668
10668
|
try {
|
|
10669
10669
|
await W().delete(`${mt}/${encodeURIComponent(I)}`);
|
|
10670
|
-
} catch (
|
|
10671
|
-
const L = await U(
|
|
10670
|
+
} catch (k) {
|
|
10671
|
+
const L = await U(k);
|
|
10672
10672
|
throw new Error(L);
|
|
10673
10673
|
}
|
|
10674
|
-
}, update: async ({ questionSlug: I },
|
|
10674
|
+
}, update: async ({ questionSlug: I }, k) => {
|
|
10675
10675
|
try {
|
|
10676
|
-
return await W().put(`${mt}/${encodeURIComponent(I)}`,
|
|
10676
|
+
return await W().put(`${mt}/${encodeURIComponent(I)}`, k);
|
|
10677
10677
|
} catch (L) {
|
|
10678
10678
|
const $ = await U(L);
|
|
10679
10679
|
throw new Error($);
|
|
10680
10680
|
}
|
|
10681
10681
|
} };
|
|
10682
|
-
const { APIS: { CONTENT_INTERACTION_API: { BASE_URL: ne, ENDPOINTS: { REPLIES: Je, ANSWERS: Ve, QUESTIONS: At, LIKES: Qt } } } } = b,
|
|
10683
|
-
let Z = `${
|
|
10682
|
+
const { APIS: { CONTENT_INTERACTION_API: { BASE_URL: ne, ENDPOINTS: { REPLIES: Je, ANSWERS: Ve, QUESTIONS: At, LIKES: Qt } } } } = b, Mt = `${ne}${At}`, Et = ({ questionSlug: I, answerSlug: k, replySlug: L }, $ = !1) => {
|
|
10683
|
+
let Z = `${Mt}/${encodeURIComponent(I)}${Ve}/${encodeURIComponent(k)}${Je}`;
|
|
10684
10684
|
return L && (Z = `${Z}/${encodeURIComponent(L)}`, $ && (Z = `${Z}${Qt}`)), Z;
|
|
10685
10685
|
};
|
|
10686
|
-
var Cr = { create: async ({ questionSlug: I, answerSlug:
|
|
10686
|
+
var Cr = { create: async ({ questionSlug: I, answerSlug: k }, L) => {
|
|
10687
10687
|
try {
|
|
10688
|
-
return await W().post(Et({ questionSlug: I, answerSlug:
|
|
10688
|
+
return await W().post(Et({ questionSlug: I, answerSlug: k }), L);
|
|
10689
10689
|
} catch ($) {
|
|
10690
10690
|
const Z = await U($);
|
|
10691
10691
|
throw new Error(Z);
|
|
10692
10692
|
}
|
|
10693
|
-
}, update: async ({ questionSlug: I, answerSlug:
|
|
10693
|
+
}, update: async ({ questionSlug: I, answerSlug: k, replySlug: L }, $) => {
|
|
10694
10694
|
try {
|
|
10695
|
-
return await W().put(Et({ questionSlug: I, answerSlug:
|
|
10695
|
+
return await W().put(Et({ questionSlug: I, answerSlug: k, replySlug: L }), $);
|
|
10696
10696
|
} catch (Z) {
|
|
10697
10697
|
const Ae = await U(Z);
|
|
10698
10698
|
throw new Error(Ae);
|
|
10699
10699
|
}
|
|
10700
|
-
}, remove: async ({ questionSlug: I, answerSlug:
|
|
10700
|
+
}, remove: async ({ questionSlug: I, answerSlug: k, replySlug: L }) => {
|
|
10701
10701
|
try {
|
|
10702
|
-
await W().delete(Et({ questionSlug: I, answerSlug:
|
|
10702
|
+
await W().delete(Et({ questionSlug: I, answerSlug: k, replySlug: L }));
|
|
10703
10703
|
} catch ($) {
|
|
10704
10704
|
const Z = await U($);
|
|
10705
10705
|
throw new Error(Z);
|
|
10706
10706
|
}
|
|
10707
|
-
}, like: async ({ questionSlug: I, answerSlug:
|
|
10707
|
+
}, like: async ({ questionSlug: I, answerSlug: k, replySlug: L }, $) => {
|
|
10708
10708
|
try {
|
|
10709
|
-
await W().post(Et({ questionSlug: I, answerSlug:
|
|
10709
|
+
await W().post(Et({ questionSlug: I, answerSlug: k, replySlug: L }, !0), $);
|
|
10710
10710
|
} catch (Z) {
|
|
10711
10711
|
const Ae = await U(Z);
|
|
10712
10712
|
throw new Error(Ae);
|
|
10713
10713
|
}
|
|
10714
|
-
}, unlike: async ({ questionSlug: I, answerSlug:
|
|
10714
|
+
}, unlike: async ({ questionSlug: I, answerSlug: k, replySlug: L }) => {
|
|
10715
10715
|
try {
|
|
10716
|
-
await W().delete(Et({ questionSlug: I, answerSlug:
|
|
10716
|
+
await W().delete(Et({ questionSlug: I, answerSlug: k, replySlug: L }, !0));
|
|
10717
10717
|
} catch ($) {
|
|
10718
10718
|
const Z = await U($);
|
|
10719
10719
|
throw new Error(Z);
|
|
10720
10720
|
}
|
|
10721
10721
|
}, getReplyUrl: Et };
|
|
10722
10722
|
const { APIS: { CONTENT_INTERACTION_API: { BASE_URL: xt, ENDPOINTS: { QUESTIONS: bt, ANSWERS: We, LIKES: Ct } } } } = b, st = `${xt}${bt}`;
|
|
10723
|
-
var Ze = { answers: Le, questions: Ot, replies: Cr, likes: { create: async (I,
|
|
10723
|
+
var Ze = { answers: Le, questions: Ot, replies: Cr, likes: { create: async (I, k) => {
|
|
10724
10724
|
try {
|
|
10725
|
-
return await W().post(`${st}/${encodeURIComponent(I)}${We}/${encodeURIComponent(
|
|
10725
|
+
return await W().post(`${st}/${encodeURIComponent(I)}${We}/${encodeURIComponent(k)}${Ct}`);
|
|
10726
10726
|
} catch (L) {
|
|
10727
10727
|
const $ = await U(L);
|
|
10728
10728
|
throw new Error($);
|
|
10729
10729
|
}
|
|
10730
|
-
}, remove: async (I,
|
|
10730
|
+
}, remove: async (I, k) => {
|
|
10731
10731
|
try {
|
|
10732
|
-
return await W().delete(`${st}/${encodeURIComponent(I)}${We}/${encodeURIComponent(
|
|
10732
|
+
return await W().delete(`${st}/${encodeURIComponent(I)}${We}/${encodeURIComponent(k)}${Ct}`);
|
|
10733
10733
|
} catch (L) {
|
|
10734
10734
|
const $ = await U(L);
|
|
10735
10735
|
throw new Error($);
|
|
@@ -10737,33 +10737,33 @@ function mb() {
|
|
|
10737
10737
|
} } };
|
|
10738
10738
|
const { APIS: { FEATURES_API: { BASE_URL: Rr, ENDPOINTS: { FLAGS: S } } } } = b, g = `${Rr}${S}`;
|
|
10739
10739
|
var v = { flags: { read: async (I) => {
|
|
10740
|
-
let
|
|
10740
|
+
let k = null;
|
|
10741
10741
|
try {
|
|
10742
10742
|
const { data: L } = await W().get(`${g}/${encodeURIComponent(I)}`);
|
|
10743
|
-
L != null && L.name && (L != null && L.featureState) && (
|
|
10743
|
+
L != null && L.name && (L != null && L.featureState) && (k = L);
|
|
10744
10744
|
} catch (L) {
|
|
10745
10745
|
await U(L);
|
|
10746
10746
|
}
|
|
10747
|
-
return
|
|
10747
|
+
return k;
|
|
10748
10748
|
} } };
|
|
10749
10749
|
const { APIS: { MANAGEMENT_API: { BASE_URL: x, ENDPOINTS: { ACCOUNTS: P } } } } = b;
|
|
10750
10750
|
var D = { create: async (I) => {
|
|
10751
10751
|
try {
|
|
10752
10752
|
await W().post(`${x}${P}`, I);
|
|
10753
|
-
} catch (
|
|
10754
|
-
throw await U(
|
|
10753
|
+
} catch (k) {
|
|
10754
|
+
throw await U(k), k;
|
|
10755
10755
|
}
|
|
10756
10756
|
}, read: async (I) => {
|
|
10757
|
-
let
|
|
10757
|
+
let k = null;
|
|
10758
10758
|
try {
|
|
10759
|
-
({ data:
|
|
10759
|
+
({ data: k } = await W().get(`${x}${P}/${encodeURIComponent(I)}`));
|
|
10760
10760
|
} catch (L) {
|
|
10761
10761
|
await U(L);
|
|
10762
10762
|
}
|
|
10763
|
-
return
|
|
10764
|
-
}, update: async (I,
|
|
10763
|
+
return k;
|
|
10764
|
+
}, update: async (I, k) => {
|
|
10765
10765
|
try {
|
|
10766
|
-
await W().put(`${x}${P}/${encodeURIComponent(I)}`,
|
|
10766
|
+
await W().put(`${x}${P}/${encodeURIComponent(I)}`, k);
|
|
10767
10767
|
} catch (L) {
|
|
10768
10768
|
throw await U(L), L;
|
|
10769
10769
|
}
|
|
@@ -10772,16 +10772,16 @@ function mb() {
|
|
|
10772
10772
|
var Se = { create: async (I) => {
|
|
10773
10773
|
try {
|
|
10774
10774
|
await W().post(`${j}${le}`, I);
|
|
10775
|
-
} catch (
|
|
10776
|
-
throw await U(
|
|
10775
|
+
} catch (k) {
|
|
10776
|
+
throw await U(k), k;
|
|
10777
10777
|
}
|
|
10778
10778
|
} };
|
|
10779
10779
|
const { APIS: { MANAGEMENT_API: { BASE_URL: Te, ENDPOINTS: { EVENT_REGISTRATIONS: Oe } } } } = b;
|
|
10780
10780
|
var he = { create: async (I) => {
|
|
10781
10781
|
try {
|
|
10782
10782
|
await W().post(`${Te}${Oe}`, I);
|
|
10783
|
-
} catch (
|
|
10784
|
-
const L = await U(
|
|
10783
|
+
} catch (k) {
|
|
10784
|
+
const L = await U(k);
|
|
10785
10785
|
throw new Error(L);
|
|
10786
10786
|
}
|
|
10787
10787
|
} };
|
|
@@ -10789,57 +10789,57 @@ function mb() {
|
|
|
10789
10789
|
var Pr = { accounts: D, bulkEnrolments: Se, eventRegistrations: he, passwordless: { update: async (I) => {
|
|
10790
10790
|
try {
|
|
10791
10791
|
await W().put(`${Xt}/${encodeURIComponent(I)}${Nr}`);
|
|
10792
|
-
} catch (
|
|
10793
|
-
throw await U(
|
|
10792
|
+
} catch (k) {
|
|
10793
|
+
throw await U(k), k;
|
|
10794
10794
|
}
|
|
10795
10795
|
} } };
|
|
10796
10796
|
const { APIS: { PAYMENTS_API: { BASE_URL_V2: Jt, ENDPOINTS: { PRODUCTS: Ir } } } } = b, Lr = `${Jt}${Ir}`;
|
|
10797
|
-
var
|
|
10798
|
-
let
|
|
10797
|
+
var Mr = { products: { list: async (I) => {
|
|
10798
|
+
let k = [], L = I ? { params: I } : { params: {} };
|
|
10799
10799
|
try {
|
|
10800
10800
|
const { data: $ } = await W().get(Lr, L);
|
|
10801
|
-
$ && $.length && (
|
|
10801
|
+
$ && $.length && (k = $);
|
|
10802
10802
|
} catch ($) {
|
|
10803
10803
|
await U($);
|
|
10804
10804
|
}
|
|
10805
|
-
return
|
|
10805
|
+
return k;
|
|
10806
10806
|
} } };
|
|
10807
|
-
const { APIS: { PEOPLE_API: { BASE_URL_V2:
|
|
10807
|
+
const { APIS: { PEOPLE_API: { BASE_URL_V2: kt, ENDPOINTS: { BULK_ENROLMENTS: dn } } } } = b;
|
|
10808
10808
|
var Rt = { list: async (I) => {
|
|
10809
|
-
let
|
|
10809
|
+
let k = [];
|
|
10810
10810
|
try {
|
|
10811
|
-
const { data: L } = await W().get(`${
|
|
10812
|
-
L && L.length && (
|
|
10811
|
+
const { data: L } = await W().get(`${kt}${dn}`, { params: I });
|
|
10812
|
+
L && L.length && (k = L);
|
|
10813
10813
|
} catch (L) {
|
|
10814
10814
|
await U(L);
|
|
10815
10815
|
}
|
|
10816
|
-
return
|
|
10816
|
+
return k;
|
|
10817
10817
|
} }, Kn = h(25);
|
|
10818
|
-
const { OK: Qn, MULTIPLE_CHOICES: Xn, NOT_FOUND: hn, FORBIDDEN:
|
|
10819
|
-
let
|
|
10818
|
+
const { OK: Qn, MULTIPLE_CHOICES: Xn, NOT_FOUND: hn, FORBIDDEN: kr } = Kn.StatusCodes, He = (I) => I >= Qn && I < Xn || I === kr || I === hn, { APIS: { PEOPLE_API: { BASE_URL_V2: Br, ENDPOINTS: { USERS: Fr } } } } = b, Zt = async (I) => {
|
|
10819
|
+
let k = null;
|
|
10820
10820
|
try {
|
|
10821
10821
|
const { data: L } = await W().get(`${Br}${Fr}/${encodeURIComponent(I)}`, { validateStatus: He });
|
|
10822
|
-
L && L.id && (
|
|
10822
|
+
L && L.id && (k = L);
|
|
10823
10823
|
} catch (L) {
|
|
10824
10824
|
await U(L);
|
|
10825
10825
|
}
|
|
10826
|
-
return
|
|
10826
|
+
return k;
|
|
10827
10827
|
}, pn = async (I) => {
|
|
10828
|
-
let
|
|
10828
|
+
let k = [];
|
|
10829
10829
|
try {
|
|
10830
10830
|
if (I && I.length < 2)
|
|
10831
10831
|
throw new Error("users list method requires at least two ids");
|
|
10832
10832
|
const L = I.map((Z) => `ids=${encodeURIComponent(Z)}`).join("&"), $ = await W().get(`${Br}${Fr}?${L}`, { validateStatus: He });
|
|
10833
|
-
$ && $.length && (
|
|
10833
|
+
$ && $.length && (k = $);
|
|
10834
10834
|
} catch (L) {
|
|
10835
10835
|
await U(L);
|
|
10836
10836
|
}
|
|
10837
|
-
return
|
|
10837
|
+
return k;
|
|
10838
10838
|
};
|
|
10839
|
-
var Jn = { read: Zt, update: async (I,
|
|
10839
|
+
var Jn = { read: Zt, update: async (I, k) => {
|
|
10840
10840
|
let L = !1;
|
|
10841
10841
|
try {
|
|
10842
|
-
const { data: $ } = await W().put(`${Br}${Fr}/${encodeURIComponent(I)}`,
|
|
10842
|
+
const { data: $ } = await W().put(`${Br}${Fr}/${encodeURIComponent(I)}`, k);
|
|
10843
10843
|
L = !(!$ || !$.id);
|
|
10844
10844
|
} catch ($) {
|
|
10845
10845
|
await U($);
|
|
@@ -10847,16 +10847,16 @@ function mb() {
|
|
|
10847
10847
|
return L;
|
|
10848
10848
|
}, list: pn };
|
|
10849
10849
|
const { APIS: { PEOPLE_API: { BASE_URL_V2: ze, ENDPOINTS: { USERS: Zn, USER_LIKES: ei } } }, USERS: { MYSELF: ti } } = b, ri = `${ze}${Zn}/${ti}${ei}`, Dr = async (I) => {
|
|
10850
|
-
let
|
|
10850
|
+
let k = [], L = I ? { params: I } : { params: {} };
|
|
10851
10851
|
try {
|
|
10852
10852
|
const { data: $ } = await W().get(ri, L);
|
|
10853
|
-
$ && $.length && (
|
|
10853
|
+
$ && $.length && (k = $);
|
|
10854
10854
|
} catch ($) {
|
|
10855
10855
|
await U($);
|
|
10856
10856
|
}
|
|
10857
|
-
return
|
|
10857
|
+
return k;
|
|
10858
10858
|
};
|
|
10859
|
-
var nt = { list: Dr }, ni = { authors: { readQuestionAuthors: async (I,
|
|
10859
|
+
var nt = { list: Dr }, ni = { authors: { readQuestionAuthors: async (I, k, L) => {
|
|
10860
10860
|
try {
|
|
10861
10861
|
if (I.author = await Zt(I.authorId), I.answers && I.answers.length && !L.ignoreAnswersAuthors) {
|
|
10862
10862
|
I.answers.sort((Z, Ae) => new Date(Ae.updatedAt) - new Date(Z.updatedAt)), I.totalAnswers = I.answers.length;
|
|
@@ -10867,7 +10867,7 @@ function mb() {
|
|
|
10867
10867
|
}
|
|
10868
10868
|
for (let Z of $) {
|
|
10869
10869
|
Z.author = Z.authorId && await Zt(Z.authorId) || {};
|
|
10870
|
-
const [Ae] =
|
|
10870
|
+
const [Ae] = k ? await Dr({ contentType: b.CONTENTFUL.ANSWERS.TYPE, contentSlug: Z.slug }) : [null];
|
|
10871
10871
|
Z.userLiked = !!Ae;
|
|
10872
10872
|
}
|
|
10873
10873
|
I.answers = $;
|
|
@@ -10878,152 +10878,152 @@ function mb() {
|
|
|
10878
10878
|
throw await U($), new Error(`Cannot read authors for question: ${$.message}`);
|
|
10879
10879
|
}
|
|
10880
10880
|
}, readAuthors: async (I = []) => {
|
|
10881
|
-
let
|
|
10881
|
+
let k = [];
|
|
10882
10882
|
try {
|
|
10883
10883
|
if (Array.isArray(I) === !1)
|
|
10884
10884
|
throw new Error("authorIds is not an array!");
|
|
10885
10885
|
if (I && I.length === 1) {
|
|
10886
10886
|
const L = await Zt(I[0]);
|
|
10887
|
-
L &&
|
|
10887
|
+
L && k.push(L);
|
|
10888
10888
|
} else if (I && I.length > 1) {
|
|
10889
10889
|
const L = await pn(I);
|
|
10890
|
-
L && L.length > 0 && (
|
|
10890
|
+
L && L.length > 0 && (k = L);
|
|
10891
10891
|
}
|
|
10892
10892
|
} catch (L) {
|
|
10893
10893
|
throw await U(L), new Error(`Cannot read authors: ${L.message}`);
|
|
10894
10894
|
}
|
|
10895
|
-
return
|
|
10895
|
+
return k;
|
|
10896
10896
|
} } };
|
|
10897
10897
|
const { APIS: { PEOPLE_API: { BASE_URL: ii, ENDPOINTS: { REGISTRATIONS: oi } } } } = b;
|
|
10898
10898
|
var ai = { list: async (I) => {
|
|
10899
|
-
let
|
|
10899
|
+
let k = [];
|
|
10900
10900
|
try {
|
|
10901
10901
|
const { data: L } = await W().get(`${ii}${oi}`, { params: I });
|
|
10902
|
-
L && L.length && (
|
|
10902
|
+
L && L.length && (k = L);
|
|
10903
10903
|
} catch (L) {
|
|
10904
10904
|
await U(L);
|
|
10905
10905
|
}
|
|
10906
|
-
return
|
|
10906
|
+
return k;
|
|
10907
10907
|
} };
|
|
10908
10908
|
const { APIS: { PEOPLE_API: { BASE_URL_V2: si, ENDPOINTS: { USERS: fr, USER_COURSES: mn } } }, USERS: { MYSELF: dr } } = b, dt = `${si}${fr}/${dr}${mn}`;
|
|
10909
10909
|
var Ur = { create: async (I) => {
|
|
10910
10910
|
try {
|
|
10911
10911
|
await W().post(dt, I);
|
|
10912
|
-
} catch (
|
|
10913
|
-
await U(
|
|
10912
|
+
} catch (k) {
|
|
10913
|
+
await U(k);
|
|
10914
10914
|
}
|
|
10915
10915
|
}, list: async (I) => {
|
|
10916
|
-
let
|
|
10916
|
+
let k = [], L = I ? { params: I } : { params: {} };
|
|
10917
10917
|
try {
|
|
10918
10918
|
const { data: $ } = await W().get(dt, L);
|
|
10919
|
-
$ && $.length && (
|
|
10919
|
+
$ && $.length && (k = $);
|
|
10920
10920
|
} catch ($) {
|
|
10921
10921
|
await U($);
|
|
10922
10922
|
}
|
|
10923
|
-
return
|
|
10924
|
-
}, update: async (I,
|
|
10923
|
+
return k;
|
|
10924
|
+
}, update: async (I, k) => {
|
|
10925
10925
|
try {
|
|
10926
|
-
await W().put(`${dt}/${I}`,
|
|
10926
|
+
await W().put(`${dt}/${I}`, k);
|
|
10927
10927
|
} catch (L) {
|
|
10928
10928
|
await U(L);
|
|
10929
10929
|
}
|
|
10930
10930
|
} };
|
|
10931
10931
|
const { APIS: { PEOPLE_API: { BASE_URL_V2: ci, ENDPOINTS: { USERS: ui, USER_EVENTS: li } } }, USERS: { MYSELF: fi } } = b, di = `${ci}${ui}/${fi}${li}`;
|
|
10932
10932
|
var hr = { list: async (I) => {
|
|
10933
|
-
let
|
|
10933
|
+
let k = [], L = I ? { params: I } : { params: {} };
|
|
10934
10934
|
try {
|
|
10935
10935
|
const { data: $ } = await W().get(di, L);
|
|
10936
|
-
$ && $.length && (
|
|
10936
|
+
$ && $.length && (k = $);
|
|
10937
10937
|
} catch ($) {
|
|
10938
10938
|
await U($);
|
|
10939
10939
|
}
|
|
10940
|
-
return
|
|
10940
|
+
return k;
|
|
10941
10941
|
} };
|
|
10942
10942
|
const { APIS: { PEOPLE_API: { BASE_URL_V2: $r, ENDPOINTS: { USERS: er, USER_LESSONS: gn } } }, USERS: { MYSELF: yn } } = b, vn = `${$r}${er}/${yn}${gn}`;
|
|
10943
10943
|
var hi = { create: async (I) => {
|
|
10944
|
-
let
|
|
10944
|
+
let k = null;
|
|
10945
10945
|
try {
|
|
10946
|
-
|
|
10946
|
+
k = await W().post(vn, I);
|
|
10947
10947
|
} catch (L) {
|
|
10948
10948
|
await U(L);
|
|
10949
10949
|
}
|
|
10950
|
-
return
|
|
10950
|
+
return k;
|
|
10951
10951
|
}, list: async (I) => {
|
|
10952
|
-
let
|
|
10952
|
+
let k = [], L = I ? { params: I } : { params: {} };
|
|
10953
10953
|
try {
|
|
10954
10954
|
const { data: $ } = await W().get(vn, L);
|
|
10955
|
-
$ && $.length && (
|
|
10955
|
+
$ && $.length && (k = $);
|
|
10956
10956
|
} catch ($) {
|
|
10957
10957
|
await U($);
|
|
10958
10958
|
}
|
|
10959
|
-
return
|
|
10959
|
+
return k;
|
|
10960
10960
|
} };
|
|
10961
10961
|
const { APIS: { PEOPLE_API: { BASE_URL_V2: pi, ENDPOINTS: { USERS: mi, USER_PRODUCTS: Hr } } }, USERS: { MYSELF: gi } } = b, jr = `${pi}${mi}/${gi}${Hr}`;
|
|
10962
10962
|
var tr = { create: async (I) => {
|
|
10963
|
-
let
|
|
10963
|
+
let k = null;
|
|
10964
10964
|
try {
|
|
10965
|
-
|
|
10965
|
+
k = await W().post(jr, I);
|
|
10966
10966
|
} catch (L) {
|
|
10967
10967
|
await U(L);
|
|
10968
10968
|
}
|
|
10969
|
-
return
|
|
10969
|
+
return k;
|
|
10970
10970
|
}, list: async (I) => {
|
|
10971
|
-
let
|
|
10971
|
+
let k = [], L = I ? { params: I } : { params: {} };
|
|
10972
10972
|
try {
|
|
10973
10973
|
const { data: $ } = await W().get(jr, L);
|
|
10974
|
-
$ && $.length && (
|
|
10974
|
+
$ && $.length && (k = $);
|
|
10975
10975
|
} catch ($) {
|
|
10976
10976
|
await U($);
|
|
10977
10977
|
}
|
|
10978
|
-
return
|
|
10979
|
-
}, update: async (I,
|
|
10978
|
+
return k;
|
|
10979
|
+
}, update: async (I, k) => {
|
|
10980
10980
|
try {
|
|
10981
|
-
await W().put(`${jr}/${I}`,
|
|
10981
|
+
await W().put(`${jr}/${I}`, k);
|
|
10982
10982
|
} catch (L) {
|
|
10983
10983
|
await U(L);
|
|
10984
10984
|
}
|
|
10985
10985
|
} };
|
|
10986
10986
|
const { APIS: { PEOPLE_API: { BASE_URL_V2: yt, ENDPOINTS: { USERS: Nt, USER_RATINGS: Pt } } }, USERS: { MYSELF: yi } } = b, vt = `${yt}${Nt}/${yi}${Pt}`;
|
|
10987
10987
|
var Bt = { bulkEnrolments: Rt, handlers: ni, registrations: ai, users: Jn, userCourses: Ur, userEvents: hr, userLessons: hi, userLikes: nt, userProducts: tr, userRatings: { create: async (I) => {
|
|
10988
|
-
let
|
|
10988
|
+
let k = null;
|
|
10989
10989
|
try {
|
|
10990
10990
|
const { data: L } = await W().post(vt, I);
|
|
10991
|
-
L != null && L.id && (
|
|
10991
|
+
L != null && L.id && (k = L);
|
|
10992
10992
|
} catch (L) {
|
|
10993
10993
|
await U(L);
|
|
10994
10994
|
}
|
|
10995
|
-
return
|
|
10996
|
-
}, update: async (I,
|
|
10995
|
+
return k;
|
|
10996
|
+
}, update: async (I, k) => {
|
|
10997
10997
|
try {
|
|
10998
|
-
await W().put(`${vt}/${I}`,
|
|
10998
|
+
await W().put(`${vt}/${I}`, k);
|
|
10999
10999
|
} catch (L) {
|
|
11000
11000
|
await U(L);
|
|
11001
11001
|
}
|
|
11002
11002
|
} } };
|
|
11003
11003
|
const { APIS: { PEOPLE_ENGAGEMENT_API: { BASE_URL: vi, ENDPOINTS: { ENQUIRY_EMAILS: _i } } } } = b;
|
|
11004
11004
|
var Ei = { create: async (I) => {
|
|
11005
|
-
let
|
|
11005
|
+
let k = null;
|
|
11006
11006
|
try {
|
|
11007
11007
|
const { data: L } = await W().post(`${vi}${_i}`, I);
|
|
11008
|
-
L && (
|
|
11008
|
+
L && (k = L);
|
|
11009
11009
|
} catch (L) {
|
|
11010
11010
|
await U(L);
|
|
11011
11011
|
}
|
|
11012
|
-
return
|
|
11012
|
+
return k;
|
|
11013
11013
|
} }, _n = { forms: { sendEnquiryEmails: async (I) => {
|
|
11014
|
-
let
|
|
11014
|
+
let k = null;
|
|
11015
11015
|
try {
|
|
11016
11016
|
const { emailIds: L } = q;
|
|
11017
|
-
|
|
11017
|
+
k = await mr.emails.create({ ...L, ...I });
|
|
11018
11018
|
} catch (L) {
|
|
11019
11019
|
await U(L);
|
|
11020
11020
|
}
|
|
11021
|
-
return
|
|
11021
|
+
return k;
|
|
11022
11022
|
} } };
|
|
11023
11023
|
const { APIS: { PEOPLE_ENGAGEMENT_API: { BASE_URL: et, ENDPOINTS: { USERS: En, USER_PROPERTIES: bn } } }, USERS: { MYSELF: pr } } = b;
|
|
11024
|
-
var mr = { emails: Ei, handlers: _n, userProperties: { update: async (I,
|
|
11024
|
+
var mr = { emails: Ei, handlers: _n, userProperties: { update: async (I, k) => {
|
|
11025
11025
|
try {
|
|
11026
|
-
await W().put(`${et}${En}/${pr}${bn}/${I}`,
|
|
11026
|
+
await W().put(`${et}${En}/${pr}${bn}/${I}`, k);
|
|
11027
11027
|
} catch (L) {
|
|
11028
11028
|
await U(L);
|
|
11029
11029
|
}
|
|
@@ -11031,35 +11031,35 @@ function mb() {
|
|
|
11031
11031
|
const { APIS: { SEARCH_API: { BASE_URL: bi, ENDPOINTS: { SEARCH: wn } } } } = b, qr = `${bi}${wn}`;
|
|
11032
11032
|
var Sn = { ask: async (I) => {
|
|
11033
11033
|
try {
|
|
11034
|
-
let
|
|
11034
|
+
let k = null;
|
|
11035
11035
|
const { data: L } = await W().get(qr, { params: { question: I } });
|
|
11036
|
-
return L != null && L.answer && (L != null && L.references) && (L != null && L.version) && (
|
|
11037
|
-
} catch (
|
|
11038
|
-
const L = await U(
|
|
11036
|
+
return L != null && L.answer && (L != null && L.references) && (L != null && L.version) && (k = L), k;
|
|
11037
|
+
} catch (k) {
|
|
11038
|
+
const L = await U(k);
|
|
11039
11039
|
throw new Error(L);
|
|
11040
11040
|
}
|
|
11041
|
-
}, stream: (I,
|
|
11041
|
+
}, stream: (I, k, L) => {
|
|
11042
11042
|
const $ = (0, gr.io)(void 0, { path: "/api/search-api/web-sockets" });
|
|
11043
11043
|
function Z() {
|
|
11044
11044
|
$.emit("search", { question: I });
|
|
11045
11045
|
}
|
|
11046
11046
|
function Ae(Fe) {
|
|
11047
|
-
L(Fe),
|
|
11047
|
+
L(Fe), Me(), $.disconnect();
|
|
11048
11048
|
}
|
|
11049
|
-
function
|
|
11050
|
-
$.off("connect", Z), $.off("update",
|
|
11049
|
+
function Me() {
|
|
11050
|
+
$.off("connect", Z), $.off("update", k), $.off("result", Ae);
|
|
11051
11051
|
}
|
|
11052
|
-
return $.on("connect", Z), $.on("update",
|
|
11052
|
+
return $.on("connect", Z), $.on("update", k), $.on("result", Ae), Me;
|
|
11053
11053
|
} };
|
|
11054
11054
|
const { CONTENTFUL: wt } = b, { CARD_TYPES: Gr } = wt.CAROUSELS;
|
|
11055
|
-
var On = { read: async (I,
|
|
11055
|
+
var On = { read: async (I, k) => {
|
|
11056
11056
|
try {
|
|
11057
|
-
if (!
|
|
11057
|
+
if (!k || !k.sys || !k.sys.id)
|
|
11058
11058
|
throw new Error("Invalid link to card");
|
|
11059
11059
|
if (!I || !Gr[I])
|
|
11060
11060
|
throw new Error("Unsupported card content type");
|
|
11061
11061
|
const { INCLUDE: L, SELECT: $ } = Gr[I];
|
|
11062
|
-
return await (0, l.getEntry)({ content_type: I, "sys.id":
|
|
11062
|
+
return await (0, l.getEntry)({ content_type: I, "sys.id": k.sys.id, include: L, select: $ }, { assetDetails: !0 });
|
|
11063
11063
|
} catch (L) {
|
|
11064
11064
|
throw await U(L), new Error(`Cannot read carousel card: ${L.message}`);
|
|
11065
11065
|
}
|
|
@@ -11068,86 +11068,86 @@ function mb() {
|
|
|
11068
11068
|
var H = { read: async (I) => {
|
|
11069
11069
|
try {
|
|
11070
11070
|
return await (0, l.getEntry)({ content_type: R, "fields.slug": I, include: y, select: O });
|
|
11071
|
-
} catch (
|
|
11072
|
-
throw await U(
|
|
11071
|
+
} catch (k) {
|
|
11072
|
+
throw await U(k), new Error(`Cannot read editorial page: ${k.message}`);
|
|
11073
11073
|
}
|
|
11074
11074
|
} };
|
|
11075
11075
|
const { CONTENTFUL: fe } = b, { TYPE: se, ORDER: pe, SELECT: me, SKIP: Be, LIMIT: be, INCLUDE: Ye } = fe.QUESTIONS;
|
|
11076
11076
|
var tt = { read: async (I) => {
|
|
11077
11077
|
try {
|
|
11078
11078
|
return await (0, l.getEntry)({ content_type: se, "fields.slug": I, include: 2, select: me });
|
|
11079
|
-
} catch (
|
|
11080
|
-
throw await U(
|
|
11079
|
+
} catch (k) {
|
|
11080
|
+
throw await U(k), new Error(`Cannot read question: ${k.message}`);
|
|
11081
11081
|
}
|
|
11082
11082
|
}, list: async (I = {}) => {
|
|
11083
11083
|
try {
|
|
11084
11084
|
return await (0, l.getEntries)({ content_type: se, include: Ye, limit: be, order: pe, select: me, skip: Be, ...I });
|
|
11085
|
-
} catch (
|
|
11086
|
-
throw await U(
|
|
11085
|
+
} catch (k) {
|
|
11086
|
+
throw await U(k), new Error(`Cannot list questions: ${k.message}`);
|
|
11087
11087
|
}
|
|
11088
|
-
} }, Ue = async (I,
|
|
11088
|
+
} }, Ue = async (I, k, L = { ignoreAnswersAuthors: !1 }) => {
|
|
11089
11089
|
try {
|
|
11090
11090
|
let $ = {};
|
|
11091
|
-
return $ = await tt.read(I), $ = await Bt.handlers.authors.readQuestionAuthors($,
|
|
11091
|
+
return $ = await tt.read(I), $ = await Bt.handlers.authors.readQuestionAuthors($, k, L), $;
|
|
11092
11092
|
} catch ($) {
|
|
11093
11093
|
throw await U($), new Error(`Cannot build question: ${$.message}`);
|
|
11094
11094
|
}
|
|
11095
11095
|
};
|
|
11096
11096
|
const { ARTICLES: { TYPE: Ke }, COURSES: { TYPE: je }, EVENTS: { TYPE: Ft }, LISTS: { TYPE: It }, QUESTIONS: { TYPE: rr }, LEARNING_HUB: { TYPE: ho } } = b.CONTENTFUL, Dt = (I) => I && I.url ? (Object.assign(I, { aspect: "responsiveCard", query: "q=90&fit=fill" }), I) : null, yr = { [Ke]: async (I) => {
|
|
11097
|
-
const { authorIds:
|
|
11098
|
-
return { banner: Dt($), contributors: Ut, publishedDate: Z, readingTime: Ae, slug:
|
|
11099
|
-
}, [je]: async (I,
|
|
11100
|
-
const { banner: L, freeCourse: $, partnershipDetails: Z, slug: Ae, title:
|
|
11097
|
+
const { authorIds: k, authorTag: L, image: $, publishedDate: Z, readingTime: Ae, slug: Me, title: Fe } = I, _t = await Bt.handlers.authors.readAuthors(k), Ut = _t && _t.length ? _t : L ? [L] : null;
|
|
11098
|
+
return { banner: Dt($), contributors: Ut, publishedDate: Z, readingTime: Ae, slug: Me, title: Fe };
|
|
11099
|
+
}, [je]: async (I, k) => {
|
|
11100
|
+
const { banner: L, freeCourse: $, partnershipDetails: Z, slug: Ae, title: Me, registered: Fe } = I, _t = { banner: Dt(L), slug: Ae, title: Me, pill: $ ? "free" : "premium", registered: !!Fe };
|
|
11101
11101
|
if (Z) {
|
|
11102
11102
|
const { partners: Ut } = Z;
|
|
11103
11103
|
_t.partner = Ut && Ut.length && Z.partners[0];
|
|
11104
11104
|
}
|
|
11105
|
-
if (Fe === void 0 &&
|
|
11105
|
+
if (Fe === void 0 && k) {
|
|
11106
11106
|
const [Ut] = await Bt.userProducts.list({ courseSlug: Ae, isEnrolled: !0, scope: "active" });
|
|
11107
11107
|
_t.registered = !!Ut;
|
|
11108
11108
|
}
|
|
11109
11109
|
return _t;
|
|
11110
|
-
}, [Ft]: async (I,
|
|
11111
|
-
const { bannerImage: L, defaultStartDate: $, isEventOngoing: Z, slug: Ae, speakers:
|
|
11112
|
-
if (
|
|
11113
|
-
for (const po of
|
|
11110
|
+
}, [Ft]: async (I, k) => {
|
|
11111
|
+
const { bannerImage: L, defaultStartDate: $, isEventOngoing: Z, slug: Ae, speakers: Me, title: Fe, registered: _t } = I, Ut = new Date($), Fg = !!Ut && Ut < /* @__PURE__ */ new Date();
|
|
11112
|
+
if (Me && Me.length)
|
|
11113
|
+
for (const po of Me)
|
|
11114
11114
|
po.image = (_a = po.image) && _a.url ? `${_a.url}?w=100&h=100&fit=thumb&f=center` : null;
|
|
11115
11115
|
var _a;
|
|
11116
|
-
const wu = { banner: Dt(L), dateHasPassed: Fg, title: Fe, slug: Ae, isOngoingEvent: Z, contributors:
|
|
11117
|
-
if (_t === void 0 &&
|
|
11116
|
+
const wu = { banner: Dt(L), dateHasPassed: Fg, title: Fe, slug: Ae, isOngoingEvent: Z, contributors: Me, startDate: Ut, registered: !!_t };
|
|
11117
|
+
if (_t === void 0 && k) {
|
|
11118
11118
|
const [po] = await Bt.userEvents.list({ eventSlug: Ae });
|
|
11119
11119
|
wu.registered = !!po;
|
|
11120
11120
|
}
|
|
11121
11121
|
return wu;
|
|
11122
11122
|
}, [It]: async (I) => {
|
|
11123
|
-
const { hero:
|
|
11124
|
-
return { banner: Dt(
|
|
11123
|
+
const { hero: k, slug: L, title: $ } = I;
|
|
11124
|
+
return { banner: Dt(k), slug: L, title: $ };
|
|
11125
11125
|
}, [rr]: async (I) => {
|
|
11126
|
-
const { answers:
|
|
11127
|
-
let
|
|
11126
|
+
const { answers: k, authorId: L, createdAt: $, slug: Z, title: Ae } = I;
|
|
11127
|
+
let Me = null;
|
|
11128
11128
|
if (L) {
|
|
11129
11129
|
const Fe = await Bt.users.read(L);
|
|
11130
|
-
Fe && (
|
|
11130
|
+
Fe && (Me = Fe);
|
|
11131
11131
|
}
|
|
11132
|
-
return { answers:
|
|
11132
|
+
return { answers: k && k.length ? k.length : 0, contributors: Me ? [Me] : [], createdAt: $, slug: Z, title: Ae };
|
|
11133
11133
|
}, [ho]: (I) => {
|
|
11134
|
-
const { bannerSection:
|
|
11135
|
-
return { banner: Dt(
|
|
11134
|
+
const { bannerSection: k, customLabel: L, slug: $, title: Z } = I;
|
|
11135
|
+
return { banner: Dt(k.image), slug: $, title: Z, customLabel: L };
|
|
11136
11136
|
}, people: (I) => {
|
|
11137
|
-
const { id:
|
|
11138
|
-
return { profile: Ae, slug:
|
|
11137
|
+
const { id: k, name: L, jobTitle: $, location: Z, image: Ae } = I;
|
|
11138
|
+
return { profile: Ae, slug: k, title: L, text: $, secondaryText: Z };
|
|
11139
11139
|
} };
|
|
11140
|
-
var Ig = async ({ contentType: I, ...
|
|
11140
|
+
var Ig = async ({ contentType: I, ...k } = {}, L) => {
|
|
11141
11141
|
try {
|
|
11142
11142
|
if (!yr[I])
|
|
11143
11143
|
throw new Error("Content type not supported");
|
|
11144
11144
|
if (typeof yr[I] != "function")
|
|
11145
11145
|
throw new Error("No builder function for content type");
|
|
11146
|
-
return I !== "people" &&
|
|
11146
|
+
return I !== "people" && k.sys && k.sys.type && k.sys.type === "Link" && (k = await On.read(I, k)), { contentType: I, ...await yr[I](k, L) };
|
|
11147
11147
|
} catch ($) {
|
|
11148
11148
|
throw await U($), new Error(`Cannot build carousel card: ${$.message}`);
|
|
11149
11149
|
}
|
|
11150
|
-
}, Lg = async (I,
|
|
11150
|
+
}, Lg = async (I, k, L = {}) => {
|
|
11151
11151
|
try {
|
|
11152
11152
|
if (!I.replies || I.replies.length === 0)
|
|
11153
11153
|
return I.replies = [], I;
|
|
@@ -11163,33 +11163,33 @@ function mb() {
|
|
|
11163
11163
|
continue;
|
|
11164
11164
|
}
|
|
11165
11165
|
Z.author = Z.authorId && await Zt(Z.authorId) || {};
|
|
11166
|
-
const [Ae] =
|
|
11166
|
+
const [Ae] = k ? await Dr({ contentType: b.CONTENTFUL.REPLIES.TYPE, contentSlug: Z.slug }) : [null];
|
|
11167
11167
|
Z.userLiked = !!Ae;
|
|
11168
11168
|
}
|
|
11169
11169
|
return I.replies = $, I;
|
|
11170
11170
|
} catch ($) {
|
|
11171
11171
|
throw await U($), new Error(`Cannot build replies for answer: ${$.message}`);
|
|
11172
11172
|
}
|
|
11173
|
-
},
|
|
11174
|
-
const
|
|
11175
|
-
function Bg({ contentContext: I = null, errorsContext:
|
|
11173
|
+
}, Mg = h(408);
|
|
11174
|
+
const kg = (I) => I && Mg.Buffer.from(I, "base64").toString("ascii");
|
|
11175
|
+
function Bg({ contentContext: I = null, errorsContext: k = null, gtmContext: L = null, origin: $ }) {
|
|
11176
11176
|
try {
|
|
11177
11177
|
const Z = ((Ae) => {
|
|
11178
|
-
let
|
|
11179
|
-
Ae ?
|
|
11178
|
+
let Me = null;
|
|
11179
|
+
Ae ? Me = Ae : typeof window < "u" && (Me = window.origin || window.location.origin), Me || new Error("Cannot select environment: Website not defined");
|
|
11180
11180
|
let Fe = null;
|
|
11181
|
-
const _t =
|
|
11182
|
-
return _t ? Fe = _t[1].split(A)[0] :
|
|
11181
|
+
const _t = Me.match(E);
|
|
11182
|
+
return _t ? Fe = _t[1].split(A)[0] : Me === T ? Fe = w : Me.includes(_) && (Fe = N), Fe || new Error(`Cannot select environment: No rule for website ${Me}`), Fe;
|
|
11183
11183
|
})($);
|
|
11184
|
-
return I && (0, l.setContext)(Object.assign({}, I, { environment: Z })),
|
|
11185
|
-
const
|
|
11184
|
+
return I && (0, l.setContext)(Object.assign({}, I, { environment: Z })), k && (0, p.setContext)(Object.assign({}, k, { environment: Z })), L && ((0, m.setContext)(Object.assign({}, L, { environment: Z })), (0, m.setupGTM)()), (({ environment: Ae }) => {
|
|
11185
|
+
const Me = ((Fe) => {
|
|
11186
11186
|
if (!Fe)
|
|
11187
11187
|
throw new Error("Cannot map environment: Environment not defined");
|
|
11188
11188
|
if (!F[Fe])
|
|
11189
11189
|
throw new Error(`Cannot map environment: No mapping found for environment ${Fe}`);
|
|
11190
11190
|
return F[Fe];
|
|
11191
11191
|
})(Ae);
|
|
11192
|
-
q.emailIds = B[
|
|
11192
|
+
q.emailIds = B[Me];
|
|
11193
11193
|
})(Object.assign({}, { environment: Z })), Z;
|
|
11194
11194
|
} catch (Z) {
|
|
11195
11195
|
console.warn(`Cannot load SDK: ${Z.message}`);
|
|
@@ -11352,7 +11352,7 @@ const la = (e = !0, t = !1) => {
|
|
|
11352
11352
|
var Zo = { exports: {} };
|
|
11353
11353
|
Zo.exports;
|
|
11354
11354
|
(function(e, t) {
|
|
11355
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", s = "[object Array]", a = "[object Boolean]", c = "[object Date]", f = "[object Error]", u = "[object Function]", h = "[object GeneratorFunction]", d = "[object Map]", l = "[object Number]", p = "[object Object]", m = "[object Promise]", b = "[object RegExp]", T = "[object Set]", _ = "[object String]", E = "[object Symbol]", A = "[object WeakMap]", w = "[object ArrayBuffer]", N = "[object DataView]", F = "[object Float32Array]", B = "[object Float64Array]", q = "[object Int8Array]", G = "[object Int16Array]", W = "[object Int32Array]", U = "[object Uint8Array]", z = "[object Uint8ClampedArray]", ee = "[object Uint16Array]", Y = "[object Uint32Array]",
|
|
11355
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", s = "[object Array]", a = "[object Boolean]", c = "[object Date]", f = "[object Error]", u = "[object Function]", h = "[object GeneratorFunction]", d = "[object Map]", l = "[object Number]", p = "[object Object]", m = "[object Promise]", b = "[object RegExp]", T = "[object Set]", _ = "[object String]", E = "[object Symbol]", A = "[object WeakMap]", w = "[object ArrayBuffer]", N = "[object DataView]", F = "[object Float32Array]", B = "[object Float64Array]", q = "[object Int8Array]", G = "[object Int16Array]", W = "[object Int32Array]", U = "[object Uint8Array]", z = "[object Uint8ClampedArray]", ee = "[object Uint16Array]", Y = "[object Uint32Array]", M = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, X = /^\[object .+?Constructor\]$/, de = /^(?:0|[1-9]\d*)$/, Q = {};
|
|
11356
11356
|
Q[o] = Q[s] = Q[w] = Q[N] = Q[a] = Q[c] = Q[F] = Q[B] = Q[q] = Q[G] = Q[W] = Q[d] = Q[l] = Q[p] = Q[b] = Q[T] = Q[_] = Q[E] = Q[U] = Q[z] = Q[ee] = Q[Y] = !0, Q[f] = Q[u] = Q[A] = !1;
|
|
11357
11357
|
var J = typeof ue == "object" && ue && ue.Object === Object && ue, te = typeof self == "object" && self && self.Object === Object && self, ce = J || te || Function("return this")(), $e = t && !t.nodeType && t, K = $e && !0 && e && !e.nodeType && e, oe = K && K.exports === $e;
|
|
11358
11358
|
function Le(y, O) {
|
|
@@ -11405,7 +11405,7 @@ Zo.exports;
|
|
|
11405
11405
|
return y(O(R));
|
|
11406
11406
|
};
|
|
11407
11407
|
}
|
|
11408
|
-
function
|
|
11408
|
+
function Mt(y) {
|
|
11409
11409
|
var O = -1, R = Array(y.size);
|
|
11410
11410
|
return y.forEach(function(H) {
|
|
11411
11411
|
R[++O] = H;
|
|
@@ -11415,8 +11415,8 @@ Zo.exports;
|
|
|
11415
11415
|
var y = /[^.]+$/.exec(bt && bt.keys && bt.keys.IE_PROTO || "");
|
|
11416
11416
|
return y ? "Symbol(src)_1." + y : "";
|
|
11417
11417
|
}(), Ct = Cr.toString, st = xt.hasOwnProperty, Ze = xt.toString, Rr = RegExp(
|
|
11418
|
-
"^" + Ct.call(st).replace(
|
|
11419
|
-
), S = oe ? ce.Buffer : void 0, g = ce.Symbol, v = ce.Uint8Array, x = Qt(Object.getPrototypeOf, Object), P = Object.create, D = xt.propertyIsEnumerable, j = Et.splice, le = Object.getOwnPropertySymbols, Se = S ? S.isBuffer : void 0, Te = Qt(Object.keys, Object), Oe = yt(ce, "DataView"), he = yt(ce, "Map"), gt = yt(ce, "Promise"), lr = yt(ce, "Set"), Nr = yt(ce, "WeakMap"), Xt = yt(Object, "create"), Pr = et(Oe), Jt = et(he), Ir = et(gt), Lr = et(lr),
|
|
11418
|
+
"^" + Ct.call(st).replace(M, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11419
|
+
), S = oe ? ce.Buffer : void 0, g = ce.Symbol, v = ce.Uint8Array, x = Qt(Object.getPrototypeOf, Object), P = Object.create, D = xt.propertyIsEnumerable, j = Et.splice, le = Object.getOwnPropertySymbols, Se = S ? S.isBuffer : void 0, Te = Qt(Object.keys, Object), Oe = yt(ce, "DataView"), he = yt(ce, "Map"), gt = yt(ce, "Promise"), lr = yt(ce, "Set"), Nr = yt(ce, "WeakMap"), Xt = yt(Object, "create"), Pr = et(Oe), Jt = et(he), Ir = et(gt), Lr = et(lr), Mr = et(Nr), kt = g ? g.prototype : void 0, dn = kt ? kt.valueOf : void 0;
|
|
11420
11420
|
function Rt(y) {
|
|
11421
11421
|
var O = -1, R = y ? y.length : 0;
|
|
11422
11422
|
for (this.clear(); ++O < R; ) {
|
|
@@ -11442,11 +11442,11 @@ Zo.exports;
|
|
|
11442
11442
|
var O = this.__data__;
|
|
11443
11443
|
return Xt ? O[y] !== void 0 : st.call(O, y);
|
|
11444
11444
|
}
|
|
11445
|
-
function
|
|
11445
|
+
function kr(y, O) {
|
|
11446
11446
|
var R = this.__data__;
|
|
11447
11447
|
return R[y] = Xt && O === void 0 ? n : O, this;
|
|
11448
11448
|
}
|
|
11449
|
-
Rt.prototype.clear = Kn, Rt.prototype.delete = Qn, Rt.prototype.get = Xn, Rt.prototype.has = hn, Rt.prototype.set =
|
|
11449
|
+
Rt.prototype.clear = Kn, Rt.prototype.delete = Qn, Rt.prototype.get = Xn, Rt.prototype.has = hn, Rt.prototype.set = kr;
|
|
11450
11450
|
function He(y) {
|
|
11451
11451
|
var O = -1, R = y ? y.length : 0;
|
|
11452
11452
|
for (this.clear(); ++O < R; ) {
|
|
@@ -11630,7 +11630,7 @@ Zo.exports;
|
|
|
11630
11630
|
return O.lastIndex = y.lastIndex, O;
|
|
11631
11631
|
}
|
|
11632
11632
|
function vn(y, O, R) {
|
|
11633
|
-
var H = O ? R(
|
|
11633
|
+
var H = O ? R(Mt(y), !0) : Mt(y);
|
|
11634
11634
|
return Ot(H, Re, new y.constructor());
|
|
11635
11635
|
}
|
|
11636
11636
|
function hi(y) {
|
|
@@ -11681,7 +11681,7 @@ Zo.exports;
|
|
|
11681
11681
|
return m;
|
|
11682
11682
|
case Lr:
|
|
11683
11683
|
return T;
|
|
11684
|
-
case
|
|
11684
|
+
case Mr:
|
|
11685
11685
|
return A;
|
|
11686
11686
|
}
|
|
11687
11687
|
return O;
|
|
@@ -11797,7 +11797,7 @@ Zo.exports;
|
|
|
11797
11797
|
})(Zo, Zo.exports);
|
|
11798
11798
|
var _b = Zo.exports;
|
|
11799
11799
|
const Eb = /* @__PURE__ */ zt(_b);
|
|
11800
|
-
var bb = "Expected a function", rm = "__lodash_hash_undefined__", nm = 1 / 0, wb = 9007199254740991, Sb = "[object Function]", Tb = "[object GeneratorFunction]", Ob = "[object Symbol]", Ab = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xb = /^\w*$/, Cb = /^\./, Rb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Nb = /[\\^$.*+?()[\]{}|]/g, Pb = /\\(\\)?/g, Ib = /^\[object .+?Constructor\]$/, Lb = /^(?:0|[1-9]\d*)$/,
|
|
11800
|
+
var bb = "Expected a function", rm = "__lodash_hash_undefined__", nm = 1 / 0, wb = 9007199254740991, Sb = "[object Function]", Tb = "[object GeneratorFunction]", Ob = "[object Symbol]", Ab = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xb = /^\w*$/, Cb = /^\./, Rb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Nb = /[\\^$.*+?()[\]{}|]/g, Pb = /\\(\\)?/g, Ib = /^\[object .+?Constructor\]$/, Lb = /^(?:0|[1-9]\d*)$/, Mb = typeof ue == "object" && ue && ue.Object === Object && ue, kb = typeof self == "object" && self && self.Object === Object && self, iu = Mb || kb || Function("return this")();
|
|
11801
11801
|
function Bb(e, t) {
|
|
11802
11802
|
return e == null ? void 0 : e[t];
|
|
11803
11803
|
}
|
|
@@ -12129,9 +12129,6 @@ const bw = /* @__PURE__ */ zt(Ew), ww = (e, t) => {
|
|
|
12129
12129
|
discussion_action_response: "response",
|
|
12130
12130
|
discussion_action_reply: "reply",
|
|
12131
12131
|
discussion_action_question: "question",
|
|
12132
|
-
discussion_answer_likes: "{count, plural, =0 {0 likes} one {# like} other {# likes}}",
|
|
12133
|
-
discussion_answer_likes_like: "Like this answer",
|
|
12134
|
-
discussion_answer_likes_unlike: "Unlike answer",
|
|
12135
12132
|
discussion_edited: "Edited",
|
|
12136
12133
|
discussion_delete_title: "Delete {action}",
|
|
12137
12134
|
discussion_delete_text: "<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",
|
|
@@ -12139,9 +12136,6 @@ const bw = /* @__PURE__ */ zt(Ew), ww = (e, t) => {
|
|
|
12139
12136
|
discussion_delete_delete: "Delete",
|
|
12140
12137
|
discussion_delete_error: "We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",
|
|
12141
12138
|
discussion_reply: "Reply",
|
|
12142
|
-
discussion_reply_likes: "{count, plural, =0 {0 likes} one {# like} other {# likes}}",
|
|
12143
|
-
discussion_reply_likes_like: "Like this reply",
|
|
12144
|
-
discussion_reply_likes_unlike: "Unlike reply",
|
|
12145
12139
|
discussion_report_subject: "Report a post on Apolitical",
|
|
12146
12140
|
discussion_report_body: `I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
|
|
12147
12141
|
|
|
@@ -12172,6 +12166,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
12172
12166
|
discussion_likes: "{number, plural, =0 {0 likes} one {# like} other {# likes}}",
|
|
12173
12167
|
discussion_likes_short: "{number}",
|
|
12174
12168
|
discussion_likes_more: "and {number} more...",
|
|
12169
|
+
discussion_likes_like: "Like this {action}",
|
|
12170
|
+
discussion_likes_unlike: "Unlike {action}",
|
|
12175
12171
|
discussion_moreMenu_edit: "Edit",
|
|
12176
12172
|
discussion_moreMenu_delete: "Delete",
|
|
12177
12173
|
discussion_moreMenu_report: "Report",
|
|
@@ -12663,40 +12659,40 @@ var ye;
|
|
|
12663
12659
|
(function(e) {
|
|
12664
12660
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
12665
12661
|
})(ye || (ye = {}));
|
|
12666
|
-
var
|
|
12662
|
+
var ke;
|
|
12667
12663
|
(function(e) {
|
|
12668
12664
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
12669
|
-
})(
|
|
12665
|
+
})(ke || (ke = {}));
|
|
12670
12666
|
var Hn;
|
|
12671
12667
|
(function(e) {
|
|
12672
12668
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
12673
12669
|
})(Hn || (Hn = {}));
|
|
12674
12670
|
function hd(e) {
|
|
12675
|
-
return e.type ===
|
|
12671
|
+
return e.type === ke.literal;
|
|
12676
12672
|
}
|
|
12677
12673
|
function Lw(e) {
|
|
12678
|
-
return e.type ===
|
|
12674
|
+
return e.type === ke.argument;
|
|
12679
12675
|
}
|
|
12680
12676
|
function pm(e) {
|
|
12681
|
-
return e.type ===
|
|
12677
|
+
return e.type === ke.number;
|
|
12682
12678
|
}
|
|
12683
12679
|
function mm(e) {
|
|
12684
|
-
return e.type ===
|
|
12680
|
+
return e.type === ke.date;
|
|
12685
12681
|
}
|
|
12686
12682
|
function gm(e) {
|
|
12687
|
-
return e.type ===
|
|
12683
|
+
return e.type === ke.time;
|
|
12688
12684
|
}
|
|
12689
12685
|
function ym(e) {
|
|
12690
|
-
return e.type ===
|
|
12686
|
+
return e.type === ke.select;
|
|
12691
12687
|
}
|
|
12692
12688
|
function vm(e) {
|
|
12693
|
-
return e.type ===
|
|
12689
|
+
return e.type === ke.plural;
|
|
12694
12690
|
}
|
|
12695
|
-
function
|
|
12696
|
-
return e.type ===
|
|
12691
|
+
function Mw(e) {
|
|
12692
|
+
return e.type === ke.pound;
|
|
12697
12693
|
}
|
|
12698
12694
|
function _m(e) {
|
|
12699
|
-
return e.type ===
|
|
12695
|
+
return e.type === ke.tag;
|
|
12700
12696
|
}
|
|
12701
12697
|
function Em(e) {
|
|
12702
12698
|
return !!(e && typeof e == "object" && e.type === Hn.number);
|
|
@@ -12704,10 +12700,10 @@ function Em(e) {
|
|
|
12704
12700
|
function Oc(e) {
|
|
12705
12701
|
return !!(e && typeof e == "object" && e.type === Hn.dateTime);
|
|
12706
12702
|
}
|
|
12707
|
-
var bm = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
12703
|
+
var bm = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kw = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
12708
12704
|
function Bw(e) {
|
|
12709
12705
|
var t = {};
|
|
12710
|
-
return e.replace(
|
|
12706
|
+
return e.replace(kw, function(r) {
|
|
12711
12707
|
var n = r.length;
|
|
12712
12708
|
switch (r[0]) {
|
|
12713
12709
|
case "G":
|
|
@@ -14489,7 +14485,7 @@ var iS = (
|
|
|
14489
14485
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
14490
14486
|
var a = this.clonePosition();
|
|
14491
14487
|
this.bump(), i.push({
|
|
14492
|
-
type:
|
|
14488
|
+
type: ke.pound,
|
|
14493
14489
|
location: _e(a, this.clonePosition())
|
|
14494
14490
|
});
|
|
14495
14491
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -14517,7 +14513,7 @@ var iS = (
|
|
|
14517
14513
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
14518
14514
|
return {
|
|
14519
14515
|
val: {
|
|
14520
|
-
type:
|
|
14516
|
+
type: ke.literal,
|
|
14521
14517
|
value: "<".concat(i, "/>"),
|
|
14522
14518
|
location: _e(n, this.clonePosition())
|
|
14523
14519
|
},
|
|
@@ -14534,7 +14530,7 @@ var iS = (
|
|
|
14534
14530
|
var c = this.clonePosition(), f = this.parseTagName();
|
|
14535
14531
|
return i !== f ? this.error(ye.UNMATCHED_CLOSING_TAG, _e(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
14536
14532
|
val: {
|
|
14537
|
-
type:
|
|
14533
|
+
type: ke.tag,
|
|
14538
14534
|
value: i,
|
|
14539
14535
|
children: s,
|
|
14540
14536
|
location: _e(n, this.clonePosition())
|
|
@@ -14571,7 +14567,7 @@ var iS = (
|
|
|
14571
14567
|
}
|
|
14572
14568
|
var c = _e(n, this.clonePosition());
|
|
14573
14569
|
return {
|
|
14574
|
-
val: { type:
|
|
14570
|
+
val: { type: ke.literal, value: i, location: c },
|
|
14575
14571
|
err: null
|
|
14576
14572
|
};
|
|
14577
14573
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -14631,7 +14627,7 @@ var iS = (
|
|
|
14631
14627
|
case 125:
|
|
14632
14628
|
return this.bump(), {
|
|
14633
14629
|
val: {
|
|
14634
|
-
type:
|
|
14630
|
+
type: ke.argument,
|
|
14635
14631
|
// value does not include the opening and closing braces.
|
|
14636
14632
|
value: i,
|
|
14637
14633
|
location: _e(n, this.clonePosition())
|
|
@@ -14678,7 +14674,7 @@ var iS = (
|
|
|
14678
14674
|
if (a === "number") {
|
|
14679
14675
|
var h = this.parseNumberSkeletonFromString(b, f.styleLocation);
|
|
14680
14676
|
return h.err ? h : {
|
|
14681
|
-
val: { type:
|
|
14677
|
+
val: { type: ke.number, value: n, location: m, style: h.val },
|
|
14682
14678
|
err: null
|
|
14683
14679
|
};
|
|
14684
14680
|
} else {
|
|
@@ -14691,7 +14687,7 @@ var iS = (
|
|
|
14691
14687
|
pattern: T,
|
|
14692
14688
|
location: f.styleLocation,
|
|
14693
14689
|
parsedOptions: this.shouldParseSkeletons ? Bw(T) : {}
|
|
14694
|
-
}, _ = a === "date" ?
|
|
14690
|
+
}, _ = a === "date" ? ke.date : ke.time;
|
|
14695
14691
|
return {
|
|
14696
14692
|
val: { type: _, value: n, location: m, style: d },
|
|
14697
14693
|
err: null
|
|
@@ -14700,7 +14696,7 @@ var iS = (
|
|
|
14700
14696
|
}
|
|
14701
14697
|
return {
|
|
14702
14698
|
val: {
|
|
14703
|
-
type: a === "number" ?
|
|
14699
|
+
type: a === "number" ? ke.number : a === "date" ? ke.date : ke.time,
|
|
14704
14700
|
value: n,
|
|
14705
14701
|
location: m,
|
|
14706
14702
|
style: (o = f == null ? void 0 : f.style) !== null && o !== void 0 ? o : null
|
|
@@ -14734,7 +14730,7 @@ var iS = (
|
|
|
14734
14730
|
var F = _e(i, this.clonePosition());
|
|
14735
14731
|
return a === "select" ? {
|
|
14736
14732
|
val: {
|
|
14737
|
-
type:
|
|
14733
|
+
type: ke.select,
|
|
14738
14734
|
value: n,
|
|
14739
14735
|
options: vd(N.val),
|
|
14740
14736
|
location: F
|
|
@@ -14742,7 +14738,7 @@ var iS = (
|
|
|
14742
14738
|
err: null
|
|
14743
14739
|
} : {
|
|
14744
14740
|
val: {
|
|
14745
|
-
type:
|
|
14741
|
+
type: ke.plural,
|
|
14746
14742
|
value: n,
|
|
14747
14743
|
options: vd(N.val),
|
|
14748
14744
|
offset: w,
|
|
@@ -15074,7 +15070,7 @@ function Vo(e, t, r, n, i, o, s) {
|
|
|
15074
15070
|
});
|
|
15075
15071
|
continue;
|
|
15076
15072
|
}
|
|
15077
|
-
if (
|
|
15073
|
+
if (Mw(u)) {
|
|
15078
15074
|
typeof o == "number" && a.push({
|
|
15079
15075
|
type: ut.literal,
|
|
15080
15076
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -15548,7 +15544,7 @@ var Pc = function(e, t, r, n, i) {
|
|
|
15548
15544
|
// See https://github.com/formatjs/formatjs/issues/1914
|
|
15549
15545
|
a && Object.prototype.hasOwnProperty.call(a, b) && a[b]
|
|
15550
15546
|
);
|
|
15551
|
-
if (Array.isArray(T) && T.length === 1 && T[0].type ===
|
|
15547
|
+
if (Array.isArray(T) && T.length === 1 && T[0].type === ke.literal)
|
|
15552
15548
|
return T[0].value;
|
|
15553
15549
|
if (!n && T && typeof T == "string" && !l)
|
|
15554
15550
|
return T.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
@@ -15578,7 +15574,7 @@ var Pc = function(e, t, r, n, i) {
|
|
|
15578
15574
|
h(new js('Error formatting the default message for: "'.concat(b, '", rendering message verbatim'), o, r, E));
|
|
15579
15575
|
}
|
|
15580
15576
|
return typeof T == "string" ? T : typeof m == "string" ? m : b;
|
|
15581
|
-
},
|
|
15577
|
+
}, Mm = [
|
|
15582
15578
|
"formatMatcher",
|
|
15583
15579
|
"timeZone",
|
|
15584
15580
|
"hour12",
|
|
@@ -15602,7 +15598,7 @@ var Pc = function(e, t, r, n, i) {
|
|
|
15602
15598
|
function ma(e, t, r, n) {
|
|
15603
15599
|
var i = e.locale, o = e.formats, s = e.onError, a = e.timeZone;
|
|
15604
15600
|
n === void 0 && (n = {});
|
|
15605
|
-
var c = n.format, f = ae(ae({}, a && { timeZone: a }), c && fu(o, t, c, s)), u = ln(n,
|
|
15601
|
+
var c = n.format, f = ae(ae({}, a && { timeZone: a }), c && fu(o, t, c, s)), u = ln(n, Mm, f);
|
|
15606
15602
|
return t === "time" && !u.hour && !u.minute && !u.second && !u.timeStyle && !u.dateStyle && (u = ae(ae({}, u), { hour: "numeric", minute: "numeric" })), r(i, u);
|
|
15607
15603
|
}
|
|
15608
15604
|
function xS(e, t) {
|
|
@@ -15630,7 +15626,7 @@ function CS(e, t) {
|
|
|
15630
15626
|
function RS(e, t) {
|
|
15631
15627
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
15632
15628
|
r[n - 2] = arguments[n];
|
|
15633
|
-
var i = r[0], o = r[1], s = r[2], a = s === void 0 ? {} : s, c = e.timeZone, f = e.locale, u = e.onError, h = ln(a,
|
|
15629
|
+
var i = r[0], o = r[1], s = r[2], a = s === void 0 ? {} : s, c = e.timeZone, f = e.locale, u = e.onError, h = ln(a, Mm, c ? { timeZone: c } : {});
|
|
15634
15630
|
try {
|
|
15635
15631
|
return t(f, h).formatRange(i, o);
|
|
15636
15632
|
} catch (d) {
|
|
@@ -15678,33 +15674,33 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
15678
15674
|
o(new Tt("Error formatting display name.", i, c));
|
|
15679
15675
|
}
|
|
15680
15676
|
}
|
|
15681
|
-
var
|
|
15677
|
+
var MS = [
|
|
15682
15678
|
"type",
|
|
15683
15679
|
"style"
|
|
15684
15680
|
], Td = Date.now();
|
|
15685
|
-
function
|
|
15681
|
+
function kS(e) {
|
|
15686
15682
|
return "".concat(Td, "_").concat(e, "_").concat(Td);
|
|
15687
15683
|
}
|
|
15688
15684
|
function BS(e, t, r, n) {
|
|
15689
15685
|
n === void 0 && (n = {});
|
|
15690
|
-
var i =
|
|
15686
|
+
var i = km(e, t, r, n).reduce(function(o, s) {
|
|
15691
15687
|
var a = s.value;
|
|
15692
15688
|
return typeof a != "string" ? o.push(a) : typeof o[o.length - 1] == "string" ? o[o.length - 1] += a : o.push(a), o;
|
|
15693
15689
|
}, []);
|
|
15694
15690
|
return i.length === 1 ? i[0] : i.length === 0 ? "" : i;
|
|
15695
15691
|
}
|
|
15696
|
-
function
|
|
15692
|
+
function km(e, t, r, n) {
|
|
15697
15693
|
var i = e.locale, o = e.onError;
|
|
15698
15694
|
n === void 0 && (n = {});
|
|
15699
15695
|
var s = Intl.ListFormat;
|
|
15700
15696
|
s || o(new xr(`Intl.ListFormat is not available in this environment.
|
|
15701
15697
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
15702
15698
|
`, Wt.MISSING_INTL_API));
|
|
15703
|
-
var a = ln(n,
|
|
15699
|
+
var a = ln(n, MS);
|
|
15704
15700
|
try {
|
|
15705
15701
|
var c = {}, f = r.map(function(u, h) {
|
|
15706
15702
|
if (typeof u == "object") {
|
|
15707
|
-
var d =
|
|
15703
|
+
var d = kS(h);
|
|
15708
15704
|
return c[d] = u, d;
|
|
15709
15705
|
}
|
|
15710
15706
|
return String(u);
|
|
@@ -15824,7 +15820,7 @@ function zS(e, t) {
|
|
|
15824
15820
|
// @ts-expect-error TODO: will get to this later
|
|
15825
15821
|
$t: Pc.bind(null, n, r),
|
|
15826
15822
|
formatList: BS.bind(null, n, r.getListFormat),
|
|
15827
|
-
formatListToParts:
|
|
15823
|
+
formatListToParts: km.bind(null, n, r.getListFormat),
|
|
15828
15824
|
formatDisplayName: LS.bind(null, n, r.getDisplayNames)
|
|
15829
15825
|
});
|
|
15830
15826
|
}
|
|
@@ -15863,16 +15859,16 @@ var Lc;
|
|
|
15863
15859
|
(function(e) {
|
|
15864
15860
|
e.formatDate = "FormattedDate", e.formatTime = "FormattedTime", e.formatNumber = "FormattedNumber", e.formatList = "FormattedList", e.formatDisplayName = "FormattedDisplayName";
|
|
15865
15861
|
})(Lc || (Lc = {}));
|
|
15866
|
-
var
|
|
15862
|
+
var Mc;
|
|
15867
15863
|
(function(e) {
|
|
15868
15864
|
e.formatDate = "FormattedDateParts", e.formatTime = "FormattedTimeParts", e.formatNumber = "FormattedNumberParts", e.formatList = "FormattedListParts";
|
|
15869
|
-
})(
|
|
15865
|
+
})(Mc || (Mc = {}));
|
|
15870
15866
|
function Um(e) {
|
|
15871
15867
|
var t = function(r) {
|
|
15872
15868
|
var n = Ee(), i = r.value, o = r.children, s = $n(r, ["value", "children"]), a = typeof i == "string" ? new Date(i || 0) : i, c = e === "formatDate" ? n.formatDateToParts(a, s) : n.formatTimeToParts(a, s);
|
|
15873
15869
|
return o(c);
|
|
15874
15870
|
};
|
|
15875
|
-
return t.displayName =
|
|
15871
|
+
return t.displayName = Mc[e], t;
|
|
15876
15872
|
}
|
|
15877
15873
|
function lo(e) {
|
|
15878
15874
|
var t = function(r) {
|
|
@@ -15919,7 +15915,7 @@ var Od = function(e, t, r, n) {
|
|
|
15919
15915
|
s
|
|
15920
15916
|
], i, !1));
|
|
15921
15917
|
return Array.isArray(a) ? xe.Children.toArray(a) : a;
|
|
15922
|
-
},
|
|
15918
|
+
}, kc = function(e, t) {
|
|
15923
15919
|
var r = e.defaultRichTextElements, n = $n(e, ["defaultRichTextElements"]), i = $m(r), o = zS(ae(ae(ae({}, Dm), n), { defaultRichTextElements: i }), t), s = {
|
|
15924
15920
|
locale: o.locale,
|
|
15925
15921
|
timeZone: o.timeZone,
|
|
@@ -15945,14 +15941,14 @@ var Od = function(e, t, r, n) {
|
|
|
15945
15941
|
var r = e !== null && e.apply(this, arguments) || this;
|
|
15946
15942
|
return r.cache = Lm(), r.state = {
|
|
15947
15943
|
cache: r.cache,
|
|
15948
|
-
intl:
|
|
15944
|
+
intl: kc(qs(r.props), r.cache),
|
|
15949
15945
|
prevConfig: qs(r.props)
|
|
15950
15946
|
}, r;
|
|
15951
15947
|
}
|
|
15952
15948
|
return t.getDerivedStateFromProps = function(r, n) {
|
|
15953
15949
|
var i = n.prevConfig, o = n.cache, s = qs(r);
|
|
15954
15950
|
return Ic(i, s) ? null : {
|
|
15955
|
-
intl:
|
|
15951
|
+
intl: kc(s, o),
|
|
15956
15952
|
prevConfig: s
|
|
15957
15953
|
};
|
|
15958
15954
|
}, t.prototype.render = function() {
|
|
@@ -16183,7 +16179,7 @@ function en() {
|
|
|
16183
16179
|
return e;
|
|
16184
16180
|
}, en.apply(this, arguments);
|
|
16185
16181
|
}
|
|
16186
|
-
const iT = ["children", "options"], Ad = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "className", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { for: "htmlFor" }), xd = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, oT = ["style", "script"], aT = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, sT = /mailto:/i, cT = /\n{2,}$/, Wm = /^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/, uT = /^ *> ?/gm, lT = /^ {2,}\n/, fT = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, zm = /^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/, Ym = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, dT = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, hT = /^(?:\n *)*\n/, pT = /\r\n?/g, mT = /^\[\^([^\]]+)](:.*)\n/, gT = /^\[\^([^\]]+)]/, yT = /\f/g, vT = /^\s*?\[(x|\s)\]/, Km = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Qm = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Xm = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Fc = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i, _T = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Jm = /^<!--[\s\S]*?(?:-->)/, ET = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Dc = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, bT = /^\{.*\}$/, wT = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ST = /^<([^ >]+@[^ >]+)>/, TT = /^<([^ >]+:\/[^ >]+)>/, OT = /-([a-z])?/gi, Zm = /^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/, AT = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, xT = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, CT = /^\[([^\]]*)\] ?\[([^\]]*)\]/, RT = /(\[|\])/g, NT = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, PT = /\t/g, IT = /^ *\| */, LT = /(^ *\||\| *$)/g,
|
|
16182
|
+
const iT = ["children", "options"], Ad = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "className", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { for: "htmlFor" }), xd = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, oT = ["style", "script"], aT = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, sT = /mailto:/i, cT = /\n{2,}$/, Wm = /^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/, uT = /^ *> ?/gm, lT = /^ {2,}\n/, fT = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, zm = /^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/, Ym = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, dT = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, hT = /^(?:\n *)*\n/, pT = /\r\n?/g, mT = /^\[\^([^\]]+)](:.*)\n/, gT = /^\[\^([^\]]+)]/, yT = /\f/g, vT = /^\s*?\[(x|\s)\]/, Km = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Qm = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Xm = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Fc = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i, _T = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Jm = /^<!--[\s\S]*?(?:-->)/, ET = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Dc = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, bT = /^\{.*\}$/, wT = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, ST = /^<([^ >]+@[^ >]+)>/, TT = /^<([^ >]+:\/[^ >]+)>/, OT = /-([a-z])?/gi, Zm = /^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/, AT = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, xT = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, CT = /^\[([^\]]*)\] ?\[([^\]]*)\]/, RT = /(\[|\])/g, NT = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, PT = /\t/g, IT = /^ *\| */, LT = /(^ *\||\| *$)/g, MT = / *$/, kT = /^ *:-+: *$/, BT = /^ *:-+ *$/, FT = /^ *-+: *$/, DT = /^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/, UT = /^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/, $T = /^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/, HT = /^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/, jT = /^\\([^0-9A-Za-z\s])/, qT = /^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i, GT = /^\n+/, VT = /^([ \t]*)/, WT = /\\([^\\])/g, Cd = / *\n+$/, zT = /(?:^|\n)( *)$/, pu = "(?:\\d+\\.)", mu = "(?:[*+-])";
|
|
16187
16183
|
function eg(e) {
|
|
16188
16184
|
return "( *)(" + (e === 1 ? pu : mu) + ") +";
|
|
16189
16185
|
}
|
|
@@ -16232,7 +16228,7 @@ function ZT(e) {
|
|
|
16232
16228
|
return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
|
|
16233
16229
|
}
|
|
16234
16230
|
function eO(e) {
|
|
16235
|
-
return FT.test(e) ? "right" :
|
|
16231
|
+
return FT.test(e) ? "right" : kT.test(e) ? "center" : BT.test(e) ? "left" : null;
|
|
16236
16232
|
}
|
|
16237
16233
|
function Nd(e, t, r) {
|
|
16238
16234
|
const n = r.$;
|
|
@@ -16241,7 +16237,7 @@ function Nd(e, t, r) {
|
|
|
16241
16237
|
r.$ = n;
|
|
16242
16238
|
let o = [[]];
|
|
16243
16239
|
return i.forEach(function(s, a) {
|
|
16244
|
-
s.type === "tableSeparator" ? a !== 0 && a !== i.length - 1 && o.push([]) : (s.type !== "text" || i[a + 1] != null && i[a + 1].type !== "tableSeparator" || (s.v = s.v.replace(
|
|
16240
|
+
s.type === "tableSeparator" ? a !== 0 && a !== i.length - 1 && o.push([]) : (s.type !== "text" || i[a + 1] != null && i[a + 1].type !== "tableSeparator" || (s.v = s.v.replace(MT, "")), o[o.length - 1].push(s));
|
|
16245
16241
|
}), o;
|
|
16246
16242
|
}
|
|
16247
16243
|
function tO(e, t, r) {
|
|
@@ -16631,7 +16627,7 @@ const E1 = ({ className: e = "", show: t = !1, hide: r = !1, text: n, children:
|
|
|
16631
16627
|
}
|
|
16632
16628
|
return i ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ C("p", { className: "center", children: /* @__PURE__ */ C(Ge, { variant: "primary", size: "medium", ...r, children: n }) })) : /* @__PURE__ */ C(Or, { to: r.href || "#", ...r, children: n });
|
|
16633
16629
|
}, gO = ({ children: e }) => /* @__PURE__ */ C("span", { children: e });
|
|
16634
|
-
const
|
|
16630
|
+
const Md = ({ className: e = "", options: t = {}, children: r }) => {
|
|
16635
16631
|
r = r.replace(/^<br\/?>/, "");
|
|
16636
16632
|
const n = {
|
|
16637
16633
|
wrapper: Ce.Fragment,
|
|
@@ -16703,7 +16699,7 @@ const Hc = {
|
|
|
16703
16699
|
if (n <= t * (i + 1))
|
|
16704
16700
|
return Do[i];
|
|
16705
16701
|
};
|
|
16706
|
-
const
|
|
16702
|
+
const kd = 256, gu = ({ className: e = "", src: t = "", name: r, alt: n, width: i = kd, height: o = kd, ...s }) => {
|
|
16707
16703
|
const [a, c] = we(!1), f = qe(null);
|
|
16708
16704
|
return De(() => {
|
|
16709
16705
|
const u = f.current;
|
|
@@ -16827,7 +16823,7 @@ const Bd = {
|
|
|
16827
16823
|
const Ks = "joinCommunityButton", OO = ({ isMember: e = !1, isShort: t = !1, functions: { join: r, leave: n } = { join: () => {
|
|
16828
16824
|
}, leave: () => {
|
|
16829
16825
|
} } }) => {
|
|
16830
|
-
const i = Ee(), o =
|
|
16826
|
+
const i = Ee(), o = kn(fo), s = o && typeof o.id == "string", [a, c] = we(e), [f, u] = we(e ? "joined" : "notJoined");
|
|
16831
16827
|
De(() => {
|
|
16832
16828
|
f === "joining" ? u("joined") : f === "leaving" && u("notJoined");
|
|
16833
16829
|
}, [a]);
|
|
@@ -16909,7 +16905,7 @@ const A1 = ({
|
|
|
16909
16905
|
) }, u);
|
|
16910
16906
|
}) });
|
|
16911
16907
|
};
|
|
16912
|
-
const Xs =
|
|
16908
|
+
const Xs = kc({ locale: "en", messages: su }), AO = ({
|
|
16913
16909
|
page: e = 1,
|
|
16914
16910
|
length: t = 0,
|
|
16915
16911
|
limit: r = 10,
|
|
@@ -17480,7 +17476,7 @@ const IO = ({
|
|
|
17480
17476
|
}
|
|
17481
17477
|
);
|
|
17482
17478
|
};
|
|
17483
|
-
var LO = "Expected a function", Eg = "__lodash_hash_undefined__", bg = 1 / 0,
|
|
17479
|
+
var LO = "Expected a function", Eg = "__lodash_hash_undefined__", bg = 1 / 0, MO = "[object Function]", kO = "[object GeneratorFunction]", BO = "[object Symbol]", FO = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, DO = /^\w*$/, UO = /^\./, $O = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, HO = /[\\^$.*+?()[\]{}|]/g, jO = /\\(\\)?/g, qO = /^\[object .+?Constructor\]$/, GO = typeof ue == "object" && ue && ue.Object === Object && ue, VO = typeof self == "object" && self && self.Object === Object && self, vu = GO || VO || Function("return this")();
|
|
17484
17480
|
function WO(e, t) {
|
|
17485
17481
|
return e == null ? void 0 : e[t];
|
|
17486
17482
|
}
|
|
@@ -17692,7 +17688,7 @@ function TA(e, t) {
|
|
|
17692
17688
|
var Ag = Array.isArray;
|
|
17693
17689
|
function OA(e) {
|
|
17694
17690
|
var t = xg(e) ? Tg.call(e) : "";
|
|
17695
|
-
return t ==
|
|
17691
|
+
return t == MO || t == kO;
|
|
17696
17692
|
}
|
|
17697
17693
|
function xg(e) {
|
|
17698
17694
|
var t = typeof e;
|
|
@@ -17970,7 +17966,7 @@ const Cg = /* @__PURE__ */ zt(RA), Ie = {
|
|
|
17970
17966
|
] }, e);
|
|
17971
17967
|
};
|
|
17972
17968
|
const NA = { height: 67, height_desktop: 83 }, Rg = () => {
|
|
17973
|
-
const e = Ee(), t =
|
|
17969
|
+
const e = Ee(), t = kn(fo), r = la(!0, !0), n = t && typeof t.id == "string", i = Ln(
|
|
17974
17970
|
() => Ie.getIsDesktopVersion(n, r),
|
|
17975
17971
|
[n, r]
|
|
17976
17972
|
), [o, s] = Dg(ww, {
|
|
@@ -18182,7 +18178,7 @@ function LA() {
|
|
|
18182
18178
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
18183
18179
|
return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
|
|
18184
18180
|
}
|
|
18185
|
-
const
|
|
18181
|
+
const MA = () => {
|
|
18186
18182
|
const e = Ee();
|
|
18187
18183
|
return /* @__PURE__ */ re(pt, { children: [
|
|
18188
18184
|
/* @__PURE__ */ C(Rg, {}),
|
|
@@ -18195,7 +18191,7 @@ const kA = () => {
|
|
|
18195
18191
|
window.scrollTo(0, 0);
|
|
18196
18192
|
}, [s]);
|
|
18197
18193
|
const a = dm(e, { locale: o });
|
|
18198
|
-
return /* @__PURE__ */ C(IA, { onError: t, fallback: /* @__PURE__ */ C(
|
|
18194
|
+
return /* @__PURE__ */ C(IA, { onError: t, fallback: /* @__PURE__ */ C(MA, {}), children: /* @__PURE__ */ C(Hg, { fallback: /* @__PURE__ */ C(bO, { layout: "overview-page" }), children: /* @__PURE__ */ C("div", { id: "wrapper", className: ie(i, { [n]: n !== "default" }), children: /* @__PURE__ */ re(ny, { children: [
|
|
18199
18195
|
/* @__PURE__ */ C(Rg, {}),
|
|
18200
18196
|
/* @__PURE__ */ C("div", { className: "content", children: a }),
|
|
18201
18197
|
r && /* @__PURE__ */ C(gg, {}),
|
|
@@ -18220,7 +18216,7 @@ const kA = () => {
|
|
|
18220
18216
|
WorkAndTheEconomy: "work-and-the-economy"
|
|
18221
18217
|
},
|
|
18222
18218
|
"from the community": "community"
|
|
18223
|
-
},
|
|
18219
|
+
}, kA = {
|
|
18224
18220
|
getTagDetails: (e) => {
|
|
18225
18221
|
if (e.includes("topic_")) {
|
|
18226
18222
|
if (e = nc.topic[e.replace("topic_", "")], e) {
|
|
@@ -18248,7 +18244,7 @@ const I1 = ({
|
|
|
18248
18244
|
return e.forEach((f) => {
|
|
18249
18245
|
if (!f)
|
|
18250
18246
|
return;
|
|
18251
|
-
const u =
|
|
18247
|
+
const u = kA.getTagDetails(f);
|
|
18252
18248
|
u && c.push(u);
|
|
18253
18249
|
}), c.length < 1 ? null : /* @__PURE__ */ C("ul", { className: ie("tags text-small", t, i, { "one-line": r }), children: c.map((f) => {
|
|
18254
18250
|
const u = a.formatMessage({ id: f.text });
|
|
@@ -18293,7 +18289,7 @@ const L1 = ({
|
|
|
18293
18289
|
}, BA = {
|
|
18294
18290
|
showThread: !1,
|
|
18295
18291
|
showForm: !1
|
|
18296
|
-
}, Ng = qc(BA),
|
|
18292
|
+
}, Ng = qc(BA), M1 = ({ children: e }) => {
|
|
18297
18293
|
const [t, r] = we({
|
|
18298
18294
|
showThread: !1,
|
|
18299
18295
|
showForm: !1
|
|
@@ -18477,7 +18473,7 @@ const ht = "discussion_form_", ZA = ({
|
|
|
18477
18473
|
gtmContext: c = "DiscussionForm"
|
|
18478
18474
|
}) => {
|
|
18479
18475
|
var G, W;
|
|
18480
|
-
const f = Ee(), { pathname: u } = io(), h =
|
|
18476
|
+
const f = Ee(), { pathname: u } = io(), h = kn(fo), [d, l] = we(r.isEditing && r.isEditing.text || ""), [p, m] = we(s.error || !1), [b, T] = we(!1), _ = qe(null);
|
|
18481
18477
|
if (n || (n = _), r.isLoading)
|
|
18482
18478
|
return /* @__PURE__ */ C(an, { className: "discussion-card discussion-form", "data-testid": "loading-placeholder" });
|
|
18483
18479
|
const E = (U) => {
|
|
@@ -18524,8 +18520,8 @@ const ht = "discussion_form_", ZA = ({
|
|
|
18524
18520
|
}, 500);
|
|
18525
18521
|
} catch (ee) {
|
|
18526
18522
|
const Y = ee;
|
|
18527
|
-
let
|
|
18528
|
-
Y.message.includes("entry already exists") && (
|
|
18523
|
+
let M = `${ht}error`;
|
|
18524
|
+
Y.message.includes("entry already exists") && (M = Ht(f.formatMessage, `${ht}error_alreadyExists`, e.type, "action")), Y.message.includes("429") ? M = Ht(f.formatMessage, `${ht}error_tooMany`, e.type, "action") : Y.message.includes("400") && (M = `${ht}error`), m(M), N();
|
|
18529
18525
|
}
|
|
18530
18526
|
}
|
|
18531
18527
|
}, N = () => {
|
|
@@ -18679,8 +18675,8 @@ const ic = () => {
|
|
|
18679
18675
|
icon: { icon: l ? "heart" : "heart_empty", animate: "bounce" },
|
|
18680
18676
|
className: ie({ "do-animation": l && !i }),
|
|
18681
18677
|
screenreaderText: s ? f.formatMessage({
|
|
18682
|
-
id: `
|
|
18683
|
-
}) : !1,
|
|
18678
|
+
id: `discussion_likes_${l ? "unlike" : "like"}`
|
|
18679
|
+
}, { action: f.formatMessage({ id: `discussion_action_${o.type}` }) }) : !1,
|
|
18684
18680
|
onClick: A,
|
|
18685
18681
|
disabled: !s,
|
|
18686
18682
|
"aria-hidden": !s,
|
|
@@ -18701,8 +18697,8 @@ const ic = () => {
|
|
|
18701
18697
|
var ia = { exports: {} };
|
|
18702
18698
|
ia.exports;
|
|
18703
18699
|
(function(e, t) {
|
|
18704
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, s = 9007199254740991, a = "[object Arguments]", c = "[object Array]", f = "[object AsyncFunction]", u = "[object Boolean]", h = "[object Date]", d = "[object Error]", l = "[object Function]", p = "[object GeneratorFunction]", m = "[object Map]", b = "[object Number]", T = "[object Null]", _ = "[object Object]", E = "[object Promise]", A = "[object Proxy]", w = "[object RegExp]", N = "[object Set]", F = "[object String]", B = "[object Symbol]", q = "[object Undefined]", G = "[object WeakMap]", W = "[object ArrayBuffer]", U = "[object DataView]", z = "[object Float32Array]", ee = "[object Float64Array]", Y = "[object Int8Array]",
|
|
18705
|
-
K[z] = K[ee] = K[Y] = K[
|
|
18700
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 1, o = 2, s = 9007199254740991, a = "[object Arguments]", c = "[object Array]", f = "[object AsyncFunction]", u = "[object Boolean]", h = "[object Date]", d = "[object Error]", l = "[object Function]", p = "[object GeneratorFunction]", m = "[object Map]", b = "[object Number]", T = "[object Null]", _ = "[object Object]", E = "[object Promise]", A = "[object Proxy]", w = "[object RegExp]", N = "[object Set]", F = "[object String]", B = "[object Symbol]", q = "[object Undefined]", G = "[object WeakMap]", W = "[object ArrayBuffer]", U = "[object DataView]", z = "[object Float32Array]", ee = "[object Float64Array]", Y = "[object Int8Array]", M = "[object Int16Array]", V = "[object Int32Array]", X = "[object Uint8Array]", de = "[object Uint8ClampedArray]", Q = "[object Uint16Array]", J = "[object Uint32Array]", te = /[\\^$.*+?()[\]{}|]/g, ce = /^\[object .+?Constructor\]$/, $e = /^(?:0|[1-9]\d*)$/, K = {};
|
|
18701
|
+
K[z] = K[ee] = K[Y] = K[M] = K[V] = K[X] = K[de] = K[Q] = K[J] = !0, K[a] = K[c] = K[W] = K[u] = K[U] = K[h] = K[d] = K[l] = K[m] = K[b] = K[_] = K[w] = K[N] = K[F] = K[G] = !1;
|
|
18706
18702
|
var oe = typeof ue == "object" && ue && ue.Object === Object && ue, Le = typeof self == "object" && self && self.Object === Object && self, Re = oe || Le || Function("return this")(), ft = t && !t.nodeType && t, mt = ft && !0 && e && !e.nodeType && e, Ot = mt && mt.exports === ft, ne = Ot && oe.process, Je = function() {
|
|
18707
18703
|
try {
|
|
18708
18704
|
return ne && ne.binding && ne.binding("util");
|
|
@@ -18721,7 +18717,7 @@ ia.exports;
|
|
|
18721
18717
|
y[fe + R] = O[R];
|
|
18722
18718
|
return y;
|
|
18723
18719
|
}
|
|
18724
|
-
function
|
|
18720
|
+
function Mt(y, O) {
|
|
18725
18721
|
for (var R = -1, H = y == null ? 0 : y.length; ++R < H; )
|
|
18726
18722
|
if (O(y[R], R, y))
|
|
18727
18723
|
return !0;
|
|
@@ -18765,7 +18761,7 @@ ia.exports;
|
|
|
18765
18761
|
return y ? "Symbol(src)_1." + y : "";
|
|
18766
18762
|
}(), D = S.toString, j = RegExp(
|
|
18767
18763
|
"^" + v.call(x).replace(te, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18768
|
-
), le = Ot ? Re.Buffer : void 0, Se = Re.Symbol, Te = Re.Uint8Array, Oe = S.propertyIsEnumerable, he = Ze.splice, gt = Se ? Se.toStringTag : void 0, lr = Object.getOwnPropertySymbols, Nr = le ? le.isBuffer : void 0, Xt = Ct(Object.keys, Object), Pr = Nt(Re, "DataView"), Jt = Nt(Re, "Map"), Ir = Nt(Re, "Promise"), Lr = Nt(Re, "Set"),
|
|
18764
|
+
), le = Ot ? Re.Buffer : void 0, Se = Re.Symbol, Te = Re.Uint8Array, Oe = S.propertyIsEnumerable, he = Ze.splice, gt = Se ? Se.toStringTag : void 0, lr = Object.getOwnPropertySymbols, Nr = le ? le.isBuffer : void 0, Xt = Ct(Object.keys, Object), Pr = Nt(Re, "DataView"), Jt = Nt(Re, "Map"), Ir = Nt(Re, "Promise"), Lr = Nt(Re, "Set"), Mr = Nt(Re, "WeakMap"), kt = Nt(Object, "create"), dn = et(Pr), Rt = et(Jt), Kn = et(Ir), Qn = et(Lr), Xn = et(Mr), hn = Se ? Se.prototype : void 0, kr = hn ? hn.valueOf : void 0;
|
|
18769
18765
|
function He(y) {
|
|
18770
18766
|
var O = -1, R = y == null ? 0 : y.length;
|
|
18771
18767
|
for (this.clear(); ++O < R; ) {
|
|
@@ -18774,7 +18770,7 @@ ia.exports;
|
|
|
18774
18770
|
}
|
|
18775
18771
|
}
|
|
18776
18772
|
function Br() {
|
|
18777
|
-
this.__data__ =
|
|
18773
|
+
this.__data__ = kt ? kt(null) : {}, this.size = 0;
|
|
18778
18774
|
}
|
|
18779
18775
|
function Fr(y) {
|
|
18780
18776
|
var O = this.has(y) && delete this.__data__[y];
|
|
@@ -18782,7 +18778,7 @@ ia.exports;
|
|
|
18782
18778
|
}
|
|
18783
18779
|
function Zt(y) {
|
|
18784
18780
|
var O = this.__data__;
|
|
18785
|
-
if (
|
|
18781
|
+
if (kt) {
|
|
18786
18782
|
var R = O[y];
|
|
18787
18783
|
return R === n ? void 0 : R;
|
|
18788
18784
|
}
|
|
@@ -18790,11 +18786,11 @@ ia.exports;
|
|
|
18790
18786
|
}
|
|
18791
18787
|
function pn(y) {
|
|
18792
18788
|
var O = this.__data__;
|
|
18793
|
-
return
|
|
18789
|
+
return kt ? O[y] !== void 0 : x.call(O, y);
|
|
18794
18790
|
}
|
|
18795
18791
|
function Jn(y, O) {
|
|
18796
18792
|
var R = this.__data__;
|
|
18797
|
-
return this.size += this.has(y) ? 0 : 1, R[y] =
|
|
18793
|
+
return this.size += this.has(y) ? 0 : 1, R[y] = kt && O === void 0 ? n : O, this;
|
|
18798
18794
|
}
|
|
18799
18795
|
He.prototype.clear = Br, He.prototype.delete = Fr, He.prototype.get = Zt, He.prototype.has = pn, He.prototype.set = Jn;
|
|
18800
18796
|
function ze(y) {
|
|
@@ -18980,7 +18976,7 @@ ia.exports;
|
|
|
18980
18976
|
break;
|
|
18981
18977
|
}
|
|
18982
18978
|
if (Ue) {
|
|
18983
|
-
if (!
|
|
18979
|
+
if (!Mt(O, function(It, rr) {
|
|
18984
18980
|
if (!xt(Ue, rr) && (Ke === It || fe(Ke, It, R, H, se)))
|
|
18985
18981
|
return Ue.push(rr);
|
|
18986
18982
|
})) {
|
|
@@ -19024,8 +19020,8 @@ ia.exports;
|
|
|
19024
19020
|
var Ye = Hr(me(y), me(O), H, fe, se, pe);
|
|
19025
19021
|
return pe.delete(y), Ye;
|
|
19026
19022
|
case B:
|
|
19027
|
-
if (
|
|
19028
|
-
return
|
|
19023
|
+
if (kr)
|
|
19024
|
+
return kr.call(y) == kr.call(O);
|
|
19029
19025
|
}
|
|
19030
19026
|
return !1;
|
|
19031
19027
|
}
|
|
@@ -19086,7 +19082,7 @@ ia.exports;
|
|
|
19086
19082
|
return Oe.call(y, O);
|
|
19087
19083
|
}));
|
|
19088
19084
|
} : On, vt = er;
|
|
19089
|
-
(Pr && vt(new Pr(new ArrayBuffer(1))) != U || Jt && vt(new Jt()) != m || Ir && vt(Ir.resolve()) != E || Lr && vt(new Lr()) != N ||
|
|
19085
|
+
(Pr && vt(new Pr(new ArrayBuffer(1))) != U || Jt && vt(new Jt()) != m || Ir && vt(Ir.resolve()) != E || Lr && vt(new Lr()) != N || Mr && vt(new Mr()) != G) && (vt = function(y) {
|
|
19090
19086
|
var O = er(y), R = O == _ ? y.constructor : void 0, H = R ? et(R) : "";
|
|
19091
19087
|
if (H)
|
|
19092
19088
|
switch (H) {
|
|
@@ -19251,7 +19247,7 @@ const a1 = ({
|
|
|
19251
19247
|
t[`${r}Slug`] = e[r];
|
|
19252
19248
|
}), t;
|
|
19253
19249
|
};
|
|
19254
|
-
const sr = "discussion_",
|
|
19250
|
+
const sr = "discussion_", k1 = ({
|
|
19255
19251
|
element: e = "div",
|
|
19256
19252
|
content: t,
|
|
19257
19253
|
userHasPermissions: r = !0,
|
|
@@ -19273,7 +19269,7 @@ const sr = "discussion_", M1 = ({
|
|
|
19273
19269
|
gtmContext: l = "DiscussionAnswer",
|
|
19274
19270
|
children: p
|
|
19275
19271
|
}) => {
|
|
19276
|
-
const m = Ee(), b = oa(), T =
|
|
19272
|
+
const m = Ee(), b = oa(), T = kn(fo), _ = kn(Ng), [E, A] = we({
|
|
19277
19273
|
body: t && t.body || "",
|
|
19278
19274
|
isEditing: !1,
|
|
19279
19275
|
didEdit: t && t.isEdited || !1
|
|
@@ -19286,7 +19282,7 @@ const sr = "discussion_", M1 = ({
|
|
|
19286
19282
|
});
|
|
19287
19283
|
}, [t.isEdited]), n || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
19288
19284
|
return /* @__PURE__ */ C(an, { className: "discussion-card discussion-post" });
|
|
19289
|
-
const { author: q, canLike: G, createdAt: W, id: U, likes: z = 0, userLiked: ee, comments: Y = 0 } = t,
|
|
19285
|
+
const { author: q, canLike: G, createdAt: W, id: U, likes: z = 0, userLiked: ee, comments: Y = 0 } = t, M = T && T.id && typeof q != "string" && q.id && q.id === T.id || !1, V = typeof G == "boolean" ? G : r ? !M : !1, X = async (te) => {
|
|
19290
19286
|
te || (te = ""), B("");
|
|
19291
19287
|
try {
|
|
19292
19288
|
if (!i1(te, E.body)) {
|
|
@@ -19322,7 +19318,7 @@ const sr = "discussion_", M1 = ({
|
|
|
19322
19318
|
)}`,
|
|
19323
19319
|
icon: "flag"
|
|
19324
19320
|
}];
|
|
19325
|
-
return r &&
|
|
19321
|
+
return r && M && J.push(
|
|
19326
19322
|
{
|
|
19327
19323
|
text: m.formatMessage({ id: `${sr}moreMenu_edit` }),
|
|
19328
19324
|
onClick: () => A({ ...E, isEditing: !0 }),
|
|
@@ -19386,7 +19382,7 @@ const sr = "discussion_", M1 = ({
|
|
|
19386
19382
|
},
|
|
19387
19383
|
gtmContext: `${l}Form`
|
|
19388
19384
|
}
|
|
19389
|
-
) : h.post ? /* @__PURE__ */ C(Or, { to: h.post, className: "gtm-trackable", "data-gtm-event-context": l, "data-gtm-event-type": "title-click", children: /* @__PURE__ */ C(
|
|
19385
|
+
) : h.post ? /* @__PURE__ */ C(Or, { to: h.post, className: "gtm-trackable", "data-gtm-event-context": l, "data-gtm-event-type": "title-click", children: /* @__PURE__ */ C(Md, { options: { overrides: { a: gO } }, children: E.body }) }) : /* @__PURE__ */ C(Md, { options: { wrapper: t.type === "question" ? "h1" : Ce.Fragment, forceWrapper: t.type === "question", forceInline: t.type === "question", forceBlock: t.type !== "question" }, children: E.body }),
|
|
19390
19386
|
!E.isEditing && /* @__PURE__ */ re("ul", { className: ie("actions text-medium", t.type), "data-testid": `${t.type}-actions`, children: [
|
|
19391
19387
|
/* @__PURE__ */ C(
|
|
19392
19388
|
r1,
|
|
@@ -19535,10 +19531,10 @@ export {
|
|
|
19535
19531
|
TO as Contributors,
|
|
19536
19532
|
Ng as ConversationContext,
|
|
19537
19533
|
RO as CookieBanner,
|
|
19538
|
-
|
|
19534
|
+
M1 as DiscussionConversation,
|
|
19539
19535
|
ZA as DiscussionForm,
|
|
19540
19536
|
r1 as DiscussionLikes,
|
|
19541
|
-
|
|
19537
|
+
k1 as DiscussionPost,
|
|
19542
19538
|
F1 as DiscussionThread,
|
|
19543
19539
|
Sc as Divider,
|
|
19544
19540
|
m1 as DownloadSection,
|
|
@@ -19561,7 +19557,7 @@ export {
|
|
|
19561
19557
|
bO as LoadingState,
|
|
19562
19558
|
mg as Logo,
|
|
19563
19559
|
g1 as LogoSection,
|
|
19564
|
-
|
|
19560
|
+
Md as MarkdownText,
|
|
19565
19561
|
v1 as MarketingBox,
|
|
19566
19562
|
yu as Member,
|
|
19567
19563
|
L1 as MembersList,
|