@wexio/messenger-widget-react 1.0.29 → 1.1.1
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/{widget-react-BeCDy-n82.js → widget-react--Z53yWLq2.js} +11 -3
- package/dist/{widget-react--j_oeaHy.js → widget-react-B1xXdkrb.js} +10 -2
- package/dist/{widget-react-BaROuJiw.js → widget-react-BAidDzVE.js} +11 -3
- package/dist/{widget-react-C68tIjqi2.js → widget-react-BApgrs0F2.js} +10 -2
- package/dist/{widget-react-CpCijjXq.js → widget-react-BXWBpwSG.js} +11 -3
- package/dist/{widget-react-DyuBV6av.js → widget-react-BeiQb2DF.js} +11 -3
- package/dist/{widget-react-T1KxsYpy.js → widget-react-Bewo4hAN.js} +11 -3
- package/dist/{widget-react-od9e0Ugq.js → widget-react-Bh-QS4id.js} +11 -3
- package/dist/{widget-react-HdCmkcuG.js → widget-react-Br4IdRpT.js} +11 -3
- package/dist/{widget-react-CWjaunNP.js → widget-react-Budvz0_j.js} +11 -3
- package/dist/{widget-react-B6UhqBJd.js → widget-react-C-AT2-gv.js} +10 -2
- package/dist/{widget-react-CPUNK9nH.js → widget-react-C1espdWC.js} +11 -3
- package/dist/{widget-react-D4L5tDax2.js → widget-react-C2zCJ9nY2.js} +4 -4
- package/dist/{widget-react-CwYIlZc0.js → widget-react-CD4t2uUl.js} +11 -3
- package/dist/{widget-react-Bj9TL4Kb.js → widget-react-CHovQzDz.js} +11 -3
- package/dist/{widget-react-BU-5w9zn2.js → widget-react-CN_ZiUtH2.js} +7 -7
- package/dist/{widget-react-BSrCOwHs.js → widget-react-CQ0MdjMO.js} +225 -225
- package/dist/{widget-react-BE-hnNxO2.js → widget-react-CRMJO52c2.js} +10 -2
- package/dist/{widget-react-BD4KAXKy2.js → widget-react-CRU0Mk7M2.js} +11 -3
- package/dist/{widget-react-DkmenoyB.js → widget-react-CXoyPTrE.js} +10 -2
- package/dist/{widget-react-3FsNLmkN.js → widget-react-CYNlFLU2.js} +10 -2
- package/dist/{widget-react-DyfWPmJL2.js → widget-react-CoGUeF_h2.js} +10 -2
- package/dist/{widget-react-DyMH0fHM.js → widget-react-CrpD2kq2.js} +10 -2
- package/dist/{widget-react-Cwn_Gz4N.js → widget-react-CtqfleDq.js} +10 -2
- package/dist/{widget-react-DfX-FjHu.js → widget-react-D4IN0PAd.js} +63 -63
- package/dist/{widget-react-EUJcOcjS.js → widget-react-D8VVnE_C.js} +11 -3
- package/dist/{widget-react-DEf9HRCg.js → widget-react-DCMGvY8I.js} +11 -3
- package/dist/{widget-react-D3g52DyI.js → widget-react-Da9YD8ww.js} +11 -3
- package/dist/{widget-react-CEQ-cZAm.js → widget-react-DggFuVeH.js} +11 -3
- package/dist/{widget-react-D5-vMxtR2.js → widget-react-DvJJgkjL2.js} +11 -3
- package/dist/{widget-react-CRhaCC5f.js → widget-react-Dwh_wT04.js} +11 -3
- package/dist/{widget-react-CPQgBGlB.js → widget-react-DxMQL_8s.js} +11 -3
- package/dist/{widget-react-BfYqRknT.js → widget-react-OBiIuvv4.js} +11 -3
- package/dist/{widget-react-D6Pydbhg.js → widget-react-PPEhhlha.js} +11 -3
- package/dist/{widget-react-C90ZurSx.js → widget-react-TvsiLCVT.js} +11 -3
- package/dist/{widget-react-D2j_XvHF.js → widget-react-eXbKkl7c.js} +11 -3
- package/dist/{widget-react-BlpGsLnt.js → widget-react-nq6E5YOO.js} +363 -363
- package/dist/{widget-react-ecrdUwW-2.js → widget-react-qRVXcyaM2.js} +10 -2
- package/dist/{widget-react-BwHHN-at.js → widget-react-qdPNeB-W.js} +2 -2
- package/dist/widget-react.js +3351 -3084
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import "react";
|
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "react-dom/client";
|
|
14
|
-
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, Ct as o,
|
|
14
|
+
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, Gt as p, H as m, Ht as h, It as g, J as _, Jt as v, K as y, Kt as b, Lt as x, Mt as S, Nt as C, Ot as w, Pt as ee, Q as T, Qt as te, Rt as ne, St as re, Tt as ie, U as ae, Ut as E, V as oe, Vt as se, W as ce, Wt as le, Xt as ue, Y as D, Yt as de, Zt as fe, _t as pe, an as me, at as he, bt as ge, cn as _e, ct as O, dn as k, dt as ve, en as ye, et as A, fn as j, ft as be, g as xe, gt as Se, ht as Ce, in as M, it as we, jt as Te, kt as N, ln as P, lt as F, mn as Ee, mt as De, nt as Oe, on as ke, ot as Ae, pn as I, pt as je, q as Me, qt as L, rn as R, rt as Ne, sn as Pe, st as z, tn as B, tt as Fe, un as V, ut as Ie, vt as Le, w as Re, wt as ze, xt as Be, yt as Ve, z as H, zt as He } from "./widget-react-D4IN0PAd.js";
|
|
15
15
|
import { n as Ue, r as We } from "./widget-react-CQ0DMi7b.js";
|
|
16
16
|
import * as U from "react";
|
|
17
17
|
import { jsx as Ge } from "react/jsx-runtime";
|
|
@@ -62,7 +62,7 @@ var Ze = 80, Qe = {
|
|
|
62
62
|
FragmentDefinition: { leave: ({ name: e, typeCondition: t, variableDefinitions: n, directives: r, selectionSet: i, description: a }) => K("", a, "\n") + `fragment ${e}${K("(", W(n, ", "), ")")} on ${t} ${K("", W(r, " "), " ")}` + i },
|
|
63
63
|
IntValue: { leave: ({ value: e }) => e },
|
|
64
64
|
FloatValue: { leave: ({ value: e }) => e },
|
|
65
|
-
StringValue: { leave: ({ value: e, block: t }) => t ?
|
|
65
|
+
StringValue: { leave: ({ value: e, block: t }) => t ? ye(e) : Ke(e) },
|
|
66
66
|
BooleanValue: { leave: ({ value: e }) => e ? "true" : "false" },
|
|
67
67
|
NullValue: { leave: () => "null" },
|
|
68
68
|
EnumValue: { leave: ({ value: e }) => e },
|
|
@@ -209,7 +209,7 @@ function nt(e) {
|
|
|
209
209
|
}
|
|
210
210
|
var rt = function() {
|
|
211
211
|
function e(e, t) {
|
|
212
|
-
t === void 0 && (t = Object.create(null)), this.resultCache =
|
|
212
|
+
t === void 0 && (t = Object.create(null)), this.resultCache = b ? /* @__PURE__ */ new WeakSet() : /* @__PURE__ */ new Set(), this.transform = e, t.getCacheKey && (this.getCacheKey = t.getCacheKey), this.cached = t.cache !== !1, this.resetCache();
|
|
213
213
|
}
|
|
214
214
|
return e.prototype.getCacheKey = function(e) {
|
|
215
215
|
return [e];
|
|
@@ -225,18 +225,18 @@ var rt = function() {
|
|
|
225
225
|
}, e.prototype.resetCache = function() {
|
|
226
226
|
var t = this;
|
|
227
227
|
if (this.cached) {
|
|
228
|
-
var n = new
|
|
228
|
+
var n = new L(p);
|
|
229
229
|
this.performWork = Ie(e.prototype.performWork.bind(this), {
|
|
230
230
|
makeCacheKey: function(e) {
|
|
231
231
|
var r = t.getCacheKey(e);
|
|
232
232
|
if (r) return R(Array.isArray(r), 104), n.lookupArray(r);
|
|
233
233
|
},
|
|
234
|
-
max:
|
|
235
|
-
cache:
|
|
234
|
+
max: g["documentTransform.cache"],
|
|
235
|
+
cache: ne
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
}, e.prototype.performWork = function(e) {
|
|
239
|
-
return
|
|
239
|
+
return je(e), this.transform(e);
|
|
240
240
|
}, e.prototype.transformDocument = function(e) {
|
|
241
241
|
if (this.resultCache.has(e)) return e;
|
|
242
242
|
var t = this.performWork(e);
|
|
@@ -254,9 +254,9 @@ var rt = function() {
|
|
|
254
254
|
var t = it.get(e);
|
|
255
255
|
return t || (t = Xe(e), it.set(e, t)), t;
|
|
256
256
|
}, { reset: function() {
|
|
257
|
-
it = new
|
|
257
|
+
it = new x(g.print || 2e3);
|
|
258
258
|
} });
|
|
259
|
-
q.reset(), globalThis.__DEV__ !== !1 &&
|
|
259
|
+
q.reset(), globalThis.__DEV__ !== !1 && d("print", function() {
|
|
260
260
|
return it ? it.size : 0;
|
|
261
261
|
});
|
|
262
262
|
//#endregion
|
|
@@ -274,7 +274,7 @@ function ot(e, t) {
|
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
function st(e) {
|
|
277
|
-
return ot(Le(e) ||
|
|
277
|
+
return ot(Le(e) || Ce(e), He(Se(e))) ? null : e;
|
|
278
278
|
}
|
|
279
279
|
function ct(e) {
|
|
280
280
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
@@ -299,16 +299,16 @@ function lt(e) {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
function ut(e, n) {
|
|
302
|
-
|
|
302
|
+
je(n);
|
|
303
303
|
for (var r = lt(""), i = lt(""), a = function(e) {
|
|
304
|
-
for (var t = 0, n = void 0; t < e.length && (n = e[t]); ++t) if (!
|
|
304
|
+
for (var t = 0, n = void 0; t < e.length && (n = e[t]); ++t) if (!O(n)) {
|
|
305
305
|
if (n.kind === B.OPERATION_DEFINITION) return r(n.name && n.name.value);
|
|
306
306
|
if (n.kind === B.FRAGMENT_DEFINITION) return i(n.name.value);
|
|
307
307
|
}
|
|
308
308
|
return globalThis.__DEV__ !== !1 && R.error(124), null;
|
|
309
309
|
}, o = 0, s = n.definitions.length - 1; s >= 0; --s) n.definitions[s].kind === B.OPERATION_DEFINITION && ++o;
|
|
310
310
|
var c = ct(e), l = function(e) {
|
|
311
|
-
return
|
|
311
|
+
return F(e) && e.map(c).some(function(e) {
|
|
312
312
|
return e && e.remove;
|
|
313
313
|
});
|
|
314
314
|
}, u = /* @__PURE__ */ new Map(), d = !1, f = { enter: function(e) {
|
|
@@ -371,7 +371,7 @@ function ut(e, n) {
|
|
|
371
371
|
OperationDefinition: { leave: function(e) {
|
|
372
372
|
if (e.variableDefinitions) {
|
|
373
373
|
var t = m(r(e.name && e.name.value)).transitiveVars;
|
|
374
|
-
if (t.size < e.variableDefinitions.length) return
|
|
374
|
+
if (t.size < e.variableDefinitions.length) return P(P({}, e), { variableDefinitions: e.variableDefinitions.filter(function(e) {
|
|
375
375
|
return t.has(e.variable.name.value);
|
|
376
376
|
}) });
|
|
377
377
|
}
|
|
@@ -383,12 +383,12 @@ var dt = Object.assign(function(e) {
|
|
|
383
383
|
if (!(n && n.kind === B.OPERATION_DEFINITION)) {
|
|
384
384
|
var r = e.selections;
|
|
385
385
|
if (r && !r.some(function(e) {
|
|
386
|
-
return
|
|
386
|
+
return ie(e) && (e.name.value === "__typename" || e.name.value.lastIndexOf("__", 0) === 0);
|
|
387
387
|
})) {
|
|
388
388
|
var i = n;
|
|
389
|
-
if (!(
|
|
389
|
+
if (!(ie(i) && i.directives && i.directives.some(function(e) {
|
|
390
390
|
return e.name.value === "export";
|
|
391
|
-
}))) return
|
|
391
|
+
}))) return P(P({}, e), { selections: Ee(Ee([], r, !0), [at], !1) });
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
} } });
|
|
@@ -396,12 +396,12 @@ var dt = Object.assign(function(e) {
|
|
|
396
396
|
return e === at;
|
|
397
397
|
} });
|
|
398
398
|
function ft(e) {
|
|
399
|
-
return
|
|
400
|
-
return
|
|
399
|
+
return pe(e).operation === "query" ? e : t(e, { OperationDefinition: { enter: function(e) {
|
|
400
|
+
return P(P({}, e), { operation: "query" });
|
|
401
401
|
} } });
|
|
402
402
|
}
|
|
403
403
|
function pt(e) {
|
|
404
|
-
return
|
|
404
|
+
return je(e), ut([{
|
|
405
405
|
test: function(e) {
|
|
406
406
|
return e.name.value === "client";
|
|
407
407
|
},
|
|
@@ -409,10 +409,10 @@ function pt(e) {
|
|
|
409
409
|
}], e);
|
|
410
410
|
}
|
|
411
411
|
function mt(e) {
|
|
412
|
-
return
|
|
412
|
+
return je(e), t(e, { FragmentSpread: function(e) {
|
|
413
413
|
if (!e.directives?.some(function(e) {
|
|
414
414
|
return e.name.value === "unmask";
|
|
415
|
-
})) return
|
|
415
|
+
})) return P(P({}, e), { directives: Ee(Ee([], e.directives || [], !0), [{
|
|
416
416
|
kind: B.DIRECTIVE,
|
|
417
417
|
name: {
|
|
418
418
|
kind: B.NAME,
|
|
@@ -436,15 +436,15 @@ var vt = function(e, t, n) {
|
|
|
436
436
|
return this.merge(e[n], t[n]);
|
|
437
437
|
}, J = function() {
|
|
438
438
|
function e(e) {
|
|
439
|
-
e === void 0 && (e = vt), this.reconciler = e, this.isObject =
|
|
439
|
+
e === void 0 && (e = vt), this.reconciler = e, this.isObject = E, this.pastCopies = /* @__PURE__ */ new Set();
|
|
440
440
|
}
|
|
441
441
|
return e.prototype.merge = function(e, t) {
|
|
442
442
|
for (var n = this, r = [], i = 2; i < arguments.length; i++) r[i - 2] = arguments[i];
|
|
443
|
-
return
|
|
443
|
+
return E(t) && E(e) ? (Object.keys(t).forEach(function(i) {
|
|
444
444
|
if (ht.call(e, i)) {
|
|
445
445
|
var a = e[i];
|
|
446
446
|
if (t[i] !== a) {
|
|
447
|
-
var o = n.reconciler.apply(n,
|
|
447
|
+
var o = n.reconciler.apply(n, Ee([
|
|
448
448
|
e,
|
|
449
449
|
t,
|
|
450
450
|
i
|
|
@@ -454,7 +454,7 @@ var vt = function(e, t, n) {
|
|
|
454
454
|
} else e = n.shallowCopyForMerge(e), e[i] = t[i];
|
|
455
455
|
}), e) : t;
|
|
456
456
|
}, e.prototype.shallowCopyForMerge = function(e) {
|
|
457
|
-
return
|
|
457
|
+
return E(e) && (this.pastCopies.has(e) || (e = Array.isArray(e) ? e.slice(0) : P({ __proto__: Object.getPrototypeOf(e) }, e), this.pastCopies.add(e))), e;
|
|
458
458
|
}, e;
|
|
459
459
|
}();
|
|
460
460
|
//#endregion
|
|
@@ -500,7 +500,7 @@ function bt(e) {
|
|
|
500
500
|
return e && typeof e.then == "function";
|
|
501
501
|
}
|
|
502
502
|
var xt = function(e) {
|
|
503
|
-
|
|
503
|
+
k(t, e);
|
|
504
504
|
function t(t) {
|
|
505
505
|
var n = e.call(this, function(e) {
|
|
506
506
|
return n.addObserver(e), function() {
|
|
@@ -511,13 +511,13 @@ var xt = function(e) {
|
|
|
511
511
|
n.resolve = e, n.reject = t;
|
|
512
512
|
}), n.handlers = {
|
|
513
513
|
next: function(e) {
|
|
514
|
-
n.sub !== null && (n.latest = ["next", e], n.notify("next", e),
|
|
514
|
+
n.sub !== null && (n.latest = ["next", e], n.notify("next", e), we(n.observers, "next", e));
|
|
515
515
|
},
|
|
516
516
|
error: function(e) {
|
|
517
517
|
var t = n.sub;
|
|
518
518
|
t !== null && (t && setTimeout(function() {
|
|
519
519
|
return t.unsubscribe();
|
|
520
|
-
}), n.sub = null, n.latest = ["error", e], n.reject(e), n.notify("error", e),
|
|
520
|
+
}), n.sub = null, n.latest = ["error", e], n.reject(e), n.notify("error", e), we(n.observers, "error", e));
|
|
521
521
|
},
|
|
522
522
|
complete: function() {
|
|
523
523
|
var e = n, t = e.sub, r = e.sources, i = r === void 0 ? [] : r;
|
|
@@ -527,7 +527,7 @@ var xt = function(e) {
|
|
|
527
527
|
return n.sub = e.subscribe(n.handlers);
|
|
528
528
|
}, n.handlers.error) : n.sub = a.subscribe(n.handlers) : (t && setTimeout(function() {
|
|
529
529
|
return t.unsubscribe();
|
|
530
|
-
}), n.sub = null, n.latest && n.latest[0] === "next" ? n.resolve(n.latest[1]) : n.resolve(), n.notify("complete"),
|
|
530
|
+
}), n.sub = null, n.latest && n.latest[0] === "next" ? n.resolve(n.latest[1]) : n.resolve(), n.notify("complete"), we(n.observers, "complete"));
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}, n.nextResultListeners = /* @__PURE__ */ new Set(), n.cancel = function(e) {
|
|
@@ -572,11 +572,11 @@ function wt(e) {
|
|
|
572
572
|
return St(e) || Ct(e);
|
|
573
573
|
}
|
|
574
574
|
function Tt(e) {
|
|
575
|
-
return
|
|
575
|
+
return E(e) && "payload" in e;
|
|
576
576
|
}
|
|
577
577
|
function Et(e, t) {
|
|
578
578
|
var n = e, r = new J();
|
|
579
|
-
return St(t) &&
|
|
579
|
+
return St(t) && F(t.incremental) && t.incremental.forEach(function(e) {
|
|
580
580
|
for (var t = e.data, i = e.path, a = i.length - 1; a >= 0; --a) {
|
|
581
581
|
var o = i[a], s = isNaN(+o) ? {} : [];
|
|
582
582
|
s[o] = t, t = s;
|
|
@@ -587,11 +587,11 @@ function Et(e, t) {
|
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region node_modules/@apollo/client/utilities/common/errorHandling.js
|
|
589
589
|
function Dt(e) {
|
|
590
|
-
return
|
|
590
|
+
return F(Ot(e));
|
|
591
591
|
}
|
|
592
592
|
function Ot(e) {
|
|
593
|
-
var t =
|
|
594
|
-
return St(e) &&
|
|
593
|
+
var t = F(e.errors) ? e.errors.slice(0) : [];
|
|
594
|
+
return St(e) && F(e.incremental) && e.incremental.forEach(function(e) {
|
|
595
595
|
e.errors && t.push.apply(t, e.errors);
|
|
596
596
|
}), t;
|
|
597
597
|
}
|
|
@@ -619,23 +619,23 @@ function jt(e) {
|
|
|
619
619
|
"context"
|
|
620
620
|
], n = 0, r = Object.keys(e); n < r.length; n++) {
|
|
621
621
|
var i = r[n];
|
|
622
|
-
if (t.indexOf(i) < 0) throw
|
|
622
|
+
if (t.indexOf(i) < 0) throw M(58, i);
|
|
623
623
|
}
|
|
624
624
|
return e;
|
|
625
625
|
}
|
|
626
626
|
//#endregion
|
|
627
627
|
//#region node_modules/@apollo/client/link/utils/createOperation.js
|
|
628
628
|
function Mt(e, t) {
|
|
629
|
-
var n =
|
|
629
|
+
var n = P({}, e);
|
|
630
630
|
return Object.defineProperty(t, "setContext", {
|
|
631
631
|
enumerable: !1,
|
|
632
632
|
value: function(e) {
|
|
633
|
-
n = typeof e == "function" ?
|
|
633
|
+
n = typeof e == "function" ? P(P({}, n), e(n)) : P(P({}, n), e);
|
|
634
634
|
}
|
|
635
635
|
}), Object.defineProperty(t, "getContext", {
|
|
636
636
|
enumerable: !1,
|
|
637
637
|
value: function() {
|
|
638
|
-
return
|
|
638
|
+
return P({}, n);
|
|
639
639
|
}
|
|
640
640
|
}), t;
|
|
641
641
|
}
|
|
@@ -653,7 +653,7 @@ function Nt(e) {
|
|
|
653
653
|
//#endregion
|
|
654
654
|
//#region node_modules/@apollo/client/link/utils/filterOperationVariables.js
|
|
655
655
|
function Pt(e, n) {
|
|
656
|
-
var r =
|
|
656
|
+
var r = P({}, e), i = new Set(Object.keys(e));
|
|
657
657
|
return t(n, { Variable: function(e, t, n) {
|
|
658
658
|
n && n.kind !== "VariableDefinition" && i.delete(e.name.value);
|
|
659
659
|
} }), i.forEach(function(e) {
|
|
@@ -716,7 +716,7 @@ var Y = function() {
|
|
|
716
716
|
}, t.prototype.concat = function(e) {
|
|
717
717
|
return t.concat(this, e);
|
|
718
718
|
}, t.prototype.request = function(e, t) {
|
|
719
|
-
throw
|
|
719
|
+
throw M(48);
|
|
720
720
|
}, t.prototype.onError = function(t, n) {
|
|
721
721
|
if (globalThis.__DEV__ !== !1 && e("onError", function() {
|
|
722
722
|
globalThis.__DEV__ !== !1 && R.warn(49);
|
|
@@ -785,7 +785,7 @@ function Vt(e) {
|
|
|
785
785
|
var u = { next: function() {
|
|
786
786
|
return l();
|
|
787
787
|
} };
|
|
788
|
-
return
|
|
788
|
+
return le && (u[Symbol.asyncIterator] = function() {
|
|
789
789
|
return this;
|
|
790
790
|
}), u;
|
|
791
791
|
}
|
|
@@ -805,7 +805,7 @@ function Ht(e) {
|
|
|
805
805
|
}).catch(n);
|
|
806
806
|
}));
|
|
807
807
|
} };
|
|
808
|
-
return
|
|
808
|
+
return le && (n[Symbol.asyncIterator] = function() {
|
|
809
809
|
return this;
|
|
810
810
|
}), n;
|
|
811
811
|
}
|
|
@@ -815,7 +815,7 @@ function Ut(e) {
|
|
|
815
815
|
var t = { next: function() {
|
|
816
816
|
return e.read();
|
|
817
817
|
} };
|
|
818
|
-
return
|
|
818
|
+
return le && (t[Symbol.asyncIterator] = function() {
|
|
819
819
|
return this;
|
|
820
820
|
}), t;
|
|
821
821
|
}
|
|
@@ -828,7 +828,7 @@ function Gt(e) {
|
|
|
828
828
|
return !!e.getReader;
|
|
829
829
|
}
|
|
830
830
|
function Kt(e) {
|
|
831
|
-
return !!(
|
|
831
|
+
return !!(le && e[Symbol.asyncIterator]);
|
|
832
832
|
}
|
|
833
833
|
function qt(e) {
|
|
834
834
|
return !!e.stream;
|
|
@@ -853,24 +853,24 @@ function Xt(e) {
|
|
|
853
853
|
var Zt = Object.prototype.hasOwnProperty;
|
|
854
854
|
function Qt(e, t) {
|
|
855
855
|
return V(this, void 0, void 0, function() {
|
|
856
|
-
var n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _,
|
|
857
|
-
return
|
|
858
|
-
switch (
|
|
856
|
+
var n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, b, x, S, C, w, ee;
|
|
857
|
+
return j(this, function(T) {
|
|
858
|
+
switch (T.label) {
|
|
859
859
|
case 0:
|
|
860
860
|
if (TextDecoder === void 0) throw Error("TextDecoder must be defined in the environment: please import a polyfill.");
|
|
861
861
|
n = new TextDecoder("utf-8"), r = e.headers?.get("content-type"), i = "boundary=", a = r?.includes(i) ? r?.substring(r?.indexOf(i) + i.length).replace(/['"]/g, "").replace(/\;(.*)/gm, "").trim() : "-", o = `\r
|
|
862
|
-
--${a}`, s = "", c = Xt(e), l = !0,
|
|
862
|
+
--${a}`, s = "", c = Xt(e), l = !0, T.label = 1;
|
|
863
863
|
case 1: return l ? [4, c.next()] : [3, 3];
|
|
864
864
|
case 2:
|
|
865
|
-
for (u =
|
|
866
|
-
if (g = void 0, w = [s.slice(0, h), s.slice(h + o.length)], g = w[0], s = w[1], _ = g.indexOf("\r\n\r\n"),
|
|
865
|
+
for (u = T.sent(), d = u.value, f = u.done, p = typeof d == "string" ? d : n.decode(d), m = s.length - o.length + 1, l = !f, s += p, h = s.indexOf(o, m); h > -1;) {
|
|
866
|
+
if (g = void 0, w = [s.slice(0, h), s.slice(h + o.length)], g = w[0], s = w[1], _ = g.indexOf("\r\n\r\n"), v = $t(g.slice(0, _)), b = v["content-type"], b && b.toLowerCase().indexOf("application/json") === -1) throw Error("Unsupported patch content type: application/json is required.");
|
|
867
867
|
if (x = g.slice(_), x) {
|
|
868
868
|
if (S = en(e, x), Object.keys(S).length > 1 || "data" in S || "incremental" in S || "errors" in S || "payload" in S) if (Tt(S)) {
|
|
869
869
|
if (C = {}, "payload" in S) {
|
|
870
870
|
if (Object.keys(S).length === 1 && S.payload === null) return [2];
|
|
871
|
-
C =
|
|
871
|
+
C = P({}, S.payload);
|
|
872
872
|
}
|
|
873
|
-
"errors" in S && (C =
|
|
873
|
+
"errors" in S && (C = P(P({}, C), { extensions: P(P({}, "extensions" in C ? C.extensions : null), (ee = {}, ee[y] = S.errors, ee)) })), t(C);
|
|
874
874
|
} else t(S);
|
|
875
875
|
else if (Object.keys(S).length === 1 && "hasNext" in S && !S.hasNext) return [2];
|
|
876
876
|
}
|
|
@@ -928,7 +928,7 @@ var rn = function(e, t) {
|
|
|
928
928
|
try {
|
|
929
929
|
n = JSON.stringify(e);
|
|
930
930
|
} catch (e) {
|
|
931
|
-
var r =
|
|
931
|
+
var r = M(54, t, e.message);
|
|
932
932
|
throw r.parseError = e, r;
|
|
933
933
|
}
|
|
934
934
|
return n;
|
|
@@ -949,7 +949,7 @@ var rn = function(e, t) {
|
|
|
949
949
|
function sn(e, t) {
|
|
950
950
|
var n = [...arguments].slice(2), r = {}, i = {};
|
|
951
951
|
n.forEach(function(e) {
|
|
952
|
-
r =
|
|
952
|
+
r = P(P(P({}, r), e.options), { headers: P(P({}, r.headers), e.headers) }), e.credentials && (r.credentials = e.credentials), i = P(P({}, i), e.http);
|
|
953
953
|
}), r.headers && (r.headers = cn(r.headers, i.preserveHeaderCase));
|
|
954
954
|
var a = e.operationName, o = e.extensions, s = e.variables, c = e.query, l = {
|
|
955
955
|
operationName: a,
|
|
@@ -982,7 +982,7 @@ function cn(e, t) {
|
|
|
982
982
|
//#endregion
|
|
983
983
|
//#region node_modules/@apollo/client/link/http/checkFetcher.js
|
|
984
984
|
var ln = function(e) {
|
|
985
|
-
if (!e && typeof fetch > "u") throw
|
|
985
|
+
if (!e && typeof fetch > "u") throw M(51);
|
|
986
986
|
}, un = function(e, t) {
|
|
987
987
|
return e.getContext().uri || (typeof t == "function" ? t(e) : t || "/graphql");
|
|
988
988
|
};
|
|
@@ -1021,7 +1021,7 @@ var fn = Pe(function() {
|
|
|
1021
1021
|
return fetch;
|
|
1022
1022
|
}), pn = function(e) {
|
|
1023
1023
|
e === void 0 && (e = {});
|
|
1024
|
-
var t = e.uri, n = t === void 0 ? "/graphql" : t, r = e.fetch, i = e.print, a = i === void 0 ? on : i, o = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, l = e.includeUnusedVariables, u = l === void 0 ? !1 : l, d =
|
|
1024
|
+
var t = e.uri, n = t === void 0 ? "/graphql" : t, r = e.fetch, i = e.print, a = i === void 0 ? on : i, o = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, l = e.includeUnusedVariables, u = l === void 0 ? !1 : l, d = I(e, [
|
|
1025
1025
|
"uri",
|
|
1026
1026
|
"fetch",
|
|
1027
1027
|
"print",
|
|
@@ -1046,13 +1046,13 @@ var fn = Pe(function() {
|
|
|
1046
1046
|
var s = i.clientAwareness, l = s.name, d = s.version;
|
|
1047
1047
|
l && (o["apollographql-client-name"] = l), d && (o["apollographql-client-version"] = d);
|
|
1048
1048
|
}
|
|
1049
|
-
var p =
|
|
1049
|
+
var p = P(P({}, o), i.headers), m = {
|
|
1050
1050
|
http: i.http,
|
|
1051
1051
|
options: i.fetchOptions,
|
|
1052
1052
|
credentials: i.credentials,
|
|
1053
1053
|
headers: p
|
|
1054
1054
|
};
|
|
1055
|
-
if (
|
|
1055
|
+
if (ue(["client"], e.query)) {
|
|
1056
1056
|
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(52);
|
|
1057
1057
|
var h = pt(e.query);
|
|
1058
1058
|
if (!h) return kt(/* @__PURE__ */ Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));
|
|
@@ -1066,16 +1066,16 @@ var fn = Pe(function() {
|
|
|
1066
1066
|
return e.kind === "OperationDefinition" && e.operation === "mutation";
|
|
1067
1067
|
}, x = function(e) {
|
|
1068
1068
|
return e.kind === "OperationDefinition" && e.operation === "subscription";
|
|
1069
|
-
}(
|
|
1069
|
+
}(pe(e.query)), S = ue(["defer"], e.query);
|
|
1070
1070
|
if (c && !e.query.definitions.some(b) && (_.method = "GET"), S || x) {
|
|
1071
1071
|
_.headers = _.headers || {};
|
|
1072
1072
|
var C = "multipart/mixed;";
|
|
1073
1073
|
x && S && globalThis.__DEV__ !== !1 && R.warn(53), x ? C += "boundary=graphql;subscriptionSpec=1.0,application/json" : S && (C += "deferSpec=20220824,application/json"), _.headers.accept = C;
|
|
1074
1074
|
}
|
|
1075
1075
|
if (_.method === "GET") {
|
|
1076
|
-
var w = dn(t, v),
|
|
1077
|
-
if (
|
|
1078
|
-
t =
|
|
1076
|
+
var w = dn(t, v), ee = w.newURI, T = w.parseError;
|
|
1077
|
+
if (T) return kt(T);
|
|
1078
|
+
t = ee;
|
|
1079
1079
|
} else try {
|
|
1080
1080
|
_.body = rn(v, "Payload");
|
|
1081
1081
|
} catch (e) {
|
|
@@ -1099,14 +1099,14 @@ var fn = Pe(function() {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
});
|
|
1101
1101
|
}, mn = function(e) {
|
|
1102
|
-
|
|
1102
|
+
k(t, e);
|
|
1103
1103
|
function t(t) {
|
|
1104
1104
|
t === void 0 && (t = {});
|
|
1105
1105
|
var n = e.call(this, pn(t).request) || this;
|
|
1106
1106
|
return n.options = t, n;
|
|
1107
1107
|
}
|
|
1108
1108
|
return t;
|
|
1109
|
-
}(Y), hn =
|
|
1109
|
+
}(Y), hn = p ? WeakMap : Map, gn = b ? WeakSet : Set, _n = new be(), vn = !1;
|
|
1110
1110
|
function yn() {
|
|
1111
1111
|
vn || (vn = !0, globalThis.__DEV__ !== !1 && R.warn(64));
|
|
1112
1112
|
}
|
|
@@ -1115,7 +1115,7 @@ function yn() {
|
|
|
1115
1115
|
function bn(e, t, n) {
|
|
1116
1116
|
return _n.withValue(!0, function() {
|
|
1117
1117
|
var r = Sn(e, t, n, !1);
|
|
1118
|
-
return Object.isFrozen(e) &&
|
|
1118
|
+
return Object.isFrozen(e) && he(r), r;
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
1121
|
function xn(e, t) {
|
|
@@ -1140,18 +1140,18 @@ function Sn(e, t, n, r, i) {
|
|
|
1140
1140
|
for (var p = 0, m = t.selections; p < m.length; p++) {
|
|
1141
1141
|
var h = m[p], g = void 0;
|
|
1142
1142
|
if (r && a.add(o), h.kind === B.FIELD) {
|
|
1143
|
-
var
|
|
1144
|
-
if (g = o[
|
|
1143
|
+
var _ = N(h), y = h.selectionSet;
|
|
1144
|
+
if (g = o[_] || e[_], g === void 0) continue;
|
|
1145
1145
|
if (y && g !== null) {
|
|
1146
|
-
var f = Sn(e[
|
|
1146
|
+
var f = Sn(e[_], y, n, r, globalThis.__DEV__ === !1 ? void 0 : `${i || ""}.${_}`);
|
|
1147
1147
|
a.has(f) && (g = f);
|
|
1148
1148
|
}
|
|
1149
|
-
globalThis.__DEV__ === !1 && (o[
|
|
1149
|
+
globalThis.__DEV__ === !1 && (o[_] = g), globalThis.__DEV__ !== !1 && (r && _ !== "__typename" && !Object.getOwnPropertyDescriptor(o, _)?.value ? Object.defineProperty(o, _, Cn(_, g, i || "", n.operationName, n.operationType)) : (delete o[_], o[_] = g));
|
|
1150
1150
|
}
|
|
1151
1151
|
if (h.kind === B.INLINE_FRAGMENT && (!h.typeCondition || n.cache.fragmentMatches(h, e.__typename)) && (g = Sn(e, h.selectionSet, n, r, i)), h.kind === B.FRAGMENT_SPREAD) {
|
|
1152
1152
|
var b = h.name.value, x = n.fragmentMap[b] || (n.fragmentMap[b] = n.cache.lookupFragment(b));
|
|
1153
1153
|
R(x, 59, b);
|
|
1154
|
-
var S =
|
|
1154
|
+
var S = v(h);
|
|
1155
1155
|
S !== "mask" && (g = Sn(e, x.selectionSet, n, S === "migrate", i));
|
|
1156
1156
|
}
|
|
1157
1157
|
a.has(g) && a.add(o);
|
|
@@ -1188,10 +1188,10 @@ function wn(e, t, n, r) {
|
|
|
1188
1188
|
var a = i.find(function(e) {
|
|
1189
1189
|
return e.name.value === r;
|
|
1190
1190
|
});
|
|
1191
|
-
return R(!!a, 62, r), e == null ||
|
|
1191
|
+
return R(!!a, 62, r), e == null || D(e, {}) ? e : bn(e, a.selectionSet, {
|
|
1192
1192
|
operationType: "fragment",
|
|
1193
1193
|
operationName: a.name.value,
|
|
1194
|
-
fragmentMap: He(
|
|
1194
|
+
fragmentMap: He(Se(t)),
|
|
1195
1195
|
cache: n,
|
|
1196
1196
|
mutableTargets: new hn(),
|
|
1197
1197
|
knownChanged: new gn()
|
|
@@ -1205,7 +1205,7 @@ function Tn(e, t, n) {
|
|
|
1205
1205
|
return R(r, 63), e == null ? e : bn(e, r.selectionSet, {
|
|
1206
1206
|
operationType: r.operation,
|
|
1207
1207
|
operationName: r.name?.value,
|
|
1208
|
-
fragmentMap: He(
|
|
1208
|
+
fragmentMap: He(Se(t)),
|
|
1209
1209
|
cache: n,
|
|
1210
1210
|
mutableTargets: new hn(),
|
|
1211
1211
|
knownChanged: new gn()
|
|
@@ -1215,9 +1215,9 @@ function Tn(e, t, n) {
|
|
|
1215
1215
|
//#region node_modules/@apollo/client/cache/core/cache.js
|
|
1216
1216
|
var En = function() {
|
|
1217
1217
|
function e() {
|
|
1218
|
-
this.assumeImmutableResults = !1, this.getFragmentDoc = Ie(
|
|
1219
|
-
max:
|
|
1220
|
-
cache:
|
|
1218
|
+
this.assumeImmutableResults = !1, this.getFragmentDoc = Ie(se, {
|
|
1219
|
+
max: g["cache.fragmentQueryDocuments"] || 1e3,
|
|
1220
|
+
cache: ne
|
|
1221
1221
|
});
|
|
1222
1222
|
}
|
|
1223
1223
|
return e.prototype.lookupFragment = function(e) {
|
|
@@ -1239,63 +1239,63 @@ var En = function() {
|
|
|
1239
1239
|
return !1;
|
|
1240
1240
|
}, e.prototype.readQuery = function(e, t) {
|
|
1241
1241
|
var n = this;
|
|
1242
|
-
return t === void 0 && (t = !!e.optimistic), globalThis.__DEV__ !== !1 &&
|
|
1243
|
-
return n.read(
|
|
1242
|
+
return t === void 0 && (t = !!e.optimistic), globalThis.__DEV__ !== !1 && A(e, "canonizeResults", "cache.readQuery"), T("canonizeResults", function() {
|
|
1243
|
+
return n.read(P(P({}, e), {
|
|
1244
1244
|
rootId: e.id || "ROOT_QUERY",
|
|
1245
1245
|
optimistic: t
|
|
1246
1246
|
}));
|
|
1247
1247
|
});
|
|
1248
1248
|
}, e.prototype.watchFragment = function(e) {
|
|
1249
|
-
var t = this, n = e.fragment, r = e.fragmentName, i = e.from, a = e.optimistic, o = a === void 0 ? !0 : a, s =
|
|
1249
|
+
var t = this, n = e.fragment, r = e.fragmentName, i = e.from, a = e.optimistic, o = a === void 0 ? !0 : a, s = I(e, [
|
|
1250
1250
|
"fragment",
|
|
1251
1251
|
"fragmentName",
|
|
1252
1252
|
"from",
|
|
1253
1253
|
"optimistic"
|
|
1254
1254
|
]), c = this.getFragmentDoc(n, r), l = i === void 0 || typeof i == "string" ? i : this.identify(i), u = !!e[Symbol.for("apollo.dataMasking")];
|
|
1255
1255
|
if (globalThis.__DEV__ !== !1) {
|
|
1256
|
-
var d = r ||
|
|
1256
|
+
var d = r || Ce(n).name.value;
|
|
1257
1257
|
l || globalThis.__DEV__ !== !1 && R.warn(1, d);
|
|
1258
1258
|
}
|
|
1259
|
-
var f =
|
|
1259
|
+
var f = P(P({}, s), {
|
|
1260
1260
|
returnPartialData: !0,
|
|
1261
1261
|
id: l,
|
|
1262
1262
|
query: c,
|
|
1263
1263
|
optimistic: o
|
|
1264
1264
|
}), p;
|
|
1265
1265
|
return new z(function(i) {
|
|
1266
|
-
return t.watch(
|
|
1266
|
+
return t.watch(P(P({}, f), {
|
|
1267
1267
|
immediate: !0,
|
|
1268
1268
|
callback: function(a) {
|
|
1269
1269
|
var o = u ? wn(a.result, n, t, r) : a.result;
|
|
1270
|
-
if (!(p &&
|
|
1270
|
+
if (!(p && ce(c, { data: p.result }, { data: o }, e.variables))) {
|
|
1271
1271
|
var s = {
|
|
1272
1272
|
data: o,
|
|
1273
1273
|
complete: !!a.complete
|
|
1274
1274
|
};
|
|
1275
1275
|
a.missing && (s.missing = _t(a.missing.map(function(e) {
|
|
1276
1276
|
return e.missing;
|
|
1277
|
-
}))), p =
|
|
1277
|
+
}))), p = P(P({}, a), { result: o }), i.next(s);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
}));
|
|
1281
1281
|
});
|
|
1282
1282
|
}, e.prototype.readFragment = function(e, t) {
|
|
1283
1283
|
var n = this;
|
|
1284
|
-
return t === void 0 && (t = !!e.optimistic), globalThis.__DEV__ !== !1 &&
|
|
1285
|
-
return n.read(
|
|
1284
|
+
return t === void 0 && (t = !!e.optimistic), globalThis.__DEV__ !== !1 && A(e, "canonizeResults", "cache.readFragment"), T("canonizeResults", function() {
|
|
1285
|
+
return n.read(P(P({}, e), {
|
|
1286
1286
|
query: n.getFragmentDoc(e.fragment, e.fragmentName),
|
|
1287
1287
|
rootId: e.id,
|
|
1288
1288
|
optimistic: t
|
|
1289
1289
|
}));
|
|
1290
1290
|
});
|
|
1291
1291
|
}, e.prototype.writeQuery = function(e) {
|
|
1292
|
-
var t = e.id, n = e.data, r =
|
|
1292
|
+
var t = e.id, n = e.data, r = I(e, ["id", "data"]);
|
|
1293
1293
|
return this.write(Object.assign(r, {
|
|
1294
1294
|
dataId: t || "ROOT_QUERY",
|
|
1295
1295
|
result: n
|
|
1296
1296
|
}));
|
|
1297
1297
|
}, e.prototype.writeFragment = function(e) {
|
|
1298
|
-
var t = e.id, n = e.data, r = e.fragment, i = e.fragmentName, a =
|
|
1298
|
+
var t = e.id, n = e.data, r = e.fragment, i = e.fragmentName, a = I(e, [
|
|
1299
1299
|
"id",
|
|
1300
1300
|
"data",
|
|
1301
1301
|
"fragment",
|
|
@@ -1307,26 +1307,26 @@ var En = function() {
|
|
|
1307
1307
|
result: n
|
|
1308
1308
|
}));
|
|
1309
1309
|
}, e.prototype.updateQuery = function(e, t) {
|
|
1310
|
-
return globalThis.__DEV__ !== !1 &&
|
|
1310
|
+
return globalThis.__DEV__ !== !1 && A(e, "canonizeResults", "cache.updateQuery"), this.batch({ update: function(n) {
|
|
1311
1311
|
var r = T("canonizeResults", function() {
|
|
1312
1312
|
return n.readQuery(e);
|
|
1313
1313
|
}), i = t(r);
|
|
1314
|
-
return i == null ? r : (n.writeQuery(
|
|
1314
|
+
return i == null ? r : (n.writeQuery(P(P({}, e), { data: i })), i);
|
|
1315
1315
|
} });
|
|
1316
1316
|
}, e.prototype.updateFragment = function(e, t) {
|
|
1317
|
-
return globalThis.__DEV__ !== !1 &&
|
|
1317
|
+
return globalThis.__DEV__ !== !1 && A(e, "canonizeResults", "cache.updateFragment"), this.batch({ update: function(n) {
|
|
1318
1318
|
var r = T("canonizeResults", function() {
|
|
1319
1319
|
return n.readFragment(e);
|
|
1320
1320
|
}), i = t(r);
|
|
1321
|
-
return i == null ? r : (n.writeFragment(
|
|
1321
|
+
return i == null ? r : (n.writeFragment(P(P({}, e), { data: i })), i);
|
|
1322
1322
|
} });
|
|
1323
1323
|
}, e;
|
|
1324
1324
|
}();
|
|
1325
|
-
globalThis.__DEV__ !== !1 && (En.prototype.getMemoryInternals =
|
|
1325
|
+
globalThis.__DEV__ !== !1 && (En.prototype.getMemoryInternals = S);
|
|
1326
1326
|
//#endregion
|
|
1327
1327
|
//#region node_modules/@apollo/client/cache/core/types/common.js
|
|
1328
1328
|
var Dn = function(e) {
|
|
1329
|
-
|
|
1329
|
+
k(t, e);
|
|
1330
1330
|
function t(n, r, i, a) {
|
|
1331
1331
|
var o, s = e.call(this, n) || this;
|
|
1332
1332
|
if (s.message = n, s.path = r, s.query = i, s.variables = a, Array.isArray(s.path)) {
|
|
@@ -1351,14 +1351,14 @@ var An = {
|
|
|
1351
1351
|
canonizeResults: !1
|
|
1352
1352
|
};
|
|
1353
1353
|
function jn(e) {
|
|
1354
|
-
return
|
|
1354
|
+
return Oe(An, e);
|
|
1355
1355
|
}
|
|
1356
1356
|
function Mn(e) {
|
|
1357
1357
|
var t = e.canonizeResults;
|
|
1358
1358
|
return t === void 0 ? An.canonizeResults : t;
|
|
1359
1359
|
}
|
|
1360
1360
|
function Nn(e, t) {
|
|
1361
|
-
return
|
|
1361
|
+
return c(t) ? e.get(t.__ref, "__typename") : t && t.__typename;
|
|
1362
1362
|
}
|
|
1363
1363
|
var Pn = /^[_a-z][_0-9a-z]*/i;
|
|
1364
1364
|
function Z(e) {
|
|
@@ -1366,24 +1366,24 @@ function Z(e) {
|
|
|
1366
1366
|
return t ? t[0] : e;
|
|
1367
1367
|
}
|
|
1368
1368
|
function Fn(e, t, n) {
|
|
1369
|
-
return
|
|
1369
|
+
return E(t) ? O(t) ? t.every(function(t) {
|
|
1370
1370
|
return Fn(e, t, n);
|
|
1371
1371
|
}) : e.selections.every(function(e) {
|
|
1372
|
-
if (
|
|
1373
|
-
var r =
|
|
1372
|
+
if (ie(e) && fe(e, n)) {
|
|
1373
|
+
var r = N(e);
|
|
1374
1374
|
return X.call(t, r) && (!e.selectionSet || Fn(e.selectionSet, t[r], n));
|
|
1375
1375
|
}
|
|
1376
1376
|
return !0;
|
|
1377
1377
|
}) : !1;
|
|
1378
1378
|
}
|
|
1379
1379
|
function In(e) {
|
|
1380
|
-
return
|
|
1380
|
+
return E(e) && !c(e) && !O(e);
|
|
1381
1381
|
}
|
|
1382
1382
|
function Ln() {
|
|
1383
1383
|
return new J();
|
|
1384
1384
|
}
|
|
1385
1385
|
function Rn(e, t) {
|
|
1386
|
-
var n = He(
|
|
1386
|
+
var n = He(Se(e));
|
|
1387
1387
|
return {
|
|
1388
1388
|
fragmentMap: n,
|
|
1389
1389
|
lookupFragment: function(e) {
|
|
@@ -1400,21 +1400,21 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1400
1400
|
function e(e, t) {
|
|
1401
1401
|
var n = this;
|
|
1402
1402
|
this.policies = e, this.group = t, this.data = Object.create(null), this.rootIds = Object.create(null), this.refs = Object.create(null), this.getFieldValue = function(e, t) {
|
|
1403
|
-
return
|
|
1403
|
+
return he(c(e) ? n.get(e.__ref, t) : e && e[t]);
|
|
1404
1404
|
}, this.canRead = function(e) {
|
|
1405
|
-
return
|
|
1405
|
+
return c(e) ? n.has(e.__ref) : typeof e == "object";
|
|
1406
1406
|
}, this.toReference = function(e, t) {
|
|
1407
|
-
if (typeof e == "string") return
|
|
1408
|
-
if (
|
|
1407
|
+
if (typeof e == "string") return w(e);
|
|
1408
|
+
if (c(e)) return e;
|
|
1409
1409
|
var r = n.policies.identify(e)[0];
|
|
1410
1410
|
if (r) {
|
|
1411
|
-
var i =
|
|
1411
|
+
var i = w(r);
|
|
1412
1412
|
return t && n.merge(r, e), i;
|
|
1413
1413
|
}
|
|
1414
1414
|
};
|
|
1415
1415
|
}
|
|
1416
1416
|
return e.prototype.toObject = function() {
|
|
1417
|
-
return
|
|
1417
|
+
return P({}, this.data);
|
|
1418
1418
|
}, e.prototype.has = function(e) {
|
|
1419
1419
|
return this.lookup(e, !0) !== void 0;
|
|
1420
1420
|
}, e.prototype.get = function(e, t) {
|
|
@@ -1430,20 +1430,20 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1430
1430
|
if (this.policies.rootTypenamesById[e]) return Object.create(null);
|
|
1431
1431
|
}, e.prototype.merge = function(e, t) {
|
|
1432
1432
|
var n = this, r;
|
|
1433
|
-
|
|
1433
|
+
c(e) && (e = e.__ref), c(t) && (t = t.__ref);
|
|
1434
1434
|
var i = typeof e == "string" ? this.lookup(r = e) : e, a = typeof t == "string" ? this.lookup(r = t) : t;
|
|
1435
1435
|
if (a) {
|
|
1436
1436
|
R(typeof r == "string", 2);
|
|
1437
1437
|
var o = new J(qn).merge(i, a);
|
|
1438
1438
|
if (this.data[r] = o, o !== i && (delete this.refs[r], this.group.caching)) {
|
|
1439
|
-
var
|
|
1440
|
-
i || (
|
|
1439
|
+
var s = Object.create(null);
|
|
1440
|
+
i || (s.__exists = 1), Object.keys(a).forEach(function(e) {
|
|
1441
1441
|
if (!i || i[e] !== o[e]) {
|
|
1442
|
-
|
|
1442
|
+
s[e] = 1;
|
|
1443
1443
|
var t = Z(e);
|
|
1444
|
-
t !== e && !n.policies.hasKeyArgs(o.__typename, t) && (
|
|
1444
|
+
t !== e && !n.policies.hasKeyArgs(o.__typename, t) && (s[t] = 1), o[e] === void 0 && !(n instanceof Q) && delete o[e];
|
|
1445
1445
|
}
|
|
1446
|
-
}),
|
|
1446
|
+
}), s.__typename && !(i && i.__typename) && this.policies.rootTypenamesById[r] === o.__typename && delete s.__typename, Object.keys(s).forEach(function(e) {
|
|
1447
1447
|
return n.group.dirty(r, e);
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
@@ -1451,16 +1451,16 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1451
1451
|
}, e.prototype.modify = function(e, t) {
|
|
1452
1452
|
var n = this, r = this.lookup(e);
|
|
1453
1453
|
if (r) {
|
|
1454
|
-
var i = Object.create(null), a = !1, o = !0,
|
|
1454
|
+
var i = Object.create(null), a = !1, o = !0, s = {
|
|
1455
1455
|
DELETE: zn,
|
|
1456
1456
|
INVALIDATE: Vn,
|
|
1457
|
-
isReference:
|
|
1457
|
+
isReference: c,
|
|
1458
1458
|
toReference: this.toReference,
|
|
1459
1459
|
canRead: this.canRead,
|
|
1460
1460
|
readField: function(t, r) {
|
|
1461
1461
|
return n.policies.readField(typeof t == "string" ? {
|
|
1462
1462
|
fieldName: t,
|
|
1463
|
-
from: r ||
|
|
1463
|
+
from: r || w(e)
|
|
1464
1464
|
} : t, { store: n });
|
|
1465
1465
|
}
|
|
1466
1466
|
};
|
|
@@ -1469,7 +1469,7 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1469
1469
|
if (d !== void 0) {
|
|
1470
1470
|
var f = typeof t == "function" ? t : t[l] || t[u];
|
|
1471
1471
|
if (f) {
|
|
1472
|
-
var p = f === Bn ? zn : f(
|
|
1472
|
+
var p = f === Bn ? zn : f(he(d), P(P({}, s), {
|
|
1473
1473
|
fieldName: u,
|
|
1474
1474
|
storeFieldName: l,
|
|
1475
1475
|
storage: n.getStorage(e, l)
|
|
@@ -1479,10 +1479,10 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1479
1479
|
var m = function(e) {
|
|
1480
1480
|
if (n.lookup(e.__ref) === void 0) return globalThis.__DEV__ !== !1 && R.warn(3, e), !0;
|
|
1481
1481
|
};
|
|
1482
|
-
if (
|
|
1482
|
+
if (c(p)) m(p);
|
|
1483
1483
|
else if (Array.isArray(p)) for (var h = !1, g = void 0, _ = 0, v = p; _ < v.length; _++) {
|
|
1484
1484
|
var y = v[_];
|
|
1485
|
-
if (
|
|
1485
|
+
if (c(y)) {
|
|
1486
1486
|
if (h = !0, m(y)) break;
|
|
1487
1487
|
} else typeof y == "object" && y && n.policies.identify(y)[0] && (g = y);
|
|
1488
1488
|
if (h && g !== void 0) {
|
|
@@ -1523,7 +1523,7 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1523
1523
|
if (Object.keys(this.data).forEach(function(n) {
|
|
1524
1524
|
e && X.call(e, n) || t.delete(n);
|
|
1525
1525
|
}), e) {
|
|
1526
|
-
var n = e.__META, r =
|
|
1526
|
+
var n = e.__META, r = I(e, ["__META"]);
|
|
1527
1527
|
Object.keys(r).forEach(function(e) {
|
|
1528
1528
|
t.merge(e, r[e]);
|
|
1529
1529
|
}), n && n.extraRootIds.forEach(this.retain, this);
|
|
@@ -1557,9 +1557,9 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1557
1557
|
if (!n) return t;
|
|
1558
1558
|
var r = new Set([n]);
|
|
1559
1559
|
r.forEach(function(e) {
|
|
1560
|
-
|
|
1560
|
+
c(e) && (t[e.__ref] = !0), E(e) && Object.keys(e).forEach(function(t) {
|
|
1561
1561
|
var n = e[t];
|
|
1562
|
-
|
|
1562
|
+
E(n) && r.add(n);
|
|
1563
1563
|
});
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
@@ -1572,7 +1572,7 @@ var zn = Object.create(null), Bn = function() {
|
|
|
1572
1572
|
t === void 0 && (t = null), this.caching = e, this.parent = t, this.d = null, this.resetCaching();
|
|
1573
1573
|
}
|
|
1574
1574
|
return e.prototype.resetCaching = function() {
|
|
1575
|
-
this.d = this.caching ?
|
|
1575
|
+
this.d = this.caching ? ve() : null, this.keyMaker = new L(p);
|
|
1576
1576
|
}, e.prototype.depend = function(e, t) {
|
|
1577
1577
|
if (this.d) {
|
|
1578
1578
|
this.d(Wn(e, t));
|
|
@@ -1591,10 +1591,10 @@ function Gn(e, t) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
(function(e) {
|
|
1593
1593
|
e.Root = function(e) {
|
|
1594
|
-
|
|
1594
|
+
k(t, e);
|
|
1595
1595
|
function t(t) {
|
|
1596
1596
|
var n = t.policies, r = t.resultCaching, i = r === void 0 ? !0 : r, a = t.seed, o = e.call(this, n, new Un(i)) || this;
|
|
1597
|
-
return o.stump = new Kn(o), o.storageTrie = new
|
|
1597
|
+
return o.stump = new Kn(o), o.storageTrie = new L(p), a && o.replace(a), o;
|
|
1598
1598
|
}
|
|
1599
1599
|
return t.prototype.addLayer = function(e, t) {
|
|
1600
1600
|
return this.stump.addLayer(e, t);
|
|
@@ -1606,7 +1606,7 @@ function Gn(e, t) {
|
|
|
1606
1606
|
}(e);
|
|
1607
1607
|
})(Hn || (Hn = {}));
|
|
1608
1608
|
var Q = function(e) {
|
|
1609
|
-
|
|
1609
|
+
k(t, e);
|
|
1610
1610
|
function t(t, n, r, i) {
|
|
1611
1611
|
var a = e.call(this, n.policies, i) || this;
|
|
1612
1612
|
return a.id = t, a.parent = n, a.replay = r, a.group = i, r(a), a;
|
|
@@ -1618,22 +1618,22 @@ var Q = function(e) {
|
|
|
1618
1618
|
return e === this.id ? (this.group.caching && Object.keys(this.data).forEach(function(e) {
|
|
1619
1619
|
var r = t.data[e], i = n.lookup(e);
|
|
1620
1620
|
i ? r ? r !== i && Object.keys(r).forEach(function(n) {
|
|
1621
|
-
|
|
1621
|
+
D(r[n], i[n]) || t.group.dirty(e, n);
|
|
1622
1622
|
}) : (t.group.dirty(e, "__exists"), Object.keys(i).forEach(function(n) {
|
|
1623
1623
|
t.group.dirty(e, n);
|
|
1624
1624
|
})) : t.delete(e);
|
|
1625
1625
|
}), n) : n === this.parent ? this : n.addLayer(this.id, this.replay);
|
|
1626
1626
|
}, t.prototype.toObject = function() {
|
|
1627
|
-
return
|
|
1627
|
+
return P(P({}, this.parent.toObject()), this.data);
|
|
1628
1628
|
}, t.prototype.findChildRefIds = function(t) {
|
|
1629
1629
|
var n = this.parent.findChildRefIds(t);
|
|
1630
|
-
return X.call(this.data, t) ?
|
|
1630
|
+
return X.call(this.data, t) ? P(P({}, n), e.prototype.findChildRefIds.call(this, t)) : n;
|
|
1631
1631
|
}, t.prototype.getStorage = function() {
|
|
1632
1632
|
for (var e = this.parent; e.parent;) e = e.parent;
|
|
1633
1633
|
return e.getStorage.apply(e, arguments);
|
|
1634
1634
|
}, t;
|
|
1635
1635
|
}(Hn), Kn = function(e) {
|
|
1636
|
-
|
|
1636
|
+
k(t, e);
|
|
1637
1637
|
function t(t) {
|
|
1638
1638
|
return e.call(this, "EntityStore.Stump", t, function() {}, new Un(t.group.caching, t.group)) || this;
|
|
1639
1639
|
}
|
|
@@ -1645,7 +1645,7 @@ var Q = function(e) {
|
|
|
1645
1645
|
}(Q);
|
|
1646
1646
|
function qn(e, t, n) {
|
|
1647
1647
|
var r = e[n], i = t[n];
|
|
1648
|
-
return
|
|
1648
|
+
return D(r, i) ? r : i;
|
|
1649
1649
|
}
|
|
1650
1650
|
function Jn(e) {
|
|
1651
1651
|
return !!(e instanceof Hn && e.group.caching);
|
|
@@ -1653,23 +1653,23 @@ function Jn(e) {
|
|
|
1653
1653
|
//#endregion
|
|
1654
1654
|
//#region node_modules/@apollo/client/cache/inmemory/object-canon.js
|
|
1655
1655
|
function Yn(e) {
|
|
1656
|
-
return
|
|
1656
|
+
return E(e) ? O(e) ? e.slice(0) : P({ __proto__: Object.getPrototypeOf(e) }, e) : e;
|
|
1657
1657
|
}
|
|
1658
1658
|
var Xn = function() {
|
|
1659
1659
|
function e() {
|
|
1660
|
-
this.known = new (
|
|
1660
|
+
this.known = new (b ? WeakSet : Set)(), this.pool = new L(p), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
|
|
1661
1661
|
}
|
|
1662
1662
|
return e.prototype.isKnown = function(e) {
|
|
1663
|
-
return
|
|
1663
|
+
return E(e) && this.known.has(e);
|
|
1664
1664
|
}, e.prototype.pass = function(e) {
|
|
1665
|
-
if (
|
|
1665
|
+
if (E(e)) {
|
|
1666
1666
|
var t = Yn(e);
|
|
1667
1667
|
return this.passes.set(t, e), t;
|
|
1668
1668
|
}
|
|
1669
1669
|
return e;
|
|
1670
1670
|
}, e.prototype.admit = function(e) {
|
|
1671
1671
|
var t = this;
|
|
1672
|
-
if (
|
|
1672
|
+
if (E(e)) {
|
|
1673
1673
|
var n = this.passes.get(e);
|
|
1674
1674
|
if (n) return n;
|
|
1675
1675
|
switch (Object.getPrototypeOf(e)) {
|
|
@@ -1723,24 +1723,24 @@ function Zn(e) {
|
|
|
1723
1723
|
var Qn = function() {
|
|
1724
1724
|
function e(e) {
|
|
1725
1725
|
var t = this;
|
|
1726
|
-
this.knownResults = new (
|
|
1726
|
+
this.knownResults = new (p ? WeakMap : Map)(), this.config = Oe(e, {
|
|
1727
1727
|
addTypename: e.addTypename !== !1,
|
|
1728
1728
|
canonizeResults: Mn(e)
|
|
1729
1729
|
}), this.canon = e.canon || new Xn(), this.executeSelectionSet = Ie(function(e) {
|
|
1730
1730
|
var n, r = e.context.canonizeResults, i = Zn(e);
|
|
1731
1731
|
i[3] = !r;
|
|
1732
1732
|
var a = (n = t.executeSelectionSet).peek.apply(n, i);
|
|
1733
|
-
return a ? r ?
|
|
1733
|
+
return a ? r ? P(P({}, a), { result: t.canon.admit(a.result) }) : a : (Gn(e.context.store, e.enclosingRef.__ref), t.execSelectionSetImpl(e));
|
|
1734
1734
|
}, {
|
|
1735
|
-
max: this.config.resultCacheMaxSize ||
|
|
1735
|
+
max: this.config.resultCacheMaxSize || g["inMemoryCache.executeSelectionSet"] || 5e4,
|
|
1736
1736
|
keyArgs: Zn,
|
|
1737
1737
|
makeCacheKey: function(e, t, n, r) {
|
|
1738
|
-
if (Jn(n.store)) return n.store.makeCacheKey(e,
|
|
1738
|
+
if (Jn(n.store)) return n.store.makeCacheKey(e, c(t) ? t.__ref : t, n.varString, r);
|
|
1739
1739
|
}
|
|
1740
1740
|
}), this.executeSubSelectedArray = Ie(function(e) {
|
|
1741
1741
|
return Gn(e.context.store, e.enclosingRef.__ref), t.execSubSelectedArrayImpl(e);
|
|
1742
1742
|
}, {
|
|
1743
|
-
max: this.config.resultCacheMaxSize ||
|
|
1743
|
+
max: this.config.resultCacheMaxSize || g["inMemoryCache.executeSubSelectedArray"] || 1e4,
|
|
1744
1744
|
makeCacheKey: function(e) {
|
|
1745
1745
|
var t = e.field, n = e.array, r = e.context;
|
|
1746
1746
|
if (Jn(r.store)) return r.store.makeCacheKey(t, n, r.varString);
|
|
@@ -1751,17 +1751,17 @@ var Qn = function() {
|
|
|
1751
1751
|
this.canon = new Xn();
|
|
1752
1752
|
}, e.prototype.diffQueryAgainstStore = function(e) {
|
|
1753
1753
|
var t = e.store, n = e.query, r = e.rootId, i = r === void 0 ? "ROOT_QUERY" : r, a = e.variables, o = e.returnPartialData, s = o === void 0 ? !0 : o, c = e.canonizeResults, l = c === void 0 ? this.config.canonizeResults : c, u = this.config.cache.policies;
|
|
1754
|
-
a =
|
|
1755
|
-
var d =
|
|
1756
|
-
selectionSet:
|
|
1754
|
+
a = P(P({}, De(ge(n))), a);
|
|
1755
|
+
var d = w(i), f = this.executeSelectionSet({
|
|
1756
|
+
selectionSet: pe(n).selectionSet,
|
|
1757
1757
|
objectOrReference: d,
|
|
1758
1758
|
enclosingRef: d,
|
|
1759
|
-
context:
|
|
1759
|
+
context: P({
|
|
1760
1760
|
store: t,
|
|
1761
1761
|
query: n,
|
|
1762
1762
|
policies: u,
|
|
1763
1763
|
variables: a,
|
|
1764
|
-
varString:
|
|
1764
|
+
varString: Te(a),
|
|
1765
1765
|
canonizeResults: l
|
|
1766
1766
|
}, Rn(n, this.config.fragments))
|
|
1767
1767
|
}), p;
|
|
@@ -1779,11 +1779,11 @@ var Qn = function() {
|
|
|
1779
1779
|
return !1;
|
|
1780
1780
|
}, e.prototype.execSelectionSetImpl = function(e) {
|
|
1781
1781
|
var t = this, n = e.selectionSet, r = e.objectOrReference, i = e.enclosingRef, o = e.context;
|
|
1782
|
-
if (
|
|
1782
|
+
if (c(r) && !o.policies.rootTypenamesById[r.__ref] && !o.store.has(r.__ref)) return {
|
|
1783
1783
|
result: this.canon.empty,
|
|
1784
1784
|
missing: `Dangling reference to missing ${r.__ref} object`
|
|
1785
1785
|
};
|
|
1786
|
-
var
|
|
1786
|
+
var s = o.variables, l = o.policies, u = o.store.getFieldValue(r, "__typename"), d = [], f, p = new J();
|
|
1787
1787
|
this.config.addTypename && typeof u == "string" && !l.rootIdsByTypename[u] && d.push({ __typename: u });
|
|
1788
1788
|
function m(e, t) {
|
|
1789
1789
|
var n;
|
|
@@ -1792,14 +1792,14 @@ var Qn = function() {
|
|
|
1792
1792
|
var h = new Set(n.selections);
|
|
1793
1793
|
h.forEach(function(e) {
|
|
1794
1794
|
var n, g;
|
|
1795
|
-
if (
|
|
1795
|
+
if (fe(e, s)) if (ie(e)) {
|
|
1796
1796
|
var _ = l.readField({
|
|
1797
1797
|
fieldName: e.name.value,
|
|
1798
1798
|
field: e,
|
|
1799
1799
|
variables: o.variables,
|
|
1800
1800
|
from: r
|
|
1801
|
-
}, o), v =
|
|
1802
|
-
_ === void 0 ? dt.added(e) || (f = p.merge(f, (n = {}, n[v] = `Can't find field '${e.name.value}' on ${
|
|
1801
|
+
}, o), v = N(e);
|
|
1802
|
+
_ === void 0 ? dt.added(e) || (f = p.merge(f, (n = {}, n[v] = `Can't find field '${e.name.value}' on ${c(r) ? r.__ref + " object" : "object " + JSON.stringify(r, null, 2)}`, n))) : O(_) ? _.length > 0 && (_ = m(t.executeSubSelectedArray({
|
|
1803
1803
|
field: e,
|
|
1804
1804
|
array: _,
|
|
1805
1805
|
enclosingRef: i,
|
|
@@ -1807,28 +1807,28 @@ var Qn = function() {
|
|
|
1807
1807
|
}), v)) : e.selectionSet ? _ != null && (_ = m(t.executeSelectionSet({
|
|
1808
1808
|
selectionSet: e.selectionSet,
|
|
1809
1809
|
objectOrReference: _,
|
|
1810
|
-
enclosingRef:
|
|
1810
|
+
enclosingRef: c(_) ? _ : i,
|
|
1811
1811
|
context: o
|
|
1812
1812
|
}), v)) : o.canonizeResults && (_ = t.canon.pass(_)), _ !== void 0 && d.push((g = {}, g[v] = _, g));
|
|
1813
1813
|
} else {
|
|
1814
1814
|
var y = a(e, o.lookupFragment);
|
|
1815
|
-
if (!y && e.kind === B.FRAGMENT_SPREAD) throw
|
|
1815
|
+
if (!y && e.kind === B.FRAGMENT_SPREAD) throw M(10, e.name.value);
|
|
1816
1816
|
y && l.fragmentMatches(y, u) && y.selectionSet.selections.forEach(h.add, h);
|
|
1817
1817
|
}
|
|
1818
1818
|
});
|
|
1819
1819
|
var g = {
|
|
1820
1820
|
result: _t(d),
|
|
1821
1821
|
missing: f
|
|
1822
|
-
}, _ = o.canonizeResults ? this.canon.admit(g) :
|
|
1822
|
+
}, _ = o.canonizeResults ? this.canon.admit(g) : he(g);
|
|
1823
1823
|
return _.result && this.knownResults.set(_.result, n), _;
|
|
1824
1824
|
}, e.prototype.execSubSelectedArrayImpl = function(e) {
|
|
1825
|
-
var t = this, n = e.field, r = e.array, i = e.enclosingRef, a = e.context, o,
|
|
1825
|
+
var t = this, n = e.field, r = e.array, i = e.enclosingRef, a = e.context, o, s = new J();
|
|
1826
1826
|
function l(e, t) {
|
|
1827
1827
|
var n;
|
|
1828
|
-
return e.missing && (o =
|
|
1828
|
+
return e.missing && (o = s.merge(o, (n = {}, n[t] = e.missing, n))), e.result;
|
|
1829
1829
|
}
|
|
1830
1830
|
return n.selectionSet && (r = r.filter(a.store.canRead)), r = r.map(function(e, r) {
|
|
1831
|
-
return e === null ? null :
|
|
1831
|
+
return e === null ? null : O(e) ? l(t.executeSubSelectedArray({
|
|
1832
1832
|
field: n,
|
|
1833
1833
|
array: e,
|
|
1834
1834
|
enclosingRef: i,
|
|
@@ -1836,7 +1836,7 @@ var Qn = function() {
|
|
|
1836
1836
|
}), r) : n.selectionSet ? l(t.executeSelectionSet({
|
|
1837
1837
|
selectionSet: n.selectionSet,
|
|
1838
1838
|
objectOrReference: e,
|
|
1839
|
-
enclosingRef:
|
|
1839
|
+
enclosingRef: c(e) ? e : i,
|
|
1840
1840
|
context: a
|
|
1841
1841
|
}), r) : (globalThis.__DEV__ !== !1 && er(a.store, n, e), e);
|
|
1842
1842
|
}), {
|
|
@@ -1859,18 +1859,18 @@ function er(e, t, n) {
|
|
|
1859
1859
|
if (!t.selectionSet) {
|
|
1860
1860
|
var r = new Set([n]);
|
|
1861
1861
|
r.forEach(function(n) {
|
|
1862
|
-
|
|
1862
|
+
E(n) && (R(!c(n), 11, Nn(e, n), t.name.value), Object.values(n).forEach(r.add, r));
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
1866
|
//#endregion
|
|
1867
1867
|
//#region node_modules/@apollo/client/cache/inmemory/reactiveVars.js
|
|
1868
|
-
var tr = new
|
|
1868
|
+
var tr = new be(), nr = /* @__PURE__ */ new WeakMap();
|
|
1869
1869
|
function rr(e) {
|
|
1870
1870
|
var t = nr.get(e);
|
|
1871
1871
|
return t || nr.set(e, t = {
|
|
1872
1872
|
vars: /* @__PURE__ */ new Set(),
|
|
1873
|
-
dep:
|
|
1873
|
+
dep: ve()
|
|
1874
1874
|
}), t;
|
|
1875
1875
|
}
|
|
1876
1876
|
function ir(e) {
|
|
@@ -1941,7 +1941,7 @@ function dr(e) {
|
|
|
1941
1941
|
var r = n.field, i = n.variables, a = n.fieldName, o = fr(e, function(e) {
|
|
1942
1942
|
var n = e[0], a = n.charAt(0);
|
|
1943
1943
|
if (a === "@") {
|
|
1944
|
-
if (r &&
|
|
1944
|
+
if (r && F(r.directives)) {
|
|
1945
1945
|
var o = n.slice(1), s = r.directives.find(function(e) {
|
|
1946
1946
|
return e.name.value === o;
|
|
1947
1947
|
}), c = s && Be(s, i);
|
|
@@ -1978,9 +1978,9 @@ function pr(e) {
|
|
|
1978
1978
|
if (!t.paths) {
|
|
1979
1979
|
var n = t.paths = [], r = [];
|
|
1980
1980
|
e.forEach(function(t, i) {
|
|
1981
|
-
|
|
1981
|
+
O(t) ? (pr(t).forEach(function(e) {
|
|
1982
1982
|
return n.push(r.concat(e));
|
|
1983
|
-
}), r.length = 0) : (r.push(t),
|
|
1983
|
+
}), r.length = 0) : (r.push(t), O(e[i + 1]) || (n.push(r.slice(0)), r.length = 0));
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
1986
1986
|
return t.paths;
|
|
@@ -1990,13 +1990,13 @@ function mr(e, t) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
function hr(e, t, n) {
|
|
1992
1992
|
return n = n || mr, gr(t.reduce(function e(t, r) {
|
|
1993
|
-
return
|
|
1993
|
+
return O(t) ? t.map(function(t) {
|
|
1994
1994
|
return e(t, r);
|
|
1995
1995
|
}) : t && n(t, r);
|
|
1996
1996
|
}, e));
|
|
1997
1997
|
}
|
|
1998
1998
|
function gr(e) {
|
|
1999
|
-
return
|
|
1999
|
+
return E(e) ? O(e) ? e.map(gr) : fr(Object.keys(e).sort(), function(t) {
|
|
2000
2000
|
return hr(e, t);
|
|
2001
2001
|
}) : e;
|
|
2002
2002
|
}
|
|
@@ -2014,12 +2014,12 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2014
2014
|
return t;
|
|
2015
2015
|
}, Sr = function() {
|
|
2016
2016
|
function e(e) {
|
|
2017
|
-
this.config = e, this.typePolicies = Object.create(null), this.toBeAdded = Object.create(null), this.supertypeMap = /* @__PURE__ */ new Map(), this.fuzzySubtypes = /* @__PURE__ */ new Map(), this.rootIdsByTypename = Object.create(null), this.rootTypenamesById = Object.create(null), this.usingPossibleTypes = !1, this.config =
|
|
2017
|
+
this.config = e, this.typePolicies = Object.create(null), this.toBeAdded = Object.create(null), this.supertypeMap = /* @__PURE__ */ new Map(), this.fuzzySubtypes = /* @__PURE__ */ new Map(), this.rootIdsByTypename = Object.create(null), this.rootTypenamesById = Object.create(null), this.usingPossibleTypes = !1, this.config = P({ dataIdFromObject: kn }, e), this.cache = this.config.cache, this.setRootTypename("Query"), this.setRootTypename("Mutation"), this.setRootTypename("Subscription"), e.possibleTypes && this.addPossibleTypes(e.possibleTypes), e.typePolicies && this.addTypePolicies(e.typePolicies);
|
|
2018
2018
|
}
|
|
2019
2019
|
return e.prototype.identify = function(e, t) {
|
|
2020
2020
|
var n = this, r = t && (t.typename || t.storeObject?.__typename) || e.__typename;
|
|
2021
2021
|
if (r === this.rootTypenamesById.ROOT_QUERY) return ["ROOT_QUERY"];
|
|
2022
|
-
var i = t && t.storeObject || e, a =
|
|
2022
|
+
var i = t && t.storeObject || e, a = P(P({}, t), {
|
|
2023
2023
|
typename: r,
|
|
2024
2024
|
storeObject: i,
|
|
2025
2025
|
readField: t && t.readField || function() {
|
|
@@ -2032,8 +2032,8 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2032
2032
|
}), o, s = r && this.getTypePolicy(r), c = s && s.keyFn || this.config.dataIdFromObject;
|
|
2033
2033
|
return _n.withValue(!0, function() {
|
|
2034
2034
|
for (; c;) {
|
|
2035
|
-
var t = c(
|
|
2036
|
-
if (
|
|
2035
|
+
var t = c(P(P({}, e), i), a);
|
|
2036
|
+
if (O(t)) c = ur(t);
|
|
2037
2037
|
else {
|
|
2038
2038
|
o = t;
|
|
2039
2039
|
break;
|
|
@@ -2043,7 +2043,7 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2043
2043
|
}, e.prototype.addTypePolicies = function(e) {
|
|
2044
2044
|
var t = this;
|
|
2045
2045
|
Object.keys(e).forEach(function(n) {
|
|
2046
|
-
var r = e[n], i = r.queryType, a = r.mutationType, o = r.subscriptionType, s =
|
|
2046
|
+
var r = e[n], i = r.queryType, a = r.mutationType, o = r.subscriptionType, s = I(r, [
|
|
2047
2047
|
"queryType",
|
|
2048
2048
|
"mutationType",
|
|
2049
2049
|
"subscriptionType"
|
|
@@ -2055,14 +2055,14 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2055
2055
|
function o(e, t) {
|
|
2056
2056
|
e.merge = typeof t == "function" ? t : t === !0 ? br : t === !1 ? xr : e.merge;
|
|
2057
2057
|
}
|
|
2058
|
-
o(r, t.merge), r.keyFn = i === !1 ? vr :
|
|
2058
|
+
o(r, t.merge), r.keyFn = i === !1 ? vr : O(i) ? ur(i) : typeof i == "function" ? i : r.keyFn, a && Object.keys(a).forEach(function(t) {
|
|
2059
2059
|
var r = n[t];
|
|
2060
2060
|
(!r || r?.typename !== e) && (r = n[t] = { typename: e });
|
|
2061
2061
|
var i = a[t];
|
|
2062
2062
|
if (typeof i == "function") r.read = i;
|
|
2063
2063
|
else {
|
|
2064
2064
|
var s = i.keyArgs, c = i.read, l = i.merge;
|
|
2065
|
-
r.keyFn = s === !1 ? yr :
|
|
2065
|
+
r.keyFn = s === !1 ? yr : O(s) ? dr(s) : typeof s == "function" ? s : r.keyFn, typeof c == "function" && (r.read = c), o(r, l);
|
|
2066
2066
|
}
|
|
2067
2067
|
r.read && r.merge && (r.keyFn = r.keyFn || yr);
|
|
2068
2068
|
});
|
|
@@ -2093,7 +2093,7 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2093
2093
|
});
|
|
2094
2094
|
}
|
|
2095
2095
|
})), r && r.size && r.forEach(function(e) {
|
|
2096
|
-
var r = t.getTypePolicy(e), i = r.fields, a =
|
|
2096
|
+
var r = t.getTypePolicy(e), i = r.fields, a = I(r, ["fields"]);
|
|
2097
2097
|
Object.assign(n, a), Object.assign(n.fields, i);
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
@@ -2136,13 +2136,13 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2136
2136
|
variables: e.variables
|
|
2137
2137
|
}, c = _r(e); o;) {
|
|
2138
2138
|
var l = o(c, s);
|
|
2139
|
-
if (
|
|
2139
|
+
if (O(l)) o = dr(l);
|
|
2140
2140
|
else {
|
|
2141
2141
|
a = l || n;
|
|
2142
2142
|
break;
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
return a === void 0 && (a = e.field ? r(e.field, e.variables) :
|
|
2145
|
+
return a === void 0 && (a = e.field ? r(e.field, e.variables) : re(n, _r(e))), a === !1 ? n : n === Z(a) ? a : n + ":" + a;
|
|
2146
2146
|
}, e.prototype.readField = function(e, t) {
|
|
2147
2147
|
var n = e.from;
|
|
2148
2148
|
if (n && (e.field || e.fieldName)) {
|
|
@@ -2150,9 +2150,9 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2150
2150
|
var r = t.store.getFieldValue(n, "__typename");
|
|
2151
2151
|
r && (e.typename = r);
|
|
2152
2152
|
}
|
|
2153
|
-
var i = this.getStoreFieldName(e), a = Z(i), o = t.store.getFieldValue(n, i),
|
|
2153
|
+
var i = this.getStoreFieldName(e), a = Z(i), o = t.store.getFieldValue(n, i), s = this.getFieldPolicy(e.typename, a), l = s && s.read;
|
|
2154
2154
|
if (l) {
|
|
2155
|
-
var u = Cr(this, n, e, t, t.store.getStorage(
|
|
2155
|
+
var u = Cr(this, n, e, t, t.store.getStorage(c(n) ? n.__ref : n, i));
|
|
2156
2156
|
return tr.withValue(this.cache, l, [o, u]);
|
|
2157
2157
|
}
|
|
2158
2158
|
return o;
|
|
@@ -2174,20 +2174,20 @@ var vr = function() {}, yr = function(e, t) {
|
|
|
2174
2174
|
}, e;
|
|
2175
2175
|
}();
|
|
2176
2176
|
function Cr(e, t, n, r, i) {
|
|
2177
|
-
var a = e.getStoreFieldName(n), o = Z(a),
|
|
2177
|
+
var a = e.getStoreFieldName(n), o = Z(a), s = n.variables || r.variables, l = r.store, u = l.toReference, d = l.canRead;
|
|
2178
2178
|
return {
|
|
2179
2179
|
args: _r(n),
|
|
2180
2180
|
field: n.field || null,
|
|
2181
2181
|
fieldName: o,
|
|
2182
2182
|
storeFieldName: a,
|
|
2183
|
-
variables:
|
|
2184
|
-
isReference:
|
|
2183
|
+
variables: s,
|
|
2184
|
+
isReference: c,
|
|
2185
2185
|
toReference: u,
|
|
2186
2186
|
storage: i,
|
|
2187
2187
|
cache: e.cache,
|
|
2188
2188
|
canRead: d,
|
|
2189
2189
|
readField: function() {
|
|
2190
|
-
return e.readField(wr(arguments, t,
|
|
2190
|
+
return e.readField(wr(arguments, t, s), r);
|
|
2191
2191
|
},
|
|
2192
2192
|
mergeObjects: Tr(r.store)
|
|
2193
2193
|
};
|
|
@@ -2197,17 +2197,17 @@ function wr(e, t, n) {
|
|
|
2197
2197
|
return typeof r == "string" ? o = {
|
|
2198
2198
|
fieldName: r,
|
|
2199
2199
|
from: a > 1 ? i : t
|
|
2200
|
-
} : (o =
|
|
2200
|
+
} : (o = P({}, r), X.call(o, "from") || (o.from = t)), globalThis.__DEV__ !== !1 && o.from === void 0 && globalThis.__DEV__ !== !1 && R.warn(8, me(Array.from(e))), o.variables === void 0 && (o.variables = n), o;
|
|
2201
2201
|
}
|
|
2202
2202
|
function Tr(e) {
|
|
2203
2203
|
return function(t, n) {
|
|
2204
|
-
if (
|
|
2205
|
-
if (
|
|
2204
|
+
if (O(t) || O(n)) throw M(9);
|
|
2205
|
+
if (E(t) && E(n)) {
|
|
2206
2206
|
var r = e.getFieldValue(t, "__typename"), i = e.getFieldValue(n, "__typename");
|
|
2207
2207
|
if (r && i && r !== i) return n;
|
|
2208
|
-
if (
|
|
2209
|
-
if (In(t) &&
|
|
2210
|
-
if (In(t) && In(n)) return
|
|
2208
|
+
if (c(t) && In(n)) return e.merge(t.__ref, n), t;
|
|
2209
|
+
if (In(t) && c(n)) return e.merge(t, n.__ref), n;
|
|
2210
|
+
if (In(t) && In(n)) return P(P({}, t), n);
|
|
2211
2211
|
}
|
|
2212
2212
|
return n;
|
|
2213
2213
|
};
|
|
@@ -2216,7 +2216,7 @@ function Tr(e) {
|
|
|
2216
2216
|
//#region node_modules/@apollo/client/cache/inmemory/writeToStore.js
|
|
2217
2217
|
function Er(e, t, n) {
|
|
2218
2218
|
var r = `${t}${n}`, i = e.flavors.get(r);
|
|
2219
|
-
return i || e.flavors.set(r, i = e.clientOnly === t && e.deferred === n ? e :
|
|
2219
|
+
return i || e.flavors.set(r, i = e.clientOnly === t && e.deferred === n ? e : P(P({}, e), {
|
|
2220
2220
|
clientOnly: t,
|
|
2221
2221
|
deferred: n
|
|
2222
2222
|
})), i;
|
|
@@ -2226,18 +2226,18 @@ var Dr = function() {
|
|
|
2226
2226
|
this.cache = e, this.reader = t, this.fragments = n;
|
|
2227
2227
|
}
|
|
2228
2228
|
return e.prototype.writeToStore = function(e, t) {
|
|
2229
|
-
var n = this, r = t.query, i = t.result, a = t.dataId, o = t.variables,
|
|
2230
|
-
o =
|
|
2231
|
-
var d =
|
|
2229
|
+
var n = this, r = t.query, i = t.result, a = t.dataId, o = t.variables, s = t.overwrite, l = Le(r), u = Ln();
|
|
2230
|
+
o = P(P({}, De(l)), o);
|
|
2231
|
+
var d = P(P({
|
|
2232
2232
|
store: e,
|
|
2233
2233
|
written: Object.create(null),
|
|
2234
2234
|
merge: function(e, t) {
|
|
2235
2235
|
return u.merge(e, t);
|
|
2236
2236
|
},
|
|
2237
2237
|
variables: o,
|
|
2238
|
-
varString:
|
|
2238
|
+
varString: Te(o)
|
|
2239
2239
|
}, Rn(r, this.fragments)), {
|
|
2240
|
-
overwrite: !!
|
|
2240
|
+
overwrite: !!s,
|
|
2241
2241
|
incomingById: /* @__PURE__ */ new Map(),
|
|
2242
2242
|
clientOnly: !1,
|
|
2243
2243
|
deferred: !1,
|
|
@@ -2249,12 +2249,12 @@ var Dr = function() {
|
|
|
2249
2249
|
mergeTree: { map: /* @__PURE__ */ new Map() },
|
|
2250
2250
|
context: d
|
|
2251
2251
|
});
|
|
2252
|
-
if (!
|
|
2252
|
+
if (!c(f)) throw M(12, i);
|
|
2253
2253
|
return d.incomingById.forEach(function(t, r) {
|
|
2254
|
-
var i = t.storeObject, a = t.mergeTree, o = t.fieldNodeSet,
|
|
2254
|
+
var i = t.storeObject, a = t.mergeTree, o = t.fieldNodeSet, s = w(r);
|
|
2255
2255
|
if (a && a.map.size) {
|
|
2256
|
-
var l = n.applyMerges(a,
|
|
2257
|
-
if (
|
|
2256
|
+
var l = n.applyMerges(a, s, i, d);
|
|
2257
|
+
if (c(l)) return;
|
|
2258
2258
|
i = l;
|
|
2259
2259
|
}
|
|
2260
2260
|
if (globalThis.__DEV__ !== !1 && !d.overwrite) {
|
|
@@ -2269,42 +2269,42 @@ var Dr = function() {
|
|
|
2269
2269
|
return !!(t && t.info && t.info.merge);
|
|
2270
2270
|
};
|
|
2271
2271
|
Object.keys(i).forEach(function(e) {
|
|
2272
|
-
f(e) && !p(e) && Pr(
|
|
2272
|
+
f(e) && !p(e) && Pr(s, i, e, d.store);
|
|
2273
2273
|
});
|
|
2274
2274
|
}
|
|
2275
2275
|
e.merge(r, i);
|
|
2276
2276
|
}), e.retain(f.__ref), f;
|
|
2277
2277
|
}, e.prototype.processSelectionSet = function(e) {
|
|
2278
|
-
var t = this, n = e.dataId, r = e.result, i = e.selectionSet, a = e.context,
|
|
2278
|
+
var t = this, n = e.dataId, r = e.result, i = e.selectionSet, a = e.context, s = e.mergeTree, l = this.cache.policies, u = Object.create(null), d = n && l.rootTypenamesById[n] || o(r, i, a.fragmentMap) || n && a.store.get(n, "__typename");
|
|
2279
2279
|
typeof d == "string" && (u.__typename = d);
|
|
2280
2280
|
var f = function() {
|
|
2281
2281
|
var e = wr(arguments, u, a.variables);
|
|
2282
|
-
if (
|
|
2282
|
+
if (c(e.from)) {
|
|
2283
2283
|
var t = a.incomingById.get(e.from.__ref);
|
|
2284
2284
|
if (t) {
|
|
2285
|
-
var n = l.readField(
|
|
2285
|
+
var n = l.readField(P(P({}, e), { from: t.storeObject }), a);
|
|
2286
2286
|
if (n !== void 0) return n;
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
2289
|
return l.readField(e, a);
|
|
2290
2290
|
}, p = /* @__PURE__ */ new Set();
|
|
2291
2291
|
this.flattenFields(i, r, a, d).forEach(function(e, n) {
|
|
2292
|
-
var i, a = r[
|
|
2292
|
+
var i, a = r[N(n)];
|
|
2293
2293
|
if (p.add(n), a !== void 0) {
|
|
2294
2294
|
var o = l.getStoreFieldName({
|
|
2295
2295
|
typename: d,
|
|
2296
2296
|
fieldName: n.name.value,
|
|
2297
2297
|
field: n,
|
|
2298
2298
|
variables: e.variables
|
|
2299
|
-
}), m = kr(
|
|
2300
|
-
n.selectionSet && (
|
|
2299
|
+
}), m = kr(s, o), h = t.processFieldValue(a, n, n.selectionSet ? Er(e, !1, !1) : e, m), g = void 0;
|
|
2300
|
+
n.selectionSet && (c(h) || In(h)) && (g = f("__typename", h));
|
|
2301
2301
|
var _ = l.getMergeFunction(d, n.name.value, g);
|
|
2302
2302
|
_ ? m.info = {
|
|
2303
2303
|
field: n,
|
|
2304
2304
|
typename: d,
|
|
2305
2305
|
merge: _
|
|
2306
|
-
} : Mr(
|
|
2307
|
-
} else globalThis.__DEV__ !== !1 && !e.clientOnly && !e.deferred && !dt.added(n) && !l.getReadFunction(d, n.name.value) && globalThis.__DEV__ !== !1 && R.error(13,
|
|
2306
|
+
} : Mr(s, o), u = e.merge(u, (i = {}, i[o] = h, i));
|
|
2307
|
+
} else globalThis.__DEV__ !== !1 && !e.clientOnly && !e.deferred && !dt.added(n) && !l.getReadFunction(d, n.name.value) && globalThis.__DEV__ !== !1 && R.error(13, N(n), r);
|
|
2308
2308
|
});
|
|
2309
2309
|
try {
|
|
2310
2310
|
var m = l.identify(r, {
|
|
@@ -2319,21 +2319,21 @@ var Dr = function() {
|
|
|
2319
2319
|
if (!n) throw e;
|
|
2320
2320
|
}
|
|
2321
2321
|
if (typeof n == "string") {
|
|
2322
|
-
var _ =
|
|
2322
|
+
var _ = w(n), v = a.written[n] || (a.written[n] = []);
|
|
2323
2323
|
if (v.indexOf(i) >= 0 || (v.push(i), this.reader && this.reader.isFresh(r, _, i, a))) return _;
|
|
2324
2324
|
var y = a.incomingById.get(n);
|
|
2325
|
-
return y ? (y.storeObject = a.merge(y.storeObject, u), y.mergeTree = Ar(y.mergeTree,
|
|
2325
|
+
return y ? (y.storeObject = a.merge(y.storeObject, u), y.mergeTree = Ar(y.mergeTree, s), p.forEach(function(e) {
|
|
2326
2326
|
return y.fieldNodeSet.add(e);
|
|
2327
2327
|
})) : a.incomingById.set(n, {
|
|
2328
2328
|
storeObject: u,
|
|
2329
|
-
mergeTree: jr(
|
|
2329
|
+
mergeTree: jr(s) ? void 0 : s,
|
|
2330
2330
|
fieldNodeSet: p
|
|
2331
2331
|
}), _;
|
|
2332
2332
|
}
|
|
2333
2333
|
return u;
|
|
2334
2334
|
}, e.prototype.processFieldValue = function(e, t, n, r) {
|
|
2335
2335
|
var i = this;
|
|
2336
|
-
return !t.selectionSet || e === null ? globalThis.__DEV__ === !1 ? e :
|
|
2336
|
+
return !t.selectionSet || e === null ? globalThis.__DEV__ === !1 ? e : Ae(e) : O(e) ? e.map(function(e, a) {
|
|
2337
2337
|
var o = i.processFieldValue(e, t, n, kr(r, a));
|
|
2338
2338
|
return Mr(r, a), o;
|
|
2339
2339
|
}) : this.processSelectionSet({
|
|
@@ -2344,24 +2344,24 @@ var Dr = function() {
|
|
|
2344
2344
|
});
|
|
2345
2345
|
}, e.prototype.flattenFields = function(e, t, n, r) {
|
|
2346
2346
|
r === void 0 && (r = o(t, e, n.fragmentMap));
|
|
2347
|
-
var i = /* @__PURE__ */ new Map(), s = this.cache.policies, c = new
|
|
2347
|
+
var i = /* @__PURE__ */ new Map(), s = this.cache.policies, c = new L(!1);
|
|
2348
2348
|
return (function e(o, l) {
|
|
2349
2349
|
var u = c.lookup(o, l.clientOnly, l.deferred);
|
|
2350
2350
|
u.visited || (u.visited = !0, o.selections.forEach(function(o) {
|
|
2351
|
-
if (
|
|
2351
|
+
if (fe(o, n.variables)) {
|
|
2352
2352
|
var c = l.clientOnly, u = l.deferred;
|
|
2353
|
-
if (!(c && u) &&
|
|
2353
|
+
if (!(c && u) && F(o.directives) && o.directives.forEach(function(e) {
|
|
2354
2354
|
var t = e.name.value;
|
|
2355
2355
|
if (t === "client" && (c = !0), t === "defer") {
|
|
2356
2356
|
var r = Be(e, n.variables);
|
|
2357
2357
|
(!r || r.if !== !1) && (u = !0);
|
|
2358
2358
|
}
|
|
2359
|
-
}),
|
|
2359
|
+
}), ie(o)) {
|
|
2360
2360
|
var d = i.get(o);
|
|
2361
2361
|
d && (c = c && d.clientOnly, u = u && d.deferred), i.set(o, Er(n, c, u));
|
|
2362
2362
|
} else {
|
|
2363
2363
|
var f = a(o, n.lookupFragment);
|
|
2364
|
-
if (!f && o.kind === B.FRAGMENT_SPREAD) throw
|
|
2364
|
+
if (!f && o.kind === B.FRAGMENT_SPREAD) throw M(14, o.name.value);
|
|
2365
2365
|
f && s.fragmentMatches(f, r, t, n.variables) && e(f.selectionSet, Er(n, c, u));
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
@@ -2369,20 +2369,20 @@ var Dr = function() {
|
|
|
2369
2369
|
})(e, n), i;
|
|
2370
2370
|
}, e.prototype.applyMerges = function(e, t, n, r, i) {
|
|
2371
2371
|
var a, o = this;
|
|
2372
|
-
if (e.map.size && !
|
|
2373
|
-
var
|
|
2374
|
-
|
|
2372
|
+
if (e.map.size && !c(n)) {
|
|
2373
|
+
var s = !O(n) && (c(t) || In(t)) ? t : void 0, l = n;
|
|
2374
|
+
s && !i && (i = [c(s) ? s.__ref : s]);
|
|
2375
2375
|
var u, d = function(e, t) {
|
|
2376
|
-
return
|
|
2376
|
+
return O(e) ? typeof t == "number" ? e[t] : void 0 : r.store.getFieldValue(e, String(t));
|
|
2377
2377
|
};
|
|
2378
2378
|
e.map.forEach(function(e, t) {
|
|
2379
|
-
var n = d(
|
|
2379
|
+
var n = d(s, t), a = d(l, t);
|
|
2380
2380
|
if (a !== void 0) {
|
|
2381
2381
|
i && i.push(t);
|
|
2382
|
-
var
|
|
2383
|
-
|
|
2382
|
+
var c = o.applyMerges(e, n, a, r, i);
|
|
2383
|
+
c !== a && (u = u || /* @__PURE__ */ new Map(), u.set(t, c)), i && R(i.pop() === t);
|
|
2384
2384
|
}
|
|
2385
|
-
}), u && (n =
|
|
2385
|
+
}), u && (n = O(l) ? l.slice(0) : P({}, l), u.forEach(function(e, t) {
|
|
2386
2386
|
n[t] = e;
|
|
2387
2387
|
}));
|
|
2388
2388
|
}
|
|
@@ -2396,7 +2396,7 @@ function kr(e, t) {
|
|
|
2396
2396
|
function Ar(e, t) {
|
|
2397
2397
|
if (e === t || !t || jr(t)) return e;
|
|
2398
2398
|
if (!e || jr(e)) return t;
|
|
2399
|
-
var n = e.info && t.info ?
|
|
2399
|
+
var n = e.info && t.info ? P(P({}, e.info), t.info) : e.info || t.info, r = e.map.size && t.map.size, i = {
|
|
2400
2400
|
info: n,
|
|
2401
2401
|
map: r ? /* @__PURE__ */ new Map() : e.map.size ? e.map : t.map
|
|
2402
2402
|
};
|
|
@@ -2425,17 +2425,17 @@ function Pr(e, t, n, r) {
|
|
|
2425
2425
|
}, a = i(e);
|
|
2426
2426
|
if (a) {
|
|
2427
2427
|
var o = i(t);
|
|
2428
|
-
if (o && !
|
|
2428
|
+
if (o && !c(a) && !D(a, o) && !Object.keys(a).every(function(e) {
|
|
2429
2429
|
return r.getFieldValue(o, e) !== void 0;
|
|
2430
2430
|
})) {
|
|
2431
|
-
var
|
|
2431
|
+
var s = r.getFieldValue(e, "__typename") || r.getFieldValue(t, "__typename"), l = Z(n), u = `${s}.${l}`;
|
|
2432
2432
|
if (!Nr.has(u)) {
|
|
2433
2433
|
Nr.add(u);
|
|
2434
2434
|
var d = [];
|
|
2435
|
-
!
|
|
2435
|
+
!O(a) && !O(o) && [a, o].forEach(function(e) {
|
|
2436
2436
|
var t = r.getFieldValue(e, "__typename");
|
|
2437
2437
|
typeof t == "string" && !d.includes(t) && d.push(t);
|
|
2438
|
-
}), globalThis.__DEV__ !== !1 && R.warn(15, l,
|
|
2438
|
+
}), globalThis.__DEV__ !== !1 && R.warn(15, l, s, d.length ? "either ensure all objects of type " + d.join(" and ") + " have an ID or a custom merge function, or " : "", u, P({}, a), P({}, o));
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
@@ -2443,11 +2443,11 @@ function Pr(e, t, n, r) {
|
|
|
2443
2443
|
//#endregion
|
|
2444
2444
|
//#region node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
|
|
2445
2445
|
var Fr = function(e) {
|
|
2446
|
-
|
|
2446
|
+
k(t, e);
|
|
2447
2447
|
function t(t) {
|
|
2448
2448
|
t === void 0 && (t = {});
|
|
2449
2449
|
var n = e.call(this) || this;
|
|
2450
|
-
return n.watches = /* @__PURE__ */ new Set(), n.addTypenameTransform = new rt(dt), n.assumeImmutableResults = !0, n.makeVar = or, n.txCount = 0, globalThis.__DEV__ !== !1 && (
|
|
2450
|
+
return n.watches = /* @__PURE__ */ new Set(), n.addTypenameTransform = new rt(dt), n.assumeImmutableResults = !0, n.makeVar = or, n.txCount = 0, globalThis.__DEV__ !== !1 && (A(t, "addTypename", "InMemoryCache", "Please remove the `addTypename` option when initializing `InMemoryCache`."), A(t, "canonizeResults", "InMemoryCache", "Please remove the `canonizeResults` option when initializing `InMemoryCache`.")), n.config = jn(t), n.addTypename = !!n.config.addTypename, n.policies = new Sr({
|
|
2451
2451
|
cache: n,
|
|
2452
2452
|
dataIdFromObject: n.config.dataIdFromObject,
|
|
2453
2453
|
possibleTypes: n.config.possibleTypes,
|
|
@@ -2472,12 +2472,12 @@ var Fr = function(e) {
|
|
|
2472
2472
|
}), r), this.maybeBroadcastWatch = Ie(function(e, n) {
|
|
2473
2473
|
return t.broadcastWatch(e, n);
|
|
2474
2474
|
}, {
|
|
2475
|
-
max: this.config.resultCacheMaxSize ||
|
|
2475
|
+
max: this.config.resultCacheMaxSize || g["inMemoryCache.maybeBroadcastWatch"] || 5e3,
|
|
2476
2476
|
makeCacheKey: function(e) {
|
|
2477
2477
|
var n = e.optimistic ? t.optimisticData : t.data;
|
|
2478
2478
|
if (Jn(n)) {
|
|
2479
2479
|
var r = e.optimistic, i = e.id, a = e.variables;
|
|
2480
|
-
return n.makeCacheKey(e.query, e.callback,
|
|
2480
|
+
return n.makeCacheKey(e.query, e.callback, Te({
|
|
2481
2481
|
optimistic: r,
|
|
2482
2482
|
id: i,
|
|
2483
2483
|
variables: a
|
|
@@ -2492,10 +2492,10 @@ var Fr = function(e) {
|
|
|
2492
2492
|
}, t.prototype.extract = function(e) {
|
|
2493
2493
|
return e === void 0 && (e = !1), (e ? this.optimisticData : this.data).extract();
|
|
2494
2494
|
}, t.prototype.read = function(e) {
|
|
2495
|
-
globalThis.__DEV__ !== !1 &&
|
|
2495
|
+
globalThis.__DEV__ !== !1 && A(e, "canonizeResults", "cache.read");
|
|
2496
2496
|
var t = e.returnPartialData, n = t === void 0 ? !1 : t;
|
|
2497
2497
|
try {
|
|
2498
|
-
return this.storeReader.diffQueryAgainstStore(
|
|
2498
|
+
return this.storeReader.diffQueryAgainstStore(P(P({}, e), {
|
|
2499
2499
|
store: e.optimistic ? this.optimisticData : this.data,
|
|
2500
2500
|
config: this.config,
|
|
2501
2501
|
returnPartialData: n
|
|
@@ -2519,7 +2519,7 @@ var Fr = function(e) {
|
|
|
2519
2519
|
!--this.txCount && e.broadcast !== !1 && this.broadcastWatches();
|
|
2520
2520
|
}
|
|
2521
2521
|
}, t.prototype.diff = function(e) {
|
|
2522
|
-
return globalThis.__DEV__ !== !1 &&
|
|
2522
|
+
return globalThis.__DEV__ !== !1 && A(e, "canonizeResults", "cache.diff"), this.storeReader.diffQueryAgainstStore(P(P({}, e), {
|
|
2523
2523
|
store: e.optimistic ? this.optimisticData : this.data,
|
|
2524
2524
|
rootId: e.id || "ROOT_QUERY",
|
|
2525
2525
|
config: this.config
|
|
@@ -2530,7 +2530,7 @@ var Fr = function(e) {
|
|
|
2530
2530
|
t.watches.delete(e) && !t.watches.size && ir(t), t.maybeBroadcastWatch.forget(e);
|
|
2531
2531
|
};
|
|
2532
2532
|
}, t.prototype.gc = function(e) {
|
|
2533
|
-
globalThis.__DEV__ !== !1 &&
|
|
2533
|
+
globalThis.__DEV__ !== !1 && A(e || {}, "resetResultIdentities", "cache.gc", "First ensure all usages of `canonizeResults` are removed, then remove this option."), Te.reset(), q.reset();
|
|
2534
2534
|
var t = this.optimisticData.gc();
|
|
2535
2535
|
return e && !this.txCount && (e.resetResultCache ? this.resetResultCache(e.resetResultIdentities) : e.resetResultIdentities && this.storeReader.resetCanon()), t;
|
|
2536
2536
|
}, t.prototype.retain = function(e, t) {
|
|
@@ -2538,7 +2538,7 @@ var Fr = function(e) {
|
|
|
2538
2538
|
}, t.prototype.release = function(e, t) {
|
|
2539
2539
|
return (t ? this.optimisticData : this.data).release(e);
|
|
2540
2540
|
}, t.prototype.identify = function(e) {
|
|
2541
|
-
if (
|
|
2541
|
+
if (c(e)) return e.__ref;
|
|
2542
2542
|
try {
|
|
2543
2543
|
return this.policies.identify(e)[0];
|
|
2544
2544
|
} catch (e) {
|
|
@@ -2547,7 +2547,7 @@ var Fr = function(e) {
|
|
|
2547
2547
|
}, t.prototype.evict = function(e) {
|
|
2548
2548
|
if (!e.id) {
|
|
2549
2549
|
if (X.call(e, "id")) return !1;
|
|
2550
|
-
e =
|
|
2550
|
+
e = P(P({}, e), { id: "ROOT_QUERY" });
|
|
2551
2551
|
}
|
|
2552
2552
|
try {
|
|
2553
2553
|
return ++this.txCount, this.optimisticData.evict(e, this.data);
|
|
@@ -2556,7 +2556,7 @@ var Fr = function(e) {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
}, t.prototype.reset = function(e) {
|
|
2558
2558
|
var t = this;
|
|
2559
|
-
return this.init(),
|
|
2559
|
+
return this.init(), Te.reset(), e && e.discardWatches ? (this.watches.forEach(function(e) {
|
|
2560
2560
|
return t.maybeBroadcastWatch.forget(e);
|
|
2561
2561
|
}), this.watches.clear(), ir(this)) : this.broadcastWatches(), Promise.resolve();
|
|
2562
2562
|
}, t.prototype.removeOptimistic = function(e) {
|
|
@@ -2572,9 +2572,9 @@ var Fr = function(e) {
|
|
|
2572
2572
|
--t.txCount, t.data = i, t.optimisticData = a;
|
|
2573
2573
|
}
|
|
2574
2574
|
}, l = /* @__PURE__ */ new Set();
|
|
2575
|
-
return o && !this.txCount && this.broadcastWatches(
|
|
2575
|
+
return o && !this.txCount && this.broadcastWatches(P(P({}, e), { onWatchUpdated: function(e) {
|
|
2576
2576
|
return l.add(e), !1;
|
|
2577
|
-
} })), typeof i == "string" ? this.optimisticData = this.optimisticData.addLayer(i, c) : i === !1 ? c(this.data) : c(), typeof a == "string" && (this.optimisticData = this.optimisticData.removeLayer(a)), o && l.size ? (this.broadcastWatches(
|
|
2577
|
+
} })), typeof i == "string" ? this.optimisticData = this.optimisticData.addLayer(i, c) : i === !1 ? c(this.data) : c(), typeof a == "string" && (this.optimisticData = this.optimisticData.removeLayer(a)), o && l.size ? (this.broadcastWatches(P(P({}, e), { onWatchUpdated: function(e, t) {
|
|
2578
2578
|
var n = o.call(this, e, t);
|
|
2579
2579
|
return n !== !1 && l.delete(e), n;
|
|
2580
2580
|
} })), l.size && l.forEach(function(e) {
|
|
@@ -2605,13 +2605,13 @@ var Fr = function(e) {
|
|
|
2605
2605
|
var n = this, r = e.lastDiff, i = T("canonizeResults", function() {
|
|
2606
2606
|
return n.diff(e);
|
|
2607
2607
|
});
|
|
2608
|
-
t && (e.optimistic && typeof t.optimistic == "string" && (i.fromOptimisticTransaction = !0), t.onWatchUpdated && t.onWatchUpdated.call(this, e, i, r) === !1) || (!r || !
|
|
2608
|
+
t && (e.optimistic && typeof t.optimistic == "string" && (i.fromOptimisticTransaction = !0), t.onWatchUpdated && t.onWatchUpdated.call(this, e, i, r) === !1) || (!r || !D(r.result, i.result)) && e.callback(e.lastDiff = i, r);
|
|
2609
2609
|
}, t;
|
|
2610
2610
|
}(En);
|
|
2611
|
-
globalThis.__DEV__ !== !1 && (Fr.prototype.getMemoryInternals =
|
|
2611
|
+
globalThis.__DEV__ !== !1 && (Fr.prototype.getMemoryInternals = ee);
|
|
2612
2612
|
//#endregion
|
|
2613
2613
|
//#region node_modules/@apollo/client/core/QueryInfo.js
|
|
2614
|
-
var Ir = new (
|
|
2614
|
+
var Ir = new (p ? WeakMap : Map)();
|
|
2615
2615
|
function Lr(e, t) {
|
|
2616
2616
|
var n = e[t];
|
|
2617
2617
|
typeof n == "function" && (e[t] = function() {
|
|
@@ -2625,8 +2625,8 @@ var Rr = function() {
|
|
|
2625
2625
|
Ir.has(n) || (Ir.set(n, 0), Lr(n, "evict"), Lr(n, "modify"), Lr(n, "reset"));
|
|
2626
2626
|
}
|
|
2627
2627
|
return e.prototype.init = function(e) {
|
|
2628
|
-
var t = e.networkStatus ||
|
|
2629
|
-
return this.variables && this.networkStatus !==
|
|
2628
|
+
var t = e.networkStatus || m.loading;
|
|
2629
|
+
return this.variables && this.networkStatus !== m.loading && !D(this.variables, e.variables) && (t = m.setVariables), D(e.variables, this.variables) || (this.lastDiff = void 0, this.cancel()), Object.assign(this, {
|
|
2630
2630
|
document: e.document,
|
|
2631
2631
|
variables: e.variables,
|
|
2632
2632
|
networkError: null,
|
|
@@ -2637,7 +2637,7 @@ var Rr = function() {
|
|
|
2637
2637
|
this.lastDiff = void 0;
|
|
2638
2638
|
}, e.prototype.getDiff = function() {
|
|
2639
2639
|
var e = this, t = this.getDiffOptions();
|
|
2640
|
-
if (this.lastDiff &&
|
|
2640
|
+
if (this.lastDiff && D(t, this.lastDiff.options)) return this.lastDiff.diff;
|
|
2641
2641
|
this.updateWatch(this.variables);
|
|
2642
2642
|
var n = this.observableQuery;
|
|
2643
2643
|
if (n && n.options.fetchPolicy === "no-cache") return { complete: !1 };
|
|
@@ -2662,7 +2662,7 @@ var Rr = function() {
|
|
|
2662
2662
|
var t = this, n, r = this.lastDiff && this.lastDiff.diff;
|
|
2663
2663
|
e && !e.complete && T("getLastError", function() {
|
|
2664
2664
|
return t.observableQuery?.getLastError();
|
|
2665
|
-
}) || (this.updateLastDiff(e),
|
|
2665
|
+
}) || (this.updateLastDiff(e), D(r && r.result, e && e.result) || (n = this.observableQuery) == null || n.scheduleNotify());
|
|
2666
2666
|
}, e.prototype.setObservableQuery = function(e) {
|
|
2667
2667
|
e !== this.observableQuery && (this.observableQuery = e, e && (e.queryInfo = this));
|
|
2668
2668
|
}, e.prototype.stop = function() {
|
|
@@ -2680,22 +2680,22 @@ var Rr = function() {
|
|
|
2680
2680
|
e === void 0 && (e = this.variables);
|
|
2681
2681
|
var n = this.observableQuery;
|
|
2682
2682
|
if (!(n && n.options.fetchPolicy === "no-cache")) {
|
|
2683
|
-
var r =
|
|
2683
|
+
var r = P(P({}, this.getDiffOptions(e)), {
|
|
2684
2684
|
watcher: this,
|
|
2685
2685
|
callback: function(e) {
|
|
2686
2686
|
return t.setDiff(e);
|
|
2687
2687
|
}
|
|
2688
2688
|
});
|
|
2689
|
-
(!this.lastWatch || !
|
|
2689
|
+
(!this.lastWatch || !D(r, this.lastWatch)) && (this.cancel(), this.cancelWatch = this.cache.watch(this.lastWatch = r));
|
|
2690
2690
|
}
|
|
2691
2691
|
}, e.prototype.resetLastWrite = function() {
|
|
2692
2692
|
this.lastWrite = void 0;
|
|
2693
2693
|
}, e.prototype.shouldWrite = function(e, t) {
|
|
2694
2694
|
var n = this.lastWrite;
|
|
2695
|
-
return !(n && n.dmCount === Ir.get(this.cache) &&
|
|
2695
|
+
return !(n && n.dmCount === Ir.get(this.cache) && D(t, n.variables) && D(e.data, n.result.data));
|
|
2696
2696
|
}, e.prototype.markResult = function(e, t, n, r) {
|
|
2697
|
-
var i = this, a, o = new J(), s =
|
|
2698
|
-
if ((a = this.observableQuery) == null || a.resetNotifications(), "incremental" in e &&
|
|
2697
|
+
var i = this, a, o = new J(), s = F(e.errors) ? e.errors.slice(0) : [];
|
|
2698
|
+
if ((a = this.observableQuery) == null || a.resetNotifications(), "incremental" in e && F(e.incremental)) e.data = Et(this.getDiff().result, e);
|
|
2699
2699
|
else if ("hasNext" in e && e.hasNext) {
|
|
2700
2700
|
var c = this.getDiff();
|
|
2701
2701
|
e.data = o.merge(c.result, e.data);
|
|
@@ -2721,13 +2721,13 @@ var Rr = function() {
|
|
|
2721
2721
|
var o = i.getDiffOptions(n.variables), s = T("canonizeResults", function() {
|
|
2722
2722
|
return a.diff(o);
|
|
2723
2723
|
});
|
|
2724
|
-
!i.stopped &&
|
|
2724
|
+
!i.stopped && D(i.variables, n.variables) && i.updateWatch(n.variables), i.updateLastDiff(s, o), s.complete && (e.data = s.result);
|
|
2725
2725
|
}) : this.lastWrite = void 0);
|
|
2726
2726
|
}, e.prototype.markReady = function() {
|
|
2727
|
-
return this.networkError = null, this.networkStatus =
|
|
2727
|
+
return this.networkError = null, this.networkStatus = m.ready;
|
|
2728
2728
|
}, e.prototype.markError = function(e) {
|
|
2729
2729
|
var t;
|
|
2730
|
-
return this.networkStatus =
|
|
2730
|
+
return this.networkStatus = m.error, this.lastWrite = void 0, (t = this.observableQuery) == null || t.resetNotifications(), e.graphQLErrors && (this.graphQLErrors = e.graphQLErrors), e.networkError && (this.networkError = e.networkError), e;
|
|
2731
2731
|
}, e;
|
|
2732
2732
|
}();
|
|
2733
2733
|
function zr(e, t) {
|
|
@@ -2740,7 +2740,7 @@ function zr(e, t) {
|
|
|
2740
2740
|
var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = function() {
|
|
2741
2741
|
function e(e) {
|
|
2742
2742
|
var t = this;
|
|
2743
|
-
this.clientAwareness = {}, this.queries = /* @__PURE__ */ new Map(), this.fetchCancelFns = /* @__PURE__ */ new Map(), this.transformCache = new
|
|
2743
|
+
this.clientAwareness = {}, this.queries = /* @__PURE__ */ new Map(), this.fetchCancelFns = /* @__PURE__ */ new Map(), this.transformCache = new x(g["queryManager.getDocumentInfo"] || 2e3), this.queryIdCounter = 1, this.requestIdCounter = 1, this.mutationIdCounter = 1, this.inFlightLinkObservables = new L(!1), this.noCacheWarningsByQueryId = /* @__PURE__ */ new Set();
|
|
2744
2744
|
var n = new rt(function(e) {
|
|
2745
2745
|
return t.cache.transformDocument(e);
|
|
2746
2746
|
}, { cache: !1 });
|
|
@@ -2752,15 +2752,15 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2752
2752
|
var e = this;
|
|
2753
2753
|
this.queries.forEach(function(t, n) {
|
|
2754
2754
|
e.stopQueryNoBroadcast(n);
|
|
2755
|
-
}), this.cancelPendingFetches(
|
|
2755
|
+
}), this.cancelPendingFetches(M(35));
|
|
2756
2756
|
}, e.prototype.cancelPendingFetches = function(e) {
|
|
2757
2757
|
this.fetchCancelFns.forEach(function(t) {
|
|
2758
2758
|
return t(e);
|
|
2759
2759
|
}), this.fetchCancelFns.clear();
|
|
2760
2760
|
}, e.prototype.mutate = function(e) {
|
|
2761
2761
|
return V(this, arguments, void 0, function(e) {
|
|
2762
|
-
var t, n, r, i, a, o = e.mutation, s = e.variables, c = e.optimisticResponse, l = e.updateQueries, u = e.refetchQueries,
|
|
2763
|
-
return
|
|
2762
|
+
var t, n, r, i, a, o = e.mutation, s = e.variables, c = e.optimisticResponse, l = e.updateQueries, u = e.refetchQueries, d = u === void 0 ? [] : u, p = e.awaitRefetchQueries, m = p === void 0 ? !1 : p, h = e.update, g = e.onQueryUpdated, _ = e.fetchPolicy, v = _ === void 0 ? this.defaultOptions.mutate?.fetchPolicy || "network-only" : _, y = e.errorPolicy, b = y === void 0 ? this.defaultOptions.mutate?.errorPolicy || "none" : y, x = e.keepRootFields, S = e.context;
|
|
2763
|
+
return j(this, function(e) {
|
|
2764
2764
|
switch (e.label) {
|
|
2765
2765
|
case 0: return R(o, 36), R(v === "network-only" || v === "no-cache", 37), t = this.generateMutationId(), o = this.cache.transformForLink(this.transform(o)), n = this.getDocumentInfo(o).hasClientExports, s = this.getVariables(o, s), n ? [4, this.localState.addExportedVariables(o, s, S)] : [3, 2];
|
|
2766
2766
|
case 1: s = e.sent(), e.label = 2;
|
|
@@ -2780,11 +2780,11 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2780
2780
|
update: h,
|
|
2781
2781
|
keepRootFields: x
|
|
2782
2782
|
}), this.broadcastQueries(), a = this, [2, new Promise(function(e, n) {
|
|
2783
|
-
return yt(a.getObservableFromLink(o,
|
|
2784
|
-
if (Dt(e) && b === "none") throw new
|
|
2783
|
+
return yt(a.getObservableFromLink(o, P(P({}, S), { optimisticResponse: i ? c : void 0 }), s, {}, !1), function(e) {
|
|
2784
|
+
if (Dt(e) && b === "none") throw new f({ graphQLErrors: Ot(e) });
|
|
2785
2785
|
r && (r.loading = !1, r.error = null);
|
|
2786
|
-
var n =
|
|
2787
|
-
return typeof
|
|
2786
|
+
var n = P({}, e);
|
|
2787
|
+
return typeof d == "function" && (d = d(n)), b === "ignore" && Dt(n) && delete n.errors, a.markMutationResult({
|
|
2788
2788
|
mutationId: t,
|
|
2789
2789
|
result: n,
|
|
2790
2790
|
document: o,
|
|
@@ -2795,14 +2795,14 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2795
2795
|
update: h,
|
|
2796
2796
|
updateQueries: l,
|
|
2797
2797
|
awaitRefetchQueries: m,
|
|
2798
|
-
refetchQueries:
|
|
2798
|
+
refetchQueries: d,
|
|
2799
2799
|
removeOptimistic: i ? t : void 0,
|
|
2800
2800
|
onQueryUpdated: g,
|
|
2801
2801
|
keepRootFields: x
|
|
2802
2802
|
});
|
|
2803
2803
|
}).subscribe({
|
|
2804
2804
|
next: function(n) {
|
|
2805
|
-
a.broadcastQueries(), (!("hasNext" in n) || n.hasNext === !1) && e(
|
|
2805
|
+
a.broadcastQueries(), (!("hasNext" in n) || n.hasNext === !1) && e(P(P({}, n), { data: a.maskOperation({
|
|
2806
2806
|
document: o,
|
|
2807
2807
|
data: n.data,
|
|
2808
2808
|
fetchPolicy: v,
|
|
@@ -2810,7 +2810,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2810
2810
|
}) }));
|
|
2811
2811
|
},
|
|
2812
2812
|
error: function(e) {
|
|
2813
|
-
r && (r.loading = !1, r.error = e), i && a.cache.removeOptimistic(t), a.broadcastQueries(), n(e instanceof
|
|
2813
|
+
r && (r.loading = !1, r.error = e), i && a.cache.removeOptimistic(t), a.broadcastQueries(), n(e instanceof f ? e : new f({ networkError: e }));
|
|
2814
2814
|
}
|
|
2815
2815
|
});
|
|
2816
2816
|
})];
|
|
@@ -2827,7 +2827,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2827
2827
|
dataId: "ROOT_MUTATION",
|
|
2828
2828
|
query: e.document,
|
|
2829
2829
|
variables: e.variables
|
|
2830
|
-
}), St(r) &&
|
|
2830
|
+
}), St(r) && F(r.incremental)) {
|
|
2831
2831
|
var o = t.diff({
|
|
2832
2832
|
id: "ROOT_MUTATION",
|
|
2833
2833
|
query: this.getDocumentInfo(e.document).asQuery,
|
|
@@ -2885,7 +2885,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2885
2885
|
optimistic: !1,
|
|
2886
2886
|
returnPartialData: !0
|
|
2887
2887
|
});
|
|
2888
|
-
c.complete && (r =
|
|
2888
|
+
c.complete && (r = P(P({}, r), { data: c.result }), "incremental" in r && delete r.incremental, "hasNext" in r && delete r.hasNext);
|
|
2889
2889
|
}
|
|
2890
2890
|
s && o(t, r, {
|
|
2891
2891
|
context: e.context,
|
|
@@ -2915,7 +2915,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2915
2915
|
var n = this, r = typeof e == "function" ? e(t.variables, { IGNORE: Vr }) : e;
|
|
2916
2916
|
return r === Vr ? !1 : (this.cache.recordOptimisticTransaction(function(e) {
|
|
2917
2917
|
try {
|
|
2918
|
-
n.markMutationResult(
|
|
2918
|
+
n.markMutationResult(P(P({}, t), { result: { data: r } }), e);
|
|
2919
2919
|
} catch (e) {
|
|
2920
2920
|
globalThis.__DEV__ !== !1 && R.error(e);
|
|
2921
2921
|
}
|
|
@@ -2941,9 +2941,9 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2941
2941
|
var t = this.transformCache;
|
|
2942
2942
|
if (!t.has(e)) {
|
|
2943
2943
|
var n = {
|
|
2944
|
-
hasClientExports:
|
|
2944
|
+
hasClientExports: de(e),
|
|
2945
2945
|
hasForcedResolvers: this.localState.shouldForceResolvers(e),
|
|
2946
|
-
hasNonreactiveDirective:
|
|
2946
|
+
hasNonreactiveDirective: ue(["nonreactive"], e),
|
|
2947
2947
|
nonReactiveQuery: mt(e),
|
|
2948
2948
|
clientQuery: this.localState.clientQuery(e),
|
|
2949
2949
|
serverQuery: ut([
|
|
@@ -2955,19 +2955,19 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2955
2955
|
{ name: "nonreactive" },
|
|
2956
2956
|
{ name: "unmask" }
|
|
2957
2957
|
], e),
|
|
2958
|
-
defaultVars:
|
|
2959
|
-
asQuery:
|
|
2960
|
-
return e.kind === "OperationDefinition" && e.operation !== "query" ?
|
|
2958
|
+
defaultVars: De(Le(e)),
|
|
2959
|
+
asQuery: P(P({}, e), { definitions: e.definitions.map(function(e) {
|
|
2960
|
+
return e.kind === "OperationDefinition" && e.operation !== "query" ? P(P({}, e), { operation: "query" }) : e;
|
|
2961
2961
|
}) })
|
|
2962
2962
|
};
|
|
2963
2963
|
t.set(e, n);
|
|
2964
2964
|
}
|
|
2965
2965
|
return t.get(e);
|
|
2966
2966
|
}, e.prototype.getVariables = function(e, t) {
|
|
2967
|
-
return
|
|
2967
|
+
return P(P({}, this.getDocumentInfo(e).defaultVars), t);
|
|
2968
2968
|
}, e.prototype.watchQuery = function(e) {
|
|
2969
2969
|
var t = this.transform(e.query);
|
|
2970
|
-
e =
|
|
2970
|
+
e = P(P({}, e), { variables: this.getVariables(t, e.variables) }), e.notifyOnNetworkStatusChange === void 0 && (e.notifyOnNetworkStatusChange = !1);
|
|
2971
2971
|
var n = new Rr(this), r = new i({
|
|
2972
2972
|
queryManager: this,
|
|
2973
2973
|
queryInfo: n,
|
|
@@ -2982,8 +2982,8 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
2982
2982
|
var n = this;
|
|
2983
2983
|
t === void 0 && (t = this.generateQueryId()), R(e.query, 38), R(e.query.kind === "Document", 39), R(!e.returnPartialData, 40), R(!e.pollInterval, 41);
|
|
2984
2984
|
var r = this.transform(e.query);
|
|
2985
|
-
return this.fetchQuery(t,
|
|
2986
|
-
return i &&
|
|
2985
|
+
return this.fetchQuery(t, P(P({}, e), { query: r })).then(function(i) {
|
|
2986
|
+
return i && P(P({}, i), { data: n.maskOperation({
|
|
2987
2987
|
document: r,
|
|
2988
2988
|
data: i.data,
|
|
2989
2989
|
fetchPolicy: e.fetchPolicy,
|
|
@@ -3004,8 +3004,8 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3004
3004
|
var t = this.queries.get(e);
|
|
3005
3005
|
t && t.stop();
|
|
3006
3006
|
}, e.prototype.clearStore = function(e) {
|
|
3007
|
-
return e === void 0 && (e = { discardWatches: !0 }), this.cancelPendingFetches(
|
|
3008
|
-
e.observableQuery ? e.networkStatus =
|
|
3007
|
+
return e === void 0 && (e = { discardWatches: !0 }), this.cancelPendingFetches(M(42)), this.queries.forEach(function(e) {
|
|
3008
|
+
e.observableQuery ? e.networkStatus = m.loading : e.stop();
|
|
3009
3009
|
}), this.mutationStore && (this.mutationStore = Object.create(null)), this.cache.reset(e);
|
|
3010
3010
|
}, e.prototype.getObservableQueries = function(e) {
|
|
3011
3011
|
var t = this;
|
|
@@ -3016,7 +3016,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3016
3016
|
else if (ze(e)) {
|
|
3017
3017
|
var n = q(t.transform(e));
|
|
3018
3018
|
r.set(n, Ve(e)), a.set(n, !1);
|
|
3019
|
-
} else
|
|
3019
|
+
} else E(e) && e.query && o.add(e);
|
|
3020
3020
|
}), this.queries.forEach(function(t, r) {
|
|
3021
3021
|
var i = t.observableQuery, o = t.document;
|
|
3022
3022
|
if (i) {
|
|
@@ -3029,13 +3029,13 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3029
3029
|
(e === "active" || s && a.has(s) || o && a.has(q(o))) && (n.set(r, i), s && a.set(s, !0), o && a.set(q(o), !0));
|
|
3030
3030
|
}
|
|
3031
3031
|
}), o.size && o.forEach(function(e) {
|
|
3032
|
-
var r =
|
|
3032
|
+
var r = ke("legacyOneTimeQuery"), a = t.getOrCreateQuery(r).init({
|
|
3033
3033
|
document: e.query,
|
|
3034
3034
|
variables: e.variables
|
|
3035
3035
|
}), o = new i({
|
|
3036
3036
|
queryManager: t,
|
|
3037
3037
|
queryInfo: a,
|
|
3038
|
-
options:
|
|
3038
|
+
options: P(P({}, e), { fetchPolicy: "network-only" })
|
|
3039
3039
|
});
|
|
3040
3040
|
R(o.queryId === r), a.setObservableQuery(o), n.set(r, o);
|
|
3041
3041
|
}), globalThis.__DEV__ !== !1 && a.size && a.forEach(function(e, t) {
|
|
@@ -3057,7 +3057,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3057
3057
|
}, e.prototype.startGraphQLSubscription = function(e) {
|
|
3058
3058
|
var t = this, n = e.query, r = e.variables, i = e.fetchPolicy, a = e.errorPolicy, o = a === void 0 ? "none" : a, s = e.context, c = s === void 0 ? {} : s, l = e.extensions, u = l === void 0 ? {} : l;
|
|
3059
3059
|
n = this.transform(n), r = this.getVariables(n, r);
|
|
3060
|
-
var
|
|
3060
|
+
var d = function(e) {
|
|
3061
3061
|
return t.getObservableFromLink(n, c, e, u).map(function(r) {
|
|
3062
3062
|
i !== "no-cache" && (zr(r, o) && t.cache.write({
|
|
3063
3063
|
query: n,
|
|
@@ -3065,16 +3065,16 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3065
3065
|
dataId: "ROOT_SUBSCRIPTION",
|
|
3066
3066
|
variables: e
|
|
3067
3067
|
}), t.broadcastQueries());
|
|
3068
|
-
var a = Dt(r), s =
|
|
3068
|
+
var a = Dt(r), s = Me(r);
|
|
3069
3069
|
if (a || s) {
|
|
3070
3070
|
var c = {};
|
|
3071
|
-
if (a && (c.graphQLErrors = r.errors), s && (c.protocolErrors = r.extensions[
|
|
3071
|
+
if (a && (c.graphQLErrors = r.errors), s && (c.protocolErrors = r.extensions[y]), o === "none" || s) throw new f(c);
|
|
3072
3072
|
}
|
|
3073
3073
|
return o === "ignore" && delete r.errors, r;
|
|
3074
3074
|
});
|
|
3075
3075
|
};
|
|
3076
3076
|
if (this.getDocumentInfo(n).hasClientExports) {
|
|
3077
|
-
var p = this.localState.addExportedVariables(n, r, c).then(
|
|
3077
|
+
var p = this.localState.addExportedVariables(n, r, c).then(d);
|
|
3078
3078
|
return new z(function(e) {
|
|
3079
3079
|
var t = null;
|
|
3080
3080
|
return p.then(function(n) {
|
|
@@ -3084,7 +3084,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3084
3084
|
};
|
|
3085
3085
|
});
|
|
3086
3086
|
}
|
|
3087
|
-
return
|
|
3087
|
+
return d(r);
|
|
3088
3088
|
}, e.prototype.stopQuery = function(e) {
|
|
3089
3089
|
this.stopQueryNoBroadcast(e), this.broadcastQueries();
|
|
3090
3090
|
}, e.prototype.stopQueryNoBroadcast = function(e) {
|
|
@@ -3107,11 +3107,11 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3107
3107
|
query: c,
|
|
3108
3108
|
variables: n,
|
|
3109
3109
|
operationName: Ve(c) || void 0,
|
|
3110
|
-
context: this.prepareContext(
|
|
3110
|
+
context: this.prepareContext(P(P({}, t), { forceFetch: !i })),
|
|
3111
3111
|
extensions: r
|
|
3112
3112
|
};
|
|
3113
3113
|
if (t = p.context, i) {
|
|
3114
|
-
var m = q(c), h =
|
|
3114
|
+
var m = q(c), h = Te(n), g = d.lookup(m, h);
|
|
3115
3115
|
if (o = g.observable, !o) {
|
|
3116
3116
|
var _ = new xt([zt(f, p)]);
|
|
3117
3117
|
o = g.observable = _, _.beforeNext(function e(t, n) {
|
|
@@ -3133,23 +3133,23 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3133
3133
|
return yt(this.getObservableFromLink(i, n.context, n.variables), function(a) {
|
|
3134
3134
|
var o = Ot(a), s = o.length > 0, c = n.errorPolicy;
|
|
3135
3135
|
if (r >= e.lastRequestId) {
|
|
3136
|
-
if (s && c === "none") throw e.markError(new
|
|
3136
|
+
if (s && c === "none") throw e.markError(new f({ graphQLErrors: o }));
|
|
3137
3137
|
e.markResult(a, i, n, t), e.markReady();
|
|
3138
3138
|
}
|
|
3139
3139
|
var l = {
|
|
3140
3140
|
data: a.data,
|
|
3141
3141
|
loading: !1,
|
|
3142
|
-
networkStatus:
|
|
3142
|
+
networkStatus: m.ready
|
|
3143
3143
|
};
|
|
3144
|
-
return s && c === "none" && (l.data = void 0), s && c !== "ignore" && (l.errors = o, l.networkStatus =
|
|
3144
|
+
return s && c === "none" && (l.data = void 0), s && c !== "ignore" && (l.errors = o, l.networkStatus = m.error), l;
|
|
3145
3145
|
}, function(t) {
|
|
3146
|
-
var n =
|
|
3146
|
+
var n = _(t) ? t : new f({ networkError: t });
|
|
3147
3147
|
throw r >= e.lastRequestId && e.markError(n), n;
|
|
3148
3148
|
});
|
|
3149
3149
|
}, e.prototype.fetchConcastWithInfo = function(e, t, n, r) {
|
|
3150
3150
|
var i = this;
|
|
3151
|
-
n === void 0 && (n =
|
|
3152
|
-
var a = this.getVariables(r, t.variables), o = this.defaultOptions.watchQuery, s = t.fetchPolicy, c = s === void 0 ? o && o.fetchPolicy || "cache-first" : s, l = t.errorPolicy, u = l === void 0 ? o && o.errorPolicy || "none" : l, d = t.returnPartialData, f = d === void 0 ? !1 : d,
|
|
3151
|
+
n === void 0 && (n = m.loading), r === void 0 && (r = t.query);
|
|
3152
|
+
var a = this.getVariables(r, t.variables), o = this.defaultOptions.watchQuery, s = t.fetchPolicy, c = s === void 0 ? o && o.fetchPolicy || "cache-first" : s, l = t.errorPolicy, u = l === void 0 ? o && o.errorPolicy || "none" : l, d = t.returnPartialData, f = d === void 0 ? !1 : d, p = t.notifyOnNetworkStatusChange, h = p === void 0 ? !1 : p, g = t.context, _ = Object.assign({}, t, {
|
|
3153
3153
|
query: r,
|
|
3154
3154
|
variables: a,
|
|
3155
3155
|
fetchPolicy: c,
|
|
@@ -3182,7 +3182,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3182
3182
|
fromLink: x
|
|
3183
3183
|
};
|
|
3184
3184
|
}, e.prototype.refetchQueries = function(e) {
|
|
3185
|
-
var t = this, n = e.updateCache, r = e.include, i = e.optimistic, a = i === void 0 ? !1 : i, o = e.removeOptimistic, s = o === void 0 ? a ?
|
|
3185
|
+
var t = this, n = e.updateCache, r = e.include, i = e.optimistic, a = i === void 0 ? !1 : i, o = e.removeOptimistic, s = o === void 0 ? a ? ke("refetchQueries") : void 0 : o, c = e.onQueryUpdated, l = /* @__PURE__ */ new Map();
|
|
3186
3186
|
r && this.getObservableQueries(r).forEach(function(e, n) {
|
|
3187
3187
|
l.set(n, {
|
|
3188
3188
|
oq: e,
|
|
@@ -3219,7 +3219,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3219
3219
|
var t = e.document, n = e.data;
|
|
3220
3220
|
if (globalThis.__DEV__ !== !1) {
|
|
3221
3221
|
var r = e.fetchPolicy, i = e.id, a = Le(t)?.operation, o = (a?.[0] ?? "o") + i;
|
|
3222
|
-
this.dataMasking && r === "no-cache" && !
|
|
3222
|
+
this.dataMasking && r === "no-cache" && !h(t) && !this.noCacheWarningsByQueryId.has(o) && (this.noCacheWarningsByQueryId.add(o), globalThis.__DEV__ !== !1 && R.warn(45, Ve(t) ?? `Unnamed ${a ?? "operation"}`));
|
|
3223
3223
|
}
|
|
3224
3224
|
return this.dataMasking ? Tn(n, t, this.cache) : n;
|
|
3225
3225
|
}, e.prototype.maskFragment = function(e) {
|
|
@@ -3232,16 +3232,16 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3232
3232
|
variables: a,
|
|
3233
3233
|
networkStatus: n
|
|
3234
3234
|
});
|
|
3235
|
-
var
|
|
3235
|
+
var p = function() {
|
|
3236
3236
|
return e.getDiff();
|
|
3237
3237
|
}, h = function(t, n) {
|
|
3238
|
-
n === void 0 && (n = e.networkStatus ||
|
|
3238
|
+
n === void 0 && (n = e.networkStatus || m.loading);
|
|
3239
3239
|
var o = t.result;
|
|
3240
|
-
globalThis.__DEV__ !== !1 && !l && !
|
|
3240
|
+
globalThis.__DEV__ !== !1 && !l && !D(o, {}) && oe(t.missing);
|
|
3241
3241
|
var s = function(e) {
|
|
3242
|
-
return z.of(
|
|
3242
|
+
return z.of(P({
|
|
3243
3243
|
data: e,
|
|
3244
|
-
loading:
|
|
3244
|
+
loading: ae(n),
|
|
3245
3245
|
networkStatus: n
|
|
3246
3246
|
}, t.complete ? null : { partial: !0 }));
|
|
3247
3247
|
};
|
|
@@ -3253,8 +3253,8 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3253
3253
|
onlyRunForcedResolvers: !0
|
|
3254
3254
|
}).then(function(e) {
|
|
3255
3255
|
return s(e.data || void 0);
|
|
3256
|
-
}) : c === "none" && n ===
|
|
3257
|
-
}, g = o === "no-cache" ? 0 : n ===
|
|
3256
|
+
}) : c === "none" && n === m.refetch && Array.isArray(t.missing) ? s(void 0) : s(o);
|
|
3257
|
+
}, g = o === "no-cache" ? 0 : n === m.refetch && s !== "merge" ? 1 : 2, _ = function() {
|
|
3258
3258
|
return r.getResultsFromLink(e, g, {
|
|
3259
3259
|
query: i,
|
|
3260
3260
|
variables: a,
|
|
@@ -3262,11 +3262,11 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3262
3262
|
fetchPolicy: o,
|
|
3263
3263
|
errorPolicy: c
|
|
3264
3264
|
});
|
|
3265
|
-
}, v = d && typeof f == "number" && f !== n &&
|
|
3265
|
+
}, v = d && typeof f == "number" && f !== n && ae(n);
|
|
3266
3266
|
switch (o) {
|
|
3267
3267
|
default:
|
|
3268
3268
|
case "cache-first":
|
|
3269
|
-
var y =
|
|
3269
|
+
var y = p();
|
|
3270
3270
|
return y.complete ? {
|
|
3271
3271
|
fromLink: !1,
|
|
3272
3272
|
sources: [h(y, e.markReady())]
|
|
@@ -3278,7 +3278,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3278
3278
|
sources: [_()]
|
|
3279
3279
|
};
|
|
3280
3280
|
case "cache-and-network":
|
|
3281
|
-
var y =
|
|
3281
|
+
var y = p();
|
|
3282
3282
|
return y.complete || l || v ? {
|
|
3283
3283
|
fromLink: !0,
|
|
3284
3284
|
sources: [h(y), _()]
|
|
@@ -3288,11 +3288,11 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3288
3288
|
};
|
|
3289
3289
|
case "cache-only": return {
|
|
3290
3290
|
fromLink: !1,
|
|
3291
|
-
sources: [h(
|
|
3291
|
+
sources: [h(p(), e.markReady())]
|
|
3292
3292
|
};
|
|
3293
3293
|
case "network-only": return v ? {
|
|
3294
3294
|
fromLink: !0,
|
|
3295
|
-
sources: [h(
|
|
3295
|
+
sources: [h(p()), _()]
|
|
3296
3296
|
} : {
|
|
3297
3297
|
fromLink: !0,
|
|
3298
3298
|
sources: [_()]
|
|
@@ -3314,7 +3314,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3314
3314
|
}, e.prototype.prepareContext = function(e) {
|
|
3315
3315
|
e === void 0 && (e = {});
|
|
3316
3316
|
var t = this.localState.prepareContext(e);
|
|
3317
|
-
return
|
|
3317
|
+
return P(P(P({}, this.defaultContext), t), { clientAwareness: this.clientAwareness });
|
|
3318
3318
|
}, e;
|
|
3319
3319
|
}(), Ur = function() {
|
|
3320
3320
|
function e(e) {
|
|
@@ -3333,9 +3333,9 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3333
3333
|
}, e.prototype.runResolvers = function(e) {
|
|
3334
3334
|
return V(this, arguments, void 0, function(e) {
|
|
3335
3335
|
var t = e.document, n = e.remoteResult, r = e.context, i = e.variables, a = e.onlyRunForcedResolvers, o = a === void 0 ? !1 : a;
|
|
3336
|
-
return
|
|
3336
|
+
return j(this, function(e) {
|
|
3337
3337
|
return t ? [2, this.resolveDocument(t, n.data, r, i, this.fragmentMatcher, o).then(function(e) {
|
|
3338
|
-
return
|
|
3338
|
+
return P(P({}, n), { data: e.result });
|
|
3339
3339
|
})] : [2, n];
|
|
3340
3340
|
});
|
|
3341
3341
|
});
|
|
@@ -3344,12 +3344,12 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3344
3344
|
}, e.prototype.getFragmentMatcher = function() {
|
|
3345
3345
|
return this.fragmentMatcher;
|
|
3346
3346
|
}, e.prototype.clientQuery = function(e) {
|
|
3347
|
-
return
|
|
3347
|
+
return ue(["client"], e) && this.resolvers ? e : null;
|
|
3348
3348
|
}, e.prototype.serverQuery = function(e) {
|
|
3349
3349
|
return pt(e);
|
|
3350
3350
|
}, e.prototype.prepareContext = function(e) {
|
|
3351
3351
|
var t = this.cache;
|
|
3352
|
-
return
|
|
3352
|
+
return P(P({}, e), {
|
|
3353
3353
|
cache: t,
|
|
3354
3354
|
getCacheKey: function(e) {
|
|
3355
3355
|
return t.identify(e);
|
|
@@ -3357,10 +3357,10 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3357
3357
|
});
|
|
3358
3358
|
}, e.prototype.addExportedVariables = function(e) {
|
|
3359
3359
|
return V(this, arguments, void 0, function(e, t, n) {
|
|
3360
|
-
return t === void 0 && (t = {}), n === void 0 && (n = {}),
|
|
3360
|
+
return t === void 0 && (t = {}), n === void 0 && (n = {}), j(this, function(r) {
|
|
3361
3361
|
return e ? [2, this.resolveDocument(e, this.buildRootValueFromCache(e, t) || {}, this.prepareContext(n), t).then(function(e) {
|
|
3362
|
-
return
|
|
3363
|
-
})] : [2,
|
|
3362
|
+
return P(P({}, t), e.exportedVariables);
|
|
3363
|
+
})] : [2, P({}, t)];
|
|
3364
3364
|
});
|
|
3365
3365
|
});
|
|
3366
3366
|
}, e.prototype.shouldForceResolvers = function(e) {
|
|
@@ -3368,7 +3368,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3368
3368
|
return t(e, { Directive: { enter: function(e) {
|
|
3369
3369
|
if (e.name.value === "client" && e.arguments && (n = e.arguments.some(function(e) {
|
|
3370
3370
|
return e.name.value === "always" && e.value.kind === "BooleanValue" && e.value.value === !0;
|
|
3371
|
-
}), n)) return
|
|
3371
|
+
}), n)) return te;
|
|
3372
3372
|
} } }), n;
|
|
3373
3373
|
}, e.prototype.buildRootValueFromCache = function(e, t) {
|
|
3374
3374
|
return this.cache.diff({
|
|
@@ -3382,10 +3382,10 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3382
3382
|
var o, s, c, l, u, d, f, p, m, h, g;
|
|
3383
3383
|
return n === void 0 && (n = {}), r === void 0 && (r = {}), i === void 0 && (i = function() {
|
|
3384
3384
|
return !0;
|
|
3385
|
-
}), a === void 0 && (a = !1),
|
|
3386
|
-
return o =
|
|
3385
|
+
}), a === void 0 && (a = !1), j(this, function(_) {
|
|
3386
|
+
return o = pe(e), s = Se(e), c = He(s), l = this.collectSelectionsToResolve(o, c), u = o.operation, d = u ? u.charAt(0).toUpperCase() + u.slice(1) : "Query", f = this, p = f.cache, m = f.client, h = {
|
|
3387
3387
|
fragmentMap: c,
|
|
3388
|
-
context:
|
|
3388
|
+
context: P(P({}, n), {
|
|
3389
3389
|
cache: p,
|
|
3390
3390
|
client: m
|
|
3391
3391
|
}),
|
|
@@ -3405,21 +3405,21 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3405
3405
|
});
|
|
3406
3406
|
}, e.prototype.resolveSelectionSet = function(e, t, n, r) {
|
|
3407
3407
|
return V(this, void 0, void 0, function() {
|
|
3408
|
-
var i, a, o, s,
|
|
3409
|
-
return
|
|
3410
|
-
return i = r.fragmentMap, a = r.context, o = r.variables, s = [n],
|
|
3408
|
+
var i, a, o, s, c, u = this;
|
|
3409
|
+
return j(this, function(d) {
|
|
3410
|
+
return i = r.fragmentMap, a = r.context, o = r.variables, s = [n], c = function(e) {
|
|
3411
3411
|
return V(u, void 0, void 0, function() {
|
|
3412
|
-
var
|
|
3413
|
-
return
|
|
3414
|
-
return !t && !r.selectionsToResolve.has(e) || !
|
|
3412
|
+
var c, u;
|
|
3413
|
+
return j(this, function(d) {
|
|
3414
|
+
return !t && !r.selectionsToResolve.has(e) || !fe(e, o) ? [2] : ie(e) ? [2, this.resolveField(e, t, n, r).then(function(t) {
|
|
3415
3415
|
var n;
|
|
3416
|
-
t !== void 0 && s.push((n = {}, n[
|
|
3417
|
-
})] : (
|
|
3416
|
+
t !== void 0 && s.push((n = {}, n[N(e)] = t, n));
|
|
3417
|
+
})] : (l(e) ? c = e : (c = i[e.name.value], R(c, 21, e.name.value)), c && c.typeCondition && (u = c.typeCondition.name.value, r.fragmentMatcher(n, u, a)) ? [2, this.resolveSelectionSet(c.selectionSet, t, n, r).then(function(e) {
|
|
3418
3418
|
s.push(e);
|
|
3419
3419
|
})] : [2]);
|
|
3420
3420
|
});
|
|
3421
3421
|
});
|
|
3422
|
-
}, [2, Promise.all(e.selections.map(
|
|
3422
|
+
}, [2, Promise.all(e.selections.map(c)).then(function() {
|
|
3423
3423
|
return _t(s);
|
|
3424
3424
|
})];
|
|
3425
3425
|
});
|
|
@@ -3427,8 +3427,8 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3427
3427
|
}, e.prototype.resolveField = function(e, t, n, r) {
|
|
3428
3428
|
return V(this, void 0, void 0, function() {
|
|
3429
3429
|
var i, a, o, s, c, l, u, d, f, p = this;
|
|
3430
|
-
return
|
|
3431
|
-
return n ? (i = r.variables, a = e.name.value, o =
|
|
3430
|
+
return j(this, function(m) {
|
|
3431
|
+
return n ? (i = r.variables, a = e.name.value, o = N(e), s = a !== o, c = n[o] || n[a], l = Promise.resolve(c), (!r.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (u = n.__typename || r.defaultOperationType, d = this.resolvers && this.resolvers[u], d && (f = d[s ? a : o], f && (l = Promise.resolve(tr.withValue(this.cache, f, [
|
|
3432
3432
|
n,
|
|
3433
3433
|
Be(e, i),
|
|
3434
3434
|
r.context,
|
|
@@ -3489,17 +3489,17 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3489
3489
|
}(), Wr = !1, Gr = function() {
|
|
3490
3490
|
function e(e) {
|
|
3491
3491
|
var t = this;
|
|
3492
|
-
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache) throw
|
|
3493
|
-
var n = e.uri, r = e.credentials, i = e.headers, a = e.cache, o = e.documentTransform, s = e.ssrMode, c = s === void 0 ? !1 : s, l = e.ssrForceFetchDelay, u = l === void 0 ? 0 : l, d = e.connectToDevTools, f = e.queryDeduplication, p = f === void 0 ? !0 : f, m = e.defaultOptions, h = e.defaultContext, g = e.assumeImmutableResults, _ = g === void 0 ? a.assumeImmutableResults : g, v = e.resolvers, y = e.typeDefs, b = e.fragmentMatcher, x = e.clientAwareness, S = e.name, C = e.version, w = e.devtools,
|
|
3494
|
-
globalThis.__DEV__ !== !1 && (
|
|
3495
|
-
var
|
|
3496
|
-
|
|
3492
|
+
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache) throw M(16);
|
|
3493
|
+
var n = e.uri, r = e.credentials, i = e.headers, a = e.cache, o = e.documentTransform, s = e.ssrMode, c = s === void 0 ? !1 : s, l = e.ssrForceFetchDelay, u = l === void 0 ? 0 : l, d = e.connectToDevTools, f = e.queryDeduplication, p = f === void 0 ? !0 : f, m = e.defaultOptions, h = e.defaultContext, g = e.assumeImmutableResults, _ = g === void 0 ? a.assumeImmutableResults : g, v = e.resolvers, y = e.typeDefs, b = e.fragmentMatcher, x = e.clientAwareness, S = e.name, C = e.version, w = e.devtools, ee = e.dataMasking;
|
|
3494
|
+
globalThis.__DEV__ !== !1 && (A(e, "connectToDevTools", "ApolloClient", "Please use `devtools.enabled` instead."), A(e, "uri", "ApolloClient", "Please initialize an instance of `HttpLink` with `uri` instead."), A(e, "credentials", "ApolloClient", "Please initialize an instance of `HttpLink` with `credentials` instead."), A(e, "headers", "ApolloClient", "Please initialize an instance of `HttpLink` with `headers` instead."), A(e, "name", "ApolloClient", "Please use the `clientAwareness.name` option instead."), A(e, "version", "ApolloClient", "Please use the `clientAwareness.version` option instead."), A(e, "typeDefs", "ApolloClient"), e.link || globalThis.__DEV__ !== !1 && R.warn(17));
|
|
3495
|
+
var T = e.link;
|
|
3496
|
+
T || (T = n ? new mn({
|
|
3497
3497
|
uri: n,
|
|
3498
3498
|
credentials: r,
|
|
3499
3499
|
headers: i
|
|
3500
|
-
}) : Y.empty()), this.link =
|
|
3500
|
+
}) : Y.empty()), this.link = T, this.cache = a, this.disableNetworkFetches = c || u > 0, this.queryDeduplication = p, this.defaultOptions = m || Object.create(null), this.typeDefs = y, this.devtoolsConfig = P(P({}, w), { enabled: w?.enabled ?? d }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), u && setTimeout(function() {
|
|
3501
3501
|
return t.disableNetworkFetches = !1;
|
|
3502
|
-
}, u), 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 =
|
|
3502
|
+
}, u), 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 = _e, this.localState = new Ur({
|
|
3503
3503
|
cache: a,
|
|
3504
3504
|
client: this,
|
|
3505
3505
|
resolvers: v,
|
|
@@ -3512,7 +3512,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3512
3512
|
documentTransform: o,
|
|
3513
3513
|
queryDeduplication: p,
|
|
3514
3514
|
ssrMode: c,
|
|
3515
|
-
dataMasking: !!
|
|
3515
|
+
dataMasking: !!ee,
|
|
3516
3516
|
clientAwareness: {
|
|
3517
3517
|
name: x?.name ?? S,
|
|
3518
3518
|
version: x?.version ?? C
|
|
@@ -3559,15 +3559,15 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3559
3559
|
}), e.prototype.stop = function() {
|
|
3560
3560
|
this.queryManager.stop();
|
|
3561
3561
|
}, e.prototype.watchQuery = function(e) {
|
|
3562
|
-
return this.defaultOptions.watchQuery && (e = Fe(this.defaultOptions.watchQuery, e)), this.disableNetworkFetches && (e.fetchPolicy === "network-only" || e.fetchPolicy === "cache-and-network") && (e =
|
|
3562
|
+
return this.defaultOptions.watchQuery && (e = Fe(this.defaultOptions.watchQuery, e)), this.disableNetworkFetches && (e.fetchPolicy === "network-only" || e.fetchPolicy === "cache-and-network") && (e = P(P({}, e), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (A(e, "canonizeResults", "client.watchQuery"), A(e, "partialRefetch", "client.watchQuery")), this.queryManager.watchQuery(e);
|
|
3563
3563
|
}, e.prototype.query = function(e) {
|
|
3564
|
-
return this.defaultOptions.query && (e = Fe(this.defaultOptions.query, e)), R(e.fetchPolicy !== "cache-and-network", 18), this.disableNetworkFetches && e.fetchPolicy === "network-only" && (e =
|
|
3564
|
+
return this.defaultOptions.query && (e = Fe(this.defaultOptions.query, e)), R(e.fetchPolicy !== "cache-and-network", 18), this.disableNetworkFetches && e.fetchPolicy === "network-only" && (e = P(P({}, e), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (A(e, "canonizeResults", "client.query"), A(e, "notifyOnNetworkStatusChange", "client.query", "This option does not affect `client.query` and can be safely removed."), e.fetchPolicy === "standby" && globalThis.__DEV__ !== !1 && R.warn(19)), this.queryManager.query(e);
|
|
3565
3565
|
}, e.prototype.mutate = function(e) {
|
|
3566
3566
|
return this.defaultOptions.mutate && (e = Fe(this.defaultOptions.mutate, e)), this.queryManager.mutate(e);
|
|
3567
3567
|
}, e.prototype.subscribe = function(e) {
|
|
3568
3568
|
var t = this, n = this.queryManager.generateQueryId();
|
|
3569
3569
|
return this.queryManager.startGraphQLSubscription(e).map(function(r) {
|
|
3570
|
-
return
|
|
3570
|
+
return P(P({}, r), { data: t.queryManager.maskOperation({
|
|
3571
3571
|
document: e.query,
|
|
3572
3572
|
data: r.data,
|
|
3573
3573
|
fetchPolicy: e.fetchPolicy,
|
|
@@ -3578,7 +3578,7 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3578
3578
|
return t === void 0 && (t = !1), this.cache.readQuery(e, t);
|
|
3579
3579
|
}, e.prototype.watchFragment = function(e) {
|
|
3580
3580
|
var t;
|
|
3581
|
-
return this.cache.watchFragment(
|
|
3581
|
+
return this.cache.watchFragment(P(P({}, e), (t = {}, t[Symbol.for("apollo.dataMasking")] = this.queryManager.dataMasking, t)));
|
|
3582
3582
|
}, e.prototype.readFragment = function(e, t) {
|
|
3583
3583
|
return t === void 0 && (t = !1), this.cache.readFragment(e, t);
|
|
3584
3584
|
}, e.prototype.writeQuery = function(e) {
|
|
@@ -3660,12 +3660,12 @@ var Br = Object.prototype.hasOwnProperty, Vr = Object.create(null), Hr = functio
|
|
|
3660
3660
|
configurable: !0
|
|
3661
3661
|
}), e;
|
|
3662
3662
|
}();
|
|
3663
|
-
globalThis.__DEV__ !== !1 && (Gr.prototype.getMemoryInternals =
|
|
3663
|
+
globalThis.__DEV__ !== !1 && (Gr.prototype.getMemoryInternals = C);
|
|
3664
3664
|
//#endregion
|
|
3665
3665
|
//#region node_modules/@apollo/client/link/context/index.js
|
|
3666
3666
|
function Kr(e) {
|
|
3667
3667
|
return new Y(function(t, n) {
|
|
3668
|
-
var r =
|
|
3668
|
+
var r = I(t, []);
|
|
3669
3669
|
return new z(function(i) {
|
|
3670
3670
|
var a, o = !1;
|
|
3671
3671
|
return Promise.resolve(r).then(function(n) {
|
|
@@ -3696,8 +3696,8 @@ function qr(e) {
|
|
|
3696
3696
|
response: i,
|
|
3697
3697
|
operation: t,
|
|
3698
3698
|
forward: n
|
|
3699
|
-
}) :
|
|
3700
|
-
protocolErrors: i.extensions[
|
|
3699
|
+
}) : Me(i) && (o = e({
|
|
3700
|
+
protocolErrors: i.extensions[y],
|
|
3701
3701
|
response: i,
|
|
3702
3702
|
operation: t,
|
|
3703
3703
|
forward: n
|
|
@@ -3745,7 +3745,7 @@ function qr(e) {
|
|
|
3745
3745
|
});
|
|
3746
3746
|
}
|
|
3747
3747
|
(function(e) {
|
|
3748
|
-
|
|
3748
|
+
k(t, e);
|
|
3749
3749
|
function t(t) {
|
|
3750
3750
|
var n = e.call(this) || this;
|
|
3751
3751
|
return n.link = qr(t), n;
|
|
@@ -3789,7 +3789,7 @@ var ai = null;
|
|
|
3789
3789
|
function oi() {
|
|
3790
3790
|
if (ai) return ai;
|
|
3791
3791
|
let e = new mn({
|
|
3792
|
-
uri: `${
|
|
3792
|
+
uri: `${s()}/graphql`,
|
|
3793
3793
|
credentials: "omit"
|
|
3794
3794
|
}), t = Kr((e, { headers: t }) => ({ headers: {
|
|
3795
3795
|
...t,
|
|
@@ -3974,7 +3974,7 @@ function _i(e) {
|
|
|
3974
3974
|
let { children: n, ...r } = e;
|
|
3975
3975
|
if (mi(n) && typeof fi == "function" && (n = fi(n._payload)), U.isValidElement(n)) {
|
|
3976
3976
|
let e = xi(n), i = bi(r, n.props);
|
|
3977
|
-
return n.type !== U.Fragment && (i.ref = t ?
|
|
3977
|
+
return n.type !== U.Fragment && (i.ref = t ? xe(t, e) : e), U.cloneElement(n, i);
|
|
3978
3978
|
}
|
|
3979
3979
|
return U.Children.count(n) > 1 ? U.Children.only(null) : null;
|
|
3980
3980
|
});
|
|
@@ -4084,7 +4084,7 @@ var $ = {}, Ei = /* @__PURE__ */ function(e) {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
`;
|
|
4086
4086
|
function Oi(e) {
|
|
4087
|
-
return
|
|
4087
|
+
return u(Di, {
|
|
4088
4088
|
...$,
|
|
4089
4089
|
...e
|
|
4090
4090
|
});
|
|
@@ -4144,7 +4144,7 @@ var ki = H`
|
|
|
4144
4144
|
}
|
|
4145
4145
|
`;
|
|
4146
4146
|
function Ai(e) {
|
|
4147
|
-
return
|
|
4147
|
+
return u(ki, {
|
|
4148
4148
|
...$,
|
|
4149
4149
|
...e
|
|
4150
4150
|
});
|
|
@@ -4196,7 +4196,7 @@ var ji = H`
|
|
|
4196
4196
|
}
|
|
4197
4197
|
`;
|
|
4198
4198
|
function Mi(e) {
|
|
4199
|
-
return
|
|
4199
|
+
return u(ji, {
|
|
4200
4200
|
...$,
|
|
4201
4201
|
...e
|
|
4202
4202
|
});
|
|
@@ -4217,7 +4217,7 @@ var Ni = H`
|
|
|
4217
4217
|
}
|
|
4218
4218
|
`;
|
|
4219
4219
|
function Pi(e) {
|
|
4220
|
-
return
|
|
4220
|
+
return u(Ni, {
|
|
4221
4221
|
...$,
|
|
4222
4222
|
...e
|
|
4223
4223
|
});
|
|
@@ -4237,7 +4237,7 @@ var Fi = H`
|
|
|
4237
4237
|
}
|
|
4238
4238
|
`;
|
|
4239
4239
|
function Ii(e) {
|
|
4240
|
-
return
|
|
4240
|
+
return u(Fi, {
|
|
4241
4241
|
...$,
|
|
4242
4242
|
...e
|
|
4243
4243
|
});
|
|
@@ -4267,7 +4267,7 @@ var zi = H`
|
|
|
4267
4267
|
}
|
|
4268
4268
|
`;
|
|
4269
4269
|
function Bi(e) {
|
|
4270
|
-
return
|
|
4270
|
+
return u(zi, {
|
|
4271
4271
|
...$,
|
|
4272
4272
|
...e
|
|
4273
4273
|
});
|
|
@@ -4282,7 +4282,7 @@ var Vi = H`
|
|
|
4282
4282
|
}
|
|
4283
4283
|
`;
|
|
4284
4284
|
function Hi(e) {
|
|
4285
|
-
return
|
|
4285
|
+
return u(Vi, {
|
|
4286
4286
|
...$,
|
|
4287
4287
|
...e
|
|
4288
4288
|
});
|
|
@@ -4290,4 +4290,4 @@ function Hi(e) {
|
|
|
4290
4290
|
//#endregion
|
|
4291
4291
|
export { ti as _, Hi as a, Xr as b, Bi as c, hi as d, ui as f, Zr as g, ii as h, Pi as i, Ii as l, oi as m, Ri as n, Oi as o, ci as p, Mi as r, Ai as s, Ei as t, Ti as u, $r as v, ri as y };
|
|
4292
4292
|
|
|
4293
|
-
//# sourceMappingURL=widget-react-
|
|
4293
|
+
//# sourceMappingURL=widget-react-nq6E5YOO.js.map
|