@kosdev-code/kos-ui-sdk 2.0.39 → 2.0.40
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.cjs +20 -20
- package/index.cjs.map +1 -1
- package/index.js +1016 -865
- package/index.js.map +1 -1
- package/models/models/canvas-dispatcher/types/index.d.ts +47 -1
- package/models/models/canvas-dispatcher/utils/renderers/overlay-renderer.d.ts +76 -0
- package/models/models/canvas-dispatcher/utils/renderers/overlay-renderer.d.ts.map +1 -0
- package/models/models/canvas-dispatcher/utils/renderers/renderer-factory.d.ts.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -3,19 +3,19 @@ var zc = (t, e, s) => e in t ? Kc(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var l = (t, e, s) => (zc(t, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
4
|
import S from "loglevel";
|
|
5
5
|
import { runInAction as V, observable as ee, makeAutoObservable as _e, action as kn, when as Yt, ObservableMap as co, reaction as qt, autorun as Wt, makeObservable as Fn, computed as Nn, createAtom as Gc, observe as Un, isComputedProp as Vc, isObservable as Yc } from "mobx";
|
|
6
|
-
import { makeAutoObservable as
|
|
6
|
+
import { makeAutoObservable as Zv, makeObservable as Qv } from "mobx";
|
|
7
7
|
import { createMachine as At, state as z, transition as D, invoke as ve, action as N, interpret as Lt, immediate as nt } from "robot3";
|
|
8
8
|
import { format as He, parseISO as qc } from "date-fns";
|
|
9
9
|
import { jsx as v, jsxs as kt, Fragment as Wc } from "@emotion/react/jsx-runtime";
|
|
10
10
|
import lo from "@emotion/styled";
|
|
11
11
|
import { createPortal as jn } from "react-dom";
|
|
12
12
|
import { keyframes as Zc, css as st } from "@emotion/react";
|
|
13
|
-
import Ye, { createContext as Zt, useContext as Ke, useState as E, useCallback as Z, useMemo as K, Suspense as Qc, useEffect as O, useRef as
|
|
13
|
+
import Ye, { createContext as Zt, useContext as Ke, useState as E, useCallback as Z, useMemo as K, Suspense as Qc, useEffect as O, useRef as nr, useReducer as Jc } from "react";
|
|
14
14
|
import { observer as Bn } from "mobx-react-lite";
|
|
15
|
-
import { observer as
|
|
15
|
+
import { observer as Xv } from "mobx-react-lite";
|
|
16
16
|
import { useGesture as Xc } from "@use-gesture/react";
|
|
17
|
-
const uo = "method", el = "topic", Qt = "url",
|
|
18
|
-
var
|
|
17
|
+
const uo = "method", el = "topic", Qt = "url", ir = "request-id", ho = "response-id", Hn = "status", Ne = "dst-addr", tl = "src-addr", Ce = "type", Kn = "ordered", zn = "tracker", sl = "Content-Type", rl = "Cache-Control", ol = "requestId", nl = process.env.KOS_LOGIN_URL || "http://localhost", il = process.env.KOS_APP_PORT || "8080", ob = `${nl}:${il}`, Hr = "{MODEL_ID}";
|
|
18
|
+
var ar = /* @__PURE__ */ ((t) => (t.SEND = "/ws/log/msg/send", t.RECEIVED = "/ws/log/msg/receive", t))(ar || {}), al = /* @__PURE__ */ ((t) => (t.MSG_RECEIVE = "/mock/msg/receive", t))(al || {});
|
|
19
19
|
const Gn = "/kos/model/ready/";
|
|
20
20
|
S.info("Initializing event bus");
|
|
21
21
|
globalThis.kos = globalThis.kos || {};
|
|
@@ -79,7 +79,7 @@ function go(t, e) {
|
|
|
79
79
|
}, e));
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const nb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83
83
|
__proto__: null,
|
|
84
84
|
hasEventSubscriptions: fo,
|
|
85
85
|
once: Vn,
|
|
@@ -88,16 +88,16 @@ const rb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
88
88
|
subscribe: $,
|
|
89
89
|
waitFor: go
|
|
90
90
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91
|
-
function
|
|
91
|
+
function cr(t, e) {
|
|
92
92
|
const s = $(t, (r) => {
|
|
93
93
|
s.unsubscribe(), e(r);
|
|
94
94
|
});
|
|
95
95
|
return s.unsubscribe;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function lr(t, e) {
|
|
98
98
|
return new Promise((s, r) => {
|
|
99
99
|
let o = null;
|
|
100
|
-
const n =
|
|
100
|
+
const n = cr(t, (i) => {
|
|
101
101
|
o && clearTimeout(o), s(i);
|
|
102
102
|
});
|
|
103
103
|
e && (o = setTimeout(() => {
|
|
@@ -107,7 +107,7 @@ function cr(t, e) {
|
|
|
107
107
|
}
|
|
108
108
|
function Yn(t, e) {
|
|
109
109
|
const s = t.map(
|
|
110
|
-
(r) =>
|
|
110
|
+
(r) => lr(r, e)
|
|
111
111
|
);
|
|
112
112
|
return Promise.all(s);
|
|
113
113
|
}
|
|
@@ -119,7 +119,7 @@ function qn(t, e) {
|
|
|
119
119
|
o.forEach((c) => c()), n && clearTimeout(n);
|
|
120
120
|
};
|
|
121
121
|
t.forEach((c) => {
|
|
122
|
-
const d =
|
|
122
|
+
const d = cr(c, (u) => {
|
|
123
123
|
i || (i = !0, a(), s({ eventType: c, data: u }));
|
|
124
124
|
});
|
|
125
125
|
o.push(d);
|
|
@@ -220,7 +220,7 @@ function ti(t, e) {
|
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
function si(t, e, s, r) {
|
|
223
|
-
const o =
|
|
223
|
+
const o = lr(e, r);
|
|
224
224
|
return B(t, s), o;
|
|
225
225
|
}
|
|
226
226
|
async function* ri(t) {
|
|
@@ -237,8 +237,8 @@ async function* ri(t) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
const dl = {
|
|
240
|
-
once:
|
|
241
|
-
waitFor:
|
|
240
|
+
once: cr,
|
|
241
|
+
waitFor: lr,
|
|
242
242
|
waitForAll: Yn,
|
|
243
243
|
race: qn,
|
|
244
244
|
filter: Wn,
|
|
@@ -251,7 +251,7 @@ const dl = {
|
|
|
251
251
|
stateMachine: ti,
|
|
252
252
|
request: si,
|
|
253
253
|
eventIterator: ri
|
|
254
|
-
},
|
|
254
|
+
}, ib = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
255
255
|
__proto__: null,
|
|
256
256
|
EventBusFunctional: dl,
|
|
257
257
|
buffer: Xn,
|
|
@@ -260,16 +260,16 @@ const dl = {
|
|
|
260
260
|
filter: Wn,
|
|
261
261
|
map: Zn,
|
|
262
262
|
merge: ei,
|
|
263
|
-
once:
|
|
263
|
+
once: cr,
|
|
264
264
|
race: qn,
|
|
265
265
|
replay: po,
|
|
266
266
|
request: si,
|
|
267
267
|
stateMachine: ti,
|
|
268
268
|
throttle: Jn,
|
|
269
|
-
waitFor:
|
|
269
|
+
waitFor: lr,
|
|
270
270
|
waitForAll: Yn
|
|
271
271
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
272
|
-
async function
|
|
272
|
+
async function dr(t, e) {
|
|
273
273
|
const { getCurrentState: s, transformState: r, shouldUseFetchedState: o, timeout: n } = e, i = go(t, n), a = await s(), c = r ? r(a) : a;
|
|
274
274
|
return o && o(c) ? (i.catch(() => {
|
|
275
275
|
}), c) : await Promise.race([
|
|
@@ -336,7 +336,7 @@ function ni(t, e) {
|
|
|
336
336
|
}
|
|
337
337
|
async function mo(t, e) {
|
|
338
338
|
if (typeof t == "string")
|
|
339
|
-
return
|
|
339
|
+
return dr(t, e);
|
|
340
340
|
const s = t, { getCurrentState: r, shouldUseFetchedState: o, timeout: n } = e, i = await r(), a = e.transformState ? e.transformState(i) : i;
|
|
341
341
|
if (o && o(a))
|
|
342
342
|
return a;
|
|
@@ -391,7 +391,7 @@ function ai(t) {
|
|
|
391
391
|
async waitForConnection(u) {
|
|
392
392
|
if (a.state === "connected" && a.data)
|
|
393
393
|
return a.data;
|
|
394
|
-
const h = await
|
|
394
|
+
const h = await dr(e, {
|
|
395
395
|
getCurrentState: n,
|
|
396
396
|
shouldUseFetchedState: (f) => !!f,
|
|
397
397
|
timeout: u
|
|
@@ -430,13 +430,13 @@ function ai(t) {
|
|
|
430
430
|
}), a.reconnect(), a;
|
|
431
431
|
}
|
|
432
432
|
const ul = {
|
|
433
|
-
waitForOrGetState:
|
|
433
|
+
waitForOrGetState: dr,
|
|
434
434
|
subscribeWithInitialState: oi,
|
|
435
435
|
createStatefulEventStream: ni,
|
|
436
436
|
waitForAllWithState: mo,
|
|
437
437
|
createResilientEventHandler: ii,
|
|
438
438
|
createConnectionStateManager: ai
|
|
439
|
-
},
|
|
439
|
+
}, ab = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
440
440
|
__proto__: null,
|
|
441
441
|
EventBusState: ul,
|
|
442
442
|
createConnectionStateManager: ai,
|
|
@@ -444,8 +444,8 @@ const ul = {
|
|
|
444
444
|
createStatefulEventStream: ni,
|
|
445
445
|
subscribeWithInitialState: oi,
|
|
446
446
|
waitForAllWithState: mo,
|
|
447
|
-
waitForOrGetState:
|
|
448
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
447
|
+
waitForOrGetState: dr
|
|
448
|
+
}, Symbol.toStringTag, { value: "Module" })), cb = (t, e = 0) => {
|
|
449
449
|
if (!+t)
|
|
450
450
|
return {
|
|
451
451
|
value: 0,
|
|
@@ -486,7 +486,7 @@ function Jt() {
|
|
|
486
486
|
return (t == "x" ? e : e & 3 | 8).toString(16);
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function lb(t, e) {
|
|
490
490
|
e.forEach((s) => {
|
|
491
491
|
Object.getOwnPropertyNames(s.prototype).forEach((r) => {
|
|
492
492
|
const o = Object.getOwnPropertyDescriptor(
|
|
@@ -501,14 +501,14 @@ function ab(t, e) {
|
|
|
501
501
|
});
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function db(t, e) {
|
|
505
505
|
const s = t ?? [], r = e ?? [];
|
|
506
506
|
return s.length !== r.length ? !1 : s.every((o, n) => o === r[n]);
|
|
507
507
|
}
|
|
508
508
|
const yo = (t, e) => {
|
|
509
509
|
const s = t.map((n) => n.id);
|
|
510
510
|
return e.map((n) => n.id).filter((n) => !s.includes(n));
|
|
511
|
-
},
|
|
511
|
+
}, ub = ({
|
|
512
512
|
container: t,
|
|
513
513
|
onAddItem: e,
|
|
514
514
|
onRemoveItem: s,
|
|
@@ -518,7 +518,7 @@ const yo = (t, e) => {
|
|
|
518
518
|
t.removeAll(a);
|
|
519
519
|
const c = n.map(e).filter(Boolean);
|
|
520
520
|
t.addAll(c);
|
|
521
|
-
},
|
|
521
|
+
}, hb = ({
|
|
522
522
|
container: t,
|
|
523
523
|
onAddItem: e,
|
|
524
524
|
onRemoveItem: s,
|
|
@@ -526,7 +526,7 @@ const yo = (t, e) => {
|
|
|
526
526
|
}) => (o) => {
|
|
527
527
|
const n = o.map(r);
|
|
528
528
|
yo(n, t.models).forEach(s), n.forEach(e);
|
|
529
|
-
},
|
|
529
|
+
}, fb = ({
|
|
530
530
|
items: t,
|
|
531
531
|
onAddItem: e,
|
|
532
532
|
onRemoveItem: s,
|
|
@@ -534,7 +534,7 @@ const yo = (t, e) => {
|
|
|
534
534
|
}) => (o) => {
|
|
535
535
|
const n = o.map(r);
|
|
536
536
|
yo(n, t).forEach(s), n.forEach(e);
|
|
537
|
-
},
|
|
537
|
+
}, gb = (t, e = "parent-") => {
|
|
538
538
|
let s = t;
|
|
539
539
|
return s.startsWith(e) && (s = s.replace(e, "")), s;
|
|
540
540
|
}, Ko = new Intl.RelativeTimeFormat(void 0, {
|
|
@@ -621,7 +621,7 @@ const li = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, di = (t, e) =>
|
|
|
621
621
|
...r && hi[r]
|
|
622
622
|
};
|
|
623
623
|
return new Intl.DateTimeFormat(s, o).format(t);
|
|
624
|
-
},
|
|
624
|
+
}, pb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
625
625
|
__proto__: null,
|
|
626
626
|
addDaysToDate: gl,
|
|
627
627
|
addMonthsToDate: fl,
|
|
@@ -640,15 +640,15 @@ function bl(t, e, s = 300) {
|
|
|
640
640
|
}, s);
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
|
-
const
|
|
643
|
+
const te = "canvas-renderer", Tr = /* @__PURE__ */ new Map(), Go = /* @__PURE__ */ new Map(), Ir = /* @__PURE__ */ new Map(), $r = /* @__PURE__ */ new Map(), ur = (t, e) => {
|
|
644
644
|
fi[t] = e;
|
|
645
645
|
}, fi = {
|
|
646
646
|
indexExtension: {
|
|
647
647
|
registerIndexExtension: (t, e) => {
|
|
648
|
-
const s =
|
|
649
|
-
Object.assign(s, e),
|
|
648
|
+
const s = $r.get(t) || {};
|
|
649
|
+
Object.assign(s, e), $r.set(t, e);
|
|
650
650
|
},
|
|
651
|
-
loadIndexExtensions: (t) =>
|
|
651
|
+
loadIndexExtensions: (t) => $r.get(t) || {}
|
|
652
652
|
},
|
|
653
653
|
loader: {
|
|
654
654
|
registerLoader: (t, e) => {
|
|
@@ -662,21 +662,21 @@ const oe = "canvas-renderer", Er = /* @__PURE__ */ new Map(), Go = /* @__PURE__
|
|
|
662
662
|
},
|
|
663
663
|
propertyMapper: {
|
|
664
664
|
registerPropertyMapper: (t, e) => {
|
|
665
|
-
|
|
665
|
+
Ir.set(t, e);
|
|
666
666
|
},
|
|
667
|
-
hasMapper: (t) =>
|
|
667
|
+
hasMapper: (t) => Ir.has(t),
|
|
668
668
|
executeMapper: (t, e, s) => {
|
|
669
|
-
const r =
|
|
669
|
+
const r = Ir.get(t);
|
|
670
670
|
return r ? r(e, s) : "";
|
|
671
671
|
}
|
|
672
672
|
},
|
|
673
673
|
dataMapper: {
|
|
674
674
|
registerDataMapper: (t, e) => {
|
|
675
|
-
const s =
|
|
676
|
-
s.push(e),
|
|
675
|
+
const s = Tr.get(t) || [];
|
|
676
|
+
s.push(e), Tr.set(t, s);
|
|
677
677
|
},
|
|
678
678
|
executeMapper: async (t, e, s) => {
|
|
679
|
-
const r =
|
|
679
|
+
const r = Tr.get(t);
|
|
680
680
|
if (!r)
|
|
681
681
|
return {};
|
|
682
682
|
const o = {};
|
|
@@ -689,13 +689,13 @@ const oe = "canvas-renderer", Er = /* @__PURE__ */ new Map(), Go = /* @__PURE__
|
|
|
689
689
|
},
|
|
690
690
|
canvas: {
|
|
691
691
|
registerRenderer: (t, e) => {
|
|
692
|
-
if (!I[
|
|
692
|
+
if (!I[te]) {
|
|
693
693
|
console.warn(
|
|
694
694
|
`Canvas renderer extension point is not registered. Cannot register renderer "${t}".`
|
|
695
695
|
);
|
|
696
696
|
return;
|
|
697
697
|
}
|
|
698
|
-
I[
|
|
698
|
+
I[te].register(t, e);
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
}, I = fi, wl = async ({
|
|
@@ -723,13 +723,13 @@ const oe = "canvas-renderer", Er = /* @__PURE__ */ new Map(), Go = /* @__PURE__
|
|
|
723
723
|
t,
|
|
724
724
|
s,
|
|
725
725
|
e
|
|
726
|
-
),
|
|
726
|
+
), mb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
727
727
|
__proto__: null,
|
|
728
728
|
executeDataMapperExtension: vl,
|
|
729
729
|
executeLoaderExtension: wl,
|
|
730
730
|
executePropertyMapperExtension: Ml
|
|
731
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
732
|
-
class
|
|
731
|
+
}, Symbol.toStringTag, { value: "Module" })), yb = "Extensions";
|
|
732
|
+
class bb {
|
|
733
733
|
constructor() {
|
|
734
734
|
l(this, "extensions");
|
|
735
735
|
this.extensions = {};
|
|
@@ -749,13 +749,13 @@ class mb {
|
|
|
749
749
|
const ye = (t = null) => (t || window.location.search.replace("?", "")).split("&").map((e) => {
|
|
750
750
|
const [s, r] = e.split("=");
|
|
751
751
|
return [s, decodeURIComponent(r || "")];
|
|
752
|
-
}).reduce((e, [s, r]) => (e[s] = r, e), {}), _l = "studio.tools.preview",
|
|
752
|
+
}).reduce((e, [s, r]) => (e[s] = r, e), {}), _l = "studio.tools.preview", wb = "studio.relax.store.validation", El = "studio.log.debug", Tl = "studio.log.info", Il = {
|
|
753
753
|
profiles: [_l]
|
|
754
754
|
};
|
|
755
755
|
var Ln;
|
|
756
756
|
const $l = ((Ln = globalThis.getKosConfig) == null ? void 0 : Ln.call(globalThis)) || JSON.stringify(Il), gi = JSON.parse($l);
|
|
757
757
|
globalThis.kosConfig = gi;
|
|
758
|
-
const pi = gi, Ol = () => pi.profiles || [], Vo = (t) => Ol().includes(t),
|
|
758
|
+
const pi = gi, Ol = () => pi.profiles || [], Vo = (t) => Ol().includes(t), vb = () => pi.logging || !1, Sl = () => {
|
|
759
759
|
const t = Vo(El), e = Vo(Tl);
|
|
760
760
|
return t ? "DEBUG" : e ? "INFO" : void 0;
|
|
761
761
|
}, Dl = () => {
|
|
@@ -830,7 +830,7 @@ const Al = [
|
|
|
830
830
|
Ls.info(`%c⬇ ${e}`, Ll);
|
|
831
831
|
}
|
|
832
832
|
}, kl = "featureFlagResolver", is = /* @__PURE__ */ new Map();
|
|
833
|
-
|
|
833
|
+
ur(kl, {
|
|
834
834
|
register: (t, e) => {
|
|
835
835
|
var s;
|
|
836
836
|
is.has(t) || is.set(t, []), (s = is.get(t)) == null || s.push(e);
|
|
@@ -846,7 +846,7 @@ dr(kl, {
|
|
|
846
846
|
return Nl.updateFlags(i), Object.keys(i);
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
|
-
const
|
|
849
|
+
const Mb = "kos.loader.featureFlag";
|
|
850
850
|
class Fl {
|
|
851
851
|
constructor(e = {}) {
|
|
852
852
|
l(this, "flags", {});
|
|
@@ -886,7 +886,7 @@ const Nl = window.KosFeatureFlags, Ul = (t, e, s) => {
|
|
|
886
886
|
if (!s)
|
|
887
887
|
throw Error("Invalid HSL string");
|
|
888
888
|
return Ul(parseInt(s[1]), parseInt(s[2]), parseInt(s[3]));
|
|
889
|
-
}, Bl = (t, e) => getComputedStyle(t).getPropertyValue(e),
|
|
889
|
+
}, Bl = (t, e) => getComputedStyle(t).getPropertyValue(e), _b = (t, e) => jl(Bl(t, e)), Hl = (t, e) => {
|
|
890
890
|
const s = { ...t };
|
|
891
891
|
return s.id && delete s.id, s;
|
|
892
892
|
}, Yo = (t, e, s = Hl) => {
|
|
@@ -894,13 +894,13 @@ const Nl = window.KosFeatureFlags, Ul = (t, e, s) => {
|
|
|
894
894
|
V(() => {
|
|
895
895
|
Object.assign(e, r);
|
|
896
896
|
});
|
|
897
|
-
},
|
|
897
|
+
}, Or = /* @__PURE__ */ new Map(), wi = {
|
|
898
898
|
addToDeletionQueue: (t, e) => {
|
|
899
|
-
const s =
|
|
900
|
-
s.push(e),
|
|
899
|
+
const s = Or.get(t) || [];
|
|
900
|
+
s.push(e), Or.set(t, s);
|
|
901
901
|
},
|
|
902
902
|
cancelDeletion: (t) => {
|
|
903
|
-
const e =
|
|
903
|
+
const e = Or.get(t);
|
|
904
904
|
e && e.forEach((s) => {
|
|
905
905
|
clearTimeout(s);
|
|
906
906
|
});
|
|
@@ -982,9 +982,9 @@ class Gl {
|
|
|
982
982
|
), e(s))).filter((s) => !!s), this._isPreloaded = !0, this._preloaded);
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
const
|
|
985
|
+
const oe = Symbol("SubscriptionHandlers"), L = Symbol("DependencyModels"), _s = Symbol("FutureService"), Es = Symbol("ChildModels"), Ts = Symbol("ParentModel"), Is = Symbol("LogConfig"), Sr = Symbol("ReferenceConfig"), Vl = Symbol("KosModelSymbol"), it = Symbol("ModelEffects"), Kr = Symbol("CompanionParentModel"), Ee = (t, e) => {
|
|
986
986
|
t[Es] = t[Es] || {}, t[Es][e] = !0;
|
|
987
|
-
}, yt = (t) => `{PROP_${String(t)}}`,
|
|
987
|
+
}, yt = (t) => `{PROP_${String(t)}}`, Eb = (t) => `{PROP_${String(t)}}`, Yl = yt("kosParentId"), bo = (t) => (e) => {
|
|
988
988
|
e[Ts] = e[Ts] || {};
|
|
989
989
|
const s = (t == null ? void 0 : t.parentId) || Yl;
|
|
990
990
|
e[Ts] = { parentId: s };
|
|
@@ -1006,7 +1006,7 @@ const re = Symbol("SubscriptionHandlers"), L = Symbol("DependencyModels"), _s =
|
|
|
1006
1006
|
}), o), {});
|
|
1007
1007
|
else if (typeof r == "string") {
|
|
1008
1008
|
const o = new RegExp(".*({PROP_(.+)})");
|
|
1009
|
-
let n = r != null && r.includes(
|
|
1009
|
+
let n = r != null && r.includes(Hr) ? r.replace(Hr, e) : r;
|
|
1010
1010
|
const i = n.match(o);
|
|
1011
1011
|
if (i && s && (Object.getOwnPropertyNames(s).includes(i[2]) || Object.getOwnPropertyNames(Object.getPrototypeOf(s)).includes(
|
|
1012
1012
|
i[2]
|
|
@@ -1091,15 +1091,15 @@ function P(t) {
|
|
|
1091
1091
|
return (e) => {
|
|
1092
1092
|
var r, o;
|
|
1093
1093
|
const s = e;
|
|
1094
|
-
return s.prototype.modelTypeId = t, s.prototype[Vl] = !0, (r = s.prototype)[
|
|
1094
|
+
return s.prototype.modelTypeId = t, s.prototype[Vl] = !0, (r = s.prototype)[oe] ?? (r[oe] = {}), (o = s.prototype)[L] ?? (o[L] = {}), g.ifDebug(() => {
|
|
1095
1095
|
g.debug(`Registering model with id ${t}`);
|
|
1096
1096
|
}), new Proxy(s, Xl);
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1099
|
+
const Tb = ({ modelType: t }) => (e) => {
|
|
1100
1100
|
bo()(e), P(t)(e);
|
|
1101
1101
|
};
|
|
1102
|
-
function
|
|
1102
|
+
function Ib(t, e, s) {
|
|
1103
1103
|
const r = s.value;
|
|
1104
1104
|
s.value = function(...o) {
|
|
1105
1105
|
const n = G.getContext(this.id);
|
|
@@ -1107,11 +1107,11 @@ function Eb(t, e, s) {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
}
|
|
1109
1109
|
var H = /* @__PURE__ */ ((t) => (t.INIT = "init", t.LOAD = "load", t.READY = "ready", t.ACTIVATE = "activate", t.ONLINE = "online", t))(H || {});
|
|
1110
|
-
const
|
|
1110
|
+
const $b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1111
1111
|
__proto__: null,
|
|
1112
1112
|
DependencyLifecycle: H
|
|
1113
1113
|
}, Symbol.toStringTag, { value: "Module" })), Le = Symbol("HttpRouteHandlers"), Wo = "__httpBrowserRouter";
|
|
1114
|
-
function
|
|
1114
|
+
function hr(t) {
|
|
1115
1115
|
return function(s) {
|
|
1116
1116
|
return function(r, o, n) {
|
|
1117
1117
|
r[Le] = r[Le] || [];
|
|
@@ -1128,14 +1128,14 @@ function ur(t) {
|
|
|
1128
1128
|
};
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
-
const ed =
|
|
1132
|
-
function
|
|
1131
|
+
const ed = hr("GET"), fr = hr("POST"), Ob = hr("PUT"), td = hr("DELETE"), Sb = td;
|
|
1132
|
+
function zr(t) {
|
|
1133
1133
|
return !!(t != null && t[Le]) && t[Le].length > 0;
|
|
1134
1134
|
}
|
|
1135
1135
|
function sd(t) {
|
|
1136
1136
|
return (t == null ? void 0 : t[Le]) || [];
|
|
1137
1137
|
}
|
|
1138
|
-
const
|
|
1138
|
+
const Db = ({ group: t } = { group: "" }) => (e) => {
|
|
1139
1139
|
e[Is] = e[Is] || {}, e[Is] = { group: t };
|
|
1140
1140
|
};
|
|
1141
1141
|
function rd(t) {
|
|
@@ -1148,8 +1148,8 @@ function rd(t) {
|
|
|
1148
1148
|
};
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
|
-
const
|
|
1152
|
-
e[
|
|
1151
|
+
const Cb = (t) => (e, s) => {
|
|
1152
|
+
e[Sr] = e[Sr] || {}, e[Sr][s] = t;
|
|
1153
1153
|
}, Xt = ({
|
|
1154
1154
|
/** The type of the model to be injected. */
|
|
1155
1155
|
modelType: t,
|
|
@@ -1163,19 +1163,19 @@ const Sb = (t) => (e, s) => {
|
|
|
1163
1163
|
options: s,
|
|
1164
1164
|
lifecycle: r || H.INIT
|
|
1165
1165
|
};
|
|
1166
|
-
},
|
|
1166
|
+
}, Pb = ({
|
|
1167
1167
|
topic: t,
|
|
1168
1168
|
handler: e,
|
|
1169
1169
|
websocket: s = !1,
|
|
1170
1170
|
condition: r = () => !0
|
|
1171
1171
|
}) => (o) => {
|
|
1172
|
-
o[
|
|
1173
|
-
o[
|
|
1172
|
+
o[oe] = o[oe] || {}, Array.isArray(t) ? t.forEach((n) => {
|
|
1173
|
+
o[oe][n] = {
|
|
1174
1174
|
websocket: s,
|
|
1175
1175
|
handler: e,
|
|
1176
1176
|
condition: r
|
|
1177
1177
|
};
|
|
1178
|
-
}) : o[
|
|
1178
|
+
}) : o[oe][t] = {
|
|
1179
1179
|
websocket: s,
|
|
1180
1180
|
handler: bl(o, kn(e), 200),
|
|
1181
1181
|
condition: r
|
|
@@ -1215,15 +1215,15 @@ function k({
|
|
|
1215
1215
|
wildcardName: b,
|
|
1216
1216
|
flow: w
|
|
1217
1217
|
}) {
|
|
1218
|
-
return (M, F,
|
|
1219
|
-
M[
|
|
1220
|
-
let _ =
|
|
1218
|
+
return (M, F, se) => {
|
|
1219
|
+
M[oe] = M[oe] || {};
|
|
1220
|
+
let _ = se.value;
|
|
1221
1221
|
const W = typeof d == "number" ? d : d == null ? void 0 : d.delay, U = typeof u == "number" ? u : u == null ? void 0 : u.interval;
|
|
1222
1222
|
W && W > 0 ? _ = id(_, d) : U && U > 0 ? _ = ad(_, u) : h ? _ = cd(_, h) : p && (_ = ld(_));
|
|
1223
1223
|
let J = e;
|
|
1224
1224
|
if (f) {
|
|
1225
1225
|
const $e = e;
|
|
1226
|
-
J = (Bo, Ho,
|
|
1226
|
+
J = (Bo, Ho, Er) => f(Er) ? $e(Bo, Ho, Er) : !1;
|
|
1227
1227
|
}
|
|
1228
1228
|
const Ae = {
|
|
1229
1229
|
websocket: r,
|
|
@@ -1239,8 +1239,8 @@ function k({
|
|
|
1239
1239
|
flow: w
|
|
1240
1240
|
};
|
|
1241
1241
|
Array.isArray(t) ? t.forEach(($e) => {
|
|
1242
|
-
M[
|
|
1243
|
-
}) : M[
|
|
1242
|
+
M[oe][$e] = Ae;
|
|
1243
|
+
}) : M[oe][t] = Ae, y && dd(t, y.bufferSize);
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
1246
|
function id(t, e) {
|
|
@@ -1306,7 +1306,7 @@ function ud(t, e) {
|
|
|
1306
1306
|
function hd(t) {
|
|
1307
1307
|
return `${Gn}${t}`;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Dr(t) {
|
|
1310
1310
|
const e = [];
|
|
1311
1311
|
return new Promise((s, r) => {
|
|
1312
1312
|
for (const { condition: o, onMatch: n } of t) {
|
|
@@ -1346,9 +1346,9 @@ const Mi = (t, e, s) => {
|
|
|
1346
1346
|
}), cancel: () => {
|
|
1347
1347
|
r && clearTimeout(r);
|
|
1348
1348
|
} };
|
|
1349
|
-
}, gd = (t) => t.fsm.transitionTo(x.GO_ACTIVE, m.ACTIVE), pd = (t) => t.whenReady(), md = (t) => t.fsm.transitionTo(x.LOAD, m.LOADED),
|
|
1349
|
+
}, gd = (t) => t.fsm.transitionTo(x.GO_ACTIVE, m.ACTIVE), pd = (t) => t.whenReady(), md = (t) => t.fsm.transitionTo(x.LOAD, m.LOADED), Rb = (t) => t.fsm.transitionTo(x.UNLOAD, m.UNLOADED), yd = (t) => t.fsm.transitionTo(x.INITIALIZE, m.INITIALIZED);
|
|
1350
1350
|
var _i = /* @__PURE__ */ ((t) => (t.ACTIVE = "active", t.READY = "ready", t.LOAD = "load", t.UNLOAD = "unload", t.INIT = "init", t))(_i || {});
|
|
1351
|
-
const
|
|
1351
|
+
const Cr = {
|
|
1352
1352
|
active: gd,
|
|
1353
1353
|
ready: pd,
|
|
1354
1354
|
load: md,
|
|
@@ -1419,7 +1419,7 @@ const Dr = {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
const o = e.map((a) => {
|
|
1421
1421
|
let c;
|
|
1422
|
-
return
|
|
1422
|
+
return Cr[s] && a ? c = Cr[s](a) : (a || g.error("model is undefined. This shouldn't happen"), Cr[s] || g.error(
|
|
1423
1423
|
`There is no promise in the Transition Map for ${s}`
|
|
1424
1424
|
)), {
|
|
1425
1425
|
promise: c,
|
|
@@ -1461,7 +1461,7 @@ const Dr = {
|
|
|
1461
1461
|
r.length && (g.error(
|
|
1462
1462
|
`There were ${r.length} failed dependent models on ${e}`
|
|
1463
1463
|
), g.error(r));
|
|
1464
|
-
},
|
|
1464
|
+
}, xb = (t) => typeof t.toJSON == "function", $s = (t) => t[L] !== void 0, Ei = (t) => t.revision !== void 0 && t.index !== void 0, _d = (t) => {
|
|
1465
1465
|
if (t) {
|
|
1466
1466
|
if ($s(t))
|
|
1467
1467
|
return t;
|
|
@@ -1760,7 +1760,7 @@ const Sd = g.createLogger({ name: "model-active-machine" }), Dd = (t) => {
|
|
|
1760
1760
|
),
|
|
1761
1761
|
[m.CREATED]: z(nt(m.INITIALIZING)),
|
|
1762
1762
|
[m.INITIALIZING]: ve(
|
|
1763
|
-
() => (
|
|
1763
|
+
() => (re(() => {
|
|
1764
1764
|
t.status = m.INITIALIZING;
|
|
1765
1765
|
}), t.init()),
|
|
1766
1766
|
D(
|
|
@@ -1782,7 +1782,7 @@ const Sd = g.createLogger({ name: "model-active-machine" }), Dd = (t) => {
|
|
|
1782
1782
|
),
|
|
1783
1783
|
[m.INITIALIZED]: z(nt(m.LOADING)),
|
|
1784
1784
|
[m.LOADING]: ve(
|
|
1785
|
-
() => (
|
|
1785
|
+
() => (re(() => {
|
|
1786
1786
|
t.status = m.LOADING;
|
|
1787
1787
|
}), t.load()),
|
|
1788
1788
|
D(
|
|
@@ -1807,7 +1807,7 @@ const Sd = g.createLogger({ name: "model-active-machine" }), Dd = (t) => {
|
|
|
1807
1807
|
[m.RESETTING]: ve(
|
|
1808
1808
|
() => {
|
|
1809
1809
|
var o;
|
|
1810
|
-
return
|
|
1810
|
+
return re(() => {
|
|
1811
1811
|
t.status = m.RESETTING;
|
|
1812
1812
|
}), (o = t.unload) == null || o.call(t), t.load();
|
|
1813
1813
|
},
|
|
@@ -1820,14 +1820,14 @@ const Sd = g.createLogger({ name: "model-active-machine" }), Dd = (t) => {
|
|
|
1820
1820
|
)
|
|
1821
1821
|
),
|
|
1822
1822
|
[m.READYING]: ve(
|
|
1823
|
-
() => (
|
|
1823
|
+
() => (re(() => {
|
|
1824
1824
|
t.status = m.READYING;
|
|
1825
1825
|
}), t.ready()),
|
|
1826
1826
|
D(
|
|
1827
1827
|
"done",
|
|
1828
1828
|
m.READY,
|
|
1829
1829
|
N(() => {
|
|
1830
|
-
|
|
1830
|
+
re(() => {
|
|
1831
1831
|
t.status = m.READY;
|
|
1832
1832
|
}), s.send(x.GO_ONLINE);
|
|
1833
1833
|
})
|
|
@@ -1954,7 +1954,7 @@ class Ii {
|
|
|
1954
1954
|
*/
|
|
1955
1955
|
registerAll() {
|
|
1956
1956
|
var s;
|
|
1957
|
-
if (!
|
|
1957
|
+
if (!zr(this.model))
|
|
1958
1958
|
return;
|
|
1959
1959
|
let e = this.model.__httpBrowserRouter;
|
|
1960
1960
|
if (!e)
|
|
@@ -1985,7 +1985,7 @@ class Ii {
|
|
|
1985
1985
|
* Check if the model has HTTP route handlers
|
|
1986
1986
|
*/
|
|
1987
1987
|
hasRoutes() {
|
|
1988
|
-
return
|
|
1988
|
+
return zr(this.model);
|
|
1989
1989
|
}
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Register all HTTP route handlers with the browser router
|
|
@@ -2099,8 +2099,8 @@ class Ii {
|
|
|
2099
2099
|
return [...this.registeredRoutes];
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2103
|
-
if (!
|
|
2102
|
+
function Ab(t, e) {
|
|
2103
|
+
if (!zr(t))
|
|
2104
2104
|
return;
|
|
2105
2105
|
const s = Se(Ti);
|
|
2106
2106
|
if (!(s != null && s.model))
|
|
@@ -2228,7 +2228,7 @@ const jd = ({
|
|
|
2228
2228
|
`;
|
|
2229
2229
|
return o += `topic:${t}
|
|
2230
2230
|
`, o += `${Qt}:${t}
|
|
2231
|
-
`, o += `${
|
|
2231
|
+
`, o += `${ir}:${e}
|
|
2232
2232
|
`, r && (o += `${Ne}:${r}
|
|
2233
2233
|
`), o += `${Ce}:kos.studio.request
|
|
2234
2234
|
`, o += `
|
|
@@ -2265,7 +2265,7 @@ const jd = ({
|
|
|
2265
2265
|
let c = `${uo}:${s}
|
|
2266
2266
|
`;
|
|
2267
2267
|
return c += `${Qt}:${t}
|
|
2268
|
-
`, c += `${
|
|
2268
|
+
`, c += `${ir}:${e}
|
|
2269
2269
|
`, r && (c += `${Ne}:${r}
|
|
2270
2270
|
`), o && (c += `${Kn}:true
|
|
2271
2271
|
`), n && (c += `${zn}:${n}
|
|
@@ -2340,7 +2340,7 @@ const Kd = ({
|
|
|
2340
2340
|
let r = `topic:${t}
|
|
2341
2341
|
`;
|
|
2342
2342
|
return r += `${Qt}:${t}
|
|
2343
|
-
`, r += `${
|
|
2343
|
+
`, r += `${ir}:${e}
|
|
2344
2344
|
`, r += `${Ne}:${s}
|
|
2345
2345
|
`, r += `${Ce}:kos.studio.request
|
|
2346
2346
|
`, r += `
|
|
@@ -2351,7 +2351,7 @@ const Kd = ({
|
|
|
2351
2351
|
requestType: s,
|
|
2352
2352
|
headers: r
|
|
2353
2353
|
}) => {
|
|
2354
|
-
let o = `${
|
|
2354
|
+
let o = `${ir}:${t}
|
|
2355
2355
|
`;
|
|
2356
2356
|
return o += `${Ne}:${e}
|
|
2357
2357
|
`, o += `${Ce}:${s}
|
|
@@ -2360,7 +2360,7 @@ const Kd = ({
|
|
|
2360
2360
|
`;
|
|
2361
2361
|
}), o += `
|
|
2362
2362
|
`, o;
|
|
2363
|
-
},
|
|
2363
|
+
}, Lb = (t, e) => {
|
|
2364
2364
|
const s = t, r = qe(
|
|
2365
2365
|
zd(e),
|
|
2366
2366
|
typeof s == "string" ? s : JSON.stringify(s)
|
|
@@ -2381,13 +2381,13 @@ const Kd = ({
|
|
|
2381
2381
|
`, o += `${Ce}:kos.studio.response
|
|
2382
2382
|
`, o += `
|
|
2383
2383
|
`, o;
|
|
2384
|
-
},
|
|
2384
|
+
}, kb = (t, e) => {
|
|
2385
2385
|
const s = t, r = qe(
|
|
2386
2386
|
Kd(e),
|
|
2387
2387
|
JSON.stringify(s)
|
|
2388
2388
|
), o = T.getInstance().transport.socket;
|
|
2389
2389
|
o ? o.socket.send(r) : g.error("socket transport is not initialized");
|
|
2390
|
-
},
|
|
2390
|
+
}, Fb = (t, e) => {
|
|
2391
2391
|
const s = e.responseId ? { status: e.status, data: t } : t, r = qe(
|
|
2392
2392
|
Gd(e),
|
|
2393
2393
|
JSON.stringify(s)
|
|
@@ -2431,7 +2431,7 @@ const Kd = ({
|
|
|
2431
2431
|
`, o += `${Ce}:${r ?? "kos.message.request"}
|
|
2432
2432
|
`, o += `
|
|
2433
2433
|
`, o;
|
|
2434
|
-
},
|
|
2434
|
+
}, Nb = ({
|
|
2435
2435
|
msg: t,
|
|
2436
2436
|
options: e
|
|
2437
2437
|
}) => {
|
|
@@ -2582,7 +2582,7 @@ alias:${this.alias}
|
|
|
2582
2582
|
var s, r;
|
|
2583
2583
|
if (g.wsSend(e), window.kosLogEvents) {
|
|
2584
2584
|
const { headers: o, body: n } = Xo(String(e));
|
|
2585
|
-
B(
|
|
2585
|
+
B(ar.SEND, { headers: o, body: n });
|
|
2586
2586
|
}
|
|
2587
2587
|
if (window.kosTopicIntercept && window.kosEnableMocks) {
|
|
2588
2588
|
const { handler: o, requestId: n } = window.kosTopicIntercept(e);
|
|
@@ -3069,7 +3069,7 @@ class iu {
|
|
|
3069
3069
|
}
|
|
3070
3070
|
registerAll(e) {
|
|
3071
3071
|
var o;
|
|
3072
|
-
const s = ((o = this.modelData) == null ? void 0 : o[
|
|
3072
|
+
const s = ((o = this.modelData) == null ? void 0 : o[oe]) || {}, r = Object.keys(s);
|
|
3073
3073
|
this.log.debug(
|
|
3074
3074
|
`Found ${r.length} subscriptions in ${this.modelId} (lifecycle: ${e ?? "any"})`
|
|
3075
3075
|
), r.forEach((n) => {
|
|
@@ -3315,7 +3315,7 @@ function au(t) {
|
|
|
3315
3315
|
return !!(t != null && t[it]) && Object.keys(t[it]).length > 0;
|
|
3316
3316
|
}
|
|
3317
3317
|
function cu(t) {
|
|
3318
|
-
return !!(t != null && t[
|
|
3318
|
+
return !!(t != null && t[oe]) && Object.keys(t[oe]).length > 0;
|
|
3319
3319
|
}
|
|
3320
3320
|
function lu(t) {
|
|
3321
3321
|
return !!(t != null && t[Le]) && t[Le].length > 0;
|
|
@@ -3456,7 +3456,7 @@ class hu {
|
|
|
3456
3456
|
}
|
|
3457
3457
|
}
|
|
3458
3458
|
async whenLoaded() {
|
|
3459
|
-
await
|
|
3459
|
+
await Dr([
|
|
3460
3460
|
{
|
|
3461
3461
|
condition: () => this.status === m.FAILED,
|
|
3462
3462
|
onMatch: () => {
|
|
@@ -3472,7 +3472,7 @@ class hu {
|
|
|
3472
3472
|
]);
|
|
3473
3473
|
}
|
|
3474
3474
|
async whenInitialized() {
|
|
3475
|
-
await
|
|
3475
|
+
await Dr([
|
|
3476
3476
|
{
|
|
3477
3477
|
condition: () => this.status === m.FAILED,
|
|
3478
3478
|
onMatch: () => {
|
|
@@ -3488,7 +3488,7 @@ class hu {
|
|
|
3488
3488
|
]);
|
|
3489
3489
|
}
|
|
3490
3490
|
async whenReady() {
|
|
3491
|
-
await
|
|
3491
|
+
await Dr([
|
|
3492
3492
|
{
|
|
3493
3493
|
condition: () => this.status === m.FAILED,
|
|
3494
3494
|
onMatch: () => {
|
|
@@ -3533,7 +3533,7 @@ class hu {
|
|
|
3533
3533
|
}
|
|
3534
3534
|
async load() {
|
|
3535
3535
|
var o, n, i, a, c;
|
|
3536
|
-
const e = this[
|
|
3536
|
+
const e = this[Kr];
|
|
3537
3537
|
e && await e.whenLoaded();
|
|
3538
3538
|
const { modelTypeName: s, modelId: r } = this;
|
|
3539
3539
|
if (this.fsm.current === m.LOADED || this.fsm.current === m.LOADING) {
|
|
@@ -3550,7 +3550,7 @@ class hu {
|
|
|
3550
3550
|
);
|
|
3551
3551
|
h && (A.info(
|
|
3552
3552
|
`Setting loaded context for ${r}, type: ${s}`
|
|
3553
|
-
), d == null || d.set(u, h)), await ((n = (o = this.modelData) == null ? void 0 : o.load) == null ? void 0 : n.call(o, d)),
|
|
3553
|
+
), d == null || d.set(u, h)), await ((n = (o = this.modelData) == null ? void 0 : o.load) == null ? void 0 : n.call(o, d)), re(() => {
|
|
3554
3554
|
this.loaded = !0;
|
|
3555
3555
|
}), A.debug(
|
|
3556
3556
|
`Model ${s} with id ${r} successfully loaded`
|
|
@@ -3576,7 +3576,7 @@ class hu {
|
|
|
3576
3576
|
}
|
|
3577
3577
|
async init() {
|
|
3578
3578
|
var n, i, a;
|
|
3579
|
-
const e = this[
|
|
3579
|
+
const e = this[Kr];
|
|
3580
3580
|
e && await e.whenInitialized();
|
|
3581
3581
|
const { modelId: s, modelTypeName: r } = this, o = G.getContext(s);
|
|
3582
3582
|
A.debug(`Initializing model ${r} with id ${s}`), await as(this, H.INIT);
|
|
@@ -3653,7 +3653,7 @@ class gu {
|
|
|
3653
3653
|
companionParent: e.modelData,
|
|
3654
3654
|
kosParentId: e.modelId
|
|
3655
3655
|
});
|
|
3656
|
-
d != null && d.model && (d.model[
|
|
3656
|
+
d != null && d.model && (d.model[Kr] = e, e.addCompanionModel(d.model));
|
|
3657
3657
|
}
|
|
3658
3658
|
}
|
|
3659
3659
|
}
|
|
@@ -4112,18 +4112,18 @@ const bu = (t) => {
|
|
|
4112
4112
|
return t;
|
|
4113
4113
|
}, dt = async (t) => {
|
|
4114
4114
|
await T.getInstance().whenReady(), await T.getInstance().modelManager.initiateDestroyModel(t);
|
|
4115
|
-
},
|
|
4115
|
+
}, jb = async (t) => {
|
|
4116
4116
|
if (await T.getInstance().whenReady(), !t.id)
|
|
4117
4117
|
throw new Error("Model ID is required");
|
|
4118
4118
|
const e = T.getInstance().modelManager.getModelById(t.id);
|
|
4119
4119
|
e && await e.fsm.transitionTo(x.UNLOAD, m.UNLOADED);
|
|
4120
4120
|
}, wu = async (t) => {
|
|
4121
4121
|
await T.getInstance().whenReady(), await T.getInstance().modelManager.reloadModel(t), g.debug(
|
|
4122
|
-
`reload model initiated for model ${t.id}, model ready: ${
|
|
4122
|
+
`reload model initiated for model ${t.id}, model ready: ${Gr(t)} - ${Date.now()} `
|
|
4123
4123
|
), await fe(t), g.debug(
|
|
4124
|
-
`reload model complete for model ${t.id}, model ready: ${
|
|
4124
|
+
`reload model complete for model ${t.id}, model ready: ${Gr(t)} - ${Date.now()} `
|
|
4125
4125
|
);
|
|
4126
|
-
},
|
|
4126
|
+
}, Bb = async (t) => {
|
|
4127
4127
|
if (await T.getInstance().whenReady(), !t)
|
|
4128
4128
|
throw new Error("Model ID is required");
|
|
4129
4129
|
const e = T.getInstance().modelManager.getModelById(t);
|
|
@@ -4144,7 +4144,7 @@ const bu = (t) => {
|
|
|
4144
4144
|
return T.getInstance().modelManager.getModelsByType(t).filter(
|
|
4145
4145
|
(o) => Object.keys(e).every((n) => o[n] === e[n])
|
|
4146
4146
|
);
|
|
4147
|
-
},
|
|
4147
|
+
}, Hb = (t, e) => Mu(t, e)[0], Kb = (t, e) => {
|
|
4148
4148
|
if (!t.id)
|
|
4149
4149
|
throw new Error("Model ID is required");
|
|
4150
4150
|
const s = T.getInstance().modelManager.getModelById(t.id);
|
|
@@ -4161,7 +4161,7 @@ const bu = (t) => {
|
|
|
4161
4161
|
return Array.from(e.companionModels.all()).map(
|
|
4162
4162
|
(r) => r.modelData
|
|
4163
4163
|
);
|
|
4164
|
-
},
|
|
4164
|
+
}, zb = (t) => {
|
|
4165
4165
|
if (!t)
|
|
4166
4166
|
throw new Error("Model ID is required");
|
|
4167
4167
|
const e = T.getInstance().modelManager.getModelById(t);
|
|
@@ -4177,7 +4177,7 @@ const bu = (t) => {
|
|
|
4177
4177
|
return Array.from(s.companionModels.all()).find(
|
|
4178
4178
|
(o) => e(o.modelData)
|
|
4179
4179
|
);
|
|
4180
|
-
}, be = (t) => (e) => Object.getPrototypeOf(e).modelTypeId === t,
|
|
4180
|
+
}, be = (t) => (e) => Object.getPrototypeOf(e).modelTypeId === t, Gr = (t) => {
|
|
4181
4181
|
const e = T.getInstance().modelManager.getModelById(t.id);
|
|
4182
4182
|
if (!e)
|
|
4183
4183
|
throw new Error("Model not found");
|
|
@@ -4219,7 +4219,7 @@ window.KosRegistry = window.KosRegistry || {
|
|
|
4219
4219
|
companionModels: /* @__PURE__ */ new Map(),
|
|
4220
4220
|
models: /* @__PURE__ */ new Map()
|
|
4221
4221
|
};
|
|
4222
|
-
const nn = window.KosRegistry.coreModels,
|
|
4222
|
+
const nn = window.KosRegistry.coreModels, Pr = window.KosRegistry.preloadModels, Rr = window.KosRegistry.companionModels, ds = window.KosRegistry.models, C = {
|
|
4223
4223
|
model: {
|
|
4224
4224
|
registerLegacyModel: (t) => (e, s) => (nn.set(e, s), {
|
|
4225
4225
|
preload: C.model.preloadModel(t),
|
|
@@ -4228,7 +4228,7 @@ const nn = window.KosRegistry.coreModels, Cr = window.KosRegistry.preloadModels,
|
|
|
4228
4228
|
legacy: C.model.registerLegacyModel(t),
|
|
4229
4229
|
root: t
|
|
4230
4230
|
}),
|
|
4231
|
-
preloadModel: (t) => (e) => (
|
|
4231
|
+
preloadModel: (t) => (e) => (Pr.includes(e) || Pr.push(e), {
|
|
4232
4232
|
preload: C.model.preloadModel(t),
|
|
4233
4233
|
model: C.model.register(t),
|
|
4234
4234
|
companion: C.companion.register(t),
|
|
@@ -4236,12 +4236,12 @@ const nn = window.KosRegistry.coreModels, Cr = window.KosRegistry.preloadModels,
|
|
|
4236
4236
|
root: t
|
|
4237
4237
|
}),
|
|
4238
4238
|
register: (t) => (e, s) => {
|
|
4239
|
-
const r =
|
|
4240
|
-
return ds.set(r.type, r),
|
|
4239
|
+
const r = xr(e) ? e.registration() : e;
|
|
4240
|
+
return ds.set(r.type, r), xr(e) && e.relatedModels.forEach(
|
|
4241
4241
|
(o) => ds.set(o.type, o.registration())
|
|
4242
4242
|
), T.getInstance().isReady && (T.getInstance().modelManager.registry.models[r.type] || (console.info(
|
|
4243
4243
|
`Model with type ${r.type} doesn't exist. Adding new registration`
|
|
4244
|
-
), T.getInstance().modelManager.registry.models[r.type] = r.registration[r.type],
|
|
4244
|
+
), T.getInstance().modelManager.registry.models[r.type] = r.registration[r.type], xr(e) && e.relatedModels.forEach(
|
|
4245
4245
|
(o) => T.getInstance().modelManager.registry.models[o.type] = o.registration().registration
|
|
4246
4246
|
))), s && C.model.preloadModel(t)(r.type), {
|
|
4247
4247
|
preload: C.model.preloadModel(t),
|
|
@@ -4253,13 +4253,13 @@ const nn = window.KosRegistry.coreModels, Cr = window.KosRegistry.preloadModels,
|
|
|
4253
4253
|
},
|
|
4254
4254
|
get: (t) => ds.get(t),
|
|
4255
4255
|
getAll: () => Array.from(ds.entries()),
|
|
4256
|
-
getPreloadModels: () =>
|
|
4256
|
+
getPreloadModels: () => Pr,
|
|
4257
4257
|
getLegacyModels: () => Array.from(nn.entries()).reduce((t, [e, s]) => (t[e] = s, t), {})
|
|
4258
4258
|
},
|
|
4259
4259
|
companion: {
|
|
4260
4260
|
register: (t) => (e, s) => {
|
|
4261
|
-
const r =
|
|
4262
|
-
return r.push(s),
|
|
4261
|
+
const r = Rr.get(e) || [];
|
|
4262
|
+
return r.push(s), Rr.set(e, r), {
|
|
4263
4263
|
preload: C.model.preloadModel(t),
|
|
4264
4264
|
model: C.model.register(t),
|
|
4265
4265
|
companion: C.companion.register(t),
|
|
@@ -4267,9 +4267,9 @@ const nn = window.KosRegistry.coreModels, Cr = window.KosRegistry.preloadModels,
|
|
|
4267
4267
|
root: t
|
|
4268
4268
|
};
|
|
4269
4269
|
},
|
|
4270
|
-
getAll: () => Array.from(
|
|
4270
|
+
getAll: () => Array.from(Rr.entries())
|
|
4271
4271
|
}
|
|
4272
|
-
}, Tu = C.model.registerLegacyModel, Iu = C.model.register,
|
|
4272
|
+
}, Tu = C.model.registerLegacyModel, Iu = C.model.register, Gb = C.companion.register, Vb = C.model.preloadModel, $i = (t) => typeof t.updateModel == "function", xr = (t) => t.registration !== void 0 && typeof t.registration == "function";
|
|
4273
4273
|
class Oi {
|
|
4274
4274
|
constructor(e) {
|
|
4275
4275
|
l(this, "singleton");
|
|
@@ -4633,7 +4633,7 @@ class T {
|
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
4635
|
l(T, "_instance");
|
|
4636
|
-
function
|
|
4636
|
+
function Vr(t) {
|
|
4637
4637
|
const e = new Uint8Array(t);
|
|
4638
4638
|
let s = "";
|
|
4639
4639
|
for (let r = 0; r < e.byteLength; r++)
|
|
@@ -4664,7 +4664,7 @@ async function ku(t) {
|
|
|
4664
4664
|
name: o,
|
|
4665
4665
|
filename: n.name,
|
|
4666
4666
|
type: n.type,
|
|
4667
|
-
data:
|
|
4667
|
+
data: Vr(i)
|
|
4668
4668
|
});
|
|
4669
4669
|
} else
|
|
4670
4670
|
e[o] = n.toString();
|
|
@@ -4689,7 +4689,7 @@ async function Nu(t) {
|
|
|
4689
4689
|
if (t instanceof ArrayBuffer || t instanceof Uint8Array) {
|
|
4690
4690
|
let e;
|
|
4691
4691
|
return t instanceof Uint8Array ? (e = new ArrayBuffer(t.byteLength), new Uint8Array(e).set(t)) : e = t, {
|
|
4692
|
-
data:
|
|
4692
|
+
data: Vr(e),
|
|
4693
4693
|
contentType: "application/octet-stream",
|
|
4694
4694
|
encoding: "base64"
|
|
4695
4695
|
};
|
|
@@ -4697,7 +4697,7 @@ async function Nu(t) {
|
|
|
4697
4697
|
if (t instanceof Blob) {
|
|
4698
4698
|
const e = await Au(t);
|
|
4699
4699
|
return {
|
|
4700
|
-
data:
|
|
4700
|
+
data: Vr(e),
|
|
4701
4701
|
contentType: t.type || "application/octet-stream",
|
|
4702
4702
|
encoding: "base64"
|
|
4703
4703
|
};
|
|
@@ -4830,9 +4830,9 @@ const us = g.createLogger({ name: "kos-fetch" }), Uu = process.env.KOS_WS_TIMEOU
|
|
|
4830
4830
|
}, i);
|
|
4831
4831
|
const y = $(r, (w) => {
|
|
4832
4832
|
p && clearTimeout(p);
|
|
4833
|
-
const M = (w == null ? void 0 : w.headers) || {}, F = M["content-type"] || "text/plain",
|
|
4833
|
+
const M = (w == null ? void 0 : w.headers) || {}, F = M["content-type"] || "text/plain", se = M["content-encoding"], R = (w == null ? void 0 : w.body) || "";
|
|
4834
4834
|
let _ = R;
|
|
4835
|
-
if (
|
|
4835
|
+
if (se === "base64" && R)
|
|
4836
4836
|
try {
|
|
4837
4837
|
_ = xu(R);
|
|
4838
4838
|
} catch (U) {
|
|
@@ -4908,7 +4908,7 @@ const Ku = g.createLogger({
|
|
|
4908
4908
|
name: "kos-model-visitor",
|
|
4909
4909
|
group: "kos-ui-core"
|
|
4910
4910
|
});
|
|
4911
|
-
class
|
|
4911
|
+
class Yb {
|
|
4912
4912
|
/**
|
|
4913
4913
|
* Initializes a new instance of the KosModelVisitor class.
|
|
4914
4914
|
*/
|
|
@@ -4999,7 +4999,7 @@ class Yu {
|
|
|
4999
4999
|
await this.middlewares[s](e, r);
|
|
5000
5000
|
}
|
|
5001
5001
|
}
|
|
5002
|
-
const
|
|
5002
|
+
const qb = async (t, e) => {
|
|
5003
5003
|
const s = new Yu();
|
|
5004
5004
|
e.forEach((o) => s.use(o));
|
|
5005
5005
|
const r = { data: t, result: {} };
|
|
@@ -5015,9 +5015,9 @@ const Vb = async (t, e) => {
|
|
|
5015
5015
|
const r = T.getInstance().modelManager.createModelInstance(t, e, s);
|
|
5016
5016
|
return await r.model.whenInitialized(), r.data;
|
|
5017
5017
|
}
|
|
5018
|
-
}),
|
|
5018
|
+
}), Wb = (t) => {
|
|
5019
5019
|
T.getInstance().modelManager.registerModel(t);
|
|
5020
|
-
},
|
|
5020
|
+
}, Zb = (t, e) => {
|
|
5021
5021
|
T.getInstance().modelManager.registerCompanionModel(
|
|
5022
5022
|
t,
|
|
5023
5023
|
e
|
|
@@ -5085,7 +5085,7 @@ function Wu(t, e) {
|
|
|
5085
5085
|
const ze = (t) => {
|
|
5086
5086
|
const e = Wu(Di, t);
|
|
5087
5087
|
return new e(t);
|
|
5088
|
-
}, cn = "/kos/ui/internal/heartbeat/",
|
|
5088
|
+
}, cn = "/kos/ui/internal/heartbeat/", Qb = ({
|
|
5089
5089
|
relationshipId: t,
|
|
5090
5090
|
destinationAddress: e,
|
|
5091
5091
|
onAbort: s,
|
|
@@ -5121,7 +5121,7 @@ const ze = (t) => {
|
|
|
5121
5121
|
baseDelayMs: 100,
|
|
5122
5122
|
backoffFactor: 1.5
|
|
5123
5123
|
};
|
|
5124
|
-
async function
|
|
5124
|
+
async function Jb(t, e) {
|
|
5125
5125
|
let s = 1;
|
|
5126
5126
|
const r = { ...Qu, ...e }, { maxAttempts: o, baseDelayMs: n, backoffFactor: i } = r;
|
|
5127
5127
|
let a = n;
|
|
@@ -5468,7 +5468,7 @@ const ln = (t, e, s) => async ({
|
|
|
5468
5468
|
postModel: ln(t, n || e, c)
|
|
5469
5469
|
};
|
|
5470
5470
|
}
|
|
5471
|
-
}, rh = Jt(), oh = () => `kos-${rh}`,
|
|
5471
|
+
}, rh = Jt(), oh = () => `kos-${rh}`, Xb = (t) => !!t && !t.includes("VM_SERVICE") && t.startsWith(oh()), Ci = async (t, e = 6e4) => new Promise((s, r) => {
|
|
5472
5472
|
const { unsubscribe: o } = $(t, (i) => {
|
|
5473
5473
|
S.debug(`recieved response for refId ${t}: ${i}`), o(), clearTimeout(n);
|
|
5474
5474
|
try {
|
|
@@ -5481,7 +5481,7 @@ const ln = (t, e, s) => async ({
|
|
|
5481
5481
|
}), n = setTimeout(() => {
|
|
5482
5482
|
o(), r(Error(`Request with ID ${t} timed out. Cancelling.`));
|
|
5483
5483
|
}, e);
|
|
5484
|
-
}),
|
|
5484
|
+
}), ew = async (t, e, s) => {
|
|
5485
5485
|
const r = Ci(s), o = await Promise.allSettled([t(e), r]);
|
|
5486
5486
|
if (o[0].status === "fulfilled") {
|
|
5487
5487
|
if (o[1].status === "rejected")
|
|
@@ -5493,7 +5493,7 @@ const ln = (t, e, s) => async ({
|
|
|
5493
5493
|
}
|
|
5494
5494
|
} else
|
|
5495
5495
|
throw Error(o[0].reason);
|
|
5496
|
-
},
|
|
5496
|
+
}, tw = async ({
|
|
5497
5497
|
topic: t,
|
|
5498
5498
|
msg: e,
|
|
5499
5499
|
requestId: s
|
|
@@ -5513,7 +5513,7 @@ class nh {
|
|
|
5513
5513
|
this._id = e, this._context = new co({}), this._parent = "", _e(this);
|
|
5514
5514
|
}
|
|
5515
5515
|
setParent(e) {
|
|
5516
|
-
|
|
5516
|
+
re(() => {
|
|
5517
5517
|
this._parent = e;
|
|
5518
5518
|
});
|
|
5519
5519
|
}
|
|
@@ -5581,7 +5581,7 @@ const G = {
|
|
|
5581
5581
|
rootContext: () => he.get("root")
|
|
5582
5582
|
};
|
|
5583
5583
|
G.createContext("root");
|
|
5584
|
-
const
|
|
5584
|
+
const sw = (t) => G.getContext(t.id);
|
|
5585
5585
|
function ih(t, e) {
|
|
5586
5586
|
return t.length !== e.length ? !1 : t.every((s) => e.includes(s));
|
|
5587
5587
|
}
|
|
@@ -5804,7 +5804,7 @@ class Re {
|
|
|
5804
5804
|
};
|
|
5805
5805
|
}
|
|
5806
5806
|
}
|
|
5807
|
-
const
|
|
5807
|
+
const Ar = g.createLogger({ name: "kos-data-container" });
|
|
5808
5808
|
class Ri {
|
|
5809
5809
|
constructor(e) {
|
|
5810
5810
|
l(this, "_data");
|
|
@@ -5888,20 +5888,20 @@ class Ri {
|
|
|
5888
5888
|
return this._data.get(e);
|
|
5889
5889
|
}
|
|
5890
5890
|
getIndexKeys(e) {
|
|
5891
|
-
return this.index.has(e) ? this.index.get(e).keys ?? [] : (
|
|
5891
|
+
return this.index.has(e) ? this.index.get(e).keys ?? [] : (Ar.info(
|
|
5892
5892
|
`index ${e} not found in ${Array.from(this.index.keys())}`
|
|
5893
5893
|
), []);
|
|
5894
5894
|
}
|
|
5895
5895
|
getIndexByKey(e, s) {
|
|
5896
5896
|
if (this.index.has(e)) {
|
|
5897
5897
|
const r = this.index.get(e);
|
|
5898
|
-
return r.index.has(s) ? r.getByKey(s) : (
|
|
5898
|
+
return r.index.has(s) ? r.getByKey(s) : (Ar.info(
|
|
5899
5899
|
`key ${s} not found in ${e} index: ${Array.from(
|
|
5900
5900
|
r.index.keys()
|
|
5901
5901
|
)}`
|
|
5902
5902
|
), []);
|
|
5903
5903
|
} else
|
|
5904
|
-
return
|
|
5904
|
+
return Ar.info(
|
|
5905
5905
|
`index ${e} not found in ${Array.from(this.index.keys())}`
|
|
5906
5906
|
), [];
|
|
5907
5907
|
}
|
|
@@ -5929,7 +5929,7 @@ class Ri {
|
|
|
5929
5929
|
};
|
|
5930
5930
|
}
|
|
5931
5931
|
}
|
|
5932
|
-
class
|
|
5932
|
+
class rw {
|
|
5933
5933
|
constructor({ type: e, model: s, childRegistration: r }) {
|
|
5934
5934
|
l(this, "type");
|
|
5935
5935
|
l(this, "childRegistration");
|
|
@@ -5953,7 +5953,7 @@ class tw {
|
|
|
5953
5953
|
return be(this.type);
|
|
5954
5954
|
}
|
|
5955
5955
|
}
|
|
5956
|
-
class
|
|
5956
|
+
class ow {
|
|
5957
5957
|
constructor({ type: e, model: s, childRegistration: r }) {
|
|
5958
5958
|
l(this, "type");
|
|
5959
5959
|
l(this, "model");
|
|
@@ -6115,11 +6115,11 @@ class lh {
|
|
|
6115
6115
|
}, {}) : {};
|
|
6116
6116
|
}
|
|
6117
6117
|
}
|
|
6118
|
-
const xi = g.createLogger({ name: "intent-service" }),
|
|
6118
|
+
const xi = g.createLogger({ name: "intent-service" }), nw = (t) => {
|
|
6119
6119
|
fo(`/kos/intent/${t.type}`) ? B(`/kos/intent/${t.type}`, t.options, {
|
|
6120
6120
|
"kos.intent.type": t.type
|
|
6121
6121
|
}) : xi.info(`No subscribers for intent ${t.type}. Intent not sent.`);
|
|
6122
|
-
},
|
|
6122
|
+
}, iw = async (t) => new Promise((e) => {
|
|
6123
6123
|
const { type: s, options: r } = t;
|
|
6124
6124
|
if (fo(`/kos/intent/${t.type}`)) {
|
|
6125
6125
|
const o = Jt(), { unsubscribe: n } = $(
|
|
@@ -6182,10 +6182,10 @@ async function dh(t, e = {}) {
|
|
|
6182
6182
|
return !1;
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
6185
|
-
async function
|
|
6185
|
+
async function aw(t, e = {}) {
|
|
6186
6186
|
return dh([t], e);
|
|
6187
6187
|
}
|
|
6188
|
-
async function
|
|
6188
|
+
async function cw(t, e = !1) {
|
|
6189
6189
|
const s = {};
|
|
6190
6190
|
try {
|
|
6191
6191
|
const r = await Ie("kos:///api/kos/apps/started");
|
|
@@ -6201,7 +6201,7 @@ async function iw(t, e = !1) {
|
|
|
6201
6201
|
}
|
|
6202
6202
|
return s;
|
|
6203
6203
|
}
|
|
6204
|
-
async function
|
|
6204
|
+
async function lw() {
|
|
6205
6205
|
try {
|
|
6206
6206
|
const t = await Ie("kos:///api/kos/apps/started");
|
|
6207
6207
|
if (!t.ok)
|
|
@@ -6212,7 +6212,7 @@ async function aw() {
|
|
|
6212
6212
|
return Oe.error("Failed to fetch started apps:", t), [];
|
|
6213
6213
|
}
|
|
6214
6214
|
}
|
|
6215
|
-
const un = Yt, Ai = Nn,
|
|
6215
|
+
const un = Yt, Ai = Nn, re = V, Y = Wt, uh = qt, Li = ee, ki = "Not Assigned", dw = "kos.trouble.added", uw = "kos.trouble.removed";
|
|
6216
6216
|
var Me = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t))(Me || {}), Cs = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))(Cs || {});
|
|
6217
6217
|
const Fi = g.createLogger({
|
|
6218
6218
|
name: "config-bean-service",
|
|
@@ -6263,7 +6263,7 @@ const bh = (t, e) => {
|
|
|
6263
6263
|
typeof o == "string" && Ni(o) && (o = o.toLowerCase() == "true", n = (n == null ? void 0 : n.toLowerCase()) == "true"), typeof o == "string" && Mo(o) && (o = Number(o), n = Number(n)), e.props[r] = o, e.prevProps[r] = n;
|
|
6264
6264
|
});
|
|
6265
6265
|
});
|
|
6266
|
-
}, vh = (t) => Object.fromEntries(t.props.entries),
|
|
6266
|
+
}, vh = (t) => Object.fromEntries(t.props.entries), hw = (t) => (e) => (s) => t.build(e, s);
|
|
6267
6267
|
var Mh = Object.defineProperty, _h = Object.getOwnPropertyDescriptor, ji = (t, e, s, r) => {
|
|
6268
6268
|
for (var o = r > 1 ? void 0 : r ? _h(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
6269
6269
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
@@ -6322,7 +6322,7 @@ let ks = class {
|
|
|
6322
6322
|
const e = t.data;
|
|
6323
6323
|
bh(e, this), fs.debug(this.values);
|
|
6324
6324
|
const s = t == null ? void 0 : t.data.details[0].schema;
|
|
6325
|
-
|
|
6325
|
+
re(() => {
|
|
6326
6326
|
s && (this._schema = s);
|
|
6327
6327
|
});
|
|
6328
6328
|
}
|
|
@@ -6389,7 +6389,7 @@ const Fs = new Te({
|
|
|
6389
6389
|
basePath: `${Bi}/api/kos/regions/info`
|
|
6390
6390
|
}), Hi = async () => await Ih({}), Ki = async () => await $h({
|
|
6391
6391
|
urlOverride: `${Bi}/api/kos/regions`
|
|
6392
|
-
}),
|
|
6392
|
+
}), fw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6393
6393
|
__proto__: null,
|
|
6394
6394
|
getRegionInfo: Hi,
|
|
6395
6395
|
getRegions: Ki
|
|
@@ -6814,7 +6814,7 @@ const ne = {
|
|
|
6814
6814
|
);
|
|
6815
6815
|
if (!r)
|
|
6816
6816
|
throw new Error("RegionInfo model not found");
|
|
6817
|
-
if (!
|
|
6817
|
+
if (!Gr(r))
|
|
6818
6818
|
throw new Error("RegionInfo model not ready");
|
|
6819
6819
|
const o = { system: r.defaultUnitSystem }, n = Ns({ source: e }), i = Ns({
|
|
6820
6820
|
source: s || o,
|
|
@@ -6837,7 +6837,7 @@ function hn(t, e, s) {
|
|
|
6837
6837
|
return e;
|
|
6838
6838
|
}
|
|
6839
6839
|
}
|
|
6840
|
-
const
|
|
6840
|
+
const gw = (t, e, s, r) => {
|
|
6841
6841
|
const o = Gi(t, e, s), n = Ns({ source: e }), { model: i } = Se(
|
|
6842
6842
|
ne.type
|
|
6843
6843
|
);
|
|
@@ -7205,7 +7205,7 @@ let Ut = class {
|
|
|
7205
7205
|
const y = (r = this.converter) == null ? void 0 : r.measure, b = (n = (o = this.converter) == null ? void 0 : o.to) == null ? void 0 : n.measure, w = (a = (i = this.converter) == null ? void 0 : i.from) == null ? void 0 : a.measure, M = y || b || w || e, F = ((d = (c = this.converter) == null ? void 0 : c.to) == null ? void 0 : d.unit) || this.regionInfo.getDefaultUnitForMeasure(
|
|
7206
7206
|
M,
|
|
7207
7207
|
((h = (u = this.converter) == null ? void 0 : u.to) == null ? void 0 : h.system) ?? this.regionInfo.defaultUnitSystem
|
|
7208
|
-
),
|
|
7208
|
+
), se = ((p = (f = this.converter) == null ? void 0 : f.to) == null ? void 0 : p.system) ?? this.regionInfo.getUnitSystem(F), R = this.schemaFormat === "drt" ? "second" : this.schemaFormat || s;
|
|
7209
7209
|
return {
|
|
7210
7210
|
...this.converter,
|
|
7211
7211
|
from: {
|
|
@@ -7215,7 +7215,7 @@ let Ut = class {
|
|
|
7215
7215
|
to: {
|
|
7216
7216
|
...this.converter.to,
|
|
7217
7217
|
unit: F,
|
|
7218
|
-
system:
|
|
7218
|
+
system: se
|
|
7219
7219
|
},
|
|
7220
7220
|
measure: M
|
|
7221
7221
|
};
|
|
@@ -7265,7 +7265,7 @@ const wt = {
|
|
|
7265
7265
|
Rs
|
|
7266
7266
|
)
|
|
7267
7267
|
};
|
|
7268
|
-
function
|
|
7268
|
+
function pw(t) {
|
|
7269
7269
|
const {
|
|
7270
7270
|
path: e,
|
|
7271
7271
|
attribute: s,
|
|
@@ -7292,7 +7292,7 @@ function fw(t) {
|
|
|
7292
7292
|
};
|
|
7293
7293
|
};
|
|
7294
7294
|
}
|
|
7295
|
-
class
|
|
7295
|
+
class mw {
|
|
7296
7296
|
constructor(e, s) {
|
|
7297
7297
|
l(this, "futures");
|
|
7298
7298
|
l(this, "defaultContext");
|
|
@@ -7378,23 +7378,23 @@ class $o {
|
|
|
7378
7378
|
}
|
|
7379
7379
|
const Bh = "future-model", ts = es(
|
|
7380
7380
|
Bh
|
|
7381
|
-
),
|
|
7381
|
+
), gr = g.createLogger({ name: "future-service", group: "Services" }), { isMock: Hh, URL: ss } = ue();
|
|
7382
7382
|
var Ge = /* @__PURE__ */ ((t) => (t.Success = "SUCCESS", t.Fail = "FAIL", t.Aborted = "ABORT", t.Canceled = "CANCEL", t))(Ge || {});
|
|
7383
7383
|
const { getAll: Kh, modifyModel: zh, addModel: Gh, deleteModel: Vh, postModel: Yh } = ae.build({
|
|
7384
7384
|
destinationAddress: "",
|
|
7385
7385
|
basePath: `${ss}/api/future`,
|
|
7386
7386
|
mock: Hh
|
|
7387
|
-
}),
|
|
7387
|
+
}), yw = async () => await Kh({}), qh = async (t, e = "/api/kos/future") => (gr.info(`sending delete request for Future: ${t}`), await Vh({
|
|
7388
7388
|
id: t,
|
|
7389
7389
|
urlOverride: `${ss}${e}/${t}`
|
|
7390
|
-
})), Wh = async (t, e = "/api/kos/future") => (
|
|
7390
|
+
})), Wh = async (t, e = "/api/kos/future") => (gr.info("sending add request for Future"), await Gh({
|
|
7391
7391
|
model: t,
|
|
7392
7392
|
urlOverride: `${ss}${e}`
|
|
7393
|
-
})),
|
|
7393
|
+
})), bw = async (t, e, s = "/api/kos/future") => (gr.info(`sending modify request for Future: ${t}`), zh({
|
|
7394
7394
|
model: e,
|
|
7395
7395
|
id: t,
|
|
7396
7396
|
urlOverride: `${ss}${s}/${t}`
|
|
7397
|
-
})), Zh = async (t, e = "/api/kos/future") => (
|
|
7397
|
+
})), Zh = async (t, e = "/api/kos/future") => (gr.info(`sending cancel request for Future: ${t}`), Yh({
|
|
7398
7398
|
urlOverride: `${ss}${e}/${t}/cancel`,
|
|
7399
7399
|
ordered: !0,
|
|
7400
7400
|
model: {}
|
|
@@ -7411,7 +7411,7 @@ const { getAll: Kh, modifyModel: zh, addModel: Gh, deleteModel: Vh, postModel: Y
|
|
|
7411
7411
|
}), Yi = (t, e) => {
|
|
7412
7412
|
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}`), V(() => {
|
|
7413
7413
|
const s = Vi(t);
|
|
7414
|
-
|
|
7414
|
+
re(() => {
|
|
7415
7415
|
Object.keys(s).forEach((r) => {
|
|
7416
7416
|
r === "id" ? (e.futureId = s.id, s.tracker || (e.id = s.id)) : r === "tracker" ? e.id = s.tracker : e[r] = s[r];
|
|
7417
7417
|
});
|
|
@@ -7426,7 +7426,7 @@ var Jh = Object.defineProperty, Xh = Object.getOwnPropertyDescriptor, Wi = (t, e
|
|
|
7426
7426
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
7427
7427
|
return r && o && Jh(e, s, o), o;
|
|
7428
7428
|
};
|
|
7429
|
-
const
|
|
7429
|
+
const Lr = g.getLogger(ts.type);
|
|
7430
7430
|
let Us = class {
|
|
7431
7431
|
/**
|
|
7432
7432
|
* @category Constructor
|
|
@@ -7444,7 +7444,7 @@ let Us = class {
|
|
|
7444
7444
|
Object.assign(this, e), this.logger = s.logger, this.id = t, this.futureId = e.id, this.namespace = e.namespace || "kos", this._cancelFuture = Zh, un(
|
|
7445
7445
|
() => this.status === Ge.Success || this.status === Ge.Fail,
|
|
7446
7446
|
() => {
|
|
7447
|
-
|
|
7447
|
+
Lr.info(`Future ${this.id} has completed with status ${this.status}`), dt(this);
|
|
7448
7448
|
}
|
|
7449
7449
|
);
|
|
7450
7450
|
}
|
|
@@ -7457,10 +7457,10 @@ let Us = class {
|
|
|
7457
7457
|
* In future additional information about the workspace could be loaded
|
|
7458
7458
|
*/
|
|
7459
7459
|
async load() {
|
|
7460
|
-
|
|
7460
|
+
Lr.debug(`loading Future ${this.id}`);
|
|
7461
7461
|
}
|
|
7462
7462
|
unload() {
|
|
7463
|
-
|
|
7463
|
+
Lr.info(`unloading Future ${this.id}`);
|
|
7464
7464
|
}
|
|
7465
7465
|
// -------------------ACTIONS----------------------------
|
|
7466
7466
|
/**
|
|
@@ -7511,7 +7511,7 @@ let Us = class {
|
|
|
7511
7511
|
};
|
|
7512
7512
|
Wi([
|
|
7513
7513
|
k({
|
|
7514
|
-
topic: `kos.future/${
|
|
7514
|
+
topic: `kos.future/${Hr}`
|
|
7515
7515
|
})
|
|
7516
7516
|
], Us.prototype, "handleFutureUpdated", 1);
|
|
7517
7517
|
Us = Wi([
|
|
@@ -7786,7 +7786,7 @@ jt = Oo([
|
|
|
7786
7786
|
], jt);
|
|
7787
7787
|
const hf = jt, { URL: rs } = ue(), { getOne: ff, postModel: gf, deleteModel: ea } = ae.build({
|
|
7788
7788
|
basePath: `${rs}/api/keyVal`
|
|
7789
|
-
}),
|
|
7789
|
+
}), Yr = g.createLogger({
|
|
7790
7790
|
name: "key-value-service",
|
|
7791
7791
|
group: "Services"
|
|
7792
7792
|
}), ta = async (t, e) => {
|
|
@@ -7800,17 +7800,17 @@ const hf = jt, { URL: rs } = ue(), { getOne: ff, postModel: gf, deleteModel: ea
|
|
|
7800
7800
|
model: s.toString()
|
|
7801
7801
|
});
|
|
7802
7802
|
if ((r == null ? void 0 : r.status) !== 200)
|
|
7803
|
-
throw
|
|
7803
|
+
throw Yr.error("Failed to update studio-state data", r), new Error(
|
|
7804
7804
|
`Failed to update studio-state data for namespace ${t}`
|
|
7805
7805
|
);
|
|
7806
7806
|
return r.data;
|
|
7807
7807
|
}, ra = async (t = "studio") => {
|
|
7808
|
-
|
|
7808
|
+
Yr.debug("sending GET for studio-state");
|
|
7809
7809
|
const e = await ff({
|
|
7810
7810
|
urlOverride: `${rs}/api/keyVal/${t}`
|
|
7811
7811
|
});
|
|
7812
7812
|
if ((e == null ? void 0 : e.status) !== 200)
|
|
7813
|
-
throw
|
|
7813
|
+
throw Yr.error("Failed to retrieve studio-state data", e), new Error(
|
|
7814
7814
|
`Failed to retrieve studio-state data for namespace ${t}`
|
|
7815
7815
|
);
|
|
7816
7816
|
return e.data;
|
|
@@ -7819,7 +7819,7 @@ const hf = jt, { URL: rs } = ue(), { getOne: ff, postModel: gf, deleteModel: ea
|
|
|
7819
7819
|
urlOverride: `${rs}/api/keyVal/${t}}`,
|
|
7820
7820
|
id: ""
|
|
7821
7821
|
});
|
|
7822
|
-
},
|
|
7822
|
+
}, ww = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7823
7823
|
__proto__: null,
|
|
7824
7824
|
deleteKeyValue: ta,
|
|
7825
7825
|
deleteKeyValueNamespace: pf,
|
|
@@ -7877,11 +7877,11 @@ const na = new Te({
|
|
|
7877
7877
|
}, Symbol.toStringTag, { value: "Module" })), wf = g.createLogger({
|
|
7878
7878
|
name: "kos-log-manager-service",
|
|
7879
7879
|
group: "Services"
|
|
7880
|
-
}), vf = "/api/kos/logs/overrides", ia = async () => (wf.debug("sending GET for kos-log-manager"), await xe.get(vf)),
|
|
7880
|
+
}), vf = "/api/kos/logs/overrides", ia = async () => (wf.debug("sending GET for kos-log-manager"), await xe.get(vf)), vw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7881
7881
|
__proto__: null,
|
|
7882
7882
|
getLogOverrides: ia
|
|
7883
7883
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7884
|
-
var Mf = Object.defineProperty, _f = Object.getOwnPropertyDescriptor,
|
|
7884
|
+
var Mf = Object.defineProperty, _f = Object.getOwnPropertyDescriptor, pr = (t, e, s, r) => {
|
|
7885
7885
|
for (var o = r > 1 ? void 0 : r ? _f(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
7886
7886
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
7887
7887
|
return r && o && Mf(e, s, o), o;
|
|
@@ -8021,24 +8021,24 @@ let ht = class {
|
|
|
8021
8021
|
});
|
|
8022
8022
|
}
|
|
8023
8023
|
};
|
|
8024
|
-
|
|
8024
|
+
pr([
|
|
8025
8025
|
ed("/api/kos/ui/loggers")
|
|
8026
8026
|
], ht.prototype, "getAllLoggers", 1);
|
|
8027
|
-
|
|
8027
|
+
pr([
|
|
8028
8028
|
k({
|
|
8029
8029
|
topic: Ef,
|
|
8030
8030
|
websocket: !0,
|
|
8031
8031
|
wildcardName: "nodeType"
|
|
8032
8032
|
})
|
|
8033
8033
|
], ht.prototype, "handleOverrideAdded", 1);
|
|
8034
|
-
|
|
8034
|
+
pr([
|
|
8035
8035
|
k({
|
|
8036
8036
|
topic: Tf,
|
|
8037
8037
|
websocket: !0,
|
|
8038
8038
|
wildcardName: "nodeType"
|
|
8039
8039
|
})
|
|
8040
8040
|
], ht.prototype, "handleOverrideRemoved", 1);
|
|
8041
|
-
ht =
|
|
8041
|
+
ht = pr([
|
|
8042
8042
|
P(aa)
|
|
8043
8043
|
], ht);
|
|
8044
8044
|
const $f = new Pe({
|
|
@@ -8082,14 +8082,14 @@ const ca = async (t) => {
|
|
|
8082
8082
|
if ((t == null ? void 0 : t.status) !== 200)
|
|
8083
8083
|
throw Error("Failed to set timezone");
|
|
8084
8084
|
return t.data.timeZone;
|
|
8085
|
-
},
|
|
8085
|
+
}, Mw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8086
8086
|
__proto__: null,
|
|
8087
8087
|
getTimezone: ua,
|
|
8088
8088
|
setDate: la,
|
|
8089
8089
|
setTime: ca,
|
|
8090
8090
|
setTimezone: da
|
|
8091
8091
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8092
|
-
var Sf = Object.defineProperty, Df = Object.getOwnPropertyDescriptor,
|
|
8092
|
+
var Sf = Object.defineProperty, Df = Object.getOwnPropertyDescriptor, mr = (t, e, s, r) => {
|
|
8093
8093
|
for (var o = r > 1 ? void 0 : r ? Df(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
8094
8094
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
8095
8095
|
return r && o && Sf(e, s, o), o;
|
|
@@ -8149,19 +8149,19 @@ let ft = class {
|
|
|
8149
8149
|
this.logger.debug(`loading kos-time ${this.id}`), this.retrieveTimezone();
|
|
8150
8150
|
}
|
|
8151
8151
|
};
|
|
8152
|
-
|
|
8152
|
+
mr([
|
|
8153
8153
|
k({ topic: Cf, websocket: !0 })
|
|
8154
8154
|
], ft.prototype, "handleTimeChange", 1);
|
|
8155
|
-
|
|
8155
|
+
mr([
|
|
8156
8156
|
k({ topic: Pf, websocket: !0 })
|
|
8157
8157
|
], ft.prototype, "handleDayChange", 1);
|
|
8158
|
-
|
|
8158
|
+
mr([
|
|
8159
8159
|
k({ topic: Rf, websocket: !0 })
|
|
8160
8160
|
], ft.prototype, "handleTimeZoneChange", 1);
|
|
8161
|
-
ft =
|
|
8161
|
+
ft = mr([
|
|
8162
8162
|
P(Tt)
|
|
8163
8163
|
], ft);
|
|
8164
|
-
const
|
|
8164
|
+
const qr = {
|
|
8165
8165
|
registration: {
|
|
8166
8166
|
[Tt]: {
|
|
8167
8167
|
class: ft,
|
|
@@ -8294,7 +8294,7 @@ const Lf = g.createLogger({
|
|
|
8294
8294
|
{
|
|
8295
8295
|
destinationAddress: vt
|
|
8296
8296
|
}
|
|
8297
|
-
),
|
|
8297
|
+
), _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8298
8298
|
__proto__: null,
|
|
8299
8299
|
createOverride: Ff,
|
|
8300
8300
|
getKosConnectionId: ga,
|
|
@@ -8310,7 +8310,7 @@ var Nf = Object.defineProperty, Uf = Object.getOwnPropertyDescriptor, jf = (t, e
|
|
|
8310
8310
|
return r && o && Nf(e, s, o), o;
|
|
8311
8311
|
};
|
|
8312
8312
|
const va = "log-block-model";
|
|
8313
|
-
let
|
|
8313
|
+
let Wr = class {
|
|
8314
8314
|
constructor(t, e, s) {
|
|
8315
8315
|
l(this, "id");
|
|
8316
8316
|
l(this, "logger");
|
|
@@ -8352,11 +8352,11 @@ let qr = class {
|
|
|
8352
8352
|
this.logger.debug(`loading log-block ${this.id}`);
|
|
8353
8353
|
}
|
|
8354
8354
|
};
|
|
8355
|
-
|
|
8355
|
+
Wr = jf([
|
|
8356
8356
|
P(va)
|
|
8357
|
-
],
|
|
8357
|
+
], Wr);
|
|
8358
8358
|
const Hs = new Te({
|
|
8359
|
-
class:
|
|
8359
|
+
class: Wr,
|
|
8360
8360
|
type: va
|
|
8361
8361
|
}), Co = new Te({
|
|
8362
8362
|
class: Bs,
|
|
@@ -8657,13 +8657,13 @@ We([
|
|
|
8657
8657
|
De = We([
|
|
8658
8658
|
P(Ea)
|
|
8659
8659
|
], De);
|
|
8660
|
-
const
|
|
8660
|
+
const yr = new Pe({
|
|
8661
8661
|
class: De,
|
|
8662
8662
|
type: Ea
|
|
8663
8663
|
});
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8664
|
+
yr.addRelatedModel(xs);
|
|
8665
|
+
yr.addRelatedModel(Co);
|
|
8666
|
+
yr.addRelatedModel(Hs);
|
|
8667
8667
|
const Wf = (t) => t.rank !== void 0, Zf = (t) => t.visibleRole !== void 0, Qf = (t) => t.color !== void 0, Jf = (t) => {
|
|
8668
8668
|
const e = t.info;
|
|
8669
8669
|
return Wf(e) ? e.rank : 0;
|
|
@@ -8709,13 +8709,13 @@ const Wf = (t) => t.rank !== void 0, Zf = (t) => t.visibleRole !== void 0, Qf =
|
|
|
8709
8709
|
};
|
|
8710
8710
|
return ut.initiateFuture(r), r;
|
|
8711
8711
|
}
|
|
8712
|
-
},
|
|
8712
|
+
}, Ew = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8713
8713
|
__proto__: null,
|
|
8714
8714
|
bulkResolveTroubles: sg,
|
|
8715
8715
|
getTroubles: $a,
|
|
8716
8716
|
resolveTrouble: Oa
|
|
8717
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8718
|
-
|
|
8717
|
+
}, Symbol.toStringTag, { value: "Module" })), Zr = "troubleDataMapper", ps = /* @__PURE__ */ new Map();
|
|
8718
|
+
ur(Zr, {
|
|
8719
8719
|
register: (t, e) => {
|
|
8720
8720
|
var s;
|
|
8721
8721
|
ps.has(t) || ps.set(t, []), (s = ps.get(t)) == null || s.push(e);
|
|
@@ -8733,8 +8733,8 @@ dr(Wr, {
|
|
|
8733
8733
|
);
|
|
8734
8734
|
}
|
|
8735
8735
|
});
|
|
8736
|
-
const
|
|
8737
|
-
|
|
8736
|
+
const br = "troubleMapper", ms = /* @__PURE__ */ new Map();
|
|
8737
|
+
ur(br, {
|
|
8738
8738
|
register: (t, e) => {
|
|
8739
8739
|
var s;
|
|
8740
8740
|
ms.has(t) || ms.set(t, []), (s = ms.get(t)) == null || s.push(e);
|
|
@@ -8747,17 +8747,17 @@ dr(yr, {
|
|
|
8747
8747
|
return Array.from(new Set(n));
|
|
8748
8748
|
}
|
|
8749
8749
|
});
|
|
8750
|
-
I[
|
|
8750
|
+
I[br].register(
|
|
8751
8751
|
"nozzle",
|
|
8752
8752
|
async (t) => [t.data.nozzlePath]
|
|
8753
8753
|
);
|
|
8754
|
-
I[
|
|
8754
|
+
I[br].register(
|
|
8755
8755
|
"path",
|
|
8756
8756
|
async (t) => [t.data.path]
|
|
8757
8757
|
);
|
|
8758
8758
|
const rg = async (t) => {
|
|
8759
8759
|
const e = /* @__PURE__ */ new Set(), s = t.ifaces, r = s == null ? void 0 : s.map(
|
|
8760
|
-
(n) => I[
|
|
8760
|
+
(n) => I[br].execute(
|
|
8761
8761
|
n,
|
|
8762
8762
|
t
|
|
8763
8763
|
)
|
|
@@ -8767,11 +8767,11 @@ const rg = async (t) => {
|
|
|
8767
8767
|
}), Array.from(e);
|
|
8768
8768
|
}, og = async (t) => {
|
|
8769
8769
|
const e = t.ifaces, s = e == null ? void 0 : e.map(
|
|
8770
|
-
(i) => I[
|
|
8770
|
+
(i) => I[Zr].execute(
|
|
8771
8771
|
i,
|
|
8772
8772
|
t
|
|
8773
8773
|
)
|
|
8774
|
-
), r = I[
|
|
8774
|
+
), r = I[Zr].execute(t.type, t);
|
|
8775
8775
|
s.push(r);
|
|
8776
8776
|
const n = (await Promise.allSettled(s)).reduce((i, a) => (a.status === "fulfilled" && (i = { ...i, ...a.value }), i), {});
|
|
8777
8777
|
return { ...t.data, ...n };
|
|
@@ -8933,7 +8933,7 @@ const Gs = {
|
|
|
8933
8933
|
predicate: be(It),
|
|
8934
8934
|
factory: ie.Factory.create(It)
|
|
8935
8935
|
};
|
|
8936
|
-
var lg = Object.defineProperty, dg = Object.getOwnPropertyDescriptor,
|
|
8936
|
+
var lg = Object.defineProperty, dg = Object.getOwnPropertyDescriptor, wr = (t, e, s, r) => {
|
|
8937
8937
|
for (var o = r > 1 ? void 0 : r ? dg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
8938
8938
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
8939
8939
|
return r && o && lg(e, s, o), o;
|
|
@@ -9019,20 +9019,20 @@ let gt = class {
|
|
|
9019
9019
|
this.troubles.addModel(s);
|
|
9020
9020
|
}
|
|
9021
9021
|
};
|
|
9022
|
-
|
|
9022
|
+
wr([
|
|
9023
9023
|
Ee
|
|
9024
9024
|
], gt.prototype, "troubles", 2);
|
|
9025
|
-
|
|
9025
|
+
wr([
|
|
9026
9026
|
k({
|
|
9027
9027
|
topic: "/kos/trouble/remove",
|
|
9028
9028
|
websocket: !0,
|
|
9029
9029
|
lifecycle: H.INIT
|
|
9030
9030
|
})
|
|
9031
9031
|
], gt.prototype, "handleTroubleRemoved", 1);
|
|
9032
|
-
|
|
9032
|
+
wr([
|
|
9033
9033
|
k({ topic: "/kos/trouble/add", websocket: !0 })
|
|
9034
9034
|
], gt.prototype, "handleTroubleAdded", 1);
|
|
9035
|
-
gt =
|
|
9035
|
+
gt = wr([
|
|
9036
9036
|
P(ug)
|
|
9037
9037
|
], gt);
|
|
9038
9038
|
const bs = "trouble-container-model", Ht = {
|
|
@@ -9059,7 +9059,7 @@ const bs = "trouble-container-model", Ht = {
|
|
|
9059
9059
|
});
|
|
9060
9060
|
return wn.debug("getArtifacts - response:", t), t == null ? void 0 : t.data;
|
|
9061
9061
|
};
|
|
9062
|
-
var gg = Object.defineProperty, pg = Object.getOwnPropertyDescriptor,
|
|
9062
|
+
var gg = Object.defineProperty, pg = Object.getOwnPropertyDescriptor, vr = (t, e, s, r) => {
|
|
9063
9063
|
for (var o = r > 1 ? void 0 : r ? pg(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
9064
9064
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
9065
9065
|
return r && o && gg(e, s, o), o;
|
|
@@ -9071,7 +9071,7 @@ const Ca = "ota-model", mg = (t) => {
|
|
|
9071
9071
|
(!e || e.lastUpdateTime < o) && (e = r);
|
|
9072
9072
|
}
|
|
9073
9073
|
return e;
|
|
9074
|
-
},
|
|
9074
|
+
}, kr = (t) => {
|
|
9075
9075
|
const e = t.artifactInfo, s = mg(t.requests), r = (e == null ? void 0 : e.identifier) || (s == null ? void 0 : s.kabId);
|
|
9076
9076
|
if (!r)
|
|
9077
9077
|
return;
|
|
@@ -9152,7 +9152,7 @@ let pt = class {
|
|
|
9152
9152
|
try {
|
|
9153
9153
|
const t = await fg();
|
|
9154
9154
|
t && t.forEach((e) => {
|
|
9155
|
-
const s =
|
|
9155
|
+
const s = kr(e);
|
|
9156
9156
|
s && this.data.addModel(s);
|
|
9157
9157
|
});
|
|
9158
9158
|
} catch (t) {
|
|
@@ -9163,7 +9163,7 @@ let pt = class {
|
|
|
9163
9163
|
this.logger.debug("handleAllArtifacts:", t), await this.data.clear();
|
|
9164
9164
|
try {
|
|
9165
9165
|
t.forEach((e) => {
|
|
9166
|
-
const s =
|
|
9166
|
+
const s = kr(e);
|
|
9167
9167
|
s && this.data.addModel(s);
|
|
9168
9168
|
});
|
|
9169
9169
|
} catch (e) {
|
|
@@ -9174,7 +9174,7 @@ let pt = class {
|
|
|
9174
9174
|
this.logger.debug("handleChangedArtifacts:", t);
|
|
9175
9175
|
try {
|
|
9176
9176
|
t.forEach((e) => {
|
|
9177
|
-
const s =
|
|
9177
|
+
const s = kr(e);
|
|
9178
9178
|
s && this.data.updateModel(s);
|
|
9179
9179
|
});
|
|
9180
9180
|
} catch (e) {
|
|
@@ -9182,25 +9182,25 @@ let pt = class {
|
|
|
9182
9182
|
}
|
|
9183
9183
|
}
|
|
9184
9184
|
};
|
|
9185
|
-
|
|
9185
|
+
vr([
|
|
9186
9186
|
Xt({ modelType: Ht.type })
|
|
9187
9187
|
], pt.prototype, "troubleContainer", 2);
|
|
9188
|
-
|
|
9188
|
+
vr([
|
|
9189
9189
|
k({
|
|
9190
9190
|
topic: "/kos/ota/artifacts/all",
|
|
9191
9191
|
websocket: !0
|
|
9192
9192
|
})
|
|
9193
9193
|
], pt.prototype, "handleAllArtifacts", 1);
|
|
9194
|
-
|
|
9194
|
+
vr([
|
|
9195
9195
|
k({
|
|
9196
9196
|
topic: "/kos/ota/artifacts/changed",
|
|
9197
9197
|
websocket: !0
|
|
9198
9198
|
})
|
|
9199
9199
|
], pt.prototype, "handleChangedArtifacts", 1);
|
|
9200
|
-
pt =
|
|
9200
|
+
pt = vr([
|
|
9201
9201
|
P(Ca)
|
|
9202
9202
|
], pt);
|
|
9203
|
-
const
|
|
9203
|
+
const Qr = new Pe({
|
|
9204
9204
|
class: pt,
|
|
9205
9205
|
type: Ca
|
|
9206
9206
|
});
|
|
@@ -9219,18 +9219,18 @@ function yg(t) {
|
|
|
9219
9219
|
e && (e.abort(), e = void 0);
|
|
9220
9220
|
}, s.getController = () => e, s.isActive = () => !!e, s;
|
|
9221
9221
|
}
|
|
9222
|
-
const
|
|
9222
|
+
const Fr = g.createLogger({
|
|
9223
9223
|
name: "software-info-service",
|
|
9224
9224
|
group: "Services"
|
|
9225
9225
|
}), Ro = async (t) => {
|
|
9226
|
-
|
|
9226
|
+
Fr.debug("sending GET for software-info");
|
|
9227
9227
|
const [e, s] = await tf.get("/api/kos/manifest/info", void 0, {
|
|
9228
9228
|
signal: t
|
|
9229
9229
|
});
|
|
9230
9230
|
if (!s)
|
|
9231
|
-
throw t != null && t.aborted ? (
|
|
9231
|
+
throw t != null && t.aborted ? (Fr.debug("Request was aborted"), new pe("Request was aborted")) : (Fr.error("Failed to fetch software-info", e), new pe("Failed to fetch software-info"));
|
|
9232
9232
|
return s;
|
|
9233
|
-
}, bg = yg(Ro),
|
|
9233
|
+
}, bg = yg(Ro), Tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9234
9234
|
__proto__: null,
|
|
9235
9235
|
getSoftwareInfos: Ro,
|
|
9236
9236
|
getSoftwareInfosWithCancel: bg
|
|
@@ -9241,7 +9241,7 @@ var wg = Object.defineProperty, vg = Object.getOwnPropertyDescriptor, Mg = (t, e
|
|
|
9241
9241
|
return r && o && wg(e, s, o), o;
|
|
9242
9242
|
};
|
|
9243
9243
|
const $t = "software-info-model";
|
|
9244
|
-
let
|
|
9244
|
+
let Jr = class {
|
|
9245
9245
|
constructor(t, e, s) {
|
|
9246
9246
|
l(this, "id");
|
|
9247
9247
|
l(this, "logger");
|
|
@@ -9262,7 +9262,7 @@ let Qr = class {
|
|
|
9262
9262
|
this.logger.debug(`loading software-info ${this.id}`);
|
|
9263
9263
|
try {
|
|
9264
9264
|
const t = await Ro(), e = (t == null ? void 0 : t.nodes) || {};
|
|
9265
|
-
|
|
9265
|
+
re(() => {
|
|
9266
9266
|
const r = Object.keys(e).map((o) => e[o][0]).map((o) => ({
|
|
9267
9267
|
nodeName: o.nodeType,
|
|
9268
9268
|
kosVersion: o.kosVersion,
|
|
@@ -9275,13 +9275,13 @@ let Qr = class {
|
|
|
9275
9275
|
}
|
|
9276
9276
|
}
|
|
9277
9277
|
};
|
|
9278
|
-
|
|
9278
|
+
Jr = Mg([
|
|
9279
9279
|
P($t)
|
|
9280
|
-
],
|
|
9281
|
-
const
|
|
9280
|
+
], Jr);
|
|
9281
|
+
const Xr = {
|
|
9282
9282
|
registration: {
|
|
9283
9283
|
[$t]: {
|
|
9284
|
-
class:
|
|
9284
|
+
class: Jr,
|
|
9285
9285
|
singleton: !1
|
|
9286
9286
|
}
|
|
9287
9287
|
},
|
|
@@ -9297,7 +9297,7 @@ const Jr = {
|
|
|
9297
9297
|
group: "Services"
|
|
9298
9298
|
}), Ra = async ({ path: t }) => (Eg.debug("sending GET for state-bean"), await _g({
|
|
9299
9299
|
urlOverride: `${Pa}/api/kos/state/${t}`
|
|
9300
|
-
})),
|
|
9300
|
+
})), Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9301
9301
|
__proto__: null,
|
|
9302
9302
|
getStateBeanData: Ra
|
|
9303
9303
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9414,7 +9414,7 @@ const La = {
|
|
|
9414
9414
|
}), Pg = g.createLogger({
|
|
9415
9415
|
name: "state-prop-service",
|
|
9416
9416
|
group: "Services"
|
|
9417
|
-
}), Rg = async () => (Pg.debug("sending GET for state-prop"), await Cg({})),
|
|
9417
|
+
}), Rg = async () => (Pg.debug("sending GET for state-prop"), await Cg({})), $w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9418
9418
|
__proto__: null,
|
|
9419
9419
|
getStateProps: Rg
|
|
9420
9420
|
}, Symbol.toStringTag, { value: "Module" })), { URL: xo } = ue(), { getOne: ka } = ae.build({
|
|
@@ -9434,7 +9434,7 @@ const La = {
|
|
|
9434
9434
|
} catch (r) {
|
|
9435
9435
|
throw xt.error("Error fetching translations", r), r;
|
|
9436
9436
|
}
|
|
9437
|
-
},
|
|
9437
|
+
}, Ow = async () => {
|
|
9438
9438
|
xt.debug("getting localization descriptor");
|
|
9439
9439
|
const t = await ka({
|
|
9440
9440
|
urlOverride: `${xo}/api/system/kos/localization`
|
|
@@ -9481,7 +9481,7 @@ function Ua(t, e) {
|
|
|
9481
9481
|
Object.prototype.hasOwnProperty.call(e, r) && (typeof e[r] == "object" && e[r] !== null && typeof t[r] == "object" && t[r] !== null ? s[r] = Ua(t[r], e[r]) : s[r] = e[r]);
|
|
9482
9482
|
return s;
|
|
9483
9483
|
}
|
|
9484
|
-
const
|
|
9484
|
+
const eo = (t, e) => {
|
|
9485
9485
|
const s = /__(.*?)__/g, r = t.replace(
|
|
9486
9486
|
s,
|
|
9487
9487
|
(o, n) => (
|
|
@@ -9490,9 +9490,9 @@ const Xr = (t, e) => {
|
|
|
9490
9490
|
)
|
|
9491
9491
|
// Replace with the value from the data object or keep the original match if no value found
|
|
9492
9492
|
);
|
|
9493
|
-
return r === t ? r : s.test(r) ?
|
|
9493
|
+
return r === t ? r : s.test(r) ? eo(r, e) : r;
|
|
9494
9494
|
}, ws = (t, e, s) => {
|
|
9495
|
-
const r = /{{(.*?)}}/g, n =
|
|
9495
|
+
const r = /{{(.*?)}}/g, n = eo(t, e).replace(
|
|
9496
9496
|
r,
|
|
9497
9497
|
(a, c) => (
|
|
9498
9498
|
// Use the key to access the corresponding value in the data object
|
|
@@ -9500,7 +9500,7 @@ const Xr = (t, e) => {
|
|
|
9500
9500
|
)
|
|
9501
9501
|
// Replace with the value from the data object or keep the original match if no value found
|
|
9502
9502
|
);
|
|
9503
|
-
return
|
|
9503
|
+
return eo(n, e);
|
|
9504
9504
|
}, Mn = (t, e) => {
|
|
9505
9505
|
if (e.includes(":")) {
|
|
9506
9506
|
const [s, r] = e.split(":");
|
|
@@ -9508,7 +9508,7 @@ const Xr = (t, e) => {
|
|
|
9508
9508
|
} else
|
|
9509
9509
|
return { namespace: t, key: e };
|
|
9510
9510
|
};
|
|
9511
|
-
let
|
|
9511
|
+
let to = class {
|
|
9512
9512
|
constructor(t, e, s) {
|
|
9513
9513
|
l(this, "id");
|
|
9514
9514
|
l(this, "namespace");
|
|
@@ -9547,7 +9547,7 @@ let eo = class {
|
|
|
9547
9547
|
return Promise.resolve({});
|
|
9548
9548
|
}
|
|
9549
9549
|
}), s = await Promise.allSettled(e);
|
|
9550
|
-
|
|
9550
|
+
re(() => {
|
|
9551
9551
|
const r = s.reduce(
|
|
9552
9552
|
(o, n, i) => (n.status === "fulfilled" ? (this.logger.debug(`resolved ${t[i]}`, n.value), n.value && (o = Ua(o, n.value))) : this.logger.error(
|
|
9553
9553
|
`failed to load translation ${this.id} for ${t[i]}`
|
|
@@ -9603,14 +9603,14 @@ let eo = class {
|
|
|
9603
9603
|
);
|
|
9604
9604
|
}
|
|
9605
9605
|
};
|
|
9606
|
-
|
|
9606
|
+
to = Ng([
|
|
9607
9607
|
bo(),
|
|
9608
9608
|
P(Dt)
|
|
9609
|
-
],
|
|
9610
|
-
const
|
|
9609
|
+
], to);
|
|
9610
|
+
const so = {
|
|
9611
9611
|
registration: {
|
|
9612
9612
|
[Dt]: {
|
|
9613
|
-
class:
|
|
9613
|
+
class: to,
|
|
9614
9614
|
singleton: !1
|
|
9615
9615
|
}
|
|
9616
9616
|
},
|
|
@@ -9676,7 +9676,7 @@ let Ws = class {
|
|
|
9676
9676
|
if ((s = this.descriptor.namespaces) == null ? void 0 : s[t]) {
|
|
9677
9677
|
const r = Object.keys(
|
|
9678
9678
|
this.descriptor.namespaces[t].locales
|
|
9679
|
-
)[0], o = this.descriptor.namespaces[t].locales[r].defaultLocale, n =
|
|
9679
|
+
)[0], o = this.descriptor.namespaces[t].locales[r].defaultLocale, n = so.factory(`translation-${t}`)({
|
|
9680
9680
|
kosParentId: this.id,
|
|
9681
9681
|
namespace: t,
|
|
9682
9682
|
rootUrl: this.rootUrl,
|
|
@@ -9685,12 +9685,12 @@ let Ws = class {
|
|
|
9685
9685
|
descriptor: this.descriptor.namespaces[t].locales,
|
|
9686
9686
|
resolver: this.resolver
|
|
9687
9687
|
});
|
|
9688
|
-
return this.addModel(n), this.namespaces.includes(t) ||
|
|
9688
|
+
return this.addModel(n), this.namespaces.includes(t) || re(() => {
|
|
9689
9689
|
this.namespaces.push(t);
|
|
9690
9690
|
}), n;
|
|
9691
9691
|
} else {
|
|
9692
9692
|
this.logger.warn(`namespace ${t} not found in descriptor`);
|
|
9693
|
-
const r =
|
|
9693
|
+
const r = so.factory(`translation-${t}`)({
|
|
9694
9694
|
kosParentId: this.id,
|
|
9695
9695
|
namespace: t,
|
|
9696
9696
|
rootUrl: this.rootUrl,
|
|
@@ -9734,7 +9734,7 @@ const ke = {
|
|
|
9734
9734
|
type: Ct,
|
|
9735
9735
|
predicate: be(Ct),
|
|
9736
9736
|
factory: ie.Singleton.create(Ct)
|
|
9737
|
-
},
|
|
9737
|
+
}, Sw = {
|
|
9738
9738
|
set(t, e) {
|
|
9739
9739
|
const s = G.getContext(ke.type);
|
|
9740
9740
|
s && s.set(t, e);
|
|
@@ -9749,10 +9749,10 @@ const ke = {
|
|
|
9749
9749
|
return await fe(e), { translations: e };
|
|
9750
9750
|
}
|
|
9751
9751
|
};
|
|
9752
|
-
function
|
|
9752
|
+
function Dw(t) {
|
|
9753
9753
|
return t.troubles !== void 0 && t.troubles instanceof Array && t.troublesByType !== void 0 && typeof t.troublesByType == "object";
|
|
9754
9754
|
}
|
|
9755
|
-
const
|
|
9755
|
+
const Cw = (t, e) => {
|
|
9756
9756
|
const s = e.type;
|
|
9757
9757
|
return t[s] || (t[s] = []), t[s].push(e), t;
|
|
9758
9758
|
}, Gg = "kos-ws-event", Ba = es(
|
|
@@ -9806,12 +9806,12 @@ let Kt = class {
|
|
|
9806
9806
|
};
|
|
9807
9807
|
Ao([
|
|
9808
9808
|
k({
|
|
9809
|
-
topic: [
|
|
9809
|
+
topic: [ar.SEND]
|
|
9810
9810
|
})
|
|
9811
9811
|
], Kt.prototype, "handleSendEvent", 1);
|
|
9812
9812
|
Ao([
|
|
9813
9813
|
k({
|
|
9814
|
-
topic: [
|
|
9814
|
+
topic: [ar.RECEIVED]
|
|
9815
9815
|
})
|
|
9816
9816
|
], Kt.prototype, "handleReceiveEvent", 1);
|
|
9817
9817
|
Kt = Ao([
|
|
@@ -9826,7 +9826,7 @@ const _n = ye(), Wg = _n.debug === "true" || _n.debug === !0, Zg = "/api/system/
|
|
|
9826
9826
|
},
|
|
9827
9827
|
body: t
|
|
9828
9828
|
});
|
|
9829
|
-
},
|
|
9829
|
+
}, Pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9830
9830
|
__proto__: null,
|
|
9831
9831
|
sendCanvasData: Ha
|
|
9832
9832
|
}, Symbol.toStringTag, { value: "Module" })), Qg = (t, e, s) => t >> 5 << 5 | e >> 5 << 2 | s >> 6;
|
|
@@ -9847,7 +9847,7 @@ var Jg = Object.defineProperty, Xg = Object.getOwnPropertyDescriptor, Ka = (t, e
|
|
|
9847
9847
|
return r && o && Jg(e, s, o), o;
|
|
9848
9848
|
};
|
|
9849
9849
|
const za = "canvas-renderer-model";
|
|
9850
|
-
function
|
|
9850
|
+
function Nr(t) {
|
|
9851
9851
|
return typeof t.onDone == "function";
|
|
9852
9852
|
}
|
|
9853
9853
|
let Zs = class {
|
|
@@ -9925,7 +9925,7 @@ let Zs = class {
|
|
|
9925
9925
|
}
|
|
9926
9926
|
isOneShotDone() {
|
|
9927
9927
|
var t, e;
|
|
9928
|
-
return
|
|
9928
|
+
return Nr(this._renderer) && ((e = (t = this._renderer).isOneShot) == null ? void 0 : e.call(t)) === !0 && this._renderer.isOneShotDone;
|
|
9929
9929
|
}
|
|
9930
9930
|
startStreaming() {
|
|
9931
9931
|
var t, e, s, r;
|
|
@@ -9939,8 +9939,8 @@ let Zs = class {
|
|
|
9939
9939
|
return;
|
|
9940
9940
|
}
|
|
9941
9941
|
this.isStreaming = !0, this._renderer.reset(), (e = (t = this._renderer).play) == null || e.call(t);
|
|
9942
|
-
const o =
|
|
9943
|
-
|
|
9942
|
+
const o = Nr(this._renderer);
|
|
9943
|
+
Nr(this._renderer) && this._renderer.onDone(() => {
|
|
9944
9944
|
var c, d, u;
|
|
9945
9945
|
this.logger.debug(`Renderer completed for ${this.id}`), B("/canvas/renderer/completed", {
|
|
9946
9946
|
endpoint: this.endpointName,
|
|
@@ -10491,6 +10491,127 @@ class ap extends Ze {
|
|
|
10491
10491
|
this.ctx.putImageData(o, 0, 0);
|
|
10492
10492
|
}
|
|
10493
10493
|
}
|
|
10494
|
+
class cp {
|
|
10495
|
+
constructor(e, s) {
|
|
10496
|
+
l(this, "baseRenderer");
|
|
10497
|
+
l(this, "overlayIcons", /* @__PURE__ */ new Map());
|
|
10498
|
+
l(this, "overlayConfigs");
|
|
10499
|
+
l(this, "loadedIcons", /* @__PURE__ */ new Set());
|
|
10500
|
+
l(this, "canvas");
|
|
10501
|
+
l(this, "ctx");
|
|
10502
|
+
l(this, "persistOverlaysOnComplete");
|
|
10503
|
+
l(this, "baseRendererCompleted", !1);
|
|
10504
|
+
l(this, "completionCallback", null);
|
|
10505
|
+
l(this, "hasSignaledCompletion", !1);
|
|
10506
|
+
this.baseRenderer = s(e.baseRenderer.type, e.baseRenderer.data), this.overlayConfigs = e.overlays, this.persistOverlaysOnComplete = e.persistOverlaysOnComplete !== !1, this.canvas = document.createElement("canvas");
|
|
10507
|
+
const r = this.canvas.getContext("2d");
|
|
10508
|
+
if (!r)
|
|
10509
|
+
throw new Error("2D canvas not supported");
|
|
10510
|
+
this.ctx = r, this.loadOverlayImages(), "onDone" in this.baseRenderer && typeof this.baseRenderer.onDone == "function" && this.baseRenderer.onDone(() => {
|
|
10511
|
+
this.baseRendererCompleted = !0, !this.persistOverlaysOnComplete && this.completionCallback && this.completionCallback();
|
|
10512
|
+
});
|
|
10513
|
+
}
|
|
10514
|
+
async loadOverlayImages() {
|
|
10515
|
+
for (const e of this.overlayConfigs) {
|
|
10516
|
+
const s = new Image();
|
|
10517
|
+
s.crossOrigin = "anonymous", s.onload = () => {
|
|
10518
|
+
this.loadedIcons.add(e.src);
|
|
10519
|
+
}, s.onerror = (r) => {
|
|
10520
|
+
console.error(`Failed to load overlay image: ${e.src}`, r);
|
|
10521
|
+
}, s.src = e.src, this.overlayIcons.set(e.src, s);
|
|
10522
|
+
}
|
|
10523
|
+
}
|
|
10524
|
+
calculateOverlayPosition(e, s, r) {
|
|
10525
|
+
let o, n;
|
|
10526
|
+
if (typeof e.position == "string")
|
|
10527
|
+
switch (e.position) {
|
|
10528
|
+
case "top-left":
|
|
10529
|
+
o = 0, n = 0;
|
|
10530
|
+
break;
|
|
10531
|
+
case "top-center":
|
|
10532
|
+
o = (s - e.size) / 2, n = 0;
|
|
10533
|
+
break;
|
|
10534
|
+
case "top-right":
|
|
10535
|
+
o = s - e.size, n = 0;
|
|
10536
|
+
break;
|
|
10537
|
+
case "center-left":
|
|
10538
|
+
o = 0, n = (r - e.size) / 2;
|
|
10539
|
+
break;
|
|
10540
|
+
case "center":
|
|
10541
|
+
o = (s - e.size) / 2, n = (r - e.size) / 2;
|
|
10542
|
+
break;
|
|
10543
|
+
case "center-right":
|
|
10544
|
+
o = s - e.size, n = (r - e.size) / 2;
|
|
10545
|
+
break;
|
|
10546
|
+
case "bottom-left":
|
|
10547
|
+
o = 0, n = r - e.size;
|
|
10548
|
+
break;
|
|
10549
|
+
case "bottom-center":
|
|
10550
|
+
o = (s - e.size) / 2, n = r - e.size;
|
|
10551
|
+
break;
|
|
10552
|
+
case "bottom-right":
|
|
10553
|
+
o = s - e.size, n = r - e.size;
|
|
10554
|
+
break;
|
|
10555
|
+
default:
|
|
10556
|
+
o = 0, n = 0;
|
|
10557
|
+
}
|
|
10558
|
+
else
|
|
10559
|
+
o = e.position.x, n = e.position.y;
|
|
10560
|
+
return e.offset && (o += e.offset.x || 0, n += e.offset.y || 0), { x: o, y: n };
|
|
10561
|
+
}
|
|
10562
|
+
reset() {
|
|
10563
|
+
this.baseRenderer.reset(), this.baseRendererCompleted = !1, this.hasSignaledCompletion = !1;
|
|
10564
|
+
}
|
|
10565
|
+
renderFrame(e, s) {
|
|
10566
|
+
if (this.canvas.width = e, this.canvas.height = s, this.ctx.clearRect(0, 0, e, s), this.baseRendererCompleted && this.persistOverlaysOnComplete)
|
|
10567
|
+
this.renderOverlays(e, s);
|
|
10568
|
+
else {
|
|
10569
|
+
this.baseRenderer.renderFrame(e, s);
|
|
10570
|
+
const r = this.baseRenderer.readPixels(e, s);
|
|
10571
|
+
if (r && r.length > 0) {
|
|
10572
|
+
const o = new ImageData(r, e, s);
|
|
10573
|
+
this.ctx.putImageData(o, 0, 0);
|
|
10574
|
+
}
|
|
10575
|
+
this.renderOverlays(e, s);
|
|
10576
|
+
}
|
|
10577
|
+
}
|
|
10578
|
+
renderOverlays(e, s) {
|
|
10579
|
+
for (const r of this.overlayConfigs) {
|
|
10580
|
+
if (!r.persistent && r.persistent !== void 0)
|
|
10581
|
+
continue;
|
|
10582
|
+
const o = this.overlayIcons.get(r.src);
|
|
10583
|
+
if (!o || !this.loadedIcons.has(r.src))
|
|
10584
|
+
continue;
|
|
10585
|
+
const n = this.calculateOverlayPosition(r, e, s);
|
|
10586
|
+
this.ctx.save(), r.opacity !== void 0 && (this.ctx.globalAlpha = Math.max(0, Math.min(1, r.opacity))), this.ctx.drawImage(
|
|
10587
|
+
o,
|
|
10588
|
+
n.x,
|
|
10589
|
+
n.y,
|
|
10590
|
+
r.size,
|
|
10591
|
+
r.size
|
|
10592
|
+
), this.ctx.restore();
|
|
10593
|
+
}
|
|
10594
|
+
}
|
|
10595
|
+
readPixels(e, s) {
|
|
10596
|
+
return this.ctx.getImageData(0, 0, e, s).data;
|
|
10597
|
+
}
|
|
10598
|
+
play() {
|
|
10599
|
+
this.baseRenderer.play && this.baseRenderer.play();
|
|
10600
|
+
}
|
|
10601
|
+
pause() {
|
|
10602
|
+
this.baseRenderer.pause && this.baseRenderer.pause();
|
|
10603
|
+
}
|
|
10604
|
+
dispose() {
|
|
10605
|
+
this.overlayIcons.clear(), this.loadedIcons.clear(), this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height), this.canvas.remove(), this.baseRenderer.dispose && this.baseRenderer.dispose();
|
|
10606
|
+
}
|
|
10607
|
+
// DoneAware implementation
|
|
10608
|
+
onDone(e) {
|
|
10609
|
+
this.completionCallback = e, this.hasSignaledCompletion && e();
|
|
10610
|
+
}
|
|
10611
|
+
isOneShot() {
|
|
10612
|
+
return this.persistOverlaysOnComplete ? !1 : "isOneShot" in this.baseRenderer && typeof this.baseRenderer.isOneShot == "function" ? this.baseRenderer.isOneShot() : !1;
|
|
10613
|
+
}
|
|
10614
|
+
}
|
|
10494
10615
|
class Wa extends Ze {
|
|
10495
10616
|
constructor(s) {
|
|
10496
10617
|
super();
|
|
@@ -10561,12 +10682,12 @@ class Wa extends Ze {
|
|
|
10561
10682
|
this.drawScrollingImage(s, r, o, i), this.checkScrollCompletion(s, r, o, i);
|
|
10562
10683
|
}
|
|
10563
10684
|
drawScrollingImage(s, r, o, n) {
|
|
10564
|
-
var h, f, p, y, b, w, M, F,
|
|
10685
|
+
var h, f, p, y, b, w, M, F, se;
|
|
10565
10686
|
const i = this.img.width / this.img.height;
|
|
10566
10687
|
let a, c;
|
|
10567
10688
|
((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) : o === "left" || o === "right" ? (c = r, a = c * i) : (a = s, c = a / i) : (a = ((y = this.scrollConfig) == null ? void 0 : y.width) || s, c = ((b = this.scrollConfig) == null ? void 0 : b.height) || r);
|
|
10568
10689
|
let d, u;
|
|
10569
|
-
switch (o === "left" || o === "right" ? (d = 0, ((w = this.scrollConfig) == null ? void 0 : w.offsetY) === "center" || ((M = this.scrollConfig) == null ? void 0 : M.offsetY) === void 0 ? u = (r - c) / 2 : u = this.scrollConfig.offsetY) : (((F = this.scrollConfig) == null ? void 0 : F.offsetX) === "center" || ((
|
|
10690
|
+
switch (o === "left" || o === "right" ? (d = 0, ((w = this.scrollConfig) == null ? void 0 : w.offsetY) === "center" || ((M = this.scrollConfig) == null ? void 0 : M.offsetY) === void 0 ? u = (r - c) / 2 : u = this.scrollConfig.offsetY) : (((F = this.scrollConfig) == null ? void 0 : F.offsetX) === "center" || ((se = this.scrollConfig) == null ? void 0 : se.offsetX) === void 0 ? d = (s - a) / 2 : d = this.scrollConfig.offsetX, u = 0), o) {
|
|
10570
10691
|
case "left": {
|
|
10571
10692
|
const R = s - this.position;
|
|
10572
10693
|
if (R < s && R > -a && this.ctx.drawImage(this.img, R, u, a, c), this.loopConfig && this.pauseDuration === 0 && this.position > n) {
|
|
@@ -10692,7 +10813,7 @@ class Wa extends Ze {
|
|
|
10692
10813
|
this.img.removeAttribute("src"), this.completionCallback = null, this.originalSvgData = null;
|
|
10693
10814
|
}
|
|
10694
10815
|
}
|
|
10695
|
-
class
|
|
10816
|
+
class lp extends Ze {
|
|
10696
10817
|
constructor(s) {
|
|
10697
10818
|
super();
|
|
10698
10819
|
l(this, "text");
|
|
@@ -10875,7 +10996,7 @@ class cp extends Ze {
|
|
|
10875
10996
|
this.completionCallback = null;
|
|
10876
10997
|
}
|
|
10877
10998
|
}
|
|
10878
|
-
class
|
|
10999
|
+
class dp {
|
|
10879
11000
|
constructor(e) {
|
|
10880
11001
|
l(this, "patterns");
|
|
10881
11002
|
l(this, "currentPatternIndex", 0);
|
|
@@ -10908,7 +11029,7 @@ class lp {
|
|
|
10908
11029
|
this.currentRenderer && ((i = (n = this.currentRenderer).dispose) == null || i.call(n));
|
|
10909
11030
|
const r = this.patternOverrides[e] ?? {}, o = { ...s.data, ...r };
|
|
10910
11031
|
try {
|
|
10911
|
-
this.currentRenderer =
|
|
11032
|
+
this.currentRenderer = Js({
|
|
10912
11033
|
mode: s.type,
|
|
10913
11034
|
data: o
|
|
10914
11035
|
}), this.currentRenderer && this.isDoneAware(this.currentRenderer) && this.currentRenderer.onDone(() => {
|
|
@@ -10964,8 +11085,8 @@ class lp {
|
|
|
10964
11085
|
this.patternStore = e, this.patterns.length > 0 && this.loadCurrentPattern();
|
|
10965
11086
|
}
|
|
10966
11087
|
}
|
|
10967
|
-
const
|
|
10968
|
-
class
|
|
11088
|
+
const up = Lo(Ze);
|
|
11089
|
+
class hp extends up {
|
|
10969
11090
|
constructor(s = { r: 0, g: 0, b: 0 }) {
|
|
10970
11091
|
super();
|
|
10971
11092
|
l(this, "color");
|
|
@@ -10982,7 +11103,7 @@ class up extends dp {
|
|
|
10982
11103
|
this.isOneShotDone || (this.canvas.width = s, this.canvas.height = r, this.ctx.fillStyle = this.color, this.ctx.fillRect(0, 0, s, r), this.signalDoneIfNeeded());
|
|
10983
11104
|
}
|
|
10984
11105
|
}
|
|
10985
|
-
class
|
|
11106
|
+
class fp extends Ze {
|
|
10986
11107
|
/**
|
|
10987
11108
|
* Constructs a sweep renderer.
|
|
10988
11109
|
*
|
|
@@ -11049,7 +11170,7 @@ class hp extends Ze {
|
|
|
11049
11170
|
}
|
|
11050
11171
|
}
|
|
11051
11172
|
const Tn = /* @__PURE__ */ new Map();
|
|
11052
|
-
|
|
11173
|
+
ur(te, {
|
|
11053
11174
|
register(t, e) {
|
|
11054
11175
|
Tn.set(t, e);
|
|
11055
11176
|
},
|
|
@@ -11060,44 +11181,74 @@ dr(oe, {
|
|
|
11060
11181
|
});
|
|
11061
11182
|
I.canvas.registerRenderer("video", np);
|
|
11062
11183
|
I.canvas.registerRenderer("video-basic", Va);
|
|
11063
|
-
I[
|
|
11064
|
-
|
|
11065
|
-
|
|
11184
|
+
I[te].register(
|
|
11185
|
+
"image-static",
|
|
11186
|
+
Ya
|
|
11187
|
+
);
|
|
11188
|
+
I[te].register(
|
|
11189
|
+
"image-scrolling",
|
|
11190
|
+
Wa
|
|
11191
|
+
);
|
|
11192
|
+
const gp = class {
|
|
11066
11193
|
constructor(t) {
|
|
11067
11194
|
var e;
|
|
11068
11195
|
return (e = t.scroll) != null && e.enabled ? new Wa(t) : new Ya(t);
|
|
11069
11196
|
}
|
|
11070
11197
|
};
|
|
11071
|
-
I[
|
|
11072
|
-
|
|
11198
|
+
I[te].register(
|
|
11199
|
+
"image",
|
|
11200
|
+
gp
|
|
11201
|
+
);
|
|
11202
|
+
I[te].register(
|
|
11073
11203
|
"color",
|
|
11074
|
-
|
|
11204
|
+
hp
|
|
11075
11205
|
);
|
|
11076
|
-
I[
|
|
11077
|
-
I[
|
|
11078
|
-
I[
|
|
11206
|
+
I[te].register("matrix", ap);
|
|
11207
|
+
I[te].register("sweep", fp);
|
|
11208
|
+
I[te].register(
|
|
11079
11209
|
"gradient",
|
|
11080
11210
|
rp
|
|
11081
11211
|
);
|
|
11082
|
-
I[
|
|
11083
|
-
I[
|
|
11084
|
-
|
|
11085
|
-
|
|
11212
|
+
I[te].register("drop", tp);
|
|
11213
|
+
I[te].register(
|
|
11214
|
+
"sequence",
|
|
11215
|
+
dp
|
|
11216
|
+
);
|
|
11217
|
+
I[te].register(
|
|
11218
|
+
"text",
|
|
11219
|
+
lp
|
|
11220
|
+
);
|
|
11221
|
+
const pp = class {
|
|
11222
|
+
constructor(t) {
|
|
11223
|
+
const e = (s, r) => {
|
|
11224
|
+
const o = Js({ mode: s, data: r });
|
|
11225
|
+
if (!o)
|
|
11226
|
+
throw new Error(`Failed to create renderer of type: ${s}`);
|
|
11227
|
+
return o;
|
|
11228
|
+
};
|
|
11229
|
+
return new cp(t, e);
|
|
11230
|
+
}
|
|
11231
|
+
};
|
|
11232
|
+
I[te].register(
|
|
11233
|
+
"overlay",
|
|
11234
|
+
pp
|
|
11235
|
+
);
|
|
11236
|
+
const Js = ({
|
|
11086
11237
|
mode: t,
|
|
11087
11238
|
data: e
|
|
11088
11239
|
}) => {
|
|
11089
|
-
const s = I[
|
|
11240
|
+
const s = I[te].execute(t, e);
|
|
11090
11241
|
if (s)
|
|
11091
11242
|
return s;
|
|
11092
11243
|
throw new Error(`Unknown mode: ${t}`);
|
|
11093
11244
|
};
|
|
11094
|
-
var
|
|
11095
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11245
|
+
var mp = Object.defineProperty, yp = Object.getOwnPropertyDescriptor, Mt = (t, e, s, r) => {
|
|
11246
|
+
for (var o = r > 1 ? void 0 : r ? yp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11096
11247
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11097
|
-
return r && o &&
|
|
11248
|
+
return r && o && mp(e, s, o), o;
|
|
11098
11249
|
};
|
|
11099
11250
|
const Za = "canvas-dispatcher-model";
|
|
11100
|
-
function
|
|
11251
|
+
function bp(t) {
|
|
11101
11252
|
if (t = t.replace(/^#/, ""), t.length === 3 && (t = t.split("").map((s) => s + s).join("")), t.length !== 6)
|
|
11102
11253
|
return null;
|
|
11103
11254
|
const e = parseInt(t, 16);
|
|
@@ -11164,14 +11315,14 @@ let Fe = class {
|
|
|
11164
11315
|
const n = this._patterns.get(s), i = n.type, a = t.body || {};
|
|
11165
11316
|
this.data = { ...n.data, ...a };
|
|
11166
11317
|
const c = i === "sequence" ? { ...this.data, patternStore: this._patterns } : this.data;
|
|
11167
|
-
o.renderer =
|
|
11318
|
+
o.renderer = Js({
|
|
11168
11319
|
mode: i,
|
|
11169
11320
|
data: c
|
|
11170
11321
|
}), o.setClearOnComplete(n.clearOnComplete), o.startStreaming(), (h = e.status) == null || h.call(e, 200).send({ status: "OK" });
|
|
11171
11322
|
}
|
|
11172
11323
|
async handleColorApplication(t, e) {
|
|
11173
11324
|
var d, u, h;
|
|
11174
|
-
const s = t.params.color, r =
|
|
11325
|
+
const s = t.params.color, r = bp(s);
|
|
11175
11326
|
if (!r) {
|
|
11176
11327
|
(d = e.status) == null || d.call(e, 400).send({ error: "Invalid color format" });
|
|
11177
11328
|
return;
|
|
@@ -11182,7 +11333,7 @@ let Fe = class {
|
|
|
11182
11333
|
return;
|
|
11183
11334
|
}
|
|
11184
11335
|
const { r: i, b: a, g: c } = r;
|
|
11185
|
-
n.renderer =
|
|
11336
|
+
n.renderer = Js({
|
|
11186
11337
|
mode: "color",
|
|
11187
11338
|
data: {
|
|
11188
11339
|
r: i,
|
|
@@ -11217,16 +11368,16 @@ Mt([
|
|
|
11217
11368
|
Ee
|
|
11218
11369
|
], Fe.prototype, "_endpointRenderers", 2);
|
|
11219
11370
|
Mt([
|
|
11220
|
-
|
|
11371
|
+
fr("/api/ui/canvas/patterns")
|
|
11221
11372
|
], Fe.prototype, "handlePatternsPost", 1);
|
|
11222
11373
|
Mt([
|
|
11223
|
-
|
|
11374
|
+
fr("/api/ui/canvas/pattern/:endpoint/:pattern")
|
|
11224
11375
|
], Fe.prototype, "handlePatternApplication", 1);
|
|
11225
11376
|
Mt([
|
|
11226
|
-
|
|
11377
|
+
fr("/api/ui/canvas/color/:endpoint/:color")
|
|
11227
11378
|
], Fe.prototype, "handleColorApplication", 1);
|
|
11228
11379
|
Mt([
|
|
11229
|
-
|
|
11380
|
+
fr("/api/ui/canvas/endpoint")
|
|
11230
11381
|
], Fe.prototype, "handleEndpointCreation", 1);
|
|
11231
11382
|
Fe = Mt([
|
|
11232
11383
|
P(Za)
|
|
@@ -11236,8 +11387,8 @@ const zt = new Pe({
|
|
|
11236
11387
|
type: Za
|
|
11237
11388
|
}), { URL: ko } = ue(), { getOne: Qa } = ae.build({
|
|
11238
11389
|
basePath: `${ko}/api/device`
|
|
11239
|
-
}),
|
|
11240
|
-
|
|
11390
|
+
}), Xs = g.createLogger({ name: "device-service", group: "Services" }), Ja = async () => {
|
|
11391
|
+
Xs.debug("sending GET for device serial number");
|
|
11241
11392
|
try {
|
|
11242
11393
|
const t = await Qa({
|
|
11243
11394
|
urlOverride: `${ko}/api/kos/device/serialNumber`
|
|
@@ -11245,11 +11396,11 @@ const zt = new Pe({
|
|
|
11245
11396
|
return [void 0, t == null ? void 0 : t.data.serialNumber];
|
|
11246
11397
|
} catch (t) {
|
|
11247
11398
|
if (t instanceof pe)
|
|
11248
|
-
return
|
|
11399
|
+
return Xs.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
|
|
11249
11400
|
}
|
|
11250
11401
|
return ["unknownError", void 0];
|
|
11251
11402
|
}, Xa = async () => {
|
|
11252
|
-
|
|
11403
|
+
Xs.debug("sending GET for device details");
|
|
11253
11404
|
try {
|
|
11254
11405
|
const t = await Qa({
|
|
11255
11406
|
urlOverride: `${ko}/api/kos/device`
|
|
@@ -11257,21 +11408,21 @@ const zt = new Pe({
|
|
|
11257
11408
|
return t ? [void 0, t.data] : ["unknownError", void 0];
|
|
11258
11409
|
} catch (t) {
|
|
11259
11410
|
if (t instanceof pe)
|
|
11260
|
-
return
|
|
11411
|
+
return Xs.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
|
|
11261
11412
|
}
|
|
11262
11413
|
return ["unknownError", void 0];
|
|
11263
|
-
},
|
|
11414
|
+
}, Rw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11264
11415
|
__proto__: null,
|
|
11265
11416
|
getDeviceDetails: Xa,
|
|
11266
11417
|
getSerialNumber: Ja
|
|
11267
11418
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11268
|
-
var
|
|
11269
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11419
|
+
var wp = Object.defineProperty, vp = Object.getOwnPropertyDescriptor, ec = (t, e, s, r) => {
|
|
11420
|
+
for (var o = r > 1 ? void 0 : r ? vp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11270
11421
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11271
|
-
return r && o &&
|
|
11422
|
+
return r && o && wp(e, s, o), o;
|
|
11272
11423
|
};
|
|
11273
|
-
const tc = "device-model",
|
|
11274
|
-
let
|
|
11424
|
+
const tc = "device-model", Mp = "/kos/criticalData/changed", _p = "/kos/criticalData/available";
|
|
11425
|
+
let er = class {
|
|
11275
11426
|
constructor(t, e, s) {
|
|
11276
11427
|
l(this, "id");
|
|
11277
11428
|
l(this, "logger");
|
|
@@ -11342,21 +11493,21 @@ let Xs = class {
|
|
|
11342
11493
|
};
|
|
11343
11494
|
ec([
|
|
11344
11495
|
k({
|
|
11345
|
-
topic: [
|
|
11496
|
+
topic: [Mp, _p],
|
|
11346
11497
|
websocket: !0
|
|
11347
11498
|
})
|
|
11348
|
-
],
|
|
11349
|
-
|
|
11499
|
+
], er.prototype, "handleCriticalDataChanged", 1);
|
|
11500
|
+
er = ec([
|
|
11350
11501
|
P(tc)
|
|
11351
|
-
],
|
|
11502
|
+
], er);
|
|
11352
11503
|
const ro = new Pe({
|
|
11353
|
-
class:
|
|
11504
|
+
class: er,
|
|
11354
11505
|
type: tc
|
|
11355
11506
|
});
|
|
11356
|
-
var
|
|
11357
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11507
|
+
var Ep = Object.defineProperty, Tp = Object.getOwnPropertyDescriptor, Ip = (t, e, s, r) => {
|
|
11508
|
+
for (var o = r > 1 ? void 0 : r ? Tp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11358
11509
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11359
|
-
return r && o &&
|
|
11510
|
+
return r && o && Ep(e, s, o), o;
|
|
11360
11511
|
};
|
|
11361
11512
|
const sc = "network-interface-model";
|
|
11362
11513
|
let oo = class {
|
|
@@ -11386,38 +11537,38 @@ let oo = class {
|
|
|
11386
11537
|
this.logger.debug(`loading network-interface ${this.id}`);
|
|
11387
11538
|
}
|
|
11388
11539
|
};
|
|
11389
|
-
oo =
|
|
11540
|
+
oo = Ip([
|
|
11390
11541
|
P(sc)
|
|
11391
11542
|
], oo);
|
|
11392
11543
|
const rc = new Te({
|
|
11393
11544
|
class: oo,
|
|
11394
11545
|
type: sc
|
|
11395
|
-
}), { URL:
|
|
11396
|
-
basePath: `${
|
|
11546
|
+
}), { URL: $p } = ue(), { getAll: Op } = ae.build({
|
|
11547
|
+
basePath: `${$p}/api/kos/network/interfaces`
|
|
11397
11548
|
}), In = g.createLogger({
|
|
11398
11549
|
name: "network-interface-service",
|
|
11399
11550
|
group: "Services"
|
|
11400
11551
|
}), oc = async () => {
|
|
11401
11552
|
In.debug("sending GET for copy-logs");
|
|
11402
11553
|
try {
|
|
11403
|
-
const t = await
|
|
11554
|
+
const t = await Op({});
|
|
11404
11555
|
return [void 0, t == null ? void 0 : t.data];
|
|
11405
11556
|
} catch (t) {
|
|
11406
11557
|
if (t instanceof pe)
|
|
11407
11558
|
return In.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
|
|
11408
11559
|
}
|
|
11409
11560
|
return ["unknownError", void 0];
|
|
11410
|
-
},
|
|
11561
|
+
}, xw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11411
11562
|
__proto__: null,
|
|
11412
11563
|
getNetworkInterfaces: oc
|
|
11413
11564
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11414
|
-
var
|
|
11415
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11565
|
+
var Sp = Object.defineProperty, Dp = Object.getOwnPropertyDescriptor, nc = (t, e, s, r) => {
|
|
11566
|
+
for (var o = r > 1 ? void 0 : r ? Dp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11416
11567
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11417
|
-
return r && o &&
|
|
11568
|
+
return r && o && Sp(e, s, o), o;
|
|
11418
11569
|
};
|
|
11419
11570
|
const ic = "network-interface-container-model";
|
|
11420
|
-
let
|
|
11571
|
+
let tr = class {
|
|
11421
11572
|
constructor(t, e, s) {
|
|
11422
11573
|
l(this, "id");
|
|
11423
11574
|
l(this, "logger");
|
|
@@ -11472,32 +11623,32 @@ let er = class {
|
|
|
11472
11623
|
};
|
|
11473
11624
|
nc([
|
|
11474
11625
|
Ee
|
|
11475
|
-
],
|
|
11476
|
-
|
|
11626
|
+
], tr.prototype, "_models", 2);
|
|
11627
|
+
tr = nc([
|
|
11477
11628
|
P(ic)
|
|
11478
|
-
],
|
|
11479
|
-
const
|
|
11480
|
-
class:
|
|
11629
|
+
], tr);
|
|
11630
|
+
const sr = new Pe({
|
|
11631
|
+
class: tr,
|
|
11481
11632
|
type: ic
|
|
11482
11633
|
});
|
|
11483
|
-
|
|
11484
|
-
const { URL:
|
|
11485
|
-
basePath: `${
|
|
11634
|
+
sr.addRelatedModel(rc);
|
|
11635
|
+
const { URL: Cp } = ue(), { getAll: Pp } = ae.build({
|
|
11636
|
+
basePath: `${Cp}/api/kos/storage/devices`
|
|
11486
11637
|
}), $n = g.createLogger({
|
|
11487
11638
|
name: "storage-device-service",
|
|
11488
11639
|
group: "Services"
|
|
11489
11640
|
}), ac = async () => {
|
|
11490
11641
|
$n.debug("sending GET for storage-device");
|
|
11491
|
-
const t = await
|
|
11642
|
+
const t = await Pp({});
|
|
11492
11643
|
return !(t != null && t.data) || t.status !== 200 ? ($n.error("Failed to retrieve storage-device data", t), []) : t.data;
|
|
11493
|
-
},
|
|
11644
|
+
}, Aw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11494
11645
|
__proto__: null,
|
|
11495
11646
|
getStorageDevices: ac
|
|
11496
11647
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11497
|
-
var
|
|
11498
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11648
|
+
var Rp = Object.defineProperty, xp = Object.getOwnPropertyDescriptor, Ap = (t, e, s, r) => {
|
|
11649
|
+
for (var o = r > 1 ? void 0 : r ? xp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11499
11650
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11500
|
-
return r && o &&
|
|
11651
|
+
return r && o && Rp(e, s, o), o;
|
|
11501
11652
|
};
|
|
11502
11653
|
const cc = "storage-device-model";
|
|
11503
11654
|
let no = class {
|
|
@@ -11526,7 +11677,7 @@ let no = class {
|
|
|
11526
11677
|
this.logger.debug(`loading storage-device ${this.id}`);
|
|
11527
11678
|
}
|
|
11528
11679
|
};
|
|
11529
|
-
no =
|
|
11680
|
+
no = Ap([
|
|
11530
11681
|
bo(),
|
|
11531
11682
|
P(cc)
|
|
11532
11683
|
], no);
|
|
@@ -11534,12 +11685,12 @@ const io = new Te({
|
|
|
11534
11685
|
class: no,
|
|
11535
11686
|
type: cc
|
|
11536
11687
|
});
|
|
11537
|
-
var
|
|
11538
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11688
|
+
var Lp = Object.defineProperty, kp = Object.getOwnPropertyDescriptor, Fo = (t, e, s, r) => {
|
|
11689
|
+
for (var o = r > 1 ? void 0 : r ? kp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11539
11690
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11540
|
-
return r && o &&
|
|
11691
|
+
return r && o && Lp(e, s, o), o;
|
|
11541
11692
|
};
|
|
11542
|
-
const lc = "storage-device-container-model",
|
|
11693
|
+
const lc = "storage-device-container-model", Fp = "/kos/storage";
|
|
11543
11694
|
let Gt = class {
|
|
11544
11695
|
constructor(t, e, s) {
|
|
11545
11696
|
l(this, "id");
|
|
@@ -11613,7 +11764,7 @@ Fo([
|
|
|
11613
11764
|
], Gt.prototype, "_models", 2);
|
|
11614
11765
|
Fo([
|
|
11615
11766
|
k({
|
|
11616
|
-
topic:
|
|
11767
|
+
topic: Fp,
|
|
11617
11768
|
websocket: !0
|
|
11618
11769
|
})
|
|
11619
11770
|
], Gt.prototype, "handleStorageAvailability", 1);
|
|
@@ -11625,19 +11776,19 @@ const Vt = new Pe({
|
|
|
11625
11776
|
type: lc
|
|
11626
11777
|
});
|
|
11627
11778
|
Vt.addRelatedModel(io);
|
|
11628
|
-
const { URL: No } = ue(), { getAll:
|
|
11779
|
+
const { URL: No } = ue(), { getAll: Np, postModel: Up } = ae.build({
|
|
11629
11780
|
basePath: `${No}/api/kos/update/available`
|
|
11630
11781
|
}), On = g.createLogger({
|
|
11631
11782
|
name: "usb-update-service",
|
|
11632
11783
|
group: "Services"
|
|
11633
11784
|
}), dc = async () => {
|
|
11634
11785
|
On.debug("sending GET for usb-update");
|
|
11635
|
-
const t = await
|
|
11786
|
+
const t = await Np({
|
|
11636
11787
|
urlOverride: `${No}/api/kos/update/available`
|
|
11637
11788
|
});
|
|
11638
11789
|
return !(t != null && t.data) || (t == null ? void 0 : t.status) !== 200 ? (On.error("Failed to retrieve usb-update data", t), []) : t.data;
|
|
11639
11790
|
}, uc = async (t, e, s) => {
|
|
11640
|
-
const r = await
|
|
11791
|
+
const r = await Up({
|
|
11641
11792
|
model: {
|
|
11642
11793
|
manifestId: t,
|
|
11643
11794
|
deviceId: e
|
|
@@ -11648,18 +11799,18 @@ const { URL: No } = ue(), { getAll: kp, postModel: Fp } = ae.build({
|
|
|
11648
11799
|
if (!(r != null && r.data))
|
|
11649
11800
|
throw new Error("No response from server");
|
|
11650
11801
|
return r.data;
|
|
11651
|
-
},
|
|
11802
|
+
}, Lw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11652
11803
|
__proto__: null,
|
|
11653
11804
|
getAvailableUpdates: dc,
|
|
11654
11805
|
installUpdate: uc
|
|
11655
11806
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11656
|
-
var
|
|
11657
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11807
|
+
var jp = Object.defineProperty, Bp = Object.getOwnPropertyDescriptor, hc = (t, e, s, r) => {
|
|
11808
|
+
for (var o = r > 1 ? void 0 : r ? Bp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11658
11809
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11659
|
-
return r && o &&
|
|
11810
|
+
return r && o && jp(e, s, o), o;
|
|
11660
11811
|
};
|
|
11661
11812
|
const fc = "usb-update-model";
|
|
11662
|
-
let
|
|
11813
|
+
let rr = class {
|
|
11663
11814
|
constructor(t, e, s) {
|
|
11664
11815
|
l(this, "id");
|
|
11665
11816
|
l(this, "active");
|
|
@@ -11698,18 +11849,18 @@ let sr = class {
|
|
|
11698
11849
|
};
|
|
11699
11850
|
hc([
|
|
11700
11851
|
Tc()
|
|
11701
|
-
],
|
|
11702
|
-
|
|
11852
|
+
], rr.prototype, "install", 1);
|
|
11853
|
+
rr = hc([
|
|
11703
11854
|
P(fc)
|
|
11704
|
-
],
|
|
11855
|
+
], rr);
|
|
11705
11856
|
const gc = new Te({
|
|
11706
|
-
class:
|
|
11857
|
+
class: rr,
|
|
11707
11858
|
type: fc
|
|
11708
11859
|
});
|
|
11709
|
-
var
|
|
11710
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
11860
|
+
var Hp = Object.defineProperty, Kp = Object.getOwnPropertyDescriptor, Mr = (t, e, s, r) => {
|
|
11861
|
+
for (var o = r > 1 ? void 0 : r ? Kp(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
11711
11862
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
11712
|
-
return r && o &&
|
|
11863
|
+
return r && o && Hp(e, s, o), o;
|
|
11713
11864
|
};
|
|
11714
11865
|
const pc = "usb-update-container-model";
|
|
11715
11866
|
let mt = class {
|
|
@@ -11758,7 +11909,7 @@ let mt = class {
|
|
|
11758
11909
|
}
|
|
11759
11910
|
async syncAvailableUpdates() {
|
|
11760
11911
|
const t = await dc();
|
|
11761
|
-
|
|
11912
|
+
re(() => {
|
|
11762
11913
|
const e = t.map(
|
|
11763
11914
|
(s) => `${s.deviceId}-${s.manifestId}`
|
|
11764
11915
|
);
|
|
@@ -11788,24 +11939,24 @@ let mt = class {
|
|
|
11788
11939
|
this.logger.debug(`loading usb-update-container container ${this.id}`);
|
|
11789
11940
|
}
|
|
11790
11941
|
};
|
|
11791
|
-
|
|
11942
|
+
Mr([
|
|
11792
11943
|
Xt({ modelType: Vt.type })
|
|
11793
11944
|
], mt.prototype, "storageService", 2);
|
|
11794
|
-
|
|
11945
|
+
Mr([
|
|
11795
11946
|
Ee
|
|
11796
11947
|
], mt.prototype, "_models", 2);
|
|
11797
|
-
|
|
11948
|
+
Mr([
|
|
11798
11949
|
rd({ dependencies: (t) => [t.isUsbInserted] })
|
|
11799
11950
|
], mt.prototype, "usbInsertedEffect", 1);
|
|
11800
|
-
mt =
|
|
11951
|
+
mt = Mr([
|
|
11801
11952
|
P(pc)
|
|
11802
11953
|
], mt);
|
|
11803
|
-
const
|
|
11954
|
+
const or = new Pe({
|
|
11804
11955
|
class: mt,
|
|
11805
11956
|
type: pc
|
|
11806
11957
|
});
|
|
11807
|
-
|
|
11808
|
-
const
|
|
11958
|
+
or.addRelatedModel(gc);
|
|
11959
|
+
const zp = () => ({ ...{
|
|
11809
11960
|
[ts.type]: {
|
|
11810
11961
|
class: ef
|
|
11811
11962
|
},
|
|
@@ -11816,7 +11967,7 @@ const Hp = () => ({ ...{
|
|
|
11816
11967
|
...ne.registration,
|
|
11817
11968
|
...wt.registration,
|
|
11818
11969
|
...Ht.registration,
|
|
11819
|
-
...
|
|
11970
|
+
...so.registration,
|
|
11820
11971
|
...ke.registration,
|
|
11821
11972
|
[Ba.type]: {
|
|
11822
11973
|
class: Kt,
|
|
@@ -11824,13 +11975,13 @@ const Hp = () => ({ ...{
|
|
|
11824
11975
|
},
|
|
11825
11976
|
...Ys.registration,
|
|
11826
11977
|
...La.registration,
|
|
11827
|
-
...
|
|
11828
|
-
} }), mc =
|
|
11978
|
+
...qr.registration
|
|
11979
|
+
} }), mc = zp(), kw = {
|
|
11829
11980
|
models: mc,
|
|
11830
11981
|
preloadModels: []
|
|
11831
|
-
}, Sn = !0,
|
|
11982
|
+
}, Sn = !0, Gp = (t) => () => {
|
|
11832
11983
|
const e = mc;
|
|
11833
|
-
return Iu(Dn)(Gs).model(Ht).model(Vt).model(
|
|
11984
|
+
return Iu(Dn)(Gs).model(Ht).model(Vt).model(or).model(ro).model(Qr).model(Fs).model(Xr).model(na).model(sr).model(zt).model(Ga).model(Ji, Sn).model(yr).model($f, Sn), Object.keys(e).forEach((s) => {
|
|
11834
11985
|
const r = e[s];
|
|
11835
11986
|
Tu(Dn)(s, r);
|
|
11836
11987
|
}), {
|
|
@@ -11841,14 +11992,14 @@ const Hp = () => ({ ...{
|
|
|
11841
11992
|
};
|
|
11842
11993
|
}, me = {};
|
|
11843
11994
|
me.core = {
|
|
11844
|
-
models:
|
|
11995
|
+
models: Gp(me)
|
|
11845
11996
|
};
|
|
11846
11997
|
me.preload = C.model.preloadModel(me);
|
|
11847
11998
|
me.model = C.model.register(me);
|
|
11848
11999
|
me.companion = C.companion.register(me);
|
|
11849
12000
|
me.legacy = C.model.registerLegacyModel(me);
|
|
11850
12001
|
const Dn = me;
|
|
11851
|
-
class
|
|
12002
|
+
class Fw {
|
|
11852
12003
|
/**
|
|
11853
12004
|
* Maps the rank property of the trouble into the {@link TroubleModel}
|
|
11854
12005
|
* */
|
|
@@ -11883,7 +12034,7 @@ class Lw {
|
|
|
11883
12034
|
I.loader.registerLoader(zt.loader, e);
|
|
11884
12035
|
}
|
|
11885
12036
|
}
|
|
11886
|
-
class
|
|
12037
|
+
class _r {
|
|
11887
12038
|
constructor(e) {
|
|
11888
12039
|
l(this, "futureHandler");
|
|
11889
12040
|
this.futureHandler = new $o(e);
|
|
@@ -11910,8 +12061,8 @@ class Mr {
|
|
|
11910
12061
|
this.future && await this.future.cancelFuture();
|
|
11911
12062
|
}
|
|
11912
12063
|
}
|
|
11913
|
-
function
|
|
11914
|
-
const e = new
|
|
12064
|
+
function Nw(t) {
|
|
12065
|
+
const e = new _r(t);
|
|
11915
12066
|
t.futureHandler = e.futureHandler, Object.defineProperty(t, "_futureMixin", {
|
|
11916
12067
|
value: e,
|
|
11917
12068
|
enumerable: !1,
|
|
@@ -11919,8 +12070,8 @@ function kw(t) {
|
|
|
11919
12070
|
writable: !1
|
|
11920
12071
|
});
|
|
11921
12072
|
}
|
|
11922
|
-
function
|
|
11923
|
-
const e = new
|
|
12073
|
+
function Vp(t) {
|
|
12074
|
+
const e = new _r(t), s = t;
|
|
11924
12075
|
s.futureHandler = e.futureHandler, Object.defineProperty(t, "_futureMixin", {
|
|
11925
12076
|
value: e,
|
|
11926
12077
|
enumerable: !1,
|
|
@@ -11964,12 +12115,12 @@ function zp(t) {
|
|
|
11964
12115
|
configurable: !0
|
|
11965
12116
|
}), s.cancelFuture = async () => e.cancelFuture();
|
|
11966
12117
|
}
|
|
11967
|
-
function
|
|
12118
|
+
function Uw() {
|
|
11968
12119
|
return function(t) {
|
|
11969
12120
|
const e = t;
|
|
11970
12121
|
function s(...r) {
|
|
11971
12122
|
const o = e.apply(this, r) || this;
|
|
11972
|
-
return
|
|
12123
|
+
return Vp(o), o;
|
|
11973
12124
|
}
|
|
11974
12125
|
return s.prototype = e.prototype, Object.setPrototypeOf(s, e), Object.getOwnPropertyNames(e).forEach((r) => {
|
|
11975
12126
|
if (r !== "prototype" && r !== "length" && r !== "name") {
|
|
@@ -11982,12 +12133,12 @@ function Fw() {
|
|
|
11982
12133
|
}), s;
|
|
11983
12134
|
};
|
|
11984
12135
|
}
|
|
11985
|
-
function
|
|
11986
|
-
return new
|
|
12136
|
+
function jw(t) {
|
|
12137
|
+
return new _r(t);
|
|
11987
12138
|
}
|
|
11988
|
-
function
|
|
12139
|
+
function Bw(t) {
|
|
11989
12140
|
let e;
|
|
11990
|
-
const s = () => (e || (e = new
|
|
12141
|
+
const s = () => (e || (e = new _r(t())), e);
|
|
11991
12142
|
return {
|
|
11992
12143
|
get futureHandler() {
|
|
11993
12144
|
return s().futureHandler;
|
|
@@ -12012,10 +12163,10 @@ function Uw(t) {
|
|
|
12012
12163
|
}
|
|
12013
12164
|
};
|
|
12014
12165
|
}
|
|
12015
|
-
function
|
|
12166
|
+
function Hw(t) {
|
|
12016
12167
|
return t && typeof t == "object" && "futureHandler" in t && "future" in t && "_futureMixin" in t && typeof t.cancelFuture == "function";
|
|
12017
12168
|
}
|
|
12018
|
-
function
|
|
12169
|
+
function Kw(t) {
|
|
12019
12170
|
const e = [
|
|
12020
12171
|
"future",
|
|
12021
12172
|
"progress",
|
|
@@ -12041,7 +12192,7 @@ function Bw(t) {
|
|
|
12041
12192
|
}
|
|
12042
12193
|
return s;
|
|
12043
12194
|
}
|
|
12044
|
-
class
|
|
12195
|
+
class Yp {
|
|
12045
12196
|
constructor(e, s) {
|
|
12046
12197
|
l(this, "parent");
|
|
12047
12198
|
l(this, "companion");
|
|
@@ -12120,8 +12271,8 @@ class Gp {
|
|
|
12120
12271
|
}
|
|
12121
12272
|
}
|
|
12122
12273
|
}
|
|
12123
|
-
function
|
|
12124
|
-
const r = new
|
|
12274
|
+
function zw(t, e, s = {}) {
|
|
12275
|
+
const r = new Yp(t, e);
|
|
12125
12276
|
return t.getParent = () => r.getParent(), Object.defineProperty(t, "_companionMixin", {
|
|
12126
12277
|
value: r,
|
|
12127
12278
|
enumerable: !1,
|
|
@@ -12129,14 +12280,14 @@ function Hw(t, e, s = {}) {
|
|
|
12129
12280
|
writable: !1
|
|
12130
12281
|
}), r.setupProxy(s), r;
|
|
12131
12282
|
}
|
|
12132
|
-
function
|
|
12283
|
+
function qp(t) {
|
|
12133
12284
|
return t && typeof t == "object" && "_companionMixin" in t && typeof t.getParent == "function";
|
|
12134
12285
|
}
|
|
12135
|
-
function
|
|
12136
|
-
return
|
|
12286
|
+
function Wp(t) {
|
|
12287
|
+
return qp(t) ? t._companionMixin : null;
|
|
12137
12288
|
}
|
|
12138
|
-
function
|
|
12139
|
-
const e =
|
|
12289
|
+
function Gw(t) {
|
|
12290
|
+
const e = Wp(t);
|
|
12140
12291
|
if (!e)
|
|
12141
12292
|
return { error: "No companion mixin found" };
|
|
12142
12293
|
const s = e.getParent(), r = Object.getOwnPropertyNames(t), o = Object.getOwnPropertyNames(s), n = r.filter(
|
|
@@ -12149,7 +12300,7 @@ function Kw(t) {
|
|
|
12149
12300
|
proxiedCount: n.length
|
|
12150
12301
|
};
|
|
12151
12302
|
}
|
|
12152
|
-
const
|
|
12303
|
+
const Vw = async (t, e) => {
|
|
12153
12304
|
const s = na.instance(t).options({}).build(), r = e ? `${e}-` : "";
|
|
12154
12305
|
return await fe(s), {
|
|
12155
12306
|
getState: (o) => s.data[`${r}${o}`],
|
|
@@ -12164,14 +12315,14 @@ const zw = async (t, e) => {
|
|
|
12164
12315
|
dt(s);
|
|
12165
12316
|
}
|
|
12166
12317
|
};
|
|
12167
|
-
}, yc = "kos:service:region", bc = "regionId",
|
|
12168
|
-
const e = wt.factory(
|
|
12318
|
+
}, yc = "kos:service:region", bc = "regionId", Zp = `${yc}-${bc}`, Qp = async (t) => {
|
|
12319
|
+
const e = wt.factory(Zp)({
|
|
12169
12320
|
path: yc,
|
|
12170
12321
|
attribute: bc
|
|
12171
12322
|
});
|
|
12172
12323
|
await fe(e), e.updateProperty(t);
|
|
12173
|
-
}, wc = "/kos-timer-event", vc = "/kos-timer-event/tick", Mc = "defaultTimerEnd", Pt = g.createLogger({ name: "timer-manager" }),
|
|
12174
|
-
class
|
|
12324
|
+
}, wc = "/kos-timer-event", vc = "/kos-timer-event/tick", Mc = "defaultTimerEnd", Pt = g.createLogger({ name: "timer-manager" }), Jp = (t) => t.updateProperty !== void 0;
|
|
12325
|
+
class Xp {
|
|
12175
12326
|
/**
|
|
12176
12327
|
* Creates a new timer.
|
|
12177
12328
|
* @param name - The name of the timer.
|
|
@@ -12188,7 +12339,7 @@ class Qp {
|
|
|
12188
12339
|
l(this, "timeoutActions", /* @__PURE__ */ new Map());
|
|
12189
12340
|
this.name = e;
|
|
12190
12341
|
const o = typeof s == "number" ? s : s.value || 60;
|
|
12191
|
-
this.timeout = o, this.state = "inactive", this.remainingTime = o,
|
|
12342
|
+
this.timeout = o, this.state = "inactive", this.remainingTime = o, Jp(s) && Y(() => {
|
|
12192
12343
|
g.info(
|
|
12193
12344
|
`Updating config value timer ${e} with new timeout value ${s.value}`
|
|
12194
12345
|
);
|
|
@@ -12304,7 +12455,7 @@ const Rt = /* @__PURE__ */ new Map(), tt = (t, e) => {
|
|
|
12304
12455
|
return;
|
|
12305
12456
|
}
|
|
12306
12457
|
e(s);
|
|
12307
|
-
},
|
|
12458
|
+
}, em = {
|
|
12308
12459
|
/**
|
|
12309
12460
|
* Creates a new timer with a timeout relative to the current date.
|
|
12310
12461
|
* @param name - The name of the timer
|
|
@@ -12326,7 +12477,7 @@ const Rt = /* @__PURE__ */ new Map(), tt = (t, e) => {
|
|
|
12326
12477
|
createTimer(t, e = 60, s) {
|
|
12327
12478
|
if (Rt.has(t))
|
|
12328
12479
|
return Rt.get(t);
|
|
12329
|
-
const r = new
|
|
12480
|
+
const r = new Xp(t, e, s);
|
|
12330
12481
|
return Rt.set(t, r), r;
|
|
12331
12482
|
},
|
|
12332
12483
|
/**
|
|
@@ -12381,13 +12532,13 @@ const Rt = /* @__PURE__ */ new Map(), tt = (t, e) => {
|
|
|
12381
12532
|
startTimer(t) {
|
|
12382
12533
|
tt(t, (e) => e.start());
|
|
12383
12534
|
}
|
|
12384
|
-
}, _c = "kos:service:region:settings", Ec = "timeZone",
|
|
12385
|
-
const e = wt.factory(
|
|
12535
|
+
}, _c = "kos:service:region:settings", Ec = "timeZone", tm = `${_c}-${Ec}`, Cn = async (t) => {
|
|
12536
|
+
const e = wt.factory(tm)({
|
|
12386
12537
|
path: _c,
|
|
12387
12538
|
attribute: Ec
|
|
12388
12539
|
});
|
|
12389
12540
|
await fe(e), e.updateProperty(t);
|
|
12390
|
-
},
|
|
12541
|
+
}, sm = (t) => !t || !t.data;
|
|
12391
12542
|
function Tc(t = {}) {
|
|
12392
12543
|
const { alias: e, namespace: s, abortController: r = !1 } = t;
|
|
12393
12544
|
return (o, n, i) => {
|
|
@@ -12403,7 +12554,7 @@ function Tc(t = {}) {
|
|
|
12403
12554
|
tracker: u,
|
|
12404
12555
|
id: ki
|
|
12405
12556
|
});
|
|
12406
|
-
s && (p.namespace = s), g.debug(`waiting for future ${p.id} to be ready`), await fe(p), g.debug(`future ${p.id} is ready`),
|
|
12557
|
+
s && (p.namespace = s), g.debug(`waiting for future ${p.id} to be ready`), await fe(p), g.debug(`future ${p.id} is ready`), re(() => {
|
|
12407
12558
|
g.debug(`Adding future ${p.id} to futureHandler`), this.futureHandler.addFuture(p, e);
|
|
12408
12559
|
}), r && h && (f = Y(() => {
|
|
12409
12560
|
(p.status === "CANCELLED" || p.endState === Ge.Canceled) && (g.debug(`Future ${p.id} cancelled, aborting request`), h == null || h.abort());
|
|
@@ -12438,7 +12589,7 @@ function Tc(t = {}) {
|
|
|
12438
12589
|
await a.apply(this, b)
|
|
12439
12590
|
);
|
|
12440
12591
|
g.debug(`received future response for ${u}`, w);
|
|
12441
|
-
const M =
|
|
12592
|
+
const M = sm(w) ? w : w == null ? void 0 : w.data;
|
|
12442
12593
|
return M ? (M.progress = 1, g.debug("mapping future response to future model"), p.endState ? g.debug(
|
|
12443
12594
|
`future ${p.id} has already completed. Not updating the model`
|
|
12444
12595
|
) : Yi(M, p)) : this.futureHandler.removeFuture(e), y(), M;
|
|
@@ -12455,7 +12606,7 @@ function Tc(t = {}) {
|
|
|
12455
12606
|
};
|
|
12456
12607
|
};
|
|
12457
12608
|
}
|
|
12458
|
-
const
|
|
12609
|
+
const Yw = ({ path: t }) => (e, s) => {
|
|
12459
12610
|
e[L] = e[L] || {}, e[L][s] = {
|
|
12460
12611
|
modelType: Ys.type,
|
|
12461
12612
|
id: `${Ys.type}-${t}`,
|
|
@@ -12465,7 +12616,7 @@ const Gw = ({ path: t }) => (e, s) => {
|
|
|
12465
12616
|
lifecycle: H.INIT
|
|
12466
12617
|
};
|
|
12467
12618
|
};
|
|
12468
|
-
function
|
|
12619
|
+
function qw(t) {
|
|
12469
12620
|
const { path: e, attribute: s } = t;
|
|
12470
12621
|
return (r, o) => {
|
|
12471
12622
|
r[L] = r[L] || {}, r[L][o] = {
|
|
@@ -12479,7 +12630,7 @@ function Vw(t) {
|
|
|
12479
12630
|
};
|
|
12480
12631
|
};
|
|
12481
12632
|
}
|
|
12482
|
-
const at = g.createLogger({ name: "services", group: "Services" }),
|
|
12633
|
+
const at = g.createLogger({ name: "services", group: "Services" }), Ww = async (t, e) => rm(t, e, `${de}/api/server/login`), rm = async (t, e, s = `${de}/api/login`) => {
|
|
12483
12634
|
const r = await Ie(`${s}`, {
|
|
12484
12635
|
method: "POST",
|
|
12485
12636
|
destinationAddress: "",
|
|
@@ -12493,7 +12644,7 @@ const at = g.createLogger({ name: "services", group: "Services" }), Yw = async (
|
|
|
12493
12644
|
throw Error(`${n == null ? void 0 : n.error}`);
|
|
12494
12645
|
}
|
|
12495
12646
|
return await r.json();
|
|
12496
|
-
},
|
|
12647
|
+
}, Zw = async (t) => om(t, `${de}/api/server/startPasswordReset`, ""), om = async (t, e = `${de}/api/startPasswordReset`, s = "server") => {
|
|
12497
12648
|
const r = await Ie(`${e}?email=${t}`, {
|
|
12498
12649
|
method: "POST",
|
|
12499
12650
|
destinationAddress: s
|
|
@@ -12503,7 +12654,7 @@ const at = g.createLogger({ name: "services", group: "Services" }), Yw = async (
|
|
|
12503
12654
|
`There was a problem reseting config; returned status ${r.status}`
|
|
12504
12655
|
);
|
|
12505
12656
|
return await r.json();
|
|
12506
|
-
},
|
|
12657
|
+
}, Qw = async (t, e) => nm(t, e, `${de}/api/server/resetPassword`), nm = async (t, e, s = `${de}/api/resetPassword`) => {
|
|
12507
12658
|
at.debug(
|
|
12508
12659
|
`resetting password with token ${t} and password ${e.replace(
|
|
12509
12660
|
/./g,
|
|
@@ -12526,12 +12677,12 @@ const at = g.createLogger({ name: "services", group: "Services" }), Yw = async (
|
|
|
12526
12677
|
);
|
|
12527
12678
|
}
|
|
12528
12679
|
return await r.json();
|
|
12529
|
-
},
|
|
12680
|
+
}, Jw = async (t, e, s) => im(
|
|
12530
12681
|
t,
|
|
12531
12682
|
e,
|
|
12532
12683
|
s,
|
|
12533
12684
|
`${de}/api/server/acceptInvite`
|
|
12534
|
-
),
|
|
12685
|
+
), im = async (t, e, s, r = `${de}/api/server/acceptInvite`) => {
|
|
12535
12686
|
at.debug(
|
|
12536
12687
|
`accepting invite with token ${t} and password ${e.replace(
|
|
12537
12688
|
/./g,
|
|
@@ -12556,7 +12707,7 @@ const at = g.createLogger({ name: "services", group: "Services" }), Yw = async (
|
|
|
12556
12707
|
}
|
|
12557
12708
|
return await o.json();
|
|
12558
12709
|
};
|
|
12559
|
-
function
|
|
12710
|
+
function Xw(t, e, s, r) {
|
|
12560
12711
|
const o = t instanceof Promise ? { promise: t, abortController: e, cancelFuture: s, future: r } : t, {
|
|
12561
12712
|
promise: n,
|
|
12562
12713
|
abortController: i,
|
|
@@ -12571,8 +12722,8 @@ function Qw(t, e, s, r) {
|
|
|
12571
12722
|
(b !== u || w !== h || M !== f) && (u = b, h = w, f = M, p.forEach((F) => {
|
|
12572
12723
|
try {
|
|
12573
12724
|
F(u, h);
|
|
12574
|
-
} catch (
|
|
12575
|
-
console.warn("Progress callback error:",
|
|
12725
|
+
} catch (se) {
|
|
12726
|
+
console.warn("Progress callback error:", se);
|
|
12576
12727
|
}
|
|
12577
12728
|
}));
|
|
12578
12729
|
})), n.finally(() => {
|
|
@@ -12602,7 +12753,7 @@ function Qw(t, e, s, r) {
|
|
|
12602
12753
|
enumerable: !0
|
|
12603
12754
|
}), d.onProgressUpdate = (b) => (p.add(b), b(u, h), () => p.delete(b)), d;
|
|
12604
12755
|
}
|
|
12605
|
-
const
|
|
12756
|
+
const am = Zc`
|
|
12606
12757
|
0% {
|
|
12607
12758
|
left: -90px;
|
|
12608
12759
|
color: #eee;
|
|
@@ -12614,23 +12765,23 @@ const nm = Zc`
|
|
|
12614
12765
|
left: 90px;
|
|
12615
12766
|
color: #eee;
|
|
12616
12767
|
}
|
|
12617
|
-
`,
|
|
12768
|
+
`, cm = st`
|
|
12618
12769
|
font-size: 100px;
|
|
12619
12770
|
margin-top: -80px;
|
|
12620
12771
|
position: relative;
|
|
12621
|
-
animation: ${
|
|
12772
|
+
animation: ${am} ease-in-out infinite alternate;
|
|
12622
12773
|
animation-duration: 1.2s;
|
|
12623
|
-
`,
|
|
12624
|
-
function
|
|
12774
|
+
`, lm = ({ children: t }) => jn(t, document.body);
|
|
12775
|
+
function dm({
|
|
12625
12776
|
message: t = "Wait a moment while we load your app.",
|
|
12626
12777
|
theme: e = "light"
|
|
12627
12778
|
}) {
|
|
12628
|
-
return /* @__PURE__ */ v(
|
|
12779
|
+
return /* @__PURE__ */ v(lm, { children: /* @__PURE__ */ kt(um, { theme: e, children: [
|
|
12629
12780
|
t,
|
|
12630
|
-
/* @__PURE__ */ v("div", { css:
|
|
12781
|
+
/* @__PURE__ */ v("div", { css: cm, children: "." })
|
|
12631
12782
|
] }) });
|
|
12632
12783
|
}
|
|
12633
|
-
const
|
|
12784
|
+
const um = lo.div`
|
|
12634
12785
|
padding-inline: 20px;
|
|
12635
12786
|
width: 100%;
|
|
12636
12787
|
height: 100vh;
|
|
@@ -12645,7 +12796,7 @@ const lm = lo.div`
|
|
|
12645
12796
|
color: ${({ theme: t }) => t === "light" ? "black" : "white"};
|
|
12646
12797
|
z-index: 10000;
|
|
12647
12798
|
`;
|
|
12648
|
-
class
|
|
12799
|
+
class hm extends Ye.Component {
|
|
12649
12800
|
constructor(e) {
|
|
12650
12801
|
super(e), this.state = { error: null, errorInfo: null };
|
|
12651
12802
|
}
|
|
@@ -12666,11 +12817,11 @@ class dm extends Ye.Component {
|
|
|
12666
12817
|
] }) : this.props.children;
|
|
12667
12818
|
}
|
|
12668
12819
|
}
|
|
12669
|
-
const
|
|
12820
|
+
const fm = {
|
|
12670
12821
|
normal: "#B5F7F6",
|
|
12671
12822
|
warn: "#F3D78A",
|
|
12672
12823
|
error: "#FC8486"
|
|
12673
|
-
},
|
|
12824
|
+
}, ev = ({
|
|
12674
12825
|
value: t = 0,
|
|
12675
12826
|
title: e,
|
|
12676
12827
|
status: s = "normal",
|
|
@@ -12696,7 +12847,7 @@ const um = {
|
|
|
12696
12847
|
`, a = st`
|
|
12697
12848
|
width: ${t}%;
|
|
12698
12849
|
height: 35px;
|
|
12699
|
-
background-color: ${
|
|
12850
|
+
background-color: ${fm[s]};
|
|
12700
12851
|
text-align: center;
|
|
12701
12852
|
line-height: 32px;
|
|
12702
12853
|
color: black;
|
|
@@ -12722,14 +12873,14 @@ const um = {
|
|
|
12722
12873
|
] }),
|
|
12723
12874
|
/* @__PURE__ */ v("div", { children: r })
|
|
12724
12875
|
] });
|
|
12725
|
-
},
|
|
12876
|
+
}, gm = {
|
|
12726
12877
|
setModel: () => !1
|
|
12727
|
-
}, Uo = Zt(
|
|
12878
|
+
}, Uo = Zt(gm), tv = () => {
|
|
12728
12879
|
const t = Ke(Uo);
|
|
12729
12880
|
if (t == null)
|
|
12730
12881
|
throw new Error("useModels must be used within a KosModelProvider");
|
|
12731
12882
|
return t.model;
|
|
12732
|
-
},
|
|
12883
|
+
}, pm = ({
|
|
12733
12884
|
children: t
|
|
12734
12885
|
}) => {
|
|
12735
12886
|
const [e, s] = E(), r = Z(
|
|
@@ -12737,12 +12888,12 @@ const um = {
|
|
|
12737
12888
|
[s]
|
|
12738
12889
|
);
|
|
12739
12890
|
return /* @__PURE__ */ v(Uo.Provider, { value: { model: e, setModel: r }, children: t });
|
|
12740
|
-
}, Ic = g.createLogger({ name: "kos-model-hierarchy-context" }),
|
|
12891
|
+
}, Ic = g.createLogger({ name: "kos-model-hierarchy-context" }), mm = {
|
|
12741
12892
|
models: [],
|
|
12742
12893
|
addModel: () => {
|
|
12743
12894
|
Ic.debug("Default implementation being used. Do Nothing.");
|
|
12744
12895
|
}
|
|
12745
|
-
}, jo = Zt(
|
|
12896
|
+
}, jo = Zt(mm), sv = ({ children: t }) => {
|
|
12746
12897
|
const [e, s] = E([]), r = Z(
|
|
12747
12898
|
(o) => {
|
|
12748
12899
|
e.includes(o) || (Ic.debug("adding to hierarchy context", o.id), s((n) => [...n, o]));
|
|
@@ -12750,29 +12901,29 @@ const um = {
|
|
|
12750
12901
|
[e]
|
|
12751
12902
|
);
|
|
12752
12903
|
return /* @__PURE__ */ v(jo.Provider, { value: { models: e, addModel: r }, children: t });
|
|
12753
|
-
},
|
|
12904
|
+
}, ym = () => !0, bm = (t) => {
|
|
12754
12905
|
const e = Ke(jo);
|
|
12755
12906
|
if (!e)
|
|
12756
12907
|
throw new Error(
|
|
12757
12908
|
"useContextModelHierarchy must be used within a KosModelCollectionProvider"
|
|
12758
12909
|
);
|
|
12759
|
-
const s = (t == null ? void 0 : t.filter) ||
|
|
12910
|
+
const s = (t == null ? void 0 : t.filter) || ym;
|
|
12760
12911
|
return K(
|
|
12761
12912
|
() => e.models.filter(s),
|
|
12762
12913
|
[e.models, s]
|
|
12763
12914
|
);
|
|
12764
|
-
},
|
|
12915
|
+
}, rv = (t) => bm({
|
|
12765
12916
|
filter: (s) => {
|
|
12766
12917
|
const r = Se(s.id);
|
|
12767
12918
|
return (r == null ? void 0 : r.type) === t;
|
|
12768
12919
|
}
|
|
12769
|
-
})[0],
|
|
12920
|
+
})[0], wm = g.createLogger({ name: "kos-model-loader" }), vm = () => /* @__PURE__ */ v("div", {}), Mm = ({ fallback: t, children: e, ...s }) => /* @__PURE__ */ v(pm, { children: /* @__PURE__ */ v(hm, { fallback: t, children: /* @__PURE__ */ v(Qc, { children: /* @__PURE__ */ v(_m, { ...s, children: e }) }) }) }), _m = (t) => {
|
|
12770
12921
|
const [e, s] = E(), [r, o] = E(!1), { setModel: n } = Ke(Uo), i = Ke(jo);
|
|
12771
12922
|
if (O(() => {
|
|
12772
12923
|
t.model && (s(t.model), n(t.model), o(!0), i && i.addModel(t.model));
|
|
12773
12924
|
}, [i, t.model, n]), t.error)
|
|
12774
|
-
throw
|
|
12775
|
-
const a = t.loading || /* @__PURE__ */ v(
|
|
12925
|
+
throw wm.error(t.error), new Error(t.error);
|
|
12926
|
+
const a = t.loading || /* @__PURE__ */ v(vm, {});
|
|
12776
12927
|
return /* @__PURE__ */ v(Wc, { children: e && r ? t.children : a });
|
|
12777
12928
|
}, As = {
|
|
12778
12929
|
header: {
|
|
@@ -12785,7 +12936,7 @@ const um = {
|
|
|
12785
12936
|
cancelText: "Cancel",
|
|
12786
12937
|
title: "Create New Model"
|
|
12787
12938
|
}
|
|
12788
|
-
},
|
|
12939
|
+
}, Em = Ye.createContext(As), ov = ({
|
|
12789
12940
|
translations: t = As,
|
|
12790
12941
|
children: e
|
|
12791
12942
|
}) => {
|
|
@@ -12796,14 +12947,14 @@ const um = {
|
|
|
12796
12947
|
...t.createModal
|
|
12797
12948
|
}
|
|
12798
12949
|
};
|
|
12799
|
-
return /* @__PURE__ */ v(
|
|
12950
|
+
return /* @__PURE__ */ v(Em.Provider, { value: s, children: e });
|
|
12800
12951
|
};
|
|
12801
|
-
function
|
|
12952
|
+
function Tm(t, e) {
|
|
12802
12953
|
const s = T.create(t, !1, e), r = s.whenReady().then(() => s);
|
|
12803
12954
|
return ci(r);
|
|
12804
12955
|
}
|
|
12805
|
-
const $c = Ye.createContext(void 0),
|
|
12806
|
-
const s =
|
|
12956
|
+
const $c = Ye.createContext(void 0), nv = (t = { models: {}, preloadModels: [] }, e) => {
|
|
12957
|
+
const s = Tm(t, e);
|
|
12807
12958
|
return { KosCoreContextProvider: Bn(({ children: o }) => {
|
|
12808
12959
|
const n = s.read(), [i, a] = Ye.useState(n.isOnline);
|
|
12809
12960
|
return O(() => {
|
|
@@ -12815,17 +12966,17 @@ const $c = Ye.createContext(void 0), rv = (t = { models: {}, preloadModels: [] }
|
|
|
12815
12966
|
};
|
|
12816
12967
|
}, [n]), /* @__PURE__ */ v($c.Provider, { value: { kosCore: n, online: i }, children: o });
|
|
12817
12968
|
}) };
|
|
12818
|
-
},
|
|
12969
|
+
}, Im = () => {
|
|
12819
12970
|
const t = Ye.useContext($c);
|
|
12820
12971
|
if (t === void 0)
|
|
12821
12972
|
throw new Error("useKosCore must be used within a KosCoreContextProvider");
|
|
12822
12973
|
return t;
|
|
12823
|
-
},
|
|
12974
|
+
}, $m = 8, Om = (t = 0) => new Promise((e) => {
|
|
12824
12975
|
setTimeout(() => {
|
|
12825
12976
|
e(!0);
|
|
12826
12977
|
}, 2 ** t * 10);
|
|
12827
12978
|
}), Be = /* @__PURE__ */ new Map();
|
|
12828
|
-
function
|
|
12979
|
+
function Sm(t, e) {
|
|
12829
12980
|
if (Be.has(t)) {
|
|
12830
12981
|
const s = Be.get(t);
|
|
12831
12982
|
if (s.status === "finished") {
|
|
@@ -12845,10 +12996,10 @@ function $m(t, e) {
|
|
|
12845
12996
|
throw Be.set(t, r), s;
|
|
12846
12997
|
}
|
|
12847
12998
|
}
|
|
12848
|
-
function
|
|
12849
|
-
return
|
|
12999
|
+
function Dm(t, e) {
|
|
13000
|
+
return Sm(t, e);
|
|
12850
13001
|
}
|
|
12851
|
-
async function
|
|
13002
|
+
async function Cm(t, e) {
|
|
12852
13003
|
const { modelId: s, factory: r, modelType: o, options: n, activate: i } = e;
|
|
12853
13004
|
let a = 0;
|
|
12854
13005
|
await t.whenReady();
|
|
@@ -12861,16 +13012,16 @@ async function Sm(t, e) {
|
|
|
12861
13012
|
}
|
|
12862
13013
|
const d = t.modelManager.getModelById(s);
|
|
12863
13014
|
if (!d) {
|
|
12864
|
-
if (a >
|
|
13015
|
+
if (a > $m)
|
|
12865
13016
|
throw Error(`KOS Model ${s} has not been found`);
|
|
12866
|
-
await
|
|
13017
|
+
await Om(a), a = a + 1;
|
|
12867
13018
|
}
|
|
12868
13019
|
return await (d == null ? void 0 : d.whenReady()), d ? (c = d.modelData, { kosModel: d, model: c }) : { kosModel: void 0, model: void 0 };
|
|
12869
13020
|
}
|
|
12870
13021
|
const Q = (t) => {
|
|
12871
|
-
const { modelId: e, modelType: s, activate: r, destroyOnUnmount: o } = t, n =
|
|
13022
|
+
const { modelId: e, modelType: s, activate: r, destroyOnUnmount: o } = t, n = Im(), [i, a] = E(!1), [c, d] = E(), { kosModel: u, model: h } = Dm(
|
|
12872
13023
|
e || s || "",
|
|
12873
|
-
() =>
|
|
13024
|
+
() => Cm(n.kosCore, t)
|
|
12874
13025
|
);
|
|
12875
13026
|
return O(() => {
|
|
12876
13027
|
async function f() {
|
|
@@ -12927,32 +13078,32 @@ const Q = (t) => {
|
|
|
12927
13078
|
ready: i,
|
|
12928
13079
|
error: c
|
|
12929
13080
|
},
|
|
12930
|
-
KosModelLoader:
|
|
13081
|
+
KosModelLoader: Mm
|
|
12931
13082
|
};
|
|
12932
13083
|
}, Oc = () => {
|
|
12933
|
-
const t =
|
|
13084
|
+
const t = qr.type;
|
|
12934
13085
|
return Q({
|
|
12935
13086
|
modelId: t,
|
|
12936
|
-
modelType:
|
|
13087
|
+
modelType: qr.type,
|
|
12937
13088
|
options: {}
|
|
12938
13089
|
});
|
|
12939
|
-
}, Sc = Zt(void 0),
|
|
13090
|
+
}, Sc = Zt(void 0), iv = ({ children: t }) => {
|
|
12940
13091
|
const { model: e, ready: s } = Oc(), r = K(() => s && e ? { model: e } : {}, [s, e]);
|
|
12941
13092
|
return /* @__PURE__ */ v(Sc.Provider, { value: r, children: t });
|
|
12942
|
-
},
|
|
13093
|
+
}, av = () => {
|
|
12943
13094
|
const t = Ke(Sc);
|
|
12944
13095
|
if (!t)
|
|
12945
13096
|
throw new Error("useKosTimeContext must be used within a KosTimeProvider");
|
|
12946
13097
|
return t;
|
|
12947
13098
|
}, Dc = () => {
|
|
12948
|
-
const t =
|
|
13099
|
+
const t = Xr.type;
|
|
12949
13100
|
return Q({
|
|
12950
13101
|
modelId: t,
|
|
12951
|
-
modelType:
|
|
13102
|
+
modelType: Xr.type,
|
|
12952
13103
|
options: {}
|
|
12953
13104
|
});
|
|
12954
13105
|
};
|
|
12955
|
-
function
|
|
13106
|
+
function cv(t) {
|
|
12956
13107
|
return () => (e) => {
|
|
12957
13108
|
const { model: s, status: r, KosModelLoader: o } = Dc();
|
|
12958
13109
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, softwareInfo: s }) });
|
|
@@ -12960,24 +13111,24 @@ function iv(t) {
|
|
|
12960
13111
|
}
|
|
12961
13112
|
const Cc = Zt(
|
|
12962
13113
|
void 0
|
|
12963
|
-
),
|
|
13114
|
+
), lv = ({ children: t }) => {
|
|
12964
13115
|
const { model: e, ready: s } = Dc(), r = K(() => s && e ? { model: e } : {}, [s, e]);
|
|
12965
13116
|
return /* @__PURE__ */ v(Cc.Provider, { value: r, children: t });
|
|
12966
|
-
},
|
|
13117
|
+
}, dv = () => {
|
|
12967
13118
|
const t = Ke(Cc);
|
|
12968
13119
|
if (!t)
|
|
12969
13120
|
throw new Error(
|
|
12970
13121
|
"useSoftwareInfoContext must be used within a SoftwareInfoProvider"
|
|
12971
13122
|
);
|
|
12972
13123
|
return t;
|
|
12973
|
-
}, Pc = new ch(),
|
|
12974
|
-
function
|
|
12975
|
-
return /* @__PURE__ */ v(
|
|
13124
|
+
}, Pc = new ch(), Pm = Ye.createContext(Pc);
|
|
13125
|
+
function uv({ children: t }) {
|
|
13126
|
+
return /* @__PURE__ */ v(Pm.Provider, { value: Pc, children: t });
|
|
12976
13127
|
}
|
|
12977
|
-
const Rc = Zt(void 0),
|
|
13128
|
+
const Rc = Zt(void 0), Rm = () => {
|
|
12978
13129
|
const t = window.location.origin, e = ye();
|
|
12979
13130
|
return (e == null ? void 0 : e.host) || t;
|
|
12980
|
-
},
|
|
13131
|
+
}, hv = ({
|
|
12981
13132
|
children: t,
|
|
12982
13133
|
appContext: e,
|
|
12983
13134
|
locale: s = "en",
|
|
@@ -12985,7 +13136,7 @@ const Rc = Zt(void 0), Cm = () => {
|
|
|
12985
13136
|
rootUrl: o,
|
|
12986
13137
|
descriptorResolver: n
|
|
12987
13138
|
}) => {
|
|
12988
|
-
const [i, a] = E(!1), [c, d] = E(), [u, h] = E(), f = o ||
|
|
13139
|
+
const [i, a] = E(!1), [c, d] = E(), [u, h] = E(), f = o || Rm(), p = K(() => e ?? "app/system", [e]);
|
|
12989
13140
|
O(() => {
|
|
12990
13141
|
async function w() {
|
|
12991
13142
|
const F = (Array.isArray(p) ? p : [p]).map((W) => (n || Lg(W))()), _ = (await Promise.allSettled(F)).map((W) => {
|
|
@@ -13032,14 +13183,14 @@ const Rc = Zt(void 0), Cm = () => {
|
|
|
13032
13183
|
}
|
|
13033
13184
|
}, [i, u]), b = i ? t : null;
|
|
13034
13185
|
return /* @__PURE__ */ v(Rc.Provider, { value: y, children: b });
|
|
13035
|
-
},
|
|
13186
|
+
}, fv = () => {
|
|
13036
13187
|
const t = Ke(Rc);
|
|
13037
13188
|
if (!t)
|
|
13038
13189
|
throw new Error(
|
|
13039
13190
|
"useTranslationContainerContext must be used within a TranslationContainerProvider"
|
|
13040
13191
|
);
|
|
13041
13192
|
return t;
|
|
13042
|
-
},
|
|
13193
|
+
}, xm = () => {
|
|
13043
13194
|
const t = zt.type;
|
|
13044
13195
|
return Q({
|
|
13045
13196
|
modelId: t,
|
|
@@ -13047,18 +13198,18 @@ const Rc = Zt(void 0), Cm = () => {
|
|
|
13047
13198
|
options: {}
|
|
13048
13199
|
});
|
|
13049
13200
|
};
|
|
13050
|
-
function
|
|
13201
|
+
function Am(t) {
|
|
13051
13202
|
return (e) => {
|
|
13052
|
-
const { model: s, status: r, KosModelLoader: o } =
|
|
13203
|
+
const { model: s, status: r, KosModelLoader: o } = xm();
|
|
13053
13204
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, canvasDispatcher: s }) });
|
|
13054
13205
|
};
|
|
13055
13206
|
}
|
|
13056
|
-
const
|
|
13207
|
+
const Lm = (t, e, s) => {
|
|
13057
13208
|
const r = atob(t), o = new Uint8ClampedArray(e * s * 4);
|
|
13058
13209
|
for (let n = 0, i = 0; n < r.length && i < o.length; n += 3, i += 4)
|
|
13059
13210
|
o[i] = r.charCodeAt(n), o[i + 1] = r.charCodeAt(n + 1), o[i + 2] = r.charCodeAt(n + 2), o[i + 3] = 255;
|
|
13060
13211
|
return o;
|
|
13061
|
-
},
|
|
13212
|
+
}, km = (t, e, s) => {
|
|
13062
13213
|
const r = new Uint8ClampedArray(e * s * 4);
|
|
13063
13214
|
for (let o = 0; o < t.length; o++) {
|
|
13064
13215
|
const n = t.charCodeAt(o), i = (n >> 5 & 7) * 255 / 7, a = (n >> 2 & 7) * 255 / 7, c = (n & 3) * 255 / 3, d = o * 4;
|
|
@@ -13066,7 +13217,7 @@ const xm = (t, e, s) => {
|
|
|
13066
13217
|
}
|
|
13067
13218
|
return r;
|
|
13068
13219
|
};
|
|
13069
|
-
function
|
|
13220
|
+
function Fm({
|
|
13070
13221
|
ctx: t,
|
|
13071
13222
|
format: e,
|
|
13072
13223
|
dataString: s,
|
|
@@ -13074,14 +13225,14 @@ function Lm({
|
|
|
13074
13225
|
height: o,
|
|
13075
13226
|
pixelSize: n
|
|
13076
13227
|
}) {
|
|
13077
|
-
const i = e === "base64" ?
|
|
13228
|
+
const i = e === "base64" ? Lm(s, r, o) : km(s, r, o), a = new ImageData(i, r, o), c = document.createElement("canvas");
|
|
13078
13229
|
c.width = r, c.height = o;
|
|
13079
13230
|
const d = c.getContext("2d");
|
|
13080
13231
|
d == null || d.putImageData(a, 0, 0), t.imageSmoothingEnabled = !1, t.clearRect(0, 0, r * n, o * n), t.drawImage(c, 0, 0, r * n, o * n);
|
|
13081
13232
|
}
|
|
13082
|
-
const
|
|
13083
|
-
|
|
13084
|
-
const
|
|
13233
|
+
const Nm = g.createLogger({ name: "canvas-streamer" });
|
|
13234
|
+
Nm.debug("main-view component loaded");
|
|
13235
|
+
const Ur = 10, Um = Bn(
|
|
13085
13236
|
({
|
|
13086
13237
|
canvasDispatcher: t,
|
|
13087
13238
|
height: e = 30,
|
|
@@ -13091,7 +13242,7 @@ const Nr = 10, Fm = Bn(
|
|
|
13091
13242
|
name: n,
|
|
13092
13243
|
apiPath: i = "/api/system/canvas"
|
|
13093
13244
|
}) => {
|
|
13094
|
-
const a =
|
|
13245
|
+
const a = nr(null), [c, d] = E();
|
|
13095
13246
|
O(() => {
|
|
13096
13247
|
const h = t.addNamedEndpoint(n, {
|
|
13097
13248
|
apiPath: i,
|
|
@@ -13106,13 +13257,13 @@ const Nr = 10, Fm = Bn(
|
|
|
13106
13257
|
(h) => {
|
|
13107
13258
|
if (a.current && o) {
|
|
13108
13259
|
const f = a.current.getContext("2d");
|
|
13109
|
-
f &&
|
|
13260
|
+
f && Fm({
|
|
13110
13261
|
ctx: f,
|
|
13111
13262
|
format: "base64",
|
|
13112
13263
|
dataString: h,
|
|
13113
13264
|
height: e,
|
|
13114
13265
|
width: s,
|
|
13115
|
-
pixelSize:
|
|
13266
|
+
pixelSize: Ur
|
|
13116
13267
|
});
|
|
13117
13268
|
}
|
|
13118
13269
|
},
|
|
@@ -13121,19 +13272,19 @@ const Nr = 10, Fm = Bn(
|
|
|
13121
13272
|
return O(() => {
|
|
13122
13273
|
c && (c.onFrame = u, c.width = s, c.height = e, c.fps = r);
|
|
13123
13274
|
}, [c, u, s, e, r]), o && jn(
|
|
13124
|
-
/* @__PURE__ */ v(
|
|
13275
|
+
/* @__PURE__ */ v(jm, { children: /* @__PURE__ */ v(Bm, { children: /* @__PURE__ */ v(
|
|
13125
13276
|
"canvas",
|
|
13126
13277
|
{
|
|
13127
13278
|
ref: a,
|
|
13128
|
-
width: s *
|
|
13129
|
-
height: e *
|
|
13279
|
+
width: s * Ur,
|
|
13280
|
+
height: e * Ur,
|
|
13130
13281
|
style: { border: "1px solid black" }
|
|
13131
13282
|
}
|
|
13132
13283
|
) }) }),
|
|
13133
13284
|
document.body
|
|
13134
13285
|
);
|
|
13135
13286
|
}
|
|
13136
|
-
),
|
|
13287
|
+
), gv = Am(Um), jm = lo.div`
|
|
13137
13288
|
display: flex;
|
|
13138
13289
|
flex-direction: column;
|
|
13139
13290
|
gap: 8px;
|
|
@@ -13141,11 +13292,11 @@ const Nr = 10, Fm = Bn(
|
|
|
13141
13292
|
width: 100%;
|
|
13142
13293
|
justify-content: space-between;
|
|
13143
13294
|
align-items: center;
|
|
13144
|
-
`,
|
|
13295
|
+
`, Bm = lo.div`
|
|
13145
13296
|
display: flex;
|
|
13146
13297
|
flex-direction: column;
|
|
13147
13298
|
align-items: center;
|
|
13148
|
-
`,
|
|
13299
|
+
`, Hm = () => {
|
|
13149
13300
|
const t = ro.type;
|
|
13150
13301
|
return Q({
|
|
13151
13302
|
modelId: t,
|
|
@@ -13153,13 +13304,13 @@ const Nr = 10, Fm = Bn(
|
|
|
13153
13304
|
options: {}
|
|
13154
13305
|
});
|
|
13155
13306
|
};
|
|
13156
|
-
function
|
|
13307
|
+
function pv(t) {
|
|
13157
13308
|
return (e) => {
|
|
13158
|
-
const { model: s, status: r, KosModelLoader: o } =
|
|
13309
|
+
const { model: s, status: r, KosModelLoader: o } = Hm();
|
|
13159
13310
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, device: s }) });
|
|
13160
13311
|
};
|
|
13161
13312
|
}
|
|
13162
|
-
function
|
|
13313
|
+
function mv(t, e, s) {
|
|
13163
13314
|
const r = new Promise((o) => {
|
|
13164
13315
|
T.getInstance().whenReady().then(() => {
|
|
13165
13316
|
const { model: n } = T.getInstance().modelManager.createModelInstance(
|
|
@@ -13174,41 +13325,41 @@ function gv(t, e, s) {
|
|
|
13174
13325
|
});
|
|
13175
13326
|
return ci(r);
|
|
13176
13327
|
}
|
|
13177
|
-
function
|
|
13328
|
+
function yv(t) {
|
|
13178
13329
|
return (e) => {
|
|
13179
13330
|
const { model: s, status: r, KosModelLoader: o } = Oc();
|
|
13180
13331
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, kosTime: s }) });
|
|
13181
13332
|
};
|
|
13182
13333
|
}
|
|
13183
|
-
const
|
|
13184
|
-
const t =
|
|
13334
|
+
const Km = () => {
|
|
13335
|
+
const t = sr.type;
|
|
13185
13336
|
return Q({
|
|
13186
13337
|
modelId: t,
|
|
13187
|
-
modelType:
|
|
13338
|
+
modelType: sr.type,
|
|
13188
13339
|
options: {}
|
|
13189
13340
|
});
|
|
13190
13341
|
};
|
|
13191
|
-
function
|
|
13342
|
+
function bv(t) {
|
|
13192
13343
|
return (e) => {
|
|
13193
|
-
const { model: s, status: r, KosModelLoader: o } =
|
|
13344
|
+
const { model: s, status: r, KosModelLoader: o } = Km();
|
|
13194
13345
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, networkInterfaceContainer: s }) });
|
|
13195
13346
|
};
|
|
13196
13347
|
}
|
|
13197
|
-
const
|
|
13198
|
-
const t =
|
|
13348
|
+
const zm = () => {
|
|
13349
|
+
const t = Qr.type;
|
|
13199
13350
|
return Q({
|
|
13200
13351
|
modelId: t,
|
|
13201
|
-
modelType:
|
|
13352
|
+
modelType: Qr.type,
|
|
13202
13353
|
options: {}
|
|
13203
13354
|
});
|
|
13204
13355
|
};
|
|
13205
|
-
function
|
|
13356
|
+
function wv(t) {
|
|
13206
13357
|
return (e) => {
|
|
13207
|
-
const { model: s, status: r, KosModelLoader: o } =
|
|
13358
|
+
const { model: s, status: r, KosModelLoader: o } = zm();
|
|
13208
13359
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, oTA: s }) });
|
|
13209
13360
|
};
|
|
13210
13361
|
}
|
|
13211
|
-
function
|
|
13362
|
+
function Gm(t, e) {
|
|
13212
13363
|
O(() => {
|
|
13213
13364
|
function s(o) {
|
|
13214
13365
|
t.current && !t.current.contains(o.target) && e();
|
|
@@ -13221,11 +13372,11 @@ function Km(t, e) {
|
|
|
13221
13372
|
};
|
|
13222
13373
|
}, [t, e]);
|
|
13223
13374
|
}
|
|
13224
|
-
function
|
|
13225
|
-
const e =
|
|
13226
|
-
return
|
|
13375
|
+
function vv(t) {
|
|
13376
|
+
const e = nr(null), s = t.onAlert;
|
|
13377
|
+
return Gm(e, s), /* @__PURE__ */ v("div", { ref: e, style: { width: "100%" }, children: t.children });
|
|
13227
13378
|
}
|
|
13228
|
-
const
|
|
13379
|
+
const Mv = (t) => {
|
|
13229
13380
|
var d;
|
|
13230
13381
|
const { stateProp: e } = t, [s, r] = E((d = t.stateProp) == null ? void 0 : d.value), [o, n] = E(!1), [i, a] = E(void 0);
|
|
13231
13382
|
return O(() => {
|
|
@@ -13245,7 +13396,7 @@ const wv = (t) => {
|
|
|
13245
13396
|
u();
|
|
13246
13397
|
};
|
|
13247
13398
|
}, [o, e]), [s, { ready: o, error: i }];
|
|
13248
|
-
},
|
|
13399
|
+
}, Vm = () => {
|
|
13249
13400
|
const [t, e] = E(!1), [s, r] = E([]), o = Vt.type, n = Q({
|
|
13250
13401
|
modelId: o,
|
|
13251
13402
|
modelType: Vt.type,
|
|
@@ -13261,20 +13412,20 @@ const wv = (t) => {
|
|
|
13261
13412
|
};
|
|
13262
13413
|
}, [n.model]), { ...n, inserted: t, devices: s };
|
|
13263
13414
|
};
|
|
13264
|
-
function
|
|
13415
|
+
function _v(t) {
|
|
13265
13416
|
return (e) => {
|
|
13266
|
-
const { model: s, status: r, KosModelLoader: o } =
|
|
13417
|
+
const { model: s, status: r, KosModelLoader: o } = Vm();
|
|
13267
13418
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, storageDeviceContainer: s }) });
|
|
13268
13419
|
};
|
|
13269
13420
|
}
|
|
13270
|
-
const
|
|
13421
|
+
const jr = g.createLogger({ name: "use-timer" }), Ev = ({
|
|
13271
13422
|
timerName: t,
|
|
13272
13423
|
onTimerExpired: e,
|
|
13273
13424
|
onTimerTick: s,
|
|
13274
13425
|
timerEventActions: r,
|
|
13275
13426
|
autoStart: o
|
|
13276
13427
|
}) => {
|
|
13277
|
-
const n =
|
|
13428
|
+
const n = em.getTimer(t);
|
|
13278
13429
|
O(() => {
|
|
13279
13430
|
if (!n) {
|
|
13280
13431
|
console.warn(`Timer with name ${t} does not exist.`);
|
|
@@ -13299,11 +13450,11 @@ const Ur = g.createLogger({ name: "use-timer" }), Mv = ({
|
|
|
13299
13450
|
};
|
|
13300
13451
|
}, [s, t, n]);
|
|
13301
13452
|
const i = Z(() => {
|
|
13302
|
-
n ? n.start() :
|
|
13453
|
+
n ? n.start() : jr.warn(`Timer with name ${t} does not exist.`);
|
|
13303
13454
|
}, [n, t]), a = Z(() => {
|
|
13304
|
-
n ? n.reset() :
|
|
13455
|
+
n ? n.reset() : jr.warn(`Timer with name ${t} does not exist.`);
|
|
13305
13456
|
}, [n, t]), c = Z(() => {
|
|
13306
|
-
n ? n.pause() :
|
|
13457
|
+
n ? n.pause() : jr.warn(`Timer with name ${t} does not exist.`);
|
|
13307
13458
|
}, [n, t]);
|
|
13308
13459
|
return {
|
|
13309
13460
|
timer: n,
|
|
@@ -13311,41 +13462,41 @@ const Ur = g.createLogger({ name: "use-timer" }), Mv = ({
|
|
|
13311
13462
|
reset: a,
|
|
13312
13463
|
pause: c
|
|
13313
13464
|
};
|
|
13314
|
-
},
|
|
13465
|
+
}, Ym = (t) => {
|
|
13315
13466
|
const e = /[\\^$.*+?()[\]{}|]/g;
|
|
13316
13467
|
return RegExp(e.source).test(t) ? t.replace(e, "\\$&") : t;
|
|
13317
|
-
},
|
|
13468
|
+
}, qm = (t) => t instanceof RegExp, Wm = (t) => typeof t == "string", Zm = (t, e, s) => {
|
|
13318
13469
|
if (t === "" || e === "")
|
|
13319
13470
|
return t;
|
|
13320
13471
|
let r = e;
|
|
13321
|
-
|
|
13472
|
+
qm(r) || (r = new RegExp("(" + Ym(r) + ")", "gi"));
|
|
13322
13473
|
const o = t.split(r);
|
|
13323
13474
|
for (let n = 1, i = o.length; n < i; n += 2)
|
|
13324
13475
|
o[n] = s(o[n], n);
|
|
13325
13476
|
return o;
|
|
13326
|
-
},
|
|
13477
|
+
}, Qm = (t, e, s) => {
|
|
13327
13478
|
let r = t;
|
|
13328
13479
|
return Array.isArray(r) || (r = [r]), r.flatMap(
|
|
13329
|
-
(o) =>
|
|
13480
|
+
(o) => Wm(o) ? Zm(o, e, s) : o
|
|
13330
13481
|
);
|
|
13331
13482
|
};
|
|
13332
|
-
function
|
|
13483
|
+
function Jm(t, e) {
|
|
13333
13484
|
let s = t;
|
|
13334
13485
|
return Object.entries(e).forEach(([r, o]) => {
|
|
13335
13486
|
const n = new RegExp(`<${r}>(.*?)</${r}>|<${r}/>`, "g");
|
|
13336
|
-
s =
|
|
13487
|
+
s = Qm(s, n, (i, a) => o.type === "br" ? /* @__PURE__ */ v("br", {}) : Ye.cloneElement(o, { key: `${r}-${a}` }, i));
|
|
13337
13488
|
}), s;
|
|
13338
13489
|
}
|
|
13339
|
-
const
|
|
13490
|
+
const Tv = (t) => {
|
|
13340
13491
|
const { i18nKey: e, t: s, defaults: r, components: o, values: n = {}, context: i } = t, a = s(e, {
|
|
13341
13492
|
defaultValue: r,
|
|
13342
13493
|
data: n,
|
|
13343
13494
|
context: i,
|
|
13344
13495
|
returnObjects: !0
|
|
13345
|
-
}), c =
|
|
13496
|
+
}), c = Jm(a, o || {});
|
|
13346
13497
|
return /* @__PURE__ */ v("span", { className: t.className, children: c });
|
|
13347
13498
|
}, ot = /* @__PURE__ */ new Map();
|
|
13348
|
-
function
|
|
13499
|
+
function Xm(t, e) {
|
|
13349
13500
|
if (ot.has(t)) {
|
|
13350
13501
|
const s = ot.get(t);
|
|
13351
13502
|
if (s.status === "finished")
|
|
@@ -13364,12 +13515,12 @@ function Qm(t, e) {
|
|
|
13364
13515
|
}
|
|
13365
13516
|
}
|
|
13366
13517
|
function Pn(t, e) {
|
|
13367
|
-
return
|
|
13518
|
+
return Xm(t, e);
|
|
13368
13519
|
}
|
|
13369
|
-
const
|
|
13520
|
+
const ey = async () => {
|
|
13370
13521
|
const t = await vu(ke.type);
|
|
13371
13522
|
return await fe(t.model), t.model;
|
|
13372
|
-
},
|
|
13523
|
+
}, ty = async (t, e, s) => {
|
|
13373
13524
|
const r = t.resolveNamespace(e);
|
|
13374
13525
|
await fe(r);
|
|
13375
13526
|
for (const o of s) {
|
|
@@ -13377,13 +13528,13 @@ const Jm = async () => {
|
|
|
13377
13528
|
await fe(n), ot.set(o, { status: "finished", result: n });
|
|
13378
13529
|
}
|
|
13379
13530
|
return r;
|
|
13380
|
-
},
|
|
13531
|
+
}, Iv = (t, e) => {
|
|
13381
13532
|
const s = [t].flat(), [r, ...o] = s, n = Pn(
|
|
13382
13533
|
ke.type,
|
|
13383
|
-
|
|
13534
|
+
ey
|
|
13384
13535
|
), i = s.join("__"), a = Pn(
|
|
13385
13536
|
i,
|
|
13386
|
-
() =>
|
|
13537
|
+
() => ty(n, r, o)
|
|
13387
13538
|
), c = K(() => ({
|
|
13388
13539
|
exists: (u) => {
|
|
13389
13540
|
const h = e != null && e.keyPrefix ? `${e.keyPrefix}.${u}` : u;
|
|
@@ -13399,7 +13550,7 @@ const Jm = async () => {
|
|
|
13399
13550
|
},
|
|
13400
13551
|
[e == null ? void 0 : e.keyPrefix, t, a]
|
|
13401
13552
|
), i18n: c };
|
|
13402
|
-
},
|
|
13553
|
+
}, sy = () => {
|
|
13403
13554
|
const t = ke.type;
|
|
13404
13555
|
return Q({
|
|
13405
13556
|
modelId: t,
|
|
@@ -13407,20 +13558,20 @@ const Jm = async () => {
|
|
|
13407
13558
|
options: {}
|
|
13408
13559
|
});
|
|
13409
13560
|
};
|
|
13410
|
-
function
|
|
13561
|
+
function $v(t) {
|
|
13411
13562
|
return (e) => {
|
|
13412
|
-
const { model: s, status: r, KosModelLoader: o } =
|
|
13563
|
+
const { model: s, status: r, KosModelLoader: o } = sy();
|
|
13413
13564
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, translationContainer: s }) });
|
|
13414
13565
|
};
|
|
13415
13566
|
}
|
|
13416
|
-
const
|
|
13567
|
+
const Ov = (t) => Q({
|
|
13417
13568
|
modelId: t,
|
|
13418
13569
|
modelType: Gs.type
|
|
13419
13570
|
}), xc = () => Q({
|
|
13420
13571
|
modelId: Ht.type,
|
|
13421
13572
|
modelType: Ht.type,
|
|
13422
13573
|
options: {}
|
|
13423
|
-
}),
|
|
13574
|
+
}), Sv = ({
|
|
13424
13575
|
troubleType: t,
|
|
13425
13576
|
condition: e
|
|
13426
13577
|
}) => {
|
|
@@ -13438,16 +13589,16 @@ const Iv = (t) => Q({
|
|
|
13438
13589
|
n
|
|
13439
13590
|
];
|
|
13440
13591
|
};
|
|
13441
|
-
function
|
|
13592
|
+
function Dv(t) {
|
|
13442
13593
|
return (e) => {
|
|
13443
13594
|
const { model: s, status: r, KosModelLoader: o } = xc();
|
|
13444
13595
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, troubleContainer: s }) });
|
|
13445
13596
|
};
|
|
13446
13597
|
}
|
|
13447
|
-
const
|
|
13448
|
-
const t =
|
|
13598
|
+
const ry = () => {
|
|
13599
|
+
const t = or.type, e = Q({
|
|
13449
13600
|
modelId: t,
|
|
13450
|
-
modelType:
|
|
13601
|
+
modelType: or.type,
|
|
13451
13602
|
options: {},
|
|
13452
13603
|
activate: !0,
|
|
13453
13604
|
destroyOnUnmount: !0
|
|
@@ -13462,13 +13613,13 @@ const ty = () => {
|
|
|
13462
13613
|
};
|
|
13463
13614
|
}, [e.model]), { ...e, inserted: s, updateAvailable: o, updates: i };
|
|
13464
13615
|
};
|
|
13465
|
-
function
|
|
13616
|
+
function Cv(t) {
|
|
13466
13617
|
return (e) => {
|
|
13467
|
-
const { model: s, status: r, KosModelLoader: o } =
|
|
13618
|
+
const { model: s, status: r, KosModelLoader: o } = ry();
|
|
13468
13619
|
return /* @__PURE__ */ v(o, { ...r, children: /* @__PURE__ */ v(t, { ...e, usbUpdateContainer: s }) });
|
|
13469
13620
|
};
|
|
13470
13621
|
}
|
|
13471
|
-
const
|
|
13622
|
+
const Pv = ({ path: t, propKey: e }) => {
|
|
13472
13623
|
const { status: s } = Q({
|
|
13473
13624
|
modelType: Fs.type,
|
|
13474
13625
|
modelId: t,
|
|
@@ -13493,18 +13644,18 @@ const Dv = ({ path: t, propKey: e }) => {
|
|
|
13493
13644
|
error: d,
|
|
13494
13645
|
updateValue: h
|
|
13495
13646
|
};
|
|
13496
|
-
},
|
|
13647
|
+
}, oy = (t, e) => {
|
|
13497
13648
|
switch (e.type) {
|
|
13498
13649
|
case "UPDATE":
|
|
13499
13650
|
return e.payload;
|
|
13500
13651
|
default:
|
|
13501
13652
|
return t;
|
|
13502
13653
|
}
|
|
13503
|
-
},
|
|
13654
|
+
}, ny = ({
|
|
13504
13655
|
configProperty: t,
|
|
13505
13656
|
optionsTransformer: e
|
|
13506
13657
|
}) => {
|
|
13507
|
-
const [s, r] = E(!1), [o, n] = E(""), [i, a] = Jc(
|
|
13658
|
+
const [s, r] = E(!1), [o, n] = E(""), [i, a] = Jc(oy, {
|
|
13508
13659
|
value: String(t == null ? void 0 : t.value),
|
|
13509
13660
|
displayValue: t == null ? void 0 : t.displayValue,
|
|
13510
13661
|
significantValue: t == null ? void 0 : t.significantValue,
|
|
@@ -13563,32 +13714,32 @@ const Dv = ({ path: t, propKey: e }) => {
|
|
|
13563
13714
|
error: o
|
|
13564
13715
|
};
|
|
13565
13716
|
};
|
|
13566
|
-
function
|
|
13717
|
+
function iy(t, e) {
|
|
13567
13718
|
const s = e ?? (/* @__PURE__ */ new Date()).getFullYear(), r = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
13568
13719
|
return t === 1 && (s % 4 === 0 && s % 100 !== 0 || s % 400 === 0) ? 29 : r[t] ?? 0;
|
|
13569
13720
|
}
|
|
13570
|
-
function
|
|
13721
|
+
function Rv(t, e) {
|
|
13571
13722
|
return new Date(t, e, 0).getDate();
|
|
13572
13723
|
}
|
|
13573
|
-
function
|
|
13574
|
-
const s =
|
|
13724
|
+
function ay(t, e) {
|
|
13725
|
+
const s = iy(e, t), r = [];
|
|
13575
13726
|
for (let o = 1; o <= s; o++)
|
|
13576
13727
|
r.push(o);
|
|
13577
13728
|
return r;
|
|
13578
13729
|
}
|
|
13579
|
-
function
|
|
13730
|
+
function cy() {
|
|
13580
13731
|
return [...Array(12).keys()].map(
|
|
13581
13732
|
(e) => new Date(0, e).getMonth()
|
|
13582
13733
|
);
|
|
13583
13734
|
}
|
|
13584
|
-
function
|
|
13735
|
+
function ly(t = [2018, 2028]) {
|
|
13585
13736
|
const e = [];
|
|
13586
13737
|
for (let s = t[0]; s <= t[1]; s++)
|
|
13587
13738
|
e.push(s);
|
|
13588
13739
|
return e;
|
|
13589
13740
|
}
|
|
13590
|
-
function
|
|
13591
|
-
const s =
|
|
13741
|
+
function dy(t, e = [2018, 2028]) {
|
|
13742
|
+
const s = ly(e);
|
|
13592
13743
|
return t === "long" ? s : s.map((r) => Number(r.toString().substring(2)));
|
|
13593
13744
|
}
|
|
13594
13745
|
function Ac(t = "numeric", e = "en-US") {
|
|
@@ -13598,7 +13749,7 @@ function Ac(t = "numeric", e = "en-US") {
|
|
|
13598
13749
|
}).format;
|
|
13599
13750
|
return [...Array(12).keys()].map((r) => s(new Date(Date.UTC(0, r, 1))));
|
|
13600
13751
|
}
|
|
13601
|
-
function
|
|
13752
|
+
function xv({
|
|
13602
13753
|
locale: t = "en-US",
|
|
13603
13754
|
year: e,
|
|
13604
13755
|
month: s,
|
|
@@ -13623,10 +13774,10 @@ function Pv({
|
|
|
13623
13774
|
function we(t) {
|
|
13624
13775
|
return t.toString().length === 2 ? new Date(Date.parse(`01 Jan 20${t}`)).getFullYear() : t;
|
|
13625
13776
|
}
|
|
13626
|
-
function
|
|
13777
|
+
function Av(t) {
|
|
13627
13778
|
return typeof t == "string" ? new Date(Date.parse(`01 ${t.substring(0, 3)} 2023`)).getMonth() + 1 : t;
|
|
13628
13779
|
}
|
|
13629
|
-
function
|
|
13780
|
+
function uy(t, e, s) {
|
|
13630
13781
|
const r = we(e), o = new Date(r, t, 1).getDay(), n = new Date(r, t + 1, 0).getDate();
|
|
13631
13782
|
return [...Array(42).keys()].map((a) => a < o || a > n + o - 1 ? { label: "", value: 0, disabled: !0 } : s[a - o]);
|
|
13632
13783
|
}
|
|
@@ -13637,13 +13788,13 @@ function vs(t, e, s) {
|
|
|
13637
13788
|
function Ms(t, e) {
|
|
13638
13789
|
return new Date(t, e, 0).getDate();
|
|
13639
13790
|
}
|
|
13640
|
-
function
|
|
13791
|
+
function hy(t = "en-US", e = "short") {
|
|
13641
13792
|
const s = new Intl.DateTimeFormat(t, { weekday: e }).format;
|
|
13642
13793
|
return [...Array(7).keys()].map(
|
|
13643
13794
|
(r) => s(new Date(Date.UTC(2021, 5, r)))
|
|
13644
13795
|
);
|
|
13645
13796
|
}
|
|
13646
|
-
function
|
|
13797
|
+
function fy({
|
|
13647
13798
|
locale: t = "en-US",
|
|
13648
13799
|
year: e = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
13649
13800
|
month: s = (/* @__PURE__ */ new Date()).getMonth(),
|
|
@@ -13655,7 +13806,7 @@ function uy({
|
|
|
13655
13806
|
dayFormat: a = "short"
|
|
13656
13807
|
} = {}
|
|
13657
13808
|
}) {
|
|
13658
|
-
const c = Lc(n, r), d =
|
|
13809
|
+
const c = Lc(n, r), d = gy(n, r, t), u = py(i, t), h = my(i, t), f = kc(e, s), p = by(e, s, t, o), y = My(s, e, p), b = wy(t, a);
|
|
13659
13810
|
return {
|
|
13660
13811
|
daysArray: f,
|
|
13661
13812
|
monthsArray: u,
|
|
@@ -13669,11 +13820,11 @@ function uy({
|
|
|
13669
13820
|
}
|
|
13670
13821
|
function Lc(t = "long", e = [2018, 2028]) {
|
|
13671
13822
|
return K(
|
|
13672
|
-
() =>
|
|
13823
|
+
() => dy(t, e),
|
|
13673
13824
|
[t, e]
|
|
13674
13825
|
);
|
|
13675
13826
|
}
|
|
13676
|
-
function
|
|
13827
|
+
function gy(t = "long", e = [2018, 2028], s = "en-US") {
|
|
13677
13828
|
const r = Lc(t, e);
|
|
13678
13829
|
return K(
|
|
13679
13830
|
() => r.map((n) => ({
|
|
@@ -13683,14 +13834,14 @@ function hy(t = "long", e = [2018, 2028], s = "en-US") {
|
|
|
13683
13834
|
[s, r]
|
|
13684
13835
|
);
|
|
13685
13836
|
}
|
|
13686
|
-
function
|
|
13837
|
+
function py(t, e = "en-US") {
|
|
13687
13838
|
return K(
|
|
13688
13839
|
() => Ac(t, e),
|
|
13689
13840
|
[t, e]
|
|
13690
13841
|
);
|
|
13691
13842
|
}
|
|
13692
|
-
function
|
|
13693
|
-
const s = K(() =>
|
|
13843
|
+
function my(t, e = "en-US") {
|
|
13844
|
+
const s = K(() => cy(), []), r = K(
|
|
13694
13845
|
() => Ac(t, e),
|
|
13695
13846
|
[t, e]
|
|
13696
13847
|
);
|
|
@@ -13705,32 +13856,32 @@ function gy(t, e = "en-US") {
|
|
|
13705
13856
|
function kc(t, e) {
|
|
13706
13857
|
const s = we(t);
|
|
13707
13858
|
return K(
|
|
13708
|
-
() =>
|
|
13859
|
+
() => ay(s, e),
|
|
13709
13860
|
[e, s]
|
|
13710
13861
|
);
|
|
13711
13862
|
}
|
|
13712
|
-
const
|
|
13863
|
+
const yy = (t, e, s, r = []) => {
|
|
13713
13864
|
const o = new Date(t, e, s).getDay();
|
|
13714
13865
|
return r.length > 0 && r.includes(o);
|
|
13715
13866
|
};
|
|
13716
|
-
function
|
|
13867
|
+
function by(t, e, s = "en-US", r = []) {
|
|
13717
13868
|
const o = kc(t, e);
|
|
13718
13869
|
return K(
|
|
13719
13870
|
() => o.map((i) => ({
|
|
13720
13871
|
label: i.toLocaleString(s),
|
|
13721
13872
|
value: i,
|
|
13722
|
-
disabled:
|
|
13873
|
+
disabled: yy(t, e, i, r)
|
|
13723
13874
|
})),
|
|
13724
13875
|
[r, s, e, o, t]
|
|
13725
13876
|
);
|
|
13726
13877
|
}
|
|
13727
|
-
function
|
|
13878
|
+
function wy(t = "en-US", e = "short") {
|
|
13728
13879
|
return K(
|
|
13729
|
-
() =>
|
|
13880
|
+
() => hy(t, e),
|
|
13730
13881
|
[t, e]
|
|
13731
13882
|
);
|
|
13732
13883
|
}
|
|
13733
|
-
function
|
|
13884
|
+
function vy({
|
|
13734
13885
|
year: t = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
13735
13886
|
month: e = (/* @__PURE__ */ new Date()).getMonth(),
|
|
13736
13887
|
day: s = (/* @__PURE__ */ new Date()).getDate(),
|
|
@@ -13739,14 +13890,14 @@ function by({
|
|
|
13739
13890
|
const o = e, n = new Date(t, o, s);
|
|
13740
13891
|
return { formattedDate: He(n, r) };
|
|
13741
13892
|
}
|
|
13742
|
-
function
|
|
13893
|
+
function My(t, e, s) {
|
|
13743
13894
|
return K(
|
|
13744
|
-
() =>
|
|
13895
|
+
() => uy(t, e, s),
|
|
13745
13896
|
[t, e, s]
|
|
13746
13897
|
);
|
|
13747
13898
|
}
|
|
13748
|
-
var
|
|
13749
|
-
function
|
|
13899
|
+
var _y = /* @__PURE__ */ ((t) => (t.MMDDYY = "MMDDYY", t.DDMMYY = "DDMMYY", t.YYMMDD = "YYMMDD", t.YYDDMM = "YYDDMM", t))(_y || {});
|
|
13900
|
+
function Lv({
|
|
13750
13901
|
locale: t = "en-US",
|
|
13751
13902
|
date: {
|
|
13752
13903
|
year: e = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
@@ -13778,14 +13929,14 @@ function xv({
|
|
|
13778
13929
|
}, [r]);
|
|
13779
13930
|
const {
|
|
13780
13931
|
yearsArray: F,
|
|
13781
|
-
yearsOptionsArray:
|
|
13932
|
+
yearsOptionsArray: se,
|
|
13782
13933
|
monthsArray: R,
|
|
13783
13934
|
monthsOptionsArray: _,
|
|
13784
13935
|
daysArray: W,
|
|
13785
13936
|
daysOptionsArray: U,
|
|
13786
13937
|
calendarDayArray: J,
|
|
13787
13938
|
dayNamesArray: Ae
|
|
13788
|
-
} =
|
|
13939
|
+
} = fy({
|
|
13789
13940
|
locale: t,
|
|
13790
13941
|
year: u,
|
|
13791
13942
|
yearRange: f,
|
|
@@ -13796,7 +13947,7 @@ function xv({
|
|
|
13796
13947
|
dayFormat: i
|
|
13797
13948
|
},
|
|
13798
13949
|
daysOfWeekFilter: d
|
|
13799
|
-
}), { formattedDate: $e } =
|
|
13950
|
+
}), { formattedDate: $e } = vy({
|
|
13800
13951
|
year: u,
|
|
13801
13952
|
month: y,
|
|
13802
13953
|
day: w,
|
|
@@ -13849,7 +14000,7 @@ function xv({
|
|
|
13849
14000
|
month: y,
|
|
13850
14001
|
day: w,
|
|
13851
14002
|
yearsArray: F,
|
|
13852
|
-
yearsOptionsArray:
|
|
14003
|
+
yearsOptionsArray: se,
|
|
13853
14004
|
monthsArray: R,
|
|
13854
14005
|
monthsOptionsArray: _,
|
|
13855
14006
|
daysArray: W,
|
|
@@ -13860,7 +14011,7 @@ function xv({
|
|
|
13860
14011
|
}
|
|
13861
14012
|
};
|
|
13862
14013
|
}
|
|
13863
|
-
function
|
|
14014
|
+
function Ey({
|
|
13864
14015
|
date: t = /* @__PURE__ */ new Date(),
|
|
13865
14016
|
dateFormat: e,
|
|
13866
14017
|
timeFormat: s,
|
|
@@ -13887,10 +14038,10 @@ function My({
|
|
|
13887
14038
|
);
|
|
13888
14039
|
}, [t, s, h, d, u]), { formattedDate: i, formattedTime: o };
|
|
13889
14040
|
}
|
|
13890
|
-
const
|
|
14041
|
+
const Ty = ({
|
|
13891
14042
|
secondsFromMidnight: t = 0
|
|
13892
14043
|
}) => {
|
|
13893
|
-
const [e, s] = E(0), [r, o] = E(0), [n, i] = E(0), [a, c] = E(/* @__PURE__ */ new Date()), { formattedTime: d } =
|
|
14044
|
+
const [e, s] = E(0), [r, o] = E(0), [n, i] = E(0), [a, c] = E(/* @__PURE__ */ new Date()), { formattedTime: d } = Ey({
|
|
13894
14045
|
date: a,
|
|
13895
14046
|
options: {
|
|
13896
14047
|
ignoreDateFormat: !0
|
|
@@ -13914,12 +14065,12 @@ const _y = ({
|
|
|
13914
14065
|
setSeconds: i
|
|
13915
14066
|
}
|
|
13916
14067
|
};
|
|
13917
|
-
},
|
|
14068
|
+
}, kv = ({
|
|
13918
14069
|
configProperty: t
|
|
13919
14070
|
}) => {
|
|
13920
|
-
const { value: e } =
|
|
14071
|
+
const { value: e } = ny({ configProperty: t }), s = parseInt(e || "0", 10), { hours: r, minutes: o, seconds: n, formattedTime: i, timeActions: a } = Ty({
|
|
13921
14072
|
secondsFromMidnight: s
|
|
13922
|
-
}), c =
|
|
14073
|
+
}), c = nr();
|
|
13923
14074
|
return O(() => {
|
|
13924
14075
|
const d = r * 3600 + o * 60 + n;
|
|
13925
14076
|
return c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
@@ -13935,7 +14086,7 @@ const _y = ({
|
|
|
13935
14086
|
timeActions: a
|
|
13936
14087
|
};
|
|
13937
14088
|
};
|
|
13938
|
-
function
|
|
14089
|
+
function Fv(t, e = {}) {
|
|
13939
14090
|
const { intervalMs: s = 5 * 60 * 1e3, immediate: r = !0 } = e;
|
|
13940
14091
|
O(() => {
|
|
13941
14092
|
const o = () => {
|
|
@@ -13951,7 +14102,7 @@ function Lv(t, e = {}) {
|
|
|
13951
14102
|
};
|
|
13952
14103
|
}, [t, s, r]);
|
|
13953
14104
|
}
|
|
13954
|
-
const
|
|
14105
|
+
const Iy = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, children: t.format }, t.id), Nv = (t = Iy) => {
|
|
13955
14106
|
const [e, s] = E([]), [r, o] = E(), { model: n, ready: i } = Q({
|
|
13956
14107
|
modelType: ne.type,
|
|
13957
14108
|
modelId: ne.type,
|
|
@@ -13995,13 +14146,13 @@ const Ey = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
|
|
|
13995
14146
|
options: e
|
|
13996
14147
|
}
|
|
13997
14148
|
};
|
|
13998
|
-
},
|
|
14149
|
+
}, $y = (t) => /* @__PURE__ */ v("option", { title: t, value: t, children: t }, t), Fc = "kos:service:region:settings", Nc = "timeZone", Oy = `${Fc}-${Nc}`, Uv = (t = $y) => {
|
|
13999
14150
|
const [e, s] = E([]), [r, o] = E(""), { model: n, ready: i } = Q({
|
|
14000
14151
|
modelType: ne.type,
|
|
14001
14152
|
modelId: ne.type,
|
|
14002
14153
|
options: {}
|
|
14003
14154
|
}), a = wt.factory(
|
|
14004
|
-
|
|
14155
|
+
Oy
|
|
14005
14156
|
)({
|
|
14006
14157
|
path: Fc,
|
|
14007
14158
|
attribute: Nc
|
|
@@ -14039,13 +14190,13 @@ const Ey = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
|
|
|
14039
14190
|
options: e
|
|
14040
14191
|
}
|
|
14041
14192
|
};
|
|
14042
|
-
}, Uc = "kos:service:region", jc = "regionId",
|
|
14193
|
+
}, Uc = "kos:service:region", jc = "regionId", Sy = `${Uc}-${jc}`, Dy = (t) => /* @__PURE__ */ v("option", { title: t, value: t, children: t }, t), Cy = (t = Dy) => {
|
|
14043
14194
|
const [e, s] = E([]), [r, o] = E("factory"), { model: n, ready: i } = Q({
|
|
14044
14195
|
modelType: ne.type,
|
|
14045
14196
|
modelId: ne.type,
|
|
14046
14197
|
options: {}
|
|
14047
14198
|
}), a = wt.factory(
|
|
14048
|
-
|
|
14199
|
+
Sy
|
|
14049
14200
|
)({
|
|
14050
14201
|
path: Uc,
|
|
14051
14202
|
attribute: jc
|
|
@@ -14068,7 +14219,7 @@ const Ey = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
|
|
|
14068
14219
|
const c = Z((d) => {
|
|
14069
14220
|
var h;
|
|
14070
14221
|
let u = "factory";
|
|
14071
|
-
typeof d == "string" ? u = d : (h = d == null ? void 0 : d.target) != null && h.value && (u = d.target.value), u &&
|
|
14222
|
+
typeof d == "string" ? u = d : (h = d == null ? void 0 : d.target) != null && h.value && (u = d.target.value), u && Qp(u);
|
|
14072
14223
|
}, []);
|
|
14073
14224
|
return {
|
|
14074
14225
|
raw: (n == null ? void 0 : n.availableRegions) ?? [],
|
|
@@ -14082,7 +14233,7 @@ const Ey = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
|
|
|
14082
14233
|
options: e
|
|
14083
14234
|
}
|
|
14084
14235
|
};
|
|
14085
|
-
},
|
|
14236
|
+
}, Py = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, children: t.format }, t.id), jv = (t = Py) => {
|
|
14086
14237
|
const [e, s] = E([]), [r, o] = E(), { model: n, ready: i } = Q({
|
|
14087
14238
|
modelType: ne.type,
|
|
14088
14239
|
modelId: ne.type,
|
|
@@ -14126,10 +14277,10 @@ const Ey = (t) => /* @__PURE__ */ v("option", { title: t.id, value: t.format, ch
|
|
|
14126
14277
|
options: e
|
|
14127
14278
|
}
|
|
14128
14279
|
};
|
|
14129
|
-
},
|
|
14280
|
+
}, Bv = (t, e) => K(() => Ai(t), e), Ry = {
|
|
14130
14281
|
config: { attributes: !0, childList: !0, subtree: !0 }
|
|
14131
14282
|
};
|
|
14132
|
-
function
|
|
14283
|
+
function Hv(t, e, s = Ry) {
|
|
14133
14284
|
const [r, o] = E(null);
|
|
14134
14285
|
O(() => {
|
|
14135
14286
|
if (!e || typeof e != "function")
|
|
@@ -14153,7 +14304,7 @@ function jv(t, e, s = Cy) {
|
|
|
14153
14304
|
};
|
|
14154
14305
|
}, [r, t, s]);
|
|
14155
14306
|
}
|
|
14156
|
-
const
|
|
14307
|
+
const xy = {
|
|
14157
14308
|
validateStart: function(t) {
|
|
14158
14309
|
return !0;
|
|
14159
14310
|
},
|
|
@@ -14161,24 +14312,24 @@ const Py = {
|
|
|
14161
14312
|
const e = t.event.currentTarget.getBoundingClientRect(), [s, r] = t.xy;
|
|
14162
14313
|
return s < e.left || s > e.right || r < e.top || r > e.bottom;
|
|
14163
14314
|
}
|
|
14164
|
-
},
|
|
14315
|
+
}, Br = g.createLogger({
|
|
14165
14316
|
name: "usePressGesture",
|
|
14166
14317
|
group: "kos-hooks"
|
|
14167
14318
|
});
|
|
14168
|
-
function
|
|
14319
|
+
function Kv({
|
|
14169
14320
|
onPressed: t,
|
|
14170
14321
|
onRelease: e,
|
|
14171
|
-
intersectionStrategy: s =
|
|
14322
|
+
intersectionStrategy: s = xy
|
|
14172
14323
|
}) {
|
|
14173
|
-
const r =
|
|
14324
|
+
const r = nr(!1), o = Xc({
|
|
14174
14325
|
onDragStart: (c) => {
|
|
14175
|
-
|
|
14326
|
+
Br.info("onDragStart", c.type), s.validateStart(c) && (t && t(), r.current = !0);
|
|
14176
14327
|
},
|
|
14177
14328
|
onDrag: (c) => {
|
|
14178
|
-
|
|
14329
|
+
Br.info("onDrag", c.type), r.current && s.validateStop(c) && (e && e(), r.current = !1);
|
|
14179
14330
|
},
|
|
14180
14331
|
onDragEnd: (c) => {
|
|
14181
|
-
|
|
14332
|
+
Br.info("onDragEnd", c.type), r.current && e && (e(), r.current = !1);
|
|
14182
14333
|
}
|
|
14183
14334
|
}), n = () => {
|
|
14184
14335
|
t && t(), r.current = !0;
|
|
@@ -14196,7 +14347,7 @@ function Bv({
|
|
|
14196
14347
|
})
|
|
14197
14348
|
};
|
|
14198
14349
|
}
|
|
14199
|
-
const
|
|
14350
|
+
const Ay = () => {
|
|
14200
14351
|
const [t, e] = E(!1), s = T.getInstance();
|
|
14201
14352
|
return O(() => {
|
|
14202
14353
|
const r = Y(() => {
|
|
@@ -14207,7 +14358,7 @@ const Ry = () => {
|
|
|
14207
14358
|
};
|
|
14208
14359
|
}, [s, t]), [t];
|
|
14209
14360
|
};
|
|
14210
|
-
function
|
|
14361
|
+
function Ly(t = !1, e = "2-digit") {
|
|
14211
14362
|
return K(() => {
|
|
14212
14363
|
const s = t ? 12 : 24;
|
|
14213
14364
|
return Array.from({ length: s }, (r, o) => {
|
|
@@ -14231,7 +14382,7 @@ function Rn(t, e = "2-digit", s = 0, r = 0) {
|
|
|
14231
14382
|
[t, s, r, e]
|
|
14232
14383
|
);
|
|
14233
14384
|
}
|
|
14234
|
-
function
|
|
14385
|
+
function ky(t = "en-US") {
|
|
14235
14386
|
return K(
|
|
14236
14387
|
() => ["AM", "PM"].map((e) => {
|
|
14237
14388
|
const s = new Intl.DateTimeFormat(t, {
|
|
@@ -14243,7 +14394,7 @@ function Ay(t = "en-US") {
|
|
|
14243
14394
|
[t]
|
|
14244
14395
|
);
|
|
14245
14396
|
}
|
|
14246
|
-
function
|
|
14397
|
+
function Fy({
|
|
14247
14398
|
formatOptions: {
|
|
14248
14399
|
hour12: t = !0,
|
|
14249
14400
|
hour: e = "2-digit",
|
|
@@ -14252,7 +14403,7 @@ function Ly({
|
|
|
14252
14403
|
} = { hour12: !0, hour: "2-digit", minute: "2-digit", second: "2-digit" },
|
|
14253
14404
|
locale: o = "en-US"
|
|
14254
14405
|
}) {
|
|
14255
|
-
const n =
|
|
14406
|
+
const n = Ly(t, e), i = Rn(60, s), a = Rn(60, r), c = ky(o);
|
|
14256
14407
|
return {
|
|
14257
14408
|
hourOptions: n,
|
|
14258
14409
|
minuteOptions: i,
|
|
@@ -14260,10 +14411,10 @@ function Ly({
|
|
|
14260
14411
|
amPmOptions: c
|
|
14261
14412
|
};
|
|
14262
14413
|
}
|
|
14263
|
-
function
|
|
14414
|
+
function Ny(t, e) {
|
|
14264
14415
|
return He(t, e);
|
|
14265
14416
|
}
|
|
14266
|
-
function
|
|
14417
|
+
function Uy({
|
|
14267
14418
|
formatOptions: t,
|
|
14268
14419
|
initialDate: e = /* @__PURE__ */ new Date(),
|
|
14269
14420
|
locale: s = "en-US",
|
|
@@ -14287,7 +14438,7 @@ function Fy({
|
|
|
14287
14438
|
}, []), d = Z((b) => {
|
|
14288
14439
|
const w = new Date(b);
|
|
14289
14440
|
n(w);
|
|
14290
|
-
}, []), u =
|
|
14441
|
+
}, []), u = Ny(o, r), { hourOptions: h, minuteOptions: f, secondOptions: p, amPmOptions: y } = Fy({
|
|
14291
14442
|
formatOptions: t,
|
|
14292
14443
|
locale: s
|
|
14293
14444
|
});
|
|
@@ -14304,45 +14455,45 @@ function Fy({
|
|
|
14304
14455
|
time: new Date(o)
|
|
14305
14456
|
};
|
|
14306
14457
|
}
|
|
14307
|
-
const
|
|
14308
|
-
const { regionModel: e } =
|
|
14309
|
-
return
|
|
14458
|
+
const zv = (t) => {
|
|
14459
|
+
const { regionModel: e } = Cy(), s = K(() => ({ hour12: e == null ? void 0 : e.is12HourTimeFormat }), [e == null ? void 0 : e.is12HourTimeFormat]);
|
|
14460
|
+
return Uy({
|
|
14310
14461
|
...t,
|
|
14311
14462
|
locale: e == null ? void 0 : e.regionId,
|
|
14312
14463
|
format: e == null ? void 0 : e.selectedTimeFormat,
|
|
14313
14464
|
formatOptions: s
|
|
14314
14465
|
});
|
|
14315
14466
|
};
|
|
14316
|
-
function
|
|
14467
|
+
function Gv(t) {
|
|
14317
14468
|
return (e) => {
|
|
14318
|
-
const [s] =
|
|
14319
|
-
return s ? /* @__PURE__ */ v(
|
|
14469
|
+
const [s] = Ay();
|
|
14470
|
+
return s ? /* @__PURE__ */ v(dm, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ v(t, { ...e });
|
|
14320
14471
|
};
|
|
14321
14472
|
}
|
|
14322
14473
|
const xn = g.createLogger({
|
|
14323
14474
|
name: "studio-properties-service",
|
|
14324
14475
|
group: "Services"
|
|
14325
|
-
}),
|
|
14476
|
+
}), jy = "/api/kos/studio/properties", Bc = async (t) => {
|
|
14326
14477
|
if (xn.debug("sending GET for studio-properties"), !t)
|
|
14327
14478
|
throw xn.error("connectionId is undefined"), new Error("connectionId is undefined");
|
|
14328
14479
|
return await xe.get(
|
|
14329
|
-
|
|
14480
|
+
jy,
|
|
14330
14481
|
{},
|
|
14331
14482
|
{
|
|
14332
14483
|
destinationAddress: t,
|
|
14333
14484
|
timeout: 500
|
|
14334
14485
|
}
|
|
14335
14486
|
);
|
|
14336
|
-
},
|
|
14487
|
+
}, Vv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14337
14488
|
__proto__: null,
|
|
14338
14489
|
getStudioProperties: Bc
|
|
14339
14490
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14340
|
-
var
|
|
14341
|
-
for (var o = r > 1 ? void 0 : r ?
|
|
14491
|
+
var By = Object.defineProperty, Hy = Object.getOwnPropertyDescriptor, Ky = (t, e, s, r) => {
|
|
14492
|
+
for (var o = r > 1 ? void 0 : r ? Hy(e, s) : e, n = t.length - 1, i; n >= 0; n--)
|
|
14342
14493
|
(i = t[n]) && (o = (r ? i(e, s, o) : i(o)) || o);
|
|
14343
|
-
return r && o &&
|
|
14494
|
+
return r && o && By(e, s, o), o;
|
|
14344
14495
|
};
|
|
14345
|
-
const Hc = "studio-properties-model",
|
|
14496
|
+
const Hc = "studio-properties-model", zy = "/kos/studio/properties", An = {
|
|
14346
14497
|
"kos.studio.tool.legacy": 1
|
|
14347
14498
|
};
|
|
14348
14499
|
let ao = class {
|
|
@@ -14367,7 +14518,7 @@ let ao = class {
|
|
|
14367
14518
|
}
|
|
14368
14519
|
async initializePropertiesSession() {
|
|
14369
14520
|
this.unsubscribe = Ft.getInstance().subscribeTopic({
|
|
14370
|
-
topic:
|
|
14521
|
+
topic: zy,
|
|
14371
14522
|
destinationAddress: this.connectionId,
|
|
14372
14523
|
callback: (s) => {
|
|
14373
14524
|
this.logger.error(
|
|
@@ -14394,10 +14545,10 @@ let ao = class {
|
|
|
14394
14545
|
return Ai(() => this.get(t));
|
|
14395
14546
|
}
|
|
14396
14547
|
};
|
|
14397
|
-
ao =
|
|
14548
|
+
ao = Ky([
|
|
14398
14549
|
P(Hc)
|
|
14399
14550
|
], ao);
|
|
14400
|
-
const
|
|
14551
|
+
const Yv = new Te({
|
|
14401
14552
|
class: ao,
|
|
14402
14553
|
type: Hc
|
|
14403
14554
|
});
|
|
@@ -14407,36 +14558,36 @@ export {
|
|
|
14407
14558
|
lh as BrowserKosRouter,
|
|
14408
14559
|
Ji as BrowserRouter,
|
|
14409
14560
|
zt as CanvasDispatcher,
|
|
14410
|
-
|
|
14561
|
+
Pw as CanvasDispatcherServices,
|
|
14411
14562
|
Ga as CanvasRenderer,
|
|
14412
|
-
|
|
14413
|
-
|
|
14563
|
+
gv as CanvasStreamer,
|
|
14564
|
+
Um as CanvasStreamerBase,
|
|
14414
14565
|
Es as ChildModels,
|
|
14415
|
-
|
|
14416
|
-
|
|
14566
|
+
Yp as CompanionDecoratorMixin,
|
|
14567
|
+
Kr as CompanionParentModel,
|
|
14417
14568
|
Fs as ConfigBean,
|
|
14418
|
-
|
|
14569
|
+
Fw as CoreExtensionManager,
|
|
14419
14570
|
mc as CoreModels,
|
|
14420
|
-
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14571
|
+
Em as CreateModelTranslationsContext,
|
|
14572
|
+
ov as CreateModelTranslationsProvider,
|
|
14573
|
+
_y as DateDisplayFormat,
|
|
14574
|
+
pb as DateHelpers,
|
|
14424
14575
|
H as DependencyLifecycle,
|
|
14425
14576
|
L as DependencyModels,
|
|
14426
14577
|
ro as Device,
|
|
14427
|
-
|
|
14428
|
-
|
|
14578
|
+
Rw as DeviceServices,
|
|
14579
|
+
xy as DomIntersectionStrategy,
|
|
14429
14580
|
Gn as EVENT_KOS_MODEL_READY,
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14581
|
+
dw as EVENT_TROUBLE_ADDED,
|
|
14582
|
+
uw as EVENT_TROUBLE_REMOVED,
|
|
14583
|
+
te as EXTENSION_CANVAS_RENDERER,
|
|
14433
14584
|
kl as EXTENSION_FEATURE_FLAG_RESOLVER,
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
|
-
|
|
14437
|
-
|
|
14438
|
-
|
|
14439
|
-
|
|
14585
|
+
Zr as EXTENSION_TROUBLE_DATA_MAPPER,
|
|
14586
|
+
br as EXTENSION_TROUBLE_MAPPER,
|
|
14587
|
+
hm as ErrorBoundaryWithFallback,
|
|
14588
|
+
nb as EventBus,
|
|
14589
|
+
ib as EventBusFunctional,
|
|
14590
|
+
ab as EventBusState,
|
|
14440
14591
|
I as ExtensionManager,
|
|
14441
14592
|
af as FUTURE_CONTAINER_MODEL_TYPE,
|
|
14442
14593
|
Bh as FUTURE_MODEL_TYPE,
|
|
@@ -14457,7 +14608,7 @@ export {
|
|
|
14457
14608
|
ol as HEADER_FOS_REQUEST_ID,
|
|
14458
14609
|
uo as HEADER_METHOD,
|
|
14459
14610
|
Kn as HEADER_ORDERED,
|
|
14460
|
-
|
|
14611
|
+
ir as HEADER_REQUEST_ID,
|
|
14461
14612
|
Ce as HEADER_REQUEST_TYPE,
|
|
14462
14613
|
ho as HEADER_RESPONSE_ID,
|
|
14463
14614
|
tl as HEADER_SOURCE_ADDR,
|
|
@@ -14465,9 +14616,9 @@ export {
|
|
|
14465
14616
|
Qt as HEADER_URL,
|
|
14466
14617
|
zn as HEADER_WORK_TRACKER,
|
|
14467
14618
|
Le as HttpRouteHandlers,
|
|
14468
|
-
|
|
14619
|
+
Hr as KOS_MODEL_ID,
|
|
14469
14620
|
na as KeyValue,
|
|
14470
|
-
|
|
14621
|
+
ww as KeyValueServices,
|
|
14471
14622
|
ie as Kos,
|
|
14472
14623
|
wt as KosConfigPropertySpec,
|
|
14473
14624
|
Pi as KosContainerIndex,
|
|
@@ -14476,153 +14627,153 @@ export {
|
|
|
14476
14627
|
T as KosCore,
|
|
14477
14628
|
Me as KosCoreModelPropertyMapper,
|
|
14478
14629
|
Ri as KosDataContainer,
|
|
14479
|
-
|
|
14480
|
-
|
|
14630
|
+
$b as KosDependencyTypes,
|
|
14631
|
+
mb as KosExtensionUtils,
|
|
14481
14632
|
Nl as KosFeatureFlags,
|
|
14482
14633
|
Ud as KosFetchMethods,
|
|
14483
14634
|
pi as KosGlobalConfig,
|
|
14484
14635
|
Ii as KosHttpRouteManager,
|
|
14485
14636
|
g as KosLog,
|
|
14486
14637
|
$f as KosLogManager,
|
|
14487
|
-
|
|
14638
|
+
vw as KosLogManagerServices,
|
|
14488
14639
|
al as KosMockEvents,
|
|
14489
14640
|
hu as KosModel,
|
|
14490
|
-
|
|
14641
|
+
sv as KosModelCollectionProvider,
|
|
14491
14642
|
Re as KosModelContainer,
|
|
14492
14643
|
Uo as KosModelContext,
|
|
14493
14644
|
x as KosModelEvents,
|
|
14494
14645
|
Ds as KosModelFactory,
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14646
|
+
_r as KosModelFutureContainerMixin,
|
|
14647
|
+
Mm as KosModelLoader,
|
|
14648
|
+
_m as KosModelLoaderDisplay,
|
|
14498
14649
|
yu as KosModelManager,
|
|
14499
|
-
|
|
14650
|
+
pm as KosModelProvider,
|
|
14500
14651
|
Te as KosModelRegistrationFactory,
|
|
14501
14652
|
Dn as KosModelRegistry,
|
|
14502
14653
|
m as KosModelState,
|
|
14503
14654
|
Vl as KosModelSymbol,
|
|
14504
|
-
|
|
14655
|
+
Yb as KosModelVisitor,
|
|
14505
14656
|
qu as KosObservableData,
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14657
|
+
rw as KosRegistration,
|
|
14658
|
+
ow as KosSingletonRegistration,
|
|
14659
|
+
qr as KosTime,
|
|
14509
14660
|
Sc as KosTimeContext,
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14661
|
+
iv as KosTimeProvider,
|
|
14662
|
+
Mw as KosTimeServices,
|
|
14663
|
+
Xp as KosTimer,
|
|
14513
14664
|
ch as KosToken,
|
|
14514
|
-
|
|
14665
|
+
hv as KosTranslationProvider,
|
|
14515
14666
|
zg as KosTranslations,
|
|
14516
14667
|
ou as KosWSTransportStatus,
|
|
14517
|
-
|
|
14518
|
-
|
|
14668
|
+
ar as KosWsEvents,
|
|
14669
|
+
Mb as LOADER_FEATURE_FLAG,
|
|
14519
14670
|
nl as LOGIN_HOST,
|
|
14520
|
-
|
|
14521
|
-
|
|
14671
|
+
ob as LOGIN_URL,
|
|
14672
|
+
dm as LoadingMessage,
|
|
14522
14673
|
Hs as LogBlock,
|
|
14523
14674
|
Co as LogBlockContainer,
|
|
14524
14675
|
Is as LogConfig,
|
|
14525
14676
|
xs as LogStream,
|
|
14526
|
-
|
|
14527
|
-
|
|
14677
|
+
yr as LogStreamContainer,
|
|
14678
|
+
_w as LogStreamServices,
|
|
14528
14679
|
mu as MODEL_DELETION_DELAY,
|
|
14529
14680
|
Yu as MiddlewareChain,
|
|
14530
14681
|
it as ModelEffects,
|
|
14531
|
-
|
|
14682
|
+
mw as MultipleFutureHandler,
|
|
14532
14683
|
jo as NestedModelContext,
|
|
14533
14684
|
rc as NetworkInterface,
|
|
14534
|
-
|
|
14535
|
-
|
|
14685
|
+
sr as NetworkInterfaceContainer,
|
|
14686
|
+
xw as NetworkInterfaceServices,
|
|
14536
14687
|
ze as ObservableData,
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14688
|
+
Qr as Ota,
|
|
14689
|
+
vv as OutsideAlerter,
|
|
14690
|
+
yb as PLUGIN_EXTENSION_NAME,
|
|
14540
14691
|
il as PORT,
|
|
14541
14692
|
El as PROFILE_LOG_DEBUG,
|
|
14542
14693
|
Tl as PROFILE_LOG_INFO,
|
|
14543
|
-
|
|
14694
|
+
wb as PROFILE_RELAX_STORE_VALIDATION,
|
|
14544
14695
|
_l as PROFILE_TOOLS_PREVIEW,
|
|
14545
14696
|
Ts as ParentModel,
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14697
|
+
bb as PluginExtensionManager,
|
|
14698
|
+
ev as ProgressBar,
|
|
14699
|
+
Sr as ReferenceConfig,
|
|
14549
14700
|
ne as RegionInfo,
|
|
14550
|
-
|
|
14701
|
+
fw as RegionServices,
|
|
14551
14702
|
C as RegistrationManager,
|
|
14552
|
-
|
|
14703
|
+
kw as Registry,
|
|
14553
14704
|
Hn as STATUS,
|
|
14554
14705
|
ae as ServiceFactory,
|
|
14555
14706
|
Pe as SingletonKosModelRegistrationFactory,
|
|
14556
|
-
|
|
14707
|
+
Xr as SoftwareInfo,
|
|
14557
14708
|
Cc as SoftwareInfoContext,
|
|
14558
|
-
|
|
14559
|
-
|
|
14709
|
+
lv as SoftwareInfoProvider,
|
|
14710
|
+
Tw as SoftwareInfoServices,
|
|
14560
14711
|
Ys as StateBean,
|
|
14561
|
-
|
|
14712
|
+
Iw as StateBeanServices,
|
|
14562
14713
|
La as StateProp,
|
|
14563
|
-
|
|
14714
|
+
$w as StatePropServices,
|
|
14564
14715
|
io as StorageDevice,
|
|
14565
14716
|
Vt as StorageDeviceContainer,
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14717
|
+
Aw as StorageDeviceServices,
|
|
14718
|
+
Yv as StudioProperties,
|
|
14719
|
+
Vv as StudioPropertiesServices,
|
|
14720
|
+
oe as SubscriptionHandlers,
|
|
14570
14721
|
Mc as TIMER_END,
|
|
14571
14722
|
wc as TIMER_EVENT,
|
|
14572
14723
|
vc as TOPIC_TIMER_TICK_EVENT,
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14724
|
+
em as TimerManager,
|
|
14725
|
+
Pm as TokenContext,
|
|
14726
|
+
uv as TokenProvider,
|
|
14576
14727
|
Cs as Topics,
|
|
14577
|
-
|
|
14578
|
-
|
|
14728
|
+
Tv as Trans,
|
|
14729
|
+
Cr as TransitionMap,
|
|
14579
14730
|
_i as Transitions,
|
|
14580
|
-
|
|
14731
|
+
so as Translation,
|
|
14581
14732
|
ke as TranslationContainer,
|
|
14582
14733
|
Rc as TranslationContainerContext,
|
|
14583
|
-
|
|
14734
|
+
Sw as TranslationContext,
|
|
14584
14735
|
en as TransportFactory,
|
|
14585
14736
|
Gs as Trouble,
|
|
14586
14737
|
Ht as TroubleContainer,
|
|
14587
|
-
|
|
14738
|
+
Ew as TroubleServices,
|
|
14588
14739
|
ge as Troubles,
|
|
14589
14740
|
gc as UsbUpdate,
|
|
14590
|
-
|
|
14591
|
-
|
|
14741
|
+
or as UsbUpdateContainer,
|
|
14742
|
+
Lw as UsbUpdateServices,
|
|
14592
14743
|
Gg as WS_EVENT_TYPE,
|
|
14593
14744
|
Os as WebSocketEvents,
|
|
14594
14745
|
Ft as WebSocketTransport,
|
|
14595
14746
|
Ba as WsEventFactory,
|
|
14596
14747
|
Kt as WsEventModel,
|
|
14597
|
-
|
|
14748
|
+
im as acceptOrgInvitation,
|
|
14598
14749
|
gl as addDaysToDate,
|
|
14599
14750
|
Wh as addFuture,
|
|
14600
14751
|
fl as addMonthsToDate,
|
|
14601
14752
|
tf as api,
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
|
|
14753
|
+
lb as applyMixins,
|
|
14754
|
+
db as arraysEqual,
|
|
14755
|
+
hw as buildConfigBeanModel,
|
|
14605
14756
|
qi as buildFuture,
|
|
14606
14757
|
Qh as buildFutureModel,
|
|
14607
14758
|
Zh as cancelFuture,
|
|
14608
|
-
|
|
14759
|
+
cw as checkAppsStarted,
|
|
14609
14760
|
Gi as convert,
|
|
14610
|
-
|
|
14611
|
-
|
|
14761
|
+
cb as convertFileSizeRaw,
|
|
14762
|
+
gw as convertWithUnits,
|
|
14612
14763
|
Hd as createBaseMessage,
|
|
14613
14764
|
Vd as createBroadcastMessageResponse,
|
|
14614
|
-
|
|
14765
|
+
Xw as createCancellablePromise,
|
|
14615
14766
|
Si as createClient,
|
|
14616
14767
|
Bd as createFosBaseMessage,
|
|
14617
14768
|
cs as createHeaders,
|
|
14618
14769
|
Yd as createKosHtpMessageResponse,
|
|
14619
14770
|
zd as createKosMessage,
|
|
14620
14771
|
qd as createKosMessageResponse,
|
|
14621
|
-
|
|
14622
|
-
|
|
14772
|
+
jw as createKosModelFutureManager,
|
|
14773
|
+
Bw as createLazyKosModelFutureManager,
|
|
14623
14774
|
qe as createMessageBody,
|
|
14624
14775
|
bd as createModelDependency,
|
|
14625
|
-
|
|
14776
|
+
Eb as createOptionKey,
|
|
14626
14777
|
yt as createPropKey,
|
|
14627
14778
|
ls as createReadableStream,
|
|
14628
14779
|
jd as createStudioMessage,
|
|
@@ -14637,8 +14788,8 @@ export {
|
|
|
14637
14788
|
as as executeDependentModelLifecycle,
|
|
14638
14789
|
vd as executeListLifecycle,
|
|
14639
14790
|
od as extractTrailingWildcard,
|
|
14640
|
-
|
|
14641
|
-
|
|
14791
|
+
mv as fetchModel,
|
|
14792
|
+
Hb as findModel,
|
|
14642
14793
|
Mu as findModels,
|
|
14643
14794
|
pl as formatDate,
|
|
14644
14795
|
hl as formatDateSince,
|
|
@@ -14646,91 +14797,91 @@ export {
|
|
|
14646
14797
|
ml as formatTime,
|
|
14647
14798
|
ed as get,
|
|
14648
14799
|
_u as getAllKosCompanionModels,
|
|
14649
|
-
|
|
14650
|
-
|
|
14800
|
+
uy as getCalendarMonthArray,
|
|
14801
|
+
Wp as getCompanionMixin,
|
|
14651
14802
|
mh as getConfigBean,
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14803
|
+
hy as getDayStrings,
|
|
14804
|
+
Rv as getDays,
|
|
14805
|
+
ay as getDaysArray,
|
|
14655
14806
|
di as getDaysInMonth,
|
|
14656
14807
|
wd as getDependenciesByLifecycle,
|
|
14657
|
-
|
|
14658
|
-
|
|
14808
|
+
xv as getFormattedDate,
|
|
14809
|
+
Av as getFormattedMonth,
|
|
14659
14810
|
Ac as getFormattedMonthsArray,
|
|
14660
14811
|
we as getFormattedYear,
|
|
14661
|
-
|
|
14662
|
-
|
|
14812
|
+
dy as getFormattedYearsArray,
|
|
14813
|
+
yw as getFutures,
|
|
14663
14814
|
sd as getHttpRouteHandlers,
|
|
14664
|
-
|
|
14815
|
+
Kb as getKosCompanionModel,
|
|
14665
14816
|
Lg as getKosLocalizationDescriptor,
|
|
14666
14817
|
Cl as getKosMessageLogging,
|
|
14667
14818
|
vu as getKosModel,
|
|
14668
14819
|
Se as getKosModelSync,
|
|
14669
|
-
|
|
14820
|
+
Bb as getKosModelType,
|
|
14670
14821
|
oh as getKosSessionKey,
|
|
14671
14822
|
Ms as getLastDayOfMonth,
|
|
14672
|
-
|
|
14823
|
+
Ow as getLocalizationDescriptor,
|
|
14673
14824
|
Dl as getLogLevel,
|
|
14674
14825
|
Pl as getLogMessageToStudio,
|
|
14675
14826
|
Jo as getMessageBody,
|
|
14676
|
-
|
|
14677
|
-
|
|
14827
|
+
cy as getMonthsArray,
|
|
14828
|
+
zb as getObservableCompanions,
|
|
14678
14829
|
ye as getQueryParams,
|
|
14679
|
-
|
|
14830
|
+
lw as getStartedApps,
|
|
14680
14831
|
Ag as getTranslations,
|
|
14681
|
-
|
|
14682
|
-
|
|
14832
|
+
ly as getYearsArray,
|
|
14833
|
+
qp as hasCompanionMixin,
|
|
14683
14834
|
hh as hasDecimals,
|
|
14684
|
-
|
|
14685
|
-
|
|
14835
|
+
zr as hasHttpRouteHandlers,
|
|
14836
|
+
Hw as hasKosModelFutureSupport,
|
|
14686
14837
|
Vo as hasKosProfile,
|
|
14687
14838
|
nd as hasTrailingWildcard,
|
|
14688
14839
|
jl as hslStringToHex,
|
|
14689
14840
|
Ul as hslToHex,
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
14841
|
+
Sb as httpDelete,
|
|
14842
|
+
nv as initKosProvider,
|
|
14843
|
+
Gw as inspectCompanionMixin,
|
|
14844
|
+
Kw as inspectFutureObservability,
|
|
14694
14845
|
Ni as isBoolean,
|
|
14695
14846
|
fu as isKosCompanionTypeFactory,
|
|
14696
14847
|
$s as isKosDataModel,
|
|
14697
|
-
|
|
14848
|
+
vb as isKosLoggingEnabled,
|
|
14698
14849
|
be as isKosModel,
|
|
14699
14850
|
Ei as isKosModelContainer,
|
|
14700
|
-
|
|
14851
|
+
Gr as isKosModelReady,
|
|
14701
14852
|
li as isLeapYear,
|
|
14702
|
-
|
|
14853
|
+
Xb as isLocalRefId,
|
|
14703
14854
|
Mo as isNumber,
|
|
14704
|
-
|
|
14705
|
-
|
|
14855
|
+
xb as isPrintable,
|
|
14856
|
+
Dw as isTroubleAware,
|
|
14706
14857
|
vs as isValidDate,
|
|
14707
|
-
|
|
14858
|
+
re as kosAction,
|
|
14708
14859
|
Y as kosAutoEffect,
|
|
14709
14860
|
Ee as kosChild,
|
|
14710
|
-
|
|
14711
|
-
|
|
14861
|
+
Tb as kosCompanion,
|
|
14862
|
+
Xv as kosComponent,
|
|
14712
14863
|
Ai as kosComputed,
|
|
14713
14864
|
Eo as kosConfigBean,
|
|
14714
|
-
|
|
14715
|
-
|
|
14865
|
+
pw as kosConfigProperty,
|
|
14866
|
+
Ib as kosContext,
|
|
14716
14867
|
Xt as kosDependency,
|
|
14717
14868
|
uh as kosEffect,
|
|
14718
14869
|
Ie as kosFetch,
|
|
14719
14870
|
Tc as kosFuture,
|
|
14720
|
-
|
|
14871
|
+
Db as kosLogger,
|
|
14721
14872
|
P as kosModel,
|
|
14722
14873
|
rd as kosModelEffect,
|
|
14723
14874
|
Li as kosObservable,
|
|
14724
14875
|
bo as kosParentAware,
|
|
14725
|
-
|
|
14726
|
-
|
|
14727
|
-
|
|
14728
|
-
|
|
14876
|
+
Cb as kosReference,
|
|
14877
|
+
Yw as kosStateBean,
|
|
14878
|
+
qw as kosStateProp,
|
|
14879
|
+
Pb as kosSubscribe,
|
|
14729
14880
|
k as kosTopicHandler,
|
|
14730
14881
|
un as kosWhen,
|
|
14731
|
-
|
|
14732
|
-
|
|
14733
|
-
|
|
14882
|
+
rm as login,
|
|
14883
|
+
Zv as makeAutoObservable,
|
|
14884
|
+
Qv as makeObservable,
|
|
14734
14885
|
vh as mapConfigBeanModelToDto,
|
|
14735
14886
|
Yo as mapDataToModel,
|
|
14736
14887
|
bh as mapDtoToConfigBeanModel,
|
|
@@ -14741,137 +14892,137 @@ export {
|
|
|
14741
14892
|
es as modelFactory,
|
|
14742
14893
|
hd as modelTypeEventTopicFactory,
|
|
14743
14894
|
ph as modifyConfigBean,
|
|
14744
|
-
|
|
14745
|
-
|
|
14895
|
+
bw as modifyFuture,
|
|
14896
|
+
Qb as pairedClientHeartbeat,
|
|
14746
14897
|
Zu as pipe,
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
|
|
14750
|
-
|
|
14751
|
-
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
|
|
14898
|
+
fr as post,
|
|
14899
|
+
Vb as preloadKosModel,
|
|
14900
|
+
gb as processId,
|
|
14901
|
+
qb as processMiddleware,
|
|
14902
|
+
Ob as put,
|
|
14903
|
+
Gb as registerCompanionModel,
|
|
14904
|
+
Gp as registerCoreModels,
|
|
14905
|
+
ur as registerExtensionPoint,
|
|
14906
|
+
Ab as registerHttpRoutes,
|
|
14756
14907
|
Iu as registerKosModel,
|
|
14757
14908
|
Tu as registerLegacyModel,
|
|
14758
14909
|
wu as resetKosModel,
|
|
14759
|
-
|
|
14910
|
+
nm as resetPassword,
|
|
14760
14911
|
zu as resolveBaseUrl,
|
|
14761
14912
|
_d as resolveChild,
|
|
14762
|
-
|
|
14763
|
-
|
|
14913
|
+
ub as resolveContainerDeltas,
|
|
14914
|
+
fb as resolveItemListDeltas,
|
|
14764
14915
|
on as resolveKosCompanion,
|
|
14765
|
-
|
|
14916
|
+
sw as resolveKosContext,
|
|
14766
14917
|
Ol as resolveKosProfiles,
|
|
14767
|
-
|
|
14918
|
+
hb as resolveListDeltas,
|
|
14768
14919
|
ue as resolveServiceUrl,
|
|
14769
14920
|
Bl as resolveVariable,
|
|
14770
|
-
|
|
14771
|
-
|
|
14772
|
-
|
|
14773
|
-
|
|
14921
|
+
Jb as retryWithExponentialBackoff,
|
|
14922
|
+
iw as sendAsyncIntent,
|
|
14923
|
+
Nb as sendBroadcastMessage,
|
|
14924
|
+
nw as sendIntent,
|
|
14774
14925
|
Zd as sendKosHttpMessageResponse,
|
|
14775
|
-
|
|
14926
|
+
Lb as sendKosMessage,
|
|
14776
14927
|
Wd as sendKosMessageResponse,
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14785
|
-
|
|
14786
|
-
|
|
14787
|
-
|
|
14788
|
-
|
|
14789
|
-
|
|
14790
|
-
|
|
14928
|
+
ew as sendRequest,
|
|
14929
|
+
Fb as sendStudioMessage,
|
|
14930
|
+
kb as sendStudioMessageRequest,
|
|
14931
|
+
zw as setupCompanionDecoratorMixin,
|
|
14932
|
+
Vp as setupCompleteFutureSupport,
|
|
14933
|
+
Nw as setupMinimalFutureSupport,
|
|
14934
|
+
om as startPasswordReset,
|
|
14935
|
+
Qm as stringComponentInsert,
|
|
14936
|
+
Jw as studioAcceptOrgInvitation,
|
|
14937
|
+
Ww as studioLogin,
|
|
14938
|
+
Qw as studioResetPassword,
|
|
14939
|
+
Zw as studioStartPasswordReset,
|
|
14940
|
+
Vw as subscribeStore,
|
|
14941
|
+
tw as syncPublish,
|
|
14791
14942
|
gd as transitionToActive,
|
|
14792
14943
|
yd as transitionToInit,
|
|
14793
14944
|
md as transitionToLoad,
|
|
14794
14945
|
pd as transitionToReady,
|
|
14795
|
-
|
|
14796
|
-
|
|
14946
|
+
Rb as transitionToUnload,
|
|
14947
|
+
Cw as troubleByTypeReducer,
|
|
14797
14948
|
og as troubleDataFactory,
|
|
14798
|
-
|
|
14799
|
-
|
|
14800
|
-
|
|
14801
|
-
|
|
14949
|
+
jb as unloadKosModel,
|
|
14950
|
+
Zb as updateCompanionModelRegistration,
|
|
14951
|
+
Wb as updateModelRegistration,
|
|
14952
|
+
Qp as updateRegion,
|
|
14802
14953
|
Cn as updateTimeZone,
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14954
|
+
ky as useAmPmValues,
|
|
14955
|
+
My as useCalendarDayArray,
|
|
14956
|
+
Pv as useConfigBean,
|
|
14957
|
+
ny as useConfigProperty,
|
|
14958
|
+
tv as useContextModel,
|
|
14959
|
+
bm as useContextModelHierarchy,
|
|
14960
|
+
fy as useDateArrays,
|
|
14961
|
+
Lv as useDateProps,
|
|
14962
|
+
kv as useDateRelativeConfig,
|
|
14963
|
+
Ty as useDateRelativeData,
|
|
14964
|
+
wy as useDayNames,
|
|
14965
|
+
by as useDayOptions,
|
|
14815
14966
|
kc as useDays,
|
|
14816
|
-
|
|
14817
|
-
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14967
|
+
Hm as useDevice,
|
|
14968
|
+
vy as useFormattedDate,
|
|
14969
|
+
Ny as useFormattedTime,
|
|
14970
|
+
Fv as useFunctionWarmup,
|
|
14971
|
+
Ly as useHourValues,
|
|
14972
|
+
Im as useKosCore,
|
|
14973
|
+
Nv as useKosDateFormats,
|
|
14823
14974
|
Q as useKosModel,
|
|
14824
|
-
|
|
14975
|
+
Cy as useKosRegions,
|
|
14825
14976
|
Oc as useKosTime,
|
|
14826
|
-
|
|
14827
|
-
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14841
|
-
|
|
14977
|
+
av as useKosTimeContext,
|
|
14978
|
+
jv as useKosTimeFormats,
|
|
14979
|
+
Uv as useKosTimeZones,
|
|
14980
|
+
Iv as useKosTranslation,
|
|
14981
|
+
fv as useKosTranslationContext,
|
|
14982
|
+
Bv as useLocalComputed,
|
|
14983
|
+
rv as useModelFromHierarchy,
|
|
14984
|
+
py as useMonths,
|
|
14985
|
+
my as useMonthsOptions,
|
|
14986
|
+
Hv as useMutationObserver,
|
|
14987
|
+
Km as useNetworkInterfaceContainer,
|
|
14988
|
+
zm as useOta,
|
|
14989
|
+
Kv as usePressGesture,
|
|
14990
|
+
Ay as useProjectReload,
|
|
14991
|
+
zv as useRegionTimeProps,
|
|
14992
|
+
Ey as useRegionalTimeDate,
|
|
14842
14993
|
Dc as useSoftwareInfo,
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14994
|
+
dv as useSoftwareInfoContext,
|
|
14995
|
+
Mv as useStateProperty,
|
|
14996
|
+
Vm as useStorageDeviceContainer,
|
|
14846
14997
|
Pn as useSuspenseData,
|
|
14847
|
-
|
|
14848
|
-
|
|
14998
|
+
Fy as useTimeOptions,
|
|
14999
|
+
Uy as useTimeProps,
|
|
14849
15000
|
Rn as useTimeValues,
|
|
14850
|
-
|
|
14851
|
-
|
|
15001
|
+
Ev as useTimer,
|
|
15002
|
+
sy as useTranslationContainer,
|
|
14852
15003
|
xc as useTroubleContainerModel,
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
15004
|
+
Ov as useTroubleModel,
|
|
15005
|
+
Sv as useTroublePresence,
|
|
15006
|
+
ry as useUsbUpdateContainer,
|
|
14856
15007
|
Lc as useYears,
|
|
14857
|
-
|
|
15008
|
+
gy as useYearsOptions,
|
|
14858
15009
|
Jt as uuid,
|
|
14859
|
-
|
|
14860
|
-
|
|
15010
|
+
_b as variableToHex,
|
|
15011
|
+
aw as waitForAppToStart,
|
|
14861
15012
|
dh as waitForAppsToStart,
|
|
14862
15013
|
Ci as waitForRequest,
|
|
14863
15014
|
fe as whenReady,
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
15015
|
+
pv as withDevice,
|
|
15016
|
+
Uw as withKosModelFutures,
|
|
15017
|
+
yv as withKosTime,
|
|
15018
|
+
bv as withNetworkInterfaceContainer,
|
|
15019
|
+
wv as withOta,
|
|
15020
|
+
Gv as withProjectReloading,
|
|
15021
|
+
cv as withSoftwareInfo,
|
|
15022
|
+
_v as withStorageDeviceContainer,
|
|
15023
|
+
$v as withTranslationContainer,
|
|
15024
|
+
Dv as withTroubleContainer,
|
|
15025
|
+
Cv as withUsbUpdateContainer,
|
|
14875
15026
|
ci as wrapPromise
|
|
14876
15027
|
};
|
|
14877
15028
|
//# sourceMappingURL=index.js.map
|