@kosdev-code/kos-ui-sdk 0.1.0-dev.5784 → 0.1.0-dev.5789

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
@@ -1,7 +1,7 @@
1
1
  var rd = Object.defineProperty;
2
2
  var nd = (t, e, s) => e in t ? rd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var l = (t, e, s) => (nd(t, typeof e != "symbol" ? e + "" : e, s), s);
4
- import C from "loglevel";
4
+ import D from "loglevel";
5
5
  import { makeAutoObservable as xe, observable as se, makeObservable as Eo, action as Mo, createAtom as od, autorun as es, runInAction as X, observe as _a, isComputedProp as id, reaction as ts, when as qs, ObservableMap as _o, computed as Ta, isObservable as ad } from "mobx";
6
6
  import { makeAutoObservable as bS, makeObservable as vS } from "mobx";
7
7
  import { createMachine as $s, invoke as Ne, state as J, transition as P, action as K, interpret as Ss, immediate as Bt } from "robot3";
@@ -10,57 +10,57 @@ import { jsx as w, jsxs as Os, Fragment as ld } from "@emotion/react/jsx-runtime
10
10
  import To from "@emotion/styled";
11
11
  import { createPortal as $a } from "react-dom";
12
12
  import { keyframes as ud, css as Ft } from "@emotion/react";
13
- import St, { createContext as zs, useContext as wt, useState as E, useCallback as re, useMemo as Y, Suspense as dd, useEffect as S, useRef as bt, useReducer as hd } from "react";
13
+ import St, { createContext as zs, useContext as wt, useState as E, useCallback as ne, useMemo as W, Suspense as dd, useEffect as S, useRef as bt, useReducer as hd } from "react";
14
14
  import { observer as Sa } from "mobx-react-lite";
15
15
  import { observer as ES } from "mobx-react-lite";
16
16
  import { useGesture as fd } from "@use-gesture/react";
17
17
  const $o = "method", pd = "topic", Ks = "url", nn = "request-id", So = "response-id", Oa = "status", it = "dst-addr", gd = "src-addr", Xe = "type", Ia = "ordered", Ca = "tracker", md = "Content-Type", yd = "Cache-Control", bd = "requestId", vd = process.env.KOS_LOGIN_URL || "http://localhost", wd = process.env.KOS_APP_PORT || "8080", d_ = `${vd}:${wd}`, Qn = "{MODEL_ID}";
18
18
  var on = /* @__PURE__ */ ((t) => (t.SEND = "/ws/log/msg/send", t.RECEIVED = "/ws/log/msg/receive", t))(on || {}), Ed = /* @__PURE__ */ ((t) => (t.MSG_RECEIVE = "/mock/msg/receive", t))(Ed || {});
19
19
  const Da = "/kos/model/ready/";
20
- C.info("Initializing event bus");
20
+ D.info("Initializing event bus");
21
21
  globalThis.kos = globalThis.kos || {};
22
22
  globalThis.kos.subscriptions = globalThis.kos.subscriptions || {};
23
- const V = globalThis.kos.subscriptions, Md = () => Symbol("eventKey");
23
+ const G = globalThis.kos.subscriptions, Md = () => Symbol("eventKey");
24
24
  function Oo(t) {
25
- return V[t] && Object.getOwnPropertySymbols(V[t]).length > 0;
25
+ return G[t] && Object.getOwnPropertySymbols(G[t]).length > 0;
26
26
  }
27
27
  function O(t, e) {
28
28
  const s = Md();
29
- return V[t] || (C.debug(`Initializing subscription for ${t}`), V[t] = {}), C.debug(`Subscribing to ${t} with id ${s.toString()}`), V[t][s] = e, {
30
- count: V[t] ? Object.getOwnPropertySymbols(V[t]).length : 0,
31
- unsubscribe: () => (C.debug(`Unsubscribing from ${t} with id ${s.toString()}`), V[t] && V[t][s] && delete V[t][s], V[t] && Object.getOwnPropertySymbols(V[t]).length === 0 && delete V[t], {
32
- count: V[t] ? Object.getOwnPropertySymbols(V[t]).length : 0
29
+ return G[t] || (D.debug(`Initializing subscription for ${t}`), G[t] = {}), D.debug(`Subscribing to ${t} with id ${s.toString()}`), G[t][s] = e, {
30
+ count: G[t] ? Object.getOwnPropertySymbols(G[t]).length : 0,
31
+ unsubscribe: () => (D.debug(`Unsubscribing from ${t} with id ${s.toString()}`), G[t] && G[t][s] && delete G[t][s], G[t] && Object.getOwnPropertySymbols(G[t]).length === 0 && delete G[t], {
32
+ count: G[t] ? Object.getOwnPropertySymbols(G[t]).length : 0
33
33
  })
34
34
  };
35
35
  }
36
36
  function H(t, e, s = {}) {
37
- if (!V[t] || Object.getOwnPropertySymbols(V[t]).length === 0)
38
- return C.debug(`No subscriptions for ${t}. Not publishing.`), {
37
+ if (!G[t] || Object.getOwnPropertySymbols(G[t]).length === 0)
38
+ return D.debug(`No subscriptions for ${t}. Not publishing.`), {
39
39
  eventType: t,
40
40
  subscribers: 0
41
41
  };
42
- const r = Object.getOwnPropertySymbols(V[t]).length;
43
- return Object.getOwnPropertySymbols(V[t]).forEach((n) => {
42
+ const r = Object.getOwnPropertySymbols(G[t]).length;
43
+ return Object.getOwnPropertySymbols(G[t]).forEach((n) => {
44
44
  if (s.sync) {
45
45
  const o = s.sync;
46
- C.debug(
46
+ D.debug(
47
47
  `Performing sync publish for ${t} with sync id ${o}`
48
- ), V[t][n]({ body: e, headers: s }).then(
48
+ ), G[t][n]({ body: e, headers: s }).then(
49
49
  (i) => {
50
- C.debug(
50
+ D.debug(
51
51
  `Response recieved for ${o}, publishing back to source.`
52
52
  ), H(o, i);
53
53
  }
54
54
  );
55
55
  } else
56
- C.debug(`Performing async publish for ${t}`), V[t][n]({ body: e, headers: s });
56
+ D.debug(`Performing async publish for ${t}`), G[t][n]({ body: e, headers: s });
57
57
  }), {
58
58
  eventType: t,
59
59
  subscribers: r
60
60
  };
61
61
  }
62
62
  function _d() {
63
- C.warn("Resetting event bus"), Object.keys(V).forEach((t) => delete V[t]);
63
+ D.warn("Resetting event bus"), Object.keys(G).forEach((t) => delete G[t]);
64
64
  }
65
65
  function xa(t, e) {
66
66
  const s = O(t, (r) => {
@@ -495,8 +495,8 @@ const Wa = Ya, xd = () => Wa.profiles || [], mi = (t) => xd().includes(t), b_ =
495
495
  }, Ad = () => {
496
496
  const t = we(), e = Pd(), r = t.kosLogLevel ?? e ?? window.kosLogLevel ?? process.env.KOS_LOG_LEVEL;
497
497
  return r || "WARN";
498
- }, Rd = () => window.kosMessageLogging || process.env.KOS_MESSAGE_LOGGING === "true", kd = () => window.kosMessageStudioLogging || process.env.KOS_MESSAGE_STUDIO_LOGGING === "true", Qa = "ws-log", Ld = C.methodFactory, Za = Rd(), Fd = kd();
499
- C.methodFactory = function(t, e, s) {
498
+ }, Rd = () => window.kosMessageLogging || process.env.KOS_MESSAGE_LOGGING === "true", kd = () => window.kosMessageStudioLogging || process.env.KOS_MESSAGE_STUDIO_LOGGING === "true", Qa = "ws-log", Ld = D.methodFactory, Za = Rd(), Fd = kd();
499
+ D.methodFactory = function(t, e, s) {
500
500
  const r = Ld(t, e, s);
501
501
  return function(...n) {
502
502
  var c;
@@ -507,16 +507,16 @@ C.methodFactory = function(t, e, s) {
507
507
  };
508
508
  };
509
509
  let Xa = Ad();
510
- C.setLevel(Xa);
510
+ D.setLevel(Xa);
511
511
  window.setKosLogLevel = (t) => {
512
- Xa = t, C.setLevel(t);
512
+ Xa = t, D.setLevel(t);
513
513
  };
514
- const Dr = C.getLogger(Qa);
514
+ const Dr = D.getLogger(Qa);
515
515
  window.enableKosMessageLog = () => {
516
- Dr.setLevel(C.levels.INFO);
516
+ Dr.setLevel(D.levels.INFO);
517
517
  };
518
518
  window.disableKosMessageLog = () => {
519
- Dr.setLevel(C.levels.ERROR);
519
+ Dr.setLevel(D.levels.ERROR);
520
520
  };
521
521
  Za ? window.enableKosMessageLog() : window.disableKosMessageLog();
522
522
  const Nd = [
@@ -538,18 +538,18 @@ const Nd = [
538
538
  "box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 5px 3px -5px rgba(0, 0, 0, 0.5), 0 -13px 5px -10px rgba(255, 255, 255, 0.4) inset",
539
539
  "font-weight: bold"
540
540
  ].join(";"), tr = (t) => (e) => {
541
- C.getLevel() <= t && e();
541
+ D.getLevel() <= t && e();
542
542
  }, g = {
543
- ...C,
544
- ifDebug: tr(C.levels.DEBUG),
545
- ifInfo: tr(C.levels.INFO),
546
- ifWarn: tr(C.levels.WARN),
547
- ifError: tr(C.levels.ERROR),
548
- getLogger: (t) => C.getLogger(`kos::${t}`),
549
- getLoggers: () => C.getLoggers(),
543
+ ...D,
544
+ ifDebug: tr(D.levels.DEBUG),
545
+ ifInfo: tr(D.levels.INFO),
546
+ ifWarn: tr(D.levels.WARN),
547
+ ifError: tr(D.levels.ERROR),
548
+ getLogger: (t) => D.getLogger(`kos::${t}`),
549
+ getLoggers: () => D.getLoggers(),
550
550
  createLogger: ({ name: t, group: e }) => {
551
551
  var o, i, a, c;
552
- const s = `${e ? `${e}:` : "kos"}::${t}`, r = C.getLogger(s);
552
+ const s = `${e ? `${e}:` : "kos"}::${t}`, r = D.getLogger(s);
553
553
  let n = (i = (o = globalThis.kos.logOverrides) == null ? void 0 : o.find(
554
554
  (u) => u.name === s
555
555
  )) == null ? void 0 : i.level;
@@ -565,7 +565,7 @@ const Nd = [
565
565
  const e = String(t).replace(/\n/g, "\\n");
566
566
  Dr.info(`%c⬇ ${e}`, Ud);
567
567
  }
568
- }, ne = Symbol("SubscriptionHandlers"), N = Symbol("DependencyModels"), mr = Symbol("FutureService"), vt = Symbol("ChildModels"), yr = Symbol("ParentModel"), br = Symbol("LogConfig"), On = Symbol("ReferenceConfig"), Ja = Symbol("KosModelSymbol"), st = Symbol("ModelEffects"), Et = Symbol("CompanionParentModel"), ec = Symbol("FutureContainerSetup"), tc = Symbol(
568
+ }, oe = Symbol("SubscriptionHandlers"), N = Symbol("DependencyModels"), mr = Symbol("FutureService"), vt = Symbol("ChildModels"), yr = Symbol("ParentModel"), br = Symbol("LogConfig"), On = Symbol("ReferenceConfig"), Ja = Symbol("KosModelSymbol"), st = Symbol("ModelEffects"), Et = Symbol("CompanionParentModel"), ec = Symbol("FutureContainerSetup"), tc = Symbol(
569
569
  "MultipleFutureContainerSetup"
570
570
  ), vr = Symbol("FutureAliases"), sc = Symbol("TroubleAwareSetup"), rc = Symbol("LoggerSetup"), nc = Symbol("ContainerAwareSetup"), Vs = Symbol("StateMachineSetup"), Ms = Symbol("StateEntryHandlers"), wr = Symbol("StateExitHandlers"), v_ = Symbol("StateActionHandlers"), un = Symbol("OptionsRequired"), jd = Symbol("KosViewModelSymbol"), oc = Symbol("ViewModelConfig"), Bd = Symbol("ReloadAwareSetup"), xo = g.createLogger({ group: "decorators", name: "fsm-injection" });
571
571
  function ic(t) {
@@ -1039,24 +1039,24 @@ function at(t) {
1039
1039
  this,
1040
1040
  u,
1041
1041
  f
1042
- ), x = await bh(
1042
+ ), C = await bh(
1043
1043
  m,
1044
1044
  p.method,
1045
1045
  y,
1046
1046
  v,
1047
1047
  _,
1048
1048
  U
1049
- ), [$, L] = x, Q = x[2];
1049
+ ), [$, R] = C, V = C[2];
1050
1050
  if ($)
1051
1051
  return vh(
1052
1052
  $,
1053
- L,
1053
+ R,
1054
1054
  p.errorHandler,
1055
1055
  this,
1056
- Q
1056
+ V
1057
1057
  );
1058
- let le = L;
1059
- return p.transform && (le = p.transform(L)), [null, le];
1058
+ let re = R;
1059
+ return p.transform && (re = p.transform(R)), [null, re];
1060
1060
  } catch (m) {
1061
1061
  return [m.message || "Unknown error", null];
1062
1062
  }
@@ -1923,7 +1923,7 @@ class Je {
1923
1923
  };
1924
1924
  }
1925
1925
  }
1926
- var b = /* @__PURE__ */ ((t) => (t.CREATING = "creating", t.CREATED = "created", t.INITIALIZING = "initializing", t.INITIALIZED = "initialized", t.LOADING = "loading", t.LOADED = "loaded", t.ONLINE = "online", t.READYING = "readying", t.READY = "ready", t.READY_FAILED = "ready_failed", t.RESETTING = "resetting", t.RESET = "reset", t.OFFLINE = "offline", t.UNLOADING = "unloading", t.UNLOADED = "unloaded", t.FAILED = "failed", t.INACTIVE = "inactive", t.ACTIVE = "active", t.ACTIVATING = "activating", t.DEACTIVATING = "deactivating", t))(b || {}), k = /* @__PURE__ */ ((t) => (t.CREATE = "create", t.INITIALIZE = "init", t.LOAD = "load", t.READY = "ready", t.GO_ONLINE = "go_online", t.GO_OFFLINE = "go_offline", t.RESET = "go_offline", t.UNLOAD = "unload", t.FAILED = "failed", t.GO_ACTIVE = "go_active", t.GO_INACTIVE = "go_inactive", t.TIMEOUT = "timeout", t))(k || {});
1926
+ var b = /* @__PURE__ */ ((t) => (t.CREATING = "creating", t.CREATED = "created", t.INITIALIZING = "initializing", t.INITIALIZED = "initialized", t.LOADING = "loading", t.LOADED = "loaded", t.ONLINE = "online", t.READYING = "readying", t.READY = "ready", t.READY_FAILED = "ready_failed", t.RESETTING = "resetting", t.RESET = "reset", t.OFFLINE = "offline", t.UNLOADING = "unloading", t.UNLOADED = "unloaded", t.FAILED = "failed", t.INACTIVE = "inactive", t.ACTIVE = "active", t.ACTIVATING = "activating", t.DEACTIVATING = "deactivating", t))(b || {}), L = /* @__PURE__ */ ((t) => (t.CREATE = "create", t.INITIALIZE = "init", t.LOAD = "load", t.READY = "ready", t.GO_ONLINE = "go_online", t.GO_OFFLINE = "go_offline", t.RESET = "go_offline", t.UNLOAD = "unload", t.FAILED = "failed", t.GO_ACTIVE = "go_active", t.GO_INACTIVE = "go_inactive", t.TIMEOUT = "timeout", t))(L || {});
1927
1927
  const Se = async (t) => {
1928
1928
  if (t.id) {
1929
1929
  const e = T.getInstance().modelManager.getModelById(t.id);
@@ -1939,7 +1939,7 @@ const Se = async (t) => {
1939
1939
  if (await T.getInstance().whenReady(), !t.id)
1940
1940
  throw new Error("Model ID is required");
1941
1941
  const e = T.getInstance().modelManager.getModelById(t.id);
1942
- e && await e.fsm.transitionTo(k.UNLOAD, b.UNLOADED);
1942
+ e && await e.fsm.transitionTo(L.UNLOAD, b.UNLOADED);
1943
1943
  }, N_ = async (t) => {
1944
1944
  await T.getInstance().whenReady(), await T.getInstance().modelManager.reloadModel(t), g.debug(
1945
1945
  `reload model initiated for model ${t.id}, model ready: ${Jn(t)} - ${Date.now()} `
@@ -2526,7 +2526,7 @@ function Kh(t, e) {
2526
2526
  "getCompanionParent"
2527
2527
  // Don't override our own getCompanionParent
2528
2528
  ], u = (p) => {
2529
- const m = i.constructor.prototype[ne] || {};
2529
+ const m = i.constructor.prototype[oe] || {};
2530
2530
  return Object.values(m).some((y) => {
2531
2531
  const v = y == null ? void 0 : y.handler;
2532
2532
  return v === i[p] || v === i.constructor.prototype[p];
@@ -2597,11 +2597,11 @@ const Yh = {
2597
2597
  return Kh(a, r), Uh(a), Bh(a), Hh(a), qh(a), zh(a, s), ic(a), Vh(a), jh(a, s), Gh(a);
2598
2598
  }
2599
2599
  };
2600
- function D(t) {
2600
+ function x(t) {
2601
2601
  return (e) => {
2602
2602
  var o, i;
2603
2603
  const s = e, r = typeof t == "string" ? { modelTypeId: t, autoRegister: !1 } : { autoRegister: !1, ...t };
2604
- s.prototype.modelTypeId = r.modelTypeId, s.prototype[Ja] = !0, (o = s.prototype)[ne] ?? (o[ne] = {}), (i = s.prototype)[N] ?? (i[N] = {}), r.optionsRequired && (s.prototype[un] = !0), g.ifDebug(() => {
2604
+ s.prototype.modelTypeId = r.modelTypeId, s.prototype[Ja] = !0, (o = s.prototype)[oe] ?? (o[oe] = {}), (i = s.prototype)[N] ?? (i[N] = {}), r.optionsRequired && (s.prototype[un] = !0), g.ifDebug(() => {
2605
2605
  g.debug(`Registering model with id ${r.modelTypeId}`);
2606
2606
  });
2607
2607
  const n = new Proxy(s, Yh);
@@ -2637,13 +2637,13 @@ const K_ = ({
2637
2637
  websocket: s = !1,
2638
2638
  condition: r = () => !0
2639
2639
  }) => (n) => {
2640
- n[ne] = n[ne] || {}, Array.isArray(t) ? t.forEach((o) => {
2641
- n[ne][o] = {
2640
+ n[oe] = n[oe] || {}, Array.isArray(t) ? t.forEach((o) => {
2641
+ n[oe][o] = {
2642
2642
  websocket: s,
2643
2643
  handler: e,
2644
2644
  condition: r
2645
2645
  };
2646
- }) : n[ne][t] = {
2646
+ }) : n[oe][t] = {
2647
2647
  websocket: s,
2648
2648
  handler: Wh(n, Mo(e), 200),
2649
2649
  condition: r
@@ -2671,8 +2671,8 @@ function q(t) {
2671
2671
  }
2672
2672
  function Xh(t, e) {
2673
2673
  const {
2674
- condition: s = (Q, le) => !0,
2675
- transform: r = (Q) => Q,
2674
+ condition: s = (V, re) => !0,
2675
+ transform: r = (V) => V,
2676
2676
  websocket: n = !1,
2677
2677
  fos: o = !1,
2678
2678
  bridge: i = !1,
@@ -2688,18 +2688,18 @@ function Xh(t, e) {
2688
2688
  wildcardName: v,
2689
2689
  flow: _,
2690
2690
  requiresBaseline: U
2691
- } = t, x = e.value, $ = Jh(x, {
2691
+ } = t, C = e.value, $ = Jh(C, {
2692
2692
  debounce: h,
2693
2693
  throttle: f,
2694
2694
  buffer: p,
2695
2695
  once: y
2696
- }), L = ef(m, s);
2696
+ }), R = ef(m, s);
2697
2697
  return {
2698
2698
  websocket: n,
2699
2699
  fos: o,
2700
2700
  bridge: i,
2701
2701
  handler: $,
2702
- condition: L,
2702
+ condition: R,
2703
2703
  transform: r,
2704
2704
  lifecycle: c,
2705
2705
  skipParse: a,
@@ -2733,9 +2733,9 @@ function ef(t, e) {
2733
2733
  return t ? (s, r, n) => t(n) ? e(s, r, n) : !1 : e;
2734
2734
  }
2735
2735
  function tf(t, e, s) {
2736
- t[ne] = t[ne] || {}, Array.isArray(e) ? e.forEach((r) => {
2737
- t[ne][r] = s;
2738
- }) : t[ne][e] = s;
2736
+ t[oe] = t[oe] || {}, Array.isArray(e) ? e.forEach((r) => {
2737
+ t[oe][r] = s;
2738
+ }) : t[oe][e] = s;
2739
2739
  }
2740
2740
  function sf(t, e) {
2741
2741
  df(t, e);
@@ -3202,7 +3202,7 @@ function Un(t) {
3202
3202
  }
3203
3203
  });
3204
3204
  }
3205
- const pc = 5e3, If = (t) => t.fsm.transitionTo(k.GO_ACTIVE, b.ACTIVE), Cf = (t) => t.whenReady(), Df = (t) => t.fsm.transitionTo(k.LOAD, b.LOADED), xf = (t) => t.fsm.transitionTo(k.UNLOAD, b.UNLOADED), Pf = (t) => t.fsm.transitionTo(k.INITIALIZE, b.INITIALIZED);
3205
+ const pc = 5e3, If = (t) => t.fsm.transitionTo(L.GO_ACTIVE, b.ACTIVE), Cf = (t) => t.whenReady(), Df = (t) => t.fsm.transitionTo(L.LOAD, b.LOADED), xf = (t) => t.fsm.transitionTo(L.UNLOAD, b.UNLOADED), Pf = (t) => t.fsm.transitionTo(L.INITIALIZE, b.INITIALIZED);
3206
3206
  var gc = /* @__PURE__ */ ((t) => (t.ACTIVE = "active", t.READY = "ready", t.LOAD = "load", t.UNLOAD = "unload", t.INIT = "init", t))(gc || {});
3207
3207
  const jn = {
3208
3208
  active: If,
@@ -3582,7 +3582,7 @@ function jf(t, e, s, r) {
3582
3582
  },
3583
3583
  data: ((u = t.toJSON) == null ? void 0 : u.call(t)) || {},
3584
3584
  subscriptions: (() => {
3585
- const d = t[ne] || {}, h = Object.keys(d);
3585
+ const d = t[oe] || {}, h = Object.keys(d);
3586
3586
  return h.length === 0 ? { count: 0, data: [] } : {
3587
3587
  count: h.length,
3588
3588
  data: h.map((f) => {
@@ -3712,10 +3712,10 @@ class qf {
3712
3712
  const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3713
3713
  const e = $s(b.INACTIVE, {
3714
3714
  [b.FAILED]: J(
3715
- P(k.GO_ACTIVE, b.ACTIVATING)
3715
+ P(L.GO_ACTIVE, b.ACTIVATING)
3716
3716
  ),
3717
3717
  [b.INACTIVE]: J(
3718
- P(k.GO_ACTIVE, b.ACTIVATING)
3718
+ P(L.GO_ACTIVE, b.ACTIVATING)
3719
3719
  ),
3720
3720
  [b.ACTIVATING]: Ne(
3721
3721
  () => (t.activeStatus = b.ACTIVATING, t.activate()),
@@ -3735,7 +3735,7 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3735
3735
  )
3736
3736
  ),
3737
3737
  [b.ACTIVE]: J(
3738
- P(k.GO_INACTIVE, b.DEACTIVATING)
3738
+ P(L.GO_INACTIVE, b.DEACTIVATING)
3739
3739
  ),
3740
3740
  [b.DEACTIVATING]: Ne(
3741
3741
  () => (t.activeStatus = b.DEACTIVATING, t.deactivate()),
@@ -3763,7 +3763,7 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3763
3763
  const e = $s(b.OFFLINE, {
3764
3764
  [b.ONLINE]: J(
3765
3765
  P(
3766
- k.GO_OFFLINE,
3766
+ L.GO_OFFLINE,
3767
3767
  b.OFFLINE,
3768
3768
  K(async () => {
3769
3769
  await t.offline(), t.onlineStatus = b.OFFLINE;
@@ -3772,11 +3772,11 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3772
3772
  ),
3773
3773
  [b.OFFLINE]: J(
3774
3774
  P(
3775
- k.GO_ONLINE,
3775
+ L.GO_ONLINE,
3776
3776
  b.ONLINE,
3777
3777
  K(async () => {
3778
3778
  Ti.debug(`Going online with model ${t.modelId}`), await t.online(), t.onlineStatus = b.ONLINE, await t.fsm.transitionTo(
3779
- k.INITIALIZE,
3779
+ L.INITIALIZE,
3780
3780
  b.INITIALIZED
3781
3781
  );
3782
3782
  })
@@ -3792,11 +3792,11 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3792
3792
  const e = Kf(t).service, s = Vf(t).service;
3793
3793
  return $s(b.CREATING, {
3794
3794
  [b.CREATING]: J(
3795
- P(k.CREATE, b.CREATED)
3795
+ P(L.CREATE, b.CREATED)
3796
3796
  ),
3797
3797
  [b.CREATED]: J(Bt(b.INITIALIZING)),
3798
3798
  [b.INITIALIZING]: Ne(
3799
- () => (ae(() => {
3799
+ () => (ce(() => {
3800
3800
  t.status = b.INITIALIZING;
3801
3801
  }), t.init()),
3802
3802
  P(
@@ -3818,7 +3818,7 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3818
3818
  ),
3819
3819
  [b.INITIALIZED]: J(Bt(b.LOADING)),
3820
3820
  [b.LOADING]: Ne(
3821
- () => (ae(() => {
3821
+ () => (ce(() => {
3822
3822
  t.status = b.LOADING;
3823
3823
  }), t.load()),
3824
3824
  P(
@@ -3838,12 +3838,12 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3838
3838
  ),
3839
3839
  [b.LOADED]: J(
3840
3840
  Bt(b.READYING),
3841
- P(k.UNLOAD, b.UNLOADING)
3841
+ P(L.UNLOAD, b.UNLOADING)
3842
3842
  ),
3843
3843
  [b.RESETTING]: Ne(
3844
3844
  () => {
3845
3845
  var n;
3846
- return ae(() => {
3846
+ return ce(() => {
3847
3847
  t.status = b.RESETTING;
3848
3848
  }), (n = t.unload) == null || n.call(t), t.load();
3849
3849
  },
@@ -3856,16 +3856,16 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3856
3856
  )
3857
3857
  ),
3858
3858
  [b.READYING]: Ne(
3859
- () => (ae(() => {
3859
+ () => (ce(() => {
3860
3860
  t.status = b.READYING;
3861
3861
  }), t.ready()),
3862
3862
  P(
3863
3863
  "done",
3864
3864
  b.READY,
3865
3865
  K(() => {
3866
- ae(() => {
3866
+ ce(() => {
3867
3867
  t.status = b.READY;
3868
- }), s.send(k.GO_ONLINE);
3868
+ }), s.send(L.GO_ONLINE);
3869
3869
  })
3870
3870
  ),
3871
3871
  P(
@@ -3878,37 +3878,37 @@ const zf = g.createLogger({ name: "model-active-machine" }), Kf = (t) => {
3878
3878
  ),
3879
3879
  [b.READY]: J(
3880
3880
  P(
3881
- k.UNLOAD,
3881
+ L.UNLOAD,
3882
3882
  b.UNLOADED,
3883
3883
  K((r = t.unload) == null ? void 0 : r.bind(t))
3884
3884
  ),
3885
- P(k.RESET, b.RESETTING),
3885
+ P(L.RESET, b.RESETTING),
3886
3886
  P(
3887
- k.GO_ONLINE,
3887
+ L.GO_ONLINE,
3888
3888
  b.READY,
3889
3889
  K(() => {
3890
- s.send(k.GO_ONLINE);
3890
+ s.send(L.GO_ONLINE);
3891
3891
  })
3892
3892
  ),
3893
3893
  P(
3894
- k.GO_OFFLINE,
3894
+ L.GO_OFFLINE,
3895
3895
  b.READY,
3896
3896
  K(() => {
3897
- s.send(k.GO_OFFLINE);
3897
+ s.send(L.GO_OFFLINE);
3898
3898
  })
3899
3899
  ),
3900
3900
  P(
3901
- k.GO_ACTIVE,
3901
+ L.GO_ACTIVE,
3902
3902
  b.READY,
3903
3903
  K(() => {
3904
- e.send(k.GO_ACTIVE);
3904
+ e.send(L.GO_ACTIVE);
3905
3905
  })
3906
3906
  ),
3907
3907
  P(
3908
- k.GO_INACTIVE,
3908
+ L.GO_INACTIVE,
3909
3909
  b.READY,
3910
3910
  K(() => {
3911
- e.send(k.GO_INACTIVE);
3911
+ e.send(L.GO_INACTIVE);
3912
3912
  })
3913
3913
  )
3914
3914
  ),
@@ -3927,7 +3927,7 @@ class Qf {
3927
3927
  l(this, "service");
3928
3928
  this.model = e, this.log = s;
3929
3929
  const r = Wf(e);
3930
- this.service = r.service, this.service.send(k.CREATE);
3930
+ this.service = r.service, this.service.send(L.CREATE);
3931
3931
  }
3932
3932
  /**
3933
3933
  * Returns the current raw state of the FSM
@@ -4277,14 +4277,14 @@ class Xf {
4277
4277
  this.log.debug(
4278
4278
  `Online event received for ${e}, waiting for readiness...`
4279
4279
  ), await this.model.whenReady(), this.log.debug(`${e} is ready — sending GO_ONLINE`), await this.model.fsm.transitionTo(
4280
- k.GO_ONLINE,
4280
+ L.GO_ONLINE,
4281
4281
  b.ONLINE
4282
4282
  );
4283
4283
  }), r = O("/kosCore/offline", async () => {
4284
4284
  this.log.debug(
4285
4285
  `Offline event received for ${e} — sending GO_OFFLINE`
4286
4286
  ), await this.model.fsm.transitionTo(
4287
- k.GO_OFFLINE,
4287
+ L.GO_OFFLINE,
4288
4288
  b.OFFLINE
4289
4289
  );
4290
4290
  });
@@ -4673,25 +4673,25 @@ const up = ({
4673
4673
  return new Promise((p, m) => {
4674
4674
  let y = null;
4675
4675
  if (u.aborted) {
4676
- const x = u.reason;
4677
- (x == null ? void 0 : x.name) === "TimeoutError" ? lt.error(`Timeout occurred - url: ${t}`) : lt.debug(`Request aborted - url: ${t}`), m(x || new DOMException("Aborted", "AbortError"));
4676
+ const C = u.reason;
4677
+ (C == null ? void 0 : C.name) === "TimeoutError" ? lt.error(`Timeout occurred - url: ${t}`) : lt.debug(`Request aborted - url: ${t}`), m(C || new DOMException("Aborted", "AbortError"));
4678
4678
  return;
4679
4679
  }
4680
4680
  const v = () => {
4681
4681
  y && y();
4682
- const x = u.reason;
4683
- (x == null ? void 0 : x.name) === "TimeoutError" ? lt.error(`Timeout occurred - url: ${t}`) : lt.debug(`Request aborted - url: ${t}`), m(x || new DOMException("Aborted", "AbortError"));
4682
+ const C = u.reason;
4683
+ (C == null ? void 0 : C.name) === "TimeoutError" ? lt.error(`Timeout occurred - url: ${t}`) : lt.debug(`Request aborted - url: ${t}`), m(C || new DOMException("Aborted", "AbortError"));
4684
4684
  };
4685
4685
  u.addEventListener("abort", v, { once: !0 });
4686
- const _ = O(r, (x) => {
4686
+ const _ = O(r, (C) => {
4687
4687
  u.removeEventListener("abort", v);
4688
- const $ = (x == null ? void 0 : x.headers) || {}, L = $["content-type"] || "text/plain", Q = $["content-encoding"], le = (x == null ? void 0 : x.body) || "";
4689
- let B = le;
4690
- if (Q === "base64" && le)
4688
+ const $ = (C == null ? void 0 : C.headers) || {}, R = $["content-type"] || "text/plain", V = $["content-encoding"], re = (C == null ? void 0 : C.body) || "";
4689
+ let B = re;
4690
+ if (V === "base64" && re)
4691
4691
  try {
4692
- B = Jf(le);
4693
- } catch (ie) {
4694
- lt.error("Failed to decode base64 response", ie);
4692
+ B = Jf(re);
4693
+ } catch (ae) {
4694
+ lt.error("Failed to decode base64 response", ae);
4695
4695
  }
4696
4696
  const ds = {
4697
4697
  headers: cp($),
@@ -4711,30 +4711,30 @@ const up = ({
4711
4711
  },
4712
4712
  text: async () => typeof B == "string" ? B : new TextDecoder().decode(B),
4713
4713
  arrayBuffer: async () => B instanceof ArrayBuffer ? B : new TextEncoder().encode(B).buffer,
4714
- blob: async () => B instanceof ArrayBuffer ? tp(B, L) : new Blob([B], { type: L }),
4714
+ blob: async () => B instanceof ArrayBuffer ? tp(B, R) : new Blob([B], { type: R }),
4715
4715
  formData: async () => {
4716
- const ie = new FormData();
4717
- if (L === "multipart/form-data" && typeof B == "string")
4716
+ const ae = new FormData();
4717
+ if (R === "multipart/form-data" && typeof B == "string")
4718
4718
  try {
4719
4719
  const Re = JSON.parse(B);
4720
4720
  Re.fields && Object.entries(Re.fields).forEach(([pi, gi]) => {
4721
- ie.append(pi, gi);
4721
+ ae.append(pi, gi);
4722
4722
  }), Re.files && lt.warn(
4723
4723
  "File reconstruction in FormData not fully implemented"
4724
4724
  );
4725
4725
  } catch {
4726
4726
  throw new Error("Failed to parse FormData");
4727
4727
  }
4728
- return ie;
4728
+ return ae;
4729
4729
  },
4730
- body: e != null && e.stream ? rp(async (ie) => {
4730
+ body: e != null && e.stream ? rp(async (ae) => {
4731
4731
  if (B instanceof ArrayBuffer)
4732
- ie.enqueue(new Uint8Array(B));
4732
+ ae.enqueue(new Uint8Array(B));
4733
4733
  else {
4734
4734
  const Re = new TextEncoder();
4735
- ie.enqueue(Re.encode(B));
4735
+ ae.enqueue(Re.encode(B));
4736
4736
  }
4737
- ie.close();
4737
+ ae.close();
4738
4738
  }) : lp(typeof B == "string" ? B : ""),
4739
4739
  redirected: !1,
4740
4740
  statusText: "",
@@ -5690,17 +5690,17 @@ class qp {
5690
5690
  l(this, "_onopen");
5691
5691
  l(this, "messageQueue", []);
5692
5692
  l(this, "isSending", !1);
5693
- C.debug(`called Bridge Transport with addr ${e}`);
5693
+ D.debug(`called Bridge Transport with addr ${e}`);
5694
5694
  const s = this;
5695
5695
  globalThis.kosWindowWebsocketRecv = (r) => {
5696
5696
  if (s.onmessage) {
5697
5697
  const n = { data: r };
5698
5698
  s.onmessage(n);
5699
5699
  }
5700
- }, C.debug("Opening bridge transport"), globalThis.kosWindowWebsocketOpen(), C.debug("Opened bridge transport"), this._onclose = null, this._onerror = null, this._onmessage = null, this._onopen = null, this.addEventListener = () => C.debug("not implemented"), this.dispatchEvent = () => C.debug("not implemented"), this.removeEventListener = () => C.debug("not implemented");
5700
+ }, D.debug("Opening bridge transport"), globalThis.kosWindowWebsocketOpen(), D.debug("Opened bridge transport"), this._onclose = null, this._onerror = null, this._onmessage = null, this._onopen = null, this.addEventListener = () => D.debug("not implemented"), this.dispatchEvent = () => D.debug("not implemented"), this.removeEventListener = () => D.debug("not implemented");
5701
5701
  }
5702
5702
  close() {
5703
- C.debug("closing");
5703
+ D.debug("closing");
5704
5704
  }
5705
5705
  sendNextMessage() {
5706
5706
  if (this.messageQueue.length > 0) {
@@ -5824,7 +5824,7 @@ Gp.fos && (window.kosUseFos = !0);
5824
5824
  const Di = process.env.KOS_FOS_PORT;
5825
5825
  window.kosUseFos = !!(window.kosUseFos || process.env.KOS_USE_FOS === "true");
5826
5826
  window.kosFosPort = Di ? parseInt(Di) : 0;
5827
- const ut = C.getLogger("web-socket-transport");
5827
+ const ut = D.getLogger("web-socket-transport");
5828
5828
  var Yp = /* @__PURE__ */ ((t) => (t.NOT_INITIALIZED = "not_initialized", t.INITIALIZED = "initialized", t.OFFLINE = "OFFLINE", t.ONLINE = "ONLINE", t))(Yp || {});
5829
5829
  class Cs {
5830
5830
  constructor({
@@ -5998,7 +5998,7 @@ class Wp {
5998
5998
  }
5999
5999
  registerAll(e) {
6000
6000
  var n;
6001
- const s = ((n = this.modelData) == null ? void 0 : n[ne]) || {}, r = Object.keys(s);
6001
+ const s = ((n = this.modelData) == null ? void 0 : n[oe]) || {}, r = Object.keys(s);
6002
6002
  this.log.debug(
6003
6003
  `Found ${r.length} subscriptions in ${this.modelId} (lifecycle: ${e ?? "any"})`
6004
6004
  ), r.forEach((o) => {
@@ -6043,7 +6043,7 @@ class Wp {
6043
6043
  this.log.error("Error during subscription disposal", n);
6044
6044
  }
6045
6045
  this.activatableDisposers = [];
6046
- const e = ((s = this.modelData) == null ? void 0 : s[ne]) || {};
6046
+ const e = ((s = this.modelData) == null ? void 0 : s[oe]) || {};
6047
6047
  for (const [r, n] of Object.entries(e))
6048
6048
  if (n.lifecycle === I.ACTIVATE) {
6049
6049
  const o = this.resolvePropKey(r);
@@ -6361,7 +6361,7 @@ function Qp(t) {
6361
6361
  return !!(t != null && t[st]) && Object.keys(t[st]).length > 0;
6362
6362
  }
6363
6363
  function Zp(t) {
6364
- return !!(t != null && t[ne]) && Object.keys(t[ne]).length > 0;
6364
+ return !!(t != null && t[oe]) && Object.keys(t[oe]).length > 0;
6365
6365
  }
6366
6366
  function Xp(t) {
6367
6367
  return !!(t != null && t[rt]) && t[rt].length > 0;
@@ -6660,7 +6660,7 @@ class ng {
6660
6660
  )), h;
6661
6661
  }
6662
6662
  }
6663
- const F = C.getLogger("kos-model"), og = "kos.extension.model.loader";
6663
+ const F = D.getLogger("kos-model"), og = "kos.extension.model.loader";
6664
6664
  class ig {
6665
6665
  constructor({ modelTypeName: e, id: s, modelData: r }) {
6666
6666
  l(this, "_id");
@@ -6872,7 +6872,7 @@ class ig {
6872
6872
  `Setting loaded context for ${r}, type: ${s}`
6873
6873
  ), d == null || d.set(h, f)), await ((n = this.serviceRequestManager) == null ? void 0 : n.executeForLifecycle(
6874
6874
  I.LOAD
6875
- )), await ((i = (o = this.modelData) == null ? void 0 : o.load) == null ? void 0 : i.call(o, d)), ae(() => {
6875
+ )), await ((i = (o = this.modelData) == null ? void 0 : o.load) == null ? void 0 : i.call(o, d)), ce(() => {
6876
6876
  this.loaded = !0;
6877
6877
  }), F.debug(
6878
6878
  `Model ${s} with id ${r} successfully loaded`
@@ -7289,7 +7289,7 @@ class ug {
7289
7289
  if (e.id) {
7290
7290
  const s = this.getModelById(e.id);
7291
7291
  s && await s.fsm.transitionTo(
7292
- k.RESET,
7292
+ L.RESET,
7293
7293
  b.RESETTING
7294
7294
  );
7295
7295
  }
@@ -7415,7 +7415,7 @@ const dg = (t) => {
7415
7415
  )
7416
7416
  }), s = Ss(
7417
7417
  e,
7418
- (o) => C.debug(o.machine.current)
7418
+ (o) => D.debug(o.machine.current)
7419
7419
  ), r = $s({
7420
7420
  creating: J(
7421
7421
  P(
@@ -7515,7 +7515,7 @@ const dg = (t) => {
7515
7515
  });
7516
7516
  return { service: Ss(
7517
7517
  r,
7518
- (o) => C.debug(o.machine.current)
7518
+ (o) => D.debug(o.machine.current)
7519
7519
  ), online: s };
7520
7520
  }, Z = g.createLogger({ name: "kos-core" }), hg = () => {
7521
7521
  const t = we(), e = t == null ? void 0 : t.alias, s = process.env.KOS_CONNECTION_ALIAS;
@@ -8182,9 +8182,9 @@ const Fg = g.createLogger({ name: "kos-service-request" }), _e = (t) => ({ isMoc
8182
8182
  } catch (m) {
8183
8183
  if (m instanceof DOMException) {
8184
8184
  if (m.name === "TimeoutError")
8185
- throw new G("Request timed out while deleting model");
8185
+ throw new Y("Request timed out while deleting model");
8186
8186
  if (m.name === "AbortError")
8187
- throw new G("Request was cancelled while deleting model");
8187
+ throw new Y("Request was cancelled while deleting model");
8188
8188
  }
8189
8189
  throw m;
8190
8190
  }
@@ -8227,7 +8227,7 @@ const Fg = g.createLogger({ name: "kos-service-request" }), _e = (t) => ({ isMoc
8227
8227
  y = await p.json();
8228
8228
  } catch {
8229
8229
  }
8230
- throw new G(
8230
+ throw new Y(
8231
8231
  `There was a problem retrieving the model; returned status ${p.status}`,
8232
8232
  y ?? void 0
8233
8233
  );
@@ -8236,9 +8236,9 @@ const Fg = g.createLogger({ name: "kos-service-request" }), _e = (t) => ({ isMoc
8236
8236
  } catch (p) {
8237
8237
  if (p instanceof DOMException) {
8238
8238
  if (p.name === "TimeoutError")
8239
- throw new G("Request timed out while retrieving models");
8239
+ throw new Y("Request timed out while retrieving models");
8240
8240
  if (p.name === "AbortError")
8241
- throw new G("Request was cancelled while retrieving models");
8241
+ throw new Y("Request was cancelled while retrieving models");
8242
8242
  }
8243
8243
  throw p;
8244
8244
  }
@@ -8275,7 +8275,7 @@ const Fg = g.createLogger({ name: "kos-service-request" }), _e = (t) => ({ isMoc
8275
8275
  v = await m.json();
8276
8276
  } catch {
8277
8277
  }
8278
- throw new G(
8278
+ throw new Y(
8279
8279
  `There was a problem retrieving the model; returned status ${m.status}`,
8280
8280
  v ?? void 0
8281
8281
  );
@@ -8284,9 +8284,9 @@ const Fg = g.createLogger({ name: "kos-service-request" }), _e = (t) => ({ isMoc
8284
8284
  } catch (m) {
8285
8285
  if (m instanceof DOMException) {
8286
8286
  if (m.name === "TimeoutError")
8287
- throw new G("Request timed out while retrieving model");
8287
+ throw new Y("Request timed out while retrieving model");
8288
8288
  if (m.name === "AbortError")
8289
- throw new G("Request was cancelled while retrieving model");
8289
+ throw new Y("Request was cancelled while retrieving model");
8290
8290
  }
8291
8291
  throw m;
8292
8292
  }
@@ -8322,7 +8322,7 @@ const Fg = g.createLogger({ name: "kos-service-request" }), _e = (t) => ({ isMoc
8322
8322
  v = await m.json();
8323
8323
  } catch {
8324
8324
  }
8325
- throw new G(
8325
+ throw new Y(
8326
8326
  `There was a problem retrieving the model; returned status ${m.status}`,
8327
8327
  v ?? void 0
8328
8328
  );
@@ -8331,18 +8331,18 @@ const Fg = g.createLogger({ name: "kos-service-request" }), _e = (t) => ({ isMoc
8331
8331
  } catch (m) {
8332
8332
  if (m instanceof DOMException) {
8333
8333
  if (m.name === "TimeoutError")
8334
- throw new G(
8334
+ throw new Y(
8335
8335
  "Request timed out while retrieving model by ID"
8336
8336
  );
8337
8337
  if (m.name === "AbortError")
8338
- throw new G(
8338
+ throw new Y(
8339
8339
  "Request was cancelled while retrieving model by ID"
8340
8340
  );
8341
8341
  }
8342
8342
  throw m;
8343
8343
  }
8344
8344
  };
8345
- class G extends Error {
8345
+ class Y extends Error {
8346
8346
  constructor(s, r) {
8347
8347
  super(s);
8348
8348
  l(this, "payload");
@@ -8382,7 +8382,7 @@ const Ni = (t, e, s) => async ({
8382
8382
  v = await m.json();
8383
8383
  } catch {
8384
8384
  }
8385
- throw new G(
8385
+ throw new Y(
8386
8386
  `There was a problem sending the POST data; returned status ${m.status}`,
8387
8387
  v ?? void 0
8388
8388
  );
@@ -8391,9 +8391,9 @@ const Ni = (t, e, s) => async ({
8391
8391
  } catch (m) {
8392
8392
  if (m instanceof DOMException) {
8393
8393
  if (m.name === "TimeoutError")
8394
- throw new G("Request timed out while adding model");
8394
+ throw new Y("Request timed out while adding model");
8395
8395
  if (m.name === "AbortError")
8396
- throw new G("Request was cancelled while adding model");
8396
+ throw new Y("Request was cancelled while adding model");
8397
8397
  }
8398
8398
  throw m;
8399
8399
  }
@@ -8430,7 +8430,7 @@ const Ni = (t, e, s) => async ({
8430
8430
  _ = await y.json();
8431
8431
  } catch {
8432
8432
  }
8433
- throw new G(
8433
+ throw new Y(
8434
8434
  `There was a problem modifying the model; returned status ${y.status}`,
8435
8435
  _ ?? void 0
8436
8436
  );
@@ -8439,9 +8439,9 @@ const Ni = (t, e, s) => async ({
8439
8439
  } catch (y) {
8440
8440
  if (y instanceof DOMException) {
8441
8441
  if (y.name === "TimeoutError")
8442
- throw new G("Request timed out while modifying model");
8442
+ throw new Y("Request timed out while modifying model");
8443
8443
  if (y.name === "AbortError")
8444
- throw new G("Request was cancelled while modifying model");
8444
+ throw new Y("Request was cancelled while modifying model");
8445
8445
  }
8446
8446
  throw y;
8447
8447
  }
@@ -8589,7 +8589,7 @@ function vT(t) {
8589
8589
  }
8590
8590
  const Hg = rs(), qg = () => `kos-${Hg}`, wT = (t) => !!t && !t.includes("VM_SERVICE") && t.startsWith(qg()), Oc = async (t, e = 6e4) => new Promise((s, r) => {
8591
8591
  const { unsubscribe: n } = O(t, (i) => {
8592
- C.debug(`recieved response for refId ${t}: ${i}`), n(), clearTimeout(o);
8592
+ D.debug(`recieved response for refId ${t}: ${i}`), n(), clearTimeout(o);
8593
8593
  try {
8594
8594
  const a = i != null && i.body ? JSON.parse(i.body) : {};
8595
8595
  s(a);
@@ -8632,7 +8632,7 @@ class zg {
8632
8632
  this._id = e, this._context = new _o({}), this._parent = "", xe(this);
8633
8633
  }
8634
8634
  setParent(e) {
8635
- ae(() => {
8635
+ ce(() => {
8636
8636
  this._parent = e;
8637
8637
  });
8638
8638
  }
@@ -9267,8 +9267,8 @@ async function DT() {
9267
9267
  return Ke.error("Failed to fetch started apps:", t), [];
9268
9268
  }
9269
9269
  }
9270
- const ji = qs, Dc = Ta, ae = X, te = es, Yg = ts, xc = se, Pc = "Not Assigned", xT = "kos.trouble.added", PT = "kos.trouble.removed";
9271
- var ce = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t.RegionServicePath = "kos.region.service_path.mapper", t.ConfigServicePath = "kos.config.service_path.mapper", t))(ce || {}), $r = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))($r || {});
9270
+ const ji = qs, Dc = Ta, ce = X, te = es, Yg = ts, xc = se, Pc = "Not Assigned", xT = "kos.trouble.added", PT = "kos.trouble.removed";
9271
+ var le = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t.RegionServicePath = "kos.region.service_path.mapper", t.ConfigServicePath = "kos.config.service_path.mapper", t))(le || {}), $r = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))($r || {});
9272
9272
  const Ac = g.createLogger({
9273
9273
  name: "config-bean-service",
9274
9274
  group: "Services"
@@ -9342,9 +9342,9 @@ function im(t, e) {
9342
9342
  const Ho = "config-bean-model", cr = g.getLogger(Ho), am = ss("path");
9343
9343
  function cm(t) {
9344
9344
  return M.propertyMapper.hasMapper(
9345
- ce.ConfigServicePath
9345
+ le.ConfigServicePath
9346
9346
  ) ? M.propertyMapper.executeMapper(
9347
- ce.ConfigServicePath,
9347
+ le.ConfigServicePath,
9348
9348
  t
9349
9349
  ) : "/api/kos/config";
9350
9350
  }
@@ -9418,7 +9418,7 @@ let Pr = class {
9418
9418
  const e = t.data;
9419
9419
  tm(e, this), cr.debug(this.values);
9420
9420
  const s = t == null ? void 0 : t.data.details[0].schema;
9421
- ae(() => {
9421
+ ce(() => {
9422
9422
  s && (this._schema = s);
9423
9423
  });
9424
9424
  }
@@ -9499,7 +9499,7 @@ Lc([
9499
9499
  })
9500
9500
  ], Pr.prototype, "handleConfigBeanUpdated", 1);
9501
9501
  Pr = Lc([
9502
- D(Ho)
9502
+ x(Ho)
9503
9503
  ], Pr);
9504
9504
  const Ar = new Pe({
9505
9505
  class: Pr,
@@ -9638,8 +9638,8 @@ var pm = Object.defineProperty, gm = Object.getOwnPropertyDescriptor, Ko = (t, e
9638
9638
  const Sr = "region-info-model", hs = g.createLogger({ name: "region-info-model" });
9639
9639
  function mm(t) {
9640
9640
  return M.propertyMapper.hasMapper(
9641
- ce.RegionServicePath
9642
- ) ? M.propertyMapper.executeMapper(ce.RegionServicePath, t) : "/api/kos/regions";
9641
+ le.RegionServicePath
9642
+ ) ? M.propertyMapper.executeMapper(le.RegionServicePath, t) : "/api/kos/regions";
9643
9643
  }
9644
9644
  let Ds = class {
9645
9645
  constructor(t) {
@@ -9940,7 +9940,7 @@ Ko([
9940
9940
  qo({ path: "kos:service:region" })
9941
9941
  ], Ds.prototype, "region", 2);
9942
9942
  Ds = Ko([
9943
- D(Sr)
9943
+ x(Sr)
9944
9944
  ], Ds);
9945
9945
  const pe = {
9946
9946
  registration: {
@@ -10275,24 +10275,24 @@ let xs = class {
10275
10275
  * @returns Property value formatted with significant digits based on regional settings
10276
10276
  */
10277
10277
  get significantValue() {
10278
- var n, o;
10278
+ var n, o, i;
10279
10279
  const t = this.value, e = this.regionInfo.defaultUnitSystem, s = this.getConverter(), r = (s == null ? void 0 : s.measure) || ((n = s == null ? void 0 : s.to) == null ? void 0 : n.measure);
10280
10280
  if (!isNaN(t) && s && r) {
10281
- const i = this.getDefaultUnitDecimalPlaces(
10281
+ const a = this.getDefaultUnitDecimalPlaces(
10282
10282
  r,
10283
- e,
10284
- (o = s == null ? void 0 : s.to) == null ? void 0 : o.unit
10283
+ ((o = s == null ? void 0 : s.to) == null ? void 0 : o.system) || e,
10284
+ (i = s == null ? void 0 : s.to) == null ? void 0 : i.unit
10285
10285
  );
10286
10286
  try {
10287
- const c = this.getFormatterOptions(s);
10288
- if (c) {
10289
- let u = String(t);
10290
- return u = c.formatToParts(Number(t))[0].value, Number(u);
10287
+ const u = this.getFormatterOptions(s);
10288
+ if (u) {
10289
+ let d = String(t);
10290
+ return d = u.formatToParts(Number(t))[0].value, Number(d);
10291
10291
  }
10292
- } catch (c) {
10293
- Rt.info(`error formatting value ${t}`, c);
10292
+ } catch (u) {
10293
+ Rt.info(`error formatting value ${t}`, u);
10294
10294
  }
10295
- return Number(t).toFixed(i);
10295
+ return Number(t).toFixed(a);
10296
10296
  }
10297
10297
  return t;
10298
10298
  }
@@ -10445,36 +10445,36 @@ let xs = class {
10445
10445
  return n;
10446
10446
  }
10447
10447
  getConverter() {
10448
- var r, n, o, i, a, c, u, d, h, f, p;
10448
+ var r, n, o, i, a, c, u, d, h, f, p, m, y;
10449
10449
  const { unit: t, measure: e } = this.getConverterFromFormat(), s = t === "drt" ? "second" : t;
10450
10450
  if (this.converter) {
10451
- const m = (r = this.converter) == null ? void 0 : r.measure, y = (o = (n = this.converter) == null ? void 0 : n.to) == null ? void 0 : o.measure, v = (a = (i = this.converter) == null ? void 0 : i.from) == null ? void 0 : a.measure, _ = m || y || v || e, U = ((u = (c = this.converter) == null ? void 0 : c.to) == null ? void 0 : u.unit) || this.regionInfo.getDefaultUnitForMeasure(
10452
- _,
10453
- ((h = (d = this.converter) == null ? void 0 : d.to) == null ? void 0 : h.system) ?? this.regionInfo.defaultUnitSystem
10454
- ), x = ((p = (f = this.converter) == null ? void 0 : f.to) == null ? void 0 : p.system) ?? this.regionInfo.getUnitSystem(U), $ = this.schemaFormat === "drt" ? "second" : this.schemaFormat || s;
10451
+ const v = (r = this.converter) == null ? void 0 : r.measure, _ = (o = (n = this.converter) == null ? void 0 : n.to) == null ? void 0 : o.measure, U = (a = (i = this.converter) == null ? void 0 : i.from) == null ? void 0 : a.measure, C = (u = (c = this.converter) == null ? void 0 : c.to) != null && u.unit ? this.regionInfo.getUnitMeasure(this.converter.to.unit) : void 0, $ = v || _ || U || C || e, R = ((h = (d = this.converter) == null ? void 0 : d.to) == null ? void 0 : h.unit) || this.regionInfo.getDefaultUnitForMeasure(
10452
+ $,
10453
+ ((p = (f = this.converter) == null ? void 0 : f.to) == null ? void 0 : p.system) ?? this.regionInfo.defaultUnitSystem
10454
+ ), V = ((y = (m = this.converter) == null ? void 0 : m.to) == null ? void 0 : y.system) ?? this.regionInfo.getUnitSystem(R), re = this.schemaFormat === "drt" ? "second" : this.schemaFormat || s;
10455
10455
  return {
10456
10456
  ...this.converter,
10457
10457
  from: {
10458
- unit: $,
10458
+ unit: re,
10459
10459
  ...this.converter.from
10460
10460
  },
10461
10461
  to: {
10462
10462
  ...this.converter.to,
10463
- unit: U,
10464
- system: x
10463
+ unit: R,
10464
+ system: V
10465
10465
  },
10466
- measure: _
10466
+ measure: $
10467
10467
  };
10468
10468
  }
10469
10469
  if (s && e) {
10470
- const m = this.regionInfo.getDefaultUnitForMeasure(
10470
+ const v = this.regionInfo.getDefaultUnitForMeasure(
10471
10471
  e,
10472
10472
  this.regionInfo.defaultUnitSystem
10473
- ), y = this.regionInfo.getUnitSystem(s), v = this.regionInfo.getUnitSystem(m);
10473
+ ), _ = this.regionInfo.getUnitSystem(s), U = this.regionInfo.getUnitSystem(v);
10474
10474
  return {
10475
10475
  measure: e,
10476
10476
  to: {
10477
- unit: y === v ? s : m
10477
+ unit: _ === U ? s : v
10478
10478
  }
10479
10479
  };
10480
10480
  }
@@ -10511,7 +10511,7 @@ Vo([
10511
10511
  qo({ path: Tm, serviceBasePath: $m })
10512
10512
  ], xs.prototype, "bean", 2);
10513
10513
  xs = Vo([
10514
- D(Or)
10514
+ x(Or)
10515
10515
  ], xs);
10516
10516
  const os = {
10517
10517
  registration: {
@@ -10565,7 +10565,7 @@ const Bc = (t) => ({
10565
10565
  }), Hc = (t, e) => {
10566
10566
  g.debug(`future dto ${t.id} end state ${t.endState}`), g.debug(`future model ${e.id} end state ${e.endState}`), e.endState ? g.debug(`future model ${e.id} is already complete`) : (g.debug(`updating future model ${e.id}`), X(() => {
10567
10567
  const s = Bc(t);
10568
- ae(() => {
10568
+ ce(() => {
10569
10569
  Object.keys(s).forEach((r) => {
10570
10570
  r === "id" ? (e.futureId = s.id, s.tracker || (e.id = s.id)) : r === "tracker" ? e.id = s.tracker : e[r] = s[r];
10571
10571
  });
@@ -10699,7 +10699,7 @@ zc([
10699
10699
  })
10700
10700
  ], kr.prototype, "handleRequest", 1);
10701
10701
  kr = zc([
10702
- D(Kc)
10702
+ x(Kc)
10703
10703
  ], kr);
10704
10704
  const Vc = new Be({
10705
10705
  class: kr,
@@ -10831,7 +10831,7 @@ Gc([
10831
10831
  })
10832
10832
  ], Lr.prototype, "handleFutureUpdated", 1);
10833
10833
  Lr = Gc([
10834
- D(Xs.type)
10834
+ x(Xs.type)
10835
10835
  ], Lr);
10836
10836
  const zm = Lr, Km = "future-container-model", _t = Qs(Km), Yc = (t) => qc(Xs)(t), Vm = (t) => {
10837
10837
  const e = Yc(t);
@@ -11005,7 +11005,7 @@ Go([
11005
11005
  })
11006
11006
  ], Ps.prototype, "handleFutureUpdated", 1);
11007
11007
  Ps = Go([
11008
- D(_t.type)
11008
+ x(_t.type)
11009
11009
  ], Ps);
11010
11010
  const Qm = Ps, { URL: Js } = _e(), { getOne: Zm, postModel: Xm, deleteModel: Wc } = me.build({
11011
11011
  basePath: `${Js}/api/keyVal`
@@ -11115,17 +11115,17 @@ Yo([
11115
11115
  q({ topic: "/keyVal/remove" })
11116
11116
  ], As.prototype, "handleStateDelete", 1);
11117
11117
  As = Yo([
11118
- D(Jc)
11118
+ x(Jc)
11119
11119
  ], As);
11120
11120
  const el = new Pe({
11121
11121
  class: As,
11122
11122
  type: Jc
11123
11123
  });
11124
11124
  var $e = "INUMBER", is = "IOP1", as = "IOP2", cs = "IOP3", We = "IVAR", Tt = "IVARNAME", Gt = "IFUNCALL", pn = "IFUNDEF", ge = "IEXPR", Wo = "IEXPREVAL", It = "IMEMBER", gn = "IENDSTATEMENT", Yt = "IARRAY";
11125
- function R(t, e) {
11125
+ function k(t, e) {
11126
11126
  this.type = t, this.value = e ?? 0;
11127
11127
  }
11128
- R.prototype.toString = function() {
11128
+ k.prototype.toString = function() {
11129
11129
  switch (this.type) {
11130
11130
  case $e:
11131
11131
  case is:
@@ -11148,35 +11148,35 @@ R.prototype.toString = function() {
11148
11148
  }
11149
11149
  };
11150
11150
  function mn(t) {
11151
- return new R(is, t);
11151
+ return new k(is, t);
11152
11152
  }
11153
11153
  function et(t) {
11154
- return new R(as, t);
11154
+ return new k(as, t);
11155
11155
  }
11156
11156
  function tl(t) {
11157
- return new R(cs, t);
11157
+ return new k(cs, t);
11158
11158
  }
11159
11159
  function ro(t, e, s, r, n) {
11160
11160
  for (var o = [], i = [], a, c, u, d, h = 0; h < t.length; h++) {
11161
11161
  var f = t[h], p = f.type;
11162
11162
  if (p === $e || p === Tt)
11163
11163
  Array.isArray(f.value) ? o.push.apply(o, ro(f.value.map(function(m) {
11164
- return new R($e, m);
11165
- }).concat(new R(Yt, f.value.length)), e, s, r, n)) : o.push(f);
11164
+ return new k($e, m);
11165
+ }).concat(new k(Yt, f.value.length)), e, s, r, n)) : o.push(f);
11166
11166
  else if (p === We && n.hasOwnProperty(f.value))
11167
- f = new R($e, n[f.value]), o.push(f);
11167
+ f = new k($e, n[f.value]), o.push(f);
11168
11168
  else if (p === as && o.length > 1)
11169
- c = o.pop(), a = o.pop(), d = s[f.value], f = new R($e, d(a.value, c.value)), o.push(f);
11169
+ c = o.pop(), a = o.pop(), d = s[f.value], f = new k($e, d(a.value, c.value)), o.push(f);
11170
11170
  else if (p === cs && o.length > 2)
11171
- u = o.pop(), c = o.pop(), a = o.pop(), f.value === "?" ? o.push(a.value ? c.value : u.value) : (d = r[f.value], f = new R($e, d(a.value, c.value, u.value)), o.push(f));
11171
+ u = o.pop(), c = o.pop(), a = o.pop(), f.value === "?" ? o.push(a.value ? c.value : u.value) : (d = r[f.value], f = new k($e, d(a.value, c.value, u.value)), o.push(f));
11172
11172
  else if (p === is && o.length > 0)
11173
- a = o.pop(), d = e[f.value], f = new R($e, d(a.value)), o.push(f);
11173
+ a = o.pop(), d = e[f.value], f = new k($e, d(a.value)), o.push(f);
11174
11174
  else if (p === ge) {
11175
11175
  for (; o.length > 0; )
11176
11176
  i.push(o.shift());
11177
- i.push(new R(ge, ro(f.value, e, s, r, n)));
11177
+ i.push(new k(ge, ro(f.value, e, s, r, n)));
11178
11178
  } else if (p === It && o.length > 0)
11179
- a = o.pop(), o.push(new R($e, a.value[f.value]));
11179
+ a = o.pop(), o.push(new k($e, a.value[f.value]));
11180
11180
  else {
11181
11181
  for (; o.length > 0; )
11182
11182
  i.push(o.shift());
@@ -11193,10 +11193,10 @@ function sl(t, e, s) {
11193
11193
  if (i === We && o.value === e)
11194
11194
  for (var a = 0; a < s.tokens.length; a++) {
11195
11195
  var c = s.tokens[a], u;
11196
- c.type === is ? u = mn(c.value) : c.type === as ? u = et(c.value) : c.type === cs ? u = tl(c.value) : u = new R(c.type, c.value), r.push(u);
11196
+ c.type === is ? u = mn(c.value) : c.type === as ? u = et(c.value) : c.type === cs ? u = tl(c.value) : u = new k(c.type, c.value), r.push(u);
11197
11197
  }
11198
11198
  else
11199
- i === ge ? r.push(new R(ge, sl(o.value, e, s))) : r.push(o);
11199
+ i === ge ? r.push(new k(ge, sl(o.value, e, s))) : r.push(o);
11200
11200
  }
11201
11201
  return r;
11202
11202
  }
@@ -11237,15 +11237,15 @@ function gt(t, e, s) {
11237
11237
  r.push(function() {
11238
11238
  for (var y = r.pop(), v = [], _ = f.value; _-- > 0; )
11239
11239
  v.unshift(r.pop());
11240
- var U = r.pop(), x = function() {
11241
- for (var $ = Object.assign({}, s), L = 0, Q = v.length; L < Q; L++)
11242
- $[v[L]] = arguments[L];
11240
+ var U = r.pop(), C = function() {
11241
+ for (var $ = Object.assign({}, s), R = 0, V = v.length; R < V; R++)
11242
+ $[v[R]] = arguments[R];
11243
11243
  return gt(y, e, $);
11244
11244
  };
11245
- return Object.defineProperty(x, "name", {
11245
+ return Object.defineProperty(C, "name", {
11246
11246
  value: U,
11247
11247
  writable: !1
11248
- }), s[U] = x, x;
11248
+ }), s[U] = C, C;
11249
11249
  }());
11250
11250
  else if (p === ge)
11251
11251
  r.push(sy(f, e));
@@ -11376,19 +11376,19 @@ function nl(t, e, s) {
11376
11376
  nl.prototype.toString = function() {
11377
11377
  return this.type + ": " + this.value;
11378
11378
  };
11379
- function W(t, e) {
11379
+ function Q(t, e) {
11380
11380
  this.pos = 0, this.current = null, this.unaryOps = t.unaryOps, this.binaryOps = t.binaryOps, this.ternaryOps = t.ternaryOps, this.consts = t.consts, this.expression = e, this.savedPosition = 0, this.savedCurrent = null, this.options = t.options, this.parser = t;
11381
11381
  }
11382
- W.prototype.newToken = function(t, e, s) {
11382
+ Q.prototype.newToken = function(t, e, s) {
11383
11383
  return new nl(t, e, s ?? this.pos);
11384
11384
  };
11385
- W.prototype.save = function() {
11385
+ Q.prototype.save = function() {
11386
11386
  this.savedPosition = this.pos, this.savedCurrent = this.current;
11387
11387
  };
11388
- W.prototype.restore = function() {
11388
+ Q.prototype.restore = function() {
11389
11389
  this.pos = this.savedPosition, this.current = this.savedCurrent;
11390
11390
  };
11391
- W.prototype.next = function() {
11391
+ Q.prototype.next = function() {
11392
11392
  if (this.pos >= this.expression.length)
11393
11393
  return this.newToken(Rs, "EOF");
11394
11394
  if (this.isWhitespace() || this.isComment())
@@ -11397,7 +11397,7 @@ W.prototype.next = function() {
11397
11397
  return this.current;
11398
11398
  this.parseError('Unknown character "' + this.expression.charAt(this.pos) + '"');
11399
11399
  };
11400
- W.prototype.isString = function() {
11400
+ Q.prototype.isString = function() {
11401
11401
  var t = !1, e = this.pos, s = this.expression.charAt(e);
11402
11402
  if (s === "'" || s === '"')
11403
11403
  for (var r = this.expression.indexOf(s, e + 1); r >= 0 && this.pos < this.expression.length; ) {
@@ -11410,23 +11410,23 @@ W.prototype.isString = function() {
11410
11410
  }
11411
11411
  return t;
11412
11412
  };
11413
- W.prototype.isParen = function() {
11413
+ Q.prototype.isParen = function() {
11414
11414
  var t = this.expression.charAt(this.pos);
11415
11415
  return t === "(" || t === ")" ? (this.current = this.newToken(Qe, t), this.pos++, !0) : !1;
11416
11416
  };
11417
- W.prototype.isBracket = function() {
11417
+ Q.prototype.isBracket = function() {
11418
11418
  var t = this.expression.charAt(this.pos);
11419
11419
  return (t === "[" || t === "]") && this.isOperatorEnabled("[") ? (this.current = this.newToken(Wt, t), this.pos++, !0) : !1;
11420
11420
  };
11421
- W.prototype.isComma = function() {
11421
+ Q.prototype.isComma = function() {
11422
11422
  var t = this.expression.charAt(this.pos);
11423
11423
  return t === "," ? (this.current = this.newToken(bn, ","), this.pos++, !0) : !1;
11424
11424
  };
11425
- W.prototype.isSemicolon = function() {
11425
+ Q.prototype.isSemicolon = function() {
11426
11426
  var t = this.expression.charAt(this.pos);
11427
11427
  return t === ";" ? (this.current = this.newToken(ei, ";"), this.pos++, !0) : !1;
11428
11428
  };
11429
- W.prototype.isConst = function() {
11429
+ Q.prototype.isConst = function() {
11430
11430
  for (var t = this.pos, e = t; e < this.expression.length; e++) {
11431
11431
  var s = this.expression.charAt(e);
11432
11432
  if (s.toUpperCase() === s.toLowerCase() && (e === this.pos || s !== "_" && s !== "." && (s < "0" || s > "9")))
@@ -11439,7 +11439,7 @@ W.prototype.isConst = function() {
11439
11439
  }
11440
11440
  return !1;
11441
11441
  };
11442
- W.prototype.isNamedOp = function() {
11442
+ Q.prototype.isNamedOp = function() {
11443
11443
  for (var t = this.pos, e = t; e < this.expression.length; e++) {
11444
11444
  var s = this.expression.charAt(e);
11445
11445
  if (s.toUpperCase() === s.toLowerCase() && (e === this.pos || s !== "_" && (s < "0" || s > "9")))
@@ -11452,7 +11452,7 @@ W.prototype.isNamedOp = function() {
11452
11452
  }
11453
11453
  return !1;
11454
11454
  };
11455
- W.prototype.isName = function() {
11455
+ Q.prototype.isName = function() {
11456
11456
  for (var t = this.pos, e = t, s = !1; e < this.expression.length; e++) {
11457
11457
  var r = this.expression.charAt(e);
11458
11458
  if (r.toUpperCase() === r.toLowerCase()) {
@@ -11470,14 +11470,14 @@ W.prototype.isName = function() {
11470
11470
  }
11471
11471
  return !1;
11472
11472
  };
11473
- W.prototype.isWhitespace = function() {
11473
+ Q.prototype.isWhitespace = function() {
11474
11474
  for (var t = !1, e = this.expression.charAt(this.pos); (e === " " || e === " " || e === `
11475
11475
  ` || e === "\r") && (t = !0, this.pos++, !(this.pos >= this.expression.length)); )
11476
11476
  e = this.expression.charAt(this.pos);
11477
11477
  return t;
11478
11478
  };
11479
11479
  var ry = /^[0-9a-f]{4}$/i;
11480
- W.prototype.unescape = function(t) {
11480
+ Q.prototype.unescape = function(t) {
11481
11481
  var e = t.indexOf("\\");
11482
11482
  if (e < 0)
11483
11483
  return t;
@@ -11525,11 +11525,11 @@ W.prototype.unescape = function(t) {
11525
11525
  }
11526
11526
  return s;
11527
11527
  };
11528
- W.prototype.isComment = function() {
11528
+ Q.prototype.isComment = function() {
11529
11529
  var t = this.expression.charAt(this.pos);
11530
11530
  return t === "/" && this.expression.charAt(this.pos + 1) === "*" ? (this.pos = this.expression.indexOf("*/", this.pos) + 2, this.pos === 1 && (this.pos = this.expression.length), !0) : !1;
11531
11531
  };
11532
- W.prototype.isRadixInteger = function() {
11532
+ Q.prototype.isRadixInteger = function() {
11533
11533
  var t = this.pos;
11534
11534
  if (t >= this.expression.length - 2 || this.expression.charAt(t) !== "0")
11535
11535
  return !1;
@@ -11550,7 +11550,7 @@ W.prototype.isRadixInteger = function() {
11550
11550
  }
11551
11551
  return r && (this.current = this.newToken(yn, parseInt(this.expression.substring(n, t), e)), this.pos = t), r;
11552
11552
  };
11553
- W.prototype.isNumber = function() {
11553
+ Q.prototype.isNumber = function() {
11554
11554
  for (var t = !1, e = this.pos, s = e, r = e, n = !1, o = !1, i; e < this.expression.length && (i = this.expression.charAt(e), i >= "0" && i <= "9" || !n && i === "."); )
11555
11555
  i === "." ? n = !0 : o = !0, e++, t = o;
11556
11556
  if (t && (r = e), i === "e" || i === "E") {
@@ -11568,7 +11568,7 @@ W.prototype.isNumber = function() {
11568
11568
  }
11569
11569
  return t ? (this.current = this.newToken(yn, parseFloat(this.expression.substring(s, e))), this.pos = e) : this.pos = r, t;
11570
11570
  };
11571
- W.prototype.isOperator = function() {
11571
+ Q.prototype.isOperator = function() {
11572
11572
  var t = this.pos, e = this.expression.charAt(this.pos);
11573
11573
  if (e === "+" || e === "-" || e === "*" || e === "/" || e === "%" || e === "^" || e === "?" || e === ":" || e === ".")
11574
11574
  this.current = this.newToken(j, e);
@@ -11591,10 +11591,10 @@ W.prototype.isOperator = function() {
11591
11591
  return !1;
11592
11592
  return this.pos++, this.isOperatorEnabled(this.current.value) ? !0 : (this.pos = t, !1);
11593
11593
  };
11594
- W.prototype.isOperatorEnabled = function(t) {
11594
+ Q.prototype.isOperatorEnabled = function(t) {
11595
11595
  return this.parser.isOperatorEnabled(t);
11596
11596
  };
11597
- W.prototype.getCoordinates = function() {
11597
+ Q.prototype.getCoordinates = function() {
11598
11598
  var t = 0, e, s = -1;
11599
11599
  do
11600
11600
  t++, e = this.pos - s, s = this.expression.indexOf(`
@@ -11605,7 +11605,7 @@ W.prototype.getCoordinates = function() {
11605
11605
  column: e
11606
11606
  };
11607
11607
  };
11608
- W.prototype.parseError = function(t) {
11608
+ Q.prototype.parseError = function(t) {
11609
11609
  var e = this.getCoordinates();
11610
11610
  throw new Error("parse error [" + e.line + ":" + e.column + "]: " + t);
11611
11611
  };
@@ -11639,19 +11639,19 @@ z.prototype.parseAtom = function(t) {
11639
11639
  return n.value in e;
11640
11640
  }
11641
11641
  if (this.accept(Jo) || this.accept(j, s))
11642
- t.push(new R(We, this.current.value));
11642
+ t.push(new k(We, this.current.value));
11643
11643
  else if (this.accept(yn))
11644
- t.push(new R($e, this.current.value));
11644
+ t.push(new k($e, this.current.value));
11645
11645
  else if (this.accept(rl))
11646
- t.push(new R($e, this.current.value));
11646
+ t.push(new k($e, this.current.value));
11647
11647
  else if (this.accept(Qe, "("))
11648
11648
  this.parseExpression(t), this.expect(Qe, ")");
11649
11649
  else if (this.accept(Wt, "["))
11650
11650
  if (this.accept(Wt, "]"))
11651
- t.push(new R(Yt, 0));
11651
+ t.push(new k(Yt, 0));
11652
11652
  else {
11653
11653
  var r = this.parseArrayList(t);
11654
- t.push(new R(Yt, r));
11654
+ t.push(new k(Yt, r));
11655
11655
  }
11656
11656
  else
11657
11657
  throw new Error("unexpected " + this.nextToken);
@@ -11665,7 +11665,7 @@ z.prototype.pushExpression = function(t, e) {
11665
11665
  t.push(e[s]);
11666
11666
  };
11667
11667
  z.prototype.parseUntilEndStatement = function(t, e) {
11668
- return this.accept(ei) ? (this.nextToken && this.nextToken.type !== Rs && !(this.nextToken.type === Qe && this.nextToken.value === ")") && e.push(new R(gn)), this.nextToken.type !== Rs && this.parseExpression(e), t.push(new R(ge, e)), !0) : !1;
11668
+ return this.accept(ei) ? (this.nextToken && this.nextToken.type !== Rs && !(this.nextToken.type === Qe && this.nextToken.value === ")") && e.push(new k(gn)), this.nextToken.type !== Rs && this.parseExpression(e), t.push(new k(ge, e)), !0) : !1;
11669
11669
  };
11670
11670
  z.prototype.parseArrayList = function(t) {
11671
11671
  for (var e = 0; !this.accept(Wt, "]"); )
@@ -11681,32 +11681,32 @@ z.prototype.parseVariableAssignmentExpression = function(t) {
11681
11681
  throw new Error("function definition is not permitted");
11682
11682
  for (var n = 0, o = e.value + 1; n < o; n++) {
11683
11683
  var i = r - n;
11684
- t[i].type === We && (t[i] = new R(Tt, t[i].value));
11684
+ t[i].type === We && (t[i] = new k(Tt, t[i].value));
11685
11685
  }
11686
- this.parseVariableAssignmentExpression(s), t.push(new R(ge, s)), t.push(new R(pn, e.value));
11686
+ this.parseVariableAssignmentExpression(s), t.push(new k(ge, s)), t.push(new k(pn, e.value));
11687
11687
  continue;
11688
11688
  }
11689
11689
  if (e.type !== We && e.type !== It)
11690
11690
  throw new Error("expected variable for assignment");
11691
- this.parseVariableAssignmentExpression(s), t.push(new R(Tt, e.value)), t.push(new R(ge, s)), t.push(et("="));
11691
+ this.parseVariableAssignmentExpression(s), t.push(new k(Tt, e.value)), t.push(new k(ge, s)), t.push(et("="));
11692
11692
  }
11693
11693
  };
11694
11694
  z.prototype.parseConditionalExpression = function(t) {
11695
11695
  for (this.parseOrExpression(t); this.accept(j, "?"); ) {
11696
11696
  var e = [], s = [];
11697
- this.parseConditionalExpression(e), this.expect(j, ":"), this.parseConditionalExpression(s), t.push(new R(ge, e)), t.push(new R(ge, s)), t.push(tl("?"));
11697
+ this.parseConditionalExpression(e), this.expect(j, ":"), this.parseConditionalExpression(s), t.push(new k(ge, e)), t.push(new k(ge, s)), t.push(tl("?"));
11698
11698
  }
11699
11699
  };
11700
11700
  z.prototype.parseOrExpression = function(t) {
11701
11701
  for (this.parseAndExpression(t); this.accept(j, "or"); ) {
11702
11702
  var e = [];
11703
- this.parseAndExpression(e), t.push(new R(ge, e)), t.push(et("or"));
11703
+ this.parseAndExpression(e), t.push(new k(ge, e)), t.push(et("or"));
11704
11704
  }
11705
11705
  };
11706
11706
  z.prototype.parseAndExpression = function(t) {
11707
11707
  for (this.parseComparison(t); this.accept(j, "and"); ) {
11708
11708
  var e = [];
11709
- this.parseComparison(e), t.push(new R(ge, e)), t.push(et("and"));
11709
+ this.parseComparison(e), t.push(new k(ge, e)), t.push(et("and"));
11710
11710
  }
11711
11711
  };
11712
11712
  var ny = ["==", "!=", "<", "<=", ">=", ">", "in"];
@@ -11769,10 +11769,10 @@ z.prototype.parseFunctionCall = function(t) {
11769
11769
  } else
11770
11770
  for (this.parseMemberExpression(t); this.accept(Qe, "("); )
11771
11771
  if (this.accept(Qe, ")"))
11772
- t.push(new R(Gt, 0));
11772
+ t.push(new k(Gt, 0));
11773
11773
  else {
11774
11774
  var n = this.parseArgumentList(t);
11775
- t.push(new R(Gt, n));
11775
+ t.push(new k(Gt, n));
11776
11776
  }
11777
11777
  };
11778
11778
  z.prototype.parseArgumentList = function(t) {
@@ -11787,7 +11787,7 @@ z.prototype.parseMemberExpression = function(t) {
11787
11787
  if (e.value === ".") {
11788
11788
  if (!this.allowMemberAccess)
11789
11789
  throw new Error('unexpected ".", member access is not permitted');
11790
- this.expect(Jo), t.push(new R(It, this.current.value));
11790
+ this.expect(Jo), t.push(new k(It, this.current.value));
11791
11791
  } else if (e.value === "[") {
11792
11792
  if (!this.tokens.isOperatorEnabled("["))
11793
11793
  throw new Error('unexpected "[]", arrays are disabled');
@@ -12086,7 +12086,7 @@ function Ct(t) {
12086
12086
  Ct.prototype.parse = function(t) {
12087
12087
  var e = [], s = new z(
12088
12088
  this,
12089
- new W(this, t),
12089
+ new Q(this, t),
12090
12090
  { allowMemberAccess: this.options.allowMemberAccess }
12091
12091
  );
12092
12092
  return s.parseExpression(e), s.expect(Rs, "EOF"), new Ce(e, this);
@@ -12210,7 +12210,7 @@ let Fr = class {
12210
12210
  * ```
12211
12211
  */
12212
12212
  setContextData(t) {
12213
- this._data.setValues(t), ae(() => {
12213
+ this._data.setValues(t), ce(() => {
12214
12214
  this._contextRevision++, this.logger.debug(
12215
12215
  "Context revision incremented to:",
12216
12216
  this._contextRevision
@@ -12393,7 +12393,7 @@ let Fr = class {
12393
12393
  this.logger.debug(
12394
12394
  `ExpressionEvaluator.updateResult called for "${t}":`,
12395
12395
  e
12396
- ), ae(() => {
12396
+ ), ce(() => {
12397
12397
  this._results[t] = e;
12398
12398
  });
12399
12399
  }
@@ -12417,7 +12417,7 @@ let Fr = class {
12417
12417
  };
12418
12418
  tb(Fr, "Registration");
12419
12419
  Fr = eb([
12420
- D({ modelTypeId: sb, singleton: !1 })
12420
+ x({ modelTypeId: sb, singleton: !1 })
12421
12421
  ], Fr);
12422
12422
  const nb = Fr.Registration, ob = g.createLogger({
12423
12423
  name: "kos-log-manager-service",
@@ -12586,7 +12586,7 @@ vn([
12586
12586
  })
12587
12587
  ], Qt.prototype, "handleOverrideRemoved", 1);
12588
12588
  Qt = vn([
12589
- D(al)
12589
+ x(al)
12590
12590
  ], Qt);
12591
12591
  const hb = new Be({
12592
12592
  class: Qt,
@@ -12712,7 +12712,7 @@ wn([
12712
12712
  q({ topic: bb, websocket: !0 })
12713
12713
  ], Zt.prototype, "handleTimeZoneChange", 1);
12714
12714
  Zt = wn([
12715
- D(fs)
12715
+ x(fs)
12716
12716
  ], Zt);
12717
12717
  const no = {
12718
12718
  registration: {
@@ -12768,7 +12768,7 @@ hl([
12768
12768
  Ue
12769
12769
  ], Nr.prototype, "_models", 2);
12770
12770
  Nr = hl([
12771
- D(fl)
12771
+ x(fl)
12772
12772
  ], Nr);
12773
12773
  const Eb = g.createLogger({
12774
12774
  name: "log-stream-container-service",
@@ -12906,7 +12906,7 @@ let oo = class {
12906
12906
  }
12907
12907
  };
12908
12908
  oo = $b([
12909
- D(wl)
12909
+ x(wl)
12910
12910
  ], oo);
12911
12911
  const Ur = new Pe({
12912
12912
  class: oo,
@@ -13084,7 +13084,7 @@ El([
13084
13084
  Ue
13085
13085
  ], jr.prototype, "_blocks", 2);
13086
13086
  jr = El([
13087
- D(Ml)
13087
+ x(Ml)
13088
13088
  ], jr);
13089
13089
  const Ir = new Pe({
13090
13090
  class: jr,
@@ -13223,7 +13223,7 @@ Dt([
13223
13223
  })
13224
13224
  ], Ze.prototype, "handleLogLine", 1);
13225
13225
  Ze = Dt([
13226
- D(_l)
13226
+ x(_l)
13227
13227
  ], Ze);
13228
13228
  const En = new Be({
13229
13229
  class: Ze,
@@ -13513,7 +13513,7 @@ Dl([
13513
13513
  di()
13514
13514
  ], Br.prototype, "resolve", 1);
13515
13515
  Br = Dl([
13516
- D(ps)
13516
+ x(ps)
13517
13517
  ], Br);
13518
13518
  const Hr = {
13519
13519
  registration: {
@@ -13533,25 +13533,25 @@ var xl = Object.defineProperty, Gb = Object.getOwnPropertyDescriptor, Yb = (t, e
13533
13533
  }, Wb = (t, e, s) => (Yb(t, e + "", s), s);
13534
13534
  function Zi(t) {
13535
13535
  return M.propertyMapper.hasMapper(
13536
- ce.TroubleRank
13536
+ le.TroubleRank
13537
13537
  ) ? M.propertyMapper.executeMapper(
13538
- ce.TroubleRank,
13538
+ le.TroubleRank,
13539
13539
  t
13540
13540
  ) : Fb(t);
13541
13541
  }
13542
13542
  function Xi(t) {
13543
13543
  return (M.propertyMapper.hasMapper(
13544
- ce.TroubleColor
13544
+ le.TroubleColor
13545
13545
  ) ? M.propertyMapper.executeMapper(
13546
- ce.TroubleColor,
13546
+ le.TroubleColor,
13547
13547
  t
13548
13548
  ) : Nb(t)).toLowerCase();
13549
13549
  }
13550
13550
  function Ji(t) {
13551
13551
  return (M.propertyMapper.hasMapper(
13552
- ce.TroubleRole
13552
+ le.TroubleRole
13553
13553
  ) ? M.propertyMapper.executeMapper(
13554
- ce.TroubleRole,
13554
+ le.TroubleRole,
13555
13555
  t
13556
13556
  ) : Ub(t)).toLowerCase();
13557
13557
  }
@@ -13625,7 +13625,7 @@ Tn([
13625
13625
  q({ topic: "/kos/trouble/add", websocket: !0 })
13626
13626
  ], $t.prototype, "handleTroubleAdded", 1);
13627
13627
  $t = Tn([
13628
- D({ modelTypeId: Qb, singleton: !0 }),
13628
+ x({ modelTypeId: Qb, singleton: !0 }),
13629
13629
  Gs(),
13630
13630
  dh(),
13631
13631
  Ao({
@@ -13809,7 +13809,7 @@ $n([
13809
13809
  })
13810
13810
  ], Xt.prototype, "handleChangedArtifacts", 1);
13811
13811
  Xt = $n([
13812
- D(Al)
13812
+ x(Al)
13813
13813
  ], Xt);
13814
13814
  const ao = new Be({
13815
13815
  class: Xt,
@@ -13844,7 +13844,7 @@ const Rl = () => {
13844
13844
  destinationAddress: rv
13845
13845
  });
13846
13846
  if (!s)
13847
- throw t != null && t.aborted ? (Kn.debug("Request was aborted"), new G("Request was aborted")) : (Kn.error("Failed to fetch software-info", e), new G("Failed to fetch software-info"));
13847
+ throw t != null && t.aborted ? (Kn.debug("Request was aborted"), new Y("Request was aborted")) : (Kn.error("Failed to fetch software-info", e), new Y("Failed to fetch software-info"));
13848
13848
  return s;
13849
13849
  }, nv = sv(ni), zT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13850
13850
  __proto__: null,
@@ -13893,7 +13893,7 @@ let co = class {
13893
13893
  this.logger.debug(`loading software-info ${this.id}`);
13894
13894
  try {
13895
13895
  const t = await ni(), e = (t == null ? void 0 : t.nodes) || {};
13896
- ae(() => {
13896
+ ce(() => {
13897
13897
  const r = Object.keys(e).map((n) => e[n][0]).map((n) => ({
13898
13898
  nodeName: n.nodeType,
13899
13899
  kosVersion: n.kosVersion,
@@ -13902,12 +13902,12 @@ let co = class {
13902
13902
  this.nodes = r;
13903
13903
  });
13904
13904
  } catch (t) {
13905
- t instanceof G && this.logger.error("Failed to fetch software-info", t);
13905
+ t instanceof Y && this.logger.error("Failed to fetch software-info", t);
13906
13906
  }
13907
13907
  }
13908
13908
  };
13909
13909
  co = iv([
13910
- D(gs)
13910
+ x(gs)
13911
13911
  ], co);
13912
13912
  const lo = {
13913
13913
  registration: {
@@ -13996,7 +13996,7 @@ Fl([
13996
13996
  })
13997
13997
  ], qr.prototype, "handleConfigBeanUpdated", 1);
13998
13998
  qr = Fl([
13999
- D(ms)
13999
+ x(ms)
14000
14000
  ], qr);
14001
14001
  const zr = {
14002
14002
  registration: {
@@ -14062,7 +14062,7 @@ Nl([
14062
14062
  })
14063
14063
  ], Kr.prototype, "stateBean", 2);
14064
14064
  Kr = Nl([
14065
- D(ys)
14065
+ x(ys)
14066
14066
  ], Kr);
14067
14067
  const Ul = {
14068
14068
  registration: {
@@ -14242,7 +14242,7 @@ let ho = class {
14242
14242
  return Promise.resolve({});
14243
14243
  }
14244
14244
  }), s = await Promise.allSettled(e);
14245
- ae(() => {
14245
+ ce(() => {
14246
14246
  const r = s.reduce(
14247
14247
  (n, o, i) => (o.status === "fulfilled" ? (this.logger.debug(`resolved ${t[i]}`, o.value), o.value && (n = ql(n, o.value))) : this.logger.error(
14248
14248
  `failed to load translation ${this.id} for ${t[i]}`
@@ -14323,7 +14323,7 @@ let ho = class {
14323
14323
  };
14324
14324
  ho = Mv([
14325
14325
  Po(),
14326
- D(bs)
14326
+ x(bs)
14327
14327
  ], ho);
14328
14328
  const fo = {
14329
14329
  registration: {
@@ -14411,7 +14411,7 @@ let Vr = class {
14411
14411
  descriptor: this.descriptor.namespaces[t].locales,
14412
14412
  resolver: this.resolver
14413
14413
  });
14414
- return this.addModel(o), this.namespaces.includes(t) || ae(() => {
14414
+ return this.addModel(o), this.namespaces.includes(t) || ce(() => {
14415
14415
  this.namespaces.push(t);
14416
14416
  }), o;
14417
14417
  } else {
@@ -14454,7 +14454,7 @@ zl([
14454
14454
  Ue
14455
14455
  ], Vr.prototype, "_models", 2);
14456
14456
  Vr = zl([
14457
- D(vs)
14457
+ x(vs)
14458
14458
  ], Vr);
14459
14459
  const nt = {
14460
14460
  registration: {
@@ -14544,7 +14544,7 @@ ii([
14544
14544
  })
14545
14545
  ], Fs.prototype, "handleReceiveEvent", 1);
14546
14546
  Fs = ii([
14547
- D(Kl.type)
14547
+ x(Kl.type)
14548
14548
  ], Fs);
14549
14549
  const ra = we(), Av = ra.debug === "true" || ra.debug === !0, Rv = "/api/system/canvas", Vl = async (t, e) => {
14550
14550
  const r = `${Me}${e || Rv}`;
@@ -14725,7 +14725,7 @@ Gl([
14725
14725
  })
14726
14726
  ], Gr.prototype, "router", 2);
14727
14727
  Gr = Gl([
14728
- D(Yl)
14728
+ x(Yl)
14729
14729
  ], Gr);
14730
14730
  const Wl = new Pe({
14731
14731
  class: Gr,
@@ -15406,19 +15406,19 @@ class Jl extends xt {
15406
15406
  this.drawScrollingImage(s, r, n, i), this.checkScrollCompletion(s, r, n, i);
15407
15407
  }
15408
15408
  drawScrollingImage(s, r, n, o) {
15409
- var h, f, p, m, y, v, _, U, x;
15409
+ var h, f, p, m, y, v, _, U, C;
15410
15410
  const i = this.img.width / this.img.height;
15411
15411
  let a, c;
15412
15412
  ((h = this.scrollConfig) == null ? void 0 : h.maintainAspectRatio) !== !1 ? (f = this.scrollConfig) != null && f.height ? (c = this.scrollConfig.height, a = c * i) : (p = this.scrollConfig) != null && p.width ? (a = this.scrollConfig.width, c = a / i) : n === "left" || n === "right" ? (c = r, a = c * i) : (a = s, c = a / i) : (a = ((m = this.scrollConfig) == null ? void 0 : m.width) || s, c = ((y = this.scrollConfig) == null ? void 0 : y.height) || r);
15413
15413
  let u, d;
15414
- switch (n === "left" || n === "right" ? (u = 0, ((v = this.scrollConfig) == null ? void 0 : v.offsetY) === "center" || ((_ = this.scrollConfig) == null ? void 0 : _.offsetY) === void 0 ? d = (r - c) / 2 : d = this.scrollConfig.offsetY) : (((U = this.scrollConfig) == null ? void 0 : U.offsetX) === "center" || ((x = this.scrollConfig) == null ? void 0 : x.offsetX) === void 0 ? u = (s - a) / 2 : u = this.scrollConfig.offsetX, d = 0), n) {
15414
+ switch (n === "left" || n === "right" ? (u = 0, ((v = this.scrollConfig) == null ? void 0 : v.offsetY) === "center" || ((_ = this.scrollConfig) == null ? void 0 : _.offsetY) === void 0 ? d = (r - c) / 2 : d = this.scrollConfig.offsetY) : (((U = this.scrollConfig) == null ? void 0 : U.offsetX) === "center" || ((C = this.scrollConfig) == null ? void 0 : C.offsetX) === void 0 ? u = (s - a) / 2 : u = this.scrollConfig.offsetX, d = 0), n) {
15415
15415
  case "left": {
15416
15416
  const $ = s - this.position;
15417
15417
  if ($ < s && $ > -a && this.ctx.drawImage(this.img, $, d, a, c), this.loopConfig && this.pauseDuration === 0 && this.position > o) {
15418
- const L = $ + a + o;
15419
- L < s && this.ctx.drawImage(
15418
+ const R = $ + a + o;
15419
+ R < s && this.ctx.drawImage(
15420
15420
  this.img,
15421
- L,
15421
+ R,
15422
15422
  d,
15423
15423
  a,
15424
15424
  c
@@ -15429,10 +15429,10 @@ class Jl extends xt {
15429
15429
  case "right": {
15430
15430
  const $ = -a + this.position;
15431
15431
  if ($ > -a && $ < s && this.ctx.drawImage(this.img, $, d, a, c), this.loopConfig && this.pauseDuration === 0 && $ - o - a > -a) {
15432
- const L = $ - a - o;
15433
- L < s && this.ctx.drawImage(
15432
+ const R = $ - a - o;
15433
+ R < s && this.ctx.drawImage(
15434
15434
  this.img,
15435
- L,
15435
+ R,
15436
15436
  d,
15437
15437
  a,
15438
15438
  c
@@ -15443,11 +15443,11 @@ class Jl extends xt {
15443
15443
  case "up": {
15444
15444
  const $ = r - this.position;
15445
15445
  if ($ > -c && $ < r && this.ctx.drawImage(this.img, u, $, a, c), this.loopConfig && this.pauseDuration === 0 && $ + c + o < r) {
15446
- const L = $ + c + o;
15447
- L > -c && this.ctx.drawImage(
15446
+ const R = $ + c + o;
15447
+ R > -c && this.ctx.drawImage(
15448
15448
  this.img,
15449
15449
  u,
15450
- L,
15450
+ R,
15451
15451
  a,
15452
15452
  c
15453
15453
  );
@@ -15457,11 +15457,11 @@ class Jl extends xt {
15457
15457
  case "down": {
15458
15458
  const $ = -c + this.position;
15459
15459
  if ($ > -c && $ < r && this.ctx.drawImage(this.img, u, $, a, c), this.loopConfig && this.pauseDuration === 0 && $ - o - c > -c) {
15460
- const L = $ - c - o;
15461
- L < r && this.ctx.drawImage(
15460
+ const R = $ - c - o;
15461
+ R < r && this.ctx.drawImage(
15462
15462
  this.img,
15463
15463
  u,
15464
- L,
15464
+ R,
15465
15465
  a,
15466
15466
  c
15467
15467
  );
@@ -16104,7 +16104,7 @@ us([
16104
16104
  hn("/api/ui/canvas/endpoint")
16105
16105
  ], ot.prototype, "handleEndpointCreation", 1);
16106
16106
  ot = us([
16107
- D(eu)
16107
+ x(eu)
16108
16108
  ], ot);
16109
16109
  const Ns = new Be({
16110
16110
  class: ot,
@@ -16119,7 +16119,7 @@ const Ns = new Be({
16119
16119
  });
16120
16120
  return [void 0, t == null ? void 0 : t.data.serialNumber];
16121
16121
  } catch (t) {
16122
- if (t instanceof G)
16122
+ if (t instanceof Y)
16123
16123
  return Qr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
16124
16124
  }
16125
16125
  return ["unknownError", void 0];
@@ -16131,7 +16131,7 @@ const Ns = new Be({
16131
16131
  });
16132
16132
  return t ? [void 0, t.data] : ["unknownError", void 0];
16133
16133
  } catch (t) {
16134
- if (t instanceof G)
16134
+ if (t instanceof Y)
16135
16135
  return Qr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
16136
16136
  }
16137
16137
  return ["unknownError", void 0];
@@ -16350,7 +16350,7 @@ nu([
16350
16350
  })
16351
16351
  ], Zr.prototype, "handleCriticalDataChanged", 1);
16352
16352
  Zr = nu([
16353
- D(ou)
16353
+ x(ou)
16354
16354
  ], Zr);
16355
16355
  const po = new Be({
16356
16356
  class: Zr,
@@ -16407,7 +16407,7 @@ let go = class {
16407
16407
  }
16408
16408
  };
16409
16409
  go = aw([
16410
- D(iu)
16410
+ x(iu)
16411
16411
  ], go);
16412
16412
  const au = new Pe({
16413
16413
  class: go,
@@ -16425,7 +16425,7 @@ const au = new Pe({
16425
16425
  });
16426
16426
  return [void 0, t == null ? void 0 : t.data];
16427
16427
  } catch (t) {
16428
- if (t instanceof G)
16428
+ if (t instanceof Y)
16429
16429
  return ia.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
16430
16430
  }
16431
16431
  return ["unknownError", void 0];
@@ -16504,7 +16504,7 @@ lu([
16504
16504
  Ue
16505
16505
  ], Xr.prototype, "_models", 2);
16506
16506
  Xr = lu([
16507
- D(uu)
16507
+ x(uu)
16508
16508
  ], Xr);
16509
16509
  const Jr = new Be({
16510
16510
  class: Xr,
@@ -16579,7 +16579,7 @@ let mo = class {
16579
16579
  };
16580
16580
  mo = mw([
16581
16581
  Po(),
16582
- D(hu)
16582
+ x(hu)
16583
16583
  ], mo);
16584
16584
  const yo = new Pe({
16585
16585
  class: mo,
@@ -16671,7 +16671,7 @@ li([
16671
16671
  })
16672
16672
  ], Us.prototype, "handleStorageAvailability", 1);
16673
16673
  Us = li([
16674
- D(fu)
16674
+ x(fu)
16675
16675
  ], Us);
16676
16676
  const js = new Be({
16677
16677
  class: Us,
@@ -16753,7 +16753,7 @@ mu([
16753
16753
  di()
16754
16754
  ], en.prototype, "install", 1);
16755
16755
  en = mu([
16756
- D(yu)
16756
+ x(yu)
16757
16757
  ], en);
16758
16758
  const bu = new Pe({
16759
16759
  class: en,
@@ -16811,7 +16811,7 @@ let Jt = class {
16811
16811
  }
16812
16812
  async syncAvailableUpdates() {
16813
16813
  const t = await pu();
16814
- ae(() => {
16814
+ ce(() => {
16815
16815
  const e = t.map(
16816
16816
  (s) => `${s.deviceId}-${s.manifestId}`
16817
16817
  );
@@ -16851,7 +16851,7 @@ Sn([
16851
16851
  gh({ dependencies: (t) => [t.isUsbInserted] })
16852
16852
  ], Jt.prototype, "usbInsertedEffect", 1);
16853
16853
  Jt = Sn([
16854
- D(vu)
16854
+ x(vu)
16855
16855
  ], Jt);
16856
16856
  const tn = new Be({
16857
16857
  class: Jt,
@@ -16913,7 +16913,7 @@ class s$ {
16913
16913
  * */
16914
16914
  registerTroubleRankMapper(e, s) {
16915
16915
  return M.propertyMapper.registerPropertyMapper(
16916
- ce.TroubleRank,
16916
+ le.TroubleRank,
16917
16917
  e,
16918
16918
  s
16919
16919
  ), this;
@@ -16929,7 +16929,7 @@ class s$ {
16929
16929
  * */
16930
16930
  registerTroubleRoleMapper(e, s) {
16931
16931
  return M.propertyMapper.registerPropertyMapper(
16932
- ce.TroubleRole,
16932
+ le.TroubleRole,
16933
16933
  e,
16934
16934
  s
16935
16935
  ), this;
@@ -16945,7 +16945,7 @@ class s$ {
16945
16945
  * */
16946
16946
  registerTroubleColorMapper(e, s) {
16947
16947
  return M.propertyMapper.registerPropertyMapper(
16948
- ce.TroubleColor,
16948
+ le.TroubleColor,
16949
16949
  e,
16950
16950
  s
16951
16951
  ), this;
@@ -16965,7 +16965,7 @@ class s$ {
16965
16965
  }
16966
16966
  registerRegionServicePathMapper(e) {
16967
16967
  return M.propertyMapper.registerPropertyMapper(
16968
- ce.RegionServicePath,
16968
+ le.RegionServicePath,
16969
16969
  e
16970
16970
  ), this;
16971
16971
  }
@@ -16986,7 +16986,7 @@ class s$ {
16986
16986
  }
16987
16987
  registerConfigServicePathMapper(e) {
16988
16988
  return M.propertyMapper.registerPropertyMapper(
16989
- ce.ConfigServicePath,
16989
+ le.ConfigServicePath,
16990
16990
  e
16991
16991
  ), this;
16992
16992
  }
@@ -17035,24 +17035,24 @@ const da = He(), i$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
17035
17035
  default: da,
17036
17036
  kosServiceRequest: Pw
17037
17037
  }, Symbol.toStringTag, { value: "Module" }));
17038
- function Aw(t) {
17039
- return at(t);
17040
- }
17041
- const ha = He(), a$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17042
- __proto__: null,
17043
- api: ha,
17044
- default: ha,
17045
- kosServiceRequest: Aw
17046
- }, Symbol.toStringTag, { value: "Module" }));
17047
17038
  function _u(t) {
17048
17039
  return at(t);
17049
17040
  }
17050
- const bo = He(), c$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17041
+ const bo = He(), a$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17051
17042
  __proto__: null,
17052
17043
  api: bo,
17053
17044
  default: bo,
17054
17045
  kosServiceRequest: _u
17055
17046
  }, Symbol.toStringTag, { value: "Module" }));
17047
+ function Aw(t) {
17048
+ return at(t);
17049
+ }
17050
+ const ha = He(), c$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17051
+ __proto__: null,
17052
+ api: ha,
17053
+ default: ha,
17054
+ kosServiceRequest: Aw
17055
+ }, Symbol.toStringTag, { value: "Module" }));
17056
17056
  function Rw(t) {
17057
17057
  return at(t);
17058
17058
  }
@@ -17324,7 +17324,7 @@ function Cu(t, e, s = {}) {
17324
17324
  tracker: c,
17325
17325
  id: Pc
17326
17326
  });
17327
- n && (h.namespace = n), g.debug(`waiting for future ${h.id} to be ready`), await Se(h), g.debug(`future ${h.id} is ready`), ae(() => {
17327
+ n && (h.namespace = n), g.debug(`waiting for future ${h.id} to be ready`), await Se(h), g.debug(`future ${h.id} is ready`), ce(() => {
17328
17328
  g.debug(`Adding future ${h.id} to futureHandler`), this.futureHandler.addFuture(h, r);
17329
17329
  }), o && u && (d = te(() => {
17330
17330
  (h.status === "CANCELLED" || h.endState === Mt.Canceled) && (g.debug(`Future ${h.id} cancelled, aborting request`), u == null || u.abort());
@@ -17515,8 +17515,8 @@ function v$(t, e, s, r) {
17515
17515
  (y !== d || v !== h || _ !== f) && (d = y, h = v, f = _, p.forEach((U) => {
17516
17516
  try {
17517
17517
  U(d, h);
17518
- } catch (x) {
17519
- console.warn("Progress callback error:", x);
17518
+ } catch (C) {
17519
+ console.warn("Progress callback error:", C);
17520
17520
  }
17521
17521
  }));
17522
17522
  })), o.finally(() => {
@@ -17676,7 +17676,7 @@ const Jw = {
17676
17676
  }, tE = ({
17677
17677
  children: t
17678
17678
  }) => {
17679
- const [e, s] = E(), r = re(
17679
+ const [e, s] = E(), r = ne(
17680
17680
  (n) => (s(n), !0),
17681
17681
  [s]
17682
17682
  );
@@ -17687,7 +17687,7 @@ const Jw = {
17687
17687
  Du.debug("Default implementation being used. Do Nothing.");
17688
17688
  }
17689
17689
  }, fi = zs(sE), M$ = ({ children: t }) => {
17690
- const [e, s] = E([]), r = re(
17690
+ const [e, s] = E([]), r = ne(
17691
17691
  (n) => {
17692
17692
  e.includes(n) || (Du.debug("adding to hierarchy context", n.id), s((o) => [...o, n]));
17693
17693
  },
@@ -17701,7 +17701,7 @@ const Jw = {
17701
17701
  "useContextModelHierarchy must be used within a KosModelCollectionProvider"
17702
17702
  );
17703
17703
  const s = (t == null ? void 0 : t.filter) || rE;
17704
- return Y(
17704
+ return W(
17705
17705
  () => e.models.filter(s),
17706
17706
  [e.models, s]
17707
17707
  );
@@ -17811,7 +17811,7 @@ async function mE(t, e) {
17811
17811
  }
17812
17812
  return await (u == null ? void 0 : u.whenReady()), u ? (c = u.modelData, { kosModel: u, model: c }) : { kosModel: void 0, model: void 0 };
17813
17813
  }
17814
- const oe = (t) => {
17814
+ const ie = (t) => {
17815
17815
  const { modelId: e, modelType: s, activate: r, destroyOnUnmount: n } = t, o = dE(), [i, a] = E(!1), [c, u] = E(), { kosModel: d, model: h } = gE(
17816
17816
  e || s || "",
17817
17817
  () => mE(o.kosCore, t)
@@ -17822,7 +17822,7 @@ const oe = (t) => {
17822
17822
  async function f() {
17823
17823
  try {
17824
17824
  return await o.kosCore.whenReady(), r && await (d == null ? void 0 : d.fsm.transitionTo(
17825
- k.GO_ACTIVE,
17825
+ L.GO_ACTIVE,
17826
17826
  b.ACTIVE
17827
17827
  )), a(!0), d;
17828
17828
  } catch (m) {
@@ -17843,7 +17843,7 @@ const oe = (t) => {
17843
17843
  const m = o.kosCore.modelManager.getModelById(
17844
17844
  h.id
17845
17845
  );
17846
- m == null || m.fsm.transitionTo(k.GO_INACTIVE, b.INACTIVE).then(() => {
17846
+ m == null || m.fsm.transitionTo(L.GO_INACTIVE, b.INACTIVE).then(() => {
17847
17847
  if (n) {
17848
17848
  const y = h.id;
17849
17849
  Ve(h).then(() => {
@@ -17877,13 +17877,13 @@ const oe = (t) => {
17877
17877
  };
17878
17878
  }, Pu = () => {
17879
17879
  const t = no.type;
17880
- return oe({
17880
+ return ie({
17881
17881
  modelId: t,
17882
17882
  modelType: no.type,
17883
17883
  options: {}
17884
17884
  });
17885
17885
  }, Au = zs(void 0), S$ = ({ children: t }) => {
17886
- const { model: e, ready: s } = Pu(), r = Y(() => s && e ? { model: e } : {}, [s, e]);
17886
+ const { model: e, ready: s } = Pu(), r = W(() => s && e ? { model: e } : {}, [s, e]);
17887
17887
  return /* @__PURE__ */ w(Au.Provider, { value: r, children: t });
17888
17888
  }, O$ = () => {
17889
17889
  const t = wt(Au);
@@ -17892,7 +17892,7 @@ const oe = (t) => {
17892
17892
  return t;
17893
17893
  }, Ru = () => {
17894
17894
  const t = lo.type;
17895
- return oe({
17895
+ return ie({
17896
17896
  modelId: t,
17897
17897
  modelType: lo.type,
17898
17898
  options: {}
@@ -17907,7 +17907,7 @@ function I$(t) {
17907
17907
  const ku = zs(
17908
17908
  void 0
17909
17909
  ), C$ = ({ children: t }) => {
17910
- const { model: e, ready: s } = Ru(), r = Y(() => s && e ? { model: e } : {}, [s, e]);
17910
+ const { model: e, ready: s } = Ru(), r = W(() => s && e ? { model: e } : {}, [s, e]);
17911
17911
  return /* @__PURE__ */ w(ku.Provider, { value: r, children: t });
17912
17912
  }, D$ = () => {
17913
17913
  const t = wt(ku);
@@ -17931,26 +17931,26 @@ const Fu = zs(void 0), bE = () => {
17931
17931
  rootUrl: n,
17932
17932
  descriptorResolver: o
17933
17933
  }) => {
17934
- const [i, a] = E(!1), [c, u] = E(), [d, h] = E(), f = n || bE(), p = Y(() => e ?? "app/system", [e]);
17934
+ const [i, a] = E(!1), [c, u] = E(), [d, h] = E(), f = n || bE(), p = W(() => e ?? "app/system", [e]);
17935
17935
  S(() => {
17936
17936
  async function v() {
17937
- const U = (Array.isArray(p) ? p : [p]).map((Q) => (o || wv(Q))()), L = (await Promise.allSettled(U)).map((Q) => {
17938
- if (Q.status === "rejected") {
17939
- g.warn("Failed to load localization descriptor", Q.reason);
17937
+ const U = (Array.isArray(p) ? p : [p]).map((V) => (o || wv(V))()), R = (await Promise.allSettled(U)).map((V) => {
17938
+ if (V.status === "rejected") {
17939
+ g.warn("Failed to load localization descriptor", V.reason);
17940
17940
  return;
17941
17941
  }
17942
- return Q.value;
17943
- }).filter((Q) => !!Q).reverse().reduce((Q, le) => {
17944
- const B = le.path;
17945
- return Object.keys(le.namespaces).forEach((ds) => {
17946
- const ie = le.namespaces[ds];
17947
- ie.basePath = B;
17942
+ return V.value;
17943
+ }).filter((V) => !!V).reverse().reduce((V, re) => {
17944
+ const B = re.path;
17945
+ return Object.keys(re.namespaces).forEach((ds) => {
17946
+ const ae = re.namespaces[ds];
17947
+ ae.basePath = B;
17948
17948
  }), {
17949
- ...Q,
17950
- namespaces: { ...Q.namespaces, ...le.namespaces }
17949
+ ...V,
17950
+ namespaces: { ...V.namespaces, ...re.namespaces }
17951
17951
  };
17952
17952
  }, {});
17953
- u(L);
17953
+ u(R);
17954
17954
  }
17955
17955
  v();
17956
17956
  }, [p, o]), S(() => {
@@ -17968,7 +17968,7 @@ const Fu = zs(void 0), bE = () => {
17968
17968
  }
17969
17969
  v();
17970
17970
  }, [s, c, r, f]);
17971
- const m = Y(() => i ? {
17971
+ const m = W(() => i ? {
17972
17972
  setLocale: (v) => {
17973
17973
  d && (d.currentLocale = v);
17974
17974
  }
@@ -17987,7 +17987,7 @@ const Fu = zs(void 0), bE = () => {
17987
17987
  return t;
17988
17988
  }, vE = () => {
17989
17989
  const t = Ns.type;
17990
- return oe({
17990
+ return ie({
17991
17991
  modelId: t,
17992
17992
  modelType: Ns.type,
17993
17993
  options: {}
@@ -18041,7 +18041,7 @@ const Gn = 10, TE = Sa(
18041
18041
  });
18042
18042
  u(h);
18043
18043
  }, [t]);
18044
- const d = re(
18044
+ const d = ne(
18045
18045
  (h) => {
18046
18046
  if (a.current && n) {
18047
18047
  const f = a.current.getContext("2d");
@@ -18086,7 +18086,7 @@ const Gn = 10, TE = Sa(
18086
18086
  align-items: center;
18087
18087
  `, OE = () => {
18088
18088
  const t = po.type;
18089
- return oe({
18089
+ return ie({
18090
18090
  modelId: t,
18091
18091
  modelType: po.type,
18092
18092
  options: {}
@@ -18121,7 +18121,7 @@ function F$(t) {
18121
18121
  }
18122
18122
  const IE = () => {
18123
18123
  const t = Jr.type;
18124
- return oe({
18124
+ return ie({
18125
18125
  modelId: t,
18126
18126
  modelType: Jr.type,
18127
18127
  options: {}
@@ -18135,7 +18135,7 @@ function N$(t) {
18135
18135
  }
18136
18136
  const CE = () => {
18137
18137
  const t = ao.type;
18138
- return oe({
18138
+ return ie({
18139
18139
  modelId: t,
18140
18140
  modelType: ao.type,
18141
18141
  options: {}
@@ -18185,7 +18185,7 @@ const B$ = (t) => {
18185
18185
  };
18186
18186
  }, [n, e]), [s, { ready: n, error: i }];
18187
18187
  }, xE = () => {
18188
- const [t, e] = E(!1), [s, r] = E([]), n = js.type, o = oe({
18188
+ const [t, e] = E(!1), [s, r] = E([]), n = js.type, o = ie({
18189
18189
  modelId: n,
18190
18190
  modelType: js.type,
18191
18191
  options: {}
@@ -18237,11 +18237,11 @@ const Yn = g.createLogger({ name: "use-timer" }), q$ = ({
18237
18237
  d.unsubscribe();
18238
18238
  };
18239
18239
  }, [s, t, o]);
18240
- const i = re(() => {
18240
+ const i = ne(() => {
18241
18241
  o ? o.start() : Yn.warn(`Timer with name ${t} does not exist.`);
18242
- }, [o, t]), a = re(() => {
18242
+ }, [o, t]), a = ne(() => {
18243
18243
  o ? o.reset() : Yn.warn(`Timer with name ${t} does not exist.`);
18244
- }, [o, t]), c = re(() => {
18244
+ }, [o, t]), c = ne(() => {
18245
18245
  o ? o.pause() : Yn.warn(`Timer with name ${t} does not exist.`);
18246
18246
  }, [o, t]);
18247
18247
  return {
@@ -18323,13 +18323,13 @@ const UE = async () => {
18323
18323
  ), i = s.join("__"), a = ba(
18324
18324
  i,
18325
18325
  () => jE(o, r, n)
18326
- ), c = Y(() => ({
18326
+ ), c = W(() => ({
18327
18327
  exists: (d) => {
18328
18328
  const h = e != null && e.keyPrefix ? `${e.keyPrefix}.${d}` : d;
18329
18329
  return a ? a.exists(h) : !1;
18330
18330
  }
18331
18331
  }), [e == null ? void 0 : e.keyPrefix, a]);
18332
- return { t: re(
18332
+ return { t: ne(
18333
18333
  (d, h) => {
18334
18334
  const f = e != null && e.keyPrefix ? `${e.keyPrefix}.${d}` : d;
18335
18335
  return a ? a.resolveKey(f, h) : (g.debug(
@@ -18340,7 +18340,7 @@ const UE = async () => {
18340
18340
  ), i18n: c };
18341
18341
  }, BE = () => {
18342
18342
  const t = nt.type;
18343
- return oe({
18343
+ return ie({
18344
18344
  modelId: t,
18345
18345
  modelType: nt.type,
18346
18346
  options: {}
@@ -18352,10 +18352,10 @@ function V$(t) {
18352
18352
  return /* @__PURE__ */ w(n, { ...r, children: /* @__PURE__ */ w(t, { ...e, translationContainer: s }) });
18353
18353
  };
18354
18354
  }
18355
- const G$ = (t) => oe({
18355
+ const G$ = (t) => ie({
18356
18356
  modelId: t,
18357
18357
  modelType: Hr.type
18358
- }), Nu = () => oe({
18358
+ }), Nu = () => ie({
18359
18359
  modelId: Ls.type,
18360
18360
  modelType: Ls.type,
18361
18361
  options: {}
@@ -18363,7 +18363,7 @@ const G$ = (t) => oe({
18363
18363
  troubleType: t,
18364
18364
  condition: e
18365
18365
  }) => {
18366
- const { model: s } = Nu(), [r, n] = E(!1), [o, i] = E([]), a = re(() => {
18366
+ const { model: s } = Nu(), [r, n] = E(!1), [o, i] = E([]), a = ne(() => {
18367
18367
  var c, u;
18368
18368
  return o.length > 0 && ((c = o[0]) != null && c.resolvable) ? (u = o[0]) == null ? void 0 : u.resolve() : Promise.resolve(void 0);
18369
18369
  }, [o]);
@@ -18384,7 +18384,7 @@ function W$(t) {
18384
18384
  };
18385
18385
  }
18386
18386
  const HE = () => {
18387
- const t = tn.type, e = oe({
18387
+ const t = tn.type, e = ie({
18388
18388
  modelId: t,
18389
18389
  modelType: tn.type,
18390
18390
  options: {},
@@ -18408,7 +18408,7 @@ function Q$(t) {
18408
18408
  };
18409
18409
  }
18410
18410
  const Z$ = ({ path: t, propKey: e }) => {
18411
- const { status: s } = oe({
18411
+ const { status: s } = ie({
18412
18412
  modelType: Ar.type,
18413
18413
  modelId: t,
18414
18414
  options: {
@@ -18452,7 +18452,7 @@ const Z$ = ({ path: t, propKey: e }) => {
18452
18452
  mappedOptions: [],
18453
18453
  updateProperty: t == null ? void 0 : t.updateProperty,
18454
18454
  displayOptions: t == null ? void 0 : t.displayOptions
18455
- }), c = re(
18455
+ }), c = ne(
18456
18456
  (u) => {
18457
18457
  var h;
18458
18458
  let d = "factory";
@@ -18607,14 +18607,14 @@ function XE({
18607
18607
  };
18608
18608
  }
18609
18609
  function ju(t = "long", e = [2018, 2028]) {
18610
- return Y(
18610
+ return W(
18611
18611
  () => WE(t, e),
18612
18612
  [t, e]
18613
18613
  );
18614
18614
  }
18615
18615
  function JE(t = "long", e = [2018, 2028], s = "en-US") {
18616
18616
  const r = ju(t, e);
18617
- return Y(
18617
+ return W(
18618
18618
  () => r.map((o) => ({
18619
18619
  label: o.toLocaleString(s).replace(",", ""),
18620
18620
  value: o
@@ -18623,17 +18623,17 @@ function JE(t = "long", e = [2018, 2028], s = "en-US") {
18623
18623
  );
18624
18624
  }
18625
18625
  function eM(t, e = "en-US") {
18626
- return Y(
18626
+ return W(
18627
18627
  () => Uu(t, e),
18628
18628
  [t, e]
18629
18629
  );
18630
18630
  }
18631
18631
  function tM(t, e = "en-US") {
18632
- const s = Y(() => GE(), []), r = Y(
18632
+ const s = W(() => GE(), []), r = W(
18633
18633
  () => Uu(t, e),
18634
18634
  [t, e]
18635
18635
  );
18636
- return Y(
18636
+ return W(
18637
18637
  () => [...Array(12).keys()].map((o) => ({
18638
18638
  label: r[o],
18639
18639
  value: Number(s[o])
@@ -18643,7 +18643,7 @@ function tM(t, e = "en-US") {
18643
18643
  }
18644
18644
  function Bu(t, e) {
18645
18645
  const s = ke(t);
18646
- return Y(
18646
+ return W(
18647
18647
  () => VE(s, e),
18648
18648
  [e, s]
18649
18649
  );
@@ -18654,7 +18654,7 @@ const sM = (t, e, s, r = []) => {
18654
18654
  };
18655
18655
  function rM(t, e, s = "en-US", r = []) {
18656
18656
  const n = Bu(t, e);
18657
- return Y(
18657
+ return W(
18658
18658
  () => n.map((i) => ({
18659
18659
  label: i.toLocaleString(s),
18660
18660
  value: i,
@@ -18664,7 +18664,7 @@ function rM(t, e, s = "en-US", r = []) {
18664
18664
  );
18665
18665
  }
18666
18666
  function nM(t = "en-US", e = "short") {
18667
- return Y(
18667
+ return W(
18668
18668
  () => ZE(t, e),
18669
18669
  [t, e]
18670
18670
  );
@@ -18679,7 +18679,7 @@ function oM({
18679
18679
  return { formattedDate: yt(o, r) };
18680
18680
  }
18681
18681
  function iM(t, e, s) {
18682
- return Y(
18682
+ return W(
18683
18683
  () => QE(t, e, s),
18684
18684
  [t, e, s]
18685
18685
  );
@@ -18717,11 +18717,11 @@ function tS({
18717
18717
  }, [r]);
18718
18718
  const {
18719
18719
  yearsArray: U,
18720
- yearsOptionsArray: x,
18720
+ yearsOptionsArray: C,
18721
18721
  monthsArray: $,
18722
- monthsOptionsArray: L,
18723
- daysArray: Q,
18724
- daysOptionsArray: le,
18722
+ monthsOptionsArray: R,
18723
+ daysArray: V,
18724
+ daysOptionsArray: re,
18725
18725
  calendarDayArray: B,
18726
18726
  dayNamesArray: ds
18727
18727
  } = XE({
@@ -18735,7 +18735,7 @@ function tS({
18735
18735
  dayFormat: i
18736
18736
  },
18737
18737
  daysOfWeekFilter: u
18738
- }), { formattedDate: ie } = oM({
18738
+ }), { formattedDate: ae } = oM({
18739
18739
  year: d,
18740
18740
  month: m,
18741
18741
  day: v,
@@ -18788,14 +18788,14 @@ function tS({
18788
18788
  month: m,
18789
18789
  day: v,
18790
18790
  yearsArray: U,
18791
- yearsOptionsArray: x,
18791
+ yearsOptionsArray: C,
18792
18792
  monthsArray: $,
18793
- monthsOptionsArray: L,
18794
- daysArray: Q,
18795
- daysOptionsArray: le,
18793
+ monthsOptionsArray: R,
18794
+ daysArray: V,
18795
+ daysOptionsArray: re,
18796
18796
  calendarDayNames: ds,
18797
18797
  calendarDayArray: B,
18798
- formattedDate: ie
18798
+ formattedDate: ae
18799
18799
  }
18800
18800
  };
18801
18801
  }
@@ -18805,7 +18805,7 @@ function cM({
18805
18805
  timeFormat: s,
18806
18806
  options: r = {}
18807
18807
  }) {
18808
- const [n, o] = E("Formatting Time..."), [i, a] = E("Formatting Date..."), c = !!r.ignoreDateFormat, { model: u, ready: d } = oe({
18808
+ const [n, o] = E("Formatting Time..."), [i, a] = E("Formatting Date..."), c = !!r.ignoreDateFormat, { model: u, ready: d } = ie({
18809
18809
  modelId: pe.type,
18810
18810
  modelType: pe.type,
18811
18811
  options: {}
@@ -18891,7 +18891,7 @@ function rS(t, e = {}) {
18891
18891
  }, [t, s, r]);
18892
18892
  }
18893
18893
  const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, children: t.format }, t.id), nS = (t = uM) => {
18894
- const [e, s] = E([]), [r, n] = E(), { model: o, ready: i } = oe({
18894
+ const [e, s] = E([]), [r, n] = E(), { model: o, ready: i } = ie({
18895
18895
  modelType: pe.type,
18896
18896
  modelId: pe.type,
18897
18897
  options: {}
@@ -18914,7 +18914,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18914
18914
  c();
18915
18915
  };
18916
18916
  }, [o == null ? void 0 : o.selectedDateFormat, o == null ? void 0 : o.dateFormatId]);
18917
- const a = re(
18917
+ const a = ne(
18918
18918
  (c) => {
18919
18919
  var d;
18920
18920
  let u = "";
@@ -18935,7 +18935,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18935
18935
  }
18936
18936
  };
18937
18937
  }, dM = (t) => /* @__PURE__ */ w("option", { title: t, value: t, children: t }, t), Hu = "kos:service:region:settings", qu = "timeZone", hM = `${Hu}-${qu}`, oS = (t = dM) => {
18938
- const [e, s] = E([]), [r, n] = E(""), { model: o, ready: i } = oe({
18938
+ const [e, s] = E([]), [r, n] = E(""), { model: o, ready: i } = ie({
18939
18939
  modelType: pe.type,
18940
18940
  modelId: pe.type,
18941
18941
  options: {}
@@ -18960,7 +18960,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18960
18960
  u();
18961
18961
  };
18962
18962
  }, [a.value]);
18963
- const c = re((u) => {
18963
+ const c = ne((u) => {
18964
18964
  var h;
18965
18965
  let d = "factory";
18966
18966
  typeof u == "string" ? d = u : (h = u == null ? void 0 : u.target) != null && h.value && (d = u.target.value), d && ya(d);
@@ -18979,7 +18979,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18979
18979
  }
18980
18980
  };
18981
18981
  }, zu = "kos:service:region", Ku = "regionId", fM = `${zu}-${Ku}`, pM = (t) => /* @__PURE__ */ w("option", { title: t, value: t, children: t }, t), gM = (t = pM) => {
18982
- const [e, s] = E([]), [r, n] = E("factory"), { model: o, ready: i } = oe({
18982
+ const [e, s] = E([]), [r, n] = E("factory"), { model: o, ready: i } = ie({
18983
18983
  modelType: pe.type,
18984
18984
  modelId: pe.type
18985
18985
  }), a = os.factory(
@@ -19003,7 +19003,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
19003
19003
  u();
19004
19004
  };
19005
19005
  }, [a.value]);
19006
- const c = re((u) => {
19006
+ const c = ne((u) => {
19007
19007
  var h;
19008
19008
  let d = "factory";
19009
19009
  typeof u == "string" ? d = u : (h = u == null ? void 0 : u.target) != null && h.value && (d = u.target.value), d && Dw(d);
@@ -19021,7 +19021,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
19021
19021
  }
19022
19022
  };
19023
19023
  }, mM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, children: t.format }, t.id), iS = (t = mM) => {
19024
- const [e, s] = E([]), [r, n] = E(), { model: o, ready: i } = oe({
19024
+ const [e, s] = E([]), [r, n] = E(), { model: o, ready: i } = ie({
19025
19025
  modelType: pe.type,
19026
19026
  modelId: pe.type,
19027
19027
  options: {}
@@ -19044,7 +19044,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
19044
19044
  c();
19045
19045
  };
19046
19046
  }, [o == null ? void 0 : o.selectedTimeFormat, o == null ? void 0 : o.timeFormatId]);
19047
- const a = re(
19047
+ const a = ne(
19048
19048
  (c) => {
19049
19049
  var d;
19050
19050
  let u = "";
@@ -19064,7 +19064,7 @@ const uM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
19064
19064
  options: e
19065
19065
  }
19066
19066
  };
19067
- }, aS = (t, e) => Y(() => Dc(t), e), yM = {
19067
+ }, aS = (t, e) => W(() => Dc(t), e), yM = {
19068
19068
  config: { attributes: !0, childList: !0, subtree: !0 }
19069
19069
  };
19070
19070
  function cS(t, e, s = yM) {
@@ -19146,7 +19146,7 @@ const vM = () => {
19146
19146
  }, [s, t]), [t];
19147
19147
  };
19148
19148
  function wM(t = !1, e = "2-digit") {
19149
- return Y(() => {
19149
+ return W(() => {
19150
19150
  const s = t ? 12 : 24;
19151
19151
  return Array.from({ length: s }, (r, n) => {
19152
19152
  const o = t && n === 0 ? 12 : n % s;
@@ -19158,7 +19158,7 @@ function wM(t = !1, e = "2-digit") {
19158
19158
  }, [e, t]);
19159
19159
  }
19160
19160
  function va(t, e = "2-digit", s = 0, r = 0) {
19161
- return Y(
19161
+ return W(
19162
19162
  () => Array.from({ length: t }, (n, o) => {
19163
19163
  const i = String(o + s);
19164
19164
  return {
@@ -19170,7 +19170,7 @@ function va(t, e = "2-digit", s = 0, r = 0) {
19170
19170
  );
19171
19171
  }
19172
19172
  function EM(t = "en-US") {
19173
- return Y(
19173
+ return W(
19174
19174
  () => ["AM", "PM"].map((e) => {
19175
19175
  const s = new Intl.DateTimeFormat(t, {
19176
19176
  hour: "2-digit",
@@ -19207,22 +19207,22 @@ function TM({
19207
19207
  locale: s = "en-US",
19208
19208
  format: r = "HH:mm"
19209
19209
  }) {
19210
- const [n, o] = E(e), i = re((y) => {
19210
+ const [n, o] = E(e), i = ne((y) => {
19211
19211
  o((v) => {
19212
19212
  const _ = new Date(v);
19213
19213
  return _.setHours(Number(y)), _;
19214
19214
  });
19215
- }, []), a = re((y) => {
19215
+ }, []), a = ne((y) => {
19216
19216
  o((v) => {
19217
19217
  const _ = new Date(v);
19218
19218
  return _.setMinutes(Number(y)), _;
19219
19219
  });
19220
- }, []), c = re((y) => {
19220
+ }, []), c = ne((y) => {
19221
19221
  o((v) => {
19222
19222
  const _ = new Date(v);
19223
19223
  return _.setSeconds(Number(y)), _;
19224
19224
  });
19225
- }, []), u = re((y) => {
19225
+ }, []), u = ne((y) => {
19226
19226
  const v = new Date(y);
19227
19227
  o(v);
19228
19228
  }, []), d = _M(n, r), { hourOptions: h, minuteOptions: f, secondOptions: p, amPmOptions: m } = MM({
@@ -19243,7 +19243,7 @@ function TM({
19243
19243
  };
19244
19244
  }
19245
19245
  const uS = (t) => {
19246
- const { regionModel: e } = gM(), s = Y(() => ({ hour12: e == null ? void 0 : e.is12HourTimeFormat }), [e == null ? void 0 : e.is12HourTimeFormat]);
19246
+ const { regionModel: e } = gM(), s = W(() => ({ hour12: e == null ? void 0 : e.is12HourTimeFormat }), [e == null ? void 0 : e.is12HourTimeFormat]);
19247
19247
  return TM({
19248
19248
  ...t,
19249
19249
  locale: e == null ? void 0 : e.regionId,
@@ -19252,7 +19252,7 @@ const uS = (t) => {
19252
19252
  });
19253
19253
  };
19254
19254
  function dS(t, e, s = {}) {
19255
- const { disposeOnUnmount: r = !0 } = s, [n, o] = E(!1), [i, a] = E(void 0), c = bt(null), u = bt(!0), d = bt(!1), h = Y(() => {
19255
+ const { disposeOnUnmount: r = !0 } = s, [n, o] = E(!1), [i, a] = E(void 0), c = bt(null), u = bt(!0), d = bt(!1), h = W(() => {
19256
19256
  if (!u.current && c.current && r && Fn(c.current)) {
19257
19257
  const p = c.current;
19258
19258
  Promise.resolve().then(() => {
@@ -19387,7 +19387,7 @@ let vo = class {
19387
19387
  }
19388
19388
  };
19389
19389
  vo = OM([
19390
- D(Gu)
19390
+ x(Gu)
19391
19391
  ], vo);
19392
19392
  const pS = new Pe({
19393
19393
  class: vo,
@@ -19423,7 +19423,7 @@ let sn = class {
19423
19423
  };
19424
19424
  AM(sn, "Registration");
19425
19425
  sn = PM([
19426
- D({ modelTypeId: RM, singleton: !1 }),
19426
+ x({ modelTypeId: RM, singleton: !1 }),
19427
19427
  Gs()
19428
19428
  ], sn);
19429
19429
  const Yu = sn.Registration;
@@ -19466,7 +19466,7 @@ let rn = class {
19466
19466
  };
19467
19467
  UM(rn, "Registration");
19468
19468
  rn = NM([
19469
- D({ modelTypeId: jM, singleton: !1 }),
19469
+ x({ modelTypeId: jM, singleton: !1 }),
19470
19470
  Ao({
19471
19471
  containerOptions: {
19472
19472
  sortKey: "pinNum"
@@ -19514,7 +19514,7 @@ Zu([
19514
19514
  Ue
19515
19515
  ], Bs.prototype, "_pins", 2);
19516
19516
  Bs = Zu([
19517
- D({ modelTypeId: zM, singleton: !1 }),
19517
+ x({ modelTypeId: zM, singleton: !1 }),
19518
19518
  Gs()
19519
19519
  ], Bs);
19520
19520
  const wo = Bs.Registration;
@@ -19638,7 +19638,7 @@ sd([
19638
19638
  })
19639
19639
  ], Hs.prototype, "handleGpioChipInit", 1);
19640
19640
  Hs = sd([
19641
- D({ modelTypeId: WM, singleton: !0 }),
19641
+ x({ modelTypeId: WM, singleton: !0 }),
19642
19642
  Ao({
19643
19643
  containerOptions: {
19644
19644
  sortKey: "num"
@@ -19693,7 +19693,7 @@ export {
19693
19693
  Bm as FUTURE_MODEL_TYPE,
19694
19694
  Pc as FUTURE_NOT_ASSIGNED,
19695
19695
  Ig as FeatureFlagService,
19696
- G as FetchError,
19696
+ Y as FetchError,
19697
19697
  vr as FutureAliases,
19698
19698
  _t as FutureContainerFactory,
19699
19699
  Qm as FutureContainerModel,
@@ -19725,10 +19725,10 @@ export {
19725
19725
  rt as HttpRouteHandlers,
19726
19726
  Ro as KOS_EXECUTION_CONTEXT,
19727
19727
  Qn as KOS_MODEL_ID,
19728
- o$ as KOS_SERVICE,
19729
- i$ as KOS_SERVICE_1_6_5,
19730
- a$ as KOS_SERVICE_1_8_1,
19731
- c$ as KOS_SERVICE_1_9_X,
19728
+ c$ as KOS_SERVICE,
19729
+ o$ as KOS_SERVICE_1_6_5,
19730
+ i$ as KOS_SERVICE_1_8_1,
19731
+ a$ as KOS_SERVICE_1_9_X,
19732
19732
  el as KeyValue,
19733
19733
  UT as KeyValueServices,
19734
19734
  Ee as Kos,
@@ -19737,7 +19737,7 @@ export {
19737
19737
  zg as KosContextBean,
19738
19738
  ee as KosContextManager,
19739
19739
  T as KosCore,
19740
- ce as KosCoreModelPropertyMapper,
19740
+ le as KosCoreModelPropertyMapper,
19741
19741
  Ic as KosDataContainer,
19742
19742
  T_ as KosDependencyTypes,
19743
19743
  nb as KosExpressionEvaluator,
@@ -19755,7 +19755,7 @@ export {
19755
19755
  M$ as KosModelCollectionProvider,
19756
19756
  Je as KosModelContainer,
19757
19757
  hi as KosModelContext,
19758
- k as KosModelEvents,
19758
+ L as KosModelEvents,
19759
19759
  Er as KosModelFactory,
19760
19760
  aE as KosModelLoader,
19761
19761
  cE as KosModelLoaderDisplay,
@@ -19845,7 +19845,7 @@ export {
19845
19845
  JT as StorageDeviceServices,
19846
19846
  pS as StudioProperties,
19847
19847
  fS as StudioPropertiesServices,
19848
- ne as SubscriptionHandlers,
19848
+ oe as SubscriptionHandlers,
19849
19849
  Su as TIMER_END,
19850
19850
  Tu as TIMER_EVENT,
19851
19851
  $u as TOPIC_TIMER_TICK_EVENT,
@@ -19869,10 +19869,10 @@ export {
19869
19869
  bu as UsbUpdate,
19870
19870
  tn as UsbUpdateContainer,
19871
19871
  e$ as UsbUpdateServices,
19872
- l$ as VFS_SERVICE,
19873
- u$ as VFS_SERVICE_1_6_5,
19874
- d$ as VFS_SERVICE_1_8_1,
19875
- h$ as VFS_SERVICE_1_9_X,
19872
+ h$ as VFS_SERVICE,
19873
+ l$ as VFS_SERVICE_1_6_5,
19874
+ u$ as VFS_SERVICE_1_8_1,
19875
+ d$ as VFS_SERVICE_1_9_X,
19876
19876
  oc as ViewModelConfig,
19877
19877
  Cv as WS_EVENT_TYPE,
19878
19878
  Fe as WebSocketEvents,
@@ -19996,7 +19996,7 @@ export {
19996
19996
  G_ as isPrintable,
19997
19997
  WT as isTroubleAware,
19998
19998
  pr as isValidDate,
19999
- ae as kosAction,
19999
+ ce as kosAction,
20000
20000
  te as kosAutoEffect,
20001
20001
  Ue as kosChild,
20002
20002
  E_ as kosCompanion,
@@ -20013,7 +20013,7 @@ export {
20013
20013
  dh as kosFutureAware,
20014
20014
  O_ as kosLogger,
20015
20015
  Gs as kosLoggerAware,
20016
- D as kosModel,
20016
+ x as kosModel,
20017
20017
  gh as kosModelEffect,
20018
20018
  __ as kosMultipleFutureAware,
20019
20019
  xc as kosObservable,
@@ -20117,7 +20117,7 @@ export {
20117
20117
  wM as useHourValues,
20118
20118
  dE as useKosCore,
20119
20119
  nS as useKosDateFormats,
20120
- oe as useKosModel,
20120
+ ie as useKosModel,
20121
20121
  gM as useKosRegions,
20122
20122
  Pu as useKosTime,
20123
20123
  O$ as useKosTimeContext,