@fox-js/fox 3.1.1-28 → 3.1.1-29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/libs/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as jr, effectScope as fs, getCurrentScope as Kr, h as he, hasInjectionContext as _e, inject as N, onActivated as cs, onDeactivated as hs, onScopeDispose as Fe, provide as te, reactive as ys, readonly as ds, ref as ms, shallowReactive as vs, shallowRef as Lr, toRaw as Ht, watch as ps } from "vue";
1
+ import { defineComponent as jr, effectScope as fs, getCurrentScope as Kr, h as he, hasInjectionContext as _e, inject as N, onActivated as cs, onDeactivated as hs, onScopeDispose as Fe, provide as te, reactive as ys, readonly as ds, ref as ms, shallowReactive as ps, shallowRef as Lr, toRaw as Ht, watch as vs } from "vue";
2
2
  var Ee = typeof window < "u", C = function() {
3
3
  return window;
4
4
  }, Je = function() {
@@ -398,9 +398,9 @@ function Nr(e, t, r) {
398
398
  };
399
399
  let n = null;
400
400
  r && r.debounce === !1 ? n = i : n = Or(i, r && r.debounceDelay ? r.debounceDelay : 250);
401
- const o = e ? vs(t) : ys(t);
401
+ const o = e ? ps(t) : ys(t);
402
402
  return fs(!0).run(() => {
403
- ps(o, (l) => {
403
+ vs(o, (l) => {
404
404
  const a = Ht(l);
405
405
  n(a);
406
406
  });
@@ -528,17 +528,17 @@ function Ts(e, t) {
528
528
  repeatable: m,
529
529
  optional: b
530
530
  });
531
- const v = g || cr;
532
- if (v !== cr) {
531
+ const p = g || cr;
532
+ if (p !== cr) {
533
533
  y += J.BonusCustomRegExp;
534
534
  try {
535
- new RegExp(`(${v})`);
535
+ new RegExp(`(${p})`);
536
536
  } catch (L) {
537
- throw new Error(`Invalid custom RegExp for param "${d}" (${v}): ` + L.message);
537
+ throw new Error(`Invalid custom RegExp for param "${d}" (${p}): ` + L.message);
538
538
  }
539
539
  }
540
- let K = m ? `((?:${v})(?:/(?:${v}))*)` : `(${v})`;
541
- c || (K = b && u.length < 2 ? `(?:/${K})` : "/" + K), b && (K += "?"), i += K, y += J.Dynamic, b && (y += J.BonusOptional), m && (y += J.BonusRepeatable), v === ".*" && (y += J.BonusWildcard);
540
+ let K = m ? `((?:${p})(?:/(?:${p}))*)` : `(${p})`;
541
+ c || (K = b && u.length < 2 ? `(?:/${K})` : "/" + K), b && (K += "?"), i += K, y += J.Dynamic, b && (y += J.BonusOptional), m && (y += J.BonusRepeatable), p === ".*" && (y += J.BonusWildcard);
542
542
  }
543
543
  f.push(y);
544
544
  }
@@ -567,11 +567,11 @@ function Ts(e, t) {
567
567
  else if (y.type === de.Param) {
568
568
  const { value: d, repeatable: m, optional: b } = y, g = d in u ? u[d] : "";
569
569
  if (nr(g) && !m) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
570
- const v = nr(g) ? g.join("/") : g;
571
- if (!v) if (b)
570
+ const p = nr(g) ? g.join("/") : g;
571
+ if (!p) if (b)
572
572
  h.length < 2 && (f.endsWith("/") ? f = f.slice(0, -1) : c = !0);
573
573
  else throw new Error(`Missing required param "${d}"`);
574
- f += v;
574
+ f += p;
575
575
  }
576
576
  }
577
577
  return f || "/";
@@ -785,14 +785,14 @@ var Os = class {
785
785
  }
786
786
  }, E = /* @__PURE__ */ (function(e) {
787
787
  return e.Busy = "Busy", e.Free = "Free", e.Reject = "Reject", e.Exception = "Exception", e.Finished = "Finished", e;
788
- })(E || {}), B = /* @__PURE__ */ Symbol("chainKey"), k = /* @__PURE__ */ Symbol("cursorKey"), xt = /* @__PURE__ */ Symbol("$persistentModeKey"), _ = /* @__PURE__ */ Symbol("statusKey"), Z = /* @__PURE__ */ Symbol("argsKey"), Xe = /* @__PURE__ */ Symbol("exArgsKey"), pe = /* @__PURE__ */ Symbol("successFnsKey"), $e = /* @__PURE__ */ Symbol("errorFnsKey"), le = /* @__PURE__ */ Symbol("sessionKey"), Y = /* @__PURE__ */ Symbol("_go"), ct = class {
788
+ })(E || {}), B = /* @__PURE__ */ Symbol("chainKey"), k = /* @__PURE__ */ Symbol("cursorKey"), xt = /* @__PURE__ */ Symbol("$persistentModeKey"), _ = /* @__PURE__ */ Symbol("statusKey"), Z = /* @__PURE__ */ Symbol("argsKey"), Xe = /* @__PURE__ */ Symbol("exArgsKey"), ve = /* @__PURE__ */ Symbol("successFnsKey"), $e = /* @__PURE__ */ Symbol("errorFnsKey"), le = /* @__PURE__ */ Symbol("sessionKey"), Y = /* @__PURE__ */ Symbol("_go"), ct = class {
789
789
  [B] = [];
790
790
  [k] = 0;
791
791
  [xt] = !1;
792
792
  [_] = E.Free;
793
793
  [Z] = [];
794
794
  [Xe] = [];
795
- [pe] = [];
795
+ [ve] = [];
796
796
  [$e] = [];
797
797
  [le];
798
798
  get session() {
@@ -816,8 +816,8 @@ var Os = class {
816
816
  return this[_] = r, this[B] = [], this[k] = 0, this;
817
817
  } else if (r === E.Finished || this[k] >= this[B].length) {
818
818
  let n = [{ session: this[le] }, ...this[Z]];
819
- for (; this[pe].length > 0; ) {
820
- let o = this[pe].shift();
819
+ for (; this[ve].length > 0; ) {
820
+ let o = this[ve].shift();
821
821
  typeof o == "function" && He(() => {
822
822
  Reflect.apply(o, {}, n);
823
823
  });
@@ -868,8 +868,8 @@ var Os = class {
868
868
  reset(...e) {
869
869
  this[_] = E.Busy, this[Z] = e, this[B] = [], this[k] = 0;
870
870
  let t = [{ session: this[le] }, ...this[Z]];
871
- for (; this[pe].length > 0; ) {
872
- let r = this[pe].shift();
871
+ for (; this[ve].length > 0; ) {
872
+ let r = this[ve].shift();
873
873
  He(() => {
874
874
  Reflect.apply(r, this, t);
875
875
  });
@@ -880,7 +880,7 @@ var Os = class {
880
880
  return this[_] === E.Reject || this[_] === E.Exception ? this : (Array.isArray(e) ? this[B] = [...this[B], ...e] : this[B].push(e), this[_] === E.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this));
881
881
  }
882
882
  wait(e, t) {
883
- return e && typeof e == "function" && this[pe].push(e), t && typeof t == "function" && this[$e].push(t), this[_] === E.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this);
883
+ return e && typeof e == "function" && this[ve].push(e), t && typeof t == "function" && this[$e].push(t), this[_] === E.Busy ? this : (Reflect.apply(this[Y], this, [0, ...this[Z]]), this);
884
884
  }
885
885
  exception(e) {
886
886
  return e && typeof e == "function" && this[$e].push(e), this[_] === E.Busy ? this : Reflect.apply(this[Y], this, [0, ...this[Z]]);
@@ -894,11 +894,11 @@ var Os = class {
894
894
  constructor(e, t) {
895
895
  this.currentRoute = e, this.routes = t;
896
896
  }
897
- }, ae = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), dr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Qe = /* @__PURE__ */ Symbol("_getRouteMark"), Et = /* @__PURE__ */ Symbol("_getUrlSearch"), Pt = /* @__PURE__ */ Symbol("_generateLocation"), Ze = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), je = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), mr = /* @__PURE__ */ Symbol("_beforeRestore"), vr = "Symbol(_fox_restore_point)";
897
+ }, ae = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), dr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Qe = /* @__PURE__ */ Symbol("_getRouteMark"), Et = /* @__PURE__ */ Symbol("_getUrlSearch"), Pt = /* @__PURE__ */ Symbol("_generateLocation"), Ze = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), je = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), mr = /* @__PURE__ */ Symbol("_beforeRestore"), pr = "Symbol(_fox_restore_point)";
898
898
  function Ye(e, ...t) {
899
899
  return typeof e == "function" ? Reflect.apply(e, null, [...t]) : e;
900
900
  }
901
- function pr(e) {
901
+ function vr(e) {
902
902
  if (!Array.isArray(e)) return !1;
903
903
  if (e.length === 0) return !0;
904
904
  const t = e[0];
@@ -969,7 +969,7 @@ var Jr = class {
969
969
  return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
970
970
  }
971
971
  [dr]() {
972
- const e = this[Qe]() ?? "/", t = this.storage.getItem(vr);
972
+ const e = this[Qe]() ?? "/", t = this.storage.getItem(pr);
973
973
  if (t) try {
974
974
  const n = JSON.parse(t);
975
975
  if (n.mark === e && Array.isArray(n.routes) && n.routes.length > 0) {
@@ -997,7 +997,7 @@ var Jr = class {
997
997
  mark: e,
998
998
  routes: t
999
999
  });
1000
- this.storage.setItem(vr, r);
1000
+ this.storage.setItem(pr, r);
1001
1001
  } catch (r) {
1002
1002
  console.error(r.message, r);
1003
1003
  }
@@ -1033,7 +1033,7 @@ var Jr = class {
1033
1033
  }
1034
1034
  goBack(e, t) {
1035
1035
  const r = C(), s = r.history.state;
1036
- if (pr(s) && s.length > 0) {
1036
+ if (vr(s) && s.length > 0) {
1037
1037
  let i = !1;
1038
1038
  for (let u = s.length - 1; u >= 0; u--) {
1039
1039
  const f = x.from(s[u]);
@@ -1053,7 +1053,7 @@ var Jr = class {
1053
1053
  }, a = () => {
1054
1054
  clearTimeout(o);
1055
1055
  const u = C().history.state;
1056
- if (pr(u) && u.length > 0) {
1056
+ if (vr(u) && u.length > 0) {
1057
1057
  let f = u.length;
1058
1058
  const c = u[f - 1], h = x.from(c);
1059
1059
  if (x.isSame(h, e))
@@ -1184,7 +1184,7 @@ var Vs = class {
1184
1184
  function Ws(e = "", t = 50) {
1185
1185
  return new Vs(e, t);
1186
1186
  }
1187
- var et = /* @__PURE__ */ Symbol("_constructRouteModel"), tt = /* @__PURE__ */ Symbol("_findRouteModel"), _t = /* @__PURE__ */ Symbol("_findRootView"), Js = /* @__PURE__ */ Symbol("_getFirstView"), ue = /* @__PURE__ */ Symbol("_removeView"), gr = /* @__PURE__ */ Symbol("_buildPage"), br = /* @__PURE__ */ Symbol("_resolveComponent"), wr = /* @__PURE__ */ Symbol("_update"), se = /* @__PURE__ */ Symbol("_merge"), Ft = /* @__PURE__ */ Symbol("_handleHistoryChange"), fe = /* @__PURE__ */ Symbol("_handleRouteUpdated"), rt = /* @__PURE__ */ Symbol("routeUpdatedCallback"), Ct = /* @__PURE__ */ Symbol("currentRoute"), p = /* @__PURE__ */ Symbol("currentRoutes"), st = /* @__PURE__ */ Symbol("routeSessionCacheKey"), Rr = /* @__PURE__ */ Symbol("_addRouteRecorder"), Ke = /* @__PURE__ */ Symbol("_removeRouteRecorder"), Le = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), $ = /* @__PURE__ */ Symbol("_handleError"), it = /* @__PURE__ */ Symbol("errorCallback"), D = /* @__PURE__ */ Symbol("registerKey"), nt = /* @__PURE__ */ Symbol("notFoundKey"), At = /* @__PURE__ */ Symbol("notFoundPathKey"), W = /* @__PURE__ */ Symbol("forestKey"), S = /* @__PURE__ */ Symbol("historyKey"), Me = /* @__PURE__ */ Symbol("beforeFiltersKey"), Te = /* @__PURE__ */ Symbol("afterFiltersKey"), ke = /* @__PURE__ */ Symbol("destroyFiltersKey"), qt = /* @__PURE__ */ Symbol("propsFilterKey"), ge = /* @__PURE__ */ Symbol("mainDispatcherKey"), $t = /* @__PURE__ */ Symbol("initKey"), ce = /* @__PURE__ */ Symbol("readyKey"), jt = /* @__PURE__ */ Symbol("readyHandlersKey"), ot = /* @__PURE__ */ Symbol("_markReady"), xr = /* @__PURE__ */ Symbol("_createNextFn"), Kt = /* @__PURE__ */ Symbol("_start"), Lt = /* @__PURE__ */ Symbol("_before"), Mt = /* @__PURE__ */ Symbol("_after"), Sr = /* @__PURE__ */ Symbol("_destroy"), Tt = /* @__PURE__ */ Symbol("_load"), Ie = /* @__PURE__ */ Symbol("_unload"), Oe = /* @__PURE__ */ Symbol("routerGuardKey");
1187
+ var et = /* @__PURE__ */ Symbol("_constructRouteModel"), tt = /* @__PURE__ */ Symbol("_findRouteModel"), _t = /* @__PURE__ */ Symbol("_findRootView"), Js = /* @__PURE__ */ Symbol("_getFirstView"), ue = /* @__PURE__ */ Symbol("_removeView"), gr = /* @__PURE__ */ Symbol("_buildPage"), br = /* @__PURE__ */ Symbol("_resolveComponent"), wr = /* @__PURE__ */ Symbol("_update"), se = /* @__PURE__ */ Symbol("_merge"), Ft = /* @__PURE__ */ Symbol("_handleHistoryChange"), fe = /* @__PURE__ */ Symbol("_handleRouteUpdated"), rt = /* @__PURE__ */ Symbol("routeUpdatedCallback"), Ct = /* @__PURE__ */ Symbol("currentRoute"), v = /* @__PURE__ */ Symbol("currentRoutes"), st = /* @__PURE__ */ Symbol("routeSessionCacheKey"), Rr = /* @__PURE__ */ Symbol("_addRouteRecorder"), Ke = /* @__PURE__ */ Symbol("_removeRouteRecorder"), Le = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), $ = /* @__PURE__ */ Symbol("_handleError"), it = /* @__PURE__ */ Symbol("errorCallback"), D = /* @__PURE__ */ Symbol("registerKey"), nt = /* @__PURE__ */ Symbol("notFoundKey"), At = /* @__PURE__ */ Symbol("notFoundPathKey"), W = /* @__PURE__ */ Symbol("forestKey"), S = /* @__PURE__ */ Symbol("historyKey"), Me = /* @__PURE__ */ Symbol("beforeFiltersKey"), Te = /* @__PURE__ */ Symbol("afterFiltersKey"), ke = /* @__PURE__ */ Symbol("destroyFiltersKey"), qt = /* @__PURE__ */ Symbol("propsFilterKey"), ge = /* @__PURE__ */ Symbol("mainDispatcherKey"), $t = /* @__PURE__ */ Symbol("initKey"), ce = /* @__PURE__ */ Symbol("readyKey"), jt = /* @__PURE__ */ Symbol("readyHandlersKey"), ot = /* @__PURE__ */ Symbol("_markReady"), xr = /* @__PURE__ */ Symbol("_createNextFn"), Kt = /* @__PURE__ */ Symbol("_start"), Lt = /* @__PURE__ */ Symbol("_before"), Mt = /* @__PURE__ */ Symbol("_after"), Sr = /* @__PURE__ */ Symbol("_destroy"), Tt = /* @__PURE__ */ Symbol("_load"), Ie = /* @__PURE__ */ Symbol("_unload"), Oe = /* @__PURE__ */ Symbol("routerGuardKey");
1188
1188
  function zs(e) {
1189
1189
  return e.layers.length == 0 || e.layers[0].views.length == 0;
1190
1190
  }
@@ -1196,7 +1196,7 @@ var Gs = class {
1196
1196
  [jt] = [];
1197
1197
  [W] = new Ds();
1198
1198
  [S];
1199
- [p] = new Array();
1199
+ [v] = new Array();
1200
1200
  [Ct] = Lr(null);
1201
1201
  [st] = /* @__PURE__ */ new WeakMap();
1202
1202
  [it] = null;
@@ -1259,16 +1259,16 @@ var Gs = class {
1259
1259
  [Ft](e) {
1260
1260
  try {
1261
1261
  if (!e) {
1262
- let n = [...this[p]].reverse();
1262
+ let n = [...this[v]].reverse();
1263
1263
  return this[Ie](n), Ee && C().location.reload(), Promise.resolve();
1264
1264
  }
1265
1265
  let t = null, r = [], s = [], i = 0;
1266
- for (; i < e.length && i < this[p].length && x.isSame(e[i], this[p][i]); i++)
1267
- e[i].active === !0 && e[i].active !== this[p][i].active && (t = e[i]);
1266
+ for (; i < e.length && i < this[v].length && x.isSame(e[i], this[v][i]); i++)
1267
+ e[i].active === !0 && e[i].active !== this[v][i].active && (t = e[i]);
1268
1268
  if (i < e.length) r = e.slice(i);
1269
- else if (i === e.length) for (; i < this[p].length && this[p][i].historyUpdatePolicy === "traceless"; i++)
1270
- r.push(this[p][i]), t = e[i];
1271
- if (i < this[p].length && (s = this[p].slice(i).reverse()), s.length === 0 && r.length === 0) {
1269
+ else if (i === e.length) for (; i < this[v].length && this[v][i].historyUpdatePolicy === "traceless"; i++)
1270
+ r.push(this[v][i]), t = e[i];
1271
+ if (i < this[v].length && (s = this[v].slice(i).reverse()), s.length === 0 && r.length === 0) {
1272
1272
  if (t !== null) return this.restore([t]);
1273
1273
  } else if (s.length > 0) {
1274
1274
  if (this[Ie](s)) {
@@ -1290,46 +1290,46 @@ var Gs = class {
1290
1290
  [Rr](e, t) {
1291
1291
  if (e.opsType === F.Open) {
1292
1292
  let r = !1;
1293
- const s = this[p].length - 1;
1293
+ const s = this[v].length - 1;
1294
1294
  for (let i = s; i >= 0; i--) {
1295
- const n = this[p][i];
1295
+ const n = this[v][i];
1296
1296
  if (e.root == n.root) {
1297
1297
  if (e.path === n.path) {
1298
- this[p].splice(i, 1, e), r = !0;
1298
+ this[v].splice(i, 1, e), r = !0;
1299
1299
  continue;
1300
1300
  }
1301
1301
  e.active && (n.active = !1);
1302
1302
  }
1303
1303
  }
1304
- r || this[p].push(e);
1305
- } else this[p].push(e);
1304
+ r || this[v].push(e);
1305
+ } else this[v].push(e);
1306
1306
  this[st].set(e, t), this[fe](e);
1307
1307
  }
1308
1308
  [Le]() {
1309
1309
  let e = [];
1310
- for (let t of this[p]) {
1310
+ for (let t of this[v]) {
1311
1311
  let r = x.clone(t, !0);
1312
1312
  e.push(r);
1313
1313
  }
1314
1314
  return e;
1315
1315
  }
1316
1316
  [Ke](e) {
1317
- if (!this[p]) {
1317
+ if (!this[v]) {
1318
1318
  this[fe](null);
1319
1319
  return;
1320
1320
  }
1321
1321
  let t = -1;
1322
- for (let r = 0; r < this[p].length; r++) if (x.isSame(this[p][r], e)) {
1322
+ for (let r = 0; r < this[v].length; r++) if (x.isSame(this[v][r], e)) {
1323
1323
  t = r;
1324
1324
  break;
1325
1325
  }
1326
1326
  if (t != -1) {
1327
- const r = this[p][t];
1328
- this[p].splice(t, 1);
1327
+ const r = this[v][t];
1328
+ this[v].splice(t, 1);
1329
1329
  const s = this[st].get(r);
1330
1330
  if (this[st].delete(r), this[Sr](r, s), r.opsType === F.Append) {
1331
- const i = this[p].length - 1;
1332
- this[fe](this[p][i] ?? null);
1331
+ const i = this[v].length - 1;
1332
+ this[fe](this[v][i] ?? null);
1333
1333
  } else this[fe](null);
1334
1334
  } else this[fe](null);
1335
1335
  }
@@ -1540,14 +1540,14 @@ var Gs = class {
1540
1540
  return new Promise((r) => {
1541
1541
  this[ge].post((s) => {
1542
1542
  try {
1543
- if (this[p].length === 0) {
1543
+ if (this[v].length === 0) {
1544
1544
  s.resolve(), r(!1);
1545
1545
  return;
1546
1546
  }
1547
- let i = -1, n = null, o = [], l = this[p].length - 1, a = l !== -1 ? this[p][l] : null;
1547
+ let i = -1, n = null, o = [], l = this[v].length - 1, a = l !== -1 ? this[v][l] : null;
1548
1548
  if (e) {
1549
1549
  if (n = e.root ?? "default", e.all) for (let f = l; f > 0; f--) {
1550
- const c = this[p][f];
1550
+ const c = this[v][f];
1551
1551
  if (c.opsType === F.Append) {
1552
1552
  const h = c.root ?? "default";
1553
1553
  if (n && n !== h) continue;
@@ -1555,7 +1555,7 @@ var Gs = class {
1555
1555
  }
1556
1556
  }
1557
1557
  else if (e.until) for (let f = l; f > 0; f--) {
1558
- let c = this[p][f];
1558
+ let c = this[v][f];
1559
1559
  if (c.opsType === F.Append && c.root === n) {
1560
1560
  if (e.until.charAt(0) === "/" && e.until === c.path) {
1561
1561
  i = f;
@@ -1568,7 +1568,7 @@ var Gs = class {
1568
1568
  }
1569
1569
  }
1570
1570
  else if (e.to) for (let f = l; f > 0; f--) {
1571
- const c = this[p][f];
1571
+ const c = this[v][f];
1572
1572
  if (c.opsType === F.Append) {
1573
1573
  const h = c.root ?? "default";
1574
1574
  if (n && n !== h) continue;
@@ -1582,7 +1582,7 @@ var Gs = class {
1582
1582
  }
1583
1583
  }
1584
1584
  } else for (let f = l; f > 0; f--) {
1585
- let c = this[p][f];
1585
+ let c = this[v][f];
1586
1586
  if (c.opsType === F.Append) {
1587
1587
  o.push(c), i = f - 1;
1588
1588
  break;
@@ -1593,12 +1593,12 @@ var Gs = class {
1593
1593
  console.warn(f), s.resolve(f), r(!1);
1594
1594
  return;
1595
1595
  }
1596
- const u = i !== -1 ? this[p][i] : null;
1596
+ const u = i !== -1 ? this[v][i] : null;
1597
1597
  if (this[Ie](o)) {
1598
1598
  if (t === !1)
1599
1599
  return s.resolve(), r(!0), !0;
1600
- const f = () => (s.resolve(), r(!0), !0), c = this[p].length;
1601
- if (u && x.isSame(u, this[p][c - 1])) {
1600
+ const f = () => (s.resolve(), r(!0), !0), c = this[v].length;
1601
+ if (u && x.isSame(u, this[v][c - 1])) {
1602
1602
  if (a?.historyUpdatePolicy === "traceless") {
1603
1603
  const h = new St(x.clone(u, !0), this[Le]());
1604
1604
  this[S]?.replace(h), f();
@@ -1626,8 +1626,8 @@ var Gs = class {
1626
1626
  return;
1627
1627
  }
1628
1628
  let s = [];
1629
- for (let i = 0; i < this[p].length; i++) {
1630
- let n = this[p][i];
1629
+ for (let i = 0; i < this[v].length; i++) {
1630
+ let n = this[v][i];
1631
1631
  if (n.root === r.root) {
1632
1632
  if (!r.path && !r.name) {
1633
1633
  s.push(n);
@@ -1701,7 +1701,7 @@ var Gs = class {
1701
1701
  };
1702
1702
  }
1703
1703
  [Kt](e) {
1704
- const t = new Ge(e, this[p].length > 0 ? this[p][this[p].length - 1] : void 0), r = {
1704
+ const t = new Ge(e, this[v].length > 0 ? this[v][this[v].length - 1] : void 0), r = {
1705
1705
  route: e,
1706
1706
  find: null
1707
1707
  };
@@ -1853,7 +1853,7 @@ var Gs = class {
1853
1853
  let r = t.layers[0].views;
1854
1854
  r.length > 0 && (r[0].slots.value = []);
1855
1855
  }
1856
- return this[p] = [], this[fe](null), Promise.resolve();
1856
+ return this[v] = [], this[fe](null), Promise.resolve();
1857
1857
  } else return new Promise((t, r) => {
1858
1858
  let s = null, i = !1;
1859
1859
  for (let n = 0; n < e.length; n++) {
@@ -1997,8 +1997,8 @@ var Gs = class {
1997
1997
  let m = [];
1998
1998
  for (let L = 1; L < c.length; L++) m.push(c[L].index);
1999
1999
  m.length > 0 ? this[ue](n, a, m, !0) : y && (u.slots.value = [...c]);
2000
- let b = [new O(u, t.index, f)], g = f + 1, v = 1, K = new O(u, t.index, f);
2001
- for (; b.length > 0 && g < n.layers.length && v < e.layers.length; g++, v++) {
2000
+ let b = [new O(u, t.index, f)], g = f + 1, p = 1, K = new O(u, t.index, f);
2001
+ for (; b.length > 0 && g < n.layers.length && p < e.layers.length; g++, p++) {
2002
2002
  let L = [];
2003
2003
  for (let M = 0; M < n.layers[g].views.length; M++) {
2004
2004
  let q = n.layers[g].views[M];
@@ -2006,7 +2006,7 @@ var Gs = class {
2006
2006
  }
2007
2007
  let Ce = [];
2008
2008
  for (let M of L) {
2009
- let q = n.layers[g].views[M], oe = e.layers[v].models, ee;
2009
+ let q = n.layers[g].views[M], oe = e.layers[p].models, ee;
2010
2010
  for (let T = 0; T < oe.length; T++) if (q.name === oe[T].name) {
2011
2011
  ee = oe[T];
2012
2012
  break;
@@ -2020,7 +2020,7 @@ var Gs = class {
2020
2020
  if (T.length == 0) {
2021
2021
  let Q = 0;
2022
2022
  q.slots.value = [new re(null, ee, Q)];
2023
- let U = g + 1, V = v + 1;
2023
+ let U = g + 1, V = p + 1;
2024
2024
  this[se](n, U, e, V, K);
2025
2025
  } else {
2026
2026
  let Q = T[0];
@@ -2029,7 +2029,7 @@ var Gs = class {
2029
2029
  x: M,
2030
2030
  y: g
2031
2031
  }, null, !0), q.slots.value = [new re(null, ee, 0)];
2032
- let U = g + 1, V = v + 1;
2032
+ let U = g + 1, V = p + 1;
2033
2033
  this[se](n, U, e, V, K);
2034
2034
  } else {
2035
2035
  q[G] && Q.route !== null && this[Ke](Q.route);
@@ -2046,7 +2046,7 @@ var Gs = class {
2046
2046
  }
2047
2047
  b = Ce;
2048
2048
  }
2049
- this[se](n, g, e, v, K);
2049
+ this[se](n, g, e, p, K);
2050
2050
  }
2051
2051
  }
2052
2052
  }
@@ -2308,9 +2308,9 @@ function Pe(e, t) {
2308
2308
  function Se(e, t) {
2309
2309
  e.classList.remove(t);
2310
2310
  }
2311
- var vi = Ee && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2311
+ var pi = Ee && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2312
2312
  function mt(e) {
2313
- vi(e);
2313
+ pi(e);
2314
2314
  }
2315
2315
  function A(e, t) {
2316
2316
  w(e) && Reflect.apply(e, null, t);
@@ -2364,11 +2364,11 @@ function rs(e, t, r = -1, s, i, n) {
2364
2364
  });
2365
2365
  }
2366
2366
  }
2367
- function vt(e) {
2367
+ function pt(e) {
2368
2368
  return !Ee || e === null ? !1 : e.opsType === F.Append || e.opsType === F.Open;
2369
2369
  }
2370
2370
  function ss(e, t, r = {}, s, i = -1) {
2371
- if (e || vt(s)) {
2371
+ if (e || pt(s)) {
2372
2372
  const n = Zr(r, e);
2373
2373
  n && Pe(t, n);
2374
2374
  const o = Yr(r, e);
@@ -2381,7 +2381,7 @@ function ss(e, t, r = {}, s, i = -1) {
2381
2381
  }
2382
2382
  }
2383
2383
  function is(e, t, r = {}, s, i, n, o) {
2384
- if (!vt(i) && !e) {
2384
+ if (!pt(i) && !e) {
2385
2385
  w(o) && o(o, [t]);
2386
2386
  return;
2387
2387
  }
@@ -2414,7 +2414,7 @@ function is(e, t, r = {}, s, i, n, o) {
2414
2414
  });
2415
2415
  }
2416
2416
  function ns(e, t, r = {}, s, i = -1) {
2417
- if (e || vt(s)) {
2417
+ if (e || pt(s)) {
2418
2418
  const n = es(r, e);
2419
2419
  n && Pe(t, n);
2420
2420
  const o = ts(r, e);
@@ -2427,7 +2427,7 @@ function ns(e, t, r = {}, s, i = -1) {
2427
2427
  }
2428
2428
  }
2429
2429
  function os(e, t, r = {}, s, i, n, o, l) {
2430
- if (!vt(n) && !e) {
2430
+ if (!pt(n) && !e) {
2431
2431
  w(l) && A(l, [t]), !e && w(i) && i();
2432
2432
  return;
2433
2433
  }
@@ -2489,7 +2489,7 @@ function Wt(e, t = {}, r, s = -1) {
2489
2489
  function ls(e) {
2490
2490
  return e.el;
2491
2491
  }
2492
- function pi(e, t = {}, r, s, i, n) {
2492
+ function vi(e, t = {}, r, s, i, n) {
2493
2493
  if (i === !0) {
2494
2494
  const o = ls(e);
2495
2495
  if (o == null) return;
@@ -2778,35 +2778,35 @@ var wi = class {
2778
2778
  if (s) {
2779
2779
  const c = /* @__PURE__ */ new Map(), h = [], y = a?.slots.value, d = [];
2780
2780
  for (let g = 0; g < y.length; g++) {
2781
- const v = y[g], K = `${e.name}_${v.index}`, L = ie(e.transition, v.route, g) ?? !0, Ce = { modelSlot: v };
2781
+ const p = y[g], K = `${e.name}_${p.index}`, L = ie(e.transition, p.route, g) ?? !0, Ce = { modelSlot: p };
2782
2782
  let M;
2783
2783
  t.slots.default ? M = he(Jt, Ce, { default: t.slots.default }) : M = he(Jt, Ce);
2784
- const q = {}, oe = ie(e.viewClass, v.route, g);
2784
+ const q = {}, oe = ie(e.viewClass, p.route, g);
2785
2785
  typeof oe == "string" && oe.length > 0 && (q[oe] = !0);
2786
- const ee = ie(e.viewActiveClass, v.route, g), T = ie(e.viewInactiveClass, v.route, g), Q = f.value.get(K);
2787
- if (typeof ee == "string" && ee.length > 0 && (q[ee] = v.active), typeof T == "string" && T.length > 0 && (q[T] = !v.active), Q && v.active !== Q.state) {
2786
+ const ee = ie(e.viewActiveClass, p.route, g), T = ie(e.viewInactiveClass, p.route, g), Q = f.value.get(K);
2787
+ if (typeof ee == "string" && ee.length > 0 && (q[ee] = p.active), typeof T == "string" && T.length > 0 && (q[T] = !p.active), Q && p.active !== Q.state) {
2788
2788
  const ir = Q.node;
2789
- v.active ? d.unshift(() => {
2790
- const pt = () => {
2791
- const Ae = lt(v);
2789
+ p.active ? d.unshift(() => {
2790
+ const vt = () => {
2791
+ const Ae = lt(p);
2792
2792
  Ae != null && _r(Ae, yt.ACTIVATED);
2793
2793
  };
2794
- pi(ir, e, v.route, g, L, pt);
2794
+ vi(ir, e, p.route, g, L, vt);
2795
2795
  }) : d.push(() => {
2796
- const pt = () => {
2797
- const Ae = lt(v);
2796
+ const vt = () => {
2797
+ const Ae = lt(p);
2798
2798
  Ae != null && _r(Ae, yt.INACTIVATED);
2799
2799
  };
2800
- gi(ir, e, v.route, g, L, pt);
2800
+ gi(ir, e, p.route, g, L, vt);
2801
2801
  });
2802
2802
  }
2803
2803
  const U = {
2804
2804
  class: q,
2805
2805
  key: K
2806
- }, V = ie(e.viewTagProps, v.route, g);
2807
- V !== null && typeof V == "object" && j(!0, U, be(V, i?.propsFilter)), v.route?.viewTagAttrs && typeof v.route?.viewTagAttrs == "object" && j(!0, U, be(v.route.viewTagAttrs, i?.propsFilter));
2808
- const ve = he(ie(e.viewTag, v.route, g), U, { default: () => [M] });
2809
- c.set(K, new wi(ve, v.active)), f.value.delete(K), L === !0 ? ve.transition = Wt(ve, e, v.route, g) : L === "custom" && (ve.transition = as(ve, e, v.route, g)), h.push(ve);
2806
+ }, V = ie(e.viewTagProps, p.route, g);
2807
+ V !== null && typeof V == "object" && j(!0, U, be(V, i?.propsFilter)), p.route?.viewTagAttrs && typeof p.route?.viewTagAttrs == "object" && j(!0, U, be(p.route.viewTagAttrs, i?.propsFilter));
2808
+ const pe = he(ie(e.viewTag, p.route, g), U, { default: () => [M] });
2809
+ c.set(K, new wi(pe, p.active)), f.value.delete(K), L === !0 ? pe.transition = Wt(pe, e, p.route, g) : L === "custom" && (pe.transition = as(pe, e, p.route, g)), h.push(pe);
2810
2810
  }
2811
2811
  f.value = c, bi(d);
2812
2812
  const m = ie(e.tag, null, -1), b = {};
@@ -3366,7 +3366,7 @@ var $r = class {
3366
3366
  const c = f.map((h) => h === "exports" ? ((!e.exports || typeof e.exports != "object") && (e.exports = {}), e.exports) : h === "module" ? e : h === "require" ? t : h);
3367
3367
  if (typeof a == "function") {
3368
3368
  const h = Reflect.apply(a, e, c);
3369
- h && typeof h == "object" && (e.exports = h);
3369
+ h && typeof h == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, h)) : e.exports = h;
3370
3370
  } else e.exports = a;
3371
3371
  e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3372
3372
  } catch (c) {
@@ -3376,7 +3376,7 @@ var $r = class {
3376
3376
  else {
3377
3377
  if (typeof a == "function") {
3378
3378
  const f = Reflect.apply(a, e, []);
3379
- f && typeof f == "object" && (e.exports = e.exports ?? {}, Object.assign(e.exports, f));
3379
+ f && typeof f == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, f)) : e.exports = f;
3380
3380
  } else e.exports = a;
3381
3381
  e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3382
3382
  }