@yuneta/gobj-js 7.2.1 → 7.3.1

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.
@@ -154,7 +154,7 @@ var S = Object.freeze({
154
154
  SDF_VOLATIL: 32,
155
155
  SDF_RESOURCE: 64,
156
156
  SDF_PKEY: 128,
157
- SDF_FUTURE1: 256,
157
+ SDF_DEPRECATED: 256,
158
158
  SDF_FUTURE2: 512,
159
159
  SDF_WILD_CMD: 1024,
160
160
  SDF_STATS: 2048,
@@ -173,7 +173,7 @@ var O = class {
173
173
  constructor(e, t, n = 0, r = null, l = "", i = null, o = null, s = 0, a = null, u = null, _ = null) {
174
174
  this.type = e, this.name = t, this.alias = i, this.flag = n, this.default_value = r, this.header = o, this.fillspace = s, this.description = l, this.json_fn = a, this.schema = u, this.authpth = _;
175
175
  }
176
- }, v = () => new O(0, null), N = (e, t, n, r, l) => new O(e, t, n, r, l), w = (e, t, n, r, l, i) => new O(e, t, 0, null, i, n, null, 0, l, r, null), D = (e, t, n, r, l, i, o) => new O(e, t, n, null, o, r, null, 0, i, l, null), j = (e, t, n, r, l) => new O(e, t, n, r, l), R = (e, t, n, r, l, i) => new O(e, t, n, null, i, r, null, 0, null, l, null), $ = (e, t, n, r, l) => new O(e, t, n, null, l, null, null, 0, null, null, r), I = (e, t, n, r, l, i) => new O(e, t, n, null, i, null, r, l), k = class {
176
+ }, v = () => new O(0, null), N = (e, t, n, r, l) => new O(e, t, n, r, l), D = (e, t, n, r, l, i) => new O(e, t, 0, null, i, n, null, 0, l, r, null), w = (e, t, n, r, l, i, o) => new O(e, t, n, null, o, r, null, 0, i, l, null), j = (e, t, n, r, l) => new O(e, t, n, r, l), R = (e, t, n, r, l, i) => new O(e, t, n, null, i, r, null, 0, null, l, null), $ = (e, t, n, r, l) => new O(e, t, n, null, l, null, null, 0, null, null, r), I = (e, t, n, r, l, i) => new O(e, t, n, null, i, null, r, l), k = class {
177
177
  constructor(e, t, n, r, l, i, o, s, a) {
178
178
  this.gclass_name = e, this.dl_states = [], this.dl_events = [], this.gmt = t, this.lmt = n, this.attrs_table = r, this.priv = l, this.authz_table = i, this.command_table = o, this.s_user_trace_level = s, this.gclass_flag = Number(a) || 0, this.instances = 0, this.trace_level = 0, this.no_trace_level = 0, this.jn_trace_filter = null, this.fsm_checked = !1;
179
179
  }
@@ -439,7 +439,7 @@ function le(e, t) {
439
439
  function ie(e) {
440
440
  if (!(e instanceof k)) return ln("Cannot add state, typeof not GClass"), -1;
441
441
  let t = 0;
442
- wn(e.dl_states) || (ln(`GClass without states: ${e.gclass_name}`), t += -1);
442
+ Dn(e.dl_states) || (ln(`GClass without states: ${e.gclass_name}`), t += -1);
443
443
  for (let n = 0; n < e.dl_states.length; n++) {
444
444
  let r = e.dl_states[n];
445
445
  if (!Gn(r.state_name)) for (let n = 0; n < r.dl_actions.length; n++) {
@@ -513,7 +513,7 @@ function Ee(e, t, n) {
513
513
  let i = 0;
514
514
  for (const [o, s] of Object.entries(t)) {
515
515
  const t = q(l.gclass, o, !1);
516
- t ? (-1 === n || t.flag & n) && (i += B(l, e, t, s)) : r && (r(l, o), i--);
516
+ t ? (-1 === n || t.flag & n) && (t.flag & S.SDF_DEPRECATED && on(`${Qe(l)}: Deprecated attribute used in gobj creation: ${o}`), i += B(l, e, t, s)) : r && (r(l, o), i--);
517
517
  }
518
518
  return i;
519
519
  })(J(e), r, -1, e.gclass.gclass_flag & L.gcflag_ignore_unknown_attrs ? 0 : me, e) < 0 && (ln(`${Qe(e)} json2data() FAILED`), _n(r));
@@ -564,7 +564,7 @@ function ve(e, t, n, r) {
564
564
  function Ne(e, t, n, r) {
565
565
  return he(e, t, n, r, 0);
566
566
  }
567
- function we(e) {
567
+ function De(e) {
568
568
  if (Ze(e)) return void ln("gobj NULL or DESTROYED");
569
569
  e.__refs__ > 0 && ln(`${Qe(e)}: gobj DESTROYING with references: ${e.__refs__}`), e.obflag |= U.obflag_destroying;
570
570
  let n = E && mt(E, "trace_creation");
@@ -577,11 +577,11 @@ function we(e) {
577
577
  let t = e.dl_children.slice();
578
578
  for (let e = 0; e < t.length; e++) {
579
579
  let n = t[e];
580
- Ze(n) || we(n);
580
+ Ze(n) || De(n);
581
581
  }
582
582
  }(e), e.obflag & U.obflag_created && e.gclass.gmt.mt_destroy && e.gclass.gmt.mt_destroy(e), n && M(t("💔💔⏪ destroyed: %s", qe(e))), e.obflag |= U.obflag_destroyed, e.obflag & U.obflag_created && e.gclass.instances--;
583
583
  }
584
- function De(e) {
584
+ function we(e) {
585
585
  if (Ze(e)) return ln("gobj NULL or DESTROYED"), -1;
586
586
  if (e.running) return ln(`${Qe(e)}: GObj ALREADY RUNNING`), -1;
587
587
  if (e.disabled) return ln(`${Qe(e)}: GObj DISABLED`), -1;
@@ -590,16 +590,16 @@ function De(e) {
590
590
  return e.gclass.gmt.mt_start && (n = e.gclass.gmt.mt_start(e)), n;
591
591
  }
592
592
  function je(e, t, n) {
593
- return e.gclass.gclass_flag & L.gcflag_manual_start || Ze(e) || Ge(e) || Fe(e) || De(e), 0;
593
+ return e.gclass.gclass_flag & L.gcflag_manual_start || Ze(e) || Ge(e) || Fe(e) || we(e), 0;
594
594
  }
595
595
  function Re(e) {
596
596
  return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : rt(e, G.WALK_FIRST2LAST, je, 0, 0);
597
597
  }
598
598
  function $e(e, t, n) {
599
- return e.gclass.gclass_flag & L.gcflag_manual_start || Fe(e) ? 1 : (Ge(e) || De(e), 0);
599
+ return e.gclass.gclass_flag & L.gcflag_manual_start || Fe(e) ? 1 : (Ge(e) || we(e), 0);
600
600
  }
601
601
  function Ie(e) {
602
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : (E && mt(E, "trace_start_stop") && M(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", qe(e))), e.gclass.gclass_flag & L.gcflag_manual_start || e.disabled ? 0 : (e.running || De(e), lt(e, G.WALK_TOP2BOTTOM, $e, 0, 0)));
602
+ return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : (E && mt(E, "trace_start_stop") && M(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", qe(e))), e.gclass.gclass_flag & L.gcflag_manual_start || e.disabled ? 0 : (e.running || we(e), lt(e, G.WALK_TOP2BOTTOM, $e, 0, 0)));
603
603
  }
604
604
  function ke(e) {
605
605
  if (Ze(e)) return ln("gobj NULL or DESTROYED"), -1;
@@ -623,7 +623,7 @@ function Ue(e) {
623
623
  if (e.disabled) return ln(`${Qe(e)}: GObj DISABLED`), -1;
624
624
  if (!Ge(e)) {
625
625
  if (e.gclass.gclass_flag & L.gcflag_required_start_to_play) return ln(`${Qe(e)}: Cannot play, start not done`), -1;
626
- on(`${Qe(e)}: GObj playing without previous start`), De(e);
626
+ on(`${Qe(e)}: GObj playing without previous start`), we(e);
627
627
  }
628
628
  E && mt(E, "trace_start_stop") && M(t("⏯ ⏯ play: %s", qe(e))), e.playing = !0;
629
629
  let n = 0;
@@ -905,11 +905,11 @@ function Nt(e, t, n) {
905
905
  let r = Q(e, t, !1);
906
906
  return r ? (r[t] = parseInt(n), jn(e.priv) && e.priv.hasOwnProperty(t) && (e.priv[t] = n), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
907
907
  }
908
- function wt(e, t, n) {
908
+ function Dt(e, t, n) {
909
909
  let r = Q(e, t, !1);
910
910
  return r ? (r[t] = String(n), jn(e.priv) && e.priv.hasOwnProperty(t) && (e.priv[t] = n), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, t), 0) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
911
911
  }
912
- function Dt(e, t) {
912
+ function wt(e, t) {
913
913
  if (Ze(e)) return ln("gobj NULL or DESTROYED"), null;
914
914
  if (e.current_state.state_name === t) return !1;
915
915
  let n = H(e.gclass, t);
@@ -960,7 +960,7 @@ function Lt(e, n, r, l) {
960
960
  let a = "";
961
961
  s.action && (a = il(s.action)), M(t("🔄 mach(%s%s^%s), st: %s, ev: %s%s%s, ac: %s, from(%s%s^%s)", e.running ? "" : "!!", Je(e), Be(e), i.state_name, "", n || "", "", a, l && !l.running ? "!!" : "", Je(l), Be(l))), r && o > 1 && Nn(r) && _n(r);
962
962
  }
963
- s.next_state && Dt(e, s.next_state);
963
+ s.next_state && wt(e, s.next_state);
964
964
  let a = -1;
965
965
  try {
966
966
  s.action && (a = s.action(e, n, r, l));
@@ -985,21 +985,21 @@ var Pt = Object.freeze({
985
985
  ];
986
986
  function Ct(e, t, n, r, l) {
987
987
  let i = nr(t, r, "__config__", null), o = nr(t, r, "__global__", null), s = nr(t, r, "__local__", null), a = rr(t, r, "__filter__", null), u = !0;
988
- if (t && t !== tr(null, e, "publisher", null) && (u = !1), l && l !== tr(null, e, "subscriber", null) && (u = !1), n && n !== er(null, e, "event", "") && (u = !1), Dn(i) > 0) {
988
+ if (t && t !== tr(null, e, "publisher", null) && (u = !1), l && l !== tr(null, e, "subscriber", null) && (u = !1), n && n !== er(null, e, "event", "") && (u = !1), wn(i) > 0) {
989
989
  let t = nr(null, e, "__config__", null);
990
- Dn(t) > 0 && gn(t, i) || (u = !1);
990
+ wn(t) > 0 && gn(t, i) || (u = !1);
991
991
  }
992
- if (Dn(o) > 0) {
992
+ if (wn(o) > 0) {
993
993
  let t = nr(null, e, "__global__", null);
994
- Dn(t) > 0 && gn(t, o) || (u = !1);
994
+ wn(t) > 0 && gn(t, o) || (u = !1);
995
995
  }
996
- if (Dn(s) > 0) {
996
+ if (wn(s) > 0) {
997
997
  let t = nr(null, e, "__local__", null);
998
- Dn(t) > 0 && gn(t, s) || (u = !1);
998
+ wn(t) > 0 && gn(t, s) || (u = !1);
999
999
  }
1000
- if (Dn(a) > 0) {
1000
+ if (wn(a) > 0) {
1001
1001
  let t = rr(null, e, "__filter__", null);
1002
- Dn(t) > 0 && gn(t, a) || (u = !1);
1002
+ wn(t) > 0 && gn(t, a) || (u = !1);
1003
1003
  }
1004
1004
  return u;
1005
1005
  }
@@ -1037,14 +1037,14 @@ function Wt(e, n, r, l) {
1037
1037
  }), Gn(n)) n = "";
1038
1038
  else if (!(kt(e, n, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return ln(`event NOT in output event list: ${Qe(e)}, ${n}`), 0;
1039
1039
  let o = Gt(e.dl_subscriptions, e, n, r, l);
1040
- wn(o) > 0 && (ln(`${Qe(e)}: ${wn(o)} subscription(s) REPEATED, will be deleted and override`), _n(o, "subscription REPEATED"), Kt(e, o, !1));
1040
+ Dn(o) > 0 && (ln(`${Qe(e)}: ${Dn(o)} subscription(s) REPEATED, will be deleted and override`), _n(o, "subscription REPEATED"), Kt(e, o, !1));
1041
1041
  let s = function(e, t, n, r) {
1042
1042
  let l = Y(e, Ut);
1043
1043
  Tn(l, "event", t), Tn(l, "subscriber", r), Tn(l, "publisher", e);
1044
1044
  let i = 0;
1045
1045
  if (n) {
1046
1046
  let t = nr(e, n, "__config__", null), r = nr(e, n, "__global__", null), o = nr(e, n, "__local__", null), s = rr(e, n, "__filter__", null), a = er(e, n, "__service__", "");
1047
- if (Dn(r) > 0 && Tn(l, "__global__", cn(r)), Dn(t) > 0) {
1047
+ if (wn(r) > 0 && Tn(l, "__global__", cn(r)), wn(t) > 0) {
1048
1048
  let n = cn(t);
1049
1049
  if (Tn(l, "__config__", n), Qn(n, "__hard_subscription__")) {
1050
1050
  let t = Xn(e, n, "__hard_subscription__", !1);
@@ -1055,7 +1055,7 @@ function Wt(e, n, r, l) {
1055
1055
  En(n, "__own_event__"), t && (i |= Pt.__own_event__);
1056
1056
  }
1057
1057
  }
1058
- Dn(o) > 0 && Tn(l, "__local__", cn(o)), Dn(s) > 0 && Tn(l, "__filter__", cn(s)), Gn(a) || Tn(l, "__service__", a);
1058
+ wn(o) > 0 && Tn(l, "__local__", cn(o)), wn(s) > 0 && Tn(l, "__filter__", cn(s)), Gn(a) || Tn(l, "__service__", a);
1059
1059
  }
1060
1060
  return Tn(l, "subs_flag", i), l;
1061
1061
  }(e, n, r, l);
@@ -1104,8 +1104,8 @@ function xt(e) {
1104
1104
  return {
1105
1105
  subscriptions: t,
1106
1106
  subscribings: n,
1107
- "total subscriptions": wn(t),
1108
- total_subscribings: wn(n)
1107
+ "total subscriptions": Dn(t),
1108
+ total_subscribings: Dn(n)
1109
1109
  };
1110
1110
  }
1111
1111
  function Bt(e, t, n, r) {
@@ -1135,7 +1135,7 @@ function Jt(e, n, r) {
1135
1135
  if (Gn(f) || 0 === Mn(f, n)) {
1136
1136
  nr(e, u, "__config__", null, 0);
1137
1137
  let l = nr(e, u, "__global__", null, 0), o = nr(e, u, "__local__", null, 0), f = rr(e, u, "__filter__", null, 0), g = r, d = 1;
1138
- if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, g, _) : Dn(f) > 0 && (d = ar(g, f), i && (M(t("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", d ? "👍" : "👎", n || "", Qe(_), Qe(e))), _n(f))), d < 0) break;
1138
+ if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, g, _) : wn(f) > 0 && (d = ar(g, f), i && (M(t("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", d ? "👍" : "👎", n || "", Qe(_), Qe(e))), _n(f))), d < 0) break;
1139
1139
  if (0 === d) continue;
1140
1140
  let b = $t(_, n, !0);
1141
1141
  if (b && b.event_flag & C.EVF_SYSTEM_EVENT && !It(_, b.event_name, 0)) continue;
@@ -1299,10 +1299,10 @@ function vn(e, t) {
1299
1299
  function Nn(e) {
1300
1300
  return jn(e) ? Object.keys(e).length : 0;
1301
1301
  }
1302
- function wn(e) {
1302
+ function Dn(e) {
1303
1303
  return Rn(e) ? e.length : 0;
1304
1304
  }
1305
- function Dn(e) {
1305
+ function wn(e) {
1306
1306
  return jn(e) ? Object.keys(e).length : Rn(e) ? e.length : $n(e) && e.length > 0 ? 1 : 0;
1307
1307
  }
1308
1308
  function jn(e) {
@@ -1559,7 +1559,7 @@ function sr(e, n, r) {
1559
1559
  return i;
1560
1560
  }
1561
1561
  function ar(e, t) {
1562
- return 0 === Dn(t) || sr(e, t, "");
1562
+ return 0 === wn(t) || sr(e, t, "");
1563
1563
  }
1564
1564
  function ur(e, t, n, r) {
1565
1565
  if (!n || !Rn(t)) return r && ln("item NULL or kw_list is not a list"), -1;
@@ -1602,7 +1602,7 @@ function fr(e, t, n, r) {
1602
1602
  t.hasOwnProperty(i) ? l[i] = t[i] : r && ln(`${Qe(e)}: key not found: ${i}`);
1603
1603
  } else if (jn(n) && Nn(n) > 0) for (let i of Object.keys(n)) t.hasOwnProperty(i) ? l[i] = t[i] : r && ln(`${Qe(e)}: key not found: ${i}`);
1604
1604
  else {
1605
- if (!(Rn(n) && wn(n) > 0)) return t;
1605
+ if (!(Rn(n) && Dn(n) > 0)) return t;
1606
1606
  for (let i = 0; i < n.length; i++) {
1607
1607
  let o = n[i];
1608
1608
  t.hasOwnProperty(o) ? l[o] = t[o] : r && ln(`${Qe(e)}: key not found: ${o}`);
@@ -1617,7 +1617,7 @@ function gr(e, t, n, r) {
1617
1617
  rr(e, t, i, 0, 0) ? En(l, i) : r && ln(`${Qe(e)}: key not found: ${i}`);
1618
1618
  } else if (jn(n) && Nn(n) > 0) for (let i of Object.keys(n)) t.hasOwnProperty(i) ? En(l, i) : r && ln(`${Qe(e)}: key not found: ${i}`);
1619
1619
  else {
1620
- if (!(Rn(n) && wn(n) > 0)) return {};
1620
+ if (!(Rn(n) && Dn(n) > 0)) return {};
1621
1621
  for (let i = 0; i < n.length; i++) {
1622
1622
  let o = n[i];
1623
1623
  t.hasOwnProperty(o) ? En(l, o) : r && ln(`${Qe(e)}: key not found: ${o}`);
@@ -1725,7 +1725,7 @@ function Sr(e, t, n) {
1725
1725
  let e = {};
1726
1726
  if (Qn(i, t)) {
1727
1727
  if (!Qn(i, n)) {
1728
- if (!(Dn(i) > 0)) {
1728
+ if (!(wn(i) > 0)) {
1729
1729
  ln("list2options(): object without field value: " + n);
1730
1730
  continue;
1731
1731
  }
@@ -1733,7 +1733,7 @@ function Sr(e, t, n) {
1733
1733
  }
1734
1734
  e.id = i[t], e.value = i[n];
1735
1735
  } else {
1736
- if (!(Dn(i) > 0)) {
1736
+ if (!(wn(i) > 0)) {
1737
1737
  ln("list2options(): object without field id: " + t);
1738
1738
  continue;
1739
1739
  }
@@ -1772,11 +1772,11 @@ function Nr(e, t, n) {
1772
1772
  for (let r = 0; r < t.length; r++) if (vr(e, t[r], n)) return !0;
1773
1773
  return !1;
1774
1774
  }
1775
- function wr(e, t) {
1775
+ function Dr(e, t) {
1776
1776
  for (let n = 0; n < e.length; n++) if (t === e[n]) return e.splice(n, 1), !0;
1777
1777
  return !1;
1778
1778
  }
1779
- function Dr(e, t) {
1779
+ function wr(e, t) {
1780
1780
  try {
1781
1781
  let n = e.__md_iev__;
1782
1782
  if (n) return n[t];
@@ -1791,7 +1791,7 @@ function jr(e, t, n) {
1791
1791
  function Rr(e, t, n, r) {
1792
1792
  if (!Cn(e)) return ln("gobj is not a GObj"), null;
1793
1793
  if (!t) return;
1794
- let l = Dr(t, n);
1794
+ let l = wr(t, n);
1795
1795
  l || (l = [], jr(t, n, l));
1796
1796
  try {
1797
1797
  Rn(l) && l.unshift(r);
@@ -1802,7 +1802,7 @@ function Rr(e, t, n, r) {
1802
1802
  function $r(e, t, n, r) {
1803
1803
  if (!Cn(e)) return ln("gobj is not a GObj"), null;
1804
1804
  if (!jn(t)) return ln("kw is not a dict"), null;
1805
- let l = Dr(t, n);
1805
+ let l = wr(t, n);
1806
1806
  return l ? 0 === l.length ? (r && ln(`stack empty: ${n}`), null) : l[0] : (r && ln(`stack NOT FOUND: ${n}`), null);
1807
1807
  }
1808
1808
  function Ir(e, t, n) {
@@ -2096,11 +2096,11 @@ function fl(e, t) {
2096
2096
  return n && jn(n) && (r = fr(e, n, t, !1)), r;
2097
2097
  }
2098
2098
  function gl(e) {
2099
- if (Rn(e) && 1 === Dn(e)) {
2099
+ if (Rn(e) && 1 === wn(e)) {
2100
2100
  let t = e[0];
2101
2101
  return Qn(t, "size") ? t.size : 1;
2102
2102
  }
2103
- return Dn(e);
2103
+ return wn(e);
2104
2104
  }
2105
2105
  function dl(e, t) {
2106
2106
  if ($n(t)) {
@@ -2302,13 +2302,13 @@ var Ol = [
2302
2302
  msec: 0,
2303
2303
  timer_id: -1
2304
2304
  }, Nl = null;
2305
- function wl(e, t, n, r) {
2305
+ function Dl(e, t, n, r) {
2306
2306
  let l = e.priv, i = l.periodic ? "EV_TIMEOUT_PERIODIC" : "EV_TIMEOUT";
2307
2307
  return He(e) ? Lt(ze(e), i, {}, e) : Jt(e, i, {}), l.periodic && (l.timer_id = setTimeout(function() {
2308
2308
  Lt(e, "EV_TIMEOUT", {}, e);
2309
2309
  }, l.msec)), 0;
2310
2310
  }
2311
- var Dl = {
2311
+ var wl = {
2312
2312
  mt_create: function(e) {
2313
2313
  let t = e.priv;
2314
2314
  const n = Tt(e, "subscriber");
@@ -2338,14 +2338,14 @@ function jl() {
2338
2338
  if (Nl) return ln(`GClass ALREADY created: ${e}`), -1;
2339
2339
  const t = [["ST_IDLE", [[
2340
2340
  "EV_TIMEOUT",
2341
- wl,
2341
+ Dl,
2342
2342
  null
2343
2343
  ]]]];
2344
2344
  return (Nl = z(e, [
2345
2345
  ["EV_TIMEOUT", C.EVF_OUTPUT_EVENT],
2346
2346
  ["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT],
2347
2347
  [0, 0]
2348
- ], t, Dl, 0, Ol, vl, 0, 0, 0, L.gcflag_manual_start)) ? 0 : -1;
2348
+ ], t, wl, 0, Ol, vl, 0, 0, 0, L.gcflag_manual_start)) ? 0 : -1;
2349
2349
  }("C_TIMER");
2350
2350
  }
2351
2351
  function Rl(e, t) {
@@ -2390,11 +2390,11 @@ function Pl(e, t, n, r) {
2390
2390
  var Ul = {
2391
2391
  mt_create: function(e) {
2392
2392
  let t = e.priv;
2393
- wt(e, "start_date", el()), wt(e, "node_uuid", rl()), e.priv.gobj_timer = ve(Be(e), "C_TIMER", {}, e), t.periodic_timeout = bt(e, "periodic_timeout");
2393
+ Dt(e, "start_date", el()), Dt(e, "node_uuid", rl()), e.priv.gobj_timer = ve(Be(e), "C_TIMER", {}, e), t.periodic_timeout = bt(e, "periodic_timeout");
2394
2394
  },
2395
2395
  mt_writing: function(e, t) {},
2396
2396
  mt_start: function(e) {
2397
- return De(e.priv.gobj_timer), $l(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
2397
+ return we(e.priv.gobj_timer), $l(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
2398
2398
  },
2399
2399
  mt_stop: function(e) {
2400
2400
  return ke(e.priv.gobj_timer), Le(e), 0;
@@ -2402,7 +2402,7 @@ var Ul = {
2402
2402
  mt_destroy: function(e) {},
2403
2403
  mt_play: function(e) {
2404
2404
  let t = ae();
2405
- return Ge(t) || De(t), We(t) || Ue(t), 0;
2405
+ return Ge(t) || we(t), We(t) || Ue(t), 0;
2406
2406
  },
2407
2407
  mt_pause: function(e) {
2408
2408
  return Ce(ae()), 0;
@@ -2571,7 +2571,7 @@ function ei(e, t, n, r) {
2571
2571
  let l = e.priv;
2572
2572
  Il(l.gobj_timer);
2573
2573
  let i = $r(e, n, Gl, !0), o = er(e, i, "src_yuno", ""), s = er(e, i, "src_role", ""), a = er(e, i, "src_service", "");
2574
- wt(e, "remote_yuno_name", o), wt(e, "remote_yuno_role", s), wt(e, "remote_yuno_service", a);
2574
+ Dt(e, "remote_yuno_name", o), Dt(e, "remote_yuno_role", s), Dt(e, "remote_yuno_service", a);
2575
2575
  let u = Hn(e, n, "result", -1, 0), _ = er(e, n, "comment", "", 0), c = er(e, n, "username", "", 0), f = rr(e, n, "services_roles", {});
2576
2576
  if (u < 0) {
2577
2577
  Kl(e);
@@ -2586,7 +2586,7 @@ function ei(e, t, n, r) {
2586
2586
  };
2587
2587
  He(e) ? Lt(ze(e), "EV_ON_ID_NAK", t, e) : Jt(e, "EV_ON_ID_NAK", t);
2588
2588
  } else {
2589
- if (Dt(e, "ST_SESSION"), l.inside_on_open = !0, !l.inform_on_close) {
2589
+ if (wt(e, "ST_SESSION"), l.inside_on_open = !0, !l.inform_on_close) {
2590
2590
  l.inform_on_close = !0;
2591
2591
  let t = {
2592
2592
  username: c,
@@ -2656,7 +2656,7 @@ function ri(e, t, n, r) {
2656
2656
  var li = {
2657
2657
  mt_create: function(e) {
2658
2658
  let t = e.priv;
2659
- t.gobj_timer = ve(Be(e), "C_TIMER", {}, e), t.url = ht(e, "url"), t.remote_yuno_name = ht(e, "remote_yuno_name"), t.remote_yuno_role = ht(e, "remote_yuno_role"), t.remote_yuno_service = ht(e, "remote_yuno_service"), wt(e, "wanted_yuno_name", t.remote_yuno_name), wt(e, "wanted_yuno_role", t.remote_yuno_role), wt(e, "wanted_yuno_service", t.remote_yuno_service);
2659
+ t.gobj_timer = ve(Be(e), "C_TIMER", {}, e), t.url = ht(e, "url"), t.remote_yuno_name = ht(e, "remote_yuno_name"), t.remote_yuno_role = ht(e, "remote_yuno_role"), t.remote_yuno_service = ht(e, "remote_yuno_service"), Dt(e, "wanted_yuno_name", t.remote_yuno_name), Dt(e, "wanted_yuno_role", t.remote_yuno_role), Dt(e, "wanted_yuno_service", t.remote_yuno_service);
2660
2660
  const n = Tt(e, "subscriber");
2661
2661
  n && Wt(e, null, {}, n);
2662
2662
  },
@@ -2677,7 +2677,7 @@ var li = {
2677
2677
  },
2678
2678
  mt_start: function(e) {
2679
2679
  let t = e.priv;
2680
- return De(t.gobj_timer), t.websocket = Ml(e), 0;
2680
+ return we(t.gobj_timer), t.websocket = Ml(e), 0;
2681
2681
  },
2682
2682
  mt_stop: function(e) {
2683
2683
  let t = e.priv;
@@ -2819,6 +2819,6 @@ function ii() {
2819
2819
  ], t, li, 0, Fl, Vl, 0, 0, 0, L.gcflag_no_check_output_events)) ? 0 : -1;
2820
2820
  }("C_IEVENT_CLI");
2821
2821
  }
2822
- export { A as GObj, N as SDATA, R as SDATAAUTHZ, w as SDATACM, D as SDATACM2, I as SDATADF, j as SDATAPM, $ as SDATAPM0, v as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, i as build_command_response, sl as build_path, s as build_stats_response, ll as clean_name, Il as clear_timeout, Kn as cmp_two_simple_json, l as command_parser, qr as createElement2, Qr as createOneHtml, Kr as create_json_record, Sl as create_template_record, el as current_timestamp, y as data_type_t, fl as db_list_persistent_attrs, ul as db_load_persistent_attrs, cl as db_remove_persistent_attrs, _l as db_save_persistent_attrs, ol as debounce, wr as delete_from_list, fn as duplicate_objects, Gn as empty_string, Br as escapeHtml, C as event_flag_t, te as gclass_add_ev_action, re as gclass_add_event_type, ee as gclass_add_state, ie as gclass_check_fsm, z as gclass_create, le as gclass_event_type, oe as gclass_find_by_name, L as gclass_flag_t, X as gclass_unregister, zr as getPositionRelativeToBody, il as get_function_name, tl as get_now, et as gobj_bottom_gobj, Rt as gobj_change_parent, Dt as gobj_change_state, Qt as gobj_command, Ne as gobj_create, he as gobj_create2, Se as gobj_create_default_service, ve as gobj_create_pure_child, ye as gobj_create_service, Oe as gobj_create_volatil, Te as gobj_create_yuno, jt as gobj_current_state, ae as gobj_default_service, we as gobj_destroy, _t as gobj_find_child, at as gobj_find_gobj, ue as gobj_find_service, Bt as gobj_find_subscribings, Yt as gobj_find_subscriptions, P as gobj_flag_t, qe as gobj_full_name, Je as gobj_gclass_name, dt as gobj_has_attr, It as gobj_has_event, kt as gobj_has_output_event, J as gobj_hsdata, Ze as gobj_is_destroying, We as gobj_is_playing, He as gobj_is_pure_child, Ge as gobj_is_running, Ve as gobj_is_service, Xe as gobj_is_volatil, pe as gobj_list_persistent_attrs, xt as gobj_list_subscriptions, ge as gobj_load_persistent_attrs, ct as gobj_match_children, ft as gobj_match_children_tree, ut as gobj_match_gobj, Be as gobj_name, ze as gobj_parent, Ce as gobj_pause, Ue as gobj_play, At as gobj_post_event, Jt as gobj_publish_event, bt as gobj_read_attr, pt as gobj_read_attrs, mt as gobj_read_bool_attr, Et as gobj_read_integer_attr, Tt as gobj_read_pointer_attr, ht as gobj_read_str_attr, be as gobj_remove_persistent_attrs, St as gobj_reset_volatil_attrs, de as gobj_save_persistent_attrs, gt as gobj_search_path, Lt as gobj_send_event, se as gobj_services, tt as gobj_set_bottom_gobj, Qe as gobj_short_name, De as gobj_start, Re as gobj_start_children, Ie as gobj_start_tree, K as gobj_start_up, qt as gobj_stats, ke as gobj_stop, Le as gobj_stop_children, Pe as gobj_stop_tree, Wt as gobj_subscribe_event, Mt as gobj_unsubscribe_event, Kt as gobj_unsubscribe_list, rt as gobj_walk_gobj_children, lt as gobj_walk_gobj_children_tree, yt as gobj_write_attr, Ot as gobj_write_attrs, vt as gobj_write_bool_attr, Nt as gobj_write_integer_attr, wt as gobj_write_str_attr, Me as gobj_yuno, xe as gobj_yuno_id, Ke as gobj_yuno_name, Ye as gobj_yuno_role, Or as id_index_in_obj_list, nl as index_in_list, Rn as is_array, kn as is_boolean, Pn as is_date, Un as is_function, Cn as is_gobj, xn as is_metadata_key, An as is_null, In as is_number, jn as is_object, Bn as is_private_key, Ln as is_pure_number, $n as is_string, Gr as jdb_delete, Vr as jdb_get, Wr as jdb_get_by_idx, Fr as jdb_get_topic, Ur as jdb_init, Cr as jdb_update, yn as json_array_append, Sn as json_array_append_new, vn as json_array_extend, On as json_array_remove, wn as json_array_size, cn as json_deep_copy, gn as json_is_identical, En as json_object_del, mn as json_object_get, hn as json_object_set, Tn as json_object_set_new, Nn as json_object_size, dn as json_object_update, bn as json_object_update_existing, pn as json_object_update_missing, Dn as json_size, xr as jwt2json, Yr as jwtDecode, fr as kw_clone_by_keys, gr as kw_clone_by_not_keys, cr as kw_collect, zn as kw_delete, ur as kw_find_json_in_list, qn as kw_find_path, zt as kw_flag_t, Xn as kw_get_bool, nr as kw_get_dict, rr as kw_get_dict_value, Hn as kw_get_int, lr as kw_get_list, dr as kw_get_local_storage_value, tr as kw_get_pointer, Zn as kw_get_real, er as kw_get_str, Qn as kw_has_key, ar as kw_match_simple, Jn as kw_pop, pr as kw_remove_local_storage_value, _r as kw_select, ir as kw_set_dict_value, br as kw_set_local_storage_value, or as kw_set_subdict_value, Er as kwid_collect, Tr as kwid_find_one_record, yr as kwid_get_ids, mr as kwid_match_id, hr as kwid_new_dict, Sr as list2options, Ar as load_json_file, an as log_debug, ln as log_error, sn as log_info, on as log_warning, kr as msg_iev_get_msg_type, $r as msg_iev_get_stack, Rr as msg_iev_push_stack, Dr as msg_iev_read_key, Ir as msg_iev_set_msg_type, jr as msg_iev_write_key, rl as node_uuid, Fn as parseBoolean, Xr as parseSVG, Hr as refresh_language, ii as register_c_ievent_cli, jl as register_c_timer, Cl as register_c_yuno, Jr as safeSrc, S as sdata_flag_t, Lr as send_http_json_post, nn as set_remote_log_functions, Rl as set_timeout, $l as set_timeout_periodic, t as sprintf, o as stats_parser, vr as str_in_list, Mn as strcasecmp, Wn as strcmp, Vn as strncmp, Nr as strs_in_list, Yn as strstr, yl as template_get_field_desc, Zr as timeTracker, _n as trace_json, un as trace_msg, dl as treedb_decoder_fkey, pl as treedb_decoder_hook, bl as treedb_encoder_fkey, Tl as treedb_get_field_desc, gl as treedb_hook_data_size, n as vsprintf };
2822
+ export { A as GObj, N as SDATA, R as SDATAAUTHZ, D as SDATACM, w as SDATACM2, I as SDATADF, j as SDATAPM, $ as SDATAPM0, v as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, i as build_command_response, sl as build_path, s as build_stats_response, ll as clean_name, Il as clear_timeout, Kn as cmp_two_simple_json, l as command_parser, qr as createElement2, Qr as createOneHtml, Kr as create_json_record, Sl as create_template_record, el as current_timestamp, y as data_type_t, fl as db_list_persistent_attrs, ul as db_load_persistent_attrs, cl as db_remove_persistent_attrs, _l as db_save_persistent_attrs, ol as debounce, Dr as delete_from_list, fn as duplicate_objects, Gn as empty_string, Br as escapeHtml, C as event_flag_t, te as gclass_add_ev_action, re as gclass_add_event_type, ee as gclass_add_state, ie as gclass_check_fsm, z as gclass_create, le as gclass_event_type, oe as gclass_find_by_name, L as gclass_flag_t, X as gclass_unregister, zr as getPositionRelativeToBody, il as get_function_name, tl as get_now, et as gobj_bottom_gobj, Rt as gobj_change_parent, wt as gobj_change_state, Qt as gobj_command, Ne as gobj_create, he as gobj_create2, Se as gobj_create_default_service, ve as gobj_create_pure_child, ye as gobj_create_service, Oe as gobj_create_volatil, Te as gobj_create_yuno, jt as gobj_current_state, ae as gobj_default_service, De as gobj_destroy, _t as gobj_find_child, at as gobj_find_gobj, ue as gobj_find_service, Bt as gobj_find_subscribings, Yt as gobj_find_subscriptions, P as gobj_flag_t, qe as gobj_full_name, Je as gobj_gclass_name, dt as gobj_has_attr, It as gobj_has_event, kt as gobj_has_output_event, J as gobj_hsdata, Ze as gobj_is_destroying, We as gobj_is_playing, He as gobj_is_pure_child, Ge as gobj_is_running, Ve as gobj_is_service, Xe as gobj_is_volatil, pe as gobj_list_persistent_attrs, xt as gobj_list_subscriptions, ge as gobj_load_persistent_attrs, ct as gobj_match_children, ft as gobj_match_children_tree, ut as gobj_match_gobj, Be as gobj_name, ze as gobj_parent, Ce as gobj_pause, Ue as gobj_play, At as gobj_post_event, Jt as gobj_publish_event, bt as gobj_read_attr, pt as gobj_read_attrs, mt as gobj_read_bool_attr, Et as gobj_read_integer_attr, Tt as gobj_read_pointer_attr, ht as gobj_read_str_attr, be as gobj_remove_persistent_attrs, St as gobj_reset_volatil_attrs, de as gobj_save_persistent_attrs, gt as gobj_search_path, Lt as gobj_send_event, se as gobj_services, tt as gobj_set_bottom_gobj, Qe as gobj_short_name, we as gobj_start, Re as gobj_start_children, Ie as gobj_start_tree, K as gobj_start_up, qt as gobj_stats, ke as gobj_stop, Le as gobj_stop_children, Pe as gobj_stop_tree, Wt as gobj_subscribe_event, Mt as gobj_unsubscribe_event, Kt as gobj_unsubscribe_list, rt as gobj_walk_gobj_children, lt as gobj_walk_gobj_children_tree, yt as gobj_write_attr, Ot as gobj_write_attrs, vt as gobj_write_bool_attr, Nt as gobj_write_integer_attr, Dt as gobj_write_str_attr, Me as gobj_yuno, xe as gobj_yuno_id, Ke as gobj_yuno_name, Ye as gobj_yuno_role, Or as id_index_in_obj_list, nl as index_in_list, Rn as is_array, kn as is_boolean, Pn as is_date, Un as is_function, Cn as is_gobj, xn as is_metadata_key, An as is_null, In as is_number, jn as is_object, Bn as is_private_key, Ln as is_pure_number, $n as is_string, Gr as jdb_delete, Vr as jdb_get, Wr as jdb_get_by_idx, Fr as jdb_get_topic, Ur as jdb_init, Cr as jdb_update, yn as json_array_append, Sn as json_array_append_new, vn as json_array_extend, On as json_array_remove, Dn as json_array_size, cn as json_deep_copy, gn as json_is_identical, En as json_object_del, mn as json_object_get, hn as json_object_set, Tn as json_object_set_new, Nn as json_object_size, dn as json_object_update, bn as json_object_update_existing, pn as json_object_update_missing, wn as json_size, xr as jwt2json, Yr as jwtDecode, fr as kw_clone_by_keys, gr as kw_clone_by_not_keys, cr as kw_collect, zn as kw_delete, ur as kw_find_json_in_list, qn as kw_find_path, zt as kw_flag_t, Xn as kw_get_bool, nr as kw_get_dict, rr as kw_get_dict_value, Hn as kw_get_int, lr as kw_get_list, dr as kw_get_local_storage_value, tr as kw_get_pointer, Zn as kw_get_real, er as kw_get_str, Qn as kw_has_key, ar as kw_match_simple, Jn as kw_pop, pr as kw_remove_local_storage_value, _r as kw_select, ir as kw_set_dict_value, br as kw_set_local_storage_value, or as kw_set_subdict_value, Er as kwid_collect, Tr as kwid_find_one_record, yr as kwid_get_ids, mr as kwid_match_id, hr as kwid_new_dict, Sr as list2options, Ar as load_json_file, an as log_debug, ln as log_error, sn as log_info, on as log_warning, kr as msg_iev_get_msg_type, $r as msg_iev_get_stack, Rr as msg_iev_push_stack, wr as msg_iev_read_key, Ir as msg_iev_set_msg_type, jr as msg_iev_write_key, rl as node_uuid, Fn as parseBoolean, Xr as parseSVG, Hr as refresh_language, ii as register_c_ievent_cli, jl as register_c_timer, Cl as register_c_yuno, Jr as safeSrc, S as sdata_flag_t, Lr as send_http_json_post, nn as set_remote_log_functions, Rl as set_timeout, $l as set_timeout_periodic, t as sprintf, o as stats_parser, vr as str_in_list, Mn as strcasecmp, Wn as strcmp, Vn as strncmp, Nr as strs_in_list, Yn as strstr, yl as template_get_field_desc, Zr as timeTracker, _n as trace_json, un as trace_msg, dl as treedb_decoder_fkey, pl as treedb_decoder_hook, bl as treedb_encoder_fkey, Tl as treedb_get_field_desc, gl as treedb_hook_data_size, n as vsprintf };
2823
2823
 
2824
2824
  //# sourceMappingURL=gobj-js.es.min.js.map