@kosdev-code/kos-ui-sdk 2.1.31 → 2.1.32
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/core/core/decorators/kos-service-request.d.ts.map +1 -1
- package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
- package/index.cjs +25 -25
- package/index.cjs.map +1 -1
- package/index.js +299 -297
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -2,9 +2,9 @@ var wu = Object.defineProperty;
|
|
|
2
2
|
var Mu = (t, e, s) => e in t ? wu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
3
|
var l = (t, e, s) => (Mu(t, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
4
|
import C from "loglevel";
|
|
5
|
-
import { runInAction as X, makeAutoObservable as
|
|
5
|
+
import { runInAction as X, makeAutoObservable as Ae, observable as se, makeObservable as so, action as ro, createAtom as Eu, autorun as Ds, observe as Xi, isComputedProp as _u, reaction as xs, when as Ps, ObservableMap as no, computed as ea, isObservable as Tu } from "mobx";
|
|
6
6
|
import { makeAutoObservable as FT, makeObservable as NT } from "mobx";
|
|
7
|
-
import { createMachine as ms, invoke as
|
|
7
|
+
import { createMachine as ms, invoke as xe, state as Z, transition as D, action as q, interpret as ys, immediate as Pt } from "robot3";
|
|
8
8
|
import { format as lt, parseISO as $u } from "date-fns";
|
|
9
9
|
import { jsx as w, jsxs as bs, Fragment as Iu } from "@emotion/react/jsx-runtime";
|
|
10
10
|
import oo from "@emotion/styled";
|
|
@@ -14,7 +14,7 @@ import mt, { createContext as As, useContext as dt, useState as _, useCallback a
|
|
|
14
14
|
import { observer as sa } from "mobx-react-lite";
|
|
15
15
|
import { observer as jT } from "mobx-react-lite";
|
|
16
16
|
import { useGesture as Du } from "@use-gesture/react";
|
|
17
|
-
const io = "method", xu = "topic", Rs = "url", Kr = "request-id", ao = "response-id", ra = "status", et = "dst-addr", Pu = "src-addr",
|
|
17
|
+
const io = "method", xu = "topic", Rs = "url", Kr = "request-id", ao = "response-id", ra = "status", et = "dst-addr", Pu = "src-addr", Ve = "type", na = "ordered", oa = "tracker", Au = "Content-Type", Ru = "Cache-Control", ku = "requestId", Lu = process.env.KOS_LOGIN_URL || "http://localhost", Fu = process.env.KOS_APP_PORT || "8080", LM = `${Lu}:${Fu}`, kn = "{MODEL_ID}";
|
|
18
18
|
var Vr = /* @__PURE__ */ ((t) => (t.SEND = "/ws/log/msg/send", t.RECEIVED = "/ws/log/msg/receive", t))(Vr || {}), Nu = /* @__PURE__ */ ((t) => (t.MSG_RECEIVE = "/mock/msg/receive", t))(Nu || {});
|
|
19
19
|
const ia = "/kos/model/ready/";
|
|
20
20
|
C.info("Initializing event bus");
|
|
@@ -750,7 +750,7 @@ class QM {
|
|
|
750
750
|
return this.extensions;
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
const
|
|
753
|
+
const Se = (t = null) => (t || window.location.search.replace("?", "")).split("&").map((e) => {
|
|
754
754
|
const [s, r] = e.split("=");
|
|
755
755
|
return [s, decodeURIComponent(r || "")];
|
|
756
756
|
}).reduce((e, [s, r]) => (e[s] = r, e), {}), Xu = "studio.tools.preview", ZM = "studio.relax.store.validation", ed = "studio.log.debug", td = "studio.log.info", sd = {
|
|
@@ -763,7 +763,7 @@ const Pa = xa, nd = () => Pa.profiles || [], Wo = (t) => nd().includes(t), JM =
|
|
|
763
763
|
const t = Wo(ed), e = Wo(td);
|
|
764
764
|
return t ? "DEBUG" : e ? "INFO" : void 0;
|
|
765
765
|
}, id = () => {
|
|
766
|
-
const t =
|
|
766
|
+
const t = Se(), e = od(), r = t.kosLogLevel ?? e ?? window.kosLogLevel ?? process.env.KOS_LOG_LEVEL;
|
|
767
767
|
return r || "WARN";
|
|
768
768
|
}, ad = () => window.kosMessageLogging || process.env.KOS_MESSAGE_LOGGING === "true", cd = () => window.kosMessageStudioLogging || process.env.KOS_MESSAGE_STUDIO_LOGGING === "true", Aa = "ws-log", ld = C.methodFactory, Ra = ad(), ud = cd();
|
|
769
769
|
C.methodFactory = function(t, e, s) {
|
|
@@ -1073,7 +1073,7 @@ function Hd(t, e) {
|
|
|
1073
1073
|
const r = (t.constructor.prototype[ps] || /* @__PURE__ */ new Map()).get(e);
|
|
1074
1074
|
r && typeof t[r] == "function" && t[r]();
|
|
1075
1075
|
}
|
|
1076
|
-
const
|
|
1076
|
+
const Ge = (t, e) => {
|
|
1077
1077
|
t[ut] = t[ut] || {}, t[ut][e] = !0;
|
|
1078
1078
|
}, Yt = (t) => `{PROP_${String(t)}}`, sE = (t) => `{PROP_${String(t)}}`, zd = Yt("kosParentId"), po = (t) => (e) => {
|
|
1079
1079
|
e[or] = e[or] || {};
|
|
@@ -1212,7 +1212,7 @@ function Wd(t) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
const dE = (t) => (e, s) => {
|
|
1214
1214
|
e[bn] = e[bn] || {}, e[bn][s] = t;
|
|
1215
|
-
}, vn = g.createLogger({ name: "resolve-parameters" }),
|
|
1215
|
+
}, vn = g.createLogger({ name: "resolve-parameters" }), $e = ({
|
|
1216
1216
|
value: t,
|
|
1217
1217
|
modelId: e,
|
|
1218
1218
|
modelData: s
|
|
@@ -1223,7 +1223,7 @@ const dE = (t) => (e, s) => {
|
|
|
1223
1223
|
if (typeof r != "string" && typeof r != "object")
|
|
1224
1224
|
return r;
|
|
1225
1225
|
if (typeof r == "object")
|
|
1226
|
-
r = Object.keys(r).reduce((n, o) => (n[o] =
|
|
1226
|
+
r = Object.keys(r).reduce((n, o) => (n[o] = $e({
|
|
1227
1227
|
value: r[o],
|
|
1228
1228
|
modelId: e,
|
|
1229
1229
|
modelData: s
|
|
@@ -1272,7 +1272,7 @@ function Wt(t) {
|
|
|
1272
1272
|
if (!p)
|
|
1273
1273
|
throw new Error("Service request metadata not found for method");
|
|
1274
1274
|
try {
|
|
1275
|
-
const { default: m } = await Promise.resolve().then(() => ec), b =
|
|
1275
|
+
const { default: m } = await Promise.resolve().then(() => ec), b = $e({
|
|
1276
1276
|
value: p.path,
|
|
1277
1277
|
modelId: this.id,
|
|
1278
1278
|
modelData: this
|
|
@@ -1287,7 +1287,7 @@ function Wt(t) {
|
|
|
1287
1287
|
...(f == null ? void 0 : f.requestOptions) || {}
|
|
1288
1288
|
}, E = {};
|
|
1289
1289
|
Object.keys(v).length > 0 && (E.path = v), Object.keys(M).length > 0 && (E.query = M);
|
|
1290
|
-
const V = (p.method || "get").toLowerCase(), j = m, [te,
|
|
1290
|
+
const V = (p.method || "get").toLowerCase(), j = m, [te, Ee] = V === "get" ? await j.get(b, E, $) : V === "post" ? await j.post(
|
|
1291
1291
|
b,
|
|
1292
1292
|
E,
|
|
1293
1293
|
k,
|
|
@@ -1307,7 +1307,9 @@ function Wt(t) {
|
|
|
1307
1307
|
if (p.errorHandler)
|
|
1308
1308
|
switch (p.errorHandler.strategy) {
|
|
1309
1309
|
case "log":
|
|
1310
|
-
return console.error(
|
|
1310
|
+
return console.error(
|
|
1311
|
+
`Service request status ${Ee == null ? void 0 : Ee.status} error: ${te}`
|
|
1312
|
+
), p.errorHandler.onError && p.errorHandler.onError(
|
|
1311
1313
|
new Error(te),
|
|
1312
1314
|
this
|
|
1313
1315
|
), [null, p.errorHandler.defaultValue];
|
|
@@ -1321,8 +1323,8 @@ function Wt(t) {
|
|
|
1321
1323
|
}
|
|
1322
1324
|
return [te, null];
|
|
1323
1325
|
}
|
|
1324
|
-
let Qe =
|
|
1325
|
-
return p.transform && (Qe = p.transform(
|
|
1326
|
+
let Qe = Ee;
|
|
1327
|
+
return p.transform && (Qe = p.transform(Ee)), [null, Qe];
|
|
1326
1328
|
} catch (m) {
|
|
1327
1329
|
return [m.message || "Unknown error", null];
|
|
1328
1330
|
}
|
|
@@ -1429,7 +1431,7 @@ class Jd {
|
|
|
1429
1431
|
l(this, "context");
|
|
1430
1432
|
l(this, "disposers", /* @__PURE__ */ new Map());
|
|
1431
1433
|
l(this, "container");
|
|
1432
|
-
this.futures = ic.map(/* @__PURE__ */ new Map()), this.context = "", this.defaultContext = s || "", this.container = e,
|
|
1434
|
+
this.futures = ic.map(/* @__PURE__ */ new Map()), this.context = "", this.defaultContext = s || "", this.container = e, Ae(this);
|
|
1433
1435
|
}
|
|
1434
1436
|
get allFutures() {
|
|
1435
1437
|
return Array.from(this.futures.values());
|
|
@@ -1462,7 +1464,7 @@ class mo {
|
|
|
1462
1464
|
l(this, "_future");
|
|
1463
1465
|
l(this, "container");
|
|
1464
1466
|
l(this, "onFutureUpdate");
|
|
1465
|
-
this._future = void 0, this.container = e,
|
|
1467
|
+
this._future = void 0, this.container = e, Ae(this);
|
|
1466
1468
|
}
|
|
1467
1469
|
removeFuture() {
|
|
1468
1470
|
var e;
|
|
@@ -1575,7 +1577,7 @@ function th(t, e) {
|
|
|
1575
1577
|
}
|
|
1576
1578
|
});
|
|
1577
1579
|
}
|
|
1578
|
-
const
|
|
1580
|
+
const Be = (t) => {
|
|
1579
1581
|
const e = th(qa, t);
|
|
1580
1582
|
return new e(t);
|
|
1581
1583
|
};
|
|
@@ -1588,9 +1590,9 @@ class Ka {
|
|
|
1588
1590
|
l(this, "_map");
|
|
1589
1591
|
l(this, "_key");
|
|
1590
1592
|
l(this, "data");
|
|
1591
|
-
this._container = e, this._map = se.map(/* @__PURE__ */ new Map()), this._key = s, this.data =
|
|
1593
|
+
this._container = e, this._map = se.map(/* @__PURE__ */ new Map()), this._key = s, this.data = Be(), this.generateIndex(), Ds(() => {
|
|
1592
1594
|
this._container.revision && this.generateIndex();
|
|
1593
|
-
}),
|
|
1595
|
+
}), Ae(this);
|
|
1594
1596
|
}
|
|
1595
1597
|
refresh() {
|
|
1596
1598
|
this.generateIndex();
|
|
@@ -1653,7 +1655,7 @@ function rh(t, e, s = []) {
|
|
|
1653
1655
|
);
|
|
1654
1656
|
}
|
|
1655
1657
|
const le = g.createLogger({ name: "kos-container-model" });
|
|
1656
|
-
class
|
|
1658
|
+
class Ye {
|
|
1657
1659
|
constructor(e) {
|
|
1658
1660
|
l(this, "_data");
|
|
1659
1661
|
l(this, "_sortKey");
|
|
@@ -1678,7 +1680,7 @@ class Ge {
|
|
|
1678
1680
|
) : {}, r = (e == null ? void 0 : e.indexMap) || {};
|
|
1679
1681
|
this._optionsMap = { ...r, ...s };
|
|
1680
1682
|
const n = e != null && e.indexMap ? Object.keys(e.indexMap).reduce((o, i) => (o[i] = void 0, o), {}) : {};
|
|
1681
|
-
this._index = se.map(n), this.idx =
|
|
1683
|
+
this._index = se.map(n), this.idx = Be(), this._parentId = e == null ? void 0 : e.parentId, this._maxCapacity = e == null ? void 0 : e.maxCapacity, this._evictionStrategy = (e == null ? void 0 : e.evictionStrategy) || "fifo", this._evictionBatchSize = (e == null ? void 0 : e.evictionBatchSize) ?? Math.max(10, Math.ceil(((e == null ? void 0 : e.maxCapacity) ?? 100) * 0.1)), this._customEvictionFilter = e == null ? void 0 : e.customEvictionFilter, this._evictionStrategy === "lru" && this._maxCapacity && (this._accessTimes = se.map(/* @__PURE__ */ new Map())), Ae(this), this.init();
|
|
1682
1684
|
}
|
|
1683
1685
|
init() {
|
|
1684
1686
|
Object.keys(this._optionsMap).forEach((e) => {
|
|
@@ -1752,7 +1754,7 @@ class Ge {
|
|
|
1752
1754
|
}
|
|
1753
1755
|
this.removeModel(e);
|
|
1754
1756
|
try {
|
|
1755
|
-
await
|
|
1757
|
+
await je(s);
|
|
1756
1758
|
} catch (r) {
|
|
1757
1759
|
throw le.error(`Failed to destroy model ${e}:`, r), r;
|
|
1758
1760
|
}
|
|
@@ -1775,7 +1777,7 @@ class Ge {
|
|
|
1775
1777
|
}
|
|
1776
1778
|
this.removeAll(e);
|
|
1777
1779
|
const r = await Promise.allSettled(
|
|
1778
|
-
s.map((o) =>
|
|
1780
|
+
s.map((o) => je(o))
|
|
1779
1781
|
);
|
|
1780
1782
|
r.forEach((o, i) => {
|
|
1781
1783
|
o.status === "rejected" && le.error(
|
|
@@ -1974,7 +1976,7 @@ class Ge {
|
|
|
1974
1976
|
parentId: this._parentId,
|
|
1975
1977
|
strategy: this._evictionStrategy
|
|
1976
1978
|
}
|
|
1977
|
-
), this.removeModel(s.id, !0),
|
|
1979
|
+
), this.removeModel(s.id, !0), je(s).catch(
|
|
1978
1980
|
(r) => le.error(`Failed to destroy evicted model ${s.id}:`, r)
|
|
1979
1981
|
);
|
|
1980
1982
|
}
|
|
@@ -1991,7 +1993,7 @@ class Ge {
|
|
|
1991
1993
|
async clear() {
|
|
1992
1994
|
this._data.forEach((e) => {
|
|
1993
1995
|
const s = e.id;
|
|
1994
|
-
|
|
1996
|
+
je(e).then(() => {
|
|
1995
1997
|
le.debug(`${s} destroyed, removing from map`), this.removeModel(s, !0);
|
|
1996
1998
|
}).catch((r) => le.error(r));
|
|
1997
1999
|
}), this.increment();
|
|
@@ -2028,7 +2030,7 @@ const Me = async (t) => {
|
|
|
2028
2030
|
} else
|
|
2029
2031
|
throw new Error("Data model must have a valid ID");
|
|
2030
2032
|
return t;
|
|
2031
|
-
},
|
|
2033
|
+
}, je = async (t) => {
|
|
2032
2034
|
await T.getInstance().whenReady(), await T.getInstance().modelManager.initiateDestroyModel(t);
|
|
2033
2035
|
}, yE = async (t) => {
|
|
2034
2036
|
if (await T.getInstance().whenReady(), !t.id)
|
|
@@ -2051,7 +2053,7 @@ const Me = async (t) => {
|
|
|
2051
2053
|
throw new Error("Model ID is required");
|
|
2052
2054
|
const e = T.getInstance().modelManager.getModelById(t);
|
|
2053
2055
|
return { model: e == null ? void 0 : e.modelData, type: e == null ? void 0 : e.modelTypeName };
|
|
2054
|
-
},
|
|
2056
|
+
}, He = (t) => {
|
|
2055
2057
|
if (!t)
|
|
2056
2058
|
throw new Error("Model ID is required");
|
|
2057
2059
|
const e = T.getInstance().modelManager.getModelById(t);
|
|
@@ -2095,7 +2097,7 @@ const Me = async (t) => {
|
|
|
2095
2097
|
return Array.from(s.companionModels.all()).find(
|
|
2096
2098
|
(n) => e(n.modelData)
|
|
2097
2099
|
);
|
|
2098
|
-
},
|
|
2100
|
+
}, Re = (t) => (e) => Object.getPrototypeOf(e).modelTypeId === t, Fn = (t) => {
|
|
2099
2101
|
const e = T.getInstance().modelManager.getModelById(t.id);
|
|
2100
2102
|
if (!e)
|
|
2101
2103
|
throw new Error("Model not found");
|
|
@@ -2197,7 +2199,7 @@ class Va {
|
|
|
2197
2199
|
l(this, "guard");
|
|
2198
2200
|
l(this, "factory");
|
|
2199
2201
|
l(this, "relatedModels", []);
|
|
2200
|
-
this.singleton = e.singleton, this.guard =
|
|
2202
|
+
this.singleton = e.singleton, this.guard = Re(e.type), this.type = e.type, this.loader = `kos.extension.model.loader.${e.type}`, this.factory = e.factory, this.class = e.class;
|
|
2201
2203
|
}
|
|
2202
2204
|
addRelatedModel(e) {
|
|
2203
2205
|
this.relatedModels.push(e);
|
|
@@ -2209,7 +2211,7 @@ class Va {
|
|
|
2209
2211
|
P.model.register({})(this.registration()), this.registerRelatedModels();
|
|
2210
2212
|
}
|
|
2211
2213
|
}
|
|
2212
|
-
class
|
|
2214
|
+
class Ce extends Va {
|
|
2213
2215
|
constructor(e) {
|
|
2214
2216
|
super({
|
|
2215
2217
|
...e,
|
|
@@ -2221,7 +2223,7 @@ class Se extends Va {
|
|
|
2221
2223
|
const s = this.factory(e);
|
|
2222
2224
|
return {
|
|
2223
2225
|
get: () => {
|
|
2224
|
-
const r =
|
|
2226
|
+
const r = He(e);
|
|
2225
2227
|
if (!r)
|
|
2226
2228
|
throw new Error("Model not found with id " + e);
|
|
2227
2229
|
if (this.guard(r))
|
|
@@ -2269,7 +2271,7 @@ class Se extends Va {
|
|
|
2269
2271
|
};
|
|
2270
2272
|
}
|
|
2271
2273
|
}
|
|
2272
|
-
class
|
|
2274
|
+
class ke extends Va {
|
|
2273
2275
|
constructor(e) {
|
|
2274
2276
|
super({
|
|
2275
2277
|
...e,
|
|
@@ -2281,7 +2283,7 @@ class Re extends Va {
|
|
|
2281
2283
|
const e = this.factory;
|
|
2282
2284
|
return {
|
|
2283
2285
|
get: () => {
|
|
2284
|
-
const r =
|
|
2286
|
+
const r = He(this.type);
|
|
2285
2287
|
if (!r)
|
|
2286
2288
|
throw new Error("Model not found with id " + this.type);
|
|
2287
2289
|
if (this.guard(r))
|
|
@@ -2341,7 +2343,7 @@ function uh(t, e, s) {
|
|
|
2341
2343
|
const r = (o = t[or]) == null ? void 0 : o.parentId;
|
|
2342
2344
|
if (!r)
|
|
2343
2345
|
return;
|
|
2344
|
-
const n =
|
|
2346
|
+
const n = $e({
|
|
2345
2347
|
value: r,
|
|
2346
2348
|
modelData: s,
|
|
2347
2349
|
modelId: e
|
|
@@ -2357,12 +2359,12 @@ function dh(t) {
|
|
|
2357
2359
|
function hh(t, e) {
|
|
2358
2360
|
const s = t[N] || {};
|
|
2359
2361
|
Object.entries(s).forEach(([r, n]) => {
|
|
2360
|
-
const o =
|
|
2362
|
+
const o = $e({
|
|
2361
2363
|
value: n.id || n.modelType,
|
|
2362
2364
|
modelData: t,
|
|
2363
2365
|
modelId: e
|
|
2364
2366
|
}), i = Object.entries((n == null ? void 0 : n.options) || {}).reduce(
|
|
2365
|
-
(a, [c, u]) => (a[c] =
|
|
2367
|
+
(a, [c, u]) => (a[c] = $e({
|
|
2366
2368
|
value: u,
|
|
2367
2369
|
modelData: t,
|
|
2368
2370
|
modelId: e
|
|
@@ -2555,7 +2557,7 @@ function mh(t, e) {
|
|
|
2555
2557
|
...a,
|
|
2556
2558
|
// If parentId is not provided, use the modelId (first constructor parameter)
|
|
2557
2559
|
parentId: a.parentId || e
|
|
2558
|
-
}, d = new
|
|
2560
|
+
}, d = new Ye(u);
|
|
2559
2561
|
t[r] = d, t[ut] || (t[ut] = {}), t[ut][r] = d, n && (t.getModel = (h) => d.getModel(h), t.addModel = (h) => {
|
|
2560
2562
|
d.addModel(h);
|
|
2561
2563
|
}, t.removeModel = (h) => {
|
|
@@ -2653,7 +2655,7 @@ function yh(t, e) {
|
|
|
2653
2655
|
}
|
|
2654
2656
|
function bh(t) {
|
|
2655
2657
|
try {
|
|
2656
|
-
return
|
|
2658
|
+
return Ae(t);
|
|
2657
2659
|
} catch (e) {
|
|
2658
2660
|
return Nn.error("Failed to make observable:", e), t;
|
|
2659
2661
|
}
|
|
@@ -2683,10 +2685,10 @@ function R(t) {
|
|
|
2683
2685
|
const n = new Proxy(s, vh);
|
|
2684
2686
|
if (r.singleton !== void 0) {
|
|
2685
2687
|
let a;
|
|
2686
|
-
r.singleton ? a = new
|
|
2688
|
+
r.singleton ? a = new ke({
|
|
2687
2689
|
class: n,
|
|
2688
2690
|
type: r.modelTypeId
|
|
2689
|
-
}) : a = new
|
|
2691
|
+
}) : a = new Ce({
|
|
2690
2692
|
class: n,
|
|
2691
2693
|
type: r.modelTypeId
|
|
2692
2694
|
}), Object.defineProperty(n, "Registration", {
|
|
@@ -3221,7 +3223,7 @@ const Qa = (t, e, s) => {
|
|
|
3221
3223
|
}
|
|
3222
3224
|
}, Qh = (t, e) => {
|
|
3223
3225
|
var f;
|
|
3224
|
-
const s = e.id || e.modelType, r =
|
|
3226
|
+
const s = e.id || e.modelType, r = $e({
|
|
3225
3227
|
value: s,
|
|
3226
3228
|
modelData: t.modelData,
|
|
3227
3229
|
modelId: t.modelId
|
|
@@ -3231,7 +3233,7 @@ const Qa = (t, e, s) => {
|
|
|
3231
3233
|
);
|
|
3232
3234
|
const o = Object.keys((e == null ? void 0 : e.options) || {}).reduce((p, m) => {
|
|
3233
3235
|
const b = e.options[m];
|
|
3234
|
-
return p[m] =
|
|
3236
|
+
return p[m] = $e({
|
|
3235
3237
|
value: b,
|
|
3236
3238
|
modelData: t.modelData,
|
|
3237
3239
|
modelId: t.modelId
|
|
@@ -3668,7 +3670,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
|
|
|
3668
3670
|
[y.INACTIVE]: Z(
|
|
3669
3671
|
D(L.GO_ACTIVE, y.ACTIVATING)
|
|
3670
3672
|
),
|
|
3671
|
-
[y.ACTIVATING]:
|
|
3673
|
+
[y.ACTIVATING]: xe(
|
|
3672
3674
|
() => (t.activeStatus = y.ACTIVATING, t.activate()),
|
|
3673
3675
|
D(
|
|
3674
3676
|
"done",
|
|
@@ -3688,7 +3690,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
|
|
|
3688
3690
|
[y.ACTIVE]: Z(
|
|
3689
3691
|
D(L.GO_INACTIVE, y.DEACTIVATING)
|
|
3690
3692
|
),
|
|
3691
|
-
[y.DEACTIVATING]:
|
|
3693
|
+
[y.DEACTIVATING]: xe(
|
|
3692
3694
|
() => (t.activeStatus = y.DEACTIVATING, t.deactivate()),
|
|
3693
3695
|
D(
|
|
3694
3696
|
"done",
|
|
@@ -3746,7 +3748,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
|
|
|
3746
3748
|
D(L.CREATE, y.CREATED)
|
|
3747
3749
|
),
|
|
3748
3750
|
[y.CREATED]: Z(Pt(y.INITIALIZING)),
|
|
3749
|
-
[y.INITIALIZING]:
|
|
3751
|
+
[y.INITIALIZING]: xe(
|
|
3750
3752
|
() => (oe(() => {
|
|
3751
3753
|
t.status = y.INITIALIZING;
|
|
3752
3754
|
}), t.init()),
|
|
@@ -3768,7 +3770,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
|
|
|
3768
3770
|
)
|
|
3769
3771
|
),
|
|
3770
3772
|
[y.INITIALIZED]: Z(Pt(y.LOADING)),
|
|
3771
|
-
[y.LOADING]:
|
|
3773
|
+
[y.LOADING]: xe(
|
|
3772
3774
|
() => (oe(() => {
|
|
3773
3775
|
t.status = y.LOADING;
|
|
3774
3776
|
}), t.load()),
|
|
@@ -3791,7 +3793,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
|
|
|
3791
3793
|
Pt(y.READYING),
|
|
3792
3794
|
D(L.UNLOAD, y.UNLOADING)
|
|
3793
3795
|
),
|
|
3794
|
-
[y.RESETTING]:
|
|
3796
|
+
[y.RESETTING]: xe(
|
|
3795
3797
|
() => {
|
|
3796
3798
|
var n;
|
|
3797
3799
|
return oe(() => {
|
|
@@ -3806,7 +3808,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
|
|
|
3806
3808
|
})
|
|
3807
3809
|
)
|
|
3808
3810
|
),
|
|
3809
|
-
[y.READYING]:
|
|
3811
|
+
[y.READYING]: xe(
|
|
3810
3812
|
() => (oe(() => {
|
|
3811
3813
|
t.status = y.READYING;
|
|
3812
3814
|
}), t.ready()),
|
|
@@ -3952,7 +3954,7 @@ class Xa {
|
|
|
3952
3954
|
break;
|
|
3953
3955
|
}
|
|
3954
3956
|
}
|
|
3955
|
-
if (e || (e = (s =
|
|
3957
|
+
if (e || (e = (s = He(
|
|
3956
3958
|
Ja
|
|
3957
3959
|
)) == null ? void 0 : s.model), !e)
|
|
3958
3960
|
throw this.logger.error(
|
|
@@ -4089,7 +4091,7 @@ class Xa {
|
|
|
4089
4091
|
function OE(t, e) {
|
|
4090
4092
|
if (!Ln(t))
|
|
4091
4093
|
return;
|
|
4092
|
-
const s =
|
|
4094
|
+
const s = He(Ja);
|
|
4093
4095
|
if (!(s != null && s.model))
|
|
4094
4096
|
throw e.error(
|
|
4095
4097
|
"Cannot register HTTP routes: BrowserRouter not found. Make sure to include BrowserRouter in your model dependencies or create an instance."
|
|
@@ -4262,7 +4264,7 @@ async function Vs(t, e, s, r, n) {
|
|
|
4262
4264
|
...s
|
|
4263
4265
|
};
|
|
4264
4266
|
n && (c.body = JSON.stringify(n));
|
|
4265
|
-
const u = await
|
|
4267
|
+
const u = await Fe(a, c);
|
|
4266
4268
|
return u.status < 200 || u.status >= 400 ? [`${u.statusText || yf}`, null] : [null, (await u.json()).data];
|
|
4267
4269
|
}
|
|
4268
4270
|
function tt() {
|
|
@@ -4279,9 +4281,9 @@ function tt() {
|
|
|
4279
4281
|
)
|
|
4280
4282
|
};
|
|
4281
4283
|
}
|
|
4282
|
-
const
|
|
4284
|
+
const Le = tt(), ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4283
4285
|
__proto__: null,
|
|
4284
|
-
default:
|
|
4286
|
+
default: Le
|
|
4285
4287
|
}, Symbol.toStringTag, { value: "Module" })), ot = g.createLogger({
|
|
4286
4288
|
name: "kos-service-request-manager",
|
|
4287
4289
|
group: "Model"
|
|
@@ -4290,7 +4292,7 @@ function bf(t, e) {
|
|
|
4290
4292
|
return !t.condition || t.condition(e);
|
|
4291
4293
|
}
|
|
4292
4294
|
function vf(t, e) {
|
|
4293
|
-
return
|
|
4295
|
+
return $e({
|
|
4294
4296
|
value: t.path,
|
|
4295
4297
|
modelId: e.id,
|
|
4296
4298
|
modelData: e
|
|
@@ -4298,7 +4300,7 @@ function vf(t, e) {
|
|
|
4298
4300
|
}
|
|
4299
4301
|
function wf(t, e) {
|
|
4300
4302
|
if (t.pathParams)
|
|
4301
|
-
return
|
|
4303
|
+
return $e({
|
|
4302
4304
|
value: typeof t.pathParams == "function" ? t.pathParams(e) : t.pathParams,
|
|
4303
4305
|
modelId: e.id,
|
|
4304
4306
|
modelData: e
|
|
@@ -4306,7 +4308,7 @@ function wf(t, e) {
|
|
|
4306
4308
|
}
|
|
4307
4309
|
function Mf(t, e) {
|
|
4308
4310
|
if (t.queryParams)
|
|
4309
|
-
return
|
|
4311
|
+
return $e({
|
|
4310
4312
|
value: typeof t.queryParams == "function" ? t.queryParams(e) : t.queryParams,
|
|
4311
4313
|
modelId: e.id,
|
|
4312
4314
|
modelData: e
|
|
@@ -4314,7 +4316,7 @@ function Mf(t, e) {
|
|
|
4314
4316
|
}
|
|
4315
4317
|
function Ef(t, e) {
|
|
4316
4318
|
if (t.body)
|
|
4317
|
-
return
|
|
4319
|
+
return $e({
|
|
4318
4320
|
value: typeof t.body == "function" ? t.body(e) : t.body,
|
|
4319
4321
|
modelId: e.id,
|
|
4320
4322
|
modelData: e
|
|
@@ -4497,7 +4499,7 @@ class If {
|
|
|
4497
4499
|
* Make HTTP request using existing KOS API client
|
|
4498
4500
|
*/
|
|
4499
4501
|
async makeRequest(e, s, r, n) {
|
|
4500
|
-
const o =
|
|
4502
|
+
const o = Le;
|
|
4501
4503
|
switch (s) {
|
|
4502
4504
|
case "get":
|
|
4503
4505
|
return await o.get(e, r);
|
|
@@ -4669,7 +4671,7 @@ const Sf = ({
|
|
|
4669
4671
|
`, n += `${Rs}:${t}
|
|
4670
4672
|
`, n += `${Kr}:${e}
|
|
4671
4673
|
`, r && (n += `${et}:${r}
|
|
4672
|
-
`), n += `${
|
|
4674
|
+
`), n += `${Ve}:kos.studio.request
|
|
4673
4675
|
`, n += `
|
|
4674
4676
|
`, n;
|
|
4675
4677
|
}, Cf = ({
|
|
@@ -4688,7 +4690,7 @@ const Sf = ({
|
|
|
4688
4690
|
`, r && (i += `${et}:${r}
|
|
4689
4691
|
`), n && (i += `${na}:true
|
|
4690
4692
|
`), o && (i += `${oa}:${o}
|
|
4691
|
-
`), i += `${
|
|
4693
|
+
`), i += `${Ve}:fos.http.request
|
|
4692
4694
|
`, i += `
|
|
4693
4695
|
`, i;
|
|
4694
4696
|
}, Df = ({
|
|
@@ -4711,7 +4713,7 @@ const Sf = ({
|
|
|
4711
4713
|
`), a && Object.keys(a).forEach((u) => {
|
|
4712
4714
|
c += `${u}:${a[u]}
|
|
4713
4715
|
`;
|
|
4714
|
-
}), c += `${
|
|
4716
|
+
}), c += `${Ve}:${i ? "fos" : "kos"}.http.request
|
|
4715
4717
|
`, c += `
|
|
4716
4718
|
`, c;
|
|
4717
4719
|
}, yt = (t, e) => {
|
|
@@ -4781,7 +4783,7 @@ const xf = ({
|
|
|
4781
4783
|
return r += `${Rs}:${t}
|
|
4782
4784
|
`, r += `${Kr}:${e}
|
|
4783
4785
|
`, r += `${et}:${s}
|
|
4784
|
-
`, r += `${
|
|
4786
|
+
`, r += `${Ve}:kos.studio.request
|
|
4785
4787
|
`, r += `
|
|
4786
4788
|
`, r;
|
|
4787
4789
|
}, Pf = ({
|
|
@@ -4793,7 +4795,7 @@ const xf = ({
|
|
|
4793
4795
|
let n = `${Kr}:${t}
|
|
4794
4796
|
`;
|
|
4795
4797
|
return n += `${et}:${e}
|
|
4796
|
-
`, n += `${
|
|
4798
|
+
`, n += `${Ve}:${s}
|
|
4797
4799
|
`, r && Object.keys(r).forEach((o) => {
|
|
4798
4800
|
n += `${o}:${r[o]}
|
|
4799
4801
|
`;
|
|
@@ -4817,7 +4819,7 @@ const xf = ({
|
|
|
4817
4819
|
`, e && (n += `${ao}:${e}
|
|
4818
4820
|
`), n += `${ra}:${s}
|
|
4819
4821
|
`, n += `${et}:${r}
|
|
4820
|
-
`, n += `${
|
|
4822
|
+
`, n += `${Ve}:kos.studio.response
|
|
4821
4823
|
`, n += `
|
|
4822
4824
|
`, n;
|
|
4823
4825
|
}, CE = (t, e) => {
|
|
@@ -4837,7 +4839,7 @@ const xf = ({
|
|
|
4837
4839
|
}) => {
|
|
4838
4840
|
let e = `topic:${t}
|
|
4839
4841
|
`;
|
|
4840
|
-
return e += `${
|
|
4842
|
+
return e += `${Ve}:kos.broker.send
|
|
4841
4843
|
`, e += `
|
|
4842
4844
|
`, e;
|
|
4843
4845
|
}, kf = ({
|
|
@@ -4851,7 +4853,7 @@ const xf = ({
|
|
|
4851
4853
|
`;
|
|
4852
4854
|
return o += `${et}:${e}
|
|
4853
4855
|
`, o += `${Pu}:${r}
|
|
4854
|
-
`, o += `${
|
|
4856
|
+
`, o += `${Ve}:${s ?? "kos.message.request"}
|
|
4855
4857
|
`, o += `${ra}:${n}
|
|
4856
4858
|
`, o += `${Au}:application/json
|
|
4857
4859
|
`, o += `${Ru}:no-cache
|
|
@@ -4867,7 +4869,7 @@ const xf = ({
|
|
|
4867
4869
|
`;
|
|
4868
4870
|
return e && (n += `${ao}:${e}
|
|
4869
4871
|
`), n += `${et}:${s}
|
|
4870
|
-
`, n += `${
|
|
4872
|
+
`, n += `${Ve}:${r ?? "kos.message.request"}
|
|
4871
4873
|
`, n += `
|
|
4872
4874
|
`, n;
|
|
4873
4875
|
}, xE = ({
|
|
@@ -5335,7 +5337,7 @@ class ci {
|
|
|
5335
5337
|
});
|
|
5336
5338
|
}
|
|
5337
5339
|
}
|
|
5338
|
-
const Vf =
|
|
5340
|
+
const Vf = Se();
|
|
5339
5341
|
Vf.fos && (window.kosUseFos = !0);
|
|
5340
5342
|
const li = process.env.KOS_FOS_PORT;
|
|
5341
5343
|
window.kosUseFos = !!(window.kosUseFos || process.env.KOS_USE_FOS === "true");
|
|
@@ -5419,7 +5421,7 @@ class vs {
|
|
|
5419
5421
|
_sendSubscriptionMessage(e, s, r = !1, n = !1, o) {
|
|
5420
5422
|
var f, p, m, b;
|
|
5421
5423
|
rt.debug(`${s} to topic ${e}`);
|
|
5422
|
-
const i =
|
|
5424
|
+
const i = Se(), a = i == null ? void 0 : i.connId, c = o ?? a ?? ((f = window == null ? void 0 : window.kosBridge) == null ? void 0 : f.call(window, "connId"));
|
|
5423
5425
|
rt.debug(`subscribing with connId ${c}`);
|
|
5424
5426
|
const u = c ? `dst-addr:${c}
|
|
5425
5427
|
` : "", d = r ? `subscribe:${e}` : n ? `type:fos.broker
|
|
@@ -5569,7 +5571,7 @@ class Yf {
|
|
|
5569
5571
|
bridge: e.bridge,
|
|
5570
5572
|
destinationAddress: o
|
|
5571
5573
|
});
|
|
5572
|
-
this.disposers.push(i);
|
|
5574
|
+
n ? this.activatableDisposers.push(i) : this.disposers.push(i);
|
|
5573
5575
|
} else {
|
|
5574
5576
|
this.log.debug(`Subscribing to EventBus topic: ${s}`);
|
|
5575
5577
|
const { unsubscribe: i } = O(s, r);
|
|
@@ -6177,7 +6179,7 @@ class op {
|
|
|
6177
6179
|
l(this, "fsm");
|
|
6178
6180
|
this._id = typeof s < "u" ? `${s}` : e, this.modelTypeName = e, this.initialized = !1, this.loaded = !1, this._isLoadExecuting = !1, this.modelData = r, this._status = y.CREATED, this._activeStatus = y.INACTIVE, this._onlineStatus = y.OFFLINE;
|
|
6179
6181
|
const n = rp.createAll(this);
|
|
6180
|
-
this.fsm = n.fsm, this.offlineQueue = n.offlineQueue, this.companionManager = n.companionManager, this.childResolver = n.childResolver, this.serviceResponses = n.serviceResponseStore, n.effectManager && (this.effectManager = n.effectManager), n.subscriptionManager && (this.subscriptionManager = n.subscriptionManager), n.httpRouteManager && (this.httpRouteManager = n.httpRouteManager), n.onlineLifecycleManager && (this.onlineLifecycleManager = n.onlineLifecycleManager), n.serviceRequestManager && (this.serviceRequestManager = n.serviceRequestManager),
|
|
6182
|
+
this.fsm = n.fsm, this.offlineQueue = n.offlineQueue, this.companionManager = n.companionManager, this.childResolver = n.childResolver, this.serviceResponses = n.serviceResponseStore, n.effectManager && (this.effectManager = n.effectManager), n.subscriptionManager && (this.subscriptionManager = n.subscriptionManager), n.httpRouteManager && (this.httpRouteManager = n.httpRouteManager), n.onlineLifecycleManager && (this.onlineLifecycleManager = n.onlineLifecycleManager), n.serviceRequestManager && (this.serviceRequestManager = n.serviceRequestManager), Ae(this, {
|
|
6181
6183
|
fsm: !1,
|
|
6182
6184
|
effectManager: !1,
|
|
6183
6185
|
subscriptionManager: !1,
|
|
@@ -6919,7 +6921,7 @@ const up = (t) => {
|
|
|
6919
6921
|
"initializing"
|
|
6920
6922
|
/* INITIALIZING */
|
|
6921
6923
|
)),
|
|
6922
|
-
initializing:
|
|
6924
|
+
initializing: xe(
|
|
6923
6925
|
() => t.init(),
|
|
6924
6926
|
D(
|
|
6925
6927
|
"done",
|
|
@@ -6931,7 +6933,7 @@ const up = (t) => {
|
|
|
6931
6933
|
"loading"
|
|
6932
6934
|
/* LOADING */
|
|
6933
6935
|
)),
|
|
6934
|
-
loading:
|
|
6936
|
+
loading: xe(
|
|
6935
6937
|
() => t.load(),
|
|
6936
6938
|
D(
|
|
6937
6939
|
"done",
|
|
@@ -6950,7 +6952,7 @@ const up = (t) => {
|
|
|
6950
6952
|
/* UNLOADING */
|
|
6951
6953
|
)
|
|
6952
6954
|
),
|
|
6953
|
-
readying:
|
|
6955
|
+
readying: xe(
|
|
6954
6956
|
() => t.ready(),
|
|
6955
6957
|
D(
|
|
6956
6958
|
"done",
|
|
@@ -6962,7 +6964,7 @@ const up = (t) => {
|
|
|
6962
6964
|
})
|
|
6963
6965
|
)
|
|
6964
6966
|
),
|
|
6965
|
-
reloading:
|
|
6967
|
+
reloading: xe(
|
|
6966
6968
|
() => t.reload(),
|
|
6967
6969
|
D(
|
|
6968
6970
|
"done",
|
|
@@ -7009,10 +7011,10 @@ const up = (t) => {
|
|
|
7009
7011
|
(o) => C.debug(o.machine.current)
|
|
7010
7012
|
), online: s };
|
|
7011
7013
|
}, Q = g.createLogger({ name: "kos-core" }), dp = () => {
|
|
7012
|
-
const t =
|
|
7014
|
+
const t = Se(), e = t == null ? void 0 : t.alias, s = process.env.KOS_CONNECTION_ALIAS;
|
|
7013
7015
|
return e || s || void 0;
|
|
7014
7016
|
}, hp = () => {
|
|
7015
|
-
const t = window.location.protocol, e =
|
|
7017
|
+
const t = window.location.protocol, e = Se(), s = e == null ? void 0 : e.host;
|
|
7016
7018
|
let r;
|
|
7017
7019
|
try {
|
|
7018
7020
|
r = new URL(s).protocol === "https:" ? "wss://" : "ws://";
|
|
@@ -7020,7 +7022,7 @@ const up = (t) => {
|
|
|
7020
7022
|
}
|
|
7021
7023
|
return r || (t === "https:" ? "wss://" : "ws://");
|
|
7022
7024
|
}, fp = () => {
|
|
7023
|
-
const t = window.location.hostname, e = process.env.KOS_HOST, s =
|
|
7025
|
+
const t = window.location.hostname, e = process.env.KOS_HOST, s = Se(), r = s == null ? void 0 : s.host;
|
|
7024
7026
|
let n;
|
|
7025
7027
|
try {
|
|
7026
7028
|
n = new URL(r).hostname;
|
|
@@ -7028,7 +7030,7 @@ const up = (t) => {
|
|
|
7028
7030
|
}
|
|
7029
7031
|
return n ?? e ?? t;
|
|
7030
7032
|
}, pp = () => {
|
|
7031
|
-
const t = window.location.port, e = process.env.KOS_PORT, s =
|
|
7033
|
+
const t = window.location.port, e = process.env.KOS_PORT, s = Se(), r = s == null ? void 0 : s.host;
|
|
7032
7034
|
let n;
|
|
7033
7035
|
try {
|
|
7034
7036
|
n = new URL(r).port;
|
|
@@ -7065,7 +7067,7 @@ class T {
|
|
|
7065
7067
|
l(this, "_reloading");
|
|
7066
7068
|
l(this, "_unloading");
|
|
7067
7069
|
l(this, "connectionAlias");
|
|
7068
|
-
this.initialized = !1, this.connectionAlias = e, this.loaded = !1, this.isOnline = !1, this.status = fr.CREATED, this.authState = "logged_out", this._reloading = !1, this._unloading = !1,
|
|
7070
|
+
this.initialized = !1, this.connectionAlias = e, this.loaded = !1, this.isOnline = !1, this.status = fr.CREATED, this.authState = "logged_out", this._reloading = !1, this._unloading = !1, Ae(this), O("token", (a) => {
|
|
7069
7071
|
a && (this.transport.token = a.body);
|
|
7070
7072
|
}), O(hr.CONNECTED, async () => {
|
|
7071
7073
|
await this.whenReady(), this.fsmService.service.send(St.GO_ONLINE);
|
|
@@ -7462,8 +7464,8 @@ const Ws = g.createLogger({ name: "kos-fetch" }), Tp = process.env.KOS_WS_TIMEOU
|
|
|
7462
7464
|
if (k === "multipart/form-data" && typeof E == "string")
|
|
7463
7465
|
try {
|
|
7464
7466
|
const te = JSON.parse(E);
|
|
7465
|
-
te.fields && Object.entries(te.fields).forEach(([
|
|
7466
|
-
j.append(
|
|
7467
|
+
te.fields && Object.entries(te.fields).forEach(([Ee, Qe]) => {
|
|
7468
|
+
j.append(Ee, Qe);
|
|
7467
7469
|
}), te.files && Ws.warn(
|
|
7468
7470
|
"File reconstruction in FormData not fully implemented"
|
|
7469
7471
|
);
|
|
@@ -7499,10 +7501,10 @@ const Ws = g.createLogger({ name: "kos-fetch" }), Tp = process.env.KOS_WS_TIMEOU
|
|
|
7499
7501
|
b == null || b.send(d);
|
|
7500
7502
|
});
|
|
7501
7503
|
};
|
|
7502
|
-
let me = "kos:",
|
|
7504
|
+
let me = "kos:", Fe = Op;
|
|
7503
7505
|
if (process.env.KOS_MOCK_FETCH === "true") {
|
|
7504
7506
|
const t = process.env.KOS_PORT || "9999";
|
|
7505
|
-
|
|
7507
|
+
Fe = fetch, me = `http://localhost:${t}`;
|
|
7506
7508
|
}
|
|
7507
7509
|
const Sp = g.createLogger({
|
|
7508
7510
|
name: "kos-model-visitor",
|
|
@@ -7696,7 +7698,7 @@ const Pp = g.createLogger({ name: "kos-service-request" }), ye = (t) => ({ isMoc
|
|
|
7696
7698
|
m = await f.json();
|
|
7697
7699
|
} catch {
|
|
7698
7700
|
}
|
|
7699
|
-
throw new
|
|
7701
|
+
throw new Ie(
|
|
7700
7702
|
`There was a problem retrieving the model; returned status ${f.status}`,
|
|
7701
7703
|
m
|
|
7702
7704
|
);
|
|
@@ -7732,7 +7734,7 @@ const Pp = g.createLogger({ name: "kos-service-request" }), ye = (t) => ({ isMoc
|
|
|
7732
7734
|
b = await p.json();
|
|
7733
7735
|
} catch {
|
|
7734
7736
|
}
|
|
7735
|
-
throw new
|
|
7737
|
+
throw new Ie(
|
|
7736
7738
|
`There was a problem retrieving the model; returned status ${p.status}`,
|
|
7737
7739
|
b
|
|
7738
7740
|
);
|
|
@@ -7766,14 +7768,14 @@ const Pp = g.createLogger({ name: "kos-service-request" }), ye = (t) => ({ isMoc
|
|
|
7766
7768
|
b = await p.json();
|
|
7767
7769
|
} catch {
|
|
7768
7770
|
}
|
|
7769
|
-
throw new
|
|
7771
|
+
throw new Ie(
|
|
7770
7772
|
`There was a problem retrieving the model; returned status ${p.status}`,
|
|
7771
7773
|
b
|
|
7772
7774
|
);
|
|
7773
7775
|
}
|
|
7774
7776
|
return await p.json();
|
|
7775
7777
|
};
|
|
7776
|
-
class
|
|
7778
|
+
class Ie extends Error {
|
|
7777
7779
|
constructor(s, r) {
|
|
7778
7780
|
super(s);
|
|
7779
7781
|
l(this, "payload");
|
|
@@ -7810,7 +7812,7 @@ const pi = (t, e, s) => async ({
|
|
|
7810
7812
|
b = await p.json();
|
|
7811
7813
|
} catch {
|
|
7812
7814
|
}
|
|
7813
|
-
throw new
|
|
7815
|
+
throw new Ie(
|
|
7814
7816
|
`There was a problem sending the POST data; returned status ${p.status}`,
|
|
7815
7817
|
b
|
|
7816
7818
|
);
|
|
@@ -7846,7 +7848,7 @@ const pi = (t, e, s) => async ({
|
|
|
7846
7848
|
v = await m.json();
|
|
7847
7849
|
} catch {
|
|
7848
7850
|
}
|
|
7849
|
-
throw new
|
|
7851
|
+
throw new Ie(
|
|
7850
7852
|
`There was a problem modifying the model; returned status ${m.status}`,
|
|
7851
7853
|
v
|
|
7852
7854
|
);
|
|
@@ -7897,7 +7899,7 @@ const pi = (t, e, s) => async ({
|
|
|
7897
7899
|
modifyModelPath: i,
|
|
7898
7900
|
mock: a = !1
|
|
7899
7901
|
}) => {
|
|
7900
|
-
const c = a ? fetch :
|
|
7902
|
+
const c = a ? fetch : Fe;
|
|
7901
7903
|
return {
|
|
7902
7904
|
/**
|
|
7903
7905
|
* Retrieves a list of entities managed by the KOS Server.
|
|
@@ -8039,7 +8041,7 @@ class Up {
|
|
|
8039
8041
|
l(this, "_context");
|
|
8040
8042
|
l(this, "_parent");
|
|
8041
8043
|
l(this, "_id");
|
|
8042
|
-
this._id = e, this._context = new no({}), this._parent = "",
|
|
8044
|
+
this._id = e, this._context = new no({}), this._parent = "", Ae(this);
|
|
8043
8045
|
}
|
|
8044
8046
|
setParent(e) {
|
|
8045
8047
|
oe(() => {
|
|
@@ -8055,10 +8057,10 @@ class Up {
|
|
|
8055
8057
|
get parentModel() {
|
|
8056
8058
|
var e;
|
|
8057
8059
|
if (this._parent)
|
|
8058
|
-
return (e =
|
|
8060
|
+
return (e = He(this._parent)) == null ? void 0 : e.model;
|
|
8059
8061
|
}
|
|
8060
8062
|
get companionModels() {
|
|
8061
|
-
const e =
|
|
8063
|
+
const e = He(this._id);
|
|
8062
8064
|
return e != null && e.model ? ih(e.model) : [];
|
|
8063
8065
|
}
|
|
8064
8066
|
get(e) {
|
|
@@ -8131,7 +8133,7 @@ class rc {
|
|
|
8131
8133
|
l(this, "_customEvictionFilter");
|
|
8132
8134
|
this._data = se.map(/* @__PURE__ */ new Map()), this._sortKey = e == null ? void 0 : e.sortKey, this._revision = 1, this._optionsMap = (e == null ? void 0 : e.indexMap) || {};
|
|
8133
8135
|
const s = e != null && e.indexMap ? Object.keys(e.indexMap).reduce((r, n) => (r[n] = void 0, r), {}) : {};
|
|
8134
|
-
this._index = se.map(s), this.idx =
|
|
8136
|
+
this._index = se.map(s), this.idx = Be(), this._maxCapacity = e == null ? void 0 : e.maxCapacity, this._evictionStrategy = (e == null ? void 0 : e.evictionStrategy) || "fifo", this._evictionBatchSize = (e == null ? void 0 : e.evictionBatchSize) ?? Math.max(10, Math.ceil(((e == null ? void 0 : e.maxCapacity) ?? 100) * 0.1)), this._customEvictionFilter = e == null ? void 0 : e.customEvictionFilter, this._evictionStrategy === "lru" && this._maxCapacity && (this._accessTimes = se.map(/* @__PURE__ */ new Map())), Ae(this, {}), this.init();
|
|
8135
8137
|
}
|
|
8136
8138
|
init() {
|
|
8137
8139
|
Object.keys(this._optionsMap).forEach((e) => {
|
|
@@ -8415,7 +8417,7 @@ class YE {
|
|
|
8415
8417
|
};
|
|
8416
8418
|
}
|
|
8417
8419
|
get predicate() {
|
|
8418
|
-
return
|
|
8420
|
+
return Re(this.type);
|
|
8419
8421
|
}
|
|
8420
8422
|
}
|
|
8421
8423
|
class WE {
|
|
@@ -8439,13 +8441,13 @@ class WE {
|
|
|
8439
8441
|
};
|
|
8440
8442
|
}
|
|
8441
8443
|
get predicate() {
|
|
8442
|
-
return
|
|
8444
|
+
return Re(this.type);
|
|
8443
8445
|
}
|
|
8444
8446
|
}
|
|
8445
8447
|
class jp {
|
|
8446
8448
|
constructor() {
|
|
8447
8449
|
l(this, "_token");
|
|
8448
|
-
|
|
8450
|
+
Ae(this), O("token", (e) => {
|
|
8449
8451
|
this.token = e == null ? void 0 : e.body;
|
|
8450
8452
|
});
|
|
8451
8453
|
}
|
|
@@ -8601,7 +8603,7 @@ const nc = g.createLogger({ name: "intent-service" }), QE = (t) => {
|
|
|
8601
8603
|
});
|
|
8602
8604
|
} else
|
|
8603
8605
|
nc.info(`No subscribers for intent ${t.type}. Intent not sent.`), e([null, { body: void 0, payload: void 0 }]);
|
|
8604
|
-
}),
|
|
8606
|
+
}), Ue = g.createLogger({ name: "app-startup-service" });
|
|
8605
8607
|
async function Hp(t, e = {}) {
|
|
8606
8608
|
const {
|
|
8607
8609
|
timeout: s = 3e4,
|
|
@@ -8609,16 +8611,16 @@ async function Hp(t, e = {}) {
|
|
|
8609
8611
|
requirePostStarted: n = !1
|
|
8610
8612
|
} = e;
|
|
8611
8613
|
if (t.length === 0)
|
|
8612
|
-
return
|
|
8613
|
-
|
|
8614
|
+
return Ue.warn("No app IDs provided to waitForAppsToStart"), !0;
|
|
8615
|
+
Ue.debug(`Waiting for apps to start: ${t.join(", ")}`);
|
|
8614
8616
|
try {
|
|
8615
8617
|
const o = t.map((c) => `/kos/app/started/${c}`), i = await ho(o, {
|
|
8616
8618
|
getCurrentState: async () => {
|
|
8617
8619
|
try {
|
|
8618
8620
|
const { default: c } = await Promise.resolve().then(() => ec), [u, d] = await c.get("/api/kos/apps/started");
|
|
8619
|
-
return u ? (
|
|
8621
|
+
return u ? (Ue.error("Error fetching started apps:", u), []) : d;
|
|
8620
8622
|
} catch (c) {
|
|
8621
|
-
|
|
8623
|
+
Ue.error("Failed to fetch app startup status:", c);
|
|
8622
8624
|
}
|
|
8623
8625
|
return [];
|
|
8624
8626
|
},
|
|
@@ -8633,14 +8635,14 @@ async function Hp(t, e = {}) {
|
|
|
8633
8635
|
});
|
|
8634
8636
|
if (a.length > 0) {
|
|
8635
8637
|
const c = `Apps not started: ${a.join(", ")}`;
|
|
8636
|
-
if (
|
|
8638
|
+
if (Ue.error(c), r)
|
|
8637
8639
|
throw new Error(`App startup timeout: ${c}`);
|
|
8638
8640
|
return !1;
|
|
8639
8641
|
}
|
|
8640
|
-
return
|
|
8642
|
+
return Ue.info(`All apps started successfully: ${t.join(", ")}`), !0;
|
|
8641
8643
|
} catch (o) {
|
|
8642
8644
|
const i = `Failed to wait for apps to start: ${t.join(", ")}`;
|
|
8643
|
-
if (
|
|
8645
|
+
if (Ue.error(i, o), r)
|
|
8644
8646
|
throw new Error(
|
|
8645
8647
|
`${i} - ${o instanceof Error ? o.message : String(o)}`
|
|
8646
8648
|
);
|
|
@@ -8653,7 +8655,7 @@ async function JE(t, e = {}) {
|
|
|
8653
8655
|
async function XE(t, e = !1) {
|
|
8654
8656
|
const s = {};
|
|
8655
8657
|
try {
|
|
8656
|
-
const r = await
|
|
8658
|
+
const r = await Fe("kos:///api/kos/apps/started");
|
|
8657
8659
|
if (!r.ok)
|
|
8658
8660
|
return t.forEach((i) => s[i] = !1), s;
|
|
8659
8661
|
const n = await r.json(), o = (n == null ? void 0 : n.data) ?? [];
|
|
@@ -8662,23 +8664,23 @@ async function XE(t, e = !1) {
|
|
|
8662
8664
|
s[i] = (a == null ? void 0 : a.started) === !0 && (!e || (a == null ? void 0 : a.postStarted) === !0);
|
|
8663
8665
|
});
|
|
8664
8666
|
} catch (r) {
|
|
8665
|
-
|
|
8667
|
+
Ue.error("Failed to check app startup status:", r), t.forEach((n) => s[n] = !1);
|
|
8666
8668
|
}
|
|
8667
8669
|
return s;
|
|
8668
8670
|
}
|
|
8669
8671
|
async function e_() {
|
|
8670
8672
|
try {
|
|
8671
|
-
const t = await
|
|
8673
|
+
const t = await Fe("kos:///api/kos/apps/started");
|
|
8672
8674
|
if (!t.ok)
|
|
8673
8675
|
return [];
|
|
8674
8676
|
const e = await t.json();
|
|
8675
8677
|
return (e == null ? void 0 : e.data) ?? [];
|
|
8676
8678
|
} catch (t) {
|
|
8677
|
-
return
|
|
8679
|
+
return Ue.error("Failed to fetch started apps:", t), [];
|
|
8678
8680
|
}
|
|
8679
8681
|
}
|
|
8680
8682
|
const mi = Ps, oc = ea, oe = X, ee = Ds, zp = xs, ic = se, ac = "Not Assigned", t_ = "kos.trouble.added", s_ = "kos.trouble.removed";
|
|
8681
|
-
var
|
|
8683
|
+
var Pe = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t))(Pe || {}), pr = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))(pr || {});
|
|
8682
8684
|
const cc = g.createLogger({
|
|
8683
8685
|
name: "config-bean-service",
|
|
8684
8686
|
group: "Services"
|
|
@@ -8772,7 +8774,7 @@ let wr = class {
|
|
|
8772
8774
|
modifyConfigBean: s = Gp,
|
|
8773
8775
|
getConfigBean: r = Yp
|
|
8774
8776
|
} = e;
|
|
8775
|
-
this._modifyConfigBean = s, this._getConfigBean = r, this.props =
|
|
8777
|
+
this._modifyConfigBean = s, this._getConfigBean = r, this.props = Be(), this.prevProps = Be();
|
|
8776
8778
|
}
|
|
8777
8779
|
/**
|
|
8778
8780
|
* Gets current configuration property values.
|
|
@@ -8893,7 +8895,7 @@ dc([
|
|
|
8893
8895
|
wr = dc([
|
|
8894
8896
|
R(Mo)
|
|
8895
8897
|
], wr);
|
|
8896
|
-
const Mr = new
|
|
8898
|
+
const Mr = new Ce({
|
|
8897
8899
|
class: wr,
|
|
8898
8900
|
type: Mo
|
|
8899
8901
|
}), Eo = ({ path: t, lazy: e, serviceBasePath: s }) => (r, n) => {
|
|
@@ -9343,7 +9345,7 @@ const ue = {
|
|
|
9343
9345
|
let r = { system: e, measure: s };
|
|
9344
9346
|
return typeof t == "string" ? r = { ...r, unit: t } : r = { ...r, ...t }, r;
|
|
9345
9347
|
}, mc = (t, e, s) => {
|
|
9346
|
-
const { model: r } =
|
|
9348
|
+
const { model: r } = He(
|
|
9347
9349
|
ue.type
|
|
9348
9350
|
);
|
|
9349
9351
|
if (!r)
|
|
@@ -9372,7 +9374,7 @@ function yi(t, e, s) {
|
|
|
9372
9374
|
}
|
|
9373
9375
|
}
|
|
9374
9376
|
const o_ = (t, e, s, r) => {
|
|
9375
|
-
const n = mc(t, e, s), o = Er({ source: e }), { model: i } =
|
|
9377
|
+
const n = mc(t, e, s), o = Er({ source: e }), { model: i } = He(
|
|
9376
9378
|
ue.type
|
|
9377
9379
|
);
|
|
9378
9380
|
if (!i)
|
|
@@ -10004,7 +10006,7 @@ let _r = class {
|
|
|
10004
10006
|
Object.assign(this, e), this.logger = s.logger, this.id = t, this.futureId = e.id, this.namespace = e.namespace || "kos", this._cancelFuture = Sg, mi(
|
|
10005
10007
|
() => this.status === ft.Success || this.status === ft.Fail,
|
|
10006
10008
|
() => {
|
|
10007
|
-
On.info(`Future ${this.id} has completed with status ${this.status}`),
|
|
10009
|
+
On.info(`Future ${this.id} has completed with status ${this.status}`), je(this);
|
|
10008
10010
|
}
|
|
10009
10011
|
);
|
|
10010
10012
|
}
|
|
@@ -10214,7 +10216,7 @@ Mc([
|
|
|
10214
10216
|
Tr = Mc([
|
|
10215
10217
|
R(Ec)
|
|
10216
10218
|
], Tr);
|
|
10217
|
-
const _c = new
|
|
10219
|
+
const _c = new ke({
|
|
10218
10220
|
class: Tr,
|
|
10219
10221
|
type: Ec
|
|
10220
10222
|
}), Ng = "future-container-model", pt = Ls(Ng), Tc = (t) => vc(Fs)(t), Ug = (t) => {
|
|
@@ -10247,7 +10249,7 @@ let Es = class {
|
|
|
10247
10249
|
l(this, "createModel");
|
|
10248
10250
|
l(this, "deleteModel");
|
|
10249
10251
|
const { deleteFuture: r = Ig, addFuture: n = Og } = e;
|
|
10250
|
-
this.logger = s.logger, this._deleteFuture = r, this._addFuture = n, this.id = t, this._futures = new
|
|
10252
|
+
this.logger = s.logger, this._deleteFuture = r, this._addFuture = n, this.id = t, this._futures = new Ye(), this.createModel = this.createFuture, this.deleteModel = this.removeFuture;
|
|
10251
10253
|
}
|
|
10252
10254
|
/**
|
|
10253
10255
|
* @category Computed
|
|
@@ -10381,7 +10383,7 @@ let Es = class {
|
|
|
10381
10383
|
}
|
|
10382
10384
|
};
|
|
10383
10385
|
$o([
|
|
10384
|
-
|
|
10386
|
+
Ge
|
|
10385
10387
|
], Es.prototype, "_futures", 2);
|
|
10386
10388
|
$o([
|
|
10387
10389
|
H({
|
|
@@ -10445,7 +10447,7 @@ let _s = class {
|
|
|
10445
10447
|
l(this, "logger");
|
|
10446
10448
|
l(this, "namespace");
|
|
10447
10449
|
l(this, "data");
|
|
10448
|
-
this.id = t, this.logger = s.logger, this.data =
|
|
10450
|
+
this.id = t, this.logger = s.logger, this.data = Be(), this.namespace = e.namespace || "studio";
|
|
10449
10451
|
}
|
|
10450
10452
|
/**
|
|
10451
10453
|
* @internal
|
|
@@ -10501,11 +10503,11 @@ Io([
|
|
|
10501
10503
|
_s = Io([
|
|
10502
10504
|
R(Cc)
|
|
10503
10505
|
], _s);
|
|
10504
|
-
const Dc = new
|
|
10506
|
+
const Dc = new Ce({
|
|
10505
10507
|
class: _s,
|
|
10506
10508
|
type: Cc
|
|
10507
10509
|
});
|
|
10508
|
-
var we = "INUMBER", Jt = "IOP1", Xt = "IOP2", es = "IOP3",
|
|
10510
|
+
var we = "INUMBER", Jt = "IOP1", Xt = "IOP2", es = "IOP3", ze = "IVAR", gt = "IVARNAME", Ut = "IFUNCALL", sn = "IFUNDEF", de = "IEXPR", Oo = "IEXPREVAL", bt = "IMEMBER", rn = "IENDSTATEMENT", jt = "IARRAY";
|
|
10509
10511
|
function A(t, e) {
|
|
10510
10512
|
this.type = t, this.value = e ?? 0;
|
|
10511
10513
|
}
|
|
@@ -10515,7 +10517,7 @@ A.prototype.toString = function() {
|
|
|
10515
10517
|
case Jt:
|
|
10516
10518
|
case Xt:
|
|
10517
10519
|
case es:
|
|
10518
|
-
case
|
|
10520
|
+
case ze:
|
|
10519
10521
|
case gt:
|
|
10520
10522
|
case rn:
|
|
10521
10523
|
return this.value;
|
|
@@ -10534,7 +10536,7 @@ A.prototype.toString = function() {
|
|
|
10534
10536
|
function nn(t) {
|
|
10535
10537
|
return new A(Jt, t);
|
|
10536
10538
|
}
|
|
10537
|
-
function
|
|
10539
|
+
function We(t) {
|
|
10538
10540
|
return new A(Xt, t);
|
|
10539
10541
|
}
|
|
10540
10542
|
function xc(t) {
|
|
@@ -10547,7 +10549,7 @@ function Bn(t, e, s, r, n) {
|
|
|
10547
10549
|
Array.isArray(f.value) ? o.push.apply(o, Bn(f.value.map(function(m) {
|
|
10548
10550
|
return new A(we, m);
|
|
10549
10551
|
}).concat(new A(jt, f.value.length)), e, s, r, n)) : o.push(f);
|
|
10550
|
-
else if (p ===
|
|
10552
|
+
else if (p === ze && n.hasOwnProperty(f.value))
|
|
10551
10553
|
f = new A(we, n[f.value]), o.push(f);
|
|
10552
10554
|
else if (p === Xt && o.length > 1)
|
|
10553
10555
|
c = o.pop(), a = o.pop(), d = s[f.value], f = new A(we, d(a.value, c.value)), o.push(f);
|
|
@@ -10574,10 +10576,10 @@ function Bn(t, e, s, r, n) {
|
|
|
10574
10576
|
function Pc(t, e, s) {
|
|
10575
10577
|
for (var r = [], n = 0; n < t.length; n++) {
|
|
10576
10578
|
var o = t[n], i = o.type;
|
|
10577
|
-
if (i ===
|
|
10579
|
+
if (i === ze && o.value === e)
|
|
10578
10580
|
for (var a = 0; a < s.tokens.length; a++) {
|
|
10579
10581
|
var c = s.tokens[a], u;
|
|
10580
|
-
c.type === Jt ? u = nn(c.value) : c.type === Xt ? u =
|
|
10582
|
+
c.type === Jt ? u = nn(c.value) : c.type === Xt ? u = We(c.value) : c.type === es ? u = xc(c.value) : u = new A(c.type, c.value), r.push(u);
|
|
10581
10583
|
}
|
|
10582
10584
|
else
|
|
10583
10585
|
i === de ? r.push(new A(de, Pc(o.value, e, s))) : r.push(o);
|
|
@@ -10587,16 +10589,16 @@ function Pc(t, e, s) {
|
|
|
10587
10589
|
function at(t, e, s) {
|
|
10588
10590
|
var r = [], n, o, i, a, c, u;
|
|
10589
10591
|
if (So(t))
|
|
10590
|
-
return
|
|
10592
|
+
return Ne(t, s);
|
|
10591
10593
|
for (var d = t.length, h = 0; h < d; h++) {
|
|
10592
10594
|
var f = t[h], p = f.type;
|
|
10593
10595
|
if (p === we || p === gt)
|
|
10594
10596
|
r.push(f.value);
|
|
10595
10597
|
else if (p === Xt)
|
|
10596
|
-
o = r.pop(), n = r.pop(), f.value === "and" ? r.push(n ? !!at(o, e, s) : !1) : f.value === "or" ? r.push(n ? !0 : !!at(o, e, s)) : f.value === "=" ? (a = e.binaryOps[f.value], r.push(a(n, at(o, e, s), s))) : (a = e.binaryOps[f.value], r.push(a(
|
|
10598
|
+
o = r.pop(), n = r.pop(), f.value === "and" ? r.push(n ? !!at(o, e, s) : !1) : f.value === "or" ? r.push(n ? !0 : !!at(o, e, s)) : f.value === "=" ? (a = e.binaryOps[f.value], r.push(a(n, at(o, e, s), s))) : (a = e.binaryOps[f.value], r.push(a(Ne(n, s), Ne(o, s))));
|
|
10597
10599
|
else if (p === es)
|
|
10598
|
-
i = r.pop(), o = r.pop(), n = r.pop(), f.value === "?" ? r.push(at(n ? o : i, e, s)) : (a = e.ternaryOps[f.value], r.push(a(
|
|
10599
|
-
else if (p ===
|
|
10600
|
+
i = r.pop(), o = r.pop(), n = r.pop(), f.value === "?" ? r.push(at(n ? o : i, e, s)) : (a = e.ternaryOps[f.value], r.push(a(Ne(n, s), Ne(o, s), Ne(i, s))));
|
|
10601
|
+
else if (p === ze)
|
|
10600
10602
|
if (f.value in e.functions)
|
|
10601
10603
|
r.push(e.functions[f.value]);
|
|
10602
10604
|
else if (f.value in e.unaryOps && e.parser.isOperatorEnabled(f.value))
|
|
@@ -10609,10 +10611,10 @@ function at(t, e, s) {
|
|
|
10609
10611
|
throw new Error("undefined variable: " + f.value);
|
|
10610
10612
|
}
|
|
10611
10613
|
else if (p === Jt)
|
|
10612
|
-
n = r.pop(), a = e.unaryOps[f.value], r.push(a(
|
|
10614
|
+
n = r.pop(), a = e.unaryOps[f.value], r.push(a(Ne(n, s)));
|
|
10613
10615
|
else if (p === Ut) {
|
|
10614
10616
|
for (u = f.value, c = []; u-- > 0; )
|
|
10615
|
-
c.unshift(
|
|
10617
|
+
c.unshift(Ne(r.pop(), s));
|
|
10616
10618
|
if (a = r.pop(), a.apply && a.call)
|
|
10617
10619
|
r.push(a.apply(void 0, c));
|
|
10618
10620
|
else
|
|
@@ -10648,7 +10650,7 @@ function at(t, e, s) {
|
|
|
10648
10650
|
}
|
|
10649
10651
|
if (r.length > 1)
|
|
10650
10652
|
throw new Error("invalid Expression (parity)");
|
|
10651
|
-
return r[0] === 0 ? 0 :
|
|
10653
|
+
return r[0] === 0 ? 0 : Ne(r[0], s);
|
|
10652
10654
|
}
|
|
10653
10655
|
function Wg(t, e, s) {
|
|
10654
10656
|
return So(t) ? t : {
|
|
@@ -10661,7 +10663,7 @@ function Wg(t, e, s) {
|
|
|
10661
10663
|
function So(t) {
|
|
10662
10664
|
return t && t.type === Oo;
|
|
10663
10665
|
}
|
|
10664
|
-
function
|
|
10666
|
+
function Ne(t, e) {
|
|
10665
10667
|
return So(t) ? t.value(e) : t;
|
|
10666
10668
|
}
|
|
10667
10669
|
function Co(t, e) {
|
|
@@ -10676,7 +10678,7 @@ function Co(t, e) {
|
|
|
10676
10678
|
s.push("(" + r + " ? " + n + " : " + o + ")");
|
|
10677
10679
|
else
|
|
10678
10680
|
throw new Error("invalid Expression");
|
|
10679
|
-
else if (h ===
|
|
10681
|
+
else if (h === ze || h === gt)
|
|
10680
10682
|
s.push(d.value);
|
|
10681
10683
|
else if (h === Jt)
|
|
10682
10684
|
r = s.pop(), i = d.value, i === "-" || i === "+" ? s.push("(" + i + r + ")") : e ? i === "not" ? s.push("(!" + r + ")") : i === "!" ? s.push("fac(" + r + ")") : s.push(i + "(" + r + ")") : i === "!" ? s.push("(" + r + "!)") : s.push("(" + i + " " + r + ")");
|
|
@@ -10714,31 +10716,31 @@ function Do(t, e, s) {
|
|
|
10714
10716
|
s = s || {};
|
|
10715
10717
|
for (var r = !!s.withMembers, n = null, o = 0; o < t.length; o++) {
|
|
10716
10718
|
var i = t[o];
|
|
10717
|
-
i.type ===
|
|
10719
|
+
i.type === ze || i.type === gt ? !r && !xt(e, i.value) ? e.push(i.value) : (n !== null && (xt(e, n) || e.push(n)), n = i.value) : i.type === bt && r && n !== null ? n += "." + i.value : i.type === de ? Do(i.value, e, s) : n !== null && (xt(e, n) || e.push(n), n = null);
|
|
10718
10720
|
}
|
|
10719
10721
|
n !== null && !xt(e, n) && e.push(n);
|
|
10720
10722
|
}
|
|
10721
|
-
function
|
|
10723
|
+
function Te(t, e) {
|
|
10722
10724
|
this.tokens = t, this.parser = e, this.unaryOps = e.unaryOps, this.binaryOps = e.binaryOps, this.ternaryOps = e.ternaryOps, this.functions = e.functions;
|
|
10723
10725
|
}
|
|
10724
|
-
|
|
10725
|
-
return t = t || {}, new
|
|
10726
|
+
Te.prototype.simplify = function(t) {
|
|
10727
|
+
return t = t || {}, new Te(Bn(this.tokens, this.unaryOps, this.binaryOps, this.ternaryOps, t), this.parser);
|
|
10726
10728
|
};
|
|
10727
|
-
|
|
10728
|
-
return e instanceof
|
|
10729
|
+
Te.prototype.substitute = function(t, e) {
|
|
10730
|
+
return e instanceof Te || (e = this.parser.parse(String(e))), new Te(Pc(this.tokens, t, e), this.parser);
|
|
10729
10731
|
};
|
|
10730
|
-
|
|
10732
|
+
Te.prototype.evaluate = function(t) {
|
|
10731
10733
|
return t = t || {}, at(this.tokens, this, t);
|
|
10732
10734
|
};
|
|
10733
|
-
|
|
10735
|
+
Te.prototype.toString = function() {
|
|
10734
10736
|
return Co(this.tokens, !1);
|
|
10735
10737
|
};
|
|
10736
|
-
|
|
10738
|
+
Te.prototype.symbols = function(t) {
|
|
10737
10739
|
t = t || {};
|
|
10738
10740
|
var e = [];
|
|
10739
10741
|
return Do(this.tokens, e, t), e;
|
|
10740
10742
|
};
|
|
10741
|
-
|
|
10743
|
+
Te.prototype.variables = function(t) {
|
|
10742
10744
|
t = t || {};
|
|
10743
10745
|
var e = [];
|
|
10744
10746
|
Do(this.tokens, e, t);
|
|
@@ -10747,13 +10749,13 @@ _e.prototype.variables = function(t) {
|
|
|
10747
10749
|
return !(r in s);
|
|
10748
10750
|
});
|
|
10749
10751
|
};
|
|
10750
|
-
|
|
10752
|
+
Te.prototype.toJSFunction = function(t, e) {
|
|
10751
10753
|
var s = this, r = new Function(t, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " + Co(this.simplify(e).tokens, !0) + "; }");
|
|
10752
10754
|
return function() {
|
|
10753
10755
|
return r.apply(s, arguments);
|
|
10754
10756
|
};
|
|
10755
10757
|
};
|
|
10756
|
-
var Ts = "TEOF", B = "TOP", on = "TNUMBER", Ac = "TSTRING",
|
|
10758
|
+
var Ts = "TEOF", B = "TOP", on = "TNUMBER", Ac = "TSTRING", qe = "TPAREN", Bt = "TBRACKET", an = "TCOMMA", xo = "TNAME", Po = "TSEMICOLON";
|
|
10757
10759
|
function Rc(t, e, s) {
|
|
10758
10760
|
this.type = t, this.value = e, this.index = s;
|
|
10759
10761
|
}
|
|
@@ -10796,7 +10798,7 @@ Y.prototype.isString = function() {
|
|
|
10796
10798
|
};
|
|
10797
10799
|
Y.prototype.isParen = function() {
|
|
10798
10800
|
var t = this.expression.charAt(this.pos);
|
|
10799
|
-
return t === "(" || t === ")" ? (this.current = this.newToken(
|
|
10801
|
+
return t === "(" || t === ")" ? (this.current = this.newToken(qe, t), this.pos++, !0) : !1;
|
|
10800
10802
|
};
|
|
10801
10803
|
Y.prototype.isBracket = function() {
|
|
10802
10804
|
var t = this.expression.charAt(this.pos);
|
|
@@ -11023,13 +11025,13 @@ z.prototype.parseAtom = function(t) {
|
|
|
11023
11025
|
return n.value in e;
|
|
11024
11026
|
}
|
|
11025
11027
|
if (this.accept(xo) || this.accept(B, s))
|
|
11026
|
-
t.push(new A(
|
|
11028
|
+
t.push(new A(ze, this.current.value));
|
|
11027
11029
|
else if (this.accept(on))
|
|
11028
11030
|
t.push(new A(we, this.current.value));
|
|
11029
11031
|
else if (this.accept(Ac))
|
|
11030
11032
|
t.push(new A(we, this.current.value));
|
|
11031
|
-
else if (this.accept(
|
|
11032
|
-
this.parseExpression(t), this.expect(
|
|
11033
|
+
else if (this.accept(qe, "("))
|
|
11034
|
+
this.parseExpression(t), this.expect(qe, ")");
|
|
11033
11035
|
else if (this.accept(Bt, "["))
|
|
11034
11036
|
if (this.accept(Bt, "]"))
|
|
11035
11037
|
t.push(new A(jt, 0));
|
|
@@ -11049,7 +11051,7 @@ z.prototype.pushExpression = function(t, e) {
|
|
|
11049
11051
|
t.push(e[s]);
|
|
11050
11052
|
};
|
|
11051
11053
|
z.prototype.parseUntilEndStatement = function(t, e) {
|
|
11052
|
-
return this.accept(Po) ? (this.nextToken && this.nextToken.type !== Ts && !(this.nextToken.type ===
|
|
11054
|
+
return this.accept(Po) ? (this.nextToken && this.nextToken.type !== Ts && !(this.nextToken.type === qe && this.nextToken.value === ")") && e.push(new A(rn)), this.nextToken.type !== Ts && this.parseExpression(e), t.push(new A(de, e)), !0) : !1;
|
|
11053
11055
|
};
|
|
11054
11056
|
z.prototype.parseArrayList = function(t) {
|
|
11055
11057
|
for (var e = 0; !this.accept(Bt, "]"); )
|
|
@@ -11065,14 +11067,14 @@ z.prototype.parseVariableAssignmentExpression = function(t) {
|
|
|
11065
11067
|
throw new Error("function definition is not permitted");
|
|
11066
11068
|
for (var n = 0, o = e.value + 1; n < o; n++) {
|
|
11067
11069
|
var i = r - n;
|
|
11068
|
-
t[i].type ===
|
|
11070
|
+
t[i].type === ze && (t[i] = new A(gt, t[i].value));
|
|
11069
11071
|
}
|
|
11070
11072
|
this.parseVariableAssignmentExpression(s), t.push(new A(de, s)), t.push(new A(sn, e.value));
|
|
11071
11073
|
continue;
|
|
11072
11074
|
}
|
|
11073
|
-
if (e.type !==
|
|
11075
|
+
if (e.type !== ze && e.type !== bt)
|
|
11074
11076
|
throw new Error("expected variable for assignment");
|
|
11075
|
-
this.parseVariableAssignmentExpression(s), t.push(new A(gt, e.value)), t.push(new A(de, s)), t.push(
|
|
11077
|
+
this.parseVariableAssignmentExpression(s), t.push(new A(gt, e.value)), t.push(new A(de, s)), t.push(We("="));
|
|
11076
11078
|
}
|
|
11077
11079
|
};
|
|
11078
11080
|
z.prototype.parseConditionalExpression = function(t) {
|
|
@@ -11084,34 +11086,34 @@ z.prototype.parseConditionalExpression = function(t) {
|
|
|
11084
11086
|
z.prototype.parseOrExpression = function(t) {
|
|
11085
11087
|
for (this.parseAndExpression(t); this.accept(B, "or"); ) {
|
|
11086
11088
|
var e = [];
|
|
11087
|
-
this.parseAndExpression(e), t.push(new A(de, e)), t.push(
|
|
11089
|
+
this.parseAndExpression(e), t.push(new A(de, e)), t.push(We("or"));
|
|
11088
11090
|
}
|
|
11089
11091
|
};
|
|
11090
11092
|
z.prototype.parseAndExpression = function(t) {
|
|
11091
11093
|
for (this.parseComparison(t); this.accept(B, "and"); ) {
|
|
11092
11094
|
var e = [];
|
|
11093
|
-
this.parseComparison(e), t.push(new A(de, e)), t.push(
|
|
11095
|
+
this.parseComparison(e), t.push(new A(de, e)), t.push(We("and"));
|
|
11094
11096
|
}
|
|
11095
11097
|
};
|
|
11096
11098
|
var Zg = ["==", "!=", "<", "<=", ">=", ">", "in"];
|
|
11097
11099
|
z.prototype.parseComparison = function(t) {
|
|
11098
11100
|
for (this.parseAddSub(t); this.accept(B, Zg); ) {
|
|
11099
11101
|
var e = this.current;
|
|
11100
|
-
this.parseAddSub(t), t.push(
|
|
11102
|
+
this.parseAddSub(t), t.push(We(e.value));
|
|
11101
11103
|
}
|
|
11102
11104
|
};
|
|
11103
11105
|
var Jg = ["+", "-", "||"];
|
|
11104
11106
|
z.prototype.parseAddSub = function(t) {
|
|
11105
11107
|
for (this.parseTerm(t); this.accept(B, Jg); ) {
|
|
11106
11108
|
var e = this.current;
|
|
11107
|
-
this.parseTerm(t), t.push(
|
|
11109
|
+
this.parseTerm(t), t.push(We(e.value));
|
|
11108
11110
|
}
|
|
11109
11111
|
};
|
|
11110
11112
|
var Xg = ["*", "/", "%"];
|
|
11111
11113
|
z.prototype.parseTerm = function(t) {
|
|
11112
11114
|
for (this.parseFactor(t); this.accept(B, Xg); ) {
|
|
11113
11115
|
var e = this.current;
|
|
11114
|
-
this.parseFactor(t), t.push(
|
|
11116
|
+
this.parseFactor(t), t.push(We(e.value));
|
|
11115
11117
|
}
|
|
11116
11118
|
};
|
|
11117
11119
|
z.prototype.parseFactor = function(t) {
|
|
@@ -11121,10 +11123,10 @@ z.prototype.parseFactor = function(t) {
|
|
|
11121
11123
|
}
|
|
11122
11124
|
if (this.save(), this.accept(B, s)) {
|
|
11123
11125
|
if (this.current.value !== "-" && this.current.value !== "+") {
|
|
11124
|
-
if (this.nextToken.type ===
|
|
11126
|
+
if (this.nextToken.type === qe && this.nextToken.value === "(") {
|
|
11125
11127
|
this.restore(), this.parseExponential(t);
|
|
11126
11128
|
return;
|
|
11127
|
-
} else if (this.nextToken.type === Po || this.nextToken.type === an || this.nextToken.type === Ts || this.nextToken.type ===
|
|
11129
|
+
} else if (this.nextToken.type === Po || this.nextToken.type === an || this.nextToken.type === Ts || this.nextToken.type === qe && this.nextToken.value === ")") {
|
|
11128
11130
|
this.restore(), this.parseAtom(t);
|
|
11129
11131
|
return;
|
|
11130
11132
|
}
|
|
@@ -11136,7 +11138,7 @@ z.prototype.parseFactor = function(t) {
|
|
|
11136
11138
|
};
|
|
11137
11139
|
z.prototype.parseExponential = function(t) {
|
|
11138
11140
|
for (this.parsePostfixExpression(t); this.accept(B, "^"); )
|
|
11139
|
-
this.parseFactor(t), t.push(
|
|
11141
|
+
this.parseFactor(t), t.push(We("^"));
|
|
11140
11142
|
};
|
|
11141
11143
|
z.prototype.parsePostfixExpression = function(t) {
|
|
11142
11144
|
for (this.parseFunctionCall(t); this.accept(B, "!"); )
|
|
@@ -11151,8 +11153,8 @@ z.prototype.parseFunctionCall = function(t) {
|
|
|
11151
11153
|
var r = this.current;
|
|
11152
11154
|
this.parseAtom(t), t.push(nn(r.value));
|
|
11153
11155
|
} else
|
|
11154
|
-
for (this.parseMemberExpression(t); this.accept(
|
|
11155
|
-
if (this.accept(
|
|
11156
|
+
for (this.parseMemberExpression(t); this.accept(qe, "("); )
|
|
11157
|
+
if (this.accept(qe, ")"))
|
|
11156
11158
|
t.push(new A(Ut, 0));
|
|
11157
11159
|
else {
|
|
11158
11160
|
var n = this.parseArgumentList(t);
|
|
@@ -11160,7 +11162,7 @@ z.prototype.parseFunctionCall = function(t) {
|
|
|
11160
11162
|
}
|
|
11161
11163
|
};
|
|
11162
11164
|
z.prototype.parseArgumentList = function(t) {
|
|
11163
|
-
for (var e = 0; !this.accept(
|
|
11165
|
+
for (var e = 0; !this.accept(qe, ")"); )
|
|
11164
11166
|
for (this.parseExpression(t), ++e; this.accept(an); )
|
|
11165
11167
|
this.parseExpression(t), ++e;
|
|
11166
11168
|
return e;
|
|
@@ -11175,7 +11177,7 @@ z.prototype.parseMemberExpression = function(t) {
|
|
|
11175
11177
|
} else if (e.value === "[") {
|
|
11176
11178
|
if (!this.tokens.isOperatorEnabled("["))
|
|
11177
11179
|
throw new Error('unexpected "[]", arrays are disabled');
|
|
11178
|
-
this.parseExpression(t), this.expect(Bt, "]"), t.push(
|
|
11180
|
+
this.parseExpression(t), this.expect(Bt, "]"), t.push(We("["));
|
|
11179
11181
|
} else
|
|
11180
11182
|
throw new Error("unexpected symbol: " + e.value);
|
|
11181
11183
|
}
|
|
@@ -11473,7 +11475,7 @@ vt.prototype.parse = function(t) {
|
|
|
11473
11475
|
new Y(this, t),
|
|
11474
11476
|
{ allowMemberAccess: this.options.allowMemberAccess }
|
|
11475
11477
|
);
|
|
11476
|
-
return s.parseExpression(e), s.expect(Ts, "EOF"), new
|
|
11478
|
+
return s.parseExpression(e), s.expect(Ts, "EOF"), new Te(e, this);
|
|
11477
11479
|
};
|
|
11478
11480
|
vt.prototype.evaluate = function(t, e) {
|
|
11479
11481
|
return this.parse(t).evaluate(e);
|
|
@@ -11569,7 +11571,7 @@ let $r = class {
|
|
|
11569
11571
|
// Use ObservableData for results to handle dynamic properties properly
|
|
11570
11572
|
l(this, "_results");
|
|
11571
11573
|
l(this, "_contextRevision", 0);
|
|
11572
|
-
this.id = t, this.logger = s.logger, this._data =
|
|
11574
|
+
this.id = t, this.logger = s.logger, this._data = Be(), this._results = Be(), this.parser = new vt();
|
|
11573
11575
|
}
|
|
11574
11576
|
/**
|
|
11575
11577
|
* Get the current context data that expressions are evaluated against.
|
|
@@ -11806,7 +11808,7 @@ $r = Gm([
|
|
|
11806
11808
|
const Zm = $r.Registration, Jm = g.createLogger({
|
|
11807
11809
|
name: "kos-log-manager-service",
|
|
11808
11810
|
group: "Services"
|
|
11809
|
-
}), Xm = "/api/kos/logs/overrides", Lc = async () => (Jm.debug("sending GET for kos-log-manager"), await
|
|
11811
|
+
}), Xm = "/api/kos/logs/overrides", Lc = async () => (Jm.debug("sending GET for kos-log-manager"), await Le.get(Xm)), u_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11810
11812
|
__proto__: null,
|
|
11811
11813
|
getLogOverrides: Lc
|
|
11812
11814
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -11972,7 +11974,7 @@ cn([
|
|
|
11972
11974
|
Ht = cn([
|
|
11973
11975
|
R(Fc)
|
|
11974
11976
|
], Ht);
|
|
11975
|
-
const oy = new
|
|
11977
|
+
const oy = new ke({
|
|
11976
11978
|
class: Ht,
|
|
11977
11979
|
type: Fc
|
|
11978
11980
|
}), { URL: js } = ye(), { postModel: Ro, getOne: iy } = he.build({
|
|
@@ -12106,7 +12108,7 @@ const Hn = {
|
|
|
12106
12108
|
}
|
|
12107
12109
|
},
|
|
12108
12110
|
type: os,
|
|
12109
|
-
predicate:
|
|
12111
|
+
predicate: Re(os),
|
|
12110
12112
|
factory: ge.Singleton.create(os)
|
|
12111
12113
|
};
|
|
12112
12114
|
var hy = Object.defineProperty, fy = Object.getOwnPropertyDescriptor, Hc = (t, e, s, r) => {
|
|
@@ -12120,7 +12122,7 @@ let Ir = class {
|
|
|
12120
12122
|
l(this, "id");
|
|
12121
12123
|
l(this, "logger");
|
|
12122
12124
|
l(this, "_models");
|
|
12123
|
-
this.id = t, this.logger = s.logger, this._models = new
|
|
12125
|
+
this.id = t, this.logger = s.logger, this._models = new Ye({
|
|
12124
12126
|
parentId: t,
|
|
12125
12127
|
sortKey: "blockNum"
|
|
12126
12128
|
});
|
|
@@ -12149,7 +12151,7 @@ let Ir = class {
|
|
|
12149
12151
|
}
|
|
12150
12152
|
};
|
|
12151
12153
|
Hc([
|
|
12152
|
-
|
|
12154
|
+
Ge
|
|
12153
12155
|
], Ir.prototype, "_models", 2);
|
|
12154
12156
|
Ir = Hc([
|
|
12155
12157
|
R(zc)
|
|
@@ -12159,9 +12161,9 @@ const py = g.createLogger({
|
|
|
12159
12161
|
group: "Services"
|
|
12160
12162
|
}), qc = () => {
|
|
12161
12163
|
var r;
|
|
12162
|
-
const t =
|
|
12164
|
+
const t = Se(), s = (t == null ? void 0 : t.connId) || ((r = window == null ? void 0 : window.kosBridge) == null ? void 0 : r.call(window, "connId"));
|
|
12163
12165
|
return g.error(`getKosConnectionId: ${s}`), s;
|
|
12164
|
-
}, ts = qc(), gy = "/api/kos/logs/node/{nodeId}/streams", Kc = async () => (py.debug("sending GET for log-stream-container"), await
|
|
12166
|
+
}, ts = qc(), gy = "/api/kos/logs/node/{nodeId}/streams", Kc = async () => (py.debug("sending GET for log-stream-container"), await Le.get(
|
|
12165
12167
|
gy,
|
|
12166
12168
|
{
|
|
12167
12169
|
path: {
|
|
@@ -12172,7 +12174,7 @@ const py = g.createLogger({
|
|
|
12172
12174
|
destinationAddress: ts
|
|
12173
12175
|
}
|
|
12174
12176
|
)), Vc = async (t, e = "primary") => {
|
|
12175
|
-
await
|
|
12177
|
+
await Le.post(
|
|
12176
12178
|
"/api/kos/logs/node/{nodeId}/{stream}/subscribe",
|
|
12177
12179
|
{
|
|
12178
12180
|
path: {
|
|
@@ -12186,7 +12188,7 @@ const py = g.createLogger({
|
|
|
12186
12188
|
}
|
|
12187
12189
|
);
|
|
12188
12190
|
}, Gc = async (t) => {
|
|
12189
|
-
await
|
|
12191
|
+
await Le.post(
|
|
12190
12192
|
"/api/kos/logs/node/{nodeId}/{stream}/unsubscribe",
|
|
12191
12193
|
{ path: { nodeId: "primary", stream: t } },
|
|
12192
12194
|
void 0,
|
|
@@ -12195,7 +12197,7 @@ const py = g.createLogger({
|
|
|
12195
12197
|
}
|
|
12196
12198
|
);
|
|
12197
12199
|
}, my = async () => {
|
|
12198
|
-
await
|
|
12200
|
+
await Le.post(
|
|
12199
12201
|
"/api/kos/logs/overrides",
|
|
12200
12202
|
{},
|
|
12201
12203
|
{
|
|
@@ -12208,7 +12210,7 @@ const py = g.createLogger({
|
|
|
12208
12210
|
destinationAddress: ts
|
|
12209
12211
|
}
|
|
12210
12212
|
);
|
|
12211
|
-
}, Yc = async (t) => await
|
|
12213
|
+
}, Yc = async (t) => await Le.get(
|
|
12212
12214
|
"/api/kos/logs/node/{nodeId}/{stream}/blocks",
|
|
12213
12215
|
{
|
|
12214
12216
|
path: {
|
|
@@ -12219,7 +12221,7 @@ const py = g.createLogger({
|
|
|
12219
12221
|
{
|
|
12220
12222
|
destinationAddress: ts
|
|
12221
12223
|
}
|
|
12222
|
-
), Wc = async (t, e) => await
|
|
12224
|
+
), Wc = async (t, e) => await Le.get(
|
|
12223
12225
|
"/api/kos/logs/node/{nodeId}/{stream}/blocks/{blockId}",
|
|
12224
12226
|
{
|
|
12225
12227
|
path: {
|
|
@@ -12292,10 +12294,10 @@ let zn = class {
|
|
|
12292
12294
|
zn = by([
|
|
12293
12295
|
R(Qc)
|
|
12294
12296
|
], zn);
|
|
12295
|
-
const Or = new
|
|
12297
|
+
const Or = new Ce({
|
|
12296
12298
|
class: zn,
|
|
12297
12299
|
type: Qc
|
|
12298
|
-
}), ko = new
|
|
12300
|
+
}), ko = new Ce({
|
|
12299
12301
|
class: Ir,
|
|
12300
12302
|
type: zc
|
|
12301
12303
|
});
|
|
@@ -12465,12 +12467,12 @@ let Sr = class {
|
|
|
12465
12467
|
}
|
|
12466
12468
|
};
|
|
12467
12469
|
Zc([
|
|
12468
|
-
|
|
12470
|
+
Ge
|
|
12469
12471
|
], Sr.prototype, "_blocks", 2);
|
|
12470
12472
|
Sr = Zc([
|
|
12471
12473
|
R(Jc)
|
|
12472
12474
|
], Sr);
|
|
12473
|
-
const yr = new
|
|
12475
|
+
const yr = new Ce({
|
|
12474
12476
|
class: Sr,
|
|
12475
12477
|
type: Jc
|
|
12476
12478
|
});
|
|
@@ -12480,7 +12482,7 @@ var My = Object.defineProperty, Ey = Object.getOwnPropertyDescriptor, wt = (t, e
|
|
|
12480
12482
|
return r && n && My(e, s, n), n;
|
|
12481
12483
|
};
|
|
12482
12484
|
const Xc = "log-stream-container-model", _y = "/kos/logs/subscription/addBlock/*", Ty = "/kos/logs/subscription/updateBlock/*", $y = "/kos/logs/subscription/removeBlock/*", Iy = "/kos/logs/subscription/lines/*", el = "/kos/logs/streams/add/*";
|
|
12483
|
-
let
|
|
12485
|
+
let Ke = class {
|
|
12484
12486
|
constructor(t, e, s) {
|
|
12485
12487
|
/** Unique identifier for the container model instance */
|
|
12486
12488
|
l(this, "id");
|
|
@@ -12489,7 +12491,7 @@ let qe = class {
|
|
|
12489
12491
|
/** Currently selected log stream for UI display purposes */
|
|
12490
12492
|
l(this, "selectedStream");
|
|
12491
12493
|
l(this, "_models");
|
|
12492
|
-
this.id = t, this.logger = s.logger, this._models = new
|
|
12494
|
+
this.id = t, this.logger = s.logger, this._models = new Ye({ parentId: t }), this.selectedStream = void 0;
|
|
12493
12495
|
}
|
|
12494
12496
|
getModel(t) {
|
|
12495
12497
|
return this._models.getModel(t);
|
|
@@ -12574,43 +12576,43 @@ let qe = class {
|
|
|
12574
12576
|
}
|
|
12575
12577
|
};
|
|
12576
12578
|
wt([
|
|
12577
|
-
|
|
12578
|
-
],
|
|
12579
|
+
Ge
|
|
12580
|
+
], Ke.prototype, "_models", 2);
|
|
12579
12581
|
wt([
|
|
12580
12582
|
H({
|
|
12581
12583
|
topic: [el],
|
|
12582
12584
|
websocket: !0
|
|
12583
12585
|
})
|
|
12584
|
-
],
|
|
12586
|
+
], Ke.prototype, "handleStreamAdded", 1);
|
|
12585
12587
|
wt([
|
|
12586
12588
|
H({
|
|
12587
12589
|
topic: [_y],
|
|
12588
12590
|
websocket: !0
|
|
12589
12591
|
})
|
|
12590
|
-
],
|
|
12592
|
+
], Ke.prototype, "handleAddBlock", 1);
|
|
12591
12593
|
wt([
|
|
12592
12594
|
H({
|
|
12593
12595
|
topic: [$y],
|
|
12594
12596
|
websocket: !0
|
|
12595
12597
|
})
|
|
12596
|
-
],
|
|
12598
|
+
], Ke.prototype, "handleRemoveBlock", 1);
|
|
12597
12599
|
wt([
|
|
12598
12600
|
H({
|
|
12599
12601
|
topic: [Ty],
|
|
12600
12602
|
websocket: !0
|
|
12601
12603
|
})
|
|
12602
|
-
],
|
|
12604
|
+
], Ke.prototype, "handleUpdateBlock", 1);
|
|
12603
12605
|
wt([
|
|
12604
12606
|
H({
|
|
12605
12607
|
topic: [Iy],
|
|
12606
12608
|
websocket: !0
|
|
12607
12609
|
})
|
|
12608
|
-
],
|
|
12609
|
-
|
|
12610
|
+
], Ke.prototype, "handleLogLine", 1);
|
|
12611
|
+
Ke = wt([
|
|
12610
12612
|
R(Xc)
|
|
12611
|
-
],
|
|
12612
|
-
const un = new
|
|
12613
|
-
class:
|
|
12613
|
+
], Ke);
|
|
12614
|
+
const un = new ke({
|
|
12615
|
+
class: Ke,
|
|
12614
12616
|
type: Xc
|
|
12615
12617
|
});
|
|
12616
12618
|
un.addRelatedModel(yr);
|
|
@@ -12886,7 +12888,7 @@ const Dr = {
|
|
|
12886
12888
|
}
|
|
12887
12889
|
},
|
|
12888
12890
|
type: is,
|
|
12889
|
-
predicate:
|
|
12891
|
+
predicate: Re(is),
|
|
12890
12892
|
factory: ge.Factory.create(is)
|
|
12891
12893
|
};
|
|
12892
12894
|
var ol = Object.defineProperty, By = Object.getOwnPropertyDescriptor, Hy = (t, e, s) => e in t ? ol(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Lo = (t, e, s, r) => {
|
|
@@ -12896,32 +12898,32 @@ var ol = Object.defineProperty, By = Object.getOwnPropertyDescriptor, Hy = (t, e
|
|
|
12896
12898
|
}, zy = (t, e, s) => (Hy(t, e + "", s), s);
|
|
12897
12899
|
function Oi(t) {
|
|
12898
12900
|
return I.propertyMapper.hasMapper(
|
|
12899
|
-
|
|
12901
|
+
Pe.TroubleRank
|
|
12900
12902
|
) ? I.propertyMapper.executeMapper(
|
|
12901
|
-
|
|
12903
|
+
Pe.TroubleRank,
|
|
12902
12904
|
t
|
|
12903
12905
|
) : Dy(t);
|
|
12904
12906
|
}
|
|
12905
12907
|
function Si(t) {
|
|
12906
12908
|
return (I.propertyMapper.hasMapper(
|
|
12907
|
-
|
|
12909
|
+
Pe.TroubleColor
|
|
12908
12910
|
) ? I.propertyMapper.executeMapper(
|
|
12909
|
-
|
|
12911
|
+
Pe.TroubleColor,
|
|
12910
12912
|
t
|
|
12911
12913
|
) : xy(t)).toLowerCase();
|
|
12912
12914
|
}
|
|
12913
12915
|
function Ci(t) {
|
|
12914
12916
|
return (I.propertyMapper.hasMapper(
|
|
12915
|
-
|
|
12917
|
+
Pe.TroubleRole
|
|
12916
12918
|
) ? I.propertyMapper.executeMapper(
|
|
12917
|
-
|
|
12919
|
+
Pe.TroubleRole,
|
|
12918
12920
|
t
|
|
12919
12921
|
) : Py(t)).toLowerCase();
|
|
12920
12922
|
}
|
|
12921
12923
|
const qy = "trouble-container-model";
|
|
12922
|
-
class
|
|
12924
|
+
class _e {
|
|
12923
12925
|
}
|
|
12924
|
-
l(
|
|
12926
|
+
l(_e, "INDEX_TROUBLES_BY_IFACE", "byIface"), l(_e, "INDEX_TROUBLES_BY_TYPE", "byType"), l(_e, "INDEX_TROUBLES_BY_GROUP", "byGroup"), l(_e, "INDEX_TROUBLES_BY_DEFERRED", "byDeferred"), l(_e, "SORT_KEY_RANK", "rank"), l(_e, "TROUBLES_DEFERRED", "true");
|
|
12925
12927
|
let qt = class {
|
|
12926
12928
|
constructor(t, e) {
|
|
12927
12929
|
l(this, "id");
|
|
@@ -12950,7 +12952,7 @@ let qt = class {
|
|
|
12950
12952
|
}
|
|
12951
12953
|
handleTroubleRemoved(t) {
|
|
12952
12954
|
const e = `trouble-${t}`, s = this.troubles.getModel(e);
|
|
12953
|
-
this.troubles.removeModel(e), s &&
|
|
12955
|
+
this.troubles.removeModel(e), s && je(s);
|
|
12954
12956
|
}
|
|
12955
12957
|
handleTroubleAdded(t) {
|
|
12956
12958
|
const e = {
|
|
@@ -12985,12 +12987,12 @@ qt = Lo([
|
|
|
12985
12987
|
containerProperty: "troubles",
|
|
12986
12988
|
containerOptions: {
|
|
12987
12989
|
indexMap: {
|
|
12988
|
-
[
|
|
12989
|
-
[
|
|
12990
|
-
[
|
|
12991
|
-
[
|
|
12990
|
+
[_e.INDEX_TROUBLES_BY_IFACE]: ky,
|
|
12991
|
+
[_e.INDEX_TROUBLES_BY_TYPE]: "type",
|
|
12992
|
+
[_e.INDEX_TROUBLES_BY_GROUP]: "group",
|
|
12993
|
+
[_e.INDEX_TROUBLES_BY_DEFERRED]: "deferred"
|
|
12992
12994
|
},
|
|
12993
|
-
sortKey:
|
|
12995
|
+
sortKey: _e.SORT_KEY_RANK
|
|
12994
12996
|
}
|
|
12995
12997
|
})
|
|
12996
12998
|
], qt);
|
|
@@ -13164,7 +13166,7 @@ fn([
|
|
|
13164
13166
|
Kt = fn([
|
|
13165
13167
|
R(al)
|
|
13166
13168
|
], Kt);
|
|
13167
|
-
const Kn = new
|
|
13169
|
+
const Kn = new ke({
|
|
13168
13170
|
class: Kt,
|
|
13169
13171
|
type: al
|
|
13170
13172
|
});
|
|
@@ -13192,7 +13194,7 @@ const Dn = g.createLogger({
|
|
|
13192
13194
|
signal: t
|
|
13193
13195
|
});
|
|
13194
13196
|
if (!s)
|
|
13195
|
-
throw t != null && t.aborted ? (Dn.debug("Request was aborted"), new
|
|
13197
|
+
throw t != null && t.aborted ? (Dn.debug("Request was aborted"), new Ie("Request was aborted")) : (Dn.error("Failed to fetch software-info", e), new Ie("Failed to fetch software-info"));
|
|
13196
13198
|
return s;
|
|
13197
13199
|
}, Zy = Qy(Fo), p_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13198
13200
|
__proto__: null,
|
|
@@ -13250,7 +13252,7 @@ let Vn = class {
|
|
|
13250
13252
|
this.nodes = r;
|
|
13251
13253
|
});
|
|
13252
13254
|
} catch (t) {
|
|
13253
|
-
t instanceof
|
|
13255
|
+
t instanceof Ie && this.logger.error("Failed to fetch software-info", t);
|
|
13254
13256
|
}
|
|
13255
13257
|
}
|
|
13256
13258
|
};
|
|
@@ -13265,7 +13267,7 @@ const Gn = {
|
|
|
13265
13267
|
}
|
|
13266
13268
|
},
|
|
13267
13269
|
type: as,
|
|
13268
|
-
predicate:
|
|
13270
|
+
predicate: Re(as),
|
|
13269
13271
|
factory: ge.Factory.create(
|
|
13270
13272
|
as
|
|
13271
13273
|
)
|
|
@@ -13354,7 +13356,7 @@ const Pr = {
|
|
|
13354
13356
|
}
|
|
13355
13357
|
},
|
|
13356
13358
|
type: cs,
|
|
13357
|
-
predicate:
|
|
13359
|
+
predicate: Re(cs),
|
|
13358
13360
|
factory: ge.Factory.create(cs)
|
|
13359
13361
|
};
|
|
13360
13362
|
var ob = Object.defineProperty, ib = Object.getOwnPropertyDescriptor, dl = (t, e, s, r) => {
|
|
@@ -13420,7 +13422,7 @@ const hl = {
|
|
|
13420
13422
|
}
|
|
13421
13423
|
},
|
|
13422
13424
|
type: ls,
|
|
13423
|
-
predicate:
|
|
13425
|
+
predicate: Re(ls),
|
|
13424
13426
|
factory: ge.Factory.create(ls)
|
|
13425
13427
|
}, { URL: ab } = ye(), { getAll: cb } = he.build({
|
|
13426
13428
|
basePath: `${ab}/api/state-prop`
|
|
@@ -13436,7 +13438,7 @@ const hl = {
|
|
|
13436
13438
|
name: "translation-service",
|
|
13437
13439
|
group: "Services"
|
|
13438
13440
|
}), db = () => {
|
|
13439
|
-
const t = window.location.origin, e =
|
|
13441
|
+
const t = window.location.origin, e = Se();
|
|
13440
13442
|
return (e == null ? void 0 : e.host) || t;
|
|
13441
13443
|
}, hb = async (t, e) => {
|
|
13442
13444
|
gs.debug(`Loading translations from: ${t}`);
|
|
@@ -13673,7 +13675,7 @@ const Qn = {
|
|
|
13673
13675
|
}
|
|
13674
13676
|
},
|
|
13675
13677
|
type: us,
|
|
13676
|
-
predicate:
|
|
13678
|
+
predicate: Re(us),
|
|
13677
13679
|
factory: ge.Factory.create(us)
|
|
13678
13680
|
};
|
|
13679
13681
|
var yb = Object.defineProperty, bb = Object.getOwnPropertyDescriptor, yl = (t, e, s, r) => {
|
|
@@ -13710,7 +13712,7 @@ let Rr = class {
|
|
|
13710
13712
|
/** Array tracking registered namespace identifiers */
|
|
13711
13713
|
l(this, "namespaces", []);
|
|
13712
13714
|
l(this, "_models");
|
|
13713
|
-
this.id = t, this.lang = e.lang || "en", this.descriptor = e.descriptor, this._defaultNamespace = e.defaultNamespace, this.descriptorUrl = e.descriptorUrl, this.rootUrl = e.rootUrl, this.resolver = e.resolver || wb.bind(this), s.kosContext.set(pl, this.resolver), this.logger = s.logger, this._models = new
|
|
13715
|
+
this.id = t, this.lang = e.lang || "en", this.descriptor = e.descriptor, this._defaultNamespace = e.defaultNamespace, this.descriptorUrl = e.descriptorUrl, this.rootUrl = e.rootUrl, this.resolver = e.resolver || wb.bind(this), s.kosContext.set(pl, this.resolver), this.logger = s.logger, this._models = new Ye({
|
|
13714
13716
|
parentId: t
|
|
13715
13717
|
});
|
|
13716
13718
|
}
|
|
@@ -13791,7 +13793,7 @@ let Rr = class {
|
|
|
13791
13793
|
}
|
|
13792
13794
|
};
|
|
13793
13795
|
yl([
|
|
13794
|
-
|
|
13796
|
+
Ge
|
|
13795
13797
|
], Rr.prototype, "_models", 2);
|
|
13796
13798
|
Rr = yl([
|
|
13797
13799
|
R(ds)
|
|
@@ -13804,7 +13806,7 @@ const Je = {
|
|
|
13804
13806
|
}
|
|
13805
13807
|
},
|
|
13806
13808
|
type: ds,
|
|
13807
|
-
predicate:
|
|
13809
|
+
predicate: Re(ds),
|
|
13808
13810
|
factory: ge.Singleton.create(ds)
|
|
13809
13811
|
}, b_ = {
|
|
13810
13812
|
set(t, e) {
|
|
@@ -13886,9 +13888,9 @@ Uo([
|
|
|
13886
13888
|
Is = Uo([
|
|
13887
13889
|
R(bl.type)
|
|
13888
13890
|
], Is);
|
|
13889
|
-
const Ai =
|
|
13891
|
+
const Ai = Se(), Ib = Ai.debug === "true" || Ai.debug === !0, Ob = "/api/system/canvas", vl = async (t, e) => {
|
|
13890
13892
|
const r = `${me}${e || Ob}`;
|
|
13891
|
-
await
|
|
13893
|
+
await Fe(r, {
|
|
13892
13894
|
method: "POST",
|
|
13893
13895
|
headers: {
|
|
13894
13896
|
hide: Ib ? "false" : "true"
|
|
@@ -14067,7 +14069,7 @@ wl([
|
|
|
14067
14069
|
kr = wl([
|
|
14068
14070
|
R(Ml)
|
|
14069
14071
|
], kr);
|
|
14070
|
-
const El = new
|
|
14072
|
+
const El = new Ce({
|
|
14071
14073
|
class: kr,
|
|
14072
14074
|
type: Ml
|
|
14073
14075
|
});
|
|
@@ -15332,7 +15334,7 @@ let Xe = class {
|
|
|
15332
15334
|
// Note: BrowserRouter is automatically injected when using HTTP decorators!
|
|
15333
15335
|
l(this, "pattern");
|
|
15334
15336
|
l(this, "data");
|
|
15335
|
-
this.id = t, this.logger = s.logger, this._endpointRenderers = new
|
|
15337
|
+
this.id = t, this.logger = s.logger, this._endpointRenderers = new Ye();
|
|
15336
15338
|
}
|
|
15337
15339
|
addNamedEndpoint(t, e) {
|
|
15338
15340
|
this._endpointRenderers.getModel(t) && this.logger.warn(`Endpoint "${t}" already exists. Overwriting.`);
|
|
@@ -15429,7 +15431,7 @@ let Xe = class {
|
|
|
15429
15431
|
}
|
|
15430
15432
|
};
|
|
15431
15433
|
ss([
|
|
15432
|
-
|
|
15434
|
+
Ge
|
|
15433
15435
|
], Xe.prototype, "_endpointRenderers", 2);
|
|
15434
15436
|
ss([
|
|
15435
15437
|
en("/api/ui/canvas/patterns")
|
|
@@ -15446,7 +15448,7 @@ ss([
|
|
|
15446
15448
|
Xe = ss([
|
|
15447
15449
|
R(Ol)
|
|
15448
15450
|
], Xe);
|
|
15449
|
-
const Os = new
|
|
15451
|
+
const Os = new ke({
|
|
15450
15452
|
class: Xe,
|
|
15451
15453
|
type: Ol
|
|
15452
15454
|
}), { URL: Bo } = ye(), { getOne: Sl } = he.build({
|
|
@@ -15459,7 +15461,7 @@ const Os = new Re({
|
|
|
15459
15461
|
});
|
|
15460
15462
|
return [void 0, t == null ? void 0 : t.data.serialNumber];
|
|
15461
15463
|
} catch (t) {
|
|
15462
|
-
if (t instanceof
|
|
15464
|
+
if (t instanceof Ie)
|
|
15463
15465
|
return Nr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
|
|
15464
15466
|
}
|
|
15465
15467
|
return ["unknownError", void 0];
|
|
@@ -15471,7 +15473,7 @@ const Os = new Re({
|
|
|
15471
15473
|
});
|
|
15472
15474
|
return t ? [void 0, t.data] : ["unknownError", void 0];
|
|
15473
15475
|
} catch (t) {
|
|
15474
|
-
if (t instanceof
|
|
15476
|
+
if (t instanceof Ie)
|
|
15475
15477
|
return Nr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
|
|
15476
15478
|
}
|
|
15477
15479
|
return ["unknownError", void 0];
|
|
@@ -15692,7 +15694,7 @@ xl([
|
|
|
15692
15694
|
Ur = xl([
|
|
15693
15695
|
R(Pl)
|
|
15694
15696
|
], Ur);
|
|
15695
|
-
const Zn = new
|
|
15697
|
+
const Zn = new ke({
|
|
15696
15698
|
class: Ur,
|
|
15697
15699
|
type: Pl
|
|
15698
15700
|
});
|
|
@@ -15749,7 +15751,7 @@ let Jn = class {
|
|
|
15749
15751
|
Jn = ev([
|
|
15750
15752
|
R(Al)
|
|
15751
15753
|
], Jn);
|
|
15752
|
-
const Rl = new
|
|
15754
|
+
const Rl = new Ce({
|
|
15753
15755
|
class: Jn,
|
|
15754
15756
|
type: Al
|
|
15755
15757
|
}), { URL: tv } = ye(), { getAll: sv } = he.build({
|
|
@@ -15763,7 +15765,7 @@ const Rl = new Se({
|
|
|
15763
15765
|
const t = await sv({});
|
|
15764
15766
|
return [void 0, t == null ? void 0 : t.data];
|
|
15765
15767
|
} catch (t) {
|
|
15766
|
-
if (t instanceof
|
|
15768
|
+
if (t instanceof Ie)
|
|
15767
15769
|
return Li.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
|
|
15768
15770
|
}
|
|
15769
15771
|
return ["unknownError", void 0];
|
|
@@ -15784,7 +15786,7 @@ let jr = class {
|
|
|
15784
15786
|
/** Context logger for debugging and network interface operations */
|
|
15785
15787
|
l(this, "logger");
|
|
15786
15788
|
l(this, "_models");
|
|
15787
|
-
this.id = t, this.logger = s.logger, this._models = new
|
|
15789
|
+
this.id = t, this.logger = s.logger, this._models = new Ye({
|
|
15788
15790
|
parentId: t,
|
|
15789
15791
|
indexMap: {
|
|
15790
15792
|
byCategory: "category"
|
|
@@ -15839,12 +15841,12 @@ let jr = class {
|
|
|
15839
15841
|
}
|
|
15840
15842
|
};
|
|
15841
15843
|
Ll([
|
|
15842
|
-
|
|
15844
|
+
Ge
|
|
15843
15845
|
], jr.prototype, "_models", 2);
|
|
15844
15846
|
jr = Ll([
|
|
15845
15847
|
R(Fl)
|
|
15846
15848
|
], jr);
|
|
15847
|
-
const Br = new
|
|
15849
|
+
const Br = new ke({
|
|
15848
15850
|
class: jr,
|
|
15849
15851
|
type: Fl
|
|
15850
15852
|
});
|
|
@@ -15919,7 +15921,7 @@ Xn = cv([
|
|
|
15919
15921
|
po(),
|
|
15920
15922
|
R(Ul)
|
|
15921
15923
|
], Xn);
|
|
15922
|
-
const eo = new
|
|
15924
|
+
const eo = new Ce({
|
|
15923
15925
|
class: Xn,
|
|
15924
15926
|
type: Ul
|
|
15925
15927
|
});
|
|
@@ -15934,7 +15936,7 @@ let Ss = class {
|
|
|
15934
15936
|
l(this, "id");
|
|
15935
15937
|
l(this, "logger");
|
|
15936
15938
|
l(this, "_models");
|
|
15937
|
-
this.id = t, this.logger = s.logger, this._models = new
|
|
15939
|
+
this.id = t, this.logger = s.logger, this._models = new Ye({
|
|
15938
15940
|
parentId: t
|
|
15939
15941
|
});
|
|
15940
15942
|
}
|
|
@@ -16000,7 +16002,7 @@ let Ss = class {
|
|
|
16000
16002
|
}
|
|
16001
16003
|
};
|
|
16002
16004
|
Ho([
|
|
16003
|
-
|
|
16005
|
+
Ge
|
|
16004
16006
|
], Ss.prototype, "_models", 2);
|
|
16005
16007
|
Ho([
|
|
16006
16008
|
H({
|
|
@@ -16011,7 +16013,7 @@ Ho([
|
|
|
16011
16013
|
Ss = Ho([
|
|
16012
16014
|
R(jl)
|
|
16013
16015
|
], Ss);
|
|
16014
|
-
const Cs = new
|
|
16016
|
+
const Cs = new ke({
|
|
16015
16017
|
class: Ss,
|
|
16016
16018
|
type: jl
|
|
16017
16019
|
});
|
|
@@ -16093,7 +16095,7 @@ zl([
|
|
|
16093
16095
|
Hr = zl([
|
|
16094
16096
|
R(ql)
|
|
16095
16097
|
], Hr);
|
|
16096
|
-
const Kl = new
|
|
16098
|
+
const Kl = new Ce({
|
|
16097
16099
|
class: Hr,
|
|
16098
16100
|
type: ql
|
|
16099
16101
|
});
|
|
@@ -16111,7 +16113,7 @@ let Vt = class {
|
|
|
16111
16113
|
l(this, "_activeUpdate");
|
|
16112
16114
|
l(this, "logger");
|
|
16113
16115
|
l(this, "_models");
|
|
16114
|
-
this.id = t, this.logger = s.logger, this._models = new
|
|
16116
|
+
this.id = t, this.logger = s.logger, this._models = new Ye({ parentId: t });
|
|
16115
16117
|
}
|
|
16116
16118
|
getModel(t) {
|
|
16117
16119
|
return this._models.getModel(t);
|
|
@@ -16183,7 +16185,7 @@ pn([
|
|
|
16183
16185
|
ks({ modelType: Cs.type })
|
|
16184
16186
|
], Vt.prototype, "storageService", 2);
|
|
16185
16187
|
pn([
|
|
16186
|
-
|
|
16188
|
+
Ge
|
|
16187
16189
|
], Vt.prototype, "_models", 2);
|
|
16188
16190
|
pn([
|
|
16189
16191
|
Wd({ dependencies: (t) => [t.isUsbInserted] })
|
|
@@ -16191,7 +16193,7 @@ pn([
|
|
|
16191
16193
|
Vt = pn([
|
|
16192
16194
|
R(Vl)
|
|
16193
16195
|
], Vt);
|
|
16194
|
-
const zr = new
|
|
16196
|
+
const zr = new ke({
|
|
16195
16197
|
class: Vt,
|
|
16196
16198
|
type: Vl
|
|
16197
16199
|
});
|
|
@@ -16230,22 +16232,22 @@ const bv = () => ({ ...{
|
|
|
16230
16232
|
companion: P.companion.register(t),
|
|
16231
16233
|
legacy: P.model.registerLegacyModel(t)
|
|
16232
16234
|
};
|
|
16233
|
-
},
|
|
16234
|
-
|
|
16235
|
-
models: vv(
|
|
16235
|
+
}, Oe = {};
|
|
16236
|
+
Oe.core = {
|
|
16237
|
+
models: vv(Oe)
|
|
16236
16238
|
};
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
const ji =
|
|
16239
|
+
Oe.preload = P.model.preloadModel(Oe);
|
|
16240
|
+
Oe.model = P.model.register(Oe);
|
|
16241
|
+
Oe.companion = P.companion.register(Oe);
|
|
16242
|
+
Oe.legacy = P.model.registerLegacyModel(Oe);
|
|
16243
|
+
const ji = Oe;
|
|
16242
16244
|
class I_ {
|
|
16243
16245
|
/**
|
|
16244
16246
|
* Maps the rank property of the trouble into the {@link TroubleModel}
|
|
16245
16247
|
* */
|
|
16246
16248
|
registerTroubleRankMapper(e) {
|
|
16247
16249
|
return I.propertyMapper.registerPropertyMapper(
|
|
16248
|
-
|
|
16250
|
+
Pe.TroubleRank,
|
|
16249
16251
|
e
|
|
16250
16252
|
), this;
|
|
16251
16253
|
}
|
|
@@ -16254,7 +16256,7 @@ class I_ {
|
|
|
16254
16256
|
* */
|
|
16255
16257
|
registerTroubleRoleMapper(e) {
|
|
16256
16258
|
return I.propertyMapper.registerPropertyMapper(
|
|
16257
|
-
|
|
16259
|
+
Pe.TroubleRole,
|
|
16258
16260
|
e
|
|
16259
16261
|
), this;
|
|
16260
16262
|
}
|
|
@@ -16263,7 +16265,7 @@ class I_ {
|
|
|
16263
16265
|
* */
|
|
16264
16266
|
registerTroubleColorMapper(e) {
|
|
16265
16267
|
return I.propertyMapper.registerPropertyMapper(
|
|
16266
|
-
|
|
16268
|
+
Pe.TroubleColor,
|
|
16267
16269
|
e
|
|
16268
16270
|
), this;
|
|
16269
16271
|
}
|
|
@@ -16286,7 +16288,7 @@ const O_ = async (t, e) => {
|
|
|
16286
16288
|
await s.updateState(`${r}${n}`, void 0);
|
|
16287
16289
|
},
|
|
16288
16290
|
unsubscribe: () => {
|
|
16289
|
-
|
|
16291
|
+
je(s);
|
|
16290
16292
|
}
|
|
16291
16293
|
};
|
|
16292
16294
|
}, Yl = "kos:service:region", Wl = "regionId", wv = `${Yl}-${Wl}`, Mv = async (t) => {
|
|
@@ -16676,7 +16678,7 @@ function k_(t) {
|
|
|
16676
16678
|
};
|
|
16677
16679
|
}
|
|
16678
16680
|
const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (t, e) => Av(t, e, `${me}/api/server/login`), Av = async (t, e, s = `${me}/api/login`) => {
|
|
16679
|
-
const r = await
|
|
16681
|
+
const r = await Fe(`${s}`, {
|
|
16680
16682
|
method: "POST",
|
|
16681
16683
|
destinationAddress: "",
|
|
16682
16684
|
body: JSON.stringify({
|
|
@@ -16690,7 +16692,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
|
|
|
16690
16692
|
}
|
|
16691
16693
|
return await r.json();
|
|
16692
16694
|
}, F_ = async (t) => Rv(t, `${me}/api/server/startPasswordReset`, ""), Rv = async (t, e = `${me}/api/startPasswordReset`, s = "server") => {
|
|
16693
|
-
const r = await
|
|
16695
|
+
const r = await Fe(`${e}?email=${t}`, {
|
|
16694
16696
|
method: "POST",
|
|
16695
16697
|
destinationAddress: s
|
|
16696
16698
|
});
|
|
@@ -16706,7 +16708,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
|
|
|
16706
16708
|
"*"
|
|
16707
16709
|
)}`
|
|
16708
16710
|
);
|
|
16709
|
-
const r = await
|
|
16711
|
+
const r = await Fe(`${s}`, {
|
|
16710
16712
|
method: "POST",
|
|
16711
16713
|
destinationAddress: "",
|
|
16712
16714
|
body: JSON.stringify({
|
|
@@ -16734,7 +16736,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
|
|
|
16734
16736
|
"*"
|
|
16735
16737
|
)}`
|
|
16736
16738
|
);
|
|
16737
|
-
const n = await
|
|
16739
|
+
const n = await Fe(`${r}`, {
|
|
16738
16740
|
method: "POST",
|
|
16739
16741
|
destinationAddress: "",
|
|
16740
16742
|
body: JSON.stringify({
|
|
@@ -16959,7 +16961,7 @@ const zv = {
|
|
|
16959
16961
|
);
|
|
16960
16962
|
}, q_ = (t) => Yv({
|
|
16961
16963
|
filter: (s) => {
|
|
16962
|
-
const r =
|
|
16964
|
+
const r = He(s.id);
|
|
16963
16965
|
return (r == null ? void 0 : r.type) === t;
|
|
16964
16966
|
}
|
|
16965
16967
|
})[0], Wv = g.createLogger({ name: "kos-model-loader" }), Qv = () => /* @__PURE__ */ w("div", {}), Zv = ({ fallback: t, children: e, ...s }) => /* @__PURE__ */ w(Kv, { children: /* @__PURE__ */ w(Hv, { fallback: t, children: /* @__PURE__ */ w(Su, { children: /* @__PURE__ */ w(Jv, { ...s, children: e }) }) }) }), Jv = (t) => {
|
|
@@ -17098,14 +17100,14 @@ const ne = (t) => {
|
|
|
17098
17100
|
m == null || m.fsm.transitionTo(L.GO_INACTIVE, y.INACTIVE).then(() => {
|
|
17099
17101
|
if (n) {
|
|
17100
17102
|
const b = h.id;
|
|
17101
|
-
|
|
17103
|
+
je(h).then(() => {
|
|
17102
17104
|
ct.delete(b), p == null || p();
|
|
17103
17105
|
});
|
|
17104
17106
|
}
|
|
17105
17107
|
});
|
|
17106
17108
|
}
|
|
17107
17109
|
} else
|
|
17108
|
-
n && h &&
|
|
17110
|
+
n && h && je(h).then(() => {
|
|
17109
17111
|
ct.delete(e), p == null || p();
|
|
17110
17112
|
});
|
|
17111
17113
|
};
|
|
@@ -17173,7 +17175,7 @@ function J_({ children: t }) {
|
|
|
17173
17175
|
return /* @__PURE__ */ w(aw.Provider, { value: cu, children: t });
|
|
17174
17176
|
}
|
|
17175
17177
|
const lu = As(void 0), cw = () => {
|
|
17176
|
-
const t = window.location.origin, e =
|
|
17178
|
+
const t = window.location.origin, e = Se();
|
|
17177
17179
|
return (e == null ? void 0 : e.host) || t;
|
|
17178
17180
|
}, X_ = ({
|
|
17179
17181
|
children: t,
|
|
@@ -17194,8 +17196,8 @@ const lu = As(void 0), cw = () => {
|
|
|
17194
17196
|
return V.value;
|
|
17195
17197
|
}).filter((V) => !!V).reverse().reduce((V, j) => {
|
|
17196
17198
|
const te = j.path;
|
|
17197
|
-
return Object.keys(j.namespaces).forEach((
|
|
17198
|
-
const Qe = j.namespaces[
|
|
17199
|
+
return Object.keys(j.namespaces).forEach((Ee) => {
|
|
17200
|
+
const Qe = j.namespaces[Ee];
|
|
17199
17201
|
Qe.basePath = te;
|
|
17200
17202
|
}), {
|
|
17201
17203
|
...V,
|
|
@@ -17811,14 +17813,14 @@ function wT({
|
|
|
17811
17813
|
}).format(a);
|
|
17812
17814
|
return o ? o == "MMDDYY" ? `${c} ${d} ${u}` : o === "DDMMYY" ? `${d} ${c} ${u}` : o === "YYMMDD" ? `${u} ${c} ${d}` : `${u} ${d} ${c}` : new Intl.DateTimeFormat(t, n).format(a);
|
|
17813
17815
|
}
|
|
17814
|
-
function
|
|
17816
|
+
function De(t) {
|
|
17815
17817
|
return t.toString().length === 2 ? new Date(Date.parse(`01 Jan 20${t}`)).getFullYear() : t;
|
|
17816
17818
|
}
|
|
17817
17819
|
function MT(t) {
|
|
17818
17820
|
return typeof t == "string" ? new Date(Date.parse(`01 ${t.substring(0, 3)} 2023`)).getMonth() + 1 : t;
|
|
17819
17821
|
}
|
|
17820
17822
|
function jw(t, e, s) {
|
|
17821
|
-
const r =
|
|
17823
|
+
const r = De(e), n = new Date(r, t, 1).getDay(), o = new Date(r, t + 1, 0).getDate();
|
|
17822
17824
|
return [...Array(42).keys()].map((a) => a < n || a > o + n - 1 ? { label: "", value: 0, disabled: !0 } : s[a - n]);
|
|
17823
17825
|
}
|
|
17824
17826
|
function sr(t, e, s) {
|
|
@@ -17894,7 +17896,7 @@ function Kw(t, e = "en-US") {
|
|
|
17894
17896
|
);
|
|
17895
17897
|
}
|
|
17896
17898
|
function fu(t, e) {
|
|
17897
|
-
const s =
|
|
17899
|
+
const s = De(t);
|
|
17898
17900
|
return W(
|
|
17899
17901
|
() => Lw(s, e),
|
|
17900
17902
|
[e, s]
|
|
@@ -17975,7 +17977,7 @@ function ET({
|
|
|
17975
17977
|
daysArray: V,
|
|
17976
17978
|
daysOptionsArray: j,
|
|
17977
17979
|
calendarDayArray: te,
|
|
17978
|
-
dayNamesArray:
|
|
17980
|
+
dayNamesArray: Ee
|
|
17979
17981
|
} = Hw({
|
|
17980
17982
|
locale: t,
|
|
17981
17983
|
year: d,
|
|
@@ -18000,7 +18002,7 @@ function ET({
|
|
|
18000
18002
|
setMonth: b,
|
|
18001
18003
|
setDay: M,
|
|
18002
18004
|
nextMonth: () => {
|
|
18003
|
-
const ie = m < 11 ?
|
|
18005
|
+
const ie = m < 11 ? De(d) : De(d + 1), fe = m < 11 ? m + 1 : 0;
|
|
18004
18006
|
if (!sr(ie, fe, v)) {
|
|
18005
18007
|
const st = rr(ie, fe);
|
|
18006
18008
|
M(st);
|
|
@@ -18008,7 +18010,7 @@ function ET({
|
|
|
18008
18010
|
fe === 0 && h(ie), b(fe);
|
|
18009
18011
|
},
|
|
18010
18012
|
previousMonth: () => {
|
|
18011
|
-
const ie =
|
|
18013
|
+
const ie = De(m === 0 ? d - 1 : d), fe = m === 0 ? 11 : m - 1;
|
|
18012
18014
|
if (!sr(ie, fe, v)) {
|
|
18013
18015
|
const st = rr(ie, fe);
|
|
18014
18016
|
M(st);
|
|
@@ -18016,20 +18018,20 @@ function ET({
|
|
|
18016
18018
|
fe === 11 && h(ie), b(fe);
|
|
18017
18019
|
},
|
|
18018
18020
|
nextYear: () => {
|
|
18019
|
-
const ie = d < f[1] ? d + 1 : f[0], fe =
|
|
18021
|
+
const ie = d < f[1] ? d + 1 : f[0], fe = De(ie);
|
|
18020
18022
|
if (sr(fe, m, v))
|
|
18021
18023
|
h(ie);
|
|
18022
18024
|
else {
|
|
18023
|
-
const st = rr(
|
|
18025
|
+
const st = rr(De(d + 1), m);
|
|
18024
18026
|
M(st), h(ie);
|
|
18025
18027
|
}
|
|
18026
18028
|
},
|
|
18027
18029
|
previousYear: () => {
|
|
18028
|
-
const ie = d > f[0] ? d - 1 : f[0], fe =
|
|
18030
|
+
const ie = d > f[0] ? d - 1 : f[0], fe = De(ie);
|
|
18029
18031
|
if (sr(fe, m, v))
|
|
18030
18032
|
h(ie);
|
|
18031
18033
|
else {
|
|
18032
|
-
const st = rr(
|
|
18034
|
+
const st = rr(De(d - 1), m);
|
|
18033
18035
|
M(st), h(ie);
|
|
18034
18036
|
}
|
|
18035
18037
|
}
|
|
@@ -18045,7 +18047,7 @@ function ET({
|
|
|
18045
18047
|
monthsOptionsArray: E,
|
|
18046
18048
|
daysArray: V,
|
|
18047
18049
|
daysOptionsArray: j,
|
|
18048
|
-
calendarDayNames:
|
|
18050
|
+
calendarDayNames: Ee,
|
|
18049
18051
|
calendarDayArray: te,
|
|
18050
18052
|
formattedDate: Qe
|
|
18051
18053
|
}
|
|
@@ -18516,7 +18518,7 @@ const Qi = g.createLogger({
|
|
|
18516
18518
|
}), gM = "/api/kos/studio/properties", bu = async (t) => {
|
|
18517
18519
|
if (Qi.debug("sending GET for studio-properties"), !t)
|
|
18518
18520
|
throw Qi.error("connectionId is undefined"), new Error("connectionId is undefined");
|
|
18519
|
-
return await
|
|
18521
|
+
return await Le.get(
|
|
18520
18522
|
gM,
|
|
18521
18523
|
{},
|
|
18522
18524
|
{
|
|
@@ -18548,7 +18550,7 @@ let to = class {
|
|
|
18548
18550
|
l(this, "logger");
|
|
18549
18551
|
/** Observable data store for Studio properties */
|
|
18550
18552
|
l(this, "data");
|
|
18551
|
-
this.id = t, this.logger = s.logger, this.data =
|
|
18553
|
+
this.id = t, this.logger = s.logger, this.data = Be(), this.connectionId = e.connectionId;
|
|
18552
18554
|
}
|
|
18553
18555
|
// -------------------LIFECYCLE----------------------------
|
|
18554
18556
|
/**
|
|
@@ -18617,7 +18619,7 @@ let to = class {
|
|
|
18617
18619
|
to = yM([
|
|
18618
18620
|
R(vu)
|
|
18619
18621
|
], to);
|
|
18620
|
-
const RT = new
|
|
18622
|
+
const RT = new Ce({
|
|
18621
18623
|
class: to,
|
|
18622
18624
|
type: vu
|
|
18623
18625
|
});
|
|
@@ -18663,7 +18665,7 @@ export {
|
|
|
18663
18665
|
vg as FUTURE_MODEL_TYPE,
|
|
18664
18666
|
ac as FUTURE_NOT_ASSIGNED,
|
|
18665
18667
|
pd as FeatureFlagService,
|
|
18666
|
-
|
|
18668
|
+
Ie as FetchError,
|
|
18667
18669
|
ar as FutureAliases,
|
|
18668
18670
|
pt as FutureContainerFactory,
|
|
18669
18671
|
zg as FutureContainerModel,
|
|
@@ -18681,7 +18683,7 @@ export {
|
|
|
18681
18683
|
io as HEADER_METHOD,
|
|
18682
18684
|
na as HEADER_ORDERED,
|
|
18683
18685
|
Kr as HEADER_REQUEST_ID,
|
|
18684
|
-
|
|
18686
|
+
Ve as HEADER_REQUEST_TYPE,
|
|
18685
18687
|
ao as HEADER_RESPONSE_ID,
|
|
18686
18688
|
Pu as HEADER_SOURCE_ADDR,
|
|
18687
18689
|
xu as HEADER_TOPIC,
|
|
@@ -18701,7 +18703,7 @@ export {
|
|
|
18701
18703
|
Up as KosContextBean,
|
|
18702
18704
|
J as KosContextManager,
|
|
18703
18705
|
T as KosCore,
|
|
18704
|
-
|
|
18706
|
+
Pe as KosCoreModelPropertyMapper,
|
|
18705
18707
|
rc as KosDataContainer,
|
|
18706
18708
|
aE as KosDependencyTypes,
|
|
18707
18709
|
Zm as KosExpressionEvaluator,
|
|
@@ -18716,7 +18718,7 @@ export {
|
|
|
18716
18718
|
Nu as KosMockEvents,
|
|
18717
18719
|
op as KosModel,
|
|
18718
18720
|
z_ as KosModelCollectionProvider,
|
|
18719
|
-
|
|
18721
|
+
Ye as KosModelContainer,
|
|
18720
18722
|
qo as KosModelContext,
|
|
18721
18723
|
L as KosModelEvents,
|
|
18722
18724
|
lr as KosModelFactory,
|
|
@@ -18724,7 +18726,7 @@ export {
|
|
|
18724
18726
|
Jv as KosModelLoaderDisplay,
|
|
18725
18727
|
lp as KosModelManager,
|
|
18726
18728
|
Kv as KosModelProvider,
|
|
18727
|
-
|
|
18729
|
+
Ce as KosModelRegistrationFactory,
|
|
18728
18730
|
ji as KosModelRegistry,
|
|
18729
18731
|
y as KosModelState,
|
|
18730
18732
|
La as KosModelSymbol,
|
|
@@ -18763,7 +18765,7 @@ export {
|
|
|
18763
18765
|
Rl as NetworkInterface,
|
|
18764
18766
|
Br as NetworkInterfaceContainer,
|
|
18765
18767
|
E_ as NetworkInterfaceServices,
|
|
18766
|
-
|
|
18768
|
+
Be as ObservableData,
|
|
18767
18769
|
Jr as OptionsRequired,
|
|
18768
18770
|
Kn as Ota,
|
|
18769
18771
|
aT as OutsideAlerter,
|
|
@@ -18786,7 +18788,7 @@ export {
|
|
|
18786
18788
|
ra as STATUS,
|
|
18787
18789
|
he as ServiceFactory,
|
|
18788
18790
|
Rt as ServiceRequestHandlers,
|
|
18789
|
-
|
|
18791
|
+
ke as SingletonKosModelRegistrationFactory,
|
|
18790
18792
|
Gn as SoftwareInfo,
|
|
18791
18793
|
au as SoftwareInfoContext,
|
|
18792
18794
|
Q_ as SoftwareInfoProvider,
|
|
@@ -18824,7 +18826,7 @@ export {
|
|
|
18824
18826
|
Ua as TroubleAwareSetup,
|
|
18825
18827
|
$s as TroubleContainer,
|
|
18826
18828
|
f_ as TroubleServices,
|
|
18827
|
-
|
|
18829
|
+
_e as Troubles,
|
|
18828
18830
|
Kl as UsbUpdate,
|
|
18829
18831
|
zr as UsbUpdateContainer,
|
|
18830
18832
|
T_ as UsbUpdateServices,
|
|
@@ -18875,7 +18877,7 @@ export {
|
|
|
18875
18877
|
Wu as debounce,
|
|
18876
18878
|
Vd as del,
|
|
18877
18879
|
Ig as deleteFuture,
|
|
18878
|
-
|
|
18880
|
+
je as destroyKosModel,
|
|
18879
18881
|
Wp as evaluateScopes,
|
|
18880
18882
|
Xh as executeChildrenModelLifecycle,
|
|
18881
18883
|
Ks as executeDependentModelLifecycle,
|
|
@@ -18899,7 +18901,7 @@ export {
|
|
|
18899
18901
|
wT as getFormattedDate,
|
|
18900
18902
|
MT as getFormattedMonth,
|
|
18901
18903
|
du as getFormattedMonthsArray,
|
|
18902
|
-
|
|
18904
|
+
De as getFormattedYear,
|
|
18903
18905
|
Uw as getFormattedYearsArray,
|
|
18904
18906
|
a_ as getFutures,
|
|
18905
18907
|
Gd as getHttpRouteHandlers,
|
|
@@ -18907,7 +18909,7 @@ export {
|
|
|
18907
18909
|
fb as getKosLocalizationDescriptor,
|
|
18908
18910
|
ad as getKosMessageLogging,
|
|
18909
18911
|
nh as getKosModel,
|
|
18910
|
-
|
|
18912
|
+
He as getKosModelSync,
|
|
18911
18913
|
vE as getKosModelType,
|
|
18912
18914
|
Np as getKosSessionKey,
|
|
18913
18915
|
rr as getLastDayOfMonth,
|
|
@@ -18917,7 +18919,7 @@ export {
|
|
|
18917
18919
|
ii as getMessageBody,
|
|
18918
18920
|
Fw as getMonthsArray,
|
|
18919
18921
|
EE as getObservableCompanions,
|
|
18920
|
-
|
|
18922
|
+
Se as getQueryParams,
|
|
18921
18923
|
UE as getServiceResponse,
|
|
18922
18924
|
e_ as getStartedApps,
|
|
18923
18925
|
hb as getTranslations,
|
|
@@ -18937,7 +18939,7 @@ export {
|
|
|
18937
18939
|
dr as isKosDataModel,
|
|
18938
18940
|
Ha as isKosExecutionContext,
|
|
18939
18941
|
JM as isKosLoggingEnabled,
|
|
18940
|
-
|
|
18942
|
+
Re as isKosModel,
|
|
18941
18943
|
Za as isKosModelContainer,
|
|
18942
18944
|
Fn as isKosModelReady,
|
|
18943
18945
|
Ia as isLeapYear,
|
|
@@ -18948,7 +18950,7 @@ export {
|
|
|
18948
18950
|
sr as isValidDate,
|
|
18949
18951
|
oe as kosAction,
|
|
18950
18952
|
ee as kosAutoEffect,
|
|
18951
|
-
|
|
18953
|
+
Ge as kosChild,
|
|
18952
18954
|
rE as kosCompanion,
|
|
18953
18955
|
jT as kosComponent,
|
|
18954
18956
|
oc as kosComputed,
|
|
@@ -18958,7 +18960,7 @@ export {
|
|
|
18958
18960
|
nE as kosContext,
|
|
18959
18961
|
ks as kosDependency,
|
|
18960
18962
|
zp as kosEffect,
|
|
18961
|
-
|
|
18963
|
+
Fe as kosFetch,
|
|
18962
18964
|
tu as kosFuture,
|
|
18963
18965
|
oE as kosFutureAware,
|
|
18964
18966
|
uE as kosLogger,
|