@x4b/banner 50.9.0 → 60.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/banner.es.js +959 -948
- package/dist/banner.es.js.map +1 -1
- package/dist/banner.umd.js +28 -28
- package/dist/banner.umd.js.map +1 -1
- package/dist/library/components/BannerContent.d.ts +2 -1
- package/dist/library/components/UserProfileMenu.d.ts +2 -1
- package/dist/library/locales/localeConfiguration.d.ts +2 -0
- package/package.json +1 -1
- package/styles.css +1 -1
package/dist/banner.es.js
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
import * as w from "react";
|
2
|
-
import we, { useCallback as
|
3
|
-
import { Button as
|
2
|
+
import we, { useCallback as Kt, useLayoutEffect as Ba, useEffect as un, useRef as ka, useState as ln } from "react";
|
3
|
+
import { Button as le } from "@x4b/design-system";
|
4
4
|
import { createPortal as Ua } from "react-dom";
|
5
|
-
var
|
6
|
-
return
|
5
|
+
var Lt = function(e, t) {
|
6
|
+
return Lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
7
7
|
r.__proto__ = n;
|
8
8
|
} || function(r, n) {
|
9
9
|
for (var a in n)
|
10
10
|
Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
|
11
|
-
},
|
11
|
+
}, Lt(e, t);
|
12
12
|
};
|
13
|
-
function
|
13
|
+
function de(e, t) {
|
14
14
|
if (typeof t != "function" && t !== null)
|
15
15
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
16
|
-
|
16
|
+
Lt(e, t);
|
17
17
|
function r() {
|
18
18
|
this.constructor = e;
|
19
19
|
}
|
20
20
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
21
21
|
}
|
22
|
-
var
|
23
|
-
return
|
22
|
+
var M = function() {
|
23
|
+
return M = Object.assign || function(t) {
|
24
24
|
for (var r, n = 1, a = arguments.length; n < a; n++) {
|
25
25
|
r = arguments[n];
|
26
26
|
for (var o in r)
|
27
27
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
28
28
|
}
|
29
29
|
return t;
|
30
|
-
},
|
30
|
+
}, M.apply(this, arguments);
|
31
31
|
};
|
32
|
-
function
|
32
|
+
function er(e, t) {
|
33
33
|
var r = {};
|
34
34
|
for (var n in e)
|
35
35
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -58,67 +58,67 @@ function za() {
|
|
58
58
|
if (Pr)
|
59
59
|
return k;
|
60
60
|
Pr = 1;
|
61
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113,
|
62
|
-
function v
|
63
|
-
if (typeof
|
64
|
-
var
|
65
|
-
switch (
|
61
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, T = e ? Symbol.for("react.block") : 60121, d = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
62
|
+
function m(v) {
|
63
|
+
if (typeof v == "object" && v !== null) {
|
64
|
+
var N = v.$$typeof;
|
65
|
+
switch (N) {
|
66
66
|
case t:
|
67
|
-
switch (
|
67
|
+
switch (v = v.type, v) {
|
68
68
|
case l:
|
69
69
|
case f:
|
70
70
|
case n:
|
71
71
|
case o:
|
72
72
|
case a:
|
73
73
|
case h:
|
74
|
-
return
|
74
|
+
return v;
|
75
75
|
default:
|
76
|
-
switch (
|
76
|
+
switch (v = v && v.$$typeof, v) {
|
77
77
|
case s:
|
78
78
|
case c:
|
79
|
-
case
|
80
|
-
case
|
79
|
+
case I:
|
80
|
+
case g:
|
81
81
|
case i:
|
82
|
-
return
|
82
|
+
return v;
|
83
83
|
default:
|
84
|
-
return
|
84
|
+
return N;
|
85
85
|
}
|
86
86
|
}
|
87
87
|
case r:
|
88
|
-
return
|
88
|
+
return N;
|
89
89
|
}
|
90
90
|
}
|
91
91
|
}
|
92
|
-
function
|
93
|
-
return v
|
92
|
+
function R(v) {
|
93
|
+
return m(v) === f;
|
94
94
|
}
|
95
|
-
return k.AsyncMode = l, k.ConcurrentMode = f, k.ContextConsumer = s, k.ContextProvider = i, k.Element = t, k.ForwardRef = c, k.Fragment = n, k.Lazy =
|
96
|
-
return
|
97
|
-
}, k.isConcurrentMode =
|
98
|
-
return v
|
99
|
-
}, k.isContextProvider = function(
|
100
|
-
return v
|
101
|
-
}, k.isElement = function(
|
102
|
-
return typeof
|
103
|
-
}, k.isForwardRef = function(
|
104
|
-
return v
|
105
|
-
}, k.isFragment = function(
|
106
|
-
return v
|
107
|
-
}, k.isLazy = function(
|
108
|
-
return v
|
109
|
-
}, k.isMemo = function(
|
110
|
-
return v
|
111
|
-
}, k.isPortal = function(
|
112
|
-
return v
|
113
|
-
}, k.isProfiler = function(
|
114
|
-
return v
|
115
|
-
}, k.isStrictMode = function(
|
116
|
-
return v
|
117
|
-
}, k.isSuspense = function(
|
118
|
-
return v
|
119
|
-
}, k.isValidElementType = function(
|
120
|
-
return typeof
|
121
|
-
}, k.typeOf =
|
95
|
+
return k.AsyncMode = l, k.ConcurrentMode = f, k.ContextConsumer = s, k.ContextProvider = i, k.Element = t, k.ForwardRef = c, k.Fragment = n, k.Lazy = I, k.Memo = g, k.Portal = r, k.Profiler = o, k.StrictMode = a, k.Suspense = h, k.isAsyncMode = function(v) {
|
96
|
+
return R(v) || m(v) === l;
|
97
|
+
}, k.isConcurrentMode = R, k.isContextConsumer = function(v) {
|
98
|
+
return m(v) === s;
|
99
|
+
}, k.isContextProvider = function(v) {
|
100
|
+
return m(v) === i;
|
101
|
+
}, k.isElement = function(v) {
|
102
|
+
return typeof v == "object" && v !== null && v.$$typeof === t;
|
103
|
+
}, k.isForwardRef = function(v) {
|
104
|
+
return m(v) === c;
|
105
|
+
}, k.isFragment = function(v) {
|
106
|
+
return m(v) === n;
|
107
|
+
}, k.isLazy = function(v) {
|
108
|
+
return m(v) === I;
|
109
|
+
}, k.isMemo = function(v) {
|
110
|
+
return m(v) === g;
|
111
|
+
}, k.isPortal = function(v) {
|
112
|
+
return m(v) === r;
|
113
|
+
}, k.isProfiler = function(v) {
|
114
|
+
return m(v) === o;
|
115
|
+
}, k.isStrictMode = function(v) {
|
116
|
+
return m(v) === a;
|
117
|
+
}, k.isSuspense = function(v) {
|
118
|
+
return m(v) === h;
|
119
|
+
}, k.isValidElementType = function(v) {
|
120
|
+
return typeof v == "string" || typeof v == "function" || v === n || v === f || v === o || v === a || v === h || v === p || typeof v == "object" && v !== null && (v.$$typeof === I || v.$$typeof === g || v.$$typeof === i || v.$$typeof === s || v.$$typeof === c || v.$$typeof === d || v.$$typeof === S || v.$$typeof === y || v.$$typeof === T);
|
121
|
+
}, k.typeOf = m, k;
|
122
122
|
}
|
123
123
|
var U = {};
|
124
124
|
/** @license React v16.13.1
|
@@ -132,33 +132,33 @@ var U = {};
|
|
132
132
|
var Or;
|
133
133
|
function Ga() {
|
134
134
|
return Or || (Or = 1, process.env.NODE_ENV !== "production" && function() {
|
135
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113,
|
136
|
-
function
|
137
|
-
return typeof
|
135
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, T = e ? Symbol.for("react.block") : 60121, d = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
136
|
+
function m(P) {
|
137
|
+
return typeof P == "string" || typeof P == "function" || P === n || P === f || P === o || P === a || P === h || P === p || typeof P == "object" && P !== null && (P.$$typeof === I || P.$$typeof === g || P.$$typeof === i || P.$$typeof === s || P.$$typeof === c || P.$$typeof === d || P.$$typeof === S || P.$$typeof === y || P.$$typeof === T);
|
138
138
|
}
|
139
|
-
function
|
140
|
-
if (typeof
|
141
|
-
var ke =
|
139
|
+
function R(P) {
|
140
|
+
if (typeof P == "object" && P !== null) {
|
141
|
+
var ke = P.$$typeof;
|
142
142
|
switch (ke) {
|
143
143
|
case t:
|
144
|
-
var
|
145
|
-
switch (
|
144
|
+
var O = P.type;
|
145
|
+
switch (O) {
|
146
146
|
case l:
|
147
147
|
case f:
|
148
148
|
case n:
|
149
149
|
case o:
|
150
150
|
case a:
|
151
151
|
case h:
|
152
|
-
return
|
152
|
+
return O;
|
153
153
|
default:
|
154
|
-
var
|
155
|
-
switch (
|
154
|
+
var pe = O && O.$$typeof;
|
155
|
+
switch (pe) {
|
156
156
|
case s:
|
157
157
|
case c:
|
158
|
-
case
|
159
|
-
case
|
158
|
+
case I:
|
159
|
+
case g:
|
160
160
|
case i:
|
161
|
-
return
|
161
|
+
return pe;
|
162
162
|
default:
|
163
163
|
return ke;
|
164
164
|
}
|
@@ -168,47 +168,47 @@ function Ga() {
|
|
168
168
|
}
|
169
169
|
}
|
170
170
|
}
|
171
|
-
var
|
172
|
-
function xe(
|
173
|
-
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Se(
|
171
|
+
var v = l, N = f, _ = s, ee = i, se = t, ue = c, ce = n, me = I, $ = g, ae = r, J = o, Z = a, oe = h, Q = !1;
|
172
|
+
function xe(P) {
|
173
|
+
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Se(P) || R(P) === l;
|
174
174
|
}
|
175
|
-
function Se(
|
176
|
-
return
|
175
|
+
function Se(P) {
|
176
|
+
return R(P) === f;
|
177
177
|
}
|
178
|
-
function Ce(
|
179
|
-
return
|
178
|
+
function Ce(P) {
|
179
|
+
return R(P) === s;
|
180
180
|
}
|
181
|
-
function Ne(
|
182
|
-
return
|
181
|
+
function Ne(P) {
|
182
|
+
return R(P) === i;
|
183
183
|
}
|
184
|
-
function Ae(
|
185
|
-
return typeof
|
184
|
+
function Ae(P) {
|
185
|
+
return typeof P == "object" && P !== null && P.$$typeof === t;
|
186
186
|
}
|
187
|
-
function Fe(
|
188
|
-
return
|
187
|
+
function Fe(P) {
|
188
|
+
return R(P) === c;
|
189
189
|
}
|
190
|
-
function Be(
|
191
|
-
return
|
190
|
+
function Be(P) {
|
191
|
+
return R(P) === n;
|
192
192
|
}
|
193
|
-
function Re(
|
194
|
-
return
|
193
|
+
function Re(P) {
|
194
|
+
return R(P) === I;
|
195
195
|
}
|
196
|
-
function F(
|
197
|
-
return
|
196
|
+
function F(P) {
|
197
|
+
return R(P) === g;
|
198
198
|
}
|
199
|
-
function K(
|
200
|
-
return
|
199
|
+
function K(P) {
|
200
|
+
return R(P) === r;
|
201
201
|
}
|
202
|
-
function Ie(
|
203
|
-
return
|
202
|
+
function Ie(P) {
|
203
|
+
return R(P) === o;
|
204
204
|
}
|
205
|
-
function ge(
|
206
|
-
return
|
205
|
+
function ge(P) {
|
206
|
+
return R(P) === a;
|
207
207
|
}
|
208
|
-
function Je(
|
209
|
-
return
|
208
|
+
function Je(P) {
|
209
|
+
return R(P) === h;
|
210
210
|
}
|
211
|
-
U.AsyncMode =
|
211
|
+
U.AsyncMode = v, U.ConcurrentMode = N, U.ContextConsumer = _, U.ContextProvider = ee, U.Element = se, U.ForwardRef = ue, U.Fragment = ce, U.Lazy = me, U.Memo = $, U.Portal = ae, U.Profiler = J, U.StrictMode = Z, U.Suspense = oe, U.isAsyncMode = xe, U.isConcurrentMode = Se, U.isContextConsumer = Ce, U.isContextProvider = Ne, U.isElement = Ae, U.isForwardRef = Fe, U.isFragment = Be, U.isLazy = Re, U.isMemo = F, U.isPortal = K, U.isProfiler = Ie, U.isStrictMode = ge, U.isSuspense = Je, U.isValidElementType = m, U.typeOf = R;
|
212
212
|
}()), U;
|
213
213
|
}
|
214
214
|
(function(e) {
|
@@ -276,7 +276,7 @@ function En(e) {
|
|
276
276
|
function bn(e) {
|
277
277
|
return !!(e && typeof e == "object" && e.type === Ze.number);
|
278
278
|
}
|
279
|
-
function
|
279
|
+
function Dt(e) {
|
280
280
|
return !!(e && typeof e == "object" && e.type === Ze.dateTime);
|
281
281
|
}
|
282
282
|
var wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ya = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
@@ -375,8 +375,8 @@ var Ja = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
375
375
|
function qa(e) {
|
376
376
|
if (e.length === 0)
|
377
377
|
throw new Error("Number skeleton cannot be empty");
|
378
|
-
for (var t = e.split(Ja).filter(function(
|
379
|
-
return
|
378
|
+
for (var t = e.split(Ja).filter(function(p) {
|
379
|
+
return p.length > 0;
|
380
380
|
}), r = [], n = 0, a = t; n < a.length; n++) {
|
381
381
|
var o = a[n], i = o.split("/");
|
382
382
|
if (i.length === 0)
|
@@ -493,13 +493,13 @@ function eo(e) {
|
|
493
493
|
t.notation = "compact", t.compactDisplay = "long";
|
494
494
|
continue;
|
495
495
|
case "scientific":
|
496
|
-
t =
|
497
|
-
return
|
496
|
+
t = M(M(M({}, t), { notation: "scientific" }), a.options.reduce(function(l, f) {
|
497
|
+
return M(M({}, l), _r(f));
|
498
498
|
}, {}));
|
499
499
|
continue;
|
500
500
|
case "engineering":
|
501
|
-
t =
|
502
|
-
return
|
501
|
+
t = M(M(M({}, t), { notation: "engineering" }), a.options.reduce(function(l, f) {
|
502
|
+
return M(M({}, l), _r(f));
|
503
503
|
}, {}));
|
504
504
|
continue;
|
505
505
|
case "notation-simple":
|
@@ -523,13 +523,13 @@ function eo(e) {
|
|
523
523
|
case "integer-width":
|
524
524
|
if (a.options.length > 1)
|
525
525
|
throw new RangeError("integer-width stems only accept a single optional option");
|
526
|
-
a.options[0].replace(Qa, function(l, f, c, h,
|
526
|
+
a.options[0].replace(Qa, function(l, f, c, h, p, g) {
|
527
527
|
if (f)
|
528
528
|
t.minimumIntegerDigits = c.length;
|
529
529
|
else {
|
530
|
-
if (h &&
|
530
|
+
if (h && p)
|
531
531
|
throw new Error("We currently do not support maximum integer digits");
|
532
|
-
if (
|
532
|
+
if (g)
|
533
533
|
throw new Error("We currently do not support exact integer digits");
|
534
534
|
}
|
535
535
|
return "";
|
@@ -543,21 +543,21 @@ function eo(e) {
|
|
543
543
|
if (Nr.test(a.stem)) {
|
544
544
|
if (a.options.length > 1)
|
545
545
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
546
|
-
a.stem.replace(Nr, function(l, f, c, h,
|
547
|
-
return c === "*" ? t.minimumFractionDigits = f.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length :
|
546
|
+
a.stem.replace(Nr, function(l, f, c, h, p, g) {
|
547
|
+
return c === "*" ? t.minimumFractionDigits = f.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : p && g ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + g.length) : (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length), "";
|
548
548
|
});
|
549
549
|
var o = a.options[0];
|
550
|
-
o === "w" ? t =
|
550
|
+
o === "w" ? t = M(M({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = M(M({}, t), Ar(o)));
|
551
551
|
continue;
|
552
552
|
}
|
553
553
|
if (Tn.test(a.stem)) {
|
554
|
-
t =
|
554
|
+
t = M(M({}, t), Ar(a.stem));
|
555
555
|
continue;
|
556
556
|
}
|
557
557
|
var i = Sn(a.stem);
|
558
|
-
i && (t =
|
558
|
+
i && (t = M(M({}, t), i));
|
559
559
|
var s = Ka(a.stem);
|
560
|
-
s && (t =
|
560
|
+
s && (t = M(M({}, t), s));
|
561
561
|
}
|
562
562
|
return t;
|
563
563
|
}
|
@@ -1934,24 +1934,24 @@ function ro(e) {
|
|
1934
1934
|
var a = ot[n || ""] || ot[r || ""] || ot["".concat(r, "-001")] || ot["001"];
|
1935
1935
|
return a[0];
|
1936
1936
|
}
|
1937
|
-
var
|
1937
|
+
var Mt, no = new RegExp("^".concat(wn.source, "*")), ao = new RegExp("".concat(wn.source, "*$"));
|
1938
1938
|
function H(e, t) {
|
1939
1939
|
return { start: e, end: t };
|
1940
1940
|
}
|
1941
1941
|
var oo = !!String.prototype.startsWith, io = !!String.fromCodePoint, so = !!Object.fromEntries, uo = !!String.prototype.codePointAt, lo = !!String.prototype.trimStart, co = !!String.prototype.trimEnd, fo = !!Number.isSafeInteger, ho = fo ? Number.isSafeInteger : function(e) {
|
1942
1942
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
1943
|
-
},
|
1943
|
+
}, Ht = !0;
|
1944
1944
|
try {
|
1945
1945
|
var mo = In("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
1946
|
-
|
1946
|
+
Ht = ((Mt = mo.exec("a")) === null || Mt === void 0 ? void 0 : Mt[0]) === "a";
|
1947
1947
|
} catch {
|
1948
|
-
|
1948
|
+
Ht = !1;
|
1949
1949
|
}
|
1950
1950
|
var Lr = oo ? function(t, r, n) {
|
1951
1951
|
return t.startsWith(r, n);
|
1952
1952
|
} : function(t, r, n) {
|
1953
1953
|
return t.slice(n, n + r.length) === r;
|
1954
|
-
},
|
1954
|
+
}, Ft = io ? String.fromCodePoint : function() {
|
1955
1955
|
for (var t = [], r = 0; r < arguments.length; r++)
|
1956
1956
|
t[r] = arguments[r];
|
1957
1957
|
for (var n = "", a = t.length, o = 0, i; a > o; ) {
|
@@ -1986,24 +1986,24 @@ var Lr = oo ? function(t, r, n) {
|
|
1986
1986
|
function In(e, t) {
|
1987
1987
|
return new RegExp(e, t);
|
1988
1988
|
}
|
1989
|
-
var
|
1990
|
-
if (
|
1989
|
+
var Bt;
|
1990
|
+
if (Ht) {
|
1991
1991
|
var Hr = In("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
1992
|
-
|
1992
|
+
Bt = function(t, r) {
|
1993
1993
|
var n;
|
1994
1994
|
Hr.lastIndex = r;
|
1995
1995
|
var a = Hr.exec(t);
|
1996
1996
|
return (n = a[1]) !== null && n !== void 0 ? n : "";
|
1997
1997
|
};
|
1998
1998
|
} else
|
1999
|
-
|
1999
|
+
Bt = function(t, r) {
|
2000
2000
|
for (var n = []; ; ) {
|
2001
2001
|
var a = Rn(t, r);
|
2002
2002
|
if (a === void 0 || Mn(a) || bo(a))
|
2003
2003
|
break;
|
2004
2004
|
n.push(a), r += a >= 65536 ? 2 : 1;
|
2005
2005
|
}
|
2006
|
-
return
|
2006
|
+
return Ft.apply(void 0, n);
|
2007
2007
|
};
|
2008
2008
|
var go = function() {
|
2009
2009
|
function e(t, r) {
|
@@ -2034,7 +2034,7 @@ var go = function() {
|
|
2034
2034
|
if (n)
|
2035
2035
|
break;
|
2036
2036
|
return this.error(L.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
2037
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2037
|
+
} else if (o === 60 && !this.ignoreTag && kt(this.peek() || 0)) {
|
2038
2038
|
var i = this.parseTag(t, r);
|
2039
2039
|
if (i.err)
|
2040
2040
|
return i;
|
@@ -2067,7 +2067,7 @@ var go = function() {
|
|
2067
2067
|
return o;
|
2068
2068
|
var i = o.val, s = this.clonePosition();
|
2069
2069
|
if (this.bumpIf("</")) {
|
2070
|
-
if (this.isEOF() || !
|
2070
|
+
if (this.isEOF() || !kt(this.char()))
|
2071
2071
|
return this.error(L.INVALID_TAG, H(s, this.clonePosition()));
|
2072
2072
|
var l = this.clonePosition(), f = this.parseTagName();
|
2073
2073
|
return a !== f ? this.error(L.UNMATCHED_CLOSING_TAG, H(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -2147,12 +2147,12 @@ var go = function() {
|
|
2147
2147
|
r.push(n);
|
2148
2148
|
this.bump();
|
2149
2149
|
}
|
2150
|
-
return
|
2150
|
+
return Ft.apply(void 0, r);
|
2151
2151
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2152
2152
|
if (this.isEOF())
|
2153
2153
|
return null;
|
2154
2154
|
var n = this.char();
|
2155
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2155
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ft(n));
|
2156
2156
|
}, e.prototype.parseArgument = function(t, r) {
|
2157
2157
|
var n = this.clonePosition();
|
2158
2158
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2180,7 +2180,7 @@ var go = function() {
|
|
2180
2180
|
return this.error(L.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
2181
2181
|
}
|
2182
2182
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2183
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2183
|
+
var t = this.clonePosition(), r = this.offset(), n = Bt(this.message, r), a = r + n.length;
|
2184
2184
|
this.bumpTo(a);
|
2185
2185
|
var o = this.clonePosition(), i = H(t, o);
|
2186
2186
|
return { value: n, location: i };
|
@@ -2199,15 +2199,15 @@ var go = function() {
|
|
2199
2199
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
2200
2200
|
if (h.err)
|
2201
2201
|
return h;
|
2202
|
-
var
|
2203
|
-
if (
|
2202
|
+
var p = vo(h.val);
|
2203
|
+
if (p.length === 0)
|
2204
2204
|
return this.error(L.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
2205
|
-
var
|
2206
|
-
f = { style:
|
2205
|
+
var g = H(c, this.clonePosition());
|
2206
|
+
f = { style: p, styleLocation: g };
|
2207
2207
|
}
|
2208
|
-
var
|
2209
|
-
if (
|
2210
|
-
return
|
2208
|
+
var I = this.tryParseArgumentClose(a);
|
2209
|
+
if (I.err)
|
2210
|
+
return I;
|
2211
2211
|
var T = H(a, this.clonePosition());
|
2212
2212
|
if (f && Lr(f == null ? void 0 : f.style, "::", 0)) {
|
2213
2213
|
var d = po(f.style.slice(2));
|
@@ -2222,14 +2222,14 @@ var go = function() {
|
|
2222
2222
|
return this.error(L.EXPECT_DATE_TIME_SKELETON, T);
|
2223
2223
|
var S = d;
|
2224
2224
|
this.locale && (S = to(d, this.locale));
|
2225
|
-
var
|
2225
|
+
var p = {
|
2226
2226
|
type: Ze.dateTime,
|
2227
2227
|
pattern: S,
|
2228
2228
|
location: f.styleLocation,
|
2229
2229
|
parsedOptions: this.shouldParseSkeletons ? Wa(S) : {}
|
2230
|
-
},
|
2230
|
+
}, y = s === "date" ? X.date : X.time;
|
2231
2231
|
return {
|
2232
|
-
val: { type:
|
2232
|
+
val: { type: y, value: n, location: T, style: p },
|
2233
2233
|
err: null
|
2234
2234
|
};
|
2235
2235
|
}
|
@@ -2247,43 +2247,43 @@ var go = function() {
|
|
2247
2247
|
case "plural":
|
2248
2248
|
case "selectordinal":
|
2249
2249
|
case "select": {
|
2250
|
-
var
|
2250
|
+
var m = this.clonePosition();
|
2251
2251
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2252
|
-
return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, H(
|
2252
|
+
return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, H(m, M({}, m)));
|
2253
2253
|
this.bumpSpace();
|
2254
|
-
var
|
2255
|
-
if (s !== "select" &&
|
2254
|
+
var R = this.parseIdentifierIfPossible(), v = 0;
|
2255
|
+
if (s !== "select" && R.value === "offset") {
|
2256
2256
|
if (!this.bumpIf(":"))
|
2257
2257
|
return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
2258
2258
|
this.bumpSpace();
|
2259
2259
|
var h = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2260
2260
|
if (h.err)
|
2261
2261
|
return h;
|
2262
|
-
this.bumpSpace(),
|
2262
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), v = h.val;
|
2263
2263
|
}
|
2264
|
-
var
|
2265
|
-
if (
|
2266
|
-
return
|
2267
|
-
var
|
2268
|
-
if (
|
2269
|
-
return
|
2270
|
-
var
|
2264
|
+
var N = this.tryParsePluralOrSelectOptions(t, s, r, R);
|
2265
|
+
if (N.err)
|
2266
|
+
return N;
|
2267
|
+
var I = this.tryParseArgumentClose(a);
|
2268
|
+
if (I.err)
|
2269
|
+
return I;
|
2270
|
+
var _ = H(a, this.clonePosition());
|
2271
2271
|
return s === "select" ? {
|
2272
2272
|
val: {
|
2273
2273
|
type: X.select,
|
2274
2274
|
value: n,
|
2275
|
-
options: Dr(
|
2276
|
-
location:
|
2275
|
+
options: Dr(N.val),
|
2276
|
+
location: _
|
2277
2277
|
},
|
2278
2278
|
err: null
|
2279
2279
|
} : {
|
2280
2280
|
val: {
|
2281
2281
|
type: X.plural,
|
2282
2282
|
value: n,
|
2283
|
-
options: Dr(
|
2284
|
-
offset:
|
2283
|
+
options: Dr(N.val),
|
2284
|
+
offset: v,
|
2285
2285
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
2286
|
-
location:
|
2286
|
+
location: _
|
2287
2287
|
},
|
2288
2288
|
err: null
|
2289
2289
|
};
|
@@ -2349,9 +2349,9 @@ var go = function() {
|
|
2349
2349
|
if (f.length === 0) {
|
2350
2350
|
var h = this.clonePosition();
|
2351
2351
|
if (r !== "select" && this.bumpIf("=")) {
|
2352
|
-
var
|
2353
|
-
if (
|
2354
|
-
return
|
2352
|
+
var p = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR, L.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2353
|
+
if (p.err)
|
2354
|
+
return p;
|
2355
2355
|
c = H(h, this.clonePosition()), f = this.message.slice(h.offset, this.offset());
|
2356
2356
|
} else
|
2357
2357
|
break;
|
@@ -2359,20 +2359,20 @@ var go = function() {
|
|
2359
2359
|
if (l.has(f))
|
2360
2360
|
return this.error(r === "select" ? L.DUPLICATE_SELECT_ARGUMENT_SELECTOR : L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
2361
2361
|
f === "other" && (i = !0), this.bumpSpace();
|
2362
|
-
var
|
2362
|
+
var g = this.clonePosition();
|
2363
2363
|
if (!this.bumpIf("{"))
|
2364
2364
|
return this.error(r === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
2365
|
-
var
|
2366
|
-
if (
|
2367
|
-
return
|
2368
|
-
var T = this.tryParseArgumentClose(
|
2365
|
+
var I = this.parseMessage(t + 1, r, n);
|
2366
|
+
if (I.err)
|
2367
|
+
return I;
|
2368
|
+
var T = this.tryParseArgumentClose(g);
|
2369
2369
|
if (T.err)
|
2370
2370
|
return T;
|
2371
2371
|
s.push([
|
2372
2372
|
f,
|
2373
2373
|
{
|
2374
|
-
value:
|
2375
|
-
location: H(
|
2374
|
+
value: I.val,
|
2375
|
+
location: H(g, this.clonePosition())
|
2376
2376
|
}
|
2377
2377
|
]), l.add(f), this.bumpSpace(), o = this.parseIdentifierIfPossible(), f = o.value, c = o.location;
|
2378
2378
|
}
|
@@ -2453,11 +2453,11 @@ var go = function() {
|
|
2453
2453
|
return n != null ? n : null;
|
2454
2454
|
}, e;
|
2455
2455
|
}();
|
2456
|
-
function
|
2456
|
+
function kt(e) {
|
2457
2457
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
2458
2458
|
}
|
2459
2459
|
function yo(e) {
|
2460
|
-
return
|
2460
|
+
return kt(e) || e === 47;
|
2461
2461
|
}
|
2462
2462
|
function Eo(e) {
|
2463
2463
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
@@ -2468,23 +2468,23 @@ function Mn(e) {
|
|
2468
2468
|
function bo(e) {
|
2469
2469
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
2470
2470
|
}
|
2471
|
-
function
|
2471
|
+
function Ut(e) {
|
2472
2472
|
e.forEach(function(t) {
|
2473
2473
|
if (delete t.location, gn(t) || yn(t))
|
2474
2474
|
for (var r in t.options)
|
2475
|
-
delete t.options[r].location,
|
2475
|
+
delete t.options[r].location, Ut(t.options[r].value);
|
2476
2476
|
else
|
2477
|
-
mn(t) && bn(t.style) || (pn(t) || vn(t)) &&
|
2477
|
+
mn(t) && bn(t.style) || (pn(t) || vn(t)) && Dt(t.style) ? delete t.style.location : En(t) && Ut(t.children);
|
2478
2478
|
});
|
2479
2479
|
}
|
2480
2480
|
function wo(e, t) {
|
2481
|
-
t === void 0 && (t = {}), t =
|
2481
|
+
t === void 0 && (t = {}), t = M({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
2482
2482
|
var r = new go(e, t).parse();
|
2483
2483
|
if (r.err) {
|
2484
2484
|
var n = SyntaxError(L[r.err.kind]);
|
2485
2485
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
2486
2486
|
}
|
2487
|
-
return t != null && t.captureLocation ||
|
2487
|
+
return t != null && t.captureLocation || Ut(r.val), r.val;
|
2488
2488
|
}
|
2489
2489
|
function ye(e, t) {
|
2490
2490
|
var r = t && t.cache ? t.cache : Mo, n = t && t.serializer ? t.serializer : Io, a = t && t.strategy ? t.strategy : xo;
|
@@ -2504,34 +2504,34 @@ function On(e, t, r) {
|
|
2504
2504
|
var n = Array.prototype.slice.call(arguments, 3), a = r(n), o = t.get(a);
|
2505
2505
|
return typeof o > "u" && (o = e.apply(this, n), t.set(a, o)), o;
|
2506
2506
|
}
|
2507
|
-
function
|
2507
|
+
function tr(e, t, r, n, a) {
|
2508
2508
|
return r.bind(t, e, n, a);
|
2509
2509
|
}
|
2510
2510
|
function xo(e, t) {
|
2511
2511
|
var r = e.length === 1 ? Pn : On;
|
2512
|
-
return
|
2512
|
+
return tr(e, this, r, t.cache.create(), t.serializer);
|
2513
2513
|
}
|
2514
2514
|
function So(e, t) {
|
2515
|
-
return
|
2515
|
+
return tr(e, this, On, t.cache.create(), t.serializer);
|
2516
2516
|
}
|
2517
2517
|
function Ro(e, t) {
|
2518
|
-
return
|
2518
|
+
return tr(e, this, Pn, t.cache.create(), t.serializer);
|
2519
2519
|
}
|
2520
2520
|
var Io = function() {
|
2521
2521
|
return JSON.stringify(arguments);
|
2522
2522
|
};
|
2523
|
-
function
|
2523
|
+
function rr() {
|
2524
2524
|
this.cache = /* @__PURE__ */ Object.create(null);
|
2525
2525
|
}
|
2526
|
-
|
2526
|
+
rr.prototype.get = function(e) {
|
2527
2527
|
return this.cache[e];
|
2528
2528
|
};
|
2529
|
-
|
2529
|
+
rr.prototype.set = function(e, t) {
|
2530
2530
|
this.cache[e] = t;
|
2531
2531
|
};
|
2532
2532
|
var Mo = {
|
2533
2533
|
create: function() {
|
2534
|
-
return new
|
2534
|
+
return new rr();
|
2535
2535
|
}
|
2536
2536
|
}, Ee = {
|
2537
2537
|
variadic: So,
|
@@ -2541,7 +2541,7 @@ var Mo = {
|
|
2541
2541
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
2542
2542
|
})(Te || (Te = {}));
|
2543
2543
|
var He = function(e) {
|
2544
|
-
|
2544
|
+
de(t, e);
|
2545
2545
|
function t(r, n, a) {
|
2546
2546
|
var o = e.call(this, r) || this;
|
2547
2547
|
return o.code = n, o.originalMessage = a, o;
|
@@ -2550,31 +2550,31 @@ var He = function(e) {
|
|
2550
2550
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
2551
2551
|
}, t;
|
2552
2552
|
}(Error), Fr = function(e) {
|
2553
|
-
|
2553
|
+
de(t, e);
|
2554
2554
|
function t(r, n, a, o) {
|
2555
2555
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(a).join('", "'), '"'), Te.INVALID_VALUE, o) || this;
|
2556
2556
|
}
|
2557
2557
|
return t;
|
2558
2558
|
}(He), Po = function(e) {
|
2559
|
-
|
2559
|
+
de(t, e);
|
2560
2560
|
function t(r, n, a) {
|
2561
2561
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Te.INVALID_VALUE, a) || this;
|
2562
2562
|
}
|
2563
2563
|
return t;
|
2564
2564
|
}(He), Oo = function(e) {
|
2565
|
-
|
2565
|
+
de(t, e);
|
2566
2566
|
function t(r, n) {
|
2567
2567
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Te.MISSING_VALUE, n) || this;
|
2568
2568
|
}
|
2569
2569
|
return t;
|
2570
|
-
}(He),
|
2570
|
+
}(He), ne;
|
2571
2571
|
(function(e) {
|
2572
2572
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
2573
|
-
})(
|
2573
|
+
})(ne || (ne = {}));
|
2574
2574
|
function Co(e) {
|
2575
2575
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
2576
2576
|
var n = t[t.length - 1];
|
2577
|
-
return !n || n.type !==
|
2577
|
+
return !n || n.type !== ne.literal || r.type !== ne.literal ? t.push(r) : n.value += r.value, t;
|
2578
2578
|
}, []);
|
2579
2579
|
}
|
2580
2580
|
function Cn(e) {
|
@@ -2584,7 +2584,7 @@ function st(e, t, r, n, a, o, i) {
|
|
2584
2584
|
if (e.length === 1 && Cr(e[0]))
|
2585
2585
|
return [
|
2586
2586
|
{
|
2587
|
-
type:
|
2587
|
+
type: ne.literal,
|
2588
2588
|
value: e[0].value
|
2589
2589
|
}
|
2590
2590
|
];
|
@@ -2592,14 +2592,14 @@ function st(e, t, r, n, a, o, i) {
|
|
2592
2592
|
var c = f[l];
|
2593
2593
|
if (Cr(c)) {
|
2594
2594
|
s.push({
|
2595
|
-
type:
|
2595
|
+
type: ne.literal,
|
2596
2596
|
value: c.value
|
2597
2597
|
});
|
2598
2598
|
continue;
|
2599
2599
|
}
|
2600
2600
|
if (Za(c)) {
|
2601
2601
|
typeof o == "number" && s.push({
|
2602
|
-
type:
|
2602
|
+
type: ne.literal,
|
2603
2603
|
value: r.getNumberFormat(t).format(o)
|
2604
2604
|
});
|
2605
2605
|
continue;
|
@@ -2607,88 +2607,88 @@ function st(e, t, r, n, a, o, i) {
|
|
2607
2607
|
var h = c.value;
|
2608
2608
|
if (!(a && h in a))
|
2609
2609
|
throw new Oo(h, i);
|
2610
|
-
var
|
2610
|
+
var p = a[h];
|
2611
2611
|
if (Xa(c)) {
|
2612
|
-
(!
|
2613
|
-
type: typeof
|
2614
|
-
value:
|
2612
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
|
2613
|
+
type: typeof p == "string" ? ne.literal : ne.object,
|
2614
|
+
value: p
|
2615
2615
|
});
|
2616
2616
|
continue;
|
2617
2617
|
}
|
2618
2618
|
if (pn(c)) {
|
2619
|
-
var
|
2619
|
+
var g = typeof c.style == "string" ? n.date[c.style] : Dt(c.style) ? c.style.parsedOptions : void 0;
|
2620
2620
|
s.push({
|
2621
|
-
type:
|
2622
|
-
value: r.getDateTimeFormat(t,
|
2621
|
+
type: ne.literal,
|
2622
|
+
value: r.getDateTimeFormat(t, g).format(p)
|
2623
2623
|
});
|
2624
2624
|
continue;
|
2625
2625
|
}
|
2626
2626
|
if (vn(c)) {
|
2627
|
-
var
|
2627
|
+
var g = typeof c.style == "string" ? n.time[c.style] : Dt(c.style) ? c.style.parsedOptions : n.time.medium;
|
2628
2628
|
s.push({
|
2629
|
-
type:
|
2630
|
-
value: r.getDateTimeFormat(t,
|
2629
|
+
type: ne.literal,
|
2630
|
+
value: r.getDateTimeFormat(t, g).format(p)
|
2631
2631
|
});
|
2632
2632
|
continue;
|
2633
2633
|
}
|
2634
2634
|
if (mn(c)) {
|
2635
|
-
var
|
2636
|
-
|
2637
|
-
type:
|
2638
|
-
value: r.getNumberFormat(t,
|
2635
|
+
var g = typeof c.style == "string" ? n.number[c.style] : bn(c.style) ? c.style.parsedOptions : void 0;
|
2636
|
+
g && g.scale && (p = p * (g.scale || 1)), s.push({
|
2637
|
+
type: ne.literal,
|
2638
|
+
value: r.getNumberFormat(t, g).format(p)
|
2639
2639
|
});
|
2640
2640
|
continue;
|
2641
2641
|
}
|
2642
2642
|
if (En(c)) {
|
2643
|
-
var
|
2643
|
+
var I = c.children, T = c.value, d = a[T];
|
2644
2644
|
if (!Cn(d))
|
2645
2645
|
throw new Po(T, "function", i);
|
2646
|
-
var S = st(
|
2647
|
-
return
|
2646
|
+
var S = st(I, t, r, n, a, o), y = d(S.map(function(v) {
|
2647
|
+
return v.value;
|
2648
2648
|
}));
|
2649
|
-
Array.isArray(
|
2649
|
+
Array.isArray(y) || (y = [y]), s.push.apply(s, y.map(function(v) {
|
2650
2650
|
return {
|
2651
|
-
type: typeof
|
2652
|
-
value:
|
2651
|
+
type: typeof v == "string" ? ne.literal : ne.object,
|
2652
|
+
value: v
|
2653
2653
|
};
|
2654
2654
|
}));
|
2655
2655
|
}
|
2656
2656
|
if (gn(c)) {
|
2657
|
-
var
|
2658
|
-
if (!
|
2659
|
-
throw new Fr(c.value,
|
2660
|
-
s.push.apply(s, st(
|
2657
|
+
var m = c.options[p] || c.options.other;
|
2658
|
+
if (!m)
|
2659
|
+
throw new Fr(c.value, p, Object.keys(c.options), i);
|
2660
|
+
s.push.apply(s, st(m.value, t, r, n, a));
|
2661
2661
|
continue;
|
2662
2662
|
}
|
2663
2663
|
if (yn(c)) {
|
2664
|
-
var
|
2665
|
-
if (!
|
2664
|
+
var m = c.options["=".concat(p)];
|
2665
|
+
if (!m) {
|
2666
2666
|
if (!Intl.PluralRules)
|
2667
2667
|
throw new He(`Intl.PluralRules is not available in this environment.
|
2668
2668
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
2669
2669
|
`, Te.MISSING_INTL_API, i);
|
2670
|
-
var
|
2671
|
-
|
2670
|
+
var R = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
|
2671
|
+
m = c.options[R] || c.options.other;
|
2672
2672
|
}
|
2673
|
-
if (!
|
2674
|
-
throw new Fr(c.value,
|
2675
|
-
s.push.apply(s, st(
|
2673
|
+
if (!m)
|
2674
|
+
throw new Fr(c.value, p, Object.keys(c.options), i);
|
2675
|
+
s.push.apply(s, st(m.value, t, r, n, a, p - (c.offset || 0)));
|
2676
2676
|
continue;
|
2677
2677
|
}
|
2678
2678
|
}
|
2679
2679
|
return Co(s);
|
2680
2680
|
}
|
2681
2681
|
function No(e, t) {
|
2682
|
-
return t ?
|
2683
|
-
return r[n] =
|
2682
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
2683
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
2684
2684
|
}, {})) : e;
|
2685
2685
|
}
|
2686
2686
|
function Ao(e, t) {
|
2687
2687
|
return t ? Object.keys(e).reduce(function(r, n) {
|
2688
2688
|
return r[n] = No(e[n], t[n]), r;
|
2689
|
-
},
|
2689
|
+
}, M({}, e)) : e;
|
2690
2690
|
}
|
2691
|
-
function
|
2691
|
+
function Pt(e) {
|
2692
2692
|
return {
|
2693
2693
|
create: function() {
|
2694
2694
|
return {
|
@@ -2713,7 +2713,7 @@ function _o(e) {
|
|
2713
2713
|
r[n] = arguments[n];
|
2714
2714
|
return new ((t = Intl.NumberFormat).bind.apply(t, be([void 0], r, !1)))();
|
2715
2715
|
}, {
|
2716
|
-
cache:
|
2716
|
+
cache: Pt(e.number),
|
2717
2717
|
strategy: Ee.variadic
|
2718
2718
|
}),
|
2719
2719
|
getDateTimeFormat: ye(function() {
|
@@ -2721,7 +2721,7 @@ function _o(e) {
|
|
2721
2721
|
r[n] = arguments[n];
|
2722
2722
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, be([void 0], r, !1)))();
|
2723
2723
|
}, {
|
2724
|
-
cache:
|
2724
|
+
cache: Pt(e.dateTime),
|
2725
2725
|
strategy: Ee.variadic
|
2726
2726
|
}),
|
2727
2727
|
getPluralRules: ye(function() {
|
@@ -2729,7 +2729,7 @@ function _o(e) {
|
|
2729
2729
|
r[n] = arguments[n];
|
2730
2730
|
return new ((t = Intl.PluralRules).bind.apply(t, be([void 0], r, !1)))();
|
2731
2731
|
}, {
|
2732
|
-
cache:
|
2732
|
+
cache: Pt(e.pluralRules),
|
2733
2733
|
strategy: Ee.variadic
|
2734
2734
|
})
|
2735
2735
|
};
|
@@ -2747,7 +2747,7 @@ var Nn = function() {
|
|
2747
2747
|
if (s.length === 1)
|
2748
2748
|
return s[0].value;
|
2749
2749
|
var l = s.reduce(function(f, c) {
|
2750
|
-
return !f.length || c.type !==
|
2750
|
+
return !f.length || c.type !== ne.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
2751
2751
|
}, []);
|
2752
2752
|
return l.length <= 1 ? l[0] || "" : l;
|
2753
2753
|
}, this.formatToParts = function(i) {
|
@@ -2842,12 +2842,12 @@ var Nn = function() {
|
|
2842
2842
|
}
|
2843
2843
|
}
|
2844
2844
|
}, e;
|
2845
|
-
}(),
|
2845
|
+
}(), te;
|
2846
2846
|
(function(e) {
|
2847
2847
|
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";
|
2848
|
-
})(
|
2849
|
-
var
|
2850
|
-
|
2848
|
+
})(te || (te = {}));
|
2849
|
+
var ie = function(e) {
|
2850
|
+
de(t, e);
|
2851
2851
|
function t(r, n, a) {
|
2852
2852
|
var o = this, i = a ? a instanceof Error ? a : new Error(String(a)) : void 0;
|
2853
2853
|
return o = e.call(this, "[@formatjs/intl Error ".concat(r, "] ").concat(n, `
|
@@ -2857,33 +2857,33 @@ var se = function(e) {
|
|
2857
2857
|
}
|
2858
2858
|
return t;
|
2859
2859
|
}(Error), Lo = function(e) {
|
2860
|
-
|
2860
|
+
de(t, e);
|
2861
2861
|
function t(r, n) {
|
2862
|
-
return e.call(this,
|
2862
|
+
return e.call(this, te.UNSUPPORTED_FORMATTER, r, n) || this;
|
2863
2863
|
}
|
2864
2864
|
return t;
|
2865
|
-
}(
|
2866
|
-
|
2865
|
+
}(ie), Do = function(e) {
|
2866
|
+
de(t, e);
|
2867
2867
|
function t(r, n) {
|
2868
|
-
return e.call(this,
|
2868
|
+
return e.call(this, te.INVALID_CONFIG, r, n) || this;
|
2869
2869
|
}
|
2870
2870
|
return t;
|
2871
|
-
}(
|
2872
|
-
|
2871
|
+
}(ie), Br = function(e) {
|
2872
|
+
de(t, e);
|
2873
2873
|
function t(r, n) {
|
2874
|
-
return e.call(this,
|
2874
|
+
return e.call(this, te.MISSING_DATA, r, n) || this;
|
2875
2875
|
}
|
2876
2876
|
return t;
|
2877
|
-
}(
|
2878
|
-
|
2877
|
+
}(ie), nr = function(e) {
|
2878
|
+
de(t, e);
|
2879
2879
|
function t(r, n, a) {
|
2880
|
-
return e.call(this,
|
2880
|
+
return e.call(this, te.FORMAT_ERROR, "".concat(r, `
|
2881
2881
|
Locale: `).concat(n, `
|
2882
2882
|
`), a) || this;
|
2883
2883
|
}
|
2884
2884
|
return t;
|
2885
|
-
}(
|
2886
|
-
|
2885
|
+
}(ie), Ot = function(e) {
|
2886
|
+
de(t, e);
|
2887
2887
|
function t(r, n, a, o) {
|
2888
2888
|
var i = e.call(this, "".concat(r, `
|
2889
2889
|
MessageID: `).concat(a == null ? void 0 : a.id, `
|
@@ -2893,17 +2893,17 @@ Description: `).concat(a == null ? void 0 : a.description, `
|
|
2893
2893
|
return i.descriptor = a, i;
|
2894
2894
|
}
|
2895
2895
|
return t;
|
2896
|
-
}(
|
2897
|
-
|
2896
|
+
}(nr), Ho = function(e) {
|
2897
|
+
de(t, e);
|
2898
2898
|
function t(r, n) {
|
2899
|
-
var a = e.call(this,
|
2899
|
+
var a = e.call(this, te.MISSING_TRANSLATION, 'Missing message: "'.concat(r.id, '" for locale "').concat(n, '", using ').concat(r.defaultMessage ? "default message (".concat(typeof r.defaultMessage == "string" ? r.defaultMessage : r.defaultMessage.map(function(o) {
|
2900
2900
|
var i;
|
2901
2901
|
return (i = o.value) !== null && i !== void 0 ? i : JSON.stringify(o);
|
2902
2902
|
}).join(), ")") : "id", " as fallback.")) || this;
|
2903
2903
|
return a.descriptor = r, a;
|
2904
2904
|
}
|
2905
2905
|
return t;
|
2906
|
-
}(
|
2906
|
+
}(ie);
|
2907
2907
|
function ze(e, t, r) {
|
2908
2908
|
return r === void 0 && (r = {}), t.reduce(function(n, a) {
|
2909
2909
|
return a in e ? n[a] = e[a] : a in r && (n[a] = r[a]), n;
|
@@ -2976,7 +2976,7 @@ function ko(e) {
|
|
2976
2976
|
getDateTimeFormat: a,
|
2977
2977
|
getNumberFormat: o,
|
2978
2978
|
getMessageFormat: ye(function(s, l, f, c) {
|
2979
|
-
return new Nn(s, l, f,
|
2979
|
+
return new Nn(s, l, f, M({ formatters: {
|
2980
2980
|
getNumberFormat: o,
|
2981
2981
|
getDateTimeFormat: a,
|
2982
2982
|
getPluralRules: i
|
@@ -3012,7 +3012,7 @@ function ko(e) {
|
|
3012
3012
|
})
|
3013
3013
|
};
|
3014
3014
|
}
|
3015
|
-
function
|
3015
|
+
function ar(e, t, r, n) {
|
3016
3016
|
var a = e && e[t], o;
|
3017
3017
|
if (a && (o = a[r]), o)
|
3018
3018
|
return o;
|
@@ -3020,55 +3020,55 @@ function nr(e, t, r, n) {
|
|
3020
3020
|
}
|
3021
3021
|
function it(e, t) {
|
3022
3022
|
return Object.keys(e).reduce(function(r, n) {
|
3023
|
-
return r[n] =
|
3023
|
+
return r[n] = M({ timeZone: t }, e[n]), r;
|
3024
3024
|
}, {});
|
3025
3025
|
}
|
3026
3026
|
function kr(e, t) {
|
3027
|
-
var r = Object.keys(
|
3027
|
+
var r = Object.keys(M(M({}, e), t));
|
3028
3028
|
return r.reduce(function(n, a) {
|
3029
|
-
return n[a] =
|
3029
|
+
return n[a] = M(M({}, e[a] || {}), t[a] || {}), n;
|
3030
3030
|
}, {});
|
3031
3031
|
}
|
3032
3032
|
function Ur(e, t) {
|
3033
3033
|
if (!t)
|
3034
3034
|
return e;
|
3035
3035
|
var r = Nn.formats;
|
3036
|
-
return
|
3036
|
+
return M(M(M({}, r), e), { date: kr(it(r.date, t), it(e.date || {}, t)), time: kr(it(r.time, t), it(e.time || {}, t)) });
|
3037
3037
|
}
|
3038
|
-
var
|
3039
|
-
var o = e.locale, i = e.formats, s = e.messages, l = e.defaultLocale, f = e.defaultFormats, c = e.fallbackOnEmptyString, h = e.onError,
|
3038
|
+
var zt = function(e, t, r, n, a) {
|
3039
|
+
var o = e.locale, i = e.formats, s = e.messages, l = e.defaultLocale, f = e.defaultFormats, c = e.fallbackOnEmptyString, h = e.onError, p = e.timeZone, g = e.defaultRichTextElements;
|
3040
3040
|
r === void 0 && (r = { id: "" });
|
3041
|
-
var
|
3042
|
-
dn(!!
|
3043
|
-
var d = String(
|
3041
|
+
var I = r.id, T = r.defaultMessage;
|
3042
|
+
dn(!!I, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
3043
|
+
var d = String(I), S = s && Object.prototype.hasOwnProperty.call(s, d) && s[d];
|
3044
3044
|
if (Array.isArray(S) && S.length === 1 && S[0].type === X.literal)
|
3045
3045
|
return S[0].value;
|
3046
|
-
if (!n && S && typeof S == "string" && !
|
3046
|
+
if (!n && S && typeof S == "string" && !g)
|
3047
3047
|
return S.replace(/'\{(.*?)\}'/gi, "{$1}");
|
3048
|
-
if (n =
|
3048
|
+
if (n = M(M({}, g), n || {}), i = Ur(i, p), f = Ur(f, p), !S) {
|
3049
3049
|
if (c === !1 && S === "")
|
3050
3050
|
return S;
|
3051
3051
|
if ((!T || o && o.toLowerCase() !== l.toLowerCase()) && h(new Ho(r, o)), T)
|
3052
3052
|
try {
|
3053
|
-
var
|
3054
|
-
return
|
3055
|
-
} catch (
|
3056
|
-
return h(new
|
3053
|
+
var y = t.getMessageFormat(T, l, f, a);
|
3054
|
+
return y.format(n);
|
3055
|
+
} catch (m) {
|
3056
|
+
return h(new Ot('Error formatting default message for: "'.concat(d, '", rendering default message verbatim'), o, r, m)), typeof T == "string" ? T : d;
|
3057
3057
|
}
|
3058
3058
|
return d;
|
3059
3059
|
}
|
3060
3060
|
try {
|
3061
|
-
var
|
3062
|
-
return
|
3063
|
-
} catch (
|
3064
|
-
h(new
|
3061
|
+
var y = t.getMessageFormat(S, o, i, M({ formatters: t }, a || {}));
|
3062
|
+
return y.format(n);
|
3063
|
+
} catch (m) {
|
3064
|
+
h(new Ot('Error formatting message: "'.concat(d, '", using ').concat(T ? "default message" : "id", " as fallback."), o, r, m));
|
3065
3065
|
}
|
3066
3066
|
if (T)
|
3067
3067
|
try {
|
3068
|
-
var
|
3069
|
-
return
|
3070
|
-
} catch (
|
3071
|
-
h(new
|
3068
|
+
var y = t.getMessageFormat(T, l, f, a);
|
3069
|
+
return y.format(n);
|
3070
|
+
} catch (m) {
|
3071
|
+
h(new Ot('Error formatting the default message for: "'.concat(d, '", rendering message verbatim'), o, r, m));
|
3072
3072
|
}
|
3073
3073
|
return typeof S == "string" ? S : typeof T == "string" ? T : d;
|
3074
3074
|
}, Ln = [
|
@@ -3091,20 +3091,20 @@ var Ut = function(e, t, r, n, a) {
|
|
3091
3091
|
"numberingSystem",
|
3092
3092
|
"fractionalSecondDigits"
|
3093
3093
|
];
|
3094
|
-
function
|
3094
|
+
function vt(e, t, r, n) {
|
3095
3095
|
var a = e.locale, o = e.formats, i = e.onError, s = e.timeZone;
|
3096
3096
|
n === void 0 && (n = {});
|
3097
|
-
var l = n.format, f =
|
3098
|
-
return t === "time" && !c.hour && !c.minute && !c.second && !c.timeStyle && !c.dateStyle && (c =
|
3097
|
+
var l = n.format, f = M(M({}, s && { timeZone: s }), l && ar(o, t, l, i)), c = ze(n, Ln, f);
|
3098
|
+
return t === "time" && !c.hour && !c.minute && !c.second && !c.timeStyle && !c.dateStyle && (c = M(M({}, c), { hour: "numeric", minute: "numeric" })), r(a, c);
|
3099
3099
|
}
|
3100
3100
|
function Uo(e, t) {
|
3101
3101
|
for (var r = [], n = 2; n < arguments.length; n++)
|
3102
3102
|
r[n - 2] = arguments[n];
|
3103
3103
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, s = typeof a == "string" ? new Date(a || 0) : a;
|
3104
3104
|
try {
|
3105
|
-
return
|
3105
|
+
return vt(e, "date", t, i).format(s);
|
3106
3106
|
} catch (l) {
|
3107
|
-
e.onError(new
|
3107
|
+
e.onError(new ie(te.FORMAT_ERROR, "Error formatting date.", l));
|
3108
3108
|
}
|
3109
3109
|
return String(s);
|
3110
3110
|
}
|
@@ -3113,9 +3113,9 @@ function zo(e, t) {
|
|
3113
3113
|
r[n - 2] = arguments[n];
|
3114
3114
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, s = typeof a == "string" ? new Date(a || 0) : a;
|
3115
3115
|
try {
|
3116
|
-
return
|
3116
|
+
return vt(e, "time", t, i).format(s);
|
3117
3117
|
} catch (l) {
|
3118
|
-
e.onError(new
|
3118
|
+
e.onError(new ie(te.FORMAT_ERROR, "Error formatting time.", l));
|
3119
3119
|
}
|
3120
3120
|
return String(s);
|
3121
3121
|
}
|
@@ -3125,8 +3125,8 @@ function Go(e, t) {
|
|
3125
3125
|
var a = r[0], o = r[1], i = r[2], s = i === void 0 ? {} : i, l = e.timeZone, f = e.locale, c = e.onError, h = ze(s, Ln, l ? { timeZone: l } : {});
|
3126
3126
|
try {
|
3127
3127
|
return t(f, h).formatRange(a, o);
|
3128
|
-
} catch (
|
3129
|
-
c(new
|
3128
|
+
} catch (p) {
|
3129
|
+
c(new ie(te.FORMAT_ERROR, "Error formatting date time range.", p));
|
3130
3130
|
}
|
3131
3131
|
return String(a);
|
3132
3132
|
}
|
@@ -3135,9 +3135,9 @@ function jo(e, t) {
|
|
3135
3135
|
r[n - 2] = arguments[n];
|
3136
3136
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, s = typeof a == "string" ? new Date(a || 0) : a;
|
3137
3137
|
try {
|
3138
|
-
return
|
3138
|
+
return vt(e, "date", t, i).formatToParts(s);
|
3139
3139
|
} catch (l) {
|
3140
|
-
e.onError(new
|
3140
|
+
e.onError(new ie(te.FORMAT_ERROR, "Error formatting date.", l));
|
3141
3141
|
}
|
3142
3142
|
return [];
|
3143
3143
|
}
|
@@ -3146,9 +3146,9 @@ function Vo(e, t) {
|
|
3146
3146
|
r[n - 2] = arguments[n];
|
3147
3147
|
var a = r[0], o = r[1], i = o === void 0 ? {} : o, s = typeof a == "string" ? new Date(a || 0) : a;
|
3148
3148
|
try {
|
3149
|
-
return
|
3149
|
+
return vt(e, "time", t, i).formatToParts(s);
|
3150
3150
|
} catch (l) {
|
3151
|
-
e.onError(new
|
3151
|
+
e.onError(new ie(te.FORMAT_ERROR, "Error formatting time.", l));
|
3152
3152
|
}
|
3153
3153
|
return [];
|
3154
3154
|
}
|
@@ -3166,7 +3166,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
3166
3166
|
try {
|
3167
3167
|
return t(a, s).of(r);
|
3168
3168
|
} catch (l) {
|
3169
|
-
o(new
|
3169
|
+
o(new ie(te.FORMAT_ERROR, "Error formatting display name.", l));
|
3170
3170
|
}
|
3171
3171
|
}
|
3172
3172
|
var Yo = [
|
@@ -3195,16 +3195,16 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
3195
3195
|
try {
|
3196
3196
|
var l = {}, f = r.map(function(c, h) {
|
3197
3197
|
if (typeof c == "object") {
|
3198
|
-
var
|
3199
|
-
return l[
|
3198
|
+
var p = Wo(h);
|
3199
|
+
return l[p] = c, p;
|
3200
3200
|
}
|
3201
3201
|
return String(c);
|
3202
3202
|
});
|
3203
3203
|
return t(a, s).formatToParts(f).map(function(c) {
|
3204
|
-
return c.type === "literal" ? c :
|
3204
|
+
return c.type === "literal" ? c : M(M({}, c), { value: l[c.value] || c.value });
|
3205
3205
|
});
|
3206
3206
|
} catch (c) {
|
3207
|
-
o(new
|
3207
|
+
o(new ie(te.FORMAT_ERROR, "Error formatting list.", c));
|
3208
3208
|
}
|
3209
3209
|
return r;
|
3210
3210
|
}
|
@@ -3218,7 +3218,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3218
3218
|
try {
|
3219
3219
|
return t(a, i).select(r);
|
3220
3220
|
} catch (s) {
|
3221
|
-
o(new
|
3221
|
+
o(new nr("Error formatting plural.", a, s));
|
3222
3222
|
}
|
3223
3223
|
return "other";
|
3224
3224
|
}
|
@@ -3226,7 +3226,7 @@ var Qo = ["numeric", "style"];
|
|
3226
3226
|
function Ko(e, t, r) {
|
3227
3227
|
var n = e.locale, a = e.formats, o = e.onError;
|
3228
3228
|
r === void 0 && (r = {});
|
3229
|
-
var i = r.format, s = !!i &&
|
3229
|
+
var i = r.format, s = !!i && ar(a, "relative", i, o) || {}, l = ze(r, Qo, s);
|
3230
3230
|
return t(n, l);
|
3231
3231
|
}
|
3232
3232
|
function ei(e, t, r, n, a) {
|
@@ -3238,7 +3238,7 @@ Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
3238
3238
|
try {
|
3239
3239
|
return Ko(e, t, a).format(r, n);
|
3240
3240
|
} catch (i) {
|
3241
|
-
e.onError(new
|
3241
|
+
e.onError(new nr("Error formatting relative time.", e.locale, i));
|
3242
3242
|
}
|
3243
3243
|
return String(r);
|
3244
3244
|
}
|
@@ -3266,7 +3266,7 @@ var ti = [
|
|
3266
3266
|
function Hn(e, t, r) {
|
3267
3267
|
var n = e.locale, a = e.formats, o = e.onError;
|
3268
3268
|
r === void 0 && (r = {});
|
3269
|
-
var i = r.format, s = i &&
|
3269
|
+
var i = r.format, s = i && ar(a, "number", i, o) || {}, l = ze(r, ti, s);
|
3270
3270
|
return t(n, l);
|
3271
3271
|
}
|
3272
3272
|
function ri(e, t, r, n) {
|
@@ -3274,7 +3274,7 @@ function ri(e, t, r, n) {
|
|
3274
3274
|
try {
|
3275
3275
|
return Hn(e, t, n).format(r);
|
3276
3276
|
} catch (a) {
|
3277
|
-
e.onError(new
|
3277
|
+
e.onError(new ie(te.FORMAT_ERROR, "Error formatting number.", a));
|
3278
3278
|
}
|
3279
3279
|
return String(r);
|
3280
3280
|
}
|
@@ -3283,7 +3283,7 @@ function ni(e, t, r, n) {
|
|
3283
3283
|
try {
|
3284
3284
|
return Hn(e, t, n).formatToParts(r);
|
3285
3285
|
} catch (a) {
|
3286
|
-
e.onError(new
|
3286
|
+
e.onError(new ie(te.FORMAT_ERROR, "Error formatting number.", a));
|
3287
3287
|
}
|
3288
3288
|
return [];
|
3289
3289
|
}
|
@@ -3297,8 +3297,8 @@ Please consider using "@formatjs/cli" to pre-compile your messages for performan
|
|
3297
3297
|
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
3298
3298
|
}
|
3299
3299
|
function ii(e, t) {
|
3300
|
-
var r = ko(t), n =
|
3301
|
-
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && i ? i(new Br('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && i && i(new Br('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (i && i(new Do('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), oi(n),
|
3300
|
+
var r = ko(t), n = M(M({}, An), e), a = n.locale, o = n.defaultLocale, i = n.onError;
|
3301
|
+
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && i ? i(new Br('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && i && i(new Br('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (i && i(new Do('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), oi(n), M(M({}, n), {
|
3302
3302
|
formatters: r,
|
3303
3303
|
formatNumber: ri.bind(null, n, r.getNumberFormat),
|
3304
3304
|
formatNumberToParts: ni.bind(null, n, r.getNumberFormat),
|
@@ -3309,8 +3309,8 @@ function ii(e, t) {
|
|
3309
3309
|
formatDateTimeRange: Go.bind(null, n, r.getDateTimeFormat),
|
3310
3310
|
formatTimeToParts: Vo.bind(null, n, r.getDateTimeFormat),
|
3311
3311
|
formatPlural: $o.bind(null, n, r.getPluralRules),
|
3312
|
-
formatMessage:
|
3313
|
-
$t:
|
3312
|
+
formatMessage: zt.bind(null, n, r),
|
3313
|
+
$t: zt.bind(null, n, r),
|
3314
3314
|
formatList: Jo.bind(null, n, r.getListFormat),
|
3315
3315
|
formatListToParts: Dn.bind(null, n, r.getListFormat),
|
3316
3316
|
formatDisplayName: Zo.bind(null, n, r.getDisplayNames)
|
@@ -3319,7 +3319,7 @@ function ii(e, t) {
|
|
3319
3319
|
function Fn(e) {
|
3320
3320
|
dn(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
|
3321
3321
|
}
|
3322
|
-
var Bn =
|
3322
|
+
var Bn = M(M({}, An), {
|
3323
3323
|
textComponent: w.Fragment
|
3324
3324
|
});
|
3325
3325
|
function si(e) {
|
@@ -3342,7 +3342,7 @@ function ui(e, t) {
|
|
3342
3342
|
}
|
3343
3343
|
return !0;
|
3344
3344
|
}
|
3345
|
-
var
|
3345
|
+
var gt = { exports: {} }, Qe = {};
|
3346
3346
|
/**
|
3347
3347
|
* @license React
|
3348
3348
|
* react-jsx-runtime.production.min.js
|
@@ -3359,14 +3359,14 @@ function li() {
|
|
3359
3359
|
Gr = 1;
|
3360
3360
|
var e = we, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
3361
3361
|
function i(s, l, f) {
|
3362
|
-
var c, h = {},
|
3363
|
-
f !== void 0 && (
|
3362
|
+
var c, h = {}, p = null, g = null;
|
3363
|
+
f !== void 0 && (p = "" + f), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (g = l.ref);
|
3364
3364
|
for (c in l)
|
3365
3365
|
n.call(l, c) && !o.hasOwnProperty(c) && (h[c] = l[c]);
|
3366
3366
|
if (s && s.defaultProps)
|
3367
3367
|
for (c in l = s.defaultProps, l)
|
3368
3368
|
h[c] === void 0 && (h[c] = l[c]);
|
3369
|
-
return { $$typeof: t, type: s, key:
|
3369
|
+
return { $$typeof: t, type: s, key: p, ref: g, props: h, _owner: a.current };
|
3370
3370
|
}
|
3371
3371
|
return Qe.Fragment = r, Qe.jsx = i, Qe.jsxs = i, Qe;
|
3372
3372
|
}
|
@@ -3383,50 +3383,50 @@ var Ke = {};
|
|
3383
3383
|
var jr;
|
3384
3384
|
function ci() {
|
3385
3385
|
return jr || (jr = 1, process.env.NODE_ENV !== "production" && function() {
|
3386
|
-
var e = we, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"),
|
3386
|
+
var e = we, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), I = Symbol.iterator, T = "@@iterator";
|
3387
3387
|
function d(u) {
|
3388
3388
|
if (u === null || typeof u != "object")
|
3389
3389
|
return null;
|
3390
|
-
var
|
3391
|
-
return typeof
|
3390
|
+
var b = I && u[I] || u[T];
|
3391
|
+
return typeof b == "function" ? b : null;
|
3392
3392
|
}
|
3393
3393
|
var S = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
3394
|
-
function
|
3394
|
+
function y(u) {
|
3395
3395
|
{
|
3396
|
-
for (var
|
3396
|
+
for (var b = arguments.length, x = new Array(b > 1 ? b - 1 : 0), C = 1; C < b; C++)
|
3397
3397
|
x[C - 1] = arguments[C];
|
3398
|
-
|
3398
|
+
m("error", u, x);
|
3399
3399
|
}
|
3400
3400
|
}
|
3401
|
-
function
|
3401
|
+
function m(u, b, x) {
|
3402
3402
|
{
|
3403
3403
|
var C = S.ReactDebugCurrentFrame, B = C.getStackAddendum();
|
3404
|
-
B !== "" && (
|
3404
|
+
B !== "" && (b += "%s", x = x.concat([B]));
|
3405
3405
|
var V = x.map(function(D) {
|
3406
3406
|
return String(D);
|
3407
3407
|
});
|
3408
|
-
V.unshift("Warning: " +
|
3408
|
+
V.unshift("Warning: " + b), Function.prototype.apply.call(console[u], console, V);
|
3409
3409
|
}
|
3410
3410
|
}
|
3411
|
-
var
|
3412
|
-
|
3413
|
-
function
|
3414
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === o ||
|
3411
|
+
var R = !1, v = !1, N = !1, _ = !1, ee = !1, se;
|
3412
|
+
se = Symbol.for("react.module.reference");
|
3413
|
+
function ue(u) {
|
3414
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === o || ee || u === a || u === f || u === c || _ || u === g || R || v || N || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === h || u.$$typeof === i || u.$$typeof === s || u.$$typeof === l || u.$$typeof === se || u.getModuleId !== void 0));
|
3415
3415
|
}
|
3416
|
-
function
|
3416
|
+
function ce(u, b, x) {
|
3417
3417
|
var C = u.displayName;
|
3418
3418
|
if (C)
|
3419
3419
|
return C;
|
3420
|
-
var B =
|
3420
|
+
var B = b.displayName || b.name || "";
|
3421
3421
|
return B !== "" ? x + "(" + B + ")" : x;
|
3422
3422
|
}
|
3423
|
-
function
|
3423
|
+
function me(u) {
|
3424
3424
|
return u.displayName || "Context";
|
3425
3425
|
}
|
3426
3426
|
function $(u) {
|
3427
3427
|
if (u == null)
|
3428
3428
|
return null;
|
3429
|
-
if (typeof u.tag == "number" &&
|
3429
|
+
if (typeof u.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
3430
3430
|
return u.displayName || u.name || null;
|
3431
3431
|
if (typeof u == "string")
|
3432
3432
|
return u;
|
@@ -3447,17 +3447,17 @@ function ci() {
|
|
3447
3447
|
if (typeof u == "object")
|
3448
3448
|
switch (u.$$typeof) {
|
3449
3449
|
case s:
|
3450
|
-
var
|
3451
|
-
return
|
3450
|
+
var b = u;
|
3451
|
+
return me(b) + ".Consumer";
|
3452
3452
|
case i:
|
3453
3453
|
var x = u;
|
3454
|
-
return
|
3454
|
+
return me(x._context) + ".Provider";
|
3455
3455
|
case l:
|
3456
|
-
return
|
3456
|
+
return ce(u, u.render, "ForwardRef");
|
3457
3457
|
case h:
|
3458
3458
|
var C = u.displayName || null;
|
3459
3459
|
return C !== null ? C : $(u.type) || "Memo";
|
3460
|
-
case
|
3460
|
+
case p: {
|
3461
3461
|
var B = u, V = B._payload, D = B._init;
|
3462
3462
|
try {
|
3463
3463
|
return $(D(V));
|
@@ -3468,14 +3468,14 @@ function ci() {
|
|
3468
3468
|
}
|
3469
3469
|
return null;
|
3470
3470
|
}
|
3471
|
-
var
|
3471
|
+
var ae = Object.assign, J = 0, Z, oe, Q, xe, Se, Ce, Ne;
|
3472
3472
|
function Ae() {
|
3473
3473
|
}
|
3474
3474
|
Ae.__reactDisabledLog = !0;
|
3475
3475
|
function Fe() {
|
3476
3476
|
{
|
3477
3477
|
if (J === 0) {
|
3478
|
-
Z = console.log,
|
3478
|
+
Z = console.log, oe = console.info, Q = console.warn, xe = console.error, Se = console.group, Ce = console.groupCollapsed, Ne = console.groupEnd;
|
3479
3479
|
var u = {
|
3480
3480
|
configurable: !0,
|
3481
3481
|
enumerable: !0,
|
@@ -3504,34 +3504,34 @@ function ci() {
|
|
3504
3504
|
writable: !0
|
3505
3505
|
};
|
3506
3506
|
Object.defineProperties(console, {
|
3507
|
-
log:
|
3507
|
+
log: ae({}, u, {
|
3508
3508
|
value: Z
|
3509
3509
|
}),
|
3510
|
-
info:
|
3511
|
-
value:
|
3510
|
+
info: ae({}, u, {
|
3511
|
+
value: oe
|
3512
3512
|
}),
|
3513
|
-
warn:
|
3513
|
+
warn: ae({}, u, {
|
3514
3514
|
value: Q
|
3515
3515
|
}),
|
3516
|
-
error:
|
3516
|
+
error: ae({}, u, {
|
3517
3517
|
value: xe
|
3518
3518
|
}),
|
3519
|
-
group:
|
3519
|
+
group: ae({}, u, {
|
3520
3520
|
value: Se
|
3521
3521
|
}),
|
3522
|
-
groupCollapsed:
|
3522
|
+
groupCollapsed: ae({}, u, {
|
3523
3523
|
value: Ce
|
3524
3524
|
}),
|
3525
|
-
groupEnd:
|
3525
|
+
groupEnd: ae({}, u, {
|
3526
3526
|
value: Ne
|
3527
3527
|
})
|
3528
3528
|
});
|
3529
3529
|
}
|
3530
|
-
J < 0 &&
|
3530
|
+
J < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
3531
3531
|
}
|
3532
3532
|
}
|
3533
3533
|
var Re = S.ReactCurrentDispatcher, F;
|
3534
|
-
function K(u,
|
3534
|
+
function K(u, b, x) {
|
3535
3535
|
{
|
3536
3536
|
if (F === void 0)
|
3537
3537
|
try {
|
@@ -3549,7 +3549,7 @@ function ci() {
|
|
3549
3549
|
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
3550
3550
|
ge = new Je();
|
3551
3551
|
}
|
3552
|
-
function
|
3552
|
+
function P(u, b) {
|
3553
3553
|
if (!u || Ie)
|
3554
3554
|
return "";
|
3555
3555
|
{
|
@@ -3564,7 +3564,7 @@ function ci() {
|
|
3564
3564
|
var V;
|
3565
3565
|
V = Re.current, Re.current = null, Fe();
|
3566
3566
|
try {
|
3567
|
-
if (
|
3567
|
+
if (b) {
|
3568
3568
|
var D = function() {
|
3569
3569
|
throw Error();
|
3570
3570
|
};
|
@@ -3598,17 +3598,17 @@ function ci() {
|
|
3598
3598
|
} catch (Pe) {
|
3599
3599
|
if (Pe && C && typeof Pe.stack == "string") {
|
3600
3600
|
for (var A = Pe.stack.split(`
|
3601
|
-
`),
|
3602
|
-
`), Y = A.length - 1, q =
|
3601
|
+
`), re = C.stack.split(`
|
3602
|
+
`), Y = A.length - 1, q = re.length - 1; Y >= 1 && q >= 0 && A[Y] !== re[q]; )
|
3603
3603
|
q--;
|
3604
3604
|
for (; Y >= 1 && q >= 0; Y--, q--)
|
3605
|
-
if (A[Y] !==
|
3605
|
+
if (A[Y] !== re[q]) {
|
3606
3606
|
if (Y !== 1 || q !== 1)
|
3607
3607
|
do
|
3608
|
-
if (Y--, q--, q < 0 || A[Y] !==
|
3609
|
-
var
|
3608
|
+
if (Y--, q--, q < 0 || A[Y] !== re[q]) {
|
3609
|
+
var fe = `
|
3610
3610
|
` + A[Y].replace(" at new ", " at ");
|
3611
|
-
return u.displayName &&
|
3611
|
+
return u.displayName && fe.includes("<anonymous>") && (fe = fe.replace("<anonymous>", u.displayName)), typeof u == "function" && ge.set(u, fe), fe;
|
3612
3612
|
}
|
3613
3613
|
while (Y >= 1 && q >= 0);
|
3614
3614
|
break;
|
@@ -3620,18 +3620,18 @@ function ci() {
|
|
3620
3620
|
var Ve = u ? u.displayName || u.name : "", Mr = Ve ? K(Ve) : "";
|
3621
3621
|
return typeof u == "function" && ge.set(u, Mr), Mr;
|
3622
3622
|
}
|
3623
|
-
function ke(u,
|
3624
|
-
return
|
3623
|
+
function ke(u, b, x) {
|
3624
|
+
return P(u, !1);
|
3625
3625
|
}
|
3626
|
-
function
|
3627
|
-
var
|
3628
|
-
return !!(
|
3626
|
+
function O(u) {
|
3627
|
+
var b = u.prototype;
|
3628
|
+
return !!(b && b.isReactComponent);
|
3629
3629
|
}
|
3630
|
-
function
|
3630
|
+
function pe(u, b, x) {
|
3631
3631
|
if (u == null)
|
3632
3632
|
return "";
|
3633
3633
|
if (typeof u == "function")
|
3634
|
-
return
|
3634
|
+
return P(u, O(u));
|
3635
3635
|
if (typeof u == "string")
|
3636
3636
|
return K(u);
|
3637
3637
|
switch (u) {
|
@@ -3645,11 +3645,11 @@ function ci() {
|
|
3645
3645
|
case l:
|
3646
3646
|
return ke(u.render);
|
3647
3647
|
case h:
|
3648
|
-
return
|
3649
|
-
case
|
3648
|
+
return pe(u.type, b, x);
|
3649
|
+
case p: {
|
3650
3650
|
var C = u, B = C._payload, V = C._init;
|
3651
3651
|
try {
|
3652
|
-
return
|
3652
|
+
return pe(V(B), b, x);
|
3653
3653
|
} catch {
|
3654
3654
|
}
|
3655
3655
|
}
|
@@ -3659,12 +3659,12 @@ function ci() {
|
|
3659
3659
|
var Me = Object.prototype.hasOwnProperty, qe = {}, vr = S.ReactDebugCurrentFrame;
|
3660
3660
|
function at(u) {
|
3661
3661
|
if (u) {
|
3662
|
-
var
|
3662
|
+
var b = u._owner, x = pe(u.type, u._source, b ? b.type : null);
|
3663
3663
|
vr.setExtraStackFrame(x);
|
3664
3664
|
} else
|
3665
3665
|
vr.setExtraStackFrame(null);
|
3666
3666
|
}
|
3667
|
-
function ya(u,
|
3667
|
+
function ya(u, b, x, C, B) {
|
3668
3668
|
{
|
3669
3669
|
var V = Function.call.bind(Me);
|
3670
3670
|
for (var D in u)
|
@@ -3672,24 +3672,24 @@ function ci() {
|
|
3672
3672
|
var A = void 0;
|
3673
3673
|
try {
|
3674
3674
|
if (typeof u[D] != "function") {
|
3675
|
-
var
|
3676
|
-
throw
|
3675
|
+
var re = Error((C || "React class") + ": " + x + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
3676
|
+
throw re.name = "Invariant Violation", re;
|
3677
3677
|
}
|
3678
|
-
A = u[D](
|
3678
|
+
A = u[D](b, D, C, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
3679
3679
|
} catch (Y) {
|
3680
3680
|
A = Y;
|
3681
3681
|
}
|
3682
|
-
A && !(A instanceof Error) && (at(B),
|
3682
|
+
A && !(A instanceof Error) && (at(B), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", x, D, typeof A), at(null)), A instanceof Error && !(A.message in qe) && (qe[A.message] = !0, at(B), y("Failed %s type: %s", x, A.message), at(null));
|
3683
3683
|
}
|
3684
3684
|
}
|
3685
3685
|
}
|
3686
3686
|
var Ea = Array.isArray;
|
3687
|
-
function
|
3687
|
+
function Tt(u) {
|
3688
3688
|
return Ea(u);
|
3689
3689
|
}
|
3690
3690
|
function ba(u) {
|
3691
3691
|
{
|
3692
|
-
var
|
3692
|
+
var b = typeof Symbol == "function" && Symbol.toStringTag, x = b && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
3693
3693
|
return x;
|
3694
3694
|
}
|
3695
3695
|
}
|
@@ -3705,41 +3705,41 @@ function ci() {
|
|
3705
3705
|
}
|
3706
3706
|
function yr(u) {
|
3707
3707
|
if (wa(u))
|
3708
|
-
return
|
3708
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ba(u)), gr(u);
|
3709
3709
|
}
|
3710
3710
|
var $e = S.ReactCurrentOwner, Ta = {
|
3711
3711
|
key: !0,
|
3712
3712
|
ref: !0,
|
3713
3713
|
__self: !0,
|
3714
3714
|
__source: !0
|
3715
|
-
}, Er, br,
|
3716
|
-
|
3715
|
+
}, Er, br, xt;
|
3716
|
+
xt = {};
|
3717
3717
|
function xa(u) {
|
3718
3718
|
if (Me.call(u, "ref")) {
|
3719
|
-
var
|
3720
|
-
if (
|
3719
|
+
var b = Object.getOwnPropertyDescriptor(u, "ref").get;
|
3720
|
+
if (b && b.isReactWarning)
|
3721
3721
|
return !1;
|
3722
3722
|
}
|
3723
3723
|
return u.ref !== void 0;
|
3724
3724
|
}
|
3725
3725
|
function Sa(u) {
|
3726
3726
|
if (Me.call(u, "key")) {
|
3727
|
-
var
|
3728
|
-
if (
|
3727
|
+
var b = Object.getOwnPropertyDescriptor(u, "key").get;
|
3728
|
+
if (b && b.isReactWarning)
|
3729
3729
|
return !1;
|
3730
3730
|
}
|
3731
3731
|
return u.key !== void 0;
|
3732
3732
|
}
|
3733
|
-
function Ra(u,
|
3734
|
-
if (typeof u.ref == "string" && $e.current &&
|
3733
|
+
function Ra(u, b) {
|
3734
|
+
if (typeof u.ref == "string" && $e.current && b && $e.current.stateNode !== b) {
|
3735
3735
|
var x = $($e.current.type);
|
3736
|
-
|
3736
|
+
xt[x] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $($e.current.type), u.ref), xt[x] = !0);
|
3737
3737
|
}
|
3738
3738
|
}
|
3739
|
-
function Ia(u,
|
3739
|
+
function Ia(u, b) {
|
3740
3740
|
{
|
3741
3741
|
var x = function() {
|
3742
|
-
Er || (Er = !0,
|
3742
|
+
Er || (Er = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
3743
3743
|
};
|
3744
3744
|
x.isReactWarning = !0, Object.defineProperty(u, "key", {
|
3745
3745
|
get: x,
|
@@ -3747,10 +3747,10 @@ function ci() {
|
|
3747
3747
|
});
|
3748
3748
|
}
|
3749
3749
|
}
|
3750
|
-
function Ma(u,
|
3750
|
+
function Ma(u, b) {
|
3751
3751
|
{
|
3752
3752
|
var x = function() {
|
3753
|
-
br || (br = !0,
|
3753
|
+
br || (br = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
3754
3754
|
};
|
3755
3755
|
x.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
3756
3756
|
get: x,
|
@@ -3758,11 +3758,11 @@ function ci() {
|
|
3758
3758
|
});
|
3759
3759
|
}
|
3760
3760
|
}
|
3761
|
-
var Pa = function(u,
|
3761
|
+
var Pa = function(u, b, x, C, B, V, D) {
|
3762
3762
|
var A = {
|
3763
3763
|
$$typeof: t,
|
3764
3764
|
type: u,
|
3765
|
-
key:
|
3765
|
+
key: b,
|
3766
3766
|
ref: x,
|
3767
3767
|
props: D,
|
3768
3768
|
_owner: V
|
@@ -3784,41 +3784,41 @@ function ci() {
|
|
3784
3784
|
value: B
|
3785
3785
|
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
3786
3786
|
};
|
3787
|
-
function Oa(u,
|
3787
|
+
function Oa(u, b, x, C, B) {
|
3788
3788
|
{
|
3789
|
-
var V, D = {}, A = null,
|
3790
|
-
x !== void 0 && (yr(x), A = "" + x), Sa(
|
3791
|
-
for (V in
|
3792
|
-
Me.call(
|
3789
|
+
var V, D = {}, A = null, re = null;
|
3790
|
+
x !== void 0 && (yr(x), A = "" + x), Sa(b) && (yr(b.key), A = "" + b.key), xa(b) && (re = b.ref, Ra(b, B));
|
3791
|
+
for (V in b)
|
3792
|
+
Me.call(b, V) && !Ta.hasOwnProperty(V) && (D[V] = b[V]);
|
3793
3793
|
if (u && u.defaultProps) {
|
3794
3794
|
var Y = u.defaultProps;
|
3795
3795
|
for (V in Y)
|
3796
3796
|
D[V] === void 0 && (D[V] = Y[V]);
|
3797
3797
|
}
|
3798
|
-
if (A ||
|
3798
|
+
if (A || re) {
|
3799
3799
|
var q = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
3800
|
-
A && Ia(D, q),
|
3800
|
+
A && Ia(D, q), re && Ma(D, q);
|
3801
3801
|
}
|
3802
|
-
return Pa(u, A,
|
3802
|
+
return Pa(u, A, re, B, C, $e.current, D);
|
3803
3803
|
}
|
3804
3804
|
}
|
3805
|
-
var
|
3805
|
+
var St = S.ReactCurrentOwner, wr = S.ReactDebugCurrentFrame;
|
3806
3806
|
function je(u) {
|
3807
3807
|
if (u) {
|
3808
|
-
var
|
3808
|
+
var b = u._owner, x = pe(u.type, u._source, b ? b.type : null);
|
3809
3809
|
wr.setExtraStackFrame(x);
|
3810
3810
|
} else
|
3811
3811
|
wr.setExtraStackFrame(null);
|
3812
3812
|
}
|
3813
|
-
var
|
3814
|
-
|
3815
|
-
function
|
3813
|
+
var Rt;
|
3814
|
+
Rt = !1;
|
3815
|
+
function It(u) {
|
3816
3816
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
3817
3817
|
}
|
3818
3818
|
function Tr() {
|
3819
3819
|
{
|
3820
|
-
if (
|
3821
|
-
var u = $(
|
3820
|
+
if (St.current) {
|
3821
|
+
var u = $(St.current.type);
|
3822
3822
|
if (u)
|
3823
3823
|
return `
|
3824
3824
|
|
@@ -3830,10 +3830,10 @@ Check the render method of \`` + u + "`.";
|
|
3830
3830
|
function Ca(u) {
|
3831
3831
|
{
|
3832
3832
|
if (u !== void 0) {
|
3833
|
-
var
|
3833
|
+
var b = u.fileName.replace(/^.*[\\\/]/, ""), x = u.lineNumber;
|
3834
3834
|
return `
|
3835
3835
|
|
3836
|
-
Check your code at ` +
|
3836
|
+
Check your code at ` + b + ":" + x + ".";
|
3837
3837
|
}
|
3838
3838
|
return "";
|
3839
3839
|
}
|
@@ -3841,118 +3841,118 @@ Check your code at ` + E + ":" + x + ".";
|
|
3841
3841
|
var xr = {};
|
3842
3842
|
function Na(u) {
|
3843
3843
|
{
|
3844
|
-
var
|
3845
|
-
if (!
|
3844
|
+
var b = Tr();
|
3845
|
+
if (!b) {
|
3846
3846
|
var x = typeof u == "string" ? u : u.displayName || u.name;
|
3847
|
-
x && (
|
3847
|
+
x && (b = `
|
3848
3848
|
|
3849
3849
|
Check the top-level render call using <` + x + ">.");
|
3850
3850
|
}
|
3851
|
-
return
|
3851
|
+
return b;
|
3852
3852
|
}
|
3853
3853
|
}
|
3854
|
-
function Sr(u,
|
3854
|
+
function Sr(u, b) {
|
3855
3855
|
{
|
3856
3856
|
if (!u._store || u._store.validated || u.key != null)
|
3857
3857
|
return;
|
3858
3858
|
u._store.validated = !0;
|
3859
|
-
var x = Na(
|
3859
|
+
var x = Na(b);
|
3860
3860
|
if (xr[x])
|
3861
3861
|
return;
|
3862
3862
|
xr[x] = !0;
|
3863
3863
|
var C = "";
|
3864
|
-
u && u._owner && u._owner !==
|
3864
|
+
u && u._owner && u._owner !== St.current && (C = " It was passed a child from " + $(u._owner.type) + "."), je(u), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, C), je(null);
|
3865
3865
|
}
|
3866
3866
|
}
|
3867
|
-
function Rr(u,
|
3867
|
+
function Rr(u, b) {
|
3868
3868
|
{
|
3869
3869
|
if (typeof u != "object")
|
3870
3870
|
return;
|
3871
|
-
if (
|
3871
|
+
if (Tt(u))
|
3872
3872
|
for (var x = 0; x < u.length; x++) {
|
3873
3873
|
var C = u[x];
|
3874
|
-
|
3874
|
+
It(C) && Sr(C, b);
|
3875
3875
|
}
|
3876
|
-
else if (
|
3876
|
+
else if (It(u))
|
3877
3877
|
u._store && (u._store.validated = !0);
|
3878
3878
|
else if (u) {
|
3879
3879
|
var B = d(u);
|
3880
3880
|
if (typeof B == "function" && B !== u.entries)
|
3881
3881
|
for (var V = B.call(u), D; !(D = V.next()).done; )
|
3882
|
-
|
3882
|
+
It(D.value) && Sr(D.value, b);
|
3883
3883
|
}
|
3884
3884
|
}
|
3885
3885
|
}
|
3886
3886
|
function Aa(u) {
|
3887
3887
|
{
|
3888
|
-
var
|
3889
|
-
if (
|
3888
|
+
var b = u.type;
|
3889
|
+
if (b == null || typeof b == "string")
|
3890
3890
|
return;
|
3891
3891
|
var x;
|
3892
|
-
if (typeof
|
3893
|
-
x =
|
3894
|
-
else if (typeof
|
3895
|
-
x =
|
3892
|
+
if (typeof b == "function")
|
3893
|
+
x = b.propTypes;
|
3894
|
+
else if (typeof b == "object" && (b.$$typeof === l || b.$$typeof === h))
|
3895
|
+
x = b.propTypes;
|
3896
3896
|
else
|
3897
3897
|
return;
|
3898
3898
|
if (x) {
|
3899
|
-
var C = $(
|
3899
|
+
var C = $(b);
|
3900
3900
|
ya(x, u.props, "prop", C, u);
|
3901
|
-
} else if (
|
3902
|
-
|
3903
|
-
var B = $(
|
3904
|
-
|
3901
|
+
} else if (b.PropTypes !== void 0 && !Rt) {
|
3902
|
+
Rt = !0;
|
3903
|
+
var B = $(b);
|
3904
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
3905
3905
|
}
|
3906
|
-
typeof
|
3906
|
+
typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
3907
3907
|
}
|
3908
3908
|
}
|
3909
3909
|
function _a(u) {
|
3910
3910
|
{
|
3911
|
-
for (var
|
3912
|
-
var C =
|
3911
|
+
for (var b = Object.keys(u.props), x = 0; x < b.length; x++) {
|
3912
|
+
var C = b[x];
|
3913
3913
|
if (C !== "children" && C !== "key") {
|
3914
|
-
je(u),
|
3914
|
+
je(u), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), je(null);
|
3915
3915
|
break;
|
3916
3916
|
}
|
3917
3917
|
}
|
3918
|
-
u.ref !== null && (je(u),
|
3918
|
+
u.ref !== null && (je(u), y("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
|
3919
3919
|
}
|
3920
3920
|
}
|
3921
|
-
function Ir(u,
|
3921
|
+
function Ir(u, b, x, C, B, V) {
|
3922
3922
|
{
|
3923
|
-
var D =
|
3923
|
+
var D = ue(u);
|
3924
3924
|
if (!D) {
|
3925
3925
|
var A = "";
|
3926
3926
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
3927
|
-
var
|
3928
|
-
|
3927
|
+
var re = Ca(B);
|
3928
|
+
re ? A += re : A += Tr();
|
3929
3929
|
var Y;
|
3930
|
-
u === null ? Y = "null" :
|
3930
|
+
u === null ? Y = "null" : Tt(u) ? Y = "array" : u !== void 0 && u.$$typeof === t ? (Y = "<" + ($(u.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof u, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, A);
|
3931
3931
|
}
|
3932
|
-
var q = Oa(u,
|
3932
|
+
var q = Oa(u, b, x, B, V);
|
3933
3933
|
if (q == null)
|
3934
3934
|
return q;
|
3935
3935
|
if (D) {
|
3936
|
-
var
|
3937
|
-
if (
|
3936
|
+
var fe = b.children;
|
3937
|
+
if (fe !== void 0)
|
3938
3938
|
if (C)
|
3939
|
-
if (
|
3940
|
-
for (var Ve = 0; Ve <
|
3941
|
-
Rr(
|
3942
|
-
Object.freeze && Object.freeze(
|
3939
|
+
if (Tt(fe)) {
|
3940
|
+
for (var Ve = 0; Ve < fe.length; Ve++)
|
3941
|
+
Rr(fe[Ve], u);
|
3942
|
+
Object.freeze && Object.freeze(fe);
|
3943
3943
|
} else
|
3944
|
-
|
3944
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
3945
3945
|
else
|
3946
|
-
Rr(
|
3946
|
+
Rr(fe, u);
|
3947
3947
|
}
|
3948
3948
|
return u === n ? _a(q) : Aa(q), q;
|
3949
3949
|
}
|
3950
3950
|
}
|
3951
|
-
function La(u,
|
3952
|
-
return Ir(u,
|
3951
|
+
function La(u, b, x) {
|
3952
|
+
return Ir(u, b, x, !0);
|
3953
3953
|
}
|
3954
|
-
function Da(u,
|
3955
|
-
return Ir(u,
|
3954
|
+
function Da(u, b, x) {
|
3955
|
+
return Ir(u, b, x, !1);
|
3956
3956
|
}
|
3957
3957
|
var Ha = Da, Fa = La;
|
3958
3958
|
Ke.Fragment = n, Ke.jsx = Ha, Ke.jsxs = Fa;
|
@@ -3960,46 +3960,46 @@ Check the top-level render call using <` + x + ">.");
|
|
3960
3960
|
}
|
3961
3961
|
(function(e) {
|
3962
3962
|
process.env.NODE_ENV === "production" ? e.exports = li() : e.exports = ci();
|
3963
|
-
})(
|
3964
|
-
const
|
3965
|
-
var
|
3966
|
-
|
3967
|
-
var fi =
|
3963
|
+
})(gt);
|
3964
|
+
const yt = gt.exports.Fragment, E = gt.exports.jsx, j = gt.exports.jsxs;
|
3965
|
+
var or = w.createContext(null);
|
3966
|
+
or.Consumer;
|
3967
|
+
var fi = or.Provider, hi = fi, di = or;
|
3968
3968
|
function We() {
|
3969
3969
|
var e = w.useContext(di);
|
3970
3970
|
return Fn(e), e;
|
3971
3971
|
}
|
3972
|
-
var
|
3972
|
+
var Gt;
|
3973
3973
|
(function(e) {
|
3974
3974
|
e.formatDate = "FormattedDate", e.formatTime = "FormattedTime", e.formatNumber = "FormattedNumber", e.formatList = "FormattedList", e.formatDisplayName = "FormattedDisplayName";
|
3975
|
-
})(
|
3976
|
-
var
|
3975
|
+
})(Gt || (Gt = {}));
|
3976
|
+
var jt;
|
3977
3977
|
(function(e) {
|
3978
3978
|
e.formatDate = "FormattedDateParts", e.formatTime = "FormattedTimeParts", e.formatNumber = "FormattedNumberParts", e.formatList = "FormattedListParts";
|
3979
|
-
})(
|
3979
|
+
})(jt || (jt = {}));
|
3980
3980
|
function kn(e) {
|
3981
3981
|
var t = function(r) {
|
3982
|
-
var n = We(), a = r.value, o = r.children, i =
|
3982
|
+
var n = We(), a = r.value, o = r.children, i = er(r, ["value", "children"]), s = typeof a == "string" ? new Date(a || 0) : a, l = e === "formatDate" ? n.formatDateToParts(s, i) : n.formatTimeToParts(s, i);
|
3983
3983
|
return o(l);
|
3984
3984
|
};
|
3985
|
-
return t.displayName =
|
3985
|
+
return t.displayName = jt[e], t;
|
3986
3986
|
}
|
3987
3987
|
function rt(e) {
|
3988
3988
|
var t = function(r) {
|
3989
|
-
var n = We(), a = r.value, o = r.children, i =
|
3989
|
+
var n = We(), a = r.value, o = r.children, i = er(
|
3990
3990
|
r,
|
3991
3991
|
["value", "children"]
|
3992
3992
|
), s = n[e](a, i);
|
3993
3993
|
if (typeof o == "function")
|
3994
3994
|
return o(s);
|
3995
3995
|
var l = n.textComponent || w.Fragment;
|
3996
|
-
return /* @__PURE__ */
|
3996
|
+
return /* @__PURE__ */ E(l, {
|
3997
3997
|
children: s
|
3998
3998
|
});
|
3999
3999
|
};
|
4000
|
-
return t.displayName =
|
4000
|
+
return t.displayName = Gt[e], t;
|
4001
4001
|
}
|
4002
|
-
function
|
4002
|
+
function Ct(e) {
|
4003
4003
|
return {
|
4004
4004
|
locale: e.locale,
|
4005
4005
|
timeZone: e.timeZone,
|
@@ -4024,10 +4024,10 @@ function Un(e) {
|
|
4024
4024
|
var Vr = function(e, t, r, n) {
|
4025
4025
|
for (var a = [], o = 4; o < arguments.length; o++)
|
4026
4026
|
a[o - 4] = arguments[o];
|
4027
|
-
var i = Un(n), s =
|
4027
|
+
var i = Un(n), s = zt.apply(void 0, be([e, t, r, i], a, !1));
|
4028
4028
|
return Array.isArray(s) ? w.Children.toArray(s) : s;
|
4029
4029
|
}, Xr = function(e, t) {
|
4030
|
-
var r = e.defaultRichTextElements, n =
|
4030
|
+
var r = e.defaultRichTextElements, n = er(e, ["defaultRichTextElements"]), a = Un(r), o = ii(M(M(M({}, Bn), n), {
|
4031
4031
|
defaultRichTextElements: a
|
4032
4032
|
}), t), i = {
|
4033
4033
|
locale: o.locale,
|
@@ -4040,28 +4040,28 @@ var Vr = function(e, t, r, n) {
|
|
4040
4040
|
onError: o.onError,
|
4041
4041
|
defaultRichTextElements: a
|
4042
4042
|
};
|
4043
|
-
return
|
4043
|
+
return M(M({}, o), {
|
4044
4044
|
formatMessage: Vr.bind(null, i, o.formatters),
|
4045
4045
|
$t: Vr.bind(null, i, o.formatters)
|
4046
4046
|
});
|
4047
4047
|
}, mi = function(e) {
|
4048
|
-
|
4048
|
+
de(t, e);
|
4049
4049
|
function t() {
|
4050
4050
|
var r = e !== null && e.apply(this, arguments) || this;
|
4051
4051
|
return r.cache = _n(), r.state = {
|
4052
4052
|
cache: r.cache,
|
4053
|
-
intl: Xr(
|
4054
|
-
prevConfig:
|
4053
|
+
intl: Xr(Ct(r.props), r.cache),
|
4054
|
+
prevConfig: Ct(r.props)
|
4055
4055
|
}, r;
|
4056
4056
|
}
|
4057
4057
|
return t.getDerivedStateFromProps = function(r, n) {
|
4058
|
-
var a = n.prevConfig, o = n.cache, i =
|
4058
|
+
var a = n.prevConfig, o = n.cache, i = Ct(r);
|
4059
4059
|
return ui(a, i) ? null : {
|
4060
4060
|
intl: Xr(i, o),
|
4061
4061
|
prevConfig: i
|
4062
4062
|
};
|
4063
4063
|
}, t.prototype.render = function() {
|
4064
|
-
return Fn(this.state.intl), /* @__PURE__ */
|
4064
|
+
return Fn(this.state.intl), /* @__PURE__ */ E(hi, {
|
4065
4065
|
value: this.state.intl,
|
4066
4066
|
children: this.props.children
|
4067
4067
|
});
|
@@ -4158,7 +4158,7 @@ function xi(e, t) {
|
|
4158
4158
|
}
|
4159
4159
|
}
|
4160
4160
|
function Ge(...e) {
|
4161
|
-
return
|
4161
|
+
return Kt((t) => {
|
4162
4162
|
for (let r of e)
|
4163
4163
|
xi(r, t);
|
4164
4164
|
}, e);
|
@@ -4173,7 +4173,7 @@ function Si(e, t) {
|
|
4173
4173
|
children: i,
|
4174
4174
|
...s
|
4175
4175
|
} = o, l = w.useMemo(() => s, Object.values(s));
|
4176
|
-
return /* @__PURE__ */
|
4176
|
+
return /* @__PURE__ */ E(r.Provider, {
|
4177
4177
|
value: l,
|
4178
4178
|
children: i
|
4179
4179
|
});
|
@@ -4205,23 +4205,23 @@ function ut(e) {
|
|
4205
4205
|
function Ye(...e) {
|
4206
4206
|
return e.filter((t) => t != null).join("--");
|
4207
4207
|
}
|
4208
|
-
function
|
4208
|
+
function ir() {
|
4209
4209
|
}
|
4210
4210
|
function Vn() {
|
4211
4211
|
let [, e] = ln(/* @__PURE__ */ Object.create(null));
|
4212
|
-
return
|
4212
|
+
return Kt(() => {
|
4213
4213
|
e(/* @__PURE__ */ Object.create(null));
|
4214
4214
|
}, []);
|
4215
4215
|
}
|
4216
4216
|
var Xe = jn() ? Ba : un;
|
4217
|
-
function
|
4217
|
+
function Nt(e) {
|
4218
4218
|
const t = ka(null);
|
4219
4219
|
return un(() => {
|
4220
4220
|
t.current = e;
|
4221
4221
|
}, [e]), t.current;
|
4222
4222
|
}
|
4223
4223
|
function Ii(e, t) {
|
4224
|
-
let [r, n] = ln(t), a =
|
4224
|
+
let [r, n] = ln(t), a = Kt((o) => {
|
4225
4225
|
e.current = o, n(o);
|
4226
4226
|
}, []);
|
4227
4227
|
return [r, a];
|
@@ -4241,21 +4241,21 @@ var Mi = ({
|
|
4241
4241
|
return a.current = i == null ? void 0 : i.createElement(t), s.appendChild(a.current), o(), () => {
|
4242
4242
|
a.current && s && s.removeChild(a.current);
|
4243
4243
|
};
|
4244
|
-
}, [t, o, r]), a.current ? Ua(e, a.current) : /* @__PURE__ */
|
4244
|
+
}, [t, o, r]), a.current ? Ua(e, a.current) : /* @__PURE__ */ E("span", {
|
4245
4245
|
ref: n
|
4246
4246
|
});
|
4247
|
-
},
|
4247
|
+
}, sr = ({
|
4248
4248
|
unstable_skipInitialRender: e,
|
4249
4249
|
...t
|
4250
4250
|
}) => {
|
4251
4251
|
let [r, n] = w.useState(!1);
|
4252
4252
|
return w.useEffect(() => {
|
4253
4253
|
e && n(!0);
|
4254
|
-
}, [e]), e && !r ? null : /* @__PURE__ */
|
4254
|
+
}, [e]), e && !r ? null : /* @__PURE__ */ E(Mi, {
|
4255
4255
|
...t
|
4256
4256
|
});
|
4257
4257
|
};
|
4258
|
-
|
4258
|
+
sr.displayName = "Portal";
|
4259
4259
|
var Pi = ["bottom", "height", "left", "right", "top", "width"], Oi = function(t, r) {
|
4260
4260
|
return t === void 0 && (t = {}), r === void 0 && (r = {}), Pi.some(function(n) {
|
4261
4261
|
return t[n] !== r[n];
|
@@ -4291,9 +4291,9 @@ function Ni(e, t) {
|
|
4291
4291
|
};
|
4292
4292
|
}
|
4293
4293
|
function ht(e, t, r) {
|
4294
|
-
var
|
4294
|
+
var p;
|
4295
4295
|
let n, a;
|
4296
|
-
Zr(t) ? n = t : (n = (
|
4296
|
+
Zr(t) ? n = t : (n = (p = t == null ? void 0 : t.observe) != null ? p : !0, a = t == null ? void 0 : t.onChange), ft(r) && (a = r), w.useEffect(() => {
|
4297
4297
|
Zr(t) && console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe");
|
4298
4298
|
}, [t]), w.useEffect(() => {
|
4299
4299
|
ft(r) && console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange");
|
@@ -4306,17 +4306,17 @@ function ht(e, t, r) {
|
|
4306
4306
|
}, [o]), Xe(() => {
|
4307
4307
|
if (!n)
|
4308
4308
|
return;
|
4309
|
-
let
|
4310
|
-
if (l.current || (l.current = !0,
|
4309
|
+
let g = o;
|
4310
|
+
if (l.current || (l.current = !0, g = e.current), !g) {
|
4311
4311
|
console.warn("You need to place the ref");
|
4312
4312
|
return;
|
4313
4313
|
}
|
4314
|
-
let
|
4314
|
+
let I = Ni(g, (T) => {
|
4315
4315
|
var d;
|
4316
4316
|
(d = h.current) == null || d.call(h, T), c(T);
|
4317
4317
|
});
|
4318
|
-
return
|
4319
|
-
|
4318
|
+
return I.observe(), () => {
|
4319
|
+
I.unobserve();
|
4320
4320
|
};
|
4321
4321
|
}, [n, o, e]), f;
|
4322
4322
|
}
|
@@ -4324,14 +4324,14 @@ function ht(e, t, r) {
|
|
4324
4324
|
* tabbable 5.3.3
|
4325
4325
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
4326
4326
|
*/
|
4327
|
-
var Ai = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"],
|
4328
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
4327
|
+
var Ai = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"], Vt = /* @__PURE__ */ Ai.join(","), Zn = typeof Element > "u", et = Zn ? function() {
|
4328
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Xt = !Zn && Element.prototype.getRootNode ? function(e) {
|
4329
4329
|
return e.getRootNode();
|
4330
4330
|
} : function(e) {
|
4331
4331
|
return e.ownerDocument;
|
4332
4332
|
}, _i = function(t, r, n) {
|
4333
|
-
var a = Array.prototype.slice.apply(t.querySelectorAll(
|
4334
|
-
return r && et.call(t,
|
4333
|
+
var a = Array.prototype.slice.apply(t.querySelectorAll(Vt));
|
4334
|
+
return r && et.call(t, Vt) && a.unshift(t), a = a.filter(n), a;
|
4335
4335
|
}, Li = function e(t, r, n) {
|
4336
4336
|
for (var a = [], o = Array.from(t); o.length; ) {
|
4337
4337
|
var i = o.shift();
|
@@ -4342,14 +4342,14 @@ var Ai = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
4342
4342
|
candidates: f
|
4343
4343
|
});
|
4344
4344
|
} else {
|
4345
|
-
var c = et.call(i,
|
4345
|
+
var c = et.call(i, Vt);
|
4346
4346
|
c && n.filter(i) && (r || !t.includes(i)) && a.push(i);
|
4347
|
-
var h = i.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(i),
|
4348
|
-
if (h &&
|
4349
|
-
var
|
4350
|
-
n.flatten ? a.push.apply(a,
|
4347
|
+
var h = i.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(i), p = !n.shadowRootFilter || n.shadowRootFilter(i);
|
4348
|
+
if (h && p) {
|
4349
|
+
var g = e(h === !0 ? i.children : h.children, !0, n);
|
4350
|
+
n.flatten ? a.push.apply(a, g) : a.push({
|
4351
4351
|
scope: i,
|
4352
|
-
candidates:
|
4352
|
+
candidates: g
|
4353
4353
|
});
|
4354
4354
|
} else
|
4355
4355
|
o.unshift.apply(o, i.children);
|
@@ -4376,7 +4376,7 @@ var Ai = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
4376
4376
|
}, ki = function(t) {
|
4377
4377
|
if (!t.name)
|
4378
4378
|
return !0;
|
4379
|
-
var r = t.form ||
|
4379
|
+
var r = t.form || Xt(t), n = function(s) {
|
4380
4380
|
return r.querySelectorAll('input[type="radio"][name="' + s + '"]');
|
4381
4381
|
}, a;
|
4382
4382
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
@@ -4403,11 +4403,11 @@ var Ai = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
4403
4403
|
var o = et.call(t, "details>summary:first-of-type"), i = o ? t.parentElement : t;
|
4404
4404
|
if (et.call(i, "details:not([open]) *"))
|
4405
4405
|
return !0;
|
4406
|
-
var s =
|
4406
|
+
var s = Xt(t).host, l = (s == null ? void 0 : s.ownerDocument.contains(s)) || t.ownerDocument.contains(t);
|
4407
4407
|
if (!n || n === "full") {
|
4408
4408
|
if (typeof a == "function") {
|
4409
4409
|
for (var f = t; t; ) {
|
4410
|
-
var c = t.parentElement, h =
|
4410
|
+
var c = t.parentElement, h = Xt(t);
|
4411
4411
|
if (c && !c.shadowRoot && a(c) === !0)
|
4412
4412
|
return Yr(t);
|
4413
4413
|
t.assignedSlot ? t = t.assignedSlot : !c && h !== t.ownerDocument ? t = h.host : t = c;
|
@@ -4463,19 +4463,19 @@ var Ai = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
4463
4463
|
getShadowRoot: r.getShadowRoot,
|
4464
4464
|
shadowRootFilter: Xi
|
4465
4465
|
}) : n = _i(t, r.includeContainer, Wr.bind(null, r)), Zi(n);
|
4466
|
-
},
|
4466
|
+
}, ur = w.forwardRef(function({
|
4467
4467
|
unstable_skipInitialPortalRender: t,
|
4468
4468
|
...r
|
4469
4469
|
}, n) {
|
4470
|
-
return /* @__PURE__ */
|
4470
|
+
return /* @__PURE__ */ E(sr, {
|
4471
4471
|
unstable_skipInitialRender: t,
|
4472
|
-
children: /* @__PURE__ */
|
4472
|
+
children: /* @__PURE__ */ E(Jn, {
|
4473
4473
|
ref: n,
|
4474
4474
|
...r
|
4475
4475
|
})
|
4476
4476
|
});
|
4477
4477
|
});
|
4478
|
-
|
4478
|
+
ur.displayName = "Popover";
|
4479
4479
|
var Jn = w.forwardRef(function({
|
4480
4480
|
as: t = "div",
|
4481
4481
|
targetRef: r,
|
@@ -4488,7 +4488,7 @@ var Jn = w.forwardRef(function({
|
|
4488
4488
|
}), f = ht(r, {
|
4489
4489
|
observe: !0
|
4490
4490
|
}), c = Ge(s, i);
|
4491
|
-
return $i(r, s), /* @__PURE__ */
|
4491
|
+
return $i(r, s), /* @__PURE__ */ E(t, {
|
4492
4492
|
"data-reach-popover": "",
|
4493
4493
|
ref: c,
|
4494
4494
|
...o,
|
@@ -4538,73 +4538,73 @@ function qi(e, t, r = 0, n = 0) {
|
|
4538
4538
|
}
|
4539
4539
|
function $i(e, t) {
|
4540
4540
|
const r = De(e.current);
|
4541
|
-
function n(
|
4542
|
-
|
4541
|
+
function n(y) {
|
4542
|
+
y.key === "Tab" && t.current && Oe(t.current).length === 0 || (y.key === "Tab" && y.shiftKey ? f(y) ? c(y) : h(y) ? p(y) : I(y) && d() : y.key === "Tab" && (o() ? i(y) : s() ? l(y) : g(y) && d()));
|
4543
4543
|
}
|
4544
4544
|
w.useEffect(() => (r.addEventListener("keydown", n), () => {
|
4545
4545
|
r.removeEventListener("keydown", n);
|
4546
4546
|
}), []);
|
4547
4547
|
function a() {
|
4548
|
-
const
|
4549
|
-
return t.current && t.current.contains(
|
4548
|
+
const y = Oe(r), m = y && e.current ? y.indexOf(e.current) : -1, R = y && y[m + 1];
|
4549
|
+
return t.current && t.current.contains(R || null) ? !1 : R;
|
4550
4550
|
}
|
4551
4551
|
function o() {
|
4552
4552
|
return e.current ? e.current === r.activeElement : !1;
|
4553
4553
|
}
|
4554
|
-
function i(
|
4555
|
-
const
|
4556
|
-
|
4554
|
+
function i(y) {
|
4555
|
+
const m = t.current && Oe(t.current);
|
4556
|
+
m && m[0] && (y.preventDefault(), m[0].focus());
|
4557
4557
|
}
|
4558
4558
|
function s() {
|
4559
4559
|
if (t.current ? t.current.contains(r.activeElement || null) : !1) {
|
4560
|
-
const
|
4561
|
-
return Boolean(
|
4560
|
+
const m = t.current && Oe(t.current);
|
4561
|
+
return Boolean(m && m[m.length - 1] === r.activeElement);
|
4562
4562
|
}
|
4563
4563
|
return !1;
|
4564
4564
|
}
|
4565
|
-
function l(
|
4566
|
-
const
|
4567
|
-
|
4565
|
+
function l(y) {
|
4566
|
+
const m = a();
|
4567
|
+
m && (y.preventDefault(), m.focus());
|
4568
4568
|
}
|
4569
|
-
function f(
|
4570
|
-
if (!
|
4569
|
+
function f(y) {
|
4570
|
+
if (!y.shiftKey)
|
4571
4571
|
return;
|
4572
|
-
const
|
4573
|
-
return
|
4572
|
+
const m = a();
|
4573
|
+
return y.target === m;
|
4574
4574
|
}
|
4575
|
-
function c(
|
4576
|
-
const
|
4577
|
-
|
4575
|
+
function c(y) {
|
4576
|
+
const m = t.current && Oe(t.current), R = m && m[m.length - 1];
|
4577
|
+
R && (y.preventDefault(), R.focus());
|
4578
4578
|
}
|
4579
|
-
function h(
|
4580
|
-
const
|
4581
|
-
return
|
4579
|
+
function h(y) {
|
4580
|
+
const m = t.current && Oe(t.current);
|
4581
|
+
return m ? m.length === 0 ? !1 : y.target === m[0] : !1;
|
4582
4582
|
}
|
4583
|
-
function
|
4584
|
-
var
|
4585
|
-
|
4583
|
+
function p(y) {
|
4584
|
+
var m;
|
4585
|
+
y.preventDefault(), (m = e.current) == null || m.focus();
|
4586
4586
|
}
|
4587
|
-
function
|
4588
|
-
const
|
4589
|
-
return
|
4587
|
+
function g(y) {
|
4588
|
+
const m = t.current ? Oe(r).filter((R) => !t.current.contains(R)) : null;
|
4589
|
+
return m ? y.target === m[m.length - 1] : !1;
|
4590
4590
|
}
|
4591
|
-
function
|
4592
|
-
return
|
4591
|
+
function I(y) {
|
4592
|
+
return y.target === Oe(r)[0];
|
4593
4593
|
}
|
4594
4594
|
let T = [];
|
4595
4595
|
function d() {
|
4596
|
-
const
|
4597
|
-
|
4598
|
-
T.push([
|
4596
|
+
const y = t.current && Oe(t.current);
|
4597
|
+
y && (y.forEach((m) => {
|
4598
|
+
T.push([m, m.tabIndex]), m.tabIndex = -1;
|
4599
4599
|
}), r.addEventListener("focusin", S));
|
4600
4600
|
}
|
4601
4601
|
function S() {
|
4602
|
-
r.removeEventListener("focusin", S), T.forEach(([
|
4603
|
-
|
4602
|
+
r.removeEventListener("focusin", S), T.forEach(([y, m]) => {
|
4603
|
+
y.tabIndex = m;
|
4604
4604
|
});
|
4605
4605
|
}
|
4606
4606
|
}
|
4607
|
-
var
|
4607
|
+
var At = !1, Qi = 0;
|
4608
4608
|
function Jr() {
|
4609
4609
|
return ++Qi;
|
4610
4610
|
}
|
@@ -4615,18 +4615,18 @@ function qn(e) {
|
|
4615
4615
|
let o = qr();
|
4616
4616
|
return e != null ? e : o;
|
4617
4617
|
}
|
4618
|
-
let t = e != null ? e :
|
4618
|
+
let t = e != null ? e : At ? Jr() : null, [r, n] = w.useState(t);
|
4619
4619
|
return Xe(() => {
|
4620
4620
|
r === null && n(Jr());
|
4621
4621
|
}, []), w.useEffect(() => {
|
4622
|
-
|
4622
|
+
At === !1 && (At = !0);
|
4623
4623
|
}, []), (a = e != null ? e : r) != null ? a : void 0;
|
4624
4624
|
}
|
4625
4625
|
function Ki(e, t = {}) {
|
4626
4626
|
const r = [];
|
4627
4627
|
let n = w.createContext({
|
4628
4628
|
descendants: r,
|
4629
|
-
registerDescendant: () =>
|
4629
|
+
registerDescendant: () => ir,
|
4630
4630
|
...t
|
4631
4631
|
});
|
4632
4632
|
return n.displayName = e, n;
|
@@ -4694,8 +4694,8 @@ IMPORTANT: this check will only run in the development build, so if you see this
|
|
4694
4694
|
}, f), c;
|
4695
4695
|
}), () => {
|
4696
4696
|
!o || n((l) => l.filter((f) => o !== f.element));
|
4697
|
-
}) :
|
4698
|
-
return /* @__PURE__ */
|
4697
|
+
}) : ir, []);
|
4698
|
+
return /* @__PURE__ */ E(e.Provider, {
|
4699
4699
|
value: w.useMemo(() => ({
|
4700
4700
|
descendants: r,
|
4701
4701
|
registerDescendant: a
|
@@ -4718,70 +4718,70 @@ function as(e, t) {
|
|
4718
4718
|
return function(h) {
|
4719
4719
|
if (!["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(h.key))
|
4720
4720
|
return;
|
4721
|
-
let
|
4722
|
-
if (!
|
4721
|
+
let p = a != null ? a : -1, g = o ? r.filter(o) : r;
|
4722
|
+
if (!g.length)
|
4723
4723
|
return;
|
4724
|
-
let
|
4724
|
+
let I = g.findIndex((m) => m.index === a);
|
4725
4725
|
function T() {
|
4726
|
-
return
|
4726
|
+
return p === y().index ? l ? S() : g[I] : g[(I + 1) % g.length];
|
4727
4727
|
}
|
4728
4728
|
function d() {
|
4729
|
-
return
|
4729
|
+
return p === S().index ? l ? y() : g[I] : g[(I - 1 + g.length) % g.length];
|
4730
4730
|
}
|
4731
4731
|
function S() {
|
4732
|
-
return
|
4732
|
+
return g[0];
|
4733
4733
|
}
|
4734
|
-
function
|
4735
|
-
return
|
4734
|
+
function y() {
|
4735
|
+
return g[g.length - 1];
|
4736
4736
|
}
|
4737
4737
|
switch (h.key) {
|
4738
4738
|
case "ArrowDown":
|
4739
4739
|
if (s === "vertical" || s === "both") {
|
4740
4740
|
h.preventDefault();
|
4741
|
-
let
|
4742
|
-
n(i === "option" ?
|
4741
|
+
let _ = T();
|
4742
|
+
n(i === "option" ? _ : _[i]);
|
4743
4743
|
}
|
4744
4744
|
break;
|
4745
4745
|
case "ArrowUp":
|
4746
4746
|
if (s === "vertical" || s === "both") {
|
4747
4747
|
h.preventDefault();
|
4748
|
-
let
|
4749
|
-
n(i === "option" ?
|
4748
|
+
let _ = d();
|
4749
|
+
n(i === "option" ? _ : _[i]);
|
4750
4750
|
}
|
4751
4751
|
break;
|
4752
4752
|
case "ArrowLeft":
|
4753
4753
|
if (s === "horizontal" || s === "both") {
|
4754
4754
|
h.preventDefault();
|
4755
|
-
let
|
4756
|
-
n(i === "option" ?
|
4755
|
+
let _ = (f ? T : d)();
|
4756
|
+
n(i === "option" ? _ : _[i]);
|
4757
4757
|
}
|
4758
4758
|
break;
|
4759
4759
|
case "ArrowRight":
|
4760
4760
|
if (s === "horizontal" || s === "both") {
|
4761
4761
|
h.preventDefault();
|
4762
|
-
let
|
4763
|
-
n(i === "option" ?
|
4762
|
+
let _ = (f ? d : T)();
|
4763
|
+
n(i === "option" ? _ : _[i]);
|
4764
4764
|
}
|
4765
4765
|
break;
|
4766
4766
|
case "PageUp":
|
4767
4767
|
h.preventDefault();
|
4768
|
-
let
|
4769
|
-
n(i === "option" ?
|
4768
|
+
let m = (h.ctrlKey ? d : S)();
|
4769
|
+
n(i === "option" ? m : m[i]);
|
4770
4770
|
break;
|
4771
4771
|
case "Home":
|
4772
4772
|
h.preventDefault();
|
4773
|
-
let
|
4774
|
-
n(i === "option" ?
|
4773
|
+
let R = S();
|
4774
|
+
n(i === "option" ? R : R[i]);
|
4775
4775
|
break;
|
4776
4776
|
case "PageDown":
|
4777
4777
|
h.preventDefault();
|
4778
|
-
let
|
4779
|
-
n(i === "option" ?
|
4778
|
+
let v = (h.ctrlKey ? T : y)();
|
4779
|
+
n(i === "option" ? v : v[i]);
|
4780
4780
|
break;
|
4781
4781
|
case "End":
|
4782
4782
|
h.preventDefault();
|
4783
|
-
let
|
4784
|
-
n(i === "option" ?
|
4783
|
+
let N = y();
|
4784
|
+
n(i === "option" ? N : N[i]);
|
4785
4785
|
break;
|
4786
4786
|
}
|
4787
4787
|
};
|
@@ -4809,7 +4809,7 @@ function is(e) {
|
|
4809
4809
|
index: r
|
4810
4810
|
}));
|
4811
4811
|
}
|
4812
|
-
var Qn = "CLEAR_SELECTION_INDEX",
|
4812
|
+
var Qn = "CLEAR_SELECTION_INDEX", lr = "CLICK_MENU_ITEM", tt = "CLOSE_MENU", ss = "OPEN_MENU_AT_FIRST_ITEM", Zt = "OPEN_MENU_AT_INDEX", Kn = "OPEN_MENU_CLEARED", Yt = "SEARCH_FOR_ITEM", Le = "SELECT_ITEM_AT_INDEX", Wt = "SET_BUTTON_ID", Et = Ki("DropdownDescendantContext"), [us, nt] = Si("Dropdown"), ls = {
|
4813
4813
|
triggerId: null,
|
4814
4814
|
isExpanded: !1,
|
4815
4815
|
typeaheadQuery: "",
|
@@ -4821,7 +4821,7 @@ var Qn = "CLEAR_SELECTION_INDEX", ur = "CLICK_MENU_ITEM", tt = "CLOSE_MENU", ss
|
|
4821
4821
|
let r = w.useRef(null), n = w.useRef(null), a = w.useRef(null), [o, i] = ts(), s = qn(e), l = e || Ye("menu", s), f = Ye("menu-button", l), [c, h] = w.useReducer(vs, {
|
4822
4822
|
...ls,
|
4823
4823
|
triggerId: f
|
4824
|
-
}),
|
4824
|
+
}), p = w.useRef(!1), g = w.useRef([]), I = w.useRef(!1), T = w.useRef({
|
4825
4825
|
x: 0,
|
4826
4826
|
y: 0
|
4827
4827
|
});
|
@@ -4829,20 +4829,20 @@ var Qn = "CLEAR_SELECTION_INDEX", ur = "CLICK_MENU_ITEM", tt = "CLOSE_MENU", ss
|
|
4829
4829
|
c.isExpanded ? (window.__REACH_DISABLE_TOOLTIPS = !0, window.requestAnimationFrame(() => {
|
4830
4830
|
dt(n.current);
|
4831
4831
|
})) : window.__REACH_DISABLE_TOOLTIPS = !1;
|
4832
|
-
}, [c.isExpanded]), /* @__PURE__ */
|
4833
|
-
context:
|
4832
|
+
}, [c.isExpanded]), /* @__PURE__ */ E(ns, {
|
4833
|
+
context: Et,
|
4834
4834
|
items: o,
|
4835
4835
|
set: i,
|
4836
|
-
children: /* @__PURE__ */
|
4836
|
+
children: /* @__PURE__ */ E(us, {
|
4837
4837
|
dispatch: h,
|
4838
4838
|
dropdownId: l,
|
4839
4839
|
dropdownRef: n,
|
4840
4840
|
mouseDownStartPosRef: T,
|
4841
4841
|
popoverRef: a,
|
4842
|
-
readyToSelect:
|
4843
|
-
selectCallbacks:
|
4842
|
+
readyToSelect: I,
|
4843
|
+
selectCallbacks: g,
|
4844
4844
|
state: c,
|
4845
|
-
triggerClickedRef:
|
4845
|
+
triggerClickedRef: p,
|
4846
4846
|
triggerRef: r,
|
4847
4847
|
children: ft(t) ? t({
|
4848
4848
|
isExpanded: c.isExpanded,
|
@@ -4869,15 +4869,15 @@ function ta({
|
|
4869
4869
|
triggerId: c,
|
4870
4870
|
isExpanded: h
|
4871
4871
|
}
|
4872
|
-
} = nt("useDropdownTrigger"),
|
4872
|
+
} = nt("useDropdownTrigger"), p = Ge(f, n), g = ia(), I = w.useMemo(() => g.findIndex((S) => !S.disabled), [g]);
|
4873
4873
|
w.useEffect(() => {
|
4874
4874
|
r != null && r !== c && o({
|
4875
|
-
type:
|
4875
|
+
type: Wt,
|
4876
4876
|
payload: r
|
4877
4877
|
});
|
4878
4878
|
}, [c, o, r]), w.useEffect(() => {
|
4879
4879
|
r == null && o({
|
4880
|
-
type:
|
4880
|
+
type: Wt,
|
4881
4881
|
payload: Ye("menu-button", i)
|
4882
4882
|
});
|
4883
4883
|
}, [i, o, r]);
|
@@ -4886,18 +4886,18 @@ function ta({
|
|
4886
4886
|
case "ArrowDown":
|
4887
4887
|
case "ArrowUp":
|
4888
4888
|
S.preventDefault(), o({
|
4889
|
-
type:
|
4889
|
+
type: Zt,
|
4890
4890
|
payload: {
|
4891
|
-
index:
|
4891
|
+
index: I
|
4892
4892
|
}
|
4893
4893
|
});
|
4894
4894
|
break;
|
4895
4895
|
case "Enter":
|
4896
4896
|
case " ":
|
4897
4897
|
o({
|
4898
|
-
type:
|
4898
|
+
type: Zt,
|
4899
4899
|
payload: {
|
4900
|
-
index:
|
4900
|
+
index: I
|
4901
4901
|
}
|
4902
4902
|
});
|
4903
4903
|
break;
|
@@ -4920,7 +4920,7 @@ function ta({
|
|
4920
4920
|
},
|
4921
4921
|
props: {
|
4922
4922
|
...a,
|
4923
|
-
ref:
|
4923
|
+
ref: p,
|
4924
4924
|
id: c || void 0,
|
4925
4925
|
onKeyDown: W(e, T),
|
4926
4926
|
onMouseDown: W(t, d),
|
@@ -4938,7 +4938,7 @@ var cs = w.forwardRef(({
|
|
4938
4938
|
...t,
|
4939
4939
|
ref: r
|
4940
4940
|
});
|
4941
|
-
return /* @__PURE__ */
|
4941
|
+
return /* @__PURE__ */ E(e, {
|
4942
4942
|
"data-reach-dropdown-trigger": "",
|
4943
4943
|
...n
|
4944
4944
|
});
|
@@ -4957,33 +4957,33 @@ function ra({
|
|
4957
4957
|
onSelect: f,
|
4958
4958
|
disabled: c,
|
4959
4959
|
onFocus: h,
|
4960
|
-
valueText:
|
4961
|
-
ref:
|
4962
|
-
...
|
4960
|
+
valueText: p,
|
4961
|
+
ref: g,
|
4962
|
+
...I
|
4963
4963
|
}) {
|
4964
4964
|
let {
|
4965
4965
|
dispatch: T,
|
4966
4966
|
dropdownRef: d,
|
4967
4967
|
mouseDownStartPosRef: S,
|
4968
|
-
readyToSelect:
|
4969
|
-
selectCallbacks:
|
4970
|
-
triggerRef:
|
4968
|
+
readyToSelect: y,
|
4969
|
+
selectCallbacks: m,
|
4970
|
+
triggerRef: R,
|
4971
4971
|
state: {
|
4972
|
-
selectionIndex:
|
4973
|
-
isExpanded:
|
4974
|
-
}
|
4975
|
-
} = nt("useDropdownItem"),
|
4976
|
-
!
|
4977
|
-
}, [
|
4978
|
-
element:
|
4979
|
-
key:
|
4972
|
+
selectionIndex: v,
|
4973
|
+
isExpanded: N
|
4974
|
+
}
|
4975
|
+
} = nt("useDropdownItem"), _ = w.useRef(null), [ee, se] = w.useState(p || ""), ue = w.useCallback((F) => {
|
4976
|
+
!p && (F == null ? void 0 : F.textContent) && se(F.textContent);
|
4977
|
+
}, [p]), ce = w.useRef(!1), [me, $] = Ii(_, null), ae = w.useMemo(() => ({
|
4978
|
+
element: me,
|
4979
|
+
key: ee,
|
4980
4980
|
disabled: c,
|
4981
4981
|
isLink: t
|
4982
|
-
}), [c,
|
4983
|
-
|
4982
|
+
}), [c, me, t, ee]), J = es(ae, Et, e), Z = J === v && !c, oe = Ge(g, $, ue);
|
4983
|
+
m.current[J] = f;
|
4984
4984
|
function Q() {
|
4985
|
-
dt(
|
4986
|
-
type:
|
4985
|
+
dt(R.current), f && f(), T({
|
4986
|
+
type: lr
|
4987
4987
|
});
|
4988
4988
|
}
|
4989
4989
|
function xe(F) {
|
@@ -4993,11 +4993,11 @@ function ra({
|
|
4993
4993
|
t && F.preventDefault();
|
4994
4994
|
}
|
4995
4995
|
function Ce(F) {
|
4996
|
-
ut(F.nativeEvent) || (t ?
|
4996
|
+
ut(F.nativeEvent) || (t ? ce.current = !0 : F.preventDefault());
|
4997
4997
|
}
|
4998
4998
|
function Ne(F) {
|
4999
4999
|
let K = De(d.current);
|
5000
|
-
!Z && J != null && !c && ((d == null ? void 0 : d.current) && d.current !== K.activeElement &&
|
5000
|
+
!Z && J != null && !c && ((d == null ? void 0 : d.current) && d.current !== K.activeElement && _.current !== K.activeElement && d.current.focus(), T({
|
5001
5001
|
type: Le,
|
5002
5002
|
payload: {
|
5003
5003
|
index: J
|
@@ -5010,9 +5010,9 @@ function ra({
|
|
5010
5010
|
});
|
5011
5011
|
}
|
5012
5012
|
function Fe(F) {
|
5013
|
-
if (!
|
5013
|
+
if (!y.current) {
|
5014
5014
|
let K = 8, Ie = Math.abs(F.clientX - S.current.x), ge = Math.abs(F.clientY - S.current.y);
|
5015
|
-
(Ie > K || ge > K) && (
|
5015
|
+
(Ie > K || ge > K) && (y.current = !0);
|
5016
5016
|
}
|
5017
5017
|
!Z && J != null && !c && T({
|
5018
5018
|
type: Le,
|
@@ -5023,7 +5023,7 @@ function ra({
|
|
5023
5023
|
});
|
5024
5024
|
}
|
5025
5025
|
function Be() {
|
5026
|
-
|
5026
|
+
y.current = !0, !Z && J != null && !c && T({
|
5027
5027
|
type: Le,
|
5028
5028
|
payload: {
|
5029
5029
|
index: J
|
@@ -5032,30 +5032,30 @@ function ra({
|
|
5032
5032
|
}
|
5033
5033
|
function Re(F) {
|
5034
5034
|
if (!ut(F.nativeEvent)) {
|
5035
|
-
if (!
|
5036
|
-
|
5035
|
+
if (!y.current) {
|
5036
|
+
y.current = !0;
|
5037
5037
|
return;
|
5038
5038
|
}
|
5039
|
-
t ?
|
5039
|
+
t ? ce.current ? ce.current = !1 : _.current && _.current.click() : c || Q();
|
5040
5040
|
}
|
5041
5041
|
}
|
5042
5042
|
return w.useEffect(() => {
|
5043
|
-
if (
|
5043
|
+
if (N) {
|
5044
5044
|
let F = window.setTimeout(() => {
|
5045
|
-
|
5045
|
+
y.current = !0;
|
5046
5046
|
}, 400);
|
5047
5047
|
return () => {
|
5048
5048
|
window.clearTimeout(F);
|
5049
5049
|
};
|
5050
5050
|
} else
|
5051
|
-
|
5052
|
-
}, [
|
5053
|
-
let F = De(
|
5051
|
+
y.current = !1;
|
5052
|
+
}, [N, y]), w.useEffect(() => {
|
5053
|
+
let F = De(_.current);
|
5054
5054
|
return F.addEventListener("mouseup", K), () => {
|
5055
5055
|
F.removeEventListener("mouseup", K);
|
5056
5056
|
};
|
5057
5057
|
function K() {
|
5058
|
-
|
5058
|
+
ce.current = !1;
|
5059
5059
|
}
|
5060
5060
|
}, []), {
|
5061
5061
|
data: {
|
@@ -5064,11 +5064,11 @@ function ra({
|
|
5064
5064
|
props: {
|
5065
5065
|
id: oa(J),
|
5066
5066
|
tabIndex: -1,
|
5067
|
-
...
|
5068
|
-
ref:
|
5067
|
+
...I,
|
5068
|
+
ref: oe,
|
5069
5069
|
"data-disabled": c ? "" : void 0,
|
5070
5070
|
"data-selected": Z ? "" : void 0,
|
5071
|
-
"data-valuetext":
|
5071
|
+
"data-valuetext": ee,
|
5072
5072
|
onClick: W(r, xe),
|
5073
5073
|
onDragStart: W(n, Se),
|
5074
5074
|
onMouseDown: W(a, Ce),
|
@@ -5090,7 +5090,7 @@ var fs = w.forwardRef(({
|
|
5090
5090
|
...t,
|
5091
5091
|
ref: r
|
5092
5092
|
});
|
5093
|
-
return /* @__PURE__ */
|
5093
|
+
return /* @__PURE__ */ E(e, {
|
5094
5094
|
"data-reach-dropdown-item": "",
|
5095
5095
|
...n
|
5096
5096
|
});
|
@@ -5112,51 +5112,51 @@ function na({
|
|
5112
5112
|
isExpanded: f,
|
5113
5113
|
triggerId: c,
|
5114
5114
|
selectionIndex: h,
|
5115
|
-
typeaheadQuery:
|
5115
|
+
typeaheadQuery: p
|
5116
5116
|
}
|
5117
|
-
} = nt("useDropdownItems"),
|
5117
|
+
} = nt("useDropdownItems"), g = ia(), I = Ge(i, r);
|
5118
5118
|
w.useEffect(() => {
|
5119
|
-
let
|
5120
|
-
|
5119
|
+
let m = ms(g, p);
|
5120
|
+
p && m != null && a({
|
5121
5121
|
type: Le,
|
5122
5122
|
payload: {
|
5123
|
-
index:
|
5123
|
+
index: m,
|
5124
5124
|
dropdownRef: i
|
5125
5125
|
}
|
5126
5126
|
});
|
5127
|
-
let
|
5128
|
-
type:
|
5127
|
+
let R = window.setTimeout(() => p && a({
|
5128
|
+
type: Yt,
|
5129
5129
|
payload: ""
|
5130
5130
|
}), 1e3);
|
5131
|
-
return () => window.clearTimeout(
|
5132
|
-
}, [a,
|
5133
|
-
let T =
|
5131
|
+
return () => window.clearTimeout(R);
|
5132
|
+
}, [a, g, p, i]);
|
5133
|
+
let T = Nt(g.length), d = Nt(g[h]), S = Nt(h);
|
5134
5134
|
w.useEffect(() => {
|
5135
|
-
h >
|
5135
|
+
h > g.length - 1 ? a({
|
5136
5136
|
type: Le,
|
5137
5137
|
payload: {
|
5138
|
-
index:
|
5138
|
+
index: g.length - 1,
|
5139
5139
|
dropdownRef: i
|
5140
5140
|
}
|
5141
|
-
}) : T !==
|
5141
|
+
}) : T !== g.length && h > -1 && d && S === h && g[h] !== d && a({
|
5142
5142
|
type: Le,
|
5143
5143
|
payload: {
|
5144
|
-
index:
|
5144
|
+
index: g.findIndex((m) => m.key === (d == null ? void 0 : d.key)),
|
5145
5145
|
dropdownRef: i
|
5146
5146
|
}
|
5147
5147
|
});
|
5148
|
-
}, [i, a,
|
5149
|
-
let
|
5148
|
+
}, [i, a, g, T, d, S, h]);
|
5149
|
+
let y = W(function(R) {
|
5150
5150
|
let {
|
5151
|
-
key:
|
5152
|
-
} =
|
5151
|
+
key: v
|
5152
|
+
} = R;
|
5153
5153
|
if (!!f)
|
5154
|
-
switch (
|
5154
|
+
switch (v) {
|
5155
5155
|
case "Enter":
|
5156
5156
|
case " ":
|
5157
|
-
let
|
5158
|
-
|
5159
|
-
type:
|
5157
|
+
let N = g.find((_) => _.index === h);
|
5158
|
+
N && !N.disabled && (R.preventDefault(), N.isLink && N.element ? N.element.click() : (dt(o.current), s.current[N.index] && s.current[N.index](), a({
|
5159
|
+
type: lr
|
5160
5160
|
})));
|
5161
5161
|
break;
|
5162
5162
|
case "Escape":
|
@@ -5165,28 +5165,28 @@ function na({
|
|
5165
5165
|
});
|
5166
5166
|
break;
|
5167
5167
|
case "Tab":
|
5168
|
-
|
5168
|
+
R.preventDefault();
|
5169
5169
|
break;
|
5170
5170
|
default:
|
5171
|
-
if (Ti(
|
5172
|
-
let
|
5171
|
+
if (Ti(v) && v.length === 1) {
|
5172
|
+
let _ = p + v.toLowerCase();
|
5173
5173
|
a({
|
5174
|
-
type:
|
5175
|
-
payload:
|
5174
|
+
type: Yt,
|
5175
|
+
payload: _
|
5176
5176
|
});
|
5177
5177
|
}
|
5178
5178
|
break;
|
5179
5179
|
}
|
5180
|
-
}, as(
|
5180
|
+
}, as(Et, {
|
5181
5181
|
currentIndex: h,
|
5182
5182
|
orientation: "vertical",
|
5183
5183
|
rotate: !1,
|
5184
|
-
filter: (
|
5185
|
-
callback: (
|
5184
|
+
filter: (m) => !m.disabled,
|
5185
|
+
callback: (m) => {
|
5186
5186
|
a({
|
5187
5187
|
type: Le,
|
5188
5188
|
payload: {
|
5189
|
-
index:
|
5189
|
+
index: m,
|
5190
5190
|
dropdownRef: i
|
5191
5191
|
}
|
5192
5192
|
});
|
@@ -5201,9 +5201,9 @@ function na({
|
|
5201
5201
|
props: {
|
5202
5202
|
tabIndex: -1,
|
5203
5203
|
...n,
|
5204
|
-
ref:
|
5204
|
+
ref: I,
|
5205
5205
|
id: l,
|
5206
|
-
onKeyDown: W(t,
|
5206
|
+
onKeyDown: W(t, y)
|
5207
5207
|
}
|
5208
5208
|
};
|
5209
5209
|
}
|
@@ -5217,7 +5217,7 @@ var hs = w.forwardRef(({
|
|
5217
5217
|
...t,
|
5218
5218
|
ref: r
|
5219
5219
|
});
|
5220
|
-
return /* @__PURE__ */
|
5220
|
+
return /* @__PURE__ */ E(e, {
|
5221
5221
|
"data-reach-dropdown-items": "",
|
5222
5222
|
...n
|
5223
5223
|
});
|
@@ -5243,14 +5243,14 @@ function aa({
|
|
5243
5243
|
return w.useEffect(() => {
|
5244
5244
|
if (!c)
|
5245
5245
|
return;
|
5246
|
-
let
|
5247
|
-
function
|
5248
|
-
i.current ? i.current = !1 : ps(f.current,
|
5246
|
+
let p = De(f.current);
|
5247
|
+
function g(I) {
|
5248
|
+
i.current ? i.current = !1 : ps(f.current, I.target) || s({
|
5249
5249
|
type: tt
|
5250
5250
|
});
|
5251
5251
|
}
|
5252
|
-
return
|
5253
|
-
|
5252
|
+
return p.addEventListener("mousedown", g), () => {
|
5253
|
+
p.removeEventListener("mousedown", g);
|
5254
5254
|
};
|
5255
5255
|
}, [i, o, s, l, f, c]), {
|
5256
5256
|
data: {
|
@@ -5262,8 +5262,8 @@ function aa({
|
|
5262
5262
|
props: {
|
5263
5263
|
ref: h,
|
5264
5264
|
hidden: !c,
|
5265
|
-
onBlur: W(e, (
|
5266
|
-
|
5265
|
+
onBlur: W(e, (p) => {
|
5266
|
+
p.currentTarget.contains(p.relatedTarget) || s({
|
5267
5267
|
type: tt
|
5268
5268
|
});
|
5269
5269
|
}),
|
@@ -5288,14 +5288,14 @@ var ds = w.forwardRef(({
|
|
5288
5288
|
}), s = {
|
5289
5289
|
"data-reach-dropdown-popover": ""
|
5290
5290
|
};
|
5291
|
-
return n ? /* @__PURE__ */
|
5291
|
+
return n ? /* @__PURE__ */ E(ur, {
|
5292
5292
|
...i,
|
5293
5293
|
...s,
|
5294
5294
|
as: e,
|
5295
5295
|
targetRef: a,
|
5296
5296
|
position: o,
|
5297
5297
|
unstable_skipInitialPortalRender: !0
|
5298
|
-
}) : /* @__PURE__ */
|
5298
|
+
}) : /* @__PURE__ */ E(e, {
|
5299
5299
|
...i,
|
5300
5300
|
...s
|
5301
5301
|
});
|
@@ -5324,7 +5324,7 @@ function ps(e, t) {
|
|
5324
5324
|
}
|
5325
5325
|
function vs(e, t = {}) {
|
5326
5326
|
switch (t.type) {
|
5327
|
-
case
|
5327
|
+
case lr:
|
5328
5328
|
return {
|
5329
5329
|
...e,
|
5330
5330
|
isExpanded: !1,
|
@@ -5342,7 +5342,7 @@ function vs(e, t = {}) {
|
|
5342
5342
|
isExpanded: !0,
|
5343
5343
|
selectionIndex: 0
|
5344
5344
|
};
|
5345
|
-
case
|
5345
|
+
case Zt:
|
5346
5346
|
return {
|
5347
5347
|
...e,
|
5348
5348
|
isExpanded: !0,
|
@@ -5377,12 +5377,12 @@ function vs(e, t = {}) {
|
|
5377
5377
|
...e,
|
5378
5378
|
selectionIndex: -1
|
5379
5379
|
};
|
5380
|
-
case
|
5380
|
+
case Wt:
|
5381
5381
|
return {
|
5382
5382
|
...e,
|
5383
5383
|
triggerId: t.payload
|
5384
5384
|
};
|
5385
|
-
case
|
5385
|
+
case Yt:
|
5386
5386
|
return typeof t.payload < "u" ? {
|
5387
5387
|
...e,
|
5388
5388
|
typeaheadQuery: t.payload
|
@@ -5392,7 +5392,7 @@ function vs(e, t = {}) {
|
|
5392
5392
|
}
|
5393
5393
|
}
|
5394
5394
|
function ia() {
|
5395
|
-
return rs(
|
5395
|
+
return rs(Et);
|
5396
5396
|
}
|
5397
5397
|
var sa = { exports: {} }, z = {};
|
5398
5398
|
/**
|
@@ -5409,8 +5409,8 @@ function gs() {
|
|
5409
5409
|
if (Qr)
|
5410
5410
|
return z;
|
5411
5411
|
Qr = 1;
|
5412
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"),
|
5413
|
-
|
5412
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), I;
|
5413
|
+
I = Symbol.for("react.module.reference");
|
5414
5414
|
function T(d) {
|
5415
5415
|
if (typeof d == "object" && d !== null) {
|
5416
5416
|
var S = d.$$typeof;
|
@@ -5428,7 +5428,7 @@ function gs() {
|
|
5428
5428
|
case s:
|
5429
5429
|
case i:
|
5430
5430
|
case l:
|
5431
|
-
case
|
5431
|
+
case p:
|
5432
5432
|
case h:
|
5433
5433
|
case o:
|
5434
5434
|
return d;
|
@@ -5441,7 +5441,7 @@ function gs() {
|
|
5441
5441
|
}
|
5442
5442
|
}
|
5443
5443
|
}
|
5444
|
-
return z.ContextConsumer = i, z.ContextProvider = o, z.Element = e, z.ForwardRef = l, z.Fragment = r, z.Lazy =
|
5444
|
+
return z.ContextConsumer = i, z.ContextProvider = o, z.Element = e, z.ForwardRef = l, z.Fragment = r, z.Lazy = p, z.Memo = h, z.Portal = t, z.Profiler = a, z.StrictMode = n, z.Suspense = f, z.SuspenseList = c, z.isAsyncMode = function() {
|
5445
5445
|
return !1;
|
5446
5446
|
}, z.isConcurrentMode = function() {
|
5447
5447
|
return !1;
|
@@ -5456,7 +5456,7 @@ function gs() {
|
|
5456
5456
|
}, z.isFragment = function(d) {
|
5457
5457
|
return T(d) === r;
|
5458
5458
|
}, z.isLazy = function(d) {
|
5459
|
-
return T(d) ===
|
5459
|
+
return T(d) === p;
|
5460
5460
|
}, z.isMemo = function(d) {
|
5461
5461
|
return T(d) === h;
|
5462
5462
|
}, z.isPortal = function(d) {
|
@@ -5470,7 +5470,7 @@ function gs() {
|
|
5470
5470
|
}, z.isSuspenseList = function(d) {
|
5471
5471
|
return T(d) === c;
|
5472
5472
|
}, z.isValidElementType = function(d) {
|
5473
|
-
return typeof d == "string" || typeof d == "function" || d === r || d === a || d === n || d === f || d === c || d ===
|
5473
|
+
return typeof d == "string" || typeof d == "function" || d === r || d === a || d === n || d === f || d === c || d === g || typeof d == "object" && d !== null && (d.$$typeof === p || d.$$typeof === h || d.$$typeof === o || d.$$typeof === i || d.$$typeof === l || d.$$typeof === I || d.getModuleId !== void 0);
|
5474
5474
|
}, z.typeOf = T, z;
|
5475
5475
|
}
|
5476
5476
|
var G = {};
|
@@ -5486,17 +5486,17 @@ var G = {};
|
|
5486
5486
|
var Kr;
|
5487
5487
|
function ys() {
|
5488
5488
|
return Kr || (Kr = 1, process.env.NODE_ENV !== "production" && function() {
|
5489
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"),
|
5490
|
-
|
5491
|
-
function O
|
5492
|
-
return !!(typeof
|
5493
|
-
}
|
5494
|
-
function
|
5495
|
-
if (typeof
|
5496
|
-
var
|
5497
|
-
switch (
|
5489
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), I = !1, T = !1, d = !1, S = !1, y = !1, m;
|
5490
|
+
m = Symbol.for("react.module.reference");
|
5491
|
+
function R(O) {
|
5492
|
+
return !!(typeof O == "string" || typeof O == "function" || O === r || O === a || y || O === n || O === f || O === c || S || O === g || I || T || d || typeof O == "object" && O !== null && (O.$$typeof === p || O.$$typeof === h || O.$$typeof === o || O.$$typeof === i || O.$$typeof === l || O.$$typeof === m || O.getModuleId !== void 0));
|
5493
|
+
}
|
5494
|
+
function v(O) {
|
5495
|
+
if (typeof O == "object" && O !== null) {
|
5496
|
+
var pe = O.$$typeof;
|
5497
|
+
switch (pe) {
|
5498
5498
|
case e:
|
5499
|
-
var Me =
|
5499
|
+
var Me = O.type;
|
5500
5500
|
switch (Me) {
|
5501
5501
|
case r:
|
5502
5502
|
case a:
|
@@ -5510,69 +5510,69 @@ function ys() {
|
|
5510
5510
|
case s:
|
5511
5511
|
case i:
|
5512
5512
|
case l:
|
5513
|
-
case
|
5513
|
+
case p:
|
5514
5514
|
case h:
|
5515
5515
|
case o:
|
5516
5516
|
return qe;
|
5517
5517
|
default:
|
5518
|
-
return
|
5518
|
+
return pe;
|
5519
5519
|
}
|
5520
5520
|
}
|
5521
5521
|
case t:
|
5522
|
-
return
|
5522
|
+
return pe;
|
5523
5523
|
}
|
5524
5524
|
}
|
5525
5525
|
}
|
5526
|
-
var
|
5527
|
-
function Se(
|
5526
|
+
var N = i, _ = o, ee = e, se = l, ue = r, ce = p, me = h, $ = t, ae = a, J = n, Z = f, oe = c, Q = !1, xe = !1;
|
5527
|
+
function Se(O) {
|
5528
5528
|
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
5529
5529
|
}
|
5530
|
-
function Ce(
|
5530
|
+
function Ce(O) {
|
5531
5531
|
return xe || (xe = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
5532
5532
|
}
|
5533
|
-
function Ne(
|
5534
|
-
return
|
5533
|
+
function Ne(O) {
|
5534
|
+
return v(O) === i;
|
5535
5535
|
}
|
5536
|
-
function Ae(
|
5537
|
-
return
|
5536
|
+
function Ae(O) {
|
5537
|
+
return v(O) === o;
|
5538
5538
|
}
|
5539
|
-
function Fe(
|
5540
|
-
return typeof
|
5539
|
+
function Fe(O) {
|
5540
|
+
return typeof O == "object" && O !== null && O.$$typeof === e;
|
5541
5541
|
}
|
5542
|
-
function Be(
|
5543
|
-
return
|
5542
|
+
function Be(O) {
|
5543
|
+
return v(O) === l;
|
5544
5544
|
}
|
5545
|
-
function Re(
|
5546
|
-
return
|
5545
|
+
function Re(O) {
|
5546
|
+
return v(O) === r;
|
5547
5547
|
}
|
5548
|
-
function F(
|
5549
|
-
return
|
5548
|
+
function F(O) {
|
5549
|
+
return v(O) === p;
|
5550
5550
|
}
|
5551
|
-
function K(
|
5552
|
-
return
|
5551
|
+
function K(O) {
|
5552
|
+
return v(O) === h;
|
5553
5553
|
}
|
5554
|
-
function Ie(
|
5555
|
-
return
|
5554
|
+
function Ie(O) {
|
5555
|
+
return v(O) === t;
|
5556
5556
|
}
|
5557
|
-
function ge(
|
5558
|
-
return
|
5557
|
+
function ge(O) {
|
5558
|
+
return v(O) === a;
|
5559
5559
|
}
|
5560
|
-
function Je(
|
5561
|
-
return
|
5560
|
+
function Je(O) {
|
5561
|
+
return v(O) === n;
|
5562
5562
|
}
|
5563
|
-
function
|
5564
|
-
return
|
5563
|
+
function P(O) {
|
5564
|
+
return v(O) === f;
|
5565
5565
|
}
|
5566
|
-
function ke(
|
5567
|
-
return
|
5566
|
+
function ke(O) {
|
5567
|
+
return v(O) === c;
|
5568
5568
|
}
|
5569
|
-
G.ContextConsumer =
|
5569
|
+
G.ContextConsumer = N, G.ContextProvider = _, G.Element = ee, G.ForwardRef = se, G.Fragment = ue, G.Lazy = ce, G.Memo = me, G.Portal = $, G.Profiler = ae, G.StrictMode = J, G.Suspense = Z, G.SuspenseList = oe, G.isAsyncMode = Se, G.isConcurrentMode = Ce, G.isContextConsumer = Ne, G.isContextProvider = Ae, G.isElement = Fe, G.isForwardRef = Be, G.isFragment = Re, G.isLazy = F, G.isMemo = K, G.isPortal = Ie, G.isProfiler = ge, G.isStrictMode = Je, G.isSuspense = P, G.isSuspenseList = ke, G.isValidElementType = R, G.typeOf = v;
|
5570
5570
|
}()), G;
|
5571
5571
|
}
|
5572
5572
|
(function(e) {
|
5573
5573
|
process.env.NODE_ENV === "production" ? e.exports = gs() : e.exports = ys();
|
5574
5574
|
})(sa);
|
5575
|
-
var
|
5575
|
+
var bt = w.forwardRef(({
|
5576
5576
|
as: e = w.Fragment,
|
5577
5577
|
id: t,
|
5578
5578
|
children: r,
|
@@ -5581,7 +5581,7 @@ var Et = w.forwardRef(({
|
|
5581
5581
|
let i = w.useMemo(() => {
|
5582
5582
|
try {
|
5583
5583
|
return sa.exports.isFragment(
|
5584
|
-
/* @__PURE__ */
|
5584
|
+
/* @__PURE__ */ E(e, {})
|
5585
5585
|
);
|
5586
5586
|
} catch {
|
5587
5587
|
return !1;
|
@@ -5592,16 +5592,16 @@ var Et = w.forwardRef(({
|
|
5592
5592
|
"data-reach-menu": "",
|
5593
5593
|
...n
|
5594
5594
|
};
|
5595
|
-
return /* @__PURE__ */
|
5595
|
+
return /* @__PURE__ */ E(e, {
|
5596
5596
|
...i,
|
5597
|
-
children: /* @__PURE__ */
|
5597
|
+
children: /* @__PURE__ */ E(ea, {
|
5598
5598
|
id: t,
|
5599
5599
|
children: r
|
5600
5600
|
})
|
5601
5601
|
});
|
5602
5602
|
});
|
5603
|
-
|
5604
|
-
var
|
5603
|
+
bt.displayName = "Menu";
|
5604
|
+
var wt = w.forwardRef(({
|
5605
5605
|
as: e = "button",
|
5606
5606
|
...t
|
5607
5607
|
}, r) => {
|
@@ -5615,7 +5615,7 @@ var bt = w.forwardRef(({
|
|
5615
5615
|
...t,
|
5616
5616
|
ref: r
|
5617
5617
|
});
|
5618
|
-
return /* @__PURE__ */
|
5618
|
+
return /* @__PURE__ */ E(e, {
|
5619
5619
|
"aria-expanded": n ? !0 : void 0,
|
5620
5620
|
"aria-haspopup": !0,
|
5621
5621
|
"aria-controls": a,
|
@@ -5623,8 +5623,8 @@ var bt = w.forwardRef(({
|
|
5623
5623
|
"data-reach-menu-button": ""
|
5624
5624
|
});
|
5625
5625
|
});
|
5626
|
-
|
5627
|
-
var
|
5626
|
+
wt.displayName = "MenuButton";
|
5627
|
+
var cr = w.forwardRef(({
|
5628
5628
|
as: e = "div",
|
5629
5629
|
...t
|
5630
5630
|
}, r) => {
|
@@ -5637,18 +5637,18 @@ var lr = w.forwardRef(({
|
|
5637
5637
|
...t,
|
5638
5638
|
ref: r
|
5639
5639
|
});
|
5640
|
-
return /* @__PURE__ */
|
5640
|
+
return /* @__PURE__ */ E(e, {
|
5641
5641
|
role: "menuitem",
|
5642
5642
|
...a,
|
5643
5643
|
"aria-disabled": n || void 0,
|
5644
5644
|
"data-reach-menu-item": ""
|
5645
5645
|
});
|
5646
5646
|
});
|
5647
|
-
|
5647
|
+
cr.displayName = "MenuItemImpl";
|
5648
5648
|
var ua = w.forwardRef(({
|
5649
5649
|
as: e = "div",
|
5650
5650
|
...t
|
5651
|
-
}, r) => /* @__PURE__ */
|
5651
|
+
}, r) => /* @__PURE__ */ E(cr, {
|
5652
5652
|
...t,
|
5653
5653
|
ref: r,
|
5654
5654
|
as: e
|
@@ -5668,7 +5668,7 @@ var la = w.forwardRef(({
|
|
5668
5668
|
...t,
|
5669
5669
|
ref: r
|
5670
5670
|
});
|
5671
|
-
return /* @__PURE__ */
|
5671
|
+
return /* @__PURE__ */ E(e, {
|
5672
5672
|
"aria-activedescendant": n,
|
5673
5673
|
"aria-labelledby": a || void 0,
|
5674
5674
|
role: "menu",
|
@@ -5677,28 +5677,28 @@ var la = w.forwardRef(({
|
|
5677
5677
|
});
|
5678
5678
|
});
|
5679
5679
|
la.displayName = "MenuItems";
|
5680
|
-
var
|
5680
|
+
var mt = w.forwardRef(({
|
5681
5681
|
as: e = "a",
|
5682
5682
|
component: t,
|
5683
5683
|
onSelect: r,
|
5684
5684
|
...n
|
5685
5685
|
}, a) => (w.useEffect(() => {
|
5686
5686
|
t && console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`");
|
5687
|
-
}, [t]), /* @__PURE__ */
|
5687
|
+
}, [t]), /* @__PURE__ */ E(cr, {
|
5688
5688
|
...n,
|
5689
5689
|
ref: a,
|
5690
5690
|
"data-reach-menu-link": "",
|
5691
5691
|
as: e,
|
5692
5692
|
isLink: !0,
|
5693
|
-
onSelect: r ||
|
5693
|
+
onSelect: r || ir
|
5694
5694
|
})));
|
5695
|
-
|
5695
|
+
mt.displayName = "MenuLink";
|
5696
5696
|
var ca = w.forwardRef(({
|
5697
5697
|
portal: e = !0,
|
5698
5698
|
...t
|
5699
|
-
}, r) => /* @__PURE__ */
|
5699
|
+
}, r) => /* @__PURE__ */ E(fa, {
|
5700
5700
|
portal: e,
|
5701
|
-
children: /* @__PURE__ */
|
5701
|
+
children: /* @__PURE__ */ E(la, {
|
5702
5702
|
...t,
|
5703
5703
|
ref: r,
|
5704
5704
|
"data-reach-menu-list": ""
|
@@ -5722,14 +5722,14 @@ var fa = w.forwardRef(({
|
|
5722
5722
|
}), s = {
|
5723
5723
|
"data-reach-menu-popover": ""
|
5724
5724
|
};
|
5725
|
-
return n ? /* @__PURE__ */
|
5725
|
+
return n ? /* @__PURE__ */ E(ur, {
|
5726
5726
|
...i,
|
5727
5727
|
...s,
|
5728
5728
|
as: e,
|
5729
5729
|
targetRef: a,
|
5730
5730
|
position: o,
|
5731
5731
|
unstable_skipInitialPortalRender: !0
|
5732
|
-
}) : /* @__PURE__ */
|
5732
|
+
}) : /* @__PURE__ */ E(e, {
|
5733
5733
|
...i,
|
5734
5734
|
...s
|
5735
5735
|
});
|
@@ -5741,7 +5741,7 @@ function fr({
|
|
5741
5741
|
className: r,
|
5742
5742
|
...n
|
5743
5743
|
}) {
|
5744
|
-
return /* @__PURE__ */
|
5744
|
+
return /* @__PURE__ */ E(ca, {
|
5745
5745
|
...n,
|
5746
5746
|
className: ct({
|
5747
5747
|
"tw-min-w-[13.125rem]": t
|
@@ -5757,15 +5757,15 @@ function Es({
|
|
5757
5757
|
...a,
|
5758
5758
|
url: `${a.url}${t ? `#refreshToken=${t}` : ""}`
|
5759
5759
|
}));
|
5760
|
-
return /* @__PURE__ */ j(
|
5761
|
-
children: [/* @__PURE__ */ j(
|
5762
|
-
as:
|
5760
|
+
return /* @__PURE__ */ j(bt, {
|
5761
|
+
children: [/* @__PURE__ */ j(wt, {
|
5762
|
+
as: le,
|
5763
5763
|
className: "aria-expanded:tw-text-primary-700 aria-expanded:tw-bg-primary-100 aria-expanded:tw-border-primary-100 aria-expanded:tw-duration-150",
|
5764
5764
|
variant: "ghost",
|
5765
5765
|
colorScheme: "primary",
|
5766
5766
|
compact: !0,
|
5767
5767
|
rounded: !0,
|
5768
|
-
children: [/* @__PURE__ */
|
5768
|
+
children: [/* @__PURE__ */ E("p", {
|
5769
5769
|
className: "tw-sr-only",
|
5770
5770
|
children: r.formatMessage({
|
5771
5771
|
id: "appSelector"
|
@@ -5776,25 +5776,25 @@ function Es({
|
|
5776
5776
|
width: "20",
|
5777
5777
|
height: "20",
|
5778
5778
|
viewBox: "0 0 20 20",
|
5779
|
-
children: [/* @__PURE__ */
|
5779
|
+
children: [/* @__PURE__ */ E("title", {
|
5780
5780
|
children: r.formatMessage({
|
5781
5781
|
id: "appSelector"
|
5782
5782
|
})
|
5783
|
-
}), /* @__PURE__ */
|
5783
|
+
}), /* @__PURE__ */ E("g", {
|
5784
5784
|
fill: "currentColor",
|
5785
5785
|
fillRule: "evenodd",
|
5786
5786
|
fillOpacity: 0.9,
|
5787
|
-
children: /* @__PURE__ */
|
5787
|
+
children: /* @__PURE__ */ E("path", {
|
5788
5788
|
d: "M15 20h5v-5h-5m0-2.5h5v-5h-5M7.5 5h5V0h-5M15 5h5V0h-5M7.5 12.5h5v-5h-5m-7.5 5h5v-5H0M0 20h5v-5H0m7.5 5h5v-5h-5M0 5h5V0H0v5z"
|
5789
5789
|
})
|
5790
5790
|
})]
|
5791
5791
|
})]
|
5792
|
-
}), /* @__PURE__ */
|
5792
|
+
}), /* @__PURE__ */ E(fr, {
|
5793
5793
|
className: "tw-grid tw-max-w-[250px] tw-grid-cols-2 tw-gap-3 tw-px-4 tw-py-4",
|
5794
|
-
children: n.map((a) => /* @__PURE__ */ j(
|
5794
|
+
children: n.map((a) => /* @__PURE__ */ j(mt, {
|
5795
5795
|
className: "data-selected:tw-duration-150 tw-flex tw-flex-col tw-items-center tw-gap-2 tw-rounded-lg tw-px-2 tw-py-2 tw-text-center tw-text-sm tw-font-light tw-text-black tw-no-underline tw-transition-colors tw-duration-500 hover:tw-cursor-pointer hover:tw-bg-gray-50 hover:tw-duration-150 data-[selected]:tw-cursor-pointer data-[selected]:tw-bg-gray-50",
|
5796
5796
|
href: a.url,
|
5797
|
-
children: [/* @__PURE__ */
|
5797
|
+
children: [/* @__PURE__ */ E("img", {
|
5798
5798
|
alt: "",
|
5799
5799
|
width: "34",
|
5800
5800
|
height: "34",
|
@@ -5811,7 +5811,7 @@ function en({
|
|
5811
5811
|
className: t,
|
5812
5812
|
...r
|
5813
5813
|
}) {
|
5814
|
-
return /* @__PURE__ */
|
5814
|
+
return /* @__PURE__ */ E("h1", {
|
5815
5815
|
...r,
|
5816
5816
|
className: ct("tw-my-0 tw-mr-auto tw-ml-2 tw-text-lg tw-font-light tw-leading-none tw-tracking-wide tw-text-black md:tw-text-xl lg:tw-text-2xl", t),
|
5817
5817
|
children: e
|
@@ -5822,7 +5822,7 @@ var ha = w.forwardRef(function({
|
|
5822
5822
|
style: r = {},
|
5823
5823
|
...n
|
5824
5824
|
}, a) {
|
5825
|
-
return /* @__PURE__ */
|
5825
|
+
return /* @__PURE__ */ E(t, {
|
5826
5826
|
ref: a,
|
5827
5827
|
style: {
|
5828
5828
|
border: 0,
|
@@ -5841,11 +5841,11 @@ var ha = w.forwardRef(function({
|
|
5841
5841
|
});
|
5842
5842
|
});
|
5843
5843
|
ha.displayName = "VisuallyHidden";
|
5844
|
-
var bs = 100, ws = 500,
|
5844
|
+
var bs = 100, ws = 500, Jt = {
|
5845
5845
|
initial: "IDLE",
|
5846
5846
|
states: {
|
5847
5847
|
IDLE: {
|
5848
|
-
enter:
|
5848
|
+
enter: _t,
|
5849
5849
|
on: {
|
5850
5850
|
MOUSE_ENTER: "FOCUSED",
|
5851
5851
|
FOCUS: "VISIBLE"
|
@@ -5876,7 +5876,7 @@ var bs = 100, ws = 500, Wt = {
|
|
5876
5876
|
LEAVING_VISIBLE: {
|
5877
5877
|
enter: Is,
|
5878
5878
|
leave: () => {
|
5879
|
-
Ms(),
|
5879
|
+
Ms(), _t();
|
5880
5880
|
},
|
5881
5881
|
on: {
|
5882
5882
|
MOUSE_ENTER: "VISIBLE",
|
@@ -5886,7 +5886,7 @@ var bs = 100, ws = 500, Wt = {
|
|
5886
5886
|
},
|
5887
5887
|
DISMISSED: {
|
5888
5888
|
leave: () => {
|
5889
|
-
|
5889
|
+
_t();
|
5890
5890
|
},
|
5891
5891
|
on: {
|
5892
5892
|
MOUSE_LEAVE: "IDLE",
|
@@ -5894,8 +5894,8 @@ var bs = 100, ws = 500, Wt = {
|
|
5894
5894
|
}
|
5895
5895
|
}
|
5896
5896
|
}
|
5897
|
-
},
|
5898
|
-
value:
|
5897
|
+
}, he = {
|
5898
|
+
value: Jt.initial,
|
5899
5899
|
context: {
|
5900
5900
|
id: null
|
5901
5901
|
}
|
@@ -5906,30 +5906,30 @@ function Ts(e) {
|
|
5906
5906
|
};
|
5907
5907
|
}
|
5908
5908
|
function xs() {
|
5909
|
-
lt.forEach((e) => e(
|
5909
|
+
lt.forEach((e) => e(he));
|
5910
5910
|
}
|
5911
|
-
var
|
5911
|
+
var qt;
|
5912
5912
|
function Ss() {
|
5913
|
-
window.clearTimeout(
|
5914
|
-
|
5913
|
+
window.clearTimeout(qt), qt = window.setTimeout(() => {
|
5914
|
+
ve({
|
5915
5915
|
type: "REST"
|
5916
5916
|
});
|
5917
5917
|
}, bs);
|
5918
5918
|
}
|
5919
5919
|
function Rs() {
|
5920
|
-
window.clearTimeout(
|
5920
|
+
window.clearTimeout(qt);
|
5921
5921
|
}
|
5922
|
-
var
|
5922
|
+
var $t;
|
5923
5923
|
function Is() {
|
5924
|
-
window.clearTimeout(
|
5924
|
+
window.clearTimeout($t), $t = window.setTimeout(() => ve({
|
5925
5925
|
type: "TIME_COMPLETE"
|
5926
5926
|
}), ws);
|
5927
5927
|
}
|
5928
5928
|
function Ms() {
|
5929
|
-
window.clearTimeout(
|
5929
|
+
window.clearTimeout($t);
|
5930
5930
|
}
|
5931
|
-
function
|
5932
|
-
|
5931
|
+
function _t() {
|
5932
|
+
he.context.id = null;
|
5933
5933
|
}
|
5934
5934
|
function da({
|
5935
5935
|
id: e,
|
@@ -5944,71 +5944,71 @@ function da({
|
|
5944
5944
|
onFocus: f,
|
5945
5945
|
onBlur: c,
|
5946
5946
|
onKeyDown: h,
|
5947
|
-
disabled:
|
5948
|
-
ref:
|
5949
|
-
DEBUG_STYLE:
|
5947
|
+
disabled: p,
|
5948
|
+
ref: g,
|
5949
|
+
DEBUG_STYLE: I
|
5950
5950
|
} = {}) {
|
5951
|
-
let T = String(qn(e)), [d, S] = w.useState(
|
5951
|
+
let T = String(qn(e)), [d, S] = w.useState(I ? !0 : tn(T, !0)), y = w.useRef(null), m = Ge(g, y), R = ht(y, {
|
5952
5952
|
observe: d
|
5953
5953
|
});
|
5954
5954
|
w.useEffect(() => Ts(() => {
|
5955
5955
|
S(tn(T));
|
5956
5956
|
}), [T]), w.useEffect(() => {
|
5957
|
-
let Z = De(
|
5958
|
-
function
|
5959
|
-
(Q.key === "Escape" || Q.key === "Esc") &&
|
5957
|
+
let Z = De(y.current);
|
5958
|
+
function oe(Q) {
|
5959
|
+
(Q.key === "Escape" || Q.key === "Esc") && he.value === "VISIBLE" && ve({
|
5960
5960
|
type: "SELECT_WITH_KEYBOARD"
|
5961
5961
|
});
|
5962
5962
|
}
|
5963
|
-
return Z.addEventListener("keydown",
|
5963
|
+
return Z.addEventListener("keydown", oe), () => Z.removeEventListener("keydown", oe);
|
5964
5964
|
}, []), As({
|
5965
|
-
disabled:
|
5965
|
+
disabled: p,
|
5966
5966
|
isVisible: d,
|
5967
|
-
ref:
|
5967
|
+
ref: y
|
5968
5968
|
});
|
5969
|
-
function
|
5970
|
-
return typeof window < "u" && "PointerEvent" in window ? Z : W(Z,
|
5969
|
+
function v(Z, oe) {
|
5970
|
+
return typeof window < "u" && "PointerEvent" in window ? Z : W(Z, oe);
|
5971
5971
|
}
|
5972
|
-
function
|
5972
|
+
function N(Z) {
|
5973
5973
|
return function(Q) {
|
5974
5974
|
Q.pointerType === "mouse" && Z(Q);
|
5975
5975
|
};
|
5976
5976
|
}
|
5977
|
-
function
|
5978
|
-
|
5977
|
+
function _() {
|
5978
|
+
ve({
|
5979
5979
|
type: "MOUSE_ENTER",
|
5980
5980
|
id: T
|
5981
5981
|
});
|
5982
5982
|
}
|
5983
|
-
function
|
5984
|
-
|
5983
|
+
function ee() {
|
5984
|
+
ve({
|
5985
5985
|
type: "MOUSE_MOVE",
|
5986
5986
|
id: T
|
5987
5987
|
});
|
5988
5988
|
}
|
5989
|
-
function
|
5990
|
-
|
5989
|
+
function se() {
|
5990
|
+
ve({
|
5991
5991
|
type: "MOUSE_LEAVE"
|
5992
5992
|
});
|
5993
5993
|
}
|
5994
|
-
function
|
5995
|
-
|
5994
|
+
function ue() {
|
5995
|
+
he.context.id === T && ve({
|
5996
5996
|
type: "MOUSE_DOWN"
|
5997
5997
|
});
|
5998
5998
|
}
|
5999
|
-
function
|
6000
|
-
window.__REACH_DISABLE_TOOLTIPS ||
|
5999
|
+
function ce() {
|
6000
|
+
window.__REACH_DISABLE_TOOLTIPS || ve({
|
6001
6001
|
type: "FOCUS",
|
6002
6002
|
id: T
|
6003
6003
|
});
|
6004
6004
|
}
|
6005
|
-
function
|
6006
|
-
|
6005
|
+
function me() {
|
6006
|
+
he.context.id === T && ve({
|
6007
6007
|
type: "BLUR"
|
6008
6008
|
});
|
6009
6009
|
}
|
6010
6010
|
function $(Z) {
|
6011
|
-
(Z.key === "Enter" || Z.key === " ") &&
|
6011
|
+
(Z.key === "Enter" || Z.key === " ") && ve({
|
6012
6012
|
type: "SELECT_WITH_KEYBOARD"
|
6013
6013
|
});
|
6014
6014
|
}
|
@@ -6016,21 +6016,21 @@ function da({
|
|
6016
6016
|
"aria-describedby": d ? Ye("tooltip", T) : void 0,
|
6017
6017
|
"data-state": d ? "tooltip-visible" : "tooltip-hidden",
|
6018
6018
|
"data-reach-tooltip-trigger": "",
|
6019
|
-
ref:
|
6020
|
-
onPointerEnter: W(t, _
|
6021
|
-
onPointerMove: W(r,
|
6022
|
-
onPointerLeave: W(n,
|
6023
|
-
onPointerDown: W(a,
|
6024
|
-
onMouseEnter:
|
6025
|
-
onMouseMove:
|
6026
|
-
onMouseLeave:
|
6027
|
-
onMouseDown:
|
6028
|
-
onFocus: W(f,
|
6029
|
-
onBlur: W(c,
|
6019
|
+
ref: m,
|
6020
|
+
onPointerEnter: W(t, N(_)),
|
6021
|
+
onPointerMove: W(r, N(ee)),
|
6022
|
+
onPointerLeave: W(n, N(se)),
|
6023
|
+
onPointerDown: W(a, N(ue)),
|
6024
|
+
onMouseEnter: v(o, _),
|
6025
|
+
onMouseMove: v(i, ee),
|
6026
|
+
onMouseLeave: v(s, se),
|
6027
|
+
onMouseDown: v(l, ue),
|
6028
|
+
onFocus: W(f, ce),
|
6029
|
+
onBlur: W(c, me),
|
6030
6030
|
onKeyDown: W(h, $)
|
6031
6031
|
}, {
|
6032
6032
|
id: T,
|
6033
|
-
triggerRect:
|
6033
|
+
triggerRect: R,
|
6034
6034
|
isVisible: d
|
6035
6035
|
}, d];
|
6036
6036
|
}
|
@@ -6063,8 +6063,8 @@ var Ps = w.forwardRef(function({
|
|
6063
6063
|
ref: s.ref,
|
6064
6064
|
DEBUG_STYLE: a
|
6065
6065
|
});
|
6066
|
-
return /* @__PURE__ */ j(
|
6067
|
-
children: [w.cloneElement(s, l), /* @__PURE__ */
|
6066
|
+
return /* @__PURE__ */ j(yt, {
|
6067
|
+
children: [w.cloneElement(s, l), /* @__PURE__ */ E(hr, {
|
6068
6068
|
ref: i,
|
6069
6069
|
label: t,
|
6070
6070
|
"aria-label": r,
|
@@ -6081,8 +6081,8 @@ var hr = w.forwardRef(function({
|
|
6081
6081
|
id: a,
|
6082
6082
|
...o
|
6083
6083
|
}, i) {
|
6084
|
-
return n ? /* @__PURE__ */
|
6085
|
-
children: /* @__PURE__ */
|
6084
|
+
return n ? /* @__PURE__ */ E(sr, {
|
6085
|
+
children: /* @__PURE__ */ E(ma, {
|
6086
6086
|
ref: i,
|
6087
6087
|
label: t,
|
6088
6088
|
"aria-label": r,
|
@@ -6105,22 +6105,22 @@ var ma = w.forwardRef(function({
|
|
6105
6105
|
triggerRect: f,
|
6106
6106
|
...c
|
6107
6107
|
}, h) {
|
6108
|
-
let
|
6108
|
+
let p = (r || t) != null, g = w.useRef(null), I = Ge(h, g), T = ht(g, {
|
6109
6109
|
observe: o
|
6110
6110
|
});
|
6111
|
-
return /* @__PURE__ */ j(
|
6112
|
-
children: [/* @__PURE__ */
|
6113
|
-
role:
|
6111
|
+
return /* @__PURE__ */ j(yt, {
|
6112
|
+
children: [/* @__PURE__ */ E(n, {
|
6113
|
+
role: p ? void 0 : "tooltip",
|
6114
6114
|
...c,
|
6115
|
-
ref:
|
6115
|
+
ref: I,
|
6116
6116
|
"data-reach-tooltip": "",
|
6117
|
-
id:
|
6117
|
+
id: p ? void 0 : a,
|
6118
6118
|
style: {
|
6119
6119
|
...l,
|
6120
6120
|
...Os(s, f, T)
|
6121
6121
|
},
|
6122
6122
|
children: i
|
6123
|
-
}),
|
6123
|
+
}), p && /* @__PURE__ */ E(ha, {
|
6124
6124
|
role: "tooltip",
|
6125
6125
|
id: a,
|
6126
6126
|
children: r || t
|
@@ -6161,7 +6161,7 @@ function As({
|
|
6161
6161
|
return;
|
6162
6162
|
let n = De(r.current);
|
6163
6163
|
function a(o) {
|
6164
|
-
!t || o.target instanceof Element && o.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']") ||
|
6164
|
+
!t || o.target instanceof Element && o.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']") || ve({
|
6165
6165
|
type: "GLOBAL_MOUSE_MOVE"
|
6166
6166
|
});
|
6167
6167
|
}
|
@@ -6170,19 +6170,19 @@ function As({
|
|
6170
6170
|
};
|
6171
6171
|
}, [e, t, r]);
|
6172
6172
|
}
|
6173
|
-
function
|
6173
|
+
function ve(e) {
|
6174
6174
|
let {
|
6175
6175
|
value: t,
|
6176
6176
|
context: r,
|
6177
6177
|
changed: n
|
6178
|
-
} = _s(
|
6179
|
-
n && (
|
6178
|
+
} = _s(he, e);
|
6179
|
+
n && (he = {
|
6180
6180
|
value: t,
|
6181
6181
|
context: r
|
6182
6182
|
}, xs());
|
6183
6183
|
}
|
6184
6184
|
function _s(e, t) {
|
6185
|
-
let r =
|
6185
|
+
let r = Jt.states[e.value], n = r && r.on && r.on[t.type];
|
6186
6186
|
if (!n)
|
6187
6187
|
return {
|
6188
6188
|
...e,
|
@@ -6194,9 +6194,9 @@ function _s(e, t) {
|
|
6194
6194
|
...o
|
6195
6195
|
} = t;
|
6196
6196
|
let i = {
|
6197
|
-
...
|
6197
|
+
...he.context,
|
6198
6198
|
...o
|
6199
|
-
}, s = typeof n == "string" ? n : n.target, l =
|
6199
|
+
}, s = typeof n == "string" ? n : n.target, l = Jt.states[s];
|
6200
6200
|
return l && l.enter && l.enter(e.context, t), {
|
6201
6201
|
value: s,
|
6202
6202
|
context: i,
|
@@ -6204,7 +6204,7 @@ function _s(e, t) {
|
|
6204
6204
|
};
|
6205
6205
|
}
|
6206
6206
|
function tn(e, t) {
|
6207
|
-
return
|
6207
|
+
return he.context.id === e && (t ? he.value === "VISIBLE" : he.value === "VISIBLE" || he.value === "LEAVING_VISIBLE");
|
6208
6208
|
}
|
6209
6209
|
const Ls = (e, t) => {
|
6210
6210
|
const r = e && t ? e.right - t.width + window.scrollX : "", n = e ? e.bottom + window.scrollY : "";
|
@@ -6218,8 +6218,8 @@ function Ds({
|
|
6218
6218
|
label: t
|
6219
6219
|
}) {
|
6220
6220
|
const [r, n] = da();
|
6221
|
-
return /* @__PURE__ */ j(
|
6222
|
-
children: [we.cloneElement(e, r), /* @__PURE__ */
|
6221
|
+
return /* @__PURE__ */ j(yt, {
|
6222
|
+
children: [we.cloneElement(e, r), /* @__PURE__ */ E(hr, {
|
6223
6223
|
...n,
|
6224
6224
|
label: t,
|
6225
6225
|
"aria-label": t,
|
@@ -6250,9 +6250,9 @@ function Bs({
|
|
6250
6250
|
languages: t,
|
6251
6251
|
onLanguageSelected: r
|
6252
6252
|
}) {
|
6253
|
-
return /* @__PURE__ */ j(
|
6254
|
-
children: [/* @__PURE__ */
|
6255
|
-
as:
|
6253
|
+
return /* @__PURE__ */ j(bt, {
|
6254
|
+
children: [/* @__PURE__ */ E(wt, {
|
6255
|
+
as: le,
|
6256
6256
|
className: "aria-expanded:tw-border-gray-100 aria-expanded:tw-bg-gray-100 aria-expanded:tw-text-gray-700 aria-expanded:tw-duration-150",
|
6257
6257
|
variant: "ghost",
|
6258
6258
|
colorScheme: "gray",
|
@@ -6260,7 +6260,7 @@ function Bs({
|
|
6260
6260
|
compact: !0,
|
6261
6261
|
children: /* @__PURE__ */ j("div", {
|
6262
6262
|
className: "tw-min-w-[36px] tw-text-base lg:tw-text-lg",
|
6263
|
-
children: [/* @__PURE__ */
|
6263
|
+
children: [/* @__PURE__ */ E("span", {
|
6264
6264
|
children: e.toUpperCase()
|
6265
6265
|
}), /* @__PURE__ */ j("svg", {
|
6266
6266
|
"aria-hidden": !0,
|
@@ -6269,22 +6269,22 @@ function Bs({
|
|
6269
6269
|
width: "8",
|
6270
6270
|
height: "5",
|
6271
6271
|
viewBox: "0 0 8 5",
|
6272
|
-
children: [/* @__PURE__ */
|
6273
|
-
children: /* @__PURE__ */
|
6272
|
+
children: [/* @__PURE__ */ E("defs", {
|
6273
|
+
children: /* @__PURE__ */ E("path", {
|
6274
6274
|
id: "a",
|
6275
6275
|
d: "M1367.876 32.83a.5.5 0 01-.752-.66l3.5-4a.5.5 0 01.752 0l3.5 4a.5.5 0 01-.752.66L1371 29.26l-3.124 3.57z"
|
6276
6276
|
})
|
6277
|
-
}), /* @__PURE__ */
|
6277
|
+
}), /* @__PURE__ */ E("use", {
|
6278
6278
|
fill: "currentColor",
|
6279
6279
|
transform: "matrix(1 0 0 -1 -1367 33)",
|
6280
6280
|
xlinkHref: "#a"
|
6281
6281
|
})]
|
6282
6282
|
})]
|
6283
6283
|
})
|
6284
|
-
}), /* @__PURE__ */
|
6284
|
+
}), /* @__PURE__ */ E(fr, {
|
6285
6285
|
withMinWidth: !1,
|
6286
6286
|
className: "tw-min-w-fit",
|
6287
|
-
children: t.filter((n) => rn[n]).map((n) => /* @__PURE__ */
|
6287
|
+
children: t.filter((n) => rn[n]).map((n) => /* @__PURE__ */ E(ua, {
|
6288
6288
|
className: "tw-cursor-pointer tw-whitespace-nowrap tw-py-2 tw-px-4 tw-text-base tw-font-normal tw-leading-normal tw-tracking-normal tw-text-black hover:tw-bg-gray-50 data-[selected]:tw-bg-gray-50",
|
6289
6289
|
onSelect: () => {
|
6290
6290
|
Hs(n), r && r(n);
|
@@ -6299,14 +6299,14 @@ function ks({
|
|
6299
6299
|
onClick: t
|
6300
6300
|
}) {
|
6301
6301
|
const r = We();
|
6302
|
-
return /* @__PURE__ */ j(
|
6302
|
+
return /* @__PURE__ */ j(le, {
|
6303
6303
|
className: "tw-hidden sm:tw-inline-block",
|
6304
6304
|
variant: "ghost",
|
6305
6305
|
colorScheme: "primary",
|
6306
6306
|
compact: !0,
|
6307
6307
|
rounded: !0,
|
6308
6308
|
onClick: t,
|
6309
|
-
children: [/* @__PURE__ */
|
6309
|
+
children: [/* @__PURE__ */ E("p", {
|
6310
6310
|
className: "tw-sr-only",
|
6311
6311
|
children: r.formatMessage({
|
6312
6312
|
id: "notifications"
|
@@ -6322,16 +6322,16 @@ function ks({
|
|
6322
6322
|
strokeWidth: 1.5,
|
6323
6323
|
stroke: "currentColor",
|
6324
6324
|
className: "tw-block tw-scale-[1.08]",
|
6325
|
-
children: [/* @__PURE__ */
|
6325
|
+
children: [/* @__PURE__ */ E("title", {
|
6326
6326
|
children: r.formatMessage({
|
6327
6327
|
id: "notifications"
|
6328
6328
|
})
|
6329
|
-
}), /* @__PURE__ */
|
6329
|
+
}), /* @__PURE__ */ E("path", {
|
6330
6330
|
strokeLinecap: "round",
|
6331
6331
|
strokeLinejoin: "round",
|
6332
6332
|
d: "M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"
|
6333
6333
|
})]
|
6334
|
-
}), e ? /* @__PURE__ */
|
6334
|
+
}), e ? /* @__PURE__ */ E("div", {
|
6335
6335
|
className: "tw-absolute tw-top-[0.3em] tw-left-[22px] tw-min-w-[1em] tw-rounded-[1em] tw-bg-red-600 tw-py-[0.1em] tw-px-[0.3em] tw-text-center tw-text-[0.8em] tw-font-semibold tw-leading-[1em] tw-text-white",
|
6336
6336
|
children: e
|
6337
6337
|
}) : void 0]
|
@@ -6340,20 +6340,21 @@ function ks({
|
|
6340
6340
|
function Us({
|
6341
6341
|
username: e,
|
6342
6342
|
version: t,
|
6343
|
-
onLogout: r
|
6343
|
+
onLogout: r,
|
6344
|
+
onUpdateProfile: n
|
6344
6345
|
}) {
|
6345
|
-
const
|
6346
|
-
return /* @__PURE__ */ j(
|
6347
|
-
children: [/* @__PURE__ */ j(
|
6346
|
+
const a = We();
|
6347
|
+
return /* @__PURE__ */ j(bt, {
|
6348
|
+
children: [/* @__PURE__ */ j(wt, {
|
6348
6349
|
className: "!tw-px-0 !tw-py-0 tw-transition-opacity hover:tw-opacity-80 aria-expanded:tw-opacity-80 aria-expanded:tw-duration-150",
|
6349
|
-
as:
|
6350
|
+
as: le,
|
6350
6351
|
variant: "ghost",
|
6351
6352
|
colorScheme: "primary",
|
6352
6353
|
compact: !0,
|
6353
6354
|
rounded: !0,
|
6354
|
-
children: [/* @__PURE__ */
|
6355
|
+
children: [/* @__PURE__ */ E("p", {
|
6355
6356
|
className: "tw-sr-only",
|
6356
|
-
children:
|
6357
|
+
children: a.formatMessage({
|
6357
6358
|
id: "userAccountTooltip"
|
6358
6359
|
})
|
6359
6360
|
}), /* @__PURE__ */ j("svg", {
|
@@ -6362,14 +6363,14 @@ function Us({
|
|
6362
6363
|
height: 44,
|
6363
6364
|
viewBox: "0 0 44 44",
|
6364
6365
|
version: "1.1",
|
6365
|
-
children: [/* @__PURE__ */
|
6366
|
-
children:
|
6366
|
+
children: [/* @__PURE__ */ E("title", {
|
6367
|
+
children: a.formatMessage({
|
6367
6368
|
id: "userAccountTooltip"
|
6368
6369
|
})
|
6369
|
-
}), /* @__PURE__ */
|
6370
|
-
children: /* @__PURE__ */
|
6370
|
+
}), /* @__PURE__ */ E("defs", {
|
6371
|
+
children: /* @__PURE__ */ E("clipPath", {
|
6371
6372
|
id: "user-badge--clip-path",
|
6372
|
-
children: /* @__PURE__ */
|
6373
|
+
children: /* @__PURE__ */ E("circle", {
|
6373
6374
|
cx: "50%",
|
6374
6375
|
cy: "50%",
|
6375
6376
|
r: "22",
|
@@ -6377,7 +6378,7 @@ function Us({
|
|
6377
6378
|
fillRule: "evenodd"
|
6378
6379
|
})
|
6379
6380
|
})
|
6380
|
-
}), /* @__PURE__ */
|
6381
|
+
}), /* @__PURE__ */ E("image", {
|
6381
6382
|
width: "44",
|
6382
6383
|
height: "44",
|
6383
6384
|
xlinkHref: "data:image/png;base64,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",
|
@@ -6389,22 +6390,28 @@ function Us({
|
|
6389
6390
|
className: "tw-w-[310px]",
|
6390
6391
|
children: [/* @__PURE__ */ j("div", {
|
6391
6392
|
className: "tw-flex tw-flex-col tw-gap-4 tw-py-4 tw-px-5",
|
6392
|
-
children: [/* @__PURE__ */
|
6393
|
-
className: "tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap tw-text-
|
6393
|
+
children: [/* @__PURE__ */ E("div", {
|
6394
|
+
className: "tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap tw-text-lg tw-font-semibold tw-leading-tight tw-text-black",
|
6394
6395
|
children: e
|
6395
|
-
}), /* @__PURE__ */
|
6396
|
-
|
6396
|
+
}), /* @__PURE__ */ E(mt, {
|
6397
|
+
className: "tw-self-start tw-text-base hover:tw-text-gray-900 hover:tw-font-medium hover:tw-underline",
|
6398
|
+
onSelect: n,
|
6399
|
+
children: a.formatMessage({
|
6400
|
+
id: "updateProfile"
|
6401
|
+
})
|
6402
|
+
}), /* @__PURE__ */ E(mt, {
|
6403
|
+
as: le,
|
6397
6404
|
className: "tw-self-end data-[selected]:[&:not(:hover)]:tw-ring data-[selected]:[&:not(:hover)]:tw-ring-gray-300",
|
6398
6405
|
variant: "outline",
|
6399
6406
|
colorScheme: "gray",
|
6400
6407
|
onSelect: r,
|
6401
|
-
children:
|
6408
|
+
children: a.formatMessage({
|
6402
6409
|
id: "logout"
|
6403
6410
|
})
|
6404
6411
|
})]
|
6405
|
-
}), /* @__PURE__ */
|
6412
|
+
}), /* @__PURE__ */ E("div", {
|
6406
6413
|
className: "tw-flex tw-w-full tw-justify-center tw-bg-gray-50 tw-py-4 tw-px-0 tw-text-sm tw-font-normal tw-text-gray-700",
|
6407
|
-
children:
|
6414
|
+
children: a.formatMessage({
|
6408
6415
|
id: "version"
|
6409
6416
|
}, {
|
6410
6417
|
version: t
|
@@ -6427,38 +6434,39 @@ function Gs({
|
|
6427
6434
|
username: f,
|
6428
6435
|
version: c,
|
6429
6436
|
logout: h,
|
6430
|
-
|
6431
|
-
|
6432
|
-
|
6433
|
-
|
6434
|
-
|
6435
|
-
|
6437
|
+
updateProfile: p,
|
6438
|
+
refreshToken: g,
|
6439
|
+
loginUrl: I,
|
6440
|
+
withMaxWith: T = !1,
|
6441
|
+
className: d,
|
6442
|
+
showUpgrade: S,
|
6443
|
+
...y
|
6436
6444
|
}) {
|
6437
|
-
const
|
6438
|
-
applicationName:
|
6445
|
+
const m = We(), R = t == null ? void 0 : t[e], v = "x4b-settings", N = t == null ? void 0 : t[v], _ = "support@xcomponent.com", ee = R && {
|
6446
|
+
applicationName: R == null ? void 0 : R.name,
|
6439
6447
|
username: f,
|
6440
6448
|
version: c,
|
6441
|
-
url:
|
6442
|
-
},
|
6443
|
-
const
|
6444
|
-
wi(
|
6449
|
+
url: R == null ? void 0 : R.url
|
6450
|
+
}, se = () => {
|
6451
|
+
const ue = !bi();
|
6452
|
+
wi(ue), o && o(ue);
|
6445
6453
|
};
|
6446
|
-
return
|
6447
|
-
...
|
6454
|
+
return R ? /* @__PURE__ */ E("header", {
|
6455
|
+
...y,
|
6448
6456
|
"aria-label": "Global",
|
6449
|
-
className: ct(
|
6457
|
+
className: ct(d, "tw-box-border tw-bg-white ", g && "tw-shadow-[0_0_10px_0_rgba(72,40,83,0.1)]"),
|
6450
6458
|
children: /* @__PURE__ */ j("nav", {
|
6451
6459
|
"aria-label": "top",
|
6452
|
-
className: ct(
|
6453
|
-
children: [
|
6460
|
+
className: ct(g ? "tw-gap-0 sm:tw-gap-1 lg:tw-gap-2" : "tw-gap-0 sm:tw-gap-1", T && "tw-mx-auto tw-max-w-7xl", "tw-text-primary-600 tw-isolate tw-m-0 tw-box-border tw-flex tw-w-full tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-py-2 tw-px-4 tw-font-sans tw-antialiased lg:tw-px-5 xl:tw-px-3 "),
|
6461
|
+
children: [g && o && /* @__PURE__ */ j(le, {
|
6454
6462
|
variant: "ghost",
|
6455
6463
|
colorScheme: "primary",
|
6456
6464
|
compact: !0,
|
6457
6465
|
rounded: !0,
|
6458
|
-
onClick:
|
6459
|
-
children: [/* @__PURE__ */
|
6466
|
+
onClick: se,
|
6467
|
+
children: [/* @__PURE__ */ E("p", {
|
6460
6468
|
className: "tw-sr-only",
|
6461
|
-
children:
|
6469
|
+
children: m.formatMessage({
|
6462
6470
|
id: "mainMenu"
|
6463
6471
|
})
|
6464
6472
|
}), /* @__PURE__ */ j("svg", {
|
@@ -6467,81 +6475,81 @@ function Gs({
|
|
6467
6475
|
width: "20",
|
6468
6476
|
height: "20",
|
6469
6477
|
viewBox: "0 0 18 16",
|
6470
|
-
children: [/* @__PURE__ */
|
6471
|
-
children:
|
6478
|
+
children: [/* @__PURE__ */ E("title", {
|
6479
|
+
children: m.formatMessage({
|
6472
6480
|
id: "mainMenu"
|
6473
6481
|
})
|
6474
|
-
}), /* @__PURE__ */
|
6482
|
+
}), /* @__PURE__ */ E("g", {
|
6475
6483
|
fill: "currentColor",
|
6476
6484
|
fillRule: "evenodd",
|
6477
6485
|
fillOpacity: 0.9,
|
6478
|
-
children: /* @__PURE__ */
|
6486
|
+
children: /* @__PURE__ */ E("path", {
|
6479
6487
|
d: "M18 6.818H0v1.364h18zM18 13H0v1.36h18zM18 .364H0v1.36h18z"
|
6480
6488
|
})
|
6481
6489
|
})]
|
6482
6490
|
})]
|
6483
|
-
}), /* @__PURE__ */
|
6491
|
+
}), /* @__PURE__ */ E("img", {
|
6484
6492
|
alt: e,
|
6485
6493
|
width: "34",
|
6486
6494
|
height: "34",
|
6487
6495
|
"aria-hidden": !0,
|
6488
|
-
src: `data:image/svg+xml;base64,${
|
6496
|
+
src: `data:image/svg+xml;base64,${R.logo}`,
|
6489
6497
|
className: "tw-my-0 tw-block"
|
6490
|
-
}), /* @__PURE__ */
|
6498
|
+
}), /* @__PURE__ */ E(en, {
|
6491
6499
|
className: "tw-hidden md:tw-block",
|
6492
|
-
children:
|
6493
|
-
}), /* @__PURE__ */
|
6500
|
+
children: R.label || R.name
|
6501
|
+
}), /* @__PURE__ */ E(en, {
|
6494
6502
|
className: "tw-block md:tw-hidden",
|
6495
|
-
children:
|
6496
|
-
}), a !== void 0 && /* @__PURE__ */
|
6503
|
+
children: R.shortname || R.name
|
6504
|
+
}), a !== void 0 && /* @__PURE__ */ E(le, {
|
6497
6505
|
as: "a",
|
6498
6506
|
variant: "ghost",
|
6499
6507
|
colorScheme: "primary",
|
6500
6508
|
compact: !1,
|
6501
6509
|
rounded: !1,
|
6502
|
-
"aria-label":
|
6510
|
+
"aria-label": m.formatMessage({
|
6503
6511
|
id: "installGateway"
|
6504
6512
|
}),
|
6505
6513
|
onClick: a,
|
6506
|
-
children:
|
6514
|
+
children: m.formatMessage({
|
6507
6515
|
id: "installGateway"
|
6508
6516
|
})
|
6509
|
-
}),
|
6510
|
-
label:
|
6517
|
+
}), S && /* @__PURE__ */ E(Ds, {
|
6518
|
+
label: m.formatMessage({
|
6511
6519
|
id: "upgradeBtnTooltip"
|
6512
6520
|
}),
|
6513
|
-
children: /* @__PURE__ */ j(
|
6521
|
+
children: /* @__PURE__ */ j(le, {
|
6514
6522
|
as: "a",
|
6515
6523
|
variant: "outline",
|
6516
6524
|
colorScheme: "primary",
|
6517
6525
|
rounded: !0,
|
6518
|
-
href:
|
6526
|
+
href: ee && Ei(_, `[${ee.applicationName}] Support Request`, m.formatMessage({
|
6519
6527
|
id: "contactUpgradeMailBody"
|
6520
|
-
}),
|
6528
|
+
}), ee),
|
6521
6529
|
target: "_blank",
|
6522
6530
|
rel: "noopener noreferrer nofollow",
|
6523
6531
|
children: [/* @__PURE__ */ j("p", {
|
6524
6532
|
className: "tw-sr-only",
|
6525
|
-
children: [" ",
|
6533
|
+
children: [" ", m.formatMessage({
|
6526
6534
|
id: "upgradeBtnTooltip"
|
6527
6535
|
})]
|
6528
|
-
}),
|
6536
|
+
}), m.formatMessage({
|
6529
6537
|
id: "upgradeBtn"
|
6530
6538
|
})]
|
6531
6539
|
})
|
6532
|
-
}), r !== void 0 &&
|
6540
|
+
}), r !== void 0 && g && /* @__PURE__ */ E(ks, {
|
6533
6541
|
count: r,
|
6534
6542
|
onClick: n
|
6535
|
-
}),
|
6543
|
+
}), N && e !== v && g && /* @__PURE__ */ j(le, {
|
6536
6544
|
as: "a",
|
6537
6545
|
variant: "ghost",
|
6538
6546
|
colorScheme: "primary",
|
6539
6547
|
compact: !0,
|
6540
6548
|
rounded: !0,
|
6541
|
-
href: `${
|
6542
|
-
children: [/* @__PURE__ */
|
6549
|
+
href: `${N.url}${g ? `#refreshToken=${g}` : ""}`,
|
6550
|
+
children: [/* @__PURE__ */ E("p", {
|
6543
6551
|
className: "tw-sr-only",
|
6544
|
-
children:
|
6552
|
+
children: m.formatMessage({
|
6545
6553
|
id: "settings"
|
6546
6554
|
})
|
6547
6555
|
}), /* @__PURE__ */ j("svg", {
|
@@ -6550,29 +6558,29 @@ function Gs({
|
|
6550
6558
|
width: "22",
|
6551
6559
|
height: "22",
|
6552
6560
|
viewBox: "0 0 22 22",
|
6553
|
-
children: [/* @__PURE__ */
|
6554
|
-
children:
|
6561
|
+
children: [/* @__PURE__ */ E("title", {
|
6562
|
+
children: m.formatMessage({
|
6555
6563
|
id: "settings"
|
6556
6564
|
})
|
6557
|
-
}), /* @__PURE__ */
|
6565
|
+
}), /* @__PURE__ */ E("g", {
|
6558
6566
|
fill: "currentColor",
|
6559
6567
|
fillRule: "evenodd",
|
6560
6568
|
fillOpacity: 0.9,
|
6561
|
-
children: /* @__PURE__ */
|
6569
|
+
children: /* @__PURE__ */ E("path", {
|
6562
6570
|
d: "M14.037 19.103v2.25c0 .357-.29.647-.647.647H8.61a.647.647 0 0 1-.647-.647v-2.25c-.981-.278-1.658-.682-2.422-1.353a15.057 15.057 0 0 1-.108-.096L3.35 18.811a.647.647 0 0 1-.875-.242L.087 14.43a.647.647 0 0 1 .237-.884l1.995-1.15a8.415 8.415 0 0 1 .005-2.796L.344 8.452a.647.647 0 0 1-.234-.885l2.413-4.138A.647.647 0 0 1 3.4 3.19l2.036 1.152.105-.093c.764-.67 1.44-1.073 2.422-1.353V.647c0-.357.29-.647.647-.647h4.78c.357 0 .647.29.647.647v2.25c.982.28 1.658.683 2.422 1.353l.105.093L18.6 3.191a.647.647 0 0 1 .878.238l2.412 4.138c.18.309.075.706-.234.885l-1.98 1.149c.156.934.161 1.857.005 2.797l1.995 1.149c.31.178.416.574.237.884l-2.388 4.138a.647.647 0 0 1-.874.242l-2.084-1.157-.108.096c-.764.671-1.44 1.075-2.422 1.353zm-1.294-.504c0-.303.21-.566.507-.632 1.043-.231 1.621-.545 2.355-1.19.114-.1.181-.161.432-.39a.647.647 0 0 1 .752-.09l1.933 1.074 1.747-3.026-1.834-1.056a.647.647 0 0 1-.308-.7 7.203 7.203 0 0 0-.005-3.178.647.647 0 0 1 .307-.699l1.816-1.054-1.764-3.026L16.793 5.7a.647.647 0 0 1-.756-.086c-.246-.226-.318-.291-.432-.391-.733-.644-1.311-.958-2.356-1.19a.647.647 0 0 1-.506-.632V1.294H9.257v2.107c0 .303-.21.566-.506.631-1.044.233-1.623.547-2.356 1.19-.114.101-.185.166-.432.392a.647.647 0 0 1-.756.086L3.32 4.632 1.555 7.658l1.816 1.054a.647.647 0 0 1 .308.699 7.203 7.203 0 0 0-.005 3.177.647.647 0 0 1-.31.7l-1.833 1.057 1.747 3.026 1.934-1.074a.647.647 0 0 1 .751.09c.25.229.318.29.432.39.734.645 1.312.959 2.355 1.19a.647.647 0 0 1 .507.632v2.107h3.486v-2.107zM14.276 11a3.275 3.275 0 1 1-6.551 0 3.275 3.275 0 0 1 6.55 0zm-1.294 0a1.981 1.981 0 1 0-3.963 0 1.981 1.981 0 0 0 3.963 0z"
|
6563
6571
|
})
|
6564
6572
|
})]
|
6565
6573
|
})]
|
6566
|
-
}), /* @__PURE__ */ j(
|
6574
|
+
}), /* @__PURE__ */ j(le, {
|
6567
6575
|
as: "a",
|
6568
6576
|
variant: "ghost",
|
6569
6577
|
colorScheme: "primary",
|
6570
6578
|
compact: !0,
|
6571
6579
|
rounded: !0,
|
6572
6580
|
href: zs,
|
6573
|
-
children: [/* @__PURE__ */
|
6581
|
+
children: [/* @__PURE__ */ E("p", {
|
6574
6582
|
className: "tw-sr-only",
|
6575
|
-
children:
|
6583
|
+
children: m.formatMessage({
|
6576
6584
|
id: "documentation"
|
6577
6585
|
})
|
6578
6586
|
}), /* @__PURE__ */ j("svg", {
|
@@ -6580,28 +6588,28 @@ function Gs({
|
|
6580
6588
|
"aria-hidden": !0,
|
6581
6589
|
xmlns: "http://www.w3.org/2000/svg",
|
6582
6590
|
viewBox: "0 0 100 100",
|
6583
|
-
children: [/* @__PURE__ */
|
6584
|
-
children:
|
6591
|
+
children: [/* @__PURE__ */ E("title", {
|
6592
|
+
children: m.formatMessage({
|
6585
6593
|
id: "documentation"
|
6586
6594
|
})
|
6587
|
-
}), /* @__PURE__ */
|
6595
|
+
}), /* @__PURE__ */ E("path", {
|
6588
6596
|
strokeWidth: "1",
|
6589
6597
|
fill: "currentColor",
|
6590
6598
|
d: "M52.586 20.5H70.25a1.5 1.5 0 100-3H52.586a1.5 1.5 0 100 3zM52.586 32.1H70.25a1.5 1.5 0 100-3H52.586a1.5 1.5 0 100 3zM70.25 40.7h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM70.25 52.3h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM70.25 63.9h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM56 75.5H29.75a1.5 1.5 0 100 3H56a1.5 1.5 0 100-3zM44.181 35.785a1.5 1.5 0 001.5-1.5V16a1.5 1.5 0 00-1.5-1.5H28.896a1.5 1.5 0 00-1.5 1.5v18.285a1.5 1.5 0 001.5 1.5h15.285zM30.396 17.5h12.285v15.285H30.396V17.5z"
|
6591
|
-
}), /* @__PURE__ */
|
6599
|
+
}), /* @__PURE__ */ E("path", {
|
6592
6600
|
strokeWidth: "1",
|
6593
6601
|
fill: "currentColor",
|
6594
6602
|
d: "M78.521 5H21.479a4.067 4.067 0 00-4.063 4.063v81.875a4.067 4.067 0 004.063 4.063h43.522c.161 0 .314-.032.46-.08.023-.007.045-.012.067-.021.148-.056.282-.136.404-.233.011-.008.024-.011.034-.02L82.05 81.083c.015-.013.026-.029.041-.042a1.27 1.27 0 00.114-.118c.03-.034.06-.068.086-.104.03-.041.056-.084.082-.128a1.2 1.2 0 00.066-.122c.021-.045.038-.092.055-.139a1.315 1.315 0 00.084-.43c.001-.021.006-.041.006-.062V9.063A4.068 4.068 0 0078.521 5zM20.417 90.938V9.063c0-.586.476-1.063 1.062-1.063h57.042c.586 0 1.063.477 1.063 1.063v69.374H65a1.5 1.5 0 00-1.5 1.5V92H21.479a1.063 1.063 0 01-1.062-1.062zm56.562-9.501L66.5 90.273v-8.837h10.479z"
|
6595
6603
|
})]
|
6596
6604
|
})]
|
6597
|
-
}), /* @__PURE__ */
|
6605
|
+
}), /* @__PURE__ */ E(le, {
|
6598
6606
|
href: "https://slack.xcomponent.com",
|
6599
6607
|
as: "a",
|
6600
6608
|
variant: "ghost",
|
6601
6609
|
colorScheme: "primary",
|
6602
6610
|
compact: !0,
|
6603
6611
|
rounded: !0,
|
6604
|
-
"aria-label":
|
6612
|
+
"aria-label": m.formatMessage({
|
6605
6613
|
id: "contactDevelopers"
|
6606
6614
|
}),
|
6607
6615
|
children: /* @__PURE__ */ j("svg", {
|
@@ -6610,60 +6618,61 @@ function Gs({
|
|
6610
6618
|
xmlns: "http://www.w3.org/2000/svg",
|
6611
6619
|
"aria-hidden": !0,
|
6612
6620
|
className: "tw-w-[1.5rem] tw-h-[1.5rem] tw-block",
|
6613
|
-
children: [/* @__PURE__ */
|
6614
|
-
children:
|
6621
|
+
children: [/* @__PURE__ */ E("title", {
|
6622
|
+
children: m.formatMessage({
|
6615
6623
|
id: "contactDevelopers"
|
6616
6624
|
})
|
6617
|
-
}), /* @__PURE__ */
|
6625
|
+
}), /* @__PURE__ */ E("path", {
|
6618
6626
|
d: "M16.535 27.397a2.711 2.711 0 01-2.704 2.705 2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h2.704v2.705zM17.898 27.397a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772a2.712 2.712 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772z",
|
6619
6627
|
fill: "#E01E5A"
|
6620
|
-
}), /* @__PURE__ */
|
6628
|
+
}), /* @__PURE__ */ E("path", {
|
6621
6629
|
d: "M20.603 16.535a2.711 2.711 0 01-2.705-2.704 2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v2.704h-2.705zM20.603 17.898a2.712 2.712 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772z",
|
6622
6630
|
fill: "#36C5F0"
|
6623
|
-
}), /* @__PURE__ */
|
6631
|
+
}), /* @__PURE__ */ E("path", {
|
6624
6632
|
d: "M31.465 20.603a2.711 2.711 0 012.704-2.705 2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-2.704v-2.705zM30.102 20.603a2.711 2.711 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772z",
|
6625
6633
|
fill: "#2EB67D"
|
6626
|
-
}), /* @__PURE__ */
|
6634
|
+
}), /* @__PURE__ */ E("path", {
|
6627
6635
|
d: "M27.397 31.465a2.711 2.711 0 012.705 2.704 2.711 2.711 0 01-2.705 2.705 2.712 2.712 0 01-2.705-2.705v-2.704h2.705zM27.397 30.102a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772a2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772z",
|
6628
6636
|
fill: "#ECB22E"
|
6629
6637
|
})]
|
6630
6638
|
})
|
6631
|
-
}),
|
6639
|
+
}), g && e === v && t && /* @__PURE__ */ E(Es, {
|
6632
6640
|
applicationDescriptions: t,
|
6633
|
-
refreshToken:
|
6634
|
-
}),
|
6641
|
+
refreshToken: g
|
6642
|
+
}), g && f && c && h && p && /* @__PURE__ */ E(Us, {
|
6635
6643
|
username: f,
|
6636
6644
|
version: c,
|
6637
|
-
onLogout: h
|
6638
|
-
|
6645
|
+
onLogout: h,
|
6646
|
+
onUpdateProfile: p
|
6647
|
+
}), /* @__PURE__ */ E(Bs, {
|
6639
6648
|
language: i || "en",
|
6640
6649
|
languages: s || ["en"],
|
6641
6650
|
onLanguageSelected: l
|
6642
|
-
}), !
|
6643
|
-
children: [/* @__PURE__ */
|
6651
|
+
}), !g && /* @__PURE__ */ j(yt, {
|
6652
|
+
children: [/* @__PURE__ */ E(le, {
|
6644
6653
|
className: "tw-ml-2 tw-mr-0 md:tw-ml-3 lg:tw-mr-3",
|
6645
6654
|
size: "lg",
|
6646
|
-
href:
|
6655
|
+
href: I,
|
6647
6656
|
as: "a",
|
6648
6657
|
variant: "link",
|
6649
6658
|
colorScheme: "gray",
|
6650
|
-
children:
|
6659
|
+
children: m.formatMessage({
|
6651
6660
|
id: "login"
|
6652
6661
|
})
|
6653
|
-
}), /* @__PURE__ */
|
6662
|
+
}), /* @__PURE__ */ E(le, {
|
6654
6663
|
className: "tw-ml-3 tw-hidden lg:tw-inline-block",
|
6655
6664
|
size: "xl",
|
6656
|
-
href:
|
6665
|
+
href: I,
|
6657
6666
|
as: "a",
|
6658
6667
|
variant: "solid",
|
6659
6668
|
colorScheme: "primary",
|
6660
|
-
children:
|
6669
|
+
children: m.formatMessage({
|
6661
6670
|
id: "getStartedFree"
|
6662
6671
|
})
|
6663
6672
|
})]
|
6664
6673
|
})]
|
6665
6674
|
})
|
6666
|
-
}) : (console.error(`Unknown application ${e}`), /* @__PURE__ */
|
6675
|
+
}) : (console.error(`Unknown application ${e}`), /* @__PURE__ */ E("div", {
|
6667
6676
|
"data-testid": "init-error"
|
6668
6677
|
}));
|
6669
6678
|
}
|
@@ -6712,7 +6721,8 @@ The more precise your explanation, the better our answer. \u{1F60A}>
|
|
6712
6721
|
getStartedFree: "Get started free",
|
6713
6722
|
installGateway: "Install Gateways & Agents",
|
6714
6723
|
upgradeBtn: "Upgrade to Enterprise plan",
|
6715
|
-
upgradeBtnTooltip: "Email for Enterprise upgrade"
|
6724
|
+
upgradeBtnTooltip: "Email for Enterprise upgrade",
|
6725
|
+
updateProfile: "Update profile"
|
6716
6726
|
}, Vs = {
|
6717
6727
|
mainMenu: "Menu principal",
|
6718
6728
|
settings: "Param\xE8tres",
|
@@ -6757,17 +6767,18 @@ Cordialement,
|
|
6757
6767
|
getStartedFree: "Essayer gratuitement",
|
6758
6768
|
installGateway: "Installation des passerelles & agents",
|
6759
6769
|
upgradeBtn: "Mettre \xE0 niveau",
|
6760
|
-
upgradeBtnTooltip: "Email pour la mise \xE0 niveau Entreprise"
|
6770
|
+
upgradeBtnTooltip: "Email pour la mise \xE0 niveau Entreprise",
|
6771
|
+
updateProfile: "Mettre \xE0 jour le profil"
|
6761
6772
|
}, Xs = {
|
6762
6773
|
en: js,
|
6763
6774
|
fr: Vs
|
6764
6775
|
}, Zs = (e) => Xs[e];
|
6765
6776
|
function nu(e) {
|
6766
6777
|
const t = e.language || "en";
|
6767
|
-
return /* @__PURE__ */
|
6778
|
+
return /* @__PURE__ */ E(pi, {
|
6768
6779
|
locale: t,
|
6769
6780
|
messages: Zs(t),
|
6770
|
-
children: /* @__PURE__ */
|
6781
|
+
children: /* @__PURE__ */ E(Gs, {
|
6771
6782
|
...e
|
6772
6783
|
})
|
6773
6784
|
});
|
@@ -6783,14 +6794,14 @@ async function Ys(e) {
|
|
6783
6794
|
hidden: Boolean(a.hidden)
|
6784
6795
|
}, n), {}) : (console.error(t.text), {});
|
6785
6796
|
}
|
6786
|
-
function
|
6797
|
+
function Qt(e) {
|
6787
6798
|
this.message = e;
|
6788
6799
|
}
|
6789
|
-
|
6800
|
+
Qt.prototype = new Error(), Qt.prototype.name = "InvalidCharacterError";
|
6790
6801
|
var nn = typeof window < "u" && window.atob && window.atob.bind(window) || function(e) {
|
6791
6802
|
var t = String(e).replace(/=+$/, "");
|
6792
6803
|
if (t.length % 4 == 1)
|
6793
|
-
throw new
|
6804
|
+
throw new Qt("'atob' failed: The string to be decoded is not correctly encoded.");
|
6794
6805
|
for (var r, n, a = 0, o = 0, i = ""; n = t.charAt(o++); ~n && (r = a % 4 ? 64 * r + n : n, a++ % 4) ? i += String.fromCharCode(255 & r >> (-2 * a & 6)) : 0)
|
6795
6806
|
n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);
|
6796
6807
|
return i;
|
@@ -6820,20 +6831,20 @@ function Ws(e) {
|
|
6820
6831
|
return nn(t);
|
6821
6832
|
}
|
6822
6833
|
}
|
6823
|
-
function
|
6834
|
+
function pt(e) {
|
6824
6835
|
this.message = e;
|
6825
6836
|
}
|
6826
6837
|
function dr(e, t) {
|
6827
6838
|
if (typeof e != "string")
|
6828
|
-
throw new
|
6839
|
+
throw new pt("Invalid token specified");
|
6829
6840
|
var r = (t = t || {}).header === !0 ? 0 : 1;
|
6830
6841
|
try {
|
6831
6842
|
return JSON.parse(Ws(e.split(".")[r]));
|
6832
6843
|
} catch (n) {
|
6833
|
-
throw new
|
6844
|
+
throw new pt("Invalid token specified: " + n.message);
|
6834
6845
|
}
|
6835
6846
|
}
|
6836
|
-
|
6847
|
+
pt.prototype = new Error(), pt.prototype.name = "InvalidTokenError";
|
6837
6848
|
const Js = (e) => {
|
6838
6849
|
if (e) {
|
6839
6850
|
const t = dr(e);
|
@@ -6944,7 +6955,7 @@ function iu({
|
|
6944
6955
|
logout: r == null ? void 0 : r.logout,
|
6945
6956
|
refreshToken: r == null ? void 0 : r.token.refreshToken
|
6946
6957
|
}), [a, r]);
|
6947
|
-
return /* @__PURE__ */
|
6958
|
+
return /* @__PURE__ */ E(pr.Provider, {
|
6948
6959
|
value: {
|
6949
6960
|
appsServiceUrl: e,
|
6950
6961
|
authResult: r,
|