@yuneta/gobj-js 7.6.7 → 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.
- package/dist/gobj-js.cjs.js +32 -4
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +955 -939
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +30 -5
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +1014 -995
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +32 -4
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +1107 -1091
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +32 -4
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +955 -939
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -179,7 +179,7 @@ var O = class {
|
|
|
179
179
|
}
|
|
180
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 =
|
|
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
|
-
|
|
227
|
-
|
|
226
|
+
var M = 0;
|
|
227
|
+
function K(e) {
|
|
228
|
+
M = 1 === Number(e) ? 1 : 0;
|
|
228
229
|
}
|
|
229
|
-
function
|
|
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
|
-
|
|
241
|
+
ie(b, t, n);
|
|
235
242
|
}
|
|
236
243
|
return 0;
|
|
237
244
|
}
|
|
238
|
-
function
|
|
245
|
+
function J(e, t) {
|
|
239
246
|
let n = {};
|
|
240
|
-
if (!
|
|
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 &&
|
|
250
|
+
l.name && Q(e, n, l);
|
|
244
251
|
}
|
|
245
252
|
return n;
|
|
246
253
|
}
|
|
247
|
-
function
|
|
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 =
|
|
261
|
+
r = xn(l);
|
|
255
262
|
break;
|
|
256
263
|
case y.DTP_INTEGER:
|
|
257
|
-
r = parseInt(l), isNaN(r) &&
|
|
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) &&
|
|
267
|
+
r = Number(l), isNaN(r) && cn(`${Xe(e)}: attr NaN: ${n.name}`);
|
|
261
268
|
break;
|
|
262
269
|
case y.DTP_LIST:
|
|
263
|
-
if (
|
|
270
|
+
if (Un(l)) try {
|
|
264
271
|
r = JSON.parse(l);
|
|
265
272
|
} catch (e) {
|
|
266
|
-
|
|
273
|
+
cn(`JSON parse error: ${e.message}`);
|
|
267
274
|
}
|
|
268
275
|
else r = l;
|
|
269
|
-
|
|
276
|
+
Pn(r) || (r = []);
|
|
270
277
|
break;
|
|
271
278
|
case y.DTP_DICT:
|
|
272
|
-
if (
|
|
279
|
+
if (Un(l)) try {
|
|
273
280
|
r = JSON.parse(l);
|
|
274
281
|
} catch (e) {
|
|
275
|
-
|
|
282
|
+
cn(`JSON parse error: ${e.message}`);
|
|
276
283
|
}
|
|
277
284
|
else r = l;
|
|
278
|
-
|
|
285
|
+
Ln(r) || (r = {});
|
|
279
286
|
break;
|
|
280
287
|
case y.DTP_JSON:
|
|
281
|
-
if (
|
|
288
|
+
if (Un(l)) try {
|
|
282
289
|
r = JSON.parse(l);
|
|
283
290
|
} catch (e) {
|
|
284
|
-
|
|
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 && (
|
|
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
|
|
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 (
|
|
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 =
|
|
311
|
+
l = xn(r);
|
|
305
312
|
break;
|
|
306
313
|
case y.DTP_INTEGER:
|
|
307
|
-
l = parseInt(r), isNaN(l) &&
|
|
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) &&
|
|
317
|
+
l = Number(r), isNaN(l) && cn(`${Xe(e)}: attr NaN: ${n.name}`);
|
|
311
318
|
break;
|
|
312
319
|
case y.DTP_LIST:
|
|
313
|
-
if (
|
|
320
|
+
if (Un(r)) try {
|
|
314
321
|
l = JSON.parse(r);
|
|
315
322
|
} catch (e) {
|
|
316
|
-
|
|
323
|
+
cn(`JSON parse error: ${e.message}`);
|
|
317
324
|
}
|
|
318
325
|
else l = r;
|
|
319
|
-
if (!
|
|
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 (
|
|
329
|
+
if (Un(r)) try {
|
|
323
330
|
l = JSON.parse(r);
|
|
324
331
|
} catch (e) {
|
|
325
|
-
|
|
332
|
+
cn(`JSON parse error: ${e.message}`);
|
|
326
333
|
}
|
|
327
334
|
else l = r;
|
|
328
|
-
if (!
|
|
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 (
|
|
338
|
+
if (Un(r)) try {
|
|
332
339
|
l = JSON.parse(r);
|
|
333
340
|
} catch (e) {
|
|
334
|
-
|
|
341
|
+
cn(`JSON parse error: ${e.message}`);
|
|
335
342
|
}
|
|
336
343
|
else l = r;
|
|
337
|
-
if (!
|
|
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 &&
|
|
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
|
|
350
|
+
function z(e) {
|
|
344
351
|
return e.jn_attrs;
|
|
345
352
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
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
|
|
350
|
-
if (!(e && e instanceof A)) return n &&
|
|
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 &&
|
|
363
|
+
return n && cn(`${e.gclass_name}: GClass Attribute NOT FOUND: ${t}`), null;
|
|
357
364
|
}
|
|
358
|
-
function
|
|
359
|
-
if (
|
|
360
|
-
if (e.includes("`") || e.includes("^") || e.includes(".")) return
|
|
361
|
-
if (
|
|
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;
|
|
362
369
|
let c = new A(e, r, l, i, o, s, a, u, _);
|
|
363
370
|
(function(e, t) {
|
|
364
|
-
e && e instanceof A ? t ? p[t] ?
|
|
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 (
|
|
370
|
-
if (
|
|
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
|
-
|
|
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 (!
|
|
380
|
-
if (
|
|
381
|
-
|
|
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 (
|
|
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
|
|
397
|
+
function ee(e) {
|
|
391
398
|
let t;
|
|
392
|
-
if (
|
|
399
|
+
if (Un(e)) t = e;
|
|
393
400
|
else {
|
|
394
|
-
if (!(e instanceof A)) return
|
|
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 ? (
|
|
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
|
|
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
|
|
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
|
|
417
|
-
return e instanceof A ?
|
|
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
|
|
420
|
-
if (!(e instanceof A)) return
|
|
421
|
-
if (
|
|
422
|
-
let i =
|
|
423
|
-
return i ?
|
|
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
|
|
426
|
-
|
|
432
|
+
function ie(e, t, n) {
|
|
433
|
+
Yn(t) || e.push(new W(t, n));
|
|
427
434
|
}
|
|
428
|
-
function
|
|
429
|
-
return e instanceof A ?
|
|
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
|
|
432
|
-
if (!(e instanceof A)) return
|
|
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
|
|
441
|
-
if (!(e instanceof A)) return
|
|
447
|
+
function ae(e) {
|
|
448
|
+
if (!(e instanceof A)) return cn("Cannot add state, typeof not GClass"), -1;
|
|
442
449
|
let t = 0;
|
|
443
|
-
|
|
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 (!
|
|
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
|
-
|
|
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 (!
|
|
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
|
-
|
|
464
|
+
Yn(l.state_name) || ne(l, r.event_name) && (n = !0);
|
|
458
465
|
}
|
|
459
|
-
n || (
|
|
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
|
|
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 &&
|
|
476
|
+
return n || t && cn(`gclass not found: ${e}`), n;
|
|
470
477
|
}
|
|
471
|
-
function
|
|
478
|
+
function _e() {
|
|
472
479
|
let e = [];
|
|
473
|
-
for (const t of Object.keys(m))
|
|
480
|
+
for (const t of Object.keys(m)) Rn(e, t);
|
|
474
481
|
return e;
|
|
475
482
|
}
|
|
476
|
-
function
|
|
483
|
+
function ce() {
|
|
477
484
|
return !h || h.obflag & U.obflag_destroyed ? null : h;
|
|
478
485
|
}
|
|
479
|
-
function
|
|
486
|
+
function fe(e, t) {
|
|
480
487
|
e = e.toLowerCase();
|
|
481
488
|
let n = m[e];
|
|
482
|
-
return !n && t ? (
|
|
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
|
|
496
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
517
|
+
function ye(e, t, n) {
|
|
511
518
|
let r = t;
|
|
512
519
|
(function(e, t, n, r, l) {
|
|
513
|
-
if (!e || !t) return
|
|
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 =
|
|
517
|
-
t ? (-1 === n || t.flag & n) && (t.flag & S.SDF_DEPRECATED &&
|
|
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
|
-
})(
|
|
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
|
|
529
|
+
function Se(e, n, r, l, i) {
|
|
523
530
|
if (i & P.gobj_flag_yuno) {
|
|
524
|
-
if (E) return
|
|
531
|
+
if (E) return cn("__yuno__ already created"), null;
|
|
525
532
|
i |= P.gobj_flag_service;
|
|
526
533
|
} else {
|
|
527
|
-
if (!l) return
|
|
528
|
-
if (!("string" == typeof l || l instanceof k)) return
|
|
529
|
-
if (
|
|
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 &&
|
|
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
|
|
540
|
+
if (h) return cn(`default service ALREADY registered: ${n}^${e}`), null;
|
|
534
541
|
i |= P.gobj_flag_service;
|
|
535
542
|
}
|
|
536
|
-
if (
|
|
537
|
-
let o =
|
|
538
|
-
if (!o) return
|
|
539
|
-
if (
|
|
540
|
-
if (!
|
|
541
|
-
if (e.includes("`")) return
|
|
542
|
-
if (e.includes("^")) return
|
|
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
551
|
let s = new k(e, o, r, l, i);
|
|
545
|
-
s.jn_attrs =
|
|
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 &&
|
|
548
|
-
return a &&
|
|
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
|
|
551
|
-
return
|
|
557
|
+
function Oe(e, t, n) {
|
|
558
|
+
return Se(e, t, n, null, P.gobj_flag_yuno);
|
|
552
559
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
560
|
+
function ve(e, t, n, r) {
|
|
561
|
+
return Se(e, t, n, r, P.gobj_flag_service);
|
|
555
562
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
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
|
|
560
|
-
return
|
|
566
|
+
function we(e, t, n, r) {
|
|
567
|
+
return Se(e, t, n, r, P.gobj_flag_volatil);
|
|
561
568
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
569
|
+
function De(e, t, n, r) {
|
|
570
|
+
return Se(e, t, n, r, P.gobj_flag_pure_child);
|
|
564
571
|
}
|
|
565
|
-
function
|
|
566
|
-
return
|
|
567
|
-
}
|
|
568
|
-
function
|
|
569
|
-
if (
|
|
570
|
-
e.__refs__ > 0 &&
|
|
571
|
-
let n = E &&
|
|
572
|
-
n &&
|
|
573
|
-
let r =
|
|
574
|
-
r && r.gclass.gmt.mt_child_removed && (n &&
|
|
575
|
-
let t =
|
|
576
|
-
t = t.toLowerCase(), m[t] ? delete m[t] :
|
|
577
|
-
}(e), e.playing && (
|
|
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
|
-
|
|
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 &&
|
|
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
|
|
586
|
-
if (
|
|
587
|
-
if (e.running) return
|
|
588
|
-
if (e.disabled) return
|
|
589
|
-
E &&
|
|
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
|
|
594
|
-
return e.gclass.gclass_flag & L.gcflag_manual_start ||
|
|
595
|
-
}
|
|
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)));
|
|
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;
|
|
604
602
|
}
|
|
605
603
|
function Ae(e) {
|
|
606
|
-
|
|
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;
|
|
604
|
+
return nt(e) ? (cn("gobj NULL or DESTROYED"), -1) : ot(e, F.WALK_FIRST2LAST, Ie, 0, 0);
|
|
611
605
|
}
|
|
612
606
|
function ke(e, t, n) {
|
|
613
|
-
return
|
|
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
|
|
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
|
-
|
|
620
|
-
}
|
|
621
|
-
|
|
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.
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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 !
|
|
644
|
+
return !nt(e) && e.running;
|
|
647
645
|
}
|
|
648
|
-
function Me() {
|
|
649
|
-
return
|
|
646
|
+
function Me(e) {
|
|
647
|
+
return !!nt(e) || e.disabled;
|
|
650
648
|
}
|
|
651
|
-
function Ke() {
|
|
652
|
-
|
|
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
|
-
|
|
657
|
-
return e ? ht(e, "yuno_role") : "";
|
|
652
|
+
function Ye(e) {
|
|
653
|
+
return !nt(e) && e.playing;
|
|
658
654
|
}
|
|
659
655
|
function xe() {
|
|
660
|
-
|
|
661
|
-
return e ? ht(e, "yuno_id") : "";
|
|
656
|
+
return !E || E.obflag & U.obflag_destroyed ? null : E;
|
|
662
657
|
}
|
|
663
|
-
function Be(
|
|
664
|
-
|
|
658
|
+
function Be() {
|
|
659
|
+
let e = xe();
|
|
660
|
+
return e ? qe(e) : "";
|
|
665
661
|
}
|
|
666
|
-
function Je(
|
|
667
|
-
|
|
662
|
+
function Je() {
|
|
663
|
+
let e = xe();
|
|
664
|
+
return e ? St(e, "yuno_role") : "";
|
|
668
665
|
}
|
|
669
|
-
function Qe(
|
|
670
|
-
|
|
666
|
+
function Qe() {
|
|
667
|
+
let e = xe();
|
|
668
|
+
return e ? St(e, "yuno_id") : "";
|
|
671
669
|
}
|
|
672
670
|
function qe(e) {
|
|
673
|
-
|
|
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
|
|
674
|
+
return Kn(e) ? e.gclass.gclass_name : (cn("gobj NULL of bad type"), null);
|
|
680
675
|
}
|
|
681
676
|
function Xe(e) {
|
|
682
|
-
return
|
|
677
|
+
return Kn(e) ? e.gclass.gclass_name + "^" + qe(e) : (cn("gobj bad type"), null);
|
|
683
678
|
}
|
|
684
679
|
function He(e) {
|
|
685
|
-
|
|
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
|
|
686
|
+
return Kn(e) ? e.parent : (cn("gobj NULL of bad type"), null);
|
|
689
687
|
}
|
|
690
688
|
function et(e) {
|
|
691
|
-
return
|
|
689
|
+
return Kn(e) ? !!(e.gobj_flag & P.gobj_flag_volatil) : (cn("gobj NULL of bad type"), null);
|
|
690
|
+
}
|
|
691
|
+
function tt(e) {
|
|
692
|
+
return Kn(e) ? !!(e.gobj_flag & P.gobj_flag_pure_child) : (cn("gobj NULL of bad type"), null);
|
|
692
693
|
}
|
|
693
|
-
function
|
|
694
|
-
|
|
695
|
-
e.bottom_gobj && on(`${Qe(e)}: bottom_gobj already set`), e.bottom_gobj = t;
|
|
694
|
+
function nt(e) {
|
|
695
|
+
return !Kn(e) || !!(e.obflag & (U.obflag_destroyed | U.obflag_destroying));
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
697
|
+
function rt(e) {
|
|
698
|
+
return Kn(e) ? e.bottom_gobj : (cn("gobj NULL of bad type"), null);
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
|
|
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;
|
|
702
703
|
}
|
|
703
|
-
function
|
|
704
|
-
return
|
|
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);
|
|
705
706
|
}
|
|
706
|
-
function
|
|
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
|
|
721
|
-
let i, o =
|
|
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 =
|
|
725
|
-
} else for (let s = 0; s < e.length; s++) if (i = e[s], 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
|
|
729
|
-
if (t & F.WALK_BYLEVEL) return
|
|
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 =
|
|
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 =
|
|
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
|
|
742
|
-
if (
|
|
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 :
|
|
751
|
+
return "__default_service__" === n ? h : "__yuno__" === n || "__root__" === n ? E : pt(E, t);
|
|
745
752
|
}
|
|
746
|
-
function
|
|
747
|
-
if (!
|
|
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 !==
|
|
752
|
-
if (r && r !==
|
|
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 !==
|
|
762
|
+
if (l !== qe(e).substring(0, t)) return !1;
|
|
756
763
|
}
|
|
757
|
-
if (i && i !==
|
|
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 &&
|
|
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
|
|
763
|
-
if (
|
|
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 (
|
|
774
|
+
if (ft(r, t)) return r;
|
|
768
775
|
}
|
|
769
776
|
return null;
|
|
770
777
|
}
|
|
771
|
-
function
|
|
772
|
-
if (
|
|
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
|
-
|
|
785
|
+
ft(l, t) && n.push(l);
|
|
779
786
|
}
|
|
780
787
|
return n;
|
|
781
788
|
}
|
|
782
|
-
function
|
|
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
|
-
|
|
796
|
+
ft(i, t) && n.push(i), e(n, i);
|
|
790
797
|
}
|
|
791
798
|
}(n, e), n;
|
|
792
799
|
}
|
|
793
|
-
function
|
|
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 !==
|
|
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 ===
|
|
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 =
|
|
810
|
-
return i ? (n.splice(0, 1), n = n.join("`"),
|
|
816
|
+
let i = gt(e, l);
|
|
817
|
+
return i ? (n.splice(0, 1), n = n.join("`"), pt(i, n)) : null;
|
|
811
818
|
}
|
|
812
|
-
function
|
|
813
|
-
return !
|
|
819
|
+
function mt(e, t) {
|
|
820
|
+
return !Yn(t) && !!H(e.gclass, t, !1);
|
|
814
821
|
}
|
|
815
|
-
function
|
|
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
|
|
828
|
+
return cn(`${Xe(e)}: GClass Attribute NOT FOUND, attr ${t}`), null;
|
|
822
829
|
}
|
|
823
|
-
function
|
|
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 =
|
|
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
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
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,
|
|
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 =
|
|
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,
|
|
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
|
|
884
|
+
return cn(t("gobj_write_attr(%s): attr not found '%s'", Xe(e), i)), -1;
|
|
878
885
|
}
|
|
879
|
-
function
|
|
886
|
+
function Nt(e) {
|
|
880
887
|
return function(e, t, n) {
|
|
881
|
-
if (
|
|
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 =
|
|
887
|
-
|
|
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
|
|
894
|
-
let l =
|
|
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 =
|
|
897
|
-
t && (-1 === n || t.flag & n) && (i +=
|
|
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
|
|
902
|
-
let r =
|
|
903
|
-
return r ? (r[t] =
|
|
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
|
|
906
|
-
let r =
|
|
907
|
-
return r ? (r[t] = parseInt(n),
|
|
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
|
|
910
|
-
let r =
|
|
911
|
-
return r ? (r[t] = String(n),
|
|
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
|
|
914
|
-
if (
|
|
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 =
|
|
917
|
-
return n ? (e.last_state = e.current_state, e.current_state = n, !0) : (
|
|
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
|
|
920
|
-
return
|
|
926
|
+
function It(e) {
|
|
927
|
+
return Kn(e) ? e.current_state.state_name : (cn("hgobj NULL"), "");
|
|
921
928
|
}
|
|
922
|
-
function
|
|
923
|
-
return
|
|
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
|
|
926
|
-
if (!
|
|
927
|
-
let r =
|
|
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
|
|
939
|
-
let r =
|
|
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
|
|
943
|
-
let r =
|
|
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
|
|
953
|
+
function Ut(e, t, n, r) {
|
|
947
954
|
setTimeout(() => {
|
|
948
|
-
|
|
955
|
+
nt(e) || Ct(e, t, n, r);
|
|
949
956
|
}, 10);
|
|
950
957
|
}
|
|
951
|
-
function
|
|
952
|
-
if (!(e && e instanceof k)) return
|
|
953
|
-
if (e.obflag & (U.obflag_destroyed | U.obflag_destroying)) return
|
|
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
|
|
962
|
+
if (!i) return cn(`${Xe(e)}: current_state NULL`), -1;
|
|
956
963
|
let o = 0;
|
|
957
|
-
o = E &&
|
|
958
|
-
let s =
|
|
959
|
-
if (!s) return e.gclass.gmt.mt_inject_event ? (T--, o && (
|
|
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
|
-
|
|
962
|
-
|
|
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 &&
|
|
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 ||
|
|
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
|
|
982
|
+
var Ft = Object.freeze({
|
|
972
983
|
__hard_subscription__: 1,
|
|
973
984
|
__own_event__: 2
|
|
974
|
-
}),
|
|
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
|
|
988
|
-
let i =
|
|
989
|
-
if (t && t !==
|
|
990
|
-
let t =
|
|
991
|
-
|
|
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 (
|
|
994
|
-
let t =
|
|
995
|
-
|
|
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 (
|
|
998
|
-
let t =
|
|
999
|
-
|
|
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 (
|
|
1002
|
-
let t =
|
|
1003
|
-
|
|
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
|
|
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
|
-
|
|
1022
|
+
Vt(s, t, n, r, l) && Dn(i, s);
|
|
1012
1023
|
}
|
|
1013
1024
|
return i;
|
|
1014
1025
|
}
|
|
1015
|
-
function
|
|
1016
|
-
for (let i = 0; i < e.length; i++) if (
|
|
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
|
|
1020
|
-
let i =
|
|
1021
|
-
if (!!(
|
|
1022
|
-
E &&
|
|
1023
|
-
let a =
|
|
1024
|
-
return a >= 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
|
|
1027
|
-
if (null == r && (r = {}), !e) return
|
|
1028
|
-
if (!l) return
|
|
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) ||
|
|
1038
|
-
}),
|
|
1039
|
-
else if (!(
|
|
1040
|
-
let o =
|
|
1041
|
-
|
|
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 =
|
|
1044
|
-
|
|
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 =
|
|
1048
|
-
if (
|
|
1049
|
-
let n =
|
|
1050
|
-
if (
|
|
1051
|
-
let t =
|
|
1052
|
-
|
|
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 (
|
|
1055
|
-
let t =
|
|
1056
|
-
|
|
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
|
-
|
|
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
|
|
1072
|
+
return wn(l, "subs_flag", i), l;
|
|
1062
1073
|
}(e, n, r, l);
|
|
1063
|
-
return s ? (
|
|
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
|
|
1066
|
-
if (null == n && (n = {}), !e) return
|
|
1067
|
-
if (!r) return
|
|
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) ||
|
|
1077
|
-
}),
|
|
1078
|
-
else if (!(
|
|
1079
|
-
let i =
|
|
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
|
-
|
|
1093
|
+
Kt(e, n, !1, !1), o++;
|
|
1083
1094
|
}
|
|
1084
|
-
return o || (
|
|
1095
|
+
return o || (fn(`${Xe(e)}: No subscription found`), pn(n, "No subscription found")), 0;
|
|
1085
1096
|
}
|
|
1086
|
-
function
|
|
1097
|
+
function Bt(e, t, n) {
|
|
1087
1098
|
let r = [...t];
|
|
1088
|
-
for (let t = 0; t < r.length; t++)
|
|
1099
|
+
for (let t = 0; t < r.length; t++) Kt(e, r[t], n, !1);
|
|
1089
1100
|
return 0;
|
|
1090
1101
|
}
|
|
1091
|
-
function
|
|
1092
|
-
return null == n && (n = {}),
|
|
1102
|
+
function Jt(e, t, n, r) {
|
|
1103
|
+
return null == n && (n = {}), Wt(e.dl_subscriptions, e, t, n, r);
|
|
1093
1104
|
}
|
|
1094
|
-
function
|
|
1095
|
-
let t =
|
|
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 =
|
|
1098
|
-
|
|
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 =
|
|
1111
|
+
let n = qt(e, 0, null, 0);
|
|
1101
1112
|
for (let t = 0; t < n.length; t++) {
|
|
1102
|
-
let r = n[t], l =
|
|
1103
|
-
|
|
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":
|
|
1109
|
-
total_subscribings:
|
|
1119
|
+
"total subscriptions": An(t),
|
|
1120
|
+
total_subscribings: An(n)
|
|
1110
1121
|
};
|
|
1111
1122
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1123
|
+
function qt(e, t, n, r) {
|
|
1124
|
+
return Wt(e.dl_subscribings, r, t, n, e);
|
|
1114
1125
|
}
|
|
1115
|
-
function
|
|
1116
|
-
if (
|
|
1117
|
-
if (
|
|
1118
|
-
let l =
|
|
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
|
|
1120
|
-
let i = E &&
|
|
1121
|
-
if (i && (
|
|
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 _ =
|
|
1134
|
-
if (!_ ||
|
|
1135
|
-
let c =
|
|
1136
|
-
if (
|
|
1137
|
-
|
|
1138
|
-
let l =
|
|
1139
|
-
if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, n, g, _) :
|
|
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 =
|
|
1142
|
-
if (b && b.event_flag & C.EVF_SYSTEM_EVENT && !
|
|
1143
|
-
o &&
|
|
1144
|
-
let p =
|
|
1145
|
-
if (p < 0 && c &
|
|
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++,
|
|
1160
|
+
if (a += p, s++, nt(e)) break;
|
|
1150
1161
|
}
|
|
1151
1162
|
}
|
|
1152
|
-
return s || l && l.event_flag & C.EVF_NO_WARN_SUBS ||
|
|
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
|
|
1155
|
-
if (
|
|
1156
|
-
let o = E &&
|
|
1157
|
-
return o && (
|
|
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
|
|
1160
|
-
return
|
|
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
|
|
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
|
-
}),
|
|
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),
|
|
1181
|
-
function
|
|
1182
|
-
|
|
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
|
|
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
|
|
1207
|
-
let t =
|
|
1208
|
-
|
|
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
|
|
1211
|
-
let t =
|
|
1212
|
-
|
|
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
|
|
1215
|
-
let t =
|
|
1216
|
-
|
|
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
|
|
1219
|
-
let t =
|
|
1220
|
-
|
|
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
|
|
1223
|
-
let t =
|
|
1224
|
-
|
|
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
|
|
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
|
|
1248
|
+
function mn(e) {
|
|
1230
1249
|
return structuredClone(e);
|
|
1231
1250
|
}
|
|
1232
|
-
function
|
|
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
|
|
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 (!
|
|
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 (!
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1295
|
+
function On(e, t) {
|
|
1277
1296
|
if (e && e.hasOwnProperty(t)) return e[t];
|
|
1278
1297
|
}
|
|
1279
|
-
function
|
|
1298
|
+
function vn(e, t) {
|
|
1280
1299
|
e && e.hasOwnProperty(t) && delete e[t];
|
|
1281
1300
|
}
|
|
1282
|
-
function
|
|
1301
|
+
function Nn(e, t, n) {
|
|
1283
1302
|
e[t] = n;
|
|
1284
1303
|
}
|
|
1285
|
-
function
|
|
1304
|
+
function wn(e, t, n) {
|
|
1286
1305
|
e[t] = n;
|
|
1287
1306
|
}
|
|
1288
|
-
function
|
|
1307
|
+
function Dn(e, t) {
|
|
1289
1308
|
e.push(t);
|
|
1290
1309
|
}
|
|
1291
|
-
function
|
|
1310
|
+
function Rn(e, t) {
|
|
1292
1311
|
e.push(t);
|
|
1293
1312
|
}
|
|
1294
|
-
function
|
|
1313
|
+
function jn(e, t) {
|
|
1295
1314
|
e.splice(t, 1);
|
|
1296
1315
|
}
|
|
1297
|
-
function
|
|
1316
|
+
function $n(e, t) {
|
|
1298
1317
|
return t ? (Array.prototype.push.apply(e, t), e) : e;
|
|
1299
1318
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1319
|
+
function In(e) {
|
|
1320
|
+
return Ln(e) ? Object.keys(e).length : 0;
|
|
1302
1321
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return
|
|
1322
|
+
function An(e) {
|
|
1323
|
+
return Pn(e) ? e.length : 0;
|
|
1305
1324
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return
|
|
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
|
|
1328
|
+
function Ln(e) {
|
|
1310
1329
|
return null !== e && "object" == typeof e && !Array.isArray(e);
|
|
1311
1330
|
}
|
|
1312
|
-
function
|
|
1331
|
+
function Pn(e) {
|
|
1313
1332
|
return Array.isArray(e);
|
|
1314
1333
|
}
|
|
1315
|
-
function
|
|
1334
|
+
function Un(e) {
|
|
1316
1335
|
return "string" == typeof e;
|
|
1317
1336
|
}
|
|
1318
|
-
function
|
|
1337
|
+
function Cn(e) {
|
|
1319
1338
|
return "number" == typeof e && Number.isFinite(e);
|
|
1320
1339
|
}
|
|
1321
|
-
function
|
|
1340
|
+
function Fn(e) {
|
|
1322
1341
|
return "boolean" == typeof e;
|
|
1323
1342
|
}
|
|
1324
|
-
function
|
|
1343
|
+
function Gn(e) {
|
|
1325
1344
|
return null == e;
|
|
1326
1345
|
}
|
|
1327
|
-
function
|
|
1328
|
-
if (
|
|
1329
|
-
if (
|
|
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
|
|
1352
|
+
function Wn(e) {
|
|
1334
1353
|
return e instanceof Date && !isNaN(e);
|
|
1335
1354
|
}
|
|
1336
|
-
function
|
|
1355
|
+
function Mn(e) {
|
|
1337
1356
|
return "function" == typeof e;
|
|
1338
1357
|
}
|
|
1339
|
-
function
|
|
1358
|
+
function Kn(e) {
|
|
1340
1359
|
return e instanceof k;
|
|
1341
1360
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1361
|
+
function Yn(e) {
|
|
1362
|
+
return !Un(e) || 0 === e.length;
|
|
1344
1363
|
}
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1364
|
+
function xn(e) {
|
|
1365
|
+
return Cn(e) ? Boolean(e) : /^\s*(true|1|on)\s*$/i.test(e);
|
|
1347
1366
|
}
|
|
1348
|
-
function
|
|
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
|
|
1371
|
+
function Jn(e, t) {
|
|
1353
1372
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
1354
1373
|
}
|
|
1355
|
-
function
|
|
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
|
|
1360
|
-
if (
|
|
1361
|
-
if (
|
|
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 (
|
|
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
|
|
1388
|
+
return Jn(String(e), String(t));
|
|
1370
1389
|
}
|
|
1371
|
-
function
|
|
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
|
|
1376
|
-
if (
|
|
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
|
|
1382
|
-
if (
|
|
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
|
|
1388
|
-
if ("object" != typeof t || Array.isArray(t)) if (Array.isArray(t)) for (const n of t)
|
|
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
|
|
1411
|
+
function er(e, t) {
|
|
1393
1412
|
return !(!(t in e) || !e.hasOwnProperty(t));
|
|
1394
1413
|
}
|
|
1395
|
-
function
|
|
1396
|
-
if (e && !
|
|
1397
|
-
if (
|
|
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 &&
|
|
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
|
|
1405
|
-
e && !
|
|
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
|
|
1429
|
+
return Yn(l) ? vn(t, n) : vn(tr(e, t, r, !0), l), 0;
|
|
1411
1430
|
}
|
|
1412
|
-
function
|
|
1413
|
-
e && !
|
|
1414
|
-
let i =
|
|
1415
|
-
const o = l && l &
|
|
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
|
|
1438
|
+
return cr(e, t, n, l), l;
|
|
1420
1439
|
}
|
|
1421
|
-
return o && (
|
|
1440
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), Boolean(r);
|
|
1422
1441
|
}
|
|
1423
|
-
return a &&
|
|
1442
|
+
return a && nr(e, t, n), Boolean(i);
|
|
1424
1443
|
}
|
|
1425
|
-
function
|
|
1426
|
-
e && !
|
|
1427
|
-
let i =
|
|
1428
|
-
const o = l && l &
|
|
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
|
|
1451
|
+
return cr(e, t, n, l), l;
|
|
1433
1452
|
}
|
|
1434
|
-
return o && (
|
|
1453
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), parseInt(r);
|
|
1435
1454
|
}
|
|
1436
|
-
return a &&
|
|
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
|
|
1439
|
-
e && !
|
|
1440
|
-
let i =
|
|
1441
|
-
const o = l && l &
|
|
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
|
|
1464
|
+
return cr(e, t, n, l), l;
|
|
1446
1465
|
}
|
|
1447
|
-
return o && (
|
|
1466
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), Number(r);
|
|
1448
1467
|
}
|
|
1449
|
-
return a &&
|
|
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
|
|
1452
|
-
e && !
|
|
1453
|
-
let i =
|
|
1454
|
-
const o = l && l &
|
|
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
|
|
1477
|
+
return cr(e, t, n, l), l;
|
|
1459
1478
|
}
|
|
1460
|
-
return o && (
|
|
1479
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), String(r);
|
|
1461
1480
|
}
|
|
1462
|
-
return a &&
|
|
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
|
|
1465
|
-
e && !
|
|
1466
|
-
let i =
|
|
1467
|
-
const o = l && l &
|
|
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
|
|
1490
|
+
return cr(e, t, n, l), l;
|
|
1472
1491
|
}
|
|
1473
|
-
return o && (
|
|
1492
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), r;
|
|
1474
1493
|
}
|
|
1475
|
-
return a &&
|
|
1494
|
+
return a && nr(e, t, n), i;
|
|
1476
1495
|
}
|
|
1477
|
-
function
|
|
1478
|
-
e && !
|
|
1479
|
-
let i =
|
|
1480
|
-
const o = l && l &
|
|
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
|
|
1503
|
+
return cr(e, t, n, l), l;
|
|
1485
1504
|
}
|
|
1486
|
-
return o && (
|
|
1505
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), Object(r);
|
|
1487
1506
|
}
|
|
1488
|
-
return a &&
|
|
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
|
|
1491
|
-
e && !
|
|
1492
|
-
let i =
|
|
1493
|
-
const o = l && l &
|
|
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
|
|
1516
|
+
return cr(e, t, n, l), l;
|
|
1498
1517
|
}
|
|
1499
|
-
return o && (
|
|
1518
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), r;
|
|
1500
1519
|
}
|
|
1501
|
-
return a &&
|
|
1520
|
+
return a && nr(e, t, n), i;
|
|
1502
1521
|
}
|
|
1503
|
-
function
|
|
1504
|
-
e && !
|
|
1505
|
-
let i =
|
|
1506
|
-
const o = l && l &
|
|
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
|
|
1529
|
+
return cr(e, t, n, l), l;
|
|
1511
1530
|
}
|
|
1512
|
-
return o && (
|
|
1531
|
+
return o && (cn(`path not found: '${n}'`), pn(t)), Array(r);
|
|
1513
1532
|
}
|
|
1514
|
-
return a &&
|
|
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
|
|
1517
|
-
if (e && !
|
|
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
|
|
1528
|
-
if (e && !
|
|
1529
|
-
let i =
|
|
1530
|
-
return
|
|
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
|
|
1551
|
+
function gr(e, n, r) {
|
|
1533
1552
|
let l = "", i = !1;
|
|
1534
|
-
if (
|
|
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 =
|
|
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 (
|
|
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 =
|
|
1546
|
-
if (i =
|
|
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 _ =
|
|
1550
|
-
if (_ || (_ =
|
|
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 !==
|
|
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
|
|
1563
|
-
return 0 ===
|
|
1581
|
+
function dr(e, t) {
|
|
1582
|
+
return 0 === kn(t) || gr(e, t, "");
|
|
1564
1583
|
}
|
|
1565
|
-
function
|
|
1566
|
-
if (!n || !
|
|
1567
|
-
for (let e = 0; e < t.length; e++) if (
|
|
1568
|
-
return r &&
|
|
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
|
|
1571
|
-
if (e && !
|
|
1572
|
-
r || (r =
|
|
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 (
|
|
1593
|
+
if (Pn(t)) for (let e = 0; e < t.length; e++) {
|
|
1575
1594
|
let i = t[e];
|
|
1576
|
-
r(i, n) && l.push(
|
|
1595
|
+
r(i, n) && l.push(mn(i));
|
|
1577
1596
|
}
|
|
1578
1597
|
else {
|
|
1579
|
-
if (!
|
|
1580
|
-
r(t, n) && l.push(
|
|
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
|
|
1585
|
-
if (e && !
|
|
1586
|
-
r || (r =
|
|
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 (
|
|
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 (!
|
|
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
|
|
1599
|
-
e && !
|
|
1617
|
+
function Er(e, t, n, r) {
|
|
1618
|
+
e && !Kn(e) && cn("GObj bad instanceof");
|
|
1600
1619
|
let l = {};
|
|
1601
|
-
if (
|
|
1620
|
+
if (Un(n) && !Yn(n)) {
|
|
1602
1621
|
let i = n;
|
|
1603
|
-
t.hasOwnProperty(i) ? l[i] = t[i] : r &&
|
|
1604
|
-
} else if (
|
|
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 (!(
|
|
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 &&
|
|
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
|
|
1633
|
+
function hr(e, t, n, r) {
|
|
1615
1634
|
let l = {};
|
|
1616
|
-
if (
|
|
1635
|
+
if (Tn(l, t), Un(n) && !Yn(n)) {
|
|
1617
1636
|
let i = n;
|
|
1618
|
-
|
|
1619
|
-
} else if (
|
|
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 (!(
|
|
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) ?
|
|
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
|
|
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 &&
|
|
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
|
|
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
|
|
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
|
|
1654
|
-
if (
|
|
1655
|
-
if (
|
|
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 (
|
|
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 (
|
|
1680
|
+
} else if (Un(e) && e === t) return !0;
|
|
1662
1681
|
return !1;
|
|
1663
1682
|
}
|
|
1664
|
-
function
|
|
1665
|
-
if (e && !
|
|
1666
|
-
l || (l =
|
|
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 (
|
|
1687
|
+
if (Pn(t)) for (let o = 0; o < t.length; o++) {
|
|
1669
1688
|
let s, a = t[o];
|
|
1670
|
-
if (
|
|
1689
|
+
if (Ln(a)) s = or(e, a, "id", "", 0);
|
|
1671
1690
|
else {
|
|
1672
|
-
if (
|
|
1691
|
+
if (!Un(a)) continue;
|
|
1673
1692
|
s = a;
|
|
1674
1693
|
}
|
|
1675
|
-
|
|
1694
|
+
Or(n, s) && l(a, r) && i.push(a);
|
|
1676
1695
|
}
|
|
1677
1696
|
else {
|
|
1678
|
-
if (!
|
|
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
|
-
|
|
1700
|
+
Or(n, e) && l(o, r) && i.push(o);
|
|
1682
1701
|
}
|
|
1683
1702
|
}
|
|
1684
1703
|
return i;
|
|
1685
1704
|
}
|
|
1686
|
-
function
|
|
1687
|
-
e && !
|
|
1705
|
+
function Nr(e, t, n) {
|
|
1706
|
+
e && !Kn(e) && cn("GObj bad instanceof");
|
|
1688
1707
|
let r = {};
|
|
1689
|
-
if (
|
|
1690
|
-
else if (
|
|
1691
|
-
let n = t[e], l =
|
|
1692
|
-
|
|
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
|
|
1713
|
+
else cn(`${Xe(e)} kwid_new_dict: data type unknown`);
|
|
1695
1714
|
return r;
|
|
1696
1715
|
}
|
|
1697
|
-
function
|
|
1698
|
-
e && !
|
|
1699
|
-
let i =
|
|
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
|
|
1703
|
-
if (e && !
|
|
1721
|
+
function Dr(e, t) {
|
|
1722
|
+
if (e && !Kn(e) && cn("GObj bad instanceof"), !t) return [];
|
|
1704
1723
|
let n = [];
|
|
1705
|
-
if (
|
|
1706
|
-
else if (
|
|
1707
|
-
else
|
|
1708
|
-
if (
|
|
1709
|
-
else if (
|
|
1710
|
-
let r =
|
|
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
|
|
1735
|
+
function Rr(e, t, n) {
|
|
1717
1736
|
t = t || "id", n = n || "value";
|
|
1718
1737
|
let r = [];
|
|
1719
|
-
if (
|
|
1738
|
+
if (Pn(e)) for (let l = 0; l < e.length; l++) {
|
|
1720
1739
|
let i = e[l];
|
|
1721
|
-
if (
|
|
1740
|
+
if (Un(i)) r.push({
|
|
1722
1741
|
id: e[l],
|
|
1723
1742
|
value: e[l]
|
|
1724
1743
|
});
|
|
1725
|
-
else if (
|
|
1744
|
+
else if (Ln(i)) {
|
|
1726
1745
|
let e = {};
|
|
1727
|
-
if (
|
|
1728
|
-
if (!
|
|
1729
|
-
if (!(
|
|
1730
|
-
|
|
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 (!(
|
|
1738
|
-
|
|
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
|
|
1763
|
+
} else cn("list2options(): case1 not implemented");
|
|
1745
1764
|
}
|
|
1746
|
-
else if (
|
|
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
|
|
1769
|
+
else cn("list2options(): case2 not implemented");
|
|
1751
1770
|
return r;
|
|
1752
1771
|
}
|
|
1753
|
-
function
|
|
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
|
|
1759
|
-
if (!e || !t) return
|
|
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
|
|
1771
|
-
if (!e) return
|
|
1772
|
-
if (!t) return
|
|
1773
|
-
for (let r = 0; r < t.length; r++) if (
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1793
|
-
if (!
|
|
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 =
|
|
1796
|
-
l || (l = [],
|
|
1814
|
+
let l = kr(t, n);
|
|
1815
|
+
l || (l = [], Lr(t, n, l));
|
|
1797
1816
|
try {
|
|
1798
|
-
|
|
1817
|
+
Pn(l) && l.unshift(r);
|
|
1799
1818
|
} catch (e) {
|
|
1800
|
-
|
|
1819
|
+
cn(e);
|
|
1801
1820
|
}
|
|
1802
1821
|
}
|
|
1803
|
-
function
|
|
1804
|
-
if (!
|
|
1805
|
-
if (!
|
|
1806
|
-
let l =
|
|
1807
|
-
return l ? 0 === l.length ? (r &&
|
|
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
|
|
1810
|
-
return
|
|
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
|
|
1813
|
-
return
|
|
1831
|
+
function Fr(e, t) {
|
|
1832
|
+
return or(e, t, "__md_iev__`__msg_type__", "", 0);
|
|
1814
1833
|
}
|
|
1815
|
-
function
|
|
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 && (
|
|
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
|
|
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
|
|
1834
|
-
void 0 !== 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
|
-
]),
|
|
1862
|
+
]), Ln(e[r]) && Wr(e[r], t, n), n = n.slice(0, -l.length);
|
|
1844
1863
|
}
|
|
1845
1864
|
}
|
|
1846
|
-
function
|
|
1847
|
-
n && (e =
|
|
1848
|
-
let r =
|
|
1849
|
-
|
|
1850
|
-
let l =
|
|
1851
|
-
return
|
|
1852
|
-
"__" !== t.substring(0, 2) &&
|
|
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
|
|
1856
|
-
let l =
|
|
1857
|
-
if (!l) return
|
|
1858
|
-
if (
|
|
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()) && !
|
|
1861
|
-
if (0 === o.length && s) if (
|
|
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 =
|
|
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
|
|
1870
|
-
let l =
|
|
1871
|
-
if (!l) return
|
|
1872
|
-
if (
|
|
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()) && !
|
|
1875
|
-
if (0 === o.length && s) if (
|
|
1876
|
-
let e =
|
|
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 =
|
|
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
|
|
1885
|
-
let n =
|
|
1886
|
-
if (!n) return
|
|
1887
|
-
return
|
|
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
|
|
1890
|
-
let l =
|
|
1891
|
-
return l ? (void 0 === r && (r = !0),
|
|
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
|
|
1894
|
-
let r =
|
|
1895
|
-
return r ? n < r.length ? r[n] : {} : (
|
|
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
|
|
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 &&
|
|
1906
|
-
let e =
|
|
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
|
|
1914
|
-
let n =
|
|
1915
|
-
return
|
|
1932
|
+
function qr(e, t) {
|
|
1933
|
+
let n = mn(e);
|
|
1934
|
+
return yn(n, t), n;
|
|
1916
1935
|
}
|
|
1917
|
-
function
|
|
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
|
|
1967
|
+
function Xr(e, t) {
|
|
1949
1968
|
try {
|
|
1950
|
-
let n =
|
|
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
|
|
1979
|
+
function Hr(e) {
|
|
1961
1980
|
return null == e ? "" : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1962
1981
|
}
|
|
1963
|
-
function
|
|
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) ? "" :
|
|
1985
|
+
return /^javascript:/i.test(t) || /^data:/i.test(t) ? "" : Hr(t);
|
|
1967
1986
|
}
|
|
1968
|
-
function
|
|
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
|
|
1991
|
+
function tl(e, t) {
|
|
1973
1992
|
let [n, r, l, i] = e;
|
|
1974
|
-
if (!n) return void
|
|
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 (
|
|
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 (
|
|
1985
|
-
if (l.length > 0) if (
|
|
1986
|
-
else for (let e of l) Array.isArray(e) && e.length > 0 ? o.appendChild(
|
|
1987
|
-
} else l instanceof HTMLElement || l instanceof Text || l instanceof SVGElement ? o.appendChild(l) : null != 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
|
|
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
|
|
2030
|
+
function rl(e) {
|
|
2012
2031
|
return new DOMParser().parseFromString(e, "image/svg+xml").firstChild;
|
|
2013
2032
|
}
|
|
2014
|
-
function
|
|
2015
|
-
|
|
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
|
-
})) :
|
|
2046
|
+
})) : cn("You must supply a translation function");
|
|
2028
2047
|
}
|
|
2029
|
-
function
|
|
2048
|
+
function il(e = "Time Tracker", t = !1) {
|
|
2030
2049
|
const n = e, r = performance.now();
|
|
2031
2050
|
let l = r;
|
|
2032
|
-
return t &&
|
|
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 &&
|
|
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
|
|
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
|
|
2063
|
+
function sl() {
|
|
2045
2064
|
return Math.floor(Date.now() / 1e3);
|
|
2046
2065
|
}
|
|
2047
|
-
function
|
|
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
|
|
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
|
|
2075
|
+
function _l(e) {
|
|
2057
2076
|
return e.replace(/[?# ^:]/g, "_");
|
|
2058
2077
|
}
|
|
2059
|
-
function
|
|
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
|
|
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
|
|
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
|
|
2084
|
-
return "persistent-attrs-" +
|
|
2102
|
+
function dl(e) {
|
|
2103
|
+
return "persistent-attrs-" + Xe(e);
|
|
2085
2104
|
}
|
|
2086
|
-
function
|
|
2087
|
-
let n =
|
|
2088
|
-
if (r &&
|
|
2089
|
-
let l =
|
|
2090
|
-
l =
|
|
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
|
|
2094
|
-
let n =
|
|
2095
|
-
r &&
|
|
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
|
|
2098
|
-
let n =
|
|
2099
|
-
0 ===
|
|
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
|
|
2102
|
-
let n =
|
|
2103
|
-
return n &&
|
|
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
|
|
2106
|
-
if (
|
|
2124
|
+
function hl(e) {
|
|
2125
|
+
if (Pn(e) && 1 === kn(e)) {
|
|
2107
2126
|
let t = e[0];
|
|
2108
|
-
return
|
|
2127
|
+
return er(t, "size") ? t.size : 1;
|
|
2109
2128
|
}
|
|
2110
|
-
return
|
|
2129
|
+
return kn(e);
|
|
2111
2130
|
}
|
|
2112
|
-
function
|
|
2113
|
-
if (
|
|
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 !==
|
|
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 ? (
|
|
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
|
|
2155
|
+
return Ln(t) ? {
|
|
2137
2156
|
topic_name: t.topic_name,
|
|
2138
2157
|
id: t.id,
|
|
2139
2158
|
hook_name: t.hook_name
|
|
2140
|
-
} : (
|
|
2159
|
+
} : (cn("bad fkey 3"), cn(e), cn(t), null);
|
|
2141
2160
|
}
|
|
2142
|
-
function
|
|
2143
|
-
let n =
|
|
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
|
|
2147
|
-
if (
|
|
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 !==
|
|
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 ? (
|
|
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
|
|
2187
|
+
return Ln(t) ? {
|
|
2169
2188
|
topic_name: t.topic_name,
|
|
2170
2189
|
id: t.id
|
|
2171
|
-
} : (
|
|
2190
|
+
} : (cn("bad hook 3"), cn(e), cn(t), null);
|
|
2172
2191
|
}
|
|
2173
|
-
var
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
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 (
|
|
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 (
|
|
2280
|
-
else if (
|
|
2281
|
-
else if (
|
|
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
|
|
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
|
|
2315
|
+
function Rl(e, t) {
|
|
2297
2316
|
let n = {};
|
|
2298
2317
|
return t || (t = {}), Object.entries(e).forEach(([e, r]) => {
|
|
2299
|
-
n[e] =
|
|
2318
|
+
n[e] = ur(null, t, e, ur(r, "default"));
|
|
2300
2319
|
}), n;
|
|
2301
2320
|
}
|
|
2302
|
-
var
|
|
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
|
-
],
|
|
2326
|
+
], $l = {
|
|
2308
2327
|
periodic: !1,
|
|
2309
2328
|
msec: 0,
|
|
2310
2329
|
timer_id: -1
|
|
2311
|
-
},
|
|
2312
|
-
function
|
|
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
|
|
2315
|
-
|
|
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
|
|
2337
|
+
var kl = {
|
|
2319
2338
|
mt_create: function(e) {
|
|
2320
2339
|
let t = e.priv;
|
|
2321
|
-
const n =
|
|
2322
|
-
n &&
|
|
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 =
|
|
2347
|
+
n.periodic = Tt(e, "periodic");
|
|
2329
2348
|
break;
|
|
2330
|
-
case "msec": n.msec =
|
|
2331
|
-
|
|
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
|
|
2358
|
+
return Rt(e, "msec", -1), 0;
|
|
2340
2359
|
},
|
|
2341
2360
|
mt_destroy: function(e) {}
|
|
2342
2361
|
};
|
|
2343
|
-
function
|
|
2362
|
+
function Ll() {
|
|
2344
2363
|
return function(e) {
|
|
2345
|
-
if (
|
|
2364
|
+
if (Il) return cn(`GClass ALREADY created: ${e}`), -1;
|
|
2346
2365
|
const t = [["ST_IDLE", [[
|
|
2347
2366
|
"EV_TIMEOUT",
|
|
2348
|
-
|
|
2367
|
+
Al,
|
|
2349
2368
|
null
|
|
2350
2369
|
]]]];
|
|
2351
|
-
return (
|
|
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,
|
|
2374
|
+
], t, kl, 0, jl, $l, 0, 0, 0, L.gcflag_manual_start)) ? 0 : -1;
|
|
2356
2375
|
}("C_TIMER");
|
|
2357
2376
|
}
|
|
2358
|
-
function
|
|
2359
|
-
return e instanceof k ? "C_TIMER" !==
|
|
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
|
|
2362
|
-
return e instanceof k ? "C_TIMER" !==
|
|
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
|
|
2365
|
-
return e instanceof k ? "C_TIMER" !==
|
|
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
|
|
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 Al = [
|
|
|
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
|
-
],
|
|
2394
|
-
function
|
|
2395
|
-
return
|
|
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
|
|
2416
|
+
var Ml = {
|
|
2398
2417
|
mt_create: function(e) {
|
|
2399
2418
|
let t = e.priv;
|
|
2400
|
-
|
|
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
|
|
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
|
|
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 =
|
|
2412
|
-
return
|
|
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
|
|
2434
|
+
return Ve(ce()), 0;
|
|
2416
2435
|
}
|
|
2417
2436
|
};
|
|
2418
|
-
function
|
|
2437
|
+
function Kl() {
|
|
2419
2438
|
return function(e) {
|
|
2420
|
-
if (
|
|
2439
|
+
if (Vl) return cn(`GClass ALREADY created: ${e}`), -1;
|
|
2421
2440
|
const t = [["ST_IDLE", [[
|
|
2422
2441
|
"EV_TIMEOUT_PERIODIC",
|
|
2423
|
-
|
|
2442
|
+
Wl,
|
|
2424
2443
|
null
|
|
2425
2444
|
]]]];
|
|
2426
|
-
return (
|
|
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
|
|
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
|
-
],
|
|
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
|
-
},
|
|
2454
|
-
function
|
|
2455
|
-
e.priv.websocket &&
|
|
2456
|
-
const t =
|
|
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
|
-
|
|
2477
|
+
dn(`====> Starting WebSocket to '${t}' (${Xe(e)})`);
|
|
2459
2478
|
try {
|
|
2460
2479
|
n = new WebSocket(t);
|
|
2461
2480
|
} catch (n) {
|
|
2462
|
-
return
|
|
2481
|
+
return cn(`${Xe(e)}: Cannot open WebSocket to '${t}', Error: ${n.message}`), null;
|
|
2463
2482
|
}
|
|
2464
2483
|
return n ? (n.onopen = () => {
|
|
2465
|
-
|
|
2484
|
+
Ct(e, "EV_ON_OPEN", { url: t }, e);
|
|
2466
2485
|
}, n.onmessage = (n) => {
|
|
2467
|
-
|
|
2486
|
+
Ct(e, "EV_ON_MESSAGE", {
|
|
2468
2487
|
url: t,
|
|
2469
2488
|
data: n.data
|
|
2470
2489
|
}, e);
|
|
2471
2490
|
}, n.onclose = (n) => {
|
|
2472
|
-
|
|
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
2494
|
}, e));
|
|
2476
|
-
}, n) : (
|
|
2495
|
+
}, n) : (cn(`${Xe(e)}: Failed to initialize WebSocket.`), null);
|
|
2477
2496
|
}
|
|
2478
|
-
function
|
|
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
|
-
|
|
2500
|
+
dn(`Closing WebSocket (Code: ${t}, Reason: "${n}")`);
|
|
2482
2501
|
try {
|
|
2483
2502
|
l.close(t, n);
|
|
2484
2503
|
} catch (e) {
|
|
2485
|
-
|
|
2504
|
+
cn("Error closing WebSocket:", e.message);
|
|
2486
2505
|
}
|
|
2487
|
-
} else
|
|
2506
|
+
} else fn("WebSocket is already closed or in the process of closing.");
|
|
2488
2507
|
}
|
|
2489
|
-
function
|
|
2490
|
-
let r =
|
|
2508
|
+
function zl(e, t, n) {
|
|
2509
|
+
let r = ol();
|
|
2491
2510
|
try {
|
|
2492
|
-
|
|
2511
|
+
dn("\n" + r + " " + t + "\n"), pn(n);
|
|
2493
2512
|
} catch (e) {
|
|
2494
|
-
|
|
2513
|
+
dn("ERROR in trace_inter_event: " + e);
|
|
2495
2514
|
}
|
|
2496
2515
|
}
|
|
2497
|
-
var
|
|
2516
|
+
var Xl = class {
|
|
2498
2517
|
constructor(e, t) {
|
|
2499
2518
|
this.event = e, this.kw = t || {};
|
|
2500
2519
|
}
|
|
2501
2520
|
};
|
|
2502
|
-
function
|
|
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 (
|
|
2506
|
-
let n =
|
|
2507
|
-
i ? i(l, t, 1, r.length) :
|
|
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
|
-
|
|
2531
|
+
cn(`${Xe(e)}: send_iev(): ${t}`);
|
|
2513
2532
|
}
|
|
2514
2533
|
return 0;
|
|
2515
2534
|
}(e, function(e, t) {
|
|
2516
|
-
return
|
|
2535
|
+
return Yn(e) ? (cn("iev_create() event NULL"), null) : new Xl(e, t);
|
|
2517
2536
|
}(t, n));
|
|
2518
2537
|
}
|
|
2519
|
-
function
|
|
2520
|
-
return
|
|
2521
|
-
dst_yuno:
|
|
2522
|
-
dst_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:
|
|
2525
|
-
src_role:
|
|
2543
|
+
src_yuno: Be(),
|
|
2544
|
+
src_role: Je(),
|
|
2526
2545
|
src_service: t,
|
|
2527
|
-
host:
|
|
2546
|
+
host: ul()
|
|
2528
2547
|
};
|
|
2529
2548
|
}
|
|
2530
|
-
function
|
|
2531
|
-
let t = e.priv, n =
|
|
2532
|
-
yuno_role:
|
|
2533
|
-
yuno_id:
|
|
2534
|
-
yuno_name:
|
|
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:
|
|
2543
|
-
username:
|
|
2561
|
+
jwt: St(e, "jwt"),
|
|
2562
|
+
username: St(xe(), "__username__"),
|
|
2544
2563
|
launch_id: 0,
|
|
2545
|
-
yuno_startdate:
|
|
2546
|
-
id:
|
|
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:
|
|
2568
|
+
required_services: Et(xe(), "required_services")
|
|
2550
2569
|
};
|
|
2551
|
-
return
|
|
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
|
|
2554
|
-
if (
|
|
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),
|
|
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
|
|
2577
|
+
function ni(e, t, n, r) {
|
|
2559
2578
|
let l = e.priv;
|
|
2560
|
-
return
|
|
2579
|
+
return We(e) && (l.websocket = Ql(e)), 0;
|
|
2561
2580
|
}
|
|
2562
|
-
function
|
|
2563
|
-
return
|
|
2581
|
+
function ri(e, t, n, r) {
|
|
2582
|
+
return dn("Websocket opened: " + e.priv.url), ei(e), 0;
|
|
2564
2583
|
}
|
|
2565
|
-
function
|
|
2584
|
+
function li(e, t, n, r) {
|
|
2566
2585
|
let l = e.priv, i = n.e, o = n.url;
|
|
2567
|
-
return
|
|
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
|
-
})) : (
|
|
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
|
-
})),
|
|
2599
|
+
})), We(e) && Pl(l.gobj_timer, yt(e, "timeout_retry")), 0;
|
|
2581
2600
|
}
|
|
2582
|
-
function
|
|
2583
|
-
return
|
|
2601
|
+
function ii(e, t, n, r) {
|
|
2602
|
+
return ei(e), 0;
|
|
2584
2603
|
}
|
|
2585
|
-
function
|
|
2604
|
+
function oi(e, t, n, r) {
|
|
2586
2605
|
let l = e.priv;
|
|
2587
|
-
|
|
2588
|
-
let i =
|
|
2589
|
-
|
|
2590
|
-
let u =
|
|
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
|
-
|
|
2611
|
+
ql(e);
|
|
2593
2612
|
let t = {
|
|
2594
|
-
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
|
-
|
|
2621
|
+
tt(e) ? Ct(Ze(e), "EV_ON_ID_NAK", t, e) : zt(e, "EV_ON_ID_NAK", t);
|
|
2603
2622
|
} else {
|
|
2604
|
-
if (
|
|
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
|
-
|
|
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 =
|
|
2617
|
-
for (let n = 0; n < t.length; 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
|
|
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
|
|
2647
|
+
return cn("parsing inter_event json: " + e), null;
|
|
2629
2648
|
}
|
|
2630
|
-
if (!(n instanceof Object)) return
|
|
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
|
|
2633
|
-
if ("string" != typeof r) return
|
|
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
|
-
} : (
|
|
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 (
|
|
2641
|
-
let e =
|
|
2642
|
-
r ? r(e, i, 2, t) :
|
|
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" !==
|
|
2646
|
-
if (
|
|
2647
|
-
if (0 ===
|
|
2648
|
-
} else
|
|
2649
|
-
return
|
|
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 =
|
|
2653
|
-
if (_ !==
|
|
2654
|
-
let c =
|
|
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 (
|
|
2658
|
-
let f =
|
|
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 (!
|
|
2661
|
-
|
|
2662
|
-
} else
|
|
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
|
|
2684
|
+
function ai(e, t, n, r) {
|
|
2666
2685
|
return 0;
|
|
2667
2686
|
}
|
|
2668
|
-
function
|
|
2687
|
+
function ui(e, t, n, r) {
|
|
2669
2688
|
return 0;
|
|
2670
2689
|
}
|
|
2671
|
-
var
|
|
2690
|
+
var _i = {
|
|
2672
2691
|
mt_create: function(e) {
|
|
2673
2692
|
let t = e.priv;
|
|
2674
|
-
t.gobj_timer =
|
|
2675
|
-
const n =
|
|
2676
|
-
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 =
|
|
2701
|
+
n.url = St(e, "url");
|
|
2683
2702
|
break;
|
|
2684
2703
|
case "remote_yuno_name":
|
|
2685
|
-
n.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 =
|
|
2707
|
+
n.remote_yuno_role = St(e, "remote_yuno_role");
|
|
2689
2708
|
break;
|
|
2690
|
-
case "remote_yuno_service": n.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
|
|
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
|
|
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" !==
|
|
2722
|
+
if ("ST_SESSION" !== It(e)) return cn("Not in session"), null;
|
|
2704
2723
|
n || (n = {});
|
|
2705
|
-
let l =
|
|
2706
|
-
return i || (i = {}),
|
|
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
|
-
}),
|
|
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" !==
|
|
2731
|
+
if ("ST_SESSION" !== It(e)) return cn("Not in session"), null;
|
|
2713
2732
|
n || (n = {});
|
|
2714
|
-
let l =
|
|
2715
|
-
return i || (i = {}),
|
|
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
|
-
}),
|
|
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" !==
|
|
2722
|
-
if (n || (n = {}),
|
|
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 =
|
|
2725
|
-
|
|
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
|
|
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" !==
|
|
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" !==
|
|
2754
|
+
if ("ST_SESSION" !== It(e)) return 0;
|
|
2736
2755
|
if (n.inside_on_open) return 0;
|
|
2737
|
-
if (
|
|
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),
|
|
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
|
|
2761
|
+
function ci() {
|
|
2743
2762
|
return function(e) {
|
|
2744
|
-
if (
|
|
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
|
-
|
|
2768
|
+
ri,
|
|
2750
2769
|
"ST_WAIT_IDENTITY_CARD_ACK"
|
|
2751
2770
|
],
|
|
2752
2771
|
[
|
|
2753
2772
|
"EV_ON_CLOSE",
|
|
2754
|
-
|
|
2773
|
+
li,
|
|
2755
2774
|
null
|
|
2756
2775
|
],
|
|
2757
2776
|
[
|
|
2758
2777
|
"EV_TIMEOUT",
|
|
2759
|
-
|
|
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
|
-
|
|
2790
|
+
si,
|
|
2772
2791
|
null
|
|
2773
2792
|
],
|
|
2774
2793
|
[
|
|
2775
2794
|
"EV_IDENTITY_CARD_ACK",
|
|
2776
|
-
|
|
2795
|
+
oi,
|
|
2777
2796
|
null
|
|
2778
2797
|
],
|
|
2779
2798
|
[
|
|
2780
2799
|
"EV_ON_CLOSE",
|
|
2781
|
-
|
|
2800
|
+
li,
|
|
2782
2801
|
"ST_DISCONNECTED"
|
|
2783
2802
|
],
|
|
2784
2803
|
[
|
|
2785
2804
|
"EV_TIMEOUT",
|
|
2786
|
-
|
|
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
|
-
|
|
2817
|
+
si,
|
|
2799
2818
|
null
|
|
2800
2819
|
],
|
|
2801
2820
|
[
|
|
2802
2821
|
"EV_MT_STATS",
|
|
2803
|
-
|
|
2822
|
+
ai,
|
|
2804
2823
|
null
|
|
2805
2824
|
],
|
|
2806
2825
|
[
|
|
2807
2826
|
"EV_MT_COMMAND",
|
|
2808
|
-
|
|
2827
|
+
ui,
|
|
2809
2828
|
null
|
|
2810
2829
|
],
|
|
2811
2830
|
[
|
|
2812
2831
|
"EV_ON_CLOSE",
|
|
2813
|
-
|
|
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 (
|
|
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,
|
|
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 { 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,
|
|
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
|