@hpcc-js/comms 3.18.0 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +341 -450
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.umd.cjs +2 -2
- package/dist/browser/index.umd.cjs.map +1 -1
- package/dist/node/index.cjs +12 -12
- package/dist/node/index.cjs.map +4 -4
- package/dist/node/index.js +12 -12
- package/dist/node/index.js.map +4 -4
- package/package.json +14 -15
package/dist/browser/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { Cache as e, Dispatch as t, Edge as n, Graph as r, Message as i, SAXStac
|
|
|
3
3
|
var ee = Object.defineProperty, __name = (e, t) => ee(e, "name", {
|
|
4
4
|
value: t,
|
|
5
5
|
configurable: !0
|
|
6
|
-
}),
|
|
6
|
+
}), te = "@hpcc-js/comms", S = "3.20.0", C = "3.35.0", w = y("comms/connection.ts");
|
|
7
7
|
function instanceOfIOptions(e) {
|
|
8
8
|
return "baseUrl" in e;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var ne = {
|
|
11
11
|
type: "post",
|
|
12
12
|
baseUrl: "",
|
|
13
13
|
userID: "",
|
|
@@ -46,7 +46,7 @@ function jsonp(e, t, n = {}, r = "json", i) {
|
|
|
46
46
|
let l = document.createElement("script"), u = g(e.baseUrl, t);
|
|
47
47
|
u += u.indexOf("?") >= 0 ? "&" : "?", l.src = u + "jsonp=" + c + "&" + serializeRequest(n, e.encodeRequest), document.body.appendChild(l);
|
|
48
48
|
let d = setInterval(function() {
|
|
49
|
-
o <= 0 ? clearInterval(d) : (o -= s, o <= 0 ? (clearInterval(d),
|
|
49
|
+
o <= 0 ? clearInterval(d) : (o -= s, o <= 0 ? (clearInterval(d), w.error("Request timeout: " + l.src), doCallback(), a(Error("Request timeout: " + l.src))) : w.debug("Request pending (" + o / 1e3 + " sec): " + l.src));
|
|
50
50
|
}, s);
|
|
51
51
|
function doCallback() {
|
|
52
52
|
delete window[c], document.body.removeChild(l);
|
|
@@ -56,13 +56,13 @@ function jsonp(e, t, n = {}, r = "json", i) {
|
|
|
56
56
|
function authHeader(e) {
|
|
57
57
|
return e.userID ? { Authorization: `Basic ${b(`${e.userID}:${e.password}`)}` } : {};
|
|
58
58
|
}
|
|
59
|
-
var
|
|
59
|
+
var T = {};
|
|
60
60
|
function doFetch(e, t, n, r, i) {
|
|
61
61
|
r = {
|
|
62
62
|
...authHeader(e),
|
|
63
63
|
...r
|
|
64
64
|
}, n = {
|
|
65
|
-
credentials:
|
|
65
|
+
credentials: T[e.baseUrl] ? "omit" : "include",
|
|
66
66
|
...n,
|
|
67
67
|
headers: r
|
|
68
68
|
}, e.baseUrl.indexOf("https:") === 0 && (e.rejectUnauthorized === !1 && v.__hpcc_rejectUnauthorizedAgent ? n.dispatcher = v.__hpcc_rejectUnauthorizedAgent : v.__hpcc_trustwaveAgent && (n.agent = v.__hpcc_trustwaveAgent));
|
|
@@ -75,7 +75,7 @@ function doFetch(e, t, n, r, i) {
|
|
|
75
75
|
throw Error(e.statusText);
|
|
76
76
|
}
|
|
77
77
|
let a = v.__hpcc_undiciFetch ?? fetch;
|
|
78
|
-
return _(e.timeoutSecs * 1e3, a(g(e.baseUrl, t), n).then(handleResponse).catch((r) => (n.credentials =
|
|
78
|
+
return _(e.timeoutSecs * 1e3, a(g(e.baseUrl, t), n).then(handleResponse).catch((r) => (n.credentials = T[e.baseUrl] ? "include" : "omit", a(g(e.baseUrl, t), n).then(handleResponse).then((t) => (T[e.baseUrl] = !T[e.baseUrl], t)))));
|
|
79
79
|
}
|
|
80
80
|
function post(e, t, n, r = "json", i) {
|
|
81
81
|
n.upload_ && (delete n.upload_, t += "?upload_");
|
|
@@ -109,12 +109,12 @@ function send(e, t, n, r = "json", i) {
|
|
|
109
109
|
}
|
|
110
110
|
return a;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var E = send;
|
|
113
113
|
function hookSend(e) {
|
|
114
|
-
let t =
|
|
115
|
-
return e && (
|
|
114
|
+
let t = E;
|
|
115
|
+
return e && (E = e), t;
|
|
116
116
|
}
|
|
117
|
-
var
|
|
117
|
+
var re = class Connection {
|
|
118
118
|
_opts;
|
|
119
119
|
get baseUrl() {
|
|
120
120
|
return this._opts.baseUrl;
|
|
@@ -124,18 +124,18 @@ var ne = class Connection {
|
|
|
124
124
|
}
|
|
125
125
|
opts(e) {
|
|
126
126
|
return arguments.length === 0 ? this._opts : (this._opts = {
|
|
127
|
-
...
|
|
127
|
+
...ne,
|
|
128
128
|
...e
|
|
129
129
|
}, this);
|
|
130
130
|
}
|
|
131
131
|
send(e, t, n = "json", r) {
|
|
132
|
-
return this._opts.hookSend ? this._opts.hookSend(this._opts, e, t, n,
|
|
132
|
+
return this._opts.hookSend ? this._opts.hookSend(this._opts, e, t, n, E, r) : E(this._opts, e, t, n, r);
|
|
133
133
|
}
|
|
134
134
|
clone() {
|
|
135
135
|
return new Connection(this.opts());
|
|
136
136
|
}
|
|
137
137
|
}, createConnection = function(e) {
|
|
138
|
-
return new
|
|
138
|
+
return new re(e);
|
|
139
139
|
};
|
|
140
140
|
function setTransportFactory(e) {
|
|
141
141
|
let t = createConnection;
|
|
@@ -162,7 +162,7 @@ function isExceptions(e) {
|
|
|
162
162
|
function isConnection(e) {
|
|
163
163
|
return e.send !== void 0;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var ie = class ESPConnection {
|
|
166
166
|
_connection;
|
|
167
167
|
get baseUrl() {
|
|
168
168
|
return this._connection.opts().baseUrl;
|
|
@@ -235,7 +235,7 @@ var re = class ESPConnection {
|
|
|
235
235
|
return this._connection.opts().baseUrl;
|
|
236
236
|
}
|
|
237
237
|
constructor(e, t, n) {
|
|
238
|
-
this._connection = new
|
|
238
|
+
this._connection = new ie(e, t, n);
|
|
239
239
|
}
|
|
240
240
|
opts() {
|
|
241
241
|
return this._connection.opts();
|
|
@@ -243,14 +243,14 @@ var re = class ESPConnection {
|
|
|
243
243
|
connection() {
|
|
244
244
|
return this._connection.clone();
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, D;
|
|
247
247
|
(function(e) {
|
|
248
248
|
e.DFUWUActions = /* @__PURE__ */ function(e) {
|
|
249
249
|
return e.Delete = "Delete", e.Protect = "Protect", e.Unprotect = "Unprotect", e.Restore = "Restore", e.SetToFailed = "SetToFailed", e.Archive = "Archive", e;
|
|
250
250
|
}({}), e.DFUCommand = /* @__PURE__ */ function(e) {
|
|
251
251
|
return e.copy = "copy", e.remove = "remove", e.move = "move", e.rename = "rename", e.replicate = "replicate", e.import = "import", e.export = "export", e.monitor = "monitor", e.copymerge = "copymerge", e.supercopy = "supercopy", e.publish = "publish", e;
|
|
252
252
|
}({});
|
|
253
|
-
})(
|
|
253
|
+
})(D ||= {});
|
|
254
254
|
var FileSprayServiceBase = class extends Service {
|
|
255
255
|
constructor(e) {
|
|
256
256
|
super(e, "FileSpray", "1.29");
|
|
@@ -351,7 +351,7 @@ var FileSprayServiceBase = class extends Service {
|
|
|
351
351
|
UpdateDFUWorkunit(e, t) {
|
|
352
352
|
return this._connection.send("UpdateDFUWorkunit", e, "json", !1, t, "UpdateDFUWorkunitResponse");
|
|
353
353
|
}
|
|
354
|
-
},
|
|
354
|
+
}, ae = /* @__PURE__ */ function(e) {
|
|
355
355
|
return e[e.unknown = 0] = "unknown", e[e.scheduled = 1] = "scheduled", e[e.queued = 2] = "queued", e[e.started = 3] = "started", e[e.aborted = 4] = "aborted", e[e.failed = 5] = "failed", e[e.finished = 6] = "finished", e[e.monitoring = 7] = "monitoring", e[e.aborting = 8] = "aborting", e[e.notfound = 999] = "notfound", e;
|
|
356
356
|
}({}), FileSprayService = class extends FileSprayServiceBase {
|
|
357
357
|
DFUWUFileEx(e) {
|
|
@@ -369,7 +369,7 @@ var FileSprayServiceBase = class extends Service {
|
|
|
369
369
|
UpdateDFUWorkunitEx(e) {
|
|
370
370
|
return this._connection.send("UpdateDFUWorkunit", e, "json", !1, void 0, "UpdateDFUWorkunitResponse");
|
|
371
371
|
}
|
|
372
|
-
},
|
|
372
|
+
}, oe;
|
|
373
373
|
(function(e) {
|
|
374
374
|
e.ViewMemberType = /* @__PURE__ */ function(e) {
|
|
375
375
|
return e.User = "User", e.Group = "Group", e;
|
|
@@ -384,7 +384,7 @@ var FileSprayServiceBase = class extends Service {
|
|
|
384
384
|
}({}), e.ResourceSortBy = /* @__PURE__ */ function(e) {
|
|
385
385
|
return e.Name = "Name", e;
|
|
386
386
|
}({});
|
|
387
|
-
})(
|
|
387
|
+
})(oe ||= {});
|
|
388
388
|
var AccessServiceBase = class extends Service {
|
|
389
389
|
constructor(e) {
|
|
390
390
|
super(e, "ws_access", "1.17");
|
|
@@ -587,7 +587,7 @@ var AccessServiceBase = class extends Service {
|
|
|
587
587
|
Ping(e, t) {
|
|
588
588
|
return this._connection.send("Ping", e, "json", !1, t, "WsCloudPingResponse");
|
|
589
589
|
}
|
|
590
|
-
},
|
|
590
|
+
}, se = y("@hpcc-js/comms/services/wsCloud.ts");
|
|
591
591
|
function isGetPODsResponse_v1_02(e) {
|
|
592
592
|
return e?.Pods !== void 0;
|
|
593
593
|
}
|
|
@@ -625,16 +625,16 @@ var CloudService = class extends CloudServiceBase {
|
|
|
625
625
|
try {
|
|
626
626
|
return mapPods((typeof e.Result == "string" ? JSON.parse(e.Result) : e.Result)?.items ?? []);
|
|
627
627
|
} catch (e) {
|
|
628
|
-
return
|
|
628
|
+
return se.error(`Error parsing V1Pods json '${e instanceof Error ? e.message : String(e)}'`), [];
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
},
|
|
632
|
+
}, O;
|
|
633
633
|
(function(e) {
|
|
634
634
|
e.SigningMethodType = /* @__PURE__ */ function(e) {
|
|
635
635
|
return e.gpg = "gpg", e;
|
|
636
636
|
}({});
|
|
637
|
-
})(
|
|
637
|
+
})(O ||= {});
|
|
638
638
|
var CodesignServiceBase = class extends Service {
|
|
639
639
|
constructor(e) {
|
|
640
640
|
super(e, "ws_codesign", "1.1");
|
|
@@ -657,7 +657,7 @@ var CodesignServiceBase = class extends Service {
|
|
|
657
657
|
}
|
|
658
658
|
Sign(e) {
|
|
659
659
|
return super.Sign({
|
|
660
|
-
SigningMethod:
|
|
660
|
+
SigningMethod: O.SigningMethodType.gpg,
|
|
661
661
|
...e
|
|
662
662
|
});
|
|
663
663
|
}
|
|
@@ -755,7 +755,7 @@ var CodesignServiceBase = class extends Service {
|
|
|
755
755
|
UnlockSDSLock(e, t) {
|
|
756
756
|
return this._connection.send("UnlockSDSLock", e, "json", !1, t, "ResultResponse");
|
|
757
757
|
}
|
|
758
|
-
}, DaliService = class extends DaliServiceBase {},
|
|
758
|
+
}, DaliService = class extends DaliServiceBase {}, k;
|
|
759
759
|
(function(e) {
|
|
760
760
|
e.DFUArrayActions = /* @__PURE__ */ function(e) {
|
|
761
761
|
return e.Delete = "Delete", e.AddToSuperfile = "Add To Superfile", e.ChangeProtection = "Change Protection", e.ChangeRestriction = "Change Restriction", e;
|
|
@@ -772,7 +772,7 @@ var CodesignServiceBase = class extends Service {
|
|
|
772
772
|
}({}), e.DFUFileType = /* @__PURE__ */ function(e) {
|
|
773
773
|
return e.Flat = "Flat", e.Index = "Index", e.Xml = "Xml", e.Csv = "Csv", e.Json = "Json", e.IndexLocal = "IndexLocal", e.IndexPartitioned = "IndexPartitioned", e.Unset = "Unset", e;
|
|
774
774
|
}({});
|
|
775
|
-
})(
|
|
775
|
+
})(k ||= {});
|
|
776
776
|
var DfuServiceBase = class extends Service {
|
|
777
777
|
constructor(e) {
|
|
778
778
|
super(e, "WsDfu", "1.68");
|
|
@@ -864,7 +864,7 @@ var DfuServiceBase = class extends Service {
|
|
|
864
864
|
SuperfileList(e, t) {
|
|
865
865
|
return this._connection.send("SuperfileList", e, "json", !1, t, "SuperfileListResponse");
|
|
866
866
|
}
|
|
867
|
-
},
|
|
867
|
+
}, ce = k.DFUArrayActions, le = k.DFUDefFileFormat, ue = k.DFUChangeProtection, de = k.DFUChangeRestriction, DFUService = class extends DfuServiceBase {
|
|
868
868
|
DFUFile(e) {
|
|
869
869
|
return this._connection.send("DFUDefFile", e, "text");
|
|
870
870
|
}
|
|
@@ -1021,7 +1021,7 @@ var EclService = class extends Service {
|
|
|
1021
1021
|
Ping(e, t) {
|
|
1022
1022
|
return this._connection.send("Ping", e, "json", !1, t, "ws_elkPingResponse");
|
|
1023
1023
|
}
|
|
1024
|
-
}, ElkService = class extends ElkServiceBase {},
|
|
1024
|
+
}, ElkService = class extends ElkServiceBase {}, A;
|
|
1025
1025
|
(function(e) {
|
|
1026
1026
|
e.LogColumnType = /* @__PURE__ */ function(e) {
|
|
1027
1027
|
return e.global = "global", e.workunits = "workunits", e.components = "components", e.audience = "audience", e.class = "class", e.instance = "instance", e.node = "node", e.message = "message", e.logid = "logid", e.processid = "processid", e.threadid = "threadid", e.timestamp = "timestamp", e.pod = "pod", e.traceid = "traceid", e.spanid = "spanid", e;
|
|
@@ -1040,7 +1040,7 @@ var EclService = class extends Service {
|
|
|
1040
1040
|
}({}), e.SortDirection = /* @__PURE__ */ function(e) {
|
|
1041
1041
|
return e[e.ASC = 0] = "ASC", e[e.DSC = 1] = "DSC", e;
|
|
1042
1042
|
}({});
|
|
1043
|
-
})(
|
|
1043
|
+
})(A ||= {});
|
|
1044
1044
|
var LogaccessServiceBase = class extends Service {
|
|
1045
1045
|
constructor(e) {
|
|
1046
1046
|
super(e, "ws_logaccess", "1.08");
|
|
@@ -1057,29 +1057,29 @@ var LogaccessServiceBase = class extends Service {
|
|
|
1057
1057
|
Ping(e) {
|
|
1058
1058
|
return this._connection.send("Ping", e, "json", !1, void 0, "ws_logaccessPingResponse");
|
|
1059
1059
|
}
|
|
1060
|
-
},
|
|
1060
|
+
}, fe = y("@hpcc-js/comms/services/wsLogaccess.ts"), pe = /* @__PURE__ */ function(e) {
|
|
1061
1061
|
return e.Disaster = "DIS", e.Error = "ERR", e.Warning = "WRN", e.Information = "INF", e.Progress = "PRO", e.Metric = "MET", e;
|
|
1062
|
-
}({}),
|
|
1062
|
+
}({}), me = /* @__PURE__ */ function(e) {
|
|
1063
1063
|
return e.Operator = "OPR", e.User = "USR", e.Programmer = "PRO", e.Audit = "ADT", e;
|
|
1064
|
-
}({}),
|
|
1064
|
+
}({}), he = /* @__PURE__ */ new Set([
|
|
1065
1065
|
"azureloganalyticscurl",
|
|
1066
1066
|
"elasticstack",
|
|
1067
1067
|
"grafanacurl"
|
|
1068
|
-
]),
|
|
1068
|
+
]), ge = new Set(Object.values(A.LogColumnType));
|
|
1069
1069
|
function getLogCategory(e) {
|
|
1070
1070
|
switch (e) {
|
|
1071
|
-
case
|
|
1072
|
-
case "hpcc.log.jobid": return
|
|
1073
|
-
case
|
|
1074
|
-
case "hpcc.log.audience": return
|
|
1075
|
-
case
|
|
1076
|
-
case "hpcc.log.class": return
|
|
1077
|
-
case
|
|
1078
|
-
case "kubernetes.container.name": return
|
|
1079
|
-
default: return
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
var
|
|
1071
|
+
case A.LogColumnType.workunits:
|
|
1072
|
+
case "hpcc.log.jobid": return A.LogAccessType.ByJobID;
|
|
1073
|
+
case A.LogColumnType.audience:
|
|
1074
|
+
case "hpcc.log.audience": return A.LogAccessType.ByTargetAudience;
|
|
1075
|
+
case A.LogColumnType.class:
|
|
1076
|
+
case "hpcc.log.class": return A.LogAccessType.ByLogType;
|
|
1077
|
+
case A.LogColumnType.components:
|
|
1078
|
+
case "kubernetes.container.name": return A.LogAccessType.ByComponent;
|
|
1079
|
+
default: return A.LogAccessType.ByFieldName;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
var _e = [
|
|
1083
1083
|
"audience",
|
|
1084
1084
|
"class",
|
|
1085
1085
|
"workunits",
|
|
@@ -1093,12 +1093,12 @@ var ge = [
|
|
|
1093
1093
|
];
|
|
1094
1094
|
function buildFilters(e, t) {
|
|
1095
1095
|
let n = [];
|
|
1096
|
-
for (let r of
|
|
1096
|
+
for (let r of _e) {
|
|
1097
1097
|
let i = e[r];
|
|
1098
1098
|
if (i == null || i === "" || Array.isArray(i) && i.length === 0 || !(r in t)) continue;
|
|
1099
|
-
let a =
|
|
1100
|
-
o ===
|
|
1101
|
-
let s = o ===
|
|
1099
|
+
let a = ge.has(r) ? r : t[r], o = getLogCategory(a);
|
|
1100
|
+
o === A.LogAccessType.ByFieldName && (a = t[r]);
|
|
1101
|
+
let s = o === A.LogAccessType.ByComponent, c = Array.isArray(i) ? i : [i];
|
|
1102
1102
|
for (let e of c) n.push({
|
|
1103
1103
|
LogCategory: o,
|
|
1104
1104
|
SearchField: a,
|
|
@@ -1109,13 +1109,13 @@ function buildFilters(e, t) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
function buildOrGroup(e) {
|
|
1111
1111
|
let t = { leftFilter: e[0] }, n = t;
|
|
1112
|
-
for (let t = 1; t < e.length; t++) n.Operator =
|
|
1112
|
+
for (let t = 1; t < e.length; t++) n.Operator = A.LogAccessFilterOperator.OR, t === e.length - 1 ? n.rightFilter = e[t] : (n.rightBinaryFilter = { BinaryLogFilter: [{ leftFilter: e[t] }] }, n = n.rightBinaryFilter.BinaryLogFilter[0]);
|
|
1113
1113
|
return t;
|
|
1114
1114
|
}
|
|
1115
1115
|
function buildAndChain(e) {
|
|
1116
1116
|
let [t, ...n] = e, r = {};
|
|
1117
1117
|
if (t.length === 1 ? r.leftFilter = t[0] : r.leftBinaryFilter = { BinaryLogFilter: [buildOrGroup(t)] }, n.length === 0) return r;
|
|
1118
|
-
if (r.Operator =
|
|
1118
|
+
if (r.Operator = A.LogAccessFilterOperator.AND, n.length === 1) {
|
|
1119
1119
|
let [e] = n;
|
|
1120
1120
|
e.length === 1 ? r.rightFilter = e[0] : r.rightBinaryFilter = { BinaryLogFilter: [buildOrGroup(e)] };
|
|
1121
1121
|
} else r.rightBinaryFilter = { BinaryLogFilter: [buildAndChain(n)] };
|
|
@@ -1128,10 +1128,10 @@ function buildFilterTree(e) {
|
|
|
1128
1128
|
e ? e.push(n) : t.set(n.SearchField, [n]);
|
|
1129
1129
|
}
|
|
1130
1130
|
let n = [...t.values()];
|
|
1131
|
-
if (n.length === 0) return { leftFilter: { LogCategory:
|
|
1131
|
+
if (n.length === 0) return { leftFilter: { LogCategory: A.LogAccessType.All } };
|
|
1132
1132
|
let [r, ...i] = n, a = {};
|
|
1133
1133
|
if (r.length === 1 ? a.leftFilter = r[0] : a.leftBinaryFilter = { BinaryLogFilter: [buildOrGroup(r)] }, i.length === 0) return a;
|
|
1134
|
-
if (a.Operator =
|
|
1134
|
+
if (a.Operator = A.LogAccessFilterOperator.AND, i.length === 1) {
|
|
1135
1135
|
let [e] = i;
|
|
1136
1136
|
e.length === 1 ? a.rightFilter = e[0] : a.rightBinaryFilter = { BinaryLogFilter: [buildOrGroup(e)] };
|
|
1137
1137
|
} else a.rightBinaryFilter = { BinaryLogFilter: [buildAndChain(i)] };
|
|
@@ -1160,10 +1160,10 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1160
1160
|
Range: i,
|
|
1161
1161
|
LogLineStartFrom: e.LogLineStartFrom ?? 0,
|
|
1162
1162
|
LogLineLimit: e.LogLineLimit ?? 100,
|
|
1163
|
-
SelectColumnMode:
|
|
1163
|
+
SelectColumnMode: A.LogSelectColumnMode.DEFAULT,
|
|
1164
1164
|
Format: "JSON",
|
|
1165
1165
|
SortBy: { SortCondition: [{
|
|
1166
|
-
BySortType:
|
|
1166
|
+
BySortType: A.SortColumType.ByDate,
|
|
1167
1167
|
ColumnName: "",
|
|
1168
1168
|
Direction: 0
|
|
1169
1169
|
}] }
|
|
@@ -1172,11 +1172,11 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1172
1172
|
try {
|
|
1173
1173
|
let r = JSON.parse(e.LogLines);
|
|
1174
1174
|
return {
|
|
1175
|
-
lines:
|
|
1175
|
+
lines: he.has(t.RemoteLogManagerType) ? r.lines?.map((e) => this.convertLogLine(n, e)) ?? [] : (fe.warning(`Unknown RemoteLogManagerType: ${t.RemoteLogManagerType}`), []),
|
|
1176
1176
|
total: e.TotalLogLinesAvailable ?? 1e4
|
|
1177
1177
|
};
|
|
1178
1178
|
} catch (e) {
|
|
1179
|
-
|
|
1179
|
+
fe.error(e.message ?? e);
|
|
1180
1180
|
}
|
|
1181
1181
|
return {
|
|
1182
1182
|
lines: [],
|
|
@@ -1186,80 +1186,37 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
1188
1188
|
//#endregion
|
|
1189
|
-
//#region ../../node_modules/d3-array/src/ascending.js
|
|
1190
|
-
function ascending_default(e, t) {
|
|
1191
|
-
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1192
|
-
}
|
|
1193
|
-
__name(ascending_default, "default");
|
|
1194
|
-
//#endregion
|
|
1195
|
-
//#region ../../node_modules/d3-array/src/bisector.js
|
|
1196
|
-
function bisector_default(e) {
|
|
1197
|
-
return e.length === 1 && (e = ascendingComparator(e)), {
|
|
1198
|
-
left: function(t, n, r, i) {
|
|
1199
|
-
for (r ??= 0, i ??= t.length; r < i;) {
|
|
1200
|
-
var a = r + i >>> 1;
|
|
1201
|
-
e(t[a], n) < 0 ? r = a + 1 : i = a;
|
|
1202
|
-
}
|
|
1203
|
-
return r;
|
|
1204
|
-
},
|
|
1205
|
-
right: function(t, n, r, i) {
|
|
1206
|
-
for (r ??= 0, i ??= t.length; r < i;) {
|
|
1207
|
-
var a = r + i >>> 1;
|
|
1208
|
-
e(t[a], n) > 0 ? i = a : r = a + 1;
|
|
1209
|
-
}
|
|
1210
|
-
return r;
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
|
-
}
|
|
1214
|
-
__name(bisector_default, "default");
|
|
1215
|
-
function ascendingComparator(e) {
|
|
1216
|
-
return function(t, n) {
|
|
1217
|
-
return ascending_default(e(t), n);
|
|
1218
|
-
};
|
|
1219
|
-
}
|
|
1220
|
-
//#endregion
|
|
1221
|
-
//#region ../../node_modules/d3-array/src/bisect.js
|
|
1222
|
-
var _e = bisector_default(ascending_default);
|
|
1223
|
-
_e.right, _e.left;
|
|
1224
|
-
//#endregion
|
|
1225
|
-
//#region ../../node_modules/d3-array/src/number.js
|
|
1226
|
-
function number_default(e) {
|
|
1227
|
-
return e === null ? NaN : +e;
|
|
1228
|
-
}
|
|
1229
|
-
__name(number_default, "default");
|
|
1230
|
-
//#endregion
|
|
1231
|
-
//#region ../../node_modules/d3-array/src/array.js
|
|
1232
|
-
var ve = Array.prototype;
|
|
1233
|
-
ve.slice, ve.map;
|
|
1234
|
-
//#endregion
|
|
1235
1189
|
//#region ../../node_modules/d3-array/src/max.js
|
|
1236
|
-
function
|
|
1237
|
-
|
|
1238
|
-
if (t
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1190
|
+
function max(e, t) {
|
|
1191
|
+
let n;
|
|
1192
|
+
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
|
|
1193
|
+
else {
|
|
1194
|
+
let r = -1;
|
|
1195
|
+
for (let i of e) (i = t(i, ++r, e)) != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
1196
|
+
}
|
|
1197
|
+
return n;
|
|
1242
1198
|
}
|
|
1243
|
-
__name(max_default, "default");
|
|
1244
1199
|
//#endregion
|
|
1245
1200
|
//#region ../../node_modules/d3-array/src/mean.js
|
|
1246
|
-
function
|
|
1247
|
-
|
|
1248
|
-
if (t
|
|
1249
|
-
else
|
|
1250
|
-
|
|
1201
|
+
function mean(e, t) {
|
|
1202
|
+
let n = 0, r = 0;
|
|
1203
|
+
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (++n, r += t);
|
|
1204
|
+
else {
|
|
1205
|
+
let i = -1;
|
|
1206
|
+
for (let a of e) (a = t(a, ++i, e)) != null && (a = +a) >= a && (++n, r += a);
|
|
1207
|
+
}
|
|
1208
|
+
if (n) return r / n;
|
|
1251
1209
|
}
|
|
1252
|
-
__name(mean_default, "default");
|
|
1253
1210
|
//#endregion
|
|
1254
1211
|
//#region src/services/wsdl/ws_machine/v1.19/ws_machine.ts
|
|
1255
|
-
var
|
|
1212
|
+
var ve;
|
|
1256
1213
|
(function(e) {
|
|
1257
1214
|
e.ThresholdType = /* @__PURE__ */ function(e) {
|
|
1258
1215
|
return e[e.THRESHOLD_PERCENTAGE = 0] = "THRESHOLD_PERCENTAGE", e[e.THRESHOLD_MB = 1] = "THRESHOLD_MB", e;
|
|
1259
1216
|
}({}), e.TpMachineType = /* @__PURE__ */ function(e) {
|
|
1260
1217
|
return e.ALLNODES = "ALLNODES", e.THORMACHINES = "THORMACHINES", e.HOLEMACHINES = "HOLEMACHINES", e.ROXIEMACHINES = "ROXIEMACHINES", e.MACHINES = "MACHINES", e.AVAILABLEMACHINES = "AVAILABLEMACHINES", e.DROPZONE = "DROPZONE", e.STANDBYNNODE = "STANDBYNNODE", e.THORSPARENODES = "THORSPARENODES", e.HOLESTANDBYNODES = "HOLESTANDBYNODES", e;
|
|
1261
1218
|
}({});
|
|
1262
|
-
})(
|
|
1219
|
+
})(ve ||= {});
|
|
1263
1220
|
var MachineServiceBase = class extends Service {
|
|
1264
1221
|
constructor(e) {
|
|
1265
1222
|
super(e, "ws_machine", "1.19");
|
|
@@ -1313,8 +1270,8 @@ var MachineServiceBase = class extends Service {
|
|
|
1313
1270
|
NetAddress: e.NetAddress,
|
|
1314
1271
|
Description: e.Description,
|
|
1315
1272
|
DiskUsages: t,
|
|
1316
|
-
mean:
|
|
1317
|
-
max:
|
|
1273
|
+
mean: mean(t.filter((e) => !isNaN(e.PercentUsed)), (e) => e.PercentUsed),
|
|
1274
|
+
max: max(t.filter((e) => !isNaN(e.PercentUsed)), (e) => e.PercentUsed)
|
|
1318
1275
|
};
|
|
1319
1276
|
});
|
|
1320
1277
|
return {
|
|
@@ -1323,8 +1280,8 @@ var MachineServiceBase = class extends Service {
|
|
|
1323
1280
|
Description: e.Description,
|
|
1324
1281
|
MachineUsages: t,
|
|
1325
1282
|
MachineUsagesDescription: t.reduce((e, t) => e + (t.Description || ""), ""),
|
|
1326
|
-
mean:
|
|
1327
|
-
max:
|
|
1283
|
+
mean: mean(t.filter((e) => !isNaN(e.mean)), (e) => e.mean),
|
|
1284
|
+
max: max(t.filter((e) => !isNaN(e.max)), (e) => e.max)
|
|
1328
1285
|
};
|
|
1329
1286
|
});
|
|
1330
1287
|
return {
|
|
@@ -1332,8 +1289,8 @@ var MachineServiceBase = class extends Service {
|
|
|
1332
1289
|
Description: e.Description,
|
|
1333
1290
|
ComponentUsages: t,
|
|
1334
1291
|
ComponentUsagesDescription: t.reduce((e, t) => e + (t.MachineUsagesDescription || ""), ""),
|
|
1335
|
-
mean:
|
|
1336
|
-
max:
|
|
1292
|
+
mean: mean(t.filter((e) => !isNaN(e.mean)), (e) => e.mean),
|
|
1293
|
+
max: max(t.filter((e) => !isNaN(e.max)), (e) => e.max)
|
|
1337
1294
|
};
|
|
1338
1295
|
}));
|
|
1339
1296
|
}
|
|
@@ -1405,12 +1362,12 @@ var MachineServiceBase = class extends Service {
|
|
|
1405
1362
|
WebLinksQuery(e) {
|
|
1406
1363
|
return this._connection.send("WebLinksQuery", e);
|
|
1407
1364
|
}
|
|
1408
|
-
}, ResourcesService = class extends ResourcesServiceBase {},
|
|
1365
|
+
}, ResourcesService = class extends ResourcesServiceBase {}, ye;
|
|
1409
1366
|
(function(e) {
|
|
1410
1367
|
e.WUTypes = /* @__PURE__ */ function(e) {
|
|
1411
1368
|
return e.ECL = "ECL", e.DFU = "DFU", e;
|
|
1412
1369
|
}({});
|
|
1413
|
-
})(
|
|
1370
|
+
})(ye ||= {});
|
|
1414
1371
|
var SashaServiceBase = class extends Service {
|
|
1415
1372
|
constructor(e) {
|
|
1416
1373
|
super(e, "WSSasha", "1.01");
|
|
@@ -1430,132 +1387,89 @@ var SashaServiceBase = class extends Service {
|
|
|
1430
1387
|
RestoreWU(e, t) {
|
|
1431
1388
|
return this._connection.send("RestoreWU", e, "json", !1, t, "ResultResponse");
|
|
1432
1389
|
}
|
|
1433
|
-
}, SashaService = class extends SashaServiceBase {},
|
|
1434
|
-
function
|
|
1390
|
+
}, SashaService = class extends SashaServiceBase {}, j = /* @__PURE__ */ new Date(), be = /* @__PURE__ */ new Date();
|
|
1391
|
+
function timeInterval(e, t, n, r) {
|
|
1435
1392
|
function interval(t) {
|
|
1436
1393
|
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
|
|
1437
1394
|
}
|
|
1438
|
-
return interval.floor =
|
|
1439
|
-
|
|
1440
|
-
}, interval.ceil = function(n) {
|
|
1441
|
-
return e(n = /* @__PURE__ */ new Date(n - 1)), t(n, 1), e(n), n;
|
|
1442
|
-
}, interval.round = function(e) {
|
|
1443
|
-
var t = interval(e), n = interval.ceil(e);
|
|
1395
|
+
return interval.floor = (t) => (e(t = /* @__PURE__ */ new Date(+t)), t), interval.ceil = (n) => (e(n = /* @__PURE__ */ new Date(n - 1)), t(n, 1), e(n), n), interval.round = (e) => {
|
|
1396
|
+
let t = interval(e), n = interval.ceil(e);
|
|
1444
1397
|
return e - t < n - e ? t : n;
|
|
1445
|
-
}, interval.offset =
|
|
1446
|
-
|
|
1447
|
-
}, interval.range = function(n, r, i) {
|
|
1448
|
-
var a = [], o;
|
|
1398
|
+
}, interval.offset = (e, n) => (t(e = /* @__PURE__ */ new Date(+e), n == null ? 1 : Math.floor(n)), e), interval.range = (n, r, i) => {
|
|
1399
|
+
let a = [];
|
|
1449
1400
|
if (n = interval.ceil(n), i = i == null ? 1 : Math.floor(i), !(n < r) || !(i > 0)) return a;
|
|
1401
|
+
let o;
|
|
1450
1402
|
do
|
|
1451
1403
|
a.push(o = /* @__PURE__ */ new Date(+n)), t(n, i), e(n);
|
|
1452
1404
|
while (o < n && n < r);
|
|
1453
1405
|
return a;
|
|
1454
|
-
}, interval.filter =
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
if (e
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
});
|
|
1463
|
-
}, n && (interval.count = function(t, r) {
|
|
1464
|
-
return M.setTime(+t), N.setTime(+r), e(M), e(N), Math.floor(n(M, N));
|
|
1465
|
-
}, interval.every = function(e) {
|
|
1466
|
-
return e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? interval.filter(r ? function(t) {
|
|
1467
|
-
return r(t) % e === 0;
|
|
1468
|
-
} : function(t) {
|
|
1469
|
-
return interval.count(0, t) % e === 0;
|
|
1470
|
-
}) : interval;
|
|
1471
|
-
}), interval;
|
|
1406
|
+
}, interval.filter = (n) => timeInterval((t) => {
|
|
1407
|
+
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
|
|
1408
|
+
}, (e, r) => {
|
|
1409
|
+
if (e >= e) {
|
|
1410
|
+
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
|
|
1411
|
+
else for (; --r >= 0;) for (; t(e, 1), !n(e););
|
|
1412
|
+
}
|
|
1413
|
+
}), n && (interval.count = (t, r) => (j.setTime(+t), be.setTime(+r), e(j), e(be), Math.floor(n(j, be))), interval.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? interval.filter(r ? (t) => r(t) % e === 0 : (t) => interval.count(0, t) % e === 0) : interval)), interval;
|
|
1472
1414
|
}
|
|
1415
|
+
var xe = 6e4, M = xe * 60 * 24, Se = M * 7;
|
|
1416
|
+
M * 30, M * 365;
|
|
1473
1417
|
//#endregion
|
|
1474
|
-
//#region ../../node_modules/d3-time/src/
|
|
1475
|
-
var
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
e.
|
|
1479
|
-
},
|
|
1480
|
-
|
|
1481
|
-
},
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1418
|
+
//#region ../../node_modules/d3-time/src/day.js
|
|
1419
|
+
var Ce = timeInterval((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * xe) / M, (e) => e.getDate() - 1);
|
|
1420
|
+
Ce.range;
|
|
1421
|
+
var we = timeInterval((e) => {
|
|
1422
|
+
e.setUTCHours(0, 0, 0, 0);
|
|
1423
|
+
}, (e, t) => {
|
|
1424
|
+
e.setUTCDate(e.getUTCDate() + t);
|
|
1425
|
+
}, (e, t) => (t - e) / M, (e) => e.getUTCDate() - 1);
|
|
1426
|
+
we.range, timeInterval((e) => {
|
|
1427
|
+
e.setUTCHours(0, 0, 0, 0);
|
|
1428
|
+
}, (e, t) => {
|
|
1429
|
+
e.setUTCDate(e.getUTCDate() + t);
|
|
1430
|
+
}, (e, t) => (t - e) / M, (e) => Math.floor(e / M)).range;
|
|
1485
1431
|
//#endregion
|
|
1486
1432
|
//#region ../../node_modules/d3-time/src/week.js
|
|
1487
|
-
function
|
|
1488
|
-
return
|
|
1433
|
+
function timeWeekday(e) {
|
|
1434
|
+
return timeInterval((t) => {
|
|
1489
1435
|
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
|
|
1490
|
-
},
|
|
1436
|
+
}, (e, t) => {
|
|
1491
1437
|
e.setDate(e.getDate() + t * 7);
|
|
1492
|
-
},
|
|
1493
|
-
return (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * xe) / Ce;
|
|
1494
|
-
});
|
|
1438
|
+
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * xe) / Se);
|
|
1495
1439
|
}
|
|
1496
|
-
var Te =
|
|
1497
|
-
Te.range,
|
|
1498
|
-
//#endregion
|
|
1499
|
-
//#region ../../node_modules/d3-time/src/year.js
|
|
1500
|
-
var I = newInterval(function(e) {
|
|
1501
|
-
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
1502
|
-
}, function(e, t) {
|
|
1503
|
-
e.setFullYear(e.getFullYear() + t);
|
|
1504
|
-
}, function(e, t) {
|
|
1505
|
-
return t.getFullYear() - e.getFullYear();
|
|
1506
|
-
}, function(e) {
|
|
1507
|
-
return e.getFullYear();
|
|
1508
|
-
});
|
|
1509
|
-
I.every = function(e) {
|
|
1510
|
-
return !isFinite(e = Math.floor(e)) || !(e > 0) ? null : newInterval(function(t) {
|
|
1511
|
-
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
|
|
1512
|
-
}, function(t, n) {
|
|
1513
|
-
t.setFullYear(t.getFullYear() + n * e);
|
|
1514
|
-
});
|
|
1515
|
-
}, I.range;
|
|
1516
|
-
//#endregion
|
|
1517
|
-
//#region ../../node_modules/d3-time/src/utcDay.js
|
|
1518
|
-
var Ae = newInterval(function(e) {
|
|
1519
|
-
e.setUTCHours(0, 0, 0, 0);
|
|
1520
|
-
}, function(e, t) {
|
|
1521
|
-
e.setUTCDate(e.getUTCDate() + t);
|
|
1522
|
-
}, function(e, t) {
|
|
1523
|
-
return (t - e) / Se;
|
|
1524
|
-
}, function(e) {
|
|
1525
|
-
return e.getUTCDate() - 1;
|
|
1526
|
-
});
|
|
1527
|
-
Ae.range;
|
|
1528
|
-
//#endregion
|
|
1529
|
-
//#region ../../node_modules/d3-time/src/utcWeek.js
|
|
1440
|
+
var Te = timeWeekday(0), N = timeWeekday(1), Ee = timeWeekday(2), De = timeWeekday(3), P = timeWeekday(4), Oe = timeWeekday(5), ke = timeWeekday(6);
|
|
1441
|
+
Te.range, N.range, Ee.range, De.range, P.range, Oe.range, ke.range;
|
|
1530
1442
|
function utcWeekday(e) {
|
|
1531
|
-
return
|
|
1443
|
+
return timeInterval((t) => {
|
|
1532
1444
|
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
|
|
1533
|
-
},
|
|
1445
|
+
}, (e, t) => {
|
|
1534
1446
|
e.setUTCDate(e.getUTCDate() + t * 7);
|
|
1535
|
-
},
|
|
1536
|
-
return (t - e) / Ce;
|
|
1537
|
-
});
|
|
1447
|
+
}, (e, t) => (t - e) / Se);
|
|
1538
1448
|
}
|
|
1539
|
-
var
|
|
1540
|
-
|
|
1449
|
+
var Ae = utcWeekday(0), F = utcWeekday(1), je = utcWeekday(2), Me = utcWeekday(3), I = utcWeekday(4), Ne = utcWeekday(5), Pe = utcWeekday(6);
|
|
1450
|
+
Ae.range, F.range, je.range, Me.range, I.range, Ne.range, Pe.range;
|
|
1541
1451
|
//#endregion
|
|
1542
|
-
//#region ../../node_modules/d3-time/src/
|
|
1543
|
-
var
|
|
1452
|
+
//#region ../../node_modules/d3-time/src/year.js
|
|
1453
|
+
var L = timeInterval((e) => {
|
|
1454
|
+
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
1455
|
+
}, (e, t) => {
|
|
1456
|
+
e.setFullYear(e.getFullYear() + t);
|
|
1457
|
+
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
|
|
1458
|
+
L.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : timeInterval((t) => {
|
|
1459
|
+
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
|
|
1460
|
+
}, (t, n) => {
|
|
1461
|
+
t.setFullYear(t.getFullYear() + n * e);
|
|
1462
|
+
}), L.range;
|
|
1463
|
+
var R = timeInterval((e) => {
|
|
1544
1464
|
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
1545
|
-
},
|
|
1465
|
+
}, (e, t) => {
|
|
1546
1466
|
e.setUTCFullYear(e.getUTCFullYear() + t);
|
|
1547
|
-
},
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
return !isFinite(e = Math.floor(e)) || !(e > 0) ? null : newInterval(function(t) {
|
|
1554
|
-
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
1555
|
-
}, function(t, n) {
|
|
1556
|
-
t.setUTCFullYear(t.getUTCFullYear() + n * e);
|
|
1557
|
-
});
|
|
1558
|
-
}, z.range;
|
|
1467
|
+
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
|
|
1468
|
+
R.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : timeInterval((t) => {
|
|
1469
|
+
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
1470
|
+
}, (t, n) => {
|
|
1471
|
+
t.setUTCFullYear(t.getUTCFullYear() + n * e);
|
|
1472
|
+
}), R.range;
|
|
1559
1473
|
//#endregion
|
|
1560
1474
|
//#region ../../node_modules/d3-time-format/src/locale.js
|
|
1561
1475
|
function localDate(e) {
|
|
@@ -1688,7 +1602,7 @@ function formatLocale(e) {
|
|
|
1688
1602
|
function newFormat(e, t) {
|
|
1689
1603
|
return function(n) {
|
|
1690
1604
|
var r = [], i = -1, a = 0, o = e.length, s, c, l;
|
|
1691
|
-
for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c =
|
|
1605
|
+
for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = Fe[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
|
|
1692
1606
|
return r.push(e.slice(a, i)), r.join("");
|
|
1693
1607
|
};
|
|
1694
1608
|
}
|
|
@@ -1700,7 +1614,7 @@ function formatLocale(e) {
|
|
|
1700
1614
|
if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
|
|
1701
1615
|
if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
|
|
1702
1616
|
if (r.V < 1 || r.V > 53) return null;
|
|
1703
|
-
"w" in r || (r.w = 1), "Z" in r ? (a = utcDate(newDate(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ?
|
|
1617
|
+
"w" in r || (r.w = 1), "Z" in r ? (a = utcDate(newDate(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? F.ceil(a) : F(a), a = we.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = localDate(newDate(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? N.ceil(a) : N(a), a = Ce.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
|
|
1704
1618
|
} else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? utcDate(newDate(r.y, 0, 1)).getUTCDay() : localDate(newDate(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
|
|
1705
1619
|
return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, utcDate(r)) : localDate(r);
|
|
1706
1620
|
};
|
|
@@ -1709,30 +1623,30 @@ function formatLocale(e) {
|
|
|
1709
1623
|
for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
|
|
1710
1624
|
if (r >= o) return -1;
|
|
1711
1625
|
if (s = t.charCodeAt(i++), s === 37) {
|
|
1712
|
-
if (s = t.charAt(i++), c = x[s in
|
|
1626
|
+
if (s = t.charAt(i++), c = x[s in Fe ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
|
|
1713
1627
|
} else if (s != n.charCodeAt(r++)) return -1;
|
|
1714
1628
|
}
|
|
1715
1629
|
return r;
|
|
1716
1630
|
}
|
|
1717
1631
|
function parsePeriod(e, t, n) {
|
|
1718
1632
|
var r = l.exec(t.slice(n));
|
|
1719
|
-
return r ? (e.p = u
|
|
1633
|
+
return r ? (e.p = u.get(r[0].toLowerCase()), n + r[0].length) : -1;
|
|
1720
1634
|
}
|
|
1721
1635
|
function parseShortWeekday(e, t, n) {
|
|
1722
1636
|
var r = p.exec(t.slice(n));
|
|
1723
|
-
return r ? (e.w = m
|
|
1637
|
+
return r ? (e.w = m.get(r[0].toLowerCase()), n + r[0].length) : -1;
|
|
1724
1638
|
}
|
|
1725
1639
|
function parseWeekday(e, t, n) {
|
|
1726
1640
|
var r = d.exec(t.slice(n));
|
|
1727
|
-
return r ? (e.w = f
|
|
1641
|
+
return r ? (e.w = f.get(r[0].toLowerCase()), n + r[0].length) : -1;
|
|
1728
1642
|
}
|
|
1729
1643
|
function parseShortMonth(e, t, n) {
|
|
1730
1644
|
var r = _.exec(t.slice(n));
|
|
1731
|
-
return r ? (e.m = v
|
|
1645
|
+
return r ? (e.m = v.get(r[0].toLowerCase()), n + r[0].length) : -1;
|
|
1732
1646
|
}
|
|
1733
1647
|
function parseMonth(e, t, n) {
|
|
1734
1648
|
var r = h.exec(t.slice(n));
|
|
1735
|
-
return r ? (e.m = g
|
|
1649
|
+
return r ? (e.m = g.get(r[0].toLowerCase()), n + r[0].length) : -1;
|
|
1736
1650
|
}
|
|
1737
1651
|
function parseLocaleDateTime(e, n, r) {
|
|
1738
1652
|
return parseSpecifier(e, t, n, r);
|
|
@@ -1806,51 +1720,50 @@ function formatLocale(e) {
|
|
|
1806
1720
|
}
|
|
1807
1721
|
};
|
|
1808
1722
|
}
|
|
1809
|
-
var
|
|
1723
|
+
var Fe = {
|
|
1810
1724
|
"-": "",
|
|
1811
1725
|
_: " ",
|
|
1812
1726
|
0: "0"
|
|
1813
|
-
},
|
|
1727
|
+
}, z = /^\s*\d+/, Ie = /^%/, Le = /[\\^$*+?|[\]().{}]/g;
|
|
1814
1728
|
function pad(e, t, n) {
|
|
1815
1729
|
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
|
|
1816
1730
|
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
|
|
1817
1731
|
}
|
|
1818
1732
|
function requote(e) {
|
|
1819
|
-
return e.replace(
|
|
1733
|
+
return e.replace(Le, "\\$&");
|
|
1820
1734
|
}
|
|
1821
1735
|
function formatRe(e) {
|
|
1822
1736
|
return RegExp("^(?:" + e.map(requote).join("|") + ")", "i");
|
|
1823
1737
|
}
|
|
1824
1738
|
function formatLookup(e) {
|
|
1825
|
-
|
|
1826
|
-
return t;
|
|
1739
|
+
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
|
|
1827
1740
|
}
|
|
1828
1741
|
function parseWeekdayNumberSunday(e, t, n) {
|
|
1829
|
-
var r =
|
|
1742
|
+
var r = z.exec(t.slice(n, n + 1));
|
|
1830
1743
|
return r ? (e.w = +r[0], n + r[0].length) : -1;
|
|
1831
1744
|
}
|
|
1832
1745
|
function parseWeekdayNumberMonday(e, t, n) {
|
|
1833
|
-
var r =
|
|
1746
|
+
var r = z.exec(t.slice(n, n + 1));
|
|
1834
1747
|
return r ? (e.u = +r[0], n + r[0].length) : -1;
|
|
1835
1748
|
}
|
|
1836
1749
|
function parseWeekNumberSunday(e, t, n) {
|
|
1837
|
-
var r =
|
|
1750
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1838
1751
|
return r ? (e.U = +r[0], n + r[0].length) : -1;
|
|
1839
1752
|
}
|
|
1840
1753
|
function parseWeekNumberISO(e, t, n) {
|
|
1841
|
-
var r =
|
|
1754
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1842
1755
|
return r ? (e.V = +r[0], n + r[0].length) : -1;
|
|
1843
1756
|
}
|
|
1844
1757
|
function parseWeekNumberMonday(e, t, n) {
|
|
1845
|
-
var r =
|
|
1758
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1846
1759
|
return r ? (e.W = +r[0], n + r[0].length) : -1;
|
|
1847
1760
|
}
|
|
1848
1761
|
function parseFullYear(e, t, n) {
|
|
1849
|
-
var r =
|
|
1762
|
+
var r = z.exec(t.slice(n, n + 4));
|
|
1850
1763
|
return r ? (e.y = +r[0], n + r[0].length) : -1;
|
|
1851
1764
|
}
|
|
1852
1765
|
function parseYear(e, t, n) {
|
|
1853
|
-
var r =
|
|
1766
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1854
1767
|
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
|
|
1855
1768
|
}
|
|
1856
1769
|
function parseZone(e, t, n) {
|
|
@@ -1858,51 +1771,51 @@ function parseZone(e, t, n) {
|
|
|
1858
1771
|
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
|
|
1859
1772
|
}
|
|
1860
1773
|
function parseQuarter(e, t, n) {
|
|
1861
|
-
var r =
|
|
1774
|
+
var r = z.exec(t.slice(n, n + 1));
|
|
1862
1775
|
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
|
|
1863
1776
|
}
|
|
1864
1777
|
function parseMonthNumber(e, t, n) {
|
|
1865
|
-
var r =
|
|
1778
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1866
1779
|
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
|
|
1867
1780
|
}
|
|
1868
1781
|
function parseDayOfMonth(e, t, n) {
|
|
1869
|
-
var r =
|
|
1782
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1870
1783
|
return r ? (e.d = +r[0], n + r[0].length) : -1;
|
|
1871
1784
|
}
|
|
1872
1785
|
function parseDayOfYear(e, t, n) {
|
|
1873
|
-
var r =
|
|
1786
|
+
var r = z.exec(t.slice(n, n + 3));
|
|
1874
1787
|
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
|
|
1875
1788
|
}
|
|
1876
1789
|
function parseHour24(e, t, n) {
|
|
1877
|
-
var r =
|
|
1790
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1878
1791
|
return r ? (e.H = +r[0], n + r[0].length) : -1;
|
|
1879
1792
|
}
|
|
1880
1793
|
function parseMinutes(e, t, n) {
|
|
1881
|
-
var r =
|
|
1794
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1882
1795
|
return r ? (e.M = +r[0], n + r[0].length) : -1;
|
|
1883
1796
|
}
|
|
1884
1797
|
function parseSeconds(e, t, n) {
|
|
1885
|
-
var r =
|
|
1798
|
+
var r = z.exec(t.slice(n, n + 2));
|
|
1886
1799
|
return r ? (e.S = +r[0], n + r[0].length) : -1;
|
|
1887
1800
|
}
|
|
1888
1801
|
function parseMilliseconds(e, t, n) {
|
|
1889
|
-
var r =
|
|
1802
|
+
var r = z.exec(t.slice(n, n + 3));
|
|
1890
1803
|
return r ? (e.L = +r[0], n + r[0].length) : -1;
|
|
1891
1804
|
}
|
|
1892
1805
|
function parseMicroseconds(e, t, n) {
|
|
1893
|
-
var r =
|
|
1806
|
+
var r = z.exec(t.slice(n, n + 6));
|
|
1894
1807
|
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
|
|
1895
1808
|
}
|
|
1896
1809
|
function parseLiteralPercent(e, t, n) {
|
|
1897
|
-
var r =
|
|
1810
|
+
var r = Ie.exec(t.slice(n, n + 1));
|
|
1898
1811
|
return r ? n + r[0].length : -1;
|
|
1899
1812
|
}
|
|
1900
1813
|
function parseUnixTimestamp(e, t, n) {
|
|
1901
|
-
var r =
|
|
1814
|
+
var r = z.exec(t.slice(n));
|
|
1902
1815
|
return r ? (e.Q = +r[0], n + r[0].length) : -1;
|
|
1903
1816
|
}
|
|
1904
1817
|
function parseUnixTimestampSeconds(e, t, n) {
|
|
1905
|
-
var r =
|
|
1818
|
+
var r = z.exec(t.slice(n));
|
|
1906
1819
|
return r ? (e.s = +r[0], n + r[0].length) : -1;
|
|
1907
1820
|
}
|
|
1908
1821
|
function formatDayOfMonth(e, t) {
|
|
@@ -1915,7 +1828,7 @@ function formatHour12(e, t) {
|
|
|
1915
1828
|
return pad(e.getHours() % 12 || 12, t, 2);
|
|
1916
1829
|
}
|
|
1917
1830
|
function formatDayOfYear(e, t) {
|
|
1918
|
-
return pad(1 +
|
|
1831
|
+
return pad(1 + Ce.count(L(e), e), t, 3);
|
|
1919
1832
|
}
|
|
1920
1833
|
function formatMilliseconds(e, t) {
|
|
1921
1834
|
return pad(e.getMilliseconds(), t, 3);
|
|
@@ -1937,20 +1850,20 @@ function formatWeekdayNumberMonday(e) {
|
|
|
1937
1850
|
return t === 0 ? 7 : t;
|
|
1938
1851
|
}
|
|
1939
1852
|
function formatWeekNumberSunday(e, t) {
|
|
1940
|
-
return pad(Te.count(
|
|
1853
|
+
return pad(Te.count(L(e) - 1, e), t, 2);
|
|
1941
1854
|
}
|
|
1942
1855
|
function dISO(e) {
|
|
1943
1856
|
var t = e.getDay();
|
|
1944
|
-
return t >= 4 || t === 0 ?
|
|
1857
|
+
return t >= 4 || t === 0 ? P(e) : P.ceil(e);
|
|
1945
1858
|
}
|
|
1946
1859
|
function formatWeekNumberISO(e, t) {
|
|
1947
|
-
return e = dISO(e), pad(
|
|
1860
|
+
return e = dISO(e), pad(P.count(L(e), e) + (L(e).getDay() === 4), t, 2);
|
|
1948
1861
|
}
|
|
1949
1862
|
function formatWeekdayNumberSunday(e) {
|
|
1950
1863
|
return e.getDay();
|
|
1951
1864
|
}
|
|
1952
1865
|
function formatWeekNumberMonday(e, t) {
|
|
1953
|
-
return pad(
|
|
1866
|
+
return pad(N.count(L(e) - 1, e), t, 2);
|
|
1954
1867
|
}
|
|
1955
1868
|
function formatYear(e, t) {
|
|
1956
1869
|
return pad(e.getFullYear() % 100, t, 2);
|
|
@@ -1963,7 +1876,7 @@ function formatFullYear(e, t) {
|
|
|
1963
1876
|
}
|
|
1964
1877
|
function formatFullYearISO(e, t) {
|
|
1965
1878
|
var n = e.getDay();
|
|
1966
|
-
return e = n >= 4 || n === 0 ?
|
|
1879
|
+
return e = n >= 4 || n === 0 ? P(e) : P.ceil(e), pad(e.getFullYear() % 1e4, t, 4);
|
|
1967
1880
|
}
|
|
1968
1881
|
function formatZone(e) {
|
|
1969
1882
|
var t = e.getTimezoneOffset();
|
|
@@ -1979,7 +1892,7 @@ function formatUTCHour12(e, t) {
|
|
|
1979
1892
|
return pad(e.getUTCHours() % 12 || 12, t, 2);
|
|
1980
1893
|
}
|
|
1981
1894
|
function formatUTCDayOfYear(e, t) {
|
|
1982
|
-
return pad(1 +
|
|
1895
|
+
return pad(1 + we.count(R(e), e), t, 3);
|
|
1983
1896
|
}
|
|
1984
1897
|
function formatUTCMilliseconds(e, t) {
|
|
1985
1898
|
return pad(e.getUTCMilliseconds(), t, 3);
|
|
@@ -2001,20 +1914,20 @@ function formatUTCWeekdayNumberMonday(e) {
|
|
|
2001
1914
|
return t === 0 ? 7 : t;
|
|
2002
1915
|
}
|
|
2003
1916
|
function formatUTCWeekNumberSunday(e, t) {
|
|
2004
|
-
return pad(
|
|
1917
|
+
return pad(Ae.count(R(e) - 1, e), t, 2);
|
|
2005
1918
|
}
|
|
2006
1919
|
function UTCdISO(e) {
|
|
2007
1920
|
var t = e.getUTCDay();
|
|
2008
|
-
return t >= 4 || t === 0 ?
|
|
1921
|
+
return t >= 4 || t === 0 ? I(e) : I.ceil(e);
|
|
2009
1922
|
}
|
|
2010
1923
|
function formatUTCWeekNumberISO(e, t) {
|
|
2011
|
-
return e = UTCdISO(e), pad(
|
|
1924
|
+
return e = UTCdISO(e), pad(I.count(R(e), e) + (R(e).getUTCDay() === 4), t, 2);
|
|
2012
1925
|
}
|
|
2013
1926
|
function formatUTCWeekdayNumberSunday(e) {
|
|
2014
1927
|
return e.getUTCDay();
|
|
2015
1928
|
}
|
|
2016
1929
|
function formatUTCWeekNumberMonday(e, t) {
|
|
2017
|
-
return pad(
|
|
1930
|
+
return pad(F.count(R(e) - 1, e), t, 2);
|
|
2018
1931
|
}
|
|
2019
1932
|
function formatUTCYear(e, t) {
|
|
2020
1933
|
return pad(e.getUTCFullYear() % 100, t, 2);
|
|
@@ -2027,7 +1940,7 @@ function formatUTCFullYear(e, t) {
|
|
|
2027
1940
|
}
|
|
2028
1941
|
function formatUTCFullYearISO(e, t) {
|
|
2029
1942
|
var n = e.getUTCDay();
|
|
2030
|
-
return e = n >= 4 || n === 0 ?
|
|
1943
|
+
return e = n >= 4 || n === 0 ? I(e) : I.ceil(e), pad(e.getUTCFullYear() % 1e4, t, 4);
|
|
2031
1944
|
}
|
|
2032
1945
|
function formatUTCZone() {
|
|
2033
1946
|
return "+0000";
|
|
@@ -2043,7 +1956,7 @@ function formatUnixTimestampSeconds(e) {
|
|
|
2043
1956
|
}
|
|
2044
1957
|
//#endregion
|
|
2045
1958
|
//#region ../../node_modules/d3-time-format/src/defaultLocale.js
|
|
2046
|
-
var
|
|
1959
|
+
var B, Re, ze, Be;
|
|
2047
1960
|
defaultLocale$1({
|
|
2048
1961
|
dateTime: "%x, %X",
|
|
2049
1962
|
date: "%-m/%-d/%Y",
|
|
@@ -2097,19 +2010,19 @@ defaultLocale$1({
|
|
|
2097
2010
|
]
|
|
2098
2011
|
});
|
|
2099
2012
|
function defaultLocale$1(e) {
|
|
2100
|
-
return
|
|
2013
|
+
return B = formatLocale(e), B.format, Re = B.parse, ze = B.utcFormat, Be = B.utcParse, B;
|
|
2101
2014
|
}
|
|
2102
2015
|
__name(defaultLocale$1, "defaultLocale");
|
|
2103
2016
|
//#endregion
|
|
2104
2017
|
//#region src/services/wsdl/WsSMC/v1.29/WsSMC.ts
|
|
2105
|
-
var
|
|
2018
|
+
var Ve;
|
|
2106
2019
|
(function(e) {
|
|
2107
2020
|
e.LockModes = /* @__PURE__ */ function(e) {
|
|
2108
2021
|
return e.ALL = "ALL", e.READ = "READ", e.WRITE = "WRITE", e.HOLD = "HOLD", e.SUB = "SUB", e;
|
|
2109
2022
|
}({}), e.RoxieControlCmdType = /* @__PURE__ */ function(e) {
|
|
2110
2023
|
return e.Attach = "Attach", e.Detach = "Detach", e.State = "State", e.Reload = "Reload", e.ReloadRetry = "ReloadRetry", e.MemLock = "MemLock", e.MemUnlock = "MemUnlock", e.GetMemLocked = "GetMemLocked", e;
|
|
2111
2024
|
}({});
|
|
2112
|
-
})(
|
|
2025
|
+
})(Ve ||= {});
|
|
2113
2026
|
var SMCServiceBase = class extends Service {
|
|
2114
2027
|
constructor(e) {
|
|
2115
2028
|
super(e, "WsSMC", "1.29");
|
|
@@ -2186,7 +2099,7 @@ var SMCServiceBase = class extends Service {
|
|
|
2186
2099
|
StopQueue(e) {
|
|
2187
2100
|
return this._connection.send("StopQueue", e, "json", !1, void 0, "SMCQueueResponse");
|
|
2188
2101
|
}
|
|
2189
|
-
},
|
|
2102
|
+
}, He = Re("%Y%m%d%H");
|
|
2190
2103
|
function isNumeric(e) {
|
|
2191
2104
|
return typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(+e);
|
|
2192
2105
|
}
|
|
@@ -2201,7 +2114,7 @@ var SMCService = class extends SMCServiceBase {
|
|
|
2201
2114
|
}));
|
|
2202
2115
|
}
|
|
2203
2116
|
parseGlobalMetric(e, t) {
|
|
2204
|
-
return e.startsWith("Cost") ? t / 1e6 : e.startsWith("Date") ?
|
|
2117
|
+
return e.startsWith("Cost") ? t / 1e6 : e.startsWith("Date") ? He(t) : e.startsWith("Num") ? +t : e.startsWith("Time") ? t / 1e9 : e.startsWith("When") ? (/* @__PURE__ */ new Date(t / 1e3)).toISOString() : isNumeric(t) ? +t : t;
|
|
2205
2118
|
}
|
|
2206
2119
|
GetNormalisedGlobalMetrics(e) {
|
|
2207
2120
|
return super.GetGlobalMetrics(e).then((e) => {
|
|
@@ -2277,7 +2190,7 @@ var SMCService = class extends SMCServiceBase {
|
|
|
2277
2190
|
throw e;
|
|
2278
2191
|
});
|
|
2279
2192
|
}
|
|
2280
|
-
},
|
|
2193
|
+
}, Ue;
|
|
2281
2194
|
(function(e) {
|
|
2282
2195
|
e.TpConfigResponseFormat = /* @__PURE__ */ function(e) {
|
|
2283
2196
|
return e.XML = "XML", e.YAML = "YAML", e;
|
|
@@ -2286,7 +2199,7 @@ var SMCService = class extends SMCServiceBase {
|
|
|
2286
2199
|
}({}), e.TpMachineType = /* @__PURE__ */ function(e) {
|
|
2287
2200
|
return e.ALLNODES = "ALLNODES", e.THORMACHINES = "THORMACHINES", e.HOLEMACHINES = "HOLEMACHINES", e.ROXIEMACHINES = "ROXIEMACHINES", e.MACHINES = "MACHINES", e.AVAILABLEMACHINES = "AVAILABLEMACHINES", e.DROPZONE = "DROPZONE", e.STANDBYNNODE = "STANDBYNNODE", e.THORSPARENODES = "THORSPARENODES", e.HOLESTANDBYNODES = "HOLESTANDBYNODES", e;
|
|
2288
2201
|
}({});
|
|
2289
|
-
})(
|
|
2202
|
+
})(Ue ||= {});
|
|
2290
2203
|
var TopologyServiceBase = class extends Service {
|
|
2291
2204
|
constructor(e) {
|
|
2292
2205
|
super(e, "WsTopology", "1.33");
|
|
@@ -2377,7 +2290,7 @@ var TopologyServiceBase = class extends Service {
|
|
|
2377
2290
|
return e.TpLogicalClusters.TpLogicalCluster.some((e, r) => (r === 0 && (n = e), e.Type === "hthor" && (t = e, !0))), t || n;
|
|
2378
2291
|
});
|
|
2379
2292
|
}
|
|
2380
|
-
},
|
|
2293
|
+
}, V;
|
|
2381
2294
|
(function(e) {
|
|
2382
2295
|
e.ECLWUActions = /* @__PURE__ */ function(e) {
|
|
2383
2296
|
return e.Abort = "Abort", e.Delete = "Delete", e.Deschedule = "Deschedule", e.Reschedule = "Reschedule", e.Pause = "Pause", e.PauseNow = "PauseNow", e.Protect = "Protect", e.Unprotect = "Unprotect", e.Restore = "Restore", e.Resume = "Resume", e.SetToFailed = "SetToFailed", e.Archive = "Archive", e;
|
|
@@ -2416,7 +2329,7 @@ var TopologyServiceBase = class extends Service {
|
|
|
2416
2329
|
}({}), e.WUQueryActivationMode = /* @__PURE__ */ function(e) {
|
|
2417
2330
|
return e[e.DoNotActivateQuery = 0] = "DoNotActivateQuery", e[e.ActivateQuery = 1] = "ActivateQuery", e[e.ActivateQuerySuspendPrevious = 2] = "ActivateQuerySuspendPrevious", e[e.ActivateQueryDeletePrevious = 3] = "ActivateQueryDeletePrevious", e;
|
|
2418
2331
|
}({});
|
|
2419
|
-
})(
|
|
2332
|
+
})(V ||= {});
|
|
2420
2333
|
var WorkunitsServiceBase = class extends Service {
|
|
2421
2334
|
constructor(e) {
|
|
2422
2335
|
super(e, "WsWorkunits", "2.10");
|
|
@@ -2667,14 +2580,14 @@ var WorkunitsServiceBase = class extends Service {
|
|
|
2667
2580
|
WUWaitComplete(e, t) {
|
|
2668
2581
|
return this._connection.send("WUWaitComplete", e, "json", !1, t, "WUWaitResponse");
|
|
2669
2582
|
}
|
|
2670
|
-
},
|
|
2583
|
+
}, H = /* @__PURE__ */ function(e) {
|
|
2671
2584
|
return e[e.Unknown = 0] = "Unknown", e[e.Compiled = 1] = "Compiled", e[e.Running = 2] = "Running", e[e.Completed = 3] = "Completed", e[e.Failed = 4] = "Failed", e[e.Archived = 5] = "Archived", e[e.Aborting = 6] = "Aborting", e[e.Aborted = 7] = "Aborted", e[e.Blocked = 8] = "Blocked", e[e.Submitted = 9] = "Submitted", e[e.Scheduled = 10] = "Scheduled", e[e.Compiling = 11] = "Compiling", e[e.Wait = 12] = "Wait", e[e.UploadingFiled = 13] = "UploadingFiled", e[e.DebugPaused = 14] = "DebugPaused", e[e.DebugRunning = 15] = "DebugRunning", e[e.Paused = 16] = "Paused", e[e.LAST = 17] = "LAST", e[e.NotFound = 999] = "NotFound", e;
|
|
2672
|
-
}({}),
|
|
2585
|
+
}({}), U;
|
|
2673
2586
|
(function(e) {
|
|
2674
2587
|
e.Action = /* @__PURE__ */ function(e) {
|
|
2675
2588
|
return e[e.Unknown = 0] = "Unknown", e[e.Compile = 1] = "Compile", e[e.Check = 2] = "Check", e[e.Run = 3] = "Run", e[e.ExecuteExisting = 4] = "ExecuteExisting", e[e.Pause = 5] = "Pause", e[e.PauseNow = 6] = "PauseNow", e[e.Resume = 7] = "Resume", e[e.Debug = 8] = "Debug", e[e.__size = 9] = "__size", e;
|
|
2676
2589
|
}({});
|
|
2677
|
-
})(
|
|
2590
|
+
})(U ||= {});
|
|
2678
2591
|
function isECLResult(e) {
|
|
2679
2592
|
return typeof e.Name == "string";
|
|
2680
2593
|
}
|
|
@@ -2763,8 +2676,8 @@ function formatDecimal_default(e) {
|
|
|
2763
2676
|
}
|
|
2764
2677
|
__name(formatDecimal_default, "default");
|
|
2765
2678
|
function formatDecimalParts(e, t) {
|
|
2766
|
-
if ((
|
|
2767
|
-
var n, r = e.slice(0, n);
|
|
2679
|
+
if (!isFinite(e) || e === 0) return null;
|
|
2680
|
+
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
2768
2681
|
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
2769
2682
|
}
|
|
2770
2683
|
//#endregion
|
|
@@ -2794,9 +2707,9 @@ function formatNumerals_default(e) {
|
|
|
2794
2707
|
__name(formatNumerals_default, "default");
|
|
2795
2708
|
//#endregion
|
|
2796
2709
|
//#region ../../node_modules/d3-format/src/formatSpecifier.js
|
|
2797
|
-
var
|
|
2710
|
+
var We = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2798
2711
|
function formatSpecifier(e) {
|
|
2799
|
-
if (!(t =
|
|
2712
|
+
if (!(t = We.exec(e))) throw Error("invalid format: " + e);
|
|
2800
2713
|
var t;
|
|
2801
2714
|
return new FormatSpecifier({
|
|
2802
2715
|
fill: t[1],
|
|
@@ -2837,11 +2750,11 @@ function formatTrim_default(e) {
|
|
|
2837
2750
|
__name(formatTrim_default, "default");
|
|
2838
2751
|
//#endregion
|
|
2839
2752
|
//#region ../../node_modules/d3-format/src/formatPrefixAuto.js
|
|
2840
|
-
var
|
|
2753
|
+
var W;
|
|
2841
2754
|
function formatPrefixAuto_default(e, t) {
|
|
2842
2755
|
var n = formatDecimalParts(e, t);
|
|
2843
|
-
if (!n) return
|
|
2844
|
-
var r = n[0], i = n[1], a = i - (
|
|
2756
|
+
if (!n) return W = void 0, e.toPrecision(t);
|
|
2757
|
+
var r = n[0], i = n[1], a = i - (W = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
2845
2758
|
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + formatDecimalParts(e, Math.max(0, t + a - 1))[0];
|
|
2846
2759
|
}
|
|
2847
2760
|
__name(formatPrefixAuto_default, "default");
|
|
@@ -2856,40 +2769,20 @@ function formatRounded_default(e, t) {
|
|
|
2856
2769
|
__name(formatRounded_default, "default");
|
|
2857
2770
|
//#endregion
|
|
2858
2771
|
//#region ../../node_modules/d3-format/src/formatTypes.js
|
|
2859
|
-
var
|
|
2860
|
-
"%":
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
b: function(e) {
|
|
2864
|
-
return Math.round(e).toString(2);
|
|
2865
|
-
},
|
|
2866
|
-
c: function(e) {
|
|
2867
|
-
return e + "";
|
|
2868
|
-
},
|
|
2772
|
+
var Ge = {
|
|
2773
|
+
"%": (e, t) => (e * 100).toFixed(t),
|
|
2774
|
+
b: (e) => Math.round(e).toString(2),
|
|
2775
|
+
c: (e) => e + "",
|
|
2869
2776
|
d: formatDecimal_default,
|
|
2870
|
-
e:
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
},
|
|
2876
|
-
g: function(e, t) {
|
|
2877
|
-
return e.toPrecision(t);
|
|
2878
|
-
},
|
|
2879
|
-
o: function(e) {
|
|
2880
|
-
return Math.round(e).toString(8);
|
|
2881
|
-
},
|
|
2882
|
-
p: function(e, t) {
|
|
2883
|
-
return formatRounded_default(e * 100, t);
|
|
2884
|
-
},
|
|
2777
|
+
e: (e, t) => e.toExponential(t),
|
|
2778
|
+
f: (e, t) => e.toFixed(t),
|
|
2779
|
+
g: (e, t) => e.toPrecision(t),
|
|
2780
|
+
o: (e) => Math.round(e).toString(8),
|
|
2781
|
+
p: (e, t) => formatRounded_default(e * 100, t),
|
|
2885
2782
|
r: formatRounded_default,
|
|
2886
2783
|
s: formatPrefixAuto_default,
|
|
2887
|
-
X:
|
|
2888
|
-
|
|
2889
|
-
},
|
|
2890
|
-
x: function(e) {
|
|
2891
|
-
return Math.round(e).toString(16);
|
|
2892
|
-
}
|
|
2784
|
+
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
2785
|
+
x: (e) => Math.round(e).toString(16)
|
|
2893
2786
|
};
|
|
2894
2787
|
//#endregion
|
|
2895
2788
|
//#region ../../node_modules/d3-format/src/identity.js
|
|
@@ -2899,7 +2792,7 @@ function identity_default(e) {
|
|
|
2899
2792
|
__name(identity_default, "default");
|
|
2900
2793
|
//#endregion
|
|
2901
2794
|
//#region ../../node_modules/d3-format/src/locale.js
|
|
2902
|
-
var
|
|
2795
|
+
var Ke = Array.prototype.map, qe = [
|
|
2903
2796
|
"y",
|
|
2904
2797
|
"z",
|
|
2905
2798
|
"a",
|
|
@@ -2919,39 +2812,39 @@ var Je = Array.prototype.map, Ye = [
|
|
|
2919
2812
|
"Y"
|
|
2920
2813
|
];
|
|
2921
2814
|
function locale_default(e) {
|
|
2922
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ? identity_default : formatGroup_default(
|
|
2923
|
-
function newFormat(e) {
|
|
2815
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? identity_default : formatGroup_default(Ke.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? identity_default : formatNumerals_default(Ke.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
2816
|
+
function newFormat(e, l) {
|
|
2924
2817
|
e = formatSpecifier(e);
|
|
2925
|
-
var
|
|
2926
|
-
|
|
2927
|
-
var
|
|
2928
|
-
|
|
2818
|
+
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
|
|
2819
|
+
y === "n" ? (g = !0, y = "g") : Ge[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
2820
|
+
var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), ee = Ge[y], te = /[defgprs%]/.test(y);
|
|
2821
|
+
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
2929
2822
|
function format(e) {
|
|
2930
|
-
var n =
|
|
2931
|
-
if (
|
|
2823
|
+
var n = b, r = x, o, l, p;
|
|
2824
|
+
if (y === "c") r = ee(e) + r, e = "";
|
|
2932
2825
|
else {
|
|
2933
2826
|
e = +e;
|
|
2934
|
-
var
|
|
2935
|
-
if (e = isNaN(e) ? c :
|
|
2936
|
-
for (o = -1,
|
|
2937
|
-
r = (
|
|
2827
|
+
var S = e < 0 || 1 / e < 0;
|
|
2828
|
+
if (e = isNaN(e) ? c : ee(Math.abs(e), _), v && (e = formatTrim_default(e)), S && +e == 0 && f !== "+" && (S = !1), n = (S ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && W !== void 0 ? qe[8 + W / 3] : "") + r + (S && f === "(" ? ")" : ""), te) {
|
|
2829
|
+
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
2830
|
+
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
2938
2831
|
break;
|
|
2939
2832
|
}
|
|
2940
2833
|
}
|
|
2941
2834
|
}
|
|
2942
|
-
|
|
2943
|
-
var
|
|
2944
|
-
switch (
|
|
2835
|
+
g && !m && (e = t(e, Infinity));
|
|
2836
|
+
var C = n.length + e.length + r.length, w = C < h ? Array(h - C + 1).join(u) : "";
|
|
2837
|
+
switch (g && m && (e = t(w + e, w.length ? h - r.length : Infinity), w = ""), d) {
|
|
2945
2838
|
case "<":
|
|
2946
|
-
e = n + e + r +
|
|
2839
|
+
e = n + e + r + w;
|
|
2947
2840
|
break;
|
|
2948
2841
|
case "=":
|
|
2949
|
-
e = n +
|
|
2842
|
+
e = n + w + e + r;
|
|
2950
2843
|
break;
|
|
2951
2844
|
case "^":
|
|
2952
|
-
e =
|
|
2845
|
+
e = w.slice(0, C = w.length >> 1) + n + e + r + w.slice(C);
|
|
2953
2846
|
break;
|
|
2954
|
-
default: e =
|
|
2847
|
+
default: e = w + n + e + r;
|
|
2955
2848
|
}
|
|
2956
2849
|
return a(e);
|
|
2957
2850
|
}
|
|
@@ -2960,9 +2853,9 @@ function locale_default(e) {
|
|
|
2960
2853
|
}, format;
|
|
2961
2854
|
}
|
|
2962
2855
|
function formatPrefix(e, t) {
|
|
2963
|
-
var n =
|
|
2856
|
+
var n = Math.max(-8, Math.min(8, Math.floor(exponent_default(t) / 3))) * 3, r = 10 ** -n, i = newFormat((e = formatSpecifier(e), e.type = "f", e), { suffix: qe[8 + n / 3] });
|
|
2964
2857
|
return function(e) {
|
|
2965
|
-
return
|
|
2858
|
+
return i(r * e);
|
|
2966
2859
|
};
|
|
2967
2860
|
}
|
|
2968
2861
|
return {
|
|
@@ -2973,16 +2866,14 @@ function locale_default(e) {
|
|
|
2973
2866
|
__name(locale_default, "default");
|
|
2974
2867
|
//#endregion
|
|
2975
2868
|
//#region ../../node_modules/d3-format/src/defaultLocale.js
|
|
2976
|
-
var G,
|
|
2869
|
+
var G, Je;
|
|
2977
2870
|
defaultLocale({
|
|
2978
|
-
decimal: ".",
|
|
2979
2871
|
thousands: ",",
|
|
2980
2872
|
grouping: [3],
|
|
2981
|
-
currency: ["$", ""]
|
|
2982
|
-
minus: "-"
|
|
2873
|
+
currency: ["$", ""]
|
|
2983
2874
|
});
|
|
2984
2875
|
function defaultLocale(e) {
|
|
2985
|
-
return G = locale_default(e),
|
|
2876
|
+
return G = locale_default(e), Je = G.format, G.formatPrefix, G;
|
|
2986
2877
|
}
|
|
2987
2878
|
//#endregion
|
|
2988
2879
|
//#region src/ecl/graph.ts
|
|
@@ -3300,7 +3191,7 @@ var GlobalResultCache = class extends e {
|
|
|
3300
3191
|
constructor() {
|
|
3301
3192
|
super((e) => `${e.BaseUrl}-${e.Wuid}-${e.ResultName}`);
|
|
3302
3193
|
}
|
|
3303
|
-
}, K = new GlobalResultCache(),
|
|
3194
|
+
}, K = new GlobalResultCache(), Ye = class Result extends s {
|
|
3304
3195
|
connection;
|
|
3305
3196
|
_bypassCache = !1;
|
|
3306
3197
|
get BaseUrl() {
|
|
@@ -3645,24 +3536,24 @@ var GlobalResultCache = class extends e {
|
|
|
3645
3536
|
...n
|
|
3646
3537
|
});
|
|
3647
3538
|
}
|
|
3648
|
-
},
|
|
3539
|
+
}, Xe = ze("%Y-%m-%dT%H:%M:%S.%LZ"), Ze = Be("%Y-%m-%dT%H:%M:%S.%LZ"), Qe = Je(",");
|
|
3649
3540
|
function formatNum(e) {
|
|
3650
|
-
return e && !isNaN(+e) ?
|
|
3541
|
+
return e && !isNaN(+e) ? Qe(+e) : e;
|
|
3651
3542
|
}
|
|
3652
|
-
var
|
|
3543
|
+
var $e = "DefinitionList", et = /([a-zA-Z]:)?(.*[\\\/])(.*)(\((\d+),(\d+)\))/, tt = [
|
|
3653
3544
|
"Avg",
|
|
3654
3545
|
"Min",
|
|
3655
3546
|
"Max",
|
|
3656
3547
|
"Delta",
|
|
3657
3548
|
"StdDev"
|
|
3658
|
-
],
|
|
3549
|
+
], nt = [
|
|
3659
3550
|
"SkewMin",
|
|
3660
3551
|
"SkewMax",
|
|
3661
3552
|
"NodeMin",
|
|
3662
3553
|
"NodeMax"
|
|
3663
|
-
],
|
|
3554
|
+
], rt = /[A-Z][a-z]*/g;
|
|
3664
3555
|
function _splitMetric(e) {
|
|
3665
|
-
for (let t of
|
|
3556
|
+
for (let t of nt) {
|
|
3666
3557
|
let n = e.indexOf(t);
|
|
3667
3558
|
if (n === 0) return {
|
|
3668
3559
|
measure: "",
|
|
@@ -3670,10 +3561,10 @@ function _splitMetric(e) {
|
|
|
3670
3561
|
label: e.slice(n + t.length)
|
|
3671
3562
|
};
|
|
3672
3563
|
}
|
|
3673
|
-
let t = e.match(
|
|
3564
|
+
let t = e.match(rt);
|
|
3674
3565
|
if (t?.length) {
|
|
3675
3566
|
let e = t.shift(), n = t.join("");
|
|
3676
|
-
for (let t of
|
|
3567
|
+
for (let t of tt) {
|
|
3677
3568
|
let r = n.indexOf(t);
|
|
3678
3569
|
if (r === 0) return n = n.slice(r + t.length), {
|
|
3679
3570
|
measure: e,
|
|
@@ -3693,10 +3584,10 @@ function _splitMetric(e) {
|
|
|
3693
3584
|
label: e
|
|
3694
3585
|
};
|
|
3695
3586
|
}
|
|
3696
|
-
var
|
|
3587
|
+
var it = {};
|
|
3697
3588
|
function splitMetric(e) {
|
|
3698
|
-
let t =
|
|
3699
|
-
return t || (t = _splitMetric(e),
|
|
3589
|
+
let t = it[e];
|
|
3590
|
+
return t || (t = _splitMetric(e), it[e] = t), t;
|
|
3700
3591
|
}
|
|
3701
3592
|
function formatValue(e, t) {
|
|
3702
3593
|
return e.__formattedProps?.[t] ?? e[t];
|
|
@@ -3732,7 +3623,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
3732
3623
|
constructor() {
|
|
3733
3624
|
super((e) => `${e.BaseUrl}-${e.Wuid}`);
|
|
3734
3625
|
}
|
|
3735
|
-
}, J = new WorkunitCache(),
|
|
3626
|
+
}, J = new WorkunitCache(), at = class Workunit extends s {
|
|
3736
3627
|
connection;
|
|
3737
3628
|
topologyConnection;
|
|
3738
3629
|
get BaseUrl() {
|
|
@@ -3763,10 +3654,10 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
3763
3654
|
return this.get("ActionEx", "");
|
|
3764
3655
|
}
|
|
3765
3656
|
get StateID() {
|
|
3766
|
-
return this.get("StateID",
|
|
3657
|
+
return this.get("StateID", H.Unknown);
|
|
3767
3658
|
}
|
|
3768
3659
|
get State() {
|
|
3769
|
-
return this.get("State") ||
|
|
3660
|
+
return this.get("State") || H[this.StateID];
|
|
3770
3661
|
}
|
|
3771
3662
|
get Protected() {
|
|
3772
3663
|
return this.get("Protected", !1);
|
|
@@ -3785,7 +3676,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
3785
3676
|
return this.get("Results", { ECLResult: [] });
|
|
3786
3677
|
}
|
|
3787
3678
|
get CResults() {
|
|
3788
|
-
return this.Results.ECLResult.map((e) => this._resultCache.get(e, () =>
|
|
3679
|
+
return this.Results.ECLResult.map((e) => this._resultCache.get(e, () => Ye.attach(this.connection, this.Wuid, e, this.ResultViews.View)));
|
|
3789
3680
|
}
|
|
3790
3681
|
get SequenceResults() {
|
|
3791
3682
|
let e = {};
|
|
@@ -4034,7 +3925,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4034
3925
|
});
|
|
4035
3926
|
}
|
|
4036
3927
|
static submit(e, t, n, r = !1) {
|
|
4037
|
-
return Workunit.create(e).then((e) => e.update({ QueryText: n })).then((e) => r ? e.submit(t,
|
|
3928
|
+
return Workunit.create(e).then((e) => e.update({ QueryText: n })).then((e) => r ? e.submit(t, U.Action.Compile) : e.submit(t));
|
|
4038
3929
|
}
|
|
4039
3930
|
static compile(e, t, n) {
|
|
4040
3931
|
return Workunit.submit(e, t, n, !0);
|
|
@@ -4050,7 +3941,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4050
3941
|
clearState(e) {
|
|
4051
3942
|
this.clear({
|
|
4052
3943
|
Wuid: e,
|
|
4053
|
-
StateID:
|
|
3944
|
+
StateID: H.Unknown
|
|
4054
3945
|
});
|
|
4055
3946
|
}
|
|
4056
3947
|
update(e) {
|
|
@@ -4064,9 +3955,9 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4064
3955
|
ClusterOrig: this.Cluster
|
|
4065
3956
|
}).then((e) => (this.set(e.Workunit), this));
|
|
4066
3957
|
}
|
|
4067
|
-
submit(e, t =
|
|
3958
|
+
submit(e, t = U.Action.Run, n) {
|
|
4068
3959
|
let r;
|
|
4069
|
-
return r = e === void 0 ? this.topologyConnection.DefaultTpLogicalClusterQuery().then((e) => e.Name) : Promise.resolve(e), this._debugMode = !1, t ===
|
|
3960
|
+
return r = e === void 0 ? this.topologyConnection.DefaultTpLogicalClusterQuery().then((e) => e.Name) : Promise.resolve(e), this._debugMode = !1, t === U.Action.Debug && (t = U.Action.Run, this._debugMode = !0), r.then((e) => this.connection.WUUpdate({
|
|
4070
3961
|
Wuid: this.Wuid,
|
|
4071
3962
|
Action: t,
|
|
4072
3963
|
ResultLimit: n,
|
|
@@ -4081,77 +3972,77 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4081
3972
|
}
|
|
4082
3973
|
isComplete() {
|
|
4083
3974
|
switch (this.StateID) {
|
|
4084
|
-
case
|
|
4085
|
-
case
|
|
4086
|
-
case
|
|
4087
|
-
case
|
|
4088
|
-
case
|
|
3975
|
+
case H.Compiled: return this.ActionEx === "compile" || this._submitAction === U.Action.Compile;
|
|
3976
|
+
case H.Completed:
|
|
3977
|
+
case H.Failed:
|
|
3978
|
+
case H.Aborted:
|
|
3979
|
+
case H.NotFound: return !0;
|
|
4089
3980
|
}
|
|
4090
3981
|
return !1;
|
|
4091
3982
|
}
|
|
4092
3983
|
isFailed() {
|
|
4093
3984
|
switch (this.StateID) {
|
|
4094
|
-
case
|
|
4095
|
-
case
|
|
3985
|
+
case H.Aborted:
|
|
3986
|
+
case H.Failed: return !0;
|
|
4096
3987
|
}
|
|
4097
3988
|
return !1;
|
|
4098
3989
|
}
|
|
4099
3990
|
isDeleted() {
|
|
4100
3991
|
switch (this.StateID) {
|
|
4101
|
-
case
|
|
3992
|
+
case H.NotFound: return !0;
|
|
4102
3993
|
}
|
|
4103
3994
|
return !1;
|
|
4104
3995
|
}
|
|
4105
3996
|
isDebugging() {
|
|
4106
3997
|
switch (this.StateID) {
|
|
4107
|
-
case
|
|
4108
|
-
case
|
|
3998
|
+
case H.DebugPaused:
|
|
3999
|
+
case H.DebugRunning: return !0;
|
|
4109
4000
|
}
|
|
4110
4001
|
return this._debugMode;
|
|
4111
4002
|
}
|
|
4112
4003
|
isRunning() {
|
|
4113
4004
|
switch (this.StateID) {
|
|
4114
|
-
case
|
|
4115
|
-
case
|
|
4116
|
-
case
|
|
4117
|
-
case
|
|
4118
|
-
case
|
|
4119
|
-
case
|
|
4005
|
+
case H.Compiled:
|
|
4006
|
+
case H.Running:
|
|
4007
|
+
case H.Aborting:
|
|
4008
|
+
case H.Blocked:
|
|
4009
|
+
case H.DebugPaused:
|
|
4010
|
+
case H.DebugRunning: return !0;
|
|
4120
4011
|
}
|
|
4121
4012
|
return !1;
|
|
4122
4013
|
}
|
|
4123
4014
|
setToFailed() {
|
|
4124
|
-
return this.WUAction(
|
|
4015
|
+
return this.WUAction(V.ECLWUActions.SetToFailed);
|
|
4125
4016
|
}
|
|
4126
4017
|
pause() {
|
|
4127
|
-
return this.WUAction(
|
|
4018
|
+
return this.WUAction(V.ECLWUActions.Pause);
|
|
4128
4019
|
}
|
|
4129
4020
|
pauseNow() {
|
|
4130
|
-
return this.WUAction(
|
|
4021
|
+
return this.WUAction(V.ECLWUActions.PauseNow);
|
|
4131
4022
|
}
|
|
4132
4023
|
resume() {
|
|
4133
|
-
return this.WUAction(
|
|
4024
|
+
return this.WUAction(V.ECLWUActions.Resume);
|
|
4134
4025
|
}
|
|
4135
4026
|
abort() {
|
|
4136
|
-
return this.WUAction(
|
|
4027
|
+
return this.WUAction(V.ECLWUActions.Abort);
|
|
4137
4028
|
}
|
|
4138
4029
|
protect() {
|
|
4139
|
-
return this.WUAction(
|
|
4030
|
+
return this.WUAction(V.ECLWUActions.Protect);
|
|
4140
4031
|
}
|
|
4141
4032
|
unprotect() {
|
|
4142
|
-
return this.WUAction(
|
|
4033
|
+
return this.WUAction(V.ECLWUActions.Unprotect);
|
|
4143
4034
|
}
|
|
4144
4035
|
delete() {
|
|
4145
|
-
return this.WUAction(
|
|
4036
|
+
return this.WUAction(V.ECLWUActions.Delete);
|
|
4146
4037
|
}
|
|
4147
4038
|
restore() {
|
|
4148
|
-
return this.WUAction(
|
|
4039
|
+
return this.WUAction(V.ECLWUActions.Restore);
|
|
4149
4040
|
}
|
|
4150
4041
|
deschedule() {
|
|
4151
|
-
return this.WUAction(
|
|
4042
|
+
return this.WUAction(V.ECLWUActions.Deschedule);
|
|
4152
4043
|
}
|
|
4153
4044
|
reschedule() {
|
|
4154
|
-
return this.WUAction(
|
|
4045
|
+
return this.WUAction(V.ECLWUActions.Reschedule);
|
|
4155
4046
|
}
|
|
4156
4047
|
recover() {
|
|
4157
4048
|
return this.WUResubmit({
|
|
@@ -4172,7 +4063,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4172
4063
|
}).then((e) => Workunit.attach(this.connection.opts(), e.WUs.WU[0].WUID).refresh());
|
|
4173
4064
|
}
|
|
4174
4065
|
async refreshState() {
|
|
4175
|
-
return await this.WUQuery(), this.StateID ===
|
|
4066
|
+
return await this.WUQuery(), this.StateID === H.Compiled && !this.ActionEx && !this._submitAction && await this.refreshInfo(), this;
|
|
4176
4067
|
}
|
|
4177
4068
|
async refreshInfo(e) {
|
|
4178
4069
|
return await this.WUInfo(e), this;
|
|
@@ -4297,18 +4188,18 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4297
4188
|
__StdDevs: 0,
|
|
4298
4189
|
__StdDevsSource: "",
|
|
4299
4190
|
...o
|
|
4300
|
-
}, l = c[
|
|
4191
|
+
}, l = c[$e];
|
|
4301
4192
|
if (l) try {
|
|
4302
4193
|
let e = JSON.parse(l.split("\\").join("\\\\")), t = [];
|
|
4303
4194
|
for (let n = 0; n < e.length; n++) {
|
|
4304
|
-
let r = e[n].match(
|
|
4195
|
+
let r = e[n].match(et);
|
|
4305
4196
|
r && t.push({
|
|
4306
4197
|
filePath: (r[1] ?? "") + r[2] + r[3],
|
|
4307
4198
|
line: parseInt(r[5], 10),
|
|
4308
4199
|
col: parseInt(r[6], 10)
|
|
4309
4200
|
});
|
|
4310
4201
|
}
|
|
4311
|
-
c[
|
|
4202
|
+
c[$e] = t;
|
|
4312
4203
|
} catch {
|
|
4313
4204
|
q.error(`Unexpected "DefinitionList": ${l}`);
|
|
4314
4205
|
}
|
|
@@ -4417,8 +4308,8 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4417
4308
|
for (let e in t) {
|
|
4418
4309
|
let r = t[e];
|
|
4419
4310
|
if (r.start && r.elapsed) {
|
|
4420
|
-
let e =
|
|
4421
|
-
e.setMilliseconds(e.getMilliseconds() + r.elapsed / 1e6), r.finish =
|
|
4311
|
+
let e = Ze(r.start);
|
|
4312
|
+
e.setMilliseconds(e.getMilliseconds() + r.elapsed / 1e6), r.finish = Xe(e), n.push(r);
|
|
4422
4313
|
}
|
|
4423
4314
|
}
|
|
4424
4315
|
return n.sort((e, t) => e.start < t.start ? -1 : +(e.start > t.start)), n;
|
|
@@ -4467,8 +4358,8 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4467
4358
|
return this.connection.WUQuery({
|
|
4468
4359
|
...e,
|
|
4469
4360
|
Wuid: this.Wuid
|
|
4470
|
-
}).then((e) => (e.Workunits.ECLWorkunit.length === 0 ? (this.clearState(this.Wuid), this.set("StateID",
|
|
4471
|
-
if (!e.Exception.some((e) => e.Code === 20081 && (this.clearState(this.Wuid), this.set("StateID",
|
|
4361
|
+
}).then((e) => (e.Workunits.ECLWorkunit.length === 0 ? (this.clearState(this.Wuid), this.set("StateID", H.NotFound)) : this.set(e.Workunits.ECLWorkunit[0]), e)).catch((e) => {
|
|
4362
|
+
if (!e.Exception.some((e) => e.Code === 20081 && (this.clearState(this.Wuid), this.set("StateID", H.NotFound), !0))) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4472
4363
|
return {};
|
|
4473
4364
|
});
|
|
4474
4365
|
}
|
|
@@ -4484,7 +4375,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4484
4375
|
IncludeResultsViewNames: t,
|
|
4485
4376
|
SuppressResultSchemas: !1
|
|
4486
4377
|
}).then((e) => (this.set(e.Workunit), t && this.set({ ResultViews: e.ResultViews }), e)).catch((e) => {
|
|
4487
|
-
if (!e.Exception.some((e) => e.Code === 20080 && (this.clearState(this.Wuid), this.set("StateID",
|
|
4378
|
+
if (!e.Exception.some((e) => e.Code === 20080 && (this.clearState(this.Wuid), this.set("StateID", H.NotFound), !0))) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4488
4379
|
return {};
|
|
4489
4380
|
});
|
|
4490
4381
|
}
|
|
@@ -4532,7 +4423,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4532
4423
|
Cluster: this.Cluster,
|
|
4533
4424
|
JobName: e || this.Jobname,
|
|
4534
4425
|
AllowForeignFiles: !0,
|
|
4535
|
-
Activate:
|
|
4426
|
+
Activate: V.WUQueryActivationMode.ActivateQuery,
|
|
4536
4427
|
Wait: 5e3
|
|
4537
4428
|
});
|
|
4538
4429
|
}
|
|
@@ -4619,12 +4510,12 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4619
4510
|
}), t;
|
|
4620
4511
|
}));
|
|
4621
4512
|
}
|
|
4622
|
-
},
|
|
4513
|
+
}, ot = "definition";
|
|
4623
4514
|
function hasECLDefinition(e) {
|
|
4624
|
-
return e._[
|
|
4515
|
+
return e._[ot] !== void 0;
|
|
4625
4516
|
}
|
|
4626
4517
|
function getECLDefinition(e) {
|
|
4627
|
-
let t = /([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[
|
|
4518
|
+
let t = /([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[ot]);
|
|
4628
4519
|
if (t) {
|
|
4629
4520
|
let [, n, r, i] = t;
|
|
4630
4521
|
return n.replace(/\/\.\//g, "/"), {
|
|
@@ -4634,7 +4525,7 @@ function getECLDefinition(e) {
|
|
|
4634
4525
|
column: +i
|
|
4635
4526
|
};
|
|
4636
4527
|
}
|
|
4637
|
-
throw Error(`Bad definition: ${e._[
|
|
4528
|
+
throw Error(`Bad definition: ${e._[ot]}`);
|
|
4638
4529
|
}
|
|
4639
4530
|
function breakpointLocations(e, t) {
|
|
4640
4531
|
let n = [];
|
|
@@ -4646,7 +4537,7 @@ function breakpointLocations(e, t) {
|
|
|
4646
4537
|
}
|
|
4647
4538
|
//#endregion
|
|
4648
4539
|
//#region src/ecl/activity.ts
|
|
4649
|
-
var
|
|
4540
|
+
var st, ct = class Activity extends s {
|
|
4650
4541
|
connection;
|
|
4651
4542
|
get properties() {
|
|
4652
4543
|
return this.get();
|
|
@@ -4715,13 +4606,13 @@ var lt, ut = class Activity extends s {
|
|
|
4715
4606
|
return this.get("DaliDetached");
|
|
4716
4607
|
}
|
|
4717
4608
|
static attach(e, t) {
|
|
4718
|
-
return
|
|
4609
|
+
return st ||= new Activity(e), t && st.set(t), st;
|
|
4719
4610
|
}
|
|
4720
4611
|
constructor(e) {
|
|
4721
4612
|
super(), this.connection = e instanceof SMCService ? e : new SMCService(e), this.clear({});
|
|
4722
4613
|
}
|
|
4723
4614
|
runningWorkunits(e = "") {
|
|
4724
|
-
return this.Running.ActiveWorkunit.filter((t) => e === "" || t.ClusterName === e).map((e) =>
|
|
4615
|
+
return this.Running.ActiveWorkunit.filter((t) => e === "" || t.ClusterName === e).map((e) => at.attach(this.connection.connectionOptions(), e.Wuid, e));
|
|
4725
4616
|
}
|
|
4726
4617
|
setBanner(e) {
|
|
4727
4618
|
return this.connection.SetBanner({ ...e }).then((e) => (this.set(e), this));
|
|
@@ -4733,11 +4624,11 @@ var lt, ut = class Activity extends s {
|
|
|
4733
4624
|
async refresh() {
|
|
4734
4625
|
return this.lazyRefresh();
|
|
4735
4626
|
}
|
|
4736
|
-
},
|
|
4627
|
+
}, lt = y("logicalFile.ts"), LogicalFileCache = class extends e {
|
|
4737
4628
|
constructor() {
|
|
4738
4629
|
super((e) => `${e.BaseUrl}-${e.Cluster}-${e.Name}`);
|
|
4739
4630
|
}
|
|
4740
|
-
},
|
|
4631
|
+
}, ut = new LogicalFileCache(), dt = class LogicalFile extends s {
|
|
4741
4632
|
connection;
|
|
4742
4633
|
get BaseUrl() {
|
|
4743
4634
|
return this.connection.baseUrl;
|
|
@@ -4914,7 +4805,7 @@ var lt, ut = class Activity extends s {
|
|
|
4914
4805
|
return this.get();
|
|
4915
4806
|
}
|
|
4916
4807
|
static attach(e, t, n, r) {
|
|
4917
|
-
let i =
|
|
4808
|
+
let i = ut.get({
|
|
4918
4809
|
BaseUrl: e.baseUrl,
|
|
4919
4810
|
Cluster: t,
|
|
4920
4811
|
Name: n
|
|
@@ -4960,7 +4851,7 @@ var lt, ut = class Activity extends s {
|
|
|
4960
4851
|
...e.FileDetail,
|
|
4961
4852
|
ProtectList: e?.FileDetail?.ProtectList ?? { DFUFileProtect: [] }
|
|
4962
4853
|
}), e.FileDetail)).catch((e) => {
|
|
4963
|
-
if (!e.Exception.some((e) => e.Code === 20038 && (this.set("Name", this.Name + " (Deleted)"), this.set("StateID", 999), !0))) throw
|
|
4854
|
+
if (!e.Exception.some((e) => e.Code === 20038 && (this.set("Name", this.Name + " (Deleted)"), this.set("StateID", 999), !0))) throw lt.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4964
4855
|
return {};
|
|
4965
4856
|
});
|
|
4966
4857
|
}
|
|
@@ -4983,7 +4874,7 @@ var lt, ut = class Activity extends s {
|
|
|
4983
4874
|
constructor() {
|
|
4984
4875
|
super((e) => e.Address);
|
|
4985
4876
|
}
|
|
4986
|
-
},
|
|
4877
|
+
}, ft = new MachineCache(), pt = class Machine extends s {
|
|
4987
4878
|
connection;
|
|
4988
4879
|
get Address() {
|
|
4989
4880
|
return this.get("Address");
|
|
@@ -5058,7 +4949,7 @@ var lt, ut = class Activity extends s {
|
|
|
5058
4949
|
return this.get("Exception");
|
|
5059
4950
|
}
|
|
5060
4951
|
static attach(e, t, n) {
|
|
5061
|
-
let r =
|
|
4952
|
+
let r = ft.get({ Address: t }, () => new Machine(e));
|
|
5062
4953
|
return n && r.set(n), r;
|
|
5063
4954
|
}
|
|
5064
4955
|
constructor(e) {
|
|
@@ -5068,7 +4959,7 @@ var lt, ut = class Activity extends s {
|
|
|
5068
4959
|
constructor() {
|
|
5069
4960
|
super((e) => `${e.BaseUrl}-${e.Name}`);
|
|
5070
4961
|
}
|
|
5071
|
-
},
|
|
4962
|
+
}, mt = new TargetClusterCache(), Y = class TargetCluster extends s {
|
|
5072
4963
|
connection;
|
|
5073
4964
|
machineConnection;
|
|
5074
4965
|
get BaseUrl() {
|
|
@@ -5105,10 +4996,10 @@ var lt, ut = class Activity extends s {
|
|
|
5105
4996
|
return this.get("MachineInfoEx", []);
|
|
5106
4997
|
}
|
|
5107
4998
|
get CMachineInfoEx() {
|
|
5108
|
-
return this.MachineInfoEx.map((e) =>
|
|
4999
|
+
return this.MachineInfoEx.map((e) => pt.attach(this.machineConnection, e.Address, e));
|
|
5109
5000
|
}
|
|
5110
5001
|
static attach(e, t, n) {
|
|
5111
|
-
let r =
|
|
5002
|
+
let r = mt.get({
|
|
5112
5003
|
BaseUrl: e.baseUrl,
|
|
5113
5004
|
Name: t
|
|
5114
5005
|
}, () => new TargetCluster(e, t));
|
|
@@ -5147,11 +5038,11 @@ function targetClusters(e) {
|
|
|
5147
5038
|
let t;
|
|
5148
5039
|
return t = e instanceof TopologyService ? e : new TopologyService(e), t.TpListTargetClusters({}).then((t) => t.TargetClusters.TpClusterNameType.map((t) => Y.attach(e, t.Name, t)));
|
|
5149
5040
|
}
|
|
5150
|
-
var
|
|
5041
|
+
var ht = {};
|
|
5151
5042
|
function defaultTargetCluster(e) {
|
|
5152
|
-
if (!
|
|
5043
|
+
if (!ht[e.baseUrl]) {
|
|
5153
5044
|
let t;
|
|
5154
|
-
t = e instanceof TopologyService ? e : new TopologyService(e),
|
|
5045
|
+
t = e instanceof TopologyService ? e : new TopologyService(e), ht[e.baseUrl] = t.TpListTargetClusters({}).then((t) => {
|
|
5155
5046
|
let n, r, i;
|
|
5156
5047
|
t.TargetClusters.TpClusterNameType.forEach((e) => {
|
|
5157
5048
|
n ||= e, !r && e.IsDefault === !0 && (r = e), !i && e.Type === "hthor" && (i = e);
|
|
@@ -5160,7 +5051,7 @@ function defaultTargetCluster(e) {
|
|
|
5160
5051
|
return Y.attach(e, a.Name, a);
|
|
5161
5052
|
});
|
|
5162
5053
|
}
|
|
5163
|
-
return
|
|
5054
|
+
return ht[e.baseUrl];
|
|
5164
5055
|
}
|
|
5165
5056
|
//#endregion
|
|
5166
5057
|
//#region src/ecl/topology.ts
|
|
@@ -5168,7 +5059,7 @@ var TopologyCache = class extends e {
|
|
|
5168
5059
|
constructor() {
|
|
5169
5060
|
super((e) => e.BaseUrl);
|
|
5170
5061
|
}
|
|
5171
|
-
},
|
|
5062
|
+
}, gt = new TopologyCache(), _t = class Topology extends s {
|
|
5172
5063
|
connection;
|
|
5173
5064
|
get BaseUrl() {
|
|
5174
5065
|
return this.connection.baseUrl;
|
|
@@ -5189,7 +5080,7 @@ var TopologyCache = class extends e {
|
|
|
5189
5080
|
return this.get("Services");
|
|
5190
5081
|
}
|
|
5191
5082
|
static attach(e, t) {
|
|
5192
|
-
let n =
|
|
5083
|
+
let n = gt.get({ BaseUrl: e.baseUrl }, () => new Topology(e));
|
|
5193
5084
|
return t && n.set(t), n;
|
|
5194
5085
|
}
|
|
5195
5086
|
constructor(e) {
|
|
@@ -5506,7 +5397,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
5506
5397
|
getTarget() {
|
|
5507
5398
|
return this.__hpcc_graph.idx[this._targetActivity || this.target];
|
|
5508
5399
|
}
|
|
5509
|
-
},
|
|
5400
|
+
}, vt = class QueryGraph {
|
|
5510
5401
|
idx = {};
|
|
5511
5402
|
subgraphs = [];
|
|
5512
5403
|
vertices = [];
|
|
@@ -5622,7 +5513,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
5622
5513
|
let i = new LocalisedXGMMLWriter(this);
|
|
5623
5514
|
return i.calcVisibility(e, t, n, r), i.writeXgmml(), "<graph>" + i.m_xgmml + "</graph>";
|
|
5624
5515
|
}
|
|
5625
|
-
}, Q = y("@hpcc-js/comms/ecl/query.ts"),
|
|
5516
|
+
}, Q = y("@hpcc-js/comms/ecl/query.ts"), yt = Je("~s");
|
|
5626
5517
|
function isNumber(e) {
|
|
5627
5518
|
return !isNaN(parseFloat(e)) && !isNaN(e - 0);
|
|
5628
5519
|
}
|
|
@@ -5630,7 +5521,7 @@ var QueryCache = class extends e {
|
|
|
5630
5521
|
constructor() {
|
|
5631
5522
|
super((t) => e.hash([t.QueryId, t.QuerySet]));
|
|
5632
5523
|
}
|
|
5633
|
-
},
|
|
5524
|
+
}, bt = new QueryCache(), xt = class Query extends s {
|
|
5634
5525
|
wsWorkunitsService;
|
|
5635
5526
|
get BaseUrl() {
|
|
5636
5527
|
return this.wsWorkunitsService.baseUrl;
|
|
@@ -5717,14 +5608,14 @@ var QueryCache = class extends e {
|
|
|
5717
5608
|
return this.get("PriorityID");
|
|
5718
5609
|
}
|
|
5719
5610
|
constructor(e, t, n, r) {
|
|
5720
|
-
super(), this.wsWorkunitsService = e instanceof WorkunitsService ? e : new WorkunitsService(e), this.topology =
|
|
5611
|
+
super(), this.wsWorkunitsService = e instanceof WorkunitsService ? e : new WorkunitsService(e), this.topology = _t.attach(this.wsWorkunitsService.opts()), this.set({
|
|
5721
5612
|
QuerySet: t,
|
|
5722
5613
|
QueryId: n,
|
|
5723
5614
|
...r
|
|
5724
5615
|
});
|
|
5725
5616
|
}
|
|
5726
5617
|
static attach(e, t, n, r) {
|
|
5727
|
-
let i =
|
|
5618
|
+
let i = bt.get({
|
|
5728
5619
|
BaseUrl: e.baseUrl,
|
|
5729
5620
|
QuerySet: t,
|
|
5730
5621
|
QueryId: n
|
|
@@ -5780,13 +5671,13 @@ var QueryCache = class extends e {
|
|
|
5780
5671
|
GraphName: e,
|
|
5781
5672
|
SubGraphId: t
|
|
5782
5673
|
}).then((e) => {
|
|
5783
|
-
let t = new
|
|
5674
|
+
let t = new vt(), n = !0;
|
|
5784
5675
|
for (let r of e?.Graphs?.ECLGraphEx || []) n ? (t.load(r.Graph), n = !1) : t.merge(r.Graph);
|
|
5785
5676
|
return t;
|
|
5786
5677
|
});
|
|
5787
5678
|
}
|
|
5788
5679
|
fetchDetailsNormalized(e = {}) {
|
|
5789
|
-
let t =
|
|
5680
|
+
let t = at.attach(this.wsWorkunitsService, this.Wuid);
|
|
5790
5681
|
return t ? Promise.all([
|
|
5791
5682
|
this.fetchGraph(),
|
|
5792
5683
|
t.fetchDetailsMeta(),
|
|
@@ -5804,7 +5695,7 @@ var QueryCache = class extends e {
|
|
|
5804
5695
|
let n = t[e], r = typeof n;
|
|
5805
5696
|
if (r === "string" || r === "number" || r === "boolean") {
|
|
5806
5697
|
let t = isNumber(n) ? parseFloat(n) : n, r = n;
|
|
5807
|
-
e.indexOf("Time") >= 0 && (t /= 1e9, r =
|
|
5698
|
+
e.indexOf("Time") >= 0 && (t /= 1e9, r = yt(t) + "s"), i.push({
|
|
5808
5699
|
Name: e,
|
|
5809
5700
|
RawValue: t,
|
|
5810
5701
|
Formatted: r
|
|
@@ -5855,7 +5746,7 @@ var QueryCache = class extends e {
|
|
|
5855
5746
|
constructor() {
|
|
5856
5747
|
super((e) => `${e.BaseUrl}-${e.Name}:${e.UserSpecific}-${e.Namespace}`);
|
|
5857
5748
|
}
|
|
5858
|
-
},
|
|
5749
|
+
}, St = new StoreCache(), ValueChangedMessage = class extends i {
|
|
5859
5750
|
key;
|
|
5860
5751
|
value;
|
|
5861
5752
|
oldValue;
|
|
@@ -5871,7 +5762,7 @@ var QueryCache = class extends e {
|
|
|
5871
5762
|
void() {
|
|
5872
5763
|
return this.value === this.oldValue;
|
|
5873
5764
|
}
|
|
5874
|
-
},
|
|
5765
|
+
}, Ct = class Store {
|
|
5875
5766
|
connection;
|
|
5876
5767
|
get BaseUrl() {
|
|
5877
5768
|
return this.connection.baseUrl;
|
|
@@ -5881,7 +5772,7 @@ var QueryCache = class extends e {
|
|
|
5881
5772
|
Namespace;
|
|
5882
5773
|
_dispatch = new t();
|
|
5883
5774
|
static attach(e, t = "HPCCApps", n, r = !0) {
|
|
5884
|
-
return
|
|
5775
|
+
return St.get({
|
|
5885
5776
|
BaseUrl: e.baseUrl,
|
|
5886
5777
|
Name: t,
|
|
5887
5778
|
UserSpecific: r,
|
|
@@ -5956,13 +5847,13 @@ var QueryCache = class extends e {
|
|
|
5956
5847
|
monitor(e) {
|
|
5957
5848
|
return this._dispatch.attach(e);
|
|
5958
5849
|
}
|
|
5959
|
-
},
|
|
5850
|
+
}, wt = y("@hpcc-js/comms/dfuWorkunit.ts"), $ = /* @__PURE__ */ function(e) {
|
|
5960
5851
|
return e[e.Unknown = 0] = "Unknown", e[e.Scheduled = 1] = "Scheduled", e[e.Queued = 2] = "Queued", e[e.Started = 3] = "Started", e[e.Aborted = 4] = "Aborted", e[e.Failed = 5] = "Failed", e[e.Finished = 6] = "Finished", e[e.Monitoring = 7] = "Monitoring", e[e.Aborting = 8] = "Aborting", e[e.NotFound = 999] = "NotFound", e;
|
|
5961
5852
|
}($ || {}), DFUWorkunitCache = class extends e {
|
|
5962
5853
|
constructor() {
|
|
5963
5854
|
super((e) => `${e.BaseUrl}-${e.ID}`);
|
|
5964
5855
|
}
|
|
5965
|
-
},
|
|
5856
|
+
}, Tt = new DFUWorkunitCache(), Et = class DFUWorkunit extends s {
|
|
5966
5857
|
connection;
|
|
5967
5858
|
topologyConnection;
|
|
5968
5859
|
get BaseUrl() {
|
|
@@ -6150,10 +6041,10 @@ var QueryCache = class extends e {
|
|
|
6150
6041
|
}
|
|
6151
6042
|
static create(e, t) {
|
|
6152
6043
|
let n = new DFUWorkunit(e);
|
|
6153
|
-
return n.connection.CreateDFUWorkunit({ DFUServerQueue: t }).then((e) => (
|
|
6044
|
+
return n.connection.CreateDFUWorkunit({ DFUServerQueue: t }).then((e) => (Tt.set(n), n.set(e.result), n));
|
|
6154
6045
|
}
|
|
6155
6046
|
static attach(e, t, n) {
|
|
6156
|
-
let r =
|
|
6047
|
+
let r = Tt.get({
|
|
6157
6048
|
BaseUrl: e.baseUrl,
|
|
6158
6049
|
ID: t
|
|
6159
6050
|
}, () => new DFUWorkunit(e, t));
|
|
@@ -6219,7 +6110,7 @@ var QueryCache = class extends e {
|
|
|
6219
6110
|
return this.connection.AbortDFUWorkunit({ wuid: this.ID });
|
|
6220
6111
|
}
|
|
6221
6112
|
delete() {
|
|
6222
|
-
return this.DFUWUAction(
|
|
6113
|
+
return this.DFUWUAction(D.DFUWUActions.Delete).then((e) => this.refresh().then(() => (this._monitor(), e)));
|
|
6223
6114
|
}
|
|
6224
6115
|
async refresh(e = !1) {
|
|
6225
6116
|
return await this.GetDFUWorkunit(), this;
|
|
@@ -6248,7 +6139,7 @@ var QueryCache = class extends e {
|
|
|
6248
6139
|
return this.connection.DFUWorkunitsAction({
|
|
6249
6140
|
wuids: { Item: [this.ID] },
|
|
6250
6141
|
Type: e
|
|
6251
|
-
}).then((t) => e ===
|
|
6142
|
+
}).then((t) => e === D.DFUWUActions.Delete ? t : this.refresh().then(() => (this._monitor(), t)));
|
|
6252
6143
|
}
|
|
6253
6144
|
on(e, t, n) {
|
|
6254
6145
|
if (this.isCallback(t)) switch (e) {
|
|
@@ -6292,12 +6183,12 @@ var QueryCache = class extends e {
|
|
|
6292
6183
|
...e,
|
|
6293
6184
|
wuid: this.ID
|
|
6294
6185
|
}).then((e) => (this.set(e.result), e)).catch((e) => {
|
|
6295
|
-
if (!e.Exception.some((e) => e.Code === 20080 || e.Code === 20081 ? (this.clearState(this.ID), this.set("State", $.NotFound), !0) : !1)) throw
|
|
6186
|
+
if (!e.Exception.some((e) => e.Code === 20080 || e.Code === 20081 ? (this.clearState(this.ID), this.set("State", $.NotFound), !0) : !1)) throw wt.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
6296
6187
|
return {};
|
|
6297
6188
|
});
|
|
6298
6189
|
}
|
|
6299
6190
|
};
|
|
6300
6191
|
//#endregion
|
|
6301
|
-
export { AccessService, AccountService,
|
|
6192
|
+
export { AccessService, AccountService, ct as Activity, Attribute, C as BUILD_VERSION, BaseScope, CloudService, CodesignService, re as Connection, ce as DFUArrayActions, ue as DFUChangeProtection, de as DFUChangeRestriction, le as DFUDefFileFormat, DFUService, Et as DFUWorkunit, DFUWorkunitCache, DFUXRefService, DaliService, ECLGraph, ie as ESPConnection, ESPExceptions, EclService, ElkService, D as FileSpray, FileSprayService, ae as FileSprayStates, GlobalResultCache, GraphCache, pe as LogType, LogaccessService, dt as LogicalFile, LogicalFileCache, pt as Machine, MachineCache, MachineService, te as PKG_NAME, S as PKG_VERSION, PackageProcessService, tt as PropertyType, xt as Query, vt as QueryGraph, nt as RelatedProperty, Resource, ResourcesService, Ye as Result, ResultCache, SMCService, SashaService, Scope, ScopeEdge, ScopeGraph, ScopeSubgraph, ScopeVertex, Service, SourceFile, Ct as Store, StoreCache, StoreService, me as TargetAudience, Y as TargetCluster, TargetClusterCache, Timer, _t as Topology, TopologyCache, TopologyService, ValueChangedMessage, H as WUStateID, U as WUUpdate, at as Workunit, WorkunitCache, WorkunitsService, WorkunitsServiceEx, oe as WsAccess, O as WsCodesign, k as WsDfu, A as WsLogaccess, Ve as WsSMC, ye as WsSasha, Ue as WsTopology, V as WsWorkunits, XGMMLEdge, XGMMLGraph, XGMMLSubgraph, XGMMLVertex, XSDNode, XSDSchema, XSDSimpleType, XSDXMLNode, createConnection, createGraph, createXGMMLGraph, defaultTargetCluster, deserializeResponse, get, hookSend, instanceOfIConnection, instanceOfIOptions, isArray, isECLResult, isExceptions, isWUInfoWorkunit, isWUQueryECLWorkunit, jsonp, parseXSD, parseXSD2, post, send, serializeRequest, setTransportFactory, splitMetric, targetClusters };
|
|
6302
6193
|
|
|
6303
6194
|
//# sourceMappingURL=index.js.map
|