@apolitical/component-library 1.6.0 → 1.6.1-beta.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 +245 -245
- package/modals/overlay/overlay.d.ts +0 -1
- 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 Dn, useRef as qe, useEffect as
|
|
2
|
+
import Ce, { memo as Dn, useRef as qe, useEffect as He, useContext as Ln, useState as we, useLayoutEffect as Ld, useMemo as In, Children as ec, createContext as kc, Fragment as du, useCallback as kd, useReducer as bg, Component as wg, isValidElement as Sg, createElement as hu, Suspense as Tg } from "react";
|
|
3
3
|
import { jsx as C, jsxs as te, Fragment as ht } from "react/jsx-runtime";
|
|
4
4
|
var ce = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Wt(e) {
|
|
@@ -63,9 +63,9 @@ var Md = { exports: {} };
|
|
|
63
63
|
})();
|
|
64
64
|
})(Md);
|
|
65
65
|
var Og = Md.exports;
|
|
66
|
-
const ne = /* @__PURE__ */ Wt(Og), Ag = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => Ce.createElement(e, { ...r, className: ne("hidden", { "show-on-focus": t }), children: n }), ot = Dn(Ag), xg = ({ element: e = "span", children: t = null, ...n }) => Ce.createElement(e, { ...n, "aria-hidden": !0 }, t), Bd = Dn(xg),
|
|
66
|
+
const ne = /* @__PURE__ */ Wt(Og), Ag = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => Ce.createElement(e, { ...r, className: ne("hidden", { "show-on-focus": t }), children: n }), ot = Dn(Ag), xg = ({ element: e = "span", children: t = null, ...n }) => Ce.createElement(e, { ...n, "aria-hidden": !0 }, t), Bd = Dn(xg), rn = (e, t) => {
|
|
67
67
|
const n = qe(!1);
|
|
68
|
-
|
|
68
|
+
He(() => {
|
|
69
69
|
n.current ? e() : n.current = !0;
|
|
70
70
|
}, t);
|
|
71
71
|
};
|
|
@@ -408,7 +408,7 @@ function jg() {
|
|
|
408
408
|
function ue(ee) {
|
|
409
409
|
return typeof ee == "object" && ee !== null && ee.$$typeof === t;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function De(ee) {
|
|
412
412
|
return A(ee) === c;
|
|
413
413
|
}
|
|
414
414
|
function X(ee) {
|
|
@@ -432,7 +432,7 @@ function jg() {
|
|
|
432
432
|
function Ot(ee) {
|
|
433
433
|
return A(ee) === h;
|
|
434
434
|
}
|
|
435
|
-
Ie.AsyncMode = w, Ie.ConcurrentMode = N, Ie.ContextConsumer = F, Ie.ContextProvider = B, Ie.Element = q, Ie.ForwardRef = G, Ie.Fragment = V, Ie.Lazy = H, Ie.Memo = z, Ie.Portal = oe, Ie.Profiler = K, Ie.StrictMode = k, Ie.Suspense = W, Ie.isAsyncMode = de, Ie.isConcurrentMode = Q, Ie.isContextConsumer = Y, Ie.isContextProvider = se, Ie.isElement = ue, Ie.isForwardRef =
|
|
435
|
+
Ie.AsyncMode = w, Ie.ConcurrentMode = N, Ie.ContextConsumer = F, Ie.ContextProvider = B, Ie.Element = q, Ie.ForwardRef = G, Ie.Fragment = V, Ie.Lazy = H, Ie.Memo = z, Ie.Portal = oe, Ie.Profiler = K, Ie.StrictMode = k, Ie.Suspense = W, Ie.isAsyncMode = de, Ie.isConcurrentMode = Q, Ie.isContextConsumer = Y, Ie.isContextProvider = se, Ie.isElement = ue, Ie.isForwardRef = De, Ie.isFragment = X, Ie.isLazy = re, Ie.isMemo = Le, Ie.isPortal = Re, Ie.isProfiler = ft, Ie.isStrictMode = pt, Ie.isSuspense = Ot, Ie.isValidElementType = b, Ie.typeOf = A;
|
|
436
436
|
}()), Ie;
|
|
437
437
|
}
|
|
438
438
|
process.env.NODE_ENV === "production" ? tc.exports = Hg() : tc.exports = jg();
|
|
@@ -456,7 +456,7 @@ function Wg() {
|
|
|
456
456
|
return typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
457
457
|
}
|
|
458
458
|
function jd(e) {
|
|
459
|
-
const t =
|
|
459
|
+
const t = Ln(Dg);
|
|
460
460
|
if (!t)
|
|
461
461
|
throw new Error("Missing <CookiesProvider>");
|
|
462
462
|
const [n, r] = we(() => t.getAll());
|
|
@@ -471,7 +471,7 @@ function jd(e) {
|
|
|
471
471
|
t.removeChangeListener(a);
|
|
472
472
|
};
|
|
473
473
|
}, [t, n]);
|
|
474
|
-
const o =
|
|
474
|
+
const o = In(() => t.set.bind(t), [t]), i = In(() => t.remove.bind(t), [t]), s = In(() => t.update.bind(t), [t]);
|
|
475
475
|
return [n, o, i, s];
|
|
476
476
|
}
|
|
477
477
|
function zg(e, t, n) {
|
|
@@ -1680,7 +1680,7 @@ var Oy = function() {
|
|
|
1680
1680
|
f.prototype = n.prototype, o.prototype = new f(), f.prototype = null;
|
|
1681
1681
|
}
|
|
1682
1682
|
return o;
|
|
1683
|
-
}, ky = Ly, Fc = Function.prototype.bind || ky, My = Fc, By = My.call(Function.call, Object.prototype.hasOwnProperty), ge, kn = SyntaxError, rh = Function,
|
|
1683
|
+
}, ky = Ly, Fc = Function.prototype.bind || ky, My = Fc, By = My.call(Function.call, Object.prototype.hasOwnProperty), ge, kn = SyntaxError, rh = Function, Pn = TypeError, Ya = function(e) {
|
|
1684
1684
|
try {
|
|
1685
1685
|
return rh('"use strict"; return (' + e + ").constructor;")();
|
|
1686
1686
|
} catch {
|
|
@@ -1693,7 +1693,7 @@ if (en)
|
|
|
1693
1693
|
en = null;
|
|
1694
1694
|
}
|
|
1695
1695
|
var Ka = function() {
|
|
1696
|
-
throw new
|
|
1696
|
+
throw new Pn();
|
|
1697
1697
|
}, Fy = en ? function() {
|
|
1698
1698
|
try {
|
|
1699
1699
|
return arguments.callee, Ka;
|
|
@@ -1704,18 +1704,18 @@ var Ka = function() {
|
|
|
1704
1704
|
return Ka;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
}() : Ka,
|
|
1707
|
+
}() : Ka, On = xy(), Uy = Ry(), Xe = Object.getPrototypeOf || (Uy ? function(e) {
|
|
1708
1708
|
return e.__proto__;
|
|
1709
|
-
} : null),
|
|
1709
|
+
} : null), Cn = {}, Dy = typeof Uint8Array > "u" || !Xe ? ge : Xe(Uint8Array), tn = {
|
|
1710
1710
|
"%AggregateError%": typeof AggregateError > "u" ? ge : AggregateError,
|
|
1711
1711
|
"%Array%": Array,
|
|
1712
1712
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? ge : ArrayBuffer,
|
|
1713
|
-
"%ArrayIteratorPrototype%":
|
|
1713
|
+
"%ArrayIteratorPrototype%": On && Xe ? Xe([][Symbol.iterator]()) : ge,
|
|
1714
1714
|
"%AsyncFromSyncIteratorPrototype%": ge,
|
|
1715
|
-
"%AsyncFunction%":
|
|
1716
|
-
"%AsyncGenerator%":
|
|
1717
|
-
"%AsyncGeneratorFunction%":
|
|
1718
|
-
"%AsyncIteratorPrototype%":
|
|
1715
|
+
"%AsyncFunction%": Cn,
|
|
1716
|
+
"%AsyncGenerator%": Cn,
|
|
1717
|
+
"%AsyncGeneratorFunction%": Cn,
|
|
1718
|
+
"%AsyncIteratorPrototype%": Cn,
|
|
1719
1719
|
"%Atomics%": typeof Atomics > "u" ? ge : Atomics,
|
|
1720
1720
|
"%BigInt%": typeof BigInt > "u" ? ge : BigInt,
|
|
1721
1721
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? ge : BigInt64Array,
|
|
@@ -1735,16 +1735,16 @@ var Ka = function() {
|
|
|
1735
1735
|
"%Float64Array%": typeof Float64Array > "u" ? ge : Float64Array,
|
|
1736
1736
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? ge : FinalizationRegistry,
|
|
1737
1737
|
"%Function%": rh,
|
|
1738
|
-
"%GeneratorFunction%":
|
|
1738
|
+
"%GeneratorFunction%": Cn,
|
|
1739
1739
|
"%Int8Array%": typeof Int8Array > "u" ? ge : Int8Array,
|
|
1740
1740
|
"%Int16Array%": typeof Int16Array > "u" ? ge : Int16Array,
|
|
1741
1741
|
"%Int32Array%": typeof Int32Array > "u" ? ge : Int32Array,
|
|
1742
1742
|
"%isFinite%": isFinite,
|
|
1743
1743
|
"%isNaN%": isNaN,
|
|
1744
|
-
"%IteratorPrototype%":
|
|
1744
|
+
"%IteratorPrototype%": On && Xe ? Xe(Xe([][Symbol.iterator]())) : ge,
|
|
1745
1745
|
"%JSON%": typeof JSON == "object" ? JSON : ge,
|
|
1746
1746
|
"%Map%": typeof Map > "u" ? ge : Map,
|
|
1747
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
1747
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !On || !Xe ? ge : Xe((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
1748
1748
|
"%Math%": Math,
|
|
1749
1749
|
"%Number%": Number,
|
|
1750
1750
|
"%Object%": Object,
|
|
@@ -1757,15 +1757,15 @@ var Ka = function() {
|
|
|
1757
1757
|
"%Reflect%": typeof Reflect > "u" ? ge : Reflect,
|
|
1758
1758
|
"%RegExp%": RegExp,
|
|
1759
1759
|
"%Set%": typeof Set > "u" ? ge : Set,
|
|
1760
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
1760
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !On || !Xe ? ge : Xe((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
1761
1761
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? ge : SharedArrayBuffer,
|
|
1762
1762
|
"%String%": String,
|
|
1763
|
-
"%StringIteratorPrototype%":
|
|
1764
|
-
"%Symbol%":
|
|
1763
|
+
"%StringIteratorPrototype%": On && Xe ? Xe(""[Symbol.iterator]()) : ge,
|
|
1764
|
+
"%Symbol%": On ? Symbol : ge,
|
|
1765
1765
|
"%SyntaxError%": kn,
|
|
1766
1766
|
"%ThrowTypeError%": Fy,
|
|
1767
1767
|
"%TypedArray%": Dy,
|
|
1768
|
-
"%TypeError%":
|
|
1768
|
+
"%TypeError%": Pn,
|
|
1769
1769
|
"%Uint8Array%": typeof Uint8Array > "u" ? ge : Uint8Array,
|
|
1770
1770
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? ge : Uint8ClampedArray,
|
|
1771
1771
|
"%Uint16Array%": typeof Uint16Array > "u" ? ge : Uint16Array,
|
|
@@ -1864,8 +1864,8 @@ var Hy = function e(t) {
|
|
|
1864
1864
|
var r = t, o;
|
|
1865
1865
|
if (Ho(el, r) && (o = el[r], r = "%" + o[0] + "%"), Ho(tn, r)) {
|
|
1866
1866
|
var i = tn[r];
|
|
1867
|
-
if (i ===
|
|
1868
|
-
throw new
|
|
1867
|
+
if (i === Cn && (i = Hy(r)), typeof i > "u" && !n)
|
|
1868
|
+
throw new Pn("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
1869
1869
|
return {
|
|
1870
1870
|
alias: o,
|
|
1871
1871
|
name: r,
|
|
@@ -1875,9 +1875,9 @@ var Hy = function e(t) {
|
|
|
1875
1875
|
throw new kn("intrinsic " + t + " does not exist!");
|
|
1876
1876
|
}, Uc = function(t, n) {
|
|
1877
1877
|
if (typeof t != "string" || t.length === 0)
|
|
1878
|
-
throw new
|
|
1878
|
+
throw new Pn("intrinsic name must be a non-empty string");
|
|
1879
1879
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
1880
|
-
throw new
|
|
1880
|
+
throw new Pn('"allowMissing" argument must be a boolean');
|
|
1881
1881
|
if (Gy(/^%?[^%]*%?$/, t) === null)
|
|
1882
1882
|
throw new kn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1883
1883
|
var r = zy(t), o = r.length > 0 ? r[0] : "", i = Yy("%" + o + "%", n), s = i.name, a = i.value, u = !1, f = i.alias;
|
|
@@ -1891,7 +1891,7 @@ var Hy = function e(t) {
|
|
|
1891
1891
|
else if (a != null) {
|
|
1892
1892
|
if (!(d in a)) {
|
|
1893
1893
|
if (!n)
|
|
1894
|
-
throw new
|
|
1894
|
+
throw new Pn("base intrinsic for " + t + " exists, but the property is not available.");
|
|
1895
1895
|
return;
|
|
1896
1896
|
}
|
|
1897
1897
|
if (en && c + 1 >= r.length) {
|
|
@@ -2859,7 +2859,7 @@ function yl(e, t) {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
return n;
|
|
2861
2861
|
}
|
|
2862
|
-
function
|
|
2862
|
+
function Rn(e) {
|
|
2863
2863
|
for (var t = 1; t < arguments.length; t++) {
|
|
2864
2864
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2865
2865
|
t % 2 ? yl(Object(n), !0).forEach(function(r) {
|
|
@@ -3136,7 +3136,7 @@ function i_(e) {
|
|
|
3136
3136
|
function o_(e, t) {
|
|
3137
3137
|
e.interceptors.request.use(function(n) {
|
|
3138
3138
|
return t().then(function(r) {
|
|
3139
|
-
return n.headers =
|
|
3139
|
+
return n.headers = Rn(Rn({}, n.headers), {}, {
|
|
3140
3140
|
Authorization: "Bearer ".concat(r)
|
|
3141
3141
|
}), n;
|
|
3142
3142
|
});
|
|
@@ -3171,7 +3171,7 @@ function bh(e, t) {
|
|
|
3171
3171
|
// 1GB
|
|
3172
3172
|
maxBodyLength: 1073741824
|
|
3173
3173
|
// 1GB
|
|
3174
|
-
}, r =
|
|
3174
|
+
}, r = Rn(Rn({}, n), t);
|
|
3175
3175
|
if (!r.accessToken) {
|
|
3176
3176
|
var o = new TypeError("Expected parameter accessToken");
|
|
3177
3177
|
throw r.logHandler("error", o), o;
|
|
@@ -3207,7 +3207,7 @@ function bh(e, t) {
|
|
|
3207
3207
|
retryOnError: r.retryOnError
|
|
3208
3208
|
}, l = e.create(d);
|
|
3209
3209
|
return l.httpClientParams = t, l.cloneWithNewParams = function(p) {
|
|
3210
|
-
return bh(e,
|
|
3210
|
+
return bh(e, Rn(Rn({}, Tr(t)), p));
|
|
3211
3211
|
}, r.onBeforeRequest && l.interceptors.request.use(r.onBeforeRequest), typeof r.accessToken == "function" && o_(l, r.accessToken), r.throttle && t_(l, r.throttle), i_(l, r.retryLimit), r.onError && l.interceptors.response.use(function(p) {
|
|
3212
3212
|
return p;
|
|
3213
3213
|
}, r.onError), l;
|
|
@@ -3946,19 +3946,19 @@ function U_() {
|
|
|
3946
3946
|
}
|
|
3947
3947
|
return So;
|
|
3948
3948
|
}
|
|
3949
|
-
var
|
|
3949
|
+
var An = {}, Ml;
|
|
3950
3950
|
function D_() {
|
|
3951
3951
|
if (Ml)
|
|
3952
|
-
return
|
|
3953
|
-
Ml = 1, Object.defineProperty(
|
|
3952
|
+
return An;
|
|
3953
|
+
Ml = 1, Object.defineProperty(An, "__esModule", {
|
|
3954
3954
|
value: !0
|
|
3955
|
-
}),
|
|
3955
|
+
}), An.ValidationError = void 0, An.default = t;
|
|
3956
3956
|
class e extends Error {
|
|
3957
3957
|
constructor(r, o) {
|
|
3958
3958
|
super(`Invalid "${r}" provided, ` + o), this.name = "ValidationError";
|
|
3959
3959
|
}
|
|
3960
3960
|
}
|
|
3961
|
-
|
|
3961
|
+
An.ValidationError = e;
|
|
3962
3962
|
function t(n, r, o) {
|
|
3963
3963
|
if (o = o || {}, typeof r != "number")
|
|
3964
3964
|
throw new e(n, `only numeric values are allowed for timestamps, provided type was "${typeof r}"`);
|
|
@@ -3967,7 +3967,7 @@ function D_() {
|
|
|
3967
3967
|
if (o.now && r < o.now)
|
|
3968
3968
|
throw new e(n, `value (${r}) cannot be in the past, current time was ${o.now}`);
|
|
3969
3969
|
}
|
|
3970
|
-
return
|
|
3970
|
+
return An;
|
|
3971
3971
|
}
|
|
3972
3972
|
var Bl;
|
|
3973
3973
|
function $_() {
|
|
@@ -4041,7 +4041,7 @@ function $_() {
|
|
|
4041
4041
|
}, re;
|
|
4042
4042
|
};
|
|
4043
4043
|
async function G() {
|
|
4044
|
-
|
|
4044
|
+
De(d);
|
|
4045
4045
|
try {
|
|
4046
4046
|
const X = await d.get("/");
|
|
4047
4047
|
return p(X.data);
|
|
@@ -4204,7 +4204,7 @@ function $_() {
|
|
|
4204
4204
|
function ue(X) {
|
|
4205
4205
|
X.defaults.baseURL = l().environmentBaseUrl;
|
|
4206
4206
|
}
|
|
4207
|
-
function
|
|
4207
|
+
function De(X) {
|
|
4208
4208
|
X.defaults.baseURL = l().spaceBaseUrl;
|
|
4209
4209
|
}
|
|
4210
4210
|
return {
|
|
@@ -4683,8 +4683,8 @@ function Y_() {
|
|
|
4683
4683
|
}, q = (K) => T(K) && K.sys && K.sys.type === "Entry", G = (K, k, W) => {
|
|
4684
4684
|
const J = {}, de = ((Q, Y) => {
|
|
4685
4685
|
const se = {};
|
|
4686
|
-
for (const [ue,
|
|
4687
|
-
se[ue] = N(
|
|
4686
|
+
for (const [ue, De] of Object.entries(Q))
|
|
4687
|
+
se[ue] = N(De, Y);
|
|
4688
4688
|
return se;
|
|
4689
4689
|
})(b(K), k);
|
|
4690
4690
|
for (const [Q, Y] of Object.entries(de))
|
|
@@ -4702,7 +4702,7 @@ function Y_() {
|
|
|
4702
4702
|
return de ? G(se[0], Q, Y) : se[0];
|
|
4703
4703
|
})(await H(K, W), { ...K, ...k }), oe = async (K = {}, k = {}, W = !1) => ((J, { flatten: de = !0, locale: Q = "en", assetDetails: Y = !1 }) => {
|
|
4704
4704
|
const se = V(J);
|
|
4705
|
-
return de ? ((ue,
|
|
4705
|
+
return de ? ((ue, De, X) => ue.map((re) => G(re, De, X)))(se, Q, Y) : se;
|
|
4706
4706
|
})(await H(K, W), { ...K, ...k });
|
|
4707
4707
|
}(), a;
|
|
4708
4708
|
}();
|
|
@@ -10116,7 +10116,7 @@ function DE() {
|
|
|
10116
10116
|
let j = Number(g >> BigInt(32) & BigInt(4294967295));
|
|
10117
10117
|
return S[v++] = j, j = j >> 8, S[v++] = j, j = j >> 8, S[v++] = j, j = j >> 8, S[v++] = j, v;
|
|
10118
10118
|
}
|
|
10119
|
-
function
|
|
10119
|
+
function De(S, g, v, x, I) {
|
|
10120
10120
|
ee(g, x, I, S, v, 7);
|
|
10121
10121
|
let U = Number(g & BigInt(4294967295));
|
|
10122
10122
|
S[v + 7] = U, U = U >> 8, S[v + 6] = U, U = U >> 8, S[v + 5] = U, U = U >> 8, S[v + 4] = U;
|
|
@@ -10126,7 +10126,7 @@ function DE() {
|
|
|
10126
10126
|
a.prototype.writeBigUInt64LE = Ze(function(g, v = 0) {
|
|
10127
10127
|
return ue(this, g, v, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
10128
10128
|
}), a.prototype.writeBigUInt64BE = Ze(function(g, v = 0) {
|
|
10129
|
-
return
|
|
10129
|
+
return De(this, g, v, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
10130
10130
|
}), a.prototype.writeIntLE = function(g, v, x, I) {
|
|
10131
10131
|
if (g = +g, v = v >>> 0, !I) {
|
|
10132
10132
|
const Se = Math.pow(2, 8 * x - 1);
|
|
@@ -10158,7 +10158,7 @@ function DE() {
|
|
|
10158
10158
|
}, a.prototype.writeBigInt64LE = Ze(function(g, v = 0) {
|
|
10159
10159
|
return ue(this, g, v, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
10160
10160
|
}), a.prototype.writeBigInt64BE = Ze(function(g, v = 0) {
|
|
10161
|
-
return
|
|
10161
|
+
return De(this, g, v, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
10162
10162
|
});
|
|
10163
10163
|
function X(S, g, v, x, I, U) {
|
|
10164
10164
|
if (v + x > S.length)
|
|
@@ -10471,7 +10471,7 @@ function DE() {
|
|
|
10471
10471
|
}, buildQuestion: function() {
|
|
10472
10472
|
return Ue;
|
|
10473
10473
|
}, carouselCards: function() {
|
|
10474
|
-
return
|
|
10474
|
+
return Tn;
|
|
10475
10475
|
}, contentInteraction: function() {
|
|
10476
10476
|
return Ze;
|
|
10477
10477
|
}, decodeBase64: function() {
|
|
@@ -10499,7 +10499,7 @@ function DE() {
|
|
|
10499
10499
|
}, reportError: function() {
|
|
10500
10500
|
return p.reportError;
|
|
10501
10501
|
}, search: function() {
|
|
10502
|
-
return
|
|
10502
|
+
return wn;
|
|
10503
10503
|
} });
|
|
10504
10504
|
var l = h(809), p = h(30), m = h(36), E = { APOLITICAL: { WEBSITES: { LIVE: "https://apolitical.co", LOCALHOST: "localhost", STAGING: /https:\/\/([\w|\d|-]+)\.apolitical\.co/i, STAGING_SPLITTER: "-" }, ENVIRONMENTS: { PRODUCTION: "live", LOCAL: "local" } }, APIS: { ASSETS_API: { BASE_URL: "/api/assets-api", ENDPOINTS: { USERS: "/users", CERTIFICATES: "/certificates" } }, AUTH_API: { BASE_URL: "/api/auth-api", ENDPOINTS: { USER_PASSWORD: "/password", USERS: "/users" } }, CONTENT_INTERACTION_API: { BASE_URL: "/api/content-interaction-api", ENDPOINTS: { QUESTIONS: "/questions", ANSWERS: "/answers", REPLIES: "/replies", LIKES: "/likes" } }, FEATURES_API: { BASE_URL: "/api/features-api", ENDPOINTS: { FLAGS: "/features" } }, MANAGEMENT_API: { BASE_URL: "/api/management-api", ENDPOINTS: { ACCOUNTS: "/accounts", EVENT_REGISTRATIONS: "/event-registrations", LOGINS: "/logins", LOGIN_PASSWORDLESS: "/passwordless", BULK_ENROLMENTS: "/bulk-enrolments" } }, PAYMENTS_API: { BASE_URL: "/api/payments-api", BASE_URL_V2: "/api/payments-api/v2", ENDPOINTS: { PRODUCTS: "/products" } }, PEOPLE_API: { BASE_URL: "/api/people-api", BASE_URL_V2: "/api/people-api/v2", ENDPOINTS: { BULK_ENROLMENTS: "/bulk-enrolments", REGISTRATIONS: "/registrations", USERS: "/users", USER_ANSWERS: "/answers", USER_COURSES: "/courses", USER_EVENTS: "/events", USER_LIKES: "/likes", USER_LESSONS: "/lessons", USER_PRODUCTS: "/products", USER_RATINGS: "/ratings", USER_SUBSCRIPTIONS: "/subscriptions" } }, PEOPLE_ENGAGEMENT_API: { BASE_URL: "/api/people-engagement-api", ENDPOINTS: { ENQUIRY_EMAILS: "/enquiry-emails", USERS: "/users", USER_PROPERTIES: "/properties" } }, SEARCH_API: { BASE_URL: "/api/search-api", ENDPOINTS: { SEARCH: "/search" } } }, CONTENTFUL: { ARTICLES: { TYPE: "solutionArticle" }, CAROUSELS: { CARD_TYPES: { solutionArticle: { INCLUDE: 1, SELECT: "fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title" }, microcourse: { INCLUDE: 2, SELECT: "fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title" }, event: { INCLUDE: 1, SELECT: "fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing" }, listPage: { INCLUDE: 1, SELECT: "fields.hero,fields.slug,fields.title" }, qaQuestion: { INCLUDE: 0, SELECT: "fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames" }, learningHub: { INCLUDE: 1, SELECT: "fields.bannerSection,fields.customLabel,fields.slug,fields.title" } } }, COURSES: { TYPE: "microcourse" }, EDITORIAL_PAGES: { INCLUDE: 1, SELECT: "fields.carousels,fields.slug", TYPE: "editorialPage" }, EVENTS: { TYPE: "event" }, LISTS: { TYPE: "listPage" }, QUESTIONS: { TYPE: "qaQuestion", INCLUDE: 1, LIMIT: 10, ORDER: "-sys.createdAt", SELECT: "sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames", SKIP: 0 }, ANSWERS: { TYPE: "qaAnswer" }, REPLIES: { TYPE: "reply" }, LEARNING_HUB: { TYPE: "learningHub" } }, HUBSPOT: { ENVIRONMENTS_MAPPING: { local: "SANDBOX", beta: "SANDBOX", rc: "SANDBOX", live: "LIVE" }, EMAIL_IDS: { SANDBOX: { internalEmailId: 49099078634, externalEmailId: 55196526554 }, LIVE: { internalEmailId: 55233583049, externalEmailId: 55231159239 } } }, USERS: { MYSELF: "me" } };
|
|
10505
10505
|
const { APOLITICAL: { WEBSITES: { LIVE: T, LOCALHOST: _, STAGING: b, STAGING_SPLITTER: A }, ENVIRONMENTS: { PRODUCTION: w, LOCAL: N } } } = E, { HUBSPOT: { ENVIRONMENTS_MAPPING: F, EMAIL_IDS: B } } = E;
|
|
@@ -10534,7 +10534,7 @@ function DE() {
|
|
|
10534
10534
|
}
|
|
10535
10535
|
return M;
|
|
10536
10536
|
} } };
|
|
10537
|
-
const { APIS: { CONTENT_INTERACTION_API: { BASE_URL: se, ENDPOINTS: { ANSWERS: ue, QUESTIONS:
|
|
10537
|
+
const { APIS: { CONTENT_INTERACTION_API: { BASE_URL: se, ENDPOINTS: { ANSWERS: ue, QUESTIONS: De, LIKES: X } } } } = E, re = `${se}${De}`;
|
|
10538
10538
|
var Le = { create: async ({ questionSlug: P }, M) => {
|
|
10539
10539
|
try {
|
|
10540
10540
|
await V().post(`${re}/${encodeURIComponent(P)}${ue}`, M);
|
|
@@ -10719,32 +10719,32 @@ function DE() {
|
|
|
10719
10719
|
}
|
|
10720
10720
|
return M;
|
|
10721
10721
|
} } };
|
|
10722
|
-
const { APIS: { PEOPLE_API: { BASE_URL_V2: Mt, ENDPOINTS: { BULK_ENROLMENTS:
|
|
10722
|
+
const { APIS: { PEOPLE_API: { BASE_URL_V2: Mt, ENDPOINTS: { BULK_ENROLMENTS: fn } } } } = E;
|
|
10723
10723
|
var Rt = { list: async (P) => {
|
|
10724
10724
|
let M = [];
|
|
10725
10725
|
try {
|
|
10726
|
-
const { data: L } = await V().get(`${Mt}${
|
|
10726
|
+
const { data: L } = await V().get(`${Mt}${fn}`, { params: P });
|
|
10727
10727
|
L && L.length && (M = L);
|
|
10728
10728
|
} catch (L) {
|
|
10729
10729
|
await H(L);
|
|
10730
10730
|
}
|
|
10731
10731
|
return M;
|
|
10732
10732
|
} }, Wn = h(25);
|
|
10733
|
-
const { OK: zn, MULTIPLE_CHOICES: Yn, NOT_FOUND:
|
|
10733
|
+
const { OK: zn, MULTIPLE_CHOICES: Yn, NOT_FOUND: dn, FORBIDDEN: kr } = Wn.StatusCodes, $e = (P) => P >= zn && P < Yn || P === kr || P === dn, { APIS: { PEOPLE_API: { BASE_URL_V2: Mr, ENDPOINTS: { USERS: Br } } } } = E, Jt = async (P) => {
|
|
10734
10734
|
let M = null;
|
|
10735
10735
|
try {
|
|
10736
|
-
const { data: L } = await V().get(`${Mr}${Br}/${encodeURIComponent(P)}`, { validateStatus:
|
|
10736
|
+
const { data: L } = await V().get(`${Mr}${Br}/${encodeURIComponent(P)}`, { validateStatus: $e });
|
|
10737
10737
|
L && L.id && (M = L);
|
|
10738
10738
|
} catch (L) {
|
|
10739
10739
|
await H(L);
|
|
10740
10740
|
}
|
|
10741
10741
|
return M;
|
|
10742
|
-
},
|
|
10742
|
+
}, hn = async (P) => {
|
|
10743
10743
|
let M = [];
|
|
10744
10744
|
try {
|
|
10745
10745
|
if (P && P.length < 2)
|
|
10746
10746
|
throw new Error("users list method requires at least two ids");
|
|
10747
|
-
const L = P.map((Z) => `ids=${encodeURIComponent(Z)}`).join("&"), D = await V().get(`${Mr}${Br}?${L}`, { validateStatus:
|
|
10747
|
+
const L = P.map((Z) => `ids=${encodeURIComponent(Z)}`).join("&"), D = await V().get(`${Mr}${Br}?${L}`, { validateStatus: $e });
|
|
10748
10748
|
D && D.length && (M = D);
|
|
10749
10749
|
} catch (L) {
|
|
10750
10750
|
await H(L);
|
|
@@ -10760,7 +10760,7 @@ function DE() {
|
|
|
10760
10760
|
await H(D);
|
|
10761
10761
|
}
|
|
10762
10762
|
return L;
|
|
10763
|
-
}, list:
|
|
10763
|
+
}, list: hn };
|
|
10764
10764
|
const { APIS: { PEOPLE_API: { BASE_URL_V2: ze, ENDPOINTS: { USERS: Qn, USER_LIKES: Xn } } }, USERS: { MYSELF: Jn } } = E, Zn = `${ze}${Qn}/${Jn}${Xn}`, Fr = async (P) => {
|
|
10765
10765
|
let M = [], L = P ? { params: P } : { params: {} };
|
|
10766
10766
|
try {
|
|
@@ -10801,7 +10801,7 @@ function DE() {
|
|
|
10801
10801
|
const L = await Jt(P[0]);
|
|
10802
10802
|
L && M.push(L);
|
|
10803
10803
|
} else if (P && P.length > 1) {
|
|
10804
|
-
const L = await
|
|
10804
|
+
const L = await hn(P);
|
|
10805
10805
|
L && L.length > 0 && (M = L);
|
|
10806
10806
|
}
|
|
10807
10807
|
} catch (L) {
|
|
@@ -10820,7 +10820,7 @@ function DE() {
|
|
|
10820
10820
|
}
|
|
10821
10821
|
return M;
|
|
10822
10822
|
} };
|
|
10823
|
-
const { APIS: { PEOPLE_API: { BASE_URL_V2: ii, ENDPOINTS: { USERS: fr, USER_COURSES:
|
|
10823
|
+
const { APIS: { PEOPLE_API: { BASE_URL_V2: ii, ENDPOINTS: { USERS: fr, USER_COURSES: pn } } }, USERS: { MYSELF: dr } } = E, dt = `${ii}${fr}/${dr}${pn}`;
|
|
10824
10824
|
var Ur = { create: async (P) => {
|
|
10825
10825
|
try {
|
|
10826
10826
|
await V().post(dt, P);
|
|
@@ -10854,11 +10854,11 @@ function DE() {
|
|
|
10854
10854
|
}
|
|
10855
10855
|
return M;
|
|
10856
10856
|
} };
|
|
10857
|
-
const { APIS: { PEOPLE_API: { BASE_URL_V2: Dr, ENDPOINTS: { USERS: Zt, USER_LESSONS:
|
|
10857
|
+
const { APIS: { PEOPLE_API: { BASE_URL_V2: Dr, ENDPOINTS: { USERS: Zt, USER_LESSONS: mn } } }, USERS: { MYSELF: gn } } = E, yn = `${Dr}${Zt}/${gn}${mn}`;
|
|
10858
10858
|
var li = { create: async (P) => {
|
|
10859
10859
|
let M = null;
|
|
10860
10860
|
try {
|
|
10861
|
-
M = await V().post(
|
|
10861
|
+
M = await V().post(yn, P);
|
|
10862
10862
|
} catch (L) {
|
|
10863
10863
|
await H(L);
|
|
10864
10864
|
}
|
|
@@ -10866,7 +10866,7 @@ function DE() {
|
|
|
10866
10866
|
}, list: async (P) => {
|
|
10867
10867
|
let M = [], L = P ? { params: P } : { params: {} };
|
|
10868
10868
|
try {
|
|
10869
|
-
const { data: D } = await V().get(
|
|
10869
|
+
const { data: D } = await V().get(yn, L);
|
|
10870
10870
|
D && D.length && (M = D);
|
|
10871
10871
|
} catch (D) {
|
|
10872
10872
|
await H(D);
|
|
@@ -10925,7 +10925,7 @@ function DE() {
|
|
|
10925
10925
|
await H(L);
|
|
10926
10926
|
}
|
|
10927
10927
|
return M;
|
|
10928
|
-
} },
|
|
10928
|
+
} }, vn = { forms: { sendEnquiryEmails: async (P) => {
|
|
10929
10929
|
let M = null;
|
|
10930
10930
|
try {
|
|
10931
10931
|
const { emailIds: L } = q;
|
|
@@ -10935,16 +10935,16 @@ function DE() {
|
|
|
10935
10935
|
}
|
|
10936
10936
|
return M;
|
|
10937
10937
|
} } };
|
|
10938
|
-
const { APIS: { PEOPLE_ENGAGEMENT_API: { BASE_URL: et, ENDPOINTS: { USERS:
|
|
10939
|
-
var mr = { emails: yi, handlers:
|
|
10938
|
+
const { APIS: { PEOPLE_ENGAGEMENT_API: { BASE_URL: et, ENDPOINTS: { USERS: _n, USER_PROPERTIES: En } } }, USERS: { MYSELF: pr } } = E;
|
|
10939
|
+
var mr = { emails: yi, handlers: vn, userProperties: { update: async (P, M) => {
|
|
10940
10940
|
try {
|
|
10941
|
-
await V().put(`${et}${
|
|
10941
|
+
await V().put(`${et}${_n}/${pr}${En}/${P}`, M);
|
|
10942
10942
|
} catch (L) {
|
|
10943
10943
|
await H(L);
|
|
10944
10944
|
}
|
|
10945
10945
|
} } }, gr = h(130);
|
|
10946
|
-
const { APIS: { SEARCH_API: { BASE_URL: vi, ENDPOINTS: { SEARCH:
|
|
10947
|
-
var
|
|
10946
|
+
const { APIS: { SEARCH_API: { BASE_URL: vi, ENDPOINTS: { SEARCH: bn } } } } = E, jr = `${vi}${bn}`;
|
|
10947
|
+
var wn = { ask: async (P) => {
|
|
10948
10948
|
try {
|
|
10949
10949
|
let M = null;
|
|
10950
10950
|
const { data: L } = await V().get(jr, { params: { question: P } });
|
|
@@ -10967,7 +10967,7 @@ function DE() {
|
|
|
10967
10967
|
return D.on("connect", Z), D.on("update", M), D.on("result", Ae), ke;
|
|
10968
10968
|
} };
|
|
10969
10969
|
const { CONTENTFUL: wt } = E, { CARD_TYPES: qr } = wt.CAROUSELS;
|
|
10970
|
-
var
|
|
10970
|
+
var Tn = { read: async (P, M) => {
|
|
10971
10971
|
try {
|
|
10972
10972
|
if (!M || !M.sys || !M.sys.id)
|
|
10973
10973
|
throw new Error("Invalid link to card");
|
|
@@ -11058,7 +11058,7 @@ function DE() {
|
|
|
11058
11058
|
throw new Error("Content type not supported");
|
|
11059
11059
|
if (typeof yr[P] != "function")
|
|
11060
11060
|
throw new Error("No builder function for content type");
|
|
11061
|
-
return P !== "people" && M.sys && M.sys.type && M.sys.type === "Link" && (M = await
|
|
11061
|
+
return P !== "people" && M.sys && M.sys.type && M.sys.type === "Link" && (M = await Tn.read(P, M)), { contentType: P, ...await yr[P](M, L) };
|
|
11062
11062
|
} catch (D) {
|
|
11063
11063
|
throw await H(D), new Error(`Cannot build carousel card: ${D.message}`);
|
|
11064
11064
|
}
|
|
@@ -11121,13 +11121,13 @@ const Gi = {
|
|
|
11121
11121
|
Cookie: "cookie"
|
|
11122
11122
|
}, MA = (e) => {
|
|
11123
11123
|
const [t] = jd(), [n, r] = we(null), [o, i] = we(!1), [s, a] = we(Gi.Off);
|
|
11124
|
-
return
|
|
11124
|
+
return He(() => {
|
|
11125
11125
|
e && $E.features.flags.read(e).then((u) => {
|
|
11126
11126
|
a(u.featureState), r(null);
|
|
11127
11127
|
}).catch((u) => {
|
|
11128
11128
|
a(Gi.Off), r(u);
|
|
11129
11129
|
});
|
|
11130
|
-
}, [e]),
|
|
11130
|
+
}, [e]), He(() => {
|
|
11131
11131
|
switch (s) {
|
|
11132
11132
|
case Gi.Off:
|
|
11133
11133
|
i(!1);
|
|
@@ -11145,7 +11145,7 @@ const Gi = {
|
|
|
11145
11145
|
};
|
|
11146
11146
|
function HE(e, t, n) {
|
|
11147
11147
|
var r = this, o = qe(null), i = qe(0), s = qe(null), a = qe([]), u = qe(), f = qe(), c = qe(e), h = qe(!0);
|
|
11148
|
-
|
|
11148
|
+
He(function() {
|
|
11149
11149
|
c.current = e;
|
|
11150
11150
|
}, [e]);
|
|
11151
11151
|
var d = !t && t !== 0 && typeof window < "u";
|
|
@@ -11153,12 +11153,12 @@ function HE(e, t, n) {
|
|
|
11153
11153
|
throw new TypeError("Expected a function");
|
|
11154
11154
|
t = +t || 0;
|
|
11155
11155
|
var l = !!(n = n || {}).leading, p = !("trailing" in n) || !!n.trailing, m = "maxWait" in n, E = m ? Math.max(+n.maxWait || 0, t) : null;
|
|
11156
|
-
|
|
11156
|
+
He(function() {
|
|
11157
11157
|
return h.current = !0, function() {
|
|
11158
11158
|
h.current = !1;
|
|
11159
11159
|
};
|
|
11160
11160
|
}, []);
|
|
11161
|
-
var T =
|
|
11161
|
+
var T = In(function() {
|
|
11162
11162
|
var _ = function(B) {
|
|
11163
11163
|
var q = a.current, G = u.current;
|
|
11164
11164
|
return a.current = u.current = null, i.current = B, f.current = c.current.apply(G, q);
|
|
@@ -11209,7 +11209,7 @@ const na = (e = !0, t = !1) => {
|
|
|
11209
11209
|
return;
|
|
11210
11210
|
const [n, r] = Ce.useState(0) || [!1, () => {
|
|
11211
11211
|
}];
|
|
11212
|
-
|
|
11212
|
+
He(() => (i(), window.addEventListener("resize", s), () => {
|
|
11213
11213
|
clearTimeout(Is), s.flush(), window.removeEventListener("resize", s);
|
|
11214
11214
|
}), []);
|
|
11215
11215
|
const o = () => window.innerWidth, i = () => {
|
|
@@ -11238,7 +11238,7 @@ const na = (e = !0, t = !1) => {
|
|
|
11238
11238
|
const [o, i] = Ce.useState({ current: 0, past: 0 }) || [!1, () => {
|
|
11239
11239
|
}], [s, a] = Ce.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
|
|
11240
11240
|
}];
|
|
11241
|
-
|
|
11241
|
+
He(() => (u(), window.addEventListener("scroll", f), () => {
|
|
11242
11242
|
f.flush(), window.removeEventListener("scroll", f);
|
|
11243
11243
|
}), []);
|
|
11244
11244
|
const u = () => {
|
|
@@ -11255,7 +11255,7 @@ const na = (e = !0, t = !1) => {
|
|
|
11255
11255
|
}, BA = (e = [], t = !0) => {
|
|
11256
11256
|
e = Array.isArray(e) ? e : [e];
|
|
11257
11257
|
const n = qe(!1);
|
|
11258
|
-
|
|
11258
|
+
rn(() => {
|
|
11259
11259
|
if (window && window.location && window.location.hash) {
|
|
11260
11260
|
if (n.current)
|
|
11261
11261
|
return;
|
|
@@ -11269,7 +11269,7 @@ zo.exports;
|
|
|
11269
11269
|
(function(e, t) {
|
|
11270
11270
|
var n = 200, r = "__lodash_hash_undefined__", o = 9007199254740991, i = "[object Arguments]", s = "[object Array]", a = "[object Boolean]", u = "[object Date]", f = "[object Error]", c = "[object Function]", h = "[object GeneratorFunction]", d = "[object Map]", l = "[object Number]", p = "[object Object]", m = "[object Promise]", E = "[object RegExp]", T = "[object Set]", _ = "[object String]", b = "[object Symbol]", A = "[object WeakMap]", w = "[object ArrayBuffer]", N = "[object DataView]", F = "[object Float32Array]", B = "[object Float64Array]", q = "[object Int8Array]", G = "[object Int16Array]", V = "[object Int32Array]", H = "[object Uint8Array]", z = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", K = "[object Uint32Array]", k = /[\\^$.*+?()[\]{}|]/g, W = /\w*$/, J = /^\[object .+?Constructor\]$/, de = /^(?:0|[1-9]\d*)$/, Q = {};
|
|
11271
11271
|
Q[i] = Q[s] = Q[w] = Q[N] = Q[a] = Q[u] = Q[F] = Q[B] = Q[q] = Q[G] = Q[V] = Q[d] = Q[l] = Q[p] = Q[E] = Q[T] = Q[_] = Q[b] = Q[H] = Q[z] = Q[oe] = Q[K] = !0, Q[f] = Q[c] = Q[A] = !1;
|
|
11272
|
-
var Y = typeof ce == "object" && ce && ce.Object === Object && ce, se = typeof self == "object" && self && self.Object === Object && self, ue = Y || se || Function("return this")(),
|
|
11272
|
+
var Y = typeof ce == "object" && ce && ce.Object === Object && ce, se = typeof self == "object" && self && self.Object === Object && self, ue = Y || se || Function("return this")(), De = t && !t.nodeType && t, X = De && !0 && e && !e.nodeType && e, re = X && X.exports === De;
|
|
11273
11273
|
function Le(y, O) {
|
|
11274
11274
|
return y.set(O[0], O[1]), y;
|
|
11275
11275
|
}
|
|
@@ -11331,7 +11331,7 @@ zo.exports;
|
|
|
11331
11331
|
return y ? "Symbol(src)_1." + y : "";
|
|
11332
11332
|
}(), Ct = xr.toString, st = xt.hasOwnProperty, Ze = xt.toString, Cr = RegExp(
|
|
11333
11333
|
"^" + Ct.call(st).replace(k, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11334
|
-
), S = re ? ue.Buffer : void 0, g = ue.Symbol, v = ue.Uint8Array, x = Kt(Object.getPrototypeOf, Object), I = Object.create, U = xt.propertyIsEnumerable, j = Et.splice, le = Object.getOwnPropertySymbols, Se = S ? S.isBuffer : void 0, Te = Kt(Object.keys, Object), Oe = gt(ue, "DataView"), he = gt(ue, "Map"), mt = gt(ue, "Promise"), lr = gt(ue, "Set"), Rr = gt(ue, "WeakMap"), Qt = gt(Object, "create"), Nr = et(Oe), Xt = et(he), Ir = et(mt), Pr = et(lr), Lr = et(Rr), Mt = g ? g.prototype : void 0,
|
|
11334
|
+
), S = re ? ue.Buffer : void 0, g = ue.Symbol, v = ue.Uint8Array, x = Kt(Object.getPrototypeOf, Object), I = Object.create, U = xt.propertyIsEnumerable, j = Et.splice, le = Object.getOwnPropertySymbols, Se = S ? S.isBuffer : void 0, Te = Kt(Object.keys, Object), Oe = gt(ue, "DataView"), he = gt(ue, "Map"), mt = gt(ue, "Promise"), lr = gt(ue, "Set"), Rr = gt(ue, "WeakMap"), Qt = gt(Object, "create"), Nr = et(Oe), Xt = et(he), Ir = et(mt), Pr = et(lr), Lr = et(Rr), Mt = g ? g.prototype : void 0, fn = Mt ? Mt.valueOf : void 0;
|
|
11335
11335
|
function Rt(y) {
|
|
11336
11336
|
var O = -1, R = y ? y.length : 0;
|
|
11337
11337
|
for (this.clear(); ++O < R; ) {
|
|
@@ -11353,7 +11353,7 @@ zo.exports;
|
|
|
11353
11353
|
}
|
|
11354
11354
|
return st.call(O, y) ? O[y] : void 0;
|
|
11355
11355
|
}
|
|
11356
|
-
function
|
|
11356
|
+
function dn(y) {
|
|
11357
11357
|
var O = this.__data__;
|
|
11358
11358
|
return Qt ? O[y] !== void 0 : st.call(O, y);
|
|
11359
11359
|
}
|
|
@@ -11361,8 +11361,8 @@ zo.exports;
|
|
|
11361
11361
|
var R = this.__data__;
|
|
11362
11362
|
return R[y] = Qt && O === void 0 ? r : O, this;
|
|
11363
11363
|
}
|
|
11364
|
-
Rt.prototype.clear = Wn, Rt.prototype.delete = zn, Rt.prototype.get = Yn, Rt.prototype.has =
|
|
11365
|
-
function
|
|
11364
|
+
Rt.prototype.clear = Wn, Rt.prototype.delete = zn, Rt.prototype.get = Yn, Rt.prototype.has = dn, Rt.prototype.set = kr;
|
|
11365
|
+
function $e(y) {
|
|
11366
11366
|
var O = -1, R = y ? y.length : 0;
|
|
11367
11367
|
for (this.clear(); ++O < R; ) {
|
|
11368
11368
|
var $ = y[O];
|
|
@@ -11383,14 +11383,14 @@ zo.exports;
|
|
|
11383
11383
|
var O = this.__data__, R = dr(O, y);
|
|
11384
11384
|
return R < 0 ? void 0 : O[R][1];
|
|
11385
11385
|
}
|
|
11386
|
-
function
|
|
11386
|
+
function hn(y) {
|
|
11387
11387
|
return dr(this.__data__, y) > -1;
|
|
11388
11388
|
}
|
|
11389
11389
|
function Kn(y, O) {
|
|
11390
11390
|
var R = this.__data__, $ = dr(R, y);
|
|
11391
11391
|
return $ < 0 ? R.push([y, O]) : R[$][1] = O, this;
|
|
11392
11392
|
}
|
|
11393
|
-
|
|
11393
|
+
$e.prototype.clear = Mr, $e.prototype.delete = Br, $e.prototype.get = Jt, $e.prototype.has = hn, $e.prototype.set = Kn;
|
|
11394
11394
|
function ze(y) {
|
|
11395
11395
|
var O = -1, R = y ? y.length : 0;
|
|
11396
11396
|
for (this.clear(); ++O < R; ) {
|
|
@@ -11401,7 +11401,7 @@ zo.exports;
|
|
|
11401
11401
|
function Qn() {
|
|
11402
11402
|
this.__data__ = {
|
|
11403
11403
|
hash: new Rt(),
|
|
11404
|
-
map: new (he ||
|
|
11404
|
+
map: new (he || $e)(),
|
|
11405
11405
|
string: new Rt()
|
|
11406
11406
|
};
|
|
11407
11407
|
}
|
|
@@ -11419,10 +11419,10 @@ zo.exports;
|
|
|
11419
11419
|
}
|
|
11420
11420
|
ze.prototype.clear = Qn, ze.prototype.delete = Xn, ze.prototype.get = Jn, ze.prototype.has = Zn, ze.prototype.set = Fr;
|
|
11421
11421
|
function nt(y) {
|
|
11422
|
-
this.__data__ = new
|
|
11422
|
+
this.__data__ = new $e(y);
|
|
11423
11423
|
}
|
|
11424
11424
|
function ei() {
|
|
11425
|
-
this.__data__ = new
|
|
11425
|
+
this.__data__ = new $e();
|
|
11426
11426
|
}
|
|
11427
11427
|
function ti(y) {
|
|
11428
11428
|
return this.__data__.delete(y);
|
|
@@ -11435,7 +11435,7 @@ zo.exports;
|
|
|
11435
11435
|
}
|
|
11436
11436
|
function ii(y, O) {
|
|
11437
11437
|
var R = this.__data__;
|
|
11438
|
-
if (R instanceof
|
|
11438
|
+
if (R instanceof $e) {
|
|
11439
11439
|
var $ = R.__data__;
|
|
11440
11440
|
if (!he || $.length < n - 1)
|
|
11441
11441
|
return $.push([y, O]), this;
|
|
@@ -11450,18 +11450,18 @@ zo.exports;
|
|
|
11450
11450
|
(O || st.call(y, ae)) && !(fe && (ae == "length" || mi(ae, $))) && R.push(ae);
|
|
11451
11451
|
return R;
|
|
11452
11452
|
}
|
|
11453
|
-
function
|
|
11453
|
+
function pn(y, O, R) {
|
|
11454
11454
|
var $ = y[O];
|
|
11455
|
-
(!(st.call(y, O) &&
|
|
11455
|
+
(!(st.call(y, O) && En($, R)) || R === void 0 && !(O in y)) && (y[O] = R);
|
|
11456
11456
|
}
|
|
11457
11457
|
function dr(y, O) {
|
|
11458
11458
|
for (var R = y.length; R--; )
|
|
11459
|
-
if (
|
|
11459
|
+
if (En(y[R][0], O))
|
|
11460
11460
|
return R;
|
|
11461
11461
|
return -1;
|
|
11462
11462
|
}
|
|
11463
11463
|
function dt(y, O) {
|
|
11464
|
-
return y && $r(O,
|
|
11464
|
+
return y && $r(O, Sn(O), y);
|
|
11465
11465
|
}
|
|
11466
11466
|
function Ur(y, O, R, $, fe, ae, pe) {
|
|
11467
11467
|
var me;
|
|
@@ -11475,7 +11475,7 @@ zo.exports;
|
|
|
11475
11475
|
return di(y, me);
|
|
11476
11476
|
} else {
|
|
11477
11477
|
var be = It(y), Ye = be == c || be == h;
|
|
11478
|
-
if (
|
|
11478
|
+
if (bn(y))
|
|
11479
11479
|
return hr(y, O);
|
|
11480
11480
|
if (be == p || be == i || Ye && !ae) {
|
|
11481
11481
|
if (Ve(y))
|
|
@@ -11493,9 +11493,9 @@ zo.exports;
|
|
|
11493
11493
|
if (tt)
|
|
11494
11494
|
return tt;
|
|
11495
11495
|
if (pe.set(y, me), !Be)
|
|
11496
|
-
var Ue = R ? Hr(y) :
|
|
11496
|
+
var Ue = R ? Hr(y) : Sn(y);
|
|
11497
11497
|
return ft(Ue || y, function(Ke, je) {
|
|
11498
|
-
Ue && (je = Ke, Ke = y[je]),
|
|
11498
|
+
Ue && (je = Ke, Ke = y[je]), pn(me, je, Ur(Ke, O, R, $, je, y, pe));
|
|
11499
11499
|
}), me;
|
|
11500
11500
|
}
|
|
11501
11501
|
function oi(y) {
|
|
@@ -11515,7 +11515,7 @@ zo.exports;
|
|
|
11515
11515
|
return O.test(et(y));
|
|
11516
11516
|
}
|
|
11517
11517
|
function ui(y) {
|
|
11518
|
-
if (!
|
|
11518
|
+
if (!vn(y))
|
|
11519
11519
|
return Te(y);
|
|
11520
11520
|
var O = [];
|
|
11521
11521
|
for (var R in Object(y))
|
|
@@ -11536,20 +11536,20 @@ zo.exports;
|
|
|
11536
11536
|
var R = O ? Dr(y.buffer) : y.buffer;
|
|
11537
11537
|
return new y.constructor(R, y.byteOffset, y.byteLength);
|
|
11538
11538
|
}
|
|
11539
|
-
function
|
|
11539
|
+
function mn(y, O, R) {
|
|
11540
11540
|
var $ = O ? R(At(y), !0) : At(y);
|
|
11541
11541
|
return Ot($, Le, new y.constructor());
|
|
11542
11542
|
}
|
|
11543
|
-
function
|
|
11543
|
+
function gn(y) {
|
|
11544
11544
|
var O = new y.constructor(y.source, W.exec(y));
|
|
11545
11545
|
return O.lastIndex = y.lastIndex, O;
|
|
11546
11546
|
}
|
|
11547
|
-
function
|
|
11547
|
+
function yn(y, O, R) {
|
|
11548
11548
|
var $ = O ? R(kt(y), !0) : kt(y);
|
|
11549
11549
|
return Ot($, Re, new y.constructor());
|
|
11550
11550
|
}
|
|
11551
11551
|
function li(y) {
|
|
11552
|
-
return
|
|
11552
|
+
return fn ? Object(fn.call(y)) : {};
|
|
11553
11553
|
}
|
|
11554
11554
|
function fi(y, O) {
|
|
11555
11555
|
var R = O ? Dr(y.buffer) : y.buffer;
|
|
@@ -11565,7 +11565,7 @@ zo.exports;
|
|
|
11565
11565
|
R || (R = {});
|
|
11566
11566
|
for (var fe = -1, ae = O.length; ++fe < ae; ) {
|
|
11567
11567
|
var pe = O[fe], me = $ ? $(R[pe], y[pe], pe, R, y) : void 0;
|
|
11568
|
-
|
|
11568
|
+
pn(R, pe, me === void 0 ? y[pe] : me);
|
|
11569
11569
|
}
|
|
11570
11570
|
return R;
|
|
11571
11571
|
}
|
|
@@ -11573,7 +11573,7 @@ zo.exports;
|
|
|
11573
11573
|
return $r(y, Nt(y), O);
|
|
11574
11574
|
}
|
|
11575
11575
|
function Hr(y) {
|
|
11576
|
-
return ai(y,
|
|
11576
|
+
return ai(y, Sn, Nt);
|
|
11577
11577
|
}
|
|
11578
11578
|
function er(y, O) {
|
|
11579
11579
|
var R = y.__data__;
|
|
@@ -11583,7 +11583,7 @@ zo.exports;
|
|
|
11583
11583
|
var R = Je(y, O);
|
|
11584
11584
|
return ci(R) ? R : void 0;
|
|
11585
11585
|
}
|
|
11586
|
-
var Nt = le ? Kt(le, Object) :
|
|
11586
|
+
var Nt = le ? Kt(le, Object) : Tn, It = si;
|
|
11587
11587
|
(Oe && It(new Oe(new ArrayBuffer(1))) != N || he && It(new he()) != d || mt && It(mt.resolve()) != m || lr && It(new lr()) != T || Rr && It(new Rr()) != A) && (It = function(y) {
|
|
11588
11588
|
var O = Ze.call(y), R = O == p ? y.constructor : void 0, $ = R ? et(R) : void 0;
|
|
11589
11589
|
if ($)
|
|
@@ -11606,7 +11606,7 @@ zo.exports;
|
|
|
11606
11606
|
return O && typeof y[0] == "string" && st.call(y, "index") && (R.index = y.index, R.input = y.input), R;
|
|
11607
11607
|
}
|
|
11608
11608
|
function yt(y) {
|
|
11609
|
-
return typeof y.constructor == "function" && !
|
|
11609
|
+
return typeof y.constructor == "function" && !vn(y) ? oi(x(y)) : {};
|
|
11610
11610
|
}
|
|
11611
11611
|
function Bt(y, O, R, $) {
|
|
11612
11612
|
var fe = y.constructor;
|
|
@@ -11629,14 +11629,14 @@ zo.exports;
|
|
|
11629
11629
|
case K:
|
|
11630
11630
|
return fi(y, $);
|
|
11631
11631
|
case d:
|
|
11632
|
-
return
|
|
11632
|
+
return mn(y, $, R);
|
|
11633
11633
|
case l:
|
|
11634
11634
|
case _:
|
|
11635
11635
|
return new fe(y);
|
|
11636
11636
|
case E:
|
|
11637
|
-
return
|
|
11637
|
+
return gn(y);
|
|
11638
11638
|
case T:
|
|
11639
|
-
return
|
|
11639
|
+
return yn(y, $, R);
|
|
11640
11640
|
case b:
|
|
11641
11641
|
return li(y);
|
|
11642
11642
|
}
|
|
@@ -11651,7 +11651,7 @@ zo.exports;
|
|
|
11651
11651
|
function yi(y) {
|
|
11652
11652
|
return !!We && We in y;
|
|
11653
11653
|
}
|
|
11654
|
-
function
|
|
11654
|
+
function vn(y) {
|
|
11655
11655
|
var O = y && y.constructor, R = typeof O == "function" && O.prototype || xt;
|
|
11656
11656
|
return y === R;
|
|
11657
11657
|
}
|
|
@@ -11668,10 +11668,10 @@ zo.exports;
|
|
|
11668
11668
|
}
|
|
11669
11669
|
return "";
|
|
11670
11670
|
}
|
|
11671
|
-
function
|
|
11671
|
+
function _n(y) {
|
|
11672
11672
|
return Ur(y, !0, !0);
|
|
11673
11673
|
}
|
|
11674
|
-
function
|
|
11674
|
+
function En(y, O) {
|
|
11675
11675
|
return y === O || y !== y && O !== O;
|
|
11676
11676
|
}
|
|
11677
11677
|
function pr(y) {
|
|
@@ -11679,17 +11679,17 @@ zo.exports;
|
|
|
11679
11679
|
}
|
|
11680
11680
|
var mr = Array.isArray;
|
|
11681
11681
|
function gr(y) {
|
|
11682
|
-
return y != null &&
|
|
11682
|
+
return y != null && wn(y.length) && !jr(y);
|
|
11683
11683
|
}
|
|
11684
11684
|
function vi(y) {
|
|
11685
11685
|
return qr(y) && gr(y);
|
|
11686
11686
|
}
|
|
11687
|
-
var
|
|
11687
|
+
var bn = Se || _i;
|
|
11688
11688
|
function jr(y) {
|
|
11689
11689
|
var O = wt(y) ? Ze.call(y) : "";
|
|
11690
11690
|
return O == c || O == h;
|
|
11691
11691
|
}
|
|
11692
|
-
function
|
|
11692
|
+
function wn(y) {
|
|
11693
11693
|
return typeof y == "number" && y > -1 && y % 1 == 0 && y <= o;
|
|
11694
11694
|
}
|
|
11695
11695
|
function wt(y) {
|
|
@@ -11699,16 +11699,16 @@ zo.exports;
|
|
|
11699
11699
|
function qr(y) {
|
|
11700
11700
|
return !!y && typeof y == "object";
|
|
11701
11701
|
}
|
|
11702
|
-
function
|
|
11702
|
+
function Sn(y) {
|
|
11703
11703
|
return gr(y) ? fr(y) : ui(y);
|
|
11704
11704
|
}
|
|
11705
|
-
function
|
|
11705
|
+
function Tn() {
|
|
11706
11706
|
return [];
|
|
11707
11707
|
}
|
|
11708
11708
|
function _i() {
|
|
11709
11709
|
return !1;
|
|
11710
11710
|
}
|
|
11711
|
-
e.exports =
|
|
11711
|
+
e.exports = _n;
|
|
11712
11712
|
})(zo, zo.exports);
|
|
11713
11713
|
var qE = zo.exports;
|
|
11714
11714
|
const GE = /* @__PURE__ */ Wt(qE);
|
|
@@ -11731,7 +11731,7 @@ var cb = Array.prototype, ub = Function.prototype, Dp = Object.prototype, Ps = K
|
|
|
11731
11731
|
}(), $p = ub.toString, ia = Dp.hasOwnProperty, Hp = Dp.toString, lb = RegExp(
|
|
11732
11732
|
"^" + $p.call(ia).replace(eb, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11733
11733
|
), zf = Kc.Symbol, fb = cb.splice, db = jp(Kc, "Map"), Ji = jp(Object, "create"), Yf = zf ? zf.prototype : void 0, Kf = Yf ? Yf.toString : void 0;
|
|
11734
|
-
function
|
|
11734
|
+
function nn(e) {
|
|
11735
11735
|
var t = -1, n = e ? e.length : 0;
|
|
11736
11736
|
for (this.clear(); ++t < n; ) {
|
|
11737
11737
|
var r = e[t];
|
|
@@ -11760,11 +11760,11 @@ function yb(e, t) {
|
|
|
11760
11760
|
var n = this.__data__;
|
|
11761
11761
|
return n[e] = Ji && t === void 0 ? Fp : t, this;
|
|
11762
11762
|
}
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11763
|
+
nn.prototype.clear = hb;
|
|
11764
|
+
nn.prototype.delete = pb;
|
|
11765
|
+
nn.prototype.get = mb;
|
|
11766
|
+
nn.prototype.has = gb;
|
|
11767
|
+
nn.prototype.set = yb;
|
|
11768
11768
|
function Gn(e) {
|
|
11769
11769
|
var t = -1, n = e ? e.length : 0;
|
|
11770
11770
|
for (this.clear(); ++t < n; ) {
|
|
@@ -11798,7 +11798,7 @@ Gn.prototype.delete = _b;
|
|
|
11798
11798
|
Gn.prototype.get = Eb;
|
|
11799
11799
|
Gn.prototype.has = bb;
|
|
11800
11800
|
Gn.prototype.set = wb;
|
|
11801
|
-
function
|
|
11801
|
+
function cn(e) {
|
|
11802
11802
|
var t = -1, n = e ? e.length : 0;
|
|
11803
11803
|
for (this.clear(); ++t < n; ) {
|
|
11804
11804
|
var r = e[t];
|
|
@@ -11807,9 +11807,9 @@ function sn(e) {
|
|
|
11807
11807
|
}
|
|
11808
11808
|
function Sb() {
|
|
11809
11809
|
this.__data__ = {
|
|
11810
|
-
hash: new
|
|
11810
|
+
hash: new nn(),
|
|
11811
11811
|
map: new (db || Gn)(),
|
|
11812
|
-
string: new
|
|
11812
|
+
string: new nn()
|
|
11813
11813
|
};
|
|
11814
11814
|
}
|
|
11815
11815
|
function Tb(e) {
|
|
@@ -11824,11 +11824,11 @@ function Ab(e) {
|
|
|
11824
11824
|
function xb(e, t) {
|
|
11825
11825
|
return aa(this, e).set(e, t), this;
|
|
11826
11826
|
}
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11827
|
+
cn.prototype.clear = Sb;
|
|
11828
|
+
cn.prototype.delete = Tb;
|
|
11829
|
+
cn.prototype.get = Ob;
|
|
11830
|
+
cn.prototype.has = Ab;
|
|
11831
|
+
cn.prototype.set = xb;
|
|
11832
11832
|
function Cb(e, t, n) {
|
|
11833
11833
|
var r = e[t];
|
|
11834
11834
|
(!(ia.call(e, t) && qp(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
@@ -11930,9 +11930,9 @@ function Qc(e, t) {
|
|
|
11930
11930
|
var s = e.apply(this, r);
|
|
11931
11931
|
return n.cache = i.set(o, s), s;
|
|
11932
11932
|
};
|
|
11933
|
-
return n.cache = new (Qc.Cache ||
|
|
11933
|
+
return n.cache = new (Qc.Cache || cn)(), n;
|
|
11934
11934
|
}
|
|
11935
|
-
Qc.Cache =
|
|
11935
|
+
Qc.Cache = cn;
|
|
11936
11936
|
function qp(e, t) {
|
|
11937
11937
|
return e === t || e !== e && t !== t;
|
|
11938
11938
|
}
|
|
@@ -15235,10 +15235,10 @@ var hm = (
|
|
|
15235
15235
|
}
|
|
15236
15236
|
}, e;
|
|
15237
15237
|
}()
|
|
15238
|
-
),
|
|
15238
|
+
), on;
|
|
15239
15239
|
(function(e) {
|
|
15240
15240
|
e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
|
|
15241
|
-
})(
|
|
15241
|
+
})(on || (on = {}));
|
|
15242
15242
|
var io = (
|
|
15243
15243
|
/** @class */
|
|
15244
15244
|
function(e) {
|
|
@@ -15257,7 +15257,7 @@ var io = (
|
|
|
15257
15257
|
function(e) {
|
|
15258
15258
|
St(t, e);
|
|
15259
15259
|
function t(n, r) {
|
|
15260
|
-
return e.call(this,
|
|
15260
|
+
return e.call(this, on.UNSUPPORTED_FORMATTER, n, r) || this;
|
|
15261
15261
|
}
|
|
15262
15262
|
return t;
|
|
15263
15263
|
}(io)
|
|
@@ -15266,7 +15266,7 @@ var io = (
|
|
|
15266
15266
|
function(e) {
|
|
15267
15267
|
St(t, e);
|
|
15268
15268
|
function t(n, r) {
|
|
15269
|
-
return e.call(this,
|
|
15269
|
+
return e.call(this, on.INVALID_CONFIG, n, r) || this;
|
|
15270
15270
|
}
|
|
15271
15271
|
return t;
|
|
15272
15272
|
}(io)
|
|
@@ -15275,7 +15275,7 @@ var io = (
|
|
|
15275
15275
|
function(e) {
|
|
15276
15276
|
St(t, e);
|
|
15277
15277
|
function t(n, r) {
|
|
15278
|
-
return e.call(this,
|
|
15278
|
+
return e.call(this, on.MISSING_DATA, n, r) || this;
|
|
15279
15279
|
}
|
|
15280
15280
|
return t;
|
|
15281
15281
|
}(io)
|
|
@@ -15284,7 +15284,7 @@ var io = (
|
|
|
15284
15284
|
function(e) {
|
|
15285
15285
|
St(t, e);
|
|
15286
15286
|
function t(n, r, o) {
|
|
15287
|
-
var i = e.call(this,
|
|
15287
|
+
var i = e.call(this, on.FORMAT_ERROR, "".concat(n, `
|
|
15288
15288
|
Locale: `).concat(r, `
|
|
15289
15289
|
`), o) || this;
|
|
15290
15290
|
return i.locale = r, i;
|
|
@@ -15310,7 +15310,7 @@ Description: `).concat(o == null ? void 0 : o.description, `
|
|
|
15310
15310
|
function(e) {
|
|
15311
15311
|
St(t, e);
|
|
15312
15312
|
function t(n, r) {
|
|
15313
|
-
var o = e.call(this,
|
|
15313
|
+
var o = e.call(this, on.MISSING_TRANSLATION, 'Missing message: "'.concat(n.id, '" for locale "').concat(r, '", using ').concat(n.defaultMessage ? "default message (".concat(typeof n.defaultMessage == "string" ? n.defaultMessage : n.defaultMessage.map(function(i) {
|
|
15314
15314
|
var s;
|
|
15315
15315
|
return (s = i.value) !== null && s !== void 0 ? s : JSON.stringify(i);
|
|
15316
15316
|
}).join(), ")") : "id", " as fallback.")) || this;
|
|
@@ -15319,7 +15319,7 @@ Description: `).concat(o == null ? void 0 : o.description, `
|
|
|
15319
15319
|
return t;
|
|
15320
15320
|
}(io)
|
|
15321
15321
|
);
|
|
15322
|
-
function
|
|
15322
|
+
function un(e, t, n) {
|
|
15323
15323
|
return n === void 0 && (n = {}), t.reduce(function(r, o) {
|
|
15324
15324
|
return o in e ? r[o] = e[o] : o in n && (r[o] = n[o]), r;
|
|
15325
15325
|
}, {});
|
|
@@ -15515,7 +15515,7 @@ var wc = function(e, t, n, r, o) {
|
|
|
15515
15515
|
function ca(e, t, n, r) {
|
|
15516
15516
|
var o = e.locale, i = e.formats, s = e.onError, a = e.timeZone;
|
|
15517
15517
|
r === void 0 && (r = {});
|
|
15518
|
-
var u = r.format, f = ie(ie({}, a && { timeZone: a }), u && tu(i, t, u, s)), c =
|
|
15518
|
+
var u = r.format, f = ie(ie({}, a && { timeZone: a }), u && tu(i, t, u, s)), c = un(r, gm, f);
|
|
15519
15519
|
return t === "time" && !c.hour && !c.minute && !c.second && !c.timeStyle && !c.dateStyle && (c = ie(ie({}, c), { hour: "numeric", minute: "numeric" })), n(o, c);
|
|
15520
15520
|
}
|
|
15521
15521
|
function Xw(e, t) {
|
|
@@ -15543,7 +15543,7 @@ function Jw(e, t) {
|
|
|
15543
15543
|
function Zw(e, t) {
|
|
15544
15544
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
15545
15545
|
n[r - 2] = arguments[r];
|
|
15546
|
-
var o = n[0], i = n[1], s = n[2], a = s === void 0 ? {} : s, u = e.timeZone, f = e.locale, c = e.onError, h =
|
|
15546
|
+
var o = n[0], i = n[1], s = n[2], a = s === void 0 ? {} : s, u = e.timeZone, f = e.locale, c = e.onError, h = un(a, gm, u ? { timeZone: u } : {});
|
|
15547
15547
|
try {
|
|
15548
15548
|
return t(f, h).formatRange(o, i);
|
|
15549
15549
|
} catch (d) {
|
|
@@ -15584,7 +15584,7 @@ function nS(e, t, n, r) {
|
|
|
15584
15584
|
s || i(new Ar(`Intl.DisplayNames is not available in this environment.
|
|
15585
15585
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
15586
15586
|
`, Vt.MISSING_INTL_API));
|
|
15587
|
-
var a =
|
|
15587
|
+
var a = un(r, rS);
|
|
15588
15588
|
try {
|
|
15589
15589
|
return t(o, a).of(n);
|
|
15590
15590
|
} catch (u) {
|
|
@@ -15613,7 +15613,7 @@ function ym(e, t, n, r) {
|
|
|
15613
15613
|
s || i(new Ar(`Intl.ListFormat is not available in this environment.
|
|
15614
15614
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
15615
15615
|
`, Vt.MISSING_INTL_API));
|
|
15616
|
-
var a =
|
|
15616
|
+
var a = un(r, iS);
|
|
15617
15617
|
try {
|
|
15618
15618
|
var u = {}, f = n.map(function(c, h) {
|
|
15619
15619
|
if (typeof c == "object") {
|
|
@@ -15636,7 +15636,7 @@ function cS(e, t, n, r) {
|
|
|
15636
15636
|
r === void 0 && (r = {}), Intl.PluralRules || i(new Ar(`Intl.PluralRules is not available in this environment.
|
|
15637
15637
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
15638
15638
|
`, Vt.MISSING_INTL_API));
|
|
15639
|
-
var s =
|
|
15639
|
+
var s = un(r, sS);
|
|
15640
15640
|
try {
|
|
15641
15641
|
return t(o, s).select(n);
|
|
15642
15642
|
} catch (a) {
|
|
@@ -15648,7 +15648,7 @@ var uS = ["numeric", "style"];
|
|
|
15648
15648
|
function lS(e, t, n) {
|
|
15649
15649
|
var r = e.locale, o = e.formats, i = e.onError;
|
|
15650
15650
|
n === void 0 && (n = {});
|
|
15651
|
-
var s = n.format, a = !!s && tu(o, "relative", s, i) || {}, u =
|
|
15651
|
+
var s = n.format, a = !!s && tu(o, "relative", s, i) || {}, u = un(n, uS, a);
|
|
15652
15652
|
return t(r, u);
|
|
15653
15653
|
}
|
|
15654
15654
|
function fS(e, t, n, r, o) {
|
|
@@ -15689,7 +15689,7 @@ var dS = [
|
|
|
15689
15689
|
function vm(e, t, n) {
|
|
15690
15690
|
var r = e.locale, o = e.formats, i = e.onError;
|
|
15691
15691
|
n === void 0 && (n = {});
|
|
15692
|
-
var s = n.format, a = s && tu(o, "number", s, i) || {}, u =
|
|
15692
|
+
var s = n.format, a = s && tu(o, "number", s, i) || {}, u = un(n, dS, a);
|
|
15693
15693
|
return t(r, u);
|
|
15694
15694
|
}
|
|
15695
15695
|
function hS(e, t, n, r) {
|
|
@@ -15897,7 +15897,7 @@ bm("formatTime");
|
|
|
15897
15897
|
let Vi = !1;
|
|
15898
15898
|
const TS = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
15899
15899
|
const r = Ee(), o = qe(null), [i, s] = we("hidden");
|
|
15900
|
-
|
|
15900
|
+
He(() => {
|
|
15901
15901
|
const u = o.current;
|
|
15902
15902
|
if (u)
|
|
15903
15903
|
return u.addEventListener("transitionend", a), () => {
|
|
@@ -15907,7 +15907,7 @@ const TS = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
|
15907
15907
|
const a = ({ propertyName: u }) => {
|
|
15908
15908
|
u === "opacity" && (Vi !== !1 && clearTimeout(Vi), s((f) => f === "opening" ? "open" : f === "closing" ? "closed" : f === "closed" ? "hidden" : f));
|
|
15909
15909
|
};
|
|
15910
|
-
return
|
|
15910
|
+
return rn(() => {
|
|
15911
15911
|
Vi !== !1 && clearTimeout(Vi);
|
|
15912
15912
|
let u = "open";
|
|
15913
15913
|
e ? s("opening") : (s("closing"), u = "hidden"), Vi = setTimeout(() => {
|
|
@@ -16201,7 +16201,7 @@ function AT(e, t, n) {
|
|
|
16201
16201
|
const o = r.trimEnd();
|
|
16202
16202
|
return o == "" ? null : [r, o];
|
|
16203
16203
|
}
|
|
16204
|
-
function
|
|
16204
|
+
function xn(e) {
|
|
16205
16205
|
try {
|
|
16206
16206
|
if (decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "").match(/^\s*(javascript|vbscript|data(?!:image)):/i))
|
|
16207
16207
|
return;
|
|
@@ -16293,7 +16293,7 @@ function NT(e, t = {}) {
|
|
|
16293
16293
|
return F === "style" ? B.split(/;\s?/).reduce(function(q, G) {
|
|
16294
16294
|
const V = G.slice(0, G.indexOf(":"));
|
|
16295
16295
|
return q[V.replace(/(-[a-z])/g, (H) => H[1].toUpperCase())] = G.slice(V.length + 1).trim(), q;
|
|
16296
|
-
}, {}) : F === "href" ?
|
|
16296
|
+
}, {}) : F === "href" ? xn(B) : (B.match(VS) && (B = B.slice(1, B.length - 1)), B === "true" || B !== "false" && B);
|
|
16297
16297
|
}(b, A);
|
|
16298
16298
|
typeof N == "string" && (Cc.test(N) || Rc.test(N)) && (m[w] = xe.cloneElement(o(N.trim()), { key: T }));
|
|
16299
16299
|
} else
|
|
@@ -16301,11 +16301,11 @@ function NT(e, t = {}) {
|
|
|
16301
16301
|
return m;
|
|
16302
16302
|
}, {}) : null;
|
|
16303
16303
|
}
|
|
16304
|
-
const s = [], a = {}, u = { blockQuote: { t: or(Rm), i: ve.HIGH, l: (l, p, m) => ({ v: p(l[0].replace(LS, ""), m) }), h: (l, p, m) => r("blockquote", { key: m.k }, p(l.v, m)) }, breakLine: { t: Wi(kS), i: ve.HIGH, l: Ds, h: (l, p, m) => r("br", { key: m.k }) }, breakThematic: { t: or(MS), i: ve.HIGH, l: Ds, h: (l, p, m) => r("hr", { key: m.k }) }, codeBlock: { t: or(Im), i: ve.MAX, l: (l) => ({ v: l[0].replace(/^ {4}/gm, "").replace(/\n+$/, ""), M: void 0 }), h: (l, p, m) => r("pre", { key: m.k }, r("code", Zr({}, l.O, { className: l.M ? `lang-${l.M}` : "" }), l.v)) }, codeFenced: { t: or(Nm), i: ve.MAX, l: (l) => ({ O: i(l[3] || ""), v: l[4], M: l[2] || void 0, type: "codeBlock" }) }, codeInline: { t: _r(BS), i: ve.LOW, l: (l) => ({ v: l[2] }), h: (l, p, m) => r("code", { key: m.k }, l.v) }, footnote: { t: or(DS), i: ve.MAX, l: (l) => (s.push({ I: l[2], j: l[1] }), {}), h: $s }, footnoteReference: { t: vr($S), i: ve.HIGH, l: (l) => ({ v: l[1], B: `#${t.slugify(l[1])}` }), h: (l, p, m) => r("a", { key: m.k, href:
|
|
16304
|
+
const s = [], a = {}, u = { blockQuote: { t: or(Rm), i: ve.HIGH, l: (l, p, m) => ({ v: p(l[0].replace(LS, ""), m) }), h: (l, p, m) => r("blockquote", { key: m.k }, p(l.v, m)) }, breakLine: { t: Wi(kS), i: ve.HIGH, l: Ds, h: (l, p, m) => r("br", { key: m.k }) }, breakThematic: { t: or(MS), i: ve.HIGH, l: Ds, h: (l, p, m) => r("hr", { key: m.k }) }, codeBlock: { t: or(Im), i: ve.MAX, l: (l) => ({ v: l[0].replace(/^ {4}/gm, "").replace(/\n+$/, ""), M: void 0 }), h: (l, p, m) => r("pre", { key: m.k }, r("code", Zr({}, l.O, { className: l.M ? `lang-${l.M}` : "" }), l.v)) }, codeFenced: { t: or(Nm), i: ve.MAX, l: (l) => ({ O: i(l[3] || ""), v: l[4], M: l[2] || void 0, type: "codeBlock" }) }, codeInline: { t: _r(BS), i: ve.LOW, l: (l) => ({ v: l[2] }), h: (l, p, m) => r("code", { key: m.k }, l.v) }, footnote: { t: or(DS), i: ve.MAX, l: (l) => (s.push({ I: l[2], j: l[1] }), {}), h: $s }, footnoteReference: { t: vr($S), i: ve.HIGH, l: (l) => ({ v: l[1], B: `#${t.slugify(l[1])}` }), h: (l, p, m) => r("a", { key: m.k, href: xn(l.B) }, r("sup", { key: m.k }, l.v)) }, gfmTask: { t: vr(jS), i: ve.HIGH, l: (l) => ({ R: l[1].toLowerCase() === "x" }), h: (l, p, m) => r("input", { checked: l.R, key: m.k, readOnly: !0, type: "checkbox" }) }, heading: { t: or(t.enforceAtxHeadings ? Lm : Pm), i: ve.HIGH, l: (l, p, m) => ({ v: $o(p, l[2], m), T: t.slugify(l[2]), C: l[1].length }), h: (l, p, m) => r(`h${l.C}`, { id: l.T, key: m.k }, p(l.v, m)) }, headingSetext: { t: or(km), i: ve.MAX, l: (l, p, m) => ({ v: $o(p, l[1], m), C: l[2] === "=" ? 1 : 2, type: "heading" }) }, htmlComment: { t: Wi(Mm), i: ve.HIGH, l: () => ({}), h: $s }, image: { t: _r(bT), i: ve.HIGH, l: (l) => ({ D: l[1], B: gd(l[2]), F: l[3] }), h: (l, p, m) => r("img", { key: m.k, alt: l.D || void 0, title: l.F || void 0, src: xn(l.B) }) }, link: { t: vr(ET), i: ve.LOW, l: (l, p, m) => ({ v: xT(p, l[1], m), B: gd(l[2]), F: l[3] }), h: (l, p, m) => r("a", { key: m.k, href: xn(l.B), title: l.F }, p(l.v, m)) }, linkAngleBraceStyleDetector: { t: vr(YS), i: ve.MAX, l: (l) => ({ v: [{ v: l[1], type: "text" }], B: l[1], type: "link" }) }, linkBareUrlDetector: { t: (l, p) => p.N ? null : vr(WS)(l, p), i: ve.MAX, l: (l) => ({ v: [{ v: l[1], type: "text" }], B: l[1], F: void 0, type: "link" }) }, linkMailtoDetector: { t: vr(zS), i: ve.MAX, l(l) {
|
|
16305
16305
|
let p = l[1], m = l[1];
|
|
16306
16306
|
return IS.test(m) || (m = "mailto:" + m), { v: [{ v: p.replace("mailto:", ""), type: "text" }], B: m, type: "link" };
|
|
16307
16307
|
} }, orderedList: hd(r, 1), unorderedList: hd(r, 2), newlineCoalescer: { t: or(FS), i: ve.LOW, l: Ds, h: () => `
|
|
16308
|
-
` }, paragraph: { t: AT, i: ve.LOW, l: Us, h: (l, p, m) => r("p", { key: m.k }, p(l.v, m)) }, ref: { t: vr(QS), i: ve.MAX, l: (l) => (a[l[1]] = { B: l[2], F: l[4] }, {}), h: $s }, refImage: { t: _r(XS), i: ve.MAX, l: (l) => ({ D: l[1] || void 0, P: l[2] }), h: (l, p, m) => r("img", { key: m.k, alt: l.D, src:
|
|
16308
|
+
` }, paragraph: { t: AT, i: ve.LOW, l: Us, h: (l, p, m) => r("p", { key: m.k }, p(l.v, m)) }, ref: { t: vr(QS), i: ve.MAX, l: (l) => (a[l[1]] = { B: l[2], F: l[4] }, {}), h: $s }, refImage: { t: _r(XS), i: ve.MAX, l: (l) => ({ D: l[1] || void 0, P: l[2] }), h: (l, p, m) => r("img", { key: m.k, alt: l.D, src: xn(a[l.P].B), title: a[l.P].F }) }, refLink: { t: vr(JS), i: ve.MAX, l: (l, p, m) => ({ v: p(l[1], m), Z: p(l[0].replace(ZS, "\\$1"), m), P: l[2] }), h: (l, p, m) => a[l.P] ? r("a", { key: m.k, href: xn(a[l.P].B), title: a[l.P].F }, p(l.v, m)) : r("span", { key: m.k }, p(l.Z, m)) }, table: { t: or(Bm), i: ve.HIGH, l: OT, h: (l, p, m) => r("table", { key: m.k }, r("thead", null, r("tr", null, l.L.map(function(E, T) {
|
|
16309
16309
|
return r("th", { key: T, style: md(l, T) }, p(E, m));
|
|
16310
16310
|
}))), r("tbody", null, l.A.map(function(E, T) {
|
|
16311
16311
|
return r("tr", { key: T }, E.map(function(_, b) {
|
|
@@ -16430,20 +16430,20 @@ const PT = ({ type: e = "default", className: t = "", heading: n = !1, children:
|
|
|
16430
16430
|
] });
|
|
16431
16431
|
const jA = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: o }) => {
|
|
16432
16432
|
const i = Ee(), s = qe(null), [a, u] = we(""), [f, c] = we("closed");
|
|
16433
|
-
|
|
16433
|
+
He(() => {
|
|
16434
16434
|
const l = s.current;
|
|
16435
16435
|
if (l)
|
|
16436
16436
|
return l.addEventListener("transitionend", h), () => {
|
|
16437
16437
|
l.removeEventListener("transitionend", h);
|
|
16438
16438
|
};
|
|
16439
|
-
}, []),
|
|
16439
|
+
}, []), He(() => {
|
|
16440
16440
|
if (!r || typeof r != "string")
|
|
16441
16441
|
return;
|
|
16442
16442
|
const l = r.split(`
|
|
16443
16443
|
`);
|
|
16444
16444
|
u(l.length < 3 ? `${r.substring(0, 400)}...` : l.slice(0, 3).join(`
|
|
16445
16445
|
`));
|
|
16446
|
-
}, [r]),
|
|
16446
|
+
}, [r]), He(() => {
|
|
16447
16447
|
f === "ready-to-close" && c("closing");
|
|
16448
16448
|
}, [f]);
|
|
16449
16449
|
const h = ({ propertyName: l }) => {
|
|
@@ -16597,14 +16597,14 @@ const js = "loadingBlock_", qT = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
16597
16597
|
}
|
|
16598
16598
|
);
|
|
16599
16599
|
}, qA = Dn(qT);
|
|
16600
|
-
const
|
|
16600
|
+
const an = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ C(Bd, { element: e, className: ne("loading-placeholder", t), ...n });
|
|
16601
16601
|
const Pc = {
|
|
16602
16602
|
header: ["logo", "link", "link", "search"],
|
|
16603
16603
|
sidebar: ["text", "text", "text", "text", "text"],
|
|
16604
16604
|
"cards-section": ["subtitle", "cards"],
|
|
16605
16605
|
cards: ["card", "card", "card", "card"],
|
|
16606
16606
|
"overview-page": ["header", "sidebar", "title", "text", "cards-section", "cards-section", "footer"]
|
|
16607
|
-
}, Km = (e, t) => e in Pc ? /* @__PURE__ */ C("div", { className: e, children: Pc[e].map((n, r) => Km(n, r)) }, t) : /* @__PURE__ */ C(
|
|
16607
|
+
}, Km = (e, t) => e in Pc ? /* @__PURE__ */ C("div", { className: e, children: Pc[e].map((n, r) => Km(n, r)) }, t) : /* @__PURE__ */ C(an, { className: e }, t), GT = ({ layout: e = "overview-page" }) => /* @__PURE__ */ C("div", { className: ne("loading-state", e), children: Pc[e].map((t, n) => Km(t, n)) }), Qm = (e) => {
|
|
16608
16608
|
const t = e && e.toUpperCase().split(" ");
|
|
16609
16609
|
return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
|
|
16610
16610
|
}, Lo = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], VT = (e) => {
|
|
@@ -16618,7 +16618,7 @@ const Pc = {
|
|
|
16618
16618
|
};
|
|
16619
16619
|
const _d = 256, ou = ({ className: e = "", src: t = "", name: n, alt: r, width: o = _d, height: i = _d, ...s }) => {
|
|
16620
16620
|
const [a, u] = we(!1), f = qe(null);
|
|
16621
|
-
return
|
|
16621
|
+
return He(() => {
|
|
16622
16622
|
const c = f.current;
|
|
16623
16623
|
if (!c)
|
|
16624
16624
|
return;
|
|
@@ -16716,7 +16716,7 @@ const Ed = {
|
|
|
16716
16716
|
if (h < a) {
|
|
16717
16717
|
const { name: p = "", image: m = "" } = Xm(c);
|
|
16718
16718
|
if (s)
|
|
16719
|
-
return /* @__PURE__ */ C(
|
|
16719
|
+
return /* @__PURE__ */ C(an, { element: "li", className: "contributor" }, h);
|
|
16720
16720
|
d = /* @__PURE__ */ C(ou, { name: p, src: m, width: Ed[o || "medium"], height: Ed[o || "medium"] });
|
|
16721
16721
|
} else if (h === a) {
|
|
16722
16722
|
const p = (t || n.length) - a;
|
|
@@ -16740,8 +16740,8 @@ const Ed = {
|
|
|
16740
16740
|
const qs = "joinCommunityButton", YT = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
|
|
16741
16741
|
}, leave: () => {
|
|
16742
16742
|
} } }) => {
|
|
16743
|
-
const o = Ee(), i =
|
|
16744
|
-
|
|
16743
|
+
const o = Ee(), i = Ln(ao), s = i && typeof i.id == "string", [a, u] = we(e), [f, c] = we(e ? "joined" : "notJoined");
|
|
16744
|
+
He(() => {
|
|
16745
16745
|
f === "joining" ? c("joined") : f === "leaving" && c("notJoined");
|
|
16746
16746
|
}, [a]);
|
|
16747
16747
|
const h = {}, d = {};
|
|
@@ -16868,7 +16868,7 @@ const QT = ({ element: e = "div", id: t = "more-menu", options: n, className: r
|
|
|
16868
16868
|
const o = Ee(), i = qe(null), [s, a] = we(!1), u = (f) => {
|
|
16869
16869
|
i.current && f.target instanceof HTMLElement && !i.current.contains(f.target) && a(!1);
|
|
16870
16870
|
};
|
|
16871
|
-
return
|
|
16871
|
+
return He(() => (document.addEventListener("click", u, !0), () => {
|
|
16872
16872
|
document.removeEventListener("click", u, !0);
|
|
16873
16873
|
})), Ce.createElement(e, {
|
|
16874
16874
|
ref: i,
|
|
@@ -17061,11 +17061,11 @@ const Ws = "cookieBanner_", zs = ["apol-cookie-banner", "apolitical-performance-
|
|
|
17061
17061
|
facebook: { href: "https://www.facebook.com/apoliticalco" }
|
|
17062
17062
|
}
|
|
17063
17063
|
};
|
|
17064
|
-
const
|
|
17064
|
+
const Nn = "footer_", Ko = "SiteFooter", bd = ({ group: e }) => {
|
|
17065
17065
|
const t = ur[e].order || [];
|
|
17066
17066
|
let n = !1;
|
|
17067
17067
|
return "text" in ur[e] && (n = ur[e].text), /* @__PURE__ */ te(du, { children: [
|
|
17068
|
-
/* @__PURE__ */ C("p", { className: "pre-title", children: /* @__PURE__ */ C(wr, { id: `${
|
|
17068
|
+
/* @__PURE__ */ C("p", { className: "pre-title", children: /* @__PURE__ */ C(wr, { id: `${Nn}${e}` }) }),
|
|
17069
17069
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ C("ul", { className: "text-medium", children: t.map((r) => {
|
|
17070
17070
|
if (["order", "child", "text"].includes(r))
|
|
17071
17071
|
return null;
|
|
@@ -17078,14 +17078,14 @@ const Rn = "footer_", Ko = "SiteFooter", bd = ({ group: e }) => {
|
|
|
17078
17078
|
"data-gtm-event-context": Ko,
|
|
17079
17079
|
"data-gtm-event-type": i,
|
|
17080
17080
|
...s,
|
|
17081
|
-
children: /* @__PURE__ */ C(wr, { id: `${
|
|
17081
|
+
children: /* @__PURE__ */ C(wr, { id: `${Nn}${e}_${r}` })
|
|
17082
17082
|
}
|
|
17083
17083
|
) }, `${e}_${r}`);
|
|
17084
17084
|
}) }),
|
|
17085
17085
|
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ C("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ te(du, { children: [
|
|
17086
|
-
/* @__PURE__ */ C("dt", { children: /* @__PURE__ */ C(wr, { id: `${
|
|
17086
|
+
/* @__PURE__ */ C("dt", { children: /* @__PURE__ */ C(wr, { id: `${Nn}${e}_${r}` }) }),
|
|
17087
17087
|
/* @__PURE__ */ te("dd", { children: [
|
|
17088
|
-
typeof n != "boolean" && n[r].address && /* @__PURE__ */ C("address", { children: /* @__PURE__ */ C(wr, { id: `${
|
|
17088
|
+
typeof n != "boolean" && n[r].address && /* @__PURE__ */ C("address", { children: /* @__PURE__ */ C(wr, { id: `${Nn}${e}_${r}_address`, values: { br: /* @__PURE__ */ C("br", {}) } }) }),
|
|
17089
17089
|
typeof n != "boolean" && n[r].email && /* @__PURE__ */ C(
|
|
17090
17090
|
"a",
|
|
17091
17091
|
{
|
|
@@ -17128,11 +17128,11 @@ const Rn = "footer_", Ko = "SiteFooter", bd = ({ group: e }) => {
|
|
|
17128
17128
|
className: "gtm-trackable",
|
|
17129
17129
|
"data-gtm-event-context": Ko,
|
|
17130
17130
|
"data-gtm-event-type": "social-click",
|
|
17131
|
-
children: /* @__PURE__ */ C("span", { className: "hidden", children: /* @__PURE__ */ C(wr, { id: `${
|
|
17131
|
+
children: /* @__PURE__ */ C("span", { className: "hidden", children: /* @__PURE__ */ C(wr, { id: `${Nn}social_${e}` }) })
|
|
17132
17132
|
}
|
|
17133
17133
|
) }, e);
|
|
17134
17134
|
}) }),
|
|
17135
|
-
/* @__PURE__ */ C("small", { children: /* @__PURE__ */ C(wr, { id: `${
|
|
17135
|
+
/* @__PURE__ */ C("small", { children: /* @__PURE__ */ C(wr, { id: `${Nn}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
|
|
17136
17136
|
] })
|
|
17137
17137
|
] }) });
|
|
17138
17138
|
const Mo = "emailHelperTextBox_", QA = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
|
|
@@ -17175,7 +17175,7 @@ const Mo = "emailHelperTextBox_", QA = ({ type: e, email: t, redirectPath: n, re
|
|
|
17175
17175
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
17176
17176
|
[t, n, r]
|
|
17177
17177
|
);
|
|
17178
|
-
|
|
17178
|
+
He(
|
|
17179
17179
|
() => {
|
|
17180
17180
|
let l = Mo, p = "default", m = {}, E = {};
|
|
17181
17181
|
switch (e) {
|
|
@@ -17236,8 +17236,8 @@ const Mo = "emailHelperTextBox_", QA = ({ type: e, email: t, redirectPath: n, re
|
|
|
17236
17236
|
return ["link", "mail"].forEach((l) => {
|
|
17237
17237
|
c[l] = Object.keys(i[l]).length ? (p) => /* @__PURE__ */ C("a", { ...i[l], children: p }) : (p) => p;
|
|
17238
17238
|
}), /* @__PURE__ */ C(PT, { type: i.type, heading: a ? !1 : o.formatMessage({ id: `${i.path}_title` }), children: a ? /* @__PURE__ */ te(ht, { children: [
|
|
17239
|
-
/* @__PURE__ */ C(
|
|
17240
|
-
/* @__PURE__ */ C(
|
|
17239
|
+
/* @__PURE__ */ C(an, { element: "span" }),
|
|
17240
|
+
/* @__PURE__ */ C(an, { element: "span" })
|
|
17241
17241
|
] }) : (
|
|
17242
17242
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17243
17243
|
// @ts-ignore
|
|
@@ -17296,10 +17296,10 @@ const JA = ({
|
|
|
17296
17296
|
f((_) => ({ ..._, setUp: !0, disabled: !0 })), o(T);
|
|
17297
17297
|
}
|
|
17298
17298
|
};
|
|
17299
|
-
if (
|
|
17299
|
+
if (He(() => {
|
|
17300
17300
|
s && !u.setUp && c();
|
|
17301
17301
|
}, [s]), !s)
|
|
17302
|
-
return /* @__PURE__ */ C(
|
|
17302
|
+
return /* @__PURE__ */ C(an, { className: "rating-placeholder" });
|
|
17303
17303
|
const { id: h, rating: d, disabled: l } = u, p = "ratings_", m = {
|
|
17304
17304
|
text: a.formatMessage({ id: `${p}text` }),
|
|
17305
17305
|
low: a.formatMessage({ id: `${p}low` }),
|
|
@@ -17348,7 +17348,7 @@ const tO = ({
|
|
|
17348
17348
|
gtmEvent: i = "form-submission"
|
|
17349
17349
|
}) => {
|
|
17350
17350
|
const { searchIsOpen: s = !0, isDesktopVersion: a = !1 } = n || {}, u = Ee(), f = qe(null);
|
|
17351
|
-
|
|
17351
|
+
rn(() => {
|
|
17352
17352
|
!n || a || !s || f.current && f.current.focus();
|
|
17353
17353
|
}, [s]);
|
|
17354
17354
|
const c = (h) => {
|
|
@@ -17412,7 +17412,7 @@ var yO = Array.prototype, vO = Function.prototype, og = Object.prototype, Ks = s
|
|
|
17412
17412
|
}(), ag = vO.toString, cu = og.hasOwnProperty, sg = og.toString, _O = RegExp(
|
|
17413
17413
|
"^" + ag.call(cu).replace(lO, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
17414
17414
|
), Sd = su.Symbol, EO = yO.splice, bO = cg(su, "Map"), Zi = cg(Object, "create"), Td = Sd ? Sd.prototype : void 0, Od = Td ? Td.toString : void 0;
|
|
17415
|
-
function
|
|
17415
|
+
function sn(e) {
|
|
17416
17416
|
var t = -1, n = e ? e.length : 0;
|
|
17417
17417
|
for (this.clear(); ++t < n; ) {
|
|
17418
17418
|
var r = e[t];
|
|
@@ -17441,11 +17441,11 @@ function AO(e, t) {
|
|
|
17441
17441
|
var n = this.__data__;
|
|
17442
17442
|
return n[e] = Zi && t === void 0 ? ng : t, this;
|
|
17443
17443
|
}
|
|
17444
|
-
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17444
|
+
sn.prototype.clear = wO;
|
|
17445
|
+
sn.prototype.delete = SO;
|
|
17446
|
+
sn.prototype.get = TO;
|
|
17447
|
+
sn.prototype.has = OO;
|
|
17448
|
+
sn.prototype.set = AO;
|
|
17449
17449
|
function Vn(e) {
|
|
17450
17450
|
var t = -1, n = e ? e.length : 0;
|
|
17451
17451
|
for (this.clear(); ++t < n; ) {
|
|
@@ -17479,7 +17479,7 @@ Vn.prototype.delete = CO;
|
|
|
17479
17479
|
Vn.prototype.get = RO;
|
|
17480
17480
|
Vn.prototype.has = NO;
|
|
17481
17481
|
Vn.prototype.set = IO;
|
|
17482
|
-
function
|
|
17482
|
+
function ln(e) {
|
|
17483
17483
|
var t = -1, n = e ? e.length : 0;
|
|
17484
17484
|
for (this.clear(); ++t < n; ) {
|
|
17485
17485
|
var r = e[t];
|
|
@@ -17488,9 +17488,9 @@ function un(e) {
|
|
|
17488
17488
|
}
|
|
17489
17489
|
function PO() {
|
|
17490
17490
|
this.__data__ = {
|
|
17491
|
-
hash: new
|
|
17491
|
+
hash: new sn(),
|
|
17492
17492
|
map: new (bO || Vn)(),
|
|
17493
|
-
string: new
|
|
17493
|
+
string: new sn()
|
|
17494
17494
|
};
|
|
17495
17495
|
}
|
|
17496
17496
|
function LO(e) {
|
|
@@ -17505,11 +17505,11 @@ function MO(e) {
|
|
|
17505
17505
|
function BO(e, t) {
|
|
17506
17506
|
return fa(this, e).set(e, t), this;
|
|
17507
17507
|
}
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
|
|
17512
|
-
|
|
17508
|
+
ln.prototype.clear = PO;
|
|
17509
|
+
ln.prototype.delete = LO;
|
|
17510
|
+
ln.prototype.get = kO;
|
|
17511
|
+
ln.prototype.has = MO;
|
|
17512
|
+
ln.prototype.set = BO;
|
|
17513
17513
|
function la(e, t) {
|
|
17514
17514
|
for (var n = e.length; n--; )
|
|
17515
17515
|
if (zO(e[n][0], t))
|
|
@@ -17596,9 +17596,9 @@ function uu(e, t) {
|
|
|
17596
17596
|
var s = e.apply(this, r);
|
|
17597
17597
|
return n.cache = i.set(o, s), s;
|
|
17598
17598
|
};
|
|
17599
|
-
return n.cache = new (uu.Cache ||
|
|
17599
|
+
return n.cache = new (uu.Cache || ln)(), n;
|
|
17600
17600
|
}
|
|
17601
|
-
uu.Cache =
|
|
17601
|
+
uu.Cache = ln;
|
|
17602
17602
|
function zO(e, t) {
|
|
17603
17603
|
return e === t || e !== e && t !== t;
|
|
17604
17604
|
}
|
|
@@ -17883,7 +17883,7 @@ const fg = /* @__PURE__ */ Wt(JO), Pe = {
|
|
|
17883
17883
|
] }, e);
|
|
17884
17884
|
};
|
|
17885
17885
|
const ZO = { height: 67, height_desktop: 83 }, dg = () => {
|
|
17886
|
-
const e = Ee(), t =
|
|
17886
|
+
const e = Ee(), t = Ln(ao), n = na(!0, !0), r = t && typeof t.id == "string", o = In(
|
|
17887
17887
|
() => Pe.getIsDesktopVersion(r, n),
|
|
17888
17888
|
[r, n]
|
|
17889
17889
|
), [i, s] = bg(Wb, {
|
|
@@ -17908,7 +17908,7 @@ const ZO = { height: 67, height_desktop: 83 }, dg = () => {
|
|
|
17908
17908
|
const c = (d, l) => {
|
|
17909
17909
|
Pe.handleMenus({ id: d, value: l, menus: u, dispatch: s });
|
|
17910
17910
|
}, h = qe(null);
|
|
17911
|
-
return
|
|
17911
|
+
return rn(() => {
|
|
17912
17912
|
u.navigation && Pe.autoFocus({
|
|
17913
17913
|
menu: "navigation",
|
|
17914
17914
|
navigationRef: h,
|
|
@@ -17916,7 +17916,7 @@ const ZO = { height: 67, height_desktop: 83 }, dg = () => {
|
|
|
17916
17916
|
focusElements: f,
|
|
17917
17917
|
dispatch: s
|
|
17918
17918
|
});
|
|
17919
|
-
}, [u.navigation]),
|
|
17919
|
+
}, [u.navigation]), rn(() => {
|
|
17920
17920
|
u.account && Pe.autoFocus({
|
|
17921
17921
|
menu: "account",
|
|
17922
17922
|
navigationRef: h,
|
|
@@ -18384,9 +18384,9 @@ const _t = "discussion_form_", wA = ({
|
|
|
18384
18384
|
gtmContext: a = "DiscussionForm"
|
|
18385
18385
|
}) => {
|
|
18386
18386
|
var B, q;
|
|
18387
|
-
const u = Ee(), f =
|
|
18387
|
+
const u = Ee(), f = Ln(ao), [c, h] = we(t.isEditing && t.isEditing.text || ""), [d, l] = we(i.error || !1), [p, m] = we(!1), E = qe(null);
|
|
18388
18388
|
if (n || (n = E), t.isLoading)
|
|
18389
|
-
return /* @__PURE__ */ C(
|
|
18389
|
+
return /* @__PURE__ */ C(an, { className: "discussion-card discussion-form", "data-testid": "loading-placeholder" });
|
|
18390
18390
|
const T = (G) => {
|
|
18391
18391
|
const V = G.target.value;
|
|
18392
18392
|
h(V);
|
|
@@ -18535,10 +18535,10 @@ const Js = () => {
|
|
|
18535
18535
|
} } = {}
|
|
18536
18536
|
}) => {
|
|
18537
18537
|
const f = Ee();
|
|
18538
|
-
|
|
18538
|
+
He(() => {
|
|
18539
18539
|
l(o);
|
|
18540
18540
|
}, [o]);
|
|
18541
|
-
const [c, h] = we(t), [d, l] = we(o), [p, m] = we(!1), [E, T] = we(!1), _ =
|
|
18541
|
+
const [c, h] = we(t), [d, l] = we(o), [p, m] = we(!1), [E, T] = we(!1), _ = In(() => TA(n), [n]), b = window.location.pathname, A = (N) => {
|
|
18542
18542
|
if (N.preventDefault(), N.stopPropagation(), T(!1), Qi)
|
|
18543
18543
|
return Js(), !1;
|
|
18544
18544
|
if (Js(), p || !s)
|
|
@@ -18605,7 +18605,7 @@ const Js = () => {
|
|
|
18605
18605
|
var Jo = { exports: {} };
|
|
18606
18606
|
Jo.exports;
|
|
18607
18607
|
(function(e, t) {
|
|
18608
|
-
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, s = 9007199254740991, a = "[object Arguments]", u = "[object Array]", f = "[object AsyncFunction]", c = "[object Boolean]", h = "[object Date]", d = "[object Error]", l = "[object Function]", p = "[object GeneratorFunction]", m = "[object Map]", E = "[object Number]", T = "[object Null]", _ = "[object Object]", b = "[object Promise]", A = "[object Proxy]", w = "[object RegExp]", N = "[object Set]", F = "[object String]", B = "[object Symbol]", q = "[object Undefined]", G = "[object WeakMap]", V = "[object ArrayBuffer]", H = "[object DataView]", z = "[object Float32Array]", oe = "[object Float64Array]", K = "[object Int8Array]", k = "[object Int16Array]", W = "[object Int32Array]", J = "[object Uint8Array]", de = "[object Uint8ClampedArray]", Q = "[object Uint16Array]", Y = "[object Uint32Array]", se = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/,
|
|
18608
|
+
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, s = 9007199254740991, a = "[object Arguments]", u = "[object Array]", f = "[object AsyncFunction]", c = "[object Boolean]", h = "[object Date]", d = "[object Error]", l = "[object Function]", p = "[object GeneratorFunction]", m = "[object Map]", E = "[object Number]", T = "[object Null]", _ = "[object Object]", b = "[object Promise]", A = "[object Proxy]", w = "[object RegExp]", N = "[object Set]", F = "[object String]", B = "[object Symbol]", q = "[object Undefined]", G = "[object WeakMap]", V = "[object ArrayBuffer]", H = "[object DataView]", z = "[object Float32Array]", oe = "[object Float64Array]", K = "[object Int8Array]", k = "[object Int16Array]", W = "[object Int32Array]", J = "[object Uint8Array]", de = "[object Uint8ClampedArray]", Q = "[object Uint16Array]", Y = "[object Uint32Array]", se = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, De = /^(?:0|[1-9]\d*)$/, X = {};
|
|
18609
18609
|
X[z] = X[oe] = X[K] = X[k] = X[W] = X[J] = X[de] = X[Q] = X[Y] = !0, X[a] = X[u] = X[V] = X[c] = X[H] = X[h] = X[d] = X[l] = X[m] = X[E] = X[_] = X[w] = X[N] = X[F] = X[G] = !1;
|
|
18610
18610
|
var re = typeof ce == "object" && ce && ce.Object === Object && ce, Le = typeof self == "object" && self && self.Object === Object && self, Re = re || Le || Function("return this")(), ft = t && !t.nodeType && t, pt = ft && !0 && e && !e.nodeType && e, Ot = pt && pt.exports === ft, ee = Ot && re.process, Je = function() {
|
|
18611
18611
|
try {
|
|
@@ -18669,8 +18669,8 @@ Jo.exports;
|
|
|
18669
18669
|
return y ? "Symbol(src)_1." + y : "";
|
|
18670
18670
|
}(), U = S.toString, j = RegExp(
|
|
18671
18671
|
"^" + v.call(x).replace(se, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18672
|
-
), le = Ot ? Re.Buffer : void 0, Se = Re.Symbol, Te = Re.Uint8Array, Oe = S.propertyIsEnumerable, he = Ze.splice, mt = Se ? Se.toStringTag : void 0, lr = Object.getOwnPropertySymbols, Rr = le ? le.isBuffer : void 0, Qt = Ct(Object.keys, Object), Nr = Nt(Re, "DataView"), Xt = Nt(Re, "Map"), Ir = Nt(Re, "Promise"), Pr = Nt(Re, "Set"), Lr = Nt(Re, "WeakMap"), Mt = Nt(Object, "create"),
|
|
18673
|
-
function
|
|
18672
|
+
), le = Ot ? Re.Buffer : void 0, Se = Re.Symbol, Te = Re.Uint8Array, Oe = S.propertyIsEnumerable, he = Ze.splice, mt = Se ? Se.toStringTag : void 0, lr = Object.getOwnPropertySymbols, Rr = le ? le.isBuffer : void 0, Qt = Ct(Object.keys, Object), Nr = Nt(Re, "DataView"), Xt = Nt(Re, "Map"), Ir = Nt(Re, "Promise"), Pr = Nt(Re, "Set"), Lr = Nt(Re, "WeakMap"), Mt = Nt(Object, "create"), fn = et(Nr), Rt = et(Xt), Wn = et(Ir), zn = et(Pr), Yn = et(Lr), dn = Se ? Se.prototype : void 0, kr = dn ? dn.valueOf : void 0;
|
|
18673
|
+
function $e(y) {
|
|
18674
18674
|
var O = -1, R = y == null ? 0 : y.length;
|
|
18675
18675
|
for (this.clear(); ++O < R; ) {
|
|
18676
18676
|
var $ = y[O];
|
|
@@ -18692,7 +18692,7 @@ Jo.exports;
|
|
|
18692
18692
|
}
|
|
18693
18693
|
return x.call(O, y) ? O[y] : void 0;
|
|
18694
18694
|
}
|
|
18695
|
-
function
|
|
18695
|
+
function hn(y) {
|
|
18696
18696
|
var O = this.__data__;
|
|
18697
18697
|
return Mt ? O[y] !== void 0 : x.call(O, y);
|
|
18698
18698
|
}
|
|
@@ -18700,7 +18700,7 @@ Jo.exports;
|
|
|
18700
18700
|
var R = this.__data__;
|
|
18701
18701
|
return this.size += this.has(y) ? 0 : 1, R[y] = Mt && O === void 0 ? r : O, this;
|
|
18702
18702
|
}
|
|
18703
|
-
|
|
18703
|
+
$e.prototype.clear = Mr, $e.prototype.delete = Br, $e.prototype.get = Jt, $e.prototype.has = hn, $e.prototype.set = Kn;
|
|
18704
18704
|
function ze(y) {
|
|
18705
18705
|
var O = -1, R = y == null ? 0 : y.length;
|
|
18706
18706
|
for (this.clear(); ++O < R; ) {
|
|
@@ -18739,9 +18739,9 @@ Jo.exports;
|
|
|
18739
18739
|
}
|
|
18740
18740
|
function ei() {
|
|
18741
18741
|
this.size = 0, this.__data__ = {
|
|
18742
|
-
hash: new
|
|
18742
|
+
hash: new $e(),
|
|
18743
18743
|
map: new (Xt || ze)(),
|
|
18744
|
-
string: new
|
|
18744
|
+
string: new $e()
|
|
18745
18745
|
};
|
|
18746
18746
|
}
|
|
18747
18747
|
function ti(y) {
|
|
@@ -18764,13 +18764,13 @@ Jo.exports;
|
|
|
18764
18764
|
for (this.__data__ = new nt(); ++O < R; )
|
|
18765
18765
|
this.add(y[O]);
|
|
18766
18766
|
}
|
|
18767
|
-
function
|
|
18767
|
+
function pn(y) {
|
|
18768
18768
|
return this.__data__.set(y, r), this;
|
|
18769
18769
|
}
|
|
18770
18770
|
function dr(y) {
|
|
18771
18771
|
return this.__data__.has(y);
|
|
18772
18772
|
}
|
|
18773
|
-
fr.prototype.add = fr.prototype.push =
|
|
18773
|
+
fr.prototype.add = fr.prototype.push = pn, fr.prototype.has = dr;
|
|
18774
18774
|
function dt(y) {
|
|
18775
18775
|
var O = this.__data__ = new ze(y);
|
|
18776
18776
|
this.size = O.size;
|
|
@@ -18800,7 +18800,7 @@ Jo.exports;
|
|
|
18800
18800
|
}
|
|
18801
18801
|
dt.prototype.clear = Ur, dt.prototype.delete = oi, dt.prototype.get = ai, dt.prototype.has = si, dt.prototype.set = ci;
|
|
18802
18802
|
function ui(y, O) {
|
|
18803
|
-
var R = pr(y), $ = !R &&
|
|
18803
|
+
var R = pr(y), $ = !R && En(y), fe = !R && !$ && gr(y), ae = !R && !$ && !fe && qr(y), pe = R || $ || fe || ae, me = pe ? Et(y.length, String) : [], Be = me.length;
|
|
18804
18804
|
for (var be in y)
|
|
18805
18805
|
(O || x.call(y, be)) && !(pe && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
18806
18806
|
(be == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -18811,7 +18811,7 @@ Jo.exports;
|
|
|
18811
18811
|
}
|
|
18812
18812
|
function hr(y, O) {
|
|
18813
18813
|
for (var R = y.length; R--; )
|
|
18814
|
-
if (
|
|
18814
|
+
if (_n(y[R][0], O))
|
|
18815
18815
|
return R;
|
|
18816
18816
|
return -1;
|
|
18817
18817
|
}
|
|
@@ -18820,15 +18820,15 @@ Jo.exports;
|
|
|
18820
18820
|
return pr(y) ? $ : Kt($, R(y));
|
|
18821
18821
|
}
|
|
18822
18822
|
function Zt(y) {
|
|
18823
|
-
return y == null ? y === void 0 ? q : T : mt && mt in Object(y) ? It(y) :
|
|
18823
|
+
return y == null ? y === void 0 ? q : T : mt && mt in Object(y) ? It(y) : vn(y);
|
|
18824
18824
|
}
|
|
18825
|
-
function
|
|
18825
|
+
function mn(y) {
|
|
18826
18826
|
return wt(y) && Zt(y) == a;
|
|
18827
18827
|
}
|
|
18828
|
-
function
|
|
18829
|
-
return y === O ? !0 : y == null || O == null || !wt(y) && !wt(O) ? y !== y && O !== O :
|
|
18828
|
+
function gn(y, O, R, $, fe) {
|
|
18829
|
+
return y === O ? !0 : y == null || O == null || !wt(y) && !wt(O) ? y !== y && O !== O : yn(y, O, R, $, gn, fe);
|
|
18830
18830
|
}
|
|
18831
|
-
function
|
|
18831
|
+
function yn(y, O, R, $, fe, ae) {
|
|
18832
18832
|
var pe = pr(y), me = pr(O), Be = pe ? u : yt(y), be = me ? u : yt(O);
|
|
18833
18833
|
Be = Be == a ? _ : Be, be = be == a ? _ : be;
|
|
18834
18834
|
var Ye = Be == _, tt = be == _, Ue = Be == be;
|
|
@@ -18849,9 +18849,9 @@ Jo.exports;
|
|
|
18849
18849
|
return Ue ? (ae || (ae = new dt()), Hr(y, O, R, $, fe, ae)) : !1;
|
|
18850
18850
|
}
|
|
18851
18851
|
function li(y) {
|
|
18852
|
-
if (!
|
|
18852
|
+
if (!wn(y) || gi(y))
|
|
18853
18853
|
return !1;
|
|
18854
|
-
var O =
|
|
18854
|
+
var O = bn(y) ? j : ue;
|
|
18855
18855
|
return O.test(et(y));
|
|
18856
18856
|
}
|
|
18857
18857
|
function fi(y) {
|
|
@@ -18909,7 +18909,7 @@ Jo.exports;
|
|
|
18909
18909
|
case c:
|
|
18910
18910
|
case h:
|
|
18911
18911
|
case E:
|
|
18912
|
-
return
|
|
18912
|
+
return _n(+y, +O);
|
|
18913
18913
|
case d:
|
|
18914
18914
|
return y.name == O.name && y.message == O.message;
|
|
18915
18915
|
case w:
|
|
@@ -18965,7 +18965,7 @@ Jo.exports;
|
|
|
18965
18965
|
return ae.delete(y), ae.delete(O), je;
|
|
18966
18966
|
}
|
|
18967
18967
|
function er(y) {
|
|
18968
|
-
return Dr(y,
|
|
18968
|
+
return Dr(y, Sn, pi);
|
|
18969
18969
|
}
|
|
18970
18970
|
function gt(y, O) {
|
|
18971
18971
|
var R = y.__data__;
|
|
@@ -18989,12 +18989,12 @@ Jo.exports;
|
|
|
18989
18989
|
return y == null ? [] : (y = Object(y), At(lr(y), function(O) {
|
|
18990
18990
|
return Oe.call(y, O);
|
|
18991
18991
|
}));
|
|
18992
|
-
} :
|
|
18992
|
+
} : Tn, yt = Zt;
|
|
18993
18993
|
(Nr && yt(new Nr(new ArrayBuffer(1))) != H || Xt && yt(new Xt()) != m || Ir && yt(Ir.resolve()) != b || Pr && yt(new Pr()) != N || Lr && yt(new Lr()) != G) && (yt = function(y) {
|
|
18994
18994
|
var O = Zt(y), R = O == _ ? y.constructor : void 0, $ = R ? et(R) : "";
|
|
18995
18995
|
if ($)
|
|
18996
18996
|
switch ($) {
|
|
18997
|
-
case
|
|
18997
|
+
case fn:
|
|
18998
18998
|
return H;
|
|
18999
18999
|
case Rt:
|
|
19000
19000
|
return m;
|
|
@@ -19008,7 +19008,7 @@ Jo.exports;
|
|
|
19008
19008
|
return O;
|
|
19009
19009
|
});
|
|
19010
19010
|
function Bt(y, O) {
|
|
19011
|
-
return O = O ?? s, !!O && (typeof y == "number" ||
|
|
19011
|
+
return O = O ?? s, !!O && (typeof y == "number" || De.test(y)) && y > -1 && y % 1 == 0 && y < O;
|
|
19012
19012
|
}
|
|
19013
19013
|
function mi(y) {
|
|
19014
19014
|
var O = typeof y;
|
|
@@ -19021,7 +19021,7 @@ Jo.exports;
|
|
|
19021
19021
|
var O = y && y.constructor, R = typeof O == "function" && O.prototype || S;
|
|
19022
19022
|
return y === R;
|
|
19023
19023
|
}
|
|
19024
|
-
function
|
|
19024
|
+
function vn(y) {
|
|
19025
19025
|
return U.call(y);
|
|
19026
19026
|
}
|
|
19027
19027
|
function et(y) {
|
|
@@ -19037,23 +19037,23 @@ Jo.exports;
|
|
|
19037
19037
|
}
|
|
19038
19038
|
return "";
|
|
19039
19039
|
}
|
|
19040
|
-
function
|
|
19040
|
+
function _n(y, O) {
|
|
19041
19041
|
return y === O || y !== y && O !== O;
|
|
19042
19042
|
}
|
|
19043
|
-
var
|
|
19043
|
+
var En = mn(function() {
|
|
19044
19044
|
return arguments;
|
|
19045
|
-
}()) ?
|
|
19045
|
+
}()) ? mn : function(y) {
|
|
19046
19046
|
return wt(y) && x.call(y, "callee") && !Oe.call(y, "callee");
|
|
19047
19047
|
}, pr = Array.isArray;
|
|
19048
19048
|
function mr(y) {
|
|
19049
|
-
return y != null && jr(y.length) && !
|
|
19049
|
+
return y != null && jr(y.length) && !bn(y);
|
|
19050
19050
|
}
|
|
19051
19051
|
var gr = Rr || _i;
|
|
19052
19052
|
function vi(y, O) {
|
|
19053
|
-
return
|
|
19053
|
+
return gn(y, O);
|
|
19054
19054
|
}
|
|
19055
|
-
function
|
|
19056
|
-
if (!
|
|
19055
|
+
function bn(y) {
|
|
19056
|
+
if (!wn(y))
|
|
19057
19057
|
return !1;
|
|
19058
19058
|
var O = Zt(y);
|
|
19059
19059
|
return O == l || O == p || O == f || O == A;
|
|
@@ -19061,7 +19061,7 @@ Jo.exports;
|
|
|
19061
19061
|
function jr(y) {
|
|
19062
19062
|
return typeof y == "number" && y > -1 && y % 1 == 0 && y <= s;
|
|
19063
19063
|
}
|
|
19064
|
-
function
|
|
19064
|
+
function wn(y) {
|
|
19065
19065
|
var O = typeof y;
|
|
19066
19066
|
return y != null && (O == "object" || O == "function");
|
|
19067
19067
|
}
|
|
@@ -19069,10 +19069,10 @@ Jo.exports;
|
|
|
19069
19069
|
return y != null && typeof y == "object";
|
|
19070
19070
|
}
|
|
19071
19071
|
var qr = Ve ? xr(Ve) : fi;
|
|
19072
|
-
function
|
|
19072
|
+
function Sn(y) {
|
|
19073
19073
|
return mr(y) ? ui(y) : di(y);
|
|
19074
19074
|
}
|
|
19075
|
-
function
|
|
19075
|
+
function Tn() {
|
|
19076
19076
|
return [];
|
|
19077
19077
|
}
|
|
19078
19078
|
function _i() {
|
|
@@ -19105,9 +19105,9 @@ const RA = ({
|
|
|
19105
19105
|
gtmContext: c = "Modal"
|
|
19106
19106
|
}) => {
|
|
19107
19107
|
const h = Ee(), [d, l] = we(t), p = (E) => {
|
|
19108
|
-
l(E), document.body.classList.
|
|
19108
|
+
l(E), E ? (r(), document.body.classList.add("has-overlay")) : (o(), document.body.classList.remove("has-overlay"));
|
|
19109
19109
|
};
|
|
19110
|
-
|
|
19110
|
+
rn(() => {
|
|
19111
19111
|
p(t);
|
|
19112
19112
|
}, [t]);
|
|
19113
19113
|
const m = n ? { "--max-width": `${n / 16}rem` } : {};
|
|
@@ -19177,19 +19177,19 @@ const ar = "discussion_", n1 = ({
|
|
|
19177
19177
|
locale: l = "en",
|
|
19178
19178
|
children: p
|
|
19179
19179
|
}) => {
|
|
19180
|
-
const m = Ee(), E =
|
|
19180
|
+
const m = Ee(), E = Ln(ao), T = Ln(hg), [_, b] = we({
|
|
19181
19181
|
body: t && t.body || "",
|
|
19182
19182
|
isEditing: !1,
|
|
19183
19183
|
didEdit: t && t.isEdited || !1
|
|
19184
19184
|
}), [A, w] = we(!1), [N, F] = we("");
|
|
19185
|
-
if (
|
|
19185
|
+
if (He(() => {
|
|
19186
19186
|
b({
|
|
19187
19187
|
..._,
|
|
19188
19188
|
body: t && t.body || "",
|
|
19189
19189
|
didEdit: t && t.isEdited || !1
|
|
19190
19190
|
});
|
|
19191
19191
|
}, [t.isEdited]), n || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
19192
|
-
return /* @__PURE__ */ C(
|
|
19192
|
+
return /* @__PURE__ */ C(an, { className: "discussion-card discussion-post" });
|
|
19193
19193
|
const { author: B, canLike: q, createdAt: G, id: V, likes: H = 0, userLiked: z, comments: oe = 0 } = t, K = E && E.id && typeof B != "string" && B.id && B.id === E.id || !1, k = typeof q == "boolean" ? q : !K, W = async (Y) => {
|
|
19194
19194
|
Y || (Y = ""), F("");
|
|
19195
19195
|
try {
|
|
@@ -19203,8 +19203,8 @@ const ar = "discussion_", n1 = ({
|
|
|
19203
19203
|
}
|
|
19204
19204
|
}, J = () => {
|
|
19205
19205
|
T && T.updateConversation && T.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
|
|
19206
|
-
const se = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, ue = document.getElementById(se),
|
|
19207
|
-
|
|
19206
|
+
const se = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, ue = document.getElementById(se), De = document.getElementById(`${se}-input`);
|
|
19207
|
+
De && De.focus(), ue && ue.scrollIntoView({ behavior: "smooth" });
|
|
19208
19208
|
}, 0);
|
|
19209
19209
|
}, de = () => {
|
|
19210
19210
|
try {
|
|
@@ -19389,15 +19389,15 @@ const Zs = "discussion_responses_", i1 = ({ type: e = "answer", responses: t = 0
|
|
|
19389
19389
|
};
|
|
19390
19390
|
const o1 = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
19391
19391
|
const r = Ee(), o = qe(null), [i, s] = we(e), [a, u] = we("closed");
|
|
19392
|
-
|
|
19392
|
+
He(() => {
|
|
19393
19393
|
const d = o.current;
|
|
19394
19394
|
if (d)
|
|
19395
19395
|
return d.addEventListener("transitionend", f), () => {
|
|
19396
19396
|
d.removeEventListener("transitionend", f);
|
|
19397
19397
|
};
|
|
19398
|
-
}, []),
|
|
19398
|
+
}, []), rn(() => {
|
|
19399
19399
|
a === "closed" && !i || u(["opening", "open"].includes(a) ? "ready-to-close" : "opening");
|
|
19400
|
-
}, [i]),
|
|
19400
|
+
}, [i]), He(() => {
|
|
19401
19401
|
a === "ready-to-close" && u("closing");
|
|
19402
19402
|
}, [a]);
|
|
19403
19403
|
const f = ({ propertyName: d }) => {
|
|
@@ -19454,7 +19454,7 @@ export {
|
|
|
19454
19454
|
Yp as Link,
|
|
19455
19455
|
KT as LoadMore,
|
|
19456
19456
|
qA as LoadingBlock,
|
|
19457
|
-
|
|
19457
|
+
an as LoadingPlaceholder,
|
|
19458
19458
|
GT as LoadingState,
|
|
19459
19459
|
Jm as Logo,
|
|
19460
19460
|
UA as LogoSection,
|
|
@@ -19484,7 +19484,7 @@ export {
|
|
|
19484
19484
|
NA as addAriaProps,
|
|
19485
19485
|
Xm as getMember,
|
|
19486
19486
|
Qo as headerData,
|
|
19487
|
-
|
|
19487
|
+
rn as useEffectAfterMount,
|
|
19488
19488
|
MA as useFeatureFlag,
|
|
19489
19489
|
na as useScreenWidth,
|
|
19490
19490
|
jE as useScrollListener,
|