@machinemetrics/mm-react-tools 3.1.0-beta-1 → 3.1.0-beta-2
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 +936 -927
- package/dist/mm-react-tools.umd.js +27 -27
- package/package.json +1 -1
|
@@ -80,14 +80,14 @@ var ro = {};
|
|
|
80
80
|
var rg;
|
|
81
81
|
function kk() {
|
|
82
82
|
return rg || (rg = 1, process.env.NODE_ENV !== "production" && function() {
|
|
83
|
-
var r = Fs, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"),
|
|
84
|
-
function
|
|
83
|
+
var r = Fs, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), w = Symbol.iterator, A = "@@iterator";
|
|
84
|
+
function x(N) {
|
|
85
85
|
if (N === null || typeof N != "object")
|
|
86
86
|
return null;
|
|
87
|
-
var se =
|
|
87
|
+
var se = w && N[w] || N[A];
|
|
88
88
|
return typeof se == "function" ? se : null;
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var b = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
91
91
|
function O(N) {
|
|
92
92
|
{
|
|
93
93
|
for (var se = arguments.length, ye = new Array(se > 1 ? se - 1 : 0), Ae = 1; Ae < se; Ae++)
|
|
@@ -97,7 +97,7 @@ function kk() {
|
|
|
97
97
|
}
|
|
98
98
|
function P(N, se, ye) {
|
|
99
99
|
{
|
|
100
|
-
var Ae =
|
|
100
|
+
var Ae = b.ReactDebugCurrentFrame, je = Ae.getStackAddendum();
|
|
101
101
|
je !== "" && (se += "%s", ye = ye.concat([je]));
|
|
102
102
|
var at = ye.map(function(it) {
|
|
103
103
|
return String(it);
|
|
@@ -231,7 +231,7 @@ function kk() {
|
|
|
231
231
|
me < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
var Xe =
|
|
234
|
+
var Xe = b.ReactCurrentDispatcher, Je;
|
|
235
235
|
function dt(N, se, ye) {
|
|
236
236
|
{
|
|
237
237
|
if (Je === void 0)
|
|
@@ -300,18 +300,18 @@ function kk() {
|
|
|
300
300
|
if (F && Ae && typeof F.stack == "string") {
|
|
301
301
|
for (var et = F.stack.split(`
|
|
302
302
|
`), tt = Ae.stack.split(`
|
|
303
|
-
`), _t = et.length - 1,
|
|
304
|
-
|
|
305
|
-
for (; _t >= 1 &&
|
|
306
|
-
if (et[_t] !== tt[
|
|
307
|
-
if (_t !== 1 ||
|
|
303
|
+
`), _t = et.length - 1, _ = tt.length - 1; _t >= 1 && _ >= 0 && et[_t] !== tt[_]; )
|
|
304
|
+
_--;
|
|
305
|
+
for (; _t >= 1 && _ >= 0; _t--, _--)
|
|
306
|
+
if (et[_t] !== tt[_]) {
|
|
307
|
+
if (_t !== 1 || _ !== 1)
|
|
308
308
|
do
|
|
309
|
-
if (_t--,
|
|
309
|
+
if (_t--, _--, _ < 0 || et[_t] !== tt[_]) {
|
|
310
310
|
var I = `
|
|
311
311
|
` + et[_t].replace(" at new ", " at ");
|
|
312
312
|
return N.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", N.displayName)), typeof N == "function" && bt.set(N, I), I;
|
|
313
313
|
}
|
|
314
|
-
while (_t >= 1 &&
|
|
314
|
+
while (_t >= 1 && _ >= 0);
|
|
315
315
|
break;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -357,7 +357,7 @@ function kk() {
|
|
|
357
357
|
}
|
|
358
358
|
return "";
|
|
359
359
|
}
|
|
360
|
-
var G = Object.prototype.hasOwnProperty, Te = {}, ze =
|
|
360
|
+
var G = Object.prototype.hasOwnProperty, Te = {}, ze = b.ReactDebugCurrentFrame;
|
|
361
361
|
function $e(N) {
|
|
362
362
|
if (N) {
|
|
363
363
|
var se = N._owner, ye = X(N.type, N._source, se ? se.type : null);
|
|
@@ -408,7 +408,7 @@ function kk() {
|
|
|
408
408
|
if (wt(N))
|
|
409
409
|
return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Et(N)), Gt(N);
|
|
410
410
|
}
|
|
411
|
-
var Ft =
|
|
411
|
+
var Ft = b.ReactCurrentOwner, er = {
|
|
412
412
|
key: !0,
|
|
413
413
|
ref: !0,
|
|
414
414
|
__self: !0,
|
|
@@ -500,13 +500,13 @@ function kk() {
|
|
|
500
500
|
it[at] === void 0 && (it[at] = _t[at]);
|
|
501
501
|
}
|
|
502
502
|
if (et || tt) {
|
|
503
|
-
var
|
|
504
|
-
et && Ve(it,
|
|
503
|
+
var _ = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
|
|
504
|
+
et && Ve(it, _), tt && Be(it, _);
|
|
505
505
|
}
|
|
506
506
|
return Ot(N, et, tt, je, Ae, Ft.current, it);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
var tr =
|
|
509
|
+
var tr = b.ReactCurrentOwner, lr = b.ReactDebugCurrentFrame;
|
|
510
510
|
function Rt(N) {
|
|
511
511
|
if (N) {
|
|
512
512
|
var se = N._owner, ye = X(N.type, N._source, se ? se.type : null);
|
|
@@ -572,7 +572,7 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
572
572
|
else if (jr(N))
|
|
573
573
|
N._store && (N._store.validated = !0);
|
|
574
574
|
else if (N) {
|
|
575
|
-
var je =
|
|
575
|
+
var je = x(N);
|
|
576
576
|
if (typeof je == "function" && je !== N.entries)
|
|
577
577
|
for (var at = je.call(N), it; !(it = at.next()).done; )
|
|
578
578
|
jr(it.value) && wr(it.value, se);
|
|
@@ -628,9 +628,9 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
628
628
|
var _t;
|
|
629
629
|
N === null ? _t = "null" : Ke(N) ? _t = "array" : N !== void 0 && N.$$typeof === e ? (_t = "<" + (Ne(N.type) || "Unknown") + " />", et = " Did you accidentally export a JSX literal instead of a component?") : _t = typeof N, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _t, et);
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
if (
|
|
633
|
-
return
|
|
631
|
+
var _ = Ye(N, se, ye, je, at);
|
|
632
|
+
if (_ == null)
|
|
633
|
+
return _;
|
|
634
634
|
if (it) {
|
|
635
635
|
var I = se.children;
|
|
636
636
|
if (I !== void 0)
|
|
@@ -658,7 +658,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
658
658
|
<%s key={someKey} {...props} />`, U, C, ne, C), Wr[C + U] = !0;
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
return N === n ? sr(
|
|
661
|
+
return N === n ? sr(_) : Ar(_), _;
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
function xr(N, se, ye) {
|
|
@@ -952,14 +952,14 @@ function J0(r, e) {
|
|
|
952
952
|
const t = r.locationOffset.column - 1, n = "".padStart(t) + r.body, i = e.line - 1, a = r.locationOffset.line - 1, u = e.line + a, c = e.line === 1 ? t : 0, f = e.column + c, h = `${r.name}:${u}:${f}
|
|
953
953
|
`, d = n.split(/\r\n|[\n\r]/g), y = d[i];
|
|
954
954
|
if (y.length > 120) {
|
|
955
|
-
const g = Math.floor(f / 80), m = f % 80,
|
|
955
|
+
const g = Math.floor(f / 80), m = f % 80, w = [];
|
|
956
956
|
for (let A = 0; A < y.length; A += 80)
|
|
957
|
-
|
|
957
|
+
w.push(y.slice(A, A + 80));
|
|
958
958
|
return h + ag([
|
|
959
|
-
[`${u} |`,
|
|
960
|
-
...
|
|
959
|
+
[`${u} |`, w[0]],
|
|
960
|
+
...w.slice(1, g + 1).map((A) => ["|", A]),
|
|
961
961
|
["|", "^".padStart(m)],
|
|
962
|
-
["|",
|
|
962
|
+
["|", w[g + 1]]
|
|
963
963
|
]);
|
|
964
964
|
}
|
|
965
965
|
return h + ag([
|
|
@@ -1032,9 +1032,9 @@ class Td extends Error {
|
|
|
1032
1032
|
Array.isArray(u) ? u : u ? [u] : void 0
|
|
1033
1033
|
);
|
|
1034
1034
|
const g = og(
|
|
1035
|
-
(n = this.nodes) === null || n === void 0 ? void 0 : n.map((
|
|
1035
|
+
(n = this.nodes) === null || n === void 0 ? void 0 : n.map((w) => w.loc).filter((w) => w != null)
|
|
1036
1036
|
);
|
|
1037
|
-
this.source = c ?? (g == null || (i = g[0]) === null || i === void 0 ? void 0 : i.source), this.positions = f ?? (g == null ? void 0 : g.map((
|
|
1037
|
+
this.source = c ?? (g == null || (i = g[0]) === null || i === void 0 ? void 0 : i.source), this.positions = f ?? (g == null ? void 0 : g.map((w) => w.start)), this.locations = f && c ? f.map((w) => Ph(c, w)) : g == null ? void 0 : g.map((w) => Ph(w.source, w.start));
|
|
1038
1038
|
const m = Ck(
|
|
1039
1039
|
d == null ? void 0 : d.extensions
|
|
1040
1040
|
) ? d == null ? void 0 : d.extensions : void 0;
|
|
@@ -3118,14 +3118,14 @@ const dI = [
|
|
|
3118
3118
|
], kd = Object.freeze({});
|
|
3119
3119
|
function Hn(r, e, t = K0) {
|
|
3120
3120
|
const n = /* @__PURE__ */ new Map();
|
|
3121
|
-
for (const
|
|
3122
|
-
n.set(
|
|
3121
|
+
for (const b of Object.values(Re))
|
|
3122
|
+
n.set(b, pI(e, b));
|
|
3123
3123
|
let i, a = Array.isArray(r), u = [r], c = -1, f = [], h = r, d, y;
|
|
3124
3124
|
const g = [], m = [];
|
|
3125
3125
|
do {
|
|
3126
3126
|
c++;
|
|
3127
|
-
const
|
|
3128
|
-
if (
|
|
3127
|
+
const b = c === u.length, O = b && f.length !== 0;
|
|
3128
|
+
if (b) {
|
|
3129
3129
|
if (d = m.length === 0 ? void 0 : g[g.length - 1], h = y, y = m.pop(), O)
|
|
3130
3130
|
if (a) {
|
|
3131
3131
|
h = h.slice();
|
|
@@ -3150,17 +3150,17 @@ function Hn(r, e, t = K0) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
let P;
|
|
3152
3152
|
if (!Array.isArray(h)) {
|
|
3153
|
-
var
|
|
3153
|
+
var w, A;
|
|
3154
3154
|
ug(h) || Xu(!1, `Invalid AST Node: ${Ad(h)}.`);
|
|
3155
|
-
const D =
|
|
3155
|
+
const D = b ? (w = n.get(h.kind)) === null || w === void 0 ? void 0 : w.leave : (A = n.get(h.kind)) === null || A === void 0 ? void 0 : A.enter;
|
|
3156
3156
|
if (P = D == null ? void 0 : D.call(e, h, d, y, g, m), P === kd)
|
|
3157
3157
|
break;
|
|
3158
3158
|
if (P === !1) {
|
|
3159
|
-
if (!
|
|
3159
|
+
if (!b) {
|
|
3160
3160
|
g.pop();
|
|
3161
3161
|
continue;
|
|
3162
3162
|
}
|
|
3163
|
-
} else if (P !== void 0 && (f.push([d, P]), !
|
|
3163
|
+
} else if (P !== void 0 && (f.push([d, P]), !b))
|
|
3164
3164
|
if (ug(P))
|
|
3165
3165
|
h = P;
|
|
3166
3166
|
else {
|
|
@@ -3168,17 +3168,17 @@ function Hn(r, e, t = K0) {
|
|
|
3168
3168
|
continue;
|
|
3169
3169
|
}
|
|
3170
3170
|
}
|
|
3171
|
-
if (P === void 0 && O && f.push([d, h]),
|
|
3171
|
+
if (P === void 0 && O && f.push([d, h]), b)
|
|
3172
3172
|
g.pop();
|
|
3173
3173
|
else {
|
|
3174
|
-
var
|
|
3174
|
+
var x;
|
|
3175
3175
|
i = {
|
|
3176
3176
|
inArray: a,
|
|
3177
3177
|
index: c,
|
|
3178
3178
|
keys: u,
|
|
3179
3179
|
edits: f,
|
|
3180
3180
|
prev: i
|
|
3181
|
-
}, a = Array.isArray(h), u = a ? h : (
|
|
3181
|
+
}, a = Array.isArray(h), u = a ? h : (x = t[h.kind]) !== null && x !== void 0 ? x : [], c = -1, f = [], y && m.push(y), y = h;
|
|
3182
3182
|
}
|
|
3183
3183
|
} while (i !== void 0);
|
|
3184
3184
|
return f.length !== 0 ? f[f.length - 1][1] : r;
|
|
@@ -4414,8 +4414,8 @@ function Po(r, { max: e = Math.pow(2, 16), keyArgs: t, makeCacheKey: n = dP, nor
|
|
|
4414
4414
|
return r.apply(null, arguments);
|
|
4415
4415
|
let m = c.get(g);
|
|
4416
4416
|
m || (c.set(g, m = new Gc(r)), m.normalizeResult = i, m.subscribe = a, m.forget = () => c.delete(g));
|
|
4417
|
-
const
|
|
4418
|
-
return c.set(g, m), Sf.add(c), Hc.hasValue() || (Sf.forEach((A) => A.clean()), Sf.clear()),
|
|
4417
|
+
const w = m.recompute(Array.prototype.slice.call(arguments));
|
|
4418
|
+
return c.set(g, m), Sf.add(c), Hc.hasValue() || (Sf.forEach((A) => A.clean()), Sf.clear()), w;
|
|
4419
4419
|
};
|
|
4420
4420
|
Object.defineProperty(f, "size", {
|
|
4421
4421
|
get: () => c.size,
|
|
@@ -4572,8 +4572,8 @@ function wg(r) {
|
|
|
4572
4572
|
}
|
|
4573
4573
|
function Jc(r, e) {
|
|
4574
4574
|
Ls(e);
|
|
4575
|
-
for (var t = wg(""), n = wg(""), i = function(
|
|
4576
|
-
for (var O = 0, P = void 0; O <
|
|
4575
|
+
for (var t = wg(""), n = wg(""), i = function(b) {
|
|
4576
|
+
for (var O = 0, P = void 0; O < b.length && (P = b[O]); ++O)
|
|
4577
4577
|
if (!cr(P)) {
|
|
4578
4578
|
if (P.kind === Re.OPERATION_DEFINITION)
|
|
4579
4579
|
return t(P.name && P.name.value);
|
|
@@ -4583,13 +4583,13 @@ function Jc(r, e) {
|
|
|
4583
4583
|
return globalThis.__DEV__ !== !1 && Me.error(86), null;
|
|
4584
4584
|
}, a = 0, u = e.definitions.length - 1; u >= 0; --u)
|
|
4585
4585
|
e.definitions[u].kind === Re.OPERATION_DEFINITION && ++a;
|
|
4586
|
-
var c = mP(r), f = function(
|
|
4587
|
-
return kn(
|
|
4586
|
+
var c = mP(r), f = function(b) {
|
|
4587
|
+
return kn(b) && b.map(c).some(function(O) {
|
|
4588
4588
|
return O && O.remove;
|
|
4589
4589
|
});
|
|
4590
4590
|
}, h = /* @__PURE__ */ new Map(), d = !1, y = {
|
|
4591
|
-
enter: function(
|
|
4592
|
-
if (f(
|
|
4591
|
+
enter: function(b) {
|
|
4592
|
+
if (f(b.directives))
|
|
4593
4593
|
return d = !0, null;
|
|
4594
4594
|
}
|
|
4595
4595
|
}, g = Hn(e, {
|
|
@@ -4602,93 +4602,93 @@ function Jc(r, e) {
|
|
|
4602
4602
|
}
|
|
4603
4603
|
},
|
|
4604
4604
|
Variable: {
|
|
4605
|
-
enter: function(
|
|
4605
|
+
enter: function(b, O, P, D, L) {
|
|
4606
4606
|
var V = i(L);
|
|
4607
|
-
V && V.variables.add(
|
|
4607
|
+
V && V.variables.add(b.name.value);
|
|
4608
4608
|
}
|
|
4609
4609
|
},
|
|
4610
4610
|
FragmentSpread: {
|
|
4611
|
-
enter: function(
|
|
4612
|
-
if (f(
|
|
4611
|
+
enter: function(b, O, P, D, L) {
|
|
4612
|
+
if (f(b.directives))
|
|
4613
4613
|
return d = !0, null;
|
|
4614
4614
|
var V = i(L);
|
|
4615
|
-
V && V.fragmentSpreads.add(
|
|
4615
|
+
V && V.fragmentSpreads.add(b.name.value);
|
|
4616
4616
|
}
|
|
4617
4617
|
},
|
|
4618
4618
|
FragmentDefinition: {
|
|
4619
|
-
enter: function(
|
|
4620
|
-
h.set(JSON.stringify(D),
|
|
4619
|
+
enter: function(b, O, P, D) {
|
|
4620
|
+
h.set(JSON.stringify(D), b);
|
|
4621
4621
|
},
|
|
4622
|
-
leave: function(
|
|
4622
|
+
leave: function(b, O, P, D) {
|
|
4623
4623
|
var L = h.get(JSON.stringify(D));
|
|
4624
|
-
if (
|
|
4625
|
-
return
|
|
4624
|
+
if (b === L)
|
|
4625
|
+
return b;
|
|
4626
4626
|
if (
|
|
4627
4627
|
// This logic applies only if the document contains one or more
|
|
4628
4628
|
// operations, since removing all fragments from a document containing
|
|
4629
4629
|
// only fragments makes the document useless.
|
|
4630
|
-
a > 0 &&
|
|
4630
|
+
a > 0 && b.selectionSet.selections.every(function(V) {
|
|
4631
4631
|
return V.kind === Re.FIELD && V.name.value === "__typename";
|
|
4632
4632
|
})
|
|
4633
4633
|
)
|
|
4634
|
-
return n(
|
|
4634
|
+
return n(b.name.value).removed = !0, d = !0, null;
|
|
4635
4635
|
}
|
|
4636
4636
|
},
|
|
4637
4637
|
Directive: {
|
|
4638
|
-
leave: function(
|
|
4639
|
-
if (c(
|
|
4638
|
+
leave: function(b) {
|
|
4639
|
+
if (c(b))
|
|
4640
4640
|
return d = !0, null;
|
|
4641
4641
|
}
|
|
4642
4642
|
}
|
|
4643
4643
|
});
|
|
4644
4644
|
if (!d)
|
|
4645
4645
|
return e;
|
|
4646
|
-
var m = function(
|
|
4647
|
-
return
|
|
4646
|
+
var m = function(b) {
|
|
4647
|
+
return b.transitiveVars || (b.transitiveVars = new Set(b.variables), b.removed || b.fragmentSpreads.forEach(function(O) {
|
|
4648
4648
|
m(n(O)).transitiveVars.forEach(function(P) {
|
|
4649
|
-
|
|
4649
|
+
b.transitiveVars.add(P);
|
|
4650
4650
|
});
|
|
4651
|
-
})),
|
|
4652
|
-
},
|
|
4653
|
-
g.definitions.forEach(function(
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
}) :
|
|
4651
|
+
})), b;
|
|
4652
|
+
}, w = /* @__PURE__ */ new Set();
|
|
4653
|
+
g.definitions.forEach(function(b) {
|
|
4654
|
+
b.kind === Re.OPERATION_DEFINITION ? m(t(b.name && b.name.value)).fragmentSpreads.forEach(function(O) {
|
|
4655
|
+
w.add(O);
|
|
4656
|
+
}) : b.kind === Re.FRAGMENT_DEFINITION && // If there are no operations in the document, then all fragment
|
|
4657
4657
|
// definitions count as usages of their own fragment names. This heuristic
|
|
4658
4658
|
// prevents accidentally removing all fragment definitions from the
|
|
4659
4659
|
// document just because it contains no operations that use the fragments.
|
|
4660
|
-
a === 0 && !n(
|
|
4661
|
-
}),
|
|
4662
|
-
m(n(
|
|
4663
|
-
|
|
4660
|
+
a === 0 && !n(b.name.value).removed && w.add(b.name.value);
|
|
4661
|
+
}), w.forEach(function(b) {
|
|
4662
|
+
m(n(b)).fragmentSpreads.forEach(function(O) {
|
|
4663
|
+
w.add(O);
|
|
4664
4664
|
});
|
|
4665
4665
|
});
|
|
4666
|
-
var A = function(
|
|
4666
|
+
var A = function(b) {
|
|
4667
4667
|
return !!// A fragment definition will be removed if there are no spreads that refer
|
|
4668
4668
|
// to it, or the fragment was explicitly removed because it had no fields
|
|
4669
4669
|
// other than __typename.
|
|
4670
|
-
(!
|
|
4671
|
-
},
|
|
4672
|
-
enter: function(
|
|
4673
|
-
if (A(
|
|
4670
|
+
(!w.has(b) || n(b).removed);
|
|
4671
|
+
}, x = {
|
|
4672
|
+
enter: function(b) {
|
|
4673
|
+
if (A(b.name.value))
|
|
4674
4674
|
return null;
|
|
4675
4675
|
}
|
|
4676
4676
|
};
|
|
4677
4677
|
return jd(Hn(g, {
|
|
4678
4678
|
// If the fragment is going to be removed, then leaving any dangling
|
|
4679
4679
|
// FragmentSpread nodes with the same name would be a mistake.
|
|
4680
|
-
FragmentSpread:
|
|
4680
|
+
FragmentSpread: x,
|
|
4681
4681
|
// This is where the fragment definition is actually removed.
|
|
4682
|
-
FragmentDefinition:
|
|
4682
|
+
FragmentDefinition: x,
|
|
4683
4683
|
OperationDefinition: {
|
|
4684
|
-
leave: function(
|
|
4685
|
-
if (
|
|
4684
|
+
leave: function(b) {
|
|
4685
|
+
if (b.variableDefinitions) {
|
|
4686
4686
|
var O = m(
|
|
4687
4687
|
// If an operation is anonymous, we use the empty string as its key.
|
|
4688
|
-
t(
|
|
4688
|
+
t(b.name && b.name.value)
|
|
4689
4689
|
).transitiveVars;
|
|
4690
|
-
if (O.size <
|
|
4691
|
-
return j(j({},
|
|
4690
|
+
if (O.size < b.variableDefinitions.length)
|
|
4691
|
+
return j(j({}, b), { variableDefinitions: b.variableDefinitions.filter(function(P) {
|
|
4692
4692
|
return O.has(P.variable.name.value);
|
|
4693
4693
|
}) });
|
|
4694
4694
|
}
|
|
@@ -4928,29 +4928,29 @@ function kP(r) {
|
|
|
4928
4928
|
startCursor: m
|
|
4929
4929
|
}
|
|
4930
4930
|
}));
|
|
4931
|
-
var
|
|
4932
|
-
|
|
4931
|
+
var w = g && g.cursor;
|
|
4932
|
+
w && !d && (t = Co(t, {
|
|
4933
4933
|
pageInfo: {
|
|
4934
|
-
endCursor:
|
|
4934
|
+
endCursor: w
|
|
4935
4935
|
}
|
|
4936
4936
|
}));
|
|
4937
4937
|
}
|
|
4938
|
-
var A = e.edges,
|
|
4938
|
+
var A = e.edges, x = [];
|
|
4939
4939
|
if (i && i.after) {
|
|
4940
|
-
var
|
|
4940
|
+
var b = A.findIndex(function(Y) {
|
|
4941
4941
|
return Y.cursor === i.after;
|
|
4942
4942
|
});
|
|
4943
|
-
|
|
4943
|
+
b >= 0 && (A = A.slice(0, b + 1));
|
|
4944
4944
|
} else if (i && i.before) {
|
|
4945
|
-
var
|
|
4945
|
+
var b = A.findIndex(function(ue) {
|
|
4946
4946
|
return ue.cursor === i.before;
|
|
4947
4947
|
});
|
|
4948
|
-
|
|
4948
|
+
x = b < 0 ? A : A.slice(b), A = [];
|
|
4949
4949
|
} else t.edges && (A = []);
|
|
4950
|
-
var O = Tr(Tr(Tr([], A, !0), c, !0),
|
|
4950
|
+
var O = Tr(Tr(Tr([], A, !0), c, !0), x, !0), P = j(j({}, t.pageInfo), e.pageInfo);
|
|
4951
4951
|
if (t.pageInfo) {
|
|
4952
4952
|
var D = t.pageInfo, L = D.hasPreviousPage, V = D.hasNextPage, h = D.startCursor, d = D.endCursor, te = dn(D, ["hasPreviousPage", "hasNextPage", "startCursor", "endCursor"]);
|
|
4953
|
-
Object.assign(P, te), A.length || (L !== void 0 && (P.hasPreviousPage = L), h !== void 0 && (P.startCursor = h)),
|
|
4953
|
+
Object.assign(P, te), A.length || (L !== void 0 && (P.hasPreviousPage = L), h !== void 0 && (P.startCursor = h)), x.length || (V !== void 0 && (P.hasNextPage = V), d !== void 0 && (P.endCursor = d));
|
|
4954
4954
|
}
|
|
4955
4955
|
return j(j(j({}, Ef(e)), Ef(t)), { edges: O, pageInfo: P });
|
|
4956
4956
|
}
|
|
@@ -6036,7 +6036,7 @@ var dC = function(r) {
|
|
|
6036
6036
|
), Tg = Object.prototype.hasOwnProperty;
|
|
6037
6037
|
function pC(r, e) {
|
|
6038
6038
|
return Qi(this, void 0, void 0, function() {
|
|
6039
|
-
var t, n, i, a, u, c, f, h, d, y, g, m,
|
|
6039
|
+
var t, n, i, a, u, c, f, h, d, y, g, m, w, A, x, b, O, P, D, L, V, te, Y, ue;
|
|
6040
6040
|
return Ji(this, function(fe) {
|
|
6041
6041
|
switch (fe.label) {
|
|
6042
6042
|
case 0:
|
|
@@ -6047,15 +6047,15 @@ function pC(r, e) {
|
|
|
6047
6047
|
case 1:
|
|
6048
6048
|
return h ? [4, f.next()] : [3, 3];
|
|
6049
6049
|
case 2:
|
|
6050
|
-
for (d = fe.sent(), y = d.value, g = d.done, m = typeof y == "string" ? y : t.decode(y),
|
|
6051
|
-
if (
|
|
6050
|
+
for (d = fe.sent(), y = d.value, g = d.done, m = typeof y == "string" ? y : t.decode(y), w = c.length - u.length + 1, h = !g, c += m, A = c.indexOf(u, w); A > -1; ) {
|
|
6051
|
+
if (x = void 0, te = [
|
|
6052
6052
|
c.slice(0, A),
|
|
6053
6053
|
c.slice(A + u.length)
|
|
6054
|
-
],
|
|
6054
|
+
], x = te[0], c = te[1], b = x.indexOf(`\r
|
|
6055
6055
|
\r
|
|
6056
|
-
`), O = mC(
|
|
6056
|
+
`), O = mC(x.slice(0, b)), P = O["content-type"], P && P.toLowerCase().indexOf("application/json") === -1)
|
|
6057
6057
|
throw new Error("Unsupported patch content type: application/json is required.");
|
|
6058
|
-
if (D =
|
|
6058
|
+
if (D = x.slice(b), D) {
|
|
6059
6059
|
if (L = Vb(r, D), Object.keys(L).length > 1 || "data" in L || "incremental" in L || "errors" in L || "payload" in L)
|
|
6060
6060
|
if ($b(L)) {
|
|
6061
6061
|
if (V = {}, "payload" in L) {
|
|
@@ -6264,12 +6264,12 @@ var Ag = Bn(function() {
|
|
|
6264
6264
|
headers: y.headers
|
|
6265
6265
|
};
|
|
6266
6266
|
return new sn(function(m) {
|
|
6267
|
-
var
|
|
6267
|
+
var w = Gb(m, t), A = m.getContext(), x = {};
|
|
6268
6268
|
if (A.clientAwareness) {
|
|
6269
|
-
var
|
|
6270
|
-
O && (
|
|
6269
|
+
var b = A.clientAwareness, O = b.name, P = b.version;
|
|
6270
|
+
O && (x["apollographql-client-name"] = O), P && (x["apollographql-client-version"] = P);
|
|
6271
6271
|
}
|
|
6272
|
-
var D = j(j({},
|
|
6272
|
+
var D = j(j({}, x), A.headers), L = {
|
|
6273
6273
|
http: A.http,
|
|
6274
6274
|
options: A.fetchOptions,
|
|
6275
6275
|
credentials: A.credentials,
|
|
@@ -6296,10 +6296,10 @@ var Ag = Bn(function() {
|
|
|
6296
6296
|
Ne && Le && globalThis.__DEV__ !== !1 && Me.warn(39), Ne ? me += "boundary=graphql;subscriptionSpec=1.0,application/json" : Le && (me += "deferSpec=20220824,application/json"), Y.headers.accept = me;
|
|
6297
6297
|
}
|
|
6298
6298
|
if (Y.method === "GET") {
|
|
6299
|
-
var Qe = Qb(
|
|
6299
|
+
var Qe = Qb(w, ue), ve = Qe.newURI, ce = Qe.parseError;
|
|
6300
6300
|
if (ce)
|
|
6301
6301
|
return nc(ce);
|
|
6302
|
-
|
|
6302
|
+
w = ve;
|
|
6303
6303
|
} else
|
|
6304
6304
|
try {
|
|
6305
6305
|
Y.body = xc(ue, "Payload");
|
|
@@ -6310,7 +6310,7 @@ var Ag = Bn(function() {
|
|
|
6310
6310
|
var Pe = n || Bn(function() {
|
|
6311
6311
|
return fetch;
|
|
6312
6312
|
}) || Ag, we = Se.next.bind(Se);
|
|
6313
|
-
return Pe(
|
|
6313
|
+
return Pe(w, Y).then(function(Ze) {
|
|
6314
6314
|
var St;
|
|
6315
6315
|
m.setContext({ response: Ze });
|
|
6316
6316
|
var lt = (St = Ze.headers) === null || St === void 0 ? void 0 : St.get("content-type");
|
|
@@ -6475,10 +6475,10 @@ function ic(r, e, t, n) {
|
|
|
6475
6475
|
}
|
|
6476
6476
|
return ic(h, c, f, n);
|
|
6477
6477
|
} else {
|
|
6478
|
-
var
|
|
6479
|
-
if (
|
|
6480
|
-
return Rg(
|
|
6481
|
-
|
|
6478
|
+
var w = $o(a, n.fragmentMap);
|
|
6479
|
+
if (w)
|
|
6480
|
+
return Rg(w) ? !0 : ic(
|
|
6481
|
+
w.selectionSet,
|
|
6482
6482
|
// Notice that we reuse the same aResult and bResult values here,
|
|
6483
6483
|
// since the fragment ...spread does not specify a field name, but
|
|
6484
6484
|
// consists of multiple fields (within the fragment's selection set)
|
|
@@ -6539,13 +6539,13 @@ var ep = (
|
|
|
6539
6539
|
// Always ensure we deliver the first result
|
|
6540
6540
|
!(y && Yb(h, { data: y == null ? void 0 : y.result }, { data: m.result }))
|
|
6541
6541
|
) {
|
|
6542
|
-
var
|
|
6542
|
+
var w = {
|
|
6543
6543
|
data: m.result,
|
|
6544
6544
|
complete: !!m.complete
|
|
6545
6545
|
};
|
|
6546
|
-
m.missing && (
|
|
6546
|
+
m.missing && (w.missing = Wo(m.missing.map(function(A) {
|
|
6547
6547
|
return A.missing;
|
|
6548
|
-
}))), y = m, g.next(
|
|
6548
|
+
}))), y = m, g.next(w);
|
|
6549
6549
|
}
|
|
6550
6550
|
} }));
|
|
6551
6551
|
});
|
|
@@ -6752,24 +6752,24 @@ var sc = /* @__PURE__ */ Object.create(null), Tf = function() {
|
|
|
6752
6752
|
if (m === Ng)
|
|
6753
6753
|
n.group.dirty(e, h);
|
|
6754
6754
|
else if (m === sc && (m = void 0), m !== y && (a[h] = m, u = !0, y = m, globalThis.__DEV__ !== !1)) {
|
|
6755
|
-
var
|
|
6755
|
+
var w = function(L) {
|
|
6756
6756
|
if (n.lookup(L.__ref) === void 0)
|
|
6757
6757
|
return globalThis.__DEV__ !== !1 && Me.warn(2, L), !0;
|
|
6758
6758
|
};
|
|
6759
6759
|
if (Ct(m))
|
|
6760
|
-
|
|
6760
|
+
w(m);
|
|
6761
6761
|
else if (Array.isArray(m))
|
|
6762
|
-
for (var A = !1,
|
|
6763
|
-
var P = O[
|
|
6762
|
+
for (var A = !1, x = void 0, b = 0, O = m; b < O.length; b++) {
|
|
6763
|
+
var P = O[b];
|
|
6764
6764
|
if (Ct(P)) {
|
|
6765
|
-
if (A = !0,
|
|
6765
|
+
if (A = !0, w(P))
|
|
6766
6766
|
break;
|
|
6767
6767
|
} else if (typeof P == "object" && P) {
|
|
6768
6768
|
var D = n.policies.identify(P)[0];
|
|
6769
|
-
D && (
|
|
6769
|
+
D && (x = P);
|
|
6770
6770
|
}
|
|
6771
|
-
if (A &&
|
|
6772
|
-
globalThis.__DEV__ !== !1 && Me.warn(3,
|
|
6771
|
+
if (A && x !== void 0) {
|
|
6772
|
+
globalThis.__DEV__ !== !1 && Me.warn(3, x);
|
|
6773
6773
|
break;
|
|
6774
6774
|
}
|
|
6775
6775
|
}
|
|
@@ -7006,8 +7006,8 @@ var Fg = (
|
|
|
7006
7006
|
var u = this.pool.lookupArray(f);
|
|
7007
7007
|
if (!u.object) {
|
|
7008
7008
|
var y = u.object = Object.create(c);
|
|
7009
|
-
this.known.add(y), h.sorted.forEach(function(m,
|
|
7010
|
-
y[m] = f[d +
|
|
7009
|
+
this.known.add(y), h.sorted.forEach(function(m, w) {
|
|
7010
|
+
y[m] = f[d + w];
|
|
7011
7011
|
}), globalThis.__DEV__ !== !1 && Object.freeze(y);
|
|
7012
7012
|
}
|
|
7013
7013
|
return u.object;
|
|
@@ -7083,15 +7083,15 @@ var DC = (
|
|
|
7083
7083
|
objectOrReference: g,
|
|
7084
7084
|
enclosingRef: g,
|
|
7085
7085
|
context: j({ store: t, query: n, policies: y, variables: u, varString: Ti(u), canonizeResults: d }, ew(n, this.config.fragments))
|
|
7086
|
-
}),
|
|
7087
|
-
if (m.missing && (
|
|
7086
|
+
}), w;
|
|
7087
|
+
if (m.missing && (w = [
|
|
7088
7088
|
new tp(FC(m.missing), m.missing, n, u)
|
|
7089
7089
|
], !f))
|
|
7090
|
-
throw
|
|
7090
|
+
throw w[0];
|
|
7091
7091
|
return {
|
|
7092
7092
|
result: m.result,
|
|
7093
|
-
complete: !
|
|
7094
|
-
missing:
|
|
7093
|
+
complete: !w,
|
|
7094
|
+
missing: w
|
|
7095
7095
|
};
|
|
7096
7096
|
}, r.prototype.isFresh = function(e, t, n, i) {
|
|
7097
7097
|
if (bo(i.store) && this.knownResults.get(e) === n) {
|
|
@@ -7117,7 +7117,7 @@ var DC = (
|
|
|
7117
7117
|
};
|
|
7118
7118
|
var c = u.variables, f = u.policies, h = u.store, d = h.getFieldValue(i, "__typename"), y = [], g, m = new Ci();
|
|
7119
7119
|
this.config.addTypename && typeof d == "string" && !f.rootIdsByTypename[d] && y.push({ __typename: d });
|
|
7120
|
-
function
|
|
7120
|
+
function w(P, D) {
|
|
7121
7121
|
var L;
|
|
7122
7122
|
return P.missing && (g = m.merge(g, (L = {}, L[D] = P.missing, L))), P.result;
|
|
7123
7123
|
}
|
|
@@ -7132,12 +7132,12 @@ var DC = (
|
|
|
7132
7132
|
variables: u.variables,
|
|
7133
7133
|
from: i
|
|
7134
7134
|
}, u), te = Ii(P);
|
|
7135
|
-
V === void 0 ? Yc.added(P) || (g = m.merge(g, (D = {}, D[te] = "Can't find field '".concat(P.name.value, "' on ").concat(Ct(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), D))) : cr(V) ? V.length > 0 && (V =
|
|
7135
|
+
V === void 0 ? Yc.added(P) || (g = m.merge(g, (D = {}, D[te] = "Can't find field '".concat(P.name.value, "' on ").concat(Ct(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), D))) : cr(V) ? V.length > 0 && (V = w(t.executeSubSelectedArray({
|
|
7136
7136
|
field: P,
|
|
7137
7137
|
array: V,
|
|
7138
7138
|
enclosingRef: a,
|
|
7139
7139
|
context: u
|
|
7140
|
-
}), te)) : P.selectionSet ? V != null && (V =
|
|
7140
|
+
}), te)) : P.selectionSet ? V != null && (V = w(t.executeSelectionSet({
|
|
7141
7141
|
selectionSet: P.selectionSet,
|
|
7142
7142
|
objectOrReference: V,
|
|
7143
7143
|
enclosingRef: Ct(V) ? V : a,
|
|
@@ -7150,7 +7150,7 @@ var DC = (
|
|
|
7150
7150
|
Y && f.fragmentMatches(Y, d) && Y.selectionSet.selections.forEach(A.add, A);
|
|
7151
7151
|
}
|
|
7152
7152
|
});
|
|
7153
|
-
var
|
|
7153
|
+
var x = Wo(y), b = { result: x, missing: g }, O = u.canonizeResults ? this.canon.admit(b) : Oa(b);
|
|
7154
7154
|
return O.result && this.knownResults.set(O.result, n), O;
|
|
7155
7155
|
}, r.prototype.execSubSelectedArrayImpl = function(e) {
|
|
7156
7156
|
var t = this, n = e.field, i = e.array, a = e.enclosingRef, u = e.context, c, f = new Ci();
|
|
@@ -7283,11 +7283,11 @@ function $g(r) {
|
|
|
7283
7283
|
var d = h[0], y = d.charAt(0);
|
|
7284
7284
|
if (y === "@") {
|
|
7285
7285
|
if (i && kn(i.directives)) {
|
|
7286
|
-
var g = d.slice(1), m = i.directives.find(function(
|
|
7287
|
-
return
|
|
7288
|
-
}),
|
|
7289
|
-
return
|
|
7290
|
-
|
|
7286
|
+
var g = d.slice(1), m = i.directives.find(function(b) {
|
|
7287
|
+
return b.name.value === g;
|
|
7288
|
+
}), w = m && Bo(m, a);
|
|
7289
|
+
return w && pa(
|
|
7290
|
+
w,
|
|
7291
7291
|
// If keyPath.length === 1, this code calls extractKeyPath with an
|
|
7292
7292
|
// empty path, which works because it uses directiveArgs as the
|
|
7293
7293
|
// extracted value.
|
|
@@ -7299,8 +7299,8 @@ function $g(r) {
|
|
|
7299
7299
|
if (y === "$") {
|
|
7300
7300
|
var A = d.slice(1);
|
|
7301
7301
|
if (a && Dr.call(a, A)) {
|
|
7302
|
-
var
|
|
7303
|
-
return
|
|
7302
|
+
var x = h.slice(0);
|
|
7303
|
+
return x[0] = A, pa(a, x);
|
|
7304
7304
|
}
|
|
7305
7305
|
return;
|
|
7306
7306
|
}
|
|
@@ -7463,8 +7463,8 @@ var qC = function() {
|
|
|
7463
7463
|
if (t === u)
|
|
7464
7464
|
return !0;
|
|
7465
7465
|
if (this.usingPossibleTypes && this.supertypeMap.has(u))
|
|
7466
|
-
for (var c = this.getSupertypeSet(t, !0), f = [c], h = function(
|
|
7467
|
-
var A = a.getSupertypeSet(
|
|
7466
|
+
for (var c = this.getSupertypeSet(t, !0), f = [c], h = function(w) {
|
|
7467
|
+
var A = a.getSupertypeSet(w, !1);
|
|
7468
7468
|
A && A.size && f.indexOf(A) < 0 && f.push(A);
|
|
7469
7469
|
}, d = !!(n && this.fuzzySubtypes.size), y = !1, g = 0; g < f.length; ++g) {
|
|
7470
7470
|
var m = f[g];
|
|
@@ -7476,9 +7476,9 @@ var qC = function() {
|
|
|
7476
7476
|
// after we verify the supertype, but this check is often less
|
|
7477
7477
|
// expensive than that search, and we will have to do the
|
|
7478
7478
|
// comparison anyway whenever we find a potential match.
|
|
7479
|
-
Wh(e.selectionSet, n, i) && (d = !1, y = !0, this.fuzzySubtypes.forEach(function(
|
|
7480
|
-
var
|
|
7481
|
-
|
|
7479
|
+
Wh(e.selectionSet, n, i) && (d = !1, y = !0, this.fuzzySubtypes.forEach(function(w, A) {
|
|
7480
|
+
var x = t.match(w);
|
|
7481
|
+
x && x[0] === t && h(A);
|
|
7482
7482
|
}));
|
|
7483
7483
|
}
|
|
7484
7484
|
return !1;
|
|
@@ -7617,8 +7617,8 @@ var $C = (
|
|
|
7617
7617
|
return r.prototype.writeToStore = function(e, t) {
|
|
7618
7618
|
var n = this, i = t.query, a = t.result, u = t.dataId, c = t.variables, f = t.overwrite, h = js(i), d = PC();
|
|
7619
7619
|
c = j(j({}, zc(h)), c);
|
|
7620
|
-
var y = j(j({ store: e, written: /* @__PURE__ */ Object.create(null), merge: function(m,
|
|
7621
|
-
return d.merge(m,
|
|
7620
|
+
var y = j(j({ store: e, written: /* @__PURE__ */ Object.create(null), merge: function(m, w) {
|
|
7621
|
+
return d.merge(m, w);
|
|
7622
7622
|
}, variables: c, varString: Ti(c) }, ew(i, this.fragments)), { overwrite: !!f, incomingById: /* @__PURE__ */ new Map(), clientOnly: !1, deferred: !1, flavors: /* @__PURE__ */ new Map() }), g = this.processSelectionSet({
|
|
7623
7623
|
result: a || /* @__PURE__ */ Object.create(null),
|
|
7624
7624
|
dataId: u,
|
|
@@ -7628,30 +7628,30 @@ var $C = (
|
|
|
7628
7628
|
});
|
|
7629
7629
|
if (!Ct(g))
|
|
7630
7630
|
throw nn(11, a);
|
|
7631
|
-
return y.incomingById.forEach(function(m,
|
|
7632
|
-
var A = m.storeObject,
|
|
7633
|
-
if (
|
|
7634
|
-
var P = n.applyMerges(
|
|
7631
|
+
return y.incomingById.forEach(function(m, w) {
|
|
7632
|
+
var A = m.storeObject, x = m.mergeTree, b = m.fieldNodeSet, O = es(w);
|
|
7633
|
+
if (x && x.map.size) {
|
|
7634
|
+
var P = n.applyMerges(x, O, A, y);
|
|
7635
7635
|
if (Ct(P))
|
|
7636
7636
|
return;
|
|
7637
7637
|
A = P;
|
|
7638
7638
|
}
|
|
7639
7639
|
if (globalThis.__DEV__ !== !1 && !y.overwrite) {
|
|
7640
7640
|
var D = /* @__PURE__ */ Object.create(null);
|
|
7641
|
-
|
|
7641
|
+
b.forEach(function(te) {
|
|
7642
7642
|
te.selectionSet && (D[te.name.value] = !0);
|
|
7643
7643
|
});
|
|
7644
7644
|
var L = function(te) {
|
|
7645
7645
|
return D[ls(te)] === !0;
|
|
7646
7646
|
}, V = function(te) {
|
|
7647
|
-
var Y =
|
|
7647
|
+
var Y = x && x.map.get(te);
|
|
7648
7648
|
return !!(Y && Y.info && Y.info.merge);
|
|
7649
7649
|
};
|
|
7650
7650
|
Object.keys(A).forEach(function(te) {
|
|
7651
7651
|
L(te) && !V(te) && BC(O, A, te, y.store);
|
|
7652
7652
|
});
|
|
7653
7653
|
}
|
|
7654
|
-
e.merge(
|
|
7654
|
+
e.merge(w, A);
|
|
7655
7655
|
}), e.retain(g.__ref), g;
|
|
7656
7656
|
}, r.prototype.processSelectionSet = function(e) {
|
|
7657
7657
|
var t = this, n = e.dataId, i = e.result, a = e.selectionSet, u = e.context, c = e.mergeTree, f = this.cache.policies, h = /* @__PURE__ */ Object.create(null), d = n && f.rootTypenamesById[n] || gc(i, a, u.fragmentMap) || n && u.store.get(n, "__typename");
|
|
@@ -7712,16 +7712,16 @@ var $C = (
|
|
|
7712
7712
|
fragmentMap: u.fragmentMap,
|
|
7713
7713
|
storeObject: h,
|
|
7714
7714
|
readField: y
|
|
7715
|
-
}),
|
|
7716
|
-
n = n ||
|
|
7715
|
+
}), w = m[0], A = m[1];
|
|
7716
|
+
n = n || w, A && (h = u.merge(h, A));
|
|
7717
7717
|
} catch (P) {
|
|
7718
7718
|
if (!n)
|
|
7719
7719
|
throw P;
|
|
7720
7720
|
}
|
|
7721
7721
|
if (typeof n == "string") {
|
|
7722
|
-
var
|
|
7723
|
-
if (
|
|
7724
|
-
return
|
|
7722
|
+
var x = es(n), b = u.written[n] || (u.written[n] = []);
|
|
7723
|
+
if (b.indexOf(a) >= 0 || (b.push(a), this.reader && this.reader.isFresh(i, x, a, u)))
|
|
7724
|
+
return x;
|
|
7725
7725
|
var O = u.incomingById.get(n);
|
|
7726
7726
|
return O ? (O.storeObject = u.merge(O.storeObject, h), O.mergeTree = Hh(O.mergeTree, c), g.forEach(function(P) {
|
|
7727
7727
|
return O.fieldNodeSet.add(P);
|
|
@@ -7732,7 +7732,7 @@ var $C = (
|
|
|
7732
7732
|
// reused for entirely different parts of the result tree.
|
|
7733
7733
|
mergeTree: Sc(c) ? void 0 : c,
|
|
7734
7734
|
fieldNodeSet: g
|
|
7735
|
-
}),
|
|
7735
|
+
}), x;
|
|
7736
7736
|
}
|
|
7737
7737
|
return h;
|
|
7738
7738
|
}, r.prototype.processFieldValue = function(e, t, n, i) {
|
|
@@ -7761,26 +7761,26 @@ var $C = (
|
|
|
7761
7761
|
);
|
|
7762
7762
|
y.visited || (y.visited = !0, h.selections.forEach(function(g) {
|
|
7763
7763
|
if (Ca(g, n.variables)) {
|
|
7764
|
-
var m = d.clientOnly,
|
|
7764
|
+
var m = d.clientOnly, w = d.deferred;
|
|
7765
7765
|
if (
|
|
7766
7766
|
// Since the presence of @client or @defer on this field can only
|
|
7767
7767
|
// cause clientOnly or deferred to become true, we can skip the
|
|
7768
7768
|
// forEach loop if both clientOnly and deferred are already true.
|
|
7769
|
-
!(m &&
|
|
7770
|
-
var O =
|
|
7769
|
+
!(m && w) && kn(g.directives) && g.directives.forEach(function(b) {
|
|
7770
|
+
var O = b.name.value;
|
|
7771
7771
|
if (O === "client" && (m = !0), O === "defer") {
|
|
7772
|
-
var P = Bo(
|
|
7773
|
-
(!P || P.if !== !1) && (
|
|
7772
|
+
var P = Bo(b, n.variables);
|
|
7773
|
+
(!P || P.if !== !1) && (w = !0);
|
|
7774
7774
|
}
|
|
7775
7775
|
}), Pi(g)
|
|
7776
7776
|
) {
|
|
7777
7777
|
var A = a.get(g);
|
|
7778
|
-
A && (m = m && A.clientOnly,
|
|
7778
|
+
A && (m = m && A.clientOnly, w = w && A.deferred), a.set(g, kf(n, m, w));
|
|
7779
7779
|
} else {
|
|
7780
|
-
var
|
|
7781
|
-
if (!
|
|
7780
|
+
var x = $o(g, n.lookupFragment);
|
|
7781
|
+
if (!x && g.kind === Re.FRAGMENT_SPREAD)
|
|
7782
7782
|
throw nn(13, g.name.value);
|
|
7783
|
-
|
|
7783
|
+
x && u.fragmentMatches(x, i, t, n.variables) && f(x.selectionSet, kf(n, m, w));
|
|
7784
7784
|
}
|
|
7785
7785
|
}
|
|
7786
7786
|
}));
|
|
@@ -7802,11 +7802,11 @@ var $C = (
|
|
|
7802
7802
|
return cr(g) ? typeof m == "number" ? g[m] : void 0 : i.store.getFieldValue(g, String(m));
|
|
7803
7803
|
};
|
|
7804
7804
|
e.map.forEach(function(g, m) {
|
|
7805
|
-
var
|
|
7805
|
+
var w = y(f, m), A = y(h, m);
|
|
7806
7806
|
if (A !== void 0) {
|
|
7807
7807
|
a && a.push(m);
|
|
7808
|
-
var
|
|
7809
|
-
|
|
7808
|
+
var x = c.applyMerges(g, w, A, i, a);
|
|
7809
|
+
x !== A && (d = d || /* @__PURE__ */ new Map(), d.set(m, x)), a && Me(a.pop() === m);
|
|
7810
7810
|
}
|
|
7811
7811
|
}), d && (n = cr(h) ? h.slice(0) : j({}, h), d.forEach(function(g, m) {
|
|
7812
7812
|
n[m] = g;
|
|
@@ -7992,19 +7992,19 @@ var op = (
|
|
|
7992
7992
|
n !== this.optimisticData && (this.optimisticData = n, this.broadcastWatches());
|
|
7993
7993
|
}, e.prototype.batch = function(t) {
|
|
7994
7994
|
var n = this, i = t.update, a = t.optimistic, u = a === void 0 ? !0 : a, c = t.removeOptimistic, f = t.onWatchUpdated, h, d = function(g) {
|
|
7995
|
-
var m = n,
|
|
7995
|
+
var m = n, w = m.data, A = m.optimisticData;
|
|
7996
7996
|
++n.txCount, g && (n.data = n.optimisticData = g);
|
|
7997
7997
|
try {
|
|
7998
7998
|
return h = i(n);
|
|
7999
7999
|
} finally {
|
|
8000
|
-
--n.txCount, n.data =
|
|
8000
|
+
--n.txCount, n.data = w, n.optimisticData = A;
|
|
8001
8001
|
}
|
|
8002
8002
|
}, y = /* @__PURE__ */ new Set();
|
|
8003
8003
|
return f && !this.txCount && this.broadcastWatches(j(j({}, t), { onWatchUpdated: function(g) {
|
|
8004
8004
|
return y.add(g), !1;
|
|
8005
8005
|
} })), typeof u == "string" ? this.optimisticData = this.optimisticData.addLayer(u, d) : u === !1 ? d(this.data) : d(), typeof c == "string" && (this.optimisticData = this.optimisticData.removeLayer(c)), f && y.size ? (this.broadcastWatches(j(j({}, t), { onWatchUpdated: function(g, m) {
|
|
8006
|
-
var
|
|
8007
|
-
return
|
|
8006
|
+
var w = f.call(this, g, m);
|
|
8007
|
+
return w !== !1 && y.delete(g), w;
|
|
8008
8008
|
} })), y.size && y.forEach(function(g) {
|
|
8009
8009
|
return n.maybeBroadcastWatch.dirty(g);
|
|
8010
8010
|
})) : this.broadcastWatches(t), h;
|
|
@@ -8047,27 +8047,27 @@ var Jg = Object.assign, WC = Object.hasOwnProperty, Ec = (
|
|
|
8047
8047
|
function(r) {
|
|
8048
8048
|
Gn(e, r);
|
|
8049
8049
|
function e(t) {
|
|
8050
|
-
var n = t.queryManager, i = t.queryInfo, a = t.options, u = r.call(this, function(
|
|
8050
|
+
var n = t.queryManager, i = t.queryInfo, a = t.options, u = r.call(this, function(x) {
|
|
8051
8051
|
try {
|
|
8052
|
-
var
|
|
8053
|
-
|
|
8052
|
+
var b = x._subscription._observer;
|
|
8053
|
+
b && !b.error && (b.error = zC);
|
|
8054
8054
|
} catch {
|
|
8055
8055
|
}
|
|
8056
8056
|
var O = !u.observers.size;
|
|
8057
|
-
u.observers.add(
|
|
8057
|
+
u.observers.add(x);
|
|
8058
8058
|
var P = u.last;
|
|
8059
|
-
return P && P.error ?
|
|
8059
|
+
return P && P.error ? x.error && x.error(P.error) : P && P.result && x.next && x.next(P.result), O && u.reobserve().catch(function() {
|
|
8060
8060
|
}), function() {
|
|
8061
|
-
u.observers.delete(
|
|
8061
|
+
u.observers.delete(x) && !u.observers.size && u.tearDownQuery();
|
|
8062
8062
|
};
|
|
8063
8063
|
}) || this;
|
|
8064
8064
|
u.observers = /* @__PURE__ */ new Set(), u.subscriptions = /* @__PURE__ */ new Set(), u.queryInfo = i, u.queryManager = n, u.waitForOwnResult = If(a.fetchPolicy), u.isTornDown = !1, u.subscribeToMore = u.subscribeToMore.bind(u);
|
|
8065
|
-
var c = n.defaultOptions.watchQuery, f = c === void 0 ? {} : c, h = f.fetchPolicy, d = h === void 0 ? "cache-first" : h, y = a.fetchPolicy, g = y === void 0 ? d : y, m = a.initialFetchPolicy,
|
|
8065
|
+
var c = n.defaultOptions.watchQuery, f = c === void 0 ? {} : c, h = f.fetchPolicy, d = h === void 0 ? "cache-first" : h, y = a.fetchPolicy, g = y === void 0 ? d : y, m = a.initialFetchPolicy, w = m === void 0 ? g === "standby" ? d : g : m;
|
|
8066
8066
|
u.options = j(j({}, a), {
|
|
8067
8067
|
// Remember the initial options.fetchPolicy so we can revert back to this
|
|
8068
8068
|
// policy when variables change. This information can also be specified
|
|
8069
8069
|
// (or overridden) by providing options.initialFetchPolicy explicitly.
|
|
8070
|
-
initialFetchPolicy:
|
|
8070
|
+
initialFetchPolicy: w,
|
|
8071
8071
|
// This ensures this.options.fetchPolicy always has a string value, in
|
|
8072
8072
|
// case options.fetchPolicy was not provided.
|
|
8073
8073
|
fetchPolicy: g
|
|
@@ -8179,26 +8179,26 @@ var Jg = Object.assign, WC = Object.hasOwnProperty, Ec = (
|
|
|
8179
8179
|
return d || Me(h, 21), this.queryManager.fetchQuery(a, i, Tt.fetchMore).then(function(y) {
|
|
8180
8180
|
if (n.queryManager.removeQuery(a), u.networkStatus === Tt.fetchMore && (u.networkStatus = c), d)
|
|
8181
8181
|
n.queryManager.cache.batch({
|
|
8182
|
-
update: function(
|
|
8182
|
+
update: function(w) {
|
|
8183
8183
|
var A = t.updateQuery;
|
|
8184
|
-
A ?
|
|
8184
|
+
A ? w.updateQuery({
|
|
8185
8185
|
query: n.query,
|
|
8186
8186
|
variables: n.variables,
|
|
8187
8187
|
returnPartialData: !0,
|
|
8188
8188
|
optimistic: !1
|
|
8189
|
-
}, function(
|
|
8190
|
-
return A(
|
|
8189
|
+
}, function(x) {
|
|
8190
|
+
return A(x, {
|
|
8191
8191
|
fetchMoreResult: y.data,
|
|
8192
8192
|
variables: i.variables
|
|
8193
8193
|
});
|
|
8194
|
-
}) :
|
|
8194
|
+
}) : w.writeQuery({
|
|
8195
8195
|
query: i.query,
|
|
8196
8196
|
variables: i.variables,
|
|
8197
8197
|
data: y.data
|
|
8198
8198
|
});
|
|
8199
8199
|
},
|
|
8200
|
-
onWatchUpdated: function(
|
|
8201
|
-
f.add(
|
|
8200
|
+
onWatchUpdated: function(w) {
|
|
8201
|
+
f.add(w.query);
|
|
8202
8202
|
}
|
|
8203
8203
|
});
|
|
8204
8204
|
else {
|
|
@@ -8337,16 +8337,16 @@ var Jg = Object.assign, WC = Object.hasOwnProperty, Ec = (
|
|
|
8337
8337
|
// so in that case `applyNextFetchPolicy` must be called.
|
|
8338
8338
|
typeof h.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", h), n === void 0 && (n = Tt.setVariables))), this.waitForOwnResult && (this.waitForOwnResult = If(h.fetchPolicy));
|
|
8339
8339
|
var y = function() {
|
|
8340
|
-
i.concast ===
|
|
8341
|
-
}, g = h.variables && j({}, h.variables), m = this.fetch(h, n, d),
|
|
8342
|
-
next: function(
|
|
8343
|
-
qt(i.variables, g) && (y(), i.reportResult(
|
|
8340
|
+
i.concast === w && (i.waitForOwnResult = !1);
|
|
8341
|
+
}, g = h.variables && j({}, h.variables), m = this.fetch(h, n, d), w = m.concast, A = m.fromLink, x = {
|
|
8342
|
+
next: function(b) {
|
|
8343
|
+
qt(i.variables, g) && (y(), i.reportResult(b, g));
|
|
8344
8344
|
},
|
|
8345
|
-
error: function(
|
|
8346
|
-
qt(i.variables, g) && (Yd(
|
|
8345
|
+
error: function(b) {
|
|
8346
|
+
qt(i.variables, g) && (Yd(b) || (b = new On({ networkError: b })), y(), i.reportError(b, g));
|
|
8347
8347
|
}
|
|
8348
8348
|
};
|
|
8349
|
-
return !a && (A || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast =
|
|
8349
|
+
return !a && (A || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast = w, this.observer = x), w.addObserver(x), w;
|
|
8350
8350
|
}, e.prototype.reobserve = function(t, n) {
|
|
8351
8351
|
return this.reobserveAsConcast(t, n).promise;
|
|
8352
8352
|
}, e.prototype.resubscribeAfterError = function() {
|
|
@@ -8586,7 +8586,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8586
8586
|
}), this.fetchCancelFns.clear();
|
|
8587
8587
|
}, r.prototype.mutate = function(e) {
|
|
8588
8588
|
return Qi(this, arguments, void 0, function(t) {
|
|
8589
|
-
var n, i, a, u, c, f, h, d = t.mutation, y = t.variables, g = t.optimisticResponse, m = t.updateQueries,
|
|
8589
|
+
var n, i, a, u, c, f, h, d = t.mutation, y = t.variables, g = t.optimisticResponse, m = t.updateQueries, w = t.refetchQueries, A = w === void 0 ? [] : w, x = t.awaitRefetchQueries, b = x === void 0 ? !1 : x, O = t.update, P = t.onQueryUpdated, D = t.fetchPolicy, L = D === void 0 ? ((f = this.defaultOptions.mutate) === null || f === void 0 ? void 0 : f.fetchPolicy) || "network-only" : D, V = t.errorPolicy, te = V === void 0 ? ((h = this.defaultOptions.mutate) === null || h === void 0 ? void 0 : h.errorPolicy) || "none" : V, Y = t.keepRootFields, ue = t.context;
|
|
8590
8590
|
return Ji(this, function(fe) {
|
|
8591
8591
|
switch (fe.label) {
|
|
8592
8592
|
case 0:
|
|
@@ -8627,7 +8627,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8627
8627
|
context: ue,
|
|
8628
8628
|
update: O,
|
|
8629
8629
|
updateQueries: m,
|
|
8630
|
-
awaitRefetchQueries:
|
|
8630
|
+
awaitRefetchQueries: b,
|
|
8631
8631
|
refetchQueries: A,
|
|
8632
8632
|
removeOptimistic: u ? n : void 0,
|
|
8633
8633
|
onQueryUpdated: P,
|
|
@@ -8677,10 +8677,10 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8677
8677
|
}
|
|
8678
8678
|
var h = e.updateQueries;
|
|
8679
8679
|
h && this.queries.forEach(function(y, g) {
|
|
8680
|
-
var m = y.observableQuery,
|
|
8681
|
-
if (!(!
|
|
8682
|
-
var A = h[
|
|
8683
|
-
query:
|
|
8680
|
+
var m = y.observableQuery, w = m && m.queryName;
|
|
8681
|
+
if (!(!w || !HC.call(h, w))) {
|
|
8682
|
+
var A = h[w], x = n.queries.get(g), b = x.document, O = x.variables, P = t.diff({
|
|
8683
|
+
query: b,
|
|
8684
8684
|
variables: O,
|
|
8685
8685
|
returnPartialData: !0,
|
|
8686
8686
|
optimistic: !1
|
|
@@ -8688,13 +8688,13 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8688
8688
|
if (L && D) {
|
|
8689
8689
|
var V = A(D, {
|
|
8690
8690
|
mutationResult: i,
|
|
8691
|
-
queryName:
|
|
8691
|
+
queryName: b && vc(b) || void 0,
|
|
8692
8692
|
queryVariables: O
|
|
8693
8693
|
});
|
|
8694
8694
|
V && a.push({
|
|
8695
8695
|
result: V,
|
|
8696
8696
|
dataId: "ROOT_QUERY",
|
|
8697
|
-
query:
|
|
8697
|
+
query: b,
|
|
8698
8698
|
variables: O
|
|
8699
8699
|
});
|
|
8700
8700
|
}
|
|
@@ -8711,7 +8711,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8711
8711
|
var g = e.update, m = !Ub(i) || Cs(i) && !i.hasNext;
|
|
8712
8712
|
if (g) {
|
|
8713
8713
|
if (!u) {
|
|
8714
|
-
var
|
|
8714
|
+
var w = y.diff({
|
|
8715
8715
|
id: "ROOT_MUTATION",
|
|
8716
8716
|
// The cache complains if passed a mutation where it expects a
|
|
8717
8717
|
// query, so we transform mutations and subscriptions to queries
|
|
@@ -8721,7 +8721,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8721
8721
|
optimistic: !1,
|
|
8722
8722
|
returnPartialData: !0
|
|
8723
8723
|
});
|
|
8724
|
-
|
|
8724
|
+
w.complete && (i = j(j({}, i), { data: w.result }), "incremental" in i && delete i.incremental, "hasNext" in i && delete i.hasNext);
|
|
8725
8725
|
}
|
|
8726
8726
|
m && g(y, i, {
|
|
8727
8727
|
context: e.context,
|
|
@@ -8730,9 +8730,9 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8730
8730
|
}
|
|
8731
8731
|
!u && !e.keepRootFields && m && y.modify({
|
|
8732
8732
|
id: "ROOT_MUTATION",
|
|
8733
|
-
fields: function(A,
|
|
8734
|
-
var
|
|
8735
|
-
return
|
|
8733
|
+
fields: function(A, x) {
|
|
8734
|
+
var b = x.fieldName, O = x.DELETE;
|
|
8735
|
+
return b === "__typename" ? A : O;
|
|
8736
8736
|
}
|
|
8737
8737
|
});
|
|
8738
8738
|
},
|
|
@@ -8890,18 +8890,18 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8890
8890
|
}, r.prototype.startGraphQLSubscription = function(e) {
|
|
8891
8891
|
var t = this, n = e.query, i = e.fetchPolicy, a = e.errorPolicy, u = a === void 0 ? "none" : a, c = e.variables, f = e.context, h = f === void 0 ? {} : f, d = e.extensions, y = d === void 0 ? {} : d;
|
|
8892
8892
|
n = this.transform(n), c = this.getVariables(n, c);
|
|
8893
|
-
var g = function(
|
|
8894
|
-
return t.getObservableFromLink(n, h,
|
|
8893
|
+
var g = function(w) {
|
|
8894
|
+
return t.getObservableFromLink(n, h, w, y).map(function(A) {
|
|
8895
8895
|
i !== "no-cache" && (Gh(A, u) && t.cache.write({
|
|
8896
8896
|
query: n,
|
|
8897
8897
|
result: A.data,
|
|
8898
8898
|
dataId: "ROOT_SUBSCRIPTION",
|
|
8899
|
-
variables:
|
|
8899
|
+
variables: w
|
|
8900
8900
|
}), t.broadcastQueries());
|
|
8901
|
-
var
|
|
8902
|
-
if (
|
|
8901
|
+
var x = vo(A), b = hC(A);
|
|
8902
|
+
if (x || b) {
|
|
8903
8903
|
var O = {};
|
|
8904
|
-
if (
|
|
8904
|
+
if (x && (O.graphQLErrors = A.errors), b && (O.protocolErrors = A.extensions[Jd]), u === "none" || b)
|
|
8905
8905
|
throw new On(O);
|
|
8906
8906
|
}
|
|
8907
8907
|
return u === "ignore" && delete A.errors, A;
|
|
@@ -8909,11 +8909,11 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8909
8909
|
};
|
|
8910
8910
|
if (this.getDocumentInfo(n).hasClientExports) {
|
|
8911
8911
|
var m = this.localState.addExportedVariables(n, c, h).then(g);
|
|
8912
|
-
return new Pt(function(
|
|
8912
|
+
return new Pt(function(w) {
|
|
8913
8913
|
var A = null;
|
|
8914
|
-
return m.then(function(
|
|
8915
|
-
return A =
|
|
8916
|
-
},
|
|
8914
|
+
return m.then(function(x) {
|
|
8915
|
+
return A = x.subscribe(w);
|
|
8916
|
+
}, w.error), function() {
|
|
8917
8917
|
return A && A.unsubscribe();
|
|
8918
8918
|
};
|
|
8919
8919
|
});
|
|
@@ -8936,7 +8936,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8936
8936
|
a === void 0 && (a = (c = t == null ? void 0 : t.queryDeduplication) !== null && c !== void 0 ? c : this.queryDeduplication);
|
|
8937
8937
|
var f, h = this.getDocumentInfo(e), d = h.serverQuery, y = h.clientQuery;
|
|
8938
8938
|
if (d) {
|
|
8939
|
-
var g = this, m = g.inFlightLinkObservables,
|
|
8939
|
+
var g = this, m = g.inFlightLinkObservables, w = g.link, A = {
|
|
8940
8940
|
query: d,
|
|
8941
8941
|
variables: n,
|
|
8942
8942
|
operationName: vc(d) || void 0,
|
|
@@ -8944,18 +8944,18 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8944
8944
|
extensions: i
|
|
8945
8945
|
};
|
|
8946
8946
|
if (t = A.context, a) {
|
|
8947
|
-
var
|
|
8947
|
+
var x = Na(d), b = Ti(n), O = m.lookup(x, b);
|
|
8948
8948
|
if (f = O.observable, !f) {
|
|
8949
8949
|
var P = new ks([
|
|
8950
|
-
_c(
|
|
8950
|
+
_c(w, A)
|
|
8951
8951
|
]);
|
|
8952
8952
|
f = O.observable = P, P.beforeNext(function() {
|
|
8953
|
-
m.remove(
|
|
8953
|
+
m.remove(x, b);
|
|
8954
8954
|
});
|
|
8955
8955
|
}
|
|
8956
8956
|
} else
|
|
8957
8957
|
f = new ks([
|
|
8958
|
-
_c(
|
|
8958
|
+
_c(w, A)
|
|
8959
8959
|
]);
|
|
8960
8960
|
} else
|
|
8961
8961
|
f = new ks([Pt.of({ data: {} })]), t = this.prepareContext(t);
|
|
@@ -8991,13 +8991,13 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
8991
8991
|
}, r.prototype.fetchConcastWithInfo = function(e, t, n, i) {
|
|
8992
8992
|
var a = this;
|
|
8993
8993
|
n === void 0 && (n = Tt.loading), i === void 0 && (i = t.query);
|
|
8994
|
-
var u = this.getVariables(i, t.variables), c = this.getQuery(e), f = this.defaultOptions.watchQuery, h = t.fetchPolicy, d = h === void 0 ? f && f.fetchPolicy || "cache-first" : h, y = t.errorPolicy, g = y === void 0 ? f && f.errorPolicy || "none" : y, m = t.returnPartialData,
|
|
8994
|
+
var u = this.getVariables(i, t.variables), c = this.getQuery(e), f = this.defaultOptions.watchQuery, h = t.fetchPolicy, d = h === void 0 ? f && f.fetchPolicy || "cache-first" : h, y = t.errorPolicy, g = y === void 0 ? f && f.errorPolicy || "none" : y, m = t.returnPartialData, w = m === void 0 ? !1 : m, A = t.notifyOnNetworkStatusChange, x = A === void 0 ? !1 : A, b = t.context, O = b === void 0 ? {} : b, P = Object.assign({}, t, {
|
|
8995
8995
|
query: i,
|
|
8996
8996
|
variables: u,
|
|
8997
8997
|
fetchPolicy: d,
|
|
8998
8998
|
errorPolicy: g,
|
|
8999
|
-
returnPartialData:
|
|
9000
|
-
notifyOnNetworkStatusChange:
|
|
8999
|
+
returnPartialData: w,
|
|
9000
|
+
notifyOnNetworkStatusChange: x,
|
|
9001
9001
|
context: O
|
|
9002
9002
|
}), D = function(ue) {
|
|
9003
9003
|
P.variables = ue;
|
|
@@ -9079,27 +9079,27 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9079
9079
|
// true, the removeOptimistic string will determine the ID of the
|
|
9080
9080
|
// temporary optimistic layer, in case that ever matters.
|
|
9081
9081
|
removeOptimistic: f,
|
|
9082
|
-
onWatchUpdated: function(g, m,
|
|
9082
|
+
onWatchUpdated: function(g, m, w) {
|
|
9083
9083
|
var A = g.watcher instanceof Cf && g.watcher.observableQuery;
|
|
9084
9084
|
if (A) {
|
|
9085
9085
|
if (h) {
|
|
9086
9086
|
d.delete(A.queryId);
|
|
9087
|
-
var
|
|
9088
|
-
return
|
|
9087
|
+
var x = h(A, m, w);
|
|
9088
|
+
return x === !0 && (x = A.refetch()), x !== !1 && y.set(A, x), x;
|
|
9089
9089
|
}
|
|
9090
|
-
h !== null && d.set(A.queryId, { oq: A, lastDiff:
|
|
9090
|
+
h !== null && d.set(A.queryId, { oq: A, lastDiff: w, diff: m });
|
|
9091
9091
|
}
|
|
9092
9092
|
}
|
|
9093
9093
|
}), d.size && d.forEach(function(g, m) {
|
|
9094
|
-
var
|
|
9094
|
+
var w = g.oq, A = g.lastDiff, x = g.diff, b;
|
|
9095
9095
|
if (h) {
|
|
9096
|
-
if (!
|
|
9097
|
-
var O =
|
|
9098
|
-
O.reset(),
|
|
9096
|
+
if (!x) {
|
|
9097
|
+
var O = w.queryInfo;
|
|
9098
|
+
O.reset(), x = O.getDiff();
|
|
9099
9099
|
}
|
|
9100
|
-
|
|
9100
|
+
b = h(w, x, A);
|
|
9101
9101
|
}
|
|
9102
|
-
(!h ||
|
|
9102
|
+
(!h || b === !0) && (b = w.refetch()), b !== !1 && y.set(w, b), m.indexOf("legacyOneTimeQuery") >= 0 && t.stopQueryNoBroadcast(m);
|
|
9103
9103
|
}), f && this.cache.removeOptimistic(f), y;
|
|
9104
9104
|
}, r.prototype.fetchQueryByPolicy = function(e, t, n) {
|
|
9105
9105
|
var i = this, a = t.query, u = t.variables, c = t.fetchPolicy, f = t.refetchWritePolicy, h = t.errorPolicy, d = t.returnPartialData, y = t.context, g = t.notifyOnNetworkStatusChange, m = e.networkStatus;
|
|
@@ -9108,7 +9108,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9108
9108
|
variables: u,
|
|
9109
9109
|
networkStatus: n
|
|
9110
9110
|
});
|
|
9111
|
-
var
|
|
9111
|
+
var w = function() {
|
|
9112
9112
|
return e.getDiff();
|
|
9113
9113
|
}, A = function(D, L) {
|
|
9114
9114
|
L === void 0 && (L = e.networkStatus || Tt.loading);
|
|
@@ -9126,8 +9126,8 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9126
9126
|
}).then(function(Y) {
|
|
9127
9127
|
return te(Y.data || void 0);
|
|
9128
9128
|
}) : h === "none" && L === Tt.refetch && Array.isArray(D.missing) ? te(void 0) : te(V);
|
|
9129
|
-
},
|
|
9130
|
-
return i.getResultsFromLink(e,
|
|
9129
|
+
}, x = c === "no-cache" ? 0 : n === Tt.refetch && f !== "merge" ? 1 : 2, b = function() {
|
|
9130
|
+
return i.getResultsFromLink(e, x, {
|
|
9131
9131
|
query: a,
|
|
9132
9132
|
variables: u,
|
|
9133
9133
|
context: y,
|
|
@@ -9138,40 +9138,40 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9138
9138
|
switch (c) {
|
|
9139
9139
|
default:
|
|
9140
9140
|
case "cache-first": {
|
|
9141
|
-
var P =
|
|
9141
|
+
var P = w();
|
|
9142
9142
|
return P.complete ? {
|
|
9143
9143
|
fromLink: !1,
|
|
9144
9144
|
sources: [A(P, e.markReady())]
|
|
9145
9145
|
} : d || O ? {
|
|
9146
9146
|
fromLink: !0,
|
|
9147
|
-
sources: [A(P),
|
|
9148
|
-
} : { fromLink: !0, sources: [
|
|
9147
|
+
sources: [A(P), b()]
|
|
9148
|
+
} : { fromLink: !0, sources: [b()] };
|
|
9149
9149
|
}
|
|
9150
9150
|
case "cache-and-network": {
|
|
9151
|
-
var P =
|
|
9151
|
+
var P = w();
|
|
9152
9152
|
return P.complete || d || O ? {
|
|
9153
9153
|
fromLink: !0,
|
|
9154
|
-
sources: [A(P),
|
|
9155
|
-
} : { fromLink: !0, sources: [
|
|
9154
|
+
sources: [A(P), b()]
|
|
9155
|
+
} : { fromLink: !0, sources: [b()] };
|
|
9156
9156
|
}
|
|
9157
9157
|
case "cache-only":
|
|
9158
9158
|
return {
|
|
9159
9159
|
fromLink: !1,
|
|
9160
|
-
sources: [A(
|
|
9160
|
+
sources: [A(w(), e.markReady())]
|
|
9161
9161
|
};
|
|
9162
9162
|
case "network-only":
|
|
9163
9163
|
return O ? {
|
|
9164
9164
|
fromLink: !0,
|
|
9165
|
-
sources: [A(
|
|
9166
|
-
} : { fromLink: !0, sources: [
|
|
9165
|
+
sources: [A(w()), b()]
|
|
9166
|
+
} : { fromLink: !0, sources: [b()] };
|
|
9167
9167
|
case "no-cache":
|
|
9168
9168
|
return O ? {
|
|
9169
9169
|
fromLink: !0,
|
|
9170
9170
|
// Note that queryInfo.getDiff() for no-cache queries does not call
|
|
9171
9171
|
// cache.diff, but instead returns a { complete: false } stub result
|
|
9172
9172
|
// when there is no queryInfo.diff already defined.
|
|
9173
|
-
sources: [A(e.getDiff()),
|
|
9174
|
-
} : { fromLink: !0, sources: [
|
|
9173
|
+
sources: [A(e.getDiff()), b()]
|
|
9174
|
+
} : { fromLink: !0, sources: [b()] };
|
|
9175
9175
|
case "standby":
|
|
9176
9176
|
return { fromLink: !1, sources: [] };
|
|
9177
9177
|
}
|
|
@@ -9254,16 +9254,16 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9254
9254
|
}).result;
|
|
9255
9255
|
}, r.prototype.resolveDocument = function(e, t) {
|
|
9256
9256
|
return Qi(this, arguments, void 0, function(n, i, a, u, c, f) {
|
|
9257
|
-
var h, d, y, g, m,
|
|
9257
|
+
var h, d, y, g, m, w, A, x, b, O, P;
|
|
9258
9258
|
return a === void 0 && (a = {}), u === void 0 && (u = {}), c === void 0 && (c = function() {
|
|
9259
9259
|
return !0;
|
|
9260
9260
|
}), f === void 0 && (f = !1), Ji(this, function(D) {
|
|
9261
|
-
return h = os(n), d = Vo(n), y = Uo(d), g = this.collectSelectionsToResolve(h, y), m = h.operation,
|
|
9261
|
+
return h = os(n), d = Vo(n), y = Uo(d), g = this.collectSelectionsToResolve(h, y), m = h.operation, w = m ? m.charAt(0).toUpperCase() + m.slice(1) : "Query", A = this, x = A.cache, b = A.client, O = {
|
|
9262
9262
|
fragmentMap: y,
|
|
9263
|
-
context: j(j({}, a), { cache:
|
|
9263
|
+
context: j(j({}, a), { cache: x, client: b }),
|
|
9264
9264
|
variables: u,
|
|
9265
9265
|
fragmentMatcher: c,
|
|
9266
|
-
defaultOperationType:
|
|
9266
|
+
defaultOperationType: w,
|
|
9267
9267
|
exportedVariables: {},
|
|
9268
9268
|
selectionsToResolve: g,
|
|
9269
9269
|
onlyRunForcedResolvers: f
|
|
@@ -9281,16 +9281,16 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9281
9281
|
return Ji(this, function(y) {
|
|
9282
9282
|
return a = i.fragmentMap, u = i.context, c = i.variables, f = [n], h = function(g) {
|
|
9283
9283
|
return Qi(d, void 0, void 0, function() {
|
|
9284
|
-
var m,
|
|
9284
|
+
var m, w;
|
|
9285
9285
|
return Ji(this, function(A) {
|
|
9286
9286
|
return !t && !i.selectionsToResolve.has(g) ? [
|
|
9287
9287
|
2
|
|
9288
9288
|
/*return*/
|
|
9289
|
-
] : Ca(g, c) ? Pi(g) ? [2, this.resolveField(g, t, n, i).then(function(
|
|
9290
|
-
var
|
|
9291
|
-
typeof
|
|
9292
|
-
})] : (bb(g) ? m = g : (m = a[g.name.value], Me(m, 18, g.name.value)), m && m.typeCondition && (
|
|
9293
|
-
f.push(
|
|
9289
|
+
] : Ca(g, c) ? Pi(g) ? [2, this.resolveField(g, t, n, i).then(function(x) {
|
|
9290
|
+
var b;
|
|
9291
|
+
typeof x < "u" && f.push((b = {}, b[Ii(g)] = x, b));
|
|
9292
|
+
})] : (bb(g) ? m = g : (m = a[g.name.value], Me(m, 18, g.name.value)), m && m.typeCondition && (w = m.typeCondition.name.value, i.fragmentMatcher(n, w, u)) ? [2, this.resolveSelectionSet(m.selectionSet, t, n, i).then(function(x) {
|
|
9293
|
+
f.push(x);
|
|
9294
9294
|
})] : [
|
|
9295
9295
|
2
|
|
9296
9296
|
/*return*/
|
|
@@ -9307,7 +9307,7 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9307
9307
|
});
|
|
9308
9308
|
}, r.prototype.resolveField = function(e, t, n, i) {
|
|
9309
9309
|
return Qi(this, void 0, void 0, function() {
|
|
9310
|
-
var a, u, c, f, h, d, y, g, m,
|
|
9310
|
+
var a, u, c, f, h, d, y, g, m, w = this;
|
|
9311
9311
|
return Ji(this, function(A) {
|
|
9312
9312
|
return n ? (a = i.variables, u = e.name.value, c = Ii(e), f = u !== c, h = n[c] || n[u], d = Promise.resolve(h), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (y = n.__typename || i.defaultOperationType, g = this.resolvers && this.resolvers[y], g && (m = g[f ? u : c], m && (d = Promise.resolve(
|
|
9313
9313
|
// In case the resolve function accesses reactive variables,
|
|
@@ -9318,21 +9318,21 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9318
9318
|
i.context,
|
|
9319
9319
|
{ field: e, fragmentMap: i.fragmentMap }
|
|
9320
9320
|
])
|
|
9321
|
-
)))), [2, d.then(function(
|
|
9322
|
-
var
|
|
9323
|
-
if (
|
|
9321
|
+
)))), [2, d.then(function(x) {
|
|
9322
|
+
var b, O;
|
|
9323
|
+
if (x === void 0 && (x = h), e.directives && e.directives.forEach(function(D) {
|
|
9324
9324
|
D.name.value === "export" && D.arguments && D.arguments.forEach(function(L) {
|
|
9325
|
-
L.name.value === "as" && L.value.kind === "StringValue" && (i.exportedVariables[L.value.value] =
|
|
9325
|
+
L.name.value === "as" && L.value.kind === "StringValue" && (i.exportedVariables[L.value.value] = x);
|
|
9326
9326
|
});
|
|
9327
|
-
}), !e.selectionSet ||
|
|
9328
|
-
return
|
|
9329
|
-
var P = (O = (
|
|
9327
|
+
}), !e.selectionSet || x == null)
|
|
9328
|
+
return x;
|
|
9329
|
+
var P = (O = (b = e.directives) === null || b === void 0 ? void 0 : b.some(function(D) {
|
|
9330
9330
|
return D.name.value === "client";
|
|
9331
9331
|
})) !== null && O !== void 0 ? O : !1;
|
|
9332
|
-
if (Array.isArray(
|
|
9333
|
-
return
|
|
9332
|
+
if (Array.isArray(x))
|
|
9333
|
+
return w.resolveSubSelectedArray(e, t || P, x, i);
|
|
9334
9334
|
if (e.selectionSet)
|
|
9335
|
-
return
|
|
9335
|
+
return w.resolveSelectionSet(e.selectionSet, t || P, x, i);
|
|
9336
9336
|
})]) : [2, null];
|
|
9337
9337
|
});
|
|
9338
9338
|
});
|
|
@@ -9362,10 +9362,10 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9362
9362
|
FragmentSpread: function(f, h, d, y, g) {
|
|
9363
9363
|
var m = t[f.name.value];
|
|
9364
9364
|
Me(m, 19, f.name.value);
|
|
9365
|
-
var
|
|
9366
|
-
|
|
9365
|
+
var w = a(m);
|
|
9366
|
+
w.size > 0 && (g.forEach(function(A) {
|
|
9367
9367
|
n(A) && fg(A) && c.add(A);
|
|
9368
|
-
}), c.add(f),
|
|
9368
|
+
}), c.add(f), w.forEach(function(A) {
|
|
9369
9369
|
c.add(A);
|
|
9370
9370
|
}));
|
|
9371
9371
|
}
|
|
@@ -9383,8 +9383,8 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9383
9383
|
var t = this;
|
|
9384
9384
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache)
|
|
9385
9385
|
throw nn(15);
|
|
9386
|
-
var n = e.uri, i = e.credentials, a = e.headers, u = e.cache, c = e.documentTransform, f = e.ssrMode, h = f === void 0 ? !1 : f, d = e.ssrForceFetchDelay, y = d === void 0 ? 0 : d, g = e.connectToDevTools, m = e.queryDeduplication,
|
|
9387
|
-
ue || (ue = n ? new Jb({ uri: n, credentials: i, headers: a }) : sn.empty()), this.link = ue, this.cache = u, this.disableNetworkFetches = h || y > 0, this.queryDeduplication =
|
|
9386
|
+
var n = e.uri, i = e.credentials, a = e.headers, u = e.cache, c = e.documentTransform, f = e.ssrMode, h = f === void 0 ? !1 : f, d = e.ssrForceFetchDelay, y = d === void 0 ? 0 : d, g = e.connectToDevTools, m = e.queryDeduplication, w = m === void 0 ? !0 : m, A = e.defaultOptions, x = e.defaultContext, b = e.assumeImmutableResults, O = b === void 0 ? u.assumeImmutableResults : b, P = e.resolvers, D = e.typeDefs, L = e.fragmentMatcher, V = e.name, te = e.version, Y = e.devtools, ue = e.link;
|
|
9387
|
+
ue || (ue = n ? new Jb({ uri: n, credentials: i, headers: a }) : sn.empty()), this.link = ue, this.cache = u, this.disableNetworkFetches = h || y > 0, this.queryDeduplication = w, this.defaultOptions = A || /* @__PURE__ */ Object.create(null), this.typeDefs = D, this.devtoolsConfig = j(j({}, Y), { enabled: (Y == null ? void 0 : Y.enabled) || g }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), y && setTimeout(function() {
|
|
9388
9388
|
return t.disableNetworkFetches = !1;
|
|
9389
9389
|
}, 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 = xd, this.localState = new QC({
|
|
9390
9390
|
cache: u,
|
|
@@ -9395,9 +9395,9 @@ var HC = Object.prototype.hasOwnProperty, Kg = /* @__PURE__ */ Object.create(nul
|
|
|
9395
9395
|
cache: this.cache,
|
|
9396
9396
|
link: this.link,
|
|
9397
9397
|
defaultOptions: this.defaultOptions,
|
|
9398
|
-
defaultContext:
|
|
9398
|
+
defaultContext: x,
|
|
9399
9399
|
documentTransform: c,
|
|
9400
|
-
queryDeduplication:
|
|
9400
|
+
queryDeduplication: w,
|
|
9401
9401
|
ssrMode: h,
|
|
9402
9402
|
clientAwareness: {
|
|
9403
9403
|
name: V,
|
|
@@ -9785,8 +9785,8 @@ function ww(r) {
|
|
|
9785
9785
|
Me(g.length === 1, 65, r, g.length);
|
|
9786
9786
|
var m = g[0];
|
|
9787
9787
|
t = m.variableDefinitions || [], m.name && m.name.kind === "Name" ? i = m.name.value : i = "data";
|
|
9788
|
-
var
|
|
9789
|
-
return Is.set(r,
|
|
9788
|
+
var w = { name: i, type: n, variables: t };
|
|
9789
|
+
return Is.set(r, w), w;
|
|
9790
9790
|
}
|
|
9791
9791
|
ww.resetCache = function() {
|
|
9792
9792
|
Is = void 0;
|
|
@@ -9837,14 +9837,14 @@ function aR(r, e, t, n, i) {
|
|
|
9837
9837
|
function h(y) {
|
|
9838
9838
|
var g, m;
|
|
9839
9839
|
Object.assign(c.observable, (g = {}, g[oc] = y, g));
|
|
9840
|
-
var
|
|
9840
|
+
var w = c.resultData;
|
|
9841
9841
|
f(j(j({}, c), {
|
|
9842
9842
|
// might be a different query
|
|
9843
9843
|
query: y.query,
|
|
9844
|
-
resultData: Object.assign(
|
|
9844
|
+
resultData: Object.assign(w, {
|
|
9845
9845
|
// We need to modify the previous `resultData` object as we rely on the
|
|
9846
9846
|
// object reference in other places
|
|
9847
|
-
previousData: ((m =
|
|
9847
|
+
previousData: ((m = w.current) === null || m === void 0 ? void 0 : m.data) || w.previousData,
|
|
9848
9848
|
current: void 0
|
|
9849
9849
|
})
|
|
9850
9850
|
}));
|
|
@@ -9856,7 +9856,7 @@ function aR(r, e, t, n, i) {
|
|
|
9856
9856
|
return [c, h];
|
|
9857
9857
|
}
|
|
9858
9858
|
function oR(r, e) {
|
|
9859
|
-
var t = vw(e.client), n = ct.useContext(cp()).renderPromises, i = !!n, a = t.disableNetworkFetches, u = e.ssr !== !1 && !e.skip, c = e.partialRefetch, f = xw(t, r, e, i), h = aR(t, r, e, n, f), d = h[0], y = d.observable, g = d.resultData, m = h[1],
|
|
9859
|
+
var t = vw(e.client), n = ct.useContext(cp()).renderPromises, i = !!n, a = t.disableNetworkFetches, u = e.ssr !== !1 && !e.skip, c = e.partialRefetch, f = xw(t, r, e, i), h = aR(t, r, e, n, f), d = h[0], y = d.observable, g = d.resultData, m = h[1], w = f(y);
|
|
9860
9860
|
lR(
|
|
9861
9861
|
g,
|
|
9862
9862
|
// might get mutated during render
|
|
@@ -9864,18 +9864,18 @@ function oR(r, e) {
|
|
|
9864
9864
|
// might get mutated during render
|
|
9865
9865
|
t,
|
|
9866
9866
|
e,
|
|
9867
|
-
|
|
9867
|
+
w
|
|
9868
9868
|
);
|
|
9869
9869
|
var A = ct.useMemo(function() {
|
|
9870
9870
|
return dR(y);
|
|
9871
9871
|
}, [y]);
|
|
9872
9872
|
cR(y, n, u);
|
|
9873
|
-
var
|
|
9873
|
+
var x = uR(g, y, t, e, w, a, c, i, {
|
|
9874
9874
|
onCompleted: e.onCompleted || rv,
|
|
9875
9875
|
onError: e.onError || rv
|
|
9876
9876
|
});
|
|
9877
9877
|
return {
|
|
9878
|
-
result:
|
|
9878
|
+
result: x,
|
|
9879
9879
|
obsQueryFields: A,
|
|
9880
9880
|
observable: y,
|
|
9881
9881
|
resultData: g,
|
|
@@ -9911,23 +9911,23 @@ function uR(r, e, t, n, i, a, u, c, f) {
|
|
|
9911
9911
|
if (c)
|
|
9912
9912
|
return function() {
|
|
9913
9913
|
};
|
|
9914
|
-
var
|
|
9915
|
-
var
|
|
9916
|
-
|
|
9917
|
-
}, A = function(
|
|
9918
|
-
if (
|
|
9919
|
-
throw
|
|
9914
|
+
var w = function() {
|
|
9915
|
+
var b = r.current, O = e.getCurrentResult();
|
|
9916
|
+
b && b.loading === O.loading && b.networkStatus === O.networkStatus && qt(b.data, O.data) || Yh(O, r, e, t, u, m, h.current);
|
|
9917
|
+
}, A = function(b) {
|
|
9918
|
+
if (x.current.unsubscribe(), x.current = e.resubscribeAfterError(w, A), !sR.call(b, "graphQLErrors"))
|
|
9919
|
+
throw b;
|
|
9920
9920
|
var O = r.current;
|
|
9921
|
-
(!O || O && O.loading || !qt(
|
|
9921
|
+
(!O || O && O.loading || !qt(b, O.error)) && Yh({
|
|
9922
9922
|
data: O && O.data,
|
|
9923
|
-
error:
|
|
9923
|
+
error: b,
|
|
9924
9924
|
loading: !1,
|
|
9925
9925
|
networkStatus: Tt.error
|
|
9926
9926
|
}, r, e, t, u, m, h.current);
|
|
9927
|
-
},
|
|
9927
|
+
}, x = { current: e.subscribe(w, A) };
|
|
9928
9928
|
return function() {
|
|
9929
9929
|
setTimeout(function() {
|
|
9930
|
-
return
|
|
9930
|
+
return x.current.unsubscribe();
|
|
9931
9931
|
});
|
|
9932
9932
|
};
|
|
9933
9933
|
}, [
|
|
@@ -10032,26 +10032,26 @@ var pR = [
|
|
|
10032
10032
|
function mR(r, e) {
|
|
10033
10033
|
var t, n = ct.useRef(), i = ct.useRef(), a = ct.useRef(), u = ts(e, n.current || {}), c = (t = u == null ? void 0 : u.query) !== null && t !== void 0 ? t : r;
|
|
10034
10034
|
i.current = e, a.current = c;
|
|
10035
|
-
var f = j(j({}, u), { skip: !n.current }), h = oR(c, f), d = h.obsQueryFields, y = h.result, g = h.client, m = h.resultData,
|
|
10035
|
+
var f = j(j({}, u), { skip: !n.current }), h = oR(c, f), d = h.obsQueryFields, y = h.result, g = h.client, m = h.resultData, w = h.observable, A = h.onQueryExecuted, x = w.options.initialFetchPolicy || Kh(f.defaultOptions, g.defaultOptions), b = ct.useReducer(function(Y) {
|
|
10036
10036
|
return Y + 1;
|
|
10037
10037
|
}, 0)[1], O = ct.useMemo(function() {
|
|
10038
10038
|
for (var Y = {}, ue = function(Ne) {
|
|
10039
10039
|
var Le = d[Ne];
|
|
10040
10040
|
Y[Ne] = function() {
|
|
10041
|
-
return n.current || (n.current = /* @__PURE__ */ Object.create(null),
|
|
10041
|
+
return n.current || (n.current = /* @__PURE__ */ Object.create(null), b()), Le.apply(this, arguments);
|
|
10042
10042
|
};
|
|
10043
10043
|
}, fe = 0, qe = pR; fe < qe.length; fe++) {
|
|
10044
10044
|
var ge = qe[fe];
|
|
10045
10045
|
ue(ge);
|
|
10046
10046
|
}
|
|
10047
10047
|
return Y;
|
|
10048
|
-
}, [
|
|
10048
|
+
}, [b, d]), P = !!n.current, D = ct.useMemo(function() {
|
|
10049
10049
|
return j(j(j({}, y), O), { called: P });
|
|
10050
10050
|
}, [y, O, P]), L = ct.useCallback(function(Y) {
|
|
10051
|
-
n.current = Y ? j(j({}, Y), { fetchPolicy: Y.fetchPolicy ||
|
|
10052
|
-
fetchPolicy:
|
|
10051
|
+
n.current = Y ? j(j({}, Y), { fetchPolicy: Y.fetchPolicy || x }) : {
|
|
10052
|
+
fetchPolicy: x
|
|
10053
10053
|
};
|
|
10054
|
-
var ue = ts(i.current, j({ query: a.current }, n.current)), fe = yR(m,
|
|
10054
|
+
var ue = ts(i.current, j({ query: a.current }, n.current)), fe = yR(m, w, g, c, j(j({}, ue), { skip: !1 }), A).then(function(qe) {
|
|
10055
10055
|
return Object.assign(qe, O);
|
|
10056
10056
|
});
|
|
10057
10057
|
return fe.catch(function() {
|
|
@@ -10060,8 +10060,8 @@ function mR(r, e) {
|
|
|
10060
10060
|
g,
|
|
10061
10061
|
c,
|
|
10062
10062
|
O,
|
|
10063
|
-
|
|
10064
|
-
|
|
10063
|
+
x,
|
|
10064
|
+
w,
|
|
10065
10065
|
m,
|
|
10066
10066
|
A
|
|
10067
10067
|
]), V = ct.useRef(L);
|
|
@@ -10100,13 +10100,13 @@ function gR(r, e) {
|
|
|
10100
10100
|
return e.variables;
|
|
10101
10101
|
}, [e.variables]), g = function() {
|
|
10102
10102
|
return vR(n, r, y, a, u, f, h);
|
|
10103
|
-
}, m = ct.useState(e.skip ? null : g),
|
|
10103
|
+
}, m = ct.useState(e.skip ? null : g), w = m[0], A = m[1], x = ct.useRef(g);
|
|
10104
10104
|
Jh(function() {
|
|
10105
|
-
|
|
10106
|
-
}), i ?
|
|
10107
|
-
var
|
|
10105
|
+
x.current = g;
|
|
10106
|
+
}), i ? w && A(w = null) : (!w || (n !== w.__.client || r !== w.__.query || a !== w.__.fetchPolicy || u !== w.__.errorPolicy || !qt(y, w.__.variables)) && (typeof c == "function" ? !!c(e) : c) !== !1) && A(w = g());
|
|
10107
|
+
var b = ct.useRef(e);
|
|
10108
10108
|
ct.useEffect(function() {
|
|
10109
|
-
|
|
10109
|
+
b.current = e;
|
|
10110
10110
|
});
|
|
10111
10111
|
var O = !i && !d, P = ct.useMemo(function() {
|
|
10112
10112
|
return {
|
|
@@ -10120,10 +10120,10 @@ function gR(r, e) {
|
|
|
10120
10120
|
D.current = d;
|
|
10121
10121
|
});
|
|
10122
10122
|
var L = bw(ct.useCallback(function(te) {
|
|
10123
|
-
if (!
|
|
10123
|
+
if (!w)
|
|
10124
10124
|
return function() {
|
|
10125
10125
|
};
|
|
10126
|
-
var Y = !1, ue =
|
|
10126
|
+
var Y = !1, ue = w.__.variables, fe = w.__.client, qe = w.subscribe({
|
|
10127
10127
|
next: function(ge) {
|
|
10128
10128
|
var Ne, Le;
|
|
10129
10129
|
if (!Y) {
|
|
@@ -10135,10 +10135,10 @@ function gR(r, e) {
|
|
|
10135
10135
|
error: Sw(ge),
|
|
10136
10136
|
variables: ue
|
|
10137
10137
|
};
|
|
10138
|
-
|
|
10138
|
+
w.__.setResult(me), D.current || te(), me.error ? (Le = (Ne = b.current).onError) === null || Le === void 0 || Le.call(Ne, me.error) : b.current.onData ? b.current.onData({
|
|
10139
10139
|
client: fe,
|
|
10140
10140
|
data: me
|
|
10141
|
-
}) :
|
|
10141
|
+
}) : b.current.onSubscriptionData && b.current.onSubscriptionData({
|
|
10142
10142
|
client: fe,
|
|
10143
10143
|
subscriptionData: me
|
|
10144
10144
|
});
|
|
@@ -10146,15 +10146,15 @@ function gR(r, e) {
|
|
|
10146
10146
|
},
|
|
10147
10147
|
error: function(ge) {
|
|
10148
10148
|
var Ne, Le;
|
|
10149
|
-
ge = ge instanceof On ? ge : new On({ protocolErrors: [ge] }), Y || (
|
|
10149
|
+
ge = ge instanceof On ? ge : new On({ protocolErrors: [ge] }), Y || (w.__.setResult({
|
|
10150
10150
|
loading: !1,
|
|
10151
10151
|
data: void 0,
|
|
10152
10152
|
error: ge,
|
|
10153
10153
|
variables: ue
|
|
10154
|
-
}), D.current || te(), (Le = (Ne =
|
|
10154
|
+
}), D.current || te(), (Le = (Ne = b.current).onError) === null || Le === void 0 || Le.call(Ne, ge));
|
|
10155
10155
|
},
|
|
10156
10156
|
complete: function() {
|
|
10157
|
-
Y || (
|
|
10157
|
+
Y || (b.current.onComplete ? b.current.onComplete() : b.current.onSubscriptionComplete && b.current.onSubscriptionComplete());
|
|
10158
10158
|
}
|
|
10159
10159
|
});
|
|
10160
10160
|
return function() {
|
|
@@ -10162,13 +10162,13 @@ function gR(r, e) {
|
|
|
10162
10162
|
qe.unsubscribe();
|
|
10163
10163
|
});
|
|
10164
10164
|
};
|
|
10165
|
-
}, [
|
|
10166
|
-
return
|
|
10165
|
+
}, [w]), function() {
|
|
10166
|
+
return w && !i && !d ? w.__.result : P;
|
|
10167
10167
|
}, function() {
|
|
10168
10168
|
return P;
|
|
10169
10169
|
}), V = ct.useCallback(function() {
|
|
10170
|
-
Me(!
|
|
10171
|
-
}, [
|
|
10170
|
+
Me(!b.current.skip, 57), A(x.current());
|
|
10171
|
+
}, [b, x]);
|
|
10172
10172
|
return ct.useMemo(function() {
|
|
10173
10173
|
return j(j({}, L), { restart: V });
|
|
10174
10174
|
}, [L, V]);
|
|
@@ -10637,8 +10637,8 @@ class Ri extends zo {
|
|
|
10637
10637
|
millisecond: 0
|
|
10638
10638
|
});
|
|
10639
10639
|
let m = +t;
|
|
10640
|
-
const
|
|
10641
|
-
return m -=
|
|
10640
|
+
const w = m % 1e3;
|
|
10641
|
+
return m -= w >= 0 ? w : 1e3 + w, (g - m) / (60 * 1e3);
|
|
10642
10642
|
}
|
|
10643
10643
|
/**
|
|
10644
10644
|
* Return whether this Zone is equal to another zone
|
|
@@ -11750,12 +11750,12 @@ class Qr {
|
|
|
11750
11750
|
return t > 0 && (n.padTo = t), this.loc.numberFormatter(n).format(e);
|
|
11751
11751
|
}
|
|
11752
11752
|
formatDateTimeFromString(e, t) {
|
|
11753
|
-
const n = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (m,
|
|
11754
|
-
|
|
11753
|
+
const n = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (m, w) => this.loc.extract(e, m, w), u = (m) => e.isOffsetFixed && e.offset === 0 && m.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, m.format) : "", c = () => n ? sN(e) : a({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), f = (m, w) => n ? oN(e, m) : a(w ? { month: m } : { month: m, day: "numeric" }, "month"), h = (m, w) => n ? aN(e, m) : a(
|
|
11754
|
+
w ? { weekday: m } : { weekday: m, month: "long", day: "numeric" },
|
|
11755
11755
|
"weekday"
|
|
11756
11756
|
), d = (m) => {
|
|
11757
|
-
const
|
|
11758
|
-
return
|
|
11757
|
+
const w = Qr.macroTokenToFormatOpts(m);
|
|
11758
|
+
return w ? this.formatWithSystemDefault(e, w) : m;
|
|
11759
11759
|
}, y = (m) => n ? uN(e, m) : a({ era: m }, "era"), g = (m) => {
|
|
11760
11760
|
switch (m) {
|
|
11761
11761
|
case "S":
|
|
@@ -11982,7 +11982,7 @@ function Qo(r, e) {
|
|
|
11982
11982
|
}
|
|
11983
11983
|
const wN = RegExp(`^T?${yp.source}$`), _N = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
11984
11984
|
function xN(r) {
|
|
11985
|
-
const [e, t, n, i, a, u, c, f, h] = r, d = e[0] === "-", y = f && f[0] === "-", g = (m,
|
|
11985
|
+
const [e, t, n, i, a, u, c, f, h] = r, d = e[0] === "-", y = f && f[0] === "-", g = (m, w = !1) => m !== void 0 && (w || m && d) ? -m : m;
|
|
11986
11986
|
return [
|
|
11987
11987
|
{
|
|
11988
11988
|
years: g(Ss(t)),
|
|
@@ -13500,10 +13500,10 @@ function iD(r) {
|
|
|
13500
13500
|
return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
13501
13501
|
}
|
|
13502
13502
|
function sD(r, e) {
|
|
13503
|
-
const t = Xn(e), n = Xn(e, "{2}"), i = Xn(e, "{3}"), a = Xn(e, "{4}"), u = Xn(e, "{6}"), c = Xn(e, "{1,2}"), f = Xn(e, "{1,3}"), h = Xn(e, "{1,6}"), d = Xn(e, "{1,9}"), y = Xn(e, "{2,4}"), g = Xn(e, "{4,6}"), m = (
|
|
13503
|
+
const t = Xn(e), n = Xn(e, "{2}"), i = Xn(e, "{3}"), a = Xn(e, "{4}"), u = Xn(e, "{6}"), c = Xn(e, "{1,2}"), f = Xn(e, "{1,3}"), h = Xn(e, "{1,6}"), d = Xn(e, "{1,9}"), y = Xn(e, "{2,4}"), g = Xn(e, "{4,6}"), m = (x) => ({ regex: RegExp(iD(x.val)), deser: ([b]) => b, literal: !0 }), A = ((x) => {
|
|
13504
13504
|
if (r.literal)
|
|
13505
|
-
return m(
|
|
13506
|
-
switch (
|
|
13505
|
+
return m(x);
|
|
13506
|
+
switch (x.val) {
|
|
13507
13507
|
case "G":
|
|
13508
13508
|
return ei(e.eras("short"), 0);
|
|
13509
13509
|
case "GG":
|
|
@@ -13603,7 +13603,7 @@ function sD(r, e) {
|
|
|
13603
13603
|
case " ":
|
|
13604
13604
|
return zu(/[^\S\n\r]/);
|
|
13605
13605
|
default:
|
|
13606
|
-
return m(
|
|
13606
|
+
return m(x);
|
|
13607
13607
|
}
|
|
13608
13608
|
})(r) || {
|
|
13609
13609
|
invalidReason: tD
|
|
@@ -14180,20 +14180,20 @@ class rt {
|
|
|
14180
14180
|
const n = Xi(t.zone, dr.defaultZone);
|
|
14181
14181
|
if (!n.isValid)
|
|
14182
14182
|
return rt.invalid(po(n));
|
|
14183
|
-
const i = jt.fromObject(t), a = Pc(e, Pv), { minDaysInFirstWeek: u, startOfWeek: c } = gv(a, i), f = dr.now(), h = nt(t.specificOffset) ? n.offset(f) : t.specificOffset, d = !nt(a.ordinal), y = !nt(a.year), g = !nt(a.month) || !nt(a.day), m = y || g,
|
|
14184
|
-
if ((m || d) &&
|
|
14183
|
+
const i = jt.fromObject(t), a = Pc(e, Pv), { minDaysInFirstWeek: u, startOfWeek: c } = gv(a, i), f = dr.now(), h = nt(t.specificOffset) ? n.offset(f) : t.specificOffset, d = !nt(a.ordinal), y = !nt(a.year), g = !nt(a.month) || !nt(a.day), m = y || g, w = a.weekYear || a.weekNumber;
|
|
14184
|
+
if ((m || d) && w)
|
|
14185
14185
|
throw new la(
|
|
14186
14186
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
14187
14187
|
);
|
|
14188
14188
|
if (g && d)
|
|
14189
14189
|
throw new la("Can't mix ordinal dates with month/day");
|
|
14190
|
-
const A =
|
|
14191
|
-
let
|
|
14192
|
-
A ? (
|
|
14190
|
+
const A = w || a.weekday && !m;
|
|
14191
|
+
let x, b, O = Hu(f, h);
|
|
14192
|
+
A ? (x = yD, b = pD, O = kc(O, u, c)) : d ? (x = gD, b = mD, O = Ff(O)) : (x = O_, b = E_);
|
|
14193
14193
|
let P = !1;
|
|
14194
|
-
for (const fe of
|
|
14194
|
+
for (const fe of x) {
|
|
14195
14195
|
const qe = a[fe];
|
|
14196
|
-
nt(qe) ? P ? a[fe] =
|
|
14196
|
+
nt(qe) ? P ? a[fe] = b[fe] : a[fe] = O[fe] : P = !0;
|
|
14197
14197
|
}
|
|
14198
14198
|
const D = A ? HR(a, u, c) : d ? GR(a) : Yw(a), L = D || Kw(a);
|
|
14199
14199
|
if (L)
|
|
@@ -15573,17 +15573,17 @@ var Cc = { exports: {} };
|
|
|
15573
15573
|
Cc.exports;
|
|
15574
15574
|
(function(r, e) {
|
|
15575
15575
|
(function() {
|
|
15576
|
-
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, d = "__lodash_placeholder__", y = 1, g = 2, m = 4,
|
|
15576
|
+
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, d = "__lodash_placeholder__", y = 1, g = 2, m = 4, w = 1, A = 2, x = 1, b = 2, O = 4, P = 8, D = 16, L = 32, V = 64, te = 128, Y = 256, ue = 512, fe = 30, qe = "...", ge = 800, Ne = 16, Le = 1, me = 2, Qe = 3, ve = 1 / 0, ce = 9007199254740991, Se = 17976931348623157e292, Pe = NaN, we = 4294967295, Ze = we - 1, St = we >>> 1, lt = [
|
|
15577
15577
|
["ary", te],
|
|
15578
|
-
["bind",
|
|
15579
|
-
["bindKey",
|
|
15578
|
+
["bind", x],
|
|
15579
|
+
["bindKey", b],
|
|
15580
15580
|
["curry", P],
|
|
15581
15581
|
["curryRight", D],
|
|
15582
15582
|
["flip", ue],
|
|
15583
15583
|
["partial", L],
|
|
15584
15584
|
["partialRight", V],
|
|
15585
15585
|
["rearg", Y]
|
|
15586
|
-
], At = "[object Arguments]", Xe = "[object Array]", Je = "[object AsyncFunction]", dt = "[object Boolean]", Ce = "[object Date]", bt = "[object DOMException]", z = "[object Error]", K = "[object Function]", B = "[object GeneratorFunction]", Q = "[object Map]", X = "[object Number]", G = "[object Null]", Te = "[object Object]", ze = "[object Promise]", $e = "[object Proxy]", le = "[object RegExp]", be = "[object Set]", Ke = "[object String]", Et = "[object Symbol]", wt = "[object Undefined]", Gt = "[object WeakMap]", pt = "[object WeakSet]", Ft = "[object ArrayBuffer]", er = "[object DataView]", Cr = "[object Float32Array]", Wt = "[object Float64Array]", Qt = "[object Int8Array]", Yt = "[object Int16Array]", W = "[object Int32Array]", H = "[object Uint8Array]", Ve = "[object Uint8ClampedArray]", Be = "[object Uint16Array]", Ot = "[object Uint32Array]", Ye = /\b__p \+= '';/g, tr = /\b(__p \+=) '' \+/g, lr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Rt = /&(?:amp|lt|gt|quot|#39);/g, zt = /[&<>"']/g, jr = RegExp(Rt.source), qr = RegExp(zt.source), rr = /<%-([\s\S]+?)%>/g, an = /<%([\s\S]+?)%>/g, br = /<%=([\s\S]+?)%>/g, wr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _r = /^\w*$/, Ar = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, sr = /[\\^$.*+?()[\]{}|]/g, Wr = RegExp(sr.source), kr = /^\s+/, xr = /\s/, Rr = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, on = /\{\n\/\* \[wrapped with (.+)\] \*/, Pn = /,? & /, N = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, se = /[()=,{}\[\]\/\s]/, ye = /\\(\\)?/g, Ae = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, je = /\w*$/, at = /^[-+]0x[0-9a-f]+$/i, it = /^0b[01]+$/i, et = /^\[object .+?Constructor\]$/, tt = /^0o[0-7]+$/i, _t = /^(?:0|[1-9]\d*)$/,
|
|
15586
|
+
], At = "[object Arguments]", Xe = "[object Array]", Je = "[object AsyncFunction]", dt = "[object Boolean]", Ce = "[object Date]", bt = "[object DOMException]", z = "[object Error]", K = "[object Function]", B = "[object GeneratorFunction]", Q = "[object Map]", X = "[object Number]", G = "[object Null]", Te = "[object Object]", ze = "[object Promise]", $e = "[object Proxy]", le = "[object RegExp]", be = "[object Set]", Ke = "[object String]", Et = "[object Symbol]", wt = "[object Undefined]", Gt = "[object WeakMap]", pt = "[object WeakSet]", Ft = "[object ArrayBuffer]", er = "[object DataView]", Cr = "[object Float32Array]", Wt = "[object Float64Array]", Qt = "[object Int8Array]", Yt = "[object Int16Array]", W = "[object Int32Array]", H = "[object Uint8Array]", Ve = "[object Uint8ClampedArray]", Be = "[object Uint16Array]", Ot = "[object Uint32Array]", Ye = /\b__p \+= '';/g, tr = /\b(__p \+=) '' \+/g, lr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Rt = /&(?:amp|lt|gt|quot|#39);/g, zt = /[&<>"']/g, jr = RegExp(Rt.source), qr = RegExp(zt.source), rr = /<%-([\s\S]+?)%>/g, an = /<%([\s\S]+?)%>/g, br = /<%=([\s\S]+?)%>/g, wr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _r = /^\w*$/, Ar = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, sr = /[\\^$.*+?()[\]{}|]/g, Wr = RegExp(sr.source), kr = /^\s+/, xr = /\s/, Rr = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, on = /\{\n\/\* \[wrapped with (.+)\] \*/, Pn = /,? & /, N = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, se = /[()=,{}\[\]\/\s]/, ye = /\\(\\)?/g, Ae = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, je = /\w*$/, at = /^[-+]0x[0-9a-f]+$/i, it = /^0b[01]+$/i, et = /^\[object .+?Constructor\]$/, tt = /^0o[0-7]+$/i, _t = /^(?:0|[1-9]\d*)$/, _ = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, I = /($^)/, k = /['\n\r\u2028\u2029\\]/g, C = "\\ud800-\\udfff", F = "\\u0300-\\u036f", U = "\\ufe20-\\ufe2f", ne = "\\u20d0-\\u20ff", he = F + U + ne, J = "\\u2700-\\u27bf", re = "a-z\\xdf-\\xf6\\xf8-\\xff", De = "\\xac\\xb1\\xd7\\xf7", mt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Kt = "\\u2000-\\u206f", mn = " \\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", hi = "A-Z\\xc0-\\xd6\\xd8-\\xde", Dp = "\\ufe0e\\ufe0f", Fp = De + mt + Kt + mn, ul = "['’]", dx = "[" + C + "]", Mp = "[" + Fp + "]", Zo = "[" + he + "]", Lp = "\\d+", px = "[" + J + "]", jp = "[" + re + "]", qp = "[^" + C + Fp + Lp + J + re + hi + "]", cl = "\\ud83c[\\udffb-\\udfff]", mx = "(?:" + Zo + "|" + cl + ")", Up = "[^" + C + "]", ll = "(?:\\ud83c[\\udde6-\\uddff]){2}", fl = "[\\ud800-\\udbff][\\udc00-\\udfff]", $s = "[" + hi + "]", $p = "\\u200d", Bp = "(?:" + jp + "|" + qp + ")", yx = "(?:" + $s + "|" + qp + ")", Vp = "(?:" + ul + "(?:d|ll|m|re|s|t|ve))?", Wp = "(?:" + ul + "(?:D|LL|M|RE|S|T|VE))?", zp = mx + "?", Hp = "[" + Dp + "]?", gx = "(?:" + $p + "(?:" + [Up, ll, fl].join("|") + ")" + Hp + zp + ")*", vx = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", bx = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Gp = Hp + zp + gx, wx = "(?:" + [px, ll, fl].join("|") + ")" + Gp, _x = "(?:" + [Up + Zo + "?", Zo, ll, fl, dx].join("|") + ")", xx = RegExp(ul, "g"), Sx = RegExp(Zo, "g"), hl = RegExp(cl + "(?=" + cl + ")|" + _x + Gp, "g"), Ex = RegExp([
|
|
15587
15587
|
$s + "?" + jp + "+" + Vp + "(?=" + [Mp, $s, "$"].join("|") + ")",
|
|
15588
15588
|
yx + "+" + Wp + "(?=" + [Mp, $s + Bp, "$"].join("|") + ")",
|
|
15589
15589
|
$s + "?" + Bp + "+" + Vp,
|
|
@@ -16632,7 +16632,7 @@ Cc.exports;
|
|
|
16632
16632
|
}
|
|
16633
16633
|
if (Ee && !ae)
|
|
16634
16634
|
return T || (T = new Jn()), R || Xs(s) ? uy(s, o, l, p, v, T) : LE(s, o, $, l, p, v, T);
|
|
16635
|
-
if (!(l &
|
|
16635
|
+
if (!(l & w)) {
|
|
16636
16636
|
var Ue = ae && $t.call(s, "__wrapped__"), He = de && $t.call(o, "__wrapped__");
|
|
16637
16637
|
if (Ue || He) {
|
|
16638
16638
|
var ft = Ue ? s.value() : s, Ge = He ? o.value() : o;
|
|
@@ -16663,7 +16663,7 @@ Cc.exports;
|
|
|
16663
16663
|
var de = new Jn();
|
|
16664
16664
|
if (p)
|
|
16665
16665
|
var Ee = p(ie, ae, $, s, o, de);
|
|
16666
|
-
if (!(Ee === t ? Ja(ae, ie,
|
|
16666
|
+
if (!(Ee === t ? Ja(ae, ie, w | A, p, de) : Ee))
|
|
16667
16667
|
return !1;
|
|
16668
16668
|
}
|
|
16669
16669
|
}
|
|
@@ -16721,7 +16721,7 @@ Cc.exports;
|
|
|
16721
16721
|
function Dm(s, o) {
|
|
16722
16722
|
return Xl(s) && hy(o) ? dy(ui(s), o) : function(l) {
|
|
16723
16723
|
var p = lf(l, s);
|
|
16724
|
-
return p === t && p === o ? ff(l, s) : Ja(o, p,
|
|
16724
|
+
return p === t && p === o ? ff(l, s) : Ja(o, p, w | A);
|
|
16725
16725
|
};
|
|
16726
16726
|
}
|
|
16727
16727
|
function bu(s, o, l, p, v) {
|
|
@@ -17118,7 +17118,7 @@ Cc.exports;
|
|
|
17118
17118
|
};
|
|
17119
17119
|
}
|
|
17120
17120
|
function RE(s, o, l) {
|
|
17121
|
-
var p = o &
|
|
17121
|
+
var p = o & x, v = Ka(s);
|
|
17122
17122
|
function T() {
|
|
17123
17123
|
var R = this && this !== Ur && this instanceof T ? v : s;
|
|
17124
17124
|
return R.apply(p ? l : this, arguments);
|
|
@@ -17225,7 +17225,7 @@ Cc.exports;
|
|
|
17225
17225
|
});
|
|
17226
17226
|
}
|
|
17227
17227
|
function Su(s, o, l, p, v, T, R, M, $, ie) {
|
|
17228
|
-
var ae = o & te, de = o &
|
|
17228
|
+
var ae = o & te, de = o & x, Ee = o & b, Ue = o & (P | D), He = o & ue, ft = Ee ? t : Ka(s);
|
|
17229
17229
|
function Ge() {
|
|
17230
17230
|
for (var yt = arguments.length, xt = Z(yt), wn = yt; wn--; )
|
|
17231
17231
|
xt[wn] = arguments[wn];
|
|
@@ -17288,7 +17288,7 @@ Cc.exports;
|
|
|
17288
17288
|
return Vs(o) ? Vi(Qn(p), 0, s).join("") : p.slice(0, s);
|
|
17289
17289
|
}
|
|
17290
17290
|
function DE(s, o, l, p) {
|
|
17291
|
-
var v = o &
|
|
17291
|
+
var v = o & x, T = Ka(s);
|
|
17292
17292
|
function R() {
|
|
17293
17293
|
for (var M = -1, $ = arguments.length, ie = -1, ae = p.length, de = Z(ae + $), Ee = this && this !== Ur && this instanceof R ? T : s; ++ie < ae; )
|
|
17294
17294
|
de[ie] = p[ie];
|
|
@@ -17310,7 +17310,7 @@ Cc.exports;
|
|
|
17310
17310
|
}
|
|
17311
17311
|
function iy(s, o, l, p, v, T, R, M, $, ie) {
|
|
17312
17312
|
var ae = o & P, de = ae ? R : t, Ee = ae ? t : R, Ue = ae ? T : t, He = ae ? t : T;
|
|
17313
|
-
o |= ae ? L : V, o &= ~(ae ? V : L), o & O || (o &= ~(
|
|
17313
|
+
o |= ae ? L : V, o &= ~(ae ? V : L), o & O || (o &= ~(x | b));
|
|
17314
17314
|
var ft = [
|
|
17315
17315
|
s,
|
|
17316
17316
|
o,
|
|
@@ -17345,7 +17345,7 @@ Cc.exports;
|
|
|
17345
17345
|
};
|
|
17346
17346
|
}
|
|
17347
17347
|
function yi(s, o, l, p, v, T, R, M) {
|
|
17348
|
-
var $ = o &
|
|
17348
|
+
var $ = o & b;
|
|
17349
17349
|
if (!$ && typeof s != "function")
|
|
17350
17350
|
throw new Nn(u);
|
|
17351
17351
|
var ie = p ? p.length : 0;
|
|
@@ -17365,9 +17365,9 @@ Cc.exports;
|
|
|
17365
17365
|
R,
|
|
17366
17366
|
M
|
|
17367
17367
|
];
|
|
17368
|
-
if (Ee && YE(Ue, Ee), s = Ue[0], o = Ue[1], l = Ue[2], p = Ue[3], v = Ue[4], M = Ue[9] = Ue[9] === t ? $ ? 0 : s.length : Pr(Ue[9] - ie, 0), !M && o & (P | D) && (o &= ~(P | D)), !o || o ==
|
|
17368
|
+
if (Ee && YE(Ue, Ee), s = Ue[0], o = Ue[1], l = Ue[2], p = Ue[3], v = Ue[4], M = Ue[9] = Ue[9] === t ? $ ? 0 : s.length : Pr(Ue[9] - ie, 0), !M && o & (P | D) && (o &= ~(P | D)), !o || o == x)
|
|
17369
17369
|
var He = RE(s, o, l);
|
|
17370
|
-
else o == P || o == D ? He = NE(s, o, M) : (o == L || o == (
|
|
17370
|
+
else o == P || o == D ? He = NE(s, o, M) : (o == L || o == (x | L)) && !v.length ? He = DE(s, o, l, p) : He = Su.apply(t, Ue);
|
|
17371
17371
|
var ft = Ee ? qm : yy;
|
|
17372
17372
|
return gy(ft(He, Ue), s, o);
|
|
17373
17373
|
}
|
|
@@ -17381,7 +17381,7 @@ Cc.exports;
|
|
|
17381
17381
|
return eo(s) ? t : s;
|
|
17382
17382
|
}
|
|
17383
17383
|
function uy(s, o, l, p, v, T) {
|
|
17384
|
-
var R = l &
|
|
17384
|
+
var R = l & w, M = s.length, $ = o.length;
|
|
17385
17385
|
if (M != $ && !(R && $ > M))
|
|
17386
17386
|
return !1;
|
|
17387
17387
|
var ie = T.get(s), ae = T.get(o);
|
|
@@ -17433,7 +17433,7 @@ Cc.exports;
|
|
|
17433
17433
|
case Q:
|
|
17434
17434
|
var M = Sl;
|
|
17435
17435
|
case be:
|
|
17436
|
-
var $ = p &
|
|
17436
|
+
var $ = p & w;
|
|
17437
17437
|
if (M || (M = tu), s.size != o.size && !$)
|
|
17438
17438
|
return !1;
|
|
17439
17439
|
var ie = R.get(s);
|
|
@@ -17449,7 +17449,7 @@ Cc.exports;
|
|
|
17449
17449
|
return !1;
|
|
17450
17450
|
}
|
|
17451
17451
|
function jE(s, o, l, p, v, T) {
|
|
17452
|
-
var R = l &
|
|
17452
|
+
var R = l & w, M = Ql(s), $ = M.length, ie = Ql(o), ae = ie.length;
|
|
17453
17453
|
if ($ != ae && !R)
|
|
17454
17454
|
return !1;
|
|
17455
17455
|
for (var de = $; de--; ) {
|
|
@@ -17696,10 +17696,10 @@ Cc.exports;
|
|
|
17696
17696
|
return o;
|
|
17697
17697
|
}
|
|
17698
17698
|
function YE(s, o) {
|
|
17699
|
-
var l = s[1], p = o[1], v = l | p, T = v < (
|
|
17699
|
+
var l = s[1], p = o[1], v = l | p, T = v < (x | b | te), R = p == te && l == P || p == te && l == Y && s[7].length <= o[8] || p == (te | Y) && o[7].length <= o[8] && l == P;
|
|
17700
17700
|
if (!(T || R))
|
|
17701
17701
|
return s;
|
|
17702
|
-
p &
|
|
17702
|
+
p & x && (s[2] = o[2], v |= l & x ? 0 : O);
|
|
17703
17703
|
var M = o[3];
|
|
17704
17704
|
if (M) {
|
|
17705
17705
|
var $ = s[3];
|
|
@@ -18257,14 +18257,14 @@ Cc.exports;
|
|
|
18257
18257
|
};
|
|
18258
18258
|
}
|
|
18259
18259
|
var af = ht(function(s, o, l) {
|
|
18260
|
-
var p =
|
|
18260
|
+
var p = x;
|
|
18261
18261
|
if (l.length) {
|
|
18262
18262
|
var v = ji(l, Zs(af));
|
|
18263
18263
|
p |= L;
|
|
18264
18264
|
}
|
|
18265
18265
|
return yi(s, p, o, l, v);
|
|
18266
18266
|
}), Ry = ht(function(s, o, l) {
|
|
18267
|
-
var p =
|
|
18267
|
+
var p = x | b;
|
|
18268
18268
|
if (l.length) {
|
|
18269
18269
|
var v = ji(l, Zs(Ry));
|
|
18270
18270
|
p |= L;
|
|
@@ -18802,7 +18802,7 @@ Cc.exports;
|
|
|
18802
18802
|
return hf(Mt(s).toLowerCase());
|
|
18803
18803
|
}
|
|
18804
18804
|
function Yy(s) {
|
|
18805
|
-
return s = Mt(s), s && s.replace(
|
|
18805
|
+
return s = Mt(s), s && s.replace(_, Hx).replace(Sx, "");
|
|
18806
18806
|
}
|
|
18807
18807
|
function nA(s, o, l) {
|
|
18808
18808
|
s = Mt(s), o = vn(o);
|
|
@@ -19224,7 +19224,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
19224
19224
|
var p = l.name + "";
|
|
19225
19225
|
$t.call(Qs, p) || (Qs[p] = []), Qs[p].push({ name: o, func: l });
|
|
19226
19226
|
}
|
|
19227
|
-
}), Qs[Su(t,
|
|
19227
|
+
}), Qs[Su(t, b).name] = [{
|
|
19228
19228
|
name: "wrapper",
|
|
19229
19229
|
func: t
|
|
19230
19230
|
}], gt.prototype.clone = TS, gt.prototype.reverse = AS, gt.prototype.value = kS, S.prototype.at = n1, S.prototype.chain = i1, S.prototype.commit = s1, S.prototype.next = a1, S.prototype.plant = u1, S.prototype.reverse = c1, S.prototype.toJSON = S.prototype.valueOf = S.prototype.value = l1, S.prototype.first = S.prototype.head, $a && (S.prototype[$a] = o1), S;
|
|
@@ -19331,7 +19331,7 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19331
19331
|
try {
|
|
19332
19332
|
if (!r)
|
|
19333
19333
|
return;
|
|
19334
|
-
c((
|
|
19334
|
+
c((w) => (w || 0) + 1);
|
|
19335
19335
|
const m = await y(`${d.apiUrl}/reports/production`, {
|
|
19336
19336
|
method: "POST",
|
|
19337
19337
|
body: r,
|
|
@@ -19347,7 +19347,7 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19347
19347
|
[r]
|
|
19348
19348
|
), { data: t, error: f, loading: i };
|
|
19349
19349
|
}, rL = ({ machineRef: r, key: e, skip: t }) => {
|
|
19350
|
-
const [n, i] = Ut(), [a, u] = Ut(), [c, f] = Ut(), [h, d] = Ut(), [y, g] = Ut(), [m,
|
|
19350
|
+
const [n, i] = Ut(), [a, u] = Ut(), [c, f] = Ut(), [h, d] = Ut(), [y, g] = Ut(), [m, w] = Ut(), A = fs`
|
|
19351
19351
|
subscription MMToolsQuantityStreamSubscription {
|
|
19352
19352
|
currentQuantities(
|
|
19353
19353
|
where: { machineRef: { _eq: ${y} }, key: { _eq: "${m}" } }
|
|
@@ -19356,9 +19356,9 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19356
19356
|
eventTime
|
|
19357
19357
|
}
|
|
19358
19358
|
}
|
|
19359
|
-
`, { data:
|
|
19359
|
+
`, { data: x } = gR(A, { skip: t }), [b, O] = Ut();
|
|
19360
19360
|
vr(() => {
|
|
19361
|
-
r !== y && g(r), e !== m &&
|
|
19361
|
+
r !== y && g(r), e !== m && w(e), d(), i(), f(), u();
|
|
19362
19362
|
}, [r, e, m, y]), vr(() => {
|
|
19363
19363
|
if (L || !r || !e)
|
|
19364
19364
|
return;
|
|
@@ -19372,10 +19372,10 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19372
19372
|
`;
|
|
19373
19373
|
O(te);
|
|
19374
19374
|
}, [y, m, h]), vr(() => {
|
|
19375
|
-
|
|
19376
|
-
}, [
|
|
19375
|
+
b && P();
|
|
19376
|
+
}, [b, x]);
|
|
19377
19377
|
const [P, { data: D, loading: L }] = mR(
|
|
19378
|
-
|
|
19378
|
+
b,
|
|
19379
19379
|
{
|
|
19380
19380
|
fetchPolicy: "no-cache"
|
|
19381
19381
|
}
|
|
@@ -19418,25 +19418,25 @@ const Ai = /* @__PURE__ */ z0(wD), T_ = Fs.createContext(), A_ = Fs.createContex
|
|
|
19418
19418
|
const m = Ai.filter(c.templates, { namespace: u });
|
|
19419
19419
|
t(m);
|
|
19420
19420
|
}, [c]), [
|
|
19421
|
-
async ({ name: m, public:
|
|
19422
|
-
const
|
|
19421
|
+
async ({ name: m, public: w, config: A }) => {
|
|
19422
|
+
const x = {
|
|
19423
19423
|
name: m,
|
|
19424
|
-
public:
|
|
19424
|
+
public: w,
|
|
19425
19425
|
namespace: u,
|
|
19426
19426
|
config: JSON.stringify(A)
|
|
19427
|
-
},
|
|
19427
|
+
}, b = JSON.stringify(x), O = await i(`${n.apiUrl}/templates`, {
|
|
19428
19428
|
method: "POST",
|
|
19429
|
-
body:
|
|
19429
|
+
body: b
|
|
19430
19430
|
});
|
|
19431
19431
|
return t([...e, O.template]), O.template;
|
|
19432
19432
|
},
|
|
19433
|
-
async (m, { name:
|
|
19434
|
-
const
|
|
19435
|
-
name:
|
|
19433
|
+
async (m, { name: w, public: A, config: x }) => {
|
|
19434
|
+
const b = {
|
|
19435
|
+
name: w,
|
|
19436
19436
|
public: A,
|
|
19437
19437
|
namespace: u,
|
|
19438
|
-
config: JSON.stringify(
|
|
19439
|
-
}, O = JSON.stringify(
|
|
19438
|
+
config: JSON.stringify(x)
|
|
19439
|
+
}, O = JSON.stringify(b), P = await i(`${n.apiUrl}/templates/${m}`, {
|
|
19440
19440
|
method: "PUT",
|
|
19441
19441
|
body: O
|
|
19442
19442
|
}), D = Ai.findIndex(e, { id: m }), L = e.slice(0, D), V = e.slice(D + 1);
|
|
@@ -19989,16 +19989,16 @@ var ga = function(r) {
|
|
|
19989
19989
|
}, i;
|
|
19990
19990
|
function u(g) {
|
|
19991
19991
|
n[g] && (i[g] = function(m) {
|
|
19992
|
-
return new Promise(function(
|
|
19993
|
-
a.push([g, m,
|
|
19992
|
+
return new Promise(function(w, A) {
|
|
19993
|
+
a.push([g, m, w, A]) > 1 || c(g, m);
|
|
19994
19994
|
});
|
|
19995
19995
|
});
|
|
19996
19996
|
}
|
|
19997
19997
|
function c(g, m) {
|
|
19998
19998
|
try {
|
|
19999
19999
|
f(n[g](m));
|
|
20000
|
-
} catch (
|
|
20001
|
-
y(a[0][3],
|
|
20000
|
+
} catch (w) {
|
|
20001
|
+
y(a[0][3], w);
|
|
20002
20002
|
}
|
|
20003
20003
|
}
|
|
20004
20004
|
function f(g) {
|
|
@@ -20035,7 +20035,7 @@ function YD(r) {
|
|
|
20035
20035
|
shouldRetry: y = Bf,
|
|
20036
20036
|
isFatalConnectionProblem: g,
|
|
20037
20037
|
on: m,
|
|
20038
|
-
webSocketImpl:
|
|
20038
|
+
webSocketImpl: w,
|
|
20039
20039
|
/**
|
|
20040
20040
|
* Generates a v4 UUID to be used as the ID using `Math`
|
|
20041
20041
|
* as the random number generator. Supply your own generator
|
|
@@ -20049,14 +20049,14 @@ function YD(r) {
|
|
|
20049
20049
|
return (Qe == "x" ? ve : ve & 3 | 8).toString(16);
|
|
20050
20050
|
});
|
|
20051
20051
|
},
|
|
20052
|
-
jsonMessageReplacer:
|
|
20053
|
-
jsonMessageReviver:
|
|
20052
|
+
jsonMessageReplacer: x,
|
|
20053
|
+
jsonMessageReviver: b
|
|
20054
20054
|
} = r;
|
|
20055
20055
|
let O;
|
|
20056
|
-
if (
|
|
20057
|
-
if (!ZD(
|
|
20056
|
+
if (w) {
|
|
20057
|
+
if (!ZD(w))
|
|
20058
20058
|
throw new Error("Invalid WebSocket implementation provided");
|
|
20059
|
-
O =
|
|
20059
|
+
O = w;
|
|
20060
20060
|
} else typeof WebSocket < "u" ? O = WebSocket : typeof global < "u" ? O = global.WebSocket || // @ts-expect-error: Support more browsers
|
|
20061
20061
|
global.MozWebSocket : typeof window < "u" && (O = window.WebSocket || // @ts-expect-error: Support more browsers
|
|
20062
20062
|
window.MozWebSocket);
|
|
@@ -20143,7 +20143,7 @@ function YD(r) {
|
|
|
20143
20143
|
} : {
|
|
20144
20144
|
type: yr.ConnectionInit
|
|
20145
20145
|
// payload is completely absent if not provided
|
|
20146
|
-
},
|
|
20146
|
+
}, x)), isFinite(f) && f > 0 && (Ze = setTimeout(() => {
|
|
20147
20147
|
we.close(xn.ConnectionAcknowledgementTimeout, "Connection acknowledgement timeout");
|
|
20148
20148
|
}, f)), lt();
|
|
20149
20149
|
} catch (Xe) {
|
|
@@ -20153,7 +20153,7 @@ function YD(r) {
|
|
|
20153
20153
|
let At = !1;
|
|
20154
20154
|
we.onmessage = ({ data: Xe }) => {
|
|
20155
20155
|
try {
|
|
20156
|
-
const Je = QD(Xe,
|
|
20156
|
+
const Je = QD(Xe, b);
|
|
20157
20157
|
if (D.emit("message", Je), Je.type === "ping" || Je.type === "pong") {
|
|
20158
20158
|
D.emit(Je.type, !0, Je.payload), Je.type === "pong" ? lt() : c || (we.send(co(Je.payload ? {
|
|
20159
20159
|
type: yr.Pong,
|
|
@@ -20268,11 +20268,11 @@ function YD(r) {
|
|
|
20268
20268
|
id: ve,
|
|
20269
20269
|
type: yr.Subscribe,
|
|
20270
20270
|
payload: me
|
|
20271
|
-
},
|
|
20271
|
+
}, x)), Pe = () => {
|
|
20272
20272
|
!ce && we.readyState === P.OPEN && we.send(co({
|
|
20273
20273
|
id: ve,
|
|
20274
20274
|
type: yr.Complete
|
|
20275
|
-
},
|
|
20275
|
+
}, x)), te--, ce = !0, Ze();
|
|
20276
20276
|
}, await St.finally(lt);
|
|
20277
20277
|
return;
|
|
20278
20278
|
} catch (we) {
|
|
@@ -20538,22 +20538,22 @@ function cF() {
|
|
|
20538
20538
|
throw new TypeError(r + h);
|
|
20539
20539
|
for (var d = a(arguments, 1), y, g = function() {
|
|
20540
20540
|
if (this instanceof y) {
|
|
20541
|
-
var
|
|
20541
|
+
var b = h.apply(
|
|
20542
20542
|
this,
|
|
20543
20543
|
i(d, arguments)
|
|
20544
20544
|
);
|
|
20545
|
-
return Object(
|
|
20545
|
+
return Object(b) === b ? b : this;
|
|
20546
20546
|
}
|
|
20547
20547
|
return h.apply(
|
|
20548
20548
|
f,
|
|
20549
20549
|
i(d, arguments)
|
|
20550
20550
|
);
|
|
20551
|
-
}, m = t(0, h.length - d.length),
|
|
20552
|
-
|
|
20553
|
-
if (y = Function("binder", "return function (" + u(
|
|
20554
|
-
var
|
|
20551
|
+
}, m = t(0, h.length - d.length), w = [], A = 0; A < m; A++)
|
|
20552
|
+
w[A] = "$" + A;
|
|
20553
|
+
if (y = Function("binder", "return function (" + u(w, ",") + "){ return binder.apply(this,arguments); }")(g), h.prototype) {
|
|
20554
|
+
var x = function() {
|
|
20555
20555
|
};
|
|
20556
|
-
|
|
20556
|
+
x.prototype = h.prototype, y.prototype = new x(), x.prototype = null;
|
|
20557
20557
|
}
|
|
20558
20558
|
return y;
|
|
20559
20559
|
}, Xf;
|
|
@@ -20600,19 +20600,19 @@ function ja() {
|
|
|
20600
20600
|
return y;
|
|
20601
20601
|
}
|
|
20602
20602
|
}
|
|
20603
|
-
}() : y, m = oF()(),
|
|
20603
|
+
}() : y, m = oF()(), w = uF()(), A = Object.getPrototypeOf || (w ? function(ve) {
|
|
20604
20604
|
return ve.__proto__;
|
|
20605
|
-
} : null),
|
|
20605
|
+
} : null), x = {}, b = typeof Uint8Array > "u" || !A ? r : A(Uint8Array), O = {
|
|
20606
20606
|
__proto__: null,
|
|
20607
20607
|
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
|
|
20608
20608
|
"%Array%": Array,
|
|
20609
20609
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
|
|
20610
20610
|
"%ArrayIteratorPrototype%": m && A ? A([][Symbol.iterator]()) : r,
|
|
20611
20611
|
"%AsyncFromSyncIteratorPrototype%": r,
|
|
20612
|
-
"%AsyncFunction%":
|
|
20613
|
-
"%AsyncGenerator%":
|
|
20614
|
-
"%AsyncGeneratorFunction%":
|
|
20615
|
-
"%AsyncIteratorPrototype%":
|
|
20612
|
+
"%AsyncFunction%": x,
|
|
20613
|
+
"%AsyncGenerator%": x,
|
|
20614
|
+
"%AsyncGeneratorFunction%": x,
|
|
20615
|
+
"%AsyncIteratorPrototype%": x,
|
|
20616
20616
|
"%Atomics%": typeof Atomics > "u" ? r : Atomics,
|
|
20617
20617
|
"%BigInt%": typeof BigInt > "u" ? r : BigInt,
|
|
20618
20618
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array,
|
|
@@ -20632,7 +20632,7 @@ function ja() {
|
|
|
20632
20632
|
"%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
|
|
20633
20633
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
|
|
20634
20634
|
"%Function%": f,
|
|
20635
|
-
"%GeneratorFunction%":
|
|
20635
|
+
"%GeneratorFunction%": x,
|
|
20636
20636
|
"%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
|
|
20637
20637
|
"%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
|
|
20638
20638
|
"%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
|
|
@@ -20661,7 +20661,7 @@ function ja() {
|
|
|
20661
20661
|
"%Symbol%": m ? Symbol : r,
|
|
20662
20662
|
"%SyntaxError%": a,
|
|
20663
20663
|
"%ThrowTypeError%": g,
|
|
20664
|
-
"%TypedArray%":
|
|
20664
|
+
"%TypedArray%": b,
|
|
20665
20665
|
"%TypeError%": u,
|
|
20666
20666
|
"%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
|
|
20667
20667
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
|
|
@@ -20762,7 +20762,7 @@ function ja() {
|
|
|
20762
20762
|
var Pe = ce, we;
|
|
20763
20763
|
if (te(L, Pe) && (we = L[Pe], Pe = "%" + we[0] + "%"), te(O, Pe)) {
|
|
20764
20764
|
var Ze = O[Pe];
|
|
20765
|
-
if (Ze ===
|
|
20765
|
+
if (Ze === x && (Ze = D(Pe)), typeof Ze > "u" && !Se)
|
|
20766
20766
|
throw new u("intrinsic " + ce + " exists, but is not available. Please file an issue!");
|
|
20767
20767
|
return {
|
|
20768
20768
|
alias: we,
|
|
@@ -20947,7 +20947,7 @@ var lh, l0;
|
|
|
20947
20947
|
function bF() {
|
|
20948
20948
|
if (l0) return lh;
|
|
20949
20949
|
l0 = 1;
|
|
20950
|
-
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, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, m = g ? WeakRef.prototype.deref : null,
|
|
20950
|
+
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, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, g = typeof WeakRef == "function" && WeakRef.prototype, m = g ? WeakRef.prototype.deref : null, w = Boolean.prototype.valueOf, A = Object.prototype.toString, x = Function.prototype.toString, b = String.prototype.match, O = String.prototype.slice, P = String.prototype.replace, D = String.prototype.toUpperCase, L = String.prototype.toLowerCase, V = RegExp.prototype.test, te = Array.prototype.concat, Y = Array.prototype.join, ue = Array.prototype.slice, fe = Math.floor, qe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ge = Object.getOwnPropertySymbols, Ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Le = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Le || !0) ? Symbol.toStringTag : null, Qe = Object.prototype.propertyIsEnumerable, ve = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(W) {
|
|
20951
20951
|
return W.__proto__;
|
|
20952
20952
|
} : null);
|
|
20953
20953
|
function ce(W, H) {
|
|
@@ -21065,7 +21065,7 @@ function bF() {
|
|
|
21065
21065
|
if (K(H))
|
|
21066
21066
|
return pt(rr(qe.call(H)));
|
|
21067
21067
|
if (bt(H))
|
|
21068
|
-
return pt(
|
|
21068
|
+
return pt(w.call(H));
|
|
21069
21069
|
if (dt(H))
|
|
21070
21070
|
return pt(rr(String(H)));
|
|
21071
21071
|
if (typeof window < "u" && H === window)
|
|
@@ -21140,7 +21140,7 @@ function bF() {
|
|
|
21140
21140
|
function G(W) {
|
|
21141
21141
|
if (W.name)
|
|
21142
21142
|
return W.name;
|
|
21143
|
-
var H =
|
|
21143
|
+
var H = b.call(x.call(W), /^function\s*([\w$]+)/);
|
|
21144
21144
|
return H ? H[1] : null;
|
|
21145
21145
|
}
|
|
21146
21146
|
function Te(W, H) {
|
|
@@ -21305,36 +21305,36 @@ var fh, f0;
|
|
|
21305
21305
|
function wF() {
|
|
21306
21306
|
if (f0) return fh;
|
|
21307
21307
|
f0 = 1;
|
|
21308
|
-
var r = ja(), e = mF(), t = bF(), n = Jo(), i = r("%WeakMap%", !0), a = r("%Map%", !0), u = e("WeakMap.prototype.get", !0), c = e("WeakMap.prototype.set", !0), f = e("WeakMap.prototype.has", !0), h = e("Map.prototype.get", !0), d = e("Map.prototype.set", !0), y = e("Map.prototype.has", !0), g = function(
|
|
21309
|
-
for (var O =
|
|
21310
|
-
if (P.key ===
|
|
21308
|
+
var r = ja(), e = mF(), t = bF(), n = Jo(), i = r("%WeakMap%", !0), a = r("%Map%", !0), u = e("WeakMap.prototype.get", !0), c = e("WeakMap.prototype.set", !0), f = e("WeakMap.prototype.has", !0), h = e("Map.prototype.get", !0), d = e("Map.prototype.set", !0), y = e("Map.prototype.has", !0), g = function(x, b) {
|
|
21309
|
+
for (var O = x, P; (P = O.next) !== null; O = P)
|
|
21310
|
+
if (P.key === b)
|
|
21311
21311
|
return O.next = P.next, P.next = /** @type {NonNullable<typeof list.next>} */
|
|
21312
|
-
|
|
21313
|
-
}, m = function(
|
|
21314
|
-
var O = g(
|
|
21312
|
+
x.next, x.next = P, P;
|
|
21313
|
+
}, m = function(x, b) {
|
|
21314
|
+
var O = g(x, b);
|
|
21315
21315
|
return O && O.value;
|
|
21316
|
-
},
|
|
21317
|
-
var P = g(
|
|
21318
|
-
P ? P.value = O :
|
|
21316
|
+
}, w = function(x, b, O) {
|
|
21317
|
+
var P = g(x, b);
|
|
21318
|
+
P ? P.value = O : x.next = /** @type {import('.').ListNode<typeof value>} */
|
|
21319
21319
|
{
|
|
21320
21320
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
21321
|
-
key:
|
|
21322
|
-
next:
|
|
21321
|
+
key: b,
|
|
21322
|
+
next: x.next,
|
|
21323
21323
|
value: O
|
|
21324
21324
|
};
|
|
21325
|
-
}, A = function(
|
|
21326
|
-
return !!g(
|
|
21325
|
+
}, A = function(x, b) {
|
|
21326
|
+
return !!g(x, b);
|
|
21327
21327
|
};
|
|
21328
21328
|
return fh = function() {
|
|
21329
|
-
var
|
|
21329
|
+
var b, O, P, D = {
|
|
21330
21330
|
assert: function(L) {
|
|
21331
21331
|
if (!D.has(L))
|
|
21332
21332
|
throw new n("Side channel does not contain " + t(L));
|
|
21333
21333
|
},
|
|
21334
21334
|
get: function(L) {
|
|
21335
21335
|
if (i && L && (typeof L == "object" || typeof L == "function")) {
|
|
21336
|
-
if (
|
|
21337
|
-
return u(
|
|
21336
|
+
if (b)
|
|
21337
|
+
return u(b, L);
|
|
21338
21338
|
} else if (a) {
|
|
21339
21339
|
if (O)
|
|
21340
21340
|
return h(O, L);
|
|
@@ -21343,8 +21343,8 @@ function wF() {
|
|
|
21343
21343
|
},
|
|
21344
21344
|
has: function(L) {
|
|
21345
21345
|
if (i && L && (typeof L == "object" || typeof L == "function")) {
|
|
21346
|
-
if (
|
|
21347
|
-
return f(
|
|
21346
|
+
if (b)
|
|
21347
|
+
return f(b, L);
|
|
21348
21348
|
} else if (a) {
|
|
21349
21349
|
if (O)
|
|
21350
21350
|
return y(O, L);
|
|
@@ -21353,7 +21353,7 @@ function wF() {
|
|
|
21353
21353
|
return !1;
|
|
21354
21354
|
},
|
|
21355
21355
|
set: function(L, V) {
|
|
21356
|
-
i && L && (typeof L == "object" || typeof L == "function") ? (
|
|
21356
|
+
i && L && (typeof L == "object" || typeof L == "function") ? (b || (b = new i()), c(b, L, V)) : a ? (O || (O = new a()), d(O, L, V)) : (P || (P = { key: {}, next: null }), w(P, L, V));
|
|
21357
21357
|
}
|
|
21358
21358
|
};
|
|
21359
21359
|
return D;
|
|
@@ -21386,53 +21386,53 @@ function V_() {
|
|
|
21386
21386
|
if (d0) return dh;
|
|
21387
21387
|
d0 = 1;
|
|
21388
21388
|
var r = Ep(), e = Object.prototype.hasOwnProperty, t = Array.isArray, n = function() {
|
|
21389
|
-
for (var
|
|
21390
|
-
|
|
21391
|
-
return
|
|
21392
|
-
}(), i = function(
|
|
21393
|
-
for (;
|
|
21394
|
-
var O =
|
|
21389
|
+
for (var x = [], b = 0; b < 256; ++b)
|
|
21390
|
+
x.push("%" + ((b < 16 ? "0" : "") + b.toString(16)).toUpperCase());
|
|
21391
|
+
return x;
|
|
21392
|
+
}(), i = function(b) {
|
|
21393
|
+
for (; b.length > 1; ) {
|
|
21394
|
+
var O = b.pop(), P = O.obj[O.prop];
|
|
21395
21395
|
if (t(P)) {
|
|
21396
21396
|
for (var D = [], L = 0; L < P.length; ++L)
|
|
21397
21397
|
typeof P[L] < "u" && D.push(P[L]);
|
|
21398
21398
|
O.obj[O.prop] = D;
|
|
21399
21399
|
}
|
|
21400
21400
|
}
|
|
21401
|
-
}, a = function(
|
|
21402
|
-
for (var P = O && O.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, D = 0; D <
|
|
21403
|
-
typeof
|
|
21401
|
+
}, a = function(b, O) {
|
|
21402
|
+
for (var P = O && O.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, D = 0; D < b.length; ++D)
|
|
21403
|
+
typeof b[D] < "u" && (P[D] = b[D]);
|
|
21404
21404
|
return P;
|
|
21405
|
-
}, u = function b
|
|
21405
|
+
}, u = function x(b, O, P) {
|
|
21406
21406
|
if (!O)
|
|
21407
|
-
return
|
|
21407
|
+
return b;
|
|
21408
21408
|
if (typeof O != "object") {
|
|
21409
|
-
if (t(
|
|
21410
|
-
|
|
21411
|
-
else if (
|
|
21412
|
-
(P && (P.plainObjects || P.allowPrototypes) || !e.call(Object.prototype, O)) && (
|
|
21409
|
+
if (t(b))
|
|
21410
|
+
b.push(O);
|
|
21411
|
+
else if (b && typeof b == "object")
|
|
21412
|
+
(P && (P.plainObjects || P.allowPrototypes) || !e.call(Object.prototype, O)) && (b[O] = !0);
|
|
21413
21413
|
else
|
|
21414
|
-
return [
|
|
21415
|
-
return
|
|
21416
|
-
}
|
|
21417
|
-
if (!
|
|
21418
|
-
return [
|
|
21419
|
-
var D =
|
|
21420
|
-
return t(
|
|
21421
|
-
if (e.call(
|
|
21422
|
-
var te =
|
|
21423
|
-
te && typeof te == "object" && L && typeof L == "object" ?
|
|
21414
|
+
return [b, O];
|
|
21415
|
+
return b;
|
|
21416
|
+
}
|
|
21417
|
+
if (!b || typeof b != "object")
|
|
21418
|
+
return [b].concat(O);
|
|
21419
|
+
var D = b;
|
|
21420
|
+
return t(b) && !t(O) && (D = a(b, P)), t(b) && t(O) ? (O.forEach(function(L, V) {
|
|
21421
|
+
if (e.call(b, V)) {
|
|
21422
|
+
var te = b[V];
|
|
21423
|
+
te && typeof te == "object" && L && typeof L == "object" ? b[V] = x(te, L, P) : b.push(L);
|
|
21424
21424
|
} else
|
|
21425
|
-
|
|
21426
|
-
}),
|
|
21425
|
+
b[V] = L;
|
|
21426
|
+
}), b) : Object.keys(O).reduce(function(L, V) {
|
|
21427
21427
|
var te = O[V];
|
|
21428
|
-
return e.call(L, V) ? L[V] =
|
|
21428
|
+
return e.call(L, V) ? L[V] = x(L[V], te, P) : L[V] = te, L;
|
|
21429
21429
|
}, D);
|
|
21430
|
-
}, c = function(
|
|
21430
|
+
}, c = function(b, O) {
|
|
21431
21431
|
return Object.keys(O).reduce(function(P, D) {
|
|
21432
21432
|
return P[D] = O[D], P;
|
|
21433
|
-
},
|
|
21434
|
-
}, f = function(
|
|
21435
|
-
var P =
|
|
21433
|
+
}, b);
|
|
21434
|
+
}, f = function(x, b, O) {
|
|
21435
|
+
var P = x.replace(/\+/g, " ");
|
|
21436
21436
|
if (O === "iso-8859-1")
|
|
21437
21437
|
return P.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
21438
21438
|
try {
|
|
@@ -21440,11 +21440,11 @@ function V_() {
|
|
|
21440
21440
|
} catch {
|
|
21441
21441
|
return P;
|
|
21442
21442
|
}
|
|
21443
|
-
}, h = 1024, d = function(
|
|
21444
|
-
if (
|
|
21445
|
-
return
|
|
21446
|
-
var V =
|
|
21447
|
-
if (typeof
|
|
21443
|
+
}, h = 1024, d = function(b, O, P, D, L) {
|
|
21444
|
+
if (b.length === 0)
|
|
21445
|
+
return b;
|
|
21446
|
+
var V = b;
|
|
21447
|
+
if (typeof b == "symbol" ? V = Symbol.prototype.toString.call(b) : typeof b != "string" && (V = String(b)), P === "iso-8859-1")
|
|
21448
21448
|
return escape(V).replace(/%u[0-9a-f]{4}/gi, function(Ne) {
|
|
21449
21449
|
return "%26%23" + parseInt(Ne.slice(2), 16) + "%3B";
|
|
21450
21450
|
});
|
|
@@ -21472,31 +21472,31 @@ function V_() {
|
|
|
21472
21472
|
te += fe.join("");
|
|
21473
21473
|
}
|
|
21474
21474
|
return te;
|
|
21475
|
-
}, y = function(
|
|
21476
|
-
for (var O = [{ obj: { o:
|
|
21475
|
+
}, y = function(b) {
|
|
21476
|
+
for (var O = [{ obj: { o: b }, prop: "o" }], P = [], D = 0; D < O.length; ++D)
|
|
21477
21477
|
for (var L = O[D], V = L.obj[L.prop], te = Object.keys(V), Y = 0; Y < te.length; ++Y) {
|
|
21478
21478
|
var ue = te[Y], fe = V[ue];
|
|
21479
21479
|
typeof fe == "object" && fe !== null && P.indexOf(fe) === -1 && (O.push({ obj: V, prop: ue }), P.push(fe));
|
|
21480
21480
|
}
|
|
21481
|
-
return i(O),
|
|
21482
|
-
}, g = function(
|
|
21483
|
-
return Object.prototype.toString.call(
|
|
21484
|
-
}, m = function(
|
|
21485
|
-
return !
|
|
21486
|
-
},
|
|
21487
|
-
return [].concat(
|
|
21488
|
-
}, A = function(
|
|
21489
|
-
if (t(
|
|
21490
|
-
for (var P = [], D = 0; D <
|
|
21491
|
-
P.push(O(
|
|
21481
|
+
return i(O), b;
|
|
21482
|
+
}, g = function(b) {
|
|
21483
|
+
return Object.prototype.toString.call(b) === "[object RegExp]";
|
|
21484
|
+
}, m = function(b) {
|
|
21485
|
+
return !b || typeof b != "object" ? !1 : !!(b.constructor && b.constructor.isBuffer && b.constructor.isBuffer(b));
|
|
21486
|
+
}, w = function(b, O) {
|
|
21487
|
+
return [].concat(b, O);
|
|
21488
|
+
}, A = function(b, O) {
|
|
21489
|
+
if (t(b)) {
|
|
21490
|
+
for (var P = [], D = 0; D < b.length; D += 1)
|
|
21491
|
+
P.push(O(b[D]));
|
|
21492
21492
|
return P;
|
|
21493
21493
|
}
|
|
21494
|
-
return O(
|
|
21494
|
+
return O(b);
|
|
21495
21495
|
};
|
|
21496
21496
|
return dh = {
|
|
21497
21497
|
arrayToObject: a,
|
|
21498
21498
|
assign: c,
|
|
21499
|
-
combine:
|
|
21499
|
+
combine: w,
|
|
21500
21500
|
compact: y,
|
|
21501
21501
|
decode: f,
|
|
21502
21502
|
encode: d,
|
|
@@ -21511,18 +21511,18 @@ function _F() {
|
|
|
21511
21511
|
if (p0) return ph;
|
|
21512
21512
|
p0 = 1;
|
|
21513
21513
|
var r = wF(), e = V_(), t = Ep(), n = Object.prototype.hasOwnProperty, i = {
|
|
21514
|
-
brackets: function(
|
|
21515
|
-
return
|
|
21514
|
+
brackets: function(x) {
|
|
21515
|
+
return x + "[]";
|
|
21516
21516
|
},
|
|
21517
21517
|
comma: "comma",
|
|
21518
|
-
indices: function(
|
|
21519
|
-
return
|
|
21518
|
+
indices: function(x, b) {
|
|
21519
|
+
return x + "[" + b + "]";
|
|
21520
21520
|
},
|
|
21521
|
-
repeat: function(
|
|
21522
|
-
return
|
|
21521
|
+
repeat: function(x) {
|
|
21522
|
+
return x;
|
|
21523
21523
|
}
|
|
21524
|
-
}, a = Array.isArray, u = Array.prototype.push, c = function(A,
|
|
21525
|
-
u.apply(A, a(
|
|
21524
|
+
}, a = Array.isArray, u = Array.prototype.push, c = function(A, x) {
|
|
21525
|
+
u.apply(A, a(x) ? x : [x]);
|
|
21526
21526
|
}, f = Date.prototype.toISOString, h = t.default, d = {
|
|
21527
21527
|
addQueryPrefix: !1,
|
|
21528
21528
|
allowDots: !1,
|
|
@@ -21539,16 +21539,16 @@ function _F() {
|
|
|
21539
21539
|
formatter: t.formatters[h],
|
|
21540
21540
|
// deprecated
|
|
21541
21541
|
indices: !1,
|
|
21542
|
-
serializeDate: function(
|
|
21543
|
-
return f.call(
|
|
21542
|
+
serializeDate: function(x) {
|
|
21543
|
+
return f.call(x);
|
|
21544
21544
|
},
|
|
21545
21545
|
skipNulls: !1,
|
|
21546
21546
|
strictNullHandling: !1
|
|
21547
|
-
}, y = function(
|
|
21548
|
-
return typeof
|
|
21549
|
-
}, g = {}, m = function A(
|
|
21550
|
-
for (var ce =
|
|
21551
|
-
var Ze = Se.get(
|
|
21547
|
+
}, y = function(x) {
|
|
21548
|
+
return typeof x == "string" || typeof x == "number" || typeof x == "boolean" || typeof x == "symbol" || typeof x == "bigint";
|
|
21549
|
+
}, g = {}, m = function A(x, b, O, P, D, L, V, te, Y, ue, fe, qe, ge, Ne, Le, me, Qe, ve) {
|
|
21550
|
+
for (var ce = x, Se = ve, Pe = 0, we = !1; (Se = Se.get(g)) !== void 0 && !we; ) {
|
|
21551
|
+
var Ze = Se.get(x);
|
|
21552
21552
|
if (Pe += 1, typeof Ze < "u") {
|
|
21553
21553
|
if (Ze === Pe)
|
|
21554
21554
|
throw new RangeError("Cyclic object value");
|
|
@@ -21556,19 +21556,19 @@ function _F() {
|
|
|
21556
21556
|
}
|
|
21557
21557
|
typeof Se.get(g) > "u" && (Pe = 0);
|
|
21558
21558
|
}
|
|
21559
|
-
if (typeof ue == "function" ? ce = ue(
|
|
21559
|
+
if (typeof ue == "function" ? ce = ue(b, ce) : ce instanceof Date ? ce = ge(ce) : O === "comma" && a(ce) && (ce = e.maybeMap(ce, function(X) {
|
|
21560
21560
|
return X instanceof Date ? ge(X) : X;
|
|
21561
21561
|
})), ce === null) {
|
|
21562
21562
|
if (L)
|
|
21563
|
-
return Y && !me ? Y(
|
|
21563
|
+
return Y && !me ? Y(b, d.encoder, Qe, "key", Ne) : b;
|
|
21564
21564
|
ce = "";
|
|
21565
21565
|
}
|
|
21566
21566
|
if (y(ce) || e.isBuffer(ce)) {
|
|
21567
21567
|
if (Y) {
|
|
21568
|
-
var St = me ?
|
|
21568
|
+
var St = me ? b : Y(b, d.encoder, Qe, "key", Ne);
|
|
21569
21569
|
return [Le(St) + "=" + Le(Y(ce, d.encoder, Qe, "value", Ne))];
|
|
21570
21570
|
}
|
|
21571
|
-
return [Le(
|
|
21571
|
+
return [Le(b) + "=" + Le(String(ce))];
|
|
21572
21572
|
}
|
|
21573
21573
|
var lt = [];
|
|
21574
21574
|
if (typeof ce > "u")
|
|
@@ -21582,14 +21582,14 @@ function _F() {
|
|
|
21582
21582
|
var Xe = Object.keys(ce);
|
|
21583
21583
|
At = fe ? Xe.sort(fe) : Xe;
|
|
21584
21584
|
}
|
|
21585
|
-
var Je = te ?
|
|
21585
|
+
var Je = te ? b.replace(/\./g, "%2E") : b, dt = P && a(ce) && ce.length === 1 ? Je + "[]" : Je;
|
|
21586
21586
|
if (D && a(ce) && ce.length === 0)
|
|
21587
21587
|
return dt + "[]";
|
|
21588
21588
|
for (var Ce = 0; Ce < At.length; ++Ce) {
|
|
21589
21589
|
var bt = At[Ce], z = typeof bt == "object" && typeof bt.value < "u" ? bt.value : ce[bt];
|
|
21590
21590
|
if (!(V && z === null)) {
|
|
21591
21591
|
var K = qe && te ? bt.replace(/\./g, "%2E") : bt, B = a(ce) ? typeof O == "function" ? O(dt, K) : dt : dt + (qe ? "." + K : "[" + K + "]");
|
|
21592
|
-
ve.set(
|
|
21592
|
+
ve.set(x, Pe);
|
|
21593
21593
|
var Q = r();
|
|
21594
21594
|
Q.set(g, ve), c(lt, A(
|
|
21595
21595
|
z,
|
|
@@ -21614,64 +21614,64 @@ function _F() {
|
|
|
21614
21614
|
}
|
|
21615
21615
|
}
|
|
21616
21616
|
return lt;
|
|
21617
|
-
},
|
|
21618
|
-
if (!
|
|
21617
|
+
}, w = function(x) {
|
|
21618
|
+
if (!x)
|
|
21619
21619
|
return d;
|
|
21620
|
-
if (typeof
|
|
21620
|
+
if (typeof x.allowEmptyArrays < "u" && typeof x.allowEmptyArrays != "boolean")
|
|
21621
21621
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
21622
|
-
if (typeof
|
|
21622
|
+
if (typeof x.encodeDotInKeys < "u" && typeof x.encodeDotInKeys != "boolean")
|
|
21623
21623
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
21624
|
-
if (
|
|
21624
|
+
if (x.encoder !== null && typeof x.encoder < "u" && typeof x.encoder != "function")
|
|
21625
21625
|
throw new TypeError("Encoder has to be a function.");
|
|
21626
|
-
var
|
|
21627
|
-
if (typeof
|
|
21626
|
+
var b = x.charset || d.charset;
|
|
21627
|
+
if (typeof x.charset < "u" && x.charset !== "utf-8" && x.charset !== "iso-8859-1")
|
|
21628
21628
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
21629
21629
|
var O = t.default;
|
|
21630
|
-
if (typeof
|
|
21631
|
-
if (!n.call(t.formatters,
|
|
21630
|
+
if (typeof x.format < "u") {
|
|
21631
|
+
if (!n.call(t.formatters, x.format))
|
|
21632
21632
|
throw new TypeError("Unknown format option provided.");
|
|
21633
|
-
O =
|
|
21633
|
+
O = x.format;
|
|
21634
21634
|
}
|
|
21635
21635
|
var P = t.formatters[O], D = d.filter;
|
|
21636
|
-
(typeof
|
|
21636
|
+
(typeof x.filter == "function" || a(x.filter)) && (D = x.filter);
|
|
21637
21637
|
var L;
|
|
21638
|
-
if (
|
|
21638
|
+
if (x.arrayFormat in i ? L = x.arrayFormat : "indices" in x ? L = x.indices ? "indices" : "repeat" : L = d.arrayFormat, "commaRoundTrip" in x && typeof x.commaRoundTrip != "boolean")
|
|
21639
21639
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
21640
|
-
var V = typeof
|
|
21640
|
+
var V = typeof x.allowDots > "u" ? x.encodeDotInKeys === !0 ? !0 : d.allowDots : !!x.allowDots;
|
|
21641
21641
|
return {
|
|
21642
|
-
addQueryPrefix: typeof
|
|
21642
|
+
addQueryPrefix: typeof x.addQueryPrefix == "boolean" ? x.addQueryPrefix : d.addQueryPrefix,
|
|
21643
21643
|
allowDots: V,
|
|
21644
|
-
allowEmptyArrays: typeof
|
|
21644
|
+
allowEmptyArrays: typeof x.allowEmptyArrays == "boolean" ? !!x.allowEmptyArrays : d.allowEmptyArrays,
|
|
21645
21645
|
arrayFormat: L,
|
|
21646
|
-
charset:
|
|
21647
|
-
charsetSentinel: typeof
|
|
21648
|
-
commaRoundTrip:
|
|
21649
|
-
delimiter: typeof
|
|
21650
|
-
encode: typeof
|
|
21651
|
-
encodeDotInKeys: typeof
|
|
21652
|
-
encoder: typeof
|
|
21653
|
-
encodeValuesOnly: typeof
|
|
21646
|
+
charset: b,
|
|
21647
|
+
charsetSentinel: typeof x.charsetSentinel == "boolean" ? x.charsetSentinel : d.charsetSentinel,
|
|
21648
|
+
commaRoundTrip: x.commaRoundTrip,
|
|
21649
|
+
delimiter: typeof x.delimiter > "u" ? d.delimiter : x.delimiter,
|
|
21650
|
+
encode: typeof x.encode == "boolean" ? x.encode : d.encode,
|
|
21651
|
+
encodeDotInKeys: typeof x.encodeDotInKeys == "boolean" ? x.encodeDotInKeys : d.encodeDotInKeys,
|
|
21652
|
+
encoder: typeof x.encoder == "function" ? x.encoder : d.encoder,
|
|
21653
|
+
encodeValuesOnly: typeof x.encodeValuesOnly == "boolean" ? x.encodeValuesOnly : d.encodeValuesOnly,
|
|
21654
21654
|
filter: D,
|
|
21655
21655
|
format: O,
|
|
21656
21656
|
formatter: P,
|
|
21657
|
-
serializeDate: typeof
|
|
21658
|
-
skipNulls: typeof
|
|
21659
|
-
sort: typeof
|
|
21660
|
-
strictNullHandling: typeof
|
|
21657
|
+
serializeDate: typeof x.serializeDate == "function" ? x.serializeDate : d.serializeDate,
|
|
21658
|
+
skipNulls: typeof x.skipNulls == "boolean" ? x.skipNulls : d.skipNulls,
|
|
21659
|
+
sort: typeof x.sort == "function" ? x.sort : null,
|
|
21660
|
+
strictNullHandling: typeof x.strictNullHandling == "boolean" ? x.strictNullHandling : d.strictNullHandling
|
|
21661
21661
|
};
|
|
21662
21662
|
};
|
|
21663
|
-
return ph = function(A,
|
|
21664
|
-
var
|
|
21665
|
-
typeof O.filter == "function" ? (D = O.filter,
|
|
21663
|
+
return ph = function(A, x) {
|
|
21664
|
+
var b = A, O = w(x), P, D;
|
|
21665
|
+
typeof O.filter == "function" ? (D = O.filter, b = D("", b)) : a(O.filter) && (D = O.filter, P = D);
|
|
21666
21666
|
var L = [];
|
|
21667
|
-
if (typeof
|
|
21667
|
+
if (typeof b != "object" || b === null)
|
|
21668
21668
|
return "";
|
|
21669
21669
|
var V = i[O.arrayFormat], te = V === "comma" && O.commaRoundTrip;
|
|
21670
|
-
P || (P = Object.keys(
|
|
21670
|
+
P || (P = Object.keys(b)), O.sort && P.sort(O.sort);
|
|
21671
21671
|
for (var Y = r(), ue = 0; ue < P.length; ++ue) {
|
|
21672
21672
|
var fe = P[ue];
|
|
21673
|
-
O.skipNulls &&
|
|
21674
|
-
|
|
21673
|
+
O.skipNulls && b[fe] === null || c(L, m(
|
|
21674
|
+
b[fe],
|
|
21675
21675
|
fe,
|
|
21676
21676
|
V,
|
|
21677
21677
|
te,
|
|
@@ -21721,53 +21721,53 @@ function xF() {
|
|
|
21721
21721
|
strictDepth: !1,
|
|
21722
21722
|
strictNullHandling: !1
|
|
21723
21723
|
}, i = function(g) {
|
|
21724
|
-
return g.replace(/&#(\d+);/g, function(m,
|
|
21725
|
-
return String.fromCharCode(parseInt(
|
|
21724
|
+
return g.replace(/&#(\d+);/g, function(m, w) {
|
|
21725
|
+
return String.fromCharCode(parseInt(w, 10));
|
|
21726
21726
|
});
|
|
21727
21727
|
}, a = function(g, m) {
|
|
21728
21728
|
return g && typeof g == "string" && m.comma && g.indexOf(",") > -1 ? g.split(",") : g;
|
|
21729
|
-
}, u = "utf8=%26%2310003%3B", c = "utf8=%E2%9C%93", f = function(m,
|
|
21730
|
-
var A = { __proto__: null },
|
|
21731
|
-
|
|
21732
|
-
var
|
|
21733
|
-
if (
|
|
21729
|
+
}, u = "utf8=%26%2310003%3B", c = "utf8=%E2%9C%93", f = function(m, w) {
|
|
21730
|
+
var A = { __proto__: null }, x = w.ignoreQueryPrefix ? m.replace(/^\?/, "") : m;
|
|
21731
|
+
x = x.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
21732
|
+
var b = w.parameterLimit === 1 / 0 ? void 0 : w.parameterLimit, O = x.split(w.delimiter, b), P = -1, D, L = w.charset;
|
|
21733
|
+
if (w.charsetSentinel)
|
|
21734
21734
|
for (D = 0; D < O.length; ++D)
|
|
21735
21735
|
O[D].indexOf("utf8=") === 0 && (O[D] === c ? L = "utf-8" : O[D] === u && (L = "iso-8859-1"), P = D, D = O.length);
|
|
21736
21736
|
for (D = 0; D < O.length; ++D)
|
|
21737
21737
|
if (D !== P) {
|
|
21738
21738
|
var V = O[D], te = V.indexOf("]="), Y = te === -1 ? V.indexOf("=") : te + 1, ue, fe;
|
|
21739
|
-
Y === -1 ? (ue =
|
|
21740
|
-
a(V.slice(Y + 1),
|
|
21739
|
+
Y === -1 ? (ue = w.decoder(V, n.decoder, L, "key"), fe = w.strictNullHandling ? null : "") : (ue = w.decoder(V.slice(0, Y), n.decoder, L, "key"), fe = r.maybeMap(
|
|
21740
|
+
a(V.slice(Y + 1), w),
|
|
21741
21741
|
function(ge) {
|
|
21742
|
-
return
|
|
21742
|
+
return w.decoder(ge, n.decoder, L, "value");
|
|
21743
21743
|
}
|
|
21744
|
-
)), fe &&
|
|
21744
|
+
)), fe && w.interpretNumericEntities && L === "iso-8859-1" && (fe = i(fe)), V.indexOf("[]=") > -1 && (fe = t(fe) ? [fe] : fe);
|
|
21745
21745
|
var qe = e.call(A, ue);
|
|
21746
|
-
qe &&
|
|
21746
|
+
qe && w.duplicates === "combine" ? A[ue] = r.combine(A[ue], fe) : (!qe || w.duplicates === "last") && (A[ue] = fe);
|
|
21747
21747
|
}
|
|
21748
21748
|
return A;
|
|
21749
|
-
}, h = function(g, m,
|
|
21750
|
-
for (var
|
|
21751
|
-
var O, P = g[
|
|
21752
|
-
if (P === "[]" &&
|
|
21753
|
-
O =
|
|
21749
|
+
}, h = function(g, m, w, A) {
|
|
21750
|
+
for (var x = A ? m : a(m, w), b = g.length - 1; b >= 0; --b) {
|
|
21751
|
+
var O, P = g[b];
|
|
21752
|
+
if (P === "[]" && w.parseArrays)
|
|
21753
|
+
O = w.allowEmptyArrays && (x === "" || w.strictNullHandling && x === null) ? [] : [].concat(x);
|
|
21754
21754
|
else {
|
|
21755
|
-
O =
|
|
21756
|
-
var D = P.charAt(0) === "[" && P.charAt(P.length - 1) === "]" ? P.slice(1, -1) : P, L =
|
|
21757
|
-
!
|
|
21755
|
+
O = w.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
21756
|
+
var D = P.charAt(0) === "[" && P.charAt(P.length - 1) === "]" ? P.slice(1, -1) : P, L = w.decodeDotInKeys ? D.replace(/%2E/g, ".") : D, V = parseInt(L, 10);
|
|
21757
|
+
!w.parseArrays && L === "" ? O = { 0: x } : !isNaN(V) && P !== L && String(V) === L && V >= 0 && w.parseArrays && V <= w.arrayLimit ? (O = [], O[V] = x) : L !== "__proto__" && (O[L] = x);
|
|
21758
21758
|
}
|
|
21759
|
-
|
|
21759
|
+
x = O;
|
|
21760
21760
|
}
|
|
21761
|
-
return
|
|
21762
|
-
}, d = function(m,
|
|
21761
|
+
return x;
|
|
21762
|
+
}, d = function(m, w, A, x) {
|
|
21763
21763
|
if (m) {
|
|
21764
|
-
var
|
|
21764
|
+
var b = A.allowDots ? m.replace(/\.([^.[]+)/g, "[$1]") : m, O = /(\[[^[\]]*])/, P = /(\[[^[\]]*])/g, D = A.depth > 0 && O.exec(b), L = D ? b.slice(0, D.index) : b, V = [];
|
|
21765
21765
|
if (L) {
|
|
21766
21766
|
if (!A.plainObjects && e.call(Object.prototype, L) && !A.allowPrototypes)
|
|
21767
21767
|
return;
|
|
21768
21768
|
V.push(L);
|
|
21769
21769
|
}
|
|
21770
|
-
for (var te = 0; A.depth > 0 && (D = P.exec(
|
|
21770
|
+
for (var te = 0; A.depth > 0 && (D = P.exec(b)) !== null && te < A.depth; ) {
|
|
21771
21771
|
if (te += 1, !A.plainObjects && e.call(Object.prototype, D[1].slice(1, -1)) && !A.allowPrototypes)
|
|
21772
21772
|
return;
|
|
21773
21773
|
V.push(D[1]);
|
|
@@ -21775,9 +21775,9 @@ function xF() {
|
|
|
21775
21775
|
if (D) {
|
|
21776
21776
|
if (A.strictDepth === !0)
|
|
21777
21777
|
throw new RangeError("Input depth exceeded depth option of " + A.depth + " and strictDepth is true");
|
|
21778
|
-
V.push("[" +
|
|
21778
|
+
V.push("[" + b.slice(D.index) + "]");
|
|
21779
21779
|
}
|
|
21780
|
-
return h(V,
|
|
21780
|
+
return h(V, w, A, x);
|
|
21781
21781
|
}
|
|
21782
21782
|
}, y = function(m) {
|
|
21783
21783
|
if (!m)
|
|
@@ -21790,17 +21790,17 @@ function xF() {
|
|
|
21790
21790
|
throw new TypeError("Decoder has to be a function.");
|
|
21791
21791
|
if (typeof m.charset < "u" && m.charset !== "utf-8" && m.charset !== "iso-8859-1")
|
|
21792
21792
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
21793
|
-
var
|
|
21793
|
+
var w = typeof m.charset > "u" ? n.charset : m.charset, A = typeof m.duplicates > "u" ? n.duplicates : m.duplicates;
|
|
21794
21794
|
if (A !== "combine" && A !== "first" && A !== "last")
|
|
21795
21795
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
21796
|
-
var
|
|
21796
|
+
var x = typeof m.allowDots > "u" ? m.decodeDotInKeys === !0 ? !0 : n.allowDots : !!m.allowDots;
|
|
21797
21797
|
return {
|
|
21798
|
-
allowDots:
|
|
21798
|
+
allowDots: x,
|
|
21799
21799
|
allowEmptyArrays: typeof m.allowEmptyArrays == "boolean" ? !!m.allowEmptyArrays : n.allowEmptyArrays,
|
|
21800
21800
|
allowPrototypes: typeof m.allowPrototypes == "boolean" ? m.allowPrototypes : n.allowPrototypes,
|
|
21801
21801
|
allowSparse: typeof m.allowSparse == "boolean" ? m.allowSparse : n.allowSparse,
|
|
21802
21802
|
arrayLimit: typeof m.arrayLimit == "number" ? m.arrayLimit : n.arrayLimit,
|
|
21803
|
-
charset:
|
|
21803
|
+
charset: w,
|
|
21804
21804
|
charsetSentinel: typeof m.charsetSentinel == "boolean" ? m.charsetSentinel : n.charsetSentinel,
|
|
21805
21805
|
comma: typeof m.comma == "boolean" ? m.comma : n.comma,
|
|
21806
21806
|
decodeDotInKeys: typeof m.decodeDotInKeys == "boolean" ? m.decodeDotInKeys : n.decodeDotInKeys,
|
|
@@ -21819,14 +21819,14 @@ function xF() {
|
|
|
21819
21819
|
};
|
|
21820
21820
|
};
|
|
21821
21821
|
return mh = function(g, m) {
|
|
21822
|
-
var
|
|
21822
|
+
var w = y(m);
|
|
21823
21823
|
if (g === "" || g === null || typeof g > "u")
|
|
21824
|
-
return
|
|
21825
|
-
for (var A = typeof g == "string" ? f(g,
|
|
21826
|
-
var P =
|
|
21827
|
-
|
|
21824
|
+
return w.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
21825
|
+
for (var A = typeof g == "string" ? f(g, w) : g, x = w.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, b = Object.keys(A), O = 0; O < b.length; ++O) {
|
|
21826
|
+
var P = b[O], D = d(P, A[P], w, typeof g == "string");
|
|
21827
|
+
x = r.merge(x, D, w);
|
|
21828
21828
|
}
|
|
21829
|
-
return
|
|
21829
|
+
return w.allowSparse === !0 ? x : r.compact(x);
|
|
21830
21830
|
}, mh;
|
|
21831
21831
|
}
|
|
21832
21832
|
var yh, y0;
|
|
@@ -22017,14 +22017,14 @@ function SF() {
|
|
|
22017
22017
|
field: z
|
|
22018
22018
|
}, [4, G(Te, K, ze, X, $e)];
|
|
22019
22019
|
case 1:
|
|
22020
|
-
return le = be.sent(), z.selectionSet ? le == null ? [2, le] : Array.isArray(le) ? [2,
|
|
22020
|
+
return le = be.sent(), z.selectionSet ? le == null ? [2, le] : Array.isArray(le) ? [2, w(z, le, B)] : [2, g(z.selectionSet, le, B)] : [2, le];
|
|
22021
22021
|
}
|
|
22022
22022
|
});
|
|
22023
22023
|
});
|
|
22024
22024
|
}
|
|
22025
|
-
function
|
|
22025
|
+
function w(z, K, B) {
|
|
22026
22026
|
return Promise.all(K.map(function(Q) {
|
|
22027
|
-
return Q === null ? null : Array.isArray(Q) ?
|
|
22027
|
+
return Q === null ? null : Array.isArray(Q) ? w(z, Q, B) : g(z.selectionSet, Q, B);
|
|
22028
22028
|
}));
|
|
22029
22029
|
}
|
|
22030
22030
|
var A = /* @__PURE__ */ function() {
|
|
@@ -22042,15 +22042,15 @@ function SF() {
|
|
|
22042
22042
|
}
|
|
22043
22043
|
K.prototype = B === null ? Object.create(B) : (Q.prototype = B.prototype, new Q());
|
|
22044
22044
|
};
|
|
22045
|
-
}(),
|
|
22046
|
-
return
|
|
22045
|
+
}(), x = function() {
|
|
22046
|
+
return x = Object.assign || function(z) {
|
|
22047
22047
|
for (var K, B = 1, Q = arguments.length; B < Q; B++) {
|
|
22048
22048
|
K = arguments[B];
|
|
22049
22049
|
for (var X in K) Object.prototype.hasOwnProperty.call(K, X) && (z[X] = K[X]);
|
|
22050
22050
|
}
|
|
22051
22051
|
return z;
|
|
22052
|
-
},
|
|
22053
|
-
},
|
|
22052
|
+
}, x.apply(this, arguments);
|
|
22053
|
+
}, b = function(z, K, B, Q) {
|
|
22054
22054
|
function X(G) {
|
|
22055
22055
|
return G instanceof B ? G : new B(function(Te) {
|
|
22056
22056
|
Te(G);
|
|
@@ -22201,7 +22201,7 @@ function SF() {
|
|
|
22201
22201
|
}
|
|
22202
22202
|
var ue = function(z, K) {
|
|
22203
22203
|
var B = z[K || Xe] || z[Xe];
|
|
22204
|
-
return typeof B == "string" ? { uri: B } :
|
|
22204
|
+
return typeof B == "string" ? { uri: B } : x({ responseTransformer: null }, B);
|
|
22205
22205
|
}, fe = function(z, K, B) {
|
|
22206
22206
|
return B === void 0 || K === void 0 ? z : z.replace(":" + K, B);
|
|
22207
22207
|
}, qe = (
|
|
@@ -22307,13 +22307,13 @@ function SF() {
|
|
|
22307
22307
|
return lt(B, K);
|
|
22308
22308
|
}) : (z.__typename = K, z);
|
|
22309
22309
|
}, At = function(z, K, B, Q, X) {
|
|
22310
|
-
return
|
|
22310
|
+
return b(void 0, void 0, void 0, function() {
|
|
22311
22311
|
var G, Te, ze, $e, le, be, Ke, Et, wt, Gt, pt, Ft, er, Cr, Wt, Qt, Yt, W, H, Ve, Be, Ot, Ye, tr, lr, Rt, zt, jr, qr, rr, an, br, wr, _r, Ar, sr, Wr, kr, xr, Rr, on, Pn, N, se, ye, Ae, je, at, it, et;
|
|
22312
22312
|
return O(this, function(tt) {
|
|
22313
22313
|
switch (tt.label) {
|
|
22314
22314
|
case 0:
|
|
22315
22315
|
if (G = X.directives, Te = X.isLeaf, ze = X.resultKey, $e = Q.exportVariablesByNode, le = $e.get(K) || {}, be = function(_t) {
|
|
22316
|
-
return _t instanceof Array ? _t.forEach(be) : $e.set(_t,
|
|
22316
|
+
return _t instanceof Array ? _t.forEach(be) : $e.set(_t, x({}, le)), _t;
|
|
22317
22317
|
}, Ke = (K || {})[ze], Et = (K || {})[z], K && G && G.export && (le[G.export.as] = Et), wt = G && G.type, !Te && wt) {
|
|
22318
22318
|
if (G.rest)
|
|
22319
22319
|
throw new Error("Invalid use of @type(name: ...) directive on a call that also has @rest(...)");
|
|
@@ -22324,7 +22324,7 @@ function SF() {
|
|
|
22324
22324
|
if (pt = Q.credentials, Ft = Q.endpoints, er = Q.headers, Cr = Q.customFetch, Wt = Q.operationType, Qt = Q.typePatcher, Yt = Q.mainDefinition, W = Q.fragmentDefinitions, H = Q.fieldNameNormalizer, Ve = Q.fieldNameDenormalizer, Be = Q.serializers, Ot = Q.responseTransformer, Ye = i.createFragmentMap(W), tr = G.rest, lr = tr.path, Rt = tr.endpoint, zt = tr.pathBuilder, jr = ue(Ft, Rt), qr = lr == null && zt == null, qr)
|
|
22325
22325
|
throw new Error('One of ("path" | "pathBuilder") must be set in the @rest() directive. This request had neither, please add one');
|
|
22326
22326
|
if (zt || (lr.includes(":") ? (console.warn("Deprecated: '@rest(path:' contains a ':' colon, this format will be removed in future versions"), zt = function(_t) {
|
|
22327
|
-
var
|
|
22327
|
+
var _ = _t.args, I = _t.exportVariables, k = x(x({}, _), I), C = Object.keys(k).reduce(function(F, U) {
|
|
22328
22328
|
return fe(F, U, k[U]);
|
|
22329
22329
|
}, lr);
|
|
22330
22330
|
if (C.includes(":"))
|
|
@@ -22352,7 +22352,7 @@ function SF() {
|
|
|
22352
22352
|
N = xr ? xr(Rr, er) : Be[Je](Rr, er);
|
|
22353
22353
|
Rr = N.body, on = new Headers(N.headers);
|
|
22354
22354
|
}
|
|
22355
|
-
return Ze(wr, Wt || "query"), se =
|
|
22355
|
+
return Ze(wr, Wt || "query"), se = x({ method: wr, headers: on || er, body: Rr }, pt ? { credentials: pt } : {}), ye = "" + jr.uri + an, [4, (Cr || fetch)(ye, se)];
|
|
22356
22356
|
case 1:
|
|
22357
22357
|
return Ae = tt.sent(), Q.responses.push(Ae), Ae.ok ? (Ae.status === 204 || Ae.headers.get("Content-Length") === "0" ? je = {} : je = Ae, [3, 9]) : [3, 2];
|
|
22358
22358
|
case 2:
|
|
@@ -22417,7 +22417,7 @@ function SF() {
|
|
|
22417
22417
|
}
|
|
22418
22418
|
if (pt.endpoints[Xe] == null && console.warn("RestLink configured without a default URI. All @rest(…) directives must provide an endpoint key!"), le == null)
|
|
22419
22419
|
pt.typePatcher = function(Wt, Qt, Yt) {
|
|
22420
|
-
return
|
|
22420
|
+
return x({ __typename: Qt }, Wt);
|
|
22421
22421
|
};
|
|
22422
22422
|
else if (!Array.isArray(le) && typeof le == "object" && Object.keys(le).map(function(Wt) {
|
|
22423
22423
|
return le[Wt];
|
|
@@ -22438,11 +22438,11 @@ function SF() {
|
|
|
22438
22438
|
var Ve = Cr[H] || function(Be) {
|
|
22439
22439
|
return Be;
|
|
22440
22440
|
};
|
|
22441
|
-
return
|
|
22441
|
+
return x({ __typename: H }, Ve(Wt, H, Yt, W));
|
|
22442
22442
|
};
|
|
22443
22443
|
} else
|
|
22444
22444
|
throw new Error("RestLink was configured with a typePatcher of invalid type!");
|
|
22445
|
-
return Et && Et.hasOwnProperty(Je) && console.warn("RestLink was configured to override the default serializer! This may result in unexpected behavior"), pt.responseTransformer = Gt || null, pt.fieldNameNormalizer = ze || null, pt.fieldNameDenormalizer = $e || null, pt.headers = ve(Te), pt.credentials = Ke || null, pt.customFetch = be, pt.serializers =
|
|
22445
|
+
return Et && Et.hasOwnProperty(Je) && console.warn("RestLink was configured to override the default serializer! This may result in unexpected behavior"), pt.responseTransformer = Gt || null, pt.fieldNameNormalizer = ze || null, pt.fieldNameDenormalizer = $e || null, pt.headers = ve(Te), pt.credentials = Ke || null, pt.customFetch = be, pt.serializers = x((Q = {}, Q[Je] = wt || dt, Q), Et || {}), pt.processedDocuments = /* @__PURE__ */ new Map(), pt;
|
|
22446
22446
|
}
|
|
22447
22447
|
return K.prototype.removeRestSetsFromDocument = function(B) {
|
|
22448
22448
|
var Q = this.processedDocuments.get(B);
|
|
@@ -22504,16 +22504,16 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22504
22504
|
t();
|
|
22505
22505
|
return;
|
|
22506
22506
|
}
|
|
22507
|
-
const
|
|
22508
|
-
|
|
22507
|
+
const O = new URLSearchParams(c.search).get("id");
|
|
22508
|
+
O && g(O), a(!0);
|
|
22509
22509
|
}, [c, e]), xk(({ nextLocation: b }) => {
|
|
22510
|
-
var
|
|
22511
|
-
return i ? (
|
|
22510
|
+
var O;
|
|
22511
|
+
return i ? (O = b.state) != null && O.fromParent ? (h(!0), !1) : (m(`${b.pathname}${b.search}`), !0) : !1;
|
|
22512
22512
|
}), vr(() => {
|
|
22513
22513
|
if (!i)
|
|
22514
22514
|
return;
|
|
22515
|
-
const b = (
|
|
22516
|
-
|
|
22515
|
+
const b = (O) => {
|
|
22516
|
+
O.metaKey && O.key === "k" && window.parent.postMessage(
|
|
22517
22517
|
{
|
|
22518
22518
|
type: "open-search",
|
|
22519
22519
|
instanceId: y
|
|
@@ -22527,11 +22527,11 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22527
22527
|
}, [i]), vr(() => {
|
|
22528
22528
|
if (!i)
|
|
22529
22529
|
return;
|
|
22530
|
-
const b = ({ origin:
|
|
22531
|
-
if (
|
|
22532
|
-
switch (
|
|
22530
|
+
const b = ({ origin: O, data: P }) => {
|
|
22531
|
+
if (O === d)
|
|
22532
|
+
switch (P.type) {
|
|
22533
22533
|
case "navigate":
|
|
22534
|
-
u(
|
|
22534
|
+
u(P.path, { replace: !0, state: { fromParent: !0 } });
|
|
22535
22535
|
break;
|
|
22536
22536
|
}
|
|
22537
22537
|
};
|
|
@@ -22554,7 +22554,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22554
22554
|
},
|
|
22555
22555
|
d
|
|
22556
22556
|
);
|
|
22557
|
-
},
|
|
22557
|
+
}, w = (b) => {
|
|
22558
22558
|
f && window.parent.postMessage(
|
|
22559
22559
|
{
|
|
22560
22560
|
type: "set-summary",
|
|
@@ -22563,11 +22563,20 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22563
22563
|
},
|
|
22564
22564
|
d
|
|
22565
22565
|
);
|
|
22566
|
-
}, A =
|
|
22567
|
-
|
|
22568
|
-
|
|
22566
|
+
}, A = (b) => {
|
|
22567
|
+
f && window.parent.postMessage(
|
|
22568
|
+
{
|
|
22569
|
+
type: "toast",
|
|
22570
|
+
instanceId: y,
|
|
22571
|
+
message: b
|
|
22572
|
+
},
|
|
22573
|
+
d
|
|
22574
|
+
);
|
|
22575
|
+
}, x = Ao(
|
|
22576
|
+
() => ({ isEmbedded: i, navigateParent: m, setSummary: w, toast: A }),
|
|
22577
|
+
[i, m, w, A]
|
|
22569
22578
|
);
|
|
22570
|
-
return /* @__PURE__ */ ur.jsx(bp.Provider, { value:
|
|
22579
|
+
return /* @__PURE__ */ ur.jsx(bp.Provider, { value: x, children: c.pathname !== "/mm-embedded-interop" ? n : /* @__PURE__ */ ur.jsx(ur.Fragment, {}) });
|
|
22571
22580
|
}, TF = () => {
|
|
22572
22581
|
const { urls: r, jwtRef: e, accessToken: t } = fi(), { graphQLRoleOverride: n, children: i } = ds(nl), [a, u] = Ut(), [c, f] = Ut(), h = () => {
|
|
22573
22582
|
const g = new URL(r.graphQLUrl);
|
|
@@ -22597,7 +22606,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22597
22606
|
uri: `https:${h()}`,
|
|
22598
22607
|
fetch: window.fetch
|
|
22599
22608
|
})
|
|
22600
|
-
),
|
|
22609
|
+
), x = m.split(
|
|
22601
22610
|
({ query: P }) => {
|
|
22602
22611
|
const D = os(P);
|
|
22603
22612
|
return D.kind === "OperationDefinition" && D.operation === "subscription";
|
|
@@ -22612,7 +22621,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22612
22621
|
})).concat(
|
|
22613
22622
|
new EF.RestLink({ uri: r.apiUrl })
|
|
22614
22623
|
);
|
|
22615
|
-
f(sn.from([O,
|
|
22624
|
+
f(sn.from([O, x]));
|
|
22616
22625
|
}, []), vr(() => {
|
|
22617
22626
|
c && u(
|
|
22618
22627
|
new up({
|
|
@@ -22720,7 +22729,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22720
22729
|
redirect_uri: `${window.location.origin}/authorize/mm/callback`
|
|
22721
22730
|
}), qe = `${d.loginUrl}/oauth/authorize?${fe}`;
|
|
22722
22731
|
window.location = qe;
|
|
22723
|
-
},
|
|
22732
|
+
}, w = async (Y) => {
|
|
22724
22733
|
const ue = ND.parse(window.location.search), fe = ue.code;
|
|
22725
22734
|
if (ue.state !== BD())
|
|
22726
22735
|
throw Error("Oops");
|
|
@@ -22741,7 +22750,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22741
22750
|
g(ge.access_token), jv();
|
|
22742
22751
|
}, A = () => {
|
|
22743
22752
|
g();
|
|
22744
|
-
},
|
|
22753
|
+
}, x = async (Y, ue = {}) => {
|
|
22745
22754
|
ue.headers = {
|
|
22746
22755
|
...ue.headers,
|
|
22747
22756
|
"Content-Type": "application/json",
|
|
@@ -22749,10 +22758,10 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22749
22758
|
};
|
|
22750
22759
|
const fe = await qv(Y, ue);
|
|
22751
22760
|
if (fe.error && fe.error.status === 401)
|
|
22752
|
-
throw await
|
|
22761
|
+
throw await b(), Error("UNAUTHORIZED");
|
|
22753
22762
|
return fe;
|
|
22754
|
-
},
|
|
22755
|
-
await
|
|
22763
|
+
}, b = async () => {
|
|
22764
|
+
await x(`${d.loginUrl}/logout`, {
|
|
22756
22765
|
method: "DELETE"
|
|
22757
22766
|
}), A();
|
|
22758
22767
|
}, [O, P] = Ut(), D = xa(), L = xa();
|
|
@@ -22763,7 +22772,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22763
22772
|
return;
|
|
22764
22773
|
}
|
|
22765
22774
|
try {
|
|
22766
|
-
const Y = await
|
|
22775
|
+
const Y = await x(`${d.apiUrl}/user-token?graphql=1`);
|
|
22767
22776
|
D.current = Y, P(!0);
|
|
22768
22777
|
} catch {
|
|
22769
22778
|
}
|
|
@@ -22777,7 +22786,7 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22777
22786
|
return;
|
|
22778
22787
|
}
|
|
22779
22788
|
try {
|
|
22780
|
-
const Y = await
|
|
22789
|
+
const Y = await x(`${d.apiUrl}/nats-token`);
|
|
22781
22790
|
L.current = Y;
|
|
22782
22791
|
} catch {
|
|
22783
22792
|
}
|
|
@@ -22793,8 +22802,8 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22793
22802
|
natsCredsRef: L,
|
|
22794
22803
|
isAuthenticated: O,
|
|
22795
22804
|
login: m,
|
|
22796
|
-
logout:
|
|
22797
|
-
request:
|
|
22805
|
+
logout: b,
|
|
22806
|
+
request: x,
|
|
22798
22807
|
urls: d
|
|
22799
22808
|
}),
|
|
22800
22809
|
[
|
|
@@ -22803,20 +22812,20 @@ const nl = Fs.createContext(), OF = () => {
|
|
|
22803
22812
|
O,
|
|
22804
22813
|
D,
|
|
22805
22814
|
m,
|
|
22806
|
-
w,
|
|
22807
|
-
L,
|
|
22808
22815
|
b,
|
|
22816
|
+
L,
|
|
22817
|
+
x,
|
|
22809
22818
|
d
|
|
22810
22819
|
]
|
|
22811
22820
|
), te = Ao(
|
|
22812
22821
|
() => ({
|
|
22813
22822
|
children: e,
|
|
22814
22823
|
graphQLRoleOverride: u,
|
|
22815
|
-
authorize:
|
|
22824
|
+
authorize: w,
|
|
22816
22825
|
isEmbedded: f,
|
|
22817
22826
|
setIsEmbedded: h
|
|
22818
22827
|
}),
|
|
22819
|
-
[e, u,
|
|
22828
|
+
[e, u, w, f, h]
|
|
22820
22829
|
);
|
|
22821
22830
|
return /* @__PURE__ */ ur.jsx(A_.Provider, { value: V, children: /* @__PURE__ */ ur.jsx(nl.Provider, { value: te, children: /* @__PURE__ */ ur.jsx(Ok, { router: PF }) }) });
|
|
22822
22831
|
}, In = new Uint8Array(0), Fi = new TextEncoder(), pn = new TextDecoder();
|
|
@@ -23947,8 +23956,8 @@ function HF(r, e, t = !1) {
|
|
|
23947
23956
|
let g = 0, m;
|
|
23948
23957
|
for (let A = 0; A < d; A += 16383)
|
|
23949
23958
|
m = A + 16383, y[g++] = a(u, A, m > d ? d : m);
|
|
23950
|
-
let
|
|
23951
|
-
return h === 1 ? (
|
|
23959
|
+
let w;
|
|
23960
|
+
return h === 1 ? (w = u[d], y[g] = r[w >> 2] + r[w << 4 & 63], t || (y[g] += "==")) : h === 2 && (w = u[d] << 8 | u[d + 1] & 255, y[g] = r[w >> 10] + r[w >> 4 & 63] + r[w << 2 & 63], t || (y[g] += "=")), y.join("");
|
|
23952
23961
|
}
|
|
23953
23962
|
};
|
|
23954
23963
|
}
|
|
@@ -24111,8 +24120,8 @@ class I0 {
|
|
|
24111
24120
|
if (y < 16)
|
|
24112
24121
|
g = d[y];
|
|
24113
24122
|
else {
|
|
24114
|
-
let m = d[y + 1 & 15],
|
|
24115
|
-
g = d[y & 15] = (m >>> 7 ^ m >>> 18 ^ m >>> 3 ^ m << 25 ^ m << 14) + (
|
|
24123
|
+
let m = d[y + 1 & 15], w = d[y + 14 & 15];
|
|
24124
|
+
g = d[y & 15] = (m >>> 7 ^ m >>> 18 ^ m >>> 3 ^ m << 25 ^ m << 14) + (w >>> 17 ^ w >>> 19 ^ w >>> 10 ^ w << 15 ^ w << 13) + d[y & 15] + d[y + 9 & 15] | 0;
|
|
24116
24125
|
}
|
|
24117
24126
|
g = g + h + (u >>> 6 ^ u >>> 11 ^ u >>> 25 ^ u << 26 ^ u << 21 ^ u << 7) + (f ^ u & (c ^ f)) + this._K[y] | 0, h = f, f = c, c = u, u = a + g, a = i, i = n, n = t, t = g + (n & i ^ a & (n ^ i)) + (n >>> 2 ^ n >>> 13 ^ n >>> 22 ^ n << 30 ^ n << 19 ^ n << 10) | 0;
|
|
24118
24127
|
}
|
|
@@ -24374,8 +24383,8 @@ class Ip extends Yo {
|
|
|
24374
24383
|
try {
|
|
24375
24384
|
sl("name", f);
|
|
24376
24385
|
} catch (g) {
|
|
24377
|
-
const m = g.message,
|
|
24378
|
-
throw
|
|
24386
|
+
const m = g.message, w = m.indexOf("cannot contain");
|
|
24387
|
+
throw w !== -1 ? new Error(`consumer 'name' ${m.substring(w)}`) : g;
|
|
24379
24388
|
}
|
|
24380
24389
|
let h, d = "";
|
|
24381
24390
|
if (Array.isArray(t.filter_subjects)) {
|
|
@@ -24440,15 +24449,15 @@ class sM extends Lr {
|
|
|
24440
24449
|
if (i.callback) {
|
|
24441
24450
|
const d = i.callback;
|
|
24442
24451
|
a = (y, g) => {
|
|
24443
|
-
const [m,
|
|
24452
|
+
const [m, w] = this.adapter(y, g);
|
|
24444
24453
|
if (m) {
|
|
24445
24454
|
d(m, null);
|
|
24446
24455
|
return;
|
|
24447
24456
|
}
|
|
24448
|
-
const { ingest: A } = this.ingestionFilterFn ? this.ingestionFilterFn(
|
|
24457
|
+
const { ingest: A } = this.ingestionFilterFn ? this.ingestionFilterFn(w, this) : {
|
|
24449
24458
|
ingest: !0
|
|
24450
24459
|
};
|
|
24451
|
-
A && (!this.protocolFilterFn || this.protocolFilterFn(
|
|
24460
|
+
A && (!this.protocolFilterFn || this.protocolFilterFn(w)) && (d(m, w), this.dispatchedFn && w && this.dispatchedFn(w));
|
|
24452
24461
|
};
|
|
24453
24462
|
}
|
|
24454
24463
|
const { max: u, queue: c, timeout: f } = i, h = {
|
|
@@ -25515,11 +25524,11 @@ var xe;
|
|
|
25515
25524
|
r[r.CR = 13] = "CR", r[r.E = 69] = "E", r[r.e = 101] = "e", r[r.F = 70] = "F", r[r.f = 102] = "f", r[r.G = 71] = "G", r[r.g = 103] = "g", r[r.H = 72] = "H", r[r.h = 104] = "h", r[r.I = 73] = "I", r[r.i = 105] = "i", r[r.K = 75] = "K", r[r.k = 107] = "k", r[r.M = 77] = "M", r[r.m = 109] = "m", r[r.MINUS = 45] = "MINUS", r[r.N = 78] = "N", r[r.n = 110] = "n", r[r.NL = 10] = "NL", r[r.O = 79] = "O", r[r.o = 111] = "o", r[r.P = 80] = "P", r[r.p = 112] = "p", r[r.PLUS = 43] = "PLUS", r[r.R = 82] = "R", r[r.r = 114] = "r", r[r.S = 83] = "S", r[r.s = 115] = "s", r[r.SPACE = 32] = "SPACE", r[r.TAB = 9] = "TAB";
|
|
25516
25525
|
})(xe || (xe = {}));
|
|
25517
25526
|
(function(r) {
|
|
25518
|
-
var e = function(
|
|
25519
|
-
this.hi =
|
|
25520
|
-
}, t = function(
|
|
25527
|
+
var e = function(_, I) {
|
|
25528
|
+
this.hi = _ | 0, this.lo = I | 0;
|
|
25529
|
+
}, t = function(_) {
|
|
25521
25530
|
var I, k = new Float64Array(16);
|
|
25522
|
-
if (
|
|
25531
|
+
if (_) for (I = 0; I < _.length; I++) k[I] = _[I];
|
|
25523
25532
|
return k;
|
|
25524
25533
|
}, n = function() {
|
|
25525
25534
|
throw new Error("no PRNG");
|
|
@@ -25616,37 +25625,37 @@ var xe;
|
|
|
25616
25625
|
9344,
|
|
25617
25626
|
11139
|
|
25618
25627
|
]);
|
|
25619
|
-
function _
|
|
25620
|
-
return
|
|
25628
|
+
function w(_, I) {
|
|
25629
|
+
return _ << I | _ >>> 32 - I;
|
|
25621
25630
|
}
|
|
25622
|
-
function A(
|
|
25623
|
-
var k =
|
|
25624
|
-
return k = k << 8 |
|
|
25631
|
+
function A(_, I) {
|
|
25632
|
+
var k = _[I + 3] & 255;
|
|
25633
|
+
return k = k << 8 | _[I + 2] & 255, k = k << 8 | _[I + 1] & 255, k << 8 | _[I + 0] & 255;
|
|
25625
25634
|
}
|
|
25626
|
-
function
|
|
25627
|
-
var k =
|
|
25635
|
+
function x(_, I) {
|
|
25636
|
+
var k = _[I] << 24 | _[I + 1] << 16 | _[I + 2] << 8 | _[I + 3], C = _[I + 4] << 24 | _[I + 5] << 16 | _[I + 6] << 8 | _[I + 7];
|
|
25628
25637
|
return new e(k, C);
|
|
25629
25638
|
}
|
|
25630
|
-
function
|
|
25639
|
+
function b(_, I, k) {
|
|
25631
25640
|
var C;
|
|
25632
25641
|
for (C = 0; C < 4; C++)
|
|
25633
|
-
|
|
25642
|
+
_[I + C] = k & 255, k >>>= 8;
|
|
25634
25643
|
}
|
|
25635
|
-
function O(
|
|
25636
|
-
|
|
25644
|
+
function O(_, I, k) {
|
|
25645
|
+
_[I] = k.hi >> 24 & 255, _[I + 1] = k.hi >> 16 & 255, _[I + 2] = k.hi >> 8 & 255, _[I + 3] = k.hi & 255, _[I + 4] = k.lo >> 24 & 255, _[I + 5] = k.lo >> 16 & 255, _[I + 6] = k.lo >> 8 & 255, _[I + 7] = k.lo & 255;
|
|
25637
25646
|
}
|
|
25638
|
-
function P(
|
|
25647
|
+
function P(_, I, k, C, F) {
|
|
25639
25648
|
var U, ne = 0;
|
|
25640
|
-
for (U = 0; U < F; U++) ne |=
|
|
25649
|
+
for (U = 0; U < F; U++) ne |= _[I + U] ^ k[C + U];
|
|
25641
25650
|
return (1 & ne - 1 >>> 8) - 1;
|
|
25642
25651
|
}
|
|
25643
|
-
function D(
|
|
25644
|
-
return P(
|
|
25652
|
+
function D(_, I, k, C) {
|
|
25653
|
+
return P(_, I, k, C, 16);
|
|
25645
25654
|
}
|
|
25646
|
-
function L(
|
|
25647
|
-
return P(
|
|
25655
|
+
function L(_, I, k, C) {
|
|
25656
|
+
return P(_, I, k, C, 32);
|
|
25648
25657
|
}
|
|
25649
|
-
function V(
|
|
25658
|
+
function V(_, I, k, C, F) {
|
|
25650
25659
|
var U = new Uint32Array(16), ne = new Uint32Array(16), he = new Uint32Array(16), J = new Uint32Array(4), re, De, mt;
|
|
25651
25660
|
for (re = 0; re < 4; re++)
|
|
25652
25661
|
ne[5 * re] = A(C, 4 * re), ne[1 + re] = A(k, 4 * re), ne[6 + re] = A(I, 4 * re), ne[11 + re] = A(k, 16 + 4 * re);
|
|
@@ -25654,7 +25663,7 @@ var xe;
|
|
|
25654
25663
|
for (re = 0; re < 20; re++) {
|
|
25655
25664
|
for (De = 0; De < 4; De++) {
|
|
25656
25665
|
for (mt = 0; mt < 4; mt++) J[mt] = ne[(5 * De + 4 * mt) % 16];
|
|
25657
|
-
for (J[1] ^=
|
|
25666
|
+
for (J[1] ^= w(J[0] + J[3] | 0, 7), J[2] ^= w(J[1] + J[0] | 0, 9), J[3] ^= w(J[2] + J[1] | 0, 13), J[0] ^= w(J[3] + J[2] | 0, 18), mt = 0; mt < 4; mt++) U[4 * De + (De + mt) % 4] = J[mt];
|
|
25658
25667
|
}
|
|
25659
25668
|
for (mt = 0; mt < 16; mt++) ne[mt] = U[mt];
|
|
25660
25669
|
}
|
|
@@ -25663,15 +25672,15 @@ var xe;
|
|
|
25663
25672
|
for (re = 0; re < 4; re++)
|
|
25664
25673
|
ne[5 * re] = ne[5 * re] - A(C, 4 * re) | 0, ne[6 + re] = ne[6 + re] - A(I, 4 * re) | 0;
|
|
25665
25674
|
for (re = 0; re < 4; re++)
|
|
25666
|
-
|
|
25675
|
+
b(_, 4 * re, ne[5 * re]), b(_, 16 + 4 * re, ne[6 + re]);
|
|
25667
25676
|
} else
|
|
25668
|
-
for (re = 0; re < 16; re++)
|
|
25677
|
+
for (re = 0; re < 16; re++) b(_, 4 * re, ne[re] + he[re] | 0);
|
|
25669
25678
|
}
|
|
25670
|
-
function te(
|
|
25671
|
-
return V(
|
|
25679
|
+
function te(_, I, k, C) {
|
|
25680
|
+
return V(_, I, k, C, !1), 0;
|
|
25672
25681
|
}
|
|
25673
|
-
function Y(
|
|
25674
|
-
return V(
|
|
25682
|
+
function Y(_, I, k, C) {
|
|
25683
|
+
return V(_, I, k, C, !0), 0;
|
|
25675
25684
|
}
|
|
25676
25685
|
var ue = new Uint8Array([
|
|
25677
25686
|
101,
|
|
@@ -25691,36 +25700,36 @@ var xe;
|
|
|
25691
25700
|
32,
|
|
25692
25701
|
107
|
|
25693
25702
|
]);
|
|
25694
|
-
function fe(
|
|
25703
|
+
function fe(_, I, k, C, F, U, ne) {
|
|
25695
25704
|
var he = new Uint8Array(16), J = new Uint8Array(64), re, De;
|
|
25696
25705
|
if (!F) return 0;
|
|
25697
25706
|
for (De = 0; De < 16; De++) he[De] = 0;
|
|
25698
25707
|
for (De = 0; De < 8; De++) he[De] = U[De];
|
|
25699
25708
|
for (; F >= 64; ) {
|
|
25700
|
-
for (te(J, he, ne, ue), De = 0; De < 64; De++)
|
|
25709
|
+
for (te(J, he, ne, ue), De = 0; De < 64; De++) _[I + De] = (k ? k[C + De] : 0) ^ J[De];
|
|
25701
25710
|
for (re = 1, De = 8; De < 16; De++)
|
|
25702
25711
|
re = re + (he[De] & 255) | 0, he[De] = re & 255, re >>>= 8;
|
|
25703
25712
|
F -= 64, I += 64, k && (C += 64);
|
|
25704
25713
|
}
|
|
25705
25714
|
if (F > 0)
|
|
25706
|
-
for (te(J, he, ne, ue), De = 0; De < F; De++)
|
|
25715
|
+
for (te(J, he, ne, ue), De = 0; De < F; De++) _[I + De] = (k ? k[C + De] : 0) ^ J[De];
|
|
25707
25716
|
return 0;
|
|
25708
25717
|
}
|
|
25709
|
-
function qe(
|
|
25710
|
-
return fe(
|
|
25718
|
+
function qe(_, I, k, C, F) {
|
|
25719
|
+
return fe(_, I, null, 0, k, C, F);
|
|
25711
25720
|
}
|
|
25712
|
-
function ge(
|
|
25721
|
+
function ge(_, I, k, C, F) {
|
|
25713
25722
|
var U = new Uint8Array(32);
|
|
25714
|
-
return Y(U, C, F, ue), qe(
|
|
25723
|
+
return Y(U, C, F, ue), qe(_, I, k, C.subarray(16), U);
|
|
25715
25724
|
}
|
|
25716
|
-
function Ne(
|
|
25725
|
+
function Ne(_, I, k, C, F, U, ne) {
|
|
25717
25726
|
var he = new Uint8Array(32);
|
|
25718
|
-
return Y(he, U, ne, ue), fe(
|
|
25727
|
+
return Y(he, U, ne, ue), fe(_, I, k, C, F, U.subarray(16), he);
|
|
25719
25728
|
}
|
|
25720
|
-
function Le(
|
|
25729
|
+
function Le(_, I) {
|
|
25721
25730
|
var k, C = 0;
|
|
25722
25731
|
for (k = 0; k < 17; k++)
|
|
25723
|
-
C = C + (
|
|
25732
|
+
C = C + (_[k] + I[k] | 0) | 0, _[k] = C & 255, C >>>= 8;
|
|
25724
25733
|
}
|
|
25725
25734
|
var me = new Uint32Array([
|
|
25726
25735
|
5,
|
|
@@ -25741,7 +25750,7 @@ var xe;
|
|
|
25741
25750
|
0,
|
|
25742
25751
|
252
|
|
25743
25752
|
]);
|
|
25744
|
-
function Qe(
|
|
25753
|
+
function Qe(_, I, k, C, F, U) {
|
|
25745
25754
|
var ne, he, J, re, De = new Uint32Array(17), mt = new Uint32Array(17), Kt = new Uint32Array(17), mn = new Uint32Array(17), hi = new Uint32Array(17);
|
|
25746
25755
|
for (J = 0; J < 17; J++) mt[J] = Kt[J] = 0;
|
|
25747
25756
|
for (J = 0; J < 16; J++) mt[J] = U[J];
|
|
@@ -25760,39 +25769,39 @@ var xe;
|
|
|
25760
25769
|
for (J = 0; J < 17; J++) hi[J] = Kt[J];
|
|
25761
25770
|
for (Le(Kt, me), ne = -(Kt[16] >>> 7) | 0, J = 0; J < 17; J++) Kt[J] ^= ne & (hi[J] ^ Kt[J]);
|
|
25762
25771
|
for (J = 0; J < 16; J++) mn[J] = U[J + 16];
|
|
25763
|
-
for (mn[16] = 0, Le(Kt, mn), J = 0; J < 16; J++)
|
|
25772
|
+
for (mn[16] = 0, Le(Kt, mn), J = 0; J < 16; J++) _[I + J] = Kt[J];
|
|
25764
25773
|
return 0;
|
|
25765
25774
|
}
|
|
25766
|
-
function ve(
|
|
25775
|
+
function ve(_, I, k, C, F, U) {
|
|
25767
25776
|
var ne = new Uint8Array(16);
|
|
25768
|
-
return Qe(ne, 0, k, C, F, U), D(
|
|
25777
|
+
return Qe(ne, 0, k, C, F, U), D(_, I, ne, 0);
|
|
25769
25778
|
}
|
|
25770
|
-
function ce(
|
|
25779
|
+
function ce(_, I, k, C, F) {
|
|
25771
25780
|
var U;
|
|
25772
25781
|
if (k < 32) return -1;
|
|
25773
|
-
for (Ne(
|
|
25782
|
+
for (Ne(_, 0, I, 0, k, C, F), Qe(_, 16, _, 32, k - 32, _), U = 0; U < 16; U++) _[U] = 0;
|
|
25774
25783
|
return 0;
|
|
25775
25784
|
}
|
|
25776
|
-
function Se(
|
|
25785
|
+
function Se(_, I, k, C, F) {
|
|
25777
25786
|
var U, ne = new Uint8Array(32);
|
|
25778
25787
|
if (k < 32 || (ge(ne, 0, 32, C, F), ve(I, 16, I, 32, k - 32, ne) !== 0)) return -1;
|
|
25779
|
-
for (Ne(
|
|
25788
|
+
for (Ne(_, 0, I, 0, k, C, F), U = 0; U < 32; U++) _[U] = 0;
|
|
25780
25789
|
return 0;
|
|
25781
25790
|
}
|
|
25782
|
-
function Pe(
|
|
25791
|
+
function Pe(_, I) {
|
|
25783
25792
|
var k;
|
|
25784
|
-
for (k = 0; k < 16; k++)
|
|
25793
|
+
for (k = 0; k < 16; k++) _[k] = I[k] | 0;
|
|
25785
25794
|
}
|
|
25786
|
-
function we(
|
|
25795
|
+
function we(_) {
|
|
25787
25796
|
var I, k;
|
|
25788
25797
|
for (k = 0; k < 16; k++)
|
|
25789
|
-
|
|
25798
|
+
_[k] += 65536, I = Math.floor(_[k] / 65536), _[(k + 1) * (k < 15 ? 1 : 0)] += I - 1 + 37 * (I - 1) * (k === 15 ? 1 : 0), _[k] -= I * 65536;
|
|
25790
25799
|
}
|
|
25791
|
-
function Ze(
|
|
25800
|
+
function Ze(_, I, k) {
|
|
25792
25801
|
for (var C, F = ~(k - 1), U = 0; U < 16; U++)
|
|
25793
|
-
C = F & (
|
|
25802
|
+
C = F & (_[U] ^ I[U]), _[U] ^= C, I[U] ^= C;
|
|
25794
25803
|
}
|
|
25795
|
-
function St(
|
|
25804
|
+
function St(_, I) {
|
|
25796
25805
|
var k, C, F, U = t(), ne = t();
|
|
25797
25806
|
for (k = 0; k < 16; k++) ne[k] = I[k];
|
|
25798
25807
|
for (we(ne), we(ne), we(ne), C = 0; C < 2; C++) {
|
|
@@ -25801,30 +25810,30 @@ var xe;
|
|
|
25801
25810
|
U[15] = ne[15] - 32767 - (U[14] >> 16 & 1), F = U[15] >> 16 & 1, U[14] &= 65535, Ze(ne, U, 1 - F);
|
|
25802
25811
|
}
|
|
25803
25812
|
for (k = 0; k < 16; k++)
|
|
25804
|
-
|
|
25813
|
+
_[2 * k] = ne[k] & 255, _[2 * k + 1] = ne[k] >> 8;
|
|
25805
25814
|
}
|
|
25806
|
-
function lt(
|
|
25815
|
+
function lt(_, I) {
|
|
25807
25816
|
var k = new Uint8Array(32), C = new Uint8Array(32);
|
|
25808
|
-
return St(k,
|
|
25817
|
+
return St(k, _), St(C, I), L(k, 0, C, 0);
|
|
25809
25818
|
}
|
|
25810
|
-
function At(
|
|
25819
|
+
function At(_) {
|
|
25811
25820
|
var I = new Uint8Array(32);
|
|
25812
|
-
return St(I,
|
|
25821
|
+
return St(I, _), I[0] & 1;
|
|
25813
25822
|
}
|
|
25814
|
-
function Xe(
|
|
25823
|
+
function Xe(_, I) {
|
|
25815
25824
|
var k;
|
|
25816
|
-
for (k = 0; k < 16; k++)
|
|
25817
|
-
|
|
25825
|
+
for (k = 0; k < 16; k++) _[k] = I[2 * k] + (I[2 * k + 1] << 8);
|
|
25826
|
+
_[15] &= 32767;
|
|
25818
25827
|
}
|
|
25819
|
-
function Je(
|
|
25828
|
+
function Je(_, I, k) {
|
|
25820
25829
|
var C;
|
|
25821
|
-
for (C = 0; C < 16; C++)
|
|
25830
|
+
for (C = 0; C < 16; C++) _[C] = I[C] + k[C] | 0;
|
|
25822
25831
|
}
|
|
25823
|
-
function dt(
|
|
25832
|
+
function dt(_, I, k) {
|
|
25824
25833
|
var C;
|
|
25825
|
-
for (C = 0; C < 16; C++)
|
|
25834
|
+
for (C = 0; C < 16; C++) _[C] = I[C] - k[C] | 0;
|
|
25826
25835
|
}
|
|
25827
|
-
function Ce(
|
|
25836
|
+
function Ce(_, I, k) {
|
|
25828
25837
|
var C, F, U = new Float64Array(31);
|
|
25829
25838
|
for (C = 0; C < 31; C++) U[C] = 0;
|
|
25830
25839
|
for (C = 0; C < 16; C++)
|
|
@@ -25832,27 +25841,27 @@ var xe;
|
|
|
25832
25841
|
U[C + F] += I[C] * k[F];
|
|
25833
25842
|
for (C = 0; C < 15; C++)
|
|
25834
25843
|
U[C] += 38 * U[C + 16];
|
|
25835
|
-
for (C = 0; C < 16; C++)
|
|
25836
|
-
we(
|
|
25844
|
+
for (C = 0; C < 16; C++) _[C] = U[C];
|
|
25845
|
+
we(_), we(_);
|
|
25837
25846
|
}
|
|
25838
|
-
function bt(
|
|
25839
|
-
Ce(
|
|
25847
|
+
function bt(_, I) {
|
|
25848
|
+
Ce(_, I, I);
|
|
25840
25849
|
}
|
|
25841
|
-
function z(
|
|
25850
|
+
function z(_, I) {
|
|
25842
25851
|
var k = t(), C;
|
|
25843
25852
|
for (C = 0; C < 16; C++) k[C] = I[C];
|
|
25844
25853
|
for (C = 253; C >= 0; C--)
|
|
25845
25854
|
bt(k, k), C !== 2 && C !== 4 && Ce(k, k, I);
|
|
25846
|
-
for (C = 0; C < 16; C++)
|
|
25855
|
+
for (C = 0; C < 16; C++) _[C] = k[C];
|
|
25847
25856
|
}
|
|
25848
|
-
function K(
|
|
25857
|
+
function K(_, I) {
|
|
25849
25858
|
var k = t(), C;
|
|
25850
25859
|
for (C = 0; C < 16; C++) k[C] = I[C];
|
|
25851
25860
|
for (C = 250; C >= 0; C--)
|
|
25852
25861
|
bt(k, k), C !== 1 && Ce(k, k, I);
|
|
25853
|
-
for (C = 0; C < 16; C++)
|
|
25862
|
+
for (C = 0; C < 16; C++) _[C] = k[C];
|
|
25854
25863
|
}
|
|
25855
|
-
function B(
|
|
25864
|
+
function B(_, I, k) {
|
|
25856
25865
|
var C = new Uint8Array(32), F = new Float64Array(80), U, ne, he = t(), J = t(), re = t(), De = t(), mt = t(), Kt = t();
|
|
25857
25866
|
for (ne = 0; ne < 31; ne++) C[ne] = I[ne];
|
|
25858
25867
|
for (C[31] = I[31] & 127 | 64, C[0] &= 248, Xe(F, k), ne = 0; ne < 16; ne++)
|
|
@@ -25862,65 +25871,65 @@ var xe;
|
|
|
25862
25871
|
for (ne = 0; ne < 16; ne++)
|
|
25863
25872
|
F[ne + 16] = he[ne], F[ne + 32] = re[ne], F[ne + 48] = J[ne], F[ne + 64] = De[ne];
|
|
25864
25873
|
var mn = F.subarray(32), hi = F.subarray(16);
|
|
25865
|
-
return z(mn, mn), Ce(hi, hi, mn), St(
|
|
25874
|
+
return z(mn, mn), Ce(hi, hi, mn), St(_, hi), 0;
|
|
25866
25875
|
}
|
|
25867
|
-
function Q(
|
|
25868
|
-
return B(
|
|
25876
|
+
function Q(_, I) {
|
|
25877
|
+
return B(_, I, a);
|
|
25869
25878
|
}
|
|
25870
|
-
function X(
|
|
25871
|
-
return n(I, 32), Q(
|
|
25879
|
+
function X(_, I) {
|
|
25880
|
+
return n(I, 32), Q(_, I);
|
|
25872
25881
|
}
|
|
25873
|
-
function G(
|
|
25882
|
+
function G(_, I, k) {
|
|
25874
25883
|
var C = new Uint8Array(32);
|
|
25875
|
-
return B(C, k, I), Y(
|
|
25884
|
+
return B(C, k, I), Y(_, i, C, ue);
|
|
25876
25885
|
}
|
|
25877
25886
|
var Te = ce, ze = Se;
|
|
25878
|
-
function $e(
|
|
25887
|
+
function $e(_, I, k, C, F, U) {
|
|
25879
25888
|
var ne = new Uint8Array(32);
|
|
25880
|
-
return G(ne, F, U), Te(
|
|
25889
|
+
return G(ne, F, U), Te(_, I, k, C, ne);
|
|
25881
25890
|
}
|
|
25882
|
-
function le(
|
|
25891
|
+
function le(_, I, k, C, F, U) {
|
|
25883
25892
|
var ne = new Uint8Array(32);
|
|
25884
|
-
return G(ne, F, U), ze(
|
|
25893
|
+
return G(ne, F, U), ze(_, I, k, C, ne);
|
|
25885
25894
|
}
|
|
25886
25895
|
function be() {
|
|
25887
|
-
var
|
|
25896
|
+
var _ = 0, I = 0, k = 0, C = 0, F = 65535, U, ne, he;
|
|
25888
25897
|
for (he = 0; he < arguments.length; he++)
|
|
25889
|
-
U = arguments[he].lo, ne = arguments[he].hi,
|
|
25890
|
-
return I +=
|
|
25898
|
+
U = arguments[he].lo, ne = arguments[he].hi, _ += U & F, I += U >>> 16, k += ne & F, C += ne >>> 16;
|
|
25899
|
+
return I += _ >>> 16, k += I >>> 16, C += k >>> 16, new e(k & F | C << 16, _ & F | I << 16);
|
|
25891
25900
|
}
|
|
25892
|
-
function Ke(
|
|
25893
|
-
return new e(
|
|
25901
|
+
function Ke(_, I) {
|
|
25902
|
+
return new e(_.hi >>> I, _.lo >>> I | _.hi << 32 - I);
|
|
25894
25903
|
}
|
|
25895
25904
|
function Et() {
|
|
25896
|
-
var
|
|
25905
|
+
var _ = 0, I = 0, k;
|
|
25897
25906
|
for (k = 0; k < arguments.length; k++)
|
|
25898
|
-
|
|
25899
|
-
return new e(I,
|
|
25907
|
+
_ ^= arguments[k].lo, I ^= arguments[k].hi;
|
|
25908
|
+
return new e(I, _);
|
|
25900
25909
|
}
|
|
25901
|
-
function wt(
|
|
25910
|
+
function wt(_, I) {
|
|
25902
25911
|
var k, C, F = 32 - I;
|
|
25903
|
-
return I < 32 ? (k =
|
|
25912
|
+
return I < 32 ? (k = _.hi >>> I | _.lo << F, C = _.lo >>> I | _.hi << F) : I < 64 && (k = _.lo >>> I | _.hi << F, C = _.hi >>> I | _.lo << F), new e(k, C);
|
|
25904
25913
|
}
|
|
25905
|
-
function Gt(
|
|
25906
|
-
var C =
|
|
25914
|
+
function Gt(_, I, k) {
|
|
25915
|
+
var C = _.hi & I.hi ^ ~_.hi & k.hi, F = _.lo & I.lo ^ ~_.lo & k.lo;
|
|
25907
25916
|
return new e(C, F);
|
|
25908
25917
|
}
|
|
25909
|
-
function pt(
|
|
25910
|
-
var C =
|
|
25918
|
+
function pt(_, I, k) {
|
|
25919
|
+
var C = _.hi & I.hi ^ _.hi & k.hi ^ I.hi & k.hi, F = _.lo & I.lo ^ _.lo & k.lo ^ I.lo & k.lo;
|
|
25911
25920
|
return new e(C, F);
|
|
25912
25921
|
}
|
|
25913
|
-
function Ft(
|
|
25914
|
-
return Et(wt(
|
|
25922
|
+
function Ft(_) {
|
|
25923
|
+
return Et(wt(_, 28), wt(_, 34), wt(_, 39));
|
|
25915
25924
|
}
|
|
25916
|
-
function er(
|
|
25917
|
-
return Et(wt(
|
|
25925
|
+
function er(_) {
|
|
25926
|
+
return Et(wt(_, 14), wt(_, 18), wt(_, 41));
|
|
25918
25927
|
}
|
|
25919
|
-
function Cr(
|
|
25920
|
-
return Et(wt(
|
|
25928
|
+
function Cr(_) {
|
|
25929
|
+
return Et(wt(_, 1), wt(_, 8), Ke(_, 7));
|
|
25921
25930
|
}
|
|
25922
|
-
function Wt(
|
|
25923
|
-
return Et(wt(
|
|
25931
|
+
function Wt(_) {
|
|
25932
|
+
return Et(wt(_, 19), wt(_, 61), Ke(_, 6));
|
|
25924
25933
|
}
|
|
25925
25934
|
var Qt = [
|
|
25926
25935
|
new e(1116352408, 3609767458),
|
|
@@ -26004,11 +26013,11 @@ var xe;
|
|
|
26004
26013
|
new e(1607167915, 987167468),
|
|
26005
26014
|
new e(1816402316, 1246189591)
|
|
26006
26015
|
];
|
|
26007
|
-
function Yt(
|
|
26016
|
+
function Yt(_, I, k) {
|
|
26008
26017
|
var C = [], F = [], U = [], ne = [], he, J, re;
|
|
26009
|
-
for (J = 0; J < 8; J++) C[J] = U[J] =
|
|
26018
|
+
for (J = 0; J < 8; J++) C[J] = U[J] = x(_, 8 * J);
|
|
26010
26019
|
for (var De = 0; k >= 128; ) {
|
|
26011
|
-
for (J = 0; J < 16; J++) ne[J] =
|
|
26020
|
+
for (J = 0; J < 16; J++) ne[J] = x(I, 8 * J + De);
|
|
26012
26021
|
for (J = 0; J < 80; J++) {
|
|
26013
26022
|
for (re = 0; re < 8; re++) F[re] = U[re];
|
|
26014
26023
|
for (he = be(U[7], er(U[4]), Gt(U[4], U[5], U[6]), Qt[J], ne[J % 16]), F[7] = be(he, Ft(U[0]), pt(U[0], U[1], U[2])), F[3] = be(F[3], he), re = 0; re < 8; re++) U[(re + 1) % 8] = F[re];
|
|
@@ -26020,7 +26029,7 @@ var xe;
|
|
|
26020
26029
|
U[J] = be(U[J], C[J]), C[J] = U[J];
|
|
26021
26030
|
De += 128, k -= 128;
|
|
26022
26031
|
}
|
|
26023
|
-
for (J = 0; J < 8; J++) O(
|
|
26032
|
+
for (J = 0; J < 8; J++) O(_, 8 * J, C[J]);
|
|
26024
26033
|
return k;
|
|
26025
26034
|
}
|
|
26026
26035
|
var W = new Uint8Array([
|
|
@@ -26089,49 +26098,49 @@ var xe;
|
|
|
26089
26098
|
33,
|
|
26090
26099
|
121
|
|
26091
26100
|
]);
|
|
26092
|
-
function H(
|
|
26101
|
+
function H(_, I, k) {
|
|
26093
26102
|
var C = new Uint8Array(64), F = new Uint8Array(256), U, ne = k;
|
|
26094
26103
|
for (U = 0; U < 64; U++) C[U] = W[U];
|
|
26095
26104
|
for (Yt(C, I, k), k %= 128, U = 0; U < 256; U++) F[U] = 0;
|
|
26096
26105
|
for (U = 0; U < k; U++) F[U] = I[ne - k + U];
|
|
26097
|
-
for (F[k] = 128, k = 256 - 128 * (k < 112 ? 1 : 0), F[k - 9] = 0, O(F, k - 8, new e(ne / 536870912 | 0, ne << 3)), Yt(C, F, k), U = 0; U < 64; U++)
|
|
26106
|
+
for (F[k] = 128, k = 256 - 128 * (k < 112 ? 1 : 0), F[k - 9] = 0, O(F, k - 8, new e(ne / 536870912 | 0, ne << 3)), Yt(C, F, k), U = 0; U < 64; U++) _[U] = C[U];
|
|
26098
26107
|
return 0;
|
|
26099
26108
|
}
|
|
26100
|
-
function Ve(
|
|
26109
|
+
function Ve(_, I) {
|
|
26101
26110
|
var k = t(), C = t(), F = t(), U = t(), ne = t(), he = t(), J = t(), re = t(), De = t();
|
|
26102
|
-
dt(k,
|
|
26111
|
+
dt(k, _[1], _[0]), dt(De, I[1], I[0]), Ce(k, k, De), Je(C, _[0], _[1]), Je(De, I[0], I[1]), Ce(C, C, De), Ce(F, _[3], I[3]), Ce(F, F, d), Ce(U, _[2], I[2]), Je(U, U, U), dt(ne, C, k), dt(he, U, F), Je(J, U, F), Je(re, C, k), Ce(_[0], ne, he), Ce(_[1], re, J), Ce(_[2], J, he), Ce(_[3], ne, re);
|
|
26103
26112
|
}
|
|
26104
|
-
function Be(
|
|
26113
|
+
function Be(_, I, k) {
|
|
26105
26114
|
var C;
|
|
26106
26115
|
for (C = 0; C < 4; C++)
|
|
26107
|
-
Ze(
|
|
26116
|
+
Ze(_[C], I[C], k);
|
|
26108
26117
|
}
|
|
26109
|
-
function Ot(
|
|
26118
|
+
function Ot(_, I) {
|
|
26110
26119
|
var k = t(), C = t(), F = t();
|
|
26111
|
-
z(F, I[2]), Ce(k, I[0], F), Ce(C, I[1], F), St(
|
|
26120
|
+
z(F, I[2]), Ce(k, I[0], F), Ce(C, I[1], F), St(_, C), _[31] ^= At(k) << 7;
|
|
26112
26121
|
}
|
|
26113
|
-
function Ye(
|
|
26122
|
+
function Ye(_, I, k) {
|
|
26114
26123
|
var C, F;
|
|
26115
|
-
for (Pe(
|
|
26116
|
-
C = k[F / 8 | 0] >> (F & 7) & 1, Be(
|
|
26124
|
+
for (Pe(_[0], u), Pe(_[1], c), Pe(_[2], c), Pe(_[3], u), F = 255; F >= 0; --F)
|
|
26125
|
+
C = k[F / 8 | 0] >> (F & 7) & 1, Be(_, I, C), Ve(I, _), Ve(_, _), Be(_, I, C);
|
|
26117
26126
|
}
|
|
26118
|
-
function tr(
|
|
26127
|
+
function tr(_, I) {
|
|
26119
26128
|
var k = [
|
|
26120
26129
|
t(),
|
|
26121
26130
|
t(),
|
|
26122
26131
|
t(),
|
|
26123
26132
|
t()
|
|
26124
26133
|
];
|
|
26125
|
-
Pe(k[0], y), Pe(k[1], g), Pe(k[2], c), Ce(k[3], y, g), Ye(
|
|
26134
|
+
Pe(k[0], y), Pe(k[1], g), Pe(k[2], c), Ce(k[3], y, g), Ye(_, k, I);
|
|
26126
26135
|
}
|
|
26127
|
-
function lr(
|
|
26136
|
+
function lr(_, I, k) {
|
|
26128
26137
|
var C = new Uint8Array(64), F = [
|
|
26129
26138
|
t(),
|
|
26130
26139
|
t(),
|
|
26131
26140
|
t(),
|
|
26132
26141
|
t()
|
|
26133
26142
|
], U;
|
|
26134
|
-
for (k || n(I, 32), H(C, I, 32), C[0] &= 248, C[31] &= 127, C[31] |= 64, tr(F, C), Ot(
|
|
26143
|
+
for (k || n(I, 32), H(C, I, 32), C[0] &= 248, C[31] &= 127, C[31] |= 64, tr(F, C), Ot(_, F), U = 0; U < 32; U++) I[U + 32] = _[U];
|
|
26135
26144
|
return 0;
|
|
26136
26145
|
}
|
|
26137
26146
|
var Rt = new Float64Array([
|
|
@@ -26168,7 +26177,7 @@ var xe;
|
|
|
26168
26177
|
0,
|
|
26169
26178
|
16
|
|
26170
26179
|
]);
|
|
26171
|
-
function zt(
|
|
26180
|
+
function zt(_, I) {
|
|
26172
26181
|
var k, C, F, U;
|
|
26173
26182
|
for (C = 63; C >= 32; --C) {
|
|
26174
26183
|
for (k = 0, F = C - 32, U = C - 12; F < U; ++F)
|
|
@@ -26179,15 +26188,15 @@ var xe;
|
|
|
26179
26188
|
I[F] += k - (I[31] >> 4) * Rt[F], k = I[F] >> 8, I[F] &= 255;
|
|
26180
26189
|
for (F = 0; F < 32; F++) I[F] -= k * Rt[F];
|
|
26181
26190
|
for (C = 0; C < 32; C++)
|
|
26182
|
-
I[C + 1] += I[C] >> 8,
|
|
26191
|
+
I[C + 1] += I[C] >> 8, _[C] = I[C] & 255;
|
|
26183
26192
|
}
|
|
26184
|
-
function jr(
|
|
26193
|
+
function jr(_) {
|
|
26185
26194
|
var I = new Float64Array(64), k;
|
|
26186
|
-
for (k = 0; k < 64; k++) I[k] =
|
|
26187
|
-
for (k = 0; k < 64; k++)
|
|
26188
|
-
zt(
|
|
26195
|
+
for (k = 0; k < 64; k++) I[k] = _[k];
|
|
26196
|
+
for (k = 0; k < 64; k++) _[k] = 0;
|
|
26197
|
+
zt(_, I);
|
|
26189
26198
|
}
|
|
26190
|
-
function qr(
|
|
26199
|
+
function qr(_, I, k, C) {
|
|
26191
26200
|
var F = new Uint8Array(64), U = new Uint8Array(64), ne = new Uint8Array(64), he, J, re = new Float64Array(64), De = [
|
|
26192
26201
|
t(),
|
|
26193
26202
|
t(),
|
|
@@ -26196,21 +26205,21 @@ var xe;
|
|
|
26196
26205
|
];
|
|
26197
26206
|
H(F, C, 32), F[0] &= 248, F[31] &= 127, F[31] |= 64;
|
|
26198
26207
|
var mt = k + 64;
|
|
26199
|
-
for (he = 0; he < k; he++)
|
|
26200
|
-
for (he = 0; he < 32; he++)
|
|
26201
|
-
for (H(ne,
|
|
26202
|
-
for (H(U,
|
|
26208
|
+
for (he = 0; he < k; he++) _[64 + he] = I[he];
|
|
26209
|
+
for (he = 0; he < 32; he++) _[32 + he] = F[32 + he];
|
|
26210
|
+
for (H(ne, _.subarray(32), k + 32), jr(ne), tr(De, ne), Ot(_, De), he = 32; he < 64; he++) _[he] = C[he];
|
|
26211
|
+
for (H(U, _, k + 64), jr(U), he = 0; he < 64; he++) re[he] = 0;
|
|
26203
26212
|
for (he = 0; he < 32; he++) re[he] = ne[he];
|
|
26204
26213
|
for (he = 0; he < 32; he++)
|
|
26205
26214
|
for (J = 0; J < 32; J++)
|
|
26206
26215
|
re[he + J] += U[he] * F[J];
|
|
26207
|
-
return zt(
|
|
26216
|
+
return zt(_.subarray(32), re), mt;
|
|
26208
26217
|
}
|
|
26209
|
-
function rr(
|
|
26218
|
+
function rr(_, I) {
|
|
26210
26219
|
var k = t(), C = t(), F = t(), U = t(), ne = t(), he = t(), J = t();
|
|
26211
|
-
return Pe(
|
|
26220
|
+
return Pe(_[2], c), Xe(_[1], I), bt(F, _[1]), Ce(U, F, h), dt(F, F, _[2]), Je(U, _[2], U), bt(ne, U), bt(he, ne), Ce(J, he, ne), Ce(k, J, F), Ce(k, k, U), K(k, k), Ce(k, k, F), Ce(k, k, U), Ce(k, k, U), Ce(_[0], k, U), bt(C, _[0]), Ce(C, C, U), lt(C, F) && Ce(_[0], _[0], m), bt(C, _[0]), Ce(C, C, U), lt(C, F) ? -1 : (At(_[0]) === I[31] >> 7 && dt(_[0], u, _[0]), Ce(_[3], _[0], _[1]), 0);
|
|
26212
26221
|
}
|
|
26213
|
-
function an(
|
|
26222
|
+
function an(_, I, k, C) {
|
|
26214
26223
|
var F, U = new Uint8Array(32), ne = new Uint8Array(64), he = [
|
|
26215
26224
|
t(),
|
|
26216
26225
|
t(),
|
|
@@ -26223,13 +26232,13 @@ var xe;
|
|
|
26223
26232
|
t()
|
|
26224
26233
|
];
|
|
26225
26234
|
if (k < 64 || rr(J, C)) return -1;
|
|
26226
|
-
for (F = 0; F < k; F++)
|
|
26227
|
-
for (F = 0; F < 32; F++)
|
|
26228
|
-
if (H(ne,
|
|
26229
|
-
for (F = 0; F < k; F++)
|
|
26235
|
+
for (F = 0; F < k; F++) _[F] = I[F];
|
|
26236
|
+
for (F = 0; F < 32; F++) _[F + 32] = C[F];
|
|
26237
|
+
if (H(ne, _, k), jr(ne), Ye(he, J, ne), tr(J, I.subarray(32)), Ve(he, J), Ot(U, he), k -= 64, L(I, 0, U, 0)) {
|
|
26238
|
+
for (F = 0; F < k; F++) _[F] = 0;
|
|
26230
26239
|
return -1;
|
|
26231
26240
|
}
|
|
26232
|
-
for (F = 0; F < k; F++)
|
|
26241
|
+
for (F = 0; F < k; F++) _[F] = I[F + 64];
|
|
26233
26242
|
return k;
|
|
26234
26243
|
}
|
|
26235
26244
|
var br = 32, wr = 24, _r = 32, Ar = 16, sr = 32, Wr = 32, kr = 32, xr = 32, Rr = 32, on = wr, Pn = _r, N = Ar, se = 64, ye = 32, Ae = 64, je = 32, at = 64;
|
|
@@ -26289,125 +26298,125 @@ var xe;
|
|
|
26289
26298
|
scalarmult: Ye,
|
|
26290
26299
|
scalarbase: tr
|
|
26291
26300
|
};
|
|
26292
|
-
function it(
|
|
26293
|
-
if (
|
|
26301
|
+
function it(_, I) {
|
|
26302
|
+
if (_.length !== br) throw new Error("bad key size");
|
|
26294
26303
|
if (I.length !== wr) throw new Error("bad nonce size");
|
|
26295
26304
|
}
|
|
26296
|
-
function et(
|
|
26297
|
-
if (
|
|
26305
|
+
function et(_, I) {
|
|
26306
|
+
if (_.length !== kr) throw new Error("bad public key size");
|
|
26298
26307
|
if (I.length !== xr) throw new Error("bad secret key size");
|
|
26299
26308
|
}
|
|
26300
26309
|
function tt() {
|
|
26301
|
-
for (var
|
|
26302
|
-
if (!(arguments[
|
|
26303
|
-
}
|
|
26304
|
-
function _t(
|
|
26305
|
-
for (var I = 0; I <
|
|
26306
|
-
}
|
|
26307
|
-
r.randomBytes = function(
|
|
26308
|
-
var I = new Uint8Array(
|
|
26309
|
-
return n(I,
|
|
26310
|
-
}, r.secretbox = function(
|
|
26311
|
-
tt(
|
|
26312
|
-
for (var C = new Uint8Array(_r +
|
|
26310
|
+
for (var _ = 0; _ < arguments.length; _++)
|
|
26311
|
+
if (!(arguments[_] instanceof Uint8Array)) throw new TypeError("unexpected type, use Uint8Array");
|
|
26312
|
+
}
|
|
26313
|
+
function _t(_) {
|
|
26314
|
+
for (var I = 0; I < _.length; I++) _[I] = 0;
|
|
26315
|
+
}
|
|
26316
|
+
r.randomBytes = function(_) {
|
|
26317
|
+
var I = new Uint8Array(_);
|
|
26318
|
+
return n(I, _), I;
|
|
26319
|
+
}, r.secretbox = function(_, I, k) {
|
|
26320
|
+
tt(_, I, k), it(k, I);
|
|
26321
|
+
for (var C = new Uint8Array(_r + _.length), F = new Uint8Array(C.length), U = 0; U < _.length; U++) C[U + _r] = _[U];
|
|
26313
26322
|
return ce(F, C, C.length, I, k), F.subarray(Ar);
|
|
26314
|
-
}, r.secretbox.open = function(
|
|
26315
|
-
tt(
|
|
26316
|
-
for (var C = new Uint8Array(Ar +
|
|
26323
|
+
}, r.secretbox.open = function(_, I, k) {
|
|
26324
|
+
tt(_, I, k), it(k, I);
|
|
26325
|
+
for (var C = new Uint8Array(Ar + _.length), F = new Uint8Array(C.length), U = 0; U < _.length; U++) C[U + Ar] = _[U];
|
|
26317
26326
|
return C.length < 32 || Se(F, C, C.length, I, k) !== 0 ? null : F.subarray(_r);
|
|
26318
|
-
}, r.secretbox.keyLength = br, r.secretbox.nonceLength = wr, r.secretbox.overheadLength = Ar, r.scalarMult = function(
|
|
26319
|
-
if (tt(
|
|
26327
|
+
}, r.secretbox.keyLength = br, r.secretbox.nonceLength = wr, r.secretbox.overheadLength = Ar, r.scalarMult = function(_, I) {
|
|
26328
|
+
if (tt(_, I), _.length !== Wr) throw new Error("bad n size");
|
|
26320
26329
|
if (I.length !== sr) throw new Error("bad p size");
|
|
26321
26330
|
var k = new Uint8Array(sr);
|
|
26322
|
-
return B(k,
|
|
26323
|
-
}, r.scalarMult.base = function(
|
|
26324
|
-
if (tt(
|
|
26331
|
+
return B(k, _, I), k;
|
|
26332
|
+
}, r.scalarMult.base = function(_) {
|
|
26333
|
+
if (tt(_), _.length !== Wr) throw new Error("bad n size");
|
|
26325
26334
|
var I = new Uint8Array(sr);
|
|
26326
|
-
return Q(I,
|
|
26327
|
-
}, r.scalarMult.scalarLength = Wr, r.scalarMult.groupElementLength = sr, r.box = function(
|
|
26335
|
+
return Q(I, _), I;
|
|
26336
|
+
}, r.scalarMult.scalarLength = Wr, r.scalarMult.groupElementLength = sr, r.box = function(_, I, k, C) {
|
|
26328
26337
|
var F = r.box.before(k, C);
|
|
26329
|
-
return r.secretbox(
|
|
26330
|
-
}, r.box.before = function(
|
|
26331
|
-
tt(
|
|
26338
|
+
return r.secretbox(_, I, F);
|
|
26339
|
+
}, r.box.before = function(_, I) {
|
|
26340
|
+
tt(_, I), et(_, I);
|
|
26332
26341
|
var k = new Uint8Array(Rr);
|
|
26333
|
-
return G(k,
|
|
26334
|
-
}, r.box.after = r.secretbox, r.box.open = function(
|
|
26342
|
+
return G(k, _, I), k;
|
|
26343
|
+
}, r.box.after = r.secretbox, r.box.open = function(_, I, k, C) {
|
|
26335
26344
|
var F = r.box.before(k, C);
|
|
26336
|
-
return r.secretbox.open(
|
|
26345
|
+
return r.secretbox.open(_, I, F);
|
|
26337
26346
|
}, r.box.open.after = r.secretbox.open, r.box.keyPair = function() {
|
|
26338
|
-
var
|
|
26339
|
-
return X(
|
|
26340
|
-
publicKey:
|
|
26347
|
+
var _ = new Uint8Array(kr), I = new Uint8Array(xr);
|
|
26348
|
+
return X(_, I), {
|
|
26349
|
+
publicKey: _,
|
|
26341
26350
|
secretKey: I
|
|
26342
26351
|
};
|
|
26343
|
-
}, r.box.keyPair.fromSecretKey = function(
|
|
26344
|
-
if (tt(
|
|
26352
|
+
}, r.box.keyPair.fromSecretKey = function(_) {
|
|
26353
|
+
if (tt(_), _.length !== xr) throw new Error("bad secret key size");
|
|
26345
26354
|
var I = new Uint8Array(kr);
|
|
26346
|
-
return Q(I,
|
|
26355
|
+
return Q(I, _), {
|
|
26347
26356
|
publicKey: I,
|
|
26348
|
-
secretKey: new Uint8Array(
|
|
26357
|
+
secretKey: new Uint8Array(_)
|
|
26349
26358
|
};
|
|
26350
|
-
}, r.box.publicKeyLength = kr, r.box.secretKeyLength = xr, r.box.sharedKeyLength = Rr, r.box.nonceLength = on, r.box.overheadLength = r.secretbox.overheadLength, r.sign = function(
|
|
26351
|
-
if (tt(
|
|
26352
|
-
var k = new Uint8Array(se +
|
|
26353
|
-
return qr(k,
|
|
26354
|
-
}, r.sign.open = function(
|
|
26355
|
-
if (tt(
|
|
26356
|
-
var k = new Uint8Array(
|
|
26359
|
+
}, r.box.publicKeyLength = kr, r.box.secretKeyLength = xr, r.box.sharedKeyLength = Rr, r.box.nonceLength = on, r.box.overheadLength = r.secretbox.overheadLength, r.sign = function(_, I) {
|
|
26360
|
+
if (tt(_, I), I.length !== Ae) throw new Error("bad secret key size");
|
|
26361
|
+
var k = new Uint8Array(se + _.length);
|
|
26362
|
+
return qr(k, _, _.length, I), k;
|
|
26363
|
+
}, r.sign.open = function(_, I) {
|
|
26364
|
+
if (tt(_, I), I.length !== ye) throw new Error("bad public key size");
|
|
26365
|
+
var k = new Uint8Array(_.length), C = an(k, _, _.length, I);
|
|
26357
26366
|
if (C < 0) return null;
|
|
26358
26367
|
for (var F = new Uint8Array(C), U = 0; U < F.length; U++) F[U] = k[U];
|
|
26359
26368
|
return F;
|
|
26360
|
-
}, r.sign.detached = function(
|
|
26361
|
-
for (var k = r.sign(
|
|
26369
|
+
}, r.sign.detached = function(_, I) {
|
|
26370
|
+
for (var k = r.sign(_, I), C = new Uint8Array(se), F = 0; F < C.length; F++) C[F] = k[F];
|
|
26362
26371
|
return C;
|
|
26363
|
-
}, r.sign.detached.verify = function(
|
|
26364
|
-
if (tt(
|
|
26372
|
+
}, r.sign.detached.verify = function(_, I, k) {
|
|
26373
|
+
if (tt(_, I, k), I.length !== se) throw new Error("bad signature size");
|
|
26365
26374
|
if (k.length !== ye) throw new Error("bad public key size");
|
|
26366
|
-
var C = new Uint8Array(se +
|
|
26375
|
+
var C = new Uint8Array(se + _.length), F = new Uint8Array(se + _.length), U;
|
|
26367
26376
|
for (U = 0; U < se; U++) C[U] = I[U];
|
|
26368
|
-
for (U = 0; U <
|
|
26377
|
+
for (U = 0; U < _.length; U++) C[U + se] = _[U];
|
|
26369
26378
|
return an(F, C, C.length, k) >= 0;
|
|
26370
26379
|
}, r.sign.keyPair = function() {
|
|
26371
|
-
var
|
|
26372
|
-
return lr(
|
|
26373
|
-
publicKey:
|
|
26380
|
+
var _ = new Uint8Array(ye), I = new Uint8Array(Ae);
|
|
26381
|
+
return lr(_, I), {
|
|
26382
|
+
publicKey: _,
|
|
26374
26383
|
secretKey: I
|
|
26375
26384
|
};
|
|
26376
|
-
}, r.sign.keyPair.fromSecretKey = function(
|
|
26377
|
-
if (tt(
|
|
26378
|
-
for (var I = new Uint8Array(ye), k = 0; k < I.length; k++) I[k] =
|
|
26385
|
+
}, r.sign.keyPair.fromSecretKey = function(_) {
|
|
26386
|
+
if (tt(_), _.length !== Ae) throw new Error("bad secret key size");
|
|
26387
|
+
for (var I = new Uint8Array(ye), k = 0; k < I.length; k++) I[k] = _[32 + k];
|
|
26379
26388
|
return {
|
|
26380
26389
|
publicKey: I,
|
|
26381
|
-
secretKey: new Uint8Array(
|
|
26390
|
+
secretKey: new Uint8Array(_)
|
|
26382
26391
|
};
|
|
26383
|
-
}, r.sign.keyPair.fromSeed = function(
|
|
26384
|
-
if (tt(
|
|
26385
|
-
for (var I = new Uint8Array(ye), k = new Uint8Array(Ae), C = 0; C < 32; C++) k[C] =
|
|
26392
|
+
}, r.sign.keyPair.fromSeed = function(_) {
|
|
26393
|
+
if (tt(_), _.length !== je) throw new Error("bad seed size");
|
|
26394
|
+
for (var I = new Uint8Array(ye), k = new Uint8Array(Ae), C = 0; C < 32; C++) k[C] = _[C];
|
|
26386
26395
|
return lr(I, k, !0), {
|
|
26387
26396
|
publicKey: I,
|
|
26388
26397
|
secretKey: k
|
|
26389
26398
|
};
|
|
26390
|
-
}, r.sign.publicKeyLength = ye, r.sign.secretKeyLength = Ae, r.sign.seedLength = je, r.sign.signatureLength = se, r.hash = function(
|
|
26391
|
-
tt(
|
|
26399
|
+
}, r.sign.publicKeyLength = ye, r.sign.secretKeyLength = Ae, r.sign.seedLength = je, r.sign.signatureLength = se, r.hash = function(_) {
|
|
26400
|
+
tt(_);
|
|
26392
26401
|
var I = new Uint8Array(at);
|
|
26393
|
-
return H(I,
|
|
26394
|
-
}, r.hash.hashLength = at, r.verify = function(
|
|
26395
|
-
return tt(
|
|
26396
|
-
}, r.setPRNG = function(
|
|
26397
|
-
n =
|
|
26402
|
+
return H(I, _, _.length), I;
|
|
26403
|
+
}, r.hash.hashLength = at, r.verify = function(_, I) {
|
|
26404
|
+
return tt(_, I), _.length === 0 || I.length === 0 || _.length !== I.length ? !1 : P(_, 0, I, 0, _.length) === 0;
|
|
26405
|
+
}, r.setPRNG = function(_) {
|
|
26406
|
+
n = _;
|
|
26398
26407
|
}, function() {
|
|
26399
|
-
var
|
|
26400
|
-
if (
|
|
26408
|
+
var _ = typeof globalThis < "u" ? globalThis.crypto || globalThis.msCrypto : null;
|
|
26409
|
+
if (_ && _.getRandomValues) {
|
|
26401
26410
|
var I = 65536;
|
|
26402
26411
|
r.setPRNG(function(k, C) {
|
|
26403
26412
|
var F, U = new Uint8Array(C);
|
|
26404
26413
|
for (F = 0; F < C; F += I)
|
|
26405
|
-
|
|
26414
|
+
_.getRandomValues(U.subarray(F, F + Math.min(C - F, I)));
|
|
26406
26415
|
for (F = 0; F < C; F++) k[F] = U[F];
|
|
26407
26416
|
_t(U);
|
|
26408
26417
|
});
|
|
26409
|
-
} else typeof require < "u" && (
|
|
26410
|
-
var F, U =
|
|
26418
|
+
} else typeof require < "u" && (_ = require("crypto"), _ && _.randomBytes && r.setPRNG(function(k, C) {
|
|
26419
|
+
var F, U = _.randomBytes(C);
|
|
26411
26420
|
for (F = 0; F < C; F++) k[F] = U[F];
|
|
26412
26421
|
_t(U);
|
|
26413
26422
|
}));
|
|
@@ -28133,10 +28142,10 @@ class Lo {
|
|
|
28133
28142
|
y.name.startsWith(En) || (y.name = `${En}${y.name}`), n.mirror = y, n.mirror_direct = !0;
|
|
28134
28143
|
} else if (e.sources) {
|
|
28135
28144
|
const y = e.sources.map((g) => {
|
|
28136
|
-
const m = Object.assign({}, g),
|
|
28137
|
-
return m.name.startsWith(En) || (m.name = `${En}${m.name}`), !g.external &&
|
|
28145
|
+
const m = Object.assign({}, g), w = m.name.startsWith(En) ? m.name.substring(En.length) : m.name;
|
|
28146
|
+
return m.name.startsWith(En) || (m.name = `${En}${m.name}`), !g.external && w !== this.bucket && (m.subject_transforms = [
|
|
28138
28147
|
{
|
|
28139
|
-
src: `$KV.${
|
|
28148
|
+
src: `$KV.${w}.>`,
|
|
28140
28149
|
dest: `$KV.${this.bucket}.>`
|
|
28141
28150
|
}
|
|
28142
28151
|
]), m;
|
|
@@ -28423,22 +28432,22 @@ class Lo {
|
|
|
28423
28432
|
const u = e.ignoreDeletes === !0;
|
|
28424
28433
|
let c = e.initializedFn, f = 0;
|
|
28425
28434
|
const h = this._buildCC(t, a, i), d = h.filter_subject, y = ss(h);
|
|
28426
|
-
this.canSetWatcherName() && y.consumerName(Us.next()), y.bindStream(this.stream), e.resumeFromRevision && e.resumeFromRevision > 0 && y.startSequence(e.resumeFromRevision), y.orderedConsumer(), y.callback((m,
|
|
28435
|
+
this.canSetWatcherName() && y.consumerName(Us.next()), y.bindStream(this.stream), e.resumeFromRevision && e.resumeFromRevision > 0 && y.startSequence(e.resumeFromRevision), y.orderedConsumer(), y.callback((m, w) => {
|
|
28427
28436
|
if (m) {
|
|
28428
28437
|
n.stop(m);
|
|
28429
28438
|
return;
|
|
28430
28439
|
}
|
|
28431
|
-
if (
|
|
28432
|
-
const A = this.jmToEntry(
|
|
28440
|
+
if (w) {
|
|
28441
|
+
const A = this.jmToEntry(w);
|
|
28433
28442
|
if (u && A.operation === "DEL")
|
|
28434
28443
|
return;
|
|
28435
|
-
n.push(A), n.received++, c && (f > 0 && n.received >= f ||
|
|
28444
|
+
n.push(A), n.received++, c && (f > 0 && n.received >= f || w.info.pending === 0) && (n.push(c), c = void 0);
|
|
28436
28445
|
}
|
|
28437
28446
|
});
|
|
28438
28447
|
const g = await this.js.subscribe(d, y);
|
|
28439
28448
|
if (c) {
|
|
28440
|
-
const { info: { last: m } } = g,
|
|
28441
|
-
if (
|
|
28449
|
+
const { info: { last: m } } = g, w = m.num_pending + m.delivered.consumer_seq;
|
|
28450
|
+
if (w === 0 || n.received >= w)
|
|
28442
28451
|
try {
|
|
28443
28452
|
c();
|
|
28444
28453
|
} catch (A) {
|
|
@@ -28447,7 +28456,7 @@ class Lo {
|
|
|
28447
28456
|
c = void 0;
|
|
28448
28457
|
}
|
|
28449
28458
|
else
|
|
28450
|
-
f =
|
|
28459
|
+
f = w;
|
|
28451
28460
|
}
|
|
28452
28461
|
return n._data = g, n.iterClosed.then(() => {
|
|
28453
28462
|
g.unsubscribe();
|
|
@@ -28677,7 +28686,7 @@ class Eh extends Lr {
|
|
|
28677
28686
|
const { sub: c } = this;
|
|
28678
28687
|
c && c.unsubscribe(), this.sub = this.consumer.api.nc.subscribe(this.inbox, {
|
|
28679
28688
|
callback: (f, h) => {
|
|
28680
|
-
var y, g, m,
|
|
28689
|
+
var y, g, m, w;
|
|
28681
28690
|
if (f) {
|
|
28682
28691
|
this.stop(f);
|
|
28683
28692
|
return;
|
|
@@ -28685,23 +28694,23 @@ class Eh extends Lr {
|
|
|
28685
28694
|
if ((y = this.monitor) == null || y.work(), h.subject === this.inbox) {
|
|
28686
28695
|
if (hd(h))
|
|
28687
28696
|
return;
|
|
28688
|
-
const A = (g = h.headers) == null ? void 0 : g.code,
|
|
28689
|
-
if (
|
|
28690
|
-
this.pending.msgs -=
|
|
28691
|
-
msgsLeft:
|
|
28697
|
+
const A = (g = h.headers) == null ? void 0 : g.code, x = ((w = (m = h.headers) == null ? void 0 : m.description) == null ? void 0 : w.toLowerCase()) || "unknown", { msgsLeft: b, bytesLeft: O } = this.parseDiscard(h.headers);
|
|
28698
|
+
if (b > 0 || O > 0)
|
|
28699
|
+
this.pending.msgs -= b, this.pending.bytes -= O, this.pending.requests--, this.notify(_a.Discard, {
|
|
28700
|
+
msgsLeft: b,
|
|
28692
28701
|
bytesLeft: O
|
|
28693
28702
|
});
|
|
28694
28703
|
else if (A === 400) {
|
|
28695
|
-
this.stop(new ke(
|
|
28704
|
+
this.stop(new ke(x, `${A}`));
|
|
28696
28705
|
return;
|
|
28697
|
-
} else if (A === 409 &&
|
|
28698
|
-
if (this.notify(Oi.ConsumerDeleted, `${A} ${
|
|
28699
|
-
const P = new ke(
|
|
28706
|
+
} else if (A === 409 && x === "consumer deleted") {
|
|
28707
|
+
if (this.notify(Oi.ConsumerDeleted, `${A} ${x}`), !this.refilling || this.abortOnMissingResource) {
|
|
28708
|
+
const P = new ke(x, `${A}`);
|
|
28700
28709
|
this.stop(P);
|
|
28701
28710
|
return;
|
|
28702
28711
|
}
|
|
28703
28712
|
} else
|
|
28704
|
-
this.notify(_a.DebugEvent, `${A} ${
|
|
28713
|
+
this.notify(_a.DebugEvent, `${A} ${x}`);
|
|
28705
28714
|
} else
|
|
28706
28715
|
this._push(jo(h, this.consumer.api.timeout)), this.received++, this.pending.msgs && this.pending.msgs--, this.pending.bytes && (this.pending.bytes -= h.size());
|
|
28707
28716
|
if (this.pending.msgs === 0 && this.pending.bytes === 0 && (this.pending.requests = 0), this.refilling) {
|
|
@@ -29257,8 +29266,8 @@ class Cp extends Yo {
|
|
|
29257
29266
|
y++, d.offset = c * y;
|
|
29258
29267
|
const m = await this._request(n, d);
|
|
29259
29268
|
u = m.total, h.push(m);
|
|
29260
|
-
const
|
|
29261
|
-
if (f +=
|
|
29269
|
+
const w = Object.getOwnPropertyNames(m.state.subjects).length;
|
|
29270
|
+
if (f += w, w < c)
|
|
29262
29271
|
break;
|
|
29263
29272
|
}
|
|
29264
29273
|
let g = {};
|
|
@@ -29363,22 +29372,22 @@ class S2 extends Yo {
|
|
|
29363
29372
|
return (async () => {
|
|
29364
29373
|
var y, g, m;
|
|
29365
29374
|
let f = !1, h = !1, d;
|
|
29366
|
-
for await (const
|
|
29375
|
+
for await (const w of c) {
|
|
29367
29376
|
if (!f) {
|
|
29368
29377
|
f = !0;
|
|
29369
|
-
const A = ((y =
|
|
29378
|
+
const A = ((y = w.headers) == null ? void 0 : y.code) || 0;
|
|
29370
29379
|
if (A !== 0 && A < 200 || A > 299) {
|
|
29371
|
-
d = (g =
|
|
29380
|
+
d = (g = w.headers) == null ? void 0 : g.description.toLowerCase();
|
|
29372
29381
|
break;
|
|
29373
29382
|
}
|
|
29374
|
-
if (((m =
|
|
29383
|
+
if (((m = w.headers) == null ? void 0 : m.get("Nats-Num-Pending")) === "") {
|
|
29375
29384
|
h = !0;
|
|
29376
29385
|
break;
|
|
29377
29386
|
}
|
|
29378
29387
|
}
|
|
29379
|
-
if (
|
|
29388
|
+
if (w.data.length === 0)
|
|
29380
29389
|
break;
|
|
29381
|
-
u.push(new wd(
|
|
29390
|
+
u.push(new wd(w));
|
|
29382
29391
|
}
|
|
29383
29392
|
u.push(() => {
|
|
29384
29393
|
if (h)
|
|
@@ -29655,12 +29664,12 @@ class To {
|
|
|
29655
29664
|
const d = await this.info(e.name), { name: y, error: g } = this._checkNotEmpty(e.name);
|
|
29656
29665
|
if (g)
|
|
29657
29666
|
return Promise.reject(g);
|
|
29658
|
-
const m = Us.next(),
|
|
29667
|
+
const m = Us.next(), w = this._chunkSubject(m), A = this._metaSubject(y), x = Object.assign({
|
|
29659
29668
|
bucket: this.name,
|
|
29660
29669
|
nuid: m,
|
|
29661
29670
|
size: 0,
|
|
29662
29671
|
chunks: 0
|
|
29663
|
-
}, U0(e)),
|
|
29672
|
+
}, U0(e)), b = ir(), O = [], P = new Ia();
|
|
29664
29673
|
try {
|
|
29665
29674
|
const L = t ? t.getReader() : null, V = new I0();
|
|
29666
29675
|
for (; ; ) {
|
|
@@ -29671,44 +29680,44 @@ class To {
|
|
|
29671
29680
|
if (te) {
|
|
29672
29681
|
if (P.size() > 0) {
|
|
29673
29682
|
const Le = P.drain();
|
|
29674
|
-
V.update(Le),
|
|
29683
|
+
V.update(Le), x.chunks++, x.size += Le.length, O.push(this.js.publish(w, Le, {
|
|
29675
29684
|
timeout: a
|
|
29676
29685
|
}));
|
|
29677
29686
|
}
|
|
29678
|
-
await Promise.all(O), O.length = 0,
|
|
29687
|
+
await Promise.all(O), O.length = 0, x.mtime = (/* @__PURE__ */ new Date()).toISOString();
|
|
29679
29688
|
const ue = V.digest("base64"), fe = ue.length % 3, qe = fe > 0 ? "=".repeat(fe) : "";
|
|
29680
|
-
|
|
29689
|
+
x.digest = `${j0}${ue}${qe}`, x.deleted = !1;
|
|
29681
29690
|
const ge = Di();
|
|
29682
29691
|
typeof u == "number" && ge.set(ci.ExpectedLastSubjectSequenceHdr, `${u}`), ge.set(rn.RollupHdr, rn.RollupValueSubject);
|
|
29683
|
-
const Ne = await this.js.publish(A, zn().encode(
|
|
29692
|
+
const Ne = await this.js.publish(A, zn().encode(x), {
|
|
29684
29693
|
headers: ge,
|
|
29685
29694
|
timeout: a
|
|
29686
29695
|
});
|
|
29687
|
-
if (
|
|
29696
|
+
if (x.revision = Ne.seq, d)
|
|
29688
29697
|
try {
|
|
29689
29698
|
await this.jsm.streams.purge(this.stream, {
|
|
29690
29699
|
filter: `$O.${this.name}.C.${d.nuid}`
|
|
29691
29700
|
});
|
|
29692
29701
|
} catch {
|
|
29693
29702
|
}
|
|
29694
|
-
|
|
29703
|
+
b.resolve(new Oh(x));
|
|
29695
29704
|
break;
|
|
29696
29705
|
}
|
|
29697
29706
|
if (Y)
|
|
29698
29707
|
for (P.fill(Y); P.size() > h; ) {
|
|
29699
|
-
|
|
29708
|
+
x.chunks++, x.size += h;
|
|
29700
29709
|
const ue = P.drain(e.options.max_chunk_size);
|
|
29701
|
-
V.update(ue), O.push(this.js.publish(
|
|
29710
|
+
V.update(ue), O.push(this.js.publish(w, ue, {
|
|
29702
29711
|
timeout: a
|
|
29703
29712
|
}));
|
|
29704
29713
|
}
|
|
29705
29714
|
}
|
|
29706
29715
|
} catch (L) {
|
|
29707
29716
|
await this.jsm.streams.purge(this.stream, {
|
|
29708
|
-
filter:
|
|
29709
|
-
}),
|
|
29717
|
+
filter: w
|
|
29718
|
+
}), b.reject(L);
|
|
29710
29719
|
}
|
|
29711
|
-
return
|
|
29720
|
+
return b;
|
|
29712
29721
|
}
|
|
29713
29722
|
putBlob(e, t, n) {
|
|
29714
29723
|
function i(a) {
|
|
@@ -29766,8 +29775,8 @@ class To {
|
|
|
29766
29775
|
return (async () => {
|
|
29767
29776
|
for await (const d of h)
|
|
29768
29777
|
if (d.data.length > 0 && (c.update(d.data), a.enqueue(d.data)), d.info.pending === 0) {
|
|
29769
|
-
const y = c.digest("base64"), g = y.length % 3, m = g > 0 ? "=".repeat(g) : "",
|
|
29770
|
-
|
|
29778
|
+
const y = c.digest("base64"), g = y.length % 3, m = g > 0 ? "=".repeat(g) : "", w = `${j0}${y}${m}`;
|
|
29779
|
+
w !== t.digest ? a.error(new Error(`received a corrupt object, digests do not match received: ${t.digest} calculated ${w}`)) : a.close(), h.unsubscribe();
|
|
29771
29780
|
}
|
|
29772
29781
|
})().then(() => {
|
|
29773
29782
|
n.resolve();
|
|
@@ -30025,23 +30034,23 @@ class Rp extends Yo {
|
|
|
30025
30034
|
throw new Error("expires or no_wait is required");
|
|
30026
30035
|
const g = i.idle_heartbeat || 0;
|
|
30027
30036
|
g && (d.idle_heartbeat = or(g), i.delay_heartbeat === !0 && (d.idle_heartbeat = or(g * 4)));
|
|
30028
|
-
const m = new Lr(),
|
|
30037
|
+
const m = new Lr(), w = d.batch;
|
|
30029
30038
|
let A = 0;
|
|
30030
30039
|
m.protocolFilterFn = (O, P = !1) => hd(O.msg) ? (h == null || h.work(), !1) : !0, m.dispatchedFn = (O) => {
|
|
30031
30040
|
if (O) {
|
|
30032
30041
|
if (u && (c += O.data.length), A++, a && O.info.pending === 0)
|
|
30033
30042
|
return;
|
|
30034
|
-
(m.getPending() === 1 && O.info.pending === 0 ||
|
|
30043
|
+
(m.getPending() === 1 && O.info.pending === 0 || w === A || f > 0 && c >= f) && m.stop();
|
|
30035
30044
|
}
|
|
30036
30045
|
};
|
|
30037
|
-
const
|
|
30046
|
+
const x = ki(this.nc.options.inboxPrefix), b = this.nc.subscribe(x, {
|
|
30038
30047
|
max: i.batch,
|
|
30039
30048
|
callback: (O, P) => {
|
|
30040
30049
|
O === null && (O = wa(P)), O !== null ? (a && (a.cancel(), a = null), LF(O) ? m.stop(hx(O) === null ? void 0 : O) : m.stop(O)) : (h == null || h.work(), m.received++, m.push(jo(P, this.timeout)));
|
|
30041
30050
|
}
|
|
30042
30051
|
});
|
|
30043
30052
|
return y && (a = Aa(y), a.catch(() => {
|
|
30044
|
-
|
|
30053
|
+
b.isClosed() || (b.drain().catch(() => {
|
|
30045
30054
|
}), a = null), h && h.cancel();
|
|
30046
30055
|
})), (async () => {
|
|
30047
30056
|
try {
|
|
@@ -30050,9 +30059,9 @@ class Rp extends Yo {
|
|
|
30050
30059
|
}), !0)));
|
|
30051
30060
|
} catch {
|
|
30052
30061
|
}
|
|
30053
|
-
await
|
|
30062
|
+
await b.closed, a !== null && (a.cancel(), a = null), h && h.cancel(), m.stop();
|
|
30054
30063
|
})().catch(), this.nc.publish(`${this.prefix}.CONSUMER.MSG.NEXT.${t}.${n}`, this.jc.encode(d), {
|
|
30055
|
-
reply:
|
|
30064
|
+
reply: x
|
|
30056
30065
|
}), m;
|
|
30057
30066
|
}
|
|
30058
30067
|
async pullSubscribe(t, n = ss()) {
|
|
@@ -30266,12 +30275,12 @@ class Np {
|
|
|
30266
30275
|
const f = i ? new Error().stack : null;
|
|
30267
30276
|
let h = typeof n.maxMessages == "number" && n.maxMessages > 0 ? n.maxMessages : -1;
|
|
30268
30277
|
const d = this.subscribe(ki(this.options.inboxPrefix), {
|
|
30269
|
-
callback: (
|
|
30270
|
-
var
|
|
30271
|
-
if (((
|
|
30272
|
-
f && (
|
|
30278
|
+
callback: (w, A) => {
|
|
30279
|
+
var x, b;
|
|
30280
|
+
if (((x = A == null ? void 0 : A.data) == null ? void 0 : x.length) === 0 && ((b = A == null ? void 0 : A.headers) == null ? void 0 : b.status) === pe.NoResponders && (w = ke.errorForCode(pe.NoResponders)), w) {
|
|
30281
|
+
f && (w.stack += `
|
|
30273
30282
|
|
|
30274
|
-
${f}`), y(
|
|
30283
|
+
${f}`), y(w);
|
|
30275
30284
|
return;
|
|
30276
30285
|
}
|
|
30277
30286
|
c(null, A), n.strategy === ni.Count && (h--, h === 0 && y()), n.strategy === ni.JitterTimer && (m(), g = setTimeout(() => {
|
|
@@ -30281,12 +30290,12 @@ ${f}`), y(_);
|
|
|
30281
30290
|
});
|
|
30282
30291
|
d.requestSubject = e, d.closed.then(() => {
|
|
30283
30292
|
u();
|
|
30284
|
-
}).catch((
|
|
30285
|
-
a.stop(
|
|
30293
|
+
}).catch((w) => {
|
|
30294
|
+
a.stop(w);
|
|
30286
30295
|
});
|
|
30287
|
-
const y = (
|
|
30288
|
-
|
|
30289
|
-
throw
|
|
30296
|
+
const y = (w) => {
|
|
30297
|
+
w && a.push(() => {
|
|
30298
|
+
throw w;
|
|
30290
30299
|
}), m(), d.drain().then(() => {
|
|
30291
30300
|
u();
|
|
30292
30301
|
}).catch((A) => {
|
|
@@ -30295,15 +30304,15 @@ ${f}`), y(_);
|
|
|
30295
30304
|
};
|
|
30296
30305
|
a.iterClosed.then(() => {
|
|
30297
30306
|
m(), d == null || d.unsubscribe();
|
|
30298
|
-
}).catch((
|
|
30307
|
+
}).catch((w) => {
|
|
30299
30308
|
m(), d == null || d.unsubscribe();
|
|
30300
30309
|
});
|
|
30301
30310
|
try {
|
|
30302
30311
|
this.publish(e, t, {
|
|
30303
30312
|
reply: d.getSubject()
|
|
30304
30313
|
});
|
|
30305
|
-
} catch (
|
|
30306
|
-
y(
|
|
30314
|
+
} catch (w) {
|
|
30315
|
+
y(w);
|
|
30307
30316
|
}
|
|
30308
30317
|
let g = setTimeout(() => {
|
|
30309
30318
|
y();
|
|
@@ -30593,8 +30602,8 @@ class fx extends sM {
|
|
|
30593
30602
|
else {
|
|
30594
30603
|
if (!this.js.nc.protocol.connected)
|
|
30595
30604
|
return !1;
|
|
30596
|
-
const
|
|
30597
|
-
return this._resetOrderedConsumer(
|
|
30605
|
+
const w = ((g = (y = this.info) == null ? void 0 : y.ordered_consumer_sequence) == null ? void 0 : g.stream_seq) || 0;
|
|
30606
|
+
return this._resetOrderedConsumer(w + 1), (m = this.monitor) == null || m.restart(), !1;
|
|
30598
30607
|
}
|
|
30599
30608
|
return !a.noIterator;
|
|
30600
30609
|
};
|
|
@@ -31064,13 +31073,13 @@ const B0 = (r, e) => {
|
|
|
31064
31073
|
console.info(
|
|
31065
31074
|
`Consuming events from stream ${e} filtering by subject ${g}`
|
|
31066
31075
|
);
|
|
31067
|
-
const
|
|
31076
|
+
const w = await (await y.jetstream().consumers.get(e, {
|
|
31068
31077
|
deliver_policy: i,
|
|
31069
31078
|
filterSubjects: g
|
|
31070
|
-
})).consume({ max_messages: 1e3 }), A = W2(
|
|
31079
|
+
})).consume({ max_messages: 1e3 }), A = W2(w);
|
|
31071
31080
|
if (h.current = A, typeof a == "function")
|
|
31072
|
-
for await (const
|
|
31073
|
-
a(
|
|
31081
|
+
for await (const x of A)
|
|
31082
|
+
a(x);
|
|
31074
31083
|
} catch (y) {
|
|
31075
31084
|
console.error(`Error setting up event stream. ${y}`);
|
|
31076
31085
|
}
|