storybook 9.0.0-alpha.2 → 9.0.0-alpha.4
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/README.md +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/bin/index.cjs +63 -65
- package/dist/bin/index.js +63 -65
- package/dist/channels/index.cjs +209 -234
- package/dist/channels/index.js +304 -308
- package/dist/cli/bin/index.cjs +409 -409
- package/dist/cli/bin/index.js +414 -414
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +148 -148
- package/dist/common/index.d.ts +1 -5
- package/dist/common/index.js +171 -171
- package/dist/components/index.cjs +9413 -11578
- package/dist/components/index.d.ts +92 -92
- package/dist/components/index.js +6768 -7544
- package/dist/core-events/index.d.ts +138 -25
- package/dist/core-server/index.cjs +5244 -5270
- package/dist/core-server/index.d.ts +1 -1
- package/dist/core-server/index.js +5356 -5380
- package/dist/core-server/presets/common-manager.js +11 -19
- package/dist/core-server/presets/common-preset.cjs +243 -242
- package/dist/core-server/presets/common-preset.js +379 -378
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +1 -3
- package/dist/csf/index.js +69 -113
- package/dist/docs-tools/index.cjs +1 -1
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +1 -1
- package/dist/instrumenter/index.cjs +1260 -1289
- package/dist/instrumenter/index.js +1344 -1348
- package/dist/manager/globals-module-info.cjs +272 -135
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +257 -120
- package/dist/manager/globals-runtime.js +59553 -22373
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +129 -129
- package/dist/manager-api/index.cjs +1184 -1209
- package/dist/manager-api/index.d.ts +3 -3
- package/dist/manager-api/index.js +1012 -1012
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +43946 -6548
- package/dist/preview-api/index.cjs +1245 -1243
- package/dist/preview-api/index.d.ts +105 -61
- package/dist/preview-api/index.js +1311 -1273
- package/dist/preview-errors.cjs +1 -1
- package/dist/preview-errors.js +1 -1
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/test/index.cjs +34778 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +32916 -0
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14441 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.d.ts +242 -242
- package/package.json +155 -3
package/dist/router/index.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
2
|
+
var Nr = Object.create;
|
|
3
3
|
var je = Object.defineProperty;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var Lr = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var _r = Object.getOwnPropertyNames;
|
|
6
|
+
var Mr = Object.getPrototypeOf, Tr = Object.prototype.hasOwnProperty;
|
|
7
7
|
var r = (e, t) => je(e, "name", { value: t, configurable: !0 });
|
|
8
|
-
var ne = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
8
|
+
var ne = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), kr = (e, t) => {
|
|
9
9
|
for (var a in t)
|
|
10
10
|
je(e, a, { get: t[a], enumerable: !0 });
|
|
11
|
-
},
|
|
11
|
+
}, ft = (e, t, a, n) => {
|
|
12
12
|
if (t && typeof t == "object" || typeof t == "function")
|
|
13
|
-
for (let
|
|
14
|
-
!
|
|
13
|
+
for (let l of _r(t))
|
|
14
|
+
!Tr.call(e, l) && l !== a && je(e, l, { get: () => t[l], enumerable: !(n = Lr(t, l)) || n.enumerable });
|
|
15
15
|
return e;
|
|
16
16
|
};
|
|
17
|
-
var we = (e, t, a) => (a = e != null ? Mr(
|
|
17
|
+
var we = (e, t, a) => (a = e != null ? Nr(Mr(e)) : {}, ft(
|
|
18
18
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
19
|
// file that has been converted to a CommonJS file using a Babel-
|
|
20
20
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
21
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
22
|
t || !e || !e.__esModule ? je(a, "default", { value: e, enumerable: !0 }) : a,
|
|
23
23
|
e
|
|
24
|
-
)),
|
|
24
|
+
)), Ir = (e) => ft(je({}, "__esModule", { value: !0 }), e);
|
|
25
25
|
|
|
26
26
|
// ../node_modules/map-or-similar/src/similar.js
|
|
27
|
-
var Bt = ne((
|
|
27
|
+
var Bt = ne((Fn, It) => {
|
|
28
28
|
function be() {
|
|
29
29
|
return this.list = [], this.lastItem = void 0, this.size = 0, this;
|
|
30
30
|
}
|
|
@@ -65,12 +65,12 @@ var Bt = ne((Gn, Dt) => {
|
|
|
65
65
|
be.prototype.isEqual = function(e, t) {
|
|
66
66
|
return e === t || e !== e && t !== t;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
It.exports = be;
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
// ../node_modules/map-or-similar/src/map-or-similar.js
|
|
72
|
-
var
|
|
73
|
-
|
|
72
|
+
var Wt = ne((zn, Dt) => {
|
|
73
|
+
Dt.exports = function(e) {
|
|
74
74
|
if (typeof Map != "function" || e) {
|
|
75
75
|
var t = Bt();
|
|
76
76
|
return new t();
|
|
@@ -80,14 +80,14 @@ var Ht = ne((ea, Wt) => {
|
|
|
80
80
|
});
|
|
81
81
|
|
|
82
82
|
// ../node_modules/memoizerific/src/memoizerific.js
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
var t = new
|
|
83
|
+
var $t = ne((qn, Ft) => {
|
|
84
|
+
var Ht = Wt();
|
|
85
|
+
Ft.exports = function(e) {
|
|
86
|
+
var t = new Ht(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), a = [];
|
|
87
87
|
return function(n) {
|
|
88
|
-
var
|
|
89
|
-
var v = t, z,
|
|
90
|
-
if ((
|
|
88
|
+
var l = /* @__PURE__ */ r(function() {
|
|
89
|
+
var v = t, z, B, U = arguments.length - 1, J = Array(U + 1), F = !0, x;
|
|
90
|
+
if ((l.numArgs || l.numArgs === 0) && l.numArgs !== U + 1)
|
|
91
91
|
throw new Error("Memoizerific functions should always be called with the same number of arguments");
|
|
92
92
|
for (x = 0; x < U; x++) {
|
|
93
93
|
if (J[x] = {
|
|
@@ -97,49 +97,49 @@ var zt = ne((ta, $t) => {
|
|
|
97
97
|
v = v.get(arguments[x]);
|
|
98
98
|
continue;
|
|
99
99
|
}
|
|
100
|
-
F = !1, z = new
|
|
100
|
+
F = !1, z = new Ht(process.env.FORCE_SIMILAR_INSTEAD_OF_MAP === "true"), v.set(arguments[x], z), v = z;
|
|
101
101
|
}
|
|
102
|
-
return F && (v.has(arguments[U]) ?
|
|
102
|
+
return F && (v.has(arguments[U]) ? B = v.get(arguments[U]) : F = !1), F || (B = n.apply(null, arguments), v.set(arguments[U], B)), e >
|
|
103
103
|
0 && (J[U] = {
|
|
104
104
|
cacheItem: v,
|
|
105
105
|
arg: arguments[U]
|
|
106
|
-
}, F ?
|
|
106
|
+
}, F ? Br(a, J) : a.push(J), a.length > e && Dr(a.shift())), l.wasMemoized = F, l.numArgs = U + 1, B;
|
|
107
107
|
}, "memoizerific");
|
|
108
|
-
return
|
|
108
|
+
return l.limit = e, l.wasMemoized = !1, l.cache = t, l.lru = a, l;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
function
|
|
112
|
-
var a = e.length, n = t.length,
|
|
111
|
+
function Br(e, t) {
|
|
112
|
+
var a = e.length, n = t.length, l, v, z;
|
|
113
113
|
for (v = 0; v < a; v++) {
|
|
114
|
-
for (
|
|
115
|
-
if (!
|
|
116
|
-
|
|
114
|
+
for (l = !0, z = 0; z < n; z++)
|
|
115
|
+
if (!Wr(e[v][z].arg, t[z].arg)) {
|
|
116
|
+
l = !1;
|
|
117
117
|
break;
|
|
118
118
|
}
|
|
119
|
-
if (
|
|
119
|
+
if (l)
|
|
120
120
|
break;
|
|
121
121
|
}
|
|
122
122
|
e.push(e.splice(v, 1)[0]);
|
|
123
123
|
}
|
|
124
|
-
r(
|
|
125
|
-
function
|
|
126
|
-
var t = e.length, a = e[t - 1], n,
|
|
127
|
-
for (a.cacheItem.delete(a.arg),
|
|
124
|
+
r(Br, "moveToMostRecentLru");
|
|
125
|
+
function Dr(e) {
|
|
126
|
+
var t = e.length, a = e[t - 1], n, l;
|
|
127
|
+
for (a.cacheItem.delete(a.arg), l = t - 2; l >= 0 && (a = e[l], n = a.cacheItem.get(a.arg), !n || !n.size); l--)
|
|
128
128
|
a.cacheItem.delete(a.arg);
|
|
129
129
|
}
|
|
130
|
-
r(
|
|
131
|
-
function
|
|
130
|
+
r(Dr, "removeCachedResult");
|
|
131
|
+
function Wr(e, t) {
|
|
132
132
|
return e === t || e !== e && t !== t;
|
|
133
133
|
}
|
|
134
|
-
r(
|
|
134
|
+
r(Wr, "isEqual");
|
|
135
135
|
});
|
|
136
136
|
|
|
137
137
|
// ../node_modules/picoquery/lib/string-util.js
|
|
138
138
|
var Je = ne((Ke) => {
|
|
139
139
|
"use strict";
|
|
140
140
|
Object.defineProperty(Ke, "__esModule", { value: !0 });
|
|
141
|
-
Ke.encodeString =
|
|
142
|
-
var he = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()),
|
|
141
|
+
Ke.encodeString = Fr;
|
|
142
|
+
var he = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()), Hr = new Int8Array([
|
|
143
143
|
0,
|
|
144
144
|
0,
|
|
145
145
|
0,
|
|
@@ -269,42 +269,42 @@ var Je = ne((Ke) => {
|
|
|
269
269
|
1,
|
|
270
270
|
0
|
|
271
271
|
]);
|
|
272
|
-
function
|
|
272
|
+
function Fr(e) {
|
|
273
273
|
let t = e.length;
|
|
274
274
|
if (t === 0)
|
|
275
275
|
return "";
|
|
276
|
-
let a = "", n = 0,
|
|
277
|
-
e: for (;
|
|
278
|
-
let v = e.charCodeAt(
|
|
276
|
+
let a = "", n = 0, l = 0;
|
|
277
|
+
e: for (; l < t; l++) {
|
|
278
|
+
let v = e.charCodeAt(l);
|
|
279
279
|
for (; v < 128; ) {
|
|
280
|
-
if (
|
|
280
|
+
if (Hr[v] !== 1 && (n < l && (a += e.slice(n, l)), n = l + 1, a += he[v]), ++l === t)
|
|
281
281
|
break e;
|
|
282
|
-
v = e.charCodeAt(
|
|
282
|
+
v = e.charCodeAt(l);
|
|
283
283
|
}
|
|
284
|
-
if (n <
|
|
285
|
-
n =
|
|
284
|
+
if (n < l && (a += e.slice(n, l)), v < 2048) {
|
|
285
|
+
n = l + 1, a += he[192 | v >> 6] + he[128 | v & 63];
|
|
286
286
|
continue;
|
|
287
287
|
}
|
|
288
288
|
if (v < 55296 || v >= 57344) {
|
|
289
|
-
n =
|
|
289
|
+
n = l + 1, a += he[224 | v >> 12] + he[128 | v >> 6 & 63] + he[128 | v & 63];
|
|
290
290
|
continue;
|
|
291
291
|
}
|
|
292
|
-
if (++
|
|
292
|
+
if (++l, l >= t)
|
|
293
293
|
throw new Error("URI malformed");
|
|
294
|
-
let z = e.charCodeAt(
|
|
295
|
-
n =
|
|
294
|
+
let z = e.charCodeAt(l) & 1023;
|
|
295
|
+
n = l + 1, v = 65536 + ((v & 1023) << 10 | z), a += he[240 | v >> 18] + he[128 | v >> 12 & 63] + he[128 | v >> 6 & 63] + he[128 | v & 63];
|
|
296
296
|
}
|
|
297
297
|
return n === 0 ? e : n < t ? a + e.slice(n) : a;
|
|
298
298
|
}
|
|
299
|
-
r(
|
|
299
|
+
r(Fr, "encodeString");
|
|
300
300
|
});
|
|
301
301
|
|
|
302
302
|
// ../node_modules/picoquery/lib/shared.js
|
|
303
|
-
var
|
|
303
|
+
var Ne = ne((pe) => {
|
|
304
304
|
"use strict";
|
|
305
305
|
Object.defineProperty(pe, "__esModule", { value: !0 });
|
|
306
306
|
pe.defaultOptions = pe.defaultShouldSerializeObject = pe.defaultValueSerializer = void 0;
|
|
307
|
-
var Qe = Je(),
|
|
307
|
+
var Qe = Je(), $r = /* @__PURE__ */ r((e) => {
|
|
308
308
|
switch (typeof e) {
|
|
309
309
|
case "string":
|
|
310
310
|
return (0, Qe.encodeString)(e);
|
|
@@ -318,66 +318,66 @@ var _e = ne((pe) => {
|
|
|
318
318
|
}
|
|
319
319
|
return e instanceof Date ? (0, Qe.encodeString)(e.toISOString()) : "";
|
|
320
320
|
}, "defaultValueSerializer");
|
|
321
|
-
pe.defaultValueSerializer =
|
|
322
|
-
var
|
|
323
|
-
pe.defaultShouldSerializeObject =
|
|
324
|
-
var
|
|
321
|
+
pe.defaultValueSerializer = $r;
|
|
322
|
+
var zr = /* @__PURE__ */ r((e) => e instanceof Date, "defaultShouldSerializeObject");
|
|
323
|
+
pe.defaultShouldSerializeObject = zr;
|
|
324
|
+
var zt = /* @__PURE__ */ r((e) => e, "identityFunc");
|
|
325
325
|
pe.defaultOptions = {
|
|
326
326
|
nesting: !0,
|
|
327
327
|
nestingSyntax: "dot",
|
|
328
328
|
arrayRepeat: !1,
|
|
329
329
|
arrayRepeatSyntax: "repeat",
|
|
330
330
|
delimiter: 38,
|
|
331
|
-
valueDeserializer:
|
|
331
|
+
valueDeserializer: zt,
|
|
332
332
|
valueSerializer: pe.defaultValueSerializer,
|
|
333
|
-
keyDeserializer:
|
|
333
|
+
keyDeserializer: zt,
|
|
334
334
|
shouldSerializeObject: pe.defaultShouldSerializeObject
|
|
335
335
|
};
|
|
336
336
|
});
|
|
337
337
|
|
|
338
338
|
// ../node_modules/picoquery/lib/object-util.js
|
|
339
|
-
var Ye = ne((
|
|
339
|
+
var Ye = ne((Le) => {
|
|
340
340
|
"use strict";
|
|
341
|
-
Object.defineProperty(
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
var Pe =
|
|
345
|
-
function
|
|
341
|
+
Object.defineProperty(Le, "__esModule", { value: !0 });
|
|
342
|
+
Le.getDeepObject = Vr;
|
|
343
|
+
Le.stringifyObject = qt;
|
|
344
|
+
var Pe = Ne(), qr = Je();
|
|
345
|
+
function Ur(e) {
|
|
346
346
|
return e === "__proto__" || e === "constructor" || e === "prototype";
|
|
347
347
|
}
|
|
348
|
-
r(
|
|
349
|
-
function
|
|
350
|
-
if (
|
|
348
|
+
r(Ur, "isPrototypeKey");
|
|
349
|
+
function Vr(e, t, a, n, l) {
|
|
350
|
+
if (Ur(t))
|
|
351
351
|
return e;
|
|
352
352
|
let v = e[t];
|
|
353
|
-
return typeof v == "object" && v !== null ? v : !n && (
|
|
353
|
+
return typeof v == "object" && v !== null ? v : !n && (l || typeof a == "number" || typeof a == "string" && a * 0 === 0 && a.indexOf(".") ===
|
|
354
354
|
-1) ? e[t] = [] : e[t] = {};
|
|
355
355
|
}
|
|
356
|
-
r(
|
|
357
|
-
var
|
|
358
|
-
function
|
|
359
|
-
let { nestingSyntax: v = Pe.defaultOptions.nestingSyntax, arrayRepeat: z = Pe.defaultOptions.arrayRepeat, arrayRepeatSyntax:
|
|
356
|
+
r(Vr, "getDeepObject");
|
|
357
|
+
var Kr = 20, Jr = "[]", Qr = "[", Yr = "]", Xr = ".";
|
|
358
|
+
function qt(e, t, a = 0, n, l) {
|
|
359
|
+
let { nestingSyntax: v = Pe.defaultOptions.nestingSyntax, arrayRepeat: z = Pe.defaultOptions.arrayRepeat, arrayRepeatSyntax: B = Pe.defaultOptions.
|
|
360
360
|
arrayRepeatSyntax, nesting: U = Pe.defaultOptions.nesting, delimiter: J = Pe.defaultOptions.delimiter, valueSerializer: F = Pe.defaultOptions.
|
|
361
361
|
valueSerializer, shouldSerializeObject: x = Pe.defaultOptions.shouldSerializeObject } = t, O = typeof J == "number" ? String.fromCharCode(
|
|
362
|
-
J) : J,
|
|
363
|
-
if (a >
|
|
362
|
+
J) : J, j = l === !0 && z, E = v === "dot" || v === "js" && !l;
|
|
363
|
+
if (a > Kr)
|
|
364
364
|
return "";
|
|
365
|
-
let
|
|
365
|
+
let L = "", s = !0, i = !1;
|
|
366
366
|
for (let h in e) {
|
|
367
367
|
let c = e[h], y;
|
|
368
|
-
n ? (y = n,
|
|
369
|
-
"object" && c !== null && !x(c) ? (i = c.pop !== void 0, (U || z && i) && (
|
|
370
|
-
|
|
368
|
+
n ? (y = n, j ? B === "bracket" && (y += Jr) : E ? (y += Xr, y += h) : (y += Qr, y += h, y += Yr)) : y = h, s || (L += O), typeof c ==
|
|
369
|
+
"object" && c !== null && !x(c) ? (i = c.pop !== void 0, (U || z && i) && (L += qt(c, t, a + 1, y, i))) : (L += (0, qr.encodeString)(y),
|
|
370
|
+
L += "=", L += F(c, h)), s && (s = !1);
|
|
371
371
|
}
|
|
372
|
-
return
|
|
372
|
+
return L;
|
|
373
373
|
}
|
|
374
|
-
r(
|
|
374
|
+
r(qt, "stringifyObject");
|
|
375
375
|
});
|
|
376
376
|
|
|
377
377
|
// ../node_modules/fast-decode-uri-component/index.js
|
|
378
|
-
var
|
|
378
|
+
var Jt = ne((Gn, Kt) => {
|
|
379
379
|
"use strict";
|
|
380
|
-
var
|
|
380
|
+
var Ut = 12, Gr = 0, Xe = [
|
|
381
381
|
// The first part of the table maps bytes to character to a transition.
|
|
382
382
|
0,
|
|
383
383
|
0,
|
|
@@ -760,27 +760,27 @@ var Qt = ne((la, Jt) => {
|
|
|
760
760
|
7,
|
|
761
761
|
7
|
|
762
762
|
];
|
|
763
|
-
function
|
|
763
|
+
function Zr(e) {
|
|
764
764
|
var t = e.indexOf("%");
|
|
765
765
|
if (t === -1) return e;
|
|
766
|
-
for (var a = e.length, n = "",
|
|
767
|
-
var U =
|
|
768
|
-
if (
|
|
769
|
-
n += e.slice(
|
|
766
|
+
for (var a = e.length, n = "", l = 0, v = 0, z = t, B = Ut; t > -1 && t < a; ) {
|
|
767
|
+
var U = Vt(e[t + 1], 4), J = Vt(e[t + 2], 0), F = U | J, x = Xe[F];
|
|
768
|
+
if (B = Xe[256 + B + x], v = v << 6 | F & Xe[364 + x], B === Ut)
|
|
769
|
+
n += e.slice(l, z), n += v <= 65535 ? String.fromCharCode(v) : String.fromCharCode(
|
|
770
770
|
55232 + (v >> 10),
|
|
771
771
|
56320 + (v & 1023)
|
|
772
|
-
), v = 0,
|
|
772
|
+
), v = 0, l = t + 3, t = z = e.indexOf("%", l);
|
|
773
773
|
else {
|
|
774
|
-
if (
|
|
774
|
+
if (B === Gr)
|
|
775
775
|
return null;
|
|
776
776
|
if (t += 3, t < a && e.charCodeAt(t) === 37) continue;
|
|
777
777
|
return null;
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
return n + e.slice(
|
|
780
|
+
return n + e.slice(l);
|
|
781
781
|
}
|
|
782
|
-
r(
|
|
783
|
-
var
|
|
782
|
+
r(Zr, "decodeURIComponent");
|
|
783
|
+
var en = {
|
|
784
784
|
0: 0,
|
|
785
785
|
1: 1,
|
|
786
786
|
2: 2,
|
|
@@ -804,196 +804,172 @@ var Qt = ne((la, Jt) => {
|
|
|
804
804
|
f: 15,
|
|
805
805
|
F: 15
|
|
806
806
|
};
|
|
807
|
-
function
|
|
808
|
-
var a =
|
|
807
|
+
function Vt(e, t) {
|
|
808
|
+
var a = en[e];
|
|
809
809
|
return a === void 0 ? 255 : a << t;
|
|
810
810
|
}
|
|
811
|
-
r(
|
|
812
|
-
|
|
811
|
+
r(Vt, "hexCodeToInt");
|
|
812
|
+
Kt.exports = Zr;
|
|
813
813
|
});
|
|
814
814
|
|
|
815
815
|
// ../node_modules/picoquery/lib/parse.js
|
|
816
|
-
var
|
|
816
|
+
var Gt = ne((ye) => {
|
|
817
817
|
"use strict";
|
|
818
|
-
var
|
|
818
|
+
var tn = ye && ye.__importDefault || function(e) {
|
|
819
819
|
return e && e.__esModule ? e : { default: e };
|
|
820
820
|
};
|
|
821
821
|
Object.defineProperty(ye, "__esModule", { value: !0 });
|
|
822
822
|
ye.numberValueDeserializer = ye.numberKeyDeserializer = void 0;
|
|
823
|
-
ye.parse =
|
|
824
|
-
var
|
|
823
|
+
ye.parse = an;
|
|
824
|
+
var _e = Ye(), Oe = Ne(), Qt = tn(Jt()), rn = /* @__PURE__ */ r((e) => {
|
|
825
825
|
let t = Number(e);
|
|
826
826
|
return Number.isNaN(t) ? e : t;
|
|
827
827
|
}, "numberKeyDeserializer");
|
|
828
|
-
ye.numberKeyDeserializer =
|
|
829
|
-
var
|
|
828
|
+
ye.numberKeyDeserializer = rn;
|
|
829
|
+
var nn = /* @__PURE__ */ r((e) => {
|
|
830
830
|
let t = Number(e);
|
|
831
831
|
return Number.isNaN(t) ? e : t;
|
|
832
832
|
}, "numberValueDeserializer");
|
|
833
|
-
ye.numberValueDeserializer =
|
|
834
|
-
var
|
|
833
|
+
ye.numberValueDeserializer = nn;
|
|
834
|
+
var Yt = /\+/g, Xt = /* @__PURE__ */ r(function() {
|
|
835
835
|
}, "Empty");
|
|
836
|
-
|
|
837
|
-
function
|
|
836
|
+
Xt.prototype = /* @__PURE__ */ Object.create(null);
|
|
837
|
+
function Me(e, t, a, n, l) {
|
|
838
838
|
let v = e.substring(t, a);
|
|
839
|
-
return n && (v = v.replace(
|
|
839
|
+
return n && (v = v.replace(Yt, " ")), l && (v = (0, Qt.default)(v) || v), v;
|
|
840
840
|
}
|
|
841
|
-
r(
|
|
842
|
-
function
|
|
843
|
-
let { valueDeserializer: a = Oe.defaultOptions.valueDeserializer, keyDeserializer: n = Oe.defaultOptions.keyDeserializer, arrayRepeatSyntax:
|
|
844
|
-
defaultOptions.arrayRepeatSyntax, nesting: v = Oe.defaultOptions.nesting, arrayRepeat: z = Oe.defaultOptions.arrayRepeat, nestingSyntax:
|
|
845
|
-
defaultOptions.nestingSyntax, delimiter: U = Oe.defaultOptions.delimiter } = t ?? {}, J = typeof U == "string" ? U.charCodeAt(0) : U, F =
|
|
846
|
-
"js", x = new
|
|
841
|
+
r(Me, "computeKeySlice");
|
|
842
|
+
function an(e, t) {
|
|
843
|
+
let { valueDeserializer: a = Oe.defaultOptions.valueDeserializer, keyDeserializer: n = Oe.defaultOptions.keyDeserializer, arrayRepeatSyntax: l = Oe.
|
|
844
|
+
defaultOptions.arrayRepeatSyntax, nesting: v = Oe.defaultOptions.nesting, arrayRepeat: z = Oe.defaultOptions.arrayRepeat, nestingSyntax: B = Oe.
|
|
845
|
+
defaultOptions.nestingSyntax, delimiter: U = Oe.defaultOptions.delimiter } = t ?? {}, J = typeof U == "string" ? U.charCodeAt(0) : U, F = B ===
|
|
846
|
+
"js", x = new Xt();
|
|
847
847
|
if (typeof e != "string")
|
|
848
848
|
return x;
|
|
849
|
-
let O = e.length,
|
|
850
|
-
|
|
849
|
+
let O = e.length, j = "", E = -1, L = -1, s = -1, i = x, h, c = "", y = "", S = !1, N = !1, I = !1, W = !1, Y = !1, _ = !1, V = !1, $ = 0,
|
|
850
|
+
w = -1, P = -1, H = -1;
|
|
851
851
|
for (let o = 0; o < O + 1; o++) {
|
|
852
852
|
if ($ = o !== O ? e.charCodeAt(o) : J, $ === J) {
|
|
853
|
-
if (V =
|
|
854
|
-
i, h, c, F && Y, F &&
|
|
855
|
-
V && (
|
|
856
|
-
let
|
|
853
|
+
if (V = L > E, V || (L = o), s !== L - 1 && (y = Me(e, s + 1, w > -1 ? w : L, I, S), c = n(y), h !== void 0 && (i = (0, _e.getDeepObject)(
|
|
854
|
+
i, h, c, F && Y, F && _))), V || c !== "") {
|
|
855
|
+
V && (j = e.slice(L + 1, o), W && (j = j.replace(Yt, " ")), N && (j = (0, Qt.default)(j) || j));
|
|
856
|
+
let u = a(j, c);
|
|
857
857
|
if (z) {
|
|
858
858
|
let g = i[c];
|
|
859
|
-
g === void 0 ?
|
|
859
|
+
g === void 0 ? w > -1 ? i[c] = [u] : i[c] = u : g.pop ? g.push(u) : i[c] = [g, u];
|
|
860
860
|
} else
|
|
861
|
-
i[c] =
|
|
861
|
+
i[c] = u;
|
|
862
862
|
}
|
|
863
|
-
|
|
864
|
-
} else $ === 93 ? (z &&
|
|
865
|
-
I, S), c = n(y), h !== void 0 && (i = (0,
|
|
866
|
-
46 ? v && (
|
|
867
|
-
i, h, c, F)), h = c, I = !1, S = !1), Y = !0,
|
|
868
|
-
|
|
869
|
-
$ === 61 ?
|
|
863
|
+
j = "", E = o, L = o, S = !1, N = !1, I = !1, W = !1, Y = !1, _ = !1, w = -1, s = o, i = x, h = void 0, c = "";
|
|
864
|
+
} else $ === 93 ? (z && l === "bracket" && H === 91 && (w = P), v && (B === "index" || F) && L <= E && (s !== P && (y = Me(e, s + 1, o,
|
|
865
|
+
I, S), c = n(y), h !== void 0 && (i = (0, _e.getDeepObject)(i, h, c, void 0, F)), h = c, I = !1, S = !1), s = o, _ = !0, Y = !1)) : $ ===
|
|
866
|
+
46 ? v && (B === "dot" || F) && L <= E && (s !== P && (y = Me(e, s + 1, o, I, S), c = n(y), h !== void 0 && (i = (0, _e.getDeepObject)(
|
|
867
|
+
i, h, c, F)), h = c, I = !1, S = !1), Y = !0, _ = !1, s = o) : $ === 91 ? v && (B === "index" || F) && L <= E && (s !== P && (y = Me(e,
|
|
868
|
+
s + 1, o, I, S), c = n(y), F && h !== void 0 && (i = (0, _e.getDeepObject)(i, h, c, F)), h = c, I = !1, S = !1, Y = !1, _ = !0), s = o) :
|
|
869
|
+
$ === 61 ? L <= E ? L = o : N = !0 : $ === 43 ? L > E ? W = !0 : I = !0 : $ === 37 && (L > E ? N = !0 : S = !0);
|
|
870
870
|
P = o, H = $;
|
|
871
871
|
}
|
|
872
872
|
return x;
|
|
873
873
|
}
|
|
874
|
-
r(
|
|
874
|
+
r(an, "parse");
|
|
875
875
|
});
|
|
876
876
|
|
|
877
877
|
// ../node_modules/picoquery/lib/stringify.js
|
|
878
|
-
var
|
|
878
|
+
var Zt = ne((Ge) => {
|
|
879
879
|
"use strict";
|
|
880
880
|
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
881
|
-
Ge.stringify =
|
|
882
|
-
var
|
|
883
|
-
function
|
|
881
|
+
Ge.stringify = sn;
|
|
882
|
+
var on = Ye();
|
|
883
|
+
function sn(e, t) {
|
|
884
884
|
if (e === null || typeof e != "object")
|
|
885
885
|
return "";
|
|
886
886
|
let a = t ?? {};
|
|
887
|
-
return (0,
|
|
887
|
+
return (0, on.stringifyObject)(e, a);
|
|
888
888
|
}
|
|
889
|
-
r(
|
|
889
|
+
r(sn, "stringify");
|
|
890
890
|
});
|
|
891
891
|
|
|
892
892
|
// ../node_modules/picoquery/lib/main.js
|
|
893
|
-
var
|
|
893
|
+
var er = ne((fe) => {
|
|
894
894
|
"use strict";
|
|
895
|
-
var
|
|
895
|
+
var un = fe && fe.__createBinding || (Object.create ? function(e, t, a, n) {
|
|
896
896
|
n === void 0 && (n = a);
|
|
897
|
-
var
|
|
898
|
-
(!
|
|
897
|
+
var l = Object.getOwnPropertyDescriptor(t, a);
|
|
898
|
+
(!l || ("get" in l ? !t.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
899
899
|
return t[a];
|
|
900
|
-
}, "get") }), Object.defineProperty(e, n,
|
|
900
|
+
}, "get") }), Object.defineProperty(e, n, l);
|
|
901
901
|
} : function(e, t, a, n) {
|
|
902
902
|
n === void 0 && (n = a), e[n] = t[a];
|
|
903
|
-
}),
|
|
904
|
-
for (var a in e) a !== "default" && !Object.prototype.hasOwnProperty.call(t, a) &&
|
|
903
|
+
}), ln = fe && fe.__exportStar || function(e, t) {
|
|
904
|
+
for (var a in e) a !== "default" && !Object.prototype.hasOwnProperty.call(t, a) && un(t, e, a);
|
|
905
905
|
};
|
|
906
906
|
Object.defineProperty(fe, "__esModule", { value: !0 });
|
|
907
907
|
fe.stringify = fe.parse = void 0;
|
|
908
|
-
var
|
|
908
|
+
var cn = Gt();
|
|
909
909
|
Object.defineProperty(fe, "parse", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
910
|
-
return
|
|
910
|
+
return cn.parse;
|
|
911
911
|
}, "get") });
|
|
912
|
-
var
|
|
912
|
+
var fn = Zt();
|
|
913
913
|
Object.defineProperty(fe, "stringify", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
914
|
-
return
|
|
914
|
+
return fn.stringify;
|
|
915
915
|
}, "get") });
|
|
916
|
-
|
|
916
|
+
ln(Ne(), fe);
|
|
917
917
|
});
|
|
918
918
|
|
|
919
919
|
// ../node_modules/ts-dedent/dist/index.js
|
|
920
|
-
var
|
|
920
|
+
var rr = ne((Se) => {
|
|
921
921
|
"use strict";
|
|
922
922
|
Object.defineProperty(Se, "__esModule", { value: !0 });
|
|
923
923
|
Se.dedent = void 0;
|
|
924
|
-
function
|
|
924
|
+
function tr(e) {
|
|
925
925
|
for (var t = [], a = 1; a < arguments.length; a++)
|
|
926
926
|
t[a - 1] = arguments[a];
|
|
927
927
|
var n = Array.from(typeof e == "string" ? [e] : e);
|
|
928
928
|
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
929
|
-
var
|
|
929
|
+
var l = n.reduce(function(B, U) {
|
|
930
930
|
var J = U.match(/\n([\t ]+|(?!\s).)/g);
|
|
931
|
-
return J ?
|
|
931
|
+
return J ? B.concat(J.map(function(F) {
|
|
932
932
|
var x, O;
|
|
933
933
|
return (O = (x = F.match(/[\t ]/g)) === null || x === void 0 ? void 0 : x.length) !== null && O !== void 0 ? O : 0;
|
|
934
|
-
})) :
|
|
934
|
+
})) : B;
|
|
935
935
|
}, []);
|
|
936
|
-
if (
|
|
936
|
+
if (l.length) {
|
|
937
937
|
var v = new RegExp(`
|
|
938
|
-
[ ]{` + Math.min.apply(Math,
|
|
939
|
-
n = n.map(function(
|
|
940
|
-
return
|
|
938
|
+
[ ]{` + Math.min.apply(Math, l) + "}", "g");
|
|
939
|
+
n = n.map(function(B) {
|
|
940
|
+
return B.replace(v, `
|
|
941
941
|
`);
|
|
942
942
|
});
|
|
943
943
|
}
|
|
944
944
|
n[0] = n[0].replace(/^\r?\n/, "");
|
|
945
945
|
var z = n[0];
|
|
946
|
-
return t.forEach(function(
|
|
947
|
-
var J = z.match(/(?:^|\n)( *)$/), F = J ? J[1] : "", x =
|
|
948
|
-
typeof
|
|
949
|
-
`) && (x = String(
|
|
950
|
-
`).map(function(O,
|
|
951
|
-
return
|
|
946
|
+
return t.forEach(function(B, U) {
|
|
947
|
+
var J = z.match(/(?:^|\n)( *)$/), F = J ? J[1] : "", x = B;
|
|
948
|
+
typeof B == "string" && B.includes(`
|
|
949
|
+
`) && (x = String(B).split(`
|
|
950
|
+
`).map(function(O, j) {
|
|
951
|
+
return j === 0 ? O : "" + F + O;
|
|
952
952
|
}).join(`
|
|
953
953
|
`)), z += x + n[U + 1];
|
|
954
954
|
}), z;
|
|
955
955
|
}
|
|
956
|
-
r(
|
|
957
|
-
Se.dedent =
|
|
958
|
-
Se.default =
|
|
959
|
-
});
|
|
960
|
-
|
|
961
|
-
// ../node_modules/@storybook/global/dist/index.js
|
|
962
|
-
var fr = ne((Oa, cr) => {
|
|
963
|
-
"use strict";
|
|
964
|
-
var at = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, jn = Object.getOwnPropertyNames, Sn = Object.prototype.hasOwnProperty,
|
|
965
|
-
Rn = /* @__PURE__ */ r((e, t) => {
|
|
966
|
-
for (var a in t)
|
|
967
|
-
at(e, a, { get: t[a], enumerable: !0 });
|
|
968
|
-
}, "__export"), An = /* @__PURE__ */ r((e, t, a, n) => {
|
|
969
|
-
if (t && typeof t == "object" || typeof t == "function")
|
|
970
|
-
for (let s of jn(t))
|
|
971
|
-
!Sn.call(e, s) && s !== a && at(e, s, { get: /* @__PURE__ */ r(() => t[s], "get"), enumerable: !(n = wn(t, s)) || n.enumerable });
|
|
972
|
-
return e;
|
|
973
|
-
}, "__copyProps"), En = /* @__PURE__ */ r((e) => An(at({}, "__esModule", { value: !0 }), e), "__toCommonJS"), lr = {};
|
|
974
|
-
Rn(lr, {
|
|
975
|
-
global: /* @__PURE__ */ r(() => Cn, "global")
|
|
976
|
-
});
|
|
977
|
-
cr.exports = En(lr);
|
|
978
|
-
var Cn = (() => {
|
|
979
|
-
let e;
|
|
980
|
-
return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof global < "u" ? e = global : typeof self < "u" ?
|
|
981
|
-
e = self : e = {}, e;
|
|
982
|
-
})();
|
|
956
|
+
r(tr, "dedent");
|
|
957
|
+
Se.dedent = tr;
|
|
958
|
+
Se.default = tr;
|
|
983
959
|
});
|
|
984
960
|
|
|
985
961
|
// ../node_modules/history/umd/history.production.min.js
|
|
986
|
-
var
|
|
962
|
+
var lr = ne((Ie, ur) => {
|
|
987
963
|
(function(e, t) {
|
|
988
|
-
typeof Ie == "object" && typeof
|
|
964
|
+
typeof Ie == "object" && typeof ur < "u" ? t(Ie) : typeof define == "function" && define.amd ? define(["exports"], t) : t((e = typeof globalThis <
|
|
989
965
|
"u" ? globalThis : e || self).HistoryLibrary = {});
|
|
990
966
|
})(Ie, function(e) {
|
|
991
967
|
"use strict";
|
|
992
968
|
function t() {
|
|
993
969
|
return (t = Object.assign || function(x) {
|
|
994
970
|
for (var O = 1; O < arguments.length; O++) {
|
|
995
|
-
var
|
|
996
|
-
for (var E in
|
|
971
|
+
var j = arguments[O];
|
|
972
|
+
for (var E in j) Object.prototype.hasOwnProperty.call(j, E) && (x[E] = j[E]);
|
|
997
973
|
}
|
|
998
974
|
return x;
|
|
999
975
|
}).apply(this, arguments);
|
|
@@ -1001,46 +977,46 @@ var pr = ne((Ie, hr) => {
|
|
|
1001
977
|
r(t, "n");
|
|
1002
978
|
var a;
|
|
1003
979
|
e.Action = void 0, (a = e.Action || (e.Action = {})).Pop = "POP", a.Push = "PUSH", a.Replace = "REPLACE";
|
|
1004
|
-
var n = "beforeunload",
|
|
1005
|
-
function v(x, O,
|
|
1006
|
-
return Math.min(Math.max(x, O),
|
|
980
|
+
var n = "beforeunload", l = "popstate";
|
|
981
|
+
function v(x, O, j) {
|
|
982
|
+
return Math.min(Math.max(x, O), j);
|
|
1007
983
|
}
|
|
1008
984
|
r(v, "a");
|
|
1009
985
|
function z(x) {
|
|
1010
986
|
x.preventDefault(), x.returnValue = "";
|
|
1011
987
|
}
|
|
1012
988
|
r(z, "i");
|
|
1013
|
-
function
|
|
989
|
+
function B() {
|
|
1014
990
|
var x = [];
|
|
1015
991
|
return { get length() {
|
|
1016
992
|
return x.length;
|
|
1017
993
|
}, push: /* @__PURE__ */ r(function(O) {
|
|
1018
994
|
return x.push(O), function() {
|
|
1019
|
-
x = x.filter(function(
|
|
1020
|
-
return
|
|
995
|
+
x = x.filter(function(j) {
|
|
996
|
+
return j !== O;
|
|
1021
997
|
});
|
|
1022
998
|
};
|
|
1023
999
|
}, "push"), call: /* @__PURE__ */ r(function(O) {
|
|
1024
|
-
x.forEach(function(
|
|
1025
|
-
return
|
|
1000
|
+
x.forEach(function(j) {
|
|
1001
|
+
return j && j(O);
|
|
1026
1002
|
});
|
|
1027
1003
|
}, "call") };
|
|
1028
1004
|
}
|
|
1029
|
-
r(
|
|
1005
|
+
r(B, "c");
|
|
1030
1006
|
function U() {
|
|
1031
1007
|
return Math.random().toString(36).substr(2, 8);
|
|
1032
1008
|
}
|
|
1033
1009
|
r(U, "u");
|
|
1034
1010
|
function J(x) {
|
|
1035
|
-
var O = x.pathname,
|
|
1036
|
-
return
|
|
1011
|
+
var O = x.pathname, j = O === void 0 ? "/" : O, E = x.search, L = E === void 0 ? "" : E, s = x.hash, i = s === void 0 ? "" : s;
|
|
1012
|
+
return L && L !== "?" && (j += L.charAt(0) === "?" ? L : "?" + L), i && i !== "#" && (j += i.charAt(0) === "#" ? i : "#" + i), j;
|
|
1037
1013
|
}
|
|
1038
1014
|
r(J, "l");
|
|
1039
1015
|
function F(x) {
|
|
1040
1016
|
var O = {};
|
|
1041
1017
|
if (x) {
|
|
1042
|
-
var
|
|
1043
|
-
|
|
1018
|
+
var j = x.indexOf("#");
|
|
1019
|
+
j >= 0 && (O.hash = x.substr(j), x = x.substr(0, j));
|
|
1044
1020
|
var E = x.indexOf("?");
|
|
1045
1021
|
E >= 0 && (O.search = x.substr(E), x = x.substr(0, E)), x && (O.pathname = x);
|
|
1046
1022
|
}
|
|
@@ -1048,124 +1024,124 @@ var pr = ne((Ie, hr) => {
|
|
|
1048
1024
|
}
|
|
1049
1025
|
r(F, "f"), e.createBrowserHistory = function(x) {
|
|
1050
1026
|
x === void 0 && (x = {});
|
|
1051
|
-
var O = x.window,
|
|
1052
|
-
function
|
|
1053
|
-
var
|
|
1054
|
-
return [
|
|
1055
|
-
}
|
|
1056
|
-
r(
|
|
1057
|
-
var
|
|
1058
|
-
|
|
1059
|
-
if (
|
|
1027
|
+
var O = x.window, j = O === void 0 ? document.defaultView : O, E = j.history;
|
|
1028
|
+
function L() {
|
|
1029
|
+
var w = j.location, P = w.pathname, H = w.search, o = w.hash, u = E.state || {};
|
|
1030
|
+
return [u.idx, { pathname: P, search: H, hash: o, state: u.usr || null, key: u.key || "default" }];
|
|
1031
|
+
}
|
|
1032
|
+
r(L, "p");
|
|
1033
|
+
var s = null;
|
|
1034
|
+
j.addEventListener(l, function() {
|
|
1035
|
+
if (s) N.call(s), s = null;
|
|
1060
1036
|
else {
|
|
1061
|
-
var
|
|
1062
|
-
if (
|
|
1037
|
+
var w = e.Action.Pop, P = L(), H = P[0], o = P[1];
|
|
1038
|
+
if (N.length) {
|
|
1063
1039
|
if (H != null) {
|
|
1064
|
-
var
|
|
1065
|
-
|
|
1066
|
-
$(-1 *
|
|
1067
|
-
}, "retry") }, $(
|
|
1040
|
+
var u = c - H;
|
|
1041
|
+
u && (s = { action: w, location: o, retry: /* @__PURE__ */ r(function() {
|
|
1042
|
+
$(-1 * u);
|
|
1043
|
+
}, "retry") }, $(u));
|
|
1068
1044
|
}
|
|
1069
|
-
} else V(
|
|
1045
|
+
} else V(w);
|
|
1070
1046
|
}
|
|
1071
1047
|
});
|
|
1072
|
-
var i = e.Action.Pop, h =
|
|
1073
|
-
function I(
|
|
1074
|
-
return typeof
|
|
1048
|
+
var i = e.Action.Pop, h = L(), c = h[0], y = h[1], S = B(), N = B();
|
|
1049
|
+
function I(w) {
|
|
1050
|
+
return typeof w == "string" ? w : J(w);
|
|
1075
1051
|
}
|
|
1076
1052
|
r(I, "P");
|
|
1077
|
-
function W(
|
|
1078
|
-
return P === void 0 && (P = null), t({ pathname: y.pathname, hash: "", search: "" }, typeof
|
|
1053
|
+
function W(w, P) {
|
|
1054
|
+
return P === void 0 && (P = null), t({ pathname: y.pathname, hash: "", search: "" }, typeof w == "string" ? F(w) : w, { state: P, key: U() });
|
|
1079
1055
|
}
|
|
1080
1056
|
r(W, "k");
|
|
1081
|
-
function Y(
|
|
1082
|
-
return [{ usr:
|
|
1057
|
+
function Y(w, P) {
|
|
1058
|
+
return [{ usr: w.state, key: w.key, idx: P }, I(w)];
|
|
1083
1059
|
}
|
|
1084
1060
|
r(Y, "x");
|
|
1085
|
-
function
|
|
1086
|
-
return !
|
|
1061
|
+
function _(w, P, H) {
|
|
1062
|
+
return !N.length || (N.call({ action: w, location: P, retry: H }), !1);
|
|
1087
1063
|
}
|
|
1088
|
-
r(
|
|
1089
|
-
function V(
|
|
1090
|
-
i =
|
|
1091
|
-
var P =
|
|
1064
|
+
r(_, "w");
|
|
1065
|
+
function V(w) {
|
|
1066
|
+
i = w;
|
|
1067
|
+
var P = L();
|
|
1092
1068
|
c = P[0], y = P[1], S.call({ action: i, location: y });
|
|
1093
1069
|
}
|
|
1094
1070
|
r(V, "E");
|
|
1095
|
-
function $(
|
|
1096
|
-
E.go(
|
|
1071
|
+
function $(w) {
|
|
1072
|
+
E.go(w);
|
|
1097
1073
|
}
|
|
1098
1074
|
return r($, "H"), c == null && (c = 0, E.replaceState(t({}, E.state, { idx: c }), "")), { get action() {
|
|
1099
1075
|
return i;
|
|
1100
1076
|
}, get location() {
|
|
1101
1077
|
return y;
|
|
1102
|
-
}, createHref: I, push: /* @__PURE__ */ r(function
|
|
1103
|
-
var o = e.Action.Push,
|
|
1104
|
-
if (
|
|
1105
|
-
|
|
1078
|
+
}, createHref: I, push: /* @__PURE__ */ r(function w(P, H) {
|
|
1079
|
+
var o = e.Action.Push, u = W(P, H);
|
|
1080
|
+
if (_(o, u, function() {
|
|
1081
|
+
w(P, H);
|
|
1106
1082
|
})) {
|
|
1107
|
-
var g = Y(
|
|
1083
|
+
var g = Y(u, c + 1), d = g[0], m = g[1];
|
|
1108
1084
|
try {
|
|
1109
1085
|
E.pushState(d, "", m);
|
|
1110
1086
|
} catch {
|
|
1111
|
-
|
|
1087
|
+
j.location.assign(m);
|
|
1112
1088
|
}
|
|
1113
1089
|
V(o);
|
|
1114
1090
|
}
|
|
1115
|
-
}, "n"), replace: /* @__PURE__ */ r(function
|
|
1116
|
-
var o = e.Action.Replace,
|
|
1117
|
-
if (
|
|
1118
|
-
|
|
1091
|
+
}, "n"), replace: /* @__PURE__ */ r(function w(P, H) {
|
|
1092
|
+
var o = e.Action.Replace, u = W(P, H);
|
|
1093
|
+
if (_(o, u, function() {
|
|
1094
|
+
w(P, H);
|
|
1119
1095
|
})) {
|
|
1120
|
-
var g = Y(
|
|
1096
|
+
var g = Y(u, c), d = g[0], m = g[1];
|
|
1121
1097
|
E.replaceState(d, "", m), V(o);
|
|
1122
1098
|
}
|
|
1123
1099
|
}, "n"), go: $, back: /* @__PURE__ */ r(function() {
|
|
1124
1100
|
$(-1);
|
|
1125
1101
|
}, "back"), forward: /* @__PURE__ */ r(function() {
|
|
1126
1102
|
$(1);
|
|
1127
|
-
}, "forward"), listen: /* @__PURE__ */ r(function(
|
|
1128
|
-
return S.push(
|
|
1129
|
-
}, "listen"), block: /* @__PURE__ */ r(function(
|
|
1130
|
-
var P =
|
|
1131
|
-
return
|
|
1132
|
-
P(),
|
|
1103
|
+
}, "forward"), listen: /* @__PURE__ */ r(function(w) {
|
|
1104
|
+
return S.push(w);
|
|
1105
|
+
}, "listen"), block: /* @__PURE__ */ r(function(w) {
|
|
1106
|
+
var P = N.push(w);
|
|
1107
|
+
return N.length === 1 && j.addEventListener(n, z), function() {
|
|
1108
|
+
P(), N.length || j.removeEventListener(n, z);
|
|
1133
1109
|
};
|
|
1134
1110
|
}, "block") };
|
|
1135
1111
|
}, e.createHashHistory = function(x) {
|
|
1136
1112
|
x === void 0 && (x = {});
|
|
1137
|
-
var O = x.window,
|
|
1138
|
-
function
|
|
1139
|
-
var P = F(
|
|
1140
|
-
m = d === void 0 ? "" : d,
|
|
1141
|
-
return [
|
|
1142
|
-
}
|
|
1143
|
-
r(
|
|
1144
|
-
var
|
|
1113
|
+
var O = x.window, j = O === void 0 ? document.defaultView : O, E = j.history;
|
|
1114
|
+
function L() {
|
|
1115
|
+
var P = F(j.location.hash.substr(1)), H = P.pathname, o = H === void 0 ? "/" : H, u = P.search, g = u === void 0 ? "" : u, d = P.hash,
|
|
1116
|
+
m = d === void 0 ? "" : d, T = E.state || {};
|
|
1117
|
+
return [T.idx, { pathname: o, search: g, hash: m, state: T.usr || null, key: T.key || "default" }];
|
|
1118
|
+
}
|
|
1119
|
+
r(L, "p");
|
|
1120
|
+
var s = null;
|
|
1145
1121
|
function i() {
|
|
1146
|
-
if (
|
|
1122
|
+
if (s) I.call(s), s = null;
|
|
1147
1123
|
else {
|
|
1148
|
-
var P = e.Action.Pop, H =
|
|
1124
|
+
var P = e.Action.Pop, H = L(), o = H[0], u = H[1];
|
|
1149
1125
|
if (I.length) {
|
|
1150
1126
|
if (o != null) {
|
|
1151
1127
|
var g = y - o;
|
|
1152
|
-
g && (
|
|
1153
|
-
|
|
1154
|
-
}, "retry") },
|
|
1128
|
+
g && (s = { action: P, location: u, retry: /* @__PURE__ */ r(function() {
|
|
1129
|
+
w(-1 * g);
|
|
1130
|
+
}, "retry") }, w(g));
|
|
1155
1131
|
}
|
|
1156
1132
|
} else $(P);
|
|
1157
1133
|
}
|
|
1158
1134
|
}
|
|
1159
|
-
r(i, "d"),
|
|
1160
|
-
J(
|
|
1135
|
+
r(i, "d"), j.addEventListener(l, i), j.addEventListener("hashchange", function() {
|
|
1136
|
+
J(L()[1]) !== J(S) && i();
|
|
1161
1137
|
});
|
|
1162
|
-
var h = e.Action.Pop, c =
|
|
1138
|
+
var h = e.Action.Pop, c = L(), y = c[0], S = c[1], N = B(), I = B();
|
|
1163
1139
|
function W(P) {
|
|
1164
1140
|
return function() {
|
|
1165
1141
|
var H = document.querySelector("base"), o = "";
|
|
1166
1142
|
if (H && H.getAttribute("href")) {
|
|
1167
|
-
var
|
|
1168
|
-
o = g === -1 ?
|
|
1143
|
+
var u = j.location.href, g = u.indexOf("#");
|
|
1144
|
+
o = g === -1 ? u : u.slice(0, g);
|
|
1169
1145
|
}
|
|
1170
1146
|
return o;
|
|
1171
1147
|
}() + "#" + (typeof P == "string" ? P : J(P));
|
|
@@ -1175,82 +1151,82 @@ var pr = ne((Ie, hr) => {
|
|
|
1175
1151
|
return H === void 0 && (H = null), t({ pathname: S.pathname, hash: "", search: "" }, typeof P == "string" ? F(P) : P, { state: H, key: U() });
|
|
1176
1152
|
}
|
|
1177
1153
|
r(Y, "x");
|
|
1178
|
-
function
|
|
1154
|
+
function _(P, H) {
|
|
1179
1155
|
return [{ usr: P.state, key: P.key, idx: H }, W(P)];
|
|
1180
1156
|
}
|
|
1181
|
-
r(
|
|
1157
|
+
r(_, "w");
|
|
1182
1158
|
function V(P, H, o) {
|
|
1183
1159
|
return !I.length || (I.call({ action: P, location: H, retry: o }), !1);
|
|
1184
1160
|
}
|
|
1185
1161
|
r(V, "E");
|
|
1186
1162
|
function $(P) {
|
|
1187
1163
|
h = P;
|
|
1188
|
-
var H =
|
|
1189
|
-
y = H[0], S = H[1],
|
|
1164
|
+
var H = L();
|
|
1165
|
+
y = H[0], S = H[1], N.call({ action: h, location: S });
|
|
1190
1166
|
}
|
|
1191
1167
|
r($, "H");
|
|
1192
|
-
function
|
|
1168
|
+
function w(P) {
|
|
1193
1169
|
E.go(P);
|
|
1194
1170
|
}
|
|
1195
|
-
return r(
|
|
1171
|
+
return r(w, "L"), y == null && (y = 0, E.replaceState(t({}, E.state, { idx: y }), "")), { get action() {
|
|
1196
1172
|
return h;
|
|
1197
1173
|
}, get location() {
|
|
1198
1174
|
return S;
|
|
1199
1175
|
}, createHref: W, push: /* @__PURE__ */ r(function P(H, o) {
|
|
1200
|
-
var
|
|
1201
|
-
if (V(
|
|
1176
|
+
var u = e.Action.Push, g = Y(H, o);
|
|
1177
|
+
if (V(u, g, function() {
|
|
1202
1178
|
P(H, o);
|
|
1203
1179
|
})) {
|
|
1204
|
-
var d =
|
|
1180
|
+
var d = _(g, y + 1), m = d[0], T = d[1];
|
|
1205
1181
|
try {
|
|
1206
|
-
E.pushState(m, "",
|
|
1182
|
+
E.pushState(m, "", T);
|
|
1207
1183
|
} catch {
|
|
1208
|
-
|
|
1184
|
+
j.location.assign(T);
|
|
1209
1185
|
}
|
|
1210
|
-
$(
|
|
1186
|
+
$(u);
|
|
1211
1187
|
}
|
|
1212
1188
|
}, "n"), replace: /* @__PURE__ */ r(function P(H, o) {
|
|
1213
|
-
var
|
|
1214
|
-
if (V(
|
|
1189
|
+
var u = e.Action.Replace, g = Y(H, o);
|
|
1190
|
+
if (V(u, g, function() {
|
|
1215
1191
|
P(H, o);
|
|
1216
1192
|
})) {
|
|
1217
|
-
var d =
|
|
1218
|
-
E.replaceState(m, "",
|
|
1193
|
+
var d = _(g, y), m = d[0], T = d[1];
|
|
1194
|
+
E.replaceState(m, "", T), $(u);
|
|
1219
1195
|
}
|
|
1220
|
-
}, "n"), go:
|
|
1221
|
-
|
|
1196
|
+
}, "n"), go: w, back: /* @__PURE__ */ r(function() {
|
|
1197
|
+
w(-1);
|
|
1222
1198
|
}, "back"), forward: /* @__PURE__ */ r(function() {
|
|
1223
|
-
|
|
1199
|
+
w(1);
|
|
1224
1200
|
}, "forward"), listen: /* @__PURE__ */ r(function(P) {
|
|
1225
|
-
return
|
|
1201
|
+
return N.push(P);
|
|
1226
1202
|
}, "listen"), block: /* @__PURE__ */ r(function(P) {
|
|
1227
1203
|
var H = I.push(P);
|
|
1228
|
-
return I.length === 1 &&
|
|
1229
|
-
H(), I.length ||
|
|
1204
|
+
return I.length === 1 && j.addEventListener(n, z), function() {
|
|
1205
|
+
H(), I.length || j.removeEventListener(n, z);
|
|
1230
1206
|
};
|
|
1231
1207
|
}, "block") };
|
|
1232
1208
|
}, e.createMemoryHistory = function(x) {
|
|
1233
1209
|
x === void 0 && (x = {});
|
|
1234
|
-
var O = x,
|
|
1235
|
-
return t({ pathname: "/", search: "", hash: "", state: null, key: U() }, typeof
|
|
1236
|
-
}), i = v(
|
|
1237
|
-
function _
|
|
1238
|
-
return V === void 0 && (V = null), t({ pathname: c.pathname, search: "", hash: "" }, typeof
|
|
1210
|
+
var O = x, j = O.initialEntries, E = j === void 0 ? ["/"] : j, L = O.initialIndex, s = E.map(function(_) {
|
|
1211
|
+
return t({ pathname: "/", search: "", hash: "", state: null, key: U() }, typeof _ == "string" ? F(_) : _);
|
|
1212
|
+
}), i = v(L ?? s.length - 1, 0, s.length - 1), h = e.Action.Pop, c = s[i], y = B(), S = B();
|
|
1213
|
+
function N(_, V) {
|
|
1214
|
+
return V === void 0 && (V = null), t({ pathname: c.pathname, search: "", hash: "" }, typeof _ == "string" ? F(_) : _, { state: V, key: U() });
|
|
1239
1215
|
}
|
|
1240
|
-
r(
|
|
1241
|
-
function I(
|
|
1242
|
-
return !S.length || (S.call({ action:
|
|
1216
|
+
r(N, "m");
|
|
1217
|
+
function I(_, V, $) {
|
|
1218
|
+
return !S.length || (S.call({ action: _, location: V, retry: $ }), !1);
|
|
1243
1219
|
}
|
|
1244
1220
|
r(I, "b");
|
|
1245
|
-
function W(
|
|
1246
|
-
h =
|
|
1221
|
+
function W(_, V) {
|
|
1222
|
+
h = _, c = V, y.call({ action: h, location: c });
|
|
1247
1223
|
}
|
|
1248
1224
|
r(W, "A");
|
|
1249
|
-
function Y(
|
|
1250
|
-
var V = v(i +
|
|
1251
|
-
I($,
|
|
1252
|
-
Y(
|
|
1253
|
-
}) && (i = V, W($,
|
|
1225
|
+
function Y(_) {
|
|
1226
|
+
var V = v(i + _, 0, s.length - 1), $ = e.Action.Pop, w = s[V];
|
|
1227
|
+
I($, w, function() {
|
|
1228
|
+
Y(_);
|
|
1229
|
+
}) && (i = V, W($, w));
|
|
1254
1230
|
}
|
|
1255
1231
|
return r(Y, "P"), { get index() {
|
|
1256
1232
|
return i;
|
|
@@ -1258,56 +1234,56 @@ var pr = ne((Ie, hr) => {
|
|
|
1258
1234
|
return h;
|
|
1259
1235
|
}, get location() {
|
|
1260
1236
|
return c;
|
|
1261
|
-
}, createHref: /* @__PURE__ */ r(function(
|
|
1262
|
-
return typeof
|
|
1263
|
-
}, "createHref"), push: /* @__PURE__ */ r(function
|
|
1264
|
-
var
|
|
1265
|
-
I(
|
|
1266
|
-
|
|
1267
|
-
}) && (i += 1,
|
|
1268
|
-
}, "n"), replace: /* @__PURE__ */ r(function
|
|
1269
|
-
var
|
|
1270
|
-
I(
|
|
1271
|
-
|
|
1272
|
-
}) && (
|
|
1237
|
+
}, createHref: /* @__PURE__ */ r(function(_) {
|
|
1238
|
+
return typeof _ == "string" ? _ : J(_);
|
|
1239
|
+
}, "createHref"), push: /* @__PURE__ */ r(function _(V, $) {
|
|
1240
|
+
var w = e.Action.Push, P = N(V, $);
|
|
1241
|
+
I(w, P, function() {
|
|
1242
|
+
_(V, $);
|
|
1243
|
+
}) && (i += 1, s.splice(i, s.length, P), W(w, P));
|
|
1244
|
+
}, "n"), replace: /* @__PURE__ */ r(function _(V, $) {
|
|
1245
|
+
var w = e.Action.Replace, P = N(V, $);
|
|
1246
|
+
I(w, P, function() {
|
|
1247
|
+
_(V, $);
|
|
1248
|
+
}) && (s[i] = P, W(w, P));
|
|
1273
1249
|
}, "n"), go: Y, back: /* @__PURE__ */ r(function() {
|
|
1274
1250
|
Y(-1);
|
|
1275
1251
|
}, "back"), forward: /* @__PURE__ */ r(function() {
|
|
1276
1252
|
Y(1);
|
|
1277
|
-
}, "forward"), listen: /* @__PURE__ */ r(function(
|
|
1278
|
-
return y.push(
|
|
1279
|
-
}, "listen"), block: /* @__PURE__ */ r(function(
|
|
1280
|
-
return S.push(
|
|
1253
|
+
}, "forward"), listen: /* @__PURE__ */ r(function(_) {
|
|
1254
|
+
return y.push(_);
|
|
1255
|
+
}, "listen"), block: /* @__PURE__ */ r(function(_) {
|
|
1256
|
+
return S.push(_);
|
|
1281
1257
|
}, "block") };
|
|
1282
1258
|
}, e.createPath = J, e.parsePath = F, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1283
1259
|
});
|
|
1284
1260
|
});
|
|
1285
1261
|
|
|
1286
1262
|
// ../node_modules/history/umd/history.development.js
|
|
1287
|
-
var
|
|
1263
|
+
var fr = ne((Be, cr) => {
|
|
1288
1264
|
(function(e, t) {
|
|
1289
|
-
typeof
|
|
1265
|
+
typeof Be == "object" && typeof cr < "u" ? t(Be) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis <
|
|
1290
1266
|
"u" ? globalThis : e || self, t(e.HistoryLibrary = {}));
|
|
1291
|
-
})(
|
|
1267
|
+
})(Be, function(e) {
|
|
1292
1268
|
"use strict";
|
|
1293
1269
|
function t() {
|
|
1294
|
-
return t = Object.assign || function(
|
|
1270
|
+
return t = Object.assign || function(s) {
|
|
1295
1271
|
for (var i = 1; i < arguments.length; i++) {
|
|
1296
1272
|
var h = arguments[i];
|
|
1297
1273
|
for (var c in h)
|
|
1298
|
-
Object.prototype.hasOwnProperty.call(h, c) && (
|
|
1274
|
+
Object.prototype.hasOwnProperty.call(h, c) && (s[c] = h[c]);
|
|
1299
1275
|
}
|
|
1300
|
-
return
|
|
1276
|
+
return s;
|
|
1301
1277
|
}, t.apply(this, arguments);
|
|
1302
1278
|
}
|
|
1303
|
-
r(t, "_extends"), e.Action = void 0, function(
|
|
1304
|
-
|
|
1279
|
+
r(t, "_extends"), e.Action = void 0, function(s) {
|
|
1280
|
+
s.Pop = "POP", s.Push = "PUSH", s.Replace = "REPLACE";
|
|
1305
1281
|
}(e.Action || (e.Action = {}));
|
|
1306
|
-
var a = /* @__PURE__ */ r(function(
|
|
1307
|
-
return Object.freeze(
|
|
1282
|
+
var a = /* @__PURE__ */ r(function(s) {
|
|
1283
|
+
return Object.freeze(s);
|
|
1308
1284
|
}, "readOnly");
|
|
1309
|
-
function n(
|
|
1310
|
-
if (!
|
|
1285
|
+
function n(s, i) {
|
|
1286
|
+
if (!s) {
|
|
1311
1287
|
typeof console < "u" && console.warn(i);
|
|
1312
1288
|
try {
|
|
1313
1289
|
throw new Error(i);
|
|
@@ -1316,10 +1292,10 @@ var mr = ne((De, dr) => {
|
|
|
1316
1292
|
}
|
|
1317
1293
|
}
|
|
1318
1294
|
r(n, "warning");
|
|
1319
|
-
var
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1322
|
-
var i =
|
|
1295
|
+
var l = "beforeunload", v = "hashchange", z = "popstate";
|
|
1296
|
+
function B(s) {
|
|
1297
|
+
s === void 0 && (s = {});
|
|
1298
|
+
var i = s, h = i.window, c = h === void 0 ? document.defaultView : h, y = c.history;
|
|
1323
1299
|
function S() {
|
|
1324
1300
|
var C = c.location, p = C.pathname, R = C.search, K = C.hash, q = y.state || {};
|
|
1325
1301
|
return [q.idx, a({
|
|
@@ -1331,22 +1307,22 @@ var mr = ne((De, dr) => {
|
|
|
1331
1307
|
})];
|
|
1332
1308
|
}
|
|
1333
1309
|
r(S, "getIndexAndLocation");
|
|
1334
|
-
var
|
|
1310
|
+
var N = null;
|
|
1335
1311
|
function I() {
|
|
1336
|
-
if (
|
|
1337
|
-
|
|
1312
|
+
if (N)
|
|
1313
|
+
w.call(N), N = null;
|
|
1338
1314
|
else {
|
|
1339
1315
|
var C = e.Action.Pop, p = S(), R = p[0], K = p[1];
|
|
1340
|
-
if (
|
|
1316
|
+
if (w.length)
|
|
1341
1317
|
if (R != null) {
|
|
1342
|
-
var q =
|
|
1343
|
-
q && (
|
|
1318
|
+
var q = _ - R;
|
|
1319
|
+
q && (N = {
|
|
1344
1320
|
action: C,
|
|
1345
1321
|
location: K,
|
|
1346
1322
|
retry: /* @__PURE__ */ r(function() {
|
|
1347
|
-
|
|
1323
|
+
T(q * -1);
|
|
1348
1324
|
}, "retry")
|
|
1349
|
-
},
|
|
1325
|
+
}, T(q));
|
|
1350
1326
|
} else
|
|
1351
1327
|
n(
|
|
1352
1328
|
!1,
|
|
@@ -1362,9 +1338,9 @@ y) to avoid this situation."
|
|
|
1362
1338
|
}
|
|
1363
1339
|
}
|
|
1364
1340
|
r(I, "handlePop"), c.addEventListener(z, I);
|
|
1365
|
-
var W = e.Action.Pop, Y = S(),
|
|
1366
|
-
|
|
1367
|
-
idx:
|
|
1341
|
+
var W = e.Action.Pop, Y = S(), _ = Y[0], V = Y[1], $ = O(), w = O();
|
|
1342
|
+
_ == null && (_ = 0, y.replaceState(t({}, y.state, {
|
|
1343
|
+
idx: _
|
|
1368
1344
|
}), ""));
|
|
1369
1345
|
function P(C) {
|
|
1370
1346
|
return typeof C == "string" ? C : E(C);
|
|
@@ -1375,9 +1351,9 @@ y) to avoid this situation."
|
|
|
1375
1351
|
pathname: V.pathname,
|
|
1376
1352
|
hash: "",
|
|
1377
1353
|
search: ""
|
|
1378
|
-
}, typeof C == "string" ?
|
|
1354
|
+
}, typeof C == "string" ? L(C) : C, {
|
|
1379
1355
|
state: p,
|
|
1380
|
-
key:
|
|
1356
|
+
key: j()
|
|
1381
1357
|
}));
|
|
1382
1358
|
}
|
|
1383
1359
|
r(H, "getNextLocation");
|
|
@@ -1389,18 +1365,18 @@ y) to avoid this situation."
|
|
|
1389
1365
|
}, P(C)];
|
|
1390
1366
|
}
|
|
1391
1367
|
r(o, "getHistoryStateAndUrl");
|
|
1392
|
-
function
|
|
1393
|
-
return !
|
|
1368
|
+
function u(C, p, R) {
|
|
1369
|
+
return !w.length || (w.call({
|
|
1394
1370
|
action: C,
|
|
1395
1371
|
location: p,
|
|
1396
1372
|
retry: R
|
|
1397
1373
|
}), !1);
|
|
1398
1374
|
}
|
|
1399
|
-
r(
|
|
1375
|
+
r(u, "allowTx");
|
|
1400
1376
|
function g(C) {
|
|
1401
1377
|
W = C;
|
|
1402
1378
|
var p = S();
|
|
1403
|
-
|
|
1379
|
+
_ = p[0], V = p[1], $.call({
|
|
1404
1380
|
action: W,
|
|
1405
1381
|
location: V
|
|
1406
1382
|
});
|
|
@@ -1411,8 +1387,8 @@ y) to avoid this situation."
|
|
|
1411
1387
|
function q() {
|
|
1412
1388
|
d(C, p);
|
|
1413
1389
|
}
|
|
1414
|
-
if (r(q, "retry"),
|
|
1415
|
-
var Z = o(K,
|
|
1390
|
+
if (r(q, "retry"), u(R, K, q)) {
|
|
1391
|
+
var Z = o(K, _ + 1), re = Z[0], ae = Z[1];
|
|
1416
1392
|
try {
|
|
1417
1393
|
y.pushState(re, "", ae);
|
|
1418
1394
|
} catch {
|
|
@@ -1427,17 +1403,17 @@ y) to avoid this situation."
|
|
|
1427
1403
|
function q() {
|
|
1428
1404
|
m(C, p);
|
|
1429
1405
|
}
|
|
1430
|
-
if (r(q, "retry"),
|
|
1431
|
-
var Z = o(K,
|
|
1406
|
+
if (r(q, "retry"), u(R, K, q)) {
|
|
1407
|
+
var Z = o(K, _), re = Z[0], ae = Z[1];
|
|
1432
1408
|
y.replaceState(re, "", ae), g(R);
|
|
1433
1409
|
}
|
|
1434
1410
|
}
|
|
1435
1411
|
r(m, "replace");
|
|
1436
|
-
function
|
|
1412
|
+
function T(C) {
|
|
1437
1413
|
y.go(C);
|
|
1438
1414
|
}
|
|
1439
|
-
r(
|
|
1440
|
-
var
|
|
1415
|
+
r(T, "go");
|
|
1416
|
+
var M = {
|
|
1441
1417
|
get action() {
|
|
1442
1418
|
return W;
|
|
1443
1419
|
},
|
|
@@ -1447,31 +1423,31 @@ y) to avoid this situation."
|
|
|
1447
1423
|
createHref: P,
|
|
1448
1424
|
push: d,
|
|
1449
1425
|
replace: m,
|
|
1450
|
-
go:
|
|
1426
|
+
go: T,
|
|
1451
1427
|
back: /* @__PURE__ */ r(function() {
|
|
1452
|
-
|
|
1428
|
+
T(-1);
|
|
1453
1429
|
}, "back"),
|
|
1454
1430
|
forward: /* @__PURE__ */ r(function() {
|
|
1455
|
-
|
|
1431
|
+
T(1);
|
|
1456
1432
|
}, "forward"),
|
|
1457
1433
|
listen: /* @__PURE__ */ r(function(p) {
|
|
1458
1434
|
return $.push(p);
|
|
1459
1435
|
}, "listen"),
|
|
1460
1436
|
block: /* @__PURE__ */ r(function(p) {
|
|
1461
|
-
var R =
|
|
1462
|
-
return
|
|
1463
|
-
R(),
|
|
1437
|
+
var R = w.push(p);
|
|
1438
|
+
return w.length === 1 && c.addEventListener(l, x), function() {
|
|
1439
|
+
R(), w.length || c.removeEventListener(l, x);
|
|
1464
1440
|
};
|
|
1465
1441
|
}, "block")
|
|
1466
1442
|
};
|
|
1467
|
-
return
|
|
1443
|
+
return M;
|
|
1468
1444
|
}
|
|
1469
|
-
r(
|
|
1470
|
-
function U(
|
|
1471
|
-
|
|
1472
|
-
var i =
|
|
1445
|
+
r(B, "createBrowserHistory");
|
|
1446
|
+
function U(s) {
|
|
1447
|
+
s === void 0 && (s = {});
|
|
1448
|
+
var i = s, h = i.window, c = h === void 0 ? document.defaultView : h, y = c.history;
|
|
1473
1449
|
function S() {
|
|
1474
|
-
var p =
|
|
1450
|
+
var p = L(c.location.hash.substr(1)), R = p.pathname, K = R === void 0 ? "/" : R, q = p.search, Z = q === void 0 ? "" : q, re = p.hash,
|
|
1475
1451
|
ae = re === void 0 ? "" : re, ie = y.state || {};
|
|
1476
1452
|
return [ie.idx, a({
|
|
1477
1453
|
pathname: K,
|
|
@@ -1482,22 +1458,22 @@ y) to avoid this situation."
|
|
|
1482
1458
|
})];
|
|
1483
1459
|
}
|
|
1484
1460
|
r(S, "getIndexAndLocation");
|
|
1485
|
-
var
|
|
1461
|
+
var N = null;
|
|
1486
1462
|
function I() {
|
|
1487
|
-
if (
|
|
1488
|
-
|
|
1463
|
+
if (N)
|
|
1464
|
+
w.call(N), N = null;
|
|
1489
1465
|
else {
|
|
1490
1466
|
var p = e.Action.Pop, R = S(), K = R[0], q = R[1];
|
|
1491
|
-
if (
|
|
1467
|
+
if (w.length)
|
|
1492
1468
|
if (K != null) {
|
|
1493
|
-
var Z =
|
|
1494
|
-
Z && (
|
|
1469
|
+
var Z = _ - K;
|
|
1470
|
+
Z && (N = {
|
|
1495
1471
|
action: p,
|
|
1496
1472
|
location: q,
|
|
1497
1473
|
retry: /* @__PURE__ */ r(function() {
|
|
1498
|
-
|
|
1474
|
+
M(Z * -1);
|
|
1499
1475
|
}, "retry")
|
|
1500
|
-
},
|
|
1476
|
+
}, M(Z));
|
|
1501
1477
|
} else
|
|
1502
1478
|
n(
|
|
1503
1479
|
!1,
|
|
@@ -1516,9 +1492,9 @@ y) to avoid this situation."
|
|
|
1516
1492
|
var p = S(), R = p[1];
|
|
1517
1493
|
E(R) !== E(V) && I();
|
|
1518
1494
|
});
|
|
1519
|
-
var W = e.Action.Pop, Y = S(),
|
|
1520
|
-
|
|
1521
|
-
idx:
|
|
1495
|
+
var W = e.Action.Pop, Y = S(), _ = Y[0], V = Y[1], $ = O(), w = O();
|
|
1496
|
+
_ == null && (_ = 0, y.replaceState(t({}, y.state, {
|
|
1497
|
+
idx: _
|
|
1522
1498
|
}), ""));
|
|
1523
1499
|
function P() {
|
|
1524
1500
|
var p = document.querySelector("base"), R = "";
|
|
@@ -1538,22 +1514,22 @@ y) to avoid this situation."
|
|
|
1538
1514
|
pathname: V.pathname,
|
|
1539
1515
|
hash: "",
|
|
1540
1516
|
search: ""
|
|
1541
|
-
}, typeof p == "string" ?
|
|
1517
|
+
}, typeof p == "string" ? L(p) : p, {
|
|
1542
1518
|
state: R,
|
|
1543
|
-
key:
|
|
1519
|
+
key: j()
|
|
1544
1520
|
}));
|
|
1545
1521
|
}
|
|
1546
1522
|
r(o, "getNextLocation");
|
|
1547
|
-
function
|
|
1523
|
+
function u(p, R) {
|
|
1548
1524
|
return [{
|
|
1549
1525
|
usr: p.state,
|
|
1550
1526
|
key: p.key,
|
|
1551
1527
|
idx: R
|
|
1552
1528
|
}, H(p)];
|
|
1553
1529
|
}
|
|
1554
|
-
r(
|
|
1530
|
+
r(u, "getHistoryStateAndUrl");
|
|
1555
1531
|
function g(p, R, K) {
|
|
1556
|
-
return !
|
|
1532
|
+
return !w.length || (w.call({
|
|
1557
1533
|
action: p,
|
|
1558
1534
|
location: R,
|
|
1559
1535
|
retry: K
|
|
@@ -1563,7 +1539,7 @@ y) to avoid this situation."
|
|
|
1563
1539
|
function d(p) {
|
|
1564
1540
|
W = p;
|
|
1565
1541
|
var R = S();
|
|
1566
|
-
|
|
1542
|
+
_ = R[0], V = R[1], $.call({
|
|
1567
1543
|
action: W,
|
|
1568
1544
|
location: V
|
|
1569
1545
|
});
|
|
@@ -1576,7 +1552,7 @@ y) to avoid this situation."
|
|
|
1576
1552
|
}
|
|
1577
1553
|
if (r(Z, "retry"), n(q.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.push(" + JSON.stringify(p) +
|
|
1578
1554
|
")"), g(K, q, Z)) {
|
|
1579
|
-
var re =
|
|
1555
|
+
var re = u(q, _ + 1), ae = re[0], ie = re[1];
|
|
1580
1556
|
try {
|
|
1581
1557
|
y.pushState(ae, "", ie);
|
|
1582
1558
|
} catch {
|
|
@@ -1586,22 +1562,22 @@ y) to avoid this situation."
|
|
|
1586
1562
|
}
|
|
1587
1563
|
}
|
|
1588
1564
|
r(m, "push");
|
|
1589
|
-
function
|
|
1565
|
+
function T(p, R) {
|
|
1590
1566
|
var K = e.Action.Replace, q = o(p, R);
|
|
1591
1567
|
function Z() {
|
|
1592
|
-
|
|
1568
|
+
T(p, R);
|
|
1593
1569
|
}
|
|
1594
1570
|
if (r(Z, "retry"), n(q.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(
|
|
1595
1571
|
p) + ")"), g(K, q, Z)) {
|
|
1596
|
-
var re =
|
|
1572
|
+
var re = u(q, _), ae = re[0], ie = re[1];
|
|
1597
1573
|
y.replaceState(ae, "", ie), d(K);
|
|
1598
1574
|
}
|
|
1599
1575
|
}
|
|
1600
|
-
r(
|
|
1601
|
-
function
|
|
1576
|
+
r(T, "replace");
|
|
1577
|
+
function M(p) {
|
|
1602
1578
|
y.go(p);
|
|
1603
1579
|
}
|
|
1604
|
-
r(
|
|
1580
|
+
r(M, "go");
|
|
1605
1581
|
var C = {
|
|
1606
1582
|
get action() {
|
|
1607
1583
|
return W;
|
|
@@ -1611,40 +1587,40 @@ y) to avoid this situation."
|
|
|
1611
1587
|
},
|
|
1612
1588
|
createHref: H,
|
|
1613
1589
|
push: m,
|
|
1614
|
-
replace:
|
|
1615
|
-
go:
|
|
1590
|
+
replace: T,
|
|
1591
|
+
go: M,
|
|
1616
1592
|
back: /* @__PURE__ */ r(function() {
|
|
1617
|
-
|
|
1593
|
+
M(-1);
|
|
1618
1594
|
}, "back"),
|
|
1619
1595
|
forward: /* @__PURE__ */ r(function() {
|
|
1620
|
-
|
|
1596
|
+
M(1);
|
|
1621
1597
|
}, "forward"),
|
|
1622
1598
|
listen: /* @__PURE__ */ r(function(R) {
|
|
1623
1599
|
return $.push(R);
|
|
1624
1600
|
}, "listen"),
|
|
1625
1601
|
block: /* @__PURE__ */ r(function(R) {
|
|
1626
|
-
var K =
|
|
1627
|
-
return
|
|
1628
|
-
K(),
|
|
1602
|
+
var K = w.push(R);
|
|
1603
|
+
return w.length === 1 && c.addEventListener(l, x), function() {
|
|
1604
|
+
K(), w.length || c.removeEventListener(l, x);
|
|
1629
1605
|
};
|
|
1630
1606
|
}, "block")
|
|
1631
1607
|
};
|
|
1632
1608
|
return C;
|
|
1633
1609
|
}
|
|
1634
1610
|
r(U, "createHashHistory");
|
|
1635
|
-
function J(
|
|
1636
|
-
|
|
1637
|
-
var i =
|
|
1611
|
+
function J(s) {
|
|
1612
|
+
s === void 0 && (s = {});
|
|
1613
|
+
var i = s, h = i.initialEntries, c = h === void 0 ? ["/"] : h, y = i.initialIndex, S = c.map(function(d) {
|
|
1638
1614
|
var m = a(t({
|
|
1639
1615
|
pathname: "/",
|
|
1640
1616
|
search: "",
|
|
1641
1617
|
hash: "",
|
|
1642
1618
|
state: null,
|
|
1643
|
-
key:
|
|
1644
|
-
}, typeof d == "string" ?
|
|
1619
|
+
key: j()
|
|
1620
|
+
}, typeof d == "string" ? L(d) : d));
|
|
1645
1621
|
return n(m.pathname.charAt(0) === "/", "Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid ent\
|
|
1646
1622
|
ry: " + JSON.stringify(d) + ")"), m;
|
|
1647
|
-
}),
|
|
1623
|
+
}), N = F(y ?? S.length - 1, 0, S.length - 1), I = e.Action.Pop, W = S[N], Y = O(), _ = O();
|
|
1648
1624
|
function V(d) {
|
|
1649
1625
|
return typeof d == "string" ? d : E(d);
|
|
1650
1626
|
}
|
|
@@ -1654,20 +1630,20 @@ ry: " + JSON.stringify(d) + ")"), m;
|
|
|
1654
1630
|
pathname: W.pathname,
|
|
1655
1631
|
search: "",
|
|
1656
1632
|
hash: ""
|
|
1657
|
-
}, typeof d == "string" ?
|
|
1633
|
+
}, typeof d == "string" ? L(d) : d, {
|
|
1658
1634
|
state: m,
|
|
1659
|
-
key:
|
|
1635
|
+
key: j()
|
|
1660
1636
|
}));
|
|
1661
1637
|
}
|
|
1662
1638
|
r($, "getNextLocation");
|
|
1663
|
-
function
|
|
1664
|
-
return !
|
|
1639
|
+
function w(d, m, T) {
|
|
1640
|
+
return !_.length || (_.call({
|
|
1665
1641
|
action: d,
|
|
1666
1642
|
location: m,
|
|
1667
|
-
retry:
|
|
1643
|
+
retry: T
|
|
1668
1644
|
}), !1);
|
|
1669
1645
|
}
|
|
1670
|
-
r(
|
|
1646
|
+
r(w, "allowTx");
|
|
1671
1647
|
function P(d, m) {
|
|
1672
1648
|
I = d, W = m, Y.call({
|
|
1673
1649
|
action: I,
|
|
@@ -1676,34 +1652,34 @@ ry: " + JSON.stringify(d) + ")"), m;
|
|
|
1676
1652
|
}
|
|
1677
1653
|
r(P, "applyTx");
|
|
1678
1654
|
function H(d, m) {
|
|
1679
|
-
var
|
|
1655
|
+
var T = e.Action.Push, M = $(d, m);
|
|
1680
1656
|
function C() {
|
|
1681
1657
|
H(d, m);
|
|
1682
1658
|
}
|
|
1683
1659
|
r(C, "retry"), n(W.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(d) + "\
|
|
1684
|
-
)"),
|
|
1660
|
+
)"), w(T, M, C) && (N += 1, S.splice(N, S.length, M), P(T, M));
|
|
1685
1661
|
}
|
|
1686
1662
|
r(H, "push");
|
|
1687
1663
|
function o(d, m) {
|
|
1688
|
-
var
|
|
1664
|
+
var T = e.Action.Replace, M = $(d, m);
|
|
1689
1665
|
function C() {
|
|
1690
1666
|
o(d, m);
|
|
1691
1667
|
}
|
|
1692
1668
|
r(C, "retry"), n(W.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(d) +
|
|
1693
|
-
")"),
|
|
1669
|
+
")"), w(T, M, C) && (S[N] = M, P(T, M));
|
|
1694
1670
|
}
|
|
1695
1671
|
r(o, "replace");
|
|
1696
|
-
function
|
|
1697
|
-
var m = F(
|
|
1672
|
+
function u(d) {
|
|
1673
|
+
var m = F(N + d, 0, S.length - 1), T = e.Action.Pop, M = S[m];
|
|
1698
1674
|
function C() {
|
|
1699
|
-
|
|
1675
|
+
u(d);
|
|
1700
1676
|
}
|
|
1701
|
-
r(C, "retry"),
|
|
1677
|
+
r(C, "retry"), w(T, M, C) && (N = m, P(T, M));
|
|
1702
1678
|
}
|
|
1703
|
-
r(
|
|
1679
|
+
r(u, "go");
|
|
1704
1680
|
var g = {
|
|
1705
1681
|
get index() {
|
|
1706
|
-
return
|
|
1682
|
+
return N;
|
|
1707
1683
|
},
|
|
1708
1684
|
get action() {
|
|
1709
1685
|
return I;
|
|
@@ -1714,112 +1690,112 @@ ry: " + JSON.stringify(d) + ")"), m;
|
|
|
1714
1690
|
createHref: V,
|
|
1715
1691
|
push: H,
|
|
1716
1692
|
replace: o,
|
|
1717
|
-
go:
|
|
1693
|
+
go: u,
|
|
1718
1694
|
back: /* @__PURE__ */ r(function() {
|
|
1719
|
-
|
|
1695
|
+
u(-1);
|
|
1720
1696
|
}, "back"),
|
|
1721
1697
|
forward: /* @__PURE__ */ r(function() {
|
|
1722
|
-
|
|
1698
|
+
u(1);
|
|
1723
1699
|
}, "forward"),
|
|
1724
1700
|
listen: /* @__PURE__ */ r(function(m) {
|
|
1725
1701
|
return Y.push(m);
|
|
1726
1702
|
}, "listen"),
|
|
1727
1703
|
block: /* @__PURE__ */ r(function(m) {
|
|
1728
|
-
return
|
|
1704
|
+
return _.push(m);
|
|
1729
1705
|
}, "block")
|
|
1730
1706
|
};
|
|
1731
1707
|
return g;
|
|
1732
1708
|
}
|
|
1733
1709
|
r(J, "createMemoryHistory");
|
|
1734
|
-
function F(
|
|
1735
|
-
return Math.min(Math.max(
|
|
1710
|
+
function F(s, i, h) {
|
|
1711
|
+
return Math.min(Math.max(s, i), h);
|
|
1736
1712
|
}
|
|
1737
1713
|
r(F, "clamp");
|
|
1738
|
-
function x(
|
|
1739
|
-
|
|
1714
|
+
function x(s) {
|
|
1715
|
+
s.preventDefault(), s.returnValue = "";
|
|
1740
1716
|
}
|
|
1741
1717
|
r(x, "promptBeforeUnload");
|
|
1742
1718
|
function O() {
|
|
1743
|
-
var
|
|
1719
|
+
var s = [];
|
|
1744
1720
|
return {
|
|
1745
1721
|
get length() {
|
|
1746
|
-
return
|
|
1722
|
+
return s.length;
|
|
1747
1723
|
},
|
|
1748
1724
|
push: /* @__PURE__ */ r(function(h) {
|
|
1749
|
-
return
|
|
1750
|
-
|
|
1725
|
+
return s.push(h), function() {
|
|
1726
|
+
s = s.filter(function(c) {
|
|
1751
1727
|
return c !== h;
|
|
1752
1728
|
});
|
|
1753
1729
|
};
|
|
1754
1730
|
}, "push"),
|
|
1755
1731
|
call: /* @__PURE__ */ r(function(h) {
|
|
1756
|
-
|
|
1732
|
+
s.forEach(function(c) {
|
|
1757
1733
|
return c && c(h);
|
|
1758
1734
|
});
|
|
1759
1735
|
}, "call")
|
|
1760
1736
|
};
|
|
1761
1737
|
}
|
|
1762
1738
|
r(O, "createEvents");
|
|
1763
|
-
function
|
|
1739
|
+
function j() {
|
|
1764
1740
|
return Math.random().toString(36).substr(2, 8);
|
|
1765
1741
|
}
|
|
1766
|
-
r(
|
|
1767
|
-
function E(
|
|
1768
|
-
var i =
|
|
1769
|
-
return y && y !== "?" && (h += y.charAt(0) === "?" ? y : "?" + y),
|
|
1742
|
+
r(j, "createKey");
|
|
1743
|
+
function E(s) {
|
|
1744
|
+
var i = s.pathname, h = i === void 0 ? "/" : i, c = s.search, y = c === void 0 ? "" : c, S = s.hash, N = S === void 0 ? "" : S;
|
|
1745
|
+
return y && y !== "?" && (h += y.charAt(0) === "?" ? y : "?" + y), N && N !== "#" && (h += N.charAt(0) === "#" ? N : "#" + N), h;
|
|
1770
1746
|
}
|
|
1771
1747
|
r(E, "createPath");
|
|
1772
|
-
function
|
|
1748
|
+
function L(s) {
|
|
1773
1749
|
var i = {};
|
|
1774
|
-
if (
|
|
1775
|
-
var h =
|
|
1776
|
-
h >= 0 && (i.hash =
|
|
1777
|
-
var c =
|
|
1778
|
-
c >= 0 && (i.search =
|
|
1750
|
+
if (s) {
|
|
1751
|
+
var h = s.indexOf("#");
|
|
1752
|
+
h >= 0 && (i.hash = s.substr(h), s = s.substr(0, h));
|
|
1753
|
+
var c = s.indexOf("?");
|
|
1754
|
+
c >= 0 && (i.search = s.substr(c), s = s.substr(0, c)), s && (i.pathname = s);
|
|
1779
1755
|
}
|
|
1780
1756
|
return i;
|
|
1781
1757
|
}
|
|
1782
|
-
r(
|
|
1758
|
+
r(L, "parsePath"), e.createBrowserHistory = B, e.createHashHistory = U, e.createMemoryHistory = J, e.createPath = E, e.parsePath = L, Object.
|
|
1783
1759
|
defineProperty(e, "__esModule", { value: !0 });
|
|
1784
1760
|
});
|
|
1785
1761
|
});
|
|
1786
1762
|
|
|
1787
1763
|
// ../node_modules/history/main.js
|
|
1788
|
-
var Ee = ne((
|
|
1764
|
+
var Ee = ne((pa, at) => {
|
|
1789
1765
|
"use strict";
|
|
1790
|
-
process.env.NODE_ENV === "production" ?
|
|
1766
|
+
process.env.NODE_ENV === "production" ? at.exports = lr() : at.exports = fr();
|
|
1791
1767
|
});
|
|
1792
1768
|
|
|
1793
1769
|
// ../node_modules/react-router/umd/react-router.production.min.js
|
|
1794
|
-
var
|
|
1770
|
+
var pr = ne((De, hr) => {
|
|
1795
1771
|
(function(e, t) {
|
|
1796
|
-
typeof
|
|
1772
|
+
typeof De == "object" && typeof hr < "u" ? t(De, require("react"), Ee()) : typeof define == "function" && define.amd ? define(["exports",
|
|
1797
1773
|
"react", "history"], t) : t((e = e || self).ReactRouter = {}, e.React, e.HistoryLibrary);
|
|
1798
|
-
})(
|
|
1774
|
+
})(De, function(e, t, a) {
|
|
1799
1775
|
"use strict";
|
|
1800
|
-
function n(o,
|
|
1801
|
-
if (!o) throw new Error(
|
|
1776
|
+
function n(o, u) {
|
|
1777
|
+
if (!o) throw new Error(u);
|
|
1802
1778
|
}
|
|
1803
1779
|
r(n, "a");
|
|
1804
|
-
let
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1780
|
+
let l = t.createContext(null), v = t.createContext(null), z = t.createContext({ outlet: null, matches: [] });
|
|
1781
|
+
function B(o) {
|
|
1782
|
+
return j();
|
|
1807
1783
|
}
|
|
1808
|
-
r(
|
|
1784
|
+
r(B, "s");
|
|
1809
1785
|
function U(o) {
|
|
1810
1786
|
n(!1);
|
|
1811
1787
|
}
|
|
1812
1788
|
r(U, "o");
|
|
1813
1789
|
function J(o) {
|
|
1814
|
-
let { basename:
|
|
1790
|
+
let { basename: u = "/", children: g = null, location: d, navigationType: m = a.Action.Pop, navigator: T, static: M = !1 } = o;
|
|
1815
1791
|
F() && n(!1);
|
|
1816
|
-
let C =
|
|
1792
|
+
let C = w(u), p = t.useMemo(() => ({ basename: C, navigator: T, static: M }), [C, T, M]);
|
|
1817
1793
|
typeof d == "string" && (d = a.parsePath(d));
|
|
1818
1794
|
let { pathname: R = "/", search: K = "", hash: q = "", state: Z = null, key: re = "default" } = d, ae = t.useMemo(() => {
|
|
1819
1795
|
let ie = V(R, C);
|
|
1820
1796
|
return ie == null ? null : { pathname: ie, search: K, hash: q, state: Z, key: re };
|
|
1821
1797
|
}, [C, R, K, q, Z, re]);
|
|
1822
|
-
return ae == null ? null : t.createElement(
|
|
1798
|
+
return ae == null ? null : t.createElement(l.Provider, { value: p }, t.createElement(v.Provider, { children: g, value: { location: ae,
|
|
1823
1799
|
navigationType: m } }));
|
|
1824
1800
|
}
|
|
1825
1801
|
r(J, "u");
|
|
@@ -1833,103 +1809,103 @@ var yr = ne((Be, gr) => {
|
|
|
1833
1809
|
r(x, "h");
|
|
1834
1810
|
function O() {
|
|
1835
1811
|
F() || n(!1);
|
|
1836
|
-
let { basename: o, navigator:
|
|
1837
|
-
(
|
|
1812
|
+
let { basename: o, navigator: u } = t.useContext(l), { matches: g } = t.useContext(z), { pathname: d } = x(), m = JSON.stringify(g.map(
|
|
1813
|
+
(M) => M.pathnameBase)), T = t.useRef(!1);
|
|
1838
1814
|
return t.useEffect(() => {
|
|
1839
|
-
|
|
1840
|
-
}), t.useCallback(function(
|
|
1841
|
-
if (C === void 0 && (C = {}), !
|
|
1842
|
-
if (typeof
|
|
1843
|
-
let p =
|
|
1844
|
-
o !== "/" && (p.pathname = $([o, p.pathname])), (C.replace ?
|
|
1845
|
-
}, [o,
|
|
1815
|
+
T.current = !0;
|
|
1816
|
+
}), t.useCallback(function(M, C) {
|
|
1817
|
+
if (C === void 0 && (C = {}), !T.current) return;
|
|
1818
|
+
if (typeof M == "number") return void u.go(M);
|
|
1819
|
+
let p = _(M, JSON.parse(m), d);
|
|
1820
|
+
o !== "/" && (p.pathname = $([o, p.pathname])), (C.replace ? u.replace : u.push)(p, C.state);
|
|
1821
|
+
}, [o, u, m, d]);
|
|
1846
1822
|
}
|
|
1847
1823
|
r(O, "p");
|
|
1848
|
-
function
|
|
1824
|
+
function j() {
|
|
1849
1825
|
return t.useContext(z).outlet;
|
|
1850
1826
|
}
|
|
1851
|
-
r(
|
|
1827
|
+
r(j, "f");
|
|
1852
1828
|
function E(o) {
|
|
1853
|
-
let { matches:
|
|
1854
|
-
return t.useMemo(() =>
|
|
1829
|
+
let { matches: u } = t.useContext(z), { pathname: g } = x(), d = JSON.stringify(u.map((m) => m.pathnameBase));
|
|
1830
|
+
return t.useMemo(() => _(o, JSON.parse(d), g), [o, d, g]);
|
|
1855
1831
|
}
|
|
1856
1832
|
r(E, "m");
|
|
1857
|
-
function
|
|
1833
|
+
function L(o, u) {
|
|
1858
1834
|
F() || n(!1);
|
|
1859
|
-
let g, { matches: d } = t.useContext(z), m = d[d.length - 1],
|
|
1835
|
+
let g, { matches: d } = t.useContext(z), m = d[d.length - 1], T = m ? m.params : {}, M = (m && m.pathname, m ? m.pathnameBase : "/"), C = (m &&
|
|
1860
1836
|
m.route, x());
|
|
1861
|
-
if (
|
|
1837
|
+
if (u) {
|
|
1862
1838
|
var p;
|
|
1863
|
-
let q = typeof
|
|
1864
|
-
|
|
1839
|
+
let q = typeof u == "string" ? a.parsePath(u) : u;
|
|
1840
|
+
M === "/" || (p = q.pathname) != null && p.startsWith(M) || n(!1), g = q;
|
|
1865
1841
|
} else g = C;
|
|
1866
|
-
let R = g.pathname || "/", K = i(o, { pathname:
|
|
1867
|
-
return I(K && K.map((q) => Object.assign({}, q, { params: Object.assign({},
|
|
1868
|
-
pathnameBase === "/" ?
|
|
1842
|
+
let R = g.pathname || "/", K = i(o, { pathname: M === "/" ? R : R.slice(M.length) || "/" });
|
|
1843
|
+
return I(K && K.map((q) => Object.assign({}, q, { params: Object.assign({}, T, q.params), pathname: $([M, q.pathname]), pathnameBase: q.
|
|
1844
|
+
pathnameBase === "/" ? M : $([M, q.pathnameBase]) })), d);
|
|
1869
1845
|
}
|
|
1870
|
-
r(
|
|
1871
|
-
function
|
|
1872
|
-
let
|
|
1846
|
+
r(L, "d");
|
|
1847
|
+
function s(o) {
|
|
1848
|
+
let u = [];
|
|
1873
1849
|
return t.Children.forEach(o, (g) => {
|
|
1874
1850
|
if (!t.isValidElement(g)) return;
|
|
1875
|
-
if (g.type === t.Fragment) return void
|
|
1851
|
+
if (g.type === t.Fragment) return void u.push.apply(u, s(g.props.children));
|
|
1876
1852
|
g.type !== U && n(!1);
|
|
1877
1853
|
let d = { caseSensitive: g.props.caseSensitive, element: g.props.element, index: g.props.index, path: g.props.path };
|
|
1878
|
-
g.props.children && (d.children =
|
|
1879
|
-
}),
|
|
1854
|
+
g.props.children && (d.children = s(g.props.children)), u.push(d);
|
|
1855
|
+
}), u;
|
|
1880
1856
|
}
|
|
1881
|
-
r(
|
|
1882
|
-
function i(o,
|
|
1857
|
+
r(s, "g");
|
|
1858
|
+
function i(o, u, g) {
|
|
1883
1859
|
g === void 0 && (g = "/");
|
|
1884
|
-
let d = V((typeof
|
|
1860
|
+
let d = V((typeof u == "string" ? a.parsePath(u) : u).pathname || "/", g);
|
|
1885
1861
|
if (d == null) return null;
|
|
1886
1862
|
let m = h(o);
|
|
1887
|
-
(function(
|
|
1888
|
-
|
|
1863
|
+
(function(M) {
|
|
1864
|
+
M.sort((C, p) => C.score !== p.score ? p.score - C.score : function(R, K) {
|
|
1889
1865
|
return R.length === K.length && R.slice(0, -1).every((q, Z) => q === K[Z]) ? R[R.length - 1] - K[K.length - 1] : 0;
|
|
1890
1866
|
}(C.routesMeta.map((R) => R.childrenIndex), p.routesMeta.map((R) => R.childrenIndex)));
|
|
1891
1867
|
})(m);
|
|
1892
|
-
let
|
|
1893
|
-
for (let
|
|
1894
|
-
return
|
|
1868
|
+
let T = null;
|
|
1869
|
+
for (let M = 0; T == null && M < m.length; ++M) T = N(m[M], o, d);
|
|
1870
|
+
return T;
|
|
1895
1871
|
}
|
|
1896
1872
|
r(i, "v");
|
|
1897
|
-
function h(o,
|
|
1898
|
-
return
|
|
1899
|
-
let
|
|
1900
|
-
|
|
1901
|
-
let C = $([d,
|
|
1902
|
-
m.children && m.children.length > 0 && (m.index === !0 && n(!1), h(m.children,
|
|
1873
|
+
function h(o, u, g, d) {
|
|
1874
|
+
return u === void 0 && (u = []), g === void 0 && (g = []), d === void 0 && (d = ""), o.forEach((m, T) => {
|
|
1875
|
+
let M = { relativePath: m.path || "", caseSensitive: m.caseSensitive === !0, childrenIndex: T };
|
|
1876
|
+
M.relativePath.startsWith("/") && (M.relativePath.startsWith(d) || n(!1), M.relativePath = M.relativePath.slice(d.length));
|
|
1877
|
+
let C = $([d, M.relativePath]), p = g.concat(M);
|
|
1878
|
+
m.children && m.children.length > 0 && (m.index === !0 && n(!1), h(m.children, u, p, C)), (m.path != null || m.index) && u.push({ path: C,
|
|
1903
1879
|
score: S(C, m.index), routesMeta: p });
|
|
1904
|
-
}),
|
|
1880
|
+
}), u;
|
|
1905
1881
|
}
|
|
1906
1882
|
r(h, "y");
|
|
1907
1883
|
let c = /^:\w+$/, y = /* @__PURE__ */ r((o) => o === "*", "C");
|
|
1908
|
-
function S(o,
|
|
1884
|
+
function S(o, u) {
|
|
1909
1885
|
let g = o.split("/"), d = g.length;
|
|
1910
|
-
return g.some(y) && (d += -2),
|
|
1886
|
+
return g.some(y) && (d += -2), u && (d += 2), g.filter((m) => !y(m)).reduce((m, T) => m + (c.test(T) ? 3 : T === "" ? 1 : 10), d);
|
|
1911
1887
|
}
|
|
1912
1888
|
r(S, "P");
|
|
1913
|
-
function
|
|
1914
|
-
let d =
|
|
1889
|
+
function N(o, u, g) {
|
|
1890
|
+
let d = u, { routesMeta: m } = o, T = {}, M = "/", C = [];
|
|
1915
1891
|
for (let p = 0; p < m.length; ++p) {
|
|
1916
|
-
let R = m[p], K = p === m.length - 1, q =
|
|
1892
|
+
let R = m[p], K = p === m.length - 1, q = M === "/" ? g : g.slice(M.length) || "/", Z = W({ path: R.relativePath, caseSensitive: R.caseSensitive,
|
|
1917
1893
|
end: K }, q);
|
|
1918
1894
|
if (!Z) return null;
|
|
1919
|
-
Object.assign(
|
|
1895
|
+
Object.assign(T, Z.params);
|
|
1920
1896
|
let re = d[R.childrenIndex];
|
|
1921
|
-
C.push({ params:
|
|
1922
|
-
$([
|
|
1897
|
+
C.push({ params: T, pathname: $([M, Z.pathname]), pathnameBase: $([M, Z.pathnameBase]), route: re }), Z.pathnameBase !== "/" && (M =
|
|
1898
|
+
$([M, Z.pathnameBase])), d = re.children;
|
|
1923
1899
|
}
|
|
1924
1900
|
return C;
|
|
1925
1901
|
}
|
|
1926
|
-
r(
|
|
1927
|
-
function I(o,
|
|
1928
|
-
return
|
|
1929
|
-
void 0 ? d.route.element : t.createElement(
|
|
1902
|
+
r(N, "E");
|
|
1903
|
+
function I(o, u) {
|
|
1904
|
+
return u === void 0 && (u = []), o == null ? null : o.reduceRight((g, d, m) => t.createElement(z.Provider, { children: d.route.element !==
|
|
1905
|
+
void 0 ? d.route.element : t.createElement(B, null), value: { outlet: g, matches: u.concat(o.slice(0, m + 1)) } }), null);
|
|
1930
1906
|
}
|
|
1931
1907
|
r(I, "R");
|
|
1932
|
-
function W(o,
|
|
1908
|
+
function W(o, u) {
|
|
1933
1909
|
typeof o == "string" && (o = { path: o, caseSensitive: !1, end: !0 });
|
|
1934
1910
|
let [g, d] = function(p, R, K) {
|
|
1935
1911
|
R === void 0 && (R = !1), K === void 0 && (K = !0);
|
|
@@ -1937,13 +1913,13 @@ var yr = ne((Be, gr) => {
|
|
|
1937
1913
|
push(ae), "([^\\/]+)"));
|
|
1938
1914
|
return p.endsWith("*") ? (q.push("*"), Z += p === "*" || p === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : Z += K ? "\\/*$" : "(?:\\b|$)",
|
|
1939
1915
|
[new RegExp(Z, R ? void 0 : "i"), q];
|
|
1940
|
-
}(o.path, o.caseSensitive, o.end), m =
|
|
1916
|
+
}(o.path, o.caseSensitive, o.end), m = u.match(g);
|
|
1941
1917
|
if (!m) return null;
|
|
1942
|
-
let
|
|
1918
|
+
let T = m[0], M = T.replace(/(.)\/+$/, "$1"), C = m.slice(1);
|
|
1943
1919
|
return { params: d.reduce((p, R, K) => {
|
|
1944
1920
|
if (R === "*") {
|
|
1945
1921
|
let q = C[K] || "";
|
|
1946
|
-
|
|
1922
|
+
M = T.slice(0, T.length - q.length).replace(/(.)\/+$/, "$1");
|
|
1947
1923
|
}
|
|
1948
1924
|
return p[R] = function(q, Z) {
|
|
1949
1925
|
try {
|
|
@@ -1952,93 +1928,93 @@ var yr = ne((Be, gr) => {
|
|
|
1952
1928
|
return q;
|
|
1953
1929
|
}
|
|
1954
1930
|
}(C[K] || ""), p;
|
|
1955
|
-
}, {}), pathname:
|
|
1931
|
+
}, {}), pathname: T, pathnameBase: M, pattern: o };
|
|
1956
1932
|
}
|
|
1957
1933
|
r(W, "S");
|
|
1958
|
-
function Y(o,
|
|
1959
|
-
|
|
1934
|
+
function Y(o, u) {
|
|
1935
|
+
u === void 0 && (u = "/");
|
|
1960
1936
|
let { pathname: g, search: d = "", hash: m = "" } = typeof o == "string" ? a.parsePath(o) : o;
|
|
1961
|
-
return { pathname: g ? g.startsWith("/") ? g : function(
|
|
1937
|
+
return { pathname: g ? g.startsWith("/") ? g : function(M, C) {
|
|
1962
1938
|
let p = C.replace(/\/+$/, "").split("/");
|
|
1963
|
-
return
|
|
1939
|
+
return M.split("/").forEach((R) => {
|
|
1964
1940
|
R === ".." ? p.length > 1 && p.pop() : R !== "." && p.push(R);
|
|
1965
1941
|
}), p.length > 1 ? p.join("/") : "/";
|
|
1966
|
-
}(g,
|
|
1942
|
+
}(g, u) : u, search: P(d), hash: H(m) };
|
|
1967
1943
|
}
|
|
1968
1944
|
r(Y, "b");
|
|
1969
|
-
function
|
|
1970
|
-
let d, m = typeof o == "string" ? a.parsePath(o) : o,
|
|
1971
|
-
if (
|
|
1945
|
+
function _(o, u, g) {
|
|
1946
|
+
let d, m = typeof o == "string" ? a.parsePath(o) : o, T = o === "" || m.pathname === "" ? "/" : m.pathname;
|
|
1947
|
+
if (T == null) d = g;
|
|
1972
1948
|
else {
|
|
1973
|
-
let C =
|
|
1974
|
-
if (
|
|
1975
|
-
let p =
|
|
1949
|
+
let C = u.length - 1;
|
|
1950
|
+
if (T.startsWith("..")) {
|
|
1951
|
+
let p = T.split("/");
|
|
1976
1952
|
for (; p[0] === ".."; ) p.shift(), C -= 1;
|
|
1977
1953
|
m.pathname = p.join("/");
|
|
1978
1954
|
}
|
|
1979
|
-
d = C >= 0 ?
|
|
1955
|
+
d = C >= 0 ? u[C] : "/";
|
|
1980
1956
|
}
|
|
1981
|
-
let
|
|
1982
|
-
return
|
|
1957
|
+
let M = Y(m, d);
|
|
1958
|
+
return T && T !== "/" && T.endsWith("/") && !M.pathname.endsWith("/") && (M.pathname += "/"), M;
|
|
1983
1959
|
}
|
|
1984
|
-
r(
|
|
1985
|
-
function V(o,
|
|
1986
|
-
if (
|
|
1987
|
-
if (!o.toLowerCase().startsWith(
|
|
1988
|
-
let g = o.charAt(
|
|
1989
|
-
return g && g !== "/" ? null : o.slice(
|
|
1960
|
+
r(_, "$");
|
|
1961
|
+
function V(o, u) {
|
|
1962
|
+
if (u === "/") return o;
|
|
1963
|
+
if (!o.toLowerCase().startsWith(u.toLowerCase())) return null;
|
|
1964
|
+
let g = o.charAt(u.length);
|
|
1965
|
+
return g && g !== "/" ? null : o.slice(u.length) || "/";
|
|
1990
1966
|
}
|
|
1991
1967
|
r(V, "M");
|
|
1992
|
-
let $ = /* @__PURE__ */ r((o) => o.join("/").replace(/\/\/+/g, "/"), "W"),
|
|
1968
|
+
let $ = /* @__PURE__ */ r((o) => o.join("/").replace(/\/\/+/g, "/"), "W"), w = /* @__PURE__ */ r((o) => o.replace(/\/+$/, "").replace(/^\/*/,
|
|
1993
1969
|
"/"), "B"), P = /* @__PURE__ */ r((o) => o && o !== "?" ? o.startsWith("?") ? o : "?" + o : "", "N"), H = /* @__PURE__ */ r((o) => o && o !==
|
|
1994
1970
|
"#" ? o.startsWith("#") ? o : "#" + o : "", "O");
|
|
1995
1971
|
e.MemoryRouter = function(o) {
|
|
1996
|
-
let { basename:
|
|
1997
|
-
|
|
1998
|
-
let
|
|
1999
|
-
return t.useLayoutEffect(() =>
|
|
2000
|
-
action, navigator:
|
|
1972
|
+
let { basename: u, children: g, initialEntries: d, initialIndex: m } = o, T = t.useRef();
|
|
1973
|
+
T.current == null && (T.current = a.createMemoryHistory({ initialEntries: d, initialIndex: m }));
|
|
1974
|
+
let M = T.current, [C, p] = t.useState({ action: M.action, location: M.location });
|
|
1975
|
+
return t.useLayoutEffect(() => M.listen(p), [M]), t.createElement(J, { basename: u, children: g, location: C.location, navigationType: C.
|
|
1976
|
+
action, navigator: M });
|
|
2001
1977
|
}, e.Navigate = function(o) {
|
|
2002
|
-
let { to:
|
|
1978
|
+
let { to: u, replace: g, state: d } = o;
|
|
2003
1979
|
F() || n(!1);
|
|
2004
1980
|
let m = O();
|
|
2005
1981
|
return t.useEffect(() => {
|
|
2006
|
-
m(
|
|
1982
|
+
m(u, { replace: g, state: d });
|
|
2007
1983
|
}), null;
|
|
2008
|
-
}, e.Outlet =
|
|
2009
|
-
let { children:
|
|
2010
|
-
return
|
|
2011
|
-
}, e.UNSAFE_LocationContext = v, e.UNSAFE_NavigationContext =
|
|
2012
|
-
function(o,
|
|
2013
|
-
return
|
|
2014
|
-
"" :
|
|
1984
|
+
}, e.Outlet = B, e.Route = U, e.Router = J, e.Routes = function(o) {
|
|
1985
|
+
let { children: u, location: g } = o;
|
|
1986
|
+
return L(s(u), g);
|
|
1987
|
+
}, e.UNSAFE_LocationContext = v, e.UNSAFE_NavigationContext = l, e.UNSAFE_RouteContext = z, e.createRoutesFromChildren = s, e.generatePath =
|
|
1988
|
+
function(o, u) {
|
|
1989
|
+
return u === void 0 && (u = {}), o.replace(/:(\w+)/g, (g, d) => (u[d] == null && n(!1), u[d])).replace(/\/*\*$/, (g) => u["*"] == null ?
|
|
1990
|
+
"" : u["*"].replace(/^\/*/, "/"));
|
|
2015
1991
|
}, e.matchPath = W, e.matchRoutes = i, e.renderMatches = function(o) {
|
|
2016
1992
|
return I(o);
|
|
2017
1993
|
}, e.resolvePath = Y, e.useHref = function(o) {
|
|
2018
1994
|
F() || n(!1);
|
|
2019
|
-
let { basename:
|
|
2020
|
-
if (
|
|
1995
|
+
let { basename: u, navigator: g } = t.useContext(l), { hash: d, pathname: m, search: T } = E(o), M = m;
|
|
1996
|
+
if (u !== "/") {
|
|
2021
1997
|
let C = function(R) {
|
|
2022
1998
|
return R === "" || R.pathname === "" ? "/" : typeof R == "string" ? a.parsePath(R).pathname : R.pathname;
|
|
2023
1999
|
}(o), p = C != null && C.endsWith("/");
|
|
2024
|
-
|
|
2000
|
+
M = m === "/" ? u + (p ? "/" : "") : $([u, m]);
|
|
2025
2001
|
}
|
|
2026
|
-
return g.createHref({ pathname:
|
|
2002
|
+
return g.createHref({ pathname: M, search: T, hash: d });
|
|
2027
2003
|
}, e.useInRouterContext = F, e.useLocation = x, e.useMatch = function(o) {
|
|
2028
2004
|
return F() || n(!1), W(o, x().pathname);
|
|
2029
2005
|
}, e.useNavigate = O, e.useNavigationType = function() {
|
|
2030
2006
|
return t.useContext(v).navigationType;
|
|
2031
|
-
}, e.useOutlet =
|
|
2032
|
-
let { matches: o } = t.useContext(z),
|
|
2033
|
-
return
|
|
2034
|
-
}, e.useResolvedPath = E, e.useRoutes =
|
|
2007
|
+
}, e.useOutlet = j, e.useParams = function() {
|
|
2008
|
+
let { matches: o } = t.useContext(z), u = o[o.length - 1];
|
|
2009
|
+
return u ? u.params : {};
|
|
2010
|
+
}, e.useResolvedPath = E, e.useRoutes = L, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2035
2011
|
});
|
|
2036
2012
|
});
|
|
2037
2013
|
|
|
2038
2014
|
// ../node_modules/react-router/umd/react-router.development.js
|
|
2039
|
-
var
|
|
2015
|
+
var mr = ne((We, dr) => {
|
|
2040
2016
|
(function(e, t) {
|
|
2041
|
-
typeof We == "object" && typeof
|
|
2017
|
+
typeof We == "object" && typeof dr < "u" ? t(We, require("react"), Ee()) : typeof define == "function" && define.amd ? define(["exports",
|
|
2042
2018
|
"react", "history"], t) : (e = e || self, t(e.ReactRouter = {}, e.React, e.HistoryLibrary));
|
|
2043
2019
|
})(We, function(e, t, a) {
|
|
2044
2020
|
"use strict";
|
|
@@ -2046,7 +2022,7 @@ var br = ne((We, vr) => {
|
|
|
2046
2022
|
if (!f) throw new Error(b);
|
|
2047
2023
|
}
|
|
2048
2024
|
r(n, "invariant");
|
|
2049
|
-
function
|
|
2025
|
+
function l(f, b) {
|
|
2050
2026
|
if (!f) {
|
|
2051
2027
|
typeof console < "u" && console.warn(b);
|
|
2052
2028
|
try {
|
|
@@ -2055,14 +2031,14 @@ var br = ne((We, vr) => {
|
|
|
2055
2031
|
}
|
|
2056
2032
|
}
|
|
2057
2033
|
}
|
|
2058
|
-
r(
|
|
2034
|
+
r(l, "warning");
|
|
2059
2035
|
let v = {};
|
|
2060
2036
|
function z(f, b, A) {
|
|
2061
|
-
!b && !v[f] && (v[f] = !0,
|
|
2037
|
+
!b && !v[f] && (v[f] = !0, l(!1, A));
|
|
2062
2038
|
}
|
|
2063
2039
|
r(z, "warningOnce");
|
|
2064
|
-
let
|
|
2065
|
-
|
|
2040
|
+
let B = /* @__PURE__ */ t.createContext(null);
|
|
2041
|
+
B.displayName = "Navigation";
|
|
2066
2042
|
let U = /* @__PURE__ */ t.createContext(null);
|
|
2067
2043
|
U.displayName = "Location";
|
|
2068
2044
|
let J = /* @__PURE__ */ t.createContext({
|
|
@@ -2075,11 +2051,11 @@ var br = ne((We, vr) => {
|
|
|
2075
2051
|
basename: b,
|
|
2076
2052
|
children: A,
|
|
2077
2053
|
initialEntries: k,
|
|
2078
|
-
initialIndex:
|
|
2054
|
+
initialIndex: D
|
|
2079
2055
|
} = f, G = t.useRef();
|
|
2080
2056
|
G.current == null && (G.current = a.createMemoryHistory({
|
|
2081
2057
|
initialEntries: k,
|
|
2082
|
-
initialIndex:
|
|
2058
|
+
initialIndex: D
|
|
2083
2059
|
}));
|
|
2084
2060
|
let Q = G.current, [X, ee] = t.useState({
|
|
2085
2061
|
action: Q.action,
|
|
@@ -2105,11 +2081,11 @@ var br = ne((We, vr) => {
|
|
|
2105
2081
|
// TODO: This error is probably because they somehow have 2 versions of
|
|
2106
2082
|
// the router loaded. We can help them understand how to avoid that.
|
|
2107
2083
|
"<Navigate> may be used only in the context of a <Router> component."
|
|
2108
|
-
),
|
|
2084
|
+
), l(!t.useContext(B).static, "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should \
|
|
2109
2085
|
modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");
|
|
2110
|
-
let
|
|
2086
|
+
let D = S();
|
|
2111
2087
|
return t.useEffect(() => {
|
|
2112
|
-
|
|
2088
|
+
D(b, {
|
|
2113
2089
|
replace: A,
|
|
2114
2090
|
state: k
|
|
2115
2091
|
});
|
|
@@ -2117,25 +2093,25 @@ modify your code so the <Navigate> is only ever rendered in response to some use
|
|
|
2117
2093
|
}
|
|
2118
2094
|
r(x, "Navigate");
|
|
2119
2095
|
function O(f) {
|
|
2120
|
-
return
|
|
2096
|
+
return N();
|
|
2121
2097
|
}
|
|
2122
2098
|
r(O, "Outlet");
|
|
2123
|
-
function
|
|
2099
|
+
function j(f) {
|
|
2124
2100
|
n(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Rou\
|
|
2125
2101
|
tes>.");
|
|
2126
2102
|
}
|
|
2127
|
-
r(
|
|
2103
|
+
r(j, "Route");
|
|
2128
2104
|
function E(f) {
|
|
2129
2105
|
let {
|
|
2130
2106
|
basename: b = "/",
|
|
2131
2107
|
children: A = null,
|
|
2132
2108
|
location: k,
|
|
2133
|
-
navigationType:
|
|
2109
|
+
navigationType: D = a.Action.Pop,
|
|
2134
2110
|
navigator: G,
|
|
2135
2111
|
static: Q = !1
|
|
2136
2112
|
} = f;
|
|
2137
2113
|
i() && n(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
2138
|
-
let X =
|
|
2114
|
+
let X = Ar(b), ee = t.useMemo(() => ({
|
|
2139
2115
|
basename: X,
|
|
2140
2116
|
navigator: G,
|
|
2141
2117
|
static: Q
|
|
@@ -2148,36 +2124,36 @@ tes>.");
|
|
|
2148
2124
|
state: se = null,
|
|
2149
2125
|
key: le = "default"
|
|
2150
2126
|
} = k, oe = t.useMemo(() => {
|
|
2151
|
-
let
|
|
2152
|
-
return
|
|
2153
|
-
pathname:
|
|
2127
|
+
let ct = lt(te, X);
|
|
2128
|
+
return ct == null ? null : {
|
|
2129
|
+
pathname: ct,
|
|
2154
2130
|
search: ue,
|
|
2155
2131
|
hash: ce,
|
|
2156
2132
|
state: se,
|
|
2157
2133
|
key: le
|
|
2158
2134
|
};
|
|
2159
2135
|
}, [X, te, ue, ce, se, le]);
|
|
2160
|
-
return
|
|
2161
|
-
t with the ') + "basename, so the <Router> won't render anything."), oe == null ? null : /* @__PURE__ */ t.createElement(
|
|
2136
|
+
return l(oe != null, '<Router basename="' + X + '"> is not able to match the URL ' + ('"' + te + ue + ce + '" because it does not star\
|
|
2137
|
+
t with the ') + "basename, so the <Router> won't render anything."), oe == null ? null : /* @__PURE__ */ t.createElement(B.Provider, {
|
|
2162
2138
|
value: ee
|
|
2163
2139
|
}, /* @__PURE__ */ t.createElement(U.Provider, {
|
|
2164
2140
|
children: A,
|
|
2165
2141
|
value: {
|
|
2166
2142
|
location: oe,
|
|
2167
|
-
navigationType:
|
|
2143
|
+
navigationType: D
|
|
2168
2144
|
}
|
|
2169
2145
|
}));
|
|
2170
2146
|
}
|
|
2171
2147
|
r(E, "Router");
|
|
2172
|
-
function
|
|
2148
|
+
function L(f) {
|
|
2173
2149
|
let {
|
|
2174
2150
|
children: b,
|
|
2175
2151
|
location: A
|
|
2176
2152
|
} = f;
|
|
2177
|
-
return Y(
|
|
2153
|
+
return Y(_(b), A);
|
|
2178
2154
|
}
|
|
2179
|
-
r(
|
|
2180
|
-
function
|
|
2155
|
+
r(L, "Routes");
|
|
2156
|
+
function s(f) {
|
|
2181
2157
|
i() || n(
|
|
2182
2158
|
!1,
|
|
2183
2159
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -2187,14 +2163,14 @@ t with the ') + "basename, so the <Router> won't render anything."), oe == null
|
|
|
2187
2163
|
let {
|
|
2188
2164
|
basename: b,
|
|
2189
2165
|
navigator: A
|
|
2190
|
-
} = t.useContext(
|
|
2166
|
+
} = t.useContext(B), {
|
|
2191
2167
|
hash: k,
|
|
2192
|
-
pathname:
|
|
2168
|
+
pathname: D,
|
|
2193
2169
|
search: G
|
|
2194
|
-
} = W(f), Q =
|
|
2170
|
+
} = W(f), Q = D;
|
|
2195
2171
|
if (b !== "/") {
|
|
2196
|
-
let X =
|
|
2197
|
-
Q =
|
|
2172
|
+
let X = Rr(f), ee = X != null && X.endsWith("/");
|
|
2173
|
+
Q = D === "/" ? b + (ee ? "/" : "") : ve([b, D]);
|
|
2198
2174
|
}
|
|
2199
2175
|
return A.createHref({
|
|
2200
2176
|
pathname: Q,
|
|
@@ -2202,7 +2178,7 @@ t with the ') + "basename, so the <Router> won't render anything."), oe == null
|
|
|
2202
2178
|
hash: k
|
|
2203
2179
|
});
|
|
2204
2180
|
}
|
|
2205
|
-
r(
|
|
2181
|
+
r(s, "useHref");
|
|
2206
2182
|
function i() {
|
|
2207
2183
|
return t.useContext(U) != null;
|
|
2208
2184
|
}
|
|
@@ -2239,29 +2215,29 @@ t with the ') + "basename, so the <Router> won't render anything."), oe == null
|
|
|
2239
2215
|
let {
|
|
2240
2216
|
basename: f,
|
|
2241
2217
|
navigator: b
|
|
2242
|
-
} = t.useContext(
|
|
2218
|
+
} = t.useContext(B), {
|
|
2243
2219
|
matches: A
|
|
2244
2220
|
} = t.useContext(J), {
|
|
2245
2221
|
pathname: k
|
|
2246
|
-
} = h(),
|
|
2222
|
+
} = h(), D = JSON.stringify(A.map((X) => X.pathnameBase)), G = t.useRef(!1);
|
|
2247
2223
|
return t.useEffect(() => {
|
|
2248
2224
|
G.current = !0;
|
|
2249
2225
|
}), t.useCallback(function(X, ee) {
|
|
2250
|
-
if (ee === void 0 && (ee = {}),
|
|
2226
|
+
if (ee === void 0 && (ee = {}), l(G.current, "You should call navigate() in a React.useEffect(), not when your component is first re\
|
|
2251
2227
|
ndered."), !G.current) return;
|
|
2252
2228
|
if (typeof X == "number") {
|
|
2253
2229
|
b.go(X);
|
|
2254
2230
|
return;
|
|
2255
2231
|
}
|
|
2256
|
-
let te = $e(X, JSON.parse(
|
|
2232
|
+
let te = $e(X, JSON.parse(D), k);
|
|
2257
2233
|
f !== "/" && (te.pathname = ve([f, te.pathname])), (ee.replace ? b.replace : b.push)(te, ee.state);
|
|
2258
|
-
}, [f, b,
|
|
2234
|
+
}, [f, b, D, k]);
|
|
2259
2235
|
}
|
|
2260
2236
|
r(S, "useNavigate");
|
|
2261
|
-
function
|
|
2237
|
+
function N() {
|
|
2262
2238
|
return t.useContext(J).outlet;
|
|
2263
2239
|
}
|
|
2264
|
-
r(
|
|
2240
|
+
r(N, "useOutlet");
|
|
2265
2241
|
function I() {
|
|
2266
2242
|
let {
|
|
2267
2243
|
matches: f
|
|
@@ -2274,7 +2250,7 @@ ndered."), !G.current) return;
|
|
|
2274
2250
|
matches: b
|
|
2275
2251
|
} = t.useContext(J), {
|
|
2276
2252
|
pathname: A
|
|
2277
|
-
} = h(), k = JSON.stringify(b.map((
|
|
2253
|
+
} = h(), k = JSON.stringify(b.map((D) => D.pathnameBase));
|
|
2278
2254
|
return t.useMemo(() => $e(f, JSON.parse(k), A), [f, k, A]);
|
|
2279
2255
|
}
|
|
2280
2256
|
r(W, "useResolvedPath");
|
|
@@ -2287,7 +2263,7 @@ ndered."), !G.current) return;
|
|
|
2287
2263
|
);
|
|
2288
2264
|
let {
|
|
2289
2265
|
matches: A
|
|
2290
|
-
} = t.useContext(J), k = A[A.length - 1],
|
|
2266
|
+
} = t.useContext(J), k = A[A.length - 1], D = k ? k.params : {}, G = k ? k.pathname : "/", Q = k ? k.pathnameBase : "/", X = k && k.route;
|
|
2291
2267
|
{
|
|
2292
2268
|
let oe = X && X.path || "";
|
|
2293
2269
|
z(G, !X || oe.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + G + '" (under <Route path="' +
|
|
@@ -2308,26 +2284,26 @@ Routes(routes, location)`, the location pathname must begin with the portion of
|
|
|
2308
2284
|
let ce = te.pathname || "/", se = Q === "/" ? ce : ce.slice(Q.length) || "/", le = $(f, {
|
|
2309
2285
|
pathname: se
|
|
2310
2286
|
});
|
|
2311
|
-
return
|
|
2287
|
+
return l(X || le != null, 'No routes matched location "' + te.pathname + te.search + te.hash + '" '), l(le == null || le[le.length - 1].
|
|
2312
2288
|
route.element !== void 0, 'Matched leaf route at location "' + te.pathname + te.search + te.hash + '" does not have an element. This m\
|
|
2313
2289
|
eans it will render an <Outlet /> with a null value by default resulting in an "empty" page.'), K(le && le.map((oe) => Object.assign({}, oe,
|
|
2314
2290
|
{
|
|
2315
|
-
params: Object.assign({},
|
|
2291
|
+
params: Object.assign({}, D, oe.params),
|
|
2316
2292
|
pathname: ve([Q, oe.pathname]),
|
|
2317
2293
|
pathnameBase: oe.pathnameBase === "/" ? Q : ve([Q, oe.pathnameBase])
|
|
2318
2294
|
})), A);
|
|
2319
2295
|
}
|
|
2320
2296
|
r(Y, "useRoutes");
|
|
2321
|
-
function
|
|
2297
|
+
function _(f) {
|
|
2322
2298
|
let b = [];
|
|
2323
2299
|
return t.Children.forEach(f, (A) => {
|
|
2324
2300
|
if (!/* @__PURE__ */ t.isValidElement(A))
|
|
2325
2301
|
return;
|
|
2326
2302
|
if (A.type === t.Fragment) {
|
|
2327
|
-
b.push.apply(b,
|
|
2303
|
+
b.push.apply(b, _(A.props.children));
|
|
2328
2304
|
return;
|
|
2329
2305
|
}
|
|
2330
|
-
A.type !==
|
|
2306
|
+
A.type !== j && n(!1, "[" + (typeof A.type == "string" ? A.type : A.type.name) + "] is not a <Route> component. All component childr\
|
|
2331
2307
|
en of <Routes> must be a <Route> or <React.Fragment>");
|
|
2332
2308
|
let k = {
|
|
2333
2309
|
caseSensitive: A.props.caseSensitive,
|
|
@@ -2335,10 +2311,10 @@ en of <Routes> must be a <Route> or <React.Fragment>");
|
|
|
2335
2311
|
index: A.props.index,
|
|
2336
2312
|
path: A.props.path
|
|
2337
2313
|
};
|
|
2338
|
-
A.props.children && (k.children =
|
|
2314
|
+
A.props.children && (k.children = _(A.props.children)), b.push(k);
|
|
2339
2315
|
}), b;
|
|
2340
2316
|
}
|
|
2341
|
-
r(
|
|
2317
|
+
r(_, "createRoutesFromChildren");
|
|
2342
2318
|
function V(f, b) {
|
|
2343
2319
|
return b === void 0 && (b = {}), f.replace(/:(\w+)/g, (A, k) => (b[k] == null && n(!1, 'Missing ":' + k + '" param'), b[k])).replace(/\/*\*$/,
|
|
2344
2320
|
(A) => b["*"] == null ? "" : b["*"].replace(/^\/*/, "/"));
|
|
@@ -2346,49 +2322,49 @@ en of <Routes> must be a <Route> or <React.Fragment>");
|
|
|
2346
2322
|
r(V, "generatePath");
|
|
2347
2323
|
function $(f, b, A) {
|
|
2348
2324
|
A === void 0 && (A = "/");
|
|
2349
|
-
let k = typeof b == "string" ? a.parsePath(b) : b,
|
|
2350
|
-
if (
|
|
2325
|
+
let k = typeof b == "string" ? a.parsePath(b) : b, D = lt(k.pathname || "/", A);
|
|
2326
|
+
if (D == null)
|
|
2351
2327
|
return null;
|
|
2352
|
-
let G =
|
|
2328
|
+
let G = w(f);
|
|
2353
2329
|
P(G);
|
|
2354
2330
|
let Q = null;
|
|
2355
2331
|
for (let X = 0; Q == null && X < G.length; ++X)
|
|
2356
|
-
Q = p(G[X], f,
|
|
2332
|
+
Q = p(G[X], f, D);
|
|
2357
2333
|
return Q;
|
|
2358
2334
|
}
|
|
2359
2335
|
r($, "matchRoutes");
|
|
2360
|
-
function
|
|
2361
|
-
return b === void 0 && (b = []), A === void 0 && (A = []), k === void 0 && (k = ""), f.forEach((
|
|
2336
|
+
function w(f, b, A, k) {
|
|
2337
|
+
return b === void 0 && (b = []), A === void 0 && (A = []), k === void 0 && (k = ""), f.forEach((D, G) => {
|
|
2362
2338
|
let Q = {
|
|
2363
|
-
relativePath:
|
|
2364
|
-
caseSensitive:
|
|
2339
|
+
relativePath: D.path || "",
|
|
2340
|
+
caseSensitive: D.caseSensitive === !0,
|
|
2365
2341
|
childrenIndex: G
|
|
2366
2342
|
};
|
|
2367
2343
|
Q.relativePath.startsWith("/") && (Q.relativePath.startsWith(k) || n(!1, 'Absolute route path "' + Q.relativePath + '" nested under \
|
|
2368
2344
|
path ' + ('"' + k + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), Q.relativePath =
|
|
2369
2345
|
Q.relativePath.slice(k.length));
|
|
2370
2346
|
let X = ve([k, Q.relativePath]), ee = A.concat(Q);
|
|
2371
|
-
|
|
2372
|
-
ild routes from route path "' + X + '".')),
|
|
2347
|
+
D.children && D.children.length > 0 && (D.index === !0 && n(!1, "Index routes must not have child routes. Please remove " + ('all ch\
|
|
2348
|
+
ild routes from route path "' + X + '".')), w(D.children, b, ee, X)), !(D.path == null && !D.index) && b.push({
|
|
2373
2349
|
path: X,
|
|
2374
|
-
score:
|
|
2350
|
+
score: M(X, D.index),
|
|
2375
2351
|
routesMeta: ee
|
|
2376
2352
|
});
|
|
2377
2353
|
}), b;
|
|
2378
2354
|
}
|
|
2379
|
-
r(
|
|
2355
|
+
r(w, "flattenRoutes");
|
|
2380
2356
|
function P(f) {
|
|
2381
2357
|
f.sort((b, A) => b.score !== A.score ? A.score - b.score : C(b.routesMeta.map((k) => k.childrenIndex), A.routesMeta.map((k) => k.childrenIndex)));
|
|
2382
2358
|
}
|
|
2383
2359
|
r(P, "rankRouteBranches");
|
|
2384
|
-
let H = /^:\w+$/, o = 3,
|
|
2385
|
-
function
|
|
2360
|
+
let H = /^:\w+$/, o = 3, u = 2, g = 1, d = 10, m = -2, T = /* @__PURE__ */ r((f) => f === "*", "isSplat");
|
|
2361
|
+
function M(f, b) {
|
|
2386
2362
|
let A = f.split("/"), k = A.length;
|
|
2387
|
-
return A.some(
|
|
2363
|
+
return A.some(T) && (k += m), b && (k += u), A.filter((D) => !T(D)).reduce((D, G) => D + (H.test(G) ? o : G === "" ? g : d), k);
|
|
2388
2364
|
}
|
|
2389
|
-
r(
|
|
2365
|
+
r(M, "computeScore");
|
|
2390
2366
|
function C(f, b) {
|
|
2391
|
-
return f.length === b.length && f.slice(0, -1).every((k,
|
|
2367
|
+
return f.length === b.length && f.slice(0, -1).every((k, D) => k === b[D]) ? (
|
|
2392
2368
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
2393
2369
|
// first. This allows people to have fine-grained control over the matching
|
|
2394
2370
|
// behavior by simply putting routes with identical paths in the order they
|
|
@@ -2403,10 +2379,10 @@ ild routes from route path "' + X + '".')), j(B.children, b, ee, X)), !(B.path =
|
|
|
2403
2379
|
r(C, "compareIndexes");
|
|
2404
2380
|
function p(f, b, A) {
|
|
2405
2381
|
let k = b, {
|
|
2406
|
-
routesMeta:
|
|
2382
|
+
routesMeta: D
|
|
2407
2383
|
} = f, G = {}, Q = "/", X = [];
|
|
2408
|
-
for (let ee = 0; ee <
|
|
2409
|
-
let te =
|
|
2384
|
+
for (let ee = 0; ee < D.length; ++ee) {
|
|
2385
|
+
let te = D[ee], ue = ee === D.length - 1, ce = Q === "/" ? A : A.slice(Q.length) || "/", se = q({
|
|
2410
2386
|
path: te.relativePath,
|
|
2411
2387
|
caseSensitive: te.caseSensitive,
|
|
2412
2388
|
end: ue
|
|
@@ -2429,11 +2405,11 @@ ild routes from route path "' + X + '".')), j(B.children, b, ee, X)), !(B.path =
|
|
|
2429
2405
|
}
|
|
2430
2406
|
r(R, "renderMatches");
|
|
2431
2407
|
function K(f, b) {
|
|
2432
|
-
return b === void 0 && (b = []), f == null ? null : f.reduceRight((A, k,
|
|
2408
|
+
return b === void 0 && (b = []), f == null ? null : f.reduceRight((A, k, D) => /* @__PURE__ */ t.createElement(J.Provider, {
|
|
2433
2409
|
children: k.route.element !== void 0 ? k.route.element : /* @__PURE__ */ t.createElement(O, null),
|
|
2434
2410
|
value: {
|
|
2435
2411
|
outlet: A,
|
|
2436
|
-
matches: b.concat(f.slice(0,
|
|
2412
|
+
matches: b.concat(f.slice(0, D + 1))
|
|
2437
2413
|
}
|
|
2438
2414
|
}), null);
|
|
2439
2415
|
}
|
|
@@ -2444,9 +2420,9 @@ ild routes from route path "' + X + '".')), j(B.children, b, ee, X)), !(B.path =
|
|
|
2444
2420
|
caseSensitive: !1,
|
|
2445
2421
|
end: !0
|
|
2446
2422
|
});
|
|
2447
|
-
let [A, k] = Z(f.path, f.caseSensitive, f.end),
|
|
2448
|
-
if (!
|
|
2449
|
-
let G =
|
|
2423
|
+
let [A, k] = Z(f.path, f.caseSensitive, f.end), D = b.match(A);
|
|
2424
|
+
if (!D) return null;
|
|
2425
|
+
let G = D[0], Q = G.replace(/(.)\/+$/, "$1"), X = D.slice(1);
|
|
2450
2426
|
return {
|
|
2451
2427
|
params: k.reduce((te, ue, ce) => {
|
|
2452
2428
|
if (ue === "*") {
|
|
@@ -2462,24 +2438,24 @@ ild routes from route path "' + X + '".')), j(B.children, b, ee, X)), !(B.path =
|
|
|
2462
2438
|
}
|
|
2463
2439
|
r(q, "matchPath");
|
|
2464
2440
|
function Z(f, b, A) {
|
|
2465
|
-
b === void 0 && (b = !1), A === void 0 && (A = !0),
|
|
2441
|
+
b === void 0 && (b = !1), A === void 0 && (A = !0), l(f === "*" || !f.endsWith("*") || f.endsWith("/*"), 'Route path "' + f + '" will \
|
|
2466
2442
|
be treated as if it were ' + ('"' + f.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To \
|
|
2467
2443
|
get rid of this warning, " + ('please change the route path to "' + f.replace(/\*$/, "/*") + '".'));
|
|
2468
|
-
let k = [],
|
|
2444
|
+
let k = [], D = "^" + f.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^$?{}|()[\]]/g, "\\$&").replace(/:(\w+)/g, (Q, X) => (k.
|
|
2469
2445
|
push(X), "([^\\/]+)"));
|
|
2470
|
-
return f.endsWith("*") ? (k.push("*"),
|
|
2446
|
+
return f.endsWith("*") ? (k.push("*"), D += f === "*" || f === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : D += A ? "\\/*$" : (
|
|
2471
2447
|
// Otherwise, at least match a word boundary. This restricts parent
|
|
2472
2448
|
// routes to matching only their own words and nothing more, e.g. parent
|
|
2473
2449
|
// route "/home" should not match "/home2".
|
|
2474
2450
|
"(?:\\b|$)"
|
|
2475
|
-
), [new RegExp(
|
|
2451
|
+
), [new RegExp(D, b ? void 0 : "i"), k];
|
|
2476
2452
|
}
|
|
2477
2453
|
r(Z, "compilePath");
|
|
2478
2454
|
function re(f, b) {
|
|
2479
2455
|
try {
|
|
2480
2456
|
return decodeURIComponent(f);
|
|
2481
2457
|
} catch (A) {
|
|
2482
|
-
return
|
|
2458
|
+
return l(!1, 'The value for the URL param "' + b + '" will not be decoded because' + (' the string "' + f + '" is a malformed URL se\
|
|
2483
2459
|
gment. This is probably') + (" due to a bad percent encoding (" + A + ").")), f;
|
|
2484
2460
|
}
|
|
2485
2461
|
}
|
|
@@ -2489,30 +2465,30 @@ gment. This is probably') + (" due to a bad percent encoding (" + A + ").")), f;
|
|
|
2489
2465
|
let {
|
|
2490
2466
|
pathname: A,
|
|
2491
2467
|
search: k = "",
|
|
2492
|
-
hash:
|
|
2468
|
+
hash: D = ""
|
|
2493
2469
|
} = typeof f == "string" ? a.parsePath(f) : f;
|
|
2494
2470
|
return {
|
|
2495
2471
|
pathname: A ? A.startsWith("/") ? A : ie(A, b) : b,
|
|
2496
|
-
search:
|
|
2497
|
-
hash:
|
|
2472
|
+
search: Er(k),
|
|
2473
|
+
hash: Cr(D)
|
|
2498
2474
|
};
|
|
2499
2475
|
}
|
|
2500
2476
|
r(ae, "resolvePath");
|
|
2501
2477
|
function ie(f, b) {
|
|
2502
2478
|
let A = b.replace(/\/+$/, "").split("/");
|
|
2503
|
-
return f.split("/").forEach((
|
|
2504
|
-
|
|
2479
|
+
return f.split("/").forEach((D) => {
|
|
2480
|
+
D === ".." ? A.length > 1 && A.pop() : D !== "." && A.push(D);
|
|
2505
2481
|
}), A.length > 1 ? A.join("/") : "/";
|
|
2506
2482
|
}
|
|
2507
2483
|
r(ie, "resolvePathname");
|
|
2508
2484
|
function $e(f, b, A) {
|
|
2509
|
-
let k = typeof f == "string" ? a.parsePath(f) : f,
|
|
2510
|
-
if (
|
|
2485
|
+
let k = typeof f == "string" ? a.parsePath(f) : f, D = f === "" || k.pathname === "" ? "/" : k.pathname, G;
|
|
2486
|
+
if (D == null)
|
|
2511
2487
|
G = A;
|
|
2512
2488
|
else {
|
|
2513
2489
|
let X = b.length - 1;
|
|
2514
|
-
if (
|
|
2515
|
-
let ee =
|
|
2490
|
+
if (D.startsWith("..")) {
|
|
2491
|
+
let ee = D.split("/");
|
|
2516
2492
|
for (; ee[0] === ".."; )
|
|
2517
2493
|
ee.shift(), X -= 1;
|
|
2518
2494
|
k.pathname = ee.join("/");
|
|
@@ -2520,95 +2496,95 @@ gment. This is probably') + (" due to a bad percent encoding (" + A + ").")), f;
|
|
|
2520
2496
|
G = X >= 0 ? b[X] : "/";
|
|
2521
2497
|
}
|
|
2522
2498
|
let Q = ae(k, G);
|
|
2523
|
-
return
|
|
2499
|
+
return D && D !== "/" && D.endsWith("/") && !Q.pathname.endsWith("/") && (Q.pathname += "/"), Q;
|
|
2524
2500
|
}
|
|
2525
2501
|
r($e, "resolveTo");
|
|
2526
|
-
function
|
|
2502
|
+
function Rr(f) {
|
|
2527
2503
|
return f === "" || f.pathname === "" ? "/" : typeof f == "string" ? a.parsePath(f).pathname : f.pathname;
|
|
2528
2504
|
}
|
|
2529
|
-
r(
|
|
2530
|
-
function
|
|
2505
|
+
r(Rr, "getToPathname");
|
|
2506
|
+
function lt(f, b) {
|
|
2531
2507
|
if (b === "/") return f;
|
|
2532
2508
|
if (!f.toLowerCase().startsWith(b.toLowerCase()))
|
|
2533
2509
|
return null;
|
|
2534
2510
|
let A = f.charAt(b.length);
|
|
2535
2511
|
return A && A !== "/" ? null : f.slice(b.length) || "/";
|
|
2536
2512
|
}
|
|
2537
|
-
r(
|
|
2538
|
-
let ve = /* @__PURE__ */ r((f) => f.join("/").replace(/\/\/+/g, "/"), "joinPaths"),
|
|
2539
|
-
replace(/^\/*/, "/"), "normalizePathname"),
|
|
2540
|
-
lizeSearch"),
|
|
2541
|
-
e.MemoryRouter = F, e.Navigate = x, e.Outlet = O, e.Route =
|
|
2542
|
-
|
|
2543
|
-
e.resolvePath = ae, e.useHref =
|
|
2544
|
-
c, e.useOutlet =
|
|
2513
|
+
r(lt, "stripBasename");
|
|
2514
|
+
let ve = /* @__PURE__ */ r((f) => f.join("/").replace(/\/\/+/g, "/"), "joinPaths"), Ar = /* @__PURE__ */ r((f) => f.replace(/\/+$/, "").
|
|
2515
|
+
replace(/^\/*/, "/"), "normalizePathname"), Er = /* @__PURE__ */ r((f) => !f || f === "?" ? "" : f.startsWith("?") ? f : "?" + f, "norma\
|
|
2516
|
+
lizeSearch"), Cr = /* @__PURE__ */ r((f) => !f || f === "#" ? "" : f.startsWith("#") ? f : "#" + f, "normalizeHash");
|
|
2517
|
+
e.MemoryRouter = F, e.Navigate = x, e.Outlet = O, e.Route = j, e.Router = E, e.Routes = L, e.UNSAFE_LocationContext = U, e.UNSAFE_NavigationContext =
|
|
2518
|
+
B, e.UNSAFE_RouteContext = J, e.createRoutesFromChildren = _, e.generatePath = V, e.matchPath = q, e.matchRoutes = $, e.renderMatches = R,
|
|
2519
|
+
e.resolvePath = ae, e.useHref = s, e.useInRouterContext = i, e.useLocation = h, e.useMatch = y, e.useNavigate = S, e.useNavigationType =
|
|
2520
|
+
c, e.useOutlet = N, e.useParams = I, e.useResolvedPath = W, e.useRoutes = Y, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2545
2521
|
});
|
|
2546
2522
|
});
|
|
2547
2523
|
|
|
2548
2524
|
// ../node_modules/react-router/main.js
|
|
2549
|
-
var
|
|
2525
|
+
var ot = ne((ga, gr) => {
|
|
2550
2526
|
"use strict";
|
|
2551
|
-
|
|
2527
|
+
gr.exports = process.env.NODE_ENV === "production" ? pr() : mr();
|
|
2552
2528
|
});
|
|
2553
2529
|
|
|
2554
2530
|
// ../node_modules/react-router-dom/umd/react-router-dom.production.min.js
|
|
2555
|
-
var
|
|
2531
|
+
var vr = ne((He, yr) => {
|
|
2556
2532
|
(function(e, t) {
|
|
2557
|
-
typeof He == "object" && typeof
|
|
2533
|
+
typeof He == "object" && typeof yr < "u" ? t(He, require("react"), Ee(), ot()) : typeof define == "function" && define.amd ? define(["ex\
|
|
2558
2534
|
ports", "react", "history", "react-router"], t) : t((e = e || self).ReactRouterDOM = {}, e.React, e.HistoryLibrary, e.ReactRouter);
|
|
2559
2535
|
})(He, function(e, t, a, n) {
|
|
2560
2536
|
"use strict";
|
|
2561
|
-
function
|
|
2562
|
-
return
|
|
2563
|
-
for (var
|
|
2564
|
-
var E = arguments[
|
|
2565
|
-
for (var
|
|
2537
|
+
function l() {
|
|
2538
|
+
return l = Object.assign || function(O) {
|
|
2539
|
+
for (var j = 1; j < arguments.length; j++) {
|
|
2540
|
+
var E = arguments[j];
|
|
2541
|
+
for (var L in E) Object.prototype.hasOwnProperty.call(E, L) && (O[L] = E[L]);
|
|
2566
2542
|
}
|
|
2567
2543
|
return O;
|
|
2568
|
-
},
|
|
2544
|
+
}, l.apply(this, arguments);
|
|
2569
2545
|
}
|
|
2570
|
-
r(
|
|
2571
|
-
function v(O,
|
|
2546
|
+
r(l, "a");
|
|
2547
|
+
function v(O, j) {
|
|
2572
2548
|
if (O == null) return {};
|
|
2573
|
-
var E,
|
|
2574
|
-
for (
|
|
2575
|
-
return
|
|
2549
|
+
var E, L, s = {}, i = Object.keys(O);
|
|
2550
|
+
for (L = 0; L < i.length; L++) E = i[L], j.indexOf(E) >= 0 || (s[E] = O[E]);
|
|
2551
|
+
return s;
|
|
2576
2552
|
}
|
|
2577
2553
|
r(v, "o");
|
|
2578
|
-
let z = ["onClick", "reloadDocument", "replace", "state", "target", "to"],
|
|
2579
|
-
yle", "to"], U = t.forwardRef(function(O,
|
|
2580
|
-
let { onClick: E, reloadDocument:
|
|
2554
|
+
let z = ["onClick", "reloadDocument", "replace", "state", "target", "to"], B = ["aria-current", "caseSensitive", "className", "end", "st\
|
|
2555
|
+
yle", "to"], U = t.forwardRef(function(O, j) {
|
|
2556
|
+
let { onClick: E, reloadDocument: L, replace: s = !1, state: i, target: h, to: c } = O, y = v(O, z), S = n.useHref(c), N = F(c, { replace: s,
|
|
2581
2557
|
state: i, target: h });
|
|
2582
|
-
return t.createElement("a",
|
|
2583
|
-
E && E(I), I.defaultPrevented ||
|
|
2584
|
-
}, "onClick"), ref:
|
|
2585
|
-
}), J = t.forwardRef(function(O,
|
|
2586
|
-
let { "aria-current": E = "page", caseSensitive:
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
let Y,
|
|
2590
|
-
Y = typeof
|
|
2591
|
-
let $ = typeof h == "function" ? h({ isActive:
|
|
2592
|
-
return t.createElement(U,
|
|
2558
|
+
return t.createElement("a", l({}, y, { href: S, onClick: /* @__PURE__ */ r(function(I) {
|
|
2559
|
+
E && E(I), I.defaultPrevented || L || N(I);
|
|
2560
|
+
}, "onClick"), ref: j, target: h }));
|
|
2561
|
+
}), J = t.forwardRef(function(O, j) {
|
|
2562
|
+
let { "aria-current": E = "page", caseSensitive: L = !1, className: s = "", end: i = !1, style: h, to: c } = O, y = v(O, B), S = n.useLocation(),
|
|
2563
|
+
N = n.useResolvedPath(c), I = S.pathname, W = N.pathname;
|
|
2564
|
+
L || (I = I.toLowerCase(), W = W.toLowerCase());
|
|
2565
|
+
let Y, _ = I === W || !i && I.startsWith(W) && I.charAt(W.length) === "/", V = _ ? E : void 0;
|
|
2566
|
+
Y = typeof s == "function" ? s({ isActive: _ }) : [s, _ ? "active" : null].filter(Boolean).join(" ");
|
|
2567
|
+
let $ = typeof h == "function" ? h({ isActive: _ }) : h;
|
|
2568
|
+
return t.createElement(U, l({}, y, { "aria-current": V, className: Y, ref: j, style: $, to: c }));
|
|
2593
2569
|
});
|
|
2594
|
-
function F(O,
|
|
2595
|
-
let { target: E, replace:
|
|
2570
|
+
function F(O, j) {
|
|
2571
|
+
let { target: E, replace: L, state: s } = j === void 0 ? {} : j, i = n.useNavigate(), h = n.useLocation(), c = n.useResolvedPath(O);
|
|
2596
2572
|
return t.useCallback((y) => {
|
|
2597
2573
|
if (!(y.button !== 0 || E && E !== "_self" || function(S) {
|
|
2598
2574
|
return !!(S.metaKey || S.altKey || S.ctrlKey || S.shiftKey);
|
|
2599
2575
|
}(y))) {
|
|
2600
2576
|
y.preventDefault();
|
|
2601
|
-
let S = !!
|
|
2602
|
-
i(O, { replace: S, state:
|
|
2577
|
+
let S = !!L || a.createPath(h) === a.createPath(c);
|
|
2578
|
+
i(O, { replace: S, state: s });
|
|
2603
2579
|
}
|
|
2604
|
-
}, [h, i, c,
|
|
2580
|
+
}, [h, i, c, L, s, E, O]);
|
|
2605
2581
|
}
|
|
2606
2582
|
r(F, "l");
|
|
2607
2583
|
function x(O) {
|
|
2608
2584
|
return O === void 0 && (O = ""), new URLSearchParams(typeof O == "string" || Array.isArray(O) || O instanceof URLSearchParams ? O : Object.
|
|
2609
|
-
keys(O).reduce((
|
|
2610
|
-
let
|
|
2611
|
-
return
|
|
2585
|
+
keys(O).reduce((j, E) => {
|
|
2586
|
+
let L = O[E];
|
|
2587
|
+
return j.concat(Array.isArray(L) ? L.map((s) => [E, s]) : [[E, L]]);
|
|
2612
2588
|
}, []));
|
|
2613
2589
|
}
|
|
2614
2590
|
r(x, "f"), Object.defineProperty(e, "MemoryRouter", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
@@ -2662,59 +2638,59 @@ yle", "to"], U = t.forwardRef(function(O, w) {
|
|
|
2662
2638
|
}, "get") }), Object.defineProperty(e, "useRoutes", { enumerable: !0, get: /* @__PURE__ */ r(function() {
|
|
2663
2639
|
return n.useRoutes;
|
|
2664
2640
|
}, "get") }), e.BrowserRouter = function(O) {
|
|
2665
|
-
let { basename:
|
|
2666
|
-
|
|
2667
|
-
let i =
|
|
2668
|
-
return t.useLayoutEffect(() => i.listen(c), [i]), t.createElement(n.Router, { basename:
|
|
2641
|
+
let { basename: j, children: E, window: L } = O, s = t.useRef();
|
|
2642
|
+
s.current == null && (s.current = a.createBrowserHistory({ window: L }));
|
|
2643
|
+
let i = s.current, [h, c] = t.useState({ action: i.action, location: i.location });
|
|
2644
|
+
return t.useLayoutEffect(() => i.listen(c), [i]), t.createElement(n.Router, { basename: j, children: E, location: h.location, navigationType: h.
|
|
2669
2645
|
action, navigator: i });
|
|
2670
2646
|
}, e.HashRouter = function(O) {
|
|
2671
|
-
let { basename:
|
|
2672
|
-
|
|
2673
|
-
let i =
|
|
2674
|
-
return t.useLayoutEffect(() => i.listen(c), [i]), t.createElement(n.Router, { basename:
|
|
2647
|
+
let { basename: j, children: E, window: L } = O, s = t.useRef();
|
|
2648
|
+
s.current == null && (s.current = a.createHashHistory({ window: L }));
|
|
2649
|
+
let i = s.current, [h, c] = t.useState({ action: i.action, location: i.location });
|
|
2650
|
+
return t.useLayoutEffect(() => i.listen(c), [i]), t.createElement(n.Router, { basename: j, children: E, location: h.location, navigationType: h.
|
|
2675
2651
|
action, navigator: i });
|
|
2676
2652
|
}, e.Link = U, e.NavLink = J, e.createSearchParams = x, e.useLinkClickHandler = F, e.useSearchParams = function(O) {
|
|
2677
|
-
let
|
|
2653
|
+
let j = t.useRef(x(O)), E = n.useLocation(), L = t.useMemo(() => {
|
|
2678
2654
|
let i = x(E.search);
|
|
2679
|
-
for (let h of
|
|
2655
|
+
for (let h of j.current.keys()) i.has(h) || j.current.getAll(h).forEach((c) => {
|
|
2680
2656
|
i.append(h, c);
|
|
2681
2657
|
});
|
|
2682
2658
|
return i;
|
|
2683
|
-
}, [E.search]),
|
|
2684
|
-
return [
|
|
2685
|
-
|
|
2686
|
-
}, [
|
|
2659
|
+
}, [E.search]), s = n.useNavigate();
|
|
2660
|
+
return [L, t.useCallback((i, h) => {
|
|
2661
|
+
s("?" + x(i), h);
|
|
2662
|
+
}, [s])];
|
|
2687
2663
|
}, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2688
2664
|
});
|
|
2689
2665
|
});
|
|
2690
2666
|
|
|
2691
2667
|
// ../node_modules/react-router-dom/umd/react-router-dom.development.js
|
|
2692
|
-
var
|
|
2668
|
+
var xr = ne((Fe, br) => {
|
|
2693
2669
|
(function(e, t) {
|
|
2694
|
-
typeof Fe == "object" && typeof
|
|
2670
|
+
typeof Fe == "object" && typeof br < "u" ? t(Fe, require("react"), Ee(), ot()) : typeof define == "function" && define.amd ? define(["ex\
|
|
2695
2671
|
ports", "react", "history", "react-router"], t) : (e = e || self, t(e.ReactRouterDOM = {}, e.React, e.HistoryLibrary, e.ReactRouter));
|
|
2696
2672
|
})(Fe, function(e, t, a, n) {
|
|
2697
2673
|
"use strict";
|
|
2698
|
-
function
|
|
2699
|
-
return
|
|
2674
|
+
function l() {
|
|
2675
|
+
return l = Object.assign || function(i) {
|
|
2700
2676
|
for (var h = 1; h < arguments.length; h++) {
|
|
2701
2677
|
var c = arguments[h];
|
|
2702
2678
|
for (var y in c)
|
|
2703
2679
|
Object.prototype.hasOwnProperty.call(c, y) && (i[y] = c[y]);
|
|
2704
2680
|
}
|
|
2705
2681
|
return i;
|
|
2706
|
-
},
|
|
2682
|
+
}, l.apply(this, arguments);
|
|
2707
2683
|
}
|
|
2708
|
-
r(
|
|
2684
|
+
r(l, "_extends");
|
|
2709
2685
|
function v(i, h) {
|
|
2710
2686
|
if (i == null) return {};
|
|
2711
|
-
var c = {}, y = Object.keys(i), S,
|
|
2712
|
-
for (
|
|
2713
|
-
S = y[
|
|
2687
|
+
var c = {}, y = Object.keys(i), S, N;
|
|
2688
|
+
for (N = 0; N < y.length; N++)
|
|
2689
|
+
S = y[N], !(h.indexOf(S) >= 0) && (c[S] = i[S]);
|
|
2714
2690
|
return c;
|
|
2715
2691
|
}
|
|
2716
2692
|
r(v, "_objectWithoutPropertiesLoose");
|
|
2717
|
-
let z = ["onClick", "reloadDocument", "replace", "state", "target", "to"],
|
|
2693
|
+
let z = ["onClick", "reloadDocument", "replace", "state", "target", "to"], B = ["aria-current", "caseSensitive", "className", "end", "st\
|
|
2718
2694
|
yle", "to"];
|
|
2719
2695
|
function U(i, h) {
|
|
2720
2696
|
if (!i) {
|
|
@@ -2735,16 +2711,16 @@ yle", "to"];
|
|
|
2735
2711
|
S.current == null && (S.current = a.createBrowserHistory({
|
|
2736
2712
|
window: y
|
|
2737
2713
|
}));
|
|
2738
|
-
let
|
|
2739
|
-
action:
|
|
2740
|
-
location:
|
|
2714
|
+
let N = S.current, [I, W] = t.useState({
|
|
2715
|
+
action: N.action,
|
|
2716
|
+
location: N.location
|
|
2741
2717
|
});
|
|
2742
|
-
return t.useLayoutEffect(() =>
|
|
2718
|
+
return t.useLayoutEffect(() => N.listen(W), [N]), /* @__PURE__ */ t.createElement(n.Router, {
|
|
2743
2719
|
basename: h,
|
|
2744
2720
|
children: c,
|
|
2745
2721
|
location: I.location,
|
|
2746
2722
|
navigationType: I.action,
|
|
2747
|
-
navigator:
|
|
2723
|
+
navigator: N
|
|
2748
2724
|
});
|
|
2749
2725
|
}
|
|
2750
2726
|
r(J, "BrowserRouter");
|
|
@@ -2757,16 +2733,16 @@ yle", "to"];
|
|
|
2757
2733
|
S.current == null && (S.current = a.createHashHistory({
|
|
2758
2734
|
window: y
|
|
2759
2735
|
}));
|
|
2760
|
-
let
|
|
2761
|
-
action:
|
|
2762
|
-
location:
|
|
2736
|
+
let N = S.current, [I, W] = t.useState({
|
|
2737
|
+
action: N.action,
|
|
2738
|
+
location: N.location
|
|
2763
2739
|
});
|
|
2764
|
-
return t.useLayoutEffect(() =>
|
|
2740
|
+
return t.useLayoutEffect(() => N.listen(W), [N]), /* @__PURE__ */ t.createElement(n.Router, {
|
|
2765
2741
|
basename: h,
|
|
2766
2742
|
children: c,
|
|
2767
2743
|
location: I.location,
|
|
2768
2744
|
navigationType: I.action,
|
|
2769
|
-
navigator:
|
|
2745
|
+
navigator: N
|
|
2770
2746
|
});
|
|
2771
2747
|
}
|
|
2772
2748
|
r(F, "HashRouter");
|
|
@@ -2778,99 +2754,99 @@ yle", "to"];
|
|
|
2778
2754
|
let {
|
|
2779
2755
|
onClick: y,
|
|
2780
2756
|
reloadDocument: S,
|
|
2781
|
-
replace:
|
|
2757
|
+
replace: N = !1,
|
|
2782
2758
|
state: I,
|
|
2783
2759
|
target: W,
|
|
2784
2760
|
to: Y
|
|
2785
|
-
} = h,
|
|
2786
|
-
replace:
|
|
2761
|
+
} = h, _ = v(h, z), V = n.useHref(Y), $ = E(Y, {
|
|
2762
|
+
replace: N,
|
|
2787
2763
|
state: I,
|
|
2788
2764
|
target: W
|
|
2789
2765
|
});
|
|
2790
|
-
function
|
|
2766
|
+
function w(P) {
|
|
2791
2767
|
y && y(P), !P.defaultPrevented && !S && $(P);
|
|
2792
2768
|
}
|
|
2793
|
-
return r(
|
|
2794
|
-
/* @__PURE__ */ t.createElement("a",
|
|
2769
|
+
return r(w, "handleClick"), // eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
2770
|
+
/* @__PURE__ */ t.createElement("a", l({}, _, {
|
|
2795
2771
|
href: V,
|
|
2796
|
-
onClick:
|
|
2772
|
+
onClick: w,
|
|
2797
2773
|
ref: c,
|
|
2798
2774
|
target: W
|
|
2799
2775
|
}));
|
|
2800
2776
|
}, "LinkWithRef"));
|
|
2801
2777
|
O.displayName = "Link";
|
|
2802
|
-
let
|
|
2778
|
+
let j = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ r(function(h, c) {
|
|
2803
2779
|
let {
|
|
2804
2780
|
"aria-current": y = "page",
|
|
2805
2781
|
caseSensitive: S = !1,
|
|
2806
|
-
className:
|
|
2782
|
+
className: N = "",
|
|
2807
2783
|
end: I = !1,
|
|
2808
2784
|
style: W,
|
|
2809
2785
|
to: Y
|
|
2810
|
-
} = h,
|
|
2811
|
-
S || (
|
|
2812
|
-
let H =
|
|
2813
|
-
typeof
|
|
2786
|
+
} = h, _ = v(h, B), V = n.useLocation(), $ = n.useResolvedPath(Y), w = V.pathname, P = $.pathname;
|
|
2787
|
+
S || (w = w.toLowerCase(), P = P.toLowerCase());
|
|
2788
|
+
let H = w === P || !I && w.startsWith(P) && w.charAt(P.length) === "/", o = H ? y : void 0, u;
|
|
2789
|
+
typeof N == "function" ? u = N({
|
|
2814
2790
|
isActive: H
|
|
2815
|
-
}) :
|
|
2791
|
+
}) : u = [N, H ? "active" : null].filter(Boolean).join(" ");
|
|
2816
2792
|
let g = typeof W == "function" ? W({
|
|
2817
2793
|
isActive: H
|
|
2818
2794
|
}) : W;
|
|
2819
|
-
return /* @__PURE__ */ t.createElement(O,
|
|
2795
|
+
return /* @__PURE__ */ t.createElement(O, l({}, _, {
|
|
2820
2796
|
"aria-current": o,
|
|
2821
|
-
className:
|
|
2797
|
+
className: u,
|
|
2822
2798
|
ref: c,
|
|
2823
2799
|
style: g,
|
|
2824
2800
|
to: Y
|
|
2825
2801
|
}));
|
|
2826
2802
|
}, "NavLinkWithRef"));
|
|
2827
|
-
|
|
2803
|
+
j.displayName = "NavLink";
|
|
2828
2804
|
function E(i, h) {
|
|
2829
2805
|
let {
|
|
2830
2806
|
target: c,
|
|
2831
2807
|
replace: y,
|
|
2832
2808
|
state: S
|
|
2833
|
-
} = h === void 0 ? {} : h,
|
|
2809
|
+
} = h === void 0 ? {} : h, N = n.useNavigate(), I = n.useLocation(), W = n.useResolvedPath(i);
|
|
2834
2810
|
return t.useCallback((Y) => {
|
|
2835
2811
|
if (Y.button === 0 && // Ignore everything but left clicks
|
|
2836
2812
|
(!c || c === "_self") && // Let browser handle "target=_blank" etc.
|
|
2837
2813
|
!x(Y)) {
|
|
2838
2814
|
Y.preventDefault();
|
|
2839
|
-
let
|
|
2840
|
-
|
|
2841
|
-
replace:
|
|
2815
|
+
let _ = !!y || a.createPath(I) === a.createPath(W);
|
|
2816
|
+
N(i, {
|
|
2817
|
+
replace: _,
|
|
2842
2818
|
state: S
|
|
2843
2819
|
});
|
|
2844
2820
|
}
|
|
2845
|
-
}, [I,
|
|
2821
|
+
}, [I, N, W, y, S, c, i]);
|
|
2846
2822
|
}
|
|
2847
2823
|
r(E, "useLinkClickHandler");
|
|
2848
|
-
function
|
|
2824
|
+
function L(i) {
|
|
2849
2825
|
U(typeof URLSearchParams < "u", "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API.\
|
|
2850
2826
|
If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params\n\nIf you're\
|
|
2851
2827
|
unsure how to load polyfills, we recommend you check out https://polyfill.io/v3/ which provides some recommendations about how to load poly\
|
|
2852
2828
|
fills only for users that need them, instead of for every user.");
|
|
2853
|
-
let h = t.useRef(
|
|
2854
|
-
let I =
|
|
2829
|
+
let h = t.useRef(s(i)), c = n.useLocation(), y = t.useMemo(() => {
|
|
2830
|
+
let I = s(c.search);
|
|
2855
2831
|
for (let W of h.current.keys())
|
|
2856
2832
|
I.has(W) || h.current.getAll(W).forEach((Y) => {
|
|
2857
2833
|
I.append(W, Y);
|
|
2858
2834
|
});
|
|
2859
2835
|
return I;
|
|
2860
|
-
}, [c.search]), S = n.useNavigate(),
|
|
2861
|
-
S("?" +
|
|
2836
|
+
}, [c.search]), S = n.useNavigate(), N = t.useCallback((I, W) => {
|
|
2837
|
+
S("?" + s(I), W);
|
|
2862
2838
|
}, [S]);
|
|
2863
|
-
return [y,
|
|
2839
|
+
return [y, N];
|
|
2864
2840
|
}
|
|
2865
|
-
r(
|
|
2866
|
-
function
|
|
2841
|
+
r(L, "useSearchParams");
|
|
2842
|
+
function s(i) {
|
|
2867
2843
|
return i === void 0 && (i = ""), new URLSearchParams(typeof i == "string" || Array.isArray(i) || i instanceof URLSearchParams ? i : Object.
|
|
2868
2844
|
keys(i).reduce((h, c) => {
|
|
2869
2845
|
let y = i[c];
|
|
2870
2846
|
return h.concat(Array.isArray(y) ? y.map((S) => [c, S]) : [[c, y]]);
|
|
2871
2847
|
}, []));
|
|
2872
2848
|
}
|
|
2873
|
-
r(
|
|
2849
|
+
r(s, "createSearchParams"), Object.defineProperty(e, "MemoryRouter", {
|
|
2874
2850
|
enumerable: !0,
|
|
2875
2851
|
get: /* @__PURE__ */ r(function() {
|
|
2876
2852
|
return n.MemoryRouter;
|
|
@@ -2995,39 +2971,39 @@ fills only for users that need them, instead of for every user.");
|
|
|
2995
2971
|
get: /* @__PURE__ */ r(function() {
|
|
2996
2972
|
return n.useRoutes;
|
|
2997
2973
|
}, "get")
|
|
2998
|
-
}), e.BrowserRouter = J, e.HashRouter = F, e.Link = O, e.NavLink =
|
|
2999
|
-
|
|
2974
|
+
}), e.BrowserRouter = J, e.HashRouter = F, e.Link = O, e.NavLink = j, e.createSearchParams = s, e.useLinkClickHandler = E, e.useSearchParams =
|
|
2975
|
+
L, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3000
2976
|
});
|
|
3001
2977
|
});
|
|
3002
2978
|
|
|
3003
2979
|
// ../node_modules/react-router-dom/main.js
|
|
3004
|
-
var
|
|
2980
|
+
var Or = ne((ba, Pr) => {
|
|
3005
2981
|
"use strict";
|
|
3006
|
-
|
|
2982
|
+
Pr.exports = process.env.NODE_ENV === "production" ? vr() : xr();
|
|
3007
2983
|
});
|
|
3008
2984
|
|
|
3009
2985
|
// src/router/index.ts
|
|
3010
|
-
var
|
|
3011
|
-
|
|
3012
|
-
BaseLocationProvider: () =>
|
|
2986
|
+
var jn = {};
|
|
2987
|
+
kr(jn, {
|
|
2988
|
+
BaseLocationProvider: () => On,
|
|
3013
2989
|
DEEPLY_EQUAL: () => Re,
|
|
3014
|
-
Link: () =>
|
|
3015
|
-
Location: () =>
|
|
3016
|
-
LocationProvider: () =>
|
|
3017
|
-
Match: () =>
|
|
3018
|
-
Route: () =>
|
|
3019
|
-
buildArgsParam: () =>
|
|
3020
|
-
deepDiff: () =>
|
|
2990
|
+
Link: () => wr,
|
|
2991
|
+
Location: () => st,
|
|
2992
|
+
LocationProvider: () => Pn,
|
|
2993
|
+
Match: () => ut,
|
|
2994
|
+
Route: () => Sr,
|
|
2995
|
+
buildArgsParam: () => gn,
|
|
2996
|
+
deepDiff: () => Te,
|
|
3021
2997
|
getMatch: () => nt,
|
|
3022
2998
|
parsePath: () => tt,
|
|
3023
2999
|
queryFromLocation: () => rt,
|
|
3024
|
-
stringifyQuery: () =>
|
|
3025
|
-
useNavigate: () =>
|
|
3000
|
+
stringifyQuery: () => vn,
|
|
3001
|
+
useNavigate: () => xn
|
|
3026
3002
|
});
|
|
3027
|
-
module.exports =
|
|
3003
|
+
module.exports = Ir(jn);
|
|
3028
3004
|
|
|
3029
3005
|
// src/router/utils.ts
|
|
3030
|
-
var
|
|
3006
|
+
var ar = require("storybook/internal/client-logger");
|
|
3031
3007
|
|
|
3032
3008
|
// ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
3033
3009
|
function me(e) {
|
|
@@ -3045,11 +3021,11 @@ function me(e) {
|
|
|
3045
3021
|
r(me, "isPlainObject");
|
|
3046
3022
|
|
|
3047
3023
|
// ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
3048
|
-
var
|
|
3049
|
-
t Symbol]",
|
|
3050
|
-
rrayBuffer]", Ce = "[object Object]", jt = "[object Error]",
|
|
3051
|
-
dArray]",
|
|
3052
|
-
Int16Array]",
|
|
3024
|
+
var ht = "[object RegExp]", pt = "[object String]", dt = "[object Number]", mt = "[object Boolean]", ze = "[object Arguments]", gt = "[objec\
|
|
3025
|
+
t Symbol]", yt = "[object Date]", vt = "[object Map]", bt = "[object Set]", xt = "[object Array]", Pt = "[object Function]", Ot = "[object A\
|
|
3026
|
+
rrayBuffer]", Ce = "[object Object]", jt = "[object Error]", wt = "[object DataView]", St = "[object Uint8Array]", Rt = "[object Uint8Clampe\
|
|
3027
|
+
dArray]", At = "[object Uint16Array]", Et = "[object Uint32Array]", Ct = "[object BigUint64Array]", Nt = "[object Int8Array]", Lt = "[object\
|
|
3028
|
+
Int16Array]", _t = "[object Int32Array]", Mt = "[object BigInt64Array]", Tt = "[object Float32Array]", kt = "[object Float64Array]";
|
|
3053
3029
|
|
|
3054
3030
|
// ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
3055
3031
|
function qe(e) {
|
|
@@ -3086,23 +3062,23 @@ r(Ve, "isEqual");
|
|
|
3086
3062
|
function ge(e, t, a) {
|
|
3087
3063
|
if (Object.is(e, t))
|
|
3088
3064
|
return !0;
|
|
3089
|
-
let n = Ue(e),
|
|
3090
|
-
if (n === ze && (n = Ce),
|
|
3065
|
+
let n = Ue(e), l = Ue(t);
|
|
3066
|
+
if (n === ze && (n = Ce), l === ze && (l = Ce), n !== l)
|
|
3091
3067
|
return !1;
|
|
3092
3068
|
switch (n) {
|
|
3093
|
-
case
|
|
3069
|
+
case pt:
|
|
3094
3070
|
return e.toString() === t.toString();
|
|
3095
|
-
case
|
|
3096
|
-
let
|
|
3097
|
-
return
|
|
3071
|
+
case dt: {
|
|
3072
|
+
let B = e.valueOf(), U = t.valueOf();
|
|
3073
|
+
return B === U || Number.isNaN(B) && Number.isNaN(U);
|
|
3098
3074
|
}
|
|
3099
|
-
case
|
|
3100
|
-
case vt:
|
|
3075
|
+
case mt:
|
|
3101
3076
|
case yt:
|
|
3077
|
+
case gt:
|
|
3102
3078
|
return Object.is(e.valueOf(), t.valueOf());
|
|
3103
|
-
case
|
|
3079
|
+
case ht:
|
|
3104
3080
|
return e.source === t.source && e.flags === t.flags;
|
|
3105
|
-
case
|
|
3081
|
+
case Pt:
|
|
3106
3082
|
return e === t;
|
|
3107
3083
|
}
|
|
3108
3084
|
a = a ?? /* @__PURE__ */ new Map();
|
|
@@ -3112,48 +3088,48 @@ function ge(e, t, a) {
|
|
|
3112
3088
|
a.set(e, t), a.set(t, e);
|
|
3113
3089
|
try {
|
|
3114
3090
|
switch (n) {
|
|
3115
|
-
case
|
|
3091
|
+
case vt: {
|
|
3116
3092
|
if (e.size !== t.size)
|
|
3117
3093
|
return !1;
|
|
3118
|
-
for (let [
|
|
3119
|
-
if (!t.has(
|
|
3094
|
+
for (let [B, U] of e.entries())
|
|
3095
|
+
if (!t.has(B) || !ge(U, t.get(B), a))
|
|
3120
3096
|
return !1;
|
|
3121
3097
|
return !0;
|
|
3122
3098
|
}
|
|
3123
|
-
case
|
|
3099
|
+
case bt: {
|
|
3124
3100
|
if (e.size !== t.size)
|
|
3125
3101
|
return !1;
|
|
3126
|
-
let
|
|
3127
|
-
for (let J = 0; J <
|
|
3128
|
-
let F =
|
|
3102
|
+
let B = Array.from(e.values()), U = Array.from(t.values());
|
|
3103
|
+
for (let J = 0; J < B.length; J++) {
|
|
3104
|
+
let F = B[J], x = U.findIndex((O) => ge(F, O, a));
|
|
3129
3105
|
if (x === -1)
|
|
3130
3106
|
return !1;
|
|
3131
3107
|
U.splice(x, 1);
|
|
3132
3108
|
}
|
|
3133
3109
|
return !0;
|
|
3134
3110
|
}
|
|
3135
|
-
case
|
|
3111
|
+
case xt:
|
|
3112
|
+
case St:
|
|
3136
3113
|
case Rt:
|
|
3137
3114
|
case At:
|
|
3138
3115
|
case Et:
|
|
3139
3116
|
case Ct:
|
|
3140
|
-
case _t:
|
|
3141
3117
|
case Nt:
|
|
3142
3118
|
case Lt:
|
|
3143
|
-
case
|
|
3119
|
+
case _t:
|
|
3144
3120
|
case Mt:
|
|
3145
|
-
case
|
|
3146
|
-
case
|
|
3121
|
+
case Tt:
|
|
3122
|
+
case kt: {
|
|
3147
3123
|
if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
|
|
3148
3124
|
return !1;
|
|
3149
|
-
for (let
|
|
3150
|
-
if (!ge(e[
|
|
3125
|
+
for (let B = 0; B < e.length; B++)
|
|
3126
|
+
if (!ge(e[B], t[B], a))
|
|
3151
3127
|
return !1;
|
|
3152
3128
|
return !0;
|
|
3153
3129
|
}
|
|
3154
|
-
case
|
|
3130
|
+
case Ot:
|
|
3155
3131
|
return e.byteLength !== t.byteLength ? !1 : ge(new Uint8Array(e), new Uint8Array(t), a);
|
|
3156
|
-
case
|
|
3132
|
+
case wt:
|
|
3157
3133
|
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : ge(e.buffer, t.buffer, a);
|
|
3158
3134
|
case jt:
|
|
3159
3135
|
return e.name === t.name && e.message === t.message;
|
|
@@ -3167,8 +3143,8 @@ function ge(e, t, a) {
|
|
|
3167
3143
|
let x = U[F], O = e[x];
|
|
3168
3144
|
if (!Object.prototype.hasOwnProperty.call(t, x))
|
|
3169
3145
|
return !1;
|
|
3170
|
-
let
|
|
3171
|
-
if (!ge(O,
|
|
3146
|
+
let j = t[x];
|
|
3147
|
+
if (!ge(O, j, a))
|
|
3172
3148
|
return !1;
|
|
3173
3149
|
}
|
|
3174
3150
|
return !0;
|
|
@@ -3183,47 +3159,47 @@ function ge(e, t, a) {
|
|
|
3183
3159
|
r(ge, "areObjectsEqual");
|
|
3184
3160
|
|
|
3185
3161
|
// src/router/utils.ts
|
|
3186
|
-
var ke = we(
|
|
3187
|
-
var
|
|
3162
|
+
var ke = we($t(), 1), Ae = we(er(), 1), or = we(rr(), 1);
|
|
3163
|
+
var hn = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, tt = (0, ke.default)(1e3)((e) => {
|
|
3188
3164
|
let t = {
|
|
3189
3165
|
viewMode: void 0,
|
|
3190
3166
|
storyId: void 0,
|
|
3191
3167
|
refId: void 0
|
|
3192
3168
|
};
|
|
3193
3169
|
if (e) {
|
|
3194
|
-
let [, a, n,
|
|
3170
|
+
let [, a, n, l] = e.toLowerCase().match(hn) || [];
|
|
3195
3171
|
a && Object.assign(t, {
|
|
3196
3172
|
viewMode: a,
|
|
3197
|
-
storyId:
|
|
3173
|
+
storyId: l,
|
|
3198
3174
|
refId: n
|
|
3199
3175
|
});
|
|
3200
3176
|
}
|
|
3201
3177
|
return t;
|
|
3202
|
-
}), Re = Symbol("Deeply equal"),
|
|
3178
|
+
}), Re = Symbol("Deeply equal"), Te = /* @__PURE__ */ r((e, t) => {
|
|
3203
3179
|
if (typeof e != typeof t)
|
|
3204
3180
|
return t;
|
|
3205
3181
|
if (Ve(e, t))
|
|
3206
3182
|
return Re;
|
|
3207
3183
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
3208
|
-
let a = t.reduce((n,
|
|
3209
|
-
let z =
|
|
3184
|
+
let a = t.reduce((n, l, v) => {
|
|
3185
|
+
let z = Te(e[v], l);
|
|
3210
3186
|
return z !== Re && (n[v] = z), n;
|
|
3211
3187
|
}, new Array(t.length));
|
|
3212
3188
|
return t.length >= e.length ? a : a.concat(new Array(e.length - t.length).fill(void 0));
|
|
3213
3189
|
}
|
|
3214
3190
|
return me(e) && me(t) ? Object.keys({ ...e, ...t }).reduce((a, n) => {
|
|
3215
|
-
let
|
|
3216
|
-
return
|
|
3191
|
+
let l = Te(e?.[n], t?.[n]);
|
|
3192
|
+
return l === Re ? a : Object.assign(a, { [n]: l });
|
|
3217
3193
|
}, {}) : t;
|
|
3218
|
-
}, "deepDiff"),
|
|
3219
|
-
Ze = /* @__PURE__ */ r((e = "", t) => e === null || e === "" || !
|
|
3220
|
-
typeof t == "boolean" ? !0 : typeof t == "string" ?
|
|
3194
|
+
}, "deepDiff"), nr = /^[a-zA-Z0-9 _-]*$/, pn = /^-?[0-9]+(\.[0-9]+)?$/, ir = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, sr = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,
|
|
3195
|
+
Ze = /* @__PURE__ */ r((e = "", t) => e === null || e === "" || !nr.test(e) ? !1 : t == null || t instanceof Date || typeof t == "number" ||
|
|
3196
|
+
typeof t == "boolean" ? !0 : typeof t == "string" ? nr.test(t) || pn.test(t) || ir.test(t) || sr.test(t) : Array.isArray(t) ? t.every((a) => Ze(
|
|
3221
3197
|
e, a)) : me(t) ? Object.entries(t).every(([a, n]) => Ze(a, n)) : !1, "validateArgs"), et = /* @__PURE__ */ r((e) => e === void 0 ? "!undefin\
|
|
3222
|
-
ed" : e === null ? "!null" : typeof e == "string" ?
|
|
3198
|
+
ed" : e === null ? "!null" : typeof e == "string" ? ir.test(e) ? `!hex(${e.slice(1)})` : sr.test(e) ? `!${e.replace(/[\s%]/g, "")}` : e : typeof e ==
|
|
3223
3199
|
"boolean" ? `!${e}` : e instanceof Date ? `!date(${e.toISOString()})` : Array.isArray(e) ? e.map(et) : me(e) ? Object.entries(e).reduce(
|
|
3224
3200
|
(t, [a, n]) => Object.assign(t, { [a]: et(n) }),
|
|
3225
3201
|
{}
|
|
3226
|
-
) : e, "encodeSpecialValues"),
|
|
3202
|
+
) : e, "encodeSpecialValues"), dn = /* @__PURE__ */ r((e) => {
|
|
3227
3203
|
switch (e) {
|
|
3228
3204
|
case "%20":
|
|
3229
3205
|
return "+";
|
|
@@ -3237,24 +3213,24 @@ ed" : e === null ? "!null" : typeof e == "string" ? sr.test(e) ? `!hex(${e.slice
|
|
|
3237
3213
|
return ":";
|
|
3238
3214
|
}
|
|
3239
3215
|
return e;
|
|
3240
|
-
}, "decodeKnownQueryChar"),
|
|
3241
|
-
let a =
|
|
3216
|
+
}, "decodeKnownQueryChar"), mn = /%[0-9A-F]{2}/g, gn = /* @__PURE__ */ r((e, t) => {
|
|
3217
|
+
let a = Te(e, t);
|
|
3242
3218
|
if (!a || a === Re)
|
|
3243
3219
|
return "";
|
|
3244
|
-
let n = Object.entries(a).reduce((
|
|
3220
|
+
let n = Object.entries(a).reduce((l, [v, z]) => Ze(v, z) ? Object.assign(l, { [v]: z }) : (ar.once.warn(or.dedent`
|
|
3245
3221
|
Omitted potentially unsafe URL args.
|
|
3246
3222
|
|
|
3247
3223
|
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
|
|
3248
|
-
`),
|
|
3224
|
+
`), l), {});
|
|
3249
3225
|
return (0, Ae.stringify)(et(n), {
|
|
3250
3226
|
delimiter: ";",
|
|
3251
3227
|
// we don't actually create multiple query params
|
|
3252
3228
|
nesting: !0,
|
|
3253
3229
|
nestingSyntax: "js"
|
|
3254
3230
|
// encode objects using dot notation: obj.key=val
|
|
3255
|
-
}).replace(
|
|
3256
|
-
}, "buildArgsParam"),
|
|
3257
|
-
search.slice(1) : ""), "queryFromLocation"),
|
|
3231
|
+
}).replace(mn, dn).split(";").map((l) => l.replace("=", ":")).join(";");
|
|
3232
|
+
}, "buildArgsParam"), yn = (0, ke.default)(1e3)((e) => e !== void 0 ? (0, Ae.parse)(e) : {}), rt = /* @__PURE__ */ r((e) => yn(e.search ? e.
|
|
3233
|
+
search.slice(1) : ""), "queryFromLocation"), vn = /* @__PURE__ */ r((e) => {
|
|
3258
3234
|
let t = (0, Ae.stringify)(e);
|
|
3259
3235
|
return t ? "?" + t : "";
|
|
3260
3236
|
}, "stringifyQuery"), nt = (0, ke.default)(1e3)((e, t, a = !0) => {
|
|
@@ -3263,58 +3239,58 @@ search.slice(1) : ""), "queryFromLocation"), On = /* @__PURE__ */ r((e) => {
|
|
|
3263
3239
|
throw new Error("startsWith only works with string targets");
|
|
3264
3240
|
return e && e.startsWith(t) ? { path: e } : null;
|
|
3265
3241
|
}
|
|
3266
|
-
let n = typeof t == "string" && e === t,
|
|
3267
|
-
return n ||
|
|
3242
|
+
let n = typeof t == "string" && e === t, l = e && t && e.match(t);
|
|
3243
|
+
return n || l ? { path: e } : null;
|
|
3268
3244
|
});
|
|
3269
3245
|
|
|
3270
3246
|
// src/router/router.tsx
|
|
3271
|
-
var xe = we(require("react"), 1),
|
|
3272
|
-
var { document:
|
|
3247
|
+
var xe = we(require("react"), 1), jr = require("@storybook/global"), de = we(Or(), 1);
|
|
3248
|
+
var { document: it } = jr.global, bn = /* @__PURE__ */ r(() => `${it.location.pathname}?`, "getBase"), xn = /* @__PURE__ */ r(() => {
|
|
3273
3249
|
let e = de.useNavigate();
|
|
3274
3250
|
return (0, xe.useCallback)((t, { plain: a, ...n } = {}) => {
|
|
3275
3251
|
if (typeof t == "string" && t.startsWith("#")) {
|
|
3276
|
-
t === "#" ? e(
|
|
3252
|
+
t === "#" ? e(it.location.search) : it.location.hash = t;
|
|
3277
3253
|
return;
|
|
3278
3254
|
}
|
|
3279
3255
|
if (typeof t == "string") {
|
|
3280
|
-
let
|
|
3281
|
-
return e(
|
|
3256
|
+
let l = a ? t : `?path=${t}`;
|
|
3257
|
+
return e(l, n);
|
|
3282
3258
|
}
|
|
3283
3259
|
if (typeof t == "number")
|
|
3284
3260
|
return e(t);
|
|
3285
3261
|
}, []);
|
|
3286
|
-
}, "useNavigate"),
|
|
3262
|
+
}, "useNavigate"), wr = /* @__PURE__ */ r(({ to: e, children: t, ...a }) => /* @__PURE__ */ xe.default.createElement(de.Link, { to: `${bn()}\
|
|
3287
3263
|
path=${e}`, ...a }, t), "Link");
|
|
3288
|
-
|
|
3289
|
-
var
|
|
3290
|
-
let t = de.useLocation(), { path: a, singleStory: n } = rt(t), { viewMode:
|
|
3264
|
+
wr.displayName = "QueryLink";
|
|
3265
|
+
var st = /* @__PURE__ */ r(({ children: e }) => {
|
|
3266
|
+
let t = de.useLocation(), { path: a, singleStory: n } = rt(t), { viewMode: l, storyId: v, refId: z } = tt(a);
|
|
3291
3267
|
return /* @__PURE__ */ xe.default.createElement(xe.default.Fragment, null, e({
|
|
3292
3268
|
path: a || "/",
|
|
3293
3269
|
location: t,
|
|
3294
|
-
viewMode:
|
|
3270
|
+
viewMode: l,
|
|
3295
3271
|
storyId: v,
|
|
3296
3272
|
refId: z,
|
|
3297
3273
|
singleStory: n === "true"
|
|
3298
3274
|
}));
|
|
3299
3275
|
}, "Location");
|
|
3300
|
-
|
|
3301
|
-
function
|
|
3276
|
+
st.displayName = "QueryLocation";
|
|
3277
|
+
function ut({
|
|
3302
3278
|
children: e,
|
|
3303
3279
|
path: t,
|
|
3304
3280
|
startsWith: a = !1
|
|
3305
3281
|
}) {
|
|
3306
|
-
return /* @__PURE__ */ xe.default.createElement(
|
|
3282
|
+
return /* @__PURE__ */ xe.default.createElement(st, null, ({ path: n, ...l }) => e({
|
|
3307
3283
|
match: nt(n, t, a),
|
|
3308
|
-
...
|
|
3284
|
+
...l
|
|
3309
3285
|
}));
|
|
3310
3286
|
}
|
|
3311
|
-
r(
|
|
3312
|
-
|
|
3313
|
-
function
|
|
3287
|
+
r(ut, "Match");
|
|
3288
|
+
ut.displayName = "QueryMatch";
|
|
3289
|
+
function Sr(e) {
|
|
3314
3290
|
let { children: t, ...a } = e;
|
|
3315
|
-
return a.startsWith === void 0 && (a.startsWith = !1), /* @__PURE__ */ xe.default.createElement(
|
|
3291
|
+
return a.startsWith === void 0 && (a.startsWith = !1), /* @__PURE__ */ xe.default.createElement(ut, { ...a }, ({ match: l }) => l ? t : null);
|
|
3316
3292
|
}
|
|
3317
|
-
r(
|
|
3318
|
-
|
|
3319
|
-
var
|
|
3293
|
+
r(Sr, "Route");
|
|
3294
|
+
Sr.displayName = "Route";
|
|
3295
|
+
var Pn = /* @__PURE__ */ r((...e) => de.BrowserRouter(...e), "LocationProvider"), On = /* @__PURE__ */ r((...e) => de.Router(...e), "BaseLoc\
|
|
3320
3296
|
ationProvider");
|