@kitbag/router 0.5.0 → 0.5.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.
@@ -1,8 +1,8 @@
1
1
  var Se = Object.defineProperty;
2
- var xe = (t, e, n) => e in t ? Se(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var j = (t, e, n) => (xe(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import { inject as lt, computed as H, toValue as dt, toRefs as Ae, reactive as Tt, watch as Le, onUnmounted as It, defineComponent as et, openBlock as Ft, createElementBlock as Ue, normalizeClass as Be, renderSlot as Jt, normalizeProps as Qt, guardReactiveProps as Kt, unref as rt, provide as Ne, defineAsyncComponent as He, createBlock as $e, resolveDynamicComponent as je, h as ot, ref as Ve, markRaw as at } from "vue";
5
- class ht extends Error {
2
+ var ke = (t, e, n) => e in t ? Se(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var j = (t, e, n) => (ke(t, typeof e != "symbol" ? e + "" : e, n), n);
4
+ import { inject as lt, computed as H, toValue as dt, toRefs as xe, reactive as Wt, watch as Ae, onUnmounted as Tt, defineComponent as et, openBlock as It, createElementBlock as Le, normalizeClass as Ue, renderSlot as Ft, normalizeProps as Jt, guardReactiveProps as Qt, unref as rt, provide as Be, defineAsyncComponent as Ne, createBlock as He, resolveDynamicComponent as $e, h as ot, ref as je, markRaw as at } from "vue";
5
+ class Ve extends Error {
6
6
  /**
7
7
  * Constructs a new DuplicateParamsError instance with a message indicating the problematic parameter.
8
8
  * @param paramName - The name of the parameter that was duplicated.
@@ -27,9 +27,9 @@ class Ce extends Error {
27
27
  super(`useRoute called with incorrect route. Given ${e}, expected ${n}`);
28
28
  }
29
29
  }
30
- const Gt = Symbol();
30
+ const Kt = Symbol();
31
31
  function vt() {
32
- const t = lt(Gt);
32
+ const t = lt(Kt);
33
33
  if (!t)
34
34
  throw new gt();
35
35
  return t;
@@ -58,9 +58,9 @@ function qe(t, e = {}, n = {}) {
58
58
  replace: (m) => o.replace(c.value, {}, { ...s.value, ...m })
59
59
  };
60
60
  }
61
- const zt = Symbol();
61
+ const Gt = Symbol();
62
62
  function _e() {
63
- const t = lt(zt);
63
+ const t = lt(Gt);
64
64
  if (!t)
65
65
  throw new gt();
66
66
  return t;
@@ -68,9 +68,9 @@ function _e() {
68
68
  function wt(t, e) {
69
69
  return [t, e].filter((n) => !!n).join(".");
70
70
  }
71
- const Yt = Symbol("isRouterRouteSymbol");
71
+ const zt = Symbol("isRouterRouteSymbol");
72
72
  function Oe(t) {
73
- return typeof t == "object" && t !== null && Yt in t;
73
+ return typeof t == "object" && t !== null && zt in t;
74
74
  }
75
75
  function De(t, e) {
76
76
  function n(f, h, m) {
@@ -87,19 +87,19 @@ function De(t, e) {
87
87
  };
88
88
  return e(t.key, b, m);
89
89
  }
90
- const { matched: o, matches: r, key: a, query: s, params: c } = Ae(t), u = Tt({
90
+ const { matched: o, matches: r, key: a, query: s, params: c } = xe(t), u = Wt({
91
91
  matched: o,
92
92
  matches: r,
93
93
  query: s,
94
94
  params: c,
95
95
  key: a,
96
96
  update: n,
97
- [Yt]: !0
97
+ [zt]: !0
98
98
  });
99
99
  return new Proxy(u, {
100
100
  get: (f, h, m) => h === "params" ? new Proxy(t.params, {
101
- set(b, y, k) {
102
- return n(y, k), !0;
101
+ set(b, y, S) {
102
+ return n(y, S), !0;
103
103
  }
104
104
  }) : Reflect.get(f, h, m)
105
105
  });
@@ -134,11 +134,11 @@ function Te(t, e) {
134
134
  if (!Me(n.route, t, e))
135
135
  throw new Ce(t, n.route.key);
136
136
  }
137
- return Le(n.route, o, { immediate: !0, deep: !0 }), n.route;
137
+ return Ae(n.route, o, { immediate: !0, deep: !0 }), n.route;
138
138
  }
139
- const Xt = Symbol();
139
+ const Yt = Symbol();
140
140
  function Et() {
141
- return lt(Xt, 0);
141
+ return lt(Yt, 0);
142
142
  }
143
143
  class st {
144
144
  constructor() {
@@ -150,7 +150,7 @@ class st {
150
150
  j(this, "onAfterRouteLeave", /* @__PURE__ */ new Set());
151
151
  }
152
152
  }
153
- class $t extends Error {
153
+ class Ht extends Error {
154
154
  }
155
155
  class Z extends Error {
156
156
  constructor(n) {
@@ -172,7 +172,7 @@ function Q(t) {
172
172
  function Ie(t, e) {
173
173
  const n = new st();
174
174
  return t.matches.forEach((o, r) => {
175
- o.onBeforeRouteEnter && bt(t, e, r) && Q(o.onBeforeRouteEnter).forEach((a) => n.onBeforeRouteEnter.add(a)), o.onBeforeRouteUpdate && kt(t, e, r) && Q(o.onBeforeRouteUpdate).forEach((a) => n.onBeforeRouteUpdate.add(a));
175
+ o.onBeforeRouteEnter && bt(t, e, r) && Q(o.onBeforeRouteEnter).forEach((a) => n.onBeforeRouteEnter.add(a)), o.onBeforeRouteUpdate && St(t, e, r) && Q(o.onBeforeRouteUpdate).forEach((a) => n.onBeforeRouteUpdate.add(a));
176
176
  }), e.matches.forEach((o, r) => {
177
177
  o.onBeforeRouteLeave && Pt(t, e, r) && Q(o.onBeforeRouteLeave).forEach((a) => n.onBeforeRouteLeave.add(a));
178
178
  }), n;
@@ -180,7 +180,7 @@ function Ie(t, e) {
180
180
  function Fe(t, e) {
181
181
  const n = new st();
182
182
  return t.matches.forEach((o, r) => {
183
- o.onAfterRouteEnter && bt(t, e, r) && Q(o.onAfterRouteEnter).forEach((a) => n.onAfterRouteEnter.add(a)), o.onAfterRouteUpdate && kt(t, e, r) && Q(o.onAfterRouteUpdate).forEach((a) => n.onAfterRouteUpdate.add(a));
183
+ o.onAfterRouteEnter && bt(t, e, r) && Q(o.onAfterRouteEnter).forEach((a) => n.onAfterRouteEnter.add(a)), o.onAfterRouteUpdate && St(t, e, r) && Q(o.onAfterRouteUpdate).forEach((a) => n.onAfterRouteUpdate.add(a));
184
184
  }), e.matches.forEach((o, r) => {
185
185
  o.onAfterRouteLeave && Pt(t, e, r) && Q(o.onAfterRouteLeave).forEach((a) => n.onAfterRouteLeave.add(a));
186
186
  }), n;
@@ -198,7 +198,7 @@ function Je() {
198
198
  const f = c, h = u ?? {};
199
199
  throw new Z([s, f, { ...h, replace: !0 }]);
200
200
  }, o = () => {
201
- throw new $t();
201
+ throw new Ht();
202
202
  };
203
203
  async function r({ to: s, from: c, hooks: u }) {
204
204
  const { global: f, component: h } = u, m = Ie(s, c), b = [
@@ -212,7 +212,7 @@ function Je() {
212
212
  ...h.onBeforeRouteLeave
213
213
  ];
214
214
  try {
215
- const y = b.map((k) => k(s, {
215
+ const y = b.map((S) => S(s, {
216
216
  from: c,
217
217
  reject: t,
218
218
  push: e,
@@ -231,7 +231,7 @@ function Je() {
231
231
  status: "REJECT",
232
232
  type: y.type
233
233
  };
234
- if (y instanceof $t)
234
+ if (y instanceof Ht)
235
235
  return {
236
236
  status: "ABORT"
237
237
  };
@@ -254,7 +254,7 @@ function Je() {
254
254
  ...f.onAfterRouteEnter
255
255
  ];
256
256
  try {
257
- const y = b.map((k) => k(s, {
257
+ const y = b.map((S) => S(s, {
258
258
  from: c,
259
259
  reject: t,
260
260
  push: e,
@@ -289,15 +289,15 @@ const bt = (t, e, n) => {
289
289
  }, Pt = (t, e, n) => {
290
290
  const o = t.matches, r = (e == null ? void 0 : e.matches) ?? [];
291
291
  return o.length < n || o[n] !== r[n];
292
- }, kt = (t, e, n) => t.matches[n] === (e == null ? void 0 : e.matches[n]);
293
- function jt(t) {
292
+ }, St = (t, e, n) => t.matches[n] === (e == null ? void 0 : e.matches[n]);
293
+ function $t(t) {
294
294
  switch (t) {
295
295
  case "onBeforeRouteEnter":
296
296
  case "onAfterRouteEnter":
297
297
  return bt;
298
298
  case "onBeforeRouteUpdate":
299
299
  case "onAfterRouteUpdate":
300
- return kt;
300
+ return St;
301
301
  case "onBeforeRouteLeave":
302
302
  case "onAfterRouteLeave":
303
303
  return Pt;
@@ -311,21 +311,21 @@ class Qe {
311
311
  j(this, "component", new st());
312
312
  }
313
313
  addBeforeRouteHook({ lifecycle: e, timing: n, depth: o, hook: r }) {
314
- const a = jt(e), s = this[n][e], c = (u, f) => {
314
+ const a = $t(e), s = this[n][e], c = (u, f) => {
315
315
  if (a(u, f.from, o))
316
316
  return r(u, f);
317
317
  };
318
318
  return s.add(c), () => s.delete(c);
319
319
  }
320
320
  addAfterRouteHook({ lifecycle: e, timing: n, depth: o, hook: r }) {
321
- const a = jt(e), s = this[n][e], c = (u, f) => {
321
+ const a = $t(e), s = this[n][e], c = (u, f) => {
322
322
  if (a(u, f.from, o))
323
323
  return r(u, f);
324
324
  };
325
325
  return s.add(c), () => s.delete(c);
326
326
  }
327
327
  }
328
- const Zt = Symbol();
328
+ const Xt = Symbol();
329
329
  function Ke() {
330
330
  const t = new Qe();
331
331
  return {
@@ -338,25 +338,25 @@ function Ke() {
338
338
  hooks: t
339
339
  };
340
340
  }
341
- function te() {
342
- const t = lt(Zt);
341
+ function Zt() {
342
+ const t = lt(Xt);
343
343
  if (!t)
344
344
  throw new gt();
345
345
  return t;
346
346
  }
347
- function ee(t) {
347
+ function te(t) {
348
348
  return (e) => {
349
- const n = Et(), r = te().addBeforeRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
350
- return It(r), r;
349
+ const n = Et(), r = Zt().addBeforeRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
350
+ return Tt(r), r;
351
351
  };
352
352
  }
353
- function St(t) {
353
+ function kt(t) {
354
354
  return (e) => {
355
- const n = Et(), r = te().addAfterRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
356
- return It(r), r;
355
+ const n = Et(), r = Zt().addAfterRouteHook({ lifecycle: t, hook: e, depth: n, timing: "component" });
356
+ return Tt(r), r;
357
357
  };
358
358
  }
359
- const Yn = ee("onBeforeRouteUpdate"), Xn = ee("onBeforeRouteLeave"), Zn = St("onAfterRouteEnter"), tr = St("onAfterRouteUpdate"), er = St("onAfterRouteLeave"), Ge = ["href"], ze = /* @__PURE__ */ et({
359
+ const Yn = te("onBeforeRouteUpdate"), Xn = te("onBeforeRouteLeave"), Zn = kt("onAfterRouteEnter"), tr = kt("onAfterRouteUpdate"), er = kt("onAfterRouteLeave"), Ge = ["href"], ze = /* @__PURE__ */ et({
360
360
  __name: "routerLink",
361
361
  props: {
362
362
  to: { type: [String, Function] },
@@ -374,20 +374,20 @@ const Yn = ee("onBeforeRouteUpdate"), Xn = ee("onBeforeRouteLeave"), Zn = St("on
374
374
  function h(m) {
375
375
  m.preventDefault(), n.push(a.value, r.value);
376
376
  }
377
- return (m, b) => (Ft(), Ue("a", {
377
+ return (m, b) => (It(), Le("a", {
378
378
  href: o.value,
379
- class: Be(["router-link", u.value]),
379
+ class: Ue(["router-link", u.value]),
380
380
  onClick: h
381
381
  }, [
382
- Jt(m.$slots, "default", Qt(Kt({ resolved: o.value, isMatch: rt(s), isExactMatch: rt(c), isExternal: f.value })))
382
+ Ft(m.$slots, "default", Jt(Qt({ resolved: o.value, isMatch: rt(s), isExactMatch: rt(c), isExternal: f.value })))
383
383
  ], 10, Ge));
384
384
  }
385
385
  });
386
- function ne(t) {
386
+ function ee(t) {
387
387
  return "children" in t;
388
388
  }
389
389
  function Ye(t) {
390
- return ne(t) && !("component" in t) && !("components" in t);
390
+ return ee(t) && !("component" in t) && !("components" in t);
391
391
  }
392
392
  function Xe(t) {
393
393
  return typeof t == "object" && t !== null && "component" in t;
@@ -395,14 +395,14 @@ function Xe(t) {
395
395
  function Ze(t) {
396
396
  return typeof t == "object" && t !== null && "components" in t;
397
397
  }
398
- const re = /* @__PURE__ */ et({
398
+ const ne = /* @__PURE__ */ et({
399
399
  __name: "routerView",
400
400
  props: {
401
401
  name: {}
402
402
  },
403
403
  setup(t) {
404
404
  const { name: e = "default" } = t, n = Te(), o = _e(), r = Et();
405
- Ne(Xt, r + 1);
405
+ Be(Yt, r + 1);
406
406
  const a = H(() => {
407
407
  if (o.value)
408
408
  return o.value.component;
@@ -410,13 +410,13 @@ const re = /* @__PURE__ */ et({
410
410
  if (!c)
411
411
  return null;
412
412
  const f = s(c)[e];
413
- return f ? typeof f == "function" ? He(f) : f : null;
413
+ return f ? typeof f == "function" ? Ne(f) : f : null;
414
414
  });
415
415
  function s(c) {
416
416
  return Ze(c) ? c.components : Xe(c) ? { default: c.component } : {};
417
417
  }
418
- return (c, u) => Jt(c.$slots, "default", Qt(Kt({ route: rt(n), component: a.value, rejection: rt(o) })), () => [
419
- (Ft(), $e(je(a.value)))
418
+ return (c, u) => Ft(c.$slots, "default", Jt(Qt({ route: rt(n), component: a.value, rejection: rt(o) })), () => [
419
+ (It(), He($e(a.value)))
420
420
  ]);
421
421
  }
422
422
  });
@@ -447,11 +447,11 @@ function en(t) {
447
447
  function nn(t) {
448
448
  return typeof t == "function" && en(t);
449
449
  }
450
- function pt(t) {
450
+ function ht(t) {
451
451
  return typeof t == "object" && "get" in t && typeof t.get == "function" && "set" in t && typeof t.set == "function";
452
452
  }
453
453
  function rn(t) {
454
- return pt(t) && t.defaultValue !== void 0;
454
+ return ht(t) && t.defaultValue !== void 0;
455
455
  }
456
456
  function rr(t, e) {
457
457
  return sn(t, e);
@@ -473,7 +473,7 @@ const $ = {
473
473
  throw e();
474
474
  return t;
475
475
  }
476
- }, oe = {
476
+ }, re = {
477
477
  get: (t, { invalid: e }) => {
478
478
  if (t === "true")
479
479
  return !0;
@@ -486,7 +486,7 @@ const $ = {
486
486
  throw e();
487
487
  return t.toString();
488
488
  }
489
- }, ae = {
489
+ }, oe = {
490
490
  get: (t, { invalid: e }) => {
491
491
  const n = Number(t);
492
492
  if (isNaN(n))
@@ -498,7 +498,7 @@ const $ = {
498
498
  throw e();
499
499
  return t.toString();
500
500
  }
501
- }, se = {
501
+ }, ae = {
502
502
  get: (t, { invalid: e }) => {
503
503
  const n = new Date(t);
504
504
  if (isNaN(n.getTime()))
@@ -510,7 +510,7 @@ const $ = {
510
510
  throw e();
511
511
  return t.toISOString();
512
512
  }
513
- }, ce = {
513
+ }, se = {
514
514
  get: (t, { invalid: e }) => {
515
515
  try {
516
516
  return JSON.parse(t);
@@ -537,16 +537,16 @@ function At(t, e, n = !1) {
537
537
  if (e === String)
538
538
  return an.get(t, $);
539
539
  if (e === Boolean)
540
- return oe.get(t, $);
540
+ return re.get(t, $);
541
541
  if (e === Number)
542
- return ae.get(t, $);
542
+ return oe.get(t, $);
543
543
  if (e === Date)
544
- return se.get(t, $);
544
+ return ae.get(t, $);
545
545
  if (e === JSON)
546
- return ce.get(t, $);
546
+ return se.get(t, $);
547
547
  if (nn(e))
548
548
  return e(t, $);
549
- if (pt(e))
549
+ if (ht(e))
550
550
  return e.get(t, $);
551
551
  if (e instanceof RegExp) {
552
552
  if (e.test(t))
@@ -562,14 +562,14 @@ function Lt(t, e, n = !1) {
562
562
  throw new K();
563
563
  }
564
564
  if (e === Boolean)
565
- return oe.set(t, $);
565
+ return re.set(t, $);
566
566
  if (e === Number)
567
- return ae.set(t, $);
567
+ return oe.set(t, $);
568
568
  if (e === Date)
569
- return se.set(t, $);
569
+ return ae.set(t, $);
570
570
  if (e === JSON)
571
- return ce.set(t, $);
572
- if (pt(e))
571
+ return se.set(t, $);
572
+ if (ht(e))
573
573
  return e.set(t, $);
574
574
  try {
575
575
  return t.toString();
@@ -578,7 +578,7 @@ function Lt(t, e, n = !1) {
578
578
  }
579
579
  }
580
580
  function sn(t, e) {
581
- return pt(t) ? { ...t, defaultValue: e ?? t.defaultValue } : {
581
+ return ht(t) ? { ...t, defaultValue: e ?? t.defaultValue } : {
582
582
  get: (n) => At(n, t),
583
583
  set: (n) => Lt(n, t),
584
584
  defaultValue: e
@@ -612,8 +612,8 @@ function I(t, e) {
612
612
  }
613
613
  }
614
614
  }
615
- var ct = "beforeunload", cn = "hashchange", ie = "popstate";
616
- function Vt(t) {
615
+ var ct = "beforeunload", cn = "hashchange", ce = "popstate";
616
+ function jt(t) {
617
617
  t === void 0 && (t = {});
618
618
  var e = t, n = e.window, o = n === void 0 ? document.defaultView : n, r = o.history;
619
619
  function a() {
@@ -654,12 +654,12 @@ function Vt(t) {
654
654
  C(p);
655
655
  }
656
656
  }
657
- o.addEventListener(ie, c);
657
+ o.addEventListener(ce, c);
658
658
  var u = L.Pop, f = a(), h = f[0], m = f[1], b = z(), y = z();
659
659
  h == null && (h = 0, r.replaceState(M({}, r.state, {
660
660
  idx: h
661
661
  }), ""));
662
- function k(p) {
662
+ function S(p) {
663
663
  return typeof p == "string" ? p : F(p);
664
664
  }
665
665
  function x(p, i) {
@@ -677,7 +677,7 @@ function Vt(t) {
677
677
  usr: p.state,
678
678
  key: p.key,
679
679
  idx: i
680
- }, k(p)];
680
+ }, S(p)];
681
681
  }
682
682
  function U(p, i, l) {
683
683
  return !y.length || (y.call({
@@ -700,7 +700,7 @@ function Vt(t) {
700
700
  d(p, i);
701
701
  }
702
702
  if (U(l, g, v)) {
703
- var S = V(g, h + 1), A = S[0], B = S[1];
703
+ var k = V(g, h + 1), A = k[0], B = k[1];
704
704
  try {
705
705
  r.pushState(A, "", B);
706
706
  } catch {
@@ -715,7 +715,7 @@ function Vt(t) {
715
715
  R(p, i);
716
716
  }
717
717
  if (U(l, g, v)) {
718
- var S = V(g, h), A = S[0], B = S[1];
718
+ var k = V(g, h), A = k[0], B = k[1];
719
719
  r.replaceState(A, "", B), C(l);
720
720
  }
721
721
  }
@@ -729,7 +729,7 @@ function Vt(t) {
729
729
  get location() {
730
730
  return m;
731
731
  },
732
- createHref: k,
732
+ createHref: S,
733
733
  push: d,
734
734
  replace: R,
735
735
  go: E,
@@ -755,10 +755,10 @@ function un(t) {
755
755
  t === void 0 && (t = {});
756
756
  var e = t, n = e.window, o = n === void 0 ? document.defaultView : n, r = o.history;
757
757
  function a() {
758
- var i = tt(o.location.hash.substr(1)), l = i.pathname, g = l === void 0 ? "/" : l, v = i.search, S = v === void 0 ? "" : v, A = i.hash, B = A === void 0 ? "" : A, N = r.state || {};
758
+ var i = tt(o.location.hash.substr(1)), l = i.pathname, g = l === void 0 ? "/" : l, v = i.search, k = v === void 0 ? "" : v, A = i.hash, B = A === void 0 ? "" : A, N = r.state || {};
759
759
  return [N.idx, G({
760
760
  pathname: g,
761
- search: S,
761
+ search: k,
762
762
  hash: B,
763
763
  state: N.usr || null,
764
764
  key: N.key || "default"
@@ -772,14 +772,14 @@ function un(t) {
772
772
  var i = L.Pop, l = a(), g = l[0], v = l[1];
773
773
  if (y.length)
774
774
  if (g != null) {
775
- var S = h - g;
776
- S && (s = {
775
+ var k = h - g;
776
+ k && (s = {
777
777
  action: i,
778
778
  location: v,
779
779
  retry: function() {
780
- P(S * -1);
780
+ P(k * -1);
781
781
  }
782
- }, P(S));
782
+ }, P(k));
783
783
  } else
784
784
  process.env.NODE_ENV !== "production" && I(
785
785
  !1,
@@ -792,7 +792,7 @@ function un(t) {
792
792
  d(i);
793
793
  }
794
794
  }
795
- o.addEventListener(ie, c), o.addEventListener(cn, function() {
795
+ o.addEventListener(ce, c), o.addEventListener(cn, function() {
796
796
  var i = a(), l = i[1];
797
797
  F(l) !== F(m) && c();
798
798
  });
@@ -800,7 +800,7 @@ function un(t) {
800
800
  h == null && (h = 0, r.replaceState(M({}, r.state, {
801
801
  idx: h
802
802
  }), ""));
803
- function k() {
803
+ function S() {
804
804
  var i = document.querySelector("base"), l = "";
805
805
  if (i && i.getAttribute("href")) {
806
806
  var g = o.location.href, v = g.indexOf("#");
@@ -809,7 +809,7 @@ function un(t) {
809
809
  return l;
810
810
  }
811
811
  function x(i) {
812
- return k() + "#" + (typeof i == "string" ? i : F(i));
812
+ return S() + "#" + (typeof i == "string" ? i : F(i));
813
813
  }
814
814
  function V(i, l) {
815
815
  return l === void 0 && (l = null), G(M({
@@ -845,10 +845,10 @@ function un(t) {
845
845
  }
846
846
  function R(i, l) {
847
847
  var g = L.Push, v = V(i, l);
848
- function S() {
848
+ function k() {
849
849
  R(i, l);
850
850
  }
851
- if (process.env.NODE_ENV !== "production" && I(v.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.push(" + JSON.stringify(i) + ")"), C(g, v, S)) {
851
+ if (process.env.NODE_ENV !== "production" && I(v.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.push(" + JSON.stringify(i) + ")"), C(g, v, k)) {
852
852
  var A = U(v, h + 1), B = A[0], N = A[1];
853
853
  try {
854
854
  r.pushState(B, "", N);
@@ -860,10 +860,10 @@ function un(t) {
860
860
  }
861
861
  function E(i, l) {
862
862
  var g = L.Replace, v = V(i, l);
863
- function S() {
863
+ function k() {
864
864
  E(i, l);
865
865
  }
866
- if (process.env.NODE_ENV !== "production" && I(v.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(i) + ")"), C(g, v, S)) {
866
+ if (process.env.NODE_ENV !== "production" && I(v.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(i) + ")"), C(g, v, k)) {
867
867
  var A = U(v, h), B = A[0], N = A[1];
868
868
  r.replaceState(B, "", N), d(g);
869
869
  }
@@ -900,7 +900,7 @@ function un(t) {
900
900
  };
901
901
  return p;
902
902
  }
903
- function Ct(t) {
903
+ function Vt(t) {
904
904
  t === void 0 && (t = {});
905
905
  var e = t, n = e.initialEntries, o = n === void 0 ? ["/"] : n, r = e.initialIndex, a = o.map(function(d) {
906
906
  var R = G(M({
@@ -911,7 +911,7 @@ function Ct(t) {
911
911
  key: ut()
912
912
  }, typeof d == "string" ? tt(d) : d));
913
913
  return process.env.NODE_ENV !== "production" && I(R.pathname.charAt(0) === "/", "Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: " + JSON.stringify(d) + ")"), R;
914
- }), s = qt(r ?? a.length - 1, 0, a.length - 1), c = L.Pop, u = a[s], f = z(), h = z();
914
+ }), s = Ct(r ?? a.length - 1, 0, a.length - 1), c = L.Pop, u = a[s], f = z(), h = z();
915
915
  function m(d) {
916
916
  return typeof d == "string" ? d : F(d);
917
917
  }
@@ -932,7 +932,7 @@ function Ct(t) {
932
932
  retry: E
933
933
  }), !1);
934
934
  }
935
- function k(d, R) {
935
+ function S(d, R) {
936
936
  c = d, u = R, f.call({
937
937
  action: c,
938
938
  location: u
@@ -943,21 +943,21 @@ function Ct(t) {
943
943
  function p() {
944
944
  x(d, R);
945
945
  }
946
- process.env.NODE_ENV !== "production" && I(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(d) + ")"), y(E, P, p) && (s += 1, a.splice(s, a.length, P), k(E, P));
946
+ process.env.NODE_ENV !== "production" && I(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(d) + ")"), y(E, P, p) && (s += 1, a.splice(s, a.length, P), S(E, P));
947
947
  }
948
948
  function V(d, R) {
949
949
  var E = L.Replace, P = b(d, R);
950
950
  function p() {
951
951
  V(d, R);
952
952
  }
953
- process.env.NODE_ENV !== "production" && I(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(d) + ")"), y(E, P, p) && (a[s] = P, k(E, P));
953
+ process.env.NODE_ENV !== "production" && I(u.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(d) + ")"), y(E, P, p) && (a[s] = P, S(E, P));
954
954
  }
955
955
  function U(d) {
956
- var R = qt(s + d, 0, a.length - 1), E = L.Pop, P = a[R];
956
+ var R = Ct(s + d, 0, a.length - 1), E = L.Pop, P = a[R];
957
957
  function p() {
958
958
  U(d);
959
959
  }
960
- y(E, P, p) && (s = R, k(E, P));
960
+ y(E, P, p) && (s = R, S(E, P));
961
961
  }
962
962
  var C = {
963
963
  get index() {
@@ -988,7 +988,7 @@ function Ct(t) {
988
988
  };
989
989
  return C;
990
990
  }
991
- function qt(t, e, n) {
991
+ function Ct(t, e, n) {
992
992
  return Math.min(Math.max(t, e), n);
993
993
  }
994
994
  function it(t) {
@@ -1032,7 +1032,7 @@ function tt(t) {
1032
1032
  return e;
1033
1033
  }
1034
1034
  function fn(t, e) {
1035
- const n = Tt({ ...t }), o = (s) => {
1035
+ const n = Wt({ ...t }), o = (s) => {
1036
1036
  Object.assign(n, { ...s });
1037
1037
  }, r = n, a = De(r, e);
1038
1038
  return {
@@ -1094,7 +1094,7 @@ function Ut(t) {
1094
1094
  vn
1095
1095
  ].reduce((e, n) => n(e), t);
1096
1096
  }
1097
- const Bt = `\\${Y}\\?([\\w-_]+)\\${X}`, ue = `\\${Y}([\\w-_]+)\\${X}`;
1097
+ const Bt = `\\${Y}\\?([\\w-_]+)\\${X}`, ie = `\\${Y}([\\w-_]+)\\${X}`;
1098
1098
  function gn(t) {
1099
1099
  return t.replace(new RegExp(Bt, "g"), ".*");
1100
1100
  }
@@ -1102,26 +1102,26 @@ function yt(t) {
1102
1102
  return new RegExp(Bt, "g").test(t);
1103
1103
  }
1104
1104
  function vn(t) {
1105
- return t.replace(new RegExp(ue, "g"), ".+");
1105
+ return t.replace(new RegExp(ie, "g"), ".+");
1106
1106
  }
1107
1107
  function Nt(t) {
1108
- const [e] = ft(t, new RegExp(Bt, "g")), [n] = ft(t, new RegExp(ue, "g"));
1108
+ const [e] = ft(t, new RegExp(Bt, "g")), [n] = ft(t, new RegExp(ie, "g"));
1109
1109
  return e ?? n;
1110
1110
  }
1111
1111
  function ft(t, e) {
1112
1112
  return Array.from(t.matchAll(e)).flatMap(([, ...o]) => o.map((r) => xt(r) ? r : ""));
1113
1113
  }
1114
- function fe(t, e, n) {
1115
- const o = le(e, n), [r] = ft(t, o);
1114
+ function ue(t, e, n) {
1115
+ const o = fe(e, n), [r] = ft(t, o);
1116
1116
  return r;
1117
1117
  }
1118
1118
  function wn(t, e) {
1119
1119
  if (!e)
1120
1120
  return t;
1121
- const { name: n, param: o, value: r } = e, a = le(t, n);
1121
+ const { name: n, param: o, value: r } = e, a = fe(t, n);
1122
1122
  return ft(t, a).reduce((c, u) => u === void 0 ? c : c.replace(u, () => Lt(r, o, n.startsWith("?"))), t);
1123
1123
  }
1124
- function le(t, e) {
1124
+ function fe(t, e) {
1125
1125
  const n = [
1126
1126
  En,
1127
1127
  bn,
@@ -1141,7 +1141,7 @@ function bn(t, e) {
1141
1141
  const n = new RegExp(`\\${Y}${e}\\${X}`, "g");
1142
1142
  return t.replace(n, "(.+)");
1143
1143
  }
1144
- function he(t, ...e) {
1144
+ function le(t, ...e) {
1145
1145
  return e.reduce((n, o) => {
1146
1146
  if (!o)
1147
1147
  return n;
@@ -1150,17 +1150,17 @@ function he(t, ...e) {
1150
1150
  }, t);
1151
1151
  }
1152
1152
  function Pn(t, e = {}) {
1153
- const { params: n = {}, query: o } = e, r = kn(t.path, n), a = Sn(t.query, n), s = he(r, a, o);
1153
+ const { params: n = {}, query: o } = e, r = Sn(t.path, n), a = kn(t.query, n), s = le(r, a, o);
1154
1154
  return t.host ? `${t.host}${s}` : s;
1155
1155
  }
1156
- function kn(t, e) {
1156
+ function Sn(t, e) {
1157
1157
  const n = t.toString();
1158
1158
  return n.length ? Object.entries(t.params).reduce((o, [r, a]) => {
1159
1159
  const s = Nt(`${Y}${r}${X}`);
1160
1160
  return s ? wn(o, { name: r, param: a, value: e[s] }) : o;
1161
1161
  }, n) : n;
1162
1162
  }
1163
- function Sn(t, e) {
1163
+ function kn(t, e) {
1164
1164
  const n = t.toString();
1165
1165
  if (!n)
1166
1166
  return {};
@@ -1173,10 +1173,10 @@ function Sn(t, e) {
1173
1173
  return yt(s) && h ? r : { ...r, [a]: f };
1174
1174
  }, {});
1175
1175
  }
1176
- function pe(t) {
1176
+ function he(t) {
1177
1177
  return (e, n, o) => {
1178
1178
  if (J(e))
1179
- return he(e, (n ?? {}).query);
1179
+ return le(e, (n ?? {}).query);
1180
1180
  const r = n ?? {}, a = o ?? {}, s = t.find((u) => u.key === e);
1181
1181
  if (!s)
1182
1182
  throw new mn(String(e));
@@ -1188,7 +1188,7 @@ function pe(t) {
1188
1188
  });
1189
1189
  };
1190
1190
  }
1191
- function de(t) {
1191
+ function pe(t) {
1192
1192
  const e = new URLSearchParams(t);
1193
1193
  return {
1194
1194
  get: (n) => e.get(n),
@@ -1197,12 +1197,12 @@ function de(t) {
1197
1197
  }
1198
1198
  const xn = (t, e) => {
1199
1199
  try {
1200
- me(t, e);
1200
+ de(t, e);
1201
1201
  } catch {
1202
1202
  return !1;
1203
1203
  }
1204
1204
  return !0;
1205
- }, me = (t, e) => {
1205
+ }, de = (t, e) => {
1206
1206
  const { pathname: n, search: o } = _(e);
1207
1207
  return {
1208
1208
  ...An(t.path, n),
@@ -1212,7 +1212,7 @@ const xn = (t, e) => {
1212
1212
  function An(t, e) {
1213
1213
  const n = {}, o = decodeURIComponent(e);
1214
1214
  for (const [r, a] of Object.entries(t.params)) {
1215
- const s = r.startsWith("?"), c = s ? r.slice(1) : r, u = fe(o, t.toString(), r), f = At(u, a, s);
1215
+ const s = r.startsWith("?"), c = s ? r.slice(1) : r, u = ue(o, t.toString(), r), f = At(u, a, s);
1216
1216
  n[c] = f;
1217
1217
  }
1218
1218
  return n;
@@ -1238,15 +1238,15 @@ const Un = (t) => "name" in t.matched && !!t.matched.name, Bn = (t, e) => {
1238
1238
  function $n(t) {
1239
1239
  const { searchParams: e, pathname: n } = _(t), o = -1, r = 1;
1240
1240
  return (a, s) => {
1241
- const c = Ot(a, e), u = _t(a, n), f = Ot(s, e), h = _t(s, n);
1241
+ const c = _t(a, e), u = qt(a, n), f = _t(s, e), h = qt(s, n);
1242
1242
  return c + u > f + h ? o : c + u < f + h ? r : a.depth > s.depth ? o : a.depth < s.depth ? r : 0;
1243
1243
  };
1244
1244
  }
1245
- function _t(t, e) {
1246
- const n = Object.keys(t.path.params).filter((r) => r.startsWith("?")).map((r) => r), o = n.filter((r) => fe(e, t.path.toString(), r) === void 0);
1245
+ function qt(t, e) {
1246
+ const n = Object.keys(t.path.params).filter((r) => r.startsWith("?")).map((r) => r), o = n.filter((r) => ue(e, t.path.toString(), r) === void 0);
1247
1247
  return n.length - o.length;
1248
1248
  }
1249
- function Ot(t, e) {
1249
+ function _t(t, e) {
1250
1250
  const n = new URLSearchParams(t.query.toString()), o = Array.from(n.keys()), r = o.filter((a) => !e.has(a));
1251
1251
  return o.length - r.length;
1252
1252
  }
@@ -1261,7 +1261,7 @@ function Rt(t, e) {
1261
1261
  const n = $n(e), o = t.filter((u) => jn.every((f) => f(u, e))).sort(n);
1262
1262
  if (o.length === 0)
1263
1263
  return;
1264
- const [r] = o, { search: a } = _(e), s = de(a), c = me(r, e);
1264
+ const [r] = o, { search: a } = _(e), s = pe(a), c = de(r, e);
1265
1265
  return {
1266
1266
  matched: r.matched,
1267
1267
  matches: r.matches,
@@ -1272,7 +1272,7 @@ function Rt(t, e) {
1272
1272
  }
1273
1273
  function Vn(t) {
1274
1274
  return (e, n = {}) => {
1275
- const o = pe(t);
1275
+ const o = he(t);
1276
1276
  if (J(e)) {
1277
1277
  const a = o(e);
1278
1278
  return Rt(t, a);
@@ -1281,7 +1281,7 @@ function Vn(t) {
1281
1281
  return Rt(t, r);
1282
1282
  };
1283
1283
  }
1284
- function ye() {
1284
+ function me() {
1285
1285
  return typeof window < "u" && typeof window.document < "u";
1286
1286
  }
1287
1287
  function Cn({ mode: t, listener: e }) {
@@ -1309,11 +1309,11 @@ function Cn({ mode: t, listener: e }) {
1309
1309
  function qn(t = "auto") {
1310
1310
  switch (t) {
1311
1311
  case "auto":
1312
- return ye() ? Vt() : Ct();
1312
+ return me() ? jt() : Vt();
1313
1313
  case "browser":
1314
- return Vt();
1314
+ return jt();
1315
1315
  case "memory":
1316
- return Ct();
1316
+ return Vt();
1317
1317
  case "hash":
1318
1318
  return un();
1319
1319
  default:
@@ -1327,7 +1327,7 @@ function _n(t) {
1327
1327
  props: []
1328
1328
  });
1329
1329
  }
1330
- const Dt = Symbol();
1330
+ const Ot = Symbol();
1331
1331
  function On({
1332
1332
  rejections: t
1333
1333
  }) {
@@ -1347,18 +1347,18 @@ function On({
1347
1347
  matched: u,
1348
1348
  matches: [u],
1349
1349
  key: s,
1350
- query: de(""),
1350
+ query: pe(""),
1351
1351
  params: {},
1352
- [Dt]: !0
1352
+ [Ot]: !0
1353
1353
  };
1354
- }, o = (s) => Dt in s, r = (s) => {
1354
+ }, o = (s) => Ot in s, r = (s) => {
1355
1355
  if (!s) {
1356
1356
  a.value = null;
1357
1357
  return;
1358
1358
  }
1359
1359
  const c = e(s);
1360
1360
  a.value = { type: s, component: c };
1361
- }, a = Ve(null);
1361
+ }, a = je(null);
1362
1362
  return {
1363
1363
  setRejection: r,
1364
1364
  rejection: a,
@@ -1374,22 +1374,22 @@ class Dn extends Error {
1374
1374
  function Mn(t) {
1375
1375
  if (t)
1376
1376
  return t;
1377
- if (ye())
1377
+ if (me())
1378
1378
  return window.location.toString();
1379
1379
  throw new Dn();
1380
1380
  }
1381
- function Re(t) {
1381
+ function ye(t) {
1382
1382
  return typeof t == "object" && t !== null && !Array.isArray(t);
1383
1383
  }
1384
1384
  function Wn(t) {
1385
1385
  return t.every((e) => Array.isArray(e));
1386
1386
  }
1387
1387
  function or(t, e = {}) {
1388
- const n = Wn(t) ? t.flat() : t, o = pe(n), r = Cn({
1388
+ const n = Wn(t) ? t.flat() : t, o = he(n), r = Cn({
1389
1389
  mode: e.historyMode,
1390
1390
  listener: () => {
1391
1391
  const w = F(location);
1392
- k(w);
1392
+ S(w);
1393
1393
  }
1394
1394
  }), { runBeforeRouteHooks: a, runAfterRouteHooks: s } = Je(), {
1395
1395
  hooks: c,
@@ -1400,8 +1400,8 @@ function or(t, e = {}) {
1400
1400
  onBeforeRouteUpdate: b,
1401
1401
  onAfterRouteLeave: y
1402
1402
  } = Ke();
1403
- async function k(w, { replace: q } = {}) {
1404
- if (r.stopListening(), S(w))
1403
+ async function S(w, { replace: q } = {}) {
1404
+ if (r.stopListening(), k(w))
1405
1405
  return r.update(w, { replace: q });
1406
1406
  const O = Rt(n, w) ?? E("NotFound"), W = { ...p }, T = await a({ to: O, from: W, hooks: c });
1407
1407
  switch (T.status) {
@@ -1437,11 +1437,11 @@ function or(t, e = {}) {
1437
1437
  }
1438
1438
  const x = (w, q, O) => {
1439
1439
  if (J(w)) {
1440
- const nt = { ...q }, ke = o(w, nt);
1441
- return k(ke, { replace: nt.replace });
1440
+ const nt = { ...q }, Pe = o(w, nt);
1441
+ return S(Pe, { replace: nt.replace });
1442
1442
  }
1443
1443
  const W = { ...O }, D = o(w, q ?? {}, W);
1444
- return k(D, { replace: W.replace });
1444
+ return S(D, { replace: W.replace });
1445
1445
  }, V = (w, q, O) => {
1446
1446
  if (J(w)) {
1447
1447
  const D = { ...q, replace: !0 };
@@ -1451,9 +1451,9 @@ function or(t, e = {}) {
1451
1451
  return x(w, W, T);
1452
1452
  }, U = (w) => d(w), C = Vn(n), { setRejection: d, rejection: R, getRejectionRoute: E } = On(e), P = E("NotFound"), { currentRoute: p, routerRoute: i, updateRoute: l } = fn(P, x);
1453
1453
  r.startListening();
1454
- const g = Mn(e.initialUrl), { host: v } = _(g), S = pn(v), A = k(g, { replace: !0 });
1454
+ const g = Mn(e.initialUrl), { host: v } = _(g), k = pn(v), A = S(g, { replace: !0 });
1455
1455
  function B(w) {
1456
- w.component("RouterView", re), w.component("RouterLink", ze), w.provide(zt, R), w.provide(Zt, c), w.provide(Gt, N);
1456
+ w.component("RouterView", ne), w.component("RouterLink", ze), w.provide(Gt, R), w.provide(Xt, c), w.provide(Kt, N);
1457
1457
  }
1458
1458
  const N = {
1459
1459
  route: i,
@@ -1468,7 +1468,7 @@ function or(t, e = {}) {
1468
1468
  go: r.go,
1469
1469
  install: B,
1470
1470
  initialized: A,
1471
- isExternal: S,
1471
+ isExternal: k,
1472
1472
  onBeforeRouteEnter: u,
1473
1473
  onAfterRouteUpdate: f,
1474
1474
  onBeforeRouteLeave: h,
@@ -1478,95 +1478,84 @@ function or(t, e = {}) {
1478
1478
  };
1479
1479
  return N;
1480
1480
  }
1481
- function Ht(t, e) {
1482
- const n = Object.keys(t).map(Mt), o = Object.keys(e).map(Mt), r = n.find((a) => o.includes(a));
1483
- return r ? {
1484
- key: r,
1485
- hasDuplicates: !0
1486
- } : {
1487
- key: void 0,
1488
- hasDuplicates: !1
1489
- };
1481
+ function pt(t, e) {
1482
+ const n = Array.isArray(t) ? t : Object.keys(t).map(Dt), o = Array.isArray(e) ? e : Object.keys(e).map(Dt), r = n.find((a) => o.includes(a));
1483
+ if (r)
1484
+ throw new Ve(r);
1490
1485
  }
1491
- function Mt(t) {
1486
+ function Dt(t) {
1492
1487
  return t.startsWith("?") ? t.slice(1) : t;
1493
1488
  }
1494
- function ge(t, e) {
1495
- const { hasDuplicates: n, key: o } = Ht(t.params, e.params);
1496
- if (n)
1497
- throw new ht(o);
1498
- const r = `${t.path}${e.path}`;
1489
+ function Re(t, e) {
1490
+ pt(t.params, e.params);
1491
+ const n = `${t.path}${e.path}`;
1499
1492
  return {
1500
- path: r,
1493
+ path: n,
1501
1494
  params: { ...t.params, ...e.params },
1502
- toString: () => r
1495
+ toString: () => n
1503
1496
  };
1504
1497
  }
1505
- function ve(t, e) {
1506
- const { hasDuplicates: n, key: o } = Ht(t.params, e.params);
1507
- if (n)
1508
- throw new ht(o);
1509
- const r = [t.query, e.query].filter(xt).join("&");
1498
+ function ge(t, e) {
1499
+ pt(t.params, e.params);
1500
+ const n = [t.query, e.query].filter(xt).join("&");
1510
1501
  return {
1511
- query: r,
1502
+ query: n,
1512
1503
  params: { ...t.params, ...e.params },
1513
- toString: () => r
1504
+ toString: () => n
1514
1505
  };
1515
1506
  }
1516
- function we(t, e) {
1507
+ function ve(t, e) {
1517
1508
  const n = new RegExp(`\\${Y}(\\??[\\w-_]+)\\${X}`, "g");
1518
1509
  return Array.from(t.matchAll(n)).reduce((r, [a, s]) => {
1519
1510
  const c = Nt(a);
1520
1511
  if (!c)
1521
1512
  return r;
1522
1513
  const u = on(e, c);
1523
- if (c in r)
1524
- throw new ht(s);
1525
- return r[s] = u, r;
1514
+ return pt([c], r), r[s] = u, r;
1526
1515
  }, {});
1527
1516
  }
1528
1517
  function Tn(t, e) {
1529
1518
  return {
1530
1519
  path: t,
1531
- params: we(t, e),
1520
+ params: ve(t, e),
1532
1521
  toString: () => t
1533
1522
  };
1534
1523
  }
1535
1524
  function In(t) {
1536
- return Re(t) && typeof t.path == "string";
1525
+ return ye(t) && typeof t.path == "string";
1537
1526
  }
1538
- function Ee(t) {
1527
+ function we(t) {
1539
1528
  return In(t) ? t : Tn(t, {});
1540
1529
  }
1541
- function Wt(t, e) {
1530
+ function Mt(t, e) {
1542
1531
  return {
1543
1532
  query: t,
1544
- params: we(t, e),
1533
+ params: ve(t, e),
1545
1534
  toString: () => t
1546
1535
  };
1547
1536
  }
1548
1537
  function Fn(t) {
1549
- return Re(t) && typeof t.query == "string";
1538
+ return ye(t) && typeof t.query == "string";
1550
1539
  }
1551
- function be(t) {
1552
- return t === void 0 ? Wt("", {}) : Fn(t) ? t : Wt(t, {});
1540
+ function Ee(t) {
1541
+ return t === void 0 ? Mt("", {}) : Fn(t) ? t : Mt(t, {});
1553
1542
  }
1554
1543
  function ar(t) {
1555
1544
  const e = t.reduce((n, o) => {
1556
1545
  const r = Jn(o);
1557
- return ne(o) && n.push(...o.children.map((a) => ({
1546
+ return ee(o) && n.push(...o.children.map((a) => ({
1558
1547
  ...a,
1559
1548
  key: wt(r.key, a.key),
1560
- path: ge(r.path, a.path),
1561
- query: ve(r.query, a.query),
1549
+ path: Re(r.path, a.path),
1550
+ query: ge(r.query, a.query),
1562
1551
  matches: [r.matched, ...a.matches],
1563
1552
  depth: a.depth + 1
1564
1553
  }))), n.push(r), n;
1565
1554
  }, []);
1566
- return Pe(e), e;
1555
+ return be(e), e;
1567
1556
  }
1568
1557
  function Jn(t) {
1569
- const e = Qn(t), n = Ee(t.path), o = be(t.query), r = at({ meta: {}, ...e });
1558
+ const e = Qn(t), n = we(t.path), o = Ee(t.query), r = at({ meta: {}, ...e });
1570
1559
  return {
1571
1560
  matched: r,
1572
1561
  matches: [r],
@@ -1578,15 +1567,13 @@ function Jn(t) {
1578
1567
  host: ""
1579
1568
  };
1580
1569
  }
1581
- function Pe(t) {
1570
+ function be(t) {
1582
1571
  t.forEach(({ path: e, query: n }) => {
1583
- const { hasDuplicates: o, key: r } = Ht(e.params, n.params);
1584
- if (o)
1585
- throw new ht(r);
1572
+ pt(e.params, n.params);
1586
1573
  });
1587
1574
  }
1588
1575
  function Qn(t) {
1589
- return Ye(t) ? { ...t, component: re } : t;
1576
+ return Ye(t) ? { ...t, component: ne } : t;
1590
1577
  }
1591
1578
  function sr(t) {
1592
1579
  const e = t.reduce((n, o) => {
@@ -1594,17 +1581,17 @@ function sr(t) {
1594
1581
  return o.children && n.push(...o.children.map((a) => ({
1595
1582
  ...a,
1596
1583
  key: wt(r.key, a.key),
1597
- path: ge(r.path, a.path),
1598
- query: ve(r.query, a.query),
1584
+ path: Re(r.path, a.path),
1585
+ query: ge(r.query, a.query),
1599
1586
  matches: [r.matched, ...a.matches],
1600
1587
  depth: a.depth + 1,
1601
1588
  host: o.host ?? ""
1602
1589
  }))), n.push(r), n;
1603
1590
  }, []);
1604
- return Pe(e), e;
1591
+ return be(e), e;
1605
1592
  }
1606
1593
  function Kn(t) {
1607
- const e = Ee(t.path), n = be(t.query);
1594
+ const e = we(t.path), n = Ee(t.query);
1608
1595
  return {
1609
1596
  matched: at({ meta: {}, ...t, name: t.name ?? "", children: [] }),
1610
1597
  matches: [],
@@ -1617,20 +1604,20 @@ function Kn(t) {
1617
1604
  };
1618
1605
  }
1619
1606
  export {
1620
- ht as DuplicateParamsError,
1607
+ Ve as DuplicateParamsError,
1621
1608
  ze as RouterLink,
1622
1609
  gt as RouterNotInstalledError,
1623
- re as RouterView,
1610
+ ne as RouterView,
1624
1611
  Ce as UseRouteInvalidError,
1625
1612
  nr as component,
1626
1613
  sr as createExternalRoutes,
1627
1614
  sn as createParam,
1628
1615
  or as createRouter,
1629
1616
  ar as createRoutes,
1630
- pt as isParamGetSet,
1617
+ ht as isParamGetSet,
1631
1618
  nn as isParamGetter,
1632
1619
  rn as isParamWithDefault,
1633
- ne as isParentRoute,
1620
+ ee as isParentRoute,
1634
1621
  Ye as isParentRouteWithoutComponent,
1635
1622
  Me as isRoute,
1636
1623
  Xe as isRouteWithComponent,
@@ -1643,10 +1630,10 @@ export {
1643
1630
  X as paramEnd,
1644
1631
  Y as paramStart,
1645
1632
  Tn as path,
1646
- Wt as query,
1647
- Gt as routerInjectionKey,
1648
- zt as routerRejectionKey,
1649
- Pe as throwIfDuplicateParamsAreFound,
1633
+ Mt as query,
1634
+ Kt as routerInjectionKey,
1635
+ Gt as routerRejectionKey,
1636
+ be as throwIfDuplicateParamsAreFound,
1650
1637
  qe as useLink,
1651
1638
  _e as useRejection,
1652
1639
  Te as useRoute,