@chamn/render 0.0.7 → 0.0.9

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.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Xo = Object.defineProperty;
2
2
  var Ko = (t, e, r) => e in t ? Xo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var g = (t, e, r) => (Ko(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- import w, { Component as Zo, createElement as ta, useEffect as ea, useRef as An, useMemo as ra } from "react";
4
+ import S, { Component as Zo, createElement as ta, useEffect as ea, useRef as An, useMemo as ra } from "react";
5
5
  import * as na from "react-dom";
6
6
  const oa = (t) => () => {
7
7
  console.warn(`${t} need to be implement getComponent`);
@@ -63,9 +63,9 @@ function Ke(t, e) {
63
63
  o[r] = e(t[r], r, t);
64
64
  return o;
65
65
  }
66
- var Sa = Array.isArray;
67
- const M = Sa;
68
- var wa = 1 / 0, Rr = k ? k.prototype : void 0, Dr = Rr ? Rr.toString : void 0;
66
+ var wa = Array.isArray;
67
+ const M = wa;
68
+ var Sa = 1 / 0, Rr = k ? k.prototype : void 0, Dr = Rr ? Rr.toString : void 0;
69
69
  function Rn(t) {
70
70
  if (typeof t == "string")
71
71
  return t;
@@ -74,7 +74,7 @@ function Rn(t) {
74
74
  if (Xe(t))
75
75
  return Dr ? Dr.call(t) : "";
76
76
  var e = t + "";
77
- return e == "0" && 1 / t == -wa ? "-0" : e;
77
+ return e == "0" && 1 / t == -Sa ? "-0" : e;
78
78
  }
79
79
  function W(t) {
80
80
  var e = typeof t;
@@ -320,8 +320,8 @@ const Gt = bs;
320
320
  function _s() {
321
321
  return !1;
322
322
  }
323
- var Un = typeof exports == "object" && exports && !exports.nodeType && exports, Ur = Un && typeof module == "object" && module && !module.nodeType && module, js = Ur && Ur.exports === Un, kr = js ? X.Buffer : void 0, Ss = kr ? kr.isBuffer : void 0, ws = Ss || _s;
324
- const Ht = ws;
323
+ var Un = typeof exports == "object" && exports && !exports.nodeType && exports, Ur = Un && typeof module == "object" && module && !module.nodeType && module, js = Ur && Ur.exports === Un, kr = js ? X.Buffer : void 0, ws = kr ? kr.isBuffer : void 0, Ss = ws || _s;
324
+ const Ht = Ss;
325
325
  var Os = "[object Arguments]", Cs = "[object Array]", Es = "[object Boolean]", xs = "[object Date]", Ns = "[object Error]", $s = "[object Function]", Ts = "[object Map]", As = "[object Number]", Ms = "[object Object]", Ps = "[object RegExp]", Rs = "[object Set]", Ds = "[object String]", Is = "[object WeakMap]", Ls = "[object ArrayBuffer]", Fs = "[object DataView]", Bs = "[object Float32Array]", Us = "[object Float64Array]", ks = "[object Int8Array]", zs = "[object Int16Array]", Gs = "[object Int32Array]", Hs = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", Ws = "[object Uint16Array]", Js = "[object Uint32Array]", x = {};
326
326
  x[Bs] = x[Us] = x[ks] = x[zs] = x[Gs] = x[Hs] = x[Vs] = x[Ws] = x[Js] = !0;
327
327
  x[Os] = x[Cs] = x[Ls] = x[Es] = x[Fs] = x[xs] = x[Ns] = x[$s] = x[Ts] = x[As] = x[Ms] = x[Ps] = x[Rs] = x[Ds] = x[Is] = !1;
@@ -423,7 +423,7 @@ function _i(t) {
423
423
  return Vt ? e[t] !== void 0 : bi.call(e, t);
424
424
  }
425
425
  var ji = "__lodash_hash_undefined__";
426
- function Si(t, e) {
426
+ function wi(t, e) {
427
427
  var r = this.__data__;
428
428
  return this.size += this.has(t) ? 0 : 1, r[t] = Vt && e === void 0 ? ji : e, this;
429
429
  }
@@ -438,8 +438,8 @@ lt.prototype.clear = pi;
438
438
  lt.prototype.delete = di;
439
439
  lt.prototype.get = yi;
440
440
  lt.prototype.has = _i;
441
- lt.prototype.set = Si;
442
- function wi() {
441
+ lt.prototype.set = wi;
442
+ function Si() {
443
443
  this.__data__ = [], this.size = 0;
444
444
  }
445
445
  function ve(t, e) {
@@ -474,7 +474,7 @@ function et(t) {
474
474
  this.set(n[0], n[1]);
475
475
  }
476
476
  }
477
- et.prototype.clear = wi;
477
+ et.prototype.clear = Si;
478
478
  et.prototype.delete = Ei;
479
479
  et.prototype.get = xi;
480
480
  et.prototype.has = Ni;
@@ -706,12 +706,12 @@ var _c = vt(X, "Promise");
706
706
  const Le = _c;
707
707
  var jc = vt(X, "Set");
708
708
  const bt = jc;
709
- var qr = "[object Map]", Sc = "[object Object]", Qr = "[object Promise]", Yr = "[object Set]", Xr = "[object WeakMap]", Kr = "[object DataView]", wc = ht(Ie), Oc = ht(Wt), Cc = ht(Le), Ec = ht(bt), xc = ht(Re), ut = dt;
709
+ var qr = "[object Map]", wc = "[object Object]", Qr = "[object Promise]", Yr = "[object Set]", Xr = "[object WeakMap]", Kr = "[object DataView]", Sc = ht(Ie), Oc = ht(Wt), Cc = ht(Le), Ec = ht(bt), xc = ht(Re), ut = dt;
710
710
  (Ie && ut(new Ie(new ArrayBuffer(1))) != Kr || Wt && ut(new Wt()) != qr || Le && ut(Le.resolve()) != Qr || bt && ut(new bt()) != Yr || Re && ut(new Re()) != Xr) && (ut = function(t) {
711
- var e = dt(t), r = e == Sc ? t.constructor : void 0, n = r ? ht(r) : "";
711
+ var e = dt(t), r = e == wc ? t.constructor : void 0, n = r ? ht(r) : "";
712
712
  if (n)
713
713
  switch (n) {
714
- case wc:
714
+ case Sc:
715
715
  return Kr;
716
716
  case Oc:
717
717
  return qr;
@@ -802,8 +802,8 @@ function iu(t) {
802
802
  }
803
803
  var rn = _t && _t.isSet, cu = rn ? ar(rn) : iu;
804
804
  const uu = cu;
805
- var lu = 1, fu = 2, pu = 4, Zn = "[object Arguments]", du = "[object Array]", hu = "[object Boolean]", vu = "[object Date]", mu = "[object Error]", to = "[object Function]", yu = "[object GeneratorFunction]", gu = "[object Map]", bu = "[object Number]", eo = "[object Object]", _u = "[object RegExp]", ju = "[object Set]", Su = "[object String]", wu = "[object Symbol]", Ou = "[object WeakMap]", Cu = "[object ArrayBuffer]", Eu = "[object DataView]", xu = "[object Float32Array]", Nu = "[object Float64Array]", $u = "[object Int8Array]", Tu = "[object Int16Array]", Au = "[object Int32Array]", Mu = "[object Uint8Array]", Pu = "[object Uint8ClampedArray]", Ru = "[object Uint16Array]", Du = "[object Uint32Array]", E = {};
806
- E[Zn] = E[du] = E[Cu] = E[Eu] = E[hu] = E[vu] = E[xu] = E[Nu] = E[$u] = E[Tu] = E[Au] = E[gu] = E[bu] = E[eo] = E[_u] = E[ju] = E[Su] = E[wu] = E[Mu] = E[Pu] = E[Ru] = E[Du] = !0;
805
+ var lu = 1, fu = 2, pu = 4, Zn = "[object Arguments]", du = "[object Array]", hu = "[object Boolean]", vu = "[object Date]", mu = "[object Error]", to = "[object Function]", yu = "[object GeneratorFunction]", gu = "[object Map]", bu = "[object Number]", eo = "[object Object]", _u = "[object RegExp]", ju = "[object Set]", wu = "[object String]", Su = "[object Symbol]", Ou = "[object WeakMap]", Cu = "[object ArrayBuffer]", Eu = "[object DataView]", xu = "[object Float32Array]", Nu = "[object Float64Array]", $u = "[object Int8Array]", Tu = "[object Int16Array]", Au = "[object Int32Array]", Mu = "[object Uint8Array]", Pu = "[object Uint8ClampedArray]", Ru = "[object Uint16Array]", Du = "[object Uint32Array]", E = {};
806
+ E[Zn] = E[du] = E[Cu] = E[Eu] = E[hu] = E[vu] = E[xu] = E[Nu] = E[$u] = E[Tu] = E[Au] = E[gu] = E[bu] = E[eo] = E[_u] = E[ju] = E[wu] = E[Su] = E[Mu] = E[Pu] = E[Ru] = E[Du] = !0;
807
807
  E[mu] = E[to] = E[Ou] = !1;
808
808
  function Ut(t, e, r, n, o, a) {
809
809
  var i, s = e & lu, c = e & fu, u = e & pu;
@@ -834,12 +834,12 @@ function Ut(t, e, r, n, o, a) {
834
834
  return d;
835
835
  a.set(t, i), uu(t) ? t.forEach(function(b) {
836
836
  i.add(Ut(b, e, r, b, t, a));
837
- }) : au(t) && t.forEach(function(b, S) {
838
- i.set(S, Ut(b, e, r, S, t, a));
837
+ }) : au(t) && t.forEach(function(b, w) {
838
+ i.set(w, Ut(b, e, r, w, t, a));
839
839
  });
840
840
  var h = u ? c ? dr : De : c ? Kt : he, y = l ? void 0 : h(t);
841
- return es(y || t, function(b, S) {
842
- y && (S = b, b = t[S]), rr(i, S, Ut(b, e, r, S, t, a));
841
+ return es(y || t, function(b, w) {
842
+ y && (w = b, b = t[w]), rr(i, w, Ut(b, e, r, w, t, a));
843
843
  }), i;
844
844
  }
845
845
  var Iu = 1, Lu = 4;
@@ -889,8 +889,8 @@ function oo(t, e, r, n, o, a) {
889
889
  break;
890
890
  }
891
891
  if (d) {
892
- if (!ku(e, function(S, C) {
893
- if (!no(d, C) && (h === S || o(h, S, r, n, a)))
892
+ if (!ku(e, function(w, C) {
893
+ if (!no(d, C) && (h === w || o(h, w, r, n, a)))
894
894
  return d.push(C);
895
895
  })) {
896
896
  f = !1;
@@ -968,10 +968,10 @@ function cl(t, e, r, n, o, a) {
968
968
  a.set(t, e), a.set(e, t);
969
969
  for (var b = i; ++p < c; ) {
970
970
  f = s[p];
971
- var S = t[f], C = e[f];
971
+ var w = t[f], C = e[f];
972
972
  if (n)
973
- var P = i ? n(C, S, f, e, t, a) : n(S, C, f, t, e, a);
974
- if (!(P === void 0 ? S === C || o(S, C, r, n, a) : P)) {
973
+ var P = i ? n(C, w, f, e, t, a) : n(w, C, f, t, e, a);
974
+ if (!(P === void 0 ? w === C || o(w, C, r, n, a) : P)) {
975
975
  y = !1;
976
976
  break;
977
977
  }
@@ -1071,13 +1071,13 @@ function bl(t, e) {
1071
1071
  return t != null && gl(t, e, yl);
1072
1072
  }
1073
1073
  var _l = 1, jl = 2;
1074
- function Sl(t, e) {
1074
+ function wl(t, e) {
1075
1075
  return ir(t) && ao(e) ? so($t(t), e) : function(r) {
1076
1076
  var n = Hn(r, t);
1077
1077
  return n === void 0 && n === e ? bl(r, t) : mr(e, n, _l | jl);
1078
1078
  };
1079
1079
  }
1080
- function wl(t) {
1080
+ function Sl(t) {
1081
1081
  return function(e) {
1082
1082
  return e == null ? void 0 : e[t];
1083
1083
  };
@@ -1088,10 +1088,10 @@ function Ol(t) {
1088
1088
  };
1089
1089
  }
1090
1090
  function Cl(t) {
1091
- return ir(t) ? wl($t(t)) : Ol(t);
1091
+ return ir(t) ? Sl($t(t)) : Ol(t);
1092
1092
  }
1093
1093
  function yr(t) {
1094
- return typeof t == "function" ? t : t == null ? Ze : typeof t == "object" ? M(t) ? Sl(t[0], t[1]) : ml(t) : Cl(t);
1094
+ return typeof t == "function" ? t : t == null ? Ze : typeof t == "object" ? M(t) ? wl(t[0], t[1]) : ml(t) : Cl(t);
1095
1095
  }
1096
1096
  function El(t) {
1097
1097
  return function(e, r, n) {
@@ -1662,7 +1662,7 @@ const _r = O({
1662
1662
  "CNativeTag"
1663
1663
  ];
1664
1664
  var U = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t))(U || {}), jr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(jr || {}), ze = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(ze || {});
1665
- const lf = () => it("normalObj", (t) => !F(t) || [U.SLOT, U.EXPRESSION, U.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Tt(t, kt(v(), Sr)), !0)), Sr = I([
1665
+ const lf = () => it("normalObj", (t) => !F(t) || [U.SLOT, U.EXPRESSION, U.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Tt(t, kt(v(), wr)), !0)), wr = I([
1666
1666
  v(),
1667
1667
  mo(),
1668
1668
  tt(),
@@ -1672,7 +1672,7 @@ const lf = () => it("normalObj", (t) => !F(t) || [U.SLOT, U.EXPRESSION, U.FUNCTI
1672
1672
  // if renderType is Func, params will be useful
1673
1673
  params: m(A(v())),
1674
1674
  // here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
1675
- value: jt(() => I([St, A(St)]))
1675
+ value: jt(() => I([wt, A(wt)]))
1676
1676
  }),
1677
1677
  O({
1678
1678
  type: L(U.EXPRESSION),
@@ -1684,19 +1684,19 @@ const lf = () => it("normalObj", (t) => !F(t) || [U.SLOT, U.EXPRESSION, U.FUNCTI
1684
1684
  }),
1685
1685
  lf(),
1686
1686
  A(
1687
- jt(() => Sr)
1687
+ jt(() => wr)
1688
1688
  )
1689
1689
  ]), un = O({
1690
1690
  type: L(U.EXPRESSION),
1691
1691
  value: v()
1692
- }), St = O({
1692
+ }), wt = O({
1693
1693
  id: m(v()),
1694
1694
  title: m(v()),
1695
1695
  componentName: v(),
1696
- props: m(kt(v(), Sr)),
1696
+ props: m(kt(v(), wr)),
1697
1697
  stateName: m(v()),
1698
1698
  state: m(kt(v(), D())),
1699
- children: jt(() => m(A(I([v(), St])))),
1699
+ children: jt(() => m(A(I([v(), wt])))),
1700
1700
  configure: m(D()),
1701
1701
  css: m(D()),
1702
1702
  style: m(D()),
@@ -1819,7 +1819,7 @@ const mf = O({
1819
1819
  groupName: m(v()),
1820
1820
  // 分类
1821
1821
  category: m(v()),
1822
- schema: br(ho(St, ["id"]), O({ componentName: m(v()) }))
1822
+ schema: br(ho(wt, ["id"]), O({ componentName: m(v()) }))
1823
1823
  }), yf = O({
1824
1824
  componentName: v(),
1825
1825
  title: v(),
@@ -1899,7 +1899,7 @@ const mf = O({
1899
1899
  data struct format is invalidate`
1900
1900
  );
1901
1901
  return o;
1902
- }, wr = (t) => {
1902
+ }, Sr = (t) => {
1903
1903
  const { data: e, message: r, throwError: n, dataStruct: o } = t;
1904
1904
  return gf(({ data: a }) => {
1905
1905
  try {
@@ -1922,7 +1922,7 @@ const bf = O({
1922
1922
  type: L(U.FUNCTION),
1923
1923
  value: v()
1924
1924
  }), _f = br(
1925
- ho(St, ["componentName"]),
1925
+ ho(wt, ["componentName"]),
1926
1926
  O({
1927
1927
  componentName: L(
1928
1928
  "RootContainer"
@@ -1946,7 +1946,7 @@ function jf(t) {
1946
1946
  });
1947
1947
  } };
1948
1948
  }
1949
- const Zt = jf(), Sf = (t, e) => {
1949
+ const Zt = jf(), wf = (t, e) => {
1950
1950
  const r = {
1951
1951
  ...t,
1952
1952
  value: []
@@ -1964,11 +1964,11 @@ const Zt = jf(), Sf = (t, e) => {
1964
1964
  })
1965
1965
  )), r;
1966
1966
  };
1967
- class wt {
1967
+ class St {
1968
1968
  constructor(e, r) {
1969
1969
  _(this, "nodeType", "SLOT"), _(this, "rawData"), _(this, "parent"), _(this, "emitter", Zt), _(this, "data"), _(this, "id"), _(this, "materialsMode"), this.parent = (r == null ? void 0 : r.parent) || null, this.rawData = e;
1970
1970
  const n = (r == null ? void 0 : r.materials) || new ft([]);
1971
- this.materialsMode = n, this.id = Z(), this.data = Sf(e, this);
1971
+ this.materialsMode = n, this.id = Z(), this.data = wf(e, this);
1972
1972
  }
1973
1973
  get value() {
1974
1974
  return this.data;
@@ -1996,7 +1996,7 @@ const go = (t) => {
1996
1996
  }), e;
1997
1997
  }, He = (t, e, r) => {
1998
1998
  if (t.type)
1999
- return t.type === U.SLOT ? new wt(t, { parent: e, materials: r }) : t;
1999
+ return t.type === U.SLOT ? new St(t, { parent: e, materials: r }) : t;
2000
2000
  if (F(t)) {
2001
2001
  const n = {};
2002
2002
  return Object.keys(t).forEach((o) => {
@@ -2028,7 +2028,7 @@ class st {
2028
2028
  value: this.data,
2029
2029
  preValue: r,
2030
2030
  node: this
2031
- }), this.parent && !(this.parent instanceof wt) && this.emitter.emit("onNodeChange", {
2031
+ }), this.parent && !(this.parent instanceof St) && this.emitter.emit("onNodeChange", {
2032
2032
  value: this.parent.value,
2033
2033
  preValue: this.parent.value,
2034
2034
  node: this.parent
@@ -2044,7 +2044,7 @@ class st {
2044
2044
  }
2045
2045
  export(e) {
2046
2046
  const r = this.data, n = (o) => {
2047
- if (o instanceof st || o instanceof wt || o instanceof T)
2047
+ if (o instanceof st || o instanceof St || o instanceof T)
2048
2048
  return o.export(e);
2049
2049
  if (M(o))
2050
2050
  return o.map((a) => n(a));
@@ -2059,12 +2059,12 @@ class st {
2059
2059
  return n(r);
2060
2060
  }
2061
2061
  }
2062
- const wf = (t) => {
2062
+ const Sf = (t) => {
2063
2063
  if (typeof t == "string")
2064
2064
  return !0;
2065
- wr({
2065
+ Sr({
2066
2066
  data: t,
2067
- dataStruct: St,
2067
+ dataStruct: wt,
2068
2068
  throwError: !0
2069
2069
  });
2070
2070
  }, ln = (t, e, r = new ft([])) => {
@@ -2111,7 +2111,7 @@ const wf = (t) => {
2111
2111
  };
2112
2112
  class T {
2113
2113
  constructor(e, r) {
2114
- _(this, "nodeType", "NODE"), _(this, "rawData"), _(this, "data"), _(this, "emitter", Zt), _(this, "parent"), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), this.rawData = JSON.parse(JSON.stringify(e)), wf(e);
2114
+ _(this, "nodeType", "NODE"), _(this, "rawData"), _(this, "data"), _(this, "emitter", Zt), _(this, "parent"), _(this, "materialsModel"), _(this, "listenerHandle"), _(this, "onChangeCbQueue"), this.rawData = JSON.parse(JSON.stringify(e)), Sf(e);
2115
2115
  const n = (r == null ? void 0 : r.materials) || new ft([]);
2116
2116
  this.parent = (r == null ? void 0 : r.parent) || null, this.materialsModel = n, this.data = ln(e, this, n), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener();
2117
2117
  }
@@ -2315,7 +2315,7 @@ function Cr(t, e) {
2315
2315
  r.push(s);
2316
2316
  return;
2317
2317
  }
2318
- if (s instanceof wt && a(s.value.value), s instanceof st) {
2318
+ if (s instanceof St && a(s.value.value), s instanceof st) {
2319
2319
  a(s.value);
2320
2320
  return;
2321
2321
  }
@@ -2383,7 +2383,7 @@ const $f = (t) => {
2383
2383
  return t.map((e) => new Nf(e));
2384
2384
  }, Tf = (t) => {
2385
2385
  t == null || t.forEach((e) => {
2386
- wr({
2386
+ Sr({
2387
2387
  data: e,
2388
2388
  dataStruct: yf,
2389
2389
  throwError: !0
@@ -2470,7 +2470,7 @@ const Af = O({
2470
2470
  thirdLibs: m(cf),
2471
2471
  componentsTree: _f,
2472
2472
  assets: m(A(D()))
2473
- }), bo = (t) => (wr({
2473
+ }), bo = (t) => (Sr({
2474
2474
  data: t,
2475
2475
  dataStruct: Af,
2476
2476
  throwError: !0
@@ -2517,7 +2517,7 @@ class ue {
2517
2517
  return console.warn("Not found parent node"), !1;
2518
2518
  if (a instanceof st)
2519
2519
  return console.warn("CProp can not add node"), !1;
2520
- if (a instanceof wt) {
2520
+ if (a instanceof St) {
2521
2521
  const s = a.value.value, c = s.findIndex((u) => u === r) ?? -1;
2522
2522
  return c >= 0 ? (n === "BEFORE" ? s.splice(c, 0, e) : s.splice(c + 1, 0, e), e.parent = a, (o = a.parent) == null || o.updateValue(), !0) : !1;
2523
2523
  }
@@ -2578,7 +2578,7 @@ class ue {
2578
2578
  const n = e.parent;
2579
2579
  if (!n)
2580
2580
  throw new Error("parent node is null or undefined, pls check it");
2581
- if (n instanceof wt) {
2581
+ if (n instanceof St) {
2582
2582
  const o = n.value.value, a = o.findIndex((s) => s === e), i = o[a];
2583
2583
  return o.splice(a, 1), (r = n.parent) == null || r.updateValue(), i;
2584
2584
  }
@@ -2665,11 +2665,11 @@ function Wf(t, e) {
2665
2665
  var Jf = Array.isArray;
2666
2666
  const Ct = Jf;
2667
2667
  var qf = 1 / 0, dn = Ot ? Ot.prototype : void 0, hn = dn ? dn.toString : void 0;
2668
- function So(t) {
2668
+ function wo(t) {
2669
2669
  if (typeof t == "string")
2670
2670
  return t;
2671
2671
  if (Ct(t))
2672
- return Wf(t, So) + "";
2672
+ return Wf(t, wo) + "";
2673
2673
  if (Vf(t))
2674
2674
  return hn ? hn.call(t) : "";
2675
2675
  var e = t + "";
@@ -2679,7 +2679,7 @@ function mt(t) {
2679
2679
  var e = typeof t;
2680
2680
  return t != null && (e == "object" || e == "function");
2681
2681
  }
2682
- function wo(t) {
2682
+ function So(t) {
2683
2683
  return t;
2684
2684
  }
2685
2685
  var Qf = "[object AsyncFunction]", Yf = "[object Function]", Xf = "[object GeneratorFunction]", Kf = "[object Proxy]";
@@ -2779,23 +2779,23 @@ function jp(t) {
2779
2779
  return t;
2780
2780
  };
2781
2781
  }
2782
- var Sp = function() {
2782
+ var wp = function() {
2783
2783
  try {
2784
2784
  var t = xr(Object, "defineProperty");
2785
2785
  return t({}, "", {}), t;
2786
2786
  } catch {
2787
2787
  }
2788
2788
  }();
2789
- const le = Sp;
2790
- var wp = le ? function(t, e) {
2789
+ const le = wp;
2790
+ var Sp = le ? function(t, e) {
2791
2791
  return le(t, "toString", {
2792
2792
  configurable: !0,
2793
2793
  enumerable: !1,
2794
2794
  value: jp(e),
2795
2795
  writable: !0
2796
2796
  });
2797
- } : wo;
2798
- const Op = wp;
2797
+ } : So;
2798
+ const Op = Sp;
2799
2799
  var Cp = _p(Op);
2800
2800
  const Ep = Cp;
2801
2801
  var xp = 9007199254740991, Np = /^(?:0|[1-9]\d*)$/;
@@ -2840,7 +2840,7 @@ function Pp(t, e, r) {
2840
2840
  };
2841
2841
  }
2842
2842
  function Rp(t, e) {
2843
- return Ep(Pp(t, e, wo), t + "");
2843
+ return Ep(Pp(t, e, So), t + "");
2844
2844
  }
2845
2845
  var Dp = 9007199254740991;
2846
2846
  function Co(t) {
@@ -2909,9 +2909,9 @@ var To = typeof exports == "object" && exports && !exports.nodeType && exports,
2909
2909
  }
2910
2910
  }();
2911
2911
  const jn = jd;
2912
- var Sn = jn && jn.isTypedArray, Sd = Sn ? bd(Sn) : gd;
2913
- const Ao = Sd;
2914
- var wd = Object.prototype, Od = wd.hasOwnProperty;
2912
+ var wn = jn && jn.isTypedArray, wd = wn ? bd(wn) : gd;
2913
+ const Ao = wd;
2914
+ var Sd = Object.prototype, Od = Sd.hasOwnProperty;
2915
2915
  function Cd(t, e) {
2916
2916
  var r = Ct(t), n = !r && We(t), o = !r && !n && $o(t), a = !r && !n && !o && Ao(t), i = r || n || o || a, s = i ? Bp(t.length, String) : [], c = s.length;
2917
2917
  for (var u in t)
@@ -3070,7 +3070,7 @@ Rt.prototype.get = th;
3070
3070
  Rt.prototype.has = eh;
3071
3071
  Rt.prototype.set = rh;
3072
3072
  function Ro(t) {
3073
- return t == null ? "" : So(t);
3073
+ return t == null ? "" : wo(t);
3074
3074
  }
3075
3075
  var nh = Ed(Object.getPrototypeOf, Object);
3076
3076
  const Do = nh;
@@ -3102,7 +3102,7 @@ function Lo(t) {
3102
3102
  function bh(t) {
3103
3103
  return t.split("");
3104
3104
  }
3105
- var Fo = "\\ud800-\\udfff", _h = "\\u0300-\\u036f", jh = "\\ufe20-\\ufe2f", Sh = "\\u20d0-\\u20ff", wh = _h + jh + Sh, Oh = "\\ufe0e\\ufe0f", Ch = "[" + Fo + "]", Je = "[" + wh + "]", qe = "\\ud83c[\\udffb-\\udfff]", Eh = "(?:" + Je + "|" + qe + ")", Bo = "[^" + Fo + "]", Uo = "(?:\\ud83c[\\udde6-\\uddff]){2}", ko = "[\\ud800-\\udbff][\\udc00-\\udfff]", xh = "\\u200d", zo = Eh + "?", Go = "[" + Oh + "]?", Nh = "(?:" + xh + "(?:" + [Bo, Uo, ko].join("|") + ")" + Go + zo + ")*", $h = Go + zo + Nh, Th = "(?:" + [Bo + Je + "?", Je, Uo, ko, Ch].join("|") + ")", Ah = RegExp(qe + "(?=" + qe + ")|" + Th + $h, "g");
3105
+ var Fo = "\\ud800-\\udfff", _h = "\\u0300-\\u036f", jh = "\\ufe20-\\ufe2f", wh = "\\u20d0-\\u20ff", Sh = _h + jh + wh, Oh = "\\ufe0e\\ufe0f", Ch = "[" + Fo + "]", Je = "[" + Sh + "]", qe = "\\ud83c[\\udffb-\\udfff]", Eh = "(?:" + Je + "|" + qe + ")", Bo = "[^" + Fo + "]", Uo = "(?:\\ud83c[\\udde6-\\uddff]){2}", ko = "[\\ud800-\\udbff][\\udc00-\\udfff]", xh = "\\u200d", zo = Eh + "?", Go = "[" + Oh + "]?", Nh = "(?:" + xh + "(?:" + [Bo, Uo, ko].join("|") + ")" + Go + zo + ")*", $h = Go + zo + Nh, Th = "(?:" + [Bo + Je + "?", Je, Uo, ko, Ch].join("|") + ")", Ah = RegExp(qe + "(?=" + qe + ")|" + Th + $h, "g");
3106
3106
  function Mh(t) {
3107
3107
  return t.match(Ah) || [];
3108
3108
  }
@@ -3154,7 +3154,7 @@ Dt.prototype.delete = Bh;
3154
3154
  Dt.prototype.get = Uh;
3155
3155
  Dt.prototype.has = kh;
3156
3156
  Dt.prototype.set = Gh;
3157
- var Ho = typeof exports == "object" && exports && !exports.nodeType && exports, wn = Ho && typeof module == "object" && module && !module.nodeType && module, Hh = wn && wn.exports === Ho, On = Hh ? Mt.Buffer : void 0, Cn = On ? On.allocUnsafe : void 0;
3157
+ var Ho = typeof exports == "object" && exports && !exports.nodeType && exports, Sn = Ho && typeof module == "object" && module && !module.nodeType && module, Hh = Sn && Sn.exports === Ho, On = Hh ? Mt.Buffer : void 0, Cn = On ? On.allocUnsafe : void 0;
3158
3158
  function Vh(t, e) {
3159
3159
  if (e)
3160
3160
  return t.slice();
@@ -3225,7 +3225,9 @@ function Vo(t, e, r, n, o) {
3225
3225
  var rv = Lp(function(t, e, r) {
3226
3226
  Vo(t, e, r);
3227
3227
  });
3228
- const nv = rv;
3228
+ const nv = rv, Rv = function(t) {
3229
+ return !(!t || typeof t != "function" || !t.prototype);
3230
+ };
3229
3231
  function ov(t) {
3230
3232
  const e = t.prototype;
3231
3233
  return !!(e && e.isReactComponent);
@@ -3291,6 +3293,24 @@ const gt = (t, e) => {
3291
3293
  return Object.keys(t).forEach((r) => {
3292
3294
  e += `${r}:${t[r]};`;
3293
3295
  }), e;
3296
+ }, Dv = (t, e) => {
3297
+ const r = {};
3298
+ return t.forEach((n) => {
3299
+ if (n.globalName) {
3300
+ const o = e[n.globalName];
3301
+ o && (r[n.globalName] = o);
3302
+ }
3303
+ }), r;
3304
+ }, Iv = (t, e = 1) => {
3305
+ let r = 0, n = t, o = {}, a = {};
3306
+ for (; r < e; )
3307
+ Object.keys(n).forEach((i) => {
3308
+ o = {
3309
+ ...o,
3310
+ ...n[i]
3311
+ };
3312
+ }), a = o, n = o, o = {}, r += 1;
3313
+ return a;
3294
3314
  }, ae = "DYNAMIC", cv = ["$$context", "$$nodeModel"], Tn = (t) => {
3295
3315
  let e;
3296
3316
  const r = /* @__PURE__ */ new Set(), n = (c, u) => {
@@ -3412,8 +3432,8 @@ class pv {
3412
3432
  };
3413
3433
  const f = this.getComponent(l), d = this.convertModelToComponent(f, l), h = s.params || [];
3414
3434
  return {
3415
- component: (...S) => {
3416
- const C = xn(S, h), P = this.getContext(
3435
+ component: (...w) => {
3436
+ const C = xn(w, h), P = this.getContext(
3417
3437
  {
3418
3438
  params: C
3419
3439
  },
@@ -3429,7 +3449,7 @@ class pv {
3429
3449
  };
3430
3450
  if (Array.isArray(c)) {
3431
3451
  const l = c == null ? void 0 : c.map((p) => u(p));
3432
- return (...p) => l.map((f) => ov(f.component) ? w.createElement(f.component, {
3452
+ return (...p) => l.map((f) => ov(f.component) ? S.createElement(f.component, {
3433
3453
  $$context: r,
3434
3454
  key: f.key
3435
3455
  }) : f.component(...p));
@@ -3472,7 +3492,7 @@ class pv {
3472
3492
  }
3473
3493
  convertModelToComponent(e, r) {
3474
3494
  const n = this;
3475
- class o extends w.Component {
3495
+ class o extends S.Component {
3476
3496
  constructor(s) {
3477
3497
  super(s);
3478
3498
  g(this, "_CONDITION", !0);
@@ -3527,7 +3547,7 @@ class pv {
3527
3547
  g(this, "rebuildNode", () => {
3528
3548
  this.storeListenDisposeLint.forEach((s) => s()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
3529
3549
  });
3530
- this.targetComponentRef = w.createRef(), this.state = r.value.state || {};
3550
+ this.targetComponentRef = S.createRef(), this.state = r.value.state || {};
3531
3551
  const c = r.value.stateName || r.id, u = n.storeManager.getStore(c);
3532
3552
  u ? (this.storeState = u, u.setState({
3533
3553
  ...r.value.state || {}
@@ -3596,12 +3616,12 @@ class pv {
3596
3616
  }
3597
3617
  return d = j.map((...J) => {
3598
3618
  var Tr;
3599
- const q = J[1], at = [f.forName || "item", f.forIndex || "index"], Se = xn(J, at);
3600
- let we = "loopData";
3601
- f.name && (we = `${we}${f.name}`);
3619
+ const q = J[1], at = [f.forName || "item", f.forIndex || "index"], we = xn(J, at);
3620
+ let Se = "loopData";
3621
+ f.name && (Se = `${Se}${f.name}`);
3602
3622
  const It = n.getContext(
3603
3623
  {
3604
- [we]: Se,
3624
+ [Se]: we,
3605
3625
  staticState: this.staticState
3606
3626
  },
3607
3627
  p
@@ -3650,20 +3670,20 @@ class pv {
3650
3670
  else {
3651
3671
  const j = [];
3652
3672
  r.value.children.forEach((q, at) => {
3653
- const Se = n.buildComponent(q, {
3673
+ const we = n.buildComponent(q, {
3654
3674
  $$context: p,
3655
3675
  idx: at
3656
3676
  });
3657
- j.push(Se);
3677
+ j.push(we);
3658
3678
  }), b = j;
3659
3679
  }
3660
3680
  h.ref = this.targetComponentRef;
3661
- const S = ((yt = r.value.classNames) == null ? void 0 : yt.map((j) => {
3681
+ const w = ((yt = r.value.classNames) == null ? void 0 : yt.map((j) => {
3662
3682
  var at;
3663
3683
  const J = j.name;
3664
3684
  return (ct(j.status) ? gt(((at = j.status) == null ? void 0 : at.value) || "", p) : !1) ? J : "";
3665
3685
  })) || [];
3666
- let C = `${h.className ?? ""} ${S.join(" ")}`.trim();
3686
+ let C = `${h.className ?? ""} ${w.join(" ")}`.trim();
3667
3687
  r.value.css && (C = `${r.value.css.class} ${C}`.trim()), h.className = C;
3668
3688
  const P = n.transformProps(r.value.style, {
3669
3689
  $$context: p
@@ -3677,7 +3697,7 @@ class pv {
3677
3697
  };
3678
3698
  n.processNodeConfigHook && (R = n.processNodeConfigHook(R, r));
3679
3699
  const z = n.render(e, R.props, ...b);
3680
- return this._CONDITION = R.condition, R.condition ? z : w.createElement(
3700
+ return this._CONDITION = R.condition, R.condition ? z : S.createElement(
3681
3701
  "div",
3682
3702
  {
3683
3703
  style: {
@@ -3719,13 +3739,13 @@ class pv {
3719
3739
  render(e, r = {}, ...n) {
3720
3740
  return typeof e == "string" || typeof e == "number" ? String(e) : (cv.forEach((a) => {
3721
3741
  a in r && e.__CP_TYPE__ !== ae && delete r[a];
3722
- }), w.createElement(e, r, ...n));
3742
+ }), S.createElement(e, r, ...n));
3723
3743
  }
3724
3744
  clear() {
3725
3745
  this.runtimeComponentCache.clear(), this.storeManager.destroy();
3726
3746
  }
3727
3747
  }
3728
- const Rv = sa(new pv()), dv = [
3748
+ const Lv = sa(new pv()), dv = [
3729
3749
  "a",
3730
3750
  "abbr",
3731
3751
  "acronym",
@@ -3880,125 +3900,114 @@ const Rv = sa(new pv()), dv = [
3880
3900
  return t.forEach((r) => {
3881
3901
  e[r.key] = r.value;
3882
3902
  }), e;
3883
- }, hv = [...dv, ...uf], vv = hv.reduce((t, e) => (t[e] = ({
3884
- children: r,
3885
- $$attributes: n = [],
3886
- ...o
3887
- }) => {
3903
+ }, hv = [...dv, ...uf], vv = hv.reduce((t, e) => (t[e] = ({ children: r, $$attributes: n = [], ...o }) => {
3888
3904
  let a = r;
3889
- return Array.isArray(r) || (a = [r]), w.createElement(e, {
3890
- ...o,
3891
- ...ot(n)
3892
- }, ...a);
3893
- }, t), {}), mv = ({
3894
- children: t,
3895
- width: e,
3896
- height: r,
3897
- $$attributes: n = [],
3898
- ...o
3899
- }) => {
3905
+ return Array.isArray(r) || (a = [r]), S.createElement(
3906
+ e,
3907
+ {
3908
+ ...o,
3909
+ ...ot(n)
3910
+ },
3911
+ ...a
3912
+ );
3913
+ }, t), {}), mv = ({ children: t, width: e, height: r, $$attributes: n = [], ...o }) => {
3900
3914
  let a = t;
3901
3915
  Array.isArray(t) || (a = [t]), a = a.filter((u) => u !== void 0);
3902
- const {
3903
- style: i = {},
3904
- ...s
3905
- } = ot(n), c = {
3916
+ const { style: i = {}, ...s } = ot(n), c = {
3906
3917
  height: r,
3907
3918
  width: e,
3908
3919
  ...i,
3909
3920
  ...o.style || {}
3910
3921
  };
3911
- return w.createElement("div", {
3912
- ...o,
3913
- ...s,
3914
- style: c
3915
- }, ...a);
3916
- }, yv = ({
3917
- children: t,
3918
- $$attributes: e = [],
3919
- ...r
3920
- }) => {
3922
+ return S.createElement(
3923
+ "div",
3924
+ {
3925
+ ...o,
3926
+ ...s,
3927
+ style: c
3928
+ },
3929
+ ...a
3930
+ );
3931
+ }, yv = ({ children: t, $$attributes: e = [], ...r }) => {
3921
3932
  let n = t;
3922
- return Array.isArray(t) || (n = [t]), w.createElement("canvas", {
3923
- ...r,
3924
- ...ot(e)
3925
- }, ...n);
3926
- }, gv = ({
3927
- children: t,
3928
- $$attributes: e = [],
3929
- ...r
3930
- }) => {
3933
+ return Array.isArray(t) || (n = [t]), S.createElement(
3934
+ "canvas",
3935
+ {
3936
+ ...r,
3937
+ ...ot(e)
3938
+ },
3939
+ ...n
3940
+ );
3941
+ }, gv = ({ children: t, $$attributes: e = [], ...r }) => {
3931
3942
  let n = t;
3932
- return Array.isArray(t) || (n = [t]), w.createElement("img", {
3933
- ...r,
3934
- ...ot(e)
3935
- }, ...n);
3936
- }, bv = ({
3937
- children: t,
3938
- $$attributes: e = [],
3939
- ...r
3940
- }) => {
3943
+ return Array.isArray(t) || (n = [t]), S.createElement(
3944
+ "img",
3945
+ {
3946
+ ...r,
3947
+ ...ot(e)
3948
+ },
3949
+ ...n
3950
+ );
3951
+ }, bv = ({ children: t, $$attributes: e = [], ...r }) => {
3941
3952
  let n = t;
3942
- return Array.isArray(t) || (n = [t]), w.createElement("video", {
3943
- ...r,
3944
- ...ot(e)
3945
- }, ...n);
3946
- }, _v = ({
3947
- children: t,
3948
- $$attributes: e = [],
3949
- ...r
3950
- }) => {
3953
+ return Array.isArray(t) || (n = [t]), S.createElement(
3954
+ "video",
3955
+ {
3956
+ ...r,
3957
+ ...ot(e)
3958
+ },
3959
+ ...n
3960
+ );
3961
+ }, _v = ({ children: t, $$attributes: e = [], ...r }) => {
3951
3962
  let n = t;
3952
- return Array.isArray(t) || (n = [t]), w.createElement("video", {
3953
- ...r,
3963
+ return Array.isArray(t) || (n = [t]), S.createElement(
3964
+ "video",
3965
+ {
3966
+ ...r,
3967
+ ...ot(e)
3968
+ },
3969
+ ...n
3970
+ );
3971
+ }, jv = ({ children: t, $$attributes: e = [], content: r, ...n }) => S.createElement(
3972
+ "span",
3973
+ {
3974
+ ...n,
3954
3975
  ...ot(e)
3955
- }, ...n);
3956
- }, jv = ({
3957
- children: t,
3958
- $$attributes: e = [],
3959
- content: r,
3960
- ...n
3961
- }) => w.createElement("span", {
3962
- ...n,
3963
- ...ot(e)
3964
- }, r), Sv = ({
3965
- children: t,
3966
- $$attributes: e = [],
3967
- afterMount: r,
3968
- beforeDestroy: n,
3969
- ...o
3970
- }) => {
3976
+ },
3977
+ r
3978
+ ), wv = ({ children: t, $$attributes: e = [], afterMount: r, beforeDestroy: n, ...o }) => {
3971
3979
  let a = t;
3972
3980
  return Array.isArray(t) || (a = [t]), ea(() => (r == null || r(o), () => {
3973
3981
  n == null || n(o);
3974
- }), []), w.createElement("div", {
3975
- ...o,
3976
- ...ot(e)
3977
- }, ...a);
3978
- }, wv = ({
3979
- children: t,
3980
- $$attributes: e = [],
3981
- htmlTag: r = "div",
3982
- ...n
3983
- }) => {
3982
+ }), []), S.createElement(
3983
+ "div",
3984
+ {
3985
+ ...o,
3986
+ ...ot(e)
3987
+ },
3988
+ ...a
3989
+ );
3990
+ }, Sv = ({ children: t, $$attributes: e = [], htmlTag: r = "div", ...n }) => {
3984
3991
  let o = t;
3985
- return Array.isArray(t) || (o = [t]), w.createElement(r, {
3986
- ...n,
3987
- ...ot(e)
3988
- }, ...o);
3992
+ return Array.isArray(t) || (o = [t]), S.createElement(
3993
+ r,
3994
+ {
3995
+ ...n,
3996
+ ...ot(e)
3997
+ },
3998
+ ...o
3999
+ );
3989
4000
  }, Ov = {
3990
- RootContainer: ({
3991
- children: t
3992
- }) => t,
4001
+ RootContainer: ({ children: t }) => t,
3993
4002
  ...vv,
3994
- CContainer: Sv,
4003
+ CContainer: wv,
3995
4004
  CVideo: bv,
3996
4005
  CAudio: _v,
3997
4006
  CBlock: mv,
3998
4007
  CImage: gv,
3999
4008
  CText: jv,
4000
4009
  CCanvas: yv,
4001
- CNativeTag: wv
4010
+ CNativeTag: Sv
4002
4011
  };
4003
4012
  class Cv {
4004
4013
  constructor() {
@@ -4017,7 +4026,7 @@ class Cv {
4017
4026
  this.refMap.clear();
4018
4027
  }
4019
4028
  }
4020
- class Ev extends w.Component {
4029
+ class Ev extends S.Component {
4021
4030
  constructor(r) {
4022
4031
  super(r);
4023
4032
  g(this, "refManager");
@@ -4078,7 +4087,7 @@ class Ev extends w.Component {
4078
4087
  });
4079
4088
  }
4080
4089
  }
4081
- const Dv = () => {
4090
+ const Fv = () => {
4082
4091
  const t = An(null);
4083
4092
  return {
4084
4093
  ref: t,
@@ -4087,7 +4096,7 @@ const Dv = () => {
4087
4096
  }
4088
4097
  };
4089
4098
  };
4090
- class xv extends w.Component {
4099
+ class xv extends S.Component {
4091
4100
  constructor(r) {
4092
4101
  super(r);
4093
4102
  g(this, "onDoubleClick", () => {
@@ -4109,7 +4118,7 @@ class xv extends w.Component {
4109
4118
  if (this.state.hasError) {
4110
4119
  const { onDoubleClick: r } = this, n = this.props.node.value;
4111
4120
  console.error(this.props.node, this.props.children);
4112
- const o = w.createElement(
4121
+ const o = S.createElement(
4113
4122
  "div",
4114
4123
  {
4115
4124
  style: {
@@ -4126,8 +4135,8 @@ class xv extends w.Component {
4126
4135
  n.title,
4127
4136
  " component name:",
4128
4137
  n.title || n.componentName,
4129
- w.createElement("p", null, "msg: ", String(this.state.error)),
4130
- w.createElement(
4138
+ S.createElement("p", null, "msg: ", String(this.state.error)),
4139
+ S.createElement(
4131
4140
  "button",
4132
4141
  {
4133
4142
  onDoubleClick: r,
@@ -4143,13 +4152,13 @@ class xv extends w.Component {
4143
4152
  },
4144
4153
  "double click to refresh"
4145
4154
  ),
4146
- w.createElement("div", {
4155
+ S.createElement("div", {
4147
4156
  style: {
4148
4157
  display: "none"
4149
4158
  }
4150
4159
  })
4151
4160
  );
4152
- return w.createElement(this.props.targetComponent, { onlyRenderChild: !0 }, o);
4161
+ return S.createElement(this.props.targetComponent, { onlyRenderChild: !0 }, o);
4153
4162
  }
4154
4163
  return this.props.children;
4155
4164
  }
@@ -4188,7 +4197,7 @@ const $v = (t) => {
4188
4197
  style: {}
4189
4198
  };
4190
4199
  }, [t.node]), { placeholder: n, height: o, width: a, style: i } = r;
4191
- return w.createElement(
4200
+ return S.createElement(
4192
4201
  "div",
4193
4202
  {
4194
4203
  style: {
@@ -4211,7 +4220,7 @@ const $v = (t) => {
4211
4220
  n
4212
4221
  );
4213
4222
  };
4214
- class Iv extends w.Component {
4223
+ class Bv extends S.Component {
4215
4224
  constructor(r) {
4216
4225
  super(r);
4217
4226
  g(this, "instanceManager", new Nv());
@@ -4219,7 +4228,7 @@ class Iv extends w.Component {
4219
4228
  g(this, "dropPlaceholder", $v);
4220
4229
  g(this, "onGetComponent", (r, n) => {
4221
4230
  const o = this;
4222
- class a extends w.Component {
4231
+ class a extends S.Component {
4223
4232
  constructor() {
4224
4233
  super(...arguments);
4225
4234
  g(this, "_DESIGN_BOX", !0);
@@ -4239,27 +4248,27 @@ class Iv extends w.Component {
4239
4248
  const { children: c = [], onlyRenderChild: u, ...l } = this.props;
4240
4249
  let p = c;
4241
4250
  return Ct(c) || (p = [c]), !!!p.filter(Boolean).length && ((d = n.material) != null && d.value.isContainer || n.value.componentName === At.ROOT_CONTAINER) && p.push(
4242
- w.createElement(o.dropPlaceholder, {
4251
+ S.createElement(o.dropPlaceholder, {
4243
4252
  node: n
4244
4253
  })
4245
- ), u ? p : w.createElement(r, l, ...p);
4254
+ ), u ? p : S.createElement(r, l, ...p);
4246
4255
  }
4247
4256
  }
4248
- return w.forwardRef(function(s, c) {
4249
- return w.createElement(
4257
+ return S.forwardRef(function(s, c) {
4258
+ return S.createElement(
4250
4259
  xv,
4251
4260
  {
4252
4261
  node: n,
4253
4262
  targetComponent: a
4254
4263
  },
4255
- w.createElement(a, {
4264
+ S.createElement(a, {
4256
4265
  ref: c,
4257
4266
  ...s
4258
4267
  })
4259
4268
  );
4260
4269
  });
4261
4270
  });
4262
- this.renderRef = w.createRef(), r.dropPlaceholder && (this.dropPlaceholder = r.dropPlaceholder);
4271
+ this.renderRef = S.createRef(), r.dropPlaceholder && (this.dropPlaceholder = r.dropPlaceholder);
4263
4272
  }
4264
4273
  componentDidMount() {
4265
4274
  var r, n;
@@ -4303,7 +4312,7 @@ class Iv extends w.Component {
4303
4312
  }
4304
4313
  render() {
4305
4314
  const { props: r, onGetComponent: n } = this, { render: o, ...a } = r;
4306
- return o && (o.ref.current = this), w.createElement(Ev, {
4315
+ return o && (o.ref.current = this), S.createElement(Ev, {
4307
4316
  onGetComponent: n,
4308
4317
  ...a,
4309
4318
  // 拦截特殊属性配置, 配合开发模式使用
@@ -4347,7 +4356,7 @@ const Wo = (t) => {
4347
4356
  }, Jo = (t) => {
4348
4357
  var e;
4349
4358
  return t ? (e = t == null ? void 0 : t.stateNode) != null && e._DESIGN_BOX ? t : Jo(t.return) : null;
4350
- }, Lv = () => {
4359
+ }, Uv = () => {
4351
4360
  const t = An(null);
4352
4361
  return {
4353
4362
  ref: t,
@@ -4388,15 +4397,15 @@ var Tv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4388
4397
  }, n = {}, o = {}, a = {};
4389
4398
  function i(f, d) {
4390
4399
  f = f.push ? f : [f];
4391
- var h = [], y = f.length, b = y, S, C, P, $;
4392
- for (S = function(R, z) {
4400
+ var h = [], y = f.length, b = y, w, C, P, $;
4401
+ for (w = function(R, z) {
4393
4402
  z.length && h.push(R), b--, b || d(h);
4394
4403
  }; y--; ) {
4395
4404
  if (C = f[y], P = o[C], P) {
4396
- S(C, P);
4405
+ w(C, P);
4397
4406
  continue;
4398
4407
  }
4399
- $ = a[C] = a[C] || [], $.push(S);
4408
+ $ = a[C] = a[C] || [], $.push(w);
4400
4409
  }
4401
4410
  }
4402
4411
  function s(f, d) {
@@ -4411,12 +4420,12 @@ var Tv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4411
4420
  f.call && (f = { success: f }), d.length ? (f.error || r)(d) : (f.success || r)(f);
4412
4421
  }
4413
4422
  function u(f, d, h, y) {
4414
- var b = document, S = h.async, C = (h.numRetries || 0) + 1, P = h.before || r, $ = f.replace(/[\?|#].*$/, ""), R = f.replace(/^(css|img|module|nomodule)!/, ""), z, yt, j;
4423
+ var b = document, w = h.async, C = (h.numRetries || 0) + 1, P = h.before || r, $ = f.replace(/[\?|#].*$/, ""), R = f.replace(/^(css|img|module|nomodule)!/, ""), z, yt, j;
4415
4424
  if (y = y || 0, /(^css!|\.css$)/.test($))
4416
4425
  j = b.createElement("link"), j.rel = "stylesheet", j.href = R, z = "hideFocus" in j, z && j.relList && (z = 0, j.rel = "preload", j.as = "style");
4417
4426
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test($))
4418
4427
  j = b.createElement("img"), j.src = R;
4419
- else if (j = b.createElement("script"), j.src = R, j.async = S === void 0 ? !0 : S, yt = "noModule" in j, /^module!/.test($)) {
4428
+ else if (j = b.createElement("script"), j.src = R, j.async = w === void 0 ? !0 : w, yt = "noModule" in j, /^module!/.test($)) {
4420
4429
  if (!yt)
4421
4430
  return d(f, "l");
4422
4431
  j.type = "module";
@@ -4440,14 +4449,14 @@ var Tv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4440
4449
  }
4441
4450
  function l(f, d, h) {
4442
4451
  f = f.push ? f : [f];
4443
- var y = f.length, b = y, S = [], C, P;
4452
+ var y = f.length, b = y, w = [], C, P;
4444
4453
  for (C = function($, R, z) {
4445
- if (R == "e" && S.push($), R == "b")
4454
+ if (R == "e" && w.push($), R == "b")
4446
4455
  if (z)
4447
- S.push($);
4456
+ w.push($);
4448
4457
  else
4449
4458
  return;
4450
- y--, y || d(S);
4459
+ y--, y || d(w);
4451
4460
  }, P = 0; P < b; P++)
4452
4461
  u(f[P], C, h);
4453
4462
  }
@@ -4458,14 +4467,14 @@ var Tv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4458
4467
  throw "LoadJS";
4459
4468
  n[y] = !0;
4460
4469
  }
4461
- function S(C, P) {
4470
+ function w(C, P) {
4462
4471
  l(f, function($) {
4463
4472
  c(b, $), C && c({ success: C, error: P }, $), s(y, $);
4464
4473
  }, b);
4465
4474
  }
4466
4475
  if (b.returnPromise)
4467
- return new Promise(S);
4468
- S();
4476
+ return new Promise(w);
4477
+ w();
4469
4478
  }
4470
4479
  return p.ready = function(d, h) {
4471
4480
  return i(d, function(y) {
@@ -4480,7 +4489,7 @@ var Tv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
4480
4489
  }, p;
4481
4490
  });
4482
4491
  })(Av);
4483
- class Fv {
4492
+ class kv {
4484
4493
  constructor(e, r) {
4485
4494
  g(this, "assets");
4486
4495
  g(this, "loadStatus");
@@ -4504,16 +4513,16 @@ class Fv {
4504
4513
  this._onSuccessList.forEach((n) => n());
4505
4514
  return;
4506
4515
  }
4507
- return setTimeout(() => {
4516
+ return new Promise((n, o) => {
4508
4517
  fe.ready(r, {
4509
4518
  success: () => {
4510
- this._onSuccessList.forEach((n) => n());
4519
+ this._onSuccessList.forEach((a) => a()), n("");
4511
4520
  },
4512
- error: (n) => {
4513
- this._onErrorList.forEach((o) => o(n));
4521
+ error: (a) => {
4522
+ this._onErrorList.forEach((i) => i(a)), o(a);
4514
4523
  }
4515
4524
  });
4516
- }, 0), this;
4525
+ });
4517
4526
  }
4518
4527
  onSuccess(e) {
4519
4528
  return this._onSuccessList.push(e), this;
@@ -4523,15 +4532,26 @@ class Fv {
4523
4532
  }
4524
4533
  }
4525
4534
  export {
4526
- Fv as AssetLoader,
4535
+ kv as AssetLoader,
4527
4536
  Nv as ComponentInstanceManager,
4528
4537
  $v as DefaultDropPlaceholder,
4529
4538
  pv as DefineReactAdapter,
4530
- Iv as DesignRender,
4531
- Rv as ReactAdapter,
4539
+ Bv as DesignRender,
4540
+ Lv as ReactAdapter,
4532
4541
  Ev as Render,
4542
+ av as canAcceptsRef,
4543
+ Dv as collectVariable,
4544
+ sv as compWrapper,
4545
+ iv as convertCodeStringToFunction,
4546
+ Iv as flatObject,
4547
+ Nn as formatSourceStylePropertyName,
4533
4548
  sa as getAdapter,
4534
- Lv as useDesignRender,
4535
- Dv as useRender
4549
+ $n as getCSSTextValue,
4550
+ xn as getObjFromArrayMap,
4551
+ Rv as isClass,
4552
+ gt as runExpression,
4553
+ ov as shouldConstruct,
4554
+ Uv as useDesignRender,
4555
+ Fv as useRender
4536
4556
  };
4537
4557
  //# sourceMappingURL=index.es.js.map