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