@fox-js/fox 3.1.1-0 → 3.1.1-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/libs/index.esm.js CHANGED
@@ -1,33 +1,44 @@
1
- import { ref as gr, getCurrentInstance as Mt, onUnmounted as ot, shallowRef as Gr, defineComponent as wr, inject as G, provide as se, h as he } from "vue";
1
+ import { ref as br, getCurrentInstance as Ht, onUnmounted as ft, shallowRef as Yr, defineComponent as xr, inject as Q, provide as se, h as he } from "vue";
2
2
  /*!
3
- * fox v3.1.0 Tue Mar 12 2024 21:32:20 GMT+0800 (中国标准时间)
3
+ * fox v3.1.0 Fri Mar 15 2024 23:11:53 GMT+0800 (中国标准时间)
4
4
  */
5
- const Ce = typeof window < "u", T = function() {
5
+ const Ee = typeof window < "u", K = function() {
6
6
  return window;
7
- }, De = function() {
7
+ }, Ue = function() {
8
8
  return window.document;
9
9
  };
10
- function Qr(s) {
10
+ function Zr(s) {
11
11
  let e = s, t = e.lastIndexOf("/");
12
12
  return t > 0 && t < e.length - 1 ? e = e.substring(0, t + 1) : t === 0 && e.indexOf(".") !== -1 ? e = "/" : t === -1 && (e.indexOf(".") == -1 ? e = `/${e}/` : e = "/"), e.indexOf("/") !== 0 && (e = `/${e}`), e;
13
13
  }
14
- function ct() {
15
- if (!Ce)
14
+ function pt() {
15
+ if (!Ee)
16
16
  return "/";
17
- let s = T().location, e = `${s.protocol}//${s.host}`;
18
- return e += Qr(s.pathname), e;
17
+ let s = K().location, e = `${s.protocol}//${s.host}`;
18
+ return e += Zr(s.pathname), e;
19
19
  }
20
- function $t(s, e, t, r = !1) {
20
+ function nt(s, e, t, r = !1) {
21
21
  s.addEventListener ? s.addEventListener(e, t, r) : s.attachEvent ? s.attachEvent(`on${e}`, t) : s[`on${e}`] = t;
22
22
  }
23
- function qt(s, e, t) {
23
+ function it(s, e, t) {
24
24
  s.removeEventListener ? s.removeEventListener(e, t) : s.detachEvent ? s.detachEvent(`on${e}`, t) : s[`on${e}`] = null;
25
25
  }
26
- const un = Array.isArray, fn = (s) => It(s) === "[object Map]", cn = (s) => It(s) === "[object Set]", hn = (s) => s instanceof Date, x = (s) => typeof s == "function", yn = (s) => typeof s == "string", dn = (s) => typeof s == "symbol", Xr = (s) => s !== null && typeof s == "object", pn = (s) => Xr(s) && x(s.then) && x(s.catch), Yr = (s) => s == null, Zr = Object.prototype.toString, It = (s) => Zr.call(s), es = (s) => It(s) === "[object Object]", ts = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
27
- function br(s) {
28
- return s.__esModule || ts && s[Symbol.toStringTag] === "Module";
29
- }
30
- const rs = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
26
+ const ke = (s, e, t) => {
27
+ e = e ?? {
28
+ bubbles: !1,
29
+ cancelable: !1,
30
+ detail: void 0
31
+ };
32
+ const r = document.createEvent("Events");
33
+ let n = !0, i = !0;
34
+ for (let a in e)
35
+ a === "bubbles" ? n = !!e[a] : a === "cancelable" ? i = !!e[a] : r[a] = e[a];
36
+ r.initEvent(s, n, i), (t ?? document).dispatchEvent(r);
37
+ }, mn = Array.isArray, vn = (s) => Dt(s) === "[object Map]", gn = (s) => Dt(s) === "[object Set]", wn = (s) => s instanceof Date, x = (s) => typeof s == "function", bn = (s) => typeof s == "string", xn = (s) => typeof s == "symbol", es = (s) => s !== null && typeof s == "object", Rn = (s) => es(s) && x(s.then) && x(s.catch), ts = (s) => s == null, rs = Object.prototype.toString, Dt = (s) => rs.call(s), ss = (s) => Dt(s) === "[object Object]", ns = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
38
+ function Rr(s) {
39
+ return s.__esModule || ns && s[Symbol.toStringTag] === "Module";
40
+ }
41
+ const is = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
31
42
  function $(...s) {
32
43
  let e = s[0] !== void 0 && s[0] !== null ? s[0] : {}, t = 1, r = s.length, n = !1;
33
44
  for (typeof e == "boolean" && (n = e, e = s[t] ?? {}, t++), typeof e != "object" && (e = {}); t < r; t++)
@@ -45,7 +56,7 @@ function $(...s) {
45
56
  }
46
57
  return e;
47
58
  }
48
- function Nt(s, e, t = !1) {
59
+ function Ut(s, e, t = !1) {
49
60
  if (!t)
50
61
  $(!0, s, e);
51
62
  else {
@@ -56,9 +67,9 @@ function Nt(s, e, t = !1) {
56
67
  let n = s[r], i = e[r];
57
68
  if (n !== i)
58
69
  if (typeof i == "object") {
59
- if (!Array.isArray(i) && !es(i))
70
+ if (!Array.isArray(i) && !ss(i))
60
71
  continue;
61
- n = Nt(n, i, t), s[r] = n;
72
+ n = Ut(n, i, t), s[r] = n;
62
73
  } else {
63
74
  if (typeof i == "function")
64
75
  continue;
@@ -81,21 +92,21 @@ class le {
81
92
  return e >= Number.MAX_VALUE && (le.seed = 0), e;
82
93
  }
83
94
  }
84
- const ht = rs ? Promise.resolve() : null;
95
+ const mt = is ? Promise.resolve() : null;
85
96
  function Ne(s, ...e) {
86
- ht !== null ? e && e.length > 0 ? ht.then(() => {
97
+ mt !== null ? e && e.length > 0 ? mt.then(() => {
87
98
  s(e);
88
- }) : ht.then(s) : e && e.length > 0 ? setTimeout(() => {
99
+ }) : mt.then(s) : e && e.length > 0 ? setTimeout(() => {
89
100
  s(e);
90
101
  }) : setTimeout(s);
91
102
  }
92
- function xr(s) {
103
+ function Sr(s) {
93
104
  return s == null ? !1 : typeof s == "boolean" ? s : typeof s == "string" ? s.toLocaleLowerCase() === "true" : !!s;
94
105
  }
95
- function mn(s) {
106
+ function Sn(s) {
96
107
  return typeof s == "number" ? s : Number(s);
97
108
  }
98
- const ss = {
109
+ const os = {
99
110
  "[object Boolean]": "boolean",
100
111
  "[object Number]": "number",
101
112
  "[object String]": "string",
@@ -105,16 +116,16 @@ const ss = {
105
116
  "[object RegExp]": "regExp",
106
117
  "[object Object]": "object"
107
118
  };
108
- function Wt(s) {
119
+ function Jt(s) {
109
120
  let t = Object.prototype.toString.call(s);
110
- return s == null ? String(s) : ss[t] || "object";
121
+ return s == null ? String(s) : os[t] || "object";
111
122
  }
112
- function zt(s, e) {
123
+ function Gt(s, e) {
113
124
  if (s == e)
114
125
  return !0;
115
126
  if (s === void 0 || e === void 0)
116
127
  return !1;
117
- let t = Wt(s), r = Wt(e);
128
+ let t = Jt(s), r = Jt(e);
118
129
  if (t !== r)
119
130
  return !1;
120
131
  if (t === "object") {
@@ -123,7 +134,7 @@ function zt(s, e) {
123
134
  return !1;
124
135
  for (let o = 0; o < n.length; o++) {
125
136
  let a = n[o], l = s[a], u = e[a];
126
- if (!zt(l, u))
137
+ if (!Gt(l, u))
127
138
  return !1;
128
139
  }
129
140
  return !0;
@@ -132,26 +143,26 @@ function zt(s, e) {
132
143
  return !1;
133
144
  for (let n = 0; n < s.length; n++) {
134
145
  let i = s[n], o = e[n];
135
- if (!zt(i, o))
146
+ if (!Gt(i, o))
136
147
  return !1;
137
148
  }
138
149
  return !0;
139
150
  }
140
151
  return !1;
141
152
  }
142
- const Rr = (s) => {
153
+ const Pr = (s) => {
143
154
  const e = {};
144
155
  for (let t of Reflect.ownKeys(s)) {
145
156
  let r = s[t];
146
- r && !Array.isArray(r) && typeof r == "object" && (r = Rr(r)), typeof t == "symbol" ? e[String(t)] = r : e[t] = r;
157
+ r && !Array.isArray(r) && typeof r == "object" && (r = Pr(r)), typeof t == "symbol" ? e[String(t)] = r : e[t] = r;
147
158
  }
148
159
  return e;
149
- }, ns = /^Symbol\((.*)\)$/, Sr = (s) => {
160
+ }, ls = /^Symbol\((.*)\)$/, Er = (s) => {
150
161
  const e = {};
151
162
  for (let t of Reflect.ownKeys(s)) {
152
163
  let r = s[t];
153
- r && !Array.isArray(r) && typeof r == "object" && (r = Sr(r));
154
- const n = ns.exec(t);
164
+ r && !Array.isArray(r) && typeof r == "object" && (r = Er(r));
165
+ const n = ls.exec(t);
155
166
  if (n && n[1]) {
156
167
  const i = Symbol.for(n[1]);
157
168
  e[i] = r;
@@ -159,20 +170,20 @@ const Rr = (s) => {
159
170
  e[t] = r;
160
171
  }
161
172
  return e;
162
- }, Jt = Symbol("idKey"), pe = Symbol("valueKey"), R = Symbol("childrenKey"), Q = Symbol("growKey");
163
- class Pr {
173
+ }, Qt = Symbol("idKey"), pe = Symbol("valueKey"), R = Symbol("childrenKey"), X = Symbol("growKey");
174
+ class Cr {
164
175
  /**
165
176
  * 自动创建解决策略
166
177
  */
167
- [Q] = !0;
178
+ [X] = !0;
168
179
  /**
169
180
  * id
170
181
  */
171
- [Jt];
182
+ [Qt];
172
183
  /**
173
184
  * value
174
185
  */
175
- [pe] = gr();
186
+ [pe] = br();
176
187
  /**
177
188
  * children
178
189
  */
@@ -182,10 +193,10 @@ class Pr {
182
193
  * @param id
183
194
  */
184
195
  constructor(e) {
185
- this[Jt] = e;
196
+ this[Qt] = e;
186
197
  }
187
198
  }
188
- class is {
199
+ class as {
189
200
  /**
190
201
  * 拦截get操作
191
202
  * @param target
@@ -195,12 +206,12 @@ class is {
195
206
  if (t == "value")
196
207
  return e[pe].value;
197
208
  if (t === "grow")
198
- return e[Q];
209
+ return e[X];
199
210
  let r = e[R].get(t);
200
211
  if (r)
201
212
  return He(r);
202
- if (e[Q])
203
- return r = Dt(t), r[Q] = e[Q], e[R].set(t, r), He(r);
213
+ if (e[X])
214
+ return r = Bt(t), r[X] = e[X], e[R].set(t, r), He(r);
204
215
  }
205
216
  /**
206
217
  * 拦截set操作
@@ -210,7 +221,7 @@ class is {
210
221
  * @returns
211
222
  */
212
223
  set(e, t, r) {
213
- return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[Q] = xr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
224
+ return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[X] = Sr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
214
225
  }
215
226
  /**
216
227
  * 拦截删除property属性
@@ -222,15 +233,15 @@ class is {
222
233
  return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
223
234
  }
224
235
  }
225
- const Ht = "__proxy__";
226
- function Dt(s) {
227
- const e = new Pr(s);
228
- return Reflect.set(e, Ht, new Proxy(e, new is())), e;
236
+ const kt = "__proxy__";
237
+ function Bt(s) {
238
+ const e = new Cr(s);
239
+ return Reflect.set(e, kt, new Proxy(e, new as())), e;
229
240
  }
230
241
  function He(s) {
231
- return Reflect.get(s, Ht);
242
+ return Reflect.get(s, kt);
232
243
  }
233
- class os {
244
+ class us {
234
245
  /**
235
246
  * 名称
236
247
  */
@@ -257,7 +268,7 @@ class os {
257
268
  * @param options
258
269
  */
259
270
  constructor(e = {}) {
260
- if (e.persistPolicy && e.persistPolicy !== "momery" && Yr(e.name))
271
+ if (e.persistPolicy && e.persistPolicy !== "momery" && ts(e.name))
261
272
  throw new Error("name can not be empty, where persistPolicy is not momery.");
262
273
  this.name = e.name ?? "", this.persistPolicy = e.persistPolicy ?? "momery", this.storage = e.storage;
263
274
  }
@@ -278,8 +289,8 @@ class os {
278
289
  let e = null;
279
290
  if (this.persistPolicy === "custom")
280
291
  e = this.storage;
281
- else if (Ce) {
282
- const t = T();
292
+ else if (Ee) {
293
+ const t = K();
283
294
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
284
295
  }
285
296
  return e;
@@ -365,7 +376,7 @@ class os {
365
376
  }
366
377
  }
367
378
  }
368
- class Cr extends Pr {
379
+ class Fr extends Cr {
369
380
  /**
370
381
  * 持久化处理器
371
382
  */
@@ -374,7 +385,7 @@ class Cr extends Pr {
374
385
  * 默认构造函数
375
386
  */
376
387
  constructor(e = {}) {
377
- super("__root__"), this._persistHandler = new os(e), this._persistHandler.init(this);
388
+ super("__root__"), this._persistHandler = new us(e), this._persistHandler.init(this);
378
389
  }
379
390
  /**
380
391
  * 加入数据
@@ -388,7 +399,7 @@ class Cr extends Pr {
388
399
  let r = this;
389
400
  for (let n = 0; n < t - 1; n++) {
390
401
  let i = e[n], o;
391
- r[R].has(i) ? o = r[R].get(i) : (o = Dt(i), r[R].set(i, o)), r = o;
402
+ r[R].has(i) ? o = r[R].get(i) : (o = Bt(i), r[R].set(i, o)), r = o;
392
403
  }
393
404
  return r[pe].value = e[t - 1], this._persistHandler.put(e), !0;
394
405
  }
@@ -458,11 +469,11 @@ class Cr extends Pr {
458
469
  this[R].clear(), this._persistHandler.clear();
459
470
  }
460
471
  }
461
- const ls = ["put", "get", "contains", "remove", "clear", "_persistHandler"];
462
- function Gt(s) {
463
- return ls.includes(s);
472
+ const fs = ["put", "get", "contains", "remove", "clear", "_persistHandler"];
473
+ function Xt(s) {
474
+ return fs.includes(s);
464
475
  }
465
- class as {
476
+ class cs {
466
477
  /**
467
478
  * 拦截get操作
468
479
  * @param target
@@ -472,16 +483,16 @@ class as {
472
483
  if (t == "value")
473
484
  return e[pe].value;
474
485
  if (t === "grow")
475
- return e[Q];
486
+ return e[X];
476
487
  if (t === R)
477
488
  return e[R];
478
- if (typeof t == "string" && Gt(t))
489
+ if (typeof t == "string" && Xt(t))
479
490
  return e[t];
480
491
  let r = String(t), n = e[R].get(r);
481
492
  if (n)
482
493
  return He(n);
483
- if (e[Q])
484
- return n = Dt(r), n[Q] = e[Q], e[R].set(r, n), He(n);
494
+ if (e[X])
495
+ return n = Bt(r), n[X] = e[X], e[R].set(r, n), He(n);
485
496
  }
486
497
  /**
487
498
  * 拦截set操作
@@ -491,7 +502,7 @@ class as {
491
502
  * @returns
492
503
  */
493
504
  set(e, t, r) {
494
- return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[Q] = xr(r), !0) : Gt(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
505
+ return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[X] = Sr(r), !0) : Xt(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
495
506
  }
496
507
  /**
497
508
  * 拦截删除property属性
@@ -503,11 +514,11 @@ class as {
503
514
  return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
504
515
  }
505
516
  }
506
- function us(s) {
507
- const e = new Cr(s), t = new as(), r = new Proxy(e, t);
508
- return Reflect.set(e, Ht, r), e;
517
+ function hs(s) {
518
+ const e = new Fr(s), t = new cs(), r = new Proxy(e, t);
519
+ return Reflect.set(e, kt, r), e;
509
520
  }
510
- const Qt = new Proxy(Cr, {
521
+ const Yt = new Proxy(Fr, {
511
522
  /**
512
523
  * 拦截构造函数
513
524
  * @param target
@@ -515,23 +526,23 @@ const Qt = new Proxy(Cr, {
515
526
  * @returns
516
527
  */
517
528
  construct(s, e) {
518
- const t = us(e[0] ?? {});
529
+ const t = hs(e[0] ?? {});
519
530
  return He(t);
520
531
  }
521
532
  }), te = "default", Ar = Symbol("sync"), H = Symbol("resolveRoute");
522
- function Xt(s) {
533
+ function Zt(s) {
523
534
  let e = !1;
524
535
  return function(...t) {
525
536
  if (!e)
526
537
  return e = !0, Reflect.apply(s, {}, t);
527
538
  };
528
539
  }
529
- function fs(s) {
540
+ function ys(s) {
530
541
  let e = s.src;
531
542
  return new Promise((t, r) => {
532
- const n = Xt((a) => {
533
- br(a) && (a = a.default), s.component = a, console.debug("success load async module"), t();
534
- }), i = Xt((a) => {
543
+ const n = Zt((a) => {
544
+ Rr(a) && (a = a.default), s.component = a, console.debug("success load async module"), t();
545
+ }), i = Zt((a) => {
535
546
  console.debug("reject load async module"), r(a);
536
547
  });
537
548
  let o;
@@ -549,7 +560,7 @@ function fs(s) {
549
560
  }
550
561
  });
551
562
  }
552
- class cs {
563
+ class ds {
553
564
  /**
554
565
  * 插槽名称
555
566
  */
@@ -576,7 +587,7 @@ class cs {
576
587
  this.name = e, this.level = t, this.rootName = r, this.rootIndex = n;
577
588
  }
578
589
  }
579
- class rt {
590
+ class ot {
580
591
  /**
581
592
  * 目标路由
582
593
  */
@@ -607,7 +618,7 @@ class rt {
607
618
  * @returns
608
619
  */
609
620
  static from(e) {
610
- let t = new rt(e.to, e.from), r = e.data ?? {};
621
+ let t = new ot(e.to, e.from), r = e.data ?? {};
611
622
  return $(!0, t.data, r), t;
612
623
  }
613
624
  }
@@ -710,7 +721,7 @@ class S {
710
721
  */
711
722
  static clone(e, t) {
712
723
  let r = new S();
713
- return Nt(r, e, t), r;
724
+ return Ut(r, e, t), r;
714
725
  }
715
726
  /**
716
727
  * 判断路由是否相同
@@ -751,7 +762,7 @@ class S {
751
762
  return t;
752
763
  }
753
764
  }
754
- class hs {
765
+ class ps {
755
766
  /**
756
767
  * 唯一ID(用于区分model)
757
768
  */
@@ -797,16 +808,16 @@ class hs {
797
808
  * 解析组件
798
809
  */
799
810
  resolve() {
800
- return fs(this);
811
+ return ys(this);
801
812
  }
802
813
  }
803
- class Yt {
814
+ class er {
804
815
  /**
805
816
  * 节点
806
817
  */
807
818
  models = [];
808
819
  }
809
- class yt {
820
+ class vt {
810
821
  /**
811
822
  * 路径
812
823
  */
@@ -829,12 +840,12 @@ class yt {
829
840
  layers = [];
830
841
  }
831
842
  var q = /* @__PURE__ */ ((s) => (s[s.Push = 0] = "Push", s[s.Replace = 1] = "Replace", s[s.Put = 2] = "Put", s[s.Append = 3] = "Append", s[s.Open = 4] = "Open", s))(q || {});
832
- const D = Symbol("chainKey"), N = Symbol("cursorKey"), dt = Symbol("$persistentModeKey"), F = Symbol("statusKey"), Z = Symbol("argsKey"), Ue = Symbol("exArgsKey"), me = Symbol("successFnsKey"), Fe = Symbol("errorFnsKey"), ae = Symbol("sessionKey"), ee = Symbol("_go");
833
- class st {
843
+ const ms = "FoxBeforeEnter", vs = "FoxEnter", gs = "FoxLeave", ws = "FoxLeave", Ot = "FoxLeaveEnd", U = Symbol("chainKey"), N = Symbol("cursorKey"), gt = Symbol("$persistentModeKey"), A = Symbol("statusKey"), Z = Symbol("argsKey"), Be = Symbol("exArgsKey"), me = Symbol("successFnsKey"), Ae = Symbol("errorFnsKey"), ae = Symbol("sessionKey"), ee = Symbol("_go");
844
+ class lt {
834
845
  /**
835
846
  * 事件链路
836
847
  */
837
- [D] = [];
848
+ [U] = [];
838
849
  /**
839
850
  * 游标
840
851
  */
@@ -842,11 +853,11 @@ class st {
842
853
  /**
843
854
  * 是否持久模式(该状态为true的情况,已经执行的任务会继续保存在队列中)
844
855
  */
845
- [dt] = !1;
856
+ [gt] = !1;
846
857
  /**
847
858
  * 状态
848
859
  */
849
- [F] = "Free";
860
+ [A] = "Free";
850
861
  /**
851
862
  * 参数
852
863
  */
@@ -854,7 +865,7 @@ class st {
854
865
  /**
855
866
  * 异常参数
856
867
  */
857
- [Ue] = [];
868
+ [Be] = [];
858
869
  /**
859
870
  * 移除函数
860
871
  */
@@ -862,7 +873,7 @@ class st {
862
873
  /**
863
874
  * 错误函数
864
875
  */
865
- [Fe] = [];
876
+ [Ae] = [];
866
877
  /**
867
878
  * 链路session
868
879
  */
@@ -880,7 +891,7 @@ class st {
880
891
  * @param persistentMode
881
892
  */
882
893
  constructor(e, t = !1) {
883
- this[ae] = e, this[dt] = t;
894
+ this[ae] = e, this[gt] = t;
884
895
  }
885
896
  /**
886
897
  * 触发链路的下一个任务
@@ -888,22 +899,22 @@ class st {
888
899
  * @param params
889
900
  */
890
901
  [ee](e, ...t) {
891
- let r = this[F];
892
- if (this[F] = "Busy", this[N] += e, this[N] < 0 && (this[N] = 0), this[Z] = t, r === "Exception" || r === "Reject") {
902
+ let r = this[A];
903
+ if (this[A] = "Busy", this[N] += e, this[N] < 0 && (this[N] = 0), this[Z] = t, r === "Exception" || r === "Reject") {
893
904
  let a = [{
894
905
  session: this[ae]
895
- }, ...this[Ue]];
896
- for (; this[Fe].length > 0; )
906
+ }, ...this[Be]];
907
+ for (; this[Ae].length > 0; )
897
908
  try {
898
- let l = this[Fe].shift();
909
+ let l = this[Ae].shift();
899
910
  typeof l == "function" && Ne(() => {
900
911
  Reflect.apply(l, {}, a);
901
912
  });
902
913
  } catch (l) {
903
914
  console.error(l.message, l);
904
915
  }
905
- return this[F] = r, this[D] = [], this[N] = 0, this;
906
- } else if (r === "Finished" || this[N] >= this[D].length) {
916
+ return this[A] = r, this[U] = [], this[N] = 0, this;
917
+ } else if (r === "Finished" || this[N] >= this[U].length) {
907
918
  let a = [{
908
919
  session: this[ae]
909
920
  }, ...this[Z]];
@@ -913,12 +924,12 @@ class st {
913
924
  Reflect.apply(l, {}, a);
914
925
  });
915
926
  }
916
- return this[F] = "Free", this;
927
+ return this[A] = "Free", this;
917
928
  }
918
- if (this[N] >= this[D].length)
919
- return this[F] = "Free", this;
920
- let n = this[D][this[N]];
921
- this[dt] || (this[D].splice(0, this[N] + 1), this[N] = -1);
929
+ if (this[N] >= this[U].length)
930
+ return this[A] = "Free", this;
931
+ let n = this[U][this[N]];
932
+ this[gt] || (this[U].splice(0, this[N] + 1), this[N] = -1);
922
933
  let i = this[N] + 1;
923
934
  try {
924
935
  let o = !1, a = {
@@ -936,7 +947,7 @@ class st {
936
947
  },
937
948
  //insert
938
949
  insert: (l) => {
939
- o || (this[D].splice(i, 0, l), i++);
950
+ o || (this[U].splice(i, 0, l), i++);
940
951
  },
941
952
  //session
942
953
  session: this[ae]
@@ -962,28 +973,28 @@ class st {
962
973
  * @param params
963
974
  */
964
975
  finish(...e) {
965
- return this[F] = "Finished", this[Z] = e, Reflect.apply(this[ee], this, [0]);
976
+ return this[A] = "Finished", this[Z] = e, Reflect.apply(this[ee], this, [0]);
966
977
  }
967
978
  /**
968
979
  * 结束事件链调用,直接触发wait函数(error方法)
969
980
  * @param params
970
981
  */
971
982
  reject(...e) {
972
- return this[F] = "Reject", this[Ue] = e, Reflect.apply(this[ee], this, [0]);
983
+ return this[A] = "Reject", this[Be] = e, Reflect.apply(this[ee], this, [0]);
973
984
  }
974
985
  /**
975
986
  * 结束事件链调用,直接触发error函数
976
987
  * @param params
977
988
  */
978
989
  throw(...e) {
979
- return this[F] = "Exception", this[Ue] = e, Reflect.apply(this[ee], this, [0]);
990
+ return this[A] = "Exception", this[Be] = e, Reflect.apply(this[ee], this, [0]);
980
991
  }
981
992
  /**
982
993
  * 重置事件链,直接触发wait函数
983
994
  * @param params
984
995
  */
985
996
  reset(...e) {
986
- this[F] = "Busy", this[Z] = e, this[D] = [], this[N] = 0;
997
+ this[A] = "Busy", this[Z] = e, this[U] = [], this[N] = 0;
987
998
  let r = [{
988
999
  session: this[ae]
989
1000
  }, ...this[Z]];
@@ -993,7 +1004,7 @@ class st {
993
1004
  Reflect.apply(n, this, r);
994
1005
  });
995
1006
  }
996
- return this[F] = "Free", this;
1007
+ return this[A] = "Free", this;
997
1008
  }
998
1009
  /**
999
1010
  * 加入任务
@@ -1001,7 +1012,7 @@ class st {
1001
1012
  * @returns {EventChain}
1002
1013
  */
1003
1014
  post(e) {
1004
- return this[F] === "Reject" || this[F] === "Exception" ? this : (Array.isArray(e) ? this[D] = [...this[D], ...e] : this[D].push(e), this[F] === "Busy" ? this : (Reflect.apply(this[ee], this, [0, ...this[Z]]), this));
1015
+ return this[A] === "Reject" || this[A] === "Exception" ? this : (Array.isArray(e) ? this[U] = [...this[U], ...e] : this[U].push(e), this[A] === "Busy" ? this : (Reflect.apply(this[ee], this, [0, ...this[Z]]), this));
1005
1016
  }
1006
1017
  /**
1007
1018
  * 加入等待任务
@@ -1010,7 +1021,7 @@ class st {
1010
1021
  * @returns
1011
1022
  */
1012
1023
  wait(e, t) {
1013
- return e && typeof e == "function" && this[me].push(e), t && typeof t == "function" && this[Fe].push(t), this[F] === "Busy" ? this : (Reflect.apply(this[ee], this, [0, ...this[Z]]), this);
1024
+ return e && typeof e == "function" && this[me].push(e), t && typeof t == "function" && this[Ae].push(t), this[A] === "Busy" ? this : (Reflect.apply(this[ee], this, [0, ...this[Z]]), this);
1014
1025
  }
1015
1026
  /**
1016
1027
  * 加入异常处理任务
@@ -1018,18 +1029,18 @@ class st {
1018
1029
  * @returns
1019
1030
  */
1020
1031
  exception(e) {
1021
- return e && typeof e == "function" && this[Fe].push(e), this[F] === "Busy" ? this : Reflect.apply(this[ee], this, [0, ...this[Z]]);
1032
+ return e && typeof e == "function" && this[Ae].push(e), this[A] === "Busy" ? this : Reflect.apply(this[ee], this, [0, ...this[Z]]);
1022
1033
  }
1023
1034
  /**
1024
1035
  * 判断事件链是否已经执行完成
1025
1036
  * @returns {boolean}
1026
1037
  */
1027
1038
  isFinish() {
1028
- return this[F] == "Reject" || this[F] == "Free" && this[N] >= this[D].length;
1039
+ return this[A] == "Reject" || this[A] == "Free" && this[N] >= this[U].length;
1029
1040
  }
1030
1041
  }
1031
1042
  const ve = Symbol("registerKey");
1032
- class ys {
1043
+ class bs {
1033
1044
  /**
1034
1045
  * 事件策略
1035
1046
  */
@@ -1047,7 +1058,7 @@ class ys {
1047
1058
  this.callback = e, this.policy = t;
1048
1059
  }
1049
1060
  }
1050
- class Zt {
1061
+ class tr {
1051
1062
  /**
1052
1063
  * 注册表
1053
1064
  */
@@ -1067,7 +1078,7 @@ class Zt {
1067
1078
  on(e, t, r = !1) {
1068
1079
  let n = this[ve].get(e);
1069
1080
  n || (n = new Array(), this[ve].set(e, n));
1070
- let i = r === !0 ? 1 : 0, o = new ys(t, i);
1081
+ let i = r === !0 ? 1 : 0, o = new bs(t, i);
1071
1082
  return n.push(o), this;
1072
1083
  }
1073
1084
  /**
@@ -1168,7 +1179,7 @@ class Zt {
1168
1179
  }
1169
1180
  }
1170
1181
  const _e = Symbol("registerKey");
1171
- class ds {
1182
+ class xs {
1172
1183
  /**
1173
1184
  * 数据列表
1174
1185
  */
@@ -1212,27 +1223,27 @@ class ds {
1212
1223
  }
1213
1224
  }
1214
1225
  const de = Symbol("lc");
1215
- function nt(s, e = !1) {
1226
+ function at(s, e = !1) {
1216
1227
  let t = s;
1217
1228
  if (Reflect.has(t, de))
1218
1229
  return t[de];
1219
1230
  if (e) {
1220
- const r = new ds();
1231
+ const r = new xs();
1221
1232
  return t[de] = r, r;
1222
1233
  }
1223
1234
  return null;
1224
1235
  }
1225
- function Er(s, e = !1) {
1236
+ function _r(s, e = !1) {
1226
1237
  let t = null, r = s;
1227
1238
  for (; r && !(Reflect.has(r, de) && (t = r[de], t)); )
1228
1239
  r = r.$parent;
1229
1240
  if (!t && e) {
1230
1241
  const n = s;
1231
- n && n.$parent && (t = nt(n.$parent, e));
1242
+ n && n.$parent && (t = at(n.$parent, e));
1232
1243
  }
1233
1244
  return t;
1234
1245
  }
1235
- function Fr(s, e) {
1246
+ function Tr(s, e) {
1236
1247
  let t = s;
1237
1248
  for (; t; ) {
1238
1249
  if (Reflect.has(t, de)) {
@@ -1244,27 +1255,27 @@ function Fr(s, e) {
1244
1255
  }
1245
1256
  return null;
1246
1257
  }
1247
- function vn(s, e, t) {
1248
- Er(s, !0)?.set(e, t);
1258
+ function Pn(s, e, t) {
1259
+ _r(s, !0)?.set(e, t);
1249
1260
  }
1250
- function gn(s, e) {
1251
- Er(s, !0)?.delete(e);
1261
+ function En(s, e) {
1262
+ _r(s, !0)?.delete(e);
1252
1263
  }
1253
- function er(s) {
1264
+ function rr(s) {
1254
1265
  if (Array.isArray(s.children) && s.children.length > 0) {
1255
1266
  let e = s.children[0];
1256
1267
  if (e != null && e.component != null && e.component.proxy != null)
1257
- return nt(e.component.proxy, !1);
1268
+ return at(e.component.proxy, !1);
1258
1269
  }
1259
1270
  return null;
1260
1271
  }
1261
- const it = Symbol("hooksKey");
1262
- function ps(s) {
1263
- let e = s.get(it);
1264
- e || (e = [], s.set(it, e));
1272
+ const ut = Symbol("hooksKey");
1273
+ function Rs(s) {
1274
+ let e = s.get(ut);
1275
+ e || (e = [], s.set(ut, e));
1265
1276
  }
1266
- function tr(s, e) {
1267
- let t = s.get(it);
1277
+ function sr(s, e) {
1278
+ let t = s.get(ut);
1268
1279
  if (t != null)
1269
1280
  for (let r = t.length - 1; r >= 0; r--) {
1270
1281
  let n = t[r];
@@ -1276,8 +1287,8 @@ function tr(s, e) {
1276
1287
  }
1277
1288
  }
1278
1289
  }
1279
- var jt = /* @__PURE__ */ ((s) => (s.DEACTIVATED = "da", s.ACTIVATED = "a", s))(jt || {});
1280
- class ms {
1290
+ var Mt = /* @__PURE__ */ ((s) => (s.DEACTIVATED = "da", s.ACTIVATED = "a", s))(Mt || {});
1291
+ class Ss {
1281
1292
  /**
1282
1293
  * 类型
1283
1294
  */
@@ -1300,11 +1311,11 @@ class ms {
1300
1311
  this.target = r, this.hook = t, this.type = e;
1301
1312
  }
1302
1313
  }
1303
- function vs(s, e, t, r) {
1304
- let n = new ms(e, t, r);
1314
+ function Ps(s, e, t, r) {
1315
+ let n = new Ss(e, t, r);
1305
1316
  return s.push(n), !0;
1306
1317
  }
1307
- function gs(s, e, t, r) {
1318
+ function Es(s, e, t, r) {
1308
1319
  let n = -1;
1309
1320
  for (let i = 0; i < s.length; i++) {
1310
1321
  let o = s[i];
@@ -1315,45 +1326,45 @@ function gs(s, e, t, r) {
1315
1326
  }
1316
1327
  return n != -1 ? (s.splice(n, 1), !0) : !1;
1317
1328
  }
1318
- function _r(s) {
1329
+ function Kr(s) {
1319
1330
  return (e, t) => {
1320
1331
  let r;
1321
1332
  if (t)
1322
1333
  r = t;
1323
1334
  else {
1324
- const i = Mt();
1335
+ const i = Ht();
1325
1336
  if (i == null || i.proxy == null) {
1326
1337
  console.error("can not get current instance or proxy");
1327
1338
  return;
1328
1339
  }
1329
1340
  r = i.proxy;
1330
1341
  }
1331
- const n = Fr(r, it);
1342
+ const n = Tr(r, ut);
1332
1343
  if (n == null) {
1333
1344
  console.warn("hooks context not found");
1334
1345
  return;
1335
1346
  }
1336
- ot(() => {
1337
- gs(n, s, e, r);
1338
- }), vs(n, s, e, r);
1347
+ ft(() => {
1348
+ Es(n, s, e, r);
1349
+ }), Ps(n, s, e, r);
1339
1350
  };
1340
1351
  }
1341
- const wn = _r(
1352
+ const Cn = Kr(
1342
1353
  "a"
1343
1354
  /* ACTIVATED */
1344
- ), bn = _r(
1355
+ ), Fn = Kr(
1345
1356
  "da"
1346
1357
  /* DEACTIVATED */
1347
- ), Kr = Symbol("routeKey");
1348
- function rr(s, e) {
1349
- s.set(Kr, e);
1358
+ ), $r = Symbol("routeKey");
1359
+ function nr(s, e) {
1360
+ s.set($r, e);
1350
1361
  }
1351
- function Ut(s) {
1352
- let e = Fr(s, Kr);
1362
+ function Vt(s) {
1363
+ let e = Tr(s, $r);
1353
1364
  return typeof e == "function" ? e() : e ?? null;
1354
1365
  }
1355
- const lt = Symbol("rk"), pt = Symbol("vd"), sr = Symbol("rv"), mt = Symbol("rvi"), nr = Symbol("pv"), vt = Symbol("pvi");
1356
- function ws(s) {
1366
+ const ct = Symbol("rk"), wt = Symbol("vd"), ir = Symbol("rv"), bt = Symbol("rvi"), or = Symbol("pv"), xt = Symbol("pvi");
1367
+ function Cs(s) {
1357
1368
  for (var e = [], t = 0; t < s.length; ) {
1358
1369
  var r = s[t];
1359
1370
  if (r === "*" || r === "+" || r === "?") {
@@ -1421,21 +1432,21 @@ function ws(s) {
1421
1432
  }
1422
1433
  return e.push({ type: "END", index: t, value: "" }), e;
1423
1434
  }
1424
- function Tr(s, e) {
1435
+ function qr(s, e) {
1425
1436
  e === void 0 && (e = {});
1426
- for (var t = ws(s), r = e.prefixes, n = r === void 0 ? "./" : r, i = "[^".concat(Re(e.delimiter || "/#?"), "]+?"), o = [], a = 0, l = 0, u = "", f = function(E) {
1427
- if (l < t.length && t[l].type === E)
1437
+ for (var t = Cs(s), r = e.prefixes, n = r === void 0 ? "./" : r, i = "[^".concat(Re(e.delimiter || "/#?"), "]+?"), o = [], a = 0, l = 0, u = "", f = function(F) {
1438
+ if (l < t.length && t[l].type === F)
1428
1439
  return t[l++].value;
1429
- }, c = function(E) {
1430
- var P = f(E);
1440
+ }, c = function(F) {
1441
+ var P = f(F);
1431
1442
  if (P !== void 0)
1432
1443
  return P;
1433
- var C = t[l], k = C.type, M = C.index;
1434
- throw new TypeError("Unexpected ".concat(k, " at ").concat(M, ", expected ").concat(E));
1444
+ var E = t[l], W = E.type, M = E.index;
1445
+ throw new TypeError("Unexpected ".concat(W, " at ").concat(M, ", expected ").concat(F));
1435
1446
  }, h = function() {
1436
- for (var E = "", P; P = f("CHAR") || f("ESCAPED_CHAR"); )
1437
- E += P;
1438
- return E;
1447
+ for (var F = "", P; P = f("CHAR") || f("ESCAPED_CHAR"); )
1448
+ F += P;
1449
+ return F;
1439
1450
  }; l < t.length; ) {
1440
1451
  var y = f("CHAR"), d = f("NAME"), m = f("PATTERN");
1441
1452
  if (d || m) {
@@ -1457,12 +1468,12 @@ function Tr(s, e) {
1457
1468
  u && (o.push(u), u = "");
1458
1469
  var g = f("OPEN");
1459
1470
  if (g) {
1460
- var p = h(), _ = f("NAME") || "", b = f("PATTERN") || "", K = h();
1471
+ var p = h(), _ = f("NAME") || "", b = f("PATTERN") || "", T = h();
1461
1472
  c("CLOSE"), o.push({
1462
1473
  name: _ || (b ? a++ : ""),
1463
1474
  pattern: _ && !b ? i : b,
1464
1475
  prefix: p,
1465
- suffix: K,
1476
+ suffix: T,
1466
1477
  modifier: f("MODIFIER") || ""
1467
1478
  });
1468
1479
  continue;
@@ -1471,12 +1482,12 @@ function Tr(s, e) {
1471
1482
  }
1472
1483
  return o;
1473
1484
  }
1474
- function bs(s, e) {
1475
- return xs(Tr(s, e), e);
1485
+ function Fs(s, e) {
1486
+ return As(qr(s, e), e);
1476
1487
  }
1477
- function xs(s, e) {
1488
+ function As(s, e) {
1478
1489
  e === void 0 && (e = {});
1479
- var t = Vt(e), r = e.encode, n = r === void 0 ? function(l) {
1490
+ var t = Wt(e), r = e.encode, n = r === void 0 ? function(l) {
1480
1491
  return l;
1481
1492
  } : r, i = e.validate, o = i === void 0 ? !0 : i, a = s.map(function(l) {
1482
1493
  if (typeof l == "object")
@@ -1521,11 +1532,11 @@ function xs(s, e) {
1521
1532
  return u;
1522
1533
  };
1523
1534
  }
1524
- function Rs(s, e) {
1525
- var t = [], r = $r(s, t, e);
1526
- return Ss(r, t, e);
1535
+ function _s(s, e) {
1536
+ var t = [], r = jr(s, t, e);
1537
+ return Ts(r, t, e);
1527
1538
  }
1528
- function Ss(s, e, t) {
1539
+ function Ts(s, e, t) {
1529
1540
  t === void 0 && (t = {});
1530
1541
  var r = t.decode, n = r === void 0 ? function(i) {
1531
1542
  return i;
@@ -1549,10 +1560,10 @@ function Ss(s, e, t) {
1549
1560
  function Re(s) {
1550
1561
  return s.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
1551
1562
  }
1552
- function Vt(s) {
1563
+ function Wt(s) {
1553
1564
  return s && s.sensitive ? "" : "i";
1554
1565
  }
1555
- function Ps(s, e) {
1566
+ function Ks(s, e) {
1556
1567
  if (!e)
1557
1568
  return s;
1558
1569
  for (var t = /\((?:\?<(.*?)>)?(?!\?)/g, r = 0, n = t.exec(s.source); n; )
@@ -1566,16 +1577,16 @@ function Ps(s, e) {
1566
1577
  }), n = t.exec(s.source);
1567
1578
  return s;
1568
1579
  }
1569
- function Cs(s, e, t) {
1580
+ function $s(s, e, t) {
1570
1581
  var r = s.map(function(n) {
1571
- return $r(n, e, t).source;
1582
+ return jr(n, e, t).source;
1572
1583
  });
1573
- return new RegExp("(?:".concat(r.join("|"), ")"), Vt(t));
1584
+ return new RegExp("(?:".concat(r.join("|"), ")"), Wt(t));
1574
1585
  }
1575
- function As(s, e, t) {
1576
- return Es(Tr(s, t), e, t);
1586
+ function qs(s, e, t) {
1587
+ return js(qr(s, t), e, t);
1577
1588
  }
1578
- function Es(s, e, t) {
1589
+ function js(s, e, t) {
1579
1590
  t === void 0 && (t = {});
1580
1591
  for (var r = t.strict, n = r === void 0 ? !1 : r, i = t.start, o = i === void 0 ? !0 : i, a = t.end, l = a === void 0 ? !0 : a, u = t.encode, f = u === void 0 ? function(M) {
1581
1592
  return M;
@@ -1584,33 +1595,33 @@ function Es(s, e, t) {
1584
1595
  if (typeof b == "string")
1585
1596
  v += Re(f(b));
1586
1597
  else {
1587
- var K = Re(f(b.prefix)), E = Re(f(b.suffix));
1598
+ var T = Re(f(b.prefix)), F = Re(f(b.suffix));
1588
1599
  if (b.pattern)
1589
- if (e && e.push(b), K || E)
1600
+ if (e && e.push(b), T || F)
1590
1601
  if (b.modifier === "+" || b.modifier === "*") {
1591
1602
  var P = b.modifier === "*" ? "?" : "";
1592
- v += "(?:".concat(K, "((?:").concat(b.pattern, ")(?:").concat(E).concat(K, "(?:").concat(b.pattern, "))*)").concat(E, ")").concat(P);
1603
+ v += "(?:".concat(T, "((?:").concat(b.pattern, ")(?:").concat(F).concat(T, "(?:").concat(b.pattern, "))*)").concat(F, ")").concat(P);
1593
1604
  } else
1594
- v += "(?:".concat(K, "(").concat(b.pattern, ")").concat(E, ")").concat(b.modifier);
1605
+ v += "(?:".concat(T, "(").concat(b.pattern, ")").concat(F, ")").concat(b.modifier);
1595
1606
  else
1596
1607
  b.modifier === "+" || b.modifier === "*" ? v += "((?:".concat(b.pattern, ")").concat(b.modifier, ")") : v += "(".concat(b.pattern, ")").concat(b.modifier);
1597
1608
  else
1598
- v += "(?:".concat(K).concat(E, ")").concat(b.modifier);
1609
+ v += "(?:".concat(T).concat(F, ")").concat(b.modifier);
1599
1610
  }
1600
1611
  }
1601
1612
  if (l)
1602
1613
  n || (v += "".concat(p, "?")), v += t.endsWith ? "(?=".concat(m, ")") : "$";
1603
1614
  else {
1604
- var C = s[s.length - 1], k = typeof C == "string" ? p.indexOf(C[C.length - 1]) > -1 : C === void 0;
1605
- n || (v += "(?:".concat(p, "(?=").concat(m, "))?")), k || (v += "(?=".concat(p, "|").concat(m, ")"));
1615
+ var E = s[s.length - 1], W = typeof E == "string" ? p.indexOf(E[E.length - 1]) > -1 : E === void 0;
1616
+ n || (v += "(?:".concat(p, "(?=").concat(m, "))?")), W || (v += "(?=".concat(p, "|").concat(m, ")"));
1606
1617
  }
1607
- return new RegExp(v, Vt(t));
1618
+ return new RegExp(v, Wt(t));
1608
1619
  }
1609
- function $r(s, e, t) {
1610
- return s instanceof RegExp ? Ps(s, e) : Array.isArray(s) ? Cs(s, e, t) : As(s, e, t);
1620
+ function jr(s, e, t) {
1621
+ return s instanceof RegExp ? Ks(s, e) : Array.isArray(s) ? $s(s, e, t) : qs(s, e, t);
1611
1622
  }
1612
- var Ze = /* @__PURE__ */ ((s) => (s[s.Part = 0] = "Part", s[s.All = 1] = "All", s))(Ze || {});
1613
- const J = Symbol("rootKey"), z = Symbol("rootNodeKey"), ye = Symbol("parentNodeKey"), et = Symbol("nameKey");
1623
+ var tt = /* @__PURE__ */ ((s) => (s[s.Part = 0] = "Part", s[s.All = 1] = "All", s))(tt || {});
1624
+ const G = Symbol("rootKey"), J = Symbol("rootNodeKey"), ye = Symbol("parentNodeKey"), rt = Symbol("nameKey");
1614
1625
  class ne {
1615
1626
  /**
1616
1627
  * 实例
@@ -1643,7 +1654,7 @@ class ne {
1643
1654
  this.route = e, this.model = t, this.index = r, this.active = n;
1644
1655
  }
1645
1656
  }
1646
- class Ke {
1657
+ class Te {
1647
1658
  /**
1648
1659
  * model slots列表
1649
1660
  */
@@ -1652,7 +1663,7 @@ class Ke {
1652
1663
  * getter for models
1653
1664
  */
1654
1665
  get slots() {
1655
- return this._slots == null && (this._slots = Gr([])), this._slots;
1666
+ return this._slots == null && (this._slots = Yr([])), this._slots;
1656
1667
  }
1657
1668
  /**
1658
1669
  * 是否为空视图
@@ -1663,15 +1674,15 @@ class Ke {
1663
1674
  /**
1664
1675
  * name
1665
1676
  */
1666
- [et];
1677
+ [rt];
1667
1678
  /**
1668
1679
  * 是否分支根节点标志(true/false)
1669
1680
  */
1670
- [J];
1681
+ [G];
1671
1682
  /**
1672
1683
  * view的所在的root(最近一个)
1673
1684
  */
1674
- [z] = null;
1685
+ [J] = null;
1675
1686
  /**
1676
1687
  * view的父亲记得引用(会在router的[sync]方法中建立关系)
1677
1688
  */
@@ -1680,7 +1691,7 @@ class Ke {
1680
1691
  * 名称
1681
1692
  */
1682
1693
  get name() {
1683
- return this[et];
1694
+ return this[rt];
1684
1695
  }
1685
1696
  /**
1686
1697
  * 构造函数
@@ -1689,10 +1700,10 @@ class Ke {
1689
1700
  * @param rootNodeRef
1690
1701
  */
1691
1702
  constructor(e, t, r) {
1692
- this[et] = e, this[J] = t, r && (this[z] = r);
1703
+ this[rt] = e, this[G] = t, r && (this[J] = r);
1693
1704
  }
1694
1705
  }
1695
- class U {
1706
+ class k {
1696
1707
  /**
1697
1708
  * view
1698
1709
  */
@@ -1728,19 +1739,19 @@ class U {
1728
1739
  return !1;
1729
1740
  }
1730
1741
  }
1731
- class gt {
1742
+ class Rt {
1732
1743
  /**
1733
1744
  * 节点(view集合)
1734
1745
  */
1735
1746
  views = [];
1736
1747
  }
1737
- class Fs {
1748
+ class Ls {
1738
1749
  /**
1739
1750
  * 层
1740
1751
  */
1741
1752
  layers = [];
1742
1753
  }
1743
- class _s {
1754
+ class Os {
1744
1755
  /**
1745
1756
  * time
1746
1757
  */
@@ -1750,7 +1761,7 @@ class _s {
1750
1761
  */
1751
1762
  route;
1752
1763
  }
1753
- class Ks {
1764
+ class Ms {
1754
1765
  /**
1755
1766
  * 禁止重复提交时间间隔
1756
1767
  */
@@ -1758,7 +1769,7 @@ class Ks {
1758
1769
  /**
1759
1770
  * 提交路由记录
1760
1771
  */
1761
- submitRecorder = new _s();
1772
+ submitRecorder = new Os();
1762
1773
  /**
1763
1774
  * 判断是否为同一个路由(只判断name、path和root是否一致)
1764
1775
  * @param x
@@ -1789,7 +1800,7 @@ class Ks {
1789
1800
  }
1790
1801
  }
1791
1802
  const Se = Symbol("_notifyChange");
1792
- class ir {
1803
+ class lr {
1793
1804
  //当前路由
1794
1805
  currentRoute;
1795
1806
  //当前页面的路由集合
@@ -1803,11 +1814,11 @@ class ir {
1803
1814
  this.currentRoute = e, this.routes = t;
1804
1815
  }
1805
1816
  }
1806
- const ue = Symbol("historyChangeConsumerKey"), or = Symbol("_navigateFirstRoute"), Ve = Symbol("_getRouteMark"), wt = Symbol("_getUrlSearch"), bt = Symbol("_generateLocation"), Be = Symbol("_setRouteMarkRecorder"), Te = Symbol("beforeRestoreFiltersKey"), lr = Symbol("_beforeRestore"), ar = "Symbol(_fox_restore_point)";
1817
+ const ue = Symbol("historyChangeConsumerKey"), ar = Symbol("_navigateFirstRoute"), Ve = Symbol("_getRouteMark"), St = Symbol("_getUrlSearch"), Pt = Symbol("_generateLocation"), We = Symbol("_setRouteMarkRecorder"), Ke = Symbol("beforeRestoreFiltersKey"), ur = Symbol("_beforeRestore"), fr = "Symbol(_fox_restore_point)";
1807
1818
  function $e(s, ...e) {
1808
1819
  return typeof s == "function" ? Reflect.apply(s, null, [...e]) : s;
1809
1820
  }
1810
- function ur(s) {
1821
+ function cr(s) {
1811
1822
  if (!Array.isArray(s))
1812
1823
  return !1;
1813
1824
  if (s.length === 0)
@@ -1815,7 +1826,7 @@ function ur(s) {
1815
1826
  const e = s[0];
1816
1827
  return !!(Reflect.has(e, "path") && Reflect.has(e, "root"));
1817
1828
  }
1818
- class qr {
1829
+ class Lr {
1819
1830
  /**
1820
1831
  * 基础路径
1821
1832
  */
@@ -1859,7 +1870,7 @@ class qr {
1859
1870
  /**
1860
1871
  * before restore 过滤器队列(用于刷新还原)
1861
1872
  */
1862
- [Te] = new Array();
1873
+ [Ke] = new Array();
1863
1874
  /**
1864
1875
  * 回退timeout
1865
1876
  */
@@ -1876,7 +1887,7 @@ class qr {
1876
1887
  * @param backTimeout
1877
1888
  */
1878
1889
  constructor(e = "hash", t = "", r = "", n = !0, i = !0, o = !1, a, l) {
1879
- this.mode = e, this.base = t, this.query = r, this.firstNavigate = n, this.historyMonitor = i, this.traceless = o, this.storage = a ?? T().sessionStorage, this.backTimeout = l ?? 320;
1890
+ this.mode = e, this.base = t, this.query = r, this.firstNavigate = n, this.historyMonitor = i, this.traceless = o, this.storage = a ?? K().sessionStorage, this.backTimeout = l ?? 320;
1880
1891
  }
1881
1892
  /**
1882
1893
  * 初始化
@@ -1884,7 +1895,7 @@ class qr {
1884
1895
  * @returns
1885
1896
  */
1886
1897
  init(e = !0) {
1887
- const t = T();
1898
+ const t = K();
1888
1899
  return typeof this.historyChange != "function" && (this.historyChange = () => {
1889
1900
  if (typeof this[ue] == "function") {
1890
1901
  const r = this[ue]();
@@ -1901,20 +1912,20 @@ class qr {
1901
1912
  let n = [];
1902
1913
  if (typeof r == "string" ? n = JSON.parse(r) : n = r, Array.isArray(n) && n.length > 0) {
1903
1914
  const i = this[Ve]() ?? "/";
1904
- this[Be](i, n);
1915
+ this[We](i, n);
1905
1916
  }
1906
1917
  } catch {
1907
1918
  }
1908
1919
  }
1909
- }), $t(t, "popstate", this.historyChange), this.firstNavigate && e && this[or](), Promise.resolve();
1920
+ }), nt(t, "popstate", this.historyChange), this.firstNavigate && e && this[ar](), Promise.resolve();
1910
1921
  }
1911
1922
  /**
1912
1923
  * 销毁
1913
1924
  */
1914
1925
  destroy() {
1915
1926
  if (this.historyChange) {
1916
- const e = T();
1917
- qt(e, "popstate", this.historyChange);
1927
+ const e = K();
1928
+ it(e, "popstate", this.historyChange);
1918
1929
  }
1919
1930
  }
1920
1931
  /**
@@ -1924,8 +1935,8 @@ class qr {
1924
1935
  * @param mark
1925
1936
  * @param routes
1926
1937
  */
1927
- [lr](e, t, r, n) {
1928
- for (let i of this[Te])
1938
+ [ur](e, t, r, n) {
1939
+ for (let i of this[Ke])
1929
1940
  try {
1930
1941
  const o = Reflect.apply(i, {}, [e, t, r, n]);
1931
1942
  if (o === !1)
@@ -1940,7 +1951,7 @@ class qr {
1940
1951
  * @param filter
1941
1952
  */
1942
1953
  beforeRestoreEach(e) {
1943
- this[Te].push(e);
1954
+ this[Ke].push(e);
1944
1955
  }
1945
1956
  /**
1946
1957
  * 移除before restore filter
@@ -1948,21 +1959,21 @@ class qr {
1948
1959
  * @returns
1949
1960
  */
1950
1961
  removeBeforeRestoreEach(e) {
1951
- const t = this[Te].indexOf(e);
1952
- return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1962
+ const t = this[Ke].indexOf(e);
1963
+ return t !== -1 ? (this[Ke].splice(t, 1), !0) : !1;
1953
1964
  }
1954
1965
  /**
1955
1966
  * 导航到第一个route
1956
1967
  */
1957
- [or]() {
1958
- const e = this[Ve]() ?? "/", t = this.storage.getItem(ar);
1968
+ [ar]() {
1969
+ const e = this[Ve]() ?? "/", t = this.storage.getItem(fr);
1959
1970
  if (t)
1960
1971
  try {
1961
1972
  const o = JSON.parse(t);
1962
1973
  if (o.mark === e && Array.isArray(o.routes) && o.routes.length > 0) {
1963
- const a = o.routes.filter((l, u) => (l.params = l.params ? Sr(l.params) : {}, this[lr](l, u, e, o.routes)));
1974
+ const a = o.routes.filter((l, u) => (l.params = l.params ? Er(l.params) : {}, this[ur](l, u, e, o.routes)));
1964
1975
  if (a.length > 0) {
1965
- const l = this[wt](), u = a.length - 1;
1976
+ const l = this[St](), u = a.length - 1;
1966
1977
  a[u].query = l || a[u].query, this[Se](a);
1967
1978
  return;
1968
1979
  }
@@ -1973,23 +1984,23 @@ class qr {
1973
1984
  let n;
1974
1985
  r != -1 ? n = e.substring(r + 1) : n = e;
1975
1986
  const i = new S();
1976
- i.path = n, i.query = this[wt](), this[Se]([i]);
1987
+ i.path = n, i.query = this[St](), this[Se]([i]);
1977
1988
  }
1978
1989
  /**
1979
1990
  * 设置当前route mark的记录
1980
1991
  * @param mark
1981
1992
  * @param routes
1982
1993
  */
1983
- [Be](e, t) {
1994
+ [We](e, t) {
1984
1995
  try {
1985
1996
  t.forEach((i) => {
1986
- i.params = i.params ? Rr(i.params) : {};
1997
+ i.params = i.params ? Pr(i.params) : {};
1987
1998
  });
1988
1999
  const n = JSON.stringify({
1989
2000
  mark: e,
1990
2001
  routes: t
1991
2002
  });
1992
- this.storage.setItem(ar, n);
2003
+ this.storage.setItem(fr, n);
1993
2004
  } catch (r) {
1994
2005
  console.error(r.message, r);
1995
2006
  }
@@ -2001,7 +2012,7 @@ class qr {
2001
2012
  */
2002
2013
  setRestorePoint(e) {
2003
2014
  const t = this[Ve]() ?? "/";
2004
- this[Be](t, e);
2015
+ this[We](t, e);
2005
2016
  }
2006
2017
  /**
2007
2018
  * 通知修改
@@ -2013,7 +2024,7 @@ class qr {
2013
2024
  * 获取当前标志
2014
2025
  */
2015
2026
  [Ve]() {
2016
- const e = T();
2027
+ const e = K();
2017
2028
  if (this.mode === "path") {
2018
2029
  let t = e.location.pathname;
2019
2030
  return this.base && t.indexOf(this.base) === 0 && (t = t.substring(this.base.length)), t;
@@ -2027,8 +2038,8 @@ class qr {
2027
2038
  /**
2028
2039
  * 获取当前search
2029
2040
  */
2030
- [wt]() {
2031
- let t = T().location.search;
2041
+ [St]() {
2042
+ let t = K().location.search;
2032
2043
  return t.length > 0 && t.indexOf("?") === 0 && (t = t.substring(1)), t;
2033
2044
  }
2034
2045
  /**
@@ -2044,7 +2055,7 @@ class qr {
2044
2055
  * @param consume
2045
2056
  */
2046
2057
  go(e, t = !1) {
2047
- const r = T();
2058
+ const r = K();
2048
2059
  this[ue] = t, r.history.go(e);
2049
2060
  }
2050
2061
  /**
@@ -2053,8 +2064,8 @@ class qr {
2053
2064
  * @param trigger
2054
2065
  */
2055
2066
  goBack(e, t) {
2056
- const r = T(), n = r.history.state;
2057
- if (ur(n) && n.length > 0) {
2067
+ const r = K(), n = r.history.state;
2068
+ if (cr(n) && n.length > 0) {
2058
2069
  let i = !1;
2059
2070
  for (let f = n.length - 1; f >= 0; f--) {
2060
2071
  const c = S.from(n[f]);
@@ -2073,8 +2084,8 @@ class qr {
2073
2084
  r.history.go(-1), a = setTimeout(l, o);
2074
2085
  }, u = () => {
2075
2086
  clearTimeout(a);
2076
- const c = T().history.state;
2077
- if (ur(c) && c.length > 0) {
2087
+ const c = K().history.state;
2088
+ if (cr(c) && c.length > 0) {
2078
2089
  let h = c.length;
2079
2090
  const y = c[h - 1], d = S.from(y);
2080
2091
  if (S.isSame(d, e))
@@ -2105,30 +2116,30 @@ class qr {
2105
2116
  */
2106
2117
  setRouteMark(e) {
2107
2118
  const t = e.currentRoute.fullPath;
2108
- this[Be](t, e.routes);
2119
+ this[We](t, e.routes);
2109
2120
  }
2110
2121
  /**
2111
2122
  * 加入记录
2112
2123
  * @param record
2113
2124
  */
2114
2125
  push(e) {
2115
- const t = this[bt](e.currentRoute);
2116
- e.currentRoute.historyUpdatePolicy !== "traceless" && !$e(this.traceless, e.currentRoute) && T().history.pushState(e.routes, "", t), this.setRouteMark(e);
2126
+ const t = this[Pt](e.currentRoute);
2127
+ e.currentRoute.historyUpdatePolicy !== "traceless" && !$e(this.traceless, e.currentRoute) && K().history.pushState(e.routes, "", t), this.setRouteMark(e);
2117
2128
  }
2118
2129
  /**
2119
2130
  * 替换当前记录
2120
2131
  * @param record
2121
2132
  */
2122
2133
  replace(e) {
2123
- const t = this[bt](e.currentRoute);
2124
- (e.currentRoute.historyUpdatePolicy !== "traceless" || !$e(this.traceless, e.currentRoute)) && T().history.replaceState(e.routes, "", t), this.setRouteMark(e);
2134
+ const t = this[Pt](e.currentRoute);
2135
+ (e.currentRoute.historyUpdatePolicy !== "traceless" || !$e(this.traceless, e.currentRoute)) && K().history.replaceState(e.routes, "", t), this.setRouteMark(e);
2125
2136
  }
2126
2137
  /**
2127
2138
  * 生成Location
2128
2139
  * @param route
2129
2140
  */
2130
- [bt](e) {
2131
- const t = T();
2141
+ [Pt](e) {
2142
+ const t = K();
2132
2143
  let r = "";
2133
2144
  if (e.query) {
2134
2145
  let a = "";
@@ -2148,13 +2159,13 @@ class qr {
2148
2159
  return r ? this.mode == "path" ? i.indexOf("/") === 0 ? o = `${this.base}${i}${r}` : o = `${this.base}/${i}${r}` : o = `${n.pathname}${r}#${i}` : this.mode == "path" ? i.indexOf("/") === 0 ? o = `${this.base}${i}` : o = `${this.base}/${i}` : o = `${n.pathname}#${i}`, `${n.origin}${o}`;
2149
2160
  }
2150
2161
  }
2151
- function xn(s = !0, e = null, t = "", r = !0, n = !1, i) {
2152
- return e !== null && (e = T().location.pathname), e && e.endsWith("/") && (e = e.substring(0, e.length - 1)), new qr("path", e ?? "", t, s, r, n, i);
2162
+ function An(s = !0, e = null, t = "", r = !0, n = !1, i) {
2163
+ return e !== null && (e = K().location.pathname), e && e.endsWith("/") && (e = e.substring(0, e.length - 1)), new Lr("path", e ?? "", t, s, r, n, i);
2153
2164
  }
2154
- function Ts(s = !0, e = "", t = !0, r = !1, n) {
2155
- return new qr("hash", "", e, s, t, r, n);
2165
+ function Is(s = !0, e = "", t = !0, r = !1, n) {
2166
+ return new Lr("hash", "", e, s, t, r, n);
2156
2167
  }
2157
- class $s {
2168
+ class Ns {
2158
2169
  /**
2159
2170
  * 历史最大记录
2160
2171
  */
@@ -2303,14 +2314,14 @@ class $s {
2303
2314
  setRestorePoint(e) {
2304
2315
  }
2305
2316
  }
2306
- function qs(s = "", e = 50) {
2307
- return new $s(s, e);
2317
+ function Hs(s = "", e = 50) {
2318
+ return new Ns(s, e);
2308
2319
  }
2309
- const ke = Symbol("_constructRouteModel"), We = Symbol("_findRouteModel"), xt = Symbol("_findRootView"), fr = Symbol("_getFirstView"), fe = Symbol("_removeView"), cr = Symbol("_buildPage"), hr = Symbol("_resolveComponent"), yr = Symbol("_update"), ie = Symbol("_merge"), Rt = Symbol("_handleHistoryChange"), ze = Symbol("_handleRouteUpdated"), Je = Symbol("routeUpdatedCallback"), w = Symbol("currentRoutes"), ge = Symbol("current"), dr = Symbol("_addRouteRecorder"), qe = Symbol("_removeRouteRecorder"), Ge = Symbol("_cloneRouteRecorder"), j = Symbol("_handleError"), Qe = Symbol("errorCallback"), V = Symbol("registerKey"), Xe = Symbol("notFoundKey"), St = Symbol("notFoundPathKey"), B = Symbol("forestKey"), A = Symbol("historyKey"), je = Symbol("beforeFiltersKey"), Le = Symbol("afterFiltersKey"), Oe = Symbol("destroyFiltersKey"), Pt = Symbol("propsFilterKey"), we = Symbol("mainDispatcherKey"), Ct = Symbol("initKey"), ce = Symbol("readyKey"), At = Symbol("readyHandlersKey"), Ye = Symbol("_markReady"), pr = Symbol("_createNextFn"), Et = Symbol("_start"), Ft = Symbol("_before"), _t = Symbol("_after"), mr = Symbol("_destroy"), Kt = Symbol("_load"), Me = Symbol("_unload"), Ie = Symbol("routerGuardKey");
2310
- function js(s) {
2320
+ const ze = Symbol("_constructRouteModel"), Je = Symbol("_findRouteModel"), Et = Symbol("_findRootView"), hr = Symbol("_getFirstView"), fe = Symbol("_removeView"), yr = Symbol("_buildPage"), dr = Symbol("_resolveComponent"), pr = Symbol("_update"), ie = Symbol("_merge"), Ct = Symbol("_handleHistoryChange"), Ge = Symbol("_handleRouteUpdated"), Qe = Symbol("routeUpdatedCallback"), w = Symbol("currentRoutes"), ge = Symbol("current"), mr = Symbol("_addRouteRecorder"), qe = Symbol("_removeRouteRecorder"), Xe = Symbol("_cloneRouteRecorder"), j = Symbol("_handleError"), Ye = Symbol("errorCallback"), B = Symbol("registerKey"), Ze = Symbol("notFoundKey"), Ft = Symbol("notFoundPathKey"), V = Symbol("forestKey"), C = Symbol("historyKey"), je = Symbol("beforeFiltersKey"), Le = Symbol("afterFiltersKey"), Oe = Symbol("destroyFiltersKey"), At = Symbol("propsFilterKey"), we = Symbol("mainDispatcherKey"), _t = Symbol("initKey"), ce = Symbol("readyKey"), Tt = Symbol("readyHandlersKey"), et = Symbol("_markReady"), vr = Symbol("_createNextFn"), Kt = Symbol("_start"), $t = Symbol("_before"), qt = Symbol("_after"), gr = Symbol("_destroy"), jt = Symbol("_load"), Me = Symbol("_unload"), Ie = Symbol("routerGuardKey");
2321
+ function Ds(s) {
2311
2322
  return s.layers.length == 0 || s.layers[0].views.length == 0;
2312
2323
  }
2313
- function Ls(s) {
2324
+ function Us(s) {
2314
2325
  let e = [];
2315
2326
  return s.layers.forEach((t) => {
2316
2327
  t.models == null || t.models == null || t.models.forEach((r) => {
@@ -2323,19 +2334,19 @@ function Ls(s) {
2323
2334
  });
2324
2335
  }), e;
2325
2336
  }
2326
- class Os {
2337
+ class ks {
2327
2338
  /**
2328
2339
  * 注册表
2329
2340
  */
2330
- [V] = new Array();
2341
+ [B] = new Array();
2331
2342
  /**
2332
2343
  * not found route
2333
2344
  */
2334
- [Xe];
2345
+ [Ze];
2335
2346
  /**
2336
2347
  * not found route path
2337
2348
  */
2338
- [St] = "*";
2349
+ [Ft] = "*";
2339
2350
  /**
2340
2351
  * ready
2341
2352
  */
@@ -2343,15 +2354,15 @@ class Os {
2343
2354
  /**
2344
2355
  * ready handlers
2345
2356
  */
2346
- [At] = [];
2357
+ [Tt] = [];
2347
2358
  /**
2348
2359
  * 页面根节点
2349
2360
  */
2350
- [B] = new Fs();
2361
+ [V] = new Ls();
2351
2362
  /**
2352
2363
  * 历史记录控制器
2353
2364
  */
2354
- [A];
2365
+ [C];
2355
2366
  /**
2356
2367
  * 当前路由集合
2357
2368
  */
@@ -2359,11 +2370,11 @@ class Os {
2359
2370
  /**
2360
2371
  * 错误回调
2361
2372
  */
2362
- [Qe] = null;
2373
+ [Ye] = null;
2363
2374
  /**
2364
2375
  * 全局route更新监听器
2365
2376
  */
2366
- [Je] = null;
2377
+ [Qe] = null;
2367
2378
  /**
2368
2379
  * before过滤器队列
2369
2380
  */
@@ -2379,23 +2390,23 @@ class Os {
2379
2390
  /**
2380
2391
  * 属性传递过滤器
2381
2392
  */
2382
- [Pt] = null;
2393
+ [At] = null;
2383
2394
  /**
2384
2395
  * 主任务分发器
2385
2396
  */
2386
- [we] = new st();
2397
+ [we] = new lt();
2387
2398
  /**
2388
2399
  * 路由守护者
2389
2400
  */
2390
- [Ie] = new Ks();
2401
+ [Ie] = new Ms();
2391
2402
  /**
2392
2403
  * 是否初始化
2393
2404
  */
2394
- [Ct] = !1;
2405
+ [_t] = !1;
2395
2406
  /**
2396
2407
  * 当前最新路由
2397
2408
  */
2398
- [ge] = gr(null);
2409
+ [ge] = br(null);
2399
2410
  /**
2400
2411
  * 获取当前最新route
2401
2412
  */
@@ -2411,18 +2422,18 @@ class Os {
2411
2422
  constructor(e) {
2412
2423
  this.options = e ?? {}, this.options.notFoundPath && this.setNotFoundPath(this.options.notFoundPath);
2413
2424
  let t = this.options.routes || [];
2414
- this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[A] = e.history : this[A] = Ce ? Ts() : qs(), this[A]?.listen(async (r) => {
2425
+ this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[C] = e.history : this[C] = Ee ? Is() : Hs(), this[C]?.listen(async (r) => {
2415
2426
  let n = !0;
2416
2427
  try {
2417
2428
  if (typeof r == "string") {
2418
2429
  const i = this[H](r);
2419
- i && await this[Rt]([i]);
2430
+ i && await this[Ct]([i]);
2420
2431
  } else
2421
- await this[Rt](r);
2432
+ await this[Ct](r);
2422
2433
  } catch (i) {
2423
2434
  console.error(i.message, i), n = !1;
2424
2435
  }
2425
- this[ce] === !1 && this[Ye](n);
2436
+ this[ce] === !1 && this[et](n);
2426
2437
  });
2427
2438
  }
2428
2439
  /**
@@ -2436,9 +2447,9 @@ class Os {
2436
2447
  t.error(e);
2437
2448
  } catch {
2438
2449
  }
2439
- if (typeof this[Qe] == "function")
2450
+ if (typeof this[Ye] == "function")
2440
2451
  try {
2441
- this[Qe](e, t);
2452
+ this[Ye](e, t);
2442
2453
  } catch {
2443
2454
  }
2444
2455
  console.error(e);
@@ -2447,21 +2458,21 @@ class Os {
2447
2458
  * 初始化
2448
2459
  */
2449
2460
  init() {
2450
- this[Ct] !== !0 && (this[A]?.init(!this[ce]), this[Ct] = !0);
2461
+ this[_t] !== !0 && (this[C]?.init(!this[ce]), this[_t] = !0);
2451
2462
  }
2452
2463
  /**
2453
2464
  * 第一次导航是否完成
2454
2465
  */
2455
2466
  isReady() {
2456
2467
  return this[ce] ? Promise.resolve() : new Promise((e, t) => {
2457
- this[At].push([e, t]);
2468
+ this[Tt].push([e, t]);
2458
2469
  });
2459
2470
  }
2460
2471
  /**
2461
2472
  * 设置第一导航完成
2462
2473
  */
2463
- [Ye](e) {
2464
- this[ce] = !0, this[At].forEach(([t, r]) => {
2474
+ [et](e) {
2475
+ this[ce] = !0, this[Tt].forEach(([t, r]) => {
2465
2476
  try {
2466
2477
  e ? t() : r();
2467
2478
  } catch (n) {
@@ -2473,11 +2484,11 @@ class Os {
2473
2484
  * 处理历史记录
2474
2485
  * @param record
2475
2486
  */
2476
- [Rt](e) {
2487
+ [Ct](e) {
2477
2488
  try {
2478
2489
  if (!e) {
2479
2490
  let o = [...this[w]].reverse();
2480
- return this[Me](o), Ce && T().location.reload(), Promise.resolve();
2491
+ return this[Me](o), Ee && K().location.reload(), Promise.resolve();
2481
2492
  }
2482
2493
  let t = null, r = [], n = [], i = 0;
2483
2494
  for (; i < e.length && i < this[w].length && S.isSame(e[i], this[w][i]); i++)
@@ -2503,16 +2514,16 @@ class Os {
2503
2514
  * 处理route updated事件
2504
2515
  * @param route
2505
2516
  */
2506
- [ze](e) {
2517
+ [Ge](e) {
2507
2518
  if (e)
2508
2519
  this[ge].value = e;
2509
2520
  else {
2510
2521
  let t = this[w].length;
2511
2522
  t > 0 ? this[ge].value = this[w][t - 1] : this[ge].value = null;
2512
2523
  }
2513
- if (typeof this[Je] == "function")
2524
+ if (typeof this[Qe] == "function")
2514
2525
  try {
2515
- this[Je](this[ge].value);
2526
+ this[Qe](this[ge].value);
2516
2527
  } catch {
2517
2528
  }
2518
2529
  }
@@ -2520,7 +2531,7 @@ class Os {
2520
2531
  * 加入路由记录
2521
2532
  * @param route
2522
2533
  */
2523
- [dr](e) {
2534
+ [mr](e) {
2524
2535
  if (e.opsType === q.Open) {
2525
2536
  let t = !1;
2526
2537
  const r = this[w].length - 1;
@@ -2542,7 +2553,7 @@ class Os {
2542
2553
  * 克隆路由记录
2543
2554
  * @returns
2544
2555
  */
2545
- [Ge]() {
2556
+ [Xe]() {
2546
2557
  let e = [];
2547
2558
  for (let t of this[w]) {
2548
2559
  let r = S.clone(t, !0);
@@ -2566,66 +2577,66 @@ class Os {
2566
2577
  }
2567
2578
  if (t != -1) {
2568
2579
  let r = this[w][t];
2569
- this[w].splice(t, 1), this[mr](r, r.session);
2580
+ this[w].splice(t, 1), this[gr](r, r.session);
2570
2581
  }
2571
2582
  }
2572
2583
  /**
2573
2584
  * 设置history monitor是否启动
2574
2585
  */
2575
2586
  set historyMonitor(e) {
2576
- this[A] && (this[A].historyMonitor = e);
2587
+ this[C] && (this[C].historyMonitor = e);
2577
2588
  }
2578
2589
  /**
2579
2590
  * 获取history monitor
2580
2591
  */
2581
2592
  get historyMonitor() {
2582
- return this[A] ? this[A].historyMonitor : !1;
2593
+ return this[C] ? this[C].historyMonitor : !1;
2583
2594
  }
2584
2595
  /**
2585
2596
  * 设置无痕模式,不改变历史记录
2586
2597
  */
2587
2598
  set traceless(e) {
2588
- this[A] && (this[A].traceless = e);
2599
+ this[C] && (this[C].traceless = e);
2589
2600
  }
2590
2601
  /**
2591
2602
  * 获取无痕模式(不改变历史记录)
2592
2603
  */
2593
2604
  get traceless() {
2594
- return this[A] ? this[A].traceless : !1;
2605
+ return this[C] ? this[C].traceless : !1;
2595
2606
  }
2596
2607
  /**
2597
2608
  * 设置属性传递过滤器
2598
2609
  */
2599
2610
  set propsFilter(e) {
2600
- this[Pt] = e;
2611
+ this[At] = e;
2601
2612
  }
2602
2613
  /**
2603
2614
  * 获取属性传递过滤器
2604
2615
  */
2605
2616
  get propsFilter() {
2606
- return this[Pt];
2617
+ return this[At];
2607
2618
  }
2608
2619
  /**
2609
2620
  * 设置还原点
2610
2621
  *
2611
2622
  */
2612
2623
  setRestorePoint() {
2613
- const e = this[Ge]();
2614
- this[A]?.setRestorePoint(e);
2624
+ const e = this[Xe]();
2625
+ this[C]?.setRestorePoint(e);
2615
2626
  }
2616
2627
  /**
2617
2628
  * 注册route updated处理函数
2618
2629
  * @param callback
2619
2630
  */
2620
2631
  onRouteUpdated(e) {
2621
- this[Je] = e;
2632
+ this[Qe] = e;
2622
2633
  }
2623
2634
  /**
2624
2635
  * 注册全局异常处理函数
2625
2636
  * @param callback
2626
2637
  */
2627
2638
  onError(e) {
2628
- this[Qe] = e;
2639
+ this[Ye] = e;
2629
2640
  }
2630
2641
  /**
2631
2642
  * 添加before filter
@@ -2679,7 +2690,7 @@ class Os {
2679
2690
  * @param filter
2680
2691
  */
2681
2692
  beforeRestoreEach(e) {
2682
- this[A]?.beforeRestoreEach(e);
2693
+ this[C]?.beforeRestoreEach(e);
2683
2694
  }
2684
2695
  /**
2685
2696
  * 移除before restore filter
@@ -2687,7 +2698,7 @@ class Os {
2687
2698
  * @returns
2688
2699
  */
2689
2700
  removeBeforeRestoreEach(e) {
2690
- return this[A]?.removeBeforeRestoreEach(e) ?? !1;
2701
+ return this[C]?.removeBeforeRestoreEach(e) ?? !1;
2691
2702
  }
2692
2703
  /**
2693
2704
  * 加入路由配置列表
@@ -2703,16 +2714,16 @@ class Os {
2703
2714
  * @param index
2704
2715
  */
2705
2716
  addRoute(e, t = -1) {
2706
- if (e.path === this[St]) {
2717
+ if (e.path === this[Ft]) {
2707
2718
  this.setNotFoundRoute(e);
2708
2719
  return;
2709
2720
  }
2710
- const r = this[ke](e);
2721
+ const r = this[ze](e);
2711
2722
  if (t == -1)
2712
- this[V] = [...this[V], ...r];
2723
+ this[B] = [...this[B], ...r];
2713
2724
  else
2714
2725
  for (let n = r.length - 1; n >= 0; n--)
2715
- this[V].splice(t, 0, r[n]);
2726
+ this[B].splice(t, 0, r[n]);
2716
2727
  }
2717
2728
  /**
2718
2729
  * 移除路由
@@ -2723,12 +2734,12 @@ class Os {
2723
2734
  const t = this[H](e);
2724
2735
  if (t === null)
2725
2736
  return console.warn("route格式错误", e), !1;
2726
- for (let r = 0; r < this[V].length; r++) {
2727
- const n = this[V][r];
2737
+ for (let r = 0; r < this[B].length; r++) {
2738
+ const n = this[B][r];
2728
2739
  if (t?.path && n.path === t.path)
2729
- return this[V].splice(r, 1), !0;
2740
+ return this[B].splice(r, 1), !0;
2730
2741
  if (t?.name && n.name === t.name)
2731
- return this[V].splice(r, 1), !0;
2742
+ return this[B].splice(r, 1), !0;
2732
2743
  }
2733
2744
  return !1;
2734
2745
  }
@@ -2739,7 +2750,7 @@ class Os {
2739
2750
  */
2740
2751
  hasRoute(e) {
2741
2752
  const t = this[H](e);
2742
- return t === null ? (console.warn("route格式错误", e), !1) : this[V].findIndex((n) => {
2753
+ return t === null ? (console.warn("route格式错误", e), !1) : this[B].findIndex((n) => {
2743
2754
  if (t?.path && n.path === t.path || t?.name && n.name === t.name)
2744
2755
  return !0;
2745
2756
  }) !== -1;
@@ -2749,57 +2760,57 @@ class Os {
2749
2760
  * @param path
2750
2761
  */
2751
2762
  setNotFoundPath(e) {
2752
- this[St] = e;
2763
+ this[Ft] = e;
2753
2764
  }
2754
2765
  /**
2755
2766
  * 配置not found路由配置
2756
2767
  * @param routeConfig
2757
2768
  */
2758
2769
  setNotFoundRoute(e) {
2759
- const t = this[ke](e);
2760
- this[Xe] = t[0];
2770
+ const t = this[ze](e);
2771
+ this[Ze] = t[0];
2761
2772
  }
2762
2773
  /**
2763
2774
  * 返回目前加载的routes
2764
2775
  */
2765
2776
  getRoutes() {
2766
- return [...this[V]];
2777
+ return [...this[B]];
2767
2778
  }
2768
2779
  /**
2769
2780
  * 根据路由构建route model
2770
2781
  *
2771
2782
  * @param routeConfig
2772
2783
  */
2773
- [ke](e) {
2784
+ [ze](e) {
2774
2785
  let t = e.path ?? "";
2775
2786
  t.length > 0 && t.charAt(0) !== "/" && (t = `/${t}`);
2776
2787
  let r = e.components ?? (e.component && { "": e.component });
2777
2788
  if (r == null) {
2778
- const a = new yt();
2789
+ const a = new vt();
2779
2790
  return a.path = t, a.redirect = e.redirect, [a];
2780
2791
  }
2781
2792
  let n = [];
2782
2793
  for (let a in r) {
2783
2794
  let l = r[a];
2784
2795
  a.length === 0 && (a = te);
2785
- let u = new hs(a, l, e.props, e.meta);
2796
+ let u = new ps(a, l, e.props, e.meta);
2786
2797
  n.push(u);
2787
2798
  }
2788
2799
  let i = !1, o = [];
2789
2800
  if (e.children)
2790
2801
  for (let a of e.children) {
2791
- let l = this[ke](a);
2802
+ let l = this[ze](a);
2792
2803
  for (let u of l) {
2793
- let f = new yt();
2804
+ let f = new vt();
2794
2805
  f.name = u.name, u.path && u.path.length > 0 ? t !== "/" ? f.path = `${t}${u.path}` : f.path = u.path : (i = !0, f.path = t);
2795
- let c = new Yt();
2806
+ let c = new er();
2796
2807
  c.models = [...n], f.layers = [c, ...u.layers], o.push(f);
2797
2808
  }
2798
2809
  }
2799
2810
  if (!i) {
2800
- const a = new Yt();
2811
+ const a = new er();
2801
2812
  a.models = n;
2802
- const l = new yt();
2813
+ const l = new vt();
2803
2814
  l.name = e.name, l.path = t, l.layers = [a], o.splice(0, 0, l);
2804
2815
  }
2805
2816
  return o;
@@ -2808,14 +2819,14 @@ class Os {
2808
2819
  * 查找route model
2809
2820
  * @param cite
2810
2821
  */
2811
- [We](e) {
2822
+ [Je](e) {
2812
2823
  const t = e.route;
2813
2824
  try {
2814
- for (let r of this[V]) {
2825
+ for (let r of this[B]) {
2815
2826
  const n = t.template ?? t.path, i = t.template ?? t.name;
2816
2827
  if (n && r.path) {
2817
2828
  let o = r.match;
2818
- o || (o = r.match = Rs(r.path));
2829
+ o || (o = r.match = _s(r.path));
2819
2830
  const a = o(n);
2820
2831
  if (!a)
2821
2832
  continue;
@@ -2826,7 +2837,7 @@ class Os {
2826
2837
  route: l,
2827
2838
  find: void 0
2828
2839
  };
2829
- return this[We](u) ? (e.route = u.route, e.find = u.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
2840
+ return this[Je](u) ? (e.route = u.route, e.find = u.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
2830
2841
  }
2831
2842
  if (t.params = t.params ?? {}, $(!0, t.params, a.params), t.query) {
2832
2843
  const l = t.query;
@@ -2846,7 +2857,7 @@ class Os {
2846
2857
  return e.find = r, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0;
2847
2858
  } else if (i === r.name) {
2848
2859
  t.params = t.params ?? {};
2849
- const o = bs(r.path);
2860
+ const o = Fs(r.path);
2850
2861
  return t.path = o(t.params), e.find = r, t.template && e.find && (e.find = { ...e.find }, e.find.name = t.name), !0;
2851
2862
  }
2852
2863
  }
@@ -2947,7 +2958,7 @@ class Os {
2947
2958
  }
2948
2959
  } else {
2949
2960
  o = te;
2950
- let u = this[fr](this[B]);
2961
+ let u = this[hr](this[V]);
2951
2962
  u && (o = u.name);
2952
2963
  for (let f = this[w].length - 1; f > 0; f--) {
2953
2964
  let c = this[w][f];
@@ -2968,7 +2979,7 @@ class Os {
2968
2979
  return n.resolve(), r(!0), !0;
2969
2980
  const u = () => (n.resolve(), r(!0), !0), f = this[w].length;
2970
2981
  if (l && S.isSame(l, this[w][f - 1])) {
2971
- this[A]?.goBack(l, u);
2982
+ this[C]?.goBack(l, u);
2972
2983
  return;
2973
2984
  }
2974
2985
  u();
@@ -3020,7 +3031,7 @@ class Os {
3020
3031
  t.resolve();
3021
3032
  return;
3022
3033
  }
3023
- this[Me](n) && this[ze](), t.resolve();
3034
+ this[Me](n) && this[Ge](), t.resolve();
3024
3035
  } catch (r) {
3025
3036
  this[j](r), t.resolve();
3026
3037
  }
@@ -3037,28 +3048,28 @@ class Os {
3037
3048
  let r = this[Ie].acquire(t);
3038
3049
  return r == null ? (this[j]("route forbid", t), this) : (this[we].post((n) => {
3039
3050
  try {
3040
- let i = this[Et](t);
3041
- this[Ft](i), this[Kt](i), this[_t](i), i.wait(
3051
+ let i = this[Kt](t);
3052
+ this[$t](i), this[jt](i), this[qt](i), i.wait(
3042
3053
  (o, a) => {
3043
3054
  const l = o.session.to;
3044
3055
  if (o.session.updateResult && o.session.updateResult.status === "success")
3045
3056
  try {
3046
3057
  let u = S.clone(l, !0);
3047
- const f = new ir(u, this[Ge]());
3048
- l.historyUpdatePolicy === "replace" ? this[A]?.replace(f) : l.historyUpdatePolicy === "traceless" ? this[A]?.setRouteMark(f) : this[A]?.push(f);
3058
+ const f = new lr(u, this[Xe]());
3059
+ l.historyUpdatePolicy === "replace" ? this[C]?.replace(f) : l.historyUpdatePolicy === "traceless" ? this[C]?.setRouteMark(f) : this[C]?.push(f);
3049
3060
  } catch (u) {
3050
3061
  console.error(u.message, u);
3051
3062
  }
3052
- if (this[Ie].release(r), this[ze](l), typeof t.success == "function")
3063
+ if (this[Ie].release(r), this[Ge](l), typeof t.success == "function")
3053
3064
  try {
3054
3065
  Reflect.apply(t.success, {}, []);
3055
3066
  } catch (u) {
3056
3067
  console.error(u.message, u);
3057
3068
  }
3058
- this[ce] === !1 && this[Ye](!0), n.resolve();
3069
+ this[ce] === !1 && this[et](!0), n.resolve();
3059
3070
  },
3060
3071
  (o, a) => {
3061
- this[Ie].release(r), a !== null && this[j](a, t), this[ce] === !1 && this[Ye](!1), n.resolve();
3072
+ this[Ie].release(r), a !== null && this[j](a, t), this[ce] === !1 && this[et](!1), n.resolve();
3062
3073
  }
3063
3074
  );
3064
3075
  } catch (i) {
@@ -3071,12 +3082,12 @@ class Os {
3071
3082
  * @param delta
3072
3083
  */
3073
3084
  back(e = 1) {
3074
- this[A]?.go(-e, !1);
3085
+ this[C]?.go(-e, !1);
3075
3086
  }
3076
3087
  /**
3077
3088
  * 创建next函数
3078
3089
  */
3079
- [pr](e) {
3090
+ [vr](e) {
3080
3091
  return (t, r) => {
3081
3092
  if (typeof t == "boolean")
3082
3093
  e.session.redirect = !1, t ? e.resolve() : e.reject(r ?? null);
@@ -3096,23 +3107,23 @@ class Os {
3096
3107
  * @param route
3097
3108
  * @returns {EventChain}
3098
3109
  */
3099
- [Et](e) {
3100
- let t = this[w].length > 0 ? this[w][0] : void 0, r = new rt(e, t), n = {
3110
+ [Kt](e) {
3111
+ let t = this[w].length > 0 ? this[w][0] : void 0, r = new ot(e, t), n = {
3101
3112
  //路由
3102
3113
  route: e,
3103
3114
  //查找结果
3104
3115
  find: null
3105
3116
  };
3106
- return this[We](n), n.find && (r.routeModel = n.find, e.matched = Ls(n.find), Array.isArray(e.matched) && e.matched.length > 0 && (e.meta = n.find.layers[0].models[0].meta)), new st(r);
3117
+ return this[Je](n), n.find && (r.routeModel = n.find, e.matched = Us(n.find), Array.isArray(e.matched) && e.matched.length > 0 && (e.meta = n.find.layers[0].models[0].meta)), new lt(r);
3107
3118
  }
3108
3119
  /**
3109
3120
  * 执行before事件
3110
3121
  * @param chain
3111
3122
  */
3112
- [Ft](e) {
3123
+ [$t](e) {
3113
3124
  for (let t of this[je])
3114
3125
  e.post((r) => {
3115
- const n = this[pr](r);
3126
+ const n = this[vr](r);
3116
3127
  Reflect.apply(t, {}, [r.session.to, r.session.from, n, r.session]);
3117
3128
  });
3118
3129
  }
@@ -3120,7 +3131,7 @@ class Os {
3120
3131
  * 执行after事件
3121
3132
  * @param chain
3122
3133
  */
3123
- [_t](e) {
3134
+ [qt](e) {
3124
3135
  e.post((t) => {
3125
3136
  for (let r of this[Le])
3126
3137
  try {
@@ -3136,7 +3147,7 @@ class Os {
3136
3147
  * @param route
3137
3148
  * @param session
3138
3149
  */
3139
- [mr](e, t) {
3150
+ [gr](e, t) {
3140
3151
  for (let r of this[Oe])
3141
3152
  try {
3142
3153
  Reflect.apply(r, {}, [e, t]);
@@ -3149,7 +3160,7 @@ class Os {
3149
3160
  * 加载路由
3150
3161
  * @param chain
3151
3162
  */
3152
- [Kt](e) {
3163
+ [jt](e) {
3153
3164
  e.post((t) => {
3154
3165
  let r = t.session.to, n = t.session.routeModel;
3155
3166
  if (n == null) {
@@ -3159,19 +3170,19 @@ class Os {
3159
3170
  //查找结果
3160
3171
  find: null
3161
3172
  };
3162
- if (this[We](o))
3173
+ if (this[Je](o))
3163
3174
  n = o.find, t.session.routeModel = n;
3164
- else if (this[Xe])
3165
- n = this[Xe];
3175
+ else if (this[Ze])
3176
+ n = this[Ze];
3166
3177
  else {
3167
3178
  t.reject(`not find route model, path:${r.path ?? r.name}`);
3168
3179
  return;
3169
3180
  }
3170
3181
  }
3171
- let i = rt.from(t.session);
3172
- this[cr](r, n, i).then(
3182
+ let i = ot.from(t.session);
3183
+ this[yr](r, n, i).then(
3173
3184
  (o) => {
3174
- this[B], t.session.updateResult = o ?? {
3185
+ this[V], t.session.updateResult = o ?? {
3175
3186
  status: "success",
3176
3187
  message: ""
3177
3188
  }, t.resolve();
@@ -3190,9 +3201,9 @@ class Os {
3190
3201
  [Me](e) {
3191
3202
  if (e.length == 0)
3192
3203
  return !0;
3193
- let t = this[B], r = [];
3204
+ let t = this[V], r = [];
3194
3205
  for (let n of e) {
3195
- let i = this[xt](t, n);
3206
+ let i = this[Et](t, n);
3196
3207
  i != null && r.push({
3197
3208
  ...i,
3198
3209
  route: n
@@ -3211,14 +3222,14 @@ class Os {
3211
3222
  * @param page
3212
3223
  * @param route
3213
3224
  */
3214
- [xt](e, t) {
3225
+ [Et](e, t) {
3215
3226
  const r = t.root ?? te;
3216
3227
  let n;
3217
3228
  for (let i = 0; i < e.layers.length; i++) {
3218
3229
  const o = e.layers[i];
3219
3230
  for (let a = o.views.length - 1; a >= 0; a--) {
3220
3231
  const l = o.views[a];
3221
- if (l[J] && l[et] === r)
3232
+ if (l[G] && l[rt] === r)
3222
3233
  return n = { x: a, y: i }, n;
3223
3234
  }
3224
3235
  }
@@ -3228,7 +3239,7 @@ class Os {
3228
3239
  * 查找first view
3229
3240
  * @param page
3230
3241
  */
3231
- [fr](e) {
3242
+ [hr](e) {
3232
3243
  return e.layers.length > 0 && e.layers[0].views.length > 0 ? e.layers[0].views[0] : null;
3233
3244
  }
3234
3245
  /**
@@ -3244,7 +3255,7 @@ class Os {
3244
3255
  let i = e.layers[t.y].views[t.x], o = !1, a = [], l = !1, u = [...i.slots.value];
3245
3256
  for (let c = u.length - 1; c >= 0; c--) {
3246
3257
  let h = u[c];
3247
- (!r || r.indexOf(h.index) != -1) && (h.route && i[J] && (this[qe](h.route), h.active === !0 && h.route.opsType == q.Append && (l = !0)), a.push(new U(i, h.index, t.y)), u.splice(c, 1));
3258
+ (!r || r.indexOf(h.index) != -1) && (h.route && i[G] && (this[qe](h.route), h.active === !0 && h.route.opsType == q.Append && (l = !0)), a.push(new k(i, h.index, t.y)), u.splice(c, 1));
3248
3259
  }
3249
3260
  if (u.length == 0)
3250
3261
  n ? i.slots.value = u : e.layers[t.y].views.splice(t.x, 1);
@@ -3261,11 +3272,11 @@ class Os {
3261
3272
  let c = e.layers[f].views, h = [];
3262
3273
  for (let y = c.length - 1; (o || a.length > 0) && y >= 0; y--) {
3263
3274
  let d = c[y];
3264
- if (d[ye] && (o || U.include(a, d[ye]))) {
3275
+ if (d[ye] && (o || k.include(a, d[ye]))) {
3265
3276
  let m = d.slots.value;
3266
3277
  for (let p = m.length - 1; p >= 0; p--) {
3267
3278
  let v = m[p];
3268
- v.route && d[J] && this[qe](v.route), h.push(new U(d, v.index, f)), m.splice(p, 1);
3279
+ v.route && d[G] && this[qe](v.route), h.push(new k(d, v.index, f)), m.splice(p, 1);
3269
3280
  }
3270
3281
  e.layers[f].views.splice(y, 1);
3271
3282
  }
@@ -3280,21 +3291,21 @@ class Os {
3280
3291
  * @returns
3281
3292
  */
3282
3293
  restore(e) {
3283
- if (!e || this[V].length == 0) {
3284
- let t = this[B];
3294
+ if (!e || this[B].length == 0) {
3295
+ let t = this[V];
3285
3296
  if (t.layers.length > 0) {
3286
3297
  let r = t.layers[0].views;
3287
3298
  r.length > 0 && (r[0].slots.value = []);
3288
3299
  }
3289
- return this[w] = [], this[ze](), Promise.resolve();
3300
+ return this[w] = [], this[Ge](), Promise.resolve();
3290
3301
  } else
3291
3302
  return new Promise((r, n) => {
3292
3303
  let i = null, o = !1;
3293
3304
  for (let a = 0; a < e.length; a++) {
3294
3305
  const l = e[a];
3295
3306
  this[we].post((u) => {
3296
- const f = this[Et](l);
3297
- this[Ft](f), this[Kt](f), this[_t](f), f.wait(
3307
+ const f = this[Kt](l);
3308
+ this[$t](f), this[jt](f), this[qt](f), f.wait(
3298
3309
  (c, h) => {
3299
3310
  i = c.session.to, o = c.session.redirect, u.resolve();
3300
3311
  },
@@ -3306,8 +3317,8 @@ class Os {
3306
3317
  }
3307
3318
  this[we].post((a) => {
3308
3319
  if (i && o === !0) {
3309
- const l = S.clone(i, !0), u = new ir(l, this[Ge]());
3310
- this[A]?.replace(u);
3320
+ const l = S.clone(i, !0), u = new lr(l, this[Xe]());
3321
+ this[C]?.replace(u);
3311
3322
  }
3312
3323
  a.resolve(), r();
3313
3324
  });
@@ -3319,10 +3330,10 @@ class Os {
3319
3330
  * @param routeModel
3320
3331
  * @returns
3321
3332
  */
3322
- [cr](e, t, r) {
3323
- const n = e.updateType ?? Ze.Part;
3324
- return this[hr](t).then(() => {
3325
- const o = this[yr](t, e, r, n);
3333
+ [yr](e, t, r) {
3334
+ const n = e.updateType ?? tt.Part;
3335
+ return this[dr](t).then(() => {
3336
+ const o = this[pr](t, e, r, n);
3326
3337
  if (o.status === "error")
3327
3338
  throw Error(o.message);
3328
3339
  return o;
@@ -3331,7 +3342,7 @@ class Os {
3331
3342
  /**
3332
3343
  * 解析组件
3333
3344
  */
3334
- [hr](e) {
3345
+ [dr](e) {
3335
3346
  let t = [];
3336
3347
  for (let r = 0; r < e.layers.length; r++) {
3337
3348
  let n = e.layers[r];
@@ -3350,21 +3361,21 @@ class Os {
3350
3361
  * @param updateType
3351
3362
  * @returns
3352
3363
  */
3353
- [yr](e, t, r, n) {
3364
+ [pr](e, t, r, n) {
3354
3365
  if (e.layers[0].models.length !== 1)
3355
3366
  return {
3356
3367
  status: "error",
3357
3368
  message: "illegal route structure(multi root node)"
3358
3369
  };
3359
3370
  const i = e.layers[0].models[0];
3360
- let o = this[B], a = js(o), l = t.root ?? te, u;
3361
- !a && n == Ze.Part && (u = this[xt](o, t));
3371
+ let o = this[V], a = Ds(o), l = t.root ?? te, u;
3372
+ !a && n == tt.Part && (u = this[Et](o, t));
3362
3373
  let f, c = 0;
3363
3374
  if (u == null || u == null)
3364
- if (a || n === Ze.All) {
3365
- if (o.layers.length == 0 && (o.layers[0] = new gt()), o.layers[0].views.length == 0) {
3375
+ if (a || n === tt.All) {
3376
+ if (o.layers.length == 0 && (o.layers[0] = new Rt()), o.layers[0].views.length == 0) {
3366
3377
  let h = t.root ?? te;
3367
- f = new Ke(h, !0, null), o.layers[0].views = [f];
3378
+ f = new Te(h, !0, null), o.layers[0].views = [f];
3368
3379
  } else
3369
3380
  f = o.layers[0].views[0];
3370
3381
  u = { x: 0, y: 0 };
@@ -3385,12 +3396,12 @@ class Os {
3385
3396
  if (h.rootName) {
3386
3397
  let m = o.layers[y - 1];
3387
3398
  for (let p of m.views) {
3388
- if (p[J] && p.name === h.rootName) {
3389
- d = new U(p, h.rootIndex ?? 0, y - 1);
3399
+ if (p[G] && p.name === h.rootName) {
3400
+ d = new k(p, h.rootIndex ?? 0, y - 1);
3390
3401
  break;
3391
3402
  }
3392
- if (p[z] && p[z].view.name === h.rootName && p[z].index === h.rootIndex) {
3393
- d = p[z];
3403
+ if (p[J] && p[J].view.name === h.rootName && p[J].index === h.rootIndex) {
3404
+ d = p[J];
3394
3405
  break;
3395
3406
  }
3396
3407
  }
@@ -3400,11 +3411,11 @@ class Os {
3400
3411
  status: "error",
3401
3412
  message: "can not insert view(not find root node ref)"
3402
3413
  };
3403
- f = new Ke(l, !0, d), o.layers[y].views.push(f), u = { x: o.layers[y].views.length - 1, y };
3414
+ f = new Te(l, !0, d), o.layers[y].views.push(f), u = { x: o.layers[y].views.length - 1, y };
3404
3415
  }
3405
3416
  else
3406
3417
  f = o.layers[u.y].views[u.x];
3407
- if (c = u.y, f[J] = !0, t.opsType === q.Append) {
3418
+ if (c = u.y, f[G] = !0, t.opsType === q.Append) {
3408
3419
  t.index = t.index ?? le.get(), t.active = !0;
3409
3420
  let h = f.slots.value;
3410
3421
  if (h.length > 0) {
@@ -3413,7 +3424,7 @@ class Os {
3413
3424
  }
3414
3425
  let y = new ne(t, i, t.index, !0);
3415
3426
  f.slots.value = [...h, y];
3416
- let d = c + 1, m = 1, p = new U(f, t.index, c);
3427
+ let d = c + 1, m = 1, p = new k(f, t.index, c);
3417
3428
  this[ie](o, d, e, m, p);
3418
3429
  } else if (t.opsType === q.Open) {
3419
3430
  let h = f.slots.value;
@@ -3435,7 +3446,7 @@ class Os {
3435
3446
  t.index = t.index ?? le.get(), t.active = y;
3436
3447
  let m = new ne(t, i, t.index, y);
3437
3448
  h.push(m);
3438
- let p = c + 1, v = 1, g = new U(f, t.index, c);
3449
+ let p = c + 1, v = 1, g = new k(f, t.index, c);
3439
3450
  this[ie](o, p, e, v, g);
3440
3451
  }
3441
3452
  f.slots.value = [...h];
@@ -3443,13 +3454,13 @@ class Os {
3443
3454
  let h = f.slots.value;
3444
3455
  if (h.length == 0) {
3445
3456
  t.index = t.index ?? le.get(), t.active = !0, f.slots.value = [new ne(t, i, t.index)];
3446
- let y = c + 1, d = 1, m = new U(f, t.index, c);
3457
+ let y = c + 1, d = 1, m = new k(f, t.index, c);
3447
3458
  this[ie](o, y, e, d, m);
3448
3459
  } else {
3449
3460
  let y = h[0];
3450
3461
  if (y.model !== i) {
3451
3462
  this[fe](o, u, null, !0), t.index = t.index ?? le.get(), t.active = !0, f.slots.value = [new ne(t, i, t.index)];
3452
- let d = c + 1, m = 1, p = new U(f, t.index, c);
3463
+ let d = c + 1, m = 1, p = new k(f, t.index, c);
3453
3464
  this[ie](o, d, e, m, p);
3454
3465
  } else {
3455
3466
  y.route !== null && this[qe](y.route);
@@ -3457,61 +3468,61 @@ class Os {
3457
3468
  const m = t.active ?? !0;
3458
3469
  y.active !== m && (y.active = m, d = !0), t.active = m, t.index = y.index, y.route = t;
3459
3470
  let p = [];
3460
- for (let K = 1; K < h.length; K++)
3461
- p.push(h[K].index);
3471
+ for (let T = 1; T < h.length; T++)
3472
+ p.push(h[T].index);
3462
3473
  p.length > 0 ? this[fe](o, u, p, !0) : d && (f.slots.value = [...h]);
3463
- let v = [new U(f, t.index, c)], g = c + 1, _ = 1, b = new U(f, t.index, c);
3474
+ let v = [new k(f, t.index, c)], g = c + 1, _ = 1, b = new k(f, t.index, c);
3464
3475
  for (; v.length > 0 && g < o.layers.length && _ < e.layers.length; g++, _++) {
3465
- let K = [];
3476
+ let T = [];
3466
3477
  for (let P = 0; P < o.layers[g].views.length; P++) {
3467
- let C = o.layers[g].views[P];
3468
- C[ye] && U.include(v, C[ye]) && K.unshift(P);
3478
+ let E = o.layers[g].views[P];
3479
+ E[ye] && k.include(v, E[ye]) && T.unshift(P);
3469
3480
  }
3470
- let E = [];
3471
- for (let P of K) {
3472
- let C = o.layers[g].views[P], k = e.layers[_].models, M;
3473
- for (let I = 0; I < k.length; I++)
3474
- if (C.name === k[I].name) {
3475
- M = k[I];
3481
+ let F = [];
3482
+ for (let P of T) {
3483
+ let E = o.layers[g].views[P], W = e.layers[_].models, M;
3484
+ for (let I = 0; I < W.length; I++)
3485
+ if (E.name === W[I].name) {
3486
+ M = W[I];
3476
3487
  break;
3477
3488
  }
3478
3489
  if (!M)
3479
3490
  this[fe](o, { x: P, y: g }, null, !1);
3480
3491
  else {
3481
- let I = C.slots.value;
3492
+ let I = E.slots.value;
3482
3493
  if (I.length == 0) {
3483
- let X = 0;
3484
- C.slots.value = [new ne(null, M, X)];
3485
- let W = g + 1, re = _ + 1;
3486
- this[ie](o, W, e, re, b);
3494
+ let Y = 0;
3495
+ E.slots.value = [new ne(null, M, Y)];
3496
+ let z = g + 1, re = _ + 1;
3497
+ this[ie](o, z, e, re, b);
3487
3498
  } else {
3488
- let X = I[0];
3489
- if (X.model !== M) {
3490
- this[fe](o, { x: P, y: g }, null, !0), C.slots.value = [new ne(null, M, 0)];
3491
- let W = g + 1, re = _ + 1;
3492
- this[ie](o, W, e, re, b);
3499
+ let Y = I[0];
3500
+ if (Y.model !== M) {
3501
+ this[fe](o, { x: P, y: g }, null, !0), E.slots.value = [new ne(null, M, 0)];
3502
+ let z = g + 1, re = _ + 1;
3503
+ this[ie](o, z, e, re, b);
3493
3504
  } else {
3494
- C[J] && X.route !== null && this[qe](X.route);
3495
- let W = [];
3505
+ E[G] && Y.route !== null && this[qe](Y.route);
3506
+ let z = [];
3496
3507
  for (let re = 1; re < I.length; re++)
3497
- W.push(I[re].index);
3498
- W.length > 0 && this[fe](o, { x: P, y: g }, W, !0), E.push(new U(C, X.index, g));
3508
+ z.push(I[re].index);
3509
+ z.length > 0 && this[fe](o, { x: P, y: g }, z, !0), F.push(new k(E, Y.index, g));
3499
3510
  }
3500
3511
  }
3501
- C[J] = !1;
3512
+ E[G] = !1;
3502
3513
  }
3503
3514
  }
3504
- v = E;
3515
+ v = F;
3505
3516
  }
3506
3517
  this[ie](o, g, e, _, b);
3507
3518
  }
3508
3519
  }
3509
3520
  }
3510
- if (f && f[z]) {
3511
- let h = f[z];
3512
- h && (t.slot = new cs(l, c, h?.view.name, h?.index ?? 0));
3521
+ if (f && f[J]) {
3522
+ let h = f[J];
3523
+ h && (t.slot = new ds(l, c, h?.view.name, h?.index ?? 0));
3513
3524
  }
3514
- return r.to = void 0, r.routeModel = void 0, t.session = r, this[dr](t), {
3525
+ return r.to = void 0, r.routeModel = void 0, t.session = r, this[mr](t), {
3515
3526
  status: "success",
3516
3527
  message: ""
3517
3528
  };
@@ -3529,15 +3540,15 @@ class Os {
3529
3540
  for (; a < e.layers.length && o < r.layers.length; a++, o++) {
3530
3541
  let l = e.layers[a].views;
3531
3542
  for (let u of r.layers[o].models) {
3532
- let f = new Ke(u.name, !1, i), c = new ne(null, u);
3543
+ let f = new Te(u.name, !1, i), c = new ne(null, u);
3533
3544
  f.slots.value = [c], l.push(f);
3534
3545
  }
3535
3546
  }
3536
3547
  for (; o < r.layers.length; o++) {
3537
- let l = new gt();
3548
+ let l = new Rt();
3538
3549
  l.views = [];
3539
3550
  for (let u of r.layers[o].models) {
3540
- let f = new Ke(u.name, !1, i), c = new ne(null, u);
3551
+ let f = new Te(u.name, !1, i), c = new ne(null, u);
3541
3552
  f.slots.value = [c], l.views.push(f);
3542
3553
  }
3543
3554
  e.layers.push(l);
@@ -3554,13 +3565,13 @@ class Os {
3554
3565
  * @returns
3555
3566
  */
3556
3567
  [Ar](e, t, r, n, i, o) {
3557
- if (t < 0 || t > this[B].layers.length)
3568
+ if (t < 0 || t > this[V].layers.length)
3558
3569
  return null;
3559
- if (t < this[B].layers.length) {
3560
- let f = this[B].layers[t], c = null;
3570
+ if (t < this[V].layers.length) {
3571
+ let f = this[V].layers[t], c = null;
3561
3572
  for (let h of f.views) {
3562
3573
  let y = !1;
3563
- if (r !== null ? (y = h.name === e && h[z]?.view === r, y && n !== -1 && (y = h[z]?.index === n)) : y = h.name === e, !!y) {
3574
+ if (r !== null ? (y = h.name === e && h[J]?.view === r, y && n !== -1 && (y = h[J]?.index === n)) : y = h.name === e, !!y) {
3564
3575
  i !== null && (h[ye] = {
3565
3576
  view: i,
3566
3577
  index: o,
@@ -3573,82 +3584,82 @@ class Os {
3573
3584
  return c;
3574
3585
  }
3575
3586
  let a = null, l = null;
3576
- i !== null && (i[J] ? a = {
3587
+ i !== null && (i[G] ? a = {
3577
3588
  view: i,
3578
3589
  index: o,
3579
3590
  level: t - 1
3580
- } : a = i[z], l = {
3591
+ } : a = i[J], l = {
3581
3592
  view: i,
3582
3593
  index: o,
3583
3594
  level: t - 1
3584
3595
  });
3585
- let u = new Ke(e, !0, a);
3586
- if (u[ye] = l, t == this[B].layers.length) {
3587
- let f = new gt();
3588
- f.views = [u], this[B].layers.push(f);
3596
+ let u = new Te(e, !0, a);
3597
+ if (u[ye] = l, t == this[V].layers.length) {
3598
+ let f = new Rt();
3599
+ f.views = [u], this[V].layers.push(f);
3589
3600
  } else
3590
- this[B].layers[t].views.push(u);
3601
+ this[V].layers[t].views.push(u);
3591
3602
  return u;
3592
3603
  }
3593
3604
  }
3594
- const Ms = "fox-router-view", Is = "fox-router-link";
3595
- function jr(s, e = !1) {
3605
+ const Bs = "fox-router-view", Vs = "fox-router-link";
3606
+ function Or(s, e = !1) {
3596
3607
  let t = null;
3597
3608
  return e ? t = s.showFromClass ?? s.enterFromClass : t = s.enterFromClass, t || (t = s.transitionName, t ? e ? `${t}-show-from` : `${t}-enter-from` : null);
3598
3609
  }
3599
- function Lr(s, e = !1) {
3610
+ function Mr(s, e = !1) {
3600
3611
  let t = null;
3601
3612
  return e ? t = s.showActiveClass ?? s.enterActiveClass : t = s.enterActiveClass, t || (t = s.transitionName, t ? e ? `${t}-show-active` : `${t}-enter-active` : null);
3602
3613
  }
3603
- function Ns(s, e = !1) {
3614
+ function Ws(s, e = !1) {
3604
3615
  let t = null;
3605
3616
  return e ? t = s.showToClass ?? s.enterToClass : t = s.enterToClass, t || (t = s.transitionName, t ? e ? `${t}-show-to` : `${t}-enter-to` : null);
3606
3617
  }
3607
- function Or(s, e = !1) {
3618
+ function Ir(s, e = !1) {
3608
3619
  let t = null;
3609
3620
  return e ? t = s.hideFromClass ?? s.leaveFromClass : t = s.leaveFromClass, t || (t = s.transitionName, t ? e ? `${t}-hide-from` : `${t}-leave-from` : null);
3610
3621
  }
3611
- function Mr(s, e = !1) {
3622
+ function Nr(s, e = !1) {
3612
3623
  let t = null;
3613
3624
  return e ? t = s.hideActiveClass ?? s.leaveActiveClass : t = s.leaveActiveClass, t || (t = s.transitionName, t ? e ? `${t}-hide-active` : `${t}-leave-active` : null);
3614
3625
  }
3615
- function Hs(s, e = !1) {
3626
+ function zs(s, e = !1) {
3616
3627
  let t = null;
3617
3628
  return e ? t = s.hideToClass ?? s.leaveToClass : t = s.leaveToClass, t || (t = s.transitionName, t ? e ? `${t}-hide-to` : `${t}-leave-to` : null);
3618
3629
  }
3619
- function Ds(s, e = !1) {
3630
+ function Js(s, e = !1) {
3620
3631
  let t = null;
3621
3632
  return e ? t = s.beforeShow ?? s.beforeEnter : t = s.beforeEnter, t;
3622
3633
  }
3623
- function Us(s, e = !1) {
3634
+ function Gs(s, e = !1) {
3624
3635
  let t = null;
3625
3636
  return e ? t = s.show ?? s.enter : t = s.enter, t;
3626
3637
  }
3627
- function Vs(s, e = !1) {
3638
+ function Qs(s, e = !1) {
3628
3639
  let t = null;
3629
3640
  return e ? t = s.afterShow ?? s.afterEnter : t = s.afterEnter, t;
3630
3641
  }
3631
- function Bs(s, e = !1) {
3642
+ function Xs(s, e = !1) {
3632
3643
  let t = null;
3633
3644
  return e ? t = s.showCancelled ?? s.enterCancelled : t = s.enterCancelled, t;
3634
3645
  }
3635
- function ks(s, e = !1) {
3646
+ function Ys(s, e = !1) {
3636
3647
  let t = null;
3637
3648
  return e ? t = s.beforeHide ?? s.beforeLeave : t = s.beforeLeave, t;
3638
3649
  }
3639
- function Ws(s, e = !1) {
3650
+ function Zs(s, e = !1) {
3640
3651
  let t = null;
3641
3652
  return e ? t = s.hide ?? s.leave : t = s.leave, t;
3642
3653
  }
3643
- function zs(s, e = !1) {
3654
+ function en(s, e = !1) {
3644
3655
  let t = null;
3645
3656
  return e ? t = s.afterHide ?? s.afterLeave : t = s.afterLeave, t;
3646
3657
  }
3647
- function Js(s, e = !1) {
3658
+ function tn(s, e = !1) {
3648
3659
  let t = null;
3649
3660
  return e ? t = s.hideCancelled ?? s.leaveCancelled : t = s.leaveCancelled, t;
3650
3661
  }
3651
- function Bt(s) {
3662
+ function zt(s) {
3652
3663
  let e, t = s.duration;
3653
3664
  return typeof t == "object" ? e = {
3654
3665
  enter: t.enter ?? -1,
@@ -3662,20 +3673,20 @@ function Bt(s) {
3662
3673
  hide: t
3663
3674
  }), e;
3664
3675
  }
3665
- function Ae(s, e) {
3676
+ function Ce(s, e) {
3666
3677
  s.classList.contains(e) || s.classList.add(e);
3667
3678
  }
3668
3679
  function Pe(s, e) {
3669
3680
  s.classList.remove(e);
3670
3681
  }
3671
- const Gs = Ce && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
3672
- function kt(s) {
3673
- Gs(s);
3682
+ const rn = Ee && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
3683
+ function ht(s) {
3684
+ rn(s);
3674
3685
  }
3675
3686
  function O(s, e, t) {
3676
3687
  x(e) && (s == null && (s = {}), Reflect.apply(e, s, t));
3677
3688
  }
3678
- function Ir(s, e, t, r = -1, n, i, o, a) {
3689
+ function Hr(s, e, t, r = -1, n, i, o, a) {
3679
3690
  if (x(i)) {
3680
3691
  if (n !== void 0 && n >= 0) {
3681
3692
  setTimeout(() => {
@@ -3683,85 +3694,85 @@ function Ir(s, e, t, r = -1, n, i, o, a) {
3683
3694
  }, n);
3684
3695
  return;
3685
3696
  }
3686
- const l = ["animationend", "transitionend"], u = (f) => {
3697
+ const l = ["animationend", "transitionend", Ot], u = (f) => {
3687
3698
  const c = f.target || f.srcElement, h = f.currentTarget;
3688
3699
  c === h && (l.forEach((y) => {
3689
- qt(e, y, u);
3700
+ it(e, y, u);
3690
3701
  }), Reflect.apply(i, s, [e, t, r]), a && Reflect.apply(a, s, []));
3691
3702
  };
3692
3703
  l.forEach((f) => {
3693
- $t(e, f, u);
3704
+ nt(e, f, u);
3694
3705
  });
3695
3706
  }
3696
3707
  if (x(o)) {
3697
3708
  const l = "animationcancel", u = (f) => {
3698
3709
  const c = f.target || f.srcElement, h = f.currentTarget;
3699
- c === h && (qt(e, l, u), Reflect.apply(o, s, [e, t, r]));
3710
+ c === h && (it(e, l, u), Reflect.apply(o, s, [e, t, r]));
3700
3711
  };
3701
- $t(e, l, u);
3712
+ nt(e, l, u);
3702
3713
  }
3703
3714
  }
3704
- function at(s) {
3705
- return !Ce || s === null ? !1 : s.opsType === q.Append || s.opsType === q.Open;
3715
+ function yt(s) {
3716
+ return !Ee || s === null ? !1 : s.opsType === q.Append || s.opsType === q.Open;
3706
3717
  }
3707
- function Nr(s, e, t, r = {}, n, i = -1) {
3708
- if (e || at(n)) {
3709
- const o = jr(r, e);
3710
- o && Ae(t, o);
3711
- const a = Lr(r, e);
3712
- a && Ae(t, a);
3713
- const l = Ds(r, e);
3718
+ function Dr(s, e, t, r = {}, n, i = -1) {
3719
+ if (e || yt(n)) {
3720
+ const o = Or(r, e);
3721
+ o && Ce(t, o);
3722
+ const a = Mr(r, e);
3723
+ a && Ce(t, a);
3724
+ const l = Js(r, e);
3714
3725
  O(s, l, [t, e, n, i]);
3715
3726
  }
3716
3727
  }
3717
- function Hr(s, e, t, r = {}, n, i, o, a) {
3718
- if (!at(i) && !e) {
3728
+ function Ur(s, e, t, r = {}, n, i, o, a) {
3729
+ if (!yt(i) && !e) {
3719
3730
  x(a) && a(s, a, [t]);
3720
3731
  return;
3721
3732
  }
3722
- const l = jr(r, e), u = Lr(r, e), f = Ns(r, e), c = Us(r, e), h = Vs(r, e), y = Bs(r, e);
3733
+ const l = Or(r, e), u = Mr(r, e), f = Ws(r, e), c = Gs(r, e), h = Qs(r, e), y = Xs(r, e);
3723
3734
  if (!l && !u && !f && !c) {
3724
3735
  x(a) && a(s, a, [t]);
3725
3736
  return;
3726
3737
  }
3727
- kt(() => {
3728
- Ir(s, t, i, o, n, () => {
3738
+ ht(() => {
3739
+ Hr(s, t, i, o, n, () => {
3729
3740
  u && Pe(t, u), f && Pe(t, f), x(h) && O(s, h, [t, e, i, o]), x(a) && a(s, a, [t]);
3730
3741
  }, () => {
3731
3742
  x(y) && O(s, y, [t, e, i, o]);
3732
- }), l && Pe(t, l), f && Ae(t, f), x(c) && O(s, c, [t, e, i, o]);
3743
+ }), l && Pe(t, l), f && Ce(t, f), x(c) && O(s, c, [t, e, i, o]);
3733
3744
  });
3734
3745
  }
3735
- function Dr(s, e, t, r = {}, n, i = -1) {
3736
- if (e || at(n)) {
3737
- const o = Or(r, e);
3738
- o && Ae(t, o);
3739
- const a = Mr(r, e);
3740
- a && Ae(t, a);
3741
- const l = ks(r, e);
3746
+ function kr(s, e, t, r = {}, n, i = -1) {
3747
+ if (e || yt(n)) {
3748
+ const o = Ir(r, e);
3749
+ o && Ce(t, o);
3750
+ const a = Nr(r, e);
3751
+ a && Ce(t, a);
3752
+ const l = Ys(r, e);
3742
3753
  O(s, l, [t, e, n, i]);
3743
3754
  }
3744
3755
  }
3745
- function Ur(s, e, t, r = {}, n, i, o, a, l) {
3746
- if (!at(o) && !e) {
3756
+ function Br(s, e, t, r = {}, n, i, o, a, l) {
3757
+ if (!yt(o) && !e) {
3747
3758
  !e && x(i) && i();
3748
3759
  return;
3749
3760
  }
3750
- const u = Or(r, e), f = Mr(r, e), c = Hs(r, e), h = Ws(r, e), y = zs(r, e), d = Js(r, e);
3761
+ const u = Ir(r, e), f = Nr(r, e), c = zs(r, e), h = Zs(r, e), y = en(r, e), d = tn(r, e);
3751
3762
  if (!u && !f && !c && !h) {
3752
3763
  !e && x(i) && i();
3753
3764
  return;
3754
3765
  }
3755
- kt(() => {
3756
- Ir(s, t, o, a, n, () => {
3766
+ ht(() => {
3767
+ Hr(s, t, o, a, n, () => {
3757
3768
  f && Pe(t, f), c && Pe(t, c), x(y) && O(s, y, [t, e, o, a]), x(l) && O(s, l, [t]), !e && x(i) && i();
3758
3769
  }, () => {
3759
3770
  x(d) && O(s, d, [t, e, o, a]), x(l) && O(s, l, [t]), !e && x(i) && i();
3760
- }), u && Pe(t, u), c && Ae(t, c), x(h) && O(s, h, [t, e, o, a]);
3771
+ }), u && Pe(t, u), c && Ce(t, c), x(h) && O(s, h, [t, e, o, a]);
3761
3772
  });
3762
3773
  }
3763
- function Lt(s, e = {}, t, r = -1) {
3764
- const n = e.mode ?? "default", i = Bt(e);
3774
+ function It(s, e = {}, t, r = -1) {
3775
+ const n = e.mode ?? "default", i = zt(e);
3765
3776
  return {
3766
3777
  //mode
3767
3778
  mode: n,
@@ -3769,57 +3780,85 @@ function Lt(s, e = {}, t, r = -1) {
3769
3780
  persisted: !1,
3770
3781
  //before enter
3771
3782
  beforeEnter: (a) => {
3772
- Nr(s, !1, a, e, t, r);
3783
+ Dr(s, !1, a, e, t, r);
3773
3784
  },
3774
3785
  //enter
3775
3786
  enter: (a) => {
3776
- Hr(s, !1, a, e, i.enter, t, r);
3787
+ Ur(s, !1, a, e, i.enter, t, r);
3777
3788
  },
3778
3789
  //leave
3779
3790
  leave: (a, l) => {
3780
- Dr(s, !1, a, e, t, r), Ur(s, !1, a, e, i.leave, l, t, r);
3791
+ kr(s, !1, a, e, t, r), Br(s, !1, a, e, i.leave, l, t, r);
3781
3792
  },
3782
3793
  //clone
3783
- clone: (a) => Lt(s, e, t, r)
3794
+ clone: (a) => It(s, e, t, r)
3784
3795
  };
3785
3796
  }
3786
3797
  function Vr(s) {
3787
3798
  return s.el;
3788
3799
  }
3789
- function Qs(s, e, t = {}, r, n, i, o) {
3790
- if (i) {
3800
+ function sn(s, e, t = {}, r, n, i, o) {
3801
+ if (i === !0) {
3791
3802
  const a = Vr(e);
3792
3803
  if (a == null)
3793
3804
  return;
3794
- const l = Bt(t);
3795
- Nr(s, !0, a, t, r, n), Hr(s, !0, a, t, l.show, r, n, (u) => {
3805
+ const l = zt(t);
3806
+ Dr(s, !0, a, t, r, n), Ur(s, !0, a, t, l.show, r, n, (u) => {
3796
3807
  x(o) && O(s, o, [u]);
3797
3808
  });
3798
3809
  } else
3799
3810
  x(o) && O(s, o, []);
3800
3811
  }
3801
- function Xs(s, e, t = {}, r, n, i, o) {
3802
- if (i) {
3812
+ function nn(s, e, t = {}, r, n, i, o) {
3813
+ if (i === !0) {
3803
3814
  const a = Vr(e);
3804
3815
  if (a == null)
3805
3816
  return;
3806
- const l = Bt(t);
3807
- Dr(s, !0, a, t, r, n), Ur(s, !0, a, t, l.hide, null, r, n, (u) => {
3817
+ const l = zt(t);
3818
+ kr(s, !0, a, t, r, n), Br(s, !0, a, t, l.hide, null, r, n, (u) => {
3808
3819
  x(o) && O(s, o, [u]);
3809
3820
  });
3810
3821
  } else
3811
3822
  x(o) && O(s, o, []);
3812
3823
  }
3813
- function Ys(s, e = {}) {
3814
- kt(() => {
3824
+ function on(s, e = {}) {
3825
+ ht(() => {
3815
3826
  for (let t = 0; t < s.length; t++)
3816
3827
  Reflect.apply(s[t], e, []);
3817
3828
  });
3818
3829
  }
3830
+ function Wr(s, e = {}, t, r = -1) {
3831
+ return {
3832
+ //mode
3833
+ mode: e.mode ?? "default",
3834
+ //如果是 true,表示这是一个不真实插入/删除元素的转换,而是切换显示/隐藏状态
3835
+ persisted: !1,
3836
+ //before enter
3837
+ beforeEnter: (o) => {
3838
+ ke(ms, {}, o);
3839
+ },
3840
+ //enter
3841
+ enter: (o) => {
3842
+ ke(vs, {}, o);
3843
+ },
3844
+ //leave
3845
+ leave: (o, a) => {
3846
+ ke(gs, {}, o), ht(() => {
3847
+ const l = (u) => {
3848
+ const f = u.target || u.srcElement, c = u.currentTarget;
3849
+ f === c && (it(o, Ot, l), a && Reflect.apply(a, s, []));
3850
+ };
3851
+ nt(o, Ot, l), ke(ws, {}, o);
3852
+ });
3853
+ },
3854
+ //clone
3855
+ clone: (o) => Wr(s, e, t, r)
3856
+ };
3857
+ }
3819
3858
  function oe(s, e, t) {
3820
3859
  return typeof s == "function" ? Reflect.apply(s, {}, [e, t]) : s;
3821
3860
  }
3822
- function Tt(s, e) {
3861
+ function Lt(s, e) {
3823
3862
  if (!s)
3824
3863
  return null;
3825
3864
  const t = s(e);
@@ -3828,7 +3867,7 @@ function Tt(s, e) {
3828
3867
  function be(s, e) {
3829
3868
  return typeof e == "function" ? e(s) : s;
3830
3869
  }
3831
- class Zs {
3870
+ class ln {
3832
3871
  /**
3833
3872
  * vue node
3834
3873
  */
@@ -3844,7 +3883,7 @@ class Zs {
3844
3883
  this.node = e, this.state = t;
3845
3884
  }
3846
3885
  }
3847
- const Ot = wr({
3886
+ const Nt = xr({
3848
3887
  //名称
3849
3888
  name: "RouterView",
3850
3889
  //继承特性
@@ -4057,88 +4096,91 @@ const Ot = wr({
4057
4096
  },
4058
4097
  //setup
4059
4098
  setup(s, e) {
4060
- const t = Mt();
4099
+ const t = Ht();
4061
4100
  if (t === null || t.proxy === null) {
4062
4101
  console.error("instance or instance.proxy not exist");
4063
4102
  return;
4064
4103
  }
4065
- const r = s.multi === !0, n = G(lt, null), i = G(pt, 0), o = G(sr, null), a = G(mt, -1);
4104
+ const r = s.multi === !0, n = Q(ct, null), i = Q(wt, 0), o = Q(ir, null), a = Q(bt, -1);
4066
4105
  let l = null;
4067
4106
  const u = s.modelSlot;
4068
4107
  if (u) {
4069
- if (se(pt, i + 1), se(mt, u.index), se(vt, u.index), !u.route) {
4108
+ if (se(wt, i + 1), se(bt, u.index), se(xt, u.index), !u.route) {
4070
4109
  console.warn("child view render error, route not exist");
4071
4110
  return;
4072
4111
  }
4073
- const h = nt(t.proxy, !0);
4074
- ps(h), rr(h, () => u.route ?? null);
4112
+ const h = at(t.proxy, !0);
4113
+ Rs(h), nr(h, () => u.route ?? null);
4075
4114
  } else {
4076
4115
  if (n == null) {
4077
4116
  console.error("router is not been injected");
4078
4117
  return;
4079
4118
  }
4080
- const c = s.name, h = G(nr, null), y = G(vt, 0);
4119
+ const c = s.name, h = Q(or, null), y = Q(xt, 0);
4081
4120
  if (l = n[Ar](c, i, o, a, h, y), l === null)
4082
4121
  return;
4083
- se(nr, l);
4084
- const d = l[J] === !0;
4085
- if (d && se(sr, l), !r && (se(mt, -1), se(pt, i + 1), se(vt, -1), d)) {
4086
- const m = nt(t.proxy, !0);
4087
- rr(m, () => {
4122
+ se(or, l);
4123
+ const d = l[G] === !0;
4124
+ if (d && se(ir, l), !r && (se(bt, -1), se(wt, i + 1), se(xt, -1), d)) {
4125
+ const m = at(t.proxy, !0);
4126
+ nr(m, () => {
4088
4127
  const p = l.slots.value;
4089
4128
  return p.length > 0 ? p[0].route : null;
4090
4129
  });
4091
4130
  }
4092
4131
  }
4093
4132
  const f = { value: /* @__PURE__ */ new Map() };
4094
- return ot(() => {
4133
+ return ft(() => {
4095
4134
  f.value && f.value.clear();
4096
4135
  }), () => {
4097
4136
  if (r) {
4098
4137
  const c = /* @__PURE__ */ new Map(), h = [], y = l?.slots.value, d = [];
4099
4138
  for (let v = 0; v < y.length; v++) {
4100
- const g = y[v], _ = `${s.name}_${g.index}`, b = oe(s.transition, g.route, v) ?? !0, K = { modelSlot: g };
4101
- let E;
4102
- e.slots.default ? E = he(Ot, K, { default: e.slots.default }) : E = he(Ot, K);
4103
- const P = {}, C = oe(s.viewClass, g.route, v);
4104
- typeof C == "string" && C.length > 0 && (P[C] = !0);
4105
- const k = oe(s.viewActiveClass, g.route, v), M = oe(s.viewInactiveClass, g.route, v), I = f.value.get(_);
4106
- if (typeof k == "string" && k.length > 0 && (P[k] = g.active), typeof M == "string" && M.length > 0 && (P[M] = !g.active), I && g.active !== I.state) {
4107
- const Y = I.node;
4139
+ const g = y[v], _ = `${s.name}_${g.index}`, b = oe(s.transition, g.route, v) ?? !0, T = { modelSlot: g };
4140
+ let F;
4141
+ e.slots.default ? F = he(Nt, T, { default: e.slots.default }) : F = he(Nt, T);
4142
+ const P = {}, E = oe(s.viewClass, g.route, v);
4143
+ typeof E == "string" && E.length > 0 && (P[E] = !0);
4144
+ const W = oe(s.viewActiveClass, g.route, v), M = oe(s.viewInactiveClass, g.route, v), I = f.value.get(_);
4145
+ if (typeof W == "string" && W.length > 0 && (P[W] = g.active), typeof M == "string" && M.length > 0 && (P[M] = !g.active), I && g.active !== I.state) {
4146
+ const D = I.node;
4108
4147
  g.active ? d.unshift(() => {
4109
- const ft = () => {
4110
- let Ee = er(Y);
4111
- Ee != null && tr(Ee, jt.ACTIVATED);
4148
+ const dt = () => {
4149
+ let Fe = rr(D);
4150
+ Fe != null && sr(Fe, Mt.ACTIVATED);
4112
4151
  };
4113
- Qs(t, Y, s, g.route, v, b, ft);
4152
+ sn(t, D, s, g.route, v, b, dt);
4114
4153
  }) : d.push(() => {
4115
- const ft = () => {
4116
- const Ee = er(Y);
4117
- Ee != null && tr(Ee, jt.DEACTIVATED);
4154
+ const dt = () => {
4155
+ const Fe = rr(D);
4156
+ Fe != null && sr(Fe, Mt.DEACTIVATED);
4118
4157
  };
4119
- Xs(t, Y, s, g.route, v, b, ft);
4158
+ nn(t, D, s, g.route, v, b, dt);
4120
4159
  });
4121
4160
  }
4122
- const X = {
4161
+ const Y = {
4123
4162
  class: P,
4124
4163
  key: _
4125
- }, W = oe(s.viewTagProps, g.route, v);
4126
- if (W !== null && typeof W == "object") {
4127
- const Y = be(W, n?.propsFilter);
4128
- $(!0, X, Y);
4164
+ }, z = oe(s.viewTagProps, g.route, v);
4165
+ if (z !== null && typeof z == "object") {
4166
+ const D = be(z, n?.propsFilter);
4167
+ $(!0, Y, D);
4129
4168
  }
4130
4169
  if (g.route?.viewTagAttrs && typeof g.route?.viewTagAttrs == "object") {
4131
- const Y = be(g.route.viewTagAttrs, n?.propsFilter);
4132
- $(!0, X, Y);
4170
+ const D = be(g.route.viewTagAttrs, n?.propsFilter);
4171
+ $(!0, Y, D);
4133
4172
  }
4134
- const re = oe(s.viewTag, g.route, v), ut = he(re, X, { default: () => [E] });
4135
- if (c.set(_, new Zs(ut, g.active)), f.value.delete(_), b) {
4136
- const Y = Lt(t, s, g.route, v);
4137
- ut.transition = Y;
4173
+ const re = oe(s.viewTag, g.route, v), De = he(re, Y, { default: () => [F] });
4174
+ if (c.set(_, new ln(De, g.active)), f.value.delete(_), b === !0) {
4175
+ const D = It(t, s, g.route, v);
4176
+ De.transition = D;
4177
+ } else if (b === "custom") {
4178
+ const D = Wr(t, s, g.route, v);
4179
+ De.transition = D;
4138
4180
  }
4139
- h.push(ut);
4181
+ h.push(De);
4140
4182
  }
4141
- f.value = c, Ys(d, t);
4183
+ f.value = c, on(d, t);
4142
4184
  const m = oe(s.tag, null, -1), p = {};
4143
4185
  return Object.assign(p, e.attrs), he(m, p, { default: () => h });
4144
4186
  } else if (u != null) {
@@ -4153,11 +4195,11 @@ const Ot = wr({
4153
4195
  }
4154
4196
  }
4155
4197
  const y = he(c.component, h);
4156
- return Tt(e.slots.default, { Component: y, route: u.route }) ?? y;
4198
+ return Lt(e.slots.default, { Component: y, route: u.route }) ?? y;
4157
4199
  } else {
4158
4200
  const c = l.slots.value;
4159
4201
  if (c.length > 0) {
4160
- const h = c[0], y = h.route ?? (t.proxy && Ut(t.proxy)) ?? null, d = h.model, m = {};
4202
+ const h = c[0], y = h.route ?? (t.proxy && Vt(t.proxy)) ?? null, d = h.model, m = {};
4161
4203
  if (d.props) {
4162
4204
  if (typeof d.props == "object") {
4163
4205
  const g = be(d.props, n?.propsFilter);
@@ -4169,17 +4211,17 @@ const Ot = wr({
4169
4211
  }
4170
4212
  const p = he(d.component, m);
4171
4213
  if (oe(s.transition, y, -1) ?? !0) {
4172
- const g = Lt(t, s, y, -1);
4214
+ const g = It(t, s, y, -1);
4173
4215
  p.transition = g;
4174
4216
  }
4175
- return Tt(e.slots.default, { Component: p, route: y }) ?? p;
4217
+ return Lt(e.slots.default, { Component: p, route: y }) ?? p;
4176
4218
  } else
4177
- return Tt(e.slots.fallback, {});
4219
+ return Lt(e.slots.fallback, {});
4178
4220
  }
4179
4221
  };
4180
4222
  }
4181
4223
  });
4182
- function en(s) {
4224
+ function an(s) {
4183
4225
  if (!(s.metaKey || s.altKey || s.ctrlKey || s.shiftKey) && !s.defaultPrevented && !(s.button != null && s.button !== 0)) {
4184
4226
  if (s.currentTarget && s.currentTarget.getAttribute) {
4185
4227
  const e = s.currentTarget.getAttribute("target");
@@ -4189,16 +4231,16 @@ function en(s) {
4189
4231
  return s.preventDefault && s.preventDefault(), !0;
4190
4232
  }
4191
4233
  }
4192
- function tn(s, e) {
4234
+ function un(s, e) {
4193
4235
  return s == null || e == null ? !1 : !!(s === e || s.path && s.path === e.path || s.name && s.name === e.name);
4194
4236
  }
4195
- function rn(s, e) {
4237
+ function fn(s, e) {
4196
4238
  return s == null || e == null ? !1 : !!(s.path && e.path && e.path.startsWith(s.path) || s.name && s.name == e.name);
4197
4239
  }
4198
4240
  function xe(s, e) {
4199
4241
  return typeof s == "function" ? Reflect.apply(s, {}, [e]) : s;
4200
4242
  }
4201
- let sn = wr({
4243
+ let cn = xr({
4202
4244
  //名称
4203
4245
  name: "RouterLink",
4204
4246
  //继承特性
@@ -4246,7 +4288,7 @@ let sn = wr({
4246
4288
  },
4247
4289
  //setup
4248
4290
  setup(s, e) {
4249
- const t = G(lt, null);
4291
+ const t = Q(ct, null);
4250
4292
  return () => {
4251
4293
  let r = xe(s.to, null), n = xe(s.tag, r);
4252
4294
  if (n == null) {
@@ -4256,9 +4298,9 @@ let sn = wr({
4256
4298
  let i = null, o = null;
4257
4299
  t !== null && (i = t[H](r), s.root && (i.root = s.root), o = t.current);
4258
4300
  let a = {}, l = xe(s.activeClass, i);
4259
- if (typeof l == "string" && l.length > 0 && (a[l] = rn(i, o)), xe(s.exact, i) === !0) {
4301
+ if (typeof l == "string" && l.length > 0 && (a[l] = fn(i, o)), xe(s.exact, i) === !0) {
4260
4302
  let h = xe(s.exactActiveClass, i);
4261
- typeof h == "string" && h.length > 0 && (a[h] = tn(i, o));
4303
+ typeof h == "string" && h.length > 0 && (a[h] = un(i, o));
4262
4304
  }
4263
4305
  let f = {
4264
4306
  class: a
@@ -4275,7 +4317,7 @@ let sn = wr({
4275
4317
  console.warn("route is not been resolved");
4276
4318
  return;
4277
4319
  }
4278
- en(y) && t.to(i);
4320
+ an(y) && t.to(i);
4279
4321
  };
4280
4322
  f[c] = h;
4281
4323
  }
@@ -4283,8 +4325,8 @@ let sn = wr({
4283
4325
  };
4284
4326
  }
4285
4327
  });
4286
- var L = /* @__PURE__ */ ((s) => (s[s.Loading = 0] = "Loading", s[s.Loaded = 1] = "Loaded", s[s.Defining = 2] = "Defining", s[s.Defined = 3] = "Defined", s))(L || {}), tt = /* @__PURE__ */ ((s) => (s[s.normal = 0] = "normal", s[s.factory = 1] = "factory", s))(tt || {});
4287
- class nn {
4328
+ var L = /* @__PURE__ */ ((s) => (s[s.Loading = 0] = "Loading", s[s.Loaded = 1] = "Loaded", s[s.Defining = 2] = "Defining", s[s.Defined = 3] = "Defined", s))(L || {}), st = /* @__PURE__ */ ((s) => (s[s.normal = 0] = "normal", s[s.factory = 1] = "factory", s))(st || {});
4329
+ class hn {
4288
4330
  /**
4289
4331
  * 注册表
4290
4332
  */
@@ -4333,11 +4375,11 @@ class nn {
4333
4375
  this.register.clear();
4334
4376
  }
4335
4377
  }
4336
- class vr {
4378
+ class wr {
4337
4379
  /**
4338
4380
  * module manager
4339
4381
  */
4340
- moduleManager = new nn();
4382
+ moduleManager = new hn();
4341
4383
  /**
4342
4384
  * 参数配置
4343
4385
  */
@@ -4411,7 +4453,7 @@ class vr {
4411
4453
  * 获取document head
4412
4454
  */
4413
4455
  get head() {
4414
- return De().head;
4456
+ return Ue().head;
4415
4457
  }
4416
4458
  /**
4417
4459
  * 构造函数
@@ -4427,7 +4469,7 @@ class vr {
4427
4469
  src: "",
4428
4470
  status: L.Defined
4429
4471
  };
4430
- typeof t == "function" ? (r.exports = t, r.type = tt.factory) : r.exports = t, this.moduleManager.set(e, r);
4472
+ typeof t == "function" ? (r.exports = t, r.type = st.factory) : r.exports = t, this.moduleManager.set(e, r);
4431
4473
  }
4432
4474
  /**
4433
4475
  * 移除module
@@ -4456,7 +4498,7 @@ class vr {
4456
4498
  for (let f = 0; f < u.length; f++)
4457
4499
  u[f] && t.push(this.resolvePath(u[f]));
4458
4500
  }
4459
- const o = new on(t.length, (l, u) => {
4501
+ const o = new yn(t.length, (l, u) => {
4460
4502
  if (o.isOK())
4461
4503
  try {
4462
4504
  typeof i == "function" && Reflect.apply(i, {}, u);
@@ -4469,9 +4511,9 @@ class vr {
4469
4511
  } catch (f) {
4470
4512
  console.error(f.message, f);
4471
4513
  }
4472
- }), a = new st();
4514
+ }), a = new lt();
4473
4515
  for (let l = 0; l < t.length; l++) {
4474
- const u = new ln(l, t[l], n, o);
4516
+ const u = new dn(l, t[l], n, o);
4475
4517
  this.mount(a, u);
4476
4518
  }
4477
4519
  return this;
@@ -4546,10 +4588,10 @@ class vr {
4546
4588
  e.post((n) => {
4547
4589
  const i = t.src, o = this.moduleManager.get(i);
4548
4590
  if (o && (o.status == L.Defined || o.status == L.Loaded) && o.exports) {
4549
- o.type === tt.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4591
+ o.type === st.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4550
4592
  return;
4551
4593
  }
4552
- const a = De(), l = a.createElement("link");
4594
+ const a = Ue(), l = a.createElement("link");
4553
4595
  if (Reflect.has(l, "onload"))
4554
4596
  l.onload = () => {
4555
4597
  l.onload = null, l.onerror = null, t.progress.work(!0, t.index, t.src), n.resolve();
@@ -4582,7 +4624,7 @@ class vr {
4582
4624
  }
4583
4625
  };
4584
4626
  setTimeout(() => {
4585
- Br(l, c);
4627
+ zr(l, c);
4586
4628
  }, 1);
4587
4629
  }
4588
4630
  let f = a.getElementById(i);
@@ -4602,7 +4644,7 @@ class vr {
4602
4644
  let o = this.moduleManager.get(i);
4603
4645
  if (o && (o.status == L.Defined || o.status == L.Loaded)) {
4604
4646
  if (o.exports) {
4605
- o.type === tt.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4647
+ o.type === st.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4606
4648
  return;
4607
4649
  }
4608
4650
  if (document.querySelector(`script[src='${i}`)) {
@@ -4618,7 +4660,7 @@ class vr {
4618
4660
  status: L.Loading
4619
4661
  // 状态
4620
4662
  }, this.moduleManager.set(i, o);
4621
- const l = De().createElement("script");
4663
+ const l = Ue().createElement("script");
4622
4664
  if ("onload" in l)
4623
4665
  l.onload = () => {
4624
4666
  l.onload = null, l.onerror = null, o.status === L.Loading && (o.status = L.Loaded, t.progress.work(!0, t.index, i)), n.resolve();
@@ -4637,7 +4679,7 @@ class vr {
4637
4679
  };
4638
4680
  }
4639
4681
  l.defer = !0, l.src = i;
4640
- const f = T();
4682
+ const f = K();
4641
4683
  f.define = this.createDefine(o, t), r.appendChild(l);
4642
4684
  });
4643
4685
  }
@@ -4645,7 +4687,7 @@ class vr {
4645
4687
  * 卸载资源
4646
4688
  */
4647
4689
  unmount(e, t = {}) {
4648
- const r = De(), n = this.getFileNamePostfix(e);
4690
+ const r = Ue(), n = this.getFileNamePostfix(e);
4649
4691
  if (n === "js" || n.length === 0) {
4650
4692
  const i = r.querySelector(`script[src="${e}"]`);
4651
4693
  i && i.parentNode && i.parentNode.removeChild(i), this.moduleManager.remove(e);
@@ -4762,11 +4804,11 @@ class vr {
4762
4804
  if (e.indexOf("http://") == 0 || e.indexOf("https://") == 0 || e.indexOf("file:///") == 0)
4763
4805
  return e;
4764
4806
  if (e.indexOf("/") == 0)
4765
- return `${ct()}${e.slice(1)}`;
4807
+ return `${pt()}${e.slice(1)}`;
4766
4808
  if (e.indexOf("./") == 0)
4767
- return `${ct()}${e.slice(2)}`;
4809
+ return `${pt()}${e.slice(2)}`;
4768
4810
  if (e.indexOf("//") == 0)
4769
- return `${T().location.protocol}${e}`;
4811
+ return `${K().location.protocol}${e}`;
4770
4812
  if (t) {
4771
4813
  let n = this.options.alias[e];
4772
4814
  if (!n) {
@@ -4780,10 +4822,10 @@ class vr {
4780
4822
  }
4781
4823
  return this.parserPath(n, !1);
4782
4824
  }
4783
- return `${ct()}${e}`;
4825
+ return `${pt()}${e}`;
4784
4826
  }
4785
4827
  }
4786
- function Br(s, e) {
4828
+ function zr(s, e) {
4787
4829
  let t = s.sheet, r = !1;
4788
4830
  if (e.isOldWebKit)
4789
4831
  t && (r = !0);
@@ -4794,10 +4836,10 @@ function Br(s, e) {
4794
4836
  n.name === "NS_ERROR_DOM_SECURITY_ERR" && (r = !0);
4795
4837
  }
4796
4838
  setTimeout(() => {
4797
- e.time += 20, r ? e.success() : e.timeout > e.timeout ? e.error() : Br(s, e);
4839
+ e.time += 20, r ? e.success() : e.timeout > e.timeout ? e.error() : zr(s, e);
4798
4840
  }, 20);
4799
4841
  }
4800
- class on {
4842
+ class yn {
4801
4843
  /**
4802
4844
  * 回调函数
4803
4845
  */
@@ -4845,7 +4887,7 @@ class on {
4845
4887
  return this.status;
4846
4888
  }
4847
4889
  }
4848
- class ln {
4890
+ class dn {
4849
4891
  /**
4850
4892
  * 索引
4851
4893
  */
@@ -4873,9 +4915,9 @@ class ln {
4873
4915
  this.index = e, this.src = t, this.params = r, this.progress = n;
4874
4916
  }
4875
4917
  }
4876
- const kr = Symbol("fk"), Wr = Symbol("fbk"), zr = Symbol("fepk");
4877
- function Rn(s = {}) {
4878
- const e = new Os(s), t = new Qt(), r = new Zt(), n = new vr(), i = {
4918
+ const Jr = Symbol("fk"), Gr = Symbol("fbk"), Qr = Symbol("fepk");
4919
+ function _n(s = {}) {
4920
+ const e = new ks(s), t = new Yt(), r = new tr(), n = new wr(), i = {
4879
4921
  /**
4880
4922
  * 返回router
4881
4923
  */
@@ -4892,13 +4934,13 @@ function Rn(s = {}) {
4892
4934
  * 返回Bus类型
4893
4935
  */
4894
4936
  get Bus() {
4895
- return Qt;
4937
+ return Yt;
4896
4938
  },
4897
4939
  /**
4898
4940
  * 返回全局event proxy
4899
4941
  */
4900
4942
  get EventProxy() {
4901
- return Zt;
4943
+ return tr;
4902
4944
  },
4903
4945
  /**
4904
4946
  * 返回event proxy类型
@@ -4910,13 +4952,13 @@ function Rn(s = {}) {
4910
4952
  * 返回event chain类型
4911
4953
  */
4912
4954
  get EventChain() {
4913
- return st;
4955
+ return lt;
4914
4956
  },
4915
4957
  /**
4916
4958
  * 返回Require构造函数
4917
4959
  */
4918
4960
  get Require() {
4919
- return vr;
4961
+ return wr;
4920
4962
  },
4921
4963
  /**
4922
4964
  * 返回require
@@ -4934,19 +4976,19 @@ function Rn(s = {}) {
4934
4976
  * 返回clone
4935
4977
  */
4936
4978
  get clone() {
4937
- return Nt;
4979
+ return Ut;
4938
4980
  },
4939
4981
  /**
4940
4982
  * 判断是否为es模块
4941
4983
  */
4942
4984
  get isESModule() {
4943
- return br;
4985
+ return Rr;
4944
4986
  },
4945
4987
  /**
4946
4988
  * 安装
4947
4989
  */
4948
4990
  install(o) {
4949
- o.provide(lt, e), o.provide(kr, i), o.provide(Wr, t), o.provide(zr, r), o.component(Ms, Ot), o.component(Is, sn), Reflect.defineProperty(o.config.globalProperties, "$fox", {
4991
+ o.provide(ct, e), o.provide(Jr, i), o.provide(Gr, t), o.provide(Qr, r), o.component(Bs, Nt), o.component(Vs, cn), Reflect.defineProperty(o.config.globalProperties, "$fox", {
4950
4992
  get() {
4951
4993
  return i;
4952
4994
  }
@@ -4986,7 +5028,7 @@ function Rn(s = {}) {
4986
5028
  computed: {
4987
5029
  //获取当前route
4988
5030
  $route() {
4989
- return Ut(this);
5031
+ return Vt(this);
4990
5032
  }
4991
5033
  }
4992
5034
  }), e.init();
@@ -4994,23 +5036,23 @@ function Rn(s = {}) {
4994
5036
  };
4995
5037
  return i;
4996
5038
  }
4997
- function Jr(s) {
4998
- return s ? s.$router : G(lt);
5039
+ function Xr(s) {
5040
+ return s ? s.$router : Q(ct);
4999
5041
  }
5000
- function Sn(s) {
5001
- return s || (s = Mt()?.proxy ?? void 0), s ? Ut(s) : null;
5042
+ function Tn(s) {
5043
+ return s || (s = Ht()?.proxy ?? void 0), s ? Vt(s) : null;
5002
5044
  }
5003
- function Pn(s) {
5004
- return s ? s.$fox : G(kr);
5045
+ function Kn(s) {
5046
+ return s ? s.$fox : Q(Jr);
5005
5047
  }
5006
- function Cn(s) {
5007
- return s ? s.$bus : G(Wr);
5048
+ function $n(s) {
5049
+ return s ? s.$bus : Q(Gr);
5008
5050
  }
5009
- function An(s) {
5010
- return s ? s.$eventProxy : G(zr);
5051
+ function qn(s) {
5052
+ return s ? s.$eventProxy : Q(Qr);
5011
5053
  }
5012
- function En(s) {
5013
- const e = Jr(), t = (r, n, i) => {
5054
+ function jn(s) {
5055
+ const e = Xr(), t = (r, n, i) => {
5014
5056
  try {
5015
5057
  Reflect.apply(s, {}, [r, n]);
5016
5058
  } catch (o) {
@@ -5018,12 +5060,12 @@ function En(s) {
5018
5060
  }
5019
5061
  i();
5020
5062
  };
5021
- e.beforeEach(t), ot(() => {
5063
+ e.beforeEach(t), ft(() => {
5022
5064
  e.removeBeforeEach(t);
5023
5065
  });
5024
5066
  }
5025
- function Fn(s) {
5026
- const e = Jr(), t = (r, n, i) => {
5067
+ function Ln(s) {
5068
+ const e = Xr(), t = (r, n, i) => {
5027
5069
  try {
5028
5070
  Reflect.apply(s, {}, [r, n]);
5029
5071
  } catch (o) {
@@ -5031,53 +5073,58 @@ function Fn(s) {
5031
5073
  }
5032
5074
  i();
5033
5075
  };
5034
- e.afterEach(t), ot(() => {
5076
+ e.afterEach(t), ft(() => {
5035
5077
  e.removeAfterEach(t);
5036
5078
  });
5037
5079
  }
5038
5080
  export {
5039
- Qt as Bus,
5040
- st as EventChain,
5041
- Zt as EventProxy,
5081
+ Yt as Bus,
5082
+ lt as EventChain,
5083
+ tr as EventProxy,
5084
+ ms as FoxBeforeEnter,
5085
+ gs as FoxBeforeLeave,
5086
+ vs as FoxEnter,
5087
+ ws as FoxLeave,
5088
+ Ot as FoxLeaveEnd,
5042
5089
  q as OperationType,
5043
5090
  S as Route,
5044
- Nt as clone,
5045
- Rn as createFox,
5046
- qs as createMemoryHistory,
5047
- Ts as createWebHashHistory,
5048
- xn as createWebHistory,
5049
- gn as deleteContextValue,
5091
+ Ut as clone,
5092
+ _n as createFox,
5093
+ Hs as createMemoryHistory,
5094
+ Is as createWebHashHistory,
5095
+ An as createWebHistory,
5096
+ En as deleteContextValue,
5050
5097
  $ as extend,
5051
- Wr as foxBusKey,
5052
- zr as foxEventProxyKey,
5053
- kr as foxKey,
5054
- Fr as injectContextValue,
5055
- un as isArray,
5056
- hn as isDate,
5057
- br as isESModule,
5058
- zt as isEqual,
5098
+ Gr as foxBusKey,
5099
+ Qr as foxEventProxyKey,
5100
+ Jr as foxKey,
5101
+ Tr as injectContextValue,
5102
+ mn as isArray,
5103
+ wn as isDate,
5104
+ Rr as isESModule,
5105
+ Gt as isEqual,
5059
5106
  x as isFunction,
5060
- fn as isMap,
5061
- Yr as isNil,
5062
- Xr as isObject,
5063
- es as isPlainObject,
5064
- pn as isPromise,
5065
- cn as isSet,
5066
- yn as isString,
5067
- dn as isSymbol,
5068
- Fn as onAfterRouteUpdate,
5069
- En as onBeforeRouteUpdate,
5070
- wn as onFoxActivated,
5071
- bn as onFoxInactivated,
5072
- vn as provideContextValue,
5107
+ vn as isMap,
5108
+ ts as isNil,
5109
+ es as isObject,
5110
+ ss as isPlainObject,
5111
+ Rn as isPromise,
5112
+ gn as isSet,
5113
+ bn as isString,
5114
+ xn as isSymbol,
5115
+ Ln as onAfterRouteUpdate,
5116
+ jn as onBeforeRouteUpdate,
5117
+ Cn as onFoxActivated,
5118
+ Fn as onFoxInactivated,
5119
+ Pn as provideContextValue,
5073
5120
  ae as sessionKey,
5074
- xr as toBoolean,
5075
- mn as toNumber,
5076
- It as toTypeString,
5077
- Wt as typeOf,
5078
- Cn as useBus,
5079
- An as useEventProxy,
5080
- Pn as useFox,
5081
- Sn as useRoute,
5082
- Jr as useRouter
5121
+ Sr as toBoolean,
5122
+ Sn as toNumber,
5123
+ Dt as toTypeString,
5124
+ Jt as typeOf,
5125
+ $n as useBus,
5126
+ qn as useEventProxy,
5127
+ Kn as useFox,
5128
+ Tn as useRoute,
5129
+ Xr as useRouter
5083
5130
  };