@chamn/render 0.8.6 → 0.9.0

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 Ba = Object.defineProperty;
2
2
  var Ga = (t, e, r) => e in t ? Ba(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var E = (t, e, r) => Ga(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var w = (t, e, r) => Ga(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import x, { Component as ka, createElement as Ha, useEffect as co, useRef as uo, useMemo as lo } from "react";
5
5
  const za = (t) => () => {
6
6
  console.warn(`${t} need to be implement getComponent`);
@@ -64,7 +64,7 @@ function ho(t) {
64
64
  var e = t + "";
65
65
  return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
66
66
  }
67
- function wt(t) {
67
+ function Et(t) {
68
68
  var e = typeof t;
69
69
  return t != null && (e == "object" || e == "function");
70
70
  }
@@ -73,7 +73,7 @@ function go(t) {
73
73
  }
74
74
  var ss = "[object AsyncFunction]", is = "[object Function]", cs = "[object GeneratorFunction]", us = "[object Proxy]";
75
75
  function hr(t) {
76
- if (!wt(t))
76
+ if (!Et(t))
77
77
  return !1;
78
78
  var e = Ot(t);
79
79
  return e == is || e == cs || e == ss || e == us;
@@ -86,7 +86,7 @@ function ls(t) {
86
86
  return !!Yr && Yr in t;
87
87
  }
88
88
  var fs = Function.prototype, ds = fs.toString;
89
- function Et(t) {
89
+ function wt(t) {
90
90
  if (t != null) {
91
91
  try {
92
92
  return ds.call(t);
@@ -103,10 +103,10 @@ var ps = /[\\^$.*+?()[\]{}|]/g, hs = /^\[object .+?Constructor\]$/, gs = Functio
103
103
  "^" + ms.call(ys).replace(ps, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
104
104
  );
105
105
  function _s(t) {
106
- if (!wt(t) || ls(t))
106
+ if (!Et(t) || ls(t))
107
107
  return !1;
108
108
  var e = hr(t) ? bs : hs;
109
- return e.test(Et(t));
109
+ return e.test(wt(t));
110
110
  }
111
111
  function Ss(t, e) {
112
112
  return t == null ? void 0 : t[e];
@@ -119,7 +119,7 @@ var ze = Ct(X, "WeakMap"), Xr = Object.create, Os = /* @__PURE__ */ function() {
119
119
  function t() {
120
120
  }
121
121
  return function(e) {
122
- if (!wt(e))
122
+ if (!Et(e))
123
123
  return {};
124
124
  if (Xr)
125
125
  return Xr(e);
@@ -128,7 +128,7 @@ var ze = Ct(X, "WeakMap"), Xr = Object.create, Os = /* @__PURE__ */ function() {
128
128
  return t.prototype = void 0, r;
129
129
  };
130
130
  }();
131
- function ws(t, e, r) {
131
+ function Es(t, e, r) {
132
132
  switch (r.length) {
133
133
  case 0:
134
134
  return t.call(e);
@@ -141,7 +141,7 @@ function ws(t, e, r) {
141
141
  }
142
142
  return t.apply(e, r);
143
143
  }
144
- function Es(t, e) {
144
+ function ws(t, e) {
145
145
  var r = -1, n = t.length;
146
146
  for (e || (e = Array(n)); ++r < n; )
147
147
  e[r] = t[r];
@@ -216,7 +216,7 @@ function Fs(t, e, r) {
216
216
  o = -1;
217
217
  for (var i = Array(e + 1); ++o < e; )
218
218
  i[o] = n[o];
219
- return i[e] = r(s), ws(t, this, i);
219
+ return i[e] = r(s), Es(t, this, i);
220
220
  };
221
221
  }
222
222
  function Vs(t, e) {
@@ -226,14 +226,14 @@ var Us = 9007199254740991;
226
226
  function mo(t) {
227
227
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Us;
228
228
  }
229
- function we(t) {
229
+ function Ee(t) {
230
230
  return t != null && mo(t.length) && !hr(t);
231
231
  }
232
232
  function Bs(t, e, r) {
233
- if (!wt(r))
233
+ if (!Et(r))
234
234
  return !1;
235
235
  var n = typeof e;
236
- return (n == "number" ? we(r) && vo(e, r.length) : n == "string" && e in r) ? se(r[e], t) : !1;
236
+ return (n == "number" ? Ee(r) && vo(e, r.length) : n == "string" && e in r) ? se(r[e], t) : !1;
237
237
  }
238
238
  function Gs(t) {
239
239
  return Vs(function(e, r) {
@@ -278,13 +278,13 @@ function Oi(t) {
278
278
  return t(e);
279
279
  };
280
280
  }
281
- var _o = typeof exports == "object" && exports && !exports.nodeType && exports, qt = _o && typeof module == "object" && module && !module.nodeType && module, wi = qt && qt.exports === _o, Ie = wi && fo.process, nn = function() {
281
+ var _o = typeof exports == "object" && exports && !exports.nodeType && exports, qt = _o && typeof module == "object" && module && !module.nodeType && module, Ei = qt && qt.exports === _o, Ie = Ei && fo.process, nn = function() {
282
282
  try {
283
283
  var t = qt && qt.require && qt.require("util").types;
284
284
  return t || Ie && Ie.binding && Ie.binding("util");
285
285
  } catch {
286
286
  }
287
- }(), on = nn && nn.isTypedArray, mr = on ? Oi(on) : Si, Ei = Object.prototype, Ci = Ei.hasOwnProperty;
287
+ }(), on = nn && nn.isTypedArray, mr = on ? Oi(on) : Si, wi = Object.prototype, Ci = wi.hasOwnProperty;
288
288
  function So(t, e) {
289
289
  var r = ot(t), n = !r && Je(t), o = !r && !n && ve(t), a = !r && !n && !o && mr(t), s = r || n || o || a, i = s ? Hs(t.length, String) : [], c = i.length;
290
290
  for (var u in t)
@@ -310,7 +310,7 @@ function xi(t) {
310
310
  return e;
311
311
  }
312
312
  function Ai(t) {
313
- return we(t) ? So(t) : xi(t);
313
+ return Ee(t) ? So(t) : xi(t);
314
314
  }
315
315
  function Ti(t) {
316
316
  var e = [];
@@ -321,15 +321,15 @@ function Ti(t) {
321
321
  }
322
322
  var Ri = Object.prototype, Pi = Ri.hasOwnProperty;
323
323
  function Mi(t) {
324
- if (!wt(t))
324
+ if (!Et(t))
325
325
  return Ti(t);
326
326
  var e = vr(t), r = [];
327
327
  for (var n in t)
328
328
  n == "constructor" && (e || !Pi.call(t, n)) || r.push(n);
329
329
  return r;
330
330
  }
331
- function wo(t) {
332
- return we(t) ? So(t, !0) : Mi(t);
331
+ function Eo(t) {
332
+ return Ee(t) ? So(t, !0) : Mi(t);
333
333
  }
334
334
  var Yt = Ct(Object, "create");
335
335
  function Ii() {
@@ -373,7 +373,7 @@ bt.prototype.set = zi;
373
373
  function Ji() {
374
374
  this.__data__ = [], this.size = 0;
375
375
  }
376
- function Ee(t, e) {
376
+ function we(t, e) {
377
377
  for (var r = t.length; r--; )
378
378
  if (se(t[r][0], e))
379
379
  return r;
@@ -381,21 +381,21 @@ function Ee(t, e) {
381
381
  }
382
382
  var qi = Array.prototype, Wi = qi.splice;
383
383
  function Ki(t) {
384
- var e = this.__data__, r = Ee(e, t);
384
+ var e = this.__data__, r = we(e, t);
385
385
  if (r < 0)
386
386
  return !1;
387
387
  var n = e.length - 1;
388
388
  return r == n ? e.pop() : Wi.call(e, r, 1), --this.size, !0;
389
389
  }
390
390
  function Qi(t) {
391
- var e = this.__data__, r = Ee(e, t);
391
+ var e = this.__data__, r = we(e, t);
392
392
  return r < 0 ? void 0 : e[r][1];
393
393
  }
394
394
  function Yi(t) {
395
- return Ee(this.__data__, t) > -1;
395
+ return we(this.__data__, t) > -1;
396
396
  }
397
397
  function Xi(t, e) {
398
- var r = this.__data__, n = Ee(r, t);
398
+ var r = this.__data__, n = we(r, t);
399
399
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
400
400
  }
401
401
  function at(t) {
@@ -452,7 +452,7 @@ $t.prototype.delete = ec;
452
452
  $t.prototype.get = rc;
453
453
  $t.prototype.has = nc;
454
454
  $t.prototype.set = oc;
455
- function Eo(t) {
455
+ function wo(t) {
456
456
  return t == null ? "" : ho(t);
457
457
  }
458
458
  function ac(t, e) {
@@ -488,7 +488,7 @@ function jo(t) {
488
488
  function Sc(t) {
489
489
  return t.split("");
490
490
  }
491
- var No = "\\ud800-\\udfff", Oc = "\\u0300-\\u036f", wc = "\\ufe20-\\ufe2f", Ec = "\\u20d0-\\u20ff", Cc = Oc + wc + Ec, $c = "\\ufe0e\\ufe0f", jc = "[" + No + "]", qe = "[" + Cc + "]", We = "\\ud83c[\\udffb-\\udfff]", Nc = "(?:" + qe + "|" + We + ")", xo = "[^" + No + "]", Ao = "(?:\\ud83c[\\udde6-\\uddff]){2}", To = "[\\ud800-\\udbff][\\udc00-\\udfff]", xc = "\\u200d", Ro = Nc + "?", Po = "[" + $c + "]?", Ac = "(?:" + xc + "(?:" + [xo, Ao, To].join("|") + ")" + Po + Ro + ")*", Tc = Po + Ro + Ac, Rc = "(?:" + [xo + qe + "?", qe, Ao, To, jc].join("|") + ")", Pc = RegExp(We + "(?=" + We + ")|" + Rc + Tc, "g");
491
+ var No = "\\ud800-\\udfff", Oc = "\\u0300-\\u036f", Ec = "\\ufe20-\\ufe2f", wc = "\\u20d0-\\u20ff", Cc = Oc + Ec + wc, $c = "\\ufe0e\\ufe0f", jc = "[" + No + "]", qe = "[" + Cc + "]", We = "\\ud83c[\\udffb-\\udfff]", Nc = "(?:" + qe + "|" + We + ")", xo = "[^" + No + "]", Ao = "(?:\\ud83c[\\udde6-\\uddff]){2}", To = "[\\ud800-\\udbff][\\udc00-\\udfff]", xc = "\\u200d", Ro = Nc + "?", Po = "[" + $c + "]?", Ac = "(?:" + xc + "(?:" + [xo, Ao, To].join("|") + ")" + Po + Ro + ")*", Tc = Po + Ro + Ac, Rc = "(?:" + [xo + qe + "?", qe, Ao, To, jc].join("|") + ")", Pc = RegExp(We + "(?=" + We + ")|" + Rc + Tc, "g");
492
492
  function Mc(t) {
493
493
  return t.match(Pc) || [];
494
494
  }
@@ -497,14 +497,14 @@ function Ic(t) {
497
497
  }
498
498
  function Dc(t) {
499
499
  return function(e) {
500
- e = Eo(e);
500
+ e = wo(e);
501
501
  var r = jo(e) ? Ic(e) : void 0, n = r ? r[0] : e.charAt(0), o = r ? dc(r, 1).join("") : e.slice(1);
502
502
  return n[t]() + o;
503
503
  };
504
504
  }
505
505
  var Lc = Dc("toUpperCase");
506
506
  function Fc(t) {
507
- return Lc(Eo(t).toLowerCase());
507
+ return Lc(wo(t).toLowerCase());
508
508
  }
509
509
  function Vc() {
510
510
  this.__data__ = new at(), this.size = 0;
@@ -566,9 +566,9 @@ function Xc(t, e, r) {
566
566
  function un(t) {
567
567
  return Xc(t, Ai, Yc);
568
568
  }
569
- var Ke = Ct(X, "DataView"), Qe = Ct(X, "Promise"), Ye = Ct(X, "Set"), ln = "[object Map]", Zc = "[object Object]", fn = "[object Promise]", dn = "[object Set]", pn = "[object WeakMap]", hn = "[object DataView]", tu = Et(Ke), eu = Et(Xt), ru = Et(Qe), nu = Et(Ye), ou = Et(ze), ut = Ot;
569
+ var Ke = Ct(X, "DataView"), Qe = Ct(X, "Promise"), Ye = Ct(X, "Set"), ln = "[object Map]", Zc = "[object Object]", fn = "[object Promise]", dn = "[object Set]", pn = "[object WeakMap]", hn = "[object DataView]", tu = wt(Ke), eu = wt(Xt), ru = wt(Qe), nu = wt(Ye), ou = wt(ze), ut = Ot;
570
570
  (Ke && ut(new Ke(new ArrayBuffer(1))) != hn || Xt && ut(new Xt()) != ln || Qe && ut(Qe.resolve()) != fn || Ye && ut(new Ye()) != dn || ze && ut(new ze()) != pn) && (ut = function(t) {
571
- var e = Ot(t), r = e == Zc ? t.constructor : void 0, n = r ? Et(r) : "";
571
+ var e = Ot(t), r = e == Zc ? t.constructor : void 0, n = r ? wt(r) : "";
572
572
  if (n)
573
573
  switch (n) {
574
574
  case tu:
@@ -665,7 +665,7 @@ function vu(t) {
665
665
  r[++e] = n;
666
666
  }), r;
667
667
  }
668
- var mu = 1, yu = 2, bu = "[object Boolean]", _u = "[object Date]", Su = "[object Error]", Ou = "[object Map]", wu = "[object Number]", Eu = "[object RegExp]", Cu = "[object Set]", $u = "[object String]", ju = "[object Symbol]", Nu = "[object ArrayBuffer]", xu = "[object DataView]", gn = lt ? lt.prototype : void 0, De = gn ? gn.valueOf : void 0;
668
+ var mu = 1, yu = 2, bu = "[object Boolean]", _u = "[object Date]", Su = "[object Error]", Ou = "[object Map]", Eu = "[object Number]", wu = "[object RegExp]", Cu = "[object Set]", $u = "[object String]", ju = "[object Symbol]", Nu = "[object ArrayBuffer]", xu = "[object DataView]", gn = lt ? lt.prototype : void 0, De = gn ? gn.valueOf : void 0;
669
669
  function Au(t, e, r, n, o, a, s) {
670
670
  switch (r) {
671
671
  case xu:
@@ -676,11 +676,11 @@ function Au(t, e, r, n, o, a, s) {
676
676
  return !(t.byteLength != e.byteLength || !a(new me(t), new me(e)));
677
677
  case bu:
678
678
  case _u:
679
- case wu:
679
+ case Eu:
680
680
  return se(+t, +e);
681
681
  case Su:
682
682
  return t.name == e.name && t.message == e.message;
683
- case Eu:
683
+ case wu:
684
684
  case $u:
685
685
  return t == e + "";
686
686
  case Ou:
@@ -772,14 +772,14 @@ function Xe(t, e, r) {
772
772
  (r !== void 0 && !se(t[e], r) || r === void 0 && !(e in t)) && gr(t, e, r);
773
773
  }
774
774
  function Uu(t) {
775
- return ft(t) && we(t);
775
+ return ft(t) && Ee(t);
776
776
  }
777
777
  function Ze(t, e) {
778
778
  if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
779
779
  return t[e];
780
780
  }
781
781
  function Bu(t) {
782
- return Ls(t, wo(t));
782
+ return Ls(t, Eo(t));
783
783
  }
784
784
  function Gu(t, e, r, n, o, a, s) {
785
785
  var i = Ze(t, r), c = Ze(e, r), u = s.get(c);
@@ -790,19 +790,19 @@ function Gu(t, e, r, n, o, a, s) {
790
790
  var d = a ? a(i, c, r + "", t, e, s) : void 0, l = d === void 0;
791
791
  if (l) {
792
792
  var f = ot(c), h = !f && ve(c), g = !f && !h && mr(c);
793
- d = c, f || h || g ? ot(i) ? d = i : Uu(i) ? d = Es(i) : h ? (l = !1, d = Jc(c)) : g ? (l = !1, d = su(c)) : d = [] : Ft(c) || Je(c) ? (d = i, Je(i) ? d = Bu(i) : (!wt(i) || hr(i)) && (d = iu(c))) : l = !1;
793
+ d = c, f || h || g ? ot(i) ? d = i : Uu(i) ? d = ws(i) : h ? (l = !1, d = Jc(c)) : g ? (l = !1, d = su(c)) : d = [] : Ft(c) || Je(c) ? (d = i, Je(i) ? d = Bu(i) : (!Et(i) || hr(i)) && (d = iu(c))) : l = !1;
794
794
  }
795
795
  l && (s.set(c, d), o(d, c, n, a, s), s.delete(c)), Xe(t, r, d);
796
796
  }
797
797
  function Lo(t, e, r, n, o) {
798
798
  t !== e && Vu(e, function(a, s) {
799
- if (o || (o = new nt()), wt(a))
799
+ if (o || (o = new nt()), Et(a))
800
800
  Gu(t, e, s, r, Lo, n, o);
801
801
  else {
802
802
  var i = n ? n(Ze(t, s), a, s + "", t, e, o) : void 0;
803
803
  i === void 0 && (i = a), Xe(t, s, i);
804
804
  }
805
- }, wo);
805
+ }, Eo);
806
806
  }
807
807
  function ku(t, e) {
808
808
  return Do(t, e);
@@ -1013,7 +1013,7 @@ ${bn("$U_STATE", {
1013
1013
  }, Xu = (t) => t ? On(t) : On;
1014
1014
  class Zu {
1015
1015
  constructor() {
1016
- E(this, "storeMap", /* @__PURE__ */ new Map());
1016
+ w(this, "storeMap", /* @__PURE__ */ new Map());
1017
1017
  }
1018
1018
  addStore(e, r) {
1019
1019
  const n = Xu(r);
@@ -1064,7 +1064,7 @@ class Zu {
1064
1064
  }
1065
1065
  class tl {
1066
1066
  constructor() {
1067
- E(this, "varSpace", /* @__PURE__ */ new Map());
1067
+ w(this, "varSpace", /* @__PURE__ */ new Map());
1068
1068
  }
1069
1069
  get(e) {
1070
1070
  return this.varSpace.get(e);
@@ -1087,7 +1087,7 @@ class tl {
1087
1087
  }
1088
1088
  class Uo {
1089
1089
  constructor() {
1090
- E(this, "refMap", /* @__PURE__ */ new Map());
1090
+ w(this, "refMap", /* @__PURE__ */ new Map());
1091
1091
  }
1092
1092
  get(e) {
1093
1093
  return this.refMap.get(e);
@@ -1117,9 +1117,9 @@ var il = Object.prototype, cl = il.toString;
1117
1117
  function ul(t) {
1118
1118
  return cl.call(t);
1119
1119
  }
1120
- var ll = "[object Null]", fl = "[object Undefined]", wn = J ? J.toStringTag : void 0;
1120
+ var ll = "[object Null]", fl = "[object Undefined]", En = J ? J.toStringTag : void 0;
1121
1121
  function jt(t) {
1122
- return t == null ? t === void 0 ? fl : ll : wn && wn in Object(t) ? sl(t) : ul(t);
1122
+ return t == null ? t === void 0 ? fl : ll : En && En in Object(t) ? sl(t) : ul(t);
1123
1123
  }
1124
1124
  function Y(t) {
1125
1125
  return t != null && typeof t == "object";
@@ -1133,7 +1133,7 @@ function br(t, e) {
1133
1133
  o[r] = e(t[r], r, t);
1134
1134
  return o;
1135
1135
  }
1136
- var L = Array.isArray, En = J ? J.prototype : void 0, Cn = En ? En.toString : void 0;
1136
+ var L = Array.isArray, wn = J ? J.prototype : void 0, Cn = wn ? wn.toString : void 0;
1137
1137
  function ko(t) {
1138
1138
  if (typeof t == "string")
1139
1139
  return t;
@@ -1179,8 +1179,8 @@ function Nt(t) {
1179
1179
  }
1180
1180
  return "";
1181
1181
  }
1182
- var _l = /[\\^$.*+?()[\]{}|]/g, Sl = /^\[object .+?Constructor\]$/, Ol = Function.prototype, wl = Object.prototype, El = Ol.toString, Cl = wl.hasOwnProperty, $l = RegExp(
1183
- "^" + El.call(Cl).replace(_l, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1182
+ var _l = /[\\^$.*+?()[\]{}|]/g, Sl = /^\[object .+?Constructor\]$/, Ol = Function.prototype, El = Object.prototype, wl = Ol.toString, Cl = El.hasOwnProperty, $l = RegExp(
1183
+ "^" + wl.call(Cl).replace(_l, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1184
1184
  );
1185
1185
  function jl(t) {
1186
1186
  if (!Q(t) || ml(t))
@@ -1305,7 +1305,7 @@ function ce(t, e) {
1305
1305
  return t === e || t !== t && e !== e;
1306
1306
  }
1307
1307
  var Jl = Object.prototype, ql = Jl.hasOwnProperty;
1308
- function wr(t, e, r) {
1308
+ function Er(t, e, r) {
1309
1309
  var n = t[e];
1310
1310
  (!(ql.call(t, e) && ce(n, r)) || r === void 0 && !(e in t)) && Or(t, e, r);
1311
1311
  }
@@ -1314,7 +1314,7 @@ function Vt(t, e, r, n) {
1314
1314
  r || (r = {});
1315
1315
  for (var a = -1, s = e.length; ++a < s; ) {
1316
1316
  var i = e[a], c = void 0;
1317
- c === void 0 && (c = t[i]), o ? Or(r, i, c) : wr(r, i, c);
1317
+ c === void 0 && (c = t[i]), o ? Or(r, i, c) : Er(r, i, c);
1318
1318
  }
1319
1319
  return r;
1320
1320
  }
@@ -1333,11 +1333,11 @@ function qo(t, e) {
1333
1333
  return zo(Jo(t, e, _r), t + "");
1334
1334
  }
1335
1335
  var Wl = 9007199254740991;
1336
- function Er(t) {
1336
+ function wr(t) {
1337
1337
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Wl;
1338
1338
  }
1339
1339
  function je(t) {
1340
- return t != null && Er(t.length) && !Sr(t);
1340
+ return t != null && wr(t.length) && !Sr(t);
1341
1341
  }
1342
1342
  function Kl(t, e, r) {
1343
1343
  if (!Q(r))
@@ -1377,11 +1377,11 @@ var Wo = Object.prototype, tf = Wo.hasOwnProperty, ef = Wo.propertyIsEnumerable,
1377
1377
  function rf() {
1378
1378
  return !1;
1379
1379
  }
1380
- var Ko = typeof exports == "object" && exports && !exports.nodeType && exports, An = Ko && typeof module == "object" && module && !module.nodeType && module, nf = An && An.exports === Ko, Tn = nf ? Z.Buffer : void 0, of = Tn ? Tn.isBuffer : void 0, te = of || rf, af = "[object Arguments]", sf = "[object Array]", cf = "[object Boolean]", uf = "[object Date]", lf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]", vf = "[object Set]", mf = "[object String]", yf = "[object WeakMap]", bf = "[object ArrayBuffer]", _f = "[object DataView]", Sf = "[object Float32Array]", Of = "[object Float64Array]", wf = "[object Int8Array]", Ef = "[object Int16Array]", Cf = "[object Int32Array]", $f = "[object Uint8Array]", jf = "[object Uint8ClampedArray]", Nf = "[object Uint16Array]", xf = "[object Uint32Array]", M = {};
1381
- M[Sf] = M[Of] = M[wf] = M[Ef] = M[Cf] = M[$f] = M[jf] = M[Nf] = M[xf] = !0;
1380
+ var Ko = typeof exports == "object" && exports && !exports.nodeType && exports, An = Ko && typeof module == "object" && module && !module.nodeType && module, nf = An && An.exports === Ko, Tn = nf ? Z.Buffer : void 0, of = Tn ? Tn.isBuffer : void 0, te = of || rf, af = "[object Arguments]", sf = "[object Array]", cf = "[object Boolean]", uf = "[object Date]", lf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]", vf = "[object Set]", mf = "[object String]", yf = "[object WeakMap]", bf = "[object ArrayBuffer]", _f = "[object DataView]", Sf = "[object Float32Array]", Of = "[object Float64Array]", Ef = "[object Int8Array]", wf = "[object Int16Array]", Cf = "[object Int32Array]", $f = "[object Uint8Array]", jf = "[object Uint8ClampedArray]", Nf = "[object Uint16Array]", xf = "[object Uint32Array]", M = {};
1381
+ M[Sf] = M[Of] = M[Ef] = M[wf] = M[Cf] = M[$f] = M[jf] = M[Nf] = M[xf] = !0;
1382
1382
  M[af] = M[sf] = M[bf] = M[cf] = M[_f] = M[uf] = M[lf] = M[ff] = M[df] = M[pf] = M[hf] = M[gf] = M[vf] = M[mf] = M[yf] = !1;
1383
1383
  function Af(t) {
1384
- return Y(t) && Er(t.length) && !!M[jt(t)];
1384
+ return Y(t) && wr(t.length) && !!M[jt(t)];
1385
1385
  }
1386
1386
  function $r(t) {
1387
1387
  return function(e) {
@@ -1639,12 +1639,12 @@ function Od(t) {
1639
1639
  var e = t == null ? 0 : t.length;
1640
1640
  return e ? ta(t) : [];
1641
1641
  }
1642
- function wd(t) {
1642
+ function Ed(t) {
1643
1643
  return zo(Jo(t, void 0, Od), t + "");
1644
1644
  }
1645
- var Tr = Xo(Object.getPrototypeOf, Object), Ed = "[object Object]", Cd = Function.prototype, $d = Object.prototype, ea = Cd.toString, jd = $d.hasOwnProperty, Nd = ea.call(Object);
1645
+ var Tr = Xo(Object.getPrototypeOf, Object), wd = "[object Object]", Cd = Function.prototype, $d = Object.prototype, ea = Cd.toString, jd = $d.hasOwnProperty, Nd = ea.call(Object);
1646
1646
  function U(t) {
1647
- if (!Y(t) || jt(t) != Ed)
1647
+ if (!Y(t) || jt(t) != wd)
1648
1648
  return !1;
1649
1649
  var e = Tr(t);
1650
1650
  if (e === null)
@@ -1787,7 +1787,7 @@ function ia(t, e) {
1787
1787
  return new t.constructor(r, t.byteOffset, t.length);
1788
1788
  }
1789
1789
  var op = "[object Boolean]", ap = "[object Date]", sp = "[object Map]", ip = "[object Number]", cp = "[object RegExp]", up = "[object Set]", lp = "[object String]", fp = "[object Symbol]", dp = "[object ArrayBuffer]", pp = "[object DataView]", hp = "[object Float32Array]", gp = "[object Float64Array]", vp = "[object Int8Array]", mp = "[object Int16Array]", yp = "[object Int32Array]", bp = "[object Uint8Array]", _p = "[object Uint8ClampedArray]", Sp = "[object Uint16Array]", Op = "[object Uint32Array]";
1790
- function wp(t, e, r) {
1790
+ function Ep(t, e, r) {
1791
1791
  var n = t.constructor;
1792
1792
  switch (e) {
1793
1793
  case dp:
@@ -1823,9 +1823,9 @@ function wp(t, e, r) {
1823
1823
  function ca(t) {
1824
1824
  return typeof t.constructor == "function" && !Cr(t) ? xl(Tr(t)) : {};
1825
1825
  }
1826
- var Ep = "[object Map]";
1826
+ var wp = "[object Map]";
1827
1827
  function Cp(t) {
1828
- return Y(t) && q(t) == Ep;
1828
+ return Y(t) && q(t) == wp;
1829
1829
  }
1830
1830
  var zn = Pt && Pt.isMap, $p = zn ? $r(zn) : Cp, jp = "[object Set]";
1831
1831
  function Np(t) {
@@ -1854,7 +1854,7 @@ function Kt(t, e, r, n, o, a) {
1854
1854
  } else {
1855
1855
  if (!R[l])
1856
1856
  return o ? t : {};
1857
- s = wp(t, l, i);
1857
+ s = Ep(t, l, i);
1858
1858
  }
1859
1859
  }
1860
1860
  a || (a = new W());
@@ -1868,7 +1868,7 @@ function Kt(t, e, r, n, o, a) {
1868
1868
  });
1869
1869
  var g = u ? c ? Pr : er : c ? ue : Ne, b = d ? void 0 : g(t);
1870
1870
  return Fl(b || t, function(p, v) {
1871
- b && (v = p, p = t[v]), wr(s, v, Kt(p, e, r, v, t, a));
1871
+ b && (v = p, p = t[v]), Er(s, v, Kt(p, e, r, v, t, a));
1872
1872
  }), s;
1873
1873
  }
1874
1874
  var rh = 1, nh = 4;
@@ -1944,10 +1944,10 @@ function Ir(t) {
1944
1944
  r[++e] = n;
1945
1945
  }), r;
1946
1946
  }
1947
- var fh = 1, dh = 2, ph = "[object Boolean]", hh = "[object Date]", gh = "[object Error]", vh = "[object Map]", mh = "[object Number]", yh = "[object RegExp]", bh = "[object Set]", _h = "[object String]", Sh = "[object Symbol]", Oh = "[object ArrayBuffer]", wh = "[object DataView]", qn = J ? J.prototype : void 0, Ve = qn ? qn.valueOf : void 0;
1948
- function Eh(t, e, r, n, o, a, s) {
1947
+ var fh = 1, dh = 2, ph = "[object Boolean]", hh = "[object Date]", gh = "[object Error]", vh = "[object Map]", mh = "[object Number]", yh = "[object RegExp]", bh = "[object Set]", _h = "[object String]", Sh = "[object Symbol]", Oh = "[object ArrayBuffer]", Eh = "[object DataView]", qn = J ? J.prototype : void 0, Ve = qn ? qn.valueOf : void 0;
1948
+ function wh(t, e, r, n, o, a, s) {
1949
1949
  switch (r) {
1950
- case wh:
1950
+ case Eh:
1951
1951
  if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
1952
1952
  return !1;
1953
1953
  t = t.buffer, e = e.buffer;
@@ -2023,7 +2023,7 @@ function Th(t, e, r, n, o, a) {
2023
2023
  s = !0, d = !1;
2024
2024
  }
2025
2025
  if (f && !d)
2026
- return a || (a = new W()), s || jr(t) ? ha(t, e, r, n, o, a) : Eh(t, e, c, r, n, o, a);
2026
+ return a || (a = new W()), s || jr(t) ? ha(t, e, r, n, o, a) : wh(t, e, c, r, n, o, a);
2027
2027
  if (!(r & xh)) {
2028
2028
  var h = d && Qn.call(t, "__wrapped__"), g = l && Qn.call(e, "__wrapped__");
2029
2029
  if (h || g) {
@@ -2092,7 +2092,7 @@ function Fh(t, e, r) {
2092
2092
  break;
2093
2093
  t = t[s];
2094
2094
  }
2095
- return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && Er(o) && $e(s, o) && (L(t) || Zt(t)));
2095
+ return a || ++n != o ? a : (o = t == null ? 0 : t.length, !!o && wr(o) && $e(s, o) && (L(t) || Zt(t)));
2096
2096
  }
2097
2097
  function Vh(t, e) {
2098
2098
  return t != null && Fh(t, e, Lh);
@@ -2201,7 +2201,7 @@ function Zh(t, e) {
2201
2201
  function tg(t) {
2202
2202
  return U(t) ? void 0 : t;
2203
2203
  }
2204
- var eg = 1, rg = 2, ng = 4, _a = wd(function(t, e) {
2204
+ var eg = 1, rg = 2, ng = 4, _a = Ed(function(t, e) {
2205
2205
  var r = {};
2206
2206
  if (t == null)
2207
2207
  return r;
@@ -2225,7 +2225,7 @@ function og(t, e, r, n) {
2225
2225
  var d = i[c];
2226
2226
  u = void 0, u === void 0 && (u = Q(d) ? d : $e(e[o + 1]) ? [] : {});
2227
2227
  }
2228
- wr(i, c, u), i = i[c];
2228
+ Er(i, c, u), i = i[c];
2229
2229
  }
2230
2230
  return t;
2231
2231
  }
@@ -2491,7 +2491,7 @@ function Mt(t) {
2491
2491
  }
2492
2492
  });
2493
2493
  }
2494
- function wa(t, e) {
2494
+ function Ea(t, e) {
2495
2495
  const {
2496
2496
  schema: r
2497
2497
  } = t, n = {
@@ -2541,7 +2541,7 @@ function ir(t) {
2541
2541
  }
2542
2542
  });
2543
2543
  }
2544
- function Ea() {
2544
+ function wa() {
2545
2545
  return pt("func", (t) => typeof t == "function" || `Expected a function, but received: ${H(t)}`);
2546
2546
  }
2547
2547
  function G(t) {
@@ -2607,7 +2607,7 @@ function Qt(t, e) {
2607
2607
  }
2608
2608
  });
2609
2609
  }
2610
- function w() {
2610
+ function E() {
2611
2611
  return pt("string", (t) => typeof t == "string" || `Expected a string, but received: ${H(t)}`);
2612
2612
  }
2613
2613
  function $a(t) {
@@ -2656,35 +2656,35 @@ function _g() {
2656
2656
  return pt("unknown", () => !0);
2657
2657
  }
2658
2658
  const Ur = A({
2659
- package: w(),
2660
- version: w(),
2661
- name: w(),
2662
- exportName: O(w()),
2659
+ package: E(),
2660
+ version: E(),
2661
+ name: E(),
2662
+ exportName: O(E()),
2663
2663
  destructuring: O(St()),
2664
- subName: O(w()),
2665
- main: O(w()),
2666
- cssPaths: O(I(w()))
2664
+ subName: O(E()),
2665
+ main: O(E()),
2666
+ cssPaths: O(I(E()))
2667
2667
  }), Sg = I(Ur);
2668
2668
  var V = /* @__PURE__ */ ((t) => (t.SLOT = "SLOT", t.FUNCTION = "FUNCTION", t.EXPRESSION = "EXPRESSION", t.ACTION = "ACTION", t.EVENT = "EVENT", t))(V || {}), Br = /* @__PURE__ */ ((t) => (t.DESIGN = "design", t.SAVE = "save", t))(Br || {}), cr = /* @__PURE__ */ ((t) => (t.FUNC = "FUNC", t.COMP = "COMP", t))(cr || {});
2669
- const Og = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Qt(w(), Gr)), !0)), Gr = k([
2670
- w(),
2669
+ const Og = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTION].includes(t == null ? void 0 : t.type) ? !1 : (Gt(t, Qt(E(), Gr)), !0)), Gr = k([
2670
+ E(),
2671
2671
  Ca(),
2672
2672
  St(),
2673
2673
  A({
2674
2674
  type: G(V.SLOT),
2675
2675
  renderType: ir([cr.FUNC, cr.COMP]),
2676
2676
  // if renderType is Func, params will be useful
2677
- params: O(I(w())),
2677
+ params: O(I(E())),
2678
2678
  // here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
2679
2679
  value: Mt(() => k([It, I(It)]))
2680
2680
  }),
2681
2681
  A({
2682
2682
  type: G(V.EXPRESSION),
2683
- value: w()
2683
+ value: E()
2684
2684
  }),
2685
2685
  A({
2686
2686
  type: G(V.FUNCTION),
2687
- value: w()
2687
+ value: E()
2688
2688
  }),
2689
2689
  A({
2690
2690
  type: G(V.ACTION),
@@ -2699,60 +2699,60 @@ const Og = () => pt("normalObj", (t) => !U(t) || [V.SLOT, V.EXPRESSION, V.FUNCTI
2699
2699
  var ja = /* @__PURE__ */ ((t) => (t.COMPONENTS = "COMPONENTS", t))(ja || {});
2700
2700
  const Xn = A({
2701
2701
  type: G(V.EXPRESSION),
2702
- value: w()
2702
+ value: E()
2703
2703
  }), It = A({
2704
- id: O(w()),
2705
- title: O(w()),
2706
- componentName: w(),
2707
- props: O(Qt(w(), Gr)),
2708
- nodeName: O(w()),
2709
- state: O(Qt(w(), T())),
2710
- children: Mt(() => O(I(k([w(), It])))),
2704
+ id: O(E()),
2705
+ title: O(E()),
2706
+ componentName: E(),
2707
+ props: O(Qt(E(), Gr)),
2708
+ nodeName: O(E()),
2709
+ state: O(Qt(E(), T())),
2710
+ children: Mt(() => O(I(k([E(), It])))),
2711
2711
  eventListener: O(I(T())),
2712
2712
  configure: O(T()),
2713
2713
  css: O(T()),
2714
2714
  style: O(T()),
2715
2715
  classNames: O(I(T())),
2716
- refId: O(w()),
2716
+ refId: O(E()),
2717
2717
  extra: O(Qt(T(), T())),
2718
2718
  condition: O(k([St(), Xn])),
2719
2719
  loop: O(
2720
2720
  A({
2721
2721
  open: St(),
2722
2722
  data: k([I(T()), Xn]),
2723
- args: O(I(w())),
2724
- forName: O(w()),
2725
- forIndex: O(w()),
2723
+ args: O(I(E())),
2724
+ forName: O(E()),
2725
+ forIndex: O(E()),
2726
2726
  key: O(T()),
2727
- name: O(w())
2727
+ name: O(E())
2728
2728
  })
2729
2729
  ),
2730
2730
  injectEnvList: O(I(T())),
2731
2731
  methods: O(I(T()))
2732
2732
  }), Se = k([
2733
- w(),
2733
+ E(),
2734
2734
  A({
2735
- label: w(),
2736
- tip: O(w())
2735
+ label: E(),
2736
+ tip: O(E())
2737
2737
  })
2738
- ]), wg = A({
2738
+ ]), Eg = A({
2739
2739
  type: G(
2740
2740
  "shape"
2741
2741
  /* SHAPE */
2742
2742
  ),
2743
2743
  value: I(
2744
2744
  A({
2745
- name: w(),
2745
+ name: E(),
2746
2746
  title: Se,
2747
2747
  valueType: Mt(() => Re)
2748
2748
  })
2749
2749
  )
2750
- }), Eg = A({
2750
+ }), wg = A({
2751
2751
  type: G(
2752
2752
  "enums"
2753
2753
  /* ENUMS */
2754
2754
  ),
2755
- value: I(w())
2755
+ value: I(E())
2756
2756
  });
2757
2757
  A({
2758
2758
  type: G(
@@ -2782,13 +2782,13 @@ const Cg = A({
2782
2782
  "function"
2783
2783
  /* FUNCTION */
2784
2784
  ]),
2785
- wg,
2786
2785
  Eg,
2786
+ wg,
2787
2787
  Cg
2788
2788
  ]), $g = k([
2789
- w(),
2789
+ E(),
2790
2790
  A({
2791
- componentName: w(),
2791
+ componentName: E(),
2792
2792
  props: O(T()),
2793
2793
  /** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
2794
2794
  initialValue: O(T()),
@@ -2796,60 +2796,60 @@ const Cg = A({
2796
2796
  hiddenLabel: O(St())
2797
2797
  })
2798
2798
  ]), Ue = A({
2799
- name: w(),
2799
+ name: E(),
2800
2800
  title: Se,
2801
2801
  // 描述 name 对应值的类型
2802
2802
  valueType: Re,
2803
- description: O(w()),
2803
+ description: O(E()),
2804
2804
  defaultValue: T(),
2805
2805
  //用于产生 valueType 类型的值
2806
2806
  setters: O(I($g)),
2807
- condition: O(Ea())
2807
+ condition: O(wa())
2808
2808
  });
2809
- k([w(), Ea()]);
2809
+ k([E(), wa()]);
2810
2810
  var ur = /* @__PURE__ */ ((t) => (t.SINGLE = "single", t.GROUP = "group", t))(ur || {});
2811
2811
  k([
2812
- w(),
2812
+ E(),
2813
2813
  A({
2814
- event: w(),
2815
- name: O(w()),
2816
- describe: O(w()),
2814
+ event: E(),
2815
+ name: O(E()),
2816
+ describe: O(E()),
2817
2817
  params: O(
2818
2818
  I(
2819
2819
  A({
2820
- name: w(),
2821
- description: w(),
2822
- example: w()
2820
+ name: E(),
2821
+ description: E(),
2822
+ example: E()
2823
2823
  })
2824
2824
  )
2825
2825
  ),
2826
- template: O(w())
2826
+ template: O(E())
2827
2827
  })
2828
2828
  ]);
2829
2829
  const jg = A({
2830
- id: O(w()),
2831
- title: w(),
2832
- snapshot: k([w(), T()]),
2833
- snapshotText: O(w()),
2834
- description: O(w()),
2830
+ id: O(E()),
2831
+ title: E(),
2832
+ snapshot: k([E(), T()]),
2833
+ snapshotText: O(E()),
2834
+ description: O(E()),
2835
2835
  // 组件分类,用于搜索
2836
- tags: O(I(w())),
2836
+ tags: O(I(E())),
2837
2837
  // 分 tab 面板
2838
- groupName: O(w()),
2838
+ groupName: O(E()),
2839
2839
  // 分类
2840
- category: O(w()),
2841
- schema: Vr(wa(It, ["id"]), A({ componentName: O(w()) }))
2840
+ category: O(E()),
2841
+ schema: Vr(Ea(It, ["id"]), A({ componentName: O(E()) }))
2842
2842
  }), Ng = A({
2843
- componentName: w(),
2844
- title: w(),
2845
- screenshot: O(w()),
2846
- icon: O(w()),
2843
+ componentName: E(),
2844
+ title: E(),
2845
+ screenshot: O(E()),
2846
+ icon: O(E()),
2847
2847
  // 组件分类,用于搜索
2848
- tags: O(I(w())),
2848
+ tags: O(I(E())),
2849
2849
  // 分 tab 面板
2850
- groupName: O(w()),
2850
+ groupName: O(E()),
2851
2851
  // 分类
2852
- category: O(w()),
2852
+ category: O(E()),
2853
2853
  // 排序
2854
2854
  priority: O(Ca()),
2855
2855
  npm: O(Ur),
@@ -2883,16 +2883,16 @@ const jg = A({
2883
2883
  k([
2884
2884
  St(),
2885
2885
  A({
2886
- placeholder: w(),
2887
- width: w(),
2888
- height: w()
2886
+ placeholder: E(),
2887
+ width: E(),
2888
+ height: E()
2889
2889
  })
2890
2890
  ])
2891
2891
  ),
2892
2892
  disableEditorDragDom: O(T()),
2893
2893
  // 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
2894
2894
  isLayout: O(St()),
2895
- rootSelector: O(w()),
2895
+ rootSelector: O(E()),
2896
2896
  // selectionToolBarView: optional(func()),
2897
2897
  advanceCustom: O(T()),
2898
2898
  // 扩展配置
@@ -2929,9 +2929,9 @@ const jg = A({
2929
2929
  var rt = /* @__PURE__ */ ((t) => (t.ROOT_CONTAINER = "RootContainer", t))(rt || {});
2930
2930
  const Ag = A({
2931
2931
  type: G(V.FUNCTION),
2932
- value: w()
2932
+ value: E()
2933
2933
  }), Tg = Vr(
2934
- wa(It, ["componentName"]),
2934
+ Ea(It, ["componentName"]),
2935
2935
  A({
2936
2936
  componentName: G(
2937
2937
  "RootContainer"
@@ -3096,7 +3096,7 @@ const Mg = (t) => {
3096
3096
  n.props[a] = i;
3097
3097
  return;
3098
3098
  }
3099
- n.props[a] = new dt(a, i || "", {
3099
+ n.props[a] = new dt(a, i, {
3100
3100
  parent: e,
3101
3101
  materials: r
3102
3102
  });
@@ -3354,7 +3354,7 @@ class oe {
3354
3354
  });
3355
3355
  }
3356
3356
  }
3357
- const mt = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, xa = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, Ig = (t) => (t == null ? void 0 : t.type) === V.ACTION, et = () => Math.random().toString(32).slice(3, 9), Dg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", dr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Lg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Hr = (t) => ig(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : !e);
3357
+ const mt = (t) => (t == null ? void 0 : t.type) === V.EXPRESSION, xa = (t) => (t == null ? void 0 : t.type) === V.FUNCTION, Ig = (t) => (t == null ? void 0 : t.type) === V.ACTION, et = () => Math.random().toString(32).slice(3, 9), Dg = (t) => (t == null ? void 0 : t.nodeType) === "NODE", dr = (t) => (t == null ? void 0 : t.nodeType) === "PROP", Lg = (t) => (t == null ? void 0 : t.nodeType) === "SLOT", Hr = (t) => ig(t, (e) => U(e) ? !Object.keys(e).length : L(e) ? !e.length : e == null);
3358
3358
  function Fg(t, e) {
3359
3359
  const r = [t];
3360
3360
  for (; r.length; ) {
@@ -3516,16 +3516,16 @@ class Lt {
3516
3516
  }
3517
3517
  }
3518
3518
  const Gg = A({
3519
- version: O(w()),
3520
- name: O(w()),
3521
- css: O(w()),
3519
+ version: O(E()),
3520
+ name: O(E()),
3521
+ css: O(E()),
3522
3522
  lifecycle: O(T()),
3523
3523
  props: O(T()),
3524
3524
  methods: O(I(Ag)),
3525
3525
  componentsMeta: I(
3526
3526
  Vr(
3527
3527
  A({
3528
- componentName: w()
3528
+ componentName: E()
3529
3529
  }),
3530
3530
  Ur
3531
3531
  )
@@ -4006,31 +4006,31 @@ const yt = (t, e) => function(...r) {
4006
4006
  class h extends x.Component {
4007
4007
  constructor(p) {
4008
4008
  super(p);
4009
- E(this, "_CONDITION", !0);
4010
- E(this, "_DESIGN_BOX", !1);
4011
- E(this, "_NODE_MODEL", e);
4012
- E(this, "_NODE_ID", e.id);
4013
- E(this, "UNIQUE_ID", `${e.id}_${et()}`);
4014
- E(this, "targetComponentRef");
4015
- E(this, "listenerHandler", []);
4016
- E(this, "storeState");
4009
+ w(this, "_CONDITION", !0);
4010
+ w(this, "_DESIGN_BOX", !1);
4011
+ w(this, "_NODE_MODEL", e);
4012
+ w(this, "_NODE_ID", e.id);
4013
+ w(this, "UNIQUE_ID", `${e.id}_${et()}`);
4014
+ w(this, "targetComponentRef");
4015
+ w(this, "listenerHandler", []);
4016
+ w(this, "storeState");
4017
4017
  /** 存储清理 store 的监听函数 */
4018
- E(this, "storeListenDisposeList", []);
4018
+ w(this, "storeListenDisposeList", []);
4019
4019
  /** save dom and media css */
4020
- E(this, "domHeader");
4021
- E(this, "mediaStyleDomMap", {});
4020
+ w(this, "domHeader");
4021
+ w(this, "mediaStyleDomMap", {});
4022
4022
  /** 存储当前节点的一些变量和方法,不具有响应性 */
4023
- E(this, "variableSpace");
4024
- E(this, "nodeName");
4025
- E(this, "updateState", (p) => {
4023
+ w(this, "variableSpace");
4024
+ w(this, "nodeName");
4025
+ w(this, "updateState", (p) => {
4026
4026
  e.value.componentName === rt.ROOT_CONTAINER ? this.setState(p) : this.storeState.setState(p);
4027
4027
  });
4028
- E(this, "getStyleDomById", (p) => {
4028
+ w(this, "getStyleDomById", (p) => {
4029
4029
  const v = this.mediaStyleDomMap;
4030
4030
  let m = v[p];
4031
4031
  return m || (m = l.createElement("style"), v[p] = m), m.id = p, m;
4032
4032
  });
4033
- E(this, "addMediaCSS", () => {
4033
+ w(this, "addMediaCSS", () => {
4034
4034
  var m;
4035
4035
  let p = this.domHeader;
4036
4036
  if (p || (p = (m = l.getElementsByTagName("head")) == null ? void 0 : m[0], this.domHeader = p), !this.domHeader) {
@@ -4052,14 +4052,14 @@ const yt = (t, e) => function(...r) {
4052
4052
  });
4053
4053
  });
4054
4054
  });
4055
- E(this, "removeMediaCSS", () => {
4055
+ w(this, "removeMediaCSS", () => {
4056
4056
  const p = this.mediaStyleDomMap;
4057
4057
  Object.keys(p).forEach((v) => {
4058
4058
  var m;
4059
4059
  (m = this.domHeader) == null || m.removeChild(p[v]);
4060
4060
  }), this.mediaStyleDomMap = {};
4061
4061
  });
4062
- E(this, "rebuildNode", () => {
4062
+ w(this, "rebuildNode", () => {
4063
4063
  this.storeListenDisposeList.forEach((p) => p()), this.removeMediaCSS(), this.connectStore(), this.addMediaCSS(), this.forceUpdate();
4064
4064
  });
4065
4065
  this.targetComponentRef = x.createRef(), this.listenerHandler = [], this.state = e.value.state || {};
@@ -4399,27 +4399,27 @@ const yt = (t, e) => function(...r) {
4399
4399
  return p && p.open ? this.renderLoop() : this.renderCore();
4400
4400
  }
4401
4401
  }
4402
- return E(h, "__CP_TYPE__", Pe), h.displayName = `${e.value.componentName}Dynamic`, h;
4402
+ return w(h, "__CP_TYPE__", Pe), h.displayName = `${e.value.componentName}Dynamic`, h;
4403
4403
  };
4404
4404
  class Qg {
4405
4405
  constructor() {
4406
- E(this, "renderMode", "normal");
4407
- E(this, "components", {});
4408
- E(this, "storeManager", new Zu());
4406
+ w(this, "renderMode", "normal");
4407
+ w(this, "components", {});
4408
+ w(this, "storeManager", new Zu());
4409
4409
  // 存储节点的变量或者方法
4410
- E(this, "variableManager", new tl());
4411
- E(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4412
- E(this, "onGetRef");
4413
- E(this, "onGetComponent");
4414
- E(this, "onComponentMount");
4415
- E(this, "refManager", new Uo());
4416
- E(this, "onComponentDestroy");
4410
+ w(this, "variableManager", new tl());
4411
+ w(this, "runtimeComponentCache", /* @__PURE__ */ new Map());
4412
+ w(this, "onGetRef");
4413
+ w(this, "onGetComponent");
4414
+ w(this, "onComponentMount");
4415
+ w(this, "refManager", new Uo());
4416
+ w(this, "onComponentDestroy");
4417
4417
  /**
4418
4418
  * 处理 props 钩子, 可以统一拦截 node 的处理,并修改其值
4419
4419
  */
4420
- E(this, "processNodeConfigHook");
4420
+ w(this, "processNodeConfigHook");
4421
4421
  /** 请求 API */
4422
- E(this, "requestAPI", async (e) => {
4422
+ w(this, "requestAPI", async (e) => {
4423
4423
  throw console.log(e), new Error("Need to implement requestAPI for Render");
4424
4424
  });
4425
4425
  }
@@ -4772,14 +4772,14 @@ const ev = [
4772
4772
  class dv extends x.Component {
4773
4773
  constructor(r) {
4774
4774
  super(r);
4775
- E(this, "refManager");
4775
+ w(this, "refManager");
4776
4776
  // save component instance
4777
- E(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4778
- E(this, "onGetRef", (r, n, o) => {
4777
+ w(this, "dynamicComponentInstanceMap", /* @__PURE__ */ new Map());
4778
+ w(this, "onGetRef", (r, n, o) => {
4779
4779
  var a, s;
4780
4780
  (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);
4781
4781
  });
4782
- E(this, "rerender", (r) => {
4782
+ w(this, "rerender", (r) => {
4783
4783
  if (this.props.adapter.clear(), (r == null ? void 0 : r.nodeType) === "PAGE" && r)
4784
4784
  this.setState({
4785
4785
  pageModel: r
@@ -4846,7 +4846,7 @@ const Iv = () => {
4846
4846
  class pv extends x.Component {
4847
4847
  constructor(r) {
4848
4848
  super(r);
4849
- E(this, "onDoubleClick", () => {
4849
+ w(this, "onDoubleClick", () => {
4850
4850
  this.setState({
4851
4851
  hasError: !1,
4852
4852
  error: null
@@ -5079,7 +5079,7 @@ function bv(t) {
5079
5079
  }
5080
5080
  class _v {
5081
5081
  constructor() {
5082
- E(this, "instanceMap", /* @__PURE__ */ new Map());
5082
+ w(this, "instanceMap", /* @__PURE__ */ new Map());
5083
5083
  }
5084
5084
  get(e) {
5085
5085
  return this.instanceMap.get(e);
@@ -5138,11 +5138,11 @@ const Sv = (t) => {
5138
5138
  class Dv extends x.Component {
5139
5139
  constructor(r) {
5140
5140
  super(r);
5141
- E(this, "instanceManager", new _v());
5142
- E(this, "renderRef");
5143
- E(this, "dropPlaceholder", Sv);
5144
- E(this, "_components", {});
5145
- E(this, "onGetComponent", (r, n) => {
5141
+ w(this, "instanceManager", new _v());
5142
+ w(this, "renderRef");
5143
+ w(this, "dropPlaceholder", Sv);
5144
+ w(this, "_components", {});
5145
+ w(this, "onGetComponent", (r, n) => {
5146
5146
  var c, u;
5147
5147
  const o = this;
5148
5148
  let a = r;
@@ -5154,13 +5154,13 @@ class Dv extends x.Component {
5154
5154
  class i extends x.Component {
5155
5155
  constructor() {
5156
5156
  super(...arguments);
5157
- E(this, "_DESIGN_BOX", !0);
5158
- E(this, "_NODE_MODEL", n);
5159
- E(this, "_NODE_ID", n.id);
5160
- E(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5161
- E(this, "_STATUS");
5162
- E(this, "_design_target_component");
5163
- E(this, "_dom");
5157
+ w(this, "_DESIGN_BOX", !0);
5158
+ w(this, "_NODE_MODEL", n);
5159
+ w(this, "_NODE_ID", n.id);
5160
+ w(this, "_UNIQUE_ID", `${n.id}_${et()}`);
5161
+ w(this, "_STATUS");
5162
+ w(this, "_design_target_component");
5163
+ w(this, "_dom");
5164
5164
  }
5165
5165
  componentDidMount() {
5166
5166
  o.instanceManager.add(n.id, this);
@@ -5341,7 +5341,7 @@ const Pa = (t) => {
5341
5341
  };
5342
5342
  };
5343
5343
  var he = { exports: {} }, Ov = he.exports, so;
5344
- function wv() {
5344
+ function Ev() {
5345
5345
  return so || (so = 1, function(t, e) {
5346
5346
  (function(r, n) {
5347
5347
  t.exports = n();
@@ -5437,15 +5437,15 @@ function wv() {
5437
5437
  });
5438
5438
  }(he)), he.exports;
5439
5439
  }
5440
- var Ev = wv();
5441
- const io = /* @__PURE__ */ Yg(Ev);
5440
+ var wv = Ev();
5441
+ const io = /* @__PURE__ */ Yg(wv);
5442
5442
  class Fv {
5443
5443
  constructor(e, r) {
5444
- E(this, "assets");
5445
- E(this, "loadStatus");
5446
- E(this, "win", window);
5447
- E(this, "_onSuccessList", []);
5448
- E(this, "_onErrorList", []);
5444
+ w(this, "assets");
5445
+ w(this, "loadStatus");
5446
+ w(this, "win", window);
5447
+ w(this, "_onSuccessList", []);
5448
+ w(this, "_onErrorList", []);
5449
5449
  this.assets = JSON.parse(JSON.stringify(e || [])), this.loadStatus = "INIT", r != null && r.window && (this.win = r.window);
5450
5450
  }
5451
5451
  load(e) {