@yuneta/gobj-js 7.16.0 → 7.16.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.
@@ -200,13 +200,13 @@ var h = class {
200
200
  EVF_OUTPUT_EVENT: 2,
201
201
  EVF_SYSTEM_EVENT: 4,
202
202
  EVF_PUBLIC_EVENT: 8
203
- }), x = Object.freeze({
203
+ }), D = Object.freeze({
204
204
  WALK_TOP2BOTTOM: 1,
205
205
  WALK_BOTTOM2TOP: 2,
206
206
  WALK_BYLEVEL: 4,
207
207
  WALK_FIRST2LAST: 16,
208
208
  WALK_LAST2FIRST: 32
209
- }), D = class {
209
+ }), x = class {
210
210
  constructor(e, t, n) {
211
211
  this.event_name = e, this.action = t, this.next_state = n;
212
212
  }
@@ -548,7 +548,7 @@ function se(e, t, n, r, o) {
548
548
  if (!(e instanceof v)) return qt("Cannot add state, typeof not GClass"), -1;
549
549
  if (vn(t)) return qt("state_name EMPTY"), -1;
550
550
  let s = ne(e, t);
551
- return s ? re(s, n) ? (qt(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (s.dl_actions.push(new D(n, r, o)), 0) : (qt(`state not found: ${t}`), -1);
551
+ return s ? re(s, n) ? (qt(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (s.dl_actions.push(new x(n, r, o)), 0) : (qt(`state not found: ${t}`), -1);
552
552
  }
553
553
  function le(e, t, n) {
554
554
  vn(t) || e.push(new k(t, n));
@@ -673,7 +673,7 @@ function he(e) {
673
673
  r && r.gclass.gmt.mt_child_removed && (n && $(t("👦👦🔴 child_removed(%s): %s", Ge(r), Fe(e))), r.gclass.gmt.mt_child_removed(r, e)), e.gobj_flag & N.gobj_flag_service && function(e) {
674
674
  let t = Pe(e);
675
675
  t = t.toLowerCase(), p[t] ? delete p[t] : qt(`"service NOT found in register": ${t}`);
676
- }(e), Dt(e, e.dl_subscriptions, !0), Dt(e, e.dl_subscribings, !0), r && (de(r, e), Me(e) && (Ye(r) !== e || Ke(r) || Be(r, null))), function(e) {
676
+ }(e), xt(e, e.dl_subscriptions, !0), xt(e, e.dl_subscribings, !0), r && (de(r, e), Me(e) && (Ye(r) !== e || Ke(r) || Be(r, null))), function(e) {
677
677
  let t = e.dl_children.slice();
678
678
  for (let e = 0; e < t.length; e++) {
679
679
  let n = t[e];
@@ -690,10 +690,10 @@ function ye(e) {
690
690
  return e.gclass.gmt.mt_start && (n = e.gclass.gmt.mt_start(e)), n;
691
691
  }
692
692
  function je(e, t, n) {
693
- return e.gclass.gclass_flag & O.gcflag_manual_start || Ke(e) || xe(e) || De(e) || ye(e), 0;
693
+ return e.gclass.gclass_flag & O.gcflag_manual_start || Ke(e) || De(e) || xe(e) || ye(e), 0;
694
694
  }
695
695
  function ve(e, t, n) {
696
- return e.gclass.gclass_flag & O.gcflag_manual_start || De(e) ? 1 : (xe(e) || ye(e), 0);
696
+ return e.gclass.gclass_flag & O.gcflag_manual_start || xe(e) ? 1 : (De(e) || ye(e), 0);
697
697
  }
698
698
  function Se(e) {
699
699
  if (Ke(e)) return qt("gobj NULL or DESTROYED"), -1;
@@ -703,16 +703,16 @@ function Se(e) {
703
703
  return e.gclass.gmt.mt_stop && (n = e.gclass.gmt.mt_stop(e)), n;
704
704
  }
705
705
  function Oe(e, t, n) {
706
- return xe(e) && Se(e), 0;
706
+ return De(e) && Se(e), 0;
707
707
  }
708
708
  function Ne(e) {
709
- return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : qe(e, x.WALK_FIRST2LAST, Oe, 0, 0);
709
+ return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : qe(e, D.WALK_FIRST2LAST, Oe, 0, 0);
710
710
  }
711
711
  function we(e) {
712
712
  if (Ke(e)) return qt(`gobj NULL or DESTROYED: ${Fe(e)}`), -1;
713
713
  if (e.playing) return qt(`${Fe(e)}: GObj ALREADY PLAYING`), -1;
714
714
  if (e.disabled) return qt(`${Fe(e)}: GObj DISABLED`), -1;
715
- if (!xe(e)) {
715
+ if (!De(e)) {
716
716
  if (e.gclass.gclass_flag & O.gcflag_required_start_to_play) return qt(`${Fe(e)}: Cannot play, start not done`), -1;
717
717
  Ht(`${Fe(e)}: GObj playing without previous start`), ye(e);
718
718
  }
@@ -723,10 +723,10 @@ function we(e) {
723
723
  function Re(e) {
724
724
  return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : e.playing ? (Y(e) && $(t("⏸ ⏸ pause: %s", Ge(e))), e.playing = !1, e.gclass.gmt.mt_pause ? e.gclass.gmt.mt_pause(e) : 0) : (qt(`${Fe(e)}: GObj NOT PLAYING`), -1);
725
725
  }
726
- function xe(e) {
726
+ function De(e) {
727
727
  return !Ke(e) && e.running;
728
728
  }
729
- function De(e) {
729
+ function xe(e) {
730
730
  return !!Ke(e) || e.disabled;
731
731
  }
732
732
  function Ae(e) {
@@ -798,7 +798,7 @@ function ze(e) {
798
798
  }
799
799
  function Qe(e, t, n, r, o) {
800
800
  let s, l = [...e];
801
- if (t & x.WALK_LAST2FIRST) for (let e = l.length; e > 0; e--) {
801
+ if (t & D.WALK_LAST2FIRST) for (let e = l.length; e > 0; e--) {
802
802
  s = l[e - 1];
803
803
  let t = ze(n(s, r, o));
804
804
  if (t < 0) return t;
@@ -813,15 +813,15 @@ function Qe(e, t, n, r, o) {
813
813
  function Xe(e, t, n, r, o) {
814
814
  let s, l = Qe(e, t, n, r, o);
815
815
  if (l < 0) return l;
816
- if (t & x.WALK_LAST2FIRST) {
816
+ if (t & D.WALK_LAST2FIRST) {
817
817
  for (let i = e.length; i > 0; i--) if (s = e[i - 1], l = Xe([...s.dl_children], t, n, r, o), l < 0) return l;
818
818
  } else for (let i = 0; i < e.length; i++) if (s = e[i], l = Xe([...s.dl_children], t, n, r, o), l < 0) return l;
819
819
  return l;
820
820
  }
821
821
  function Ze(e, t, n, r, o) {
822
- if (t & x.WALK_BYLEVEL) return Xe(e, t, n, r, o);
822
+ if (t & D.WALK_BYLEVEL) return Xe(e, t, n, r, o);
823
823
  let s, l;
824
- if (t & x.WALK_BOTTOM2TOP) for (let i = e.length; i > 0; i--) {
824
+ if (t & D.WALK_BOTTOM2TOP) for (let i = e.length; i > 0; i--) {
825
825
  if (l = e[i - 1], s = Ze([...l.dl_children], t, n, r, o), s < 0) return s;
826
826
  if (s = ze(n(l, r, o)), s < 0) return s;
827
827
  }
@@ -899,8 +899,8 @@ function st(e, t, n) {
899
899
  }
900
900
  function lt(e, t) {
901
901
  if (t) {
902
- if (0 === Nn(t, "__disabled__")) return De(e);
903
- if (0 === Nn(t, "__running__")) return xe(e);
902
+ if (0 === Nn(t, "__disabled__")) return xe(e);
903
+ if (0 === Nn(t, "__running__")) return De(e);
904
904
  if (0 === Nn(t, "__playing__")) return ke(e);
905
905
  if (0 === Nn(t, "__service__")) return Ae(e);
906
906
  }
@@ -1064,7 +1064,7 @@ function Rt(e, n, r, o) {
1064
1064
  let _ = wt(s.dl_subscriptions, s, i, n, l);
1065
1065
  return _ >= 0 ? cn(s.dl_subscriptions, _) : (qt(`${Fe(e)}: subscription in publisher not found`), Xt(n)), _ = wt(l.dl_subscribings, s, i, n, l), _ >= 0 ? cn(l.dl_subscribings, _) : (qt(`${Fe(e)}: subscription in subscriber not found`), Xt(n)), 0;
1066
1066
  }
1067
- function xt(e, n, r, o) {
1067
+ function Dt(e, n, r, o) {
1068
1068
  if (null == r && (r = {}), !e) return qt(`publisher NULL: ev ${n}`), 0;
1069
1069
  if (!o) return qt(`subscriber NULL: ev ${n}`), 0;
1070
1070
  const s = /* @__PURE__ */ new Set([
@@ -1079,7 +1079,7 @@ function xt(e, n, r, o) {
1079
1079
  }), vn(n)) n = "";
1080
1080
  else if (!(Et(e, n, R.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & O.gcflag_no_check_output_events)) return qt(`event NOT in output event list: ${Fe(e)}, ${n}`), 0;
1081
1081
  let l = Nt(e.dl_subscriptions, e, n, r, o);
1082
- gn(l) > 0 && (qt(`${Fe(e)}: ${gn(l)} subscription(s) REPEATED, will be deleted and override`), Xt(l, "subscription REPEATED"), Dt(e, l, !1));
1082
+ gn(l) > 0 && (qt(`${Fe(e)}: ${gn(l)} subscription(s) REPEATED, will be deleted and override`), Xt(l, "subscription REPEATED"), xt(e, l, !1));
1083
1083
  let i = function(e, t, n, r) {
1084
1084
  let o = q(e, St);
1085
1085
  _n(o, "event", t), _n(o, "subscriber", r), _n(o, "publisher", e);
@@ -1088,11 +1088,11 @@ function xt(e, n, r, o) {
1088
1088
  let t = Ln(e, n, "__config__", null), r = Ln(e, n, "__global__", null), l = Ln(e, n, "__local__", null), i = Pn(e, n, "__filter__", null), _ = $n(e, n, "__service__", "");
1089
1089
  if (pn(r) > 0 && _n(o, "__global__", Zt(r)), pn(t) > 0) {
1090
1090
  let n = Zt(t);
1091
- if (_n(o, "__config__", n), xn(n, "__hard_subscription__")) {
1091
+ if (_n(o, "__config__", n), Dn(n, "__hard_subscription__")) {
1092
1092
  let t = kn(e, n, "__hard_subscription__", !1);
1093
1093
  sn(n, "__hard_subscription__"), t && (s |= vt.__hard_subscription__);
1094
1094
  }
1095
- if (xn(n, "__own_event__")) {
1095
+ if (Dn(n, "__own_event__")) {
1096
1096
  let t = kn(e, n, "__own_event__", !1);
1097
1097
  sn(n, "__own_event__"), t && (s |= vt.__own_event__);
1098
1098
  }
@@ -1108,7 +1108,7 @@ function xt(e, n, r, o) {
1108
1108
  }
1109
1109
  return i;
1110
1110
  }
1111
- function Dt(e, t, n) {
1111
+ function xt(e, t, n) {
1112
1112
  let r = [...t];
1113
1113
  for (let t = 0; t < r.length; t++) Rt(e, r[t], n, !1);
1114
1114
  return 0;
@@ -1368,10 +1368,10 @@ function Rn(e, t) {
1368
1368
  else "string" == typeof t && delete e[t];
1369
1369
  else for (const n of Object.keys(t)) delete e[n];
1370
1370
  }
1371
- function xn(e, t) {
1371
+ function Dn(e, t) {
1372
1372
  return !(!(t in e) || !e.hasOwnProperty(t));
1373
1373
  }
1374
- function Dn(e, t, n, r) {
1374
+ function xn(e, t, n, r) {
1375
1375
  if (e && !jn(e) && qt("GObj bad instanceof"), !dn(t) && !bn(t)) return qt(`${Fe(e)}: kw must be list or dict`), 0;
1376
1376
  if (!mn(n)) return qt(`${Fe(e)}: path must be a string: ${String(n)}`), 0;
1377
1377
  let o = n.split("`");
@@ -1386,11 +1386,11 @@ function An(e, t, n) {
1386
1386
  let n = e.lastIndexOf(t);
1387
1387
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
1388
1388
  }(n, "`");
1389
- return vn(o) ? sn(t, n) : sn(Dn(e, t, r, !0), o), 0;
1389
+ return vn(o) ? sn(t, n) : sn(xn(e, t, r, !0), o), 0;
1390
1390
  }
1391
1391
  function kn(e, t, n, r, o) {
1392
1392
  e && !jn(e) && qt("GObj bad instanceof");
1393
- let s = Dn(e, t, n, !1);
1393
+ let s = xn(e, t, n, !1);
1394
1394
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
1395
1395
  if (void 0 === s) {
1396
1396
  if (i) {
@@ -1403,7 +1403,7 @@ function kn(e, t, n, r, o) {
1403
1403
  }
1404
1404
  function In(e, t, n, r, o) {
1405
1405
  e && !jn(e) && qt("GObj bad instanceof");
1406
- let s = Dn(e, t, n, !1);
1406
+ let s = xn(e, t, n, !1);
1407
1407
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
1408
1408
  if (void 0 === s) {
1409
1409
  if (i) {
@@ -1416,7 +1416,7 @@ function In(e, t, n, r, o) {
1416
1416
  }
1417
1417
  function $n(e, t, n, r, o) {
1418
1418
  e && !jn(e) && qt("GObj bad instanceof");
1419
- let s = Dn(e, t, n, !1);
1419
+ let s = xn(e, t, n, !1);
1420
1420
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
1421
1421
  if (void 0 === s) {
1422
1422
  if (i) {
@@ -1429,7 +1429,7 @@ function $n(e, t, n, r, o) {
1429
1429
  }
1430
1430
  function Cn(e, t, n, r, o) {
1431
1431
  e && !jn(e) && qt("GObj bad instanceof");
1432
- let s = Dn(e, t, n, !1);
1432
+ let s = xn(e, t, n, !1);
1433
1433
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
1434
1434
  if (void 0 === s) {
1435
1435
  if (i) {
@@ -1442,7 +1442,7 @@ function Cn(e, t, n, r, o) {
1442
1442
  }
1443
1443
  function Ln(e, t, n, r, o) {
1444
1444
  e && !jn(e) && qt("GObj bad instanceof");
1445
- let s = Dn(e, t, n, !1);
1445
+ let s = xn(e, t, n, !1);
1446
1446
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
1447
1447
  if (void 0 === s) {
1448
1448
  if (i) {
@@ -1455,7 +1455,7 @@ function Ln(e, t, n, r, o) {
1455
1455
  }
1456
1456
  function Pn(e, t, n, r, o) {
1457
1457
  e && !jn(e) && qt("GObj bad instanceof");
1458
- let s = Dn(e, t, n, !1);
1458
+ let s = xn(e, t, n, !1);
1459
1459
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
1460
1460
  if (void 0 === s) {
1461
1461
  if (i) {
@@ -1677,7 +1677,7 @@ function or(e, t, n, r) {
1677
1677
  if (s) {
1678
1678
  let e = s.id;
1679
1679
  if (e && e === n) return s;
1680
- if (r && xn(s, t)) {
1680
+ if (r && Dn(s, t)) {
1681
1681
  let e = or(s[t], t, n, r);
1682
1682
  if (e) return e;
1683
1683
  }
@@ -1907,13 +1907,13 @@ function Nr(e, t, n, r) {
1907
1907
  let o = e.priv, s = o.periodic ? "EV_TIMEOUT_PERIODIC" : "EV_TIMEOUT";
1908
1908
  return o.periodic && o.msec > 0 ? o.timer_id = setTimeout(function() {
1909
1909
  jt(e, "EV_TIMEOUT", {}, e);
1910
- }, o.msec) : o.timer_id = -1, We(e) ? jt(Ve(e), s, {}, e) : It(e, s, {}), o.periodic || -1 !== o.timer_id || xe(e) && Se(e), 0;
1910
+ }, o.msec) : o.timer_id = -1, We(e) ? jt(Ve(e), s, {}, e) : It(e, s, {}), o.periodic || -1 !== o.timer_id || De(e) && Se(e), 0;
1911
1911
  }
1912
1912
  var wr = {
1913
1913
  mt_create: function(e) {
1914
1914
  let t = e.priv;
1915
1915
  const n = at(e, "subscriber");
1916
- n && xt(e, null, {}, n), t.periodic = lt(e, "periodic"), t.msec = it(e, "msec");
1916
+ n && Dt(e, null, {}, n), t.periodic = lt(e, "periodic"), t.msec = it(e, "msec");
1917
1917
  },
1918
1918
  mt_writing: function(e, t) {
1919
1919
  let n = e.priv;
@@ -1923,7 +1923,7 @@ var wr = {
1923
1923
  break;
1924
1924
  case "msec": n.msec = it(e, "msec"), -1 !== n.timer_id && (clearTimeout(n.timer_id), n.timer_id = -1), n.msec > 0 && (n.timer_id = setTimeout(function() {
1925
1925
  jt(e, "EV_TIMEOUT", {}, e);
1926
- }, n.msec)), n.msec > 0 ? xe(e) || ye(e) : xe(e) && Se(e);
1926
+ }, n.msec)), n.msec > 0 ? De(e) || ye(e) : De(e) && Se(e);
1927
1927
  }
1928
1928
  },
1929
1929
  mt_start: function(e) {
@@ -1937,10 +1937,10 @@ var wr = {
1937
1937
  function Rr(e, t) {
1938
1938
  return e instanceof S ? "C_TIMER" !== Ue(e) ? (qt("not C_TIMER GObj"), -1) : (ct(e, "periodic", !1), void ft(e, "msec", t)) : (qt("not GObj TYPE"), -1);
1939
1939
  }
1940
- function xr(e, t) {
1940
+ function Dr(e, t) {
1941
1941
  return e instanceof S ? "C_TIMER" !== Ue(e) ? (qt("not C_TIMER GObj"), -1) : (ct(e, "periodic", !0), void ft(e, "msec", t)) : (qt("not GObj TYPE"), -1);
1942
1942
  }
1943
- function Dr(e) {
1943
+ function xr(e) {
1944
1944
  return e instanceof S ? "C_TIMER" !== Ue(e) ? (qt("not C_TIMER GObj"), -1) : void ft(e, "msec", -1) : (qt("not GObj TYPE"), -1);
1945
1945
  }
1946
1946
  var Ar = [
@@ -1980,15 +1980,15 @@ var Cr = {
1980
1980
  },
1981
1981
  mt_writing: function(e, t) {},
1982
1982
  mt_start: function(e) {
1983
- return xr(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
1983
+ return Dr(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
1984
1984
  },
1985
1985
  mt_stop: function(e) {
1986
- return Dr(e.priv.gobj_timer), Ne(e), 0;
1986
+ return xr(e.priv.gobj_timer), Ne(e), 0;
1987
1987
  },
1988
1988
  mt_destroy: function(e) {},
1989
1989
  mt_play: function(e) {
1990
1990
  let t = ce();
1991
- return xe(t) || ye(t), ke(t) || we(t), 0;
1991
+ return De(t) || ye(t), ke(t) || we(t), 0;
1992
1992
  },
1993
1993
  mt_pause: function(e) {
1994
1994
  return Re(ce()), 0;
@@ -2132,7 +2132,7 @@ function Jr(e, t) {
2132
2132
  }
2133
2133
  function qr(e, t, n, r) {
2134
2134
  let o = e.priv;
2135
- return xe(e) && (o.websocket = Gr(e)), 0;
2135
+ return De(e) && (o.websocket = Gr(e)), 0;
2136
2136
  }
2137
2137
  function Hr(e, t, n, r) {
2138
2138
  return zt("Websocket opened: " + e.priv.url), Br(e), 0;
@@ -2152,7 +2152,7 @@ function zr(e, t, n, r) {
2152
2152
  code: s.code,
2153
2153
  reason: s.reason,
2154
2154
  was_clean: s.wasClean
2155
- })), xe(e) && Rr(o.gobj_timer, function(e) {
2155
+ })), De(e) && Rr(o.gobj_timer, function(e) {
2156
2156
  let t = e.priv, n = it(e, "timeout_retry"), r = it(e, "timeout_retry_max");
2157
2157
  r < n && (r = n);
2158
2158
  t.retry_ms = t.retry_ms ? Math.min(2 * t.retry_ms, r) : n;
@@ -2165,7 +2165,7 @@ function Qr(e, t, n, r) {
2165
2165
  }
2166
2166
  function Xr(e, t, n, r) {
2167
2167
  let o = e.priv;
2168
- Dr(o.gobj_timer);
2168
+ xr(o.gobj_timer);
2169
2169
  let s = er(e, n, Lr, !0), l = $n(e, s, "src_yuno", ""), i = $n(e, s, "src_role", ""), _ = $n(e, s, "src_service", "");
2170
2170
  gt(e, "remote_yuno_name", l), gt(e, "remote_yuno_role", i), gt(e, "remote_yuno_service", _);
2171
2171
  let a = In(e, n, "result", -1, 0), u = $n(e, n, "comment", "", 0), c = $n(e, n, "username", "", 0), f = Pn(e, n, "services_roles", {});
@@ -2236,12 +2236,11 @@ function Zr(e, t, n, r) {
2236
2236
  if ("__subscribing__" === _) return -1;
2237
2237
  if ("__unsubscribing__" === _) return -1;
2238
2238
  if (mt(e, l, R.EVF_PUBLIC_EVENT)) return jt(e, l, i, e), 0;
2239
- let f = fe(c, !0);
2240
- if (f) {
2241
- if (!mt(f, l, R.EVF_PUBLIC_EVENT)) return qt(`${Fe(e)}: Service found but no event or not public, service '${Fe(f)}', ev '${l}'`), -1;
2242
- jt(f, l, i, e);
2243
- } else We(e) ? jt(Ve(e), l, i, e) : It(e, l, i);
2244
- return 0;
2239
+ if (!vn(c)) {
2240
+ let t = fe(c, !1);
2241
+ return t ? mt(t, l, R.EVF_PUBLIC_EVENT) ? (jt(t, l, i, e), 0) : (qt(`${Fe(e)}: Service found but no event or not public, service '${Fe(t)}', ev '${l}'`), -1) : (Ht(`${Fe(e)}: event for a service that is gone, DROPPED: service '${c}', ev '${l}'`), 0);
2242
+ }
2243
+ return We(e) ? jt(Ve(e), l, i, e) : It(e, l, i), 0;
2245
2244
  }
2246
2245
  function eo(e, t, n, r) {
2247
2246
  return 0;
@@ -2254,7 +2253,7 @@ var no = {
2254
2253
  let t = e.priv;
2255
2254
  t.gobj_timer = Te(Pe(e), "C_TIMER", {}, e), t.url = _t(e, "url"), t.remote_yuno_name = _t(e, "remote_yuno_name"), t.remote_yuno_role = _t(e, "remote_yuno_role"), t.remote_yuno_service = _t(e, "remote_yuno_service"), gt(e, "wanted_yuno_name", t.remote_yuno_name), gt(e, "wanted_yuno_role", t.remote_yuno_role), gt(e, "wanted_yuno_service", t.remote_yuno_service);
2256
2255
  const n = at(e, "subscriber");
2257
- n && xt(e, null, {}, n);
2256
+ n && Dt(e, null, {}, n);
2258
2257
  },
2259
2258
  mt_writing: function(e, t) {
2260
2259
  let n = e.priv;
@@ -2277,7 +2276,7 @@ var no = {
2277
2276
  },
2278
2277
  mt_stop: function(e) {
2279
2278
  let t = e.priv;
2280
- return Dr(t.gobj_timer), t.websocket && Vr(e), 0;
2279
+ return xr(t.gobj_timer), t.websocket && Vr(e), 0;
2281
2280
  },
2282
2281
  mt_destroy: function(e) {},
2283
2282
  mt_stats: function(e, t, n, r) {
@@ -2332,7 +2331,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2332
2331
  return t;
2333
2332
  }, exports.build_stats_response = o, exports.clean_name = function(e) {
2334
2333
  return e.replace(/[?# ^:]/g, "_");
2335
- }, exports.clear_timeout = Dr, exports.cmp_two_simple_json = wn, exports.command_parser = function(e, t, n, r) {}, exports.createElement2 = function e(t, n) {
2334
+ }, exports.clear_timeout = xr, exports.cmp_two_simple_json = wn, exports.command_parser = function(e, t, n, r) {}, exports.createElement2 = function e(t, n) {
2336
2335
  let [r, o, s, l] = t;
2337
2336
  if (!r) return void qt("Tag must be a valid HTML element.");
2338
2337
  let i = document.createElement(r), _ = "";
@@ -2487,7 +2486,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2487
2486
  }, exports.gobj_change_state = pt, exports.gobj_command = function(e, n, o, s) {
2488
2487
  if (Ke(e)) return qt("gobj NULL or DESTROYED"), -1;
2489
2488
  let l = d && it(d, "tracing");
2490
- return l && ($(t("🌀🌀 mach(%s%s), cmd: %s, src: %s", xe(e) ? "" : "!!", Fe(e), n, Fe(s))), l > 1 && Xt(o)), e.gclass.gmt.mt_command_parser ? e.gclass.gmt.mt_command_parser(e, n, o, s) : e.gclass.command_table ? u ? u(e, n, o, s) : r(0, -1, t("%s: global command parser not available", Fe(e)), 0, 0) : r(0, -1, t("%s: command table not available", Fe(e)), 0, 0);
2489
+ return l && ($(t("🌀🌀 mach(%s%s), cmd: %s, src: %s", De(e) ? "" : "!!", Fe(e), n, Fe(s))), l > 1 && Xt(o)), e.gclass.gmt.mt_command_parser ? e.gclass.gmt.mt_command_parser(e, n, o, s) : e.gclass.command_table ? u ? u(e, n, o, s) : r(0, -1, t("%s: global command parser not available", Fe(e)), 0, 0) : r(0, -1, t("%s: command table not available", Fe(e)), 0, 0);
2491
2490
  }, exports.gobj_create = function(e, t, n, r) {
2492
2491
  return Ee(e, t, n, r, 0);
2493
2492
  }, exports.gobj_create2 = Ee, exports.gobj_create_default_service = function(e, t, n, r) {
@@ -2504,7 +2503,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2504
2503
  return "__default_service__" === n ? b : "__yuno__" === n || "__root__" === n ? d : nt(d, t);
2505
2504
  }, exports.gobj_find_service = fe, exports.gobj_find_subscribings = kt, exports.gobj_find_subscriptions = At, exports.gobj_flag_t = N, exports.gobj_full_name = Ge, exports.gobj_gclass_name = Ue, exports.gobj_global_trace_level = function() {
2506
2505
  return P;
2507
- }, exports.gobj_has_attr = rt, exports.gobj_has_event = mt, exports.gobj_has_output_event = Et, exports.gobj_hsdata = Q, exports.gobj_is_destroying = Ke, exports.gobj_is_playing = ke, exports.gobj_is_pure_child = We, exports.gobj_is_running = xe, exports.gobj_is_service = Ae, exports.gobj_is_volatil = Me, exports.gobj_list_persistent_attrs = function(e, t) {
2506
+ }, exports.gobj_has_attr = rt, exports.gobj_has_event = mt, exports.gobj_has_output_event = Et, exports.gobj_hsdata = Q, exports.gobj_is_destroying = Ke, exports.gobj_is_playing = ke, exports.gobj_is_pure_child = We, exports.gobj_is_running = De, exports.gobj_is_service = Ae, exports.gobj_is_volatil = Me, exports.gobj_list_persistent_attrs = function(e, t) {
2508
2507
  return a ? a(e, t) : null;
2509
2508
  }, exports.gobj_list_subscriptions = function(e) {
2510
2509
  let t = At(e, null, null, null);
@@ -2611,9 +2610,9 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2611
2610
  }, exports.gobj_set_trace_machine_format = function(e) {
2612
2611
  I = 1 === Number(e) ? 1 : 0;
2613
2612
  }, exports.gobj_short_name = Fe, exports.gobj_start = ye, exports.gobj_start_children = function(e) {
2614
- return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : qe(e, x.WALK_FIRST2LAST, je, 0, 0);
2613
+ return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : qe(e, D.WALK_FIRST2LAST, je, 0, 0);
2615
2614
  }, exports.gobj_start_tree = function(e) {
2616
- return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : (Y(e) && $(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", Ge(e))), e.gclass.gclass_flag & O.gcflag_manual_start || e.disabled ? 0 : (e.running || ye(e), He(e, x.WALK_TOP2BOTTOM, ve, 0, 0)));
2615
+ return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : (Y(e) && $(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", Ge(e))), e.gclass.gclass_flag & O.gcflag_manual_start || e.disabled ? 0 : (e.running || ye(e), He(e, D.WALK_TOP2BOTTOM, ve, 0, 0)));
2617
2616
  }, exports.gobj_start_up = function(e, t, n, r, o, s, g) {
2618
2617
  l = t, i = n, _ = r, a = o, u = s, c = g;
2619
2618
  const p = [["EV_STATE_CHANGED", R.EVF_SYSTEM_EVENT | R.EVF_OUTPUT_EVENT | R.EVF_NO_WARN_SUBS], [0, 0]];
@@ -2625,8 +2624,8 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2625
2624
  }, exports.gobj_stats = function(e, n, r, s) {
2626
2625
  return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : e.gclass.gmt.mt_stats ? e.gclass.gmt.mt_stats(e, n, r, s) : c ? c(e, n, r, s) : o(0, -1, t("%s, stats parser not available", Fe(e)), 0, 0);
2627
2626
  }, exports.gobj_stop = Se, exports.gobj_stop_children = Ne, exports.gobj_stop_tree = function(e) {
2628
- return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : (Y(e) && $(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", Ge(e))), xe(e) && Se(e), He(e, x.WALK_TOP2BOTTOM, Oe, 0, 0));
2629
- }, exports.gobj_subscribe_event = xt, exports.gobj_trace_level = V, exports.gobj_trace_machine_format = function() {
2627
+ return Ke(e) ? (qt("gobj NULL or DESTROYED"), -1) : (Y(e) && $(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", Ge(e))), De(e) && Se(e), He(e, D.WALK_TOP2BOTTOM, Oe, 0, 0));
2628
+ }, exports.gobj_subscribe_event = Dt, exports.gobj_trace_level = V, exports.gobj_trace_machine_format = function() {
2630
2629
  return I;
2631
2630
  }, exports.gobj_trace_no_level = M, exports.gobj_unsubscribe_event = function(e, t, n, r) {
2632
2631
  if (null == n && (n = {}), !e) return qt(`publisher NULL: ev ${t}`), 0;
@@ -2648,7 +2647,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2648
2647
  Rt(e, n, !1, !1), l++;
2649
2648
  }
2650
2649
  return l || (Ht(`${Fe(e)}: No subscription found`), Xt(n, "No subscription found")), 0;
2651
- }, exports.gobj_unsubscribe_list = Dt, exports.gobj_walk_gobj_children = qe, exports.gobj_walk_gobj_children_tree = He, exports.gobj_write_attr = function(e, n, r, o) {
2650
+ }, exports.gobj_unsubscribe_list = xt, exports.gobj_walk_gobj_children = qe, exports.gobj_walk_gobj_children_tree = He, exports.gobj_write_attr = function(e, n, r, o) {
2652
2651
  if (!mn(n)) return qt(t("gobj_write_attr(%s): path must be a string", Fe(e))), -1;
2653
2652
  let s, l = e.jn_attrs, i = n.split("`");
2654
2653
  if (i.length <= 1) {
@@ -2781,9 +2780,9 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2781
2780
  if (!n || !bn(t)) return r && qt("item NULL or kw_list is not a list"), -1;
2782
2781
  for (let e = 0; e < t.length; e++) if (en(n, t[e])) return e;
2783
2782
  return r && qt("item not found in this list"), -1;
2784
- }, exports.kw_find_path = Dn, exports.kw_flag_t = $t, exports.kw_get_bool = kn, exports.kw_get_dict = Ln, exports.kw_get_dict_value = Pn, exports.kw_get_int = In, exports.kw_get_list = function(e, t, n, r, o) {
2783
+ }, exports.kw_find_path = xn, exports.kw_flag_t = $t, exports.kw_get_bool = kn, exports.kw_get_dict = Ln, exports.kw_get_dict_value = Pn, exports.kw_get_int = In, exports.kw_get_list = function(e, t, n, r, o) {
2785
2784
  e && !jn(e) && qt("GObj bad instanceof");
2786
- let s = Dn(e, t, n, !1);
2785
+ let s = xn(e, t, n, !1);
2787
2786
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
2788
2787
  if (void 0 === s) {
2789
2788
  if (i) {
@@ -2795,7 +2794,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2795
2794
  return _ && An(e, t, n), bn(s) ? Array(s) : (l && (qt(`path value MUST BE an array: ${n}`), Qt(t)), Array(r));
2796
2795
  }, exports.kw_get_local_storage_value = Kn, exports.kw_get_pointer = Cn, exports.kw_get_real = function(e, t, n, r, o) {
2797
2796
  e && !jn(e) && qt("GObj bad instanceof");
2798
- let s = Dn(e, t, n, !1);
2797
+ let s = xn(e, t, n, !1);
2799
2798
  const l = o && o & $t.KW_REQUIRED, i = o && o & $t.KW_CREATE, _ = o && o & $t.KW_EXTRACT;
2800
2799
  if (void 0 === s) {
2801
2800
  if (i) {
@@ -2805,7 +2804,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2805
2804
  return l && (qt(`path not found: '${n}'`), Xt(t)), Number(r);
2806
2805
  }
2807
2806
  return _ && An(e, t, n), En(s) ? Number(s) : (l && (qt(`path value MUST BE a number: ${n}`), Qt(t)), Number(r));
2808
- }, exports.kw_get_str = $n, exports.kw_has_key = xn, exports.kw_match_simple = Vn, exports.kw_pop = Rn, exports.kw_remove_local_storage_value = Bn, exports.kw_select = function(e, t, n, r) {
2807
+ }, exports.kw_get_str = $n, exports.kw_has_key = Dn, exports.kw_match_simple = Vn, exports.kw_pop = Rn, exports.kw_remove_local_storage_value = Bn, exports.kw_select = function(e, t, n, r) {
2809
2808
  if (e && !jn(e) && qt("GObj bad instanceof"), !t) return null;
2810
2809
  r || (r = Vn);
2811
2810
  let o = [];
@@ -2838,7 +2837,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2838
2837
  }, exports.kwid_match_id = Jn, exports.kwid_new_dict = function(e, t, n) {
2839
2838
  e && !jn(e) && qt("GObj bad instanceof");
2840
2839
  let r = {};
2841
- if (vn(n) || (t = Dn(e, t, n)), dn(t)) r = t;
2840
+ if (vn(n) || (t = xn(e, t, n)), dn(t)) r = t;
2842
2841
  else if (bn(t)) for (let n = 0; n < t.length; n++) {
2843
2842
  let o = t[n], s = $n(e, o, "id", "", 0);
2844
2843
  vn(s) || (r[s] = o);
@@ -2856,8 +2855,8 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2856
2855
  });
2857
2856
  else if (dn(s)) {
2858
2857
  let e = {};
2859
- if (xn(s, t)) {
2860
- if (!xn(s, n)) {
2858
+ if (Dn(s, t)) {
2859
+ if (!Dn(s, n)) {
2861
2860
  if (!(pn(s) > 0)) {
2862
2861
  qt("list2options(): object without field value: " + n);
2863
2862
  continue;
@@ -3048,7 +3047,7 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
3048
3047
  Mt = "function" == typeof e ? e : null;
3049
3048
  }, exports.set_log_callback = function(e) {
3050
3049
  Gt = "function" == typeof e ? e : null;
3051
- }, exports.set_remote_log_functions = Bt, exports.set_timeout = Rr, exports.set_timeout_periodic = xr, exports.sprintf = t, exports.stats_parser = function(e, t, n, r) {}, exports.str_in_list = zn, exports.strcasecmp = Nn, exports.strcmp = On, exports.strncmp = function(e, t, n) {
3050
+ }, exports.set_remote_log_functions = Bt, exports.set_timeout = Rr, exports.set_timeout_periodic = Dr, exports.sprintf = t, exports.stats_parser = function(e, t, n, r) {}, exports.str_in_list = zn, exports.strcasecmp = Nn, exports.strcmp = On, exports.strncmp = function(e, t, n) {
3052
3051
  var r = (e + "").substring(0, n), o = (t + "").substring(0, n);
3053
3052
  return r === o ? 0 : r > o ? 1 : -1;
3054
3053
  }, exports.strs_in_list = function(e, t, n) {
@@ -3135,11 +3134,11 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
3135
3134
  }, exports.treedb_get_field_desc = jr, exports.treedb_hook_data_size = function(e) {
3136
3135
  if (bn(e) && 1 === pn(e)) {
3137
3136
  let t = e[0];
3138
- return xn(t, "size") ? t.size : 1;
3137
+ return Dn(t, "size") ? t.size : 1;
3139
3138
  }
3140
3139
  return pn(e);
3141
3140
  }, exports.vsprintf = function(e, n) {
3142
3141
  return t.apply(null, [e].concat(n || []));
3143
- }, exports.walk_type_t = x;
3142
+ }, exports.walk_type_t = D;
3144
3143
 
3145
3144
  //# sourceMappingURL=gobj-js.cjs.min.js.map