@kosdev-code/kos-ui-sdk 2.0.40 → 2.0.41

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/index.js CHANGED
@@ -3,8 +3,8 @@ var zc = (t, e, s) => e in t ? Kc(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var l = (t, e, s) => (zc(t, typeof e != "symbol" ? e + "" : e, s), s);
4
4
  import S from "loglevel";
5
5
  import { runInAction as V, observable as ee, makeAutoObservable as _e, action as kn, when as Yt, ObservableMap as co, reaction as qt, autorun as Wt, makeObservable as Fn, computed as Nn, createAtom as Gc, observe as Un, isComputedProp as Vc, isObservable as Yc } from "mobx";
6
- import { makeAutoObservable as Zv, makeObservable as Qv } from "mobx";
7
- import { createMachine as At, state as z, transition as D, invoke as ve, action as N, interpret as Lt, immediate as nt } from "robot3";
6
+ import { makeAutoObservable as Hv, makeObservable as Kv } from "mobx";
7
+ import { createMachine as At, invoke as ve, state as z, transition as D, action as N, interpret as Lt, immediate as nt } from "robot3";
8
8
  import { format as He, parseISO as qc } from "date-fns";
9
9
  import { jsx as v, jsxs as kt, Fragment as Wc } from "@emotion/react/jsx-runtime";
10
10
  import lo from "@emotion/styled";
@@ -12,9 +12,9 @@ import { createPortal as jn } from "react-dom";
12
12
  import { keyframes as Zc, css as st } from "@emotion/react";
13
13
  import Ye, { createContext as Zt, useContext as Ke, useState as E, useCallback as Z, useMemo as K, Suspense as Qc, useEffect as O, useRef as nr, useReducer as Jc } from "react";
14
14
  import { observer as Bn } from "mobx-react-lite";
15
- import { observer as Xv } from "mobx-react-lite";
15
+ import { observer as Gv } from "mobx-react-lite";
16
16
  import { useGesture as Xc } from "@use-gesture/react";
17
- const uo = "method", el = "topic", Qt = "url", ir = "request-id", ho = "response-id", Hn = "status", Ne = "dst-addr", tl = "src-addr", Ce = "type", Kn = "ordered", zn = "tracker", sl = "Content-Type", rl = "Cache-Control", ol = "requestId", nl = process.env.KOS_LOGIN_URL || "http://localhost", il = process.env.KOS_APP_PORT || "8080", ob = `${nl}:${il}`, Hr = "{MODEL_ID}";
17
+ const uo = "method", el = "topic", Qt = "url", ir = "request-id", ho = "response-id", Hn = "status", Ne = "dst-addr", tl = "src-addr", Ce = "type", Kn = "ordered", zn = "tracker", sl = "Content-Type", rl = "Cache-Control", ol = "requestId", nl = process.env.KOS_LOGIN_URL || "http://localhost", il = process.env.KOS_APP_PORT || "8080", Zy = `${nl}:${il}`, Hr = "{MODEL_ID}";
18
18
  var ar = /* @__PURE__ */ ((t) => (t.SEND = "/ws/log/msg/send", t.RECEIVED = "/ws/log/msg/receive", t))(ar || {}), al = /* @__PURE__ */ ((t) => (t.MSG_RECEIVE = "/mock/msg/receive", t))(al || {});
19
19
  const Gn = "/kos/model/ready/";
20
20
  S.info("Initializing event bus");
@@ -79,7 +79,7 @@ function go(t, e) {
79
79
  }, e));
80
80
  });
81
81
  }
82
- const nb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82
+ const Qy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83
83
  __proto__: null,
84
84
  hasEventSubscriptions: fo,
85
85
  once: Vn,
@@ -251,7 +251,7 @@ const dl = {
251
251
  stateMachine: ti,
252
252
  request: si,
253
253
  eventIterator: ri
254
- }, ib = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
254
+ }, Jy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
255
255
  __proto__: null,
256
256
  EventBusFunctional: dl,
257
257
  buffer: Xn,
@@ -436,7 +436,7 @@ const ul = {
436
436
  waitForAllWithState: mo,
437
437
  createResilientEventHandler: ii,
438
438
  createConnectionStateManager: ai
439
- }, ab = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
439
+ }, Xy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
440
440
  __proto__: null,
441
441
  EventBusState: ul,
442
442
  createConnectionStateManager: ai,
@@ -445,7 +445,7 @@ const ul = {
445
445
  subscribeWithInitialState: oi,
446
446
  waitForAllWithState: mo,
447
447
  waitForOrGetState: dr
448
- }, Symbol.toStringTag, { value: "Module" })), cb = (t, e = 0) => {
448
+ }, Symbol.toStringTag, { value: "Module" })), eb = (t, e = 0) => {
449
449
  if (!+t)
450
450
  return {
451
451
  value: 0,
@@ -486,7 +486,7 @@ function Jt() {
486
486
  return (t == "x" ? e : e & 3 | 8).toString(16);
487
487
  });
488
488
  }
489
- function lb(t, e) {
489
+ function tb(t, e) {
490
490
  e.forEach((s) => {
491
491
  Object.getOwnPropertyNames(s.prototype).forEach((r) => {
492
492
  const o = Object.getOwnPropertyDescriptor(
@@ -501,14 +501,14 @@ function lb(t, e) {
501
501
  });
502
502
  });
503
503
  }
504
- function db(t, e) {
504
+ function sb(t, e) {
505
505
  const s = t ?? [], r = e ?? [];
506
506
  return s.length !== r.length ? !1 : s.every((o, n) => o === r[n]);
507
507
  }
508
508
  const yo = (t, e) => {
509
509
  const s = t.map((n) => n.id);
510
510
  return e.map((n) => n.id).filter((n) => !s.includes(n));
511
- }, ub = ({
511
+ }, rb = ({
512
512
  container: t,
513
513
  onAddItem: e,
514
514
  onRemoveItem: s,
@@ -518,7 +518,7 @@ const yo = (t, e) => {
518
518
  t.removeAll(a);
519
519
  const c = n.map(e).filter(Boolean);
520
520
  t.addAll(c);
521
- }, hb = ({
521
+ }, ob = ({
522
522
  container: t,
523
523
  onAddItem: e,
524
524
  onRemoveItem: s,
@@ -526,7 +526,7 @@ const yo = (t, e) => {
526
526
  }) => (o) => {
527
527
  const n = o.map(r);
528
528
  yo(n, t.models).forEach(s), n.forEach(e);
529
- }, fb = ({
529
+ }, nb = ({
530
530
  items: t,
531
531
  onAddItem: e,
532
532
  onRemoveItem: s,
@@ -534,7 +534,7 @@ const yo = (t, e) => {
534
534
  }) => (o) => {
535
535
  const n = o.map(r);
536
536
  yo(n, t).forEach(s), n.forEach(e);
537
- }, gb = (t, e = "parent-") => {
537
+ }, ib = (t, e = "parent-") => {
538
538
  let s = t;
539
539
  return s.startsWith(e) && (s = s.replace(e, "")), s;
540
540
  }, Ko = new Intl.RelativeTimeFormat(void 0, {
@@ -621,7 +621,7 @@ const li = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, di = (t, e) =>
621
621
  ...r && hi[r]
622
622
  };
623
623
  return new Intl.DateTimeFormat(s, o).format(t);
624
- }, pb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
624
+ }, ab = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
625
625
  __proto__: null,
626
626
  addDaysToDate: gl,
627
627
  addMonthsToDate: fl,
@@ -640,7 +640,7 @@ function bl(t, e, s = 300) {
640
640
  }, s);
641
641
  };
642
642
  }
643
- const te = "canvas-renderer", Tr = /* @__PURE__ */ new Map(), Go = /* @__PURE__ */ new Map(), Ir = /* @__PURE__ */ new Map(), $r = /* @__PURE__ */ new Map(), ur = (t, e) => {
643
+ const te = "canvas-renderer", Ir = /* @__PURE__ */ new Map(), Go = /* @__PURE__ */ new Map(), Tr = /* @__PURE__ */ new Map(), $r = /* @__PURE__ */ new Map(), ur = (t, e) => {
644
644
  fi[t] = e;
645
645
  }, fi = {
646
646
  indexExtension: {
@@ -662,21 +662,21 @@ const te = "canvas-renderer", Tr = /* @__PURE__ */ new Map(), Go = /* @__PURE__
662
662
  },
663
663
  propertyMapper: {
664
664
  registerPropertyMapper: (t, e) => {
665
- Ir.set(t, e);
665
+ Tr.set(t, e);
666
666
  },
667
- hasMapper: (t) => Ir.has(t),
667
+ hasMapper: (t) => Tr.has(t),
668
668
  executeMapper: (t, e, s) => {
669
- const r = Ir.get(t);
669
+ const r = Tr.get(t);
670
670
  return r ? r(e, s) : "";
671
671
  }
672
672
  },
673
673
  dataMapper: {
674
674
  registerDataMapper: (t, e) => {
675
- const s = Tr.get(t) || [];
676
- s.push(e), Tr.set(t, s);
675
+ const s = Ir.get(t) || [];
676
+ s.push(e), Ir.set(t, s);
677
677
  },
678
678
  executeMapper: async (t, e, s) => {
679
- const r = Tr.get(t);
679
+ const r = Ir.get(t);
680
680
  if (!r)
681
681
  return {};
682
682
  const o = {};
@@ -689,20 +689,20 @@ const te = "canvas-renderer", Tr = /* @__PURE__ */ new Map(), Go = /* @__PURE__
689
689
  },
690
690
  canvas: {
691
691
  registerRenderer: (t, e) => {
692
- if (!I[te]) {
692
+ if (!T[te]) {
693
693
  console.warn(
694
694
  `Canvas renderer extension point is not registered. Cannot register renderer "${t}".`
695
695
  );
696
696
  return;
697
697
  }
698
- I[te].register(t, e);
698
+ T[te].register(t, e);
699
699
  }
700
700
  }
701
- }, I = fi, wl = async ({
701
+ }, T = fi, wl = async ({
702
702
  context: t,
703
703
  extension: e
704
704
  }) => {
705
- const s = await I.loader.executeLoader(
705
+ const s = await T.loader.executeLoader(
706
706
  e,
707
707
  {}
708
708
  );
@@ -711,7 +711,7 @@ const te = "canvas-renderer", Tr = /* @__PURE__ */ new Map(), Go = /* @__PURE__
711
711
  extension: t,
712
712
  contextData: e,
713
713
  data: s
714
- }) => await I.dataMapper.executeMapper(
714
+ }) => await T.dataMapper.executeMapper(
715
715
  t,
716
716
  s,
717
717
  e
@@ -719,17 +719,17 @@ const te = "canvas-renderer", Tr = /* @__PURE__ */ new Map(), Go = /* @__PURE__
719
719
  extension: t,
720
720
  contextData: e,
721
721
  data: s
722
- }) => await I.propertyMapper.executeMapper(
722
+ }) => await T.propertyMapper.executeMapper(
723
723
  t,
724
724
  s,
725
725
  e
726
- ), mb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
726
+ ), cb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
727
727
  __proto__: null,
728
728
  executeDataMapperExtension: vl,
729
729
  executeLoaderExtension: wl,
730
730
  executePropertyMapperExtension: Ml
731
- }, Symbol.toStringTag, { value: "Module" })), yb = "Extensions";
732
- class bb {
731
+ }, Symbol.toStringTag, { value: "Module" })), lb = "Extensions";
732
+ class db {
733
733
  constructor() {
734
734
  l(this, "extensions");
735
735
  this.extensions = {};
@@ -749,14 +749,14 @@ class bb {
749
749
  const ye = (t = null) => (t || window.location.search.replace("?", "")).split("&").map((e) => {
750
750
  const [s, r] = e.split("=");
751
751
  return [s, decodeURIComponent(r || "")];
752
- }).reduce((e, [s, r]) => (e[s] = r, e), {}), _l = "studio.tools.preview", wb = "studio.relax.store.validation", El = "studio.log.debug", Tl = "studio.log.info", Il = {
752
+ }).reduce((e, [s, r]) => (e[s] = r, e), {}), _l = "studio.tools.preview", ub = "studio.relax.store.validation", El = "studio.log.debug", Il = "studio.log.info", Tl = {
753
753
  profiles: [_l]
754
754
  };
755
755
  var Ln;
756
- const $l = ((Ln = globalThis.getKosConfig) == null ? void 0 : Ln.call(globalThis)) || JSON.stringify(Il), gi = JSON.parse($l);
756
+ const $l = ((Ln = globalThis.getKosConfig) == null ? void 0 : Ln.call(globalThis)) || JSON.stringify(Tl), gi = JSON.parse($l);
757
757
  globalThis.kosConfig = gi;
758
- const pi = gi, Ol = () => pi.profiles || [], Vo = (t) => Ol().includes(t), vb = () => pi.logging || !1, Sl = () => {
759
- const t = Vo(El), e = Vo(Tl);
758
+ const pi = gi, Ol = () => pi.profiles || [], Vo = (t) => Ol().includes(t), hb = () => pi.logging || !1, Sl = () => {
759
+ const t = Vo(El), e = Vo(Il);
760
760
  return t ? "DEBUG" : e ? "INFO" : void 0;
761
761
  }, Dl = () => {
762
762
  const t = ye(), e = Sl(), r = t.kosLogLevel ?? e ?? window.kosLogLevel ?? process.env.KOS_LOG_LEVEL;
@@ -846,7 +846,7 @@ ur(kl, {
846
846
  return Nl.updateFlags(i), Object.keys(i);
847
847
  }
848
848
  });
849
- const Mb = "kos.loader.featureFlag";
849
+ const fb = "kos.loader.featureFlag";
850
850
  class Fl {
851
851
  constructor(e = {}) {
852
852
  l(this, "flags", {});
@@ -886,7 +886,7 @@ const Nl = window.KosFeatureFlags, Ul = (t, e, s) => {
886
886
  if (!s)
887
887
  throw Error("Invalid HSL string");
888
888
  return Ul(parseInt(s[1]), parseInt(s[2]), parseInt(s[3]));
889
- }, Bl = (t, e) => getComputedStyle(t).getPropertyValue(e), _b = (t, e) => jl(Bl(t, e)), Hl = (t, e) => {
889
+ }, Bl = (t, e) => getComputedStyle(t).getPropertyValue(e), gb = (t, e) => jl(Bl(t, e)), Hl = (t, e) => {
890
890
  const s = { ...t };
891
891
  return s.id && delete s.id, s;
892
892
  }, Yo = (t, e, s = Hl) => {
@@ -949,9 +949,7 @@ class Gl {
949
949
  this.preloadKeys = e;
950
950
  }
951
951
  get models() {
952
- return Array.from(this._modelsById.values()).filter(
953
- (e) => !this._toDelete.has(e.modelId)
954
- );
952
+ return Array.from(this._modelsById.values()).map((e) => e).filter((e) => !this._toDelete.has(e.modelId));
955
953
  }
956
954
  getModelById(e) {
957
955
  if (e && !this._toDelete.has(e))
@@ -982,12 +980,12 @@ class Gl {
982
980
  ), e(s))).filter((s) => !!s), this._isPreloaded = !0, this._preloaded);
983
981
  }
984
982
  }
985
- const oe = Symbol("SubscriptionHandlers"), L = Symbol("DependencyModels"), _s = Symbol("FutureService"), Es = Symbol("ChildModels"), Ts = Symbol("ParentModel"), Is = Symbol("LogConfig"), Sr = Symbol("ReferenceConfig"), Vl = Symbol("KosModelSymbol"), it = Symbol("ModelEffects"), Kr = Symbol("CompanionParentModel"), Ee = (t, e) => {
983
+ const oe = Symbol("SubscriptionHandlers"), L = Symbol("DependencyModels"), _s = Symbol("FutureService"), Es = Symbol("ChildModels"), Is = Symbol("ParentModel"), Ts = Symbol("LogConfig"), Sr = Symbol("ReferenceConfig"), Vl = Symbol("KosModelSymbol"), it = Symbol("ModelEffects"), Kr = Symbol("CompanionParentModel"), Ee = (t, e) => {
986
984
  t[Es] = t[Es] || {}, t[Es][e] = !0;
987
- }, yt = (t) => `{PROP_${String(t)}}`, Eb = (t) => `{PROP_${String(t)}}`, Yl = yt("kosParentId"), bo = (t) => (e) => {
988
- e[Ts] = e[Ts] || {};
985
+ }, yt = (t) => `{PROP_${String(t)}}`, pb = (t) => `{PROP_${String(t)}}`, Yl = yt("kosParentId"), bo = (t) => (e) => {
986
+ e[Is] = e[Is] || {};
989
987
  const s = (t == null ? void 0 : t.parentId) || Yl;
990
- e[Ts] = { parentId: s };
988
+ e[Is] = { parentId: s };
991
989
  }, lt = ({
992
990
  value: t,
993
991
  modelId: e,
@@ -1021,7 +1019,7 @@ const oe = Symbol("SubscriptionHandlers"), L = Symbol("DependencyModels"), _s =
1021
1019
  }, ql = g.createLogger({ group: "decorators", name: "kos-model" });
1022
1020
  function Wl(t, e, s) {
1023
1021
  var n;
1024
- const r = (n = t[Ts]) == null ? void 0 : n.parentId;
1022
+ const r = (n = t[Is]) == null ? void 0 : n.parentId;
1025
1023
  if (!r)
1026
1024
  return;
1027
1025
  const o = lt({
@@ -1054,14 +1052,14 @@ function Ql(t, e) {
1054
1052
  );
1055
1053
  if (typeof n == "string") {
1056
1054
  if (!o.lazy) {
1057
- const a = T.getInstance().modelManager.createModelInstance(
1055
+ const a = I.getInstance().modelManager.createModelInstance(
1058
1056
  o.modelType,
1059
1057
  n,
1060
1058
  i
1061
1059
  );
1062
1060
  t[r] = a.data;
1063
1061
  }
1064
- T.getInstance().modelManager.addDependency(e, n);
1062
+ I.getInstance().modelManager.addDependency(e, n);
1065
1063
  }
1066
1064
  });
1067
1065
  }
@@ -1079,7 +1077,7 @@ const Xl = {
1079
1077
  Wl(t, s, r);
1080
1078
  const n = g.createLogger({
1081
1079
  name: t.prototype.modelTypeId,
1082
- group: ((a = t[Is]) == null ? void 0 : a.group) ?? "kos-model"
1080
+ group: ((a = t[Ts]) == null ? void 0 : a.group) ?? "kos-model"
1083
1081
  }), i = new t(s, r, {
1084
1082
  logger: n,
1085
1083
  kosContext: o
@@ -1096,10 +1094,10 @@ function P(t) {
1096
1094
  }), new Proxy(s, Xl);
1097
1095
  };
1098
1096
  }
1099
- const Tb = ({ modelType: t }) => (e) => {
1097
+ const mb = ({ modelType: t }) => (e) => {
1100
1098
  bo()(e), P(t)(e);
1101
1099
  };
1102
- function Ib(t, e, s) {
1100
+ function yb(t, e, s) {
1103
1101
  const r = s.value;
1104
1102
  s.value = function(...o) {
1105
1103
  const n = G.getContext(this.id);
@@ -1107,7 +1105,7 @@ function Ib(t, e, s) {
1107
1105
  };
1108
1106
  }
1109
1107
  var H = /* @__PURE__ */ ((t) => (t.INIT = "init", t.LOAD = "load", t.READY = "ready", t.ACTIVATE = "activate", t.ONLINE = "online", t))(H || {});
1110
- const $b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1108
+ const bb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1111
1109
  __proto__: null,
1112
1110
  DependencyLifecycle: H
1113
1111
  }, Symbol.toStringTag, { value: "Module" })), Le = Symbol("HttpRouteHandlers"), Wo = "__httpBrowserRouter";
@@ -1128,15 +1126,15 @@ function hr(t) {
1128
1126
  };
1129
1127
  };
1130
1128
  }
1131
- const ed = hr("GET"), fr = hr("POST"), Ob = hr("PUT"), td = hr("DELETE"), Sb = td;
1129
+ const ed = hr("GET"), fr = hr("POST"), wb = hr("PUT"), td = hr("DELETE"), vb = td;
1132
1130
  function zr(t) {
1133
1131
  return !!(t != null && t[Le]) && t[Le].length > 0;
1134
1132
  }
1135
1133
  function sd(t) {
1136
1134
  return (t == null ? void 0 : t[Le]) || [];
1137
1135
  }
1138
- const Db = ({ group: t } = { group: "" }) => (e) => {
1139
- e[Is] = e[Is] || {}, e[Is] = { group: t };
1136
+ const Mb = ({ group: t } = { group: "" }) => (e) => {
1137
+ e[Ts] = e[Ts] || {}, e[Ts] = { group: t };
1140
1138
  };
1141
1139
  function rd(t) {
1142
1140
  return (e, s, r) => {
@@ -1148,7 +1146,7 @@ function rd(t) {
1148
1146
  };
1149
1147
  };
1150
1148
  }
1151
- const Cb = (t) => (e, s) => {
1149
+ const _b = (t) => (e, s) => {
1152
1150
  e[Sr] = e[Sr] || {}, e[Sr][s] = t;
1153
1151
  }, Xt = ({
1154
1152
  /** The type of the model to be injected. */
@@ -1163,7 +1161,7 @@ const Cb = (t) => (e, s) => {
1163
1161
  options: s,
1164
1162
  lifecycle: r || H.INIT
1165
1163
  };
1166
- }, Pb = ({
1164
+ }, Eb = ({
1167
1165
  topic: t,
1168
1166
  handler: e,
1169
1167
  websocket: s = !1,
@@ -1346,7 +1344,7 @@ const Mi = (t, e, s) => {
1346
1344
  }), cancel: () => {
1347
1345
  r && clearTimeout(r);
1348
1346
  } };
1349
- }, gd = (t) => t.fsm.transitionTo(x.GO_ACTIVE, m.ACTIVE), pd = (t) => t.whenReady(), md = (t) => t.fsm.transitionTo(x.LOAD, m.LOADED), Rb = (t) => t.fsm.transitionTo(x.UNLOAD, m.UNLOADED), yd = (t) => t.fsm.transitionTo(x.INITIALIZE, m.INITIALIZED);
1347
+ }, gd = (t) => t.fsm.transitionTo(x.GO_ACTIVE, m.ACTIVE), pd = (t) => t.whenReady(), md = (t) => t.fsm.transitionTo(x.LOAD, m.LOADED), Ib = (t) => t.fsm.transitionTo(x.UNLOAD, m.UNLOADED), yd = (t) => t.fsm.transitionTo(x.INITIALIZE, m.INITIALIZED);
1350
1348
  var _i = /* @__PURE__ */ ((t) => (t.ACTIVE = "active", t.READY = "ready", t.LOAD = "load", t.UNLOAD = "unload", t.INIT = "init", t))(_i || {});
1351
1349
  const Cr = {
1352
1350
  active: gd,
@@ -1370,7 +1368,7 @@ const Cr = {
1370
1368
  modelId: t.modelId
1371
1369
  }), i;
1372
1370
  }, {});
1373
- return { dependentModel: T.getInstance().modelManager.createModelInstance(
1371
+ return { dependentModel: I.getInstance().modelManager.createModelInstance(
1374
1372
  e.modelType,
1375
1373
  r,
1376
1374
  o
@@ -1461,7 +1459,7 @@ const Cr = {
1461
1459
  r.length && (g.error(
1462
1460
  `There were ${r.length} failed dependent models on ${e}`
1463
1461
  ), g.error(r));
1464
- }, xb = (t) => typeof t.toJSON == "function", $s = (t) => t[L] !== void 0, Ei = (t) => t.revision !== void 0 && t.index !== void 0, _d = (t) => {
1462
+ }, Tb = (t) => typeof t.toJSON == "function", $s = (t) => t[L] !== void 0, Ei = (t) => t.revision !== void 0 && t.index !== void 0, _d = (t) => {
1465
1463
  if (t) {
1466
1464
  if ($s(t))
1467
1465
  return t;
@@ -1521,14 +1519,14 @@ function Ed(t) {
1521
1519
  subs: !!t.subscriptionManager
1522
1520
  };
1523
1521
  }
1524
- }), Td(
1522
+ }), Id(
1525
1523
  t.modelData,
1526
1524
  t.modelTypeName,
1527
1525
  t.modelId,
1528
1526
  t
1529
1527
  );
1530
1528
  }
1531
- function Td(t, e, s, r) {
1529
+ function Id(t, e, s, r) {
1532
1530
  Object.defineProperty(t, Symbol.toStringTag, {
1533
1531
  value: `KosModelData(${e}:${s})`,
1534
1532
  configurable: !0
@@ -1589,7 +1587,7 @@ function Td(t, e, s, r) {
1589
1587
  }
1590
1588
  });
1591
1589
  }
1592
- class Id {
1590
+ class Td {
1593
1591
  constructor(e) {
1594
1592
  this.model = e;
1595
1593
  }
@@ -1938,8 +1936,8 @@ class Ad {
1938
1936
  return [m.ACTIVE, m.INACTIVE].includes(e) ? this.model.activeStatus : this.model.status;
1939
1937
  }
1940
1938
  }
1941
- const Ti = "browser-router-model";
1942
- class Ii {
1939
+ const Ii = "browser-router-model";
1940
+ class Ti {
1943
1941
  constructor(e, s) {
1944
1942
  l(this, "logger");
1945
1943
  l(this, "model");
@@ -1966,7 +1964,7 @@ class Ii {
1966
1964
  }
1967
1965
  }
1968
1966
  if (e || (e = (s = Se(
1969
- Ti
1967
+ Ii
1970
1968
  )) == null ? void 0 : s.model), !e)
1971
1969
  throw this.logger.error(
1972
1970
  "Cannot register HTTP routes: BrowserRouter not found. The HTTP decorators should have auto-injected it, but something went wrong."
@@ -2099,17 +2097,17 @@ class Ii {
2099
2097
  return [...this.registeredRoutes];
2100
2098
  }
2101
2099
  }
2102
- function Ab(t, e) {
2100
+ function $b(t, e) {
2103
2101
  if (!zr(t))
2104
2102
  return;
2105
- const s = Se(Ti);
2103
+ const s = Se(Ii);
2106
2104
  if (!(s != null && s.model))
2107
2105
  throw e.error(
2108
2106
  "Cannot register HTTP routes: BrowserRouter not found. Make sure to include BrowserRouter in your model dependencies or create an instance."
2109
2107
  ), new Error(
2110
2108
  "BrowserRouter is required for HTTP route decorators but was not found. Add it as a dependency using @kosDependency or ensure an instance exists."
2111
2109
  );
2112
- new Ii(t, e).setRouter(s.model);
2110
+ new Ti(t, e).setRouter(s.model);
2113
2111
  }
2114
2112
  class Ld {
2115
2113
  static create({ modelId: e, modelTypeName: s, component: r }) {
@@ -2360,11 +2358,11 @@ const Kd = ({
2360
2358
  `;
2361
2359
  }), o += `
2362
2360
  `, o;
2363
- }, Lb = (t, e) => {
2361
+ }, Ob = (t, e) => {
2364
2362
  const s = t, r = qe(
2365
2363
  zd(e),
2366
2364
  typeof s == "string" ? s : JSON.stringify(s)
2367
- ), o = T.getInstance().transport.socket;
2365
+ ), o = I.getInstance().transport.socket;
2368
2366
  o ? (g.debug("Sending message", r), o.socket.send(r)) : g.error("socket transport is not initialized");
2369
2367
  }, Gd = ({
2370
2368
  path: t,
@@ -2381,17 +2379,17 @@ const Kd = ({
2381
2379
  `, o += `${Ce}:kos.studio.response
2382
2380
  `, o += `
2383
2381
  `, o;
2384
- }, kb = (t, e) => {
2382
+ }, Sb = (t, e) => {
2385
2383
  const s = t, r = qe(
2386
2384
  Kd(e),
2387
2385
  JSON.stringify(s)
2388
- ), o = T.getInstance().transport.socket;
2386
+ ), o = I.getInstance().transport.socket;
2389
2387
  o ? o.socket.send(r) : g.error("socket transport is not initialized");
2390
- }, Fb = (t, e) => {
2388
+ }, Db = (t, e) => {
2391
2389
  const s = e.responseId ? { status: e.status, data: t } : t, r = qe(
2392
2390
  Gd(e),
2393
2391
  JSON.stringify(s)
2394
- ), o = T.getInstance().transport.socket;
2392
+ ), o = I.getInstance().transport.socket;
2395
2393
  o ? o.socket.send(r) : g.error("socket transport is not initialized");
2396
2394
  }, Vd = ({
2397
2395
  topic: t
@@ -2431,14 +2429,14 @@ const Kd = ({
2431
2429
  `, o += `${Ce}:${r ?? "kos.message.request"}
2432
2430
  `, o += `
2433
2431
  `, o;
2434
- }, Nb = ({
2432
+ }, Cb = ({
2435
2433
  msg: t,
2436
2434
  options: e
2437
2435
  }) => {
2438
2436
  const s = t, r = qe(
2439
2437
  Vd(e),
2440
2438
  JSON.stringify(s)
2441
- ), o = T.getInstance().transport.socket;
2439
+ ), o = I.getInstance().transport.socket;
2442
2440
  o ? o.socket.send(r) : g.error("socket transport is not initialized");
2443
2441
  }, Wd = ({
2444
2442
  msg: t,
@@ -2447,7 +2445,7 @@ const Kd = ({
2447
2445
  const s = t, r = qe(
2448
2446
  qd(e),
2449
2447
  JSON.stringify(s)
2450
- ), o = T.getInstance().transport.socket;
2448
+ ), o = I.getInstance().transport.socket;
2451
2449
  o ? o.socket.send(r) : g.error("socket transport is not initialized");
2452
2450
  }, Zd = ({
2453
2451
  msg: t,
@@ -2456,7 +2454,7 @@ const Kd = ({
2456
2454
  const s = t, r = qe(
2457
2455
  Yd(e),
2458
2456
  JSON.stringify(s)
2459
- ), o = T.getInstance().transport.socket;
2457
+ ), o = I.getInstance().transport.socket;
2460
2458
  o ? o.socket.send(r) : g.error("socket transport is not initialized");
2461
2459
  }, Jo = (t, e) => {
2462
2460
  try {
@@ -3327,7 +3325,7 @@ class du {
3327
3325
  modelTypeName: r
3328
3326
  }), i = new Ad(e, Qe(n, "fsm")), a = new kd(
3329
3327
  Qe(n, "offline-queue")
3330
- ), c = new $d(e), d = new Id(e), u = {
3328
+ ), c = new $d(e), d = new Td(e), u = {
3331
3329
  fsm: i,
3332
3330
  offlineQueue: a,
3333
3331
  companionManager: c,
@@ -3351,7 +3349,7 @@ class du {
3351
3349
  Qe(n, "online")
3352
3350
  );
3353
3351
  }
3354
- return lu(o) && (u.httpRouteManager = new Ii(
3352
+ return lu(o) && (u.httpRouteManager = new Ti(
3355
3353
  o,
3356
3354
  Qe(n, "http-routes")
3357
3355
  )), u;
@@ -3544,7 +3542,7 @@ class hu {
3544
3542
  }
3545
3543
  A.debug(`Loading model ${s} with id ${r}`), await as(this, H.LOAD);
3546
3544
  try {
3547
- const d = G.getContext(r), u = `${uu}.${s}`, h = await I.loader.executeLoader(
3545
+ const d = G.getContext(r), u = `${uu}.${s}`, h = await T.loader.executeLoader(
3548
3546
  u,
3549
3547
  {}
3550
3548
  );
@@ -4103,7 +4101,7 @@ const bu = (t) => {
4103
4101
  ), online: s };
4104
4102
  }, fe = async (t) => {
4105
4103
  if (t.id) {
4106
- const e = T.getInstance().modelManager.getModelById(t.id);
4104
+ const e = I.getInstance().modelManager.getModelById(t.id);
4107
4105
  if (!e)
4108
4106
  throw new Error(`Model with ID ${t.id} not found`);
4109
4107
  await (e == null ? void 0 : e.whenReady());
@@ -4111,43 +4109,43 @@ const bu = (t) => {
4111
4109
  throw new Error("Data model must have a valid ID");
4112
4110
  return t;
4113
4111
  }, dt = async (t) => {
4114
- await T.getInstance().whenReady(), await T.getInstance().modelManager.initiateDestroyModel(t);
4115
- }, jb = async (t) => {
4116
- if (await T.getInstance().whenReady(), !t.id)
4112
+ await I.getInstance().whenReady(), await I.getInstance().modelManager.initiateDestroyModel(t);
4113
+ }, Rb = async (t) => {
4114
+ if (await I.getInstance().whenReady(), !t.id)
4117
4115
  throw new Error("Model ID is required");
4118
- const e = T.getInstance().modelManager.getModelById(t.id);
4116
+ const e = I.getInstance().modelManager.getModelById(t.id);
4119
4117
  e && await e.fsm.transitionTo(x.UNLOAD, m.UNLOADED);
4120
4118
  }, wu = async (t) => {
4121
- await T.getInstance().whenReady(), await T.getInstance().modelManager.reloadModel(t), g.debug(
4119
+ await I.getInstance().whenReady(), await I.getInstance().modelManager.reloadModel(t), g.debug(
4122
4120
  `reload model initiated for model ${t.id}, model ready: ${Gr(t)} - ${Date.now()} `
4123
4121
  ), await fe(t), g.debug(
4124
4122
  `reload model complete for model ${t.id}, model ready: ${Gr(t)} - ${Date.now()} `
4125
4123
  );
4126
- }, Bb = async (t) => {
4127
- if (await T.getInstance().whenReady(), !t)
4124
+ }, xb = async (t) => {
4125
+ if (await I.getInstance().whenReady(), !t)
4128
4126
  throw new Error("Model ID is required");
4129
- const e = T.getInstance().modelManager.getModelById(t);
4127
+ const e = I.getInstance().modelManager.getModelById(t);
4130
4128
  return e == null ? void 0 : e.modelTypeName;
4131
4129
  }, vu = async (t) => {
4132
- if (await T.getInstance().whenReady(), !t)
4130
+ if (await I.getInstance().whenReady(), !t)
4133
4131
  throw new Error("Model ID is required");
4134
- const e = T.getInstance().modelManager.getModelById(t);
4132
+ const e = I.getInstance().modelManager.getModelById(t);
4135
4133
  return { model: e == null ? void 0 : e.modelData, type: e == null ? void 0 : e.modelTypeName };
4136
4134
  }, Se = (t) => {
4137
4135
  if (!t)
4138
4136
  throw new Error("Model ID is required");
4139
- const e = T.getInstance().modelManager.getModelById(t);
4137
+ const e = I.getInstance().modelManager.getModelById(t);
4140
4138
  return { model: e == null ? void 0 : e.modelData, type: e == null ? void 0 : e.modelTypeName };
4141
4139
  }, Mu = (t, e) => {
4142
4140
  if (!t)
4143
4141
  throw new Error("Model type is required");
4144
- return T.getInstance().modelManager.getModelsByType(t).filter(
4142
+ return I.getInstance().modelManager.getModelsByType(t).filter(
4145
4143
  (o) => Object.keys(e).every((n) => o[n] === e[n])
4146
4144
  );
4147
- }, Hb = (t, e) => Mu(t, e)[0], Kb = (t, e) => {
4145
+ }, Ab = (t, e) => Mu(t, e)[0], Lb = (t, e) => {
4148
4146
  if (!t.id)
4149
4147
  throw new Error("Model ID is required");
4150
- const s = T.getInstance().modelManager.getModelById(t.id);
4148
+ const s = I.getInstance().modelManager.getModelById(t.id);
4151
4149
  if (!s)
4152
4150
  throw new Error("Model not found");
4153
4151
  const r = s.companionModels.get(e);
@@ -4155,21 +4153,21 @@ const bu = (t) => {
4155
4153
  }, _u = (t) => {
4156
4154
  if (!t.id)
4157
4155
  throw new Error("Model ID is required");
4158
- const e = T.getInstance().modelManager.getModelById(t.id);
4156
+ const e = I.getInstance().modelManager.getModelById(t.id);
4159
4157
  if (!e)
4160
4158
  throw new Error("Model not found");
4161
4159
  return Array.from(e.companionModels.all()).map(
4162
4160
  (r) => r.modelData
4163
4161
  );
4164
- }, zb = (t) => {
4162
+ }, kb = (t) => {
4165
4163
  if (!t)
4166
4164
  throw new Error("Model ID is required");
4167
- const e = T.getInstance().modelManager.getModelById(t);
4165
+ const e = I.getInstance().modelManager.getModelById(t);
4168
4166
  if (!e)
4169
4167
  throw new Error("Model not found");
4170
4168
  return e.companionModels.data;
4171
4169
  }, on = (t, e) => {
4172
- const s = T.getInstance().modelManager.getModelById(t);
4170
+ const s = I.getInstance().modelManager.getModelById(t);
4173
4171
  if (!s) {
4174
4172
  g.info(`Model not found for id ${t}`);
4175
4173
  return;
@@ -4178,12 +4176,12 @@ const bu = (t) => {
4178
4176
  (o) => e(o.modelData)
4179
4177
  );
4180
4178
  }, be = (t) => (e) => Object.getPrototypeOf(e).modelTypeId === t, Gr = (t) => {
4181
- const e = T.getInstance().modelManager.getModelById(t.id);
4179
+ const e = I.getInstance().modelManager.getModelById(t.id);
4182
4180
  if (!e)
4183
4181
  throw new Error("Model not found");
4184
4182
  return e.isReady();
4185
4183
  }, Eu = g.createLogger({ name: "kos-model-factory" }), Ds = {
4186
- byModelType: (t) => T.getInstance().modelManager.getModelFactory(
4184
+ byModelType: (t) => I.getInstance().modelManager.getModelFactory(
4187
4185
  t
4188
4186
  ),
4189
4187
  getModelInstance: (t, e, s) => {
@@ -4239,10 +4237,10 @@ const nn = window.KosRegistry.coreModels, Pr = window.KosRegistry.preloadModels,
4239
4237
  const r = xr(e) ? e.registration() : e;
4240
4238
  return ds.set(r.type, r), xr(e) && e.relatedModels.forEach(
4241
4239
  (o) => ds.set(o.type, o.registration())
4242
- ), T.getInstance().isReady && (T.getInstance().modelManager.registry.models[r.type] || (console.info(
4240
+ ), I.getInstance().isReady && (I.getInstance().modelManager.registry.models[r.type] || (console.info(
4243
4241
  `Model with type ${r.type} doesn't exist. Adding new registration`
4244
- ), T.getInstance().modelManager.registry.models[r.type] = r.registration[r.type], xr(e) && e.relatedModels.forEach(
4245
- (o) => T.getInstance().modelManager.registry.models[o.type] = o.registration().registration
4242
+ ), I.getInstance().modelManager.registry.models[r.type] = r.registration[r.type], xr(e) && e.relatedModels.forEach(
4243
+ (o) => I.getInstance().modelManager.registry.models[o.type] = o.registration().registration
4246
4244
  ))), s && C.model.preloadModel(t)(r.type), {
4247
4245
  preload: C.model.preloadModel(t),
4248
4246
  model: C.model.register(t),
@@ -4269,7 +4267,7 @@ const nn = window.KosRegistry.coreModels, Pr = window.KosRegistry.preloadModels,
4269
4267
  },
4270
4268
  getAll: () => Array.from(Rr.entries())
4271
4269
  }
4272
- }, Tu = C.model.registerLegacyModel, Iu = C.model.register, Gb = C.companion.register, Vb = C.model.preloadModel, $i = (t) => typeof t.updateModel == "function", xr = (t) => t.registration !== void 0 && typeof t.registration == "function";
4270
+ }, Iu = C.model.registerLegacyModel, Tu = C.model.register, Fb = C.companion.register, Nb = C.model.preloadModel, $i = (t) => typeof t.updateModel == "function", xr = (t) => t.registration !== void 0 && typeof t.registration == "function";
4273
4271
  class Oi {
4274
4272
  constructor(e) {
4275
4273
  l(this, "singleton");
@@ -4291,7 +4289,7 @@ class Oi {
4291
4289
  C.model.register({})(this.registration()), this.registerRelatedModels();
4292
4290
  }
4293
4291
  }
4294
- class Te extends Oi {
4292
+ class Ie extends Oi {
4295
4293
  constructor(e) {
4296
4294
  super({
4297
4295
  ...e,
@@ -4461,7 +4459,7 @@ const q = g.createLogger({ name: "kos-core" }), $u = () => {
4461
4459
  } };
4462
4460
  }, an = (t) => typeof t.reload == "function", Pu = (t) => typeof t.unload == "function";
4463
4461
  var Ru = /* @__PURE__ */ ((t) => (t.LOGGED_IN = "logged_in", t.LOGGED_OUT = "logged_out", t))(Ru || {});
4464
- class T {
4462
+ class I {
4465
4463
  constructor(e) {
4466
4464
  l(this, "fsmService");
4467
4465
  l(this, "status");
@@ -4600,19 +4598,19 @@ class T {
4600
4598
  var h, f;
4601
4599
  const u = (f = (h = e.extensions) == null ? void 0 : h.dataMapper) == null ? void 0 : f[d];
4602
4600
  u && (Array.isArray(u) ? u.forEach((p) => {
4603
- I.dataMapper.registerDataMapper(d, p);
4604
- }) : I.dataMapper.registerDataMapper(d, u));
4601
+ T.dataMapper.registerDataMapper(d, p);
4602
+ }) : T.dataMapper.registerDataMapper(d, u));
4605
4603
  }), (a = e.extensions) != null && a.propertyMapper && Object.keys(e.extensions.propertyMapper).forEach((d) => {
4606
4604
  var h, f;
4607
4605
  const u = (f = (h = e.extensions) == null ? void 0 : h.propertyMapper) == null ? void 0 : f[d];
4608
- u && I.propertyMapper.registerPropertyMapper(
4606
+ u && T.propertyMapper.registerPropertyMapper(
4609
4607
  d,
4610
4608
  u
4611
4609
  );
4612
4610
  }), (c = e.extensions) != null && c.contextLoader && Object.keys(e.extensions.contextLoader).forEach((d) => {
4613
4611
  var h, f;
4614
4612
  const u = (f = (h = e.extensions) == null ? void 0 : h.contextLoader) == null ? void 0 : f[d];
4615
- u && I.loader.registerLoader(d, u);
4613
+ u && T.loader.registerLoader(d, u);
4616
4614
  }), C.model.getAll().forEach(([, d]) => {
4617
4615
  e.models = { ...e.models, ...d.registration };
4618
4616
  }), e.models = {
@@ -4632,7 +4630,7 @@ class T {
4632
4630
  return this._instance = window.KosCore, (!this._instance || e != null && e.reset) && (window.KosCore = new this(e == null ? void 0 : e.connectionAlias), this._instance = window.KosCore), this._instance;
4633
4631
  }
4634
4632
  }
4635
- l(T, "_instance");
4633
+ l(I, "_instance");
4636
4634
  function Vr(t) {
4637
4635
  const e = new Uint8Array(t);
4638
4636
  let s = "";
@@ -4650,7 +4648,7 @@ async function Au(t) {
4650
4648
  return await t.arrayBuffer();
4651
4649
  }
4652
4650
  function Lu(t, e) {
4653
- return new Blob([t], { type: e || "application/octet-stream" });
4651
+ return new Blob([t], { type: e });
4654
4652
  }
4655
4653
  async function ku(t) {
4656
4654
  const e = {}, s = [], r = [];
@@ -4717,7 +4715,7 @@ const us = g.createLogger({ name: "kos-fetch" }), Uu = process.env.KOS_WS_TIMEOU
4717
4715
  t(!0);
4718
4716
  }, 0);
4719
4717
  }), Bu = (t) => t != null && t.studio ? jd : t != null && t.fos ? Bd : Hd, Hu = async (t, e) => {
4720
- const s = T.getInstance().transport;
4718
+ const s = I.getInstance().transport;
4721
4719
  await s.whenReady();
4722
4720
  const r = Jt(), o = new URL(t), n = `${o.pathname}${o.search}`;
4723
4721
  us.debug(`path: ${n}`);
@@ -4899,16 +4897,16 @@ const us = g.createLogger({ name: "kos-fetch" }), Uu = process.env.KOS_WS_TIMEOU
4899
4897
  b == null || b.send(u);
4900
4898
  });
4901
4899
  };
4902
- let de = "kos:", Ie = Hu;
4900
+ let de = "kos:", Te = Hu;
4903
4901
  if (process.env.KOS_MOCK_FETCH === "true") {
4904
4902
  const t = process.env.KOS_PORT || "9999";
4905
- Ie = fetch, de = `http://localhost:${t}`;
4903
+ Te = fetch, de = `http://localhost:${t}`;
4906
4904
  }
4907
4905
  const Ku = g.createLogger({
4908
4906
  name: "kos-model-visitor",
4909
4907
  group: "kos-ui-core"
4910
4908
  });
4911
- class Yb {
4909
+ class Ub {
4912
4910
  /**
4913
4911
  * Initializes a new instance of the KosModelVisitor class.
4914
4912
  */
@@ -4929,7 +4927,7 @@ class Yb {
4929
4927
  var r;
4930
4928
  if (e.id === void 0)
4931
4929
  throw new Error("rootModel must have an id");
4932
- const s = T.getInstance().modelManager.getModelById(
4930
+ const s = I.getInstance().modelManager.getModelById(
4933
4931
  e.id
4934
4932
  );
4935
4933
  if (!s)
@@ -4967,7 +4965,7 @@ async function hs(t, e, s, r, o) {
4967
4965
  ...s
4968
4966
  };
4969
4967
  o && (c.body = JSON.stringify(o));
4970
- const d = await Ie(a, c);
4968
+ const d = await Te(a, c);
4971
4969
  return d.status < 200 || d.status >= 400 ? [`${d.statusText || Vu}`, null] : [null, (await d.json()).data];
4972
4970
  }
4973
4971
  function Si() {
@@ -4999,26 +4997,26 @@ class Yu {
4999
4997
  await this.middlewares[s](e, r);
5000
4998
  }
5001
4999
  }
5002
- const qb = async (t, e) => {
5000
+ const jb = async (t, e) => {
5003
5001
  const s = new Yu();
5004
5002
  e.forEach((o) => s.use(o));
5005
5003
  const r = { data: t, result: {} };
5006
5004
  return await s.execute(r), r.result;
5007
5005
  }, es = (t) => ({
5008
5006
  type: t,
5009
- build: (e, s) => T.getInstance().modelManager.createModelInstance(
5007
+ build: (e, s) => I.getInstance().modelManager.createModelInstance(
5010
5008
  t,
5011
5009
  e,
5012
5010
  s
5013
5011
  ).data,
5014
5012
  buildAsync: async (e, s) => {
5015
- const r = T.getInstance().modelManager.createModelInstance(t, e, s);
5013
+ const r = I.getInstance().modelManager.createModelInstance(t, e, s);
5016
5014
  return await r.model.whenInitialized(), r.data;
5017
5015
  }
5018
- }), Wb = (t) => {
5019
- T.getInstance().modelManager.registerModel(t);
5020
- }, Zb = (t, e) => {
5021
- T.getInstance().modelManager.registerCompanionModel(
5016
+ }), Bb = (t) => {
5017
+ I.getInstance().modelManager.registerModel(t);
5018
+ }, Hb = (t, e) => {
5019
+ I.getInstance().modelManager.registerCompanionModel(
5022
5020
  t,
5023
5021
  e
5024
5022
  );
@@ -5085,14 +5083,14 @@ function Wu(t, e) {
5085
5083
  const ze = (t) => {
5086
5084
  const e = Wu(Di, t);
5087
5085
  return new e(t);
5088
- }, cn = "/kos/ui/internal/heartbeat/", Qb = ({
5086
+ }, cn = "/kos/ui/internal/heartbeat/", Kb = ({
5089
5087
  relationshipId: t,
5090
5088
  destinationAddress: e,
5091
5089
  onAbort: s,
5092
5090
  waitTime: r,
5093
5091
  beatTime: o
5094
5092
  }) => {
5095
- const n = T.getInstance().transport, i = new AbortController();
5093
+ const n = I.getInstance().transport, i = new AbortController();
5096
5094
  let a = performance.now();
5097
5095
  const c = n.subscribeTopic({
5098
5096
  topic: `${cn}${t}`,
@@ -5121,7 +5119,7 @@ const ze = (t) => {
5121
5119
  baseDelayMs: 100,
5122
5120
  backoffFactor: 1.5
5123
5121
  };
5124
- async function Jb(t, e) {
5122
+ async function zb(t, e) {
5125
5123
  let s = 1;
5126
5124
  const r = { ...Qu, ...e }, { maxAttempts: o, baseDelayMs: n, backoffFactor: i } = r;
5127
5125
  let a = n;
@@ -5390,7 +5388,7 @@ const ln = (t, e, s) => async ({
5390
5388
  modifyModelPath: i,
5391
5389
  mock: a = !1
5392
5390
  }) => {
5393
- const c = a ? fetch : Ie;
5391
+ const c = a ? fetch : Te;
5394
5392
  return {
5395
5393
  /**
5396
5394
  * Retrieves a list of entities managed by the KOS Server.
@@ -5468,7 +5466,7 @@ const ln = (t, e, s) => async ({
5468
5466
  postModel: ln(t, n || e, c)
5469
5467
  };
5470
5468
  }
5471
- }, rh = Jt(), oh = () => `kos-${rh}`, Xb = (t) => !!t && !t.includes("VM_SERVICE") && t.startsWith(oh()), Ci = async (t, e = 6e4) => new Promise((s, r) => {
5469
+ }, rh = Jt(), oh = () => `kos-${rh}`, Gb = (t) => !!t && !t.includes("VM_SERVICE") && t.startsWith(oh()), Ci = async (t, e = 6e4) => new Promise((s, r) => {
5472
5470
  const { unsubscribe: o } = $(t, (i) => {
5473
5471
  S.debug(`recieved response for refId ${t}: ${i}`), o(), clearTimeout(n);
5474
5472
  try {
@@ -5481,7 +5479,7 @@ const ln = (t, e, s) => async ({
5481
5479
  }), n = setTimeout(() => {
5482
5480
  o(), r(Error(`Request with ID ${t} timed out. Cancelling.`));
5483
5481
  }, e);
5484
- }), ew = async (t, e, s) => {
5482
+ }), Vb = async (t, e, s) => {
5485
5483
  const r = Ci(s), o = await Promise.allSettled([t(e), r]);
5486
5484
  if (o[0].status === "fulfilled") {
5487
5485
  if (o[1].status === "rejected")
@@ -5493,7 +5491,7 @@ const ln = (t, e, s) => async ({
5493
5491
  }
5494
5492
  } else
5495
5493
  throw Error(o[0].reason);
5496
- }, tw = async ({
5494
+ }, Yb = async ({
5497
5495
  topic: t,
5498
5496
  msg: e,
5499
5497
  requestId: s
@@ -5581,7 +5579,7 @@ const G = {
5581
5579
  rootContext: () => he.get("root")
5582
5580
  };
5583
5581
  G.createContext("root");
5584
- const sw = (t) => G.getContext(t.id);
5582
+ const qb = (t) => G.getContext(t.id);
5585
5583
  function ih(t, e) {
5586
5584
  return t.length !== e.length ? !1 : t.every((s) => e.includes(s));
5587
5585
  }
@@ -5667,7 +5665,7 @@ class Re {
5667
5665
  l(this, "_parentId");
5668
5666
  l(this, "idx");
5669
5667
  this._data = ee.map(/* @__PURE__ */ new Map()), this._sortKey = e == null ? void 0 : e.sortKey, this._revision = 1;
5670
- const s = e != null && e.extensionId ? I.indexExtension.loadIndexExtensions(
5668
+ const s = e != null && e.extensionId ? T.indexExtension.loadIndexExtensions(
5671
5669
  e.extensionId
5672
5670
  ) : {}, r = (e == null ? void 0 : e.indexMap) || {};
5673
5671
  this._optionsMap = { ...r, ...s };
@@ -5929,7 +5927,7 @@ class Ri {
5929
5927
  };
5930
5928
  }
5931
5929
  }
5932
- class rw {
5930
+ class Wb {
5933
5931
  constructor({ type: e, model: s, childRegistration: r }) {
5934
5932
  l(this, "type");
5935
5933
  l(this, "childRegistration");
@@ -5953,7 +5951,7 @@ class rw {
5953
5951
  return be(this.type);
5954
5952
  }
5955
5953
  }
5956
- class ow {
5954
+ class Zb {
5957
5955
  constructor({ type: e, model: s, childRegistration: r }) {
5958
5956
  l(this, "type");
5959
5957
  l(this, "model");
@@ -6115,11 +6113,11 @@ class lh {
6115
6113
  }, {}) : {};
6116
6114
  }
6117
6115
  }
6118
- const xi = g.createLogger({ name: "intent-service" }), nw = (t) => {
6116
+ const xi = g.createLogger({ name: "intent-service" }), Qb = (t) => {
6119
6117
  fo(`/kos/intent/${t.type}`) ? B(`/kos/intent/${t.type}`, t.options, {
6120
6118
  "kos.intent.type": t.type
6121
6119
  }) : xi.info(`No subscribers for intent ${t.type}. Intent not sent.`);
6122
- }, iw = async (t) => new Promise((e) => {
6120
+ }, Jb = async (t) => new Promise((e) => {
6123
6121
  const { type: s, options: r } = t;
6124
6122
  if (fo(`/kos/intent/${t.type}`)) {
6125
6123
  const o = Jt(), { unsubscribe: n } = $(
@@ -6182,13 +6180,13 @@ async function dh(t, e = {}) {
6182
6180
  return !1;
6183
6181
  }
6184
6182
  }
6185
- async function aw(t, e = {}) {
6183
+ async function Xb(t, e = {}) {
6186
6184
  return dh([t], e);
6187
6185
  }
6188
- async function cw(t, e = !1) {
6186
+ async function ew(t, e = !1) {
6189
6187
  const s = {};
6190
6188
  try {
6191
- const r = await Ie("kos:///api/kos/apps/started");
6189
+ const r = await Te("kos:///api/kos/apps/started");
6192
6190
  if (!r.ok)
6193
6191
  return t.forEach((i) => s[i] = !1), s;
6194
6192
  const o = await r.json(), n = (o == null ? void 0 : o.data) ?? [];
@@ -6201,9 +6199,9 @@ async function cw(t, e = !1) {
6201
6199
  }
6202
6200
  return s;
6203
6201
  }
6204
- async function lw() {
6202
+ async function tw() {
6205
6203
  try {
6206
- const t = await Ie("kos:///api/kos/apps/started");
6204
+ const t = await Te("kos:///api/kos/apps/started");
6207
6205
  if (!t.ok)
6208
6206
  return [];
6209
6207
  const e = await t.json();
@@ -6212,7 +6210,7 @@ async function lw() {
6212
6210
  return Oe.error("Failed to fetch started apps:", t), [];
6213
6211
  }
6214
6212
  }
6215
- const un = Yt, Ai = Nn, re = V, Y = Wt, uh = qt, Li = ee, ki = "Not Assigned", dw = "kos.trouble.added", uw = "kos.trouble.removed";
6213
+ const un = Yt, Ai = Nn, re = V, Y = Wt, uh = qt, Li = ee, ki = "Not Assigned", sw = "kos.trouble.added", rw = "kos.trouble.removed";
6216
6214
  var Me = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t))(Me || {}), Cs = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))(Cs || {});
6217
6215
  const Fi = g.createLogger({
6218
6216
  name: "config-bean-service",
@@ -6263,7 +6261,7 @@ const bh = (t, e) => {
6263
6261
  typeof o == "string" && Ni(o) && (o = o.toLowerCase() == "true", n = (n == null ? void 0 : n.toLowerCase()) == "true"), typeof o == "string" && Mo(o) && (o = Number(o), n = Number(n)), e.props[r] = o, e.prevProps[r] = n;
6264
6262
  });
6265
6263
  });
6266
- }, vh = (t) => Object.fromEntries(t.props.entries), hw = (t) => (e) => (s) => t.build(e, s);
6264
+ }, vh = (t) => Object.fromEntries(t.props.entries), ow = (t) => (e) => (s) => t.build(e, s);
6267
6265
  var Mh = Object.defineProperty, _h = Object.getOwnPropertyDescriptor, ji = (t, e, s, r) => {
6268
6266
  for (var o = r > 1 ? void 0 : r ? _h(e, s) : e, n = t.length - 1, i; n >= 0; n--)
6269
6267
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
@@ -6274,7 +6272,7 @@ function Eh(t, e) {
6274
6272
  if (new RegExp(`^${s}$`).test(e))
6275
6273
  return s;
6276
6274
  }
6277
- const _o = "config-bean-model", fs = g.getLogger(_o), Th = yt("path");
6275
+ const _o = "config-bean-model", fs = g.getLogger(_o), Ih = yt("path");
6278
6276
  let ks = class {
6279
6277
  /**
6280
6278
  * @category Constructor
@@ -6364,14 +6362,14 @@ let ks = class {
6364
6362
  };
6365
6363
  ji([
6366
6364
  k({
6367
- topic: `/kos/config/${Th}`,
6365
+ topic: `/kos/config/${Ih}`,
6368
6366
  websocket: !0
6369
6367
  })
6370
6368
  ], ks.prototype, "handleConfigBeanUpdated", 1);
6371
6369
  ks = ji([
6372
6370
  P(_o)
6373
6371
  ], ks);
6374
- const Fs = new Te({
6372
+ const Fs = new Ie({
6375
6373
  class: ks,
6376
6374
  type: _o
6377
6375
  }), Eo = ({ path: t, lazy: e, serviceBasePath: s }) => (r, o) => {
@@ -6385,11 +6383,11 @@ const Fs = new Te({
6385
6383
  lifecycle: H.INIT,
6386
6384
  lazy: e
6387
6385
  };
6388
- }, { URL: Bi } = ue(), { getOne: Ih, getAll: $h } = ae.build({
6386
+ }, { URL: Bi } = ue(), { getOne: Th, getAll: $h } = ae.build({
6389
6387
  basePath: `${Bi}/api/kos/regions/info`
6390
- }), Hi = async () => await Ih({}), Ki = async () => await $h({
6388
+ }), Hi = async () => await Th({}), Ki = async () => await $h({
6391
6389
  urlOverride: `${Bi}/api/kos/regions`
6392
- }), fw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6390
+ }), nw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6393
6391
  __proto__: null,
6394
6392
  getRegionInfo: Hi,
6395
6393
  getRegions: Ki
@@ -6486,7 +6484,7 @@ function Dh(t, e) {
6486
6484
  };
6487
6485
  }), t;
6488
6486
  }
6489
- var Ch = Object.defineProperty, Ph = Object.getOwnPropertyDescriptor, To = (t, e, s, r) => {
6487
+ var Ch = Object.defineProperty, Ph = Object.getOwnPropertyDescriptor, Io = (t, e, s, r) => {
6490
6488
  for (var o = r > 1 ? void 0 : r ? Ph(e, s) : e, n = t.length - 1, i; n >= 0; n--)
6491
6489
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
6492
6490
  return r && o && Ch(e, s, o), o;
@@ -6783,13 +6781,13 @@ let Nt = class {
6783
6781
  await ((e = (t = this.regionSource).ready) == null ? void 0 : e.call(t));
6784
6782
  }
6785
6783
  };
6786
- To([
6784
+ Io([
6787
6785
  Eo({ path: "kos:service:region:settings" })
6788
6786
  ], Nt.prototype, "regionSource", 2);
6789
- To([
6787
+ Io([
6790
6788
  Eo({ path: "kos:service:region" })
6791
6789
  ], Nt.prototype, "region", 2);
6792
- Nt = To([
6790
+ Nt = Io([
6793
6791
  P(Ps)
6794
6792
  ], Nt);
6795
6793
  const ne = {
@@ -6837,7 +6835,7 @@ function hn(t, e, s) {
6837
6835
  return e;
6838
6836
  }
6839
6837
  }
6840
- const gw = (t, e, s, r) => {
6838
+ const iw = (t, e, s, r) => {
6841
6839
  const o = Gi(t, e, s), n = Ns({ source: e }), { model: i } = Se(
6842
6840
  ne.type
6843
6841
  );
@@ -6948,7 +6946,7 @@ const Je = (t, e) => (s) => !t || !e ? s : Mo(s) ? Gi(Number(s), t, e) : s, Rh =
6948
6946
  ...t.options.unitSystems[e]
6949
6947
  } : t.options;
6950
6948
  };
6951
- var Ah = Object.defineProperty, Lh = Object.getOwnPropertyDescriptor, Io = (t, e, s, r) => {
6949
+ var Ah = Object.defineProperty, Lh = Object.getOwnPropertyDescriptor, To = (t, e, s, r) => {
6952
6950
  for (var o = r > 1 ? void 0 : r ? Lh(e, s) : e, n = t.length - 1, i; n >= 0; n--)
6953
6951
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
6954
6952
  return r && o && Ah(e, s, o), o;
@@ -7244,13 +7242,13 @@ let Ut = class {
7244
7242
  await this.bean.updateProperty(this.attribute, r);
7245
7243
  }
7246
7244
  };
7247
- Io([
7245
+ To([
7248
7246
  Xt({ modelType: ne.type })
7249
7247
  ], Ut.prototype, "regionInfo", 2);
7250
- Io([
7248
+ To([
7251
7249
  Eo({ path: Uh, serviceBasePath: jh })
7252
7250
  ], Ut.prototype, "bean", 2);
7253
- Ut = Io([
7251
+ Ut = To([
7254
7252
  P(Rs)
7255
7253
  ], Ut);
7256
7254
  const wt = {
@@ -7265,7 +7263,7 @@ const wt = {
7265
7263
  Rs
7266
7264
  )
7267
7265
  };
7268
- function pw(t) {
7266
+ function aw(t) {
7269
7267
  const {
7270
7268
  path: e,
7271
7269
  attribute: s,
@@ -7292,7 +7290,7 @@ function pw(t) {
7292
7290
  };
7293
7291
  };
7294
7292
  }
7295
- class mw {
7293
+ class cw {
7296
7294
  constructor(e, s) {
7297
7295
  l(this, "futures");
7298
7296
  l(this, "defaultContext");
@@ -7384,13 +7382,13 @@ const { getAll: Kh, modifyModel: zh, addModel: Gh, deleteModel: Vh, postModel: Y
7384
7382
  destinationAddress: "",
7385
7383
  basePath: `${ss}/api/future`,
7386
7384
  mock: Hh
7387
- }), yw = async () => await Kh({}), qh = async (t, e = "/api/kos/future") => (gr.info(`sending delete request for Future: ${t}`), await Vh({
7385
+ }), lw = async () => await Kh({}), qh = async (t, e = "/api/kos/future") => (gr.info(`sending delete request for Future: ${t}`), await Vh({
7388
7386
  id: t,
7389
7387
  urlOverride: `${ss}${e}/${t}`
7390
7388
  })), Wh = async (t, e = "/api/kos/future") => (gr.info("sending add request for Future"), await Gh({
7391
7389
  model: t,
7392
7390
  urlOverride: `${ss}${e}`
7393
- })), bw = async (t, e, s = "/api/kos/future") => (gr.info(`sending modify request for Future: ${t}`), zh({
7391
+ })), dw = async (t, e, s = "/api/kos/future") => (gr.info(`sending modify request for Future: ${t}`), zh({
7394
7392
  model: e,
7395
7393
  id: t,
7396
7394
  urlOverride: `${ss}${s}/${t}`
@@ -7819,7 +7817,7 @@ const hf = jt, { URL: rs } = ue(), { getOne: ff, postModel: gf, deleteModel: ea
7819
7817
  urlOverride: `${rs}/api/keyVal/${t}}`,
7820
7818
  id: ""
7821
7819
  });
7822
- }, ww = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7820
+ }, uw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7823
7821
  __proto__: null,
7824
7822
  deleteKeyValue: ta,
7825
7823
  deleteKeyValueNamespace: pf,
@@ -7868,7 +7866,7 @@ So([
7868
7866
  Bt = So([
7869
7867
  P(oa)
7870
7868
  ], Bt);
7871
- const na = new Te({
7869
+ const na = new Ie({
7872
7870
  class: Bt,
7873
7871
  type: oa
7874
7872
  }), xe = Si(), bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -7877,7 +7875,7 @@ const na = new Te({
7877
7875
  }, Symbol.toStringTag, { value: "Module" })), wf = g.createLogger({
7878
7876
  name: "kos-log-manager-service",
7879
7877
  group: "Services"
7880
- }), vf = "/api/kos/logs/overrides", ia = async () => (wf.debug("sending GET for kos-log-manager"), await xe.get(vf)), vw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7878
+ }), vf = "/api/kos/logs/overrides", ia = async () => (wf.debug("sending GET for kos-log-manager"), await xe.get(vf)), hw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7881
7879
  __proto__: null,
7882
7880
  getLogOverrides: ia
7883
7881
  }, Symbol.toStringTag, { value: "Module" }));
@@ -7886,7 +7884,7 @@ var Mf = Object.defineProperty, _f = Object.getOwnPropertyDescriptor, pr = (t, e
7886
7884
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
7887
7885
  return r && o && Mf(e, s, o), o;
7888
7886
  };
7889
- const aa = "kos-log-manager-model", Ef = "/kos/logs/override/add/*", Tf = "/kos/logs/override/remove/*", If = (t) => {
7887
+ const aa = "kos-log-manager-model", Ef = "/kos/logs/override/add/*", If = "/kos/logs/override/remove/*", Tf = (t) => {
7890
7888
  if (typeof t == "string")
7891
7889
  return t;
7892
7890
  if (typeof t == "number")
@@ -7925,7 +7923,7 @@ let ht = class {
7925
7923
  const t = g.getLoggers(), s = Object.entries(t).map(
7926
7924
  ([r, o]) => ({
7927
7925
  name: r,
7928
- level: If(o.getLevel())
7926
+ level: Tf(o.getLevel())
7929
7927
  })
7930
7928
  ).reduce(
7931
7929
  (r, { name: o, level: n }) => (r[o] = { name: o, level: n }, r),
@@ -8033,7 +8031,7 @@ pr([
8033
8031
  ], ht.prototype, "handleOverrideAdded", 1);
8034
8032
  pr([
8035
8033
  k({
8036
- topic: Tf,
8034
+ topic: If,
8037
8035
  websocket: !0,
8038
8036
  wildcardName: "nodeType"
8039
8037
  })
@@ -8082,7 +8080,7 @@ const ca = async (t) => {
8082
8080
  if ((t == null ? void 0 : t.status) !== 200)
8083
8081
  throw Error("Failed to set timezone");
8084
8082
  return t.data.timeZone;
8085
- }, Mw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8083
+ }, fw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8086
8084
  __proto__: null,
8087
8085
  getTimezone: ua,
8088
8086
  setDate: la,
@@ -8094,7 +8092,7 @@ var Sf = Object.defineProperty, Df = Object.getOwnPropertyDescriptor, mr = (t, e
8094
8092
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
8095
8093
  return r && o && Sf(e, s, o), o;
8096
8094
  };
8097
- const Tt = "kos-time-model", Cf = "/kos/time/time", Pf = "/kos/time/day", Rf = "/kos/time/timezone";
8095
+ const It = "kos-time-model", Cf = "/kos/time/time", Pf = "/kos/time/day", Rf = "/kos/time/timezone";
8098
8096
  let ft = class {
8099
8097
  constructor(t, e, s) {
8100
8098
  l(this, "id");
@@ -8159,18 +8157,18 @@ mr([
8159
8157
  k({ topic: Rf, websocket: !0 })
8160
8158
  ], ft.prototype, "handleTimeZoneChange", 1);
8161
8159
  ft = mr([
8162
- P(Tt)
8160
+ P(It)
8163
8161
  ], ft);
8164
8162
  const qr = {
8165
8163
  registration: {
8166
- [Tt]: {
8164
+ [It]: {
8167
8165
  class: ft,
8168
8166
  singleton: !0
8169
8167
  }
8170
8168
  },
8171
- type: Tt,
8172
- predicate: be(Tt),
8173
- factory: ie.Singleton.create(Tt)
8169
+ type: It,
8170
+ predicate: be(It),
8171
+ factory: ie.Singleton.create(It)
8174
8172
  };
8175
8173
  var xf = Object.defineProperty, Af = Object.getOwnPropertyDescriptor, ha = (t, e, s, r) => {
8176
8174
  for (var o = r > 1 ? void 0 : r ? Af(e, s) : e, n = t.length - 1, i; n >= 0; n--)
@@ -8294,7 +8292,7 @@ const Lf = g.createLogger({
8294
8292
  {
8295
8293
  destinationAddress: vt
8296
8294
  }
8297
- ), _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8295
+ ), gw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8298
8296
  __proto__: null,
8299
8297
  createOverride: Ff,
8300
8298
  getKosConnectionId: ga,
@@ -8304,10 +8302,10 @@ const Lf = g.createLogger({
8304
8302
  subscribeToLogStream: ma,
8305
8303
  unsubscribeFromLogStream: ya
8306
8304
  }, Symbol.toStringTag, { value: "Module" }));
8307
- var Nf = Object.defineProperty, Uf = Object.getOwnPropertyDescriptor, jf = (t, e, s, r) => {
8308
- for (var o = r > 1 ? void 0 : r ? Uf(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8309
- (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
8310
- return r && o && Nf(e, s, o), o;
8305
+ var Nf = Object.getOwnPropertyDescriptor, Uf = (t, e, s, r) => {
8306
+ for (var o = r > 1 ? void 0 : r ? Nf(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8307
+ (i = t[n]) && (o = i(o) || o);
8308
+ return o;
8311
8309
  };
8312
8310
  const va = "log-block-model";
8313
8311
  let Wr = class {
@@ -8352,21 +8350,21 @@ let Wr = class {
8352
8350
  this.logger.debug(`loading log-block ${this.id}`);
8353
8351
  }
8354
8352
  };
8355
- Wr = jf([
8353
+ Wr = Uf([
8356
8354
  P(va)
8357
8355
  ], Wr);
8358
- const Hs = new Te({
8356
+ const Hs = new Ie({
8359
8357
  class: Wr,
8360
8358
  type: va
8361
- }), Co = new Te({
8359
+ }), Co = new Ie({
8362
8360
  class: Bs,
8363
8361
  type: fa
8364
8362
  });
8365
8363
  Co.addRelatedModel(Hs);
8366
- var Bf = Object.defineProperty, Hf = Object.getOwnPropertyDescriptor, Ma = (t, e, s, r) => {
8367
- for (var o = r > 1 ? void 0 : r ? Hf(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8364
+ var jf = Object.defineProperty, Bf = Object.getOwnPropertyDescriptor, Ma = (t, e, s, r) => {
8365
+ for (var o = r > 1 ? void 0 : r ? Bf(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8368
8366
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
8369
- return r && o && Bf(e, s, o), o;
8367
+ return r && o && jf(e, s, o), o;
8370
8368
  };
8371
8369
  const _a = "log-stream-model";
8372
8370
  let Ks = class {
@@ -8527,16 +8525,16 @@ Ma([
8527
8525
  Ks = Ma([
8528
8526
  P(_a)
8529
8527
  ], Ks);
8530
- const xs = new Te({
8528
+ const xs = new Ie({
8531
8529
  class: Ks,
8532
8530
  type: _a
8533
8531
  });
8534
- var Kf = Object.defineProperty, zf = Object.getOwnPropertyDescriptor, We = (t, e, s, r) => {
8535
- for (var o = r > 1 ? void 0 : r ? zf(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8532
+ var Hf = Object.defineProperty, Kf = Object.getOwnPropertyDescriptor, We = (t, e, s, r) => {
8533
+ for (var o = r > 1 ? void 0 : r ? Kf(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8536
8534
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
8537
- return r && o && Kf(e, s, o), o;
8535
+ return r && o && Hf(e, s, o), o;
8538
8536
  };
8539
- const Ea = "log-stream-container-model", Gf = "/kos/logs/subscription/addBlock/*", Vf = "/kos/logs/subscription/updateBlock/*", Yf = "/kos/logs/subscription/removeBlock/*", qf = "/kos/logs/subscription/lines/*", Ta = "/kos/logs/streams/add/*";
8537
+ const Ea = "log-stream-container-model", zf = "/kos/logs/subscription/addBlock/*", Gf = "/kos/logs/subscription/updateBlock/*", Vf = "/kos/logs/subscription/removeBlock/*", Yf = "/kos/logs/subscription/lines/*", Ia = "/kos/logs/streams/add/*";
8540
8538
  let De = class {
8541
8539
  constructor(t, e, s) {
8542
8540
  l(this, "id");
@@ -8567,7 +8565,7 @@ let De = class {
8567
8565
  this.selectedStream = t;
8568
8566
  }
8569
8567
  handleStreamAdded(t) {
8570
- this.logger.debug(`Received topic: ${Ta}`);
8568
+ this.logger.debug(`Received topic: ${Ia}`);
8571
8569
  const e = t.stream, s = xs.instance(e).options({
8572
8570
  name: e,
8573
8571
  nodeId: "primary"
@@ -8626,31 +8624,31 @@ We([
8626
8624
  ], De.prototype, "_models", 2);
8627
8625
  We([
8628
8626
  k({
8629
- topic: [Ta],
8627
+ topic: [Ia],
8630
8628
  websocket: !0
8631
8629
  })
8632
8630
  ], De.prototype, "handleStreamAdded", 1);
8633
8631
  We([
8634
8632
  k({
8635
- topic: [Gf],
8633
+ topic: [zf],
8636
8634
  websocket: !0
8637
8635
  })
8638
8636
  ], De.prototype, "handleAddBlock", 1);
8639
8637
  We([
8640
8638
  k({
8641
- topic: [Yf],
8639
+ topic: [Vf],
8642
8640
  websocket: !0
8643
8641
  })
8644
8642
  ], De.prototype, "handleRemoveBlock", 1);
8645
8643
  We([
8646
8644
  k({
8647
- topic: [Vf],
8645
+ topic: [Gf],
8648
8646
  websocket: !0
8649
8647
  })
8650
8648
  ], De.prototype, "handleUpdateBlock", 1);
8651
8649
  We([
8652
8650
  k({
8653
- topic: [qf],
8651
+ topic: [Yf],
8654
8652
  websocket: !0
8655
8653
  })
8656
8654
  ], De.prototype, "handleLogLine", 1);
@@ -8664,20 +8662,20 @@ const yr = new Pe({
8664
8662
  yr.addRelatedModel(xs);
8665
8663
  yr.addRelatedModel(Co);
8666
8664
  yr.addRelatedModel(Hs);
8667
- const Wf = (t) => t.rank !== void 0, Zf = (t) => t.visibleRole !== void 0, Qf = (t) => t.color !== void 0, Jf = (t) => {
8665
+ const qf = (t) => t.rank !== void 0, Wf = (t) => t.visibleRole !== void 0, Zf = (t) => t.color !== void 0, Qf = (t) => {
8668
8666
  const e = t.info;
8669
- return Wf(e) ? e.rank : 0;
8670
- }, Xf = (t) => {
8667
+ return qf(e) ? e.rank : 0;
8668
+ }, Jf = (t) => {
8671
8669
  const e = t.info;
8672
- return Qf(e) ? e.color : "orange";
8673
- }, eg = (t) => {
8670
+ return Zf(e) ? e.color : "orange";
8671
+ }, Xf = (t) => {
8674
8672
  const e = t.info;
8675
- return Zf(e) ? e.visibleRole : "TECHNICIAN";
8676
- }, { URL: Po } = ue(), { getAll: tg, postModel: Ia } = ae.build({
8673
+ return Wf(e) ? e.visibleRole : "TECHNICIAN";
8674
+ }, { URL: Po } = ue(), { getAll: eg, postModel: Ta } = ae.build({
8677
8675
  basePath: `${Po}/api/kos/troubles`
8678
- }), $a = async () => await tg({}), Oa = async (t, e) => {
8676
+ }), $a = async () => await eg({}), Oa = async (t, e) => {
8679
8677
  try {
8680
- const s = await Ia({
8678
+ const s = await Ta({
8681
8679
  model: {},
8682
8680
  urlOverride: `${Po}/api/kos/troubles/resolve/${t}`,
8683
8681
  tracker: e
@@ -8692,9 +8690,9 @@ const Wf = (t) => t.rank !== void 0, Zf = (t) => t.visibleRole !== void 0, Qf =
8692
8690
  };
8693
8691
  return ut.initiateFuture(r), r;
8694
8692
  }
8695
- }, sg = async (t, e) => {
8693
+ }, tg = async (t, e) => {
8696
8694
  try {
8697
- const s = await Ia({
8695
+ const s = await Ta({
8698
8696
  model: t,
8699
8697
  urlOverride: `${Po}/api/kos/troubles/resolve/`,
8700
8698
  tracker: e
@@ -8709,9 +8707,9 @@ const Wf = (t) => t.rank !== void 0, Zf = (t) => t.visibleRole !== void 0, Qf =
8709
8707
  };
8710
8708
  return ut.initiateFuture(r), r;
8711
8709
  }
8712
- }, Ew = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8710
+ }, pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8713
8711
  __proto__: null,
8714
- bulkResolveTroubles: sg,
8712
+ bulkResolveTroubles: tg,
8715
8713
  getTroubles: $a,
8716
8714
  resolveTrouble: Oa
8717
8715
  }, Symbol.toStringTag, { value: "Module" })), Zr = "troubleDataMapper", ps = /* @__PURE__ */ new Map();
@@ -8747,17 +8745,17 @@ ur(br, {
8747
8745
  return Array.from(new Set(n));
8748
8746
  }
8749
8747
  });
8750
- I[br].register(
8748
+ T[br].register(
8751
8749
  "nozzle",
8752
8750
  async (t) => [t.data.nozzlePath]
8753
8751
  );
8754
- I[br].register(
8752
+ T[br].register(
8755
8753
  "path",
8756
8754
  async (t) => [t.data.path]
8757
8755
  );
8758
- const rg = async (t) => {
8756
+ const sg = async (t) => {
8759
8757
  const e = /* @__PURE__ */ new Set(), s = t.ifaces, r = s == null ? void 0 : s.map(
8760
- (n) => I[br].execute(
8758
+ (n) => T[br].execute(
8761
8759
  n,
8762
8760
  t
8763
8761
  )
@@ -8765,25 +8763,25 @@ const rg = async (t) => {
8765
8763
  return (await Promise.allSettled(r)).forEach((n) => {
8766
8764
  n.status === "fulfilled" && n.value.forEach((i) => e.add(i));
8767
8765
  }), Array.from(e);
8768
- }, og = async (t) => {
8766
+ }, rg = async (t) => {
8769
8767
  const e = t.ifaces, s = e == null ? void 0 : e.map(
8770
- (i) => I[Zr].execute(
8768
+ (i) => T[Zr].execute(
8771
8769
  i,
8772
8770
  t
8773
8771
  )
8774
- ), r = I[Zr].execute(t.type, t);
8772
+ ), r = T[Zr].execute(t.type, t);
8775
8773
  s.push(r);
8776
8774
  const n = (await Promise.allSettled(s)).reduce((i, a) => (a.status === "fulfilled" && (i = { ...i, ...a.value }), i), {});
8777
8775
  return { ...t.data, ...n };
8778
8776
  };
8779
- class ng {
8777
+ class og {
8780
8778
  constructor() {
8781
8779
  l(this, "type", "ResolvableTrouble");
8782
8780
  l(this, "title", "Resolvable Trouble");
8783
8781
  l(this, "subtitle", "Trouble");
8784
8782
  }
8785
8783
  }
8786
- class ig {
8784
+ class ng {
8787
8785
  constructor() {
8788
8786
  l(this, "type", "BlockPumpTrouble");
8789
8787
  l(this, "title", "Block Pump Trouble");
@@ -8794,20 +8792,20 @@ class et {
8794
8792
  static getHandler(e) {
8795
8793
  switch (e) {
8796
8794
  case "ResolvableTrouble":
8797
- return new ng();
8795
+ return new og();
8798
8796
  case "BlockPumpTrouble":
8799
- return new ig();
8797
+ return new ng();
8800
8798
  default:
8801
8799
  return;
8802
8800
  }
8803
8801
  }
8804
8802
  }
8805
- var ag = Object.defineProperty, cg = Object.getOwnPropertyDescriptor, Sa = (t, e, s, r) => {
8806
- for (var o = r > 1 ? void 0 : r ? cg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8803
+ var ig = Object.defineProperty, ag = Object.getOwnPropertyDescriptor, Sa = (t, e, s, r) => {
8804
+ for (var o = r > 1 ? void 0 : r ? ag(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8807
8805
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
8808
- return r && o && ag(e, s, o), o;
8806
+ return r && o && ig(e, s, o), o;
8809
8807
  };
8810
- const It = "trouble-model";
8808
+ const Tt = "trouble-model";
8811
8809
  function ys(t) {
8812
8810
  return typeof t.shouldDefer == "boolean";
8813
8811
  }
@@ -8878,7 +8876,7 @@ let zs = class {
8878
8876
  return this.futureHandler.future;
8879
8877
  }
8880
8878
  async resolveMappedData() {
8881
- return await og(this);
8879
+ return await rg(this);
8882
8880
  }
8883
8881
  get deferredCompanion() {
8884
8882
  const t = on(this.id, (e) => ys(e));
@@ -8917,53 +8915,53 @@ let zs = class {
8917
8915
  }
8918
8916
  };
8919
8917
  Sa([
8920
- Tc()
8918
+ Ic()
8921
8919
  ], zs.prototype, "resolve", 1);
8922
8920
  zs = Sa([
8923
- P(It)
8921
+ P(Tt)
8924
8922
  ], zs);
8925
8923
  const Gs = {
8926
8924
  registration: {
8927
- [It]: {
8925
+ [Tt]: {
8928
8926
  class: zs,
8929
8927
  singleton: !1
8930
8928
  }
8931
8929
  },
8932
- type: It,
8933
- predicate: be(It),
8934
- factory: ie.Factory.create(It)
8930
+ type: Tt,
8931
+ predicate: be(Tt),
8932
+ factory: ie.Factory.create(Tt)
8935
8933
  };
8936
- var lg = Object.defineProperty, dg = Object.getOwnPropertyDescriptor, wr = (t, e, s, r) => {
8937
- for (var o = r > 1 ? void 0 : r ? dg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8934
+ var cg = Object.defineProperty, lg = Object.getOwnPropertyDescriptor, wr = (t, e, s, r) => {
8935
+ for (var o = r > 1 ? void 0 : r ? lg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
8938
8936
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
8939
- return r && o && lg(e, s, o), o;
8937
+ return r && o && cg(e, s, o), o;
8940
8938
  };
8941
8939
  const pn = g.createLogger({ name: "trouble-container-model" });
8942
8940
  function mn(t) {
8943
- return I.propertyMapper.hasMapper(
8941
+ return T.propertyMapper.hasMapper(
8944
8942
  Me.TroubleRank
8945
- ) ? I.propertyMapper.executeMapper(
8943
+ ) ? T.propertyMapper.executeMapper(
8946
8944
  Me.TroubleRank,
8947
8945
  t
8948
- ) : Jf(t);
8946
+ ) : Qf(t);
8949
8947
  }
8950
8948
  function yn(t) {
8951
- return (I.propertyMapper.hasMapper(
8949
+ return (T.propertyMapper.hasMapper(
8952
8950
  Me.TroubleColor
8953
- ) ? I.propertyMapper.executeMapper(
8951
+ ) ? T.propertyMapper.executeMapper(
8954
8952
  Me.TroubleColor,
8955
8953
  t
8956
- ) : Xf(t)).toLowerCase();
8954
+ ) : Jf(t)).toLowerCase();
8957
8955
  }
8958
8956
  function bn(t) {
8959
- return (I.propertyMapper.hasMapper(
8957
+ return (T.propertyMapper.hasMapper(
8960
8958
  Me.TroubleRole
8961
- ) ? I.propertyMapper.executeMapper(
8959
+ ) ? T.propertyMapper.executeMapper(
8962
8960
  Me.TroubleRole,
8963
8961
  t
8964
- ) : eg(t)).toLowerCase();
8962
+ ) : Xf(t)).toLowerCase();
8965
8963
  }
8966
- const ug = "trouble-container-model";
8964
+ const dg = "trouble-container-model";
8967
8965
  class ge {
8968
8966
  }
8969
8967
  l(ge, "INDEX_TROUBLES_BY_IFACE", "byIface"), l(ge, "INDEX_TROUBLES_BY_TYPE", "byType"), l(ge, "INDEX_TROUBLES_BY_GROUP", "byGroup"), l(ge, "INDEX_TROUBLES_BY_DEFERRED", "byDeferred"), l(ge, "SORT_KEY_RANK", "rank"), l(ge, "TROUBLES_DEFERRED", "true");
@@ -8973,7 +8971,7 @@ let gt = class {
8973
8971
  l(this, "troubles");
8974
8972
  this.id = t, this.troubles = new Re({
8975
8973
  indexMap: {
8976
- [ge.INDEX_TROUBLES_BY_IFACE]: rg,
8974
+ [ge.INDEX_TROUBLES_BY_IFACE]: sg,
8977
8975
  [ge.INDEX_TROUBLES_BY_TYPE]: "type",
8978
8976
  [ge.INDEX_TROUBLES_BY_GROUP]: "group",
8979
8977
  [ge.INDEX_TROUBLES_BY_DEFERRED]: "deferred"
@@ -9033,7 +9031,7 @@ wr([
9033
9031
  k({ topic: "/kos/trouble/add", websocket: !0 })
9034
9032
  ], gt.prototype, "handleTroubleAdded", 1);
9035
9033
  gt = wr([
9036
- P(ug)
9034
+ P(dg)
9037
9035
  ], gt);
9038
9036
  const bs = "trouble-container-model", Ht = {
9039
9037
  registration: {
@@ -9047,24 +9045,24 @@ const bs = "trouble-container-model", Ht = {
9047
9045
  factory: ie.Singleton.create(
9048
9046
  bs
9049
9047
  )
9050
- }, { URL: Da } = ue(), { getAll: hg } = ae.build({
9048
+ }, { URL: Da } = ue(), { getAll: ug } = ae.build({
9051
9049
  basePath: `${Da}/api/kos/ota`
9052
9050
  }), wn = g.createLogger({
9053
9051
  name: "ota-service",
9054
9052
  group: "Services"
9055
- }), fg = async () => {
9053
+ }), hg = async () => {
9056
9054
  wn.debug("sending GET request to /api/kos/ota/artifacts");
9057
- const t = await hg({
9055
+ const t = await ug({
9058
9056
  urlOverride: `${Da}/api/kos/ota/artifacts`
9059
9057
  });
9060
9058
  return wn.debug("getArtifacts - response:", t), t == null ? void 0 : t.data;
9061
9059
  };
9062
- var gg = Object.defineProperty, pg = Object.getOwnPropertyDescriptor, vr = (t, e, s, r) => {
9063
- for (var o = r > 1 ? void 0 : r ? pg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9060
+ var fg = Object.defineProperty, gg = Object.getOwnPropertyDescriptor, vr = (t, e, s, r) => {
9061
+ for (var o = r > 1 ? void 0 : r ? gg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9064
9062
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9065
- return r && o && gg(e, s, o), o;
9063
+ return r && o && fg(e, s, o), o;
9066
9064
  };
9067
- const Ca = "ota-model", mg = (t) => {
9065
+ const Ca = "ota-model", pg = (t) => {
9068
9066
  let e = null;
9069
9067
  for (const s in t) {
9070
9068
  const r = t[s], o = r.lastUpdateTime;
@@ -9072,7 +9070,7 @@ const Ca = "ota-model", mg = (t) => {
9072
9070
  }
9073
9071
  return e;
9074
9072
  }, kr = (t) => {
9075
- const e = t.artifactInfo, s = mg(t.requests), r = (e == null ? void 0 : e.identifier) || (s == null ? void 0 : s.kabId);
9073
+ const e = t.artifactInfo, s = pg(t.requests), r = (e == null ? void 0 : e.identifier) || (s == null ? void 0 : s.kabId);
9076
9074
  if (!r)
9077
9075
  return;
9078
9076
  let o;
@@ -9150,7 +9148,7 @@ let pt = class {
9150
9148
  async load() {
9151
9149
  this.logger.debug(`loading ota ${this.id}`);
9152
9150
  try {
9153
- const t = await fg();
9151
+ const t = await hg();
9154
9152
  t && t.forEach((e) => {
9155
9153
  const s = kr(e);
9156
9154
  s && this.data.addModel(s);
@@ -9204,7 +9202,7 @@ const Qr = new Pe({
9204
9202
  class: pt,
9205
9203
  type: Ca
9206
9204
  });
9207
- function yg(t) {
9205
+ function mg(t) {
9208
9206
  let e;
9209
9207
  const s = async (...r) => {
9210
9208
  e && e.abort(), e = new AbortController();
@@ -9230,15 +9228,15 @@ const Fr = g.createLogger({
9230
9228
  if (!s)
9231
9229
  throw t != null && t.aborted ? (Fr.debug("Request was aborted"), new pe("Request was aborted")) : (Fr.error("Failed to fetch software-info", e), new pe("Failed to fetch software-info"));
9232
9230
  return s;
9233
- }, bg = yg(Ro), Tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9231
+ }, yg = mg(Ro), mw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9234
9232
  __proto__: null,
9235
9233
  getSoftwareInfos: Ro,
9236
- getSoftwareInfosWithCancel: bg
9234
+ getSoftwareInfosWithCancel: yg
9237
9235
  }, Symbol.toStringTag, { value: "Module" }));
9238
- var wg = Object.defineProperty, vg = Object.getOwnPropertyDescriptor, Mg = (t, e, s, r) => {
9239
- for (var o = r > 1 ? void 0 : r ? vg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9240
- (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9241
- return r && o && wg(e, s, o), o;
9236
+ var bg = Object.getOwnPropertyDescriptor, wg = (t, e, s, r) => {
9237
+ for (var o = r > 1 ? void 0 : r ? bg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9238
+ (i = t[n]) && (o = i(o) || o);
9239
+ return o;
9242
9240
  };
9243
9241
  const $t = "software-info-model";
9244
9242
  let Jr = class {
@@ -9275,7 +9273,7 @@ let Jr = class {
9275
9273
  }
9276
9274
  }
9277
9275
  };
9278
- Jr = Mg([
9276
+ Jr = wg([
9279
9277
  P($t)
9280
9278
  ], Jr);
9281
9279
  const Xr = {
@@ -9290,23 +9288,23 @@ const Xr = {
9290
9288
  factory: ie.Factory.create(
9291
9289
  $t
9292
9290
  )
9293
- }, { URL: Pa } = ue(), { getOne: _g } = ae.build({
9291
+ }, { URL: Pa } = ue(), { getOne: vg } = ae.build({
9294
9292
  basePath: `${Pa}/api/kos/state`
9295
- }), Eg = g.createLogger({
9293
+ }), Mg = g.createLogger({
9296
9294
  name: "state-bean-service",
9297
9295
  group: "Services"
9298
- }), Ra = async ({ path: t }) => (Eg.debug("sending GET for state-bean"), await _g({
9296
+ }), Ra = async ({ path: t }) => (Mg.debug("sending GET for state-bean"), await vg({
9299
9297
  urlOverride: `${Pa}/api/kos/state/${t}`
9300
- })), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9298
+ })), yw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9301
9299
  __proto__: null,
9302
9300
  getStateBeanData: Ra
9303
9301
  }, Symbol.toStringTag, { value: "Module" }));
9304
- var Tg = Object.defineProperty, Ig = Object.getOwnPropertyDescriptor, xa = (t, e, s, r) => {
9305
- for (var o = r > 1 ? void 0 : r ? Ig(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9302
+ var _g = Object.defineProperty, Eg = Object.getOwnPropertyDescriptor, xa = (t, e, s, r) => {
9303
+ for (var o = r > 1 ? void 0 : r ? Eg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9306
9304
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9307
- return r && o && Tg(e, s, o), o;
9305
+ return r && o && _g(e, s, o), o;
9308
9306
  };
9309
- const Ot = "state-bean-model", $g = yt("path");
9307
+ const Ot = "state-bean-model", Ig = yt("path");
9310
9308
  let Vs = class {
9311
9309
  constructor(t, e, s) {
9312
9310
  l(this, "id");
@@ -9341,7 +9339,7 @@ let Vs = class {
9341
9339
  };
9342
9340
  xa([
9343
9341
  k({
9344
- topic: `/kos/state/${$g}`,
9342
+ topic: `/kos/state/${Ig}`,
9345
9343
  websocket: !0
9346
9344
  })
9347
9345
  ], Vs.prototype, "handleConfigBeanUpdated", 1);
@@ -9359,10 +9357,10 @@ const Ys = {
9359
9357
  predicate: be(Ot),
9360
9358
  factory: ie.Factory.create(Ot)
9361
9359
  };
9362
- var Og = Object.defineProperty, Sg = Object.getOwnPropertyDescriptor, Aa = (t, e, s, r) => {
9363
- for (var o = r > 1 ? void 0 : r ? Sg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9360
+ var Tg = Object.defineProperty, $g = Object.getOwnPropertyDescriptor, Aa = (t, e, s, r) => {
9361
+ for (var o = r > 1 ? void 0 : r ? $g(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9364
9362
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9365
- return r && o && Og(e, s, o), o;
9363
+ return r && o && Tg(e, s, o), o;
9366
9364
  };
9367
9365
  const St = "state-prop-model", vn = yt("path");
9368
9366
  let qs = class {
@@ -9409,32 +9407,32 @@ const La = {
9409
9407
  type: St,
9410
9408
  predicate: be(St),
9411
9409
  factory: ie.Factory.create(St)
9412
- }, { URL: Dg } = ue(), { getAll: Cg } = ae.build({
9413
- basePath: `${Dg}/api/state-prop`
9414
- }), Pg = g.createLogger({
9410
+ }, { URL: Og } = ue(), { getAll: Sg } = ae.build({
9411
+ basePath: `${Og}/api/state-prop`
9412
+ }), Dg = g.createLogger({
9415
9413
  name: "state-prop-service",
9416
9414
  group: "Services"
9417
- }), Rg = async () => (Pg.debug("sending GET for state-prop"), await Cg({})), $w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9415
+ }), Cg = async () => (Dg.debug("sending GET for state-prop"), await Sg({})), bw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9418
9416
  __proto__: null,
9419
- getStateProps: Rg
9417
+ getStateProps: Cg
9420
9418
  }, Symbol.toStringTag, { value: "Module" })), { URL: xo } = ue(), { getOne: ka } = ae.build({
9421
9419
  basePath: `${xo}/api/translation`
9422
9420
  }), xt = g.createLogger({
9423
9421
  name: "translation-service",
9424
9422
  group: "Services"
9425
- }), xg = () => {
9423
+ }), Pg = () => {
9426
9424
  const t = window.location.origin, e = ye();
9427
9425
  return (e == null ? void 0 : e.host) || t;
9428
- }, Ag = async (t, e) => {
9426
+ }, Rg = async (t, e) => {
9429
9427
  xt.debug("sending GET for translation");
9430
- const s = e ?? xg();
9428
+ const s = e ?? Pg();
9431
9429
  try {
9432
9430
  const r = await fetch(`${s}${t}`);
9433
9431
  return r.status !== 200 ? (xt.warn(`Failed to fetch translations at ${t}: ${r.status}`), {}) : await r.json();
9434
9432
  } catch (r) {
9435
9433
  throw xt.error("Error fetching translations", r), r;
9436
9434
  }
9437
- }, Ow = async () => {
9435
+ }, ww = async () => {
9438
9436
  xt.debug("getting localization descriptor");
9439
9437
  const t = await ka({
9440
9438
  urlOverride: `${xo}/api/system/kos/localization`
@@ -9444,7 +9442,7 @@ const La = {
9444
9442
  `Failed to get tool localization descriptor ${t == null ? void 0 : t.status}`
9445
9443
  );
9446
9444
  return t.data;
9447
- }, Lg = (t) => async () => {
9445
+ }, xg = (t) => async () => {
9448
9446
  xt.debug("getting kos localization descriptor");
9449
9447
  const e = await ka({
9450
9448
  urlOverride: `${xo}/api/kos/localization/contexts`
@@ -9455,13 +9453,13 @@ const La = {
9455
9453
  );
9456
9454
  return e.data[t];
9457
9455
  }, Fa = "langResolver";
9458
- var kg = Object.defineProperty, Fg = Object.getOwnPropertyDescriptor, Ng = (t, e, s, r) => {
9459
- for (var o = r > 1 ? void 0 : r ? Fg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9460
- (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9461
- return r && o && kg(e, s, o), o;
9456
+ var Ag = Object.getOwnPropertyDescriptor, Lg = (t, e, s, r) => {
9457
+ for (var o = r > 1 ? void 0 : r ? Ag(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9458
+ (i = t[n]) && (o = i(o) || o);
9459
+ return o;
9462
9460
  };
9463
9461
  const Dt = "translation-model";
9464
- function Ug(t) {
9462
+ function kg(t) {
9465
9463
  const e = typeof t == "string", s = e ? !1 : !!(t != null && t.data) && typeof (t == null ? void 0 : t.data) != "string", r = e ? t : t == null ? void 0 : t.defaultValue, o = e || t == null ? void 0 : t.context, n = e ? void 0 : s ? t == null ? void 0 : t.data : t;
9466
9464
  return { isBasicOptions: e, defaultValue: r, context: o, data: n };
9467
9465
  }
@@ -9542,7 +9540,7 @@ let to = class {
9542
9540
  }
9543
9541
  try {
9544
9542
  const o = this.resolver(this.namespace, r);
9545
- return Ag(o, this.rootUrl);
9543
+ return Rg(o, this.rootUrl);
9546
9544
  } catch {
9547
9545
  return Promise.resolve({});
9548
9546
  }
@@ -9571,7 +9569,7 @@ let to = class {
9571
9569
  resolveKey(t, e) {
9572
9570
  if (!t)
9573
9571
  return this.logger.debug("key is empty"), "";
9574
- const { defaultValue: s, context: r, data: o } = Ug(e), { namespace: n, key: i } = Mn(this.namespace, t), a = `${i}_${r}`;
9572
+ const { defaultValue: s, context: r, data: o } = kg(e), { namespace: n, key: i } = Mn(this.namespace, t), a = `${i}_${r}`;
9575
9573
  if (n !== this.namespace) {
9576
9574
  const c = this.context.getModel(n);
9577
9575
  return c ? c.resolveKey(i, e) : i;
@@ -9603,7 +9601,7 @@ let to = class {
9603
9601
  );
9604
9602
  }
9605
9603
  };
9606
- to = Ng([
9604
+ to = Lg([
9607
9605
  bo(),
9608
9606
  P(Dt)
9609
9607
  ], to);
@@ -9618,18 +9616,18 @@ const so = {
9618
9616
  predicate: be(Dt),
9619
9617
  factory: ie.Factory.create(Dt)
9620
9618
  };
9621
- var jg = Object.defineProperty, Bg = Object.getOwnPropertyDescriptor, ja = (t, e, s, r) => {
9622
- for (var o = r > 1 ? void 0 : r ? Bg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9619
+ var Fg = Object.defineProperty, Ng = Object.getOwnPropertyDescriptor, ja = (t, e, s, r) => {
9620
+ for (var o = r > 1 ? void 0 : r ? Ng(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9623
9621
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9624
- return r && o && jg(e, s, o), o;
9622
+ return r && o && Fg(e, s, o), o;
9625
9623
  };
9626
- const Ct = "translation-container-model", Hg = (t, e = "/") => t.join(e).replace(new RegExp(e + "{1,}", "g"), e);
9627
- function Kg(t, e) {
9624
+ const Ct = "translation-container-model", Ug = (t, e = "/") => t.join(e).replace(new RegExp(e + "{1,}", "g"), e);
9625
+ function jg(t, e) {
9628
9626
  const s = this.descriptor.namespaces[t];
9629
9627
  if (!s)
9630
9628
  throw new Error(`namespace ${t} not found in descriptor`);
9631
9629
  const r = s.basePath, o = s.locales[e].file;
9632
- return Hg([r, o]);
9630
+ return Ug([r, o]);
9633
9631
  }
9634
9632
  let Ws = class {
9635
9633
  constructor(t, e, s) {
@@ -9643,7 +9641,7 @@ let Ws = class {
9643
9641
  l(this, "descriptorUrl");
9644
9642
  l(this, "namespaces", []);
9645
9643
  l(this, "_models");
9646
- this.id = t, this.lang = e.lang || "en", this.descriptor = e.descriptor, this._defaultNamespace = e.defaultNamespace, this.descriptorUrl = e.descriptorUrl, this.rootUrl = e.rootUrl, this.resolver = e.resolver || Kg.bind(this), s.kosContext.set(Fa, this.resolver), this.logger = s.logger, this._models = new Re({
9644
+ this.id = t, this.lang = e.lang || "en", this.descriptor = e.descriptor, this._defaultNamespace = e.defaultNamespace, this.descriptorUrl = e.descriptorUrl, this.rootUrl = e.rootUrl, this.resolver = e.resolver || jg.bind(this), s.kosContext.set(Fa, this.resolver), this.logger = s.logger, this._models = new Re({
9647
9645
  parentId: t
9648
9646
  });
9649
9647
  }
@@ -9734,7 +9732,7 @@ const ke = {
9734
9732
  type: Ct,
9735
9733
  predicate: be(Ct),
9736
9734
  factory: ie.Singleton.create(Ct)
9737
- }, Sw = {
9735
+ }, vw = {
9738
9736
  set(t, e) {
9739
9737
  const s = G.getContext(ke.type);
9740
9738
  s && s.set(t, e);
@@ -9743,27 +9741,27 @@ const ke = {
9743
9741
  const e = G.getContext(ke.type);
9744
9742
  return e == null ? void 0 : e.get(t);
9745
9743
  }
9746
- }, zg = {
9744
+ }, Bg = {
9747
9745
  async init(t) {
9748
9746
  const e = ke.factory(t);
9749
9747
  return await fe(e), { translations: e };
9750
9748
  }
9751
9749
  };
9752
- function Dw(t) {
9750
+ function Mw(t) {
9753
9751
  return t.troubles !== void 0 && t.troubles instanceof Array && t.troublesByType !== void 0 && typeof t.troublesByType == "object";
9754
9752
  }
9755
- const Cw = (t, e) => {
9753
+ const _w = (t, e) => {
9756
9754
  const s = e.type;
9757
9755
  return t[s] || (t[s] = []), t[s].push(e), t;
9758
- }, Gg = "kos-ws-event", Ba = es(
9759
- Gg
9756
+ }, Hg = "kos-ws-event", Ba = es(
9757
+ Hg
9760
9758
  );
9761
- var Vg = Object.defineProperty, Yg = Object.getOwnPropertyDescriptor, Ao = (t, e, s, r) => {
9762
- for (var o = r > 1 ? void 0 : r ? Yg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9759
+ var Kg = Object.defineProperty, zg = Object.getOwnPropertyDescriptor, Ao = (t, e, s, r) => {
9760
+ for (var o = r > 1 ? void 0 : r ? zg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9763
9761
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9764
- return r && o && Vg(e, s, o), o;
9762
+ return r && o && Kg(e, s, o), o;
9765
9763
  };
9766
- const qg = ({ headers: t, body: e }) => Object.entries(t).map(([r, o]) => `${r}:${o}`).join("\\n") + "\\n\\n" + e;
9764
+ const Gg = ({ headers: t, body: e }) => Object.entries(t).map(([r, o]) => `${r}:${o}`).join("\\n") + "\\n\\n" + e;
9767
9765
  let Kt = class {
9768
9766
  constructor(t) {
9769
9767
  l(this, "id");
@@ -9796,7 +9794,7 @@ let Kt = class {
9796
9794
  content: s,
9797
9795
  headers: r,
9798
9796
  timestamp: Date.now(),
9799
- raw: qg({ headers: r, body: s }),
9797
+ raw: Gg({ headers: r, body: s }),
9800
9798
  direction: e ? "send" : "receive",
9801
9799
  mocked: !!r.mocked
9802
9800
  };
@@ -9817,34 +9815,29 @@ Ao([
9817
9815
  Kt = Ao([
9818
9816
  P(Ba.type)
9819
9817
  ], Kt);
9820
- const _n = ye(), Wg = _n.debug === "true" || _n.debug === !0, Zg = "/api/system/canvas", Ha = async (t, e) => {
9821
- const r = `${de}${e || Zg}`;
9822
- await Ie(r, {
9818
+ const _n = ye(), Vg = _n.debug === "true" || _n.debug === !0, Yg = "/api/system/canvas", Ha = async (t, e) => {
9819
+ const r = `${de}${e || Yg}`;
9820
+ await Te(r, {
9823
9821
  method: "POST",
9824
9822
  headers: {
9825
- hide: Wg ? "false" : "true"
9823
+ hide: Vg ? "false" : "true"
9826
9824
  },
9827
9825
  body: t
9828
9826
  });
9829
- }, Pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9827
+ }, Ew = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9830
9828
  __proto__: null,
9831
9829
  sendCanvasData: Ha
9832
- }, Symbol.toStringTag, { value: "Module" })), Qg = (t, e, s) => t >> 5 << 5 | e >> 5 << 2 | s >> 6;
9830
+ }, Symbol.toStringTag, { value: "Module" }));
9833
9831
  function En(t, e, s) {
9834
- if (e === "base64") {
9835
- const r = s ? t.filter((o, n) => n % 4 !== 3) : Array.from(t);
9832
+ {
9833
+ const r = t.filter((o, n) => n % 4 !== 3);
9836
9834
  return btoa(String.fromCharCode(...r));
9837
- } else {
9838
- const r = [];
9839
- for (let o = 0; o < t.length; o += 4)
9840
- r.push(Qg(t[o], t[o + 1], t[o + 2]));
9841
- return String.fromCharCode(...r);
9842
9835
  }
9843
9836
  }
9844
- var Jg = Object.defineProperty, Xg = Object.getOwnPropertyDescriptor, Ka = (t, e, s, r) => {
9845
- for (var o = r > 1 ? void 0 : r ? Xg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9837
+ var qg = Object.defineProperty, Wg = Object.getOwnPropertyDescriptor, Ka = (t, e, s, r) => {
9838
+ for (var o = r > 1 ? void 0 : r ? Wg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
9846
9839
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
9847
- return r && o && Jg(e, s, o), o;
9840
+ return r && o && qg(e, s, o), o;
9848
9841
  };
9849
9842
  const za = "canvas-renderer-model";
9850
9843
  function Nr(t) {
@@ -9903,7 +9896,7 @@ let Zs = class {
9903
9896
  }
9904
9897
  handleFrame(t) {
9905
9898
  var s;
9906
- const e = En(t, "base64", !0);
9899
+ const e = En(t);
9907
9900
  this.sendDataFrame(e, this.apiPath), (s = this._onFrame) == null || s.call(this, e);
9908
9901
  }
9909
9902
  stopStreaming(t = !0) {
@@ -9917,7 +9910,7 @@ let Zs = class {
9917
9910
  const r = t * e * 4, o = new Uint8ClampedArray(r);
9918
9911
  for (let i = 3; i < r; i += 4)
9919
9912
  o[i] = 255;
9920
- const n = En(o, "base64", !0);
9913
+ const n = En(o);
9921
9914
  this.logger.debug(
9922
9915
  `Sending clear frame: ${t}x${e}, apiPath: ${this.apiPath}`
9923
9916
  ), this.sendDataFrame(n, this.apiPath), (s = this._onFrame) == null || s.call(this, n);
@@ -10003,7 +9996,7 @@ Ka([
10003
9996
  Zs = Ka([
10004
9997
  P(za)
10005
9998
  ], Zs);
10006
- const Ga = new Te({
9999
+ const Ga = new Ie({
10007
10000
  class: Zs,
10008
10001
  type: za
10009
10002
  });
@@ -10092,7 +10085,7 @@ class Va {
10092
10085
  return s - this.lastUpdate >= e ? (this.lastUpdate = s, !0) : !1;
10093
10086
  }
10094
10087
  }
10095
- class ep {
10088
+ class Zg {
10096
10089
  constructor() {
10097
10090
  /** The internal offscreen canvas used for rendering */
10098
10091
  l(this, "canvas");
@@ -10147,7 +10140,7 @@ class ep {
10147
10140
  return o;
10148
10141
  }
10149
10142
  }
10150
- class tp extends ep {
10143
+ class Qg extends Zg {
10151
10144
  // vertical scroll speed in pixels per update
10152
10145
  /**
10153
10146
  * Creates a new DropRenderer with the specified scroll speed.
@@ -10326,8 +10319,8 @@ function Lo(t) {
10326
10319
  }
10327
10320
  return e;
10328
10321
  }
10329
- const sp = Lo(Ze);
10330
- class rp extends sp {
10322
+ const Jg = Lo(Ze);
10323
+ class Xg extends Jg {
10331
10324
  constructor({
10332
10325
  colors: s = ["red", "yellow", "green"],
10333
10326
  direction: r = "horizontal",
@@ -10355,8 +10348,8 @@ class rp extends sp {
10355
10348
  }), this.ctx.fillStyle = i, this.ctx.fillRect(0, 0, s, r), !this.loop && !this.isOneShotDone && this.signalDoneIfNeeded();
10356
10349
  }
10357
10350
  }
10358
- const op = Lo(Ze);
10359
- class Ya extends op {
10351
+ const ep = Lo(Ze);
10352
+ class Ya extends ep {
10360
10353
  constructor({ src: s }) {
10361
10354
  super();
10362
10355
  l(this, "img");
@@ -10372,7 +10365,7 @@ class Ya extends op {
10372
10365
  !this.loaded || this.isOneShotDone || (this.canvas.width = s, this.canvas.height = r, this.ctx.drawImage(this.img, 0, 0, s, r), this.signalDoneIfNeeded());
10373
10366
  }
10374
10367
  }
10375
- class np extends Va {
10368
+ class tp extends Va {
10376
10369
  constructor(s) {
10377
10370
  super(s);
10378
10371
  l(this, "loopConfig");
@@ -10404,7 +10397,7 @@ class np extends Va {
10404
10397
  this.video.removeEventListener("ended", this.handleVideoEnd), this.video.removeEventListener("timeupdate", this.handleTimeUpdate), this.completionCallback = null, super.dispose();
10405
10398
  }
10406
10399
  }
10407
- function ip(t) {
10400
+ function sp(t) {
10408
10401
  const e = t.replace("#", "");
10409
10402
  if (!/^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(e))
10410
10403
  throw new Error(`Invalid hex color: ${t}`);
@@ -10412,13 +10405,13 @@ function ip(t) {
10412
10405
  return e.length === 3 ? (s = parseInt(e[0] + e[0], 16), r = parseInt(e[1] + e[1], 16), o = parseInt(e[2] + e[2], 16)) : (s = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), o = parseInt(e.substring(4, 6), 16)), { r: s, g: r, b: o };
10413
10406
  }
10414
10407
  function qa(t) {
10415
- return typeof t == "string" ? ip(t) : t;
10408
+ return typeof t == "string" ? sp(t) : t;
10416
10409
  }
10417
10410
  function Qs(t) {
10418
10411
  const e = qa(t);
10419
10412
  return `rgb(${e.r},${e.g},${e.b})`;
10420
10413
  }
10421
- class ap extends Ze {
10414
+ class rp extends Ze {
10422
10415
  /**
10423
10416
  * Constructs a Matrix-style renderer.
10424
10417
  *
@@ -10491,7 +10484,7 @@ class ap extends Ze {
10491
10484
  this.ctx.putImageData(o, 0, 0);
10492
10485
  }
10493
10486
  }
10494
- class cp {
10487
+ class op {
10495
10488
  constructor(e, s) {
10496
10489
  l(this, "baseRenderer");
10497
10490
  l(this, "overlayIcons", /* @__PURE__ */ new Map());
@@ -10813,7 +10806,7 @@ class Wa extends Ze {
10813
10806
  this.img.removeAttribute("src"), this.completionCallback = null, this.originalSvgData = null;
10814
10807
  }
10815
10808
  }
10816
- class lp extends Ze {
10809
+ class np extends Ze {
10817
10810
  constructor(s) {
10818
10811
  super();
10819
10812
  l(this, "text");
@@ -10996,7 +10989,7 @@ class lp extends Ze {
10996
10989
  this.completionCallback = null;
10997
10990
  }
10998
10991
  }
10999
- class dp {
10992
+ class ip {
11000
10993
  constructor(e) {
11001
10994
  l(this, "patterns");
11002
10995
  l(this, "currentPatternIndex", 0);
@@ -11085,8 +11078,8 @@ class dp {
11085
11078
  this.patternStore = e, this.patterns.length > 0 && this.loadCurrentPattern();
11086
11079
  }
11087
11080
  }
11088
- const up = Lo(Ze);
11089
- class hp extends up {
11081
+ const ap = Lo(Ze);
11082
+ class cp extends ap {
11090
11083
  constructor(s = { r: 0, g: 0, b: 0 }) {
11091
11084
  super();
11092
11085
  l(this, "color");
@@ -11103,7 +11096,7 @@ class hp extends up {
11103
11096
  this.isOneShotDone || (this.canvas.width = s, this.canvas.height = r, this.ctx.fillStyle = this.color, this.ctx.fillRect(0, 0, s, r), this.signalDoneIfNeeded());
11104
11097
  }
11105
11098
  }
11106
- class fp extends Ze {
11099
+ class lp extends Ze {
11107
11100
  /**
11108
11101
  * Constructs a sweep renderer.
11109
11102
  *
@@ -11169,56 +11162,56 @@ class fp extends Ze {
11169
11162
  this.ctx.putImageData(o, 0, 0);
11170
11163
  }
11171
11164
  }
11172
- const Tn = /* @__PURE__ */ new Map();
11165
+ const In = /* @__PURE__ */ new Map();
11173
11166
  ur(te, {
11174
11167
  register(t, e) {
11175
- Tn.set(t, e);
11168
+ In.set(t, e);
11176
11169
  },
11177
11170
  execute(t, e) {
11178
- const s = Tn.get(t);
11171
+ const s = In.get(t);
11179
11172
  return s ? new s(e) : null;
11180
11173
  }
11181
11174
  });
11182
- I.canvas.registerRenderer("video", np);
11183
- I.canvas.registerRenderer("video-basic", Va);
11184
- I[te].register(
11175
+ T.canvas.registerRenderer("video", tp);
11176
+ T.canvas.registerRenderer("video-basic", Va);
11177
+ T[te].register(
11185
11178
  "image-static",
11186
11179
  Ya
11187
11180
  );
11188
- I[te].register(
11181
+ T[te].register(
11189
11182
  "image-scrolling",
11190
11183
  Wa
11191
11184
  );
11192
- const gp = class {
11185
+ const dp = class {
11193
11186
  constructor(t) {
11194
11187
  var e;
11195
11188
  return (e = t.scroll) != null && e.enabled ? new Wa(t) : new Ya(t);
11196
11189
  }
11197
11190
  };
11198
- I[te].register(
11191
+ T[te].register(
11199
11192
  "image",
11200
- gp
11193
+ dp
11201
11194
  );
11202
- I[te].register(
11195
+ T[te].register(
11203
11196
  "color",
11204
- hp
11197
+ cp
11205
11198
  );
11206
- I[te].register("matrix", ap);
11207
- I[te].register("sweep", fp);
11208
- I[te].register(
11199
+ T[te].register("matrix", rp);
11200
+ T[te].register("sweep", lp);
11201
+ T[te].register(
11209
11202
  "gradient",
11210
- rp
11203
+ Xg
11211
11204
  );
11212
- I[te].register("drop", tp);
11213
- I[te].register(
11205
+ T[te].register("drop", Qg);
11206
+ T[te].register(
11214
11207
  "sequence",
11215
- dp
11208
+ ip
11216
11209
  );
11217
- I[te].register(
11210
+ T[te].register(
11218
11211
  "text",
11219
- lp
11212
+ np
11220
11213
  );
11221
- const pp = class {
11214
+ const up = class {
11222
11215
  constructor(t) {
11223
11216
  const e = (s, r) => {
11224
11217
  const o = Js({ mode: s, data: r });
@@ -11226,29 +11219,29 @@ const pp = class {
11226
11219
  throw new Error(`Failed to create renderer of type: ${s}`);
11227
11220
  return o;
11228
11221
  };
11229
- return new cp(t, e);
11222
+ return new op(t, e);
11230
11223
  }
11231
11224
  };
11232
- I[te].register(
11225
+ T[te].register(
11233
11226
  "overlay",
11234
- pp
11227
+ up
11235
11228
  );
11236
11229
  const Js = ({
11237
11230
  mode: t,
11238
11231
  data: e
11239
11232
  }) => {
11240
- const s = I[te].execute(t, e);
11233
+ const s = T[te].execute(t, e);
11241
11234
  if (s)
11242
11235
  return s;
11243
11236
  throw new Error(`Unknown mode: ${t}`);
11244
11237
  };
11245
- var mp = Object.defineProperty, yp = Object.getOwnPropertyDescriptor, Mt = (t, e, s, r) => {
11246
- for (var o = r > 1 ? void 0 : r ? yp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11238
+ var hp = Object.defineProperty, fp = Object.getOwnPropertyDescriptor, Mt = (t, e, s, r) => {
11239
+ for (var o = r > 1 ? void 0 : r ? fp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11247
11240
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11248
- return r && o && mp(e, s, o), o;
11241
+ return r && o && hp(e, s, o), o;
11249
11242
  };
11250
11243
  const Za = "canvas-dispatcher-model";
11251
- function bp(t) {
11244
+ function gp(t) {
11252
11245
  if (t = t.replace(/^#/, ""), t.length === 3 && (t = t.split("").map((s) => s + s).join("")), t.length !== 6)
11253
11246
  return null;
11254
11247
  const e = parseInt(t, 16);
@@ -11322,7 +11315,7 @@ let Fe = class {
11322
11315
  }
11323
11316
  async handleColorApplication(t, e) {
11324
11317
  var d, u, h;
11325
- const s = t.params.color, r = bp(s);
11318
+ const s = t.params.color, r = gp(s);
11326
11319
  if (!r) {
11327
11320
  (d = e.status) == null || d.call(e, 400).send({ error: "Invalid color format" });
11328
11321
  return;
@@ -11411,17 +11404,17 @@ const zt = new Pe({
11411
11404
  return Xs.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
11412
11405
  }
11413
11406
  return ["unknownError", void 0];
11414
- }, Rw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11407
+ }, Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11415
11408
  __proto__: null,
11416
11409
  getDeviceDetails: Xa,
11417
11410
  getSerialNumber: Ja
11418
11411
  }, Symbol.toStringTag, { value: "Module" }));
11419
- var wp = Object.defineProperty, vp = Object.getOwnPropertyDescriptor, ec = (t, e, s, r) => {
11420
- for (var o = r > 1 ? void 0 : r ? vp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11412
+ var pp = Object.defineProperty, mp = Object.getOwnPropertyDescriptor, ec = (t, e, s, r) => {
11413
+ for (var o = r > 1 ? void 0 : r ? mp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11421
11414
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11422
- return r && o && wp(e, s, o), o;
11415
+ return r && o && pp(e, s, o), o;
11423
11416
  };
11424
- const tc = "device-model", Mp = "/kos/criticalData/changed", _p = "/kos/criticalData/available";
11417
+ const tc = "device-model", yp = "/kos/criticalData/changed", bp = "/kos/criticalData/available";
11425
11418
  let er = class {
11426
11419
  constructor(t, e, s) {
11427
11420
  l(this, "id");
@@ -11493,7 +11486,7 @@ let er = class {
11493
11486
  };
11494
11487
  ec([
11495
11488
  k({
11496
- topic: [Mp, _p],
11489
+ topic: [yp, bp],
11497
11490
  websocket: !0
11498
11491
  })
11499
11492
  ], er.prototype, "handleCriticalDataChanged", 1);
@@ -11504,10 +11497,10 @@ const ro = new Pe({
11504
11497
  class: er,
11505
11498
  type: tc
11506
11499
  });
11507
- var Ep = Object.defineProperty, Tp = Object.getOwnPropertyDescriptor, Ip = (t, e, s, r) => {
11508
- for (var o = r > 1 ? void 0 : r ? Tp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11509
- (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11510
- return r && o && Ep(e, s, o), o;
11500
+ var wp = Object.getOwnPropertyDescriptor, vp = (t, e, s, r) => {
11501
+ for (var o = r > 1 ? void 0 : r ? wp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11502
+ (i = t[n]) && (o = i(o) || o);
11503
+ return o;
11511
11504
  };
11512
11505
  const sc = "network-interface-model";
11513
11506
  let oo = class {
@@ -11537,35 +11530,35 @@ let oo = class {
11537
11530
  this.logger.debug(`loading network-interface ${this.id}`);
11538
11531
  }
11539
11532
  };
11540
- oo = Ip([
11533
+ oo = vp([
11541
11534
  P(sc)
11542
11535
  ], oo);
11543
- const rc = new Te({
11536
+ const rc = new Ie({
11544
11537
  class: oo,
11545
11538
  type: sc
11546
- }), { URL: $p } = ue(), { getAll: Op } = ae.build({
11547
- basePath: `${$p}/api/kos/network/interfaces`
11548
- }), In = g.createLogger({
11539
+ }), { URL: Mp } = ue(), { getAll: _p } = ae.build({
11540
+ basePath: `${Mp}/api/kos/network/interfaces`
11541
+ }), Tn = g.createLogger({
11549
11542
  name: "network-interface-service",
11550
11543
  group: "Services"
11551
11544
  }), oc = async () => {
11552
- In.debug("sending GET for copy-logs");
11545
+ Tn.debug("sending GET for copy-logs");
11553
11546
  try {
11554
- const t = await Op({});
11547
+ const t = await _p({});
11555
11548
  return [void 0, t == null ? void 0 : t.data];
11556
11549
  } catch (t) {
11557
11550
  if (t instanceof pe)
11558
- return In.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
11551
+ return Tn.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
11559
11552
  }
11560
11553
  return ["unknownError", void 0];
11561
- }, xw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11554
+ }, Tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11562
11555
  __proto__: null,
11563
11556
  getNetworkInterfaces: oc
11564
11557
  }, Symbol.toStringTag, { value: "Module" }));
11565
- var Sp = Object.defineProperty, Dp = Object.getOwnPropertyDescriptor, nc = (t, e, s, r) => {
11566
- for (var o = r > 1 ? void 0 : r ? Dp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11558
+ var Ep = Object.defineProperty, Ip = Object.getOwnPropertyDescriptor, nc = (t, e, s, r) => {
11559
+ for (var o = r > 1 ? void 0 : r ? Ip(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11567
11560
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11568
- return r && o && Sp(e, s, o), o;
11561
+ return r && o && Ep(e, s, o), o;
11569
11562
  };
11570
11563
  const ic = "network-interface-container-model";
11571
11564
  let tr = class {
@@ -11632,23 +11625,23 @@ const sr = new Pe({
11632
11625
  type: ic
11633
11626
  });
11634
11627
  sr.addRelatedModel(rc);
11635
- const { URL: Cp } = ue(), { getAll: Pp } = ae.build({
11636
- basePath: `${Cp}/api/kos/storage/devices`
11628
+ const { URL: Tp } = ue(), { getAll: $p } = ae.build({
11629
+ basePath: `${Tp}/api/kos/storage/devices`
11637
11630
  }), $n = g.createLogger({
11638
11631
  name: "storage-device-service",
11639
11632
  group: "Services"
11640
11633
  }), ac = async () => {
11641
11634
  $n.debug("sending GET for storage-device");
11642
- const t = await Pp({});
11635
+ const t = await $p({});
11643
11636
  return !(t != null && t.data) || t.status !== 200 ? ($n.error("Failed to retrieve storage-device data", t), []) : t.data;
11644
- }, Aw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11637
+ }, $w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11645
11638
  __proto__: null,
11646
11639
  getStorageDevices: ac
11647
11640
  }, Symbol.toStringTag, { value: "Module" }));
11648
- var Rp = Object.defineProperty, xp = Object.getOwnPropertyDescriptor, Ap = (t, e, s, r) => {
11649
- for (var o = r > 1 ? void 0 : r ? xp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11650
- (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11651
- return r && o && Rp(e, s, o), o;
11641
+ var Op = Object.getOwnPropertyDescriptor, Sp = (t, e, s, r) => {
11642
+ for (var o = r > 1 ? void 0 : r ? Op(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11643
+ (i = t[n]) && (o = i(o) || o);
11644
+ return o;
11652
11645
  };
11653
11646
  const cc = "storage-device-model";
11654
11647
  let no = class {
@@ -11677,20 +11670,20 @@ let no = class {
11677
11670
  this.logger.debug(`loading storage-device ${this.id}`);
11678
11671
  }
11679
11672
  };
11680
- no = Ap([
11673
+ no = Sp([
11681
11674
  bo(),
11682
11675
  P(cc)
11683
11676
  ], no);
11684
- const io = new Te({
11677
+ const io = new Ie({
11685
11678
  class: no,
11686
11679
  type: cc
11687
11680
  });
11688
- var Lp = Object.defineProperty, kp = Object.getOwnPropertyDescriptor, Fo = (t, e, s, r) => {
11689
- for (var o = r > 1 ? void 0 : r ? kp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11681
+ var Dp = Object.defineProperty, Cp = Object.getOwnPropertyDescriptor, Fo = (t, e, s, r) => {
11682
+ for (var o = r > 1 ? void 0 : r ? Cp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11690
11683
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11691
- return r && o && Lp(e, s, o), o;
11684
+ return r && o && Dp(e, s, o), o;
11692
11685
  };
11693
- const lc = "storage-device-container-model", Fp = "/kos/storage";
11686
+ const lc = "storage-device-container-model", Pp = "/kos/storage";
11694
11687
  let Gt = class {
11695
11688
  constructor(t, e, s) {
11696
11689
  l(this, "id");
@@ -11764,7 +11757,7 @@ Fo([
11764
11757
  ], Gt.prototype, "_models", 2);
11765
11758
  Fo([
11766
11759
  k({
11767
- topic: Fp,
11760
+ topic: Pp,
11768
11761
  websocket: !0
11769
11762
  })
11770
11763
  ], Gt.prototype, "handleStorageAvailability", 1);
@@ -11776,19 +11769,19 @@ const Vt = new Pe({
11776
11769
  type: lc
11777
11770
  });
11778
11771
  Vt.addRelatedModel(io);
11779
- const { URL: No } = ue(), { getAll: Np, postModel: Up } = ae.build({
11772
+ const { URL: No } = ue(), { getAll: Rp, postModel: xp } = ae.build({
11780
11773
  basePath: `${No}/api/kos/update/available`
11781
11774
  }), On = g.createLogger({
11782
11775
  name: "usb-update-service",
11783
11776
  group: "Services"
11784
11777
  }), dc = async () => {
11785
11778
  On.debug("sending GET for usb-update");
11786
- const t = await Np({
11779
+ const t = await Rp({
11787
11780
  urlOverride: `${No}/api/kos/update/available`
11788
11781
  });
11789
11782
  return !(t != null && t.data) || (t == null ? void 0 : t.status) !== 200 ? (On.error("Failed to retrieve usb-update data", t), []) : t.data;
11790
11783
  }, uc = async (t, e, s) => {
11791
- const r = await Up({
11784
+ const r = await xp({
11792
11785
  model: {
11793
11786
  manifestId: t,
11794
11787
  deviceId: e
@@ -11799,15 +11792,15 @@ const { URL: No } = ue(), { getAll: Np, postModel: Up } = ae.build({
11799
11792
  if (!(r != null && r.data))
11800
11793
  throw new Error("No response from server");
11801
11794
  return r.data;
11802
- }, Lw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11795
+ }, Ow = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11803
11796
  __proto__: null,
11804
11797
  getAvailableUpdates: dc,
11805
11798
  installUpdate: uc
11806
11799
  }, Symbol.toStringTag, { value: "Module" }));
11807
- var jp = Object.defineProperty, Bp = Object.getOwnPropertyDescriptor, hc = (t, e, s, r) => {
11808
- for (var o = r > 1 ? void 0 : r ? Bp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11800
+ var Ap = Object.defineProperty, Lp = Object.getOwnPropertyDescriptor, hc = (t, e, s, r) => {
11801
+ for (var o = r > 1 ? void 0 : r ? Lp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11809
11802
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11810
- return r && o && jp(e, s, o), o;
11803
+ return r && o && Ap(e, s, o), o;
11811
11804
  };
11812
11805
  const fc = "usb-update-model";
11813
11806
  let rr = class {
@@ -11848,19 +11841,19 @@ let rr = class {
11848
11841
  }
11849
11842
  };
11850
11843
  hc([
11851
- Tc()
11844
+ Ic()
11852
11845
  ], rr.prototype, "install", 1);
11853
11846
  rr = hc([
11854
11847
  P(fc)
11855
11848
  ], rr);
11856
- const gc = new Te({
11849
+ const gc = new Ie({
11857
11850
  class: rr,
11858
11851
  type: fc
11859
11852
  });
11860
- var Hp = Object.defineProperty, Kp = Object.getOwnPropertyDescriptor, Mr = (t, e, s, r) => {
11861
- for (var o = r > 1 ? void 0 : r ? Kp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11853
+ var kp = Object.defineProperty, Fp = Object.getOwnPropertyDescriptor, Mr = (t, e, s, r) => {
11854
+ for (var o = r > 1 ? void 0 : r ? Fp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
11862
11855
  (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
11863
- return r && o && Hp(e, s, o), o;
11856
+ return r && o && kp(e, s, o), o;
11864
11857
  };
11865
11858
  const pc = "usb-update-container-model";
11866
11859
  let mt = class {
@@ -11956,7 +11949,7 @@ const or = new Pe({
11956
11949
  type: pc
11957
11950
  });
11958
11951
  or.addRelatedModel(gc);
11959
- const zp = () => ({ ...{
11952
+ const Np = () => ({ ...{
11960
11953
  [ts.type]: {
11961
11954
  class: ef
11962
11955
  },
@@ -11976,14 +11969,14 @@ const zp = () => ({ ...{
11976
11969
  ...Ys.registration,
11977
11970
  ...La.registration,
11978
11971
  ...qr.registration
11979
- } }), mc = zp(), kw = {
11972
+ } }), mc = Np(), Sw = {
11980
11973
  models: mc,
11981
11974
  preloadModels: []
11982
- }, Sn = !0, Gp = (t) => () => {
11975
+ }, Sn = !0, Up = (t) => () => {
11983
11976
  const e = mc;
11984
- return Iu(Dn)(Gs).model(Ht).model(Vt).model(or).model(ro).model(Qr).model(Fs).model(Xr).model(na).model(sr).model(zt).model(Ga).model(Ji, Sn).model(yr).model($f, Sn), Object.keys(e).forEach((s) => {
11977
+ return Tu(Dn)(Gs).model(Ht).model(Vt).model(or).model(ro).model(Qr).model(Fs).model(Xr).model(na).model(sr).model(zt).model(Ga).model(Ji, Sn).model(yr).model($f, Sn), Object.keys(e).forEach((s) => {
11985
11978
  const r = e[s];
11986
- Tu(Dn)(s, r);
11979
+ Iu(Dn)(s, r);
11987
11980
  }), {
11988
11981
  preload: C.model.preloadModel(t),
11989
11982
  model: C.model.register(t),
@@ -11992,19 +11985,19 @@ const zp = () => ({ ...{
11992
11985
  };
11993
11986
  }, me = {};
11994
11987
  me.core = {
11995
- models: Gp(me)
11988
+ models: Up(me)
11996
11989
  };
11997
11990
  me.preload = C.model.preloadModel(me);
11998
11991
  me.model = C.model.register(me);
11999
11992
  me.companion = C.companion.register(me);
12000
11993
  me.legacy = C.model.registerLegacyModel(me);
12001
11994
  const Dn = me;
12002
- class Fw {
11995
+ class Dw {
12003
11996
  /**
12004
11997
  * Maps the rank property of the trouble into the {@link TroubleModel}
12005
11998
  * */
12006
11999
  registerTroubleRankMapper(e) {
12007
- return I.propertyMapper.registerPropertyMapper(
12000
+ return T.propertyMapper.registerPropertyMapper(
12008
12001
  Me.TroubleRank,
12009
12002
  e
12010
12003
  ), this;
@@ -12013,7 +12006,7 @@ class Fw {
12013
12006
  * Maps the role property of the trouble into the {@link TroubleModel}
12014
12007
  * */
12015
12008
  registerTroubleRoleMapper(e) {
12016
- return I.propertyMapper.registerPropertyMapper(
12009
+ return T.propertyMapper.registerPropertyMapper(
12017
12010
  Me.TroubleRole,
12018
12011
  e
12019
12012
  ), this;
@@ -12022,16 +12015,16 @@ class Fw {
12022
12015
  * Maps the color property of the trouble into the {@link TroubleModel}
12023
12016
  * */
12024
12017
  registerTroubleColorMapper(e) {
12025
- return I.propertyMapper.registerPropertyMapper(
12018
+ return T.propertyMapper.registerPropertyMapper(
12026
12019
  Me.TroubleColor,
12027
12020
  e
12028
12021
  ), this;
12029
12022
  }
12030
12023
  registerModelLoader(e, s) {
12031
- I.loader.registerLoader(e, s);
12024
+ T.loader.registerLoader(e, s);
12032
12025
  }
12033
12026
  registerCanvasPatternLoader(e) {
12034
- I.loader.registerLoader(zt.loader, e);
12027
+ T.loader.registerLoader(zt.loader, e);
12035
12028
  }
12036
12029
  }
12037
12030
  class _r {
@@ -12061,23 +12054,13 @@ class _r {
12061
12054
  this.future && await this.future.cancelFuture();
12062
12055
  }
12063
12056
  }
12064
- function Nw(t) {
12057
+ function Cw(t) {
12065
12058
  const e = new _r(t);
12066
- t.futureHandler = e.futureHandler, Object.defineProperty(t, "_futureMixin", {
12067
- value: e,
12068
- enumerable: !1,
12069
- configurable: !1,
12070
- writable: !1
12071
- });
12059
+ t.futureHandler = e.futureHandler;
12072
12060
  }
12073
- function Vp(t) {
12061
+ function jp(t) {
12074
12062
  const e = new _r(t), s = t;
12075
- s.futureHandler = e.futureHandler, Object.defineProperty(t, "_futureMixin", {
12076
- value: e,
12077
- enumerable: !1,
12078
- configurable: !1,
12079
- writable: !1
12080
- }), Object.defineProperty(t, "future", {
12063
+ s.futureHandler = e.futureHandler, Object.defineProperty(t, "future", {
12081
12064
  get() {
12082
12065
  return e.future;
12083
12066
  },
@@ -12115,12 +12098,12 @@ function Vp(t) {
12115
12098
  configurable: !0
12116
12099
  }), s.cancelFuture = async () => e.cancelFuture();
12117
12100
  }
12118
- function Uw() {
12101
+ function Pw() {
12119
12102
  return function(t) {
12120
12103
  const e = t;
12121
12104
  function s(...r) {
12122
12105
  const o = e.apply(this, r) || this;
12123
- return Vp(o), o;
12106
+ return jp(o), o;
12124
12107
  }
12125
12108
  return s.prototype = e.prototype, Object.setPrototypeOf(s, e), Object.getOwnPropertyNames(e).forEach((r) => {
12126
12109
  if (r !== "prototype" && r !== "length" && r !== "name") {
@@ -12133,10 +12116,10 @@ function Uw() {
12133
12116
  }), s;
12134
12117
  };
12135
12118
  }
12136
- function jw(t) {
12119
+ function Rw(t) {
12137
12120
  return new _r(t);
12138
12121
  }
12139
- function Bw(t) {
12122
+ function xw(t) {
12140
12123
  let e;
12141
12124
  const s = () => (e || (e = new _r(t())), e);
12142
12125
  return {
@@ -12163,10 +12146,10 @@ function Bw(t) {
12163
12146
  }
12164
12147
  };
12165
12148
  }
12166
- function Hw(t) {
12167
- return t && typeof t == "object" && "futureHandler" in t && "future" in t && "_futureMixin" in t && typeof t.cancelFuture == "function";
12149
+ function Aw(t) {
12150
+ return t && typeof t == "object" && "futureHandler" in t && "future" in t && typeof t.cancelFuture == "function";
12168
12151
  }
12169
- function Kw(t) {
12152
+ function Lw(t) {
12170
12153
  const e = [
12171
12154
  "future",
12172
12155
  "progress",
@@ -12192,7 +12175,7 @@ function Kw(t) {
12192
12175
  }
12193
12176
  return s;
12194
12177
  }
12195
- class Yp {
12178
+ class Bp {
12196
12179
  constructor(e, s) {
12197
12180
  l(this, "parent");
12198
12181
  l(this, "companion");
@@ -12271,8 +12254,8 @@ class Yp {
12271
12254
  }
12272
12255
  }
12273
12256
  }
12274
- function zw(t, e, s = {}) {
12275
- const r = new Yp(t, e);
12257
+ function kw(t, e, s = {}) {
12258
+ const r = new Bp(t, e);
12276
12259
  return t.getParent = () => r.getParent(), Object.defineProperty(t, "_companionMixin", {
12277
12260
  value: r,
12278
12261
  enumerable: !1,
@@ -12280,14 +12263,14 @@ function zw(t, e, s = {}) {
12280
12263
  writable: !1
12281
12264
  }), r.setupProxy(s), r;
12282
12265
  }
12283
- function qp(t) {
12266
+ function Hp(t) {
12284
12267
  return t && typeof t == "object" && "_companionMixin" in t && typeof t.getParent == "function";
12285
12268
  }
12286
- function Wp(t) {
12287
- return qp(t) ? t._companionMixin : null;
12269
+ function Kp(t) {
12270
+ return Hp(t) ? t._companionMixin : null;
12288
12271
  }
12289
- function Gw(t) {
12290
- const e = Wp(t);
12272
+ function Fw(t) {
12273
+ const e = Kp(t);
12291
12274
  if (!e)
12292
12275
  return { error: "No companion mixin found" };
12293
12276
  const s = e.getParent(), r = Object.getOwnPropertyNames(t), o = Object.getOwnPropertyNames(s), n = r.filter(
@@ -12300,7 +12283,7 @@ function Gw(t) {
12300
12283
  proxiedCount: n.length
12301
12284
  };
12302
12285
  }
12303
- const Vw = async (t, e) => {
12286
+ const Nw = async (t, e) => {
12304
12287
  const s = na.instance(t).options({}).build(), r = e ? `${e}-` : "";
12305
12288
  return await fe(s), {
12306
12289
  getState: (o) => s.data[`${r}${o}`],
@@ -12315,14 +12298,14 @@ const Vw = async (t, e) => {
12315
12298
  dt(s);
12316
12299
  }
12317
12300
  };
12318
- }, yc = "kos:service:region", bc = "regionId", Zp = `${yc}-${bc}`, Qp = async (t) => {
12319
- const e = wt.factory(Zp)({
12301
+ }, yc = "kos:service:region", bc = "regionId", zp = `${yc}-${bc}`, Gp = async (t) => {
12302
+ const e = wt.factory(zp)({
12320
12303
  path: yc,
12321
12304
  attribute: bc
12322
12305
  });
12323
12306
  await fe(e), e.updateProperty(t);
12324
- }, wc = "/kos-timer-event", vc = "/kos-timer-event/tick", Mc = "defaultTimerEnd", Pt = g.createLogger({ name: "timer-manager" }), Jp = (t) => t.updateProperty !== void 0;
12325
- class Xp {
12307
+ }, wc = "/kos-timer-event", vc = "/kos-timer-event/tick", Mc = "defaultTimerEnd", Pt = g.createLogger({ name: "timer-manager" }), Vp = (t) => t.updateProperty !== void 0;
12308
+ class Yp {
12326
12309
  /**
12327
12310
  * Creates a new timer.
12328
12311
  * @param name - The name of the timer.
@@ -12339,7 +12322,7 @@ class Xp {
12339
12322
  l(this, "timeoutActions", /* @__PURE__ */ new Map());
12340
12323
  this.name = e;
12341
12324
  const o = typeof s == "number" ? s : s.value || 60;
12342
- this.timeout = o, this.state = "inactive", this.remainingTime = o, Jp(s) && Y(() => {
12325
+ this.timeout = o, this.state = "inactive", this.remainingTime = o, Vp(s) && Y(() => {
12343
12326
  g.info(
12344
12327
  `Updating config value timer ${e} with new timeout value ${s.value}`
12345
12328
  );
@@ -12455,7 +12438,7 @@ const Rt = /* @__PURE__ */ new Map(), tt = (t, e) => {
12455
12438
  return;
12456
12439
  }
12457
12440
  e(s);
12458
- }, em = {
12441
+ }, qp = {
12459
12442
  /**
12460
12443
  * Creates a new timer with a timeout relative to the current date.
12461
12444
  * @param name - The name of the timer
@@ -12477,7 +12460,7 @@ const Rt = /* @__PURE__ */ new Map(), tt = (t, e) => {
12477
12460
  createTimer(t, e = 60, s) {
12478
12461
  if (Rt.has(t))
12479
12462
  return Rt.get(t);
12480
- const r = new Xp(t, e, s);
12463
+ const r = new Yp(t, e, s);
12481
12464
  return Rt.set(t, r), r;
12482
12465
  },
12483
12466
  /**
@@ -12532,14 +12515,14 @@ const Rt = /* @__PURE__ */ new Map(), tt = (t, e) => {
12532
12515
  startTimer(t) {
12533
12516
  tt(t, (e) => e.start());
12534
12517
  }
12535
- }, _c = "kos:service:region:settings", Ec = "timeZone", tm = `${_c}-${Ec}`, Cn = async (t) => {
12536
- const e = wt.factory(tm)({
12518
+ }, _c = "kos:service:region:settings", Ec = "timeZone", Wp = `${_c}-${Ec}`, Cn = async (t) => {
12519
+ const e = wt.factory(Wp)({
12537
12520
  path: _c,
12538
12521
  attribute: Ec
12539
12522
  });
12540
12523
  await fe(e), e.updateProperty(t);
12541
- }, sm = (t) => !t || !t.data;
12542
- function Tc(t = {}) {
12524
+ }, Zp = (t) => !t || !t.data;
12525
+ function Ic(t = {}) {
12543
12526
  const { alias: e, namespace: s, abortController: r = !1 } = t;
12544
12527
  return (o, n, i) => {
12545
12528
  o[_s] = o[_s] || {};
@@ -12589,7 +12572,7 @@ function Tc(t = {}) {
12589
12572
  await a.apply(this, b)
12590
12573
  );
12591
12574
  g.debug(`received future response for ${u}`, w);
12592
- const M = sm(w) ? w : w == null ? void 0 : w.data;
12575
+ const M = Zp(w) ? w : w == null ? void 0 : w.data;
12593
12576
  return M ? (M.progress = 1, g.debug("mapping future response to future model"), p.endState ? g.debug(
12594
12577
  `future ${p.id} has already completed. Not updating the model`
12595
12578
  ) : Yi(M, p)) : this.futureHandler.removeFuture(e), y(), M;
@@ -12606,7 +12589,7 @@ function Tc(t = {}) {
12606
12589
  };
12607
12590
  };
12608
12591
  }
12609
- const Yw = ({ path: t }) => (e, s) => {
12592
+ const Uw = ({ path: t }) => (e, s) => {
12610
12593
  e[L] = e[L] || {}, e[L][s] = {
12611
12594
  modelType: Ys.type,
12612
12595
  id: `${Ys.type}-${t}`,
@@ -12616,7 +12599,7 @@ const Yw = ({ path: t }) => (e, s) => {
12616
12599
  lifecycle: H.INIT
12617
12600
  };
12618
12601
  };
12619
- function qw(t) {
12602
+ function jw(t) {
12620
12603
  const { path: e, attribute: s } = t;
12621
12604
  return (r, o) => {
12622
12605
  r[L] = r[L] || {}, r[L][o] = {
@@ -12630,8 +12613,8 @@ function qw(t) {
12630
12613
  };
12631
12614
  };
12632
12615
  }
12633
- const at = g.createLogger({ name: "services", group: "Services" }), Ww = async (t, e) => rm(t, e, `${de}/api/server/login`), rm = async (t, e, s = `${de}/api/login`) => {
12634
- const r = await Ie(`${s}`, {
12616
+ const at = g.createLogger({ name: "services", group: "Services" }), Bw = async (t, e) => Qp(t, e, `${de}/api/server/login`), Qp = async (t, e, s = `${de}/api/login`) => {
12617
+ const r = await Te(`${s}`, {
12635
12618
  method: "POST",
12636
12619
  destinationAddress: "",
12637
12620
  body: JSON.stringify({
@@ -12644,8 +12627,8 @@ const at = g.createLogger({ name: "services", group: "Services" }), Ww = async (
12644
12627
  throw Error(`${n == null ? void 0 : n.error}`);
12645
12628
  }
12646
12629
  return await r.json();
12647
- }, Zw = async (t) => om(t, `${de}/api/server/startPasswordReset`, ""), om = async (t, e = `${de}/api/startPasswordReset`, s = "server") => {
12648
- const r = await Ie(`${e}?email=${t}`, {
12630
+ }, Hw = async (t) => Jp(t, `${de}/api/server/startPasswordReset`, ""), Jp = async (t, e = `${de}/api/startPasswordReset`, s = "server") => {
12631
+ const r = await Te(`${e}?email=${t}`, {
12649
12632
  method: "POST",
12650
12633
  destinationAddress: s
12651
12634
  });
@@ -12654,14 +12637,14 @@ const at = g.createLogger({ name: "services", group: "Services" }), Ww = async (
12654
12637
  `There was a problem reseting config; returned status ${r.status}`
12655
12638
  );
12656
12639
  return await r.json();
12657
- }, Qw = async (t, e) => nm(t, e, `${de}/api/server/resetPassword`), nm = async (t, e, s = `${de}/api/resetPassword`) => {
12640
+ }, Kw = async (t, e) => Xp(t, e, `${de}/api/server/resetPassword`), Xp = async (t, e, s = `${de}/api/resetPassword`) => {
12658
12641
  at.debug(
12659
12642
  `resetting password with token ${t} and password ${e.replace(
12660
12643
  /./g,
12661
12644
  "*"
12662
12645
  )}`
12663
12646
  );
12664
- const r = await Ie(`${s}`, {
12647
+ const r = await Te(`${s}`, {
12665
12648
  method: "POST",
12666
12649
  destinationAddress: "",
12667
12650
  body: JSON.stringify({
@@ -12677,19 +12660,19 @@ const at = g.createLogger({ name: "services", group: "Services" }), Ww = async (
12677
12660
  );
12678
12661
  }
12679
12662
  return await r.json();
12680
- }, Jw = async (t, e, s) => im(
12663
+ }, zw = async (t, e, s) => em(
12681
12664
  t,
12682
12665
  e,
12683
12666
  s,
12684
12667
  `${de}/api/server/acceptInvite`
12685
- ), im = async (t, e, s, r = `${de}/api/server/acceptInvite`) => {
12668
+ ), em = async (t, e, s, r = `${de}/api/server/acceptInvite`) => {
12686
12669
  at.debug(
12687
12670
  `accepting invite with token ${t} and password ${e.replace(
12688
12671
  /./g,
12689
12672
  "*"
12690
12673
  )}`
12691
12674
  );
12692
- const o = await Ie(`${r}`, {
12675
+ const o = await Te(`${r}`, {
12693
12676
  method: "POST",
12694
12677
  destinationAddress: "",
12695
12678
  body: JSON.stringify({
@@ -12707,7 +12690,7 @@ const at = g.createLogger({ name: "services", group: "Services" }), Ww = async (
12707
12690
  }
12708
12691
  return await o.json();
12709
12692
  };
12710
- function Xw(t, e, s, r) {
12693
+ function Gw(t, e, s, r) {
12711
12694
  const o = t instanceof Promise ? { promise: t, abortController: e, cancelFuture: s, future: r } : t, {
12712
12695
  promise: n,
12713
12696
  abortController: i,
@@ -12753,7 +12736,7 @@ function Xw(t, e, s, r) {
12753
12736
  enumerable: !0
12754
12737
  }), d.onProgressUpdate = (b) => (p.add(b), b(u, h), () => p.delete(b)), d;
12755
12738
  }
12756
- const am = Zc`
12739
+ const tm = Zc`
12757
12740
  0% {
12758
12741
  left: -90px;
12759
12742
  color: #eee;
@@ -12765,23 +12748,23 @@ const am = Zc`
12765
12748
  left: 90px;
12766
12749
  color: #eee;
12767
12750
  }
12768
- `, cm = st`
12751
+ `, sm = st`
12769
12752
  font-size: 100px;
12770
12753
  margin-top: -80px;
12771
12754
  position: relative;
12772
- animation: ${am} ease-in-out infinite alternate;
12755
+ animation: ${tm} ease-in-out infinite alternate;
12773
12756
  animation-duration: 1.2s;
12774
- `, lm = ({ children: t }) => jn(t, document.body);
12775
- function dm({
12757
+ `, rm = ({ children: t }) => jn(t, document.body);
12758
+ function om({
12776
12759
  message: t = "Wait a moment while we load your app.",
12777
12760
  theme: e = "light"
12778
12761
  }) {
12779
- return /* @__PURE__ */ v(lm, { children: /* @__PURE__ */ kt(um, { theme: e, children: [
12762
+ return /* @__PURE__ */ v(rm, { children: /* @__PURE__ */ kt(nm, { theme: e, children: [
12780
12763
  t,
12781
- /* @__PURE__ */ v("div", { css: cm, children: "." })
12764
+ /* @__PURE__ */ v("div", { css: sm, children: "." })
12782
12765
  ] }) });
12783
12766
  }
12784
- const um = lo.div`
12767
+ const nm = lo.div`
12785
12768
  padding-inline: 20px;
12786
12769
  width: 100%;
12787
12770
  height: 100vh;
@@ -12796,7 +12779,7 @@ const um = lo.div`
12796
12779
  color: ${({ theme: t }) => t === "light" ? "black" : "white"};
12797
12780
  z-index: 10000;
12798
12781
  `;
12799
- class hm extends Ye.Component {
12782
+ class im extends Ye.Component {
12800
12783
  constructor(e) {
12801
12784
  super(e), this.state = { error: null, errorInfo: null };
12802
12785
  }
@@ -12817,11 +12800,11 @@ class hm extends Ye.Component {
12817
12800
  ] }) : this.props.children;
12818
12801
  }
12819
12802
  }
12820
- const fm = {
12803
+ const am = {
12821
12804
  normal: "#B5F7F6",
12822
12805
  warn: "#F3D78A",
12823
12806
  error: "#FC8486"
12824
- }, ev = ({
12807
+ }, Vw = ({
12825
12808
  value: t = 0,
12826
12809
  title: e,
12827
12810
  status: s = "normal",
@@ -12847,7 +12830,7 @@ const fm = {
12847
12830
  `, a = st`
12848
12831
  width: ${t}%;
12849
12832
  height: 35px;
12850
- background-color: ${fm[s]};
12833
+ background-color: ${am[s]};
12851
12834
  text-align: center;
12852
12835
  line-height: 32px;
12853
12836
  color: black;
@@ -12873,14 +12856,14 @@ const fm = {
12873
12856
  ] }),
12874
12857
  /* @__PURE__ */ v("div", { children: r })
12875
12858
  ] });
12876
- }, gm = {
12859
+ }, cm = {
12877
12860
  setModel: () => !1
12878
- }, Uo = Zt(gm), tv = () => {
12861
+ }, Uo = Zt(cm), Yw = () => {
12879
12862
  const t = Ke(Uo);
12880
12863
  if (t == null)
12881
12864
  throw new Error("useModels must be used within a KosModelProvider");
12882
12865
  return t.model;
12883
- }, pm = ({
12866
+ }, lm = ({
12884
12867
  children: t
12885
12868
  }) => {
12886
12869
  const [e, s] = E(), r = Z(
@@ -12888,42 +12871,42 @@ const fm = {
12888
12871
  [s]
12889
12872
  );
12890
12873
  return /* @__PURE__ */ v(Uo.Provider, { value: { model: e, setModel: r }, children: t });
12891
- }, Ic = g.createLogger({ name: "kos-model-hierarchy-context" }), mm = {
12874
+ }, Tc = g.createLogger({ name: "kos-model-hierarchy-context" }), dm = {
12892
12875
  models: [],
12893
12876
  addModel: () => {
12894
- Ic.debug("Default implementation being used. Do Nothing.");
12877
+ Tc.debug("Default implementation being used. Do Nothing.");
12895
12878
  }
12896
- }, jo = Zt(mm), sv = ({ children: t }) => {
12879
+ }, jo = Zt(dm), qw = ({ children: t }) => {
12897
12880
  const [e, s] = E([]), r = Z(
12898
12881
  (o) => {
12899
- e.includes(o) || (Ic.debug("adding to hierarchy context", o.id), s((n) => [...n, o]));
12882
+ e.includes(o) || (Tc.debug("adding to hierarchy context", o.id), s((n) => [...n, o]));
12900
12883
  },
12901
12884
  [e]
12902
12885
  );
12903
12886
  return /* @__PURE__ */ v(jo.Provider, { value: { models: e, addModel: r }, children: t });
12904
- }, ym = () => !0, bm = (t) => {
12887
+ }, um = () => !0, hm = (t) => {
12905
12888
  const e = Ke(jo);
12906
12889
  if (!e)
12907
12890
  throw new Error(
12908
12891
  "useContextModelHierarchy must be used within a KosModelCollectionProvider"
12909
12892
  );
12910
- const s = (t == null ? void 0 : t.filter) || ym;
12893
+ const s = (t == null ? void 0 : t.filter) || um;
12911
12894
  return K(
12912
12895
  () => e.models.filter(s),
12913
12896
  [e.models, s]
12914
12897
  );
12915
- }, rv = (t) => bm({
12898
+ }, Ww = (t) => hm({
12916
12899
  filter: (s) => {
12917
12900
  const r = Se(s.id);
12918
12901
  return (r == null ? void 0 : r.type) === t;
12919
12902
  }
12920
- })[0], wm = g.createLogger({ name: "kos-model-loader" }), vm = () => /* @__PURE__ */ v("div", {}), Mm = ({ fallback: t, children: e, ...s }) => /* @__PURE__ */ v(pm, { children: /* @__PURE__ */ v(hm, { fallback: t, children: /* @__PURE__ */ v(Qc, { children: /* @__PURE__ */ v(_m, { ...s, children: e }) }) }) }), _m = (t) => {
12903
+ })[0], fm = g.createLogger({ name: "kos-model-loader" }), gm = () => /* @__PURE__ */ v("div", {}), pm = ({ fallback: t, children: e, ...s }) => /* @__PURE__ */ v(lm, { children: /* @__PURE__ */ v(im, { fallback: t, children: /* @__PURE__ */ v(Qc, { children: /* @__PURE__ */ v(mm, { ...s, children: e }) }) }) }), mm = (t) => {
12921
12904
  const [e, s] = E(), [r, o] = E(!1), { setModel: n } = Ke(Uo), i = Ke(jo);
12922
12905
  if (O(() => {
12923
12906
  t.model && (s(t.model), n(t.model), o(!0), i && i.addModel(t.model));
12924
12907
  }, [i, t.model, n]), t.error)
12925
- throw wm.error(t.error), new Error(t.error);
12926
- const a = t.loading || /* @__PURE__ */ v(vm, {});
12908
+ throw fm.error(t.error), new Error(t.error);
12909
+ const a = t.loading || /* @__PURE__ */ v(gm, {});
12927
12910
  return /* @__PURE__ */ v(Wc, { children: e && r ? t.children : a });
12928
12911
  }, As = {
12929
12912
  header: {
@@ -12936,7 +12919,7 @@ const fm = {
12936
12919
  cancelText: "Cancel",
12937
12920
  title: "Create New Model"
12938
12921
  }
12939
- }, Em = Ye.createContext(As), ov = ({
12922
+ }, ym = Ye.createContext(As), Zw = ({
12940
12923
  translations: t = As,
12941
12924
  children: e
12942
12925
  }) => {
@@ -12947,14 +12930,14 @@ const fm = {
12947
12930
  ...t.createModal
12948
12931
  }
12949
12932
  };
12950
- return /* @__PURE__ */ v(Em.Provider, { value: s, children: e });
12933
+ return /* @__PURE__ */ v(ym.Provider, { value: s, children: e });
12951
12934
  };
12952
- function Tm(t, e) {
12953
- const s = T.create(t, !1, e), r = s.whenReady().then(() => s);
12935
+ function bm(t, e) {
12936
+ const s = I.create(t, !1, e), r = s.whenReady().then(() => s);
12954
12937
  return ci(r);
12955
12938
  }
12956
- const $c = Ye.createContext(void 0), nv = (t = { models: {}, preloadModels: [] }, e) => {
12957
- const s = Tm(t, e);
12939
+ const $c = Ye.createContext(void 0), Qw = (t = { models: {}, preloadModels: [] }, e) => {
12940
+ const s = bm(t, e);
12958
12941
  return { KosCoreContextProvider: Bn(({ children: o }) => {
12959
12942
  const n = s.read(), [i, a] = Ye.useState(n.isOnline);
12960
12943
  return O(() => {
@@ -12966,21 +12949,21 @@ const $c = Ye.createContext(void 0), nv = (t = { models: {}, preloadModels: [] }
12966
12949
  };
12967
12950
  }, [n]), /* @__PURE__ */ v($c.Provider, { value: { kosCore: n, online: i }, children: o });
12968
12951
  }) };
12969
- }, Im = () => {
12952
+ }, wm = () => {
12970
12953
  const t = Ye.useContext($c);
12971
12954
  if (t === void 0)
12972
12955
  throw new Error("useKosCore must be used within a KosCoreContextProvider");
12973
12956
  return t;
12974
- }, $m = 8, Om = (t = 0) => new Promise((e) => {
12957
+ }, vm = 8, Mm = (t = 0) => new Promise((e) => {
12975
12958
  setTimeout(() => {
12976
12959
  e(!0);
12977
12960
  }, 2 ** t * 10);
12978
12961
  }), Be = /* @__PURE__ */ new Map();
12979
- function Sm(t, e) {
12962
+ function _m(t, e) {
12980
12963
  if (Be.has(t)) {
12981
12964
  const s = Be.get(t);
12982
12965
  if (s.status === "finished") {
12983
- const r = T.getInstance().modelManager.getModelById(t);
12966
+ const r = I.getInstance().modelManager.getModelById(t);
12984
12967
  return { kosModel: r, model: r == null ? void 0 : r.modelData };
12985
12968
  } else
12986
12969
  throw s.promise;
@@ -12996,10 +12979,10 @@ function Sm(t, e) {
12996
12979
  throw Be.set(t, r), s;
12997
12980
  }
12998
12981
  }
12999
- function Dm(t, e) {
13000
- return Sm(t, e);
12982
+ function Em(t, e) {
12983
+ return _m(t, e);
13001
12984
  }
13002
- async function Cm(t, e) {
12985
+ async function Im(t, e) {
13003
12986
  const { modelId: s, factory: r, modelType: o, options: n, activate: i } = e;
13004
12987
  let a = 0;
13005
12988
  await t.whenReady();
@@ -13012,16 +12995,16 @@ async function Cm(t, e) {
13012
12995
  }
13013
12996
  const d = t.modelManager.getModelById(s);
13014
12997
  if (!d) {
13015
- if (a > $m)
12998
+ if (a > vm)
13016
12999
  throw Error(`KOS Model ${s} has not been found`);
13017
- await Om(a), a = a + 1;
13000
+ await Mm(a), a = a + 1;
13018
13001
  }
13019
13002
  return await (d == null ? void 0 : d.whenReady()), d ? (c = d.modelData, { kosModel: d, model: c }) : { kosModel: void 0, model: void 0 };
13020
13003
  }
13021
13004
  const Q = (t) => {
13022
- const { modelId: e, modelType: s, activate: r, destroyOnUnmount: o } = t, n = Im(), [i, a] = E(!1), [c, d] = E(), { kosModel: u, model: h } = Dm(
13005
+ const { modelId: e, modelType: s, activate: r, destroyOnUnmount: o } = t, n = wm(), [i, a] = E(!1), [c, d] = E(), { kosModel: u, model: h } = Em(
13023
13006
  e || s || "",
13024
- () => Cm(n.kosCore, t)
13007
+ () => Im(n.kosCore, t)
13025
13008
  );
13026
13009
  return O(() => {
13027
13010
  async function f() {
@@ -13078,7 +13061,7 @@ const Q = (t) => {
13078
13061
  ready: i,
13079
13062
  error: c
13080
13063
  },
13081
- KosModelLoader: Mm
13064
+ KosModelLoader: pm
13082
13065
  };
13083
13066
  }, Oc = () => {
13084
13067
  const t = qr.type;
@@ -13087,10 +13070,10 @@ const Q = (t) => {
13087
13070
  modelType: qr.type,
13088
13071
  options: {}
13089
13072
  });
13090
- }, Sc = Zt(void 0), iv = ({ children: t }) => {
13073
+ }, Sc = Zt(void 0), Jw = ({ children: t }) => {
13091
13074
  const { model: e, ready: s } = Oc(), r = K(() => s && e ? { model: e } : {}, [s, e]);
13092
13075
  return /* @__PURE__ */ v(Sc.Provider, { value: r, children: t });
13093
- }, av = () => {
13076
+ }, Xw = () => {
13094
13077
  const t = Ke(Sc);
13095
13078
  if (!t)
13096
13079
  throw new Error("useKosTimeContext must be used within a KosTimeProvider");
@@ -13103,7 +13086,7 @@ const Q = (t) => {
13103
13086
  options: {}
13104
13087
  });
13105
13088
  };
13106
- function cv(t) {
13089
+ function ev(t) {
13107
13090
  return () => (e) => {
13108
13091
  const { model: s, status: r, KosModelLoader: o } = Dc();
13109
13092
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, softwareInfo: s }) });
@@ -13111,24 +13094,24 @@ function cv(t) {
13111
13094
  }
13112
13095
  const Cc = Zt(
13113
13096
  void 0
13114
- ), lv = ({ children: t }) => {
13097
+ ), tv = ({ children: t }) => {
13115
13098
  const { model: e, ready: s } = Dc(), r = K(() => s && e ? { model: e } : {}, [s, e]);
13116
13099
  return /* @__PURE__ */ v(Cc.Provider, { value: r, children: t });
13117
- }, dv = () => {
13100
+ }, sv = () => {
13118
13101
  const t = Ke(Cc);
13119
13102
  if (!t)
13120
13103
  throw new Error(
13121
13104
  "useSoftwareInfoContext must be used within a SoftwareInfoProvider"
13122
13105
  );
13123
13106
  return t;
13124
- }, Pc = new ch(), Pm = Ye.createContext(Pc);
13125
- function uv({ children: t }) {
13126
- return /* @__PURE__ */ v(Pm.Provider, { value: Pc, children: t });
13107
+ }, Pc = new ch(), Tm = Ye.createContext(Pc);
13108
+ function rv({ children: t }) {
13109
+ return /* @__PURE__ */ v(Tm.Provider, { value: Pc, children: t });
13127
13110
  }
13128
- const Rc = Zt(void 0), Rm = () => {
13111
+ const Rc = Zt(void 0), $m = () => {
13129
13112
  const t = window.location.origin, e = ye();
13130
13113
  return (e == null ? void 0 : e.host) || t;
13131
- }, hv = ({
13114
+ }, ov = ({
13132
13115
  children: t,
13133
13116
  appContext: e,
13134
13117
  locale: s = "en",
@@ -13136,10 +13119,10 @@ const Rc = Zt(void 0), Rm = () => {
13136
13119
  rootUrl: o,
13137
13120
  descriptorResolver: n
13138
13121
  }) => {
13139
- const [i, a] = E(!1), [c, d] = E(), [u, h] = E(), f = o || Rm(), p = K(() => e ?? "app/system", [e]);
13122
+ const [i, a] = E(!1), [c, d] = E(), [u, h] = E(), f = o || $m(), p = K(() => e ?? "app/system", [e]);
13140
13123
  O(() => {
13141
13124
  async function w() {
13142
- const F = (Array.isArray(p) ? p : [p]).map((W) => (n || Lg(W))()), _ = (await Promise.allSettled(F)).map((W) => {
13125
+ const F = (Array.isArray(p) ? p : [p]).map((W) => (n || xg(W))()), _ = (await Promise.allSettled(F)).map((W) => {
13143
13126
  if (W.status === "rejected") {
13144
13127
  g.warn("Failed to load localization descriptor", W.reason);
13145
13128
  return;
@@ -13161,7 +13144,7 @@ const Rc = Zt(void 0), Rm = () => {
13161
13144
  }, [p, n]), O(() => {
13162
13145
  async function w() {
13163
13146
  if (c) {
13164
- const M = f, { translations: F } = await zg.init({
13147
+ const M = f, { translations: F } = await Bg.init({
13165
13148
  lang: s,
13166
13149
  descriptor: c,
13167
13150
  defaultNamespace: "common",
@@ -13183,14 +13166,14 @@ const Rc = Zt(void 0), Rm = () => {
13183
13166
  }
13184
13167
  }, [i, u]), b = i ? t : null;
13185
13168
  return /* @__PURE__ */ v(Rc.Provider, { value: y, children: b });
13186
- }, fv = () => {
13169
+ }, nv = () => {
13187
13170
  const t = Ke(Rc);
13188
13171
  if (!t)
13189
13172
  throw new Error(
13190
13173
  "useTranslationContainerContext must be used within a TranslationContainerProvider"
13191
13174
  );
13192
13175
  return t;
13193
- }, xm = () => {
13176
+ }, Om = () => {
13194
13177
  const t = zt.type;
13195
13178
  return Q({
13196
13179
  modelId: t,
@@ -13198,26 +13181,19 @@ const Rc = Zt(void 0), Rm = () => {
13198
13181
  options: {}
13199
13182
  });
13200
13183
  };
13201
- function Am(t) {
13184
+ function Sm(t) {
13202
13185
  return (e) => {
13203
- const { model: s, status: r, KosModelLoader: o } = xm();
13186
+ const { model: s, status: r, KosModelLoader: o } = Om();
13204
13187
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, canvasDispatcher: s }) });
13205
13188
  };
13206
13189
  }
13207
- const Lm = (t, e, s) => {
13190
+ const Dm = (t, e, s) => {
13208
13191
  const r = atob(t), o = new Uint8ClampedArray(e * s * 4);
13209
13192
  for (let n = 0, i = 0; n < r.length && i < o.length; n += 3, i += 4)
13210
13193
  o[i] = r.charCodeAt(n), o[i + 1] = r.charCodeAt(n + 1), o[i + 2] = r.charCodeAt(n + 2), o[i + 3] = 255;
13211
13194
  return o;
13212
- }, km = (t, e, s) => {
13213
- const r = new Uint8ClampedArray(e * s * 4);
13214
- for (let o = 0; o < t.length; o++) {
13215
- const n = t.charCodeAt(o), i = (n >> 5 & 7) * 255 / 7, a = (n >> 2 & 7) * 255 / 7, c = (n & 3) * 255 / 3, d = o * 4;
13216
- r[d] = i, r[d + 1] = a, r[d + 2] = c, r[d + 3] = 255;
13217
- }
13218
- return r;
13219
13195
  };
13220
- function Fm({
13196
+ function Cm({
13221
13197
  ctx: t,
13222
13198
  format: e,
13223
13199
  dataString: s,
@@ -13225,14 +13201,14 @@ function Fm({
13225
13201
  height: o,
13226
13202
  pixelSize: n
13227
13203
  }) {
13228
- const i = e === "base64" ? Lm(s, r, o) : km(s, r, o), a = new ImageData(i, r, o), c = document.createElement("canvas");
13204
+ const i = Dm(s, r, o), a = new ImageData(i, r, o), c = document.createElement("canvas");
13229
13205
  c.width = r, c.height = o;
13230
13206
  const d = c.getContext("2d");
13231
13207
  d == null || d.putImageData(a, 0, 0), t.imageSmoothingEnabled = !1, t.clearRect(0, 0, r * n, o * n), t.drawImage(c, 0, 0, r * n, o * n);
13232
13208
  }
13233
- const Nm = g.createLogger({ name: "canvas-streamer" });
13234
- Nm.debug("main-view component loaded");
13235
- const Ur = 10, Um = Bn(
13209
+ const Pm = g.createLogger({ name: "canvas-streamer" });
13210
+ Pm.debug("main-view component loaded");
13211
+ const Ur = 10, Rm = Bn(
13236
13212
  ({
13237
13213
  canvasDispatcher: t,
13238
13214
  height: e = 30,
@@ -13257,7 +13233,7 @@ const Ur = 10, Um = Bn(
13257
13233
  (h) => {
13258
13234
  if (a.current && o) {
13259
13235
  const f = a.current.getContext("2d");
13260
- f && Fm({
13236
+ f && Cm({
13261
13237
  ctx: f,
13262
13238
  format: "base64",
13263
13239
  dataString: h,
@@ -13272,7 +13248,7 @@ const Ur = 10, Um = Bn(
13272
13248
  return O(() => {
13273
13249
  c && (c.onFrame = u, c.width = s, c.height = e, c.fps = r);
13274
13250
  }, [c, u, s, e, r]), o && jn(
13275
- /* @__PURE__ */ v(jm, { children: /* @__PURE__ */ v(Bm, { children: /* @__PURE__ */ v(
13251
+ /* @__PURE__ */ v(xm, { children: /* @__PURE__ */ v(Am, { children: /* @__PURE__ */ v(
13276
13252
  "canvas",
13277
13253
  {
13278
13254
  ref: a,
@@ -13284,7 +13260,7 @@ const Ur = 10, Um = Bn(
13284
13260
  document.body
13285
13261
  );
13286
13262
  }
13287
- ), gv = Am(Um), jm = lo.div`
13263
+ ), iv = Sm(Rm), xm = lo.div`
13288
13264
  display: flex;
13289
13265
  flex-direction: column;
13290
13266
  gap: 8px;
@@ -13292,11 +13268,11 @@ const Ur = 10, Um = Bn(
13292
13268
  width: 100%;
13293
13269
  justify-content: space-between;
13294
13270
  align-items: center;
13295
- `, Bm = lo.div`
13271
+ `, Am = lo.div`
13296
13272
  display: flex;
13297
13273
  flex-direction: column;
13298
13274
  align-items: center;
13299
- `, Hm = () => {
13275
+ `, Lm = () => {
13300
13276
  const t = ro.type;
13301
13277
  return Q({
13302
13278
  modelId: t,
@@ -13304,16 +13280,16 @@ const Ur = 10, Um = Bn(
13304
13280
  options: {}
13305
13281
  });
13306
13282
  };
13307
- function pv(t) {
13283
+ function av(t) {
13308
13284
  return (e) => {
13309
- const { model: s, status: r, KosModelLoader: o } = Hm();
13285
+ const { model: s, status: r, KosModelLoader: o } = Lm();
13310
13286
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, device: s }) });
13311
13287
  };
13312
13288
  }
13313
- function mv(t, e, s) {
13289
+ function cv(t, e, s) {
13314
13290
  const r = new Promise((o) => {
13315
- T.getInstance().whenReady().then(() => {
13316
- const { model: n } = T.getInstance().modelManager.createModelInstance(
13291
+ I.getInstance().whenReady().then(() => {
13292
+ const { model: n } = I.getInstance().modelManager.createModelInstance(
13317
13293
  t,
13318
13294
  e ?? t,
13319
13295
  s
@@ -13325,13 +13301,13 @@ function mv(t, e, s) {
13325
13301
  });
13326
13302
  return ci(r);
13327
13303
  }
13328
- function yv(t) {
13304
+ function lv(t) {
13329
13305
  return (e) => {
13330
13306
  const { model: s, status: r, KosModelLoader: o } = Oc();
13331
13307
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, kosTime: s }) });
13332
13308
  };
13333
13309
  }
13334
- const Km = () => {
13310
+ const km = () => {
13335
13311
  const t = sr.type;
13336
13312
  return Q({
13337
13313
  modelId: t,
@@ -13339,13 +13315,13 @@ const Km = () => {
13339
13315
  options: {}
13340
13316
  });
13341
13317
  };
13342
- function bv(t) {
13318
+ function dv(t) {
13343
13319
  return (e) => {
13344
- const { model: s, status: r, KosModelLoader: o } = Km();
13320
+ const { model: s, status: r, KosModelLoader: o } = km();
13345
13321
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, networkInterfaceContainer: s }) });
13346
13322
  };
13347
13323
  }
13348
- const zm = () => {
13324
+ const Fm = () => {
13349
13325
  const t = Qr.type;
13350
13326
  return Q({
13351
13327
  modelId: t,
@@ -13353,13 +13329,13 @@ const zm = () => {
13353
13329
  options: {}
13354
13330
  });
13355
13331
  };
13356
- function wv(t) {
13332
+ function uv(t) {
13357
13333
  return (e) => {
13358
- const { model: s, status: r, KosModelLoader: o } = zm();
13334
+ const { model: s, status: r, KosModelLoader: o } = Fm();
13359
13335
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, oTA: s }) });
13360
13336
  };
13361
13337
  }
13362
- function Gm(t, e) {
13338
+ function Nm(t, e) {
13363
13339
  O(() => {
13364
13340
  function s(o) {
13365
13341
  t.current && !t.current.contains(o.target) && e();
@@ -13372,11 +13348,11 @@ function Gm(t, e) {
13372
13348
  };
13373
13349
  }, [t, e]);
13374
13350
  }
13375
- function vv(t) {
13351
+ function hv(t) {
13376
13352
  const e = nr(null), s = t.onAlert;
13377
- return Gm(e, s), /* @__PURE__ */ v("div", { ref: e, style: { width: "100%" }, children: t.children });
13353
+ return Nm(e, s), /* @__PURE__ */ v("div", { ref: e, style: { width: "100%" }, children: t.children });
13378
13354
  }
13379
- const Mv = (t) => {
13355
+ const fv = (t) => {
13380
13356
  var d;
13381
13357
  const { stateProp: e } = t, [s, r] = E((d = t.stateProp) == null ? void 0 : d.value), [o, n] = E(!1), [i, a] = E(void 0);
13382
13358
  return O(() => {
@@ -13396,7 +13372,7 @@ const Mv = (t) => {
13396
13372
  u();
13397
13373
  };
13398
13374
  }, [o, e]), [s, { ready: o, error: i }];
13399
- }, Vm = () => {
13375
+ }, Um = () => {
13400
13376
  const [t, e] = E(!1), [s, r] = E([]), o = Vt.type, n = Q({
13401
13377
  modelId: o,
13402
13378
  modelType: Vt.type,
@@ -13412,20 +13388,20 @@ const Mv = (t) => {
13412
13388
  };
13413
13389
  }, [n.model]), { ...n, inserted: t, devices: s };
13414
13390
  };
13415
- function _v(t) {
13391
+ function gv(t) {
13416
13392
  return (e) => {
13417
- const { model: s, status: r, KosModelLoader: o } = Vm();
13393
+ const { model: s, status: r, KosModelLoader: o } = Um();
13418
13394
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, storageDeviceContainer: s }) });
13419
13395
  };
13420
13396
  }
13421
- const jr = g.createLogger({ name: "use-timer" }), Ev = ({
13397
+ const jr = g.createLogger({ name: "use-timer" }), pv = ({
13422
13398
  timerName: t,
13423
13399
  onTimerExpired: e,
13424
13400
  onTimerTick: s,
13425
13401
  timerEventActions: r,
13426
13402
  autoStart: o
13427
13403
  }) => {
13428
- const n = em.getTimer(t);
13404
+ const n = qp.getTimer(t);
13429
13405
  O(() => {
13430
13406
  if (!n) {
13431
13407
  console.warn(`Timer with name ${t} does not exist.`);
@@ -13462,41 +13438,41 @@ const jr = g.createLogger({ name: "use-timer" }), Ev = ({
13462
13438
  reset: a,
13463
13439
  pause: c
13464
13440
  };
13465
- }, Ym = (t) => {
13441
+ }, jm = (t) => {
13466
13442
  const e = /[\\^$.*+?()[\]{}|]/g;
13467
13443
  return RegExp(e.source).test(t) ? t.replace(e, "\\$&") : t;
13468
- }, qm = (t) => t instanceof RegExp, Wm = (t) => typeof t == "string", Zm = (t, e, s) => {
13444
+ }, Bm = (t) => t instanceof RegExp, Hm = (t) => typeof t == "string", Km = (t, e, s) => {
13469
13445
  if (t === "" || e === "")
13470
13446
  return t;
13471
13447
  let r = e;
13472
- qm(r) || (r = new RegExp("(" + Ym(r) + ")", "gi"));
13448
+ Bm(r) || (r = new RegExp("(" + jm(r) + ")", "gi"));
13473
13449
  const o = t.split(r);
13474
13450
  for (let n = 1, i = o.length; n < i; n += 2)
13475
13451
  o[n] = s(o[n], n);
13476
13452
  return o;
13477
- }, Qm = (t, e, s) => {
13453
+ }, zm = (t, e, s) => {
13478
13454
  let r = t;
13479
13455
  return Array.isArray(r) || (r = [r]), r.flatMap(
13480
- (o) => Wm(o) ? Zm(o, e, s) : o
13456
+ (o) => Hm(o) ? Km(o, e, s) : o
13481
13457
  );
13482
13458
  };
13483
- function Jm(t, e) {
13459
+ function Gm(t, e) {
13484
13460
  let s = t;
13485
13461
  return Object.entries(e).forEach(([r, o]) => {
13486
13462
  const n = new RegExp(`<${r}>(.*?)</${r}>|<${r}/>`, "g");
13487
- s = Qm(s, n, (i, a) => o.type === "br" ? /* @__PURE__ */ v("br", {}) : Ye.cloneElement(o, { key: `${r}-${a}` }, i));
13463
+ s = zm(s, n, (i, a) => o.type === "br" ? /* @__PURE__ */ v("br", {}) : Ye.cloneElement(o, { key: `${r}-${a}` }, i));
13488
13464
  }), s;
13489
13465
  }
13490
- const Tv = (t) => {
13466
+ const mv = (t) => {
13491
13467
  const { i18nKey: e, t: s, defaults: r, components: o, values: n = {}, context: i } = t, a = s(e, {
13492
13468
  defaultValue: r,
13493
13469
  data: n,
13494
13470
  context: i,
13495
13471
  returnObjects: !0
13496
- }), c = Jm(a, o || {});
13472
+ }), c = Gm(a, o || {});
13497
13473
  return /* @__PURE__ */ v("span", { className: t.className, children: c });
13498
13474
  }, ot = /* @__PURE__ */ new Map();
13499
- function Xm(t, e) {
13475
+ function Vm(t, e) {
13500
13476
  if (ot.has(t)) {
13501
13477
  const s = ot.get(t);
13502
13478
  if (s.status === "finished")
@@ -13515,12 +13491,12 @@ function Xm(t, e) {
13515
13491
  }
13516
13492
  }
13517
13493
  function Pn(t, e) {
13518
- return Xm(t, e);
13494
+ return Vm(t, e);
13519
13495
  }
13520
- const ey = async () => {
13496
+ const Ym = async () => {
13521
13497
  const t = await vu(ke.type);
13522
13498
  return await fe(t.model), t.model;
13523
- }, ty = async (t, e, s) => {
13499
+ }, qm = async (t, e, s) => {
13524
13500
  const r = t.resolveNamespace(e);
13525
13501
  await fe(r);
13526
13502
  for (const o of s) {
@@ -13528,13 +13504,13 @@ const ey = async () => {
13528
13504
  await fe(n), ot.set(o, { status: "finished", result: n });
13529
13505
  }
13530
13506
  return r;
13531
- }, Iv = (t, e) => {
13507
+ }, yv = (t, e) => {
13532
13508
  const s = [t].flat(), [r, ...o] = s, n = Pn(
13533
13509
  ke.type,
13534
- ey
13510
+ Ym
13535
13511
  ), i = s.join("__"), a = Pn(
13536
13512
  i,
13537
- () => ty(n, r, o)
13513
+ () => qm(n, r, o)
13538
13514
  ), c = K(() => ({
13539
13515
  exists: (u) => {
13540
13516
  const h = e != null && e.keyPrefix ? `${e.keyPrefix}.${u}` : u;
@@ -13550,7 +13526,7 @@ const ey = async () => {
13550
13526
  },
13551
13527
  [e == null ? void 0 : e.keyPrefix, t, a]
13552
13528
  ), i18n: c };
13553
- }, sy = () => {
13529
+ }, Wm = () => {
13554
13530
  const t = ke.type;
13555
13531
  return Q({
13556
13532
  modelId: t,
@@ -13558,20 +13534,20 @@ const ey = async () => {
13558
13534
  options: {}
13559
13535
  });
13560
13536
  };
13561
- function $v(t) {
13537
+ function bv(t) {
13562
13538
  return (e) => {
13563
- const { model: s, status: r, KosModelLoader: o } = sy();
13539
+ const { model: s, status: r, KosModelLoader: o } = Wm();
13564
13540
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, translationContainer: s }) });
13565
13541
  };
13566
13542
  }
13567
- const Ov = (t) => Q({
13543
+ const wv = (t) => Q({
13568
13544
  modelId: t,
13569
13545
  modelType: Gs.type
13570
13546
  }), xc = () => Q({
13571
13547
  modelId: Ht.type,
13572
13548
  modelType: Ht.type,
13573
13549
  options: {}
13574
- }), Sv = ({
13550
+ }), vv = ({
13575
13551
  troubleType: t,
13576
13552
  condition: e
13577
13553
  }) => {
@@ -13589,13 +13565,13 @@ const Ov = (t) => Q({
13589
13565
  n
13590
13566
  ];
13591
13567
  };
13592
- function Dv(t) {
13568
+ function Mv(t) {
13593
13569
  return (e) => {
13594
13570
  const { model: s, status: r, KosModelLoader: o } = xc();
13595
13571
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, troubleContainer: s }) });
13596
13572
  };
13597
13573
  }
13598
- const ry = () => {
13574
+ const Zm = () => {
13599
13575
  const t = or.type, e = Q({
13600
13576
  modelId: t,
13601
13577
  modelType: or.type,
@@ -13613,13 +13589,13 @@ const ry = () => {
13613
13589
  };
13614
13590
  }, [e.model]), { ...e, inserted: s, updateAvailable: o, updates: i };
13615
13591
  };
13616
- function Cv(t) {
13592
+ function _v(t) {
13617
13593
  return (e) => {
13618
- const { model: s, status: r, KosModelLoader: o } = ry();
13594
+ const { model: s, status: r, KosModelLoader: o } = Zm();
13619
13595
  return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, usbUpdateContainer: s }) });
13620
13596
  };
13621
13597
  }
13622
- const Pv = ({ path: t, propKey: e }) => {
13598
+ const Ev = ({ path: t, propKey: e }) => {
13623
13599
  const { status: s } = Q({
13624
13600
  modelType: Fs.type,
13625
13601
  modelId: t,
@@ -13644,18 +13620,18 @@ const Pv = ({ path: t, propKey: e }) => {
13644
13620
  error: d,
13645
13621
  updateValue: h
13646
13622
  };
13647
- }, oy = (t, e) => {
13623
+ }, Qm = (t, e) => {
13648
13624
  switch (e.type) {
13649
13625
  case "UPDATE":
13650
13626
  return e.payload;
13651
13627
  default:
13652
13628
  return t;
13653
13629
  }
13654
- }, ny = ({
13630
+ }, Jm = ({
13655
13631
  configProperty: t,
13656
13632
  optionsTransformer: e
13657
13633
  }) => {
13658
- const [s, r] = E(!1), [o, n] = E(""), [i, a] = Jc(oy, {
13634
+ const [s, r] = E(!1), [o, n] = E(""), [i, a] = Jc(Qm, {
13659
13635
  value: String(t == null ? void 0 : t.value),
13660
13636
  displayValue: t == null ? void 0 : t.displayValue,
13661
13637
  significantValue: t == null ? void 0 : t.significantValue,
@@ -13714,32 +13690,32 @@ const Pv = ({ path: t, propKey: e }) => {
13714
13690
  error: o
13715
13691
  };
13716
13692
  };
13717
- function iy(t, e) {
13693
+ function Xm(t, e) {
13718
13694
  const s = e ?? (/* @__PURE__ */ new Date()).getFullYear(), r = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
13719
13695
  return t === 1 && (s % 4 === 0 && s % 100 !== 0 || s % 400 === 0) ? 29 : r[t] ?? 0;
13720
13696
  }
13721
- function Rv(t, e) {
13697
+ function Iv(t, e) {
13722
13698
  return new Date(t, e, 0).getDate();
13723
13699
  }
13724
- function ay(t, e) {
13725
- const s = iy(e, t), r = [];
13700
+ function ey(t, e) {
13701
+ const s = Xm(e, t), r = [];
13726
13702
  for (let o = 1; o <= s; o++)
13727
13703
  r.push(o);
13728
13704
  return r;
13729
13705
  }
13730
- function cy() {
13706
+ function ty() {
13731
13707
  return [...Array(12).keys()].map(
13732
13708
  (e) => new Date(0, e).getMonth()
13733
13709
  );
13734
13710
  }
13735
- function ly(t = [2018, 2028]) {
13711
+ function sy(t = [2018, 2028]) {
13736
13712
  const e = [];
13737
13713
  for (let s = t[0]; s <= t[1]; s++)
13738
13714
  e.push(s);
13739
13715
  return e;
13740
13716
  }
13741
- function dy(t, e = [2018, 2028]) {
13742
- const s = ly(e);
13717
+ function ry(t, e = [2018, 2028]) {
13718
+ const s = sy(e);
13743
13719
  return t === "long" ? s : s.map((r) => Number(r.toString().substring(2)));
13744
13720
  }
13745
13721
  function Ac(t = "numeric", e = "en-US") {
@@ -13749,7 +13725,7 @@ function Ac(t = "numeric", e = "en-US") {
13749
13725
  }).format;
13750
13726
  return [...Array(12).keys()].map((r) => s(new Date(Date.UTC(0, r, 1))));
13751
13727
  }
13752
- function xv({
13728
+ function Tv({
13753
13729
  locale: t = "en-US",
13754
13730
  year: e,
13755
13731
  month: s,
@@ -13774,10 +13750,10 @@ function xv({
13774
13750
  function we(t) {
13775
13751
  return t.toString().length === 2 ? new Date(Date.parse(`01 Jan 20${t}`)).getFullYear() : t;
13776
13752
  }
13777
- function Av(t) {
13753
+ function $v(t) {
13778
13754
  return typeof t == "string" ? new Date(Date.parse(`01 ${t.substring(0, 3)} 2023`)).getMonth() + 1 : t;
13779
13755
  }
13780
- function uy(t, e, s) {
13756
+ function oy(t, e, s) {
13781
13757
  const r = we(e), o = new Date(r, t, 1).getDay(), n = new Date(r, t + 1, 0).getDate();
13782
13758
  return [...Array(42).keys()].map((a) => a < o || a > n + o - 1 ? { label: "", value: 0, disabled: !0 } : s[a - o]);
13783
13759
  }
@@ -13788,13 +13764,13 @@ function vs(t, e, s) {
13788
13764
  function Ms(t, e) {
13789
13765
  return new Date(t, e, 0).getDate();
13790
13766
  }
13791
- function hy(t = "en-US", e = "short") {
13767
+ function ny(t = "en-US", e = "short") {
13792
13768
  const s = new Intl.DateTimeFormat(t, { weekday: e }).format;
13793
13769
  return [...Array(7).keys()].map(
13794
13770
  (r) => s(new Date(Date.UTC(2021, 5, r)))
13795
13771
  );
13796
13772
  }
13797
- function fy({
13773
+ function iy({
13798
13774
  locale: t = "en-US",
13799
13775
  year: e = (/* @__PURE__ */ new Date()).getFullYear(),
13800
13776
  month: s = (/* @__PURE__ */ new Date()).getMonth(),
@@ -13806,7 +13782,7 @@ function fy({
13806
13782
  dayFormat: a = "short"
13807
13783
  } = {}
13808
13784
  }) {
13809
- const c = Lc(n, r), d = gy(n, r, t), u = py(i, t), h = my(i, t), f = kc(e, s), p = by(e, s, t, o), y = My(s, e, p), b = wy(t, a);
13785
+ const c = Lc(n, r), d = ay(n, r, t), u = cy(i, t), h = ly(i, t), f = kc(e, s), p = uy(e, s, t, o), y = gy(s, e, p), b = hy(t, a);
13810
13786
  return {
13811
13787
  daysArray: f,
13812
13788
  monthsArray: u,
@@ -13820,11 +13796,11 @@ function fy({
13820
13796
  }
13821
13797
  function Lc(t = "long", e = [2018, 2028]) {
13822
13798
  return K(
13823
- () => dy(t, e),
13799
+ () => ry(t, e),
13824
13800
  [t, e]
13825
13801
  );
13826
13802
  }
13827
- function gy(t = "long", e = [2018, 2028], s = "en-US") {
13803
+ function ay(t = "long", e = [2018, 2028], s = "en-US") {
13828
13804
  const r = Lc(t, e);
13829
13805
  return K(
13830
13806
  () => r.map((n) => ({
@@ -13834,14 +13810,14 @@ function gy(t = "long", e = [2018, 2028], s = "en-US") {
13834
13810
  [s, r]
13835
13811
  );
13836
13812
  }
13837
- function py(t, e = "en-US") {
13813
+ function cy(t, e = "en-US") {
13838
13814
  return K(
13839
13815
  () => Ac(t, e),
13840
13816
  [t, e]
13841
13817
  );
13842
13818
  }
13843
- function my(t, e = "en-US") {
13844
- const s = K(() => cy(), []), r = K(
13819
+ function ly(t, e = "en-US") {
13820
+ const s = K(() => ty(), []), r = K(
13845
13821
  () => Ac(t, e),
13846
13822
  [t, e]
13847
13823
  );
@@ -13856,32 +13832,32 @@ function my(t, e = "en-US") {
13856
13832
  function kc(t, e) {
13857
13833
  const s = we(t);
13858
13834
  return K(
13859
- () => ay(s, e),
13835
+ () => ey(s, e),
13860
13836
  [e, s]
13861
13837
  );
13862
13838
  }
13863
- const yy = (t, e, s, r = []) => {
13839
+ const dy = (t, e, s, r = []) => {
13864
13840
  const o = new Date(t, e, s).getDay();
13865
13841
  return r.length > 0 && r.includes(o);
13866
13842
  };
13867
- function by(t, e, s = "en-US", r = []) {
13843
+ function uy(t, e, s = "en-US", r = []) {
13868
13844
  const o = kc(t, e);
13869
13845
  return K(
13870
13846
  () => o.map((i) => ({
13871
13847
  label: i.toLocaleString(s),
13872
13848
  value: i,
13873
- disabled: yy(t, e, i, r)
13849
+ disabled: dy(t, e, i, r)
13874
13850
  })),
13875
13851
  [r, s, e, o, t]
13876
13852
  );
13877
13853
  }
13878
- function wy(t = "en-US", e = "short") {
13854
+ function hy(t = "en-US", e = "short") {
13879
13855
  return K(
13880
- () => hy(t, e),
13856
+ () => ny(t, e),
13881
13857
  [t, e]
13882
13858
  );
13883
13859
  }
13884
- function vy({
13860
+ function fy({
13885
13861
  year: t = (/* @__PURE__ */ new Date()).getFullYear(),
13886
13862
  month: e = (/* @__PURE__ */ new Date()).getMonth(),
13887
13863
  day: s = (/* @__PURE__ */ new Date()).getDate(),
@@ -13890,14 +13866,14 @@ function vy({
13890
13866
  const o = e, n = new Date(t, o, s);
13891
13867
  return { formattedDate: He(n, r) };
13892
13868
  }
13893
- function My(t, e, s) {
13869
+ function gy(t, e, s) {
13894
13870
  return K(
13895
- () => uy(t, e, s),
13871
+ () => oy(t, e, s),
13896
13872
  [t, e, s]
13897
13873
  );
13898
13874
  }
13899
- var _y = /* @__PURE__ */ ((t) => (t.MMDDYY = "MMDDYY", t.DDMMYY = "DDMMYY", t.YYMMDD = "YYMMDD", t.YYDDMM = "YYDDMM", t))(_y || {});
13900
- function Lv({
13875
+ var py = /* @__PURE__ */ ((t) => (t.MMDDYY = "MMDDYY", t.DDMMYY = "DDMMYY", t.YYMMDD = "YYMMDD", t.YYDDMM = "YYDDMM", t))(py || {});
13876
+ function Ov({
13901
13877
  locale: t = "en-US",
13902
13878
  date: {
13903
13879
  year: e = (/* @__PURE__ */ new Date()).getFullYear(),
@@ -13936,7 +13912,7 @@ function Lv({
13936
13912
  daysOptionsArray: U,
13937
13913
  calendarDayArray: J,
13938
13914
  dayNamesArray: Ae
13939
- } = fy({
13915
+ } = iy({
13940
13916
  locale: t,
13941
13917
  year: u,
13942
13918
  yearRange: f,
@@ -13947,7 +13923,7 @@ function Lv({
13947
13923
  dayFormat: i
13948
13924
  },
13949
13925
  daysOfWeekFilter: d
13950
- }), { formattedDate: $e } = vy({
13926
+ }), { formattedDate: $e } = fy({
13951
13927
  year: u,
13952
13928
  month: y,
13953
13929
  day: w,
@@ -14011,7 +13987,7 @@ function Lv({
14011
13987
  }
14012
13988
  };
14013
13989
  }
14014
- function Ey({
13990
+ function my({
14015
13991
  date: t = /* @__PURE__ */ new Date(),
14016
13992
  dateFormat: e,
14017
13993
  timeFormat: s,
@@ -14038,10 +14014,10 @@ function Ey({
14038
14014
  );
14039
14015
  }, [t, s, h, d, u]), { formattedDate: i, formattedTime: o };
14040
14016
  }
14041
- const Ty = ({
14017
+ const yy = ({
14042
14018
  secondsFromMidnight: t = 0
14043
14019
  }) => {
14044
- const [e, s] = E(0), [r, o] = E(0), [n, i] = E(0), [a, c] = E(/* @__PURE__ */ new Date()), { formattedTime: d } = Ey({
14020
+ const [e, s] = E(0), [r, o] = E(0), [n, i] = E(0), [a, c] = E(/* @__PURE__ */ new Date()), { formattedTime: d } = my({
14045
14021
  date: a,
14046
14022
  options: {
14047
14023
  ignoreDateFormat: !0
@@ -14065,10 +14041,10 @@ const Ty = ({
14065
14041
  setSeconds: i
14066
14042
  }
14067
14043
  };
14068
- }, kv = ({
14044
+ }, Sv = ({
14069
14045
  configProperty: t
14070
14046
  }) => {
14071
- const { value: e } = ny({ configProperty: t }), s = parseInt(e || "0", 10), { hours: r, minutes: o, seconds: n, formattedTime: i, timeActions: a } = Ty({
14047
+ const { value: e } = Jm({ configProperty: t }), s = parseInt(e || "0", 10), { hours: r, minutes: o, seconds: n, formattedTime: i, timeActions: a } = yy({
14072
14048
  secondsFromMidnight: s
14073
14049
  }), c = nr();
14074
14050
  return O(() => {
@@ -14086,7 +14062,7 @@ const Ty = ({
14086
14062
  timeActions: a
14087
14063
  };
14088
14064
  };
14089
- function Fv(t, e = {}) {
14065
+ function Dv(t, e = {}) {
14090
14066
  const { intervalMs: s = 5 * 60 * 1e3, immediate: r = !0 } = e;
14091
14067
  O(() => {
14092
14068
  const o = () => {
@@ -14102,7 +14078,7 @@ function Fv(t, e = {}) {
14102
14078
  };
14103
14079
  }, [t, s, r]);
14104
14080
  }
14105
- const Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, children: t.format }, t.id), Nv = (t = Iy) => {
14081
+ const by = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, children: t.format }, t.id), Cv = (t = by) => {
14106
14082
  const [e, s] = E([]), [r, o] = E(), { model: n, ready: i } = Q({
14107
14083
  modelType: ne.type,
14108
14084
  modelId: ne.type,
@@ -14146,13 +14122,13 @@ const Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
14146
14122
  options: e
14147
14123
  }
14148
14124
  };
14149
- }, $y = (t) => /* @__PURE__ */ v("option", { title: t, value: t, children: t }, t), Fc = "kos:service:region:settings", Nc = "timeZone", Oy = `${Fc}-${Nc}`, Uv = (t = $y) => {
14125
+ }, wy = (t) => /* @__PURE__ */ v("option", { title: t, value: t, children: t }, t), Fc = "kos:service:region:settings", Nc = "timeZone", vy = `${Fc}-${Nc}`, Pv = (t = wy) => {
14150
14126
  const [e, s] = E([]), [r, o] = E(""), { model: n, ready: i } = Q({
14151
14127
  modelType: ne.type,
14152
14128
  modelId: ne.type,
14153
14129
  options: {}
14154
14130
  }), a = wt.factory(
14155
- Oy
14131
+ vy
14156
14132
  )({
14157
14133
  path: Fc,
14158
14134
  attribute: Nc
@@ -14190,13 +14166,13 @@ const Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
14190
14166
  options: e
14191
14167
  }
14192
14168
  };
14193
- }, Uc = "kos:service:region", jc = "regionId", Sy = `${Uc}-${jc}`, Dy = (t) => /* @__PURE__ */ v("option", { title: t, value: t, children: t }, t), Cy = (t = Dy) => {
14169
+ }, Uc = "kos:service:region", jc = "regionId", My = `${Uc}-${jc}`, _y = (t) => /* @__PURE__ */ v("option", { title: t, value: t, children: t }, t), Ey = (t = _y) => {
14194
14170
  const [e, s] = E([]), [r, o] = E("factory"), { model: n, ready: i } = Q({
14195
14171
  modelType: ne.type,
14196
14172
  modelId: ne.type,
14197
14173
  options: {}
14198
14174
  }), a = wt.factory(
14199
- Sy
14175
+ My
14200
14176
  )({
14201
14177
  path: Uc,
14202
14178
  attribute: jc
@@ -14219,7 +14195,7 @@ const Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
14219
14195
  const c = Z((d) => {
14220
14196
  var h;
14221
14197
  let u = "factory";
14222
- typeof d == "string" ? u = d : (h = d == null ? void 0 : d.target) != null && h.value && (u = d.target.value), u && Qp(u);
14198
+ typeof d == "string" ? u = d : (h = d == null ? void 0 : d.target) != null && h.value && (u = d.target.value), u && Gp(u);
14223
14199
  }, []);
14224
14200
  return {
14225
14201
  raw: (n == null ? void 0 : n.availableRegions) ?? [],
@@ -14233,7 +14209,7 @@ const Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
14233
14209
  options: e
14234
14210
  }
14235
14211
  };
14236
- }, Py = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, children: t.format }, t.id), jv = (t = Py) => {
14212
+ }, Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, children: t.format }, t.id), Rv = (t = Iy) => {
14237
14213
  const [e, s] = E([]), [r, o] = E(), { model: n, ready: i } = Q({
14238
14214
  modelType: ne.type,
14239
14215
  modelId: ne.type,
@@ -14277,10 +14253,10 @@ const Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
14277
14253
  options: e
14278
14254
  }
14279
14255
  };
14280
- }, Bv = (t, e) => K(() => Ai(t), e), Ry = {
14256
+ }, xv = (t, e) => K(() => Ai(t), e), Ty = {
14281
14257
  config: { attributes: !0, childList: !0, subtree: !0 }
14282
14258
  };
14283
- function Hv(t, e, s = Ry) {
14259
+ function Av(t, e, s = Ty) {
14284
14260
  const [r, o] = E(null);
14285
14261
  O(() => {
14286
14262
  if (!e || typeof e != "function")
@@ -14304,7 +14280,7 @@ function Hv(t, e, s = Ry) {
14304
14280
  };
14305
14281
  }, [r, t, s]);
14306
14282
  }
14307
- const xy = {
14283
+ const $y = {
14308
14284
  validateStart: function(t) {
14309
14285
  return !0;
14310
14286
  },
@@ -14316,10 +14292,10 @@ const xy = {
14316
14292
  name: "usePressGesture",
14317
14293
  group: "kos-hooks"
14318
14294
  });
14319
- function Kv({
14295
+ function Lv({
14320
14296
  onPressed: t,
14321
14297
  onRelease: e,
14322
- intersectionStrategy: s = xy
14298
+ intersectionStrategy: s = $y
14323
14299
  }) {
14324
14300
  const r = nr(!1), o = Xc({
14325
14301
  onDragStart: (c) => {
@@ -14347,8 +14323,8 @@ function Kv({
14347
14323
  })
14348
14324
  };
14349
14325
  }
14350
- const Ay = () => {
14351
- const [t, e] = E(!1), s = T.getInstance();
14326
+ const Oy = () => {
14327
+ const [t, e] = E(!1), s = I.getInstance();
14352
14328
  return O(() => {
14353
14329
  const r = Y(() => {
14354
14330
  s && s.reloading !== t && e(s.reloading);
@@ -14358,7 +14334,7 @@ const Ay = () => {
14358
14334
  };
14359
14335
  }, [s, t]), [t];
14360
14336
  };
14361
- function Ly(t = !1, e = "2-digit") {
14337
+ function Sy(t = !1, e = "2-digit") {
14362
14338
  return K(() => {
14363
14339
  const s = t ? 12 : 24;
14364
14340
  return Array.from({ length: s }, (r, o) => {
@@ -14382,7 +14358,7 @@ function Rn(t, e = "2-digit", s = 0, r = 0) {
14382
14358
  [t, s, r, e]
14383
14359
  );
14384
14360
  }
14385
- function ky(t = "en-US") {
14361
+ function Dy(t = "en-US") {
14386
14362
  return K(
14387
14363
  () => ["AM", "PM"].map((e) => {
14388
14364
  const s = new Intl.DateTimeFormat(t, {
@@ -14394,7 +14370,7 @@ function ky(t = "en-US") {
14394
14370
  [t]
14395
14371
  );
14396
14372
  }
14397
- function Fy({
14373
+ function Cy({
14398
14374
  formatOptions: {
14399
14375
  hour12: t = !0,
14400
14376
  hour: e = "2-digit",
@@ -14403,7 +14379,7 @@ function Fy({
14403
14379
  } = { hour12: !0, hour: "2-digit", minute: "2-digit", second: "2-digit" },
14404
14380
  locale: o = "en-US"
14405
14381
  }) {
14406
- const n = Ly(t, e), i = Rn(60, s), a = Rn(60, r), c = ky(o);
14382
+ const n = Sy(t, e), i = Rn(60, s), a = Rn(60, r), c = Dy(o);
14407
14383
  return {
14408
14384
  hourOptions: n,
14409
14385
  minuteOptions: i,
@@ -14411,10 +14387,10 @@ function Fy({
14411
14387
  amPmOptions: c
14412
14388
  };
14413
14389
  }
14414
- function Ny(t, e) {
14390
+ function Py(t, e) {
14415
14391
  return He(t, e);
14416
14392
  }
14417
- function Uy({
14393
+ function Ry({
14418
14394
  formatOptions: t,
14419
14395
  initialDate: e = /* @__PURE__ */ new Date(),
14420
14396
  locale: s = "en-US",
@@ -14438,7 +14414,7 @@ function Uy({
14438
14414
  }, []), d = Z((b) => {
14439
14415
  const w = new Date(b);
14440
14416
  n(w);
14441
- }, []), u = Ny(o, r), { hourOptions: h, minuteOptions: f, secondOptions: p, amPmOptions: y } = Fy({
14417
+ }, []), u = Py(o, r), { hourOptions: h, minuteOptions: f, secondOptions: p, amPmOptions: y } = Cy({
14442
14418
  formatOptions: t,
14443
14419
  locale: s
14444
14420
  });
@@ -14455,45 +14431,45 @@ function Uy({
14455
14431
  time: new Date(o)
14456
14432
  };
14457
14433
  }
14458
- const zv = (t) => {
14459
- const { regionModel: e } = Cy(), s = K(() => ({ hour12: e == null ? void 0 : e.is12HourTimeFormat }), [e == null ? void 0 : e.is12HourTimeFormat]);
14460
- return Uy({
14434
+ const kv = (t) => {
14435
+ const { regionModel: e } = Ey(), s = K(() => ({ hour12: e == null ? void 0 : e.is12HourTimeFormat }), [e == null ? void 0 : e.is12HourTimeFormat]);
14436
+ return Ry({
14461
14437
  ...t,
14462
14438
  locale: e == null ? void 0 : e.regionId,
14463
14439
  format: e == null ? void 0 : e.selectedTimeFormat,
14464
14440
  formatOptions: s
14465
14441
  });
14466
14442
  };
14467
- function Gv(t) {
14443
+ function Fv(t) {
14468
14444
  return (e) => {
14469
- const [s] = Ay();
14470
- return s ? /* @__PURE__ */ v(dm, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ v(t, { ...e });
14445
+ const [s] = Oy();
14446
+ return s ? /* @__PURE__ */ v(om, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ v(t, { ...e });
14471
14447
  };
14472
14448
  }
14473
14449
  const xn = g.createLogger({
14474
14450
  name: "studio-properties-service",
14475
14451
  group: "Services"
14476
- }), jy = "/api/kos/studio/properties", Bc = async (t) => {
14452
+ }), xy = "/api/kos/studio/properties", Bc = async (t) => {
14477
14453
  if (xn.debug("sending GET for studio-properties"), !t)
14478
14454
  throw xn.error("connectionId is undefined"), new Error("connectionId is undefined");
14479
14455
  return await xe.get(
14480
- jy,
14456
+ xy,
14481
14457
  {},
14482
14458
  {
14483
14459
  destinationAddress: t,
14484
14460
  timeout: 500
14485
14461
  }
14486
14462
  );
14487
- }, Vv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14463
+ }, Nv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14488
14464
  __proto__: null,
14489
14465
  getStudioProperties: Bc
14490
14466
  }, Symbol.toStringTag, { value: "Module" }));
14491
- var By = Object.defineProperty, Hy = Object.getOwnPropertyDescriptor, Ky = (t, e, s, r) => {
14492
- for (var o = r > 1 ? void 0 : r ? Hy(e, s) : e, n = t.length - 1, i; n >= 0; n--)
14493
- (i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
14494
- return r && o && By(e, s, o), o;
14467
+ var Ay = Object.getOwnPropertyDescriptor, Ly = (t, e, s, r) => {
14468
+ for (var o = r > 1 ? void 0 : r ? Ay(e, s) : e, n = t.length - 1, i; n >= 0; n--)
14469
+ (i = t[n]) && (o = i(o) || o);
14470
+ return o;
14495
14471
  };
14496
- const Hc = "studio-properties-model", zy = "/kos/studio/properties", An = {
14472
+ const Hc = "studio-properties-model", ky = "/kos/studio/properties", An = {
14497
14473
  "kos.studio.tool.legacy": 1
14498
14474
  };
14499
14475
  let ao = class {
@@ -14518,7 +14494,7 @@ let ao = class {
14518
14494
  }
14519
14495
  async initializePropertiesSession() {
14520
14496
  this.unsubscribe = Ft.getInstance().subscribeTopic({
14521
- topic: zy,
14497
+ topic: ky,
14522
14498
  destinationAddress: this.connectionId,
14523
14499
  callback: (s) => {
14524
14500
  this.logger.error(
@@ -14545,10 +14521,10 @@ let ao = class {
14545
14521
  return Ai(() => this.get(t));
14546
14522
  }
14547
14523
  };
14548
- ao = Ky([
14524
+ ao = Ly([
14549
14525
  P(Hc)
14550
14526
  ], ao);
14551
- const Yv = new Te({
14527
+ const Uv = new Ie({
14552
14528
  class: ao,
14553
14529
  type: Hc
14554
14530
  });
@@ -14558,37 +14534,37 @@ export {
14558
14534
  lh as BrowserKosRouter,
14559
14535
  Ji as BrowserRouter,
14560
14536
  zt as CanvasDispatcher,
14561
- Pw as CanvasDispatcherServices,
14537
+ Ew as CanvasDispatcherServices,
14562
14538
  Ga as CanvasRenderer,
14563
- gv as CanvasStreamer,
14564
- Um as CanvasStreamerBase,
14539
+ iv as CanvasStreamer,
14540
+ Rm as CanvasStreamerBase,
14565
14541
  Es as ChildModels,
14566
- Yp as CompanionDecoratorMixin,
14542
+ Bp as CompanionDecoratorMixin,
14567
14543
  Kr as CompanionParentModel,
14568
14544
  Fs as ConfigBean,
14569
- Fw as CoreExtensionManager,
14545
+ Dw as CoreExtensionManager,
14570
14546
  mc as CoreModels,
14571
- Em as CreateModelTranslationsContext,
14572
- ov as CreateModelTranslationsProvider,
14573
- _y as DateDisplayFormat,
14574
- pb as DateHelpers,
14547
+ ym as CreateModelTranslationsContext,
14548
+ Zw as CreateModelTranslationsProvider,
14549
+ py as DateDisplayFormat,
14550
+ ab as DateHelpers,
14575
14551
  H as DependencyLifecycle,
14576
14552
  L as DependencyModels,
14577
14553
  ro as Device,
14578
- Rw as DeviceServices,
14579
- xy as DomIntersectionStrategy,
14554
+ Iw as DeviceServices,
14555
+ $y as DomIntersectionStrategy,
14580
14556
  Gn as EVENT_KOS_MODEL_READY,
14581
- dw as EVENT_TROUBLE_ADDED,
14582
- uw as EVENT_TROUBLE_REMOVED,
14557
+ sw as EVENT_TROUBLE_ADDED,
14558
+ rw as EVENT_TROUBLE_REMOVED,
14583
14559
  te as EXTENSION_CANVAS_RENDERER,
14584
14560
  kl as EXTENSION_FEATURE_FLAG_RESOLVER,
14585
14561
  Zr as EXTENSION_TROUBLE_DATA_MAPPER,
14586
14562
  br as EXTENSION_TROUBLE_MAPPER,
14587
- hm as ErrorBoundaryWithFallback,
14588
- nb as EventBus,
14589
- ib as EventBusFunctional,
14590
- ab as EventBusState,
14591
- I as ExtensionManager,
14563
+ im as ErrorBoundaryWithFallback,
14564
+ Qy as EventBus,
14565
+ Jy as EventBusFunctional,
14566
+ Xy as EventBusState,
14567
+ T as ExtensionManager,
14592
14568
  af as FUTURE_CONTAINER_MODEL_TYPE,
14593
14569
  Bh as FUTURE_MODEL_TYPE,
14594
14570
  ki as FUTURE_NOT_ASSIGNED,
@@ -14618,162 +14594,162 @@ export {
14618
14594
  Le as HttpRouteHandlers,
14619
14595
  Hr as KOS_MODEL_ID,
14620
14596
  na as KeyValue,
14621
- ww as KeyValueServices,
14597
+ uw as KeyValueServices,
14622
14598
  ie as Kos,
14623
14599
  wt as KosConfigPropertySpec,
14624
14600
  Pi as KosContainerIndex,
14625
14601
  nh as KosContextBean,
14626
14602
  G as KosContextManager,
14627
- T as KosCore,
14603
+ I as KosCore,
14628
14604
  Me as KosCoreModelPropertyMapper,
14629
14605
  Ri as KosDataContainer,
14630
- $b as KosDependencyTypes,
14631
- mb as KosExtensionUtils,
14606
+ bb as KosDependencyTypes,
14607
+ cb as KosExtensionUtils,
14632
14608
  Nl as KosFeatureFlags,
14633
14609
  Ud as KosFetchMethods,
14634
14610
  pi as KosGlobalConfig,
14635
- Ii as KosHttpRouteManager,
14611
+ Ti as KosHttpRouteManager,
14636
14612
  g as KosLog,
14637
14613
  $f as KosLogManager,
14638
- vw as KosLogManagerServices,
14614
+ hw as KosLogManagerServices,
14639
14615
  al as KosMockEvents,
14640
14616
  hu as KosModel,
14641
- sv as KosModelCollectionProvider,
14617
+ qw as KosModelCollectionProvider,
14642
14618
  Re as KosModelContainer,
14643
14619
  Uo as KosModelContext,
14644
14620
  x as KosModelEvents,
14645
14621
  Ds as KosModelFactory,
14646
14622
  _r as KosModelFutureContainerMixin,
14647
- Mm as KosModelLoader,
14648
- _m as KosModelLoaderDisplay,
14623
+ pm as KosModelLoader,
14624
+ mm as KosModelLoaderDisplay,
14649
14625
  yu as KosModelManager,
14650
- pm as KosModelProvider,
14651
- Te as KosModelRegistrationFactory,
14626
+ lm as KosModelProvider,
14627
+ Ie as KosModelRegistrationFactory,
14652
14628
  Dn as KosModelRegistry,
14653
14629
  m as KosModelState,
14654
14630
  Vl as KosModelSymbol,
14655
- Yb as KosModelVisitor,
14631
+ Ub as KosModelVisitor,
14656
14632
  qu as KosObservableData,
14657
- rw as KosRegistration,
14658
- ow as KosSingletonRegistration,
14633
+ Wb as KosRegistration,
14634
+ Zb as KosSingletonRegistration,
14659
14635
  qr as KosTime,
14660
14636
  Sc as KosTimeContext,
14661
- iv as KosTimeProvider,
14662
- Mw as KosTimeServices,
14663
- Xp as KosTimer,
14637
+ Jw as KosTimeProvider,
14638
+ fw as KosTimeServices,
14639
+ Yp as KosTimer,
14664
14640
  ch as KosToken,
14665
- hv as KosTranslationProvider,
14666
- zg as KosTranslations,
14641
+ ov as KosTranslationProvider,
14642
+ Bg as KosTranslations,
14667
14643
  ou as KosWSTransportStatus,
14668
14644
  ar as KosWsEvents,
14669
- Mb as LOADER_FEATURE_FLAG,
14645
+ fb as LOADER_FEATURE_FLAG,
14670
14646
  nl as LOGIN_HOST,
14671
- ob as LOGIN_URL,
14672
- dm as LoadingMessage,
14647
+ Zy as LOGIN_URL,
14648
+ om as LoadingMessage,
14673
14649
  Hs as LogBlock,
14674
14650
  Co as LogBlockContainer,
14675
- Is as LogConfig,
14651
+ Ts as LogConfig,
14676
14652
  xs as LogStream,
14677
14653
  yr as LogStreamContainer,
14678
- _w as LogStreamServices,
14654
+ gw as LogStreamServices,
14679
14655
  mu as MODEL_DELETION_DELAY,
14680
14656
  Yu as MiddlewareChain,
14681
14657
  it as ModelEffects,
14682
- mw as MultipleFutureHandler,
14658
+ cw as MultipleFutureHandler,
14683
14659
  jo as NestedModelContext,
14684
14660
  rc as NetworkInterface,
14685
14661
  sr as NetworkInterfaceContainer,
14686
- xw as NetworkInterfaceServices,
14662
+ Tw as NetworkInterfaceServices,
14687
14663
  ze as ObservableData,
14688
14664
  Qr as Ota,
14689
- vv as OutsideAlerter,
14690
- yb as PLUGIN_EXTENSION_NAME,
14665
+ hv as OutsideAlerter,
14666
+ lb as PLUGIN_EXTENSION_NAME,
14691
14667
  il as PORT,
14692
14668
  El as PROFILE_LOG_DEBUG,
14693
- Tl as PROFILE_LOG_INFO,
14694
- wb as PROFILE_RELAX_STORE_VALIDATION,
14669
+ Il as PROFILE_LOG_INFO,
14670
+ ub as PROFILE_RELAX_STORE_VALIDATION,
14695
14671
  _l as PROFILE_TOOLS_PREVIEW,
14696
- Ts as ParentModel,
14697
- bb as PluginExtensionManager,
14698
- ev as ProgressBar,
14672
+ Is as ParentModel,
14673
+ db as PluginExtensionManager,
14674
+ Vw as ProgressBar,
14699
14675
  Sr as ReferenceConfig,
14700
14676
  ne as RegionInfo,
14701
- fw as RegionServices,
14677
+ nw as RegionServices,
14702
14678
  C as RegistrationManager,
14703
- kw as Registry,
14679
+ Sw as Registry,
14704
14680
  Hn as STATUS,
14705
14681
  ae as ServiceFactory,
14706
14682
  Pe as SingletonKosModelRegistrationFactory,
14707
14683
  Xr as SoftwareInfo,
14708
14684
  Cc as SoftwareInfoContext,
14709
- lv as SoftwareInfoProvider,
14710
- Tw as SoftwareInfoServices,
14685
+ tv as SoftwareInfoProvider,
14686
+ mw as SoftwareInfoServices,
14711
14687
  Ys as StateBean,
14712
- Iw as StateBeanServices,
14688
+ yw as StateBeanServices,
14713
14689
  La as StateProp,
14714
- $w as StatePropServices,
14690
+ bw as StatePropServices,
14715
14691
  io as StorageDevice,
14716
14692
  Vt as StorageDeviceContainer,
14717
- Aw as StorageDeviceServices,
14718
- Yv as StudioProperties,
14719
- Vv as StudioPropertiesServices,
14693
+ $w as StorageDeviceServices,
14694
+ Uv as StudioProperties,
14695
+ Nv as StudioPropertiesServices,
14720
14696
  oe as SubscriptionHandlers,
14721
14697
  Mc as TIMER_END,
14722
14698
  wc as TIMER_EVENT,
14723
14699
  vc as TOPIC_TIMER_TICK_EVENT,
14724
- em as TimerManager,
14725
- Pm as TokenContext,
14726
- uv as TokenProvider,
14700
+ qp as TimerManager,
14701
+ Tm as TokenContext,
14702
+ rv as TokenProvider,
14727
14703
  Cs as Topics,
14728
- Tv as Trans,
14704
+ mv as Trans,
14729
14705
  Cr as TransitionMap,
14730
14706
  _i as Transitions,
14731
14707
  so as Translation,
14732
14708
  ke as TranslationContainer,
14733
14709
  Rc as TranslationContainerContext,
14734
- Sw as TranslationContext,
14710
+ vw as TranslationContext,
14735
14711
  en as TransportFactory,
14736
14712
  Gs as Trouble,
14737
14713
  Ht as TroubleContainer,
14738
- Ew as TroubleServices,
14714
+ pw as TroubleServices,
14739
14715
  ge as Troubles,
14740
14716
  gc as UsbUpdate,
14741
14717
  or as UsbUpdateContainer,
14742
- Lw as UsbUpdateServices,
14743
- Gg as WS_EVENT_TYPE,
14718
+ Ow as UsbUpdateServices,
14719
+ Hg as WS_EVENT_TYPE,
14744
14720
  Os as WebSocketEvents,
14745
14721
  Ft as WebSocketTransport,
14746
14722
  Ba as WsEventFactory,
14747
14723
  Kt as WsEventModel,
14748
- im as acceptOrgInvitation,
14724
+ em as acceptOrgInvitation,
14749
14725
  gl as addDaysToDate,
14750
14726
  Wh as addFuture,
14751
14727
  fl as addMonthsToDate,
14752
14728
  tf as api,
14753
- lb as applyMixins,
14754
- db as arraysEqual,
14755
- hw as buildConfigBeanModel,
14729
+ tb as applyMixins,
14730
+ sb as arraysEqual,
14731
+ ow as buildConfigBeanModel,
14756
14732
  qi as buildFuture,
14757
14733
  Qh as buildFutureModel,
14758
14734
  Zh as cancelFuture,
14759
- cw as checkAppsStarted,
14735
+ ew as checkAppsStarted,
14760
14736
  Gi as convert,
14761
- cb as convertFileSizeRaw,
14762
- gw as convertWithUnits,
14737
+ eb as convertFileSizeRaw,
14738
+ iw as convertWithUnits,
14763
14739
  Hd as createBaseMessage,
14764
14740
  Vd as createBroadcastMessageResponse,
14765
- Xw as createCancellablePromise,
14741
+ Gw as createCancellablePromise,
14766
14742
  Si as createClient,
14767
14743
  Bd as createFosBaseMessage,
14768
14744
  cs as createHeaders,
14769
14745
  Yd as createKosHtpMessageResponse,
14770
14746
  zd as createKosMessage,
14771
14747
  qd as createKosMessageResponse,
14772
- jw as createKosModelFutureManager,
14773
- Bw as createLazyKosModelFutureManager,
14748
+ Rw as createKosModelFutureManager,
14749
+ xw as createLazyKosModelFutureManager,
14774
14750
  qe as createMessageBody,
14775
14751
  bd as createModelDependency,
14776
- Eb as createOptionKey,
14752
+ pb as createOptionKey,
14777
14753
  yt as createPropKey,
14778
14754
  ls as createReadableStream,
14779
14755
  jd as createStudioMessage,
@@ -14788,8 +14764,8 @@ export {
14788
14764
  as as executeDependentModelLifecycle,
14789
14765
  vd as executeListLifecycle,
14790
14766
  od as extractTrailingWildcard,
14791
- mv as fetchModel,
14792
- Hb as findModel,
14767
+ cv as fetchModel,
14768
+ Ab as findModel,
14793
14769
  Mu as findModels,
14794
14770
  pl as formatDate,
14795
14771
  hl as formatDateSince,
@@ -14797,91 +14773,91 @@ export {
14797
14773
  ml as formatTime,
14798
14774
  ed as get,
14799
14775
  _u as getAllKosCompanionModels,
14800
- uy as getCalendarMonthArray,
14801
- Wp as getCompanionMixin,
14776
+ oy as getCalendarMonthArray,
14777
+ Kp as getCompanionMixin,
14802
14778
  mh as getConfigBean,
14803
- hy as getDayStrings,
14804
- Rv as getDays,
14805
- ay as getDaysArray,
14779
+ ny as getDayStrings,
14780
+ Iv as getDays,
14781
+ ey as getDaysArray,
14806
14782
  di as getDaysInMonth,
14807
14783
  wd as getDependenciesByLifecycle,
14808
- xv as getFormattedDate,
14809
- Av as getFormattedMonth,
14784
+ Tv as getFormattedDate,
14785
+ $v as getFormattedMonth,
14810
14786
  Ac as getFormattedMonthsArray,
14811
14787
  we as getFormattedYear,
14812
- dy as getFormattedYearsArray,
14813
- yw as getFutures,
14788
+ ry as getFormattedYearsArray,
14789
+ lw as getFutures,
14814
14790
  sd as getHttpRouteHandlers,
14815
- Kb as getKosCompanionModel,
14816
- Lg as getKosLocalizationDescriptor,
14791
+ Lb as getKosCompanionModel,
14792
+ xg as getKosLocalizationDescriptor,
14817
14793
  Cl as getKosMessageLogging,
14818
14794
  vu as getKosModel,
14819
14795
  Se as getKosModelSync,
14820
- Bb as getKosModelType,
14796
+ xb as getKosModelType,
14821
14797
  oh as getKosSessionKey,
14822
14798
  Ms as getLastDayOfMonth,
14823
- Ow as getLocalizationDescriptor,
14799
+ ww as getLocalizationDescriptor,
14824
14800
  Dl as getLogLevel,
14825
14801
  Pl as getLogMessageToStudio,
14826
14802
  Jo as getMessageBody,
14827
- cy as getMonthsArray,
14828
- zb as getObservableCompanions,
14803
+ ty as getMonthsArray,
14804
+ kb as getObservableCompanions,
14829
14805
  ye as getQueryParams,
14830
- lw as getStartedApps,
14831
- Ag as getTranslations,
14832
- ly as getYearsArray,
14833
- qp as hasCompanionMixin,
14806
+ tw as getStartedApps,
14807
+ Rg as getTranslations,
14808
+ sy as getYearsArray,
14809
+ Hp as hasCompanionMixin,
14834
14810
  hh as hasDecimals,
14835
14811
  zr as hasHttpRouteHandlers,
14836
- Hw as hasKosModelFutureSupport,
14812
+ Aw as hasKosModelFutureSupport,
14837
14813
  Vo as hasKosProfile,
14838
14814
  nd as hasTrailingWildcard,
14839
14815
  jl as hslStringToHex,
14840
14816
  Ul as hslToHex,
14841
- Sb as httpDelete,
14842
- nv as initKosProvider,
14843
- Gw as inspectCompanionMixin,
14844
- Kw as inspectFutureObservability,
14817
+ vb as httpDelete,
14818
+ Qw as initKosProvider,
14819
+ Fw as inspectCompanionMixin,
14820
+ Lw as inspectFutureObservability,
14845
14821
  Ni as isBoolean,
14846
14822
  fu as isKosCompanionTypeFactory,
14847
14823
  $s as isKosDataModel,
14848
- vb as isKosLoggingEnabled,
14824
+ hb as isKosLoggingEnabled,
14849
14825
  be as isKosModel,
14850
14826
  Ei as isKosModelContainer,
14851
14827
  Gr as isKosModelReady,
14852
14828
  li as isLeapYear,
14853
- Xb as isLocalRefId,
14829
+ Gb as isLocalRefId,
14854
14830
  Mo as isNumber,
14855
- xb as isPrintable,
14856
- Dw as isTroubleAware,
14831
+ Tb as isPrintable,
14832
+ Mw as isTroubleAware,
14857
14833
  vs as isValidDate,
14858
14834
  re as kosAction,
14859
14835
  Y as kosAutoEffect,
14860
14836
  Ee as kosChild,
14861
- Tb as kosCompanion,
14862
- Xv as kosComponent,
14837
+ mb as kosCompanion,
14838
+ Gv as kosComponent,
14863
14839
  Ai as kosComputed,
14864
14840
  Eo as kosConfigBean,
14865
- pw as kosConfigProperty,
14866
- Ib as kosContext,
14841
+ aw as kosConfigProperty,
14842
+ yb as kosContext,
14867
14843
  Xt as kosDependency,
14868
14844
  uh as kosEffect,
14869
- Ie as kosFetch,
14870
- Tc as kosFuture,
14871
- Db as kosLogger,
14845
+ Te as kosFetch,
14846
+ Ic as kosFuture,
14847
+ Mb as kosLogger,
14872
14848
  P as kosModel,
14873
14849
  rd as kosModelEffect,
14874
14850
  Li as kosObservable,
14875
14851
  bo as kosParentAware,
14876
- Cb as kosReference,
14877
- Yw as kosStateBean,
14878
- qw as kosStateProp,
14879
- Pb as kosSubscribe,
14852
+ _b as kosReference,
14853
+ Uw as kosStateBean,
14854
+ jw as kosStateProp,
14855
+ Eb as kosSubscribe,
14880
14856
  k as kosTopicHandler,
14881
14857
  un as kosWhen,
14882
- rm as login,
14883
- Zv as makeAutoObservable,
14884
- Qv as makeObservable,
14858
+ Qp as login,
14859
+ Hv as makeAutoObservable,
14860
+ Kv as makeObservable,
14885
14861
  vh as mapConfigBeanModelToDto,
14886
14862
  Yo as mapDataToModel,
14887
14863
  bh as mapDtoToConfigBeanModel,
@@ -14892,137 +14868,137 @@ export {
14892
14868
  es as modelFactory,
14893
14869
  hd as modelTypeEventTopicFactory,
14894
14870
  ph as modifyConfigBean,
14895
- bw as modifyFuture,
14896
- Qb as pairedClientHeartbeat,
14871
+ dw as modifyFuture,
14872
+ Kb as pairedClientHeartbeat,
14897
14873
  Zu as pipe,
14898
14874
  fr as post,
14899
- Vb as preloadKosModel,
14900
- gb as processId,
14901
- qb as processMiddleware,
14902
- Ob as put,
14903
- Gb as registerCompanionModel,
14904
- Gp as registerCoreModels,
14875
+ Nb as preloadKosModel,
14876
+ ib as processId,
14877
+ jb as processMiddleware,
14878
+ wb as put,
14879
+ Fb as registerCompanionModel,
14880
+ Up as registerCoreModels,
14905
14881
  ur as registerExtensionPoint,
14906
- Ab as registerHttpRoutes,
14907
- Iu as registerKosModel,
14908
- Tu as registerLegacyModel,
14882
+ $b as registerHttpRoutes,
14883
+ Tu as registerKosModel,
14884
+ Iu as registerLegacyModel,
14909
14885
  wu as resetKosModel,
14910
- nm as resetPassword,
14886
+ Xp as resetPassword,
14911
14887
  zu as resolveBaseUrl,
14912
14888
  _d as resolveChild,
14913
- ub as resolveContainerDeltas,
14914
- fb as resolveItemListDeltas,
14889
+ rb as resolveContainerDeltas,
14890
+ nb as resolveItemListDeltas,
14915
14891
  on as resolveKosCompanion,
14916
- sw as resolveKosContext,
14892
+ qb as resolveKosContext,
14917
14893
  Ol as resolveKosProfiles,
14918
- hb as resolveListDeltas,
14894
+ ob as resolveListDeltas,
14919
14895
  ue as resolveServiceUrl,
14920
14896
  Bl as resolveVariable,
14921
- Jb as retryWithExponentialBackoff,
14922
- iw as sendAsyncIntent,
14923
- Nb as sendBroadcastMessage,
14924
- nw as sendIntent,
14897
+ zb as retryWithExponentialBackoff,
14898
+ Jb as sendAsyncIntent,
14899
+ Cb as sendBroadcastMessage,
14900
+ Qb as sendIntent,
14925
14901
  Zd as sendKosHttpMessageResponse,
14926
- Lb as sendKosMessage,
14902
+ Ob as sendKosMessage,
14927
14903
  Wd as sendKosMessageResponse,
14928
- ew as sendRequest,
14929
- Fb as sendStudioMessage,
14930
- kb as sendStudioMessageRequest,
14931
- zw as setupCompanionDecoratorMixin,
14932
- Vp as setupCompleteFutureSupport,
14933
- Nw as setupMinimalFutureSupport,
14934
- om as startPasswordReset,
14935
- Qm as stringComponentInsert,
14936
- Jw as studioAcceptOrgInvitation,
14937
- Ww as studioLogin,
14938
- Qw as studioResetPassword,
14939
- Zw as studioStartPasswordReset,
14940
- Vw as subscribeStore,
14941
- tw as syncPublish,
14904
+ Vb as sendRequest,
14905
+ Db as sendStudioMessage,
14906
+ Sb as sendStudioMessageRequest,
14907
+ kw as setupCompanionDecoratorMixin,
14908
+ jp as setupCompleteFutureSupport,
14909
+ Cw as setupMinimalFutureSupport,
14910
+ Jp as startPasswordReset,
14911
+ zm as stringComponentInsert,
14912
+ zw as studioAcceptOrgInvitation,
14913
+ Bw as studioLogin,
14914
+ Kw as studioResetPassword,
14915
+ Hw as studioStartPasswordReset,
14916
+ Nw as subscribeStore,
14917
+ Yb as syncPublish,
14942
14918
  gd as transitionToActive,
14943
14919
  yd as transitionToInit,
14944
14920
  md as transitionToLoad,
14945
14921
  pd as transitionToReady,
14946
- Rb as transitionToUnload,
14947
- Cw as troubleByTypeReducer,
14948
- og as troubleDataFactory,
14949
- jb as unloadKosModel,
14950
- Zb as updateCompanionModelRegistration,
14951
- Wb as updateModelRegistration,
14952
- Qp as updateRegion,
14922
+ Ib as transitionToUnload,
14923
+ _w as troubleByTypeReducer,
14924
+ rg as troubleDataFactory,
14925
+ Rb as unloadKosModel,
14926
+ Hb as updateCompanionModelRegistration,
14927
+ Bb as updateModelRegistration,
14928
+ Gp as updateRegion,
14953
14929
  Cn as updateTimeZone,
14954
- ky as useAmPmValues,
14955
- My as useCalendarDayArray,
14956
- Pv as useConfigBean,
14957
- ny as useConfigProperty,
14958
- tv as useContextModel,
14959
- bm as useContextModelHierarchy,
14960
- fy as useDateArrays,
14961
- Lv as useDateProps,
14962
- kv as useDateRelativeConfig,
14963
- Ty as useDateRelativeData,
14964
- wy as useDayNames,
14965
- by as useDayOptions,
14930
+ Dy as useAmPmValues,
14931
+ gy as useCalendarDayArray,
14932
+ Ev as useConfigBean,
14933
+ Jm as useConfigProperty,
14934
+ Yw as useContextModel,
14935
+ hm as useContextModelHierarchy,
14936
+ iy as useDateArrays,
14937
+ Ov as useDateProps,
14938
+ Sv as useDateRelativeConfig,
14939
+ yy as useDateRelativeData,
14940
+ hy as useDayNames,
14941
+ uy as useDayOptions,
14966
14942
  kc as useDays,
14967
- Hm as useDevice,
14968
- vy as useFormattedDate,
14969
- Ny as useFormattedTime,
14970
- Fv as useFunctionWarmup,
14971
- Ly as useHourValues,
14972
- Im as useKosCore,
14973
- Nv as useKosDateFormats,
14943
+ Lm as useDevice,
14944
+ fy as useFormattedDate,
14945
+ Py as useFormattedTime,
14946
+ Dv as useFunctionWarmup,
14947
+ Sy as useHourValues,
14948
+ wm as useKosCore,
14949
+ Cv as useKosDateFormats,
14974
14950
  Q as useKosModel,
14975
- Cy as useKosRegions,
14951
+ Ey as useKosRegions,
14976
14952
  Oc as useKosTime,
14977
- av as useKosTimeContext,
14978
- jv as useKosTimeFormats,
14979
- Uv as useKosTimeZones,
14980
- Iv as useKosTranslation,
14981
- fv as useKosTranslationContext,
14982
- Bv as useLocalComputed,
14983
- rv as useModelFromHierarchy,
14984
- py as useMonths,
14985
- my as useMonthsOptions,
14986
- Hv as useMutationObserver,
14987
- Km as useNetworkInterfaceContainer,
14988
- zm as useOta,
14989
- Kv as usePressGesture,
14990
- Ay as useProjectReload,
14991
- zv as useRegionTimeProps,
14992
- Ey as useRegionalTimeDate,
14953
+ Xw as useKosTimeContext,
14954
+ Rv as useKosTimeFormats,
14955
+ Pv as useKosTimeZones,
14956
+ yv as useKosTranslation,
14957
+ nv as useKosTranslationContext,
14958
+ xv as useLocalComputed,
14959
+ Ww as useModelFromHierarchy,
14960
+ cy as useMonths,
14961
+ ly as useMonthsOptions,
14962
+ Av as useMutationObserver,
14963
+ km as useNetworkInterfaceContainer,
14964
+ Fm as useOta,
14965
+ Lv as usePressGesture,
14966
+ Oy as useProjectReload,
14967
+ kv as useRegionTimeProps,
14968
+ my as useRegionalTimeDate,
14993
14969
  Dc as useSoftwareInfo,
14994
- dv as useSoftwareInfoContext,
14995
- Mv as useStateProperty,
14996
- Vm as useStorageDeviceContainer,
14970
+ sv as useSoftwareInfoContext,
14971
+ fv as useStateProperty,
14972
+ Um as useStorageDeviceContainer,
14997
14973
  Pn as useSuspenseData,
14998
- Fy as useTimeOptions,
14999
- Uy as useTimeProps,
14974
+ Cy as useTimeOptions,
14975
+ Ry as useTimeProps,
15000
14976
  Rn as useTimeValues,
15001
- Ev as useTimer,
15002
- sy as useTranslationContainer,
14977
+ pv as useTimer,
14978
+ Wm as useTranslationContainer,
15003
14979
  xc as useTroubleContainerModel,
15004
- Ov as useTroubleModel,
15005
- Sv as useTroublePresence,
15006
- ry as useUsbUpdateContainer,
14980
+ wv as useTroubleModel,
14981
+ vv as useTroublePresence,
14982
+ Zm as useUsbUpdateContainer,
15007
14983
  Lc as useYears,
15008
- gy as useYearsOptions,
14984
+ ay as useYearsOptions,
15009
14985
  Jt as uuid,
15010
- _b as variableToHex,
15011
- aw as waitForAppToStart,
14986
+ gb as variableToHex,
14987
+ Xb as waitForAppToStart,
15012
14988
  dh as waitForAppsToStart,
15013
14989
  Ci as waitForRequest,
15014
14990
  fe as whenReady,
15015
- pv as withDevice,
15016
- Uw as withKosModelFutures,
15017
- yv as withKosTime,
15018
- bv as withNetworkInterfaceContainer,
15019
- wv as withOta,
15020
- Gv as withProjectReloading,
15021
- cv as withSoftwareInfo,
15022
- _v as withStorageDeviceContainer,
15023
- $v as withTranslationContainer,
15024
- Dv as withTroubleContainer,
15025
- Cv as withUsbUpdateContainer,
14991
+ av as withDevice,
14992
+ Pw as withKosModelFutures,
14993
+ lv as withKosTime,
14994
+ dv as withNetworkInterfaceContainer,
14995
+ uv as withOta,
14996
+ Fv as withProjectReloading,
14997
+ ev as withSoftwareInfo,
14998
+ gv as withStorageDeviceContainer,
14999
+ bv as withTranslationContainer,
15000
+ Mv as withTroubleContainer,
15001
+ _v as withUsbUpdateContainer,
15026
15002
  ci as wrapPromise
15027
15003
  };
15028
15004
  //# sourceMappingURL=index.js.map