@placeos/ts-client 4.2.4 → 4.2.6

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/index.es.js CHANGED
@@ -23,7 +23,7 @@ var ze = function() {
23
23
  return e;
24
24
  }, ze.apply(this, arguments);
25
25
  };
26
- function jr(t, e) {
26
+ function zr(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 jr(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 Fr(t, e, n, r) {
34
+ function Lr(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 pt(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 zr(t, e, n) {
156
+ function Hr(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 zr(t, e, n) {
191
191
  a(h), o.shift(), o.length && c(o[0][0], o[0][1]);
192
192
  }
193
193
  }
194
- function Lr(t) {
194
+ function Wr(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() {
@@ -210,7 +210,7 @@ function Lr(t) {
210
210
  }, s);
211
211
  }
212
212
  }
213
- function P(t) {
213
+ function T(t) {
214
214
  return typeof t == "function";
215
215
  }
216
216
  function zn(t) {
@@ -262,7 +262,7 @@ var ge = function() {
262
262
  else
263
263
  s.remove(this);
264
264
  var _ = this.initialTeardown;
265
- if (P(_))
265
+ if (T(_))
266
266
  try {
267
267
  _();
268
268
  } catch (f) {
@@ -324,14 +324,14 @@ var ge = function() {
324
324
  }(), t;
325
325
  }(), Ln = ge.EMPTY;
326
326
  function Hn(t) {
327
- return t instanceof ge || t && "closed" in t && P(t.remove) && P(t.add) && P(t.unsubscribe);
327
+ return t instanceof ge || t && "closed" in t && T(t.remove) && T(t.add) && T(t.unsubscribe);
328
328
  }
329
329
  function Sn(t) {
330
- P(t) ? t() : t.unsubscribe();
330
+ T(t) ? t() : t.unsubscribe();
331
331
  }
332
- var Hr = {
332
+ var Br = {
333
333
  Promise: void 0
334
- }, Wr = {
334
+ }, Vr = {
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 Hr = {
343
343
  delegate: void 0
344
344
  };
345
345
  function Wn(t) {
346
- Wr.setTimeout(function() {
346
+ Vr.setTimeout(function() {
347
347
  throw t;
348
348
  });
349
349
  }
@@ -356,7 +356,7 @@ var At = 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, Hn(n) && n.add(r)) : r.destination = Qr, r;
359
+ return r.isStopped = !1, n ? (r.destination = n, Hn(n) && n.add(r)) : r.destination = Jr, r;
360
360
  }
361
361
  return e.create = function(n, r, i) {
362
362
  return new en(n, r, i);
@@ -383,7 +383,7 @@ var At = function(t) {
383
383
  this.unsubscribe();
384
384
  }
385
385
  }, e;
386
- }(ge), Br = function() {
386
+ }(ge), Qr = function() {
387
387
  function t(e) {
388
388
  this.partialObserver = e;
389
389
  }
@@ -418,24 +418,24 @@ var At = function(t) {
418
418
  Z(e, t);
419
419
  function e(n, r, i) {
420
420
  var o = t.call(this) || this, s;
421
- return P(n) || !n ? s = {
421
+ return T(n) || !n ? s = {
422
422
  next: n ?? void 0,
423
423
  error: r ?? void 0,
424
424
  complete: i ?? void 0
425
- } : s = n, o.destination = new Br(s), o;
425
+ } : s = n, o.destination = new Qr(s), o;
426
426
  }
427
427
  return e;
428
428
  }(At);
429
429
  function ct(t) {
430
430
  Wn(t);
431
431
  }
432
- function Vr(t) {
432
+ function Yr(t) {
433
433
  throw t;
434
434
  }
435
- var Qr = {
435
+ var Jr = {
436
436
  closed: !0,
437
437
  next: kn,
438
- error: Vr,
438
+ error: Yr,
439
439
  complete: kn
440
440
  }, on = function() {
441
441
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
@@ -443,14 +443,14 @@ var Qr = {
443
443
  function sn(t) {
444
444
  return t;
445
445
  }
446
- function Yr(t) {
446
+ function Kr(t) {
447
447
  return t.length === 0 ? sn : t.length === 1 ? t[0] : function(n) {
448
448
  return t.reduce(function(r, i) {
449
449
  return i(r);
450
450
  }, n);
451
451
  };
452
452
  }
453
- var T = function() {
453
+ var P = function() {
454
454
  function t(e) {
455
455
  e && (this._subscribe = e);
456
456
  }
@@ -458,7 +458,7 @@ var T = 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 = Kr(e) ? e : new en(e, n, r);
461
+ var i = this, o = Gr(e) ? e : new en(e, n, r);
462
462
  return lt(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));
@@ -493,7 +493,7 @@ var T = function() {
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 Yr(e)(this);
496
+ return Kr(e)(this);
497
497
  }, t.prototype.toPromise = function(e) {
498
498
  var n = this;
499
499
  return e = xn(e), new e(function(r, i) {
@@ -512,20 +512,20 @@ var T = function() {
512
512
  }();
513
513
  function xn(t) {
514
514
  var e;
515
- return (e = t ?? Hr.Promise) !== null && e !== void 0 ? e : Promise;
515
+ return (e = t ?? Br.Promise) !== null && e !== void 0 ? e : Promise;
516
516
  }
517
- function Jr(t) {
518
- return t && P(t.next) && P(t.error) && P(t.complete);
517
+ function Zr(t) {
518
+ return t && T(t.next) && T(t.error) && T(t.complete);
519
519
  }
520
- function Kr(t) {
521
- return t && t instanceof At || Jr(t) && Hn(t);
520
+ function Gr(t) {
521
+ return t && t instanceof At || Zr(t) && Hn(t);
522
522
  }
523
- function Zr(t) {
524
- return P(t?.lift);
523
+ function Xr(t) {
524
+ return T(t?.lift);
525
525
  }
526
526
  function re(t) {
527
527
  return function(e) {
528
- if (Zr(e))
528
+ if (Xr(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 Gr(t, e, n, r, i);
540
+ return new ei(t, e, n, r, i);
541
541
  }
542
- var Gr = function(t) {
542
+ var ei = 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 Gr = 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
- }(At), Xr = zn(function(t) {
577
+ }(At), ti = zn(function(t) {
578
578
  return function() {
579
579
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
580
580
  };
@@ -589,7 +589,7 @@ var Gr = function(t) {
589
589
  return r.operator = n, r;
590
590
  }, e.prototype._throwIfClosed = function() {
591
591
  if (this.closed)
592
- throw new Xr();
592
+ throw new ti();
593
593
  }, e.prototype.next = function(n) {
594
594
  var r = this;
595
595
  lt(function() {
@@ -652,12 +652,12 @@ var Gr = function(t) {
652
652
  var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
653
653
  i ? n.error(o) : s && n.complete();
654
654
  }, e.prototype.asObservable = function() {
655
- var n = new T();
655
+ var n = new P();
656
656
  return n.source = this, n;
657
657
  }, e.create = function(n, r) {
658
658
  return new tn(n, r);
659
659
  }, e;
660
- }(T), tn = function(t) {
660
+ }(P), tn = function(t) {
661
661
  Z(e, t);
662
662
  function e(n, r) {
663
663
  var i = t.call(this) || this;
@@ -727,7 +727,7 @@ var Gr = function(t) {
727
727
  l && o.splice(0, l + 1);
728
728
  }
729
729
  }, e;
730
- }(me), ei = function(t) {
730
+ }(me), ni = 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 Gr = function(t) {
745
745
  return clearInterval(t);
746
746
  },
747
747
  delegate: void 0
748
- }, ti = function(t) {
748
+ }, ri = 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 Gr = function(t) {
787
787
  this.work = this.state = this.scheduler = null, this.pending = !1, _t(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
- }(ei), An = function() {
790
+ }(ni), An = 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
796
  }, t.now = un.now, t;
797
- }(), ni = function(t) {
797
+ }(), ii = function(t) {
798
798
  Z(e, t);
799
799
  function e(n, r) {
800
800
  r === void 0 && (r = An.now);
@@ -819,36 +819,36 @@ var Gr = function(t) {
819
819
  throw i;
820
820
  }
821
821
  }, e;
822
- }(An), Bn = new ni(ti), ri = Bn, ii = new T(function(t) {
822
+ }(An), Bn = new ii(ri), oi = Bn, si = new P(function(t) {
823
823
  return t.complete();
824
824
  });
825
- function oi(t) {
826
- return t && P(t.schedule);
825
+ function ui(t) {
826
+ return t && T(t.schedule);
827
827
  }
828
828
  var Vn = function(t) {
829
829
  return t && typeof t.length == "number" && typeof t != "function";
830
830
  };
831
831
  function Qn(t) {
832
- return P(t?.then);
832
+ return T(t?.then);
833
833
  }
834
834
  function Yn(t) {
835
- return P(t[on]);
835
+ return T(t[on]);
836
836
  }
837
837
  function Jn(t) {
838
- return Symbol.asyncIterator && P(t?.[Symbol.asyncIterator]);
838
+ return Symbol.asyncIterator && T(t?.[Symbol.asyncIterator]);
839
839
  }
840
840
  function Kn(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 si() {
843
+ function ci() {
844
844
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
845
845
  }
846
- var Zn = si();
846
+ var Zn = ci();
847
847
  function Gn(t) {
848
- return P(t?.[Zn]);
848
+ return T(t?.[Zn]);
849
849
  }
850
850
  function Xn(t) {
851
- return zr(this, arguments, function() {
851
+ return Hr(this, arguments, function() {
852
852
  var n, r, i, o;
853
853
  return Fn(this, function(s) {
854
854
  switch (s.label) {
@@ -879,44 +879,44 @@ function Xn(t) {
879
879
  });
880
880
  }
881
881
  function er(t) {
882
- return P(t?.getReader);
882
+ return T(t?.getReader);
883
883
  }
884
884
  function ie(t) {
885
- if (t instanceof T)
885
+ if (t instanceof P)
886
886
  return t;
887
887
  if (t != null) {
888
888
  if (Yn(t))
889
- return ui(t);
889
+ return ai(t);
890
890
  if (Vn(t))
891
- return ci(t);
891
+ return li(t);
892
892
  if (Qn(t))
893
- return ai(t);
893
+ return fi(t);
894
894
  if (Jn(t))
895
895
  return tr(t);
896
896
  if (Gn(t))
897
- return li(t);
897
+ return hi(t);
898
898
  if (er(t))
899
- return fi(t);
899
+ return di(t);
900
900
  }
901
901
  throw Kn(t);
902
902
  }
903
- function ui(t) {
904
- return new T(function(e) {
903
+ function ai(t) {
904
+ return new P(function(e) {
905
905
  var n = t[on]();
906
- if (P(n.subscribe))
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 ci(t) {
912
- return new T(function(e) {
911
+ function li(t) {
912
+ return new P(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 ai(t) {
919
- return new T(function(e) {
918
+ function fi(t) {
919
+ return new P(function(e) {
920
920
  t.then(function(n) {
921
921
  e.closed || (e.next(n), e.complete());
922
922
  }, function(n) {
@@ -924,8 +924,8 @@ function ai(t) {
924
924
  }).then(null, Wn);
925
925
  });
926
926
  }
927
- function li(t) {
928
- return new T(function(e) {
927
+ function hi(t) {
928
+ return new P(function(e) {
929
929
  var n, r;
930
930
  try {
931
931
  for (var i = Oe(t), o = i.next(); !o.done; o = i.next()) {
@@ -946,23 +946,23 @@ function li(t) {
946
946
  });
947
947
  }
948
948
  function tr(t) {
949
- return new T(function(e) {
950
- hi(t, e).catch(function(n) {
949
+ return new P(function(e) {
950
+ pi(t, e).catch(function(n) {
951
951
  return e.error(n);
952
952
  });
953
953
  });
954
954
  }
955
- function fi(t) {
955
+ function di(t) {
956
956
  return tr(Xn(t));
957
957
  }
958
- function hi(t, e) {
958
+ function pi(t, e) {
959
959
  var n, r, i, o;
960
- return Fr(this, void 0, void 0, function() {
960
+ return Lr(this, void 0, void 0, function() {
961
961
  var s, u;
962
962
  return Fn(this, function(c) {
963
963
  switch (c.label) {
964
964
  case 0:
965
- c.trys.push([0, 5, 6, 11]), n = Lr(t), c.label = 1;
965
+ c.trys.push([0, 5, 6, 11]), n = Wr(t), c.label = 1;
966
966
  case 1:
967
967
  return [4, n.next()];
968
968
  case 2:
@@ -1025,22 +1025,22 @@ function rr(t, e) {
1025
1025
  }, e));
1026
1026
  });
1027
1027
  }
1028
- function di(t, e) {
1028
+ function _i(t, e) {
1029
1029
  return ie(t).pipe(rr(e), nr(e));
1030
1030
  }
1031
- function pi(t, e) {
1031
+ function mi(t, e) {
1032
1032
  return ie(t).pipe(rr(e), nr(e));
1033
1033
  }
1034
- function _i(t, e) {
1035
- return new T(function(n) {
1034
+ function yi(t, e) {
1035
+ return new P(function(n) {
1036
1036
  var r = 0;
1037
1037
  return e.schedule(function() {
1038
1038
  r === t.length ? n.complete() : (n.next(t[r++]), n.closed || this.schedule());
1039
1039
  });
1040
1040
  });
1041
1041
  }
1042
- function mi(t, e) {
1043
- return new T(function(n) {
1042
+ function gi(t, e) {
1043
+ return new P(function(n) {
1044
1044
  var r;
1045
1045
  return pe(n, e, function() {
1046
1046
  r = t[Zn](), pe(n, e, function() {
@@ -1054,14 +1054,14 @@ function mi(t, e) {
1054
1054
  s ? n.complete() : n.next(o);
1055
1055
  }, 0, !0);
1056
1056
  }), function() {
1057
- return P(r?.return) && r.return();
1057
+ return T(r?.return) && r.return();
1058
1058
  };
1059
1059
  });
1060
1060
  }
1061
1061
  function ir(t, e) {
1062
1062
  if (!t)
1063
1063
  throw new Error("Iterable cannot be null");
1064
- return new T(function(n) {
1064
+ return new P(function(n) {
1065
1065
  pe(n, e, function() {
1066
1066
  var r = t[Symbol.asyncIterator]();
1067
1067
  pe(n, e, function() {
@@ -1072,38 +1072,38 @@ function ir(t, e) {
1072
1072
  });
1073
1073
  });
1074
1074
  }
1075
- function yi(t, e) {
1075
+ function vi(t, e) {
1076
1076
  return ir(Xn(t), e);
1077
1077
  }
1078
- function gi(t, e) {
1078
+ function bi(t, e) {
1079
1079
  if (t != null) {
1080
1080
  if (Yn(t))
1081
- return di(t, e);
1082
- if (Vn(t))
1083
1081
  return _i(t, e);
1082
+ if (Vn(t))
1083
+ return yi(t, e);
1084
1084
  if (Qn(t))
1085
- return pi(t, e);
1085
+ return mi(t, e);
1086
1086
  if (Jn(t))
1087
1087
  return ir(t, e);
1088
1088
  if (Gn(t))
1089
- return mi(t, e);
1089
+ return gi(t, e);
1090
1090
  if (er(t))
1091
- return yi(t, e);
1091
+ return vi(t, e);
1092
1092
  }
1093
1093
  throw Kn(t);
1094
1094
  }
1095
- function vi(t, e) {
1096
- return e ? gi(t, e) : ie(t);
1095
+ function Si(t, e) {
1096
+ return e ? bi(t, e) : ie(t);
1097
1097
  }
1098
- function bi(t, e) {
1099
- var n = P(t) ? t : function() {
1098
+ function or(t, e) {
1099
+ var n = T(t) ? t : function() {
1100
1100
  return t;
1101
1101
  }, r = function(i) {
1102
1102
  return i.error(n());
1103
1103
  };
1104
- return new T(r);
1104
+ return new P(r);
1105
1105
  }
1106
- function Si(t) {
1106
+ function ki(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 ki(t, e, n, r, i, o, s, u) {
1117
+ function xi(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) {
@@ -1146,20 +1146,20 @@ function ki(t, e, n, r, i, o, s, u) {
1146
1146
  })), function() {
1147
1147
  };
1148
1148
  }
1149
- function or(t, e, n) {
1150
- return n === void 0 && (n = 1 / 0), P(e) ? or(function(r, i) {
1149
+ function sr(t, e, n) {
1150
+ return n === void 0 && (n = 1 / 0), T(e) ? sr(function(r, i) {
1151
1151
  return I(function(o, s) {
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 ki(r, i, t, n);
1155
+ return xi(r, i, t, n);
1156
1156
  }));
1157
1157
  }
1158
- function sr(t, e, n) {
1159
- t === void 0 && (t = 0), n === void 0 && (n = ri);
1158
+ function ur(t, e, n) {
1159
+ t === void 0 && (t = 0), n === void 0 && (n = oi);
1160
1160
  var r = -1;
1161
- return e != null && (oi(e) ? n = e : r = e), new T(function(i) {
1162
- var o = Si(t) ? +t - n.now() : t;
1161
+ return e != null && (ui(e) ? n = e : r = e), new P(function(i) {
1162
+ var o = ki(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 sr(t, e, n) {
1167
1167
  }, o);
1168
1168
  });
1169
1169
  }
1170
- function xi(t, e) {
1170
+ function $i(t, e) {
1171
1171
  return re(function(n, r) {
1172
1172
  var i = 0;
1173
1173
  n.subscribe(J(r, function(o) {
@@ -1175,9 +1175,9 @@ function xi(t, e) {
1175
1175
  }));
1176
1176
  });
1177
1177
  }
1178
- function ur(t) {
1178
+ function cr(t) {
1179
1179
  return t <= 0 ? function() {
1180
- return ii;
1180
+ return si;
1181
1181
  } : re(function(e, n) {
1182
1182
  var r = 0;
1183
1183
  e.subscribe(J(n, function(i) {
@@ -1185,25 +1185,25 @@ function ur(t) {
1185
1185
  }));
1186
1186
  });
1187
1187
  }
1188
- function $i(t) {
1188
+ function Ai(t) {
1189
1189
  return I(function() {
1190
1190
  return t;
1191
1191
  });
1192
1192
  }
1193
- function Ai(t, e) {
1194
- return or(function(n, r) {
1195
- return ie(t(n, r)).pipe(ur(1), $i(n));
1193
+ function wi(t, e) {
1194
+ return sr(function(n, r) {
1195
+ return ie(t(n, r)).pipe(cr(1), Ai(n));
1196
1196
  });
1197
1197
  }
1198
- function wi(t, e) {
1198
+ function Oi(t, e) {
1199
1199
  e === void 0 && (e = Bn);
1200
- var n = sr(t, e);
1201
- return Ai(function() {
1200
+ var n = ur(t, e);
1201
+ return wi(function() {
1202
1202
  return n;
1203
1203
  });
1204
1204
  }
1205
- function Oi(t, e) {
1206
- return e === void 0 && (e = sn), t = t ?? Ei, re(function(n, r) {
1205
+ function Ei(t, e) {
1206
+ return e === void 0 && (e = sn), t = t ?? Ii, 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,10 +1211,10 @@ function Oi(t, e) {
1211
1211
  }));
1212
1212
  });
1213
1213
  }
1214
- function Ei(t, e) {
1214
+ function Ii(t, e) {
1215
1215
  return t === e;
1216
1216
  }
1217
- function Ii(t) {
1217
+ function Ti(t) {
1218
1218
  t === void 0 && (t = 1 / 0);
1219
1219
  var e;
1220
1220
  t && typeof t == "object" ? e = t : e = {
@@ -1232,7 +1232,7 @@ function Ii(t) {
1232
1232
  _ ? (_.unsubscribe(), _ = null, m()) : p = !0;
1233
1233
  };
1234
1234
  if (i != null) {
1235
- var f = typeof i == "number" ? sr(i) : ie(i(a, l)), S = J(c, function() {
1235
+ var f = typeof i == "number" ? ur(i) : ie(i(a, l)), S = J(c, function() {
1236
1236
  S.unsubscribe(), h();
1237
1237
  }, function() {
1238
1238
  c.complete();
@@ -1267,8 +1267,8 @@ function wn(t, e) {
1267
1267
  }
1268
1268
  function cn(t, e) {
1269
1269
  e === void 0 && (e = {});
1270
- var n = e.selector, r = jr(e, ["selector"]);
1271
- return new T(function(i) {
1270
+ var n = e.selector, r = zr(e, ["selector"]);
1271
+ return new P(function(i) {
1272
1272
  var o = new AbortController(), s = o.signal, u = !0, c = r.signal;
1273
1273
  if (c)
1274
1274
  if (c.aborted)
@@ -1491,7 +1491,7 @@ function at(t) {
1491
1491
  throw new Error("Unable to parse base64 string.");
1492
1492
  return e;
1493
1493
  }
1494
- function cr(t) {
1494
+ function ar(t) {
1495
1495
  let e = "", n, r = t.length;
1496
1496
  for (n = 2; n < r; n += 3)
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];
@@ -1508,11 +1508,11 @@ function Pi(t) {
1508
1508
  o = at(t.charCodeAt(s)) << 18 | at(t.charCodeAt(s + 1)) << 12 | at(t.charCodeAt(s + 2)) << 6 | at(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 Ti(t, e = new TextEncoder()) {
1512
- return cr(e.encode(t));
1511
+ function Mi(t, e = new TextEncoder()) {
1512
+ return ar(e.encode(t));
1513
1513
  }
1514
- var ft = { exports: {} }, Mi = ft.exports, En;
1515
- function Ri() {
1514
+ var ft = { exports: {} }, Ri = ft.exports, En;
1515
+ function Ui() {
1516
1516
  return En || (En = 1, function(t) {
1517
1517
  (function(e, n) {
1518
1518
  var r = {};
@@ -1521,7 +1521,7 @@ function Ri() {
1521
1521
  for (var o in r)
1522
1522
  i[o] = r[o];
1523
1523
  t.exports = i;
1524
- })(Mi, function(e) {
1524
+ })(Ri, function(e) {
1525
1525
  e.__esModule = !0, e.digestLength = 32, e.blockSize = 64;
1526
1526
  var n = new Uint32Array([
1527
1527
  1116352408,
@@ -1590,13 +1590,13 @@ function Ri() {
1590
1590
  3329325298
1591
1591
  ]);
1592
1592
  function r(p, a, h, f, S) {
1593
- for (var g, k, x, H, U, O, G, D, j, q, Ne, Ce, ut; S >= 64; ) {
1594
- for (g = a[0], k = a[1], x = a[2], H = a[3], U = a[4], O = a[5], G = a[6], D = a[7], q = 0; q < 16; q++)
1595
- Ne = f + q * 4, p[q] = (h[Ne] & 255) << 24 | (h[Ne + 1] & 255) << 16 | (h[Ne + 2] & 255) << 8 | h[Ne + 3] & 255;
1596
- for (q = 16; q < 64; q++)
1597
- j = p[q - 2], Ce = (j >>> 17 | j << 15) ^ (j >>> 19 | j << 13) ^ j >>> 10, j = p[q - 15], ut = (j >>> 7 | j << 25) ^ (j >>> 18 | j << 14) ^ j >>> 3, p[q] = (Ce + p[q - 7] | 0) + (ut + p[q - 16] | 0);
1598
- for (q = 0; q < 64; q++)
1599
- Ce = (((U >>> 6 | U << 26) ^ (U >>> 11 | U << 21) ^ (U >>> 25 | U << 7)) + (U & O ^ ~U & G) | 0) + (D + (n[q] + p[q] | 0) | 0) | 0, ut = ((g >>> 2 | g << 30) ^ (g >>> 13 | g << 19) ^ (g >>> 22 | g << 10)) + (g & k ^ g & x ^ k & x) | 0, D = G, G = O, O = U, U = H + Ce | 0, H = x, x = k, k = g, g = Ce + ut | 0;
1593
+ for (var g, k, x, H, U, O, G, D, j, N, qe, Ce, ut; S >= 64; ) {
1594
+ for (g = a[0], k = a[1], x = a[2], H = a[3], U = a[4], O = a[5], G = a[6], D = a[7], N = 0; N < 16; N++)
1595
+ qe = f + N * 4, p[N] = (h[qe] & 255) << 24 | (h[qe + 1] & 255) << 16 | (h[qe + 2] & 255) << 8 | h[qe + 3] & 255;
1596
+ for (N = 16; N < 64; N++)
1597
+ j = p[N - 2], Ce = (j >>> 17 | j << 15) ^ (j >>> 19 | j << 13) ^ j >>> 10, j = p[N - 15], ut = (j >>> 7 | j << 25) ^ (j >>> 18 | j << 14) ^ j >>> 3, p[N] = (Ce + p[N - 7] | 0) + (ut + p[N - 16] | 0);
1598
+ for (N = 0; N < 64; N++)
1599
+ Ce = (((U >>> 6 | U << 26) ^ (U >>> 11 | U << 21) ^ (U >>> 25 | U << 7)) + (U & O ^ ~U & G) | 0) + (D + (n[N] + p[N] | 0) | 0) | 0, ut = ((g >>> 2 | g << 30) ^ (g >>> 13 | g << 19) ^ (g >>> 22 | g << 10)) + (g & k ^ g & x ^ k & x) | 0, D = G, G = O, O = U, U = H + Ce | 0, H = x, x = k, k = g, g = Ce + ut | 0;
1600
1600
  a[0] += g, a[1] += k, a[2] += x, a[3] += H, a[4] += U, a[5] += O, a[6] += G, a[7] += D, f += 64, S -= 64;
1601
1601
  }
1602
1602
  return f;
@@ -1737,8 +1737,8 @@ function Ri() {
1737
1737
  });
1738
1738
  }(ft)), ft.exports;
1739
1739
  }
1740
- var Ui = Ri();
1741
- const Di = new Int32Array(4);
1740
+ var Di = Ui();
1741
+ const Ni = new Int32Array(4);
1742
1742
  class W {
1743
1743
  static hashStr(e, n = !1) {
1744
1744
  return this.onePassHasher.start().appendStr(e).end(n);
@@ -1896,7 +1896,7 @@ class W {
1896
1896
  i[14] = s;
1897
1897
  else {
1898
1898
  const u = s.toString(16).match(/(.*?)(.{0,8})$/);
1899
- if (u === null) return e ? Di : "";
1899
+ if (u === null) return e ? Ni : "";
1900
1900
  const c = parseInt(u[2], 16), l = parseInt(u[1], 16) || 0;
1901
1901
  i[14] = c, i[15] = l;
1902
1902
  }
@@ -1912,7 +1912,7 @@ function mt(t, e) {
1912
1912
  function Le(t, e) {
1913
1913
  return mt(t, t);
1914
1914
  }
1915
- function Ni(t, e, n) {
1915
+ function Ci(t, e, n) {
1916
1916
  const r = Le(t);
1917
1917
  if (isNaN(e)) return mt(t, NaN);
1918
1918
  const i = r.getDate(), o = mt(t, r.getTime());
@@ -1924,38 +1924,38 @@ function Ni(t, e, n) {
1924
1924
  i
1925
1925
  ), r);
1926
1926
  }
1927
- function ar(t, e, n) {
1927
+ function lr(t, e, n) {
1928
1928
  return mt(t, +Le(t) + e);
1929
1929
  }
1930
- function Ci(t, e, n) {
1931
- return ar(t, e * qi);
1932
- }
1933
1930
  function ji(t, e, n) {
1934
- return ar(t, e * 1e3);
1931
+ return lr(t, e * qi);
1935
1932
  }
1936
1933
  function Fi(t, e, n) {
1937
- return Ni(t, e * 12);
1934
+ return lr(t, e * 1e3);
1938
1935
  }
1939
- function Pn(t) {
1936
+ function zi(t, e, n) {
1937
+ return Ci(t, e * 12);
1938
+ }
1939
+ function Tn(t) {
1940
1940
  return Math.trunc(+Le(t) / 1e3);
1941
1941
  }
1942
- function zi(t, e) {
1942
+ function Li(t, e) {
1943
1943
  return +Le(t) < +Le(e);
1944
1944
  }
1945
1945
  function d(t, e, n, r = "debug", i) {
1946
1946
  if (window.debug) {
1947
1947
  const s = ["color: #0288D1", `color:${i || "#009688"}`, "color: default"];
1948
- n ? Tn() ? console[r](
1948
+ n ? Pn() ? console[r](
1949
1949
  `%c[PlaceOS]%c[${t}] %c${e}`,
1950
1950
  ...s,
1951
1951
  n
1952
- ) : console[r](`[PlaceOS][${t}] ${e}`, n) : Tn() ? console[r](`%c[PlaceOS]%c[${t}] %c${e}`, ...s) : console[r](`[PlaceOS][${t}] ${e}`);
1952
+ ) : console[r](`[PlaceOS][${t}] ${e}`, n) : Pn() ? console[r](`%c[PlaceOS]%c[${t}] %c${e}`, ...s) : console[r](`[PlaceOS][${t}] ${e}`);
1953
1953
  }
1954
1954
  }
1955
- function Tn() {
1955
+ function Pn() {
1956
1956
  return !(document.documentMode || /Edge/.test(navigator.userAgent));
1957
1957
  }
1958
- function lr() {
1958
+ function fr() {
1959
1959
  const t = window.location?.hash ? window.location?.hash.slice(1) : window.location?.href.split("#")[1] || "";
1960
1960
  let e = window.location?.search ? window.location?.search.slice(1) : window.location?.href.split("?")[1] || "", n = {};
1961
1961
  if (t)
@@ -1978,7 +1978,7 @@ function je(t) {
1978
1978
  return e;
1979
1979
  }
1980
1980
  const Mn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
1981
- function Li(t = 40) {
1981
+ function Hi(t = 40) {
1982
1982
  let e = "";
1983
1983
  for (let n = 0; n < t; n++)
1984
1984
  e += Mn.charAt(
@@ -2001,7 +2001,7 @@ function yt(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 Hi(t) {
2004
+ function Wi(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 Hi(t) {
2014
2014
  }
2015
2015
  return n;
2016
2016
  }
2017
- function Wi(t, e) {
2017
+ function Bi(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 Bi() {
2022
+ function Vi() {
2023
2023
  return [
2024
2024
  "iPad Simulator",
2025
2025
  "iPhone Simulator",
@@ -2030,13 +2030,13 @@ function Bi() {
2030
2030
  ].includes(navigator.platform) || // iPad on iOS 13 detection
2031
2031
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
2032
2032
  }
2033
- function Vi() {
2033
+ function Qi() {
2034
2034
  return window.location !== window.parent.location;
2035
2035
  }
2036
- function Qi(t = Date.now(), e = 60 * 1e3) {
2036
+ function Yi(t = Date.now(), e = 60 * 1e3) {
2037
2037
  return Math.floor(t / e);
2038
2038
  }
2039
- class Yi {
2039
+ class Ji {
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 = {}, Fe = {}, ue = {};
2054
- function Ji() {
2054
+ function Ki() {
2055
2055
  for (const t in _e)
2056
2056
  _e.hasOwnProperty(t) && ve(t);
2057
2057
  for (const t in Fe)
2058
- Fe.hasOwnProperty(t) && Ki(t);
2058
+ Fe.hasOwnProperty(t) && Zi(t);
2059
2059
  for (const t in ue)
2060
- ue.hasOwnProperty(t) && Zi(t);
2060
+ ue.hasOwnProperty(t) && Gi(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 ve(t) {
2073
2073
  _e[t] && (clearTimeout(_e[t]), delete _e[t]);
2074
2074
  }
2075
- function Ki(t) {
2075
+ function Zi(t) {
2076
2076
  Fe[t] && (clearInterval(Fe[t]), delete Fe[t]);
2077
2077
  }
2078
- function Zi(t) {
2078
+ function Gi(t) {
2079
2079
  ue && ue[t] && (ue[t] instanceof ge ? ue[t].unsubscribe() : ue[t](), delete ue[t]);
2080
2080
  }
2081
- const Gi = {
2081
+ const Xi = {
2082
2082
  id: "mock-authority",
2083
2083
  name: "localhost:4200",
2084
2084
  description: "",
@@ -2095,30 +2095,30 @@ const b = {};
2095
2095
  let w = "", ye = "";
2096
2096
  const Ee = new ae(""), wt = new ae("");
2097
2097
  let an = "/api/engine/v2";
2098
- const ce = new ae(!1), Xi = ce.asObservable();
2098
+ const ce = new ae(!1), eo = ce.asObservable();
2099
2099
  let gt = 0;
2100
2100
  function be() {
2101
- return `${`${v.secure || window.location?.protocol.indexOf("https") >= 0 ? "https:" : "http:"}//${v.host || window.location?.host}`}${fr()}`;
2101
+ return `${`${v.secure || window.location?.protocol.indexOf("https") >= 0 ? "https:" : "http:"}//${v.host || window.location?.host}`}${hr()}`;
2102
2102
  }
2103
- function fr() {
2103
+ function hr() {
2104
2104
  return v.version === "ACA Engine" ? "/control/api" : an;
2105
2105
  }
2106
- function eo() {
2106
+ function to() {
2107
2107
  return !!v.token_header;
2108
2108
  }
2109
- function to() {
2109
+ function no() {
2110
2110
  return w;
2111
2111
  }
2112
- function ps() {
2112
+ function _s() {
2113
2113
  return v.redirect_uri;
2114
2114
  }
2115
- function _s(t, e = !0) {
2116
- A.setItem(`${w}_x-api-key`, `${t}`), A.setItem("trusted", `${e}`), no("x-api-key", Fi(/* @__PURE__ */ new Date(), 5).valueOf());
2115
+ function ms(t, e = !0) {
2116
+ A.setItem(`${w}_x-api-key`, `${t}`), A.setItem("trusted", `${e}`), ro("x-api-key", zi(/* @__PURE__ */ new Date(), 5).valueOf());
2117
2117
  }
2118
2118
  function Ot() {
2119
2119
  return bt("x-api-key", !1) || "";
2120
2120
  }
2121
- function no(t, e = Ci(/* @__PURE__ */ new Date(), 2).valueOf()) {
2121
+ function ro(t, e = ji(/* @__PURE__ */ new Date(), 2).valueOf()) {
2122
2122
  v.ignore_api_key && t === "x-api-key" || (A.setItem(`${w}_expires_at`, `${e}`), A.setItem(`${w}_access_token`, t));
2123
2123
  }
2124
2124
  function Y(t = !0) {
@@ -2126,9 +2126,9 @@ function Y(t = !0) {
2126
2126
  if (!A) return "";
2127
2127
  if (Ot() && !v.ignore_api_key) return "x-api-key";
2128
2128
  const e = A.getItem(`${w}_expires_at`) || "", n = Ee.getValue();
2129
- return zi(+e, /* @__PURE__ */ new Date()) && (d("Auth", "Token expired. Requesting new token..."), hn(), b.load_authority || (gt += 1, ne(
2129
+ return Li(+e, /* @__PURE__ */ new Date()) && (d("Auth", "Token expired. Requesting new token..."), hn(), b.load_authority || (gt += 1, ne(
2130
2130
  "re-authorise",
2131
- () => pr().catch(
2131
+ () => _r().catch(
2132
2132
  (r) => d("Auth", `Failed to get token: ${r}`)
2133
2133
  ),
2134
2134
  200 * Math.min(20, gt)
@@ -2140,57 +2140,57 @@ function nn() {
2140
2140
  function rn() {
2141
2141
  return v.host || window.location?.host;
2142
2142
  }
2143
- function ro() {
2143
+ function io() {
2144
2144
  return !!Y();
2145
2145
  }
2146
- function io() {
2147
- return Ee.pipe(I((t) => !!ro()));
2146
+ function oo() {
2147
+ return Ee.pipe(I((t) => !!io()));
2148
2148
  }
2149
2149
  function vt() {
2150
2150
  return F;
2151
2151
  }
2152
- function ms() {
2152
+ function ys() {
2153
2153
  return ce.getValue();
2154
2154
  }
2155
2155
  function ln() {
2156
2156
  return !!v.mock;
2157
2157
  }
2158
- function oo() {
2158
+ function so() {
2159
2159
  return !!v.secure;
2160
2160
  }
2161
- function ys() {
2162
- return Xi;
2161
+ function gs() {
2162
+ return eo;
2163
2163
  }
2164
2164
  function fn() {
2165
2165
  return bt("trust") === "true" || bt("trusted") === "true";
2166
2166
  }
2167
- function hr() {
2167
+ function dr() {
2168
2168
  return !!Ot() && !v.ignore_api_key || bt("fixed_device") === "true";
2169
2169
  }
2170
2170
  function bt(t, e = !0) {
2171
- let r = lr()[t];
2171
+ let r = fr()[t];
2172
2172
  if (A) {
2173
- const i = `${to()}_${t}`;
2173
+ const i = `${no()}_${t}`;
2174
2174
  r = r || A.getItem(i) || A.getItem(t) || "", e && A.setItem(i, `${r}`);
2175
2175
  }
2176
2176
  return r;
2177
2177
  }
2178
- function gs(t) {
2179
- return v = t || v, v.token_header = v.token_header ?? Vi(), window.AbortController || (window.AbortController = Yi), A = v.storage === "session" ? sessionStorage : localStorage, w = W.hashStr(v.redirect_uri, !1), dn();
2178
+ function vs(t) {
2179
+ return v = t || v, v.token_header = v.token_header ?? Qi(), window.AbortController || (window.AbortController = Ji), A = v.storage === "session" ? sessionStorage : localStorage, w = W.hashStr(v.redirect_uri, !1), dn();
2180
2180
  }
2181
- function vs() {
2181
+ function bs() {
2182
2182
  v = {}, F = void 0, Ee.next(""), wt.next(""), ce.next(!1), w = "", ye = "", an = "/api/engine/v2";
2183
2183
  for (const t in b)
2184
2184
  t in b && delete b[t];
2185
- Ji();
2185
+ Ki();
2186
2186
  }
2187
- function dr() {
2187
+ function pr() {
2188
2188
  return d("Auth", "Refreshing authorty."), F = void 0, dn();
2189
2189
  }
2190
2190
  function hn() {
2191
2191
  d("Auth", "Invalidating tokens."), A.removeItem(`${w}_access_token`), A.removeItem(`${w}_expires_at`), Ee.getValue() && Ee.next("");
2192
2192
  }
2193
- function pr(t, e = F) {
2193
+ function _r(t, e = F) {
2194
2194
  return b.authorise || (b.authorise = new Promise((n, r) => {
2195
2195
  if (!e)
2196
2196
  return delete b.authorise, r("Authority is not loaded");
@@ -2207,21 +2207,21 @@ function pr(t, e = F) {
2207
2207
  d("Auth", "Failed to generate token."), r("Failed to generate token"), setTimeout(() => delete b.authorise, 200);
2208
2208
  }
2209
2209
  ];
2210
- v && v.auth_type === "password" ? (d("Auth", "Logging in with credentials."), _o(v).then(
2210
+ v && v.auth_type === "password" ? (d("Auth", "Logging in with credentials."), mo(v).then(
2211
2211
  ...o
2212
2212
  ), gt = 0) : ye || nn() ? (d(
2213
2213
  "Auth",
2214
2214
  `Generating token with ${ye ? "code" : "refresh token"}`
2215
- ), mr().then(...o), gt = 0) : e.session ? (d(
2215
+ ), yr().then(...o), gt = 0) : e.session ? (d(
2216
2216
  "Auth",
2217
2217
  "Users has session. Authorising application..."
2218
- ), so(t).then(...o)) : (d("Auth", "No user session"), _r(e), r("No user session"), setTimeout(() => delete b.authorise, 200));
2218
+ ), uo(t).then(...o)) : (d("Auth", "No user session"), mr(e), r("No user session"), setTimeout(() => delete b.authorise, 200));
2219
2219
  }
2220
2220
  };
2221
- co().then(i, i);
2221
+ ao().then(i, i);
2222
2222
  })), b.authorise;
2223
2223
  }
2224
- function bs() {
2224
+ function Ss() {
2225
2225
  const t = F ? F.logout_url : "/logout";
2226
2226
  fetch(t, {
2227
2227
  method: "GET",
@@ -2241,10 +2241,10 @@ function bs() {
2241
2241
  function dn(t = 0) {
2242
2242
  return b.load_authority || (b.load_authority = new Promise((e) => {
2243
2243
  if (ce.next(!1), v.mock) {
2244
- F = Gi, d("Auth", "System in mock mode"), ce.next(!0), e();
2244
+ F = Xi, d("Auth", "System in mock mode"), ce.next(!0), e();
2245
2245
  return;
2246
2246
  }
2247
- d("Auth", `Fixed: ${hr()} | Trusted: ${fn()}`), d("Auth", "Loading authority...");
2247
+ d("Auth", `Fixed: ${dr()} | Trusted: ${fn()}`), d("Auth", "Loading authority...");
2248
2248
  const n = v.secure || window.location?.protocol.indexOf("https") >= 0, r = (i) => {
2249
2249
  d("Auth", `Failed to load authority(${i})`), ce.next(!1), ne(
2250
2250
  "load_authority",
@@ -2271,17 +2271,17 @@ function dn(t = 0) {
2271
2271
  const o = () => {
2272
2272
  ce.next(!0), d("Auth", "Application set online."), e();
2273
2273
  };
2274
- delete b.load_authority, pr("").then(o, o);
2274
+ delete b.load_authority, _r("").then(o, o);
2275
2275
  }, r);
2276
2276
  })), b.load_authority;
2277
2277
  }
2278
- async function so(t) {
2279
- const e = lo(t);
2278
+ async function uo(t) {
2279
+ const e = fo(t);
2280
2280
  if (v.use_iframe)
2281
- return uo(e);
2281
+ return co(e);
2282
2282
  window.location?.assign(e);
2283
2283
  }
2284
- function uo(t) {
2284
+ function co(t) {
2285
2285
  return b.iframe_auth || (b.iframe_auth = new Promise((e, n) => {
2286
2286
  d("Auth", "Authorizing in an iFrame...");
2287
2287
  const r = document.createElement("iframe");
@@ -2294,7 +2294,7 @@ function uo(t) {
2294
2294
  access_token: s.token,
2295
2295
  ...s
2296
2296
  });
2297
- ye = s.code || "", mr().then(
2297
+ ye = s.code || "", yr().then(
2298
2298
  (u) => e(u),
2299
2299
  (u) => n(u)
2300
2300
  );
@@ -2312,7 +2312,7 @@ function uo(t) {
2312
2312
  })), b.iframe_auth;
2313
2313
  }
2314
2314
  let Rn = !1;
2315
- function _r(t) {
2315
+ function mr(t) {
2316
2316
  if (v.handle_login !== !1 && !Rn) {
2317
2317
  d("Auth", "Redirecting to login page...");
2318
2318
  const e = t.login_url?.replace(
@@ -2324,15 +2324,15 @@ function _r(t) {
2324
2324
  d("Auth", "Login being handled locally.");
2325
2325
  delete b.authorise;
2326
2326
  }
2327
- function co() {
2327
+ function ao() {
2328
2328
  return b.check_token || (b.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 ao() ? t(!0) : e()), delete b.check_token;
2329
+ Y() ? (d("Auth", "Valid token found."), t(Y())) : (d("Auth", "No token. Checking URL for auth credentials..."), await lo() ? t(!0) : e()), delete b.check_token;
2330
2330
  })), b.check_token;
2331
2331
  }
2332
- function ao() {
2332
+ function lo() {
2333
2333
  return b.check_params || (b.check_params = new Promise((t) => {
2334
2334
  d("Auth", "Checking for auth parameters...");
2335
- let e = lr();
2335
+ let e = fr();
2336
2336
  if ((!e || Object.keys(e).length <= 0) && sessionStorage && (e = JSON.parse(
2337
2337
  sessionStorage.getItem("ENGINE.auth.params") || "{}"
2338
2338
  )), e && (e.code || e.access_token || e.refresh_token)) {
@@ -2353,25 +2353,25 @@ function ao() {
2353
2353
  );
2354
2354
  })), b.check_params;
2355
2355
  }
2356
- function lo(t) {
2357
- const e = mo();
2356
+ function fo(t) {
2357
+ const e = yo();
2358
2358
  t = t ? `${e};${t}` : e;
2359
2359
  const n = v ? (v.auth_uri || "").indexOf("?") >= 0 : !1, r = (v ? v.auth_uri : null) || "/auth/oauth/authorize", i = fn() || v.auth_type === "auth_code" ? "code" : "token";
2360
2360
  let o = `${r}${n ? "&" : "?"}response_type=${encodeURIComponent(i)}&client_id=${encodeURIComponent(w)}&state=${encodeURIComponent(t)}&redirect_uri=${encodeURIComponent(v.redirect_uri)}&scope=${encodeURIComponent(v.scope)}`;
2361
2361
  if (v.auth_type === "auth_code") {
2362
- const { challenge: s, verify: u } = fo();
2362
+ const { challenge: s, verify: u } = ho();
2363
2363
  sessionStorage.setItem(`${w}_challenge`, s), o += "&code_challenge_method=S256", o += `&code_challenge=${u}`;
2364
2364
  }
2365
2365
  return o;
2366
2366
  }
2367
2367
  const Un = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");
2368
- function fo(t = 43) {
2368
+ function ho(t = 43) {
2369
2369
  const e = new Array(t).fill(0).map(
2370
2370
  () => Un[Math.floor(Math.random() * Un.length)]
2371
- ).join(""), n = Pi(Ti(e)), r = cr(Ui.hash(n)).split("=")[0].replace(/\//g, "_").replace(/\+/g, "-");
2371
+ ).join(""), n = Pi(Mi(e)), r = ar(Di.hash(n)).split("=")[0].replace(/\//g, "_").replace(/\+/g, "-");
2372
2372
  return { challenge: e, verify: r };
2373
2373
  }
2374
- function ho() {
2374
+ function po() {
2375
2375
  let e = (v.token_uri || "/auth/token") + `?client_id=${encodeURIComponent(w)}`, n = "";
2376
2376
  if (e += `&redirect_uri=${encodeURIComponent(v.redirect_uri)}`, nn()) {
2377
2377
  e += `&refresh_token=${encodeURIComponent(nn())}`, e += "&grant_type=refresh_token";
@@ -2384,7 +2384,7 @@ function ho() {
2384
2384
  }
2385
2385
  return [e, n];
2386
2386
  }
2387
- function po(t) {
2387
+ function _o(t) {
2388
2388
  const e = t.token_uri || "/auth/token", n = z({
2389
2389
  grant_type: "password",
2390
2390
  client_id: w,
@@ -2397,13 +2397,13 @@ function po(t) {
2397
2397
  });
2398
2398
  return `${e}?${n}`;
2399
2399
  }
2400
- function mr() {
2401
- return yr(...ho());
2400
+ function yr() {
2401
+ return gr(...po());
2402
2402
  }
2403
- function _o(t) {
2404
- return yr(po(t));
2403
+ function mo(t) {
2404
+ return gr(_o(t));
2405
2405
  }
2406
- function yr(t, e = "") {
2406
+ function gr(t, e = "") {
2407
2407
  return b.generate_tokens || (b.generate_tokens = new Promise((n, r) => {
2408
2408
  d("Auth", "Generating new token...");
2409
2409
  const i = (o) => {
@@ -2423,7 +2423,7 @@ function yr(t, e = "") {
2423
2423
  })), b.generate_tokens;
2424
2424
  }
2425
2425
  function pn(t) {
2426
- const e = ji(
2426
+ const e = Fi(
2427
2427
  /* @__PURE__ */ new Date(),
2428
2428
  Math.max(60, parseInt(t.expires_in, 10) - 300)
2429
2429
  );
@@ -2435,13 +2435,20 @@ function pn(t) {
2435
2435
  t.refresh_token
2436
2436
  ), he("refresh_token"))), t.expires_in && (A.setItem(`${w}_expires_at`, `${e.valueOf()}`), he("expires_in")), ce.next(!0), Ee.next(t.access_token || ""), wt.next(t.refresh_token || "");
2437
2437
  }
2438
- function mo() {
2439
- const t = Li();
2438
+ function yo() {
2439
+ const t = Hi();
2440
2440
  return A.setItem(`${w}_nonce`, t), t;
2441
2441
  }
2442
2442
  const Et = {};
2443
- function Ss(t, e = Et) {
2444
- yo(t.method, t.path, e);
2443
+ let vr = (t, e) => {
2444
+ const n = new Error(`Mock endpoint not found: ${t} ${e}`);
2445
+ return n.status = 404, d("HTTP(M)", `404 ${t}:`, e), or(n);
2446
+ };
2447
+ function ks(t) {
2448
+ vr = t;
2449
+ }
2450
+ function xs(t, e = Et) {
2451
+ go(t.method, t.path, e);
2445
2452
  const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
2446
2453
  ...t,
2447
2454
  path_parts: r,
@@ -2451,19 +2458,19 @@ function Ss(t, e = Et) {
2451
2458
  };
2452
2459
  e[n] = i, d("HTTP(M)", `+ ${t.method} ${t.path}`);
2453
2460
  }
2454
- function yo(t, e, n = Et) {
2461
+ function go(t, e, n = Et) {
2455
2462
  const r = `${t}|${e}`;
2456
2463
  n[r] && (delete n[r], d("HTTP(M)", `- ${t} ${e}`));
2457
2464
  }
2458
- function go(t, e, n, r = Et) {
2459
- const i = vo(t, e, r);
2465
+ function vo(t, e, n, r = Et) {
2466
+ const i = bo(t, e, r);
2460
2467
  if (i) {
2461
- const o = bo(e, i, n);
2462
- return So(i, o);
2468
+ const o = So(e, i, n);
2469
+ return ko(i, o);
2463
2470
  }
2464
- return null;
2471
+ return vr(t, e);
2465
2472
  }
2466
- function vo(t, e, n = Et) {
2473
+ function bo(t, e, n = Et) {
2467
2474
  const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), o = Object.keys(
2468
2475
  n
2469
2476
  ).reduce((s, u) => (u.indexOf(`${t}|`) === 0 && s.push(n[u]), s), []);
@@ -2480,7 +2487,7 @@ function vo(t, e, n = Et) {
2480
2487
  }
2481
2488
  return null;
2482
2489
  }
2483
- function bo(t, e, n) {
2490
+ function So(t, e, n) {
2484
2491
  const r = t.replace(/(http|https):\/\/[a-zA-Z0-9.]*:?([0-9]*)?/g, "").split("?"), i = r[0].replace(/^\//, ""), o = r[1] || "", s = je(o), u = i.split("/"), c = {};
2485
2492
  for (let _ = 0; _ < e.path_structure.length; _++) {
2486
2493
  const m = e.path_structure[_];
@@ -2497,7 +2504,7 @@ function bo(t, e, n) {
2497
2504
  };
2498
2505
  return d("HTTP(M)", `MATCHED ${l.method}:`, l), l;
2499
2506
  }
2500
- function So(t, e) {
2507
+ function ko(t, e) {
2501
2508
  let n;
2502
2509
  try {
2503
2510
  n = t.callback ? t.callback(e) : t.metadata;
@@ -2505,10 +2512,10 @@ function So(t, e) {
2505
2512
  throw d("HTTP(M)", `ERROR ${e.method}:`, [e.url, s]), s;
2506
2513
  }
2507
2514
  const r = t.delay_variance || 100, i = t.delay || 300, o = Math.floor(Math.random() * r - r / 2) + i;
2508
- return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]), vi([n]).pipe(wi(Math.max(200, o)));
2515
+ return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]), Si([n]).pipe(Oi(Math.max(200, o)));
2509
2516
  }
2510
- const gr = {};
2511
- function ko(t, e = gr) {
2517
+ const br = {};
2518
+ function xo(t, e = br) {
2512
2519
  return e[t] || {};
2513
2520
  }
2514
2521
  function ee(t, e, n = Be) {
@@ -2526,7 +2533,7 @@ function It(t, e, n, r = Be) {
2526
2533
  function We(t, e, n = Be) {
2527
2534
  return e || (e = { response_type: "void" }), n("DELETE", t, { response_type: "void", ...e });
2528
2535
  }
2529
- async function xo(t, e, n = gr) {
2536
+ async function $o(t, e, n = br) {
2530
2537
  if (t.headers) {
2531
2538
  const r = {};
2532
2539
  t.headers.forEach ? t.headers.forEach((i, o) => r[o.toLowerCase()] = i) : Object.keys(t.headers).forEach(
@@ -2544,23 +2551,22 @@ async function xo(t, e, n = gr) {
2544
2551
  return await t.json().catch(() => ({}));
2545
2552
  }
2546
2553
  }
2547
- const vr = () => (hn(), dr().then(
2554
+ const Sr = () => (hn(), pr().then(
2548
2555
  () => Promise.resolve(),
2549
2556
  () => new Promise((t) => {
2550
2557
  setTimeout(() => {
2551
- vr().then(() => t());
2558
+ Sr().then(() => t());
2552
2559
  }, 1e3);
2553
2560
  })
2554
2561
  ));
2555
- function Be(t, e, n, r = ln, i = go, o = xo) {
2562
+ function Be(t, e, n, r = ln, i = vo, o = $o) {
2556
2563
  if (r()) {
2557
2564
  const s = i(t, e, n?.body);
2558
- if (s)
2559
- return s;
2565
+ if (s) return s;
2560
2566
  }
2561
- return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), io().pipe(
2562
- xi((s) => s),
2563
- ur(1),
2567
+ return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), oo().pipe(
2568
+ $i((s) => s),
2569
+ cr(1),
2564
2570
  wn((s) => {
2565
2571
  Y() === "x-api-key" ? n.headers["X-API-Key"] = Ot() : n.headers.Authorization = `Bearer ${Y()}`;
2566
2572
  const u = {
@@ -2570,12 +2576,12 @@ function Be(t, e, n, r = ln, i = go, o = xo) {
2570
2576
  };
2571
2577
  return ["POST", "PUT", "PATCH"].includes(t) && n.body !== void 0 && (u.body = typeof n.body == "string" ? n.body : JSON.stringify(n.body)), cn(e, u);
2572
2578
  }),
2573
- wn((s) => s.ok ? o(s, n.response_type) : bi(s)),
2574
- Ii({
2579
+ wn((s) => s.ok ? o(s, n.response_type) : or(s)),
2580
+ Ti({
2575
2581
  count: 4,
2576
- delay: (s, u) => new T((c) => {
2582
+ delay: (s, u) => new P((c) => {
2577
2583
  if (s.status === 511) {
2578
- _r(vt()), c.error(s);
2584
+ mr(vt()), c.error(s);
2579
2585
  return;
2580
2586
  }
2581
2587
  if (s.status !== 401) {
@@ -2584,7 +2590,7 @@ function Be(t, e, n, r = ln, i = go, o = xo) {
2584
2590
  }
2585
2591
  d("HTTP", "Auth error", s);
2586
2592
  const l = Math.pow(2, u - 1) * 1e3;
2587
- vr().then(() => {
2593
+ Sr().then(() => {
2588
2594
  c.next(l), c.complete();
2589
2595
  }).catch(() => {
2590
2596
  c.error(s);
@@ -2612,10 +2618,10 @@ class B {
2612
2618
  */
2613
2619
  toJSON() {
2614
2620
  const e = { ...this };
2615
- return e.version = this.version, delete e.created_at, Wi(e, [void 0, null, ""]);
2621
+ return e.version = this.version, delete e.created_at, Bi(e, [void 0, null, ""]);
2616
2622
  }
2617
2623
  }
2618
- class $o extends B {
2624
+ class Ao extends B {
2619
2625
  /** Unique identifier of the application */
2620
2626
  uid;
2621
2627
  /** Secret associated with the application */
@@ -2634,19 +2640,19 @@ class $o extends B {
2634
2640
  super(e), this.uid = e.uid || "", this.secret = e.secret || "", this.owner_id = e.owner_id || "", this.scopes = e.scopes || "", this.redirect_uri = e.redirect_uri || "", this.skip_authorization = e.skip_authorization || !1, this.preserve_client_id = e.preserve_client_id || !1;
2635
2641
  }
2636
2642
  }
2637
- function ks(t) {
2638
- return br[t] || 0;
2643
+ function $s(t) {
2644
+ return kr[t] || 0;
2639
2645
  }
2640
- function xs(t) {
2641
- return Sr[t] || 0;
2646
+ function As(t) {
2647
+ return xr[t] || 0;
2642
2648
  }
2643
- let br = {}, Sr = {}, Dn = "";
2644
- const Pt = (t) => t;
2649
+ let kr = {}, xr = {}, Dn = "";
2650
+ const Tt = (t) => t;
2645
2651
  function E(t) {
2646
2652
  const { query_params: e, fn: n, path: r, endpoint: i } = t, o = z(e), s = `${i || be()}${r ? "/" + r : ""}${o ? "?" + o : ""}`;
2647
2653
  return ee(s).pipe(
2648
2654
  I((u) => {
2649
- const c = Ao(s, o, r);
2655
+ const c = wo(s, o, r);
2650
2656
  return {
2651
2657
  total: c.total || 0,
2652
2658
  next: c.next ? () => E({
@@ -2655,19 +2661,19 @@ function E(t) {
2655
2661
  endpoint: i,
2656
2662
  path: r
2657
2663
  }) : null,
2658
- data: u && u instanceof Array ? u.map((l) => (n || Pt)(l)) : u && !(u instanceof Array) && u.results ? u.results.map((l) => l) : []
2664
+ data: u && u instanceof Array ? u.map((l) => (n || Tt)(l)) : u && !(u instanceof Array) && u.results ? u.results.map((l) => l) : []
2659
2665
  };
2660
2666
  })
2661
2667
  );
2662
2668
  }
2663
2669
  function $(t) {
2664
2670
  const { query_params: e, id: n, path: r, fn: i, options: o } = t, s = z(e), u = `${be()}/${r}/${n}${s ? "?" + s : ""}`;
2665
- return ee(u, o).pipe(I((c) => (i || Pt)(c)));
2671
+ return ee(u, o).pipe(I((c) => (i || Tt)(c)));
2666
2672
  }
2667
- function N(t) {
2673
+ function q(t) {
2668
2674
  const { query_params: e, form_data: n, path: r, fn: i } = t, o = z(e), s = `${be()}/${r}${o ? "?" + o : ""}`;
2669
2675
  return Ie(s, n).pipe(
2670
- I((c) => (i || Pt)(c))
2676
+ I((c) => (i || Tt)(c))
2671
2677
  );
2672
2678
  }
2673
2679
  function y(t) {
@@ -2687,15 +2693,15 @@ function C(t) {
2687
2693
  version: r.version || 0
2688
2694
  }), c = `${be()}/${o}/${e}${u ? "?" + u : ""}`;
2689
2695
  return (i === "put" ? He : It)(c, r).pipe(
2690
- I((l) => (s || Pt)(l))
2696
+ I((l) => (s || Tt)(l))
2691
2697
  );
2692
2698
  }
2693
2699
  function M(t) {
2694
2700
  const { id: e, query_params: n, path: r } = t, i = z(n), o = `${be()}/${r}/${e}${i ? "?" + i : ""}`;
2695
2701
  return We(o);
2696
2702
  }
2697
- function Ao(t, e, n) {
2698
- const r = ko(
2703
+ function wo(t, e, n) {
2704
+ const r = xo(
2699
2705
  t[0] === "/" ? `${location.origin}${t}` : t
2700
2706
  ), i = {
2701
2707
  total: 0,
@@ -2703,38 +2709,38 @@ function Ao(t, e, n) {
2703
2709
  };
2704
2710
  if (r && r["x-total-count"]) {
2705
2711
  const o = +(r["x-total-count"] || 0);
2706
- (e.length < 2 || e.length < 12 && e.indexOf("offset=") >= 0) && (br[n] = o), Sr[n] = o, i.total = o;
2712
+ (e.length < 2 || e.length < 12 && e.indexOf("offset=") >= 0) && (kr[n] = o), xr[n] = o, i.total = o;
2707
2713
  }
2708
- return r && r.link && (Dn = Hi(r.link || "").next, i.next = je(Dn.split("?")[1])), i;
2714
+ return r && r.link && (Dn = Wi(r.link || "").next, i.next = je(Dn.split("?")[1])), i;
2709
2715
  }
2710
2716
  const Ve = "oauth_apps";
2711
- function Tt(t) {
2712
- return new $o(t);
2717
+ function Pt(t) {
2718
+ return new Ao(t);
2713
2719
  }
2714
- function $s(t = {}) {
2715
- return E({ query_params: t, fn: Tt, path: Ve });
2720
+ function ws(t = {}) {
2721
+ return E({ query_params: t, fn: Pt, path: Ve });
2716
2722
  }
2717
- function As(t, e = {}) {
2718
- return $({ id: t, query_params: e, fn: Tt, path: Ve });
2723
+ function Os(t, e = {}) {
2724
+ return $({ id: t, query_params: e, fn: Pt, path: Ve });
2719
2725
  }
2720
- function ws(t, e, n = "patch") {
2726
+ function Es(t, e, n = "patch") {
2721
2727
  return C({
2722
2728
  id: t,
2723
2729
  form_data: e,
2724
2730
  query_params: {},
2725
2731
  method: n,
2726
- fn: Tt,
2732
+ fn: Pt,
2727
2733
  path: Ve
2728
2734
  });
2729
2735
  }
2730
- function Os(t) {
2731
- return N({ form_data: t, query_params: {}, fn: Tt, path: Ve });
2736
+ function Is(t) {
2737
+ return q({ form_data: t, query_params: {}, fn: Pt, path: Ve });
2732
2738
  }
2733
- function Es(t, e = {}) {
2739
+ function Ts(t, e = {}) {
2734
2740
  return M({ id: t, query_params: e, path: Ve });
2735
2741
  }
2736
- var wo = /* @__PURE__ */ ((t) => (t[t.Certificate = 0] = "Certificate", t[t.NoAuth = 1] = "NoAuth", t[t.UserPassword = 2] = "UserPassword", t))(wo || {});
2737
- class Oo extends B {
2742
+ var Oo = /* @__PURE__ */ ((t) => (t[t.Certificate = 0] = "Certificate", t[t.NoAuth = 1] = "NoAuth", t[t.UserPassword = 2] = "UserPassword", t))(Oo || {});
2743
+ class Eo extends B {
2738
2744
  /** Unique identifier for the Broker */
2739
2745
  id;
2740
2746
  /** Name of the Broker */
@@ -2765,15 +2771,15 @@ class Oo extends B {
2765
2771
  }
2766
2772
  const Qe = "brokers";
2767
2773
  function Mt(t) {
2768
- return new Oo(t);
2774
+ return new Eo(t);
2769
2775
  }
2770
- function Is(t = {}) {
2776
+ function Ps(t = {}) {
2771
2777
  return E({ query_params: t, fn: Mt, path: Qe });
2772
2778
  }
2773
- function Ps(t, e = {}) {
2779
+ function Ms(t, e = {}) {
2774
2780
  return $({ id: t, query_params: e, fn: Mt, path: Qe });
2775
2781
  }
2776
- function Ts(t, e, n = "patch") {
2782
+ function Rs(t, e, n = "patch") {
2777
2783
  return C({
2778
2784
  id: t,
2779
2785
  form_data: e,
@@ -2783,13 +2789,13 @@ function Ts(t, e, n = "patch") {
2783
2789
  path: Qe
2784
2790
  });
2785
2791
  }
2786
- function Ms(t) {
2787
- return N({ form_data: t, query_params: {}, fn: Mt, path: Qe });
2792
+ function Us(t) {
2793
+ return q({ form_data: t, query_params: {}, fn: Mt, path: Qe });
2788
2794
  }
2789
- function Rs(t, e = {}) {
2795
+ function Ds(t, e = {}) {
2790
2796
  return M({ id: t, query_params: e, path: Qe });
2791
2797
  }
2792
- class Eo {
2798
+ class Io {
2793
2799
  /** Unique identifier of the application */
2794
2800
  id;
2795
2801
  /** List of running drivers */
@@ -2837,7 +2843,7 @@ class Eo {
2837
2843
  })) || [];
2838
2844
  }
2839
2845
  }
2840
- class Io {
2846
+ class To {
2841
2847
  /** ID of the cluster associated with the process */
2842
2848
  cluster_id;
2843
2849
  /** Unique identifier of the application */
@@ -2870,25 +2876,25 @@ class Io {
2870
2876
  }
2871
2877
  const _n = "cluster";
2872
2878
  function Po(t) {
2873
- return new Eo(t);
2879
+ return new Io(t);
2874
2880
  }
2875
- function Us(t = {}) {
2881
+ function Ns(t = {}) {
2876
2882
  return E({ query_params: t, fn: Po, path: _n });
2877
2883
  }
2878
- function Ds(t, e = {}) {
2884
+ function qs(t, e = {}) {
2879
2885
  return $({
2880
2886
  id: t,
2881
2887
  query_params: e,
2882
2888
  fn: (n) => n.map(
2883
- (r) => new Io(t, r)
2889
+ (r) => new To(t, r)
2884
2890
  ),
2885
2891
  path: _n
2886
2892
  });
2887
2893
  }
2888
- function qs(t, e) {
2894
+ function Cs(t, e) {
2889
2895
  return M({ id: t, query_params: { driver: e }, path: _n });
2890
2896
  }
2891
- class To extends B {
2897
+ class Mo extends B {
2892
2898
  /** Domain name */
2893
2899
  domain;
2894
2900
  /** Login URL for the domain */
@@ -2909,15 +2915,15 @@ class To extends B {
2909
2915
  }
2910
2916
  const Ye = "domains";
2911
2917
  function Rt(t) {
2912
- return new To(t);
2918
+ return new Mo(t);
2913
2919
  }
2914
- function Ns(t = {}) {
2920
+ function js(t = {}) {
2915
2921
  return E({ query_params: t, fn: Rt, path: Ye });
2916
2922
  }
2917
- function Cs(t, e = {}) {
2923
+ function Fs(t, e = {}) {
2918
2924
  return $({ id: t, query_params: e, fn: Rt, path: Ye });
2919
2925
  }
2920
- function js(t, e, n = "patch") {
2926
+ function zs(t, e, n = "patch") {
2921
2927
  return C({
2922
2928
  id: t,
2923
2929
  form_data: e,
@@ -2927,13 +2933,13 @@ function js(t, e, n = "patch") {
2927
2933
  path: Ye
2928
2934
  });
2929
2935
  }
2930
- function Fs(t) {
2931
- return N({ form_data: t, query_params: {}, fn: Rt, path: Ye });
2936
+ function Ls(t) {
2937
+ return q({ form_data: t, query_params: {}, fn: Rt, path: Ye });
2932
2938
  }
2933
- function zs(t, e = {}) {
2939
+ function Hs(t, e = {}) {
2934
2940
  return M({ id: t, query_params: e, path: Ye });
2935
2941
  }
2936
- var Pe = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Support = 1] = "Support", t[t.Admin = 2] = "Admin", t[t.NeverDisplay = 3] = "NeverDisplay", t))(Pe || {});
2942
+ 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 || {});
2937
2943
  class Se extends B {
2938
2944
  /** ID of the parent zone/system/module/driver */
2939
2945
  parent_id;
@@ -2952,11 +2958,11 @@ class Se extends B {
2952
2958
  return this.settings_string;
2953
2959
  }
2954
2960
  constructor(e = {}) {
2955
- super(e), this.parent_id = e.parent_id || "", this.updated_at = e.updated_at || Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3), this.settings_string = e.settings_string || "", this.encryption_level = e.encryption_level || Pe.None, this.keys = e.keys || [], this.modified_by_id = e.modified_by_id || "";
2961
+ super(e), this.parent_id = e.parent_id || "", this.updated_at = e.updated_at || Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3), this.settings_string = e.settings_string || "", this.encryption_level = e.encryption_level || Te.None, this.keys = e.keys || [], this.modified_by_id = e.modified_by_id || "";
2956
2962
  }
2957
2963
  }
2958
2964
  var St = /* @__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))(St || {});
2959
- class kr extends B {
2965
+ class $r extends B {
2960
2966
  /** Place class name of the driver */
2961
2967
  class_name;
2962
2968
  /** Description of the driver functionality */
@@ -2984,7 +2990,7 @@ class kr extends B {
2984
2990
  settings;
2985
2991
  constructor(e = {}) {
2986
2992
  super(e), this.description = e.description || "", this.module_name = e.module_name || "", this.role = e.role ?? St.Logic, this.default_uri = e.default_uri || "", this.default_port = e.default_port || 1, this.ignore_connected = e.ignore_connected || !1, this.class_name = e.class_name || "", this.repository_id = e.repository_id || "", this.file_name = e.file_name || "", this.commit = e.commit || "", this.update_available = e.update_available || !1, this.update_info = e.update_info, this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
2987
- for (const n in Pe)
2993
+ for (const n in Te)
2988
2994
  !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Se({
2989
2995
  parent_id: this.id,
2990
2996
  encryption_level: +n
@@ -2993,15 +2999,15 @@ class kr extends B {
2993
2999
  }
2994
3000
  const le = "drivers";
2995
3001
  function Ut(t) {
2996
- return new kr(t);
3002
+ return new $r(t);
2997
3003
  }
2998
- function Ls(t = {}) {
3004
+ function Ws(t = {}) {
2999
3005
  return E({ query_params: t, fn: Ut, path: le });
3000
3006
  }
3001
- function Hs(t, e = {}) {
3007
+ function Bs(t, e = {}) {
3002
3008
  return $({ id: t, query_params: e, fn: Ut, path: le });
3003
3009
  }
3004
- function Ws(t, e, n = "patch") {
3010
+ function Vs(t, e, n = "patch") {
3005
3011
  return C({
3006
3012
  id: t,
3007
3013
  form_data: e,
@@ -3011,22 +3017,22 @@ function Ws(t, e, n = "patch") {
3011
3017
  path: le
3012
3018
  });
3013
3019
  }
3014
- function Bs(t) {
3015
- return N({ form_data: t, query_params: {}, fn: Ut, path: le });
3020
+ function Qs(t) {
3021
+ return q({ form_data: t, query_params: {}, fn: Ut, path: le });
3016
3022
  }
3017
- function Vs(t, e = {}) {
3023
+ function Ys(t, e = {}) {
3018
3024
  return M({ id: t, query_params: e, path: le });
3019
3025
  }
3020
- function Qs(t) {
3026
+ function Js(t) {
3021
3027
  return y({ id: t, task_name: "recompile", path: le });
3022
3028
  }
3023
- function Ys(t) {
3029
+ function Ks(t) {
3024
3030
  return y({ id: t, task_name: "reload", path: le });
3025
3031
  }
3026
- function Js(t) {
3032
+ function Zs(t) {
3027
3033
  return y({ id: t, task_name: "compiled", method: "get", path: le });
3028
3034
  }
3029
- class Mo extends B {
3035
+ class Ro extends B {
3030
3036
  description;
3031
3037
  secret;
3032
3038
  x_api_key;
@@ -3040,42 +3046,42 @@ class Mo extends B {
3040
3046
  return delete e.last_seen, e;
3041
3047
  }
3042
3048
  }
3043
- const Te = "edges";
3049
+ const Pe = "edges";
3044
3050
  function Dt(t) {
3045
- return new Mo(t);
3051
+ return new Ro(t);
3046
3052
  }
3047
- function Ks(t = {}) {
3048
- return E({ query_params: t, fn: Dt, path: Te });
3053
+ function Gs(t = {}) {
3054
+ return E({ query_params: t, fn: Dt, path: Pe });
3049
3055
  }
3050
- function Zs(t, e = {}) {
3051
- return $({ id: t, query_params: e, fn: Dt, path: Te });
3056
+ function Xs(t, e = {}) {
3057
+ return $({ id: t, query_params: e, fn: Dt, path: Pe });
3052
3058
  }
3053
- function Gs(t, e, n = "patch") {
3059
+ function eu(t, e, n = "patch") {
3054
3060
  return C({
3055
3061
  id: t,
3056
3062
  form_data: e,
3057
3063
  query_params: {},
3058
3064
  method: n,
3059
3065
  fn: Dt,
3060
- path: Te
3066
+ path: Pe
3061
3067
  });
3062
3068
  }
3063
- function Xs(t) {
3064
- return N({ form_data: t, query_params: {}, fn: Dt, path: Te });
3069
+ function tu(t) {
3070
+ return q({ form_data: t, query_params: {}, fn: Dt, path: Pe });
3065
3071
  }
3066
- function eu(t, e = {}) {
3067
- return M({ id: t, query_params: e, path: Te });
3072
+ function nu(t, e = {}) {
3073
+ return M({ id: t, query_params: e, path: Pe });
3068
3074
  }
3069
- function tu(t, e = {}) {
3075
+ function ru(t, e = {}) {
3070
3076
  return y({
3071
3077
  id: t,
3072
3078
  task_name: "token",
3073
3079
  form_data: e,
3074
3080
  method: "get",
3075
- path: Te
3081
+ path: Pe
3076
3082
  });
3077
3083
  }
3078
- class Ro extends B {
3084
+ class Uo extends B {
3079
3085
  /** Type of auth source */
3080
3086
  type = "ldap";
3081
3087
  /** ID of the authority associted with the auth method */
@@ -3104,32 +3110,32 @@ class Ro extends B {
3104
3110
  }
3105
3111
  }
3106
3112
  const Je = "ldap_auths";
3107
- function qt(t) {
3108
- return new Ro(t);
3113
+ function Nt(t) {
3114
+ return new Uo(t);
3109
3115
  }
3110
- function nu(t = {}) {
3111
- return E({ query_params: t, fn: qt, path: Je });
3116
+ function iu(t = {}) {
3117
+ return E({ query_params: t, fn: Nt, path: Je });
3112
3118
  }
3113
- function ru(t, e = {}) {
3114
- return $({ id: t, query_params: e, fn: qt, path: Je });
3119
+ function ou(t, e = {}) {
3120
+ return $({ id: t, query_params: e, fn: Nt, path: Je });
3115
3121
  }
3116
- function iu(t, e, n = "patch") {
3122
+ function su(t, e, n = "patch") {
3117
3123
  return C({
3118
3124
  id: t,
3119
3125
  form_data: e,
3120
3126
  query_params: {},
3121
3127
  method: n,
3122
- fn: qt,
3128
+ fn: Nt,
3123
3129
  path: Je
3124
3130
  });
3125
3131
  }
3126
- function ou(t) {
3127
- return N({ form_data: t, query_params: {}, fn: qt, path: Je });
3132
+ function uu(t) {
3133
+ return q({ form_data: t, query_params: {}, fn: Nt, path: Je });
3128
3134
  }
3129
- function su(t, e = {}) {
3135
+ function cu(t, e = {}) {
3130
3136
  return M({ id: t, query_params: e, path: Je });
3131
3137
  }
3132
- class xr {
3138
+ class Ar {
3133
3139
  /** ID of the parent resource associated with the metadata */
3134
3140
  id;
3135
3141
  /** Name/ID of the zone metadata */
@@ -3262,7 +3268,7 @@ class mn extends B {
3262
3268
  trigger_list = [];
3263
3269
  constructor(e = {}) {
3264
3270
  super(e), this.description = e.description || "", this.tags = e.tags || [], this.triggers = e.triggers || [], this.settings = e.settings || [null, null, null, null], this.parent_id = e.parent_id || "", this.location = e.location || "", this.display_name = e.display_name || "", this.code = e.code || "", this.type = e.type || "", this.count = e.count || 0, this.capacity = e.capacity || 0, this.map_id = e.map_id || "", this.timezone = e.timezone || "", this.images = e.images || [], this.playlists = e.playlists || [], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3265
- for (const n in Pe)
3271
+ for (const n in Te)
3266
3272
  !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Se({
3267
3273
  parent_id: this.id,
3268
3274
  encryption_level: +n
@@ -3272,7 +3278,7 @@ class mn extends B {
3272
3278
  ));
3273
3279
  }
3274
3280
  }
3275
- class Uo {
3281
+ class Do {
3276
3282
  /** Zone associated with the metadata */
3277
3283
  zone;
3278
3284
  /** Metadata for zone */
@@ -3283,14 +3289,14 @@ class Uo {
3283
3289
  this.zone = new mn(e.zone), this.keys = e.keys || [], this.metadata = {};
3284
3290
  const n = e.metadata || {};
3285
3291
  for (const r of this.keys)
3286
- this.metadata[r] = new xr(n[r]);
3292
+ this.metadata[r] = new Ar(n[r]);
3287
3293
  }
3288
3294
  }
3289
3295
  const ke = "metadata";
3290
3296
  function Ke(t) {
3291
- return new xr(t);
3297
+ return new Ar(t);
3292
3298
  }
3293
- function uu(t, e = {}) {
3299
+ function au(t, e = {}) {
3294
3300
  return $({
3295
3301
  id: t,
3296
3302
  query_params: e,
@@ -3298,7 +3304,7 @@ function uu(t, e = {}) {
3298
3304
  path: ke
3299
3305
  });
3300
3306
  }
3301
- function Do(t) {
3307
+ function No(t) {
3302
3308
  const e = [...t], n = [];
3303
3309
  for (; e.length; ) {
3304
3310
  const r = e.pop();
@@ -3306,13 +3312,13 @@ function Do(t) {
3306
3312
  }
3307
3313
  return n.reverse();
3308
3314
  }
3309
- function cu(t, e = {}) {
3315
+ function lu(t, e = {}) {
3310
3316
  return y({
3311
3317
  id: t,
3312
3318
  task_name: "history",
3313
3319
  form_data: e,
3314
3320
  method: "get",
3315
- callback: (n) => Do(
3321
+ callback: (n) => No(
3316
3322
  Object.keys(n).map(
3317
3323
  (r) => n[r].map((i) => Ke(i))
3318
3324
  )
@@ -3320,7 +3326,7 @@ function cu(t, e = {}) {
3320
3326
  path: ke
3321
3327
  });
3322
3328
  }
3323
- function au(t, e, n = {}) {
3329
+ function fu(t, e, n = {}) {
3324
3330
  return $({
3325
3331
  id: t,
3326
3332
  query_params: { ...n, name: e },
@@ -3328,7 +3334,7 @@ function au(t, e, n = {}) {
3328
3334
  path: ke
3329
3335
  });
3330
3336
  }
3331
- function lu(t, e, n = "put") {
3337
+ function hu(t, e, n = "put") {
3332
3338
  return C({
3333
3339
  id: t,
3334
3340
  form_data: e,
@@ -3338,20 +3344,20 @@ function lu(t, e, n = "put") {
3338
3344
  path: ke
3339
3345
  });
3340
3346
  }
3341
- function fu(t) {
3342
- return N({ form_data: t, query_params: {}, fn: Ke, path: ke });
3347
+ function du(t) {
3348
+ return q({ form_data: t, query_params: {}, fn: Ke, path: ke });
3343
3349
  }
3344
- function hu(t, e = {}) {
3350
+ function pu(t, e = {}) {
3345
3351
  return M({ id: t, query_params: e, path: ke });
3346
3352
  }
3347
- function du(t, e) {
3353
+ function _u(t, e) {
3348
3354
  return y({
3349
3355
  id: t,
3350
3356
  task_name: "children",
3351
3357
  form_data: e,
3352
3358
  method: "get",
3353
3359
  callback: (n) => n.map(
3354
- (r) => new Uo({
3360
+ (r) => new Do({
3355
3361
  ...r,
3356
3362
  keys: Object.keys(r.metadata)
3357
3363
  })
@@ -3359,7 +3365,7 @@ function du(t, e) {
3359
3365
  path: ke
3360
3366
  });
3361
3367
  }
3362
- class $r extends B {
3368
+ class wr extends B {
3363
3369
  /** Tuple of user settings of differring encryption levels for the system */
3364
3370
  settings = [null, null, null, null];
3365
3371
  /** Display name of the system */
@@ -3406,17 +3412,17 @@ class $r extends B {
3406
3412
  orientation;
3407
3413
  constructor(e = {}) {
3408
3414
  super(e), this.display_name = e.display_name || "", this.description = e.description || "", this.email = e.email || "", this.code = e.code || "", this.capacity = e.capacity || 0, this.features = e.features || [], this.bookable = e.bookable || !1, this.public = e.public ?? !1, this.installed_ui_devices = e.installed_ui_devices || 0, this.support_url = e.support_url || "", this.map_id = e.map_id || "", this.modules = e.modules || [], this.images = e.images || [], this.zones = e.zones || [], this.settings = e.settings || [null, null, null, null], this.timezone = e.timezone || "", this.signage = e.signage || !1, this.playlists = e.playlists || [], this.orientation = e.orientation || "unspecified", this.approval = e.approval || !1, typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3409
- for (const n in Pe)
3415
+ for (const n in Te)
3410
3416
  !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Se({
3411
3417
  parent_id: this.id,
3412
3418
  encryption_level: +n
3413
3419
  }));
3414
3420
  e.module_data && e.module_data instanceof Array && (this.module_list = e.module_data.map(
3415
- (n) => new Ar(n)
3421
+ (n) => new Or(n)
3416
3422
  ));
3417
3423
  }
3418
3424
  }
3419
- class Ar extends B {
3425
+ class Or extends B {
3420
3426
  /** Whether the associated hardware is connected */
3421
3427
  connected;
3422
3428
  /** Whether the module driver is running */
@@ -3464,10 +3470,10 @@ class Ar extends B {
3464
3470
  return this.control_system_id;
3465
3471
  }
3466
3472
  constructor(e = {}) {
3467
- 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 ?? St.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 $r(
3473
+ 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 ?? St.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 wr(
3468
3474
  e.control_system || e.system
3469
- ), this.has_runtime_error = e.has_runtime_error || !1, this.error_timestamp = e.error_timestamp || 0, this.driver = new kr(e.dependency || e.driver), this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3470
- for (const n in Pe)
3475
+ ), this.has_runtime_error = e.has_runtime_error || !1, this.error_timestamp = e.error_timestamp || 0, this.driver = new $r(e.dependency || e.driver), this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3476
+ for (const n in Te)
3471
3477
  !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Se({
3472
3478
  parent_id: this.id,
3473
3479
  encryption_level: +n
@@ -3482,47 +3488,47 @@ class Ar extends B {
3482
3488
  }
3483
3489
  }
3484
3490
  const K = "modules";
3485
- function Nt(t) {
3486
- return new Ar(t);
3491
+ function qt(t) {
3492
+ return new Or(t);
3487
3493
  }
3488
- function pu(t = {}) {
3489
- return E({ query_params: t, fn: Nt, path: K });
3494
+ function mu(t = {}) {
3495
+ return E({ query_params: t, fn: qt, path: K });
3490
3496
  }
3491
- function _u(t, e = {}) {
3492
- return $({ id: t, query_params: e, fn: Nt, path: K });
3497
+ function yu(t, e = {}) {
3498
+ return $({ id: t, query_params: e, fn: qt, path: K });
3493
3499
  }
3494
- function mu(t, e, n = "patch") {
3500
+ function gu(t, e, n = "patch") {
3495
3501
  return C({
3496
3502
  id: t,
3497
3503
  form_data: e,
3498
3504
  query_params: {},
3499
3505
  method: n,
3500
- fn: Nt,
3506
+ fn: qt,
3501
3507
  path: K
3502
3508
  });
3503
3509
  }
3504
- function yu(t) {
3505
- return N({ form_data: t, query_params: {}, fn: Nt, path: K });
3510
+ function vu(t) {
3511
+ return q({ form_data: t, query_params: {}, fn: qt, path: K });
3506
3512
  }
3507
- function gu(t, e = {}) {
3513
+ function bu(t, e = {}) {
3508
3514
  return M({ id: t, query_params: e, path: K });
3509
3515
  }
3510
- function vu(t) {
3516
+ function Su(t) {
3511
3517
  return y({ id: t, task_name: "start", path: K });
3512
3518
  }
3513
- function bu(t) {
3519
+ function ku(t) {
3514
3520
  return y({ id: t, task_name: "stop", path: K });
3515
3521
  }
3516
- function Su(t) {
3522
+ function xu(t) {
3517
3523
  return y({ id: t, task_name: "state", method: "get", path: K });
3518
3524
  }
3519
- function ku(t, e) {
3525
+ function $u(t, e) {
3520
3526
  return y({ id: t, task_name: `state${e}`, method: "get", path: K });
3521
3527
  }
3522
- function xu(t) {
3528
+ function Au(t) {
3523
3529
  return y({ id: t, task_name: "load", method: "post", path: K });
3524
3530
  }
3525
- function $u(t) {
3531
+ function wu(t) {
3526
3532
  return y({
3527
3533
  id: t,
3528
3534
  task_name: "settings",
@@ -3531,7 +3537,7 @@ function $u(t) {
3531
3537
  path: K
3532
3538
  });
3533
3539
  }
3534
- function Au(t) {
3540
+ function Ou(t) {
3535
3541
  return y({
3536
3542
  id: t,
3537
3543
  task_name: "error",
@@ -3576,13 +3582,13 @@ const Ze = "oauth_auths";
3576
3582
  function Ct(t) {
3577
3583
  return new qo(t);
3578
3584
  }
3579
- function wu(t = {}) {
3585
+ function Eu(t = {}) {
3580
3586
  return E({ query_params: t, fn: Ct, path: Ze });
3581
3587
  }
3582
- function Ou(t, e = {}) {
3588
+ function Iu(t, e = {}) {
3583
3589
  return $({ id: t, query_params: e, fn: Ct, path: Ze });
3584
3590
  }
3585
- function Eu(t, e, n = "patch") {
3591
+ function Tu(t, e, n = "patch") {
3586
3592
  return C({
3587
3593
  id: t,
3588
3594
  form_data: e,
@@ -3592,14 +3598,14 @@ function Eu(t, e, n = "patch") {
3592
3598
  path: Ze
3593
3599
  });
3594
3600
  }
3595
- function Iu(t) {
3596
- return N({ form_data: t, query_params: {}, fn: Ct, path: Ze });
3601
+ function Pu(t) {
3602
+ return q({ form_data: t, query_params: {}, fn: Ct, path: Ze });
3597
3603
  }
3598
- function Pu(t, e = {}) {
3604
+ function Mu(t, e = {}) {
3599
3605
  return M({ id: t, query_params: e, path: Ze });
3600
3606
  }
3601
- var wr = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(wr || {});
3602
- class No extends B {
3607
+ var Er = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(Er || {});
3608
+ class Co extends B {
3603
3609
  /** Name of the folder on the server to pull the repository */
3604
3610
  folder_name;
3605
3611
  /** Description of the contents of the repository */
@@ -3623,20 +3629,20 @@ class No extends B {
3623
3629
  return this.repo_type;
3624
3630
  }
3625
3631
  constructor(e = {}) {
3626
- 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 || wr.Driver, this.username = e.username || "", this.password = e.password || "", this.root_path = e.root_path || "";
3632
+ 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 || Er.Driver, this.username = e.username || "", this.password = e.password || "", this.root_path = e.root_path || "";
3627
3633
  }
3628
3634
  }
3629
3635
  const V = "repositories";
3630
3636
  function jt(t) {
3631
- return new No(t);
3637
+ return new Co(t);
3632
3638
  }
3633
- function Tu(t = {}) {
3639
+ function Ru(t = {}) {
3634
3640
  return E({ query_params: t, fn: jt, path: V });
3635
3641
  }
3636
- function Mu(t, e = {}) {
3642
+ function Uu(t, e = {}) {
3637
3643
  return $({ id: t, query_params: e, fn: jt, path: V });
3638
3644
  }
3639
- function Ru(t, e, n = "patch") {
3645
+ function Du(t, e, n = "patch") {
3640
3646
  return C({
3641
3647
  id: t,
3642
3648
  form_data: e,
@@ -3646,41 +3652,41 @@ function Ru(t, e, n = "patch") {
3646
3652
  path: V
3647
3653
  });
3648
3654
  }
3649
- function Uu(t) {
3650
- return N({ form_data: t, query_params: {}, fn: jt, path: V });
3655
+ function Nu(t) {
3656
+ return q({ form_data: t, query_params: {}, fn: jt, path: V });
3651
3657
  }
3652
- function Du(t, e = {}) {
3658
+ function qu(t, e = {}) {
3653
3659
  return M({ id: t, query_params: e, path: V });
3654
3660
  }
3655
- function qu(t = {}) {
3661
+ function Cu(t = {}) {
3656
3662
  return $({
3657
3663
  id: "interfaces",
3658
3664
  query_params: t,
3659
3665
  path: V
3660
3666
  });
3661
3667
  }
3662
- function Nu(t) {
3668
+ function ju(t) {
3663
3669
  return $({
3664
3670
  id: "remote_default_branch",
3665
3671
  query_params: t,
3666
3672
  path: V
3667
3673
  });
3668
3674
  }
3669
- function Cu(t) {
3675
+ function Fu(t) {
3670
3676
  return $({
3671
3677
  id: "remote_branches",
3672
3678
  query_params: t,
3673
3679
  path: V
3674
3680
  });
3675
3681
  }
3676
- function ju(t) {
3682
+ function zu(t) {
3677
3683
  return $({
3678
3684
  id: "remote_commits",
3679
3685
  query_params: t,
3680
3686
  path: V
3681
3687
  });
3682
3688
  }
3683
- function Fu(t, e) {
3689
+ function Lu(t, e) {
3684
3690
  return y({
3685
3691
  id: t,
3686
3692
  task_name: "drivers",
@@ -3689,7 +3695,7 @@ function Fu(t, e) {
3689
3695
  path: V
3690
3696
  });
3691
3697
  }
3692
- function zu(t, e) {
3698
+ function Hu(t, e) {
3693
3699
  return y({
3694
3700
  id: t,
3695
3701
  task_name: "commits",
@@ -3698,7 +3704,7 @@ function zu(t, e) {
3698
3704
  path: V
3699
3705
  });
3700
3706
  }
3701
- function Lu(t) {
3707
+ function Wu(t) {
3702
3708
  return y({
3703
3709
  id: t,
3704
3710
  task_name: "branches",
@@ -3706,7 +3712,7 @@ function Lu(t) {
3706
3712
  path: V
3707
3713
  });
3708
3714
  }
3709
- function Hu(t) {
3715
+ function Bu(t) {
3710
3716
  return y({
3711
3717
  id: t,
3712
3718
  task_name: "default_branch",
@@ -3714,7 +3720,7 @@ function Hu(t) {
3714
3720
  path: V
3715
3721
  });
3716
3722
  }
3717
- function Wu(t, e) {
3723
+ function Vu(t, e) {
3718
3724
  return y({
3719
3725
  id: t,
3720
3726
  task_name: "details",
@@ -3723,7 +3729,7 @@ function Wu(t, e) {
3723
3729
  path: V
3724
3730
  });
3725
3731
  }
3726
- function Bu(t, e) {
3732
+ function Qu(t, e) {
3727
3733
  return y({
3728
3734
  id: t,
3729
3735
  task_name: "pull",
@@ -3732,7 +3738,7 @@ function Bu(t, e) {
3732
3738
  path: V
3733
3739
  });
3734
3740
  }
3735
- class Co extends B {
3741
+ class jo extends B {
3736
3742
  /** Type of auth source */
3737
3743
  type = "saml";
3738
3744
  /** ID of the authority associted with the auth method */
@@ -3772,15 +3778,15 @@ class Co extends B {
3772
3778
  }
3773
3779
  const Ge = "saml_auths";
3774
3780
  function Ft(t) {
3775
- return new Co(t);
3781
+ return new jo(t);
3776
3782
  }
3777
- function Vu(t = {}) {
3783
+ function Yu(t = {}) {
3778
3784
  return E({ query_params: t, fn: Ft, path: Ge });
3779
3785
  }
3780
- function Qu(t, e = {}) {
3786
+ function Ju(t, e = {}) {
3781
3787
  return $({ id: t, query_params: e, fn: Ft, path: Ge });
3782
3788
  }
3783
- function Yu(t, e, n = "patch") {
3789
+ function Ku(t, e, n = "patch") {
3784
3790
  return C({
3785
3791
  id: t,
3786
3792
  form_data: e,
@@ -3790,23 +3796,23 @@ function Yu(t, e, n = "patch") {
3790
3796
  path: Ge
3791
3797
  });
3792
3798
  }
3793
- function Ju(t) {
3794
- return N({ form_data: t, query_params: {}, fn: Ft, path: Ge });
3799
+ function Zu(t) {
3800
+ return q({ form_data: t, query_params: {}, fn: Ft, path: Ge });
3795
3801
  }
3796
- function Ku(t, e = {}) {
3802
+ function Gu(t, e = {}) {
3797
3803
  return M({ id: t, query_params: e, path: Ge });
3798
3804
  }
3799
3805
  const Re = "settings";
3800
3806
  function Xe(t) {
3801
3807
  return new Se(t);
3802
3808
  }
3803
- function Zu(t = {}) {
3809
+ function Xu(t = {}) {
3804
3810
  return E({ query_params: t, fn: Xe, path: Re });
3805
3811
  }
3806
- function Gu(t, e = {}) {
3812
+ function ec(t, e = {}) {
3807
3813
  return $({ id: t, query_params: e, fn: Xe, path: Re });
3808
3814
  }
3809
- function Xu(t, e, n = {}, r = "patch") {
3815
+ function tc(t, e, n = {}, r = "patch") {
3810
3816
  return C({
3811
3817
  id: t,
3812
3818
  form_data: e,
@@ -3816,13 +3822,13 @@ function Xu(t, e, n = {}, r = "patch") {
3816
3822
  path: Re
3817
3823
  });
3818
3824
  }
3819
- function ec(t, e = {}) {
3820
- return N({ form_data: t, query_params: e, fn: Xe, path: Re });
3825
+ function nc(t, e = {}) {
3826
+ return q({ form_data: t, query_params: e, fn: Xe, path: Re });
3821
3827
  }
3822
- function tc(t, e = {}) {
3828
+ function rc(t, e = {}) {
3823
3829
  return M({ id: t, query_params: e, path: Re });
3824
3830
  }
3825
- function nc(t, e = {}) {
3831
+ function ic(t, e = {}) {
3826
3832
  return y({
3827
3833
  id: t,
3828
3834
  task_name: "history",
@@ -3834,18 +3840,18 @@ function nc(t, e = {}) {
3834
3840
  }
3835
3841
  const R = "systems";
3836
3842
  function xe(t) {
3837
- return new $r(t);
3843
+ return new wr(t);
3838
3844
  }
3839
- function rc(t = {}) {
3845
+ function oc(t = {}) {
3840
3846
  return E({ query_params: t, fn: xe, path: R });
3841
3847
  }
3842
- function ic(t = {}) {
3848
+ function sc(t = {}) {
3843
3849
  return E({ query_params: t, fn: xe, path: `${R}/with_emails` });
3844
3850
  }
3845
- function oc(t, e = {}) {
3851
+ function uc(t, e = {}) {
3846
3852
  return $({ id: t, query_params: e, fn: xe, path: R });
3847
3853
  }
3848
- function sc(t, e, n = "patch") {
3854
+ function cc(t, e, n = "patch") {
3849
3855
  return C({
3850
3856
  id: t,
3851
3857
  form_data: e,
@@ -3855,13 +3861,13 @@ function sc(t, e, n = "patch") {
3855
3861
  path: R
3856
3862
  });
3857
3863
  }
3858
- function uc(t) {
3859
- return N({ form_data: t, query_params: {}, fn: xe, path: R });
3864
+ function ac(t) {
3865
+ return q({ form_data: t, query_params: {}, fn: xe, path: R });
3860
3866
  }
3861
- function cc(t, e = {}) {
3867
+ function lc(t, e = {}) {
3862
3868
  return M({ id: t, query_params: e, path: R });
3863
3869
  }
3864
- function ac(t, e, n = {}) {
3870
+ function fc(t, e, n = {}) {
3865
3871
  return y({
3866
3872
  id: t,
3867
3873
  task_name: `module/${e}`,
@@ -3871,7 +3877,7 @@ function ac(t, e, n = {}) {
3871
3877
  path: R
3872
3878
  });
3873
3879
  }
3874
- function lc(t, e) {
3880
+ function hc(t, e) {
3875
3881
  return y({
3876
3882
  id: t,
3877
3883
  task_name: `module/${e}`,
@@ -3881,7 +3887,7 @@ function lc(t, e) {
3881
3887
  path: R
3882
3888
  });
3883
3889
  }
3884
- function fc(t) {
3890
+ function dc(t) {
3885
3891
  return y({
3886
3892
  id: t,
3887
3893
  task_name: "start",
@@ -3889,14 +3895,14 @@ function fc(t) {
3889
3895
  path: R
3890
3896
  });
3891
3897
  }
3892
- function hc(t) {
3898
+ function pc(t) {
3893
3899
  return y({
3894
3900
  id: t,
3895
3901
  task_name: "stop",
3896
3902
  path: R
3897
3903
  });
3898
3904
  }
3899
- function dc(t, e, n, r = 1, i = []) {
3905
+ function _c(t, e, n, r = 1, i = []) {
3900
3906
  return y({
3901
3907
  id: t,
3902
3908
  task_name: `${n}_${r}/${encodeURIComponent(e)}`,
@@ -3904,7 +3910,7 @@ function dc(t, e, n, r = 1, i = []) {
3904
3910
  path: R
3905
3911
  });
3906
3912
  }
3907
- function pc(t, e, n = 1) {
3913
+ function mc(t, e, n = 1) {
3908
3914
  return y({
3909
3915
  id: t,
3910
3916
  task_name: `${e}_${n}`,
@@ -3912,7 +3918,7 @@ function pc(t, e, n = 1) {
3912
3918
  path: R
3913
3919
  });
3914
3920
  }
3915
- function _c(t, e, n = 1, r) {
3921
+ function yc(t, e, n = 1, r) {
3916
3922
  return y({
3917
3923
  id: t,
3918
3924
  task_name: `${e}_${n}/${r}`,
@@ -3920,7 +3926,7 @@ function _c(t, e, n = 1, r) {
3920
3926
  path: R
3921
3927
  });
3922
3928
  }
3923
- function mc(t, e, n = 1) {
3929
+ function gc(t, e, n = 1) {
3924
3930
  return y({
3925
3931
  id: t,
3926
3932
  task_name: `functions/${e}_${n}`,
@@ -3928,21 +3934,21 @@ function mc(t, e, n = 1) {
3928
3934
  path: R
3929
3935
  });
3930
3936
  }
3931
- function yc(t) {
3937
+ function vc(t) {
3932
3938
  return E({
3933
3939
  query_params: {},
3934
3940
  fn: (e) => new mn(e),
3935
3941
  path: `${R}/${t}/zones`
3936
3942
  });
3937
3943
  }
3938
- function gc(t) {
3944
+ function bc(t) {
3939
3945
  return E({
3940
3946
  query_params: {},
3941
3947
  fn: (e) => new Me(e),
3942
3948
  path: `${R}/${t}/triggers`
3943
3949
  });
3944
3950
  }
3945
- function vc(t, e) {
3951
+ function Sc(t, e) {
3946
3952
  return y({
3947
3953
  id: t,
3948
3954
  task_name: "triggers",
@@ -3952,7 +3958,7 @@ function vc(t, e) {
3952
3958
  path: R
3953
3959
  });
3954
3960
  }
3955
- function bc(t, e) {
3961
+ function kc(t, e) {
3956
3962
  return y({
3957
3963
  id: t,
3958
3964
  task_name: `triggers/${e}`,
@@ -3960,7 +3966,7 @@ function bc(t, e) {
3960
3966
  path: R
3961
3967
  });
3962
3968
  }
3963
- function Sc(t) {
3969
+ function xc(t) {
3964
3970
  return y({
3965
3971
  id: t,
3966
3972
  task_name: "settings",
@@ -3973,13 +3979,13 @@ const Ue = "triggers";
3973
3979
  function zt(t) {
3974
3980
  return new Me(t);
3975
3981
  }
3976
- function kc(t = {}) {
3982
+ function $c(t = {}) {
3977
3983
  return E({ query_params: t, fn: zt, path: Ue });
3978
3984
  }
3979
- function xc(t, e = {}) {
3985
+ function Ac(t, e = {}) {
3980
3986
  return $({ id: t, query_params: e, fn: zt, path: Ue });
3981
3987
  }
3982
- function $c(t, e, n = "patch") {
3988
+ function wc(t, e, n = "patch") {
3983
3989
  return C({
3984
3990
  id: t,
3985
3991
  form_data: e,
@@ -3989,13 +3995,13 @@ function $c(t, e, n = "patch") {
3989
3995
  path: Ue
3990
3996
  });
3991
3997
  }
3992
- function Ac(t) {
3993
- return N({ form_data: t, query_params: {}, fn: zt, path: Ue });
3998
+ function Oc(t) {
3999
+ return q({ form_data: t, query_params: {}, fn: zt, path: Ue });
3994
4000
  }
3995
- function wc(t, e = {}) {
4001
+ function Ec(t, e = {}) {
3996
4002
  return M({ id: t, query_params: e, path: Ue });
3997
4003
  }
3998
- function Oc(t) {
4004
+ function Ic(t) {
3999
4005
  return y({
4000
4006
  id: t,
4001
4007
  task_name: "instances",
@@ -4005,8 +4011,8 @@ function Oc(t) {
4005
4011
  path: Ue
4006
4012
  });
4007
4013
  }
4008
- var jo = /* @__PURE__ */ ((t) => (t.EQ = "equal", t.NEQ = "not_equal", t.GT = "greater_than", t.GTE = "greater_than_or_equal", t.LT = "less_than", t.LTE = "less_than_or_equal", t.AND = "and", t.OR = "or", t.XOR = "exclusive_or", t))(jo || {}), Fo = /* @__PURE__ */ ((t) => (t.AT = "at", t.CRON = "cron", t))(Fo || {}), zo = /* @__PURE__ */ ((t) => (t[t.ExecuteBefore = 0] = "ExecuteBefore", t[t.ExecuteAfter = 1] = "ExecuteAfter", t[t.PayloadOnly = 2] = "PayloadOnly", t[t.IgnorePayload = 3] = "IgnorePayload", t))(zo || {});
4009
- class Lo extends B {
4014
+ var Fo = /* @__PURE__ */ ((t) => (t.EQ = "equal", t.NEQ = "not_equal", t.GT = "greater_than", t.GTE = "greater_than_or_equal", t.LT = "less_than", t.LTE = "less_than_or_equal", t.AND = "and", t.OR = "or", t.XOR = "exclusive_or", t))(Fo || {}), zo = /* @__PURE__ */ ((t) => (t.AT = "at", t.CRON = "cron", t))(zo || {}), Lo = /* @__PURE__ */ ((t) => (t[t.ExecuteBefore = 0] = "ExecuteBefore", t[t.ExecuteAfter = 1] = "ExecuteAfter", t[t.PayloadOnly = 2] = "PayloadOnly", t[t.IgnorePayload = 3] = "IgnorePayload", t))(Lo || {});
4015
+ class Ho extends B {
4010
4016
  /** Hash of the email address of the user */
4011
4017
  email_digest;
4012
4018
  /** ID of the authority associated with the user */
@@ -4061,18 +4067,18 @@ class Lo extends B {
4061
4067
  }
4062
4068
  const De = "users";
4063
4069
  function et(t) {
4064
- return new Lo(t);
4070
+ return new Ho(t);
4065
4071
  }
4066
- function Ec(t = {}) {
4072
+ function Tc(t = {}) {
4067
4073
  return E({ query_params: t, fn: et, path: De });
4068
4074
  }
4069
- function Ic(t, e = {}) {
4075
+ function Pc(t, e = {}) {
4070
4076
  return $({ id: t, query_params: e, fn: et, path: De });
4071
4077
  }
4072
- function Pc(t = {}) {
4078
+ function Mc(t = {}) {
4073
4079
  return $({ id: "current", query_params: t, fn: et, path: De });
4074
4080
  }
4075
- function Tc(t, e, n = "patch") {
4081
+ function Rc(t, e, n = "patch") {
4076
4082
  return C({
4077
4083
  id: t,
4078
4084
  form_data: e,
@@ -4082,20 +4088,20 @@ function Tc(t, e, n = "patch") {
4082
4088
  path: De
4083
4089
  });
4084
4090
  }
4085
- function Mc(t) {
4086
- return N({ form_data: t, query_params: {}, fn: et, path: De });
4091
+ function Uc(t) {
4092
+ return q({ form_data: t, query_params: {}, fn: et, path: De });
4087
4093
  }
4088
- function Rc(t, e = {}) {
4094
+ function Dc(t, e = {}) {
4089
4095
  return M({ id: t, query_params: e, path: De });
4090
4096
  }
4091
4097
  const fe = "zones";
4092
4098
  function Lt(t) {
4093
4099
  return new mn(t);
4094
4100
  }
4095
- function Uc(t = {}) {
4101
+ function Nc(t = {}) {
4096
4102
  return E({ query_params: t, fn: Lt, path: fe });
4097
4103
  }
4098
- function Dc(t = {}) {
4104
+ function qc(t = {}) {
4099
4105
  return $({
4100
4106
  id: "tags",
4101
4107
  query_params: t,
@@ -4103,10 +4109,10 @@ function Dc(t = {}) {
4103
4109
  path: fe
4104
4110
  });
4105
4111
  }
4106
- function qc(t, e = {}) {
4112
+ function Cc(t, e = {}) {
4107
4113
  return $({ id: t, query_params: e, fn: Lt, path: fe });
4108
4114
  }
4109
- function Nc(t, e, n = "patch") {
4115
+ function jc(t, e, n = "patch") {
4110
4116
  return C({
4111
4117
  id: t,
4112
4118
  form_data: e,
@@ -4116,20 +4122,20 @@ function Nc(t, e, n = "patch") {
4116
4122
  path: fe
4117
4123
  });
4118
4124
  }
4119
- function Cc(t) {
4120
- return N({ form_data: t, query_params: {}, fn: Lt, path: fe });
4125
+ function Fc(t) {
4126
+ return q({ form_data: t, query_params: {}, fn: Lt, path: fe });
4121
4127
  }
4122
- function jc(t, e = {}) {
4128
+ function zc(t, e = {}) {
4123
4129
  return M({ id: t, query_params: e, path: fe });
4124
4130
  }
4125
- function Fc(t, e = {}) {
4131
+ function Lc(t, e = {}) {
4126
4132
  return E({
4127
4133
  query_params: e,
4128
4134
  fn: (n) => new Me(n),
4129
4135
  path: `${fe}/${t}/triggers`
4130
4136
  });
4131
4137
  }
4132
- function zc(t, e, n, r = 1, i = []) {
4138
+ function Hc(t, e, n, r = 1, i = []) {
4133
4139
  return y({
4134
4140
  id: t,
4135
4141
  task_name: `exec/${encodeURIComponent(
@@ -4139,8 +4145,8 @@ function zc(t, e, n, r = 1, i = []) {
4139
4145
  path: fe
4140
4146
  });
4141
4147
  }
4142
- var Or = /* @__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))(Or || {});
4143
- class Ho {
4148
+ var Ir = /* @__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))(Ir || {});
4149
+ class Wo {
4144
4150
  id;
4145
4151
  created_at;
4146
4152
  updated_at;
@@ -4166,7 +4172,7 @@ class Ho {
4166
4172
  return `/api/engine/v2/uploads/${this.thumbnail_id}/url`;
4167
4173
  }
4168
4174
  constructor(e) {
4169
- this.id = e.id || "", this.created_at = e.created_at || Pn(Date.now()), this.updated_at = e.updated_at || Pn(Date.now()), this.name = e.name || "", this.description = e.description || "", this.authority_id = e.authority_id || "", this.start_time = e.start_time || 0, this.play_time = e.play_time || 0, this.video_length = e.video_length || 0, this.animation = e.animation, this.media_type = e.media_type || "unknown", this.orientation = e.orientation || "unspecified", this.media_uri = e.media_uri || "", this.media_id = e.media_id || "", this.thumbnail_id = e.thumbnail_id || "", this.play_count = e.play_count || 0, this.valid_from = e.valid_from, this.valid_until = e.valid_until;
4175
+ this.id = e.id || "", this.created_at = e.created_at || Tn(Date.now()), this.updated_at = e.updated_at || Tn(Date.now()), this.name = e.name || "", this.description = e.description || "", this.authority_id = e.authority_id || "", this.start_time = e.start_time || 0, this.play_time = e.play_time || 0, this.video_length = e.video_length || 0, this.animation = e.animation, this.media_type = e.media_type || "unknown", this.orientation = e.orientation || "unspecified", this.media_uri = e.media_uri || "", this.media_id = e.media_id || "", this.thumbnail_id = e.thumbnail_id || "", this.play_count = e.play_count || 0, this.valid_from = e.valid_from, this.valid_until = e.valid_until;
4170
4176
  }
4171
4177
  }
4172
4178
  class yn {
@@ -4186,7 +4192,7 @@ class yn {
4186
4192
  this.id = e.id || "", this.playlist_id = e.playlist_id || "", this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0, this.items = e.items || [], this.approved = !!e.approved, this.approved_by_id = e.approved_by_id || "", this.approved_by_email = e.approved_by_email || "", this.approved_by_name = e.approved_by_name || "", this.user_id = e.user_id || "", this.user_name = e.user_name || "", this.user_email = e.user_email || "";
4187
4193
  }
4188
4194
  }
4189
- class Wo {
4195
+ class Bo {
4190
4196
  id;
4191
4197
  created_at;
4192
4198
  updated_at;
@@ -4206,34 +4212,34 @@ class Wo {
4206
4212
  valid_from;
4207
4213
  valid_until;
4208
4214
  constructor(e) {
4209
- 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 || Or.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 || "";
4215
+ 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 || Ir.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 || "";
4210
4216
  }
4211
4217
  }
4212
- const Er = "signage";
4213
- function Lc(t, e = {}, n) {
4214
- return $({ id: t, query_params: e, fn: (r) => r, path: `${Er}`, options: n });
4218
+ const Tr = "signage";
4219
+ function Wc(t, e = {}, n) {
4220
+ return $({ id: t, query_params: e, fn: (r) => r, path: `${Tr}`, options: n });
4215
4221
  }
4216
- function Hc(t) {
4222
+ function Bc(t) {
4217
4223
  return y({
4218
4224
  id: t,
4219
4225
  task_name: "metrics",
4220
4226
  form_data: {},
4221
4227
  method: "post",
4222
4228
  callback: (e) => e,
4223
- path: Er
4229
+ path: Tr
4224
4230
  });
4225
4231
  }
4226
4232
  const tt = "signage/media";
4227
4233
  function Ht(t) {
4228
- return new Ho(t);
4234
+ return new Wo(t);
4229
4235
  }
4230
- function Wc(t = {}) {
4236
+ function Vc(t = {}) {
4231
4237
  return E({ query_params: t, fn: Ht, path: tt });
4232
4238
  }
4233
- function Bc(t, e = {}) {
4239
+ function Qc(t, e = {}) {
4234
4240
  return $({ id: t, query_params: e, fn: Ht, path: tt });
4235
4241
  }
4236
- function Vc(t, e, n = "patch") {
4242
+ function Yc(t, e, n = "patch") {
4237
4243
  return C({
4238
4244
  id: t,
4239
4245
  form_data: e,
@@ -4243,25 +4249,25 @@ function Vc(t, e, n = "patch") {
4243
4249
  path: tt
4244
4250
  });
4245
4251
  }
4246
- function Qc(t) {
4247
- return N({
4252
+ function Jc(t) {
4253
+ return q({
4248
4254
  form_data: t,
4249
4255
  query_params: {},
4250
4256
  fn: Ht,
4251
4257
  path: tt
4252
4258
  });
4253
4259
  }
4254
- function Yc(t, e = {}) {
4260
+ function Kc(t, e = {}) {
4255
4261
  return M({ id: t, query_params: e, path: tt });
4256
4262
  }
4257
4263
  const oe = "signage/playlists";
4258
4264
  function Wt(t) {
4259
- return new Wo(t);
4265
+ return new Bo(t);
4260
4266
  }
4261
- function Jc(t = {}) {
4267
+ function Zc(t = {}) {
4262
4268
  return E({ query_params: t, fn: Wt, path: oe });
4263
4269
  }
4264
- function Kc(t, e = {}) {
4270
+ function Gc(t, e = {}) {
4265
4271
  return $({
4266
4272
  id: t,
4267
4273
  query_params: e,
@@ -4269,7 +4275,7 @@ function Kc(t, e = {}) {
4269
4275
  path: oe
4270
4276
  });
4271
4277
  }
4272
- function Zc(t, e, n = "patch") {
4278
+ function Xc(t, e, n = "patch") {
4273
4279
  return C({
4274
4280
  id: t,
4275
4281
  form_data: e,
@@ -4279,18 +4285,18 @@ function Zc(t, e, n = "patch") {
4279
4285
  path: oe
4280
4286
  });
4281
4287
  }
4282
- function Gc(t) {
4283
- return N({
4288
+ function ea(t) {
4289
+ return q({
4284
4290
  form_data: t,
4285
4291
  query_params: {},
4286
4292
  fn: Wt,
4287
4293
  path: oe
4288
4294
  });
4289
4295
  }
4290
- function Xc(t, e = {}) {
4296
+ function ta(t, e = {}) {
4291
4297
  return M({ id: t, query_params: e, path: oe });
4292
4298
  }
4293
- function ea(t, e = {}) {
4299
+ function na(t, e = {}) {
4294
4300
  return y({
4295
4301
  id: t,
4296
4302
  task_name: "media",
@@ -4300,7 +4306,7 @@ function ea(t, e = {}) {
4300
4306
  path: oe
4301
4307
  });
4302
4308
  }
4303
- function ta(t, e = {}) {
4309
+ function ra(t, e = {}) {
4304
4310
  return y({
4305
4311
  id: t,
4306
4312
  task_name: "media/revisions",
@@ -4312,7 +4318,7 @@ function ta(t, e = {}) {
4312
4318
  path: oe
4313
4319
  });
4314
4320
  }
4315
- function na(t) {
4321
+ function ia(t) {
4316
4322
  return y({
4317
4323
  id: t,
4318
4324
  task_name: "media/approve",
@@ -4320,7 +4326,7 @@ function na(t) {
4320
4326
  path: oe
4321
4327
  });
4322
4328
  }
4323
- function ra(t, e) {
4329
+ function oa(t, e) {
4324
4330
  return y({
4325
4331
  id: t,
4326
4332
  task_name: "media",
@@ -4330,7 +4336,7 @@ function ra(t, e) {
4330
4336
  callback: (n) => new yn(n)
4331
4337
  });
4332
4338
  }
4333
- class Ir {
4339
+ class Pr {
4334
4340
  id;
4335
4341
  question_id;
4336
4342
  survey_id;
@@ -4340,16 +4346,16 @@ class Ir {
4340
4346
  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 || {};
4341
4347
  }
4342
4348
  }
4343
- const Pr = "/api/staff/v1/surveys/answers";
4344
- function ia(t = {}) {
4349
+ const Mr = "/api/staff/v1/surveys/answers";
4350
+ function sa(t = {}) {
4345
4351
  const e = z(t);
4346
- return ee(`${Pr}${e ? "?" + e : ""}`).pipe(
4347
- I((n) => n.map((r) => new Ir(r)))
4352
+ return ee(`${Mr}${e ? "?" + e : ""}`).pipe(
4353
+ I((n) => n.map((r) => new Pr(r)))
4348
4354
  );
4349
4355
  }
4350
- function oa(t) {
4351
- return Ie(`${Pr}`, t).pipe(
4352
- I((e) => e.map((n) => new Ir(n)))
4356
+ function ua(t) {
4357
+ return Ie(`${Mr}`, t).pipe(
4358
+ I((e) => e.map((n) => new Pr(n)))
4353
4359
  );
4354
4360
  }
4355
4361
  class Bt {
@@ -4363,29 +4369,29 @@ class Bt {
4363
4369
  }
4364
4370
  }
4365
4371
  const nt = "/api/staff/v1/surveys/invitations";
4366
- function sa(t = {}) {
4372
+ function ca(t = {}) {
4367
4373
  const e = z(t);
4368
4374
  return ee(`${nt}${e ? "?" + e : ""}`).pipe(
4369
4375
  I((n) => n.map((r) => new Bt(r)))
4370
4376
  );
4371
4377
  }
4372
- function ua(t, e = {}) {
4378
+ function aa(t, e = {}) {
4373
4379
  const n = z(e);
4374
4380
  return ee(`${nt}/${t}${n ? "?" + n : ""}`).pipe(
4375
4381
  I((r) => new Bt(r))
4376
4382
  );
4377
4383
  }
4378
- function ca(t, e, n = "patch") {
4384
+ function la(t, e, n = "patch") {
4379
4385
  return (n === "put" ? He : It)(`${nt}/${t}`, e).pipe(
4380
4386
  I((r) => new Bt(r))
4381
4387
  );
4382
4388
  }
4383
- function aa(t) {
4389
+ function fa(t) {
4384
4390
  return Ie(`${nt}`, t).pipe(
4385
4391
  I((e) => new Bt(e))
4386
4392
  );
4387
4393
  }
4388
- function la(t, e = {}) {
4394
+ function ha(t, e = {}) {
4389
4395
  const n = z(e);
4390
4396
  return We(`${nt}/${t}${n ? "?" + n : ""}`);
4391
4397
  }
@@ -4405,29 +4411,29 @@ class Vt {
4405
4411
  }
4406
4412
  }
4407
4413
  const rt = "/api/staff/v1/surveys/questions";
4408
- function fa(t = {}) {
4414
+ function da(t = {}) {
4409
4415
  const e = z(t);
4410
4416
  return ee(`${rt}${e ? "?" + e : ""}`).pipe(
4411
4417
  I((n) => n.map((r) => new Vt(r)))
4412
4418
  );
4413
4419
  }
4414
- function ha(t, e = {}) {
4420
+ function pa(t, e = {}) {
4415
4421
  const n = z(e);
4416
4422
  return ee(`${rt}/${t}${n ? "?" + n : ""}`).pipe(
4417
4423
  I((r) => new Vt(r))
4418
4424
  );
4419
4425
  }
4420
- function da(t) {
4426
+ function _a(t) {
4421
4427
  return Ie(`${rt}`, t).pipe(
4422
4428
  I((e) => new Vt(e))
4423
4429
  );
4424
4430
  }
4425
- function pa(t, e, n = "patch") {
4431
+ function ma(t, e, n = "patch") {
4426
4432
  return (n === "put" ? He : It)(`${rt}/${t}`, e).pipe(
4427
4433
  I((r) => new Vt(r))
4428
4434
  );
4429
4435
  }
4430
- function _a(t, e = {}) {
4436
+ function ya(t, e = {}) {
4431
4437
  const n = z(e);
4432
4438
  return We(`${rt}/${t}${n ? "?" + n : ""}`);
4433
4439
  }
@@ -4444,31 +4450,31 @@ class Qt {
4444
4450
  }
4445
4451
  }
4446
4452
  const it = "/api/staff/v1/surveys";
4447
- function ma(t = {}) {
4453
+ function ga(t = {}) {
4448
4454
  const e = z(t);
4449
4455
  return ee(`${it}${e ? "?" + e : ""}`).pipe(
4450
4456
  I((n) => n.map((r) => new Qt(r)))
4451
4457
  );
4452
4458
  }
4453
- function ya(t, e = {}) {
4459
+ function va(t, e = {}) {
4454
4460
  const n = z(e);
4455
4461
  return ee(`${it}/${t}${n ? "?" + n : ""}`).pipe(
4456
4462
  I((r) => new Qt(r))
4457
4463
  );
4458
4464
  }
4459
- function ga(t, e, n = "patch") {
4465
+ function ba(t, e, n = "patch") {
4460
4466
  return (n === "put" ? He : It)(`${it}/${t}`, e).pipe(
4461
4467
  I((r) => new Qt(r))
4462
4468
  );
4463
4469
  }
4464
- function va(t) {
4470
+ function Sa(t) {
4465
4471
  return Ie(`${it}`, t).pipe(I((e) => new Qt(e)));
4466
4472
  }
4467
- function ba(t, e = {}) {
4473
+ function ka(t, e = {}) {
4468
4474
  const n = z(e);
4469
4475
  return We(`${it}/${t}${n ? "?" + n : ""}`);
4470
4476
  }
4471
- var Bo = {
4477
+ var Vo = {
4472
4478
  url: "",
4473
4479
  deserializer: function(t) {
4474
4480
  return JSON.parse(t.data);
@@ -4476,14 +4482,14 @@ var Bo = {
4476
4482
  serializer: function(t) {
4477
4483
  return JSON.stringify(t);
4478
4484
  }
4479
- }, Vo = "WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }", Qo = function(t) {
4485
+ }, Qo = "WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }", Yo = function(t) {
4480
4486
  Z(e, t);
4481
4487
  function e(n, r) {
4482
4488
  var i = t.call(this) || this;
4483
- if (i._socket = null, n instanceof T)
4489
+ if (i._socket = null, n instanceof P)
4484
4490
  i.destination = r, i.source = n;
4485
4491
  else {
4486
- var o = i._config = ze({}, Bo);
4492
+ var o = i._config = ze({}, Vo);
4487
4493
  if (i._output = new me(), typeof n == "string")
4488
4494
  o.url = n;
4489
4495
  else
@@ -4504,7 +4510,7 @@ var Bo = {
4504
4510
  this._socket = null, this.source || (this.destination = new Jt()), this._output = new me();
4505
4511
  }, e.prototype.multiplex = function(n, r, i) {
4506
4512
  var o = this;
4507
- return new T(function(s) {
4513
+ return new P(function(s) {
4508
4514
  try {
4509
4515
  o.next(n());
4510
4516
  } catch (c) {
@@ -4564,7 +4570,7 @@ var Bo = {
4564
4570
  }
4565
4571
  }, function(f) {
4566
4572
  var S = n._config.closingObserver;
4567
- S && S.next(void 0), f && f.code ? l.close(f.code, f.reason) : c.error(new TypeError(Vo)), n._resetState();
4573
+ S && S.next(void 0), f && f.code ? l.close(f.code, f.reason) : c.error(new TypeError(Qo)), n._resetState();
4568
4574
  }, function() {
4569
4575
  var f = n._config.closingObserver;
4570
4576
  f && f.next(void 0), l.close(), n._resetState();
@@ -4594,11 +4600,11 @@ var Bo = {
4594
4600
  n && (n.readyState === 1 || n.readyState === 0) && n.close(), this._resetState(), t.prototype.unsubscribe.call(this);
4595
4601
  }, e;
4596
4602
  }(tn);
4597
- function Yo(t) {
4598
- return new Qo(t);
4603
+ function Jo(t) {
4604
+ return new Yo(t);
4599
4605
  }
4600
- 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 || {}), Tr = /* @__PURE__ */ ((t) => (t.Info = "info", t.Debug = "debug", t.Warning = "warn", t.Error = "error", t.Fatal = "fatal", t.Trace = "trace", t))(Tr || {});
4601
- class Jo {
4606
+ 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 || {}), Rr = /* @__PURE__ */ ((t) => (t.Info = "info", t.Debug = "debug", t.Warning = "warn", t.Error = "error", t.Fatal = "fatal", t.Trace = "trace", t))(Rr || {});
4607
+ class Ko {
4602
4608
  constructor(e, n) {
4603
4609
  this._system = e;
4604
4610
  const r = Object.getOwnPropertyNames(
@@ -4623,7 +4629,7 @@ class Jo {
4623
4629
  * @param next Callback for changes to the property
4624
4630
  */
4625
4631
  listen(e) {
4626
- return !this[`_${e}`] && !(this[`_${e}_obs`] instanceof T) && !this[e] && this.addProperty(e, null), this[`_${e}_obs`];
4632
+ return !this[`_${e}`] && !(this[`_${e}_obs`] instanceof P) && !this[e] && this.addProperty(e, null), this[`_${e}_obs`];
4627
4633
  }
4628
4634
  /**
4629
4635
  * Add method to module
@@ -4645,7 +4651,7 @@ class Jo {
4645
4651
  });
4646
4652
  }
4647
4653
  }
4648
- class Ko {
4654
+ class Zo {
4649
4655
  constructor(e) {
4650
4656
  for (const n in e)
4651
4657
  e.hasOwnProperty(n) && e[n] && e[n] instanceof Array && e[n].forEach((r) => {
@@ -4658,50 +4664,50 @@ class Ko {
4658
4664
  * @param properties Properties of the new module
4659
4665
  */
4660
4666
  addModule(e, n) {
4661
- this[e] || (this[e] = []), this[e].push(new Jo(this, n));
4667
+ this[e] || (this[e] = []), this[e].push(new Ko(this, n));
4662
4668
  }
4663
4669
  }
4664
4670
  const kt = {};
4665
- function Sa(t, e) {
4666
- return kt[t] = new Ko(e), kt[t];
4671
+ function xa(t, e) {
4672
+ return kt[t] = new Zo(e), kt[t];
4667
4673
  }
4668
- function Zo(t) {
4674
+ function Go(t) {
4669
4675
  return kt[t];
4670
4676
  }
4671
- function ka(t) {
4677
+ function $a(t) {
4672
4678
  delete kt[t];
4673
4679
  }
4674
- const Mr = 15;
4675
- let ot = 0, Q, Rr = 0;
4676
- const L = {}, gn = {}, $e = {}, Go = {}, de = new ae(!1);
4680
+ const Ur = 15;
4681
+ let ot = 0, Q, Dr = 0;
4682
+ const L = {}, gn = {}, $e = {}, Xo = {}, de = new ae(!1);
4677
4683
  $e._place_os_status = de.asObservable();
4678
- const Ur = new ae([0, 0]);
4679
- $e._place_os_sync = Ur.asObservable();
4680
- let Dr = Date.now(), we, xt = 0, se = null, ht, vn = 0;
4681
- const st = 10 * 1e3, qr = new me();
4682
- $e._place_os_debug_events = qr.asObservable();
4684
+ const Nr = new ae([0, 0]);
4685
+ $e._place_os_sync = Nr.asObservable();
4686
+ let qr = Date.now(), we, xt = 0, se = null, ht, vn = 0;
4687
+ const st = 10 * 1e3, Cr = new me();
4688
+ $e._place_os_debug_events = Cr.asObservable();
4683
4689
  function Kt() {
4684
- return be().indexOf("/control/") >= 0 ? "/control/websocket" : `${fr()}/systems/control`;
4690
+ return be().indexOf("/control/") >= 0 ? "/control/websocket" : `${hr()}/systems/control`;
4685
4691
  }
4686
- function Nr() {
4692
+ function jr() {
4687
4693
  return de.getValue();
4688
4694
  }
4689
- function Xo() {
4695
+ function es() {
4690
4696
  return $e._place_os_status;
4691
4697
  }
4692
- function xa() {
4698
+ function Aa() {
4693
4699
  return $e._place_os_status;
4694
4700
  }
4695
- function es(t, e = gn, n = $e) {
4701
+ function ts(t, e = gn, n = $e) {
4696
4702
  const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
4697
4703
  return e[r] || (e[r] = new ae(void 0), n[r] = e[r].asObservable()), n[r];
4698
4704
  }
4699
- function ts(t, e = gn) {
4705
+ function ns(t, e = gn) {
4700
4706
  const n = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
4701
4707
  if (e[n])
4702
4708
  return e[n].getValue();
4703
4709
  }
4704
- function qn(t, e = 0, n = qe) {
4710
+ function Nn(t, e = 0, n = Ne) {
4705
4711
  const r = {
4706
4712
  id: ++ot,
4707
4713
  cmd: "bind",
@@ -4709,7 +4715,7 @@ function qn(t, e = 0, n = qe) {
4709
4715
  };
4710
4716
  return n(r, e);
4711
4717
  }
4712
- function ns(t, e = 0, n = qe) {
4718
+ function rs(t, e = 0, n = Ne) {
4713
4719
  const r = {
4714
4720
  id: ++ot,
4715
4721
  cmd: "unbind",
@@ -4717,7 +4723,7 @@ function ns(t, e = 0, n = qe) {
4717
4723
  };
4718
4724
  return n(r, e);
4719
4725
  }
4720
- function rs(t, e = st, n = qe) {
4726
+ function is(t, e = st, n = Ne) {
4721
4727
  const r = {
4722
4728
  id: ++ot,
4723
4729
  cmd: "exec",
@@ -4725,7 +4731,7 @@ function rs(t, e = st, n = qe) {
4725
4731
  };
4726
4732
  return n(r, e);
4727
4733
  }
4728
- function $a(t, e = st, n = qe) {
4734
+ function wa(t, e = st, n = Ne) {
4729
4735
  const r = {
4730
4736
  id: ++ot,
4731
4737
  cmd: "debug",
@@ -4733,7 +4739,7 @@ function $a(t, e = st, n = qe) {
4733
4739
  };
4734
4740
  return n(r, e);
4735
4741
  }
4736
- function Aa(t, e = st, n = qe) {
4742
+ function Oa(t, e = st, n = Ne) {
4737
4743
  const r = {
4738
4744
  id: ++ot,
4739
4745
  cmd: "ignore",
@@ -4741,21 +4747,21 @@ function Aa(t, e = st, n = qe) {
4741
4747
  };
4742
4748
  return n(r, e);
4743
4749
  }
4744
- function qe(t, e = st, n = 0) {
4745
- const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${Qi()}`;
4750
+ function Ne(t, e = st, n = 0) {
4751
+ const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${Yi()}`;
4746
4752
  if (L[r])
4747
4753
  d("WS", "Request already in progress. Waiting...", t);
4748
4754
  else {
4749
4755
  const i = { ...t, key: r };
4750
4756
  i.promise = new Promise((o, s) => {
4751
4757
  const u = () => {
4752
- delete L[r], L[r] = null, qe(t, e, n).then(
4758
+ delete L[r], L[r] = null, Ne(t, e, n).then(
4753
4759
  (c) => o(c),
4754
4760
  (c) => s(c)
4755
4761
  );
4756
4762
  };
4757
- if (Q && Nr()) {
4758
- ln() && ls(t, Q, Go), i.resolve = o, i.reject = s;
4763
+ if (Q && jr()) {
4764
+ ln() && fs(t, Q, Xo), i.resolve = o, i.reject = s;
4759
4765
  const c = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
4760
4766
  d(
4761
4767
  "WS",
@@ -4773,12 +4779,12 @@ function qe(t, e = st, n = 0) {
4773
4779
  }
4774
4780
  return L[r].promise;
4775
4781
  }
4776
- function Cr(t) {
4782
+ function Fr(t) {
4777
4783
  if (t !== "pong" && t instanceof Object) {
4778
4784
  if (t.type === "notify" && t.meta)
4779
- ss(t.meta, t.value);
4785
+ us(t.meta, t.value);
4780
4786
  else if (t.type === "success")
4781
- is(t);
4787
+ os(t);
4782
4788
  else if (t.type === "debug") {
4783
4789
  d(
4784
4790
  "WS",
@@ -4786,23 +4792,23 @@ function Cr(t) {
4786
4792
  t.msg
4787
4793
  );
4788
4794
  const e = t.meta || { mod: "", index: "" };
4789
- qr.next({
4795
+ Cr.next({
4790
4796
  mod_id: t.mod || "<empty>",
4791
4797
  module: `${e.mod}_${e.index}`,
4792
4798
  class_name: t.klass || "<empty>",
4793
4799
  message: t.msg || "<empty>",
4794
- level: t.level || Tr.Debug,
4800
+ level: t.level || Rr.Debug,
4795
4801
  time: Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3)
4796
4802
  });
4797
- } else t.type === "error" ? os(t) : t.cmd || d("WS", "Invalid websocket message", t, "error");
4803
+ } else t.type === "error" ? ss(t) : t.cmd || d("WS", "Invalid websocket message", t, "error");
4798
4804
  ve(`${t.id}`);
4799
4805
  } else t === "pong" && (vn = Date.now(), d("WS", "Pong!"));
4800
4806
  }
4801
- function is(t) {
4807
+ function os(t) {
4802
4808
  const e = Object.keys(L).map((n) => L[n]).find((n) => n?.id === t.id);
4803
4809
  d("WS", `[SUCCESS](${t.id})`), e && e.resolve && (e.resolve(t.value), delete L[e.key]);
4804
4810
  }
4805
- function os(t) {
4811
+ function ss(t) {
4806
4812
  let e = "UNEXPECTED FAILURE";
4807
4813
  switch (t.code) {
4808
4814
  case X.ACCESS_DENIED:
@@ -4836,7 +4842,7 @@ function os(t) {
4836
4842
  const n = Object.keys(L).map((r) => L[r]).filter((r) => r).find((r) => r.id === t.id);
4837
4843
  n && n.reject && (n.reject(t), ve(`${n.key}`), delete L[n.key]);
4838
4844
  }
4839
- function ss(t, e, n = gn, r = $e) {
4845
+ function us(t, e, n = gn, r = $e) {
4840
4846
  const i = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
4841
4847
  n[i] || (n[i] = new ae(null), r[i] = n[i].asObservable());
4842
4848
  const o = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
@@ -4850,20 +4856,20 @@ function bn(t = 0) {
4850
4856
  return se == null && (se = new Promise((e) => {
4851
4857
  if (t > 40)
4852
4858
  return location.reload();
4853
- xt++, Dr = Date.now(), Q = ln() ? as() : us(), Q ? (d("WS(Debug)", "Authority:", [vt()]), d("WS", "Connecting to websocket..."), Q.subscribe(
4859
+ xt++, qr = Date.now(), Q = ln() ? ls() : cs(), Q ? (d("WS(Debug)", "Authority:", [vt()]), d("WS", "Connecting to websocket..."), Q.subscribe(
4854
4860
  (n) => {
4855
- de.getValue() || (d("WS", "Connection established."), e()), de.next(!0), xt = 0, Zt(), Cr(n);
4861
+ de.getValue() || (d("WS", "Connection established."), e()), de.next(!0), xt = 0, Zt(), Fr(n);
4856
4862
  },
4857
4863
  (n) => {
4858
- Q = void 0, se = null, Cn(), Zt(), cs(n);
4864
+ Q = void 0, se = null, Cn(), Zt(), as(n);
4859
4865
  },
4860
4866
  () => {
4861
4867
  Q = void 0, se = null, Cn(), d("WS", "Connection closed by browser."), de.next(!1), $t();
4862
4868
  }
4863
- ), we && clearInterval(we), vn = Date.now(), Nn(), we = setInterval(
4864
- () => Nn(),
4865
- Mr * 1e3
4866
- ), Zt(), Rr += 1, ht = setTimeout(() => {
4869
+ ), we && clearInterval(we), vn = Date.now(), qn(), we = setInterval(
4870
+ () => qn(),
4871
+ Ur * 1e3
4872
+ ), Zt(), Dr += 1, ht = setTimeout(() => {
4867
4873
  d("WS", "Unhealthy connection. Reconnecting..."), de.next(!1), se = null, $t();
4868
4874
  }, 30 * 1e3)) : (Q ? d(
4869
4875
  "WS",
@@ -4883,16 +4889,16 @@ function bn(t = 0) {
4883
4889
  ));
4884
4890
  })), se;
4885
4891
  }
4886
- function us() {
4892
+ function cs() {
4887
4893
  if (!vt() || !Y()) return null;
4888
- const t = oo() || location.protocol.indexOf("https") >= 0;
4889
- let e = `ws${t ? "s" : ""}://${rn()}${Kt()}${hr() ? "?fixed_device=true" : ""}`;
4894
+ const t = so() || location.protocol.indexOf("https") >= 0;
4895
+ let e = `ws${t ? "s" : ""}://${rn()}${Kt()}${dr() ? "?fixed_device=true" : ""}`;
4890
4896
  const n = Y();
4891
4897
  let r = n === "x-api-key" ? `api-key=${Ot()}` : `bearer_token=${n}`;
4892
- return !eo() && !Bi() ? (d("WS", "Authenticating through cookie..."), r += `;max-age=120;path=${Kt()};`, 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(
4898
+ return !to() && !Vi() ? (d("WS", "Authenticating through cookie..."), r += `;max-age=120;path=${Kt()};`, 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(
4893
4899
  "WS",
4894
4900
  `Creating websocket connection to ws${t ? "s" : ""}://${rn()}${Kt()}`
4895
- ), Yo({
4901
+ ), Jo({
4896
4902
  url: e,
4897
4903
  serializer: (i) => typeof i == "object" ? JSON.stringify(i) : i,
4898
4904
  deserializer: (i) => {
@@ -4907,7 +4913,7 @@ function us() {
4907
4913
  });
4908
4914
  }
4909
4915
  function $t() {
4910
- Ur.next([Rr, Date.now() - Dr]), Q && Nr() && (Q.complete(), we && (clearInterval(we), we = void 0)), d(
4916
+ Nr.next([Dr, Date.now() - qr]), Q && jr() && (Q.complete(), we && (clearInterval(we), we = void 0)), d(
4911
4917
  "WS",
4912
4918
  `Reconnecting in ${Math.min(
4913
4919
  5e3,
@@ -4919,25 +4925,25 @@ function $t() {
4919
4925
  Math.min(5e3, (xt + 1) * 300 || 1e3)
4920
4926
  );
4921
4927
  }
4922
- function Nn() {
4923
- if (Date.now() - vn > 4 * Mr * 1e3)
4928
+ function qn() {
4929
+ if (Date.now() - vn > 4 * Ur * 1e3)
4924
4930
  return $t();
4925
4931
  Q?.next("ping");
4926
4932
  }
4927
- function cs(t) {
4928
- de.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && hn(), dr(), $t();
4933
+ function as(t) {
4934
+ de.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && hn(), pr(), $t();
4929
4935
  }
4930
4936
  function Zt() {
4931
4937
  ht && (clearTimeout(ht), ht = void 0);
4932
4938
  }
4933
- function as() {
4939
+ function ls() {
4934
4940
  const t = new me();
4935
4941
  return t.subscribe(
4936
- (e) => Cr(e)
4942
+ (e) => Fr(e)
4937
4943
  ), t;
4938
4944
  }
4939
- function ls(t, e, n) {
4940
- const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`, i = Zo(t.sys), o = i && i[t.mod] ? i[t.mod][t.index - 1 || 0] : null;
4945
+ function fs(t, e, n) {
4946
+ const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`, i = Go(t.sys), o = i && i[t.mod] ? i[t.mod][t.index - 1 || 0] : null;
4941
4947
  if (o) {
4942
4948
  switch (t.cmd) {
4943
4949
  case "bind":
@@ -4988,7 +4994,7 @@ function Cn() {
4988
4994
  }
4989
4995
  class jn {
4990
4996
  constructor(e, n) {
4991
- this._module = e, this.name = n, Xo().pipe(Oi()).subscribe((r) => {
4997
+ this._module = e, this.name = n, es().pipe(Ei()).subscribe((r) => {
4992
4998
  r && (this._stale_bindings || this._pending === 1) ? (d("VAR", "Re-binding to status variable", this.binding()), this.rebind()) : r || (ve(
4993
4999
  `rebind:${JSON.stringify(this.binding())}`
4994
5000
  ), d(
@@ -5012,13 +5018,13 @@ class jn {
5012
5018
  }
5013
5019
  /** Current value of the binding */
5014
5020
  get value() {
5015
- return ts(this.binding());
5021
+ return ns(this.binding());
5016
5022
  }
5017
5023
  /**
5018
5024
  * Get an observable that emits the current value of the binding
5019
5025
  */
5020
5026
  listen() {
5021
- return es(this.binding());
5027
+ return ts(this.binding());
5022
5028
  }
5023
5029
  /**
5024
5030
  * Subscribe to changes of the variable's binding value.
@@ -5040,7 +5046,7 @@ class jn {
5040
5046
  * Bind to the status variable's value
5041
5047
  */
5042
5048
  bind() {
5043
- return (this._binding_count <= 0 && this._stale_bindings <= 0 || this._pending === 2) && (this._pending = 1, qn(this.binding()).then(() => {
5049
+ return (this._binding_count <= 0 && this._stale_bindings <= 0 || this._pending === 2) && (this._pending = 1, Nn(this.binding()).then(() => {
5044
5050
  this._binding_count++, this._pending = 0;
5045
5051
  }).catch(() => null)), () => this.unbind();
5046
5052
  }
@@ -5048,7 +5054,7 @@ class jn {
5048
5054
  * Unbind from status variable
5049
5055
  */
5050
5056
  unbind() {
5051
- this._binding_count === 1 && this._pending === 0 ? (this._pending = 2, ns(this.binding()).then(() => {
5057
+ this._binding_count === 1 && this._pending === 0 ? (this._pending = 2, rs(this.binding()).then(() => {
5052
5058
  this._pending === 2 && (this._pending = 0), this._binding_count--;
5053
5059
  })) : this._binding_count = Math.max(this._binding_count - 1, 0);
5054
5060
  }
@@ -5059,7 +5065,7 @@ class jn {
5059
5065
  !this._stale_bindings && this._pending !== 1 || ne(
5060
5066
  `rebind:${JSON.stringify(this.binding())}`,
5061
5067
  async () => {
5062
- await qn(this.binding()), this._binding_count = this._stale_bindings || 1, this._stale_bindings = 0;
5068
+ await Nn(this.binding()), this._binding_count = this._stale_bindings || 1, this._stale_bindings = 0;
5063
5069
  },
5064
5070
  100
5065
5071
  );
@@ -5076,7 +5082,7 @@ class jn {
5076
5082
  };
5077
5083
  }
5078
5084
  }
5079
- class fs {
5085
+ class hs {
5080
5086
  constructor(e, n) {
5081
5087
  this._system = e, this._id = n;
5082
5088
  }
@@ -5120,7 +5126,7 @@ class fs {
5120
5126
  * @param args Array of arguments to pass to the method
5121
5127
  */
5122
5128
  execute(e, n, r = st) {
5123
- return rs(
5129
+ return is(
5124
5130
  {
5125
5131
  sys: this._system.id,
5126
5132
  mod: this.name,
@@ -5132,7 +5138,7 @@ class fs {
5132
5138
  );
5133
5139
  }
5134
5140
  }
5135
- class hs {
5141
+ class ds {
5136
5142
  /** Unique idetifier of the system */
5137
5143
  id;
5138
5144
  /** Mapping of engine modules within the system */
@@ -5153,7 +5159,7 @@ class hs {
5153
5159
  const i = r.join("_");
5154
5160
  for (this._module_list[i] || (this._module_list[i] = []); this._module_list[i].length < n; )
5155
5161
  this._module_list[i].push(
5156
- new fs(
5162
+ new hs(
5157
5163
  this,
5158
5164
  `${i}_${this._module_list[i].length + 1}`
5159
5165
  )
@@ -5162,282 +5168,283 @@ class hs {
5162
5168
  }
5163
5169
  }
5164
5170
  const Gt = {};
5165
- function ds(t) {
5166
- return Gt[t] || (Gt[t] = new hs(t)), Gt[t];
5171
+ function ps(t) {
5172
+ return Gt[t] || (Gt[t] = new ds(t)), Gt[t];
5167
5173
  }
5168
- function wa(t, e, n = 1) {
5169
- return ds(t).module(e, n);
5174
+ function Ea(t, e, n = 1) {
5175
+ return ps(t).module(e, n);
5170
5176
  }
5171
5177
  export {
5172
- wo as AuthType,
5173
- Pe as EncryptionLevel,
5174
- Or as MediaAnimation,
5175
- Jo as MockPlaceWebsocketModule,
5176
- Ko as MockPlaceWebsocketSystem,
5177
- $o as PlaceApplication,
5178
- Eo as PlaceCluster,
5179
- To as PlaceDomain,
5180
- kr as PlaceDriver,
5178
+ Oo as AuthType,
5179
+ Te as EncryptionLevel,
5180
+ Ir as MediaAnimation,
5181
+ Ko as MockPlaceWebsocketModule,
5182
+ Zo as MockPlaceWebsocketSystem,
5183
+ Ao as PlaceApplication,
5184
+ Io as PlaceCluster,
5185
+ Mo as PlaceDomain,
5186
+ $r as PlaceDriver,
5181
5187
  St as PlaceDriverRole,
5182
- Mo as PlaceEdge,
5188
+ Ro as PlaceEdge,
5183
5189
  X as PlaceErrorCodes,
5184
- Ro as PlaceLDAPSource,
5185
- Tr as PlaceLogLevel,
5186
- Oo as PlaceMQTTBroker,
5187
- xr as PlaceMetadata,
5188
- Ar as PlaceModule,
5189
- fs as PlaceModuleBinding,
5190
+ Uo as PlaceLDAPSource,
5191
+ Rr as PlaceLogLevel,
5192
+ Eo as PlaceMQTTBroker,
5193
+ Ar as PlaceMetadata,
5194
+ Or as PlaceModule,
5195
+ hs as PlaceModuleBinding,
5190
5196
  qo as PlaceOAuthSource,
5191
- Io as PlaceProcess,
5192
- No as PlaceRepository,
5193
- wr as PlaceRepositoryType,
5197
+ To as PlaceProcess,
5198
+ Co as PlaceRepository,
5199
+ Er as PlaceRepositoryType,
5194
5200
  B as PlaceResource,
5195
- Co as PlaceSAMLSource,
5201
+ jo as PlaceSAMLSource,
5196
5202
  Se as PlaceSettings,
5197
- $r as PlaceSystem,
5198
- hs as PlaceSystemBinding,
5203
+ wr as PlaceSystem,
5204
+ ds as PlaceSystemBinding,
5199
5205
  Me as PlaceTrigger,
5200
- Lo as PlaceUser,
5206
+ Ho as PlaceUser,
5201
5207
  jn as PlaceVariableBinding,
5202
5208
  mn as PlaceZone,
5203
- Uo as PlaceZoneMetadata,
5204
- Ho as SignageMedia,
5205
- Wo as SignagePlaylist,
5209
+ Do as PlaceZoneMetadata,
5210
+ Wo as SignageMedia,
5211
+ Bo as SignagePlaylist,
5206
5212
  yn as SignagePlaylistMedia,
5207
5213
  Qt as Survey,
5208
- Ir as SurveyAnswer,
5214
+ Pr as SurveyAnswer,
5209
5215
  Bt as SurveyInvitation,
5210
5216
  Vt as SurveyQuestion,
5211
- jo as TriggerConditionOperator,
5212
- Fo as TriggerTimeConditionType,
5213
- zo as TriggerWebhookType,
5214
- oa as addAnswer,
5215
- Os as addApplication,
5216
- Ms as addBroker,
5217
- Fs as addDomain,
5218
- Bs as addDriver,
5219
- Xs as addEdge,
5220
- aa as addInvitation,
5221
- ou as addLDAPSource,
5222
- fu as addMetadata,
5223
- yu as addModule,
5224
- Iu as addOAuthSource,
5225
- da as addQuestion,
5226
- Uu as addRepository,
5227
- Ju as addSAMLSource,
5228
- ec as addSettings,
5229
- Qc as addSignageMedia,
5230
- Gc as addSignagePlaylist,
5231
- va as addSurvey,
5232
- uc as addSystem,
5233
- ac as addSystemModule,
5234
- vc as addSystemTrigger,
5235
- Ac as addTrigger,
5236
- Mc as addUser,
5237
- Cc as addZone,
5217
+ Fo as TriggerConditionOperator,
5218
+ zo as TriggerTimeConditionType,
5219
+ Lo as TriggerWebhookType,
5220
+ ua as addAnswer,
5221
+ Is as addApplication,
5222
+ Us as addBroker,
5223
+ Ls as addDomain,
5224
+ Qs as addDriver,
5225
+ tu as addEdge,
5226
+ fa as addInvitation,
5227
+ uu as addLDAPSource,
5228
+ du as addMetadata,
5229
+ vu as addModule,
5230
+ Pu as addOAuthSource,
5231
+ _a as addQuestion,
5232
+ Nu as addRepository,
5233
+ Zu as addSAMLSource,
5234
+ nc as addSettings,
5235
+ Jc as addSignageMedia,
5236
+ ea as addSignagePlaylist,
5237
+ Sa as addSurvey,
5238
+ ac as addSystem,
5239
+ fc as addSystemModule,
5240
+ Sc as addSystemTrigger,
5241
+ Oc as addTrigger,
5242
+ Uc as addUser,
5243
+ Fc as addZone,
5238
5244
  be as apiEndpoint,
5239
5245
  Ot as apiKey,
5240
- na as approveSignagePlaylist,
5241
- pr as authorise,
5246
+ ia as approveSignagePlaylist,
5247
+ _r as authorise,
5242
5248
  vt as authority,
5243
- qn as bind,
5244
- Wi as cleanObject,
5245
- vs as cleanupAuth,
5246
- to as clientId,
5247
- xa as connectionState,
5248
- Tn as consoleHasColours,
5249
+ Nn as bind,
5250
+ Bi as cleanObject,
5251
+ bs as cleanupAuth,
5252
+ no as clientId,
5253
+ Aa as connectionState,
5254
+ Pn as consoleHasColours,
5249
5255
  je as convertPairStringToMap,
5250
- N as create,
5251
- Pc as currentUser,
5252
- $a as debug,
5253
- qr as debug_events,
5256
+ q as create,
5257
+ Mc as currentUser,
5258
+ wa as debug,
5259
+ Cr as debug_events,
5254
5260
  We as del,
5255
- yo as deregisterMockEndpoint,
5256
- ka as deregisterSystem,
5257
- rs as execute,
5258
- dc as executeOnSystem,
5259
- zc as executeOnZone,
5260
- mc as functionList,
5261
- Li as generateNonce,
5261
+ go as deregisterMockEndpoint,
5262
+ $a as deregisterSystem,
5263
+ is as execute,
5264
+ _c as executeOnSystem,
5265
+ Hc as executeOnZone,
5266
+ gc as functionList,
5267
+ Hi as generateNonce,
5262
5268
  ee as get,
5263
- lr as getFragments,
5264
- wa as getModule,
5265
- ds as getSystem,
5266
- ro as hasToken,
5269
+ fr as getFragments,
5270
+ Ea as getModule,
5271
+ ps as getSystem,
5272
+ io as hasToken,
5267
5273
  rn as host,
5268
- fr as httpRoute,
5274
+ hr as httpRoute,
5269
5275
  yt as humanReadableByteCount,
5270
- Aa as ignore,
5276
+ Oa as ignore,
5271
5277
  hn as invalidateToken,
5272
- Js as isDriverCompiled,
5273
- hr as isFixedDevice,
5274
- Bi as isMobileSafari,
5278
+ Zs as isDriverCompiled,
5279
+ dr as isFixedDevice,
5280
+ Vi as isMobileSafari,
5275
5281
  ln as isMock,
5276
- Vi as isNestedFrame,
5277
- ms as isOnline,
5278
- oo as isSecure,
5282
+ Qi as isNestedFrame,
5283
+ ys as isOnline,
5284
+ so as isSecure,
5279
5285
  fn as isTrusted,
5280
- Nr as is_connected,
5281
- xs as lastRequestTotal,
5282
- du as listChildMetadata,
5283
- qu as listInterfaceRepositories,
5284
- uu as listMetadata,
5285
- cu as listMetadataHistory,
5286
- Cu as listRemoteRepositoryBranches,
5287
- ju as listRemoteRepositoryCommits,
5288
- Nu as listRemoteRepositoryDefaultBranch,
5289
- Lu as listRepositoryBranches,
5290
- zu as listRepositoryCommits,
5291
- Hu as listRepositoryDefaultBranch,
5292
- Wu as listRepositoryDriverDetails,
5293
- Fu as listRepositoryDrivers,
5294
- ea as listSignagePlaylistMedia,
5295
- ta as listSignagePlaylistMediaRevisions,
5296
- gc as listSystemTriggers,
5297
- yc as listSystemZones,
5298
- Oc as listTriggerInstances,
5299
- Dc as listZoneTags,
5300
- Fc as listZoneTriggers,
5301
- es as listen,
5302
- io as listenForToken,
5303
- xu as loadModule,
5286
+ jr as is_connected,
5287
+ As as lastRequestTotal,
5288
+ _u as listChildMetadata,
5289
+ Cu as listInterfaceRepositories,
5290
+ au as listMetadata,
5291
+ lu as listMetadataHistory,
5292
+ Fu as listRemoteRepositoryBranches,
5293
+ zu as listRemoteRepositoryCommits,
5294
+ ju as listRemoteRepositoryDefaultBranch,
5295
+ Wu as listRepositoryBranches,
5296
+ Hu as listRepositoryCommits,
5297
+ Bu as listRepositoryDefaultBranch,
5298
+ Vu as listRepositoryDriverDetails,
5299
+ Lu as listRepositoryDrivers,
5300
+ na as listSignagePlaylistMedia,
5301
+ ra as listSignagePlaylistMediaRevisions,
5302
+ bc as listSystemTriggers,
5303
+ vc as listSystemZones,
5304
+ Ic as listTriggerInstances,
5305
+ qc as listZoneTags,
5306
+ Lc as listZoneTriggers,
5307
+ ts as listen,
5308
+ oo as listenForToken,
5309
+ Au as loadModule,
5304
5310
  d as log,
5305
- bs as logout,
5306
- ku as lookupModuleState,
5307
- _c as lookupSystemModuleState,
5308
- Zo as mockSystem,
5309
- Au as moduleRuntimeError,
5310
- $u as moduleSettings,
5311
- Su as moduleState,
5312
- ys as onlineState,
5313
- Hi as parseLinkHeader,
5311
+ Ss as logout,
5312
+ $u as lookupModuleState,
5313
+ yc as lookupSystemModuleState,
5314
+ Go as mockSystem,
5315
+ Ou as moduleRuntimeError,
5316
+ wu as moduleSettings,
5317
+ xu as moduleState,
5318
+ gs as onlineState,
5319
+ Wi as parseLinkHeader,
5314
5320
  It as patch,
5315
5321
  Ie as post,
5316
- Bu as pullRepositoryChanges,
5322
+ Qu as pullRepositoryChanges,
5317
5323
  He as put,
5318
5324
  E as query,
5319
- ia as queryAnswers,
5320
- $s as queryApplications,
5321
- Is as queryBrokers,
5322
- Us as queryClusters,
5323
- Ns as queryDomains,
5324
- Ls as queryDrivers,
5325
- Ks as queryEdges,
5326
- sa as queryInvitations,
5327
- nu as queryLDAPSources,
5328
- pu as queryModules,
5329
- wu as queryOAuthSources,
5330
- Ds as queryProcesses,
5331
- fa as queryQuestions,
5332
- Tu as queryRepositories,
5333
- Vu as querySAMLSources,
5334
- Zu as querySettings,
5335
- Wc as querySignageMedia,
5336
- Jc as querySignagePlaylists,
5337
- ma as querySurveys,
5338
- rc as querySystems,
5339
- ic as querySystemsWithEmails,
5340
- kc as queryTriggers,
5341
- Ec as queryUsers,
5342
- Uc as queryZones,
5343
- Qs as recompileDriver,
5344
- ps as redirectUri,
5345
- dr as refreshAuthority,
5325
+ sa as queryAnswers,
5326
+ ws as queryApplications,
5327
+ Ps as queryBrokers,
5328
+ Ns as queryClusters,
5329
+ js as queryDomains,
5330
+ Ws as queryDrivers,
5331
+ Gs as queryEdges,
5332
+ ca as queryInvitations,
5333
+ iu as queryLDAPSources,
5334
+ mu as queryModules,
5335
+ Eu as queryOAuthSources,
5336
+ qs as queryProcesses,
5337
+ da as queryQuestions,
5338
+ Ru as queryRepositories,
5339
+ Yu as querySAMLSources,
5340
+ Xu as querySettings,
5341
+ Vc as querySignageMedia,
5342
+ Zc as querySignagePlaylists,
5343
+ ga as querySurveys,
5344
+ oc as querySystems,
5345
+ sc as querySystemsWithEmails,
5346
+ $c as queryTriggers,
5347
+ Tc as queryUsers,
5348
+ Nc as queryZones,
5349
+ Js as recompileDriver,
5350
+ _s as redirectUri,
5351
+ pr as refreshAuthority,
5346
5352
  nn as refreshToken,
5347
- Ss as registerMockEndpoint,
5348
- Sa as registerSystem,
5349
- Ys as reloadDriver,
5353
+ xs as registerMockEndpoint,
5354
+ xa as registerSystem,
5355
+ Ks as reloadDriver,
5350
5356
  M as remove,
5351
- Es as removeApplication,
5352
- Rs as removeBroker,
5353
- zs as removeDomain,
5354
- Vs as removeDriver,
5355
- eu as removeEdge,
5357
+ Ts as removeApplication,
5358
+ Ds as removeBroker,
5359
+ Hs as removeDomain,
5360
+ Ys as removeDriver,
5361
+ nu as removeEdge,
5356
5362
  he as removeFragment,
5357
- la as removeInvitation,
5358
- su as removeLDAPSource,
5359
- hu as removeMetadata,
5360
- gu as removeModule,
5361
- Pu as removeOAuthSource,
5362
- _a as removeQuestion,
5363
- Du as removeRepository,
5364
- Ku as removeSAMLSource,
5365
- tc as removeSettings,
5366
- Yc as removeSignageMedia,
5367
- Xc as removeSignagePlaylist,
5368
- ba as removeSurvey,
5369
- cc as removeSystem,
5370
- lc as removeSystemModule,
5371
- bc as removeSystemTrigger,
5372
- wc as removeTrigger,
5373
- Rc as removeUser,
5374
- jc as removeZone,
5375
- ks as requestTotal,
5376
- ko as responseHeaders,
5377
- tu as retrieveEdgeToken,
5378
- _s as setAPI_Key,
5379
- no as setToken,
5380
- nc as settingsHistory,
5381
- gs as setup,
5363
+ ha as removeInvitation,
5364
+ cu as removeLDAPSource,
5365
+ pu as removeMetadata,
5366
+ bu as removeModule,
5367
+ Mu as removeOAuthSource,
5368
+ ya as removeQuestion,
5369
+ qu as removeRepository,
5370
+ Gu as removeSAMLSource,
5371
+ rc as removeSettings,
5372
+ Kc as removeSignageMedia,
5373
+ ta as removeSignagePlaylist,
5374
+ ka as removeSurvey,
5375
+ lc as removeSystem,
5376
+ hc as removeSystemModule,
5377
+ kc as removeSystemTrigger,
5378
+ Ec as removeTrigger,
5379
+ Dc as removeUser,
5380
+ zc as removeZone,
5381
+ $s as requestTotal,
5382
+ xo as responseHeaders,
5383
+ ru as retrieveEdgeToken,
5384
+ ms as setAPI_Key,
5385
+ ks as setMockNotFoundHandler,
5386
+ ro as setToken,
5387
+ ic as settingsHistory,
5388
+ vs as setup,
5382
5389
  $ as show,
5383
- As as showApplication,
5384
- Ps as showBroker,
5385
- Cs as showDomain,
5386
- Hs as showDriver,
5387
- Zs as showEdge,
5388
- ua as showInvitation,
5389
- ru as showLDAPSource,
5390
- au as showMetadata,
5391
- _u as showModule,
5392
- Ou as showOAuthSource,
5393
- ha as showQuestion,
5394
- Mu as showRepository,
5395
- Qu as showSAMLSource,
5396
- Gu as showSettings,
5397
- Lc as showSignage,
5398
- Bc as showSignageMedia,
5399
- Hc as showSignageMetrics,
5400
- Kc as showSignagePlaylist,
5401
- ya as showSurvey,
5402
- oc as showSystem,
5403
- xc as showTrigger,
5404
- Ic as showUser,
5405
- qc as showZone,
5406
- Qi as simplifiedTime,
5407
- vu as startModule,
5408
- fc as startSystem,
5409
- Xo as status,
5410
- bu as stopModule,
5411
- hc as stopSystem,
5412
- pc as systemModuleState,
5413
- Sc as systemSettings,
5414
- qs as terminateProcess,
5390
+ Os as showApplication,
5391
+ Ms as showBroker,
5392
+ Fs as showDomain,
5393
+ Bs as showDriver,
5394
+ Xs as showEdge,
5395
+ aa as showInvitation,
5396
+ ou as showLDAPSource,
5397
+ fu as showMetadata,
5398
+ yu as showModule,
5399
+ Iu as showOAuthSource,
5400
+ pa as showQuestion,
5401
+ Uu as showRepository,
5402
+ Ju as showSAMLSource,
5403
+ ec as showSettings,
5404
+ Wc as showSignage,
5405
+ Qc as showSignageMedia,
5406
+ Bc as showSignageMetrics,
5407
+ Gc as showSignagePlaylist,
5408
+ va as showSurvey,
5409
+ uc as showSystem,
5410
+ Ac as showTrigger,
5411
+ Pc as showUser,
5412
+ Cc as showZone,
5413
+ Yi as simplifiedTime,
5414
+ Su as startModule,
5415
+ dc as startSystem,
5416
+ es as status,
5417
+ ku as stopModule,
5418
+ pc as stopSystem,
5419
+ mc as systemModuleState,
5420
+ xc as systemSettings,
5421
+ Cs as terminateProcess,
5415
5422
  Y as token,
5416
- ns as unbind,
5423
+ rs as unbind,
5417
5424
  C as update,
5418
- ws as updateApplication,
5419
- Ts as updateBroker,
5420
- js as updateDomain,
5421
- Ws as updateDriver,
5422
- Gs as updateEdge,
5423
- ca as updateInvitation,
5424
- iu as updateLDAPSource,
5425
- lu as updateMetadata,
5426
- mu as updateModule,
5427
- Eu as updateOAuthSource,
5428
- pa as updateQuestion,
5429
- Ru as updateRepository,
5430
- Yu as updateSAMLSource,
5431
- Xu as updateSettings,
5432
- Vc as updateSignageMedia,
5433
- Zc as updateSignagePlaylist,
5434
- ra as updateSignagePlaylistMedia,
5435
- ga as updateSurvey,
5436
- sc as updateSystem,
5437
- $c as updateTrigger,
5438
- Tc as updateUser,
5439
- Nc as updateZone,
5440
- ts as value,
5425
+ Es as updateApplication,
5426
+ Rs as updateBroker,
5427
+ zs as updateDomain,
5428
+ Vs as updateDriver,
5429
+ eu as updateEdge,
5430
+ la as updateInvitation,
5431
+ su as updateLDAPSource,
5432
+ hu as updateMetadata,
5433
+ gu as updateModule,
5434
+ Tu as updateOAuthSource,
5435
+ ma as updateQuestion,
5436
+ Du as updateRepository,
5437
+ Ku as updateSAMLSource,
5438
+ tc as updateSettings,
5439
+ Yc as updateSignageMedia,
5440
+ Xc as updateSignagePlaylist,
5441
+ oa as updateSignagePlaylistMedia,
5442
+ ba as updateSurvey,
5443
+ cc as updateSystem,
5444
+ wc as updateTrigger,
5445
+ Rc as updateUser,
5446
+ jc as updateZone,
5447
+ ns as value,
5441
5448
  Kt as websocketRoute
5442
5449
  };
5443
5450
  //# sourceMappingURL=index.es.js.map