@fox-js/fox 3.1.1-30 → 3.1.1-31

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,16 +1,16 @@
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
- var Ee = typeof window < "u", C = function() {
1
+ import { defineComponent as $r, effectScope as as, getCurrentScope as Kr, h as ue, hasInjectionContext as Se, inject as L, onActivated as us, onDeactivated as fs, onScopeDispose as xe, provide as Z, reactive as cs, readonly as hs, ref as ys, shallowReactive as ds, shallowRef as jr, toRaw as It, watch as vs } from "vue";
2
+ var be = typeof window < "u", F = function() {
3
3
  return window;
4
- }, Je = function() {
4
+ }, Be = function() {
5
5
  return window.document;
6
6
  };
7
- function ft(e, t, r, s = !1) {
7
+ function ut(e, t, r, s = !1) {
8
8
  e.addEventListener ? e.addEventListener(t, r, s) : e.attachEvent ? e.attachEvent(`on${t}`, r) : e[`on${t}`] = r;
9
9
  }
10
- function Qt(e, t, r) {
10
+ function Gt(e, t, r) {
11
11
  e.removeEventListener ? e.removeEventListener(t, r) : e.detachEvent ? e.detachEvent(`on${t}`, r) : e[`on${t}`] = null;
12
12
  }
13
- var ze = (e, t, r) => {
13
+ var Ve = (e, t, r) => {
14
14
  t = t ?? {
15
15
  bubbles: !1,
16
16
  cancelable: !1,
@@ -20,12 +20,12 @@ var ze = (e, t, r) => {
20
20
  let i = !0, n = !0;
21
21
  for (let o in t) o === "bubbles" ? i = !!t[o] : o === "cancelable" ? n = !!t[o] : s[o] = t[o];
22
22
  s.initEvent(e, i, n), (r ?? document).dispatchEvent(s);
23
- }, nr = Array.isArray, Li = (e) => Zt(e) === "[object Map]", Mi = (e) => Zt(e) === "[object Set]", Ti = (e) => e instanceof Date, w = (e) => typeof e == "function", ki = (e) => typeof e == "string", Ii = (e) => typeof e == "symbol", gs = (e) => e !== null && typeof e == "object", Oi = (e) => gs(e) && w(e.then) && w(e.catch), We = (e) => e == null, bs = Object.prototype.toString, Zt = (e) => bs.call(e), ws = (e) => Zt(e) === "[object Object]", Rs = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
24
- function Yt(e) {
25
- return e.__esModule || Rs && e[Symbol.toStringTag] === "Module";
23
+ }, sr = Array.isArray, Ki = (e) => Xt(e) === "[object Map]", ji = (e) => Xt(e) === "[object Set]", ki = (e) => e instanceof Date, b = (e) => typeof e == "function", Ti = (e) => typeof e == "string", Mi = (e) => typeof e == "symbol", ms = (e) => e !== null && typeof e == "object", Li = (e) => ms(e) && b(e.then) && b(e.catch), Ue = (e) => e == null, ps = Object.prototype.toString, Xt = (e) => ps.call(e), gs = (e) => Xt(e) === "[object Object]", ws = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
24
+ function Qt(e) {
25
+ return e.__esModule || ws && e[Symbol.toStringTag] === "Module";
26
26
  }
27
- var xs = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
28
- function j(...e) {
27
+ var bs = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
28
+ function q(...e) {
29
29
  let t = e[0] !== void 0 && e[0] !== null ? e[0] : {}, r = 1, s = e.length, i = !1;
30
30
  for (typeof t == "boolean" && (i = t, t = e[r] ?? {}, r++), typeof t != "object" && (t = {}); r < s; r++) if (e[r] !== null && e[r] !== void 0) {
31
31
  let n = e[r];
@@ -34,21 +34,21 @@ function j(...e) {
34
34
  if (l !== a)
35
35
  if (i === !0 && a && typeof a == "object") {
36
36
  let u;
37
- Array.isArray(a) ? u = l && Array.isArray(l) ? l : [] : u = l && typeof l == "object" ? l : {}, t[o] = j(i, u, a);
37
+ Array.isArray(a) ? u = l && Array.isArray(l) ? l : [] : u = l && typeof l == "object" ? l : {}, t[o] = q(i, u, a);
38
38
  } else a !== void 0 && (t[o] = a);
39
39
  }
40
40
  }
41
41
  return t;
42
42
  }
43
- function Mr(e, t, r = !1) {
43
+ function kr(e, t, r = !1) {
44
44
  if (typeof t != "object") return {};
45
45
  typeof e != "object" && (e = {});
46
46
  for (let s of Reflect.ownKeys(t)) {
47
47
  let i = e[s], n = t[s];
48
48
  if (i !== n)
49
49
  if (typeof n == "object") {
50
- if (!Array.isArray(n) && !ws(n)) continue;
51
- i = Mr(i, n, r), e[s] = i;
50
+ if (!Array.isArray(n) && !gs(n)) continue;
51
+ i = kr(i, n, r), e[s] = i;
52
52
  } else {
53
53
  if (typeof n == "function") continue;
54
54
  e[s] = n;
@@ -56,27 +56,27 @@ function Mr(e, t, r = !1) {
56
56
  }
57
57
  return e;
58
58
  }
59
- var De = class Nt {
59
+ var Ie = class Ot {
60
60
  static seed = (/* @__PURE__ */ new Date()).getTime();
61
61
  static get() {
62
- let t = ++Nt.seed;
63
- return t >= Number.MAX_VALUE && (Nt.seed = 0), t;
62
+ let t = ++Ot.seed;
63
+ return t >= Number.MAX_VALUE && (Ot.seed = 0), t;
64
64
  }
65
- }, gt = xs ? Promise.resolve() : null;
66
- function He(e, ...t) {
67
- gt !== null ? t && t.length > 0 ? gt.then(() => {
65
+ }, mt = bs ? Promise.resolve() : null;
66
+ function Oe(e, ...t) {
67
+ mt !== null ? t && t.length > 0 ? mt.then(() => {
68
68
  e(t);
69
- }) : gt.then(e) : t && t.length > 0 ? setTimeout(() => {
69
+ }) : mt.then(e) : t && t.length > 0 ? setTimeout(() => {
70
70
  e(t);
71
71
  }) : setTimeout(e);
72
72
  }
73
73
  function Tr(e) {
74
74
  return e == null ? !1 : typeof e == "boolean" ? e : typeof e == "string" ? e.toLocaleLowerCase() === "true" : !!e;
75
75
  }
76
- function Bi(e) {
76
+ function Ii(e) {
77
77
  return typeof e == "number" ? e : Number(e);
78
78
  }
79
- var Ss = {
79
+ var Rs = {
80
80
  "[object Boolean]": "boolean",
81
81
  "[object Number]": "number",
82
82
  "[object String]": "string",
@@ -86,46 +86,46 @@ var Ss = {
86
86
  "[object RegExp]": "regExp",
87
87
  "[object Object]": "object"
88
88
  };
89
- function or(e) {
89
+ function ir(e) {
90
90
  let t = Object.prototype.toString.call(e);
91
- return e == null ? String(e) : Ss[t] || "object";
91
+ return e == null ? String(e) : Rs[t] || "object";
92
92
  }
93
- function lr(e, t) {
93
+ function nr(e, t) {
94
94
  if (e == t) return !0;
95
95
  if (e === void 0 || t === void 0) return !1;
96
- let r = or(e);
97
- if (r !== or(t)) return !1;
96
+ let r = ir(e);
97
+ if (r !== ir(t)) return !1;
98
98
  if (r === "object") {
99
99
  let s = Object.keys(e), i = Object.keys(t);
100
100
  if (s.length !== i.length) return !1;
101
101
  for (let n = 0; n < s.length; n++) {
102
102
  let o = s[n], l = e[o], a = t[o];
103
- if (!lr(l, a)) return !1;
103
+ if (!nr(l, a)) return !1;
104
104
  }
105
105
  return !0;
106
106
  } else if (r === "array") {
107
107
  if (e.length !== t.length) return !1;
108
108
  for (let s = 0; s < e.length; s++) {
109
109
  let i = e[s], n = t[s];
110
- if (!lr(i, n)) return !1;
110
+ if (!nr(i, n)) return !1;
111
111
  }
112
112
  return !0;
113
113
  }
114
114
  return !1;
115
115
  }
116
- var kr = (e) => {
116
+ var Mr = (e) => {
117
117
  const t = {};
118
118
  for (let r of Reflect.ownKeys(e)) {
119
119
  let s = e[r];
120
- s && !Array.isArray(s) && typeof s == "object" && (s = kr(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
120
+ s && !Array.isArray(s) && typeof s == "object" && (s = Mr(s)), typeof r == "symbol" ? t[String(r)] = s : t[r] = s;
121
121
  }
122
122
  return t;
123
- }, Es = /^Symbol\((.*)\)$/, Ir = (e) => {
123
+ }, Ss = /^Symbol\((.*)\)$/, Lr = (e) => {
124
124
  const t = {};
125
125
  for (let r of Reflect.ownKeys(e)) {
126
126
  let s = e[r];
127
- s && !Array.isArray(s) && typeof s == "object" && (s = Ir(s));
128
- const i = Es.exec(r);
127
+ s && !Array.isArray(s) && typeof s == "object" && (s = Lr(s));
128
+ const i = Ss.exec(r);
129
129
  if (i && i[1]) {
130
130
  const n = Symbol.for(i[1]);
131
131
  t[n] = s;
@@ -133,7 +133,7 @@ var kr = (e) => {
133
133
  }
134
134
  return t;
135
135
  };
136
- function Or(e, t) {
136
+ function Ir(e, t) {
137
137
  let r = null;
138
138
  return function(...s) {
139
139
  r && clearTimeout(r), r = setTimeout(() => {
@@ -141,45 +141,45 @@ function Or(e, t) {
141
141
  }, t);
142
142
  };
143
143
  }
144
- var ar = /* @__PURE__ */ Symbol("idKey"), me = /* @__PURE__ */ Symbol("valueKey"), R = /* @__PURE__ */ Symbol("childrenKey"), X = /* @__PURE__ */ Symbol("growKey"), Br = class {
145
- [X] = !0;
146
- [ar];
147
- [me] = ms();
148
- [R] = /* @__PURE__ */ new Map();
144
+ var or = /* @__PURE__ */ Symbol("idKey"), ce = /* @__PURE__ */ Symbol("valueKey"), S = /* @__PURE__ */ Symbol("childrenKey"), W = /* @__PURE__ */ Symbol("growKey"), Or = class {
145
+ [W] = !0;
146
+ [or];
147
+ [ce] = ys();
148
+ [S] = /* @__PURE__ */ new Map();
149
149
  constructor(e) {
150
- this[ar] = e;
150
+ this[or] = e;
151
151
  }
152
- }, Ps = class {
152
+ }, xs = class {
153
153
  get(e, t) {
154
- if (t == "value") return e[me].value;
155
- if (t === "grow") return e[X];
156
- let r = e[R].get(t);
157
- if (r) return Ue(r);
158
- if (e[X])
159
- return r = tr(t), r[X] = e[X], e[R].set(t, r), Ue(r);
154
+ if (t == "value") return e[ce].value;
155
+ if (t === "grow") return e[W];
156
+ let r = e[S].get(t);
157
+ if (r) return De(r);
158
+ if (e[W])
159
+ return r = Yt(t), r[W] = e[W], e[S].set(t, r), De(r);
160
160
  }
161
161
  set(e, t, r) {
162
- return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = Tr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
162
+ return t == "value" ? (e[ce].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : r == null ? (e[S].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
163
163
  }
164
164
  deleteProperty(e, t) {
165
- return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
165
+ return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[S].delete(t), !0);
166
166
  }
167
- }, er = "__proxy__";
168
- function tr(e) {
169
- const t = new Br(e);
170
- return Reflect.set(t, er, new Proxy(t, new Ps())), t;
167
+ }, Zt = "__proxy__";
168
+ function Yt(e) {
169
+ const t = new Or(e);
170
+ return Reflect.set(t, Zt, new Proxy(t, new xs())), t;
171
171
  }
172
- function Ue(e) {
173
- return Reflect.get(e, er);
172
+ function De(e) {
173
+ return Reflect.get(e, Zt);
174
174
  }
175
- var _s = class {
175
+ var Ps = class {
176
176
  name = "";
177
177
  persistPolicy = "memory";
178
178
  storage;
179
179
  initFlag = !1;
180
180
  state = {};
181
181
  constructor(e = {}, t) {
182
- if (e.persistPolicy && e.persistPolicy !== "memory" && We(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
182
+ if (e.persistPolicy && e.persistPolicy !== "memory" && Ue(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
183
183
  this.name = e.name ?? "", this.persistPolicy = e.persistPolicy ?? "memory", this.storage = e.storage, t && typeof t == "object" && Object.assign(this.state, t);
184
184
  }
185
185
  init(e) {
@@ -189,8 +189,8 @@ var _s = class {
189
189
  if (!this.persistPolicy || this.persistPolicy === "memory") return null;
190
190
  let e = null;
191
191
  if (this.persistPolicy === "custom") e = this.storage;
192
- else if (Ee) {
193
- const t = C();
192
+ else if (be) {
193
+ const t = F();
194
194
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
195
195
  }
196
196
  return e;
@@ -251,10 +251,10 @@ var _s = class {
251
251
  console.error(e);
252
252
  }
253
253
  }
254
- }, Dr = class extends Br {
254
+ }, Hr = class extends Or {
255
255
  _persistHandler;
256
256
  constructor(e = {}, t) {
257
- super("__root__"), this._persistHandler = new _s(e, t), this._persistHandler.init(this);
257
+ super("__root__"), this._persistHandler = new Ps(e, t), this._persistHandler.init(this);
258
258
  }
259
259
  put(...e) {
260
260
  let t = e.length;
@@ -263,9 +263,9 @@ var _s = class {
263
263
  let r = this;
264
264
  for (let s = 0; s < t - 1; s++) {
265
265
  let i = e[s], n;
266
- r[R].has(i) ? n = r[R].get(i) : (n = tr(i), r[R].set(i, n)), r = n;
266
+ r[S].has(i) ? n = r[S].get(i) : (n = Yt(i), r[S].set(i, n)), r = n;
267
267
  }
268
- return r[me].value = e[t - 1], this._persistHandler.put(e), !0;
268
+ return r[ce].value = e[t - 1], this._persistHandler.put(e), !0;
269
269
  }
270
270
  get(...e) {
271
271
  let t = e.length;
@@ -273,10 +273,10 @@ var _s = class {
273
273
  let r = this;
274
274
  for (let s = 0; s < t; s++) {
275
275
  let i = e[s];
276
- if (r[R].has(i)) r = r[R].get(i);
276
+ if (r[S].has(i)) r = r[S].get(i);
277
277
  else return;
278
278
  }
279
- return r[me].value;
279
+ return r[ce].value;
280
280
  }
281
281
  remove(...e) {
282
282
  let t = e.length;
@@ -284,11 +284,11 @@ var _s = class {
284
284
  let r = this;
285
285
  for (let i = 0; i < t - 1; i++) {
286
286
  const n = e[i];
287
- if (r[R].has(n)) r = r[R].get(n);
287
+ if (r[S].has(n)) r = r[S].get(n);
288
288
  else return !1;
289
289
  }
290
290
  const s = e[t - 1];
291
- return r[R].has(s) ? (r[R].delete(s), this._persistHandler.remove(e), !0) : !1;
291
+ return r[S].has(s) ? (r[S].delete(s), this._persistHandler.remove(e), !0) : !1;
292
292
  }
293
293
  contains(...e) {
294
294
  const t = e.length;
@@ -296,16 +296,16 @@ var _s = class {
296
296
  let r = this;
297
297
  for (let i = 0; i < t - 1; i++) {
298
298
  let n = e[i];
299
- if (r[R].has(n)) r = r[R].get(n);
299
+ if (r[S].has(n)) r = r[S].get(n);
300
300
  else return !1;
301
301
  }
302
302
  const s = e[t - 1];
303
- return r[R].has(s);
303
+ return r[S].has(s);
304
304
  }
305
305
  clear() {
306
- this[R].clear(), this._persistHandler.clear();
306
+ this[S].clear(), this._persistHandler.clear();
307
307
  }
308
- }, Fs = [
308
+ }, _s = [
309
309
  "put",
310
310
  "get",
311
311
  "contains",
@@ -313,49 +313,49 @@ var _s = class {
313
313
  "clear",
314
314
  "_persistHandler"
315
315
  ];
316
- function ur(e) {
317
- return Fs.includes(e);
316
+ function lr(e) {
317
+ return _s.includes(e);
318
318
  }
319
- var Cs = class {
319
+ var Fs = class {
320
320
  get(e, t) {
321
- if (t == "value") return e[me].value;
322
- if (t === "grow") return e[X];
323
- if (t === R) return e[R];
324
- if (typeof t == "string" && ur(t)) return e[t];
321
+ if (t == "value") return e[ce].value;
322
+ if (t === "grow") return e[W];
323
+ if (t === S) return e[S];
324
+ if (typeof t == "string" && lr(t)) return e[t];
325
325
  const r = String(t);
326
- let s = e[R].get(r);
327
- if (s) return Ue(s);
328
- if (e[X])
329
- return s = tr(r), s[X] = e[X], e[R].set(r, s), Ue(s);
326
+ let s = e[S].get(r);
327
+ if (s) return De(s);
328
+ if (e[W])
329
+ return s = Yt(r), s[W] = e[W], e[S].set(r, s), De(s);
330
330
  }
331
331
  set(e, t, r) {
332
- return t == "value" ? (e[me].value = r, !0) : t === "grow" ? (e[X] = Tr(r), !0) : ur(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
332
+ return t == "value" ? (e[ce].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : lr(t) ? !1 : r == null ? (e[S].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
333
333
  }
334
334
  deleteProperty(e, t) {
335
- return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
335
+ return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[S].delete(t), !0);
336
336
  }
337
337
  };
338
- function As(e, t) {
339
- const r = new Dr(e, t), s = new Cs(), i = new Proxy(r, s);
340
- return Reflect.set(r, er, i), r;
338
+ function Cs(e, t) {
339
+ const r = new Hr(e, t), s = new Fs(), i = new Proxy(r, s);
340
+ return Reflect.set(r, Zt, i), r;
341
341
  }
342
- var fr = new Proxy(Dr, { construct(e, t) {
342
+ var ar = new Proxy(Hr, { construct(e, t) {
343
343
  const r = t[0] ?? {}, s = t[1];
344
- return Ue(As(r, s));
345
- } }), rr = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, Hr = class {
344
+ return De(Cs(r, s));
345
+ } }), Ht = /* @__PURE__ */ new WeakMap(), er = (e) => !e || typeof e != "object" ? !0 : Reflect.ownKeys(e).length === 0, Dr = class {
346
346
  name = "";
347
347
  persistPolicy = "memory";
348
348
  storage;
349
349
  constructor(e = {}) {
350
- if (e.persistPolicy && e.persistPolicy !== "memory" && We(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
350
+ if (e.persistPolicy && e.persistPolicy !== "memory" && Ue(e.name)) throw new Error("name can not be empty, where persistPolicy is not memory.");
351
351
  this.name = e.name ?? "", this.persistPolicy = e.persistPolicy ?? "memory", this.storage = e.storage;
352
352
  }
353
353
  getStorage() {
354
354
  if (!this.persistPolicy || this.persistPolicy === "memory") return null;
355
355
  let e = null;
356
356
  if (this.persistPolicy === "custom") e = this.storage;
357
- else if (Ee) {
358
- const t = C();
357
+ else if (be) {
358
+ const t = F();
359
359
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
360
360
  }
361
361
  return e;
@@ -363,7 +363,7 @@ var fr = new Proxy(Dr, { construct(e, t) {
363
363
  saveState(e) {
364
364
  if (!this.persistPolicy || this.persistPolicy === "memory") return;
365
365
  let t = this.getStorage();
366
- if (t === null || rr(e)) return;
366
+ if (t === null || er(e)) return;
367
367
  const r = `_state_${this.name}`, s = JSON.stringify(e ?? {});
368
368
  t.setItem(r, s);
369
369
  }
@@ -386,45 +386,45 @@ var fr = new Proxy(Dr, { construct(e, t) {
386
386
  }
387
387
  };
388
388
  function Nr(e, t, r) {
389
- const s = new Hr(r);
389
+ const s = new Dr(r);
390
390
  s.restore(t);
391
- const i = (l) => {
392
- const a = Ht(l), u = {};
393
- for (let f in a) {
394
- const c = a[f];
395
- We(c) || (u[f] = c);
391
+ const i = (a) => {
392
+ const u = It(a), f = {};
393
+ for (let c in u) {
394
+ const h = u[c];
395
+ Ue(h) || (f[c] = h);
396
396
  }
397
- rr(u) ? s.removeState() : s.saveState(u);
397
+ er(f) ? s.removeState() : s.saveState(f);
398
398
  };
399
399
  let n = null;
400
- r && r.debounce === !1 ? n = i : n = Or(i, r && r.debounceDelay ? r.debounceDelay : 250);
401
- const o = e ? ps(t) : ys(t);
402
- return fs(!0).run(() => {
403
- vs(o, (l) => {
404
- const a = Ht(l);
405
- n(a);
400
+ r && r.debounce === !1 ? n = i : n = Ir(i, r && r.debounceDelay ? r.debounceDelay : 250);
401
+ const o = e ? ds(t) : cs(t), l = as(!0);
402
+ return l.run(() => {
403
+ vs(o, (a) => {
404
+ const u = It(a);
405
+ n(u);
406
406
  });
407
- }), o;
407
+ }), Ht.set(o, l), o;
408
408
  }
409
- function Di(e, t) {
409
+ function Oi(e, t) {
410
410
  return Nr(!1, e, t);
411
411
  }
412
412
  function Hi(e, t) {
413
413
  return Nr(!0, e, t);
414
414
  }
415
- function qs(e, t) {
416
- const r = new Hr(t);
415
+ function Es(e, t) {
416
+ const r = new Dr(t);
417
417
  r.restore(e);
418
418
  const s = (n) => {
419
- const o = Ht(n), l = {};
419
+ const o = It(n), l = {};
420
420
  for (let a in o) {
421
421
  const u = o[a];
422
- We(u) || (l[a] = u);
422
+ Ue(u) || (l[a] = u);
423
423
  }
424
- rr(l) ? r.removeState() : r.saveState(l);
424
+ er(l) ? r.removeState() : r.saveState(l);
425
425
  };
426
426
  let i = null;
427
- return t && t.debounce === !1 ? i = s : i = Or(s, t && t.debounceDelay ? t.debounceDelay : 250), new Proxy(e, {
427
+ return t && t.debounce === !1 ? i = s : i = Ir(s, t && t.debounceDelay ? t.debounceDelay : 250), new Proxy(e, {
428
428
  get(n, o) {
429
429
  return n[o];
430
430
  },
@@ -433,25 +433,27 @@ function qs(e, t) {
433
433
  }
434
434
  });
435
435
  }
436
- function Ni(e, t) {
437
- return qs(e, t);
436
+ function Di(e, t) {
437
+ return Es(e, t);
438
+ }
439
+ function Ni(e) {
440
+ const t = Ht.get(e);
441
+ t && (Ht.delete(e), t.stop());
438
442
  }
439
- var de = /* @__PURE__ */ (function(e) {
443
+ var We = /* @__PURE__ */ (function(e) {
440
444
  return e[e.Static = 0] = "Static", e[e.Param = 1] = "Param", e[e.Group = 2] = "Group", e;
441
- })({}), P = /* @__PURE__ */ (function(e) {
442
- return e[e.Static = 0] = "Static", e[e.Param = 1] = "Param", e[e.ParamRegExp = 2] = "ParamRegExp", e[e.ParamRegExpEnd = 3] = "ParamRegExpEnd", e[e.EscapeNext = 4] = "EscapeNext", e;
443
- })(P || {}), $s = {
444
- type: de.Static,
445
+ })({}), As = {
446
+ type: 0,
445
447
  value: ""
446
- }, js = /[a-zA-Z0-9_]/;
447
- function Ks(e) {
448
+ }, qs = /[a-zA-Z0-9_]/;
449
+ function $s(e) {
448
450
  if (!e) return [[]];
449
- if (e === "/") return [[$s]];
451
+ if (e === "/") return [[As]];
450
452
  if (!e.startsWith("/")) throw new Error(`Invalid path "${e}"`);
451
453
  function t(y) {
452
454
  throw new Error(`ERR (${r})/"${u}": ${y}`);
453
455
  }
454
- let r = P.Static, s = r;
456
+ let r = 0, s = r;
455
457
  const i = [];
456
458
  let n;
457
459
  function o() {
@@ -459,11 +461,11 @@ function Ks(e) {
459
461
  }
460
462
  let l = 0, a, u = "", f = "";
461
463
  function c() {
462
- u && (r === P.Static ? n.push({
463
- type: de.Static,
464
+ u && (r === 0 ? n.push({
465
+ type: 0,
464
466
  value: u
465
- }) : r === P.Param || r === P.ParamRegExp || r === P.ParamRegExpEnd ? (n.length > 1 && (a === "*" || a === "+") && t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`), n.push({
466
- type: de.Param,
467
+ }) : r === 1 || r === 2 || r === 3 ? (n.length > 1 && (a === "*" || a === "+") && t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`), n.push({
468
+ type: 1,
467
469
  value: u,
468
470
  regexp: f,
469
471
  repeatable: a === "*" || a === "+",
@@ -474,71 +476,69 @@ function Ks(e) {
474
476
  u += a;
475
477
  }
476
478
  for (; l < e.length; ) {
477
- if (a = e[l++], a === "\\" && r !== P.ParamRegExp) {
478
- s = r, r = P.EscapeNext;
479
+ if (a = e[l++], a === "\\" && r !== 2) {
480
+ s = r, r = 4;
479
481
  continue;
480
482
  }
481
483
  switch (r) {
482
- case P.Static:
483
- a === "/" ? (u && c(), o()) : a === ":" ? (c(), r = P.Param) : h();
484
+ case 0:
485
+ a === "/" ? (u && c(), o()) : a === ":" ? (c(), r = 1) : h();
484
486
  break;
485
- case P.EscapeNext:
487
+ case 4:
486
488
  h(), r = s;
487
489
  break;
488
- case P.Param:
489
- a === "(" ? r = P.ParamRegExp : js.test(a) ? h() : (c(), r = P.Static, a !== "*" && a !== "?" && a !== "+" && l--);
490
+ case 1:
491
+ a === "(" ? r = 2 : qs.test(a) ? h() : (c(), r = 0, a !== "*" && a !== "?" && a !== "+" && l--);
490
492
  break;
491
- case P.ParamRegExp:
492
- a === ")" ? f[f.length - 1] == "\\" ? f = f.slice(0, -1) + a : r = P.ParamRegExpEnd : f += a;
493
+ case 2:
494
+ a === ")" ? f[f.length - 1] == "\\" ? f = f.slice(0, -1) + a : r = 3 : f += a;
493
495
  break;
494
- case P.ParamRegExpEnd:
495
- c(), r = P.Static, a !== "*" && a !== "?" && a !== "+" && l--, f = "";
496
+ case 3:
497
+ c(), r = 0, a !== "*" && a !== "?" && a !== "+" && l--, f = "";
496
498
  break;
497
499
  default:
498
500
  t("Unknown state");
499
501
  break;
500
502
  }
501
503
  }
502
- return r === P.ParamRegExp && t(`Unfinished custom RegExp for param "${u}"`), c(), o(), i;
504
+ return r === 2 && t(`Unfinished custom RegExp for param "${u}"`), c(), o(), i;
503
505
  }
504
- var cr = "[^/]+?", Ls = {
506
+ var ur = "[^/]+?", Ks = {
505
507
  sensitive: !1,
506
508
  strict: !1,
507
509
  start: !0,
508
510
  end: !0
509
- }, J = /* @__PURE__ */ (function(e) {
510
- return e[e._multiplier = 10] = "_multiplier", e[e.Root = 9 * e._multiplier] = "Root", e[e.Segment = 4 * e._multiplier] = "Segment", e[e.SubSegment = 3 * e._multiplier] = "SubSegment", e[e.Static = 4 * e._multiplier] = "Static", e[e.Dynamic = 2 * e._multiplier] = "Dynamic", e[e.BonusCustomRegExp = 1 * e._multiplier] = "BonusCustomRegExp", e[e.BonusWildcard = -4 * e._multiplier - e.BonusCustomRegExp] = "BonusWildcard", e[e.BonusRepeatable = -2 * e._multiplier] = "BonusRepeatable", e[e.BonusOptional = -0.8 * e._multiplier] = "BonusOptional", e[e.BonusStrict = 0.07 * e._multiplier] = "BonusStrict", e[e.BonusCaseSensitive = 0.025 * e._multiplier] = "BonusCaseSensitive", e;
511
- })(J || {}), Ms = /[.+*?^${}()[\]/\\]/g;
512
- function Ts(e, t) {
513
- const r = j(!0, {}, Ls, t), s = [];
511
+ }, js = /[.+*?^${}()[\]/\\]/g;
512
+ function ks(e, t) {
513
+ const r = q(!0, {}, Ks, t), s = [];
514
514
  let i = r.start ? "^" : "";
515
515
  const n = [];
516
516
  for (const u of e) {
517
- const f = u.length ? [] : [J.Root];
517
+ const f = u.length ? [] : [90];
518
518
  r.strict && !u.length && (i += "/");
519
519
  for (let c = 0; c < u.length; c++) {
520
520
  const h = u[c];
521
- let y = J.Segment + (r.sensitive ? J.BonusCaseSensitive : 0);
522
- if (h.type === de.Static)
523
- c || (i += "/"), i += h.value.replace(Ms, "\\$&"), y += J.Static;
524
- else if (h.type === de.Param) {
525
- const { value: d, repeatable: m, optional: b, regexp: g } = h;
521
+ let y = 40 + (r.sensitive ? 0.25 : 0);
522
+ if (h.type === We.Static)
523
+ c || (i += "/"), i += h.value.replace(js, "\\$&"), y += 40;
524
+ else if (h.type === We.Param) {
525
+ const { value: d, repeatable: v, optional: w, regexp: g } = h;
526
526
  n.push({
527
527
  name: d,
528
- repeatable: m,
529
- optional: b
528
+ repeatable: v,
529
+ optional: w
530
530
  });
531
- const p = g || cr;
532
- if (p !== cr) {
533
- y += J.BonusCustomRegExp;
531
+ const m = g || ur;
532
+ if (m !== ur) {
533
+ y += 10;
534
534
  try {
535
- new RegExp(`(${p})`);
536
- } catch (L) {
537
- throw new Error(`Invalid custom RegExp for param "${d}" (${p}): ` + L.message);
535
+ new RegExp(`(${m})`);
536
+ } catch (K) {
537
+ throw new Error(`Invalid custom RegExp for param "${d}" (${m}): ` + K.message);
538
538
  }
539
539
  }
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);
540
+ let $ = v ? `((?:${m})(?:/(?:${m}))*)` : `(${m})`;
541
+ c || ($ = w && u.length < 2 ? `(?:/${$})` : "/" + $), w && ($ += "?"), i += $, y += 20, w && (y += -8), v && (y += -20), m === ".*" && (y += -50);
542
542
  }
543
543
  f.push(y);
544
544
  }
@@ -546,7 +546,7 @@ function Ts(e, t) {
546
546
  }
547
547
  if (r.strict && r.end) {
548
548
  const u = s.length - 1;
549
- s[u][s[u].length - 1] += J.BonusStrict;
549
+ s[u][s[u].length - 1] += 0.7000000000000001;
550
550
  }
551
551
  r.strict || (i += "/?"), r.end ? i += "$" : r.strict && !i.endsWith("/") && (i += "(?:/|$)");
552
552
  const o = new RegExp(i, r.sensitive ? "" : "i");
@@ -563,15 +563,15 @@ function Ts(e, t) {
563
563
  let f = "", c = !1;
564
564
  for (const h of e) {
565
565
  (!c || !f.endsWith("/")) && (f += "/"), c = !1;
566
- for (const y of h) if (y.type === de.Static) f += y.value;
567
- else if (y.type === de.Param) {
568
- const { value: d, repeatable: m, optional: b } = y, g = d in u ? u[d] : "";
569
- if (nr(g) && !m) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
570
- const p = nr(g) ? g.join("/") : g;
571
- if (!p) if (b)
566
+ for (const y of h) if (y.type === We.Static) f += y.value;
567
+ else if (y.type === We.Param) {
568
+ const { value: d, repeatable: v, optional: w } = y, g = d in u ? u[d] : "";
569
+ if (sr(g) && !v) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
570
+ const m = sr(g) ? g.join("/") : g;
571
+ if (!m) if (w)
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 += p;
574
+ f += m;
575
575
  }
576
576
  }
577
577
  return f || "/";
@@ -584,8 +584,8 @@ function Ts(e, t) {
584
584
  stringify: a
585
585
  };
586
586
  }
587
- function ks(e, t) {
588
- const r = Ts(Ks(e), t);
587
+ function Ts(e, t) {
588
+ const r = ks($s(e), t);
589
589
  return function(s) {
590
590
  const i = r.parse(s);
591
591
  return i ? {
@@ -594,20 +594,20 @@ function ks(e, t) {
594
594
  } : null;
595
595
  };
596
596
  }
597
- var Ur = "default", Vr = /* @__PURE__ */ Symbol("sync"), I = /* @__PURE__ */ Symbol("normalizeRoute");
598
- function hr(e) {
597
+ var Ur = "default", Br = /* @__PURE__ */ Symbol("sync"), M = /* @__PURE__ */ Symbol("normalizeRoute");
598
+ function fr(e) {
599
599
  let t = !1;
600
600
  return function(...r) {
601
601
  if (!t)
602
602
  return t = !0, Reflect.apply(e, {}, r);
603
603
  };
604
604
  }
605
- function Is(e) {
605
+ function Ms(e) {
606
606
  let t = e.src;
607
607
  return new Promise((r, s) => {
608
- const i = hr((l) => {
609
- Yt(l) && (l = l.default), e.component = l, console.debug("success load async module"), r();
610
- }), n = hr((l) => {
608
+ const i = fr((l) => {
609
+ Qt(l) && (l = l.default), e.component = l, console.debug("success load async module"), r();
610
+ }), n = fr((l) => {
611
611
  `${l}`, console.debug("reject load async module"), s(l);
612
612
  });
613
613
  let o;
@@ -623,7 +623,7 @@ function Is(e) {
623
623
  }
624
624
  });
625
625
  }
626
- var Os = class {
626
+ var Ls = class {
627
627
  name;
628
628
  level;
629
629
  rootName;
@@ -631,7 +631,7 @@ var Os = class {
631
631
  constructor(e, t, r, s) {
632
632
  this.name = e, this.level = t, this.rootName = r, this.rootIndex = s;
633
633
  }
634
- }, Ge = class Wr {
634
+ }, ze = class Vr {
635
635
  to;
636
636
  routeModel;
637
637
  from;
@@ -640,13 +640,13 @@ var Os = class {
640
640
  this.to = t, this.from = r;
641
641
  }
642
642
  static from(t) {
643
- const r = new Wr(t.to, t.from), s = t.data ?? {};
644
- return j(!0, r.data, s), r;
643
+ const r = new Vr(t.to, t.from), s = t.data ?? {};
644
+ return q(!0, r.data, s), r;
645
645
  }
646
646
  static clear(t) {
647
647
  for (let r in t) t[r] = void 0;
648
648
  }
649
- }, x = class Ut {
649
+ }, R = class Dt {
650
650
  path;
651
651
  get fullPath() {
652
652
  const t = this.path ?? `${this.name}`;
@@ -672,8 +672,8 @@ var Os = class {
672
672
  active;
673
673
  slot;
674
674
  static clone(t, r) {
675
- let s = new Ut();
676
- return Mr(s, t, r), s;
675
+ let s = new Dt();
676
+ return kr(s, t, r), s;
677
677
  }
678
678
  static isSame(t, r) {
679
679
  return !t || !r ? !1 : t === r ? !0 : t.root !== r.root || t.index !== r.index ? !1 : t.path && r.path && t.path === r.path ? !0 : !!(t.name && r.name && t.name === r.name);
@@ -682,7 +682,7 @@ var Os = class {
682
682
  return !t || !r ? !1 : t === r || t.path && r.path && t.path === r.path ? !0 : !!(t.name && r.name && t.name === r.name);
683
683
  }
684
684
  static from(t) {
685
- let r = new Ut();
685
+ let r = new Dt();
686
686
  if (t == null) return r;
687
687
  let s = r;
688
688
  for (let n in t) s[n] = t[n];
@@ -690,24 +690,24 @@ var Os = class {
690
690
  if (Array.isArray(i) && i.length > 0) for (let n of i) s[n] = t[n];
691
691
  return r;
692
692
  }
693
- }, Bs = class {
693
+ }, Is = class {
694
694
  id;
695
695
  name;
696
696
  props;
697
697
  src;
698
698
  component;
699
699
  constructor(e, t, r) {
700
- this.id = De.get(), this.name = e, this.src = t, typeof t != "function" && (this.component = t), this.props = r;
700
+ this.id = Ie.get(), this.name = e, this.src = t, typeof t != "function" && (this.component = t), this.props = r;
701
701
  }
702
702
  get isResolved() {
703
703
  return this.component !== void 0;
704
704
  }
705
705
  resolve() {
706
- return Is(this);
706
+ return Ms(this);
707
707
  }
708
- }, yr = class {
708
+ }, cr = class {
709
709
  models = [];
710
- }, bt = class {
710
+ }, pt = class {
711
711
  path;
712
712
  match;
713
713
  redirect;
@@ -715,11 +715,11 @@ var Os = class {
715
715
  meta;
716
716
  matchedRoutes;
717
717
  layers = [];
718
- }, F = /* @__PURE__ */ (function(e) {
718
+ }, _ = /* @__PURE__ */ (function(e) {
719
719
  return e[e.Push = 0] = "Push", e[e.Replace = 1] = "Replace", e[e.Put = 2] = "Put", e[e.Append = 3] = "Append", e[e.Open = 4] = "Open", e;
720
- })({}), wt = /* @__PURE__ */ (function(e) {
720
+ })({}), gt = /* @__PURE__ */ (function(e) {
721
721
  return e[e.Part = 0] = "Part", e[e.All = 1] = "All", e;
722
- })({}), G = /* @__PURE__ */ Symbol("rootKey"), z = /* @__PURE__ */ Symbol("rootNodeKey"), ye = /* @__PURE__ */ Symbol("parentNodeKey"), at = /* @__PURE__ */ Symbol("nameKey"), re = class {
722
+ })({}), V = /* @__PURE__ */ Symbol("rootKey"), B = /* @__PURE__ */ Symbol("rootNodeKey"), fe = /* @__PURE__ */ Symbol("parentNodeKey"), at = /* @__PURE__ */ Symbol("nameKey"), Y = class {
723
723
  model;
724
724
  route;
725
725
  active = !0;
@@ -727,25 +727,25 @@ var Os = class {
727
727
  constructor(e, t, r = 0, s = !0) {
728
728
  this.route = e, this.model = t, this.index = r, this.active = s;
729
729
  }
730
- }, qe = class {
730
+ }, Fe = class {
731
731
  _slots;
732
732
  get slots() {
733
- return this._slots == null && (this._slots = Lr([])), this._slots;
733
+ return this._slots == null && (this._slots = jr([])), this._slots;
734
734
  }
735
735
  get empty() {
736
736
  return this._slots == null || this._slots.value.length == 0;
737
737
  }
738
738
  [at];
739
- [G];
740
- [z] = null;
741
- [ye] = null;
739
+ [V];
740
+ [B] = null;
741
+ [fe] = null;
742
742
  get name() {
743
743
  return this[at];
744
744
  }
745
745
  constructor(e, t, r) {
746
- this[at] = e, this[G] = t, r && (this[z] = r);
746
+ this[at] = e, this[V] = t, r && (this[B] = r);
747
747
  }
748
- }, O = class {
748
+ }, I = class {
749
749
  view;
750
750
  index;
751
751
  level;
@@ -759,14 +759,14 @@ var Os = class {
759
759
  }
760
760
  return !1;
761
761
  }
762
- }, Rt = class {
762
+ }, wt = class {
763
763
  views = [];
764
- }, Ds = class {
764
+ }, Os = class {
765
765
  layers = [];
766
766
  }, Hs = class {
767
767
  time;
768
768
  route;
769
- }, Ns = class {
769
+ }, Ds = class {
770
770
  forbidTime = 300;
771
771
  submitRecorder = new Hs();
772
772
  isSameRoute(e, t) {
@@ -783,70 +783,68 @@ var Os = class {
783
783
  release(e) {
784
784
  this.submitRecorder.time === e && (this.submitRecorder.route = void 0);
785
785
  }
786
- }, E = /* @__PURE__ */ (function(e) {
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"), ve = /* @__PURE__ */ Symbol("successFnsKey"), $e = /* @__PURE__ */ Symbol("errorFnsKey"), le = /* @__PURE__ */ Symbol("sessionKey"), Y = /* @__PURE__ */ Symbol("_go"), ct = class {
789
- [B] = [];
790
- [k] = 0;
791
- [xt] = !1;
792
- [_] = E.Free;
793
- [Z] = [];
794
- [Xe] = [];
795
- [ve] = [];
796
- [$e] = [];
797
- [le];
786
+ }, O = /* @__PURE__ */ Symbol("chainKey"), T = /* @__PURE__ */ Symbol("cursorKey"), bt = /* @__PURE__ */ Symbol("$persistentModeKey"), P = /* @__PURE__ */ Symbol("statusKey"), J = /* @__PURE__ */ Symbol("argsKey"), Je = /* @__PURE__ */ Symbol("exArgsKey"), ye = /* @__PURE__ */ Symbol("successFnsKey"), Ce = /* @__PURE__ */ Symbol("errorFnsKey"), ie = /* @__PURE__ */ Symbol("sessionKey"), G = /* @__PURE__ */ Symbol("_go"), ft = class {
787
+ [O] = [];
788
+ [T] = 0;
789
+ [bt] = !1;
790
+ [P] = "Free";
791
+ [J] = [];
792
+ [Je] = [];
793
+ [ye] = [];
794
+ [Ce] = [];
795
+ [ie];
798
796
  get session() {
799
- return this[le];
797
+ return this[ie];
800
798
  }
801
799
  constructor(e, t = !1) {
802
- this[le] = e, this[xt] = t;
803
- }
804
- [Y](e, ...t) {
805
- let r = this[_];
806
- if (this[_] = E.Busy, this[k] += e, this[k] < 0 && (this[k] = 0), this[Z] = t, r === E.Exception || r === E.Reject) {
807
- let n = [{ session: this[le] }, ...this[Xe]];
808
- for (; this[$e].length > 0; ) try {
809
- let o = this[$e].shift();
810
- typeof o == "function" && He(() => {
800
+ this[ie] = e, this[bt] = t;
801
+ }
802
+ [G](e, ...t) {
803
+ let r = this[P];
804
+ if (this[P] = "Busy", this[T] += e, this[T] < 0 && (this[T] = 0), this[J] = t, r === "Exception" || r === "Reject") {
805
+ let n = [{ session: this[ie] }, ...this[Je]];
806
+ for (; this[Ce].length > 0; ) try {
807
+ let o = this[Ce].shift();
808
+ typeof o == "function" && Oe(() => {
811
809
  Reflect.apply(o, {}, n);
812
810
  });
813
811
  } catch (o) {
814
812
  console.error(o.message, o);
815
813
  }
816
- return this[_] = r, this[B] = [], this[k] = 0, this;
817
- } else if (r === E.Finished || this[k] >= this[B].length) {
818
- let n = [{ session: this[le] }, ...this[Z]];
819
- for (; this[ve].length > 0; ) {
820
- let o = this[ve].shift();
821
- typeof o == "function" && He(() => {
814
+ return this[P] = r, this[O] = [], this[T] = 0, this;
815
+ } else if (r === "Finished" || this[T] >= this[O].length) {
816
+ let n = [{ session: this[ie] }, ...this[J]];
817
+ for (; this[ye].length > 0; ) {
818
+ let o = this[ye].shift();
819
+ typeof o == "function" && Oe(() => {
822
820
  Reflect.apply(o, {}, n);
823
821
  });
824
822
  }
825
- return this[_] = E.Free, this;
823
+ return this[P] = "Free", this;
826
824
  }
827
- if (this[k] >= this[B].length)
828
- return this[_] = E.Free, this;
829
- let s = this[B][this[k]];
830
- this[xt] || (this[B].splice(0, this[k] + 1), this[k] = -1);
831
- let i = this[k] + 1;
825
+ if (this[T] >= this[O].length)
826
+ return this[P] = "Free", this;
827
+ let s = this[O][this[T]];
828
+ this[bt] || (this[O].splice(0, this[T] + 1), this[T] = -1);
829
+ let i = this[T] + 1;
832
830
  try {
833
831
  let n = !1, o = {
834
832
  go: (l, ...a) => {
835
- n || (n = !0, Reflect.apply(this[Y], this, [l, ...a]));
833
+ n || (n = !0, Reflect.apply(this[G], this, [l, ...a]));
836
834
  },
837
835
  resolve: (...l) => {
838
- n || (n = !0, Reflect.apply(this[Y], this, [1, ...l]));
836
+ n || (n = !0, Reflect.apply(this[G], this, [1, ...l]));
839
837
  },
840
838
  reject: (...l) => {
841
839
  n || (n = !0, Reflect.apply(this.reject, this, [...l]));
842
840
  },
843
841
  insert: (l) => {
844
- n || (this[B].splice(i, 0, l), i++);
842
+ n || (this[O].splice(i, 0, l), i++);
845
843
  },
846
- session: this[le]
844
+ session: this[ie]
847
845
  };
848
- He(() => {
849
- Reflect.apply(s, {}, [o, ...this[Z]]);
846
+ Oe(() => {
847
+ Reflect.apply(s, {}, [o, ...this[J]]);
850
848
  });
851
849
  } catch (n) {
852
850
  this.throw(n);
@@ -854,48 +852,48 @@ var Os = class {
854
852
  return this;
855
853
  }
856
854
  go(e, ...t) {
857
- return Reflect.apply(this[Y], this, [e, ...t]);
855
+ return Reflect.apply(this[G], this, [e, ...t]);
858
856
  }
859
857
  finish(...e) {
860
- return this[_] = E.Finished, this[Z] = e, Reflect.apply(this[Y], this, [0]);
858
+ return this[P] = "Finished", this[J] = e, Reflect.apply(this[G], this, [0]);
861
859
  }
862
860
  reject(...e) {
863
- return this[_] = E.Reject, this[Xe] = e, Reflect.apply(this[Y], this, [0]);
861
+ return this[P] = "Reject", this[Je] = e, Reflect.apply(this[G], this, [0]);
864
862
  }
865
863
  throw(...e) {
866
- return this[_] = E.Exception, this[Xe] = e, Reflect.apply(this[Y], this, [0]);
864
+ return this[P] = "Exception", this[Je] = e, Reflect.apply(this[G], this, [0]);
867
865
  }
868
866
  reset(...e) {
869
- this[_] = E.Busy, this[Z] = e, this[B] = [], this[k] = 0;
870
- let t = [{ session: this[le] }, ...this[Z]];
871
- for (; this[ve].length > 0; ) {
872
- let r = this[ve].shift();
873
- He(() => {
867
+ this[P] = "Busy", this[J] = e, this[O] = [], this[T] = 0;
868
+ let t = [{ session: this[ie] }, ...this[J]];
869
+ for (; this[ye].length > 0; ) {
870
+ let r = this[ye].shift();
871
+ Oe(() => {
874
872
  Reflect.apply(r, this, t);
875
873
  });
876
874
  }
877
- return this[_] = E.Free, this;
875
+ return this[P] = "Free", this;
878
876
  }
879
877
  post(e) {
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));
878
+ return this[P] === "Reject" || this[P] === "Exception" ? this : (Array.isArray(e) ? this[O] = [...this[O], ...e] : this[O].push(e), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[J]]), this));
881
879
  }
882
880
  wait(e, t) {
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);
881
+ return e && typeof e == "function" && this[ye].push(e), t && typeof t == "function" && this[Ce].push(t), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[J]]), this);
884
882
  }
885
883
  exception(e) {
886
- return e && typeof e == "function" && this[$e].push(e), this[_] === E.Busy ? this : Reflect.apply(this[Y], this, [0, ...this[Z]]);
884
+ return e && typeof e == "function" && this[Ce].push(e), this[P] === "Busy" ? this : Reflect.apply(this[G], this, [0, ...this[J]]);
887
885
  }
888
886
  isFinish() {
889
- return this[_] == E.Reject || this[_] == E.Free && this[k] >= this[B].length;
887
+ return this[P] == "Reject" || this[P] == "Free" && this[T] >= this[O].length;
890
888
  }
891
- }, xe = /* @__PURE__ */ Symbol("_notifyChange"), St = class {
889
+ }, ge = /* @__PURE__ */ Symbol("_notifyChange"), Rt = class {
892
890
  currentRoute;
893
891
  routes;
894
892
  constructor(e, t) {
895
893
  this.currentRoute = e, this.routes = t;
896
894
  }
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
- function Ye(e, ...t) {
895
+ }, ne = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), hr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Ge = /* @__PURE__ */ Symbol("_getRouteMark"), St = /* @__PURE__ */ Symbol("_getUrlSearch"), xt = /* @__PURE__ */ Symbol("_generateLocation"), Xe = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), Ee = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), yr = /* @__PURE__ */ Symbol("_beforeRestore"), dr = "Symbol(_fox_restore_point)";
896
+ function Qe(e, ...t) {
899
897
  return typeof e == "function" ? Reflect.apply(e, null, [...t]) : e;
900
898
  }
901
899
  function vr(e) {
@@ -904,7 +902,7 @@ function vr(e) {
904
902
  const t = e[0];
905
903
  return !!((Reflect.has(t, "path") || Reflect.has(t, "name")) && Reflect.has(t, "root"));
906
904
  }
907
- var Jr = class {
905
+ var Wr = class {
908
906
  base;
909
907
  storage;
910
908
  mode;
@@ -914,41 +912,41 @@ var Jr = class {
914
912
  traceless = !1;
915
913
  changeHandler;
916
914
  historyChange;
917
- [ae] = !1;
918
- [je] = new Array();
915
+ [ne] = !1;
916
+ [Ee] = new Array();
919
917
  backTimeout = 320;
920
918
  constructor(e = "hash", t = "", r = "", s = !0, i = !0, n = !1, o, l) {
921
- this.mode = e, this.base = t, this.query = r, this.firstNavigate = s, this.historyMonitor = i, this.traceless = n, this.storage = o ?? C().sessionStorage, this.backTimeout = l ?? 320;
919
+ this.mode = e, this.base = t, this.query = r, this.firstNavigate = s, this.historyMonitor = i, this.traceless = n, this.storage = o ?? F().sessionStorage, this.backTimeout = l ?? 320;
922
920
  }
923
921
  init(e = !0) {
924
- const t = C();
922
+ const t = F();
925
923
  return typeof this.historyChange != "function" && (this.historyChange = () => {
926
- if (typeof this[ae] == "function") {
927
- const r = this[ae]();
928
- if (this[ae] = !1, r) return;
929
- } else if (this[ae] === !0) {
930
- this[ae] = !1;
924
+ if (typeof this[ne] == "function") {
925
+ const r = this[ne]();
926
+ if (this[ne] = !1, r) return;
927
+ } else if (this[ne] === !0) {
928
+ this[ne] = !1;
931
929
  return;
932
930
  }
933
- if (Ye(this.historyMonitor)) {
931
+ if (Qe(this.historyMonitor)) {
934
932
  const r = t.history.state;
935
- this[xe](r);
933
+ this[ge](r);
936
934
  try {
937
935
  let s = [];
938
936
  if (typeof r == "string" ? s = JSON.parse(r) : s = r, Array.isArray(s) && s.length > 0) {
939
- const i = this[Qe]() ?? "/";
940
- this[Ze](i, s);
937
+ const i = this[Ge]() ?? "/";
938
+ this[Xe](i, s);
941
939
  }
942
940
  } catch {
943
941
  }
944
942
  }
945
- }), ft(t, "popstate", this.historyChange), this.firstNavigate && e && this[dr](), Promise.resolve();
943
+ }), ut(t, "popstate", this.historyChange), this.firstNavigate && e && this[hr](), Promise.resolve();
946
944
  }
947
945
  destroy() {
948
- this.historyChange && Qt(C(), "popstate", this.historyChange);
946
+ this.historyChange && Gt(F(), "popstate", this.historyChange);
949
947
  }
950
- [mr](e, t, r, s) {
951
- for (let i of this[je]) try {
948
+ [yr](e, t, r, s) {
949
+ for (let i of this[Ee]) try {
952
950
  const n = Reflect.apply(i, {}, [
953
951
  e,
954
952
  t,
@@ -962,21 +960,21 @@ var Jr = class {
962
960
  return !0;
963
961
  }
964
962
  beforeRestoreEach(e) {
965
- this[je].push(e);
963
+ this[Ee].push(e);
966
964
  }
967
965
  removeBeforeRestoreEach(e) {
968
- const t = this[je].indexOf(e);
969
- return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
966
+ const t = this[Ee].indexOf(e);
967
+ return t !== -1 ? (this[Ee].splice(t, 1), !0) : !1;
970
968
  }
971
- [dr]() {
972
- const e = this[Qe]() ?? "/", t = this.storage.getItem(pr);
969
+ [hr]() {
970
+ const e = this[Ge]() ?? "/", t = this.storage.getItem(dr);
973
971
  if (t) try {
974
972
  const n = JSON.parse(t);
975
973
  if (n.mark === e && Array.isArray(n.routes) && n.routes.length > 0) {
976
- const o = n.routes.filter((l, a) => (l.params = l.params ? Ir(l.params) : {}, this[mr](l, a, e, n.routes)));
974
+ const o = n.routes.filter((l, a) => (l.params = l.params ? Lr(l.params) : {}, this[yr](l, a, e, n.routes)));
977
975
  if (o.length > 0) {
978
- const l = this[Et](), a = o.length - 1;
979
- o[a].query = l || o[a].query, this[xe](o);
976
+ const l = this[St](), a = o.length - 1;
977
+ o[a].query = l || o[a].query, this[ge](o);
980
978
  return;
981
979
  }
982
980
  }
@@ -985,32 +983,32 @@ var Jr = class {
985
983
  const r = e.indexOf("!");
986
984
  let s;
987
985
  r != -1 ? s = e.substring(r + 1) : s = e;
988
- const i = new x();
989
- i.path = s, i.query = this[Et](), this[xe]([i]);
986
+ const i = new R();
987
+ i.path = s, i.query = this[St](), this[ge]([i]);
990
988
  }
991
- [Ze](e, t) {
989
+ [Xe](e, t) {
992
990
  try {
993
991
  t.forEach((s) => {
994
- s.params = s.params ? kr(s.params) : {};
992
+ s.params = s.params ? Mr(s.params) : {};
995
993
  });
996
994
  const r = JSON.stringify({
997
995
  mark: e,
998
996
  routes: t
999
997
  });
1000
- this.storage.setItem(pr, r);
998
+ this.storage.setItem(dr, r);
1001
999
  } catch (r) {
1002
1000
  console.error(r.message, r);
1003
1001
  }
1004
1002
  }
1005
1003
  setRestorePoint(e) {
1006
- const t = this[Qe]() ?? "/";
1007
- this[Ze](t, e);
1004
+ const t = this[Ge]() ?? "/";
1005
+ this[Xe](t, e);
1008
1006
  }
1009
- [xe](e) {
1007
+ [ge](e) {
1010
1008
  typeof this.changeHandler == "function" && this.changeHandler(e);
1011
1009
  }
1012
- [Qe]() {
1013
- const e = C();
1010
+ [Ge]() {
1011
+ const e = F();
1014
1012
  if (this.mode === "path") {
1015
1013
  let t = e.location.pathname;
1016
1014
  return this.base && t.indexOf(this.base) === 0 && (t = t.substring(this.base.length)), t;
@@ -1020,24 +1018,24 @@ var Jr = class {
1020
1018
  }
1021
1019
  return null;
1022
1020
  }
1023
- [Et]() {
1024
- let e = C().location.search;
1021
+ [St]() {
1022
+ let e = F().location.search;
1025
1023
  return e.length > 0 && e.indexOf("?") === 0 && (e = e.substring(1)), e;
1026
1024
  }
1027
1025
  listen(e) {
1028
1026
  this.changeHandler = e;
1029
1027
  }
1030
1028
  go(e, t = !1) {
1031
- const r = C();
1032
- this[ae] = t, r.history.go(e);
1029
+ const r = F();
1030
+ this[ne] = t, r.history.go(e);
1033
1031
  }
1034
1032
  goBack(e, t) {
1035
- const r = C(), s = r.history.state;
1033
+ const r = F(), s = r.history.state;
1036
1034
  if (vr(s) && s.length > 0) {
1037
1035
  let i = !1;
1038
1036
  for (let u = s.length - 1; u >= 0; u--) {
1039
- const f = x.from(s[u]);
1040
- if (x.isSame(f, e)) {
1037
+ const f = R.from(s[u]);
1038
+ if (R.isSame(f, e)) {
1041
1039
  i = !0;
1042
1040
  break;
1043
1041
  }
@@ -1052,17 +1050,17 @@ var Jr = class {
1052
1050
  r.history.go(-1), o = setTimeout(l, n);
1053
1051
  }, a = () => {
1054
1052
  clearTimeout(o);
1055
- const u = C().history.state;
1053
+ const u = F().history.state;
1056
1054
  if (vr(u) && u.length > 0) {
1057
1055
  let f = u.length;
1058
- const c = u[f - 1], h = x.from(c);
1059
- if (x.isSame(h, e))
1056
+ const c = u[f - 1], h = R.from(c);
1057
+ if (R.isSame(h, e))
1060
1058
  return t(), !0;
1061
1059
  if (f > 0) {
1062
1060
  let y = !1;
1063
1061
  for (let d = f - 1; d >= 0; d--) {
1064
- const m = x.from(u[d]);
1065
- if (!(m.traceless === !0 || Ye(this.traceless, m)) && x.isSame(m, e)) {
1062
+ const v = R.from(u[d]);
1063
+ if (!(v.traceless === !0 || Qe(this.traceless, v)) && R.isSame(v, e)) {
1066
1064
  y = !0;
1067
1065
  break;
1068
1066
  }
@@ -1079,18 +1077,18 @@ var Jr = class {
1079
1077
  }
1080
1078
  setRouteMark(e) {
1081
1079
  const t = e.currentRoute.fullPath;
1082
- this[Ze](t, e.routes);
1080
+ this[Xe](t, e.routes);
1083
1081
  }
1084
1082
  push(e) {
1085
- const t = this[Pt](e.currentRoute);
1086
- e.currentRoute.historyUpdatePolicy !== "traceless" && !Ye(this.traceless, e.currentRoute) && C().history.pushState(e.routes, "", t), this.setRouteMark(e);
1083
+ const t = this[xt](e.currentRoute);
1084
+ e.currentRoute.historyUpdatePolicy !== "traceless" && !Qe(this.traceless, e.currentRoute) && F().history.pushState(e.routes, "", t), this.setRouteMark(e);
1087
1085
  }
1088
1086
  replace(e) {
1089
- const t = this[Pt](e.currentRoute);
1090
- (e.currentRoute.historyUpdatePolicy !== "traceless" || !Ye(this.traceless, e.currentRoute)) && C().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1087
+ const t = this[xt](e.currentRoute);
1088
+ (e.currentRoute.historyUpdatePolicy !== "traceless" || !Qe(this.traceless, e.currentRoute)) && F().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1091
1089
  }
1092
- [Pt](e) {
1093
- const t = C();
1090
+ [xt](e) {
1091
+ const t = F();
1094
1092
  let r = "";
1095
1093
  if (e.query) {
1096
1094
  let o = "";
@@ -1109,12 +1107,12 @@ var Jr = class {
1109
1107
  }
1110
1108
  };
1111
1109
  function Ui(e = !0, t = null, r = "", s = !0, i = !1, n) {
1112
- return t !== null && (t = C().location.pathname), t && t.endsWith("/") && (t = t.substring(0, t.length - 1)), new Jr("path", t ?? "", r, e, s, i, n);
1110
+ return t !== null && (t = F().location.pathname), t && t.endsWith("/") && (t = t.substring(0, t.length - 1)), new Wr("path", t ?? "", r, e, s, i, n);
1113
1111
  }
1114
- function Us(e = !0, t = "", r = !0, s = !1, i) {
1115
- return new Jr("hash", "", t, e, r, s, i);
1112
+ function Ns(e = !0, t = "", r = !0, s = !1, i) {
1113
+ return new Wr("hash", "", t, e, r, s, i);
1116
1114
  }
1117
- var Vs = class {
1115
+ var Us = class {
1118
1116
  maxSize = 50;
1119
1117
  cursor = -1;
1120
1118
  queue = [];
@@ -1139,7 +1137,7 @@ var Vs = class {
1139
1137
  listen(e) {
1140
1138
  this.changeHandler = e;
1141
1139
  }
1142
- [xe](e) {
1140
+ [ge](e) {
1143
1141
  typeof this.changeHandler == "function" && this.changeHandler(e);
1144
1142
  }
1145
1143
  go(e, t = !1) {
@@ -1150,7 +1148,7 @@ var Vs = class {
1150
1148
  let s = !1;
1151
1149
  if (typeof t == "function" ? s = t() : s = t, !s) {
1152
1150
  const i = this.queue[r];
1153
- this[xe](i.routes);
1151
+ this[ge](i.routes);
1154
1152
  }
1155
1153
  }
1156
1154
  }
@@ -1160,7 +1158,7 @@ var Vs = class {
1160
1158
  if (e === null) r = this.cursor + 1;
1161
1159
  else for (let s = this.cursor; s >= 0; s--) {
1162
1160
  const i = this.queue[s];
1163
- if (x.isSame(i.currentRoute, e)) break;
1161
+ if (R.isSame(i.currentRoute, e)) break;
1164
1162
  r++;
1165
1163
  }
1166
1164
  if (r === 0) {
@@ -1181,199 +1179,202 @@ var Vs = class {
1181
1179
  setRestorePoint(e) {
1182
1180
  }
1183
1181
  };
1184
- function Ws(e = "", t = 50) {
1185
- return new Vs(e, t);
1182
+ function Bs(e = "", t = 50) {
1183
+ return new Us(e, t);
1186
1184
  }
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
- function zs(e) {
1185
+ var Ze = /* @__PURE__ */ Symbol("_constructRouteModel"), Ye = /* @__PURE__ */ Symbol("_findRouteModel"), Pt = /* @__PURE__ */ Symbol("_findRootView"), Vs = /* @__PURE__ */ Symbol("_getFirstView"), oe = /* @__PURE__ */ Symbol("_removeView"), mr = /* @__PURE__ */ Symbol("_buildPage"), pr = /* @__PURE__ */ Symbol("_resolveComponent"), gr = /* @__PURE__ */ Symbol("_update"), ee = /* @__PURE__ */ Symbol("_merge"), _t = /* @__PURE__ */ Symbol("_handleHistoryChange"), le = /* @__PURE__ */ Symbol("_handleRouteUpdated"), et = /* @__PURE__ */ Symbol("routeUpdatedCallback"), Ae = /* @__PURE__ */ Symbol("currentRoute"), p = /* @__PURE__ */ Symbol("currentRoutes"), tt = /* @__PURE__ */ Symbol("routeSessionCacheKey"), wr = /* @__PURE__ */ Symbol("_addRouteRecorder"), qe = /* @__PURE__ */ Symbol("_removeRouteRecorder"), $e = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), A = /* @__PURE__ */ Symbol("_handleError"), rt = /* @__PURE__ */ Symbol("errorCallback"), H = /* @__PURE__ */ Symbol("registerKey"), st = /* @__PURE__ */ Symbol("notFoundKey"), Ft = /* @__PURE__ */ Symbol("notFoundPathKey"), U = /* @__PURE__ */ Symbol("forestKey"), x = /* @__PURE__ */ Symbol("historyKey"), Ke = /* @__PURE__ */ Symbol("beforeFiltersKey"), je = /* @__PURE__ */ Symbol("afterFiltersKey"), ke = /* @__PURE__ */ Symbol("destroyFiltersKey"), Ct = /* @__PURE__ */ Symbol("propsFilterKey"), de = /* @__PURE__ */ Symbol("mainDispatcherKey"), it = /* @__PURE__ */ Symbol("initKey"), ae = /* @__PURE__ */ Symbol("readyKey"), nt = /* @__PURE__ */ Symbol("readyHandlersKey"), ot = /* @__PURE__ */ Symbol("_markReady"), br = /* @__PURE__ */ Symbol("_createNextFn"), Et = /* @__PURE__ */ Symbol("_start"), At = /* @__PURE__ */ Symbol("_before"), qt = /* @__PURE__ */ Symbol("_after"), Rr = /* @__PURE__ */ Symbol("_destroy"), $t = /* @__PURE__ */ Symbol("_load"), Te = /* @__PURE__ */ Symbol("_unload"), Me = /* @__PURE__ */ Symbol("routerGuardKey");
1186
+ function Ws(e) {
1189
1187
  return e.layers.length == 0 || e.layers[0].views.length == 0;
1190
1188
  }
1191
- var Gs = class {
1192
- [D] = new Array();
1193
- [nt];
1194
- [At] = "*";
1195
- [ce] = !1;
1196
- [jt] = [];
1197
- [W] = new Ds();
1198
- [S];
1199
- [v] = new Array();
1200
- [Ct] = Lr(null);
1201
- [st] = /* @__PURE__ */ new WeakMap();
1202
- [it] = null;
1189
+ var zs = class {
1190
+ [H] = new Array();
1191
+ [st];
1192
+ [Ft] = "*";
1193
+ [ae] = !1;
1194
+ [nt] = [];
1195
+ [U] = new Os();
1196
+ [x];
1197
+ [p] = new Array();
1198
+ [Ae] = jr(null);
1199
+ [tt] = /* @__PURE__ */ new WeakMap();
1203
1200
  [rt] = null;
1204
- [Me] = new Array();
1205
- [Te] = new Array();
1201
+ [et] = null;
1202
+ [Ke] = new Array();
1203
+ [je] = new Array();
1206
1204
  [ke] = new Array();
1207
- [qt] = null;
1208
- [ge] = new ct();
1209
- [Oe] = new Ns();
1210
- [$t] = !1;
1205
+ [Ct] = null;
1206
+ [de] = new ft();
1207
+ [Me] = new Ds();
1208
+ [it] = !1;
1211
1209
  get currentRoute() {
1212
- return ds(this[Ct]);
1210
+ return hs(this[Ae]);
1213
1211
  }
1214
1212
  options;
1215
1213
  constructor(e) {
1216
1214
  this.options = e ?? {}, this.options.notFoundPath && this.setNotFoundPath(this.options.notFoundPath);
1217
1215
  let t = this.options.routes || [];
1218
- this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[S] = e.history : this[S] = Ee ? Us() : Ws(), this[S]?.listen(async (r) => {
1216
+ this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[x] = e.history : this[x] = be ? Ns() : Bs(), this[x]?.listen(async (r) => {
1219
1217
  let s = !0;
1220
1218
  try {
1221
1219
  if (typeof r == "string") {
1222
- const i = this[I](r);
1223
- i && await this[Ft]([i]);
1224
- } else await this[Ft](r);
1220
+ const i = this[M](r);
1221
+ i && await this[_t]([i]);
1222
+ } else await this[_t](r);
1225
1223
  } catch (i) {
1226
1224
  console.error(i.message, i), s = !1;
1227
1225
  }
1228
- this[ce] === !1 && this[ot](s);
1226
+ this[ae] === !1 && this[ot](s);
1229
1227
  });
1230
1228
  }
1231
- [$](e = "error", t) {
1229
+ [A](e = "error", t) {
1232
1230
  if (t && typeof t.error == "function") try {
1233
1231
  t.error(e);
1234
1232
  } catch {
1235
1233
  }
1236
- if (typeof this[it] == "function") try {
1237
- this[it](e, t);
1234
+ if (typeof this[rt] == "function") try {
1235
+ this[rt](e, t);
1238
1236
  } catch {
1239
1237
  }
1240
1238
  console.error(e);
1241
1239
  }
1242
1240
  init() {
1243
- this[$t] !== !0 && (this[S]?.init(!this[ce]), this[$t] = !0);
1241
+ this[it] !== !0 && (this[x]?.init(!this[ae]), this[it] = !0);
1242
+ }
1243
+ destroy() {
1244
+ this[x]?.destroy(), this[it] = !1;
1244
1245
  }
1245
1246
  isReady() {
1246
- return this[ce] ? Promise.resolve() : new Promise((e, t) => {
1247
- this[jt].push([e, t]);
1247
+ return this[ae] ? Promise.resolve() : new Promise((e, t) => {
1248
+ this[nt].push([e, t]);
1248
1249
  });
1249
1250
  }
1250
1251
  [ot](e) {
1251
- this[ce] = !0, this[jt].forEach(([t, r]) => {
1252
+ this[ae] = !0, this[nt].forEach(([t, r]) => {
1252
1253
  try {
1253
1254
  e ? t() : r();
1254
1255
  } catch (s) {
1255
1256
  console.error(s.message, s);
1256
1257
  }
1257
- });
1258
+ }), this[nt] = [];
1258
1259
  }
1259
- [Ft](e) {
1260
+ [_t](e) {
1260
1261
  try {
1261
1262
  if (!e) {
1262
- let n = [...this[v]].reverse();
1263
- return this[Ie](n), Ee && C().location.reload(), Promise.resolve();
1263
+ let n = [...this[p]].reverse();
1264
+ return this[Te](n), be && F().location.reload(), Promise.resolve();
1264
1265
  }
1265
1266
  let t = null, r = [], s = [], i = 0;
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]);
1267
+ for (; i < e.length && i < this[p].length && R.isSame(e[i], this[p][i]); i++)
1268
+ e[i].active === !0 && e[i].active !== this[p][i].active && (t = e[i]);
1268
1269
  if (i < e.length) r = e.slice(i);
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) {
1270
+ else if (i === e.length) for (; i < this[p].length && this[p][i].historyUpdatePolicy === "traceless"; i++)
1271
+ r.push(this[p][i]), t = e[i];
1272
+ if (i < this[p].length && (s = this[p].slice(i).reverse()), s.length === 0 && r.length === 0) {
1272
1273
  if (t !== null) return this.restore([t]);
1273
1274
  } else if (s.length > 0) {
1274
- if (this[Ie](s)) {
1275
+ if (this[Te](s)) {
1275
1276
  if (r.length > 0) return this.restore(r);
1276
1277
  if (t !== null) return this.restore([t]);
1277
1278
  }
1278
1279
  } else return this.restore(r);
1279
1280
  } catch (t) {
1280
- this[$](t);
1281
+ this[A](t);
1281
1282
  }
1282
1283
  return Promise.resolve();
1283
1284
  }
1284
- [fe](e = null) {
1285
- if (this[Ct].value = e, typeof this[rt] == "function") try {
1286
- this[rt](e);
1285
+ [le](e = null) {
1286
+ if (this[Ae].value = e, typeof this[et] == "function") try {
1287
+ this[et](e);
1287
1288
  } catch {
1288
1289
  }
1289
1290
  }
1290
- [Rr](e, t) {
1291
- if (e.opsType === F.Open) {
1291
+ [wr](e, t) {
1292
+ if (e.opsType === _.Open) {
1292
1293
  let r = !1;
1293
- const s = this[v].length - 1;
1294
+ const s = this[p].length - 1;
1294
1295
  for (let i = s; i >= 0; i--) {
1295
- const n = this[v][i];
1296
+ const n = this[p][i];
1296
1297
  if (e.root == n.root) {
1297
1298
  if (e.path === n.path) {
1298
- this[v].splice(i, 1, e), r = !0;
1299
+ this[p].splice(i, 1, e), r = !0;
1299
1300
  continue;
1300
1301
  }
1301
1302
  e.active && (n.active = !1);
1302
1303
  }
1303
1304
  }
1304
- r || this[v].push(e);
1305
- } else this[v].push(e);
1306
- this[st].set(e, t), this[fe](e);
1305
+ r || this[p].push(e);
1306
+ } else this[p].push(e);
1307
+ this[tt].set(e, t), this[le](e);
1307
1308
  }
1308
- [Le]() {
1309
+ [$e]() {
1309
1310
  let e = [];
1310
- for (let t of this[v]) {
1311
- let r = x.clone(t, !0);
1311
+ for (let t of this[p]) {
1312
+ let r = R.clone(t, !0);
1312
1313
  e.push(r);
1313
1314
  }
1314
1315
  return e;
1315
1316
  }
1316
- [Ke](e) {
1317
- if (!this[v]) {
1318
- this[fe](null);
1317
+ [qe](e) {
1318
+ if (!this[p]) {
1319
+ this[le](null);
1319
1320
  return;
1320
1321
  }
1321
1322
  let t = -1;
1322
- for (let r = 0; r < this[v].length; r++) if (x.isSame(this[v][r], e)) {
1323
+ for (let r = 0; r < this[p].length; r++) if (R.isSame(this[p][r], e)) {
1323
1324
  t = r;
1324
1325
  break;
1325
1326
  }
1326
1327
  if (t != -1) {
1327
- const r = this[v][t];
1328
- this[v].splice(t, 1);
1329
- const s = this[st].get(r);
1330
- if (this[st].delete(r), this[Sr](r, s), r.opsType === F.Append) {
1331
- const i = this[v].length - 1;
1332
- this[fe](this[v][i] ?? null);
1333
- } else this[fe](null);
1334
- } else this[fe](null);
1328
+ const r = this[p][t];
1329
+ this[p].splice(t, 1);
1330
+ const s = this[tt].get(r);
1331
+ if (this[tt].delete(r), this[Rr](r, s), r.opsType === _.Append) {
1332
+ const i = this[p].length - 1;
1333
+ this[le](this[p][i] ?? null);
1334
+ } else this[Ae].value && R.isSame(this[Ae].value, e) && this[le](null);
1335
+ } else this[le](null);
1335
1336
  }
1336
1337
  set historyMonitor(e) {
1337
- this[S] && (this[S].historyMonitor = e);
1338
+ this[x] && (this[x].historyMonitor = e);
1338
1339
  }
1339
1340
  get historyMonitor() {
1340
- return this[S] ? this[S].historyMonitor : !1;
1341
+ return this[x] ? this[x].historyMonitor : !1;
1341
1342
  }
1342
1343
  set traceless(e) {
1343
- this[S] && (this[S].traceless = e);
1344
+ this[x] && (this[x].traceless = e);
1344
1345
  }
1345
1346
  get traceless() {
1346
- return this[S]?.traceless ?? !1;
1347
+ return this[x]?.traceless ?? !1;
1347
1348
  }
1348
1349
  set propsFilter(e) {
1349
- this[qt] = e;
1350
+ this[Ct] = e;
1350
1351
  }
1351
1352
  get propsFilter() {
1352
- return this[qt];
1353
+ return this[Ct];
1353
1354
  }
1354
1355
  setRestorePoint() {
1355
- const e = this[Le]();
1356
- this[S]?.setRestorePoint(e);
1356
+ const e = this[$e]();
1357
+ this[x]?.setRestorePoint(e);
1357
1358
  }
1358
1359
  onRouteUpdated(e) {
1359
- this[rt] = e;
1360
+ this[et] = e;
1360
1361
  }
1361
1362
  onError(e) {
1362
- this[it] = e;
1363
+ this[rt] = e;
1363
1364
  }
1364
1365
  beforeEach(e) {
1365
- this[Me].push(e);
1366
+ this[Ke].push(e);
1366
1367
  }
1367
1368
  removeBeforeEach(e) {
1368
- const t = this[Me].indexOf(e);
1369
- return t !== -1 ? (this[Me].splice(t, 1), !0) : !1;
1369
+ const t = this[Ke].indexOf(e);
1370
+ return t !== -1 ? (this[Ke].splice(t, 1), !0) : !1;
1370
1371
  }
1371
1372
  afterEach(e) {
1372
- this[Te].push(e);
1373
+ this[je].push(e);
1373
1374
  }
1374
1375
  removeAfterEach(e) {
1375
- const t = this[Te].indexOf(e);
1376
- return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1376
+ const t = this[je].indexOf(e);
1377
+ return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
1377
1378
  }
1378
1379
  destroyEach(e) {
1379
1380
  this[ke].push(e);
@@ -1383,107 +1384,107 @@ var Gs = class {
1383
1384
  return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
1384
1385
  }
1385
1386
  beforeRestoreEach(e) {
1386
- this[S]?.beforeRestoreEach(e);
1387
+ this[x]?.beforeRestoreEach(e);
1387
1388
  }
1388
1389
  removeBeforeRestoreEach(e) {
1389
- return this[S]?.removeBeforeRestoreEach(e) ?? !1;
1390
+ return this[x]?.removeBeforeRestoreEach(e) ?? !1;
1390
1391
  }
1391
1392
  addRoutes(e) {
1392
1393
  for (let t of e) this.addRoute(t);
1393
1394
  }
1394
1395
  addRoute(e, t = -1) {
1395
- if (e.path === this[At]) {
1396
+ if (e.path === this[Ft]) {
1396
1397
  this.setNotFoundRoute(e);
1397
1398
  return;
1398
1399
  }
1399
- const r = this[et](e);
1400
- if (t == -1) this[D] = [...this[D], ...r];
1401
- else for (let s = r.length - 1; s >= 0; s--) this[D].splice(t, 0, r[s]);
1400
+ const r = this[Ze](e);
1401
+ if (t == -1) this[H] = [...this[H], ...r];
1402
+ else for (let s = r.length - 1; s >= 0; s--) this[H].splice(t, 0, r[s]);
1402
1403
  }
1403
1404
  removeRoute(e) {
1404
- const t = this[I](e);
1405
+ const t = this[M](e);
1405
1406
  if (t === null)
1406
1407
  return console.warn("[Fox]Illegal routing format", e), !1;
1407
- for (let r = 0; r < this[D].length; r++) {
1408
- const s = this[D][r];
1408
+ for (let r = 0; r < this[H].length; r++) {
1409
+ const s = this[H][r];
1409
1410
  if (t?.path && s.path === t.path)
1410
- return this[D].splice(r, 1), !0;
1411
+ return this[H].splice(r, 1), !0;
1411
1412
  if (t?.name && s.name === t.name)
1412
- return this[D].splice(r, 1), !0;
1413
+ return this[H].splice(r, 1), !0;
1413
1414
  }
1414
1415
  return !1;
1415
1416
  }
1416
1417
  hasRoute(e) {
1417
- const t = this[I](e);
1418
- return t === null ? (console.warn("[Fox]Illegal routing format", e), !1) : this[D].findIndex((r) => {
1418
+ const t = this[M](e);
1419
+ return t === null ? (console.warn("[Fox]Illegal routing format", e), !1) : this[H].findIndex((r) => {
1419
1420
  if (t?.path && r.path === t.path || t?.name && r.name === t.name) return !0;
1420
1421
  }) !== -1;
1421
1422
  }
1422
1423
  setNotFoundPath(e) {
1423
- this[At] = e;
1424
+ this[Ft] = e;
1424
1425
  }
1425
1426
  setNotFoundRoute(e) {
1426
- const t = this[et](e);
1427
- this[nt] = t[0];
1427
+ const t = this[Ze](e);
1428
+ this[st] = t[0];
1428
1429
  }
1429
1430
  getRoutes() {
1430
- return [...this[D]];
1431
+ return [...this[H]];
1431
1432
  }
1432
- [et](e) {
1433
+ [Ze](e) {
1433
1434
  let t = e.path ?? "";
1434
1435
  t.length > 0 && t.charAt(0) !== "/" && (t = `/${t}`);
1435
1436
  let r = e.components ?? (e.component && { "": e.component });
1436
1437
  if (!r) {
1437
- const l = new bt();
1438
+ const l = new pt();
1438
1439
  return l.path = t, l.redirect = e.redirect, [l];
1439
1440
  }
1440
- const s = new x();
1441
+ const s = new R();
1441
1442
  s.path = t, s.name = e.name, s.meta = e.meta;
1442
1443
  let i = [];
1443
1444
  for (let l in r) {
1444
1445
  const a = r[l];
1445
1446
  l.length === 0 && (l = Ur);
1446
- const u = new Bs(l, a, e.props);
1447
+ const u = new Is(l, a, e.props);
1447
1448
  i.push(u);
1448
1449
  }
1449
1450
  let n = !1, o = [];
1450
1451
  if (e.children) for (let l of e.children) {
1451
- const a = this[et](l);
1452
+ const a = this[Ze](l);
1452
1453
  for (let u of a) {
1453
- let f = new bt();
1454
+ let f = new pt();
1454
1455
  f.name = u.name, u.path && u.path.length > 0 ? t !== "/" ? f.path = `${t}${u.path}` : f.path = u.path : (n = !0, f.path = t);
1455
- let c = new yr();
1456
+ let c = new cr();
1456
1457
  c.models = [...i], f.layers = [c, ...u.layers], f.matchedRoutes = [s, ...u.matchedRoutes ?? []], o.push(f);
1457
1458
  }
1458
1459
  }
1459
1460
  if (!n) {
1460
- const l = new yr();
1461
+ const l = new cr();
1461
1462
  l.models = i;
1462
- const a = new bt();
1463
+ const a = new pt();
1463
1464
  a.name = e.name, a.path = t, a.matchedRoutes = [s], a.layers = [l], o.splice(0, 0, a);
1464
1465
  }
1465
1466
  return o;
1466
1467
  }
1467
- [tt](e) {
1468
+ [Ye](e) {
1468
1469
  const t = e.route;
1469
1470
  try {
1470
- for (let r of this[D]) {
1471
+ for (let r of this[H]) {
1471
1472
  const s = t.path ? t.template ?? t.path : null, i = t.name ? t.template ?? t.name : null;
1472
1473
  if (s && r.path) {
1473
1474
  let n = r.match;
1474
- n || (n = r.match = ks(r.path));
1475
+ n || (n = r.match = Ts(r.path));
1475
1476
  const o = n(s);
1476
1477
  if (!o) continue;
1477
1478
  if (r.redirect) {
1478
- const l = new x();
1479
- j(!0, l, t), l.path = r.redirect;
1479
+ const l = new R();
1480
+ q(!0, l, t), l.path = r.redirect;
1480
1481
  const a = {
1481
1482
  route: l,
1482
1483
  find: void 0
1483
1484
  };
1484
- return this[tt](a) ? (e.route = a.route, e.find = a.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
1485
+ return this[Ye](a) ? (e.route = a.route, e.find = a.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
1485
1486
  }
1486
- if (t.params = t.params ?? {}, j(!0, t.params, o.params), t.query) {
1487
+ if (t.params = t.params ?? {}, q(!0, t.params, o.params), t.query) {
1487
1488
  const l = t.query;
1488
1489
  if (typeof l == "string") {
1489
1490
  const a = {}, u = l.split("&");
@@ -1493,8 +1494,8 @@ var Gs = class {
1493
1494
  const h = decodeURIComponent(c[0].trim());
1494
1495
  a[h] = decodeURIComponent(c[1].trim());
1495
1496
  }
1496
- j(!0, t.params, a);
1497
- } else typeof l == "object" && j(!0, t.params, l);
1497
+ q(!0, t.params, a);
1498
+ } else typeof l == "object" && q(!0, t.params, l);
1498
1499
  }
1499
1500
  return e.find = r, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0;
1500
1501
  } else if (i === r.name)
@@ -1505,58 +1506,58 @@ var Gs = class {
1505
1506
  }
1506
1507
  return !1;
1507
1508
  }
1508
- [I](e) {
1509
+ [M](e) {
1509
1510
  let t = null;
1510
1511
  if (Array.isArray(e))
1511
- if (t = new x(), typeof e[0] == "object") t = x.from(e[0]);
1512
- else for (let r = 0; r < e.length; r++) r === 0 ? e[r].charAt(0) === "/" ? t.path = e[r] : t.name = e[r] : r === 1 ? t.params = e[r] : r === 2 ? t.root = e[r] : r === 3 && j(!1, t, e[r]);
1513
- else typeof e == "object" ? t = x.from(e) : typeof e == "string" && (t = new x(), e.charAt(0) == "/" ? t.path = e : t.name = e);
1512
+ if (t = new R(), typeof e[0] == "object") t = R.from(e[0]);
1513
+ else for (let r = 0; r < e.length; r++) r === 0 ? e[r].charAt(0) === "/" ? t.path = e[r] : t.name = e[r] : r === 1 ? t.params = e[r] : r === 2 ? t.root = e[r] : r === 3 && q(!1, t, e[r]);
1514
+ else typeof e == "object" ? t = R.from(e) : typeof e == "string" && (t = new R(), e.charAt(0) == "/" ? t.path = e : t.name = e);
1514
1515
  if (t) {
1515
1516
  if (t.path) {
1516
1517
  let r = t.path.indexOf("?");
1517
1518
  r !== -1 && r < t.path.length - 1 && (t.query = t.path.substring(r + 1), t.path = t.path.substring(0, r));
1518
1519
  }
1519
- t.root = t.root ?? "default", t.opsType = t.opsType ?? this.options.defaultOperationType ?? F.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
1520
+ t.root = t.root ?? "default", t.opsType = t.opsType ?? this.options.defaultOperationType ?? _.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
1520
1521
  }
1521
1522
  return t;
1522
1523
  }
1523
1524
  push(...e) {
1524
- const t = this[I](e);
1525
- return t ? (t.opsType = F.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
1525
+ const t = this[M](e);
1526
+ return t ? (t.opsType = _.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1526
1527
  }
1527
1528
  put(...e) {
1528
- const t = this[I](e);
1529
- return t ? (t.opsType = F.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[$]("resolve route fail", t), this);
1529
+ const t = this[M](e);
1530
+ return t ? (t.opsType = _.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[A]("resolve route fail", t), this);
1530
1531
  }
1531
1532
  replace(...e) {
1532
- const t = this[I](e);
1533
- return t ? (t.opsType = F.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[$]("resolve route fail", t), this);
1533
+ const t = this[M](e);
1534
+ return t ? (t.opsType = _.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[A]("resolve route fail", t), this);
1534
1535
  }
1535
1536
  append(...e) {
1536
- const t = this[I](e);
1537
- return t ? (t.opsType = F.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
1537
+ const t = this[M](e);
1538
+ return t ? (t.opsType = _.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1538
1539
  }
1539
1540
  remove(e, t) {
1540
1541
  return new Promise((r) => {
1541
- this[ge].post((s) => {
1542
+ this[de].post((s) => {
1542
1543
  try {
1543
- if (this[v].length === 0) {
1544
+ if (this[p].length === 0) {
1544
1545
  s.resolve(), r(!1);
1545
1546
  return;
1546
1547
  }
1547
- let i = -1, n = null, o = [], l = this[v].length - 1, a = l !== -1 ? this[v][l] : null;
1548
+ let i = -1, n = null, o = [], l = this[p].length - 1, a = l !== -1 ? this[p][l] : null;
1548
1549
  if (e) {
1549
1550
  if (n = e.root ?? "default", e.all) for (let f = l; f > 0; f--) {
1550
- const c = this[v][f];
1551
- if (c.opsType === F.Append) {
1551
+ const c = this[p][f];
1552
+ if (c.opsType === _.Append) {
1552
1553
  const h = c.root ?? "default";
1553
1554
  if (n && n !== h) continue;
1554
1555
  o.splice(0, 0, c), i = f - 1;
1555
1556
  }
1556
1557
  }
1557
1558
  else if (e.until) for (let f = l; f > 0; f--) {
1558
- let c = this[v][f];
1559
- if (c.opsType === F.Append && c.root === n) {
1559
+ let c = this[p][f];
1560
+ if (c.opsType === _.Append && c.root === n) {
1560
1561
  if (e.until.charAt(0) === "/" && e.until === c.path) {
1561
1562
  i = f;
1562
1563
  break;
@@ -1568,8 +1569,8 @@ var Gs = class {
1568
1569
  }
1569
1570
  }
1570
1571
  else if (e.to) for (let f = l; f > 0; f--) {
1571
- const c = this[v][f];
1572
- if (c.opsType === F.Append) {
1572
+ const c = this[p][f];
1573
+ if (c.opsType === _.Append) {
1573
1574
  const h = c.root ?? "default";
1574
1575
  if (n && n !== h) continue;
1575
1576
  if (o.splice(0, 0, c), e.to.charAt(0) === "/" && e.to === c.path) {
@@ -1582,8 +1583,8 @@ var Gs = class {
1582
1583
  }
1583
1584
  }
1584
1585
  } else for (let f = l; f > 0; f--) {
1585
- let c = this[v][f];
1586
- if (c.opsType === F.Append) {
1586
+ let c = this[p][f];
1587
+ if (c.opsType === _.Append) {
1587
1588
  o.push(c), i = f - 1;
1588
1589
  break;
1589
1590
  }
@@ -1593,41 +1594,41 @@ var Gs = class {
1593
1594
  console.warn(f), s.resolve(f), r(!1);
1594
1595
  return;
1595
1596
  }
1596
- const u = i !== -1 ? this[v][i] : null;
1597
- if (this[Ie](o)) {
1597
+ const u = i !== -1 ? this[p][i] : null;
1598
+ if (this[Te](o)) {
1598
1599
  if (t === !1)
1599
1600
  return s.resolve(), r(!0), !0;
1600
- const f = () => (s.resolve(), r(!0), !0), c = this[v].length;
1601
- if (u && x.isSame(u, this[v][c - 1])) {
1601
+ const f = () => (s.resolve(), r(!0), !0), c = this[p].length;
1602
+ if (u && R.isSame(u, this[p][c - 1])) {
1602
1603
  if (a?.historyUpdatePolicy === "traceless") {
1603
- const h = new St(x.clone(u, !0), this[Le]());
1604
- this[S]?.replace(h), f();
1605
- } else this[S]?.goBack(u, f);
1604
+ const h = new Rt(R.clone(u, !0), this[$e]());
1605
+ this[x]?.replace(h), f();
1606
+ } else this[x]?.goBack(u, f);
1606
1607
  return;
1607
1608
  }
1608
1609
  f();
1609
1610
  }
1610
1611
  } catch (i) {
1611
- this[$](i), s.resolve(), r(!1);
1612
+ this[A](i), s.resolve(), r(!1);
1612
1613
  }
1613
1614
  });
1614
1615
  });
1615
1616
  }
1616
1617
  open(...e) {
1617
- const t = this[I](e);
1618
- return t ? (t.opsType = F.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[$]("resolve route fail", t), this);
1618
+ const t = this[M](e);
1619
+ return t ? (t.opsType = _.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1619
1620
  }
1620
1621
  close(e) {
1621
- return this[ge].post((t) => {
1622
+ return this[de].post((t) => {
1622
1623
  try {
1623
- let r = this[I](e);
1624
+ let r = this[M](e);
1624
1625
  if (!r) {
1625
1626
  t.reject("resolve route fail");
1626
1627
  return;
1627
1628
  }
1628
1629
  let s = [];
1629
- for (let i = 0; i < this[v].length; i++) {
1630
- let n = this[v][i];
1630
+ for (let i = 0; i < this[p].length; i++) {
1631
+ let n = this[p][i];
1631
1632
  if (n.root === r.root) {
1632
1633
  if (!r.path && !r.name) {
1633
1634
  s.push(n);
@@ -1646,51 +1647,51 @@ var Gs = class {
1646
1647
  t.resolve();
1647
1648
  return;
1648
1649
  }
1649
- this[Ie](s), t.resolve();
1650
+ this[Te](s), t.resolve();
1650
1651
  } catch (r) {
1651
- this[$](r), t.resolve();
1652
+ this[A](r), t.resolve();
1652
1653
  }
1653
1654
  }), this;
1654
1655
  }
1655
1656
  to(...e) {
1656
- const t = this[I](e);
1657
+ const t = this[M](e);
1657
1658
  if (!t)
1658
- return this[$]("resolve route fail", t), this;
1659
- const r = this[Oe].acquire(t);
1660
- return r == null ? (this[$]("route forbid", t), this) : (this[ge].post((s) => {
1659
+ return this[A]("resolve route fail", t), this;
1660
+ const r = this[Me].acquire(t);
1661
+ return r == null ? (this[A]("route forbid", t), this) : (this[de].post((s) => {
1661
1662
  try {
1662
- let i = this[Kt](t);
1663
- this[Lt](i), this[Tt](i), this[Mt](i), i.wait((n, o) => {
1663
+ let i = this[Et](t);
1664
+ this[At](i), this[$t](i), this[qt](i), i.wait((n, o) => {
1664
1665
  const l = n.session.to;
1665
1666
  if (n.session.updateResult && n.session.updateResult.status === "success") try {
1666
- const a = new St(x.clone(l, !0), this[Le]());
1667
- l.historyUpdatePolicy === "replace" ? this[S]?.replace(a) : l.historyUpdatePolicy === "traceless" ? this[S]?.setRouteMark(a) : this[S]?.push(a);
1667
+ const a = new Rt(R.clone(l, !0), this[$e]());
1668
+ l.historyUpdatePolicy === "replace" ? this[x]?.replace(a) : l.historyUpdatePolicy === "traceless" ? this[x]?.setRouteMark(a) : this[x]?.push(a);
1668
1669
  } catch (a) {
1669
1670
  console.error(a.message, a);
1670
1671
  }
1671
- if (Ge.clear(n.session), this[Oe].release(r), typeof t.success == "function") try {
1672
+ if (ze.clear(n.session), this[Me].release(r), typeof t.success == "function") try {
1672
1673
  Reflect.apply(t.success, {}, []);
1673
1674
  } catch (a) {
1674
1675
  console.error(a.message, a);
1675
1676
  }
1676
- this[ce] === !1 && this[ot](!0), i = null, s.resolve();
1677
+ this[ae] === !1 && this[ot](!0), i = null, s.resolve();
1677
1678
  }, (n, o) => {
1678
- this[Oe].release(r), o !== null && this[$](o, t), this[ce] === !1 && this[ot](!1), Ge.clear(n.session), i = null, s.resolve();
1679
+ this[Me].release(r), o !== null && this[A](o, t), this[ae] === !1 && this[ot](!1), ze.clear(n.session), i = null, s.resolve();
1679
1680
  });
1680
1681
  } catch (i) {
1681
- this[Oe].release(r), this[$](i, t), s.resolve();
1682
+ this[Me].release(r), this[A](i, t), s.resolve();
1682
1683
  }
1683
1684
  }), this);
1684
1685
  }
1685
1686
  back(e = 1) {
1686
- this[S]?.go(-e, !1);
1687
+ this[x]?.go(-e, !1);
1687
1688
  }
1688
- [xr](e) {
1689
+ [br](e) {
1689
1690
  return (t, r) => {
1690
1691
  if (typeof t == "boolean")
1691
1692
  e.session.redirect = !1, t ? e.resolve() : e.reject(r ?? null);
1692
1693
  else if (t) {
1693
- const s = this[I](t);
1694
+ const s = this[M](t);
1694
1695
  if (s) {
1695
1696
  const i = e.session.to;
1696
1697
  s.success = i.success, s.error = i.error, e.session.to = s, e.session.redirect = !0, e.session.routeModel = null, e.resolve();
@@ -1700,12 +1701,12 @@ var Gs = class {
1700
1701
  e.session.redirect = !1, e.resolve();
1701
1702
  };
1702
1703
  }
1703
- [Kt](e) {
1704
- const t = new Ge(e, this[v].length > 0 ? this[v][this[v].length - 1] : void 0), r = {
1704
+ [Et](e) {
1705
+ const t = new ze(e, this[p].length > 0 ? this[p][this[p].length - 1] : void 0), r = {
1705
1706
  route: e,
1706
1707
  find: null
1707
1708
  };
1708
- if (this[tt](r), r.find) {
1709
+ if (this[Ye](r), r.find) {
1709
1710
  t.routeModel = r.find, e.matched = r.find.matchedRoutes ?? [];
1710
1711
  const s = {};
1711
1712
  if (Array.isArray(r.find?.matchedRoutes)) for (let i = 0; i < r.find.matchedRoutes.length; i++) {
@@ -1714,11 +1715,11 @@ var Gs = class {
1714
1715
  }
1715
1716
  e.meta && typeof e.meta == "object" && Object.assign(s, e.meta), e.meta = s;
1716
1717
  }
1717
- return new ct(t);
1718
+ return new ft(t);
1718
1719
  }
1719
- [Lt](e) {
1720
- for (let t of this[Me]) e.post((r) => {
1721
- const s = this[xr](r);
1720
+ [At](e) {
1721
+ for (let t of this[Ke]) e.post((r) => {
1722
+ const s = this[br](r);
1722
1723
  Reflect.apply(t, {}, [
1723
1724
  r.session.to,
1724
1725
  r.session.from,
@@ -1727,9 +1728,9 @@ var Gs = class {
1727
1728
  ]);
1728
1729
  });
1729
1730
  }
1730
- [Mt](e) {
1731
+ [qt](e) {
1731
1732
  e.post((t) => {
1732
- for (let r of this[Te]) try {
1733
+ for (let r of this[je]) try {
1733
1734
  Reflect.apply(r, {}, [
1734
1735
  t.session.to,
1735
1736
  t.session.from,
@@ -1741,7 +1742,7 @@ var Gs = class {
1741
1742
  t.resolve();
1742
1743
  });
1743
1744
  }
1744
- [Sr](e, t) {
1745
+ [Rr](e, t) {
1745
1746
  for (let r of this[ke]) try {
1746
1747
  Reflect.apply(r, {}, [e, t]);
1747
1748
  } catch (s) {
@@ -1749,7 +1750,7 @@ var Gs = class {
1749
1750
  }
1750
1751
  typeof e.destroy == "function" && Reflect.apply(e.destroy, e, []);
1751
1752
  }
1752
- [Tt](e) {
1753
+ [$t](e) {
1753
1754
  e.post((t) => {
1754
1755
  const r = t.session.to;
1755
1756
  let s = t.session.routeModel;
@@ -1758,16 +1759,16 @@ var Gs = class {
1758
1759
  route: r,
1759
1760
  find: null
1760
1761
  };
1761
- if (this[tt](n)) s = n.find, t.session.routeModel = s;
1762
- else if (this[nt]) s = this[nt];
1762
+ if (this[Ye](n)) s = n.find, t.session.routeModel = s;
1763
+ else if (this[st]) s = this[st];
1763
1764
  else {
1764
1765
  t.reject(`not find route model, path:${r.path ?? r.name}`);
1765
1766
  return;
1766
1767
  }
1767
1768
  }
1768
- const i = Ge.from(t.session);
1769
- this[gr](r, s, i).then((n) => {
1770
- this[W], t.session.updateResult = n ?? {
1769
+ const i = ze.from(t.session);
1770
+ this[mr](r, s, i).then((n) => {
1771
+ this[U], t.session.updateResult = n ?? {
1771
1772
  status: "success",
1772
1773
  message: ""
1773
1774
  }, t.resolve();
@@ -1776,32 +1777,32 @@ var Gs = class {
1776
1777
  });
1777
1778
  });
1778
1779
  }
1779
- [Ie](e) {
1780
+ [Te](e) {
1780
1781
  if (e.length == 0) return !0;
1781
- let t = this[W], r = [];
1782
+ let t = this[U], r = [];
1782
1783
  for (let s of e) {
1783
- let i = this[_t](t, s);
1784
+ let i = this[Pt](t, s);
1784
1785
  i != null && r.push({
1785
1786
  ...i,
1786
1787
  route: s
1787
1788
  });
1788
1789
  }
1789
1790
  if (r.length == 0)
1790
- return this[$]("can not find view index"), !1;
1791
- for (let s of r.reverse()) this[ue](t, {
1791
+ return this[A]("can not find view index"), !1;
1792
+ for (let s of r.reverse()) this[oe](t, {
1792
1793
  x: s.x,
1793
1794
  y: s.y
1794
1795
  }, [s.route.index ?? 0], !0);
1795
1796
  return !0;
1796
1797
  }
1797
- [_t](e, t) {
1798
+ [Pt](e, t) {
1798
1799
  const r = t.root ?? "default";
1799
1800
  let s;
1800
1801
  for (let i = 0; i < e.layers.length; i++) {
1801
1802
  const n = e.layers[i];
1802
1803
  for (let o = n.views.length - 1; o >= 0; o--) {
1803
1804
  const l = n.views[o];
1804
- if (l[G] && l[at] === r)
1805
+ if (l[V] && l[at] === r)
1805
1806
  return s = {
1806
1807
  x: o,
1807
1808
  y: i
@@ -1810,15 +1811,15 @@ var Gs = class {
1810
1811
  }
1811
1812
  return null;
1812
1813
  }
1813
- [Js](e) {
1814
+ [Vs](e) {
1814
1815
  return e.layers.length > 0 && e.layers[0].views.length > 0 ? e.layers[0].views[0] : null;
1815
1816
  }
1816
- [ue](e, t, r = null, s = !0) {
1817
+ [oe](e, t, r = null, s = !0) {
1817
1818
  if (t.y >= e.layers.length || t.x >= e.layers[t.y].views.length) return;
1818
1819
  let i = e.layers[t.y].views[t.x], n = !1, o = [], l = !1, a = [...i.slots.value];
1819
1820
  for (let f = a.length - 1; f >= 0; f--) {
1820
1821
  let c = a[f];
1821
- (!r || r.indexOf(c.index) != -1) && (c.route && i[G] && (this[Ke](c.route), c.active === !0 && c.route.opsType == F.Append && (l = !0)), o.push(new O(i, c.index, t.y)), a.splice(f, 1));
1822
+ (!r || r.indexOf(c.index) != -1) && (c.route && i[V] && (this[qe](c.route), c.active === !0 && c.route.opsType == _.Append && (l = !0)), o.push(new I(i, c.index, t.y)), a.splice(f, 1));
1822
1823
  }
1823
1824
  if (a.length == 0) s ? i.slots.value = a : e.layers[t.y].views.splice(t.x, 1);
1824
1825
  else {
@@ -1834,11 +1835,11 @@ var Gs = class {
1834
1835
  let f = e.layers[u].views, c = [];
1835
1836
  for (let h = f.length - 1; (n || o.length > 0) && h >= 0; h--) {
1836
1837
  let y = f[h];
1837
- if (y[ye] && (n || O.include(o, y[ye]))) {
1838
+ if (y[fe] && (n || I.include(o, y[fe]))) {
1838
1839
  let d = y.slots.value;
1839
- for (let m = d.length - 1; m >= 0; m--) {
1840
- let b = d[m];
1841
- b.route && y[G] && this[Ke](b.route), c.push(new O(y, b.index, u)), d.splice(m, 1);
1840
+ for (let v = d.length - 1; v >= 0; v--) {
1841
+ let w = d[v];
1842
+ w.route && y[V] && this[qe](w.route), c.push(new I(y, w.index, u)), d.splice(v, 1);
1842
1843
  }
1843
1844
  e.layers[u].views.splice(h, 1);
1844
1845
  }
@@ -1847,43 +1848,43 @@ var Gs = class {
1847
1848
  }
1848
1849
  }
1849
1850
  restore(e) {
1850
- if (!e || this[D].length == 0) {
1851
- let t = this[W];
1851
+ if (!e || this[H].length == 0) {
1852
+ let t = this[U];
1852
1853
  if (t.layers.length > 0) {
1853
1854
  let r = t.layers[0].views;
1854
1855
  r.length > 0 && (r[0].slots.value = []);
1855
1856
  }
1856
- return this[v] = [], this[fe](null), Promise.resolve();
1857
+ return this[p] = [], this[le](null), Promise.resolve();
1857
1858
  } else return new Promise((t, r) => {
1858
1859
  let s = null, i = !1;
1859
1860
  for (let n = 0; n < e.length; n++) {
1860
1861
  const o = e[n];
1861
- this[ge].post((l) => {
1862
- const a = this[Kt](o);
1863
- this[Lt](a), this[Tt](a), this[Mt](a), a.wait((u, f) => {
1862
+ this[de].post((l) => {
1863
+ const a = this[Et](o);
1864
+ this[At](a), this[$t](a), this[qt](a), a.wait((u, f) => {
1864
1865
  s = u.session.to, i = u.session.redirect, l.resolve();
1865
1866
  }, (u, f) => {
1866
- s = null, f !== null && this[$](f), l.resolve();
1867
+ s = null, f !== null && this[A](f), l.resolve();
1867
1868
  });
1868
1869
  });
1869
1870
  }
1870
- this[ge].post((n) => {
1871
+ this[de].post((n) => {
1871
1872
  if (s && i === !0) {
1872
- const o = new St(x.clone(s, !0), this[Le]());
1873
- this[S]?.replace(o);
1873
+ const o = new Rt(R.clone(s, !0), this[$e]());
1874
+ this[x]?.replace(o);
1874
1875
  }
1875
1876
  n.resolve(), t();
1876
1877
  });
1877
1878
  });
1878
1879
  }
1879
- async [gr](e, t, r) {
1880
- const s = e.updateType ?? wt.Part;
1881
- await this[br](t);
1882
- const i = this[wr](t, e, r, s);
1880
+ async [mr](e, t, r) {
1881
+ const s = e.updateType ?? gt.Part;
1882
+ await this[pr](t);
1883
+ const i = this[gr](t, e, r, s);
1883
1884
  if (i.status === "error") throw Error(i.message);
1884
1885
  return i;
1885
1886
  }
1886
- [br](e) {
1887
+ [pr](e) {
1887
1888
  let t = [];
1888
1889
  for (let r = 0; r < e.layers.length; r++) {
1889
1890
  let s = e.layers[r];
@@ -1894,17 +1895,17 @@ var Gs = class {
1894
1895
  }
1895
1896
  return t.length > 0 ? Promise.all(t) : Promise.resolve();
1896
1897
  }
1897
- [wr](e, t, r, s) {
1898
+ [gr](e, t, r, s) {
1898
1899
  if (e.layers[0].models.length !== 1) return {
1899
1900
  status: "error",
1900
1901
  message: "illegal route structure(multi root node)"
1901
1902
  };
1902
1903
  const i = e.layers[0].models[0];
1903
- let n = this[W], o = zs(n), l = t.root ?? "default", a;
1904
- !o && s == wt.Part && (a = this[_t](n, t));
1904
+ let n = this[U], o = Ws(n), l = t.root ?? "default", a;
1905
+ !o && s == gt.Part && (a = this[Pt](n, t));
1905
1906
  let u, f = 0;
1906
- if (a == null || a == null) if (o || s === wt.All)
1907
- n.layers.length == 0 && (n.layers[0] = new Rt()), n.layers[0].views.length == 0 ? (u = new qe(t.root ?? "default", !0, null), n.layers[0].views = [u]) : u = n.layers[0].views[0], a = {
1907
+ if (a == null || a == null) if (o || s === gt.All)
1908
+ n.layers.length == 0 && (n.layers[0] = new wt()), n.layers[0].views.length == 0 ? (u = new Fe(t.root ?? "default", !0, null), n.layers[0].views = [u]) : u = n.layers[0].views[0], a = {
1908
1909
  x: 0,
1909
1910
  y: 0
1910
1911
  };
@@ -1922,13 +1923,13 @@ var Gs = class {
1922
1923
  let y;
1923
1924
  if (c.rootName) {
1924
1925
  let d = n.layers[h - 1];
1925
- for (let m of d.views) {
1926
- if (m[G] && m.name === c.rootName) {
1927
- y = new O(m, c.rootIndex ?? 0, h - 1);
1926
+ for (let v of d.views) {
1927
+ if (v[V] && v.name === c.rootName) {
1928
+ y = new I(v, c.rootIndex ?? 0, h - 1);
1928
1929
  break;
1929
1930
  }
1930
- if (m[z] && m[z].view.name === c.rootName && m[z].index === c.rootIndex) {
1931
- y = m[z];
1931
+ if (v[B] && v[B].view.name === c.rootName && v[B].index === c.rootIndex) {
1932
+ y = v[B];
1932
1933
  break;
1933
1934
  }
1934
1935
  }
@@ -1937,29 +1938,29 @@ var Gs = class {
1937
1938
  status: "error",
1938
1939
  message: "can not insert view(not find root node ref)"
1939
1940
  };
1940
- u = new qe(l, !0, y), n.layers[h].views.push(u), a = {
1941
+ u = new Fe(l, !0, y), n.layers[h].views.push(u), a = {
1941
1942
  x: n.layers[h].views.length - 1,
1942
1943
  y: h
1943
1944
  };
1944
1945
  }
1945
1946
  else u = n.layers[a.y].views[a.x];
1946
- if (f = a.y, u[G] = !0, t.opsType === F.Append) {
1947
- t.index = t.index ?? De.get(), t.active = !0;
1947
+ if (f = a.y, u[V] = !0, t.opsType === _.Append) {
1948
+ t.index = t.index ?? Ie.get(), t.active = !0;
1948
1949
  let c = u.slots.value;
1949
1950
  if (c.length > 0) {
1950
- let b = c[c.length - 1];
1951
- b.active = !1, b.route && (b.route.active = b.active);
1951
+ let w = c[c.length - 1];
1952
+ w.active = !1, w.route && (w.route.active = w.active);
1952
1953
  }
1953
- let h = new re(t, i, t.index, !0);
1954
+ let h = new Y(t, i, t.index, !0);
1954
1955
  u.slots.value = [...c, h];
1955
- let y = f + 1, d = 1, m = new O(u, t.index, f);
1956
- this[se](n, y, e, d, m);
1957
- } else if (t.opsType === F.Open) {
1956
+ let y = f + 1, d = 1, v = new I(u, t.index, f);
1957
+ this[ee](n, y, e, d, v);
1958
+ } else if (t.opsType === _.Open) {
1958
1959
  let c = u.slots.value;
1959
1960
  const h = t.active ?? !0;
1960
1961
  let y = !1;
1961
1962
  for (let d of c) {
1962
- if (d.route !== null && x.isSamePathForRoute(d.route, t)) {
1963
+ if (d.route !== null && R.isSamePathForRoute(d.route, t)) {
1963
1964
  if (d.active === h)
1964
1965
  return t.index = d.index, t.active = h, d.route = t, {
1965
1966
  status: "noChange",
@@ -1970,122 +1971,122 @@ var Gs = class {
1970
1971
  d.route && (d.route.active = d.active);
1971
1972
  }
1972
1973
  if (!y) {
1973
- t.index = t.index ?? De.get(), t.active = h;
1974
- let d = new re(t, i, t.index, h);
1974
+ t.index = t.index ?? Ie.get(), t.active = h;
1975
+ let d = new Y(t, i, t.index, h);
1975
1976
  c.push(d);
1976
- let m = f + 1, b = 1, g = new O(u, t.index, f);
1977
- this[se](n, m, e, b, g);
1977
+ let v = f + 1, w = 1, g = new I(u, t.index, f);
1978
+ this[ee](n, v, e, w, g);
1978
1979
  }
1979
1980
  u.slots.value = [...c];
1980
1981
  } else {
1981
1982
  let c = u.slots.value;
1982
1983
  if (c.length == 0) {
1983
- t.index = t.index ?? De.get(), t.active = !0, u.slots.value = [new re(t, i, t.index)];
1984
- let h = f + 1, y = 1, d = new O(u, t.index, f);
1985
- this[se](n, h, e, y, d);
1984
+ t.index = t.index ?? Ie.get(), t.active = !0, u.slots.value = [new Y(t, i, t.index)];
1985
+ let h = f + 1, y = 1, d = new I(u, t.index, f);
1986
+ this[ee](n, h, e, y, d);
1986
1987
  } else {
1987
1988
  let h = c[0];
1988
1989
  if (h.model !== i) {
1989
- this[ue](n, a, null, !0), t.index = t.index ?? De.get(), t.active = !0, u.slots.value = [new re(t, i, t.index)];
1990
- let y = f + 1, d = 1, m = new O(u, t.index, f);
1991
- this[se](n, y, e, d, m);
1990
+ this[oe](n, a, null, !0), t.index = t.index ?? Ie.get(), t.active = !0, u.slots.value = [new Y(t, i, t.index)];
1991
+ let y = f + 1, d = 1, v = new I(u, t.index, f);
1992
+ this[ee](n, y, e, d, v);
1992
1993
  } else {
1993
- h.route !== null && this[Ke](h.route);
1994
+ h.route !== null && this[qe](h.route);
1994
1995
  let y = !1;
1995
1996
  const d = t.active ?? !0;
1996
1997
  h.active !== d && (h.active = d, y = !0), t.active = d, t.index = h.index, h.route = t;
1997
- let m = [];
1998
- for (let L = 1; L < c.length; L++) m.push(c[L].index);
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, 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
- let L = [];
2003
- for (let M = 0; M < n.layers[g].views.length; M++) {
2004
- let q = n.layers[g].views[M];
2005
- q[ye] && O.include(b, q[ye]) && L.unshift(M);
1998
+ let v = [];
1999
+ for (let K = 1; K < c.length; K++) v.push(c[K].index);
2000
+ v.length > 0 ? this[oe](n, a, v, !0) : y && (u.slots.value = [...c]);
2001
+ let w = [new I(u, t.index, f)], g = f + 1, m = 1, $ = new I(u, t.index, f);
2002
+ for (; w.length > 0 && g < n.layers.length && m < e.layers.length; g++, m++) {
2003
+ let K = [];
2004
+ for (let j = 0; j < n.layers[g].views.length; j++) {
2005
+ let E = n.layers[g].views[j];
2006
+ E[fe] && I.include(w, E[fe]) && K.unshift(j);
2006
2007
  }
2007
- let Ce = [];
2008
- for (let M of L) {
2009
- let q = n.layers[g].views[M], oe = e.layers[p].models, ee;
2010
- for (let T = 0; T < oe.length; T++) if (q.name === oe[T].name) {
2011
- ee = oe[T];
2008
+ let Pe = [];
2009
+ for (let j of K) {
2010
+ let E = n.layers[g].views[j], se = e.layers[m].models, Q;
2011
+ for (let k = 0; k < se.length; k++) if (E.name === se[k].name) {
2012
+ Q = se[k];
2012
2013
  break;
2013
2014
  }
2014
- if (!ee) this[ue](n, {
2015
- x: M,
2015
+ if (!Q) this[oe](n, {
2016
+ x: j,
2016
2017
  y: g
2017
2018
  }, null, !1);
2018
2019
  else {
2019
- let T = q.slots.value;
2020
- if (T.length == 0) {
2021
- let Q = 0;
2022
- q.slots.value = [new re(null, ee, Q)];
2023
- let U = g + 1, V = p + 1;
2024
- this[se](n, U, e, V, K);
2020
+ let k = E.slots.value;
2021
+ if (k.length == 0) {
2022
+ let z = 0;
2023
+ E.slots.value = [new Y(null, Q, z)];
2024
+ let D = g + 1, N = m + 1;
2025
+ this[ee](n, D, e, N, $);
2025
2026
  } else {
2026
- let Q = T[0];
2027
- if (Q.model !== ee) {
2028
- this[ue](n, {
2029
- x: M,
2027
+ let z = k[0];
2028
+ if (z.model !== Q) {
2029
+ this[oe](n, {
2030
+ x: j,
2030
2031
  y: g
2031
- }, null, !0), q.slots.value = [new re(null, ee, 0)];
2032
- let U = g + 1, V = p + 1;
2033
- this[se](n, U, e, V, K);
2032
+ }, null, !0), E.slots.value = [new Y(null, Q, 0)];
2033
+ let D = g + 1, N = m + 1;
2034
+ this[ee](n, D, e, N, $);
2034
2035
  } else {
2035
- q[G] && Q.route !== null && this[Ke](Q.route);
2036
- let U = [];
2037
- for (let V = 1; V < T.length; V++) U.push(T[V].index);
2038
- U.length > 0 && this[ue](n, {
2039
- x: M,
2036
+ E[V] && z.route !== null && this[qe](z.route);
2037
+ let D = [];
2038
+ for (let N = 1; N < k.length; N++) D.push(k[N].index);
2039
+ D.length > 0 && this[oe](n, {
2040
+ x: j,
2040
2041
  y: g
2041
- }, U, !0), Ce.push(new O(q, Q.index, g));
2042
+ }, D, !0), Pe.push(new I(E, z.index, g));
2042
2043
  }
2043
2044
  }
2044
- q[G] = !1;
2045
+ E[V] = !1;
2045
2046
  }
2046
2047
  }
2047
- b = Ce;
2048
+ w = Pe;
2048
2049
  }
2049
- this[se](n, g, e, p, K);
2050
+ this[ee](n, g, e, m, $);
2050
2051
  }
2051
2052
  }
2052
2053
  }
2053
- if (u && u[z]) {
2054
- let c = u[z];
2055
- c && (t.slot = new Os(l, f, c?.view.name, c?.index ?? 0));
2054
+ if (u && u[B]) {
2055
+ let c = u[B];
2056
+ c && (t.slot = new Ls(l, f, c?.view.name, c?.index ?? 0));
2056
2057
  }
2057
- return r.to = void 0, r.routeModel = void 0, this[Rr](t, r), {
2058
+ return r.to = void 0, r.routeModel = void 0, this[wr](t, r), {
2058
2059
  status: "success",
2059
2060
  message: ""
2060
2061
  };
2061
2062
  }
2062
- [se](e, t, r, s, i) {
2063
+ [ee](e, t, r, s, i) {
2063
2064
  let n = s, o = t;
2064
2065
  for (; o < e.layers.length && n < r.layers.length; o++, n++) {
2065
2066
  let l = e.layers[o].views;
2066
2067
  for (let a of r.layers[n].models) {
2067
- let u = new qe(a.name, !1, i), f = new re(null, a);
2068
+ let u = new Fe(a.name, !1, i), f = new Y(null, a);
2068
2069
  u.slots.value = [f], l.push(u);
2069
2070
  }
2070
2071
  }
2071
2072
  for (; n < r.layers.length; n++) {
2072
- let l = new Rt();
2073
+ let l = new wt();
2073
2074
  l.views = [];
2074
2075
  for (let a of r.layers[n].models) {
2075
- let u = new qe(a.name, !1, i), f = new re(null, a);
2076
+ let u = new Fe(a.name, !1, i), f = new Y(null, a);
2076
2077
  u.slots.value = [f], l.views.push(u);
2077
2078
  }
2078
2079
  e.layers.push(l);
2079
2080
  }
2080
2081
  }
2081
- [Vr](e, t, r, s, i, n) {
2082
- if (t < 0 || t > this[W].layers.length) return null;
2083
- if (t < this[W].layers.length) {
2084
- let u = this[W].layers[t], f = null;
2082
+ [Br](e, t, r, s, i, n) {
2083
+ if (t < 0 || t > this[U].layers.length) return null;
2084
+ if (t < this[U].layers.length) {
2085
+ let u = this[U].layers[t], f = null;
2085
2086
  for (let c of u.views) {
2086
2087
  let h = !1;
2087
- if (r !== null ? (h = c.name === e && c[z]?.view === r, h && s !== -1 && (h = c[z]?.index === s)) : h = c.name === e, !!h) {
2088
- i !== null && (c[ye] = {
2088
+ if (r !== null ? (h = c.name === e && c[B]?.view === r, h && s !== -1 && (h = c[B]?.index === s)) : h = c.name === e, !!h) {
2089
+ i !== null && (c[fe] = {
2089
2090
  view: i,
2090
2091
  index: n,
2091
2092
  level: t - 1
@@ -2096,86 +2097,106 @@ var Gs = class {
2096
2097
  if (f !== null) return f;
2097
2098
  }
2098
2099
  let o = null, l = null;
2099
- i !== null && (i[G] ? o = {
2100
+ i !== null && (i[V] ? o = {
2100
2101
  view: i,
2101
2102
  index: n,
2102
2103
  level: t - 1
2103
- } : o = i[z], l = {
2104
+ } : o = i[B], l = {
2104
2105
  view: i,
2105
2106
  index: n,
2106
2107
  level: t - 1
2107
2108
  });
2108
- let a = new qe(e, !0, o);
2109
- if (a[ye] = l, t == this[W].layers.length) {
2110
- let u = new Rt();
2111
- u.views = [a], this[W].layers.push(u);
2112
- } else this[W].layers[t].views.push(a);
2109
+ let a = new Fe(e, !0, o);
2110
+ if (a[fe] = l, t == this[U].layers.length) {
2111
+ let u = new wt();
2112
+ u.views = [a], this[U].layers.push(u);
2113
+ } else this[U].layers[t].views.push(a);
2113
2114
  return a;
2114
2115
  }
2115
- }, Ve = /* @__PURE__ */ Symbol("rk"), kt = /* @__PURE__ */ Symbol("vd"), Er = /* @__PURE__ */ Symbol("rv"), It = /* @__PURE__ */ Symbol("rvi"), Pr = /* @__PURE__ */ Symbol("pv"), Ot = /* @__PURE__ */ Symbol("pvi"), Be = /* @__PURE__ */ Symbol("registerKey"), zr = /* @__PURE__ */ Symbol("lc"), Xs = class {
2116
- [Be] = /* @__PURE__ */ new Map();
2116
+ }, Ne = /* @__PURE__ */ Symbol("rk"), Kt = /* @__PURE__ */ Symbol("vd"), Sr = /* @__PURE__ */ Symbol("rv"), jt = /* @__PURE__ */ Symbol("rvi"), xr = /* @__PURE__ */ Symbol("pv"), kt = /* @__PURE__ */ Symbol("pvi"), Le = /* @__PURE__ */ Symbol("registerKey"), Tt = /* @__PURE__ */ Symbol("parentKey"), Nt = /* @__PURE__ */ Symbol("lc"), Js = class {
2117
+ [Le] = /* @__PURE__ */ new Map();
2118
+ [Tt] = null;
2119
+ get parent() {
2120
+ return this[Tt]?.deref() ?? null;
2121
+ }
2122
+ set parent(e) {
2123
+ this[Tt] = e ? new WeakRef(e) : null;
2124
+ }
2117
2125
  constructor() {
2118
2126
  }
2119
2127
  set(e, t) {
2120
- this[Be].set(e, t);
2128
+ this[Le].set(e, t);
2121
2129
  }
2122
2130
  get(e) {
2123
- return this[Be].get(e);
2131
+ return this[Le].get(e);
2124
2132
  }
2125
2133
  has(e) {
2126
- return this[Be].has(e);
2134
+ return this[Le].has(e);
2127
2135
  }
2128
2136
  delete(e) {
2129
- return this[Be].delete(e);
2137
+ return this[Le].delete(e);
2130
2138
  }
2131
- }, ne = /* @__PURE__ */ new WeakMap(), Ne = [];
2139
+ }, re = /* @__PURE__ */ new WeakMap(), He = [];
2132
2140
  function lt(e, t = !1) {
2133
- let r = e ? ne.get(e) ?? null : null;
2134
- return t && !r && (r = new Xs(), e && ne.set(e, r), Fe(() => {
2135
- e && ne.delete(e);
2136
- }), te(zr, r)), r;
2141
+ let r = e ? re.get(e) ?? null : null;
2142
+ if (t && !r) {
2143
+ r = new Js(), e && re.set(e, r), xe(() => {
2144
+ e && re.delete(e);
2145
+ });
2146
+ const s = L(Nt);
2147
+ s && (r.parent = s), Z(Nt, r);
2148
+ }
2149
+ return r;
2137
2150
  }
2138
- function dt(e) {
2139
- let t = e ? ne.get(e) ?? null : null;
2140
- return !t && _e() && (t = N(zr, null)), !t && Ne.length > 0 && (t = Ne[Ne.length - 1]), t;
2151
+ function ht(e) {
2152
+ let t = e ? re.get(e) ?? null : null;
2153
+ if (!t && Se() && (t = L(Nt, null)), !t && He.length > 0) {
2154
+ const r = He.length - 1;
2155
+ t = He[r];
2156
+ }
2157
+ return t;
2141
2158
  }
2142
- async function Qs(e, t) {
2143
- Ne.push(e);
2159
+ async function Gs(e, t) {
2160
+ He.push(e);
2144
2161
  try {
2145
2162
  return await t();
2146
2163
  } finally {
2147
- Ne.pop();
2164
+ He.pop();
2148
2165
  }
2149
2166
  }
2150
- function Vi(e) {
2167
+ function Bi(e) {
2151
2168
  const t = Kr();
2152
2169
  if (!t) return !1;
2153
- const r = dt();
2170
+ const r = ht();
2154
2171
  if (!r) return !1;
2155
- if (ne.set(t, r), Array.isArray(e))
2156
- for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && ne.set(e[s], r);
2157
- return Fe(() => {
2158
- if (ne.delete(t), Array.isArray(e))
2159
- for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && ne.delete(e[s]);
2172
+ if (re.set(t, r), Array.isArray(e))
2173
+ for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && re.set(e[s], r);
2174
+ return xe(() => {
2175
+ if (re.delete(t), Array.isArray(e))
2176
+ for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && re.delete(e[s]);
2160
2177
  }), !0;
2161
2178
  }
2162
- function Gr(e, t) {
2163
- return dt(e)?.get(t) ?? null;
2179
+ function zr(e, t) {
2180
+ const r = ht(e);
2181
+ if (!r) return null;
2182
+ let s = r;
2183
+ for (; s && !s.has(t); ) s = s.parent;
2184
+ return s?.get(t) ?? null;
2164
2185
  }
2165
- function Wi(e, t, r) {
2166
- dt(e)?.set(t, r);
2186
+ function Vi(e, t, r) {
2187
+ ht(e)?.set(t, r);
2167
2188
  }
2168
- function Ji(e, t, r) {
2169
- dt(e)?.delete(t);
2189
+ function Wi(e, t, r) {
2190
+ ht(e)?.delete(t);
2170
2191
  }
2171
- var ht = /* @__PURE__ */ Symbol("hooksKey");
2172
- function Zs(e) {
2173
- let t = e.get(ht);
2174
- t || (t = [], e.set(ht, t));
2192
+ var ct = /* @__PURE__ */ Symbol("hooksKey");
2193
+ function Xs(e) {
2194
+ let t = e.get(ct);
2195
+ t || (t = [], e.set(ct, t));
2175
2196
  }
2176
- function _r(e, t) {
2177
- const r = e.get(ht);
2178
- r != null && Qs(e, async () => {
2197
+ function Pr(e, t) {
2198
+ const r = e.get(ct);
2199
+ r != null && Gs(e, async () => {
2179
2200
  for (let s = r.length - 1; s >= 0; s--) {
2180
2201
  let i = r[s];
2181
2202
  if (i.type === t)
@@ -2187,20 +2208,20 @@ function _r(e, t) {
2187
2208
  }
2188
2209
  });
2189
2210
  }
2190
- var yt = /* @__PURE__ */ (function(e) {
2211
+ var _r = /* @__PURE__ */ (function(e) {
2191
2212
  return e.INACTIVATED = "ia", e.ACTIVATED = "a", e;
2192
- })({}), Ys = class {
2213
+ })({}), Qs = class {
2193
2214
  type;
2194
2215
  hook;
2195
2216
  constructor(e, t) {
2196
2217
  this.hook = t, this.type = e;
2197
2218
  }
2198
2219
  };
2199
- function ei(e, t, r) {
2200
- const s = new Ys(t, r);
2220
+ function Zs(e, t, r) {
2221
+ const s = new Qs(t, r);
2201
2222
  return e.push(s), !0;
2202
2223
  }
2203
- function ti(e, t, r) {
2224
+ function Ys(e, t, r) {
2204
2225
  let s = -1;
2205
2226
  for (let i = 0; i < e.length; i++) {
2206
2227
  const n = e[i];
@@ -2211,84 +2232,84 @@ function ti(e, t, r) {
2211
2232
  }
2212
2233
  return s != -1 ? (e.splice(s, 1), !0) : !1;
2213
2234
  }
2214
- function Xr(e) {
2235
+ function Jr(e) {
2215
2236
  return (t) => {
2216
- const r = Gr(null, ht);
2217
- r && (Fe(() => {
2218
- ti(r, e, t);
2219
- }), ei(r, e, t));
2237
+ const r = zr(null, ct);
2238
+ r && (xe(() => {
2239
+ Ys(r, e, t);
2240
+ }), Zs(r, e, t));
2220
2241
  };
2221
2242
  }
2222
2243
  var zi = function(e) {
2223
- cs(e), Xr(yt.ACTIVATED)(e);
2224
- }, Gi = function(e) {
2225
- hs(e), Xr(yt.INACTIVATED)(e);
2226
- }, Qr = /* @__PURE__ */ Symbol("routeKey");
2244
+ us(e), Jr("a")(e);
2245
+ }, Ji = function(e) {
2246
+ fs(e), Jr("ia")(e);
2247
+ }, Gr = /* @__PURE__ */ Symbol("routeKey");
2227
2248
  function Fr(e, t) {
2228
- e.set(Qr, t);
2249
+ e.set(Gr, t);
2229
2250
  }
2230
2251
  function Cr(e) {
2231
- const t = Gr(e ?? null, Qr);
2252
+ const t = zr(e ?? null, Gr);
2232
2253
  return typeof t == "function" ? t() : t;
2233
2254
  }
2234
- var ri = "FoxBeforeEnter", si = "FoxEnter", ii = "FoxLeave", ni = "FoxLeave", Vt = "FoxLeaveEnd";
2235
- function Zr(e, t = !1) {
2255
+ var ei = "FoxBeforeEnter", ti = "FoxEnter", ri = "FoxLeave", si = "FoxLeave", Ut = "FoxLeaveEnd";
2256
+ function Xr(e, t = !1) {
2236
2257
  let r = null;
2237
2258
  return t ? r = e.showFromClass ?? e.enterFromClass : r = e.enterFromClass, r || (r = e.transitionName, r ? t ? `${r}-show-from` : `${r}-enter-from` : null);
2238
2259
  }
2239
- function Yr(e, t = !1) {
2260
+ function Qr(e, t = !1) {
2240
2261
  let r = null;
2241
2262
  return t ? r = e.showActiveClass ?? e.enterActiveClass : r = e.enterActiveClass, r || (r = e.transitionName, r ? t ? `${r}-show-active` : `${r}-enter-active` : null);
2242
2263
  }
2243
- function oi(e, t = !1) {
2264
+ function ii(e, t = !1) {
2244
2265
  let r = null;
2245
2266
  return t ? r = e.showToClass ?? e.enterToClass : r = e.enterToClass, r || (r = e.transitionName, r ? t ? `${r}-show-to` : `${r}-enter-to` : null);
2246
2267
  }
2247
- function es(e, t = !1) {
2268
+ function Zr(e, t = !1) {
2248
2269
  let r = null;
2249
2270
  return t ? r = e.hideFromClass ?? e.leaveFromClass : r = e.leaveFromClass, r || (r = e.transitionName, r ? t ? `${r}-hide-from` : `${r}-leave-from` : null);
2250
2271
  }
2251
- function ts(e, t = !1) {
2272
+ function Yr(e, t = !1) {
2252
2273
  let r = null;
2253
2274
  return t ? r = e.hideActiveClass ?? e.leaveActiveClass : r = e.leaveActiveClass, r || (r = e.transitionName, r ? t ? `${r}-hide-active` : `${r}-leave-active` : null);
2254
2275
  }
2255
- function li(e, t = !1) {
2276
+ function ni(e, t = !1) {
2256
2277
  let r = null;
2257
2278
  return t ? r = e.hideToClass ?? e.leaveToClass : r = e.leaveToClass, r || (r = e.transitionName, r ? t ? `${r}-hide-to` : `${r}-leave-to` : null);
2258
2279
  }
2259
- function ai(e, t = !1) {
2280
+ function oi(e, t = !1) {
2260
2281
  let r = null;
2261
2282
  return t ? r = e.beforeShow ?? e.beforeEnter : r = e.beforeEnter, r;
2262
2283
  }
2263
- function ui(e, t = !1) {
2284
+ function li(e, t = !1) {
2264
2285
  let r = null;
2265
2286
  return t ? r = e.show ?? e.enter : r = e.enter, r;
2266
2287
  }
2267
- function fi(e, t = !1) {
2288
+ function ai(e, t = !1) {
2268
2289
  let r = null;
2269
2290
  return t ? r = e.afterShow ?? e.afterEnter : r = e.afterEnter, r;
2270
2291
  }
2271
- function ci(e, t = !1) {
2292
+ function ui(e, t = !1) {
2272
2293
  let r = null;
2273
2294
  return t ? r = e.showCancelled ?? e.enterCancelled : r = e.enterCancelled, r;
2274
2295
  }
2275
- function hi(e, t = !1) {
2296
+ function fi(e, t = !1) {
2276
2297
  let r = null;
2277
2298
  return t ? r = e.beforeHide ?? e.beforeLeave : r = e.beforeLeave, r;
2278
2299
  }
2279
- function yi(e, t = !1) {
2300
+ function ci(e, t = !1) {
2280
2301
  let r = null;
2281
2302
  return t ? r = e.hide ?? e.leave : r = e.leave, r;
2282
2303
  }
2283
- function di(e, t = !1) {
2304
+ function hi(e, t = !1) {
2284
2305
  let r = null;
2285
2306
  return t ? r = e.afterHide ?? e.afterLeave : r = e.afterLeave, r;
2286
2307
  }
2287
- function mi(e, t = !1) {
2308
+ function yi(e, t = !1) {
2288
2309
  let r = null;
2289
2310
  return t ? r = e.hideCancelled ?? e.leaveCancelled : r = e.leaveCancelled, r;
2290
2311
  }
2291
- function sr(e) {
2312
+ function tr(e) {
2292
2313
  let t, r = e.transitionDuration;
2293
2314
  return typeof r == "object" ? t = {
2294
2315
  enter: r.enter ?? -1,
@@ -2302,26 +2323,26 @@ function sr(e) {
2302
2323
  hide: r
2303
2324
  }), t;
2304
2325
  }
2305
- function Pe(e, t) {
2326
+ function Re(e, t) {
2306
2327
  e.classList.contains(t) || e.classList.add(t);
2307
2328
  }
2308
- function Se(e, t) {
2329
+ function we(e, t) {
2309
2330
  e.classList.remove(t);
2310
2331
  }
2311
- var pi = Ee && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2312
- function mt(e) {
2313
- pi(e);
2332
+ var di = be && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2333
+ function yt(e) {
2334
+ di(e);
2314
2335
  }
2315
- function A(e, t) {
2316
- w(e) && Reflect.apply(e, null, t);
2336
+ function C(e, t) {
2337
+ b(e) && Reflect.apply(e, null, t);
2317
2338
  }
2318
- function rs(e, t, r = -1, s, i, n) {
2339
+ function es(e, t, r = -1, s, i, n) {
2319
2340
  let o = [];
2320
2341
  const l = () => {
2321
- for (let a of o) Qt(e, a.type, a.listener);
2342
+ for (let a of o) Gt(e, a.type, a.listener);
2322
2343
  o = [];
2323
2344
  };
2324
- if (w(i)) {
2345
+ if (b(i)) {
2325
2346
  if (s !== void 0 && s >= 0) {
2326
2347
  setTimeout(() => {
2327
2348
  Reflect.apply(i, null, [
@@ -2335,7 +2356,7 @@ function rs(e, t, r = -1, s, i, n) {
2335
2356
  const a = [
2336
2357
  "animationend",
2337
2358
  "transitionend",
2338
- Vt
2359
+ Ut
2339
2360
  ], u = (f) => {
2340
2361
  (f.target || f.srcElement) === f.currentTarget && (l(), Reflect.apply(i, null, [
2341
2362
  e,
@@ -2344,13 +2365,13 @@ function rs(e, t, r = -1, s, i, n) {
2344
2365
  ]));
2345
2366
  };
2346
2367
  a.forEach((f) => {
2347
- ft(e, f, u), o.push({
2368
+ ut(e, f, u), o.push({
2348
2369
  type: f,
2349
2370
  listener: u
2350
2371
  });
2351
2372
  });
2352
2373
  }
2353
- if (w(n)) {
2374
+ if (b(n)) {
2354
2375
  const a = "animationcancel", u = (f) => {
2355
2376
  (f.target || f.srcElement) === f.currentTarget && (l(), Reflect.apply(n, null, [
2356
2377
  e,
@@ -2358,21 +2379,21 @@ function rs(e, t, r = -1, s, i, n) {
2358
2379
  r
2359
2380
  ]));
2360
2381
  };
2361
- ft(e, a, u), o.push({
2382
+ ut(e, a, u), o.push({
2362
2383
  type: a,
2363
2384
  listener: u
2364
2385
  });
2365
2386
  }
2366
2387
  }
2367
- function pt(e) {
2368
- return !Ee || e === null ? !1 : e.opsType === F.Append || e.opsType === F.Open;
2369
- }
2370
- function ss(e, t, r = {}, s, i = -1) {
2371
- if (e || pt(s)) {
2372
- const n = Zr(r, e);
2373
- n && Pe(t, n);
2374
- const o = Yr(r, e);
2375
- o && Pe(t, o), A(ai(r, e), [
2388
+ function dt(e) {
2389
+ return !be || e === null ? !1 : e.opsType === _.Append || e.opsType === _.Open;
2390
+ }
2391
+ function ts(e, t, r = {}, s, i = -1) {
2392
+ if (e || dt(s)) {
2393
+ const n = Xr(r, e);
2394
+ n && Re(t, n);
2395
+ const o = Qr(r, e);
2396
+ o && Re(t, o), C(oi(r, e), [
2376
2397
  t,
2377
2398
  e,
2378
2399
  s,
@@ -2380,32 +2401,32 @@ function ss(e, t, r = {}, s, i = -1) {
2380
2401
  ]);
2381
2402
  }
2382
2403
  }
2383
- function is(e, t, r = {}, s, i, n, o) {
2384
- if (!pt(i) && !e) {
2385
- w(o) && o(o, [t]);
2404
+ function rs(e, t, r = {}, s, i, n, o) {
2405
+ if (!dt(i) && !e) {
2406
+ b(o) && o(o, [t]);
2386
2407
  return;
2387
2408
  }
2388
- const l = Zr(r, e), a = Yr(r, e), u = oi(r, e), f = ui(r, e), c = fi(r, e), h = ci(r, e);
2409
+ const l = Xr(r, e), a = Qr(r, e), u = ii(r, e), f = li(r, e), c = ai(r, e), h = ui(r, e);
2389
2410
  if (!l && !a && !u && !f) {
2390
- w(o) && o(o, [t]);
2411
+ b(o) && o(o, [t]);
2391
2412
  return;
2392
2413
  }
2393
- mt(() => {
2394
- rs(t, i, n, s, () => {
2395
- a && Se(t, a), u && Se(t, u), w(c) && A(c, [
2414
+ yt(() => {
2415
+ es(t, i, n, s, () => {
2416
+ a && we(t, a), u && we(t, u), b(c) && C(c, [
2396
2417
  t,
2397
2418
  e,
2398
2419
  i,
2399
2420
  n
2400
- ]), w(o) && o(o, [t]);
2421
+ ]), b(o) && o(o, [t]);
2401
2422
  }, () => {
2402
- w(h) && A(h, [
2423
+ b(h) && C(h, [
2403
2424
  t,
2404
2425
  e,
2405
2426
  i,
2406
2427
  n
2407
2428
  ]);
2408
- }), l && Se(t, l), u && Pe(t, u), w(f) && A(f, [
2429
+ }), l && we(t, l), u && Re(t, u), b(f) && C(f, [
2409
2430
  t,
2410
2431
  e,
2411
2432
  i,
@@ -2413,12 +2434,12 @@ function is(e, t, r = {}, s, i, n, o) {
2413
2434
  ]);
2414
2435
  });
2415
2436
  }
2416
- function ns(e, t, r = {}, s, i = -1) {
2417
- if (e || pt(s)) {
2418
- const n = es(r, e);
2419
- n && Pe(t, n);
2420
- const o = ts(r, e);
2421
- o && Pe(t, o), A(hi(r, e), [
2437
+ function ss(e, t, r = {}, s, i = -1) {
2438
+ if (e || dt(s)) {
2439
+ const n = Zr(r, e);
2440
+ n && Re(t, n);
2441
+ const o = Yr(r, e);
2442
+ o && Re(t, o), C(fi(r, e), [
2422
2443
  t,
2423
2444
  e,
2424
2445
  s,
@@ -2426,40 +2447,40 @@ function ns(e, t, r = {}, s, i = -1) {
2426
2447
  ]);
2427
2448
  }
2428
2449
  }
2429
- function os(e, t, r = {}, s, i, n, o, l) {
2430
- if (!pt(n) && !e) {
2431
- w(l) && A(l, [t]), !e && w(i) && i();
2450
+ function is(e, t, r = {}, s, i, n, o, l) {
2451
+ if (!dt(n) && !e) {
2452
+ b(l) && C(l, [t]), !e && b(i) && i();
2432
2453
  return;
2433
2454
  }
2434
- const a = es(r, e), u = ts(r, e), f = li(r, e), c = yi(r, e), h = di(r, e), y = mi(r, e);
2455
+ const a = Zr(r, e), u = Yr(r, e), f = ni(r, e), c = ci(r, e), h = hi(r, e), y = yi(r, e);
2435
2456
  if (!a && !u && !f && !c) {
2436
- w(l) && A(l, [t]), !e && w(i) && i();
2457
+ b(l) && C(l, [t]), !e && b(i) && i();
2437
2458
  return;
2438
2459
  }
2439
- mt(() => {
2440
- rs(t, n, o, s, () => {
2460
+ yt(() => {
2461
+ es(t, n, o, s, () => {
2441
2462
  try {
2442
- u && Se(t, u), f && Se(t, f), w(h) && A(h, [
2463
+ u && we(t, u), f && we(t, f), b(h) && C(h, [
2443
2464
  t,
2444
2465
  e,
2445
2466
  n,
2446
2467
  o
2447
- ]), w(l) && A(l, [t]);
2468
+ ]), b(l) && C(l, [t]);
2448
2469
  } finally {
2449
- !e && w(i) && i();
2470
+ !e && b(i) && i();
2450
2471
  }
2451
2472
  }, () => {
2452
2473
  try {
2453
- w(y) && A(y, [
2474
+ b(y) && C(y, [
2454
2475
  t,
2455
2476
  e,
2456
2477
  n,
2457
2478
  o
2458
- ]), w(l) && A(l, [t]);
2479
+ ]), b(l) && C(l, [t]);
2459
2480
  } finally {
2460
- !e && w(i) && i();
2481
+ !e && b(i) && i();
2461
2482
  }
2462
- }), a && Se(t, a), f && Pe(t, f), w(c) && A(c, [
2483
+ }), a && we(t, a), f && Re(t, f), b(c) && C(c, [
2463
2484
  t,
2464
2485
  e,
2465
2486
  n,
@@ -2467,92 +2488,92 @@ function os(e, t, r = {}, s, i, n, o, l) {
2467
2488
  ]);
2468
2489
  });
2469
2490
  }
2470
- function Wt(e, t = {}, r, s = -1) {
2471
- const i = t.mode ?? "default", n = sr(t);
2491
+ function Bt(e, t = {}, r, s = -1) {
2492
+ const i = t.mode ?? "default", n = tr(t);
2472
2493
  return {
2473
2494
  mode: i,
2474
2495
  persisted: !1,
2475
2496
  beforeEnter: (o) => {
2476
- ss(!1, o, t, r, s);
2497
+ ts(!1, o, t, r, s);
2477
2498
  },
2478
2499
  enter: (o) => {
2479
- is(!1, o, t, n.enter, r, s);
2500
+ rs(!1, o, t, n.enter, r, s);
2480
2501
  },
2481
2502
  leave: (o, l) => {
2482
- ns(!1, o, t, r, s), os(!1, o, t, n.leave, l, r, s, () => {
2503
+ ss(!1, o, t, r, s), is(!1, o, t, n.leave, l, r, s, () => {
2483
2504
  e.transition = null;
2484
2505
  });
2485
2506
  },
2486
- clone: (o) => Wt(e, t, r, s)
2507
+ clone: (o) => Bt(e, t, r, s)
2487
2508
  };
2488
2509
  }
2489
- function ls(e) {
2510
+ function ns(e) {
2490
2511
  return e.el;
2491
2512
  }
2492
2513
  function vi(e, t = {}, r, s, i, n) {
2493
2514
  if (i === !0) {
2494
- const o = ls(e);
2515
+ const o = ns(e);
2495
2516
  if (o == null) return;
2496
- const l = sr(t);
2497
- ss(!0, o, t, r, s), is(!0, o, t, l.show, r, s, (a) => {
2498
- w(n) && A(n, [a]);
2517
+ const l = tr(t);
2518
+ ts(!0, o, t, r, s), rs(!0, o, t, l.show, r, s, (a) => {
2519
+ b(n) && C(n, [a]);
2499
2520
  });
2500
- } else w(n) && A(n, []);
2521
+ } else b(n) && C(n, []);
2501
2522
  }
2502
- function gi(e, t = {}, r, s, i, n) {
2523
+ function mi(e, t = {}, r, s, i, n) {
2503
2524
  if (i === !0) {
2504
- const o = ls(e);
2525
+ const o = ns(e);
2505
2526
  if (o == null) return;
2506
- const l = sr(t);
2507
- ns(!0, o, t, r, s), os(!0, o, t, l.hide, null, r, s, (a) => {
2508
- w(n) && A(n, [a]);
2527
+ const l = tr(t);
2528
+ ss(!0, o, t, r, s), is(!0, o, t, l.hide, null, r, s, (a) => {
2529
+ b(n) && C(n, [a]);
2509
2530
  });
2510
- } else w(n) && A(n, []);
2531
+ } else b(n) && C(n, []);
2511
2532
  }
2512
- function bi(e) {
2513
- mt(() => {
2533
+ function pi(e) {
2534
+ yt(() => {
2514
2535
  for (let t = 0; t < e.length; t++) Reflect.apply(e[t], null, []);
2515
2536
  });
2516
2537
  }
2517
- function as(e, t = {}, r, s = -1) {
2538
+ function os(e, t = {}, r, s = -1) {
2518
2539
  return {
2519
2540
  mode: t.mode ?? "default",
2520
2541
  persisted: !1,
2521
2542
  beforeEnter: (i) => {
2522
- ze(ri, {}, i);
2543
+ Ve(ei, {}, i);
2523
2544
  },
2524
2545
  enter: (i) => {
2525
- ze(si, {}, i);
2546
+ Ve(ti, {}, i);
2526
2547
  },
2527
2548
  leave: (i, n) => {
2528
- ze(ii, {}, i), mt(() => {
2549
+ Ve(ri, {}, i), yt(() => {
2529
2550
  const o = (l) => {
2530
- (l.target || l.srcElement) === l.currentTarget && (Qt(i, Vt, o), n && Reflect.apply(n, null, []), e.transition = null);
2551
+ (l.target || l.srcElement) === l.currentTarget && (Gt(i, Ut, o), n && Reflect.apply(n, null, []), e.transition = null);
2531
2552
  };
2532
- ft(i, Vt, o), ze(ni, {}, i);
2553
+ ut(i, Ut, o), Ve(si, {}, i);
2533
2554
  });
2534
2555
  },
2535
- clone: (i) => as(e, t, r, s)
2556
+ clone: (i) => os(e, t, r, s)
2536
2557
  };
2537
2558
  }
2538
- function ie(e, t, r) {
2559
+ function te(e, t, r) {
2539
2560
  return typeof e == "function" ? Reflect.apply(e, {}, [t, r]) : e;
2540
2561
  }
2541
- function Bt(e, t) {
2562
+ function Mt(e, t) {
2542
2563
  if (!e) return null;
2543
2564
  const r = e(t);
2544
2565
  return r.length === 1 ? r[0] : r;
2545
2566
  }
2546
- function be(e, t) {
2567
+ function ve(e, t) {
2547
2568
  return typeof t == "function" ? t(e) : e;
2548
2569
  }
2549
- var wi = class {
2570
+ var gi = class {
2550
2571
  node;
2551
2572
  state;
2552
2573
  constructor(e, t) {
2553
2574
  this.node = e, this.state = t;
2554
2575
  }
2555
- }, Jt = jr({
2576
+ }, Vt = $r({
2556
2577
  name: "RouterView",
2557
2578
  inheritAttrs: !1,
2558
2579
  props: {
@@ -2742,34 +2763,34 @@ var wi = class {
2742
2763
  }
2743
2764
  },
2744
2765
  setup(e, t) {
2745
- const r = Kr(), s = e.multi === !0, i = N(Ve, null), n = N(kt, 0), o = N(Er, null), l = N(It, -1);
2766
+ const r = Kr(), s = e.multi === !0, i = L(Ne, null), n = L(Kt, 0), o = L(Sr, null), l = L(jt, -1);
2746
2767
  let a = null, u = e.modelSlot ?? null;
2747
2768
  if (u) {
2748
- if (te(kt, n + 1), te(It, u.index), te(Ot, u.index), !u.route) {
2769
+ if (Z(Kt, n + 1), Z(jt, u.index), Z(kt, u.index), !u.route) {
2749
2770
  console.warn("[Fox]child view render error, route not exist");
2750
2771
  return;
2751
2772
  }
2752
2773
  const c = lt(u, !0);
2753
- c && (Zs(c), Fr(c, () => u?.route ?? null));
2774
+ c && (Xs(c), Fr(c, () => u?.route ?? null));
2754
2775
  } else {
2755
2776
  if (i == null) {
2756
2777
  console.error("[Fox]router is not been injected");
2757
2778
  return;
2758
2779
  }
2759
- const c = e.name, h = N(Pr, null), y = N(Ot, 0);
2760
- if (a = i[Vr](c, n, o, l, h, y), a === null) return;
2761
- te(Pr, a);
2762
- const d = a[G] === !0;
2763
- if (d && te(Er, a), !s && (te(It, -1), te(kt, n + 1), te(Ot, -1), d && r)) {
2764
- const m = lt(r, !0);
2765
- m && Fr(m, () => {
2766
- const b = a?.slots.value ?? [];
2767
- return b.length > 0 ? b[0].route : null;
2780
+ const c = e.name, h = L(xr, null), y = L(kt, 0);
2781
+ if (a = i[Br](c, n, o, l, h, y), a === null) return;
2782
+ Z(xr, a);
2783
+ const d = a[V] === !0;
2784
+ if (d && Z(Sr, a), !s && (Z(jt, -1), Z(Kt, n + 1), Z(kt, -1), d && r)) {
2785
+ const v = lt(r, !0);
2786
+ v && Fr(v, () => {
2787
+ const w = a?.slots.value ?? [];
2788
+ return w.length > 0 ? w[0].route : null;
2768
2789
  });
2769
2790
  }
2770
2791
  }
2771
2792
  const f = { value: /* @__PURE__ */ new Map() };
2772
- return Fe(() => {
2793
+ return xe(() => {
2773
2794
  if (f.value && f.value.clear(), u) {
2774
2795
  const c = u;
2775
2796
  c.route = null, c.model = null, c.instance = null, u = null;
@@ -2778,63 +2799,63 @@ var wi = class {
2778
2799
  if (s) {
2779
2800
  const c = /* @__PURE__ */ new Map(), h = [], y = a?.slots.value, d = [];
2780
2801
  for (let g = 0; g < y.length; g++) {
2781
- const p = y[g], K = `${e.name}_${p.index}`, L = ie(e.transition, p.route, g) ?? !0, Ce = { modelSlot: p };
2782
- let M;
2783
- t.slots.default ? M = he(Jt, Ce, { default: t.slots.default }) : M = he(Jt, Ce);
2784
- const q = {}, oe = ie(e.viewClass, p.route, g);
2785
- typeof oe == "string" && oe.length > 0 && (q[oe] = !0);
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
- const ir = Q.node;
2789
- p.active ? d.unshift(() => {
2802
+ const m = y[g], $ = `${e.name}_${m.index}`, K = te(e.transition, m.route, g) ?? !0, Pe = { modelSlot: m };
2803
+ let j;
2804
+ t.slots.default ? j = ue(Vt, Pe, { default: t.slots.default }) : j = ue(Vt, Pe);
2805
+ const E = {}, se = te(e.viewClass, m.route, g);
2806
+ typeof se == "string" && se.length > 0 && (E[se] = !0);
2807
+ const Q = te(e.viewActiveClass, m.route, g), k = te(e.viewInactiveClass, m.route, g), z = f.value.get($);
2808
+ if (typeof Q == "string" && Q.length > 0 && (E[Q] = m.active), typeof k == "string" && k.length > 0 && (E[k] = !m.active), z && m.active !== z.state) {
2809
+ const rr = z.node;
2810
+ m.active ? d.unshift(() => {
2790
2811
  const vt = () => {
2791
- const Ae = lt(p);
2792
- Ae != null && _r(Ae, yt.ACTIVATED);
2812
+ const _e = lt(m);
2813
+ _e != null && Pr(_e, _r.ACTIVATED);
2793
2814
  };
2794
- vi(ir, e, p.route, g, L, vt);
2815
+ vi(rr, e, m.route, g, K, vt);
2795
2816
  }) : d.push(() => {
2796
2817
  const vt = () => {
2797
- const Ae = lt(p);
2798
- Ae != null && _r(Ae, yt.INACTIVATED);
2818
+ const _e = lt(m);
2819
+ _e != null && Pr(_e, _r.INACTIVATED);
2799
2820
  };
2800
- gi(ir, e, p.route, g, L, vt);
2821
+ mi(rr, e, m.route, g, K, vt);
2801
2822
  });
2802
2823
  }
2803
- const U = {
2804
- class: q,
2805
- key: K
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);
2824
+ const D = {
2825
+ class: E,
2826
+ key: $
2827
+ }, N = te(e.viewTagProps, m.route, g);
2828
+ N !== null && typeof N == "object" && q(!0, D, ve(N, i?.propsFilter)), m.route?.viewTagAttrs && typeof m.route?.viewTagAttrs == "object" && q(!0, D, ve(m.route.viewTagAttrs, i?.propsFilter));
2829
+ const he = ue(te(e.viewTag, m.route, g), D, { default: () => [j] });
2830
+ c.set($, new gi(he, m.active)), f.value.delete($), K === !0 ? he.transition = Bt(he, e, m.route, g) : K === "custom" && (he.transition = os(he, e, m.route, g)), h.push(he);
2810
2831
  }
2811
- f.value = c, bi(d);
2812
- const m = ie(e.tag, null, -1), b = {};
2813
- return Object.assign(b, t.attrs), he(m, b, { default: () => h });
2832
+ f.value = c, pi(d);
2833
+ const v = te(e.tag, null, -1), w = {};
2834
+ return Object.assign(w, t.attrs), ue(v, w, { default: () => h });
2814
2835
  } else if (u != null) {
2815
2836
  const c = u.model, h = {};
2816
- c.props && (typeof c.props == "object" ? j(!1, h, be(c.props, i?.propsFilter)) : c.props === !0 && typeof u.route?.params == "object" && j(!1, h, be(u.route.params, i?.propsFilter)));
2817
- const y = he(c.component, h);
2818
- return Bt(t.slots.default, {
2837
+ c.props && (typeof c.props == "object" ? q(!1, h, ve(c.props, i?.propsFilter)) : c.props === !0 && typeof u.route?.params == "object" && q(!1, h, ve(u.route.params, i?.propsFilter)));
2838
+ const y = ue(c.component, h);
2839
+ return Mt(t.slots.default, {
2819
2840
  Component: y,
2820
2841
  route: u.route
2821
2842
  }) ?? y;
2822
2843
  } else {
2823
2844
  const c = a?.slots.value ?? [];
2824
2845
  if (c.length > 0) {
2825
- const h = c[0], y = h.route, d = h.model, m = {};
2826
- d.props && (typeof d.props == "object" ? j(!1, m, be(d.props, i?.propsFilter)) : d.props === !0 && typeof y?.params == "object" && j(!1, m, be(y.params, i?.propsFilter)));
2827
- const b = he(d.component, m);
2828
- return (ie(e.transition, y, -1) ?? !0) && (b.transition = Wt(b, e, y, -1)), Bt(t.slots.default, {
2829
- Component: b,
2846
+ const h = c[0], y = h.route, d = h.model, v = {};
2847
+ d.props && (typeof d.props == "object" ? q(!1, v, ve(d.props, i?.propsFilter)) : d.props === !0 && typeof y?.params == "object" && q(!1, v, ve(y.params, i?.propsFilter)));
2848
+ const w = ue(d.component, v);
2849
+ return (te(e.transition, y, -1) ?? !0) && (w.transition = Bt(w, e, y, -1)), Mt(t.slots.default, {
2850
+ Component: w,
2830
2851
  route: y
2831
- }) ?? b;
2832
- } else return Bt(t.slots.fallback, {});
2852
+ }) ?? w;
2853
+ } else return Mt(t.slots.fallback, {});
2833
2854
  }
2834
2855
  };
2835
2856
  }
2836
2857
  });
2837
- function Ri(e) {
2858
+ function wi(e) {
2838
2859
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button != null && e.button !== 0)) {
2839
2860
  if (e.currentTarget && e.currentTarget.getAttribute) {
2840
2861
  const t = e.currentTarget.getAttribute("target");
@@ -2843,13 +2864,13 @@ function Ri(e) {
2843
2864
  return e.preventDefault && e.preventDefault(), !0;
2844
2865
  }
2845
2866
  }
2846
- function xi(e, t) {
2867
+ function bi(e, t) {
2847
2868
  return e == null || t == null ? !1 : !!(e.path && t.path && t.path.startsWith(e.path) || e.name && e.name == t.name);
2848
2869
  }
2849
- function we(e, t) {
2870
+ function me(e, t) {
2850
2871
  return typeof e == "function" ? Reflect.apply(e, {}, [t]) : e;
2851
2872
  }
2852
- var Si = jr({
2873
+ var Ri = $r({
2853
2874
  name: "RouterLink",
2854
2875
  inheritAttrs: !1,
2855
2876
  props: {
@@ -2896,23 +2917,23 @@ var Si = jr({
2896
2917
  }
2897
2918
  },
2898
2919
  setup(e, t) {
2899
- const r = N(Ve, null);
2920
+ const r = L(Ne, null);
2900
2921
  return () => {
2901
- let s = we(e.to, null), i = we(e.tag, s);
2922
+ let s = me(e.to, null), i = me(e.tag, s);
2902
2923
  if (i == null) {
2903
2924
  console.warn("[Fox]can not resolve link tag");
2904
2925
  return;
2905
2926
  }
2906
2927
  let n = null, o = null;
2907
- r !== null && (n = r[I](s), e.root && (n.root = e.root), o = r.currentRoute.value);
2908
- let l = {}, a = we(e.activeClass, n);
2909
- if (typeof a == "string" && a.length > 0 && (l[a] = xi(n, o)), we(e.exact, n) === !0) {
2910
- let c = we(e.exactActiveClass, n);
2911
- typeof c == "string" && c.length > 0 && (l[c] = x.isSamePathForRoute(n, o));
2928
+ r !== null && (n = r[M](s), e.root && (n.root = e.root), o = r.currentRoute.value);
2929
+ let l = {}, a = me(e.activeClass, n);
2930
+ if (typeof a == "string" && a.length > 0 && (l[a] = bi(n, o)), me(e.exact, n) === !0) {
2931
+ let c = me(e.exactActiveClass, n);
2932
+ typeof c == "string" && c.length > 0 && (l[c] = R.isSamePathForRoute(n, o));
2912
2933
  }
2913
2934
  let u = { class: l };
2914
- (i === "a" || i === "A") && (u.href = n?.path ?? n?.name ?? "#"), j(!0, u, t.attrs);
2915
- const f = we(e.event, n);
2935
+ (i === "a" || i === "A") && (u.href = n?.path ?? n?.name ?? "#"), q(!0, u, t.attrs);
2936
+ const f = me(e.event, n);
2916
2937
  if (typeof f == "string") {
2917
2938
  const c = (h) => {
2918
2939
  if (r == null) {
@@ -2923,35 +2944,33 @@ var Si = jr({
2923
2944
  console.warn("[Fox]route is not been resolved");
2924
2945
  return;
2925
2946
  }
2926
- Ri(h) && r.to(n);
2947
+ wi(h) && r.to(n);
2927
2948
  };
2928
2949
  u[f] = c;
2929
2950
  }
2930
- return he(i, u, t.slots);
2951
+ return ue(i, u, t.slots);
2931
2952
  };
2932
2953
  }
2933
- }), ut = /* @__PURE__ */ (function(e) {
2934
- return e[e.limitless = 0] = "limitless", e[e.once = 1] = "once", e;
2935
- })(ut || {}), Re = /* @__PURE__ */ Symbol("registerKey"), Ei = class {
2954
+ }), pe = /* @__PURE__ */ Symbol("registerKey"), Si = class {
2936
2955
  policy;
2937
2956
  callback;
2938
2957
  constructor(e, t) {
2939
2958
  this.callback = e, this.policy = t;
2940
2959
  }
2941
- }, Ar = class {
2942
- [Re] = /* @__PURE__ */ new Map();
2960
+ }, Er = class {
2961
+ [pe] = /* @__PURE__ */ new Map();
2943
2962
  constructor() {
2944
2963
  }
2945
2964
  on(e, t, r = !1) {
2946
- let s = this[Re].get(e);
2947
- s || (s = new Array(), this[Re].set(e, s));
2948
- let i = new Ei(t, r === !0 ? ut.once : ut.limitless);
2965
+ let s = this[pe].get(e);
2966
+ s || (s = new Array(), this[pe].set(e, s));
2967
+ let i = new Si(t, r === !0 ? 1 : 0);
2949
2968
  return s.push(i), this;
2950
2969
  }
2951
2970
  off(e, t) {
2952
2971
  if (!t)
2953
- return this[Re].delete(e), this;
2954
- let r = this[Re].get(e);
2972
+ return this[pe].delete(e), this;
2973
+ let r = this[pe].get(e);
2955
2974
  if (r) {
2956
2975
  for (let s = 0; s < r.length; s++) if (r[s].callback === t) {
2957
2976
  r.splice(s, 1);
@@ -2982,12 +3001,12 @@ var Si = jr({
2982
3001
  return this;
2983
3002
  }
2984
3003
  emit(e, ...t) {
2985
- let r = this[Re].get(e);
3004
+ let r = this[pe].get(e);
2986
3005
  if (!r) return this;
2987
3006
  for (let s = 0; s < r.length; ) {
2988
3007
  let i = r[s];
2989
- if (i.policy == ut.once ? r.splice(s, 1) : s++, typeof i.callback == "function") try {
2990
- He(() => {
3008
+ if (i.policy == 1 ? r.splice(s, 1) : s++, typeof i.callback == "function") try {
3009
+ Oe(() => {
2991
3010
  Reflect.apply(i.callback, {}, t);
2992
3011
  });
2993
3012
  } catch (n) {
@@ -2999,15 +3018,15 @@ var Si = jr({
2999
3018
  trigger(e, ...t) {
3000
3019
  return Reflect.apply(this.emit, this, [e, ...t]);
3001
3020
  }
3002
- }, Pi = "FoxRouterView", _i = "FoxRouterLink", H = /* @__PURE__ */ (function(e) {
3021
+ }, xi = "FoxRouterView", Pi = "FoxRouterLink", X = /* @__PURE__ */ (function(e) {
3003
3022
  return e[e.Loading = 0] = "Loading", e[e.Loaded = 1] = "Loaded", e[e.Defining = 2] = "Defining", e[e.Defined = 3] = "Defined", e;
3004
3023
  })({});
3005
- function Fi(e) {
3006
- return e == H.Loaded || e === H.Defined;
3024
+ function _i(e) {
3025
+ return e == 1 || e === 3;
3007
3026
  }
3008
- var qr = /* @__PURE__ */ (function(e) {
3027
+ var Ar = /* @__PURE__ */ (function(e) {
3009
3028
  return e[e.normal = 0] = "normal", e[e.factory = 1] = "factory", e;
3010
- })({}), Ci = class {
3029
+ })({}), Fi = class {
3011
3030
  register = /* @__PURE__ */ new Map();
3012
3031
  regExpRegisters = [];
3013
3032
  constructor() {
@@ -3045,16 +3064,16 @@ var qr = /* @__PURE__ */ (function(e) {
3045
3064
  clear() {
3046
3065
  this.register.clear(), this.regExpRegisters = [];
3047
3066
  }
3048
- }, Dt = [
3067
+ }, Lt = [
3049
3068
  "require",
3050
3069
  "exports",
3051
3070
  "module"
3052
3071
  ];
3053
- async function Ai(e) {
3072
+ async function Ci(e) {
3054
3073
  return await new Function("url", "return import(url)")(e);
3055
3074
  }
3056
- var $r = class {
3057
- moduleManager = new Ci();
3075
+ var qr = class {
3076
+ moduleManager = new Fi();
3058
3077
  _alias = {};
3059
3078
  set alias(e) {
3060
3079
  this._alias = e;
@@ -3084,7 +3103,7 @@ var $r = class {
3084
3103
  return this._query;
3085
3104
  }
3086
3105
  get head() {
3087
- return Je().head;
3106
+ return Be().head;
3088
3107
  }
3089
3108
  _cssMountPoint = null;
3090
3109
  set cssMountPoint(e) {
@@ -3104,19 +3123,19 @@ var $r = class {
3104
3123
  const r = {
3105
3124
  id: typeof e == "string" ? e : e?.source,
3106
3125
  src: "",
3107
- status: H.Loaded
3126
+ status: X.Loaded
3108
3127
  };
3109
- typeof t == "function" ? (r.exports = t, r.type = qr.factory) : r.exports = t, this.moduleManager.set(e, r);
3128
+ typeof t == "function" ? (r.exports = t, r.type = Ar.factory) : r.exports = t, this.moduleManager.set(e, r);
3110
3129
  }
3111
3130
  removeModule(e) {
3112
3131
  this.moduleManager.remove(e);
3113
3132
  }
3114
3133
  getModuleExports(e) {
3115
3134
  const t = this.moduleManager.get(e);
3116
- return t && Fi(t.status) ? t.type === qr.factory && typeof t.exports == "function" ? t.exports() : t.exports : null;
3135
+ return t && _i(t.status) ? t.type === Ar.factory && typeof t.exports == "function" ? t.exports() : t.exports : null;
3117
3136
  }
3118
3137
  exposeRequire(e = "__foxRequire", t, r) {
3119
- const s = t ?? C();
3138
+ const s = t ?? F();
3120
3139
  return s && typeof s == "object" ? (s[e] = (i) => {
3121
3140
  const n = this.getModuleExports(i);
3122
3141
  return r && !n && console.error(`[Fox] module:${i}, not found!`), n;
@@ -3124,7 +3143,7 @@ var $r = class {
3124
3143
  }
3125
3144
  resloveResource(e) {
3126
3145
  if (typeof e == "string") {
3127
- if (Dt.includes(e)) return e;
3146
+ if (Lt.includes(e)) return e;
3128
3147
  if (e = this.alias?.[e] ?? e, typeof this.resourceParser == "function") {
3129
3148
  const r = this.resloveResource(e);
3130
3149
  if (!r) return r;
@@ -3166,7 +3185,7 @@ var $r = class {
3166
3185
  const u = this.resloveResource(e[a]);
3167
3186
  s.push(u);
3168
3187
  }
3169
- const o = new qi(s.length, (a, u) => {
3188
+ const o = new Ei(s.length, (a, u) => {
3170
3189
  if (o.isOK()) try {
3171
3190
  typeof n == "function" && Reflect.apply(n, {}, u), t(u);
3172
3191
  } catch (f) {
@@ -3177,9 +3196,9 @@ var $r = class {
3177
3196
  } catch (f) {
3178
3197
  console.error(f), r(f);
3179
3198
  }
3180
- }), l = new ct();
3199
+ }), l = new ft();
3181
3200
  for (let a = 0; a < s.length; a++) {
3182
- const u = new $i(a, s[a], o);
3201
+ const u = new Ai(a, s[a], o);
3183
3202
  this.mount(l, u);
3184
3203
  }
3185
3204
  return this;
@@ -3220,7 +3239,7 @@ var $r = class {
3220
3239
  return;
3221
3240
  }
3222
3241
  if (typeof t.resource == "string") {
3223
- if (Dt.includes(t.resource)) {
3242
+ if (Lt.includes(t.resource)) {
3224
3243
  e.post((i) => {
3225
3244
  t.progress.work(!0, t.index, t.resource), i.resolve();
3226
3245
  });
@@ -3252,7 +3271,7 @@ var $r = class {
3252
3271
  t.progress.work(!0, t.index, n), s.resolve();
3253
3272
  return;
3254
3273
  }
3255
- const o = Je(), l = o.createElement("link"), a = "onload" in l;
3274
+ const o = Be(), l = o.createElement("link"), a = "onload" in l;
3256
3275
  a && (l.onload = () => {
3257
3276
  l.onload = null, l.onerror = null, t.progress.work(!0, t.index, i.path), s.resolve();
3258
3277
  }, l.onerror = () => {
@@ -3277,13 +3296,13 @@ var $r = class {
3277
3296
  const o = {
3278
3297
  id: i.path,
3279
3298
  src: i.path,
3280
- status: H.Loading
3299
+ status: X.Loading
3281
3300
  };
3282
3301
  this.moduleManager.set(i.path, o);
3283
- const l = Je().createElement("script");
3302
+ const l = Be().createElement("script");
3284
3303
  if ("onload" in l)
3285
3304
  l.onload = () => {
3286
- l.onload = null, l.onerror = null, o.status === H.Loading && (o.status = H.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve();
3305
+ l.onload = null, l.onerror = null, o.status === X.Loading && (o.status = X.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve();
3287
3306
  }, l.onerror = () => {
3288
3307
  try {
3289
3308
  r.removeChild(l);
@@ -3295,12 +3314,12 @@ var $r = class {
3295
3314
  else {
3296
3315
  const h = l;
3297
3316
  h.onreadystatechange = () => {
3298
- /loaded|complete/.test(h.readyState) && (h.onreadystatechange = null, o.status == H.Loading && (o.status = H.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve());
3317
+ /loaded|complete/.test(h.readyState) && (h.onreadystatechange = null, o.status == X.Loading && (o.status = X.Loaded, t.progress.work(!0, t.index, i.path)), s.resolve());
3299
3318
  };
3300
3319
  }
3301
3320
  const a = this.constructResourceUri(i.path);
3302
3321
  l.defer = !0, l.src = a;
3303
- const u = C(), f = this.createRequireLoad();
3322
+ const u = F(), f = this.createRequireLoad();
3304
3323
  u.__require = u.__require ?? u.require, u.require = f;
3305
3324
  const c = this.createDefine(o, f, t);
3306
3325
  u.__define = u.__define ?? u.define, u.define = c, typeof t.progress.finalCallback != "function" && (t.progress.finalCallback = function() {
@@ -3316,15 +3335,15 @@ var $r = class {
3316
3335
  return;
3317
3336
  }
3318
3337
  try {
3319
- let n = await Ai(s.path);
3320
- if (Yt(n) && (n = n.default ?? n), We(n)) {
3338
+ let n = await Ci(s.path);
3339
+ if (Qt(n) && (n = n.default ?? n), Ue(n)) {
3321
3340
  t.progress.work(!1, t.index, n), r.resolve();
3322
3341
  return;
3323
3342
  }
3324
3343
  const o = {
3325
3344
  id: s.path,
3326
3345
  src: s.path,
3327
- status: H.Loaded,
3346
+ status: X.Loaded,
3328
3347
  exports: n
3329
3348
  };
3330
3349
  this.moduleManager.set(s.path, o), t.progress.work(!0, t.index, n), r.resolve();
@@ -3336,7 +3355,7 @@ var $r = class {
3336
3355
  unmount(e) {
3337
3356
  let t = "", r = "";
3338
3357
  typeof e == "string" ? (this.moduleManager.remove(e), r = this.getResourcePathSuffix(e), t = e) : (this.moduleManager.remove(e.path), r = e.type === "css" ? "css" : e.format ?? "", t = e.path);
3339
- const s = Je();
3358
+ const s = Be();
3340
3359
  if (r === "umd") {
3341
3360
  let i = s.getElementById(t);
3342
3361
  i || (i = s.querySelector(`script[src="${t}"]`)), i && i.remove();
@@ -3359,7 +3378,7 @@ var $r = class {
3359
3378
  }
3360
3379
  createDefine(e, t, r) {
3361
3380
  const s = this, i = function(...n) {
3362
- e.status = H.Defining;
3381
+ e.status = X.Defining;
3363
3382
  let o, l, a, u = n.length;
3364
3383
  if (u === 1 ? (a = n[0], o = void 0) : u === 2 ? (a = n[1], Array.isArray(n[0]) ? (l = s.trimEmptyElement(n[0]), o = void 0) : l = void 0) : (o = n[0], l = s.trimEmptyElement(n[1]), a = n[2]), o && (e.id = o, typeof s._alias == "object" && (s._alias[o] = e.src)), l && l.length > 0) s.ensure(l, (...f) => {
3365
3384
  try {
@@ -3368,7 +3387,7 @@ var $r = class {
3368
3387
  const h = Reflect.apply(a, e, c);
3369
3388
  h && (typeof h == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, h)) : typeof h == "function" && (e.exports = h));
3370
3389
  } else e.exports = a;
3371
- e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3390
+ e.status = X.Defined, r.progress.work(!0, r.index, e.exports);
3372
3391
  } catch (c) {
3373
3392
  console.error(c), r.progress.work(!1, r.index, []);
3374
3393
  }
@@ -3378,7 +3397,7 @@ var $r = class {
3378
3397
  const f = Reflect.apply(a, e, []);
3379
3398
  f && (typeof f == "object" ? (e.exports = e.exports ?? {}, Object.assign(e.exports, f)) : typeof f == "function" && (e.exports = f));
3380
3399
  } else e.exports = a;
3381
- e.status = H.Defined, r.progress.work(!0, r.index, e.exports);
3400
+ e.status = X.Defined, r.progress.work(!0, r.index, e.exports);
3382
3401
  }
3383
3402
  };
3384
3403
  return i.amd = !0, i;
@@ -3388,7 +3407,7 @@ var $r = class {
3388
3407
  }
3389
3408
  constructResourceUri(e) {
3390
3409
  try {
3391
- if (Dt.includes(e) || !this.query) return e;
3410
+ if (Lt.includes(e) || !this.query) return e;
3392
3411
  const t = this.createSearch(this.query);
3393
3412
  return e.indexOf("?") == -1 ? e += `?${t}` : t.length > 0 && (e += `&${t}`), e;
3394
3413
  } catch (t) {
@@ -3412,7 +3431,7 @@ var $r = class {
3412
3431
  let r = e.lastIndexOf(".", t);
3413
3432
  return r == -1 ? "" : e.substring(r + 1, t);
3414
3433
  }
3415
- }, qi = class {
3434
+ }, Ei = class {
3416
3435
  finalCallback;
3417
3436
  callback;
3418
3437
  values;
@@ -3434,16 +3453,16 @@ var $r = class {
3434
3453
  isOK() {
3435
3454
  return this.status;
3436
3455
  }
3437
- }, $i = class {
3456
+ }, Ai = class {
3438
3457
  index;
3439
3458
  resource;
3440
3459
  progress;
3441
3460
  constructor(e, t, r) {
3442
3461
  this.index = e, this.resource = t, this.progress = r;
3443
3462
  }
3444
- }, zt = /* @__PURE__ */ Symbol("fk"), Gt = /* @__PURE__ */ Symbol("fbk"), Xt = /* @__PURE__ */ Symbol("fepk");
3445
- function Xi(e = {}) {
3446
- const t = new Gs(e), r = new fr(), s = new Ar(), i = new $r(), n = {
3463
+ }, Wt = /* @__PURE__ */ Symbol("fk"), zt = /* @__PURE__ */ Symbol("fbk"), Jt = /* @__PURE__ */ Symbol("fepk");
3464
+ function Gi(e = {}) {
3465
+ const t = new zs(e), r = new ar(), s = new Er(), i = new qr(), n = {
3447
3466
  get router() {
3448
3467
  return t;
3449
3468
  },
@@ -3451,28 +3470,28 @@ function Xi(e = {}) {
3451
3470
  return r;
3452
3471
  },
3453
3472
  get Bus() {
3454
- return fr;
3473
+ return ar;
3455
3474
  },
3456
3475
  get EventProxy() {
3457
- return Ar;
3476
+ return Er;
3458
3477
  },
3459
3478
  get eventproxy() {
3460
3479
  return s;
3461
3480
  },
3462
3481
  get EventChain() {
3463
- return ct;
3482
+ return ft;
3464
3483
  },
3465
3484
  get Require() {
3466
- return $r;
3485
+ return qr;
3467
3486
  },
3468
3487
  get require() {
3469
3488
  return i;
3470
3489
  },
3471
3490
  get isESModule() {
3472
- return Yt;
3491
+ return Qt;
3473
3492
  },
3474
3493
  install(o, l = {}) {
3475
- o.provide(Ve, t), o.provide(zt, n), o.provide(Gt, r), o.provide(Xt, s), l.install !== !1 && (o.component(Pi, Jt), o.component(_i, Si)), l.optionsApi !== !1 && (Reflect.defineProperty(o.config.globalProperties, "$fox", { get() {
3494
+ o.provide(Ne, t), o.provide(Wt, n), o.provide(zt, r), o.provide(Jt, s), l.install !== !1 && (o.component(xi, Vt), o.component(Pi, Ri)), l.optionsApi !== !1 && (Reflect.defineProperty(o.config.globalProperties, "$fox", { get() {
3476
3495
  return n;
3477
3496
  } }), Reflect.defineProperty(o.config.globalProperties, "$router", { get() {
3478
3497
  return t;
@@ -3498,35 +3517,35 @@ function Xi(e = {}) {
3498
3517
  let f = s;
3499
3518
  Reflect.apply(f.trigger, f, [a, ...u]);
3500
3519
  }, o.mixin({ computed: { $route() {
3501
- return ji(this);
3520
+ return qi(this);
3502
3521
  } } })), t.init();
3503
3522
  }
3504
3523
  };
3505
3524
  return n;
3506
3525
  }
3507
- function us(e) {
3508
- return _e() ? N(Ve, null) : e ? e.$?.appContext?.provides?.[Ve] ?? null : null;
3526
+ function ls(e) {
3527
+ return Se() ? L(Ne, null) : e ? e.$?.appContext?.provides?.[Ne] ?? null : null;
3509
3528
  }
3510
- function ji(e) {
3529
+ function qi(e) {
3511
3530
  let t = Cr(e);
3512
- if (!t && e && !_e()) {
3531
+ if (!t && e && !Se()) {
3513
3532
  let r = e;
3514
3533
  for (r = r.$parent; r && (t = Cr(r), !t); )
3515
3534
  r = r.$parent;
3516
3535
  }
3517
3536
  return t;
3518
3537
  }
3538
+ function Xi(e) {
3539
+ return Se() ? L(Wt, null) : e ? e.$?.appContext?.provides?.[Wt] ?? null : null;
3540
+ }
3519
3541
  function Qi(e) {
3520
- return _e() ? N(zt, null) : e ? e.$?.appContext?.provides?.[zt] ?? null : null;
3542
+ return Se() ? L(zt, null) : e ? e.$?.appContext?.provides?.[zt] ?? null : null;
3521
3543
  }
3522
3544
  function Zi(e) {
3523
- return _e() ? N(Gt, null) : e ? e.$?.appContext?.provides?.[Gt] ?? null : null;
3545
+ return Se() ? L(Jt, null) : e ? e.$?.appContext?.provides?.[Jt] ?? null : null;
3524
3546
  }
3525
3547
  function Yi(e) {
3526
- return _e() ? N(Xt, null) : e ? e.$?.appContext?.provides?.[Xt] ?? null : null;
3527
- }
3528
- function en(e) {
3529
- const t = us();
3548
+ const t = ls();
3530
3549
  if (!t) {
3531
3550
  console.error("[Fox]router is not exist.");
3532
3551
  return;
@@ -3539,12 +3558,12 @@ function en(e) {
3539
3558
  }
3540
3559
  n();
3541
3560
  };
3542
- t?.beforeEach(r), Fe(() => {
3561
+ t?.beforeEach(r), xe(() => {
3543
3562
  t?.removeBeforeEach(r);
3544
3563
  });
3545
3564
  }
3546
- function tn(e) {
3547
- const t = us();
3565
+ function en(e) {
3566
+ const t = ls();
3548
3567
  if (!t) {
3549
3568
  console.error("[Fox]router is not exist.");
3550
3569
  return;
@@ -3557,62 +3576,63 @@ function tn(e) {
3557
3576
  }
3558
3577
  n();
3559
3578
  };
3560
- t?.afterEach(r), Fe(() => {
3579
+ t?.afterEach(r), xe(() => {
3561
3580
  t?.removeAfterEach(r);
3562
3581
  });
3563
3582
  }
3564
3583
  export {
3565
- fr as Bus,
3566
- ct as EventChain,
3567
- Ar as EventProxy,
3568
- ri as FoxBeforeEnter,
3569
- ii as FoxBeforeLeave,
3570
- si as FoxEnter,
3571
- ni as FoxLeave,
3572
- Vt as FoxLeaveEnd,
3573
- F as OperationType,
3574
- x as Route,
3575
- Gs as Router,
3576
- Si as RouterLink,
3577
- Jt as RouterView,
3578
- Vi as bindLifecycleContextToCurrentScope,
3579
- Xi as createFox,
3580
- Ws as createMemoryHistory,
3581
- Us as createWebHashHistory,
3584
+ ar as Bus,
3585
+ ft as EventChain,
3586
+ Er as EventProxy,
3587
+ ei as FoxBeforeEnter,
3588
+ ri as FoxBeforeLeave,
3589
+ ti as FoxEnter,
3590
+ si as FoxLeave,
3591
+ Ut as FoxLeaveEnd,
3592
+ _ as OperationType,
3593
+ R as Route,
3594
+ zs as Router,
3595
+ Ri as RouterLink,
3596
+ Vt as RouterView,
3597
+ Bi as bindLifecycleContextToCurrentScope,
3598
+ Gi as createFox,
3599
+ Bs as createMemoryHistory,
3600
+ Ns as createWebHashHistory,
3582
3601
  Ui as createWebHistory,
3583
- Ji as deleteContextValue,
3584
- j as extend,
3585
- Gr as injectContextValue,
3586
- dt as injectLifecycleContext,
3587
- nr as isArray,
3588
- Ti as isDate,
3589
- Yt as isESModule,
3590
- lr as isEqual,
3591
- w as isFunction,
3592
- Li as isMap,
3593
- We as isNil,
3594
- gs as isObject,
3595
- ws as isPlainObject,
3596
- Oi as isPromise,
3597
- Mi as isSet,
3598
- ki as isString,
3599
- Ii as isSymbol,
3600
- tn as onAfterRouteUpdate,
3601
- en as onBeforeRouteUpdate,
3602
+ Wi as deleteContextValue,
3603
+ Ni as destroyState,
3604
+ q as extend,
3605
+ zr as injectContextValue,
3606
+ ht as injectLifecycleContext,
3607
+ sr as isArray,
3608
+ ki as isDate,
3609
+ Qt as isESModule,
3610
+ nr as isEqual,
3611
+ b as isFunction,
3612
+ Ki as isMap,
3613
+ Ue as isNil,
3614
+ ms as isObject,
3615
+ gs as isPlainObject,
3616
+ Li as isPromise,
3617
+ ji as isSet,
3618
+ Ti as isString,
3619
+ Mi as isSymbol,
3620
+ en as onAfterRouteUpdate,
3621
+ Yi as onBeforeRouteUpdate,
3602
3622
  zi as onFoxActivated,
3603
- Gi as onFoxInactivated,
3604
- Wi as provideContextValue,
3605
- Ni as rawState,
3606
- Di as reactiveState,
3623
+ Ji as onFoxInactivated,
3624
+ Vi as provideContextValue,
3625
+ Di as rawState,
3626
+ Oi as reactiveState,
3607
3627
  Hi as shallowReactiveState,
3608
3628
  Tr as toBoolean,
3609
- Bi as toNumber,
3610
- Zt as toTypeString,
3611
- or as typeOf,
3612
- Zi as useBus,
3613
- Yi as useEventProxy,
3614
- Qi as useFox,
3615
- ji as useRoute,
3616
- us as useRouter,
3617
- Qs as withLifecycleContext
3629
+ Ii as toNumber,
3630
+ Xt as toTypeString,
3631
+ ir as typeOf,
3632
+ Qi as useBus,
3633
+ Zi as useEventProxy,
3634
+ Xi as useFox,
3635
+ qi as useRoute,
3636
+ ls as useRouter,
3637
+ Gs as withLifecycleContext
3618
3638
  };