@stonecrop/stonecrop 0.2.63 โ†’ 0.2.64

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,7 +1,7 @@
1
- export declare const useDataStore: import("pinia").StoreDefinition<"data", import("pinia")._UnwrapAll<Pick<{
1
+ export declare const useDataStore: import("pinia").StoreDefinition<"data", Pick<{
2
2
  records: import("vue").Ref<Record<string, any>[], Record<string, any>[]>;
3
3
  record: import("vue").Ref<Record<string, any>, Record<string, any>>;
4
- }, "records" | "record">>, Pick<{
4
+ }, "records" | "record">, Pick<{
5
5
  records: import("vue").Ref<Record<string, any>[], Record<string, any>[]>;
6
6
  record: import("vue").Ref<Record<string, any>, Record<string, any>>;
7
7
  }, never>, Pick<{
package/dist/stonecrop.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var vr = Object.defineProperty;
2
2
  var yr = (e, t, n) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var x = (e, t, n) => yr(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { effectScope as _n, ref as oe, markRaw as le, toRaw as Ce, watch as Me, unref as fe, hasInjectionContext as _r, inject as pe, getCurrentInstance as bt, reactive as En, isRef as Ae, isReactive as wt, toRef as Xe, nextTick as ct, computed as z, getCurrentScope as Er, onScopeDispose as br, toRefs as jt, onBeforeMount as wr, shallowRef as Sr, shallowReactive as Or, defineComponent as bn, h as wn, provide as Ze, watchEffect as Nr } from "vue";
4
+ import { effectScope as _n, ref as se, markRaw as fe, toRaw as Ce, watch as Me, unref as de, hasInjectionContext as _r, inject as pe, getCurrentInstance as bt, reactive as En, isRef as Ae, isReactive as wt, toRef as Xe, nextTick as ct, computed as z, getCurrentScope as Er, onScopeDispose as br, toRefs as jt, onBeforeMount as wr, shallowRef as Sr, shallowReactive as Or, defineComponent as bn, h as wn, provide as Ze, watchEffect as Nr } from "vue";
5
5
  function ut(e) {
6
6
  this.message = e || "";
7
7
  }
@@ -313,7 +313,7 @@ function St(e, t) {
313
313
  }
314
314
  }
315
315
  /*!
316
- * pinia v2.2.2
316
+ * pinia v2.3.0
317
317
  * (c) 2024 Eduardo San Martin Morote
318
318
  * @license MIT
319
319
  */
@@ -329,7 +329,7 @@ var K;
329
329
  (function(e) {
330
330
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
331
331
  })(K || (K = {}));
332
- const de = typeof window < "u", Lt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
332
+ const re = typeof window < "u", Lt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
333
333
  function Tr(e, { autoBom: t = !1 } = {}) {
334
334
  return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
335
335
  }
@@ -358,7 +358,7 @@ function Be(e) {
358
358
  n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(n);
359
359
  }
360
360
  }
361
- const Ue = typeof navigator == "object" ? navigator : { userAgent: "" }, Pn = /Macintosh/.test(Ue.userAgent) && /AppleWebKit/.test(Ue.userAgent) && !/Safari/.test(Ue.userAgent), $n = de ? (
361
+ const Ue = typeof navigator == "object" ? navigator : { userAgent: "" }, Pn = /Macintosh/.test(Ue.userAgent) && /AppleWebKit/.test(Ue.userAgent) && !/Safari/.test(Ue.userAgent), $n = re ? (
362
362
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
363
363
  typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Pn ? Dr : (
364
364
  // Use msSaveOrOpenBlob as a second approach
@@ -564,7 +564,7 @@ function Wr(e) {
564
564
  }
565
565
  }
566
566
  let Ee = !0;
567
- const He = [], ue = "pinia:mutations", L = "pinia", { assign: zr } = Object, Ge = (e) => "๐Ÿ " + e;
567
+ const He = [], le = "pinia:mutations", L = "pinia", { assign: zr } = Object, Ge = (e) => "๐Ÿ " + e;
568
568
  function qr(e, t) {
569
569
  St({
570
570
  id: "dev.esm.pinia",
@@ -576,7 +576,7 @@ function qr(e, t) {
576
576
  app: e
577
577
  }, (n) => {
578
578
  typeof n.now != "function" && j("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
579
- id: ue,
579
+ id: le,
580
580
  label: "Pinia ๐Ÿ",
581
581
  color: 15064968
582
582
  }), n.addInspector({
@@ -724,7 +724,7 @@ function Jr(e, t) {
724
724
  t.$onAction(({ after: i, onError: a, name: c, args: u }) => {
725
725
  const f = Tn++;
726
726
  n.addTimelineEvent({
727
- layerId: ue,
727
+ layerId: le,
728
728
  event: {
729
729
  time: r(),
730
730
  title: "๐Ÿ›ซ " + c,
@@ -737,8 +737,8 @@ function Jr(e, t) {
737
737
  groupId: f
738
738
  }
739
739
  }), i((l) => {
740
- re = void 0, n.addTimelineEvent({
741
- layerId: ue,
740
+ oe = void 0, n.addTimelineEvent({
741
+ layerId: le,
742
742
  event: {
743
743
  time: r(),
744
744
  title: "๐Ÿ›ฌ " + c,
@@ -753,8 +753,8 @@ function Jr(e, t) {
753
753
  }
754
754
  });
755
755
  }), a((l) => {
756
- re = void 0, n.addTimelineEvent({
757
- layerId: ue,
756
+ oe = void 0, n.addTimelineEvent({
757
+ layerId: le,
758
758
  event: {
759
759
  time: r(),
760
760
  logType: "error",
@@ -771,9 +771,9 @@ function Jr(e, t) {
771
771
  });
772
772
  });
773
773
  }, !0), t._customProperties.forEach((i) => {
774
- Me(() => fe(t[i]), (a, c) => {
774
+ Me(() => de(t[i]), (a, c) => {
775
775
  n.notifyComponentUpdate(), n.sendInspectorState(L), Ee && n.addTimelineEvent({
776
- layerId: ue,
776
+ layerId: le,
777
777
  event: {
778
778
  time: r(),
779
779
  title: "Change",
@@ -782,7 +782,7 @@ function Jr(e, t) {
782
782
  newValue: a,
783
783
  oldValue: c
784
784
  },
785
- groupId: re
785
+ groupId: oe
786
786
  }
787
787
  });
788
788
  }, { deep: !0 });
@@ -793,7 +793,7 @@ function Jr(e, t) {
793
793
  time: r(),
794
794
  title: Wr(a),
795
795
  data: zr({ store: J(t.$id) }, Gr(i)),
796
- groupId: re
796
+ groupId: oe
797
797
  };
798
798
  a === K.patchFunction ? u.subtitle = "โคต๏ธ" : a === K.patchObject ? u.subtitle = "๐Ÿงฉ" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
799
799
  _custom: {
@@ -803,14 +803,14 @@ function Jr(e, t) {
803
803
  value: i
804
804
  }
805
805
  }), n.addTimelineEvent({
806
- layerId: ue,
806
+ layerId: le,
807
807
  event: u
808
808
  });
809
809
  }, { detached: !0, flush: "sync" });
810
810
  const o = t._hotUpdate;
811
- t._hotUpdate = le((i) => {
811
+ t._hotUpdate = fe((i) => {
812
812
  o(i), n.addTimelineEvent({
813
- layerId: ue,
813
+ layerId: le,
814
814
  event: {
815
815
  time: r(),
816
816
  title: "๐Ÿ”ฅ " + t.$id,
@@ -828,22 +828,22 @@ function Jr(e, t) {
828
828
  }, n.notifyComponentUpdate(), n.sendInspectorTree(L), n.sendInspectorState(L), n.getSettings().logStoreChanges && j(`"${t.$id}" store installed ๐Ÿ†•`);
829
829
  });
830
830
  }
831
- let Tn = 0, re;
831
+ let Tn = 0, oe;
832
832
  function Bt(e, t, n) {
833
833
  const r = t.reduce((o, s) => (o[s] = Ce(e)[s], o), {});
834
834
  for (const o in r)
835
835
  e[o] = function() {
836
836
  const s = Tn, i = n ? new Proxy(e, {
837
837
  get(...c) {
838
- return re = s, Reflect.get(...c);
838
+ return oe = s, Reflect.get(...c);
839
839
  },
840
840
  set(...c) {
841
- return re = s, Reflect.set(...c);
841
+ return oe = s, Reflect.set(...c);
842
842
  }
843
843
  }) : e;
844
- re = s;
844
+ oe = s;
845
845
  const a = r[o].apply(i, arguments);
846
- return re = void 0, a;
846
+ return oe = void 0, a;
847
847
  };
848
848
  }
849
849
  function Kr({ app: e, store: t, options: n }) {
@@ -863,11 +863,11 @@ function Kr({ app: e, store: t, options: n }) {
863
863
  }
864
864
  }
865
865
  function Qr() {
866
- const e = _n(!0), t = e.run(() => oe({}));
866
+ const e = _n(!0), t = e.run(() => se({}));
867
867
  let n = [], r = [];
868
- const o = le({
868
+ const o = fe({
869
869
  install(s) {
870
- Te(o), o._a = s, s.provide(Nn, o), s.config.globalProperties.$pinia = o, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && de && qr(s, o), r.forEach((i) => n.push(i)), r = [];
870
+ Te(o), o._a = s, s.provide(Nn, o), s.config.globalProperties.$pinia = o, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re && qr(s, o), r.forEach((i) => n.push(i)), r = [];
871
871
  },
872
872
  use(s) {
873
873
  return !this._a && !Sn ? r.push(s) : n.push(s), this;
@@ -880,7 +880,7 @@ function Qr() {
880
880
  _s: /* @__PURE__ */ new Map(),
881
881
  state: t
882
882
  });
883
- return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof Proxy < "u" && o.use(Kr), o;
883
+ return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re && typeof Proxy < "u" && o.use(Kr), o;
884
884
  }
885
885
  function Dn(e, t) {
886
886
  for (const n in t) {
@@ -936,9 +936,9 @@ function Gt(e, t, n, r) {
936
936
  !a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = o ? o() : {});
937
937
  const f = process.env.NODE_ENV !== "production" && r ? (
938
938
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
939
- jt(oe(o ? o() : {}).value)
939
+ jt(se(o ? o() : {}).value)
940
940
  ) : jt(n.state.value[e]);
941
- return W(f, s, Object.keys(i || {}).reduce((l, d) => (process.env.NODE_ENV !== "production" && d in f && console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`), l[d] = le(z(() => {
941
+ return W(f, s, Object.keys(i || {}).reduce((l, d) => (process.env.NODE_ENV !== "production" && d in f && console.warn(`[๐Ÿ]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`), l[d] = fe(z(() => {
942
942
  Te(n);
943
943
  const p = n._s.get(e);
944
944
  return i[d].call(p, p);
@@ -958,7 +958,7 @@ function ht(e, t, n = {}, r, o, s) {
958
958
  let u, f, l = [], d = [], p;
959
959
  const b = r.state.value[e];
960
960
  !s && !b && (process.env.NODE_ENV === "production" || !o) && (r.state.value[e] = {});
961
- const S = oe({});
961
+ const S = se({});
962
962
  let E;
963
963
  function R(y) {
964
964
  let v;
@@ -996,12 +996,12 @@ function ht(e, t, n = {}, r, o, s) {
996
996
  return y[tt] = v, y;
997
997
  const A = function() {
998
998
  Te(r);
999
- const V = Array.from(arguments), ie = [], ae = [];
999
+ const V = Array.from(arguments), ae = [], ce = [];
1000
1000
  function Ve(F) {
1001
- ie.push(F);
1001
+ ae.push(F);
1002
1002
  }
1003
1003
  function ge(F) {
1004
- ae.push(F);
1004
+ ce.push(F);
1005
1005
  }
1006
1006
  _e(d, {
1007
1007
  args: V,
@@ -1014,12 +1014,12 @@ function ht(e, t, n = {}, r, o, s) {
1014
1014
  try {
1015
1015
  Q = y.apply(this && this.$id === e ? this : w, V);
1016
1016
  } catch (F) {
1017
- throw _e(ae, F), F;
1017
+ throw _e(ce, F), F;
1018
1018
  }
1019
- return Q instanceof Promise ? Q.then((F) => (_e(ie, F), F)).catch((F) => (_e(ae, F), Promise.reject(F))) : (_e(ie, Q), Q);
1019
+ return Q instanceof Promise ? Q.then((F) => (_e(ae, F), F)).catch((F) => (_e(ce, F), Promise.reject(F))) : (_e(ae, Q), Q);
1020
1020
  };
1021
1021
  return A[Ft] = !0, A[tt] = v, A;
1022
- }, B = /* @__PURE__ */ le({
1022
+ }, B = /* @__PURE__ */ fe({
1023
1023
  actions: {},
1024
1024
  getters: {},
1025
1025
  state: [],
@@ -1032,20 +1032,20 @@ function ht(e, t, n = {}, r, o, s) {
1032
1032
  $patch: R,
1033
1033
  $reset: k,
1034
1034
  $subscribe(y, v = {}) {
1035
- const A = Ut(l, y, v.detached, () => V()), V = i.run(() => Me(() => r.state.value[e], (ie) => {
1035
+ const A = Ut(l, y, v.detached, () => V()), V = i.run(() => Me(() => r.state.value[e], (ae) => {
1036
1036
  (v.flush === "sync" ? f : u) && y({
1037
1037
  storeId: e,
1038
1038
  type: K.direct,
1039
1039
  events: p
1040
- }, ie);
1040
+ }, ae);
1041
1041
  }, W({}, c, v)));
1042
1042
  return A;
1043
1043
  },
1044
1044
  $dispose: P
1045
- }, w = En(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && de ? W(
1045
+ }, w = En(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re ? W(
1046
1046
  {
1047
1047
  _hmrPayload: B,
1048
- _customProperties: le(/* @__PURE__ */ new Set())
1048
+ _customProperties: fe(/* @__PURE__ */ new Set())
1049
1049
  // devtools custom properties
1050
1050
  },
1051
1051
  q
@@ -1064,8 +1064,8 @@ function ht(e, t, n = {}, r, o, s) {
1064
1064
  } else process.env.NODE_ENV !== "production" && Ht(v) && (B.getters[y] = s ? (
1065
1065
  // @ts-expect-error
1066
1066
  n.getters[y]
1067
- ) : v, de && (G._getters || // @ts-expect-error: same
1068
- (G._getters = le([]))).push(y));
1067
+ ) : v, re && (G._getters || // @ts-expect-error: same
1068
+ (G._getters = fe([]))).push(y));
1069
1069
  }
1070
1070
  if (W(w, G), W(Ce(w), G), Object.defineProperty(w, "$state", {
1071
1071
  get: () => process.env.NODE_ENV !== "production" && o ? S.value : r.state.value[e],
@@ -1076,7 +1076,7 @@ function ht(e, t, n = {}, r, o, s) {
1076
1076
  W(v, y);
1077
1077
  });
1078
1078
  }
1079
- }), process.env.NODE_ENV !== "production" && (w._hotUpdate = le((y) => {
1079
+ }), process.env.NODE_ENV !== "production" && (w._hotUpdate = fe((y) => {
1080
1080
  w._hotUpdating = !0, y._hmrPayload.state.forEach((v) => {
1081
1081
  if (v in w.$state) {
1082
1082
  const A = y.$state[v], V = w.$state[v];
@@ -1104,7 +1104,7 @@ function ht(e, t, n = {}, r, o, s) {
1104
1104
  }), Object.keys(w._hmrPayload.actions).forEach((v) => {
1105
1105
  v in y._hmrPayload.actions || et(w, v);
1106
1106
  }), w._hmrPayload = y._hmrPayload, w._getters = y._getters, w._hotUpdating = !1;
1107
- })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && de) {
1107
+ })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re) {
1108
1108
  const y = {
1109
1109
  writable: !0,
1110
1110
  configurable: !0,
@@ -1116,7 +1116,7 @@ function ht(e, t, n = {}, r, o, s) {
1116
1116
  });
1117
1117
  }
1118
1118
  return r._p.forEach((y) => {
1119
- if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && de) {
1119
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re) {
1120
1120
  const v = i.run(() => y({
1121
1121
  store: w,
1122
1122
  app: r._a,
@@ -1135,6 +1135,7 @@ function ht(e, t, n = {}, r, o, s) {
1135
1135
  state: () => new MyClass()
1136
1136
  Found in store "${w.$id}".`), b && s && n.hydrate && n.hydrate(w.$state, b), u = !0, f = !0, w;
1137
1137
  }
1138
+ /*! #__NO_SIDE_EFFECTS__ */
1138
1139
  // @__NO_SIDE_EFFECTS__
1139
1140
  function eo(e, t, n) {
1140
1141
  let r, o;
@@ -1154,7 +1155,7 @@ This will fail in production.`);
1154
1155
  const l = "__hot:" + r, d = s ? ht(l, t, o, a, !0) : Gt(l, W({}, o), a, !0);
1155
1156
  c._hotUpdate(d), delete a.state.value[l], a._s.delete(l);
1156
1157
  }
1157
- if (process.env.NODE_ENV !== "production" && de) {
1158
+ if (process.env.NODE_ENV !== "production" && re) {
1158
1159
  const l = bt();
1159
1160
  if (l && l.proxy && // avoid adding stores that are just built for hot module replacement
1160
1161
  !c) {
@@ -1167,12 +1168,12 @@ This will fail in production.`);
1167
1168
  return i.$id = r, i;
1168
1169
  }
1169
1170
  const to = /* @__PURE__ */ eo("data", () => {
1170
- const e = oe([]), t = oe({});
1171
+ const e = se([]), t = se({});
1171
1172
  return { records: e, record: t };
1172
1173
  });
1173
1174
  function Ti(e) {
1174
1175
  e || (e = pe("$registry"));
1175
- const t = to(), n = oe(new lt(e, t)), r = oe(!1);
1176
+ const t = to(), n = se(new lt(e, t)), r = se(!1);
1176
1177
  return wr(async () => {
1177
1178
  var c, u;
1178
1179
  const o = e.router.currentRoute.value, s = (c = o.params.records) == null ? void 0 : c.toString().toLowerCase(), i = (u = o.params.record) == null ? void 0 : u.toString().toLowerCase();
@@ -1297,9 +1298,9 @@ function Wt(e, t) {
1297
1298
  }
1298
1299
  function zt(e, t, n) {
1299
1300
  const r = t.matched.length - 1, o = n.matched.length - 1;
1300
- return r > -1 && r === o && se(t.matched[r], n.matched[o]) && Fn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1301
+ return r > -1 && r === o && ie(t.matched[r], n.matched[o]) && Fn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1301
1302
  }
1302
- function se(e, t) {
1303
+ function ie(e, t) {
1303
1304
  return (e.aliasOf || e) === (t.aliasOf || t);
1304
1305
  }
1305
1306
  function Fn(e, t) {
@@ -2165,7 +2166,7 @@ function sn(e) {
2165
2166
  const t = pe(Pt), n = pe(qn);
2166
2167
  let r = !1, o = null;
2167
2168
  const s = z(() => {
2168
- const f = fe(e.to);
2169
+ const f = de(e.to);
2169
2170
  return process.env.NODE_ENV !== "production" && (!r || f !== o) && (We(f) || (r ? O(`Invalid value for prop "to" in useLink()
2170
2171
  - to:`, f, `
2171
2172
  - previous to:`, o, `
@@ -2176,7 +2177,7 @@ function sn(e) {
2176
2177
  const { matched: f } = s.value, { length: l } = f, d = f[l - 1], p = n.matched;
2177
2178
  if (!d || !p.length)
2178
2179
  return -1;
2179
- const b = p.findIndex(se.bind(null, d));
2180
+ const b = p.findIndex(ie.bind(null, d));
2180
2181
  if (b > -1)
2181
2182
  return b;
2182
2183
  const S = an(f[l - 2]);
@@ -2186,12 +2187,12 @@ function sn(e) {
2186
2187
  // referring to the empty child. Or we currently are on a different
2187
2188
  // child of the same parent
2188
2189
  an(d) === S && // avoid comparing the child with its parent
2189
- p[p.length - 1].path !== S ? p.findIndex(se.bind(null, f[l - 2])) : b
2190
+ p[p.length - 1].path !== S ? p.findIndex(ie.bind(null, f[l - 2])) : b
2190
2191
  );
2191
2192
  }), a = z(() => i.value > -1 && ss(n.params, s.value.params)), c = z(() => i.value > -1 && i.value === n.matched.length - 1 && Fn(n.params, s.value.params));
2192
2193
  function u(f = {}) {
2193
- return os(f) ? t[fe(e.replace) ? "replace" : "push"](
2194
- fe(e.to)
2194
+ return os(f) ? t[de(e.replace) ? "replace" : "push"](
2195
+ de(e.to)
2195
2196
  // avoid uncaught errors are they are logged anyway
2196
2197
  ).catch(Re) : Promise.resolve();
2197
2198
  }
@@ -2205,7 +2206,7 @@ function sn(e) {
2205
2206
  error: null
2206
2207
  };
2207
2208
  f.__vrl_devtools = f.__vrl_devtools || [], f.__vrl_devtools.push(l), Nr(() => {
2208
- l.route = s.value, l.isActive = a.value, l.isExactActive = c.value, l.error = We(fe(e.to)) ? null : 'Invalid "to" value';
2209
+ l.route = s.value, l.isActive = a.value, l.isExactActive = c.value, l.error = We(de(e.to)) ? null : 'Invalid "to" value';
2209
2210
  }, { flush: "post" });
2210
2211
  }
2211
2212
  }
@@ -2300,7 +2301,7 @@ const cn = (e, t, n) => e ?? t ?? n, is = /* @__PURE__ */ bn({
2300
2301
  setup(e, { attrs: t, slots: n }) {
2301
2302
  process.env.NODE_ENV !== "production" && cs();
2302
2303
  const r = pe(_t), o = z(() => e.route || r.value), s = pe(on, 0), i = z(() => {
2303
- let u = fe(s);
2304
+ let u = de(s);
2304
2305
  const { matched: f } = o.value;
2305
2306
  let l;
2306
2307
  for (; (l = f[u]) && !l.components; )
@@ -2308,11 +2309,11 @@ const cn = (e, t, n) => e ?? t ?? n, is = /* @__PURE__ */ bn({
2308
2309
  return u;
2309
2310
  }), a = z(() => o.value.matched[i.value]);
2310
2311
  Ze(on, z(() => i.value + 1)), Ze(es, a), Ze(_t, o);
2311
- const c = oe();
2312
+ const c = se();
2312
2313
  return Me(() => [c.value, a.value, e.name], ([u, f, l], [d, p, b]) => {
2313
2314
  f && (f.instances[l] = u, p && p !== f && u && u === d && (f.leaveGuards.size || (f.leaveGuards = p.leaveGuards), f.updateGuards.size || (f.updateGuards = p.updateGuards))), u && f && // if there is no instance but to and from are the same this might be
2314
2315
  // the first visit
2315
- (!p || !se(f, p) || !d) && (f.enterCallbacks[l] || []).forEach((S) => S(u));
2316
+ (!p || !ie(f, p) || !d) && (f.enterCallbacks[l] || []).forEach((S) => S(u));
2316
2317
  }, { flush: "post" }), () => {
2317
2318
  const u = o.value, f = e.name, l = a.value, d = l && l.components[f];
2318
2319
  if (!d)
@@ -2610,8 +2611,8 @@ function Xn(e) {
2610
2611
  let vs = 0;
2611
2612
  const ys = /^\/(.*)\/([a-z]*)$/;
2612
2613
  function Zn(e, t) {
2613
- const n = t.matched.length && se(t.matched[t.matched.length - 1], e.record);
2614
- e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => se(r, e.record))), e.children.forEach((r) => Zn(r, t));
2614
+ const n = t.matched.length && ie(t.matched[t.matched.length - 1], e.record);
2615
+ e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => ie(r, e.record))), e.children.forEach((r) => Zn(r, t));
2615
2616
  }
2616
2617
  function er(e) {
2617
2618
  e.__vd_match = !1, e.children.forEach(er);
@@ -2658,12 +2659,12 @@ function Es(e) {
2658
2659
  }
2659
2660
  function R(h, g) {
2660
2661
  if (g = C({}, g || c.value), typeof h == "string") {
2661
- const N = rt(n, h, g.path), T = t.resolve({ path: N.path }, g), ce = o.createHref(N.fullPath);
2662
- return process.env.NODE_ENV !== "production" && (ce.startsWith("//") ? O(`Location "${h}" resolved to "${ce}". A resolved location cannot start with multiple slashes.`) : T.matched.length || O(`No match found for location with path "${h}"`)), C(N, T, {
2662
+ const N = rt(n, h, g.path), T = t.resolve({ path: N.path }, g), ue = o.createHref(N.fullPath);
2663
+ return process.env.NODE_ENV !== "production" && (ue.startsWith("//") ? O(`Location "${h}" resolved to "${ue}". A resolved location cannot start with multiple slashes.`) : T.matched.length || O(`No match found for location with path "${h}"`)), C(N, T, {
2663
2664
  params: d(T.params),
2664
2665
  hash: Oe(N.hash),
2665
2666
  redirectedFrom: void 0,
2666
- href: ce
2667
+ href: ue
2667
2668
  });
2668
2669
  }
2669
2670
  if (process.env.NODE_ENV !== "production" && !We(h))
@@ -2757,8 +2758,8 @@ ${JSON.stringify(_, null, 2)}
2757
2758
  );
2758
2759
  const T = m;
2759
2760
  T.redirectedFrom = g;
2760
- let ce;
2761
- return !D && zt(r, _, m) && (ce = Ne(16, { to: T, from: _ }), Vt(
2761
+ let ue;
2762
+ return !D && zt(r, _, m) && (ue = Ne(16, { to: T, from: _ }), Vt(
2762
2763
  _,
2763
2764
  _,
2764
2765
  // this is a push, the only way for it to be triggered from a
@@ -2767,7 +2768,7 @@ ${JSON.stringify(_, null, 2)}
2767
2768
  // This cannot be the first navigation because the initial location
2768
2769
  // cannot be manually navigated to
2769
2770
  !1
2770
- )), (ce ? Promise.resolve(ce) : y(T, _)).catch((U) => X(U) ? (
2771
+ )), (ue ? Promise.resolve(ue) : y(T, _)).catch((U) => X(U) ? (
2771
2772
  // navigation redirects still mark the router as ready
2772
2773
  X(
2773
2774
  U,
@@ -2871,7 +2872,7 @@ ${JSON.stringify(_, null, 2)}
2871
2872
  }, I)) : o.push(h.fullPath, I)), c.value = h, Vt(h, g, m, $), Ke();
2872
2873
  }
2873
2874
  let V;
2874
- function ie() {
2875
+ function ae() {
2875
2876
  V || (V = o.listen((h, g, m) => {
2876
2877
  if (!xt.listening)
2877
2878
  return;
@@ -2920,7 +2921,7 @@ ${JSON.stringify(_, null, 2)}
2920
2921
  }).catch(Re);
2921
2922
  }));
2922
2923
  }
2923
- let ae = ke(), Ve = ke(), ge;
2924
+ let ce = ke(), Ve = ke(), ge;
2924
2925
  function Q(h, g, m) {
2925
2926
  Ke(h);
2926
2927
  const _ = Ve.list();
@@ -2928,11 +2929,11 @@ ${JSON.stringify(_, null, 2)}
2928
2929
  }
2929
2930
  function F() {
2930
2931
  return ge && c.value !== te ? Promise.resolve() : new Promise((h, g) => {
2931
- ae.add([h, g]);
2932
+ ce.add([h, g]);
2932
2933
  });
2933
2934
  }
2934
2935
  function Ke(h) {
2935
- return ge || (ge = !h, ie(), ae.list().forEach(([g, m]) => h ? m(h) : g()), ae.reset()), h;
2936
+ return ge || (ge = !h, ae(), ce.list().forEach(([g, m]) => h ? m(h) : g()), ce.reset()), h;
2936
2937
  }
2937
2938
  function Vt(h, g, m, _) {
2938
2939
  const { scrollBehavior: I } = e;
@@ -2967,7 +2968,7 @@ ${JSON.stringify(_, null, 2)}
2967
2968
  const g = this;
2968
2969
  h.component("RouterLink", rs), h.component("RouterView", as), h.config.globalProperties.$router = g, Object.defineProperty(h.config.globalProperties, "$route", {
2969
2970
  enumerable: !0,
2970
- get: () => fe(c)
2971
+ get: () => de(c)
2971
2972
  }), Z && // used for the initial navigation client side to avoid pushing
2972
2973
  // multiple times when the router is used in multiple apps
2973
2974
  !Ye && c.value === te && (Ye = !0, M(o.location).catch((I) => {
@@ -2995,9 +2996,9 @@ function bs(e, t) {
2995
2996
  const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
2996
2997
  for (let i = 0; i < s; i++) {
2997
2998
  const a = t.matched[i];
2998
- a && (e.matched.find((u) => se(u, a)) ? r.push(a) : n.push(a));
2999
+ a && (e.matched.find((u) => ie(u, a)) ? r.push(a) : n.push(a));
2999
3000
  const c = e.matched[i];
3000
- c && (t.matched.find((u) => se(u, c)) || o.push(c));
3001
+ c && (t.matched.find((u) => ie(u, c)) || o.push(c));
3001
3002
  }
3002
3003
  return [n, r, o];
3003
3004
  }