@machinemetrics/mm-react-tools 4.5.1 → 4.6.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/mm-react-tools.es.js +694 -685
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as cr, Fragment as Kd } from "react/jsx-runtime";
|
|
2
|
-
import zo, { createContext as hI, useState as Ot, useEffect as
|
|
2
|
+
import zo, { createContext as hI, useState as Ot, useEffect as jt, useMemo as Mo, useContext as qr, useRef as is, useCallback as gn, forwardRef as dI } from "react";
|
|
3
3
|
import { useSearchParams as pI, Outlet as mI, useNavigate as yI, useLocation as gI, useBlocker as vI, Navigate as bI, createBrowserRouter as wI, RouterProvider as _I } from "react-router-dom";
|
|
4
4
|
import Fb from "styled-components";
|
|
5
5
|
function xI(r, e) {
|
|
@@ -2515,8 +2515,8 @@ function un(r, e, t = Bb) {
|
|
|
2515
2515
|
h = h.slice();
|
|
2516
2516
|
let M = 0;
|
|
2517
2517
|
for (const [O, R] of f) {
|
|
2518
|
-
const
|
|
2519
|
-
R === null ? (h.splice(
|
|
2518
|
+
const L = O - M;
|
|
2519
|
+
R === null ? (h.splice(L, 1), M++) : h[L] = R;
|
|
2520
2520
|
}
|
|
2521
2521
|
} else {
|
|
2522
2522
|
h = { ...h };
|
|
@@ -2973,7 +2973,7 @@ var Xb = Vn(function() {
|
|
|
2973
2973
|
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
2974
2974
|
}) || !1
|
|
2975
2975
|
), ew = (ip || Xb) && !wC;
|
|
2976
|
-
function
|
|
2976
|
+
function $t(r) {
|
|
2977
2977
|
return r !== null && typeof r == "object";
|
|
2978
2978
|
}
|
|
2979
2979
|
function tw(r) {
|
|
@@ -3302,7 +3302,7 @@ function wt(r) {
|
|
|
3302
3302
|
return !!(r && typeof r == "object" && typeof r.__ref == "string");
|
|
3303
3303
|
}
|
|
3304
3304
|
function cw(r) {
|
|
3305
|
-
return
|
|
3305
|
+
return $t(r) && r.kind === "Document" && Array.isArray(r.definitions);
|
|
3306
3306
|
}
|
|
3307
3307
|
function LC(r) {
|
|
3308
3308
|
return r.kind === "StringValue";
|
|
@@ -4229,12 +4229,12 @@ var mP = function(r, e, t) {
|
|
|
4229
4229
|
/** @class */
|
|
4230
4230
|
(function() {
|
|
4231
4231
|
function r(e) {
|
|
4232
|
-
e === void 0 && (e = mP), this.reconciler = e, this.isObject =
|
|
4232
|
+
e === void 0 && (e = mP), this.reconciler = e, this.isObject = $t, this.pastCopies = /* @__PURE__ */ new Set();
|
|
4233
4233
|
}
|
|
4234
4234
|
return r.prototype.merge = function(e, t) {
|
|
4235
4235
|
for (var n = this, i = [], a = 2; a < arguments.length; a++)
|
|
4236
4236
|
i[a - 2] = arguments[a];
|
|
4237
|
-
return
|
|
4237
|
+
return $t(t) && $t(e) ? (Object.keys(t).forEach(function(u) {
|
|
4238
4238
|
if (pP.call(e, u)) {
|
|
4239
4239
|
var c = e[u];
|
|
4240
4240
|
if (t[u] !== c) {
|
|
@@ -4249,7 +4249,7 @@ var mP = function(r, e, t) {
|
|
|
4249
4249
|
e = n.shallowCopyForMerge(e), e[u] = t[u];
|
|
4250
4250
|
}), e) : t;
|
|
4251
4251
|
}, r.prototype.shallowCopyForMerge = function(e) {
|
|
4252
|
-
return
|
|
4252
|
+
return $t(e) && (this.pastCopies.has(e) || (Array.isArray(e) ? e = e.slice(0) : e = F({ __proto__: Object.getPrototypeOf(e) }, e), this.pastCopies.add(e))), e;
|
|
4253
4253
|
}, r;
|
|
4254
4254
|
})()
|
|
4255
4255
|
);
|
|
@@ -4332,8 +4332,8 @@ function vP(r) {
|
|
|
4332
4332
|
} else t.edges && (A = []);
|
|
4333
4333
|
var T = rr(rr(rr([], A, !0), c, !0), _, !0), P = F(F({}, t.pageInfo), e.pageInfo);
|
|
4334
4334
|
if (t.pageInfo) {
|
|
4335
|
-
var M = t.pageInfo, O = M.hasPreviousPage, R = M.hasNextPage, h = M.startCursor, p = M.endCursor,
|
|
4336
|
-
Object.assign(P,
|
|
4335
|
+
var M = t.pageInfo, O = M.hasPreviousPage, R = M.hasNextPage, h = M.startCursor, p = M.endCursor, L = an(M, ["hasPreviousPage", "hasNextPage", "startCursor", "endCursor"]);
|
|
4336
|
+
Object.assign(P, L), A.length || (O !== void 0 && (P.hasPreviousPage = O), h !== void 0 && (P.startCursor = h)), _.length || (R !== void 0 && (P.hasNextPage = R), p !== void 0 && (P.endCursor = p));
|
|
4337
4337
|
}
|
|
4338
4338
|
return F(F(F({}, Pf(e)), Pf(t)), { edges: T, pageInfo: P });
|
|
4339
4339
|
}
|
|
@@ -4826,8 +4826,8 @@ function cd(r, e) {
|
|
|
4826
4826
|
function NP(r) {
|
|
4827
4827
|
var e = /* @__PURE__ */ new Set([r]);
|
|
4828
4828
|
return e.forEach(function(t) {
|
|
4829
|
-
|
|
4830
|
-
|
|
4829
|
+
$t(t) && RP(t) === t && Object.getOwnPropertyNames(t).forEach(function(n) {
|
|
4830
|
+
$t(t[n]) && e.add(t[n]);
|
|
4831
4831
|
});
|
|
4832
4832
|
}), r;
|
|
4833
4833
|
}
|
|
@@ -4981,7 +4981,7 @@ function Nw(r) {
|
|
|
4981
4981
|
return Us(r) || Pw(r);
|
|
4982
4982
|
}
|
|
4983
4983
|
function Rw(r) {
|
|
4984
|
-
return
|
|
4984
|
+
return $t(r) && "payload" in r;
|
|
4985
4985
|
}
|
|
4986
4986
|
function _p(r, e) {
|
|
4987
4987
|
var t = r, n = new Mi();
|
|
@@ -5111,7 +5111,7 @@ const DP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5111
5111
|
isInlineFragment: fw,
|
|
5112
5112
|
isMutationOperation: fP,
|
|
5113
5113
|
isNonEmptyArray: Sn,
|
|
5114
|
-
isNonNullObject:
|
|
5114
|
+
isNonNullObject: $t,
|
|
5115
5115
|
isPlainObject: tw,
|
|
5116
5116
|
isQueryOperation: hP,
|
|
5117
5117
|
isReference: wt,
|
|
@@ -5407,7 +5407,7 @@ function Sp(r) {
|
|
|
5407
5407
|
var r2 = function(r) {
|
|
5408
5408
|
var e = rr(rr(rr([], r.graphQLErrors, !0), r.clientErrors, !0), r.protocolErrors, !0);
|
|
5409
5409
|
return r.networkError && e.push(r.networkError), e.map(function(t) {
|
|
5410
|
-
return
|
|
5410
|
+
return $t(t) && t.message || "Error message not found.";
|
|
5411
5411
|
}).join(`
|
|
5412
5412
|
`);
|
|
5413
5413
|
}, wn = (
|
|
@@ -5427,7 +5427,7 @@ var r2 = function(r) {
|
|
|
5427
5427
|
), Jg = Object.prototype.hasOwnProperty;
|
|
5428
5428
|
function n2(r, e) {
|
|
5429
5429
|
return Zi(this, void 0, void 0, function() {
|
|
5430
|
-
var t, n, i, a, u, c, f, h, p, m, y, g, b, A, _, w, T, P, M, O, R,
|
|
5430
|
+
var t, n, i, a, u, c, f, h, p, m, y, g, b, A, _, w, T, P, M, O, R, L, D, $;
|
|
5431
5431
|
return Xi(this, function(K) {
|
|
5432
5432
|
switch (K.label) {
|
|
5433
5433
|
case 0:
|
|
@@ -5439,10 +5439,10 @@ function n2(r, e) {
|
|
|
5439
5439
|
return h ? [4, f.next()] : [3, 3];
|
|
5440
5440
|
case 2:
|
|
5441
5441
|
for (p = K.sent(), m = p.value, y = p.done, g = typeof m == "string" ? m : t.decode(m), b = c.length - u.length + 1, h = !y, c += g, A = c.indexOf(u, b); A > -1; ) {
|
|
5442
|
-
if (_ = void 0,
|
|
5442
|
+
if (_ = void 0, L = [
|
|
5443
5443
|
c.slice(0, A),
|
|
5444
5444
|
c.slice(A + u.length)
|
|
5445
|
-
], _ =
|
|
5445
|
+
], _ = L[0], c = L[1], w = _.indexOf(`\r
|
|
5446
5446
|
\r
|
|
5447
5447
|
`), T = i2(_.slice(0, w)), P = T["content-type"], P && P.toLowerCase().indexOf("application/json") === -1)
|
|
5448
5448
|
throw new Error("Unsupported patch content type: application/json is required.");
|
|
@@ -5672,19 +5672,19 @@ var Yg = Vn(function() {
|
|
|
5672
5672
|
return ac(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));
|
|
5673
5673
|
g.query = R;
|
|
5674
5674
|
}
|
|
5675
|
-
var
|
|
5675
|
+
var L = Op(g, a, qw, y, O), D = L.options, $ = L.body;
|
|
5676
5676
|
$.variables && !p && ($.variables = $P($.variables, g.query));
|
|
5677
5677
|
var K;
|
|
5678
5678
|
!D.signal && typeof AbortController < "u" && (K = new AbortController(), D.signal = K.signal);
|
|
5679
|
-
var ae = function(
|
|
5680
|
-
return
|
|
5681
|
-
}, X = function(
|
|
5682
|
-
return
|
|
5683
|
-
},
|
|
5684
|
-
if (f && !g.query.definitions.some(ae) && (D.method = "GET"), le ||
|
|
5679
|
+
var ae = function(De) {
|
|
5680
|
+
return De.kind === "OperationDefinition" && De.operation === "mutation";
|
|
5681
|
+
}, X = function(De) {
|
|
5682
|
+
return De.kind === "OperationDefinition" && De.operation === "subscription";
|
|
5683
|
+
}, me = X(hs(g.query)), le = fs(["defer"], g.query);
|
|
5684
|
+
if (f && !g.query.definitions.some(ae) && (D.method = "GET"), le || me) {
|
|
5685
5685
|
D.headers = D.headers || {};
|
|
5686
5686
|
var we = "multipart/mixed;";
|
|
5687
|
-
|
|
5687
|
+
me && le && globalThis.__DEV__ !== !1 && ke.warn(41), me ? we += "boundary=graphql;subscriptionSpec=1.0,application/json" : le && (we += "deferSpec=20220824,application/json"), D.headers.accept = we;
|
|
5688
5688
|
}
|
|
5689
5689
|
if (D.method === "GET") {
|
|
5690
5690
|
var ve = $w(b, $), _e = ve.newURI, de = ve.parseError;
|
|
@@ -5694,22 +5694,22 @@ var Yg = Vn(function() {
|
|
|
5694
5694
|
} else
|
|
5695
5695
|
try {
|
|
5696
5696
|
D.body = Ec($, "Payload");
|
|
5697
|
-
} catch (
|
|
5698
|
-
return ac(
|
|
5697
|
+
} catch (De) {
|
|
5698
|
+
return ac(De);
|
|
5699
5699
|
}
|
|
5700
|
-
return new bt(function(
|
|
5700
|
+
return new bt(function(De) {
|
|
5701
5701
|
var Oe = n || Vn(function() {
|
|
5702
5702
|
return fetch;
|
|
5703
|
-
}) || Yg, $e =
|
|
5704
|
-
return Oe(b, D).then(function(
|
|
5705
|
-
var
|
|
5706
|
-
g.setContext({ response:
|
|
5707
|
-
var Pe = (
|
|
5708
|
-
return Pe !== null && /^multipart\/mixed/i.test(Pe) ? n2(
|
|
5703
|
+
}) || Yg, $e = De.next.bind(De);
|
|
5704
|
+
return Oe(b, D).then(function(pe) {
|
|
5705
|
+
var Ne;
|
|
5706
|
+
g.setContext({ response: pe });
|
|
5707
|
+
var Pe = (Ne = pe.headers) === null || Ne === void 0 ? void 0 : Ne.get("content-type");
|
|
5708
|
+
return Pe !== null && /^multipart\/mixed/i.test(Pe) ? n2(pe, $e) : Lw(g)(pe).then($e);
|
|
5709
5709
|
}).then(function() {
|
|
5710
|
-
K = void 0,
|
|
5711
|
-
}).catch(function(
|
|
5712
|
-
K = void 0, s2(
|
|
5710
|
+
K = void 0, De.complete();
|
|
5711
|
+
}).catch(function(pe) {
|
|
5712
|
+
K = void 0, s2(pe, De);
|
|
5713
5713
|
}), function() {
|
|
5714
5714
|
K && K.abort();
|
|
5715
5715
|
};
|
|
@@ -6143,7 +6143,7 @@ function ms(r) {
|
|
|
6143
6143
|
return e ? e[0] : r;
|
|
6144
6144
|
}
|
|
6145
6145
|
function pd(r, e, t) {
|
|
6146
|
-
return
|
|
6146
|
+
return $t(e) ? Kt(e) ? e.every(function(n) {
|
|
6147
6147
|
return pd(r, n, t);
|
|
6148
6148
|
}) : r.selections.every(function(n) {
|
|
6149
6149
|
if (Ni(n) && La(n, t)) {
|
|
@@ -6154,7 +6154,7 @@ function pd(r, e, t) {
|
|
|
6154
6154
|
}) : !1;
|
|
6155
6155
|
}
|
|
6156
6156
|
function pa(r) {
|
|
6157
|
-
return
|
|
6157
|
+
return $t(r) && !wt(r) && !Kt(r);
|
|
6158
6158
|
}
|
|
6159
6159
|
function x2() {
|
|
6160
6160
|
return new Mi();
|
|
@@ -6349,9 +6349,9 @@ var uc = /* @__PURE__ */ Object.create(null), Rf = function() {
|
|
|
6349
6349
|
return t;
|
|
6350
6350
|
var i = /* @__PURE__ */ new Set([n]);
|
|
6351
6351
|
i.forEach(function(a) {
|
|
6352
|
-
wt(a) && (t[a.__ref] = !0),
|
|
6352
|
+
wt(a) && (t[a.__ref] = !0), $t(a) && Object.keys(a).forEach(function(u) {
|
|
6353
6353
|
var c = a[u];
|
|
6354
|
-
|
|
6354
|
+
$t(c) && i.add(c);
|
|
6355
6355
|
});
|
|
6356
6356
|
});
|
|
6357
6357
|
}
|
|
@@ -6501,7 +6501,7 @@ function Pp(r) {
|
|
|
6501
6501
|
}), t;
|
|
6502
6502
|
}
|
|
6503
6503
|
function O2(r) {
|
|
6504
|
-
return
|
|
6504
|
+
return $t(r) ? Kt(r) ? r.slice(0) : F({ __proto__: Object.getPrototypeOf(r) }, r) : r;
|
|
6505
6505
|
}
|
|
6506
6506
|
var sv = (
|
|
6507
6507
|
/** @class */
|
|
@@ -6510,16 +6510,16 @@ var sv = (
|
|
|
6510
6510
|
this.known = new (zc ? WeakSet : Set)(), this.pool = new qi(bs), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
|
|
6511
6511
|
}
|
|
6512
6512
|
return r.prototype.isKnown = function(e) {
|
|
6513
|
-
return
|
|
6513
|
+
return $t(e) && this.known.has(e);
|
|
6514
6514
|
}, r.prototype.pass = function(e) {
|
|
6515
|
-
if (
|
|
6515
|
+
if ($t(e)) {
|
|
6516
6516
|
var t = O2(e);
|
|
6517
6517
|
return this.passes.set(t, e), t;
|
|
6518
6518
|
}
|
|
6519
6519
|
return e;
|
|
6520
6520
|
}, r.prototype.admit = function(e) {
|
|
6521
6521
|
var t = this;
|
|
6522
|
-
if (
|
|
6522
|
+
if ($t(e)) {
|
|
6523
6523
|
var n = this.passes.get(e);
|
|
6524
6524
|
if (n)
|
|
6525
6525
|
return n;
|
|
@@ -6669,18 +6669,18 @@ var T2 = (
|
|
|
6669
6669
|
field: P,
|
|
6670
6670
|
variables: u.variables,
|
|
6671
6671
|
from: i
|
|
6672
|
-
}, u),
|
|
6673
|
-
R === void 0 ? Xc.added(P) || (y = g.merge(y, (M = {}, M[
|
|
6672
|
+
}, u), L = pi(P);
|
|
6673
|
+
R === void 0 ? Xc.added(P) || (y = g.merge(y, (M = {}, M[L] = "Can't find field '".concat(P.name.value, "' on ").concat(wt(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), M))) : Kt(R) ? R.length > 0 && (R = b(t.executeSubSelectedArray({
|
|
6674
6674
|
field: P,
|
|
6675
6675
|
array: R,
|
|
6676
6676
|
enclosingRef: a,
|
|
6677
6677
|
context: u
|
|
6678
|
-
}),
|
|
6678
|
+
}), L)) : P.selectionSet ? R != null && (R = b(t.executeSelectionSet({
|
|
6679
6679
|
selectionSet: P.selectionSet,
|
|
6680
6680
|
objectOrReference: R,
|
|
6681
6681
|
enclosingRef: wt(R) ? R : a,
|
|
6682
6682
|
context: u
|
|
6683
|
-
}),
|
|
6683
|
+
}), L)) : u.canonizeResults && (R = t.canon.pass(R)), R !== void 0 && m.push((O = {}, O[L] = R, O));
|
|
6684
6684
|
} else {
|
|
6685
6685
|
var D = Qo(P, u.lookupFragment);
|
|
6686
6686
|
if (!D && P.kind === Ie.FRAGMENT_SPREAD)
|
|
@@ -6730,7 +6730,7 @@ function A2(r, e, t) {
|
|
|
6730
6730
|
if (!e.selectionSet) {
|
|
6731
6731
|
var n = /* @__PURE__ */ new Set([t]);
|
|
6732
6732
|
n.forEach(function(i) {
|
|
6733
|
-
|
|
6733
|
+
$t(i) && (ke(
|
|
6734
6734
|
!wt(i),
|
|
6735
6735
|
11,
|
|
6736
6736
|
_2(r, i),
|
|
@@ -6883,7 +6883,7 @@ function _a(r, e, t) {
|
|
|
6883
6883
|
}, r));
|
|
6884
6884
|
}
|
|
6885
6885
|
function i_(r) {
|
|
6886
|
-
return
|
|
6886
|
+
return $t(r) ? Kt(r) ? r.map(i_) : Mp(Object.keys(r).sort(), function(e) {
|
|
6887
6887
|
return _a(r, e);
|
|
6888
6888
|
}) : r;
|
|
6889
6889
|
}
|
|
@@ -7130,7 +7130,7 @@ function s_(r) {
|
|
|
7130
7130
|
return function(t, n) {
|
|
7131
7131
|
if (Kt(t) || Kt(n))
|
|
7132
7132
|
throw Kr(9);
|
|
7133
|
-
if (
|
|
7133
|
+
if ($t(t) && $t(n)) {
|
|
7134
7134
|
var i = r.getFieldValue(t, "__typename"), a = r.getFieldValue(n, "__typename"), u = i && a && i !== a;
|
|
7135
7135
|
if (u)
|
|
7136
7136
|
return n;
|
|
@@ -7178,17 +7178,17 @@ var R2 = (
|
|
|
7178
7178
|
}
|
|
7179
7179
|
if (globalThis.__DEV__ !== !1 && !m.overwrite) {
|
|
7180
7180
|
var M = /* @__PURE__ */ Object.create(null);
|
|
7181
|
-
w.forEach(function(
|
|
7182
|
-
|
|
7181
|
+
w.forEach(function(L) {
|
|
7182
|
+
L.selectionSet && (M[L.name.value] = !0);
|
|
7183
7183
|
});
|
|
7184
|
-
var O = function(
|
|
7185
|
-
return M[ms(
|
|
7186
|
-
}, R = function(
|
|
7187
|
-
var D = _ && _.map.get(
|
|
7184
|
+
var O = function(L) {
|
|
7185
|
+
return M[ms(L)] === !0;
|
|
7186
|
+
}, R = function(L) {
|
|
7187
|
+
var D = _ && _.map.get(L);
|
|
7188
7188
|
return !!(D && D.info && D.info.merge);
|
|
7189
7189
|
};
|
|
7190
|
-
Object.keys(A).forEach(function(
|
|
7191
|
-
O(
|
|
7190
|
+
Object.keys(A).forEach(function(L) {
|
|
7191
|
+
O(L) && !R(L) && M2(T, A, L, m.store);
|
|
7192
7192
|
});
|
|
7193
7193
|
}
|
|
7194
7194
|
e.merge(b, A);
|
|
@@ -7217,15 +7217,15 @@ var R2 = (
|
|
|
7217
7217
|
u,
|
|
7218
7218
|
p
|
|
7219
7219
|
).forEach(function(P, M) {
|
|
7220
|
-
var O, R = pi(M),
|
|
7221
|
-
if (y.add(M),
|
|
7220
|
+
var O, R = pi(M), L = i[R];
|
|
7221
|
+
if (y.add(M), L !== void 0) {
|
|
7222
7222
|
var D = f.getStoreFieldName({
|
|
7223
7223
|
typename: p,
|
|
7224
7224
|
fieldName: M.name.value,
|
|
7225
7225
|
field: M,
|
|
7226
7226
|
variables: P.variables
|
|
7227
7227
|
}), $ = yv(c, D), K = t.processFieldValue(
|
|
7228
|
-
|
|
7228
|
+
L,
|
|
7229
7229
|
M,
|
|
7230
7230
|
// Reset context.clientOnly and context.deferred to their default
|
|
7231
7231
|
// values before processing nested selection sets.
|
|
@@ -8135,7 +8135,7 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8135
8135
|
}), this.fetchCancelFns.clear();
|
|
8136
8136
|
}, r.prototype.mutate = function(e) {
|
|
8137
8137
|
return Zi(this, arguments, void 0, function(t) {
|
|
8138
|
-
var n, i, a, u, c, f, h, p = t.mutation, m = t.variables, y = t.optimisticResponse, g = t.updateQueries, b = t.refetchQueries, A = b === void 0 ? [] : b, _ = t.awaitRefetchQueries, w = _ === void 0 ? !1 : _, T = t.update, P = t.onQueryUpdated, M = t.fetchPolicy, O = M === void 0 ? ((f = this.defaultOptions.mutate) === null || f === void 0 ? void 0 : f.fetchPolicy) || "network-only" : M, R = t.errorPolicy,
|
|
8138
|
+
var n, i, a, u, c, f, h, p = t.mutation, m = t.variables, y = t.optimisticResponse, g = t.updateQueries, b = t.refetchQueries, A = b === void 0 ? [] : b, _ = t.awaitRefetchQueries, w = _ === void 0 ? !1 : _, T = t.update, P = t.onQueryUpdated, M = t.fetchPolicy, O = M === void 0 ? ((f = this.defaultOptions.mutate) === null || f === void 0 ? void 0 : f.fetchPolicy) || "network-only" : M, R = t.errorPolicy, L = R === void 0 ? ((h = this.defaultOptions.mutate) === null || h === void 0 ? void 0 : h.errorPolicy) || "none" : R, D = t.keepRootFields, $ = t.context;
|
|
8139
8139
|
return Xi(this, function(K) {
|
|
8140
8140
|
switch (K.label) {
|
|
8141
8141
|
case 0:
|
|
@@ -8153,26 +8153,26 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8153
8153
|
document: p,
|
|
8154
8154
|
variables: m,
|
|
8155
8155
|
fetchPolicy: O,
|
|
8156
|
-
errorPolicy:
|
|
8156
|
+
errorPolicy: L,
|
|
8157
8157
|
context: $,
|
|
8158
8158
|
updateQueries: g,
|
|
8159
8159
|
update: T,
|
|
8160
8160
|
keepRootFields: D
|
|
8161
8161
|
}), this.broadcastQueries(), c = this, [2, new Promise(function(ae, X) {
|
|
8162
|
-
return sc(c.getObservableFromLink(p, F(F({}, $), { optimisticResponse: u ? y : void 0 }), m, {}, !1), function(
|
|
8163
|
-
if (To(
|
|
8162
|
+
return sc(c.getObservableFromLink(p, F(F({}, $), { optimisticResponse: u ? y : void 0 }), m, {}, !1), function(me) {
|
|
8163
|
+
if (To(me) && L === "none")
|
|
8164
8164
|
throw new wn({
|
|
8165
|
-
graphQLErrors: xc(
|
|
8165
|
+
graphQLErrors: xc(me)
|
|
8166
8166
|
});
|
|
8167
8167
|
a && (a.loading = !1, a.error = null);
|
|
8168
|
-
var le = F({},
|
|
8169
|
-
return typeof A == "function" && (A = A(le)),
|
|
8168
|
+
var le = F({}, me);
|
|
8169
|
+
return typeof A == "function" && (A = A(le)), L === "ignore" && To(le) && delete le.errors, c.markMutationResult({
|
|
8170
8170
|
mutationId: n,
|
|
8171
8171
|
result: le,
|
|
8172
8172
|
document: p,
|
|
8173
8173
|
variables: m,
|
|
8174
8174
|
fetchPolicy: O,
|
|
8175
|
-
errorPolicy:
|
|
8175
|
+
errorPolicy: L,
|
|
8176
8176
|
context: $,
|
|
8177
8177
|
update: T,
|
|
8178
8178
|
updateQueries: g,
|
|
@@ -8183,17 +8183,17 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8183
8183
|
keepRootFields: D
|
|
8184
8184
|
});
|
|
8185
8185
|
}).subscribe({
|
|
8186
|
-
next: function(
|
|
8187
|
-
c.broadcastQueries(), (!("hasNext" in
|
|
8186
|
+
next: function(me) {
|
|
8187
|
+
c.broadcastQueries(), (!("hasNext" in me) || me.hasNext === !1) && ae(F(F({}, me), { data: c.maskOperation({
|
|
8188
8188
|
document: p,
|
|
8189
|
-
data:
|
|
8189
|
+
data: me.data,
|
|
8190
8190
|
fetchPolicy: O,
|
|
8191
8191
|
id: n
|
|
8192
8192
|
}) }));
|
|
8193
8193
|
},
|
|
8194
|
-
error: function(
|
|
8195
|
-
a && (a.loading = !1, a.error =
|
|
8196
|
-
networkError:
|
|
8194
|
+
error: function(me) {
|
|
8195
|
+
a && (a.loading = !1, a.error = me), u && c.cache.removeOptimistic(n), c.broadcastQueries(), X(me instanceof wn ? me : new wn({
|
|
8196
|
+
networkError: me
|
|
8197
8197
|
}));
|
|
8198
8198
|
}
|
|
8199
8199
|
});
|
|
@@ -8421,7 +8421,7 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8421
8421
|
else if (cw(c)) {
|
|
8422
8422
|
var f = Ai(t.transform(c));
|
|
8423
8423
|
i.set(f, da(c)), a.set(f, !1);
|
|
8424
|
-
} else
|
|
8424
|
+
} else $t(c) && c.query && u.add(c);
|
|
8425
8425
|
}), this.queries.forEach(function(c, f) {
|
|
8426
8426
|
var h = c.observableQuery, p = c.document;
|
|
8427
8427
|
if (h) {
|
|
@@ -8596,8 +8596,8 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8596
8596
|
return D.sources;
|
|
8597
8597
|
})), R = !0;
|
|
8598
8598
|
else {
|
|
8599
|
-
var
|
|
8600
|
-
R =
|
|
8599
|
+
var L = P(T.variables);
|
|
8600
|
+
R = L.fromLink, O = new Ds(L.sources);
|
|
8601
8601
|
}
|
|
8602
8602
|
return O.promise.then(M, M), {
|
|
8603
8603
|
concast: O,
|
|
@@ -8693,7 +8693,7 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8693
8693
|
O === void 0 && (O = e.networkStatus || pt.loading);
|
|
8694
8694
|
var R = M.result;
|
|
8695
8695
|
globalThis.__DEV__ !== !1 && !p && !Et(R, {}) && o_(M.missing);
|
|
8696
|
-
var
|
|
8696
|
+
var L = function(D) {
|
|
8697
8697
|
return bt.of(F({ data: D, loading: ma(O), networkStatus: O }, M.complete ? null : { partial: !0 }));
|
|
8698
8698
|
};
|
|
8699
8699
|
return R && i.getDocumentInfo(a).hasForcedResolvers ? i.localState.runResolvers({
|
|
@@ -8703,8 +8703,8 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8703
8703
|
variables: u,
|
|
8704
8704
|
onlyRunForcedResolvers: !0
|
|
8705
8705
|
}).then(function(D) {
|
|
8706
|
-
return
|
|
8707
|
-
}) : h === "none" && O === pt.refetch && Array.isArray(M.missing) ?
|
|
8706
|
+
return L(D.data || void 0);
|
|
8707
|
+
}) : h === "none" && O === pt.refetch && Array.isArray(M.missing) ? L(void 0) : L(R);
|
|
8708
8708
|
}, _ = c === "no-cache" ? 0 : n === pt.refetch && f !== "merge" ? 1 : 2, w = function() {
|
|
8709
8709
|
return i.getResultsFromLink(e, _, {
|
|
8710
8710
|
query: a,
|
|
@@ -8962,7 +8962,7 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8962
8962
|
var t = this, n;
|
|
8963
8963
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache)
|
|
8964
8964
|
throw Kr(16);
|
|
8965
|
-
var i = e.uri, a = e.credentials, u = e.headers, c = e.cache, f = e.documentTransform, h = e.ssrMode, p = h === void 0 ? !1 : h, m = e.ssrForceFetchDelay, y = m === void 0 ? 0 : m, g = e.connectToDevTools, b = e.queryDeduplication, A = b === void 0 ? !0 : b, _ = e.defaultOptions, w = e.defaultContext, T = e.assumeImmutableResults, P = T === void 0 ? c.assumeImmutableResults : T, M = e.resolvers, O = e.typeDefs, R = e.fragmentMatcher,
|
|
8965
|
+
var i = e.uri, a = e.credentials, u = e.headers, c = e.cache, f = e.documentTransform, h = e.ssrMode, p = h === void 0 ? !1 : h, m = e.ssrForceFetchDelay, y = m === void 0 ? 0 : m, g = e.connectToDevTools, b = e.queryDeduplication, A = b === void 0 ? !0 : b, _ = e.defaultOptions, w = e.defaultContext, T = e.assumeImmutableResults, P = T === void 0 ? c.assumeImmutableResults : T, M = e.resolvers, O = e.typeDefs, R = e.fragmentMatcher, L = e.name, D = e.version, $ = e.devtools, K = e.dataMasking, ae = e.link;
|
|
8966
8966
|
ae || (ae = i ? new Bw({ uri: i, credentials: a, headers: u }) : Zr.empty()), this.link = ae, this.cache = c, this.disableNetworkFetches = p || y > 0, this.queryDeduplication = A, this.defaultOptions = _ || /* @__PURE__ */ Object.create(null), this.typeDefs = O, this.devtoolsConfig = F(F({}, $), { enabled: (n = $?.enabled) !== null && n !== void 0 ? n : g }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), y && setTimeout(function() {
|
|
8967
8967
|
return t.disableNetworkFetches = !1;
|
|
8968
8968
|
}, y), this.watchQuery = this.watchQuery.bind(this), this.query = this.query.bind(this), this.mutate = this.mutate.bind(this), this.watchFragment = this.watchFragment.bind(this), this.resetStore = this.resetStore.bind(this), this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this), this.version = Zd, this.localState = new j2({
|
|
@@ -8980,7 +8980,7 @@ var q2 = Object.prototype.hasOwnProperty, wv = /* @__PURE__ */ Object.create(nul
|
|
|
8980
8980
|
ssrMode: p,
|
|
8981
8981
|
dataMasking: !!K,
|
|
8982
8982
|
clientAwareness: {
|
|
8983
|
-
name:
|
|
8983
|
+
name: L,
|
|
8984
8984
|
version: D
|
|
8985
8985
|
},
|
|
8986
8986
|
localState: this.localState,
|
|
@@ -9628,9 +9628,9 @@ function cN(r, e) {
|
|
|
9628
9628
|
var f = F(F({}, u), { skip: !n.current }), h = tN(c, f), p = h.obsQueryFields, m = h.result, y = h.client, g = h.resultData, b = h.observable, A = h.onQueryExecuted, _ = b.options.initialFetchPolicy || _d(f.defaultOptions, y.defaultOptions), w = tt.useReducer(function(D) {
|
|
9629
9629
|
return D + 1;
|
|
9630
9630
|
}, 0)[1], T = tt.useMemo(function() {
|
|
9631
|
-
for (var D = {}, $ = function(
|
|
9632
|
-
var le = p[
|
|
9633
|
-
D[
|
|
9631
|
+
for (var D = {}, $ = function(me) {
|
|
9632
|
+
var le = p[me];
|
|
9633
|
+
D[me] = function() {
|
|
9634
9634
|
return n.current || (n.current = /* @__PURE__ */ Object.create(null), w()), le.apply(this, arguments);
|
|
9635
9635
|
};
|
|
9636
9636
|
}, K = 0, ae = uN; K < ae.length; K++) {
|
|
@@ -9661,12 +9661,12 @@ function cN(r, e) {
|
|
|
9661
9661
|
bd(function() {
|
|
9662
9662
|
R.current = O;
|
|
9663
9663
|
});
|
|
9664
|
-
var
|
|
9664
|
+
var L = tt.useCallback(function() {
|
|
9665
9665
|
for (var D = [], $ = 0; $ < arguments.length; $++)
|
|
9666
9666
|
D[$] = arguments[$];
|
|
9667
9667
|
return R.current.apply(R, D);
|
|
9668
9668
|
}, []);
|
|
9669
|
-
return [
|
|
9669
|
+
return [L, M];
|
|
9670
9670
|
}
|
|
9671
9671
|
function lN(r, e, t, n, i, a) {
|
|
9672
9672
|
var u = i.query || n, c = v_(t, u, i, !1)(e), f = e.reobserveAsConcast(Up(e, t, i, c));
|
|
@@ -9712,13 +9712,13 @@ function fN(r, e) {
|
|
|
9712
9712
|
bd(function() {
|
|
9713
9713
|
M.current = p;
|
|
9714
9714
|
});
|
|
9715
|
-
var O = m_(tt.useCallback(function(
|
|
9715
|
+
var O = m_(tt.useCallback(function(L) {
|
|
9716
9716
|
if (!b)
|
|
9717
9717
|
return function() {
|
|
9718
9718
|
};
|
|
9719
9719
|
var D = !1, $ = b.__.variables, K = b.__.client, ae = b.subscribe({
|
|
9720
9720
|
next: function(X) {
|
|
9721
|
-
var
|
|
9721
|
+
var me, le;
|
|
9722
9722
|
if (!D) {
|
|
9723
9723
|
var we = {
|
|
9724
9724
|
loading: !1,
|
|
@@ -9728,7 +9728,7 @@ function fN(r, e) {
|
|
|
9728
9728
|
error: b_(X),
|
|
9729
9729
|
variables: $
|
|
9730
9730
|
};
|
|
9731
|
-
b.__.setResult(we), M.current ||
|
|
9731
|
+
b.__.setResult(we), M.current || L(), we.error ? (le = (me = w.current).onError) === null || le === void 0 || le.call(me, we.error) : w.current.onData ? w.current.onData({
|
|
9732
9732
|
client: K,
|
|
9733
9733
|
data: we
|
|
9734
9734
|
}) : w.current.onSubscriptionData && w.current.onSubscriptionData({
|
|
@@ -9738,13 +9738,13 @@ function fN(r, e) {
|
|
|
9738
9738
|
}
|
|
9739
9739
|
},
|
|
9740
9740
|
error: function(X) {
|
|
9741
|
-
var
|
|
9741
|
+
var me, le;
|
|
9742
9742
|
X = X instanceof wn ? X : new wn({ protocolErrors: [X] }), D || (b.__.setResult({
|
|
9743
9743
|
loading: !1,
|
|
9744
9744
|
data: void 0,
|
|
9745
9745
|
error: X,
|
|
9746
9746
|
variables: $
|
|
9747
|
-
}), M.current ||
|
|
9747
|
+
}), M.current || L(), (le = (me = w.current).onError) === null || le === void 0 || le.call(me, X));
|
|
9748
9748
|
},
|
|
9749
9749
|
complete: function() {
|
|
9750
9750
|
D || (w.current.onComplete ? w.current.onComplete() : w.current.onSubscriptionComplete && w.current.onSubscriptionComplete());
|
|
@@ -13919,8 +13919,8 @@ class Ye {
|
|
|
13919
13919
|
const M = A ? UN(a, u, c) : p ? jN(a) : G_(a), O = M || J_(a);
|
|
13920
13920
|
if (O)
|
|
13921
13921
|
return Ye.invalid(O);
|
|
13922
|
-
const R = A ? qv(a, u, c) : p ? Uv(a) : a, [
|
|
13923
|
-
ts:
|
|
13922
|
+
const R = A ? qv(a, u, c) : p ? Uv(a) : a, [L, D] = fc(R, h, n), $ = new Ye({
|
|
13923
|
+
ts: L,
|
|
13924
13924
|
zone: n,
|
|
13925
13925
|
o: D,
|
|
13926
13926
|
loc: i
|
|
@@ -15320,8 +15320,8 @@ var fM = _o.exports, i0;
|
|
|
15320
15320
|
function hM() {
|
|
15321
15321
|
return i0 || (i0 = 1, (function(r, e) {
|
|
15322
15322
|
(function() {
|
|
15323
|
-
var t, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, p = "__lodash_placeholder__", m = 1, y = 2, g = 4, b = 1, A = 2, _ = 1, w = 2, T = 4, P = 8, M = 16, O = 32, R = 64,
|
|
15324
|
-
["ary",
|
|
15323
|
+
var t, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, p = "__lodash_placeholder__", m = 1, y = 2, g = 4, b = 1, A = 2, _ = 1, w = 2, T = 4, P = 8, M = 16, O = 32, R = 64, L = 128, D = 256, $ = 512, K = 30, ae = "...", X = 800, me = 16, le = 1, we = 2, ve = 3, _e = 1 / 0, de = 9007199254740991, De = 17976931348623157e292, Oe = NaN, $e = 4294967295, pe = $e - 1, Ne = $e >>> 1, Pe = [
|
|
15324
|
+
["ary", L],
|
|
15325
15325
|
["bind", _],
|
|
15326
15326
|
["bindKey", w],
|
|
15327
15327
|
["curry", P],
|
|
@@ -15330,7 +15330,7 @@ function hM() {
|
|
|
15330
15330
|
["partial", O],
|
|
15331
15331
|
["partialRight", R],
|
|
15332
15332
|
["rearg", D]
|
|
15333
|
-
], Ce = "[object Arguments]", xe = "[object Array]", Ke = "[object AsyncFunction]", rt = "[object Boolean]",
|
|
15333
|
+
], Ce = "[object Arguments]", xe = "[object Array]", Ke = "[object AsyncFunction]", rt = "[object Boolean]", Re = "[object Date]", Be = "[object DOMException]", V = "[object Error]", G = "[object Function]", j = "[object GeneratorFunction]", Y = "[object Map]", te = "[object Number]", Q = "[object Null]", be = "[object Object]", je = "[object Promise]", Ve = "[object Proxy]", oe = "[object RegExp]", ge = "[object Set]", Ge = "[object String]", ot = "[object Symbol]", ut = "[object Undefined]", Ht = "[object WeakMap]", _t = "[object WeakSet]", Qt = "[object ArrayBuffer]", nr = "[object DataView]", mr = "[object Float32Array]", Rt = "[object Float64Array]", ir = "[object Int8Array]", lr = "[object Int16Array]", Ur = "[object Int32Array]", Lt = "[object Uint8Array]", Gt = "[object Uint8ClampedArray]", H = "[object Uint16Array]", J = "[object Uint32Array]", nt = /\b__p \+= '';/g, at = /\b(__p \+=) '' \+/g, ct = /(__e\(.*?\)|\b__t\)) \+\n'';/g, ze = /&(?:amp|lt|gt|quot|#39);/g, Jt = /[&<>"']/g, Tr = RegExp(ze.source), sr = RegExp(Jt.source), yr = /<%-([\s\S]+?)%>/g, On = /<%([\s\S]+?)%>/g, Zt = /<%=([\s\S]+?)%>/g, Mt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Xr = /^\w*$/, Nr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, gr = /[\\^$.*+?()[\]{}|]/g, jr = RegExp(gr.source), Rr = /^\s+/, fr = /\s/, kr = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Tn = /\{\n\/\* \[wrapped with (.+)\] \*/, oi = /,? & /, kn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, wr = /[()=,{}\[\]\/\s]/, $r = /\\(\\)?/g, Bt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Dt = /\w*$/, An = /^[-+]0x[0-9a-f]+$/i, In = /^0b[01]+$/i, cn = /^\[object .+?Constructor\]$/, mt = /^0o[0-7]+$/i, Br = /^(?:0|[1-9]\d*)$/, x = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, I = /($^)/, k = /['\n\r\u2028\u2029\\]/g, C = "\\ud800-\\udfff", U = "\\u0300-\\u036f", W = "\\ufe20-\\ufe2f", ie = "\\u20d0-\\u20ff", fe = U + W + ie, Z = "\\u2700-\\u27bf", ne = "a-z\\xdf-\\xf6\\xf8-\\xff", Le = "\\xac\\xb1\\xd7\\xf7", lt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", qt = "\\u2000-\\u206f", ln = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", mi = "A-Z\\xc0-\\xd6\\xd8-\\xde", am = "\\ufe0e\\ufe0f", om = Le + lt + qt + ln, ml = "['’]", hS = "[" + C + "]", um = "[" + om + "]", nu = "[" + fe + "]", cm = "\\d+", dS = "[" + Z + "]", lm = "[" + ne + "]", fm = "[^" + C + om + cm + Z + ne + mi + "]", yl = "\\ud83c[\\udffb-\\udfff]", pS = "(?:" + nu + "|" + yl + ")", hm = "[^" + C + "]", gl = "(?:\\ud83c[\\udde6-\\uddff]){2}", vl = "[\\ud800-\\udbff][\\udc00-\\udfff]", Qs = "[" + mi + "]", dm = "\\u200d", pm = "(?:" + lm + "|" + fm + ")", mS = "(?:" + Qs + "|" + fm + ")", mm = "(?:" + ml + "(?:d|ll|m|re|s|t|ve))?", ym = "(?:" + ml + "(?:D|LL|M|RE|S|T|VE))?", gm = pS + "?", vm = "[" + am + "]?", yS = "(?:" + dm + "(?:" + [hm, gl, vl].join("|") + ")" + vm + gm + ")*", gS = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vS = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", bm = vm + gm + yS, bS = "(?:" + [dS, gl, vl].join("|") + ")" + bm, wS = "(?:" + [hm + nu + "?", nu, gl, vl, hS].join("|") + ")", _S = RegExp(ml, "g"), xS = RegExp(nu, "g"), bl = RegExp(yl + "(?=" + yl + ")|" + wS + bm, "g"), SS = RegExp([
|
|
15334
15334
|
Qs + "?" + lm + "+" + mm + "(?=" + [um, Qs, "$"].join("|") + ")",
|
|
15335
15335
|
mS + "+" + ym + "(?=" + [um, Qs + pm, "$"].join("|") + ")",
|
|
15336
15336
|
Qs + "?" + pm + "+" + mm,
|
|
@@ -15371,9 +15371,9 @@ function hM() {
|
|
|
15371
15371
|
"parseInt",
|
|
15372
15372
|
"setTimeout"
|
|
15373
15373
|
], kS = -1, Ut = {};
|
|
15374
|
-
Ut[mr] = Ut[Rt] = Ut[ir] = Ut[lr] = Ut[Ur] = Ut[Lt] = Ut[Gt] = Ut[H] = Ut[J] = !0, Ut[Ce] = Ut[xe] = Ut[Qt] = Ut[rt] = Ut[nr] = Ut[
|
|
15374
|
+
Ut[mr] = Ut[Rt] = Ut[ir] = Ut[lr] = Ut[Ur] = Ut[Lt] = Ut[Gt] = Ut[H] = Ut[J] = !0, Ut[Ce] = Ut[xe] = Ut[Qt] = Ut[rt] = Ut[nr] = Ut[Re] = Ut[V] = Ut[G] = Ut[Y] = Ut[te] = Ut[be] = Ut[oe] = Ut[ge] = Ut[Ge] = Ut[Ht] = !1;
|
|
15375
15375
|
var Ft = {};
|
|
15376
|
-
Ft[Ce] = Ft[xe] = Ft[Qt] = Ft[nr] = Ft[rt] = Ft[
|
|
15376
|
+
Ft[Ce] = Ft[xe] = Ft[Qt] = Ft[nr] = Ft[rt] = Ft[Re] = Ft[mr] = Ft[Rt] = Ft[ir] = Ft[lr] = Ft[Ur] = Ft[Y] = Ft[te] = Ft[be] = Ft[oe] = Ft[ge] = Ft[Ge] = Ft[ot] = Ft[Lt] = Ft[Gt] = Ft[H] = Ft[J] = !0, Ft[V] = Ft[G] = Ft[Ht] = !1;
|
|
15377
15377
|
var AS = {
|
|
15378
15378
|
// Latin-1 Supplement block.
|
|
15379
15379
|
À: "A",
|
|
@@ -15646,7 +15646,7 @@ function hM() {
|
|
|
15646
15646
|
return !0;
|
|
15647
15647
|
return !1;
|
|
15648
15648
|
}
|
|
15649
|
-
function
|
|
15649
|
+
function Vt(B, re) {
|
|
15650
15650
|
for (var ee = -1, Fe = B == null ? 0 : B.length, Ze = Array(Fe); ++ee < Fe; )
|
|
15651
15651
|
Ze[ee] = re(B[ee], ee, B);
|
|
15652
15652
|
return Ze;
|
|
@@ -15744,7 +15744,7 @@ function hM() {
|
|
|
15744
15744
|
return Fe;
|
|
15745
15745
|
}
|
|
15746
15746
|
function VS(B, re) {
|
|
15747
|
-
return
|
|
15747
|
+
return Vt(re, function(ee) {
|
|
15748
15748
|
return [ee, B[ee]];
|
|
15749
15749
|
});
|
|
15750
15750
|
}
|
|
@@ -15757,7 +15757,7 @@ function hM() {
|
|
|
15757
15757
|
};
|
|
15758
15758
|
}
|
|
15759
15759
|
function Il(B, re) {
|
|
15760
|
-
return
|
|
15760
|
+
return Vt(re, function(ee) {
|
|
15761
15761
|
return B[ee];
|
|
15762
15762
|
});
|
|
15763
15763
|
}
|
|
@@ -15964,7 +15964,7 @@ function hM() {
|
|
|
15964
15964
|
return s;
|
|
15965
15965
|
}
|
|
15966
15966
|
function kE() {
|
|
15967
|
-
var s = this.__wrapped__.value(), o = this.__dir__, l = Xe(s), d = o < 0, v = l ? s.length : 0, E = U1(0, v, this.__views__), N = E.start,
|
|
15967
|
+
var s = this.__wrapped__.value(), o = this.__dir__, l = Xe(s), d = o < 0, v = l ? s.length : 0, E = U1(0, v, this.__views__), N = E.start, q = E.end, z = q - N, se = d ? q : N - 1, ue = this.__iteratees__, he = ue.length, Te = 0, Ue = Mr(z, this.__takeCount__);
|
|
15968
15968
|
if (!l || !d && v == z && Ue == z)
|
|
15969
15969
|
return my(s, this.__actions__);
|
|
15970
15970
|
var He = [];
|
|
@@ -16116,14 +16116,14 @@ function hM() {
|
|
|
16116
16116
|
}
|
|
16117
16117
|
Jn.prototype.clear = zE, Jn.prototype.delete = HE, Jn.prototype.get = QE, Jn.prototype.has = GE, Jn.prototype.set = JE;
|
|
16118
16118
|
function Hm(s, o) {
|
|
16119
|
-
var l = Xe(s), d = !l && Is(s), v = !l && !d && Ji(s), E = !l && !d && !v && sa(s), N = l || d || v || E,
|
|
16119
|
+
var l = Xe(s), d = !l && Is(s), v = !l && !d && Ji(s), E = !l && !d && !v && sa(s), N = l || d || v || E, q = N ? Al(s.length, sE) : [], z = q.length;
|
|
16120
16120
|
for (var se in s)
|
|
16121
16121
|
(o || It.call(s, se)) && !(N && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
16122
16122
|
(se == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
16123
16123
|
v && (se == "offset" || se == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
16124
16124
|
E && (se == "buffer" || se == "byteLength" || se == "byteOffset") || // Skip index properties.
|
|
16125
|
-
_i(se, z))) &&
|
|
16126
|
-
return
|
|
16125
|
+
_i(se, z))) && q.push(se);
|
|
16126
|
+
return q;
|
|
16127
16127
|
}
|
|
16128
16128
|
function Qm(s) {
|
|
16129
16129
|
var o = s.length;
|
|
@@ -16176,26 +16176,26 @@ function hM() {
|
|
|
16176
16176
|
return s === s && (l !== t && (s = s <= l ? s : l), o !== t && (s = s >= o ? s : o)), s;
|
|
16177
16177
|
}
|
|
16178
16178
|
function Mn(s, o, l, d, v, E) {
|
|
16179
|
-
var N,
|
|
16179
|
+
var N, q = o & m, z = o & y, se = o & g;
|
|
16180
16180
|
if (l && (N = v ? l(s, d, v, E) : l(s)), N !== t)
|
|
16181
16181
|
return N;
|
|
16182
16182
|
if (!Yt(s))
|
|
16183
16183
|
return s;
|
|
16184
16184
|
var ue = Xe(s);
|
|
16185
16185
|
if (ue) {
|
|
16186
|
-
if (N = $1(s), !
|
|
16186
|
+
if (N = $1(s), !q)
|
|
16187
16187
|
return en(s, N);
|
|
16188
16188
|
} else {
|
|
16189
16189
|
var he = Dr(s), Te = he == G || he == j;
|
|
16190
16190
|
if (Ji(s))
|
|
16191
|
-
return vy(s,
|
|
16191
|
+
return vy(s, q);
|
|
16192
16192
|
if (he == be || he == Ce || Te && !v) {
|
|
16193
|
-
if (N = z || Te ? {} : Ly(s), !
|
|
16193
|
+
if (N = z || Te ? {} : Ly(s), !q)
|
|
16194
16194
|
return z ? C1(s, XE(N, s)) : I1(s, Gm(N, s));
|
|
16195
16195
|
} else {
|
|
16196
16196
|
if (!Ft[he])
|
|
16197
16197
|
return v ? s : {};
|
|
16198
|
-
N = B1(s, he,
|
|
16198
|
+
N = B1(s, he, q);
|
|
16199
16199
|
}
|
|
16200
16200
|
}
|
|
16201
16201
|
E || (E = new Jn());
|
|
@@ -16237,12 +16237,12 @@ function hM() {
|
|
|
16237
16237
|
}, o);
|
|
16238
16238
|
}
|
|
16239
16239
|
function Ka(s, o, l, d) {
|
|
16240
|
-
var v = -1, E = iu, N = !0,
|
|
16241
|
-
if (!
|
|
16240
|
+
var v = -1, E = iu, N = !0, q = s.length, z = [], se = o.length;
|
|
16241
|
+
if (!q)
|
|
16242
16242
|
return z;
|
|
16243
|
-
l && (o =
|
|
16243
|
+
l && (o = Vt(o, hn(l))), d ? (E = xl, N = !1) : o.length >= i && (E = Wa, N = !1, o = new Es(o));
|
|
16244
16244
|
e:
|
|
16245
|
-
for (; ++v <
|
|
16245
|
+
for (; ++v < q; ) {
|
|
16246
16246
|
var ue = s[v], he = l == null ? ue : l(ue);
|
|
16247
16247
|
if (ue = d || ue !== 0 ? ue : 0, N && he === he) {
|
|
16248
16248
|
for (var Te = se; Te--; )
|
|
@@ -16263,8 +16263,8 @@ function hM() {
|
|
|
16263
16263
|
function xu(s, o, l) {
|
|
16264
16264
|
for (var d = -1, v = s.length; ++d < v; ) {
|
|
16265
16265
|
var E = s[d], N = o(E);
|
|
16266
|
-
if (N != null && (
|
|
16267
|
-
var
|
|
16266
|
+
if (N != null && (q === t ? N === N && !pn(N) : l(N, q)))
|
|
16267
|
+
var q = N, z = E;
|
|
16268
16268
|
}
|
|
16269
16269
|
return z;
|
|
16270
16270
|
}
|
|
@@ -16283,8 +16283,8 @@ function hM() {
|
|
|
16283
16283
|
function Ir(s, o, l, d, v) {
|
|
16284
16284
|
var E = -1, N = s.length;
|
|
16285
16285
|
for (l || (l = W1), v || (v = []); ++E < N; ) {
|
|
16286
|
-
var
|
|
16287
|
-
o > 0 && l(
|
|
16286
|
+
var q = s[E];
|
|
16287
|
+
o > 0 && l(q) ? o > 1 ? Ir(q, o - 1, l, d, v) : Bi(v, q) : d || (v[v.length] = q);
|
|
16288
16288
|
}
|
|
16289
16289
|
return v;
|
|
16290
16290
|
}
|
|
@@ -16326,18 +16326,18 @@ function hM() {
|
|
|
16326
16326
|
return s >= Mr(o, l) && s < br(o, l);
|
|
16327
16327
|
}
|
|
16328
16328
|
function jl(s, o, l) {
|
|
16329
|
-
for (var d = l ? xl : iu, v = s[0].length, E = s.length, N = E,
|
|
16329
|
+
for (var d = l ? xl : iu, v = s[0].length, E = s.length, N = E, q = ee(E), z = 1 / 0, se = []; N--; ) {
|
|
16330
16330
|
var ue = s[N];
|
|
16331
|
-
N && o && (ue =
|
|
16331
|
+
N && o && (ue = Vt(ue, hn(o))), z = Mr(ue.length, z), q[N] = !l && (o || v >= 120 && ue.length >= 120) ? new Es(N && ue) : t;
|
|
16332
16332
|
}
|
|
16333
16333
|
ue = s[0];
|
|
16334
|
-
var he = -1, Te =
|
|
16334
|
+
var he = -1, Te = q[0];
|
|
16335
16335
|
e:
|
|
16336
16336
|
for (; ++he < v && se.length < z; ) {
|
|
16337
16337
|
var Ue = ue[he], He = o ? o(Ue) : Ue;
|
|
16338
16338
|
if (Ue = l || Ue !== 0 ? Ue : 0, !(Te ? Wa(Te, He) : d(se, He, l))) {
|
|
16339
16339
|
for (N = E; --N; ) {
|
|
16340
|
-
var it =
|
|
16340
|
+
var it = q[N];
|
|
16341
16341
|
if (!(it ? Wa(it, He) : d(s[N], He, l)))
|
|
16342
16342
|
continue e;
|
|
16343
16343
|
}
|
|
@@ -16363,13 +16363,13 @@ function hM() {
|
|
|
16363
16363
|
return Xt(s) && Vr(s) == Qt;
|
|
16364
16364
|
}
|
|
16365
16365
|
function u1(s) {
|
|
16366
|
-
return Xt(s) && Vr(s) ==
|
|
16366
|
+
return Xt(s) && Vr(s) == Re;
|
|
16367
16367
|
}
|
|
16368
16368
|
function Xa(s, o, l, d, v) {
|
|
16369
16369
|
return s === o ? !0 : s == null || o == null || !Xt(s) && !Xt(o) ? s !== s && o !== o : c1(s, o, l, d, Xa, v);
|
|
16370
16370
|
}
|
|
16371
16371
|
function c1(s, o, l, d, v, E) {
|
|
16372
|
-
var N = Xe(s),
|
|
16372
|
+
var N = Xe(s), q = Xe(o), z = N ? xe : Dr(s), se = q ? xe : Dr(o);
|
|
16373
16373
|
z = z == Ce ? be : z, se = se == Ce ? be : se;
|
|
16374
16374
|
var ue = z == be, he = se == be, Te = z == se;
|
|
16375
16375
|
if (Te && Ji(s)) {
|
|
@@ -16396,14 +16396,14 @@ function hM() {
|
|
|
16396
16396
|
if (s == null)
|
|
16397
16397
|
return !E;
|
|
16398
16398
|
for (s = Nt(s); v--; ) {
|
|
16399
|
-
var
|
|
16400
|
-
if (N &&
|
|
16399
|
+
var q = l[v];
|
|
16400
|
+
if (N && q[2] ? q[1] !== s[q[0]] : !(q[0] in s))
|
|
16401
16401
|
return !1;
|
|
16402
16402
|
}
|
|
16403
16403
|
for (; ++v < E; ) {
|
|
16404
|
-
|
|
16405
|
-
var z =
|
|
16406
|
-
if (N &&
|
|
16404
|
+
q = l[v];
|
|
16405
|
+
var z = q[0], se = s[z], ue = q[1];
|
|
16406
|
+
if (N && q[2]) {
|
|
16407
16407
|
if (se === t && !(z in s))
|
|
16408
16408
|
return !1;
|
|
16409
16409
|
} else {
|
|
@@ -16476,21 +16476,21 @@ function hM() {
|
|
|
16476
16476
|
if (v || (v = new Jn()), Yt(E))
|
|
16477
16477
|
m1(s, o, N, l, Eu, d, v);
|
|
16478
16478
|
else {
|
|
16479
|
-
var
|
|
16480
|
-
|
|
16479
|
+
var q = d ? d(cf(s, N), E, N + "", s, o, v) : t;
|
|
16480
|
+
q === t && (q = E), Dl(s, N, q);
|
|
16481
16481
|
}
|
|
16482
16482
|
}, rn);
|
|
16483
16483
|
}
|
|
16484
16484
|
function m1(s, o, l, d, v, E, N) {
|
|
16485
|
-
var
|
|
16485
|
+
var q = cf(s, l), z = cf(o, l), se = N.get(z);
|
|
16486
16486
|
if (se) {
|
|
16487
16487
|
Dl(s, l, se);
|
|
16488
16488
|
return;
|
|
16489
16489
|
}
|
|
16490
|
-
var ue = E ? E(
|
|
16490
|
+
var ue = E ? E(q, z, l + "", s, o, N) : t, he = ue === t;
|
|
16491
16491
|
if (he) {
|
|
16492
16492
|
var Te = Xe(z), Ue = !Te && Ji(z), He = !Te && !Ue && sa(z);
|
|
16493
|
-
ue = z, Te || Ue || He ? Xe(
|
|
16493
|
+
ue = z, Te || Ue || He ? Xe(q) ? ue = q : ar(q) ? ue = en(q) : Ue ? (he = !1, ue = vy(z, !0)) : He ? (he = !1, ue = by(z, !0)) : ue = [] : io(z) || Is(z) ? (ue = q, Is(q) ? ue = mg(q) : (!Yt(q) || xi(q)) && (ue = Ly(z))) : he = !1;
|
|
16494
16494
|
}
|
|
16495
16495
|
he && (N.set(z, ue), v(ue, z, d, E, N), N.delete(z)), Dl(s, l, ue);
|
|
16496
16496
|
}
|
|
@@ -16500,15 +16500,15 @@ function hM() {
|
|
|
16500
16500
|
return o += o < 0 ? l : 0, _i(o, l) ? s[o] : t;
|
|
16501
16501
|
}
|
|
16502
16502
|
function uy(s, o, l) {
|
|
16503
|
-
o.length ? o =
|
|
16503
|
+
o.length ? o = Vt(o, function(E) {
|
|
16504
16504
|
return Xe(E) ? function(N) {
|
|
16505
16505
|
return Ts(N, E.length === 1 ? E[0] : E);
|
|
16506
16506
|
} : E;
|
|
16507
16507
|
}) : o = [nn];
|
|
16508
16508
|
var d = -1;
|
|
16509
|
-
o =
|
|
16510
|
-
var v = iy(s, function(E, N,
|
|
16511
|
-
var z =
|
|
16509
|
+
o = Vt(o, hn(We()));
|
|
16510
|
+
var v = iy(s, function(E, N, q) {
|
|
16511
|
+
var z = Vt(o, function(se) {
|
|
16512
16512
|
return se(E);
|
|
16513
16513
|
});
|
|
16514
16514
|
return { criteria: z, index: ++d, value: E };
|
|
@@ -16524,8 +16524,8 @@ function hM() {
|
|
|
16524
16524
|
}
|
|
16525
16525
|
function cy(s, o, l) {
|
|
16526
16526
|
for (var d = -1, v = o.length, E = {}; ++d < v; ) {
|
|
16527
|
-
var N = o[d],
|
|
16528
|
-
l(
|
|
16527
|
+
var N = o[d], q = Ts(s, N);
|
|
16528
|
+
l(q, N) && eo(E, Qi(N, s), q);
|
|
16529
16529
|
}
|
|
16530
16530
|
return E;
|
|
16531
16531
|
}
|
|
@@ -16535,10 +16535,10 @@ function hM() {
|
|
|
16535
16535
|
};
|
|
16536
16536
|
}
|
|
16537
16537
|
function Wl(s, o, l, d) {
|
|
16538
|
-
var v = d ? $S : Gs, E = -1, N = o.length,
|
|
16539
|
-
for (s === o && (o = en(o)), l && (
|
|
16540
|
-
for (var z = 0, se = o[E], ue = l ? l(se) : se; (z = v(
|
|
16541
|
-
|
|
16538
|
+
var v = d ? $S : Gs, E = -1, N = o.length, q = s;
|
|
16539
|
+
for (s === o && (o = en(o)), l && (q = Vt(s, hn(l))); ++E < N; )
|
|
16540
|
+
for (var z = 0, se = o[E], ue = l ? l(se) : se; (z = v(q, ue, z, d)) > -1; )
|
|
16541
|
+
q !== s && pu.call(q, z, 1), pu.call(s, z, 1);
|
|
16542
16542
|
return s;
|
|
16543
16543
|
}
|
|
16544
16544
|
function ly(s, o) {
|
|
@@ -16582,15 +16582,15 @@ function hM() {
|
|
|
16582
16582
|
if (!Yt(s))
|
|
16583
16583
|
return s;
|
|
16584
16584
|
o = Qi(o, s);
|
|
16585
|
-
for (var v = -1, E = o.length, N = E - 1,
|
|
16585
|
+
for (var v = -1, E = o.length, N = E - 1, q = s; q != null && ++v < E; ) {
|
|
16586
16586
|
var z = li(o[v]), se = l;
|
|
16587
16587
|
if (z === "__proto__" || z === "constructor" || z === "prototype")
|
|
16588
16588
|
return s;
|
|
16589
16589
|
if (v != N) {
|
|
16590
|
-
var ue =
|
|
16591
|
-
se = d ? d(ue, z,
|
|
16590
|
+
var ue = q[z];
|
|
16591
|
+
se = d ? d(ue, z, q) : t, se === t && (se = Yt(ue) ? ue : _i(o[v + 1]) ? [] : {});
|
|
16592
16592
|
}
|
|
16593
|
-
Ya(
|
|
16593
|
+
Ya(q, z, se), q = q[z];
|
|
16594
16594
|
}
|
|
16595
16595
|
return s;
|
|
16596
16596
|
}
|
|
@@ -16622,7 +16622,7 @@ function hM() {
|
|
|
16622
16622
|
}
|
|
16623
16623
|
function Ou(s, o, l) {
|
|
16624
16624
|
var d = 0, v = s == null ? d : s.length;
|
|
16625
|
-
if (typeof o == "number" && o === o && v <=
|
|
16625
|
+
if (typeof o == "number" && o === o && v <= Ne) {
|
|
16626
16626
|
for (; d < v; ) {
|
|
16627
16627
|
var E = d + v >>> 1, N = s[E];
|
|
16628
16628
|
N !== null && !pn(N) && (l ? N <= o : N < o) ? d = E + 1 : v = E;
|
|
@@ -16636,20 +16636,20 @@ function hM() {
|
|
|
16636
16636
|
if (E === 0)
|
|
16637
16637
|
return 0;
|
|
16638
16638
|
o = l(o);
|
|
16639
|
-
for (var N = o !== o,
|
|
16639
|
+
for (var N = o !== o, q = o === null, z = pn(o), se = o === t; v < E; ) {
|
|
16640
16640
|
var ue = gu((v + E) / 2), he = l(s[ue]), Te = he !== t, Ue = he === null, He = he === he, it = pn(he);
|
|
16641
16641
|
if (N)
|
|
16642
16642
|
var Qe = d || He;
|
|
16643
|
-
else se ? Qe = He && (d || Te) :
|
|
16643
|
+
else se ? Qe = He && (d || Te) : q ? Qe = He && Te && (d || !Ue) : z ? Qe = He && Te && !Ue && (d || !it) : Ue || it ? Qe = !1 : Qe = d ? he <= o : he < o;
|
|
16644
16644
|
Qe ? v = ue + 1 : E = ue;
|
|
16645
16645
|
}
|
|
16646
|
-
return Mr(E,
|
|
16646
|
+
return Mr(E, pe);
|
|
16647
16647
|
}
|
|
16648
16648
|
function hy(s, o) {
|
|
16649
16649
|
for (var l = -1, d = s.length, v = 0, E = []; ++l < d; ) {
|
|
16650
|
-
var N = s[l],
|
|
16651
|
-
if (!l || !Yn(
|
|
16652
|
-
var z =
|
|
16650
|
+
var N = s[l], q = o ? o(N) : N;
|
|
16651
|
+
if (!l || !Yn(q, z)) {
|
|
16652
|
+
var z = q;
|
|
16653
16653
|
E[v++] = N === 0 ? 0 : N;
|
|
16654
16654
|
}
|
|
16655
16655
|
}
|
|
@@ -16662,14 +16662,14 @@ function hM() {
|
|
|
16662
16662
|
if (typeof s == "string")
|
|
16663
16663
|
return s;
|
|
16664
16664
|
if (Xe(s))
|
|
16665
|
-
return
|
|
16665
|
+
return Vt(s, dn) + "";
|
|
16666
16666
|
if (pn(s))
|
|
16667
16667
|
return zm ? zm.call(s) : "";
|
|
16668
16668
|
var o = s + "";
|
|
16669
16669
|
return o == "0" && 1 / s == -_e ? "-0" : o;
|
|
16670
16670
|
}
|
|
16671
16671
|
function Hi(s, o, l) {
|
|
16672
|
-
var d = -1, v = iu, E = s.length, N = !0,
|
|
16672
|
+
var d = -1, v = iu, E = s.length, N = !0, q = [], z = q;
|
|
16673
16673
|
if (l)
|
|
16674
16674
|
N = !1, v = xl;
|
|
16675
16675
|
else if (E >= i) {
|
|
@@ -16678,7 +16678,7 @@ function hM() {
|
|
|
16678
16678
|
return au(se);
|
|
16679
16679
|
N = !1, v = Wa, z = new Es();
|
|
16680
16680
|
} else
|
|
16681
|
-
z = o ? [] :
|
|
16681
|
+
z = o ? [] : q;
|
|
16682
16682
|
e:
|
|
16683
16683
|
for (; ++d < E; ) {
|
|
16684
16684
|
var ue = s[d], he = o ? o(ue) : ue;
|
|
@@ -16686,10 +16686,10 @@ function hM() {
|
|
|
16686
16686
|
for (var Te = z.length; Te--; )
|
|
16687
16687
|
if (z[Te] === he)
|
|
16688
16688
|
continue e;
|
|
16689
|
-
o && z.push(he),
|
|
16690
|
-
} else v(z, he, l) || (z !==
|
|
16689
|
+
o && z.push(he), q.push(ue);
|
|
16690
|
+
} else v(z, he, l) || (z !== q && z.push(he), q.push(ue));
|
|
16691
16691
|
}
|
|
16692
|
-
return
|
|
16692
|
+
return q;
|
|
16693
16693
|
}
|
|
16694
16694
|
function Gl(s, o) {
|
|
16695
16695
|
return o = Qi(o, s), s = $y(s, o), s == null || delete s[li(Fn(o))];
|
|
@@ -16713,14 +16713,14 @@ function hM() {
|
|
|
16713
16713
|
if (d < 2)
|
|
16714
16714
|
return d ? Hi(s[0]) : [];
|
|
16715
16715
|
for (var v = -1, E = ee(d); ++v < d; )
|
|
16716
|
-
for (var N = s[v],
|
|
16717
|
-
|
|
16716
|
+
for (var N = s[v], q = -1; ++q < d; )
|
|
16717
|
+
q != v && (E[v] = Ka(E[v] || N, s[q], o, l));
|
|
16718
16718
|
return Hi(Ir(E, 1), o, l);
|
|
16719
16719
|
}
|
|
16720
16720
|
function yy(s, o, l) {
|
|
16721
16721
|
for (var d = -1, v = s.length, E = o.length, N = {}; ++d < v; ) {
|
|
16722
|
-
var
|
|
16723
|
-
l(N, s[d],
|
|
16722
|
+
var q = d < E ? o[d] : t;
|
|
16723
|
+
l(N, s[d], q);
|
|
16724
16724
|
}
|
|
16725
16725
|
return N;
|
|
16726
16726
|
}
|
|
@@ -16768,19 +16768,19 @@ function hM() {
|
|
|
16768
16768
|
}
|
|
16769
16769
|
function wy(s, o) {
|
|
16770
16770
|
if (s !== o) {
|
|
16771
|
-
var l = s !== t, d = s === null, v = s === s, E = pn(s), N = o !== t,
|
|
16772
|
-
if (!
|
|
16771
|
+
var l = s !== t, d = s === null, v = s === s, E = pn(s), N = o !== t, q = o === null, z = o === o, se = pn(o);
|
|
16772
|
+
if (!q && !se && !E && s > o || E && N && z && !q && !se || d && N && z || !l && z || !v)
|
|
16773
16773
|
return 1;
|
|
16774
|
-
if (!d && !E && !se && s < o || se && l && v && !d && !E ||
|
|
16774
|
+
if (!d && !E && !se && s < o || se && l && v && !d && !E || q && l && v || !N && v || !z)
|
|
16775
16775
|
return -1;
|
|
16776
16776
|
}
|
|
16777
16777
|
return 0;
|
|
16778
16778
|
}
|
|
16779
16779
|
function A1(s, o, l) {
|
|
16780
|
-
for (var d = -1, v = s.criteria, E = o.criteria, N = v.length,
|
|
16780
|
+
for (var d = -1, v = s.criteria, E = o.criteria, N = v.length, q = l.length; ++d < N; ) {
|
|
16781
16781
|
var z = wy(v[d], E[d]);
|
|
16782
16782
|
if (z) {
|
|
16783
|
-
if (d >=
|
|
16783
|
+
if (d >= q)
|
|
16784
16784
|
return z;
|
|
16785
16785
|
var se = l[d];
|
|
16786
16786
|
return z * (se == "desc" ? -1 : 1);
|
|
@@ -16789,20 +16789,20 @@ function hM() {
|
|
|
16789
16789
|
return s.index - o.index;
|
|
16790
16790
|
}
|
|
16791
16791
|
function _y(s, o, l, d) {
|
|
16792
|
-
for (var v = -1, E = s.length, N = l.length,
|
|
16793
|
-
ue[
|
|
16792
|
+
for (var v = -1, E = s.length, N = l.length, q = -1, z = o.length, se = br(E - N, 0), ue = ee(z + se), he = !d; ++q < z; )
|
|
16793
|
+
ue[q] = o[q];
|
|
16794
16794
|
for (; ++v < N; )
|
|
16795
16795
|
(he || v < E) && (ue[l[v]] = s[v]);
|
|
16796
16796
|
for (; se--; )
|
|
16797
|
-
ue[
|
|
16797
|
+
ue[q++] = s[v++];
|
|
16798
16798
|
return ue;
|
|
16799
16799
|
}
|
|
16800
16800
|
function xy(s, o, l, d) {
|
|
16801
|
-
for (var v = -1, E = s.length, N = -1,
|
|
16801
|
+
for (var v = -1, E = s.length, N = -1, q = l.length, z = -1, se = o.length, ue = br(E - q, 0), he = ee(ue + se), Te = !d; ++v < ue; )
|
|
16802
16802
|
he[v] = s[v];
|
|
16803
16803
|
for (var Ue = v; ++z < se; )
|
|
16804
16804
|
he[Ue + z] = o[z];
|
|
16805
|
-
for (; ++N <
|
|
16805
|
+
for (; ++N < q; )
|
|
16806
16806
|
(Te || v < E) && (he[Ue + l[N]] = s[v++]);
|
|
16807
16807
|
return he;
|
|
16808
16808
|
}
|
|
@@ -16816,8 +16816,8 @@ function hM() {
|
|
|
16816
16816
|
var v = !l;
|
|
16817
16817
|
l || (l = {});
|
|
16818
16818
|
for (var E = -1, N = o.length; ++E < N; ) {
|
|
16819
|
-
var
|
|
16820
|
-
z === t && (z = s[
|
|
16819
|
+
var q = o[E], z = d ? d(l[q], s[q], q, l, s) : t;
|
|
16820
|
+
z === t && (z = s[q]), v ? vi(l, q, z) : Ya(l, q, z);
|
|
16821
16821
|
}
|
|
16822
16822
|
return l;
|
|
16823
16823
|
}
|
|
@@ -16837,8 +16837,8 @@ function hM() {
|
|
|
16837
16837
|
return st(function(o, l) {
|
|
16838
16838
|
var d = -1, v = l.length, E = v > 1 ? l[v - 1] : t, N = v > 2 ? l[2] : t;
|
|
16839
16839
|
for (E = s.length > 3 && typeof E == "function" ? (v--, E) : t, N && Wr(l[0], l[1], N) && (E = v < 3 ? t : E, v = 1), o = Nt(o); ++d < v; ) {
|
|
16840
|
-
var
|
|
16841
|
-
|
|
16840
|
+
var q = l[d];
|
|
16841
|
+
q && s(o, q, d, E);
|
|
16842
16842
|
}
|
|
16843
16843
|
return o;
|
|
16844
16844
|
});
|
|
@@ -16856,8 +16856,8 @@ function hM() {
|
|
|
16856
16856
|
}
|
|
16857
16857
|
function Ey(s) {
|
|
16858
16858
|
return function(o, l, d) {
|
|
16859
|
-
for (var v = -1, E = Nt(o), N = d(o),
|
|
16860
|
-
var z = N[s ?
|
|
16859
|
+
for (var v = -1, E = Nt(o), N = d(o), q = N.length; q--; ) {
|
|
16860
|
+
var z = N[s ? q : ++v];
|
|
16861
16861
|
if (l(E[z], z, E) === !1)
|
|
16862
16862
|
break;
|
|
16863
16863
|
}
|
|
@@ -16912,8 +16912,8 @@ function hM() {
|
|
|
16912
16912
|
function N1(s, o, l) {
|
|
16913
16913
|
var d = to(s);
|
|
16914
16914
|
function v() {
|
|
16915
|
-
for (var E = arguments.length, N = ee(E),
|
|
16916
|
-
N[
|
|
16915
|
+
for (var E = arguments.length, N = ee(E), q = E, z = ia(v); q--; )
|
|
16916
|
+
N[q] = arguments[q];
|
|
16917
16917
|
var se = E < 3 && N[0] !== z && N[E - 1] !== z ? [] : Vi(N, z);
|
|
16918
16918
|
if (E -= se.length, E < l)
|
|
16919
16919
|
return Cy(
|
|
@@ -16938,8 +16938,8 @@ function hM() {
|
|
|
16938
16938
|
var v = Nt(o);
|
|
16939
16939
|
if (!tn(o)) {
|
|
16940
16940
|
var E = We(l, 3);
|
|
16941
|
-
o = _r(o), l = function(
|
|
16942
|
-
return E(v[
|
|
16941
|
+
o = _r(o), l = function(q) {
|
|
16942
|
+
return E(v[q], q, v);
|
|
16943
16943
|
};
|
|
16944
16944
|
}
|
|
16945
16945
|
var N = s(o, l, d);
|
|
@@ -16958,8 +16958,8 @@ function hM() {
|
|
|
16958
16958
|
}
|
|
16959
16959
|
for (d = N ? d : l; ++d < l; ) {
|
|
16960
16960
|
E = o[d];
|
|
16961
|
-
var
|
|
16962
|
-
z && uf(z[0]) && z[1] == (
|
|
16961
|
+
var q = Nu(E), z = q == "wrapper" ? nf(E) : t;
|
|
16962
|
+
z && uf(z[0]) && z[1] == (L | P | O | D) && !z[4].length && z[9] == 1 ? N = N[Nu(z[0])].apply(N, z[3]) : N = E.length == 1 && uf(E) ? N[q]() : N.thru(E);
|
|
16963
16963
|
}
|
|
16964
16964
|
return function() {
|
|
16965
16965
|
var se = arguments, ue = se[0];
|
|
@@ -16971,8 +16971,8 @@ function hM() {
|
|
|
16971
16971
|
};
|
|
16972
16972
|
});
|
|
16973
16973
|
}
|
|
16974
|
-
function Au(s, o, l, d, v, E, N,
|
|
16975
|
-
var ue = o &
|
|
16974
|
+
function Au(s, o, l, d, v, E, N, q, z, se) {
|
|
16975
|
+
var ue = o & L, he = o & _, Te = o & w, Ue = o & (P | M), He = o & $, it = Te ? t : to(s);
|
|
16976
16976
|
function Qe() {
|
|
16977
16977
|
for (var ft = arguments.length, yt = ee(ft), mn = ft; mn--; )
|
|
16978
16978
|
yt[mn] = arguments[mn];
|
|
@@ -16988,13 +16988,13 @@ function hM() {
|
|
|
16988
16988
|
l,
|
|
16989
16989
|
yt,
|
|
16990
16990
|
or,
|
|
16991
|
-
|
|
16991
|
+
q,
|
|
16992
16992
|
z,
|
|
16993
16993
|
se - ft
|
|
16994
16994
|
);
|
|
16995
16995
|
}
|
|
16996
16996
|
var Kn = he ? l : this, Ei = Te ? Kn[s] : s;
|
|
16997
|
-
return ft = yt.length,
|
|
16997
|
+
return ft = yt.length, q ? yt = Z1(yt, q) : He && ft > 1 && yt.reverse(), ue && z < ft && (yt.length = z), this && this !== Ar && this instanceof Qe && (Ei = it || to(Ei)), Ei.apply(Kn, yt);
|
|
16998
16998
|
}
|
|
16999
16999
|
return Qe;
|
|
17000
17000
|
}
|
|
@@ -17018,7 +17018,7 @@ function hM() {
|
|
|
17018
17018
|
}
|
|
17019
17019
|
function Xl(s) {
|
|
17020
17020
|
return wi(function(o) {
|
|
17021
|
-
return o =
|
|
17021
|
+
return o = Vt(o, hn(We())), st(function(l) {
|
|
17022
17022
|
var d = this;
|
|
17023
17023
|
return s(o, function(v) {
|
|
17024
17024
|
return fn(v, d, l);
|
|
@@ -17037,10 +17037,10 @@ function hM() {
|
|
|
17037
17037
|
function R1(s, o, l, d) {
|
|
17038
17038
|
var v = o & _, E = to(s);
|
|
17039
17039
|
function N() {
|
|
17040
|
-
for (var
|
|
17040
|
+
for (var q = -1, z = arguments.length, se = -1, ue = d.length, he = ee(ue + z), Te = this && this !== Ar && this instanceof N ? E : s; ++se < ue; )
|
|
17041
17041
|
he[se] = d[se];
|
|
17042
17042
|
for (; z--; )
|
|
17043
|
-
he[se++] = arguments[++
|
|
17043
|
+
he[se++] = arguments[++q];
|
|
17044
17044
|
return fn(Te, v ? l : this, he);
|
|
17045
17045
|
}
|
|
17046
17046
|
return N;
|
|
@@ -17055,7 +17055,7 @@ function hM() {
|
|
|
17055
17055
|
return typeof o == "string" && typeof l == "string" || (o = Ln(o), l = Ln(l)), s(o, l);
|
|
17056
17056
|
};
|
|
17057
17057
|
}
|
|
17058
|
-
function Cy(s, o, l, d, v, E, N,
|
|
17058
|
+
function Cy(s, o, l, d, v, E, N, q, z, se) {
|
|
17059
17059
|
var ue = o & P, he = ue ? N : t, Te = ue ? t : N, Ue = ue ? E : t, He = ue ? t : E;
|
|
17060
17060
|
o |= ue ? O : R, o &= ~(ue ? R : O), o & T || (o &= -4);
|
|
17061
17061
|
var it = [
|
|
@@ -17066,7 +17066,7 @@ function hM() {
|
|
|
17066
17066
|
he,
|
|
17067
17067
|
He,
|
|
17068
17068
|
Te,
|
|
17069
|
-
|
|
17069
|
+
q,
|
|
17070
17070
|
z,
|
|
17071
17071
|
se
|
|
17072
17072
|
], Qe = l.apply(t, it);
|
|
@@ -17091,12 +17091,12 @@ function hM() {
|
|
|
17091
17091
|
return l == Y ? Cl(o) : l == ge ? KS(o) : VS(o, s(o));
|
|
17092
17092
|
};
|
|
17093
17093
|
}
|
|
17094
|
-
function bi(s, o, l, d, v, E, N,
|
|
17094
|
+
function bi(s, o, l, d, v, E, N, q) {
|
|
17095
17095
|
var z = o & w;
|
|
17096
17096
|
if (!z && typeof s != "function")
|
|
17097
17097
|
throw new Nn(u);
|
|
17098
17098
|
var se = d ? d.length : 0;
|
|
17099
|
-
if (se || (o &= -97, d = v = t), N = N === t ? N : br(et(N), 0),
|
|
17099
|
+
if (se || (o &= -97, d = v = t), N = N === t ? N : br(et(N), 0), q = q === t ? q : et(q), se -= v ? v.length : 0, o & R) {
|
|
17100
17100
|
var ue = d, he = v;
|
|
17101
17101
|
d = v = t;
|
|
17102
17102
|
}
|
|
@@ -17110,11 +17110,11 @@ function hM() {
|
|
|
17110
17110
|
he,
|
|
17111
17111
|
E,
|
|
17112
17112
|
N,
|
|
17113
|
-
|
|
17113
|
+
q
|
|
17114
17114
|
];
|
|
17115
|
-
if (Te && J1(Ue, Te), s = Ue[0], o = Ue[1], l = Ue[2], d = Ue[3], v = Ue[4],
|
|
17115
|
+
if (Te && J1(Ue, Te), s = Ue[0], o = Ue[1], l = Ue[2], d = Ue[3], v = Ue[4], q = Ue[9] = Ue[9] === t ? z ? 0 : s.length : br(Ue[9] - se, 0), !q && o & (P | M) && (o &= -25), !o || o == _)
|
|
17116
17116
|
var He = P1(s, o, l);
|
|
17117
|
-
else o == P || o == M ? He = N1(s, o,
|
|
17117
|
+
else o == P || o == M ? He = N1(s, o, q) : (o == O || o == (_ | O)) && !v.length ? He = R1(s, o, l, d) : He = Au.apply(t, Ue);
|
|
17118
17118
|
var it = Te ? fy : By;
|
|
17119
17119
|
return Vy(it(He, Ue), s, o);
|
|
17120
17120
|
}
|
|
@@ -17128,14 +17128,14 @@ function hM() {
|
|
|
17128
17128
|
return io(s) ? t : s;
|
|
17129
17129
|
}
|
|
17130
17130
|
function My(s, o, l, d, v, E) {
|
|
17131
|
-
var N = l & b,
|
|
17132
|
-
if (
|
|
17131
|
+
var N = l & b, q = s.length, z = o.length;
|
|
17132
|
+
if (q != z && !(N && z > q))
|
|
17133
17133
|
return !1;
|
|
17134
17134
|
var se = E.get(s), ue = E.get(o);
|
|
17135
17135
|
if (se && ue)
|
|
17136
17136
|
return se == o && ue == s;
|
|
17137
17137
|
var he = -1, Te = !0, Ue = l & A ? new Es() : t;
|
|
17138
|
-
for (E.set(s, o), E.set(o, s); ++he <
|
|
17138
|
+
for (E.set(s, o), E.set(o, s); ++he < q; ) {
|
|
17139
17139
|
var He = s[he], it = o[he];
|
|
17140
17140
|
if (d)
|
|
17141
17141
|
var Qe = N ? d(it, He, he, o, s, E) : d(He, it, he, s, o, E);
|
|
@@ -17169,7 +17169,7 @@ function hM() {
|
|
|
17169
17169
|
case Qt:
|
|
17170
17170
|
return !(s.byteLength != o.byteLength || !E(new hu(s), new hu(o)));
|
|
17171
17171
|
case rt:
|
|
17172
|
-
case
|
|
17172
|
+
case Re:
|
|
17173
17173
|
case te:
|
|
17174
17174
|
return Yn(+s, +o);
|
|
17175
17175
|
case V:
|
|
@@ -17178,16 +17178,16 @@ function hM() {
|
|
|
17178
17178
|
case Ge:
|
|
17179
17179
|
return s == o + "";
|
|
17180
17180
|
case Y:
|
|
17181
|
-
var
|
|
17181
|
+
var q = Cl;
|
|
17182
17182
|
case ge:
|
|
17183
17183
|
var z = d & b;
|
|
17184
|
-
if (
|
|
17184
|
+
if (q || (q = au), s.size != o.size && !z)
|
|
17185
17185
|
return !1;
|
|
17186
17186
|
var se = N.get(s);
|
|
17187
17187
|
if (se)
|
|
17188
17188
|
return se == o;
|
|
17189
17189
|
d |= A, N.set(s, o);
|
|
17190
|
-
var ue = My(
|
|
17190
|
+
var ue = My(q(s), q(o), d, v, E, N);
|
|
17191
17191
|
return N.delete(s), ue;
|
|
17192
17192
|
case ot:
|
|
17193
17193
|
if (Ja)
|
|
@@ -17196,11 +17196,11 @@ function hM() {
|
|
|
17196
17196
|
return !1;
|
|
17197
17197
|
}
|
|
17198
17198
|
function L1(s, o, l, d, v, E) {
|
|
17199
|
-
var N = l & b,
|
|
17199
|
+
var N = l & b, q = tf(s), z = q.length, se = tf(o), ue = se.length;
|
|
17200
17200
|
if (z != ue && !N)
|
|
17201
17201
|
return !1;
|
|
17202
17202
|
for (var he = z; he--; ) {
|
|
17203
|
-
var Te =
|
|
17203
|
+
var Te = q[he];
|
|
17204
17204
|
if (!(N ? Te in o : It.call(o, Te)))
|
|
17205
17205
|
return !1;
|
|
17206
17206
|
}
|
|
@@ -17210,7 +17210,7 @@ function hM() {
|
|
|
17210
17210
|
var it = !0;
|
|
17211
17211
|
E.set(s, o), E.set(o, s);
|
|
17212
17212
|
for (var Qe = N; ++he < z; ) {
|
|
17213
|
-
Te =
|
|
17213
|
+
Te = q[he];
|
|
17214
17214
|
var ft = s[Te], yt = o[Te];
|
|
17215
17215
|
if (d)
|
|
17216
17216
|
var mn = N ? d(yt, ft, Te, o, s, E) : d(ft, yt, Te, s, o, E);
|
|
@@ -17352,7 +17352,7 @@ function hM() {
|
|
|
17352
17352
|
case Qt:
|
|
17353
17353
|
return Zl(s);
|
|
17354
17354
|
case rt:
|
|
17355
|
-
case
|
|
17355
|
+
case Re:
|
|
17356
17356
|
return new d(+s);
|
|
17357
17357
|
case nr:
|
|
17358
17358
|
return O1(s, l);
|
|
@@ -17443,16 +17443,16 @@ function hM() {
|
|
|
17443
17443
|
return o;
|
|
17444
17444
|
}
|
|
17445
17445
|
function J1(s, o) {
|
|
17446
|
-
var l = s[1], d = o[1], v = l | d, E = v < (_ | w |
|
|
17446
|
+
var l = s[1], d = o[1], v = l | d, E = v < (_ | w | L), N = d == L && l == P || d == L && l == D && s[7].length <= o[8] || d == (L | D) && o[7].length <= o[8] && l == P;
|
|
17447
17447
|
if (!(E || N))
|
|
17448
17448
|
return s;
|
|
17449
17449
|
d & _ && (s[2] = o[2], v |= l & _ ? 0 : T);
|
|
17450
|
-
var
|
|
17451
|
-
if (
|
|
17450
|
+
var q = o[3];
|
|
17451
|
+
if (q) {
|
|
17452
17452
|
var z = s[3];
|
|
17453
|
-
s[3] = z ? _y(z,
|
|
17453
|
+
s[3] = z ? _y(z, q, o[4]) : q, s[4] = z ? Vi(s[3], p) : o[4];
|
|
17454
17454
|
}
|
|
17455
|
-
return
|
|
17455
|
+
return q = o[5], q && (z = s[5], s[5] = z ? xy(z, q, o[6]) : q, s[6] = z ? Vi(s[5], p) : o[6]), q = o[7], q && (s[7] = q), d & L && (s[8] = s[8] == null ? o[8] : Mr(s[8], o[8])), s[9] == null && (s[9] = o[9]), s[0] = o[0], s[1] = v, s;
|
|
17456
17456
|
}
|
|
17457
17457
|
function Y1(s) {
|
|
17458
17458
|
var o = [];
|
|
@@ -17469,9 +17469,9 @@ function hM() {
|
|
|
17469
17469
|
for (var d = arguments, v = -1, E = br(d.length - o, 0), N = ee(E); ++v < E; )
|
|
17470
17470
|
N[v] = d[o + v];
|
|
17471
17471
|
v = -1;
|
|
17472
|
-
for (var
|
|
17473
|
-
|
|
17474
|
-
return
|
|
17472
|
+
for (var q = ee(o + 1); ++v < o; )
|
|
17473
|
+
q[v] = d[v];
|
|
17474
|
+
return q[o] = l(N), fn(s, this, q);
|
|
17475
17475
|
};
|
|
17476
17476
|
}
|
|
17477
17477
|
function $y(s, o) {
|
|
@@ -17498,7 +17498,7 @@ function hM() {
|
|
|
17498
17498
|
function Wy(s) {
|
|
17499
17499
|
var o = 0, l = 0;
|
|
17500
17500
|
return function() {
|
|
17501
|
-
var d = gE(), v =
|
|
17501
|
+
var d = gE(), v = me - (d - l);
|
|
17502
17502
|
if (l = d, v > 0) {
|
|
17503
17503
|
if (++o >= X)
|
|
17504
17504
|
return arguments[0];
|
|
@@ -17651,13 +17651,13 @@ function hM() {
|
|
|
17651
17651
|
return o ? Dn(s, 0, -1) : [];
|
|
17652
17652
|
}
|
|
17653
17653
|
var yO = st(function(s) {
|
|
17654
|
-
var o =
|
|
17654
|
+
var o = Vt(s, Yl);
|
|
17655
17655
|
return o.length && o[0] === s[0] ? jl(o) : [];
|
|
17656
17656
|
}), gO = st(function(s) {
|
|
17657
|
-
var o = Fn(s), l =
|
|
17657
|
+
var o = Fn(s), l = Vt(s, Yl);
|
|
17658
17658
|
return o === Fn(l) ? o = t : l.pop(), l.length && l[0] === s[0] ? jl(l, We(o, 2)) : [];
|
|
17659
17659
|
}), vO = st(function(s) {
|
|
17660
|
-
var o = Fn(s), l =
|
|
17660
|
+
var o = Fn(s), l = Vt(s, Yl);
|
|
17661
17661
|
return o = typeof o == "function" ? o : t, o && l.pop(), l.length && l[0] === s[0] ? jl(l, t, o) : [];
|
|
17662
17662
|
});
|
|
17663
17663
|
function bO(s, o) {
|
|
@@ -17689,7 +17689,7 @@ function hM() {
|
|
|
17689
17689
|
}
|
|
17690
17690
|
var OO = wi(function(s, o) {
|
|
17691
17691
|
var l = s == null ? 0 : s.length, d = Fl(s, o);
|
|
17692
|
-
return ly(s,
|
|
17692
|
+
return ly(s, Vt(o, function(v) {
|
|
17693
17693
|
return _i(v, l) ? +v : v;
|
|
17694
17694
|
}).sort(wy)), d;
|
|
17695
17695
|
});
|
|
@@ -17790,14 +17790,14 @@ function hM() {
|
|
|
17790
17790
|
if (ar(l))
|
|
17791
17791
|
return o = br(l.length, o), !0;
|
|
17792
17792
|
}), Al(o, function(l) {
|
|
17793
|
-
return
|
|
17793
|
+
return Vt(s, Ol(l));
|
|
17794
17794
|
});
|
|
17795
17795
|
}
|
|
17796
17796
|
function Zy(s, o) {
|
|
17797
17797
|
if (!(s && s.length))
|
|
17798
17798
|
return [];
|
|
17799
17799
|
var l = hf(s);
|
|
17800
|
-
return o == null ? l :
|
|
17800
|
+
return o == null ? l : Vt(l, function(d) {
|
|
17801
17801
|
return fn(o, t, d);
|
|
17802
17802
|
});
|
|
17803
17803
|
}
|
|
@@ -17928,7 +17928,7 @@ function hM() {
|
|
|
17928
17928
|
vi(s, l, o);
|
|
17929
17929
|
});
|
|
17930
17930
|
function Fu(s, o) {
|
|
17931
|
-
var l = Xe(s) ?
|
|
17931
|
+
var l = Xe(s) ? Vt : iy;
|
|
17932
17932
|
return l(s, We(o, 3));
|
|
17933
17933
|
}
|
|
17934
17934
|
function xT(s, o, l, d) {
|
|
@@ -17993,7 +17993,7 @@ function hM() {
|
|
|
17993
17993
|
};
|
|
17994
17994
|
}
|
|
17995
17995
|
function rg(s, o, l) {
|
|
17996
|
-
return o = l ? t : o, o = s && o == null ? s.length : o, bi(s,
|
|
17996
|
+
return o = l ? t : o, o = s && o == null ? s.length : o, bi(s, L, t, t, t, t, o);
|
|
17997
17997
|
}
|
|
17998
17998
|
function ng(s, o) {
|
|
17999
17999
|
var l;
|
|
@@ -18029,7 +18029,7 @@ function hM() {
|
|
|
18029
18029
|
return d.placeholder = ag.placeholder, d;
|
|
18030
18030
|
}
|
|
18031
18031
|
function og(s, o, l) {
|
|
18032
|
-
var d, v, E, N,
|
|
18032
|
+
var d, v, E, N, q, z, se = 0, ue = !1, he = !1, Te = !0;
|
|
18033
18033
|
if (typeof s != "function")
|
|
18034
18034
|
throw new Nn(u);
|
|
18035
18035
|
o = Ln(o) || 0, Yt(l) && (ue = !!l.leading, he = "maxWait" in l, E = he ? br(Ln(l.maxWait) || 0, o) : E, Te = "trailing" in l ? !!l.trailing : Te);
|
|
@@ -18038,7 +18038,7 @@ function hM() {
|
|
|
18038
18038
|
return d = v = t, se = or, N = s.apply(Ei, Kn), N;
|
|
18039
18039
|
}
|
|
18040
18040
|
function He(or) {
|
|
18041
|
-
return se = or,
|
|
18041
|
+
return se = or, q = no(ft, o), ue ? Ue(or) : N;
|
|
18042
18042
|
}
|
|
18043
18043
|
function it(or) {
|
|
18044
18044
|
var Kn = or - z, Ei = or - se, Tg = o - Kn;
|
|
@@ -18052,26 +18052,26 @@ function hM() {
|
|
|
18052
18052
|
var or = Lu();
|
|
18053
18053
|
if (Qe(or))
|
|
18054
18054
|
return yt(or);
|
|
18055
|
-
|
|
18055
|
+
q = no(ft, it(or));
|
|
18056
18056
|
}
|
|
18057
18057
|
function yt(or) {
|
|
18058
|
-
return
|
|
18058
|
+
return q = t, Te && d ? Ue(or) : (d = v = t, N);
|
|
18059
18059
|
}
|
|
18060
18060
|
function mn() {
|
|
18061
|
-
|
|
18061
|
+
q !== t && gy(q), se = 0, d = z = v = q = t;
|
|
18062
18062
|
}
|
|
18063
18063
|
function zr() {
|
|
18064
|
-
return
|
|
18064
|
+
return q === t ? N : yt(Lu());
|
|
18065
18065
|
}
|
|
18066
18066
|
function yn() {
|
|
18067
18067
|
var or = Lu(), Kn = Qe(or);
|
|
18068
18068
|
if (d = arguments, v = this, z = or, Kn) {
|
|
18069
|
-
if (
|
|
18069
|
+
if (q === t)
|
|
18070
18070
|
return He(z);
|
|
18071
18071
|
if (he)
|
|
18072
|
-
return gy(
|
|
18072
|
+
return gy(q), q = no(ft, o), Ue(z);
|
|
18073
18073
|
}
|
|
18074
|
-
return
|
|
18074
|
+
return q === t && (q = no(ft, o)), N;
|
|
18075
18075
|
}
|
|
18076
18076
|
return yn.cancel = mn, yn.flush = zr, yn;
|
|
18077
18077
|
}
|
|
@@ -18118,7 +18118,7 @@ function hM() {
|
|
|
18118
18118
|
return ng(2, s);
|
|
18119
18119
|
}
|
|
18120
18120
|
var qT = E1(function(s, o) {
|
|
18121
|
-
o = o.length == 1 && Xe(o[0]) ?
|
|
18121
|
+
o = o.length == 1 && Xe(o[0]) ? Vt(o[0], hn(We())) : Vt(Ir(o, 1), hn(We()));
|
|
18122
18122
|
var l = o.length;
|
|
18123
18123
|
return st(function(d) {
|
|
18124
18124
|
for (var v = -1, E = Mr(d.length, l); ++v < E; )
|
|
@@ -18330,7 +18330,7 @@ function hM() {
|
|
|
18330
18330
|
return s === 0 ? s : 0;
|
|
18331
18331
|
if (s = Ln(s), s === _e || s === -_e) {
|
|
18332
18332
|
var o = s < 0 ? -1 : 1;
|
|
18333
|
-
return o *
|
|
18333
|
+
return o * De;
|
|
18334
18334
|
}
|
|
18335
18335
|
return s === s ? s : 0;
|
|
18336
18336
|
}
|
|
@@ -18387,8 +18387,8 @@ function hM() {
|
|
|
18387
18387
|
s = Nt(s);
|
|
18388
18388
|
var l = -1, d = o.length, v = d > 2 ? o[2] : t;
|
|
18389
18389
|
for (v && Wr(o[0], o[1], v) && (d = 1); ++l < d; )
|
|
18390
|
-
for (var E = o[l], N = rn(E),
|
|
18391
|
-
var se = N[
|
|
18390
|
+
for (var E = o[l], N = rn(E), q = -1, z = N.length; ++q < z; ) {
|
|
18391
|
+
var se = N[q], ue = s[se];
|
|
18392
18392
|
(ue === t || Yn(ue, Zs[se]) && !It.call(s, se)) && (s[se] = E[se]);
|
|
18393
18393
|
}
|
|
18394
18394
|
return s;
|
|
@@ -18461,7 +18461,7 @@ function hM() {
|
|
|
18461
18461
|
if (s == null)
|
|
18462
18462
|
return l;
|
|
18463
18463
|
var d = !1;
|
|
18464
|
-
o =
|
|
18464
|
+
o = Vt(o, function(E) {
|
|
18465
18465
|
return E = Qi(E, s), d || (d = E.length > 1), E;
|
|
18466
18466
|
}), ci(s, rf(s), l), d && (l = Mn(l, m | y | g, D1));
|
|
18467
18467
|
for (var v = o.length; v--; )
|
|
@@ -18477,7 +18477,7 @@ function hM() {
|
|
|
18477
18477
|
function vg(s, o) {
|
|
18478
18478
|
if (s == null)
|
|
18479
18479
|
return {};
|
|
18480
|
-
var l =
|
|
18480
|
+
var l = Vt(rf(s), function(d) {
|
|
18481
18481
|
return [d];
|
|
18482
18482
|
});
|
|
18483
18483
|
return o = We(o), cy(s, l, function(d, v) {
|
|
@@ -18506,8 +18506,8 @@ function hM() {
|
|
|
18506
18506
|
var E = s && s.constructor;
|
|
18507
18507
|
v ? l = d ? new E() : [] : Yt(s) ? l = xi(E) ? ta(du(s)) : {} : l = {};
|
|
18508
18508
|
}
|
|
18509
|
-
return (v ? Pn : ui)(s, function(N,
|
|
18510
|
-
return o(l, N,
|
|
18509
|
+
return (v ? Pn : ui)(s, function(N, q, z) {
|
|
18510
|
+
return o(l, N, q, z);
|
|
18511
18511
|
}), l;
|
|
18512
18512
|
}
|
|
18513
18513
|
function Gk(s, o) {
|
|
@@ -18612,13 +18612,13 @@ function hM() {
|
|
|
18612
18612
|
function vA(s, o, l) {
|
|
18613
18613
|
var d = S.templateSettings;
|
|
18614
18614
|
l && Wr(s, o, l) && (o = t), s = Tt(s), o = Bu({}, o, d, Ny);
|
|
18615
|
-
var v = Bu({}, o.imports, d.imports, Ny), E = _r(v), N = Il(v, E),
|
|
18616
|
-
(o.escape || I).source + "|" + ue.source + "|" + (ue === Zt ?
|
|
18615
|
+
var v = Bu({}, o.imports, d.imports, Ny), E = _r(v), N = Il(v, E), q, z, se = 0, ue = o.interpolate || I, he = "__p += '", Te = Pl(
|
|
18616
|
+
(o.escape || I).source + "|" + ue.source + "|" + (ue === Zt ? Bt : I).source + "|" + (o.evaluate || I).source + "|$",
|
|
18617
18617
|
"g"
|
|
18618
18618
|
), Ue = "//# sourceURL=" + (It.call(o, "sourceURL") ? (o.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++kS + "]") + `
|
|
18619
18619
|
`;
|
|
18620
18620
|
s.replace(Te, function(Qe, ft, yt, mn, zr, yn) {
|
|
18621
|
-
return yt || (yt = mn), he += s.slice(se, yn).replace(k, QS), ft && (
|
|
18621
|
+
return yt || (yt = mn), he += s.slice(se, yn).replace(k, QS), ft && (q = !0, he += `' +
|
|
18622
18622
|
__e(` + ft + `) +
|
|
18623
18623
|
'`), zr && (z = !0, he += `';
|
|
18624
18624
|
` + zr + `;
|
|
@@ -18637,7 +18637,7 @@ __p += '`), yt && (he += `' +
|
|
|
18637
18637
|
throw new Ze(c);
|
|
18638
18638
|
he = (z ? he.replace(nt, "") : he).replace(at, "$1").replace(ct, "$1;"), he = "function(" + (He || "obj") + `) {
|
|
18639
18639
|
` + (He ? "" : `obj || (obj = {});
|
|
18640
|
-
`) + "var __t, __p = ''" + (
|
|
18640
|
+
`) + "var __t, __p = ''" + (q ? ", __e = _.escape" : "") + (z ? `, __j = Array.prototype.join;
|
|
18641
18641
|
function print() { __p += __j.call(arguments, '') }
|
|
18642
18642
|
` : `;
|
|
18643
18643
|
`) + he + `return __p
|
|
@@ -18693,20 +18693,20 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18693
18693
|
}
|
|
18694
18694
|
if (l >= E)
|
|
18695
18695
|
return s;
|
|
18696
|
-
var
|
|
18697
|
-
if (
|
|
18696
|
+
var q = l - Ys(d);
|
|
18697
|
+
if (q < 1)
|
|
18698
18698
|
return d;
|
|
18699
|
-
var z = N ? Gi(N, 0,
|
|
18699
|
+
var z = N ? Gi(N, 0, q).join("") : s.slice(0, q);
|
|
18700
18700
|
if (v === t)
|
|
18701
18701
|
return z + d;
|
|
18702
|
-
if (N && (
|
|
18703
|
-
if (s.slice(
|
|
18702
|
+
if (N && (q += z.length - q), yf(v)) {
|
|
18703
|
+
if (s.slice(q).search(v)) {
|
|
18704
18704
|
var se, ue = z;
|
|
18705
18705
|
for (v.global || (v = Pl(v.source, Tt(Dt.exec(v)) + "g")), v.lastIndex = 0; se = v.exec(ue); )
|
|
18706
18706
|
var he = se.index;
|
|
18707
|
-
z = z.slice(0, he === t ?
|
|
18707
|
+
z = z.slice(0, he === t ? q : he);
|
|
18708
18708
|
}
|
|
18709
|
-
} else if (s.indexOf(dn(v),
|
|
18709
|
+
} else if (s.indexOf(dn(v), q) != q) {
|
|
18710
18710
|
var Te = z.lastIndexOf(v);
|
|
18711
18711
|
Te > -1 && (z = z.slice(0, Te));
|
|
18712
18712
|
}
|
|
@@ -18734,7 +18734,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18734
18734
|
});
|
|
18735
18735
|
function AA(s) {
|
|
18736
18736
|
var o = s == null ? 0 : s.length, l = We();
|
|
18737
|
-
return s = o ?
|
|
18737
|
+
return s = o ? Vt(s, function(d) {
|
|
18738
18738
|
if (typeof d[1] != "function")
|
|
18739
18739
|
throw new Nn(u);
|
|
18740
18740
|
return [l(d[0]), d[1]];
|
|
@@ -18783,9 +18783,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18783
18783
|
var d = _r(o), v = Su(o, d);
|
|
18784
18784
|
l == null && !(Yt(o) && (v.length || !d.length)) && (l = o, o = s, s = this, v = Su(o, _r(o)));
|
|
18785
18785
|
var E = !(Yt(l) && "chain" in l) || !!l.chain, N = xi(s);
|
|
18786
|
-
return Pn(v, function(
|
|
18787
|
-
var z = o[
|
|
18788
|
-
s[
|
|
18786
|
+
return Pn(v, function(q) {
|
|
18787
|
+
var z = o[q];
|
|
18788
|
+
s[q] = z, N && (s.prototype[q] = function() {
|
|
18789
18789
|
var se = this.__chain__;
|
|
18790
18790
|
if (E || se) {
|
|
18791
18791
|
var ue = s(this.__wrapped__), he = ue.__actions__ = en(this.__actions__);
|
|
@@ -18805,7 +18805,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18805
18805
|
return oy(o, s);
|
|
18806
18806
|
});
|
|
18807
18807
|
}
|
|
18808
|
-
var UA = Xl(
|
|
18808
|
+
var UA = Xl(Vt), jA = Xl(Am), $A = Xl(El);
|
|
18809
18809
|
function Og(s) {
|
|
18810
18810
|
return of(s) ? Ol(li(s)) : g1(s);
|
|
18811
18811
|
}
|
|
@@ -18840,7 +18840,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18840
18840
|
return v;
|
|
18841
18841
|
}
|
|
18842
18842
|
function JA(s) {
|
|
18843
|
-
return Xe(s) ?
|
|
18843
|
+
return Xe(s) ? Vt(s, li) : pn(s) ? [s] : en(zy(Tt(s)));
|
|
18844
18844
|
}
|
|
18845
18845
|
function YA(s) {
|
|
18846
18846
|
var o = ++oE;
|
|
@@ -18940,18 +18940,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18940
18940
|
}, ui(ht.prototype, function(s, o) {
|
|
18941
18941
|
var l = /^(?:filter|find|map|reject)|While$/.test(o), d = /^(?:head|last)$/.test(o), v = S[d ? "take" + (o == "last" ? "Right" : "") : o], E = d || /^find/.test(o);
|
|
18942
18942
|
v && (S.prototype[o] = function() {
|
|
18943
|
-
var N = this.__wrapped__,
|
|
18944
|
-
var yt = v.apply(S, Bi([ft],
|
|
18943
|
+
var N = this.__wrapped__, q = d ? [1] : arguments, z = N instanceof ht, se = q[0], ue = z || Xe(N), he = function(ft) {
|
|
18944
|
+
var yt = v.apply(S, Bi([ft], q));
|
|
18945
18945
|
return d && Te ? yt[0] : yt;
|
|
18946
18946
|
};
|
|
18947
18947
|
ue && l && typeof se == "function" && se.length != 1 && (z = ue = !1);
|
|
18948
18948
|
var Te = this.__chain__, Ue = !!this.__actions__.length, He = E && !Te, it = z && !Ue;
|
|
18949
18949
|
if (!E && ue) {
|
|
18950
18950
|
N = it ? N : new ht(this);
|
|
18951
|
-
var Qe = s.apply(N,
|
|
18951
|
+
var Qe = s.apply(N, q);
|
|
18952
18952
|
return Qe.__actions__.push({ func: Du, args: [he], thisArg: t }), new Rn(Qe, Te);
|
|
18953
18953
|
}
|
|
18954
|
-
return He && it ? s.apply(this,
|
|
18954
|
+
return He && it ? s.apply(this, q) : (Qe = this.thru(he), He ? d ? Qe.value()[0] : Qe.value() : Qe);
|
|
18955
18955
|
});
|
|
18956
18956
|
}), Pn(["pop", "push", "shift", "sort", "splice", "unshift"], function(s) {
|
|
18957
18957
|
var o = ou[s], l = /^(?:push|sort|unshift)$/.test(s) ? "tap" : "thru", d = /^(?:pop|shift)$/.test(s);
|
|
@@ -18983,7 +18983,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18983
18983
|
var dM = hM();
|
|
18984
18984
|
const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContext(), Ox = hI(), pM = ({ children: r }) => {
|
|
18985
18985
|
const [e, t] = pI(), [n, i] = Ot({});
|
|
18986
|
-
|
|
18986
|
+
jt(() => {
|
|
18987
18987
|
Object.keys(n).length > 0 && (t((c) => {
|
|
18988
18988
|
const f = new URLSearchParams(c);
|
|
18989
18989
|
return Object.entries(n).forEach(([h, p]) => {
|
|
@@ -19009,7 +19009,7 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19009
19009
|
a({ [r]: p });
|
|
19010
19010
|
}];
|
|
19011
19011
|
}, al = async (r, e, t) => {
|
|
19012
|
-
|
|
19012
|
+
jt(() => {
|
|
19013
19013
|
const n = new window.AbortController();
|
|
19014
19014
|
async function i() {
|
|
19015
19015
|
return await r(n.signal);
|
|
@@ -19020,7 +19020,7 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19020
19020
|
}, [...e]);
|
|
19021
19021
|
}, Nc = (r, e = null, t) => {
|
|
19022
19022
|
const n = is(r);
|
|
19023
|
-
|
|
19023
|
+
jt(() => {
|
|
19024
19024
|
n.current = r;
|
|
19025
19025
|
}, [r]);
|
|
19026
19026
|
let i;
|
|
@@ -19057,7 +19057,7 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19057
19057
|
), { data: n, error: c, loading: a };
|
|
19058
19058
|
}, l6 = (r, e) => {
|
|
19059
19059
|
const [t, n] = Ot(), [i, a] = Ot(!0), [u, c] = Ot(null), [f, h] = Ot(), { urls: p, request: m } = Ui();
|
|
19060
|
-
return
|
|
19060
|
+
return jt(() => {
|
|
19061
19061
|
a(u === null || u > 0);
|
|
19062
19062
|
}, [u]), Nc(
|
|
19063
19063
|
async (y) => {
|
|
@@ -19090,12 +19090,12 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19090
19090
|
}
|
|
19091
19091
|
}
|
|
19092
19092
|
`, { data: _ } = fN(A, { skip: t }), [w, T] = Ot();
|
|
19093
|
-
|
|
19093
|
+
jt(() => {
|
|
19094
19094
|
r !== m && y(r), e !== g && b(e), p(), i(), f(), u();
|
|
19095
|
-
}, [r, e, g, m]),
|
|
19095
|
+
}, [r, e, g, m]), jt(() => {
|
|
19096
19096
|
if (O || !r || !e)
|
|
19097
19097
|
return;
|
|
19098
|
-
const R = h || Ye.utc().minus({ hours: 1 }).format(),
|
|
19098
|
+
const R = h || Ye.utc().minus({ hours: 1 }).format(), L = ys`
|
|
19099
19099
|
query MMToolsQuantityStreamQuery {
|
|
19100
19100
|
quantities(args:{machineRef:${m}, metricKey:"${g}", windowStart:"${R}"}, order_by:{eventTime:asc}) {
|
|
19101
19101
|
value
|
|
@@ -19103,8 +19103,8 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19103
19103
|
}
|
|
19104
19104
|
}
|
|
19105
19105
|
`;
|
|
19106
|
-
T(
|
|
19107
|
-
}, [m, g, h]),
|
|
19106
|
+
T(L);
|
|
19107
|
+
}, [m, g, h]), jt(() => {
|
|
19108
19108
|
w && P();
|
|
19109
19109
|
}, [w, _]);
|
|
19110
19110
|
const [P, { data: M, loading: O }] = cN(
|
|
@@ -19113,15 +19113,15 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19113
19113
|
fetchPolicy: "no-cache"
|
|
19114
19114
|
}
|
|
19115
19115
|
);
|
|
19116
|
-
return
|
|
19116
|
+
return jt(() => {
|
|
19117
19117
|
if (!M || !M.quantities)
|
|
19118
19118
|
return;
|
|
19119
19119
|
const R = Ii.last(M.quantities);
|
|
19120
19120
|
if (R && p(R.eventTime), !n)
|
|
19121
19121
|
i(M.quantities);
|
|
19122
19122
|
else {
|
|
19123
|
-
const
|
|
19124
|
-
i([...n, ...
|
|
19123
|
+
const L = Ii.drop(M.quantities);
|
|
19124
|
+
i([...n, ...L]);
|
|
19125
19125
|
}
|
|
19126
19126
|
}, [M]), { data: n, error: c, loading: a };
|
|
19127
19127
|
}, h6 = (r) => {
|
|
@@ -19145,7 +19145,7 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19145
19145
|
), { data: e, error: a, loading: n };
|
|
19146
19146
|
}, d6 = (r) => {
|
|
19147
19147
|
const [e, t] = Ot(), { urls: n, request: i, clientId: a } = Ui(), u = `lab:${a}:${r}`, { data: c, loading: f, error: h } = mM("/templates");
|
|
19148
|
-
return
|
|
19148
|
+
return jt(() => {
|
|
19149
19149
|
if (!c)
|
|
19150
19150
|
return;
|
|
19151
19151
|
const g = Ii.filter(c.templates, { namespace: u });
|
|
@@ -19201,41 +19201,41 @@ const Ii = /* @__PURE__ */ e_(dM), Sx = zo.createContext(), Ex = zo.createContex
|
|
|
19201
19201
|
return r;
|
|
19202
19202
|
}, g6 = (r, e = []) => {
|
|
19203
19203
|
const { setInfo: t } = qr(ai);
|
|
19204
|
-
|
|
19204
|
+
jt(() => {
|
|
19205
19205
|
t(r);
|
|
19206
19206
|
}, [...e]);
|
|
19207
19207
|
}, v6 = (r, e, t = []) => {
|
|
19208
19208
|
const { addSetting: n } = qr(ai);
|
|
19209
|
-
|
|
19209
|
+
jt(() => {
|
|
19210
19210
|
n(r, e);
|
|
19211
19211
|
}, [...t]);
|
|
19212
19212
|
}, b6 = (r, e = []) => {
|
|
19213
19213
|
const { registerHandler: t } = qr(ai);
|
|
19214
|
-
|
|
19214
|
+
jt(() => t({
|
|
19215
19215
|
requestType: "set-claims",
|
|
19216
19216
|
func: r
|
|
19217
19217
|
}), [...e]);
|
|
19218
19218
|
}, w6 = (r, e = []) => {
|
|
19219
19219
|
const { registerHandler: t } = qr(ai);
|
|
19220
|
-
|
|
19220
|
+
jt(() => t({
|
|
19221
19221
|
requestType: "custom-input-open",
|
|
19222
19222
|
func: r
|
|
19223
19223
|
}), [...e]);
|
|
19224
19224
|
}, _6 = (r, e = []) => {
|
|
19225
19225
|
const { registerHandler: t } = qr(ai);
|
|
19226
|
-
|
|
19226
|
+
jt(() => t({
|
|
19227
19227
|
requestType: "custom-input-save",
|
|
19228
19228
|
func: r
|
|
19229
19229
|
}), [...e]);
|
|
19230
19230
|
}, x6 = (r, e = []) => {
|
|
19231
19231
|
const { registerHandler: t } = qr(ai);
|
|
19232
|
-
|
|
19232
|
+
jt(() => t({
|
|
19233
19233
|
requestType: "custom-input-label",
|
|
19234
19234
|
func: r
|
|
19235
19235
|
}), [...e]);
|
|
19236
19236
|
}, S6 = (r, e = []) => {
|
|
19237
19237
|
const { registerHandler: t } = qr(ai);
|
|
19238
|
-
|
|
19238
|
+
jt(() => t({
|
|
19239
19239
|
requestType: "modal-save",
|
|
19240
19240
|
func: r
|
|
19241
19241
|
}), [...e]);
|
|
@@ -19618,11 +19618,11 @@ const Dd = "mm-auth-state", Fd = "mm-auth-destination", Ld = "mm-auth-access-tok
|
|
|
19618
19618
|
};
|
|
19619
19619
|
};
|
|
19620
19620
|
function qM(r) {
|
|
19621
|
-
return
|
|
19621
|
+
return $t(r) && "code" in r && "reason" in r;
|
|
19622
19622
|
}
|
|
19623
19623
|
function UM(r) {
|
|
19624
19624
|
var e;
|
|
19625
|
-
return
|
|
19625
|
+
return $t(r) && ((e = r.target) === null || e === void 0 ? void 0 : e.readyState) === WebSocket.CLOSED;
|
|
19626
19626
|
}
|
|
19627
19627
|
var jM = (
|
|
19628
19628
|
/** @class */
|
|
@@ -19903,14 +19903,14 @@ function WM(r) {
|
|
|
19903
19903
|
})
|
|
19904
19904
|
];
|
|
19905
19905
|
}
|
|
19906
|
-
let O, R = 0,
|
|
19906
|
+
let O, R = 0, L, D = !1, $ = 0, K = !1;
|
|
19907
19907
|
async function ae() {
|
|
19908
|
-
clearTimeout(
|
|
19908
|
+
clearTimeout(L);
|
|
19909
19909
|
const [le, we] = await (O ?? (O = new Promise(
|
|
19910
|
-
(de,
|
|
19910
|
+
(de, De) => (async () => {
|
|
19911
19911
|
if (D) {
|
|
19912
19912
|
if (await p($), !R)
|
|
19913
|
-
return O = void 0,
|
|
19913
|
+
return O = void 0, De({ code: 1e3, reason: "All Subscriptions Gone" });
|
|
19914
19914
|
$++;
|
|
19915
19915
|
}
|
|
19916
19916
|
P.emit("connecting", D);
|
|
@@ -19918,14 +19918,14 @@ function WM(r) {
|
|
|
19918
19918
|
typeof e == "function" ? await e() : e,
|
|
19919
19919
|
BM
|
|
19920
19920
|
);
|
|
19921
|
-
let $e,
|
|
19922
|
-
function
|
|
19923
|
-
isFinite(u) && u > 0 && (clearTimeout(
|
|
19921
|
+
let $e, pe;
|
|
19922
|
+
function Ne() {
|
|
19923
|
+
isFinite(u) && u > 0 && (clearTimeout(pe), pe = setTimeout(() => {
|
|
19924
19924
|
Oe.readyState === T.OPEN && (Oe.send(fo({ type: jn.Ping })), P.emit("ping", !1, void 0));
|
|
19925
19925
|
}, u));
|
|
19926
19926
|
}
|
|
19927
19927
|
M((Ce) => {
|
|
19928
|
-
O = void 0, clearTimeout($e), clearTimeout(
|
|
19928
|
+
O = void 0, clearTimeout($e), clearTimeout(pe), De(Ce), Ce instanceof h0 && (Oe.close(4499, "Terminated"), Oe.onerror = null, Oe.onclose = null);
|
|
19929
19929
|
}), Oe.onerror = (Ce) => P.emit("error", Ce), Oe.onclose = (Ce) => P.emit("closed", Ce), Oe.onopen = async () => {
|
|
19930
19930
|
try {
|
|
19931
19931
|
P.emit("opened", Oe);
|
|
@@ -19947,7 +19947,7 @@ function WM(r) {
|
|
|
19947
19947
|
Un.ConnectionAcknowledgementTimeout,
|
|
19948
19948
|
"Connection acknowledgement timeout"
|
|
19949
19949
|
);
|
|
19950
|
-
}, f)),
|
|
19950
|
+
}, f)), Ne();
|
|
19951
19951
|
} catch (Ce) {
|
|
19952
19952
|
P.emit("error", Ce), Oe.close(
|
|
19953
19953
|
Un.InternalClientError,
|
|
@@ -19963,7 +19963,7 @@ function WM(r) {
|
|
|
19963
19963
|
try {
|
|
19964
19964
|
const xe = VM(Ce, _);
|
|
19965
19965
|
if (P.emit("message", xe), xe.type === "ping" || xe.type === "pong") {
|
|
19966
|
-
P.emit(xe.type, !0, xe.payload), xe.type === "pong" ?
|
|
19966
|
+
P.emit(xe.type, !0, xe.payload), xe.type === "pong" ? Ne() : c || (Oe.send(
|
|
19967
19967
|
fo(
|
|
19968
19968
|
xe.payload ? {
|
|
19969
19969
|
type: jn.Pong,
|
|
@@ -20009,7 +20009,7 @@ function WM(r) {
|
|
|
20009
20009
|
_e.then(() => {
|
|
20010
20010
|
if (!R) {
|
|
20011
20011
|
const de = () => le.close(1e3, "Normal Closure");
|
|
20012
|
-
isFinite(a) && a > 0 ?
|
|
20012
|
+
isFinite(a) && a > 0 ? L = setTimeout(() => {
|
|
20013
20013
|
le.readyState === T.OPEN && de();
|
|
20014
20014
|
}, a) : de();
|
|
20015
20015
|
}
|
|
@@ -20054,28 +20054,28 @@ function WM(r) {
|
|
|
20054
20054
|
}
|
|
20055
20055
|
}
|
|
20056
20056
|
})();
|
|
20057
|
-
function
|
|
20057
|
+
function me(le, we) {
|
|
20058
20058
|
const ve = b(le);
|
|
20059
|
-
let _e = !1, de = !1,
|
|
20059
|
+
let _e = !1, de = !1, De = () => {
|
|
20060
20060
|
R--, _e = !0;
|
|
20061
20061
|
};
|
|
20062
20062
|
return (async () => {
|
|
20063
20063
|
for (R++; ; )
|
|
20064
20064
|
try {
|
|
20065
|
-
const [Oe, $e,
|
|
20065
|
+
const [Oe, $e, pe] = await ae();
|
|
20066
20066
|
if (_e) return $e();
|
|
20067
|
-
const
|
|
20067
|
+
const Ne = P.onMessage(ve, (Pe) => {
|
|
20068
20068
|
switch (Pe.type) {
|
|
20069
20069
|
case jn.Next: {
|
|
20070
20070
|
we.next(Pe.payload);
|
|
20071
20071
|
return;
|
|
20072
20072
|
}
|
|
20073
20073
|
case jn.Error: {
|
|
20074
|
-
de = !0, _e = !0, we.error(Pe.payload),
|
|
20074
|
+
de = !0, _e = !0, we.error(Pe.payload), De();
|
|
20075
20075
|
return;
|
|
20076
20076
|
}
|
|
20077
20077
|
case jn.Complete: {
|
|
20078
|
-
_e = !0,
|
|
20078
|
+
_e = !0, De();
|
|
20079
20079
|
return;
|
|
20080
20080
|
}
|
|
20081
20081
|
}
|
|
@@ -20089,7 +20089,7 @@ function WM(r) {
|
|
|
20089
20089
|
},
|
|
20090
20090
|
A
|
|
20091
20091
|
)
|
|
20092
|
-
),
|
|
20092
|
+
), De = () => {
|
|
20093
20093
|
!_e && Oe.readyState === T.OPEN && Oe.send(
|
|
20094
20094
|
fo(
|
|
20095
20095
|
{
|
|
@@ -20099,7 +20099,7 @@ function WM(r) {
|
|
|
20099
20099
|
A
|
|
20100
20100
|
)
|
|
20101
20101
|
), R--, _e = !0, $e();
|
|
20102
|
-
}, await
|
|
20102
|
+
}, await pe.finally(Ne);
|
|
20103
20103
|
return;
|
|
20104
20104
|
} catch (Oe) {
|
|
20105
20105
|
if (!X(Oe)) return;
|
|
@@ -20109,24 +20109,24 @@ function WM(r) {
|
|
|
20109
20109
|
}).catch((Oe) => {
|
|
20110
20110
|
we.error(Oe);
|
|
20111
20111
|
}), () => {
|
|
20112
|
-
_e ||
|
|
20112
|
+
_e || De();
|
|
20113
20113
|
};
|
|
20114
20114
|
}
|
|
20115
20115
|
return {
|
|
20116
20116
|
on: P.on,
|
|
20117
|
-
subscribe:
|
|
20117
|
+
subscribe: me,
|
|
20118
20118
|
iterate(le) {
|
|
20119
20119
|
const we = [], ve = {
|
|
20120
20120
|
done: !1,
|
|
20121
20121
|
error: null,
|
|
20122
20122
|
resolve: () => {
|
|
20123
20123
|
}
|
|
20124
|
-
}, _e =
|
|
20125
|
-
next(
|
|
20126
|
-
we.push(
|
|
20124
|
+
}, _e = me(le, {
|
|
20125
|
+
next(De) {
|
|
20126
|
+
we.push(De), ve.resolve();
|
|
20127
20127
|
},
|
|
20128
|
-
error(
|
|
20129
|
-
ve.done = !0, ve.error =
|
|
20128
|
+
error(De) {
|
|
20129
|
+
ve.done = !0, ve.error = De, ve.resolve();
|
|
20130
20130
|
},
|
|
20131
20131
|
complete() {
|
|
20132
20132
|
ve.done = !0, ve.resolve();
|
|
@@ -20141,7 +20141,7 @@ function WM(r) {
|
|
|
20141
20141
|
return;
|
|
20142
20142
|
}
|
|
20143
20143
|
})();
|
|
20144
|
-
return de.throw = async (
|
|
20144
|
+
return de.throw = async (De) => (ve.done || (ve.done = !0, ve.error = De, ve.resolve()), { done: !0, value: void 0 }), de.return = async () => (_e(), { done: !0, value: void 0 }), de;
|
|
20145
20145
|
},
|
|
20146
20146
|
async dispose() {
|
|
20147
20147
|
if (K = !0, O) {
|
|
@@ -20285,7 +20285,7 @@ var Xf, m0;
|
|
|
20285
20285
|
function ol() {
|
|
20286
20286
|
if (m0) return Xf;
|
|
20287
20287
|
m0 = 1;
|
|
20288
|
-
var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, n = r && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, a = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = i && a && typeof a.get == "function" ? a.get : null, c = i && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, h = f ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype, m = p ? WeakSet.prototype.has : null, y = typeof WeakRef == "function" && WeakRef.prototype, g = y ? WeakRef.prototype.deref : null, b = Boolean.prototype.valueOf, A = Object.prototype.toString, _ = Function.prototype.toString, w = String.prototype.match, T = String.prototype.slice, P = String.prototype.replace, M = String.prototype.toUpperCase, O = String.prototype.toLowerCase, R = RegExp.prototype.test,
|
|
20288
|
+
var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, n = r && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, a = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = i && a && typeof a.get == "function" ? a.get : null, c = i && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype, h = f ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype, m = p ? WeakSet.prototype.has : null, y = typeof WeakRef == "function" && WeakRef.prototype, g = y ? WeakRef.prototype.deref : null, b = Boolean.prototype.valueOf, A = Object.prototype.toString, _ = Function.prototype.toString, w = String.prototype.match, T = String.prototype.slice, P = String.prototype.replace, M = String.prototype.toUpperCase, O = String.prototype.toLowerCase, R = RegExp.prototype.test, L = Array.prototype.concat, D = Array.prototype.join, $ = Array.prototype.slice, K = Math.floor, ae = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, X = Object.getOwnPropertySymbols, me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", we = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, ve = Object.prototype.propertyIsEnumerable, _e = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(H) {
|
|
20289
20289
|
return H.__proto__;
|
|
20290
20290
|
} : null);
|
|
20291
20291
|
function de(H, J) {
|
|
@@ -20301,18 +20301,18 @@ function ol() {
|
|
|
20301
20301
|
}
|
|
20302
20302
|
return P.call(J, nt, "$&_");
|
|
20303
20303
|
}
|
|
20304
|
-
var
|
|
20304
|
+
var De = KM, Oe = De.custom, $e = Y(Oe) ? Oe : null, pe = {
|
|
20305
20305
|
__proto__: null,
|
|
20306
20306
|
double: '"',
|
|
20307
20307
|
single: "'"
|
|
20308
|
-
},
|
|
20308
|
+
}, Ne = {
|
|
20309
20309
|
__proto__: null,
|
|
20310
20310
|
double: /(["\\])/g,
|
|
20311
20311
|
single: /(['\\])/g
|
|
20312
20312
|
};
|
|
20313
20313
|
Xf = function H(J, nt, at, ct) {
|
|
20314
20314
|
var ze = nt || {};
|
|
20315
|
-
if (be(ze, "quoteStyle") && !be(
|
|
20315
|
+
if (be(ze, "quoteStyle") && !be(pe, ze.quoteStyle))
|
|
20316
20316
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
20317
20317
|
if (be(ze, "maxStringLength") && (typeof ze.maxStringLength == "number" ? ze.maxStringLength < 0 && ze.maxStringLength !== 1 / 0 : ze.maxStringLength !== null))
|
|
20318
20318
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -20359,12 +20359,12 @@ function ol() {
|
|
|
20359
20359
|
}
|
|
20360
20360
|
return H(cn, ze, at + 1, ct);
|
|
20361
20361
|
}
|
|
20362
|
-
if (typeof J == "function" && !
|
|
20362
|
+
if (typeof J == "function" && !Re(J)) {
|
|
20363
20363
|
var Xr = Ve(J), Nr = Gt(J, Mt);
|
|
20364
20364
|
return "[Function" + (Xr ? ": " + Xr : " (anonymous)") + "]" + (Nr.length > 0 ? " { " + D.call(Nr, ", ") + " }" : "");
|
|
20365
20365
|
}
|
|
20366
20366
|
if (Y(J)) {
|
|
20367
|
-
var gr = le ? P.call(String(J), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
20367
|
+
var gr = le ? P.call(String(J), /^(Symbol\(.*\))_[^)]*$/, "$1") : me.call(J);
|
|
20368
20368
|
return typeof J == "object" && !le ? mr(gr) : gr;
|
|
20369
20369
|
}
|
|
20370
20370
|
if (_t(J)) {
|
|
@@ -20380,11 +20380,11 @@ function ol() {
|
|
|
20380
20380
|
}
|
|
20381
20381
|
if (Be(J)) {
|
|
20382
20382
|
var Tn = Gt(J, Mt);
|
|
20383
|
-
return !("cause" in Error.prototype) && "cause" in J && !ve.call(J, "cause") ? "{ [" + String(J) + "] " + D.call(
|
|
20383
|
+
return !("cause" in Error.prototype) && "cause" in J && !ve.call(J, "cause") ? "{ [" + String(J) + "] " + D.call(L.call("[cause]: " + Mt(J.cause), Tn), ", ") + " }" : Tn.length === 0 ? "[" + String(J) + "]" : "{ [" + String(J) + "] " + D.call(Tn, ", ") + " }";
|
|
20384
20384
|
}
|
|
20385
20385
|
if (typeof J == "object" && Jt) {
|
|
20386
|
-
if ($e && typeof J[$e] == "function" &&
|
|
20387
|
-
return
|
|
20386
|
+
if ($e && typeof J[$e] == "function" && De)
|
|
20387
|
+
return De(J, { depth: On - at });
|
|
20388
20388
|
if (Jt !== "symbol" && typeof J.inspect == "function")
|
|
20389
20389
|
return J.inspect();
|
|
20390
20390
|
}
|
|
@@ -20418,14 +20418,14 @@ function ol() {
|
|
|
20418
20418
|
return "{ [object Window] }";
|
|
20419
20419
|
if (typeof globalThis < "u" && J === globalThis || typeof Fs < "u" && J === Fs)
|
|
20420
20420
|
return "{ [object globalThis] }";
|
|
20421
|
-
if (!rt(J) && !
|
|
20422
|
-
var wr = Gt(J, Mt), $r = _e ? _e(J) === Object.prototype : J instanceof Object || J.constructor === Object,
|
|
20421
|
+
if (!rt(J) && !Re(J)) {
|
|
20422
|
+
var wr = Gt(J, Mt), $r = _e ? _e(J) === Object.prototype : J instanceof Object || J.constructor === Object, Bt = J instanceof Object ? "" : "null prototype", Dt = !$r && we && Object(J) === J && we in J ? T.call(je(J), 8, -1) : Bt ? "Object" : "", An = $r || typeof J.constructor != "function" ? "" : J.constructor.name ? J.constructor.name + " " : "", In = An + (Dt || Bt ? "[" + D.call(L.call([], Dt || [], Bt || []), ": ") + "] " : "");
|
|
20423
20423
|
return wr.length === 0 ? In + "{}" : Zt ? In + "{" + Lt(wr, Zt) + "}" : In + "{ " + D.call(wr, ", ") + " }";
|
|
20424
20424
|
}
|
|
20425
20425
|
return String(J);
|
|
20426
20426
|
};
|
|
20427
20427
|
function Pe(H, J, nt) {
|
|
20428
|
-
var at = nt.quoteStyle || J, ct =
|
|
20428
|
+
var at = nt.quoteStyle || J, ct = pe[at];
|
|
20429
20429
|
return ct + H + ct;
|
|
20430
20430
|
}
|
|
20431
20431
|
function Ce(H) {
|
|
@@ -20440,7 +20440,7 @@ function ol() {
|
|
|
20440
20440
|
function rt(H) {
|
|
20441
20441
|
return je(H) === "[object Date]" && xe(H);
|
|
20442
20442
|
}
|
|
20443
|
-
function
|
|
20443
|
+
function Re(H) {
|
|
20444
20444
|
return je(H) === "[object RegExp]" && xe(H);
|
|
20445
20445
|
}
|
|
20446
20446
|
function Be(H) {
|
|
@@ -20460,10 +20460,10 @@ function ol() {
|
|
|
20460
20460
|
return H && typeof H == "object" && H instanceof Symbol;
|
|
20461
20461
|
if (typeof H == "symbol")
|
|
20462
20462
|
return !0;
|
|
20463
|
-
if (!H || typeof H != "object" || !
|
|
20463
|
+
if (!H || typeof H != "object" || !me)
|
|
20464
20464
|
return !1;
|
|
20465
20465
|
try {
|
|
20466
|
-
return
|
|
20466
|
+
return me.call(H), !0;
|
|
20467
20467
|
} catch {
|
|
20468
20468
|
}
|
|
20469
20469
|
return !1;
|
|
@@ -20577,7 +20577,7 @@ function ol() {
|
|
|
20577
20577
|
var nt = H.length - J.maxStringLength, at = "... " + nt + " more character" + (nt > 1 ? "s" : "");
|
|
20578
20578
|
return Qt(T.call(H, 0, J.maxStringLength), J) + at;
|
|
20579
20579
|
}
|
|
20580
|
-
var ct =
|
|
20580
|
+
var ct = Ne[J.quoteStyle || "single"];
|
|
20581
20581
|
ct.lastIndex = 0;
|
|
20582
20582
|
var ze = P.call(P.call(H, ct, "\\$1"), /[\x00-\x1f]/g, nr);
|
|
20583
20583
|
return Pe(ze, "single", J);
|
|
@@ -20990,9 +20990,9 @@ var Rh, J0;
|
|
|
20990
20990
|
function Kp() {
|
|
20991
20991
|
if (J0) return Rh;
|
|
20992
20992
|
J0 = 1;
|
|
20993
|
-
var r, e = /* @__PURE__ */ qx(), t = /* @__PURE__ */ XM(), n = /* @__PURE__ */ eD(), i = /* @__PURE__ */ tD(), a = /* @__PURE__ */ rD(), u = /* @__PURE__ */ nD(), c = /* @__PURE__ */ Ba(), f = /* @__PURE__ */ iD(), h = /* @__PURE__ */ sD(), p = /* @__PURE__ */ aD(), m = /* @__PURE__ */ oD(), y = /* @__PURE__ */ uD(), g = /* @__PURE__ */ cD(), b = /* @__PURE__ */ lD(), A = /* @__PURE__ */ hD(), _ = Function, w = function(
|
|
20993
|
+
var r, e = /* @__PURE__ */ qx(), t = /* @__PURE__ */ XM(), n = /* @__PURE__ */ eD(), i = /* @__PURE__ */ tD(), a = /* @__PURE__ */ rD(), u = /* @__PURE__ */ nD(), c = /* @__PURE__ */ Ba(), f = /* @__PURE__ */ iD(), h = /* @__PURE__ */ sD(), p = /* @__PURE__ */ aD(), m = /* @__PURE__ */ oD(), y = /* @__PURE__ */ uD(), g = /* @__PURE__ */ cD(), b = /* @__PURE__ */ lD(), A = /* @__PURE__ */ hD(), _ = Function, w = function(Re) {
|
|
20994
20994
|
try {
|
|
20995
|
-
return _('"use strict"; return (' +
|
|
20995
|
+
return _('"use strict"; return (' + Re + ").constructor;")();
|
|
20996
20996
|
} catch {
|
|
20997
20997
|
}
|
|
20998
20998
|
}, T = /* @__PURE__ */ Ux(), P = /* @__PURE__ */ pD(), M = function() {
|
|
@@ -21007,12 +21007,12 @@ function Kp() {
|
|
|
21007
21007
|
return M;
|
|
21008
21008
|
}
|
|
21009
21009
|
}
|
|
21010
|
-
})() : M, R = yD()(),
|
|
21010
|
+
})() : M, R = yD()(), L = _D(), D = $x(), $ = jx(), K = Bx(), ae = Yp(), X = {}, me = typeof Uint8Array > "u" || !L ? r : L(Uint8Array), le = {
|
|
21011
21011
|
__proto__: null,
|
|
21012
21012
|
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
|
|
21013
21013
|
"%Array%": Array,
|
|
21014
21014
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
|
|
21015
|
-
"%ArrayIteratorPrototype%": R &&
|
|
21015
|
+
"%ArrayIteratorPrototype%": R && L ? L([][Symbol.iterator]()) : r,
|
|
21016
21016
|
"%AsyncFromSyncIteratorPrototype%": r,
|
|
21017
21017
|
"%AsyncFunction%": X,
|
|
21018
21018
|
"%AsyncGenerator%": X,
|
|
@@ -21044,10 +21044,10 @@ function Kp() {
|
|
|
21044
21044
|
"%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
|
|
21045
21045
|
"%isFinite%": isFinite,
|
|
21046
21046
|
"%isNaN%": isNaN,
|
|
21047
|
-
"%IteratorPrototype%": R &&
|
|
21047
|
+
"%IteratorPrototype%": R && L ? L(L([][Symbol.iterator]())) : r,
|
|
21048
21048
|
"%JSON%": typeof JSON == "object" ? JSON : r,
|
|
21049
21049
|
"%Map%": typeof Map > "u" ? r : Map,
|
|
21050
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !R || !
|
|
21050
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !R || !L ? r : L((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
21051
21051
|
"%Math%": Math,
|
|
21052
21052
|
"%Number%": Number,
|
|
21053
21053
|
"%Object%": e,
|
|
@@ -21061,14 +21061,14 @@ function Kp() {
|
|
|
21061
21061
|
"%Reflect%": typeof Reflect > "u" ? r : Reflect,
|
|
21062
21062
|
"%RegExp%": RegExp,
|
|
21063
21063
|
"%Set%": typeof Set > "u" ? r : Set,
|
|
21064
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !R || !
|
|
21064
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !R || !L ? r : L((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
21065
21065
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
|
|
21066
21066
|
"%String%": String,
|
|
21067
|
-
"%StringIteratorPrototype%": R &&
|
|
21067
|
+
"%StringIteratorPrototype%": R && L ? L(""[Symbol.iterator]()) : r,
|
|
21068
21068
|
"%Symbol%": R ? Symbol : r,
|
|
21069
21069
|
"%SyntaxError%": u,
|
|
21070
21070
|
"%ThrowTypeError%": O,
|
|
21071
|
-
"%TypedArray%":
|
|
21071
|
+
"%TypedArray%": me,
|
|
21072
21072
|
"%TypeError%": c,
|
|
21073
21073
|
"%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
|
|
21074
21074
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
|
|
@@ -21091,14 +21091,14 @@ function Kp() {
|
|
|
21091
21091
|
"%Math.sign%": A,
|
|
21092
21092
|
"%Reflect.getPrototypeOf%": $
|
|
21093
21093
|
};
|
|
21094
|
-
if (
|
|
21094
|
+
if (L)
|
|
21095
21095
|
try {
|
|
21096
21096
|
null.error;
|
|
21097
|
-
} catch (
|
|
21098
|
-
var we =
|
|
21097
|
+
} catch (Re) {
|
|
21098
|
+
var we = L(L(Re));
|
|
21099
21099
|
le["%Error.prototype%"] = we;
|
|
21100
21100
|
}
|
|
21101
|
-
var ve = function
|
|
21101
|
+
var ve = function Re(Be) {
|
|
21102
21102
|
var V;
|
|
21103
21103
|
if (Be === "%AsyncFunction%")
|
|
21104
21104
|
V = w("async function () {}");
|
|
@@ -21107,11 +21107,11 @@ function Kp() {
|
|
|
21107
21107
|
else if (Be === "%AsyncGeneratorFunction%")
|
|
21108
21108
|
V = w("async function* () {}");
|
|
21109
21109
|
else if (Be === "%AsyncGenerator%") {
|
|
21110
|
-
var G =
|
|
21110
|
+
var G = Re("%AsyncGeneratorFunction%");
|
|
21111
21111
|
G && (V = G.prototype);
|
|
21112
21112
|
} else if (Be === "%AsyncIteratorPrototype%") {
|
|
21113
|
-
var j =
|
|
21114
|
-
j &&
|
|
21113
|
+
var j = Re("%AsyncGenerator%");
|
|
21114
|
+
j && L && (V = L(j.prototype));
|
|
21115
21115
|
}
|
|
21116
21116
|
return le[Be] = V, V;
|
|
21117
21117
|
}, _e = {
|
|
@@ -21167,19 +21167,19 @@ function Kp() {
|
|
|
21167
21167
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
21168
21168
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
21169
21169
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
21170
|
-
}, de = ul(),
|
|
21171
|
-
var V =
|
|
21170
|
+
}, de = ul(), De = /* @__PURE__ */ xD(), Oe = de.call(ae, Array.prototype.concat), $e = de.call(K, Array.prototype.splice), pe = de.call(ae, String.prototype.replace), Ne = de.call(ae, String.prototype.slice), Pe = de.call(ae, RegExp.prototype.exec), Ce = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, xe = /\\(\\)?/g, Ke = function(Be) {
|
|
21171
|
+
var V = Ne(Be, 0, 1), G = Ne(Be, -1);
|
|
21172
21172
|
if (V === "%" && G !== "%")
|
|
21173
21173
|
throw new u("invalid intrinsic syntax, expected closing `%`");
|
|
21174
21174
|
if (G === "%" && V !== "%")
|
|
21175
21175
|
throw new u("invalid intrinsic syntax, expected opening `%`");
|
|
21176
21176
|
var j = [];
|
|
21177
|
-
return
|
|
21178
|
-
j[j.length] = Q ?
|
|
21177
|
+
return pe(Be, Ce, function(Y, te, Q, be) {
|
|
21178
|
+
j[j.length] = Q ? pe(be, xe, "$1") : te || Y;
|
|
21179
21179
|
}), j;
|
|
21180
21180
|
}, rt = function(Be, V) {
|
|
21181
21181
|
var G = Be, j;
|
|
21182
|
-
if (
|
|
21182
|
+
if (De(_e, G) && (j = _e[G], G = "%" + j[0] + "%"), De(le, G)) {
|
|
21183
21183
|
var Y = le[G];
|
|
21184
21184
|
if (Y === X && (Y = ve(G)), typeof Y > "u" && !V)
|
|
21185
21185
|
throw new c("intrinsic " + Be + " exists, but is not available. Please file an issue!");
|
|
@@ -21201,10 +21201,10 @@ function Kp() {
|
|
|
21201
21201
|
var G = Ke(Be), j = G.length > 0 ? G[0] : "", Y = rt("%" + j + "%", V), te = Y.name, Q = Y.value, be = !1, je = Y.alias;
|
|
21202
21202
|
je && (j = je[0], $e(G, Oe([0, 1], je)));
|
|
21203
21203
|
for (var Ve = 1, oe = !0; Ve < G.length; Ve += 1) {
|
|
21204
|
-
var ge = G[Ve], Ge =
|
|
21204
|
+
var ge = G[Ve], Ge = Ne(ge, 0, 1), ot = Ne(ge, -1);
|
|
21205
21205
|
if ((Ge === '"' || Ge === "'" || Ge === "`" || ot === '"' || ot === "'" || ot === "`") && Ge !== ot)
|
|
21206
21206
|
throw new u("property names with quotes must have matching quotes");
|
|
21207
|
-
if ((ge === "constructor" || !oe) && (be = !0), j += "." + ge, te = "%" + j + "%",
|
|
21207
|
+
if ((ge === "constructor" || !oe) && (be = !0), j += "." + ge, te = "%" + j + "%", De(le, te))
|
|
21208
21208
|
Q = le[te];
|
|
21209
21209
|
else if (Q != null) {
|
|
21210
21210
|
if (!(ge in Q)) {
|
|
@@ -21216,7 +21216,7 @@ function Kp() {
|
|
|
21216
21216
|
var ut = T(Q, ge);
|
|
21217
21217
|
oe = !!ut, oe && "get" in ut && !("originalValue" in ut.get) ? Q = ut.get : Q = Q[ge];
|
|
21218
21218
|
} else
|
|
21219
|
-
oe =
|
|
21219
|
+
oe = De(Q, ge), Q = Q[ge];
|
|
21220
21220
|
oe && !be && (le[te] = Q);
|
|
21221
21221
|
}
|
|
21222
21222
|
}
|
|
@@ -21394,13 +21394,13 @@ function Hx() {
|
|
|
21394
21394
|
var M = w;
|
|
21395
21395
|
return t(w) && !t(T) && (M = a(w, P)), t(w) && t(T) ? (T.forEach(function(O, R) {
|
|
21396
21396
|
if (e.call(w, R)) {
|
|
21397
|
-
var
|
|
21398
|
-
|
|
21397
|
+
var L = w[R];
|
|
21398
|
+
L && typeof L == "object" && O && typeof O == "object" ? w[R] = _(L, O, P) : w.push(O);
|
|
21399
21399
|
} else
|
|
21400
21400
|
w[R] = O;
|
|
21401
21401
|
}), w) : Object.keys(T).reduce(function(O, R) {
|
|
21402
|
-
var
|
|
21403
|
-
return e.call(O, R) ? O[R] = _(O[R],
|
|
21402
|
+
var L = T[R];
|
|
21403
|
+
return e.call(O, R) ? O[R] = _(O[R], L, P) : O[R] = L, O;
|
|
21404
21404
|
}, M);
|
|
21405
21405
|
}, c = function(w, T) {
|
|
21406
21406
|
return Object.keys(T).reduce(function(P, M) {
|
|
@@ -21420,10 +21420,10 @@ function Hx() {
|
|
|
21420
21420
|
return w;
|
|
21421
21421
|
var R = w;
|
|
21422
21422
|
if (typeof w == "symbol" ? R = Symbol.prototype.toString.call(w) : typeof w != "string" && (R = String(w)), P === "iso-8859-1")
|
|
21423
|
-
return escape(R).replace(/%u[0-9a-f]{4}/gi, function(
|
|
21424
|
-
return "%26%23" + parseInt(
|
|
21423
|
+
return escape(R).replace(/%u[0-9a-f]{4}/gi, function(me) {
|
|
21424
|
+
return "%26%23" + parseInt(me.slice(2), 16) + "%3B";
|
|
21425
21425
|
});
|
|
21426
|
-
for (var
|
|
21426
|
+
for (var L = "", D = 0; D < R.length; D += h) {
|
|
21427
21427
|
for (var $ = R.length >= h ? R.slice(D, D + h) : R, K = [], ae = 0; ae < $.length; ++ae) {
|
|
21428
21428
|
var X = $.charCodeAt(ae);
|
|
21429
21429
|
if (X === 45 || X === 46 || X === 95 || X === 126 || X >= 48 && X <= 57 || X >= 65 && X <= 90 || X >= 97 && X <= 122 || O === r.RFC1738 && (X === 40 || X === 41)) {
|
|
@@ -21444,13 +21444,13 @@ function Hx() {
|
|
|
21444
21444
|
}
|
|
21445
21445
|
ae += 1, X = 65536 + ((X & 1023) << 10 | $.charCodeAt(ae) & 1023), K[K.length] = n[240 | X >> 18] + n[128 | X >> 12 & 63] + n[128 | X >> 6 & 63] + n[128 | X & 63];
|
|
21446
21446
|
}
|
|
21447
|
-
|
|
21447
|
+
L += K.join("");
|
|
21448
21448
|
}
|
|
21449
|
-
return
|
|
21449
|
+
return L;
|
|
21450
21450
|
}, m = function(w) {
|
|
21451
21451
|
for (var T = [{ obj: { o: w }, prop: "o" }], P = [], M = 0; M < T.length; ++M)
|
|
21452
|
-
for (var O = T[M], R = O.obj[O.prop],
|
|
21453
|
-
var $ =
|
|
21452
|
+
for (var O = T[M], R = O.obj[O.prop], L = Object.keys(R), D = 0; D < L.length; ++D) {
|
|
21453
|
+
var $ = L[D], K = R[$];
|
|
21454
21454
|
typeof K == "object" && K !== null && P.indexOf(K) === -1 && (T.push({ obj: R, prop: $ }), P.push(K));
|
|
21455
21455
|
}
|
|
21456
21456
|
return i(T), w;
|
|
@@ -21523,27 +21523,27 @@ function OD() {
|
|
|
21523
21523
|
strictNullHandling: !1
|
|
21524
21524
|
}, m = function(_) {
|
|
21525
21525
|
return typeof _ == "string" || typeof _ == "number" || typeof _ == "boolean" || typeof _ == "symbol" || typeof _ == "bigint";
|
|
21526
|
-
}, y = {}, g = function A(_, w, T, P, M, O, R,
|
|
21527
|
-
for (var de = _,
|
|
21528
|
-
var
|
|
21529
|
-
if (Oe += 1, typeof
|
|
21530
|
-
if (
|
|
21526
|
+
}, y = {}, g = function A(_, w, T, P, M, O, R, L, D, $, K, ae, X, me, le, we, ve, _e) {
|
|
21527
|
+
for (var de = _, De = _e, Oe = 0, $e = !1; (De = De.get(y)) !== void 0 && !$e; ) {
|
|
21528
|
+
var pe = De.get(_);
|
|
21529
|
+
if (Oe += 1, typeof pe < "u") {
|
|
21530
|
+
if (pe === Oe)
|
|
21531
21531
|
throw new RangeError("Cyclic object value");
|
|
21532
21532
|
$e = !0;
|
|
21533
21533
|
}
|
|
21534
|
-
typeof
|
|
21534
|
+
typeof De.get(y) > "u" && (Oe = 0);
|
|
21535
21535
|
}
|
|
21536
21536
|
if (typeof $ == "function" ? de = $(w, de) : de instanceof Date ? de = X(de) : T === "comma" && a(de) && (de = e.maybeMap(de, function(te) {
|
|
21537
21537
|
return te instanceof Date ? X(te) : te;
|
|
21538
21538
|
})), de === null) {
|
|
21539
21539
|
if (O)
|
|
21540
|
-
return D && !we ? D(w, p.encoder, ve, "key",
|
|
21540
|
+
return D && !we ? D(w, p.encoder, ve, "key", me) : w;
|
|
21541
21541
|
de = "";
|
|
21542
21542
|
}
|
|
21543
21543
|
if (m(de) || e.isBuffer(de)) {
|
|
21544
21544
|
if (D) {
|
|
21545
|
-
var
|
|
21546
|
-
return [le(
|
|
21545
|
+
var Ne = we ? w : D(w, p.encoder, ve, "key", me);
|
|
21546
|
+
return [le(Ne) + "=" + le(D(de, p.encoder, ve, "value", me))];
|
|
21547
21547
|
}
|
|
21548
21548
|
return [le(w) + "=" + le(String(de))];
|
|
21549
21549
|
}
|
|
@@ -21559,13 +21559,13 @@ function OD() {
|
|
|
21559
21559
|
var xe = Object.keys(de);
|
|
21560
21560
|
Ce = K ? xe.sort(K) : xe;
|
|
21561
21561
|
}
|
|
21562
|
-
var Ke =
|
|
21562
|
+
var Ke = L ? String(w).replace(/\./g, "%2E") : String(w), rt = P && a(de) && de.length === 1 ? Ke + "[]" : Ke;
|
|
21563
21563
|
if (M && a(de) && de.length === 0)
|
|
21564
21564
|
return rt + "[]";
|
|
21565
|
-
for (var
|
|
21566
|
-
var Be = Ce[
|
|
21565
|
+
for (var Re = 0; Re < Ce.length; ++Re) {
|
|
21566
|
+
var Be = Ce[Re], V = typeof Be == "object" && Be && typeof Be.value < "u" ? Be.value : de[Be];
|
|
21567
21567
|
if (!(R && V === null)) {
|
|
21568
|
-
var G = ae &&
|
|
21568
|
+
var G = ae && L ? String(Be).replace(/\./g, "%2E") : String(Be), j = a(de) ? typeof T == "function" ? T(rt, G) : rt : rt + (ae ? "." + G : "[" + G + "]");
|
|
21569
21569
|
_e.set(_, Oe);
|
|
21570
21570
|
var Y = r();
|
|
21571
21571
|
Y.set(y, _e), c(Pe, A(
|
|
@@ -21576,13 +21576,13 @@ function OD() {
|
|
|
21576
21576
|
M,
|
|
21577
21577
|
O,
|
|
21578
21578
|
R,
|
|
21579
|
-
|
|
21579
|
+
L,
|
|
21580
21580
|
T === "comma" && we && a(de) ? null : D,
|
|
21581
21581
|
$,
|
|
21582
21582
|
K,
|
|
21583
21583
|
ae,
|
|
21584
21584
|
X,
|
|
21585
|
-
|
|
21585
|
+
me,
|
|
21586
21586
|
le,
|
|
21587
21587
|
we,
|
|
21588
21588
|
ve,
|
|
@@ -21643,7 +21643,7 @@ function OD() {
|
|
|
21643
21643
|
var O = [];
|
|
21644
21644
|
if (typeof w != "object" || w === null)
|
|
21645
21645
|
return "";
|
|
21646
|
-
var R = i[T.arrayFormat],
|
|
21646
|
+
var R = i[T.arrayFormat], L = R === "comma" && T.commaRoundTrip;
|
|
21647
21647
|
P || (P = Object.keys(w)), T.sort && P.sort(T.sort);
|
|
21648
21648
|
for (var D = r(), $ = 0; $ < P.length; ++$) {
|
|
21649
21649
|
var K = P[$], ae = w[K];
|
|
@@ -21651,7 +21651,7 @@ function OD() {
|
|
|
21651
21651
|
ae,
|
|
21652
21652
|
K,
|
|
21653
21653
|
R,
|
|
21654
|
-
|
|
21654
|
+
L,
|
|
21655
21655
|
T.allowEmptyArrays,
|
|
21656
21656
|
T.strictNullHandling,
|
|
21657
21657
|
T.skipNulls,
|
|
@@ -21668,8 +21668,8 @@ function OD() {
|
|
|
21668
21668
|
D
|
|
21669
21669
|
));
|
|
21670
21670
|
}
|
|
21671
|
-
var X = O.join(T.delimiter),
|
|
21672
|
-
return T.charsetSentinel && (T.charset === "iso-8859-1" ?
|
|
21671
|
+
var X = O.join(T.delimiter), me = T.addQueryPrefix === !0 ? "?" : "";
|
|
21672
|
+
return T.charsetSentinel && (T.charset === "iso-8859-1" ? me += "utf8=%26%2310003%3B&" : me += "utf8=%E2%9C%93&"), X.length > 0 ? me + X : "";
|
|
21673
21673
|
}, jh;
|
|
21674
21674
|
}
|
|
21675
21675
|
var $h, nb;
|
|
@@ -21723,7 +21723,7 @@ function TD() {
|
|
|
21723
21723
|
T[M].indexOf("utf8=") === 0 && (T[M] === c ? O = "utf-8" : T[M] === u && (O = "iso-8859-1"), P = M, M = T.length);
|
|
21724
21724
|
for (M = 0; M < T.length; ++M)
|
|
21725
21725
|
if (M !== P) {
|
|
21726
|
-
var R = T[M],
|
|
21726
|
+
var R = T[M], L = R.indexOf("]="), D = L === -1 ? R.indexOf("=") : L + 1, $, K;
|
|
21727
21727
|
D === -1 ? ($ = b.decoder(R, n.decoder, O, "key"), K = b.strictNullHandling ? null : "") : ($ = b.decoder(R.slice(0, D), n.decoder, O, "key"), K = r.maybeMap(
|
|
21728
21728
|
a(
|
|
21729
21729
|
R.slice(D + 1),
|
|
@@ -21750,8 +21750,8 @@ function TD() {
|
|
|
21750
21750
|
M = b.allowEmptyArrays && (T === "" || b.strictNullHandling && T === null) ? [] : r.combine([], T);
|
|
21751
21751
|
else {
|
|
21752
21752
|
M = b.plainObjects ? { __proto__: null } : {};
|
|
21753
|
-
var R = O.charAt(0) === "[" && O.charAt(O.length - 1) === "]" ? O.slice(1, -1) : O,
|
|
21754
|
-
!b.parseArrays &&
|
|
21753
|
+
var R = O.charAt(0) === "[" && O.charAt(O.length - 1) === "]" ? O.slice(1, -1) : O, L = b.decodeDotInKeys ? R.replace(/%2E/g, ".") : R, D = parseInt(L, 10);
|
|
21754
|
+
!b.parseArrays && L === "" ? M = { 0: T } : !isNaN(D) && O !== L && String(D) === L && D >= 0 && b.parseArrays && D <= b.arrayLimit ? (M = [], M[D] = T) : L !== "__proto__" && (M[L] = T);
|
|
21755
21755
|
}
|
|
21756
21756
|
T = M;
|
|
21757
21757
|
}
|
|
@@ -21764,8 +21764,8 @@ function TD() {
|
|
|
21764
21764
|
return;
|
|
21765
21765
|
R.push(O);
|
|
21766
21766
|
}
|
|
21767
|
-
for (var
|
|
21768
|
-
if (
|
|
21767
|
+
for (var L = 0; A.depth > 0 && (M = P.exec(w)) !== null && L < A.depth; ) {
|
|
21768
|
+
if (L += 1, !A.plainObjects && e.call(Object.prototype, M[1].slice(1, -1)) && !A.allowPrototypes)
|
|
21769
21769
|
return;
|
|
21770
21770
|
R.push(M[1]);
|
|
21771
21771
|
}
|
|
@@ -22161,16 +22161,16 @@ function ID() {
|
|
|
22161
22161
|
return G.name.value === "rest";
|
|
22162
22162
|
}) : null;
|
|
22163
22163
|
};
|
|
22164
|
-
function
|
|
22164
|
+
function L(V, G, j, Y, te) {
|
|
22165
22165
|
return te == null || G == null || typeof G == "number" || typeof G == "boolean" || typeof G == "string" || te.selections.forEach(function(Q) {
|
|
22166
22166
|
if (i.isInlineFragment(Q))
|
|
22167
|
-
|
|
22167
|
+
L(V, G, j, Y, Q.selectionSet);
|
|
22168
22168
|
else if (Q.kind === "FragmentSpread") {
|
|
22169
22169
|
var be = Y[Q.name.value];
|
|
22170
|
-
|
|
22170
|
+
L(V, G, j, Y, be.selectionSet);
|
|
22171
22171
|
} else if (i.isField(Q)) {
|
|
22172
22172
|
var je = i.resultKeyNameFromField(Q);
|
|
22173
|
-
je === V && R(Q) != null ? D(G, j, Y, Q.selectionSet) :
|
|
22173
|
+
je === V && R(Q) != null ? D(G, j, Y, Q.selectionSet) : L(V, G, j, Y, Q.selectionSet);
|
|
22174
22174
|
} else
|
|
22175
22175
|
return (function(Ve) {
|
|
22176
22176
|
throw new Error("Unhandled Node Type in SelectionSetNode.selections");
|
|
@@ -22250,7 +22250,7 @@ function ID() {
|
|
|
22250
22250
|
var j = P(G), Y = j.shift();
|
|
22251
22251
|
return X(V[Y], j);
|
|
22252
22252
|
}
|
|
22253
|
-
var
|
|
22253
|
+
var me = ["__typename"], le = typeof globalThis == "object" && globalThis || Fs, we = function(V, G, j) {
|
|
22254
22254
|
j === void 0 && (j = []);
|
|
22255
22255
|
var Y = null;
|
|
22256
22256
|
return G.length != 2 ? Y = function(te, Q) {
|
|
@@ -22259,7 +22259,7 @@ function ID() {
|
|
|
22259
22259
|
return we(te, Y, P(j, [String(Q)]));
|
|
22260
22260
|
}) : V == null || typeof V != "object" || V.constructor !== Object || le.FileList && V instanceof FileList || le.File && V instanceof File ? V : Object.keys(V).reduce(function(te, Q) {
|
|
22261
22261
|
var be = V[Q];
|
|
22262
|
-
if (
|
|
22262
|
+
if (me.indexOf(Q) !== -1)
|
|
22263
22263
|
return te[Q] = be, te;
|
|
22264
22264
|
var je = P(j, [Q]);
|
|
22265
22265
|
return te[Y(Q, je)] = we(be, Y, je), te;
|
|
@@ -22276,16 +22276,16 @@ function ID() {
|
|
|
22276
22276
|
j.append(Q, te);
|
|
22277
22277
|
})), j;
|
|
22278
22278
|
}, new Headers());
|
|
22279
|
-
},
|
|
22279
|
+
}, De = function(V, G, j) {
|
|
22280
22280
|
var Y = new Headers();
|
|
22281
22281
|
return V.forEach(function(te, Q) {
|
|
22282
22282
|
G.indexOf(Q) === -1 && Y.append(Q, te);
|
|
22283
22283
|
}), de(Y, j || new Headers());
|
|
22284
22284
|
}, Oe = function(V) {
|
|
22285
22285
|
return function(G, j) {
|
|
22286
|
-
return
|
|
22286
|
+
return De(G, V, j);
|
|
22287
22287
|
};
|
|
22288
|
-
}, $e = ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
22288
|
+
}, $e = ["GET", "POST", "PUT", "PATCH", "DELETE"], pe = function(V, G) {
|
|
22289
22289
|
switch (G) {
|
|
22290
22290
|
case "query":
|
|
22291
22291
|
if ($e.indexOf(V.toUpperCase()) !== -1)
|
|
@@ -22301,7 +22301,7 @@ function ID() {
|
|
|
22301
22301
|
var j = G;
|
|
22302
22302
|
return j;
|
|
22303
22303
|
}
|
|
22304
|
-
},
|
|
22304
|
+
}, Ne = function(V, G, j) {
|
|
22305
22305
|
var Y = new Error(j);
|
|
22306
22306
|
throw Y.response = V, Y.statusCode = V.status, Y.result = G, Y;
|
|
22307
22307
|
}, Pe = function(V, G) {
|
|
@@ -22310,7 +22310,7 @@ function ID() {
|
|
|
22310
22310
|
}) : (V.__typename = G, V);
|
|
22311
22311
|
}, Ce = function(V, G, j, Y, te) {
|
|
22312
22312
|
return w(void 0, void 0, void 0, function() {
|
|
22313
|
-
var Q, be, je, Ve, oe, ge, Ge, ot, ut, Ht, _t, Qt, nr, mr, Rt, ir, lr, Ur, Lt, Gt, H, J, nt, at, ct, ze, Jt, Tr, sr, yr, On, Zt, Mt, Xr, Nr, gr, jr, Rr, fr, kr, Tn, oi, kn, wr, $r,
|
|
22313
|
+
var Q, be, je, Ve, oe, ge, Ge, ot, ut, Ht, _t, Qt, nr, mr, Rt, ir, lr, Ur, Lt, Gt, H, J, nt, at, ct, ze, Jt, Tr, sr, yr, On, Zt, Mt, Xr, Nr, gr, jr, Rr, fr, kr, Tn, oi, kn, wr, $r, Bt, Dt, An, In, cn;
|
|
22314
22314
|
return T(this, function(mt) {
|
|
22315
22315
|
switch (mt.label) {
|
|
22316
22316
|
case 0:
|
|
@@ -22354,23 +22354,23 @@ function ID() {
|
|
|
22354
22354
|
kn = fr ? fr(kr, nr) : H[Ke](kr, nr);
|
|
22355
22355
|
kr = kn.body, Tn = new Headers(kn.headers);
|
|
22356
22356
|
}
|
|
22357
|
-
return
|
|
22357
|
+
return pe(Mt, Rt || "query"), wr = _({ method: Mt, headers: Tn || nr, body: kr }, _t ? { credentials: _t } : {}), $r = "" + Tr.uri + On, [4, (mr || fetch)($r, wr)];
|
|
22358
22358
|
case 1:
|
|
22359
|
-
return
|
|
22359
|
+
return Bt = mt.sent(), Y.responses.push(Bt), Bt.ok ? (Bt.status === 204 || Bt.headers.get("Content-Length") === "0" ? Dt = {} : Dt = Bt, [3, 9]) : [3, 2];
|
|
22360
22360
|
case 2:
|
|
22361
|
-
return
|
|
22361
|
+
return Bt.status !== 404 ? [3, 3] : (Dt = null, [3, 9]);
|
|
22362
22362
|
case 3:
|
|
22363
22363
|
An = void 0, mt.label = 4;
|
|
22364
22364
|
case 4:
|
|
22365
|
-
return mt.trys.push([4, 6, , 8]), [4,
|
|
22365
|
+
return mt.trys.push([4, 6, , 8]), [4, Bt.clone().json()];
|
|
22366
22366
|
case 5:
|
|
22367
22367
|
return An = mt.sent(), [3, 8];
|
|
22368
22368
|
case 6:
|
|
22369
|
-
return mt.sent(), [4,
|
|
22369
|
+
return mt.sent(), [4, Bt.clone().text()];
|
|
22370
22370
|
case 7:
|
|
22371
22371
|
return An = mt.sent(), [3, 8];
|
|
22372
22372
|
case 8:
|
|
22373
|
-
|
|
22373
|
+
Ne(Bt, An, "Response not successful: Received status code " + Bt.status), mt.label = 9;
|
|
22374
22374
|
case 9:
|
|
22375
22375
|
if (In = Tr.responseTransformer || J, !In) return [3, 14];
|
|
22376
22376
|
mt.label = 10;
|
|
@@ -22387,7 +22387,7 @@ function ID() {
|
|
|
22387
22387
|
case 15:
|
|
22388
22388
|
Dt = mt.sent(), mt.label = 16;
|
|
22389
22389
|
case 16:
|
|
22390
|
-
return Dt = we(Dt, Rr || Lt || ve), Dt =
|
|
22390
|
+
return Dt = we(Dt, Rr || Lt || ve), Dt = L(je, Dt, lr, nt, lr.selectionSet), Dt = O(Dt, Xr, ir, {
|
|
22391
22391
|
resolverParams: { fieldName: V, root: G, args: j, context: Y, info: te }
|
|
22392
22392
|
}), [2, ge(Dt)];
|
|
22393
22393
|
}
|
|
@@ -22398,7 +22398,7 @@ function ID() {
|
|
|
22398
22398
|
body: JSON.stringify(V),
|
|
22399
22399
|
headers: G
|
|
22400
22400
|
};
|
|
22401
|
-
},
|
|
22401
|
+
}, Re = {
|
|
22402
22402
|
test: function(V) {
|
|
22403
22403
|
return V.name.value === "rest";
|
|
22404
22404
|
},
|
|
@@ -22451,7 +22451,7 @@ function ID() {
|
|
|
22451
22451
|
if (Y)
|
|
22452
22452
|
return Y;
|
|
22453
22453
|
i.checkDocument(j);
|
|
22454
|
-
var te = i.removeDirectivesFromDocument([
|
|
22454
|
+
var te = i.removeDirectivesFromDocument([Re], j);
|
|
22455
22455
|
return this.processedDocuments.set(j, te), te;
|
|
22456
22456
|
}, G.prototype.request = function(j, Y) {
|
|
22457
22457
|
var te = j.query, Q = j.variables, be = j.getContext, je = j.setContext, Ve = be(), oe = i.hasDirectives(["rest"], te);
|
|
@@ -22499,34 +22499,34 @@ function ID() {
|
|
|
22499
22499
|
}
|
|
22500
22500
|
var CD = ID();
|
|
22501
22501
|
const cl = zo.createContext(), PD = () => {
|
|
22502
|
-
const { isAuthenticated: r, login: e } = Ui(), { children: t, isEmbedded: n, setIsEmbedded: i, authError: a } = qr(cl), u = yI(), c = gI(), [f, h] = Ot(!1), [p, m] = Ot(), [y, g] = Ot(), [b, A] = Ot({}), _ = is({}), w = is({}), T = is(/* @__PURE__ */ new Set()), [P, M] = Ot(!1), [O, R] = Ot({}),
|
|
22503
|
-
(
|
|
22502
|
+
const { isAuthenticated: r, login: e } = Ui(), { children: t, isEmbedded: n, setIsEmbedded: i, authError: a } = qr(cl), u = yI(), c = gI(), [f, h] = Ot(!1), [p, m] = Ot(), [y, g] = Ot(), [b, A] = Ot({}), _ = is({}), w = is({}), T = is(/* @__PURE__ */ new Set()), [P, M] = Ot(!1), [O, R] = Ot({}), L = gn(
|
|
22503
|
+
(pe, Ne = {}) => {
|
|
22504
22504
|
f && window.parent.postMessage(
|
|
22505
22505
|
{
|
|
22506
|
-
type:
|
|
22506
|
+
type: pe,
|
|
22507
22507
|
instanceId: y,
|
|
22508
|
-
...
|
|
22508
|
+
...Ne
|
|
22509
22509
|
},
|
|
22510
22510
|
p
|
|
22511
22511
|
);
|
|
22512
22512
|
},
|
|
22513
22513
|
[f, y, p]
|
|
22514
22514
|
), D = gn(
|
|
22515
|
-
(
|
|
22516
|
-
if (!
|
|
22515
|
+
(pe, Ne, Pe = {}) => {
|
|
22516
|
+
if (!pe)
|
|
22517
22517
|
throw new Error("Namespace is required for sendMessage");
|
|
22518
|
-
|
|
22518
|
+
L(`${pe}:${Ne}`, Pe);
|
|
22519
22519
|
},
|
|
22520
|
-
[
|
|
22520
|
+
[L]
|
|
22521
22521
|
);
|
|
22522
|
-
|
|
22522
|
+
jt(() => {
|
|
22523
22523
|
if (!(!c || c.pathname !== "/mm-embedded-login")) {
|
|
22524
22524
|
if (r || a)
|
|
22525
22525
|
if (new URL(origin)?.protocol === "http:") {
|
|
22526
22526
|
window.close();
|
|
22527
22527
|
return;
|
|
22528
22528
|
} else {
|
|
22529
|
-
const
|
|
22529
|
+
const Ne = new URLSearchParams(c.search), Pe = Ne.get("id"), Ce = Ne.get("origin");
|
|
22530
22530
|
a ? window.parent.postMessage(
|
|
22531
22531
|
{
|
|
22532
22532
|
type: "authorize-failed",
|
|
@@ -22547,10 +22547,10 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22547
22547
|
}
|
|
22548
22548
|
r === !1 && e();
|
|
22549
22549
|
}
|
|
22550
|
-
}, [c]),
|
|
22550
|
+
}, [c]), jt(() => {
|
|
22551
22551
|
if (r === null || !c || c.pathname !== "/mm-embedded-interop")
|
|
22552
22552
|
return;
|
|
22553
|
-
const
|
|
22553
|
+
const pe = new URLSearchParams(c.search), Ne = pe.get("id"), Pe = pe.get("origin");
|
|
22554
22554
|
if (Pe) {
|
|
22555
22555
|
const Ce = new URL(Pe)?.hostname;
|
|
22556
22556
|
if (/^(?:[\w-]+\.)*(?:machinemetrics\.com|machinemetrics-us-gov\.com|m12s\.com)$/.test(
|
|
@@ -22565,14 +22565,14 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22565
22565
|
if (r === !1) {
|
|
22566
22566
|
if (Pe) {
|
|
22567
22567
|
const Ce = {
|
|
22568
|
-
instanceId:
|
|
22569
|
-
authUrl: `${window.location.origin}/mm-embedded-login?id=${
|
|
22568
|
+
instanceId: Ne,
|
|
22569
|
+
authUrl: `${window.location.origin}/mm-embedded-login?id=${Ne}&origin=${Pe}`,
|
|
22570
22570
|
origin: Pe
|
|
22571
22571
|
};
|
|
22572
22572
|
if (new URL(Pe)?.protocol === "http:") {
|
|
22573
22573
|
window.parent.postMessage(
|
|
22574
22574
|
{
|
|
22575
|
-
type: "
|
|
22575
|
+
type: "authorize",
|
|
22576
22576
|
...Ce
|
|
22577
22577
|
},
|
|
22578
22578
|
Pe
|
|
@@ -22589,33 +22589,33 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22589
22589
|
e();
|
|
22590
22590
|
return;
|
|
22591
22591
|
}
|
|
22592
|
-
|
|
22593
|
-
}, [c, r]), vI(({ nextLocation:
|
|
22592
|
+
Ne && g(Ne), Ne && Pe && i(!0);
|
|
22593
|
+
}, [c, r]), vI(({ nextLocation: pe }) => n ? pe.state?.fromParent ? (h(!0), !1) : ($(`${pe.pathname}${pe.search}`), !0) : !1), jt(() => {
|
|
22594
22594
|
if (!n || !p)
|
|
22595
22595
|
return;
|
|
22596
|
-
const
|
|
22596
|
+
const pe = (Ce) => {
|
|
22597
22597
|
const xe = Ce.toLowerCase().split("+"), Ke = ["shift", "ctrl", "alt", "meta", "mod"], rt = {
|
|
22598
22598
|
shift: xe.includes("shift"),
|
|
22599
22599
|
ctrl: xe.includes("ctrl"),
|
|
22600
22600
|
alt: xe.includes("alt"),
|
|
22601
22601
|
meta: xe.includes("meta"),
|
|
22602
22602
|
mod: xe.includes("mod")
|
|
22603
|
-
},
|
|
22603
|
+
}, Re = xe.filter(
|
|
22604
22604
|
(V) => !Ke.includes(V)
|
|
22605
22605
|
);
|
|
22606
|
-
if (
|
|
22606
|
+
if (Re.length === 0)
|
|
22607
22607
|
return { modifiers: rt, key: null, isValid: !1 };
|
|
22608
|
-
const Be =
|
|
22608
|
+
const Be = Re[Re.length - 1];
|
|
22609
22609
|
return { modifiers: rt, key: Be, isValid: !0 };
|
|
22610
|
-
},
|
|
22611
|
-
const { modifiers: Ke, key: rt, isValid:
|
|
22612
|
-
if (!
|
|
22610
|
+
}, Ne = (Ce, xe) => {
|
|
22611
|
+
const { modifiers: Ke, key: rt, isValid: Re } = pe(xe);
|
|
22612
|
+
if (!Re)
|
|
22613
22613
|
return !1;
|
|
22614
22614
|
const Be = Ce.key.toLowerCase() === rt, V = Ce.shiftKey === Ke.shift, G = Ce.altKey === Ke.alt, j = Ke.mod ? Ce.ctrlKey || Ce.metaKey : Ce.ctrlKey === Ke.ctrl && Ce.metaKey === Ke.meta;
|
|
22615
22615
|
return Be && V && G && j;
|
|
22616
22616
|
}, Pe = (Ce) => {
|
|
22617
22617
|
T.current.forEach((xe) => {
|
|
22618
|
-
|
|
22618
|
+
Ne(Ce, xe) && (Ce.preventDefault(), window.parent.postMessage(
|
|
22619
22619
|
{
|
|
22620
22620
|
type: `key-pressed:${xe}`,
|
|
22621
22621
|
instanceId: y,
|
|
@@ -22628,11 +22628,11 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22628
22628
|
return window.addEventListener("keydown", Pe), () => {
|
|
22629
22629
|
window.removeEventListener("keydown", Pe);
|
|
22630
22630
|
};
|
|
22631
|
-
}, [n, p, y]),
|
|
22631
|
+
}, [n, p, y]), jt(() => {
|
|
22632
22632
|
if (!n || !p)
|
|
22633
22633
|
return;
|
|
22634
|
-
const
|
|
22635
|
-
if (
|
|
22634
|
+
const pe = ({ origin: Ne, data: Pe }) => {
|
|
22635
|
+
if (Ne === p)
|
|
22636
22636
|
switch (Pe.type) {
|
|
22637
22637
|
case "navigate":
|
|
22638
22638
|
u(Pe.path, { replace: !0, state: { fromParent: !0 } });
|
|
@@ -22667,144 +22667,144 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22667
22667
|
break;
|
|
22668
22668
|
}
|
|
22669
22669
|
};
|
|
22670
|
-
return window.addEventListener("message",
|
|
22670
|
+
return window.addEventListener("message", pe), !f && r && window.parent.postMessage(
|
|
22671
22671
|
{
|
|
22672
22672
|
type: "ready",
|
|
22673
22673
|
instanceId: y
|
|
22674
22674
|
},
|
|
22675
22675
|
p
|
|
22676
22676
|
), () => {
|
|
22677
|
-
window.removeEventListener("message",
|
|
22677
|
+
window.removeEventListener("message", pe);
|
|
22678
22678
|
};
|
|
22679
22679
|
}, [u, f, n, r, p]);
|
|
22680
22680
|
const $ = gn(
|
|
22681
|
-
(
|
|
22682
|
-
!f && !r ||
|
|
22681
|
+
(pe, Ne) => {
|
|
22682
|
+
!f && !r || L("set-path", { path: pe, ...Ne });
|
|
22683
22683
|
},
|
|
22684
|
-
[f, r,
|
|
22684
|
+
[f, r, L]
|
|
22685
22685
|
), K = gn(
|
|
22686
|
-
(
|
|
22687
|
-
const Ce = pc(), xe =
|
|
22688
|
-
xe &&
|
|
22686
|
+
(pe, Ne) => f ? new Promise((Pe) => {
|
|
22687
|
+
const Ce = pc(), xe = Ne?.onSave ? pc() : void 0;
|
|
22688
|
+
xe && Ne?.onSave && (_.current[xe] = Ne.onSave);
|
|
22689
22689
|
const Ke = async () => {
|
|
22690
22690
|
delete _.current[Ce], xe && delete _.current[xe], Pe();
|
|
22691
22691
|
};
|
|
22692
|
-
_.current[Ce] = Ke,
|
|
22693
|
-
path:
|
|
22692
|
+
_.current[Ce] = Ke, L("set-path", {
|
|
22693
|
+
path: pe,
|
|
22694
22694
|
variant: "sidesheet",
|
|
22695
|
-
...
|
|
22695
|
+
...Ne,
|
|
22696
22696
|
onSave: void 0,
|
|
22697
22697
|
callbackId: Ce,
|
|
22698
22698
|
onSaveCallbackId: xe
|
|
22699
22699
|
});
|
|
22700
22700
|
}) : Promise.reject(new Error("Not ready")),
|
|
22701
|
-
[f,
|
|
22701
|
+
[f, L]
|
|
22702
22702
|
), ae = gn(
|
|
22703
|
-
(
|
|
22704
|
-
|
|
22703
|
+
(pe) => {
|
|
22704
|
+
L("set-summary", { summary: pe });
|
|
22705
22705
|
},
|
|
22706
|
-
[
|
|
22706
|
+
[L]
|
|
22707
22707
|
), X = gn(
|
|
22708
|
-
(
|
|
22709
|
-
|
|
22708
|
+
(pe) => {
|
|
22709
|
+
L("toast", { message: pe });
|
|
22710
22710
|
},
|
|
22711
|
-
[
|
|
22712
|
-
),
|
|
22713
|
-
(
|
|
22714
|
-
|
|
22711
|
+
[L]
|
|
22712
|
+
), me = gn(
|
|
22713
|
+
(pe) => {
|
|
22714
|
+
L("popup", { message: pe });
|
|
22715
22715
|
},
|
|
22716
|
-
[
|
|
22716
|
+
[L]
|
|
22717
22717
|
), le = gn(
|
|
22718
|
-
(
|
|
22719
|
-
|
|
22718
|
+
(pe) => {
|
|
22719
|
+
L("add-widget", pe);
|
|
22720
22720
|
},
|
|
22721
|
-
[
|
|
22721
|
+
[L]
|
|
22722
22722
|
), we = gn(() => {
|
|
22723
|
-
|
|
22724
|
-
}, [
|
|
22725
|
-
async ({ header:
|
|
22723
|
+
L("loaded");
|
|
22724
|
+
}, [L]), ve = gn(
|
|
22725
|
+
async ({ header: pe, body: Ne, choices: Pe }) => f ? new Promise((Ce) => {
|
|
22726
22726
|
const xe = pc(), Ke = async (rt) => {
|
|
22727
22727
|
delete _.current[xe], Ce(rt);
|
|
22728
22728
|
};
|
|
22729
|
-
_.current[xe] = Ke,
|
|
22730
|
-
header:
|
|
22731
|
-
body:
|
|
22729
|
+
_.current[xe] = Ke, L("confirm", {
|
|
22730
|
+
header: pe,
|
|
22731
|
+
body: Ne,
|
|
22732
22732
|
choices: Pe,
|
|
22733
22733
|
callbackId: xe
|
|
22734
22734
|
});
|
|
22735
22735
|
}) : Promise.reject(new Error("Not ready")),
|
|
22736
|
-
[f,
|
|
22736
|
+
[f, L]
|
|
22737
22737
|
), _e = gn(
|
|
22738
|
-
({ requestType:
|
|
22738
|
+
({ requestType: pe, func: Ne }) => {
|
|
22739
22739
|
const Pe = async ({ callbackId: Ce, data: xe }) => {
|
|
22740
22740
|
try {
|
|
22741
|
-
const Ke = await
|
|
22742
|
-
|
|
22741
|
+
const Ke = await Ne(xe);
|
|
22742
|
+
L("response", {
|
|
22743
22743
|
callbackId: Ce,
|
|
22744
22744
|
response: Ke
|
|
22745
22745
|
});
|
|
22746
22746
|
} catch (Ke) {
|
|
22747
|
-
|
|
22747
|
+
L("response", {
|
|
22748
22748
|
callbackId: Ce,
|
|
22749
22749
|
error: Ke.message
|
|
22750
22750
|
});
|
|
22751
22751
|
}
|
|
22752
22752
|
};
|
|
22753
|
-
return w.current[
|
|
22754
|
-
requestType:
|
|
22753
|
+
return w.current[pe] = Pe, L("mark-registered", {
|
|
22754
|
+
requestType: pe
|
|
22755
22755
|
}), () => {
|
|
22756
|
-
delete w.current[
|
|
22756
|
+
delete w.current[pe];
|
|
22757
22757
|
};
|
|
22758
22758
|
},
|
|
22759
|
-
[
|
|
22759
|
+
[L]
|
|
22760
22760
|
), de = gn(
|
|
22761
22761
|
({
|
|
22762
|
-
callbackId:
|
|
22763
|
-
func:
|
|
22762
|
+
callbackId: pe,
|
|
22763
|
+
func: Ne,
|
|
22764
22764
|
responseType: Pe = "response",
|
|
22765
22765
|
responseKey: Ce = "response",
|
|
22766
22766
|
props: xe = {},
|
|
22767
22767
|
callOnRegister: Ke = !1
|
|
22768
22768
|
}) => {
|
|
22769
22769
|
const rt = async (Be) => {
|
|
22770
|
-
const V = await
|
|
22771
|
-
|
|
22770
|
+
const V = await Ne(Be);
|
|
22771
|
+
L(Pe, {
|
|
22772
22772
|
...xe,
|
|
22773
22773
|
[Ce]: V,
|
|
22774
|
-
callbackId:
|
|
22774
|
+
callbackId: pe
|
|
22775
22775
|
});
|
|
22776
|
-
},
|
|
22777
|
-
_.current[
|
|
22776
|
+
}, Re = _.current[pe];
|
|
22777
|
+
_.current[pe] = rt, Re && Ke && rt(xe);
|
|
22778
22778
|
},
|
|
22779
|
-
[
|
|
22780
|
-
),
|
|
22781
|
-
(
|
|
22782
|
-
f &&
|
|
22779
|
+
[L]
|
|
22780
|
+
), De = gn(
|
|
22781
|
+
(pe) => {
|
|
22782
|
+
f && L("set-info", { info: pe });
|
|
22783
22783
|
},
|
|
22784
|
-
[f,
|
|
22785
|
-
), Oe = (
|
|
22784
|
+
[f, L]
|
|
22785
|
+
), Oe = (pe, Ne) => {
|
|
22786
22786
|
if (f) {
|
|
22787
|
-
if (
|
|
22788
|
-
callbackId: `validate-${
|
|
22789
|
-
func:
|
|
22787
|
+
if (Ne.validate && typeof Ne.validate == "function" && de({
|
|
22788
|
+
callbackId: `validate-${pe}`,
|
|
22789
|
+
func: Ne.validate,
|
|
22790
22790
|
responseType: "set-validation",
|
|
22791
22791
|
responseKey: "validation",
|
|
22792
|
-
props: { name:
|
|
22793
|
-
}),
|
|
22794
|
-
const Pe = typeof
|
|
22792
|
+
props: { name: pe }
|
|
22793
|
+
}), Ne.options) {
|
|
22794
|
+
const Pe = typeof Ne.options == "function" ? Ne.options : () => Ne.options;
|
|
22795
22795
|
de({
|
|
22796
|
-
callbackId: `option-${
|
|
22796
|
+
callbackId: `option-${pe}`,
|
|
22797
22797
|
func: Pe,
|
|
22798
22798
|
responseType: "set-options",
|
|
22799
22799
|
responseKey: "options",
|
|
22800
|
-
props: { name:
|
|
22800
|
+
props: { name: pe },
|
|
22801
22801
|
callOnRegister: !0
|
|
22802
22802
|
});
|
|
22803
22803
|
}
|
|
22804
|
-
|
|
22804
|
+
L("add-setting", {
|
|
22805
22805
|
setting: {
|
|
22806
|
-
name:
|
|
22807
|
-
...
|
|
22806
|
+
name: pe,
|
|
22807
|
+
...Ne,
|
|
22808
22808
|
options: void 0,
|
|
22809
22809
|
validate: void 0
|
|
22810
22810
|
}
|
|
@@ -22817,7 +22817,7 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22817
22817
|
launchModal: K,
|
|
22818
22818
|
setSummary: ae,
|
|
22819
22819
|
toast: X,
|
|
22820
|
-
popup:
|
|
22820
|
+
popup: me,
|
|
22821
22821
|
addWidget: le,
|
|
22822
22822
|
confirm: ve,
|
|
22823
22823
|
setLoaded: we,
|
|
@@ -22841,7 +22841,7 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22841
22841
|
},
|
|
22842
22842
|
addSetting: Oe,
|
|
22843
22843
|
registerHandler: _e,
|
|
22844
|
-
setInfo:
|
|
22844
|
+
setInfo: De
|
|
22845
22845
|
}),
|
|
22846
22846
|
[
|
|
22847
22847
|
n,
|
|
@@ -22850,7 +22850,7 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22850
22850
|
K,
|
|
22851
22851
|
ae,
|
|
22852
22852
|
X,
|
|
22853
|
-
|
|
22853
|
+
me,
|
|
22854
22854
|
le,
|
|
22855
22855
|
ve,
|
|
22856
22856
|
we,
|
|
@@ -22859,16 +22859,25 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22859
22859
|
O,
|
|
22860
22860
|
Oe,
|
|
22861
22861
|
_e,
|
|
22862
|
-
|
|
22862
|
+
De
|
|
22863
22863
|
]
|
|
22864
22864
|
);
|
|
22865
|
-
return
|
|
22865
|
+
return jt(() => {
|
|
22866
|
+
if (!n || !p)
|
|
22867
|
+
return;
|
|
22868
|
+
const pe = () => {
|
|
22869
|
+
L("heartbeat", {});
|
|
22870
|
+
};
|
|
22871
|
+
pe();
|
|
22872
|
+
const Ne = setInterval(pe, 3e3);
|
|
22873
|
+
return () => clearInterval(Ne);
|
|
22874
|
+
}, [n, p, L]), /* @__PURE__ */ cr(ai.Provider, { value: $e, children: c.pathname !== "/mm-embedded-interop" && c.pathname !== "/mm-embedded-login" && c.pathname !== "/mm-embedded-print" ? t : /* @__PURE__ */ cr(Kd, {}) });
|
|
22866
22875
|
}, ND = () => {
|
|
22867
22876
|
const { urls: r, jwtRef: e, accessToken: t } = Ui(), { graphQLRoleOverride: n, children: i } = qr(cl), [a, u] = Ot(), [c, f] = Ot(), h = () => {
|
|
22868
22877
|
const y = new URL(r.graphQLUrl);
|
|
22869
22878
|
return `//${y.host}${y.pathname}`;
|
|
22870
22879
|
}, p = () => n ? { "X-Hasura-Role": n } : {};
|
|
22871
|
-
|
|
22880
|
+
jt(() => {
|
|
22872
22881
|
const y = new jM(
|
|
22873
22882
|
WM({
|
|
22874
22883
|
url: `wss:${h()}`,
|
|
@@ -22907,7 +22916,7 @@ const cl = zo.createContext(), PD = () => {
|
|
|
22907
22916
|
new CD.RestLink({ uri: r.apiUrl })
|
|
22908
22917
|
);
|
|
22909
22918
|
f(Zr.from([T, _]));
|
|
22910
|
-
}, []),
|
|
22919
|
+
}, []), jt(() => {
|
|
22911
22920
|
c && u(
|
|
22912
22921
|
new Lp({
|
|
22913
22922
|
link: c,
|
|
@@ -22989,22 +22998,22 @@ const MD = () => {
|
|
|
22989
22998
|
if (ho[a])
|
|
22990
22999
|
b = ho[a];
|
|
22991
23000
|
else if (!b) {
|
|
22992
|
-
const X = Ii.keys(ho).join(", "),
|
|
23001
|
+
const X = Ii.keys(ho).join(", "), me = Ii.keys(ho[Object.keys(ho)[0]]);
|
|
22993
23002
|
throw Error(
|
|
22994
|
-
`MMProvider releaseStage must be one of the following: ${X}, or the following urls need to be provided: ${
|
|
23003
|
+
`MMProvider releaseStage must be one of the following: ${X}, or the following urls need to be provided: ${me}.`
|
|
22995
23004
|
);
|
|
22996
23005
|
}
|
|
22997
23006
|
b = Ii.merge(b, h);
|
|
22998
23007
|
const [A, _] = Ot(MM());
|
|
22999
|
-
|
|
23008
|
+
jt(() => {
|
|
23000
23009
|
DM(A);
|
|
23001
23010
|
}, [A]);
|
|
23002
23011
|
const w = (X) => {
|
|
23003
|
-
const
|
|
23004
|
-
c0(
|
|
23005
|
-
const we = ((_e) => Ii.map(_e, (de,
|
|
23012
|
+
const me = pc();
|
|
23013
|
+
c0(me), Dx(window.location.pathname + window.location.search);
|
|
23014
|
+
const we = ((_e) => Ii.map(_e, (de, De) => `${De}=${de}`).join("&"))({
|
|
23006
23015
|
response_type: "code",
|
|
23007
|
-
state:
|
|
23016
|
+
state: me,
|
|
23008
23017
|
scope: t,
|
|
23009
23018
|
ttl: 1209600,
|
|
23010
23019
|
client_id: n,
|
|
@@ -23014,10 +23023,10 @@ const MD = () => {
|
|
|
23014
23023
|
}), ve = `${b.loginUrl}/oauth/authorize?${we}`;
|
|
23015
23024
|
window.location = ve;
|
|
23016
23025
|
}, T = async (X) => {
|
|
23017
|
-
const
|
|
23018
|
-
if (
|
|
23019
|
-
throw Error(
|
|
23020
|
-
if (
|
|
23026
|
+
const me = AM.parse(window.location.search), le = me.code;
|
|
23027
|
+
if (me.error)
|
|
23028
|
+
throw Error(me.error_description);
|
|
23029
|
+
if (me.state !== LM())
|
|
23021
23030
|
throw Error("Oops");
|
|
23022
23031
|
const we = {
|
|
23023
23032
|
grant_type: "authorization_code",
|
|
@@ -23036,13 +23045,13 @@ const MD = () => {
|
|
|
23036
23045
|
_(ve.access_token), c0();
|
|
23037
23046
|
}, P = () => {
|
|
23038
23047
|
_();
|
|
23039
|
-
}, M = async (X,
|
|
23040
|
-
|
|
23041
|
-
...
|
|
23048
|
+
}, M = async (X, me = {}) => {
|
|
23049
|
+
me.headers = {
|
|
23050
|
+
...me.headers,
|
|
23042
23051
|
"Content-Type": "application/json",
|
|
23043
23052
|
Authorization: `Bearer ${A}`
|
|
23044
23053
|
};
|
|
23045
|
-
const le = await l0(X,
|
|
23054
|
+
const le = await l0(X, me);
|
|
23046
23055
|
if (le.error && le.error.status === 401)
|
|
23047
23056
|
throw P(), Error("UNAUTHORIZED");
|
|
23048
23057
|
return le;
|
|
@@ -23050,16 +23059,16 @@ const MD = () => {
|
|
|
23050
23059
|
await M(`${b.loginUrl}/logout`, {
|
|
23051
23060
|
method: "DELETE"
|
|
23052
23061
|
}), P();
|
|
23053
|
-
}, [R,
|
|
23062
|
+
}, [R, L] = Ot(), D = is(), $ = is();
|
|
23054
23063
|
Nc(
|
|
23055
23064
|
async () => {
|
|
23056
23065
|
if (!A) {
|
|
23057
|
-
D.current = null,
|
|
23066
|
+
D.current = null, L(!1);
|
|
23058
23067
|
return;
|
|
23059
23068
|
}
|
|
23060
23069
|
try {
|
|
23061
23070
|
const X = await M(`${b.apiUrl}/user-token?graphql=1`);
|
|
23062
|
-
D.current = X,
|
|
23071
|
+
D.current = X, L(!0);
|
|
23063
23072
|
} catch {
|
|
23064
23073
|
}
|
|
23065
23074
|
},
|
|
@@ -23215,7 +23224,7 @@ class Qx {
|
|
|
23215
23224
|
}
|
|
23216
23225
|
}
|
|
23217
23226
|
const VD = new Qx();
|
|
23218
|
-
class
|
|
23227
|
+
class Me extends Error {
|
|
23219
23228
|
name;
|
|
23220
23229
|
message;
|
|
23221
23230
|
code;
|
|
@@ -23227,7 +23236,7 @@ class Re extends Error {
|
|
|
23227
23236
|
}
|
|
23228
23237
|
static errorForCode(e, t) {
|
|
23229
23238
|
const n = Qx.getMessage(e);
|
|
23230
|
-
return new
|
|
23239
|
+
return new Me(n, e, t);
|
|
23231
23240
|
}
|
|
23232
23241
|
isAuthError() {
|
|
23233
23242
|
return this.code === ye.AuthenticationExpired || this.code === ye.AuthorizationViolation || this.code === ye.AccountExpired;
|
|
@@ -23304,7 +23313,7 @@ function Zu(r) {
|
|
|
23304
23313
|
return on.decode(r).replace(/\n/g, "␊").replace(/\r/g, "␍");
|
|
23305
23314
|
}
|
|
23306
23315
|
function Ra(r, e = !0) {
|
|
23307
|
-
const t = e ?
|
|
23316
|
+
const t = e ? Me.errorForCode(ye.Timeout) : null;
|
|
23308
23317
|
let n, i;
|
|
23309
23318
|
const a = new Promise((u, c) => {
|
|
23310
23319
|
n = {
|
|
@@ -23312,7 +23321,7 @@ function Ra(r, e = !0) {
|
|
|
23312
23321
|
i && clearTimeout(i);
|
|
23313
23322
|
}
|
|
23314
23323
|
}, i = setTimeout(() => {
|
|
23315
|
-
c(t === null ?
|
|
23324
|
+
c(t === null ? Me.errorForCode(ye.Timeout) : t);
|
|
23316
23325
|
}, r);
|
|
23317
23326
|
});
|
|
23318
23327
|
return Object.assign(a, n);
|
|
@@ -23379,7 +23388,7 @@ function Xp(r = [
|
|
|
23379
23388
|
}
|
|
23380
23389
|
};
|
|
23381
23390
|
}
|
|
23382
|
-
function
|
|
23391
|
+
function Wt(r) {
|
|
23383
23392
|
return r * 1e6;
|
|
23384
23393
|
}
|
|
23385
23394
|
function em(r) {
|
|
@@ -23391,7 +23400,7 @@ function hb(r) {
|
|
|
23391
23400
|
for (let a = 0; a < r.length; a++) {
|
|
23392
23401
|
let u = r.charCodeAt(a);
|
|
23393
23402
|
if (u === 58 || u < 33 || u > 126)
|
|
23394
|
-
throw new
|
|
23403
|
+
throw new Me(`'${r[a]}' is not a valid character for a header key`, ye.BadHeader);
|
|
23395
23404
|
n && 97 <= u && u <= 122 ? u -= 32 : !n && 65 <= u && u <= 90 && (u += 32), i[a] = u, n = u == 45;
|
|
23396
23405
|
}
|
|
23397
23406
|
return String.fromCharCode(...i);
|
|
@@ -23473,7 +23482,7 @@ ${t}: ${n[i]}`;
|
|
|
23473
23482
|
}
|
|
23474
23483
|
static validHeaderValue(e) {
|
|
23475
23484
|
if (/[\r\n]/.test(e))
|
|
23476
|
-
throw new
|
|
23485
|
+
throw new Me("invalid header value - \\r and \\n are not allowed.", ye.BadHeader);
|
|
23477
23486
|
return e.trim();
|
|
23478
23487
|
}
|
|
23479
23488
|
keys() {
|
|
@@ -23581,20 +23590,20 @@ function Hn(r) {
|
|
|
23581
23590
|
try {
|
|
23582
23591
|
return e === void 0 && (e = null), ji.encode(JSON.stringify(e));
|
|
23583
23592
|
} catch (t) {
|
|
23584
|
-
throw
|
|
23593
|
+
throw Me.errorForCode(ye.BadJson, t);
|
|
23585
23594
|
}
|
|
23586
23595
|
},
|
|
23587
23596
|
decode(e) {
|
|
23588
23597
|
try {
|
|
23589
23598
|
return JSON.parse(on.decode(e), r);
|
|
23590
23599
|
} catch (t) {
|
|
23591
|
-
throw
|
|
23600
|
+
throw Me.errorForCode(ye.BadJson, t);
|
|
23592
23601
|
}
|
|
23593
23602
|
}
|
|
23594
23603
|
};
|
|
23595
23604
|
}
|
|
23596
23605
|
function Jx(r) {
|
|
23597
|
-
return r && r.data.length === 0 && r.headers?.code === 503 ?
|
|
23606
|
+
return r && r.data.length === 0 && r.headers?.code === 503 ? Me.errorForCode(ye.NoResponders) : null;
|
|
23598
23607
|
}
|
|
23599
23608
|
class Yx {
|
|
23600
23609
|
_headers;
|
|
@@ -23745,17 +23754,17 @@ function Kx(r, e = "") {
|
|
|
23745
23754
|
return null;
|
|
23746
23755
|
switch (e = e.toLowerCase(), r) {
|
|
23747
23756
|
case 404:
|
|
23748
|
-
return new
|
|
23757
|
+
return new Me(e, ye.JetStream404NoMessages);
|
|
23749
23758
|
case 408:
|
|
23750
|
-
return new
|
|
23759
|
+
return new Me(e, ye.JetStream408RequestTimeout);
|
|
23751
23760
|
case 409: {
|
|
23752
23761
|
const t = e.startsWith(Bn.IdleHeartbeatMissed) ? ye.JetStreamIdleHeartBeat : ye.JetStream409;
|
|
23753
|
-
return new
|
|
23762
|
+
return new Me(e, t);
|
|
23754
23763
|
}
|
|
23755
23764
|
case 503:
|
|
23756
|
-
return
|
|
23765
|
+
return Me.errorForCode(ye.JetStreamNotEnabled, new Error(e));
|
|
23757
23766
|
default:
|
|
23758
|
-
return e === "" && (e = ye.Unknown), new
|
|
23767
|
+
return e === "" && (e = ye.Unknown), new Me(e, `${r}`);
|
|
23759
23768
|
}
|
|
23760
23769
|
}
|
|
23761
23770
|
class Or {
|
|
@@ -23798,9 +23807,9 @@ class Or {
|
|
|
23798
23807
|
}
|
|
23799
23808
|
async *iterate() {
|
|
23800
23809
|
if (this.noIterator)
|
|
23801
|
-
throw new
|
|
23810
|
+
throw new Me("unsupported iterator", ye.ApiError);
|
|
23802
23811
|
if (this.yielding)
|
|
23803
|
-
throw new
|
|
23812
|
+
throw new Me("already yielding", ye.ApiError);
|
|
23804
23813
|
this.yielding = !0;
|
|
23805
23814
|
try {
|
|
23806
23815
|
for (; ; ) {
|
|
@@ -23926,7 +23935,7 @@ function GD(r, e = {}) {
|
|
|
23926
23935
|
name: r,
|
|
23927
23936
|
deliver_policy: ur.All,
|
|
23928
23937
|
ack_policy: Sr.Explicit,
|
|
23929
|
-
ack_wait:
|
|
23938
|
+
ack_wait: Wt(30 * 1e3),
|
|
23930
23939
|
replay_policy: Ma.Instant
|
|
23931
23940
|
}, e);
|
|
23932
23941
|
}
|
|
@@ -24025,7 +24034,7 @@ class JD {
|
|
|
24025
24034
|
return this.config.ack_policy = Sr.Explicit, this;
|
|
24026
24035
|
}
|
|
24027
24036
|
ackWait(e) {
|
|
24028
|
-
return this.config.ack_wait =
|
|
24037
|
+
return this.config.ack_wait = Wt(e), this;
|
|
24029
24038
|
}
|
|
24030
24039
|
maxDeliver(e) {
|
|
24031
24040
|
return this.config.max_deliver = e, this;
|
|
@@ -24054,7 +24063,7 @@ class JD {
|
|
|
24054
24063
|
return this.config.max_ack_pending = e, this;
|
|
24055
24064
|
}
|
|
24056
24065
|
idleHeartbeat(e) {
|
|
24057
|
-
return this.config.idle_heartbeat =
|
|
24066
|
+
return this.config.idle_heartbeat = Wt(e), this;
|
|
24058
24067
|
}
|
|
24059
24068
|
flowControl() {
|
|
24060
24069
|
return this.config.flow_control = !0, this;
|
|
@@ -24084,13 +24093,13 @@ class JD {
|
|
|
24084
24093
|
return this.stream = e, this;
|
|
24085
24094
|
}
|
|
24086
24095
|
inactiveEphemeralThreshold(e) {
|
|
24087
|
-
return this.config.inactive_threshold =
|
|
24096
|
+
return this.config.inactive_threshold = Wt(e), this;
|
|
24088
24097
|
}
|
|
24089
24098
|
maxPullBatch(e) {
|
|
24090
24099
|
return this.config.max_batch = e, this;
|
|
24091
24100
|
}
|
|
24092
24101
|
maxPullRequestExpires(e) {
|
|
24093
|
-
return this.config.max_expires =
|
|
24102
|
+
return this.config.max_expires = Wt(e), this;
|
|
24094
24103
|
}
|
|
24095
24104
|
memory() {
|
|
24096
24105
|
return this.config.mem_storage = !0, this;
|
|
@@ -24339,8 +24348,8 @@ Wh = hl, (function() {
|
|
|
24339
24348
|
return typeof O == "object" && O.buffer && O.buffer.constructor === ArrayBuffer;
|
|
24340
24349
|
});
|
|
24341
24350
|
var g = function(O, R) {
|
|
24342
|
-
return function(
|
|
24343
|
-
return new T(R, !0).update(
|
|
24351
|
+
return function(L) {
|
|
24352
|
+
return new T(R, !0).update(L)[O]();
|
|
24344
24353
|
};
|
|
24345
24354
|
}, b = function(O) {
|
|
24346
24355
|
var R = g("hex", O);
|
|
@@ -24349,23 +24358,23 @@ Wh = hl, (function() {
|
|
|
24349
24358
|
}, R.update = function($) {
|
|
24350
24359
|
return R.create().update($);
|
|
24351
24360
|
};
|
|
24352
|
-
for (var
|
|
24353
|
-
var D = m[
|
|
24361
|
+
for (var L = 0; L < m.length; ++L) {
|
|
24362
|
+
var D = m[L];
|
|
24354
24363
|
R[D] = g(D, O);
|
|
24355
24364
|
}
|
|
24356
24365
|
return R;
|
|
24357
24366
|
}, A = function(O, R) {
|
|
24358
|
-
var
|
|
24359
|
-
return
|
|
24367
|
+
var L, D = bb, $ = bb.Buffer, K = R ? "sha224" : "sha256";
|
|
24368
|
+
return L = $.from && !t.JS_SHA256_NO_BUFFER_FROM ? $.from : function(ae) {
|
|
24360
24369
|
return new $(ae);
|
|
24361
24370
|
}, function(ae) {
|
|
24362
24371
|
if (typeof ae == "string") return D.createHash(K).update(ae, "utf8").digest("hex");
|
|
24363
24372
|
if (ae == null) throw new Error(r);
|
|
24364
|
-
return ae.constructor === ArrayBuffer && (ae = new Uint8Array(ae)), Array.isArray(ae) || ArrayBuffer.isView(ae) || ae.constructor === $ ? D.createHash(K).update(
|
|
24373
|
+
return ae.constructor === ArrayBuffer && (ae = new Uint8Array(ae)), Array.isArray(ae) || ArrayBuffer.isView(ae) || ae.constructor === $ ? D.createHash(K).update(L(ae)).digest("hex") : O(ae);
|
|
24365
24374
|
};
|
|
24366
24375
|
}, _ = function(O, R) {
|
|
24367
|
-
return function(
|
|
24368
|
-
return new P(
|
|
24376
|
+
return function(L, D) {
|
|
24377
|
+
return new P(L, R, !0).update(D)[O]();
|
|
24369
24378
|
};
|
|
24370
24379
|
}, w = function(O) {
|
|
24371
24380
|
var R = _("hex", O);
|
|
@@ -24374,8 +24383,8 @@ Wh = hl, (function() {
|
|
|
24374
24383
|
}, R.update = function($, K) {
|
|
24375
24384
|
return R.create($).update(K);
|
|
24376
24385
|
};
|
|
24377
|
-
for (var
|
|
24378
|
-
var D = m[
|
|
24386
|
+
for (var L = 0; L < m.length; ++L) {
|
|
24387
|
+
var D = m[L];
|
|
24379
24388
|
R[D] = _(D, O);
|
|
24380
24389
|
}
|
|
24381
24390
|
return R;
|
|
@@ -24401,11 +24410,11 @@ Wh = hl, (function() {
|
|
|
24401
24410
|
0
|
|
24402
24411
|
], O ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = O;
|
|
24403
24412
|
}
|
|
24404
|
-
function P(O, R,
|
|
24413
|
+
function P(O, R, L) {
|
|
24405
24414
|
var D, $ = typeof O;
|
|
24406
24415
|
if ($ === "string") {
|
|
24407
|
-
var K, ae = [], X = O.length,
|
|
24408
|
-
for (D = 0; D < X; ++D) (K = O.charCodeAt(D)) < 128 ? ae[
|
|
24416
|
+
var K, ae = [], X = O.length, me = 0;
|
|
24417
|
+
for (D = 0; D < X; ++D) (K = O.charCodeAt(D)) < 128 ? ae[me++] = K : K < 2048 ? (ae[me++] = 192 | K >>> 6, ae[me++] = 128 | 63 & K) : K < 55296 || K >= 57344 ? (ae[me++] = 224 | K >>> 12, ae[me++] = 128 | K >>> 6 & 63, ae[me++] = 128 | 63 & K) : (K = 65536 + ((1023 & K) << 10 | 1023 & O.charCodeAt(++D)), ae[me++] = 240 | K >>> 18, ae[me++] = 128 | K >>> 12 & 63, ae[me++] = 128 | K >>> 6 & 63, ae[me++] = 128 | 63 & K);
|
|
24409
24418
|
O = ae;
|
|
24410
24419
|
} else {
|
|
24411
24420
|
if ($ !== "object") throw new Error(r);
|
|
@@ -24419,13 +24428,13 @@ Wh = hl, (function() {
|
|
|
24419
24428
|
var ve = O[D] || 0;
|
|
24420
24429
|
le[D] = 92 ^ ve, we[D] = 54 ^ ve;
|
|
24421
24430
|
}
|
|
24422
|
-
T.call(this, R,
|
|
24431
|
+
T.call(this, R, L), this.update(we), this.oKeyPad = le, this.inner = !0, this.sharedMemory = L;
|
|
24423
24432
|
}
|
|
24424
24433
|
T.prototype.update = function(O) {
|
|
24425
24434
|
if (!this.finalized) {
|
|
24426
|
-
var R,
|
|
24427
|
-
if (
|
|
24428
|
-
if (
|
|
24435
|
+
var R, L = typeof O;
|
|
24436
|
+
if (L !== "string") {
|
|
24437
|
+
if (L !== "object") throw new Error(r);
|
|
24429
24438
|
if (O === null) throw new Error(r);
|
|
24430
24439
|
if (u && O.constructor === ArrayBuffer) O = new Uint8Array(O);
|
|
24431
24440
|
else if (!(Array.isArray(O) || u && ArrayBuffer.isView(O))) throw new Error(r);
|
|
@@ -24445,17 +24454,17 @@ Wh = hl, (function() {
|
|
|
24445
24454
|
O[16] = this.block, O[R >>> 2] |= f[3 & R], this.block = O[16], R >= 56 && (this.hashed || this.hash(), O[0] = this.block, O[16] = O[1] = O[2] = O[3] = O[4] = O[5] = O[6] = O[7] = O[8] = O[9] = O[10] = O[11] = O[12] = O[13] = O[14] = O[15] = 0), O[14] = this.hBytes << 3 | this.bytes >>> 29, O[15] = this.bytes << 3, this.hash();
|
|
24446
24455
|
}
|
|
24447
24456
|
}, T.prototype.hash = function() {
|
|
24448
|
-
var O, R,
|
|
24449
|
-
for (O = 16; O < 64; ++O) R = (($ =
|
|
24450
|
-
for (
|
|
24451
|
-
this.h0 = this.h0 + le | 0, this.h1 = this.h1 + we | 0, this.h2 = this.h2 + ve | 0, this.h3 = this.h3 + _e | 0, this.h4 = this.h4 + de | 0, this.h5 = this.h5 +
|
|
24457
|
+
var O, R, L, D, $, K, ae, X, me, le = this.h0, we = this.h1, ve = this.h2, _e = this.h3, de = this.h4, De = this.h5, Oe = this.h6, $e = this.h7, pe = this.blocks;
|
|
24458
|
+
for (O = 16; O < 64; ++O) R = (($ = pe[O - 15]) >>> 7 | $ << 25) ^ ($ >>> 18 | $ << 14) ^ $ >>> 3, L = (($ = pe[O - 2]) >>> 17 | $ << 15) ^ ($ >>> 19 | $ << 13) ^ $ >>> 10, pe[O] = pe[O - 16] + R + pe[O - 7] + L | 0;
|
|
24459
|
+
for (me = we & ve, O = 0; O < 64; O += 4) this.first ? (this.is224 ? (K = 300032, $e = ($ = pe[0] - 1413257819) - 150054599 | 0, _e = $ + 24177077 | 0) : (K = 704751109, $e = ($ = pe[0] - 210244248) - 1521486534 | 0, _e = $ + 143694565 | 0), this.first = !1) : (R = (le >>> 2 | le << 30) ^ (le >>> 13 | le << 19) ^ (le >>> 22 | le << 10), D = (K = le & we) ^ le & ve ^ me, $e = _e + ($ = $e + (L = (de >>> 6 | de << 26) ^ (de >>> 11 | de << 21) ^ (de >>> 25 | de << 7)) + (de & De ^ ~de & Oe) + p[O] + pe[O]) | 0, _e = $ + (R + D) | 0), R = (_e >>> 2 | _e << 30) ^ (_e >>> 13 | _e << 19) ^ (_e >>> 22 | _e << 10), D = (ae = _e & le) ^ _e & we ^ K, Oe = ve + ($ = Oe + (L = ($e >>> 6 | $e << 26) ^ ($e >>> 11 | $e << 21) ^ ($e >>> 25 | $e << 7)) + ($e & de ^ ~$e & De) + p[O + 1] + pe[O + 1]) | 0, R = ((ve = $ + (R + D) | 0) >>> 2 | ve << 30) ^ (ve >>> 13 | ve << 19) ^ (ve >>> 22 | ve << 10), D = (X = ve & _e) ^ ve & le ^ ae, De = we + ($ = De + (L = (Oe >>> 6 | Oe << 26) ^ (Oe >>> 11 | Oe << 21) ^ (Oe >>> 25 | Oe << 7)) + (Oe & $e ^ ~Oe & de) + p[O + 2] + pe[O + 2]) | 0, R = ((we = $ + (R + D) | 0) >>> 2 | we << 30) ^ (we >>> 13 | we << 19) ^ (we >>> 22 | we << 10), D = (me = we & ve) ^ we & _e ^ X, de = le + ($ = de + (L = (De >>> 6 | De << 26) ^ (De >>> 11 | De << 21) ^ (De >>> 25 | De << 7)) + (De & Oe ^ ~De & $e) + p[O + 3] + pe[O + 3]) | 0, le = $ + (R + D) | 0, this.chromeBugWorkAround = !0;
|
|
24460
|
+
this.h0 = this.h0 + le | 0, this.h1 = this.h1 + we | 0, this.h2 = this.h2 + ve | 0, this.h3 = this.h3 + _e | 0, this.h4 = this.h4 + de | 0, this.h5 = this.h5 + De | 0, this.h6 = this.h6 + Oe | 0, this.h7 = this.h7 + $e | 0;
|
|
24452
24461
|
}, T.prototype.hex = function() {
|
|
24453
24462
|
this.finalize();
|
|
24454
|
-
var O = this.h0, R = this.h1,
|
|
24455
|
-
return this.is224 || (
|
|
24463
|
+
var O = this.h0, R = this.h1, L = this.h2, D = this.h3, $ = this.h4, K = this.h5, ae = this.h6, X = this.h7, me = c[O >>> 28 & 15] + c[O >>> 24 & 15] + c[O >>> 20 & 15] + c[O >>> 16 & 15] + c[O >>> 12 & 15] + c[O >>> 8 & 15] + c[O >>> 4 & 15] + c[15 & O] + c[R >>> 28 & 15] + c[R >>> 24 & 15] + c[R >>> 20 & 15] + c[R >>> 16 & 15] + c[R >>> 12 & 15] + c[R >>> 8 & 15] + c[R >>> 4 & 15] + c[15 & R] + c[L >>> 28 & 15] + c[L >>> 24 & 15] + c[L >>> 20 & 15] + c[L >>> 16 & 15] + c[L >>> 12 & 15] + c[L >>> 8 & 15] + c[L >>> 4 & 15] + c[15 & L] + c[D >>> 28 & 15] + c[D >>> 24 & 15] + c[D >>> 20 & 15] + c[D >>> 16 & 15] + c[D >>> 12 & 15] + c[D >>> 8 & 15] + c[D >>> 4 & 15] + c[15 & D] + c[$ >>> 28 & 15] + c[$ >>> 24 & 15] + c[$ >>> 20 & 15] + c[$ >>> 16 & 15] + c[$ >>> 12 & 15] + c[$ >>> 8 & 15] + c[$ >>> 4 & 15] + c[15 & $] + c[K >>> 28 & 15] + c[K >>> 24 & 15] + c[K >>> 20 & 15] + c[K >>> 16 & 15] + c[K >>> 12 & 15] + c[K >>> 8 & 15] + c[K >>> 4 & 15] + c[15 & K] + c[ae >>> 28 & 15] + c[ae >>> 24 & 15] + c[ae >>> 20 & 15] + c[ae >>> 16 & 15] + c[ae >>> 12 & 15] + c[ae >>> 8 & 15] + c[ae >>> 4 & 15] + c[15 & ae];
|
|
24464
|
+
return this.is224 || (me += c[X >>> 28 & 15] + c[X >>> 24 & 15] + c[X >>> 20 & 15] + c[X >>> 16 & 15] + c[X >>> 12 & 15] + c[X >>> 8 & 15] + c[X >>> 4 & 15] + c[15 & X]), me;
|
|
24456
24465
|
}, T.prototype.toString = T.prototype.hex, T.prototype.digest = function() {
|
|
24457
24466
|
this.finalize();
|
|
24458
|
-
var O = this.h0, R = this.h1,
|
|
24467
|
+
var O = this.h0, R = this.h1, L = this.h2, D = this.h3, $ = this.h4, K = this.h5, ae = this.h6, X = this.h7, me = [
|
|
24459
24468
|
O >>> 24 & 255,
|
|
24460
24469
|
O >>> 16 & 255,
|
|
24461
24470
|
O >>> 8 & 255,
|
|
@@ -24464,10 +24473,10 @@ Wh = hl, (function() {
|
|
|
24464
24473
|
R >>> 16 & 255,
|
|
24465
24474
|
R >>> 8 & 255,
|
|
24466
24475
|
255 & R,
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
255 &
|
|
24476
|
+
L >>> 24 & 255,
|
|
24477
|
+
L >>> 16 & 255,
|
|
24478
|
+
L >>> 8 & 255,
|
|
24479
|
+
255 & L,
|
|
24471
24480
|
D >>> 24 & 255,
|
|
24472
24481
|
D >>> 16 & 255,
|
|
24473
24482
|
D >>> 8 & 255,
|
|
@@ -24485,7 +24494,7 @@ Wh = hl, (function() {
|
|
|
24485
24494
|
ae >>> 8 & 255,
|
|
24486
24495
|
255 & ae
|
|
24487
24496
|
];
|
|
24488
|
-
return this.is224 ||
|
|
24497
|
+
return this.is224 || me.push(X >>> 24 & 255, X >>> 16 & 255, X >>> 8 & 255, 255 & X), me;
|
|
24489
24498
|
}, T.prototype.array = T.prototype.digest, T.prototype.arrayBuffer = function() {
|
|
24490
24499
|
this.finalize();
|
|
24491
24500
|
var O = new ArrayBuffer(this.is224 ? 28 : 32), R = new DataView(O);
|
|
@@ -24601,7 +24610,7 @@ class Xx extends Zx {
|
|
|
24601
24610
|
${this.ctx.stack}`), this.deferred.reject(e)) : this.deferred.resolve(t), this.cancel();
|
|
24602
24611
|
}
|
|
24603
24612
|
cancel(e) {
|
|
24604
|
-
this.timer && this.timer.cancel(), this.mux.cancel(this), this.deferred.reject(e ||
|
|
24613
|
+
this.timer && this.timer.cancel(), this.mux.cancel(this), this.deferred.reject(e || Me.errorForCode(ye.Cancelled));
|
|
24605
24614
|
}
|
|
24606
24615
|
}
|
|
24607
24616
|
const cF = "$JS.API";
|
|
@@ -24849,9 +24858,9 @@ class Lc extends tu {
|
|
|
24849
24858
|
}
|
|
24850
24859
|
function la(r, e, t = !1) {
|
|
24851
24860
|
if (t === !0 && !r)
|
|
24852
|
-
throw
|
|
24861
|
+
throw Me.errorForCode(ye.ApiError, new Error(`${e} is not a function`));
|
|
24853
24862
|
if (r && typeof r != "function")
|
|
24854
|
-
throw
|
|
24863
|
+
throw Me.errorForCode(ye.ApiError, new Error(`${e} is not a function`));
|
|
24855
24864
|
}
|
|
24856
24865
|
class hF extends Or {
|
|
24857
24866
|
sub;
|
|
@@ -25308,7 +25317,7 @@ class PF {
|
|
|
25308
25317
|
};
|
|
25309
25318
|
}
|
|
25310
25319
|
close() {
|
|
25311
|
-
const e =
|
|
25320
|
+
const e = Me.errorForCode(ye.Timeout);
|
|
25312
25321
|
this.reqs.forEach((t) => {
|
|
25313
25322
|
t.resolver(e, {});
|
|
25314
25323
|
});
|
|
@@ -26092,7 +26101,7 @@ var Ee;
|
|
|
26092
26101
|
} else
|
|
26093
26102
|
for (ne = 0; ne < 16; ne++) w(x, 4 * ne, ie[ne] + fe[ne] | 0);
|
|
26094
26103
|
}
|
|
26095
|
-
function
|
|
26104
|
+
function L(x, I, k, C) {
|
|
26096
26105
|
return R(x, I, k, C, !1), 0;
|
|
26097
26106
|
}
|
|
26098
26107
|
function D(x, I, k, C) {
|
|
@@ -26122,13 +26131,13 @@ var Ee;
|
|
|
26122
26131
|
for (Le = 0; Le < 16; Le++) fe[Le] = 0;
|
|
26123
26132
|
for (Le = 0; Le < 8; Le++) fe[Le] = W[Le];
|
|
26124
26133
|
for (; U >= 64; ) {
|
|
26125
|
-
for (
|
|
26134
|
+
for (L(Z, fe, ie, $), Le = 0; Le < 64; Le++) x[I + Le] = (k ? k[C + Le] : 0) ^ Z[Le];
|
|
26126
26135
|
for (ne = 1, Le = 8; Le < 16; Le++)
|
|
26127
26136
|
ne = ne + (fe[Le] & 255) | 0, fe[Le] = ne & 255, ne >>>= 8;
|
|
26128
26137
|
U -= 64, I += 64, k && (C += 64);
|
|
26129
26138
|
}
|
|
26130
26139
|
if (U > 0)
|
|
26131
|
-
for (
|
|
26140
|
+
for (L(Z, fe, ie, $), Le = 0; Le < U; Le++) x[I + Le] = (k ? k[C + Le] : 0) ^ Z[Le];
|
|
26132
26141
|
return 0;
|
|
26133
26142
|
}
|
|
26134
26143
|
function ae(x, I, k, C, U) {
|
|
@@ -26138,7 +26147,7 @@ var Ee;
|
|
|
26138
26147
|
var W = new Uint8Array(32);
|
|
26139
26148
|
return D(W, C, U, $), ae(x, I, k, C.subarray(16), W);
|
|
26140
26149
|
}
|
|
26141
|
-
function
|
|
26150
|
+
function me(x, I, k, C, U, W, ie) {
|
|
26142
26151
|
var fe = new Uint8Array(32);
|
|
26143
26152
|
return D(fe, W, ie, $), K(x, I, k, C, U, W.subarray(16), fe);
|
|
26144
26153
|
}
|
|
@@ -26195,13 +26204,13 @@ var Ee;
|
|
|
26195
26204
|
function de(x, I, k, C, U) {
|
|
26196
26205
|
var W;
|
|
26197
26206
|
if (k < 32) return -1;
|
|
26198
|
-
for (
|
|
26207
|
+
for (me(x, 0, I, 0, k, C, U), ve(x, 16, x, 32, k - 32, x), W = 0; W < 16; W++) x[W] = 0;
|
|
26199
26208
|
return 0;
|
|
26200
26209
|
}
|
|
26201
|
-
function
|
|
26210
|
+
function De(x, I, k, C, U) {
|
|
26202
26211
|
var W, ie = new Uint8Array(32);
|
|
26203
26212
|
if (k < 32 || (X(ie, 0, 32, C, U), _e(I, 16, I, 32, k - 32, ie) !== 0)) return -1;
|
|
26204
|
-
for (
|
|
26213
|
+
for (me(x, 0, I, 0, k, C, U), W = 0; W < 32; W++) x[W] = 0;
|
|
26205
26214
|
return 0;
|
|
26206
26215
|
}
|
|
26207
26216
|
function Oe(x, I) {
|
|
@@ -26213,28 +26222,28 @@ var Ee;
|
|
|
26213
26222
|
for (k = 0; k < 16; k++)
|
|
26214
26223
|
x[k] += 65536, I = Math.floor(x[k] / 65536), x[(k + 1) * (k < 15 ? 1 : 0)] += I - 1 + 37 * (I - 1) * (k === 15 ? 1 : 0), x[k] -= I * 65536;
|
|
26215
26224
|
}
|
|
26216
|
-
function
|
|
26225
|
+
function pe(x, I, k) {
|
|
26217
26226
|
for (var C, U = ~(k - 1), W = 0; W < 16; W++)
|
|
26218
26227
|
C = U & (x[W] ^ I[W]), x[W] ^= C, I[W] ^= C;
|
|
26219
26228
|
}
|
|
26220
|
-
function
|
|
26229
|
+
function Ne(x, I) {
|
|
26221
26230
|
var k, C, U, W = t(), ie = t();
|
|
26222
26231
|
for (k = 0; k < 16; k++) ie[k] = I[k];
|
|
26223
26232
|
for ($e(ie), $e(ie), $e(ie), C = 0; C < 2; C++) {
|
|
26224
26233
|
for (W[0] = ie[0] - 65517, k = 1; k < 15; k++)
|
|
26225
26234
|
W[k] = ie[k] - 65535 - (W[k - 1] >> 16 & 1), W[k - 1] &= 65535;
|
|
26226
|
-
W[15] = ie[15] - 32767 - (W[14] >> 16 & 1), U = W[15] >> 16 & 1, W[14] &= 65535,
|
|
26235
|
+
W[15] = ie[15] - 32767 - (W[14] >> 16 & 1), U = W[15] >> 16 & 1, W[14] &= 65535, pe(ie, W, 1 - U);
|
|
26227
26236
|
}
|
|
26228
26237
|
for (k = 0; k < 16; k++)
|
|
26229
26238
|
x[2 * k] = ie[k] & 255, x[2 * k + 1] = ie[k] >> 8;
|
|
26230
26239
|
}
|
|
26231
26240
|
function Pe(x, I) {
|
|
26232
26241
|
var k = new Uint8Array(32), C = new Uint8Array(32);
|
|
26233
|
-
return
|
|
26242
|
+
return Ne(k, x), Ne(C, I), O(k, 0, C, 0);
|
|
26234
26243
|
}
|
|
26235
26244
|
function Ce(x) {
|
|
26236
26245
|
var I = new Uint8Array(32);
|
|
26237
|
-
return
|
|
26246
|
+
return Ne(I, x), I[0] & 1;
|
|
26238
26247
|
}
|
|
26239
26248
|
function xe(x, I) {
|
|
26240
26249
|
var k;
|
|
@@ -26249,7 +26258,7 @@ var Ee;
|
|
|
26249
26258
|
var C;
|
|
26250
26259
|
for (C = 0; C < 16; C++) x[C] = I[C] - k[C] | 0;
|
|
26251
26260
|
}
|
|
26252
|
-
function
|
|
26261
|
+
function Re(x, I, k) {
|
|
26253
26262
|
var C, U, W = new Float64Array(31);
|
|
26254
26263
|
for (C = 0; C < 31; C++) W[C] = 0;
|
|
26255
26264
|
for (C = 0; C < 16; C++)
|
|
@@ -26261,20 +26270,20 @@ var Ee;
|
|
|
26261
26270
|
$e(x), $e(x);
|
|
26262
26271
|
}
|
|
26263
26272
|
function Be(x, I) {
|
|
26264
|
-
|
|
26273
|
+
Re(x, I, I);
|
|
26265
26274
|
}
|
|
26266
26275
|
function V(x, I) {
|
|
26267
26276
|
var k = t(), C;
|
|
26268
26277
|
for (C = 0; C < 16; C++) k[C] = I[C];
|
|
26269
26278
|
for (C = 253; C >= 0; C--)
|
|
26270
|
-
Be(k, k), C !== 2 && C !== 4 &&
|
|
26279
|
+
Be(k, k), C !== 2 && C !== 4 && Re(k, k, I);
|
|
26271
26280
|
for (C = 0; C < 16; C++) x[C] = k[C];
|
|
26272
26281
|
}
|
|
26273
26282
|
function G(x, I) {
|
|
26274
26283
|
var k = t(), C;
|
|
26275
26284
|
for (C = 0; C < 16; C++) k[C] = I[C];
|
|
26276
26285
|
for (C = 250; C >= 0; C--)
|
|
26277
|
-
Be(k, k), C !== 1 &&
|
|
26286
|
+
Be(k, k), C !== 1 && Re(k, k, I);
|
|
26278
26287
|
for (C = 0; C < 16; C++) x[C] = k[C];
|
|
26279
26288
|
}
|
|
26280
26289
|
function j(x, I, k) {
|
|
@@ -26283,11 +26292,11 @@ var Ee;
|
|
|
26283
26292
|
for (C[31] = I[31] & 127 | 64, C[0] &= 248, xe(U, k), ie = 0; ie < 16; ie++)
|
|
26284
26293
|
Z[ie] = U[ie], Le[ie] = fe[ie] = ne[ie] = 0;
|
|
26285
26294
|
for (fe[0] = Le[0] = 1, ie = 254; ie >= 0; --ie)
|
|
26286
|
-
W = C[ie >>> 3] >>> (ie & 7) & 1,
|
|
26295
|
+
W = C[ie >>> 3] >>> (ie & 7) & 1, pe(fe, Z, W), pe(ne, Le, W), Ke(lt, fe, ne), rt(fe, fe, ne), Ke(ne, Z, Le), rt(Z, Z, Le), Be(Le, lt), Be(qt, fe), Re(fe, ne, fe), Re(ne, Z, lt), Ke(lt, fe, ne), rt(fe, fe, ne), Be(Z, fe), rt(ne, Le, qt), Re(fe, ne, f), Ke(fe, fe, Le), Re(ne, ne, fe), Re(fe, Le, qt), Re(Le, Z, U), Be(Z, lt), pe(fe, Z, W), pe(ne, Le, W);
|
|
26287
26296
|
for (ie = 0; ie < 16; ie++)
|
|
26288
26297
|
U[ie + 16] = fe[ie], U[ie + 32] = ne[ie], U[ie + 48] = Z[ie], U[ie + 64] = Le[ie];
|
|
26289
26298
|
var ln = U.subarray(32), mi = U.subarray(16);
|
|
26290
|
-
return V(ln, ln),
|
|
26299
|
+
return V(ln, ln), Re(mi, mi, ln), Ne(x, mi), 0;
|
|
26291
26300
|
}
|
|
26292
26301
|
function Y(x, I) {
|
|
26293
26302
|
return j(x, I, a);
|
|
@@ -26299,7 +26308,7 @@ var Ee;
|
|
|
26299
26308
|
var C = new Uint8Array(32);
|
|
26300
26309
|
return j(C, k, I), D(x, i, C, $);
|
|
26301
26310
|
}
|
|
26302
|
-
var be = de, je =
|
|
26311
|
+
var be = de, je = De;
|
|
26303
26312
|
function Ve(x, I, k, C, U, W) {
|
|
26304
26313
|
var ie = new Uint8Array(32);
|
|
26305
26314
|
return Q(ie, U, W), be(x, I, k, C, ie);
|
|
@@ -26524,16 +26533,16 @@ var Ee;
|
|
|
26524
26533
|
}
|
|
26525
26534
|
function Gt(x, I) {
|
|
26526
26535
|
var k = t(), C = t(), U = t(), W = t(), ie = t(), fe = t(), Z = t(), ne = t(), Le = t();
|
|
26527
|
-
rt(k, x[1], x[0]), rt(Le, I[1], I[0]),
|
|
26536
|
+
rt(k, x[1], x[0]), rt(Le, I[1], I[0]), Re(k, k, Le), Ke(C, x[0], x[1]), Ke(Le, I[0], I[1]), Re(C, C, Le), Re(U, x[3], I[3]), Re(U, U, p), Re(W, x[2], I[2]), Ke(W, W, W), rt(ie, C, k), rt(fe, W, U), Ke(Z, W, U), Ke(ne, C, k), Re(x[0], ie, fe), Re(x[1], ne, Z), Re(x[2], Z, fe), Re(x[3], ie, ne);
|
|
26528
26537
|
}
|
|
26529
26538
|
function H(x, I, k) {
|
|
26530
26539
|
var C;
|
|
26531
26540
|
for (C = 0; C < 4; C++)
|
|
26532
|
-
|
|
26541
|
+
pe(x[C], I[C], k);
|
|
26533
26542
|
}
|
|
26534
26543
|
function J(x, I) {
|
|
26535
26544
|
var k = t(), C = t(), U = t();
|
|
26536
|
-
V(U, I[2]),
|
|
26545
|
+
V(U, I[2]), Re(k, I[0], U), Re(C, I[1], U), Ne(x, C), x[31] ^= Ce(k) << 7;
|
|
26537
26546
|
}
|
|
26538
26547
|
function nt(x, I, k) {
|
|
26539
26548
|
var C, U;
|
|
@@ -26547,7 +26556,7 @@ var Ee;
|
|
|
26547
26556
|
t(),
|
|
26548
26557
|
t()
|
|
26549
26558
|
];
|
|
26550
|
-
Oe(k[0], m), Oe(k[1], y), Oe(k[2], c),
|
|
26559
|
+
Oe(k[0], m), Oe(k[1], y), Oe(k[2], c), Re(k[3], m, y), nt(x, k, I);
|
|
26551
26560
|
}
|
|
26552
26561
|
function ct(x, I, k) {
|
|
26553
26562
|
var C = new Uint8Array(64), U = [
|
|
@@ -26633,7 +26642,7 @@ var Ee;
|
|
|
26633
26642
|
}
|
|
26634
26643
|
function yr(x, I) {
|
|
26635
26644
|
var k = t(), C = t(), U = t(), W = t(), ie = t(), fe = t(), Z = t();
|
|
26636
|
-
return Oe(x[2], c), xe(x[1], I), Be(U, x[1]),
|
|
26645
|
+
return Oe(x[2], c), xe(x[1], I), Be(U, x[1]), Re(W, U, h), rt(U, U, x[2]), Ke(W, x[2], W), Be(ie, W), Be(fe, ie), Re(Z, fe, ie), Re(k, Z, U), Re(k, k, W), G(k, k), Re(k, k, U), Re(k, k, W), Re(k, k, W), Re(x[0], k, W), Be(C, x[0]), Re(C, C, W), Pe(C, U) && Re(x[0], x[0], g), Be(C, x[0]), Re(C, C, W), Pe(C, U) ? -1 : (Ce(x[0]) === I[31] >> 7 && rt(x[0], u, x[0]), Re(x[3], x[0], x[1]), 0);
|
|
26637
26646
|
}
|
|
26638
26647
|
function On(x, I, k, C) {
|
|
26639
26648
|
var U, W = new Uint8Array(32), ie = new Uint8Array(64), fe = [
|
|
@@ -26657,10 +26666,10 @@ var Ee;
|
|
|
26657
26666
|
for (U = 0; U < k; U++) x[U] = I[U + 64];
|
|
26658
26667
|
return k;
|
|
26659
26668
|
}
|
|
26660
|
-
var Zt = 32, Mt = 24, Xr = 32, Nr = 16, gr = 32, jr = 32, Rr = 32, fr = 32, kr = 32, Tn = Mt, oi = Xr, kn = Nr, wr = 64, $r = 32,
|
|
26669
|
+
var Zt = 32, Mt = 24, Xr = 32, Nr = 16, gr = 32, jr = 32, Rr = 32, fr = 32, kr = 32, Tn = Mt, oi = Xr, kn = Nr, wr = 64, $r = 32, Bt = 64, Dt = 32, An = 64;
|
|
26661
26670
|
r.lowlevel = {
|
|
26662
26671
|
crypto_core_hsalsa20: D,
|
|
26663
|
-
crypto_stream_xor:
|
|
26672
|
+
crypto_stream_xor: me,
|
|
26664
26673
|
crypto_stream: X,
|
|
26665
26674
|
crypto_stream_salsa20_xor: K,
|
|
26666
26675
|
crypto_stream_salsa20: ae,
|
|
@@ -26669,7 +26678,7 @@ var Ee;
|
|
|
26669
26678
|
crypto_verify_16: M,
|
|
26670
26679
|
crypto_verify_32: O,
|
|
26671
26680
|
crypto_secretbox: de,
|
|
26672
|
-
crypto_secretbox_open:
|
|
26681
|
+
crypto_secretbox_open: De,
|
|
26673
26682
|
crypto_scalarmult: j,
|
|
26674
26683
|
crypto_scalarmult_base: Y,
|
|
26675
26684
|
crypto_box_beforenm: Q,
|
|
@@ -26695,15 +26704,15 @@ var Ee;
|
|
|
26695
26704
|
crypto_box_BOXZEROBYTES: kn,
|
|
26696
26705
|
crypto_sign_BYTES: wr,
|
|
26697
26706
|
crypto_sign_PUBLICKEYBYTES: $r,
|
|
26698
|
-
crypto_sign_SECRETKEYBYTES:
|
|
26707
|
+
crypto_sign_SECRETKEYBYTES: Bt,
|
|
26699
26708
|
crypto_sign_SEEDBYTES: Dt,
|
|
26700
26709
|
crypto_hash_BYTES: An,
|
|
26701
26710
|
gf: t,
|
|
26702
26711
|
D: h,
|
|
26703
26712
|
L: ze,
|
|
26704
|
-
pack25519:
|
|
26713
|
+
pack25519: Ne,
|
|
26705
26714
|
unpack25519: xe,
|
|
26706
|
-
M:
|
|
26715
|
+
M: Re,
|
|
26707
26716
|
A: Ke,
|
|
26708
26717
|
S: Be,
|
|
26709
26718
|
Z: rt,
|
|
@@ -26739,7 +26748,7 @@ var Ee;
|
|
|
26739
26748
|
}, r.secretbox.open = function(x, I, k) {
|
|
26740
26749
|
mt(x, I, k), In(k, I);
|
|
26741
26750
|
for (var C = new Uint8Array(Nr + x.length), U = new Uint8Array(C.length), W = 0; W < x.length; W++) C[W + Nr] = x[W];
|
|
26742
|
-
return C.length < 32 ||
|
|
26751
|
+
return C.length < 32 || De(U, C, C.length, I, k) !== 0 ? null : U.subarray(Xr);
|
|
26743
26752
|
}, r.secretbox.keyLength = Zt, r.secretbox.nonceLength = Mt, r.secretbox.overheadLength = Nr, r.scalarMult = function(x, I) {
|
|
26744
26753
|
if (mt(x, I), x.length !== jr) throw new Error("bad n size");
|
|
26745
26754
|
if (I.length !== gr) throw new Error("bad p size");
|
|
@@ -26773,7 +26782,7 @@ var Ee;
|
|
|
26773
26782
|
secretKey: new Uint8Array(x)
|
|
26774
26783
|
};
|
|
26775
26784
|
}, r.box.publicKeyLength = Rr, r.box.secretKeyLength = fr, r.box.sharedKeyLength = kr, r.box.nonceLength = Tn, r.box.overheadLength = r.secretbox.overheadLength, r.sign = function(x, I) {
|
|
26776
|
-
if (mt(x, I), I.length !==
|
|
26785
|
+
if (mt(x, I), I.length !== Bt) throw new Error("bad secret key size");
|
|
26777
26786
|
var k = new Uint8Array(wr + x.length);
|
|
26778
26787
|
return sr(k, x, x.length, I), k;
|
|
26779
26788
|
}, r.sign.open = function(x, I) {
|
|
@@ -26793,13 +26802,13 @@ var Ee;
|
|
|
26793
26802
|
for (W = 0; W < x.length; W++) C[W + wr] = x[W];
|
|
26794
26803
|
return On(U, C, C.length, k) >= 0;
|
|
26795
26804
|
}, r.sign.keyPair = function() {
|
|
26796
|
-
var x = new Uint8Array($r), I = new Uint8Array(
|
|
26805
|
+
var x = new Uint8Array($r), I = new Uint8Array(Bt);
|
|
26797
26806
|
return ct(x, I), {
|
|
26798
26807
|
publicKey: x,
|
|
26799
26808
|
secretKey: I
|
|
26800
26809
|
};
|
|
26801
26810
|
}, r.sign.keyPair.fromSecretKey = function(x) {
|
|
26802
|
-
if (mt(x), x.length !==
|
|
26811
|
+
if (mt(x), x.length !== Bt) throw new Error("bad secret key size");
|
|
26803
26812
|
for (var I = new Uint8Array($r), k = 0; k < I.length; k++) I[k] = x[32 + k];
|
|
26804
26813
|
return {
|
|
26805
26814
|
publicKey: I,
|
|
@@ -26807,12 +26816,12 @@ var Ee;
|
|
|
26807
26816
|
};
|
|
26808
26817
|
}, r.sign.keyPair.fromSeed = function(x) {
|
|
26809
26818
|
if (mt(x), x.length !== Dt) throw new Error("bad seed size");
|
|
26810
|
-
for (var I = new Uint8Array($r), k = new Uint8Array(
|
|
26819
|
+
for (var I = new Uint8Array($r), k = new Uint8Array(Bt), C = 0; C < 32; C++) k[C] = x[C];
|
|
26811
26820
|
return ct(I, k, !0), {
|
|
26812
26821
|
publicKey: I,
|
|
26813
26822
|
secretKey: k
|
|
26814
26823
|
};
|
|
26815
|
-
}, r.sign.publicKeyLength = $r, r.sign.secretKeyLength =
|
|
26824
|
+
}, r.sign.publicKeyLength = $r, r.sign.secretKeyLength = Bt, r.sign.seedLength = Dt, r.sign.signatureLength = wr, r.hash = function(x) {
|
|
26816
26825
|
mt(x);
|
|
26817
26826
|
var I = new Uint8Array(An);
|
|
26818
26827
|
return Lt(I, x, x.length), I;
|
|
@@ -27441,10 +27450,10 @@ function XF(r) {
|
|
|
27441
27450
|
const a = /\s*(?:(?:[-]{3,}[^\n]*[-]{3,}\n)(.+)(?:\n\s*[-]{3,}[^\n]*[-]{3,}\n))/ig, u = on.decode(e());
|
|
27442
27451
|
let c = a.exec(u);
|
|
27443
27452
|
if (!c)
|
|
27444
|
-
throw
|
|
27453
|
+
throw Me.errorForCode(ye.BadCreds);
|
|
27445
27454
|
const f = c[1].trim();
|
|
27446
27455
|
if (c = a.exec(u), !c || !c)
|
|
27447
|
-
throw
|
|
27456
|
+
throw Me.errorForCode(ye.BadCreds);
|
|
27448
27457
|
const h = ji.encode(c[1].trim());
|
|
27449
27458
|
return {
|
|
27450
27459
|
jwt: f,
|
|
@@ -27490,7 +27499,7 @@ function nL(r) {
|
|
|
27490
27499
|
}, r.servers = r.servers || [], typeof r.servers == "string" && (r.servers = [
|
|
27491
27500
|
r.servers
|
|
27492
27501
|
]), r.servers.length > 0 && r.port)
|
|
27493
|
-
throw new
|
|
27502
|
+
throw new Me("port and servers options are mutually exclusive", ye.InvalidOption);
|
|
27494
27503
|
r.servers.length === 0 && r.port && (r.servers = [
|
|
27495
27504
|
`${qd}:${r.port}`
|
|
27496
27505
|
]), r.servers && r.servers.length === 0 && (r.servers = [
|
|
@@ -27502,7 +27511,7 @@ function nL(r) {
|
|
|
27502
27511
|
"authenticator"
|
|
27503
27512
|
].forEach((n) => {
|
|
27504
27513
|
if (t[n] && typeof t[n] != "function")
|
|
27505
|
-
throw new
|
|
27514
|
+
throw new Me(`${n} option should be a function`, ye.NotFunction);
|
|
27506
27515
|
}), t.reconnectDelayHandler || (t.reconnectDelayHandler = () => {
|
|
27507
27516
|
let n = t.tls ? t.reconnectJitterTLS : t.reconnectJitter;
|
|
27508
27517
|
return n && (n++, n = Math.floor(Math.random() * n)), t.reconnectTimeWait + n;
|
|
@@ -27510,19 +27519,19 @@ function nL(r) {
|
|
|
27510
27519
|
try {
|
|
27511
27520
|
Pi(t.inboxPrefix);
|
|
27512
27521
|
} catch (n) {
|
|
27513
|
-
throw new
|
|
27522
|
+
throw new Me(n.message, ye.ApiError);
|
|
27514
27523
|
}
|
|
27515
27524
|
if (t.resolve === void 0 && (t.resolve = typeof zd() == "function"), t.resolve && typeof zd() != "function")
|
|
27516
|
-
throw new
|
|
27525
|
+
throw new Me("'resolve' is not supported on this client", ye.InvalidOption);
|
|
27517
27526
|
return t;
|
|
27518
27527
|
}
|
|
27519
27528
|
function iL(r, e) {
|
|
27520
27529
|
const { proto: t, tls_required: n, tls_available: i } = r;
|
|
27521
27530
|
if ((t === void 0 || t < 1) && e.noEcho)
|
|
27522
|
-
throw new
|
|
27531
|
+
throw new Me("noEcho", ye.ServerOptionNotAvailable);
|
|
27523
27532
|
const a = n || i || !1;
|
|
27524
27533
|
if (e.tls && !a)
|
|
27525
|
-
throw new
|
|
27534
|
+
throw new Me("tls", ye.ServerOptionNotAvailable);
|
|
27526
27535
|
}
|
|
27527
27536
|
const sL = 1024 * 32, aL = /^INFO\s+([^\r\n]+)\r\n/i, oL = Co(`PONG\r
|
|
27528
27537
|
`), Tb = Co(`PING\r
|
|
@@ -27612,7 +27621,7 @@ class oS extends Or {
|
|
|
27612
27621
|
this.timer && (this.timer.cancel(), this.timer = void 0);
|
|
27613
27622
|
}
|
|
27614
27623
|
drain() {
|
|
27615
|
-
return this.protocol.isClosed() ? Promise.reject(
|
|
27624
|
+
return this.protocol.isClosed() ? Promise.reject(Me.errorForCode(ye.ConnectionClosed)) : this.isClosed() ? Promise.reject(Me.errorForCode(ye.SubClosed)) : (this.drained || (this.draining = !0, this.protocol.unsub(this), this.drained = this.protocol.flush(zt()).then(() => {
|
|
27616
27625
|
this.protocol.subscriptions.cancel(this);
|
|
27617
27626
|
}).catch(() => {
|
|
27618
27627
|
this.protocol.subscriptions.cancel(this);
|
|
@@ -27728,7 +27737,7 @@ class jc {
|
|
|
27728
27737
|
this.outbound.reset();
|
|
27729
27738
|
const e = this.pongs;
|
|
27730
27739
|
this.pongs = [];
|
|
27731
|
-
const t =
|
|
27740
|
+
const t = Me.errorForCode(ye.Disconnect);
|
|
27732
27741
|
t.stack = "", e.forEach((n) => {
|
|
27733
27742
|
n.reject(t);
|
|
27734
27743
|
}), this.parser = new Sb(this), this.infoReceived = !1;
|
|
@@ -27844,7 +27853,7 @@ class jc {
|
|
|
27844
27853
|
let n = t;
|
|
27845
27854
|
const i = this.selectServer();
|
|
27846
27855
|
if (!i || this.abortReconnect)
|
|
27847
|
-
throw e || (this.lastError ? this.lastError :
|
|
27856
|
+
throw e || (this.lastError ? this.lastError : Me.errorForCode(ye.ConnectionRefused));
|
|
27848
27857
|
const a = Date.now();
|
|
27849
27858
|
if (i.lastConnect === 0 || i.lastConnect + t <= a) {
|
|
27850
27859
|
i.lastConnect = Date.now();
|
|
@@ -27872,7 +27881,7 @@ class jc {
|
|
|
27872
27881
|
static toError(e) {
|
|
27873
27882
|
const t = e ? e.toLowerCase() : "";
|
|
27874
27883
|
if (t.indexOf("permissions violation") !== -1) {
|
|
27875
|
-
const n = new
|
|
27884
|
+
const n = new Me(e, ye.PermissionsViolation), i = e.match(/(Publish|Subscription) to "(\S+)"/);
|
|
27876
27885
|
if (i) {
|
|
27877
27886
|
n.permissionContext = {
|
|
27878
27887
|
operation: i[1].toLowerCase(),
|
|
@@ -27883,7 +27892,7 @@ class jc {
|
|
|
27883
27892
|
a && (n.permissionContext.queue = a[1]);
|
|
27884
27893
|
}
|
|
27885
27894
|
return n;
|
|
27886
|
-
} else return t.indexOf("authorization violation") !== -1 ? new
|
|
27895
|
+
} else return t.indexOf("authorization violation") !== -1 ? new Me(e, ye.AuthorizationViolation) : t.indexOf("user authentication expired") !== -1 ? new Me(e, ye.AuthenticationExpired) : t.indexOf("account authentication expired") != -1 ? new Me(e, ye.AccountExpired) : t.indexOf("authentication timeout") !== -1 ? new Me(e, ye.AuthenticationTimeout) : new Me(e, ye.ProtocolError);
|
|
27887
27896
|
}
|
|
27888
27897
|
processMsg(e, t) {
|
|
27889
27898
|
if (this.inMsgs++, this.inBytes += t.length, !this.subscriptions.sidCounter)
|
|
@@ -27979,17 +27988,17 @@ class jc {
|
|
|
27979
27988
|
else if (typeof t == "string")
|
|
27980
27989
|
i = ji.encode(t);
|
|
27981
27990
|
else
|
|
27982
|
-
throw
|
|
27991
|
+
throw Me.errorForCode(ye.BadPayload);
|
|
27983
27992
|
let a = i.length;
|
|
27984
27993
|
n = n || {}, n.reply = n.reply || "";
|
|
27985
27994
|
let u = En, c = 0;
|
|
27986
27995
|
if (n.headers) {
|
|
27987
27996
|
if (this.info && !this.info.headers)
|
|
27988
|
-
throw new
|
|
27997
|
+
throw new Me("headers", ye.ServerOptionNotAvailable);
|
|
27989
27998
|
u = n.headers.encode(), c = u.length, a = i.length + c;
|
|
27990
27999
|
}
|
|
27991
28000
|
if (this.info && a > this.info.max_payload)
|
|
27992
|
-
throw
|
|
28001
|
+
throw Me.errorForCode(ye.MaxPayloadExceeded);
|
|
27993
28002
|
this.outBytes += a, this.outMsgs++;
|
|
27994
28003
|
let f;
|
|
27995
28004
|
n.headers ? (n.reply ? f = `HPUB ${e} ${n.reply} ${c} ${a}\r
|
|
@@ -28376,7 +28385,7 @@ class dL {
|
|
|
28376
28385
|
t && (t.time = 0, t.processed = 0);
|
|
28377
28386
|
}
|
|
28378
28387
|
countLatency(e) {
|
|
28379
|
-
this.num_requests++, this.processing_time +=
|
|
28388
|
+
this.num_requests++, this.processing_time += Wt(Date.now() - e), this.average_processing_time = Math.round(this.processing_time / this.num_requests);
|
|
28380
28389
|
}
|
|
28381
28390
|
countError(e) {
|
|
28382
28391
|
this.num_errors++, this.last_error = e.message;
|
|
@@ -28397,7 +28406,7 @@ class dL {
|
|
|
28397
28406
|
}
|
|
28398
28407
|
stats(e) {
|
|
28399
28408
|
const t = e;
|
|
28400
|
-
return t?.noIterator === !1 && (this.processing_time =
|
|
28409
|
+
return t?.noIterator === !1 && (this.processing_time = Wt(t.time), this.num_requests = t.processed, this.average_processing_time = this.processing_time > 0 && this.num_requests > 0 ? this.processing_time / this.num_requests : 0), this._stats();
|
|
28401
28410
|
}
|
|
28402
28411
|
}
|
|
28403
28412
|
class pL {
|
|
@@ -28568,7 +28577,7 @@ class Vo {
|
|
|
28568
28577
|
const m = u ? `${u.major}.${u.minor}.${u.micro}` : "unknown";
|
|
28569
28578
|
return Promise.reject(new Error(`allow_direct is not available on server version ${m} - requires ${h}`));
|
|
28570
28579
|
}
|
|
28571
|
-
e.allow_direct = typeof e.allow_direct == "boolean" ? e.allow_direct : f, n.allow_direct = e.allow_direct, this.direct = n.allow_direct, n.num_replicas = t.replicas, t.ttl && (n.max_age =
|
|
28580
|
+
e.allow_direct = typeof e.allow_direct == "boolean" ? e.allow_direct : f, n.allow_direct = e.allow_direct, this.direct = n.allow_direct, n.num_replicas = t.replicas, t.ttl && (n.max_age = Wt(t.ttl)), n.allow_rollup_hdrs = !0;
|
|
28572
28581
|
let p;
|
|
28573
28582
|
try {
|
|
28574
28583
|
p = await this.jsm.streams.info(n.name), !p.config.allow_direct && this.direct === !0 && (this.direct = !1);
|
|
@@ -28777,7 +28786,7 @@ class Vo {
|
|
|
28777
28786
|
filter_subjects: a,
|
|
28778
28787
|
filter_subject: c,
|
|
28779
28788
|
flow_control: !0,
|
|
28780
|
-
idle_heartbeat:
|
|
28789
|
+
idle_heartbeat: Wt(5 * 1e3)
|
|
28781
28790
|
}, n);
|
|
28782
28791
|
}
|
|
28783
28792
|
remove(e) {
|
|
@@ -29101,17 +29110,17 @@ class Jh extends Or {
|
|
|
29101
29110
|
bytesLeft: g
|
|
29102
29111
|
});
|
|
29103
29112
|
else if (p === 400) {
|
|
29104
|
-
this.stop(new
|
|
29113
|
+
this.stop(new Me(m, `${p}`));
|
|
29105
29114
|
return;
|
|
29106
29115
|
} else if (p === 409 && m === "consumer deleted") {
|
|
29107
29116
|
if (this.notify(hi.ConsumerDeleted, `${p} ${m}`), !this.refilling || this.abortOnMissingResource) {
|
|
29108
|
-
const b = new
|
|
29117
|
+
const b = new Me(m, `${p}`);
|
|
29109
29118
|
this.stop(b);
|
|
29110
29119
|
return;
|
|
29111
29120
|
}
|
|
29112
29121
|
} else if (p === 503) {
|
|
29113
29122
|
if (this.notify(hi.NoResponders, `${p} No Responders`), !this.refilling || this.abortOnMissingResource) {
|
|
29114
|
-
const b = new
|
|
29123
|
+
const b = new Me("no responders", `${p}`);
|
|
29115
29124
|
this.stop(b);
|
|
29116
29125
|
return;
|
|
29117
29126
|
}
|
|
@@ -29229,7 +29238,7 @@ class Jh extends Or {
|
|
|
29229
29238
|
});
|
|
29230
29239
|
}
|
|
29231
29240
|
pullOptions() {
|
|
29232
|
-
const e = this.opts.max_messages - this.pending.msgs, t = this.opts.max_bytes - this.pending.bytes, n =
|
|
29241
|
+
const e = this.opts.max_messages - this.pending.msgs, t = this.opts.max_bytes - this.pending.bytes, n = Wt(this.opts.idle_heartbeat), i = Wt(this.opts.expires);
|
|
29233
29242
|
return {
|
|
29234
29243
|
batch: e,
|
|
29235
29244
|
max_bytes: t,
|
|
@@ -29424,10 +29433,10 @@ class IL {
|
|
|
29424
29433
|
deliver_policy: ur.StartSequence,
|
|
29425
29434
|
opt_start_seq: e,
|
|
29426
29435
|
ack_policy: Sr.None,
|
|
29427
|
-
inactive_threshold:
|
|
29436
|
+
inactive_threshold: Wt(300 * 1e3),
|
|
29428
29437
|
num_replicas: 1
|
|
29429
29438
|
};
|
|
29430
|
-
return this.consumerOpts.headers_only === !0 && (n.headers_only = !0), Array.isArray(this.consumerOpts.filterSubjects) && (n.filter_subjects = this.consumerOpts.filterSubjects), typeof this.consumerOpts.filterSubjects == "string" && (n.filter_subject = this.consumerOpts.filterSubjects), this.consumerOpts.replay_policy && (n.replay_policy = this.consumerOpts.replay_policy), e === this.startSeq + 1 && (n.deliver_policy = this.consumerOpts.deliver_policy || ur.StartSequence, (this.consumerOpts.deliver_policy === ur.LastPerSubject || this.consumerOpts.deliver_policy === ur.New || this.consumerOpts.deliver_policy === ur.Last) && (delete n.opt_start_seq, n.deliver_policy = this.consumerOpts.deliver_policy), n.deliver_policy === ur.LastPerSubject && typeof n.filter_subjects > "u" && typeof n.filter_subject > "u" && (n.filter_subject = ">"), this.consumerOpts.opt_start_time && (delete n.opt_start_seq, n.deliver_policy = ur.StartTime, n.opt_start_time = this.consumerOpts.opt_start_time), this.consumerOpts.inactive_threshold && (n.inactive_threshold =
|
|
29439
|
+
return this.consumerOpts.headers_only === !0 && (n.headers_only = !0), Array.isArray(this.consumerOpts.filterSubjects) && (n.filter_subjects = this.consumerOpts.filterSubjects), typeof this.consumerOpts.filterSubjects == "string" && (n.filter_subject = this.consumerOpts.filterSubjects), this.consumerOpts.replay_policy && (n.replay_policy = this.consumerOpts.replay_policy), e === this.startSeq + 1 && (n.deliver_policy = this.consumerOpts.deliver_policy || ur.StartSequence, (this.consumerOpts.deliver_policy === ur.LastPerSubject || this.consumerOpts.deliver_policy === ur.New || this.consumerOpts.deliver_policy === ur.Last) && (delete n.opt_start_seq, n.deliver_policy = this.consumerOpts.deliver_policy), n.deliver_policy === ur.LastPerSubject && typeof n.filter_subjects > "u" && typeof n.filter_subject > "u" && (n.filter_subject = ">"), this.consumerOpts.opt_start_time && (delete n.opt_start_seq, n.deliver_policy = ur.StartTime, n.opt_start_time = this.consumerOpts.opt_start_time), this.consumerOpts.inactive_threshold && (n.inactive_threshold = Wt(this.consumerOpts.inactive_threshold))), n;
|
|
29431
29440
|
}
|
|
29432
29441
|
async resetConsumer(e = 0) {
|
|
29433
29442
|
gs.next();
|
|
@@ -30080,7 +30089,7 @@ class Ro {
|
|
|
30080
30089
|
try {
|
|
30081
30090
|
const M = t ? t.getReader() : null, O = wb.create();
|
|
30082
30091
|
for (; ; ) {
|
|
30083
|
-
const { done: R, value:
|
|
30092
|
+
const { done: R, value: L } = M ? await M.read() : {
|
|
30084
30093
|
done: !0,
|
|
30085
30094
|
value: void 0
|
|
30086
30095
|
};
|
|
@@ -30110,8 +30119,8 @@ class Ro {
|
|
|
30110
30119
|
w.resolve(new Yh(_));
|
|
30111
30120
|
break;
|
|
30112
30121
|
}
|
|
30113
|
-
if (
|
|
30114
|
-
for (P.fill(
|
|
30122
|
+
if (L)
|
|
30123
|
+
for (P.fill(L); P.size() > h; ) {
|
|
30115
30124
|
_.chunks++, _.size += h;
|
|
30116
30125
|
const D = P.drain(e.options.max_chunk_size);
|
|
30117
30126
|
O.update(D), T.push(this.js.publish(b, D, {
|
|
@@ -30400,13 +30409,13 @@ class im extends tu {
|
|
|
30400
30409
|
}
|
|
30401
30410
|
const p = this.parseJsResponse(h);
|
|
30402
30411
|
if (p.stream === "")
|
|
30403
|
-
throw
|
|
30412
|
+
throw Me.errorForCode(ye.JetStreamInvalidAck);
|
|
30404
30413
|
return p.duplicate = p.duplicate ? p.duplicate : !1, p;
|
|
30405
30414
|
}
|
|
30406
30415
|
async pull(e, t, n = 0) {
|
|
30407
30416
|
Hr(e), Ta(t);
|
|
30408
30417
|
let i = this.timeout;
|
|
30409
|
-
n > i && (i = n), n = n < 0 ? 0 :
|
|
30418
|
+
n > i && (i = n), n = n < 0 ? 0 : Wt(n);
|
|
30410
30419
|
const a = {
|
|
30411
30420
|
batch: 1,
|
|
30412
30421
|
no_wait: n === 0,
|
|
@@ -30435,10 +30444,10 @@ class im extends tu {
|
|
|
30435
30444
|
}
|
|
30436
30445
|
h.no_wait = n.no_wait || !1, h.no_wait && h.expires && (h.expires = 0);
|
|
30437
30446
|
const p = n.expires || 0;
|
|
30438
|
-
if (p && (h.expires =
|
|
30447
|
+
if (p && (h.expires = Wt(p)), p === 0 && h.no_wait === !1)
|
|
30439
30448
|
throw new Error("expires or no_wait is required");
|
|
30440
30449
|
const m = n.idle_heartbeat || 0;
|
|
30441
|
-
m && (h.idle_heartbeat =
|
|
30450
|
+
m && (h.idle_heartbeat = Wt(m), n.delay_heartbeat === !0 && (h.idle_heartbeat = Wt(m * 4)));
|
|
30442
30451
|
const y = new Or(), g = h.batch;
|
|
30443
30452
|
let b = 0;
|
|
30444
30453
|
y.protocolFilterFn = (w, T = !1) => jd(w.msg) ? (f?.work(), !1) : !0, y.dispatchedFn = (w) => {
|
|
@@ -30460,7 +30469,7 @@ class im extends tu {
|
|
|
30460
30469
|
})), (async () => {
|
|
30461
30470
|
try {
|
|
30462
30471
|
m && (f = new tm(m, (w) => (y.push(() => {
|
|
30463
|
-
y.err = new
|
|
30472
|
+
y.err = new Me(`${Bn.IdleHeartbeatMissed}: ${w}`, ye.JetStreamIdleHeartBeat);
|
|
30464
30473
|
}), !0)));
|
|
30465
30474
|
} catch {
|
|
30466
30475
|
}
|
|
@@ -30511,16 +30520,16 @@ class im extends tu {
|
|
|
30511
30520
|
stream_seq: 0,
|
|
30512
30521
|
delivery_seq: 0
|
|
30513
30522
|
}, n.config.ack_policy !== Sr.NotSet && n.config.ack_policy !== Sr.None)
|
|
30514
|
-
throw new
|
|
30523
|
+
throw new Me("ordered consumer: ack_policy can only be set to 'none'", ye.ApiError);
|
|
30515
30524
|
if (n.config.durable_name && n.config.durable_name.length > 0)
|
|
30516
|
-
throw new
|
|
30525
|
+
throw new Me("ordered consumer: durable_name cannot be set", ye.ApiError);
|
|
30517
30526
|
if (n.config.deliver_subject && n.config.deliver_subject.length > 0)
|
|
30518
|
-
throw new
|
|
30527
|
+
throw new Me("ordered consumer: deliver_subject cannot be set", ye.ApiError);
|
|
30519
30528
|
if (n.config.max_deliver !== void 0 && n.config.max_deliver > 1)
|
|
30520
|
-
throw new
|
|
30529
|
+
throw new Me("ordered consumer: max_deliver cannot be set", ye.ApiError);
|
|
30521
30530
|
if (n.config.deliver_group && n.config.deliver_group.length > 0)
|
|
30522
|
-
throw new
|
|
30523
|
-
n.config.deliver_subject = Pi(this.nc.options.inboxPrefix), n.config.ack_policy = Sr.None, n.config.max_deliver = 1, n.config.flow_control = !0, n.config.idle_heartbeat = n.config.idle_heartbeat ||
|
|
30531
|
+
throw new Me("ordered consumer: deliver_group cannot be set", ye.ApiError);
|
|
30532
|
+
n.config.deliver_subject = Pi(this.nc.options.inboxPrefix), n.config.ack_policy = Sr.None, n.config.max_deliver = 1, n.config.flow_control = !0, n.config.idle_heartbeat = n.config.idle_heartbeat || Wt(5e3), n.config.ack_wait = Wt(1320 * 60 * 1e3), n.config.mem_storage = !0, n.config.num_replicas = 1;
|
|
30524
30533
|
}
|
|
30525
30534
|
if (n.config.ack_policy === Sr.NotSet && (n.config.ack_policy = Sr.All), n.api = this, n.config = n.config || {}, n.stream = n.stream ? n.stream : await this.findStream(e), n.attached = !1, n.config.durable_name)
|
|
30526
30535
|
try {
|
|
@@ -30557,7 +30566,7 @@ class im extends tu {
|
|
|
30557
30566
|
e.config = Object.assign({
|
|
30558
30567
|
deliver_policy: ur.All,
|
|
30559
30568
|
ack_policy: Sr.Explicit,
|
|
30560
|
-
ack_wait:
|
|
30569
|
+
ack_wait: Wt(30 * 1e3),
|
|
30561
30570
|
replay_policy: Ma.Instant
|
|
30562
30571
|
}, e.config);
|
|
30563
30572
|
const t = await this.consumerAPI.add(e.stream, e.config);
|
|
@@ -30623,11 +30632,11 @@ class sm {
|
|
|
30623
30632
|
}
|
|
30624
30633
|
_check(e, t, n) {
|
|
30625
30634
|
if (this.isClosed())
|
|
30626
|
-
throw
|
|
30635
|
+
throw Me.errorForCode(ye.ConnectionClosed);
|
|
30627
30636
|
if (t && this.isDraining() || n && this.protocol.noMorePublishing)
|
|
30628
|
-
throw
|
|
30637
|
+
throw Me.errorForCode(ye.ConnectionDraining);
|
|
30629
30638
|
if (e = e || "", e.length === 0)
|
|
30630
|
-
throw
|
|
30639
|
+
throw Me.errorForCode(ye.BadSubject);
|
|
30631
30640
|
}
|
|
30632
30641
|
publish(e, t, n) {
|
|
30633
30642
|
this._check(e, !1, !0), this.protocol.publish(e, t, n);
|
|
@@ -30665,7 +30674,7 @@ class sm {
|
|
|
30665
30674
|
return Promise.reject(f);
|
|
30666
30675
|
}
|
|
30667
30676
|
if (n.strategy = n.strategy || ni.Timer, n.maxWait = n.maxWait || 1e3, n.maxWait < 1)
|
|
30668
|
-
return Promise.reject(new
|
|
30677
|
+
return Promise.reject(new Me("timeout", ye.InvalidOption));
|
|
30669
30678
|
const a = new Or();
|
|
30670
30679
|
function u(f) {
|
|
30671
30680
|
a.push(() => {
|
|
@@ -30680,7 +30689,7 @@ class sm {
|
|
|
30680
30689
|
let h = typeof n.maxMessages == "number" && n.maxMessages > 0 ? n.maxMessages : -1;
|
|
30681
30690
|
const p = this.subscribe(Pi(this.options.inboxPrefix), {
|
|
30682
30691
|
callback: (b, A) => {
|
|
30683
|
-
if (A?.data?.length === 0 && A?.headers?.status === ye.NoResponders && (b =
|
|
30692
|
+
if (A?.data?.length === 0 && A?.headers?.status === ye.NoResponders && (b = Me.errorForCode(ye.NoResponders)), b) {
|
|
30684
30693
|
f && (b.stack += `
|
|
30685
30694
|
|
|
30686
30695
|
${f}`), m(b);
|
|
@@ -30754,9 +30763,9 @@ ${f}`), m(b);
|
|
|
30754
30763
|
}
|
|
30755
30764
|
const i = !this.protocol.options.noAsyncTraces;
|
|
30756
30765
|
if (n.timeout = n.timeout || 1e3, n.timeout < 1)
|
|
30757
|
-
return Promise.reject(new
|
|
30766
|
+
return Promise.reject(new Me("timeout", ye.InvalidOption));
|
|
30758
30767
|
if (!n.noMux && n.reply)
|
|
30759
|
-
return Promise.reject(new
|
|
30768
|
+
return Promise.reject(new Me("reply can only be used with noMux", ye.InvalidOption));
|
|
30760
30769
|
if (n.noMux) {
|
|
30761
30770
|
const a = n.reply ? n.reply : Pi(this.options.inboxPrefix), u = zt(), c = i ? new Error() : null, f = this.subscribe(a, {
|
|
30762
30771
|
max: 1,
|
|
@@ -30794,10 +30803,10 @@ ${c.stack}`), u.reject(h)) : u.resolve(p));
|
|
|
30794
30803
|
}
|
|
30795
30804
|
}
|
|
30796
30805
|
flush() {
|
|
30797
|
-
return this.isClosed() ? Promise.reject(
|
|
30806
|
+
return this.isClosed() ? Promise.reject(Me.errorForCode(ye.ConnectionClosed)) : this.protocol.flush();
|
|
30798
30807
|
}
|
|
30799
30808
|
drain() {
|
|
30800
|
-
return this.isClosed() ? Promise.reject(
|
|
30809
|
+
return this.isClosed() ? Promise.reject(Me.errorForCode(ye.ConnectionClosed)) : this.isDraining() ? Promise.reject(Me.errorForCode(ye.ConnectionDraining)) : (this.draining = !0, this.protocol.drain());
|
|
30801
30810
|
}
|
|
30802
30811
|
isClosed() {
|
|
30803
30812
|
return this.protocol.isClosed();
|
|
@@ -30850,7 +30859,7 @@ ${c.stack}`), u.reject(h)) : u.resolve(p));
|
|
|
30850
30859
|
}
|
|
30851
30860
|
async rtt() {
|
|
30852
30861
|
if (!this.protocol._closed && !this.protocol.connected)
|
|
30853
|
-
throw
|
|
30862
|
+
throw Me.errorForCode(ye.Disconnect);
|
|
30854
30863
|
const e = Date.now();
|
|
30855
30864
|
return await this.flush(), Date.now() - e;
|
|
30856
30865
|
}
|
|
@@ -30861,7 +30870,7 @@ ${c.stack}`), u.reject(h)) : u.resolve(p));
|
|
|
30861
30870
|
return this._services || (this._services = new FL(this)), this._services;
|
|
30862
30871
|
}
|
|
30863
30872
|
reconnect() {
|
|
30864
|
-
return this.isClosed() ? Promise.reject(
|
|
30873
|
+
return this.isClosed() ? Promise.reject(Me.errorForCode(ye.ConnectionClosed)) : this.isDraining() ? Promise.reject(Me.errorForCode(ye.ConnectionDraining)) : this.protocol.reconnect();
|
|
30865
30874
|
}
|
|
30866
30875
|
}
|
|
30867
30876
|
class FL {
|
|
@@ -30979,7 +30988,7 @@ class lS extends hF {
|
|
|
30979
30988
|
const f = c, h = this.sub.info;
|
|
30980
30989
|
h.last = f, this.info.config = f.config, this.info.name = f.name;
|
|
30981
30990
|
}).catch((c) => {
|
|
30982
|
-
const f = new
|
|
30991
|
+
const f = new Me(`unable to recreate ordered consumer ${i.stream} at seq ${e}`, ye.RequestError, c);
|
|
30983
30992
|
this.sub.callback(f, {});
|
|
30984
30993
|
});
|
|
30985
30994
|
}
|
|
@@ -31042,9 +31051,9 @@ class UL extends lS {
|
|
|
31042
31051
|
u.max_bytes = e.max_bytes;
|
|
31043
31052
|
}
|
|
31044
31053
|
let c = 0;
|
|
31045
|
-
e.expires && e.expires > 0 && (c = e.expires, u.expires =
|
|
31054
|
+
e.expires && e.expires > 0 && (c = e.expires, u.expires = Wt(c));
|
|
31046
31055
|
let f = 0;
|
|
31047
|
-
if (e.idle_heartbeat && e.idle_heartbeat > 0 && (f = e.idle_heartbeat, u.idle_heartbeat =
|
|
31056
|
+
if (e.idle_heartbeat && e.idle_heartbeat > 0 && (f = e.idle_heartbeat, u.idle_heartbeat = Wt(f)), f && c === 0)
|
|
31048
31057
|
throw new Error("idle_heartbeat requires expires");
|
|
31049
31058
|
if (f > c)
|
|
31050
31059
|
throw new Error("expires must be greater than idle_heartbeat");
|
|
@@ -31185,7 +31194,7 @@ class zL {
|
|
|
31185
31194
|
nak(e) {
|
|
31186
31195
|
let t = EL;
|
|
31187
31196
|
e && (t = db().encode(`-NAK ${JSON.stringify({
|
|
31188
|
-
delay:
|
|
31197
|
+
delay: Wt(e)
|
|
31189
31198
|
})}`)), this.doAck(t);
|
|
31190
31199
|
}
|
|
31191
31200
|
working() {
|
|
@@ -31195,7 +31204,7 @@ class zL {
|
|
|
31195
31204
|
batch: 1
|
|
31196
31205
|
}) {
|
|
31197
31206
|
const n = {};
|
|
31198
|
-
n.batch = t.batch || 1, n.no_wait = t.no_wait || !1, t.expires && t.expires > 0 && (n.expires =
|
|
31207
|
+
n.batch = t.batch || 1, n.no_wait = t.no_wait || !1, t.expires && t.expires > 0 && (n.expires = Wt(t.expires));
|
|
31199
31208
|
const i = Hn().encode(n), a = Da.concat(OL, kL, i), u = e ? {
|
|
31200
31209
|
reply: e
|
|
31201
31210
|
} : void 0;
|
|
@@ -31233,7 +31242,7 @@ class GL {
|
|
|
31233
31242
|
async connect(e, t) {
|
|
31234
31243
|
const n = zt();
|
|
31235
31244
|
if (t.tls)
|
|
31236
|
-
return n.reject(new
|
|
31245
|
+
return n.reject(new Me("tls", ye.InvalidOption)), n;
|
|
31237
31246
|
this.options = t;
|
|
31238
31247
|
const i = e.src;
|
|
31239
31248
|
if (t.wsFactory) {
|
|
@@ -31274,7 +31283,7 @@ class GL {
|
|
|
31274
31283
|
}, this.socket.onerror = (a) => {
|
|
31275
31284
|
if (this.isDiscarded())
|
|
31276
31285
|
return;
|
|
31277
|
-
const u = a, c = new
|
|
31286
|
+
const u = a, c = new Me(u.message, ye.Unknown, new Error(u.error));
|
|
31278
31287
|
n.reject(c);
|
|
31279
31288
|
}, n;
|
|
31280
31289
|
}
|
|
@@ -31461,7 +31470,7 @@ const Mb = (r, e) => {
|
|
|
31461
31470
|
"Multiple filters are not supported. Only the first filter will be used."
|
|
31462
31471
|
);
|
|
31463
31472
|
const { urls: u, natsCredsRef: c } = Ui(), f = is(), h = is();
|
|
31464
|
-
return
|
|
31473
|
+
return jt(() => !u.natsUrl || !c.current || !e || !t ? void 0 : ((async () => {
|
|
31465
31474
|
try {
|
|
31466
31475
|
const m = await KL(u.natsUrl, c.current);
|
|
31467
31476
|
f.current = m;
|