x-runtime-lib 0.4.14 → 0.4.16

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
@@ -22,34 +22,12 @@ const Gi = /* @__PURE__ */ new Set([
22
22
  groups: Vi
23
23
  }, ln = {
24
24
  v1: Yi
25
- }, nt = {
26
- key: "basic",
27
- name: "x-runtime-lib.basic",
28
- children: [
29
- {
30
- key: "id",
31
- name: "x-runtime-lib.id",
32
- ui: "strInput",
33
- readonly: !0
34
- },
35
- {
36
- key: "name",
37
- name: "x-runtime-lib.name",
38
- ui: "strInput",
39
- static: !0
40
- },
41
- {
42
- key: "alias",
43
- name: "x-runtime-lib.alias",
44
- ui: "strInput"
45
- }
46
- ]
47
25
  }, Ar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
48
26
  function pn(n) {
49
27
  let s = "";
50
28
  for (let p = 0; p < n; p++) {
51
- const y = Math.floor(Math.random() * Ar.length);
52
- s += Ar[y];
29
+ const v = Math.floor(Math.random() * Ar.length);
30
+ s += Ar[v];
53
31
  }
54
32
  return s;
55
33
  }
@@ -87,11 +65,11 @@ function qi(n) {
87
65
  var s = Hi.call(n, Me), p = n[Me];
88
66
  try {
89
67
  n[Me] = void 0;
90
- var y = !0;
68
+ var v = !0;
91
69
  } catch {
92
70
  }
93
- var E = Ki.call(n);
94
- return y && (s ? n[Me] = p : delete n[Me]), E;
71
+ var g = Ki.call(n);
72
+ return v && (s ? n[Me] = p : delete n[Me]), g;
95
73
  }
96
74
  var Zi = Object.prototype, Qi = Zi.toString;
97
75
  function ea(n) {
@@ -167,8 +145,8 @@ var kt = de(q, "WeakMap"), Dr = Object.create, ga = /* @__PURE__ */ function() {
167
145
  };
168
146
  }();
169
147
  function ba(n, s) {
170
- var p = -1, y = n.length;
171
- for (s || (s = Array(y)); ++p < y; )
148
+ var p = -1, v = n.length;
149
+ for (s || (s = Array(v)); ++p < v; )
172
150
  s[p] = n[p];
173
151
  return s;
174
152
  }
@@ -180,7 +158,7 @@ var Fr = function() {
180
158
  }
181
159
  }();
182
160
  function ma(n, s) {
183
- for (var p = -1, y = n == null ? 0 : n.length; ++p < y && s(n[p], p, n) !== !1; )
161
+ for (var p = -1, v = n == null ? 0 : n.length; ++p < v && s(n[p], p, n) !== !1; )
184
162
  ;
185
163
  return n;
186
164
  }
@@ -202,15 +180,15 @@ function _n(n, s) {
202
180
  }
203
181
  var Ta = Object.prototype, Sa = Ta.hasOwnProperty;
204
182
  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);
183
+ var v = n[s];
184
+ (!(Sa.call(n, s) && _n(v, p)) || p === void 0 && !(s in n)) && yn(n, s, p);
207
185
  }
208
- function it(n, s, p, y) {
209
- var E = !p;
186
+ function it(n, s, p, v) {
187
+ var g = !p;
210
188
  p || (p = {});
211
189
  for (var O = -1, m = s.length; ++O < m; ) {
212
190
  var N = s[O], R = void 0;
213
- R === void 0 && (R = n[N]), E ? yn(p, N, R) : En(p, N, R);
191
+ R === void 0 && (R = n[N]), g ? yn(p, N, R) : En(p, N, R);
214
192
  }
215
193
  return p;
216
194
  }
@@ -227,9 +205,9 @@ function jt(n) {
227
205
  return n === p;
228
206
  }
229
207
  function xa(n, s) {
230
- for (var p = -1, y = Array(n); ++p < n; )
231
- y[p] = s(p);
232
- return y;
208
+ for (var p = -1, v = Array(n); ++p < n; )
209
+ v[p] = s(p);
210
+ return v;
233
211
  }
234
212
  var Ca = "[object Arguments]";
235
213
  function Lr(n) {
@@ -262,11 +240,11 @@ var Nn = typeof exports == "object" && exports && !exports.nodeType && exports,
262
240
  }
263
241
  }(), jr = Oe && Oe.isTypedArray, co = jr ? Bt(jr) : uo, fo = Object.prototype, lo = fo.hasOwnProperty;
264
242
  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;
243
+ 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
244
  for (var r in n)
267
245
  (s || lo.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
268
246
  (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.
247
+ g && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
270
248
  O && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
271
249
  Na(r, R))) && N.push(r);
272
250
  return N;
@@ -300,8 +278,8 @@ function bo(n) {
300
278
  if (!Ye(n))
301
279
  return _o(n);
302
280
  var s = jt(n), p = [];
303
- for (var y in n)
304
- y == "constructor" && (s || !go.call(n, y)) || p.push(y);
281
+ for (var v in n)
282
+ v == "constructor" && (s || !go.call(n, v)) || p.push(v);
305
283
  return p;
306
284
  }
307
285
  function Gt(n) {
@@ -337,8 +315,8 @@ function Ao(n, s) {
337
315
  function pe(n) {
338
316
  var s = -1, p = n == null ? 0 : n.length;
339
317
  for (this.clear(); ++s < p; ) {
340
- var y = n[s];
341
- this.set(y[0], y[1]);
318
+ var v = n[s];
319
+ this.set(v[0], v[1]);
342
320
  }
343
321
  }
344
322
  pe.prototype.clear = mo;
@@ -360,8 +338,8 @@ function Fo(n) {
360
338
  var s = this.__data__, p = at(s, n);
361
339
  if (p < 0)
362
340
  return !1;
363
- var y = s.length - 1;
364
- return p == y ? s.pop() : Do.call(s, p, 1), --this.size, !0;
341
+ var v = s.length - 1;
342
+ return p == v ? s.pop() : Do.call(s, p, 1), --this.size, !0;
365
343
  }
366
344
  function Lo(n) {
367
345
  var s = this.__data__, p = at(s, n);
@@ -371,14 +349,14 @@ function Mo(n) {
371
349
  return at(this.__data__, n) > -1;
372
350
  }
373
351
  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;
352
+ var p = this.__data__, v = at(p, n);
353
+ return v < 0 ? (++this.size, p.push([n, s])) : p[v][1] = s, this;
376
354
  }
377
355
  function re(n) {
378
356
  var s = -1, p = n == null ? 0 : n.length;
379
357
  for (this.clear(); ++s < p; ) {
380
- var y = n[s];
381
- this.set(y[0], y[1]);
358
+ var v = n[s];
359
+ this.set(v[0], v[1]);
382
360
  }
383
361
  }
384
362
  re.prototype.clear = Io;
@@ -413,14 +391,14 @@ function Vo(n) {
413
391
  return ot(this, n).has(n);
414
392
  }
415
393
  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;
394
+ var p = ot(this, n), v = p.size;
395
+ return p.set(n, s), this.size += p.size == v ? 0 : 1, this;
418
396
  }
419
397
  function Te(n) {
420
398
  var s = -1, p = n == null ? 0 : n.length;
421
399
  for (this.clear(); ++s < p; ) {
422
- var y = n[s];
423
- this.set(y[0], y[1]);
400
+ var v = n[s];
401
+ this.set(v[0], v[1]);
424
402
  }
425
403
  }
426
404
  Te.prototype.clear = jo;
@@ -429,8 +407,8 @@ Te.prototype.get = Go;
429
407
  Te.prototype.has = Vo;
430
408
  Te.prototype.set = Yo;
431
409
  function Pn(n, s) {
432
- for (var p = -1, y = s.length, E = n.length; ++p < y; )
433
- n[E + p] = s[p];
410
+ for (var p = -1, v = s.length, g = n.length; ++p < v; )
411
+ n[g + p] = s[p];
434
412
  return n;
435
413
  }
436
414
  var wn = Sn(Object.getPrototypeOf, Object);
@@ -451,10 +429,10 @@ var Ho = 200;
451
429
  function Ko(n, s) {
452
430
  var p = this.__data__;
453
431
  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);
432
+ var v = p.__data__;
433
+ if (!Be || v.length < Ho - 1)
434
+ return v.push([n, s]), this.size = ++p.size, this;
435
+ p = this.__data__ = new Te(v);
458
436
  }
459
437
  return p.set(n, s), this.size = p.size, this;
460
438
  }
@@ -477,13 +455,13 @@ var xn = typeof exports == "object" && exports && !exports.nodeType && exports,
477
455
  function eu(n, s) {
478
456
  if (s)
479
457
  return n.slice();
480
- var p = n.length, y = Gr ? Gr(p) : new n.constructor(p);
481
- return n.copy(y), y;
458
+ var p = n.length, v = Gr ? Gr(p) : new n.constructor(p);
459
+ return n.copy(v), v;
482
460
  }
483
461
  function tu(n, s) {
484
- for (var p = -1, y = n == null ? 0 : n.length, E = 0, O = []; ++p < y; ) {
462
+ for (var p = -1, v = n == null ? 0 : n.length, g = 0, O = []; ++p < v; ) {
485
463
  var m = n[p];
486
- s(m, p, n) && (O[E++] = m);
464
+ s(m, p, n) && (O[g++] = m);
487
465
  }
488
466
  return O;
489
467
  }
@@ -507,8 +485,8 @@ function ou(n, s) {
507
485
  return it(n, An(n), s);
508
486
  }
509
487
  function In(n, s, p) {
510
- var y = s(n);
511
- return Ut(n) ? y : Pn(y, p(n));
488
+ var v = s(n);
489
+ return Ut(n) ? v : Pn(v, p(n));
512
490
  }
513
491
  function uu(n) {
514
492
  return In(n, $t, Vt);
@@ -518,9 +496,9 @@ function su(n) {
518
496
  }
519
497
  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
498
  (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) {
499
+ var s = Ge(n), p = s == cu ? n.constructor : void 0, v = p ? he(p) : "";
500
+ if (v)
501
+ switch (v) {
524
502
  case fu:
525
503
  return zr;
526
504
  case lu:
@@ -563,13 +541,13 @@ function Ru(n, s) {
563
541
  }
564
542
  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
543
  function Gu(n, s, p) {
566
- var y = n.constructor;
544
+ var v = n.constructor;
567
545
  switch (s) {
568
546
  case Au:
569
547
  return Yt(n);
570
548
  case Ou:
571
549
  case Nu:
572
- return new y(+n);
550
+ return new v(+n);
573
551
  case Iu:
574
552
  return Eu(n, p);
575
553
  case ku:
@@ -583,14 +561,14 @@ function Gu(n, s, p) {
583
561
  case $u:
584
562
  return Ru(n, p);
585
563
  case Tu:
586
- return new y();
564
+ return new v();
587
565
  case Su:
588
566
  case xu:
589
- return new y(n);
567
+ return new v(n);
590
568
  case Pu:
591
569
  return bu(n);
592
570
  case wu:
593
- return new y();
571
+ return new v();
594
572
  case Cu:
595
573
  return mu(n);
596
574
  }
@@ -609,7 +587,7 @@ function zu(n) {
609
587
  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
588
  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
589
  F[rs] = F[Dn] = F[fs] = !1;
612
- function rt(n, s, p, y, E, O) {
590
+ function rt(n, s, p, v, g, O) {
613
591
  var m, N = s & Ku, R = s & qu, r = s & Zu;
614
592
  if (m !== void 0)
615
593
  return m;
@@ -623,12 +601,12 @@ function rt(n, s, p, y, E, O) {
623
601
  var e = te(n), i = e == Dn || e == ns;
624
602
  if (On(n))
625
603
  return eu(n, N);
626
- if (e == Fn || e == kn || i && !E) {
604
+ if (e == Fn || e == kn || i && !g) {
627
605
  if (m = R || i ? {} : Vu(n), !N)
628
606
  return R ? ou(n, Zo(m, n)) : iu(n, qo(m, n));
629
607
  } else {
630
608
  if (!F[e])
631
- return E ? n : {};
609
+ return g ? n : {};
632
610
  m = Gu(n, e, N);
633
611
  }
634
612
  }
@@ -658,7 +636,7 @@ function Ns(n, s) {
658
636
  return "compCommon";
659
637
  }
660
638
  function en(n) {
661
- var s;
639
+ var s, p;
662
640
  if (n.array)
663
641
  return n.default instanceof Array ? Mt(n.default) : [];
664
642
  if (n.default !== void 0)
@@ -676,22 +654,24 @@ function en(n) {
676
654
  return ((s = n.items) == null ? void 0 : s[0].value) ?? "";
677
655
  case "colorPicker":
678
656
  return "#FFFFFF";
657
+ case "multiTypes":
658
+ return ((p = n.types) == null ? void 0 : p[0].default) ?? "";
679
659
  default:
680
660
  console.assert(!1, `not implemented ui=${n.ui}`);
681
661
  }
682
662
  }
683
663
  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));
664
+ function p(v, g) {
665
+ g.static || (g.children ? g.array ? v[g.key] = en(g) : g.children.forEach((O) => {
666
+ v[g.key] = {}, p(v[g.key], O);
667
+ }) : v[g.key] = en(g));
688
668
  }
689
- s.forEach((y) => p(n, y));
669
+ s.forEach((v) => p(n, v));
690
670
  }
691
- function Ts(n, s, p, y, E) {
671
+ function Ts(n, s, p, v, g) {
692
672
  const O = Ns(n, s);
693
673
  if (!O) {
694
- console.error("invalid prop tag");
674
+ console.error(`prop tag not found type=${n} subtype=${s}`);
695
675
  return;
696
676
  }
697
677
  const m = ln[p];
@@ -700,67 +680,71 @@ function Ts(n, s, p, y, E) {
700
680
  return;
701
681
  }
702
682
  const N = {
703
- basic: {}
683
+ basic: {
684
+ id: "",
685
+ key: ""
686
+ }
704
687
  }, R = pn(16);
705
- if (y) {
706
- const r = m.refKey;
688
+ if (v) {
689
+ const r = m.refKey, t = g;
707
690
  if (!m.elements.has(r)) {
708
- console.error(`[ref] element not found in pkg key=${E}`);
691
+ console.error(`[ref] element not found in pkg key=${r}`);
709
692
  return;
710
693
  }
711
- const t = Ne[r];
712
- if (!t) {
713
- console.error(`[ref] element not found in global key=${E}`);
694
+ const e = Ne[r];
695
+ if (!e) {
696
+ console.error(`[ref] element not found in global key=${r}`);
714
697
  return;
715
698
  }
716
- const e = t.props[O];
717
- if (!e) {
718
- console.error(`[ref] props not found key=${E} tag=${O}`);
699
+ const i = e.props[O];
700
+ if (!i) {
701
+ console.error(`[ref] props not found key=${r} tag=${O}`);
719
702
  return;
720
703
  }
721
- tn(N, e), N.basic.id = R, N.basic.key = r, N.basic.ref = {
722
- id: E
704
+ tn(N, i), N.basic.id = R, N.basic.key = r, N.ref = {
705
+ id: t
723
706
  };
724
707
  } else {
725
- if (!m.elements.has(E)) {
726
- console.error(`[key] element not found in pkg key=${E}`);
708
+ const r = g;
709
+ if (!m.elements.has(r)) {
710
+ console.error(`[key] element not found in pkg key=${r}`);
727
711
  return;
728
712
  }
729
- const r = Ne[E];
730
- if (!r) {
731
- console.error(`[key] element not found in global key=${E}`);
713
+ const t = Ne[r];
714
+ if (!t) {
715
+ console.error(`[key] element not found in global key=${r}`);
732
716
  return;
733
717
  }
734
- const t = r.props[O];
735
- if (!t) {
736
- console.error(`[key] props not found key=${E} tag=${O}`);
718
+ const e = t.props[O];
719
+ if (!e) {
720
+ console.error(`[key] props not found key=${r} tag=${O}`);
737
721
  return;
738
722
  }
739
- tn(N, t), N.basic.id = R, N.basic.key = E, r.leaf || (N.children = []);
723
+ tn(N, e), N.basic.id = R, N.basic.key = r, t.leaf || (N.children = []);
740
724
  }
741
725
  return N;
742
726
  }
743
727
  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]);
728
+ function p(v) {
729
+ if (v.basic.id === s)
730
+ return v;
731
+ if (v.children)
732
+ for (let g = 0; g < v.children.length; g++) {
733
+ const O = p(v.children[g]);
750
734
  if (O)
751
735
  return O;
752
736
  }
753
737
  }
754
- for (let y = 0; y < n.length; y++) {
755
- const E = p(n[y]);
756
- if (E)
757
- return E;
738
+ for (let v = 0; v < n.length; v++) {
739
+ const g = p(n[v]);
740
+ if (g)
741
+ return g;
758
742
  }
759
743
  }
760
744
  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));
745
+ function s(v) {
746
+ var g;
747
+ v.basic.id = pn(16), (g = v.children) == null || g.forEach((O) => s(O));
764
748
  }
765
749
  const p = Mt(n);
766
750
  return s(p), p;
@@ -823,12 +807,12 @@ const Ds = /* @__PURE__ */ un({
823
807
  outer: { type: Boolean }
824
808
  },
825
809
  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");
810
+ 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
811
  return (r, t) => {
828
812
  const e = Ai("v-btn");
829
813
  return sn(), cn(e, {
830
- text: y.value,
831
- disabled: E.value,
814
+ text: v.value,
815
+ disabled: g.value,
832
816
  variant: O.value,
833
817
  density: m.value,
834
818
  block: N.value,
@@ -836,7 +820,29 @@ const Ds = /* @__PURE__ */ un({
836
820
  }, null, 8, ["text", "disabled", "variant", "density", "block", "theme"]);
837
821
  };
838
822
  }
839
- }), Fs = [
823
+ }), nt = {
824
+ key: "basic",
825
+ name: "x-runtime-lib.basic",
826
+ children: [
827
+ {
828
+ key: "id",
829
+ name: "x-runtime-lib.id",
830
+ ui: "strInput",
831
+ readonly: !0
832
+ },
833
+ {
834
+ key: "name",
835
+ name: "x-runtime-lib.name",
836
+ ui: "strInput",
837
+ static: !0
838
+ },
839
+ {
840
+ key: "alias",
841
+ name: "x-runtime-lib.alias",
842
+ ui: "strInput"
843
+ }
844
+ ]
845
+ }, Fs = [
840
846
  { title: "x-runtime-lib.elevated", value: "elevated" },
841
847
  { title: "x-runtime-lib.flat", value: "flat" },
842
848
  { title: "x-runtime-lib.tonal", value: "tonal" },
@@ -954,36 +960,9 @@ const Ds = /* @__PURE__ */ un({
954
960
  compCommon: [nn]
955
961
  },
956
962
  internal: !0
957
- }, me = [
958
- {
959
- name: "default",
960
- ui: "word",
961
- validator: Xi,
962
- default: ""
963
- },
964
- {
965
- name: "pixel",
966
- ui: "pixelInput",
967
- validator: Wi,
968
- default: "0px",
969
- precision: 0,
970
- min: 0,
971
- max: 1 / 0,
972
- step: 1
973
- },
974
- {
975
- name: "percent",
976
- ui: "percentInput",
977
- validator: Ji,
978
- default: "0%",
979
- precision: 4,
980
- min: 0,
981
- max: 1 / 0,
982
- step: 1
983
- }
984
- ];
963
+ };
985
964
  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(() => {
965
+ const s = Ps(), p = ws(), v = J(() => n.node.width), g = J(() => n.node.minWidth), O = J(() => n.node.maxWidth), m = J(() => {
987
966
  if (n.outer && s === "editor") {
988
967
  const t = Ct(n.node.height);
989
968
  if (t)
@@ -1006,9 +985,9 @@ function js(n) {
1006
985
  return n.node.maxHeight;
1007
986
  });
1008
987
  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);
988
+ 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
989
  }
1011
- return { width: y, minWidth: E, maxWidth: O, height: m, minHeight: N, maxHeight: R, applySize: r };
990
+ return { width: v, minWidth: g, maxWidth: O, height: m, minHeight: N, maxHeight: R, applySize: r };
1012
991
  }
1013
992
  var Bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1014
993
  function $s(n) {
@@ -1018,17 +997,17 @@ function Gs(n) {
1018
997
  if (n.__esModule) return n;
1019
998
  var s = n.default;
1020
999
  if (typeof s == "function") {
1021
- var p = function y() {
1022
- return this instanceof y ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
1000
+ var p = function v() {
1001
+ return this instanceof v ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
1023
1002
  };
1024
1003
  p.prototype = s.prototype;
1025
1004
  } 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 : {
1005
+ return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(v) {
1006
+ var g = Object.getOwnPropertyDescriptor(n, v);
1007
+ Object.defineProperty(p, v, g.get ? g : {
1029
1008
  enumerable: !0,
1030
1009
  get: function() {
1031
- return n[y];
1010
+ return n[v];
1032
1011
  }
1033
1012
  });
1034
1013
  }), p;
@@ -1039,8 +1018,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1039
1018
  default: Vs
1040
1019
  }, Symbol.toStringTag, { value: "Module" })), Xs = /* @__PURE__ */ Gs(Ys);
1041
1020
  (function(n, s) {
1042
- (function(y, E) {
1043
- n.exports = E();
1021
+ (function(v, g) {
1022
+ n.exports = g();
1044
1023
  })(Bs, () => (
1045
1024
  /******/
1046
1025
  (() => {
@@ -1072,8 +1051,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1072
1051
  typeof this[l] == "function" && (a = l.match(c)) && (this.stepFunctions_[a[1]] = this[l].bind(this));
1073
1052
  this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
1074
1053
  `), "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;
1054
+ var y = new r.State(this.ast, this.globalScope);
1055
+ 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
1056
  };
1078
1057
  r.Completion = {
1079
1058
  NORMAL: 0,
@@ -1293,8 +1272,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1293
1272
  return function(l) {
1294
1273
  try {
1295
1274
  return a(l);
1296
- } catch (v) {
1297
- e.throwException(e.URI_ERROR, v.message);
1275
+ } catch (y) {
1276
+ e.throwException(e.URI_ERROR, y.message);
1298
1277
  }
1299
1278
  };
1300
1279
  }(u[c][0]), this.setProperty(
@@ -1341,14 +1320,14 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1341
1320
  var a = "";
1342
1321
  var l = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1343
1322
  if (l) {
1344
- for (var v = l.split(/\s*,\s*/), g = 0; g < v.length; g++) {
1345
- var T = v[g];
1323
+ for (var y = l.split(/\s*,\s*/), E = 0; E < y.length; E++) {
1324
+ var T = y[E];
1346
1325
  o.test(T) || e.throwException(
1347
1326
  e.SYNTAX_ERROR,
1348
1327
  "Invalid function argument: " + T
1349
1328
  );
1350
1329
  }
1351
- l = v.join(", ");
1330
+ l = y.join(", ");
1352
1331
  }
1353
1332
  try {
1354
1333
  var b = e.parse_(
@@ -1393,11 +1372,11 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1393
1372
  0,
1394
1373
  r.READONLY_NONENUMERABLE_DESCRIPTOR
1395
1374
  ), 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(
1375
+ var y = e.stateStack[e.stateStack.length - 1];
1376
+ y.func_ = c, y.funcThis_ = a, y.arguments_ = [], l != null && (l instanceof r.Object ? y.arguments_ = Array.from(l.properties) : e.throwException(
1398
1377
  e.TYPE_ERROR,
1399
1378
  "CreateListFromArrayLike called on non-object"
1400
- )), v.doneExec_ = !1;
1379
+ )), y.doneExec_ = !1;
1401
1380
  }, this.setNativeFunctionPrototype(this.FUNCTION, "apply", i), this.polyfills_.push(
1402
1381
  /* POLYFILL START */
1403
1382
  // Flatten the apply args list to remove any inheritance or getter functions.
@@ -1588,8 +1567,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1588
1567
  e.TYPE_ERROR,
1589
1568
  "Object.getOwnPropertyDescriptor called on non-object: " + c
1590
1569
  ), 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(
1570
+ var l = Object.getOwnPropertyDescriptor(c.properties, a), y = c.getter[a], E = c.setter[a], T = e.createObjectProto(e.OBJECT_PROTO);
1571
+ return y || E ? (e.setProperty(T, "get", y), e.setProperty(T, "set", E)) : (e.setProperty(
1593
1572
  T,
1594
1573
  "value",
1595
1574
  /** @type {!Interpreter.Value} */
@@ -2168,106 +2147,106 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2168
2147
  o[u],
2169
2148
  String.prototype[o[u]]
2170
2149
  );
2171
- i = function(a, l, v) {
2172
- l = e.pseudoToNative(l), v = e.pseudoToNative(v);
2150
+ i = function(a, l, y) {
2151
+ l = e.pseudoToNative(l), y = e.pseudoToNative(y);
2173
2152
  try {
2174
2153
  return String(this).localeCompare(
2175
2154
  a,
2176
2155
  /** @type {?} */
2177
2156
  l,
2178
2157
  /** @type {?} */
2179
- v
2158
+ y
2180
2159
  );
2181
- } catch (g) {
2160
+ } catch (E) {
2182
2161
  e.throwException(
2183
2162
  e.ERROR,
2184
- "localeCompare: " + g.message
2163
+ "localeCompare: " + E.message
2185
2164
  );
2186
2165
  }
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)) {
2166
+ }, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, l, y) {
2167
+ var E = String(this);
2168
+ if (l = l ? Number(l) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
2190
2169
  if (r.vm) {
2191
2170
  var T = {
2192
- string: g,
2171
+ string: E,
2193
2172
  separator: a,
2194
2173
  limit: l
2195
- }, b = "string.split(separator, limit)", D = e.vmCall(b, T, a, v);
2196
- D !== r.REGEXP_TIMEOUT && v(e.nativeToPseudo(D));
2174
+ }, b = "string.split(separator, limit)", D = e.vmCall(b, T, a, y);
2175
+ D !== r.REGEXP_TIMEOUT && y(e.nativeToPseudo(D));
2197
2176
  } else {
2198
2177
  var P = e.createWorker(), I = e.regExpTimeout(
2199
2178
  a,
2200
2179
  P,
2201
- v
2180
+ y
2202
2181
  );
2203
2182
  P.onmessage = function(X) {
2204
- clearTimeout(I), v(e.nativeToPseudo(X.data));
2205
- }, P.postMessage(["split", g, a, l]);
2183
+ clearTimeout(I), y(e.nativeToPseudo(X.data));
2184
+ }, P.postMessage(["split", E, a, l]);
2206
2185
  }
2207
2186
  return;
2208
2187
  }
2209
- var D = g.split(a, l);
2210
- v(e.nativeToPseudo(D));
2188
+ var D = E.split(a, l);
2189
+ y(e.nativeToPseudo(D));
2211
2190
  }, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, l) {
2212
- var v = String(this);
2191
+ var y = String(this);
2213
2192
  if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
2214
2193
  if (r.vm) {
2215
- var g = {
2216
- string: v,
2194
+ var E = {
2195
+ string: y,
2217
2196
  regexp: a
2218
- }, T = "string.match(regexp)", I = e.vmCall(T, g, a, l);
2197
+ }, T = "string.match(regexp)", I = e.vmCall(T, E, a, l);
2219
2198
  I !== r.REGEXP_TIMEOUT && l(I && e.matchToPseudo_(I));
2220
2199
  } else {
2221
2200
  var b = e.createWorker(), P = e.regExpTimeout(a, b, l);
2222
2201
  b.onmessage = function(D) {
2223
2202
  clearTimeout(P), l(D.data && e.matchToPseudo_(D.data));
2224
- }, b.postMessage(["match", v, a]);
2203
+ }, b.postMessage(["match", y, a]);
2225
2204
  }
2226
2205
  return;
2227
2206
  }
2228
- var I = v.match(a);
2207
+ var I = y.match(a);
2229
2208
  l(I && e.matchToPseudo_(I));
2230
2209
  }, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, l) {
2231
- var v = String(this);
2210
+ var y = String(this);
2232
2211
  if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
2233
2212
  if (r.vm) {
2234
- var g = {
2235
- string: v,
2213
+ var E = {
2214
+ string: y,
2236
2215
  regexp: a
2237
- }, T = "string.search(regexp)", b = e.vmCall(T, g, a, l);
2216
+ }, T = "string.search(regexp)", b = e.vmCall(T, E, a, l);
2238
2217
  b !== r.REGEXP_TIMEOUT && l(b);
2239
2218
  } else {
2240
2219
  var P = e.createWorker(), I = e.regExpTimeout(a, P, l);
2241
2220
  P.onmessage = function(D) {
2242
2221
  clearTimeout(I), l(D.data);
2243
- }, P.postMessage(["search", v, a]);
2222
+ }, P.postMessage(["search", y, a]);
2244
2223
  }
2245
2224
  return;
2246
2225
  }
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)) {
2226
+ l(y.search(a));
2227
+ }, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, l, y) {
2228
+ var E = String(this);
2229
+ if (l = String(l), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
2251
2230
  if (r.vm) {
2252
2231
  var T = {
2253
- string: g,
2232
+ string: E,
2254
2233
  substr: a,
2255
2234
  newSubstr: l
2256
- }, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, T, a, v);
2257
- P !== r.REGEXP_TIMEOUT && v(P);
2235
+ }, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, T, a, y);
2236
+ P !== r.REGEXP_TIMEOUT && y(P);
2258
2237
  } else {
2259
2238
  var I = e.createWorker(), D = e.regExpTimeout(
2260
2239
  a,
2261
2240
  I,
2262
- v
2241
+ y
2263
2242
  );
2264
2243
  I.onmessage = function(X) {
2265
- clearTimeout(D), v(X.data);
2266
- }, I.postMessage(["replace", g, a, l]);
2244
+ clearTimeout(D), y(X.data);
2245
+ }, I.postMessage(["replace", E, a, l]);
2267
2246
  }
2268
2247
  return;
2269
2248
  }
2270
- v(g.replace(a, l));
2249
+ y(E.replace(a, l));
2271
2250
  }, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
2272
2251
  /* POLYFILL START */
2273
2252
  "(function() {",
@@ -2373,10 +2352,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2373
2352
  /** @type {?} */
2374
2353
  l
2375
2354
  );
2376
- } catch (v) {
2355
+ } catch (y) {
2377
2356
  e.throwException(
2378
2357
  e.ERROR,
2379
- "toLocaleString: " + v.message
2358
+ "toLocaleString: " + y.message
2380
2359
  );
2381
2360
  }
2382
2361
  }, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
@@ -2385,10 +2364,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2385
2364
  i = function(a, l) {
2386
2365
  if (!e.calledWithNew())
2387
2366
  return r.nativeGlobal.Date();
2388
- var v = [null].concat(Array.from(arguments));
2367
+ var y = [null].concat(Array.from(arguments));
2389
2368
  return this.data = new (Function.prototype.bind.apply(
2390
2369
  r.nativeGlobal.Date,
2391
- v
2370
+ y
2392
2371
  ))(), this;
2393
2372
  }, this.DATE = this.createNativeFunction(i, !0), this.DATE_PROTO = this.DATE.properties.prototype, this.setProperty(
2394
2373
  t,
@@ -2463,9 +2442,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2463
2442
  e.TYPE_ERROR,
2464
2443
  c + " not called on a Date"
2465
2444
  );
2466
- for (var v = [], g = 0; g < arguments.length; g++)
2467
- v[g] = e.pseudoToNative(arguments[g]);
2468
- return l[c].apply(l, v);
2445
+ for (var y = [], E = 0; E < arguments.length; E++)
2446
+ y[E] = e.pseudoToNative(arguments[E]);
2447
+ return l[c].apply(l, y);
2469
2448
  };
2470
2449
  }(o[u]), this.setNativeFunctionPrototype(this.DATE, o[u], i);
2471
2450
  i = function() {
@@ -2494,8 +2473,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2494
2473
  );
2495
2474
  try {
2496
2475
  var l = new r.nativeGlobal.RegExp(u, c);
2497
- } catch (v) {
2498
- e.throwException(e.SYNTAX_ERROR, v.message);
2476
+ } catch (y) {
2477
+ e.throwException(e.SYNTAX_ERROR, y.message);
2499
2478
  }
2500
2479
  return e.populateRegExp(a, l), a;
2501
2480
  }, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
@@ -2539,13 +2518,13 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2539
2518
  var l = {
2540
2519
  string: u,
2541
2520
  regexp: a
2542
- }, v = "regexp.exec(string)", P = e.vmCall(v, l, a, c);
2521
+ }, y = "regexp.exec(string)", P = e.vmCall(y, l, a, c);
2543
2522
  P !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(P)));
2544
2523
  } else {
2545
- var g = e.createWorker(), T = e.regExpTimeout(a, g, c), b = this;
2546
- g.onmessage = function(I) {
2524
+ var E = e.createWorker(), T = e.regExpTimeout(a, E, c), b = this;
2525
+ E.onmessage = function(I) {
2547
2526
  clearTimeout(T), e.setProperty(b, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
2548
- }, g.postMessage(["exec", a, a.lastIndex, u]);
2527
+ }, E.postMessage(["exec", a, a.lastIndex, u]);
2549
2528
  }
2550
2529
  return;
2551
2530
  }
@@ -2688,13 +2667,13 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2688
2667
  ) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(T) {
2689
2668
  return typeof T == "string" || typeof T == "number";
2690
2669
  })) : a = null, typeof l != "string" && typeof l != "number" && (l = void 0);
2691
- var v = i.pseudoToNative(c);
2670
+ var y = i.pseudoToNative(c);
2692
2671
  try {
2693
- var g = JSON.stringify(v, a, l);
2672
+ var E = JSON.stringify(y, a, l);
2694
2673
  } catch (T) {
2695
2674
  i.throwException(i.TYPE_ERROR, T.message);
2696
2675
  }
2697
- return g;
2676
+ return E;
2698
2677
  }, this.setProperty(
2699
2678
  o,
2700
2679
  "stringify",
@@ -2754,17 +2733,17 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2754
2733
  }
2755
2734
  c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
2756
2735
  }
2757
- for (var l = String(this.getProperty(t, "name")), v = String(this.getProperty(t, "message")), g = l + ": " + v + `
2736
+ for (var l = String(this.getProperty(t, "name")), y = String(this.getProperty(t, "message")), E = l + ": " + y + `
2758
2737
  `, o = 0; o < i.length; o++) {
2759
2738
  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 + `
2739
+ b ? E += " at " + b + " (" + P + `)
2740
+ ` : E += " at " + P + `
2762
2741
  `;
2763
2742
  }
2764
2743
  this.setProperty(
2765
2744
  t,
2766
2745
  "stack",
2767
- g.trim(),
2746
+ E.trim(),
2768
2747
  r.NONENUMERABLE_DESCRIPTOR
2769
2748
  );
2770
2749
  }, r.prototype.createWorker = function() {
@@ -2904,8 +2883,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2904
2883
  return a.pseudoToNative(D);
2905
2884
  }), I = t.apply(a, P);
2906
2885
  return a.nativeToPseudo(I);
2907
- }, v = Object.getOwnPropertyDescriptor(t, "prototype"), g = this.createNativeFunction(l, !!v);
2908
- return i.pseudo.push(g), g;
2886
+ }, y = Object.getOwnPropertyDescriptor(t, "prototype"), E = this.createNativeFunction(l, !!y);
2887
+ return i.pseudo.push(E), E;
2909
2888
  }
2910
2889
  var T;
2911
2890
  Array.isArray(t) ? T = this.createArray() : T = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(T);
@@ -2938,10 +2917,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2938
2917
  var a = this.isa(t, this.ARRAY) ? [] : {};
2939
2918
  i.native.push(a);
2940
2919
  var l;
2941
- for (var v in t.properties)
2942
- l = this.pseudoToNative(t.properties[v], i), Object.defineProperty(
2920
+ for (var y in t.properties)
2921
+ l = this.pseudoToNative(t.properties[y], i), Object.defineProperty(
2943
2922
  a,
2944
- v,
2923
+ y,
2945
2924
  {
2946
2925
  value: l,
2947
2926
  writable: !0,
@@ -3036,10 +3015,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3036
3015
  return;
3037
3016
  }
3038
3017
  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]);
3018
+ var y = {};
3019
+ "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
3020
  try {
3042
- Object.defineProperty(t.properties, e, v);
3021
+ Object.defineProperty(t.properties, e, y);
3043
3022
  } catch {
3044
3023
  this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
3045
3024
  }
@@ -3047,14 +3026,14 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3047
3026
  } else {
3048
3027
  if (i === r.VALUE_IN_DESCRIPTOR)
3049
3028
  throw ReferenceError("Value not specified");
3050
- for (var g = t; !(e in g.properties); )
3051
- if (g = this.getPrototype(g), !g) {
3052
- g = t;
3029
+ for (var E = t; !(e in E.properties); )
3030
+ if (E = this.getPrototype(E), !E) {
3031
+ E = t;
3053
3032
  break;
3054
3033
  }
3055
- if (g.setter && g.setter[e])
3056
- return this.setterStep_ = !0, g.setter[e];
3057
- if (g.getter && g.getter[e])
3034
+ if (E.setter && E.setter[e])
3035
+ return this.setterStep_ = !0, E.setter[e];
3036
+ if (E.getter && E.getter[e])
3058
3037
  u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
3059
3038
  else
3060
3039
  try {
@@ -3247,8 +3226,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3247
3226
  SyntaxError,
3248
3227
  TypeError,
3249
3228
  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"));
3229
+ }, l = String(this.getProperty(e, "name")), y = this.getProperty(e, "message").valueOf(), E = a[l] || Error;
3230
+ c = E(y), c.stack = String(this.getProperty(e, "stack"));
3252
3231
  } else
3253
3232
  c = String(e);
3254
3233
  throw this.value = c, c;
@@ -3284,21 +3263,21 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3284
3263
  }
3285
3264
  return "???";
3286
3265
  }, 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;
3266
+ 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
3267
  if (u instanceof r.Object && u.class === "Function")
3289
- v = u, a.type = "CallExpression", l = i.scope;
3268
+ y = u, a.type = "CallExpression", l = i.scope;
3290
3269
  else {
3291
3270
  try {
3292
- g = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
3271
+ E = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
3293
3272
  } catch (D) {
3294
3273
  this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
3295
3274
  }
3296
- a.type = "EvalProgram_", a.body = g.body;
3275
+ a.type = "EvalProgram_", a.body = E.body;
3297
3276
  var T = i.node.arguments[0], b = T ? T.start : void 0, P = T ? T.end : void 0;
3298
3277
  r.stripLocations_(a, b, P), l = this.globalScope, o.length = 0;
3299
3278
  }
3300
3279
  var I = new r.Task(
3301
- v,
3280
+ y,
3302
3281
  o,
3303
3282
  l,
3304
3283
  a,
@@ -3391,20 +3370,20 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3391
3370
  var t = r.toStringCycles_;
3392
3371
  if (t.indexOf(this) !== -1)
3393
3372
  return "[object Error]";
3394
- var a, l, v = this;
3373
+ var a, l, y = this;
3395
3374
  do
3396
- if ("name" in v.properties) {
3397
- a = v.properties.name;
3375
+ if ("name" in y.properties) {
3376
+ a = y.properties.name;
3398
3377
  break;
3399
3378
  }
3400
- while (v = v.proto);
3401
- v = this;
3379
+ while (y = y.proto);
3380
+ y = this;
3402
3381
  do
3403
- if ("message" in v.properties) {
3404
- l = v.properties.message;
3382
+ if ("message" in y.properties) {
3383
+ l = y.properties.message;
3405
3384
  break;
3406
3385
  }
3407
- while (v = v.proto);
3386
+ while (y = y.proto);
3408
3387
  t.push(this);
3409
3388
  try {
3410
3389
  a = a && String(a), l = l && String(l);
@@ -3494,9 +3473,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3494
3473
  default:
3495
3474
  throw SyntaxError("Unknown assignment expression: " + i.operator);
3496
3475
  }
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);
3476
+ var y = this.setValue(e.leftReference_, a);
3477
+ if (y)
3478
+ return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(y, e.leftReference_, a);
3500
3479
  t.pop(), t[t.length - 1].value = a;
3501
3480
  }, r.prototype.stepBinaryExpression = function(t, e, i) {
3502
3481
  if (!e.doneLeft_)
@@ -3634,11 +3613,11 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3634
3613
  );
3635
3614
  var a = u.node;
3636
3615
  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;
3616
+ for (var l = this.createScope(a.body, u.parentScope), y = this.createArray(), E = 0; E < e.arguments_.length; E++)
3617
+ this.setProperty(y, E, e.arguments_[E]);
3618
+ this.setProperty(l.object, "arguments", y);
3619
+ for (var E = 0; E < a.params.length; E++) {
3620
+ var T = a.params[E].name, b = e.arguments_.length > E ? e.arguments_[E] : void 0;
3642
3621
  this.setProperty(l.object, T, b);
3643
3622
  }
3644
3623
  return l.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
@@ -3896,7 +3875,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3896
3875
  for (var a in e.properties_) {
3897
3876
  var l = e.properties_[a];
3898
3877
  if ("get" in l || "set" in l) {
3899
- var v = {
3878
+ var y = {
3900
3879
  configurable: !0,
3901
3880
  enumerable: !0,
3902
3881
  get: l.get,
@@ -3906,7 +3885,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
3906
3885
  e.object_,
3907
3886
  a,
3908
3887
  r.VALUE_IN_DESCRIPTOR,
3909
- v
3888
+ y
3910
3889
  );
3911
3890
  } else
3912
3891
  this.setProperty(e.object_, a, l.init);
@@ -4045,9 +4024,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4045
4024
  a = c - 1;
4046
4025
  else
4047
4026
  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);
4027
+ var l = i.prefix ? a : c, y = this.setValue(e.leftSide_, a);
4028
+ if (y)
4029
+ return e.doneSetter_ = !0, e.setterValue_ = l, this.createSetter_(y, e.leftSide_, a);
4051
4030
  t.pop(), t[t.length - 1].value = l;
4052
4031
  }, r.prototype.stepVariableDeclaration = function(t, e, i) {
4053
4032
  var o = i.declarations, u = e.n_ || 0, c = o[u];
@@ -4157,7 +4136,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4157
4136
  break;
4158
4137
  }
4159
4138
  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;
4139
+ }, a = 0, l = 0, y = 0, E, T, b, P, I, D, X, Pe = 0, z = 0, ve, se, j, W;
4161
4140
  function A(f, h) {
4162
4141
  var d = c(t, f);
4163
4142
  h += " (" + d.line + ":" + d.column + ")";
@@ -4214,7 +4193,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4214
4193
  D = 1, a = X = 0, I = !0, Ce();
4215
4194
  }
4216
4195
  function $(f, h) {
4217
- v = a, r.locations && (T = new fe()), b = f, Ce(), P = h, I = f.beforeExpr;
4196
+ y = a, r.locations && (T = new fe()), b = f, Ce(), P = h, I = f.beforeExpr;
4218
4197
  }
4219
4198
  function ci() {
4220
4199
  var f = r.onComment && r.locations && new fe(), h = a, d = t.indexOf("*/", a += 2);
@@ -4383,7 +4362,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4383
4362
  return !1;
4384
4363
  }
4385
4364
  function Ee(f) {
4386
- if (f ? a = l + 1 : l = a, r.locations && (g = new fe()), f) return mr();
4365
+ if (f ? a = l + 1 : l = a, r.locations && (E = new fe()), f) return mr();
4387
4366
  if (a >= e) return $(st);
4388
4367
  var h = t.charCodeAt(a);
4389
4368
  if (qe(h) || h === 92)
@@ -4538,7 +4517,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4538
4517
  !ge && ii(f) && (h = Jn[f]), $(h, f);
4539
4518
  }
4540
4519
  function k() {
4541
- Pe = l, z = v, ve = T, Ee();
4520
+ Pe = l, z = y, ve = T, Ee();
4542
4521
  }
4543
4522
  function Et(f) {
4544
4523
  if (W = f, a = l, r.locations)
@@ -4551,7 +4530,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4551
4530
  this.type = null, this.start = l, this.end = null;
4552
4531
  }
4553
4532
  function Sr() {
4554
- this.start = g, this.end = null, i && (this.source = i);
4533
+ this.start = E, this.end = null, i && (this.source = i);
4555
4534
  }
4556
4535
  function V() {
4557
4536
  var f = new Tr();
@@ -4759,16 +4738,16 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4759
4738
  case Xe:
4760
4739
  case ut:
4761
4740
  case Xt:
4762
- return f = V(), f.value = P, f.raw = t.slice(l, v), k(), w(f, "Literal");
4741
+ return f = V(), f.value = P, f.raw = t.slice(l, y), k(), w(f, "Literal");
4763
4742
  case ur:
4764
4743
  case sr:
4765
4744
  case cr:
4766
4745
  return f = V(), f.value = b.atomValue, f.raw = b.keyword, k(), w(f, "Literal");
4767
4746
  case Z:
4768
- var h = g, d = l;
4747
+ var h = E, d = l;
4769
4748
  k();
4770
4749
  var _ = Y();
4771
- return _.start = d, _.end = v, r.locations && (_.loc.start = h, _.loc.end = T), r.ranges && (_.range = [d, v]), B(K), _;
4750
+ return _.start = d, _.end = y, r.locations && (_.loc.start = h, _.loc.end = T), r.ranges && (_.range = [d, y]), B(K), _;
4772
4751
  case vt:
4773
4752
  return f = V(), k(), f.elements = Pt(yt, !0, !0), w(f, "ArrayExpression");
4774
4753
  case we:
@@ -4834,7 +4813,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4834
4813
  }
4835
4814
  function ae(f) {
4836
4815
  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");
4816
+ 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
4817
  }
4839
4818
  });
4840
4819
  }
@@ -4850,12 +4829,12 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4850
4829
  }
4851
4830
  )
4852
4831
  /******/
4853
- }, y = {};
4854
- function E(m) {
4855
- var N = y[m];
4832
+ }, v = {};
4833
+ function g(m) {
4834
+ var N = v[m];
4856
4835
  if (N !== void 0)
4857
4836
  return N.exports;
4858
- var R = y[m] = {
4837
+ var R = v[m] = {
4859
4838
  /******/
4860
4839
  // no module.id needed
4861
4840
  /******/
@@ -4864,12 +4843,12 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4864
4843
  exports: {}
4865
4844
  /******/
4866
4845
  };
4867
- return p[m].call(R.exports, R, R.exports, E), R.exports;
4846
+ return p[m].call(R.exports, R, R.exports, g), R.exports;
4868
4847
  }
4869
- E.d = (m, N) => {
4848
+ g.d = (m, N) => {
4870
4849
  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) => {
4850
+ g.o(N, R) && !g.o(m, R) && Object.defineProperty(m, R, { enumerable: !0, get: N[R] });
4851
+ }, g.o = (m, N) => Object.prototype.hasOwnProperty.call(m, N), g.r = (m) => {
4873
4852
  typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
4874
4853
  };
4875
4854
  var O = {};
@@ -4877,17 +4856,17 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4877
4856
  /*!*******************************!*\
4878
4857
  !*** ./src/js-interpreter.js ***!
4879
4858
  \*******************************/
4880
- E.r(O), E.d(O, {
4859
+ g.r(O), g.d(O, {
4881
4860
  /* harmony export */
4882
4861
  default: () => R
4883
4862
  /* harmony export */
4884
4863
  });
4885
- const m = E(
4864
+ const m = g(
4886
4865
  /*! ../original-repo/acorn */
4887
4866
  "./original-repo/acorn.js"
4888
4867
  );
4889
4868
  globalThis.acorn = m;
4890
- const { Interpreter: N } = E(
4869
+ const { Interpreter: N } = g(
4891
4870
  /*! ../original-repo/interpreter */
4892
4871
  "./original-repo/interpreter.js"
4893
4872
  ), R = N;
@@ -4902,12 +4881,12 @@ function zs(n, s) {
4902
4881
  const R = n.pseudoToNative(N);
4903
4882
  console.log(R);
4904
4883
  }
4905
- function y(N) {
4884
+ function v(N) {
4906
4885
  const R = n.pseudoToNative(N);
4907
4886
  let r = "";
4908
4887
  typeof R == "object" ? r = JSON.stringify(R) : r = String(R), fn.emit("consoleAppend", r);
4909
4888
  }
4910
- function E(N, R) {
4889
+ function g(N, R) {
4911
4890
  const r = n.pseudoToNative(N), t = n.pseudoToNative(R);
4912
4891
  r === "info" ? Li(t) : r === "success" ? Mi(t) : r === "warning" ? Ui(t) : r === "error" && ji(t);
4913
4892
  }
@@ -4930,11 +4909,11 @@ function zs(n, s) {
4930
4909
  ), n.setProperty(
4931
4910
  s,
4932
4911
  "__debugTraceV1__",
4933
- n.createNativeFunction(y)
4912
+ n.createNativeFunction(v)
4934
4913
  ), n.setProperty(
4935
4914
  s,
4936
4915
  "__messageV1__",
4937
- n.createNativeFunction(E)
4916
+ n.createNativeFunction(g)
4938
4917
  ), n.setProperty(
4939
4918
  s,
4940
4919
  "__timeoutV1__",
@@ -4951,41 +4930,41 @@ class Hs {
4951
4930
  xt(this, "nodes");
4952
4931
  this.context = s, this.nodes = {};
4953
4932
  const p = this;
4954
- function y(E) {
4933
+ function v(g) {
4955
4934
  var O;
4956
- p.nodes[E.basic.id] = E, (O = E.children) == null || O.forEach((m) => y(m));
4935
+ p.nodes[g.basic.id] = g, (O = g.children) == null || O.forEach((m) => v(m));
4957
4936
  }
4958
- this.context.data.view.nodes.forEach((E) => y(E));
4937
+ this.context.data.view.nodes.forEach((g) => v(g));
4959
4938
  }
4960
4939
  getNode(s) {
4961
4940
  return this.nodes[s];
4962
4941
  }
4963
- addNode(s, p, y) {
4964
- let E;
4942
+ addNode(s, p, v) {
4943
+ let g;
4965
4944
  if (s) {
4966
4945
  const m = this.getNode(s);
4967
4946
  if (!m)
4968
4947
  return console.error(
4969
- `NodeMgr/addNode parent not found, parent=${s} ref=${p} key=${y}`
4948
+ `NodeMgr/addNode parent not found, parent=${s} ref=${p} keyOrRefid=${v}`
4970
4949
  ), "";
4971
4950
  if (!m.children)
4972
4951
  return console.error(
4973
- `NodeMgr/addNode parent no children, parent=${s} ref=${p} key=${y}`
4952
+ `NodeMgr/addNode parent no children, parent=${s} ref=${p} keyOrRefid=${v}`
4974
4953
  ), "";
4975
- E = m.children;
4954
+ g = m.children;
4976
4955
  } else
4977
- E = this.context.data.view.nodes;
4978
- if (!E)
4956
+ g = this.context.data.view.nodes;
4957
+ if (!g)
4979
4958
  return "";
4980
4959
  const O = Ts(
4981
4960
  this.context.type,
4982
4961
  this.context.data.type,
4983
4962
  this.context.data.version,
4984
4963
  p,
4985
- y
4964
+ v
4986
4965
  );
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}"
4966
+ return O ? (g.push(O), this.nodes[O.basic.id] = O, O.basic.id) : (console.error(
4967
+ `NodeMgr/addNode spawn node failed, parent=${s} ref=${p} key=${v}`
4989
4968
  ), "");
4990
4969
  }
4991
4970
  deleteNode(s) {
@@ -4993,28 +4972,28 @@ class Hs {
4993
4972
  }
4994
4973
  }
4995
4974
  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);
4975
+ const v = new Hs(n);
4976
+ function g(t, e, i) {
4977
+ const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = v.addNode(o, u, c);
4999
4978
  return s.nativeToPseudo(a);
5000
4979
  }
5001
4980
  function O(t) {
5002
4981
  const e = s.pseudoToNative(t);
5003
- y.deleteNode(e);
4982
+ v.deleteNode(e);
5004
4983
  }
5005
4984
  function m(t, e) {
5006
4985
  const i = s.pseudoToNative(t), o = s.pseudoToNative(e);
5007
4986
  let u;
5008
- if (i === "globality" ? u = n.data.view : u = y.getNode(i), !u) {
4987
+ if (i === "globality" ? u = n.data.view : u = v.getNode(i), !u) {
5009
4988
  console.error(`getNodePropV1 node not found, id=${i} keys=${o}`);
5010
4989
  return;
5011
4990
  }
5012
4991
  const c = o.split("."), a = c.length;
5013
4992
  for (let l = 0; l < a; l++) {
5014
- const v = c[l];
4993
+ const y = c[l];
5015
4994
  if (l === a - 1)
5016
- return s.nativeToPseudo(u[v]);
5017
- if (u = u[v], !u) {
4995
+ return s.nativeToPseudo(u[y]);
4996
+ if (u = u[y], !u) {
5018
4997
  console.error(`getNodePropV1 unpkg failed, id=${i} keys=${o}`);
5019
4998
  return;
5020
4999
  }
@@ -5023,16 +5002,16 @@ function Ks(n, s, p) {
5023
5002
  function N(t, e, i) {
5024
5003
  const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i);
5025
5004
  let a;
5026
- if (o === "globality" ? a = n.data.view : a = y.getNode(o), !a) {
5005
+ if (o === "globality" ? a = n.data.view : a = v.getNode(o), !a) {
5027
5006
  console.error(
5028
5007
  `setNodePropV1 node not found, id=${o} keys=${u} value=${c}`
5029
5008
  );
5030
5009
  return;
5031
5010
  }
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)
5011
+ const l = u.split("."), y = l.length;
5012
+ for (let E = 0; E < y; E++) {
5013
+ const T = l[E];
5014
+ if (E === y - 1)
5036
5015
  a[T] = c;
5037
5016
  else if (a = a[T], !a) {
5038
5017
  console.error(
@@ -5057,7 +5036,7 @@ function Ks(n, s, p) {
5057
5036
  s.setProperty(
5058
5037
  p,
5059
5038
  "__addNodeV1__",
5060
- s.createNativeFunction(E)
5039
+ s.createNativeFunction(g)
5061
5040
  ), s.setProperty(
5062
5041
  p,
5063
5042
  "__deleteNodeV1__",
@@ -5206,8 +5185,8 @@ function __timeoutCallbackV1__(timerId) {
5206
5185
  function rc(n, s) {
5207
5186
  const p = new Js(
5208
5187
  tc,
5209
- (y, E) => {
5210
- qs(n, y, E);
5188
+ (v, g) => {
5189
+ qs(n, v, g);
5211
5190
  }
5212
5191
  );
5213
5192
  return p.appendCode(s), p.appendCode(`
@@ -5227,16 +5206,16 @@ const nc = /* @__PURE__ */ un({
5227
5206
  outer: { type: Boolean }
5228
5207
  },
5229
5208
  setup(n) {
5230
- const { t: s } = Fi(), p = n, y = Ss(), E = Cs(), O = As(), m = Is(), N = Cr();
5209
+ const { t: s } = Fi(), p = n, v = Ss(), g = Cs(), O = As(), m = Is(), N = Cr();
5231
5210
  Ii(() => {
5232
- N.value = m[p.refContext.refid];
5211
+ console.log(p, m), N.value = m[p.refContext.refid];
5233
5212
  });
5234
5213
  const R = Cr();
5235
5214
  ks(R), ki(N, (a) => {
5236
5215
  a || fn.emit("compNotAvail", p.refContext.refid), R.value && (an(R.value), R.value = void 0), a && (R.value = rc(
5237
5216
  {
5238
- env: y,
5239
- type: E,
5217
+ env: v,
5218
+ type: g,
5240
5219
  data: a.data
5241
5220
  },
5242
5221
  a.data.code.script
@@ -5245,13 +5224,13 @@ const nc = /* @__PURE__ */ un({
5245
5224
  R.value && (an(R.value), R.value = void 0);
5246
5225
  });
5247
5226
  const { applySize: r } = js(p), t = J(() => {
5248
- const a = {};
5249
- switch (O.type) {
5227
+ const a = {}, l = O.type;
5228
+ switch (l) {
5250
5229
  case "common":
5251
5230
  r(a);
5252
5231
  break;
5253
5232
  default:
5254
- console.assert(!1, "invalid data type");
5233
+ console.assert(!1, `invalid subtype=${l}`);
5255
5234
  }
5256
5235
  return a;
5257
5236
  });
@@ -5266,26 +5245,26 @@ const nc = /* @__PURE__ */ un({
5266
5245
  }
5267
5246
  function i(a) {
5268
5247
  let l;
5269
- return a.basic.refid ? l = o(a) : l = u(a), l;
5248
+ return a.ref ? l = o(a) : l = u(a), l;
5270
5249
  }
5271
5250
  function o(a) {
5272
- const l = ln[O.version].refKey, v = Ne[l];
5273
- let g;
5274
- return v ? g = Le(v.comp, {
5251
+ const l = ln[O.version].refKey, y = Ne[l];
5252
+ let E;
5253
+ return y ? E = Le(y.comp, {
5275
5254
  refContext: {
5276
5255
  parent: p.refContext,
5277
- refid: a.basic.refid
5256
+ refid: a.ref.id
5278
5257
  },
5279
5258
  node: a
5280
- }) : console.assert(!1), g;
5259
+ }) : console.assert(!1), E;
5281
5260
  }
5282
5261
  function u(a) {
5283
- var g;
5262
+ var E;
5284
5263
  let l;
5285
- const v = Ne[a.basic.key];
5286
- return v ? ((g = a.children) == null || g.forEach((T) => {
5264
+ const y = Ne[a.basic.key];
5265
+ return y ? ((E = a.children) == null || E.forEach((T) => {
5287
5266
  i(T);
5288
- }), l = Le(v.comp, { node: a })) : console.assert(!1, `invalid element config key=${a.basic.key}`), l;
5267
+ }), l = Le(y.comp, { node: a })) : console.assert(!1, `invalid element key=${a.basic.key}`), l;
5289
5268
  }
5290
5269
  const c = () => {
5291
5270
  const a = [];
@@ -5293,17 +5272,44 @@ const nc = /* @__PURE__ */ un({
5293
5272
  a.push(Le("div", s("x-runtime-lib.circularRef")));
5294
5273
  else if (N.value) {
5295
5274
  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}`);
5275
+ l === "common" ? N.value.data.view.nodes.forEach((y) => {
5276
+ const E = i(y);
5277
+ a.push(E);
5278
+ }) : console.assert(!1, `invalid subtype=${l}`);
5300
5279
  } else
5301
5280
  a.push(Le("div", s("x-runtime-lib.compNotAvail")));
5302
5281
  return Le("div", { id: p.id, style: t.value }, a);
5303
5282
  };
5304
5283
  return (a, l) => (sn(), cn(c));
5305
5284
  }
5306
- }), Xn = {
5285
+ }), me = [
5286
+ {
5287
+ name: "x-runtime-lib.unset",
5288
+ ui: "word",
5289
+ validator: Xi,
5290
+ default: ""
5291
+ },
5292
+ {
5293
+ name: "x-runtime-lib.pixel",
5294
+ ui: "pixelInput",
5295
+ validator: Wi,
5296
+ default: "0px",
5297
+ precision: 0,
5298
+ min: 0,
5299
+ max: 1 / 0,
5300
+ step: 1
5301
+ },
5302
+ {
5303
+ name: "x-runtime-lib.percent",
5304
+ ui: "percentInput",
5305
+ validator: Ji,
5306
+ default: "0%",
5307
+ precision: 4,
5308
+ min: 0,
5309
+ max: 1 / 0,
5310
+ step: 1
5311
+ }
5312
+ ], Xn = {
5307
5313
  key: "ref",
5308
5314
  name: "x-runtime-lib.ref",
5309
5315
  children: [
@@ -5393,8 +5399,8 @@ for (const n in Ne) {
5393
5399
  s.leaf || s.methods.unshift(uc);
5394
5400
  }
5395
5401
  const sc = (n, s, p) => {
5396
- const y = n[s];
5397
- return y ? typeof y == "function" ? y() : Promise.resolve(y) : new Promise((E, O) => {
5402
+ const v = n[s];
5403
+ return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((g, O) => {
5398
5404
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5399
5405
  O.bind(
5400
5406
  null,
@@ -5406,7 +5412,7 @@ const sc = (n, s, p) => {
5406
5412
  });
5407
5413
  };
5408
5414
  async function Nc(n) {
5409
- return (await sc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-nwe0okhu.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-n9fk1na9.js") }), `./locales/${n}/index.ts`, 4)).default;
5415
+ return (await sc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-j2twg2xy.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-hdbgtmk2.js") }), `./locales/${n}/index.ts`, 4)).default;
5410
5416
  }
5411
5417
  export {
5412
5418
  vc as duplicateNode,