@kitbag/router 0.22.7 → 0.23.0

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.
@@ -33,22 +33,22 @@ function Xe(...e) {
33
33
  function $o(e, t) {
34
34
  return Xe(e, t), { ...e, ...t };
35
35
  }
36
- function nr(e) {
36
+ function tr(e) {
37
37
  return "parent" in e && !!e.parent;
38
38
  }
39
- function rr(e) {
39
+ function nr(e) {
40
40
  return "component" in e && !!e.component;
41
41
  }
42
- function Un(e) {
42
+ function Cn(e) {
43
43
  return "props" in e && typeof e.props == "function";
44
44
  }
45
- function or(e) {
45
+ function rr(e) {
46
46
  return "components" in e && !!e.components;
47
47
  }
48
- function Ln(e) {
48
+ function Un(e) {
49
49
  return "props" in e && typeof e.props == "object";
50
50
  }
51
- function sr(e, t) {
51
+ function or(e, t) {
52
52
  return {
53
53
  ...t,
54
54
  meta: Ho(e.meta, t.meta),
@@ -65,9 +65,9 @@ function Q(e) {
65
65
  function Fo(e) {
66
66
  return Q(e) ? e : `/${e}`;
67
67
  }
68
- const ir = /* @__PURE__ */ Symbol("IS_URL_SYMBOL");
68
+ const sr = /* @__PURE__ */ Symbol("IS_URL_SYMBOL");
69
69
  function ve(e) {
70
- return typeof e == "object" && e !== null && ir in e;
70
+ return typeof e == "object" && e !== null && sr in e;
71
71
  }
72
72
  class Be extends Error {
73
73
  constructor() {
@@ -94,7 +94,7 @@ function Wo(e) {
94
94
  return e === zo;
95
95
  }
96
96
  const hn = It();
97
- function ar(e) {
97
+ function ir(e) {
98
98
  return e === void 0 ? "" : e;
99
99
  }
100
100
  class Se {
@@ -158,7 +158,7 @@ function Yo(e) {
158
158
  function vt(e) {
159
159
  return typeof e == "object" && "get" in e && typeof e.get == "function" && "set" in e && typeof e.set == "function";
160
160
  }
161
- function cr(e) {
161
+ function gn(e) {
162
162
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
163
163
  }
164
164
  function Qo(e, t) {
@@ -274,10 +274,10 @@ async function rs() {
274
274
  throw new Error("Failed to initialize Zod");
275
275
  }
276
276
  }
277
- function ur(e) {
277
+ function ar(e) {
278
278
  return w ? e instanceof w.ZodType : !1;
279
279
  }
280
- function fr(e) {
280
+ function cr(e) {
281
281
  return {
282
282
  get: (t, { invalid: n }) => {
283
283
  try {
@@ -413,12 +413,12 @@ function Yt(e, t) {
413
413
  throw new Error("Promise schemas are not supported");
414
414
  return JSON.stringify(t.parse(e));
415
415
  }
416
- function gn(e) {
416
+ function _n(e) {
417
417
  return typeof e == "object" && e !== null && "then" in e;
418
418
  }
419
419
  function b(e, t) {
420
420
  const n = e["~standard"].validate(t);
421
- if (gn(n))
421
+ if (_n(n))
422
422
  throw new Error("Promise schemas are not supported");
423
423
  if (n.issues)
424
424
  throw new Error("Validation failed");
@@ -427,10 +427,10 @@ function b(e, t) {
427
427
  function ss(e) {
428
428
  return ke(e) && "type" in e && typeof e.type == "string" && "~standard" in e && ke(e["~standard"]) && "vendor" in e["~standard"] && e["~standard"].vendor === "valibot";
429
429
  }
430
- function lr(e) {
430
+ function ur(e) {
431
431
  return ss(e);
432
432
  }
433
- function dr(e) {
433
+ function fr(e) {
434
434
  return {
435
435
  get: (t, { invalid: n }) => {
436
436
  try {
@@ -554,24 +554,38 @@ function Xt(e, t) {
554
554
  throw new Error("Function schemas are not supported");
555
555
  return JSON.stringify(b(t, e));
556
556
  }
557
+ function lr(e) {
558
+ return {
559
+ get: (t, { invalid: n }) => {
560
+ if (`${e}` === t)
561
+ return e;
562
+ throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`);
563
+ },
564
+ set: (t, { invalid: n }) => {
565
+ if (e !== t)
566
+ throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);
567
+ return t.toString();
568
+ }
569
+ };
570
+ }
557
571
  function as(e, t) {
558
572
  return e[t] ?? String;
559
573
  }
560
- function pr(e) {
574
+ function dr(e) {
561
575
  return {
562
576
  invalid: (t) => {
563
577
  throw new En({ ...e, message: t });
564
578
  }
565
579
  };
566
580
  }
567
- const hr = {
581
+ const cs = {
568
582
  get: (e) => e,
569
583
  set: (e, { invalid: t }) => {
570
584
  if (typeof e != "string")
571
585
  throw t(`Expected string value, received ${JSON.stringify(e)}`);
572
586
  return e;
573
587
  }
574
- }, _n = {
588
+ }, pr = {
575
589
  get: (e, { invalid: t }) => {
576
590
  if (e === "true")
577
591
  return !0;
@@ -584,7 +598,7 @@ const hr = {
584
598
  throw t(`Expected boolean value, received ${JSON.stringify(e)}`);
585
599
  return e.toString();
586
600
  }
587
- }, mn = {
601
+ }, hr = {
588
602
  get: (e, { invalid: t }) => {
589
603
  const n = Number(e);
590
604
  if (isNaN(n))
@@ -624,20 +638,8 @@ const hr = {
624
638
  }
625
639
  }
626
640
  };
627
- function cs(e, t, n) {
628
- switch (typeof t) {
629
- case "string":
630
- return hr.get(e, n) === t;
631
- case "number":
632
- return mn.get(e, n) === t;
633
- case "boolean":
634
- return _n.get(e, n) === t;
635
- default:
636
- return !1;
637
- }
638
- }
639
641
  function me(e, { param: t = String, isOptional: n = !1 } = {}) {
640
- const r = pr({ param: t, value: e, isGetter: !0 });
642
+ const r = dr({ param: t, value: e, isGetter: !0 });
641
643
  if (e === void 0 || !oe(e)) {
642
644
  if (Et(t))
643
645
  return t.defaultValue;
@@ -646,11 +648,11 @@ function me(e, { param: t = String, isOptional: n = !1 } = {}) {
646
648
  throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`);
647
649
  }
648
650
  if (t === String)
649
- return hr.get(e, r);
651
+ return cs.get(e, r);
650
652
  if (t === Boolean)
651
- return _n.get(e, r);
653
+ return pr.get(e, r);
652
654
  if (t === Number)
653
- return mn.get(e, r);
655
+ return hr.get(e, r);
654
656
  if (t === Date)
655
657
  return Er.get(e, r);
656
658
  if (t === JSON)
@@ -664,12 +666,7 @@ function me(e, { param: t = String, isOptional: n = !1 } = {}) {
664
666
  return e;
665
667
  throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`);
666
668
  }
667
- if (cr(t)) {
668
- if (cs(e, t, r))
669
- return t;
670
- throw r.invalid(`Expected value to be ${t}, received ${JSON.stringify(e)}`);
671
- }
672
- return ur(t) ? fr(t).get(e, r) : lr(t) ? dr(t).get(e, r) : e;
669
+ return gn(t) ? lr(t).get(e, r) : ar(t) ? cr(t).get(e, r) : ur(t) ? fr(t).get(e, r) : e;
673
670
  }
674
671
  function en(e, t) {
675
672
  try {
@@ -690,31 +687,28 @@ function us(e, t) {
690
687
  }
691
688
  }
692
689
  function ae(e, { param: t = String, isOptional: n = !1 } = {}) {
693
- const r = pr({ param: t, value: e, isSetter: !0 });
690
+ const r = dr({ param: t, value: e, isSetter: !0 });
694
691
  if (e === void 0) {
695
692
  if (n)
696
693
  return "";
697
694
  throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`);
698
695
  }
699
696
  if (t === Boolean)
700
- return _n.set(e, r);
697
+ return pr.set(e, r);
701
698
  if (t === Number)
702
- return mn.set(e, r);
699
+ return hr.set(e, r);
703
700
  if (t === Date)
704
701
  return Er.set(e, r);
705
702
  if (t === JSON)
706
703
  return gr.set(e, r);
707
704
  if (vt(t))
708
705
  return t.set(e, r);
709
- if (cr(t)) {
710
- if (t !== e)
711
- throw r.invalid(`Expected value to be literal ${t}, received ${JSON.stringify(e)}`);
712
- return e.toString();
713
- }
706
+ if (gn(t))
707
+ return lr(t).set(e, r);
708
+ if (ar(t))
709
+ return cr(t).set(e, r);
714
710
  if (ur(t))
715
711
  return fr(t).set(e, r);
716
- if (lr(t))
717
- return dr(t).set(e, r);
718
712
  try {
719
713
  return e.toString();
720
714
  } catch {
@@ -722,7 +716,7 @@ function ae(e, { param: t = String, isOptional: n = !1 } = {}) {
722
716
  }
723
717
  }
724
718
  const kt = `\\${et}\\??([\\w-_]+)\\*?\\${bt}`, fs = `\\${et}\\?([\\w-_]+)\\*?\\${bt}`, ls = `\\${et}\\??([\\w-_]+)\\*\\${bt}`, ds = "[^/]*", ps = ".*", hs = "([^/]*)", Es = "(.*)";
725
- function yn(e) {
719
+ function mn(e) {
726
720
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
727
721
  }
728
722
  function gs(e, t) {
@@ -731,7 +725,7 @@ function gs(e, t) {
731
725
  return [e];
732
726
  let r = 0;
733
727
  const o = n.reduce((a, i) => {
734
- const u = yn(e.slice(r, i.index));
728
+ const u = mn(e.slice(r, i.index));
735
729
  u.length && a.push(u);
736
730
  const [l] = i;
737
731
  return a.push(l), r = i.index + l.length, a;
@@ -742,7 +736,7 @@ function _s(e) {
742
736
  const t = Ct(e);
743
737
  return new RegExp(`^${t || ".*"}$`, "i");
744
738
  }
745
- function Dn(e) {
739
+ function Ln(e) {
746
740
  const t = Ct(e);
747
741
  return new RegExp(`^${t}$`, "i");
748
742
  }
@@ -754,11 +748,11 @@ function ys(e) {
754
748
  const t = new URLSearchParams(e);
755
749
  return Array.from(t.entries()).filter(([, n]) => !mr(n)).map(([n, r]) => {
756
750
  const o = Ct(r);
757
- return new RegExp(`${yn(n)}=${o}(&|$)`, "i");
751
+ return new RegExp(`${mn(n)}=${o}(&|$)`, "i");
758
752
  });
759
753
  }
760
754
  function Ct(e) {
761
- return gs(e, new RegExp(kt, "g")).map((t) => t.startsWith(et) ? _r(t) : yn(t)).join("");
755
+ return gs(e, new RegExp(kt, "g")).map((t) => t.startsWith(et) ? _r(t) : mn(t)).join("");
762
756
  }
763
757
  function _r(e) {
764
758
  return e.replace(new RegExp(kt, "g"), (t) => yr(t) ? ps : ds);
@@ -811,7 +805,7 @@ function Lt(e) {
811
805
  return X(e);
812
806
  const t = Array.isArray(e) ? e : Object.entries(e), n = [], r = {};
813
807
  for (const [o, s] of t)
814
- if (typeof s == "string")
808
+ if (gn(s))
815
809
  n.push(`${o}=${s}`);
816
810
  else {
817
811
  const a = `[${o}]`, i = Ut(a);
@@ -891,8 +885,8 @@ function qe(e) {
891
885
  }, r = {
892
886
  ...t.path,
893
887
  regexp: {
894
- trailingSlashIgnored: Dn(t.path.value),
895
- trailingSlashRemoved: Dn(t.path.value.replace(/^(.+)\/$/, "$1"))
888
+ trailingSlashIgnored: Ln(t.path.value),
889
+ trailingSlashRemoved: Ln(t.path.value.replace(/^(.+)\/$/, "$1"))
896
890
  },
897
891
  stringify(c = {}) {
898
892
  return $t(t.path, c);
@@ -951,7 +945,7 @@ function qe(e) {
951
945
  ...{
952
946
  schema: { host: n, path: r, query: o, hash: s },
953
947
  params: {},
954
- [ir]: !0
948
+ [sr]: !0
955
949
  },
956
950
  isRelative: !oe(t.host.value),
957
951
  stringify: a,
@@ -1006,7 +1000,7 @@ function bs(e, t) {
1006
1000
  }
1007
1001
  return n;
1008
1002
  }
1009
- class xn extends Error {
1003
+ class Dn extends Error {
1010
1004
  /**
1011
1005
  * Constructs a new InvalidRouteRedirectError instance with a message indicating the problematic route redirect.
1012
1006
  * @param routeName - The name of the route that does not support redirects.
@@ -1015,21 +1009,21 @@ class xn extends Error {
1015
1009
  super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`);
1016
1010
  }
1017
1011
  }
1018
- function Vn(e) {
1012
+ function xn(e) {
1019
1013
  return "redirect" in e;
1020
1014
  }
1021
1015
  function Pr({ getRoute: e }) {
1022
1016
  return {
1023
1017
  redirectTo: (...[r, o]) => {
1024
1018
  const s = e();
1025
- if (!Vn(s))
1026
- throw new xn(s.name);
1019
+ if (!xn(s))
1020
+ throw new Dn(s.name);
1027
1021
  r.context.push(s), s.context.push(r), s.redirect(r, o);
1028
1022
  },
1029
1023
  redirectFrom: (r, o) => {
1030
1024
  const s = e();
1031
- if (!Vn(r))
1032
- throw new xn(r.name);
1025
+ if (!xn(r))
1026
+ throw new Dn(r.name);
1033
1027
  s.context.push(r), r.context.push(s), r.redirect(s, o);
1034
1028
  }
1035
1029
  };
@@ -1043,7 +1037,7 @@ function nn(e, t) {
1043
1037
  params: { ...e.params, ...t.params }
1044
1038
  };
1045
1039
  }
1046
- function Mn(e, t) {
1040
+ function Vn(e, t) {
1047
1041
  Xe(e.params, t.params);
1048
1042
  const n = [e.value, t.value].filter(oe).join("&");
1049
1043
  return {
@@ -1052,33 +1046,33 @@ function Mn(e, t) {
1052
1046
  params: { ...e.params, ...t.params }
1053
1047
  };
1054
1048
  }
1055
- function Bn(e, t) {
1049
+ function Mn(e, t) {
1056
1050
  return nn(e, t);
1057
1051
  }
1058
- function Rn(e, t) {
1052
+ function yn(e, t) {
1059
1053
  if (!ve(e))
1060
1054
  throw new Error("Parent is not a valid url");
1061
1055
  if (!vs(t))
1062
1056
  return qe({
1063
1057
  host: e.schema.host,
1064
1058
  path: nn(e.schema.path, X(t.path)),
1065
- query: Mn(e.schema.query, Lt(t.query)),
1066
- hash: Bn(e.schema.hash, X(t.hash))
1059
+ query: Vn(e.schema.query, Lt(t.query)),
1060
+ hash: Mn(e.schema.hash, X(t.hash))
1067
1061
  });
1068
1062
  if (!ve(t))
1069
1063
  throw new Error("Child is not a valid url");
1070
1064
  return qe({
1071
1065
  host: e.schema.host,
1072
1066
  path: nn(e.schema.path, t.schema.path),
1073
- query: Mn(e.schema.query, t.schema.query),
1074
- hash: Bn(e.schema.hash, t.schema.hash)
1067
+ query: Vn(e.schema.query, t.schema.query),
1068
+ hash: Mn(e.schema.hash, t.schema.hash)
1075
1069
  });
1076
1070
  }
1077
1071
  function vs(e) {
1078
1072
  return ve(e);
1079
1073
  }
1080
1074
  function Ue(e, t) {
1081
- const n = hn(), r = ar(e.name), o = X(e.path), s = Lt(e.query), a = X(e.hash), i = e.meta ?? {}, u = e.state ?? {}, l = e.context ?? [], { store: m, ...c } = At(), E = ht({ ...e, id: n, meta: i, state: u, props: t, name: r }), f = Pr({
1075
+ const n = hn(), r = ir(e.name), o = X(e.path), s = Lt(e.query), a = X(e.hash), i = e.meta ?? {}, u = e.state ?? {}, l = e.context ?? [], { store: m, ...c } = At(), E = ht({ ...e, id: n, meta: i, state: u, props: t, name: r }), f = Pr({
1082
1076
  getRoute: () => y
1083
1077
  }), p = qe({
1084
1078
  path: o,
@@ -1099,8 +1093,8 @@ function Ue(e, t) {
1099
1093
  ...p,
1100
1094
  ...c
1101
1095
  };
1102
- if (nr(e)) {
1103
- const _ = sr(e.parent, y), h = Rn(e.parent, {
1096
+ if (tr(e)) {
1097
+ const _ = or(e.parent, y), h = yn(e.parent, {
1104
1098
  path: o,
1105
1099
  query: s,
1106
1100
  hash: a
@@ -1126,7 +1120,7 @@ function Jc(e) {
1126
1120
  };
1127
1121
  }
1128
1122
  function Kc(e) {
1129
- const t = hn(), n = ar(e.name), r = X(e.path), o = Lt(e.query), s = X(e.hash), a = e.meta ?? {}, i = X(e.host), u = e.context ?? [], { store: l, ...m } = At(), c = Pr({
1123
+ const t = hn(), n = ir(e.name), r = X(e.path), o = Lt(e.query), s = X(e.hash), a = e.meta ?? {}, i = X(e.host), u = e.context ?? [], { store: l, ...m } = At(), c = Pr({
1130
1124
  getRoute: () => p
1131
1125
  }), E = ht({ id: t, meta: {}, state: {}, ...e }), f = qe({
1132
1126
  host: i,
@@ -1147,8 +1141,8 @@ function Kc(e) {
1147
1141
  ...c,
1148
1142
  ...f
1149
1143
  };
1150
- if (nr(e)) {
1151
- const y = sr(e.parent, p), _ = Rn(e.parent, {
1144
+ if (tr(e)) {
1145
+ const y = or(e.parent, p), _ = yn(e.parent, {
1152
1146
  path: r,
1153
1147
  query: o,
1154
1148
  hash: s
@@ -1562,11 +1556,11 @@ function Zs(e, t, n) {
1562
1556
  [e]: !0
1563
1557
  });
1564
1558
  }
1565
- function Sn(e) {
1559
+ function Rn(e) {
1566
1560
  return (t, n, { exact: r } = {}) => js(e, t) ? n === void 0 ? !0 : r ? t.matched.name === n : t.matches.map((o) => o.name).includes(n) : !1;
1567
1561
  }
1568
1562
  function Vt(e) {
1569
- const t = st(e), n = Sn(e);
1563
+ const t = st(e), n = Rn(e);
1570
1564
  return (r, o) => {
1571
1565
  const s = t();
1572
1566
  function a() {
@@ -1578,7 +1572,7 @@ function Vt(e) {
1578
1572
  return fe(s.route, a, { immediate: !0, deep: !0 }), s.route;
1579
1573
  };
1580
1574
  }
1581
- function On(e) {
1575
+ function Sn(e) {
1582
1576
  const t = Vt(e), n = st(e), r = Ur(e), o = Ir(e), s = Hs(e);
1583
1577
  return Me((a, i) => {
1584
1578
  const u = t(), l = n(), m = r(), c = o({ increment: !0 });
@@ -1641,7 +1635,7 @@ function qt(e, t) {
1641
1635
  const Fs = Vo(() => new Promise((e) => {
1642
1636
  e({ default: { template: "foo" } });
1643
1637
  }));
1644
- function Hn(e) {
1638
+ function Bn(e) {
1645
1639
  return e.name === Fs.name && "__asyncLoader" in e;
1646
1640
  }
1647
1641
  const Mr = /* @__PURE__ */ Symbol("visibilityObserver");
@@ -1657,7 +1651,7 @@ function qs(e) {
1657
1651
  isElementVisible: x(() => e.value ? t.isElementVisible(e.value) : !1)
1658
1652
  };
1659
1653
  }
1660
- function jn(e, t, n) {
1654
+ function Hn(e, t, n) {
1661
1655
  fe(e, (r, o) => {
1662
1656
  r && r.addEventListener(t, n), o && o.removeEventListener(t, n);
1663
1657
  }, { immediate: !0 }), pn(() => {
@@ -1676,7 +1670,7 @@ function zs(e) {
1676
1670
  }, { immediate: !0 }), fe(i, (c) => {
1677
1671
  const { route: E, ...f } = D(n);
1678
1672
  !E || !c || m("lazy", E, f);
1679
- }, { immediate: !0 }), jn(o, "focusin", l), jn(o, "mouseover", l);
1673
+ }, { immediate: !0 }), Hn(o, "focusin", l), Hn(o, "mouseover", l);
1680
1674
  function l() {
1681
1675
  const { route: c, ...E } = D(n);
1682
1676
  c && m("intent", c, E);
@@ -1695,13 +1689,13 @@ function Ws(e, t, n) {
1695
1689
  Vr({
1696
1690
  ...n,
1697
1691
  routePrefetch: r.prefetch
1698
- }, "components") === e && (rr(r) && Hn(r.component) && r.component.__asyncLoader(), or(r) && Object.values(r.components).forEach((s) => {
1699
- Hn(s) && s.__asyncLoader();
1692
+ }, "components") === e && (nr(r) && Bn(r.component) && r.component.__asyncLoader(), rr(r) && Object.values(r.components).forEach((s) => {
1693
+ Bn(s) && s.__asyncLoader();
1700
1694
  }));
1701
1695
  });
1702
1696
  }
1703
1697
  function Br(e) {
1704
- const t = st(e), n = zs(e), r = Sn(e);
1698
+ const t = st(e), n = zs(e), r = Rn(e);
1705
1699
  return (o, s = {}, a = {}) => {
1706
1700
  const i = t(), u = x(() => {
1707
1701
  const d = D(o);
@@ -1835,7 +1829,7 @@ function Ks(e) {
1835
1829
  onBeforeRouteUpdate: r,
1836
1830
  onAfterRouteLeave: o,
1837
1831
  onAfterRouteUpdate: s
1838
- } = Bs(t), a = Sn(t), i = On(t), u = Hr(t), l = Vt(t), m = st(t), c = Js(t), E = Br(t), f = Ur(t);
1832
+ } = Bs(t), a = Rn(t), i = Sn(t), u = Hr(t), l = Vt(t), m = st(t), c = Js(t), E = Br(t), f = Ur(t);
1839
1833
  return {
1840
1834
  onBeforeRouteLeave: n,
1841
1835
  onBeforeRouteUpdate: r,
@@ -1932,7 +1926,7 @@ function Le() {
1932
1926
  function mt() {
1933
1927
  return Math.random().toString(36).slice(2, 10);
1934
1928
  }
1935
- function Zn(e, t, n) {
1929
+ function jn(e, t, n) {
1936
1930
  return Math.min(Math.max(e, t), n);
1937
1931
  }
1938
1932
  function yt(e) {
@@ -1956,7 +1950,7 @@ function De(e) {
1956
1950
  return Object.freeze(e);
1957
1951
  }
1958
1952
  const Rt = "beforeunload", jr = "popstate", ei = "hashchange";
1959
- function Gn(e = {}) {
1953
+ function Zn(e = {}) {
1960
1954
  const { window: t = document.defaultView } = e, n = t.history;
1961
1955
  function r() {
1962
1956
  const { pathname: d, search: g, hash: O } = t.location, N = n.state ?? {};
@@ -2210,7 +2204,7 @@ function ti(e = {}) {
2210
2204
  }
2211
2205
  };
2212
2206
  }
2213
- function $n(e = {}) {
2207
+ function Gn(e = {}) {
2214
2208
  const { initialEntries: t = ["/"], initialIndex: n } = e, r = t.map(
2215
2209
  (h) => De({
2216
2210
  pathname: "/",
@@ -2221,7 +2215,7 @@ function $n(e = {}) {
2221
2215
  ...typeof h == "string" ? ze(h) : h
2222
2216
  })
2223
2217
  );
2224
- let o = Zn(n ?? r.length - 1, 0, r.length - 1), s = "POP", a = r[o];
2218
+ let o = jn(n ?? r.length - 1, 0, r.length - 1), s = "POP", a = r[o];
2225
2219
  const i = Le(), u = Le();
2226
2220
  function l(h) {
2227
2221
  return typeof h == "string" ? h : ge(h);
@@ -2257,7 +2251,7 @@ function $n(e = {}) {
2257
2251
  c(R, d, g) && (r[o] = d, E(R, d));
2258
2252
  }
2259
2253
  function y(h) {
2260
- const S = Zn(o + h, 0, r.length - 1), R = "POP", d = r[S];
2254
+ const S = jn(o + h, 0, r.length - 1), R = "POP", d = r[S];
2261
2255
  function g() {
2262
2256
  y(h);
2263
2257
  }
@@ -2309,10 +2303,10 @@ function ri(e) {
2309
2303
  return !(n === void 0 || n === e);
2310
2304
  };
2311
2305
  }
2312
- function Fn(e) {
2306
+ function $n(e) {
2313
2307
  try {
2314
2308
  const t = e();
2315
- return gn(t) ? t.catch((n) => n) : t;
2309
+ return _n(t) ? t.catch((n) => n) : t;
2316
2310
  } catch (t) {
2317
2311
  return t;
2318
2312
  }
@@ -2323,7 +2317,7 @@ function oi() {
2323
2317
  return f.matches.filter((R) => Vr({ ...p, routePrefetch: R.prefetch }, "props") === E).flatMap((R) => m(R)).reduce((R, { id: d, name: g, props: O }) => {
2324
2318
  if (!O)
2325
2319
  return R;
2326
- const N = l(d, g, f), A = t(() => Fn(() => O(f, {
2320
+ const N = l(d, g, f), A = t(() => $n(() => O(f, {
2327
2321
  push: y,
2328
2322
  replace: _,
2329
2323
  reject: h,
@@ -2343,7 +2337,7 @@ function oi() {
2343
2337
  continue;
2344
2338
  const N = l(d, g, E);
2345
2339
  if (S.push(N), !n.has(N)) {
2346
- const A = t(() => Fn(() => O(E, {
2340
+ const A = t(() => $n(() => O(E, {
2347
2341
  push: f,
2348
2342
  replace: p,
2349
2343
  reject: y,
@@ -2373,12 +2367,12 @@ function oi() {
2373
2367
  function i(E, f = !1) {
2374
2368
  const p = E.matches.at(-2);
2375
2369
  if (p)
2376
- return Un(p) ? {
2370
+ return Cn(p) ? {
2377
2371
  name: p.name ?? "",
2378
2372
  get props() {
2379
2373
  return u(p, "default", E, f);
2380
2374
  }
2381
- } : Ln(p) ? {
2375
+ } : Un(p) ? {
2382
2376
  name: p.name ?? "",
2383
2377
  props: new Proxy({}, {
2384
2378
  get(y, _) {
@@ -2405,13 +2399,13 @@ function oi() {
2405
2399
  return [E, f, p.id, JSON.stringify(p.params)].join("-");
2406
2400
  }
2407
2401
  function m(E) {
2408
- return Un(E) ? [
2402
+ return Cn(E) ? [
2409
2403
  {
2410
2404
  id: E.id,
2411
2405
  name: "default",
2412
2406
  props: E.props
2413
2407
  }
2414
- ] : Ln(E) ? Object.entries(E.props).map(([f, p]) => ({ id: E.id, name: f, props: p })) : [];
2408
+ ] : Un(E) ? Object.entries(E.props).map(([f, p]) => ({ id: E.id, name: f, props: p })) : [];
2415
2409
  }
2416
2410
  function c(E) {
2417
2411
  for (const f of n.keys())
@@ -2455,11 +2449,11 @@ function si({ mode: e, listener: t }) {
2455
2449
  function ii(e = "auto") {
2456
2450
  switch (e) {
2457
2451
  case "auto":
2458
- return Mt() ? Gn() : $n();
2452
+ return Mt() ? Zn() : Gn();
2459
2453
  case "browser":
2460
- return Gn();
2454
+ return Zn();
2461
2455
  case "memory":
2462
- return $n();
2456
+ return Gn();
2463
2457
  case "hash":
2464
2458
  return ti();
2465
2459
  default:
@@ -2571,7 +2565,7 @@ function di(e, t, n) {
2571
2565
  }
2572
2566
  return ae(void 0, { param: n, ...St });
2573
2567
  }
2574
- const qn = (e, t) => {
2568
+ const Fn = (e, t) => {
2575
2569
  const n = {};
2576
2570
  for (const [r, o] of Object.entries(e)) {
2577
2571
  const s = di(t, r, o);
@@ -2639,7 +2633,7 @@ function Fr(e) {
2639
2633
  function gi(e, t) {
2640
2634
  return oe(t) ? {
2641
2635
  ...e,
2642
- ...Rn(qe({ path: t }), e)
2636
+ ...yn(qe({ path: t }), e)
2643
2637
  } : e;
2644
2638
  }
2645
2639
  function _i(e, t = [], n) {
@@ -2699,7 +2693,7 @@ function Oi(e, { match: t, name: n, component: r }) {
2699
2693
  const a = Mo(), i = o(), u = s();
2700
2694
  return () => {
2701
2695
  const l = i.getProps(t.id, n, u);
2702
- return l instanceof Error ? "" : gn(l) ? a?.suspense ? ue(wi, { component: r, props: l }) : ue(Ti, { component: r, props: l }) : ue(r, l);
2696
+ return l instanceof Error ? "" : _n(l) ? a?.suspense ? ue(wi, { component: r, props: l }) : ue(Ti, { component: r, props: l }) : ue(r, l);
2703
2697
  };
2704
2698
  }
2705
2699
  });
@@ -2732,10 +2726,10 @@ function Pi(e) {
2732
2726
  };
2733
2727
  }
2734
2728
  function Ni(e, t) {
2735
- const n = On(e);
2736
- return or(t) ? zn(e, t, t.components) : rr(t) ? zn(e, t, { default: t.component }) : { default: n };
2729
+ const n = Sn(e);
2730
+ return rr(t) ? qn(e, t, t.components) : nr(t) ? qn(e, t, { default: t.component }) : { default: n };
2737
2731
  }
2738
- function zn(e, t, n) {
2732
+ function qn(e, t, n) {
2739
2733
  return Object.fromEntries(
2740
2734
  Object.entries(n).map(([r, o]) => [r, Oi(e, { match: t, name: r, component: o })])
2741
2735
  );
@@ -2875,7 +2869,7 @@ function Bi(e, t) {
2875
2869
  return o.substring(0, s);
2876
2870
  }
2877
2871
  }
2878
- const Wn = (0, Di.default)({ circles: !0 }), Hi = { trailing: !0 };
2872
+ const zn = (0, Di.default)({ circles: !0 }), Hi = { trailing: !0 };
2879
2873
  function xe(e, t = 25, n = {}) {
2880
2874
  if (n = {
2881
2875
  ...Hi,
@@ -3061,23 +3055,23 @@ function ea(e) {
3061
3055
  const t = e.__file;
3062
3056
  if (t) return Mi(Bi(t, ".vue"));
3063
3057
  }
3064
- function Jn(e, t) {
3058
+ function Wn(e, t) {
3065
3059
  return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
3066
3060
  }
3067
- function Tn(e) {
3061
+ function On(e) {
3068
3062
  if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__) return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
3069
3063
  if (e.root) return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
3070
3064
  }
3071
3065
  function to(e) {
3072
- const t = e.subTree?.type, n = Tn(e);
3066
+ const t = e.subTree?.type, n = On(e);
3073
3067
  return n ? n?.types?.Fragment === t : !1;
3074
3068
  }
3075
3069
  function Bt(e) {
3076
3070
  const t = Xi(e?.type || {});
3077
3071
  if (t) return t;
3078
3072
  if (e?.root === e) return "Root";
3079
- for (const r in e.parent?.type?.components) if (e.parent.type.components[r] === e?.type) return Jn(e, r);
3080
- for (const r in e.appContext?.components) if (e.appContext.components[r] === e?.type) return Jn(e, r);
3073
+ for (const r in e.parent?.type?.components) if (e.parent.type.components[r] === e?.type) return Wn(e, r);
3074
+ for (const r in e.appContext?.components) if (e.appContext.components[r] === e?.type) return Wn(e, r);
3081
3075
  const n = ea(e?.type || {});
3082
3076
  return n || "Anonymous Component";
3083
3077
  }
@@ -3124,7 +3118,7 @@ function oa(e) {
3124
3118
  function sa(e, t) {
3125
3119
  return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
3126
3120
  }
3127
- const Kn = {
3121
+ const Jn = {
3128
3122
  top: 0,
3129
3123
  left: 0,
3130
3124
  right: 0,
@@ -3134,16 +3128,16 @@ const Kn = {
3134
3128
  };
3135
3129
  function ye(e) {
3136
3130
  const t = e.subTree.el;
3137
- return typeof window > "u" ? Kn : to(e) ? oa(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ye(e.subTree.component) : Kn;
3131
+ return typeof window > "u" ? Jn : to(e) ? oa(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ye(e.subTree.component) : Jn;
3138
3132
  }
3139
- function wn(e) {
3133
+ function Tn(e) {
3140
3134
  return to(e) ? ia(e.subTree) : e.subTree ? [e.subTree.el] : [];
3141
3135
  }
3142
3136
  function ia(e) {
3143
3137
  if (!e.children) return [];
3144
3138
  const t = [];
3145
3139
  return e.children.forEach((n) => {
3146
- n.component ? t.push(...wn(n.component)) : n?.el && t.push(n.el);
3140
+ n.component ? t.push(...Tn(n.component)) : n?.el && t.push(n.el);
3147
3141
  }), t;
3148
3142
  }
3149
3143
  const no = "__vue-devtools-component-inspector__", ro = "__vue-devtools-component-inspector__card__", oo = "__vue-devtools-component-inspector__name__", so = "__vue-devtools-component-inspector__indicator__", io = {
@@ -3187,7 +3181,7 @@ function fa() {
3187
3181
  function la() {
3188
3182
  return document.getElementById(oo);
3189
3183
  }
3190
- function Pn(e) {
3184
+ function wn(e) {
3191
3185
  return {
3192
3186
  left: `${Math.round(e.left * 100) / 100}px`,
3193
3187
  top: `${Math.round(e.top * 100) / 100}px`,
@@ -3195,11 +3189,11 @@ function Pn(e) {
3195
3189
  height: `${Math.round(e.height * 100) / 100}px`
3196
3190
  };
3197
3191
  }
3198
- function Nn(e) {
3192
+ function Pn(e) {
3199
3193
  const t = document.createElement("div");
3200
3194
  t.id = e.elementId ?? no, Object.assign(t.style, {
3201
3195
  ...io,
3202
- ...Pn(e.bounds),
3196
+ ...wn(e.bounds),
3203
3197
  ...e.style
3204
3198
  });
3205
3199
  const n = document.createElement("span");
@@ -3212,21 +3206,21 @@ function Nn(e) {
3212
3206
  const o = document.createElement("i");
3213
3207
  return o.id = so, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(o.style, ca), n.appendChild(r), n.appendChild(o), t.appendChild(n), document.body.appendChild(t), t;
3214
3208
  }
3215
- function In(e) {
3209
+ function Nn(e) {
3216
3210
  const t = He(), n = ua(), r = la(), o = fa();
3217
3211
  t && (Object.assign(t.style, {
3218
3212
  ...io,
3219
- ...Pn(e.bounds)
3213
+ ...wn(e.bounds)
3220
3214
  }), Object.assign(n.style, { top: e.bounds.top < 35 ? 0 : "-35px" }), r.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
3221
3215
  }
3222
3216
  function da(e) {
3223
3217
  const t = ye(e);
3224
3218
  if (!t.width && !t.height) return;
3225
3219
  const n = Bt(e);
3226
- He() ? In({
3220
+ He() ? Nn({
3227
3221
  bounds: t,
3228
3222
  name: n
3229
- }) : Nn({
3223
+ }) : Pn({
3230
3224
  bounds: t,
3231
3225
  name: n
3232
3226
  });
@@ -3242,10 +3236,10 @@ function an(e) {
3242
3236
  const n = t.__vueParentComponent;
3243
3237
  if (n && (sn = n, n.vnode.el)) {
3244
3238
  const r = ye(n), o = Bt(n);
3245
- He() ? In({
3239
+ He() ? Nn({
3246
3240
  bounds: r,
3247
3241
  name: o
3248
- }) : Nn({
3242
+ }) : Pn({
3249
3243
  bounds: r,
3250
3244
  name: o
3251
3245
  });
@@ -3274,11 +3268,11 @@ function Ea() {
3274
3268
  function ga(e) {
3275
3269
  const t = on(Z.value, e.id);
3276
3270
  if (t) {
3277
- const [n] = wn(t);
3271
+ const [n] = Tn(t);
3278
3272
  if (typeof n.scrollIntoView == "function") n.scrollIntoView({ behavior: "smooth" });
3279
3273
  else {
3280
3274
  const r = ye(t), o = document.createElement("div"), s = {
3281
- ...Pn(r),
3275
+ ...wn(r),
3282
3276
  position: "absolute"
3283
3277
  };
3284
3278
  Object.assign(o.style, s), document.body.appendChild(o), o.scrollIntoView({ behavior: "smooth" }), setTimeout(() => {
@@ -3289,11 +3283,11 @@ function ga(e) {
3289
3283
  const r = ye(t);
3290
3284
  if (r.width || r.height) {
3291
3285
  const o = Bt(t), s = He();
3292
- s ? In({
3286
+ s ? Nn({
3293
3287
  ...e,
3294
3288
  name: o,
3295
3289
  bounds: r
3296
- }) : Nn({
3290
+ }) : Pn({
3297
3291
  ...e,
3298
3292
  name: o,
3299
3293
  bounds: r
@@ -3436,28 +3430,28 @@ function Na(e, t) {
3436
3430
  V.timelineLayersState[t.id] = !1, Pa.push({
3437
3431
  ...e,
3438
3432
  descriptorId: t.id,
3439
- appRecord: Tn(t.app)
3433
+ appRecord: On(t.app)
3440
3434
  });
3441
3435
  }
3442
3436
  T.__VUE_DEVTOOLS_KIT_INSPECTOR__ ??= [];
3443
- const An = new Proxy(T.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get(e, t, n) {
3437
+ const In = new Proxy(T.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get(e, t, n) {
3444
3438
  return Reflect.get(e, t, n);
3445
3439
  } }), uo = xe(() => {
3446
3440
  je.hooks.callHook(_e.SEND_INSPECTOR_TO_CLIENT, fo());
3447
3441
  });
3448
3442
  function Ia(e, t) {
3449
- An.push({
3443
+ In.push({
3450
3444
  options: e,
3451
3445
  descriptor: t,
3452
3446
  treeFilterPlaceholder: e.treeFilterPlaceholder ?? "Search tree...",
3453
3447
  stateFilterPlaceholder: e.stateFilterPlaceholder ?? "Search state...",
3454
3448
  treeFilter: "",
3455
3449
  selectedNodeId: "",
3456
- appRecord: Tn(t.app)
3450
+ appRecord: On(t.app)
3457
3451
  }), uo();
3458
3452
  }
3459
3453
  function fo() {
3460
- return An.filter((e) => e.descriptor.app === Z.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
3454
+ return In.filter((e) => e.descriptor.app === Z.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
3461
3455
  const t = e.descriptor, n = e.options;
3462
3456
  return {
3463
3457
  id: n.id,
@@ -3471,7 +3465,7 @@ function fo() {
3471
3465
  });
3472
3466
  }
3473
3467
  function dt(e, t) {
3474
- return An.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
3468
+ return In.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
3475
3469
  }
3476
3470
  let H = /* @__PURE__ */ (function(e) {
3477
3471
  return e.VISIT_COMPONENT_TREE = "visitComponentTree", e.INSPECT_COMPONENT = "inspectComponent", e.EDIT_COMPONENT_STATE = "editComponentState", e.GET_INSPECTOR_TREE = "getInspectorTree", e.GET_INSPECTOR_STATE = "getInspectorState", e.EDIT_INSPECTOR_STATE = "editInspectorState", e.INSPECT_TIMELINE_EVENT = "inspectTimelineEvent", e.TIMELINE_CLEARED = "timelineCleared", e.SET_PLUGIN_SETTINGS = "setPluginSettings", e;
@@ -3631,7 +3625,7 @@ function Ua(e = {}) {
3631
3625
  }
3632
3626
  }
3633
3627
  T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ ??= [];
3634
- const bn = new Proxy(T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get(e, t, n) {
3628
+ const An = new Proxy(T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get(e, t, n) {
3635
3629
  return Reflect.get(e, t, n);
3636
3630
  } });
3637
3631
  function cn(e) {
@@ -3640,26 +3634,26 @@ function cn(e) {
3640
3634
  t[n] = e[n].defaultValue;
3641
3635
  }), t;
3642
3636
  }
3643
- function vn(e) {
3637
+ function bn(e) {
3644
3638
  return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
3645
3639
  }
3646
3640
  function La(e) {
3647
- return (bn.find((t) => t[0].id === e && !!t[0]?.settings)?.[0] ?? null)?.settings ?? null;
3641
+ return (An.find((t) => t[0].id === e && !!t[0]?.settings)?.[0] ?? null)?.settings ?? null;
3648
3642
  }
3649
3643
  function po(e, t) {
3650
- const n = vn(e);
3644
+ const n = bn(e);
3651
3645
  if (n) {
3652
3646
  const r = localStorage.getItem(n);
3653
3647
  if (r) return JSON.parse(r);
3654
3648
  }
3655
- return cn(e ? (bn.find((r) => r[0].id === e)?.[0] ?? null)?.settings ?? {} : t);
3649
+ return cn(e ? (An.find((r) => r[0].id === e)?.[0] ?? null)?.settings ?? {} : t);
3656
3650
  }
3657
3651
  function Da(e, t) {
3658
- const n = vn(e);
3652
+ const n = bn(e);
3659
3653
  localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(cn(t)));
3660
3654
  }
3661
3655
  function xa(e, t, n) {
3662
- const r = vn(e), o = localStorage.getItem(r), s = JSON.parse(o || "{}"), a = {
3656
+ const r = bn(e), o = localStorage.getItem(r), s = JSON.parse(o || "{}"), a = {
3663
3657
  ...s,
3664
3658
  [t]: n
3665
3659
  };
@@ -3856,7 +3850,7 @@ function qa(e, t) {
3856
3850
  }), r(o);
3857
3851
  }
3858
3852
  function Eo(e, t) {
3859
- T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || V.highPerfModeEnabled && !t?.inspectingComponent || (T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), bn.forEach((n) => {
3853
+ T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || V.highPerfModeEnabled && !t?.inspectingComponent || (T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), An.forEach((n) => {
3860
3854
  qa(n, e);
3861
3855
  }));
3862
3856
  }
@@ -3876,10 +3870,10 @@ function za(e) {
3876
3870
  const t = /* @__PURE__ */ new Map();
3877
3871
  return (e?.getRoutes() || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
3878
3872
  }
3879
- function kn(e) {
3873
+ function vn(e) {
3880
3874
  return e.map((t) => {
3881
3875
  let { path: n, name: r, children: o, meta: s } = t;
3882
- return o?.length && (o = kn(o)), {
3876
+ return o?.length && (o = vn(o)), {
3883
3877
  path: n,
3884
3878
  name: r,
3885
3879
  children: o,
@@ -3898,18 +3892,18 @@ function Wa(e) {
3898
3892
  name: s,
3899
3893
  params: i,
3900
3894
  query: u,
3901
- matched: kn(a)
3895
+ matched: vn(a)
3902
3896
  };
3903
3897
  }
3904
3898
  return e;
3905
3899
  }
3906
3900
  function Ja(e, t) {
3907
3901
  function n() {
3908
- const r = e.app?.config.globalProperties.$router, o = Wa(r?.currentRoute.value), s = kn(za(r)), a = console.warn;
3902
+ const r = e.app?.config.globalProperties.$router, o = Wa(r?.currentRoute.value), s = vn(za(r)), a = console.warn;
3909
3903
  console.warn = () => {
3910
3904
  }, T[We] = {
3911
- currentRoute: o ? Wn(o) : {},
3912
- routes: Wn(s)
3905
+ currentRoute: o ? zn(o) : {},
3906
+ routes: zn(s)
3913
3907
  }, T[wt] = r, console.warn = a;
3914
3908
  }
3915
3909
  n(), ho.on.componentUpdated(xe(() => {
@@ -3986,7 +3980,7 @@ function Ka(e) {
3986
3980
  inspectDOM(t) {
3987
3981
  const n = on(Z.value, t);
3988
3982
  if (n) {
3989
- const [r] = wn(n);
3983
+ const [r] = Tn(n);
3990
3984
  r && (T.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
3991
3985
  }
3992
3986
  },
@@ -4002,9 +3996,9 @@ function Ka(e) {
4002
3996
  };
4003
3997
  }
4004
3998
  T.__VUE_DEVTOOLS_ENV__ ??= { vitePluginDetected: !1 };
4005
- const Yn = Aa();
3999
+ const Kn = Aa();
4006
4000
  T.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
4007
- hooks: Yn,
4001
+ hooks: Kn,
4008
4002
  get state() {
4009
4003
  return {
4010
4004
  ...V,
@@ -4013,7 +4007,7 @@ T.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
4013
4007
  appRecords: Ht.value
4014
4008
  };
4015
4009
  },
4016
- api: Ka(Yn)
4010
+ api: Ka(Kn)
4017
4011
  };
4018
4012
  const je = T.__VUE_DEVTOOLS_KIT_CONTEXT__;
4019
4013
  var Ya = /* @__PURE__ */ eo({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js": ((e, t) => {
@@ -5410,7 +5404,7 @@ function Ve(e, t) {
5410
5404
  function pt(e, t) {
5411
5405
  return e.indexOf(t) !== -1;
5412
5406
  }
5413
- function Qn(e, t) {
5407
+ function Yn(e, t) {
5414
5408
  for (let n = 0; n < e.length; n++) {
5415
5409
  const r = e[n];
5416
5410
  if (t(r)) return r;
@@ -5430,7 +5424,7 @@ var sc = class {
5430
5424
  return this.transfomers[e];
5431
5425
  }
5432
5426
  };
5433
- const ic = (e) => Object.prototype.toString.call(e).slice(8, -1), _o = (e) => typeof e > "u", ac = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, un = (e) => Je(e) && Object.keys(e).length === 0, le = (e) => Array.isArray(e), cc = (e) => typeof e == "string", uc = (e) => typeof e == "number" && !isNaN(e), fc = (e) => typeof e == "boolean", lc = (e) => e instanceof RegExp, Ke = (e) => e instanceof Map, Ye = (e) => e instanceof Set, mo = (e) => ic(e) === "Symbol", dc = (e) => e instanceof Date && !isNaN(e.valueOf()), pc = (e) => e instanceof Error, Xn = (e) => typeof e == "number" && isNaN(e), hc = (e) => fc(e) || ac(e) || _o(e) || uc(e) || cc(e) || mo(e), Ec = (e) => typeof e == "bigint", gc = (e) => e === 1 / 0 || e === -1 / 0, _c = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), mc = (e) => e instanceof URL, yo = (e) => e.replace(/\./g, "\\."), Jt = (e) => e.map(String).map(yo).join("."), Fe = (e) => {
5427
+ const ic = (e) => Object.prototype.toString.call(e).slice(8, -1), _o = (e) => typeof e > "u", ac = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, un = (e) => Je(e) && Object.keys(e).length === 0, le = (e) => Array.isArray(e), cc = (e) => typeof e == "string", uc = (e) => typeof e == "number" && !isNaN(e), fc = (e) => typeof e == "boolean", lc = (e) => e instanceof RegExp, Ke = (e) => e instanceof Map, Ye = (e) => e instanceof Set, mo = (e) => ic(e) === "Symbol", dc = (e) => e instanceof Date && !isNaN(e.valueOf()), pc = (e) => e instanceof Error, Qn = (e) => typeof e == "number" && isNaN(e), hc = (e) => fc(e) || ac(e) || _o(e) || uc(e) || cc(e) || mo(e), Ec = (e) => typeof e == "bigint", gc = (e) => e === 1 / 0 || e === -1 / 0, _c = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), mc = (e) => e instanceof URL, yo = (e) => e.replace(/\./g, "\\."), Jt = (e) => e.map(String).map(yo).join("."), Fe = (e) => {
5434
5428
  const t = [];
5435
5429
  let n = "";
5436
5430
  for (let o = 0; o < e.length; o++) {
@@ -5481,7 +5475,7 @@ const Ro = [
5481
5475
  }),
5482
5476
  re(Ye, "set", (e) => [...e.values()], (e) => new Set(e)),
5483
5477
  re(Ke, "map", (e) => [...e.entries()], (e) => new Map(e)),
5484
- re((e) => Xn(e) || gc(e), "number", (e) => Xn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
5478
+ re((e) => Qn(e) || gc(e), "number", (e) => Qn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
5485
5479
  re((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
5486
5480
  re(mc, "URL", (e) => e.toString(), (e) => new URL(e))
5487
5481
  ];
@@ -5535,13 +5529,13 @@ const wo = jt(To, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructo
5535
5529
  So,
5536
5530
  Po,
5537
5531
  Oo
5538
- ], er = (e, t) => {
5539
- const n = Qn(Rc, (o) => o.isApplicable(e, t));
5532
+ ], Xn = (e, t) => {
5533
+ const n = Yn(Rc, (o) => o.isApplicable(e, t));
5540
5534
  if (n) return {
5541
5535
  value: n.transform(e, t),
5542
5536
  type: n.annotation(e, t)
5543
5537
  };
5544
- const r = Qn(Ro, (o) => o.isApplicable(e, t));
5538
+ const r = Yn(Ro, (o) => o.isApplicable(e, t));
5545
5539
  if (r) return {
5546
5540
  value: r.transform(e, t),
5547
5541
  type: r.annotation
@@ -5697,14 +5691,14 @@ const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
5697
5691
  if (f) return r ? { transformedValue: null } : f;
5698
5692
  }
5699
5693
  if (!Pc(e, n)) {
5700
- const f = er(e, n), p = f ? {
5694
+ const f = Xn(e, n), p = f ? {
5701
5695
  transformedValue: f.value,
5702
5696
  annotations: [f.type]
5703
5697
  } : { transformedValue: e };
5704
5698
  return i || a.set(e, p), p;
5705
5699
  }
5706
5700
  if (pt(s, e)) return { transformedValue: null };
5707
- const u = er(e, n), l = u?.value ?? e, m = le(l) ? [] : {}, c = {};
5701
+ const u = Xn(e, n), l = u?.value ?? e, m = le(l) ? [] : {}, c = {};
5708
5702
  Ve(l, (f, p) => {
5709
5703
  if (p === "__proto__" || p === "constructor" || p === "prototype") throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
5710
5704
  const y = Ao(f, t, n, r, [...o, p], [...s, e], a);
@@ -5724,7 +5718,7 @@ const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
5724
5718
  function bo(e) {
5725
5719
  return Object.prototype.toString.call(e).slice(8, -1);
5726
5720
  }
5727
- function tr(e) {
5721
+ function er(e) {
5728
5722
  return bo(e) === "Array";
5729
5723
  }
5730
5724
  function Ac(e) {
@@ -5742,11 +5736,11 @@ function bc(e, t, n, r, o) {
5742
5736
  });
5743
5737
  }
5744
5738
  function dn(e, t = {}) {
5745
- if (tr(e)) return e.map((o) => dn(o, t));
5739
+ if (er(e)) return e.map((o) => dn(o, t));
5746
5740
  if (!Ac(e)) return e;
5747
5741
  const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
5748
5742
  return [...n, ...r].reduce((o, s) => {
5749
- if (tr(t.props) && !t.props.includes(s)) return o;
5743
+ if (er(t.props) && !t.props.includes(s)) return o;
5750
5744
  const a = e[s];
5751
5745
  return bc(o, s, dn(a, t), e, t.nonenumerable), o;
5752
5746
  }, {});
@@ -5812,15 +5806,15 @@ T.__VUE_DEVTOOLS_KIT_RPC_SERVER__ ??= null;
5812
5806
  T.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null;
5813
5807
  T.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null;
5814
5808
  T.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
5815
- const Pt = { template: "<div>This is component</div>" }, Cn = Ue({
5809
+ const Pt = { template: "<div>This is component</div>" }, kn = Ue({
5816
5810
  name: "parentA",
5817
5811
  path: "/parentA/[paramA]"
5818
5812
  }), vo = Ue({
5819
- parent: Cn,
5813
+ parent: kn,
5820
5814
  name: "parentA.childA",
5821
5815
  path: "/childA/[?paramB]"
5822
5816
  }), vc = Ue({
5823
- parent: Cn,
5817
+ parent: kn,
5824
5818
  name: "parentA.childB",
5825
5819
  path: "/childB/[paramD]",
5826
5820
  component: Pt
@@ -6073,10 +6067,10 @@ function eu(e, t, n = []) {
6073
6067
  return _(at, ne);
6074
6068
  }
6075
6069
  if (typeof P == "string") {
6076
- const { replace: ne, ...at } = { ...G }, Co = { ...k }, Zt = S(P, Co, at), Uo = qn({ ...Zt.matched.state }, { ...Zt.state, ...at.state });
6070
+ const { replace: ne, ...at } = { ...G }, Co = { ...k }, Zt = S(P, Co, at), Uo = Fn({ ...Zt.matched.state }, { ...Zt.state, ...at.state });
6077
6071
  return _(Zt.href, { replace: ne, state: Uo });
6078
6072
  }
6079
- const { replace: $, ...L } = { ...k }, M = qn({ ...P.matched.state }, { ...P.state, ...L.state }), we = Ce(P.href, {
6073
+ const { replace: $, ...L } = { ...k }, M = Fn({ ...P.matched.state }, { ...P.state, ...L.state }), we = Ce(P.href, {
6080
6074
  query: L.query,
6081
6075
  hash: L.hash
6082
6076
  });
@@ -6110,7 +6104,7 @@ function eu(e, t, n = []) {
6110
6104
  }
6111
6105
  function it(P) {
6112
6106
  l.setVueApp(P), c.setVueApp(P);
6113
- const k = On(o), G = Hr(o);
6107
+ const k = Sn(o), G = Hr(o);
6114
6108
  P.component("RouterView", k), P.component("RouterLink", G), P.provide(Cr(o), N), P.provide(vr(o), l), P.provide(Dr(o), c), P.provide(kr(o), E), P.provide(Mr, f), P.provide(o, he), Gc({ router: he, app: P, routes: i }), Y();
6115
6109
  }
6116
6110
  const he = {
@@ -6145,7 +6139,7 @@ function eu(e, t, n = []) {
6145
6139
  const K = Ks(qr), tu = K.onBeforeRouteLeave, nu = K.onBeforeRouteUpdate, ru = K.onAfterRouteLeave, ou = K.onAfterRouteUpdate, su = K.isRoute, iu = K.RouterView, au = K.RouterLink, cu = K.useRoute, uu = K.useRouter, fu = K.useQueryValue, lu = K.useLink, du = K.useRejection;
6146
6140
  export {
6147
6141
  Zo as DuplicateParamsError,
6148
- ir as IS_URL_SYMBOL,
6142
+ sr as IS_URL_SYMBOL,
6149
6143
  Bo as MetaPropertyConflict,
6150
6144
  au as RouterLink,
6151
6145
  Be as RouterNotInstalledError,
@@ -6153,7 +6147,7 @@ export {
6153
6147
  qo as UseRouteInvalidError,
6154
6148
  Qc as arrayOf,
6155
6149
  Fo as asUrlString,
6156
- sr as combineRoutes,
6150
+ or as combineRoutes,
6157
6151
  Kc as createExternalRoute,
6158
6152
  Qo as createParam,
6159
6153
  Jc as createRejection,
@@ -6165,11 +6159,12 @@ export {
6165
6159
  su as isRoute,
6166
6160
  Q as isUrlString,
6167
6161
  ve as isUrlWithSchema,
6168
- rr as isWithComponent,
6169
- Un as isWithComponentProps,
6170
- Ln as isWithComponentPropsRecord,
6171
- or as isWithComponents,
6172
- nr as isWithParent,
6162
+ nr as isWithComponent,
6163
+ Cn as isWithComponentProps,
6164
+ Un as isWithComponentPropsRecord,
6165
+ rr as isWithComponents,
6166
+ tr as isWithParent,
6167
+ lr as literal,
6173
6168
  ru as onAfterRouteLeave,
6174
6169
  ou as onAfterRouteUpdate,
6175
6170
  tu as onBeforeRouteLeave,