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