@argon-router/core 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +601 -661
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createEffect as
|
|
2
|
-
import { spread as
|
|
3
|
-
function
|
|
1
|
+
import { createEffect as B, createStore as T, createEvent as O, sample as x, split as ue, attach as ee, scopeBind as J, withFactory as xe } from "effector";
|
|
2
|
+
import { spread as Fe } from "patronum";
|
|
3
|
+
function re(e, t) {
|
|
4
4
|
var r = Object.keys(e);
|
|
5
5
|
if (Object.getOwnPropertySymbols) {
|
|
6
6
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -13,15 +13,15 @@ function Z(e, t) {
|
|
|
13
13
|
function H(e) {
|
|
14
14
|
for (var t = 1; t < arguments.length; t++) {
|
|
15
15
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
16
|
-
t % 2 ?
|
|
17
|
-
|
|
18
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
16
|
+
t % 2 ? re(Object(r), !0).forEach(function(n) {
|
|
17
|
+
$e(e, n, r[n]);
|
|
18
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : re(Object(r)).forEach(function(n) {
|
|
19
19
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function $e(e, t, r) {
|
|
25
25
|
return (t = je(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
26
26
|
}
|
|
27
27
|
function je(e) {
|
|
@@ -40,55 +40,58 @@ function Se(e, t) {
|
|
|
40
40
|
}
|
|
41
41
|
function Ge(e) {
|
|
42
42
|
let t;
|
|
43
|
-
const r =
|
|
44
|
-
var
|
|
45
|
-
return (
|
|
43
|
+
const r = B(() => {
|
|
44
|
+
var l;
|
|
45
|
+
return (l = t) === null || l === void 0 ? void 0 : l();
|
|
46
46
|
}, {
|
|
47
47
|
name: "waitForAsyncBundleFx",
|
|
48
48
|
sid: "tw7mq7"
|
|
49
|
-
}), n =
|
|
50
|
-
for (const
|
|
51
|
-
var
|
|
52
|
-
await
|
|
49
|
+
}), n = B(async () => {
|
|
50
|
+
for (const y of (l = e.beforeOpen) !== null && l !== void 0 ? l : []) {
|
|
51
|
+
var l;
|
|
52
|
+
await y();
|
|
53
53
|
}
|
|
54
54
|
}, {
|
|
55
55
|
name: "beforeOpenFx",
|
|
56
56
|
sid: "ls74w9"
|
|
57
|
-
}), a =
|
|
57
|
+
}), a = B(async (l) => {
|
|
58
58
|
await r(), await n();
|
|
59
|
-
const
|
|
60
|
-
return
|
|
59
|
+
const y = e.parent;
|
|
60
|
+
return y && await y.internal.openFx(H(H({}, l ?? {
|
|
61
61
|
params: {}
|
|
62
62
|
}), {}, {
|
|
63
|
-
|
|
64
|
-
})),
|
|
63
|
+
navigate: !1
|
|
64
|
+
})), l;
|
|
65
65
|
}, {
|
|
66
66
|
name: "openFx",
|
|
67
67
|
sid: "-hz9h5i"
|
|
68
|
-
}),
|
|
68
|
+
}), i = T({}, {
|
|
69
69
|
name: "$params",
|
|
70
70
|
sid: "rstqrf"
|
|
71
|
-
}),
|
|
71
|
+
}), o = T(!1, {
|
|
72
72
|
name: "$isOpened",
|
|
73
73
|
sid: "-zgx6q9"
|
|
74
|
-
}),
|
|
74
|
+
}), u = a.pending, w = O({
|
|
75
75
|
name: "open",
|
|
76
76
|
sid: "-cby6lj"
|
|
77
|
-
}),
|
|
77
|
+
}), P = O({
|
|
78
78
|
name: "close",
|
|
79
79
|
sid: "7uwhl1"
|
|
80
|
-
}),
|
|
80
|
+
}), E = O({
|
|
81
81
|
name: "opened",
|
|
82
82
|
sid: "44ryfn"
|
|
83
|
-
}),
|
|
83
|
+
}), v = O({
|
|
84
84
|
name: "openedOnServer",
|
|
85
85
|
sid: "-prk6y1"
|
|
86
|
-
}),
|
|
86
|
+
}), j = O({
|
|
87
87
|
name: "openedOnClient",
|
|
88
88
|
sid: "-fw2mlz"
|
|
89
|
-
}), S =
|
|
89
|
+
}), S = O({
|
|
90
|
+
name: "navigated",
|
|
91
|
+
sid: "d2ciwc"
|
|
92
|
+
}), A = O({
|
|
90
93
|
name: "closed",
|
|
91
|
-
sid: "
|
|
94
|
+
sid: "1yn6aj"
|
|
92
95
|
});
|
|
93
96
|
x({
|
|
94
97
|
and: [{
|
|
@@ -96,94 +99,85 @@ function Ge(e) {
|
|
|
96
99
|
target: a
|
|
97
100
|
}],
|
|
98
101
|
or: {
|
|
99
|
-
sid: "
|
|
102
|
+
sid: "t8zigl"
|
|
100
103
|
}
|
|
101
104
|
});
|
|
102
|
-
const
|
|
105
|
+
const k = {};
|
|
103
106
|
return x({
|
|
104
107
|
and: [{
|
|
105
|
-
clock:
|
|
106
|
-
fn: (
|
|
107
|
-
target:
|
|
108
|
+
clock: S,
|
|
109
|
+
fn: (l) => l && "params" in l ? H({}, l.params) : k,
|
|
110
|
+
target: i
|
|
108
111
|
}],
|
|
109
112
|
or: {
|
|
110
|
-
sid: "
|
|
113
|
+
sid: "todr2p"
|
|
111
114
|
}
|
|
112
115
|
}), ue({
|
|
113
116
|
and: [{
|
|
114
|
-
source:
|
|
117
|
+
source: S,
|
|
115
118
|
match: () => typeof window > "u" ? "server" : "client",
|
|
116
119
|
cases: {
|
|
117
|
-
server:
|
|
118
|
-
client:
|
|
120
|
+
server: v,
|
|
121
|
+
client: j
|
|
119
122
|
}
|
|
120
123
|
}],
|
|
121
124
|
or: {
|
|
122
|
-
sid: "
|
|
123
|
-
}
|
|
124
|
-
}), x({
|
|
125
|
-
and: [{
|
|
126
|
-
clock: [A, P],
|
|
127
|
-
target: k
|
|
128
|
-
}],
|
|
129
|
-
or: {
|
|
130
|
-
sid: "ylqojg"
|
|
125
|
+
sid: "u6iynm"
|
|
131
126
|
}
|
|
132
127
|
}), x({
|
|
133
128
|
and: [{
|
|
134
|
-
clock:
|
|
135
|
-
|
|
136
|
-
target: s
|
|
129
|
+
clock: [j, v],
|
|
130
|
+
target: E
|
|
137
131
|
}],
|
|
138
132
|
or: {
|
|
139
|
-
sid: "
|
|
133
|
+
sid: "ymu9q6"
|
|
140
134
|
}
|
|
141
135
|
}), x({
|
|
142
136
|
and: [{
|
|
143
|
-
clock:
|
|
144
|
-
target:
|
|
137
|
+
clock: P,
|
|
138
|
+
target: A
|
|
145
139
|
}],
|
|
146
140
|
or: {
|
|
147
|
-
sid: "
|
|
141
|
+
sid: "z14x5k"
|
|
148
142
|
}
|
|
149
143
|
}), x({
|
|
150
144
|
and: [{
|
|
151
|
-
clock:
|
|
152
|
-
|
|
153
|
-
target: s
|
|
145
|
+
clock: [E.map(() => !0), A.map(() => !1)],
|
|
146
|
+
target: o
|
|
154
147
|
}],
|
|
155
148
|
or: {
|
|
156
|
-
sid: "
|
|
149
|
+
sid: "z3vw4d"
|
|
157
150
|
}
|
|
158
151
|
}), {
|
|
159
|
-
$params:
|
|
160
|
-
$isOpened:
|
|
161
|
-
$isPending:
|
|
152
|
+
$params: i,
|
|
153
|
+
$isOpened: o,
|
|
154
|
+
$isPending: u,
|
|
162
155
|
open: w,
|
|
163
|
-
closed:
|
|
164
|
-
opened:
|
|
165
|
-
openedOnClient:
|
|
166
|
-
openedOnServer:
|
|
156
|
+
closed: A,
|
|
157
|
+
opened: E,
|
|
158
|
+
openedOnClient: j,
|
|
159
|
+
openedOnServer: v,
|
|
167
160
|
internal: H({
|
|
168
|
-
|
|
161
|
+
navigated: S,
|
|
162
|
+
close: P,
|
|
169
163
|
openFx: a,
|
|
170
|
-
setAsyncImport: (
|
|
164
|
+
setAsyncImport: (l) => t = l
|
|
171
165
|
}, e),
|
|
172
166
|
"@@unitShape": () => ({
|
|
173
|
-
params:
|
|
174
|
-
isPending:
|
|
175
|
-
isOpened:
|
|
167
|
+
params: i,
|
|
168
|
+
isPending: u,
|
|
169
|
+
isOpened: o,
|
|
176
170
|
onOpen: w
|
|
177
171
|
})
|
|
178
172
|
};
|
|
179
173
|
}
|
|
180
|
-
var C = {},
|
|
174
|
+
var C = {}, te;
|
|
181
175
|
function ve() {
|
|
182
|
-
if (
|
|
183
|
-
|
|
176
|
+
if (te) return C;
|
|
177
|
+
te = 1, Object.defineProperty(C, "__esModule", {
|
|
184
178
|
value: !0
|
|
185
|
-
}), C.TokenData = void 0, C.parse =
|
|
186
|
-
const e = "/", t = (c) => c, r = /^[$_\p{ID_Start}]$/u, n = /^[$\u200c\u200d\p{ID_Continue}]$/u, a = "https://git.new/pathToRegexpError",
|
|
179
|
+
}), C.TokenData = void 0, C.parse = v, C.compile = j, C.match = k, C.pathToRegexp = l, C.stringify = M;
|
|
180
|
+
const e = "/", t = (c) => c, r = /^[$_\p{ID_Start}]$/u, n = /^[$\u200c\u200d\p{ID_Continue}]$/u, a = "https://git.new/pathToRegexpError", i = {
|
|
187
181
|
// Groups.
|
|
188
182
|
"{": "{",
|
|
189
183
|
"}": "}",
|
|
@@ -196,317 +190,317 @@ function ve() {
|
|
|
196
190
|
"?": "?",
|
|
197
191
|
"!": "!"
|
|
198
192
|
};
|
|
199
|
-
function
|
|
193
|
+
function o(c) {
|
|
200
194
|
return c.replace(/[{}()\[\]+?!:*]/g, "\\$&");
|
|
201
195
|
}
|
|
202
|
-
function
|
|
196
|
+
function u(c) {
|
|
203
197
|
return c.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
204
198
|
}
|
|
205
199
|
function* w(c) {
|
|
206
|
-
const
|
|
207
|
-
let
|
|
208
|
-
function
|
|
209
|
-
let
|
|
210
|
-
if (r.test(
|
|
211
|
-
for (
|
|
212
|
-
|
|
213
|
-
else if (
|
|
214
|
-
let
|
|
215
|
-
for (;
|
|
216
|
-
if (
|
|
217
|
-
|
|
200
|
+
const f = [...c];
|
|
201
|
+
let s = 0;
|
|
202
|
+
function m() {
|
|
203
|
+
let d = "";
|
|
204
|
+
if (r.test(f[++s]))
|
|
205
|
+
for (d += f[s]; n.test(f[++s]); )
|
|
206
|
+
d += f[s];
|
|
207
|
+
else if (f[s] === '"') {
|
|
208
|
+
let p = s;
|
|
209
|
+
for (; s < f.length; ) {
|
|
210
|
+
if (f[++s] === '"') {
|
|
211
|
+
s++, p = 0;
|
|
218
212
|
break;
|
|
219
213
|
}
|
|
220
|
-
|
|
214
|
+
f[s] === "\\" ? d += f[++s] : d += f[s];
|
|
221
215
|
}
|
|
222
|
-
if (
|
|
223
|
-
throw new TypeError(`Unterminated quote at ${
|
|
216
|
+
if (p)
|
|
217
|
+
throw new TypeError(`Unterminated quote at ${p}: ${a}`);
|
|
224
218
|
}
|
|
225
|
-
if (!
|
|
226
|
-
throw new TypeError(`Missing parameter name at ${
|
|
227
|
-
return
|
|
219
|
+
if (!d)
|
|
220
|
+
throw new TypeError(`Missing parameter name at ${s}: ${a}`);
|
|
221
|
+
return d;
|
|
228
222
|
}
|
|
229
|
-
for (;
|
|
230
|
-
const
|
|
231
|
-
if (
|
|
223
|
+
for (; s < f.length; ) {
|
|
224
|
+
const d = f[s], p = i[d];
|
|
225
|
+
if (p)
|
|
232
226
|
yield {
|
|
233
|
-
type:
|
|
234
|
-
index:
|
|
235
|
-
value:
|
|
227
|
+
type: p,
|
|
228
|
+
index: s++,
|
|
229
|
+
value: d
|
|
236
230
|
};
|
|
237
|
-
else if (
|
|
231
|
+
else if (d === "\\")
|
|
238
232
|
yield {
|
|
239
233
|
type: "ESCAPED",
|
|
240
|
-
index:
|
|
241
|
-
value:
|
|
234
|
+
index: s++,
|
|
235
|
+
value: f[s++]
|
|
242
236
|
};
|
|
243
|
-
else if (
|
|
244
|
-
const
|
|
237
|
+
else if (d === ":") {
|
|
238
|
+
const b = m();
|
|
245
239
|
yield {
|
|
246
240
|
type: "PARAM",
|
|
247
|
-
index:
|
|
248
|
-
value:
|
|
241
|
+
index: s,
|
|
242
|
+
value: b
|
|
249
243
|
};
|
|
250
|
-
} else if (
|
|
251
|
-
const
|
|
244
|
+
} else if (d === "*") {
|
|
245
|
+
const b = m();
|
|
252
246
|
yield {
|
|
253
247
|
type: "WILDCARD",
|
|
254
|
-
index:
|
|
255
|
-
value:
|
|
248
|
+
index: s,
|
|
249
|
+
value: b
|
|
256
250
|
};
|
|
257
251
|
} else
|
|
258
252
|
yield {
|
|
259
253
|
type: "CHAR",
|
|
260
|
-
index:
|
|
261
|
-
value:
|
|
254
|
+
index: s,
|
|
255
|
+
value: f[s++]
|
|
262
256
|
};
|
|
263
257
|
}
|
|
264
258
|
return {
|
|
265
259
|
type: "END",
|
|
266
|
-
index:
|
|
260
|
+
index: s,
|
|
267
261
|
value: ""
|
|
268
262
|
};
|
|
269
263
|
}
|
|
270
|
-
class
|
|
271
|
-
constructor(
|
|
272
|
-
this.tokens =
|
|
264
|
+
class P {
|
|
265
|
+
constructor(f) {
|
|
266
|
+
this.tokens = f;
|
|
273
267
|
}
|
|
274
268
|
peek() {
|
|
275
269
|
if (!this._peek) {
|
|
276
|
-
const
|
|
277
|
-
this._peek =
|
|
270
|
+
const f = this.tokens.next();
|
|
271
|
+
this._peek = f.value;
|
|
278
272
|
}
|
|
279
273
|
return this._peek;
|
|
280
274
|
}
|
|
281
|
-
tryConsume(
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
284
|
-
return this._peek = void 0,
|
|
275
|
+
tryConsume(f) {
|
|
276
|
+
const s = this.peek();
|
|
277
|
+
if (s.type === f)
|
|
278
|
+
return this._peek = void 0, s.value;
|
|
285
279
|
}
|
|
286
|
-
consume(
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
280
|
+
consume(f) {
|
|
281
|
+
const s = this.tryConsume(f);
|
|
282
|
+
if (s !== void 0) return s;
|
|
289
283
|
const {
|
|
290
|
-
type:
|
|
291
|
-
index:
|
|
284
|
+
type: m,
|
|
285
|
+
index: d
|
|
292
286
|
} = this.peek();
|
|
293
|
-
throw new TypeError(`Unexpected ${
|
|
287
|
+
throw new TypeError(`Unexpected ${m} at ${d}, expected ${f}: ${a}`);
|
|
294
288
|
}
|
|
295
289
|
text() {
|
|
296
|
-
let
|
|
297
|
-
for (;
|
|
298
|
-
|
|
299
|
-
return
|
|
290
|
+
let f = "", s;
|
|
291
|
+
for (; s = this.tryConsume("CHAR") || this.tryConsume("ESCAPED"); )
|
|
292
|
+
f += s;
|
|
293
|
+
return f;
|
|
300
294
|
}
|
|
301
295
|
}
|
|
302
|
-
class
|
|
303
|
-
constructor(
|
|
304
|
-
this.tokens =
|
|
296
|
+
class E {
|
|
297
|
+
constructor(f) {
|
|
298
|
+
this.tokens = f;
|
|
305
299
|
}
|
|
306
300
|
}
|
|
307
|
-
C.TokenData =
|
|
308
|
-
function
|
|
301
|
+
C.TokenData = E;
|
|
302
|
+
function v(c, f = {}) {
|
|
309
303
|
const {
|
|
310
|
-
encodePath:
|
|
311
|
-
} =
|
|
312
|
-
function
|
|
304
|
+
encodePath: s = t
|
|
305
|
+
} = f, m = new P(w(c));
|
|
306
|
+
function d(b) {
|
|
313
307
|
const g = [];
|
|
314
308
|
for (; ; ) {
|
|
315
|
-
const N =
|
|
309
|
+
const N = m.text();
|
|
316
310
|
N && g.push({
|
|
317
311
|
type: "text",
|
|
318
|
-
value:
|
|
312
|
+
value: s(N)
|
|
319
313
|
});
|
|
320
|
-
const
|
|
321
|
-
if (
|
|
314
|
+
const R = m.tryConsume("PARAM");
|
|
315
|
+
if (R) {
|
|
322
316
|
g.push({
|
|
323
317
|
type: "param",
|
|
324
|
-
name:
|
|
318
|
+
name: R
|
|
325
319
|
});
|
|
326
320
|
continue;
|
|
327
321
|
}
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
322
|
+
const L = m.tryConsume("WILDCARD");
|
|
323
|
+
if (L) {
|
|
330
324
|
g.push({
|
|
331
325
|
type: "wildcard",
|
|
332
|
-
name:
|
|
326
|
+
name: L
|
|
333
327
|
});
|
|
334
328
|
continue;
|
|
335
329
|
}
|
|
336
|
-
if (
|
|
330
|
+
if (m.tryConsume("{")) {
|
|
337
331
|
g.push({
|
|
338
332
|
type: "group",
|
|
339
|
-
tokens:
|
|
333
|
+
tokens: d("}")
|
|
340
334
|
});
|
|
341
335
|
continue;
|
|
342
336
|
}
|
|
343
|
-
return
|
|
337
|
+
return m.consume(b), g;
|
|
344
338
|
}
|
|
345
339
|
}
|
|
346
|
-
const
|
|
347
|
-
return new
|
|
340
|
+
const p = d("END");
|
|
341
|
+
return new E(p);
|
|
348
342
|
}
|
|
349
|
-
function
|
|
343
|
+
function j(c, f = {}) {
|
|
350
344
|
const {
|
|
351
|
-
encode:
|
|
352
|
-
delimiter:
|
|
353
|
-
} =
|
|
345
|
+
encode: s = encodeURIComponent,
|
|
346
|
+
delimiter: m = e
|
|
347
|
+
} = f, d = c instanceof E ? c : v(c, f), p = S(d.tokens, m, s);
|
|
354
348
|
return function(g = {}) {
|
|
355
|
-
const [N, ...
|
|
356
|
-
if (
|
|
357
|
-
throw new TypeError(`Missing parameters: ${
|
|
349
|
+
const [N, ...R] = p(g);
|
|
350
|
+
if (R.length)
|
|
351
|
+
throw new TypeError(`Missing parameters: ${R.join(", ")}`);
|
|
358
352
|
return N;
|
|
359
353
|
};
|
|
360
354
|
}
|
|
361
|
-
function S(c,
|
|
362
|
-
const
|
|
363
|
-
return (
|
|
364
|
-
const
|
|
365
|
-
for (const
|
|
366
|
-
const [g, ...N] =
|
|
367
|
-
|
|
355
|
+
function S(c, f, s) {
|
|
356
|
+
const m = c.map((d) => A(d, f, s));
|
|
357
|
+
return (d) => {
|
|
358
|
+
const p = [""];
|
|
359
|
+
for (const b of m) {
|
|
360
|
+
const [g, ...N] = b(d);
|
|
361
|
+
p[0] += g, p.push(...N);
|
|
368
362
|
}
|
|
369
|
-
return
|
|
363
|
+
return p;
|
|
370
364
|
};
|
|
371
365
|
}
|
|
372
|
-
function
|
|
366
|
+
function A(c, f, s) {
|
|
373
367
|
if (c.type === "text") return () => [c.value];
|
|
374
368
|
if (c.type === "group") {
|
|
375
|
-
const
|
|
376
|
-
return (
|
|
377
|
-
const [
|
|
378
|
-
return g.length ? [""] : [
|
|
369
|
+
const d = S(c.tokens, f, s);
|
|
370
|
+
return (p) => {
|
|
371
|
+
const [b, ...g] = d(p);
|
|
372
|
+
return g.length ? [""] : [b];
|
|
379
373
|
};
|
|
380
374
|
}
|
|
381
|
-
const
|
|
382
|
-
return c.type === "wildcard" &&
|
|
383
|
-
const
|
|
384
|
-
if (
|
|
385
|
-
if (!Array.isArray(
|
|
375
|
+
const m = s || t;
|
|
376
|
+
return c.type === "wildcard" && s !== !1 ? (d) => {
|
|
377
|
+
const p = d[c.name];
|
|
378
|
+
if (p == null) return ["", c.name];
|
|
379
|
+
if (!Array.isArray(p) || p.length === 0)
|
|
386
380
|
throw new TypeError(`Expected "${c.name}" to be a non-empty array`);
|
|
387
|
-
return [
|
|
388
|
-
if (typeof
|
|
381
|
+
return [p.map((b, g) => {
|
|
382
|
+
if (typeof b != "string")
|
|
389
383
|
throw new TypeError(`Expected "${c.name}/${g}" to be a string`);
|
|
390
|
-
return
|
|
391
|
-
}).join(
|
|
392
|
-
} : (
|
|
393
|
-
const
|
|
394
|
-
if (
|
|
395
|
-
if (typeof
|
|
384
|
+
return m(b);
|
|
385
|
+
}).join(f)];
|
|
386
|
+
} : (d) => {
|
|
387
|
+
const p = d[c.name];
|
|
388
|
+
if (p == null) return ["", c.name];
|
|
389
|
+
if (typeof p != "string")
|
|
396
390
|
throw new TypeError(`Expected "${c.name}" to be a string`);
|
|
397
|
-
return [p
|
|
391
|
+
return [m(p)];
|
|
398
392
|
};
|
|
399
393
|
}
|
|
400
|
-
function
|
|
394
|
+
function k(c, f = {}) {
|
|
401
395
|
const {
|
|
402
|
-
decode:
|
|
403
|
-
delimiter:
|
|
404
|
-
} =
|
|
405
|
-
regexp:
|
|
406
|
-
keys:
|
|
407
|
-
} =
|
|
396
|
+
decode: s = decodeURIComponent,
|
|
397
|
+
delimiter: m = e
|
|
398
|
+
} = f, {
|
|
399
|
+
regexp: d,
|
|
400
|
+
keys: p
|
|
401
|
+
} = l(c, f), b = p.map((g) => s === !1 ? t : g.type === "param" ? s : (N) => N.split(m).map(s));
|
|
408
402
|
return function(N) {
|
|
409
|
-
const
|
|
410
|
-
if (!
|
|
411
|
-
const
|
|
412
|
-
for (let
|
|
413
|
-
if (
|
|
414
|
-
const
|
|
415
|
-
|
|
403
|
+
const R = d.exec(N);
|
|
404
|
+
if (!R) return !1;
|
|
405
|
+
const L = R[0], U = /* @__PURE__ */ Object.create(null);
|
|
406
|
+
for (let z = 1; z < R.length; z++) {
|
|
407
|
+
if (R[z] === void 0) continue;
|
|
408
|
+
const q = p[z - 1], K = b[z - 1];
|
|
409
|
+
U[q.name] = K(R[z]);
|
|
416
410
|
}
|
|
417
411
|
return {
|
|
418
|
-
path:
|
|
419
|
-
params:
|
|
412
|
+
path: L,
|
|
413
|
+
params: U
|
|
420
414
|
};
|
|
421
415
|
};
|
|
422
416
|
}
|
|
423
|
-
function
|
|
417
|
+
function l(c, f = {}) {
|
|
424
418
|
const {
|
|
425
|
-
delimiter:
|
|
426
|
-
end:
|
|
427
|
-
sensitive:
|
|
428
|
-
trailing:
|
|
429
|
-
} =
|
|
419
|
+
delimiter: s = e,
|
|
420
|
+
end: m = !0,
|
|
421
|
+
sensitive: d = !1,
|
|
422
|
+
trailing: p = !0
|
|
423
|
+
} = f, b = [], g = [], N = d ? "" : "i", L = (Array.isArray(c) ? c : [c]).map((q) => q instanceof E ? q : v(q, f));
|
|
430
424
|
for (const {
|
|
431
|
-
tokens:
|
|
432
|
-
} of
|
|
433
|
-
for (const K of
|
|
434
|
-
const
|
|
435
|
-
g.push(
|
|
425
|
+
tokens: q
|
|
426
|
+
} of L)
|
|
427
|
+
for (const K of y(q, 0, [])) {
|
|
428
|
+
const Oe = h(K, s, b);
|
|
429
|
+
g.push(Oe);
|
|
436
430
|
}
|
|
437
|
-
let
|
|
438
|
-
return
|
|
439
|
-
regexp: new RegExp(
|
|
440
|
-
keys:
|
|
431
|
+
let U = `^(?:${g.join("|")})`;
|
|
432
|
+
return p && (U += `(?:${u(s)}$)?`), U += m ? "$" : `(?=${u(s)}|$)`, {
|
|
433
|
+
regexp: new RegExp(U, N),
|
|
434
|
+
keys: b
|
|
441
435
|
};
|
|
442
436
|
}
|
|
443
|
-
function*
|
|
444
|
-
if (
|
|
445
|
-
return yield
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
const
|
|
449
|
-
for (const
|
|
450
|
-
yield*
|
|
437
|
+
function* y(c, f, s) {
|
|
438
|
+
if (f === c.length)
|
|
439
|
+
return yield s;
|
|
440
|
+
const m = c[f];
|
|
441
|
+
if (m.type === "group") {
|
|
442
|
+
const d = s.slice();
|
|
443
|
+
for (const p of y(m.tokens, 0, d))
|
|
444
|
+
yield* y(c, f + 1, p);
|
|
451
445
|
} else
|
|
452
|
-
|
|
453
|
-
yield*
|
|
446
|
+
s.push(m);
|
|
447
|
+
yield* y(c, f + 1, s);
|
|
454
448
|
}
|
|
455
|
-
function
|
|
456
|
-
let
|
|
457
|
-
for (let
|
|
458
|
-
const g = c[
|
|
449
|
+
function h(c, f, s) {
|
|
450
|
+
let m = "", d = "", p = !0;
|
|
451
|
+
for (let b = 0; b < c.length; b++) {
|
|
452
|
+
const g = c[b];
|
|
459
453
|
if (g.type === "text") {
|
|
460
|
-
|
|
454
|
+
m += u(g.value), d += g.value, p || (p = g.value.includes(f));
|
|
461
455
|
continue;
|
|
462
456
|
}
|
|
463
457
|
if (g.type === "param" || g.type === "wildcard") {
|
|
464
|
-
if (!
|
|
458
|
+
if (!p && !d)
|
|
465
459
|
throw new TypeError(`Missing text after "${g.name}": ${a}`);
|
|
466
|
-
g.type === "param" ?
|
|
460
|
+
g.type === "param" ? m += `(${$(f, p ? "" : d)}+)` : m += "([\\s\\S]+)", s.push(g), d = "", p = !1;
|
|
467
461
|
continue;
|
|
468
462
|
}
|
|
469
463
|
}
|
|
470
|
-
return
|
|
464
|
+
return m;
|
|
471
465
|
}
|
|
472
|
-
function
|
|
473
|
-
return
|
|
466
|
+
function $(c, f) {
|
|
467
|
+
return f.length < 2 ? c.length < 2 ? `[^${u(c + f)}]` : `(?:(?!${u(c)})[^${u(f)}])` : c.length < 2 ? `(?:(?!${u(f)})[^${u(c)}])` : `(?:(?!${u(f)}|${u(c)})[\\s\\S])`;
|
|
474
468
|
}
|
|
475
|
-
function
|
|
476
|
-
return c.tokens.map(function
|
|
477
|
-
if (
|
|
478
|
-
if (
|
|
479
|
-
return `{${
|
|
480
|
-
const
|
|
481
|
-
if (
|
|
482
|
-
if (
|
|
483
|
-
throw new TypeError(`Unexpected token: ${
|
|
469
|
+
function M(c) {
|
|
470
|
+
return c.tokens.map(function f(s, m, d) {
|
|
471
|
+
if (s.type === "text") return o(s.value);
|
|
472
|
+
if (s.type === "group")
|
|
473
|
+
return `{${s.tokens.map(f).join("")}}`;
|
|
474
|
+
const b = _(s.name) && V(d[m + 1]) ? s.name : JSON.stringify(s.name);
|
|
475
|
+
if (s.type === "param") return `:${b}`;
|
|
476
|
+
if (s.type === "wildcard") return `*${b}`;
|
|
477
|
+
throw new TypeError(`Unexpected token: ${s}`);
|
|
484
478
|
}).join("");
|
|
485
479
|
}
|
|
486
|
-
function
|
|
487
|
-
const [
|
|
488
|
-
return r.test(
|
|
480
|
+
function _(c) {
|
|
481
|
+
const [f, ...s] = c;
|
|
482
|
+
return r.test(f) ? s.every((m) => n.test(m)) : !1;
|
|
489
483
|
}
|
|
490
|
-
function
|
|
484
|
+
function V(c) {
|
|
491
485
|
return (c == null ? void 0 : c.type) !== "text" ? !0 : !n.test(c.value[0]);
|
|
492
486
|
}
|
|
493
487
|
return C;
|
|
494
488
|
}
|
|
495
|
-
var
|
|
496
|
-
const Ee = Symbol("any"),
|
|
489
|
+
var ne = ve();
|
|
490
|
+
const Ee = Symbol("any"), Pe = Symbol("number"), Ae = Symbol("string"), ke = Symbol("array"), Ne = Symbol("boolean"), D = {
|
|
497
491
|
any: Ee,
|
|
498
|
-
number:
|
|
499
|
-
string:
|
|
500
|
-
array:
|
|
501
|
-
boolean:
|
|
492
|
+
number: Pe,
|
|
493
|
+
string: Ae,
|
|
494
|
+
array: ke,
|
|
495
|
+
boolean: Ne
|
|
502
496
|
};
|
|
503
|
-
function
|
|
497
|
+
function ae(e, t) {
|
|
504
498
|
for (const r of e)
|
|
505
499
|
if (t.includes(r))
|
|
506
500
|
return !0;
|
|
507
501
|
return !1;
|
|
508
502
|
}
|
|
509
|
-
function
|
|
503
|
+
function se(e, t) {
|
|
510
504
|
for (const r in t) {
|
|
511
505
|
const n = t[r];
|
|
512
506
|
if (Array.isArray(n) && (!e[r] || JSON.stringify(n) !== e[r]))
|
|
@@ -534,27 +528,27 @@ function ne(e, t) {
|
|
|
534
528
|
}
|
|
535
529
|
}
|
|
536
530
|
switch (n) {
|
|
537
|
-
case
|
|
531
|
+
case D.any: {
|
|
538
532
|
if (!e[r])
|
|
539
533
|
return !1;
|
|
540
534
|
break;
|
|
541
535
|
}
|
|
542
|
-
case
|
|
536
|
+
case D.string: {
|
|
543
537
|
if (!e[r] || Array.isArray(e[r]))
|
|
544
538
|
return !1;
|
|
545
539
|
break;
|
|
546
540
|
}
|
|
547
|
-
case
|
|
541
|
+
case D.array: {
|
|
548
542
|
if (!e[r] || !Array.isArray(e[r]))
|
|
549
543
|
return !1;
|
|
550
544
|
break;
|
|
551
545
|
}
|
|
552
|
-
case
|
|
546
|
+
case D.number: {
|
|
553
547
|
if (!e[r] || Array.isArray(e[r]) || isNaN(parseInt(e[r])) && isNaN(parseFloat(e[r])))
|
|
554
548
|
return !1;
|
|
555
549
|
break;
|
|
556
550
|
}
|
|
557
|
-
case
|
|
551
|
+
case D.boolean: {
|
|
558
552
|
if (!e[r] || Array.isArray(e[r]) || !["0", "1", "false", "true"].includes(e[r]))
|
|
559
553
|
return !1;
|
|
560
554
|
break;
|
|
@@ -563,172 +557,162 @@ function ne(e, t) {
|
|
|
563
557
|
}
|
|
564
558
|
return !0;
|
|
565
559
|
}
|
|
566
|
-
function
|
|
560
|
+
function Re(e, t) {
|
|
567
561
|
const r = {};
|
|
568
562
|
for (const n in t) {
|
|
569
|
-
const a = t[n],
|
|
563
|
+
const a = t[n], i = e[n];
|
|
570
564
|
if (Array.isArray(a)) {
|
|
571
|
-
const
|
|
572
|
-
r[n] =
|
|
565
|
+
const o = e[n];
|
|
566
|
+
r[n] = o;
|
|
573
567
|
continue;
|
|
574
568
|
}
|
|
575
569
|
switch (typeof a) {
|
|
576
570
|
case "number": {
|
|
577
|
-
r[n] = isNaN(parseInt(
|
|
571
|
+
r[n] = isNaN(parseInt(i)) ? parseFloat(i) : parseInt(i);
|
|
578
572
|
break;
|
|
579
573
|
}
|
|
580
574
|
case "object": {
|
|
581
|
-
r[n] = JSON.parse(
|
|
575
|
+
r[n] = JSON.parse(i);
|
|
582
576
|
break;
|
|
583
577
|
}
|
|
584
578
|
case "string":
|
|
585
|
-
r[n] =
|
|
579
|
+
r[n] = i;
|
|
586
580
|
case "boolean": {
|
|
587
|
-
r[n] =
|
|
581
|
+
r[n] = i === "1" || i === "true";
|
|
588
582
|
break;
|
|
589
583
|
}
|
|
590
584
|
}
|
|
591
585
|
switch (a) {
|
|
592
|
-
case
|
|
593
|
-
case
|
|
594
|
-
case
|
|
586
|
+
case D.any:
|
|
587
|
+
case D.string:
|
|
588
|
+
case D.array: {
|
|
595
589
|
r[n] = e[n];
|
|
596
590
|
break;
|
|
597
591
|
}
|
|
598
|
-
case
|
|
599
|
-
const
|
|
600
|
-
r[n] = isNaN(parseInt(
|
|
592
|
+
case D.number: {
|
|
593
|
+
const o = e[n];
|
|
594
|
+
r[n] = isNaN(parseInt(o)) ? parseFloat(o) : parseInt(o);
|
|
601
595
|
break;
|
|
602
596
|
}
|
|
603
|
-
case
|
|
604
|
-
const
|
|
605
|
-
r[n] =
|
|
597
|
+
case D.boolean: {
|
|
598
|
+
const o = e[n];
|
|
599
|
+
r[n] = o === "1" || o === "true";
|
|
606
600
|
break;
|
|
607
601
|
}
|
|
608
602
|
}
|
|
609
603
|
}
|
|
610
604
|
return r;
|
|
611
605
|
}
|
|
612
|
-
function
|
|
606
|
+
function Ce(e) {
|
|
613
607
|
let {
|
|
614
608
|
$activeRoutes: t,
|
|
615
|
-
$
|
|
616
|
-
|
|
617
|
-
navigateFx: a
|
|
609
|
+
$query: r,
|
|
610
|
+
navigate: n
|
|
618
611
|
} = e;
|
|
619
|
-
return (
|
|
612
|
+
return (a) => {
|
|
620
613
|
const {
|
|
621
|
-
parameters:
|
|
622
|
-
forRoutes:
|
|
623
|
-
} =
|
|
614
|
+
parameters: i,
|
|
615
|
+
forRoutes: o
|
|
616
|
+
} = a, u = T(!1, {
|
|
624
617
|
name: "$entered",
|
|
625
|
-
sid: "
|
|
626
|
-
}),
|
|
618
|
+
sid: "vsdvtz"
|
|
619
|
+
}), w = O({
|
|
627
620
|
name: "entered",
|
|
628
|
-
sid: "-
|
|
629
|
-
}),
|
|
621
|
+
sid: "-fzpsd2"
|
|
622
|
+
}), P = O({
|
|
630
623
|
name: "exited",
|
|
631
|
-
sid: "
|
|
632
|
-
}),
|
|
624
|
+
sid: "ygmmw5"
|
|
625
|
+
}), E = O({
|
|
633
626
|
name: "exit",
|
|
634
|
-
sid: "-
|
|
635
|
-
}),
|
|
627
|
+
sid: "-934tq2"
|
|
628
|
+
}), v = O({
|
|
636
629
|
name: "changeEntered",
|
|
637
|
-
sid: "-
|
|
630
|
+
sid: "-19xw1"
|
|
638
631
|
});
|
|
639
632
|
return x({
|
|
640
633
|
and: [{
|
|
641
|
-
clock:
|
|
642
|
-
target:
|
|
634
|
+
clock: v,
|
|
635
|
+
target: u
|
|
643
636
|
}],
|
|
644
637
|
or: {
|
|
645
|
-
sid: "-
|
|
638
|
+
sid: "-h9twmc"
|
|
646
639
|
}
|
|
647
640
|
}), x({
|
|
648
641
|
and: [{
|
|
649
642
|
source: {
|
|
650
643
|
activeRoutes: t,
|
|
651
|
-
query:
|
|
644
|
+
query: r
|
|
652
645
|
},
|
|
653
|
-
filter: (
|
|
646
|
+
filter: (j) => {
|
|
654
647
|
let {
|
|
655
|
-
activeRoutes:
|
|
656
|
-
query:
|
|
657
|
-
} =
|
|
658
|
-
return (!
|
|
648
|
+
activeRoutes: S,
|
|
649
|
+
query: A
|
|
650
|
+
} = j;
|
|
651
|
+
return (!o || ae(o, S)) && se(A, i);
|
|
659
652
|
},
|
|
660
|
-
fn: (
|
|
653
|
+
fn: (j) => {
|
|
661
654
|
let {
|
|
662
|
-
query:
|
|
663
|
-
} =
|
|
664
|
-
return
|
|
655
|
+
query: S
|
|
656
|
+
} = j;
|
|
657
|
+
return Re(S, i);
|
|
665
658
|
},
|
|
666
|
-
target: [
|
|
659
|
+
target: [w, v.prepend(() => !0)]
|
|
667
660
|
}],
|
|
668
661
|
or: {
|
|
669
|
-
sid: "-
|
|
662
|
+
sid: "-gvj96y"
|
|
670
663
|
}
|
|
671
664
|
}), x({
|
|
672
665
|
and: [{
|
|
673
666
|
source: {
|
|
674
667
|
activeRoutes: t,
|
|
675
|
-
query:
|
|
676
|
-
entered:
|
|
668
|
+
query: r,
|
|
669
|
+
entered: u
|
|
677
670
|
},
|
|
678
|
-
filter: (
|
|
671
|
+
filter: (j) => {
|
|
679
672
|
let {
|
|
680
|
-
activeRoutes:
|
|
681
|
-
query:
|
|
682
|
-
entered:
|
|
683
|
-
} =
|
|
684
|
-
return
|
|
673
|
+
activeRoutes: S,
|
|
674
|
+
query: A,
|
|
675
|
+
entered: k
|
|
676
|
+
} = j;
|
|
677
|
+
return k && !((!o || ae(o, S)) && se(A, i));
|
|
685
678
|
},
|
|
686
|
-
target: [
|
|
687
|
-
}),
|
|
679
|
+
target: [P.prepend(() => {
|
|
680
|
+
}), v.prepend(() => !1)]
|
|
688
681
|
}],
|
|
689
682
|
or: {
|
|
690
|
-
sid: "-
|
|
683
|
+
sid: "-gf1fe4"
|
|
691
684
|
}
|
|
692
685
|
}), x({
|
|
693
686
|
and: [{
|
|
694
|
-
clock:
|
|
695
|
-
source:
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
path: y,
|
|
702
|
-
query: R
|
|
703
|
-
} = S;
|
|
704
|
-
if (v && v.ignoreParams) {
|
|
705
|
-
const h = {};
|
|
706
|
-
for (const b of v.ignoreParams)
|
|
707
|
-
R[b] && (h[b] = R[b]);
|
|
687
|
+
clock: E,
|
|
688
|
+
source: r,
|
|
689
|
+
fn: (j, S) => {
|
|
690
|
+
if (S && S.ignoreParams) {
|
|
691
|
+
const A = {};
|
|
692
|
+
for (const k of S.ignoreParams)
|
|
693
|
+
j[k] && (A[k] = j[k]);
|
|
708
694
|
return {
|
|
709
|
-
query:
|
|
710
|
-
path: y
|
|
695
|
+
query: A
|
|
711
696
|
};
|
|
712
697
|
}
|
|
713
698
|
return {
|
|
714
|
-
query: {}
|
|
715
|
-
path: y
|
|
699
|
+
query: {}
|
|
716
700
|
};
|
|
717
701
|
},
|
|
718
|
-
target:
|
|
702
|
+
target: n
|
|
719
703
|
}],
|
|
720
704
|
or: {
|
|
721
|
-
sid: "-
|
|
705
|
+
sid: "-fvsmmh"
|
|
722
706
|
}
|
|
723
707
|
}), {
|
|
724
|
-
entered:
|
|
725
|
-
exited:
|
|
726
|
-
exit:
|
|
708
|
+
entered: w,
|
|
709
|
+
exited: P,
|
|
710
|
+
exit: E
|
|
727
711
|
};
|
|
728
712
|
};
|
|
729
713
|
}
|
|
730
|
-
const
|
|
731
|
-
function
|
|
714
|
+
const le = "%[a-f0-9]{2}", oe = new RegExp("(" + le + ")|([^%]+?)", "gi"), ie = new RegExp("(" + le + ")+", "gi");
|
|
715
|
+
function G(e, t) {
|
|
732
716
|
try {
|
|
733
717
|
return [decodeURIComponent(e.join(""))];
|
|
734
718
|
} catch {
|
|
@@ -737,32 +721,32 @@ function W(e, t) {
|
|
|
737
721
|
return e;
|
|
738
722
|
t = t || 1;
|
|
739
723
|
const r = e.slice(0, t), n = e.slice(t);
|
|
740
|
-
return Array.prototype.concat.call([],
|
|
724
|
+
return Array.prototype.concat.call([], G(r), G(n));
|
|
741
725
|
}
|
|
742
|
-
function
|
|
726
|
+
function De(e) {
|
|
743
727
|
try {
|
|
744
728
|
return decodeURIComponent(e);
|
|
745
729
|
} catch {
|
|
746
|
-
let t = e.match(
|
|
730
|
+
let t = e.match(oe) || [];
|
|
747
731
|
for (let r = 1; r < t.length; r++)
|
|
748
|
-
e =
|
|
732
|
+
e = G(t, r).join(""), t = e.match(oe) || [];
|
|
749
733
|
return e;
|
|
750
734
|
}
|
|
751
735
|
}
|
|
752
|
-
function
|
|
736
|
+
function Ie(e) {
|
|
753
737
|
const t = {
|
|
754
738
|
"%FE%FF": "��",
|
|
755
739
|
"%FF%FE": "��"
|
|
756
740
|
};
|
|
757
|
-
let r =
|
|
741
|
+
let r = ie.exec(e);
|
|
758
742
|
for (; r; ) {
|
|
759
743
|
try {
|
|
760
744
|
t[r[0]] = decodeURIComponent(r[0]);
|
|
761
745
|
} catch {
|
|
762
|
-
const a =
|
|
746
|
+
const a = De(r[0]);
|
|
763
747
|
a !== r[0] && (t[r[0]] = a);
|
|
764
748
|
}
|
|
765
|
-
r =
|
|
749
|
+
r = ie.exec(e);
|
|
766
750
|
}
|
|
767
751
|
t["%C2"] = "�";
|
|
768
752
|
const n = Object.keys(t);
|
|
@@ -776,10 +760,10 @@ function Te(e) {
|
|
|
776
760
|
try {
|
|
777
761
|
return decodeURIComponent(e);
|
|
778
762
|
} catch {
|
|
779
|
-
return
|
|
763
|
+
return Ie(e);
|
|
780
764
|
}
|
|
781
765
|
}
|
|
782
|
-
function
|
|
766
|
+
function _e(e, t) {
|
|
783
767
|
const r = {};
|
|
784
768
|
if (Array.isArray(t))
|
|
785
769
|
for (const n of t) {
|
|
@@ -790,13 +774,13 @@ function Ue(e, t) {
|
|
|
790
774
|
for (const n of Reflect.ownKeys(e)) {
|
|
791
775
|
const a = Object.getOwnPropertyDescriptor(e, n);
|
|
792
776
|
if (a.enumerable) {
|
|
793
|
-
const
|
|
794
|
-
t(n,
|
|
777
|
+
const i = e[n];
|
|
778
|
+
t(n, i, e) && Object.defineProperty(r, n, a);
|
|
795
779
|
}
|
|
796
780
|
}
|
|
797
781
|
return r;
|
|
798
782
|
}
|
|
799
|
-
function
|
|
783
|
+
function de(e, t) {
|
|
800
784
|
if (!(typeof e == "string" && typeof t == "string"))
|
|
801
785
|
throw new TypeError("Expected the arguments to be of type `string`");
|
|
802
786
|
if (e === "" || t === "")
|
|
@@ -804,26 +788,26 @@ function le(e, t) {
|
|
|
804
788
|
const r = e.indexOf(t);
|
|
805
789
|
return r === -1 ? [] : [e.slice(0, r), e.slice(r + t.length)];
|
|
806
790
|
}
|
|
807
|
-
const
|
|
808
|
-
function
|
|
791
|
+
const Ue = (e) => e == null, ze = (e) => encodeURIComponent(e).replaceAll(/[!'()*]/g, (t) => `%${t.charCodeAt(0).toString(16).toUpperCase()}`), X = Symbol("encodeFragmentIdentifier");
|
|
792
|
+
function qe(e) {
|
|
809
793
|
switch (e.arrayFormat) {
|
|
810
794
|
case "index":
|
|
811
795
|
return (t) => (r, n) => {
|
|
812
796
|
const a = r.length;
|
|
813
|
-
return n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [
|
|
797
|
+
return n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [F(t, e), "[", a, "]"].join("")] : [...r, [F(t, e), "[", F(a, e), "]=", F(n, e)].join("")];
|
|
814
798
|
};
|
|
815
799
|
case "bracket":
|
|
816
|
-
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [
|
|
800
|
+
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [F(t, e), "[]"].join("")] : [...r, [F(t, e), "[]=", F(n, e)].join("")];
|
|
817
801
|
case "colon-list-separator":
|
|
818
|
-
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [
|
|
802
|
+
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [F(t, e), ":list="].join("")] : [...r, [F(t, e), ":list=", F(n, e)].join("")];
|
|
819
803
|
case "comma":
|
|
820
804
|
case "separator":
|
|
821
805
|
case "bracket-separator": {
|
|
822
806
|
const t = e.arrayFormat === "bracket-separator" ? "[]=" : "=";
|
|
823
|
-
return (r) => (n, a) => a === void 0 || e.skipNull && a === null || e.skipEmptyString && a === "" ? n : (a = a === null ? "" : a, n.length === 0 ? [[
|
|
807
|
+
return (r) => (n, a) => a === void 0 || e.skipNull && a === null || e.skipEmptyString && a === "" ? n : (a = a === null ? "" : a, n.length === 0 ? [[F(r, e), t, F(a, e)].join("")] : [[n, F(a, e)].join(e.arrayFormatSeparator)]);
|
|
824
808
|
}
|
|
825
809
|
default:
|
|
826
|
-
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r,
|
|
810
|
+
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, F(t, e)] : [...r, [F(t, e), "=", F(n, e)].join("")];
|
|
827
811
|
}
|
|
828
812
|
}
|
|
829
813
|
function Le(e) {
|
|
@@ -864,24 +848,24 @@ function Le(e) {
|
|
|
864
848
|
case "comma":
|
|
865
849
|
case "separator":
|
|
866
850
|
return (r, n, a) => {
|
|
867
|
-
const
|
|
868
|
-
n =
|
|
869
|
-
const
|
|
870
|
-
a[r] =
|
|
851
|
+
const i = typeof n == "string" && n.includes(e.arrayFormatSeparator), o = typeof n == "string" && !i && I(n, e).includes(e.arrayFormatSeparator);
|
|
852
|
+
n = o ? I(n, e) : n;
|
|
853
|
+
const u = i || o ? n.split(e.arrayFormatSeparator).map((w) => I(w, e)) : n === null ? n : I(n, e);
|
|
854
|
+
a[r] = u;
|
|
871
855
|
};
|
|
872
856
|
case "bracket-separator":
|
|
873
857
|
return (r, n, a) => {
|
|
874
|
-
const
|
|
875
|
-
if (r = r.replace(/\[]$/, ""), !
|
|
876
|
-
a[r] = n &&
|
|
858
|
+
const i = /(\[])$/.test(r);
|
|
859
|
+
if (r = r.replace(/\[]$/, ""), !i) {
|
|
860
|
+
a[r] = n && I(n, e);
|
|
877
861
|
return;
|
|
878
862
|
}
|
|
879
|
-
const
|
|
863
|
+
const o = n === null ? [] : I(n, e).split(e.arrayFormatSeparator);
|
|
880
864
|
if (a[r] === void 0) {
|
|
881
|
-
a[r] =
|
|
865
|
+
a[r] = o;
|
|
882
866
|
return;
|
|
883
867
|
}
|
|
884
|
-
a[r] = [...a[r], ...
|
|
868
|
+
a[r] = [...a[r], ...o];
|
|
885
869
|
};
|
|
886
870
|
default:
|
|
887
871
|
return (r, n, a) => {
|
|
@@ -893,20 +877,20 @@ function Le(e) {
|
|
|
893
877
|
};
|
|
894
878
|
}
|
|
895
879
|
}
|
|
896
|
-
function
|
|
880
|
+
function pe(e) {
|
|
897
881
|
if (typeof e != "string" || e.length !== 1)
|
|
898
882
|
throw new TypeError("arrayFormatSeparator must be single character string");
|
|
899
883
|
}
|
|
900
|
-
function
|
|
901
|
-
return t.encode ? t.strict ?
|
|
884
|
+
function F(e, t) {
|
|
885
|
+
return t.encode ? t.strict ? ze(e) : encodeURIComponent(e) : e;
|
|
902
886
|
}
|
|
903
|
-
function
|
|
887
|
+
function I(e, t) {
|
|
904
888
|
return t.decode ? Te(e) : e;
|
|
905
889
|
}
|
|
906
|
-
function pe(e) {
|
|
907
|
-
return Array.isArray(e) ? e.sort() : typeof e == "object" ? pe(Object.keys(e)).sort((t, r) => Number(t) - Number(r)).map((t) => e[t]) : e;
|
|
908
|
-
}
|
|
909
890
|
function me(e) {
|
|
891
|
+
return Array.isArray(e) ? e.sort() : typeof e == "object" ? me(Object.keys(e)).sort((t, r) => Number(t) - Number(r)).map((t) => e[t]) : e;
|
|
892
|
+
}
|
|
893
|
+
function ye(e) {
|
|
910
894
|
const t = e.indexOf("#");
|
|
911
895
|
return t !== -1 && (e = e.slice(0, t)), e;
|
|
912
896
|
}
|
|
@@ -915,15 +899,15 @@ function Me(e) {
|
|
|
915
899
|
const r = e.indexOf("#");
|
|
916
900
|
return r !== -1 && (t = e.slice(r)), t;
|
|
917
901
|
}
|
|
918
|
-
function
|
|
902
|
+
function ce(e, t, r) {
|
|
919
903
|
return r === "string" && typeof e == "string" ? e : typeof r == "function" && typeof e == "string" ? r(e) : t.parseBooleans && e !== null && (e.toLowerCase() === "true" || e.toLowerCase() === "false") ? e.toLowerCase() === "true" : r === "number" && !Number.isNaN(Number(e)) && typeof e == "string" && e.trim() !== "" || t.parseNumbers && !Number.isNaN(Number(e)) && typeof e == "string" && e.trim() !== "" ? Number(e) : e;
|
|
920
904
|
}
|
|
921
|
-
function
|
|
922
|
-
e =
|
|
905
|
+
function Y(e) {
|
|
906
|
+
e = ye(e);
|
|
923
907
|
const t = e.indexOf("?");
|
|
924
908
|
return t === -1 ? "" : e.slice(t + 1);
|
|
925
909
|
}
|
|
926
|
-
function
|
|
910
|
+
function Z(e, t) {
|
|
927
911
|
t = {
|
|
928
912
|
decode: !0,
|
|
929
913
|
sort: !0,
|
|
@@ -933,30 +917,30 @@ function Y(e, t) {
|
|
|
933
917
|
parseBooleans: !1,
|
|
934
918
|
types: /* @__PURE__ */ Object.create(null),
|
|
935
919
|
...t
|
|
936
|
-
},
|
|
920
|
+
}, pe(t.arrayFormatSeparator);
|
|
937
921
|
const r = Le(t), n = /* @__PURE__ */ Object.create(null);
|
|
938
922
|
if (typeof e != "string" || (e = e.trim().replace(/^[?#&]/, ""), !e))
|
|
939
923
|
return n;
|
|
940
924
|
for (const a of e.split("&")) {
|
|
941
925
|
if (a === "")
|
|
942
926
|
continue;
|
|
943
|
-
const
|
|
944
|
-
let [
|
|
945
|
-
|
|
927
|
+
const i = t.decode ? a.replaceAll("+", " ") : a;
|
|
928
|
+
let [o, u] = de(i, "=");
|
|
929
|
+
o === void 0 && (o = i), u = u === void 0 ? null : ["comma", "separator", "bracket-separator"].includes(t.arrayFormat) ? u : I(u, t), r(I(o, t), u, n);
|
|
946
930
|
}
|
|
947
|
-
for (const [a,
|
|
948
|
-
if (typeof
|
|
949
|
-
for (const [
|
|
931
|
+
for (const [a, i] of Object.entries(n))
|
|
932
|
+
if (typeof i == "object" && i !== null && t.types[a] !== "string")
|
|
933
|
+
for (const [o, u] of Object.entries(i)) {
|
|
950
934
|
const w = t.types[a] ? t.types[a].replace("[]", "") : void 0;
|
|
951
|
-
|
|
935
|
+
i[o] = ce(u, t, w);
|
|
952
936
|
}
|
|
953
|
-
else typeof
|
|
954
|
-
return t.sort === !1 ? n : (t.sort === !0 ? Object.keys(n).sort() : Object.keys(n).sort(t.sort)).reduce((a,
|
|
955
|
-
const
|
|
956
|
-
return a[
|
|
937
|
+
else typeof i == "object" && i !== null && t.types[a] === "string" ? n[a] = Object.values(i).join(t.arrayFormatSeparator) : n[a] = ce(i, t, t.types[a]);
|
|
938
|
+
return t.sort === !1 ? n : (t.sort === !0 ? Object.keys(n).sort() : Object.keys(n).sort(t.sort)).reduce((a, i) => {
|
|
939
|
+
const o = n[i];
|
|
940
|
+
return a[i] = o && typeof o == "object" && !Array.isArray(o) ? me(o) : o, a;
|
|
957
941
|
}, /* @__PURE__ */ Object.create(null));
|
|
958
942
|
}
|
|
959
|
-
function
|
|
943
|
+
function ge(e, t) {
|
|
960
944
|
if (!e)
|
|
961
945
|
return "";
|
|
962
946
|
t = {
|
|
@@ -965,85 +949,85 @@ function ye(e, t) {
|
|
|
965
949
|
arrayFormat: "none",
|
|
966
950
|
arrayFormatSeparator: ",",
|
|
967
951
|
...t
|
|
968
|
-
},
|
|
969
|
-
const r = (
|
|
970
|
-
for (const [
|
|
971
|
-
r(
|
|
972
|
-
const
|
|
973
|
-
return t.sort !== !1 &&
|
|
974
|
-
const
|
|
975
|
-
return
|
|
976
|
-
}).filter((
|
|
952
|
+
}, pe(t.arrayFormatSeparator);
|
|
953
|
+
const r = (o) => t.skipNull && Ue(e[o]) || t.skipEmptyString && e[o] === "", n = qe(t), a = {};
|
|
954
|
+
for (const [o, u] of Object.entries(e))
|
|
955
|
+
r(o) || (a[o] = u);
|
|
956
|
+
const i = Object.keys(a);
|
|
957
|
+
return t.sort !== !1 && i.sort(t.sort), i.map((o) => {
|
|
958
|
+
const u = e[o];
|
|
959
|
+
return u === void 0 ? "" : u === null ? F(o, t) : Array.isArray(u) ? u.length === 0 && t.arrayFormat === "bracket-separator" ? F(o, t) + "[]" : u.reduce(n(o), []).join("&") : F(o, t) + "=" + F(u, t);
|
|
960
|
+
}).filter((o) => o.length > 0).join("&");
|
|
977
961
|
}
|
|
978
|
-
function
|
|
962
|
+
function he(e, t) {
|
|
979
963
|
var a;
|
|
980
964
|
t = {
|
|
981
965
|
decode: !0,
|
|
982
966
|
...t
|
|
983
967
|
};
|
|
984
|
-
let [r, n] =
|
|
968
|
+
let [r, n] = de(e, "#");
|
|
985
969
|
return r === void 0 && (r = e), {
|
|
986
970
|
url: ((a = r == null ? void 0 : r.split("?")) == null ? void 0 : a[0]) ?? "",
|
|
987
|
-
query: Y(
|
|
971
|
+
query: Z(Y(e), t),
|
|
988
972
|
...t && t.parseFragmentIdentifier && n ? {
|
|
989
|
-
fragmentIdentifier:
|
|
973
|
+
fragmentIdentifier: I(n, t)
|
|
990
974
|
} : {}
|
|
991
975
|
};
|
|
992
976
|
}
|
|
993
|
-
function
|
|
977
|
+
function be(e, t) {
|
|
994
978
|
t = {
|
|
995
979
|
encode: !0,
|
|
996
980
|
strict: !0,
|
|
997
|
-
[
|
|
981
|
+
[X]: !0,
|
|
998
982
|
...t
|
|
999
983
|
};
|
|
1000
|
-
const r =
|
|
1001
|
-
...
|
|
984
|
+
const r = ye(e.url).split("?")[0] || "", n = Y(e.url), a = {
|
|
985
|
+
...Z(n, {
|
|
1002
986
|
sort: !1
|
|
1003
987
|
}),
|
|
1004
988
|
...e.query
|
|
1005
989
|
};
|
|
1006
|
-
let
|
|
1007
|
-
|
|
1008
|
-
let
|
|
990
|
+
let i = ge(a, t);
|
|
991
|
+
i && (i = `?${i}`);
|
|
992
|
+
let o = Me(e.url);
|
|
1009
993
|
if (typeof e.fragmentIdentifier == "string") {
|
|
1010
|
-
const
|
|
1011
|
-
|
|
994
|
+
const u = new URL(r);
|
|
995
|
+
u.hash = e.fragmentIdentifier, o = t[X] ? u.hash : `#${e.fragmentIdentifier}`;
|
|
1012
996
|
}
|
|
1013
|
-
return `${r}${
|
|
997
|
+
return `${r}${i}${o}`;
|
|
1014
998
|
}
|
|
1015
|
-
function
|
|
999
|
+
function we(e, t, r) {
|
|
1016
1000
|
r = {
|
|
1017
1001
|
parseFragmentIdentifier: !0,
|
|
1018
|
-
[
|
|
1002
|
+
[X]: !1,
|
|
1019
1003
|
...r
|
|
1020
1004
|
};
|
|
1021
1005
|
const {
|
|
1022
1006
|
url: n,
|
|
1023
1007
|
query: a,
|
|
1024
|
-
fragmentIdentifier:
|
|
1025
|
-
} =
|
|
1026
|
-
return
|
|
1008
|
+
fragmentIdentifier: i
|
|
1009
|
+
} = he(e, r);
|
|
1010
|
+
return be({
|
|
1027
1011
|
url: n,
|
|
1028
|
-
query:
|
|
1029
|
-
fragmentIdentifier:
|
|
1012
|
+
query: _e(a, t),
|
|
1013
|
+
fragmentIdentifier: i
|
|
1030
1014
|
}, r);
|
|
1031
1015
|
}
|
|
1032
1016
|
function Be(e, t, r) {
|
|
1033
|
-
const n = Array.isArray(t) ? (a) => !t.includes(a) : (a,
|
|
1034
|
-
return
|
|
1017
|
+
const n = Array.isArray(t) ? (a) => !t.includes(a) : (a, i) => !t(a, i);
|
|
1018
|
+
return we(e, n, r);
|
|
1035
1019
|
}
|
|
1036
1020
|
const Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1037
1021
|
__proto__: null,
|
|
1038
1022
|
exclude: Be,
|
|
1039
|
-
extract:
|
|
1040
|
-
parse:
|
|
1041
|
-
parseUrl:
|
|
1042
|
-
pick:
|
|
1043
|
-
stringify:
|
|
1044
|
-
stringifyUrl:
|
|
1023
|
+
extract: Y,
|
|
1024
|
+
parse: Z,
|
|
1025
|
+
parseUrl: he,
|
|
1026
|
+
pick: we,
|
|
1027
|
+
stringify: ge,
|
|
1028
|
+
stringifyUrl: be
|
|
1045
1029
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1046
|
-
function
|
|
1030
|
+
function fe(e, t) {
|
|
1047
1031
|
var r = Object.keys(e);
|
|
1048
1032
|
if (Object.getOwnPropertySymbols) {
|
|
1049
1033
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -1053,12 +1037,12 @@ function ie(e, t) {
|
|
|
1053
1037
|
}
|
|
1054
1038
|
return r;
|
|
1055
1039
|
}
|
|
1056
|
-
function
|
|
1040
|
+
function W(e) {
|
|
1057
1041
|
for (var t = 1; t < arguments.length; t++) {
|
|
1058
1042
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1059
|
-
t % 2 ?
|
|
1043
|
+
t % 2 ? fe(Object(r), !0).forEach(function(n) {
|
|
1060
1044
|
He(e, n, r[n]);
|
|
1061
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
1045
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fe(Object(r)).forEach(function(n) {
|
|
1062
1046
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1063
1047
|
});
|
|
1064
1048
|
}
|
|
@@ -1085,208 +1069,174 @@ function Xe(e) {
|
|
|
1085
1069
|
const {
|
|
1086
1070
|
base: t = "/",
|
|
1087
1071
|
routes: r
|
|
1088
|
-
} = e, n =
|
|
1089
|
-
skipUpdate: !1
|
|
1090
|
-
}, {
|
|
1091
|
-
name: "$meta",
|
|
1092
|
-
sid: "ku65ys"
|
|
1093
|
-
}), a = _(null, {
|
|
1072
|
+
} = e, n = T(null, {
|
|
1094
1073
|
and: {
|
|
1095
1074
|
serialize: "ignore"
|
|
1096
1075
|
},
|
|
1097
1076
|
name: "$history",
|
|
1098
|
-
sid: "
|
|
1099
|
-
}),
|
|
1077
|
+
sid: "31majq"
|
|
1078
|
+
}), a = T({}, {
|
|
1100
1079
|
name: "$query",
|
|
1101
|
-
sid: "
|
|
1102
|
-
}),
|
|
1080
|
+
sid: "4bi33m"
|
|
1081
|
+
}), i = T(null, {
|
|
1103
1082
|
name: "$path",
|
|
1104
|
-
sid: "
|
|
1105
|
-
}),
|
|
1083
|
+
sid: "mb6wa5"
|
|
1084
|
+
}), o = O({
|
|
1106
1085
|
name: "setHistory",
|
|
1107
|
-
sid: "
|
|
1108
|
-
}),
|
|
1086
|
+
sid: "svmj03"
|
|
1087
|
+
}), u = O({
|
|
1109
1088
|
name: "navigate",
|
|
1110
|
-
sid: "-
|
|
1111
|
-
}),
|
|
1089
|
+
sid: "-74s2ra"
|
|
1090
|
+
}), w = O({
|
|
1112
1091
|
name: "back",
|
|
1113
|
-
sid: "-
|
|
1114
|
-
}),
|
|
1092
|
+
sid: "-hekewa"
|
|
1093
|
+
}), P = O({
|
|
1115
1094
|
name: "forward",
|
|
1116
|
-
sid: "-
|
|
1117
|
-
}),
|
|
1095
|
+
sid: "-64ksuk"
|
|
1096
|
+
}), E = O({
|
|
1118
1097
|
name: "locationUpdated",
|
|
1119
|
-
sid: "
|
|
1120
|
-
}),
|
|
1121
|
-
let
|
|
1122
|
-
const
|
|
1123
|
-
for (
|
|
1124
|
-
|
|
1125
|
-
const
|
|
1098
|
+
sid: "e6p2xg"
|
|
1099
|
+
}), v = r.map((l) => {
|
|
1100
|
+
let y = l;
|
|
1101
|
+
const h = [];
|
|
1102
|
+
for (h.unshift(y.internal.path); y.internal.parent; )
|
|
1103
|
+
y = y.internal.parent, y.internal.path !== "/" && h.unshift(y.internal.path);
|
|
1104
|
+
const $ = t === "/" ? h.join("") : [t, ...h].join("");
|
|
1126
1105
|
return {
|
|
1127
|
-
route:
|
|
1128
|
-
path:
|
|
1129
|
-
toPath:
|
|
1130
|
-
fromPath:
|
|
1106
|
+
route: l,
|
|
1107
|
+
path: $,
|
|
1108
|
+
toPath: ne.compile($),
|
|
1109
|
+
fromPath: ne.match($)
|
|
1131
1110
|
};
|
|
1132
|
-
}),
|
|
1133
|
-
const
|
|
1111
|
+
}), j = i.map((l) => {
|
|
1112
|
+
const y = [];
|
|
1134
1113
|
for (const {
|
|
1135
|
-
route:
|
|
1136
|
-
fromPath:
|
|
1137
|
-
} of
|
|
1138
|
-
|
|
1139
|
-
return
|
|
1140
|
-
}),
|
|
1114
|
+
route: h,
|
|
1115
|
+
fromPath: $
|
|
1116
|
+
} of v)
|
|
1117
|
+
$(l) && y.push(h);
|
|
1118
|
+
return y;
|
|
1119
|
+
}), S = ee({
|
|
1141
1120
|
and: {
|
|
1142
|
-
source:
|
|
1143
|
-
|
|
1144
|
-
meta: n
|
|
1145
|
-
},
|
|
1146
|
-
effect: async (h, b) => {
|
|
1121
|
+
source: n,
|
|
1122
|
+
effect: (l, y) => {
|
|
1147
1123
|
let {
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
replace: c
|
|
1154
|
-
} = b;
|
|
1155
|
-
if (!m)
|
|
1124
|
+
path: h,
|
|
1125
|
+
query: $,
|
|
1126
|
+
replace: M
|
|
1127
|
+
} = y;
|
|
1128
|
+
if (!l)
|
|
1156
1129
|
throw new Error("history not found");
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}
|
|
1161
|
-
const i = {
|
|
1162
|
-
pathname: q,
|
|
1163
|
-
search: "?".concat(Q.stringify(I))
|
|
1130
|
+
const _ = {
|
|
1131
|
+
pathname: h,
|
|
1132
|
+
search: "?".concat(Q.stringify($))
|
|
1164
1133
|
};
|
|
1165
|
-
|
|
1166
|
-
skipUpdate: !0
|
|
1167
|
-
});
|
|
1134
|
+
M ? l.replace(_) : l.push(_);
|
|
1168
1135
|
}
|
|
1169
1136
|
},
|
|
1170
1137
|
or: {
|
|
1171
1138
|
name: "navigateFx",
|
|
1172
|
-
sid: "
|
|
1173
|
-
}
|
|
1174
|
-
}), y = J({
|
|
1175
|
-
and: {
|
|
1176
|
-
source: n,
|
|
1177
|
-
effect: (h, b) => {
|
|
1178
|
-
var m;
|
|
1179
|
-
const F = Oe(P);
|
|
1180
|
-
if (F({
|
|
1181
|
-
pathname: b.location.pathname,
|
|
1182
|
-
query: ce({}, Q.parse(b.location.search)),
|
|
1183
|
-
state: (m = b.location.state) !== null && m !== void 0 ? m : {}
|
|
1184
|
-
}), !b)
|
|
1185
|
-
throw new Error();
|
|
1186
|
-
b.listen((q) => {
|
|
1187
|
-
var I;
|
|
1188
|
-
let {
|
|
1189
|
-
location: c
|
|
1190
|
-
} = q;
|
|
1191
|
-
const i = (I = c.state) !== null && I !== void 0 ? I : {};
|
|
1192
|
-
i.skipUpdate && (h.skipUpdate = !0), F({
|
|
1193
|
-
pathname: c.pathname,
|
|
1194
|
-
query: ce({}, Q.parse(c.search)),
|
|
1195
|
-
state: i
|
|
1196
|
-
});
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
},
|
|
1200
|
-
or: {
|
|
1201
|
-
name: "subscribeHistoryFx",
|
|
1202
|
-
sid: "-9srjw2"
|
|
1139
|
+
sid: "t8znvj"
|
|
1203
1140
|
}
|
|
1204
|
-
}),
|
|
1141
|
+
}), A = B((l) => {
|
|
1142
|
+
const y = J(E);
|
|
1143
|
+
if (y({
|
|
1144
|
+
pathname: l.location.pathname,
|
|
1145
|
+
query: W({}, Q.parse(l.location.search))
|
|
1146
|
+
}), !l)
|
|
1147
|
+
throw new Error();
|
|
1148
|
+
l.listen((h) => {
|
|
1149
|
+
let {
|
|
1150
|
+
location: $
|
|
1151
|
+
} = h;
|
|
1152
|
+
y({
|
|
1153
|
+
pathname: $.pathname,
|
|
1154
|
+
query: W({}, Q.parse($.search))
|
|
1155
|
+
});
|
|
1156
|
+
});
|
|
1157
|
+
}, {
|
|
1158
|
+
name: "subscribeHistoryFx",
|
|
1159
|
+
sid: "hmilkw"
|
|
1160
|
+
}), k = ee({
|
|
1205
1161
|
and: {
|
|
1206
1162
|
source: {
|
|
1207
|
-
query:
|
|
1208
|
-
path:
|
|
1163
|
+
query: a,
|
|
1164
|
+
path: i
|
|
1209
1165
|
},
|
|
1210
|
-
effect: async (
|
|
1166
|
+
effect: async (l) => {
|
|
1211
1167
|
let {
|
|
1212
|
-
query:
|
|
1213
|
-
path:
|
|
1214
|
-
} =
|
|
1168
|
+
query: y,
|
|
1169
|
+
path: h
|
|
1170
|
+
} = l;
|
|
1215
1171
|
for (const {
|
|
1216
|
-
route:
|
|
1217
|
-
fromPath:
|
|
1218
|
-
} of
|
|
1219
|
-
const
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
historyIgnore: !0
|
|
1225
|
-
});
|
|
1226
|
-
else {
|
|
1227
|
-
F.internal.close();
|
|
1228
|
-
continue;
|
|
1229
|
-
}
|
|
1172
|
+
route: $,
|
|
1173
|
+
fromPath: M
|
|
1174
|
+
} of v) {
|
|
1175
|
+
const _ = M(h), [V, c] = [J($.internal.close), J($.internal.navigated)];
|
|
1176
|
+
_ ? c({
|
|
1177
|
+
query: y,
|
|
1178
|
+
params: _.params
|
|
1179
|
+
}) : V();
|
|
1230
1180
|
}
|
|
1231
1181
|
}
|
|
1232
1182
|
},
|
|
1233
1183
|
or: {
|
|
1234
1184
|
name: "openRoutesByPathFx",
|
|
1235
|
-
sid: "
|
|
1185
|
+
sid: "eh61hv"
|
|
1236
1186
|
}
|
|
1237
1187
|
});
|
|
1238
1188
|
for (const {
|
|
1239
|
-
route:
|
|
1240
|
-
toPath:
|
|
1241
|
-
} of
|
|
1189
|
+
route: l,
|
|
1190
|
+
toPath: y
|
|
1191
|
+
} of v)
|
|
1242
1192
|
x({
|
|
1243
1193
|
and: [{
|
|
1244
|
-
clock:
|
|
1245
|
-
filter: (
|
|
1246
|
-
fn: (
|
|
1247
|
-
var
|
|
1194
|
+
clock: l.internal.openFx.doneData,
|
|
1195
|
+
filter: (h) => (h == null ? void 0 : h.navigate) !== !1,
|
|
1196
|
+
fn: (h) => {
|
|
1197
|
+
var $;
|
|
1248
1198
|
return {
|
|
1249
|
-
path:
|
|
1250
|
-
query: (
|
|
1251
|
-
replace:
|
|
1199
|
+
path: y(h && "params" in h ? h.params : void 0),
|
|
1200
|
+
query: ($ = h == null ? void 0 : h.query) !== null && $ !== void 0 ? $ : {},
|
|
1201
|
+
replace: h == null ? void 0 : h.replace
|
|
1252
1202
|
};
|
|
1253
1203
|
},
|
|
1254
|
-
target:
|
|
1204
|
+
target: u
|
|
1255
1205
|
}],
|
|
1256
1206
|
or: {
|
|
1257
|
-
sid: "
|
|
1207
|
+
sid: "fuznc4"
|
|
1258
1208
|
}
|
|
1259
1209
|
});
|
|
1260
1210
|
return x({
|
|
1261
1211
|
and: [{
|
|
1262
|
-
clock:
|
|
1263
|
-
target:
|
|
1212
|
+
clock: o,
|
|
1213
|
+
target: n
|
|
1264
1214
|
}],
|
|
1265
1215
|
or: {
|
|
1266
|
-
sid: "
|
|
1216
|
+
sid: "gfc18r"
|
|
1267
1217
|
}
|
|
1268
1218
|
}), x({
|
|
1269
1219
|
and: [{
|
|
1270
|
-
clock:
|
|
1220
|
+
clock: n,
|
|
1271
1221
|
filter: Boolean,
|
|
1272
|
-
target:
|
|
1222
|
+
target: A
|
|
1273
1223
|
}],
|
|
1274
1224
|
or: {
|
|
1275
|
-
sid: "
|
|
1225
|
+
sid: "gtmoo5"
|
|
1276
1226
|
}
|
|
1277
1227
|
}), x({
|
|
1278
1228
|
and: [{
|
|
1279
|
-
clock:
|
|
1280
|
-
fn: (
|
|
1281
|
-
path:
|
|
1282
|
-
query:
|
|
1229
|
+
clock: E,
|
|
1230
|
+
fn: (l) => ({
|
|
1231
|
+
path: l.pathname,
|
|
1232
|
+
query: l.query
|
|
1283
1233
|
}),
|
|
1284
1234
|
target: xe({
|
|
1285
|
-
sid: "
|
|
1286
|
-
fn: () =>
|
|
1235
|
+
sid: "rwfpgy",
|
|
1236
|
+
fn: () => Fe({
|
|
1287
1237
|
targets: {
|
|
1288
|
-
path:
|
|
1289
|
-
query:
|
|
1238
|
+
path: i,
|
|
1239
|
+
query: a
|
|
1290
1240
|
}
|
|
1291
1241
|
}),
|
|
1292
1242
|
name: "target",
|
|
@@ -1294,108 +1244,98 @@ function Xe(e) {
|
|
|
1294
1244
|
})
|
|
1295
1245
|
}],
|
|
1296
1246
|
or: {
|
|
1297
|
-
sid: "
|
|
1247
|
+
sid: "gwxg8b"
|
|
1298
1248
|
}
|
|
1299
1249
|
}), x({
|
|
1300
1250
|
and: [{
|
|
1301
|
-
clock:
|
|
1302
|
-
fn: (
|
|
1303
|
-
path:
|
|
1304
|
-
query:
|
|
1251
|
+
clock: E,
|
|
1252
|
+
fn: (l) => ({
|
|
1253
|
+
path: l.pathname,
|
|
1254
|
+
query: l.query
|
|
1305
1255
|
}),
|
|
1306
|
-
target:
|
|
1307
|
-
}],
|
|
1308
|
-
or: {
|
|
1309
|
-
sid: "icm409"
|
|
1310
|
-
}
|
|
1311
|
-
}), x({
|
|
1312
|
-
and: [{
|
|
1313
|
-
clock: w,
|
|
1314
|
-
target: v
|
|
1256
|
+
target: k
|
|
1315
1257
|
}],
|
|
1316
1258
|
or: {
|
|
1317
|
-
sid: "
|
|
1259
|
+
sid: "hrpxgj"
|
|
1318
1260
|
}
|
|
1319
1261
|
}), x({
|
|
1320
1262
|
and: [{
|
|
1321
|
-
clock:
|
|
1322
|
-
source:
|
|
1323
|
-
|
|
1324
|
-
path:
|
|
1325
|
-
},
|
|
1326
|
-
|
|
1327
|
-
target: w
|
|
1263
|
+
clock: u,
|
|
1264
|
+
source: i,
|
|
1265
|
+
fn: (l, y) => W({
|
|
1266
|
+
path: l
|
|
1267
|
+
}, y),
|
|
1268
|
+
target: S
|
|
1328
1269
|
}],
|
|
1329
1270
|
or: {
|
|
1330
|
-
sid: "
|
|
1271
|
+
sid: "i87r9d"
|
|
1331
1272
|
}
|
|
1332
1273
|
}), {
|
|
1333
|
-
$query:
|
|
1334
|
-
$path:
|
|
1335
|
-
$activeRoutes:
|
|
1336
|
-
back:
|
|
1337
|
-
forward:
|
|
1338
|
-
navigate:
|
|
1274
|
+
$query: a,
|
|
1275
|
+
$path: i,
|
|
1276
|
+
$activeRoutes: j,
|
|
1277
|
+
back: w,
|
|
1278
|
+
forward: P,
|
|
1279
|
+
navigate: u,
|
|
1339
1280
|
routes: r,
|
|
1340
|
-
setHistory:
|
|
1341
|
-
mappedRoutes:
|
|
1342
|
-
trackQuery:
|
|
1343
|
-
$activeRoutes:
|
|
1344
|
-
$
|
|
1345
|
-
|
|
1346
|
-
navigateFx: v
|
|
1281
|
+
setHistory: o,
|
|
1282
|
+
mappedRoutes: v,
|
|
1283
|
+
trackQuery: Ce({
|
|
1284
|
+
$activeRoutes: j,
|
|
1285
|
+
$query: a,
|
|
1286
|
+
navigate: u
|
|
1347
1287
|
}),
|
|
1348
1288
|
"@@unitShape": () => ({
|
|
1349
|
-
query:
|
|
1350
|
-
path:
|
|
1351
|
-
activeRoutes:
|
|
1352
|
-
onBack:
|
|
1353
|
-
onForward:
|
|
1354
|
-
onNavigate:
|
|
1289
|
+
query: a,
|
|
1290
|
+
path: i,
|
|
1291
|
+
activeRoutes: j,
|
|
1292
|
+
onBack: w,
|
|
1293
|
+
onForward: P,
|
|
1294
|
+
onNavigate: u
|
|
1355
1295
|
})
|
|
1356
1296
|
};
|
|
1357
1297
|
}
|
|
1358
1298
|
function Je(e) {
|
|
1359
|
-
const t =
|
|
1299
|
+
const t = T(null, {
|
|
1360
1300
|
name: "$params",
|
|
1361
1301
|
sid: "-ui6zqo"
|
|
1362
|
-
}), r =
|
|
1302
|
+
}), r = T(!1, {
|
|
1363
1303
|
name: "$isOpened",
|
|
1364
1304
|
sid: "p6gokr"
|
|
1365
|
-
}), n = e, a =
|
|
1305
|
+
}), n = e, a = O({
|
|
1366
1306
|
name: "open",
|
|
1367
1307
|
sid: "55xtzu"
|
|
1368
|
-
}),
|
|
1308
|
+
}), i = O({
|
|
1369
1309
|
name: "opened",
|
|
1370
1310
|
sid: "tidivr"
|
|
1371
|
-
}),
|
|
1311
|
+
}), o = O({
|
|
1372
1312
|
name: "openedOnServer",
|
|
1373
1313
|
sid: "8drh93"
|
|
1374
|
-
}),
|
|
1314
|
+
}), u = O({
|
|
1375
1315
|
name: "openedOnClient",
|
|
1376
1316
|
sid: "-pj4ssy"
|
|
1377
|
-
}), w =
|
|
1317
|
+
}), w = O({
|
|
1378
1318
|
name: "close",
|
|
1379
1319
|
sid: "-9osjjv"
|
|
1380
|
-
}),
|
|
1320
|
+
}), P = O({
|
|
1381
1321
|
name: "closed",
|
|
1382
1322
|
sid: "hnb5jj"
|
|
1383
1323
|
});
|
|
1384
1324
|
return x({
|
|
1385
1325
|
and: [{
|
|
1386
1326
|
clock: a,
|
|
1387
|
-
target:
|
|
1327
|
+
target: i
|
|
1388
1328
|
}],
|
|
1389
1329
|
or: {
|
|
1390
1330
|
sid: "-v1zz6f"
|
|
1391
1331
|
}
|
|
1392
1332
|
}), ue({
|
|
1393
1333
|
and: [{
|
|
1394
|
-
source:
|
|
1334
|
+
source: i,
|
|
1395
1335
|
match: () => typeof window > "u" ? "server" : "client",
|
|
1396
1336
|
cases: {
|
|
1397
|
-
server:
|
|
1398
|
-
client:
|
|
1337
|
+
server: o,
|
|
1338
|
+
client: u
|
|
1399
1339
|
}
|
|
1400
1340
|
}],
|
|
1401
1341
|
or: {
|
|
@@ -1404,14 +1344,14 @@ function Je(e) {
|
|
|
1404
1344
|
}), x({
|
|
1405
1345
|
and: [{
|
|
1406
1346
|
clock: w,
|
|
1407
|
-
target:
|
|
1347
|
+
target: P
|
|
1408
1348
|
}],
|
|
1409
1349
|
or: {
|
|
1410
1350
|
sid: "-u77hy7"
|
|
1411
1351
|
}
|
|
1412
1352
|
}), x({
|
|
1413
1353
|
and: [{
|
|
1414
|
-
clock: [
|
|
1354
|
+
clock: [i.map(() => !0), P.map(() => !1)],
|
|
1415
1355
|
target: r
|
|
1416
1356
|
}],
|
|
1417
1357
|
or: {
|
|
@@ -1422,11 +1362,11 @@ function Je(e) {
|
|
|
1422
1362
|
$isOpened: r,
|
|
1423
1363
|
$isPending: n,
|
|
1424
1364
|
open: a,
|
|
1425
|
-
opened:
|
|
1426
|
-
openedOnClient:
|
|
1427
|
-
openedOnServer:
|
|
1365
|
+
opened: i,
|
|
1366
|
+
openedOnClient: u,
|
|
1367
|
+
openedOnServer: o,
|
|
1428
1368
|
close: w,
|
|
1429
|
-
closed:
|
|
1369
|
+
closed: P,
|
|
1430
1370
|
"@@unitShape": () => ({
|
|
1431
1371
|
params: t,
|
|
1432
1372
|
isOpened: r,
|
|
@@ -1441,17 +1381,17 @@ function Ye(e) {
|
|
|
1441
1381
|
beforeOpen: r,
|
|
1442
1382
|
openOn: n,
|
|
1443
1383
|
cancelOn: a
|
|
1444
|
-
} = e,
|
|
1384
|
+
} = e, i = B(async (u) => {
|
|
1445
1385
|
for (const w of [].concat(r))
|
|
1446
|
-
await w(
|
|
1386
|
+
await w(u);
|
|
1447
1387
|
}, {
|
|
1448
1388
|
name: "openFx",
|
|
1449
1389
|
sid: "14ykg2"
|
|
1450
|
-
}),
|
|
1390
|
+
}), o = Je(i.pending);
|
|
1451
1391
|
return x({
|
|
1452
1392
|
and: [{
|
|
1453
|
-
clock: t.
|
|
1454
|
-
target:
|
|
1393
|
+
clock: t.open,
|
|
1394
|
+
target: i
|
|
1455
1395
|
}],
|
|
1456
1396
|
or: {
|
|
1457
1397
|
sid: "-s8ttzz"
|
|
@@ -1459,8 +1399,8 @@ function Ye(e) {
|
|
|
1459
1399
|
}), x({
|
|
1460
1400
|
and: [{
|
|
1461
1401
|
clock: t.opened,
|
|
1462
|
-
fn: (
|
|
1463
|
-
target:
|
|
1402
|
+
fn: (u) => u && "params" in u ? u.params : null,
|
|
1403
|
+
target: o.$params
|
|
1464
1404
|
}],
|
|
1465
1405
|
or: {
|
|
1466
1406
|
sid: "-1t3nrm"
|
|
@@ -1469,17 +1409,17 @@ function Ye(e) {
|
|
|
1469
1409
|
and: [{
|
|
1470
1410
|
clock: n,
|
|
1471
1411
|
source: {
|
|
1472
|
-
params:
|
|
1412
|
+
params: o.$params
|
|
1473
1413
|
},
|
|
1474
|
-
fn: (
|
|
1414
|
+
fn: (u) => {
|
|
1475
1415
|
let {
|
|
1476
1416
|
params: w
|
|
1477
|
-
} =
|
|
1417
|
+
} = u;
|
|
1478
1418
|
return {
|
|
1479
1419
|
params: w
|
|
1480
1420
|
};
|
|
1481
1421
|
},
|
|
1482
|
-
target:
|
|
1422
|
+
target: o.open
|
|
1483
1423
|
}],
|
|
1484
1424
|
or: {
|
|
1485
1425
|
sid: "-1cltx2"
|
|
@@ -1487,16 +1427,16 @@ function Ye(e) {
|
|
|
1487
1427
|
}), a && x({
|
|
1488
1428
|
and: [{
|
|
1489
1429
|
clock: [t.closed].concat(a),
|
|
1490
|
-
target:
|
|
1430
|
+
target: o.close
|
|
1491
1431
|
}],
|
|
1492
1432
|
or: {
|
|
1493
1433
|
sid: "-w4048"
|
|
1494
1434
|
}
|
|
1495
|
-
}),
|
|
1435
|
+
}), o;
|
|
1496
1436
|
}
|
|
1497
1437
|
export {
|
|
1498
1438
|
Ye as chainRoute,
|
|
1499
1439
|
Ge as createRoute,
|
|
1500
1440
|
Xe as createRouter,
|
|
1501
|
-
|
|
1441
|
+
D as parameters
|
|
1502
1442
|
};
|