promogame-player 0.0.29 → 0.0.30
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/components/PromogameGame/index.js +115 -115
- package/package.json +1 -1
|
@@ -1090,7 +1090,7 @@ function Ba(t, e) {
|
|
|
1090
1090
|
], t.definitions, !0) });
|
|
1091
1091
|
return i;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function Qe(t) {
|
|
1094
1094
|
t === void 0 && (t = []);
|
|
1095
1095
|
var e = {};
|
|
1096
1096
|
return t.forEach(function(r) {
|
|
@@ -1339,16 +1339,16 @@ var le = Object.assign(function(e) {
|
|
|
1339
1339
|
return JSON.stringify(e, so);
|
|
1340
1340
|
}, {
|
|
1341
1341
|
reset: function() {
|
|
1342
|
-
|
|
1342
|
+
Ie = new Za(
|
|
1343
1343
|
re.canonicalStringify || 1e3
|
|
1344
1344
|
/* defaultCacheSizes.canonicalStringify */
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
1347
|
});
|
|
1348
1348
|
globalThis.__DEV__ !== !1 && gr("canonicalStringify", function() {
|
|
1349
|
-
return
|
|
1349
|
+
return Ie.size;
|
|
1350
1350
|
});
|
|
1351
|
-
var
|
|
1351
|
+
var Ie;
|
|
1352
1352
|
le.reset();
|
|
1353
1353
|
function so(t, e) {
|
|
1354
1354
|
if (e && typeof e == "object") {
|
|
@@ -1357,11 +1357,11 @@ function so(t, e) {
|
|
|
1357
1357
|
var n = Object.keys(e);
|
|
1358
1358
|
if (n.every(uo))
|
|
1359
1359
|
return e;
|
|
1360
|
-
var i = JSON.stringify(n), a =
|
|
1360
|
+
var i = JSON.stringify(n), a = Ie.get(i);
|
|
1361
1361
|
if (!a) {
|
|
1362
1362
|
n.sort();
|
|
1363
1363
|
var o = JSON.stringify(n);
|
|
1364
|
-
a =
|
|
1364
|
+
a = Ie.get(o) || n, Ie.set(i, a), Ie.set(o, a);
|
|
1365
1365
|
}
|
|
1366
1366
|
var s = Object.create(r);
|
|
1367
1367
|
return a.forEach(function(u) {
|
|
@@ -1374,7 +1374,7 @@ function so(t, e) {
|
|
|
1374
1374
|
function uo(t, e, r) {
|
|
1375
1375
|
return e === 0 || r[e - 1] <= t;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function Me(t) {
|
|
1378
1378
|
return { __ref: String(t) };
|
|
1379
1379
|
}
|
|
1380
1380
|
function M(t) {
|
|
@@ -1410,7 +1410,7 @@ function go(t) {
|
|
|
1410
1410
|
function bo(t) {
|
|
1411
1411
|
return t.kind === "NullValue";
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Ae(t, e, r, n) {
|
|
1414
1414
|
if (ho(r) || vo(r))
|
|
1415
1415
|
t[e.value] = Number(r.value);
|
|
1416
1416
|
else if (lo(r) || fo(r))
|
|
@@ -1418,7 +1418,7 @@ function Ne(t, e, r, n) {
|
|
|
1418
1418
|
else if (yo(r)) {
|
|
1419
1419
|
var i = {};
|
|
1420
1420
|
r.fields.map(function(o) {
|
|
1421
|
-
return
|
|
1421
|
+
return Ae(i, o.name, o.value, n);
|
|
1422
1422
|
}), t[e.value] = i;
|
|
1423
1423
|
} else if (po(r)) {
|
|
1424
1424
|
var a = (n || {})[r.name.value];
|
|
@@ -1426,7 +1426,7 @@ function Ne(t, e, r, n) {
|
|
|
1426
1426
|
} else if (mo(r))
|
|
1427
1427
|
t[e.value] = r.values.map(function(o) {
|
|
1428
1428
|
var s = {};
|
|
1429
|
-
return
|
|
1429
|
+
return Ae(s, e, o, n), s[e.value];
|
|
1430
1430
|
});
|
|
1431
1431
|
else if (go(r))
|
|
1432
1432
|
t[e.value] = r.value;
|
|
@@ -1440,13 +1440,13 @@ function _o(t, e) {
|
|
|
1440
1440
|
t.directives && (r = {}, t.directives.forEach(function(i) {
|
|
1441
1441
|
r[i.name.value] = {}, i.arguments && i.arguments.forEach(function(a) {
|
|
1442
1442
|
var o = a.name, s = a.value;
|
|
1443
|
-
return
|
|
1443
|
+
return Ae(r[i.name.value], o, s, e);
|
|
1444
1444
|
});
|
|
1445
1445
|
}));
|
|
1446
1446
|
var n = null;
|
|
1447
1447
|
return t.arguments && t.arguments.length && (n = {}, t.arguments.forEach(function(i) {
|
|
1448
1448
|
var a = i.name, o = i.value;
|
|
1449
|
-
return
|
|
1449
|
+
return Ae(n, a, o, e);
|
|
1450
1450
|
})), ai(t.name.value, n, r);
|
|
1451
1451
|
}
|
|
1452
1452
|
var Eo = [
|
|
@@ -1487,7 +1487,7 @@ function St(t, e) {
|
|
|
1487
1487
|
var r = {};
|
|
1488
1488
|
return t.arguments.forEach(function(n) {
|
|
1489
1489
|
var i = n.name, a = n.value;
|
|
1490
|
-
return
|
|
1490
|
+
return Ae(r, i, a, e);
|
|
1491
1491
|
}), r;
|
|
1492
1492
|
}
|
|
1493
1493
|
return null;
|
|
@@ -1518,7 +1518,7 @@ function he(t) {
|
|
|
1518
1518
|
function wo(t) {
|
|
1519
1519
|
return t.kind === "InlineFragment";
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function Ve(t) {
|
|
1522
1522
|
S(t && t.kind === "Document", 88);
|
|
1523
1523
|
var e = t.definitions.filter(function(r) {
|
|
1524
1524
|
return r.kind !== "FragmentDefinition";
|
|
@@ -1530,7 +1530,7 @@ function Qe(t) {
|
|
|
1530
1530
|
return S(e.length <= 1, 90, e.length), t;
|
|
1531
1531
|
}
|
|
1532
1532
|
function _e(t) {
|
|
1533
|
-
return
|
|
1533
|
+
return Ve(t), t.definitions.filter(function(e) {
|
|
1534
1534
|
return e.kind === "OperationDefinition";
|
|
1535
1535
|
})[0];
|
|
1536
1536
|
}
|
|
@@ -1541,7 +1541,7 @@ function Ge(t) {
|
|
|
1541
1541
|
return e.name.value;
|
|
1542
1542
|
})[0] || null;
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function Le(t) {
|
|
1545
1545
|
return t.definitions.filter(function(e) {
|
|
1546
1546
|
return e.kind === "FragmentDefinition";
|
|
1547
1547
|
});
|
|
@@ -1556,7 +1556,7 @@ function si(t) {
|
|
|
1556
1556
|
return S(e.kind === "FragmentDefinition", 94), e;
|
|
1557
1557
|
}
|
|
1558
1558
|
function ot(t) {
|
|
1559
|
-
|
|
1559
|
+
Ve(t);
|
|
1560
1560
|
for (var e, r = 0, n = t.definitions; r < n.length; r++) {
|
|
1561
1561
|
var i = n[r];
|
|
1562
1562
|
if (i.kind === "OperationDefinition") {
|
|
@@ -1573,7 +1573,7 @@ function ot(t) {
|
|
|
1573
1573
|
function br(t) {
|
|
1574
1574
|
var e = /* @__PURE__ */ Object.create(null), r = t && t.variableDefinitions;
|
|
1575
1575
|
return r && r.length && r.forEach(function(n) {
|
|
1576
|
-
n.defaultValue &&
|
|
1576
|
+
n.defaultValue && Ae(e, n.variable.name, n.defaultValue);
|
|
1577
1577
|
}), e;
|
|
1578
1578
|
}
|
|
1579
1579
|
let L = null;
|
|
@@ -1684,7 +1684,7 @@ function Er(t) {
|
|
|
1684
1684
|
typeof e == "function" && (t.unsubscribe = void 0, e());
|
|
1685
1685
|
}
|
|
1686
1686
|
const rt = [], ko = 100;
|
|
1687
|
-
function
|
|
1687
|
+
function xe(t, e) {
|
|
1688
1688
|
if (!t)
|
|
1689
1689
|
throw new Error(e || "assertion failure");
|
|
1690
1690
|
}
|
|
@@ -1725,7 +1725,7 @@ class Dt {
|
|
|
1725
1725
|
// usually false, (2) this.dirtyChildren is usually null/empty, and thus
|
|
1726
1726
|
// (3) valueGet(this.value) is usually returned without recomputation.
|
|
1727
1727
|
recompute(e) {
|
|
1728
|
-
return
|
|
1728
|
+
return xe(!this.recomputing, "already recomputing"), Kr(this), de(this) ? Io(this, e) : ci(this.value);
|
|
1729
1729
|
}
|
|
1730
1730
|
setDirty() {
|
|
1731
1731
|
this.dirty || (this.dirty = !0, li(this), Er(this));
|
|
@@ -1791,7 +1791,7 @@ function wr(t, e) {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
1793
|
function di(t, e) {
|
|
1794
|
-
|
|
1794
|
+
xe(t.childValues.has(e)), xe(de(e));
|
|
1795
1795
|
const r = !de(t);
|
|
1796
1796
|
if (!t.dirtyChildren)
|
|
1797
1797
|
t.dirtyChildren = rt.pop() || /* @__PURE__ */ new Set();
|
|
@@ -1800,7 +1800,7 @@ function di(t, e) {
|
|
|
1800
1800
|
t.dirtyChildren.add(e), r && li(t);
|
|
1801
1801
|
}
|
|
1802
1802
|
function vi(t, e) {
|
|
1803
|
-
|
|
1803
|
+
xe(t.childValues.has(e)), xe(!de(e));
|
|
1804
1804
|
const r = t.childValues.get(e);
|
|
1805
1805
|
r.length === 0 ? t.childValues.set(e, fi(e.value)) : ui(r, e.value) || t.setDirty(), pi(t, e), !de(t) && hi(t);
|
|
1806
1806
|
}
|
|
@@ -1811,7 +1811,7 @@ function pi(t, e) {
|
|
|
1811
1811
|
function yi(t) {
|
|
1812
1812
|
t.childValues.size > 0 && t.childValues.forEach((e, r) => {
|
|
1813
1813
|
mi(t, r);
|
|
1814
|
-
}), t.forgetDeps(),
|
|
1814
|
+
}), t.forgetDeps(), xe(t.dirtyChildren === null);
|
|
1815
1815
|
}
|
|
1816
1816
|
function mi(t, e) {
|
|
1817
1817
|
e.parents.delete(t), t.childValues.delete(e), pi(t, e);
|
|
@@ -1936,7 +1936,7 @@ var bi = (
|
|
|
1936
1936
|
});
|
|
1937
1937
|
}
|
|
1938
1938
|
}, t.prototype.performWork = function(e) {
|
|
1939
|
-
return
|
|
1939
|
+
return Ve(e), this.transform(e);
|
|
1940
1940
|
}, t.prototype.transformDocument = function(e) {
|
|
1941
1941
|
if (this.resultCache.has(e))
|
|
1942
1942
|
return e;
|
|
@@ -1988,7 +1988,7 @@ function _i(t, e) {
|
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
1990
1990
|
function Ao(t) {
|
|
1991
|
-
return _i(_e(t) || si(t),
|
|
1991
|
+
return _i(_e(t) || si(t), Qe(Le(t))) ? null : t;
|
|
1992
1992
|
}
|
|
1993
1993
|
function xo(t) {
|
|
1994
1994
|
var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
@@ -2017,7 +2017,7 @@ function rn(t) {
|
|
|
2017
2017
|
};
|
|
2018
2018
|
}
|
|
2019
2019
|
function Ei(t, e) {
|
|
2020
|
-
|
|
2020
|
+
Ve(e);
|
|
2021
2021
|
for (var r = rn(""), n = rn(""), i = function(v) {
|
|
2022
2022
|
for (var b = 0, _ = void 0; b < v.length && (_ = v[b]); ++b)
|
|
2023
2023
|
if (!Q(_)) {
|
|
@@ -2183,7 +2183,7 @@ function jo(t) {
|
|
|
2183
2183
|
return n;
|
|
2184
2184
|
}
|
|
2185
2185
|
function wi(t) {
|
|
2186
|
-
|
|
2186
|
+
Ve(t);
|
|
2187
2187
|
var e = Ei([
|
|
2188
2188
|
{
|
|
2189
2189
|
test: function(r) {
|
|
@@ -2195,7 +2195,7 @@ function wi(t) {
|
|
|
2195
2195
|
return e;
|
|
2196
2196
|
}
|
|
2197
2197
|
function qo(t) {
|
|
2198
|
-
return
|
|
2198
|
+
return Ve(t), Z(t, {
|
|
2199
2199
|
FragmentSpread: function(e) {
|
|
2200
2200
|
var r;
|
|
2201
2201
|
if (!(!((r = e.directives) === null || r === void 0) && r.some(function(n) {
|
|
@@ -2312,8 +2312,8 @@ function Be(t) {
|
|
|
2312
2312
|
function Bo(t) {
|
|
2313
2313
|
return t instanceof P;
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2316
|
-
|
|
2315
|
+
function je(t) {
|
|
2316
|
+
je.log ? je.log(t) : setTimeout(function() {
|
|
2317
2317
|
throw t;
|
|
2318
2318
|
});
|
|
2319
2319
|
}
|
|
@@ -2322,7 +2322,7 @@ function ht(t) {
|
|
|
2322
2322
|
try {
|
|
2323
2323
|
t();
|
|
2324
2324
|
} catch (e) {
|
|
2325
|
-
|
|
2325
|
+
je(e);
|
|
2326
2326
|
}
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
@@ -2337,7 +2337,7 @@ function Si(t) {
|
|
|
2337
2337
|
r && r.call(e);
|
|
2338
2338
|
}
|
|
2339
2339
|
} catch (n) {
|
|
2340
|
-
|
|
2340
|
+
je(n);
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
2343
|
function Kt(t) {
|
|
@@ -2369,7 +2369,7 @@ function Ti(t, e, r) {
|
|
|
2369
2369
|
break;
|
|
2370
2370
|
}
|
|
2371
2371
|
} catch (a) {
|
|
2372
|
-
|
|
2372
|
+
je(a);
|
|
2373
2373
|
}
|
|
2374
2374
|
t._state === "closed" ? Si(t) : t._state === "running" && (t._state = "ready");
|
|
2375
2375
|
}
|
|
@@ -2661,7 +2661,7 @@ var $o = /* @__PURE__ */ function() {
|
|
|
2661
2661
|
Tr() && Object.defineProperty(P, Symbol("extensions"), {
|
|
2662
2662
|
value: {
|
|
2663
2663
|
symbol: Zt,
|
|
2664
|
-
hostReportError:
|
|
2664
|
+
hostReportError: je
|
|
2665
2665
|
},
|
|
2666
2666
|
configurable: !0
|
|
2667
2667
|
});
|
|
@@ -2681,9 +2681,9 @@ function Ho(t) {
|
|
|
2681
2681
|
e = "@@observable";
|
|
2682
2682
|
return e;
|
|
2683
2683
|
}
|
|
2684
|
-
var
|
|
2685
|
-
typeof self < "u" ?
|
|
2686
|
-
Ho(
|
|
2684
|
+
var De;
|
|
2685
|
+
typeof self < "u" ? De = self : typeof window < "u" ? De = window : typeof global < "u" ? De = global : typeof module < "u" ? De = module : De = Function("return this")();
|
|
2686
|
+
Ho(De);
|
|
2687
2687
|
var sn = P.prototype, un = "@@observable";
|
|
2688
2688
|
sn[un] || (sn[un] = function() {
|
|
2689
2689
|
return this;
|
|
@@ -2737,7 +2737,7 @@ function Zo(t) {
|
|
|
2737
2737
|
}
|
|
2738
2738
|
return t;
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function qe(t) {
|
|
2741
2741
|
return globalThis.__DEV__ !== !1 && Xo(t), t;
|
|
2742
2742
|
}
|
|
2743
2743
|
function Ye(t, e, r) {
|
|
@@ -2801,7 +2801,7 @@ function ki(t) {
|
|
|
2801
2801
|
function cn(t) {
|
|
2802
2802
|
return t && typeof t.then == "function";
|
|
2803
2803
|
}
|
|
2804
|
-
var
|
|
2804
|
+
var ke = (
|
|
2805
2805
|
/** @class */
|
|
2806
2806
|
function(t) {
|
|
2807
2807
|
ne(e, t);
|
|
@@ -2865,22 +2865,22 @@ var De = (
|
|
|
2865
2865
|
}, e;
|
|
2866
2866
|
}(P)
|
|
2867
2867
|
);
|
|
2868
|
-
ki(
|
|
2869
|
-
function
|
|
2868
|
+
ki(ke);
|
|
2869
|
+
function Pe(t) {
|
|
2870
2870
|
return "incremental" in t;
|
|
2871
2871
|
}
|
|
2872
2872
|
function Ko(t) {
|
|
2873
2873
|
return "hasNext" in t && "data" in t;
|
|
2874
2874
|
}
|
|
2875
2875
|
function es(t) {
|
|
2876
|
-
return
|
|
2876
|
+
return Pe(t) || Ko(t);
|
|
2877
2877
|
}
|
|
2878
2878
|
function ts(t) {
|
|
2879
2879
|
return q(t) && "payload" in t;
|
|
2880
2880
|
}
|
|
2881
2881
|
function Ii(t, e) {
|
|
2882
2882
|
var r = t, n = new ve();
|
|
2883
|
-
return
|
|
2883
|
+
return Pe(e) && H(e.incremental) && e.incremental.forEach(function(i) {
|
|
2884
2884
|
for (var a = i.data, o = i.path, s = o.length - 1; s >= 0; --s) {
|
|
2885
2885
|
var u = o[s], c = !isNaN(+u), f = c ? [] : {};
|
|
2886
2886
|
f[u] = a, a = f;
|
|
@@ -2894,7 +2894,7 @@ function dt(t) {
|
|
|
2894
2894
|
}
|
|
2895
2895
|
function tr(t) {
|
|
2896
2896
|
var e = H(t.errors) ? t.errors.slice(0) : [];
|
|
2897
|
-
return
|
|
2897
|
+
return Pe(t) && H(t.incremental) && t.incremental.forEach(function(r) {
|
|
2898
2898
|
r.errors && e.push.apply(e, r.errors);
|
|
2899
2899
|
}), e;
|
|
2900
2900
|
}
|
|
@@ -2974,12 +2974,12 @@ function fn(t, e) {
|
|
|
2974
2974
|
return e ? e(t) : P.of();
|
|
2975
2975
|
}
|
|
2976
2976
|
function Ue(t) {
|
|
2977
|
-
return typeof t == "function" ? new
|
|
2977
|
+
return typeof t == "function" ? new ze(t) : t;
|
|
2978
2978
|
}
|
|
2979
2979
|
function ft(t) {
|
|
2980
2980
|
return t.request.length <= 1;
|
|
2981
2981
|
}
|
|
2982
|
-
var
|
|
2982
|
+
var ze = (
|
|
2983
2983
|
/** @class */
|
|
2984
2984
|
function() {
|
|
2985
2985
|
function t(e) {
|
|
@@ -3030,7 +3030,7 @@ var Le = (
|
|
|
3030
3030
|
return this.onError = e, this;
|
|
3031
3031
|
}, t;
|
|
3032
3032
|
}()
|
|
3033
|
-
), rr =
|
|
3033
|
+
), rr = ze.execute;
|
|
3034
3034
|
function os(t) {
|
|
3035
3035
|
var e, r = t[Symbol.asyncIterator]();
|
|
3036
3036
|
return e = {
|
|
@@ -3393,7 +3393,7 @@ var dn = X(function() {
|
|
|
3393
3393
|
credentials: l.credentials,
|
|
3394
3394
|
headers: l.headers
|
|
3395
3395
|
};
|
|
3396
|
-
return new
|
|
3396
|
+
return new ze(function(d) {
|
|
3397
3397
|
var y = Rs(d, r), m = d.getContext(), g = {};
|
|
3398
3398
|
if (m.clientAwareness) {
|
|
3399
3399
|
var v = m.clientAwareness, b = v.name, _ = v.version;
|
|
@@ -3426,10 +3426,10 @@ var dn = X(function() {
|
|
|
3426
3426
|
j && U && globalThis.__DEV__ !== !1 && S.warn(41), j ? K += "boundary=graphql;subscriptionSpec=1.0,application/json" : U && (K += "deferSpec=20220824,application/json"), k.headers.accept = K;
|
|
3427
3427
|
}
|
|
3428
3428
|
if (k.method === "GET") {
|
|
3429
|
-
var oe = Cs(y, R),
|
|
3430
|
-
if (
|
|
3431
|
-
return At(
|
|
3432
|
-
y =
|
|
3429
|
+
var oe = Cs(y, R), Oe = oe.newURI, Se = oe.parseError;
|
|
3430
|
+
if (Se)
|
|
3431
|
+
return At(Se);
|
|
3432
|
+
y = Oe;
|
|
3433
3433
|
} else
|
|
3434
3434
|
try {
|
|
3435
3435
|
k.body = nr(R, "Payload");
|
|
@@ -3440,15 +3440,15 @@ var dn = X(function() {
|
|
|
3440
3440
|
var ca = n || X(function() {
|
|
3441
3441
|
return fetch;
|
|
3442
3442
|
}) || dn, Ar = $.next.bind($);
|
|
3443
|
-
return ca(y, k).then(function(
|
|
3443
|
+
return ca(y, k).then(function(Te) {
|
|
3444
3444
|
var It;
|
|
3445
|
-
d.setContext({ response:
|
|
3446
|
-
var xr = (It =
|
|
3447
|
-
return xr !== null && /^multipart\/mixed/i.test(xr) ? gs(
|
|
3445
|
+
d.setContext({ response: Te });
|
|
3446
|
+
var xr = (It = Te.headers) === null || It === void 0 ? void 0 : It.get("content-type");
|
|
3447
|
+
return xr !== null && /^multipart\/mixed/i.test(xr) ? gs(Te, Ar) : Es(d)(Te).then(Ar);
|
|
3448
3448
|
}).then(function() {
|
|
3449
3449
|
A = void 0, $.complete();
|
|
3450
|
-
}).catch(function(
|
|
3451
|
-
A = void 0, _s(
|
|
3450
|
+
}).catch(function(Te) {
|
|
3451
|
+
A = void 0, _s(Te, $);
|
|
3452
3452
|
}), function() {
|
|
3453
3453
|
A && A.abort();
|
|
3454
3454
|
};
|
|
@@ -3464,7 +3464,7 @@ var dn = X(function() {
|
|
|
3464
3464
|
return n.options = r, n;
|
|
3465
3465
|
}
|
|
3466
3466
|
return e;
|
|
3467
|
-
}(
|
|
3467
|
+
}(ze)
|
|
3468
3468
|
);
|
|
3469
3469
|
const { toString: vn, hasOwnProperty: Ps } = Object.prototype, pn = Function.prototype.toString, ir = /* @__PURE__ */ new Map();
|
|
3470
3470
|
function C(t, e) {
|
|
@@ -3580,7 +3580,7 @@ function mn(t, e) {
|
|
|
3580
3580
|
function Pi(t, e, r, n) {
|
|
3581
3581
|
var i = e.data, a = G(e, ["data"]), o = r.data, s = G(r, ["data"]);
|
|
3582
3582
|
return C(a, s) && vt(ot(t).selectionSet, i, o, {
|
|
3583
|
-
fragmentMap:
|
|
3583
|
+
fragmentMap: Qe(Le(t)),
|
|
3584
3584
|
variables: n
|
|
3585
3585
|
});
|
|
3586
3586
|
}
|
|
@@ -3637,7 +3637,7 @@ function xi() {
|
|
|
3637
3637
|
function ji(t, e, r) {
|
|
3638
3638
|
return Fr.withValue(!0, function() {
|
|
3639
3639
|
var n = He(t, e, r, !1);
|
|
3640
|
-
return Object.isFrozen(t) &&
|
|
3640
|
+
return Object.isFrozen(t) && qe(n), n;
|
|
3641
3641
|
});
|
|
3642
3642
|
}
|
|
3643
3643
|
function qs(t, e) {
|
|
@@ -3718,7 +3718,7 @@ function qi(t, e, r, n) {
|
|
|
3718
3718
|
return S(!!a, 50, n), t == null || C(t, {}) ? t : ji(t, a.selectionSet, {
|
|
3719
3719
|
operationType: "fragment",
|
|
3720
3720
|
operationName: a.name.value,
|
|
3721
|
-
fragmentMap:
|
|
3721
|
+
fragmentMap: Qe(Le(e)),
|
|
3722
3722
|
cache: r,
|
|
3723
3723
|
mutableTargets: new Ni(),
|
|
3724
3724
|
knownChanged: new Ai()
|
|
@@ -3732,7 +3732,7 @@ function Vs(t, e, r) {
|
|
|
3732
3732
|
return S(i, 51), t == null ? t : ji(t, i.selectionSet, {
|
|
3733
3733
|
operationType: i.operation,
|
|
3734
3734
|
operationName: (n = i.name) === null || n === void 0 ? void 0 : n.value,
|
|
3735
|
-
fragmentMap:
|
|
3735
|
+
fragmentMap: Qe(Le(e)),
|
|
3736
3736
|
cache: r,
|
|
3737
3737
|
mutableTargets: new Ni(),
|
|
3738
3738
|
knownChanged: new Ai()
|
|
@@ -3890,14 +3890,14 @@ function or(t, e, r) {
|
|
|
3890
3890
|
return !0;
|
|
3891
3891
|
}) : !1;
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function Fe(t) {
|
|
3894
3894
|
return q(t) && !M(t) && !Q(t);
|
|
3895
3895
|
}
|
|
3896
3896
|
function Ws() {
|
|
3897
3897
|
return new ve();
|
|
3898
3898
|
}
|
|
3899
3899
|
function Ui(t, e) {
|
|
3900
|
-
var r =
|
|
3900
|
+
var r = Qe(Le(t));
|
|
3901
3901
|
return {
|
|
3902
3902
|
fragmentMap: r,
|
|
3903
3903
|
lookupFragment: function(n) {
|
|
@@ -3914,17 +3914,17 @@ var pt = /* @__PURE__ */ Object.create(null), xt = function() {
|
|
|
3914
3914
|
function t(e, r) {
|
|
3915
3915
|
var n = this;
|
|
3916
3916
|
this.policies = e, this.group = r, this.data = /* @__PURE__ */ Object.create(null), this.rootIds = /* @__PURE__ */ Object.create(null), this.refs = /* @__PURE__ */ Object.create(null), this.getFieldValue = function(i, a) {
|
|
3917
|
-
return
|
|
3917
|
+
return qe(M(i) ? n.get(i.__ref, a) : i && i[a]);
|
|
3918
3918
|
}, this.canRead = function(i) {
|
|
3919
3919
|
return M(i) ? n.has(i.__ref) : typeof i == "object";
|
|
3920
3920
|
}, this.toReference = function(i, a) {
|
|
3921
3921
|
if (typeof i == "string")
|
|
3922
|
-
return
|
|
3922
|
+
return Me(i);
|
|
3923
3923
|
if (M(i))
|
|
3924
3924
|
return i;
|
|
3925
3925
|
var o = n.policies.identify(i)[0];
|
|
3926
3926
|
if (o) {
|
|
3927
|
-
var s =
|
|
3927
|
+
var s = Me(o);
|
|
3928
3928
|
return a && n.merge(o, i), s;
|
|
3929
3929
|
}
|
|
3930
3930
|
};
|
|
@@ -3986,7 +3986,7 @@ var pt = /* @__PURE__ */ Object.create(null), xt = function() {
|
|
|
3986
3986
|
readField: function(c, f) {
|
|
3987
3987
|
return n.policies.readField(typeof c == "string" ? {
|
|
3988
3988
|
fieldName: c,
|
|
3989
|
-
from: f ||
|
|
3989
|
+
from: f || Me(e)
|
|
3990
3990
|
} : c, { store: n });
|
|
3991
3991
|
}
|
|
3992
3992
|
};
|
|
@@ -3995,7 +3995,7 @@ var pt = /* @__PURE__ */ Object.create(null), xt = function() {
|
|
|
3995
3995
|
if (l !== void 0) {
|
|
3996
3996
|
var h = typeof r == "function" ? r : r[c] || r[f];
|
|
3997
3997
|
if (h) {
|
|
3998
|
-
var d = h === xt ? pt : h(
|
|
3998
|
+
var d = h === xt ? pt : h(qe(l), p(p({}, u), { fieldName: f, storeFieldName: c, storage: n.getStorage(e, c) }));
|
|
3999
3999
|
if (d === _n)
|
|
4000
4000
|
n.group.dirty(e, c);
|
|
4001
4001
|
else if (d === pt && (d = void 0), d !== l && (a[c] = d, o = !0, l = d, globalThis.__DEV__ !== !1)) {
|
|
@@ -4328,7 +4328,7 @@ var Hs = (
|
|
|
4328
4328
|
}, t.prototype.diffQueryAgainstStore = function(e) {
|
|
4329
4329
|
var r = e.store, n = e.query, i = e.rootId, a = i === void 0 ? "ROOT_QUERY" : i, o = e.variables, s = e.returnPartialData, u = s === void 0 ? !0 : s, c = e.canonizeResults, f = c === void 0 ? this.config.canonizeResults : c, l = this.config.cache.policies;
|
|
4330
4330
|
o = p(p({}, br(oi(n))), o);
|
|
4331
|
-
var h =
|
|
4331
|
+
var h = Me(a), d = this.executeSelectionSet({
|
|
4332
4332
|
selectionSet: ot(n).selectionSet,
|
|
4333
4333
|
objectOrReference: h,
|
|
4334
4334
|
enclosingRef: h,
|
|
@@ -4400,7 +4400,7 @@ var Hs = (
|
|
|
4400
4400
|
k && u.fragmentMatches(k, f) && k.selectionSet.selections.forEach(m.add, m);
|
|
4401
4401
|
}
|
|
4402
4402
|
});
|
|
4403
|
-
var g = kt(l), v = { result: g, missing: h }, b = o.canonizeResults ? this.canon.admit(v) :
|
|
4403
|
+
var g = kt(l), v = { result: g, missing: h }, b = o.canonizeResults ? this.canon.admit(v) : qe(v);
|
|
4404
4404
|
return b.result && this.knownResults.set(b.result, n), b;
|
|
4405
4405
|
}, t.prototype.execSubSelectedArrayImpl = function(e) {
|
|
4406
4406
|
var r = this, n = e.field, i = e.array, a = e.enclosingRef, o = e.context, s, u = new ve();
|
|
@@ -4513,7 +4513,7 @@ function kn(t) {
|
|
|
4513
4513
|
var i = function(o, s) {
|
|
4514
4514
|
return n.readField(s, o);
|
|
4515
4515
|
}, a = n.keyObject = Mr(t, function(o) {
|
|
4516
|
-
var s =
|
|
4516
|
+
var s = Ne(
|
|
4517
4517
|
n.storeObject,
|
|
4518
4518
|
o,
|
|
4519
4519
|
// Using context.readField to extract paths from context.storeObject
|
|
@@ -4521,7 +4521,7 @@ function kn(t) {
|
|
|
4521
4521
|
// custom read functions.
|
|
4522
4522
|
i
|
|
4523
4523
|
);
|
|
4524
|
-
return s === void 0 && r !== n.storeObject && V.call(r, o[0]) && (s =
|
|
4524
|
+
return s === void 0 && r !== n.storeObject && V.call(r, o[0]) && (s = Ne(r, o, Hi)), S(s !== void 0, 5, o.join("."), r), s;
|
|
4525
4525
|
});
|
|
4526
4526
|
return "".concat(n.typename, ":").concat(JSON.stringify(a));
|
|
4527
4527
|
});
|
|
@@ -4536,7 +4536,7 @@ function In(t) {
|
|
|
4536
4536
|
var h = f.slice(1), d = i.directives.find(function(v) {
|
|
4537
4537
|
return v.name.value === h;
|
|
4538
4538
|
}), y = d && St(d, a);
|
|
4539
|
-
return y &&
|
|
4539
|
+
return y && Ne(
|
|
4540
4540
|
y,
|
|
4541
4541
|
// If keyPath.length === 1, this code calls extractKeyPath with an
|
|
4542
4542
|
// empty path, which works because it uses directiveArgs as the
|
|
@@ -4550,12 +4550,12 @@ function In(t) {
|
|
|
4550
4550
|
var m = f.slice(1);
|
|
4551
4551
|
if (a && V.call(a, m)) {
|
|
4552
4552
|
var g = c.slice(0);
|
|
4553
|
-
return g[0] = m,
|
|
4553
|
+
return g[0] = m, Ne(a, g);
|
|
4554
4554
|
}
|
|
4555
4555
|
return;
|
|
4556
4556
|
}
|
|
4557
4557
|
if (r)
|
|
4558
|
-
return
|
|
4558
|
+
return Ne(r, c);
|
|
4559
4559
|
}), u = JSON.stringify(s);
|
|
4560
4560
|
return (r || u !== "{}") && (o += ":" + u), o;
|
|
4561
4561
|
});
|
|
@@ -4587,7 +4587,7 @@ function Gi(t) {
|
|
|
4587
4587
|
function Hi(t, e) {
|
|
4588
4588
|
return t[e];
|
|
4589
4589
|
}
|
|
4590
|
-
function
|
|
4590
|
+
function Ne(t, e, r) {
|
|
4591
4591
|
return r = r || Hi, Ji(e.reduce(function n(i, a) {
|
|
4592
4592
|
return Q(i) ? i.map(function(o) {
|
|
4593
4593
|
return n(o, a);
|
|
@@ -4596,7 +4596,7 @@ function Pe(t, e, r) {
|
|
|
4596
4596
|
}
|
|
4597
4597
|
function Ji(t) {
|
|
4598
4598
|
return q(t) ? Q(t) ? t.map(Ji) : Mr(Object.keys(t).sort(), function(e) {
|
|
4599
|
-
return
|
|
4599
|
+
return Ne(t, e);
|
|
4600
4600
|
}) : t;
|
|
4601
4601
|
}
|
|
4602
4602
|
function sr(t) {
|
|
@@ -4846,11 +4846,11 @@ function Yi(t) {
|
|
|
4846
4846
|
var i = t.getFieldValue(r, "__typename"), a = t.getFieldValue(n, "__typename"), o = i && a && i !== a;
|
|
4847
4847
|
if (o)
|
|
4848
4848
|
return n;
|
|
4849
|
-
if (M(r) &&
|
|
4849
|
+
if (M(r) && Fe(n))
|
|
4850
4850
|
return t.merge(r.__ref, n), r;
|
|
4851
|
-
if (
|
|
4851
|
+
if (Fe(r) && M(n))
|
|
4852
4852
|
return t.merge(r, n.__ref), n;
|
|
4853
|
-
if (
|
|
4853
|
+
if (Fe(r) && Fe(n))
|
|
4854
4854
|
return p(p({}, r), n);
|
|
4855
4855
|
}
|
|
4856
4856
|
return n;
|
|
@@ -4881,7 +4881,7 @@ var ru = (
|
|
|
4881
4881
|
if (!M(h))
|
|
4882
4882
|
throw W(12, a);
|
|
4883
4883
|
return l.incomingById.forEach(function(d, y) {
|
|
4884
|
-
var m = d.storeObject, g = d.mergeTree, v = d.fieldNodeSet, b =
|
|
4884
|
+
var m = d.storeObject, g = d.mergeTree, v = d.fieldNodeSet, b = Me(y);
|
|
4885
4885
|
if (g && g.map.size) {
|
|
4886
4886
|
var _ = n.applyMerges(g, b, m, l);
|
|
4887
4887
|
if (M(_))
|
|
@@ -4944,7 +4944,7 @@ var ru = (
|
|
|
4944
4944
|
E.selectionSet ? qt(_, !1, !1) : _,
|
|
4945
4945
|
R
|
|
4946
4946
|
), B = void 0;
|
|
4947
|
-
E.selectionSet && (M(A) ||
|
|
4947
|
+
E.selectionSet && (M(A) || Fe(A)) && (B = l("__typename", A));
|
|
4948
4948
|
var J = u.getMergeFunction(f, E.name.value, B);
|
|
4949
4949
|
J ? R.info = {
|
|
4950
4950
|
// TODO Check compatibility against any existing childTree.field?
|
|
@@ -4971,7 +4971,7 @@ var ru = (
|
|
|
4971
4971
|
throw _;
|
|
4972
4972
|
}
|
|
4973
4973
|
if (typeof n == "string") {
|
|
4974
|
-
var g =
|
|
4974
|
+
var g = Me(n), v = o.written[n] || (o.written[n] = []);
|
|
4975
4975
|
if (v.indexOf(a) >= 0 || (v.push(a), this.reader && this.reader.isFresh(i, g, a, o)))
|
|
4976
4976
|
return g;
|
|
4977
4977
|
var b = o.incomingById.get(n);
|
|
@@ -5047,7 +5047,7 @@ var ru = (
|
|
|
5047
5047
|
!Q(n) && // Likewise, existing must be either a Reference or a StoreObject
|
|
5048
5048
|
// in order for its fields to be safe to merge with the fields of
|
|
5049
5049
|
// the incoming object.
|
|
5050
|
-
(M(r) ||
|
|
5050
|
+
(M(r) || Fe(r)) ? r : void 0
|
|
5051
5051
|
), c = n;
|
|
5052
5052
|
u && !a && (a = [M(u) ? u.__ref : u]);
|
|
5053
5053
|
var f, l = function(h, d) {
|
|
@@ -5293,7 +5293,7 @@ var F;
|
|
|
5293
5293
|
(function(t) {
|
|
5294
5294
|
t[t.loading = 1] = "loading", t[t.setVariables = 2] = "setVariables", t[t.fetchMore = 3] = "fetchMore", t[t.refetch = 4] = "refetch", t[t.poll = 6] = "poll", t[t.ready = 7] = "ready", t[t.error = 8] = "error";
|
|
5295
5295
|
})(F || (F = {}));
|
|
5296
|
-
function
|
|
5296
|
+
function Re(t) {
|
|
5297
5297
|
return t ? t < 7 : !1;
|
|
5298
5298
|
}
|
|
5299
5299
|
var xn = Object.assign, iu = Object.hasOwnProperty, et = (
|
|
@@ -5367,7 +5367,7 @@ var xn = Object.assign, iu = Object.hasOwnProperty, et = (
|
|
|
5367
5367
|
this.queryInfo.resetDiff();
|
|
5368
5368
|
}, e.prototype.getCurrentFullResult = function(r) {
|
|
5369
5369
|
r === void 0 && (r = !0);
|
|
5370
|
-
var n = this.getLastResult(!0), i = this.queryInfo.networkStatus || n && n.networkStatus || F.ready, a = p(p({}, n), { loading:
|
|
5370
|
+
var n = this.getLastResult(!0), i = this.queryInfo.networkStatus || n && n.networkStatus || F.ready, a = p(p({}, n), { loading: Re(i), networkStatus: i }), o = this.options.fetchPolicy, s = o === void 0 ? "cache-first" : o;
|
|
5371
5371
|
if (
|
|
5372
5372
|
// These fetch policies should never deliver data from the cache, unless
|
|
5373
5373
|
// redelivering a previously delivered result.
|
|
@@ -5463,7 +5463,7 @@ var xn = Object.assign, iu = Object.hasOwnProperty, et = (
|
|
|
5463
5463
|
fetchMoreResult: l.data,
|
|
5464
5464
|
variables: i.variables
|
|
5465
5465
|
});
|
|
5466
|
-
n.reportResult(p(p({}, h), { networkStatus: s, loading:
|
|
5466
|
+
n.reportResult(p(p({}, h), { networkStatus: s, loading: Re(s), data: d }), n.variables);
|
|
5467
5467
|
}
|
|
5468
5468
|
return n.maskResult(l);
|
|
5469
5469
|
}).finally(function() {
|
|
@@ -5551,7 +5551,7 @@ var xn = Object.assign, iu = Object.hasOwnProperty, et = (
|
|
|
5551
5551
|
o.interval = a;
|
|
5552
5552
|
var s = function() {
|
|
5553
5553
|
var c, f;
|
|
5554
|
-
r.pollingInfo && (!
|
|
5554
|
+
r.pollingInfo && (!Re(r.queryInfo.networkStatus) && !(!((f = (c = r.options).skipPollAttempt) === null || f === void 0) && f.call(c)) ? r.reobserve({
|
|
5555
5555
|
// Most fetchPolicy options don't make sense to use in a polling context, as
|
|
5556
5556
|
// users wouldn't want to be polling the cache directly. However, network-only and
|
|
5557
5557
|
// no-cache are both useful for when the user wants to control whether or not the
|
|
@@ -5652,7 +5652,7 @@ var xn = Object.assign, iu = Object.hasOwnProperty, et = (
|
|
|
5652
5652
|
return r.notify();
|
|
5653
5653
|
}, 0)));
|
|
5654
5654
|
}, e.prototype.notify = function() {
|
|
5655
|
-
if (this.cancelNotifyTimeout(), this.dirty && (this.options.fetchPolicy == "cache-only" || this.options.fetchPolicy == "cache-and-network" || !
|
|
5655
|
+
if (this.cancelNotifyTimeout(), this.dirty && (this.options.fetchPolicy == "cache-only" || this.options.fetchPolicy == "cache-and-network" || !Re(this.queryInfo.networkStatus))) {
|
|
5656
5656
|
var r = this.queryInfo.getDiff();
|
|
5657
5657
|
r.fromOptimisticTransaction ? this.observe() : this.reobserveCacheFirst();
|
|
5658
5658
|
}
|
|
@@ -5680,17 +5680,17 @@ function Ki(t) {
|
|
|
5680
5680
|
function Qt(t) {
|
|
5681
5681
|
return t === "network-only" || t === "no-cache" || t === "standby";
|
|
5682
5682
|
}
|
|
5683
|
-
var
|
|
5683
|
+
var Ce = new (we ? WeakMap : Map)();
|
|
5684
5684
|
function Vt(t, e) {
|
|
5685
5685
|
var r = t[e];
|
|
5686
5686
|
typeof r == "function" && (t[e] = function() {
|
|
5687
|
-
return
|
|
5687
|
+
return Ce.set(
|
|
5688
5688
|
t,
|
|
5689
5689
|
// The %1e15 allows the count to wrap around to 0 safely every
|
|
5690
5690
|
// quadrillion evictions, so there's no risk of overflow. To be
|
|
5691
5691
|
// clear, this is more of a pedantic principle than something
|
|
5692
5692
|
// that matters in any conceivable practical scenario.
|
|
5693
|
-
(
|
|
5693
|
+
(Ce.get(t) + 1) % 1e15
|
|
5694
5694
|
), r.apply(this, arguments);
|
|
5695
5695
|
});
|
|
5696
5696
|
}
|
|
@@ -5700,7 +5700,7 @@ var Lt = (
|
|
|
5700
5700
|
function t(e, r) {
|
|
5701
5701
|
r === void 0 && (r = e.generateQueryId()), this.queryId = r, this.document = null, this.lastRequestId = 1, this.stopped = !1, this.observableQuery = null;
|
|
5702
5702
|
var n = this.cache = e.cache;
|
|
5703
|
-
|
|
5703
|
+
Ce.has(n) || (Ce.set(n, 0), Vt(n, "evict"), Vt(n, "modify"), Vt(n, "reset"));
|
|
5704
5704
|
}
|
|
5705
5705
|
return t.prototype.init = function(e) {
|
|
5706
5706
|
var r = e.networkStatus || F.loading;
|
|
@@ -5769,7 +5769,7 @@ var Lt = (
|
|
|
5769
5769
|
return !(n && // If cache.evict has been called since the last time we wrote this
|
|
5770
5770
|
// data into the cache, there's a chance writing this result into
|
|
5771
5771
|
// the cache will repair what was evicted.
|
|
5772
|
-
n.dmCount ===
|
|
5772
|
+
n.dmCount === Ce.get(this.cache) && C(r, n.variables) && C(e.data, n.result.data));
|
|
5773
5773
|
}, t.prototype.markResult = function(e, r, n, i) {
|
|
5774
5774
|
var a = this, o, s = new ve(), u = H(e.errors) ? e.errors.slice(0) : [];
|
|
5775
5775
|
if ((o = this.observableQuery) === null || o === void 0 || o.resetNotifications(), "incremental" in e && H(e.incremental)) {
|
|
@@ -5789,7 +5789,7 @@ var Lt = (
|
|
|
5789
5789
|
}), a.lastWrite = {
|
|
5790
5790
|
result: e,
|
|
5791
5791
|
variables: n.variables,
|
|
5792
|
-
dmCount:
|
|
5792
|
+
dmCount: Ce.get(a.cache)
|
|
5793
5793
|
};
|
|
5794
5794
|
else if (a.lastDiff && a.lastDiff.diff.complete) {
|
|
5795
5795
|
e.data = a.lastDiff.diff.result;
|
|
@@ -5913,12 +5913,12 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
5913
5913
|
r === void 0 && (r = this.cache);
|
|
5914
5914
|
var i = e.result, a = [], o = e.fetchPolicy === "no-cache";
|
|
5915
5915
|
if (!o && cr(i, e.errorPolicy)) {
|
|
5916
|
-
if (
|
|
5916
|
+
if (Pe(i) || a.push({
|
|
5917
5917
|
result: i.data,
|
|
5918
5918
|
dataId: "ROOT_MUTATION",
|
|
5919
5919
|
query: e.document,
|
|
5920
5920
|
variables: e.variables
|
|
5921
|
-
}),
|
|
5921
|
+
}), Pe(i) && H(i.incremental)) {
|
|
5922
5922
|
var s = r.diff({
|
|
5923
5923
|
id: "ROOT_MUTATION",
|
|
5924
5924
|
// The cache complains if passed a mutation where it expects a
|
|
@@ -5969,7 +5969,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
5969
5969
|
o || a.forEach(function(m) {
|
|
5970
5970
|
return l.write(m);
|
|
5971
5971
|
});
|
|
5972
|
-
var h = e.update, d = !es(i) ||
|
|
5972
|
+
var h = e.update, d = !es(i) || Pe(i) && !i.hasNext;
|
|
5973
5973
|
if (h) {
|
|
5974
5974
|
if (!o) {
|
|
5975
5975
|
var y = l.diff({
|
|
@@ -6226,7 +6226,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
6226
6226
|
if (r = m.context, a) {
|
|
6227
6227
|
var g = ge(f), v = le(n), b = d.lookup(g, v);
|
|
6228
6228
|
if (u = b.observable, !u) {
|
|
6229
|
-
var _ = new
|
|
6229
|
+
var _ = new ke([
|
|
6230
6230
|
rr(y, m)
|
|
6231
6231
|
]);
|
|
6232
6232
|
u = b.observable = _, _.beforeNext(function E(w, O) {
|
|
@@ -6234,11 +6234,11 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
6234
6234
|
});
|
|
6235
6235
|
}
|
|
6236
6236
|
} else
|
|
6237
|
-
u = new
|
|
6237
|
+
u = new ke([
|
|
6238
6238
|
rr(y, m)
|
|
6239
6239
|
]);
|
|
6240
6240
|
} else
|
|
6241
|
-
u = new
|
|
6241
|
+
u = new ke([P.of({ data: {} })]), r = this.prepareContext(r);
|
|
6242
6242
|
return l && (u = Nt(u, function(E) {
|
|
6243
6243
|
return o.localState.runResolvers({
|
|
6244
6244
|
document: l,
|
|
@@ -6299,12 +6299,12 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
6299
6299
|
});
|
|
6300
6300
|
var w, O;
|
|
6301
6301
|
if (this.getDocumentInfo(b.query).hasClientExports)
|
|
6302
|
-
w = new
|
|
6302
|
+
w = new ke(this.localState.addExportedVariables(b.query, b.variables, b.context).then(_).then(function(k) {
|
|
6303
6303
|
return k.sources;
|
|
6304
6304
|
})), O = !0;
|
|
6305
6305
|
else {
|
|
6306
6306
|
var D = _(b.variables);
|
|
6307
|
-
O = D.fromLink, w = new
|
|
6307
|
+
O = D.fromLink, w = new ke(D.sources);
|
|
6308
6308
|
}
|
|
6309
6309
|
return w.promise.then(E, E), {
|
|
6310
6310
|
concast: w,
|
|
@@ -6401,7 +6401,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
6401
6401
|
var O = E.result;
|
|
6402
6402
|
globalThis.__DEV__ !== !1 && !f && !C(O, {}) && Ki(E.missing);
|
|
6403
6403
|
var D = function(k) {
|
|
6404
|
-
return P.of(p({ data: k, loading:
|
|
6404
|
+
return P.of(p({ data: k, loading: Re(w), networkStatus: w }, E.complete ? null : { partial: !0 }));
|
|
6405
6405
|
};
|
|
6406
6406
|
return O && i.getDocumentInfo(a).hasForcedResolvers ? i.localState.runResolvers({
|
|
6407
6407
|
document: a,
|
|
@@ -6420,7 +6420,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
6420
6420
|
fetchPolicy: s,
|
|
6421
6421
|
errorPolicy: c
|
|
6422
6422
|
});
|
|
6423
|
-
}, b = h && typeof d == "number" && d !== n &&
|
|
6423
|
+
}, b = h && typeof d == "number" && d !== n && Re(n);
|
|
6424
6424
|
switch (s) {
|
|
6425
6425
|
default:
|
|
6426
6426
|
case "cache-first": {
|
|
@@ -6544,7 +6544,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
6544
6544
|
return a === void 0 && (a = {}), o === void 0 && (o = {}), s === void 0 && (s = function() {
|
|
6545
6545
|
return !0;
|
|
6546
6546
|
}), u === void 0 && (u = !1), ce(this, function(E) {
|
|
6547
|
-
return c = ot(n), f =
|
|
6547
|
+
return c = ot(n), f = Le(n), l = Qe(f), h = this.collectSelectionsToResolve(c, l), d = c.operation, y = d ? d.charAt(0).toUpperCase() + d.slice(1) : "Query", m = this, g = m.cache, v = m.client, b = {
|
|
6548
6548
|
fragmentMap: l,
|
|
6549
6549
|
context: p(p({}, a), { cache: g, client: v }),
|
|
6550
6550
|
variables: o,
|
|
@@ -6670,7 +6670,7 @@ var ou = Object.prototype.hasOwnProperty, jn = /* @__PURE__ */ Object.create(nul
|
|
|
6670
6670
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache)
|
|
6671
6671
|
throw W(16);
|
|
6672
6672
|
var i = e.uri, a = e.credentials, o = e.headers, s = e.cache, u = e.documentTransform, c = e.ssrMode, f = c === void 0 ? !1 : c, l = e.ssrForceFetchDelay, h = l === void 0 ? 0 : l, d = e.connectToDevTools, y = e.queryDeduplication, m = y === void 0 ? !0 : y, g = e.defaultOptions, v = e.defaultContext, b = e.assumeImmutableResults, _ = b === void 0 ? s.assumeImmutableResults : b, E = e.resolvers, w = e.typeDefs, O = e.fragmentMatcher, D = e.name, k = e.version, R = e.devtools, A = e.dataMasking, B = e.link;
|
|
6673
|
-
B || (B = i ? new Ms({ uri: i, credentials: a, headers: o }) :
|
|
6673
|
+
B || (B = i ? new Ms({ uri: i, credentials: a, headers: o }) : ze.empty()), this.link = B, this.cache = s, this.disableNetworkFetches = f || h > 0, this.queryDeduplication = m, this.defaultOptions = g || /* @__PURE__ */ Object.create(null), this.typeDefs = w, this.devtoolsConfig = p(p({}, R), { enabled: (n = R == null ? void 0 : R.enabled) !== null && n !== void 0 ? n : d }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), h && setTimeout(function() {
|
|
6674
6674
|
return r.disableNetworkFetches = !1;
|
|
6675
6675
|
}, h), 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 = hr, this.localState = new uu({
|
|
6676
6676
|
cache: s,
|
|
@@ -7177,12 +7177,12 @@ function oa(t, e, r, n) {
|
|
|
7177
7177
|
function Iu(t, e, r) {
|
|
7178
7178
|
return t.partial && r && !t.loading && (!t.data || Object.keys(t.data).length === 0) && e.options.fetchPolicy !== "cache-only" ? (e.refetch(), p(p({}, t), { loading: !0, networkStatus: F.refetch })) : t;
|
|
7179
7179
|
}
|
|
7180
|
-
var sa =
|
|
7180
|
+
var sa = qe({
|
|
7181
7181
|
loading: !0,
|
|
7182
7182
|
data: void 0,
|
|
7183
7183
|
error: void 0,
|
|
7184
7184
|
networkStatus: F.loading
|
|
7185
|
-
}), ua =
|
|
7185
|
+
}), ua = qe({
|
|
7186
7186
|
loading: !1,
|
|
7187
7187
|
data: void 0,
|
|
7188
7188
|
error: void 0,
|
|
@@ -7277,7 +7277,7 @@ function $n(t, e) {
|
|
|
7277
7277
|
}, []), [s, p({ reset: u }, i)];
|
|
7278
7278
|
}
|
|
7279
7279
|
function Ru(t) {
|
|
7280
|
-
return new
|
|
7280
|
+
return new ze(function(e, r) {
|
|
7281
7281
|
var n = G(e, []);
|
|
7282
7282
|
return new P(function(i) {
|
|
7283
7283
|
var a, o = !1;
|
|
@@ -7390,9 +7390,9 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7390
7390
|
}, [d]), Vr(() => {
|
|
7391
7391
|
(async () => {
|
|
7392
7392
|
var J, j, U;
|
|
7393
|
-
if (!w && window)
|
|
7393
|
+
if (console.log("useEffect"), console.log(w), console.log(window), !w && window)
|
|
7394
7394
|
try {
|
|
7395
|
-
const K = new URLSearchParams(window.location.search), oe = Object.fromEntries(K.entries()), { data:
|
|
7395
|
+
const K = new URLSearchParams(window.location.search), oe = Object.fromEntries(K.entries()), { data: Oe, errors: Se } = await D({
|
|
7396
7396
|
variables: {
|
|
7397
7397
|
campaignId: e,
|
|
7398
7398
|
externalUserId: s,
|
|
@@ -7403,7 +7403,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
7403
7403
|
parameters: oe
|
|
7404
7404
|
}
|
|
7405
7405
|
});
|
|
7406
|
-
window.__PROMOGAME_CAMPAIGN_ID = e, window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN =
|
|
7406
|
+
console.log(Oe), window.__PROMOGAME_CAMPAIGN_ID = e, window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN = Oe == null ? void 0 : Oe.startAppSession.accessToken, window.__PROMOGAME_ERROR_CODE = (U = (j = (J = Se == null ? void 0 : Se[0]) == null ? void 0 : J.extensions) == null ? void 0 : j.code) == null ? void 0 : U.toString(), O(!0), k({
|
|
7407
7407
|
variables: {
|
|
7408
7408
|
avatar: l,
|
|
7409
7409
|
phone: f,
|