@yuneta/gobj-js 7.6.6 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,13 +173,13 @@ 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), R = (e, t, n, r, l) => new O(e, t, n, r, l), j = (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), 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), R = (e, t, n, r, l) => new O(e, t, n, r, l), j = (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), A = 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
  }
180
- }, A = class {
180
+ }, k = class {
181
181
  constructor(e, t, n, r, l) {
182
- this.__refs__ = 0, this.gclass = t, this.parent = null, this.dl_children = [], this.dl_subscriptions = [], this.dl_subscribings = [], this.current_state = t.dl_states[0], this.last_state = null, this.obflag = 0, this.gobj_flag = Number(l) || 0, this.gobj_name = e, this.jn_attrs = null, this.jn_stats = {}, this.jn_user_data = {}, this.full_name = null, this.short_name = null, this.priv = cn(t.priv), this.running = !1, this.playing = !1, this.disabled = !1, this.bottom_gobj = null, this.trace_level = 0, this.no_trace_level = 0;
182
+ this.__refs__ = 0, this.gclass = t, this.parent = null, this.dl_children = [], this.dl_subscriptions = [], this.dl_subscribings = [], this.current_state = t.dl_states[0], this.last_state = null, this.obflag = 0, this.gobj_flag = Number(l) || 0, this.gobj_name = e, this.jn_attrs = null, this.jn_stats = {}, this.jn_user_data = {}, this.full_name = null, this.short_name = null, this.priv = mn(t.priv), this.running = !1, this.playing = !1, this.disabled = !1, this.bottom_gobj = null, this.trace_level = 0, this.no_trace_level = 0;
183
183
  }
184
184
  }, L = Object.freeze({
185
185
  gcflag_manual_start: 1,
@@ -223,181 +223,188 @@ var O = class {
223
223
  this.event_name = e, this.event_flag = Number(t) || 0;
224
224
  }
225
225
  };
226
- function M(e) {
227
- Rn(e) && (e = JSON.stringify(e)), an(" ".repeat(Math.max(0, 2 * T - 1)) + String(e));
226
+ var M = 0;
227
+ function K(e) {
228
+ M = 1 === Number(e) ? 1 : 0;
228
229
  }
229
- function K(e, t, n, r, l, i, o) {
230
+ function Y() {
231
+ return M;
232
+ }
233
+ function x(e) {
234
+ Ln(e) && (e = JSON.stringify(e)), dn(" ".repeat(Math.max(0, 2 * T - 1)) + String(e));
235
+ }
236
+ function B(e, t, n, r, l, i, o) {
230
237
  u = t, _ = n, c = r, f = l, g = i, d = o;
231
238
  const s = [["EV_STATE_CHANGED", C.EVF_SYSTEM_EVENT | C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS], [0, 0]];
232
239
  for (let e = 0; e < s.length; e++) {
233
240
  let t = s[e][0], n = s[e][1];
234
- ne(b, t, n);
241
+ ie(b, t, n);
235
242
  }
236
243
  return 0;
237
244
  }
238
- function Y(e, t) {
245
+ function J(e, t) {
239
246
  let n = {};
240
- if (!jn(t)) return ln("sdata_desc MUST be an array"), _n(t), n;
247
+ if (!Pn(t)) return cn("sdata_desc MUST be an array"), pn(t), n;
241
248
  for (let r = 0; r < t.length; r++) {
242
249
  const l = t[r];
243
- l.name && x(e, n, l);
250
+ l.name && Q(e, n, l);
244
251
  }
245
252
  return n;
246
253
  }
247
- function x(e, t, n) {
254
+ function Q(e, t, n) {
248
255
  let r, l = n.default_value;
249
256
  switch (n.type) {
250
257
  case y.DTP_STRING:
251
258
  r = String(l);
252
259
  break;
253
260
  case y.DTP_BOOLEAN:
254
- r = Gn(l);
261
+ r = xn(l);
255
262
  break;
256
263
  case y.DTP_INTEGER:
257
- r = parseInt(l), isNaN(r) && ln(`${Qe(e)}: attr NaN: ${n.name}`);
264
+ r = parseInt(l), isNaN(r) && cn(`${Xe(e)}: attr NaN: ${n.name}`);
258
265
  break;
259
266
  case y.DTP_REAL:
260
- r = Number(l), isNaN(r) && ln(`${Qe(e)}: attr NaN: ${n.name}`);
267
+ r = Number(l), isNaN(r) && cn(`${Xe(e)}: attr NaN: ${n.name}`);
261
268
  break;
262
269
  case y.DTP_LIST:
263
- if ($n(l)) try {
270
+ if (Un(l)) try {
264
271
  r = JSON.parse(l);
265
272
  } catch (e) {
266
- ln(`JSON parse error: ${e.message}`);
273
+ cn(`JSON parse error: ${e.message}`);
267
274
  }
268
275
  else r = l;
269
- jn(r) || (r = []);
276
+ Pn(r) || (r = []);
270
277
  break;
271
278
  case y.DTP_DICT:
272
- if ($n(l)) try {
279
+ if (Un(l)) try {
273
280
  r = JSON.parse(l);
274
281
  } catch (e) {
275
- ln(`JSON parse error: ${e.message}`);
282
+ cn(`JSON parse error: ${e.message}`);
276
283
  }
277
284
  else r = l;
278
- Rn(r) || (r = {});
285
+ Ln(r) || (r = {});
279
286
  break;
280
287
  case y.DTP_JSON:
281
- if ($n(l)) try {
288
+ if (Un(l)) try {
282
289
  r = JSON.parse(l);
283
290
  } catch (e) {
284
- ln(`JSON parse error: ${e.message}`);
291
+ cn(`JSON parse error: ${e.message}`);
285
292
  }
286
293
  else r = l;
287
294
  break;
288
295
  case y.DTP_POINTER: r = l;
289
296
  }
290
- return void 0 === r && (ln(`default_value WRONG, it: ${n.name}, value: ${n.default_value}`), r = null), t[n.name] = r, 0;
297
+ return void 0 === r && (cn(`default_value WRONG, it: ${n.name}, value: ${n.default_value}`), r = null), t[n.name] = r, 0;
291
298
  }
292
- function B(e, t, n, r) {
299
+ function q(e, t, n, r) {
293
300
  let l;
294
301
  switch (n.type) {
295
302
  case y.DTP_STRING:
296
303
  if (null == r) l = "";
297
- else if ($n(r)) l = String(r);
304
+ else if (Un(r)) l = String(r);
298
305
  else {
299
306
  let e = JSON.stringify(r);
300
307
  e && (l = String(e));
301
308
  }
302
309
  break;
303
310
  case y.DTP_BOOLEAN:
304
- l = Gn(r);
311
+ l = xn(r);
305
312
  break;
306
313
  case y.DTP_INTEGER:
307
- l = parseInt(r), isNaN(l) && ln(`${Qe(e)}: attr NaN: ${n.name}`);
314
+ l = parseInt(r), isNaN(l) && cn(`${Xe(e)}: attr NaN: ${n.name}`);
308
315
  break;
309
316
  case y.DTP_REAL:
310
- l = Number(r), isNaN(l) && ln(`${Qe(e)}: attr NaN: ${n.name}`);
317
+ l = Number(r), isNaN(l) && cn(`${Xe(e)}: attr NaN: ${n.name}`);
311
318
  break;
312
319
  case y.DTP_LIST:
313
- if ($n(r)) try {
320
+ if (Un(r)) try {
314
321
  l = JSON.parse(r);
315
322
  } catch (e) {
316
- ln(`JSON parse error: ${e.message}`);
323
+ cn(`JSON parse error: ${e.message}`);
317
324
  }
318
325
  else l = r;
319
- if (!jn(l)) return ln(`attr must be an array: ${n.name}`), -1;
326
+ if (!Pn(l)) return cn(`attr must be an array: ${n.name}`), -1;
320
327
  break;
321
328
  case y.DTP_DICT:
322
- if ($n(r)) try {
329
+ if (Un(r)) try {
323
330
  l = JSON.parse(r);
324
331
  } catch (e) {
325
- ln(`JSON parse error: ${e.message}`);
332
+ cn(`JSON parse error: ${e.message}`);
326
333
  }
327
334
  else l = r;
328
- if (!Rn(l)) return ln(`attr must be an object: ${n.name}`), -1;
335
+ if (!Ln(l)) return cn(`attr must be an object: ${n.name}`), -1;
329
336
  break;
330
337
  case y.DTP_JSON:
331
- if ($n(r)) try {
338
+ if (Un(r)) try {
332
339
  l = JSON.parse(r);
333
340
  } catch (e) {
334
- ln(`JSON parse error: ${e.message}`);
341
+ cn(`JSON parse error: ${e.message}`);
335
342
  }
336
343
  else l = r;
337
- if (!jn(l) && !Rn(l)) return ln(`attr must be a json dict/list: ${n.name}`), -1;
344
+ if (!Pn(l) && !Ln(l)) return cn(`attr must be a json dict/list: ${n.name}`), -1;
338
345
  break;
339
346
  case y.DTP_POINTER: l = r;
340
347
  }
341
- return void 0 === l && ln(`${Qe(e)}: attr undefined: ${n.name}`), t[n.name] = l, Rn(e.priv) && e.priv.hasOwnProperty(n.name) && (e.priv[n.name] = l), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, n.name), 0;
348
+ return void 0 === l && cn(`${Xe(e)}: attr undefined: ${n.name}`), t[n.name] = l, Ln(e.priv) && e.priv.hasOwnProperty(n.name) && (e.priv[n.name] = l), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, n.name), 0;
342
349
  }
343
- function J(e) {
350
+ function z(e) {
344
351
  return e.jn_attrs;
345
352
  }
346
- function Q(e, t, n) {
347
- return dt(e, t) ? J(e) : e && e.bottom_gobj ? Q(e.bottom_gobj, t, n) : (n && ln(`GClass Attribute NOT FOUND: ${Qe(e)}, attr ${t}`), null);
353
+ function X(e, t, n) {
354
+ return mt(e, t) ? z(e) : e && e.bottom_gobj ? X(e.bottom_gobj, t, n) : (n && cn(`GClass Attribute NOT FOUND: ${Xe(e)}, attr ${t}`), null);
348
355
  }
349
- function q(e, t, n) {
350
- if (!(e && e instanceof k)) return n && ln("gclass NULL"), null;
356
+ function H(e, t, n) {
357
+ if (!(e && e instanceof A)) return n && cn("gclass NULL"), null;
351
358
  if (!t) return e.attrs_table;
352
359
  for (let n = 0; n < e.attrs_table.length; n++) {
353
360
  const r = e.attrs_table[n];
354
361
  if (r.name && r.name === t) return r;
355
362
  }
356
- return n && ln(`${e.gclass_name}: GClass Attribute NOT FOUND: ${t}`), null;
363
+ return n && cn(`${e.gclass_name}: GClass Attribute NOT FOUND: ${t}`), null;
357
364
  }
358
- function z(e, t, n, r, l, i, o, s, a, u, _) {
359
- if (Fn(e)) return ln("gclass_name EMPTY"), null;
360
- if (e.includes("`") || e.includes("^") || e.includes(".")) return ln(`GClass name CANNOT have '.' or '^' or '\`' char: ${e}`), null;
361
- if (oe(e)) return ln(`GClass ALREADY exists: ${e}`), null;
362
- let c = new k(e, r, l, i, o, s, a, u, _);
365
+ function Z(e, t, n, r, l, i, o, s, a, u, _) {
366
+ if (Yn(e)) return cn("gclass_name EMPTY"), null;
367
+ if (e.includes("`") || e.includes("^") || e.includes(".")) return cn(`GClass name CANNOT have '.' or '^' or '\`' char: ${e}`), null;
368
+ if (ue(e)) return cn(`GClass ALREADY exists: ${e}`), null;
369
+ let c = new A(e, r, l, i, o, s, a, u, _);
363
370
  (function(e, t) {
364
- e && e instanceof k ? t ? p[t] ? ln(`gclass ALREADY REGISTERED: ${t}`) : p[t] = e : ln("gclass_name undefined") : ln("gclass undefined");
371
+ e && e instanceof A ? t ? p[t] ? cn(`gclass ALREADY REGISTERED: ${t}`) : p[t] = e : cn("gclass_name undefined") : cn("gclass undefined");
365
372
  })(c, e);
366
373
  const f = n.length;
367
374
  for (let e = 0; e < f; e++) {
368
375
  let t = n[e][0], r = n[e][1];
369
- if (Fn(t)) continue;
370
- if (ee(c, t) < 0) return X(c), null;
376
+ if (Yn(t)) continue;
377
+ if (re(c, t) < 0) return ee(c), null;
371
378
  const l = r.length;
372
379
  for (let e = 0; e < l; e++) {
373
380
  let n = r[e][0], l = r[e][1], i = r[e][2];
374
- Fn(n) || te(c, t, n, l, i);
381
+ Yn(n) || le(c, t, n, l, i);
375
382
  }
376
383
  }
377
384
  for (let e = 0; e < t.length; e++) {
378
385
  let n = t[e][0], r = t[e][1];
379
- if (!Fn(n)) {
380
- if (le(c, n)) return ln(`SMachine: event repeated in input_events: ${n}`), X(c), null;
381
- re(c, n, r);
386
+ if (!Yn(n)) {
387
+ if (se(c, n)) return cn(`SMachine: event repeated in input_events: ${n}`), ee(c), null;
388
+ oe(c, n, r);
382
389
  }
383
390
  }
384
391
  if (!c.fsm_checked) {
385
- if (ie(c) < 0) return X(c), null;
392
+ if (ae(c) < 0) return ee(c), null;
386
393
  c.fsm_checked = !0;
387
394
  }
388
395
  return c;
389
396
  }
390
- function X(e) {
397
+ function ee(e) {
391
398
  let t;
392
- if ($n(e)) t = e;
399
+ if (Un(e)) t = e;
393
400
  else {
394
- if (!(e instanceof k)) return ln("Cannot unregister gclass, type unknown"), -1;
401
+ if (!(e instanceof A)) return cn("Cannot unregister gclass, type unknown"), -1;
395
402
  t = e.gclass_name;
396
403
  }
397
404
  let n = p[t];
398
- return n ? n.instances > 0 ? (ln(`Cannot unregister gclass, instances in use: ${t}`), -1) : (delete p[t], 0) : (ln(`Cannot unregister gclass, not found: ${t}`), -1);
405
+ return n ? n.instances > 0 ? (cn(`Cannot unregister gclass, instances in use: ${t}`), -1) : (delete p[t], 0) : (cn(`Cannot unregister gclass, not found: ${t}`), -1);
399
406
  }
400
- function H(e, t) {
407
+ function te(e, t) {
401
408
  const n = e.dl_states.length, r = e.dl_states;
402
409
  for (let e = 0; e < n; e++) {
403
410
  let n = r[e];
@@ -405,7 +412,7 @@ function H(e, t) {
405
412
  }
406
413
  return null;
407
414
  }
408
- function Z(e, t) {
415
+ function ne(e, t) {
409
416
  const n = e.dl_actions.length, r = e.dl_actions;
410
417
  for (let e = 0; e < n; e++) {
411
418
  let n = r[e];
@@ -413,23 +420,23 @@ function Z(e, t) {
413
420
  }
414
421
  return null;
415
422
  }
416
- function ee(e, t) {
417
- return e instanceof k ? H(e, t) ? (ln(`state already exists: ${t}`), -1) : (e.dl_states.push(new V(t)), 0) : (ln("Cannot add state, typeof not GClass"), -1);
423
+ function re(e, t) {
424
+ return e instanceof A ? te(e, t) ? (cn(`state already exists: ${t}`), -1) : (e.dl_states.push(new V(t)), 0) : (cn("Cannot add state, typeof not GClass"), -1);
418
425
  }
419
- function te(e, t, n, r, l) {
420
- if (!(e instanceof k)) return ln("Cannot add state, typeof not GClass"), -1;
421
- if (Fn(t)) return ln("state_name EMPTY"), -1;
422
- let i = H(e, t);
423
- return i ? Z(i, n) ? (ln(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (i.dl_actions.push(new G(n, r, l)), 0) : (ln(`state not found: ${t}`), -1);
426
+ function le(e, t, n, r, l) {
427
+ if (!(e instanceof A)) return cn("Cannot add state, typeof not GClass"), -1;
428
+ if (Yn(t)) return cn("state_name EMPTY"), -1;
429
+ let i = te(e, t);
430
+ return i ? ne(i, n) ? (cn(`event already exists: gclass ${e.gclass_name}, state ${t}, event ${n}`), -1) : (i.dl_actions.push(new G(n, r, l)), 0) : (cn(`state not found: ${t}`), -1);
424
431
  }
425
- function ne(e, t, n) {
426
- Fn(t) || e.push(new W(t, n));
432
+ function ie(e, t, n) {
433
+ Yn(t) || e.push(new W(t, n));
427
434
  }
428
- function re(e, t, n) {
429
- return e instanceof k ? ne(e.dl_events, t, n) : (ln("Cannot add state, typeof not GClass"), -1);
435
+ function oe(e, t, n) {
436
+ return e instanceof A ? ie(e.dl_events, t, n) : (cn("Cannot add state, typeof not GClass"), -1);
430
437
  }
431
- function le(e, t) {
432
- if (!(e instanceof k)) return ln("Cannot add state, typeof not GClass"), 0;
438
+ function se(e, t) {
439
+ if (!(e instanceof A)) return cn("Cannot add state, typeof not GClass"), 0;
433
440
  const n = e.dl_events.length, r = e.dl_events;
434
441
  for (let e = 0; e < n; e++) {
435
442
  let n = r[e];
@@ -437,273 +444,273 @@ function le(e, t) {
437
444
  }
438
445
  return null;
439
446
  }
440
- function ie(e) {
441
- if (!(e instanceof k)) return ln("Cannot add state, typeof not GClass"), -1;
447
+ function ae(e) {
448
+ if (!(e instanceof A)) return cn("Cannot add state, typeof not GClass"), -1;
442
449
  let t = 0;
443
- wn(e.dl_states) || (ln(`GClass without states: ${e.gclass_name}`), t += -1);
450
+ An(e.dl_states) || (cn(`GClass without states: ${e.gclass_name}`), t += -1);
444
451
  for (let n = 0; n < e.dl_states.length; n++) {
445
452
  let r = e.dl_states[n];
446
- if (!Fn(r.state_name)) for (let n = 0; n < r.dl_actions.length; n++) {
453
+ if (!Yn(r.state_name)) for (let n = 0; n < r.dl_actions.length; n++) {
447
454
  let l = r.dl_actions[n];
448
- Fn(l.event_name) || (le(e, l.event_name) || (ln(`SMachine: state's event NOT in input_events: gclass ${e.gclass_name}, state ${r.state_name}, event ${l.event_name}`), t += -1), l.next_state && (H(e, l.next_state) || (ln(`SMachine: next state NOT in state names: gclass ${e.gclass_name}, state ${r.state_name}, next_state ${l.next_state}`), t += -1)));
455
+ Yn(l.event_name) || (se(e, l.event_name) || (cn(`SMachine: state's event NOT in input_events: gclass ${e.gclass_name}, state ${r.state_name}, event ${l.event_name}`), t += -1), l.next_state && (te(e, l.next_state) || (cn(`SMachine: next state NOT in state names: gclass ${e.gclass_name}, state ${r.state_name}, next_state ${l.next_state}`), t += -1)));
449
456
  }
450
457
  }
451
458
  for (let n = 0; n < e.dl_events.length; n++) {
452
459
  let r = e.dl_events[n];
453
- if (!Fn(r.event_name) && (In(r.event_flag) || (ln(`SMachine: event flag is NOT number: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1), !(r.event_flag & C.EVF_OUTPUT_EVENT))) {
460
+ if (!Yn(r.event_name) && (Cn(r.event_flag) || (cn(`SMachine: event flag is NOT number: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1), !(r.event_flag & C.EVF_OUTPUT_EVENT))) {
454
461
  let n = !1;
455
462
  for (let t = 0; t < e.dl_states.length; t++) {
456
463
  let l = e.dl_states[t];
457
- Fn(l.state_name) || Z(l, r.event_name) && (n = !0);
464
+ Yn(l.state_name) || ne(l, r.event_name) && (n = !0);
458
465
  }
459
- n || (ln(`SMachine: input_list's event NOT in state: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1);
466
+ n || (cn(`SMachine: input_list's event NOT in state: gclass ${e.gclass_name}, event ${r.event_name}`), t += -1);
460
467
  }
461
468
  }
462
469
  return t;
463
470
  }
464
- function oe(e, t) {
471
+ function ue(e, t) {
465
472
  let n = null;
466
473
  try {
467
474
  n = p[e];
468
475
  } catch (e) {}
469
- return n || t && ln(`gclass not found: ${e}`), n;
476
+ return n || t && cn(`gclass not found: ${e}`), n;
470
477
  }
471
- function se() {
478
+ function _e() {
472
479
  let e = [];
473
- for (const t of Object.keys(m)) Sn(e, t);
480
+ for (const t of Object.keys(m)) Rn(e, t);
474
481
  return e;
475
482
  }
476
- function ae() {
483
+ function ce() {
477
484
  return !h || h.obflag & U.obflag_destroyed ? null : h;
478
485
  }
479
- function ue(e, t) {
486
+ function fe(e, t) {
480
487
  e = e.toLowerCase();
481
488
  let n = m[e];
482
- return !n && t ? (ln(`gobj service not found: ${e}`), null) : n;
483
- }
484
- function _e(e) {
485
- let t = Be(e);
486
- return t = t.toLowerCase(), m[t] && ln(`service ALREADY REGISTERED: ${t}. Will be UPDATED`), m[t] = e, 0;
487
- }
488
- function ce(e, t) {
489
- t.parent && ln(`_add_child() ALREADY HAS PARENT: ${t.gobj_name}`), e.dl_children.push(t), t.parent = e;
490
- }
491
- function fe(e, t) {
492
- let n = nl(e.dl_children, t);
493
- n >= 0 && (On(e.dl_children, n), t.parent = null);
489
+ return !n && t ? (cn(`gobj service not found: ${e}`), null) : n;
494
490
  }
495
- function ge(e, t) {
496
- return Ve(e) ? u ? u(e, t) : -1 : (ln(`${Qe(e)}: Only gobj services can load/save writable-persistent`), -1);
491
+ function ge(e) {
492
+ let t = qe(e);
493
+ return t = t.toLowerCase(), m[t] && cn(`service ALREADY REGISTERED: ${t}. Will be UPDATED`), m[t] = e, 0;
497
494
  }
498
495
  function de(e, t) {
499
- return Ve(e) ? _ ? _(e, t) : -1 : (ln(`${Qe(e)}: Only gobj services can load/save writable-persistent`), -1);
496
+ t.parent && cn(`_add_child() ALREADY HAS PARENT: ${t.gobj_name}`), e.dl_children.push(t), t.parent = e;
500
497
  }
501
498
  function be(e, t) {
502
- return Ve(e) ? c ? c(e, t) : -1 : (ln(`${Qe(e)}: Only gobj services can load/save writable-persistent`), -1);
499
+ let n = al(e.dl_children, t);
500
+ n >= 0 && (jn(e.dl_children, n), t.parent = null);
503
501
  }
504
502
  function pe(e, t) {
505
- return f ? f(e, t) : null;
503
+ return Ke(e) ? u ? u(e, t) : -1 : (cn(`${Xe(e)}: Only gobj services can load/save writable-persistent`), -1);
506
504
  }
507
505
  function me(e, t) {
508
- "__json_config_variables__" !== t && ln(`GClass Attribute NOT FOUND: ${Qe(e)}, attr ${t}`);
506
+ return Ke(e) ? _ ? _(e, t) : -1 : (cn(`${Xe(e)}: Only gobj services can load/save writable-persistent`), -1);
507
+ }
508
+ function Ee(e, t) {
509
+ return Ke(e) ? c ? c(e, t) : -1 : (cn(`${Xe(e)}: Only gobj services can load/save writable-persistent`), -1);
510
+ }
511
+ function he(e, t) {
512
+ return f ? f(e, t) : null;
513
+ }
514
+ function Te(e, t) {
515
+ "__json_config_variables__" !== t && cn(`GClass Attribute NOT FOUND: ${Xe(e)}, attr ${t}`);
509
516
  }
510
- function Ee(e, t, n) {
517
+ function ye(e, t, n) {
511
518
  let r = t;
512
519
  (function(e, t, n, r, l) {
513
- if (!e || !t) return ln("hsdata or kw NULL"), -1;
520
+ if (!e || !t) return cn("hsdata or kw NULL"), -1;
514
521
  let i = 0;
515
522
  for (const [o, s] of Object.entries(t)) {
516
- const t = q(l.gclass, o, !1);
517
- 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--);
523
+ const t = H(l.gclass, o, !1);
524
+ t ? (-1 === n || t.flag & n) && (t.flag & S.SDF_DEPRECATED && fn(`${Xe(l)}: Deprecated attribute used in gobj creation: ${o}`), i += q(l, e, t, s)) : r && (r(l, o), i--);
518
525
  }
519
526
  return i;
520
- })(J(e), r, -1, e.gclass.gclass_flag & L.gcflag_ignore_unknown_attrs ? 0 : me, e) < 0 && (ln(`${Qe(e)} json2data() FAILED`), _n(r));
527
+ })(z(e), r, -1, e.gclass.gclass_flag & L.gcflag_ignore_unknown_attrs ? 0 : Te, e) < 0 && (cn(`${Xe(e)} json2data() FAILED`), pn(r));
521
528
  }
522
- function he(e, n, r, l, i) {
529
+ function Se(e, n, r, l, i) {
523
530
  if (i & P.gobj_flag_yuno) {
524
- if (E) return ln("__yuno__ already created"), null;
531
+ if (E) return cn("__yuno__ already created"), null;
525
532
  i |= P.gobj_flag_service;
526
533
  } else {
527
- if (!l) return ln("gobj NEEDS a parent!"), null;
528
- if (!("string" == typeof l || l instanceof A)) return ln(`BAD TYPE of parent: ${l}`), null;
529
- if ($n(l) && !(l = ue(l))) return on(`parent service not found: ${l}`), null;
534
+ if (!l) return cn("gobj NEEDS a parent!"), null;
535
+ if (!("string" == typeof l || l instanceof k)) return cn(`BAD TYPE of parent: ${l}`), null;
536
+ if (Un(l) && !(l = fe(l))) return fn(`parent service not found: ${l}`), null;
530
537
  }
531
- if (i & P.gobj_flag_service && ue(e, !1)) return ln(`service ALREADY registered: ${n}^${e}`), null;
538
+ if (i & P.gobj_flag_service && fe(e, !1)) return cn(`service ALREADY registered: ${n}^${e}`), null;
532
539
  if (i & P.gobj_flag_default_service) {
533
- if (h) return ln(`default service ALREADY registered: ${n}^${e}`), null;
540
+ if (h) return cn(`default service ALREADY registered: ${n}^${e}`), null;
534
541
  i |= P.gobj_flag_service;
535
542
  }
536
- if (Fn(n)) return ln("gclass_name must be a string"), null;
537
- let o = oe(n, !1);
538
- if (!o) return ln(`GClass not registered: ${n}^${e}`), null;
539
- if (!$n(e)) return ln(`gobj_name must be a string: ${n}`), null;
540
- if (!Fn(e)) {
541
- if (e.includes("`")) return ln(`gobj_name cannot contain char ': ${n}^${e}`), null;
542
- if (e.includes("^")) return ln(`gobj_name cannot contain char ^: ${n}^${e}`), null;
543
+ if (Yn(n)) return cn("gclass_name must be a string"), null;
544
+ let o = ue(n, !1);
545
+ if (!o) return cn(`GClass not registered: ${n}^${e}`), null;
546
+ if (!Un(e)) return cn(`gobj_name must be a string: ${n}`), null;
547
+ if (!Yn(e)) {
548
+ if (e.includes("`")) return cn(`gobj_name cannot contain char ': ${n}^${e}`), null;
549
+ if (e.includes("^")) return cn(`gobj_name cannot contain char ^: ${n}^${e}`), null;
543
550
  }
544
- let s = new A(e, o, r, l, i);
545
- s.jn_attrs = Y(s, o.attrs_table);
551
+ let s = new k(e, o, r, l, i);
552
+ s.jn_attrs = J(s, o.attrs_table);
546
553
  for (const [e, t] of Object.entries(s.jn_attrs)) e in s.priv && (s.priv[e] = t);
547
- let a = E && mt(E, "trace_creation");
548
- return a && M(t("💙💙⏩ creating: %s^%s", o.gclass_name, e)), s.gobj_flag & P.gobj_flag_service && _e(s), s.gobj_flag & P.gobj_flag_yuno && (E = s), s.gobj_flag & P.gobj_flag_default_service && (h = s), s.gobj_flag & P.gobj_flag_yuno || ce(l, s), s.obflag |= U.obflag_created, s.gclass.instances++, Ee(s, r), s.gobj_flag & P.gobj_flag_service && u && u(s, null), s.gclass.gmt.mt_create2 ? s.gclass.gmt.mt_create2(s, r) : s.gclass.gmt.mt_create && s.gclass.gmt.mt_create(s), l && l.gclass.gmt.mt_child_added && (a && M(t("👦👦🔵 child_added(%s): %s", qe(l), Qe(s))), l.gclass.gmt.mt_child_added(l, s)), a && M(t("💙💙⏪ created: %s", qe(s))), s;
554
+ let a = E && Tt(E, "trace_creation");
555
+ return a && x(t("💙💙⏩ creating: %s^%s", o.gclass_name, e)), s.gobj_flag & P.gobj_flag_service && ge(s), s.gobj_flag & P.gobj_flag_yuno && (E = s), s.gobj_flag & P.gobj_flag_default_service && (h = s), s.gobj_flag & P.gobj_flag_yuno || de(l, s), s.obflag |= U.obflag_created, s.gclass.instances++, ye(s, r), s.gobj_flag & P.gobj_flag_service && u && u(s, null), s.gclass.gmt.mt_create2 ? s.gclass.gmt.mt_create2(s, r) : s.gclass.gmt.mt_create && s.gclass.gmt.mt_create(s), l && l.gclass.gmt.mt_child_added && (a && x(t("👦👦🔵 child_added(%s): %s", He(l), Xe(s))), l.gclass.gmt.mt_child_added(l, s)), a && x(t("💙💙⏪ created: %s", He(s))), s;
549
556
  }
550
- function Te(e, t, n) {
551
- return he(e, t, n, null, P.gobj_flag_yuno);
557
+ function Oe(e, t, n) {
558
+ return Se(e, t, n, null, P.gobj_flag_yuno);
552
559
  }
553
- function ye(e, t, n, r) {
554
- return he(e, t, n, r, P.gobj_flag_service);
560
+ function ve(e, t, n, r) {
561
+ return Se(e, t, n, r, P.gobj_flag_service);
555
562
  }
556
- function Se(e, t, n, r) {
557
- return he(e, t, n, r, P.gobj_flag_default_service | P.gobj_flag_autostart);
563
+ function Ne(e, t, n, r) {
564
+ return Se(e, t, n, r, P.gobj_flag_default_service | P.gobj_flag_autostart);
558
565
  }
559
- function Oe(e, t, n, r) {
560
- return he(e, t, n, r, P.gobj_flag_volatil);
566
+ function we(e, t, n, r) {
567
+ return Se(e, t, n, r, P.gobj_flag_volatil);
561
568
  }
562
- function ve(e, t, n, r) {
563
- return he(e, t, n, r, P.gobj_flag_pure_child);
569
+ function De(e, t, n, r) {
570
+ return Se(e, t, n, r, P.gobj_flag_pure_child);
564
571
  }
565
- function Ne(e, t, n, r) {
566
- return he(e, t, n, r, 0);
567
- }
568
- function we(e) {
569
- if (Ze(e)) return void ln("gobj NULL or DESTROYED");
570
- e.__refs__ > 0 && ln(`${Qe(e)}: gobj DESTROYING with references: ${e.__refs__}`), e.obflag |= U.obflag_destroying;
571
- let n = E && mt(E, "trace_creation");
572
- n && M(t("💔💔⏩ destroying: %s", qe(e)));
573
- let r = ze(e);
574
- r && r.gclass.gmt.mt_child_removed && (n && M(t("👦👦🔴 child_removed(%s): %s", qe(r), Qe(e))), r.gclass.gmt.mt_child_removed(r, e)), e.gobj_flag & P.gobj_flag_service && function(e) {
575
- let t = Be(e);
576
- t = t.toLowerCase(), m[t] ? delete m[t] : ln(`"service NOT found in register": ${t}`);
577
- }(e), e.playing && (ln(`Destroying a PLAYING gobj: ${qe(e)}`), Ce(e)), e.running && (ln(`Destroying a RUNNING gobj: ${qe(e)}`), ke(e)), Kt(e, e.dl_subscriptions, !0), Kt(e, e.dl_subscribings, !0), r && (fe(r, e), Xe(e) && (et(r) !== e || Ze(r) || tt(r, null))), function(e) {
572
+ function Re(e, t, n, r) {
573
+ return Se(e, t, n, r, 0);
574
+ }
575
+ function je(e) {
576
+ if (nt(e)) return void cn("gobj NULL or DESTROYED");
577
+ e.__refs__ > 0 && cn(`${Xe(e)}: gobj DESTROYING with references: ${e.__refs__}`), e.obflag |= U.obflag_destroying;
578
+ let n = E && Tt(E, "trace_creation");
579
+ n && x(t("💔💔⏩ destroying: %s", He(e)));
580
+ let r = Ze(e);
581
+ r && r.gclass.gmt.mt_child_removed && (n && x(t("👦👦🔴 child_removed(%s): %s", He(r), Xe(e))), r.gclass.gmt.mt_child_removed(r, e)), e.gobj_flag & P.gobj_flag_service && function(e) {
582
+ let t = qe(e);
583
+ t = t.toLowerCase(), m[t] ? delete m[t] : cn(`"service NOT found in register": ${t}`);
584
+ }(e), e.playing && (cn(`Destroying a PLAYING gobj: ${He(e)}`), Ve(e)), e.running && (cn(`Destroying a RUNNING gobj: ${He(e)}`), Pe(e)), Bt(e, e.dl_subscriptions, !0), Bt(e, e.dl_subscribings, !0), r && (be(r, e), et(e) && (rt(r) !== e || nt(r) || lt(r, null))), function(e) {
578
585
  let t = e.dl_children.slice();
579
586
  for (let e = 0; e < t.length; e++) {
580
587
  let n = t[e];
581
- Ze(n) || we(n);
588
+ nt(n) || je(n);
582
589
  }
583
- }(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--;
590
+ }(e), e.obflag & U.obflag_created && e.gclass.gmt.mt_destroy && e.gclass.gmt.mt_destroy(e), n && x(t("💔💔⏪ destroyed: %s", He(e))), e.obflag |= U.obflag_destroyed, e.obflag & U.obflag_created && e.gclass.instances--;
584
591
  }
585
- function De(e) {
586
- if (Ze(e)) return ln("gobj NULL or DESTROYED"), -1;
587
- if (e.running) return ln(`${Qe(e)}: GObj ALREADY RUNNING`), -1;
588
- if (e.disabled) return ln(`${Qe(e)}: GObj DISABLED`), -1;
589
- E && mt(E, "trace_start_stop") && M(t("⏺ ⏺ start: %s", qe(e))), e.running = !0;
592
+ function $e(e) {
593
+ if (nt(e)) return cn("gobj NULL or DESTROYED"), -1;
594
+ if (e.running) return cn(`${Xe(e)}: GObj ALREADY RUNNING`), -1;
595
+ if (e.disabled) return cn(`${Xe(e)}: GObj DISABLED`), -1;
596
+ E && Tt(E, "trace_start_stop") && x(t("⏺ ⏺ start: %s", He(e))), e.running = !0;
590
597
  let n = 0;
591
598
  return e.gclass.gmt.mt_start && (n = e.gclass.gmt.mt_start(e)), n;
592
599
  }
593
- function Re(e, t, n) {
594
- return e.gclass.gclass_flag & L.gcflag_manual_start || Ze(e) || Fe(e) || Ge(e) || De(e), 0;
600
+ function Ie(e, t, n) {
601
+ return e.gclass.gclass_flag & L.gcflag_manual_start || nt(e) || We(e) || Me(e) || $e(e), 0;
595
602
  }
596
- function je(e) {
597
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : rt(e, F.WALK_FIRST2LAST, Re, 0, 0);
598
- }
599
- function $e(e, t, n) {
600
- return e.gclass.gclass_flag & L.gcflag_manual_start || Ge(e) ? 1 : (Fe(e) || De(e), 0);
601
- }
602
- function Ie(e) {
603
- 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, F.WALK_TOP2BOTTOM, $e, 0, 0)));
604
- }
605
- function ke(e) {
606
- if (Ze(e)) return ln("gobj NULL or DESTROYED"), -1;
607
- if (!e.running) return ln(`${Qe(e)}: GObj NOT RUNNING`), -1;
608
- e.playing && (on(`${Qe(e)}: GObj stopping without previous pause`), Ce(e)), E && mt(E, "trace_start_stop") && M(t("⏹ ⏹ stop: %s", qe(e))), e.running = !1;
609
- let n = 0;
610
- return e.gclass.gmt.mt_stop && (n = e.gclass.gmt.mt_stop(e)), n;
603
+ function Ae(e) {
604
+ return nt(e) ? (cn("gobj NULL or DESTROYED"), -1) : ot(e, F.WALK_FIRST2LAST, Ie, 0, 0);
611
605
  }
612
- function Ae(e, t, n) {
613
- return Fe(e) && ke(e), 0;
606
+ function ke(e, t, n) {
607
+ return e.gclass.gclass_flag & L.gcflag_manual_start || Me(e) ? 1 : (We(e) || $e(e), 0);
614
608
  }
615
609
  function Le(e) {
616
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : rt(e, F.WALK_FIRST2LAST, Ae, 0, 0);
610
+ return nt(e) ? (cn("gobj NULL or DESTROYED"), -1) : (E && Tt(E, "trace_start_stop") && x(t("⏺ ⏺ ⏺ ⏺ start_tree: %s", He(e))), e.gclass.gclass_flag & L.gcflag_manual_start || e.disabled ? 0 : (e.running || $e(e), st(e, F.WALK_TOP2BOTTOM, ke, 0, 0)));
617
611
  }
618
612
  function Pe(e) {
619
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : (E && mt(E, "trace_start_stop") && M(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", qe(e))), Fe(e) && ke(e), lt(e, F.WALK_TOP2BOTTOM, Ae, 0, 0));
620
- }
621
- function Ue(e) {
622
- if (Ze(e)) return ln(`gobj NULL or DESTROYED: ${Qe(e)}`), -1;
623
- if (e.playing) return ln(`${Qe(e)}: GObj ALREADY PLAYING`), -1;
624
- if (e.disabled) return ln(`${Qe(e)}: GObj DISABLED`), -1;
625
- if (!Fe(e)) {
626
- if (e.gclass.gclass_flag & L.gcflag_required_start_to_play) return ln(`${Qe(e)}: Cannot play, start not done`), -1;
627
- on(`${Qe(e)}: GObj playing without previous start`), De(e);
628
- }
629
- E && mt(E, "trace_start_stop") && M(t("⏯ ⏯ play: %s", qe(e))), e.playing = !0;
613
+ if (nt(e)) return cn("gobj NULL or DESTROYED"), -1;
614
+ if (!e.running) return cn(`${Xe(e)}: GObj NOT RUNNING`), -1;
615
+ e.playing && (fn(`${Xe(e)}: GObj stopping without previous pause`), Ve(e)), E && Tt(E, "trace_start_stop") && x(t("⏹ ⏹ stop: %s", He(e))), e.running = !1;
630
616
  let n = 0;
631
- return e.gclass.gmt.mt_play && (n = e.gclass.gmt.mt_play(e), n < 0 && (e.playing = !1)), n;
617
+ return e.gclass.gmt.mt_stop && (n = e.gclass.gmt.mt_stop(e)), n;
618
+ }
619
+ function Ue(e, t, n) {
620
+ return We(e) && Pe(e), 0;
632
621
  }
633
622
  function Ce(e) {
634
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : e.playing ? (E && mt(E, "trace_start_stop") && M(t("⏸ ⏸ pause: %s", qe(e))), e.playing = !1, e.gclass.gmt.mt_pause ? e.gclass.gmt.mt_pause(e) : 0) : (ln(`${Qe(e)}: GObj NOT PLAYING`), -1);
623
+ return nt(e) ? (cn("gobj NULL or DESTROYED"), -1) : ot(e, F.WALK_FIRST2LAST, Ue, 0, 0);
635
624
  }
636
625
  function Fe(e) {
637
- return !Ze(e) && e.running;
626
+ return nt(e) ? (cn("gobj NULL or DESTROYED"), -1) : (E && Tt(E, "trace_start_stop") && x(t("⏹ ⏹ ⏹ ⏹ stop_tree: %s", He(e))), We(e) && Pe(e), st(e, F.WALK_TOP2BOTTOM, Ue, 0, 0));
638
627
  }
639
628
  function Ge(e) {
640
- return !!Ze(e) || e.disabled;
629
+ if (nt(e)) return cn(`gobj NULL or DESTROYED: ${Xe(e)}`), -1;
630
+ if (e.playing) return cn(`${Xe(e)}: GObj ALREADY PLAYING`), -1;
631
+ if (e.disabled) return cn(`${Xe(e)}: GObj DISABLED`), -1;
632
+ if (!We(e)) {
633
+ if (e.gclass.gclass_flag & L.gcflag_required_start_to_play) return cn(`${Xe(e)}: Cannot play, start not done`), -1;
634
+ fn(`${Xe(e)}: GObj playing without previous start`), $e(e);
635
+ }
636
+ E && Tt(E, "trace_start_stop") && x(t("⏯ ⏯ play: %s", He(e))), e.playing = !0;
637
+ let n = 0;
638
+ return e.gclass.gmt.mt_play && (n = e.gclass.gmt.mt_play(e), n < 0 && (e.playing = !1)), n;
641
639
  }
642
640
  function Ve(e) {
643
- return !!(e && e.gobj_flag & P.gobj_flag_service);
641
+ return nt(e) ? (cn("gobj NULL or DESTROYED"), -1) : e.playing ? (E && Tt(E, "trace_start_stop") && x(t("⏸ ⏸ pause: %s", He(e))), e.playing = !1, e.gclass.gmt.mt_pause ? e.gclass.gmt.mt_pause(e) : 0) : (cn(`${Xe(e)}: GObj NOT PLAYING`), -1);
644
642
  }
645
643
  function We(e) {
646
- return !Ze(e) && e.playing;
644
+ return !nt(e) && e.running;
647
645
  }
648
- function Me() {
649
- return !E || E.obflag & U.obflag_destroyed ? null : E;
646
+ function Me(e) {
647
+ return !!nt(e) || e.disabled;
650
648
  }
651
- function Ke() {
652
- let e = Me();
653
- return e ? Be(e) : "";
649
+ function Ke(e) {
650
+ return !!(e && e.gobj_flag & P.gobj_flag_service);
654
651
  }
655
- function Ye() {
656
- let e = Me();
657
- return e ? ht(e, "yuno_role") : "";
652
+ function Ye(e) {
653
+ return !nt(e) && e.playing;
658
654
  }
659
655
  function xe() {
660
- let e = Me();
661
- return e ? ht(e, "yuno_id") : "";
656
+ return !E || E.obflag & U.obflag_destroyed ? null : E;
662
657
  }
663
- function Be(e) {
664
- return Cn(e) ? e.gobj_name : (ln("gobj bad type"), null);
658
+ function Be() {
659
+ let e = xe();
660
+ return e ? qe(e) : "";
665
661
  }
666
- function Je(e) {
667
- return Cn(e) ? e.gclass.gclass_name : (ln("gobj NULL of bad type"), null);
662
+ function Je() {
663
+ let e = xe();
664
+ return e ? St(e, "yuno_role") : "";
668
665
  }
669
- function Qe(e) {
670
- return Cn(e) ? e.gclass.gclass_name + "^" + Be(e) : (ln("gobj bad type"), null);
666
+ function Qe() {
667
+ let e = xe();
668
+ return e ? St(e, "yuno_id") : "";
671
669
  }
672
670
  function qe(e) {
673
- if (!Cn(e)) return ln("gobj NULL of bad type"), null;
674
- let t = Qe(e), n = ze(e);
675
- for (; n;) t = Qe(n) + "`" + t, n = ze(n);
676
- return t;
671
+ return Kn(e) ? e.gobj_name : (cn("gobj bad type"), null);
677
672
  }
678
673
  function ze(e) {
679
- return Cn(e) ? e.parent : (ln("gobj NULL of bad type"), null);
674
+ return Kn(e) ? e.gclass.gclass_name : (cn("gobj NULL of bad type"), null);
680
675
  }
681
676
  function Xe(e) {
682
- return Cn(e) ? !!(e.gobj_flag & P.gobj_flag_volatil) : (ln("gobj NULL of bad type"), null);
677
+ return Kn(e) ? e.gclass.gclass_name + "^" + qe(e) : (cn("gobj bad type"), null);
683
678
  }
684
679
  function He(e) {
685
- return Cn(e) ? !!(e.gobj_flag & P.gobj_flag_pure_child) : (ln("gobj NULL of bad type"), null);
680
+ if (!Kn(e)) return cn("gobj NULL of bad type"), null;
681
+ let t = Xe(e), n = Ze(e);
682
+ for (; n;) t = Xe(n) + "`" + t, n = Ze(n);
683
+ return t;
686
684
  }
687
685
  function Ze(e) {
688
- return !Cn(e) || !!(e.obflag & (U.obflag_destroyed | U.obflag_destroying));
686
+ return Kn(e) ? e.parent : (cn("gobj NULL of bad type"), null);
689
687
  }
690
688
  function et(e) {
691
- return Cn(e) ? e.bottom_gobj : (ln("gobj NULL of bad type"), null);
689
+ return Kn(e) ? !!(e.gobj_flag & P.gobj_flag_volatil) : (cn("gobj NULL of bad type"), null);
692
690
  }
693
- function tt(e, t) {
694
- if (!Cn(e)) return ln("gobj NULL of bad type"), null;
695
- e.bottom_gobj && on(`${Qe(e)}: bottom_gobj already set`), e.bottom_gobj = t;
691
+ function tt(e) {
692
+ return Kn(e) ? !!(e.gobj_flag & P.gobj_flag_pure_child) : (cn("gobj NULL of bad type"), null);
696
693
  }
697
- function nt(e, t, n) {
698
- return Cn(e) ? t ? q(e.gclass, t, n) : e.gclass.attrs_table : (ln("gobj NULL of bad type"), null);
694
+ function nt(e) {
695
+ return !Kn(e) || !!(e.obflag & (U.obflag_destroyed | U.obflag_destroying));
699
696
  }
700
- function rt(e, t, n, r, l) {
701
- return Ze(e) ? (ln("gobj NULL, destroying, or bad type"), 0) : it(e.dl_children, t, n, r, l);
697
+ function rt(e) {
698
+ return Kn(e) ? e.bottom_gobj : (cn("gobj NULL of bad type"), null);
702
699
  }
703
- function lt(e, t, n, r, l) {
704
- return Ze(e) ? (ln("gobj NULL, destroying, or bad type"), 0) : st(e.dl_children, t, n, r, l);
700
+ function lt(e, t) {
701
+ if (!Kn(e)) return cn("gobj NULL of bad type"), null;
702
+ e.bottom_gobj && fn(`${Xe(e)}: bottom_gobj already set`), e.bottom_gobj = t;
705
703
  }
706
- function it(e, t, n, r, l) {
704
+ function it(e, t, n) {
705
+ return Kn(e) ? t ? H(e.gclass, t, n) : e.gclass.attrs_table : (cn("gobj NULL of bad type"), null);
706
+ }
707
+ function ot(e, t, n, r, l) {
708
+ return nt(e) ? (cn("gobj NULL, destroying, or bad type"), 0) : at(e.dl_children, t, n, r, l);
709
+ }
710
+ function st(e, t, n, r, l) {
711
+ return nt(e) ? (cn("gobj NULL, destroying, or bad type"), 0) : _t(e.dl_children, t, n, r, l);
712
+ }
713
+ function at(e, t, n, r, l) {
707
714
  let i, o = [...e];
708
715
  if (t & F.WALK_LAST2FIRST) for (let e = o.length; e > 0; e--) {
709
716
  i = o[e - 1];
@@ -717,214 +724,214 @@ function it(e, t, n, r, l) {
717
724
  }
718
725
  return 0;
719
726
  }
720
- function ot(e, t, n, r, l) {
721
- let i, o = it(e, t, n, r, l);
727
+ function ut(e, t, n, r, l) {
728
+ let i, o = at(e, t, n, r, l);
722
729
  if (o < 0) return o;
723
730
  if (t & F.WALK_LAST2FIRST) {
724
- for (let s = e.length; s > 0; s--) if (i = e[s - 1], o = ot([...i.dl_children], t, n, r, l), o < 0) return o;
725
- } else for (let s = 0; s < e.length; s++) if (i = e[s], o = ot([...i.dl_children], t, n, r, l), o < 0) return o;
731
+ for (let s = e.length; s > 0; s--) if (i = e[s - 1], o = ut([...i.dl_children], t, n, r, l), o < 0) return o;
732
+ } else for (let s = 0; s < e.length; s++) if (i = e[s], o = ut([...i.dl_children], t, n, r, l), o < 0) return o;
726
733
  return o;
727
734
  }
728
- function st(e, t, n, r, l) {
729
- if (t & F.WALK_BYLEVEL) return ot(e, t, n, r, l);
735
+ function _t(e, t, n, r, l) {
736
+ if (t & F.WALK_BYLEVEL) return ut(e, t, n, r, l);
730
737
  let i, o;
731
738
  if (t & F.WALK_BOTTOM2TOP) for (let s = e.length; s > 0; s--) {
732
- if (o = e[s - 1], i = st([...o.dl_children], t, n, r, l), i < 0) return i;
739
+ if (o = e[s - 1], i = _t([...o.dl_children], t, n, r, l), i < 0) return i;
733
740
  if (i = n(o, r, l), i < 0) return i;
734
741
  }
735
742
  else for (let s = 0; s < e.length; s++) {
736
743
  if (o = e[s], i = n(o, r, l), i < 0) return i;
737
- if (0 === i && (i = st([...o.dl_children], t, n, r, l), i < 0)) return i;
744
+ if (0 === i && (i = _t([...o.dl_children], t, n, r, l), i < 0)) return i;
738
745
  }
739
746
  return 0;
740
747
  }
741
- function at(e, t) {
742
- if (Fn(t)) return null;
748
+ function ct(e, t) {
749
+ if (Yn(t)) return null;
743
750
  const n = t.toLowerCase();
744
- return "__default_service__" === n ? h : "__yuno__" === n || "__root__" === n ? E : gt(E, t);
751
+ return "__default_service__" === n ? h : "__yuno__" === n || "__root__" === n ? E : pt(E, t);
745
752
  }
746
- function ut(e, t) {
747
- if (!Cn(e)) return ln("gobj NULL of bad type"), !1;
753
+ function ft(e, t) {
754
+ if (!Kn(e)) return cn("gobj NULL of bad type"), !1;
748
755
  let n = t.__gclass_name__, r = t.__gobj_name__, l = t.__prefix_gobj_name__;
749
756
  t.__disabled__;
750
757
  let i = t.__state__;
751
- if (n && n !== Je(e)) return !1;
752
- if (r && r !== Be(e)) return !1;
758
+ if (n && n !== ze(e)) return !1;
759
+ if (r && r !== qe(e)) return !1;
753
760
  if (l) {
754
761
  let t = l.length;
755
- if (l !== Be(e).substring(0, t)) return !1;
762
+ if (l !== qe(e).substring(0, t)) return !1;
756
763
  }
757
- if (i && i !== Rt(e)) return !1;
764
+ if (i && i !== It(e)) return !1;
758
765
  let o = e.jn_attrs;
759
- for (const n of Object.keys(t)) if ("__gclass_name__" !== n && "__gobj_name__" !== n && "__prefix_gobj_name__" !== n && "__disabled__" !== n && "__state__" !== n && dt(e, n) && o[n] !== t[n]) return !1;
766
+ for (const n of Object.keys(t)) if ("__gclass_name__" !== n && "__gobj_name__" !== n && "__prefix_gobj_name__" !== n && "__disabled__" !== n && "__state__" !== n && mt(e, n) && o[n] !== t[n]) return !1;
760
767
  return !0;
761
768
  }
762
- function _t(e, t) {
763
- if (Ze(e)) return ln("gobj NULL or DESTROYED"), null;
769
+ function gt(e, t) {
770
+ if (nt(e)) return cn("gobj NULL or DESTROYED"), null;
764
771
  const n = e.dl_children;
765
772
  for (let e = 0; e < n.length; e++) {
766
773
  const r = n[e];
767
- if (ut(r, t)) return r;
774
+ if (ft(r, t)) return r;
768
775
  }
769
776
  return null;
770
777
  }
771
- function ct(e, t) {
772
- if (Ze(e)) return ln("gobj NULL or DESTROYED"), null;
778
+ function dt(e, t) {
779
+ if (nt(e)) return cn("gobj NULL or DESTROYED"), null;
773
780
  t = t || {};
774
781
  let n = [];
775
782
  const r = e.dl_children;
776
783
  for (let e = 0; e < r.length; e++) {
777
784
  const l = r[e];
778
- ut(l, t) && n.push(l);
785
+ ft(l, t) && n.push(l);
779
786
  }
780
787
  return n;
781
788
  }
782
- function ft(e, t) {
789
+ function bt(e, t) {
783
790
  t = t || {};
784
791
  let n = [];
785
792
  return function e(n, r) {
786
793
  let l = r.dl_children;
787
794
  for (let r = 0; r < l.length; r++) {
788
795
  let i = l[r];
789
- ut(i, t) && n.push(i), e(n, i);
796
+ ft(i, t) && n.push(i), e(n, i);
790
797
  }
791
798
  }(n, e), n;
792
799
  }
793
- function gt(e, t) {
800
+ function pt(e, t) {
794
801
  if (!t) return null;
795
802
  let n = t.split("`");
796
803
  if (!function(e, t) {
797
804
  let n = t.split("^"), r = null, l = null;
798
805
  if (2 === n.length) {
799
- if (l = n[0], r = n[1], l !== Je(e)) return !1;
806
+ if (l = n[0], r = n[1], l !== ze(e)) return !1;
800
807
  } else {
801
808
  if (1 !== n.length) return !1;
802
809
  r = n[0];
803
810
  }
804
- return r === Be(e);
811
+ return r === qe(e);
805
812
  }(e, n[0])) return null;
806
813
  if (1 === n.length) return e;
807
814
  let r = n[1].split("^"), l = {};
808
815
  1 === r.length ? l.__gobj_name__ = r : (l.__gclass_name__ = r[0], l.__gobj_name__ = r[1]);
809
- let i = _t(e, l);
810
- return i ? (n.splice(0, 1), n = n.join("`"), gt(i, n)) : null;
816
+ let i = gt(e, l);
817
+ return i ? (n.splice(0, 1), n = n.join("`"), pt(i, n)) : null;
811
818
  }
812
- function dt(e, t) {
813
- return !Fn(t) && !!q(e.gclass, t, !1);
819
+ function mt(e, t) {
820
+ return !Yn(t) && !!H(e.gclass, t, !1);
814
821
  }
815
- function bt(e, t, n) {
822
+ function Et(e, t, n) {
816
823
  let r = e.jn_attrs;
817
824
  if (t in r && r.hasOwnProperty(t)) {
818
825
  let n = r[t];
819
826
  return e.gclass.gmt.mt_reading ? e.gclass.gmt.mt_reading(e, t, n) : n;
820
827
  }
821
- return ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), null;
828
+ return cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), null;
822
829
  }
823
- function pt(e, t, n) {
830
+ function ht(e, t, n) {
824
831
  let r = {}, l = e.gclass.attrs_table;
825
832
  for (let n = 0; n < l.length; n++) {
826
833
  const i = l[n];
827
834
  if (i.name && (-1 === t || i.flag & t)) {
828
835
  let t;
829
- !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? t = mn(e.jn_attrs, i.name) : (t = e.gclass.gmt.mt_reading(e, i.name), void 0 === t && (t = mn(e.jn_attrs, i.name))), hn(r, i.name, t);
836
+ !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? t = On(e.jn_attrs, i.name) : (t = e.gclass.gmt.mt_reading(e, i.name), void 0 === t && (t = On(e.jn_attrs, i.name))), Nn(r, i.name, t);
830
837
  }
831
838
  }
832
839
  return r;
833
840
  }
834
- function mt(e, t) {
835
- if (t) {
836
- if (0 === Mn(t, "__disabled__")) return Ge(e);
837
- if (0 === Mn(t, "__running__")) return Fe(e);
838
- if (0 === Mn(t, "__playing__")) return We(e);
839
- if (0 === Mn(t, "__service__")) return Ve(e);
840
- }
841
- let n = Q(e, t, !1);
842
- return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? mn(n, t) : e.gclass.gmt.mt_reading(e, t) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
843
- }
844
- function Et(e, t) {
845
- t && Mn(t, "__trace_level__");
846
- let n = Q(e, t, !1);
847
- return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? mn(n, t) : e.gclass.gmt.mt_reading(e, t) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
848
- }
849
- function ht(e, t) {
850
- if (t && 0 === Mn(t, "__state__")) return Rt(e);
851
- let n = Q(e, t, !1);
852
- return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? mn(n, t) : e.gclass.gmt.mt_reading(e, t) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
853
- }
854
841
  function Tt(e, t) {
855
- let n = Q(e, t, !1);
856
- return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? mn(n, t) : e.gclass.gmt.mt_reading(e, t) : (ln(`${Qe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
857
- }
858
- function yt(e, n, r, l) {
859
- if (!$n(n)) return ln(t("gobj_write_attr(%s): path must be a string", Qe(e))), -1;
842
+ if (t) {
843
+ if (0 === Qn(t, "__disabled__")) return Me(e);
844
+ if (0 === Qn(t, "__running__")) return We(e);
845
+ if (0 === Qn(t, "__playing__")) return Ye(e);
846
+ if (0 === Qn(t, "__service__")) return Ke(e);
847
+ }
848
+ let n = X(e, t, !1);
849
+ return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? On(n, t) : e.gclass.gmt.mt_reading(e, t) : (cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
850
+ }
851
+ function yt(e, t) {
852
+ t && Qn(t, "__trace_level__");
853
+ let n = X(e, t, !1);
854
+ return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? On(n, t) : e.gclass.gmt.mt_reading(e, t) : (cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
855
+ }
856
+ function St(e, t) {
857
+ if (t && 0 === Qn(t, "__state__")) return It(e);
858
+ let n = X(e, t, !1);
859
+ return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? On(n, t) : e.gclass.gmt.mt_reading(e, t) : (cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
860
+ }
861
+ function Ot(e, t) {
862
+ let n = X(e, t, !1);
863
+ return n ? !e.gclass.gmt.mt_reading || e.obflag & U.obflag_destroyed ? On(n, t) : e.gclass.gmt.mt_reading(e, t) : (cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), 0);
864
+ }
865
+ function vt(e, n, r, l) {
866
+ if (!Un(n)) return cn(t("gobj_write_attr(%s): path must be a string", Xe(e))), -1;
860
867
  let i, o = e.jn_attrs, s = n.split("`");
861
868
  if (s.length <= 1) {
862
869
  let l = n;
863
- return l in o && o.hasOwnProperty(l) ? (o[l] = r, Rn(e.priv) && e.priv.hasOwnProperty(l) && (e.priv[l] = r), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, l), 0) : (ln(t("gobj_write_attr(%s): attr not found '%s'", Qe(e), l)), -1);
870
+ return l in o && o.hasOwnProperty(l) ? (o[l] = r, Ln(e.priv) && e.priv.hasOwnProperty(l) && (e.priv[l] = r), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, l), 0) : (cn(t("gobj_write_attr(%s): attr not found '%s'", Xe(e), l)), -1);
864
871
  }
865
872
  let a = s.length;
866
873
  for (let t = 0; t < a; t++) {
867
874
  i = s[t];
868
- let n = _t(e, { __gobj_name__: i });
875
+ let n = gt(e, { __gobj_name__: i });
869
876
  if (n && t < a - 1) {
870
877
  e = n;
871
878
  continue;
872
879
  }
873
880
  let l = e.jn_attrs;
874
- if (i in l && l.hasOwnProperty(i)) return l[i] = r, Rn(e.priv) && e.priv.hasOwnProperty(i) && (e.priv[i] = r), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.mt_writing && e.mt_writing(e, i), 0;
881
+ if (i in l && l.hasOwnProperty(i)) return l[i] = r, Ln(e.priv) && e.priv.hasOwnProperty(i) && (e.priv[i] = r), e.obflag & U.obflag_created && !(e.obflag & U.obflag_destroyed) && e.mt_writing && e.mt_writing(e, i), 0;
875
882
  break;
876
883
  }
877
- return ln(t("gobj_write_attr(%s): attr not found '%s'", Qe(e), i)), -1;
884
+ return cn(t("gobj_write_attr(%s): attr not found '%s'", Xe(e), i)), -1;
878
885
  }
879
- function St(e) {
886
+ function Nt(e) {
880
887
  return function(e, t, n) {
881
- if (Ze(e)) return ln("gobj NULL or DESTROYED"), -1;
888
+ if (nt(e)) return cn("gobj NULL or DESTROYED"), -1;
882
889
  let r = e.gclass.attrs_table;
883
890
  for (let l = 0; l < r.length; l++) {
884
891
  const i = r[l];
885
892
  if (i.name && !(n && i.flag & n) && (-1 === t || i.flag & t)) {
886
- const t = x(e, e.jn_attrs, i);
887
- Rn(e.priv) && e.priv.hasOwnProperty(i.name) && (e.priv[i.name] = t), e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, i.name);
893
+ const t = Q(e, e.jn_attrs, i);
894
+ Ln(e.priv) && e.priv.hasOwnProperty(i.name) && (e.priv[i.name] = t), e.gclass.gmt.mt_writing && e.gclass.gmt.mt_writing(e, i.name);
888
895
  }
889
896
  }
890
897
  return 0;
891
898
  }(e, S.SDF_VOLATIL, 0);
892
899
  }
893
- function Ot(e, t, n, r) {
894
- let l = J(e), i = 0;
900
+ function wt(e, t, n, r) {
901
+ let l = z(e), i = 0;
895
902
  for (const [r, o] of Object.entries(t)) {
896
- let t = nt(e, r, !0);
897
- t && (-1 === n || t.flag & n) && (i += B(e, l, t, o));
903
+ let t = it(e, r, !0);
904
+ t && (-1 === n || t.flag & n) && (i += q(e, l, t, o));
898
905
  }
899
906
  return i;
900
907
  }
901
- function vt(e, t, n) {
902
- let r = Q(e, t, !1);
903
- return r ? (r[t] = Gn(n), Rn(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);
908
+ function Dt(e, t, n) {
909
+ let r = X(e, t, !1);
910
+ return r ? (r[t] = xn(n), Ln(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) : (cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
904
911
  }
905
- function Nt(e, t, n) {
906
- let r = Q(e, t, !1);
907
- return r ? (r[t] = parseInt(n), Rn(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);
912
+ function Rt(e, t, n) {
913
+ let r = X(e, t, !1);
914
+ return r ? (r[t] = parseInt(n), Ln(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) : (cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
908
915
  }
909
- function wt(e, t, n) {
910
- let r = Q(e, t, !1);
911
- return r ? (r[t] = String(n), Rn(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);
916
+ function jt(e, t, n) {
917
+ let r = X(e, t, !1);
918
+ return r ? (r[t] = String(n), Ln(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) : (cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), -1);
912
919
  }
913
- function Dt(e, t) {
914
- if (Ze(e)) return ln("gobj NULL or DESTROYED"), null;
920
+ function $t(e, t) {
921
+ if (nt(e)) return cn("gobj NULL or DESTROYED"), null;
915
922
  if (e.current_state.state_name === t) return !1;
916
- let n = H(e.gclass, t);
917
- return n ? (e.last_state = e.current_state, e.current_state = n, !0) : (ln(`${Qe(e)}: state unknown, state ${t}`), !1);
923
+ let n = te(e.gclass, t);
924
+ return n ? (e.last_state = e.current_state, e.current_state = n, !0) : (cn(`${Xe(e)}: state unknown, state ${t}`), !1);
918
925
  }
919
- function Rt(e) {
920
- return Cn(e) ? e.current_state.state_name : (ln("hgobj NULL"), "");
926
+ function It(e) {
927
+ return Kn(e) ? e.current_state.state_name : (cn("hgobj NULL"), "");
921
928
  }
922
- function jt(e, n) {
923
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), null) : n instanceof A ? (e.parent && e.parent.mt_child_removed && e.parent.mt_child_removed(e.parent, e), e.parent && (fe(e.parent, e), e.parent = null), ce(n, e), n.mt_child_added && (E && mt(E, "trace_creation") && an(t("👦👦🔵 child_added(%s): %s", qe(n), Qe(e))), n.mt_child_added(n, e)), 0) : (ln(`${Qe(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
929
+ function At(e, n) {
930
+ return nt(e) ? (cn("gobj NULL or DESTROYED"), null) : n instanceof k ? (e.parent && e.parent.mt_child_removed && e.parent.mt_child_removed(e.parent, e), e.parent && (be(e.parent, e), e.parent = null), de(n, e), n.mt_child_added && (E && Tt(E, "trace_creation") && dn(t("👦👦🔵 child_added(%s): %s", He(n), Xe(e))), n.mt_child_added(n, e)), 0) : (cn(`${Xe(e)}: gobj_change_parent() BAD TYPE of parent`), -1);
924
931
  }
925
- function $t(e, t, n) {
926
- if (!Cn(e)) return ln("gobj NULL of bad type"), null;
927
- let r = le(e.gclass, t);
932
+ function kt(e, t, n) {
933
+ if (!Kn(e)) return cn("gobj NULL of bad type"), null;
934
+ let r = se(e.gclass, t);
928
935
  if (r) return r;
929
936
  if (n) {
930
937
  const e = b.length, n = b;
@@ -935,43 +942,47 @@ function $t(e, t, n) {
935
942
  }
936
943
  return null;
937
944
  }
938
- function It(e, t, n) {
939
- let r = $t(e, t, !1);
945
+ function Lt(e, t, n) {
946
+ let r = kt(e, t, !1);
940
947
  return !!r && !(n && !(r.event_flag & n));
941
948
  }
942
- function kt(e, t, n) {
943
- let r = $t(e, t, !1);
949
+ function Pt(e, t, n) {
950
+ let r = kt(e, t, !1);
944
951
  return !!r && !(n && !(r.event_flag & n)) && !!(r.event_flag & C.EVF_OUTPUT_EVENT);
945
952
  }
946
- function At(e, t, n, r) {
953
+ function Ut(e, t, n, r) {
947
954
  setTimeout(() => {
948
- Ze(e) || Lt(e, t, n, r);
955
+ nt(e) || Ct(e, t, n, r);
949
956
  }, 10);
950
957
  }
951
- function Lt(e, n, r, l) {
952
- if (!(e && e instanceof A)) return ln("gobj dst NULL"), -1;
953
- if (e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return ln("gobj dst DESTROYED"), -1;
958
+ function Ct(e, n, r, l) {
959
+ if (!(e && e instanceof k)) return cn("gobj dst NULL"), -1;
960
+ if (e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return cn("gobj dst DESTROYED"), -1;
954
961
  let i = e.current_state;
955
- if (!i) return ln(`${Qe(e)}: current_state NULL`), -1;
962
+ if (!i) return cn(`${Xe(e)}: current_state NULL`), -1;
956
963
  let o = 0;
957
- o = E && Et(E, "tracing"), "C_TIMER" === Je(l) && (o = E && Et(E, "trace_timer")), T++;
958
- let s = Z(i, n);
959
- if (!s) return e.gclass.gmt.mt_inject_event ? (T--, o && (M(t("🔃 mach(%s%s), st: %s, ev: %s, from(%s%s)", e.running ? "" : "!!", Qe(e), i.state_name, n || "", l && !l.running ? "!!" : "", Qe(l))), r && o > 1 && Nn(r) && _n(r)), e.gclass.gmt.mt_inject_event(e, n, r, l)) : (o && M(t("📛 mach(%s%s^%s), st: %s, ev: %s, 📛📛ERROR Event NOT DEFINED in state📛📛, from(%s%s^%s)", e.running ? "" : "!!", Je(e), Be(e), i.state_name, n || "", l && !l.running ? "!!" : "", Je(l), Be(l))), ln(`📛📛 Event NOT DEFINED in state 📛📛: ${Qe(e)}, ${i.state_name}, ${n}`), T--, -1);
964
+ o = E && yt(E, "tracing"), "C_TIMER" === ze(l) && (o = E && yt(E, "trace_timer")), T++;
965
+ let s = ne(i, n);
966
+ if (!s) return e.gclass.gmt.mt_inject_event ? (T--, o && (x(t("🔃 mach(%s%s), st: %s, ev: %s, from(%s%s)", e.running ? "" : "!!", Xe(e), i.state_name, n || "", l && !l.running ? "!!" : "", Xe(l))), r && o > 1 && In(r) && pn(r)), e.gclass.gmt.mt_inject_event(e, n, r, l)) : (o && x(t("📛 mach(%s%s^%s), st: %s, ev: %s, 📛📛ERROR Event NOT DEFINED in state📛📛, from(%s%s^%s)", e.running ? "" : "!!", ze(e), qe(e), i.state_name, n || "", l && !l.running ? "!!" : "", ze(l), qe(l))), cn(`📛📛 Event NOT DEFINED in state 📛📛: ${Xe(e)}, ${i.state_name}, ${n}`), T--, -1);
960
967
  if (o) {
961
- let a = "";
962
- 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);
968
+ if (1 === M) x(t("🔄 %s %s%s %s from %s%s", n || "", e.running ? "" : "!!", Xe(e), i.state_name, l && !l.running ? "!!" : "", Xe(l)));
969
+ else {
970
+ let r = "";
971
+ s.action && (r = cl(s.action)), x(t("🔄 mach(%s%s^%s), st: %s, ev: %s%s%s, ac: %s, from(%s%s^%s)", e.running ? "" : "!!", ze(e), qe(e), i.state_name, "", n || "", "", r, l && !l.running ? "!!" : "", ze(l), qe(l)));
972
+ }
973
+ r && o > 1 && In(r) && pn(r);
963
974
  }
964
- s.next_state && Dt(e, s.next_state);
975
+ s.next_state && $t(e, s.next_state);
965
976
  let a = -1;
966
977
  try {
967
978
  s.action && (a = s.action(e, n, r, l));
968
979
  } finally {}
969
- return !o || e.obflag & U.obflag_destroyed || M(t("<- mach(%s%s^%s), st: %s, ev: %s, ret: %d", e.running ? "" : "!!", Je(e), Be(e), e.current_state.state_name, n || "", In(a) ? a : 0)), T--, a;
980
+ return !o || 1 === M || e.obflag & U.obflag_destroyed || x(t("<- mach(%s%s^%s), st: %s, ev: %s, ret: %d", e.running ? "" : "!!", ze(e), qe(e), e.current_state.state_name, n || "", Cn(a) ? a : 0)), T--, a;
970
981
  }
971
- var Pt = Object.freeze({
982
+ var Ft = Object.freeze({
972
983
  __hard_subscription__: 1,
973
984
  __own_event__: 2
974
- }), Ut = [
985
+ }), Gt = [
975
986
  N(y.DTP_POINTER, "publisher", 0, null, "publisher gobj"),
976
987
  N(y.DTP_POINTER, "subscriber", 0, null, "subscriber gobj"),
977
988
  N(y.DTP_STRING, "event", 0, "", "event name subscribed"),
@@ -984,48 +995,48 @@ var Pt = Object.freeze({
984
995
  N(y.DTP_STRING, "__service__", 0, "", "subscription service"),
985
996
  v()
986
997
  ];
987
- function Ct(e, t, n, r, l) {
988
- 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;
989
- 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) {
990
- let t = nr(null, e, "__config__", null);
991
- Dn(t) > 0 && gn(t, i) || (u = !1);
998
+ function Vt(e, t, n, r, l) {
999
+ let i = ar(t, r, "__config__", null), o = ar(t, r, "__global__", null), s = ar(t, r, "__local__", null), a = ur(t, r, "__filter__", null), u = !0;
1000
+ if (t && t !== sr(null, e, "publisher", null) && (u = !1), l && l !== sr(null, e, "subscriber", null) && (u = !1), n && n !== or(null, e, "event", "") && (u = !1), kn(i) > 0) {
1001
+ let t = ar(null, e, "__config__", null);
1002
+ kn(t) > 0 && hn(t, i) || (u = !1);
992
1003
  }
993
- if (Dn(o) > 0) {
994
- let t = nr(null, e, "__global__", null);
995
- Dn(t) > 0 && gn(t, o) || (u = !1);
1004
+ if (kn(o) > 0) {
1005
+ let t = ar(null, e, "__global__", null);
1006
+ kn(t) > 0 && hn(t, o) || (u = !1);
996
1007
  }
997
- if (Dn(s) > 0) {
998
- let t = nr(null, e, "__local__", null);
999
- Dn(t) > 0 && gn(t, s) || (u = !1);
1008
+ if (kn(s) > 0) {
1009
+ let t = ar(null, e, "__local__", null);
1010
+ kn(t) > 0 && hn(t, s) || (u = !1);
1000
1011
  }
1001
- if (Dn(a) > 0) {
1002
- let t = rr(null, e, "__filter__", null);
1003
- Dn(t) > 0 && gn(t, a) || (u = !1);
1012
+ if (kn(a) > 0) {
1013
+ let t = ur(null, e, "__filter__", null);
1014
+ kn(t) > 0 && hn(t, a) || (u = !1);
1004
1015
  }
1005
1016
  return u;
1006
1017
  }
1007
- function Ft(e, t, n, r, l) {
1018
+ function Wt(e, t, n, r, l) {
1008
1019
  let i = [];
1009
1020
  for (let o = 0; o < e.length; o++) {
1010
1021
  let s = e[o];
1011
- Ct(s, t, n, r, l) && yn(i, s);
1022
+ Vt(s, t, n, r, l) && Dn(i, s);
1012
1023
  }
1013
1024
  return i;
1014
1025
  }
1015
- function Gt(e, t, n, r, l) {
1016
- for (let i = 0; i < e.length; i++) if (Ct(e[i], t, n, r, l)) return i;
1026
+ function Mt(e, t, n, r, l) {
1027
+ for (let i = 0; i < e.length; i++) if (Vt(e[i], t, n, r, l)) return i;
1017
1028
  return -1;
1018
1029
  }
1019
- function Vt(e, n, r, l) {
1020
- let i = tr(e, n, "publisher", null, zt.KW_REQUIRED), o = tr(e, n, "subscriber", null, zt.KW_REQUIRED), s = er(e, n, "event", "", zt.KW_REQUIRED);
1021
- if (!!(Hn(e, n, "subs_flag", null, zt.KW_REQUIRED) & Pt.__hard_subscription__) && !r) return -1;
1022
- E && mt(E, "trace_subscriptions") && (M(t("💜💜👎 unsubscribing event '%s': publisher %s, subscriber'%s'", s || "", Qe(i), Qe(o))), _n(n)), i.obflag & U.obflag_destroyed || l || i.gclass.gmt.mt_subscription_deleted && i.gclass.gmt.mt_subscription_deleted(i, n);
1023
- let a = Gt(i.dl_subscriptions, i, s, n, o);
1024
- return a >= 0 ? On(i.dl_subscriptions, a) : (ln(`${Qe(e)}: subscription in publisher not found`), _n(n)), a = Gt(o.dl_subscribings, i, s, n, o), a >= 0 ? On(o.dl_subscribings, a) : (ln(`${Qe(e)}: subscription in subscriber not found`), _n(n)), 0;
1030
+ function Kt(e, n, r, l) {
1031
+ let i = sr(e, n, "publisher", null, Zt.KW_REQUIRED), o = sr(e, n, "subscriber", null, Zt.KW_REQUIRED), s = or(e, n, "event", "", Zt.KW_REQUIRED);
1032
+ if (!!(lr(e, n, "subs_flag", null, Zt.KW_REQUIRED) & Ft.__hard_subscription__) && !r) return -1;
1033
+ E && Tt(E, "trace_subscriptions") && (x(t("💜💜👎 unsubscribing event '%s': publisher %s, subscriber'%s'", s || "", Xe(i), Xe(o))), pn(n)), i.obflag & U.obflag_destroyed || l || i.gclass.gmt.mt_subscription_deleted && i.gclass.gmt.mt_subscription_deleted(i, n);
1034
+ let a = Mt(i.dl_subscriptions, i, s, n, o);
1035
+ return a >= 0 ? jn(i.dl_subscriptions, a) : (cn(`${Xe(e)}: subscription in publisher not found`), pn(n)), a = Mt(o.dl_subscribings, i, s, n, o), a >= 0 ? jn(o.dl_subscribings, a) : (cn(`${Xe(e)}: subscription in subscriber not found`), pn(n)), 0;
1025
1036
  }
1026
- function Wt(e, n, r, l) {
1027
- if (null == r && (r = {}), !e) return ln(`publisher NULL: ev ${n}`), 0;
1028
- if (!l) return ln(`subscriber NULL: ev ${n}`), 0;
1037
+ function Yt(e, n, r, l) {
1038
+ if (null == r && (r = {}), !e) return cn(`publisher NULL: ev ${n}`), 0;
1039
+ if (!l) return cn(`subscriber NULL: ev ${n}`), 0;
1029
1040
  const i = new Set([
1030
1041
  "__config__",
1031
1042
  "__global__",
@@ -1034,37 +1045,37 @@ function Wt(e, n, r, l) {
1034
1045
  "__service__"
1035
1046
  ]);
1036
1047
  if (Object.keys(r).forEach((t) => {
1037
- i.has(t) || ln(`${Qe(e)}: key ignored in subscription (key: ${t}, event: ${n})`);
1038
- }), Fn(n)) n = "";
1039
- 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;
1040
- let o = Ft(e.dl_subscriptions, e, n, r, l);
1041
- wn(o) > 0 && (ln(`${Qe(e)}: ${wn(o)} subscription(s) REPEATED, will be deleted and override`), _n(o, "subscription REPEATED"), Kt(e, o, !1));
1048
+ i.has(t) || cn(`${Xe(e)}: key ignored in subscription (key: ${t}, event: ${n})`);
1049
+ }), Yn(n)) n = "";
1050
+ else if (!(Pt(e, n, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return cn(`event NOT in output event list: ${Xe(e)}, ${n}`), 0;
1051
+ let o = Wt(e.dl_subscriptions, e, n, r, l);
1052
+ An(o) > 0 && (cn(`${Xe(e)}: ${An(o)} subscription(s) REPEATED, will be deleted and override`), pn(o, "subscription REPEATED"), Bt(e, o, !1));
1042
1053
  let s = function(e, t, n, r) {
1043
- let l = Y(e, Ut);
1044
- Tn(l, "event", t), Tn(l, "subscriber", r), Tn(l, "publisher", e);
1054
+ let l = J(e, Gt);
1055
+ wn(l, "event", t), wn(l, "subscriber", r), wn(l, "publisher", e);
1045
1056
  let i = 0;
1046
1057
  if (n) {
1047
- 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__", "");
1048
- if (Dn(r) > 0 && Tn(l, "__global__", cn(r)), Dn(t) > 0) {
1049
- let n = cn(t);
1050
- if (Tn(l, "__config__", n), Qn(n, "__hard_subscription__")) {
1051
- let t = Xn(e, n, "__hard_subscription__", !1);
1052
- En(n, "__hard_subscription__"), t && (i |= Pt.__hard_subscription__);
1058
+ let t = ar(e, n, "__config__", null), r = ar(e, n, "__global__", null), o = ar(e, n, "__local__", null), s = ur(e, n, "__filter__", null), a = or(e, n, "__service__", "");
1059
+ if (kn(r) > 0 && wn(l, "__global__", mn(r)), kn(t) > 0) {
1060
+ let n = mn(t);
1061
+ if (wn(l, "__config__", n), er(n, "__hard_subscription__")) {
1062
+ let t = rr(e, n, "__hard_subscription__", !1);
1063
+ vn(n, "__hard_subscription__"), t && (i |= Ft.__hard_subscription__);
1053
1064
  }
1054
- if (Qn(n, "__own_event__")) {
1055
- let t = Xn(e, n, "__own_event__", !1);
1056
- En(n, "__own_event__"), t && (i |= Pt.__own_event__);
1065
+ if (er(n, "__own_event__")) {
1066
+ let t = rr(e, n, "__own_event__", !1);
1067
+ vn(n, "__own_event__"), t && (i |= Ft.__own_event__);
1057
1068
  }
1058
1069
  }
1059
- Dn(o) > 0 && Tn(l, "__local__", cn(o)), Dn(s) > 0 && Tn(l, "__filter__", cn(s)), Fn(a) || Tn(l, "__service__", a);
1070
+ kn(o) > 0 && wn(l, "__local__", mn(o)), kn(s) > 0 && wn(l, "__filter__", mn(s)), Yn(a) || wn(l, "__service__", a);
1060
1071
  }
1061
- return Tn(l, "subs_flag", i), l;
1072
+ return wn(l, "subs_flag", i), l;
1062
1073
  }(e, n, r, l);
1063
- return s ? (yn(e.dl_subscriptions, s), yn(l.dl_subscribings, s), E && mt(E, "trace_subscriptions") && (M(t("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", n || "", Qe(e), Qe(l))), r && _n(r)), e.gclass.gmt.mt_subscription_added && e.gclass.gmt.mt_subscription_added(e, s) < 0 && (Vt(e, s, !0, !0), s = 0), s) : (ln(`${Qe(e)}: _create_subscription() FAILED`), 0);
1074
+ return s ? (Dn(e.dl_subscriptions, s), Dn(l.dl_subscribings, s), E && Tt(E, "trace_subscriptions") && (x(t("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", n || "", Xe(e), Xe(l))), r && pn(r)), e.gclass.gmt.mt_subscription_added && e.gclass.gmt.mt_subscription_added(e, s) < 0 && (Kt(e, s, !0, !0), s = 0), s) : (cn(`${Xe(e)}: _create_subscription() FAILED`), 0);
1064
1075
  }
1065
- function Mt(e, t, n, r) {
1066
- if (null == n && (n = {}), !e) return ln(`publisher NULL: ev ${t}`), 0;
1067
- if (!r) return ln(`subscriber NULL: ev ${t}`), 0;
1076
+ function xt(e, t, n, r) {
1077
+ if (null == n && (n = {}), !e) return cn(`publisher NULL: ev ${t}`), 0;
1078
+ if (!r) return cn(`subscriber NULL: ev ${t}`), 0;
1068
1079
  const l = new Set([
1069
1080
  "__config__",
1070
1081
  "__global__",
@@ -1073,52 +1084,52 @@ function Mt(e, t, n, r) {
1073
1084
  "__service__"
1074
1085
  ]);
1075
1086
  if (Object.keys(n).forEach((n) => {
1076
- l.has(n) || ln(`${Qe(e)}: key ignored in subscription (key: ${n}, event: ${t})`);
1077
- }), Fn(t)) t = "";
1078
- else if (!(kt(e, t, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return ln(`event NOT in output event list: ${Qe(e)}, ev ${t}`), 0;
1079
- let i = Ft(e.dl_subscriptions, e, t, n, r), o = 0;
1087
+ l.has(n) || cn(`${Xe(e)}: key ignored in subscription (key: ${n}, event: ${t})`);
1088
+ }), Yn(t)) t = "";
1089
+ else if (!(Pt(e, t, C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return cn(`event NOT in output event list: ${Xe(e)}, ev ${t}`), 0;
1090
+ let i = Wt(e.dl_subscriptions, e, t, n, r), o = 0;
1080
1091
  for (let t = 0; t < i.length; t++) {
1081
1092
  let n = i[t];
1082
- Vt(e, n, !1, !1), o++;
1093
+ Kt(e, n, !1, !1), o++;
1083
1094
  }
1084
- return o || (on(`${Qe(e)}: No subscription found`), _n(n, "No subscription found")), 0;
1095
+ return o || (fn(`${Xe(e)}: No subscription found`), pn(n, "No subscription found")), 0;
1085
1096
  }
1086
- function Kt(e, t, n) {
1097
+ function Bt(e, t, n) {
1087
1098
  let r = [...t];
1088
- for (let t = 0; t < r.length; t++) Vt(e, r[t], n, !1);
1099
+ for (let t = 0; t < r.length; t++) Kt(e, r[t], n, !1);
1089
1100
  return 0;
1090
1101
  }
1091
- function Yt(e, t, n, r) {
1092
- return null == n && (n = {}), Ft(e.dl_subscriptions, e, t, n, r);
1102
+ function Jt(e, t, n, r) {
1103
+ return null == n && (n = {}), Wt(e.dl_subscriptions, e, t, n, r);
1093
1104
  }
1094
- function xt(e) {
1095
- let t = Yt(e, null, null, null);
1105
+ function Qt(e) {
1106
+ let t = Jt(e, null, null, null);
1096
1107
  for (let n = 0; n < t.length; n++) {
1097
- let r = t[n], l = tr(e, r, "publisher", null, zt.KW_REQUIRED), i = tr(e, r, "subscriber", null, zt.KW_REQUIRED);
1098
- Tn(r, "s_event", er(e, r, "event", "", zt.KW_REQUIRED)), Tn(r, "s_publisher", Qe(l)), Tn(r, "s_subscriber", Qe(i));
1108
+ let r = t[n], l = sr(e, r, "publisher", null, Zt.KW_REQUIRED), i = sr(e, r, "subscriber", null, Zt.KW_REQUIRED);
1109
+ wn(r, "s_event", or(e, r, "event", "", Zt.KW_REQUIRED)), wn(r, "s_publisher", Xe(l)), wn(r, "s_subscriber", Xe(i));
1099
1110
  }
1100
- let n = Bt(e, 0, null, 0);
1111
+ let n = qt(e, 0, null, 0);
1101
1112
  for (let t = 0; t < n.length; t++) {
1102
- let r = n[t], l = tr(e, r, "publisher", null, zt.KW_REQUIRED), i = tr(e, r, "subscriber", null, zt.KW_REQUIRED);
1103
- Tn(r, "s_event", er(e, r, "event", "", zt.KW_REQUIRED)), Tn(r, "s_publisher", Qe(l)), Tn(r, "s_subscriber", Qe(i));
1113
+ let r = n[t], l = sr(e, r, "publisher", null, Zt.KW_REQUIRED), i = sr(e, r, "subscriber", null, Zt.KW_REQUIRED);
1114
+ wn(r, "s_event", or(e, r, "event", "", Zt.KW_REQUIRED)), wn(r, "s_publisher", Xe(l)), wn(r, "s_subscriber", Xe(i));
1104
1115
  }
1105
1116
  return {
1106
1117
  subscriptions: t,
1107
1118
  subscribings: n,
1108
- "total subscriptions": wn(t),
1109
- total_subscribings: wn(n)
1119
+ "total subscriptions": An(t),
1120
+ total_subscribings: An(n)
1110
1121
  };
1111
1122
  }
1112
- function Bt(e, t, n, r) {
1113
- return Ft(e.dl_subscribings, r, t, n, e);
1123
+ function qt(e, t, n, r) {
1124
+ return Wt(e.dl_subscribings, r, t, n, e);
1114
1125
  }
1115
- function Jt(e, n, r) {
1116
- if (Rn(r) || (r = {}), !e || e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return ln("gobj NULL or DESTROYED"), -1;
1117
- if (Fn(n)) return ln(`${Qe(e)}: event EMPTY`), -1;
1118
- let l = $t(e, n, !0);
1119
- if (!(l && l.event_flag & (C.EVF_SYSTEM_EVENT | C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return ln(`event NOT in output event list: ${Qe(e)}, ev ${n}`), -1;
1120
- let i = E && mt(E, "trace_subscriptions");
1121
- if (i && (M(t("🔝🔝 mach(%s%s^%s), st: %s, ev: %s%s%s", e.running ? "" : "!!", Je(e), Be(e), e.current_state.state_name, "", n || "", "")), _n(r)), e.gclass.gmt.mt_publish_event) {
1126
+ function zt(e, n, r) {
1127
+ if (Ln(r) || (r = {}), !e || e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return cn("gobj NULL or DESTROYED"), -1;
1128
+ if (Yn(n)) return cn(`${Xe(e)}: event EMPTY`), -1;
1129
+ let l = kt(e, n, !0);
1130
+ if (!(l && l.event_flag & (C.EVF_SYSTEM_EVENT | C.EVF_OUTPUT_EVENT) || e.gclass.gclass_flag & L.gcflag_no_check_output_events)) return cn(`event NOT in output event list: ${Xe(e)}, ev ${n}`), -1;
1131
+ let i = E && Tt(E, "trace_subscriptions");
1132
+ if (i && (x(t("🔝🔝 mach(%s%s^%s), st: %s, ev: %s%s%s", e.running ? "" : "!!", ze(e), qe(e), e.current_state.state_name, "", n || "", "")), pn(r)), e.gclass.gmt.mt_publish_event) {
1122
1133
  let t = e.gclass.gmt.mt_publish_event(e, n, r);
1123
1134
  if (t <= 0) return t;
1124
1135
  }
@@ -1130,36 +1141,36 @@ function Jt(e, n, r) {
1130
1141
  if (t < 0) break;
1131
1142
  if (0 === t) continue;
1132
1143
  }
1133
- let _ = tr(e, u, "subscriber", null, zt.KW_REQUIRED);
1134
- if (!_ || Ze(_)) continue;
1135
- let c = Hn(e, u, "subs_flag", 0, zt.KW_REQUIRED), f = er(e, u, "event", "", zt.KW_REQUIRED);
1136
- if (Fn(f) || 0 === Mn(f, n)) {
1137
- nr(e, u, "__config__", null, 0);
1138
- 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;
1139
- 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;
1144
+ let _ = sr(e, u, "subscriber", null, Zt.KW_REQUIRED);
1145
+ if (!_ || nt(_)) continue;
1146
+ let c = lr(e, u, "subs_flag", 0, Zt.KW_REQUIRED), f = or(e, u, "event", "", Zt.KW_REQUIRED);
1147
+ if (Yn(f) || 0 === Qn(f, n)) {
1148
+ ar(e, u, "__config__", null, 0);
1149
+ let l = ar(e, u, "__global__", null, 0), o = ar(e, u, "__local__", null, 0), f = ur(e, u, "__filter__", null, 0), g = r, d = 1;
1150
+ if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, g, _) : kn(f) > 0 && (d = dr(g, f), i && (x(t("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", d ? "👍" : "👎", n || "", Xe(_), Xe(e))), pn(f))), d < 0) break;
1140
1151
  if (0 === d) continue;
1141
- let b = $t(_, n, !0);
1142
- if (b && b.event_flag & C.EVF_SYSTEM_EVENT && !It(_, b.event_name, 0)) continue;
1143
- o && Jn(g, o), l && dn(g, l), i && (M(t("🔝🔄 mach(%s%s), st: %s, ev: %s, from(%s%s)", _.running ? "" : "!!", Qe(_), Rt(_), n || "", e && !e.running ? "!!" : "", Qe(e))), _n(g));
1144
- let p = Lt(_, n, g, e);
1145
- if (p < 0 && c & Pt.__own_event__) {
1152
+ let b = kt(_, n, !0);
1153
+ if (b && b.event_flag & C.EVF_SYSTEM_EVENT && !Lt(_, b.event_name, 0)) continue;
1154
+ o && Zn(g, o), l && Tn(g, l), i && (x(t("🔝🔄 mach(%s%s), st: %s, ev: %s, from(%s%s)", _.running ? "" : "!!", Xe(_), It(_), n || "", e && !e.running ? "!!" : "", Xe(e))), pn(g));
1155
+ let p = Ct(_, n, g, e);
1156
+ if (p < 0 && c & Ft.__own_event__) {
1146
1157
  s = -1;
1147
1158
  break;
1148
1159
  }
1149
- if (a += p, s++, Ze(e)) break;
1160
+ if (a += p, s++, nt(e)) break;
1150
1161
  }
1151
1162
  }
1152
- return s || l && l.event_flag & C.EVF_NO_WARN_SUBS || on(`${Qe(e)}: Publish event WITHOUT subscribers, ev ${n}`), a;
1163
+ return s || l && l.event_flag & C.EVF_NO_WARN_SUBS || fn(`${Xe(e)}: Publish event WITHOUT subscribers, ev ${n}`), a;
1153
1164
  }
1154
- function Qt(e, n, r, l) {
1155
- if (Ze(e)) return ln("gobj NULL or DESTROYED"), -1;
1156
- let o = E && Et(E, "tracing");
1157
- return o && (M(t("🌀🌀 mach(%s%s), cmd: %s, src: %s", Fe(e) ? "" : "!!", Qe(e), n, Qe(l))), o > 1 && _n(r)), e.gclass.gmt.mt_command_parser ? e.gclass.gmt.mt_command_parser(e, n, r, l) : e.gclass.command_table ? g ? g(e, n, r, l) : i(0, -1, t("%s: global command parser not available", Qe(e)), 0, 0) : i(0, -1, t("%s: command table not available", Qe(e)), 0, 0);
1165
+ function Xt(e, n, r, l) {
1166
+ if (nt(e)) return cn("gobj NULL or DESTROYED"), -1;
1167
+ let o = E && yt(E, "tracing");
1168
+ return o && (x(t("🌀🌀 mach(%s%s), cmd: %s, src: %s", We(e) ? "" : "!!", Xe(e), n, Xe(l))), o > 1 && pn(r)), e.gclass.gmt.mt_command_parser ? e.gclass.gmt.mt_command_parser(e, n, r, l) : e.gclass.command_table ? g ? g(e, n, r, l) : i(0, -1, t("%s: global command parser not available", Xe(e)), 0, 0) : i(0, -1, t("%s: command table not available", Xe(e)), 0, 0);
1158
1169
  }
1159
- function qt(e, n, r, l) {
1160
- return Ze(e) ? (ln("gobj NULL or DESTROYED"), -1) : e.gclass.gmt.mt_stats ? e.gclass.gmt.mt_stats(e, n, r, l) : d ? d(e, n, r, l) : s(0, -1, t("%s, stats parser not available", Qe(e)), 0, 0);
1170
+ function Ht(e, n, r, l) {
1171
+ return nt(e) ? (cn("gobj NULL or DESTROYED"), -1) : e.gclass.gmt.mt_stats ? e.gclass.gmt.mt_stats(e, n, r, l) : d ? d(e, n, r, l) : s(0, -1, t("%s, stats parser not available", Xe(e)), 0, 0);
1161
1172
  }
1162
- var zt = Object.freeze({
1173
+ var Zt = Object.freeze({
1163
1174
  KW_REQUIRED: 1,
1164
1175
  KW_CREATE: 2,
1165
1176
  KW_WILD_NUMBER: 4,
@@ -1168,7 +1179,7 @@ var zt = Object.freeze({
1168
1179
  KW_VERBOSE: 32,
1169
1180
  KW_LOWER: 64,
1170
1181
  KW_RECURSIVE: 128
1171
- }), Xt = (Object.freeze({
1182
+ }), en = (Object.freeze({
1172
1183
  JSON_OBJECT: 1,
1173
1184
  JSON_ARRAY: 2,
1174
1185
  JSON_STRING: 3,
@@ -1177,11 +1188,19 @@ var zt = Object.freeze({
1177
1188
  JSON_TRUE: 6,
1178
1189
  JSON_FALSE: 7,
1179
1190
  JSON_NULL: 8
1180
- }), "undefined" != typeof window ? window.console : console), Ht = Xt.error, Zt = Xt.warn, en = Xt.info, tn = Xt.debug;
1181
- function nn(e) {
1182
- e ? (Ht = e, Zt = e) : (Ht = Xt.error, Zt = Xt.warn);
1191
+ }), "undefined" != typeof window ? window.console : console), tn = en.error, nn = en.warn, rn = en.info, ln = en.debug, on = null;
1192
+ function sn(e) {
1193
+ on = "function" == typeof e ? e : null;
1183
1194
  }
1184
- function rn(e) {
1195
+ function an(e, t, n) {
1196
+ if (on) try {
1197
+ on(e, t, n);
1198
+ } catch (e) {}
1199
+ }
1200
+ function un(e) {
1201
+ e ? (tn = e, nn = e) : (tn = en.error, nn = en.warn);
1202
+ }
1203
+ function _n(e) {
1185
1204
  const t = Array.prototype.slice.call(arguments);
1186
1205
  let n = "";
1187
1206
  if ("string" == typeof e) {
@@ -1203,33 +1222,33 @@ function rn(e) {
1203
1222
  } else n = t.map((e) => "object" == typeof e ? JSON.stringify(e) : String(e)).join(" ");
1204
1223
  return n;
1205
1224
  }
1206
- function ln(e) {
1207
- let t = rn(e), n = el();
1208
- Ht && (Ht === window.console.error ? Ht("%c" + n + " ERROR: " + String(t), "color:red") : (window.console.error("%c" + n + " ERROR: " + String(t), "color:red"), Ht(`${n} ERROR: ${String(t)}`)));
1225
+ function cn(e) {
1226
+ let t = _n(e), n = ol();
1227
+ tn && (tn === window.console.error ? tn("%c" + n + " ERROR: " + String(t), "color:red") : (window.console.error("%c" + n + " ERROR: " + String(t), "color:red"), tn(`${n} ERROR: ${String(t)}`))), an("error", t, n);
1209
1228
  }
1210
- function on(e) {
1211
- let t = rn(e), n = el();
1212
- Zt && (Zt === window.console.warn ? Zt("%c" + n + " WARNING: " + String(t), "color:yellow") : (window.console.warn("%c" + n + " WARNING: " + String(t), "color:yellow"), Zt(`${n} WARNING: ${String(t)}`)));
1229
+ function fn(e) {
1230
+ let t = _n(e), n = ol();
1231
+ nn && (nn === window.console.warn ? nn("%c" + n + " WARNING: " + String(t), "color:yellow") : (window.console.warn("%c" + n + " WARNING: " + String(t), "color:yellow"), nn(`${n} WARNING: ${String(t)}`))), an("warning", t, n);
1213
1232
  }
1214
- function sn(e) {
1215
- let t = rn(e), n = el();
1216
- en && en("%c" + n + " INFO: " + String(t), "color:cyan");
1233
+ function gn(e) {
1234
+ let t = _n(e), n = ol();
1235
+ rn && rn("%c" + n + " INFO: " + String(t), "color:cyan"), an("info", t, n);
1217
1236
  }
1218
- function an(e) {
1219
- let t = rn(e), n = el();
1220
- tn && tn("%c" + n + " DEBUG: " + String(t), "color:silver");
1237
+ function dn(e) {
1238
+ let t = _n(e), n = ol();
1239
+ ln && ln("%c" + n + " DEBUG: " + String(t), "color:silver"), an("debug", t, n);
1221
1240
  }
1222
- function un(e) {
1223
- let t = rn(e), n = el();
1224
- tn && tn("%c" + n + " MSG: " + String(t), "color:cyan");
1241
+ function bn(e) {
1242
+ let t = _n(e), n = ol();
1243
+ ln && ln("%c" + n + " MSG: " + String(t), "color:cyan"), an("msg", t, n);
1225
1244
  }
1226
- function _n(e, t) {
1227
- t && window.console.warn("=====> " + t), window.console.dir(e);
1245
+ function pn(e, t) {
1246
+ t && window.console.warn("=====> " + t), window.console.dir(e), an("json", e, ol());
1228
1247
  }
1229
- function cn(e) {
1248
+ function mn(e) {
1230
1249
  return structuredClone(e);
1231
1250
  }
1232
- function fn(...e) {
1251
+ function En(...e) {
1233
1252
  const t = {};
1234
1253
  for (const n of e) {
1235
1254
  const e = structuredClone(n);
@@ -1237,14 +1256,14 @@ function fn(...e) {
1237
1256
  }
1238
1257
  return t;
1239
1258
  }
1240
- function gn(e, t) {
1259
+ function hn(e, t) {
1241
1260
  if (e === t) return !0;
1242
1261
  if (null === e || null === t) return e === t;
1243
1262
  if (typeof e != typeof t) return !1;
1244
1263
  if (Array.isArray(e) !== Array.isArray(t)) return !1;
1245
1264
  if (Array.isArray(e)) {
1246
1265
  if (e.length !== t.length) return !1;
1247
- for (let n = 0; n < e.length; n++) if (!gn(e[n], t[n])) return !1;
1266
+ for (let n = 0; n < e.length; n++) if (!hn(e[n], t[n])) return !1;
1248
1267
  return !0;
1249
1268
  }
1250
1269
  if ("object" == typeof e) {
@@ -1252,269 +1271,269 @@ function gn(e, t) {
1252
1271
  if (n.length !== r.length) return !1;
1253
1272
  for (let l = 0; l < n.length; l++) {
1254
1273
  if (n[l] !== r[l]) return !1;
1255
- if (!gn(e[n[l]], t[r[l]])) return !1;
1274
+ if (!hn(e[n[l]], t[r[l]])) return !1;
1256
1275
  }
1257
1276
  return !0;
1258
1277
  }
1259
1278
  return e === t;
1260
1279
  }
1261
- function dn(e, t) {
1280
+ function Tn(e, t) {
1262
1281
  if (!t) return e;
1263
1282
  for (let n of Object.keys(t)) e[n] = t[n];
1264
1283
  return e;
1265
1284
  }
1266
- function bn(e, t) {
1285
+ function yn(e, t) {
1267
1286
  if (!t) return e;
1268
1287
  for (let n in t) t.hasOwnProperty(n) && e.hasOwnProperty(n) && (e[n] = t[n]);
1269
1288
  return e;
1270
1289
  }
1271
- function pn(e, t) {
1290
+ function Sn(e, t) {
1272
1291
  if (!t) return e;
1273
1292
  for (let n in t) t.hasOwnProperty(n) && !e.hasOwnProperty(n) && (e[n] = t[n]);
1274
1293
  return e;
1275
1294
  }
1276
- function mn(e, t) {
1295
+ function On(e, t) {
1277
1296
  if (e && e.hasOwnProperty(t)) return e[t];
1278
1297
  }
1279
- function En(e, t) {
1298
+ function vn(e, t) {
1280
1299
  e && e.hasOwnProperty(t) && delete e[t];
1281
1300
  }
1282
- function hn(e, t, n) {
1301
+ function Nn(e, t, n) {
1283
1302
  e[t] = n;
1284
1303
  }
1285
- function Tn(e, t, n) {
1304
+ function wn(e, t, n) {
1286
1305
  e[t] = n;
1287
1306
  }
1288
- function yn(e, t) {
1307
+ function Dn(e, t) {
1289
1308
  e.push(t);
1290
1309
  }
1291
- function Sn(e, t) {
1310
+ function Rn(e, t) {
1292
1311
  e.push(t);
1293
1312
  }
1294
- function On(e, t) {
1313
+ function jn(e, t) {
1295
1314
  e.splice(t, 1);
1296
1315
  }
1297
- function vn(e, t) {
1316
+ function $n(e, t) {
1298
1317
  return t ? (Array.prototype.push.apply(e, t), e) : e;
1299
1318
  }
1300
- function Nn(e) {
1301
- return Rn(e) ? Object.keys(e).length : 0;
1319
+ function In(e) {
1320
+ return Ln(e) ? Object.keys(e).length : 0;
1302
1321
  }
1303
- function wn(e) {
1304
- return jn(e) ? e.length : 0;
1322
+ function An(e) {
1323
+ return Pn(e) ? e.length : 0;
1305
1324
  }
1306
- function Dn(e) {
1307
- return Rn(e) ? Object.keys(e).length : jn(e) ? e.length : $n(e) && e.length > 0 ? 1 : 0;
1325
+ function kn(e) {
1326
+ return Ln(e) ? Object.keys(e).length : Pn(e) ? e.length : Un(e) && e.length > 0 ? 1 : 0;
1308
1327
  }
1309
- function Rn(e) {
1328
+ function Ln(e) {
1310
1329
  return null !== e && "object" == typeof e && !Array.isArray(e);
1311
1330
  }
1312
- function jn(e) {
1331
+ function Pn(e) {
1313
1332
  return Array.isArray(e);
1314
1333
  }
1315
- function $n(e) {
1334
+ function Un(e) {
1316
1335
  return "string" == typeof e;
1317
1336
  }
1318
- function In(e) {
1337
+ function Cn(e) {
1319
1338
  return "number" == typeof e && Number.isFinite(e);
1320
1339
  }
1321
- function kn(e) {
1340
+ function Fn(e) {
1322
1341
  return "boolean" == typeof e;
1323
1342
  }
1324
- function An(e) {
1343
+ function Gn(e) {
1325
1344
  return null == e;
1326
1345
  }
1327
- function Ln(e) {
1328
- if (In(e)) return !0;
1329
- if (!$n(e)) return !1;
1346
+ function Vn(e) {
1347
+ if (Cn(e)) return !0;
1348
+ if (!Un(e)) return !1;
1330
1349
  const t = Number(e);
1331
1350
  return !isNaN(t) && "" !== e.trim() && !isNaN(t);
1332
1351
  }
1333
- function Pn(e) {
1352
+ function Wn(e) {
1334
1353
  return e instanceof Date && !isNaN(e);
1335
1354
  }
1336
- function Un(e) {
1355
+ function Mn(e) {
1337
1356
  return "function" == typeof e;
1338
1357
  }
1339
- function Cn(e) {
1340
- return e instanceof A;
1358
+ function Kn(e) {
1359
+ return e instanceof k;
1341
1360
  }
1342
- function Fn(e) {
1343
- return !$n(e) || 0 === e.length;
1361
+ function Yn(e) {
1362
+ return !Un(e) || 0 === e.length;
1344
1363
  }
1345
- function Gn(e) {
1346
- return In(e) ? Boolean(e) : /^\s*(true|1|on)\s*$/i.test(e);
1364
+ function xn(e) {
1365
+ return Cn(e) ? Boolean(e) : /^\s*(true|1|on)\s*$/i.test(e);
1347
1366
  }
1348
- function Vn(e, t, n) {
1367
+ function Bn(e, t, n) {
1349
1368
  var r = (e + "").substring(0, n), l = (t + "").substring(0, n);
1350
1369
  return r === l ? 0 : r > l ? 1 : -1;
1351
1370
  }
1352
- function Wn(e, t) {
1371
+ function Jn(e, t) {
1353
1372
  return e === t ? 0 : e > t ? 1 : -1;
1354
1373
  }
1355
- function Mn(e, t) {
1374
+ function Qn(e, t) {
1356
1375
  let n = e.toLowerCase(), r = t.toLowerCase();
1357
1376
  return n === r ? 0 : n > r ? 1 : -1;
1358
1377
  }
1359
- function Kn(e, t) {
1360
- if (Rn(e) || Rn(t) || jn(e) || jn(t)) return 0;
1361
- if (In(e) || In(t)) {
1378
+ function qn(e, t) {
1379
+ if (Ln(e) || Ln(t) || Pn(e) || Pn(t)) return 0;
1380
+ if (Cn(e) || Cn(t)) {
1362
1381
  let n = Number(e), r = Number(t);
1363
1382
  return n > r ? 1 : n < r ? -1 : 0;
1364
1383
  }
1365
- if (kn(e) || kn(t)) {
1384
+ if (Fn(e) || Fn(t)) {
1366
1385
  let n = Number(e), r = Number(t);
1367
1386
  return n > r ? 1 : n < r ? -1 : 0;
1368
1387
  }
1369
- return Wn(String(e), String(t));
1388
+ return Jn(String(e), String(t));
1370
1389
  }
1371
- function Yn(e, t, n) {
1390
+ function zn(e, t, n) {
1372
1391
  var r;
1373
1392
  return -1 !== (r = (e += "").indexOf(t)) && (n ? e.substring(0, r) : e.slice(r));
1374
1393
  }
1375
- function xn(e) {
1376
- if (!$n(e)) return !1;
1394
+ function Xn(e) {
1395
+ if (!Un(e)) return !1;
1377
1396
  let t;
1378
1397
  for (t = 0; t < e.length && "_" === e[t] && !(t > 2); t++);
1379
1398
  return 2 === t;
1380
1399
  }
1381
- function Bn(e) {
1382
- if (!$n(e)) return !1;
1400
+ function Hn(e) {
1401
+ if (!Un(e)) return !1;
1383
1402
  let t;
1384
1403
  for (t = 0; t < e.length && "_" === e[t] && !(t > 2); t++);
1385
1404
  return 1 === t;
1386
1405
  }
1387
- function Jn(e, t) {
1388
- if ("object" != typeof t || Array.isArray(t)) if (Array.isArray(t)) for (const n of t) Jn(e, n);
1406
+ function Zn(e, t) {
1407
+ if ("object" != typeof t || Array.isArray(t)) if (Array.isArray(t)) for (const n of t) Zn(e, n);
1389
1408
  else "string" == typeof t && delete e[t];
1390
1409
  else for (const n of Object.keys(t)) delete e[n];
1391
1410
  }
1392
- function Qn(e, t) {
1411
+ function er(e, t) {
1393
1412
  return !(!(t in e) || !e.hasOwnProperty(t));
1394
1413
  }
1395
- function qn(e, t, n, r) {
1396
- if (e && !Cn(e) && ln("GObj bad instanceof"), !Rn(t) && !jn(t)) return ln(`${Qe(e)}: kw must be list or dict`), 0;
1397
- if (!$n(n)) return ln(`${Qe(e)}: path must be a string: ${String(n)}`), 0;
1414
+ function tr(e, t, n, r) {
1415
+ if (e && !Kn(e) && cn("GObj bad instanceof"), !Ln(t) && !Pn(t)) return cn(`${Xe(e)}: kw must be list or dict`), 0;
1416
+ if (!Un(n)) return cn(`${Xe(e)}: path must be a string: ${String(n)}`), 0;
1398
1417
  let l = n.split("`");
1399
1418
  if (l.length <= 1) return t[n];
1400
1419
  let i = l.length;
1401
- for (let o = 0; o < i; o++) if (void 0 === (t = t[l[o]])) return void (r && ln(`${Qe(e)}: path not found: ${String(n)}`));
1420
+ for (let o = 0; o < i; o++) if (void 0 === (t = t[l[o]])) return void (r && cn(`${Xe(e)}: path not found: ${String(n)}`));
1402
1421
  return t;
1403
1422
  }
1404
- function zn(e, t, n) {
1405
- e && !Cn(e) && ln("GObj bad instanceof");
1423
+ function nr(e, t, n) {
1424
+ e && !Kn(e) && cn("GObj bad instanceof");
1406
1425
  let [r, l] = function(e, t) {
1407
1426
  let n = e.lastIndexOf(t);
1408
1427
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
1409
1428
  }(n, "`");
1410
- return Fn(l) ? En(t, n) : En(qn(e, t, r, !0), l), 0;
1429
+ return Yn(l) ? vn(t, n) : vn(tr(e, t, r, !0), l), 0;
1411
1430
  }
1412
- function Xn(e, t, n, r, l) {
1413
- e && !Cn(e) && ln("GObj bad instanceof");
1414
- let i = qn(e, t, n, !1);
1415
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1431
+ function rr(e, t, n, r, l) {
1432
+ e && !Kn(e) && cn("GObj bad instanceof");
1433
+ let i = tr(e, t, n, !1);
1434
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1416
1435
  if (void 0 === i) {
1417
1436
  if (s) {
1418
1437
  let l = Boolean(r);
1419
- return ir(e, t, n, l), l;
1438
+ return cr(e, t, n, l), l;
1420
1439
  }
1421
- return o && (ln(`path not found: '${n}'`), _n(t)), Boolean(r);
1440
+ return o && (cn(`path not found: '${n}'`), pn(t)), Boolean(r);
1422
1441
  }
1423
- return a && zn(e, t, n), Boolean(i);
1442
+ return a && nr(e, t, n), Boolean(i);
1424
1443
  }
1425
- function Hn(e, t, n, r, l) {
1426
- e && !Cn(e) && ln("GObj bad instanceof");
1427
- let i = qn(e, t, n, !1);
1428
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1444
+ function lr(e, t, n, r, l) {
1445
+ e && !Kn(e) && cn("GObj bad instanceof");
1446
+ let i = tr(e, t, n, !1);
1447
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1429
1448
  if (void 0 === i) {
1430
1449
  if (s) {
1431
1450
  let l = parseInt(r);
1432
- return ir(e, t, n, l), l;
1451
+ return cr(e, t, n, l), l;
1433
1452
  }
1434
- return o && (ln(`path not found: '${n}'`), _n(t)), parseInt(r);
1453
+ return o && (cn(`path not found: '${n}'`), pn(t)), parseInt(r);
1435
1454
  }
1436
- return a && zn(e, t, n), In(i) ? parseInt(i) : (o && (ln(`path value MUST BE a number: ${n}`), un(t)), parseInt(r));
1455
+ return a && nr(e, t, n), Cn(i) ? parseInt(i) : (o && (cn(`path value MUST BE a number: ${n}`), bn(t)), parseInt(r));
1437
1456
  }
1438
- function Zn(e, t, n, r, l) {
1439
- e && !Cn(e) && ln("GObj bad instanceof");
1440
- let i = qn(e, t, n, !1);
1441
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1457
+ function ir(e, t, n, r, l) {
1458
+ e && !Kn(e) && cn("GObj bad instanceof");
1459
+ let i = tr(e, t, n, !1);
1460
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1442
1461
  if (void 0 === i) {
1443
1462
  if (s) {
1444
1463
  let l = Number(r);
1445
- return ir(e, t, n, l), l;
1464
+ return cr(e, t, n, l), l;
1446
1465
  }
1447
- return o && (ln(`path not found: '${n}'`), _n(t)), Number(r);
1466
+ return o && (cn(`path not found: '${n}'`), pn(t)), Number(r);
1448
1467
  }
1449
- return a && zn(e, t, n), In(i) ? Number(i) : (o && (ln(`path value MUST BE a number: ${n}`), un(t)), Number(r));
1468
+ return a && nr(e, t, n), Cn(i) ? Number(i) : (o && (cn(`path value MUST BE a number: ${n}`), bn(t)), Number(r));
1450
1469
  }
1451
- function er(e, t, n, r, l) {
1452
- e && !Cn(e) && ln("GObj bad instanceof");
1453
- let i = qn(e, t, n, !1);
1454
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1470
+ function or(e, t, n, r, l) {
1471
+ e && !Kn(e) && cn("GObj bad instanceof");
1472
+ let i = tr(e, t, n, !1);
1473
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1455
1474
  if (void 0 === i) {
1456
1475
  if (s) {
1457
1476
  let l = String(r);
1458
- return ir(e, t, n, l), l;
1477
+ return cr(e, t, n, l), l;
1459
1478
  }
1460
- return o && (ln(`path not found: '${n}'`), _n(t)), String(r);
1479
+ return o && (cn(`path not found: '${n}'`), pn(t)), String(r);
1461
1480
  }
1462
- return a && zn(e, t, n), $n(i) ? String(i) : (o && (ln(`${Qe(e)}: path value MUST BE a string: ${n}`), un(t)), String(r));
1481
+ return a && nr(e, t, n), Un(i) ? String(i) : (o && (cn(`${Xe(e)}: path value MUST BE a string: ${n}`), bn(t)), String(r));
1463
1482
  }
1464
- function tr(e, t, n, r, l) {
1465
- e && !Cn(e) && ln("GObj bad instanceof");
1466
- let i = qn(e, t, n, !1);
1467
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1483
+ function sr(e, t, n, r, l) {
1484
+ e && !Kn(e) && cn("GObj bad instanceof");
1485
+ let i = tr(e, t, n, !1);
1486
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1468
1487
  if (void 0 === i) {
1469
1488
  if (s) {
1470
1489
  let l = r;
1471
- return ir(e, t, n, l), l;
1490
+ return cr(e, t, n, l), l;
1472
1491
  }
1473
- return o && (ln(`path not found: '${n}'`), _n(t)), r;
1492
+ return o && (cn(`path not found: '${n}'`), pn(t)), r;
1474
1493
  }
1475
- return a && zn(e, t, n), i;
1494
+ return a && nr(e, t, n), i;
1476
1495
  }
1477
- function nr(e, t, n, r, l) {
1478
- e && !Cn(e) && ln("GObj bad instanceof");
1479
- let i = qn(e, t, n, !1);
1480
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1496
+ function ar(e, t, n, r, l) {
1497
+ e && !Kn(e) && cn("GObj bad instanceof");
1498
+ let i = tr(e, t, n, !1);
1499
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1481
1500
  if (void 0 === i) {
1482
1501
  if (s) {
1483
1502
  let l = Object(r);
1484
- return ir(e, t, n, l), l;
1503
+ return cr(e, t, n, l), l;
1485
1504
  }
1486
- return o && (ln(`path not found: '${n}'`), _n(t)), Object(r);
1505
+ return o && (cn(`path not found: '${n}'`), pn(t)), Object(r);
1487
1506
  }
1488
- return a && zn(e, t, n), Rn(i) ? Object(i) : (o && (ln(`path value MUST BE a dict: ${n}`), un(t)), Object(r));
1507
+ return a && nr(e, t, n), Ln(i) ? Object(i) : (o && (cn(`path value MUST BE a dict: ${n}`), bn(t)), Object(r));
1489
1508
  }
1490
- function rr(e, t, n, r, l) {
1491
- e && !Cn(e) && ln("GObj bad instanceof");
1492
- let i = qn(e, t, n, !1);
1493
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1509
+ function ur(e, t, n, r, l) {
1510
+ e && !Kn(e) && cn("GObj bad instanceof");
1511
+ let i = tr(e, t, n, !1);
1512
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1494
1513
  if (void 0 === i) {
1495
1514
  if (s) {
1496
1515
  let l = r;
1497
- return ir(e, t, n, l), l;
1516
+ return cr(e, t, n, l), l;
1498
1517
  }
1499
- return o && (ln(`path not found: '${n}'`), _n(t)), r;
1518
+ return o && (cn(`path not found: '${n}'`), pn(t)), r;
1500
1519
  }
1501
- return a && zn(e, t, n), i;
1520
+ return a && nr(e, t, n), i;
1502
1521
  }
1503
- function lr(e, t, n, r, l) {
1504
- e && !Cn(e) && ln("GObj bad instanceof");
1505
- let i = qn(e, t, n, !1);
1506
- const o = l && l & zt.KW_REQUIRED, s = l && l & zt.KW_CREATE, a = l && l & zt.KW_EXTRACT;
1522
+ function _r(e, t, n, r, l) {
1523
+ e && !Kn(e) && cn("GObj bad instanceof");
1524
+ let i = tr(e, t, n, !1);
1525
+ const o = l && l & Zt.KW_REQUIRED, s = l && l & Zt.KW_CREATE, a = l && l & Zt.KW_EXTRACT;
1507
1526
  if (void 0 === i) {
1508
1527
  if (s) {
1509
1528
  let l = Array(r);
1510
- return ir(e, t, n, l), l;
1529
+ return cr(e, t, n, l), l;
1511
1530
  }
1512
- return o && (ln(`path not found: '${n}'`), _n(t)), Array(r);
1531
+ return o && (cn(`path not found: '${n}'`), pn(t)), Array(r);
1513
1532
  }
1514
- return a && zn(e, t, n), jn(i) ? Array(i) : (o && (ln(`path value MUST BE an array: ${n}`), un(t)), Array(r));
1533
+ return a && nr(e, t, n), Pn(i) ? Array(i) : (o && (cn(`path value MUST BE an array: ${n}`), bn(t)), Array(r));
1515
1534
  }
1516
- function ir(e, t, n, r) {
1517
- if (e && !Cn(e) && ln("GObj bad instanceof"), !Rn(t)) return ln("kw is not an object"), -1;
1535
+ function cr(e, t, n, r) {
1536
+ if (e && !Kn(e) && cn("GObj bad instanceof"), !Ln(t)) return cn("kw is not an object"), -1;
1518
1537
  let l = n.split("`");
1519
1538
  if (l.length <= 1) return t[n] = r, 0;
1520
1539
  let i = l.length;
@@ -1524,34 +1543,34 @@ function ir(e, t, n, r) {
1524
1543
  }
1525
1544
  return 0;
1526
1545
  }
1527
- function or(e, t, n, r, l) {
1528
- if (e && !Cn(e) && ln("GObj bad instanceof"), !Rn(t)) return ln("kw is not an object"), -1;
1529
- let i = nr(e, t, n, {}, !0);
1530
- return Rn(i) ? (i[r] = l, 0) : (ln("subdict is not an object"), -1);
1546
+ function fr(e, t, n, r, l) {
1547
+ if (e && !Kn(e) && cn("GObj bad instanceof"), !Ln(t)) return cn("kw is not an object"), -1;
1548
+ let i = ar(e, t, n, {}, !0);
1549
+ return Ln(i) ? (i[r] = l, 0) : (cn("subdict is not an object"), -1);
1531
1550
  }
1532
- function sr(e, n, r) {
1551
+ function gr(e, n, r) {
1533
1552
  let l = "", i = !1;
1534
- if (jn(n)) {
1553
+ if (Pn(n)) {
1535
1554
  i = !1;
1536
1555
  for (let o = 0; o < n.length; o++) {
1537
1556
  let s = n[o];
1538
- if (l = Fn(r) ? t("%s", r) : t("%s`%d", r, o), i = sr(e, s, l), i) break;
1557
+ if (l = Yn(r) ? t("%s", r) : t("%s`%d", r, o), i = gr(e, s, l), i) break;
1539
1558
  }
1540
- } else if (Rn(n)) {
1559
+ } else if (Ln(n)) {
1541
1560
  i = !0;
1542
1561
  let o = Object.keys(n);
1543
1562
  for (let s = 0; s < o.length; s++) {
1544
1563
  let a = o[s], u = n[a];
1545
- if (l = Fn(r) ? t("%s", a) : t("%s`%s", r, a), jn(u) || Rn(u)) {
1546
- if (i = sr(e, u, l), !i) break;
1564
+ if (l = Yn(r) ? t("%s", a) : t("%s`%s", r, a), Pn(u) || Ln(u)) {
1565
+ if (i = gr(e, u, l), !i) break;
1547
1566
  continue;
1548
1567
  }
1549
- let _ = rr(0, e, l, 0, 0);
1550
- if (_ || (_ = mn(e, l)), !_) {
1568
+ let _ = ur(0, e, l, 0, 0);
1569
+ if (_ || (_ = On(e, l)), !_) {
1551
1570
  i = !1;
1552
1571
  break;
1553
1572
  }
1554
- if (0 !== Kn(_, u)) {
1573
+ if (0 !== qn(_, u)) {
1555
1574
  i = !1;
1556
1575
  break;
1557
1576
  }
@@ -1559,82 +1578,82 @@ function sr(e, n, r) {
1559
1578
  }
1560
1579
  return i;
1561
1580
  }
1562
- function ar(e, t) {
1563
- return 0 === Dn(t) || sr(e, t, "");
1581
+ function dr(e, t) {
1582
+ return 0 === kn(t) || gr(e, t, "");
1564
1583
  }
1565
- function ur(e, t, n, r) {
1566
- if (!n || !jn(t)) return r && ln("item NULL or kw_list is not a list"), -1;
1567
- for (let e = 0; e < t.length; e++) if (gn(n, t[e])) return e;
1568
- return r && ln("item not found in this list"), -1;
1584
+ function br(e, t, n, r) {
1585
+ if (!n || !Pn(t)) return r && cn("item NULL or kw_list is not a list"), -1;
1586
+ for (let e = 0; e < t.length; e++) if (hn(n, t[e])) return e;
1587
+ return r && cn("item not found in this list"), -1;
1569
1588
  }
1570
- function _r(e, t, n, r) {
1571
- if (e && !Cn(e) && ln("GObj bad instanceof"), !t) return null;
1572
- r || (r = ar);
1589
+ function pr(e, t, n, r) {
1590
+ if (e && !Kn(e) && cn("GObj bad instanceof"), !t) return null;
1591
+ r || (r = dr);
1573
1592
  let l = [];
1574
- if (jn(t)) for (let e = 0; e < t.length; e++) {
1593
+ if (Pn(t)) for (let e = 0; e < t.length; e++) {
1575
1594
  let i = t[e];
1576
- r(i, n) && l.push(cn(i));
1595
+ r(i, n) && l.push(mn(i));
1577
1596
  }
1578
1597
  else {
1579
- if (!Rn(t)) return ln("kw_select() BAD kw parameter"), null;
1580
- r(t, n) && l.push(cn(t));
1598
+ if (!Ln(t)) return cn("kw_select() BAD kw parameter"), null;
1599
+ r(t, n) && l.push(mn(t));
1581
1600
  }
1582
1601
  return l;
1583
1602
  }
1584
- function cr(e, t, n, r) {
1585
- if (e && !Cn(e) && ln("GObj bad instanceof"), !t) return null;
1586
- r || (r = ar);
1603
+ function mr(e, t, n, r) {
1604
+ if (e && !Kn(e) && cn("GObj bad instanceof"), !t) return null;
1605
+ r || (r = dr);
1587
1606
  let l = [];
1588
- if (jn(t)) for (let e = 0; e < t.length; e++) {
1607
+ if (Pn(t)) for (let e = 0; e < t.length; e++) {
1589
1608
  let i = t[e];
1590
1609
  r(i, n) && l.push(i);
1591
1610
  }
1592
1611
  else {
1593
- if (!Rn(t)) return ln("kw_select() BAD kw parameter"), null;
1612
+ if (!Ln(t)) return cn("kw_select() BAD kw parameter"), null;
1594
1613
  r(t, n) && l.push(t);
1595
1614
  }
1596
1615
  return l;
1597
1616
  }
1598
- function fr(e, t, n, r) {
1599
- e && !Cn(e) && ln("GObj bad instanceof");
1617
+ function Er(e, t, n, r) {
1618
+ e && !Kn(e) && cn("GObj bad instanceof");
1600
1619
  let l = {};
1601
- if ($n(n) && !Fn(n)) {
1620
+ if (Un(n) && !Yn(n)) {
1602
1621
  let i = n;
1603
- t.hasOwnProperty(i) ? l[i] = t[i] : r && ln(`${Qe(e)}: key not found: ${i}`);
1604
- } else if (Rn(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}`);
1622
+ t.hasOwnProperty(i) ? l[i] = t[i] : r && cn(`${Xe(e)}: key not found: ${i}`);
1623
+ } else if (Ln(n) && In(n) > 0) for (let i of Object.keys(n)) t.hasOwnProperty(i) ? l[i] = t[i] : r && cn(`${Xe(e)}: key not found: ${i}`);
1605
1624
  else {
1606
- if (!(jn(n) && wn(n) > 0)) return t;
1625
+ if (!(Pn(n) && An(n) > 0)) return t;
1607
1626
  for (let i = 0; i < n.length; i++) {
1608
1627
  let o = n[i];
1609
- t.hasOwnProperty(o) ? l[o] = t[o] : r && ln(`${Qe(e)}: key not found: ${o}`);
1628
+ t.hasOwnProperty(o) ? l[o] = t[o] : r && cn(`${Xe(e)}: key not found: ${o}`);
1610
1629
  }
1611
1630
  }
1612
1631
  return l;
1613
1632
  }
1614
- function gr(e, t, n, r) {
1633
+ function hr(e, t, n, r) {
1615
1634
  let l = {};
1616
- if (dn(l, t), $n(n) && !Fn(n)) {
1635
+ if (Tn(l, t), Un(n) && !Yn(n)) {
1617
1636
  let i = n;
1618
- rr(e, t, i, 0, 0) ? En(l, i) : r && ln(`${Qe(e)}: key not found: ${i}`);
1619
- } else if (Rn(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}`);
1637
+ ur(e, t, i, 0, 0) ? vn(l, i) : r && cn(`${Xe(e)}: key not found: ${i}`);
1638
+ } else if (Ln(n) && In(n) > 0) for (let i of Object.keys(n)) t.hasOwnProperty(i) ? vn(l, i) : r && cn(`${Xe(e)}: key not found: ${i}`);
1620
1639
  else {
1621
- if (!(jn(n) && wn(n) > 0)) return {};
1640
+ if (!(Pn(n) && An(n) > 0)) return {};
1622
1641
  for (let i = 0; i < n.length; i++) {
1623
1642
  let o = n[i];
1624
- t.hasOwnProperty(o) ? En(l, o) : r && ln(`${Qe(e)}: key not found: ${o}`);
1643
+ t.hasOwnProperty(o) ? vn(l, o) : r && cn(`${Xe(e)}: key not found: ${o}`);
1625
1644
  }
1626
1645
  }
1627
1646
  return l;
1628
1647
  }
1629
- function dr(e, t, n = !1) {
1648
+ function Tr(e, t, n = !1) {
1630
1649
  if ("undefined" != typeof window && window.localStorage) try {
1631
1650
  let r = window.localStorage.getItem(e);
1632
- return null === r ? (n && br(e, t), t) : JSON.parse(r);
1651
+ return null === r ? (n && yr(e, t), t) : JSON.parse(r);
1633
1652
  } catch (n) {
1634
1653
  return window.console.warn(`Error reading localStorage key "${e}":`, n), t;
1635
1654
  }
1636
1655
  }
1637
- function br(e, t) {
1656
+ function yr(e, t) {
1638
1657
  if ("undefined" != typeof window && window.localStorage) if (e && void 0 !== t) try {
1639
1658
  window.localStorage.setItem(e, JSON.stringify(t));
1640
1659
  } catch (t) {
@@ -1642,7 +1661,7 @@ function br(e, t) {
1642
1661
  }
1643
1662
  else window.console.warn(`Invalid key or value for localStorage: key=${e}, value=${t}`);
1644
1663
  }
1645
- function pr(e) {
1664
+ function Sr(e) {
1646
1665
  if ("undefined" != typeof window && window.localStorage) if (e) try {
1647
1666
  window.localStorage.removeItem(e);
1648
1667
  } catch (t) {
@@ -1650,113 +1669,113 @@ function pr(e) {
1650
1669
  }
1651
1670
  else window.console.warn(`Invalid key for localStorage removal: ${e}`);
1652
1671
  }
1653
- function mr(e, t) {
1654
- if (An(e) || An(t)) return !0;
1655
- if (jn(e)) {
1672
+ function Or(e, t) {
1673
+ if (Gn(e) || Gn(t)) return !0;
1674
+ if (Pn(e)) {
1656
1675
  if (0 === e.length) return !0;
1657
1676
  for (let n = 0; n < e.length; n++) if (e[n] === t) return !0;
1658
- } else if (Rn(e)) {
1677
+ } else if (Ln(e)) {
1659
1678
  if (0 === Object.keys(e).length) return !0;
1660
1679
  for (let n in e) if (n === t) return !0;
1661
- } else if ($n(e) && e === t) return !0;
1680
+ } else if (Un(e) && e === t) return !0;
1662
1681
  return !1;
1663
1682
  }
1664
- function Er(e, t, n, r, l) {
1665
- if (e && !Cn(e) && ln("GObj bad instanceof"), !t) return null;
1666
- l || (l = ar);
1683
+ function vr(e, t, n, r, l) {
1684
+ if (e && !Kn(e) && cn("GObj bad instanceof"), !t) return null;
1685
+ l || (l = dr);
1667
1686
  let i = [];
1668
- if (jn(t)) for (let o = 0; o < t.length; o++) {
1687
+ if (Pn(t)) for (let o = 0; o < t.length; o++) {
1669
1688
  let s, a = t[o];
1670
- if (Rn(a)) s = er(e, a, "id", "", 0);
1689
+ if (Ln(a)) s = or(e, a, "id", "", 0);
1671
1690
  else {
1672
- if (!$n(a)) continue;
1691
+ if (!Un(a)) continue;
1673
1692
  s = a;
1674
1693
  }
1675
- mr(n, s) && l(a, r) && i.push(a);
1694
+ Or(n, s) && l(a, r) && i.push(a);
1676
1695
  }
1677
1696
  else {
1678
- if (!Rn(t)) return ln("kw_collect() BAD kw parameter"), null;
1697
+ if (!Ln(t)) return cn("kw_collect() BAD kw parameter"), null;
1679
1698
  for (let e of Object.keys(t)) {
1680
1699
  let o = t[e];
1681
- mr(n, e) && l(o, r) && i.push(o);
1700
+ Or(n, e) && l(o, r) && i.push(o);
1682
1701
  }
1683
1702
  }
1684
1703
  return i;
1685
1704
  }
1686
- function hr(e, t, n) {
1687
- e && !Cn(e) && ln("GObj bad instanceof");
1705
+ function Nr(e, t, n) {
1706
+ e && !Kn(e) && cn("GObj bad instanceof");
1688
1707
  let r = {};
1689
- if (Fn(n) || (t = qn(e, t, n)), Rn(t)) r = t;
1690
- else if (jn(t)) for (let e = 0; e < t.length; e++) {
1691
- let n = t[e], l = er(n, "id", null, !1);
1692
- Fn(l) || (r[l] = n);
1708
+ if (Yn(n) || (t = tr(e, t, n)), Ln(t)) r = t;
1709
+ else if (Pn(t)) for (let e = 0; e < t.length; e++) {
1710
+ let n = t[e], l = or(n, "id", null, !1);
1711
+ Yn(l) || (r[l] = n);
1693
1712
  }
1694
- else ln(`${Qe(e)} kwid_new_dict: data type unknown`);
1713
+ else cn(`${Xe(e)} kwid_new_dict: data type unknown`);
1695
1714
  return r;
1696
1715
  }
1697
- function Tr(e, t, n, r, l) {
1698
- e && !Cn(e) && ln("GObj bad instanceof");
1699
- let i = Er(e, t, n, r, l);
1716
+ function wr(e, t, n, r, l) {
1717
+ e && !Kn(e) && cn("GObj bad instanceof");
1718
+ let i = vr(e, t, n, r, l);
1700
1719
  return i.length > 0 ? i[0] : null;
1701
1720
  }
1702
- function yr(e, t) {
1703
- if (e && !Cn(e) && ln("GObj bad instanceof"), !t) return [];
1721
+ function Dr(e, t) {
1722
+ if (e && !Kn(e) && cn("GObj bad instanceof"), !t) return [];
1704
1723
  let n = [];
1705
- if ($n(t)) n.push(t);
1706
- else if (Rn(t)) for (let e in t) t.hasOwnProperty(e) && n.push(e);
1707
- else jn(t) && t.forEach(function(t) {
1708
- if ($n(t)) Fn(t) || n.push(t);
1709
- else if (Rn(t)) {
1710
- let r = er(e, t, "id", 0, 0);
1724
+ if (Un(t)) n.push(t);
1725
+ else if (Ln(t)) for (let e in t) t.hasOwnProperty(e) && n.push(e);
1726
+ else Pn(t) && t.forEach(function(t) {
1727
+ if (Un(t)) Yn(t) || n.push(t);
1728
+ else if (Ln(t)) {
1729
+ let r = or(e, t, "id", 0, 0);
1711
1730
  r && n.push(r);
1712
1731
  }
1713
1732
  });
1714
1733
  return n;
1715
1734
  }
1716
- function Sr(e, t, n) {
1735
+ function Rr(e, t, n) {
1717
1736
  t = t || "id", n = n || "value";
1718
1737
  let r = [];
1719
- if (jn(e)) for (let l = 0; l < e.length; l++) {
1738
+ if (Pn(e)) for (let l = 0; l < e.length; l++) {
1720
1739
  let i = e[l];
1721
- if ($n(i)) r.push({
1740
+ if (Un(i)) r.push({
1722
1741
  id: e[l],
1723
1742
  value: e[l]
1724
1743
  });
1725
- else if (Rn(i)) {
1744
+ else if (Ln(i)) {
1726
1745
  let e = {};
1727
- if (Qn(i, t)) {
1728
- if (!Qn(i, n)) {
1729
- if (!(Dn(i) > 0)) {
1730
- ln("list2options(): object without field value: " + n);
1746
+ if (er(i, t)) {
1747
+ if (!er(i, n)) {
1748
+ if (!(kn(i) > 0)) {
1749
+ cn("list2options(): object without field value: " + n);
1731
1750
  continue;
1732
1751
  }
1733
1752
  n = Object.keys(i)[0];
1734
1753
  }
1735
1754
  e.id = i[t], e.value = i[n];
1736
1755
  } else {
1737
- if (!(Dn(i) > 0)) {
1738
- ln("list2options(): object without field id: " + t);
1756
+ if (!(kn(i) > 0)) {
1757
+ cn("list2options(): object without field id: " + t);
1739
1758
  continue;
1740
1759
  }
1741
1760
  t = Object.keys(i)[0], e.id = t, e.value = i[t];
1742
1761
  }
1743
1762
  r.push(e);
1744
- } else ln("list2options(): case1 not implemented");
1763
+ } else cn("list2options(): case1 not implemented");
1745
1764
  }
1746
- else if (Rn(e)) for (let t of Object.keys(e)) r.push({
1765
+ else if (Ln(e)) for (let t of Object.keys(e)) r.push({
1747
1766
  id: t,
1748
1767
  value: t
1749
1768
  });
1750
- else ln("list2options(): case2 not implemented");
1769
+ else cn("list2options(): case2 not implemented");
1751
1770
  return r;
1752
1771
  }
1753
- function Or(e, t) {
1772
+ function jr(e, t) {
1754
1773
  if (!e) return -1;
1755
1774
  for (let n = 0; n < e.length; n++) if (e[n] && e[n].id === t) return n;
1756
1775
  return -1;
1757
1776
  }
1758
- function vr(e, t, n) {
1759
- if (!e || !t) return ln("ERROR: str_in_list() list or str empty"), !1;
1777
+ function $r(e, t, n) {
1778
+ if (!e || !t) return cn("ERROR: str_in_list() list or str empty"), !1;
1760
1779
  let r = e.length;
1761
1780
  if (n) {
1762
1781
  t = t.toLowerCase();
@@ -1767,17 +1786,17 @@ function vr(e, t, n) {
1767
1786
  } else for (let n = 0; n < r; n++) if (e[n] === t) return !0;
1768
1787
  return !1;
1769
1788
  }
1770
- function Nr(e, t, n) {
1771
- if (!e) return ln("ERROR: strs_in_list() list empty"), !1;
1772
- if (!t) return ln("ERROR: strs_in_list() str empty"), !1;
1773
- for (let r = 0; r < t.length; r++) if (vr(e, t[r], n)) return !0;
1789
+ function Ir(e, t, n) {
1790
+ if (!e) return cn("ERROR: strs_in_list() list empty"), !1;
1791
+ if (!t) return cn("ERROR: strs_in_list() str empty"), !1;
1792
+ for (let r = 0; r < t.length; r++) if ($r(e, t[r], n)) return !0;
1774
1793
  return !1;
1775
1794
  }
1776
- function wr(e, t) {
1795
+ function Ar(e, t) {
1777
1796
  for (let n = 0; n < e.length; n++) if (t === e[n]) return e.splice(n, 1), !0;
1778
1797
  return !1;
1779
1798
  }
1780
- function Dr(e, t) {
1799
+ function kr(e, t) {
1781
1800
  try {
1782
1801
  let n = e.__md_iev__;
1783
1802
  if (n) return n[t];
@@ -1785,53 +1804,53 @@ function Dr(e, t) {
1785
1804
  return;
1786
1805
  }
1787
1806
  }
1788
- function Rr(e, t, n) {
1807
+ function Lr(e, t, n) {
1789
1808
  let r = e.__md_iev__;
1790
1809
  r || (r = {}, e.__md_iev__ = r), r[t] = n;
1791
1810
  }
1792
- function jr(e, t, n, r) {
1793
- if (!Cn(e)) return ln("gobj is not a GObj"), null;
1811
+ function Pr(e, t, n, r) {
1812
+ if (!Kn(e)) return cn("gobj is not a GObj"), null;
1794
1813
  if (!t) return;
1795
- let l = Dr(t, n);
1796
- l || (l = [], Rr(t, n, l));
1814
+ let l = kr(t, n);
1815
+ l || (l = [], Lr(t, n, l));
1797
1816
  try {
1798
- jn(l) && l.unshift(r);
1817
+ Pn(l) && l.unshift(r);
1799
1818
  } catch (e) {
1800
- ln(e);
1819
+ cn(e);
1801
1820
  }
1802
1821
  }
1803
- function $r(e, t, n, r) {
1804
- if (!Cn(e)) return ln("gobj is not a GObj"), null;
1805
- if (!Rn(t)) return ln("kw is not a dict"), null;
1806
- let l = Dr(t, n);
1807
- return l ? 0 === l.length ? (r && ln(`stack empty: ${n}`), null) : l[0] : (r && ln(`stack NOT FOUND: ${n}`), null);
1822
+ function Ur(e, t, n, r) {
1823
+ if (!Kn(e)) return cn("gobj is not a GObj"), null;
1824
+ if (!Ln(t)) return cn("kw is not a dict"), null;
1825
+ let l = kr(t, n);
1826
+ return l ? 0 === l.length ? (r && cn(`stack empty: ${n}`), null) : l[0] : (r && cn(`stack NOT FOUND: ${n}`), null);
1808
1827
  }
1809
- function Ir(e, t, n) {
1810
- return Fn(n) ? zn(e, t, "__md_iev__`__msg_type__") : or(e, t, "__md_iev__", "__msg_type__", n), 0;
1828
+ function Cr(e, t, n) {
1829
+ return Yn(n) ? nr(e, t, "__md_iev__`__msg_type__") : fr(e, t, "__md_iev__", "__msg_type__", n), 0;
1811
1830
  }
1812
- function kr(e, t) {
1813
- return er(e, t, "__md_iev__`__msg_type__", "", 0);
1831
+ function Fr(e, t) {
1832
+ return or(e, t, "__md_iev__`__msg_type__", "", 0);
1814
1833
  }
1815
- function Ar(e, t, n) {
1834
+ function Gr(e, t, n) {
1816
1835
  let r = new XMLHttpRequest();
1817
1836
  r.open("GET", e, !0), r.setRequestHeader("Accept", "application/json"), r.onreadystatechange = function() {
1818
1837
  if (4 === r.readyState) if (200 === r.status || 0 === (e = r).status && e.responseText && e.responseURL.startsWith("file:")) try {
1819
1838
  t(JSON.parse(r.responseText));
1820
1839
  } catch (e) {
1821
- n && (ln(`JSON parse status ${r.status}, error: ${e.message}`), n(r.status));
1840
+ n && (cn(`JSON parse status ${r.status}, error: ${e.message}`), n(r.status));
1822
1841
  }
1823
1842
  else n && n(r.status);
1824
1843
  var e;
1825
1844
  }, r.send();
1826
1845
  }
1827
- function Lr(e, t, n) {
1846
+ function Vr(e, t, n) {
1828
1847
  let r = new XMLHttpRequest();
1829
1848
  r.open("POST", e), r.setRequestHeader("Accept", "application/json"), r.setRequestHeader("Content-Type", "application/json"), r.onreadystatechange = function() {
1830
1849
  4 === r.readyState && n(r.status, r.responseText);
1831
1850
  }, r.send(t);
1832
1851
  }
1833
- function Pr(e, t, n) {
1834
- void 0 !== n && $n(n) || (n = "");
1852
+ function Wr(e, t, n) {
1853
+ void 0 !== n && Un(n) || (n = "");
1835
1854
  for (let r of Object.keys(e)) {
1836
1855
  if (!e.hasOwnProperty(r)) continue;
1837
1856
  let l = (n.length ? "`" : "") + r;
@@ -1840,61 +1859,61 @@ function Pr(e, t, n) {
1840
1859
  r,
1841
1860
  e[r],
1842
1861
  n
1843
- ]), Rn(e[r]) && Pr(e[r], t, n), n = n.slice(0, -l.length);
1862
+ ]), Ln(e[r]) && Wr(e[r], t, n), n = n.slice(0, -l.length);
1844
1863
  }
1845
1864
  }
1846
- function Ur(e, t, n) {
1847
- n && (e = cn(e));
1848
- let r = rr(null, e, "type", [], 1);
1849
- er(null, e, "hook", "data", 1);
1850
- let l = rr(null, e, "schema", {}, 1), i = rr(null, e, "topics", {}, 1);
1851
- return Pr(l, function(e, t, n, l) {
1852
- "__" !== t.substring(0, 2) && rr(null, i, l, cn(r), 1);
1865
+ function Mr(e, t, n) {
1866
+ n && (e = mn(e));
1867
+ let r = ur(null, e, "type", [], 1);
1868
+ or(null, e, "hook", "data", 1);
1869
+ let l = ur(null, e, "schema", {}, 1), i = ur(null, e, "topics", {}, 1);
1870
+ return Wr(l, function(e, t, n, l) {
1871
+ "__" !== t.substring(0, 2) && ur(null, i, l, mn(r), 1);
1853
1872
  }, t), e;
1854
1873
  }
1855
- function Cr(e, t, n, r) {
1856
- let l = rr(null, rr(null, e, "topics", null, 0), t, null, 0);
1857
- if (!l) return ln("jdb_update: topic not found: " + t), null;
1858
- if (Fn(r.id)) return ln("jdb_update: record without id: " + r), un(r), null;
1874
+ function Kr(e, t, n, r) {
1875
+ let l = ur(null, ur(null, e, "topics", null, 0), t, null, 0);
1876
+ if (!l) return cn("jdb_update: topic not found: " + t), null;
1877
+ if (Yn(r.id)) return cn("jdb_update: record without id: " + r), bn(r), null;
1859
1878
  let i, o = n.split("`"), s = l;
1860
- for (; (i = o.shift()) && !Fn(i) && s;) Rn(s) && (s = rr(null, s, e.hook, [], 1)), s = Mr(s, null, i, !1);
1861
- if (0 === o.length && s) if (jn(s)) s.push(r);
1879
+ for (; (i = o.shift()) && !Yn(i) && s;) Ln(s) && (s = ur(null, s, e.hook, [], 1)), s = Qr(s, null, i, !1);
1880
+ if (0 === o.length && s) if (Pn(s)) s.push(r);
1862
1881
  else if (s.id === r.id) Object.assign(s, r);
1863
1882
  else {
1864
- let t = rr(null, s, e.hook, [], 1), n = Mr(t, e.hook, r.id, !1);
1883
+ let t = ur(null, s, e.hook, [], 1), n = Qr(t, e.hook, r.id, !1);
1865
1884
  n ? Object.assign(n, r) : t.push(r);
1866
1885
  }
1867
1886
  return l;
1868
1887
  }
1869
- function Fr(e, t, n, r) {
1870
- let l = rr(null, rr(null, e, "topics", null, 0), t, null, 0);
1871
- if (!l) return ln("jdb_delete: topic not found: " + t), null;
1872
- if (Fn(r.id)) return ln("jdb_delete: record without id: " + r), un(r), null;
1888
+ function Yr(e, t, n, r) {
1889
+ let l = ur(null, ur(null, e, "topics", null, 0), t, null, 0);
1890
+ if (!l) return cn("jdb_delete: topic not found: " + t), null;
1891
+ if (Yn(r.id)) return cn("jdb_delete: record without id: " + r), bn(r), null;
1873
1892
  let i, o = n.split("`"), s = l;
1874
- for (; (i = o.shift()) && !Fn(i) && s;) Rn(s) && (s = rr(null, s, e.hook, null, 0)), s = Mr(s, null, i, !1);
1875
- if (0 === o.length && s) if (jn(s)) {
1876
- let e = Or(s, r.id);
1893
+ for (; (i = o.shift()) && !Yn(i) && s;) Ln(s) && (s = ur(null, s, e.hook, null, 0)), s = Qr(s, null, i, !1);
1894
+ if (0 === o.length && s) if (Pn(s)) {
1895
+ let e = jr(s, r.id);
1877
1896
  e >= 0 && s.splice(e, 1);
1878
1897
  } else {
1879
- let t = rr(null, s, e.hook, null, 0), n = Or(t, r.id);
1898
+ let t = ur(null, s, e.hook, null, 0), n = jr(t, r.id);
1880
1899
  n >= 0 && t.splice(n, 1);
1881
1900
  }
1882
1901
  return l;
1883
1902
  }
1884
- function Gr(e, t) {
1885
- let n = rr(null, e, "topics", null, 0);
1886
- if (!n) return ln("jdb topics section not found"), un(e), null;
1887
- return rr(null, n, t, null, 0) || (ln("jdb topic not found: " + t), un(n), null);
1903
+ function xr(e, t) {
1904
+ let n = ur(null, e, "topics", null, 0);
1905
+ if (!n) return cn("jdb topics section not found"), bn(e), null;
1906
+ return ur(null, n, t, null, 0) || (cn("jdb topic not found: " + t), bn(n), null);
1888
1907
  }
1889
- function Vr(e, t, n, r) {
1890
- let l = rr(null, rr(null, e, "topics", null, 0), t, null, 0);
1891
- return l ? (void 0 === r && (r = !0), Mr(l, e.hook, n, r)) : (ln("jdb_get: topic not found: " + t), null);
1908
+ function Br(e, t, n, r) {
1909
+ let l = ur(null, ur(null, e, "topics", null, 0), t, null, 0);
1910
+ return l ? (void 0 === r && (r = !0), Qr(l, e.hook, n, r)) : (cn("jdb_get: topic not found: " + t), null);
1892
1911
  }
1893
- function Wr(e, t, n) {
1894
- let r = rr(null, rr(null, e, "topics", null, 0), t, null, 0);
1895
- return r ? n < r.length ? r[n] : {} : (ln("jdb_get_by_idx: topic not found: " + t), null);
1912
+ function Jr(e, t, n) {
1913
+ let r = ur(null, ur(null, e, "topics", null, 0), t, null, 0);
1914
+ return r ? n < r.length ? r[n] : {} : (cn("jdb_get_by_idx: topic not found: " + t), null);
1896
1915
  }
1897
- function Mr(e, t, n, r) {
1916
+ function Qr(e, t, n, r) {
1898
1917
  if (!e) return null;
1899
1918
  let l, i = e.length;
1900
1919
  for (l = 0; l < i; l++) {
@@ -1902,19 +1921,19 @@ function Mr(e, t, n, r) {
1902
1921
  if (i) {
1903
1922
  let e = i.id;
1904
1923
  if (e && e === n) return i;
1905
- if (r && Qn(i, t)) {
1906
- let e = Mr(i[t], t, n, r);
1924
+ if (r && er(i, t)) {
1925
+ let e = Qr(i[t], t, n, r);
1907
1926
  if (e) return e;
1908
1927
  }
1909
1928
  }
1910
1929
  }
1911
1930
  return null;
1912
1931
  }
1913
- function Kr(e, t) {
1914
- let n = cn(e);
1915
- return bn(n, t), n;
1932
+ function qr(e, t) {
1933
+ let n = mn(e);
1934
+ return yn(n, t), n;
1916
1935
  }
1917
- function Yr(e) {
1936
+ function zr(e) {
1918
1937
  function t(e) {
1919
1938
  let t = e.replace(/-/g, "+").replace(/_/g, "/");
1920
1939
  switch (t.length % 4) {
@@ -1945,9 +1964,9 @@ function Yr(e) {
1945
1964
  signature: t(n[2])
1946
1965
  };
1947
1966
  }
1948
- function xr(e, t) {
1967
+ function Xr(e, t) {
1949
1968
  try {
1950
- let n = Yr(e);
1969
+ let n = zr(e);
1951
1970
  switch (t) {
1952
1971
  case "header": return JSON.parse(n.header);
1953
1972
  case "signature": return JSON.parse(n.signature);
@@ -1957,38 +1976,38 @@ function xr(e, t) {
1957
1976
  return null;
1958
1977
  }
1959
1978
  }
1960
- function Br(e) {
1979
+ function Hr(e) {
1961
1980
  return null == e ? "" : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1962
1981
  }
1963
- function Jr(e) {
1982
+ function Zr(e) {
1964
1983
  if (!e) return "";
1965
1984
  const t = String(e).trim();
1966
- return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" : Br(t);
1985
+ return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" : Hr(t);
1967
1986
  }
1968
- function Qr(e) {
1987
+ function el(e) {
1969
1988
  const t = document.createElement("template");
1970
1989
  return t.innerHTML = e.trim(), t.content.firstChild;
1971
1990
  }
1972
- function qr(e, t) {
1991
+ function tl(e, t) {
1973
1992
  let [n, r, l, i] = e;
1974
- if (!n) return void ln("Tag must be a valid HTML element.");
1993
+ if (!n) return void cn("Tag must be a valid HTML element.");
1975
1994
  let o = document.createElement(n), s = "";
1976
1995
  if (r && "object" == typeof r) for (let e of Object.keys(r)) if ("style" === e && "object" == typeof r[e]) {
1977
1996
  let t = "";
1978
1997
  for (const n of Object.keys(r[e])) t += `${n}: ${r[e][n]};`;
1979
1998
  o.style.cssText = t;
1980
1999
  } else "style" === e ? o.style.cssText = r[e] : "i18n" === e || "data-i18n" === e || "data_i18next" === e || "data-i18next" === e ? null !== r[e] && void 0 !== r[e] && (s = r[e], o.setAttribute("data-i18n", s)) : o.setAttribute(e, r[e]);
1981
- if ($n(l)) if (l = l.trim(), l.length > 0 && "<" === l[0]) o.appendChild(Qr(l));
2000
+ if (Un(l)) if (l = l.trim(), l.length > 0 && "<" === l[0]) o.appendChild(el(l));
1982
2001
  else if (t && s) o.textContent = t(s) || l;
1983
2002
  else o.textContent = l;
1984
- else if (jn(l)) {
1985
- if (l.length > 0) if ($n(l[0])) o.appendChild(qr(l, t));
1986
- else for (let e of l) Array.isArray(e) && e.length > 0 ? o.appendChild(qr(e, t)) : e instanceof HTMLElement && o.appendChild(e);
1987
- } else l instanceof HTMLElement || l instanceof Text || l instanceof SVGElement ? o.appendChild(l) : null != l && (ln("content ignored"), _n(l));
2003
+ else if (Pn(l)) {
2004
+ if (l.length > 0) if (Un(l[0])) o.appendChild(tl(l, t));
2005
+ else for (let e of l) Array.isArray(e) && e.length > 0 ? o.appendChild(tl(e, t)) : e instanceof HTMLElement && o.appendChild(e);
2006
+ } else l instanceof HTMLElement || l instanceof Text || l instanceof SVGElement ? o.appendChild(l) : null != l && (cn("content ignored"), pn(l));
1988
2007
  if (i && "object" == typeof i) for (const e of Object.keys(i)) o.addEventListener(e, i[e]);
1989
2008
  return o;
1990
2009
  }
1991
- function zr(e) {
2010
+ function nl(e) {
1992
2011
  if (!e) return {
1993
2012
  top: 0,
1994
2013
  left: 0,
@@ -2008,11 +2027,11 @@ function zr(e) {
2008
2027
  bottom: t + o + l
2009
2028
  };
2010
2029
  }
2011
- function Xr(e) {
2030
+ function rl(e) {
2012
2031
  return new DOMParser().parseFromString(e, "image/svg+xml").firstChild;
2013
2032
  }
2014
- function Hr(e, t) {
2015
- Un(t) ? (e || (e = document), e.querySelectorAll("[data-i18n]").forEach(function(e) {
2033
+ function ll(e, t) {
2034
+ Mn(t) ? (e || (e = document), e.querySelectorAll("[data-i18n]").forEach(function(e) {
2016
2035
  let n = e.getAttribute("data-i18n");
2017
2036
  for (let r of e.childNodes) if (r.nodeType === Node.TEXT_NODE) {
2018
2037
  n || (n = r.nodeValue), r.nodeValue = t(n);
@@ -2024,43 +2043,43 @@ function Hr(e, t) {
2024
2043
  }), e.querySelectorAll("[data-i18n-aria-label]").forEach(function(e) {
2025
2044
  let n = e.getAttribute("data-i18n-aria-label");
2026
2045
  n && e.setAttribute("aria-label", t(n));
2027
- })) : ln("You must supply a translation function");
2046
+ })) : cn("You must supply a translation function");
2028
2047
  }
2029
- function Zr(e = "Time Tracker", t = !1) {
2048
+ function il(e = "Time Tracker", t = !1) {
2030
2049
  const n = e, r = performance.now();
2031
2050
  let l = r;
2032
- return t && on(`--\x3e ${n} - starting`), { mark: (e = "Intermediate", i = "") => {
2051
+ return t && fn(`--\x3e ${n} - starting`), { mark: (e = "Intermediate", i = "") => {
2033
2052
  const o = performance.now(), s = (o - l) / 1e3, a = (o - r) / 1e3;
2034
- return t && on(`--\x3e ${n} ${e} - partial: ${s} sec, total: ${a} sec, ${i}`), l = o, {
2053
+ return t && fn(`--\x3e ${n} ${e} - partial: ${s} sec, total: ${a} sec, ${i}`), l = o, {
2035
2054
  partial: s,
2036
2055
  total: a
2037
2056
  };
2038
2057
  } };
2039
2058
  }
2040
- function el() {
2059
+ function ol() {
2041
2060
  const e = /* @__PURE__ */ new Date(), t = e.toISOString().slice(0, 19), n = String(e.getMilliseconds()).padStart(3, "0"), r = e.getTimezoneOffset();
2042
2061
  return `${t}.${n}${r > 0 ? "-" : "+"}${String(Math.abs(r) / 60).padStart(2, "0")}${String(Math.abs(r) % 60).padStart(2, "0")}`;
2043
2062
  }
2044
- function tl() {
2063
+ function sl() {
2045
2064
  return Math.floor(Date.now() / 1e3);
2046
2065
  }
2047
- function nl(e, t) {
2066
+ function al(e, t) {
2048
2067
  if (!e) throw "ERROR: index_in_list() list empty";
2049
2068
  for (let n = 0; n < e.length; n++) if (t === e[n]) return n;
2050
2069
  return -1;
2051
2070
  }
2052
- function rl() {
2071
+ function ul() {
2053
2072
  let e = "";
2054
2073
  return "undefined" != typeof window && window.localStorage ? (e = window.localStorage.getItem("host_uuid"), !e && window.crypto?.randomUUID && (e = window.crypto.randomUUID(), window.localStorage.setItem("host_uuid", e))) : e = "undefined" != typeof globalThis && globalThis.crypto?.randomUUID ? globalThis.crypto.randomUUID() : "00000000-0000-0000-0000-000000000000", e;
2055
2074
  }
2056
- function ll(e) {
2075
+ function _l(e) {
2057
2076
  return e.replace(/[?# ^:]/g, "_");
2058
2077
  }
2059
- function il(e) {
2078
+ function cl(e) {
2060
2079
  let t = null;
2061
2080
  return "function" != typeof e && "object" != typeof e || (t = ("" + e).match(/function\s*([\w\$]*)\s*\(/)), null !== t ? t[1] + "()" : "";
2062
2081
  }
2063
- function ol(e, t = 0, n = !1) {
2082
+ function fl(e, t = 0, n = !1) {
2064
2083
  let r = null, l = null, i = null;
2065
2084
  const o = (...o) => {
2066
2085
  i = this, l = o;
@@ -2075,45 +2094,45 @@ function ol(e, t = 0, n = !1) {
2075
2094
  clearTimeout(r), r = null, l = null, i = null;
2076
2095
  }, o;
2077
2096
  }
2078
- function sl(...e) {
2097
+ function gl(...e) {
2079
2098
  let t = "", n = 0;
2080
2099
  for (let r of e) null != r && "" !== r && (r = String(r), r = 0 === n ? r.replace(/\/+$/, "") : r.replace(/^\/+/, "").replace(/\/+$/, ""), "" !== r && (n > 0 && (t += "/"), t += r, n++));
2081
2100
  return t;
2082
2101
  }
2083
- function al(e) {
2084
- return "persistent-attrs-" + Qe(e);
2102
+ function dl(e) {
2103
+ return "persistent-attrs-" + Xe(e);
2085
2104
  }
2086
- function ul(e, t) {
2087
- let n = pt(e, S.SDF_PERSIST), r = dr(al(e), null, !1);
2088
- if (r && Rn(r)) {
2089
- let l = fr(e, r, t, !1);
2090
- l = fr(e, l, n, !1), Ot(e, l, S.SDF_PERSIST);
2105
+ function bl(e, t) {
2106
+ let n = ht(e, S.SDF_PERSIST), r = Tr(dl(e), null, !1);
2107
+ if (r && Ln(r)) {
2108
+ let l = Er(e, r, t, !1);
2109
+ l = Er(e, l, n, !1), wt(e, l, S.SDF_PERSIST);
2091
2110
  }
2092
2111
  }
2093
- function _l(e, t) {
2094
- let n = fr(e, pt(e, S.SDF_PERSIST), t, !1), r = dr(al(e), null, !1);
2095
- r && Rn(r) && pn(n, r), br(al(e), n);
2112
+ function pl(e, t) {
2113
+ let n = Er(e, ht(e, S.SDF_PERSIST), t, !1), r = Tr(dl(e), null, !1);
2114
+ r && Ln(r) && Sn(n, r), yr(dl(e), n);
2096
2115
  }
2097
- function cl(e, t) {
2098
- let n = gr(e, dr(al(e), null, !1), t, !1);
2099
- 0 === Nn(n) ? pr(al(e)) : br(al(e), n);
2116
+ function ml(e, t) {
2117
+ let n = hr(e, Tr(dl(e), null, !1), t, !1);
2118
+ 0 === In(n) ? Sr(dl(e)) : yr(dl(e), n);
2100
2119
  }
2101
- function fl(e, t) {
2102
- let n = dr(al(e), null, !1), r = {};
2103
- return n && Rn(n) && (r = fr(e, n, t, !1)), r;
2120
+ function El(e, t) {
2121
+ let n = Tr(dl(e), null, !1), r = {};
2122
+ return n && Ln(n) && (r = Er(e, n, t, !1)), r;
2104
2123
  }
2105
- function gl(e) {
2106
- if (jn(e) && 1 === Dn(e)) {
2124
+ function hl(e) {
2125
+ if (Pn(e) && 1 === kn(e)) {
2107
2126
  let t = e[0];
2108
- return Qn(t, "size") ? t.size : 1;
2127
+ return er(t, "size") ? t.size : 1;
2109
2128
  }
2110
- return Dn(e);
2129
+ return kn(e);
2111
2130
  }
2112
- function dl(e, t) {
2113
- if ($n(t)) {
2131
+ function Tl(e, t) {
2132
+ if (Un(t)) {
2114
2133
  if (-1 === t.indexOf("^")) {
2115
2134
  let n, r, l = e.fkey;
2116
- if (1 !== Nn(l)) return ln("bad fkey 1"), ln(e), ln(t), null;
2135
+ if (1 !== In(l)) return cn("bad fkey 1"), cn(e), cn(t), null;
2117
2136
  for (const e of Object.keys(l)) {
2118
2137
  n = e, r = l[e];
2119
2138
  break;
@@ -2126,28 +2145,28 @@ function dl(e, t) {
2126
2145
  }
2127
2146
  {
2128
2147
  let n = t.split("^");
2129
- return 3 !== n.length ? (ln("bad fkey 2"), ln(e), ln(t), null) : {
2148
+ return 3 !== n.length ? (cn("bad fkey 2"), cn(e), cn(t), null) : {
2130
2149
  topic_name: n[0],
2131
2150
  id: n[1],
2132
2151
  hook_name: n[2]
2133
2152
  };
2134
2153
  }
2135
2154
  }
2136
- return Rn(t) ? {
2155
+ return Ln(t) ? {
2137
2156
  topic_name: t.topic_name,
2138
2157
  id: t.id,
2139
2158
  hook_name: t.hook_name
2140
- } : (ln("bad fkey 3"), ln(e), ln(t), null);
2159
+ } : (cn("bad fkey 3"), cn(e), cn(t), null);
2141
2160
  }
2142
- function bl(e, t) {
2143
- let n = dl(e, t);
2161
+ function yl(e, t) {
2162
+ let n = Tl(e, t);
2144
2163
  return n ? n.topic_name + "^" + n.id + "^" + n.hook_name : null;
2145
2164
  }
2146
- function pl(e, t) {
2147
- if ($n(t)) {
2165
+ function Sl(e, t) {
2166
+ if (Un(t)) {
2148
2167
  if (-1 === t.indexOf("^")) {
2149
2168
  let n, r = e.hook;
2150
- if (1 !== Nn(r)) return ln("bad hook 1"), ln(e), ln(t), null;
2169
+ if (1 !== In(r)) return cn("bad hook 1"), cn(e), cn(t), null;
2151
2170
  for (let e of Object.keys(r)) {
2152
2171
  n = e, r[e];
2153
2172
  break;
@@ -2159,18 +2178,18 @@ function pl(e, t) {
2159
2178
  }
2160
2179
  {
2161
2180
  let n = t.split("^");
2162
- return 2 !== n.length ? (ln("bad hook 2"), ln(e), ln(t), null) : {
2181
+ return 2 !== n.length ? (cn("bad hook 2"), cn(e), cn(t), null) : {
2163
2182
  topic_name: n[0],
2164
2183
  id: n[1]
2165
2184
  };
2166
2185
  }
2167
2186
  }
2168
- return Rn(t) ? {
2187
+ return Ln(t) ? {
2169
2188
  topic_name: t.topic_name,
2170
2189
  id: t.id
2171
- } : (ln("bad hook 3"), ln(e), ln(t), null);
2190
+ } : (cn("bad hook 3"), cn(e), cn(t), null);
2172
2191
  }
2173
- var ml = [
2192
+ var Ol = [
2174
2193
  "string",
2175
2194
  "integer",
2176
2195
  "object",
@@ -2180,7 +2199,7 @@ var ml = [
2180
2199
  "real",
2181
2200
  "boolean",
2182
2201
  "blob"
2183
- ], El = [
2202
+ ], vl = [
2184
2203
  "persistent",
2185
2204
  "required",
2186
2205
  "notnull",
@@ -2192,7 +2211,7 @@ var ml = [
2192
2211
  "stats",
2193
2212
  "rstats",
2194
2213
  "pstats"
2195
- ], hl = [
2214
+ ], Nl = [
2196
2215
  "hook",
2197
2216
  "fkey",
2198
2217
  "enum",
@@ -2218,7 +2237,7 @@ var ml = [
2218
2237
  "coordinates",
2219
2238
  "gbuffer"
2220
2239
  ];
2221
- function Tl(e) {
2240
+ function wl(e) {
2222
2241
  let t = {
2223
2242
  name: e.id,
2224
2243
  header: e.header,
@@ -2235,7 +2254,7 @@ function Tl(e) {
2235
2254
  if (!e.flag) return t;
2236
2255
  for (let n = 0; n < e.flag.length; n++) {
2237
2256
  let r = e.flag[n];
2238
- if (vr(hl, r)) {
2257
+ if ($r(Nl, r)) {
2239
2258
  switch (r) {
2240
2259
  case "enum":
2241
2260
  t.enum_list = e.enum;
@@ -2246,7 +2265,7 @@ function Tl(e) {
2246
2265
  case "table": t.enum_list = e.table;
2247
2266
  }
2248
2267
  t.type = r;
2249
- } else if (vr(El, r)) switch (r) {
2268
+ } else if ($r(vl, r)) switch (r) {
2250
2269
  case "writable":
2251
2270
  t.is_writable = !0;
2252
2271
  break;
@@ -2259,7 +2278,7 @@ function Tl(e) {
2259
2278
  }
2260
2279
  return t;
2261
2280
  }
2262
- function yl(e, t) {
2281
+ function Dl(e, t) {
2263
2282
  let n = {
2264
2283
  name: e,
2265
2284
  header: e,
@@ -2272,13 +2291,13 @@ function yl(e, t) {
2272
2291
  default_value: void 0,
2273
2292
  placeholder: void 0
2274
2293
  };
2275
- if ($n(t)) {
2294
+ if (Un(t)) {
2276
2295
  let e = t.split(".");
2277
2296
  for (let t = 0; t < e.length; t++) {
2278
2297
  let r = e[t];
2279
- if (vr(ml, r)) n.real_type || (n.real_type = r);
2280
- else if (vr(hl, r)) n.type || (n.type = r);
2281
- else if (vr(El, r)) switch (r) {
2298
+ if ($r(Ol, r)) n.real_type || (n.real_type = r);
2299
+ else if ($r(Nl, r)) n.type || (n.type = r);
2300
+ else if ($r(vl, r)) switch (r) {
2282
2301
  case "writable":
2283
2302
  n.is_writable = !0;
2284
2303
  break;
@@ -2290,45 +2309,45 @@ function yl(e, t) {
2290
2309
  }
2291
2310
  }
2292
2311
  n.real_type || (n.real_type = "string");
2293
- } else Rn(t) ? (n = Tl(t), n.name || (n.name = e), n.header || (n.header = e)) : jn(t) && (n.real_type = "array", n.enum_list = t);
2312
+ } else Ln(t) ? (n = wl(t), n.name || (n.name = e), n.header || (n.header = e)) : Pn(t) && (n.real_type = "array", n.enum_list = t);
2294
2313
  return n.type || (n.type = n.real_type), n;
2295
2314
  }
2296
- function Sl(e, t) {
2315
+ function Rl(e, t) {
2297
2316
  let n = {};
2298
2317
  return t || (t = {}), Object.entries(e).forEach(([e, r]) => {
2299
- n[e] = rr(null, t, e, rr(r, "default"));
2318
+ n[e] = ur(null, t, e, ur(r, "default"));
2300
2319
  }), n;
2301
2320
  }
2302
- var Ol = [
2321
+ var jl = [
2303
2322
  N(y.DTP_POINTER, "subscriber", 0, null, "Subscriber of output events"),
2304
2323
  N(y.DTP_BOOLEAN, "periodic", 0, 0, "True for periodic timeouts"),
2305
2324
  N(y.DTP_INTEGER, "msec", 0, 0, "Timeout in milliseconds"),
2306
2325
  v()
2307
- ], vl = {
2326
+ ], $l = {
2308
2327
  periodic: !1,
2309
2328
  msec: 0,
2310
2329
  timer_id: -1
2311
- }, Nl = null;
2312
- function wl(e, t, n, r) {
2330
+ }, Il = null;
2331
+ function Al(e, t, n, r) {
2313
2332
  let l = e.priv, i = l.periodic ? "EV_TIMEOUT_PERIODIC" : "EV_TIMEOUT";
2314
- return He(e) ? Lt(ze(e), i, {}, e) : Jt(e, i, {}), l.periodic && (l.timer_id = setTimeout(function() {
2315
- Lt(e, "EV_TIMEOUT", {}, e);
2333
+ return tt(e) ? Ct(Ze(e), i, {}, e) : zt(e, i, {}), l.periodic && (l.timer_id = setTimeout(function() {
2334
+ Ct(e, "EV_TIMEOUT", {}, e);
2316
2335
  }, l.msec)), 0;
2317
2336
  }
2318
- var Dl = {
2337
+ var kl = {
2319
2338
  mt_create: function(e) {
2320
2339
  let t = e.priv;
2321
- const n = Tt(e, "subscriber");
2322
- n && Wt(e, null, {}, n), t.periodic = mt(e, "periodic"), t.msec = Et(e, "msec");
2340
+ const n = Ot(e, "subscriber");
2341
+ n && Yt(e, null, {}, n), t.periodic = Tt(e, "periodic"), t.msec = yt(e, "msec");
2323
2342
  },
2324
2343
  mt_writing: function(e, t) {
2325
2344
  let n = e.priv;
2326
2345
  switch (t) {
2327
2346
  case "periodic":
2328
- n.periodic = mt(e, "periodic");
2347
+ n.periodic = Tt(e, "periodic");
2329
2348
  break;
2330
- case "msec": n.msec = Et(e, "msec"), -1 !== n.timer_id && (clearTimeout(n.timer_id), n.timer_id = -1), n.msec > 0 && (n.timer_id = setTimeout(function() {
2331
- Lt(e, "EV_TIMEOUT", {}, e);
2349
+ case "msec": n.msec = yt(e, "msec"), -1 !== n.timer_id && (clearTimeout(n.timer_id), n.timer_id = -1), n.msec > 0 && (n.timer_id = setTimeout(function() {
2350
+ Ct(e, "EV_TIMEOUT", {}, e);
2332
2351
  }, n.msec));
2333
2352
  }
2334
2353
  },
@@ -2336,35 +2355,35 @@ var Dl = {
2336
2355
  return 0;
2337
2356
  },
2338
2357
  mt_stop: function(e) {
2339
- return Nt(e, "msec", -1), 0;
2358
+ return Rt(e, "msec", -1), 0;
2340
2359
  },
2341
2360
  mt_destroy: function(e) {}
2342
2361
  };
2343
- function Rl() {
2362
+ function Ll() {
2344
2363
  return function(e) {
2345
- if (Nl) return ln(`GClass ALREADY created: ${e}`), -1;
2364
+ if (Il) return cn(`GClass ALREADY created: ${e}`), -1;
2346
2365
  const t = [["ST_IDLE", [[
2347
2366
  "EV_TIMEOUT",
2348
- wl,
2367
+ Al,
2349
2368
  null
2350
2369
  ]]]];
2351
- return (Nl = z(e, [
2370
+ return (Il = Z(e, [
2352
2371
  ["EV_TIMEOUT", C.EVF_OUTPUT_EVENT],
2353
2372
  ["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT],
2354
2373
  [0, 0]
2355
- ], t, Dl, 0, Ol, vl, 0, 0, 0, L.gcflag_manual_start)) ? 0 : -1;
2374
+ ], t, kl, 0, jl, $l, 0, 0, 0, L.gcflag_manual_start)) ? 0 : -1;
2356
2375
  }("C_TIMER");
2357
2376
  }
2358
- function jl(e, t) {
2359
- return e instanceof A ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : (vt(e, "periodic", !1), void Nt(e, "msec", t)) : (ln("not GObj TYPE"), -1);
2377
+ function Pl(e, t) {
2378
+ return e instanceof k ? "C_TIMER" !== ze(e) ? (cn("not C_TIMER GObj"), -1) : (Dt(e, "periodic", !1), void Rt(e, "msec", t)) : (cn("not GObj TYPE"), -1);
2360
2379
  }
2361
- function $l(e, t) {
2362
- return e instanceof A ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : (vt(e, "periodic", !0), void Nt(e, "msec", t)) : (ln("not GObj TYPE"), -1);
2380
+ function Ul(e, t) {
2381
+ return e instanceof k ? "C_TIMER" !== ze(e) ? (cn("not C_TIMER GObj"), -1) : (Dt(e, "periodic", !0), void Rt(e, "msec", t)) : (cn("not GObj TYPE"), -1);
2363
2382
  }
2364
- function Il(e) {
2365
- return e instanceof A ? "C_TIMER" !== Je(e) ? (ln("not C_TIMER GObj"), -1) : void Nt(e, "msec", -1) : (ln("not GObj TYPE"), -1);
2383
+ function Cl(e) {
2384
+ return e instanceof k ? "C_TIMER" !== ze(e) ? (cn("not C_TIMER GObj"), -1) : void Rt(e, "msec", -1) : (cn("not GObj TYPE"), -1);
2366
2385
  }
2367
- var kl = [
2386
+ var Fl = [
2368
2387
  N(y.DTP_BOOLEAN, "changesLost", 0, !1, "Set true to warn about leaving page"),
2369
2388
  N(y.DTP_BOOLEAN, "browser_beforeunload", 0, !1, "Set true to refreshing browser"),
2370
2389
  N(y.DTP_STRING, "__username__", 0, "", "Username"),
@@ -2390,43 +2409,43 @@ var kl = [
2390
2409
  N(y.DTP_BOOLEAN, "developer", 0, !1, "Developer mode enabled"),
2391
2410
  N(y.DTP_INTEGER, "periodic_timeout", 0, "1000", "Timeout periodic, in miliseconds."),
2392
2411
  v()
2393
- ], Al = { gobj_timer: null }, Ll = null;
2394
- function Pl(e, t, n, r) {
2395
- return Jt(e, t, n), 0;
2412
+ ], Gl = { gobj_timer: null }, Vl = null;
2413
+ function Wl(e, t, n, r) {
2414
+ return zt(e, t, n), 0;
2396
2415
  }
2397
- var Ul = {
2416
+ var Ml = {
2398
2417
  mt_create: function(e) {
2399
2418
  let t = e.priv;
2400
- 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");
2419
+ jt(e, "start_date", ol()), jt(e, "node_uuid", ul()), e.priv.gobj_timer = De(qe(e), "C_TIMER", {}, e), t.periodic_timeout = Et(e, "periodic_timeout");
2401
2420
  },
2402
2421
  mt_writing: function(e, t) {},
2403
2422
  mt_start: function(e) {
2404
- return De(e.priv.gobj_timer), $l(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
2423
+ return $e(e.priv.gobj_timer), Ul(e.priv.gobj_timer, e.priv.periodic_timeout), 0;
2405
2424
  },
2406
2425
  mt_stop: function(e) {
2407
- return ke(e.priv.gobj_timer), Le(e), 0;
2426
+ return Pe(e.priv.gobj_timer), Ce(e), 0;
2408
2427
  },
2409
2428
  mt_destroy: function(e) {},
2410
2429
  mt_play: function(e) {
2411
- let t = ae();
2412
- return Fe(t) || De(t), We(t) || Ue(t), 0;
2430
+ let t = ce();
2431
+ return We(t) || $e(t), Ye(t) || Ge(t), 0;
2413
2432
  },
2414
2433
  mt_pause: function(e) {
2415
- return Ce(ae()), 0;
2434
+ return Ve(ce()), 0;
2416
2435
  }
2417
2436
  };
2418
- function Cl() {
2437
+ function Kl() {
2419
2438
  return function(e) {
2420
- if (Ll) return ln(`GClass ALREADY created: ${e}`), -1;
2439
+ if (Vl) return cn(`GClass ALREADY created: ${e}`), -1;
2421
2440
  const t = [["ST_IDLE", [[
2422
2441
  "EV_TIMEOUT_PERIODIC",
2423
- Pl,
2442
+ Wl,
2424
2443
  null
2425
2444
  ]]]];
2426
- return (Ll = z(e, [["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS], [0, 0]], t, Ul, 0, kl, Al, 0, 0, 0, 0)) ? 0 : -1;
2445
+ return (Vl = Z(e, [["EV_TIMEOUT_PERIODIC", C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS], [0, 0]], t, Ml, 0, Fl, Gl, 0, 0, 0, 0)) ? 0 : -1;
2427
2446
  }("C_YUNO");
2428
2447
  }
2429
- var Fl = "ievent_gate_stack", Gl = [
2448
+ var Yl = "ievent_gate_stack", xl = [
2430
2449
  N(y.DTP_STRING, "wanted_yuno_role", S.SDF_RD, "", "wanted yuno role"),
2431
2450
  N(y.DTP_STRING, "wanted_yuno_name", S.SDF_RD, "", "wanted yuno name"),
2432
2451
  N(y.DTP_STRING, "wanted_yuno_service", S.SDF_RD, "", "wanted yuno service"),
@@ -2441,7 +2460,7 @@ var Fl = "ievent_gate_stack", Gl = [
2441
2460
  N(y.DTP_INTEGER, "timeout_idack", S.SDF_RD, "5000", "timeout waiting idAck"),
2442
2461
  N(y.DTP_POINTER, "subscriber", 0, 0, "subscriber of output-events. If null then subscriber is the parent"),
2443
2462
  v()
2444
- ], Vl = {
2463
+ ], Bl = {
2445
2464
  url: null,
2446
2465
  remote_yuno_name: null,
2447
2466
  remote_yuno_role: null,
@@ -2450,88 +2469,88 @@ var Fl = "ievent_gate_stack", Gl = [
2450
2469
  inform_on_close: !1,
2451
2470
  websocket: null,
2452
2471
  inside_on_open: !1
2453
- }, Wl = null;
2454
- function Ml(e) {
2455
- e.priv.websocket && ln("Websocket ALREADY setup");
2456
- const t = ht(e, "url");
2472
+ }, Jl = null;
2473
+ function Ql(e) {
2474
+ e.priv.websocket && cn("Websocket ALREADY setup");
2475
+ const t = St(e, "url");
2457
2476
  let n;
2458
- an(`====> Starting WebSocket to '${t}' (${Qe(e)})`);
2477
+ dn(`====> Starting WebSocket to '${t}' (${Xe(e)})`);
2459
2478
  try {
2460
2479
  n = new WebSocket(t);
2461
2480
  } catch (n) {
2462
- return ln(`${Qe(e)}: Cannot open WebSocket to '${t}', Error: ${n.message}`), null;
2481
+ return cn(`${Xe(e)}: Cannot open WebSocket to '${t}', Error: ${n.message}`), null;
2463
2482
  }
2464
2483
  return n ? (n.onopen = () => {
2465
- Lt(e, "EV_ON_OPEN", { url: t }, e);
2484
+ Ct(e, "EV_ON_OPEN", { url: t }, e);
2466
2485
  }, n.onmessage = (n) => {
2467
- Lt(e, "EV_ON_MESSAGE", {
2486
+ Ct(e, "EV_ON_MESSAGE", {
2468
2487
  url: t,
2469
2488
  data: n.data
2470
2489
  }, e);
2471
2490
  }, n.onclose = (n) => {
2472
- mt(Me(), "browser_beforeunload") ? on("Close websocket by unload page") : Lt(e, "EV_ON_CLOSE", {
2491
+ nt(e) || (Tt(xe(), "browser_beforeunload") ? fn("Close websocket by unload page") : Ct(e, "EV_ON_CLOSE", {
2473
2492
  url: t,
2474
2493
  e: n
2475
- }, e);
2476
- }, n) : (ln(`${Qe(e)}: Failed to initialize WebSocket.`), null);
2494
+ }, e));
2495
+ }, n) : (cn(`${Xe(e)}: Failed to initialize WebSocket.`), null);
2477
2496
  }
2478
- function Kl(e, t = 1e3, n = "") {
2497
+ function ql(e, t = 1e3, n = "") {
2479
2498
  let r = e.priv, l = r.websocket;
2480
2499
  if (r.websocket = null, l && l.readyState !== WebSocket.CLOSED && l.readyState !== WebSocket.CLOSING) {
2481
- an(`Closing WebSocket (Code: ${t}, Reason: "${n}")`);
2500
+ dn(`Closing WebSocket (Code: ${t}, Reason: "${n}")`);
2482
2501
  try {
2483
2502
  l.close(t, n);
2484
2503
  } catch (e) {
2485
- ln("Error closing WebSocket:", e.message);
2504
+ cn("Error closing WebSocket:", e.message);
2486
2505
  }
2487
- } else on("WebSocket is already closed or in the process of closing.");
2506
+ } else fn("WebSocket is already closed or in the process of closing.");
2488
2507
  }
2489
- function Yl(e, t, n) {
2490
- let r = el();
2508
+ function zl(e, t, n) {
2509
+ let r = ol();
2491
2510
  try {
2492
- an("\n" + r + " " + t + "\n"), _n(n);
2511
+ dn("\n" + r + " " + t + "\n"), pn(n);
2493
2512
  } catch (e) {
2494
- an("ERROR in trace_inter_event: " + e);
2513
+ dn("ERROR in trace_inter_event: " + e);
2495
2514
  }
2496
2515
  }
2497
- var xl = class {
2516
+ var Xl = class {
2498
2517
  constructor(e, t) {
2499
2518
  this.event = e, this.kw = t || {};
2500
2519
  }
2501
2520
  };
2502
- function Bl(e, t, n, r) {
2521
+ function Hl(e, t, n, r) {
2503
2522
  return function(e, t) {
2504
2523
  let n = e.priv, r = JSON.stringify(t);
2505
- if (mt(Me(), "trace_inter_event")) {
2506
- let n = ht(e, "url"), l = Be(Me()) + " ==> " + n, i = bt(Me(), "trace_ievent_callback");
2507
- i ? i(l, t, 1, r.length) : Yl(0, l, t);
2524
+ if (Tt(xe(), "trace_inter_event")) {
2525
+ let n = St(e, "url"), l = qe(xe()) + " ==> " + n, i = Et(xe(), "trace_ievent_callback");
2526
+ i ? i(l, t, 1, r.length) : zl(0, l, t);
2508
2527
  }
2509
2528
  try {
2510
2529
  n.websocket.send(r);
2511
2530
  } catch (t) {
2512
- ln(`${Qe(e)}: send_iev(): ${t}`);
2531
+ cn(`${Xe(e)}: send_iev(): ${t}`);
2513
2532
  }
2514
2533
  return 0;
2515
2534
  }(e, function(e, t) {
2516
- return Fn(e) ? (ln("iev_create() event NULL"), null) : new xl(e, t);
2535
+ return Yn(e) ? (cn("iev_create() event NULL"), null) : new Xl(e, t);
2517
2536
  }(t, n));
2518
2537
  }
2519
- function Jl(e, t, n) {
2520
- return Fn(n) && (n = ht(e, "wanted_yuno_service")), {
2521
- dst_yuno: ht(e, "wanted_yuno_name"),
2522
- dst_role: ht(e, "wanted_yuno_role"),
2538
+ function Zl(e, t, n) {
2539
+ return Yn(n) && (n = St(e, "wanted_yuno_service")), {
2540
+ dst_yuno: St(e, "wanted_yuno_name"),
2541
+ dst_role: St(e, "wanted_yuno_role"),
2523
2542
  dst_service: n,
2524
- src_yuno: Ke(),
2525
- src_role: Ye(),
2543
+ src_yuno: Be(),
2544
+ src_role: Je(),
2526
2545
  src_service: t,
2527
- host: rl()
2546
+ host: ul()
2528
2547
  };
2529
2548
  }
2530
- function Ql(e) {
2531
- let t = e.priv, n = We(Me()), r = ht(Me(), "yuno_version"), l = ht(Me(), "yuno_release"), i = ht(Me(), "yuno_tag"), o = {
2532
- yuno_role: Ye(),
2533
- yuno_id: xe(),
2534
- yuno_name: Ke(),
2549
+ function ei(e) {
2550
+ let t = e.priv, n = Ye(xe()), r = St(xe(), "yuno_version"), l = St(xe(), "yuno_release"), i = St(xe(), "yuno_tag"), o = {
2551
+ yuno_role: Je(),
2552
+ yuno_id: Qe(),
2553
+ yuno_name: Be(),
2535
2554
  yuno_tag: i,
2536
2555
  yuno_version: r,
2537
2556
  yuno_release: l,
@@ -2539,37 +2558,37 @@ function Ql(e) {
2539
2558
  playing: n,
2540
2559
  pid: 0,
2541
2560
  watcher_pid: 0,
2542
- jwt: ht(e, "jwt"),
2543
- username: ht(Me(), "__username__"),
2561
+ jwt: St(e, "jwt"),
2562
+ username: St(xe(), "__username__"),
2544
2563
  launch_id: 0,
2545
- yuno_startdate: ht(Me(), "start_date"),
2546
- id: rl(),
2564
+ yuno_startdate: St(xe(), "start_date"),
2565
+ id: ul(),
2547
2566
  user_agent: "undefined" != typeof window ? window.navigator.userAgent : "",
2548
2567
  language: "undefined" != typeof window ? window.navigator.language : "",
2549
- required_services: bt(Me(), "required_services")
2568
+ required_services: Et(xe(), "required_services")
2550
2569
  };
2551
- return jr(e, o, Fl, Jl(e, Be(ze(e)), null)), Ir(e, o, "__identity__"), jl(t.gobj_timer, Et(e, "timeout_idack")), Bl(e, "EV_IDENTITY_CARD", o);
2570
+ return Pr(e, o, Yl, Zl(e, qe(Ze(e)), null)), Cr(e, o, "__identity__"), Pl(t.gobj_timer, yt(e, "timeout_idack")), Hl(e, "EV_IDENTITY_CARD", o);
2552
2571
  }
2553
- function ql(e, t) {
2554
- if (Fn(t.event)) return -1;
2572
+ function ti(e, t) {
2573
+ if (Yn(t.event)) return -1;
2555
2574
  let n = {}, r = t.__global__, l = t.__config__, i = t.__filter__, o = t.__service__, s = t.subscriber;
2556
- return l && (n.__config__ = l), r && (n.__global__ = r), i && (n.__filter__ = i), jr(e, n, Fl, Jl(e, Be(s), o)), Ir(e, n, "__subscribing__"), Bl(e, t.event, n);
2575
+ return l && (n.__config__ = l), r && (n.__global__ = r), i && (n.__filter__ = i), Pr(e, n, Yl, Zl(e, qe(s), o)), Cr(e, n, "__subscribing__"), Hl(e, t.event, n);
2557
2576
  }
2558
- function zl(e, t, n, r) {
2577
+ function ni(e, t, n, r) {
2559
2578
  let l = e.priv;
2560
- return Fe(e) && (l.websocket = Ml(e)), 0;
2579
+ return We(e) && (l.websocket = Ql(e)), 0;
2561
2580
  }
2562
- function Xl(e, t, n, r) {
2563
- return an("Websocket opened: " + e.priv.url), Ql(e), 0;
2581
+ function ri(e, t, n, r) {
2582
+ return dn("Websocket opened: " + e.priv.url), ei(e), 0;
2564
2583
  }
2565
- function Hl(e, t, n, r) {
2584
+ function li(e, t, n, r) {
2566
2585
  let l = e.priv, i = n.e, o = n.url;
2567
- return nn(), on(`${Qe(e)}: WebSocket closed ${o} (Code: ${i.code}, Reason: "${i.reason}", Clean: ${i.wasClean})`), l.websocket && (l.websocket.onopen = null, l.websocket.onmessage = null, l.websocket.onerror = null, l.websocket.onclose = null, l.websocket = null), l.inform_on_close ? (l.inform_on_close = !1, Jt(e, "EV_ON_CLOSE", {
2586
+ return un(), fn(`${Xe(e)}: WebSocket closed ${o} (Code: ${i.code}, Reason: "${i.reason}", Clean: ${i.wasClean})`), l.websocket && (l.websocket.onopen = null, l.websocket.onmessage = null, l.websocket.onerror = null, l.websocket.onclose = null, l.websocket = null), l.inform_on_close ? (l.inform_on_close = !1, zt(e, "EV_ON_CLOSE", {
2568
2587
  url: o,
2569
2588
  remote_yuno_name: l.remote_yuno_name,
2570
2589
  remote_yuno_role: l.remote_yuno_role,
2571
2590
  remote_yuno_service: l.remote_yuno_service
2572
- })) : (on(`${Qe(e)}: EV_ON_OPEN_ERROR cannot open ${o} (Code: ${i.code}, Reason: "${i.reason}", Clean: ${i.wasClean})`), Jt(e, "EV_ON_OPEN_ERROR", {
2591
+ })) : (fn(`${Xe(e)}: EV_ON_OPEN_ERROR cannot open ${o} (Code: ${i.code}, Reason: "${i.reason}", Clean: ${i.wasClean})`), zt(e, "EV_ON_OPEN_ERROR", {
2573
2592
  url: o,
2574
2593
  remote_yuno_name: l.remote_yuno_name,
2575
2594
  remote_yuno_role: l.remote_yuno_role,
@@ -2577,21 +2596,21 @@ function Hl(e, t, n, r) {
2577
2596
  code: i.code,
2578
2597
  reason: i.reason,
2579
2598
  was_clean: i.wasClean
2580
- })), Fe(e) && jl(l.gobj_timer, Et(e, "timeout_retry")), 0;
2599
+ })), We(e) && Pl(l.gobj_timer, yt(e, "timeout_retry")), 0;
2581
2600
  }
2582
- function Zl(e, t, n, r) {
2583
- return Ql(e), 0;
2601
+ function ii(e, t, n, r) {
2602
+ return ei(e), 0;
2584
2603
  }
2585
- function ei(e, t, n, r) {
2604
+ function oi(e, t, n, r) {
2586
2605
  let l = e.priv;
2587
- Il(l.gobj_timer);
2588
- let i = $r(e, n, Fl, !0), o = er(e, i, "src_yuno", ""), s = er(e, i, "src_role", ""), a = er(e, i, "src_service", "");
2589
- wt(e, "remote_yuno_name", o), wt(e, "remote_yuno_role", s), wt(e, "remote_yuno_service", a);
2590
- 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", {});
2606
+ Cl(l.gobj_timer);
2607
+ let i = Ur(e, n, Yl, !0), o = or(e, i, "src_yuno", ""), s = or(e, i, "src_role", ""), a = or(e, i, "src_service", "");
2608
+ jt(e, "remote_yuno_name", o), jt(e, "remote_yuno_role", s), jt(e, "remote_yuno_service", a);
2609
+ let u = lr(e, n, "result", -1, 0), _ = or(e, n, "comment", "", 0), c = or(e, n, "username", "", 0), f = ur(e, n, "services_roles", {});
2591
2610
  if (u < 0) {
2592
- Kl(e);
2611
+ ql(e);
2593
2612
  let t = {
2594
- url: ht(e, "url"),
2613
+ url: St(e, "url"),
2595
2614
  result: u,
2596
2615
  comment: _,
2597
2616
  username: c,
@@ -2599,9 +2618,9 @@ function ei(e, t, n, r) {
2599
2618
  remote_yuno_role: s,
2600
2619
  remote_yuno_service: a
2601
2620
  };
2602
- He(e) ? Lt(ze(e), "EV_ON_ID_NAK", t, e) : Jt(e, "EV_ON_ID_NAK", t);
2621
+ tt(e) ? Ct(Ze(e), "EV_ON_ID_NAK", t, e) : zt(e, "EV_ON_ID_NAK", t);
2603
2622
  } else {
2604
- if (Dt(e, "ST_SESSION"), l.inside_on_open = !0, !l.inform_on_close) {
2623
+ if ($t(e, "ST_SESSION"), l.inside_on_open = !0, !l.inform_on_close) {
2605
2624
  l.inform_on_close = !0;
2606
2625
  let t = {
2607
2626
  username: c,
@@ -2610,153 +2629,153 @@ function ei(e, t, n, r) {
2610
2629
  remote_yuno_service: a,
2611
2630
  services_roles: f
2612
2631
  };
2613
- He(e) ? Lt(ze(e), "EV_ON_OPEN", t, e) : Jt(e, "EV_ON_OPEN", t);
2632
+ tt(e) ? Ct(Ze(e), "EV_ON_OPEN", t, e) : zt(e, "EV_ON_OPEN", t);
2614
2633
  }
2615
2634
  l.inside_on_open = !1, function(e) {
2616
- let t = Yt(e, null, null, null);
2617
- for (let n = 0; n < t.length; n++) ql(e, t[n]);
2635
+ let t = Jt(e, null, null, null);
2636
+ for (let n = 0; n < t.length; n++) ti(e, t[n]);
2618
2637
  }(e);
2619
2638
  }
2620
2639
  return 0;
2621
2640
  }
2622
- function ti(e, t, n, r) {
2641
+ function si(e, t, n, r) {
2623
2642
  let l = e.priv.url, i = function(e, t) {
2624
2643
  let n;
2625
2644
  try {
2626
2645
  n = JSON.parse(t);
2627
2646
  } catch (e) {
2628
- return ln("parsing inter_event json: " + e), null;
2647
+ return cn("parsing inter_event json: " + e), null;
2629
2648
  }
2630
- if (!(n instanceof Object)) return ln("parsing inter_event: websocket data not a json object"), null;
2649
+ if (!(n instanceof Object)) return cn("parsing inter_event: websocket data not a json object"), null;
2631
2650
  let r = n.event;
2632
- if (!r) return ln("parsing inter_event: no event"), null;
2633
- if ("string" != typeof r) return ln("parsing inter_event: event not a string"), null;
2651
+ if (!r) return cn("parsing inter_event: no event"), null;
2652
+ if ("string" != typeof r) return cn("parsing inter_event: event not a string"), null;
2634
2653
  let l = n.kw;
2635
2654
  return l ? l instanceof Object ? {
2636
2655
  event: r,
2637
2656
  kw: l || {}
2638
- } : (ln("parsing inter_event: kw not a json object"), null) : (ln("parsing inter_kw: no kw"), null);
2657
+ } : (cn("parsing inter_event: kw not a json object"), null) : (cn("parsing inter_kw: no kw"), null);
2639
2658
  }(0, n.data);
2640
- if (mt(Me(), "trace_inter_event")) {
2641
- let e = Be(Me()) + " <== " + l, t = n.data.length, r = bt(Me(), "trace_ievent_callback");
2642
- r ? r(e, i, 2, t) : Yl(0, e, i);
2659
+ if (Tt(xe(), "trace_inter_event")) {
2660
+ let e = qe(xe()) + " <== " + l, t = n.data.length, r = Et(xe(), "trace_ievent_callback");
2661
+ r ? r(e, i, 2, t) : zl(0, e, i);
2643
2662
  }
2644
2663
  let o = i.event, s = i.kw;
2645
- if ("ST_SESSION" !== Rt(e)) {
2646
- if (It(e, o, C.EVF_PUBLIC_EVENT)) {
2647
- if (0 === Lt(e, o, s, e)) return 0;
2648
- } else ln(`${Qe(e)}: event UNKNOWN in not-session state ${o}`);
2649
- return Kl(e), -1;
2664
+ if ("ST_SESSION" !== It(e)) {
2665
+ if (Lt(e, o, C.EVF_PUBLIC_EVENT)) {
2666
+ if (0 === Ct(e, o, s, e)) return 0;
2667
+ } else cn(`${Xe(e)}: event UNKNOWN in not-session state ${o}`);
2668
+ return ql(e), -1;
2650
2669
  }
2651
2670
  i = null;
2652
- let a = kr(e, s), u = $r(e, s, Fl), _ = er(e, u, "dst_role", "");
2653
- if (_ !== Ye()) return ln(`"It's not my role, dst_role: ${_}, my_role: ${Ye()}`), 0;
2654
- let c = er(e, u, "dst_service", "");
2671
+ let a = Fr(e, s), u = Ur(e, s, Yl), _ = or(e, u, "dst_role", "");
2672
+ if (_ !== Je()) return cn(`"It's not my role, dst_role: ${_}, my_role: ${Je()}`), 0;
2673
+ let c = or(e, u, "dst_service", "");
2655
2674
  if ("__subscribing__" === a) return -1;
2656
2675
  if ("__unsubscribing__" === a) return -1;
2657
- if (It(e, o, C.EVF_PUBLIC_EVENT)) return Lt(e, o, s, e), 0;
2658
- let f = ue(c, !0);
2676
+ if (Lt(e, o, C.EVF_PUBLIC_EVENT)) return Ct(e, o, s, e), 0;
2677
+ let f = fe(c, !0);
2659
2678
  if (f) {
2660
- if (!It(f, o, C.EVF_PUBLIC_EVENT)) return ln(`${Qe(e)}: Service found but no event or not public, service '${Qe(f)}', ev '${o}'`), -1;
2661
- Lt(f, o, s, e);
2662
- } else He(e) ? Lt(ze(e), o, s, e) : Jt(e, o, s);
2679
+ if (!Lt(f, o, C.EVF_PUBLIC_EVENT)) return cn(`${Xe(e)}: Service found but no event or not public, service '${Xe(f)}', ev '${o}'`), -1;
2680
+ Ct(f, o, s, e);
2681
+ } else tt(e) ? Ct(Ze(e), o, s, e) : zt(e, o, s);
2663
2682
  return 0;
2664
2683
  }
2665
- function ni(e, t, n, r) {
2684
+ function ai(e, t, n, r) {
2666
2685
  return 0;
2667
2686
  }
2668
- function ri(e, t, n, r) {
2687
+ function ui(e, t, n, r) {
2669
2688
  return 0;
2670
2689
  }
2671
- var li = {
2690
+ var _i = {
2672
2691
  mt_create: function(e) {
2673
2692
  let t = e.priv;
2674
- 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);
2675
- const n = Tt(e, "subscriber");
2676
- n && Wt(e, null, {}, n);
2693
+ t.gobj_timer = De(qe(e), "C_TIMER", {}, e), t.url = St(e, "url"), t.remote_yuno_name = St(e, "remote_yuno_name"), t.remote_yuno_role = St(e, "remote_yuno_role"), t.remote_yuno_service = St(e, "remote_yuno_service"), jt(e, "wanted_yuno_name", t.remote_yuno_name), jt(e, "wanted_yuno_role", t.remote_yuno_role), jt(e, "wanted_yuno_service", t.remote_yuno_service);
2694
+ const n = Ot(e, "subscriber");
2695
+ n && Yt(e, null, {}, n);
2677
2696
  },
2678
2697
  mt_writing: function(e, t) {
2679
2698
  let n = e.priv;
2680
2699
  switch (t) {
2681
2700
  case "url":
2682
- n.url = ht(e, "url");
2701
+ n.url = St(e, "url");
2683
2702
  break;
2684
2703
  case "remote_yuno_name":
2685
- n.remote_yuno_name = ht(e, "remote_yuno_name");
2704
+ n.remote_yuno_name = St(e, "remote_yuno_name");
2686
2705
  break;
2687
2706
  case "remote_yuno_role":
2688
- n.remote_yuno_role = ht(e, "remote_yuno_role");
2707
+ n.remote_yuno_role = St(e, "remote_yuno_role");
2689
2708
  break;
2690
- case "remote_yuno_service": n.remote_yuno_service = ht(e, "remote_yuno_service");
2709
+ case "remote_yuno_service": n.remote_yuno_service = St(e, "remote_yuno_service");
2691
2710
  }
2692
2711
  },
2693
2712
  mt_start: function(e) {
2694
2713
  let t = e.priv;
2695
- return De(t.gobj_timer), t.websocket = Ml(e), 0;
2714
+ return $e(t.gobj_timer), t.websocket = Ql(e), 0;
2696
2715
  },
2697
2716
  mt_stop: function(e) {
2698
2717
  let t = e.priv;
2699
- return Il(t.gobj_timer), ke(t.gobj_timer), t.websocket && (t.websocket.onopen = null, t.websocket.onmessage = null, t.websocket.onerror = null, t.websocket.onclose = null, Kl(e)), 0;
2718
+ return Cl(t.gobj_timer), Pe(t.gobj_timer), t.websocket && ql(e), 0;
2700
2719
  },
2701
2720
  mt_destroy: function(e) {},
2702
2721
  mt_stats: function(e, t, n, r) {
2703
- if ("ST_SESSION" !== Rt(e)) return ln("Not in session"), null;
2722
+ if ("ST_SESSION" !== It(e)) return cn("Not in session"), null;
2704
2723
  n || (n = {});
2705
- let l = Jl(e, Be(r), er(e, n, "service", null, 0)), i = rr(e, n, "__md_stats__", null, zt.KW_EXTRACT);
2706
- return i || (i = {}), jr(e, n, "stats_stack", {
2724
+ let l = Zl(e, qe(r), or(e, n, "service", null, 0)), i = ur(e, n, "__md_stats__", null, Zt.KW_EXTRACT);
2725
+ return i || (i = {}), Pr(e, n, "stats_stack", {
2707
2726
  stats: t,
2708
2727
  kw: i
2709
- }), jr(e, n, Fl, l), n.__stats__ = t, Ir(e, n, "__stats__"), Bl(e, "EV_MT_STATS", n, r), null;
2728
+ }), Pr(e, n, Yl, l), n.__stats__ = t, Cr(e, n, "__stats__"), Hl(e, "EV_MT_STATS", n, r), null;
2710
2729
  },
2711
2730
  mt_command_parser: function(e, t, n, r) {
2712
- if ("ST_SESSION" !== Rt(e)) return ln("Not in session"), null;
2731
+ if ("ST_SESSION" !== It(e)) return cn("Not in session"), null;
2713
2732
  n || (n = {});
2714
- let l = Jl(e, Be(r), er(e, n, "service", "", 0)), i = rr(e, n, "__md_command__", null, zt.KW_EXTRACT);
2715
- return i || (i = {}), jr(e, n, "command_stack", {
2733
+ let l = Zl(e, qe(r), or(e, n, "service", "", 0)), i = ur(e, n, "__md_command__", null, Zt.KW_EXTRACT);
2734
+ return i || (i = {}), Pr(e, n, "command_stack", {
2716
2735
  command: t,
2717
2736
  kw: i
2718
- }), jr(e, n, Fl, l), n.__command__ = t, Ir(e, n, "__command__"), Bl(e, "EV_MT_COMMAND", n, r), null;
2737
+ }), Pr(e, n, Yl, l), n.__command__ = t, Cr(e, n, "__command__"), Hl(e, "EV_MT_COMMAND", n, r), null;
2719
2738
  },
2720
2739
  mt_inject_event: function(e, t, n, r) {
2721
- if ("ST_SESSION" !== Rt(e)) return window.console.error("Not in session"), -1;
2722
- if (n || (n = {}), $r(e, n, Fl));
2740
+ if ("ST_SESSION" !== It(e)) return window.console.error("Not in session"), -1;
2741
+ if (n || (n = {}), Ur(e, n, Yl));
2723
2742
  else {
2724
- let l = Jl(e, Be(r), er(e, n, "__service__", 0, 0));
2725
- En(n, "__service__"), jr(e, n, "__message__", t), jr(e, n, Fl, l);
2743
+ let l = Zl(e, qe(r), or(e, n, "__service__", 0, 0));
2744
+ vn(n, "__service__"), Pr(e, n, "__message__", t), Pr(e, n, Yl, l);
2726
2745
  }
2727
- return Ir(e, n, "__message__"), Bl(e, t, n, r);
2746
+ return Cr(e, n, "__message__"), Hl(e, t, n, r);
2728
2747
  },
2729
2748
  mt_subscription_added: function(e, t) {
2730
2749
  let n = e.priv;
2731
- return "ST_SESSION" !== Rt(e) || n.inside_on_open ? 0 : ql(e, t);
2750
+ return "ST_SESSION" !== It(e) || n.inside_on_open ? 0 : ti(e, t);
2732
2751
  },
2733
2752
  mt_subscription_deleted: function(e, t) {
2734
2753
  let n = e.priv;
2735
- if ("ST_SESSION" !== Rt(e)) return 0;
2754
+ if ("ST_SESSION" !== It(e)) return 0;
2736
2755
  if (n.inside_on_open) return 0;
2737
- if (Fn(t.event)) return 0;
2756
+ if (Yn(t.event)) return 0;
2738
2757
  let r = {}, l = t.__global__, i = t.__config__, o = t.__filter__, s = t.__service__, a = t.subscriber;
2739
- return i && (r.__config__ = i), l && (r.__global__ = l), o && (r.__filter__ = o), jr(e, r, Fl, Jl(e, Be(a), s)), Ir(e, r, "__unsubscribing__"), Bl(e, t.event, r, e);
2758
+ return i && (r.__config__ = i), l && (r.__global__ = l), o && (r.__filter__ = o), Pr(e, r, Yl, Zl(e, qe(a), s)), Cr(e, r, "__unsubscribing__"), Hl(e, t.event, r, e);
2740
2759
  }
2741
2760
  };
2742
- function ii() {
2761
+ function ci() {
2743
2762
  return function(e) {
2744
- if (Wl) return ln(`GClass ALREADY created: ${e}`), -1;
2763
+ if (Jl) return cn(`GClass ALREADY created: ${e}`), -1;
2745
2764
  const t = [
2746
2765
  ["ST_DISCONNECTED", [
2747
2766
  [
2748
2767
  "EV_ON_OPEN",
2749
- Xl,
2768
+ ri,
2750
2769
  "ST_WAIT_IDENTITY_CARD_ACK"
2751
2770
  ],
2752
2771
  [
2753
2772
  "EV_ON_CLOSE",
2754
- Hl,
2773
+ li,
2755
2774
  null
2756
2775
  ],
2757
2776
  [
2758
2777
  "EV_TIMEOUT",
2759
- zl,
2778
+ ni,
2760
2779
  null
2761
2780
  ],
2762
2781
  [
@@ -2768,22 +2787,22 @@ function ii() {
2768
2787
  ["ST_WAIT_IDENTITY_CARD_ACK", [
2769
2788
  [
2770
2789
  "EV_ON_MESSAGE",
2771
- ti,
2790
+ si,
2772
2791
  null
2773
2792
  ],
2774
2793
  [
2775
2794
  "EV_IDENTITY_CARD_ACK",
2776
- ei,
2795
+ oi,
2777
2796
  null
2778
2797
  ],
2779
2798
  [
2780
2799
  "EV_ON_CLOSE",
2781
- Hl,
2800
+ li,
2782
2801
  "ST_DISCONNECTED"
2783
2802
  ],
2784
2803
  [
2785
2804
  "EV_TIMEOUT",
2786
- Zl,
2805
+ ii,
2787
2806
  null
2788
2807
  ],
2789
2808
  [
@@ -2795,22 +2814,22 @@ function ii() {
2795
2814
  ["ST_SESSION", [
2796
2815
  [
2797
2816
  "EV_ON_MESSAGE",
2798
- ti,
2817
+ si,
2799
2818
  null
2800
2819
  ],
2801
2820
  [
2802
2821
  "EV_MT_STATS",
2803
- ni,
2822
+ ai,
2804
2823
  null
2805
2824
  ],
2806
2825
  [
2807
2826
  "EV_MT_COMMAND",
2808
- ri,
2827
+ ui,
2809
2828
  null
2810
2829
  ],
2811
2830
  [
2812
2831
  "EV_ON_CLOSE",
2813
- Hl,
2832
+ li,
2814
2833
  "ST_DISCONNECTED"
2815
2834
  ],
2816
2835
  [
@@ -2821,7 +2840,7 @@ function ii() {
2821
2840
  ]],
2822
2841
  [null, null]
2823
2842
  ];
2824
- return (Wl = z(e, [
2843
+ return (Jl = Z(e, [
2825
2844
  ["EV_ON_MESSAGE", C.EVF_OUTPUT_EVENT],
2826
2845
  ["EV_IDENTITY_CARD_ACK", C.EVF_PUBLIC_EVENT],
2827
2846
  ["EV_ON_ID_NAK", C.EVF_PUBLIC_EVENT | C.EVF_OUTPUT_EVENT],
@@ -2832,9 +2851,9 @@ function ii() {
2832
2851
  ["EV_ON_OPEN_ERROR", C.EVF_OUTPUT_EVENT | C.EVF_NO_WARN_SUBS],
2833
2852
  ["EV_TIMEOUT", 0],
2834
2853
  [null, 0]
2835
- ], t, li, 0, Gl, Vl, 0, 0, 0, L.gcflag_no_check_output_events)) ? 0 : -1;
2854
+ ], t, _i, 0, xl, Bl, 0, 0, 0, L.gcflag_no_check_output_events)) ? 0 : -1;
2836
2855
  }("C_IEVENT_CLI");
2837
2856
  }
2838
- export { A as GObj, N as SDATA, j as SDATAAUTHZ, w as SDATACM, D as SDATACM2, I as SDATADF, R 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, Fn 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, jt 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, Rt 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, Fe 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, je 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, jn 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, Rn as is_object, Bn as is_private_key, Ln as is_pure_number, $n as is_string, Fr as jdb_delete, Vr as jdb_get, Wr as jdb_get_by_idx, Gr 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, jr as msg_iev_push_stack, Dr as msg_iev_read_key, Ir as msg_iev_set_msg_type, Rr as msg_iev_write_key, rl as node_uuid, Gn as parseBoolean, Xr as parseSVG, Hr as refresh_language, ii as register_c_ievent_cli, Rl 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, jl 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 };
2857
+ export { k as GObj, N as SDATA, j as SDATAAUTHZ, w as SDATACM, D as SDATACM2, I as SDATADF, R as SDATAPM, $ as SDATAPM0, v as SDATA_END, O as SDataDesc, a as YUNETA_VERSION, E as __yuno__, i as build_command_response, gl as build_path, s as build_stats_response, _l as clean_name, Cl as clear_timeout, qn as cmp_two_simple_json, l as command_parser, tl as createElement2, el as createOneHtml, qr as create_json_record, Rl as create_template_record, ol as current_timestamp, y as data_type_t, El as db_list_persistent_attrs, bl as db_load_persistent_attrs, ml as db_remove_persistent_attrs, pl as db_save_persistent_attrs, fl as debounce, Ar as delete_from_list, En as duplicate_objects, Yn as empty_string, Hr as escapeHtml, C as event_flag_t, le as gclass_add_ev_action, oe as gclass_add_event_type, re as gclass_add_state, ae as gclass_check_fsm, Z as gclass_create, se as gclass_event_type, ue as gclass_find_by_name, L as gclass_flag_t, ee as gclass_unregister, nl as getPositionRelativeToBody, cl as get_function_name, sl as get_now, rt as gobj_bottom_gobj, At as gobj_change_parent, $t as gobj_change_state, Xt as gobj_command, Re as gobj_create, Se as gobj_create2, Ne as gobj_create_default_service, De as gobj_create_pure_child, ve as gobj_create_service, we as gobj_create_volatil, Oe as gobj_create_yuno, It as gobj_current_state, ce as gobj_default_service, je as gobj_destroy, gt as gobj_find_child, ct as gobj_find_gobj, fe as gobj_find_service, qt as gobj_find_subscribings, Jt as gobj_find_subscriptions, P as gobj_flag_t, He as gobj_full_name, ze as gobj_gclass_name, mt as gobj_has_attr, Lt as gobj_has_event, Pt as gobj_has_output_event, z as gobj_hsdata, nt as gobj_is_destroying, Ye as gobj_is_playing, tt as gobj_is_pure_child, We as gobj_is_running, Ke as gobj_is_service, et as gobj_is_volatil, he as gobj_list_persistent_attrs, Qt as gobj_list_subscriptions, pe as gobj_load_persistent_attrs, dt as gobj_match_children, bt as gobj_match_children_tree, ft as gobj_match_gobj, qe as gobj_name, Ze as gobj_parent, Ve as gobj_pause, Ge as gobj_play, Ut as gobj_post_event, zt as gobj_publish_event, Et as gobj_read_attr, ht as gobj_read_attrs, Tt as gobj_read_bool_attr, yt as gobj_read_integer_attr, Ot as gobj_read_pointer_attr, St as gobj_read_str_attr, Ee as gobj_remove_persistent_attrs, Nt as gobj_reset_volatil_attrs, me as gobj_save_persistent_attrs, pt as gobj_search_path, Ct as gobj_send_event, _e as gobj_services, lt as gobj_set_bottom_gobj, K as gobj_set_trace_machine_format, Xe as gobj_short_name, $e as gobj_start, Ae as gobj_start_children, Le as gobj_start_tree, B as gobj_start_up, Ht as gobj_stats, Pe as gobj_stop, Ce as gobj_stop_children, Fe as gobj_stop_tree, Yt as gobj_subscribe_event, Y as gobj_trace_machine_format, xt as gobj_unsubscribe_event, Bt as gobj_unsubscribe_list, ot as gobj_walk_gobj_children, st as gobj_walk_gobj_children_tree, vt as gobj_write_attr, wt as gobj_write_attrs, Dt as gobj_write_bool_attr, Rt as gobj_write_integer_attr, jt as gobj_write_str_attr, xe as gobj_yuno, Qe as gobj_yuno_id, Be as gobj_yuno_name, Je as gobj_yuno_role, jr as id_index_in_obj_list, al as index_in_list, Pn as is_array, Fn as is_boolean, Wn as is_date, Mn as is_function, Kn as is_gobj, Xn as is_metadata_key, Gn as is_null, Cn as is_number, Ln as is_object, Hn as is_private_key, Vn as is_pure_number, Un as is_string, Yr as jdb_delete, Br as jdb_get, Jr as jdb_get_by_idx, xr as jdb_get_topic, Mr as jdb_init, Kr as jdb_update, Dn as json_array_append, Rn as json_array_append_new, $n as json_array_extend, jn as json_array_remove, An as json_array_size, mn as json_deep_copy, hn as json_is_identical, vn as json_object_del, On as json_object_get, Nn as json_object_set, wn as json_object_set_new, In as json_object_size, Tn as json_object_update, yn as json_object_update_existing, Sn as json_object_update_missing, kn as json_size, Xr as jwt2json, zr as jwtDecode, Er as kw_clone_by_keys, hr as kw_clone_by_not_keys, mr as kw_collect, nr as kw_delete, br as kw_find_json_in_list, tr as kw_find_path, Zt as kw_flag_t, rr as kw_get_bool, ar as kw_get_dict, ur as kw_get_dict_value, lr as kw_get_int, _r as kw_get_list, Tr as kw_get_local_storage_value, sr as kw_get_pointer, ir as kw_get_real, or as kw_get_str, er as kw_has_key, dr as kw_match_simple, Zn as kw_pop, Sr as kw_remove_local_storage_value, pr as kw_select, cr as kw_set_dict_value, yr as kw_set_local_storage_value, fr as kw_set_subdict_value, vr as kwid_collect, wr as kwid_find_one_record, Dr as kwid_get_ids, Or as kwid_match_id, Nr as kwid_new_dict, Rr as list2options, Gr as load_json_file, dn as log_debug, cn as log_error, gn as log_info, fn as log_warning, Fr as msg_iev_get_msg_type, Ur as msg_iev_get_stack, Pr as msg_iev_push_stack, kr as msg_iev_read_key, Cr as msg_iev_set_msg_type, Lr as msg_iev_write_key, ul as node_uuid, xn as parseBoolean, rl as parseSVG, ll as refresh_language, ci as register_c_ievent_cli, Ll as register_c_timer, Kl as register_c_yuno, Zr as safeSrc, S as sdata_flag_t, Vr as send_http_json_post, sn as set_log_callback, un as set_remote_log_functions, Pl as set_timeout, Ul as set_timeout_periodic, t as sprintf, o as stats_parser, $r as str_in_list, Qn as strcasecmp, Jn as strcmp, Bn as strncmp, Ir as strs_in_list, zn as strstr, Dl as template_get_field_desc, il as timeTracker, pn as trace_json, bn as trace_msg, Tl as treedb_decoder_fkey, Sl as treedb_decoder_hook, yl as treedb_encoder_fkey, wl as treedb_get_field_desc, hl as treedb_hook_data_size, n as vsprintf };
2839
2858
 
2840
2859
  //# sourceMappingURL=gobj-js.es.min.js.map