@vtj/renderer 0.16.28 → 0.16.30

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/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import { Base as Xe, BUILT_IN_COMPONENTS as Ye, ProjectModel as K, HistoryModel as Ce } from "@vtj/core";
2
- import { url as O, isUrl as ae, dedupArray as Ze, isFunction as z, isString as I, logger as M, storage as se, cookie as ne, toArray as Se, unRSA as $e, delay as G, createRequest as Pe, jsonp as Ae, merge as et, pathToRegexp as tt, pathToRegexpMatch as st, formDataToJson as nt, isEqual as rt, Queue as it, cloneDeep as Ee, camelCase as P, upperFirstCamelCase as ot, pick as at, request as ce, loadScript as be, debounce as ct, Storage as lt, mapToObject as me } from "@vtj/utils";
1
+ import { Base as Qe, BUILT_IN_COMPONENTS as Xe, ProjectModel as K, HistoryModel as Re } from "@vtj/core";
2
+ import { url as O, isUrl as ae, dedupArray as Ye, isFunction as z, isString as I, logger as M, storage as se, cookie as ne, toArray as Se, unRSA as $e, delay as G, createRequest as Ce, jsonp as Pe, merge as Ze, pathToRegexp as et, pathToRegexpMatch as tt, formDataToJson as st, isEqual as nt, Queue as rt, cloneDeep as Ee, camelCase as P, upperFirstCamelCase as it, pick as ot, request as ce, loadScript as be, debounce as at, Storage as ct, mapToObject as me } from "@vtj/utils";
3
3
  import * as W from "vue";
4
- import { inject as Ie, defineComponent as Fe, h as le, ref as ue, watchEffect as ut, defineAsyncComponent as je } from "vue";
5
- import { useRoute as Oe } from "vue-router";
4
+ import { inject as Ae, defineComponent as Ie, h as le, ref as ue, watchEffect as lt, defineAsyncComponent as je } from "vue";
5
+ import { useRoute as Fe } from "vue-router";
6
6
  /**!
7
7
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
8
8
  * @name @vtj/renderer
9
9
  * @author CHC chenhuachun1549@dingtalk.com
10
- * @version 0.16.28
10
+ * @version 0.16.30
11
11
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
12
12
  */
13
- const H = "0.16.28";
13
+ const H = "0.16.30";
14
14
  var y = /* @__PURE__ */ ((n) => (n.Runtime = "Runtime", n.Design = "Design", n.Raw = "Raw", n.VNode = "VNode", n))(y || {});
15
- const Re = [
15
+ const ut = [
16
16
  "$el",
17
17
  "$emit",
18
18
  "$nextTick",
@@ -24,7 +24,7 @@ const Re = [
24
24
  "$props",
25
25
  "$options",
26
26
  "$forceUpdate"
27
- ], Os = [
27
+ ], Ms = [
28
28
  "beforeCreate",
29
29
  "created",
30
30
  "beforeMount",
@@ -55,9 +55,9 @@ const Re = [
55
55
  Object,
56
56
  Function,
57
57
  Date
58
- }, k = "VtjPage", J = "VtjHomepage", Me = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(
58
+ }, k = "VtjPage", J = "VtjHomepage", Oe = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(
59
59
  ","
60
- ), dt = "component,slot".split(","), Ms = [
60
+ ), dt = "component,slot".split(","), Ts = [
61
61
  "h",
62
62
  "t",
63
63
  "t",
@@ -77,7 +77,7 @@ const Re = [
77
77
  "p",
78
78
  "r",
79
79
  "o"
80
- ].join(""), Ts = {
80
+ ].join(""), xs = {
81
81
  auth: [
82
82
  "h",
83
83
  "t",
@@ -149,12 +149,12 @@ function X(n) {
149
149
  function ht(n) {
150
150
  return /\.json$/.test(n);
151
151
  }
152
- function xs(n) {
152
+ function Ds(n) {
153
153
  return n.map(
154
154
  (e) => `<script src="${O.append(e, { v: H })}"><\/script>`
155
155
  ).join("");
156
156
  }
157
- function Ds(n = []) {
157
+ function Hs(n = []) {
158
158
  return n.map(
159
159
  (e) => `<link rel="stylesheet" href="${O.append(e, { v: H })}" />`
160
160
  ).join("");
@@ -175,7 +175,7 @@ function gt(n, e, t = !1) {
175
175
  css: q(i, e),
176
176
  materials: q(o, e),
177
177
  libraryExports: a,
178
- materialExports: Ze(l),
178
+ materialExports: Ye(l),
179
179
  materialMapLibrary: f,
180
180
  libraryMap: u,
181
181
  libraryLocaleMap: c
@@ -329,7 +329,7 @@ function $t(n, e) {
329
329
  }
330
330
  return i;
331
331
  }
332
- function Te(n) {
332
+ function Me(n) {
333
333
  return I(n) ? n : JSON.stringify(n);
334
334
  }
335
335
  function ge(n, e, t, s = !1) {
@@ -347,7 +347,7 @@ function ge(n, e, t, s = !1) {
347
347
  l ? l.innerHTML = a : (l = c.createElement("style"), l.id = e, l.innerHTML = a, c.head.appendChild(l));
348
348
  }
349
349
  }
350
- function Hs(n) {
350
+ function ks(n) {
351
351
  const e = n.adoptedStyleSheets || [];
352
352
  let t = "";
353
353
  if (e.forEach((s) => {
@@ -367,7 +367,7 @@ async function Et(n, e) {
367
367
  const t = await window.fetch(e).then((s) => s.text()).catch(() => "");
368
368
  t && ge(window, n, t);
369
369
  }
370
- function xe(n, e = window) {
370
+ function Te(n, e = window) {
371
371
  const t = e.document, s = e.document.head;
372
372
  for (const r of n)
373
373
  if (!t.getElementById(r)) {
@@ -375,7 +375,7 @@ function xe(n, e = window) {
375
375
  o.rel = "stylesheet", o.id = r, o.href = r, s.appendChild(o);
376
376
  }
377
377
  }
378
- async function De(n, e, t = window) {
378
+ async function xe(n, e, t = window) {
379
379
  const s = t.document, r = t.document.head;
380
380
  let i = t[e];
381
381
  return i ? i.default || i : new Promise((o, a) => {
@@ -396,7 +396,7 @@ function jt(n) {
396
396
  return dt.includes(n);
397
397
  }
398
398
  function Rt(n) {
399
- return Me.includes(n);
399
+ return Oe.includes(n);
400
400
  }
401
401
  function N(n = window) {
402
402
  const e = window?.Mock;
@@ -405,7 +405,7 @@ function N(n = window) {
405
405
  if (t && window)
406
406
  return window.Mock = t, t;
407
407
  }
408
- function ks(n, e, t) {
408
+ function Ns(n, e, t) {
409
409
  Object.assign(e.meta, t.meta);
410
410
  const s = n?._container;
411
411
  t?.type === "page" && s.classList.add("is-page"), t?.pure && s.classList.add("is-pure");
@@ -417,6 +417,9 @@ function Pt(n) {
417
417
  return /\w+\([\s\S]*\)$/.test(n.trim());
418
418
  }
419
419
  function At(n) {
420
+ return n.includes("=");
421
+ }
422
+ function It(n) {
420
423
  if (typeof window > "u") return;
421
424
  const e = window[0] || window;
422
425
  if (e.__simulator__)
@@ -438,7 +441,7 @@ ${o}
438
441
  ` : `with(${t ? "{}" : "$scope || {}"}) { ${o} }`;
439
442
  return new Function("$scope", a)(e);
440
443
  } catch (i) {
441
- if (M.error("parseExpression.error", i, n, e?.__self ?? e), At(i), s)
444
+ if (M.error("parseExpression.error", i, n, e?.__self ?? e), It(i), s)
442
445
  throw i;
443
446
  }
444
447
  }
@@ -459,13 +462,13 @@ function E(n) {
459
462
  function $(n) {
460
463
  return typeof n == "object" && n && n.type === "JSFunction";
461
464
  }
462
- function It(n) {
465
+ function Ft(n) {
463
466
  return E(n) || $(n);
464
467
  }
465
- function Ns(n) {
466
- return It(n) ? n.value : JSON.stringify(n);
468
+ function Bs(n) {
469
+ return Ft(n) ? n.value : JSON.stringify(n);
467
470
  }
468
- const Ft = {
471
+ const Ot = {
469
472
  session: !1,
470
473
  authKey: "Authorization",
471
474
  storageKey: "ACCESS_STORAGE",
@@ -478,7 +481,7 @@ const Ft = {
478
481
  noPermissionMessage: "无权限访问该页面",
479
482
  appName: "",
480
483
  statusKey: "code"
481
- }, He = Symbol("access");
484
+ }, De = Symbol("access");
482
485
  class _e {
483
486
  options;
484
487
  data = null;
@@ -486,7 +489,7 @@ class _e {
486
489
  interceptResponse = !0;
487
490
  isTipShowing = !1;
488
491
  constructor(e) {
489
- this.options = Object.assign({}, Ft, e), this.loadData();
492
+ this.options = Object.assign({}, Ot, e), this.loadData();
490
493
  }
491
494
  enableIntercept() {
492
495
  this.interceptResponse = !0;
@@ -530,7 +533,7 @@ class _e {
530
533
  return Se(e).some((i) => s[i] || s[t + "." + i]);
531
534
  }
532
535
  install(e) {
533
- e.config.globalProperties.$access = this, e.provide(He, this);
536
+ e.config.globalProperties.$access = this, e.provide(De, this);
534
537
  }
535
538
  isAuthPath(e) {
536
539
  const { auth: t, isAuth: s } = this.options;
@@ -635,10 +638,10 @@ class _e {
635
638
  );
636
639
  }
637
640
  }
638
- function Ot() {
639
- return Ie(He, null);
641
+ function Mt() {
642
+ return Ae(De, null);
640
643
  }
641
- function Bs(n = {}) {
644
+ function Ls(n = {}) {
642
645
  const {
643
646
  notify: e,
644
647
  loading: t,
@@ -650,7 +653,7 @@ function Bs(n = {}) {
650
653
  } = n;
651
654
  let u = null;
652
655
  return {
653
- request: Pe({
656
+ request: Ce({
654
657
  settings: {
655
658
  type: "form",
656
659
  validSuccess: !0,
@@ -670,7 +673,7 @@ function Bs(n = {}) {
670
673
  ...s
671
674
  }
672
675
  }),
673
- jsonp: Ae,
676
+ jsonp: Pe,
674
677
  notify: e,
675
678
  loading: t,
676
679
  useTitle: o,
@@ -679,10 +682,10 @@ function Bs(n = {}) {
679
682
  access: i ? new _e({ alert: a, ...i }) : void 0
680
683
  };
681
684
  }
682
- function Ls(n = {}) {
685
+ function qs(n = {}) {
683
686
  return new _e(n);
684
687
  }
685
- function Mt(n, e) {
688
+ function Tt(n, e) {
686
689
  const { jsonp: t, request: s } = e;
687
690
  if (n.method === "jsonp")
688
691
  return (r = {}) => t(n.url, {
@@ -698,10 +701,10 @@ function Mt(n, e) {
698
701
  headers: r
699
702
  }
700
703
  };
701
- return (o, a) => (delete i.data, s.send(et(i, a || {}, { data: o })));
704
+ return (o, a) => (delete i.data, s.send(Ze(i, a || {}, { data: o })));
702
705
  }
703
706
  }
704
- function Tt(n, e) {
707
+ function xt(n, e) {
705
708
  const { metaQuery: t } = e;
706
709
  if (!t) return;
707
710
  const { code: s, queryCode: r } = n;
@@ -713,21 +716,21 @@ function Tt(n, e) {
713
716
  return t(s, r, i, o);
714
717
  };
715
718
  }
716
- function xt(n = [], e = [], t) {
719
+ function Dt(n = [], e = [], t) {
717
720
  const s = {};
718
721
  for (const r of n) {
719
- const i = Mt(r, t);
722
+ const i = Tt(r, t);
720
723
  s[r.id] = i, s[r.name] = i;
721
724
  }
722
725
  for (const r of e)
723
- s[r.id] = Tt(r, t);
726
+ s[r.id] = xt(r, t);
724
727
  return s;
725
728
  }
726
- async function Dt(n = [], e = window) {
729
+ async function Ht(n = [], e = window) {
727
730
  const t = N(e);
728
- t && (ke(e), n.forEach((s) => kt(t, s)));
731
+ t && (He(e), n.forEach((s) => Nt(t, s)));
729
732
  }
730
- function Ht(n, e = window) {
733
+ function kt(n, e = window) {
731
734
  const t = $(n.mockTemplate) && n.mockTemplate.value ? R(n.mockTemplate, {}, !0) : void 0, s = N(e);
732
735
  return async (...r) => {
733
736
  let i = {};
@@ -740,14 +743,14 @@ function Ht(n, e = window) {
740
743
  return s?.mock(i);
741
744
  };
742
745
  }
743
- function kt(n, e) {
746
+ function Nt(n, e) {
744
747
  if (!e.mock) return;
745
748
  const { url: t, mockTemplate: s } = e;
746
749
  if (t && s)
747
750
  try {
748
- const r = ae(t) ? new URL(t).pathname : t, i = tt(`(.*)${r}(.*)`), o = st(r, { decode: decodeURIComponent }), a = B(s, {}, !0);
751
+ const r = ae(t) ? new URL(t).pathname : t, i = et(`(.*)${r}(.*)`), o = tt(r, { decode: decodeURIComponent }), a = B(s, {}, !0);
749
752
  n.mock(i, (u) => {
750
- const c = O.parse(u.url) || {}, l = u.body instanceof FormData ? nt(u.body) : u.body, f = ae(u.url) ? new URL(u.url).pathname : u.url.split("?")[0], p = o(f)?.params;
753
+ const c = O.parse(u.url) || {}, l = u.body instanceof FormData ? st(u.body) : u.body, f = ae(u.url) ? new URL(u.url).pathname : u.url.split("?")[0], p = o(f)?.params;
751
754
  Object.assign(u, { data: l, params: p, query: c });
752
755
  try {
753
756
  return n.mock(a(u));
@@ -759,11 +762,11 @@ function kt(n, e) {
759
762
  console.warn("mockApi", r);
760
763
  }
761
764
  }
762
- function ke(n = window) {
765
+ function He(n = window) {
763
766
  const e = N(n);
764
767
  e && (e._mocked = {});
765
768
  }
766
- class Nt {
769
+ class Bt {
767
770
  __id = null;
768
771
  __mode;
769
772
  __instance = null;
@@ -801,22 +804,23 @@ class Nt {
801
804
  const r = s.appContext.config.globalProperties;
802
805
  Object.assign(this, r), Object.assign(this, e || {}), this.__proxy(), t.onMounted(() => {
803
806
  this.__proxy();
804
- }), t.onUnmounted(() => {
805
- this.__cleanup();
806
807
  }), t.onBeforeUpdate(() => {
807
808
  this.__reset();
808
809
  });
809
810
  }
810
811
  __proxy() {
811
- this.__instance && Re.forEach((e) => {
812
- this[e] = this.__instance?.[e];
812
+ if (!this.__instance) return;
813
+ const e = this.__instance;
814
+ ut.forEach((t) => {
815
+ this[t] = e[t] || e._?.[t.replace("$", "")] || null;
813
816
  });
814
817
  }
815
- __cleanup() {
816
- Re.forEach((e) => {
817
- this[e] = null;
818
- }), this.__reset();
819
- }
818
+ // private __cleanup() {
819
+ // CONTEXT_HOST.forEach((name) => {
820
+ // (this as any)[name] = null;
821
+ // });
822
+ // this.__reset();
823
+ // }
820
824
  __reset() {
821
825
  this.__refs = {}, this.__refCaches = {}, this.$refs = {}, this.__contextRefs = {}, this.context = {};
822
826
  }
@@ -879,7 +883,7 @@ function fe(n) {
879
883
  $components: s,
880
884
  $libs: r,
881
885
  $apis: i
882
- }, c = new Nt({
886
+ }, c = new Bt({
883
887
  mode: t,
884
888
  dsl: a.value,
885
889
  attrs: u
@@ -887,7 +891,7 @@ function fe(n) {
887
891
  name: a.value.name,
888
892
  __scopeId: a.value.id ? `data-v-${a.value.id}` : void 0,
889
893
  props: {
890
- ...Lt(a.value.props ?? [], c)
894
+ ...qt(a.value.props ?? [], c)
891
895
  },
892
896
  async setup(f = {}) {
893
897
  c.$props = f, c.props = f, a.value.id && ge(
@@ -895,11 +899,11 @@ function fe(n) {
895
899
  a.value.id,
896
900
  a.value.css || "",
897
901
  !0
898
- ), c.state = qt(e, a.value.state ?? {}, c);
899
- const p = Ut(e, a.value.computed ?? {}, c), d = Jt(a.value.methods ?? {}, c), m = Kt(e, a.value.inject, c);
902
+ ), c.state = Ut(e, a.value.state ?? {}, c);
903
+ const p = Jt(e, a.value.computed ?? {}, c), d = Kt(a.value.methods ?? {}, c), m = zt(e, a.value.inject, c);
900
904
  for (const [v, w] of Object.entries(m || {}))
901
905
  m[v] = e.inject(v, w);
902
- const h = zt(
906
+ const h = Gt(
903
907
  a.value.dataSources || {},
904
908
  c
905
909
  ), g = {
@@ -908,7 +912,7 @@ function fe(n) {
908
912
  ...d,
909
913
  ...h
910
914
  };
911
- return c.setup(g, e), Gt(e, a.value.watch ?? [], c), {
915
+ return c.setup(g, e), Vt(e, a.value.watch ?? [], c), {
912
916
  vtj: c,
913
917
  state: c.state,
914
918
  ...f,
@@ -916,7 +920,7 @@ function fe(n) {
916
920
  ...d
917
921
  };
918
922
  },
919
- emits: Bt(a.value.emits),
923
+ emits: Lt(a.value.emits),
920
924
  expose: ["vtj", ...a.value.expose || []],
921
925
  render() {
922
926
  if (!a.value.nodes) return null;
@@ -930,17 +934,17 @@ function fe(n) {
930
934
  return e.createVNode("div", {}, p);
931
935
  }
932
936
  },
933
- ...Vt(a.value.lifeCycles ?? {}, c)
937
+ ...Wt(a.value.lifeCycles ?? {}, c)
934
938
  });
935
939
  return {
936
940
  renderer: e.markRaw(l),
937
941
  context: c
938
942
  };
939
943
  }
940
- function Bt(n = []) {
944
+ function Lt(n = []) {
941
945
  return n.map((e) => I(e) ? e : e.name);
942
946
  }
943
- function Lt(n = [], e) {
947
+ function qt(n = [], e) {
944
948
  const t = (s) => s ? (Array.isArray(s) ? s : [s]).map((i) => pt[i]) : void 0;
945
949
  return n.map((s) => I(s) ? {
946
950
  name: s
@@ -958,7 +962,7 @@ function Lt(n = [], e) {
958
962
  {}
959
963
  );
960
964
  }
961
- function qt(n, e, t) {
965
+ function Ut(n, e, t) {
962
966
  return n.reactive(
963
967
  Object.keys(e || {}).reduce(
964
968
  (s, r) => {
@@ -969,19 +973,19 @@ function qt(n, e, t) {
969
973
  )
970
974
  );
971
975
  }
972
- function Ut(n, e, t) {
976
+ function Jt(n, e, t) {
973
977
  return Object.entries(e ?? {}).reduce(
974
978
  (s, [r, i]) => (s[r] = n.computed(t.__parseFunction(i)), s),
975
979
  {}
976
980
  );
977
981
  }
978
- function Jt(n, e) {
982
+ function Kt(n, e) {
979
983
  return Object.entries(n ?? {}).reduce(
980
984
  (t, [s, r]) => (t[s] = e.__parseFunction(r), t),
981
985
  {}
982
986
  );
983
987
  }
984
- function Kt(n, e = [], t) {
988
+ function zt(n, e = [], t) {
985
989
  return e.reduce(
986
990
  (s, r) => {
987
991
  const { name: i, from: o } = r || {};
@@ -992,12 +996,12 @@ function Kt(n, e = [], t) {
992
996
  {}
993
997
  );
994
998
  }
995
- function zt(n, e) {
999
+ function Gt(n, e) {
996
1000
  return Object.keys(n).reduce(
997
1001
  (t, s) => {
998
1002
  const r = n[s];
999
1003
  if (r.type === "mock")
1000
- t[s] = Ht(r);
1004
+ t[s] = kt(r);
1001
1005
  else if (r.ref) {
1002
1006
  const i = e.$apis[r.ref], o = $(r.transform) ? r.transform.value ? e.__parseFunction(r.transform) : void 0 : r.transform;
1003
1007
  t[s] = async (...a) => {
@@ -1010,7 +1014,7 @@ function zt(n, e) {
1010
1014
  {}
1011
1015
  );
1012
1016
  }
1013
- function Gt(n, e = [], t) {
1017
+ function Vt(n, e = [], t) {
1014
1018
  e.forEach((s) => {
1015
1019
  n.watch(
1016
1020
  t.__parseExpression(s.source),
@@ -1022,7 +1026,7 @@ function Gt(n, e = [], t) {
1022
1026
  );
1023
1027
  });
1024
1028
  }
1025
- function Vt(n, e) {
1029
+ function Wt(n, e) {
1026
1030
  return Object.entries(n ?? {}).reduce(
1027
1031
  (t, [s, r]) => {
1028
1032
  const i = e.__parseFunction(r);
@@ -1033,7 +1037,7 @@ function Vt(n, e) {
1033
1037
  {}
1034
1038
  );
1035
1039
  }
1036
- class Wt {
1040
+ class Qt {
1037
1041
  __props = {};
1038
1042
  __events = {};
1039
1043
  __nodes = {};
@@ -1069,20 +1073,20 @@ class Wt {
1069
1073
  return s || (e && this.setNode(e, t), t);
1070
1074
  }
1071
1075
  isEqual(e, t) {
1072
- return rt(e, t);
1076
+ return nt(e, t);
1073
1077
  }
1074
1078
  clear() {
1075
1079
  this.__props = {}, this.__events = {}, this.__nodes = {};
1076
1080
  }
1077
1081
  }
1078
- const x = new Wt(), Ne = new it();
1082
+ const x = new Qt(), ke = new rt();
1079
1083
  let re = [], F = {}, D = {};
1080
- const Qt = (n, e) => e;
1081
- async function Be(n, e = window) {
1084
+ const Xt = (n, e) => e;
1085
+ async function Ne(n, e = window) {
1082
1086
  const { urls: t = [], library: s } = n, r = t.filter((a) => X(a));
1083
1087
  if (r.length === 0 || !s) return null;
1084
1088
  const i = t.filter((a) => Q(a));
1085
- return i.length && xe(i, e), await De(r, s, e).catch(
1089
+ return i.length && Te(i, e), await xe(r, s, e).catch(
1086
1090
  (a) => (console.warn("loadScriptUrl error", r, s, a), null)
1087
1091
  );
1088
1092
  }
@@ -1095,7 +1099,7 @@ function pe(n) {
1095
1099
  let u = "";
1096
1100
  if (o.type === "Schema" && o.id)
1097
1101
  return u = o.id + "_" + r, D[u] || (D[u] = a.defineAsyncComponent(async () => {
1098
- const c = F[o.id] || await Ne.add(
1102
+ const c = F[o.id] || await ke.add(
1099
1103
  o.id,
1100
1104
  () => e(o.id)
1101
1105
  );
@@ -1122,7 +1126,7 @@ function pe(n) {
1122
1126
  let c = o.library ? F[o.library] : null;
1123
1127
  return c || (o.library && re.push(o.library), c = F[o.library || Symbol()] = a.defineAsyncComponent(
1124
1128
  async () => {
1125
- const l = await Be(o, s.window);
1129
+ const l = await Ne(o, s.window);
1126
1130
  return l || (console.warn("getPlugin result is null", o), null);
1127
1131
  }
1128
1132
  ), c);
@@ -1130,62 +1134,62 @@ function pe(n) {
1130
1134
  return i;
1131
1135
  };
1132
1136
  }
1133
- function qs() {
1134
- F = {}, D = {}, Ne.clearAllCache(), x.clear();
1137
+ function Us() {
1138
+ F = {}, D = {}, ke.clearAllCache(), x.clear();
1135
1139
  }
1136
- function T(n, e, t = W, s = Qt, r = [], i = !1, o = 0) {
1140
+ function T(n, e, t = W, s = Xt, r = [], i = !1, o = 0) {
1137
1141
  if (!n || !n.name || n.invisible) return null;
1138
- const a = t.getCurrentInstance()?.appContext, { id: u = null, directives: c = [] } = n, { vIf: l, vElseIf: f, vElse: p, vFor: d, vShow: m, vModels: h, vBind: g, vHtml: v, others: w } = Le(c);
1142
+ const a = t.getCurrentInstance()?.appContext, { id: u = null, directives: c = [] } = n, { vIf: l, vElseIf: f, vElse: p, vFor: d, vShow: m, vModels: h, vBind: g, vHtml: v, others: w } = Be(c);
1139
1143
  if (!i && (f || p))
1140
1144
  return null;
1141
- if (l && !Yt(l, e))
1142
- return rs(n, e, t, s, r);
1145
+ if (l && !Zt(l, e))
1146
+ return is(n, e, t, s, r);
1143
1147
  const b = (_, C = 0) => {
1144
1148
  const Y = _.$components, Z = (() => {
1145
1149
  if (n.name === "component")
1146
- return Zt(_, n.props?.is);
1150
+ return es(_, n.props?.is);
1147
1151
  if (n.name === "slot") return n.name;
1148
1152
  const j = s(`${n.id}_${C}`, n.name, n.from, t);
1149
1153
  return I(j) ? jt(j) || Rt(j) ? j : Y[j] ?? a?.app?.component(j) ?? j : j;
1150
- })(), A = es(u, n.props ?? {}, _), Ge = ns(
1154
+ })(), A = ts(u, n.props ?? {}, _), ze = rs(
1151
1155
  t,
1152
1156
  n.id,
1153
1157
  n.events ?? {},
1154
1158
  _
1155
1159
  );
1156
1160
  if (n.name === "slot")
1157
- return is(t, n, A, _, s);
1161
+ return os(t, n, A, _, s);
1158
1162
  g && Object.assign(A, _.__parseExpression(g.value)), m && (A.style = Object.assign(
1159
1163
  A.style ?? {},
1160
- as(m, _)
1161
- )), v && Object.assign(A, cs(v, _)), h.forEach((j) => {
1162
- Me.includes(n.name) ? Object.assign(A, ls(j, _)) : Object.assign(A, us(t, j, _));
1164
+ cs(m, _)
1165
+ )), v && Object.assign(A, ls(v, _)), h.forEach((j) => {
1166
+ Oe.includes(n.name) ? Object.assign(A, us(j, _)) : Object.assign(A, fs(t, j, _));
1163
1167
  });
1164
- const Ve = fs(
1168
+ const Ge = ps(
1165
1169
  t,
1166
1170
  n.children ?? [],
1167
1171
  _,
1168
1172
  s,
1169
1173
  n
1170
- ), ye = _?.__id ? `data-v-${_.__id}` : void 0, We = ye ? { [ye]: "" } : {}, Qe = _.__mode === y.Design ? { "data-vtj": u } : {}, L = `${u}_${C}`, ee = {
1174
+ ), ye = _?.__id ? `data-v-${_.__id}` : void 0, Ve = ye ? { [ye]: "" } : {}, We = _.__mode === y.Design ? { "data-vtj": u } : {}, L = `${u}_${C}`, ee = {
1171
1175
  key: L,
1176
+ ...Ve,
1172
1177
  ...We,
1173
- ...Qe,
1174
1178
  ...A,
1175
- ...Ge
1179
+ ...ze
1176
1180
  };
1177
1181
  x.isEqual(ee, x.getNode(L)) || x.setNode(L, ee);
1178
1182
  let te = t.createVNode(
1179
1183
  Z,
1180
1184
  x.getNode(L) || ee || {},
1181
- Ve
1185
+ Ge
1182
1186
  );
1183
- const we = a ? Xt(a, w, _) : [];
1187
+ const we = a ? Yt(a, w, _) : [];
1184
1188
  return we.length && (te = t.withDirectives(te, we)), te;
1185
1189
  };
1186
- return d ? hs(d, b, e) : b(e, o);
1190
+ return d ? ms(d, b, e) : b(e, o);
1187
1191
  }
1188
- function Xt(n, e, t) {
1192
+ function Yt(n, e, t) {
1189
1193
  const s = n.app;
1190
1194
  return e.map((r) => {
1191
1195
  const i = typeof r.name == "string" ? s.directive(r.name) : t.__parseExpression(r.name);
@@ -1194,7 +1198,7 @@ function Xt(n, e, t) {
1194
1198
  return r.value && o.push(t.__parseExpression(r.value)), r.arg && o.push(r.arg), r.modifiers && o.push(r.modifiers), o;
1195
1199
  }).filter((r) => !!r);
1196
1200
  }
1197
- function Le(n = []) {
1201
+ function Be(n = []) {
1198
1202
  const e = n.find((l) => P(l.name) === "vIf"), t = n.find(
1199
1203
  (l) => P(l.name) === "vElseIf"
1200
1204
  ), s = n.find((l) => P(l.name) === "vElse"), r = n.find((l) => P(l.name) === "vFor"), i = n.find((l) => P(l.name) === "vShow"), o = n.find((l) => P(l.name) === "vBind"), a = n.find((l) => P(l.name) === "vHtml"), u = n.filter(
@@ -1214,13 +1218,13 @@ function Le(n = []) {
1214
1218
  vHtml: a
1215
1219
  };
1216
1220
  }
1217
- function Yt(n, e) {
1221
+ function Zt(n, e) {
1218
1222
  return !!e.__parseExpression(n.value);
1219
1223
  }
1220
- function Zt(n, e) {
1224
+ function es(n, e) {
1221
1225
  return e ? E(e) ? n.__parseExpression(e) : e : "div";
1222
1226
  }
1223
- function es(n, e, t) {
1227
+ function ts(n, e, t) {
1224
1228
  const s = de(e, t);
1225
1229
  return s.ref = t.__ref(n, s.ref), s;
1226
1230
  }
@@ -1233,12 +1237,12 @@ function de(n, e) {
1233
1237
  {}
1234
1238
  ) : n;
1235
1239
  }
1236
- function ts(n, e) {
1240
+ function ss(n, e) {
1237
1241
  return (t) => {
1238
1242
  t?.key?.toLowerCase() === e.toLowerCase() && n(t);
1239
1243
  };
1240
1244
  }
1241
- function ss(n) {
1245
+ function ns(n) {
1242
1246
  return Ct(n.value) ? n : Pt(n.value) ? {
1243
1247
  type: "JSFunction",
1244
1248
  value: `(...args) => (() => {
@@ -1246,9 +1250,12 @@ function ss(n) {
1246
1250
  ${n.value}
1247
1251
  }).apply(this, args);
1248
1252
  })()`
1253
+ } : At(n.value) ? {
1254
+ type: "JSFunction",
1255
+ value: `() => { ${n.value}}`
1249
1256
  } : n;
1250
1257
  }
1251
- function ns(n, e, t, s) {
1258
+ function rs(n, e, t, s) {
1252
1259
  const r = ["passive", "capture", "once"], i = {
1253
1260
  capture: "Capture",
1254
1261
  once: "Once",
@@ -1256,19 +1263,19 @@ function ns(n, e, t, s) {
1256
1263
  };
1257
1264
  return Object.keys(t || {}).reduce(
1258
1265
  (a, u) => {
1259
- const c = t[u], l = qe(c.modifiers), f = l.find((m) => r.includes(m)), p = "on" + ot(u) + (f && i[f] || ""), d = c.handler ? s.__parseFunction(ss(c.handler)) : null;
1266
+ const c = t[u], l = Le(c.modifiers), f = l.find((m) => r.includes(m)), p = "on" + it(u) + (f && i[f] || ""), d = c.handler ? s.__parseFunction(ns(c.handler)) : null;
1260
1267
  return d && (a[p] = n.withModifiers(
1261
- l.includes("enter") ? ts(d, "enter") : d,
1268
+ l.includes("enter") ? ss(d, "enter") : d,
1262
1269
  l
1263
1270
  )), a;
1264
1271
  },
1265
1272
  {}
1266
1273
  );
1267
1274
  }
1268
- function rs(n, e, t, s, r = []) {
1275
+ function is(n, e, t, s, r = []) {
1269
1276
  let i = r.findIndex((o) => o.id === n.id);
1270
1277
  for (let o = ++i; o < r.length; o++) {
1271
- const { directives: a = [] } = r[o], { vElseIf: u, vElse: c } = Le(a);
1278
+ const { directives: a = [] } = r[o], { vElseIf: u, vElse: c } = Be(a);
1272
1279
  if (u) {
1273
1280
  if (e.__parseExpression(u.value))
1274
1281
  return T(r[o], e, t, s, r, !0);
@@ -1279,36 +1286,36 @@ function rs(n, e, t, s, r = []) {
1279
1286
  }
1280
1287
  return null;
1281
1288
  }
1282
- function qe(n = {}, e = !1) {
1289
+ function Le(n = {}, e = !1) {
1283
1290
  const t = Object.keys(n);
1284
1291
  return e ? t.map((s) => "." + s) : t;
1285
1292
  }
1286
- function is(n, e, t, s, r) {
1287
- const { children: i } = e, o = os(e, s), a = s.$slots?.[o.name];
1293
+ function os(n, e, t, s, r) {
1294
+ const { children: i } = e, o = as(e, s), a = s.$slots?.[o.name];
1288
1295
  return a ? a(t) : i ? I(i) ? n.createTextVNode(i) : E(i) ? n.createTextVNode(
1289
- Te(s.__parseExpression(i))
1296
+ Me(s.__parseExpression(i))
1290
1297
  ) : Array.isArray(i) ? i.map(
1291
1298
  (u, c) => T(u, s, n, r, i, !1, c)
1292
1299
  ) : null : null;
1293
1300
  }
1294
- function os(n, e) {
1301
+ function as(n, e) {
1295
1302
  const { props: t } = n, s = t?.name || "default";
1296
1303
  return {
1297
1304
  name: E(s) ? e.__parseExpression(s) : s,
1298
1305
  params: []
1299
1306
  };
1300
1307
  }
1301
- function as(n, e) {
1308
+ function cs(n, e) {
1302
1309
  return e.__parseExpression(n.value) ? {} : {
1303
1310
  display: "none"
1304
1311
  };
1305
1312
  }
1306
- function cs(n, e) {
1313
+ function ls(n, e) {
1307
1314
  return {
1308
1315
  innerHTML: e.__parseExpression(n.value) || ""
1309
1316
  };
1310
1317
  }
1311
- function ls(n, e) {
1318
+ function us(n, e) {
1312
1319
  const t = {
1313
1320
  type: "JSFunction",
1314
1321
  value: n.value?.value ? `(v) => {
@@ -1320,13 +1327,13 @@ function ls(n, e) {
1320
1327
  onInput: e.__parseFunction(t)
1321
1328
  };
1322
1329
  }
1323
- function us(n, e, t) {
1330
+ function fs(n, e, t) {
1324
1331
  const s = {
1325
1332
  type: "JSFunction",
1326
1333
  value: e.value?.value ? `(v) => {
1327
1334
  ${e.value.value} = v;
1328
1335
  }` : "(v) => {}"
1329
- }, r = t.__parseFunction(s), i = qe(
1336
+ }, r = t.__parseFunction(s), i = Le(
1330
1337
  E(e.modifiers) ? t.__parseExpression(e.modifiers) : e.modifiers
1331
1338
  ), o = E(e.arg) ? t.__parseExpression(e.arg) : e.arg || "modelValue";
1332
1339
  return {
@@ -1334,23 +1341,23 @@ function us(n, e, t) {
1334
1341
  [`onUpdate:${o}`]: i.length && r ? n.withModifiers(r, i) : r
1335
1342
  };
1336
1343
  }
1337
- function fs(n, e, t, s, r) {
1344
+ function ps(n, e, t, s, r) {
1338
1345
  if (!e) return null;
1339
1346
  if (I(e))
1340
1347
  return { default: () => e };
1341
1348
  if (E(e))
1342
1349
  return {
1343
- default: () => Te(t.__parseExpression(e))
1350
+ default: () => Me(t.__parseExpression(e))
1344
1351
  };
1345
1352
  if (Array.isArray(e) && e.length > 0) {
1346
- const i = ps(e), o = (a, u) => !a || !r ? {} : r?.id && Object.keys(a).length ? u ? {
1353
+ const i = ds(e), o = (a, u) => !a || !r ? {} : r?.id && Object.keys(a).length ? u ? {
1347
1354
  [u]: a
1348
1355
  } : {
1349
1356
  [`scope_${r.id}`]: a
1350
1357
  } : u ? { [u]: /* @__PURE__ */ Object.create(null) } : {};
1351
1358
  return Object.entries(i).reduce(
1352
1359
  (a, [u, { nodes: c, params: l, scope: f }]) => (a[u] = (p) => {
1353
- const d = l.length ? at(p ?? {}, l) : o(p, f);
1360
+ const d = l.length ? ot(p ?? {}, l) : o(p, f);
1354
1361
  return c.map(
1355
1362
  (m, h) => T(
1356
1363
  m,
@@ -1368,10 +1375,10 @@ function fs(n, e, t, s, r) {
1368
1375
  }
1369
1376
  return null;
1370
1377
  }
1371
- function ps(n) {
1378
+ function ds(n) {
1372
1379
  const e = {};
1373
1380
  for (const t of n) {
1374
- const s = ds(t.slot), r = s.name;
1381
+ const s = hs(t.slot), r = s.name;
1375
1382
  e[r] ? (e[r].nodes.push(t), e[r].params = e[r].params.concat(s.params), e[r].scope = s.scope || "") : e[r] = {
1376
1383
  nodes: [t],
1377
1384
  params: s.params,
@@ -1380,18 +1387,18 @@ function ps(n) {
1380
1387
  }
1381
1388
  return e;
1382
1389
  }
1383
- function ds(n = "default") {
1390
+ function hs(n = "default") {
1384
1391
  return I(n) ? { name: n, params: [], scope: "" } : { params: [], scope: "", ...n };
1385
1392
  }
1386
- function hs(n, e, t) {
1393
+ function ms(n, e, t) {
1387
1394
  const { value: s, iterator: r } = n, { item: i = "item", index: o = "index" } = r || {};
1388
1395
  let a = t.__parseExpression(s) || [];
1389
1396
  return Number.isInteger(a) && (a = new Array(a).fill(!0).map((u, c) => c + 1)), Array.isArray(a) ? a.map((u, c) => e(t.__clone({ [i]: u, [o]: c }), c)) : (console.warn("[vForRender]:", `${s?.value} is not a Arrary`), []);
1390
1397
  }
1391
- const ie = Fe({
1398
+ const ie = Ie({
1392
1399
  name: "VtjPageContainer",
1393
1400
  async setup() {
1394
- const n = Ke(), e = Oe(), t = e.meta.__vtj__ || e.params.id, s = t ? n.getPage(t) : n.getHomepage(), r = s ? await n.getRenderComponent(s.id) : null, i = ue(Symbol());
1401
+ const n = Je(), e = Fe(), t = e.meta.__vtj__ || e.params.id, s = t ? n.getPage(t) : n.getHomepage(), r = s ? await n.getRenderComponent(s.id) : null, i = ue(Symbol());
1395
1402
  if (s) {
1396
1403
  Object.assign(e.meta, s.meta || {}, { cache: s.cache });
1397
1404
  const { useTitle: o } = n?.adapter;
@@ -1421,7 +1428,7 @@ const ie = Fe({
1421
1428
  activated() {
1422
1429
  this.meta.cache === !1 && (this.sid = Symbol());
1423
1430
  }
1424
- }), ms = Fe({
1431
+ }), gs = Ie({
1425
1432
  name: "VtjStartupContainer",
1426
1433
  render() {
1427
1434
  return le("div", "page not found!");
@@ -1448,26 +1455,26 @@ function V(n, e, t = []) {
1448
1455
  }
1449
1456
  return s;
1450
1457
  }
1451
- function Ue(n, e) {
1458
+ function qe(n, e) {
1452
1459
  if (!e) return n;
1453
1460
  let t = [];
1454
1461
  for (const s of n)
1455
1462
  if (s.children && s.children.length) {
1456
- const r = Ue(s.children, e);
1463
+ const r = qe(s.children, e);
1457
1464
  r.length && (s.children = r, t.push(s));
1458
1465
  } else
1459
1466
  e.can(s.id.toString()) && t.push(s);
1460
1467
  return t;
1461
1468
  }
1462
- function Us(n) {
1469
+ function Js(n) {
1463
1470
  const {
1464
1471
  menuPathPrefix: e = "",
1465
1472
  pageRouteName: t = "page",
1466
1473
  disableMenusFilter: s = !1
1467
- } = n || {}, r = Ke(), i = Oe(), o = Ot(), a = ue(!1), u = ue(!1), c = r.project, l = (d, m) => {
1474
+ } = n || {}, r = Je(), i = Fe(), o = Mt(), a = ue(!1), u = ue(!1), c = r.project, l = (d, m) => {
1468
1475
  a.value = !d?.mask, u.value = m?.pure ?? !!d?.pure;
1469
1476
  };
1470
- ut(() => {
1477
+ lt(() => {
1471
1478
  const { name: d, params: m, meta: h } = i;
1472
1479
  if (d === k) {
1473
1480
  const g = r.getPage(m.id);
@@ -1494,7 +1501,7 @@ function Us(n) {
1494
1501
  logo: p?.logo,
1495
1502
  themeSwitchable: p?.themeSwitchable,
1496
1503
  title: p?.title || c?.description || c?.name || "VTJ App",
1497
- menus: s ? f : Ue(f, o),
1504
+ menus: s ? f : qe(f, o),
1498
1505
  pure: u
1499
1506
  };
1500
1507
  }
@@ -1564,18 +1571,18 @@ function he(n) {
1564
1571
  }
1565
1572
  return u;
1566
1573
  }
1567
- function gs(n = {}, e) {
1574
+ function _s(n = {}, e) {
1568
1575
  const { css: t, store: s, enhance: r } = n, { window: i, app: o, library: a = {}, adapter: u, mode: c } = e, { Pinia: l } = a;
1569
- o.config.globalProperties.$libs = a, ge(i, "global-css", t || ""), l && s && _s(s, o, l), ys(o, u, n), !u.access && n.access && vs(n.access, o, c, u), ws(o, n), r && Ss(r, o, a);
1576
+ o.config.globalProperties.$libs = a, ge(i, "global-css", t || ""), l && s && vs(s, o, l), ws(o, u, n), !u.access && n.access && ys(n.access, o, c, u), Ss(o, n), r && $s(r, o, a);
1570
1577
  }
1571
- function _s(n, e, t) {
1578
+ function vs(n, e, t) {
1572
1579
  const s = t.createPinia();
1573
1580
  if (e.use(s), $(n) && n.value) {
1574
1581
  const r = R(n, {}, !1, !1, !0), i = t.defineStore("$store", r(e) || {});
1575
1582
  e.config.globalProperties.$store = i();
1576
1583
  }
1577
1584
  }
1578
- function vs(n, e, t, s) {
1585
+ function ys(n, e, t, s) {
1579
1586
  if ($(n) && n.value) {
1580
1587
  const r = R(n, {}, !1, !1, !0), { alert: i, request: o } = s, a = new _e({
1581
1588
  alert: i,
@@ -1585,7 +1592,7 @@ function vs(n, e, t, s) {
1585
1592
  a.connect({ mode: t, router: u, request: o }), e.use(a);
1586
1593
  }
1587
1594
  }
1588
- function ys(n, e, t) {
1595
+ function ws(n, e, t) {
1589
1596
  if (!e.request) return;
1590
1597
  const { axios: s, request: r, response: i } = t;
1591
1598
  if (s && $(s) && s.value) {
@@ -1601,7 +1608,7 @@ function ys(n, e, t) {
1601
1608
  a.__unRes && a.__unRes(), a.__unRes = e.request.useResponse((u) => o(u, n));
1602
1609
  }
1603
1610
  }
1604
- function ws(n, e) {
1611
+ function Ss(n, e) {
1605
1612
  const { beforeEach: t, afterEach: s } = e, r = n.config.globalProperties.$router;
1606
1613
  if (t && $(t) && t.value) {
1607
1614
  const i = R(t, {}, !1, !1, !0);
@@ -1612,10 +1619,10 @@ function ws(n, e) {
1612
1619
  r && r.afterEach((o, a, u) => i(o, a, u, n));
1613
1620
  }
1614
1621
  }
1615
- function Ss(n, e, t = {}) {
1622
+ function $s(n, e, t = {}) {
1616
1623
  $(n) && n.value && R(n, {}, !1, !1, !0)(e, t);
1617
1624
  }
1618
- function $s(n, e, t) {
1625
+ function Es(n, e, t) {
1619
1626
  if (!n || !e || !t) return;
1620
1627
  const { VueI18n: s } = e;
1621
1628
  if (s) {
@@ -1634,9 +1641,9 @@ function $s(n, e, t) {
1634
1641
  n.use(u);
1635
1642
  }
1636
1643
  }
1637
- const Je = Symbol("Provider");
1638
- var Es = /* @__PURE__ */ ((n) => (n.Production = "production", n.Development = "development", n))(Es || {});
1639
- class bs extends Xe {
1644
+ const Ue = Symbol("Provider");
1645
+ var bs = /* @__PURE__ */ ((n) => (n.Production = "production", n.Development = "development", n))(bs || {});
1646
+ class js extends Qe {
1640
1647
  /**
1641
1648
  * 创建Provider实例
1642
1649
  * @param options 配置选项
@@ -1667,7 +1674,7 @@ class bs extends Xe {
1667
1674
  // 全局变量
1668
1675
  modules = {};
1669
1676
  // 异步模块加载器
1670
- adapter = { request: ce, jsonp: Ae };
1677
+ adapter = { request: ce, jsonp: Pe };
1671
1678
  // 适配器接口
1672
1679
  apis = {};
1673
1680
  // API集合
@@ -1724,7 +1731,7 @@ class bs extends Xe {
1724
1731
  if (this.project = s ? await s() : await this.service.init(e), !this.project)
1725
1732
  throw new Error("project is null");
1726
1733
  const { apis: r = [], meta: i = [], env: o = [] } = this.project, a = window;
1727
- a && (a.CKEDITOR_VERSION = void 0), this.initEnv(o), this.mode === y.Raw ? await this.loadDependencies(a) : await this.loadAssets(a), this.initMock(a), this.apis = xt(r, i, this.adapter), ke(a), Dt(r, a), e.platform !== "uniapp" && this.initRouter(), this.triggerReady();
1734
+ a && (a.CKEDITOR_VERSION = void 0), this.initEnv(o), this.mode === y.Raw ? await this.loadDependencies(a) : await this.loadAssets(a), this.initMock(a), this.apis = Dt(r, i, this.adapter), He(a), Ht(r, a), e.platform !== "uniapp" && this.initRouter(), this.triggerReady();
1728
1735
  }
1729
1736
  initMock(e) {
1730
1737
  const t = N(e);
@@ -1782,7 +1789,7 @@ class bs extends Xe {
1782
1789
  await be(O.append(g, { v: H }));
1783
1790
  const h = this.materials || {};
1784
1791
  for (const g of p) {
1785
- const v = e[d[g]], w = v?.default || v, b = Ye[g];
1792
+ const v = e[d[g]], w = v?.default || v, b = Xe[g];
1786
1793
  if (b)
1787
1794
  w && b.forEach((_) => {
1788
1795
  i[_] = w[_];
@@ -1810,7 +1817,7 @@ class bs extends Xe {
1810
1817
  }, f = this.getHomepage(), p = {
1811
1818
  path: c,
1812
1819
  name: J,
1813
- component: f ? ie : r.startupComponent || ms,
1820
+ component: f ? ie : r.startupComponent || gs,
1814
1821
  meta: u
1815
1822
  };
1816
1823
  if (e.hasRoute(k) && e.removeRoute(k), e.hasRoute(J) && e.removeRoute(J), s.enableStaticRoute) {
@@ -1829,7 +1836,7 @@ class bs extends Xe {
1829
1836
  o ? (e.addRoute(o, l), e.addRoute(o, p)) : (e.addRoute(l), e.addRoute(p));
1830
1837
  }
1831
1838
  setErrorHandler(e) {
1832
- e.config.errorHandler = ct((t, s, r) => {
1839
+ e.config.errorHandler = at((t, s, r) => {
1833
1840
  const i = s?.$options.name, o = typeof t == "string" ? t : t?.message || t?.msg || "未知错误", a = `[ ${i} ] ${o} ${r}`;
1834
1841
  ["getComputedStyle", "ResizeObserver"].some((c) => a.includes(c)) || (console.error(
1835
1842
  "[VTJ Error]:",
@@ -1859,7 +1866,7 @@ class bs extends Xe {
1859
1866
  const c = { locale: s[t[o]] }, l = r[o] || {}, f = { ...c, ...l };
1860
1867
  e.use(a, f), i[o] = !0;
1861
1868
  }
1862
- e.provide(Je, this), e.config.globalProperties.$provider = this, e.config.globalProperties.$request = this.adapter?.request, this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), this.project?.platform !== "uniapp" && this.mode !== y.Design && this.initGlobals(this.project?.globals || {}, {
1869
+ e.provide(Ue, this), e.config.globalProperties.$provider = this, e.config.globalProperties.$request = this.adapter?.request, this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), this.project?.platform !== "uniapp" && this.mode !== y.Design && this.initGlobals(this.project?.globals || {}, {
1863
1870
  app: e,
1864
1871
  window,
1865
1872
  adapter: this.adapter,
@@ -1996,7 +2003,7 @@ class bs extends Xe {
1996
2003
  * @returns Vue异步组件
1997
2004
  */
1998
2005
  definePluginComponent(e) {
1999
- return je(async () => await Be(e, window));
2006
+ return je(async () => await Ne(e, window));
2000
2007
  }
2001
2008
  /**
2002
2009
  * 设置应用全局
@@ -2011,10 +2018,10 @@ class bs extends Xe {
2011
2018
  },
2012
2019
  t
2013
2020
  );
2014
- gs(e, s);
2021
+ _s(e, s);
2015
2022
  }
2016
2023
  initI18n(e, t, s) {
2017
- $s(e, t, s);
2024
+ Es(e, t, s);
2018
2025
  }
2019
2026
  initEnv(e = []) {
2020
2027
  this.env = e.reduce(
@@ -2023,15 +2030,15 @@ class bs extends Xe {
2023
2030
  );
2024
2031
  }
2025
2032
  }
2026
- function Js(n) {
2027
- const e = new bs(n);
2033
+ function Ks(n) {
2034
+ const e = new js(n);
2028
2035
  return {
2029
2036
  provider: e,
2030
2037
  onReady: (s) => e.ready(s)
2031
2038
  };
2032
2039
  }
2033
- function Ke(n = {}) {
2034
- const e = Ie(Je, null);
2040
+ function Je(n = {}) {
2041
+ const e = Ae(Ue, null);
2035
2042
  if (!e)
2036
2043
  throw new Error("Can not find provider");
2037
2044
  if (e.nodeEnv === "development") {
@@ -2047,21 +2054,21 @@ function Ke(n = {}) {
2047
2054
  }
2048
2055
  return e;
2049
2056
  }
2050
- async function Ks(n, e = "") {
2057
+ async function zs(n, e = "") {
2051
2058
  const { name: t, urls: s = [] } = n || {}, r = s.map((a) => e + a), { css: i, js: o } = vt(r);
2052
- if (i.length && xe(i), o.length)
2053
- return await De(o, t).catch(
2059
+ if (i.length && Te(i), o.length)
2060
+ return await xe(o, t).catch(
2054
2061
  () => {
2055
2062
  }
2056
2063
  );
2057
2064
  }
2058
- const ze = {
2065
+ const Ke = {
2059
2066
  type: "json",
2060
2067
  validSuccess: !0,
2061
2068
  originResponse: !1,
2062
2069
  failMessage: !0,
2063
2070
  validate: (n) => n.data?.code === 0
2064
- }, js = (n, e = "/__vtj__/api/:type.json") => (t, s, r) => n.send({
2071
+ }, Rs = (n, e = "/__vtj__/api/:type.json") => (t, s, r) => n.send({
2065
2072
  url: e,
2066
2073
  method: "post",
2067
2074
  params: { type: t },
@@ -2070,8 +2077,8 @@ const ze = {
2070
2077
  type: t,
2071
2078
  data: s
2072
2079
  },
2073
- settings: ze
2074
- }), Rs = (n, e = "/__vtj__/api/uploader.json") => async (t, s) => await n.send({
2080
+ settings: Ke
2081
+ }), Cs = (n, e = "/__vtj__/api/uploader.json") => async (t, s) => await n.send({
2075
2082
  url: e,
2076
2083
  method: "post",
2077
2084
  data: {
@@ -2079,12 +2086,12 @@ const ze = {
2079
2086
  projectId: s
2080
2087
  },
2081
2088
  settings: {
2082
- ...ze,
2089
+ ...Ke,
2083
2090
  type: "data"
2084
2091
  }
2085
2092
  }).then((r) => r && r[0] ? r[0] : null).catch(() => null);
2086
- function zs(n) {
2087
- return Pe({
2093
+ function Gs(n) {
2094
+ return Ce({
2088
2095
  settings: {
2089
2096
  type: "json",
2090
2097
  validSuccess: !0,
@@ -2099,7 +2106,7 @@ function zs(n) {
2099
2106
  }
2100
2107
  class ve {
2101
2108
  constructor(e = ce) {
2102
- this.req = e, this.api = js(e), this.uploader = Rs(e);
2109
+ this.req = e, this.api = Rs(e), this.uploader = Cs(e);
2103
2110
  }
2104
2111
  api;
2105
2112
  pluginCaches = {};
@@ -2199,12 +2206,12 @@ class ve {
2199
2206
  return console.log("BaseService.genSource", e), "";
2200
2207
  }
2201
2208
  }
2202
- const S = new lt({
2209
+ const S = new ct({
2203
2210
  type: "local",
2204
2211
  expired: 0,
2205
2212
  prefix: "__VTJ_"
2206
2213
  });
2207
- class Gs extends ve {
2214
+ class Vs extends ve {
2208
2215
  init(e) {
2209
2216
  const t = new K(e), s = S.get(`project_${t.id}`), r = Object.assign(t.toDsl(), s || {});
2210
2217
  return S.save(`project_${t.id}`, r), Promise.resolve(r);
@@ -2238,7 +2245,7 @@ class Gs extends ve {
2238
2245
  return Promise.resolve(!0);
2239
2246
  }
2240
2247
  getHistory(e) {
2241
- const t = S.get(`history_${e}`), s = new Ce(t || { id: e });
2248
+ const t = S.get(`history_${e}`), s = new Re(t || { id: e });
2242
2249
  return Promise.resolve(s.toDsl());
2243
2250
  }
2244
2251
  getHistoryItem(e, t) {
@@ -2254,7 +2261,7 @@ class Gs extends ve {
2254
2261
  }), Promise.resolve(!0);
2255
2262
  }
2256
2263
  }
2257
- class Cs extends ve {
2264
+ class Ps extends ve {
2258
2265
  projects = {};
2259
2266
  materials = {};
2260
2267
  files = {};
@@ -2293,7 +2300,7 @@ class Cs extends ve {
2293
2300
  return Promise.resolve(!0);
2294
2301
  }
2295
2302
  getHistory(e) {
2296
- const t = this.histories[e], s = new Ce(t || { id: e });
2303
+ const t = this.histories[e], s = new Re(t || { id: e });
2297
2304
  return Promise.resolve(s);
2298
2305
  }
2299
2306
  getHistoryItem(e, t) {
@@ -2312,10 +2319,10 @@ class Cs extends ve {
2312
2319
  }
2313
2320
  }
2314
2321
  let U = null;
2315
- function Vs() {
2316
- return U || (U = new Cs(), U);
2322
+ function Ws() {
2323
+ return U || (U = new Ps(), U);
2317
2324
  }
2318
- class Ws extends ve {
2325
+ class Qs extends ve {
2319
2326
  getFileCaches = {};
2320
2327
  async getExtension() {
2321
2328
  return await this.api("getExtension", {}).catch(() => {
@@ -2373,59 +2380,60 @@ class Ws extends ve {
2373
2380
  }
2374
2381
  }
2375
2382
  export {
2376
- Ts as ACCESS,
2377
- He as ACCESS_KEY,
2383
+ xs as ACCESS,
2384
+ De as ACCESS_KEY,
2378
2385
  _e as Access,
2379
2386
  dt as BUILD_IN_TAGS,
2380
2387
  ft as BUILT_IN_DIRECTIVES,
2381
2388
  ve as BaseService,
2382
- Re as CONTEXT_HOST,
2383
- Nt as Context,
2389
+ ut as CONTEXT_HOST,
2390
+ Bt as Context,
2384
2391
  y as ContextMode,
2385
2392
  pt as DATA_TYPES,
2386
2393
  J as HOMEPAGE_ROUTE_NAME,
2387
- Me as HTML_TAGS,
2388
- Ns as JSCodeToString,
2389
- Os as LIFE_CYCLES_LIST,
2390
- Ws as LocalService,
2391
- Cs as MemoryService,
2392
- Es as NodeEnv,
2394
+ Oe as HTML_TAGS,
2395
+ Bs as JSCodeToString,
2396
+ Ms as LIFE_CYCLES_LIST,
2397
+ Qs as LocalService,
2398
+ Ps as MemoryService,
2399
+ bs as NodeEnv,
2393
2400
  k as PAGE_ROUTE_NAME,
2394
- bs as Provider,
2395
- Ms as REMOTE,
2396
- Gs as StorageService,
2401
+ js as Provider,
2402
+ Ts as REMOTE,
2403
+ Vs as StorageService,
2397
2404
  H as VTJ_RENDERER_VERSION,
2398
- Hs as adoptStylesToInline,
2405
+ ks as adoptStylesToInline,
2399
2406
  ge as adoptedStyleSheets,
2400
- qs as clearLoaderCache,
2407
+ Us as clearLoaderCache,
2401
2408
  yt as compileScopedCSS,
2402
2409
  $t as convertCssRpx,
2403
- Ls as createAccess,
2404
- Bs as createAdapter,
2405
- xs as createAssetScripts,
2406
- Ds as createAssetsCss,
2407
- zt as createDataSources,
2410
+ qs as createAccess,
2411
+ Ls as createAdapter,
2412
+ Ds as createAssetScripts,
2413
+ Hs as createAssetsCss,
2414
+ Gt as createDataSources,
2408
2415
  pe as createLoader,
2409
- Vs as createMemoryService,
2416
+ Ws as createMemoryService,
2410
2417
  V as createMenus,
2411
- Tt as createMetaApi,
2412
- Ht as createMock,
2413
- Js as createProvider,
2418
+ xt as createMetaApi,
2419
+ kt as createMock,
2420
+ Ks as createProvider,
2414
2421
  fe as createRenderer,
2415
- Mt as createSchemaApi,
2416
- xt as createSchemaApis,
2417
- zs as createServiceRequest,
2418
- Qt as defaultLoader,
2422
+ Tt as createSchemaApi,
2423
+ Dt as createSchemaApis,
2424
+ Gs as createServiceRequest,
2425
+ Xt as defaultLoader,
2419
2426
  q as fillBasePath,
2420
2427
  N as getMock,
2421
- qe as getModifiers,
2422
- Be as getPlugin,
2428
+ Le as getModifiers,
2429
+ Ne as getPlugin,
2423
2430
  _t as getRawComponent,
2424
2431
  Ct as isArrowFunction,
2432
+ At as isAssignment‌,
2425
2433
  jt as isBuiltInTag,
2426
2434
  Q as isCSSUrl,
2427
2435
  Pt as isCallFunction,
2428
- It as isJSCode,
2436
+ Ft as isJSCode,
2429
2437
  E as isJSExpression,
2430
2438
  $ as isJSFunction,
2431
2439
  ht as isJSON,
@@ -2433,25 +2441,25 @@ export {
2433
2441
  Rt as isNativeTag,
2434
2442
  bt as isVuePlugin,
2435
2443
  Et as loadCss,
2436
- xe as loadCssUrl,
2437
- Ks as loadEnhance,
2438
- De as loadScriptUrl,
2439
- Ue as menusFilter,
2440
- kt as mockApi,
2441
- Dt as mockApis,
2442
- ke as mockCleanup,
2444
+ Te as loadCssUrl,
2445
+ zs as loadEnhance,
2446
+ xe as loadScriptUrl,
2447
+ qe as menusFilter,
2448
+ Nt as mockApi,
2449
+ Ht as mockApis,
2450
+ He as mockCleanup,
2443
2451
  x as nodeCache,
2444
2452
  T as nodeRender,
2445
2453
  gt as parseDeps,
2446
2454
  B as parseExpression,
2447
2455
  R as parseFunction,
2448
2456
  vt as parseUrls,
2449
- Je as providerKey,
2457
+ Ue as providerKey,
2450
2458
  mt as removeProdFlag,
2451
2459
  St as rpxToPx,
2452
- ks as setupPageSetting,
2453
- Te as toString,
2454
- Ot as useAccess,
2455
- Us as useMask,
2456
- Ke as useProvider
2460
+ Ns as setupPageSetting,
2461
+ Me as toString,
2462
+ Mt as useAccess,
2463
+ Js as useMask,
2464
+ Je as useProvider
2457
2465
  };