x-runtime-lib 0.4.14 → 0.4.15

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
@@ -48,8 +48,8 @@ const Gi = /* @__PURE__ */ new Set([
48
48
  function pn(n) {
49
49
  let s = "";
50
50
  for (let p = 0; p < n; p++) {
51
- const y = Math.floor(Math.random() * Ar.length);
52
- s += Ar[y];
51
+ const v = Math.floor(Math.random() * Ar.length);
52
+ s += Ar[v];
53
53
  }
54
54
  return s;
55
55
  }
@@ -87,11 +87,11 @@ function qi(n) {
87
87
  var s = Hi.call(n, Me), p = n[Me];
88
88
  try {
89
89
  n[Me] = void 0;
90
- var y = !0;
90
+ var v = !0;
91
91
  } catch {
92
92
  }
93
- var E = Ki.call(n);
94
- return y && (s ? n[Me] = p : delete n[Me]), E;
93
+ var g = Ki.call(n);
94
+ return v && (s ? n[Me] = p : delete n[Me]), g;
95
95
  }
96
96
  var Zi = Object.prototype, Qi = Zi.toString;
97
97
  function ea(n) {
@@ -167,8 +167,8 @@ var kt = de(q, "WeakMap"), Dr = Object.create, ga = /* @__PURE__ */ function() {
167
167
  };
168
168
  }();
169
169
  function ba(n, s) {
170
- var p = -1, y = n.length;
171
- for (s || (s = Array(y)); ++p < y; )
170
+ var p = -1, v = n.length;
171
+ for (s || (s = Array(v)); ++p < v; )
172
172
  s[p] = n[p];
173
173
  return s;
174
174
  }
@@ -180,7 +180,7 @@ var Fr = function() {
180
180
  }
181
181
  }();
182
182
  function ma(n, s) {
183
- for (var p = -1, y = n == null ? 0 : n.length; ++p < y && s(n[p], p, n) !== !1; )
183
+ for (var p = -1, v = n == null ? 0 : n.length; ++p < v && s(n[p], p, n) !== !1; )
184
184
  ;
185
185
  return n;
186
186
  }
@@ -202,15 +202,15 @@ function _n(n, s) {
202
202
  }
203
203
  var Ta = Object.prototype, Sa = Ta.hasOwnProperty;
204
204
  function En(n, s, p) {
205
- var y = n[s];
206
- (!(Sa.call(n, s) && _n(y, p)) || p === void 0 && !(s in n)) && yn(n, s, p);
205
+ var v = n[s];
206
+ (!(Sa.call(n, s) && _n(v, p)) || p === void 0 && !(s in n)) && yn(n, s, p);
207
207
  }
208
- function it(n, s, p, y) {
209
- var E = !p;
208
+ function it(n, s, p, v) {
209
+ var g = !p;
210
210
  p || (p = {});
211
211
  for (var O = -1, m = s.length; ++O < m; ) {
212
212
  var N = s[O], R = void 0;
213
- R === void 0 && (R = n[N]), E ? yn(p, N, R) : En(p, N, R);
213
+ R === void 0 && (R = n[N]), g ? yn(p, N, R) : En(p, N, R);
214
214
  }
215
215
  return p;
216
216
  }
@@ -227,9 +227,9 @@ function jt(n) {
227
227
  return n === p;
228
228
  }
229
229
  function xa(n, s) {
230
- for (var p = -1, y = Array(n); ++p < n; )
231
- y[p] = s(p);
232
- return y;
230
+ for (var p = -1, v = Array(n); ++p < n; )
231
+ v[p] = s(p);
232
+ return v;
233
233
  }
234
234
  var Ca = "[object Arguments]";
235
235
  function Lr(n) {
@@ -262,11 +262,11 @@ var Nn = typeof exports == "object" && exports && !exports.nodeType && exports,
262
262
  }
263
263
  }(), jr = Oe && Oe.isTypedArray, co = jr ? Bt(jr) : uo, fo = Object.prototype, lo = fo.hasOwnProperty;
264
264
  function Tn(n, s) {
265
- var p = Ut(n), y = !p && ka(n), E = !p && !y && On(n), O = !p && !y && !E && co(n), m = p || y || E || O, N = m ? xa(n.length, String) : [], R = N.length;
265
+ var p = Ut(n), v = !p && ka(n), g = !p && !v && On(n), O = !p && !v && !g && co(n), m = p || v || g || O, N = m ? xa(n.length, String) : [], R = N.length;
266
266
  for (var r in n)
267
267
  (s || lo.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
268
268
  (r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
269
- E && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
269
+ g && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
270
270
  O && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
271
271
  Na(r, R))) && N.push(r);
272
272
  return N;
@@ -300,8 +300,8 @@ function bo(n) {
300
300
  if (!Ye(n))
301
301
  return _o(n);
302
302
  var s = jt(n), p = [];
303
- for (var y in n)
304
- y == "constructor" && (s || !go.call(n, y)) || p.push(y);
303
+ for (var v in n)
304
+ v == "constructor" && (s || !go.call(n, v)) || p.push(v);
305
305
  return p;
306
306
  }
307
307
  function Gt(n) {
@@ -337,8 +337,8 @@ function Ao(n, s) {
337
337
  function pe(n) {
338
338
  var s = -1, p = n == null ? 0 : n.length;
339
339
  for (this.clear(); ++s < p; ) {
340
- var y = n[s];
341
- this.set(y[0], y[1]);
340
+ var v = n[s];
341
+ this.set(v[0], v[1]);
342
342
  }
343
343
  }
344
344
  pe.prototype.clear = mo;
@@ -360,8 +360,8 @@ function Fo(n) {
360
360
  var s = this.__data__, p = at(s, n);
361
361
  if (p < 0)
362
362
  return !1;
363
- var y = s.length - 1;
364
- return p == y ? s.pop() : Do.call(s, p, 1), --this.size, !0;
363
+ var v = s.length - 1;
364
+ return p == v ? s.pop() : Do.call(s, p, 1), --this.size, !0;
365
365
  }
366
366
  function Lo(n) {
367
367
  var s = this.__data__, p = at(s, n);
@@ -371,14 +371,14 @@ function Mo(n) {
371
371
  return at(this.__data__, n) > -1;
372
372
  }
373
373
  function Uo(n, s) {
374
- var p = this.__data__, y = at(p, n);
375
- return y < 0 ? (++this.size, p.push([n, s])) : p[y][1] = s, this;
374
+ var p = this.__data__, v = at(p, n);
375
+ return v < 0 ? (++this.size, p.push([n, s])) : p[v][1] = s, this;
376
376
  }
377
377
  function re(n) {
378
378
  var s = -1, p = n == null ? 0 : n.length;
379
379
  for (this.clear(); ++s < p; ) {
380
- var y = n[s];
381
- this.set(y[0], y[1]);
380
+ var v = n[s];
381
+ this.set(v[0], v[1]);
382
382
  }
383
383
  }
384
384
  re.prototype.clear = Io;
@@ -413,14 +413,14 @@ function Vo(n) {
413
413
  return ot(this, n).has(n);
414
414
  }
415
415
  function Yo(n, s) {
416
- var p = ot(this, n), y = p.size;
417
- return p.set(n, s), this.size += p.size == y ? 0 : 1, this;
416
+ var p = ot(this, n), v = p.size;
417
+ return p.set(n, s), this.size += p.size == v ? 0 : 1, this;
418
418
  }
419
419
  function Te(n) {
420
420
  var s = -1, p = n == null ? 0 : n.length;
421
421
  for (this.clear(); ++s < p; ) {
422
- var y = n[s];
423
- this.set(y[0], y[1]);
422
+ var v = n[s];
423
+ this.set(v[0], v[1]);
424
424
  }
425
425
  }
426
426
  Te.prototype.clear = jo;
@@ -429,8 +429,8 @@ Te.prototype.get = Go;
429
429
  Te.prototype.has = Vo;
430
430
  Te.prototype.set = Yo;
431
431
  function Pn(n, s) {
432
- for (var p = -1, y = s.length, E = n.length; ++p < y; )
433
- n[E + p] = s[p];
432
+ for (var p = -1, v = s.length, g = n.length; ++p < v; )
433
+ n[g + p] = s[p];
434
434
  return n;
435
435
  }
436
436
  var wn = Sn(Object.getPrototypeOf, Object);
@@ -451,10 +451,10 @@ var Ho = 200;
451
451
  function Ko(n, s) {
452
452
  var p = this.__data__;
453
453
  if (p instanceof re) {
454
- var y = p.__data__;
455
- if (!Be || y.length < Ho - 1)
456
- return y.push([n, s]), this.size = ++p.size, this;
457
- p = this.__data__ = new Te(y);
454
+ var v = p.__data__;
455
+ if (!Be || v.length < Ho - 1)
456
+ return v.push([n, s]), this.size = ++p.size, this;
457
+ p = this.__data__ = new Te(v);
458
458
  }
459
459
  return p.set(n, s), this.size = p.size, this;
460
460
  }
@@ -477,13 +477,13 @@ var xn = typeof exports == "object" && exports && !exports.nodeType && exports,
477
477
  function eu(n, s) {
478
478
  if (s)
479
479
  return n.slice();
480
- var p = n.length, y = Gr ? Gr(p) : new n.constructor(p);
481
- return n.copy(y), y;
480
+ var p = n.length, v = Gr ? Gr(p) : new n.constructor(p);
481
+ return n.copy(v), v;
482
482
  }
483
483
  function tu(n, s) {
484
- for (var p = -1, y = n == null ? 0 : n.length, E = 0, O = []; ++p < y; ) {
484
+ for (var p = -1, v = n == null ? 0 : n.length, g = 0, O = []; ++p < v; ) {
485
485
  var m = n[p];
486
- s(m, p, n) && (O[E++] = m);
486
+ s(m, p, n) && (O[g++] = m);
487
487
  }
488
488
  return O;
489
489
  }
@@ -507,8 +507,8 @@ function ou(n, s) {
507
507
  return it(n, An(n), s);
508
508
  }
509
509
  function In(n, s, p) {
510
- var y = s(n);
511
- return Ut(n) ? y : Pn(y, p(n));
510
+ var v = s(n);
511
+ return Ut(n) ? v : Pn(v, p(n));
512
512
  }
513
513
  function uu(n) {
514
514
  return In(n, $t, Vt);
@@ -518,9 +518,9 @@ function su(n) {
518
518
  }
519
519
  var Dt = de(q, "DataView"), Ft = de(q, "Promise"), Lt = de(q, "Set"), Yr = "[object Map]", cu = "[object Object]", Xr = "[object Promise]", Wr = "[object Set]", Jr = "[object WeakMap]", zr = "[object DataView]", fu = he(Dt), lu = he(Be), pu = he(Ft), hu = he(Lt), du = he(kt), te = Ge;
520
520
  (Dt && te(new Dt(new ArrayBuffer(1))) != zr || Be && te(new Be()) != Yr || Ft && te(Ft.resolve()) != Xr || Lt && te(new Lt()) != Wr || kt && te(new kt()) != Jr) && (te = function(n) {
521
- var s = Ge(n), p = s == cu ? n.constructor : void 0, y = p ? he(p) : "";
522
- if (y)
523
- switch (y) {
521
+ var s = Ge(n), p = s == cu ? n.constructor : void 0, v = p ? he(p) : "";
522
+ if (v)
523
+ switch (v) {
524
524
  case fu:
525
525
  return zr;
526
526
  case lu:
@@ -563,13 +563,13 @@ function Ru(n, s) {
563
563
  }
564
564
  var Ou = "[object Boolean]", Nu = "[object Date]", Tu = "[object Map]", Su = "[object Number]", Pu = "[object RegExp]", wu = "[object Set]", xu = "[object String]", Cu = "[object Symbol]", Au = "[object ArrayBuffer]", Iu = "[object DataView]", ku = "[object Float32Array]", Du = "[object Float64Array]", Fu = "[object Int8Array]", Lu = "[object Int16Array]", Mu = "[object Int32Array]", Uu = "[object Uint8Array]", ju = "[object Uint8ClampedArray]", Bu = "[object Uint16Array]", $u = "[object Uint32Array]";
565
565
  function Gu(n, s, p) {
566
- var y = n.constructor;
566
+ var v = n.constructor;
567
567
  switch (s) {
568
568
  case Au:
569
569
  return Yt(n);
570
570
  case Ou:
571
571
  case Nu:
572
- return new y(+n);
572
+ return new v(+n);
573
573
  case Iu:
574
574
  return Eu(n, p);
575
575
  case ku:
@@ -583,14 +583,14 @@ function Gu(n, s, p) {
583
583
  case $u:
584
584
  return Ru(n, p);
585
585
  case Tu:
586
- return new y();
586
+ return new v();
587
587
  case Su:
588
588
  case xu:
589
- return new y(n);
589
+ return new v(n);
590
590
  case Pu:
591
591
  return bu(n);
592
592
  case wu:
593
- return new y();
593
+ return new v();
594
594
  case Cu:
595
595
  return mu(n);
596
596
  }
@@ -609,7 +609,7 @@ function zu(n) {
609
609
  var Qr = Oe && Oe.isSet, Hu = Qr ? Bt(Qr) : zu, Ku = 1, qu = 2, Zu = 4, kn = "[object Arguments]", Qu = "[object Array]", es = "[object Boolean]", ts = "[object Date]", rs = "[object Error]", Dn = "[object Function]", ns = "[object GeneratorFunction]", is = "[object Map]", as = "[object Number]", Fn = "[object Object]", os = "[object RegExp]", us = "[object Set]", ss = "[object String]", cs = "[object Symbol]", fs = "[object WeakMap]", ls = "[object ArrayBuffer]", ps = "[object DataView]", hs = "[object Float32Array]", ds = "[object Float64Array]", vs = "[object Int8Array]", ys = "[object Int16Array]", _s = "[object Int32Array]", Es = "[object Uint8Array]", gs = "[object Uint8ClampedArray]", bs = "[object Uint16Array]", ms = "[object Uint32Array]", F = {};
610
610
  F[kn] = F[Qu] = F[ls] = F[ps] = F[es] = F[ts] = F[hs] = F[ds] = F[vs] = F[ys] = F[_s] = F[is] = F[as] = F[Fn] = F[os] = F[us] = F[ss] = F[cs] = F[Es] = F[gs] = F[bs] = F[ms] = !0;
611
611
  F[rs] = F[Dn] = F[fs] = !1;
612
- function rt(n, s, p, y, E, O) {
612
+ function rt(n, s, p, v, g, O) {
613
613
  var m, N = s & Ku, R = s & qu, r = s & Zu;
614
614
  if (m !== void 0)
615
615
  return m;
@@ -623,12 +623,12 @@ function rt(n, s, p, y, E, O) {
623
623
  var e = te(n), i = e == Dn || e == ns;
624
624
  if (On(n))
625
625
  return eu(n, N);
626
- if (e == Fn || e == kn || i && !E) {
626
+ if (e == Fn || e == kn || i && !g) {
627
627
  if (m = R || i ? {} : Vu(n), !N)
628
628
  return R ? ou(n, Zo(m, n)) : iu(n, qo(m, n));
629
629
  } else {
630
630
  if (!F[e])
631
- return E ? n : {};
631
+ return g ? n : {};
632
632
  m = Gu(n, e, N);
633
633
  }
634
634
  }
@@ -681,17 +681,17 @@ function en(n) {
681
681
  }
682
682
  }
683
683
  function tn(n, s) {
684
- function p(y, E) {
685
- E.static || (E.children ? E.array ? y[E.key] = en(E) : E.children.forEach((O) => {
686
- y[E.key] = {}, p(y[E.key], O);
687
- }) : y[E.key] = en(E));
684
+ function p(v, g) {
685
+ g.static || (g.children ? g.array ? v[g.key] = en(g) : g.children.forEach((O) => {
686
+ v[g.key] = {}, p(v[g.key], O);
687
+ }) : v[g.key] = en(g));
688
688
  }
689
- s.forEach((y) => p(n, y));
689
+ s.forEach((v) => p(n, v));
690
690
  }
691
- function Ts(n, s, p, y, E) {
691
+ function Ts(n, s, p, v, g) {
692
692
  const O = Ns(n, s);
693
693
  if (!O) {
694
- console.error("invalid prop tag");
694
+ console.error(`prop tag not found type=${n} subtype=${s}`);
695
695
  return;
696
696
  }
697
697
  const m = ln[p];
@@ -700,67 +700,71 @@ function Ts(n, s, p, y, E) {
700
700
  return;
701
701
  }
702
702
  const N = {
703
- basic: {}
703
+ basic: {
704
+ id: "",
705
+ key: ""
706
+ }
704
707
  }, R = pn(16);
705
- if (y) {
706
- const r = m.refKey;
708
+ if (v) {
709
+ const r = m.refKey, t = g;
707
710
  if (!m.elements.has(r)) {
708
- console.error(`[ref] element not found in pkg key=${E}`);
711
+ console.error(`[ref] element not found in pkg key=${r}`);
709
712
  return;
710
713
  }
711
- const t = Ne[r];
712
- if (!t) {
713
- console.error(`[ref] element not found in global key=${E}`);
714
+ const e = Ne[r];
715
+ if (!e) {
716
+ console.error(`[ref] element not found in global key=${r}`);
714
717
  return;
715
718
  }
716
- const e = t.props[O];
717
- if (!e) {
718
- console.error(`[ref] props not found key=${E} tag=${O}`);
719
+ const i = e.props[O];
720
+ if (!i) {
721
+ console.error(`[ref] props not found key=${r} tag=${O}`);
719
722
  return;
720
723
  }
721
- tn(N, e), N.basic.id = R, N.basic.key = r, N.basic.ref = {
722
- id: E
724
+ tn(N, i), N.basic.id = R, N.basic.key = r, N.ref = {
725
+ id: t
723
726
  };
724
727
  } else {
725
- if (!m.elements.has(E)) {
726
- console.error(`[key] element not found in pkg key=${E}`);
728
+ const r = g;
729
+ if (!m.elements.has(r)) {
730
+ console.error(`[key] element not found in pkg key=${r}`);
727
731
  return;
728
732
  }
729
- const r = Ne[E];
730
- if (!r) {
731
- console.error(`[key] element not found in global key=${E}`);
733
+ const t = Ne[r];
734
+ if (!t) {
735
+ console.error(`[key] element not found in global key=${r}`);
732
736
  return;
733
737
  }
734
- const t = r.props[O];
735
- if (!t) {
736
- console.error(`[key] props not found key=${E} tag=${O}`);
738
+ const e = t.props[O];
739
+ if (!e) {
740
+ console.error(`[key] props not found key=${r} tag=${O}`);
737
741
  return;
738
742
  }
739
- tn(N, t), N.basic.id = R, N.basic.key = E, r.leaf || (N.children = []);
743
+ tn(N, e), N.basic.id = R, N.basic.key = r, t.leaf || (N.children = []);
740
744
  }
741
745
  return N;
742
746
  }
743
747
  function dc(n, s) {
744
- function p(y) {
745
- if (y.basic.id === s)
746
- return y;
747
- if (y.children)
748
- for (let E = 0; E < y.children.length; E++) {
749
- const O = p(y.children[E]);
748
+ function p(v) {
749
+ if (v.basic.id === s)
750
+ return v;
751
+ if (v.children)
752
+ for (let g = 0; g < v.children.length; g++) {
753
+ const O = p(v.children[g]);
750
754
  if (O)
751
755
  return O;
752
756
  }
753
757
  }
754
- for (let y = 0; y < n.length; y++) {
755
- const E = p(n[y]);
756
- if (E)
757
- return E;
758
+ for (let v = 0; v < n.length; v++) {
759
+ const g = p(n[v]);
760
+ if (g)
761
+ return g;
758
762
  }
759
763
  }
760
764
  function vc(n) {
761
- function s(y) {
762
- var E;
763
- y.basic.id = pn(16), (E = y.children) == null || E.forEach((O) => s(O));
765
+ function s(v) {
766
+ var g;
767
+ v.basic.id = pn(16), (g = v.children) == null || g.forEach((O) => s(O));
764
768
  }
765
769
  const p = Mt(n);
766
770
  return s(p), p;
@@ -823,12 +827,12 @@ const Ds = /* @__PURE__ */ un({
823
827
  outer: { type: Boolean }
824
828
  },
825
829
  setup(n) {
826
- const s = xs(), p = n, y = J(() => p.node.settings.text), E = J(() => p.node.settings.disabled), O = J(() => p.node.settings.variant), m = J(() => p.node.settings.density), N = J(() => p.node.settings.block), R = J(() => s.value ? "dark" : "light");
830
+ const s = xs(), p = n, v = J(() => p.node.settings.text), g = J(() => p.node.settings.disabled), O = J(() => p.node.settings.variant), m = J(() => p.node.settings.density), N = J(() => p.node.settings.block), R = J(() => s.value ? "dark" : "light");
827
831
  return (r, t) => {
828
832
  const e = Ai("v-btn");
829
833
  return sn(), cn(e, {
830
- text: y.value,
831
- disabled: E.value,
834
+ text: v.value,
835
+ disabled: g.value,
832
836
  variant: O.value,
833
837
  density: m.value,
834
838
  block: N.value,
@@ -983,7 +987,7 @@ const Ds = /* @__PURE__ */ un({
983
987
  }
984
988
  ];
985
989
  function js(n) {
986
- const s = Ps(), p = ws(), y = J(() => n.node.width), E = J(() => n.node.minWidth), O = J(() => n.node.maxWidth), m = J(() => {
990
+ const s = Ps(), p = ws(), v = J(() => n.node.width), g = J(() => n.node.minWidth), O = J(() => n.node.maxWidth), m = J(() => {
987
991
  if (n.outer && s === "editor") {
988
992
  const t = Ct(n.node.height);
989
993
  if (t)
@@ -1006,9 +1010,9 @@ function js(n) {
1006
1010
  return n.node.maxHeight;
1007
1011
  });
1008
1012
  function r(t) {
1009
- y.value && (t.width = y.value), E.value && (t.minWidth = E.value), O.value && (t.maxWidth = O.value), m.value && (t.height = m.value), N.value && (t.minHeight = N.value), R.value && (t.maxHeight = R.value);
1013
+ v.value && (t.width = v.value), g.value && (t.minWidth = g.value), O.value && (t.maxWidth = O.value), m.value && (t.height = m.value), N.value && (t.minHeight = N.value), R.value && (t.maxHeight = R.value);
1010
1014
  }
1011
- return { width: y, minWidth: E, maxWidth: O, height: m, minHeight: N, maxHeight: R, applySize: r };
1015
+ return { width: v, minWidth: g, maxWidth: O, height: m, minHeight: N, maxHeight: R, applySize: r };
1012
1016
  }
1013
1017
  var Bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1014
1018
  function $s(n) {
@@ -1018,17 +1022,17 @@ function Gs(n) {
1018
1022
  if (n.__esModule) return n;
1019
1023
  var s = n.default;
1020
1024
  if (typeof s == "function") {
1021
- var p = function y() {
1022
- return this instanceof y ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
1025
+ var p = function v() {
1026
+ return this instanceof v ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
1023
1027
  };
1024
1028
  p.prototype = s.prototype;
1025
1029
  } else p = {};
1026
- return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(y) {
1027
- var E = Object.getOwnPropertyDescriptor(n, y);
1028
- Object.defineProperty(p, y, E.get ? E : {
1030
+ return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(v) {
1031
+ var g = Object.getOwnPropertyDescriptor(n, v);
1032
+ Object.defineProperty(p, v, g.get ? g : {
1029
1033
  enumerable: !0,
1030
1034
  get: function() {
1031
- return n[y];
1035
+ return n[v];
1032
1036
  }
1033
1037
  });
1034
1038
  }), p;
@@ -1039,8 +1043,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1039
1043
  default: Vs
1040
1044
  }, Symbol.toStringTag, { value: "Module" })), Xs = /* @__PURE__ */ Gs(Ys);
1041
1045
  (function(n, s) {
1042
- (function(y, E) {
1043
- n.exports = E();
1046
+ (function(v, g) {
1047
+ n.exports = g();
1044
1048
  })(Bs, () => (
1045
1049
  /******/
1046
1050
  (() => {
@@ -1072,8 +1076,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1072
1076
  typeof this[l] == "function" && (a = l.match(c)) && (this.stepFunctions_[a[1]] = this[l].bind(this));
1073
1077
  this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
1074
1078
  `), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
1075
- var v = new r.State(this.ast, this.globalScope);
1076
- v.done = !1, this.stateStack = [v], this.run(), this.value = void 0, this.ast = o, v = new r.State(this.ast, this.globalScope), v.done = !1, this.stateStack.length = 0, this.stateStack[0] = v;
1079
+ var y = new r.State(this.ast, this.globalScope);
1080
+ y.done = !1, this.stateStack = [y], this.run(), this.value = void 0, this.ast = o, y = new r.State(this.ast, this.globalScope), y.done = !1, this.stateStack.length = 0, this.stateStack[0] = y;
1077
1081
  };
1078
1082
  r.Completion = {
1079
1083
  NORMAL: 0,
@@ -1293,8 +1297,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1293
1297
  return function(l) {
1294
1298
  try {
1295
1299
  return a(l);
1296
- } catch (v) {
1297
- e.throwException(e.URI_ERROR, v.message);
1300
+ } catch (y) {
1301
+ e.throwException(e.URI_ERROR, y.message);
1298
1302
  }
1299
1303
  };
1300
1304
  }(u[c][0]), this.setProperty(
@@ -1341,14 +1345,14 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1341
1345
  var a = "";
1342
1346
  var l = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1343
1347
  if (l) {
1344
- for (var v = l.split(/\s*,\s*/), g = 0; g < v.length; g++) {
1345
- var T = v[g];
1348
+ for (var y = l.split(/\s*,\s*/), E = 0; E < y.length; E++) {
1349
+ var T = y[E];
1346
1350
  o.test(T) || e.throwException(
1347
1351
  e.SYNTAX_ERROR,
1348
1352
  "Invalid function argument: " + T
1349
1353
  );
1350
1354
  }
1351
- l = v.join(", ");
1355
+ l = y.join(", ");
1352
1356
  }
1353
1357
  try {
1354
1358
  var b = e.parse_(
@@ -1393,11 +1397,11 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1393
1397
  0,
1394
1398
  r.READONLY_NONENUMERABLE_DESCRIPTOR
1395
1399
  ), this.FUNCTION_PROTO.class = "Function", i = function(c, a, l) {
1396
- var v = e.stateStack[e.stateStack.length - 1];
1397
- v.func_ = c, v.funcThis_ = a, v.arguments_ = [], l != null && (l instanceof r.Object ? v.arguments_ = Array.from(l.properties) : e.throwException(
1400
+ var y = e.stateStack[e.stateStack.length - 1];
1401
+ y.func_ = c, y.funcThis_ = a, y.arguments_ = [], l != null && (l instanceof r.Object ? y.arguments_ = Array.from(l.properties) : e.throwException(
1398
1402
  e.TYPE_ERROR,
1399
1403
  "CreateListFromArrayLike called on non-object"
1400
- )), v.doneExec_ = !1;
1404
+ )), y.doneExec_ = !1;
1401
1405
  }, this.setNativeFunctionPrototype(this.FUNCTION, "apply", i), this.polyfills_.push(
1402
1406
  /* POLYFILL START */
1403
1407
  // Flatten the apply args list to remove any inheritance or getter functions.
@@ -1588,8 +1592,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1588
1592
  e.TYPE_ERROR,
1589
1593
  "Object.getOwnPropertyDescriptor called on non-object: " + c
1590
1594
  ), a = String(a), a in c.properties) {
1591
- var l = Object.getOwnPropertyDescriptor(c.properties, a), v = c.getter[a], g = c.setter[a], T = e.createObjectProto(e.OBJECT_PROTO);
1592
- return v || g ? (e.setProperty(T, "get", v), e.setProperty(T, "set", g)) : (e.setProperty(
1595
+ var l = Object.getOwnPropertyDescriptor(c.properties, a), y = c.getter[a], E = c.setter[a], T = e.createObjectProto(e.OBJECT_PROTO);
1596
+ return y || E ? (e.setProperty(T, "get", y), e.setProperty(T, "set", E)) : (e.setProperty(
1593
1597
  T,
1594
1598
  "value",
1595
1599
  /** @type {!Interpreter.Value} */
@@ -2168,106 +2172,106 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2168
2172
  o[u],
2169
2173
  String.prototype[o[u]]
2170
2174
  );
2171
- i = function(a, l, v) {
2172
- l = e.pseudoToNative(l), v = e.pseudoToNative(v);
2175
+ i = function(a, l, y) {
2176
+ l = e.pseudoToNative(l), y = e.pseudoToNative(y);
2173
2177
  try {
2174
2178
  return String(this).localeCompare(
2175
2179
  a,
2176
2180
  /** @type {?} */
2177
2181
  l,
2178
2182
  /** @type {?} */
2179
- v
2183
+ y
2180
2184
  );
2181
- } catch (g) {
2185
+ } catch (E) {
2182
2186
  e.throwException(
2183
2187
  e.ERROR,
2184
- "localeCompare: " + g.message
2188
+ "localeCompare: " + E.message
2185
2189
  );
2186
2190
  }
2187
- }, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, l, v) {
2188
- var g = String(this);
2189
- if (l = l ? Number(l) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
2191
+ }, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, l, y) {
2192
+ var E = String(this);
2193
+ if (l = l ? Number(l) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
2190
2194
  if (r.vm) {
2191
2195
  var T = {
2192
- string: g,
2196
+ string: E,
2193
2197
  separator: a,
2194
2198
  limit: l
2195
- }, b = "string.split(separator, limit)", D = e.vmCall(b, T, a, v);
2196
- D !== r.REGEXP_TIMEOUT && v(e.nativeToPseudo(D));
2199
+ }, b = "string.split(separator, limit)", D = e.vmCall(b, T, a, y);
2200
+ D !== r.REGEXP_TIMEOUT && y(e.nativeToPseudo(D));
2197
2201
  } else {
2198
2202
  var P = e.createWorker(), I = e.regExpTimeout(
2199
2203
  a,
2200
2204
  P,
2201
- v
2205
+ y
2202
2206
  );
2203
2207
  P.onmessage = function(X) {
2204
- clearTimeout(I), v(e.nativeToPseudo(X.data));
2205
- }, P.postMessage(["split", g, a, l]);
2208
+ clearTimeout(I), y(e.nativeToPseudo(X.data));
2209
+ }, P.postMessage(["split", E, a, l]);
2206
2210
  }
2207
2211
  return;
2208
2212
  }
2209
- var D = g.split(a, l);
2210
- v(e.nativeToPseudo(D));
2213
+ var D = E.split(a, l);
2214
+ y(e.nativeToPseudo(D));
2211
2215
  }, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, l) {
2212
- var v = String(this);
2216
+ var y = String(this);
2213
2217
  if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
2214
2218
  if (r.vm) {
2215
- var g = {
2216
- string: v,
2219
+ var E = {
2220
+ string: y,
2217
2221
  regexp: a
2218
- }, T = "string.match(regexp)", I = e.vmCall(T, g, a, l);
2222
+ }, T = "string.match(regexp)", I = e.vmCall(T, E, a, l);
2219
2223
  I !== r.REGEXP_TIMEOUT && l(I && e.matchToPseudo_(I));
2220
2224
  } else {
2221
2225
  var b = e.createWorker(), P = e.regExpTimeout(a, b, l);
2222
2226
  b.onmessage = function(D) {
2223
2227
  clearTimeout(P), l(D.data && e.matchToPseudo_(D.data));
2224
- }, b.postMessage(["match", v, a]);
2228
+ }, b.postMessage(["match", y, a]);
2225
2229
  }
2226
2230
  return;
2227
2231
  }
2228
- var I = v.match(a);
2232
+ var I = y.match(a);
2229
2233
  l(I && e.matchToPseudo_(I));
2230
2234
  }, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, l) {
2231
- var v = String(this);
2235
+ var y = String(this);
2232
2236
  if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
2233
2237
  if (r.vm) {
2234
- var g = {
2235
- string: v,
2238
+ var E = {
2239
+ string: y,
2236
2240
  regexp: a
2237
- }, T = "string.search(regexp)", b = e.vmCall(T, g, a, l);
2241
+ }, T = "string.search(regexp)", b = e.vmCall(T, E, a, l);
2238
2242
  b !== r.REGEXP_TIMEOUT && l(b);
2239
2243
  } else {
2240
2244
  var P = e.createWorker(), I = e.regExpTimeout(a, P, l);
2241
2245
  P.onmessage = function(D) {
2242
2246
  clearTimeout(I), l(D.data);
2243
- }, P.postMessage(["search", v, a]);
2247
+ }, P.postMessage(["search", y, a]);
2244
2248
  }
2245
2249
  return;
2246
2250
  }
2247
- l(v.search(a));
2248
- }, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, l, v) {
2249
- var g = String(this);
2250
- if (l = String(l), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
2251
+ l(y.search(a));
2252
+ }, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, l, y) {
2253
+ var E = String(this);
2254
+ if (l = String(l), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
2251
2255
  if (r.vm) {
2252
2256
  var T = {
2253
- string: g,
2257
+ string: E,
2254
2258
  substr: a,
2255
2259
  newSubstr: l
2256
- }, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, T, a, v);
2257
- P !== r.REGEXP_TIMEOUT && v(P);
2260
+ }, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, T, a, y);
2261
+ P !== r.REGEXP_TIMEOUT && y(P);
2258
2262
  } else {
2259
2263
  var I = e.createWorker(), D = e.regExpTimeout(
2260
2264
  a,
2261
2265
  I,
2262
- v
2266
+ y
2263
2267
  );
2264
2268
  I.onmessage = function(X) {
2265
- clearTimeout(D), v(X.data);
2266
- }, I.postMessage(["replace", g, a, l]);
2269
+ clearTimeout(D), y(X.data);
2270
+ }, I.postMessage(["replace", E, a, l]);
2267
2271
  }
2268
2272
  return;
2269
2273
  }
2270
- v(g.replace(a, l));
2274
+ y(E.replace(a, l));
2271
2275
  }, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
2272
2276
  /* POLYFILL START */
2273
2277
  "(function() {",
@@ -2373,10 +2377,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2373
2377
  /** @type {?} */
2374
2378
  l
2375
2379
  );
2376
- } catch (v) {
2380
+ } catch (y) {
2377
2381
  e.throwException(
2378
2382
  e.ERROR,
2379
- "toLocaleString: " + v.message
2383
+ "toLocaleString: " + y.message
2380
2384
  );
2381
2385
  }
2382
2386
  }, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
@@ -2385,10 +2389,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2385
2389
  i = function(a, l) {
2386
2390
  if (!e.calledWithNew())
2387
2391
  return r.nativeGlobal.Date();
2388
- var v = [null].concat(Array.from(arguments));
2392
+ var y = [null].concat(Array.from(arguments));
2389
2393
  return this.data = new (Function.prototype.bind.apply(
2390
2394
  r.nativeGlobal.Date,
2391
- v
2395
+ y
2392
2396
  ))(), this;
2393
2397
  }, this.DATE = this.createNativeFunction(i, !0), this.DATE_PROTO = this.DATE.properties.prototype, this.setProperty(
2394
2398
  t,
@@ -2463,9 +2467,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2463
2467
  e.TYPE_ERROR,
2464
2468
  c + " not called on a Date"
2465
2469
  );
2466
- for (var v = [], g = 0; g < arguments.length; g++)
2467
- v[g] = e.pseudoToNative(arguments[g]);
2468
- return l[c].apply(l, v);
2470
+ for (var y = [], E = 0; E < arguments.length; E++)
2471
+ y[E] = e.pseudoToNative(arguments[E]);
2472
+ return l[c].apply(l, y);
2469
2473
  };
2470
2474
  }(o[u]), this.setNativeFunctionPrototype(this.DATE, o[u], i);
2471
2475
  i = function() {
@@ -2494,8 +2498,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2494
2498
  );
2495
2499
  try {
2496
2500
  var l = new r.nativeGlobal.RegExp(u, c);
2497
- } catch (v) {
2498
- e.throwException(e.SYNTAX_ERROR, v.message);
2501
+ } catch (y) {
2502
+ e.throwException(e.SYNTAX_ERROR, y.message);
2499
2503
  }
2500
2504
  return e.populateRegExp(a, l), a;
2501
2505
  }, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
@@ -2539,13 +2543,13 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2539
2543
  var l = {
2540
2544
  string: u,
2541
2545
  regexp: a
2542
- }, v = "regexp.exec(string)", P = e.vmCall(v, l, a, c);
2546
+ }, y = "regexp.exec(string)", P = e.vmCall(y, l, a, c);
2543
2547
  P !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(P)));
2544
2548
  } else {
2545
- var g = e.createWorker(), T = e.regExpTimeout(a, g, c), b = this;
2546
- g.onmessage = function(I) {
2549
+ var E = e.createWorker(), T = e.regExpTimeout(a, E, c), b = this;
2550
+ E.onmessage = function(I) {
2547
2551
  clearTimeout(T), e.setProperty(b, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
2548
- }, g.postMessage(["exec", a, a.lastIndex, u]);
2552
+ }, E.postMessage(["exec", a, a.lastIndex, u]);
2549
2553
  }
2550
2554
  return;
2551
2555
  }
@@ -2688,13 +2692,13 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2688
2692
  ) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(T) {
2689
2693
  return typeof T == "string" || typeof T == "number";
2690
2694
  })) : a = null, typeof l != "string" && typeof l != "number" && (l = void 0);
2691
- var v = i.pseudoToNative(c);
2695
+ var y = i.pseudoToNative(c);
2692
2696
  try {
2693
- var g = JSON.stringify(v, a, l);
2697
+ var E = JSON.stringify(y, a, l);
2694
2698
  } catch (T) {
2695
2699
  i.throwException(i.TYPE_ERROR, T.message);
2696
2700
  }
2697
- return g;
2701
+ return E;
2698
2702
  }, this.setProperty(
2699
2703
  o,
2700
2704
  "stringify",
@@ -2754,17 +2758,17 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2754
2758
  }
2755
2759
  c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
2756
2760
  }
2757
- for (var l = String(this.getProperty(t, "name")), v = String(this.getProperty(t, "message")), g = l + ": " + v + `
2761
+ for (var l = String(this.getProperty(t, "name")), y = String(this.getProperty(t, "message")), E = l + ": " + y + `
2758
2762
  `, o = 0; o < i.length; o++) {
2759
2763
  var T = i[o].datumLoc, b = i[o].datumName, P = T.source + ":" + T.start.line + ":" + T.start.column;
2760
- b ? g += " at " + b + " (" + P + `)
2761
- ` : g += " at " + P + `
2764
+ b ? E += " at " + b + " (" + P + `)
2765
+ ` : E += " at " + P + `
2762
2766
  `;
2763
2767
  }
2764
2768
  this.setProperty(
2765
2769
  t,
2766
2770
  "stack",
2767
- g.trim(),
2771
+ E.trim(),
2768
2772
  r.NONENUMERABLE_DESCRIPTOR
2769
2773
  );
2770
2774
  }, r.prototype.createWorker = function() {
@@ -2904,8 +2908,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2904
2908
  return a.pseudoToNative(D);
2905
2909
  }), I = t.apply(a, P);
2906
2910
  return a.nativeToPseudo(I);
2907
- }, v = Object.getOwnPropertyDescriptor(t, "prototype"), g = this.createNativeFunction(l, !!v);
2908
- return i.pseudo.push(g), g;
2911
+ }, y = Object.getOwnPropertyDescriptor(t, "prototype"), E = this.createNativeFunction(l, !!y);
2912
+ return i.pseudo.push(E), E;
2909
2913
  }
2910
2914
  var T;
2911
2915
  Array.isArray(t) ? T = this.createArray() : T = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(T);
@@ -2938,10 +2942,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2938
2942
  var a = this.isa(t, this.ARRAY) ? [] : {};
2939
2943
  i.native.push(a);
2940
2944
  var l;
2941
- for (var v in t.properties)
2942
- l = this.pseudoToNative(t.properties[v], i), Object.defineProperty(
2945
+ for (var y in t.properties)
2946
+ l = this.pseudoToNative(t.properties[y], i), Object.defineProperty(
2943
2947
  a,
2944
- v,
2948
+ y,
2945
2949
  {
2946
2950
  value: l,
2947
2951
  writable: !0,
@@ -3036,10 +3040,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3036
3040
  return;
3037
3041
  }
3038
3042
  if (o) {
3039
- var v = {};
3040
- "get" in o && o.get && (t.getter[e] = o.get, v.get = this.setProperty.placeholderGet_), "set" in o && o.set && (t.setter[e] = o.set, v.set = this.setProperty.placeholderSet_), "configurable" in o && (v.configurable = o.configurable), "enumerable" in o && (v.enumerable = o.enumerable), "writable" in o && (v.writable = o.writable, delete t.getter[e], delete t.setter[e]), "value" in o ? (v.value = o.value, delete t.getter[e], delete t.setter[e]) : i !== r.VALUE_IN_DESCRIPTOR && (v.value = i, delete t.getter[e], delete t.setter[e]);
3043
+ var y = {};
3044
+ "get" in o && o.get && (t.getter[e] = o.get, y.get = this.setProperty.placeholderGet_), "set" in o && o.set && (t.setter[e] = o.set, y.set = this.setProperty.placeholderSet_), "configurable" in o && (y.configurable = o.configurable), "enumerable" in o && (y.enumerable = o.enumerable), "writable" in o && (y.writable = o.writable, delete t.getter[e], delete t.setter[e]), "value" in o ? (y.value = o.value, delete t.getter[e], delete t.setter[e]) : i !== r.VALUE_IN_DESCRIPTOR && (y.value = i, delete t.getter[e], delete t.setter[e]);
3041
3045
  try {
3042
- Object.defineProperty(t.properties, e, v);
3046
+ Object.defineProperty(t.properties, e, y);
3043
3047
  } catch {
3044
3048
  this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
3045
3049
  }
@@ -3047,14 +3051,14 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3047
3051
  } else {
3048
3052
  if (i === r.VALUE_IN_DESCRIPTOR)
3049
3053
  throw ReferenceError("Value not specified");
3050
- for (var g = t; !(e in g.properties); )
3051
- if (g = this.getPrototype(g), !g) {
3052
- g = t;
3054
+ for (var E = t; !(e in E.properties); )
3055
+ if (E = this.getPrototype(E), !E) {
3056
+ E = t;
3053
3057
  break;
3054
3058
  }
3055
- if (g.setter && g.setter[e])
3056
- return this.setterStep_ = !0, g.setter[e];
3057
- if (g.getter && g.getter[e])
3059
+ if (E.setter && E.setter[e])
3060
+ return this.setterStep_ = !0, E.setter[e];
3061
+ if (E.getter && E.getter[e])
3058
3062
  u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
3059
3063
  else
3060
3064
  try {
@@ -3247,8 +3251,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3247
3251
  SyntaxError,
3248
3252
  TypeError,
3249
3253
  URIError
3250
- }, l = String(this.getProperty(e, "name")), v = this.getProperty(e, "message").valueOf(), g = a[l] || Error;
3251
- c = g(v), c.stack = String(this.getProperty(e, "stack"));
3254
+ }, l = String(this.getProperty(e, "name")), y = this.getProperty(e, "message").valueOf(), E = a[l] || Error;
3255
+ c = E(y), c.stack = String(this.getProperty(e, "stack"));
3252
3256
  } else
3253
3257
  c = String(e);
3254
3258
  throw this.value = c, c;
@@ -3284,21 +3288,21 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3284
3288
  }
3285
3289
  return "???";
3286
3290
  }, r.prototype.createTask_ = function(t, e) {
3287
- var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l, v, g;
3291
+ var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l, y, E;
3288
3292
  if (u instanceof r.Object && u.class === "Function")
3289
- v = u, a.type = "CallExpression", l = i.scope;
3293
+ y = u, a.type = "CallExpression", l = i.scope;
3290
3294
  else {
3291
3295
  try {
3292
- g = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
3296
+ E = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
3293
3297
  } catch (D) {
3294
3298
  this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
3295
3299
  }
3296
- a.type = "EvalProgram_", a.body = g.body;
3300
+ a.type = "EvalProgram_", a.body = E.body;
3297
3301
  var T = i.node.arguments[0], b = T ? T.start : void 0, P = T ? T.end : void 0;
3298
3302
  r.stripLocations_(a, b, P), l = this.globalScope, o.length = 0;
3299
3303
  }
3300
3304
  var I = new r.Task(
3301
- v,
3305
+ y,
3302
3306
  o,
3303
3307
  l,
3304
3308
  a,
@@ -3391,20 +3395,20 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3391
3395
  var t = r.toStringCycles_;
3392
3396
  if (t.indexOf(this) !== -1)
3393
3397
  return "[object Error]";
3394
- var a, l, v = this;
3398
+ var a, l, y = this;
3395
3399
  do
3396
- if ("name" in v.properties) {
3397
- a = v.properties.name;
3400
+ if ("name" in y.properties) {
3401
+ a = y.properties.name;
3398
3402
  break;
3399
3403
  }
3400
- while (v = v.proto);
3401
- v = this;
3404
+ while (y = y.proto);
3405
+ y = this;
3402
3406
  do
3403
- if ("message" in v.properties) {
3404
- l = v.properties.message;
3407
+ if ("message" in y.properties) {
3408
+ l = y.properties.message;
3405
3409
  break;
3406
3410
  }
3407
- while (v = v.proto);
3411
+ while (y = y.proto);
3408
3412
  t.push(this);
3409
3413
  try {
3410
3414
  a = a && String(a), l = l && String(l);
@@ -3494,9 +3498,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3494
3498
  default:
3495
3499
  throw SyntaxError("Unknown assignment expression: " + i.operator);
3496
3500
  }
3497
- var v = this.setValue(e.leftReference_, a);
3498
- if (v)
3499
- return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(v, e.leftReference_, a);
3501
+ var y = this.setValue(e.leftReference_, a);
3502
+ if (y)
3503
+ return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(y, e.leftReference_, a);
3500
3504
  t.pop(), t[t.length - 1].value = a;
3501
3505
  }, r.prototype.stepBinaryExpression = function(t, e, i) {
3502
3506
  if (!e.doneLeft_)
@@ -3634,11 +3638,11 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3634
3638
  );
3635
3639
  var a = u.node;
3636
3640
  if (a) {
3637
- for (var l = this.createScope(a.body, u.parentScope), v = this.createArray(), g = 0; g < e.arguments_.length; g++)
3638
- this.setProperty(v, g, e.arguments_[g]);
3639
- this.setProperty(l.object, "arguments", v);
3640
- for (var g = 0; g < a.params.length; g++) {
3641
- var T = a.params[g].name, b = e.arguments_.length > g ? e.arguments_[g] : void 0;
3641
+ for (var l = this.createScope(a.body, u.parentScope), y = this.createArray(), E = 0; E < e.arguments_.length; E++)
3642
+ this.setProperty(y, E, e.arguments_[E]);
3643
+ this.setProperty(l.object, "arguments", y);
3644
+ for (var E = 0; E < a.params.length; E++) {
3645
+ var T = a.params[E].name, b = e.arguments_.length > E ? e.arguments_[E] : void 0;
3642
3646
  this.setProperty(l.object, T, b);
3643
3647
  }
3644
3648
  return l.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
@@ -3896,7 +3900,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3896
3900
  for (var a in e.properties_) {
3897
3901
  var l = e.properties_[a];
3898
3902
  if ("get" in l || "set" in l) {
3899
- var v = {
3903
+ var y = {
3900
3904
  configurable: !0,
3901
3905
  enumerable: !0,
3902
3906
  get: l.get,
@@ -3906,7 +3910,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3906
3910
  e.object_,
3907
3911
  a,
3908
3912
  r.VALUE_IN_DESCRIPTOR,
3909
- v
3913
+ y
3910
3914
  );
3911
3915
  } else
3912
3916
  this.setProperty(e.object_, a, l.init);
@@ -4045,9 +4049,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4045
4049
  a = c - 1;
4046
4050
  else
4047
4051
  throw SyntaxError("Unknown update expression: " + i.operator);
4048
- var l = i.prefix ? a : c, v = this.setValue(e.leftSide_, a);
4049
- if (v)
4050
- return e.doneSetter_ = !0, e.setterValue_ = l, this.createSetter_(v, e.leftSide_, a);
4052
+ var l = i.prefix ? a : c, y = this.setValue(e.leftSide_, a);
4053
+ if (y)
4054
+ return e.doneSetter_ = !0, e.setterValue_ = l, this.createSetter_(y, e.leftSide_, a);
4051
4055
  t.pop(), t[t.length - 1].value = l;
4052
4056
  }, r.prototype.stepVariableDeclaration = function(t, e, i) {
4053
4057
  var o = i.declarations, u = e.n_ || 0, c = o[u];
@@ -4157,7 +4161,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4157
4161
  break;
4158
4162
  }
4159
4163
  return { line: d, column: h - _ };
4160
- }, a = 0, l = 0, v = 0, g, T, b, P, I, D, X, Pe = 0, z = 0, ve, se, j, W;
4164
+ }, a = 0, l = 0, y = 0, E, T, b, P, I, D, X, Pe = 0, z = 0, ve, se, j, W;
4161
4165
  function A(f, h) {
4162
4166
  var d = c(t, f);
4163
4167
  h += " (" + d.line + ":" + d.column + ")";
@@ -4214,7 +4218,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4214
4218
  D = 1, a = X = 0, I = !0, Ce();
4215
4219
  }
4216
4220
  function $(f, h) {
4217
- v = a, r.locations && (T = new fe()), b = f, Ce(), P = h, I = f.beforeExpr;
4221
+ y = a, r.locations && (T = new fe()), b = f, Ce(), P = h, I = f.beforeExpr;
4218
4222
  }
4219
4223
  function ci() {
4220
4224
  var f = r.onComment && r.locations && new fe(), h = a, d = t.indexOf("*/", a += 2);
@@ -4383,7 +4387,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4383
4387
  return !1;
4384
4388
  }
4385
4389
  function Ee(f) {
4386
- if (f ? a = l + 1 : l = a, r.locations && (g = new fe()), f) return mr();
4390
+ if (f ? a = l + 1 : l = a, r.locations && (E = new fe()), f) return mr();
4387
4391
  if (a >= e) return $(st);
4388
4392
  var h = t.charCodeAt(a);
4389
4393
  if (qe(h) || h === 92)
@@ -4538,7 +4542,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4538
4542
  !ge && ii(f) && (h = Jn[f]), $(h, f);
4539
4543
  }
4540
4544
  function k() {
4541
- Pe = l, z = v, ve = T, Ee();
4545
+ Pe = l, z = y, ve = T, Ee();
4542
4546
  }
4543
4547
  function Et(f) {
4544
4548
  if (W = f, a = l, r.locations)
@@ -4551,7 +4555,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4551
4555
  this.type = null, this.start = l, this.end = null;
4552
4556
  }
4553
4557
  function Sr() {
4554
- this.start = g, this.end = null, i && (this.source = i);
4558
+ this.start = E, this.end = null, i && (this.source = i);
4555
4559
  }
4556
4560
  function V() {
4557
4561
  var f = new Tr();
@@ -4759,16 +4763,16 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4759
4763
  case Xe:
4760
4764
  case ut:
4761
4765
  case Xt:
4762
- return f = V(), f.value = P, f.raw = t.slice(l, v), k(), w(f, "Literal");
4766
+ return f = V(), f.value = P, f.raw = t.slice(l, y), k(), w(f, "Literal");
4763
4767
  case ur:
4764
4768
  case sr:
4765
4769
  case cr:
4766
4770
  return f = V(), f.value = b.atomValue, f.raw = b.keyword, k(), w(f, "Literal");
4767
4771
  case Z:
4768
- var h = g, d = l;
4772
+ var h = E, d = l;
4769
4773
  k();
4770
4774
  var _ = Y();
4771
- return _.start = d, _.end = v, r.locations && (_.loc.start = h, _.loc.end = T), r.ranges && (_.range = [d, v]), B(K), _;
4775
+ return _.start = d, _.end = y, r.locations && (_.loc.start = h, _.loc.end = T), r.ranges && (_.range = [d, y]), B(K), _;
4772
4776
  case vt:
4773
4777
  return f = V(), k(), f.elements = Pt(yt, !0, !0), w(f, "ArrayExpression");
4774
4778
  case we:
@@ -4834,7 +4838,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4834
4838
  }
4835
4839
  function ae(f) {
4836
4840
  var h = V();
4837
- return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ni(P) || W && _r(P)) && t.slice(l, v).indexOf("\\") === -1 && A(l, "The keyword '" + P + "' is reserved"), h.name = P) : f && b.keyword ? h.name = b.keyword : ee(), I = !1, k(), w(h, "Identifier");
4841
+ return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ni(P) || W && _r(P)) && t.slice(l, y).indexOf("\\") === -1 && A(l, "The keyword '" + P + "' is reserved"), h.name = P) : f && b.keyword ? h.name = b.keyword : ee(), I = !1, k(), w(h, "Identifier");
4838
4842
  }
4839
4843
  });
4840
4844
  }
@@ -4850,12 +4854,12 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4850
4854
  }
4851
4855
  )
4852
4856
  /******/
4853
- }, y = {};
4854
- function E(m) {
4855
- var N = y[m];
4857
+ }, v = {};
4858
+ function g(m) {
4859
+ var N = v[m];
4856
4860
  if (N !== void 0)
4857
4861
  return N.exports;
4858
- var R = y[m] = {
4862
+ var R = v[m] = {
4859
4863
  /******/
4860
4864
  // no module.id needed
4861
4865
  /******/
@@ -4864,12 +4868,12 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4864
4868
  exports: {}
4865
4869
  /******/
4866
4870
  };
4867
- return p[m].call(R.exports, R, R.exports, E), R.exports;
4871
+ return p[m].call(R.exports, R, R.exports, g), R.exports;
4868
4872
  }
4869
- E.d = (m, N) => {
4873
+ g.d = (m, N) => {
4870
4874
  for (var R in N)
4871
- E.o(N, R) && !E.o(m, R) && Object.defineProperty(m, R, { enumerable: !0, get: N[R] });
4872
- }, E.o = (m, N) => Object.prototype.hasOwnProperty.call(m, N), E.r = (m) => {
4875
+ g.o(N, R) && !g.o(m, R) && Object.defineProperty(m, R, { enumerable: !0, get: N[R] });
4876
+ }, g.o = (m, N) => Object.prototype.hasOwnProperty.call(m, N), g.r = (m) => {
4873
4877
  typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
4874
4878
  };
4875
4879
  var O = {};
@@ -4877,17 +4881,17 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4877
4881
  /*!*******************************!*\
4878
4882
  !*** ./src/js-interpreter.js ***!
4879
4883
  \*******************************/
4880
- E.r(O), E.d(O, {
4884
+ g.r(O), g.d(O, {
4881
4885
  /* harmony export */
4882
4886
  default: () => R
4883
4887
  /* harmony export */
4884
4888
  });
4885
- const m = E(
4889
+ const m = g(
4886
4890
  /*! ../original-repo/acorn */
4887
4891
  "./original-repo/acorn.js"
4888
4892
  );
4889
4893
  globalThis.acorn = m;
4890
- const { Interpreter: N } = E(
4894
+ const { Interpreter: N } = g(
4891
4895
  /*! ../original-repo/interpreter */
4892
4896
  "./original-repo/interpreter.js"
4893
4897
  ), R = N;
@@ -4902,12 +4906,12 @@ function zs(n, s) {
4902
4906
  const R = n.pseudoToNative(N);
4903
4907
  console.log(R);
4904
4908
  }
4905
- function y(N) {
4909
+ function v(N) {
4906
4910
  const R = n.pseudoToNative(N);
4907
4911
  let r = "";
4908
4912
  typeof R == "object" ? r = JSON.stringify(R) : r = String(R), fn.emit("consoleAppend", r);
4909
4913
  }
4910
- function E(N, R) {
4914
+ function g(N, R) {
4911
4915
  const r = n.pseudoToNative(N), t = n.pseudoToNative(R);
4912
4916
  r === "info" ? Li(t) : r === "success" ? Mi(t) : r === "warning" ? Ui(t) : r === "error" && ji(t);
4913
4917
  }
@@ -4930,11 +4934,11 @@ function zs(n, s) {
4930
4934
  ), n.setProperty(
4931
4935
  s,
4932
4936
  "__debugTraceV1__",
4933
- n.createNativeFunction(y)
4937
+ n.createNativeFunction(v)
4934
4938
  ), n.setProperty(
4935
4939
  s,
4936
4940
  "__messageV1__",
4937
- n.createNativeFunction(E)
4941
+ n.createNativeFunction(g)
4938
4942
  ), n.setProperty(
4939
4943
  s,
4940
4944
  "__timeoutV1__",
@@ -4951,41 +4955,41 @@ class Hs {
4951
4955
  xt(this, "nodes");
4952
4956
  this.context = s, this.nodes = {};
4953
4957
  const p = this;
4954
- function y(E) {
4958
+ function v(g) {
4955
4959
  var O;
4956
- p.nodes[E.basic.id] = E, (O = E.children) == null || O.forEach((m) => y(m));
4960
+ p.nodes[g.basic.id] = g, (O = g.children) == null || O.forEach((m) => v(m));
4957
4961
  }
4958
- this.context.data.view.nodes.forEach((E) => y(E));
4962
+ this.context.data.view.nodes.forEach((g) => v(g));
4959
4963
  }
4960
4964
  getNode(s) {
4961
4965
  return this.nodes[s];
4962
4966
  }
4963
- addNode(s, p, y) {
4964
- let E;
4967
+ addNode(s, p, v) {
4968
+ let g;
4965
4969
  if (s) {
4966
4970
  const m = this.getNode(s);
4967
4971
  if (!m)
4968
4972
  return console.error(
4969
- `NodeMgr/addNode parent not found, parent=${s} ref=${p} key=${y}`
4973
+ `NodeMgr/addNode parent not found, parent=${s} ref=${p} keyOrRefid=${v}`
4970
4974
  ), "";
4971
4975
  if (!m.children)
4972
4976
  return console.error(
4973
- `NodeMgr/addNode parent no children, parent=${s} ref=${p} key=${y}`
4977
+ `NodeMgr/addNode parent no children, parent=${s} ref=${p} keyOrRefid=${v}`
4974
4978
  ), "";
4975
- E = m.children;
4979
+ g = m.children;
4976
4980
  } else
4977
- E = this.context.data.view.nodes;
4978
- if (!E)
4981
+ g = this.context.data.view.nodes;
4982
+ if (!g)
4979
4983
  return "";
4980
4984
  const O = Ts(
4981
4985
  this.context.type,
4982
4986
  this.context.data.type,
4983
4987
  this.context.data.version,
4984
4988
  p,
4985
- y
4989
+ v
4986
4990
  );
4987
- return O ? (E.push(O), this.nodes[O.basic.id] = O, O.basic.id) : (console.error(
4988
- "NodeMgr/addNode spawn node failed, parent=${parent} ref=${ref} key=${key}"
4991
+ return O ? (g.push(O), this.nodes[O.basic.id] = O, O.basic.id) : (console.error(
4992
+ `NodeMgr/addNode spawn node failed, parent=${s} ref=${p} key=${v}`
4989
4993
  ), "");
4990
4994
  }
4991
4995
  deleteNode(s) {
@@ -4993,28 +4997,28 @@ class Hs {
4993
4997
  }
4994
4998
  }
4995
4999
  function Ks(n, s, p) {
4996
- const y = new Hs(n);
4997
- function E(t, e, i) {
4998
- const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = y.addNode(o, u, c);
5000
+ const v = new Hs(n);
5001
+ function g(t, e, i) {
5002
+ const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = v.addNode(o, u, c);
4999
5003
  return s.nativeToPseudo(a);
5000
5004
  }
5001
5005
  function O(t) {
5002
5006
  const e = s.pseudoToNative(t);
5003
- y.deleteNode(e);
5007
+ v.deleteNode(e);
5004
5008
  }
5005
5009
  function m(t, e) {
5006
5010
  const i = s.pseudoToNative(t), o = s.pseudoToNative(e);
5007
5011
  let u;
5008
- if (i === "globality" ? u = n.data.view : u = y.getNode(i), !u) {
5012
+ if (i === "globality" ? u = n.data.view : u = v.getNode(i), !u) {
5009
5013
  console.error(`getNodePropV1 node not found, id=${i} keys=${o}`);
5010
5014
  return;
5011
5015
  }
5012
5016
  const c = o.split("."), a = c.length;
5013
5017
  for (let l = 0; l < a; l++) {
5014
- const v = c[l];
5018
+ const y = c[l];
5015
5019
  if (l === a - 1)
5016
- return s.nativeToPseudo(u[v]);
5017
- if (u = u[v], !u) {
5020
+ return s.nativeToPseudo(u[y]);
5021
+ if (u = u[y], !u) {
5018
5022
  console.error(`getNodePropV1 unpkg failed, id=${i} keys=${o}`);
5019
5023
  return;
5020
5024
  }
@@ -5023,16 +5027,16 @@ function Ks(n, s, p) {
5023
5027
  function N(t, e, i) {
5024
5028
  const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i);
5025
5029
  let a;
5026
- if (o === "globality" ? a = n.data.view : a = y.getNode(o), !a) {
5030
+ if (o === "globality" ? a = n.data.view : a = v.getNode(o), !a) {
5027
5031
  console.error(
5028
5032
  `setNodePropV1 node not found, id=${o} keys=${u} value=${c}`
5029
5033
  );
5030
5034
  return;
5031
5035
  }
5032
- const l = u.split("."), v = l.length;
5033
- for (let g = 0; g < v; g++) {
5034
- const T = l[g];
5035
- if (g === v - 1)
5036
+ const l = u.split("."), y = l.length;
5037
+ for (let E = 0; E < y; E++) {
5038
+ const T = l[E];
5039
+ if (E === y - 1)
5036
5040
  a[T] = c;
5037
5041
  else if (a = a[T], !a) {
5038
5042
  console.error(
@@ -5057,7 +5061,7 @@ function Ks(n, s, p) {
5057
5061
  s.setProperty(
5058
5062
  p,
5059
5063
  "__addNodeV1__",
5060
- s.createNativeFunction(E)
5064
+ s.createNativeFunction(g)
5061
5065
  ), s.setProperty(
5062
5066
  p,
5063
5067
  "__deleteNodeV1__",
@@ -5206,8 +5210,8 @@ function __timeoutCallbackV1__(timerId) {
5206
5210
  function rc(n, s) {
5207
5211
  const p = new Js(
5208
5212
  tc,
5209
- (y, E) => {
5210
- qs(n, y, E);
5213
+ (v, g) => {
5214
+ qs(n, v, g);
5211
5215
  }
5212
5216
  );
5213
5217
  return p.appendCode(s), p.appendCode(`
@@ -5227,16 +5231,16 @@ const nc = /* @__PURE__ */ un({
5227
5231
  outer: { type: Boolean }
5228
5232
  },
5229
5233
  setup(n) {
5230
- const { t: s } = Fi(), p = n, y = Ss(), E = Cs(), O = As(), m = Is(), N = Cr();
5234
+ const { t: s } = Fi(), p = n, v = Ss(), g = Cs(), O = As(), m = Is(), N = Cr();
5231
5235
  Ii(() => {
5232
- N.value = m[p.refContext.refid];
5236
+ console.log(p, m), N.value = m[p.refContext.refid];
5233
5237
  });
5234
5238
  const R = Cr();
5235
5239
  ks(R), ki(N, (a) => {
5236
5240
  a || fn.emit("compNotAvail", p.refContext.refid), R.value && (an(R.value), R.value = void 0), a && (R.value = rc(
5237
5241
  {
5238
- env: y,
5239
- type: E,
5242
+ env: v,
5243
+ type: g,
5240
5244
  data: a.data
5241
5245
  },
5242
5246
  a.data.code.script
@@ -5245,13 +5249,13 @@ const nc = /* @__PURE__ */ un({
5245
5249
  R.value && (an(R.value), R.value = void 0);
5246
5250
  });
5247
5251
  const { applySize: r } = js(p), t = J(() => {
5248
- const a = {};
5249
- switch (O.type) {
5252
+ const a = {}, l = O.type;
5253
+ switch (l) {
5250
5254
  case "common":
5251
5255
  r(a);
5252
5256
  break;
5253
5257
  default:
5254
- console.assert(!1, "invalid data type");
5258
+ console.assert(!1, `invalid subtype=${l}`);
5255
5259
  }
5256
5260
  return a;
5257
5261
  });
@@ -5266,26 +5270,26 @@ const nc = /* @__PURE__ */ un({
5266
5270
  }
5267
5271
  function i(a) {
5268
5272
  let l;
5269
- return a.basic.refid ? l = o(a) : l = u(a), l;
5273
+ return a.ref ? l = o(a) : l = u(a), l;
5270
5274
  }
5271
5275
  function o(a) {
5272
- const l = ln[O.version].refKey, v = Ne[l];
5273
- let g;
5274
- return v ? g = Le(v.comp, {
5276
+ const l = ln[O.version].refKey, y = Ne[l];
5277
+ let E;
5278
+ return y ? E = Le(y.comp, {
5275
5279
  refContext: {
5276
5280
  parent: p.refContext,
5277
- refid: a.basic.refid
5281
+ refid: a.ref.id
5278
5282
  },
5279
5283
  node: a
5280
- }) : console.assert(!1), g;
5284
+ }) : console.assert(!1), E;
5281
5285
  }
5282
5286
  function u(a) {
5283
- var g;
5287
+ var E;
5284
5288
  let l;
5285
- const v = Ne[a.basic.key];
5286
- return v ? ((g = a.children) == null || g.forEach((T) => {
5289
+ const y = Ne[a.basic.key];
5290
+ return y ? ((E = a.children) == null || E.forEach((T) => {
5287
5291
  i(T);
5288
- }), l = Le(v.comp, { node: a })) : console.assert(!1, `invalid element config key=${a.basic.key}`), l;
5292
+ }), l = Le(y.comp, { node: a })) : console.assert(!1, `invalid element key=${a.basic.key}`), l;
5289
5293
  }
5290
5294
  const c = () => {
5291
5295
  const a = [];
@@ -5293,10 +5297,10 @@ const nc = /* @__PURE__ */ un({
5293
5297
  a.push(Le("div", s("x-runtime-lib.circularRef")));
5294
5298
  else if (N.value) {
5295
5299
  const l = N.value.data.type;
5296
- l === "common" ? N.value.data.view.nodes.forEach((v) => {
5297
- const g = i(v);
5298
- a.push(g);
5299
- }) : console.assert(!1, `invalid data type dataType=${l}`);
5300
+ l === "common" ? N.value.data.view.nodes.forEach((y) => {
5301
+ const E = i(y);
5302
+ a.push(E);
5303
+ }) : console.assert(!1, `invalid subtype=${l}`);
5300
5304
  } else
5301
5305
  a.push(Le("div", s("x-runtime-lib.compNotAvail")));
5302
5306
  return Le("div", { id: p.id, style: t.value }, a);
@@ -5393,8 +5397,8 @@ for (const n in Ne) {
5393
5397
  s.leaf || s.methods.unshift(uc);
5394
5398
  }
5395
5399
  const sc = (n, s, p) => {
5396
- const y = n[s];
5397
- return y ? typeof y == "function" ? y() : Promise.resolve(y) : new Promise((E, O) => {
5400
+ const v = n[s];
5401
+ return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((g, O) => {
5398
5402
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5399
5403
  O.bind(
5400
5404
  null,