@openc3/js-common 6.7.0 → 6.8.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/services.cjs +7 -7
- package/dist/services.cjs.map +1 -1
- package/dist/services.js +147 -136
- package/dist/services.js.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +9 -4
- package/dist/utils.js.map +1 -1
- package/package.json +6 -6
package/dist/services.js
CHANGED
|
@@ -6,11 +6,11 @@ function gt(n, e) {
|
|
|
6
6
|
return n.apply(e, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString: Yt } = Object.prototype, { getPrototypeOf: Ue } = Object, { iterator:
|
|
9
|
+
const { toString: Yt } = Object.prototype, { getPrototypeOf: Ue } = Object, { iterator: me, toStringTag: bt } = Symbol, ge = /* @__PURE__ */ ((n) => (e) => {
|
|
10
10
|
const t = Yt.call(e);
|
|
11
11
|
return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)), $ = (n) => (n = n.toLowerCase(), (e) =>
|
|
13
|
-
function
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), $ = (n) => (n = n.toLowerCase(), (e) => ge(e) === n), be = (n) => (e) => typeof e === n, { isArray: K } = Array, Y = be("undefined");
|
|
13
|
+
function te(n) {
|
|
14
14
|
return n !== null && !Y(n) && n.constructor !== null && !Y(n.constructor) && T(n.constructor.isBuffer) && n.constructor.isBuffer(n);
|
|
15
15
|
}
|
|
16
16
|
const yt = $("ArrayBuffer");
|
|
@@ -18,25 +18,25 @@ function en(n) {
|
|
|
18
18
|
let e;
|
|
19
19
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && yt(n.buffer), e;
|
|
20
20
|
}
|
|
21
|
-
const tn =
|
|
22
|
-
if (
|
|
21
|
+
const tn = be("string"), T = be("function"), wt = be("number"), ne = (n) => n !== null && typeof n == "object", nn = (n) => n === !0 || n === !1, ue = (n) => {
|
|
22
|
+
if (ge(n) !== "object")
|
|
23
23
|
return !1;
|
|
24
24
|
const e = Ue(n);
|
|
25
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(bt in n) && !(
|
|
25
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(bt in n) && !(me in n);
|
|
26
26
|
}, sn = (n) => {
|
|
27
|
-
if (!
|
|
27
|
+
if (!ne(n) || te(n))
|
|
28
28
|
return !1;
|
|
29
29
|
try {
|
|
30
30
|
return Object.keys(n).length === 0 && Object.getPrototypeOf(n) === Object.prototype;
|
|
31
31
|
} catch {
|
|
32
32
|
return !1;
|
|
33
33
|
}
|
|
34
|
-
}, rn = $("Date"), on = $("File"), cn = $("Blob"), an = $("FileList"), ln = (n) =>
|
|
34
|
+
}, rn = $("Date"), on = $("File"), cn = $("Blob"), an = $("FileList"), ln = (n) => ne(n) && T(n.pipe), un = (n) => {
|
|
35
35
|
let e;
|
|
36
|
-
return n && (typeof FormData == "function" && n instanceof FormData || T(n.append) && ((e =
|
|
36
|
+
return n && (typeof FormData == "function" && n instanceof FormData || T(n.append) && ((e = ge(n)) === "formdata" || // detect form-data instance
|
|
37
37
|
e === "object" && T(n.toString) && n.toString() === "[object FormData]"));
|
|
38
38
|
}, hn = $("URLSearchParams"), [dn, fn, pn, mn] = ["ReadableStream", "Request", "Response", "Headers"].map($), gn = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
39
|
-
function
|
|
39
|
+
function se(n, e, { allOwnKeys: t = !1 } = {}) {
|
|
40
40
|
if (n === null || typeof n > "u")
|
|
41
41
|
return;
|
|
42
42
|
let s, r;
|
|
@@ -44,7 +44,7 @@ function ne(n, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
44
44
|
for (s = 0, r = n.length; s < r; s++)
|
|
45
45
|
e.call(null, n[s], s, n);
|
|
46
46
|
else {
|
|
47
|
-
if (
|
|
47
|
+
if (te(n))
|
|
48
48
|
return;
|
|
49
49
|
const i = t ? Object.getOwnPropertyNames(n) : Object.keys(n), o = i.length;
|
|
50
50
|
let c;
|
|
@@ -53,7 +53,7 @@ function ne(n, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function _t(n, e) {
|
|
56
|
-
if (
|
|
56
|
+
if (te(n))
|
|
57
57
|
return null;
|
|
58
58
|
e = e.toLowerCase();
|
|
59
59
|
const t = Object.keys(n);
|
|
@@ -67,13 +67,13 @@ const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : type
|
|
|
67
67
|
function ke() {
|
|
68
68
|
const { caseless: n } = Et(this) && this || {}, e = {}, t = (s, r) => {
|
|
69
69
|
const i = n && _t(e, r) || r;
|
|
70
|
-
|
|
70
|
+
ue(e[i]) && ue(s) ? e[i] = ke(e[i], s) : ue(s) ? e[i] = ke({}, s) : K(s) ? e[i] = s.slice() : e[i] = s;
|
|
71
71
|
};
|
|
72
72
|
for (let s = 0, r = arguments.length; s < r; s++)
|
|
73
|
-
arguments[s] &&
|
|
73
|
+
arguments[s] && se(arguments[s], t);
|
|
74
74
|
return e;
|
|
75
75
|
}
|
|
76
|
-
const bn = (n, e, t, { allOwnKeys: s } = {}) => (
|
|
76
|
+
const bn = (n, e, t, { allOwnKeys: s } = {}) => (se(e, (r, i) => {
|
|
77
77
|
t && T(r) ? n[i] = gt(r, t) : n[i] = r;
|
|
78
78
|
}, { allOwnKeys: s }), n), yn = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), wn = (n, e, t, s) => {
|
|
79
79
|
n.prototype = Object.create(e.prototype, s), n.prototype.constructor = n, Object.defineProperty(n, "super", {
|
|
@@ -103,7 +103,7 @@ const bn = (n, e, t, { allOwnKeys: s } = {}) => (ne(e, (r, i) => {
|
|
|
103
103
|
t[e] = n[e];
|
|
104
104
|
return t;
|
|
105
105
|
}, xn = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Ue(Uint8Array)), Rn = (n, e) => {
|
|
106
|
-
const s = (n && n[
|
|
106
|
+
const s = (n && n[me]).call(n);
|
|
107
107
|
let r;
|
|
108
108
|
for (; (r = s.next()) && !r.done; ) {
|
|
109
109
|
const i = r.value;
|
|
@@ -122,7 +122,7 @@ const bn = (n, e, t, { allOwnKeys: s } = {}) => (ne(e, (r, i) => {
|
|
|
122
122
|
}
|
|
123
123
|
), We = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), Tn = $("RegExp"), St = (n, e) => {
|
|
124
124
|
const t = Object.getOwnPropertyDescriptors(n), s = {};
|
|
125
|
-
|
|
125
|
+
se(t, (r, i) => {
|
|
126
126
|
let o;
|
|
127
127
|
(o = e(r, i, n)) !== !1 && (s[i] = o || r);
|
|
128
128
|
}), Object.defineProperties(n, s);
|
|
@@ -151,19 +151,19 @@ const bn = (n, e, t, { allOwnKeys: s } = {}) => (ne(e, (r, i) => {
|
|
|
151
151
|
}, Pn = () => {
|
|
152
152
|
}, In = (n, e) => n != null && Number.isFinite(n = +n) ? n : e;
|
|
153
153
|
function Ln(n) {
|
|
154
|
-
return !!(n && T(n.append) && n[bt] === "FormData" && n[
|
|
154
|
+
return !!(n && T(n.append) && n[bt] === "FormData" && n[me]);
|
|
155
155
|
}
|
|
156
156
|
const jn = (n) => {
|
|
157
157
|
const e = new Array(10), t = (s, r) => {
|
|
158
|
-
if (
|
|
158
|
+
if (ne(s)) {
|
|
159
159
|
if (e.indexOf(s) >= 0)
|
|
160
160
|
return;
|
|
161
|
-
if (
|
|
161
|
+
if (te(s))
|
|
162
162
|
return s;
|
|
163
163
|
if (!("toJSON" in s)) {
|
|
164
164
|
e[r] = s;
|
|
165
165
|
const i = K(s) ? [] : {};
|
|
166
|
-
return
|
|
166
|
+
return se(s, (o, c) => {
|
|
167
167
|
const h = t(o, r + 1);
|
|
168
168
|
!Y(h) && (i[c] = h);
|
|
169
169
|
}), e[r] = void 0, i;
|
|
@@ -172,24 +172,24 @@ const jn = (n) => {
|
|
|
172
172
|
return s;
|
|
173
173
|
};
|
|
174
174
|
return t(n, 0);
|
|
175
|
-
}, vn = $("AsyncFunction"), $n = (n) => n && (
|
|
175
|
+
}, vn = $("AsyncFunction"), $n = (n) => n && (ne(n) || T(n)) && T(n.then) && T(n.catch), xt = ((n, e) => n ? setImmediate : e ? ((t, s) => (H.addEventListener("message", ({ source: r, data: i }) => {
|
|
176
176
|
r === H && i === t && s.length && s.shift()();
|
|
177
177
|
}, !1), (r) => {
|
|
178
178
|
s.push(r), H.postMessage(t, "*");
|
|
179
179
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
180
180
|
typeof setImmediate == "function",
|
|
181
181
|
T(H.postMessage)
|
|
182
|
-
), Fn = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || xt, Un = (n) => n != null && T(n[
|
|
182
|
+
), Fn = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || xt, Un = (n) => n != null && T(n[me]), l = {
|
|
183
183
|
isArray: K,
|
|
184
184
|
isArrayBuffer: yt,
|
|
185
|
-
isBuffer:
|
|
185
|
+
isBuffer: te,
|
|
186
186
|
isFormData: un,
|
|
187
187
|
isArrayBufferView: en,
|
|
188
188
|
isString: tn,
|
|
189
189
|
isNumber: wt,
|
|
190
190
|
isBoolean: nn,
|
|
191
|
-
isObject:
|
|
192
|
-
isPlainObject:
|
|
191
|
+
isObject: ne,
|
|
192
|
+
isPlainObject: ue,
|
|
193
193
|
isEmptyObject: sn,
|
|
194
194
|
isReadableStream: dn,
|
|
195
195
|
isRequest: fn,
|
|
@@ -205,14 +205,14 @@ const jn = (n) => {
|
|
|
205
205
|
isURLSearchParams: hn,
|
|
206
206
|
isTypedArray: xn,
|
|
207
207
|
isFileList: an,
|
|
208
|
-
forEach:
|
|
208
|
+
forEach: se,
|
|
209
209
|
merge: ke,
|
|
210
210
|
extend: bn,
|
|
211
211
|
trim: gn,
|
|
212
212
|
stripBOM: yn,
|
|
213
213
|
inherits: wn,
|
|
214
214
|
toFlatObject: _n,
|
|
215
|
-
kindOf:
|
|
215
|
+
kindOf: ge,
|
|
216
216
|
kindOfTest: $,
|
|
217
217
|
endsWith: En,
|
|
218
218
|
toArray: Sn,
|
|
@@ -307,7 +307,7 @@ function qn(n) {
|
|
|
307
307
|
const Bn = l.toFlatObject(l, {}, null, function(e) {
|
|
308
308
|
return /^is[A-Z]/.test(e);
|
|
309
309
|
});
|
|
310
|
-
function
|
|
310
|
+
function ye(n, e, t) {
|
|
311
311
|
if (!l.isObject(n))
|
|
312
312
|
throw new TypeError("target must be an object");
|
|
313
313
|
e = e || new FormData(), t = l.toFlatObject(t, {
|
|
@@ -385,7 +385,7 @@ function Xe(n) {
|
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
function De(n, e) {
|
|
388
|
-
this._pairs = [], n &&
|
|
388
|
+
this._pairs = [], n && ye(n, this, e);
|
|
389
389
|
}
|
|
390
390
|
const Ct = De.prototype;
|
|
391
391
|
Ct.append = function(e, t) {
|
|
@@ -496,7 +496,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xn
|
|
|
496
496
|
...Jn
|
|
497
497
|
};
|
|
498
498
|
function Qn(n, e) {
|
|
499
|
-
return
|
|
499
|
+
return ye(n, new O.classes.URLSearchParams(), {
|
|
500
500
|
visitor: function(t, s, r, i) {
|
|
501
501
|
return O.isNode && l.isBuffer(t) ? (this.append(s, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
502
502
|
},
|
|
@@ -540,7 +540,7 @@ function es(n, e, t) {
|
|
|
540
540
|
}
|
|
541
541
|
return (t || JSON.stringify)(n);
|
|
542
542
|
}
|
|
543
|
-
const
|
|
543
|
+
const re = {
|
|
544
544
|
transitional: kt,
|
|
545
545
|
adapter: ["xhr", "http", "fetch"],
|
|
546
546
|
transformRequest: [function(e, t) {
|
|
@@ -559,7 +559,7 @@ const se = {
|
|
|
559
559
|
return Qn(e, this.formSerializer).toString();
|
|
560
560
|
if ((c = l.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
561
561
|
const h = this.env && this.env.FormData;
|
|
562
|
-
return
|
|
562
|
+
return ye(
|
|
563
563
|
c ? { "files[]": e } : e,
|
|
564
564
|
h && new h(),
|
|
565
565
|
this.formSerializer
|
|
@@ -569,7 +569,7 @@ const se = {
|
|
|
569
569
|
return i || r ? (t.setContentType("application/json", !1), es(e)) : e;
|
|
570
570
|
}],
|
|
571
571
|
transformResponse: [function(e) {
|
|
572
|
-
const t = this.transitional ||
|
|
572
|
+
const t = this.transitional || re.transitional, s = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
573
573
|
if (l.isResponse(e) || l.isReadableStream(e))
|
|
574
574
|
return e;
|
|
575
575
|
if (e && l.isString(e) && (s && !this.responseType || r)) {
|
|
@@ -607,7 +607,7 @@ const se = {
|
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
609
|
l.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
|
|
610
|
-
|
|
610
|
+
re.headers[n] = {};
|
|
611
611
|
});
|
|
612
612
|
const ts = l.toObjectSet([
|
|
613
613
|
"age",
|
|
@@ -638,8 +638,8 @@ const ts = l.toObjectSet([
|
|
|
638
638
|
function Q(n) {
|
|
639
639
|
return n && String(n).trim().toLowerCase();
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return n === !1 || n == null ? n : l.isArray(n) ? n.map(
|
|
641
|
+
function he(n) {
|
|
642
|
+
return n === !1 || n == null ? n : l.isArray(n) ? n.map(he) : String(n);
|
|
643
643
|
}
|
|
644
644
|
function ss(n) {
|
|
645
645
|
const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -684,7 +684,7 @@ let k = class {
|
|
|
684
684
|
if (!a)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
686
|
const d = l.findKey(r, a);
|
|
687
|
-
(!d || r[d] === void 0 || u === !0 || u === void 0 && r[d] !== !1) && (r[d || h] =
|
|
687
|
+
(!d || r[d] === void 0 || u === !0 || u === void 0 && r[d] !== !1) && (r[d || h] = he(c));
|
|
688
688
|
}
|
|
689
689
|
const o = (c, h) => l.forEach(c, (u, a) => i(u, a, h));
|
|
690
690
|
if (l.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -752,11 +752,11 @@ let k = class {
|
|
|
752
752
|
return l.forEach(this, (r, i) => {
|
|
753
753
|
const o = l.findKey(s, i);
|
|
754
754
|
if (o) {
|
|
755
|
-
t[o] =
|
|
755
|
+
t[o] = he(r), delete t[i];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
758
|
const c = e ? is(i) : String(i).trim();
|
|
759
|
-
c !== i && delete t[i], t[c] =
|
|
759
|
+
c !== i && delete t[i], t[c] = he(r), s[c] = !0;
|
|
760
760
|
}), this;
|
|
761
761
|
}
|
|
762
762
|
concat(...e) {
|
|
@@ -811,7 +811,7 @@ l.reduceDescriptors(k.prototype, ({ value: n }, e) => {
|
|
|
811
811
|
});
|
|
812
812
|
l.freezeMethods(k);
|
|
813
813
|
function Oe(n, e) {
|
|
814
|
-
const t = this ||
|
|
814
|
+
const t = this || re, s = e || t, r = k.from(s.headers);
|
|
815
815
|
let i = s.data;
|
|
816
816
|
return l.forEach(n, function(c) {
|
|
817
817
|
i = c.call(t, i, r.normalize(), e ? e.status : void 0);
|
|
@@ -868,7 +868,7 @@ function ls(n, e) {
|
|
|
868
868
|
}, s - d)));
|
|
869
869
|
}, () => r && o(r)];
|
|
870
870
|
}
|
|
871
|
-
const
|
|
871
|
+
const fe = (n, e, t = 3) => {
|
|
872
872
|
let s = 0;
|
|
873
873
|
const r = as(50, 250);
|
|
874
874
|
return ls((i) => {
|
|
@@ -1067,7 +1067,7 @@ const jt = (n) => {
|
|
|
1067
1067
|
)), p = null;
|
|
1068
1068
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in p && l.forEach(o.toJSON(), function(N, x) {
|
|
1069
1069
|
p.setRequestHeader(x, N);
|
|
1070
|
-
}), l.isUndefined(r.withCredentials) || (p.withCredentials = !!r.withCredentials), c && c !== "json" && (p.responseType = r.responseType), u && ([g, f] =
|
|
1070
|
+
}), l.isUndefined(r.withCredentials) || (p.withCredentials = !!r.withCredentials), c && c !== "json" && (p.responseType = r.responseType), u && ([g, f] = fe(u, !0), p.addEventListener("progress", g)), h && p.upload && ([d, b] = fe(h), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", b)), (r.cancelToken || r.signal) && (a = (S) => {
|
|
1071
1071
|
p && (s(!S || S.type ? new X(null, n, p) : S), p.abort(), p = null);
|
|
1072
1072
|
}, r.cancelToken && r.cancelToken.subscribe(a), r.signal && (r.signal.aborted ? a() : r.signal.addEventListener("abort", a)));
|
|
1073
1073
|
const E = cs(r.url);
|
|
@@ -1157,7 +1157,7 @@ const jt = (n) => {
|
|
|
1157
1157
|
}, {
|
|
1158
1158
|
highWaterMark: 2
|
|
1159
1159
|
});
|
|
1160
|
-
},
|
|
1160
|
+
}, we = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", vt = we && typeof ReadableStream == "function", _s = we && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((n) => (e) => n.encode(e))(new TextEncoder()) : async (n) => new Uint8Array(await new Response(n).arrayBuffer())), $t = (n, ...e) => {
|
|
1161
1161
|
try {
|
|
1162
1162
|
return !!n(...e);
|
|
1163
1163
|
} catch {
|
|
@@ -1173,12 +1173,12 @@ const jt = (n) => {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
}).headers.has("Content-Type");
|
|
1175
1175
|
return n && !e;
|
|
1176
|
-
}), nt = 64 * 1024, Ie = vt && $t(() => l.isReadableStream(new Response("").body)),
|
|
1176
|
+
}), nt = 64 * 1024, Ie = vt && $t(() => l.isReadableStream(new Response("").body)), pe = {
|
|
1177
1177
|
stream: Ie && ((n) => n.body)
|
|
1178
1178
|
};
|
|
1179
|
-
|
|
1179
|
+
we && ((n) => {
|
|
1180
1180
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1181
|
-
!
|
|
1181
|
+
!pe[e] && (pe[e] = l.isFunction(n[e]) ? (t) => t[e]() : (t, s) => {
|
|
1182
1182
|
throw new y(`Response type '${e}' is not supported`, y.ERR_NOT_SUPPORT, s);
|
|
1183
1183
|
});
|
|
1184
1184
|
});
|
|
@@ -1200,7 +1200,7 @@ const Ss = async (n) => {
|
|
|
1200
1200
|
}, xs = async (n, e) => {
|
|
1201
1201
|
const t = l.toFiniteNumber(n.getContentLength());
|
|
1202
1202
|
return t ?? Ss(e);
|
|
1203
|
-
}, Rs =
|
|
1203
|
+
}, Rs = we && (async (n) => {
|
|
1204
1204
|
let {
|
|
1205
1205
|
url: e,
|
|
1206
1206
|
method: t,
|
|
@@ -1231,7 +1231,7 @@ const Ss = async (n) => {
|
|
|
1231
1231
|
if (l.isFormData(s) && (P = x.headers.get("content-type")) && a.setContentType(P), x.body) {
|
|
1232
1232
|
const [I, D] = Ze(
|
|
1233
1233
|
p,
|
|
1234
|
-
|
|
1234
|
+
fe(Ye(h))
|
|
1235
1235
|
);
|
|
1236
1236
|
s = tt(x.body, nt, I, D);
|
|
1237
1237
|
}
|
|
@@ -1256,7 +1256,7 @@ const Ss = async (n) => {
|
|
|
1256
1256
|
});
|
|
1257
1257
|
const P = l.toFiniteNumber(E.headers.get("content-length")), [I, D] = c && Ze(
|
|
1258
1258
|
P,
|
|
1259
|
-
|
|
1259
|
+
fe(Ye(c), !0)
|
|
1260
1260
|
) || [];
|
|
1261
1261
|
E = new Response(
|
|
1262
1262
|
tt(E.body, nt, I, () => {
|
|
@@ -1266,7 +1266,7 @@ const Ss = async (n) => {
|
|
|
1266
1266
|
);
|
|
1267
1267
|
}
|
|
1268
1268
|
u = u || "text";
|
|
1269
|
-
let N = await
|
|
1269
|
+
let N = await pe[l.findKey(pe, u) || "text"](E, n);
|
|
1270
1270
|
return !S && m && m(), await new Promise((x, P) => {
|
|
1271
1271
|
It(x, P, {
|
|
1272
1272
|
data: N,
|
|
@@ -1338,7 +1338,7 @@ function rt(n) {
|
|
|
1338
1338
|
return Ce(n), n.headers = k.from(n.headers), n.data = Oe.call(
|
|
1339
1339
|
n,
|
|
1340
1340
|
n.transformRequest
|
|
1341
|
-
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), Ft.getAdapter(n.adapter ||
|
|
1341
|
+
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), Ft.getAdapter(n.adapter || re.adapter)(n).then(function(s) {
|
|
1342
1342
|
return Ce(n), s.data = Oe.call(
|
|
1343
1343
|
n,
|
|
1344
1344
|
n.transformResponse,
|
|
@@ -1352,14 +1352,14 @@ function rt(n) {
|
|
|
1352
1352
|
), s.response.headers = k.from(s.response.headers))), Promise.reject(s);
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
|
-
const Ut = "1.11.0",
|
|
1355
|
+
const Ut = "1.11.0", _e = {};
|
|
1356
1356
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, e) => {
|
|
1357
|
-
|
|
1357
|
+
_e[n] = function(s) {
|
|
1358
1358
|
return typeof s === n || "a" + (e < 1 ? "n " : " ") + n;
|
|
1359
1359
|
};
|
|
1360
1360
|
});
|
|
1361
1361
|
const it = {};
|
|
1362
|
-
|
|
1362
|
+
_e.transitional = function(e, t, s) {
|
|
1363
1363
|
function r(i, o) {
|
|
1364
1364
|
return "[Axios v" + Ut + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
|
|
1365
1365
|
}
|
|
@@ -1377,7 +1377,7 @@ we.transitional = function(e, t, s) {
|
|
|
1377
1377
|
)), e ? e(i, o, c) : !0;
|
|
1378
1378
|
};
|
|
1379
1379
|
};
|
|
1380
|
-
|
|
1380
|
+
_e.spelling = function(e) {
|
|
1381
1381
|
return (t, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
|
|
1382
1382
|
};
|
|
1383
1383
|
function Os(n, e, t) {
|
|
@@ -1397,10 +1397,10 @@ function Os(n, e, t) {
|
|
|
1397
1397
|
throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
const
|
|
1400
|
+
const de = {
|
|
1401
1401
|
assertOptions: Os,
|
|
1402
|
-
validators:
|
|
1403
|
-
}, F =
|
|
1402
|
+
validators: _e
|
|
1403
|
+
}, F = de.validators;
|
|
1404
1404
|
let z = class {
|
|
1405
1405
|
constructor(e) {
|
|
1406
1406
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1436,16 +1436,16 @@ let z = class {
|
|
|
1436
1436
|
_request(e, t) {
|
|
1437
1437
|
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = V(this.defaults, t);
|
|
1438
1438
|
const { transitional: s, paramsSerializer: r, headers: i } = t;
|
|
1439
|
-
s !== void 0 &&
|
|
1439
|
+
s !== void 0 && de.assertOptions(s, {
|
|
1440
1440
|
silentJSONParsing: F.transitional(F.boolean),
|
|
1441
1441
|
forcedJSONParsing: F.transitional(F.boolean),
|
|
1442
1442
|
clarifyTimeoutError: F.transitional(F.boolean)
|
|
1443
1443
|
}, !1), r != null && (l.isFunction(r) ? t.paramsSerializer = {
|
|
1444
1444
|
serialize: r
|
|
1445
|
-
} :
|
|
1445
|
+
} : de.assertOptions(r, {
|
|
1446
1446
|
encode: F.function,
|
|
1447
1447
|
serialize: F.function
|
|
1448
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0),
|
|
1448
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), de.assertOptions(t, {
|
|
1449
1449
|
baseUrl: F.spelling("baseURL"),
|
|
1450
1450
|
withXsrfToken: F.spelling("withXSRFToken")
|
|
1451
1451
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1680,13 +1680,13 @@ function qt(n) {
|
|
|
1680
1680
|
return qt(V(n, r));
|
|
1681
1681
|
}, t;
|
|
1682
1682
|
}
|
|
1683
|
-
const R = qt(
|
|
1683
|
+
const R = qt(re);
|
|
1684
1684
|
R.Axios = z;
|
|
1685
1685
|
R.CanceledError = X;
|
|
1686
1686
|
R.CancelToken = Cs;
|
|
1687
1687
|
R.isCancel = Pt;
|
|
1688
1688
|
R.VERSION = Ut;
|
|
1689
|
-
R.toFormData =
|
|
1689
|
+
R.toFormData = ye;
|
|
1690
1690
|
R.AxiosError = y;
|
|
1691
1691
|
R.Cancel = R.CanceledError;
|
|
1692
1692
|
R.all = function(e) {
|
|
@@ -1746,7 +1746,7 @@ Be.interceptors.response.use(
|
|
|
1746
1746
|
throw n;
|
|
1747
1747
|
}
|
|
1748
1748
|
);
|
|
1749
|
-
const
|
|
1749
|
+
const ce = async function(n, e, {
|
|
1750
1750
|
data: t,
|
|
1751
1751
|
params: s = {},
|
|
1752
1752
|
headers: r,
|
|
@@ -1785,7 +1785,7 @@ const oe = async function(n, e, {
|
|
|
1785
1785
|
noAuth: r,
|
|
1786
1786
|
onUploadProgress: i
|
|
1787
1787
|
} = {}) {
|
|
1788
|
-
return
|
|
1788
|
+
return ce("get", n, {
|
|
1789
1789
|
params: e,
|
|
1790
1790
|
headers: t,
|
|
1791
1791
|
noScope: s,
|
|
@@ -1801,7 +1801,7 @@ const oe = async function(n, e, {
|
|
|
1801
1801
|
noAuth: i,
|
|
1802
1802
|
onUploadProgress: o
|
|
1803
1803
|
} = {}) {
|
|
1804
|
-
return
|
|
1804
|
+
return ce("put", n, {
|
|
1805
1805
|
data: e,
|
|
1806
1806
|
params: t,
|
|
1807
1807
|
headers: s,
|
|
@@ -1818,7 +1818,7 @@ const oe = async function(n, e, {
|
|
|
1818
1818
|
noAuth: i,
|
|
1819
1819
|
onUploadProgress: o
|
|
1820
1820
|
} = {}) {
|
|
1821
|
-
return
|
|
1821
|
+
return ce("post", n, {
|
|
1822
1822
|
data: e,
|
|
1823
1823
|
params: t,
|
|
1824
1824
|
headers: s,
|
|
@@ -1834,7 +1834,7 @@ const oe = async function(n, e, {
|
|
|
1834
1834
|
noAuth: r,
|
|
1835
1835
|
onUploadProgress: i
|
|
1836
1836
|
} = {}) {
|
|
1837
|
-
return
|
|
1837
|
+
return ce("delete", n, {
|
|
1838
1838
|
params: e,
|
|
1839
1839
|
headers: t,
|
|
1840
1840
|
noScope: s,
|
|
@@ -1843,7 +1843,7 @@ const oe = async function(n, e, {
|
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
1845
1845
|
};
|
|
1846
|
-
let
|
|
1846
|
+
let Ee = () => ({
|
|
1847
1847
|
emit(n, ...e) {
|
|
1848
1848
|
for (let t = this.events[n] || [], s = 0, r = t.length; s < r; s++)
|
|
1849
1849
|
t[s](...e);
|
|
@@ -1857,22 +1857,22 @@ let _e = () => ({
|
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
1859
|
});
|
|
1860
|
-
class
|
|
1860
|
+
class ie extends Error {
|
|
1861
1861
|
constructor(e, t) {
|
|
1862
1862
|
e instanceof Error ? (super(e.message), this.cause = e) : super(e), this.reason = t, this.name = "ReasonError";
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
|
-
class Me extends
|
|
1865
|
+
class Me extends ie {
|
|
1866
1866
|
constructor(e) {
|
|
1867
1867
|
super("Rejected", e), this.name = "SubscriptionRejectedError";
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
|
-
class Ns extends
|
|
1870
|
+
class Ns extends ie {
|
|
1871
1871
|
constructor(e) {
|
|
1872
1872
|
super(e || "Timed out to receive subscription ack"), this.name = "SubscriptionTimeoutError";
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
|
-
class v extends
|
|
1875
|
+
class v extends ie {
|
|
1876
1876
|
constructor(e, t) {
|
|
1877
1877
|
t ? super(e, t) : super("Disconnected", e), this.name = "DisconnectedError";
|
|
1878
1878
|
}
|
|
@@ -1941,7 +1941,7 @@ class Mt {
|
|
|
1941
1941
|
// Unique channel identifier
|
|
1942
1942
|
// static identifier = ''
|
|
1943
1943
|
constructor(e = {}) {
|
|
1944
|
-
this.emitter =
|
|
1944
|
+
this.emitter = Ee(), this.params = Object.freeze(e), this.presence = new Is(this), this.initialConnect = !0, this[B] = "idle";
|
|
1945
1945
|
}
|
|
1946
1946
|
get identifier() {
|
|
1947
1947
|
return this._identifier ? this._identifier : (this._identifier = Bt({
|
|
@@ -2034,7 +2034,7 @@ class Mt {
|
|
|
2034
2034
|
), s.push(
|
|
2035
2035
|
this.on("close", (r) => {
|
|
2036
2036
|
s.forEach((i) => i()), t(
|
|
2037
|
-
r || new
|
|
2037
|
+
r || new ie(
|
|
2038
2038
|
"Channel was disconnected before subscribing",
|
|
2039
2039
|
"canceled"
|
|
2040
2040
|
)
|
|
@@ -2215,7 +2215,7 @@ class Ht {
|
|
|
2215
2215
|
this.log("error", e, t);
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
|
-
class
|
|
2218
|
+
class oe extends Ht {
|
|
2219
2219
|
writeLogEntry() {
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
@@ -2234,7 +2234,7 @@ let Us = 0;
|
|
|
2234
2234
|
class zt {
|
|
2235
2235
|
constructor(e = {}) {
|
|
2236
2236
|
let { logger: t } = e;
|
|
2237
|
-
this.logger = t || new
|
|
2237
|
+
this.logger = t || new oe(), this.pendingSubscriptions = {}, this.pendingUnsubscriptions = {}, this.subscribeCooldownInterval = e.subscribeCooldownInterval || 250, this.subscribeRetryInterval = e.subscribeRetryInterval || 5e3;
|
|
2238
2238
|
}
|
|
2239
2239
|
attached(e) {
|
|
2240
2240
|
this.cable = e;
|
|
@@ -2502,7 +2502,7 @@ class Ds extends zt {
|
|
|
2502
2502
|
});
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
|
-
class qs extends
|
|
2505
|
+
class qs extends ie {
|
|
2506
2506
|
constructor() {
|
|
2507
2507
|
super("No connection", "closed"), this.name = "NoConnectionError";
|
|
2508
2508
|
}
|
|
@@ -2540,7 +2540,7 @@ let Ms = class {
|
|
|
2540
2540
|
performFailures: c,
|
|
2541
2541
|
transportConfigurator: h
|
|
2542
2542
|
}) {
|
|
2543
|
-
this.emitter =
|
|
2543
|
+
this.emitter = Ee(), this.transport = e, this.encoder = s, this.logger = r || new oe(), this.protocol = t, this.performFailures = c || "throw", this.protocol.attached(this), this.hub = new $s(o || {}), this[M] = "idle", this.handleClose = this.handleClose.bind(this), this.handleIncoming = this.handleIncoming.bind(this), this.transportConfigurator = h, this.transport.on("close", this.handleClose), this.transport.on("data", this.handleIncoming), this.initialConnect = !0, this.recovering = !1, i === !1 && this.connect().catch(() => {
|
|
2544
2544
|
});
|
|
2545
2545
|
}
|
|
2546
2546
|
get state() {
|
|
@@ -2848,7 +2848,7 @@ let Jt = class {
|
|
|
2848
2848
|
throw Error(`Incorrect pingInterval is provided: ${e}`);
|
|
2849
2849
|
if (t = Object.assign({}, Hs, t), this.strategy = t.reconnectStrategy, !this.strategy)
|
|
2850
2850
|
throw Error("Reconnect strategy must be provided");
|
|
2851
|
-
this.maxMissingPings = t.maxMissingPings, this.maxReconnectAttempts = t.maxReconnectAttempts, this.logger = t.logger || new
|
|
2851
|
+
this.maxMissingPings = t.maxMissingPings, this.maxReconnectAttempts = t.maxReconnectAttempts, this.logger = t.logger || new oe(), this.state = "pending_connect", this.attempts = 0, this.disconnectedAt = W();
|
|
2852
2852
|
}
|
|
2853
2853
|
watch(e) {
|
|
2854
2854
|
this.target = e, this.initListeners();
|
|
@@ -2910,7 +2910,7 @@ let Jt = class {
|
|
|
2910
2910
|
};
|
|
2911
2911
|
class zs {
|
|
2912
2912
|
constructor(e, t = {}) {
|
|
2913
|
-
this.transports = e, this.transport = null, this.emitter =
|
|
2913
|
+
this.transports = e, this.transport = null, this.emitter = Ee(), this.unbind = [], this.logger = t.logger || new oe();
|
|
2914
2914
|
}
|
|
2915
2915
|
displayName() {
|
|
2916
2916
|
return "fallbacked transport";
|
|
@@ -2991,7 +2991,7 @@ class Vs {
|
|
|
2991
2991
|
this.Impl = WebSocket;
|
|
2992
2992
|
else
|
|
2993
2993
|
throw new Error("No WebSocket support");
|
|
2994
|
-
this.connected = !1, this.emitter =
|
|
2994
|
+
this.connected = !1, this.emitter = Ee();
|
|
2995
2995
|
let { format: r, subprotocol: i, authStrategy: o } = t;
|
|
2996
2996
|
this.format = r || "text", this.connectionOptions = t.websocketOptions, this.authStrategy = o || "param", this.authProtocol = "", this.subprotocol = i;
|
|
2997
2997
|
}
|
|
@@ -3106,7 +3106,7 @@ function Js(n, e) {
|
|
|
3106
3106
|
transportConfigurator: D,
|
|
3107
3107
|
auth: U
|
|
3108
3108
|
} = e;
|
|
3109
|
-
if (u = u || new
|
|
3109
|
+
if (u = u || new oe(h), typeof t == "string") {
|
|
3110
3110
|
E = E || t;
|
|
3111
3111
|
let J = t.substring(0, t.lastIndexOf("-")), C = t.substring(t.lastIndexOf("-") + 1);
|
|
3112
3112
|
if (x = x || {}, J === "actioncable-v1")
|
|
@@ -3257,7 +3257,7 @@ class Ys extends Jt {
|
|
|
3257
3257
|
this.state === "disconnected" || this.state === "closed" || (this.logger.info("Disconnecting", { reason: e.message }), this.cancelReconnect(), this.stopPolling(), this.state = "pending_disconnect", this.target.disconnected(e));
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
const er = ["cable", "action-cable"], tr = "/cable",
|
|
3260
|
+
const er = ["cable", "action-cable"], tr = "/cable", Se = (n, e) => {
|
|
3261
3261
|
for (let t of er) {
|
|
3262
3262
|
let s = n.head.querySelector(`meta[name='${t}-${e}']`);
|
|
3263
3263
|
if (s)
|
|
@@ -3265,23 +3265,23 @@ const er = ["cable", "action-cable"], tr = "/cable", Ee = (n, e) => {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
}, lt = (n) => n.match(/wss?:\/\//) ? n : typeof window < "u" ? `${window.location.protocol.replace("http", "ws")}//${window.location.host}${n}` : n, nr = () => {
|
|
3267
3267
|
if (typeof document < "u" && document.head) {
|
|
3268
|
-
let n =
|
|
3268
|
+
let n = Se(document, "url");
|
|
3269
3269
|
if (n)
|
|
3270
3270
|
return lt(n);
|
|
3271
3271
|
}
|
|
3272
3272
|
return lt(tr);
|
|
3273
3273
|
}, sr = () => {
|
|
3274
3274
|
if (typeof document < "u" && document.head) {
|
|
3275
|
-
let n =
|
|
3275
|
+
let n = Se(document, "history-timestamp");
|
|
3276
3276
|
if (n)
|
|
3277
3277
|
return n | 0;
|
|
3278
3278
|
}
|
|
3279
3279
|
}, rr = () => {
|
|
3280
3280
|
if (typeof document < "u" && document.head)
|
|
3281
|
-
return
|
|
3281
|
+
return Se(document, "token");
|
|
3282
3282
|
}, ir = () => {
|
|
3283
3283
|
if (typeof document < "u" && document.head)
|
|
3284
|
-
return
|
|
3284
|
+
return Se(document, "token-param");
|
|
3285
3285
|
};
|
|
3286
3286
|
function or(n, e) {
|
|
3287
3287
|
typeof n == "object" && typeof e > "u" && (e = n, n = void 0), n = n || nr(), e = e || {}, e.historyTimestamp || (e.historyTimestamp = sr());
|
|
@@ -3322,7 +3322,7 @@ class ui {
|
|
|
3322
3322
|
return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(
|
|
3323
3323
|
(i) => {
|
|
3324
3324
|
if (i && OpenC3Auth.setTokens(), this._cable == null) {
|
|
3325
|
-
let o = this._url + "?scope=" + encodeURIComponent(
|
|
3325
|
+
let o = this._url + "?scope=" + encodeURIComponent(t) + "&authorization=" + encodeURIComponent(localStorage.openc3Token);
|
|
3326
3326
|
o = new URL(o, document.baseURI).href, this._cable = cr(o);
|
|
3327
3327
|
}
|
|
3328
3328
|
return this._cable.subscriptions.create(
|
|
@@ -3437,7 +3437,7 @@ class hi {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
// parse_string
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3440
|
+
function ee(n) {
|
|
3441
3441
|
return ar.test(n);
|
|
3442
3442
|
}
|
|
3443
3443
|
const ar = /^-?[0-9]+$/;
|
|
@@ -3446,21 +3446,23 @@ function Kt(n) {
|
|
|
3446
3446
|
}
|
|
3447
3447
|
const lr = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
|
|
3448
3448
|
function Xt(n, e) {
|
|
3449
|
+
if (ee(n))
|
|
3450
|
+
return Number.isSafeInteger(Number.parseInt(n, 10));
|
|
3449
3451
|
const t = Number.parseFloat(n), s = String(t);
|
|
3450
3452
|
if (n === s)
|
|
3451
3453
|
return !0;
|
|
3452
3454
|
const r = ht(n), i = ht(s);
|
|
3453
|
-
return !!(r === i || (e == null ? void 0 : e.approx) === !0 && !
|
|
3455
|
+
return !!(r === i || (e == null ? void 0 : e.approx) === !0 && !ee(n) && i.length >= 14 && r.startsWith(i.substring(0, 14)));
|
|
3454
3456
|
}
|
|
3455
|
-
let Z = /* @__PURE__ */ function(n) {
|
|
3457
|
+
let Z = /* @__PURE__ */ (function(n) {
|
|
3456
3458
|
return n.underflow = "underflow", n.overflow = "overflow", n.truncate_integer = "truncate_integer", n.truncate_float = "truncate_float", n;
|
|
3457
|
-
}({});
|
|
3459
|
+
})({});
|
|
3458
3460
|
function ur(n) {
|
|
3459
3461
|
if (Xt(n, {
|
|
3460
3462
|
approx: !1
|
|
3461
3463
|
}))
|
|
3462
3464
|
return;
|
|
3463
|
-
if (
|
|
3465
|
+
if (ee(n))
|
|
3464
3466
|
return Z.truncate_integer;
|
|
3465
3467
|
const e = Number.parseFloat(n);
|
|
3466
3468
|
return Number.isFinite(e) ? e === 0 ? Z.underflow : Z.truncate_float : Z.overflow;
|
|
@@ -3508,7 +3510,7 @@ class dr {
|
|
|
3508
3510
|
const e = ur(this.value);
|
|
3509
3511
|
if (e === void 0 || e === Z.truncate_float)
|
|
3510
3512
|
return Number.parseFloat(this.value);
|
|
3511
|
-
if (
|
|
3513
|
+
if (ee(this.value))
|
|
3512
3514
|
return BigInt(this.value);
|
|
3513
3515
|
throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`);
|
|
3514
3516
|
}
|
|
@@ -3608,7 +3610,7 @@ function yr(n, e) {
|
|
|
3608
3610
|
for (; s < n.length && n.charCodeAt(s) !== Te; ) {
|
|
3609
3611
|
if (n.charCodeAt(s) === xr) {
|
|
3610
3612
|
const A = n[s + 1], q = Sr[A];
|
|
3611
|
-
q !== void 0 ? (w += q, s++) : A === "u" ?
|
|
3613
|
+
q !== void 0 ? (w += q, s++) : A === "u" ? ae(n.charCodeAt(s + 2)) && ae(n.charCodeAt(s + 3)) && ae(n.charCodeAt(s + 4)) && ae(n.charCodeAt(s + 5)) ? (w += String.fromCharCode(Number.parseInt(n.slice(s + 2, s + 6), 16)), s += 5) : xe(s) : D(s);
|
|
3612
3614
|
} else
|
|
3613
3615
|
Er(n.charCodeAt(s)) ? w += n[s] : I(n[s]);
|
|
3614
3616
|
s++;
|
|
@@ -3621,13 +3623,13 @@ function yr(n, e) {
|
|
|
3621
3623
|
if (n.charCodeAt(s) === mt && (s++, _(w)), n.charCodeAt(s) === Ve)
|
|
3622
3624
|
s++;
|
|
3623
3625
|
else if (_r(n.charCodeAt(s)))
|
|
3624
|
-
for (s++;
|
|
3626
|
+
for (s++; le(n.charCodeAt(s)); )
|
|
3625
3627
|
s++;
|
|
3626
3628
|
if (n.charCodeAt(s) === Lr)
|
|
3627
|
-
for (s++, _(w);
|
|
3629
|
+
for (s++, _(w); le(n.charCodeAt(s)); )
|
|
3628
3630
|
s++;
|
|
3629
3631
|
if (n.charCodeAt(s) === Ur || n.charCodeAt(s) === Fr)
|
|
3630
|
-
for (s++, (n.charCodeAt(s) === mt || n.charCodeAt(s) === Nr) && s++, _(w);
|
|
3632
|
+
for (s++, (n.charCodeAt(s) === mt || n.charCodeAt(s) === Nr) && s++, _(w); le(n.charCodeAt(s)); )
|
|
3631
3633
|
s++;
|
|
3632
3634
|
if (s > w)
|
|
3633
3635
|
return t(n.slice(w, s));
|
|
@@ -3655,7 +3657,7 @@ function yr(n, e) {
|
|
|
3655
3657
|
throw new SyntaxError(`Expected end of input ${C()}`);
|
|
3656
3658
|
}
|
|
3657
3659
|
function _(w) {
|
|
3658
|
-
if (!
|
|
3660
|
+
if (!le(n.charCodeAt(s))) {
|
|
3659
3661
|
const A = n.slice(w, s);
|
|
3660
3662
|
throw new SyntaxError(`Invalid number '${A}', expecting a digit ${C()}`);
|
|
3661
3663
|
}
|
|
@@ -3703,10 +3705,10 @@ function yr(n, e) {
|
|
|
3703
3705
|
function wr(n) {
|
|
3704
3706
|
return n === Or || n === Cr || n === Tr || n === kr;
|
|
3705
3707
|
}
|
|
3706
|
-
function
|
|
3708
|
+
function ae(n) {
|
|
3707
3709
|
return n >= Ve && n <= Je || n >= vr && n <= Dr || n >= $r && n <= qr;
|
|
3708
3710
|
}
|
|
3709
|
-
function
|
|
3711
|
+
function le(n) {
|
|
3710
3712
|
return n >= Ve && n <= Je;
|
|
3711
3713
|
}
|
|
3712
3714
|
function _r(n) {
|
|
@@ -3795,7 +3797,7 @@ ${d}}` : "}", m;
|
|
|
3795
3797
|
}
|
|
3796
3798
|
}
|
|
3797
3799
|
function Br(n) {
|
|
3798
|
-
return
|
|
3800
|
+
return ee(n) && !Xt(n) ? BigInt(n) : parseFloat(n);
|
|
3799
3801
|
}
|
|
3800
3802
|
class di {
|
|
3801
3803
|
constructor() {
|
|
@@ -4084,14 +4086,14 @@ class di {
|
|
|
4084
4086
|
return this.exec("get_cmd_buffer", [e, t]);
|
|
4085
4087
|
}
|
|
4086
4088
|
// Implementation of functionality shared by cmd methods with param_lists.
|
|
4087
|
-
_cmd(e, t, s, r, i) {
|
|
4088
|
-
let
|
|
4089
|
-
for (let
|
|
4090
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
4089
|
+
_cmd(e, t, s, r, i, o = {}) {
|
|
4090
|
+
let c = null;
|
|
4091
|
+
for (let h in r)
|
|
4092
|
+
Object.prototype.hasOwnProperty.call(r, h) && (c = this.encode_openc3_type(r[h]), c !== null && (r[h] = c));
|
|
4091
4093
|
return this.exec(
|
|
4092
4094
|
e,
|
|
4093
4095
|
[t, s, r],
|
|
4094
|
-
|
|
4096
|
+
o,
|
|
4095
4097
|
i
|
|
4096
4098
|
);
|
|
4097
4099
|
}
|
|
@@ -4104,89 +4106,98 @@ class di {
|
|
|
4104
4106
|
r
|
|
4105
4107
|
);
|
|
4106
4108
|
}
|
|
4107
|
-
cmd(e, t, s, r = {}) {
|
|
4109
|
+
cmd(e, t, s, r = {}, i = {}) {
|
|
4108
4110
|
return t === void 0 ? this.exec("cmd", e, {}, r) : this._cmd(
|
|
4109
4111
|
"cmd",
|
|
4110
4112
|
e,
|
|
4111
4113
|
t,
|
|
4112
4114
|
s,
|
|
4113
|
-
r
|
|
4115
|
+
r,
|
|
4116
|
+
i
|
|
4114
4117
|
);
|
|
4115
4118
|
}
|
|
4116
|
-
cmd_no_range_check(e, t, s, r = {}) {
|
|
4117
|
-
return t === void 0 ? this.exec("cmd_no_range_check", e, {}, r) : this._cmd(
|
|
4119
|
+
cmd_no_range_check(e, t, s, r = {}, i = {}) {
|
|
4120
|
+
return t === void 0 ? this.exec("cmd_no_range_check", e, {}, r, i) : this._cmd(
|
|
4118
4121
|
"cmd_no_range_check",
|
|
4119
4122
|
e,
|
|
4120
4123
|
t,
|
|
4121
4124
|
s,
|
|
4122
|
-
r
|
|
4125
|
+
r,
|
|
4126
|
+
i
|
|
4123
4127
|
);
|
|
4124
4128
|
}
|
|
4125
|
-
cmd_raw(e, t, s, r = {}) {
|
|
4126
|
-
return t === void 0 ? this.exec("cmd_raw", e, {}, r) : this._cmd(
|
|
4129
|
+
cmd_raw(e, t, s, r = {}, i = {}) {
|
|
4130
|
+
return t === void 0 ? this.exec("cmd_raw", e, {}, r, i) : this._cmd(
|
|
4127
4131
|
"cmd_raw",
|
|
4128
4132
|
e,
|
|
4129
4133
|
t,
|
|
4130
4134
|
s,
|
|
4131
|
-
r
|
|
4135
|
+
r,
|
|
4136
|
+
i
|
|
4132
4137
|
);
|
|
4133
4138
|
}
|
|
4134
|
-
cmd_raw_no_range_check(e, t, s, r = {}) {
|
|
4135
|
-
return t === void 0 ? this.exec("cmd_raw_no_range_check", e, {}, r) : this._cmd(
|
|
4139
|
+
cmd_raw_no_range_check(e, t, s, r = {}, i = {}) {
|
|
4140
|
+
return t === void 0 ? this.exec("cmd_raw_no_range_check", e, {}, r, i) : this._cmd(
|
|
4136
4141
|
"cmd_raw_no_range_check",
|
|
4137
4142
|
e,
|
|
4138
4143
|
t,
|
|
4139
4144
|
s,
|
|
4140
|
-
r
|
|
4145
|
+
r,
|
|
4146
|
+
i
|
|
4141
4147
|
);
|
|
4142
4148
|
}
|
|
4143
|
-
cmd_no_hazardous_check(e, t, s, r = {}) {
|
|
4144
|
-
return t === void 0 ? this.exec("cmd_no_hazardous_check", e, {}, r) : this._cmd(
|
|
4149
|
+
cmd_no_hazardous_check(e, t, s, r = {}, i = {}) {
|
|
4150
|
+
return t === void 0 ? this.exec("cmd_no_hazardous_check", e, {}, r, i) : this._cmd(
|
|
4145
4151
|
"cmd_no_hazardous_check",
|
|
4146
4152
|
e,
|
|
4147
4153
|
t,
|
|
4148
4154
|
s,
|
|
4149
|
-
r
|
|
4155
|
+
r,
|
|
4156
|
+
i
|
|
4150
4157
|
);
|
|
4151
4158
|
}
|
|
4152
|
-
cmd_no_checks(e, t, s, r = {}) {
|
|
4153
|
-
return t === void 0 ? this.exec("cmd_no_checks", e, {}, r) : this._cmd(
|
|
4159
|
+
cmd_no_checks(e, t, s, r = {}, i = {}) {
|
|
4160
|
+
return t === void 0 ? this.exec("cmd_no_checks", e, {}, r, i) : this._cmd(
|
|
4154
4161
|
"cmd_no_checks",
|
|
4155
4162
|
e,
|
|
4156
4163
|
t,
|
|
4157
4164
|
s,
|
|
4158
|
-
r
|
|
4165
|
+
r,
|
|
4166
|
+
i
|
|
4159
4167
|
);
|
|
4160
4168
|
}
|
|
4161
|
-
cmd_raw_no_hazardous_check(e, t, s, r = {}) {
|
|
4169
|
+
cmd_raw_no_hazardous_check(e, t, s, r = {}, i = {}) {
|
|
4162
4170
|
return t === void 0 ? this.exec(
|
|
4163
4171
|
"cmd_raw_no_hazardous_check",
|
|
4164
4172
|
e,
|
|
4165
4173
|
{},
|
|
4166
|
-
r
|
|
4174
|
+
r,
|
|
4175
|
+
i
|
|
4167
4176
|
) : this._cmd(
|
|
4168
4177
|
"cmd_raw_no_hazardous_check",
|
|
4169
4178
|
e,
|
|
4170
4179
|
t,
|
|
4171
4180
|
s,
|
|
4172
|
-
r
|
|
4181
|
+
r,
|
|
4182
|
+
i
|
|
4173
4183
|
);
|
|
4174
4184
|
}
|
|
4175
|
-
cmd_raw_no_checks(e, t, s, r = {}) {
|
|
4176
|
-
return t === void 0 ? this.exec("cmd_raw_no_checks", e, {}, r) : this._cmd(
|
|
4185
|
+
cmd_raw_no_checks(e, t, s, r = {}, i = {}) {
|
|
4186
|
+
return t === void 0 ? this.exec("cmd_raw_no_checks", e, {}, r, i) : this._cmd(
|
|
4177
4187
|
"cmd_raw_no_checks",
|
|
4178
4188
|
e,
|
|
4179
4189
|
t,
|
|
4180
4190
|
s,
|
|
4181
|
-
r
|
|
4191
|
+
r,
|
|
4192
|
+
i
|
|
4182
4193
|
);
|
|
4183
4194
|
}
|
|
4184
|
-
build_cmd(e, t, s) {
|
|
4185
|
-
return t === void 0 ? this.exec("build_cmd", e) : this._cmd("build_cmd", e, t, s);
|
|
4195
|
+
build_cmd(e, t, s, r = {}, i = {}) {
|
|
4196
|
+
return t === void 0 ? this.exec("build_cmd", e) : this._cmd("build_cmd", e, t, s, r, i);
|
|
4186
4197
|
}
|
|
4187
4198
|
// DEPRECATED for build_cmd
|
|
4188
|
-
build_command(e, t, s) {
|
|
4189
|
-
return t === void 0 ? this.exec("build_cmd", e) : this._cmd("build_cmd", e, t, s);
|
|
4199
|
+
build_command(e, t, s, r = {}, i = {}) {
|
|
4200
|
+
return t === void 0 ? this.exec("build_cmd", e) : this._cmd("build_cmd", e, t, s, r, i);
|
|
4190
4201
|
}
|
|
4191
4202
|
get_interface_names() {
|
|
4192
4203
|
return this.exec("get_interface_names", []);
|