@placeos/ts-client 4.4.2 → 4.4.4
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/api.d.ts +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +730 -726
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +1 -0
- package/src/clusters/functions.ts +1 -0
- package/src/realtime/functions.ts +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
1
|
+
var on = function(t, e) {
|
|
2
|
+
return on = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
3
3
|
n.__proto__ = r;
|
|
4
4
|
} || function(n, r) {
|
|
5
5
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
6
|
-
},
|
|
6
|
+
}, on(t, e);
|
|
7
7
|
};
|
|
8
8
|
function Z(t, e) {
|
|
9
9
|
if (typeof e != "function" && e !== null)
|
|
10
10
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
11
|
-
|
|
11
|
+
on(t, e);
|
|
12
12
|
function n() {
|
|
13
13
|
this.constructor = t;
|
|
14
14
|
}
|
|
@@ -23,7 +23,7 @@ var He = function() {
|
|
|
23
23
|
return e;
|
|
24
24
|
}, He.apply(this, arguments);
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function Vr(t, e) {
|
|
27
27
|
var n = {};
|
|
28
28
|
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
29
29
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -31,7 +31,7 @@ function Br(t, e) {
|
|
|
31
31
|
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
|
|
32
32
|
return n;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Qr(t, e, n, r) {
|
|
35
35
|
function i(o) {
|
|
36
36
|
return o instanceof n ? o : new n(function(s) {
|
|
37
37
|
s(o);
|
|
@@ -153,7 +153,7 @@ function yt(t, e, n) {
|
|
|
153
153
|
function Ae(t) {
|
|
154
154
|
return this instanceof Ae ? (this.v = t, this) : new Ae(t);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Yr(t, e, n) {
|
|
157
157
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
158
158
|
var r = n.apply(t, e || []), i, o = [];
|
|
159
159
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", s), i[Symbol.asyncIterator] = function() {
|
|
@@ -191,7 +191,7 @@ function Qr(t, e, n) {
|
|
|
191
191
|
a(h), o.shift(), o.length && c(o[0][0], o[0][1]);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Jr(t) {
|
|
195
195
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
196
196
|
var e = t[Symbol.asyncIterator], n;
|
|
197
197
|
return e ? e.call(t) : (t = typeof Oe == "function" ? Oe(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
|
|
@@ -219,7 +219,7 @@ function Bn(t) {
|
|
|
219
219
|
}, n = t(e);
|
|
220
220
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var Xt = Bn(function(t) {
|
|
223
223
|
return function(n) {
|
|
224
224
|
t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
225
225
|
` + n.map(function(r, i) {
|
|
@@ -266,7 +266,7 @@ var ge = function() {
|
|
|
266
266
|
try {
|
|
267
267
|
_();
|
|
268
268
|
} catch (f) {
|
|
269
|
-
o = f instanceof
|
|
269
|
+
o = f instanceof Xt ? f.errors : [f];
|
|
270
270
|
}
|
|
271
271
|
var m = this._finalizers;
|
|
272
272
|
if (m) {
|
|
@@ -277,7 +277,7 @@ var ge = function() {
|
|
|
277
277
|
try {
|
|
278
278
|
An(h);
|
|
279
279
|
} catch (f) {
|
|
280
|
-
o = o ?? [], f instanceof
|
|
280
|
+
o = o ?? [], f instanceof Xt ? o = yt(yt([], mt(o)), mt(f.errors)) : o.push(f);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} catch (f) {
|
|
@@ -291,7 +291,7 @@ var ge = function() {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
if (o)
|
|
294
|
-
throw new
|
|
294
|
+
throw new Xt(o);
|
|
295
295
|
}
|
|
296
296
|
}, t.prototype.add = function(e) {
|
|
297
297
|
var n;
|
|
@@ -329,9 +329,9 @@ function Qn(t) {
|
|
|
329
329
|
function An(t) {
|
|
330
330
|
T(t) ? t() : t.unsubscribe();
|
|
331
331
|
}
|
|
332
|
-
var
|
|
332
|
+
var Kr = {
|
|
333
333
|
Promise: void 0
|
|
334
|
-
},
|
|
334
|
+
}, Zr = {
|
|
335
335
|
setTimeout: function(t, e) {
|
|
336
336
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
337
337
|
n[r - 2] = arguments[r];
|
|
@@ -343,7 +343,7 @@ var Jr = {
|
|
|
343
343
|
delegate: void 0
|
|
344
344
|
};
|
|
345
345
|
function Yn(t) {
|
|
346
|
-
|
|
346
|
+
Zr.setTimeout(function() {
|
|
347
347
|
throw t;
|
|
348
348
|
});
|
|
349
349
|
}
|
|
@@ -356,10 +356,10 @@ var Et = function(t) {
|
|
|
356
356
|
Z(e, t);
|
|
357
357
|
function e(n) {
|
|
358
358
|
var r = t.call(this) || this;
|
|
359
|
-
return r.isStopped = !1, n ? (r.destination = n, Qn(n) && n.add(r)) : r.destination =
|
|
359
|
+
return r.isStopped = !1, n ? (r.destination = n, Qn(n) && n.add(r)) : r.destination = ei, r;
|
|
360
360
|
}
|
|
361
361
|
return e.create = function(n, r, i) {
|
|
362
|
-
return new
|
|
362
|
+
return new sn(n, r, i);
|
|
363
363
|
}, e.prototype.next = function(n) {
|
|
364
364
|
this.isStopped || this._next(n);
|
|
365
365
|
}, e.prototype.error = function(n) {
|
|
@@ -383,7 +383,7 @@ var Et = function(t) {
|
|
|
383
383
|
this.unsubscribe();
|
|
384
384
|
}
|
|
385
385
|
}, e;
|
|
386
|
-
}(ge),
|
|
386
|
+
}(ge), Gr = function() {
|
|
387
387
|
function t(e) {
|
|
388
388
|
this.partialObserver = e;
|
|
389
389
|
}
|
|
@@ -414,7 +414,7 @@ var Et = function(t) {
|
|
|
414
414
|
ft(n);
|
|
415
415
|
}
|
|
416
416
|
}, t;
|
|
417
|
-
}(),
|
|
417
|
+
}(), sn = function(t) {
|
|
418
418
|
Z(e, t);
|
|
419
419
|
function e(n, r, i) {
|
|
420
420
|
var o = t.call(this) || this, s;
|
|
@@ -422,29 +422,29 @@ var Et = function(t) {
|
|
|
422
422
|
next: n ?? void 0,
|
|
423
423
|
error: r ?? void 0,
|
|
424
424
|
complete: i ?? void 0
|
|
425
|
-
} : s = n, o.destination = new
|
|
425
|
+
} : s = n, o.destination = new Gr(s), o;
|
|
426
426
|
}
|
|
427
427
|
return e;
|
|
428
428
|
}(Et);
|
|
429
429
|
function ft(t) {
|
|
430
430
|
Yn(t);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Xr(t) {
|
|
433
433
|
throw t;
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var ei = {
|
|
436
436
|
closed: !0,
|
|
437
437
|
next: wn,
|
|
438
|
-
error:
|
|
438
|
+
error: Xr,
|
|
439
439
|
complete: wn
|
|
440
|
-
},
|
|
440
|
+
}, ln = function() {
|
|
441
441
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
442
442
|
}();
|
|
443
|
-
function
|
|
443
|
+
function fn(t) {
|
|
444
444
|
return t;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
return t.length === 0 ?
|
|
446
|
+
function ti(t) {
|
|
447
|
+
return t.length === 0 ? fn : t.length === 1 ? t[0] : function(n) {
|
|
448
448
|
return t.reduce(function(r, i) {
|
|
449
449
|
return i(r);
|
|
450
450
|
}, n);
|
|
@@ -458,7 +458,7 @@ var D = function() {
|
|
|
458
458
|
var n = new t();
|
|
459
459
|
return n.source = this, n.operator = e, n;
|
|
460
460
|
}, t.prototype.subscribe = function(e, n, r) {
|
|
461
|
-
var i = this, o =
|
|
461
|
+
var i = this, o = ri(e) ? e : new sn(e, n, r);
|
|
462
462
|
return dt(function() {
|
|
463
463
|
var s = i, u = s.operator, c = s.source;
|
|
464
464
|
o.add(u ? u.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -472,7 +472,7 @@ var D = function() {
|
|
|
472
472
|
}, t.prototype.forEach = function(e, n) {
|
|
473
473
|
var r = this;
|
|
474
474
|
return n = On(n), new n(function(i, o) {
|
|
475
|
-
var s = new
|
|
475
|
+
var s = new sn({
|
|
476
476
|
next: function(u) {
|
|
477
477
|
try {
|
|
478
478
|
e(u);
|
|
@@ -488,12 +488,12 @@ var D = function() {
|
|
|
488
488
|
}, t.prototype._subscribe = function(e) {
|
|
489
489
|
var n;
|
|
490
490
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e);
|
|
491
|
-
}, t.prototype[
|
|
491
|
+
}, t.prototype[ln] = function() {
|
|
492
492
|
return this;
|
|
493
493
|
}, t.prototype.pipe = function() {
|
|
494
494
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
495
495
|
e[n] = arguments[n];
|
|
496
|
-
return
|
|
496
|
+
return ti(e)(this);
|
|
497
497
|
}, t.prototype.toPromise = function(e) {
|
|
498
498
|
var n = this;
|
|
499
499
|
return e = On(e), new e(function(r, i) {
|
|
@@ -512,20 +512,20 @@ var D = function() {
|
|
|
512
512
|
}();
|
|
513
513
|
function On(t) {
|
|
514
514
|
var e;
|
|
515
|
-
return (e = t ??
|
|
516
|
-
}
|
|
517
|
-
function ti(t) {
|
|
518
|
-
return t && T(t.next) && T(t.error) && T(t.complete);
|
|
515
|
+
return (e = t ?? Kr.Promise) !== null && e !== void 0 ? e : Promise;
|
|
519
516
|
}
|
|
520
517
|
function ni(t) {
|
|
521
|
-
return t && t
|
|
518
|
+
return t && T(t.next) && T(t.error) && T(t.complete);
|
|
522
519
|
}
|
|
523
520
|
function ri(t) {
|
|
521
|
+
return t && t instanceof Et || ni(t) && Qn(t);
|
|
522
|
+
}
|
|
523
|
+
function ii(t) {
|
|
524
524
|
return T(t?.lift);
|
|
525
525
|
}
|
|
526
526
|
function re(t) {
|
|
527
527
|
return function(e) {
|
|
528
|
-
if (
|
|
528
|
+
if (ii(e))
|
|
529
529
|
return e.lift(function(n) {
|
|
530
530
|
try {
|
|
531
531
|
return t(n, this);
|
|
@@ -537,9 +537,9 @@ function re(t) {
|
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
539
|
function J(t, e, n, r, i) {
|
|
540
|
-
return new
|
|
540
|
+
return new oi(t, e, n, r, i);
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var oi = function(t) {
|
|
543
543
|
Z(e, t);
|
|
544
544
|
function e(n, r, i, o, s, u) {
|
|
545
545
|
var c = t.call(this, n) || this;
|
|
@@ -574,7 +574,7 @@ var ii = function(t) {
|
|
|
574
574
|
t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
|
|
575
575
|
}
|
|
576
576
|
}, e;
|
|
577
|
-
}(Et),
|
|
577
|
+
}(Et), si = Bn(function(t) {
|
|
578
578
|
return function() {
|
|
579
579
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
580
580
|
};
|
|
@@ -585,11 +585,11 @@ var ii = function(t) {
|
|
|
585
585
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
586
586
|
}
|
|
587
587
|
return e.prototype.lift = function(n) {
|
|
588
|
-
var r = new
|
|
588
|
+
var r = new un(this, this);
|
|
589
589
|
return r.operator = n, r;
|
|
590
590
|
}, e.prototype._throwIfClosed = function() {
|
|
591
591
|
if (this.closed)
|
|
592
|
-
throw new
|
|
592
|
+
throw new si();
|
|
593
593
|
}, e.prototype.next = function(n) {
|
|
594
594
|
var r = this;
|
|
595
595
|
dt(function() {
|
|
@@ -655,9 +655,9 @@ var ii = function(t) {
|
|
|
655
655
|
var n = new D();
|
|
656
656
|
return n.source = this, n;
|
|
657
657
|
}, e.create = function(n, r) {
|
|
658
|
-
return new
|
|
658
|
+
return new un(n, r);
|
|
659
659
|
}, e;
|
|
660
|
-
}(D),
|
|
660
|
+
}(D), un = function(t) {
|
|
661
661
|
Z(e, t);
|
|
662
662
|
function e(n, r) {
|
|
663
663
|
var i = t.call(this) || this;
|
|
@@ -699,15 +699,15 @@ var ii = function(t) {
|
|
|
699
699
|
}, e.prototype.next = function(n) {
|
|
700
700
|
t.prototype.next.call(this, this._value = n);
|
|
701
701
|
}, e;
|
|
702
|
-
}(me),
|
|
702
|
+
}(me), hn = {
|
|
703
703
|
now: function() {
|
|
704
|
-
return (
|
|
704
|
+
return (hn.delegate || Date).now();
|
|
705
705
|
},
|
|
706
706
|
delegate: void 0
|
|
707
|
-
},
|
|
707
|
+
}, en = function(t) {
|
|
708
708
|
Z(e, t);
|
|
709
709
|
function e(n, r, i) {
|
|
710
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
710
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = hn);
|
|
711
711
|
var o = t.call(this) || this;
|
|
712
712
|
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
713
713
|
}
|
|
@@ -727,7 +727,7 @@ var ii = function(t) {
|
|
|
727
727
|
l && o.splice(0, l + 1);
|
|
728
728
|
}
|
|
729
729
|
}, e;
|
|
730
|
-
}(me),
|
|
730
|
+
}(me), ui = function(t) {
|
|
731
731
|
Z(e, t);
|
|
732
732
|
function e(n, r) {
|
|
733
733
|
return t.call(this) || this;
|
|
@@ -745,7 +745,7 @@ var ii = function(t) {
|
|
|
745
745
|
return clearInterval(t);
|
|
746
746
|
},
|
|
747
747
|
delegate: void 0
|
|
748
|
-
},
|
|
748
|
+
}, ci = function(t) {
|
|
749
749
|
Z(e, t);
|
|
750
750
|
function e(n, r) {
|
|
751
751
|
var i = t.call(this, n, r) || this;
|
|
@@ -787,14 +787,14 @@ var ii = function(t) {
|
|
|
787
787
|
this.work = this.state = this.scheduler = null, this.pending = !1, gt(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
|
|
788
788
|
}
|
|
789
789
|
}, e;
|
|
790
|
-
}(
|
|
790
|
+
}(ui), In = function() {
|
|
791
791
|
function t(e, n) {
|
|
792
792
|
n === void 0 && (n = t.now), this.schedulerActionCtor = e, this.now = n;
|
|
793
793
|
}
|
|
794
794
|
return t.prototype.schedule = function(e, n, r) {
|
|
795
795
|
return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(r, n);
|
|
796
|
-
}, t.now =
|
|
797
|
-
}(),
|
|
796
|
+
}, t.now = hn.now, t;
|
|
797
|
+
}(), ai = function(t) {
|
|
798
798
|
Z(e, t);
|
|
799
799
|
function e(n, r) {
|
|
800
800
|
r === void 0 && (r = In.now);
|
|
@@ -819,10 +819,10 @@ var ii = function(t) {
|
|
|
819
819
|
throw i;
|
|
820
820
|
}
|
|
821
821
|
}, e;
|
|
822
|
-
}(In), Jn = new ci
|
|
822
|
+
}(In), Jn = new ai(ci), li = Jn, fi = new D(function(t) {
|
|
823
823
|
return t.complete();
|
|
824
824
|
});
|
|
825
|
-
function
|
|
825
|
+
function hi(t) {
|
|
826
826
|
return t && T(t.schedule);
|
|
827
827
|
}
|
|
828
828
|
var Kn = function(t) {
|
|
@@ -832,7 +832,7 @@ function Zn(t) {
|
|
|
832
832
|
return T(t?.then);
|
|
833
833
|
}
|
|
834
834
|
function Gn(t) {
|
|
835
|
-
return T(t[
|
|
835
|
+
return T(t[ln]);
|
|
836
836
|
}
|
|
837
837
|
function Xn(t) {
|
|
838
838
|
return Symbol.asyncIterator && T(t?.[Symbol.asyncIterator]);
|
|
@@ -840,15 +840,15 @@ function Xn(t) {
|
|
|
840
840
|
function er(t) {
|
|
841
841
|
return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function di() {
|
|
844
844
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
845
845
|
}
|
|
846
|
-
var tr =
|
|
846
|
+
var tr = di();
|
|
847
847
|
function nr(t) {
|
|
848
848
|
return T(t?.[tr]);
|
|
849
849
|
}
|
|
850
850
|
function rr(t) {
|
|
851
|
-
return
|
|
851
|
+
return Yr(this, arguments, function() {
|
|
852
852
|
var n, r, i, o;
|
|
853
853
|
return Wn(this, function(s) {
|
|
854
854
|
switch (s.label) {
|
|
@@ -886,36 +886,36 @@ function ie(t) {
|
|
|
886
886
|
return t;
|
|
887
887
|
if (t != null) {
|
|
888
888
|
if (Gn(t))
|
|
889
|
-
return di(t);
|
|
890
|
-
if (Kn(t))
|
|
891
889
|
return pi(t);
|
|
892
|
-
if (
|
|
890
|
+
if (Kn(t))
|
|
893
891
|
return _i(t);
|
|
892
|
+
if (Zn(t))
|
|
893
|
+
return mi(t);
|
|
894
894
|
if (Xn(t))
|
|
895
895
|
return or(t);
|
|
896
896
|
if (nr(t))
|
|
897
|
-
return mi(t);
|
|
898
|
-
if (ir(t))
|
|
899
897
|
return yi(t);
|
|
898
|
+
if (ir(t))
|
|
899
|
+
return gi(t);
|
|
900
900
|
}
|
|
901
901
|
throw er(t);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function pi(t) {
|
|
904
904
|
return new D(function(e) {
|
|
905
|
-
var n = t[
|
|
905
|
+
var n = t[ln]();
|
|
906
906
|
if (T(n.subscribe))
|
|
907
907
|
return n.subscribe(e);
|
|
908
908
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function _i(t) {
|
|
912
912
|
return new D(function(e) {
|
|
913
913
|
for (var n = 0; n < t.length && !e.closed; n++)
|
|
914
914
|
e.next(t[n]);
|
|
915
915
|
e.complete();
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function mi(t) {
|
|
919
919
|
return new D(function(e) {
|
|
920
920
|
t.then(function(n) {
|
|
921
921
|
e.closed || (e.next(n), e.complete());
|
|
@@ -924,7 +924,7 @@ function _i(t) {
|
|
|
924
924
|
}).then(null, Yn);
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function yi(t) {
|
|
928
928
|
return new D(function(e) {
|
|
929
929
|
var n, r;
|
|
930
930
|
try {
|
|
@@ -947,22 +947,22 @@ function mi(t) {
|
|
|
947
947
|
}
|
|
948
948
|
function or(t) {
|
|
949
949
|
return new D(function(e) {
|
|
950
|
-
|
|
950
|
+
bi(t, e).catch(function(n) {
|
|
951
951
|
return e.error(n);
|
|
952
952
|
});
|
|
953
953
|
});
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function gi(t) {
|
|
956
956
|
return or(rr(t));
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function bi(t, e) {
|
|
959
959
|
var n, r, i, o;
|
|
960
|
-
return
|
|
960
|
+
return Qr(this, void 0, void 0, function() {
|
|
961
961
|
var s, u;
|
|
962
962
|
return Wn(this, function(c) {
|
|
963
963
|
switch (c.label) {
|
|
964
964
|
case 0:
|
|
965
|
-
c.trys.push([0, 5, 6, 11]), n =
|
|
965
|
+
c.trys.push([0, 5, 6, 11]), n = Jr(t), c.label = 1;
|
|
966
966
|
case 1:
|
|
967
967
|
return [4, n.next()];
|
|
968
968
|
case 2:
|
|
@@ -1025,13 +1025,13 @@ function ur(t, e) {
|
|
|
1025
1025
|
}, e));
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
function bi(t, e) {
|
|
1029
|
-
return ie(t).pipe(ur(e), sr(e));
|
|
1030
|
-
}
|
|
1031
1028
|
function vi(t, e) {
|
|
1032
1029
|
return ie(t).pipe(ur(e), sr(e));
|
|
1033
1030
|
}
|
|
1034
1031
|
function Si(t, e) {
|
|
1032
|
+
return ie(t).pipe(ur(e), sr(e));
|
|
1033
|
+
}
|
|
1034
|
+
function ki(t, e) {
|
|
1035
1035
|
return new D(function(n) {
|
|
1036
1036
|
var r = 0;
|
|
1037
1037
|
return e.schedule(function() {
|
|
@@ -1039,7 +1039,7 @@ function Si(t, e) {
|
|
|
1039
1039
|
});
|
|
1040
1040
|
});
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function xi(t, e) {
|
|
1043
1043
|
return new D(function(n) {
|
|
1044
1044
|
var r;
|
|
1045
1045
|
return pe(n, e, function() {
|
|
@@ -1072,28 +1072,28 @@ function cr(t, e) {
|
|
|
1072
1072
|
});
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function $i(t, e) {
|
|
1076
1076
|
return cr(rr(t), e);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Ai(t, e) {
|
|
1079
1079
|
if (t != null) {
|
|
1080
1080
|
if (Gn(t))
|
|
1081
|
-
return
|
|
1081
|
+
return vi(t, e);
|
|
1082
1082
|
if (Kn(t))
|
|
1083
|
-
return
|
|
1083
|
+
return ki(t, e);
|
|
1084
1084
|
if (Zn(t))
|
|
1085
|
-
return
|
|
1085
|
+
return Si(t, e);
|
|
1086
1086
|
if (Xn(t))
|
|
1087
1087
|
return cr(t, e);
|
|
1088
1088
|
if (nr(t))
|
|
1089
|
-
return ki(t, e);
|
|
1090
|
-
if (ir(t))
|
|
1091
1089
|
return xi(t, e);
|
|
1090
|
+
if (ir(t))
|
|
1091
|
+
return $i(t, e);
|
|
1092
1092
|
}
|
|
1093
1093
|
throw er(t);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return e ?
|
|
1095
|
+
function wi(t, e) {
|
|
1096
|
+
return e ? Ai(t, e) : ie(t);
|
|
1097
1097
|
}
|
|
1098
1098
|
function ar(t, e) {
|
|
1099
1099
|
var n = T(t) ? t : function() {
|
|
@@ -1103,7 +1103,7 @@ function ar(t, e) {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
return new D(r);
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function Oi(t) {
|
|
1107
1107
|
return t instanceof Date && !isNaN(t);
|
|
1108
1108
|
}
|
|
1109
1109
|
function I(t, e) {
|
|
@@ -1114,7 +1114,7 @@ function I(t, e) {
|
|
|
1114
1114
|
}));
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function Ei(t, e, n, r, i, o, s, u) {
|
|
1118
1118
|
var c = [], l = 0, _ = 0, m = !1, p = function() {
|
|
1119
1119
|
m && !c.length && !l && e.complete();
|
|
1120
1120
|
}, a = function(f) {
|
|
@@ -1152,14 +1152,14 @@ function lr(t, e, n) {
|
|
|
1152
1152
|
return e(r, o, i, s);
|
|
1153
1153
|
})(ie(t(r, i)));
|
|
1154
1154
|
}, n) : (typeof e == "number" && (n = e), re(function(r, i) {
|
|
1155
|
-
return
|
|
1155
|
+
return Ei(r, i, t, n);
|
|
1156
1156
|
}));
|
|
1157
1157
|
}
|
|
1158
1158
|
function fr(t, e, n) {
|
|
1159
|
-
t === void 0 && (t = 0), n === void 0 && (n =
|
|
1159
|
+
t === void 0 && (t = 0), n === void 0 && (n = li);
|
|
1160
1160
|
var r = -1;
|
|
1161
|
-
return e != null && (
|
|
1162
|
-
var o =
|
|
1161
|
+
return e != null && (hi(e) ? n = e : r = e), new D(function(i) {
|
|
1162
|
+
var o = Oi(t) ? +t - n.now() : t;
|
|
1163
1163
|
o < 0 && (o = 0);
|
|
1164
1164
|
var s = 0;
|
|
1165
1165
|
return n.schedule(function() {
|
|
@@ -1167,7 +1167,7 @@ function fr(t, e, n) {
|
|
|
1167
1167
|
}, o);
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function Ii(t, e) {
|
|
1171
1171
|
return re(function(n, r) {
|
|
1172
1172
|
var i = 0;
|
|
1173
1173
|
n.subscribe(J(r, function(o) {
|
|
@@ -1177,7 +1177,7 @@ function Ei(t, e) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
function hr(t) {
|
|
1179
1179
|
return t <= 0 ? function() {
|
|
1180
|
-
return
|
|
1180
|
+
return fi;
|
|
1181
1181
|
} : re(function(e, n) {
|
|
1182
1182
|
var r = 0;
|
|
1183
1183
|
e.subscribe(J(n, function(i) {
|
|
@@ -1185,25 +1185,25 @@ function hr(t) {
|
|
|
1185
1185
|
}));
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function Pi(t) {
|
|
1189
1189
|
return I(function() {
|
|
1190
1190
|
return t;
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function Ti(t, e) {
|
|
1194
1194
|
return lr(function(n, r) {
|
|
1195
|
-
return ie(t(n, r)).pipe(hr(1),
|
|
1195
|
+
return ie(t(n, r)).pipe(hr(1), Pi(n));
|
|
1196
1196
|
});
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Mi(t, e) {
|
|
1199
1199
|
e === void 0 && (e = Jn);
|
|
1200
1200
|
var n = fr(t, e);
|
|
1201
|
-
return
|
|
1201
|
+
return Ti(function() {
|
|
1202
1202
|
return n;
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return e === void 0 && (e =
|
|
1205
|
+
function Ri(t, e) {
|
|
1206
|
+
return e === void 0 && (e = fn), t = t ?? Di, re(function(n, r) {
|
|
1207
1207
|
var i, o = !0;
|
|
1208
1208
|
n.subscribe(J(r, function(s) {
|
|
1209
1209
|
var u = e(s);
|
|
@@ -1211,17 +1211,17 @@ function Mi(t, e) {
|
|
|
1211
1211
|
}));
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Di(t, e) {
|
|
1215
1215
|
return t === e;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Ui(t) {
|
|
1218
1218
|
t === void 0 && (t = 1 / 0);
|
|
1219
1219
|
var e;
|
|
1220
1220
|
t && typeof t == "object" ? e = t : e = {
|
|
1221
1221
|
count: t
|
|
1222
1222
|
};
|
|
1223
1223
|
var n = e.count, r = n === void 0 ? 1 / 0 : n, i = e.delay, o = e.resetOnSuccess, s = o === void 0 ? !1 : o;
|
|
1224
|
-
return r <= 0 ?
|
|
1224
|
+
return r <= 0 ? fn : re(function(u, c) {
|
|
1225
1225
|
var l = 0, _, m = function() {
|
|
1226
1226
|
var p = !1;
|
|
1227
1227
|
_ = u.subscribe(J(c, function(a) {
|
|
@@ -1265,9 +1265,9 @@ function Pn(t, e) {
|
|
|
1265
1265
|
}));
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function dn(t, e) {
|
|
1269
1269
|
e === void 0 && (e = {});
|
|
1270
|
-
var n = e.selector, r =
|
|
1270
|
+
var n = e.selector, r = Vr(e, ["selector"]);
|
|
1271
1271
|
return new D(function(i) {
|
|
1272
1272
|
var o = new AbortController(), s = o.signal, u = !0, c = r.signal;
|
|
1273
1273
|
if (c)
|
|
@@ -1497,7 +1497,7 @@ function dr(t) {
|
|
|
1497
1497
|
e += te[t[n - 2] >> 2], e += te[(t[n - 2] & 3) << 4 | t[n - 1] >> 4], e += te[(t[n - 1] & 15) << 2 | t[n] >> 6], e += te[t[n] & 63];
|
|
1498
1498
|
return n === r + 1 && (e += te[t[n - 2] >> 2], e += te[(t[n - 2] & 3) << 4], e += "=="), n === r && (e += te[t[n - 2] >> 2], e += te[(t[n - 2] & 3) << 4 | t[n - 1] >> 4], e += te[(t[n - 1] & 15) << 2], e += "="), e;
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1500
|
+
function qi(t) {
|
|
1501
1501
|
if (t.length % 4 !== 0)
|
|
1502
1502
|
throw new Error("Unable to parse base64 string.");
|
|
1503
1503
|
const e = t.indexOf("=");
|
|
@@ -1508,11 +1508,11 @@ function Ui(t) {
|
|
|
1508
1508
|
o = ht(t.charCodeAt(s)) << 18 | ht(t.charCodeAt(s + 1)) << 12 | ht(t.charCodeAt(s + 2)) << 6 | ht(t.charCodeAt(s + 3)), i[u] = o >> 16, i[u + 1] = o >> 8 & 255, i[u + 2] = o & 255;
|
|
1509
1509
|
return i.subarray(0, i.length - n);
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Ni(t, e = new TextEncoder()) {
|
|
1512
1512
|
return dr(e.encode(t));
|
|
1513
1513
|
}
|
|
1514
|
-
var pt = { exports: {} },
|
|
1515
|
-
function
|
|
1514
|
+
var pt = { exports: {} }, Ci = pt.exports, Mn;
|
|
1515
|
+
function ji() {
|
|
1516
1516
|
return Mn || (Mn = 1, function(t) {
|
|
1517
1517
|
(function(e, n) {
|
|
1518
1518
|
var r = {};
|
|
@@ -1521,7 +1521,7 @@ function Ci() {
|
|
|
1521
1521
|
for (var o in r)
|
|
1522
1522
|
i[o] = r[o];
|
|
1523
1523
|
t.exports = i;
|
|
1524
|
-
})(
|
|
1524
|
+
})(Ci, function(e) {
|
|
1525
1525
|
e.__esModule = !0, e.digestLength = 32, e.blockSize = 64;
|
|
1526
1526
|
var n = new Uint32Array([
|
|
1527
1527
|
1116352408,
|
|
@@ -1737,8 +1737,8 @@ function Ci() {
|
|
|
1737
1737
|
});
|
|
1738
1738
|
}(pt)), pt.exports;
|
|
1739
1739
|
}
|
|
1740
|
-
var
|
|
1741
|
-
const
|
|
1740
|
+
var Fi = ji();
|
|
1741
|
+
const zi = new Int32Array(4);
|
|
1742
1742
|
class B {
|
|
1743
1743
|
static hashStr(e, n = !1) {
|
|
1744
1744
|
return this.onePassHasher.start().appendStr(e).end(n);
|
|
@@ -1896,7 +1896,7 @@ class B {
|
|
|
1896
1896
|
i[14] = s;
|
|
1897
1897
|
else {
|
|
1898
1898
|
const u = s.toString(16).match(/(.*?)(.{0,8})$/);
|
|
1899
|
-
if (u === null) return e ?
|
|
1899
|
+
if (u === null) return e ? zi : "";
|
|
1900
1900
|
const c = parseInt(u[2], 16), l = parseInt(u[1], 16) || 0;
|
|
1901
1901
|
i[14] = c, i[15] = l;
|
|
1902
1902
|
}
|
|
@@ -1905,14 +1905,14 @@ class B {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
if (B.hashStr("hello") !== "5d41402abc4b2a76b9719d911017c592")
|
|
1907
1907
|
throw new Error("Md5 self test failed.");
|
|
1908
|
-
const
|
|
1908
|
+
const Hi = 36e5, Rn = Symbol.for("constructDateFrom");
|
|
1909
1909
|
function bt(t, e) {
|
|
1910
1910
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && Rn in t ? t[Rn](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
1911
1911
|
}
|
|
1912
1912
|
function Le(t, e) {
|
|
1913
1913
|
return bt(t, t);
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function Li(t, e, n) {
|
|
1916
1916
|
const r = Le(t);
|
|
1917
1917
|
if (isNaN(e)) return bt(t, NaN);
|
|
1918
1918
|
const i = r.getDate(), o = bt(t, r.getTime());
|
|
@@ -1927,19 +1927,19 @@ function Hi(t, e, n) {
|
|
|
1927
1927
|
function pr(t, e, n) {
|
|
1928
1928
|
return bt(t, +Le(t) + e);
|
|
1929
1929
|
}
|
|
1930
|
-
function Li(t, e, n) {
|
|
1931
|
-
return pr(t, e * zi);
|
|
1932
|
-
}
|
|
1933
1930
|
function Wi(t, e, n) {
|
|
1934
|
-
return pr(t, e *
|
|
1931
|
+
return pr(t, e * Hi);
|
|
1935
1932
|
}
|
|
1936
1933
|
function Bi(t, e, n) {
|
|
1937
|
-
return
|
|
1934
|
+
return pr(t, e * 1e3);
|
|
1935
|
+
}
|
|
1936
|
+
function Vi(t, e, n) {
|
|
1937
|
+
return Li(t, e * 12);
|
|
1938
1938
|
}
|
|
1939
1939
|
function Dn(t) {
|
|
1940
1940
|
return Math.trunc(+Le(t) / 1e3);
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function Qi(t, e) {
|
|
1943
1943
|
return +Le(t) < +Le(e);
|
|
1944
1944
|
}
|
|
1945
1945
|
function d(t, e, n, r = "debug", i) {
|
|
@@ -1978,7 +1978,7 @@ function Fe(t) {
|
|
|
1978
1978
|
return e;
|
|
1979
1979
|
}
|
|
1980
1980
|
const qn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
1981
|
-
function
|
|
1981
|
+
function Yi(t = 40) {
|
|
1982
1982
|
let e = "";
|
|
1983
1983
|
for (let n = 0; n < t; n++)
|
|
1984
1984
|
e += qn.charAt(
|
|
@@ -2001,7 +2001,7 @@ function vt(t, e = !1) {
|
|
|
2001
2001
|
const r = Math.floor(Math.log(t) / Math.log(n)), i = (e ? "kMGTPE" : "KMGTPE").charAt(r - 1) + (e ? "iB" : "B");
|
|
2002
2002
|
return (t / Math.pow(n, r)).toFixed(2) + " " + i;
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2004
|
+
function Ji(t) {
|
|
2005
2005
|
if (t.length === 0)
|
|
2006
2006
|
throw new Error("Input must not be of zero length");
|
|
2007
2007
|
const e = t.split(","), n = {};
|
|
@@ -2014,12 +2014,12 @@ function Yi(t) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
return n;
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Ki(t, e) {
|
|
2018
2018
|
for (const n in t)
|
|
2019
2019
|
t.hasOwnProperty(n) && e.indexOf(t[n]) >= 0 && delete t[n];
|
|
2020
2020
|
return t;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function Zi() {
|
|
2023
2023
|
return [
|
|
2024
2024
|
"iPad Simulator",
|
|
2025
2025
|
"iPhone Simulator",
|
|
@@ -2030,13 +2030,13 @@ function Ki() {
|
|
|
2030
2030
|
].includes(navigator.platform) || // iPad on iOS 13 detection
|
|
2031
2031
|
navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Gi() {
|
|
2034
2034
|
return window.location !== window.parent.location;
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function Xi(t = Date.now(), e = 60 * 1e3) {
|
|
2037
2037
|
return Math.floor(t / e);
|
|
2038
2038
|
}
|
|
2039
|
-
class
|
|
2039
|
+
class eo {
|
|
2040
2040
|
abort() {
|
|
2041
2041
|
d("Stub", "Aborted");
|
|
2042
2042
|
}
|
|
@@ -2051,13 +2051,13 @@ function z(t) {
|
|
|
2051
2051
|
return e;
|
|
2052
2052
|
}
|
|
2053
2053
|
const _e = {}, ze = {}, ce = {};
|
|
2054
|
-
function
|
|
2054
|
+
function to() {
|
|
2055
2055
|
for (const t in _e)
|
|
2056
2056
|
_e.hasOwnProperty(t) && be(t);
|
|
2057
2057
|
for (const t in ze)
|
|
2058
|
-
ze.hasOwnProperty(t) &&
|
|
2058
|
+
ze.hasOwnProperty(t) && no(t);
|
|
2059
2059
|
for (const t in ce)
|
|
2060
|
-
ce.hasOwnProperty(t) &&
|
|
2060
|
+
ce.hasOwnProperty(t) && ro(t);
|
|
2061
2061
|
}
|
|
2062
2062
|
function ne(t, e, n = 300) {
|
|
2063
2063
|
if (t && e && e instanceof Function)
|
|
@@ -2072,13 +2072,13 @@ function ne(t, e, n = 300) {
|
|
|
2072
2072
|
function be(t) {
|
|
2073
2073
|
_e[t] && (clearTimeout(_e[t]), delete _e[t]);
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function no(t) {
|
|
2076
2076
|
ze[t] && (clearInterval(ze[t]), delete ze[t]);
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function ro(t) {
|
|
2079
2079
|
ce && ce[t] && (ce[t] instanceof ge ? ce[t].unsubscribe() : ce[t](), delete ce[t]);
|
|
2080
2080
|
}
|
|
2081
|
-
const
|
|
2081
|
+
const io = {
|
|
2082
2082
|
id: "mock-authority",
|
|
2083
2083
|
name: "localhost:4200",
|
|
2084
2084
|
description: "",
|
|
@@ -2094,31 +2094,31 @@ let b = {}, w, F;
|
|
|
2094
2094
|
const v = {};
|
|
2095
2095
|
let O = "", ye = "";
|
|
2096
2096
|
const Ee = new le(""), It = new le("");
|
|
2097
|
-
let
|
|
2098
|
-
const ae = new le(!1),
|
|
2097
|
+
let pn = "/api/engine/v2";
|
|
2098
|
+
const ae = new le(!1), oo = ae.asObservable();
|
|
2099
2099
|
let St = 0;
|
|
2100
2100
|
function ve() {
|
|
2101
2101
|
return `${`${b.secure || window.location?.protocol.indexOf("https") >= 0 ? "https:" : "http:"}//${b.host || window.location?.host}`}${mr()}`;
|
|
2102
2102
|
}
|
|
2103
2103
|
function mr() {
|
|
2104
|
-
return b.version === "ACA Engine" ? "/control/api" :
|
|
2104
|
+
return b.version === "ACA Engine" ? "/control/api" : pn;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function so() {
|
|
2107
2107
|
return !!b.token_header;
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function uo() {
|
|
2110
2110
|
return O;
|
|
2111
2111
|
}
|
|
2112
2112
|
function Ss() {
|
|
2113
2113
|
return b.redirect_uri;
|
|
2114
2114
|
}
|
|
2115
2115
|
function ks(t, e = !0) {
|
|
2116
|
-
w.setItem(`${O}_x-api-key`, `${t}`), w.setItem("trusted", `${e}`),
|
|
2116
|
+
w.setItem(`${O}_x-api-key`, `${t}`), w.setItem("trusted", `${e}`), co("x-api-key", Vi(/* @__PURE__ */ new Date(), 5).valueOf());
|
|
2117
2117
|
}
|
|
2118
2118
|
function Pt() {
|
|
2119
2119
|
return xt("x-api-key", !1) || "";
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2121
|
+
function co(t, e = Wi(/* @__PURE__ */ new Date(), 2).valueOf()) {
|
|
2122
2122
|
b.ignore_api_key && t === "x-api-key" || (w.setItem(`${O}_expires_at`, `${e}`), w.setItem(`${O}_access_token`, t));
|
|
2123
2123
|
}
|
|
2124
2124
|
function Y(t = !0) {
|
|
@@ -2126,7 +2126,7 @@ function Y(t = !0) {
|
|
|
2126
2126
|
if (!w) return "";
|
|
2127
2127
|
if (Pt() && !b.ignore_api_key) return "x-api-key";
|
|
2128
2128
|
const e = w.getItem(`${O}_expires_at`) || "", n = Ee.getValue();
|
|
2129
|
-
return
|
|
2129
|
+
return Qi(+e, /* @__PURE__ */ new Date()) && (d("Auth", "Token expired. Requesting new token..."), yn(), v.load_authority || (St += 1, ne(
|
|
2130
2130
|
"re-authorise",
|
|
2131
2131
|
() => br().catch(
|
|
2132
2132
|
(r) => d("Auth", `Failed to get token: ${r}`)
|
|
@@ -2134,17 +2134,17 @@ function Y(t = !0) {
|
|
|
2134
2134
|
200 * Math.min(20, St)
|
|
2135
2135
|
)), !t) ? "" : n || w.getItem(`${O}_access_token`) || "";
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2137
|
+
function cn() {
|
|
2138
2138
|
return It.getValue() || w.getItem(`${O}_refresh_token`) || "";
|
|
2139
2139
|
}
|
|
2140
|
-
function
|
|
2140
|
+
function an() {
|
|
2141
2141
|
return b.host || window.location?.host;
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function ao() {
|
|
2144
2144
|
return !!Y();
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2147
|
-
return Ee.pipe(I((t) => !!
|
|
2146
|
+
function lo() {
|
|
2147
|
+
return Ee.pipe(I((t) => !!ao()));
|
|
2148
2148
|
}
|
|
2149
2149
|
function kt() {
|
|
2150
2150
|
return F;
|
|
@@ -2152,16 +2152,16 @@ function kt() {
|
|
|
2152
2152
|
function xs() {
|
|
2153
2153
|
return ae.getValue();
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function _n() {
|
|
2156
2156
|
return !!b.mock;
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function fo() {
|
|
2159
2159
|
return !!b.secure;
|
|
2160
2160
|
}
|
|
2161
2161
|
function $s() {
|
|
2162
|
-
return
|
|
2162
|
+
return oo;
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function mn() {
|
|
2165
2165
|
return xt("trust") === "true" || xt("trusted") === "true";
|
|
2166
2166
|
}
|
|
2167
2167
|
function yr() {
|
|
@@ -2170,24 +2170,24 @@ function yr() {
|
|
|
2170
2170
|
function xt(t, e = !0) {
|
|
2171
2171
|
let r = _r()[t];
|
|
2172
2172
|
if (w) {
|
|
2173
|
-
const i = `${
|
|
2173
|
+
const i = `${uo()}_${t}`;
|
|
2174
2174
|
r = r || w.getItem(i) || w.getItem(t) || "", e && w.setItem(i, `${r}`);
|
|
2175
2175
|
}
|
|
2176
2176
|
return r;
|
|
2177
2177
|
}
|
|
2178
2178
|
function As(t) {
|
|
2179
|
-
return b = t || b, b.token_header = b.token_header ??
|
|
2179
|
+
return b = t || b, b.token_header = b.token_header ?? Gi(), window.AbortController || (window.AbortController = eo), w = b.storage === "session" ? sessionStorage : localStorage, O = B.hashStr(b.redirect_uri, !1), gn();
|
|
2180
2180
|
}
|
|
2181
2181
|
function ws() {
|
|
2182
|
-
b = {}, F = void 0, Ee.next(""), It.next(""), ae.next(!1), O = "", ye = "",
|
|
2182
|
+
b = {}, F = void 0, Ee.next(""), It.next(""), ae.next(!1), O = "", ye = "", pn = "/api/engine/v2";
|
|
2183
2183
|
for (const t in v)
|
|
2184
2184
|
t in v && delete v[t];
|
|
2185
|
-
|
|
2185
|
+
to();
|
|
2186
2186
|
}
|
|
2187
2187
|
function gr() {
|
|
2188
|
-
return d("Auth", "Refreshing authorty."), F = void 0,
|
|
2188
|
+
return d("Auth", "Refreshing authorty."), F = void 0, gn();
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function yn() {
|
|
2191
2191
|
d("Auth", "Invalidating tokens."), w.removeItem(`${O}_access_token`), w.removeItem(`${O}_expires_at`), Ee.getValue() && Ee.next("");
|
|
2192
2192
|
}
|
|
2193
2193
|
function br(t, e = F) {
|
|
@@ -2207,18 +2207,18 @@ function br(t, e = F) {
|
|
|
2207
2207
|
d("Auth", "Failed to generate token."), r("Failed to generate token"), setTimeout(() => delete v.authorise, 200);
|
|
2208
2208
|
}
|
|
2209
2209
|
];
|
|
2210
|
-
b && b.auth_type === "password" ? (d("Auth", "Logging in with credentials."),
|
|
2210
|
+
b && b.auth_type === "password" ? (d("Auth", "Logging in with credentials."), So(b).then(
|
|
2211
2211
|
...o
|
|
2212
|
-
), St = 0) : ye ||
|
|
2212
|
+
), St = 0) : ye || cn() ? (d(
|
|
2213
2213
|
"Auth",
|
|
2214
2214
|
`Generating token with ${ye ? "code" : "refresh token"}`
|
|
2215
2215
|
), Sr().then(...o), St = 0) : e.session ? (d(
|
|
2216
2216
|
"Auth",
|
|
2217
2217
|
"Users has session. Authorising application..."
|
|
2218
|
-
),
|
|
2218
|
+
), ho(t).then(...o)) : (d("Auth", "No user session"), vr(e), r("No user session"), setTimeout(() => delete v.authorise, 200));
|
|
2219
2219
|
}
|
|
2220
2220
|
};
|
|
2221
|
-
|
|
2221
|
+
_o().then(i, i);
|
|
2222
2222
|
})), v.authorise;
|
|
2223
2223
|
}
|
|
2224
2224
|
function Os() {
|
|
@@ -2238,31 +2238,31 @@ function Os() {
|
|
|
2238
2238
|
window.location?.assign(n);
|
|
2239
2239
|
});
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function gn(t = 0) {
|
|
2242
2242
|
return v.load_authority || (v.load_authority = new Promise((e) => {
|
|
2243
2243
|
if (ae.next(!1), b.mock) {
|
|
2244
|
-
F =
|
|
2244
|
+
F = io, d("Auth", "System in mock mode"), ae.next(!0), e();
|
|
2245
2245
|
return;
|
|
2246
2246
|
}
|
|
2247
|
-
d("Auth", `Fixed: ${yr()} | Trusted: ${
|
|
2247
|
+
d("Auth", `Fixed: ${yr()} | Trusted: ${mn()}`), d("Auth", "Loading authority...");
|
|
2248
2248
|
const n = b.secure || window.location?.protocol.indexOf("https") >= 0, r = (i) => {
|
|
2249
2249
|
d("Auth", `Failed to load authority(${i})`), ae.next(!1), ne(
|
|
2250
2250
|
"load_authority",
|
|
2251
2251
|
() => {
|
|
2252
|
-
delete v.load_authority,
|
|
2252
|
+
delete v.load_authority, gn(t).then((o) => e());
|
|
2253
2253
|
},
|
|
2254
2254
|
300 * Math.min(20, ++t)
|
|
2255
2255
|
);
|
|
2256
2256
|
};
|
|
2257
|
-
|
|
2258
|
-
`${n ? "https:" : "http:"}//${
|
|
2257
|
+
dn(
|
|
2258
|
+
`${n ? "https:" : "http:"}//${an()}/auth/authority`,
|
|
2259
2259
|
{
|
|
2260
2260
|
credentials: "same-origin"
|
|
2261
2261
|
}
|
|
2262
2262
|
).subscribe(async (i) => {
|
|
2263
2263
|
if (!i.ok)
|
|
2264
2264
|
return r(await i.text().catch((s) => s));
|
|
2265
|
-
F = await i.json(),
|
|
2265
|
+
F = await i.json(), pn = /[2-9]\.[0-9]+\.[0-9]+/g.test(
|
|
2266
2266
|
F.version || ""
|
|
2267
2267
|
) ? "/api/engine/v2" : "/control/api", d("Auth", "Loaded authority.", [], "group"), F && (d("Auth", `Name: ${F.name}`), d("Auth", `Version: ${F.version}`), d("Auth", `Domain: ${F.domain}`), d("Auth", `Session: ${F.session}`), d("Auth", `Production: ${F.production}`), d(
|
|
2268
2268
|
"Auth",
|
|
@@ -2275,13 +2275,13 @@ function yn(t = 0) {
|
|
|
2275
2275
|
}, r);
|
|
2276
2276
|
})), v.load_authority;
|
|
2277
2277
|
}
|
|
2278
|
-
async function
|
|
2279
|
-
const e =
|
|
2278
|
+
async function ho(t) {
|
|
2279
|
+
const e = yo(t);
|
|
2280
2280
|
if (b.use_iframe)
|
|
2281
|
-
return
|
|
2281
|
+
return po(e);
|
|
2282
2282
|
window.location?.assign(e);
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function po(t) {
|
|
2285
2285
|
return v.iframe_auth || (v.iframe_auth = new Promise((e, n) => {
|
|
2286
2286
|
d("Auth", "Authorizing in an iFrame...");
|
|
2287
2287
|
const r = document.createElement("iframe");
|
|
@@ -2290,7 +2290,7 @@ function ho(t) {
|
|
|
2290
2290
|
if (o.origin === window.location?.origin && o.data.type === "place-os") {
|
|
2291
2291
|
const s = o.data;
|
|
2292
2292
|
if (d("Auth", "Received credentials from iFrame..."), document.body.removeChild(r), be("iframe_auth"), window.removeEventListener("message", i), delete v.iframe_auth, s.token)
|
|
2293
|
-
return e(),
|
|
2293
|
+
return e(), bn({
|
|
2294
2294
|
access_token: s.token,
|
|
2295
2295
|
...s
|
|
2296
2296
|
});
|
|
@@ -2324,12 +2324,12 @@ function vr(t) {
|
|
|
2324
2324
|
d("Auth", "Login being handled locally.");
|
|
2325
2325
|
delete v.authorise;
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function _o() {
|
|
2328
2328
|
return v.check_token || (v.check_token = new Promise(async (t, e) => {
|
|
2329
|
-
Y() ? (d("Auth", "Valid token found."), t(Y())) : (d("Auth", "No token. Checking URL for auth credentials..."), await
|
|
2329
|
+
Y() ? (d("Auth", "Valid token found."), t(Y())) : (d("Auth", "No token. Checking URL for auth credentials..."), await mo() ? t(!0) : e()), delete v.check_token;
|
|
2330
2330
|
})), v.check_token;
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function mo() {
|
|
2333
2333
|
return v.check_params || (v.check_params = new Promise((t) => {
|
|
2334
2334
|
d("Auth", "Checking for auth parameters...");
|
|
2335
2335
|
let e = _r();
|
|
@@ -2343,7 +2343,7 @@ function _o() {
|
|
|
2343
2343
|
const n = w.getItem(`${O}_nonce`) || "", r = (e.state || "").split(";");
|
|
2344
2344
|
he("state"), he("token_type");
|
|
2345
2345
|
const i = r[0];
|
|
2346
|
-
n === i ? (
|
|
2346
|
+
n === i ? (bn(e), t(!!e.access_token)) : t(!1);
|
|
2347
2347
|
} else
|
|
2348
2348
|
t(!1);
|
|
2349
2349
|
ne(
|
|
@@ -2353,28 +2353,28 @@ function _o() {
|
|
|
2353
2353
|
);
|
|
2354
2354
|
})), v.check_params;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2357
|
-
const e =
|
|
2356
|
+
function yo(t) {
|
|
2357
|
+
const e = ko();
|
|
2358
2358
|
t = t ? `${e};${t}` : e;
|
|
2359
|
-
const n = b ? (b.auth_uri || "").indexOf("?") >= 0 : !1, r = (b ? b.auth_uri : null) || "/auth/oauth/authorize", i =
|
|
2359
|
+
const n = b ? (b.auth_uri || "").indexOf("?") >= 0 : !1, r = (b ? b.auth_uri : null) || "/auth/oauth/authorize", i = mn() || b.auth_type === "auth_code" ? "code" : "token";
|
|
2360
2360
|
let o = `${r}${n ? "&" : "?"}response_type=${encodeURIComponent(i)}&client_id=${encodeURIComponent(O)}&state=${encodeURIComponent(t)}&redirect_uri=${encodeURIComponent(b.redirect_uri)}&scope=${encodeURIComponent(b.scope)}`;
|
|
2361
2361
|
if (b.auth_type === "auth_code") {
|
|
2362
|
-
const { challenge: s, verify: u } =
|
|
2362
|
+
const { challenge: s, verify: u } = go();
|
|
2363
2363
|
sessionStorage.setItem(`${O}_challenge`, s), o += "&code_challenge_method=S256", o += `&code_challenge=${u}`;
|
|
2364
2364
|
}
|
|
2365
2365
|
return o;
|
|
2366
2366
|
}
|
|
2367
2367
|
const Cn = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");
|
|
2368
|
-
function
|
|
2368
|
+
function go(t = 43) {
|
|
2369
2369
|
const e = new Array(t).fill(0).map(
|
|
2370
2370
|
() => Cn[Math.floor(Math.random() * Cn.length)]
|
|
2371
|
-
).join(""), n =
|
|
2371
|
+
).join(""), n = qi(Ni(e)), r = dr(Fi.hash(n)).split("=")[0].replace(/\//g, "_").replace(/\+/g, "-");
|
|
2372
2372
|
return { challenge: e, verify: r };
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function bo() {
|
|
2375
2375
|
let e = (b.token_uri || "/auth/token") + `?client_id=${encodeURIComponent(O)}`, n = "";
|
|
2376
|
-
if (e += `&redirect_uri=${encodeURIComponent(b.redirect_uri)}`,
|
|
2377
|
-
e += `&refresh_token=${encodeURIComponent(
|
|
2376
|
+
if (e += `&redirect_uri=${encodeURIComponent(b.redirect_uri)}`, cn()) {
|
|
2377
|
+
e += `&refresh_token=${encodeURIComponent(cn())}`, e += "&grant_type=refresh_token";
|
|
2378
2378
|
const r = e.split("?");
|
|
2379
2379
|
e = r[0], n = r[1];
|
|
2380
2380
|
} else {
|
|
@@ -2384,7 +2384,7 @@ function go() {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
return [e, n];
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function vo(t) {
|
|
2388
2388
|
const e = t.token_uri || "/auth/token", n = z({
|
|
2389
2389
|
grant_type: "password",
|
|
2390
2390
|
client_id: O,
|
|
@@ -2398,10 +2398,10 @@ function bo(t) {
|
|
|
2398
2398
|
return `${e}?${n}`;
|
|
2399
2399
|
}
|
|
2400
2400
|
function Sr() {
|
|
2401
|
-
return kr(...
|
|
2401
|
+
return kr(...bo());
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2404
|
-
return kr(
|
|
2403
|
+
function So(t) {
|
|
2404
|
+
return kr(vo(t));
|
|
2405
2405
|
}
|
|
2406
2406
|
function kr(t, e = "") {
|
|
2407
2407
|
return v.generate_tokens || (v.generate_tokens = new Promise((n, r) => {
|
|
@@ -2409,7 +2409,7 @@ function kr(t, e = "") {
|
|
|
2409
2409
|
const i = (o) => {
|
|
2410
2410
|
d("Auth", "Error generating new tokens.", o), w.removeItem(`${O}_refresh_token`), It.next(""), r(), delete v.generate_tokens;
|
|
2411
2411
|
};
|
|
2412
|
-
|
|
2412
|
+
dn(t, {
|
|
2413
2413
|
method: "POST",
|
|
2414
2414
|
body: e,
|
|
2415
2415
|
headers: {
|
|
@@ -2418,16 +2418,16 @@ function kr(t, e = "") {
|
|
|
2418
2418
|
}).subscribe(async (o) => {
|
|
2419
2419
|
if (!o.ok) return i(o);
|
|
2420
2420
|
const s = await o.json();
|
|
2421
|
-
|
|
2421
|
+
bn(s), n(), delete v.generate_tokens;
|
|
2422
2422
|
}, i);
|
|
2423
2423
|
})), v.generate_tokens;
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2426
|
-
const e =
|
|
2425
|
+
function bn(t) {
|
|
2426
|
+
const e = Bi(
|
|
2427
2427
|
/* @__PURE__ */ new Date(),
|
|
2428
2428
|
Math.max(60, parseInt(t.expires_in, 10) - 300)
|
|
2429
2429
|
);
|
|
2430
|
-
d("Auth", "Tokens generated storing..."),
|
|
2430
|
+
d("Auth", "Tokens generated storing..."), mn() && (t.access_token && (w.setItem(
|
|
2431
2431
|
`${O}_access_token`,
|
|
2432
2432
|
t.access_token
|
|
2433
2433
|
), he("access_token")), t.refresh_token && (w.setItem(
|
|
@@ -2435,8 +2435,8 @@ function gn(t) {
|
|
|
2435
2435
|
t.refresh_token
|
|
2436
2436
|
), he("refresh_token"))), t.expires_in && (w.setItem(`${O}_expires_at`, `${e.valueOf()}`), he("expires_in")), ae.next(!0), Ee.next(t.access_token || ""), It.next(t.refresh_token || "");
|
|
2437
2437
|
}
|
|
2438
|
-
function
|
|
2439
|
-
const t =
|
|
2438
|
+
function ko() {
|
|
2439
|
+
const t = Yi();
|
|
2440
2440
|
return w.setItem(`${O}_nonce`, t), t;
|
|
2441
2441
|
}
|
|
2442
2442
|
const Tt = {};
|
|
@@ -2448,7 +2448,7 @@ function Es(t) {
|
|
|
2448
2448
|
xr = t;
|
|
2449
2449
|
}
|
|
2450
2450
|
function Is(t, e = Tt) {
|
|
2451
|
-
|
|
2451
|
+
xo(t.method, t.path, e);
|
|
2452
2452
|
const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
|
|
2453
2453
|
...t,
|
|
2454
2454
|
path_parts: r,
|
|
@@ -2458,19 +2458,19 @@ function Is(t, e = Tt) {
|
|
|
2458
2458
|
};
|
|
2459
2459
|
e[n] = i, d("HTTP(M)", `+ ${t.method} ${t.path}`);
|
|
2460
2460
|
}
|
|
2461
|
-
function
|
|
2461
|
+
function xo(t, e, n = Tt) {
|
|
2462
2462
|
const r = `${t}|${e}`;
|
|
2463
2463
|
n[r] && (delete n[r], d("HTTP(M)", `- ${t} ${e}`));
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2466
|
-
const i =
|
|
2465
|
+
function $o(t, e, n, r = Tt) {
|
|
2466
|
+
const i = Ao(t, e, r);
|
|
2467
2467
|
if (i) {
|
|
2468
|
-
const o =
|
|
2469
|
-
return
|
|
2468
|
+
const o = wo(e, i, n);
|
|
2469
|
+
return Oo(i, o);
|
|
2470
2470
|
}
|
|
2471
2471
|
return xr(t, e);
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function Ao(t, e, n = Tt) {
|
|
2474
2474
|
const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), o = Object.keys(
|
|
2475
2475
|
n
|
|
2476
2476
|
).reduce((s, u) => (u.indexOf(`${t}|`) === 0 && s.push(n[u]), s), []);
|
|
@@ -2487,7 +2487,7 @@ function $o(t, e, n = Tt) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
return null;
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function wo(t, e, n) {
|
|
2491
2491
|
const r = t.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").split("?"), i = r[0].replace(/^\//, ""), o = r[1] || "", s = Fe(o), u = i.split("/"), c = {};
|
|
2492
2492
|
for (let _ = 0; _ < e.path_structure.length; _++) {
|
|
2493
2493
|
const m = e.path_structure[_];
|
|
@@ -2504,7 +2504,7 @@ function Ao(t, e, n) {
|
|
|
2504
2504
|
};
|
|
2505
2505
|
return d("HTTP(M)", `MATCHED ${l.method}:`, l), l;
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function Oo(t, e) {
|
|
2508
2508
|
let n;
|
|
2509
2509
|
try {
|
|
2510
2510
|
n = t.callback ? t.callback(e) : t.metadata;
|
|
@@ -2512,10 +2512,10 @@ function wo(t, e) {
|
|
|
2512
2512
|
throw d("HTTP(M)", `ERROR ${e.method}:`, [e.url, s]), s;
|
|
2513
2513
|
}
|
|
2514
2514
|
const r = t.delay_variance || 100, i = t.delay || 300, o = Math.floor(Math.random() * r - r / 2) + i;
|
|
2515
|
-
return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]),
|
|
2515
|
+
return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]), wi([n]).pipe(Mi(Math.max(200, o)));
|
|
2516
2516
|
}
|
|
2517
2517
|
const $r = {};
|
|
2518
|
-
function
|
|
2518
|
+
function Eo(t, e = $r) {
|
|
2519
2519
|
return e[t] || {};
|
|
2520
2520
|
}
|
|
2521
2521
|
function ee(t, e, n = Ve) {
|
|
@@ -2533,7 +2533,7 @@ function Mt(t, e, n, r = Ve) {
|
|
|
2533
2533
|
function Be(t, e, n = Ve) {
|
|
2534
2534
|
return e || (e = { response_type: "void" }), n("DELETE", t, { response_type: "void", ...e });
|
|
2535
2535
|
}
|
|
2536
|
-
async function
|
|
2536
|
+
async function Io(t, e, n = $r) {
|
|
2537
2537
|
if (t.headers) {
|
|
2538
2538
|
const r = {};
|
|
2539
2539
|
t.headers.forEach ? t.headers.forEach((i, o) => r[o.toLowerCase()] = i) : Object.keys(t.headers).forEach(
|
|
@@ -2551,7 +2551,7 @@ async function Eo(t, e, n = $r) {
|
|
|
2551
2551
|
return await t.json().catch(() => ({}));
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
|
-
const Ar = () => (
|
|
2554
|
+
const Ar = () => (yn(), gr().then(
|
|
2555
2555
|
() => Promise.resolve(),
|
|
2556
2556
|
() => new Promise((t) => {
|
|
2557
2557
|
setTimeout(() => {
|
|
@@ -2559,13 +2559,13 @@ const Ar = () => (mn(), gr().then(
|
|
|
2559
2559
|
}, 1e3);
|
|
2560
2560
|
})
|
|
2561
2561
|
));
|
|
2562
|
-
function Ve(t, e, n, r =
|
|
2562
|
+
function Ve(t, e, n, r = _n, i = $o, o = Io) {
|
|
2563
2563
|
if (r()) {
|
|
2564
2564
|
const s = i(t, e, n?.body);
|
|
2565
2565
|
if (s) return s;
|
|
2566
2566
|
}
|
|
2567
|
-
return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"),
|
|
2568
|
-
|
|
2567
|
+
return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), lo().pipe(
|
|
2568
|
+
Ii((s) => s),
|
|
2569
2569
|
hr(1),
|
|
2570
2570
|
Pn((s) => {
|
|
2571
2571
|
Y() === "x-api-key" ? n.headers["X-API-Key"] = Pt() : n.headers.Authorization = `Bearer ${Y()}`;
|
|
@@ -2574,10 +2574,10 @@ function Ve(t, e, n, r = pn, i = xo, o = Eo) {
|
|
|
2574
2574
|
method: t,
|
|
2575
2575
|
credentials: "same-origin"
|
|
2576
2576
|
};
|
|
2577
|
-
return ["POST", "PUT", "PATCH"].includes(t) && n.body !== void 0 && (u.body = typeof n.body == "string" ? n.body : JSON.stringify(n.body)),
|
|
2577
|
+
return ["POST", "PUT", "PATCH"].includes(t) && n.body !== void 0 && (u.body = typeof n.body == "string" ? n.body : JSON.stringify(n.body)), dn(e, u);
|
|
2578
2578
|
}),
|
|
2579
2579
|
Pn((s) => s.ok ? o(s, n.response_type) : ar(s)),
|
|
2580
|
-
|
|
2580
|
+
Ui({
|
|
2581
2581
|
count: 4,
|
|
2582
2582
|
delay: (s, u) => new D((c) => {
|
|
2583
2583
|
if (s.status === 511) {
|
|
@@ -2618,10 +2618,10 @@ class H {
|
|
|
2618
2618
|
*/
|
|
2619
2619
|
toJSON() {
|
|
2620
2620
|
const e = { ...this };
|
|
2621
|
-
return e.version = this.version, delete e.created_at,
|
|
2621
|
+
return e.version = this.version, delete e.created_at, Ki(e, [void 0, null, ""]);
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
|
-
class
|
|
2624
|
+
class Po extends H {
|
|
2625
2625
|
// Dashboard to show this alert on
|
|
2626
2626
|
alert_dashboard_id;
|
|
2627
2627
|
// Details of the dashboard assigned
|
|
@@ -2647,7 +2647,7 @@ class Io extends H {
|
|
|
2647
2647
|
}, this.severity = e.severity || "low", this.alert_type = e.alert_type || "threshold", this.debounce_period = e.debounce_period || 0, this.alert_dashboard_id = e.alert_dashboard_id || "", this.alert_dashboard_details = e.alert_dashboard_details || void 0;
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
class
|
|
2650
|
+
class To extends H {
|
|
2651
2651
|
// Domain authority that the dashboard exists under
|
|
2652
2652
|
authority_id;
|
|
2653
2653
|
// Description of the dashboard's purpose
|
|
@@ -2660,7 +2660,7 @@ class Po extends H {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
const Pe = "alert_dashboards";
|
|
2662
2662
|
function Rt(t) {
|
|
2663
|
-
return new
|
|
2663
|
+
return new To(t);
|
|
2664
2664
|
}
|
|
2665
2665
|
function Ps(t = {}) {
|
|
2666
2666
|
return A({
|
|
@@ -2707,7 +2707,7 @@ function Us(t) {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
const Qe = "alerts";
|
|
2709
2709
|
function Ye(t) {
|
|
2710
|
-
return new
|
|
2710
|
+
return new Po(t);
|
|
2711
2711
|
}
|
|
2712
2712
|
function qs(t = {}) {
|
|
2713
2713
|
return A({
|
|
@@ -2745,7 +2745,7 @@ function js(t) {
|
|
|
2745
2745
|
function Fs(t, e = {}) {
|
|
2746
2746
|
return P({ id: t, query_params: e, path: Qe });
|
|
2747
2747
|
}
|
|
2748
|
-
class
|
|
2748
|
+
class Mo extends H {
|
|
2749
2749
|
/** Unique identifier of the application */
|
|
2750
2750
|
uid;
|
|
2751
2751
|
/** Secret associated with the application */
|
|
@@ -2776,7 +2776,7 @@ function A(t) {
|
|
|
2776
2776
|
const { query_params: e, fn: n, path: r, endpoint: i } = t, o = z(e), s = `${i || ve()}${r ? "/" + r : ""}${o ? "?" + o : ""}`;
|
|
2777
2777
|
return ee(s).pipe(
|
|
2778
2778
|
I((u) => {
|
|
2779
|
-
const c =
|
|
2779
|
+
const c = Ro(s, o, r);
|
|
2780
2780
|
return {
|
|
2781
2781
|
total: c.total || 0,
|
|
2782
2782
|
next: c.next ? () => A({
|
|
@@ -2824,8 +2824,8 @@ function P(t) {
|
|
|
2824
2824
|
const { id: e, query_params: n, path: r } = t, i = z(n), o = `${ve()}/${r}/${e}${i ? "?" + i : ""}`;
|
|
2825
2825
|
return Be(o);
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2828
|
-
const r =
|
|
2827
|
+
function Ro(t, e, n) {
|
|
2828
|
+
const r = Eo(
|
|
2829
2829
|
t[0] === "/" ? `${location.origin}${t}` : t
|
|
2830
2830
|
), i = {
|
|
2831
2831
|
total: 0,
|
|
@@ -2835,11 +2835,11 @@ function Mo(t, e, n) {
|
|
|
2835
2835
|
const o = +(r["x-total-count"] || 0);
|
|
2836
2836
|
(e.length < 2 || e.length < 12 && e.indexOf("offset=") >= 0) && (wr[n] = o), Or[n] = o, i.total = o;
|
|
2837
2837
|
}
|
|
2838
|
-
return r && r.link && (jn =
|
|
2838
|
+
return r && r.link && (jn = Ji(r.link || "").next, i.next = Fe(jn.split("?")[1])), i;
|
|
2839
2839
|
}
|
|
2840
2840
|
const Je = "oauth_apps";
|
|
2841
2841
|
function Ut(t) {
|
|
2842
|
-
return new
|
|
2842
|
+
return new Mo(t);
|
|
2843
2843
|
}
|
|
2844
2844
|
function Ls(t = {}) {
|
|
2845
2845
|
return A({ query_params: t, fn: Ut, path: Je });
|
|
@@ -2863,8 +2863,8 @@ function Vs(t) {
|
|
|
2863
2863
|
function Qs(t, e = {}) {
|
|
2864
2864
|
return P({ id: t, query_params: e, path: Je });
|
|
2865
2865
|
}
|
|
2866
|
-
var
|
|
2867
|
-
class
|
|
2866
|
+
var Do = /* @__PURE__ */ ((t) => (t[t.Certificate = 0] = "Certificate", t[t.NoAuth = 1] = "NoAuth", t[t.UserPassword = 2] = "UserPassword", t))(Do || {});
|
|
2867
|
+
class Uo extends H {
|
|
2868
2868
|
/** Unique identifier for the Broker */
|
|
2869
2869
|
id;
|
|
2870
2870
|
/** Name of the Broker */
|
|
@@ -2895,7 +2895,7 @@ class Do extends H {
|
|
|
2895
2895
|
}
|
|
2896
2896
|
const Ke = "brokers";
|
|
2897
2897
|
function qt(t) {
|
|
2898
|
-
return new
|
|
2898
|
+
return new Uo(t);
|
|
2899
2899
|
}
|
|
2900
2900
|
function Ys(t = {}) {
|
|
2901
2901
|
return A({ query_params: t, fn: qt, path: Ke });
|
|
@@ -2919,7 +2919,7 @@ function Zs(t) {
|
|
|
2919
2919
|
function Gs(t, e = {}) {
|
|
2920
2920
|
return P({ id: t, query_params: e, path: Ke });
|
|
2921
2921
|
}
|
|
2922
|
-
class
|
|
2922
|
+
class qo {
|
|
2923
2923
|
/** Unique identifier of the application */
|
|
2924
2924
|
id;
|
|
2925
2925
|
/** List of running drivers */
|
|
@@ -2967,7 +2967,7 @@ class Uo {
|
|
|
2967
2967
|
})) || [];
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
|
-
class
|
|
2970
|
+
class No {
|
|
2971
2971
|
/** ID of the cluster associated with the process */
|
|
2972
2972
|
cluster_id;
|
|
2973
2973
|
/** Unique identifier of the application */
|
|
@@ -2998,25 +2998,28 @@ class qo {
|
|
|
2998
2998
|
this.cluster_id = e, this.id = n.id || n.driver || "", this.modules = n.modules || [], this.running = n.running || !1, this.module_instances = n.module_instances || n.edge?.status?.module_instances || n.local?.status?.module_instances || 0, this.last_exit_code = n.last_exit_code || n.edge?.status?.last_exit_code || n.local?.status?.last_exit_code || 0, this.launch_count = n.launch_count || n.edge?.status?.launch_count || n.local?.status?.launch_count || 0, this.launch_time = n.launch_time || n.edge?.status?.launch_time || n.local?.status?.launch_time || 0, this.cpu_usage = n.cpu_usage || n.percentage_cpu || n.edge?.status?.percentage_cpu || n.local?.status?.percentage_cpu || 0, this.memory_total = n.memory_total || n.edge?.status?.memory_total || n.local?.status?.memory_total || 0, this.memory_usage = n.memory_usage || n.edge?.status?.memory_usage || n.local?.status?.memory_usage || 0, this.used_memory = vt(this.memory_usage * 1024), this.total_memory = vt(this.memory_total * 1024);
|
|
2999
2999
|
}
|
|
3000
3000
|
}
|
|
3001
|
-
const
|
|
3002
|
-
function
|
|
3003
|
-
return new
|
|
3001
|
+
const Nt = "cluster";
|
|
3002
|
+
function Er(t) {
|
|
3003
|
+
return new qo(t);
|
|
3004
3004
|
}
|
|
3005
3005
|
function Xs(t = {}) {
|
|
3006
|
-
return A({ query_params: t, fn:
|
|
3006
|
+
return A({ query_params: t, fn: Er, path: Nt });
|
|
3007
3007
|
}
|
|
3008
3008
|
function eu(t, e = {}) {
|
|
3009
|
+
return $({ id: t, query_params: e, fn: Er, path: Nt });
|
|
3010
|
+
}
|
|
3011
|
+
function tu(t, e = {}) {
|
|
3009
3012
|
return $({
|
|
3010
3013
|
id: t,
|
|
3011
3014
|
query_params: e,
|
|
3012
3015
|
fn: (n) => n.map(
|
|
3013
|
-
(r) => new
|
|
3016
|
+
(r) => new No(t, r)
|
|
3014
3017
|
),
|
|
3015
|
-
path:
|
|
3018
|
+
path: Nt
|
|
3016
3019
|
});
|
|
3017
3020
|
}
|
|
3018
|
-
function
|
|
3019
|
-
return P({ id: t, query_params: { driver: e }, path:
|
|
3021
|
+
function nu(t, e) {
|
|
3022
|
+
return P({ id: t, query_params: { driver: e }, path: Nt });
|
|
3020
3023
|
}
|
|
3021
3024
|
class Co extends H {
|
|
3022
3025
|
/** Domain name */
|
|
@@ -3038,29 +3041,29 @@ class Co extends H {
|
|
|
3038
3041
|
}
|
|
3039
3042
|
}
|
|
3040
3043
|
const Ze = "domains";
|
|
3041
|
-
function
|
|
3044
|
+
function Ct(t) {
|
|
3042
3045
|
return new Co(t);
|
|
3043
3046
|
}
|
|
3044
|
-
function
|
|
3045
|
-
return A({ query_params: t, fn:
|
|
3047
|
+
function ru(t = {}) {
|
|
3048
|
+
return A({ query_params: t, fn: Ct, path: Ze });
|
|
3046
3049
|
}
|
|
3047
|
-
function
|
|
3048
|
-
return $({ id: t, query_params: e, fn:
|
|
3050
|
+
function iu(t, e = {}) {
|
|
3051
|
+
return $({ id: t, query_params: e, fn: Ct, path: Ze });
|
|
3049
3052
|
}
|
|
3050
|
-
function
|
|
3053
|
+
function ou(t, e, n = "patch") {
|
|
3051
3054
|
return R({
|
|
3052
3055
|
id: t,
|
|
3053
3056
|
form_data: e,
|
|
3054
3057
|
query_params: {},
|
|
3055
3058
|
method: n,
|
|
3056
|
-
fn:
|
|
3059
|
+
fn: Ct,
|
|
3057
3060
|
path: Ze
|
|
3058
3061
|
});
|
|
3059
3062
|
}
|
|
3060
|
-
function
|
|
3061
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3063
|
+
function su(t) {
|
|
3064
|
+
return M({ form_data: t, query_params: {}, fn: Ct, path: Ze });
|
|
3062
3065
|
}
|
|
3063
|
-
function
|
|
3066
|
+
function uu(t, e = {}) {
|
|
3064
3067
|
return P({ id: t, query_params: e, path: Ze });
|
|
3065
3068
|
}
|
|
3066
3069
|
var Te = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Support = 1] = "Support", t[t.Admin = 2] = "Admin", t[t.NeverDisplay = 3] = "NeverDisplay", t))(Te || {});
|
|
@@ -3086,7 +3089,7 @@ class Se extends H {
|
|
|
3086
3089
|
}
|
|
3087
3090
|
}
|
|
3088
3091
|
var $t = /* @__PURE__ */ ((t) => (t[t.SSH = 0] = "SSH", t[t.Device = 1] = "Device", t[t.Service = 2] = "Service", t[t.Websocket = 3] = "Websocket", t[t.Logic = 99] = "Logic", t))($t || {});
|
|
3089
|
-
class
|
|
3092
|
+
class Ir extends H {
|
|
3090
3093
|
/** Place class name of the driver */
|
|
3091
3094
|
class_name;
|
|
3092
3095
|
/** Description of the driver functionality */
|
|
@@ -3122,41 +3125,41 @@ class Er extends H {
|
|
|
3122
3125
|
}
|
|
3123
3126
|
}
|
|
3124
3127
|
const oe = "drivers";
|
|
3125
|
-
function
|
|
3126
|
-
return new
|
|
3128
|
+
function jt(t) {
|
|
3129
|
+
return new Ir(t);
|
|
3127
3130
|
}
|
|
3128
|
-
function
|
|
3129
|
-
return A({ query_params: t, fn:
|
|
3131
|
+
function cu(t = {}) {
|
|
3132
|
+
return A({ query_params: t, fn: jt, path: oe });
|
|
3130
3133
|
}
|
|
3131
|
-
function
|
|
3132
|
-
return $({ id: t, query_params: e, fn:
|
|
3134
|
+
function au(t, e = {}) {
|
|
3135
|
+
return $({ id: t, query_params: e, fn: jt, path: oe });
|
|
3133
3136
|
}
|
|
3134
|
-
function
|
|
3137
|
+
function lu(t, e, n = "patch") {
|
|
3135
3138
|
return R({
|
|
3136
3139
|
id: t,
|
|
3137
3140
|
form_data: e,
|
|
3138
3141
|
query_params: {},
|
|
3139
3142
|
method: n,
|
|
3140
|
-
fn:
|
|
3143
|
+
fn: jt,
|
|
3141
3144
|
path: oe
|
|
3142
3145
|
});
|
|
3143
3146
|
}
|
|
3144
|
-
function
|
|
3145
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3147
|
+
function fu(t) {
|
|
3148
|
+
return M({ form_data: t, query_params: {}, fn: jt, path: oe });
|
|
3146
3149
|
}
|
|
3147
|
-
function
|
|
3150
|
+
function hu(t, e = {}) {
|
|
3148
3151
|
return P({ id: t, query_params: e, path: oe });
|
|
3149
3152
|
}
|
|
3150
|
-
function
|
|
3153
|
+
function du(t) {
|
|
3151
3154
|
return y({ id: t, task_name: "recompile", path: oe });
|
|
3152
3155
|
}
|
|
3153
|
-
function
|
|
3156
|
+
function pu(t) {
|
|
3154
3157
|
return y({ id: t, task_name: "reload", path: oe });
|
|
3155
3158
|
}
|
|
3156
|
-
function
|
|
3159
|
+
function _u(t) {
|
|
3157
3160
|
return y({ id: t, task_name: "compiled", method: "get", path: oe });
|
|
3158
3161
|
}
|
|
3159
|
-
function
|
|
3162
|
+
function mu(t) {
|
|
3160
3163
|
return y({ id: t, task_name: "readme", method: "get", path: oe });
|
|
3161
3164
|
}
|
|
3162
3165
|
class jo extends H {
|
|
@@ -3174,32 +3177,32 @@ class jo extends H {
|
|
|
3174
3177
|
}
|
|
3175
3178
|
}
|
|
3176
3179
|
const Me = "edges";
|
|
3177
|
-
function
|
|
3180
|
+
function Ft(t) {
|
|
3178
3181
|
return new jo(t);
|
|
3179
3182
|
}
|
|
3180
|
-
function
|
|
3181
|
-
return A({ query_params: t, fn:
|
|
3183
|
+
function yu(t = {}) {
|
|
3184
|
+
return A({ query_params: t, fn: Ft, path: Me });
|
|
3182
3185
|
}
|
|
3183
|
-
function
|
|
3184
|
-
return $({ id: t, query_params: e, fn:
|
|
3186
|
+
function gu(t, e = {}) {
|
|
3187
|
+
return $({ id: t, query_params: e, fn: Ft, path: Me });
|
|
3185
3188
|
}
|
|
3186
|
-
function
|
|
3189
|
+
function bu(t, e, n = "patch") {
|
|
3187
3190
|
return R({
|
|
3188
3191
|
id: t,
|
|
3189
3192
|
form_data: e,
|
|
3190
3193
|
query_params: {},
|
|
3191
3194
|
method: n,
|
|
3192
|
-
fn:
|
|
3195
|
+
fn: Ft,
|
|
3193
3196
|
path: Me
|
|
3194
3197
|
});
|
|
3195
3198
|
}
|
|
3196
|
-
function
|
|
3197
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3199
|
+
function vu(t) {
|
|
3200
|
+
return M({ form_data: t, query_params: {}, fn: Ft, path: Me });
|
|
3198
3201
|
}
|
|
3199
|
-
function
|
|
3202
|
+
function Su(t, e = {}) {
|
|
3200
3203
|
return P({ id: t, query_params: e, path: Me });
|
|
3201
3204
|
}
|
|
3202
|
-
function
|
|
3205
|
+
function ku(t, e = {}) {
|
|
3203
3206
|
return y({
|
|
3204
3207
|
id: t,
|
|
3205
3208
|
task_name: "token",
|
|
@@ -3237,32 +3240,32 @@ class Fo extends H {
|
|
|
3237
3240
|
}
|
|
3238
3241
|
}
|
|
3239
3242
|
const Ge = "ldap_auths";
|
|
3240
|
-
function
|
|
3243
|
+
function zt(t) {
|
|
3241
3244
|
return new Fo(t);
|
|
3242
3245
|
}
|
|
3243
|
-
function
|
|
3244
|
-
return A({ query_params: t, fn:
|
|
3246
|
+
function xu(t = {}) {
|
|
3247
|
+
return A({ query_params: t, fn: zt, path: Ge });
|
|
3245
3248
|
}
|
|
3246
|
-
function
|
|
3247
|
-
return $({ id: t, query_params: e, fn:
|
|
3249
|
+
function $u(t, e = {}) {
|
|
3250
|
+
return $({ id: t, query_params: e, fn: zt, path: Ge });
|
|
3248
3251
|
}
|
|
3249
|
-
function
|
|
3252
|
+
function Au(t, e, n = "patch") {
|
|
3250
3253
|
return R({
|
|
3251
3254
|
id: t,
|
|
3252
3255
|
form_data: e,
|
|
3253
3256
|
query_params: {},
|
|
3254
3257
|
method: n,
|
|
3255
|
-
fn:
|
|
3258
|
+
fn: zt,
|
|
3256
3259
|
path: Ge
|
|
3257
3260
|
});
|
|
3258
3261
|
}
|
|
3259
|
-
function
|
|
3260
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3262
|
+
function wu(t) {
|
|
3263
|
+
return M({ form_data: t, query_params: {}, fn: zt, path: Ge });
|
|
3261
3264
|
}
|
|
3262
|
-
function
|
|
3265
|
+
function Ou(t, e = {}) {
|
|
3263
3266
|
return P({ id: t, query_params: e, path: Ge });
|
|
3264
3267
|
}
|
|
3265
|
-
class
|
|
3268
|
+
class Pr {
|
|
3266
3269
|
/** ID of the parent resource associated with the metadata */
|
|
3267
3270
|
id;
|
|
3268
3271
|
/** Name/ID of the zone metadata */
|
|
@@ -3416,14 +3419,14 @@ class zo {
|
|
|
3416
3419
|
this.zone = new vn(e.zone), this.keys = e.keys || [], this.metadata = {};
|
|
3417
3420
|
const n = e.metadata || {};
|
|
3418
3421
|
for (const r of this.keys)
|
|
3419
|
-
this.metadata[r] = new
|
|
3422
|
+
this.metadata[r] = new Pr(n[r]);
|
|
3420
3423
|
}
|
|
3421
3424
|
}
|
|
3422
3425
|
const ke = "metadata";
|
|
3423
3426
|
function Xe(t) {
|
|
3424
|
-
return new
|
|
3427
|
+
return new Pr(t);
|
|
3425
3428
|
}
|
|
3426
|
-
function
|
|
3429
|
+
function Eu(t, e = {}) {
|
|
3427
3430
|
return $({
|
|
3428
3431
|
id: t,
|
|
3429
3432
|
query_params: e,
|
|
@@ -3439,7 +3442,7 @@ function Ho(t) {
|
|
|
3439
3442
|
}
|
|
3440
3443
|
return n.reverse();
|
|
3441
3444
|
}
|
|
3442
|
-
function
|
|
3445
|
+
function Iu(t, e = {}) {
|
|
3443
3446
|
return y({
|
|
3444
3447
|
id: t,
|
|
3445
3448
|
task_name: "history",
|
|
@@ -3453,7 +3456,7 @@ function Eu(t, e = {}) {
|
|
|
3453
3456
|
path: ke
|
|
3454
3457
|
});
|
|
3455
3458
|
}
|
|
3456
|
-
function
|
|
3459
|
+
function Pu(t, e, n = {}) {
|
|
3457
3460
|
return $({
|
|
3458
3461
|
id: t,
|
|
3459
3462
|
query_params: { ...n, name: e },
|
|
@@ -3461,7 +3464,7 @@ function Iu(t, e, n = {}) {
|
|
|
3461
3464
|
path: ke
|
|
3462
3465
|
});
|
|
3463
3466
|
}
|
|
3464
|
-
function
|
|
3467
|
+
function Tu(t, e, n = "put") {
|
|
3465
3468
|
return R({
|
|
3466
3469
|
id: t,
|
|
3467
3470
|
form_data: e,
|
|
@@ -3471,13 +3474,13 @@ function Pu(t, e, n = "put") {
|
|
|
3471
3474
|
path: ke
|
|
3472
3475
|
});
|
|
3473
3476
|
}
|
|
3474
|
-
function
|
|
3477
|
+
function Mu(t) {
|
|
3475
3478
|
return M({ form_data: t, query_params: {}, fn: Xe, path: ke });
|
|
3476
3479
|
}
|
|
3477
|
-
function
|
|
3480
|
+
function Ru(t, e = {}) {
|
|
3478
3481
|
return P({ id: t, query_params: e, path: ke });
|
|
3479
3482
|
}
|
|
3480
|
-
function
|
|
3483
|
+
function Du(t, e) {
|
|
3481
3484
|
return y({
|
|
3482
3485
|
id: t,
|
|
3483
3486
|
task_name: "children",
|
|
@@ -3492,7 +3495,7 @@ function Ru(t, e) {
|
|
|
3492
3495
|
path: ke
|
|
3493
3496
|
});
|
|
3494
3497
|
}
|
|
3495
|
-
class
|
|
3498
|
+
class Tr extends H {
|
|
3496
3499
|
/** Tuple of user settings of differring encryption levels for the system */
|
|
3497
3500
|
settings = [null, null, null, null];
|
|
3498
3501
|
/** Display name of the system */
|
|
@@ -3545,11 +3548,11 @@ class Pr extends H {
|
|
|
3545
3548
|
encryption_level: +n
|
|
3546
3549
|
}));
|
|
3547
3550
|
e.module_data && e.module_data instanceof Array && (this.module_list = e.module_data.map(
|
|
3548
|
-
(n) => new
|
|
3551
|
+
(n) => new Mr(n)
|
|
3549
3552
|
));
|
|
3550
3553
|
}
|
|
3551
3554
|
}
|
|
3552
|
-
class
|
|
3555
|
+
class Mr extends H {
|
|
3553
3556
|
/** Whether the associated hardware is connected */
|
|
3554
3557
|
connected;
|
|
3555
3558
|
/** Whether the module driver is running */
|
|
@@ -3597,9 +3600,9 @@ class Tr extends H {
|
|
|
3597
3600
|
return this.control_system_id;
|
|
3598
3601
|
}
|
|
3599
3602
|
constructor(e = {}) {
|
|
3600
|
-
super(e), this.driver_id = e.driver_id || e.dependency_id || "", this.control_system_id = e.control_system_id || "", this.edge_id = e.edge_id || "", this.ip = e.ip || "", this.tls = e.tls || !1, this.udp = e.udp || !1, this.port = e.port || 1, this.makebreak = e.makebreak || !1, this.uri = e.uri || "", this.custom_name = e.custom_name || "", this.role = e.role ?? $t.Logic, this.notes = e.notes || "", this.ignore_connected = e.ignore_connected || !1, this.connected = e.connected, this.running = e.running || !1, this.updated_at = e.updated_at || 0, this.system = new
|
|
3603
|
+
super(e), this.driver_id = e.driver_id || e.dependency_id || "", this.control_system_id = e.control_system_id || "", this.edge_id = e.edge_id || "", this.ip = e.ip || "", this.tls = e.tls || !1, this.udp = e.udp || !1, this.port = e.port || 1, this.makebreak = e.makebreak || !1, this.uri = e.uri || "", this.custom_name = e.custom_name || "", this.role = e.role ?? $t.Logic, this.notes = e.notes || "", this.ignore_connected = e.ignore_connected || !1, this.connected = e.connected, this.running = e.running || !1, this.updated_at = e.updated_at || 0, this.system = new Tr(
|
|
3601
3604
|
e.control_system || e.system
|
|
3602
|
-
), this.has_runtime_error = e.has_runtime_error || !1, this.error_timestamp = e.error_timestamp || 0, this.driver = new
|
|
3605
|
+
), this.has_runtime_error = e.has_runtime_error || !1, this.error_timestamp = e.error_timestamp || 0, this.driver = new Ir(e.dependency || e.driver), this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
|
|
3603
3606
|
for (const n in Te)
|
|
3604
3607
|
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Se({
|
|
3605
3608
|
parent_id: this.id,
|
|
@@ -3615,47 +3618,47 @@ class Tr extends H {
|
|
|
3615
3618
|
}
|
|
3616
3619
|
}
|
|
3617
3620
|
const K = "modules";
|
|
3618
|
-
function
|
|
3619
|
-
return new
|
|
3621
|
+
function Ht(t) {
|
|
3622
|
+
return new Mr(t);
|
|
3620
3623
|
}
|
|
3621
|
-
function
|
|
3622
|
-
return A({ query_params: t, fn:
|
|
3624
|
+
function Uu(t = {}) {
|
|
3625
|
+
return A({ query_params: t, fn: Ht, path: K });
|
|
3623
3626
|
}
|
|
3624
|
-
function
|
|
3625
|
-
return $({ id: t, query_params: e, fn:
|
|
3627
|
+
function qu(t, e = {}) {
|
|
3628
|
+
return $({ id: t, query_params: e, fn: Ht, path: K });
|
|
3626
3629
|
}
|
|
3627
|
-
function
|
|
3630
|
+
function Nu(t, e, n = "patch") {
|
|
3628
3631
|
return R({
|
|
3629
3632
|
id: t,
|
|
3630
3633
|
form_data: e,
|
|
3631
3634
|
query_params: {},
|
|
3632
3635
|
method: n,
|
|
3633
|
-
fn:
|
|
3636
|
+
fn: Ht,
|
|
3634
3637
|
path: K
|
|
3635
3638
|
});
|
|
3636
3639
|
}
|
|
3637
|
-
function
|
|
3638
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3640
|
+
function Cu(t) {
|
|
3641
|
+
return M({ form_data: t, query_params: {}, fn: Ht, path: K });
|
|
3639
3642
|
}
|
|
3640
|
-
function
|
|
3643
|
+
function ju(t, e = {}) {
|
|
3641
3644
|
return P({ id: t, query_params: e, path: K });
|
|
3642
3645
|
}
|
|
3643
|
-
function
|
|
3646
|
+
function Fu(t) {
|
|
3644
3647
|
return y({ id: t, task_name: "start", path: K });
|
|
3645
3648
|
}
|
|
3646
|
-
function
|
|
3649
|
+
function zu(t) {
|
|
3647
3650
|
return y({ id: t, task_name: "stop", path: K });
|
|
3648
3651
|
}
|
|
3649
|
-
function
|
|
3652
|
+
function Hu(t) {
|
|
3650
3653
|
return y({ id: t, task_name: "state", method: "get", path: K });
|
|
3651
3654
|
}
|
|
3652
|
-
function
|
|
3655
|
+
function Lu(t, e) {
|
|
3653
3656
|
return y({ id: t, task_name: `state${e}`, method: "get", path: K });
|
|
3654
3657
|
}
|
|
3655
|
-
function
|
|
3658
|
+
function Wu(t) {
|
|
3656
3659
|
return y({ id: t, task_name: "load", method: "post", path: K });
|
|
3657
3660
|
}
|
|
3658
|
-
function
|
|
3661
|
+
function Bu(t) {
|
|
3659
3662
|
return y({
|
|
3660
3663
|
id: t,
|
|
3661
3664
|
task_name: "settings",
|
|
@@ -3664,7 +3667,7 @@ function Wu(t) {
|
|
|
3664
3667
|
path: K
|
|
3665
3668
|
});
|
|
3666
3669
|
}
|
|
3667
|
-
function
|
|
3670
|
+
function Vu(t) {
|
|
3668
3671
|
return y({
|
|
3669
3672
|
id: t,
|
|
3670
3673
|
task_name: "error",
|
|
@@ -3706,32 +3709,32 @@ class Lo extends H {
|
|
|
3706
3709
|
}
|
|
3707
3710
|
}
|
|
3708
3711
|
const et = "oauth_auths";
|
|
3709
|
-
function
|
|
3712
|
+
function Lt(t) {
|
|
3710
3713
|
return new Lo(t);
|
|
3711
3714
|
}
|
|
3712
|
-
function
|
|
3713
|
-
return A({ query_params: t, fn:
|
|
3715
|
+
function Qu(t = {}) {
|
|
3716
|
+
return A({ query_params: t, fn: Lt, path: et });
|
|
3714
3717
|
}
|
|
3715
|
-
function
|
|
3716
|
-
return $({ id: t, query_params: e, fn:
|
|
3718
|
+
function Yu(t, e = {}) {
|
|
3719
|
+
return $({ id: t, query_params: e, fn: Lt, path: et });
|
|
3717
3720
|
}
|
|
3718
|
-
function
|
|
3721
|
+
function Ju(t, e, n = "patch") {
|
|
3719
3722
|
return R({
|
|
3720
3723
|
id: t,
|
|
3721
3724
|
form_data: e,
|
|
3722
3725
|
query_params: {},
|
|
3723
3726
|
method: n,
|
|
3724
|
-
fn:
|
|
3727
|
+
fn: Lt,
|
|
3725
3728
|
path: et
|
|
3726
3729
|
});
|
|
3727
3730
|
}
|
|
3728
|
-
function
|
|
3729
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3731
|
+
function Ku(t) {
|
|
3732
|
+
return M({ form_data: t, query_params: {}, fn: Lt, path: et });
|
|
3730
3733
|
}
|
|
3731
|
-
function
|
|
3734
|
+
function Zu(t, e = {}) {
|
|
3732
3735
|
return P({ id: t, query_params: e, path: et });
|
|
3733
3736
|
}
|
|
3734
|
-
var
|
|
3737
|
+
var Rr = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(Rr || {});
|
|
3735
3738
|
class Wo extends H {
|
|
3736
3739
|
/** Name of the folder on the server to pull the repository */
|
|
3737
3740
|
folder_name;
|
|
@@ -3756,64 +3759,64 @@ class Wo extends H {
|
|
|
3756
3759
|
return this.repo_type;
|
|
3757
3760
|
}
|
|
3758
3761
|
constructor(e = {}) {
|
|
3759
|
-
super(e), this.folder_name = e.folder_name || "", this.description = e.description || "", this.uri = e.uri || "", this.branch = e.branch || "", this.commit_hash = e.commit_hash || "", this.repo_type = e.repo_type ||
|
|
3762
|
+
super(e), this.folder_name = e.folder_name || "", this.description = e.description || "", this.uri = e.uri || "", this.branch = e.branch || "", this.commit_hash = e.commit_hash || "", this.repo_type = e.repo_type || Rr.Driver, this.username = e.username || "", this.password = e.password || "", this.root_path = e.root_path || "";
|
|
3760
3763
|
}
|
|
3761
3764
|
}
|
|
3762
3765
|
const V = "repositories";
|
|
3763
|
-
function
|
|
3766
|
+
function Wt(t) {
|
|
3764
3767
|
return new Wo(t);
|
|
3765
3768
|
}
|
|
3766
|
-
function
|
|
3767
|
-
return A({ query_params: t, fn:
|
|
3769
|
+
function Gu(t = {}) {
|
|
3770
|
+
return A({ query_params: t, fn: Wt, path: V });
|
|
3768
3771
|
}
|
|
3769
|
-
function
|
|
3770
|
-
return $({ id: t, query_params: e, fn:
|
|
3772
|
+
function Xu(t, e = {}) {
|
|
3773
|
+
return $({ id: t, query_params: e, fn: Wt, path: V });
|
|
3771
3774
|
}
|
|
3772
|
-
function
|
|
3775
|
+
function ec(t, e, n = "patch") {
|
|
3773
3776
|
return R({
|
|
3774
3777
|
id: t,
|
|
3775
3778
|
form_data: e,
|
|
3776
3779
|
query_params: {},
|
|
3777
3780
|
method: n,
|
|
3778
|
-
fn:
|
|
3781
|
+
fn: Wt,
|
|
3779
3782
|
path: V
|
|
3780
3783
|
});
|
|
3781
3784
|
}
|
|
3782
|
-
function
|
|
3783
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3785
|
+
function tc(t) {
|
|
3786
|
+
return M({ form_data: t, query_params: {}, fn: Wt, path: V });
|
|
3784
3787
|
}
|
|
3785
|
-
function
|
|
3788
|
+
function nc(t, e = {}) {
|
|
3786
3789
|
return P({ id: t, query_params: e, path: V });
|
|
3787
3790
|
}
|
|
3788
|
-
function
|
|
3791
|
+
function rc(t = {}) {
|
|
3789
3792
|
return $({
|
|
3790
3793
|
id: "interfaces",
|
|
3791
3794
|
query_params: t,
|
|
3792
3795
|
path: V
|
|
3793
3796
|
});
|
|
3794
3797
|
}
|
|
3795
|
-
function
|
|
3798
|
+
function ic(t) {
|
|
3796
3799
|
return $({
|
|
3797
3800
|
id: "remote_default_branch",
|
|
3798
3801
|
query_params: t,
|
|
3799
3802
|
path: V
|
|
3800
3803
|
});
|
|
3801
3804
|
}
|
|
3802
|
-
function
|
|
3805
|
+
function oc(t) {
|
|
3803
3806
|
return $({
|
|
3804
3807
|
id: "remote_branches",
|
|
3805
3808
|
query_params: t,
|
|
3806
3809
|
path: V
|
|
3807
3810
|
});
|
|
3808
3811
|
}
|
|
3809
|
-
function
|
|
3812
|
+
function sc(t) {
|
|
3810
3813
|
return $({
|
|
3811
3814
|
id: "remote_commits",
|
|
3812
3815
|
query_params: t,
|
|
3813
3816
|
path: V
|
|
3814
3817
|
});
|
|
3815
3818
|
}
|
|
3816
|
-
function
|
|
3819
|
+
function uc(t, e) {
|
|
3817
3820
|
return y({
|
|
3818
3821
|
id: t,
|
|
3819
3822
|
task_name: "drivers",
|
|
@@ -3822,7 +3825,7 @@ function sc(t, e) {
|
|
|
3822
3825
|
path: V
|
|
3823
3826
|
});
|
|
3824
3827
|
}
|
|
3825
|
-
function
|
|
3828
|
+
function cc(t, e) {
|
|
3826
3829
|
return y({
|
|
3827
3830
|
id: t,
|
|
3828
3831
|
task_name: "commits",
|
|
@@ -3831,7 +3834,7 @@ function uc(t, e) {
|
|
|
3831
3834
|
path: V
|
|
3832
3835
|
});
|
|
3833
3836
|
}
|
|
3834
|
-
function
|
|
3837
|
+
function ac(t) {
|
|
3835
3838
|
return y({
|
|
3836
3839
|
id: t,
|
|
3837
3840
|
task_name: "branches",
|
|
@@ -3839,7 +3842,7 @@ function cc(t) {
|
|
|
3839
3842
|
path: V
|
|
3840
3843
|
});
|
|
3841
3844
|
}
|
|
3842
|
-
function
|
|
3845
|
+
function lc(t) {
|
|
3843
3846
|
return y({
|
|
3844
3847
|
id: t,
|
|
3845
3848
|
task_name: "default_branch",
|
|
@@ -3847,7 +3850,7 @@ function ac(t) {
|
|
|
3847
3850
|
path: V
|
|
3848
3851
|
});
|
|
3849
3852
|
}
|
|
3850
|
-
function
|
|
3853
|
+
function fc(t, e) {
|
|
3851
3854
|
return y({
|
|
3852
3855
|
id: t,
|
|
3853
3856
|
task_name: "details",
|
|
@@ -3856,7 +3859,7 @@ function lc(t, e) {
|
|
|
3856
3859
|
path: V
|
|
3857
3860
|
});
|
|
3858
3861
|
}
|
|
3859
|
-
function
|
|
3862
|
+
function hc(t, e) {
|
|
3860
3863
|
return y({
|
|
3861
3864
|
id: t,
|
|
3862
3865
|
task_name: "pull",
|
|
@@ -3904,42 +3907,42 @@ class Bo extends H {
|
|
|
3904
3907
|
}
|
|
3905
3908
|
}
|
|
3906
3909
|
const tt = "saml_auths";
|
|
3907
|
-
function
|
|
3910
|
+
function Bt(t) {
|
|
3908
3911
|
return new Bo(t);
|
|
3909
3912
|
}
|
|
3910
|
-
function
|
|
3911
|
-
return A({ query_params: t, fn:
|
|
3913
|
+
function dc(t = {}) {
|
|
3914
|
+
return A({ query_params: t, fn: Bt, path: tt });
|
|
3912
3915
|
}
|
|
3913
|
-
function
|
|
3914
|
-
return $({ id: t, query_params: e, fn:
|
|
3916
|
+
function pc(t, e = {}) {
|
|
3917
|
+
return $({ id: t, query_params: e, fn: Bt, path: tt });
|
|
3915
3918
|
}
|
|
3916
|
-
function
|
|
3919
|
+
function _c(t, e, n = "patch") {
|
|
3917
3920
|
return R({
|
|
3918
3921
|
id: t,
|
|
3919
3922
|
form_data: e,
|
|
3920
3923
|
query_params: {},
|
|
3921
3924
|
method: n,
|
|
3922
|
-
fn:
|
|
3925
|
+
fn: Bt,
|
|
3923
3926
|
path: tt
|
|
3924
3927
|
});
|
|
3925
3928
|
}
|
|
3926
|
-
function
|
|
3927
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
3929
|
+
function mc(t) {
|
|
3930
|
+
return M({ form_data: t, query_params: {}, fn: Bt, path: tt });
|
|
3928
3931
|
}
|
|
3929
|
-
function
|
|
3932
|
+
function yc(t, e = {}) {
|
|
3930
3933
|
return P({ id: t, query_params: e, path: tt });
|
|
3931
3934
|
}
|
|
3932
3935
|
const De = "settings";
|
|
3933
3936
|
function nt(t) {
|
|
3934
3937
|
return new Se(t);
|
|
3935
3938
|
}
|
|
3936
|
-
function
|
|
3939
|
+
function gc(t = {}) {
|
|
3937
3940
|
return A({ query_params: t, fn: nt, path: De });
|
|
3938
3941
|
}
|
|
3939
|
-
function
|
|
3942
|
+
function bc(t, e = {}) {
|
|
3940
3943
|
return $({ id: t, query_params: e, fn: nt, path: De });
|
|
3941
3944
|
}
|
|
3942
|
-
function
|
|
3945
|
+
function vc(t, e, n = {}, r = "patch") {
|
|
3943
3946
|
return R({
|
|
3944
3947
|
id: t,
|
|
3945
3948
|
form_data: e,
|
|
@@ -3949,13 +3952,13 @@ function bc(t, e, n = {}, r = "patch") {
|
|
|
3949
3952
|
path: De
|
|
3950
3953
|
});
|
|
3951
3954
|
}
|
|
3952
|
-
function
|
|
3955
|
+
function Sc(t, e = {}) {
|
|
3953
3956
|
return M({ form_data: t, query_params: e, fn: nt, path: De });
|
|
3954
3957
|
}
|
|
3955
|
-
function
|
|
3958
|
+
function kc(t, e = {}) {
|
|
3956
3959
|
return P({ id: t, query_params: e, path: De });
|
|
3957
3960
|
}
|
|
3958
|
-
function
|
|
3961
|
+
function xc(t, e = {}) {
|
|
3959
3962
|
return y({
|
|
3960
3963
|
id: t,
|
|
3961
3964
|
task_name: "history",
|
|
@@ -3967,18 +3970,18 @@ function kc(t, e = {}) {
|
|
|
3967
3970
|
}
|
|
3968
3971
|
const U = "systems";
|
|
3969
3972
|
function xe(t) {
|
|
3970
|
-
return new
|
|
3973
|
+
return new Tr(t);
|
|
3971
3974
|
}
|
|
3972
|
-
function
|
|
3975
|
+
function $c(t = {}) {
|
|
3973
3976
|
return A({ query_params: t, fn: xe, path: U });
|
|
3974
3977
|
}
|
|
3975
|
-
function
|
|
3978
|
+
function Ac(t = {}) {
|
|
3976
3979
|
return A({ query_params: t, fn: xe, path: `${U}/with_emails` });
|
|
3977
3980
|
}
|
|
3978
|
-
function
|
|
3981
|
+
function wc(t, e = {}) {
|
|
3979
3982
|
return $({ id: t, query_params: e, fn: xe, path: U });
|
|
3980
3983
|
}
|
|
3981
|
-
function
|
|
3984
|
+
function Oc(t, e, n = "patch") {
|
|
3982
3985
|
return R({
|
|
3983
3986
|
id: t,
|
|
3984
3987
|
form_data: e,
|
|
@@ -3988,13 +3991,13 @@ function wc(t, e, n = "patch") {
|
|
|
3988
3991
|
path: U
|
|
3989
3992
|
});
|
|
3990
3993
|
}
|
|
3991
|
-
function
|
|
3994
|
+
function Ec(t) {
|
|
3992
3995
|
return M({ form_data: t, query_params: {}, fn: xe, path: U });
|
|
3993
3996
|
}
|
|
3994
|
-
function
|
|
3997
|
+
function Ic(t, e = {}) {
|
|
3995
3998
|
return P({ id: t, query_params: e, path: U });
|
|
3996
3999
|
}
|
|
3997
|
-
function
|
|
4000
|
+
function Pc(t, e, n = {}) {
|
|
3998
4001
|
return y({
|
|
3999
4002
|
id: t,
|
|
4000
4003
|
task_name: `module/${e}`,
|
|
@@ -4004,7 +4007,7 @@ function Ic(t, e, n = {}) {
|
|
|
4004
4007
|
path: U
|
|
4005
4008
|
});
|
|
4006
4009
|
}
|
|
4007
|
-
function
|
|
4010
|
+
function Tc(t, e) {
|
|
4008
4011
|
return y({
|
|
4009
4012
|
id: t,
|
|
4010
4013
|
task_name: `module/${e}`,
|
|
@@ -4014,7 +4017,7 @@ function Pc(t, e) {
|
|
|
4014
4017
|
path: U
|
|
4015
4018
|
});
|
|
4016
4019
|
}
|
|
4017
|
-
function
|
|
4020
|
+
function Mc(t) {
|
|
4018
4021
|
return y({
|
|
4019
4022
|
id: t,
|
|
4020
4023
|
task_name: "start",
|
|
@@ -4022,14 +4025,14 @@ function Tc(t) {
|
|
|
4022
4025
|
path: U
|
|
4023
4026
|
});
|
|
4024
4027
|
}
|
|
4025
|
-
function
|
|
4028
|
+
function Rc(t) {
|
|
4026
4029
|
return y({
|
|
4027
4030
|
id: t,
|
|
4028
4031
|
task_name: "stop",
|
|
4029
4032
|
path: U
|
|
4030
4033
|
});
|
|
4031
4034
|
}
|
|
4032
|
-
function
|
|
4035
|
+
function Dc(t, e, n, r = 1, i = []) {
|
|
4033
4036
|
return y({
|
|
4034
4037
|
id: t,
|
|
4035
4038
|
task_name: `${n}_${r}/${encodeURIComponent(e)}`,
|
|
@@ -4037,7 +4040,7 @@ function Rc(t, e, n, r = 1, i = []) {
|
|
|
4037
4040
|
path: U
|
|
4038
4041
|
});
|
|
4039
4042
|
}
|
|
4040
|
-
function
|
|
4043
|
+
function Uc(t, e, n = 1) {
|
|
4041
4044
|
return y({
|
|
4042
4045
|
id: t,
|
|
4043
4046
|
task_name: `${e}_${n}`,
|
|
@@ -4045,7 +4048,7 @@ function Dc(t, e, n = 1) {
|
|
|
4045
4048
|
path: U
|
|
4046
4049
|
});
|
|
4047
4050
|
}
|
|
4048
|
-
function
|
|
4051
|
+
function qc(t, e, n = 1, r) {
|
|
4049
4052
|
return y({
|
|
4050
4053
|
id: t,
|
|
4051
4054
|
task_name: `${e}_${n}/${r}`,
|
|
@@ -4053,7 +4056,7 @@ function Uc(t, e, n = 1, r) {
|
|
|
4053
4056
|
path: U
|
|
4054
4057
|
});
|
|
4055
4058
|
}
|
|
4056
|
-
function
|
|
4059
|
+
function Nc(t, e, n = 1) {
|
|
4057
4060
|
return y({
|
|
4058
4061
|
id: t,
|
|
4059
4062
|
task_name: `functions/${e}_${n}`,
|
|
@@ -4061,21 +4064,21 @@ function qc(t, e, n = 1) {
|
|
|
4061
4064
|
path: U
|
|
4062
4065
|
});
|
|
4063
4066
|
}
|
|
4064
|
-
function
|
|
4067
|
+
function Cc(t) {
|
|
4065
4068
|
return A({
|
|
4066
4069
|
query_params: {},
|
|
4067
4070
|
fn: (e) => new vn(e),
|
|
4068
4071
|
path: `${U}/${t}/zones`
|
|
4069
4072
|
});
|
|
4070
4073
|
}
|
|
4071
|
-
function
|
|
4074
|
+
function jc(t) {
|
|
4072
4075
|
return A({
|
|
4073
4076
|
query_params: {},
|
|
4074
4077
|
fn: (e) => new Re(e),
|
|
4075
4078
|
path: `${U}/${t}/triggers`
|
|
4076
4079
|
});
|
|
4077
4080
|
}
|
|
4078
|
-
function
|
|
4081
|
+
function Fc(t, e) {
|
|
4079
4082
|
return y({
|
|
4080
4083
|
id: t,
|
|
4081
4084
|
task_name: "triggers",
|
|
@@ -4085,7 +4088,7 @@ function jc(t, e) {
|
|
|
4085
4088
|
path: U
|
|
4086
4089
|
});
|
|
4087
4090
|
}
|
|
4088
|
-
function
|
|
4091
|
+
function zc(t, e) {
|
|
4089
4092
|
return y({
|
|
4090
4093
|
id: t,
|
|
4091
4094
|
task_name: `triggers/${e}`,
|
|
@@ -4093,7 +4096,7 @@ function Fc(t, e) {
|
|
|
4093
4096
|
path: U
|
|
4094
4097
|
});
|
|
4095
4098
|
}
|
|
4096
|
-
function
|
|
4099
|
+
function Hc(t) {
|
|
4097
4100
|
return y({
|
|
4098
4101
|
id: t,
|
|
4099
4102
|
task_name: "settings",
|
|
@@ -4103,32 +4106,32 @@ function zc(t) {
|
|
|
4103
4106
|
});
|
|
4104
4107
|
}
|
|
4105
4108
|
const Ue = "triggers";
|
|
4106
|
-
function
|
|
4109
|
+
function Vt(t) {
|
|
4107
4110
|
return new Re(t);
|
|
4108
4111
|
}
|
|
4109
|
-
function
|
|
4110
|
-
return A({ query_params: t, fn:
|
|
4112
|
+
function Lc(t = {}) {
|
|
4113
|
+
return A({ query_params: t, fn: Vt, path: Ue });
|
|
4111
4114
|
}
|
|
4112
|
-
function
|
|
4113
|
-
return $({ id: t, query_params: e, fn:
|
|
4115
|
+
function Wc(t, e = {}) {
|
|
4116
|
+
return $({ id: t, query_params: e, fn: Vt, path: Ue });
|
|
4114
4117
|
}
|
|
4115
|
-
function
|
|
4118
|
+
function Bc(t, e, n = "patch") {
|
|
4116
4119
|
return R({
|
|
4117
4120
|
id: t,
|
|
4118
4121
|
form_data: e,
|
|
4119
4122
|
query_params: {},
|
|
4120
4123
|
method: n,
|
|
4121
|
-
fn:
|
|
4124
|
+
fn: Vt,
|
|
4122
4125
|
path: Ue
|
|
4123
4126
|
});
|
|
4124
4127
|
}
|
|
4125
|
-
function
|
|
4126
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
4128
|
+
function Vc(t) {
|
|
4129
|
+
return M({ form_data: t, query_params: {}, fn: Vt, path: Ue });
|
|
4127
4130
|
}
|
|
4128
|
-
function
|
|
4131
|
+
function Qc(t, e = {}) {
|
|
4129
4132
|
return P({ id: t, query_params: e, path: Ue });
|
|
4130
4133
|
}
|
|
4131
|
-
function
|
|
4134
|
+
function Yc(t) {
|
|
4132
4135
|
return y({
|
|
4133
4136
|
id: t,
|
|
4134
4137
|
task_name: "instances",
|
|
@@ -4196,16 +4199,16 @@ const qe = "users";
|
|
|
4196
4199
|
function rt(t) {
|
|
4197
4200
|
return new Jo(t);
|
|
4198
4201
|
}
|
|
4199
|
-
function
|
|
4202
|
+
function Jc(t = {}) {
|
|
4200
4203
|
return A({ query_params: t, fn: rt, path: qe });
|
|
4201
4204
|
}
|
|
4202
|
-
function
|
|
4205
|
+
function Kc(t, e = {}) {
|
|
4203
4206
|
return $({ id: t, query_params: e, fn: rt, path: qe });
|
|
4204
4207
|
}
|
|
4205
|
-
function
|
|
4208
|
+
function Zc(t = {}) {
|
|
4206
4209
|
return $({ id: "current", query_params: t, fn: rt, path: qe });
|
|
4207
4210
|
}
|
|
4208
|
-
function
|
|
4211
|
+
function Gc(t, e, n = "patch") {
|
|
4209
4212
|
return R({
|
|
4210
4213
|
id: t,
|
|
4211
4214
|
form_data: e,
|
|
@@ -4215,20 +4218,20 @@ function Zc(t, e, n = "patch") {
|
|
|
4215
4218
|
path: qe
|
|
4216
4219
|
});
|
|
4217
4220
|
}
|
|
4218
|
-
function
|
|
4221
|
+
function Xc(t) {
|
|
4219
4222
|
return M({ form_data: t, query_params: {}, fn: rt, path: qe });
|
|
4220
4223
|
}
|
|
4221
|
-
function
|
|
4224
|
+
function ea(t, e = {}) {
|
|
4222
4225
|
return P({ id: t, query_params: e, path: qe });
|
|
4223
4226
|
}
|
|
4224
4227
|
const fe = "zones";
|
|
4225
|
-
function
|
|
4228
|
+
function Qt(t) {
|
|
4226
4229
|
return new vn(t);
|
|
4227
4230
|
}
|
|
4228
|
-
function ea(t = {}) {
|
|
4229
|
-
return A({ query_params: t, fn: Vt, path: fe });
|
|
4230
|
-
}
|
|
4231
4231
|
function ta(t = {}) {
|
|
4232
|
+
return A({ query_params: t, fn: Qt, path: fe });
|
|
4233
|
+
}
|
|
4234
|
+
function na(t = {}) {
|
|
4232
4235
|
return $({
|
|
4233
4236
|
id: "tags",
|
|
4234
4237
|
query_params: t,
|
|
@@ -4236,33 +4239,33 @@ function ta(t = {}) {
|
|
|
4236
4239
|
path: fe
|
|
4237
4240
|
});
|
|
4238
4241
|
}
|
|
4239
|
-
function
|
|
4240
|
-
return $({ id: t, query_params: e, fn:
|
|
4242
|
+
function ra(t, e = {}) {
|
|
4243
|
+
return $({ id: t, query_params: e, fn: Qt, path: fe });
|
|
4241
4244
|
}
|
|
4242
|
-
function
|
|
4245
|
+
function ia(t, e, n = "patch") {
|
|
4243
4246
|
return R({
|
|
4244
4247
|
id: t,
|
|
4245
4248
|
form_data: e,
|
|
4246
4249
|
query_params: {},
|
|
4247
4250
|
method: n,
|
|
4248
|
-
fn:
|
|
4251
|
+
fn: Qt,
|
|
4249
4252
|
path: fe
|
|
4250
4253
|
});
|
|
4251
4254
|
}
|
|
4252
|
-
function
|
|
4253
|
-
return M({ form_data: t, query_params: {}, fn:
|
|
4255
|
+
function oa(t) {
|
|
4256
|
+
return M({ form_data: t, query_params: {}, fn: Qt, path: fe });
|
|
4254
4257
|
}
|
|
4255
|
-
function
|
|
4258
|
+
function sa(t, e = {}) {
|
|
4256
4259
|
return P({ id: t, query_params: e, path: fe });
|
|
4257
4260
|
}
|
|
4258
|
-
function
|
|
4261
|
+
function ua(t, e = {}) {
|
|
4259
4262
|
return A({
|
|
4260
4263
|
query_params: e,
|
|
4261
4264
|
fn: (n) => new Re(n),
|
|
4262
4265
|
path: `${fe}/${t}/triggers`
|
|
4263
4266
|
});
|
|
4264
4267
|
}
|
|
4265
|
-
function
|
|
4268
|
+
function ca(t, e, n, r = 1, i = []) {
|
|
4266
4269
|
return y({
|
|
4267
4270
|
id: t,
|
|
4268
4271
|
task_name: `exec/${encodeURIComponent(
|
|
@@ -4272,7 +4275,7 @@ function ua(t, e, n, r = 1, i = []) {
|
|
|
4272
4275
|
path: fe
|
|
4273
4276
|
});
|
|
4274
4277
|
}
|
|
4275
|
-
var
|
|
4278
|
+
var Dr = /* @__PURE__ */ ((t) => (t[t.Default = 0] = "Default", t[t.Cut = 1] = "Cut", t[t.CrossFade = 2] = "CrossFade", t[t.SlideTop = 3] = "SlideTop", t[t.SlideLeft = 4] = "SlideLeft", t[t.SlideRight = 5] = "SlideRight", t[t.SlideBottom = 6] = "SlideBottom", t))(Dr || {});
|
|
4276
4279
|
class Ko {
|
|
4277
4280
|
id;
|
|
4278
4281
|
created_at;
|
|
@@ -4339,91 +4342,91 @@ class Zo {
|
|
|
4339
4342
|
valid_from;
|
|
4340
4343
|
valid_until;
|
|
4341
4344
|
constructor(e) {
|
|
4342
|
-
this.id = e.id || "", this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0, this.name = e.name || "", this.description = e.description || "", this.authority_id = e.authority_id || "", this.orientation = e.orientation || "", this.play_count = e.play_count || 0, this.play_through_count = e.play_through_count || 0, this.default_animation = e.default_animation ||
|
|
4345
|
+
this.id = e.id || "", this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0, this.name = e.name || "", this.description = e.description || "", this.authority_id = e.authority_id || "", this.orientation = e.orientation || "", this.play_count = e.play_count || 0, this.play_through_count = e.play_through_count || 0, this.default_animation = e.default_animation || Dr.Cut, this.random = e.random || !1, this.enabled = e.enabled ?? !0, this.default_duration = e.default_duration ?? 15 * 1e3, this.valid_from = e.valid_from, this.valid_until = e.valid_until, this.play_hours = e.play_hours || "", this.play_at = e.play_at || "", this.play_cron = e.play_cron || "";
|
|
4343
4346
|
}
|
|
4344
4347
|
}
|
|
4345
|
-
const
|
|
4346
|
-
function
|
|
4347
|
-
return $({ id: t, query_params: e, fn: (r) => r, path: `${
|
|
4348
|
+
const Ur = "signage";
|
|
4349
|
+
function aa(t, e = {}, n) {
|
|
4350
|
+
return $({ id: t, query_params: e, fn: (r) => r, path: `${Ur}`, options: n });
|
|
4348
4351
|
}
|
|
4349
|
-
function
|
|
4352
|
+
function la(t) {
|
|
4350
4353
|
return y({
|
|
4351
4354
|
id: t,
|
|
4352
4355
|
task_name: "metrics",
|
|
4353
4356
|
form_data: {},
|
|
4354
4357
|
method: "post",
|
|
4355
4358
|
callback: (e) => e,
|
|
4356
|
-
path:
|
|
4359
|
+
path: Ur
|
|
4357
4360
|
});
|
|
4358
4361
|
}
|
|
4359
4362
|
const it = "signage/media";
|
|
4360
|
-
function
|
|
4363
|
+
function Yt(t) {
|
|
4361
4364
|
return new Ko(t);
|
|
4362
4365
|
}
|
|
4363
|
-
function
|
|
4364
|
-
return A({ query_params: t, fn:
|
|
4366
|
+
function fa(t = {}) {
|
|
4367
|
+
return A({ query_params: t, fn: Yt, path: it });
|
|
4365
4368
|
}
|
|
4366
|
-
function
|
|
4367
|
-
return $({ id: t, query_params: e, fn:
|
|
4369
|
+
function ha(t, e = {}) {
|
|
4370
|
+
return $({ id: t, query_params: e, fn: Yt, path: it });
|
|
4368
4371
|
}
|
|
4369
|
-
function
|
|
4372
|
+
function da(t, e, n = "patch") {
|
|
4370
4373
|
return R({
|
|
4371
4374
|
id: t,
|
|
4372
4375
|
form_data: e,
|
|
4373
4376
|
query_params: {},
|
|
4374
4377
|
method: n,
|
|
4375
|
-
fn:
|
|
4378
|
+
fn: Yt,
|
|
4376
4379
|
path: it
|
|
4377
4380
|
});
|
|
4378
4381
|
}
|
|
4379
|
-
function
|
|
4382
|
+
function pa(t) {
|
|
4380
4383
|
return M({
|
|
4381
4384
|
form_data: t,
|
|
4382
4385
|
query_params: {},
|
|
4383
|
-
fn:
|
|
4386
|
+
fn: Yt,
|
|
4384
4387
|
path: it
|
|
4385
4388
|
});
|
|
4386
4389
|
}
|
|
4387
|
-
function
|
|
4390
|
+
function _a(t, e = {}) {
|
|
4388
4391
|
return P({ id: t, query_params: e, path: it });
|
|
4389
4392
|
}
|
|
4390
4393
|
const se = "signage/playlists";
|
|
4391
|
-
function
|
|
4394
|
+
function Jt(t) {
|
|
4392
4395
|
return new Zo(t);
|
|
4393
4396
|
}
|
|
4394
|
-
function
|
|
4395
|
-
return A({ query_params: t, fn:
|
|
4397
|
+
function ma(t = {}) {
|
|
4398
|
+
return A({ query_params: t, fn: Jt, path: se });
|
|
4396
4399
|
}
|
|
4397
|
-
function
|
|
4400
|
+
function ya(t, e = {}) {
|
|
4398
4401
|
return $({
|
|
4399
4402
|
id: t,
|
|
4400
4403
|
query_params: e,
|
|
4401
|
-
fn:
|
|
4404
|
+
fn: Jt,
|
|
4402
4405
|
path: se
|
|
4403
4406
|
});
|
|
4404
4407
|
}
|
|
4405
|
-
function
|
|
4408
|
+
function ga(t, e, n = "patch") {
|
|
4406
4409
|
return R({
|
|
4407
4410
|
id: t,
|
|
4408
4411
|
form_data: e,
|
|
4409
4412
|
query_params: {},
|
|
4410
4413
|
method: n,
|
|
4411
|
-
fn:
|
|
4414
|
+
fn: Jt,
|
|
4412
4415
|
path: se
|
|
4413
4416
|
});
|
|
4414
4417
|
}
|
|
4415
|
-
function
|
|
4418
|
+
function ba(t) {
|
|
4416
4419
|
return M({
|
|
4417
4420
|
form_data: t,
|
|
4418
4421
|
query_params: {},
|
|
4419
|
-
fn:
|
|
4422
|
+
fn: Jt,
|
|
4420
4423
|
path: se
|
|
4421
4424
|
});
|
|
4422
4425
|
}
|
|
4423
|
-
function
|
|
4426
|
+
function va(t, e = {}) {
|
|
4424
4427
|
return P({ id: t, query_params: e, path: se });
|
|
4425
4428
|
}
|
|
4426
|
-
function
|
|
4429
|
+
function Sa(t, e = {}) {
|
|
4427
4430
|
return y({
|
|
4428
4431
|
id: t,
|
|
4429
4432
|
task_name: "media",
|
|
@@ -4433,7 +4436,7 @@ function va(t, e = {}) {
|
|
|
4433
4436
|
path: se
|
|
4434
4437
|
});
|
|
4435
4438
|
}
|
|
4436
|
-
function
|
|
4439
|
+
function ka(t, e = {}) {
|
|
4437
4440
|
return y({
|
|
4438
4441
|
id: t,
|
|
4439
4442
|
task_name: "media/revisions",
|
|
@@ -4445,7 +4448,7 @@ function Sa(t, e = {}) {
|
|
|
4445
4448
|
path: se
|
|
4446
4449
|
});
|
|
4447
4450
|
}
|
|
4448
|
-
function
|
|
4451
|
+
function xa(t) {
|
|
4449
4452
|
return y({
|
|
4450
4453
|
id: t,
|
|
4451
4454
|
task_name: "media/approve",
|
|
@@ -4453,7 +4456,7 @@ function ka(t) {
|
|
|
4453
4456
|
path: se
|
|
4454
4457
|
});
|
|
4455
4458
|
}
|
|
4456
|
-
function
|
|
4459
|
+
function $a(t, e) {
|
|
4457
4460
|
return y({
|
|
4458
4461
|
id: t,
|
|
4459
4462
|
task_name: "media",
|
|
@@ -4463,7 +4466,7 @@ function xa(t, e) {
|
|
|
4463
4466
|
callback: (n) => new Sn(n)
|
|
4464
4467
|
});
|
|
4465
4468
|
}
|
|
4466
|
-
class
|
|
4469
|
+
class qr {
|
|
4467
4470
|
id;
|
|
4468
4471
|
question_id;
|
|
4469
4472
|
survey_id;
|
|
@@ -4473,19 +4476,19 @@ class Ur {
|
|
|
4473
4476
|
this.id = e.id || 0, this.question_id = e.question_id || 0, this.survey_id = e.survey_id || 0, this.type = e.type || "", this.answer_json = e.answer_json || {};
|
|
4474
4477
|
}
|
|
4475
4478
|
}
|
|
4476
|
-
const
|
|
4477
|
-
function
|
|
4479
|
+
const Nr = "/api/staff/v1/surveys/answers";
|
|
4480
|
+
function Aa(t = {}) {
|
|
4478
4481
|
const e = z(t);
|
|
4479
|
-
return ee(`${
|
|
4480
|
-
I((n) => n.map((r) => new
|
|
4482
|
+
return ee(`${Nr}${e ? "?" + e : ""}`).pipe(
|
|
4483
|
+
I((n) => n.map((r) => new qr(r)))
|
|
4481
4484
|
);
|
|
4482
4485
|
}
|
|
4483
|
-
function
|
|
4484
|
-
return Ie(`${
|
|
4485
|
-
I((e) => e.map((n) => new
|
|
4486
|
+
function wa(t) {
|
|
4487
|
+
return Ie(`${Nr}`, t).pipe(
|
|
4488
|
+
I((e) => e.map((n) => new qr(n)))
|
|
4486
4489
|
);
|
|
4487
4490
|
}
|
|
4488
|
-
class
|
|
4491
|
+
class Kt {
|
|
4489
4492
|
id;
|
|
4490
4493
|
survey_id;
|
|
4491
4494
|
token;
|
|
@@ -4496,33 +4499,33 @@ class Jt {
|
|
|
4496
4499
|
}
|
|
4497
4500
|
}
|
|
4498
4501
|
const ot = "/api/staff/v1/surveys/invitations";
|
|
4499
|
-
function
|
|
4502
|
+
function Oa(t = {}) {
|
|
4500
4503
|
const e = z(t);
|
|
4501
4504
|
return ee(`${ot}${e ? "?" + e : ""}`).pipe(
|
|
4502
|
-
I((n) => n.map((r) => new
|
|
4505
|
+
I((n) => n.map((r) => new Kt(r)))
|
|
4503
4506
|
);
|
|
4504
4507
|
}
|
|
4505
|
-
function
|
|
4508
|
+
function Ea(t, e = {}) {
|
|
4506
4509
|
const n = z(e);
|
|
4507
4510
|
return ee(`${ot}/${t}${n ? "?" + n : ""}`).pipe(
|
|
4508
|
-
I((r) => new
|
|
4511
|
+
I((r) => new Kt(r))
|
|
4509
4512
|
);
|
|
4510
4513
|
}
|
|
4511
|
-
function
|
|
4514
|
+
function Ia(t, e, n = "patch") {
|
|
4512
4515
|
return (n === "put" ? We : Mt)(`${ot}/${t}`, e).pipe(
|
|
4513
|
-
I((r) => new
|
|
4516
|
+
I((r) => new Kt(r))
|
|
4514
4517
|
);
|
|
4515
4518
|
}
|
|
4516
|
-
function
|
|
4519
|
+
function Pa(t) {
|
|
4517
4520
|
return Ie(`${ot}`, t).pipe(
|
|
4518
|
-
I((e) => new
|
|
4521
|
+
I((e) => new Kt(e))
|
|
4519
4522
|
);
|
|
4520
4523
|
}
|
|
4521
|
-
function
|
|
4524
|
+
function Ta(t, e = {}) {
|
|
4522
4525
|
const n = z(e);
|
|
4523
4526
|
return Be(`${ot}/${t}${n ? "?" + n : ""}`);
|
|
4524
4527
|
}
|
|
4525
|
-
class
|
|
4528
|
+
class Zt {
|
|
4526
4529
|
id;
|
|
4527
4530
|
title;
|
|
4528
4531
|
description;
|
|
@@ -4538,33 +4541,33 @@ class Kt {
|
|
|
4538
4541
|
}
|
|
4539
4542
|
}
|
|
4540
4543
|
const st = "/api/staff/v1/surveys/questions";
|
|
4541
|
-
function
|
|
4544
|
+
function Ma(t = {}) {
|
|
4542
4545
|
const e = z(t);
|
|
4543
4546
|
return ee(`${st}${e ? "?" + e : ""}`).pipe(
|
|
4544
|
-
I((n) => n.map((r) => new
|
|
4547
|
+
I((n) => n.map((r) => new Zt(r)))
|
|
4545
4548
|
);
|
|
4546
4549
|
}
|
|
4547
|
-
function
|
|
4550
|
+
function Ra(t, e = {}) {
|
|
4548
4551
|
const n = z(e);
|
|
4549
4552
|
return ee(`${st}/${t}${n ? "?" + n : ""}`).pipe(
|
|
4550
|
-
I((r) => new
|
|
4553
|
+
I((r) => new Zt(r))
|
|
4551
4554
|
);
|
|
4552
4555
|
}
|
|
4553
|
-
function
|
|
4556
|
+
function Da(t) {
|
|
4554
4557
|
return Ie(`${st}`, t).pipe(
|
|
4555
|
-
I((e) => new
|
|
4558
|
+
I((e) => new Zt(e))
|
|
4556
4559
|
);
|
|
4557
4560
|
}
|
|
4558
|
-
function
|
|
4561
|
+
function Ua(t, e, n = "patch") {
|
|
4559
4562
|
return (n === "put" ? We : Mt)(`${st}/${t}`, e).pipe(
|
|
4560
|
-
I((r) => new
|
|
4563
|
+
I((r) => new Zt(r))
|
|
4561
4564
|
);
|
|
4562
4565
|
}
|
|
4563
|
-
function
|
|
4566
|
+
function qa(t, e = {}) {
|
|
4564
4567
|
const n = z(e);
|
|
4565
4568
|
return Be(`${st}/${t}${n ? "?" + n : ""}`);
|
|
4566
4569
|
}
|
|
4567
|
-
class
|
|
4570
|
+
class Gt {
|
|
4568
4571
|
id;
|
|
4569
4572
|
title;
|
|
4570
4573
|
description;
|
|
@@ -4577,27 +4580,27 @@ class Zt {
|
|
|
4577
4580
|
}
|
|
4578
4581
|
}
|
|
4579
4582
|
const ut = "/api/staff/v1/surveys";
|
|
4580
|
-
function
|
|
4583
|
+
function Na(t = {}) {
|
|
4581
4584
|
const e = z(t);
|
|
4582
4585
|
return ee(`${ut}${e ? "?" + e : ""}`).pipe(
|
|
4583
|
-
I((n) => n.map((r) => new
|
|
4586
|
+
I((n) => n.map((r) => new Gt(r)))
|
|
4584
4587
|
);
|
|
4585
4588
|
}
|
|
4586
|
-
function
|
|
4589
|
+
function Ca(t, e = {}) {
|
|
4587
4590
|
const n = z(e);
|
|
4588
4591
|
return ee(`${ut}/${t}${n ? "?" + n : ""}`).pipe(
|
|
4589
|
-
I((r) => new
|
|
4592
|
+
I((r) => new Gt(r))
|
|
4590
4593
|
);
|
|
4591
4594
|
}
|
|
4592
|
-
function
|
|
4595
|
+
function ja(t, e, n = "patch") {
|
|
4593
4596
|
return (n === "put" ? We : Mt)(`${ut}/${t}`, e).pipe(
|
|
4594
|
-
I((r) => new
|
|
4597
|
+
I((r) => new Gt(r))
|
|
4595
4598
|
);
|
|
4596
4599
|
}
|
|
4597
|
-
function
|
|
4598
|
-
return Ie(`${ut}`, t).pipe(I((e) => new
|
|
4600
|
+
function Fa(t) {
|
|
4601
|
+
return Ie(`${ut}`, t).pipe(I((e) => new Gt(e)));
|
|
4599
4602
|
}
|
|
4600
|
-
function
|
|
4603
|
+
function za(t, e = {}) {
|
|
4601
4604
|
const n = z(e);
|
|
4602
4605
|
return Be(`${ut}/${t}${n ? "?" + n : ""}`);
|
|
4603
4606
|
}
|
|
@@ -4626,7 +4629,7 @@ var Go = {
|
|
|
4626
4629
|
o.WebSocketCtor = WebSocket;
|
|
4627
4630
|
else if (!o.WebSocketCtor)
|
|
4628
4631
|
throw new Error("no WebSocket constructor can be found");
|
|
4629
|
-
i.destination = new
|
|
4632
|
+
i.destination = new en();
|
|
4630
4633
|
}
|
|
4631
4634
|
return i;
|
|
4632
4635
|
}
|
|
@@ -4634,7 +4637,7 @@ var Go = {
|
|
|
4634
4637
|
var r = new e(this._config, this.destination);
|
|
4635
4638
|
return r.operator = n, r.source = this, r;
|
|
4636
4639
|
}, e.prototype._resetState = function() {
|
|
4637
|
-
this._socket = null, this.source || (this.destination = new
|
|
4640
|
+
this._socket = null, this.source || (this.destination = new en()), this._output = new me();
|
|
4638
4641
|
}, e.prototype.multiplex = function(n, r, i) {
|
|
4639
4642
|
var o = this;
|
|
4640
4643
|
return new D(function(s) {
|
|
@@ -4701,7 +4704,7 @@ var Go = {
|
|
|
4701
4704
|
}, function() {
|
|
4702
4705
|
var f = n._config.closingObserver;
|
|
4703
4706
|
f && f.next(void 0), l.close(), n._resetState();
|
|
4704
|
-
}), h && h instanceof
|
|
4707
|
+
}), h && h instanceof en && _.add(h.subscribe(n.destination));
|
|
4705
4708
|
}, l.onerror = function(m) {
|
|
4706
4709
|
n._resetState(), c.error(m);
|
|
4707
4710
|
}, l.onclose = function(m) {
|
|
@@ -4726,11 +4729,11 @@ var Go = {
|
|
|
4726
4729
|
var n = this._socket;
|
|
4727
4730
|
n && (n.readyState === 1 || n.readyState === 0) && n.close(), this._resetState(), t.prototype.unsubscribe.call(this);
|
|
4728
4731
|
}, e;
|
|
4729
|
-
}(
|
|
4732
|
+
}(un);
|
|
4730
4733
|
function ts(t) {
|
|
4731
4734
|
return new es(t);
|
|
4732
4735
|
}
|
|
4733
|
-
var X = /* @__PURE__ */ ((t) => (t[t.PARSE_ERROR = 0] = "PARSE_ERROR", t[t.BAD_REQUEST = 1] = "BAD_REQUEST", t[t.ACCESS_DENIED = 2] = "ACCESS_DENIED", t[t.REQUEST_FAILED = 3] = "REQUEST_FAILED", t[t.UNKNOWN_CMD = 4] = "UNKNOWN_CMD", t[t.SYS_NOT_FOUND = 5] = "SYS_NOT_FOUND", t[t.MOD_NOT_FOUND = 6] = "MOD_NOT_FOUND", t[t.UNEXPECTED_FAILURE = 7] = "UNEXPECTED_FAILURE", t))(X || {}),
|
|
4736
|
+
var X = /* @__PURE__ */ ((t) => (t[t.PARSE_ERROR = 0] = "PARSE_ERROR", t[t.BAD_REQUEST = 1] = "BAD_REQUEST", t[t.ACCESS_DENIED = 2] = "ACCESS_DENIED", t[t.REQUEST_FAILED = 3] = "REQUEST_FAILED", t[t.UNKNOWN_CMD = 4] = "UNKNOWN_CMD", t[t.SYS_NOT_FOUND = 5] = "SYS_NOT_FOUND", t[t.MOD_NOT_FOUND = 6] = "MOD_NOT_FOUND", t[t.UNEXPECTED_FAILURE = 7] = "UNEXPECTED_FAILURE", t))(X || {}), Cr = /* @__PURE__ */ ((t) => (t.Info = "info", t.Debug = "debug", t.Warning = "warn", t.Error = "error", t.Fatal = "fatal", t.Trace = "trace", t))(Cr || {});
|
|
4734
4737
|
class ns {
|
|
4735
4738
|
constructor(e, n) {
|
|
4736
4739
|
this._system = e;
|
|
@@ -4795,35 +4798,35 @@ class rs {
|
|
|
4795
4798
|
}
|
|
4796
4799
|
}
|
|
4797
4800
|
const At = {};
|
|
4798
|
-
function
|
|
4801
|
+
function Ha(t, e) {
|
|
4799
4802
|
return At[t] = new rs(e), At[t];
|
|
4800
4803
|
}
|
|
4801
4804
|
function is(t) {
|
|
4802
4805
|
return At[t];
|
|
4803
4806
|
}
|
|
4804
|
-
function
|
|
4807
|
+
function La(t) {
|
|
4805
4808
|
delete At[t];
|
|
4806
4809
|
}
|
|
4807
|
-
const
|
|
4808
|
-
let ct = 0, Q,
|
|
4810
|
+
const jr = 15;
|
|
4811
|
+
let ct = 0, Q, Fr = 0;
|
|
4809
4812
|
const L = {}, kn = {}, $e = {}, os = {}, de = new le(!1);
|
|
4810
4813
|
$e._place_os_status = de.asObservable();
|
|
4811
|
-
const
|
|
4812
|
-
$e._place_os_sync =
|
|
4813
|
-
let
|
|
4814
|
-
const at = 10 * 1e3,
|
|
4815
|
-
$e._place_os_debug_events =
|
|
4816
|
-
function
|
|
4814
|
+
const zr = new le([0, 0]);
|
|
4815
|
+
$e._place_os_sync = zr.asObservable();
|
|
4816
|
+
let Hr = Date.now(), we, wt = 0, ue = null, _t, xn = 0;
|
|
4817
|
+
const at = 10 * 1e3, Lr = new me();
|
|
4818
|
+
$e._place_os_debug_events = Lr.asObservable();
|
|
4819
|
+
function tn() {
|
|
4817
4820
|
return ve().indexOf("/control/") >= 0 ? "/control/websocket" : `${mr()}/systems/control`;
|
|
4818
4821
|
}
|
|
4819
|
-
function
|
|
4822
|
+
function Wr() {
|
|
4820
4823
|
return de.getValue();
|
|
4821
4824
|
}
|
|
4822
4825
|
function ss() {
|
|
4823
4826
|
return $e._place_os_status;
|
|
4824
4827
|
}
|
|
4825
|
-
function
|
|
4826
|
-
return $e.
|
|
4828
|
+
function Wa() {
|
|
4829
|
+
return $e._place_os_sync;
|
|
4827
4830
|
}
|
|
4828
4831
|
function us(t, e = kn, n = $e) {
|
|
4829
4832
|
const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
|
|
@@ -4858,7 +4861,7 @@ function ls(t, e = at, n = Ne) {
|
|
|
4858
4861
|
};
|
|
4859
4862
|
return n(r, e);
|
|
4860
4863
|
}
|
|
4861
|
-
function
|
|
4864
|
+
function Ba(t, e = at, n = Ne) {
|
|
4862
4865
|
const r = {
|
|
4863
4866
|
id: ++ct,
|
|
4864
4867
|
cmd: "debug",
|
|
@@ -4866,7 +4869,7 @@ function Wa(t, e = at, n = Ne) {
|
|
|
4866
4869
|
};
|
|
4867
4870
|
return n(r, e);
|
|
4868
4871
|
}
|
|
4869
|
-
function
|
|
4872
|
+
function Va(t, e = at, n = Ne) {
|
|
4870
4873
|
const r = {
|
|
4871
4874
|
id: ++ct,
|
|
4872
4875
|
cmd: "ignore",
|
|
@@ -4875,7 +4878,7 @@ function Ba(t, e = at, n = Ne) {
|
|
|
4875
4878
|
return n(r, e);
|
|
4876
4879
|
}
|
|
4877
4880
|
function Ne(t, e = at, n = 0) {
|
|
4878
|
-
const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${
|
|
4881
|
+
const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${Xi()}`;
|
|
4879
4882
|
if (L[r])
|
|
4880
4883
|
d("WS", "Request already in progress. Waiting...", t);
|
|
4881
4884
|
else {
|
|
@@ -4887,8 +4890,8 @@ function Ne(t, e = at, n = 0) {
|
|
|
4887
4890
|
(c) => s(c)
|
|
4888
4891
|
);
|
|
4889
4892
|
};
|
|
4890
|
-
if (Q &&
|
|
4891
|
-
|
|
4893
|
+
if (Q && Wr()) {
|
|
4894
|
+
_n() && ys(t, Q, os), i.resolve = o, i.reject = s;
|
|
4892
4895
|
const c = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
|
|
4893
4896
|
d(
|
|
4894
4897
|
"WS",
|
|
@@ -4906,7 +4909,7 @@ function Ne(t, e = at, n = 0) {
|
|
|
4906
4909
|
}
|
|
4907
4910
|
return L[r].promise;
|
|
4908
4911
|
}
|
|
4909
|
-
function
|
|
4912
|
+
function Br(t) {
|
|
4910
4913
|
if (t !== "pong" && t instanceof Object) {
|
|
4911
4914
|
if (t.type === "notify" && t.meta)
|
|
4912
4915
|
ds(t.meta, t.value);
|
|
@@ -4919,12 +4922,12 @@ function Wr(t) {
|
|
|
4919
4922
|
t.msg
|
|
4920
4923
|
);
|
|
4921
4924
|
const e = t.meta || { mod: "", index: "" };
|
|
4922
|
-
|
|
4925
|
+
Lr.next({
|
|
4923
4926
|
mod_id: t.mod || "<empty>",
|
|
4924
4927
|
module: `${e.mod}_${e.index}`,
|
|
4925
4928
|
class_name: t.klass || "<empty>",
|
|
4926
4929
|
message: t.msg || "<empty>",
|
|
4927
|
-
level: t.level ||
|
|
4930
|
+
level: t.level || Cr.Debug,
|
|
4928
4931
|
time: Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3)
|
|
4929
4932
|
});
|
|
4930
4933
|
} else t.type === "error" ? hs(t) : t.cmd || d("WS", "Invalid websocket message", t, "error");
|
|
@@ -4983,20 +4986,20 @@ function $n(t = 0) {
|
|
|
4983
4986
|
return ue == null && (ue = new Promise((e) => {
|
|
4984
4987
|
if (t > 40)
|
|
4985
4988
|
return location.reload();
|
|
4986
|
-
wt++,
|
|
4989
|
+
wt++, Hr = Date.now(), Q = _n() ? ms() : ps(), Q ? (d("WS(Debug)", "Authority:", [kt()]), d("WS", "Connecting to websocket..."), Q.subscribe(
|
|
4987
4990
|
(n) => {
|
|
4988
|
-
de.getValue() || (d("WS", "Connection established."), e()), de.next(!0), wt = 0,
|
|
4991
|
+
de.getValue() || (d("WS", "Connection established."), e()), de.next(!0), wt = 0, nn(), Br(n);
|
|
4989
4992
|
},
|
|
4990
4993
|
(n) => {
|
|
4991
|
-
Q = void 0, ue = null, Hn(),
|
|
4994
|
+
Q = void 0, ue = null, Hn(), nn(), _s(n);
|
|
4992
4995
|
},
|
|
4993
4996
|
() => {
|
|
4994
4997
|
Q = void 0, ue = null, Hn(), d("WS", "Connection closed by browser."), de.next(!1), Ot();
|
|
4995
4998
|
}
|
|
4996
4999
|
), we && clearInterval(we), xn = Date.now(), zn(), we = setInterval(
|
|
4997
5000
|
() => zn(),
|
|
4998
|
-
|
|
4999
|
-
),
|
|
5001
|
+
jr * 1e3
|
|
5002
|
+
), nn(), Fr += 1, _t = setTimeout(() => {
|
|
5000
5003
|
d("WS", "Unhealthy connection. Reconnecting..."), de.next(!1), ue = null, Ot();
|
|
5001
5004
|
}, 30 * 1e3)) : (Q ? d(
|
|
5002
5005
|
"WS",
|
|
@@ -5018,13 +5021,13 @@ function $n(t = 0) {
|
|
|
5018
5021
|
}
|
|
5019
5022
|
function ps() {
|
|
5020
5023
|
if (!kt() || !Y()) return null;
|
|
5021
|
-
const t =
|
|
5022
|
-
let e = `ws${t ? "s" : ""}://${
|
|
5024
|
+
const t = fo() || location.protocol.indexOf("https") >= 0;
|
|
5025
|
+
let e = `ws${t ? "s" : ""}://${an()}${tn()}${yr() ? "?fixed_device=true" : ""}`;
|
|
5023
5026
|
const n = Y();
|
|
5024
5027
|
let r = n === "x-api-key" ? `api-key=${Pt()}` : `bearer_token=${n}`;
|
|
5025
|
-
return !
|
|
5028
|
+
return !so() && !Zi() ? (d("WS", "Authenticating through cookie..."), r += `;max-age=120;path=${tn()};`, r += `${t ? "secure;" : ""}samesite=strict`, document.cookie = r, d("WS", "Cookies:", [document.cookie, r])) : (d("WS", "Authenticating through URL query parameter..."), e += `${e.indexOf("?") >= 0 ? "&" : "?"}${r}`), d(
|
|
5026
5029
|
"WS",
|
|
5027
|
-
`Creating websocket connection to ws${t ? "s" : ""}://${
|
|
5030
|
+
`Creating websocket connection to ws${t ? "s" : ""}://${an()}${tn()}`
|
|
5028
5031
|
), ts({
|
|
5029
5032
|
url: e,
|
|
5030
5033
|
serializer: (i) => typeof i == "object" ? JSON.stringify(i) : i,
|
|
@@ -5040,7 +5043,7 @@ function ps() {
|
|
|
5040
5043
|
});
|
|
5041
5044
|
}
|
|
5042
5045
|
function Ot() {
|
|
5043
|
-
|
|
5046
|
+
zr.next([Fr, Date.now() - Hr]), Q && Wr() && (Q.complete(), we && (clearInterval(we), we = void 0)), d(
|
|
5044
5047
|
"WS",
|
|
5045
5048
|
`Reconnecting in ${Math.min(
|
|
5046
5049
|
5e3,
|
|
@@ -5053,20 +5056,20 @@ function Ot() {
|
|
|
5053
5056
|
);
|
|
5054
5057
|
}
|
|
5055
5058
|
function zn() {
|
|
5056
|
-
if (Date.now() - xn > 4 *
|
|
5059
|
+
if (Date.now() - xn > 4 * jr * 1e3)
|
|
5057
5060
|
return Ot();
|
|
5058
5061
|
Q?.next("ping");
|
|
5059
5062
|
}
|
|
5060
5063
|
function _s(t) {
|
|
5061
|
-
de.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 &&
|
|
5064
|
+
de.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && yn(), gr(), Ot();
|
|
5062
5065
|
}
|
|
5063
|
-
function
|
|
5066
|
+
function nn() {
|
|
5064
5067
|
_t && (clearTimeout(_t), _t = void 0);
|
|
5065
5068
|
}
|
|
5066
5069
|
function ms() {
|
|
5067
5070
|
const t = new me();
|
|
5068
5071
|
return t.subscribe(
|
|
5069
|
-
(e) =>
|
|
5072
|
+
(e) => Br(e)
|
|
5070
5073
|
), t;
|
|
5071
5074
|
}
|
|
5072
5075
|
function ys(t, e, n) {
|
|
@@ -5121,7 +5124,7 @@ function Hn() {
|
|
|
5121
5124
|
}
|
|
5122
5125
|
class Ln {
|
|
5123
5126
|
constructor(e, n) {
|
|
5124
|
-
this._module = e, this.name = n, ss().pipe(
|
|
5127
|
+
this._module = e, this.name = n, ss().pipe(Ri()).subscribe((r) => {
|
|
5125
5128
|
r && (this._stale_bindings || this._pending === 1) ? (d("VAR", "Re-binding to status variable", this.binding()), this.rebind()) : r || (be(
|
|
5126
5129
|
`rebind:${JSON.stringify(this.binding())}`
|
|
5127
5130
|
), d(
|
|
@@ -5294,42 +5297,42 @@ class bs {
|
|
|
5294
5297
|
return this._module_list[i][n - 1];
|
|
5295
5298
|
}
|
|
5296
5299
|
}
|
|
5297
|
-
const
|
|
5300
|
+
const rn = {};
|
|
5298
5301
|
function vs(t) {
|
|
5299
|
-
return
|
|
5302
|
+
return rn[t] || (rn[t] = new bs(t)), rn[t];
|
|
5300
5303
|
}
|
|
5301
|
-
function
|
|
5304
|
+
function Qa(t, e, n = 1) {
|
|
5302
5305
|
return vs(t).module(e, n);
|
|
5303
5306
|
}
|
|
5304
5307
|
export {
|
|
5305
|
-
|
|
5308
|
+
Do as AuthType,
|
|
5306
5309
|
Te as EncryptionLevel,
|
|
5307
|
-
|
|
5310
|
+
Dr as MediaAnimation,
|
|
5308
5311
|
ns as MockPlaceWebsocketModule,
|
|
5309
5312
|
rs as MockPlaceWebsocketSystem,
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5313
|
+
Po as PlaceAlert,
|
|
5314
|
+
To as PlaceAlertDashboard,
|
|
5315
|
+
Mo as PlaceApplication,
|
|
5316
|
+
qo as PlaceCluster,
|
|
5314
5317
|
Co as PlaceDomain,
|
|
5315
|
-
|
|
5318
|
+
Ir as PlaceDriver,
|
|
5316
5319
|
$t as PlaceDriverRole,
|
|
5317
5320
|
jo as PlaceEdge,
|
|
5318
5321
|
X as PlaceErrorCodes,
|
|
5319
5322
|
Fo as PlaceLDAPSource,
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5323
|
+
Cr as PlaceLogLevel,
|
|
5324
|
+
Uo as PlaceMQTTBroker,
|
|
5325
|
+
Pr as PlaceMetadata,
|
|
5326
|
+
Mr as PlaceModule,
|
|
5324
5327
|
gs as PlaceModuleBinding,
|
|
5325
5328
|
Lo as PlaceOAuthSource,
|
|
5326
|
-
|
|
5329
|
+
No as PlaceProcess,
|
|
5327
5330
|
Wo as PlaceRepository,
|
|
5328
|
-
|
|
5331
|
+
Rr as PlaceRepositoryType,
|
|
5329
5332
|
H as PlaceResource,
|
|
5330
5333
|
Bo as PlaceSAMLSource,
|
|
5331
5334
|
Se as PlaceSettings,
|
|
5332
|
-
|
|
5335
|
+
Tr as PlaceSystem,
|
|
5333
5336
|
bs as PlaceSystemBinding,
|
|
5334
5337
|
Re as PlaceTrigger,
|
|
5335
5338
|
Jo as PlaceUser,
|
|
@@ -5339,225 +5342,226 @@ export {
|
|
|
5339
5342
|
Ko as SignageMedia,
|
|
5340
5343
|
Zo as SignagePlaylist,
|
|
5341
5344
|
Sn as SignagePlaylistMedia,
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5345
|
+
Gt as Survey,
|
|
5346
|
+
qr as SurveyAnswer,
|
|
5347
|
+
Kt as SurveyInvitation,
|
|
5348
|
+
Zt as SurveyQuestion,
|
|
5346
5349
|
Vo as TriggerConditionOperator,
|
|
5347
5350
|
Qo as TriggerTimeConditionType,
|
|
5348
5351
|
Yo as TriggerWebhookType,
|
|
5349
5352
|
js as addAlert,
|
|
5350
5353
|
Rs as addAlertDashboard,
|
|
5351
|
-
|
|
5354
|
+
wa as addAnswer,
|
|
5352
5355
|
Vs as addApplication,
|
|
5353
5356
|
Zs as addBroker,
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5357
|
+
su as addDomain,
|
|
5358
|
+
fu as addDriver,
|
|
5359
|
+
vu as addEdge,
|
|
5360
|
+
Pa as addInvitation,
|
|
5361
|
+
wu as addLDAPSource,
|
|
5362
|
+
Mu as addMetadata,
|
|
5363
|
+
Cu as addModule,
|
|
5364
|
+
Ku as addOAuthSource,
|
|
5365
|
+
Da as addQuestion,
|
|
5366
|
+
tc as addRepository,
|
|
5367
|
+
mc as addSAMLSource,
|
|
5368
|
+
Sc as addSettings,
|
|
5369
|
+
pa as addSignageMedia,
|
|
5370
|
+
ba as addSignagePlaylist,
|
|
5371
|
+
Fa as addSurvey,
|
|
5372
|
+
Ec as addSystem,
|
|
5373
|
+
Pc as addSystemModule,
|
|
5374
|
+
Fc as addSystemTrigger,
|
|
5375
|
+
Vc as addTrigger,
|
|
5376
|
+
Xc as addUser,
|
|
5377
|
+
oa as addZone,
|
|
5375
5378
|
ve as apiEndpoint,
|
|
5376
5379
|
Pt as apiKey,
|
|
5377
|
-
|
|
5380
|
+
xa as approveSignagePlaylist,
|
|
5378
5381
|
br as authorise,
|
|
5379
5382
|
kt as authority,
|
|
5380
5383
|
Fn as bind,
|
|
5381
|
-
|
|
5384
|
+
Ki as cleanObject,
|
|
5382
5385
|
ws as cleanupAuth,
|
|
5383
|
-
|
|
5384
|
-
|
|
5386
|
+
uo as clientId,
|
|
5387
|
+
Wa as connectionState,
|
|
5385
5388
|
Un as consoleHasColours,
|
|
5386
5389
|
Fe as convertPairStringToMap,
|
|
5387
5390
|
M as create,
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
+
Zc as currentUser,
|
|
5392
|
+
Ba as debug,
|
|
5393
|
+
Lr as debug_events,
|
|
5391
5394
|
Be as del,
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
+
xo as deregisterMockEndpoint,
|
|
5396
|
+
La as deregisterSystem,
|
|
5397
|
+
mu as driverReadme,
|
|
5395
5398
|
ls as execute,
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5399
|
+
Dc as executeOnSystem,
|
|
5400
|
+
ca as executeOnZone,
|
|
5401
|
+
Nc as functionList,
|
|
5402
|
+
Yi as generateNonce,
|
|
5400
5403
|
ee as get,
|
|
5401
5404
|
_r as getFragments,
|
|
5402
|
-
|
|
5405
|
+
Qa as getModule,
|
|
5403
5406
|
vs as getSystem,
|
|
5404
|
-
|
|
5405
|
-
|
|
5407
|
+
ao as hasToken,
|
|
5408
|
+
an as host,
|
|
5406
5409
|
mr as httpRoute,
|
|
5407
5410
|
vt as humanReadableByteCount,
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
+
Va as ignore,
|
|
5412
|
+
yn as invalidateToken,
|
|
5413
|
+
_u as isDriverCompiled,
|
|
5411
5414
|
yr as isFixedDevice,
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
+
Zi as isMobileSafari,
|
|
5416
|
+
_n as isMock,
|
|
5417
|
+
Gi as isNestedFrame,
|
|
5415
5418
|
xs as isOnline,
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
+
fo as isSecure,
|
|
5420
|
+
mn as isTrusted,
|
|
5421
|
+
Wr as is_connected,
|
|
5419
5422
|
Hs as lastRequestTotal,
|
|
5420
|
-
|
|
5423
|
+
Du as listChildMetadata,
|
|
5421
5424
|
Us as listDashboardAlerts,
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5425
|
+
rc as listInterfaceRepositories,
|
|
5426
|
+
Eu as listMetadata,
|
|
5427
|
+
Iu as listMetadataHistory,
|
|
5428
|
+
oc as listRemoteRepositoryBranches,
|
|
5429
|
+
sc as listRemoteRepositoryCommits,
|
|
5430
|
+
ic as listRemoteRepositoryDefaultBranch,
|
|
5431
|
+
ac as listRepositoryBranches,
|
|
5432
|
+
cc as listRepositoryCommits,
|
|
5433
|
+
lc as listRepositoryDefaultBranch,
|
|
5434
|
+
fc as listRepositoryDriverDetails,
|
|
5435
|
+
uc as listRepositoryDrivers,
|
|
5436
|
+
Sa as listSignagePlaylistMedia,
|
|
5437
|
+
ka as listSignagePlaylistMediaRevisions,
|
|
5438
|
+
jc as listSystemTriggers,
|
|
5439
|
+
Cc as listSystemZones,
|
|
5440
|
+
Yc as listTriggerInstances,
|
|
5441
|
+
na as listZoneTags,
|
|
5442
|
+
ua as listZoneTriggers,
|
|
5440
5443
|
us as listen,
|
|
5441
|
-
|
|
5442
|
-
|
|
5444
|
+
lo as listenForToken,
|
|
5445
|
+
Wu as loadModule,
|
|
5443
5446
|
d as log,
|
|
5444
5447
|
Os as logout,
|
|
5445
|
-
|
|
5446
|
-
|
|
5448
|
+
Lu as lookupModuleState,
|
|
5449
|
+
qc as lookupSystemModuleState,
|
|
5447
5450
|
is as mockSystem,
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
+
Vu as moduleRuntimeError,
|
|
5452
|
+
Bu as moduleSettings,
|
|
5453
|
+
Hu as moduleState,
|
|
5451
5454
|
$s as onlineState,
|
|
5452
|
-
|
|
5455
|
+
Ji as parseLinkHeader,
|
|
5453
5456
|
Mt as patch,
|
|
5454
5457
|
Ie as post,
|
|
5455
|
-
|
|
5458
|
+
hc as pullRepositoryChanges,
|
|
5456
5459
|
We as put,
|
|
5457
5460
|
A as query,
|
|
5458
5461
|
Ps as queryAlertDashboards,
|
|
5459
5462
|
qs as queryAlerts,
|
|
5460
|
-
|
|
5463
|
+
Aa as queryAnswers,
|
|
5461
5464
|
Ls as queryApplications,
|
|
5462
5465
|
Ys as queryBrokers,
|
|
5463
5466
|
Xs as queryClusters,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5467
|
+
ru as queryDomains,
|
|
5468
|
+
cu as queryDrivers,
|
|
5469
|
+
yu as queryEdges,
|
|
5470
|
+
Oa as queryInvitations,
|
|
5471
|
+
xu as queryLDAPSources,
|
|
5472
|
+
Uu as queryModules,
|
|
5473
|
+
Qu as queryOAuthSources,
|
|
5474
|
+
tu as queryProcesses,
|
|
5475
|
+
Ma as queryQuestions,
|
|
5476
|
+
Gu as queryRepositories,
|
|
5477
|
+
dc as querySAMLSources,
|
|
5478
|
+
gc as querySettings,
|
|
5479
|
+
fa as querySignageMedia,
|
|
5480
|
+
ma as querySignagePlaylists,
|
|
5481
|
+
Na as querySurveys,
|
|
5482
|
+
$c as querySystems,
|
|
5483
|
+
Ac as querySystemsWithEmails,
|
|
5484
|
+
Lc as queryTriggers,
|
|
5485
|
+
Jc as queryUsers,
|
|
5486
|
+
ta as queryZones,
|
|
5487
|
+
du as recompileDriver,
|
|
5485
5488
|
Ss as redirectUri,
|
|
5486
5489
|
gr as refreshAuthority,
|
|
5487
|
-
|
|
5490
|
+
cn as refreshToken,
|
|
5488
5491
|
Is as registerMockEndpoint,
|
|
5489
|
-
|
|
5490
|
-
|
|
5492
|
+
Ha as registerSystem,
|
|
5493
|
+
pu as reloadDriver,
|
|
5491
5494
|
P as remove,
|
|
5492
5495
|
Fs as removeAlert,
|
|
5493
5496
|
Ds as removeAlertDashboard,
|
|
5494
5497
|
Qs as removeApplication,
|
|
5495
5498
|
Gs as removeBroker,
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
+
uu as removeDomain,
|
|
5500
|
+
hu as removeDriver,
|
|
5501
|
+
Su as removeEdge,
|
|
5499
5502
|
he as removeFragment,
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5503
|
+
Ta as removeInvitation,
|
|
5504
|
+
Ou as removeLDAPSource,
|
|
5505
|
+
Ru as removeMetadata,
|
|
5506
|
+
ju as removeModule,
|
|
5507
|
+
Zu as removeOAuthSource,
|
|
5508
|
+
qa as removeQuestion,
|
|
5509
|
+
nc as removeRepository,
|
|
5510
|
+
yc as removeSAMLSource,
|
|
5511
|
+
kc as removeSettings,
|
|
5512
|
+
_a as removeSignageMedia,
|
|
5513
|
+
va as removeSignagePlaylist,
|
|
5514
|
+
za as removeSurvey,
|
|
5515
|
+
Ic as removeSystem,
|
|
5516
|
+
Tc as removeSystemModule,
|
|
5517
|
+
zc as removeSystemTrigger,
|
|
5518
|
+
Qc as removeTrigger,
|
|
5519
|
+
ea as removeUser,
|
|
5520
|
+
sa as removeZone,
|
|
5518
5521
|
zs as requestTotal,
|
|
5519
|
-
|
|
5520
|
-
|
|
5522
|
+
Eo as responseHeaders,
|
|
5523
|
+
ku as retrieveEdgeToken,
|
|
5521
5524
|
ks as setAPI_Key,
|
|
5522
5525
|
Es as setMockNotFoundHandler,
|
|
5523
|
-
|
|
5524
|
-
|
|
5526
|
+
co as setToken,
|
|
5527
|
+
xc as settingsHistory,
|
|
5525
5528
|
As as setup,
|
|
5526
5529
|
$ as show,
|
|
5527
5530
|
Ns as showAlert,
|
|
5528
5531
|
Ts as showAlertDashboard,
|
|
5529
5532
|
Ws as showApplication,
|
|
5530
5533
|
Js as showBroker,
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5534
|
+
eu as showCluster,
|
|
5535
|
+
iu as showDomain,
|
|
5536
|
+
au as showDriver,
|
|
5537
|
+
gu as showEdge,
|
|
5538
|
+
Ea as showInvitation,
|
|
5539
|
+
$u as showLDAPSource,
|
|
5540
|
+
Pu as showMetadata,
|
|
5541
|
+
qu as showModule,
|
|
5542
|
+
Yu as showOAuthSource,
|
|
5543
|
+
Ra as showQuestion,
|
|
5544
|
+
Xu as showRepository,
|
|
5545
|
+
pc as showSAMLSource,
|
|
5546
|
+
bc as showSettings,
|
|
5547
|
+
aa as showSignage,
|
|
5548
|
+
ha as showSignageMedia,
|
|
5549
|
+
la as showSignageMetrics,
|
|
5550
|
+
ya as showSignagePlaylist,
|
|
5551
|
+
Ca as showSurvey,
|
|
5552
|
+
wc as showSystem,
|
|
5553
|
+
Wc as showTrigger,
|
|
5554
|
+
Kc as showUser,
|
|
5555
|
+
ra as showZone,
|
|
5556
|
+
Xi as simplifiedTime,
|
|
5557
|
+
Fu as startModule,
|
|
5558
|
+
Mc as startSystem,
|
|
5555
5559
|
ss as status,
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5560
|
+
zu as stopModule,
|
|
5561
|
+
Rc as stopSystem,
|
|
5562
|
+
Uc as systemModuleState,
|
|
5563
|
+
Hc as systemSettings,
|
|
5564
|
+
nu as terminateProcess,
|
|
5561
5565
|
Y as token,
|
|
5562
5566
|
as as unbind,
|
|
5563
5567
|
R as update,
|
|
@@ -5565,27 +5569,27 @@ export {
|
|
|
5565
5569
|
Ms as updateAlertDashboard,
|
|
5566
5570
|
Bs as updateApplication,
|
|
5567
5571
|
Ks as updateBroker,
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5572
|
+
ou as updateDomain,
|
|
5573
|
+
lu as updateDriver,
|
|
5574
|
+
bu as updateEdge,
|
|
5575
|
+
Ia as updateInvitation,
|
|
5576
|
+
Au as updateLDAPSource,
|
|
5577
|
+
Tu as updateMetadata,
|
|
5578
|
+
Nu as updateModule,
|
|
5579
|
+
Ju as updateOAuthSource,
|
|
5580
|
+
Ua as updateQuestion,
|
|
5581
|
+
ec as updateRepository,
|
|
5582
|
+
_c as updateSAMLSource,
|
|
5583
|
+
vc as updateSettings,
|
|
5584
|
+
da as updateSignageMedia,
|
|
5585
|
+
ga as updateSignagePlaylist,
|
|
5586
|
+
$a as updateSignagePlaylistMedia,
|
|
5587
|
+
ja as updateSurvey,
|
|
5588
|
+
Oc as updateSystem,
|
|
5589
|
+
Bc as updateTrigger,
|
|
5590
|
+
Gc as updateUser,
|
|
5591
|
+
ia as updateZone,
|
|
5588
5592
|
cs as value,
|
|
5589
|
-
|
|
5593
|
+
tn as websocketRoute
|
|
5590
5594
|
};
|
|
5591
5595
|
//# sourceMappingURL=index.es.js.map
|