@chamn/render 0.9.2 → 0.9.3

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var La = Object.defineProperty;
2
2
  var Fa = (t, e, r) => e in t ? La(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var w = (t, e, r) => Fa(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var $ = (t, e, r) => Fa(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import x, { Component as Va, createElement as Ua, useEffect as oo, useRef as ao, useMemo as so } from "react";
5
5
  const Ba = (t) => () => {
6
6
  console.warn(`${t} need to be implement getComponent`);
@@ -86,7 +86,7 @@ function ss(t) {
86
86
  return !!Kr && Kr in t;
87
87
  }
88
88
  var is = Function.prototype, cs = is.toString;
89
- function wt(t) {
89
+ function $t(t) {
90
90
  if (t != null) {
91
91
  try {
92
92
  return cs.call(t);
@@ -106,16 +106,16 @@ function vs(t) {
106
106
  if (!Et(t) || ss(t))
107
107
  return !1;
108
108
  var e = dr(t) ? gs : ls;
109
- return e.test(wt(t));
109
+ return e.test($t(t));
110
110
  }
111
111
  function ms(t, e) {
112
112
  return t == null ? void 0 : t[e];
113
113
  }
114
- function $t(t, e) {
114
+ function wt(t, e) {
115
115
  var r = ms(t, e);
116
116
  return vs(r) ? r : void 0;
117
117
  }
118
- var ze = $t(X, "WeakMap"), Qr = Object.create, ys = /* @__PURE__ */ function() {
118
+ var ze = wt(X, "WeakMap"), Qr = Object.create, ys = /* @__PURE__ */ function() {
119
119
  function t() {
120
120
  }
121
121
  return function(e) {
@@ -148,7 +148,7 @@ function _s(t, e) {
148
148
  return e;
149
149
  }
150
150
  var Ss = 800, Os = 16, Es = Date.now;
151
- function ws(t) {
151
+ function $s(t) {
152
152
  var e = 0, r = 0;
153
153
  return function() {
154
154
  var n = Es(), o = Os - (n - r);
@@ -160,14 +160,14 @@ function ws(t) {
160
160
  return t.apply(void 0, arguments);
161
161
  };
162
162
  }
163
- function $s(t) {
163
+ function ws(t) {
164
164
  return function() {
165
165
  return t;
166
166
  };
167
167
  }
168
168
  var he = function() {
169
169
  try {
170
- var t = $t(Object, "defineProperty");
170
+ var t = wt(Object, "defineProperty");
171
171
  return t({}, "", {}), t;
172
172
  } catch {
173
173
  }
@@ -175,10 +175,10 @@ var he = function() {
175
175
  return he(t, "toString", {
176
176
  configurable: !0,
177
177
  enumerable: !1,
178
- value: $s(e),
178
+ value: ws(e),
179
179
  writable: !0
180
180
  });
181
- } : lo, Ns = ws(Cs), js = 9007199254740991, xs = /^(?:0|[1-9]\d*)$/;
181
+ } : lo, Ns = $s(Cs), js = 9007199254740991, xs = /^(?:0|[1-9]\d*)$/;
182
182
  function fo(t, e) {
183
183
  var r = typeof t;
184
184
  return e = e ?? js, !!e && (r == "number" || r != "symbol" && xs.test(t)) && t > -1 && t % 1 == 0 && t < e;
@@ -300,17 +300,17 @@ function yo(t, e) {
300
300
  return t(e(r));
301
301
  };
302
302
  }
303
- var Oi = yo(Object.keys, Object), Ei = Object.prototype, wi = Ei.hasOwnProperty;
304
- function $i(t) {
303
+ var Oi = yo(Object.keys, Object), Ei = Object.prototype, $i = Ei.hasOwnProperty;
304
+ function wi(t) {
305
305
  if (!hr(t))
306
306
  return Oi(t);
307
307
  var e = [];
308
308
  for (var r in Object(t))
309
- wi.call(t, r) && r != "constructor" && e.push(r);
309
+ $i.call(t, r) && r != "constructor" && e.push(r);
310
310
  return e;
311
311
  }
312
312
  function Ci(t) {
313
- return Oe(t) ? mo(t) : $i(t);
313
+ return Oe(t) ? mo(t) : wi(t);
314
314
  }
315
315
  function Ni(t) {
316
316
  var e = [];
@@ -331,7 +331,7 @@ function Ai(t) {
331
331
  function bo(t) {
332
332
  return Oe(t) ? mo(t, !0) : Ai(t);
333
333
  }
334
- var Qt = $t(Object, "create");
334
+ var Qt = wt(Object, "create");
335
335
  function Ti() {
336
336
  this.__data__ = Qt ? Qt(null) : {}, this.size = 0;
337
337
  }
@@ -410,7 +410,7 @@ at.prototype.delete = Hi;
410
410
  at.prototype.get = Ji;
411
411
  at.prototype.has = Wi;
412
412
  at.prototype.set = qi;
413
- var Yt = $t(X, "Map");
413
+ var Yt = wt(X, "Map");
414
414
  function Ki() {
415
415
  this.size = 0, this.__data__ = {
416
416
  hash: new bt(),
@@ -422,22 +422,22 @@ function Qi(t) {
422
422
  var e = typeof t;
423
423
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
424
424
  }
425
- function we(t, e) {
425
+ function $e(t, e) {
426
426
  var r = t.__data__;
427
427
  return Qi(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
428
428
  }
429
429
  function Yi(t) {
430
- var e = we(this, t).delete(t);
430
+ var e = $e(this, t).delete(t);
431
431
  return this.size -= e ? 1 : 0, e;
432
432
  }
433
433
  function Xi(t) {
434
- return we(this, t).get(t);
434
+ return $e(this, t).get(t);
435
435
  }
436
436
  function Zi(t) {
437
- return we(this, t).has(t);
437
+ return $e(this, t).has(t);
438
438
  }
439
439
  function tc(t, e) {
440
- var r = we(this, t), n = r.size;
440
+ var r = $e(this, t), n = r.size;
441
441
  return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
442
442
  }
443
443
  function Ct(t) {
@@ -488,7 +488,7 @@ function Eo(t) {
488
488
  function mc(t) {
489
489
  return t.split("");
490
490
  }
491
- var wo = "\\ud800-\\udfff", yc = "\\u0300-\\u036f", bc = "\\ufe20-\\ufe2f", _c = "\\u20d0-\\u20ff", Sc = yc + bc + _c, Oc = "\\ufe0e\\ufe0f", Ec = "[" + wo + "]", He = "[" + Sc + "]", Je = "\\ud83c[\\udffb-\\udfff]", wc = "(?:" + He + "|" + Je + ")", $o = "[^" + wo + "]", Co = "(?:\\ud83c[\\udde6-\\uddff]){2}", No = "[\\ud800-\\udbff][\\udc00-\\udfff]", $c = "\\u200d", jo = wc + "?", xo = "[" + Oc + "]?", Cc = "(?:" + $c + "(?:" + [$o, Co, No].join("|") + ")" + xo + jo + ")*", Nc = xo + jo + Cc, jc = "(?:" + [$o + He + "?", He, Co, No, Ec].join("|") + ")", xc = RegExp(Je + "(?=" + Je + ")|" + jc + Nc, "g");
491
+ var $o = "\\ud800-\\udfff", yc = "\\u0300-\\u036f", bc = "\\ufe20-\\ufe2f", _c = "\\u20d0-\\u20ff", Sc = yc + bc + _c, Oc = "\\ufe0e\\ufe0f", Ec = "[" + $o + "]", He = "[" + Sc + "]", Je = "\\ud83c[\\udffb-\\udfff]", $c = "(?:" + He + "|" + Je + ")", wo = "[^" + $o + "]", Co = "(?:\\ud83c[\\udde6-\\uddff]){2}", No = "[\\ud800-\\udbff][\\udc00-\\udfff]", wc = "\\u200d", jo = $c + "?", xo = "[" + Oc + "]?", Cc = "(?:" + wc + "(?:" + [wo, Co, No].join("|") + ")" + xo + jo + ")*", Nc = xo + jo + Cc, jc = "(?:" + [wo + He + "?", He, Co, No, Ec].join("|") + ")", xc = RegExp(Je + "(?=" + Je + ")|" + jc + Nc, "g");
492
492
  function Ac(t) {
493
493
  return t.match(xc) || [];
494
494
  }
@@ -566,9 +566,9 @@ function qc(t, e, r) {
566
566
  function sn(t) {
567
567
  return qc(t, Ci, Wc);
568
568
  }
569
- var We = $t(X, "DataView"), qe = $t(X, "Promise"), Ke = $t(X, "Set"), cn = "[object Map]", Kc = "[object Object]", un = "[object Promise]", ln = "[object Set]", fn = "[object WeakMap]", dn = "[object DataView]", Qc = wt(We), Yc = wt(Yt), Xc = wt(qe), Zc = wt(Ke), tu = wt(ze), ut = Ot;
569
+ var We = wt(X, "DataView"), qe = wt(X, "Promise"), Ke = wt(X, "Set"), cn = "[object Map]", Kc = "[object Object]", un = "[object Promise]", ln = "[object Set]", fn = "[object WeakMap]", dn = "[object DataView]", Qc = $t(We), Yc = $t(Yt), Xc = $t(qe), Zc = $t(Ke), tu = $t(ze), ut = Ot;
570
570
  (We && ut(new We(new ArrayBuffer(1))) != dn || Yt && ut(new Yt()) != cn || qe && ut(qe.resolve()) != un || Ke && ut(new Ke()) != ln || ze && ut(new ze()) != fn) && (ut = function(t) {
571
- var e = Ot(t), r = e == Kc ? t.constructor : void 0, n = r ? wt(r) : "";
571
+ var e = Ot(t), r = e == Kc ? t.constructor : void 0, n = r ? $t(r) : "";
572
572
  if (n)
573
573
  switch (n) {
574
574
  case Qc:
@@ -665,14 +665,14 @@ function du(t) {
665
665
  r[++e] = n;
666
666
  }), r;
667
667
  }
668
- var pu = 1, hu = 2, gu = "[object Boolean]", vu = "[object Date]", mu = "[object Error]", yu = "[object Map]", bu = "[object Number]", _u = "[object RegExp]", Su = "[object Set]", Ou = "[object String]", Eu = "[object Symbol]", wu = "[object ArrayBuffer]", $u = "[object DataView]", pn = lt ? lt.prototype : void 0, Ie = pn ? pn.valueOf : void 0;
668
+ var pu = 1, hu = 2, gu = "[object Boolean]", vu = "[object Date]", mu = "[object Error]", yu = "[object Map]", bu = "[object Number]", _u = "[object RegExp]", Su = "[object Set]", Ou = "[object String]", Eu = "[object Symbol]", $u = "[object ArrayBuffer]", wu = "[object DataView]", pn = lt ? lt.prototype : void 0, Ie = pn ? pn.valueOf : void 0;
669
669
  function Cu(t, e, r, n, o, a, s) {
670
670
  switch (r) {
671
- case $u:
671
+ case wu:
672
672
  if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
673
673
  return !1;
674
674
  t = t.buffer, e = e.buffer;
675
- case wu:
675
+ case $u:
676
676
  return !(t.byteLength != e.byteLength || !a(new ve(t), new ve(e)));
677
677
  case gu:
678
678
  case vu:
@@ -720,16 +720,16 @@ function Au(t, e, r, n, o, a) {
720
720
  l = i[f];
721
721
  var g = t[l], m = e[l];
722
722
  if (n)
723
- var y = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
724
- if (!(y === void 0 ? g === m || o(g, m, r, n, a) : y)) {
723
+ var b = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
724
+ if (!(b === void 0 ? g === m || o(g, m, r, n, a) : b)) {
725
725
  _ = !1;
726
726
  break;
727
727
  }
728
728
  p || (p = l == "constructor");
729
729
  }
730
730
  if (_ && !p) {
731
- var b = t.constructor, S = e.constructor;
732
- b != S && "constructor" in t && "constructor" in e && !(typeof b == "function" && b instanceof b && typeof S == "function" && S instanceof S) && (_ = !1);
731
+ var y = t.constructor, S = e.constructor;
732
+ y != S && "constructor" in t && "constructor" in e && !(typeof y == "function" && y instanceof y && typeof S == "function" && S instanceof S) && (_ = !1);
733
733
  }
734
734
  return a.delete(t), a.delete(e), _;
735
735
  }
@@ -892,8 +892,9 @@ const At = (t, e) => {
892
892
  var $CTX = __extraParams.$$context;
893
893
  var $$context = $CTX;
894
894
  var $PARAMS = $$context.params || {};
895
- var PARAMS_RUNTIME = $$$__args__$$$[0];
895
+ var $EVENT_PARAMS = $$$__args__$$$[0];
896
896
  var $Event = $$$__args__$$$[0];
897
+ var $EVENT = $$$__args__$$$[0];
897
898
  var $ARGS = $$$__args__$$$;
898
899
 
899
900
  var $ACTION_VAR_SPACE = __extraParams.actionVariableSpace;
@@ -962,7 +963,7 @@ ${mn("$U_STATE", {
962
963
  o && (r[n.globalName] = o, o.__esModule && o.default && (r[n.globalName] = o.default));
963
964
  }
964
965
  }), r;
965
- }, wv = (t, e = 1) => {
966
+ }, $v = (t, e = 1) => {
966
967
  let r = 0, n = t, o = {}, a = {};
967
968
  for (; r < e; )
968
969
  Object.keys(n).forEach((s) => {
@@ -983,7 +984,7 @@ ${mn("$U_STATE", {
983
984
  return e.forEach((n) => {
984
985
  t[n.name] && (r[n.name] = t[n.name]);
985
986
  }), r;
986
- }, $v = (t, e) => Io(t, e), Cv = (t, e) => Io(t, e), yn = (t) => {
987
+ }, wv = (t, e) => Io(t, e), Cv = (t, e) => Io(t, e), yn = (t) => {
987
988
  var r;
988
989
  return ((r = t.value.css) == null ? void 0 : r.class) || `c_${t.id}`;
989
990
  }, Ju = (t, e) => {
@@ -1014,7 +1015,7 @@ ${mn("$U_STATE", {
1014
1015
  }, qu = (t) => t ? _n(t) : _n;
1015
1016
  class Ku {
1016
1017
  constructor() {
1017
- w(this, "storeMap", /* @__PURE__ */ new Map());
1018
+ $(this, "storeMap", /* @__PURE__ */ new Map());
1018
1019
  }
1019
1020
  addStore(e, r) {
1020
1021
  const n = qu(r);
@@ -1065,7 +1066,7 @@ class Ku {
1065
1066
  }
1066
1067
  class Qu {
1067
1068
  constructor() {
1068
- w(this, "varSpace", /* @__PURE__ */ new Map());
1069
+ $(this, "varSpace", /* @__PURE__ */ new Map());
1069
1070
  }
1070
1071
  get(e) {
1071
1072
  return this.varSpace.get(e);
@@ -1088,7 +1089,7 @@ class Qu {
1088
1089
  }
1089
1090
  class Do {
1090
1091
  constructor() {
1091
- w(this, "refMap", /* @__PURE__ */ new Map());
1092
+ $(this, "refMap", /* @__PURE__ */ new Map());
1092
1093
  }
1093
1094
  get(e) {
1094
1095
  return this.refMap.get(e);
@@ -1159,12 +1160,12 @@ function br(t) {
1159
1160
  var e = Nt(t);
1160
1161
  return e == ll || e == fl || e == ul || e == dl;
1161
1162
  }
1162
- var De = Z["__core-js_shared__"], wn = function() {
1163
+ var De = Z["__core-js_shared__"], $n = function() {
1163
1164
  var t = /[^.]+$/.exec(De && De.keys && De.keys.IE_PROTO || "");
1164
1165
  return t ? "Symbol(src)_1." + t : "";
1165
1166
  }();
1166
1167
  function pl(t) {
1167
- return !!wn && wn in t;
1168
+ return !!$n && $n in t;
1168
1169
  }
1169
1170
  var hl = Function.prototype, gl = hl.toString;
1170
1171
  function jt(t) {
@@ -1189,21 +1190,21 @@ function El(t) {
1189
1190
  var e = br(t) ? Ol : ml;
1190
1191
  return e.test(jt(t));
1191
1192
  }
1192
- function wl(t, e) {
1193
+ function $l(t, e) {
1193
1194
  return t == null ? void 0 : t[e];
1194
1195
  }
1195
1196
  function xt(t, e) {
1196
- var r = wl(t, e);
1197
+ var r = $l(t, e);
1197
1198
  return El(r) ? r : void 0;
1198
1199
  }
1199
- var Xe = xt(Z, "WeakMap"), $n = Object.create, $l = /* @__PURE__ */ function() {
1200
+ var Xe = xt(Z, "WeakMap"), wn = Object.create, wl = /* @__PURE__ */ function() {
1200
1201
  function t() {
1201
1202
  }
1202
1203
  return function(e) {
1203
1204
  if (!Q(e))
1204
1205
  return {};
1205
- if ($n)
1206
- return $n(e);
1206
+ if (wn)
1207
+ return wn(e);
1207
1208
  t.prototype = e;
1208
1209
  var r = new t();
1209
1210
  return t.prototype = void 0, r;
@@ -1290,7 +1291,7 @@ function Vl(t, e) {
1290
1291
  return !!r && Fl(t, e, 0) > -1;
1291
1292
  }
1292
1293
  var Ul = 9007199254740991, Bl = /^(?:0|[1-9]\d*)$/;
1293
- function $e(t, e) {
1294
+ function we(t, e) {
1294
1295
  var r = typeof t;
1295
1296
  return e = e ?? Ul, !!e && (r == "number" || r != "symbol" && Bl.test(t)) && t > -1 && t % 1 == 0 && t < e;
1296
1297
  }
@@ -1344,7 +1345,7 @@ function Hl(t, e, r) {
1344
1345
  if (!Q(r))
1345
1346
  return !1;
1346
1347
  var n = typeof e;
1347
- return (n == "number" ? Ce(r) && $e(e, r.length) : n == "string" && e in r) ? ie(r[e], t) : !1;
1348
+ return (n == "number" ? Ce(r) && we(e, r.length) : n == "string" && e in r) ? ie(r[e], t) : !1;
1348
1349
  }
1349
1350
  function Jl(t) {
1350
1351
  return zo(function(e, r) {
@@ -1378,13 +1379,13 @@ var ko = Object.prototype, Ql = ko.hasOwnProperty, Yl = ko.propertyIsEnumerable,
1378
1379
  function Xl() {
1379
1380
  return !1;
1380
1381
  }
1381
- var Ho = typeof exports == "object" && exports && !exports.nodeType && exports, jn = Ho && typeof module == "object" && module && !module.nodeType && module, Zl = jn && jn.exports === Ho, xn = Zl ? Z.Buffer : void 0, tf = xn ? xn.isBuffer : void 0, Zt = tf || Xl, ef = "[object Arguments]", rf = "[object Array]", nf = "[object Boolean]", of = "[object Date]", af = "[object Error]", sf = "[object Function]", cf = "[object Map]", uf = "[object Number]", lf = "[object Object]", ff = "[object RegExp]", df = "[object Set]", pf = "[object String]", hf = "[object WeakMap]", gf = "[object ArrayBuffer]", vf = "[object DataView]", mf = "[object Float32Array]", yf = "[object Float64Array]", bf = "[object Int8Array]", _f = "[object Int16Array]", Sf = "[object Int32Array]", Of = "[object Uint8Array]", Ef = "[object Uint8ClampedArray]", wf = "[object Uint16Array]", $f = "[object Uint32Array]", P = {};
1382
- P[mf] = P[yf] = P[bf] = P[_f] = P[Sf] = P[Of] = P[Ef] = P[wf] = P[$f] = !0;
1382
+ var Ho = typeof exports == "object" && exports && !exports.nodeType && exports, jn = Ho && typeof module == "object" && module && !module.nodeType && module, Zl = jn && jn.exports === Ho, xn = Zl ? Z.Buffer : void 0, tf = xn ? xn.isBuffer : void 0, Zt = tf || Xl, ef = "[object Arguments]", rf = "[object Array]", nf = "[object Boolean]", of = "[object Date]", af = "[object Error]", sf = "[object Function]", cf = "[object Map]", uf = "[object Number]", lf = "[object Object]", ff = "[object RegExp]", df = "[object Set]", pf = "[object String]", hf = "[object WeakMap]", gf = "[object ArrayBuffer]", vf = "[object DataView]", mf = "[object Float32Array]", yf = "[object Float64Array]", bf = "[object Int8Array]", _f = "[object Int16Array]", Sf = "[object Int32Array]", Of = "[object Uint8Array]", Ef = "[object Uint8ClampedArray]", $f = "[object Uint16Array]", wf = "[object Uint32Array]", P = {};
1383
+ P[mf] = P[yf] = P[bf] = P[_f] = P[Sf] = P[Of] = P[Ef] = P[$f] = P[wf] = !0;
1383
1384
  P[ef] = P[rf] = P[gf] = P[nf] = P[vf] = P[of] = P[af] = P[sf] = P[cf] = P[uf] = P[lf] = P[ff] = P[df] = P[pf] = P[hf] = !1;
1384
1385
  function Cf(t) {
1385
1386
  return Y(t) && Or(t.length) && !!P[Nt(t)];
1386
1387
  }
1387
- function wr(t) {
1388
+ function $r(t) {
1388
1389
  return function(e) {
1389
1390
  return t(e);
1390
1391
  };
@@ -1395,15 +1396,15 @@ var Jo = typeof exports == "object" && exports && !exports.nodeType && exports,
1395
1396
  return t || Le && Le.binding && Le.binding("util");
1396
1397
  } catch {
1397
1398
  }
1398
- }(), An = Mt && Mt.isTypedArray, $r = An ? wr(An) : Cf, jf = Object.prototype, xf = jf.hasOwnProperty;
1399
+ }(), An = Mt && Mt.isTypedArray, wr = An ? $r(An) : Cf, jf = Object.prototype, xf = jf.hasOwnProperty;
1399
1400
  function Wo(t, e) {
1400
- var r = L(t), n = !r && Xt(t), o = !r && !n && Zt(t), a = !r && !n && !o && $r(t), s = r || n || o || a, i = s ? ql(t.length, String) : [], c = i.length;
1401
+ var r = L(t), n = !r && Xt(t), o = !r && !n && Zt(t), a = !r && !n && !o && wr(t), s = r || n || o || a, i = s ? ql(t.length, String) : [], c = i.length;
1401
1402
  for (var u in t)
1402
1403
  (e || xf.call(t, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1403
1404
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1404
1405
  o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1405
1406
  a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
1406
- $e(u, c))) && i.push(u);
1407
+ we(u, c))) && i.push(u);
1407
1408
  return i;
1408
1409
  }
1409
1410
  function qo(t, e) {
@@ -1643,17 +1644,17 @@ function yd(t) {
1643
1644
  function bd(t) {
1644
1645
  return Bo(Go(t, void 0, yd), t + "");
1645
1646
  }
1646
- var xr = qo(Object.getPrototypeOf, Object), _d = "[object Object]", Sd = Function.prototype, Od = Object.prototype, Yo = Sd.toString, Ed = Od.hasOwnProperty, wd = Yo.call(Object);
1647
- function U(t) {
1647
+ var xr = qo(Object.getPrototypeOf, Object), _d = "[object Object]", Sd = Function.prototype, Od = Object.prototype, Yo = Sd.toString, Ed = Od.hasOwnProperty, $d = Yo.call(Object);
1648
+ function B(t) {
1648
1649
  if (!Y(t) || Nt(t) != _d)
1649
1650
  return !1;
1650
1651
  var e = xr(t);
1651
1652
  if (e === null)
1652
1653
  return !0;
1653
1654
  var r = Ed.call(e, "constructor") && e.constructor;
1654
- return typeof r == "function" && r instanceof r && Yo.call(r) == wd;
1655
+ return typeof r == "function" && r instanceof r && Yo.call(r) == $d;
1655
1656
  }
1656
- function $d(t, e, r) {
1657
+ function wd(t, e, r) {
1657
1658
  var n = -1, o = t.length;
1658
1659
  e < 0 && (e = -e > o ? 0 : o + e), r = r > o ? o : r, r < 0 && (r += o), o = e > r ? 0 : r - e >>> 0, e >>>= 0;
1659
1660
  for (var a = Array(o); ++n < o; )
@@ -1822,17 +1823,17 @@ function bp(t, e, r) {
1822
1823
  }
1823
1824
  }
1824
1825
  function oa(t) {
1825
- return typeof t.constructor == "function" && !Er(t) ? $l(xr(t)) : {};
1826
+ return typeof t.constructor == "function" && !Er(t) ? wl(xr(t)) : {};
1826
1827
  }
1827
1828
  var _p = "[object Map]";
1828
1829
  function Sp(t) {
1829
1830
  return Y(t) && W(t) == _p;
1830
1831
  }
1831
- var zn = Mt && Mt.isMap, Op = zn ? wr(zn) : Sp, Ep = "[object Set]";
1832
- function wp(t) {
1832
+ var zn = Mt && Mt.isMap, Op = zn ? $r(zn) : Sp, Ep = "[object Set]";
1833
+ function $p(t) {
1833
1834
  return Y(t) && W(t) == Ep;
1834
1835
  }
1835
- var kn = Mt && Mt.isSet, $p = kn ? wr(kn) : wp, Cp = 1, Np = 2, jp = 4, aa = "[object Arguments]", xp = "[object Array]", Ap = "[object Boolean]", Tp = "[object Date]", Rp = "[object Error]", sa = "[object Function]", Mp = "[object GeneratorFunction]", Pp = "[object Map]", Ip = "[object Number]", ia = "[object Object]", Dp = "[object RegExp]", Lp = "[object Set]", Fp = "[object String]", Vp = "[object Symbol]", Up = "[object WeakMap]", Bp = "[object ArrayBuffer]", Gp = "[object DataView]", zp = "[object Float32Array]", kp = "[object Float64Array]", Hp = "[object Int8Array]", Jp = "[object Int16Array]", Wp = "[object Int32Array]", qp = "[object Uint8Array]", Kp = "[object Uint8ClampedArray]", Qp = "[object Uint16Array]", Yp = "[object Uint32Array]", R = {};
1836
+ var kn = Mt && Mt.isSet, wp = kn ? $r(kn) : $p, Cp = 1, Np = 2, jp = 4, aa = "[object Arguments]", xp = "[object Array]", Ap = "[object Boolean]", Tp = "[object Date]", Rp = "[object Error]", sa = "[object Function]", Mp = "[object GeneratorFunction]", Pp = "[object Map]", Ip = "[object Number]", ia = "[object Object]", Dp = "[object RegExp]", Lp = "[object Set]", Fp = "[object String]", Vp = "[object Symbol]", Up = "[object WeakMap]", Bp = "[object ArrayBuffer]", Gp = "[object DataView]", zp = "[object Float32Array]", kp = "[object Float64Array]", Hp = "[object Int8Array]", Jp = "[object Int16Array]", Wp = "[object Int32Array]", qp = "[object Uint8Array]", Kp = "[object Uint8ClampedArray]", Qp = "[object Uint16Array]", Yp = "[object Uint32Array]", R = {};
1836
1837
  R[aa] = R[xp] = R[Bp] = R[Gp] = R[Ap] = R[Tp] = R[zp] = R[kp] = R[Hp] = R[Jp] = R[Wp] = R[Pp] = R[Ip] = R[ia] = R[Dp] = R[Lp] = R[Fp] = R[Vp] = R[qp] = R[Kp] = R[Qp] = R[Yp] = !0;
1837
1838
  R[Rp] = R[sa] = R[Up] = !1;
1838
1839
  function qt(t, e, r, n, o, a) {
@@ -1862,7 +1863,7 @@ function qt(t, e, r, n, o, a) {
1862
1863
  var h = a.get(t);
1863
1864
  if (h)
1864
1865
  return h;
1865
- a.set(t, s), $p(t) ? t.forEach(function(p) {
1866
+ a.set(t, s), wp(t) ? t.forEach(function(p) {
1866
1867
  s.add(qt(p, e, r, p, t, a));
1867
1868
  }) : Op(t) && t.forEach(function(p, g) {
1868
1869
  s.set(g, qt(p, e, r, g, t, a));
@@ -1982,7 +1983,7 @@ function _h(t, e, r, n, o, a, s) {
1982
1983
  return !1;
1983
1984
  }
1984
1985
  var Sh = 1, Oh = Object.prototype, Eh = Oh.hasOwnProperty;
1985
- function wh(t, e, r, n, o, a) {
1986
+ function $h(t, e, r, n, o, a) {
1986
1987
  var s = r & Sh, i = Ze(t), c = i.length, u = Ze(e), d = u.length;
1987
1988
  if (c != d && !s)
1988
1989
  return !1;
@@ -2000,20 +2001,20 @@ function wh(t, e, r, n, o, a) {
2000
2001
  l = i[f];
2001
2002
  var g = t[l], m = e[l];
2002
2003
  if (n)
2003
- var y = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
2004
- if (!(y === void 0 ? g === m || o(g, m, r, n, a) : y)) {
2004
+ var b = s ? n(m, g, l, e, t, a) : n(g, m, l, t, e, a);
2005
+ if (!(b === void 0 ? g === m || o(g, m, r, n, a) : b)) {
2005
2006
  _ = !1;
2006
2007
  break;
2007
2008
  }
2008
2009
  p || (p = l == "constructor");
2009
2010
  }
2010
2011
  if (_ && !p) {
2011
- var b = t.constructor, S = e.constructor;
2012
- b != S && "constructor" in t && "constructor" in e && !(typeof b == "function" && b instanceof b && typeof S == "function" && S instanceof S) && (_ = !1);
2012
+ var y = t.constructor, S = e.constructor;
2013
+ y != S && "constructor" in t && "constructor" in e && !(typeof y == "function" && y instanceof y && typeof S == "function" && S instanceof S) && (_ = !1);
2013
2014
  }
2014
2015
  return a.delete(t), a.delete(e), _;
2015
2016
  }
2016
- var $h = 1, Jn = "[object Arguments]", Wn = "[object Array]", fe = "[object Object]", Ch = Object.prototype, qn = Ch.hasOwnProperty;
2017
+ var wh = 1, Jn = "[object Arguments]", Wn = "[object Array]", fe = "[object Object]", Ch = Object.prototype, qn = Ch.hasOwnProperty;
2017
2018
  function Nh(t, e, r, n, o, a) {
2018
2019
  var s = L(t), i = L(e), c = s ? Wn : W(t), u = i ? Wn : W(e);
2019
2020
  c = c == Jn ? fe : c, u = u == Jn ? fe : u;
@@ -2024,15 +2025,15 @@ function Nh(t, e, r, n, o, a) {
2024
2025
  s = !0, d = !1;
2025
2026
  }
2026
2027
  if (l && !d)
2027
- return a || (a = new q()), s || $r(t) ? la(t, e, r, n, o, a) : _h(t, e, c, r, n, o, a);
2028
- if (!(r & $h)) {
2028
+ return a || (a = new q()), s || wr(t) ? la(t, e, r, n, o, a) : _h(t, e, c, r, n, o, a);
2029
+ if (!(r & wh)) {
2029
2030
  var h = d && qn.call(t, "__wrapped__"), v = f && qn.call(e, "__wrapped__");
2030
2031
  if (h || v) {
2031
2032
  var _ = h ? t.value() : t, p = v ? e.value() : e;
2032
2033
  return a || (a = new q()), o(_, p, r, n, a);
2033
2034
  }
2034
2035
  }
2035
- return l ? (a || (a = new q()), wh(t, e, r, n, o, a)) : !1;
2036
+ return l ? (a || (a = new q()), $h(t, e, r, n, o, a)) : !1;
2036
2037
  }
2037
2038
  function Pr(t, e, r, n, o) {
2038
2039
  return t === e ? !0 : t == null || e == null || !Y(t) && !Y(e) ? t !== t && e !== e : Nh(t, e, r, n, Pr, o);
@@ -2093,7 +2094,7 @@ function Ph(t, e, r) {
2093
2094
  break;
2094
2095
  t = t[s];
2095
2096
  }
2096
- return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && Or(o) && $e(s, o) && (L(t) || Xt(t)));
2097
+ return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && Or(o) && we(s, o) && (L(t) || Xt(t)));
2097
2098
  }
2098
2099
  function Ih(t, e) {
2099
2100
  return t != null && Ph(t, e, Mh);
@@ -2153,8 +2154,8 @@ function Hh(t, e, r, n, o, a, s) {
2153
2154
  }
2154
2155
  var d = a ? a(i, c, r + "", t, e, s) : void 0, f = d === void 0;
2155
2156
  if (f) {
2156
- var l = L(c), h = !l && Zt(c), v = !l && !h && $r(c);
2157
- d = c, l || h || v ? L(i) ? d = i : nr(i) ? d = Uo(i) : h ? (f = !1, d = Zo(c, !0)) : v ? (f = !1, d = na(c, !0)) : d = [] : U(c) || Xt(c) ? (d = i, Xt(i) ? d = kh(i) : (!Q(i) || br(i)) && (d = oa(c))) : f = !1;
2157
+ var l = L(c), h = !l && Zt(c), v = !l && !h && wr(c);
2158
+ d = c, l || h || v ? L(i) ? d = i : nr(i) ? d = Uo(i) : h ? (f = !1, d = Zo(c, !0)) : v ? (f = !1, d = na(c, !0)) : d = [] : B(c) || Xt(c) ? (d = i, Xt(i) ? d = kh(i) : (!Q(i) || br(i)) && (d = oa(c))) : f = !1;
2158
2159
  }
2159
2160
  f && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), rr(t, r, d);
2160
2161
  }
@@ -2173,7 +2174,7 @@ function ha(t) {
2173
2174
  return e ? t[e - 1] : void 0;
2174
2175
  }
2175
2176
  function Jh(t, e) {
2176
- return e.length < 2 ? t : Ae(t, $d(e, 0, -1));
2177
+ return e.length < 2 ? t : Ae(t, wd(e, 0, -1));
2177
2178
  }
2178
2179
  var ga = Jl(function(t, e, r) {
2179
2180
  pa(t, e, r);
@@ -2200,7 +2201,7 @@ function Kh(t, e) {
2200
2201
  return e = Ut(e, t), t = Jh(t, e), t == null || delete t[Bt(ha(e))];
2201
2202
  }
2202
2203
  function Qh(t) {
2203
- return U(t) ? void 0 : t;
2204
+ return B(t) ? void 0 : t;
2204
2205
  }
2205
2206
  var Yh = 1, Xh = 2, Zh = 4, va = bd(function(t, e) {
2206
2207
  var r = {};
@@ -2224,7 +2225,7 @@ function tg(t, e, r, n) {
2224
2225
  return t;
2225
2226
  if (o != s) {
2226
2227
  var d = i[c];
2227
- u = void 0, u === void 0 && (u = Q(d) ? d : $e(e[o + 1]) ? [] : {});
2228
+ u = void 0, u === void 0 && (u = Q(d) ? d : we(e[o + 1]) ? [] : {});
2228
2229
  }
2229
2230
  Sr(i, c, u), i = i[c];
2230
2231
  }
@@ -2666,13 +2667,13 @@ const Fr = A({
2666
2667
  main: O(E()),
2667
2668
  cssPaths: O(I(E()))
2668
2669
  }), mg = I(Fr);
2669
- var V = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t.ACTION = "ACTION", t.EVENT = "EVENT", t))(V || {}), Vr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(Vr || {}), sr = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(sr || {});
2670
- const yg = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Kt(E(), Ur)), !0)), Ur = z([
2670
+ var U = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t.ACTION = "ACTION", t.EVENT = "EVENT", t))(U || {}), Vr = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(Vr || {}), sr = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(sr || {});
2671
+ const yg = () => pt("normalObj", (t) => !B(t) || [U.SLOT, U.EXPRESSION, U.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Kt(E(), Ur)), !0)), Ur = z([
2671
2672
  E(),
2672
2673
  Sa(),
2673
2674
  St(),
2674
2675
  A({
2675
- type: G(V.SLOT),
2676
+ type: G(U.SLOT),
2676
2677
  renderType: ar([sr.FUNC, sr.COMP]),
2677
2678
  // if renderType is Func, params will be useful
2678
2679
  params: O(I(E())),
@@ -2680,15 +2681,15 @@ const yg = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
2680
2681
  value: Pt(() => z([It, I(It)]))
2681
2682
  }),
2682
2683
  A({
2683
- type: G(V.EXPRESSION),
2684
+ type: G(U.EXPRESSION),
2684
2685
  value: E()
2685
2686
  }),
2686
2687
  A({
2687
- type: G(V.FUNCTION),
2688
+ type: G(U.FUNCTION),
2688
2689
  value: E()
2689
2690
  }),
2690
2691
  A({
2691
- type: G(V.ACTION),
2692
+ type: G(U.ACTION),
2692
2693
  /** 暂时不做规则强检验 */
2693
2694
  handler: T()
2694
2695
  }),
@@ -2699,7 +2700,7 @@ const yg = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
2699
2700
  ]);
2700
2701
  var Ea = /* @__PURE__ */ ((t) => (t.COMPONENTS = "COMPONENTS", t))(Ea || {});
2701
2702
  const Qn = A({
2702
- type: G(V.EXPRESSION),
2703
+ type: G(U.EXPRESSION),
2703
2704
  value: E()
2704
2705
  }), It = A({
2705
2706
  id: O(E()),
@@ -2840,7 +2841,7 @@ const Eg = A({
2840
2841
  // 分类
2841
2842
  category: O(E()),
2842
2843
  schema: Lr(ba(It, ["id"]), A({ componentName: O(E()) }))
2843
- }), wg = A({
2844
+ }), $g = A({
2844
2845
  componentName: E(),
2845
2846
  title: E(),
2846
2847
  screenshot: O(E()),
@@ -2898,7 +2899,7 @@ const Eg = A({
2898
2899
  advanceCustom: O(T()),
2899
2900
  // 扩展配置
2900
2901
  extra: O(Kt(T(), T()))
2901
- }), $g = (t) => ({ data: e, message: r, throwError: n }) => {
2902
+ }), wg = (t) => ({ data: e, message: r, throwError: n }) => {
2902
2903
  const o = t({ data: e, message: r, throwError: n });
2903
2904
  if (o.isValidate)
2904
2905
  return o;
@@ -2911,7 +2912,7 @@ const Eg = A({
2911
2912
  data struct format is invalidate`), o;
2912
2913
  }, Br = (t) => {
2913
2914
  const { data: e, message: r, throwError: n, dataStruct: o } = t;
2914
- return $g(({ data: a }) => {
2915
+ return wg(({ data: a }) => {
2915
2916
  try {
2916
2917
  return ya(a, o), {
2917
2918
  isValidate: !0
@@ -2929,7 +2930,7 @@ const Eg = A({
2929
2930
  };
2930
2931
  var rt = /* @__PURE__ */ ((t) => (t.ROOT_CONTAINER = "RootContainer", t))(rt || {});
2931
2932
  const Cg = A({
2932
- type: G(V.FUNCTION),
2933
+ type: G(U.FUNCTION),
2933
2934
  value: E()
2934
2935
  }), Ng = Lr(
2935
2936
  ba(It, ["componentName"]),
@@ -2967,7 +2968,7 @@ const ue = jg(), xg = (t, e) => {
2967
2968
  parent: e,
2968
2969
  materials: o
2969
2970
  })
2970
- ) : U(n) && r.value.push(
2971
+ ) : B(n) && r.value.push(
2971
2972
  new D(n, {
2972
2973
  parent: e,
2973
2974
  materials: o
@@ -2987,7 +2988,7 @@ class Dt {
2987
2988
  const r = this.data, n = (o) => {
2988
2989
  if (o instanceof D)
2989
2990
  return o.export(e);
2990
- if (U(o)) {
2991
+ if (B(o)) {
2991
2992
  const a = {};
2992
2993
  return Object.keys(o || {}).forEach((s) => {
2993
2994
  a[s] = n(o[s]);
@@ -2998,22 +2999,22 @@ class Dt {
2998
2999
  return n(r);
2999
3000
  }
3000
3001
  }
3001
- const wa = (t) => {
3002
+ const $a = (t) => {
3002
3003
  let e = [];
3003
3004
  return t.forEach((r) => {
3004
3005
  const n = r;
3005
- n.type ? n.type === ir.SINGLE ? e.push(n.content) : n.type === ir.GROUP && (e = [...e, ...wa(n.content)]) : e.push(r);
3006
+ n.type ? n.type === ir.SINGLE ? e.push(n.content) : n.type === ir.GROUP && (e = [...e, ...$a(n.content)]) : e.push(r);
3006
3007
  }), e;
3007
3008
  }, cr = (t, e, r) => {
3008
3009
  if (t.type)
3009
- return t.type === V.SLOT ? new Dt(t, { parent: e, materials: r }) : t;
3010
- if (U(t)) {
3010
+ return t.type === U.SLOT ? new Dt(t, { parent: e, materials: r }) : t;
3011
+ if (B(t)) {
3011
3012
  const n = {};
3012
3013
  return Object.keys(t).forEach((o) => {
3013
3014
  n[o] = ur(t[o], e, r);
3014
3015
  }), n;
3015
3016
  } else return Array.isArray(t) ? t.map((n) => cr(n, e, r)) : t;
3016
- }, ur = (t, e, r) => U(t) ? cr(t, e, r) : L(t) ? t.map((n) => cr(n, e, r)) : t;
3017
+ }, ur = (t, e, r) => B(t) ? cr(t, e, r) : L(t) ? t.map((n) => cr(n, e, r)) : t;
3017
3018
  class dt {
3018
3019
  constructor(e, r, n) {
3019
3020
  C(this, "nodeType", "PROP"), C(this, "rawData"), C(this, "parent"), C(this, "emitter", ue), C(this, "data"), C(this, "name"), C(this, "materialsMode");
@@ -3047,7 +3048,7 @@ class dt {
3047
3048
  const e = this.parent;
3048
3049
  if (e instanceof D) {
3049
3050
  const r = e.material;
3050
- return wa((r == null ? void 0 : r.value.props) || []).find((n) => n.name === this.name);
3051
+ return $a((r == null ? void 0 : r.value.props) || []).find((n) => n.name === this.name);
3051
3052
  } else
3052
3053
  return null;
3053
3054
  }
@@ -3057,7 +3058,7 @@ class dt {
3057
3058
  return o.export(e);
3058
3059
  if (L(o))
3059
3060
  return o.map((a) => n(a));
3060
- if (U(o)) {
3061
+ if (B(o)) {
3061
3062
  const a = {};
3062
3063
  return Object.keys(o || {}).forEach((s) => {
3063
3064
  a[s] = n(o[s]);
@@ -3104,7 +3105,7 @@ const Ag = (t) => {
3104
3105
  }), t.children && (Array.isArray(t.children) ? n.children = t.children.map((a) => {
3105
3106
  if (a instanceof D)
3106
3107
  return a;
3107
- if (U(a)) {
3108
+ if (B(a)) {
3108
3109
  const s = a;
3109
3110
  return new D(s, {
3110
3111
  parent: e,
@@ -3244,7 +3245,7 @@ const Xn = (t, e, r) => {
3244
3245
  injectEnvList: t.injectEnvList
3245
3246
  };
3246
3247
  let o = [];
3247
- L(t.children) ? o = t.children.map((s) => s instanceof D ? s : U(s) ? new D(s, { parent: e, materials: r }) : s) : t.children instanceof D ? o.push(t.children) : t.children && U(t.children) && o.push(new D(t.children, { parent: e, materials: r }));
3248
+ L(t.children) ? o = t.children.map((s) => s instanceof D ? s : B(s) ? new D(s, { parent: e, materials: r }) : s) : t.children instanceof D ? o.push(t.children) : t.children && B(t.children) && o.push(new D(t.children, { parent: e, materials: r }));
3248
3249
  const a = Object.keys(t.props || {});
3249
3250
  return a.length && a.forEach((s) => {
3250
3251
  var i;
@@ -3355,7 +3356,7 @@ class ne {
3355
3356
  });
3356
3357
  }
3357
3358
  }
3358
- const mt = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, $a = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, Tg = (t) => (t == null ? void 0 : t.type) === V.ACTION, et = () => Math.random().toString(32).slice(3, 9), Rg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", lr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Mg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Gr = (t) => ng(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : e == null);
3359
+ const mt = (t) => (t == null ? void 0 : t.type) === U.EXPRESSION, wa = (t) => (t == null ? void 0 : t.type) === U.FUNCTION, Tg = (t) => (t == null ? void 0 : t.type) === U.ACTION, et = () => Math.random().toString(32).slice(3, 9), Rg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", lr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Mg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Gr = (t) => ng(t, (e) => B(e) ? !Object.keys(e).length : L(e) ? !e.length : e == null);
3359
3360
  function Pg(t, e) {
3360
3361
  const r = [t];
3361
3362
  for (; r.length; ) {
@@ -3371,7 +3372,7 @@ function Pg(t, e) {
3371
3372
  a(i.value);
3372
3373
  return;
3373
3374
  }
3374
- if (U(i)) {
3375
+ if (B(i)) {
3375
3376
  const c = i;
3376
3377
  Object.keys(c).forEach((u) => {
3377
3378
  a(c[u]);
@@ -3439,7 +3440,7 @@ const Ue = (t) => {
3439
3440
  t == null || t.forEach((e) => {
3440
3441
  Br({
3441
3442
  data: e,
3442
- dataStruct: wg,
3443
+ dataStruct: $g,
3443
3444
  throwError: !1
3444
3445
  });
3445
3446
  });
@@ -3596,7 +3597,7 @@ class Se {
3596
3597
  return r.value.children.unshift(e), e.parent = r, r.updateValue(), !0;
3597
3598
  if (n === "CHILD_END")
3598
3599
  return r.value.children.push(e), e.parent = r, r.updateValue(), !0;
3599
- if (U(n)) {
3600
+ if (B(n)) {
3600
3601
  const a = n;
3601
3602
  if (a.type === "CHILD") {
3602
3603
  const s = a.pos, i = a.index || 0;
@@ -3777,7 +3778,7 @@ const yt = (t, e) => function(...r) {
3777
3778
  $$response: e.$$response,
3778
3779
  actionVariableSpace: e.actionVariableSpace,
3779
3780
  nodeModel: e.nodeModel
3780
- }) : $a(t) ? se({
3781
+ }) : wa(t) ? se({
3781
3782
  funcName: t.name || "",
3782
3783
  funcBody: t.value,
3783
3784
  nodeContext: e.context,
@@ -3895,10 +3896,10 @@ const yt = (t, e) => function(...r) {
3895
3896
  ...e
3896
3897
  }), p = u.params || [];
3897
3898
  return {
3898
- component: (...y) => {
3899
- const b = Po(y, p), S = fr(
3899
+ component: (...b) => {
3900
+ const y = Po(b, p), S = fr(
3900
3901
  {
3901
- params: b,
3902
+ params: y,
3902
3903
  nodeRefs: r.nodeRefs,
3903
3904
  // 使用空函数,避免获取到父节点的方法或者函数
3904
3905
  getProps: function() {
@@ -3939,7 +3940,7 @@ const yt = (t, e) => function(...r) {
3939
3940
  storeManager: e.storeManager,
3940
3941
  nodeModel: e.nodeModel
3941
3942
  });
3942
- if ($a(c)) {
3943
+ if (wa(c)) {
3943
3944
  const u = c;
3944
3945
  return se({
3945
3946
  funcBody: u.value,
@@ -4012,31 +4013,31 @@ const yt = (t, e) => function(...r) {
4012
4013
  class h extends x.Component {
4013
4014
  constructor(p) {
4014
4015
  super(p);
4015
- w(this, "_CONDITION", !0);
4016
- w(this, "_DESIGN_BOX", !1);
4017
- w(this, "_NODE_MODEL", e);
4018
- w(this, "_NODE_ID", e.id);
4019
- w(this, "UNIQUE_ID", `${e.id}_${et()}`);
4020
- w(this, "targetComponentRef");
4021
- w(this, "listenerHandler", []);
4022
- w(this, "storeState");
4016
+ $(this, "_CONDITION", !0);
4017
+ $(this, "_DESIGN_BOX", !1);
4018
+ $(this, "_NODE_MODEL", e);
4019
+ $(this, "_NODE_ID", e.id);
4020
+ $(this, "UNIQUE_ID", `${e.id}_${et()}`);
4021
+ $(this, "targetComponentRef");
4022
+ $(this, "listenerHandler", []);
4023
+ $(this, "storeState");
4023
4024
  /** 存储清理 store 的监听函数 */
4024
- w(this, "storeListenDisposeList", []);
4025
+ $(this, "storeListenDisposeList", []);
4025
4026
  /** save dom and media css */
4026
- w(this, "domHeader");
4027
- w(this, "mediaStyleDomMap", {});
4027
+ $(this, "domHeader");
4028
+ $(this, "mediaStyleDomMap", {});
4028
4029
  /** 存储当前节点的一些变量和方法,不具有响应性 */
4029
- w(this, "variableSpace");
4030
- w(this, "nodeName");
4031
- w(this, "updateState", (p) => {
4030
+ $(this, "variableSpace");
4031
+ $(this, "nodeName");
4032
+ $(this, "updateState", (p) => {
4032
4033
  e.value.componentName === rt.ROOT_CONTAINER ? this.setState(p) : this.storeState.setState(p);
4033
4034
  });
4034
- w(this, "getStyleDomById", (p) => {
4035
+ $(this, "getStyleDomById", (p) => {
4035
4036
  const g = this.mediaStyleDomMap;
4036
4037
  let m = g[p];
4037
4038
  return m || (m = f.createElement("style"), g[p] = m), m.id = p, m;
4038
4039
  });
4039
- w(this, "addMediaCSS", () => {
4040
+ $(this, "addMediaCSS", () => {
4040
4041
  var m;
4041
4042
  let p = this.domHeader;
4042
4043
  if (p || (p = (m = f.getElementsByTagName("head")) == null ? void 0 : m[0], this.domHeader = p), !this.domHeader) {
@@ -4044,28 +4045,28 @@ const yt = (t, e) => function(...r) {
4044
4045
  return;
4045
4046
  }
4046
4047
  const g = this._NODE_MODEL.value.css;
4047
- g && g.value.forEach((y) => {
4048
+ g && g.value.forEach((b) => {
4048
4049
  var j;
4049
- const b = `${this.UNIQUE_ID}_${y.state}`;
4050
+ const y = `${this.UNIQUE_ID}_${b.state}`;
4050
4051
  let S = yn(this._NODE_MODEL);
4051
- if (y.state !== "normal" && (S = `${S}:${y.state}`), y.text) {
4052
- const N = this.getStyleDomById(b);
4053
- N.innerText = `.${S} { ${y.text} }`, p == null || p.appendChild(N);
4052
+ if (b.state !== "normal" && (S = `${S}:${b.state}`), b.text) {
4053
+ const N = this.getStyleDomById(y);
4054
+ N.innerText = `.${S} { ${b.text} }`, p == null || p.appendChild(N);
4054
4055
  }
4055
- (j = y.media) != null && j.length && y.media.forEach((N) => {
4056
- const $ = `${b}_${N.type}_${N.value}`, F = this.getStyleDomById($);
4057
- F.media = `screen and (${N.type}:${N.value}px)`, F.innerHTML = `.${S} { ${N.text} }`, p == null || p.appendChild(F);
4056
+ (j = b.media) != null && j.length && b.media.forEach((N) => {
4057
+ const w = `${y}_${N.type}_${N.value}`, V = this.getStyleDomById(w);
4058
+ V.media = `screen and (${N.type}:${N.value}px)`, V.innerHTML = `.${S} { ${N.text} }`, p == null || p.appendChild(V);
4058
4059
  });
4059
4060
  });
4060
4061
  });
4061
- w(this, "removeMediaCSS", () => {
4062
+ $(this, "removeMediaCSS", () => {
4062
4063
  const p = this.mediaStyleDomMap;
4063
4064
  Object.keys(p).forEach((g) => {
4064
4065
  var m;
4065
4066
  (m = this.domHeader) == null || m.removeChild(p[g]);
4066
4067
  }), this.mediaStyleDomMap = {};
4067
4068
  });
4068
- w(this, "rebuildNode", () => {
4069
+ $(this, "rebuildNode", () => {
4069
4070
  this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
4070
4071
  });
4071
4072
  this.targetComponentRef = x.createRef(), this.listenerHandler = [], this.state = e.value.state || {};
@@ -4077,12 +4078,12 @@ const yt = (t, e) => function(...r) {
4077
4078
  })) : this.storeState = n.addStore(g, () => ({
4078
4079
  ...e.value.state || {}
4079
4080
  }));
4080
- const y = this.storeState.subscribe((S) => {
4081
+ const b = this.storeState.subscribe((S) => {
4081
4082
  this.setStateIfChanged(S);
4082
4083
  });
4083
- this.storeListenDisposeList.push(y), this.connectStore();
4084
- const b = o.get(g);
4085
- b ? this.variableSpace = b : (this.variableSpace = {
4084
+ this.storeListenDisposeList.push(b), this.connectStore();
4085
+ const y = o.get(g);
4086
+ y ? this.variableSpace = y : (this.variableSpace = {
4086
4087
  staticVar: {},
4087
4088
  methods: {}
4088
4089
  }, o.add(g, this.variableSpace));
@@ -4111,24 +4112,24 @@ const yt = (t, e) => function(...r) {
4111
4112
  /\$ALL_STATE(?:\.|(?:\[\s*["']))(\w+)(?=(?:["']\s*\])?)/gim,
4112
4113
  // 匹配 getStateObj("xxx")
4113
4114
  /getStateObj\(["']([^"']+)["']\)/gim
4114
- ], $ = Hu(j.value, N);
4115
- m = [...m, ...$], /\$CTX\.globalState|\$G_STATE/.test(j.value) && m.push("globalState");
4115
+ ], w = Hu(j.value, N);
4116
+ m = [...m, ...w], /\$CTX\.globalState|\$G_STATE/.test(j.value) && m.push("globalState");
4116
4117
  }).filter(Boolean);
4117
- const y = Array.from(new Set(m)), b = [];
4118
- y.length && y.forEach((S) => {
4118
+ const b = Array.from(new Set(m)), y = [];
4119
+ b.length && b.forEach((S) => {
4119
4120
  if (!S)
4120
4121
  return;
4121
4122
  n.getStore(S) || (n.addStore(S, () => ({})), console.warn(n, S, "not exits, auto create"));
4122
- const N = n.connect(S, ($) => {
4123
- this.setStateIfChanged($);
4123
+ const N = n.connect(S, (w) => {
4124
+ this.setStateIfChanged(w);
4124
4125
  });
4125
- b.push(N);
4126
- }), this.storeListenDisposeList = b;
4126
+ y.push(N);
4127
+ }), this.storeListenDisposeList = y;
4127
4128
  }
4128
4129
  componentDidMount() {
4129
4130
  var m;
4130
4131
  this.addMediaCSS(), a == null || a(this.targetComponentRef, e, this), s == null || s(this, e);
4131
- const p = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === Na);
4132
+ const p = (m = e.value.eventListener) == null ? void 0 : m.find((b) => b.name === Na);
4132
4133
  p && Rt(p.func, {
4133
4134
  context: this.createCurrentNodeCtx(),
4134
4135
  storeManager: n,
@@ -4145,8 +4146,8 @@ const yt = (t, e) => function(...r) {
4145
4146
  }
4146
4147
  componentWillUnmount() {
4147
4148
  var m;
4148
- this.storeListenDisposeList.forEach((y) => y()), this.removeMediaCSS(), i == null || i(this, e);
4149
- const p = ja, g = (m = e.value.eventListener) == null ? void 0 : m.find((y) => y.name === p);
4149
+ this.storeListenDisposeList.forEach((b) => b()), this.removeMediaCSS(), i == null || i(this, e);
4150
+ const p = ja, g = (m = e.value.eventListener) == null ? void 0 : m.find((b) => b.name === p);
4150
4151
  g && Rt(g.func, {
4151
4152
  context: this.createCurrentNodeCtx(),
4152
4153
  storeManager: n,
@@ -4165,7 +4166,7 @@ const yt = (t, e) => function(...r) {
4165
4166
  ...l,
4166
4167
  nodeModel: e
4167
4168
  }
4168
- ), y = e.value.methods || [], b = m.methods, S = y.reduce((j, N, $) => (j[N.name] = b[$], j), {});
4169
+ ), b = e.value.methods || [], y = m.methods, S = b.reduce((j, N, w) => (j[N.name] = y[w], j), {});
4169
4170
  g.methods = S, this.variableSpace.methods = Object.assign(this.variableSpace.methods, S);
4170
4171
  }
4171
4172
  /** 处理根节点的 context */
@@ -4173,18 +4174,18 @@ const yt = (t, e) => function(...r) {
4173
4174
  e.value.componentName === rt.ROOT_CONTAINER && (p.globalState = this.state, p.updateGlobalState = this.updateState, p.requestAPI = d, p.getGlobalState = () => this.state);
4174
4175
  }
4175
4176
  processNodeClassName(p, g) {
4176
- var b;
4177
- const m = ((b = e.value.classNames) == null ? void 0 : b.map((S) => {
4178
- var $;
4177
+ var y;
4178
+ const m = ((y = e.value.classNames) == null ? void 0 : y.map((S) => {
4179
+ var w;
4179
4180
  const j = S.name;
4180
- return (mt(S.status) ? At((($ = S.status) == null ? void 0 : $.value) || "", {
4181
+ return (mt(S.status) ? At(((w = S.status) == null ? void 0 : w.value) || "", {
4181
4182
  nodeContext: g,
4182
4183
  nodeModel: e,
4183
4184
  storeManager: n
4184
4185
  }) : !1) ? j : "";
4185
4186
  })) || [];
4186
- let y = `${p ?? ""} ${m.join(" ")}`.trim();
4187
- return e.value.css && (y = `${yn(e)} ${y}`.trim()), y;
4187
+ let b = `${p ?? ""} ${m.join(" ")}`.trim();
4188
+ return e.value.css && (b = `${yn(e)} ${b}`.trim()), b;
4188
4189
  }
4189
4190
  processNodeStyle(p) {
4190
4191
  if (!e.value.style)
@@ -4204,32 +4205,32 @@ const yt = (t, e) => function(...r) {
4204
4205
  if (p !== void 0)
4205
4206
  m = Array.isArray(p) ? p : [p];
4206
4207
  else {
4207
- const y = [];
4208
+ const b = [];
4208
4209
  e.value.children.forEach((S, j) => {
4209
4210
  const N = Hg(S, {
4210
4211
  $$context: g,
4211
4212
  idx: j,
4212
4213
  ...l
4213
4214
  });
4214
- y.push(N);
4215
- }), m = y;
4215
+ b.push(N);
4216
+ }), m = b;
4216
4217
  }
4217
4218
  return m;
4218
4219
  }
4219
4220
  processNodeConditionAndConfigHook(p, g, m) {
4220
- let y = e.value.condition ?? !0;
4221
- typeof y != "boolean" && (y = At(y.value, {
4221
+ let b = e.value.condition ?? !0;
4222
+ typeof b != "boolean" && (b = At(b.value, {
4222
4223
  nodeContext: m || {},
4223
4224
  nodeModel: e,
4224
4225
  storeManager: n
4225
4226
  }));
4226
- let b = {
4227
- condition: y,
4227
+ let y = {
4228
+ condition: b,
4228
4229
  props: p
4229
4230
  };
4230
- u && (b = u(b, e));
4231
- const S = oe(t, b.props, ...g);
4232
- return this._CONDITION = b.condition, b.condition ? S : x.createElement(
4231
+ u && (y = u(y, e));
4232
+ const S = oe(t, y.props, ...g);
4233
+ return this._CONDITION = y.condition, y.condition ? S : x.createElement(
4233
4234
  "div",
4234
4235
  {
4235
4236
  key: p.key,
@@ -4242,20 +4243,20 @@ const yt = (t, e) => function(...r) {
4242
4243
  }
4243
4244
  processNodeEventListener(p) {
4244
4245
  const g = e.value.eventListener, m = {};
4245
- return g == null || g.forEach((y) => {
4246
- if (Ug.includes(y.name))
4246
+ return g == null || g.forEach((b) => {
4247
+ if (Ug.includes(b.name))
4247
4248
  return;
4248
- const b = Rt(y.func, {
4249
+ const y = Rt(b.func, {
4249
4250
  context: p,
4250
4251
  storeManager: n,
4251
4252
  actionVariableSpace: {},
4252
4253
  nodeModel: e
4253
4254
  });
4254
- m[y.name] = b;
4255
+ m[b.name] = y;
4255
4256
  }), m;
4256
4257
  }
4257
4258
  createCurrentNodeCtx() {
4258
- const { $$context: p } = this.props, g = e.value.nodeName || e.id, m = e.id, y = {
4259
+ const { $$context: p } = this.props, g = e.value.nodeName || e.id, m = e.id, b = {
4259
4260
  state: this.state || {},
4260
4261
  staticVar: this.variableSpace.staticVar,
4261
4262
  updateState: this.updateState,
@@ -4276,9 +4277,9 @@ const yt = (t, e) => function(...r) {
4276
4277
  getStaticVarById: (S) => o.get(S).staticVar,
4277
4278
  /** 获取当前节点的事件函数 */
4278
4279
  callEventMethod: (S, j) => {
4279
- var $, F;
4280
+ var w, V;
4280
4281
  const N = c.get(m).current;
4281
- (F = N == null ? void 0 : ($ = N.props)[S]) == null || F.call($, j);
4282
+ (V = N == null ? void 0 : (w = N.props)[S]) == null || V.call(w, j);
4282
4283
  },
4283
4284
  /** 获取当前 node 的 props */
4284
4285
  getProps: () => {
@@ -4287,7 +4288,7 @@ const yt = (t, e) => function(...r) {
4287
4288
  },
4288
4289
  nodeRefs: p.nodeRefs
4289
4290
  };
4290
- return this.processRootContext(y), fr(y, p);
4291
+ return this.processRootContext(b), fr(b, p);
4291
4292
  }
4292
4293
  injectEngEnv() {
4293
4294
  const p = {}, g = e.value.injectEnvList || [];
@@ -4295,7 +4296,7 @@ const yt = (t, e) => function(...r) {
4295
4296
  const m = {
4296
4297
  [Ea.COMPONENTS]: r.components
4297
4298
  };
4298
- g.reduce((y, b) => (y[b] = m[b], y), p);
4299
+ g.reduce((b, y) => (b[y] = m[y], b), p);
4299
4300
  }
4300
4301
  return p;
4301
4302
  }
@@ -4304,99 +4305,105 @@ const yt = (t, e) => function(...r) {
4304
4305
  key: e.id,
4305
4306
  ...e.props,
4306
4307
  ...g
4307
- }, y = this.createCurrentNodeCtx();
4308
- this.transformMethods({ context: y });
4309
- let b = de(m, {
4310
- $$context: y,
4308
+ }, b = this.createCurrentNodeCtx();
4309
+ this.transformMethods({ context: b });
4310
+ let y = de(m, {
4311
+ $$context: b,
4311
4312
  ...l,
4312
4313
  nodeModel: e
4313
4314
  });
4314
4315
  const S = this.injectEngEnv();
4315
- Object.assign(b, S);
4316
- const j = this.processNodeClassName(b.className, y);
4317
- b.className = j;
4318
- const N = this.processNodeStyle(y);
4319
- b.style = N;
4320
- const { children: $ } = b;
4321
- delete b.children;
4322
- const F = this.processNodeChild($, y);
4323
- if (b.ref = this.targetComponentRef, e.value.eventListener) {
4324
- const gt = this.processNodeEventListener(y);
4325
- b = {
4326
- ...b,
4316
+ Object.assign(y, S);
4317
+ const j = this.processNodeClassName(y.className, b);
4318
+ y.className = j;
4319
+ const N = this.processNodeStyle(b);
4320
+ y.style = {
4321
+ ...(y == null ? void 0 : y.style) || {},
4322
+ ...N || {}
4323
+ };
4324
+ const { children: w } = y;
4325
+ delete y.children;
4326
+ const V = this.processNodeChild(w, b);
4327
+ if (y.ref = this.targetComponentRef, e.value.eventListener) {
4328
+ const gt = this.processNodeEventListener(b);
4329
+ y = {
4330
+ ...y,
4327
4331
  ...gt
4328
4332
  };
4329
4333
  }
4330
- return this.processNodeConditionAndConfigHook(b, F, y);
4334
+ return this.processNodeConditionAndConfigHook(y, V, b);
4331
4335
  }
4332
4336
  renderLoop() {
4333
4337
  const { $$context: p, ...g } = this.props, m = {
4334
4338
  key: e.id,
4335
4339
  ...e.props,
4336
4340
  ...g
4337
- }, y = this.createCurrentNodeCtx();
4338
- this.transformMethods({ context: y });
4339
- const b = e.value.loop;
4341
+ }, b = this.createCurrentNodeCtx();
4342
+ this.transformMethods({ context: b });
4343
+ const y = e.value.loop;
4340
4344
  let S = [];
4341
- if (b && b.open) {
4345
+ if (y && y.open) {
4342
4346
  this.targetComponentRef.current = [];
4343
- let j = b.data || [];
4344
- if (mt(b.data)) {
4345
- const N = b.data;
4347
+ let j = y.data || [];
4348
+ if (mt(y.data)) {
4349
+ const N = y.data;
4346
4350
  j = At(N.value, {
4347
- nodeContext: y || {},
4351
+ nodeContext: b || {},
4348
4352
  storeManager: n,
4349
4353
  nodeModel: e
4350
4354
  }) || [];
4351
4355
  }
4352
4356
  return S = j.map((...N) => {
4353
- const $ = N[1], F = [b.forName || "item", b.forIndex || "index"], ht = Po(N, F);
4357
+ const w = N[1], V = [y.forName || "item", y.forIndex || "index"], ht = Po(N, V);
4354
4358
  let gt = "loopData";
4355
- b.name && (gt = `${gt}${b.name}`);
4359
+ y.name && (gt = `${gt}${y.name}`);
4356
4360
  const vt = fr(
4357
4361
  {
4358
4362
  [gt]: ht,
4359
- nodeRefs: y.nodeRefs,
4363
+ nodeRefs: b.nodeRefs,
4360
4364
  // 使用空函数,避免获取到父节点的方法或者函数
4361
4365
  getProps: function() {
4362
4366
  },
4363
4367
  callEventMethod: function() {
4364
4368
  }
4365
4369
  },
4366
- y
4370
+ b
4367
4371
  );
4368
- let B = de(m, {
4372
+ let F = de(m, {
4369
4373
  $$context: vt,
4370
4374
  ...l,
4371
4375
  nodeModel: e
4372
4376
  });
4373
4377
  const Ta = this.injectEngEnv();
4374
- Object.assign(B, Ta);
4375
- const Ra = this.processNodeClassName(B.className, vt);
4376
- B.className = Ra;
4378
+ Object.assign(F, Ta);
4379
+ const Ra = this.processNodeClassName(F.className, vt);
4380
+ F.className = Ra;
4377
4381
  const Ma = this.processNodeStyle(vt);
4378
- B.style = Ma;
4379
- const { children: Pa } = B;
4380
- delete B.children;
4382
+ F.style = {
4383
+ ...(F == null ? void 0 : F.style) || {},
4384
+ ...Ma || {}
4385
+ };
4386
+ const { children: Pa } = F;
4387
+ delete F.children;
4381
4388
  const Ia = this.processNodeChild(Pa, vt);
4382
- if (B.key = `${B.key}-${$}`, mt(b.key)) {
4383
- const zt = b.key, Da = At(zt.value, {
4389
+ if (F.key = `${F.key}-${w}`, mt(y.key)) {
4390
+ const zt = y.key, Da = At(zt.value, {
4384
4391
  nodeContext: vt || {},
4385
4392
  storeManager: n,
4386
4393
  nodeModel: e
4387
4394
  });
4388
- B.key += `-${Da}`;
4395
+ F.key += `-${Da}`;
4389
4396
  }
4390
- if (B.ref = (zt) => {
4391
- this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[$] = zt;
4397
+ if (F.ref = (zt) => {
4398
+ this.targetComponentRef.current = this.targetComponentRef.current || [], this.targetComponentRef.current[w] = zt;
4392
4399
  }, e.value.eventListener) {
4393
4400
  const zt = this.processNodeEventListener(vt);
4394
- B = {
4395
- ...B,
4401
+ F = {
4402
+ ...F,
4396
4403
  ...zt
4397
4404
  };
4398
4405
  }
4399
- return this.processNodeConditionAndConfigHook(B, Ia, vt);
4406
+ return this.processNodeConditionAndConfigHook(F, Ia, vt);
4400
4407
  }), S;
4401
4408
  }
4402
4409
  }
@@ -4405,27 +4412,27 @@ const yt = (t, e) => function(...r) {
4405
4412
  return p && p.open ? this.renderLoop() : this.renderCore();
4406
4413
  }
4407
4414
  }
4408
- return w(h, "__CP_TYPE__", Re), h.displayName = `${e.value.componentName}Dynamic`, h;
4415
+ return $(h, "__CP_TYPE__", Re), h.displayName = `${e.value.componentName}Dynamic`, h;
4409
4416
  };
4410
4417
  class Jg {
4411
4418
  constructor() {
4412
- w(this, "renderMode", "normal");
4413
- w(this, "components", {});
4414
- w(this, "storeManager", new Ku());
4419
+ $(this, "renderMode", "normal");
4420
+ $(this, "components", {});
4421
+ $(this, "storeManager", new Ku());
4415
4422
  // 存储节点的变量或者方法
4416
- w(this, "variableManager", new Qu());
4417
- w(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4418
- w(this, "onGetRef");
4419
- w(this, "onGetComponent");
4420
- w(this, "onComponentMount");
4421
- w(this, "refManager", new Do());
4422
- w(this, "onComponentDestroy");
4423
+ $(this, "variableManager", new Qu());
4424
+ $(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4425
+ $(this, "onGetRef");
4426
+ $(this, "onGetComponent");
4427
+ $(this, "onComponentMount");
4428
+ $(this, "refManager", new Do());
4429
+ $(this, "onComponentDestroy");
4423
4430
  /**
4424
4431
  * 处理 props 钩子, 可以统一拦截 node 的处理,并修改其值
4425
4432
  */
4426
- w(this, "processNodeConfigHook");
4433
+ $(this, "processNodeConfigHook");
4427
4434
  /** 请求 API */
4428
- w(this, "requestAPI", async (e) => {
4435
+ $(this, "requestAPI", async (e) => {
4429
4436
  throw console.log(e), new Error("Need to implement requestAPI for Render");
4430
4437
  });
4431
4438
  }
@@ -4756,7 +4763,7 @@ const Nv = za(new Jg()), Wg = [
4756
4763
  }), []);
4757
4764
  const i = {
4758
4765
  boxSizing: "border-box",
4759
- ...a.style || {}
4766
+ ...o || {}
4760
4767
  };
4761
4768
  return x.createElement(
4762
4769
  "div",
@@ -4799,14 +4806,14 @@ const Nv = za(new Jg()), Wg = [
4799
4806
  class ov extends x.Component {
4800
4807
  constructor(r) {
4801
4808
  super(r);
4802
- w(this, "refManager");
4809
+ $(this, "refManager");
4803
4810
  // save component instance
4804
- w(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4805
- w(this, "onGetRef", (r, n, o) => {
4811
+ $(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4812
+ $(this, "onGetRef", (r, n, o) => {
4806
4813
  var a, s;
4807
4814
  (s = (a = this.props).onGetRef) == null || s.call(a, r, n, o), this.dynamicComponentInstanceMap.set(n.id, o), this.refManager.add(n.value.refId || n.id, r);
4808
4815
  });
4809
- w(this, "rerender", (r) => {
4816
+ $(this, "rerender", (r) => {
4810
4817
  if (this.props.adapter.clear(), (r == null ? void 0 : r.nodeType) === "PAGE" && r)
4811
4818
  this.setState({
4812
4819
  pageModel: r
@@ -4873,7 +4880,7 @@ const jv = () => {
4873
4880
  class av extends x.Component {
4874
4881
  constructor(r) {
4875
4882
  super(r);
4876
- w(this, "onDoubleClick", () => {
4883
+ $(this, "onDoubleClick", () => {
4877
4884
  this.setState({
4878
4885
  hasError: !1,
4879
4886
  error: null
@@ -5109,7 +5116,7 @@ function dv(t) {
5109
5116
  }
5110
5117
  class pv {
5111
5118
  constructor() {
5112
- w(this, "instanceMap", /* @__PURE__ */ new Map());
5119
+ $(this, "instanceMap", /* @__PURE__ */ new Map());
5113
5120
  }
5114
5121
  get(e) {
5115
5122
  return this.instanceMap.get(e);
@@ -5168,11 +5175,11 @@ const hv = (t) => {
5168
5175
  class xv extends x.Component {
5169
5176
  constructor(r) {
5170
5177
  super(r);
5171
- w(this, "instanceManager", new pv());
5172
- w(this, "renderRef");
5173
- w(this, "dropPlaceholder", hv);
5174
- w(this, "_components", {});
5175
- w(this, "onGetComponent", (r, n) => {
5178
+ $(this, "instanceManager", new pv());
5179
+ $(this, "renderRef");
5180
+ $(this, "dropPlaceholder", hv);
5181
+ $(this, "_components", {});
5182
+ $(this, "onGetComponent", (r, n) => {
5176
5183
  var c, u;
5177
5184
  const o = this;
5178
5185
  let a = r;
@@ -5184,13 +5191,13 @@ class xv extends x.Component {
5184
5191
  class i extends x.Component {
5185
5192
  constructor() {
5186
5193
  super(...arguments);
5187
- w(this, "_DESIGN_BOX", !0);
5188
- w(this, "_NODE_MODEL", n);
5189
- w(this, "_NODE_ID", n.id);
5190
- w(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5191
- w(this, "_STATUS");
5192
- w(this, "_design_target_component", x.createRef());
5193
- w(this, "_dom");
5194
+ $(this, "_DESIGN_BOX", !0);
5195
+ $(this, "_NODE_MODEL", n);
5196
+ $(this, "_NODE_ID", n.id);
5197
+ $(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5198
+ $(this, "_STATUS");
5199
+ $(this, "_design_target_component", x.createRef());
5200
+ $(this, "_dom");
5194
5201
  }
5195
5202
  componentDidMount() {
5196
5203
  o.instanceManager.add(n.id, this);
@@ -5206,7 +5213,7 @@ class xv extends x.Component {
5206
5213
  return ((v = (h = n.material) == null ? void 0 : h.value.advanceCustom) == null ? void 0 : v.autoGetDom) ?? !0 ? dv(this) : this._dom;
5207
5214
  }
5208
5215
  render() {
5209
- var y, b, S, j;
5216
+ var b, y, S, j;
5210
5217
  const { children: l = [], onlyRenderChild: h, ...v } = this.props, _ = {
5211
5218
  ...v,
5212
5219
  ref: (N) => {
@@ -5215,7 +5222,7 @@ class xv extends x.Component {
5215
5222
  };
5216
5223
  let p = l;
5217
5224
  if (ot(l) || (p = [l]), !!!p.filter(Boolean).length && (n.isContainer() || n.value.componentName === rt.ROOT_CONTAINER)) {
5218
- const N = (b = (y = n.material) == null ? void 0 : y.value.advanceCustom) == null ? void 0 : b.dropPlaceholder;
5225
+ const N = (y = (b = n.material) == null ? void 0 : b.value.advanceCustom) == null ? void 0 : y.dropPlaceholder;
5219
5226
  p.push(
5220
5227
  x.createElement(N || o.dropPlaceholder, {
5221
5228
  node: n
@@ -5227,8 +5234,8 @@ class xv extends x.Component {
5227
5234
  {
5228
5235
  ..._,
5229
5236
  // 注入到组件中, 配合设计器使用
5230
- $SET_DOM: ($) => {
5231
- this._dom = $;
5237
+ $SET_DOM: (w) => {
5238
+ this._dom = w;
5232
5239
  }
5233
5240
  },
5234
5241
  ...p
@@ -5385,15 +5392,15 @@ function vv() {
5385
5392
  }, n = {}, o = {}, a = {};
5386
5393
  function s(l, h) {
5387
5394
  l = l.push ? l : [l];
5388
- var v = [], _ = l.length, p = _, g, m, y, b;
5395
+ var v = [], _ = l.length, p = _, g, m, b, y;
5389
5396
  for (g = function(S, j) {
5390
5397
  j.length && v.push(S), p--, p || h(v);
5391
5398
  }; _--; ) {
5392
- if (m = l[_], y = o[m], y) {
5393
- g(m, y);
5399
+ if (m = l[_], b = o[m], b) {
5400
+ g(m, b);
5394
5401
  continue;
5395
5402
  }
5396
- b = a[m] = a[m] || [], b.push(g);
5403
+ y = a[m] = a[m] || [], y.push(g);
5397
5404
  }
5398
5405
  }
5399
5406
  function i(l, h) {
@@ -5408,40 +5415,40 @@ function vv() {
5408
5415
  l.call && (l = { success: l }), h.length ? (l.error || r)(h) : (l.success || r)(l);
5409
5416
  }
5410
5417
  function u(l, h, v, _) {
5411
- var p = document, g = v.async, m = (v.numRetries || 0) + 1, y = v.before || r, b = l.replace(/[\?|#].*$/, ""), S = l.replace(/^(css|img|module|nomodule)!/, ""), j, N, $;
5412
- if (_ = _ || 0, /(^css!|\.css$)/.test(b))
5413
- $ = p.createElement("link"), $.rel = "stylesheet", $.href = S, j = "hideFocus" in $, j && $.relList && (j = 0, $.rel = "preload", $.as = "style");
5414
- else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(b))
5415
- $ = p.createElement("img"), $.src = S;
5416
- else if ($ = p.createElement("script"), $.src = S, $.async = g === void 0 ? !0 : g, N = "noModule" in $, /^module!/.test(b)) {
5418
+ var p = document, g = v.async, m = (v.numRetries || 0) + 1, b = v.before || r, y = l.replace(/[\?|#].*$/, ""), S = l.replace(/^(css|img|module|nomodule)!/, ""), j, N, w;
5419
+ if (_ = _ || 0, /(^css!|\.css$)/.test(y))
5420
+ w = p.createElement("link"), w.rel = "stylesheet", w.href = S, j = "hideFocus" in w, j && w.relList && (j = 0, w.rel = "preload", w.as = "style");
5421
+ else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(y))
5422
+ w = p.createElement("img"), w.src = S;
5423
+ else if (w = p.createElement("script"), w.src = S, w.async = g === void 0 ? !0 : g, N = "noModule" in w, /^module!/.test(y)) {
5417
5424
  if (!N) return h(l, "l");
5418
- $.type = "module";
5419
- } else if (/^nomodule!/.test(b) && N) return h(l, "l");
5420
- $.onload = $.onerror = $.onbeforeload = function(F) {
5421
- var ht = F.type[0];
5425
+ w.type = "module";
5426
+ } else if (/^nomodule!/.test(y) && N) return h(l, "l");
5427
+ w.onload = w.onerror = w.onbeforeload = function(V) {
5428
+ var ht = V.type[0];
5422
5429
  if (j)
5423
5430
  try {
5424
- $.sheet.cssText.length || (ht = "e");
5431
+ w.sheet.cssText.length || (ht = "e");
5425
5432
  } catch (gt) {
5426
5433
  gt.code != 18 && (ht = "e");
5427
5434
  }
5428
5435
  if (ht == "e") {
5429
5436
  if (_ += 1, _ < m)
5430
5437
  return u(l, h, v, _);
5431
- } else if ($.rel == "preload" && $.as == "style")
5432
- return $.rel = "stylesheet";
5433
- h(l, ht, F.defaultPrevented);
5434
- }, y(l, $) !== !1 && p.head.appendChild($);
5438
+ } else if (w.rel == "preload" && w.as == "style")
5439
+ return w.rel = "stylesheet";
5440
+ h(l, ht, V.defaultPrevented);
5441
+ }, b(l, w) !== !1 && p.head.appendChild(w);
5435
5442
  }
5436
5443
  function d(l, h, v) {
5437
5444
  l = l.push ? l : [l];
5438
- var _ = l.length, p = _, g = [], m, y;
5439
- for (m = function(b, S, j) {
5440
- if (S == "e" && g.push(b), S == "b")
5441
- if (j) g.push(b);
5445
+ var _ = l.length, p = _, g = [], m, b;
5446
+ for (m = function(y, S, j) {
5447
+ if (S == "e" && g.push(y), S == "b")
5448
+ if (j) g.push(y);
5442
5449
  else return;
5443
5450
  _--, _ || h(g);
5444
- }, y = 0; y < p; y++) u(l[y], m, v);
5451
+ }, b = 0; b < p; b++) u(l[b], m, v);
5445
5452
  }
5446
5453
  function f(l, h, v) {
5447
5454
  var _, p;
@@ -5450,9 +5457,9 @@ function vv() {
5450
5457
  throw "LoadJS";
5451
5458
  n[_] = !0;
5452
5459
  }
5453
- function g(m, y) {
5454
- d(l, function(b) {
5455
- c(p, b), m && c({ success: m, error: y }, b), i(_, b);
5460
+ function g(m, b) {
5461
+ d(l, function(y) {
5462
+ c(p, y), m && c({ success: m, error: b }, y), i(_, y);
5456
5463
  }, p);
5457
5464
  }
5458
5465
  if (p.returnPromise) return new Promise(g);
@@ -5476,11 +5483,11 @@ var mv = vv();
5476
5483
  const no = /* @__PURE__ */ sv(mv);
5477
5484
  class Tv {
5478
5485
  constructor(e, r) {
5479
- w(this, "assets");
5480
- w(this, "loadStatus");
5481
- w(this, "win", window);
5482
- w(this, "_onSuccessList", []);
5483
- w(this, "_onErrorList", []);
5486
+ $(this, "assets");
5487
+ $(this, "loadStatus");
5488
+ $(this, "win", window);
5489
+ $(this, "_onSuccessList", []);
5490
+ $(this, "_onErrorList", []);
5484
5491
  this.assets = JSON.parse(JSON.stringify(e || [])), this.loadStatus = "INIT", r != null && r.window && (this.win = r.window);
5485
5492
  }
5486
5493
  load(e) {
@@ -5535,11 +5542,11 @@ export {
5535
5542
  zu as compWrapper,
5536
5543
  se as convertCodeStringToFunction,
5537
5544
  Ju as findComponentByChainRefer,
5538
- wv as flatObject,
5545
+ $v as flatObject,
5539
5546
  ku as formatSourceStylePropertyName,
5540
5547
  za as getAdapter,
5541
5548
  Ov as getCSSTextValue,
5542
- $v as getComponentsLibs,
5549
+ wv as getComponentsLibs,
5543
5550
  bn as getInheritObj,
5544
5551
  Hu as getMatchVal,
5545
5552
  yn as getNodeCssClassName,