@deviceinsight/ng-ui-scale-lib 9.14.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.
@@ -0,0 +1,1152 @@
1
+ import { ds as Qe, a6 as ke, as as _, dt as er } from "./ContextBarContext-f745a63a.js";
2
+ import T from "react";
3
+ import { _ as W } from "./extends-0a3e0827.js";
4
+ function F(e, r) {
5
+ e.prototype = Object.create(r.prototype), e.prototype.constructor = e, Qe(e, r);
6
+ }
7
+ function Q(e) {
8
+ return e.charAt(0) === "/";
9
+ }
10
+ function Ee(e, r) {
11
+ for (var o = r, n = o + 1, t = e.length; n < t; o += 1, n += 1)
12
+ e[o] = e[n];
13
+ e.pop();
14
+ }
15
+ function rr(e, r) {
16
+ r === void 0 && (r = "");
17
+ var o = e && e.split("/") || [], n = r && r.split("/") || [], t = e && Q(e), c = r && Q(r), p = t || c;
18
+ if (e && Q(e) ? n = o : o.length && (n.pop(), n = n.concat(o)), !n.length)
19
+ return "/";
20
+ var u;
21
+ if (n.length) {
22
+ var d = n[n.length - 1];
23
+ u = d === "." || d === ".." || d === "";
24
+ } else
25
+ u = !1;
26
+ for (var f = 0, s = n.length; s >= 0; s--) {
27
+ var l = n[s];
28
+ l === "." ? Ee(n, s) : l === ".." ? (Ee(n, s), f++) : f && (Ee(n, s), f--);
29
+ }
30
+ if (!p)
31
+ for (; f--; f)
32
+ n.unshift("..");
33
+ p && n[0] !== "" && (!n[0] || !Q(n[0])) && n.unshift("");
34
+ var v = n.join("/");
35
+ return u && v.substr(-1) !== "/" && (v += "/"), v;
36
+ }
37
+ var tr = process.env.NODE_ENV === "production";
38
+ function M(e, r) {
39
+ if (!tr) {
40
+ if (e)
41
+ return;
42
+ var o = "Warning: " + r;
43
+ typeof console < "u" && console.warn(o);
44
+ try {
45
+ throw Error(o);
46
+ } catch {
47
+ }
48
+ }
49
+ }
50
+ var nr = process.env.NODE_ENV === "production", _e = "Invariant failed";
51
+ function j(e, r) {
52
+ if (!e) {
53
+ if (nr)
54
+ throw new Error(_e);
55
+ var o = typeof r == "function" ? r() : r, n = o ? "".concat(_e, ": ").concat(o) : _e;
56
+ throw new Error(n);
57
+ }
58
+ }
59
+ function or(e) {
60
+ var r = e || "/", o = "", n = "", t = r.indexOf("#");
61
+ t !== -1 && (n = r.substr(t), r = r.substr(0, t));
62
+ var c = r.indexOf("?");
63
+ return c !== -1 && (o = r.substr(c), r = r.substr(0, c)), {
64
+ pathname: r,
65
+ search: o === "?" ? "" : o,
66
+ hash: n === "#" ? "" : n
67
+ };
68
+ }
69
+ function We(e) {
70
+ var r = e.pathname, o = e.search, n = e.hash, t = r || "/";
71
+ return o && o !== "?" && (t += o.charAt(0) === "?" ? o : "?" + o), n && n !== "#" && (t += n.charAt(0) === "#" ? n : "#" + n), t;
72
+ }
73
+ function B(e, r, o, n) {
74
+ var t;
75
+ typeof e == "string" ? (t = or(e), t.state = r) : (t = W({}, e), t.pathname === void 0 && (t.pathname = ""), t.search ? t.search.charAt(0) !== "?" && (t.search = "?" + t.search) : t.search = "", t.hash ? t.hash.charAt(0) !== "#" && (t.hash = "#" + t.hash) : t.hash = "", r !== void 0 && t.state === void 0 && (t.state = r));
76
+ try {
77
+ t.pathname = decodeURI(t.pathname);
78
+ } catch (c) {
79
+ throw c instanceof URIError ? new URIError('Pathname "' + t.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : c;
80
+ }
81
+ return o && (t.key = o), n ? t.pathname ? t.pathname.charAt(0) !== "/" && (t.pathname = rr(t.pathname, n.pathname)) : t.pathname = n.pathname : t.pathname || (t.pathname = "/"), t;
82
+ }
83
+ function ir() {
84
+ var e = null;
85
+ function r(p) {
86
+ return process.env.NODE_ENV !== "production" && M(e == null, "A history supports only one prompt at a time"), e = p, function() {
87
+ e === p && (e = null);
88
+ };
89
+ }
90
+ function o(p, u, d, f) {
91
+ if (e != null) {
92
+ var s = typeof e == "function" ? e(p, u) : e;
93
+ typeof s == "string" ? typeof d == "function" ? d(s, f) : (process.env.NODE_ENV !== "production" && M(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), f(!0)) : f(s !== !1);
94
+ } else
95
+ f(!0);
96
+ }
97
+ var n = [];
98
+ function t(p) {
99
+ var u = !0;
100
+ function d() {
101
+ u && p.apply(void 0, arguments);
102
+ }
103
+ return n.push(d), function() {
104
+ u = !1, n = n.filter(function(f) {
105
+ return f !== d;
106
+ });
107
+ };
108
+ }
109
+ function c() {
110
+ for (var p = arguments.length, u = new Array(p), d = 0; d < p; d++)
111
+ u[d] = arguments[d];
112
+ n.forEach(function(f) {
113
+ return f.apply(void 0, u);
114
+ });
115
+ }
116
+ return {
117
+ setPrompt: r,
118
+ confirmTransitionTo: o,
119
+ appendListener: t,
120
+ notifyListeners: c
121
+ };
122
+ }
123
+ function Ae(e, r, o) {
124
+ return Math.min(Math.max(e, r), o);
125
+ }
126
+ function ar(e) {
127
+ e === void 0 && (e = {});
128
+ var r = e, o = r.getUserConfirmation, n = r.initialEntries, t = n === void 0 ? ["/"] : n, c = r.initialIndex, p = c === void 0 ? 0 : c, u = r.keyLength, d = u === void 0 ? 6 : u, f = ir();
129
+ function s(S) {
130
+ W(C, S), C.length = C.entries.length, f.notifyListeners(C.location, C.action);
131
+ }
132
+ function l() {
133
+ return Math.random().toString(36).substr(2, d);
134
+ }
135
+ var v = Ae(p, 0, t.length - 1), h = t.map(function(S) {
136
+ return typeof S == "string" ? B(S, void 0, l()) : B(S, void 0, S.key || l());
137
+ }), m = We;
138
+ function N(S, w) {
139
+ process.env.NODE_ENV !== "production" && M(!(typeof S == "object" && S.state !== void 0 && w !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
140
+ var I = "PUSH", O = B(S, w, l(), C.location);
141
+ f.confirmTransitionTo(O, I, o, function(Y) {
142
+ if (Y) {
143
+ var G = C.index, U = G + 1, L = C.entries.slice(0);
144
+ L.length > U ? L.splice(U, L.length - U, O) : L.push(O), s({
145
+ action: I,
146
+ location: O,
147
+ index: U,
148
+ entries: L
149
+ });
150
+ }
151
+ });
152
+ }
153
+ function P(S, w) {
154
+ process.env.NODE_ENV !== "production" && M(!(typeof S == "object" && S.state !== void 0 && w !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
155
+ var I = "REPLACE", O = B(S, w, l(), C.location);
156
+ f.confirmTransitionTo(O, I, o, function(Y) {
157
+ Y && (C.entries[C.index] = O, s({
158
+ action: I,
159
+ location: O
160
+ }));
161
+ });
162
+ }
163
+ function $(S) {
164
+ var w = Ae(C.index + S, 0, C.entries.length - 1), I = "POP", O = C.entries[w];
165
+ f.confirmTransitionTo(O, I, o, function(Y) {
166
+ Y ? s({
167
+ action: I,
168
+ location: O,
169
+ index: w
170
+ }) : s();
171
+ });
172
+ }
173
+ function D() {
174
+ $(-1);
175
+ }
176
+ function E() {
177
+ $(1);
178
+ }
179
+ function y(S) {
180
+ var w = C.index + S;
181
+ return w >= 0 && w < C.entries.length;
182
+ }
183
+ function i(S) {
184
+ return S === void 0 && (S = !1), f.setPrompt(S);
185
+ }
186
+ function A(S) {
187
+ return f.appendListener(S);
188
+ }
189
+ var C = {
190
+ length: h.length,
191
+ action: "POP",
192
+ location: h[v],
193
+ index: v,
194
+ entries: h,
195
+ createHref: m,
196
+ push: N,
197
+ replace: P,
198
+ go: $,
199
+ goBack: D,
200
+ goForward: E,
201
+ canGo: y,
202
+ block: i,
203
+ listen: A
204
+ };
205
+ return C;
206
+ }
207
+ var H = { exports: {} }, sr = Array.isArray || function(e) {
208
+ return Object.prototype.toString.call(e) == "[object Array]";
209
+ }, te = sr;
210
+ H.exports = Ge;
211
+ H.exports.parse = Te;
212
+ H.exports.compile = fr;
213
+ H.exports.tokensToFunction = Be;
214
+ H.exports.tokensToRegExp = He;
215
+ var cr = new RegExp([
216
+ // Match escaped characters that would otherwise appear in future matches.
217
+ // This allows the user to escape special characters that won't transform.
218
+ "(\\\\.)",
219
+ // Match Express-style parameters and un-named parameters with a prefix
220
+ // and optional suffixes. Matches appear as:
221
+ //
222
+ // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
223
+ // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
224
+ // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
225
+ "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
226
+ ].join("|"), "g");
227
+ function Te(e, r) {
228
+ for (var o = [], n = 0, t = 0, c = "", p = r && r.delimiter || "/", u; (u = cr.exec(e)) != null; ) {
229
+ var d = u[0], f = u[1], s = u.index;
230
+ if (c += e.slice(t, s), t = s + d.length, f) {
231
+ c += f[1];
232
+ continue;
233
+ }
234
+ var l = e[t], v = u[2], h = u[3], m = u[4], N = u[5], P = u[6], $ = u[7];
235
+ c && (o.push(c), c = "");
236
+ var D = v != null && l != null && l !== v, E = P === "+" || P === "*", y = P === "?" || P === "*", i = v || p, A = m || N, C = v || (typeof o[o.length - 1] == "string" ? o[o.length - 1] : "");
237
+ o.push({
238
+ name: h || n++,
239
+ prefix: v || "",
240
+ delimiter: i,
241
+ optional: y,
242
+ repeat: E,
243
+ partial: D,
244
+ asterisk: !!$,
245
+ pattern: A ? dr(A) : $ ? ".*" : ur(i, C)
246
+ });
247
+ }
248
+ return t < e.length && (c += e.substr(t)), c && o.push(c), o;
249
+ }
250
+ function ur(e, r) {
251
+ return !r || r.indexOf(e) > -1 ? "[^" + z(e) + "]+?" : z(r) + "|(?:(?!" + z(r) + ")[^" + z(e) + "])+?";
252
+ }
253
+ function fr(e, r) {
254
+ return Be(Te(e, r), r);
255
+ }
256
+ function lr(e) {
257
+ return encodeURI(e).replace(/[\/?#]/g, function(r) {
258
+ return "%" + r.charCodeAt(0).toString(16).toUpperCase();
259
+ });
260
+ }
261
+ function pr(e) {
262
+ return encodeURI(e).replace(/[?#]/g, function(r) {
263
+ return "%" + r.charCodeAt(0).toString(16).toUpperCase();
264
+ });
265
+ }
266
+ function Be(e, r) {
267
+ for (var o = new Array(e.length), n = 0; n < e.length; n++)
268
+ typeof e[n] == "object" && (o[n] = new RegExp("^(?:" + e[n].pattern + ")$", Pe(r)));
269
+ return function(t, c) {
270
+ for (var p = "", u = t || {}, d = c || {}, f = d.pretty ? lr : encodeURIComponent, s = 0; s < e.length; s++) {
271
+ var l = e[s];
272
+ if (typeof l == "string") {
273
+ p += l;
274
+ continue;
275
+ }
276
+ var v = u[l.name], h;
277
+ if (v == null)
278
+ if (l.optional) {
279
+ l.partial && (p += l.prefix);
280
+ continue;
281
+ } else
282
+ throw new TypeError('Expected "' + l.name + '" to be defined');
283
+ if (te(v)) {
284
+ if (!l.repeat)
285
+ throw new TypeError('Expected "' + l.name + '" to not repeat, but received `' + JSON.stringify(v) + "`");
286
+ if (v.length === 0) {
287
+ if (l.optional)
288
+ continue;
289
+ throw new TypeError('Expected "' + l.name + '" to not be empty');
290
+ }
291
+ for (var m = 0; m < v.length; m++) {
292
+ if (h = f(v[m]), !o[s].test(h))
293
+ throw new TypeError('Expected all "' + l.name + '" to match "' + l.pattern + '", but received `' + JSON.stringify(h) + "`");
294
+ p += (m === 0 ? l.prefix : l.delimiter) + h;
295
+ }
296
+ continue;
297
+ }
298
+ if (h = l.asterisk ? pr(v) : f(v), !o[s].test(h))
299
+ throw new TypeError('Expected "' + l.name + '" to match "' + l.pattern + '", but received "' + h + '"');
300
+ p += l.prefix + h;
301
+ }
302
+ return p;
303
+ };
304
+ }
305
+ function z(e) {
306
+ return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
307
+ }
308
+ function dr(e) {
309
+ return e.replace(/([=!:$\/()])/g, "\\$1");
310
+ }
311
+ function Ce(e, r) {
312
+ return e.keys = r, e;
313
+ }
314
+ function Pe(e) {
315
+ return e && e.sensitive ? "" : "i";
316
+ }
317
+ function vr(e, r) {
318
+ var o = e.source.match(/\((?!\?)/g);
319
+ if (o)
320
+ for (var n = 0; n < o.length; n++)
321
+ r.push({
322
+ name: n,
323
+ prefix: null,
324
+ delimiter: null,
325
+ optional: !1,
326
+ repeat: !1,
327
+ partial: !1,
328
+ asterisk: !1,
329
+ pattern: null
330
+ });
331
+ return Ce(e, r);
332
+ }
333
+ function hr(e, r, o) {
334
+ for (var n = [], t = 0; t < e.length; t++)
335
+ n.push(Ge(e[t], r, o).source);
336
+ var c = new RegExp("(?:" + n.join("|") + ")", Pe(o));
337
+ return Ce(c, r);
338
+ }
339
+ function mr(e, r, o) {
340
+ return He(Te(e, o), r, o);
341
+ }
342
+ function He(e, r, o) {
343
+ te(r) || (o = /** @type {!Object} */
344
+ r || o, r = []), o = o || {};
345
+ for (var n = o.strict, t = o.end !== !1, c = "", p = 0; p < e.length; p++) {
346
+ var u = e[p];
347
+ if (typeof u == "string")
348
+ c += z(u);
349
+ else {
350
+ var d = z(u.prefix), f = "(?:" + u.pattern + ")";
351
+ r.push(u), u.repeat && (f += "(?:" + d + f + ")*"), u.optional ? u.partial ? f = d + "(" + f + ")?" : f = "(?:" + d + "(" + f + "))?" : f = d + "(" + f + ")", c += f;
352
+ }
353
+ }
354
+ var s = z(o.delimiter || "/"), l = c.slice(-s.length) === s;
355
+ return n || (c = (l ? c.slice(0, -s.length) : c) + "(?:" + s + "(?=$))?"), t ? c += "$" : c += n && l ? "" : "(?=" + s + "|$)", Ce(new RegExp("^" + c, Pe(o)), r);
356
+ }
357
+ function Ge(e, r, o) {
358
+ return te(r) || (o = /** @type {!Object} */
359
+ r || o, r = []), o = o || {}, e instanceof RegExp ? vr(
360
+ e,
361
+ /** @type {!Array} */
362
+ r
363
+ ) : te(e) ? hr(
364
+ /** @type {!Array} */
365
+ e,
366
+ /** @type {!Array} */
367
+ r,
368
+ o
369
+ ) : mr(
370
+ /** @type {string} */
371
+ e,
372
+ /** @type {!Array} */
373
+ r,
374
+ o
375
+ );
376
+ }
377
+ var yr = H.exports;
378
+ const Er = /* @__PURE__ */ ke(yr);
379
+ var xe = { exports: {} }, g = {};
380
+ /** @license React v16.13.1
381
+ * react-is.production.min.js
382
+ *
383
+ * Copyright (c) Facebook, Inc. and its affiliates.
384
+ *
385
+ * This source code is licensed under the MIT license found in the
386
+ * LICENSE file in the root directory of this source tree.
387
+ */
388
+ var Me;
389
+ function _r() {
390
+ if (Me)
391
+ return g;
392
+ Me = 1;
393
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
394
+ function E(i) {
395
+ if (typeof i == "object" && i !== null) {
396
+ var A = i.$$typeof;
397
+ switch (A) {
398
+ case r:
399
+ switch (i = i.type, i) {
400
+ case d:
401
+ case f:
402
+ case n:
403
+ case c:
404
+ case t:
405
+ case l:
406
+ return i;
407
+ default:
408
+ switch (i = i && i.$$typeof, i) {
409
+ case u:
410
+ case s:
411
+ case m:
412
+ case h:
413
+ case p:
414
+ return i;
415
+ default:
416
+ return A;
417
+ }
418
+ }
419
+ case o:
420
+ return A;
421
+ }
422
+ }
423
+ }
424
+ function y(i) {
425
+ return E(i) === f;
426
+ }
427
+ return g.AsyncMode = d, g.ConcurrentMode = f, g.ContextConsumer = u, g.ContextProvider = p, g.Element = r, g.ForwardRef = s, g.Fragment = n, g.Lazy = m, g.Memo = h, g.Portal = o, g.Profiler = c, g.StrictMode = t, g.Suspense = l, g.isAsyncMode = function(i) {
428
+ return y(i) || E(i) === d;
429
+ }, g.isConcurrentMode = y, g.isContextConsumer = function(i) {
430
+ return E(i) === u;
431
+ }, g.isContextProvider = function(i) {
432
+ return E(i) === p;
433
+ }, g.isElement = function(i) {
434
+ return typeof i == "object" && i !== null && i.$$typeof === r;
435
+ }, g.isForwardRef = function(i) {
436
+ return E(i) === s;
437
+ }, g.isFragment = function(i) {
438
+ return E(i) === n;
439
+ }, g.isLazy = function(i) {
440
+ return E(i) === m;
441
+ }, g.isMemo = function(i) {
442
+ return E(i) === h;
443
+ }, g.isPortal = function(i) {
444
+ return E(i) === o;
445
+ }, g.isProfiler = function(i) {
446
+ return E(i) === c;
447
+ }, g.isStrictMode = function(i) {
448
+ return E(i) === t;
449
+ }, g.isSuspense = function(i) {
450
+ return E(i) === l;
451
+ }, g.isValidElementType = function(i) {
452
+ return typeof i == "string" || typeof i == "function" || i === n || i === f || i === c || i === t || i === l || i === v || typeof i == "object" && i !== null && (i.$$typeof === m || i.$$typeof === h || i.$$typeof === p || i.$$typeof === u || i.$$typeof === s || i.$$typeof === P || i.$$typeof === $ || i.$$typeof === D || i.$$typeof === N);
453
+ }, g.typeOf = E, g;
454
+ }
455
+ var b = {};
456
+ /** @license React v16.13.1
457
+ * react-is.development.js
458
+ *
459
+ * Copyright (c) Facebook, Inc. and its affiliates.
460
+ *
461
+ * This source code is licensed under the MIT license found in the
462
+ * LICENSE file in the root directory of this source tree.
463
+ */
464
+ var Ne;
465
+ function gr() {
466
+ return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
467
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
468
+ function E(a) {
469
+ return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
470
+ a === n || a === f || a === c || a === t || a === l || a === v || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === h || a.$$typeof === p || a.$$typeof === u || a.$$typeof === s || a.$$typeof === P || a.$$typeof === $ || a.$$typeof === D || a.$$typeof === N);
471
+ }
472
+ function y(a) {
473
+ if (typeof a == "object" && a !== null) {
474
+ var q = a.$$typeof;
475
+ switch (q) {
476
+ case r:
477
+ var V = a.type;
478
+ switch (V) {
479
+ case d:
480
+ case f:
481
+ case n:
482
+ case c:
483
+ case t:
484
+ case l:
485
+ return V;
486
+ default:
487
+ var J = V && V.$$typeof;
488
+ switch (J) {
489
+ case u:
490
+ case s:
491
+ case m:
492
+ case h:
493
+ case p:
494
+ return J;
495
+ default:
496
+ return q;
497
+ }
498
+ }
499
+ case o:
500
+ return q;
501
+ }
502
+ }
503
+ }
504
+ var i = d, A = f, C = u, S = p, w = r, I = s, O = n, Y = m, G = h, U = o, L = c, oe = t, ie = l, K = !1;
505
+ function ae(a) {
506
+ return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), X(a) || y(a) === d;
507
+ }
508
+ function X(a) {
509
+ return y(a) === f;
510
+ }
511
+ function se(a) {
512
+ return y(a) === u;
513
+ }
514
+ function ce(a) {
515
+ return y(a) === p;
516
+ }
517
+ function ue(a) {
518
+ return typeof a == "object" && a !== null && a.$$typeof === r;
519
+ }
520
+ function fe(a) {
521
+ return y(a) === s;
522
+ }
523
+ function le(a) {
524
+ return y(a) === n;
525
+ }
526
+ function pe(a) {
527
+ return y(a) === m;
528
+ }
529
+ function de(a) {
530
+ return y(a) === h;
531
+ }
532
+ function ve(a) {
533
+ return y(a) === o;
534
+ }
535
+ function he(a) {
536
+ return y(a) === c;
537
+ }
538
+ function me(a) {
539
+ return y(a) === t;
540
+ }
541
+ function ye(a) {
542
+ return y(a) === l;
543
+ }
544
+ b.AsyncMode = i, b.ConcurrentMode = A, b.ContextConsumer = C, b.ContextProvider = S, b.Element = w, b.ForwardRef = I, b.Fragment = O, b.Lazy = Y, b.Memo = G, b.Portal = U, b.Profiler = L, b.StrictMode = oe, b.Suspense = ie, b.isAsyncMode = ae, b.isConcurrentMode = X, b.isContextConsumer = se, b.isContextProvider = ce, b.isElement = ue, b.isForwardRef = fe, b.isFragment = le, b.isLazy = pe, b.isMemo = de, b.isPortal = ve, b.isProfiler = he, b.isStrictMode = me, b.isSuspense = ye, b.isValidElementType = E, b.typeOf = y;
545
+ }()), b;
546
+ }
547
+ process.env.NODE_ENV === "production" ? xe.exports = _r() : xe.exports = gr();
548
+ var br = xe.exports, Re = { exports: {} }, x = {};
549
+ /** @license React v16.13.1
550
+ * react-is.production.min.js
551
+ *
552
+ * Copyright (c) Facebook, Inc. and its affiliates.
553
+ *
554
+ * This source code is licensed under the MIT license found in the
555
+ * LICENSE file in the root directory of this source tree.
556
+ */
557
+ var we;
558
+ function xr() {
559
+ if (we)
560
+ return x;
561
+ we = 1;
562
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
563
+ function E(i) {
564
+ if (typeof i == "object" && i !== null) {
565
+ var A = i.$$typeof;
566
+ switch (A) {
567
+ case r:
568
+ switch (i = i.type, i) {
569
+ case d:
570
+ case f:
571
+ case n:
572
+ case c:
573
+ case t:
574
+ case l:
575
+ return i;
576
+ default:
577
+ switch (i = i && i.$$typeof, i) {
578
+ case u:
579
+ case s:
580
+ case m:
581
+ case h:
582
+ case p:
583
+ return i;
584
+ default:
585
+ return A;
586
+ }
587
+ }
588
+ case o:
589
+ return A;
590
+ }
591
+ }
592
+ }
593
+ function y(i) {
594
+ return E(i) === f;
595
+ }
596
+ return x.AsyncMode = d, x.ConcurrentMode = f, x.ContextConsumer = u, x.ContextProvider = p, x.Element = r, x.ForwardRef = s, x.Fragment = n, x.Lazy = m, x.Memo = h, x.Portal = o, x.Profiler = c, x.StrictMode = t, x.Suspense = l, x.isAsyncMode = function(i) {
597
+ return y(i) || E(i) === d;
598
+ }, x.isConcurrentMode = y, x.isContextConsumer = function(i) {
599
+ return E(i) === u;
600
+ }, x.isContextProvider = function(i) {
601
+ return E(i) === p;
602
+ }, x.isElement = function(i) {
603
+ return typeof i == "object" && i !== null && i.$$typeof === r;
604
+ }, x.isForwardRef = function(i) {
605
+ return E(i) === s;
606
+ }, x.isFragment = function(i) {
607
+ return E(i) === n;
608
+ }, x.isLazy = function(i) {
609
+ return E(i) === m;
610
+ }, x.isMemo = function(i) {
611
+ return E(i) === h;
612
+ }, x.isPortal = function(i) {
613
+ return E(i) === o;
614
+ }, x.isProfiler = function(i) {
615
+ return E(i) === c;
616
+ }, x.isStrictMode = function(i) {
617
+ return E(i) === t;
618
+ }, x.isSuspense = function(i) {
619
+ return E(i) === l;
620
+ }, x.isValidElementType = function(i) {
621
+ return typeof i == "string" || typeof i == "function" || i === n || i === f || i === c || i === t || i === l || i === v || typeof i == "object" && i !== null && (i.$$typeof === m || i.$$typeof === h || i.$$typeof === p || i.$$typeof === u || i.$$typeof === s || i.$$typeof === P || i.$$typeof === $ || i.$$typeof === D || i.$$typeof === N);
622
+ }, x.typeOf = E, x;
623
+ }
624
+ var R = {};
625
+ /** @license React v16.13.1
626
+ * react-is.development.js
627
+ *
628
+ * Copyright (c) Facebook, Inc. and its affiliates.
629
+ *
630
+ * This source code is licensed under the MIT license found in the
631
+ * LICENSE file in the root directory of this source tree.
632
+ */
633
+ var Oe;
634
+ function Rr() {
635
+ return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
636
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
637
+ function E(a) {
638
+ return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
639
+ a === n || a === f || a === c || a === t || a === l || a === v || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === h || a.$$typeof === p || a.$$typeof === u || a.$$typeof === s || a.$$typeof === P || a.$$typeof === $ || a.$$typeof === D || a.$$typeof === N);
640
+ }
641
+ function y(a) {
642
+ if (typeof a == "object" && a !== null) {
643
+ var q = a.$$typeof;
644
+ switch (q) {
645
+ case r:
646
+ var V = a.type;
647
+ switch (V) {
648
+ case d:
649
+ case f:
650
+ case n:
651
+ case c:
652
+ case t:
653
+ case l:
654
+ return V;
655
+ default:
656
+ var J = V && V.$$typeof;
657
+ switch (J) {
658
+ case u:
659
+ case s:
660
+ case m:
661
+ case h:
662
+ case p:
663
+ return J;
664
+ default:
665
+ return q;
666
+ }
667
+ }
668
+ case o:
669
+ return q;
670
+ }
671
+ }
672
+ }
673
+ var i = d, A = f, C = u, S = p, w = r, I = s, O = n, Y = m, G = h, U = o, L = c, oe = t, ie = l, K = !1;
674
+ function ae(a) {
675
+ return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), X(a) || y(a) === d;
676
+ }
677
+ function X(a) {
678
+ return y(a) === f;
679
+ }
680
+ function se(a) {
681
+ return y(a) === u;
682
+ }
683
+ function ce(a) {
684
+ return y(a) === p;
685
+ }
686
+ function ue(a) {
687
+ return typeof a == "object" && a !== null && a.$$typeof === r;
688
+ }
689
+ function fe(a) {
690
+ return y(a) === s;
691
+ }
692
+ function le(a) {
693
+ return y(a) === n;
694
+ }
695
+ function pe(a) {
696
+ return y(a) === m;
697
+ }
698
+ function de(a) {
699
+ return y(a) === h;
700
+ }
701
+ function ve(a) {
702
+ return y(a) === o;
703
+ }
704
+ function he(a) {
705
+ return y(a) === c;
706
+ }
707
+ function me(a) {
708
+ return y(a) === t;
709
+ }
710
+ function ye(a) {
711
+ return y(a) === l;
712
+ }
713
+ R.AsyncMode = i, R.ConcurrentMode = A, R.ContextConsumer = C, R.ContextProvider = S, R.Element = w, R.ForwardRef = I, R.Fragment = O, R.Lazy = Y, R.Memo = G, R.Portal = U, R.Profiler = L, R.StrictMode = oe, R.Suspense = ie, R.isAsyncMode = ae, R.isConcurrentMode = X, R.isContextConsumer = se, R.isContextProvider = ce, R.isElement = ue, R.isForwardRef = fe, R.isFragment = le, R.isLazy = pe, R.isMemo = de, R.isPortal = ve, R.isProfiler = he, R.isStrictMode = me, R.isSuspense = ye, R.isValidElementType = E, R.typeOf = y;
714
+ }()), R;
715
+ }
716
+ process.env.NODE_ENV === "production" ? Re.exports = xr() : Re.exports = Rr();
717
+ var Sr = Re.exports, Ke = Sr, Tr = {
718
+ $$typeof: !0,
719
+ render: !0,
720
+ defaultProps: !0,
721
+ displayName: !0,
722
+ propTypes: !0
723
+ }, Cr = {
724
+ $$typeof: !0,
725
+ compare: !0,
726
+ defaultProps: !0,
727
+ displayName: !0,
728
+ propTypes: !0,
729
+ type: !0
730
+ }, Xe = {};
731
+ Xe[Ke.ForwardRef] = Tr;
732
+ Xe[Ke.Memo] = Cr;
733
+ var k = 1073741823, De = typeof globalThis < "u" ? (
734
+ // eslint-disable-next-line no-undef
735
+ globalThis
736
+ ) : typeof window < "u" ? window : typeof global < "u" ? global : {};
737
+ function Pr() {
738
+ var e = "__global_unique_id__";
739
+ return De[e] = (De[e] || 0) + 1;
740
+ }
741
+ function $r(e, r) {
742
+ return e === r ? e !== 0 || 1 / e === 1 / r : e !== e && r !== r;
743
+ }
744
+ function Ar(e) {
745
+ var r = [];
746
+ return {
747
+ on: function(n) {
748
+ r.push(n);
749
+ },
750
+ off: function(n) {
751
+ r = r.filter(function(t) {
752
+ return t !== n;
753
+ });
754
+ },
755
+ get: function() {
756
+ return e;
757
+ },
758
+ set: function(n, t) {
759
+ e = n, r.forEach(function(c) {
760
+ return c(e, t);
761
+ });
762
+ }
763
+ };
764
+ }
765
+ function Mr(e) {
766
+ return Array.isArray(e) ? e[0] : e;
767
+ }
768
+ function Nr(e, r) {
769
+ var o, n, t = "__create-react-context-" + Pr() + "__", c = /* @__PURE__ */ function(u) {
770
+ F(d, u);
771
+ function d() {
772
+ for (var s, l = arguments.length, v = new Array(l), h = 0; h < l; h++)
773
+ v[h] = arguments[h];
774
+ return s = u.call.apply(u, [this].concat(v)) || this, s.emitter = Ar(s.props.value), s;
775
+ }
776
+ var f = d.prototype;
777
+ return f.getChildContext = function() {
778
+ var l;
779
+ return l = {}, l[t] = this.emitter, l;
780
+ }, f.componentWillReceiveProps = function(l) {
781
+ if (this.props.value !== l.value) {
782
+ var v = this.props.value, h = l.value, m;
783
+ $r(v, h) ? m = 0 : (m = typeof r == "function" ? r(v, h) : k, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && M((m & k) === m, "calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: " + m), m |= 0, m !== 0 && this.emitter.set(l.value, m));
784
+ }
785
+ }, f.render = function() {
786
+ return this.props.children;
787
+ }, d;
788
+ }(T.Component);
789
+ c.childContextTypes = (o = {}, o[t] = _.object.isRequired, o);
790
+ var p = /* @__PURE__ */ function(u) {
791
+ F(d, u);
792
+ function d() {
793
+ for (var s, l = arguments.length, v = new Array(l), h = 0; h < l; h++)
794
+ v[h] = arguments[h];
795
+ return s = u.call.apply(u, [this].concat(v)) || this, s.observedBits = void 0, s.state = {
796
+ value: s.getValue()
797
+ }, s.onUpdate = function(m, N) {
798
+ var P = s.observedBits | 0;
799
+ P & N && s.setState({
800
+ value: s.getValue()
801
+ });
802
+ }, s;
803
+ }
804
+ var f = d.prototype;
805
+ return f.componentWillReceiveProps = function(l) {
806
+ var v = l.observedBits;
807
+ this.observedBits = v ?? k;
808
+ }, f.componentDidMount = function() {
809
+ this.context[t] && this.context[t].on(this.onUpdate);
810
+ var l = this.props.observedBits;
811
+ this.observedBits = l ?? k;
812
+ }, f.componentWillUnmount = function() {
813
+ this.context[t] && this.context[t].off(this.onUpdate);
814
+ }, f.getValue = function() {
815
+ return this.context[t] ? this.context[t].get() : e;
816
+ }, f.render = function() {
817
+ return Mr(this.props.children)(this.state.value);
818
+ }, d;
819
+ }(T.Component);
820
+ return p.contextTypes = (n = {}, n[t] = _.object, n), {
821
+ Provider: c,
822
+ Consumer: p
823
+ };
824
+ }
825
+ var wr = T.createContext || Nr, Je = function(r) {
826
+ var o = wr();
827
+ return o.displayName = r, o;
828
+ }, Or = /* @__PURE__ */ Je("Router-History"), Z = /* @__PURE__ */ Je("Router"), ne = /* @__PURE__ */ function(e) {
829
+ F(r, e), r.computeRootMatch = function(t) {
830
+ return {
831
+ path: "/",
832
+ url: "/",
833
+ params: {},
834
+ isExact: t === "/"
835
+ };
836
+ };
837
+ function r(n) {
838
+ var t;
839
+ return t = e.call(this, n) || this, t.state = {
840
+ location: n.history.location
841
+ }, t._isMounted = !1, t._pendingLocation = null, n.staticContext || (t.unlisten = n.history.listen(function(c) {
842
+ t._pendingLocation = c;
843
+ })), t;
844
+ }
845
+ var o = r.prototype;
846
+ return o.componentDidMount = function() {
847
+ var t = this;
848
+ this._isMounted = !0, this.unlisten && this.unlisten(), this.props.staticContext || (this.unlisten = this.props.history.listen(function(c) {
849
+ t._isMounted && t.setState({
850
+ location: c
851
+ });
852
+ })), this._pendingLocation && this.setState({
853
+ location: this._pendingLocation
854
+ });
855
+ }, o.componentWillUnmount = function() {
856
+ this.unlisten && (this.unlisten(), this._isMounted = !1, this._pendingLocation = null);
857
+ }, o.render = function() {
858
+ return /* @__PURE__ */ T.createElement(Z.Provider, {
859
+ value: {
860
+ history: this.props.history,
861
+ location: this.state.location,
862
+ match: r.computeRootMatch(this.state.location.pathname),
863
+ staticContext: this.props.staticContext
864
+ }
865
+ }, /* @__PURE__ */ T.createElement(Or.Provider, {
866
+ children: this.props.children || null,
867
+ value: this.props.history
868
+ }));
869
+ }, r;
870
+ }(T.Component);
871
+ process.env.NODE_ENV !== "production" && (ne.propTypes = {
872
+ children: _.node,
873
+ history: _.object.isRequired,
874
+ staticContext: _.object
875
+ }, ne.prototype.componentDidUpdate = function(e) {
876
+ process.env.NODE_ENV !== "production" && M(e.history === this.props.history, "You cannot change <Router history>");
877
+ });
878
+ var Ie = /* @__PURE__ */ function(e) {
879
+ F(r, e);
880
+ function r() {
881
+ for (var n, t = arguments.length, c = new Array(t), p = 0; p < t; p++)
882
+ c[p] = arguments[p];
883
+ return n = e.call.apply(e, [this].concat(c)) || this, n.history = ar(n.props), n;
884
+ }
885
+ var o = r.prototype;
886
+ return o.render = function() {
887
+ return /* @__PURE__ */ T.createElement(ne, {
888
+ history: this.history,
889
+ children: this.props.children
890
+ });
891
+ }, r;
892
+ }(T.Component);
893
+ process.env.NODE_ENV !== "production" && (Ie.propTypes = {
894
+ initialEntries: _.array,
895
+ initialIndex: _.number,
896
+ getUserConfirmation: _.func,
897
+ keyLength: _.number,
898
+ children: _.node
899
+ }, Ie.prototype.componentDidMount = function() {
900
+ process.env.NODE_ENV !== "production" && M(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.");
901
+ });
902
+ var Dr = /* @__PURE__ */ function(e) {
903
+ F(r, e);
904
+ function r() {
905
+ return e.apply(this, arguments) || this;
906
+ }
907
+ var o = r.prototype;
908
+ return o.componentDidMount = function() {
909
+ this.props.onMount && this.props.onMount.call(this, this);
910
+ }, o.componentDidUpdate = function(t) {
911
+ this.props.onUpdate && this.props.onUpdate.call(this, this, t);
912
+ }, o.componentWillUnmount = function() {
913
+ this.props.onUnmount && this.props.onUnmount.call(this, this);
914
+ }, o.render = function() {
915
+ return null;
916
+ }, r;
917
+ }(T.Component);
918
+ function Ir(e) {
919
+ var r = e.message, o = e.when, n = o === void 0 ? !0 : o;
920
+ return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(t) {
921
+ if (t || (process.env.NODE_ENV !== "production" ? j(!1, "You should not use <Prompt> outside a <Router>") : j(!1)), !n || t.staticContext)
922
+ return null;
923
+ var c = t.history.block;
924
+ return /* @__PURE__ */ T.createElement(Dr, {
925
+ onMount: function(u) {
926
+ u.release = c(r);
927
+ },
928
+ onUpdate: function(u, d) {
929
+ d.message !== r && (u.release(), u.release = c(r));
930
+ },
931
+ onUnmount: function(u) {
932
+ u.release();
933
+ },
934
+ message: r
935
+ });
936
+ });
937
+ }
938
+ if (process.env.NODE_ENV !== "production") {
939
+ var Yr = _.oneOfType([_.func, _.string]);
940
+ Ir.propTypes = {
941
+ when: _.bool,
942
+ message: Yr.isRequired
943
+ };
944
+ }
945
+ process.env.NODE_ENV !== "production" && (_.bool, _.string, _.oneOfType([_.string, _.object]).isRequired);
946
+ var Ye = {}, Lr = 1e4, Le = 0;
947
+ function Vr(e, r) {
948
+ var o = "" + r.end + r.strict + r.sensitive, n = Ye[o] || (Ye[o] = {});
949
+ if (n[e])
950
+ return n[e];
951
+ var t = [], c = Er(e, t, r), p = {
952
+ regexp: c,
953
+ keys: t
954
+ };
955
+ return Le < Lr && (n[e] = p, Le++), p;
956
+ }
957
+ function Ze(e, r) {
958
+ r === void 0 && (r = {}), (typeof r == "string" || Array.isArray(r)) && (r = {
959
+ path: r
960
+ });
961
+ var o = r, n = o.path, t = o.exact, c = t === void 0 ? !1 : t, p = o.strict, u = p === void 0 ? !1 : p, d = o.sensitive, f = d === void 0 ? !1 : d, s = [].concat(n);
962
+ return s.reduce(function(l, v) {
963
+ if (!v && v !== "")
964
+ return null;
965
+ if (l)
966
+ return l;
967
+ var h = Vr(v, {
968
+ end: c,
969
+ strict: u,
970
+ sensitive: f
971
+ }), m = h.regexp, N = h.keys, P = m.exec(e);
972
+ if (!P)
973
+ return null;
974
+ var $ = P[0], D = P.slice(1), E = e === $;
975
+ return c && !E ? null : {
976
+ path: v,
977
+ // the path used to match
978
+ url: v === "/" && $ === "" ? "/" : $,
979
+ // the matched portion of the URL
980
+ isExact: E,
981
+ // whether or not we matched exactly
982
+ params: N.reduce(function(y, i, A) {
983
+ return y[i.name] = D[A], y;
984
+ }, {})
985
+ };
986
+ }, null);
987
+ }
988
+ function Se(e) {
989
+ return T.Children.count(e) === 0;
990
+ }
991
+ function Ve(e, r, o) {
992
+ var n = e(r);
993
+ return process.env.NODE_ENV !== "production" && M(n !== void 0, "You returned `undefined` from the `children` function of " + ("<Route" + (o ? ' path="' + o + '"' : "") + ">, but you ") + "should have returned a React element or `null`"), n || null;
994
+ }
995
+ var ge = /* @__PURE__ */ function(e) {
996
+ F(r, e);
997
+ function r() {
998
+ return e.apply(this, arguments) || this;
999
+ }
1000
+ var o = r.prototype;
1001
+ return o.render = function() {
1002
+ var t = this;
1003
+ return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(c) {
1004
+ c || (process.env.NODE_ENV !== "production" ? j(!1, "You should not use <Route> outside a <Router>") : j(!1));
1005
+ var p = t.props.location || c.location, u = t.props.computedMatch ? t.props.computedMatch : t.props.path ? Ze(p.pathname, t.props) : c.match, d = W({}, c, {
1006
+ location: p,
1007
+ match: u
1008
+ }), f = t.props, s = f.children, l = f.component, v = f.render;
1009
+ return Array.isArray(s) && Se(s) && (s = null), /* @__PURE__ */ T.createElement(Z.Provider, {
1010
+ value: d
1011
+ }, d.match ? s ? typeof s == "function" ? process.env.NODE_ENV !== "production" ? Ve(s, d, t.props.path) : s(d) : s : l ? /* @__PURE__ */ T.createElement(l, d) : v ? v(d) : null : typeof s == "function" ? process.env.NODE_ENV !== "production" ? Ve(s, d, t.props.path) : s(d) : null);
1012
+ });
1013
+ }, r;
1014
+ }(T.Component);
1015
+ process.env.NODE_ENV !== "production" && (ge.propTypes = {
1016
+ children: _.oneOfType([_.func, _.node]),
1017
+ component: function(r, o) {
1018
+ if (r[o] && !br.isValidElementType(r[o]))
1019
+ return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
1020
+ },
1021
+ exact: _.bool,
1022
+ location: _.object,
1023
+ path: _.oneOfType([_.string, _.arrayOf(_.string)]),
1024
+ render: _.func,
1025
+ sensitive: _.bool,
1026
+ strict: _.bool
1027
+ }, ge.prototype.componentDidMount = function() {
1028
+ process.env.NODE_ENV !== "production" && M(!(this.props.children && !Se(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"), process.env.NODE_ENV !== "production" && M(!(this.props.children && !Se(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"), process.env.NODE_ENV !== "production" && M(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored");
1029
+ }, ge.prototype.componentDidUpdate = function(e) {
1030
+ process.env.NODE_ENV !== "production" && M(!(this.props.location && !e.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'), process.env.NODE_ENV !== "production" && M(!(!this.props.location && e.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
1031
+ });
1032
+ function $e(e) {
1033
+ return e.charAt(0) === "/" ? e : "/" + e;
1034
+ }
1035
+ function Ur(e, r) {
1036
+ return e ? W({}, r, {
1037
+ pathname: $e(e) + r.pathname
1038
+ }) : r;
1039
+ }
1040
+ function Fr(e, r) {
1041
+ if (!e)
1042
+ return r;
1043
+ var o = $e(e);
1044
+ return r.pathname.indexOf(o) !== 0 ? r : W({}, r, {
1045
+ pathname: r.pathname.substr(o.length)
1046
+ });
1047
+ }
1048
+ function Ue(e) {
1049
+ return typeof e == "string" ? e : We(e);
1050
+ }
1051
+ function be(e) {
1052
+ return function() {
1053
+ process.env.NODE_ENV !== "production" ? j(!1, "You cannot %s with <StaticRouter>") : j(!1);
1054
+ };
1055
+ }
1056
+ function Fe() {
1057
+ }
1058
+ var je = /* @__PURE__ */ function(e) {
1059
+ F(r, e);
1060
+ function r() {
1061
+ for (var n, t = arguments.length, c = new Array(t), p = 0; p < t; p++)
1062
+ c[p] = arguments[p];
1063
+ return n = e.call.apply(e, [this].concat(c)) || this, n.handlePush = function(u) {
1064
+ return n.navigateTo(u, "PUSH");
1065
+ }, n.handleReplace = function(u) {
1066
+ return n.navigateTo(u, "REPLACE");
1067
+ }, n.handleListen = function() {
1068
+ return Fe;
1069
+ }, n.handleBlock = function() {
1070
+ return Fe;
1071
+ }, n;
1072
+ }
1073
+ var o = r.prototype;
1074
+ return o.navigateTo = function(t, c) {
1075
+ var p = this.props, u = p.basename, d = u === void 0 ? "" : u, f = p.context, s = f === void 0 ? {} : f;
1076
+ s.action = c, s.location = Ur(d, B(t)), s.url = Ue(s.location);
1077
+ }, o.render = function() {
1078
+ var t = this.props, c = t.basename, p = c === void 0 ? "" : c, u = t.context, d = u === void 0 ? {} : u, f = t.location, s = f === void 0 ? "/" : f, l = er(t, ["basename", "context", "location"]), v = {
1079
+ createHref: function(m) {
1080
+ return $e(p + Ue(m));
1081
+ },
1082
+ action: "POP",
1083
+ location: Fr(p, B(s)),
1084
+ push: this.handlePush,
1085
+ replace: this.handleReplace,
1086
+ go: be(),
1087
+ goBack: be(),
1088
+ goForward: be(),
1089
+ listen: this.handleListen,
1090
+ block: this.handleBlock
1091
+ };
1092
+ return /* @__PURE__ */ T.createElement(ne, W({}, l, {
1093
+ history: v,
1094
+ staticContext: d
1095
+ }));
1096
+ }, r;
1097
+ }(T.Component);
1098
+ process.env.NODE_ENV !== "production" && (je.propTypes = {
1099
+ basename: _.string,
1100
+ context: _.object,
1101
+ location: _.oneOfType([_.string, _.object])
1102
+ }, je.prototype.componentDidMount = function() {
1103
+ process.env.NODE_ENV !== "production" && M(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.");
1104
+ });
1105
+ var qe = /* @__PURE__ */ function(e) {
1106
+ F(r, e);
1107
+ function r() {
1108
+ return e.apply(this, arguments) || this;
1109
+ }
1110
+ var o = r.prototype;
1111
+ return o.render = function() {
1112
+ var t = this;
1113
+ return /* @__PURE__ */ T.createElement(Z.Consumer, null, function(c) {
1114
+ c || (process.env.NODE_ENV !== "production" ? j(!1, "You should not use <Switch> outside a <Router>") : j(!1));
1115
+ var p = t.props.location || c.location, u, d;
1116
+ return T.Children.forEach(t.props.children, function(f) {
1117
+ if (d == null && /* @__PURE__ */ T.isValidElement(f)) {
1118
+ u = f;
1119
+ var s = f.props.path || f.props.from;
1120
+ d = s ? Ze(p.pathname, W({}, f.props, {
1121
+ path: s
1122
+ })) : c.match;
1123
+ }
1124
+ }), d ? /* @__PURE__ */ T.cloneElement(u, {
1125
+ location: p,
1126
+ computedMatch: d
1127
+ }) : null;
1128
+ });
1129
+ }, r;
1130
+ }(T.Component);
1131
+ process.env.NODE_ENV !== "production" && (qe.propTypes = {
1132
+ children: _.node,
1133
+ location: _.object
1134
+ }, qe.prototype.componentDidUpdate = function(e) {
1135
+ process.env.NODE_ENV !== "production" && M(!(this.props.location && !e.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'), process.env.NODE_ENV !== "production" && M(!(!this.props.location && e.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
1136
+ });
1137
+ T.useContext;
1138
+ if (process.env.NODE_ENV !== "production" && typeof window < "u") {
1139
+ var ee = window, re = "__react_router_build__", ze = {
1140
+ cjs: "CommonJS",
1141
+ esm: "ES modules",
1142
+ umd: "UMD"
1143
+ };
1144
+ if (ee[re] && ee[re] !== "esm") {
1145
+ var jr = ze[ee[re]], qr = ze.esm;
1146
+ throw new Error("You are loading the " + qr + " build of React Router " + ("on a page that is already running the " + jr + " ") + "build, so things won't work right.");
1147
+ }
1148
+ ee[re] = "esm";
1149
+ }
1150
+ export {
1151
+ Ir as P
1152
+ };