@wexio/messenger-widget-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +133 -0
- package/dist/widget-react-AgErOR36.js +325 -0
- package/dist/widget-react-AgErOR36.js.map +1 -0
- package/dist/widget-react-BAOIDvhV.js +4250 -0
- package/dist/widget-react-BAOIDvhV.js.map +1 -0
- package/dist/widget-react-BfPdgAQ-.js +5767 -0
- package/dist/widget-react-BfPdgAQ-.js.map +1 -0
- package/dist/widget-react-BxvW64LH.js +4429 -0
- package/dist/widget-react-BxvW64LH.js.map +1 -0
- package/dist/widget-react-C5COLy3m.js +23847 -0
- package/dist/widget-react-C5COLy3m.js.map +1 -0
- package/dist/widget-react-CAWxn8I0.js +247 -0
- package/dist/widget-react-CAWxn8I0.js.map +1 -0
- package/dist/widget-react-CDPzwV1i.js +11685 -0
- package/dist/widget-react-CDPzwV1i.js.map +1 -0
- package/dist/widget-react-CPYwD6FR.js +498 -0
- package/dist/widget-react-CPYwD6FR.js.map +1 -0
- package/dist/widget-react-CUBFPjaV.js +23 -0
- package/dist/widget-react-CUBFPjaV.js.map +1 -0
- package/dist/widget-react-CUuKGDZN.js +355 -0
- package/dist/widget-react-CUuKGDZN.js.map +1 -0
- package/dist/widget-react-CZs0xRrr.js +1336 -0
- package/dist/widget-react-CZs0xRrr.js.map +1 -0
- package/dist/widget-react-Cj_zbk_F.js +325 -0
- package/dist/widget-react-Cj_zbk_F.js.map +1 -0
- package/dist/widget-react-D-QrEVpv.js +125 -0
- package/dist/widget-react-D-QrEVpv.js.map +1 -0
- package/dist/widget-react-D8TPnM9r.js +26 -0
- package/dist/widget-react-D8TPnM9r.js.map +1 -0
- package/dist/widget-react-DE7AVrCo.js +5737 -0
- package/dist/widget-react-DE7AVrCo.js.map +1 -0
- package/dist/widget-react-DOX6j7_Q.js +30 -0
- package/dist/widget-react-DOX6j7_Q.js.map +1 -0
- package/dist/widget-react-DSw03RG7.js +262 -0
- package/dist/widget-react-DSw03RG7.js.map +1 -0
- package/dist/widget-react-Dew7YaLU.js +16 -0
- package/dist/widget-react-Dew7YaLU.js.map +1 -0
- package/dist/widget-react-DtOeNw5z.js +325 -0
- package/dist/widget-react-DtOeNw5z.js.map +1 -0
- package/dist/widget-react-DwL_rsx_.js +630 -0
- package/dist/widget-react-DwL_rsx_.js.map +1 -0
- package/dist/widget-react.d.ts +301 -0
- package/dist/widget-react.js +22285 -0
- package/dist/widget-react.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,4250 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "react-dom";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react-dom/client";
|
|
5
|
+
import { $ as e, $t as t, At as n, B as r, Bt as i, C as a, Ct as o, Dt as s, Et as c, Ft as l, G as u, Gt as d, H as f, Ht as p, It as m, J as h, Jt as g, K as _, Kt as v, Lt as y, Mt as b, Nt as x, Ot as S, P as C, Pt as w, Q as T, Qt as E, R as D, Rt as ee, St as te, Tt as ne, U as re, Ut as ie, V as O, Vt as ae, W as k, Wt as A, Xt as oe, Yt as se, Z as j, Zt as ce, _t as le, an as ue, at as de, bt as fe, cn as M, ct as N, dn as P, dt as pe, en as F, et as me, fn as I, ft as he, gt as ge, h as _e, ht as ve, in as ye, it as be, jt as xe, k as Se, kt as Ce, ln as L, lt as we, mt as Te, nn as R, nt as Ee, on as De, ot as z, pn as Oe, pt as ke, q as Ae, qt as je, rn as B, rt as Me, sn as Ne, st as V, tt as Pe, un as H, ut as Fe, vt as Ie, w as Le, wt as U, xt as Re, yt as ze, z as Be, zt as Ve } from "./widget-react-BfPdgAQ-.js";
|
|
6
|
+
import { n as He, r as Ue } from "./widget-react-BxvW64LH.js";
|
|
7
|
+
import * as W from "react";
|
|
8
|
+
import { jsx as We } from "react/jsx-runtime";
|
|
9
|
+
//#region node_modules/graphql/language/printString.mjs
|
|
10
|
+
function Ge(e) {
|
|
11
|
+
return `"${e.replace(Ke, qe)}"`;
|
|
12
|
+
}
|
|
13
|
+
var Ke = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
14
|
+
function qe(e) {
|
|
15
|
+
return Je[e.charCodeAt(0)];
|
|
16
|
+
}
|
|
17
|
+
var Je = /* @__PURE__ */ "\\u0000.\\u0001.\\u0002.\\u0003.\\u0004.\\u0005.\\u0006.\\u0007.\\b.\\t.\\n.\\u000B.\\f.\\r.\\u000E.\\u000F.\\u0010.\\u0011.\\u0012.\\u0013.\\u0014.\\u0015.\\u0016.\\u0017.\\u0018.\\u0019.\\u001A.\\u001B.\\u001C.\\u001D.\\u001E.\\u001F...\\\"..........................................................\\\\...................................\\u007F.\\u0080.\\u0081.\\u0082.\\u0083.\\u0084.\\u0085.\\u0086.\\u0087.\\u0088.\\u0089.\\u008A.\\u008B.\\u008C.\\u008D.\\u008E.\\u008F.\\u0090.\\u0091.\\u0092.\\u0093.\\u0094.\\u0095.\\u0096.\\u0097.\\u0098.\\u0099.\\u009A.\\u009B.\\u009C.\\u009D.\\u009E.\\u009F".split(".");
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region node_modules/graphql/language/printer.mjs
|
|
20
|
+
function Ye(e) {
|
|
21
|
+
return E(e, Ze);
|
|
22
|
+
}
|
|
23
|
+
var Xe = 80, Ze = {
|
|
24
|
+
Name: { leave: (e) => e.value },
|
|
25
|
+
Variable: { leave: (e) => "$" + e.name },
|
|
26
|
+
Document: { leave: (e) => G(e.definitions, "\n\n") },
|
|
27
|
+
OperationDefinition: { leave(e) {
|
|
28
|
+
let t = $e(e.variableDefinitions) ? q("(\n", G(e.variableDefinitions, "\n"), "\n)") : q("(", G(e.variableDefinitions, ", "), ")"), n = q("", e.description, "\n") + G([
|
|
29
|
+
e.operation,
|
|
30
|
+
G([e.name, t]),
|
|
31
|
+
G(e.directives, " ")
|
|
32
|
+
], " ");
|
|
33
|
+
return (n === "query" ? "" : n + " ") + e.selectionSet;
|
|
34
|
+
} },
|
|
35
|
+
VariableDefinition: { leave: ({ variable: e, type: t, defaultValue: n, directives: r, description: i }) => q("", i, "\n") + e + ": " + t + q(" = ", n) + q(" ", G(r, " ")) },
|
|
36
|
+
SelectionSet: { leave: ({ selections: e }) => K(e) },
|
|
37
|
+
Field: { leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
|
|
38
|
+
let a = q("", e, ": ") + t, o = a + q("(", G(n, ", "), ")");
|
|
39
|
+
return o.length > Xe && (o = a + q("(\n", Qe(G(n, "\n")), "\n)")), G([
|
|
40
|
+
o,
|
|
41
|
+
G(r, " "),
|
|
42
|
+
i
|
|
43
|
+
], " ");
|
|
44
|
+
} },
|
|
45
|
+
Argument: { leave: ({ name: e, value: t }) => e + ": " + t },
|
|
46
|
+
FragmentSpread: { leave: ({ name: e, directives: t }) => "..." + e + q(" ", G(t, " ")) },
|
|
47
|
+
InlineFragment: { leave: ({ typeCondition: e, directives: t, selectionSet: n }) => G([
|
|
48
|
+
"...",
|
|
49
|
+
q("on ", e),
|
|
50
|
+
G(t, " "),
|
|
51
|
+
n
|
|
52
|
+
], " ") },
|
|
53
|
+
FragmentDefinition: { leave: ({ name: e, typeCondition: t, variableDefinitions: n, directives: r, selectionSet: i, description: a }) => q("", a, "\n") + `fragment ${e}${q("(", G(n, ", "), ")")} on ${t} ${q("", G(r, " "), " ")}` + i },
|
|
54
|
+
IntValue: { leave: ({ value: e }) => e },
|
|
55
|
+
FloatValue: { leave: ({ value: e }) => e },
|
|
56
|
+
StringValue: { leave: ({ value: e, block: n }) => n ? t(e) : Ge(e) },
|
|
57
|
+
BooleanValue: { leave: ({ value: e }) => e ? "true" : "false" },
|
|
58
|
+
NullValue: { leave: () => "null" },
|
|
59
|
+
EnumValue: { leave: ({ value: e }) => e },
|
|
60
|
+
ListValue: { leave: ({ values: e }) => "[" + G(e, ", ") + "]" },
|
|
61
|
+
ObjectValue: { leave: ({ fields: e }) => "{" + G(e, ", ") + "}" },
|
|
62
|
+
ObjectField: { leave: ({ name: e, value: t }) => e + ": " + t },
|
|
63
|
+
Directive: { leave: ({ name: e, arguments: t }) => "@" + e + q("(", G(t, ", "), ")") },
|
|
64
|
+
NamedType: { leave: ({ name: e }) => e },
|
|
65
|
+
ListType: { leave: ({ type: e }) => "[" + e + "]" },
|
|
66
|
+
NonNullType: { leave: ({ type: e }) => e + "!" },
|
|
67
|
+
SchemaDefinition: { leave: ({ description: e, directives: t, operationTypes: n }) => q("", e, "\n") + G([
|
|
68
|
+
"schema",
|
|
69
|
+
G(t, " "),
|
|
70
|
+
K(n)
|
|
71
|
+
], " ") },
|
|
72
|
+
OperationTypeDefinition: { leave: ({ operation: e, type: t }) => e + ": " + t },
|
|
73
|
+
ScalarTypeDefinition: { leave: ({ description: e, name: t, directives: n }) => q("", e, "\n") + G([
|
|
74
|
+
"scalar",
|
|
75
|
+
t,
|
|
76
|
+
G(n, " ")
|
|
77
|
+
], " ") },
|
|
78
|
+
ObjectTypeDefinition: { leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => q("", e, "\n") + G([
|
|
79
|
+
"type",
|
|
80
|
+
t,
|
|
81
|
+
q("implements ", G(n, " & ")),
|
|
82
|
+
G(r, " "),
|
|
83
|
+
K(i)
|
|
84
|
+
], " ") },
|
|
85
|
+
FieldDefinition: { leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => q("", e, "\n") + t + ($e(n) ? q("(\n", Qe(G(n, "\n")), "\n)") : q("(", G(n, ", "), ")")) + ": " + r + q(" ", G(i, " ")) },
|
|
86
|
+
InputValueDefinition: { leave: ({ description: e, name: t, type: n, defaultValue: r, directives: i }) => q("", e, "\n") + G([
|
|
87
|
+
t + ": " + n,
|
|
88
|
+
q("= ", r),
|
|
89
|
+
G(i, " ")
|
|
90
|
+
], " ") },
|
|
91
|
+
InterfaceTypeDefinition: { leave: ({ description: e, name: t, interfaces: n, directives: r, fields: i }) => q("", e, "\n") + G([
|
|
92
|
+
"interface",
|
|
93
|
+
t,
|
|
94
|
+
q("implements ", G(n, " & ")),
|
|
95
|
+
G(r, " "),
|
|
96
|
+
K(i)
|
|
97
|
+
], " ") },
|
|
98
|
+
UnionTypeDefinition: { leave: ({ description: e, name: t, directives: n, types: r }) => q("", e, "\n") + G([
|
|
99
|
+
"union",
|
|
100
|
+
t,
|
|
101
|
+
G(n, " "),
|
|
102
|
+
q("= ", G(r, " | "))
|
|
103
|
+
], " ") },
|
|
104
|
+
EnumTypeDefinition: { leave: ({ description: e, name: t, directives: n, values: r }) => q("", e, "\n") + G([
|
|
105
|
+
"enum",
|
|
106
|
+
t,
|
|
107
|
+
G(n, " "),
|
|
108
|
+
K(r)
|
|
109
|
+
], " ") },
|
|
110
|
+
EnumValueDefinition: { leave: ({ description: e, name: t, directives: n }) => q("", e, "\n") + G([t, G(n, " ")], " ") },
|
|
111
|
+
InputObjectTypeDefinition: { leave: ({ description: e, name: t, directives: n, fields: r }) => q("", e, "\n") + G([
|
|
112
|
+
"input",
|
|
113
|
+
t,
|
|
114
|
+
G(n, " "),
|
|
115
|
+
K(r)
|
|
116
|
+
], " ") },
|
|
117
|
+
DirectiveDefinition: { leave: ({ description: e, name: t, arguments: n, directives: r, repeatable: i, locations: a }) => q("", e, "\n") + "directive @" + t + ($e(n) ? q("(\n", Qe(G(n, "\n")), "\n)") : q("(", G(n, ", "), ")")) + q(" ", G(r, " ")) + (i ? " repeatable" : "") + " on " + G(a, " | ") },
|
|
118
|
+
SchemaExtension: { leave: ({ directives: e, operationTypes: t }) => G([
|
|
119
|
+
"extend schema",
|
|
120
|
+
G(e, " "),
|
|
121
|
+
K(t)
|
|
122
|
+
], " ") },
|
|
123
|
+
ScalarTypeExtension: { leave: ({ name: e, directives: t }) => G([
|
|
124
|
+
"extend scalar",
|
|
125
|
+
e,
|
|
126
|
+
G(t, " ")
|
|
127
|
+
], " ") },
|
|
128
|
+
ObjectTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => G([
|
|
129
|
+
"extend type",
|
|
130
|
+
e,
|
|
131
|
+
q("implements ", G(t, " & ")),
|
|
132
|
+
G(n, " "),
|
|
133
|
+
K(r)
|
|
134
|
+
], " ") },
|
|
135
|
+
InterfaceTypeExtension: { leave: ({ name: e, interfaces: t, directives: n, fields: r }) => G([
|
|
136
|
+
"extend interface",
|
|
137
|
+
e,
|
|
138
|
+
q("implements ", G(t, " & ")),
|
|
139
|
+
G(n, " "),
|
|
140
|
+
K(r)
|
|
141
|
+
], " ") },
|
|
142
|
+
UnionTypeExtension: { leave: ({ name: e, directives: t, types: n }) => G([
|
|
143
|
+
"extend union",
|
|
144
|
+
e,
|
|
145
|
+
G(t, " "),
|
|
146
|
+
q("= ", G(n, " | "))
|
|
147
|
+
], " ") },
|
|
148
|
+
EnumTypeExtension: { leave: ({ name: e, directives: t, values: n }) => G([
|
|
149
|
+
"extend enum",
|
|
150
|
+
e,
|
|
151
|
+
G(t, " "),
|
|
152
|
+
K(n)
|
|
153
|
+
], " ") },
|
|
154
|
+
InputObjectTypeExtension: { leave: ({ name: e, directives: t, fields: n }) => G([
|
|
155
|
+
"extend input",
|
|
156
|
+
e,
|
|
157
|
+
G(t, " "),
|
|
158
|
+
K(n)
|
|
159
|
+
], " ") },
|
|
160
|
+
DirectiveExtension: { leave: ({ name: e, directives: t }) => G(["extend directive @" + e, G(t, " ")], " ") },
|
|
161
|
+
TypeCoordinate: { leave: ({ name: e }) => e },
|
|
162
|
+
MemberCoordinate: { leave: ({ name: e, memberName: t }) => G([e, q(".", t)]) },
|
|
163
|
+
ArgumentCoordinate: { leave: ({ name: e, fieldName: t, argumentName: n }) => G([
|
|
164
|
+
e,
|
|
165
|
+
q(".", t),
|
|
166
|
+
q("(", n, ":)")
|
|
167
|
+
]) },
|
|
168
|
+
DirectiveCoordinate: { leave: ({ name: e }) => G(["@", e]) },
|
|
169
|
+
DirectiveArgumentCoordinate: { leave: ({ name: e, argumentName: t }) => G([
|
|
170
|
+
"@",
|
|
171
|
+
e,
|
|
172
|
+
q("(", t, ":)")
|
|
173
|
+
]) }
|
|
174
|
+
};
|
|
175
|
+
function G(e, t = "") {
|
|
176
|
+
return e?.filter((e) => e).join(t) ?? "";
|
|
177
|
+
}
|
|
178
|
+
function K(e) {
|
|
179
|
+
return q("{\n", Qe(G(e, "\n")), "\n}");
|
|
180
|
+
}
|
|
181
|
+
function q(e, t, n = "") {
|
|
182
|
+
return t != null && t !== "" ? e + t + n : "";
|
|
183
|
+
}
|
|
184
|
+
function Qe(e) {
|
|
185
|
+
return q(" ", e.replace(/\n/g, "\n "));
|
|
186
|
+
}
|
|
187
|
+
function $e(e) {
|
|
188
|
+
/* c8 ignore next */
|
|
189
|
+
return e?.some((e) => e.includes("\n")) ?? !1;
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region node_modules/graphql/language/predicates.mjs
|
|
193
|
+
function et(e) {
|
|
194
|
+
return e.kind === F.FIELD || e.kind === F.FRAGMENT_SPREAD || e.kind === F.INLINE_FRAGMENT;
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region node_modules/@apollo/client/utilities/graphql/DocumentTransform.js
|
|
198
|
+
function tt(e) {
|
|
199
|
+
return e;
|
|
200
|
+
}
|
|
201
|
+
var nt = function() {
|
|
202
|
+
function e(e, t) {
|
|
203
|
+
t === void 0 && (t = Object.create(null)), this.resultCache = d ? /* @__PURE__ */ new WeakSet() : /* @__PURE__ */ new Set(), this.transform = e, t.getCacheKey && (this.getCacheKey = t.getCacheKey), this.cached = t.cache !== !1, this.resetCache();
|
|
204
|
+
}
|
|
205
|
+
return e.prototype.getCacheKey = function(e) {
|
|
206
|
+
return [e];
|
|
207
|
+
}, e.identity = function() {
|
|
208
|
+
return new e(tt, { cache: !1 });
|
|
209
|
+
}, e.split = function(t, n, r) {
|
|
210
|
+
return r === void 0 && (r = e.identity()), Object.assign(new e(function(e) {
|
|
211
|
+
return (t(e) ? n : r).transformDocument(e);
|
|
212
|
+
}, { cache: !1 }), {
|
|
213
|
+
left: n,
|
|
214
|
+
right: r
|
|
215
|
+
});
|
|
216
|
+
}, e.prototype.resetCache = function() {
|
|
217
|
+
var t = this;
|
|
218
|
+
if (this.cached) {
|
|
219
|
+
var n = new v(A);
|
|
220
|
+
this.performWork = we(e.prototype.performWork.bind(this), {
|
|
221
|
+
makeCacheKey: function(e) {
|
|
222
|
+
var r = t.getCacheKey(e);
|
|
223
|
+
if (r) return R(Array.isArray(r), 104), n.lookupArray(r);
|
|
224
|
+
},
|
|
225
|
+
max: l["documentTransform.cache"],
|
|
226
|
+
cache: y
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}, e.prototype.performWork = function(e) {
|
|
230
|
+
return he(e), this.transform(e);
|
|
231
|
+
}, e.prototype.transformDocument = function(e) {
|
|
232
|
+
if (this.resultCache.has(e)) return e;
|
|
233
|
+
var t = this.performWork(e);
|
|
234
|
+
return this.resultCache.add(t), t;
|
|
235
|
+
}, e.prototype.concat = function(t) {
|
|
236
|
+
var n = this;
|
|
237
|
+
return Object.assign(new e(function(e) {
|
|
238
|
+
return t.transformDocument(n.transformDocument(e));
|
|
239
|
+
}, { cache: !1 }), {
|
|
240
|
+
left: this,
|
|
241
|
+
right: t
|
|
242
|
+
});
|
|
243
|
+
}, e;
|
|
244
|
+
}(), rt, J = Object.assign(function(e) {
|
|
245
|
+
var t = rt.get(e);
|
|
246
|
+
return t || (t = Ye(e), rt.set(e, t)), t;
|
|
247
|
+
}, { reset: function() {
|
|
248
|
+
rt = new m(l.print || 2e3);
|
|
249
|
+
} });
|
|
250
|
+
J.reset(), globalThis.__DEV__ !== !1 && w("print", function() {
|
|
251
|
+
return rt ? rt.size : 0;
|
|
252
|
+
});
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region node_modules/@apollo/client/utilities/graphql/transform.js
|
|
255
|
+
var it = {
|
|
256
|
+
kind: F.FIELD,
|
|
257
|
+
name: {
|
|
258
|
+
kind: F.NAME,
|
|
259
|
+
value: "__typename"
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
function at(e, t) {
|
|
263
|
+
return !e || e.selectionSet.selections.every(function(e) {
|
|
264
|
+
return e.kind === F.FRAGMENT_SPREAD && at(t[e.name.value], t);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
function ot(e) {
|
|
268
|
+
return at(le(e) || Te(e), ee(ve(e))) ? null : e;
|
|
269
|
+
}
|
|
270
|
+
function st(e) {
|
|
271
|
+
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
272
|
+
return e.forEach(function(e) {
|
|
273
|
+
e && (e.name ? t.set(e.name, e) : e.test && n.set(e.test, e));
|
|
274
|
+
}), function(e) {
|
|
275
|
+
var r = t.get(e.name.value);
|
|
276
|
+
return !r && n.size && n.forEach(function(t, n) {
|
|
277
|
+
n(e) && (r = t);
|
|
278
|
+
}), r;
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
function ct(e) {
|
|
282
|
+
var t = /* @__PURE__ */ new Map();
|
|
283
|
+
return function(n) {
|
|
284
|
+
n === void 0 && (n = e);
|
|
285
|
+
var r = t.get(n);
|
|
286
|
+
return r || t.set(n, r = {
|
|
287
|
+
variables: /* @__PURE__ */ new Set(),
|
|
288
|
+
fragmentSpreads: /* @__PURE__ */ new Set()
|
|
289
|
+
}), r;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function lt(e, t) {
|
|
293
|
+
he(t);
|
|
294
|
+
for (var n = ct(""), r = ct(""), i = function(e) {
|
|
295
|
+
for (var t = 0, i = void 0; t < e.length && (i = e[t]); ++t) if (!V(i)) {
|
|
296
|
+
if (i.kind === F.OPERATION_DEFINITION) return n(i.name && i.name.value);
|
|
297
|
+
if (i.kind === F.FRAGMENT_DEFINITION) return r(i.name.value);
|
|
298
|
+
}
|
|
299
|
+
return globalThis.__DEV__ !== !1 && R.error(124), null;
|
|
300
|
+
}, a = 0, o = t.definitions.length - 1; o >= 0; --o) t.definitions[o].kind === F.OPERATION_DEFINITION && ++a;
|
|
301
|
+
var s = st(e), c = function(e) {
|
|
302
|
+
return N(e) && e.map(s).some(function(e) {
|
|
303
|
+
return e && e.remove;
|
|
304
|
+
});
|
|
305
|
+
}, l = /* @__PURE__ */ new Map(), u = !1, d = { enter: function(e) {
|
|
306
|
+
if (c(e.directives)) return u = !0, null;
|
|
307
|
+
} }, f = E(t, {
|
|
308
|
+
Field: d,
|
|
309
|
+
InlineFragment: d,
|
|
310
|
+
VariableDefinition: { enter: function() {
|
|
311
|
+
return !1;
|
|
312
|
+
} },
|
|
313
|
+
Variable: { enter: function(e, t, n, r, a) {
|
|
314
|
+
var o = i(a);
|
|
315
|
+
o && o.variables.add(e.name.value);
|
|
316
|
+
} },
|
|
317
|
+
FragmentSpread: { enter: function(e, t, n, r, a) {
|
|
318
|
+
if (c(e.directives)) return u = !0, null;
|
|
319
|
+
var o = i(a);
|
|
320
|
+
o && o.fragmentSpreads.add(e.name.value);
|
|
321
|
+
} },
|
|
322
|
+
FragmentDefinition: {
|
|
323
|
+
enter: function(e, t, n, r) {
|
|
324
|
+
l.set(JSON.stringify(r), e);
|
|
325
|
+
},
|
|
326
|
+
leave: function(e, t, n, i) {
|
|
327
|
+
if (e === l.get(JSON.stringify(i))) return e;
|
|
328
|
+
if (a > 0 && e.selectionSet.selections.every(function(e) {
|
|
329
|
+
return e.kind === F.FIELD && e.name.value === "__typename";
|
|
330
|
+
})) return r(e.name.value).removed = !0, u = !0, null;
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
Directive: { leave: function(e) {
|
|
334
|
+
if (s(e)) return u = !0, null;
|
|
335
|
+
} }
|
|
336
|
+
});
|
|
337
|
+
if (!u) return t;
|
|
338
|
+
var p = function(e) {
|
|
339
|
+
return e.transitiveVars || (e.transitiveVars = new Set(e.variables), e.removed || e.fragmentSpreads.forEach(function(t) {
|
|
340
|
+
p(r(t)).transitiveVars.forEach(function(t) {
|
|
341
|
+
e.transitiveVars.add(t);
|
|
342
|
+
});
|
|
343
|
+
})), e;
|
|
344
|
+
}, m = /* @__PURE__ */ new Set();
|
|
345
|
+
f.definitions.forEach(function(e) {
|
|
346
|
+
e.kind === F.OPERATION_DEFINITION ? p(n(e.name && e.name.value)).fragmentSpreads.forEach(function(e) {
|
|
347
|
+
m.add(e);
|
|
348
|
+
}) : e.kind === F.FRAGMENT_DEFINITION && a === 0 && !r(e.name.value).removed && m.add(e.name.value);
|
|
349
|
+
}), m.forEach(function(e) {
|
|
350
|
+
p(r(e)).fragmentSpreads.forEach(function(e) {
|
|
351
|
+
m.add(e);
|
|
352
|
+
});
|
|
353
|
+
});
|
|
354
|
+
var h = function(e) {
|
|
355
|
+
return !!(!m.has(e) || r(e).removed);
|
|
356
|
+
}, g = { enter: function(e) {
|
|
357
|
+
if (h(e.name.value)) return null;
|
|
358
|
+
} };
|
|
359
|
+
return ot(E(f, {
|
|
360
|
+
FragmentSpread: g,
|
|
361
|
+
FragmentDefinition: g,
|
|
362
|
+
OperationDefinition: { leave: function(e) {
|
|
363
|
+
if (e.variableDefinitions) {
|
|
364
|
+
var t = p(n(e.name && e.name.value)).transitiveVars;
|
|
365
|
+
if (t.size < e.variableDefinitions.length) return M(M({}, e), { variableDefinitions: e.variableDefinitions.filter(function(e) {
|
|
366
|
+
return t.has(e.variable.name.value);
|
|
367
|
+
}) });
|
|
368
|
+
}
|
|
369
|
+
} }
|
|
370
|
+
}));
|
|
371
|
+
}
|
|
372
|
+
var ut = Object.assign(function(e) {
|
|
373
|
+
return E(e, { SelectionSet: { enter: function(e, t, n) {
|
|
374
|
+
if (!(n && n.kind === F.OPERATION_DEFINITION)) {
|
|
375
|
+
var r = e.selections;
|
|
376
|
+
if (r && !r.some(function(e) {
|
|
377
|
+
return U(e) && (e.name.value === "__typename" || e.name.value.lastIndexOf("__", 0) === 0);
|
|
378
|
+
})) {
|
|
379
|
+
var i = n;
|
|
380
|
+
if (!(U(i) && i.directives && i.directives.some(function(e) {
|
|
381
|
+
return e.name.value === "export";
|
|
382
|
+
}))) return M(M({}, e), { selections: Oe(Oe([], r, !0), [it], !1) });
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
} } });
|
|
386
|
+
}, { added: function(e) {
|
|
387
|
+
return e === it;
|
|
388
|
+
} });
|
|
389
|
+
function dt(e) {
|
|
390
|
+
return ge(e).operation === "query" ? e : E(e, { OperationDefinition: { enter: function(e) {
|
|
391
|
+
return M(M({}, e), { operation: "query" });
|
|
392
|
+
} } });
|
|
393
|
+
}
|
|
394
|
+
function ft(e) {
|
|
395
|
+
return he(e), lt([{
|
|
396
|
+
test: function(e) {
|
|
397
|
+
return e.name.value === "client";
|
|
398
|
+
},
|
|
399
|
+
remove: !0
|
|
400
|
+
}], e);
|
|
401
|
+
}
|
|
402
|
+
function pt(e) {
|
|
403
|
+
return he(e), E(e, { FragmentSpread: function(e) {
|
|
404
|
+
if (!e.directives?.some(function(e) {
|
|
405
|
+
return e.name.value === "unmask";
|
|
406
|
+
})) return M(M({}, e), { directives: Oe(Oe([], e.directives || [], !0), [{
|
|
407
|
+
kind: F.DIRECTIVE,
|
|
408
|
+
name: {
|
|
409
|
+
kind: F.NAME,
|
|
410
|
+
value: "nonreactive"
|
|
411
|
+
}
|
|
412
|
+
}], !1) });
|
|
413
|
+
} });
|
|
414
|
+
}
|
|
415
|
+
//#endregion
|
|
416
|
+
//#region node_modules/@apollo/client/utilities/common/mergeDeep.js
|
|
417
|
+
var mt = Object.prototype.hasOwnProperty;
|
|
418
|
+
function ht() {
|
|
419
|
+
return gt([...arguments]);
|
|
420
|
+
}
|
|
421
|
+
function gt(e) {
|
|
422
|
+
var t = e[0] || {}, n = e.length;
|
|
423
|
+
if (n > 1) for (var r = new Y(), i = 1; i < n; ++i) t = r.merge(t, e[i]);
|
|
424
|
+
return t;
|
|
425
|
+
}
|
|
426
|
+
var _t = function(e, t, n) {
|
|
427
|
+
return this.merge(e[n], t[n]);
|
|
428
|
+
}, Y = function() {
|
|
429
|
+
function e(e) {
|
|
430
|
+
e === void 0 && (e = _t), this.reconciler = e, this.isObject = p, this.pastCopies = /* @__PURE__ */ new Set();
|
|
431
|
+
}
|
|
432
|
+
return e.prototype.merge = function(e, t) {
|
|
433
|
+
for (var n = this, r = [], i = 2; i < arguments.length; i++) r[i - 2] = arguments[i];
|
|
434
|
+
return p(t) && p(e) ? (Object.keys(t).forEach(function(i) {
|
|
435
|
+
if (mt.call(e, i)) {
|
|
436
|
+
var a = e[i];
|
|
437
|
+
if (t[i] !== a) {
|
|
438
|
+
var o = n.reconciler.apply(n, Oe([
|
|
439
|
+
e,
|
|
440
|
+
t,
|
|
441
|
+
i
|
|
442
|
+
], r, !1));
|
|
443
|
+
o !== a && (e = n.shallowCopyForMerge(e), e[i] = o);
|
|
444
|
+
}
|
|
445
|
+
} else e = n.shallowCopyForMerge(e), e[i] = t[i];
|
|
446
|
+
}), e) : t;
|
|
447
|
+
}, e.prototype.shallowCopyForMerge = function(e) {
|
|
448
|
+
return p(e) && (this.pastCopies.has(e) || (e = Array.isArray(e) ? e.slice(0) : M({ __proto__: Object.getPrototypeOf(e) }, e), this.pastCopies.add(e))), e;
|
|
449
|
+
}, e;
|
|
450
|
+
}();
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region node_modules/@apollo/client/utilities/observables/asyncMap.js
|
|
453
|
+
function vt(e, t, n) {
|
|
454
|
+
return new z(function(r) {
|
|
455
|
+
var i = { then: function(e) {
|
|
456
|
+
return new Promise(function(t) {
|
|
457
|
+
return t(e());
|
|
458
|
+
});
|
|
459
|
+
} };
|
|
460
|
+
function a(e, t) {
|
|
461
|
+
return function(n) {
|
|
462
|
+
if (e) {
|
|
463
|
+
var a = function() {
|
|
464
|
+
return r.closed ? 0 : e(n);
|
|
465
|
+
};
|
|
466
|
+
i = i.then(a, a).then(function(e) {
|
|
467
|
+
return r.next(e);
|
|
468
|
+
}, function(e) {
|
|
469
|
+
return r.error(e);
|
|
470
|
+
});
|
|
471
|
+
} else r[t](n);
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
var o = {
|
|
475
|
+
next: a(t, "next"),
|
|
476
|
+
error: a(n, "error"),
|
|
477
|
+
complete: function() {
|
|
478
|
+
i.then(function() {
|
|
479
|
+
return r.complete();
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
}, s = e.subscribe(o);
|
|
483
|
+
return function() {
|
|
484
|
+
return s.unsubscribe();
|
|
485
|
+
};
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
//#endregion
|
|
489
|
+
//#region node_modules/@apollo/client/utilities/observables/Concast.js
|
|
490
|
+
function yt(e) {
|
|
491
|
+
return e && typeof e.then == "function";
|
|
492
|
+
}
|
|
493
|
+
var bt = function(e) {
|
|
494
|
+
H(t, e);
|
|
495
|
+
function t(t) {
|
|
496
|
+
var n = e.call(this, function(e) {
|
|
497
|
+
return n.addObserver(e), function() {
|
|
498
|
+
return n.removeObserver(e);
|
|
499
|
+
};
|
|
500
|
+
}) || this;
|
|
501
|
+
return n.observers = /* @__PURE__ */ new Set(), n.promise = new Promise(function(e, t) {
|
|
502
|
+
n.resolve = e, n.reject = t;
|
|
503
|
+
}), n.handlers = {
|
|
504
|
+
next: function(e) {
|
|
505
|
+
n.sub !== null && (n.latest = ["next", e], n.notify("next", e), Me(n.observers, "next", e));
|
|
506
|
+
},
|
|
507
|
+
error: function(e) {
|
|
508
|
+
var t = n.sub;
|
|
509
|
+
t !== null && (t && setTimeout(function() {
|
|
510
|
+
return t.unsubscribe();
|
|
511
|
+
}), n.sub = null, n.latest = ["error", e], n.reject(e), n.notify("error", e), Me(n.observers, "error", e));
|
|
512
|
+
},
|
|
513
|
+
complete: function() {
|
|
514
|
+
var e = n, t = e.sub, r = e.sources, i = r === void 0 ? [] : r;
|
|
515
|
+
if (t !== null) {
|
|
516
|
+
var a = i.shift();
|
|
517
|
+
a ? yt(a) ? a.then(function(e) {
|
|
518
|
+
return n.sub = e.subscribe(n.handlers);
|
|
519
|
+
}, n.handlers.error) : n.sub = a.subscribe(n.handlers) : (t && setTimeout(function() {
|
|
520
|
+
return t.unsubscribe();
|
|
521
|
+
}), n.sub = null, n.latest && n.latest[0] === "next" ? n.resolve(n.latest[1]) : n.resolve(), n.notify("complete"), Me(n.observers, "complete"));
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}, n.nextResultListeners = /* @__PURE__ */ new Set(), n.cancel = function(e) {
|
|
525
|
+
n.reject(e), n.sources = [], n.handlers.error(e);
|
|
526
|
+
}, n.promise.catch(function(e) {}), typeof t == "function" && (t = [new z(t)]), yt(t) ? t.then(function(e) {
|
|
527
|
+
return n.start(e);
|
|
528
|
+
}, n.handlers.error) : n.start(t), n;
|
|
529
|
+
}
|
|
530
|
+
return t.prototype.start = function(e) {
|
|
531
|
+
this.sub === void 0 && (this.sources = Array.from(e), this.handlers.complete());
|
|
532
|
+
}, t.prototype.deliverLastMessage = function(e) {
|
|
533
|
+
if (this.latest) {
|
|
534
|
+
var t = this.latest[0], n = e[t];
|
|
535
|
+
n && n.call(e, this.latest[1]), this.sub === null && t === "next" && e.complete && e.complete();
|
|
536
|
+
}
|
|
537
|
+
}, t.prototype.addObserver = function(e) {
|
|
538
|
+
this.observers.has(e) || (this.deliverLastMessage(e), this.observers.add(e));
|
|
539
|
+
}, t.prototype.removeObserver = function(e) {
|
|
540
|
+
this.observers.delete(e) && this.observers.size < 1 && this.handlers.complete();
|
|
541
|
+
}, t.prototype.notify = function(e, t) {
|
|
542
|
+
var n = this.nextResultListeners;
|
|
543
|
+
n.size && (this.nextResultListeners = /* @__PURE__ */ new Set(), n.forEach(function(n) {
|
|
544
|
+
return n(e, t);
|
|
545
|
+
}));
|
|
546
|
+
}, t.prototype.beforeNext = function(e) {
|
|
547
|
+
var t = !1;
|
|
548
|
+
this.nextResultListeners.add(function(n, r) {
|
|
549
|
+
t || (t = !0, e(n, r));
|
|
550
|
+
});
|
|
551
|
+
}, t;
|
|
552
|
+
}(z);
|
|
553
|
+
Ee(bt);
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region node_modules/@apollo/client/utilities/common/incrementalResult.js
|
|
556
|
+
function xt(e) {
|
|
557
|
+
return "incremental" in e;
|
|
558
|
+
}
|
|
559
|
+
function St(e) {
|
|
560
|
+
return "hasNext" in e && "data" in e;
|
|
561
|
+
}
|
|
562
|
+
function Ct(e) {
|
|
563
|
+
return xt(e) || St(e);
|
|
564
|
+
}
|
|
565
|
+
function wt(e) {
|
|
566
|
+
return p(e) && "payload" in e;
|
|
567
|
+
}
|
|
568
|
+
function Tt(e, t) {
|
|
569
|
+
var n = e, r = new Y();
|
|
570
|
+
return xt(t) && N(t.incremental) && t.incremental.forEach(function(e) {
|
|
571
|
+
for (var t = e.data, i = e.path, a = i.length - 1; a >= 0; --a) {
|
|
572
|
+
var o = i[a], s = isNaN(+o) ? {} : [];
|
|
573
|
+
s[o] = t, t = s;
|
|
574
|
+
}
|
|
575
|
+
n = r.merge(n, t);
|
|
576
|
+
}), n;
|
|
577
|
+
}
|
|
578
|
+
//#endregion
|
|
579
|
+
//#region node_modules/@apollo/client/utilities/common/errorHandling.js
|
|
580
|
+
function Et(e) {
|
|
581
|
+
return N(Dt(e));
|
|
582
|
+
}
|
|
583
|
+
function Dt(e) {
|
|
584
|
+
var t = N(e.errors) ? e.errors.slice(0) : [];
|
|
585
|
+
return xt(e) && N(e.incremental) && e.incremental.forEach(function(e) {
|
|
586
|
+
e.errors && t.push.apply(t, e.errors);
|
|
587
|
+
}), t;
|
|
588
|
+
}
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region node_modules/@apollo/client/link/utils/fromError.js
|
|
591
|
+
function Ot(e) {
|
|
592
|
+
return new z(function(t) {
|
|
593
|
+
t.error(e);
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
//#endregion
|
|
597
|
+
//#region node_modules/@apollo/client/link/utils/throwServerError.js
|
|
598
|
+
var kt = function(e, t, n) {
|
|
599
|
+
var r = Error(n);
|
|
600
|
+
throw r.name = "ServerError", r.response = e, r.statusCode = e.status, r.result = t, r;
|
|
601
|
+
};
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region node_modules/@apollo/client/link/utils/validateOperation.js
|
|
604
|
+
function At(e) {
|
|
605
|
+
for (var t = [
|
|
606
|
+
"query",
|
|
607
|
+
"operationName",
|
|
608
|
+
"variables",
|
|
609
|
+
"extensions",
|
|
610
|
+
"context"
|
|
611
|
+
], n = 0, r = Object.keys(e); n < r.length; n++) {
|
|
612
|
+
var i = r[n];
|
|
613
|
+
if (t.indexOf(i) < 0) throw B(58, i);
|
|
614
|
+
}
|
|
615
|
+
return e;
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region node_modules/@apollo/client/link/utils/createOperation.js
|
|
619
|
+
function jt(e, t) {
|
|
620
|
+
var n = M({}, e);
|
|
621
|
+
return Object.defineProperty(t, "setContext", {
|
|
622
|
+
enumerable: !1,
|
|
623
|
+
value: function(e) {
|
|
624
|
+
n = typeof e == "function" ? M(M({}, n), e(n)) : M(M({}, n), e);
|
|
625
|
+
}
|
|
626
|
+
}), Object.defineProperty(t, "getContext", {
|
|
627
|
+
enumerable: !1,
|
|
628
|
+
value: function() {
|
|
629
|
+
return M({}, n);
|
|
630
|
+
}
|
|
631
|
+
}), t;
|
|
632
|
+
}
|
|
633
|
+
//#endregion
|
|
634
|
+
//#region node_modules/@apollo/client/link/utils/transformOperation.js
|
|
635
|
+
function Mt(e) {
|
|
636
|
+
var t = {
|
|
637
|
+
variables: e.variables || {},
|
|
638
|
+
extensions: e.extensions || {},
|
|
639
|
+
operationName: e.operationName,
|
|
640
|
+
query: e.query
|
|
641
|
+
};
|
|
642
|
+
return t.operationName || (t.operationName = typeof t.query == "string" ? "" : Ie(t.query) || void 0), t;
|
|
643
|
+
}
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region node_modules/@apollo/client/link/utils/filterOperationVariables.js
|
|
646
|
+
function Nt(e, t) {
|
|
647
|
+
var n = M({}, e), r = new Set(Object.keys(e));
|
|
648
|
+
return E(t, { Variable: function(e, t, n) {
|
|
649
|
+
n && n.kind !== "VariableDefinition" && r.delete(e.name.value);
|
|
650
|
+
} }), r.forEach(function(e) {
|
|
651
|
+
delete n[e];
|
|
652
|
+
}), n;
|
|
653
|
+
}
|
|
654
|
+
//#endregion
|
|
655
|
+
//#region node_modules/@apollo/client/link/core/ApolloLink.js
|
|
656
|
+
function Pt(e, t) {
|
|
657
|
+
return t ? t(e) : z.of();
|
|
658
|
+
}
|
|
659
|
+
function Ft(e) {
|
|
660
|
+
return typeof e == "function" ? new X(e) : e;
|
|
661
|
+
}
|
|
662
|
+
function It(e) {
|
|
663
|
+
return e.request.length <= 1;
|
|
664
|
+
}
|
|
665
|
+
var X = function() {
|
|
666
|
+
function e(e) {
|
|
667
|
+
e && (this.request = e);
|
|
668
|
+
}
|
|
669
|
+
return e.empty = function() {
|
|
670
|
+
return new e(function() {
|
|
671
|
+
return z.of();
|
|
672
|
+
});
|
|
673
|
+
}, e.from = function(t) {
|
|
674
|
+
return t.length === 0 ? e.empty() : t.map(Ft).reduce(function(e, t) {
|
|
675
|
+
return e.concat(t);
|
|
676
|
+
});
|
|
677
|
+
}, e.split = function(t, n, r) {
|
|
678
|
+
var i = Ft(n), a = Ft(r || new e(Pt)), o = It(i) && It(a) ? new e(function(e) {
|
|
679
|
+
return t(e) ? i.request(e) || z.of() : a.request(e) || z.of();
|
|
680
|
+
}) : new e(function(e, n) {
|
|
681
|
+
return t(e) ? i.request(e, n) || z.of() : a.request(e, n) || z.of();
|
|
682
|
+
});
|
|
683
|
+
return Object.assign(o, {
|
|
684
|
+
left: i,
|
|
685
|
+
right: a
|
|
686
|
+
});
|
|
687
|
+
}, e.execute = function(e, t) {
|
|
688
|
+
return e.request(jt(t.context, Mt(At(t)))) || z.of();
|
|
689
|
+
}, e.concat = function(t, n) {
|
|
690
|
+
var r = Ft(t);
|
|
691
|
+
if (It(r)) return globalThis.__DEV__ !== !1 && R.warn(47, r), r;
|
|
692
|
+
var i = Ft(n), a = It(i) ? new e(function(e) {
|
|
693
|
+
return r.request(e, function(e) {
|
|
694
|
+
return i.request(e) || z.of();
|
|
695
|
+
}) || z.of();
|
|
696
|
+
}) : new e(function(e, t) {
|
|
697
|
+
return r.request(e, function(e) {
|
|
698
|
+
return i.request(e, t) || z.of();
|
|
699
|
+
}) || z.of();
|
|
700
|
+
});
|
|
701
|
+
return Object.assign(a, {
|
|
702
|
+
left: r,
|
|
703
|
+
right: i
|
|
704
|
+
});
|
|
705
|
+
}, e.prototype.split = function(t, n, r) {
|
|
706
|
+
return this.concat(e.split(t, n, r || new e(Pt)));
|
|
707
|
+
}, e.prototype.concat = function(t) {
|
|
708
|
+
return e.concat(this, t);
|
|
709
|
+
}, e.prototype.request = function(e, t) {
|
|
710
|
+
throw B(48);
|
|
711
|
+
}, e.prototype.onError = function(e, t) {
|
|
712
|
+
if (globalThis.__DEV__ !== !1 && T("onError", function() {
|
|
713
|
+
globalThis.__DEV__ !== !1 && R.warn(49);
|
|
714
|
+
}), t && t.error) return t.error(e), !1;
|
|
715
|
+
throw e;
|
|
716
|
+
}, e.prototype.setOnError = function(e) {
|
|
717
|
+
return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(50), this.onError = e, this;
|
|
718
|
+
}, e;
|
|
719
|
+
}(), Lt = X.from, Rt = X.execute;
|
|
720
|
+
//#endregion
|
|
721
|
+
//#region node_modules/@apollo/client/link/http/iterators/async.js
|
|
722
|
+
function zt(e) {
|
|
723
|
+
var t, n = e[Symbol.asyncIterator]();
|
|
724
|
+
return t = { next: function() {
|
|
725
|
+
return n.next();
|
|
726
|
+
} }, t[Symbol.asyncIterator] = function() {
|
|
727
|
+
return this;
|
|
728
|
+
}, t;
|
|
729
|
+
}
|
|
730
|
+
//#endregion
|
|
731
|
+
//#region node_modules/@apollo/client/link/http/iterators/nodeStream.js
|
|
732
|
+
function Bt(e) {
|
|
733
|
+
var t = null, n = null, r = !1, i = [], a = [];
|
|
734
|
+
function o(e) {
|
|
735
|
+
if (!n) {
|
|
736
|
+
if (a.length) {
|
|
737
|
+
var t = a.shift();
|
|
738
|
+
if (Array.isArray(t) && t[0]) return t[0]({
|
|
739
|
+
value: e,
|
|
740
|
+
done: !1
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
i.push(e);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
function s(e) {
|
|
747
|
+
n = e, a.slice().forEach(function(t) {
|
|
748
|
+
t[1](e);
|
|
749
|
+
}), !t || t();
|
|
750
|
+
}
|
|
751
|
+
function c() {
|
|
752
|
+
r = !0, a.slice().forEach(function(e) {
|
|
753
|
+
e[0]({
|
|
754
|
+
value: void 0,
|
|
755
|
+
done: !0
|
|
756
|
+
});
|
|
757
|
+
}), !t || t();
|
|
758
|
+
}
|
|
759
|
+
t = function() {
|
|
760
|
+
t = null, e.removeListener("data", o), e.removeListener("error", s), e.removeListener("end", c), e.removeListener("finish", c), e.removeListener("close", c);
|
|
761
|
+
}, e.on("data", o), e.on("error", s), e.on("end", c), e.on("finish", c), e.on("close", c);
|
|
762
|
+
function l() {
|
|
763
|
+
return new Promise(function(e, t) {
|
|
764
|
+
if (n) return t(n);
|
|
765
|
+
if (i.length) return e({
|
|
766
|
+
value: i.shift(),
|
|
767
|
+
done: !1
|
|
768
|
+
});
|
|
769
|
+
if (r) return e({
|
|
770
|
+
value: void 0,
|
|
771
|
+
done: !0
|
|
772
|
+
});
|
|
773
|
+
a.push([e, t]);
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
var u = { next: function() {
|
|
777
|
+
return l();
|
|
778
|
+
} };
|
|
779
|
+
return ie && (u[Symbol.asyncIterator] = function() {
|
|
780
|
+
return this;
|
|
781
|
+
}), u;
|
|
782
|
+
}
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region node_modules/@apollo/client/link/http/iterators/promise.js
|
|
785
|
+
function Vt(e) {
|
|
786
|
+
var t = !1, n = { next: function() {
|
|
787
|
+
return t ? Promise.resolve({
|
|
788
|
+
value: void 0,
|
|
789
|
+
done: !0
|
|
790
|
+
}) : (t = !0, new Promise(function(t, n) {
|
|
791
|
+
e.then(function(e) {
|
|
792
|
+
t({
|
|
793
|
+
value: e,
|
|
794
|
+
done: !1
|
|
795
|
+
});
|
|
796
|
+
}).catch(n);
|
|
797
|
+
}));
|
|
798
|
+
} };
|
|
799
|
+
return ie && (n[Symbol.asyncIterator] = function() {
|
|
800
|
+
return this;
|
|
801
|
+
}), n;
|
|
802
|
+
}
|
|
803
|
+
//#endregion
|
|
804
|
+
//#region node_modules/@apollo/client/link/http/iterators/reader.js
|
|
805
|
+
function Ht(e) {
|
|
806
|
+
var t = { next: function() {
|
|
807
|
+
return e.read();
|
|
808
|
+
} };
|
|
809
|
+
return ie && (t[Symbol.asyncIterator] = function() {
|
|
810
|
+
return this;
|
|
811
|
+
}), t;
|
|
812
|
+
}
|
|
813
|
+
//#endregion
|
|
814
|
+
//#region node_modules/@apollo/client/link/http/responseIterator.js
|
|
815
|
+
function Ut(e) {
|
|
816
|
+
return !!e.body;
|
|
817
|
+
}
|
|
818
|
+
function Wt(e) {
|
|
819
|
+
return !!e.getReader;
|
|
820
|
+
}
|
|
821
|
+
function Gt(e) {
|
|
822
|
+
return !!(ie && e[Symbol.asyncIterator]);
|
|
823
|
+
}
|
|
824
|
+
function Kt(e) {
|
|
825
|
+
return !!e.stream;
|
|
826
|
+
}
|
|
827
|
+
function qt(e) {
|
|
828
|
+
return !!e.arrayBuffer;
|
|
829
|
+
}
|
|
830
|
+
function Jt(e) {
|
|
831
|
+
return !!e.pipe;
|
|
832
|
+
}
|
|
833
|
+
function Yt(e) {
|
|
834
|
+
var t = e;
|
|
835
|
+
if (Ut(e) && (t = e.body), Gt(t)) return zt(t);
|
|
836
|
+
if (Wt(t)) return Ht(t.getReader());
|
|
837
|
+
if (Kt(t)) return Ht(t.stream().getReader());
|
|
838
|
+
if (qt(t)) return Vt(t.arrayBuffer());
|
|
839
|
+
if (Jt(t)) return Bt(t);
|
|
840
|
+
throw Error("Unknown body type for responseIterator. Please pass a streamable response.");
|
|
841
|
+
}
|
|
842
|
+
//#endregion
|
|
843
|
+
//#region node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
|
|
844
|
+
var Xt = Object.prototype.hasOwnProperty;
|
|
845
|
+
function Zt(e, t) {
|
|
846
|
+
return L(this, void 0, void 0, function() {
|
|
847
|
+
var n, r, i, a, o, s, c, l, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T;
|
|
848
|
+
return P(this, function(E) {
|
|
849
|
+
switch (E.label) {
|
|
850
|
+
case 0:
|
|
851
|
+
if (TextDecoder === void 0) throw Error("TextDecoder must be defined in the environment: please import a polyfill.");
|
|
852
|
+
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
|
|
853
|
+
--${a}`, s = "", c = Yt(e), l = !0, E.label = 1;
|
|
854
|
+
case 1: return l ? [4, c.next()] : [3, 3];
|
|
855
|
+
case 2:
|
|
856
|
+
for (d = E.sent(), f = d.value, p = d.done, m = typeof f == "string" ? f : n.decode(f), h = s.length - o.length + 1, l = !p, s += m, g = s.indexOf(o, h); g > -1;) {
|
|
857
|
+
if (_ = void 0, w = [s.slice(0, g), s.slice(g + o.length)], _ = w[0], s = w[1], v = _.indexOf("\r\n\r\n"), y = Qt(_.slice(0, v)), b = y["content-type"], b && b.toLowerCase().indexOf("application/json") === -1) throw Error("Unsupported patch content type: application/json is required.");
|
|
858
|
+
if (x = _.slice(v), x) {
|
|
859
|
+
if (S = $t(e, x), Object.keys(S).length > 1 || "data" in S || "incremental" in S || "errors" in S || "payload" in S) if (wt(S)) {
|
|
860
|
+
if (C = {}, "payload" in S) {
|
|
861
|
+
if (Object.keys(S).length === 1 && S.payload === null) return [2];
|
|
862
|
+
C = M({}, S.payload);
|
|
863
|
+
}
|
|
864
|
+
"errors" in S && (C = M(M({}, C), { extensions: M(M({}, "extensions" in C ? C.extensions : null), (T = {}, T[u] = S.errors, T)) })), t(C);
|
|
865
|
+
} else t(S);
|
|
866
|
+
else if (Object.keys(S).length === 1 && "hasNext" in S && !S.hasNext) return [2];
|
|
867
|
+
}
|
|
868
|
+
g = s.indexOf(o);
|
|
869
|
+
}
|
|
870
|
+
return [3, 1];
|
|
871
|
+
case 3: return [2];
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
function Qt(e) {
|
|
877
|
+
var t = {};
|
|
878
|
+
return e.split("\n").forEach(function(e) {
|
|
879
|
+
var n = e.indexOf(":");
|
|
880
|
+
if (n > -1) {
|
|
881
|
+
var r = e.slice(0, n).trim().toLowerCase();
|
|
882
|
+
t[r] = e.slice(n + 1).trim();
|
|
883
|
+
}
|
|
884
|
+
}), t;
|
|
885
|
+
}
|
|
886
|
+
function $t(e, t) {
|
|
887
|
+
e.status >= 300 && kt(e, function() {
|
|
888
|
+
try {
|
|
889
|
+
return JSON.parse(t);
|
|
890
|
+
} catch {
|
|
891
|
+
return t;
|
|
892
|
+
}
|
|
893
|
+
}(), `Response not successful: Received status code ${e.status}`);
|
|
894
|
+
try {
|
|
895
|
+
return JSON.parse(t);
|
|
896
|
+
} catch (r) {
|
|
897
|
+
var n = r;
|
|
898
|
+
throw n.name = "ServerParseError", n.response = e, n.statusCode = e.status, n.bodyText = t, n;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
function en(e, t) {
|
|
902
|
+
e.result && e.result.errors && e.result.data && t.next(e.result), t.error(e);
|
|
903
|
+
}
|
|
904
|
+
function tn(e) {
|
|
905
|
+
return function(t) {
|
|
906
|
+
return t.text().then(function(e) {
|
|
907
|
+
return $t(t, e);
|
|
908
|
+
}).then(function(n) {
|
|
909
|
+
return !Array.isArray(n) && !Xt.call(n, "data") && !Xt.call(n, "errors") && kt(t, n, `Server response was missing for query '${Array.isArray(e) ? e.map(function(e) {
|
|
910
|
+
return e.operationName;
|
|
911
|
+
}) : e.operationName}'.`), n;
|
|
912
|
+
});
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region node_modules/@apollo/client/link/http/serializeFetchParameter.js
|
|
917
|
+
var nn = function(e, t) {
|
|
918
|
+
var n;
|
|
919
|
+
try {
|
|
920
|
+
n = JSON.stringify(e);
|
|
921
|
+
} catch (e) {
|
|
922
|
+
var r = B(54, t, e.message);
|
|
923
|
+
throw r.parseError = e, r;
|
|
924
|
+
}
|
|
925
|
+
return n;
|
|
926
|
+
}, rn = {
|
|
927
|
+
http: {
|
|
928
|
+
includeQuery: !0,
|
|
929
|
+
includeExtensions: !1,
|
|
930
|
+
preserveHeaderCase: !1
|
|
931
|
+
},
|
|
932
|
+
headers: {
|
|
933
|
+
accept: "*/*",
|
|
934
|
+
"content-type": "application/json"
|
|
935
|
+
},
|
|
936
|
+
options: { method: "POST" }
|
|
937
|
+
}, an = function(e, t) {
|
|
938
|
+
return t(e);
|
|
939
|
+
};
|
|
940
|
+
function on(e, t) {
|
|
941
|
+
var n = [...arguments].slice(2), r = {}, i = {};
|
|
942
|
+
n.forEach(function(e) {
|
|
943
|
+
r = M(M(M({}, r), e.options), { headers: M(M({}, r.headers), e.headers) }), e.credentials && (r.credentials = e.credentials), i = M(M({}, i), e.http);
|
|
944
|
+
}), r.headers && (r.headers = sn(r.headers, i.preserveHeaderCase));
|
|
945
|
+
var a = e.operationName, o = e.extensions, s = e.variables, c = e.query, l = {
|
|
946
|
+
operationName: a,
|
|
947
|
+
variables: s
|
|
948
|
+
};
|
|
949
|
+
return i.includeExtensions && (l.extensions = o), i.includeQuery && (l.query = t(c, J)), {
|
|
950
|
+
options: r,
|
|
951
|
+
body: l
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
function sn(e, t) {
|
|
955
|
+
if (!t) {
|
|
956
|
+
var n = {};
|
|
957
|
+
return Object.keys(Object(e)).forEach(function(t) {
|
|
958
|
+
n[t.toLowerCase()] = e[t];
|
|
959
|
+
}), n;
|
|
960
|
+
}
|
|
961
|
+
var r = {};
|
|
962
|
+
Object.keys(Object(e)).forEach(function(t) {
|
|
963
|
+
r[t.toLowerCase()] = {
|
|
964
|
+
originalName: t,
|
|
965
|
+
value: e[t]
|
|
966
|
+
};
|
|
967
|
+
});
|
|
968
|
+
var i = {};
|
|
969
|
+
return Object.keys(r).forEach(function(e) {
|
|
970
|
+
i[r[e].originalName] = r[e].value;
|
|
971
|
+
}), i;
|
|
972
|
+
}
|
|
973
|
+
//#endregion
|
|
974
|
+
//#region node_modules/@apollo/client/link/http/checkFetcher.js
|
|
975
|
+
var cn = function(e) {
|
|
976
|
+
if (!e && typeof fetch > "u") throw B(51);
|
|
977
|
+
}, ln = function(e, t) {
|
|
978
|
+
return e.getContext().uri || (typeof t == "function" ? t(e) : t || "/graphql");
|
|
979
|
+
};
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region node_modules/@apollo/client/link/http/rewriteURIForGET.js
|
|
982
|
+
function un(e, t) {
|
|
983
|
+
var n = [], r = function(e, t) {
|
|
984
|
+
n.push(`${e}=${encodeURIComponent(t)}`);
|
|
985
|
+
};
|
|
986
|
+
if ("query" in t && r("query", t.query), t.operationName && r("operationName", t.operationName), t.variables) {
|
|
987
|
+
var i = void 0;
|
|
988
|
+
try {
|
|
989
|
+
i = nn(t.variables, "Variables map");
|
|
990
|
+
} catch (e) {
|
|
991
|
+
return { parseError: e };
|
|
992
|
+
}
|
|
993
|
+
r("variables", i);
|
|
994
|
+
}
|
|
995
|
+
if (t.extensions) {
|
|
996
|
+
var a = void 0;
|
|
997
|
+
try {
|
|
998
|
+
a = nn(t.extensions, "Extensions map");
|
|
999
|
+
} catch (e) {
|
|
1000
|
+
return { parseError: e };
|
|
1001
|
+
}
|
|
1002
|
+
r("extensions", a);
|
|
1003
|
+
}
|
|
1004
|
+
var o = "", s = e, c = e.indexOf("#");
|
|
1005
|
+
c !== -1 && (o = e.substr(c), s = e.substr(0, c));
|
|
1006
|
+
var l = s.indexOf("?") === -1 ? "?" : "&";
|
|
1007
|
+
return { newURI: s + l + n.join("&") + o };
|
|
1008
|
+
}
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region node_modules/@apollo/client/link/http/createHttpLink.js
|
|
1011
|
+
var dn = De(function() {
|
|
1012
|
+
return fetch;
|
|
1013
|
+
}), fn = function(e) {
|
|
1014
|
+
e === void 0 && (e = {});
|
|
1015
|
+
var t = e.uri, n = t === void 0 ? "/graphql" : t, r = e.fetch, i = e.print, a = i === void 0 ? an : i, o = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, l = e.includeUnusedVariables, u = l === void 0 ? !1 : l, d = I(e, [
|
|
1016
|
+
"uri",
|
|
1017
|
+
"fetch",
|
|
1018
|
+
"print",
|
|
1019
|
+
"includeExtensions",
|
|
1020
|
+
"preserveHeaderCase",
|
|
1021
|
+
"useGETForQueries",
|
|
1022
|
+
"includeUnusedVariables"
|
|
1023
|
+
]);
|
|
1024
|
+
globalThis.__DEV__ !== !1 && cn(r || dn);
|
|
1025
|
+
var f = {
|
|
1026
|
+
http: {
|
|
1027
|
+
includeExtensions: o,
|
|
1028
|
+
preserveHeaderCase: s
|
|
1029
|
+
},
|
|
1030
|
+
options: d.fetchOptions,
|
|
1031
|
+
credentials: d.credentials,
|
|
1032
|
+
headers: d.headers
|
|
1033
|
+
};
|
|
1034
|
+
return new X(function(e) {
|
|
1035
|
+
var t = ln(e, n), i = e.getContext(), o = {};
|
|
1036
|
+
if (i.clientAwareness) {
|
|
1037
|
+
var s = i.clientAwareness, l = s.name, d = s.version;
|
|
1038
|
+
l && (o["apollographql-client-name"] = l), d && (o["apollographql-client-version"] = d);
|
|
1039
|
+
}
|
|
1040
|
+
var p = M(M({}, o), i.headers), m = {
|
|
1041
|
+
http: i.http,
|
|
1042
|
+
options: i.fetchOptions,
|
|
1043
|
+
credentials: i.credentials,
|
|
1044
|
+
headers: p
|
|
1045
|
+
};
|
|
1046
|
+
if (se(["client"], e.query)) {
|
|
1047
|
+
globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && R.warn(52);
|
|
1048
|
+
var h = ft(e.query);
|
|
1049
|
+
if (!h) return Ot(/* @__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`."));
|
|
1050
|
+
e.query = h;
|
|
1051
|
+
}
|
|
1052
|
+
var g = on(e, a, rn, f, m), _ = g.options, v = g.body;
|
|
1053
|
+
v.variables && !u && (v.variables = Nt(v.variables, e.query));
|
|
1054
|
+
var y;
|
|
1055
|
+
!_.signal && typeof AbortController < "u" && (y = new AbortController(), _.signal = y.signal);
|
|
1056
|
+
var b = function(e) {
|
|
1057
|
+
return e.kind === "OperationDefinition" && e.operation === "mutation";
|
|
1058
|
+
}, x = function(e) {
|
|
1059
|
+
return e.kind === "OperationDefinition" && e.operation === "subscription";
|
|
1060
|
+
}(ge(e.query)), S = se(["defer"], e.query);
|
|
1061
|
+
if (c && !e.query.definitions.some(b) && (_.method = "GET"), S || x) {
|
|
1062
|
+
_.headers = _.headers || {};
|
|
1063
|
+
var C = "multipart/mixed;";
|
|
1064
|
+
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;
|
|
1065
|
+
}
|
|
1066
|
+
if (_.method === "GET") {
|
|
1067
|
+
var w = un(t, v), T = w.newURI, E = w.parseError;
|
|
1068
|
+
if (E) return Ot(E);
|
|
1069
|
+
t = T;
|
|
1070
|
+
} else try {
|
|
1071
|
+
_.body = nn(v, "Payload");
|
|
1072
|
+
} catch (e) {
|
|
1073
|
+
return Ot(e);
|
|
1074
|
+
}
|
|
1075
|
+
return new z(function(n) {
|
|
1076
|
+
var i = r || De(function() {
|
|
1077
|
+
return fetch;
|
|
1078
|
+
}) || dn, a = n.next.bind(n);
|
|
1079
|
+
return i(t, _).then(function(t) {
|
|
1080
|
+
e.setContext({ response: t });
|
|
1081
|
+
var n = t.headers?.get("content-type");
|
|
1082
|
+
return n !== null && /^multipart\/mixed/i.test(n) ? Zt(t, a) : tn(e)(t).then(a);
|
|
1083
|
+
}).then(function() {
|
|
1084
|
+
y = void 0, n.complete();
|
|
1085
|
+
}).catch(function(e) {
|
|
1086
|
+
y = void 0, en(e, n);
|
|
1087
|
+
}), function() {
|
|
1088
|
+
y && y.abort();
|
|
1089
|
+
};
|
|
1090
|
+
});
|
|
1091
|
+
});
|
|
1092
|
+
}, pn = function(e) {
|
|
1093
|
+
H(t, e);
|
|
1094
|
+
function t(t) {
|
|
1095
|
+
t === void 0 && (t = {});
|
|
1096
|
+
var n = e.call(this, fn(t).request) || this;
|
|
1097
|
+
return n.options = t, n;
|
|
1098
|
+
}
|
|
1099
|
+
return t;
|
|
1100
|
+
}(X), mn = A ? WeakMap : Map, hn = d ? WeakSet : Set, gn = new pe(), _n = !1;
|
|
1101
|
+
function vn() {
|
|
1102
|
+
_n || (_n = !0, globalThis.__DEV__ !== !1 && R.warn(64));
|
|
1103
|
+
}
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region node_modules/@apollo/client/masking/maskDefinition.js
|
|
1106
|
+
function yn(e, t, n) {
|
|
1107
|
+
return gn.withValue(!0, function() {
|
|
1108
|
+
var r = xn(e, t, n, !1);
|
|
1109
|
+
return Object.isFrozen(e) && be(r), r;
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
function bn(e, t) {
|
|
1113
|
+
if (t.has(e)) return t.get(e);
|
|
1114
|
+
var n = Array.isArray(e) ? [] : Object.create(null);
|
|
1115
|
+
return t.set(e, n), n;
|
|
1116
|
+
}
|
|
1117
|
+
function xn(e, t, n, r, i) {
|
|
1118
|
+
var a = n.knownChanged, o = bn(e, n.mutableTargets);
|
|
1119
|
+
if (Array.isArray(e)) {
|
|
1120
|
+
for (var s = 0, c = Array.from(e.entries()); s < c.length; s++) {
|
|
1121
|
+
var l = c[s], u = l[0], d = l[1];
|
|
1122
|
+
if (d === null) {
|
|
1123
|
+
o[u] = null;
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
var f = xn(d, t, n, r, globalThis.__DEV__ === !1 ? void 0 : `${i || ""}[${u}]`);
|
|
1127
|
+
a.has(f) && a.add(o), o[u] = f;
|
|
1128
|
+
}
|
|
1129
|
+
return a.has(o) ? o : e;
|
|
1130
|
+
}
|
|
1131
|
+
for (var p = 0, m = t.selections; p < m.length; p++) {
|
|
1132
|
+
var h = m[p], g = void 0;
|
|
1133
|
+
if (r && a.add(o), h.kind === F.FIELD) {
|
|
1134
|
+
var _ = S(h), v = h.selectionSet;
|
|
1135
|
+
if (g = o[_] || e[_], g === void 0) continue;
|
|
1136
|
+
if (v && g !== null) {
|
|
1137
|
+
var f = xn(e[_], v, n, r, globalThis.__DEV__ === !1 ? void 0 : `${i || ""}.${_}`);
|
|
1138
|
+
a.has(f) && (g = f);
|
|
1139
|
+
}
|
|
1140
|
+
globalThis.__DEV__ === !1 && (o[_] = g), globalThis.__DEV__ !== !1 && (r && _ !== "__typename" && !Object.getOwnPropertyDescriptor(o, _)?.value ? Object.defineProperty(o, _, Sn(_, g, i || "", n.operationName, n.operationType)) : (delete o[_], o[_] = g));
|
|
1141
|
+
}
|
|
1142
|
+
if (h.kind === F.INLINE_FRAGMENT && (!h.typeCondition || n.cache.fragmentMatches(h, e.__typename)) && (g = xn(e, h.selectionSet, n, r, i)), h.kind === F.FRAGMENT_SPREAD) {
|
|
1143
|
+
var y = h.name.value, b = n.fragmentMap[y] || (n.fragmentMap[y] = n.cache.lookupFragment(y));
|
|
1144
|
+
R(b, 59, y);
|
|
1145
|
+
var x = je(h);
|
|
1146
|
+
x !== "mask" && (g = xn(e, b.selectionSet, n, x === "migrate", i));
|
|
1147
|
+
}
|
|
1148
|
+
a.has(g) && a.add(o);
|
|
1149
|
+
}
|
|
1150
|
+
return "__typename" in e && !("__typename" in o) && (o.__typename = e.__typename), Object.keys(o).length !== Object.keys(e).length && a.add(o), a.has(o) ? o : e;
|
|
1151
|
+
}
|
|
1152
|
+
function Sn(e, t, n, r, i) {
|
|
1153
|
+
var a = function() {
|
|
1154
|
+
return gn.getValue() ? t : (globalThis.__DEV__ !== !1 && R.warn(60, r ? `${i} '${r}'` : `anonymous ${i}`, `${n}.${e}`.replace(/^\./, "")), a = function() {
|
|
1155
|
+
return t;
|
|
1156
|
+
}, t);
|
|
1157
|
+
};
|
|
1158
|
+
return {
|
|
1159
|
+
get: function() {
|
|
1160
|
+
return a();
|
|
1161
|
+
},
|
|
1162
|
+
set: function(e) {
|
|
1163
|
+
a = function() {
|
|
1164
|
+
return e;
|
|
1165
|
+
};
|
|
1166
|
+
},
|
|
1167
|
+
enumerable: !0,
|
|
1168
|
+
configurable: !0
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
//#endregion
|
|
1172
|
+
//#region node_modules/@apollo/client/masking/maskFragment.js
|
|
1173
|
+
function Cn(e, t, n, r) {
|
|
1174
|
+
if (!n.fragmentMatches) return globalThis.__DEV__ !== !1 && vn(), e;
|
|
1175
|
+
var i = t.definitions.filter(function(e) {
|
|
1176
|
+
return e.kind === F.FRAGMENT_DEFINITION;
|
|
1177
|
+
});
|
|
1178
|
+
r === void 0 && (R(i.length === 1, 61, i.length), r = i[0].name.value);
|
|
1179
|
+
var a = i.find(function(e) {
|
|
1180
|
+
return e.name.value === r;
|
|
1181
|
+
});
|
|
1182
|
+
return R(!!a, 62, r), e == null || h(e, {}) ? e : yn(e, a.selectionSet, {
|
|
1183
|
+
operationType: "fragment",
|
|
1184
|
+
operationName: a.name.value,
|
|
1185
|
+
fragmentMap: ee(ve(t)),
|
|
1186
|
+
cache: n,
|
|
1187
|
+
mutableTargets: new mn(),
|
|
1188
|
+
knownChanged: new hn()
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
//#endregion
|
|
1192
|
+
//#region node_modules/@apollo/client/masking/maskOperation.js
|
|
1193
|
+
function wn(e, t, n) {
|
|
1194
|
+
if (!n.fragmentMatches) return globalThis.__DEV__ !== !1 && vn(), e;
|
|
1195
|
+
var r = le(t);
|
|
1196
|
+
return R(r, 63), e == null ? e : yn(e, r.selectionSet, {
|
|
1197
|
+
operationType: r.operation,
|
|
1198
|
+
operationName: r.name?.value,
|
|
1199
|
+
fragmentMap: ee(ve(t)),
|
|
1200
|
+
cache: n,
|
|
1201
|
+
mutableTargets: new mn(),
|
|
1202
|
+
knownChanged: new hn()
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
//#endregion
|
|
1206
|
+
//#region node_modules/@apollo/client/cache/core/cache.js
|
|
1207
|
+
var Tn = function() {
|
|
1208
|
+
function t() {
|
|
1209
|
+
this.assumeImmutableResults = !1, this.getFragmentDoc = we(i, {
|
|
1210
|
+
max: l["cache.fragmentQueryDocuments"] || 1e3,
|
|
1211
|
+
cache: y
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
return t.prototype.lookupFragment = function(e) {
|
|
1215
|
+
return null;
|
|
1216
|
+
}, t.prototype.batch = function(e) {
|
|
1217
|
+
var t = this, n = typeof e.optimistic == "string" ? e.optimistic : e.optimistic === !1 ? null : void 0, r;
|
|
1218
|
+
return this.performTransaction(function() {
|
|
1219
|
+
return r = e.update(t);
|
|
1220
|
+
}, n), r;
|
|
1221
|
+
}, t.prototype.recordOptimisticTransaction = function(e, t) {
|
|
1222
|
+
this.performTransaction(e, t);
|
|
1223
|
+
}, t.prototype.transformDocument = function(e) {
|
|
1224
|
+
return e;
|
|
1225
|
+
}, t.prototype.transformForLink = function(e) {
|
|
1226
|
+
return e;
|
|
1227
|
+
}, t.prototype.identify = function(e) {}, t.prototype.gc = function() {
|
|
1228
|
+
return [];
|
|
1229
|
+
}, t.prototype.modify = function(e) {
|
|
1230
|
+
return !1;
|
|
1231
|
+
}, t.prototype.readQuery = function(t, n) {
|
|
1232
|
+
var r = this;
|
|
1233
|
+
return n === void 0 && (n = !!t.optimistic), globalThis.__DEV__ !== !1 && e(t, "canonizeResults", "cache.readQuery"), j("canonizeResults", function() {
|
|
1234
|
+
return r.read(M(M({}, t), {
|
|
1235
|
+
rootId: t.id || "ROOT_QUERY",
|
|
1236
|
+
optimistic: n
|
|
1237
|
+
}));
|
|
1238
|
+
});
|
|
1239
|
+
}, t.prototype.watchFragment = function(e) {
|
|
1240
|
+
var t = this, n = e.fragment, r = e.fragmentName, i = e.from, a = e.optimistic, o = a === void 0 ? !0 : a, s = I(e, [
|
|
1241
|
+
"fragment",
|
|
1242
|
+
"fragmentName",
|
|
1243
|
+
"from",
|
|
1244
|
+
"optimistic"
|
|
1245
|
+
]), c = this.getFragmentDoc(n, r), l = i === void 0 || typeof i == "string" ? i : this.identify(i), u = !!e[Symbol.for("apollo.dataMasking")];
|
|
1246
|
+
if (globalThis.__DEV__ !== !1) {
|
|
1247
|
+
var d = r || Te(n).name.value;
|
|
1248
|
+
l || globalThis.__DEV__ !== !1 && R.warn(1, d);
|
|
1249
|
+
}
|
|
1250
|
+
var f = M(M({}, s), {
|
|
1251
|
+
returnPartialData: !0,
|
|
1252
|
+
id: l,
|
|
1253
|
+
query: c,
|
|
1254
|
+
optimistic: o
|
|
1255
|
+
}), p;
|
|
1256
|
+
return new z(function(i) {
|
|
1257
|
+
return t.watch(M(M({}, f), {
|
|
1258
|
+
immediate: !0,
|
|
1259
|
+
callback: function(a) {
|
|
1260
|
+
var o = u ? Cn(a.result, n, t, r) : a.result;
|
|
1261
|
+
if (!(p && re(c, { data: p.result }, { data: o }, e.variables))) {
|
|
1262
|
+
var s = {
|
|
1263
|
+
data: o,
|
|
1264
|
+
complete: !!a.complete
|
|
1265
|
+
};
|
|
1266
|
+
a.missing && (s.missing = gt(a.missing.map(function(e) {
|
|
1267
|
+
return e.missing;
|
|
1268
|
+
}))), p = M(M({}, a), { result: o }), i.next(s);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}));
|
|
1272
|
+
});
|
|
1273
|
+
}, t.prototype.readFragment = function(t, n) {
|
|
1274
|
+
var r = this;
|
|
1275
|
+
return n === void 0 && (n = !!t.optimistic), globalThis.__DEV__ !== !1 && e(t, "canonizeResults", "cache.readFragment"), j("canonizeResults", function() {
|
|
1276
|
+
return r.read(M(M({}, t), {
|
|
1277
|
+
query: r.getFragmentDoc(t.fragment, t.fragmentName),
|
|
1278
|
+
rootId: t.id,
|
|
1279
|
+
optimistic: n
|
|
1280
|
+
}));
|
|
1281
|
+
});
|
|
1282
|
+
}, t.prototype.writeQuery = function(e) {
|
|
1283
|
+
var t = e.id, n = e.data, r = I(e, ["id", "data"]);
|
|
1284
|
+
return this.write(Object.assign(r, {
|
|
1285
|
+
dataId: t || "ROOT_QUERY",
|
|
1286
|
+
result: n
|
|
1287
|
+
}));
|
|
1288
|
+
}, t.prototype.writeFragment = function(e) {
|
|
1289
|
+
var t = e.id, n = e.data, r = e.fragment, i = e.fragmentName, a = I(e, [
|
|
1290
|
+
"id",
|
|
1291
|
+
"data",
|
|
1292
|
+
"fragment",
|
|
1293
|
+
"fragmentName"
|
|
1294
|
+
]);
|
|
1295
|
+
return this.write(Object.assign(a, {
|
|
1296
|
+
query: this.getFragmentDoc(r, i),
|
|
1297
|
+
dataId: t,
|
|
1298
|
+
result: n
|
|
1299
|
+
}));
|
|
1300
|
+
}, t.prototype.updateQuery = function(t, n) {
|
|
1301
|
+
return globalThis.__DEV__ !== !1 && e(t, "canonizeResults", "cache.updateQuery"), this.batch({ update: function(e) {
|
|
1302
|
+
var r = j("canonizeResults", function() {
|
|
1303
|
+
return e.readQuery(t);
|
|
1304
|
+
}), i = n(r);
|
|
1305
|
+
return i == null ? r : (e.writeQuery(M(M({}, t), { data: i })), i);
|
|
1306
|
+
} });
|
|
1307
|
+
}, t.prototype.updateFragment = function(t, n) {
|
|
1308
|
+
return globalThis.__DEV__ !== !1 && e(t, "canonizeResults", "cache.updateFragment"), this.batch({ update: function(e) {
|
|
1309
|
+
var r = j("canonizeResults", function() {
|
|
1310
|
+
return e.readFragment(t);
|
|
1311
|
+
}), i = n(r);
|
|
1312
|
+
return i == null ? r : (e.writeFragment(M(M({}, t), { data: i })), i);
|
|
1313
|
+
} });
|
|
1314
|
+
}, t;
|
|
1315
|
+
}();
|
|
1316
|
+
globalThis.__DEV__ !== !1 && (Tn.prototype.getMemoryInternals = xe);
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region node_modules/@apollo/client/cache/core/types/common.js
|
|
1319
|
+
var En = function(e) {
|
|
1320
|
+
H(t, e);
|
|
1321
|
+
function t(n, r, i, a) {
|
|
1322
|
+
var o, s = e.call(this, n) || this;
|
|
1323
|
+
if (s.message = n, s.path = r, s.query = i, s.variables = a, Array.isArray(s.path)) {
|
|
1324
|
+
s.missing = s.message;
|
|
1325
|
+
for (var c = s.path.length - 1; c >= 0; --c) s.missing = (o = {}, o[s.path[c]] = s.missing, o);
|
|
1326
|
+
} else s.missing = s.path;
|
|
1327
|
+
return s.__proto__ = t.prototype, s;
|
|
1328
|
+
}
|
|
1329
|
+
return t;
|
|
1330
|
+
}(Error), Z = Object.prototype.hasOwnProperty;
|
|
1331
|
+
function Dn(e) {
|
|
1332
|
+
return e == null;
|
|
1333
|
+
}
|
|
1334
|
+
function On(e, t) {
|
|
1335
|
+
var n = e.__typename, r = e.id, i = e._id;
|
|
1336
|
+
if (typeof n == "string" && (t && (t.keyObject = Dn(r) ? Dn(i) ? void 0 : { _id: i } : { id: r }), Dn(r) && !Dn(i) && (r = i), !Dn(r))) return `${n}:${typeof r == "number" || typeof r == "string" ? r : JSON.stringify(r)}`;
|
|
1337
|
+
}
|
|
1338
|
+
var kn = {
|
|
1339
|
+
dataIdFromObject: On,
|
|
1340
|
+
addTypename: !0,
|
|
1341
|
+
resultCaching: !0,
|
|
1342
|
+
canonizeResults: !1
|
|
1343
|
+
};
|
|
1344
|
+
function An(e) {
|
|
1345
|
+
return Pe(kn, e);
|
|
1346
|
+
}
|
|
1347
|
+
function jn(e) {
|
|
1348
|
+
var t = e.canonizeResults;
|
|
1349
|
+
return t === void 0 ? kn.canonizeResults : t;
|
|
1350
|
+
}
|
|
1351
|
+
function Mn(e, t) {
|
|
1352
|
+
return c(t) ? e.get(t.__ref, "__typename") : t && t.__typename;
|
|
1353
|
+
}
|
|
1354
|
+
var Nn = /^[_a-z][_0-9a-z]*/i;
|
|
1355
|
+
function Q(e) {
|
|
1356
|
+
var t = e.match(Nn);
|
|
1357
|
+
return t ? t[0] : e;
|
|
1358
|
+
}
|
|
1359
|
+
function Pn(e, t, n) {
|
|
1360
|
+
return p(t) ? V(t) ? t.every(function(t) {
|
|
1361
|
+
return Pn(e, t, n);
|
|
1362
|
+
}) : e.selections.every(function(e) {
|
|
1363
|
+
if (U(e) && oe(e, n)) {
|
|
1364
|
+
var r = S(e);
|
|
1365
|
+
return Z.call(t, r) && (!e.selectionSet || Pn(e.selectionSet, t[r], n));
|
|
1366
|
+
}
|
|
1367
|
+
return !0;
|
|
1368
|
+
}) : !1;
|
|
1369
|
+
}
|
|
1370
|
+
function Fn(e) {
|
|
1371
|
+
return p(e) && !c(e) && !V(e);
|
|
1372
|
+
}
|
|
1373
|
+
function In() {
|
|
1374
|
+
return new Y();
|
|
1375
|
+
}
|
|
1376
|
+
function Ln(e, t) {
|
|
1377
|
+
var n = ee(ve(e));
|
|
1378
|
+
return {
|
|
1379
|
+
fragmentMap: n,
|
|
1380
|
+
lookupFragment: function(e) {
|
|
1381
|
+
var r = n[e];
|
|
1382
|
+
return !r && t && (r = t.lookup(e)), r || null;
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
//#endregion
|
|
1387
|
+
//#region node_modules/@apollo/client/cache/inmemory/entityStore.js
|
|
1388
|
+
var Rn = Object.create(null), zn = function() {
|
|
1389
|
+
return Rn;
|
|
1390
|
+
}, Bn = Object.create(null), Vn = function() {
|
|
1391
|
+
function e(e, t) {
|
|
1392
|
+
var n = this;
|
|
1393
|
+
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) {
|
|
1394
|
+
return be(c(e) ? n.get(e.__ref, t) : e && e[t]);
|
|
1395
|
+
}, this.canRead = function(e) {
|
|
1396
|
+
return c(e) ? n.has(e.__ref) : typeof e == "object";
|
|
1397
|
+
}, this.toReference = function(e, t) {
|
|
1398
|
+
if (typeof e == "string") return s(e);
|
|
1399
|
+
if (c(e)) return e;
|
|
1400
|
+
var r = n.policies.identify(e)[0];
|
|
1401
|
+
if (r) {
|
|
1402
|
+
var i = s(r);
|
|
1403
|
+
return t && n.merge(r, e), i;
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
return e.prototype.toObject = function() {
|
|
1408
|
+
return M({}, this.data);
|
|
1409
|
+
}, e.prototype.has = function(e) {
|
|
1410
|
+
return this.lookup(e, !0) !== void 0;
|
|
1411
|
+
}, e.prototype.get = function(e, t) {
|
|
1412
|
+
if (this.group.depend(e, t), Z.call(this.data, e)) {
|
|
1413
|
+
var n = this.data[e];
|
|
1414
|
+
if (n && Z.call(n, t)) return n[t];
|
|
1415
|
+
}
|
|
1416
|
+
if (t === "__typename" && Z.call(this.policies.rootTypenamesById, e)) return this.policies.rootTypenamesById[e];
|
|
1417
|
+
if (this instanceof $) return this.parent.get(e, t);
|
|
1418
|
+
}, e.prototype.lookup = function(e, t) {
|
|
1419
|
+
if (t && this.group.depend(e, "__exists"), Z.call(this.data, e)) return this.data[e];
|
|
1420
|
+
if (this instanceof $) return this.parent.lookup(e, t);
|
|
1421
|
+
if (this.policies.rootTypenamesById[e]) return Object.create(null);
|
|
1422
|
+
}, e.prototype.merge = function(e, t) {
|
|
1423
|
+
var n = this, r;
|
|
1424
|
+
c(e) && (e = e.__ref), c(t) && (t = t.__ref);
|
|
1425
|
+
var i = typeof e == "string" ? this.lookup(r = e) : e, a = typeof t == "string" ? this.lookup(r = t) : t;
|
|
1426
|
+
if (a) {
|
|
1427
|
+
R(typeof r == "string", 2);
|
|
1428
|
+
var o = new Y(Kn).merge(i, a);
|
|
1429
|
+
if (this.data[r] = o, o !== i && (delete this.refs[r], this.group.caching)) {
|
|
1430
|
+
var s = Object.create(null);
|
|
1431
|
+
i || (s.__exists = 1), Object.keys(a).forEach(function(e) {
|
|
1432
|
+
if (!i || i[e] !== o[e]) {
|
|
1433
|
+
s[e] = 1;
|
|
1434
|
+
var t = Q(e);
|
|
1435
|
+
t !== e && !n.policies.hasKeyArgs(o.__typename, t) && (s[t] = 1), o[e] === void 0 && !(n instanceof $) && delete o[e];
|
|
1436
|
+
}
|
|
1437
|
+
}), s.__typename && !(i && i.__typename) && this.policies.rootTypenamesById[r] === o.__typename && delete s.__typename, Object.keys(s).forEach(function(e) {
|
|
1438
|
+
return n.group.dirty(r, e);
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}, e.prototype.modify = function(e, t) {
|
|
1443
|
+
var n = this, r = this.lookup(e);
|
|
1444
|
+
if (r) {
|
|
1445
|
+
var i = Object.create(null), a = !1, o = !0, l = {
|
|
1446
|
+
DELETE: Rn,
|
|
1447
|
+
INVALIDATE: Bn,
|
|
1448
|
+
isReference: c,
|
|
1449
|
+
toReference: this.toReference,
|
|
1450
|
+
canRead: this.canRead,
|
|
1451
|
+
readField: function(t, r) {
|
|
1452
|
+
return n.policies.readField(typeof t == "string" ? {
|
|
1453
|
+
fieldName: t,
|
|
1454
|
+
from: r || s(e)
|
|
1455
|
+
} : t, { store: n });
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
if (Object.keys(r).forEach(function(s) {
|
|
1459
|
+
var u = Q(s), d = r[s];
|
|
1460
|
+
if (d !== void 0) {
|
|
1461
|
+
var f = typeof t == "function" ? t : t[s] || t[u];
|
|
1462
|
+
if (f) {
|
|
1463
|
+
var p = f === zn ? Rn : f(be(d), M(M({}, l), {
|
|
1464
|
+
fieldName: u,
|
|
1465
|
+
storeFieldName: s,
|
|
1466
|
+
storage: n.getStorage(e, s)
|
|
1467
|
+
}));
|
|
1468
|
+
if (p === Bn) n.group.dirty(e, s);
|
|
1469
|
+
else if (p === Rn && (p = void 0), p !== d && (i[s] = p, a = !0, d = p, globalThis.__DEV__ !== !1)) {
|
|
1470
|
+
var m = function(e) {
|
|
1471
|
+
if (n.lookup(e.__ref) === void 0) return globalThis.__DEV__ !== !1 && R.warn(3, e), !0;
|
|
1472
|
+
};
|
|
1473
|
+
if (c(p)) m(p);
|
|
1474
|
+
else if (Array.isArray(p)) for (var h = !1, g = void 0, _ = 0, v = p; _ < v.length; _++) {
|
|
1475
|
+
var y = v[_];
|
|
1476
|
+
if (c(y)) {
|
|
1477
|
+
if (h = !0, m(y)) break;
|
|
1478
|
+
} else typeof y == "object" && y && n.policies.identify(y)[0] && (g = y);
|
|
1479
|
+
if (h && g !== void 0) {
|
|
1480
|
+
globalThis.__DEV__ !== !1 && R.warn(4, g);
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
d !== void 0 && (o = !1);
|
|
1487
|
+
}
|
|
1488
|
+
}), a) return this.merge(e, i), o && (this instanceof $ ? this.data[e] = void 0 : delete this.data[e], this.group.dirty(e, "__exists")), !0;
|
|
1489
|
+
}
|
|
1490
|
+
return !1;
|
|
1491
|
+
}, e.prototype.delete = function(e, t, n) {
|
|
1492
|
+
var r, i = this.lookup(e);
|
|
1493
|
+
if (i) {
|
|
1494
|
+
var a = this.getFieldValue(i, "__typename"), o = t && n ? this.policies.getStoreFieldName({
|
|
1495
|
+
typename: a,
|
|
1496
|
+
fieldName: t,
|
|
1497
|
+
args: n
|
|
1498
|
+
}) : t;
|
|
1499
|
+
return this.modify(e, o ? (r = {}, r[o] = zn, r) : zn);
|
|
1500
|
+
}
|
|
1501
|
+
return !1;
|
|
1502
|
+
}, e.prototype.evict = function(e, t) {
|
|
1503
|
+
var n = !1;
|
|
1504
|
+
return e.id && (Z.call(this.data, e.id) && (n = this.delete(e.id, e.fieldName, e.args)), this instanceof $ && this !== t && (n = this.parent.evict(e, t) || n), (e.fieldName || n) && this.group.dirty(e.id, e.fieldName || "__exists")), n;
|
|
1505
|
+
}, e.prototype.clear = function() {
|
|
1506
|
+
this.replace(null);
|
|
1507
|
+
}, e.prototype.extract = function() {
|
|
1508
|
+
var e = this, t = this.toObject(), n = [];
|
|
1509
|
+
return this.getRootIdSet().forEach(function(t) {
|
|
1510
|
+
Z.call(e.policies.rootTypenamesById, t) || n.push(t);
|
|
1511
|
+
}), n.length && (t.__META = { extraRootIds: n.sort() }), t;
|
|
1512
|
+
}, e.prototype.replace = function(e) {
|
|
1513
|
+
var t = this;
|
|
1514
|
+
if (Object.keys(this.data).forEach(function(n) {
|
|
1515
|
+
e && Z.call(e, n) || t.delete(n);
|
|
1516
|
+
}), e) {
|
|
1517
|
+
var n = e.__META, r = I(e, ["__META"]);
|
|
1518
|
+
Object.keys(r).forEach(function(e) {
|
|
1519
|
+
t.merge(e, r[e]);
|
|
1520
|
+
}), n && n.extraRootIds.forEach(this.retain, this);
|
|
1521
|
+
}
|
|
1522
|
+
}, e.prototype.retain = function(e) {
|
|
1523
|
+
return this.rootIds[e] = (this.rootIds[e] || 0) + 1;
|
|
1524
|
+
}, e.prototype.release = function(e) {
|
|
1525
|
+
if (this.rootIds[e] > 0) {
|
|
1526
|
+
var t = --this.rootIds[e];
|
|
1527
|
+
return t || delete this.rootIds[e], t;
|
|
1528
|
+
}
|
|
1529
|
+
return 0;
|
|
1530
|
+
}, e.prototype.getRootIdSet = function(e) {
|
|
1531
|
+
return e === void 0 && (e = /* @__PURE__ */ new Set()), Object.keys(this.rootIds).forEach(e.add, e), this instanceof $ ? this.parent.getRootIdSet(e) : Object.keys(this.policies.rootTypenamesById).forEach(e.add, e), e;
|
|
1532
|
+
}, e.prototype.gc = function() {
|
|
1533
|
+
var e = this, t = this.getRootIdSet(), n = this.toObject();
|
|
1534
|
+
t.forEach(function(r) {
|
|
1535
|
+
Z.call(n, r) && (Object.keys(e.findChildRefIds(r)).forEach(t.add, t), delete n[r]);
|
|
1536
|
+
});
|
|
1537
|
+
var r = Object.keys(n);
|
|
1538
|
+
if (r.length) {
|
|
1539
|
+
for (var i = this; i instanceof $;) i = i.parent;
|
|
1540
|
+
r.forEach(function(e) {
|
|
1541
|
+
return i.delete(e);
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1544
|
+
return r;
|
|
1545
|
+
}, e.prototype.findChildRefIds = function(e) {
|
|
1546
|
+
if (!Z.call(this.refs, e)) {
|
|
1547
|
+
var t = this.refs[e] = Object.create(null), n = this.data[e];
|
|
1548
|
+
if (!n) return t;
|
|
1549
|
+
var r = new Set([n]);
|
|
1550
|
+
r.forEach(function(e) {
|
|
1551
|
+
c(e) && (t[e.__ref] = !0), p(e) && Object.keys(e).forEach(function(t) {
|
|
1552
|
+
var n = e[t];
|
|
1553
|
+
p(n) && r.add(n);
|
|
1554
|
+
});
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
return this.refs[e];
|
|
1558
|
+
}, e.prototype.makeCacheKey = function() {
|
|
1559
|
+
return this.group.keyMaker.lookupArray(arguments);
|
|
1560
|
+
}, e;
|
|
1561
|
+
}(), Hn = function() {
|
|
1562
|
+
function e(e, t) {
|
|
1563
|
+
t === void 0 && (t = null), this.caching = e, this.parent = t, this.d = null, this.resetCaching();
|
|
1564
|
+
}
|
|
1565
|
+
return e.prototype.resetCaching = function() {
|
|
1566
|
+
this.d = this.caching ? Fe() : null, this.keyMaker = new v(A);
|
|
1567
|
+
}, e.prototype.depend = function(e, t) {
|
|
1568
|
+
if (this.d) {
|
|
1569
|
+
this.d(Un(e, t));
|
|
1570
|
+
var n = Q(t);
|
|
1571
|
+
n !== t && this.d(Un(e, n)), this.parent && this.parent.depend(e, t);
|
|
1572
|
+
}
|
|
1573
|
+
}, e.prototype.dirty = function(e, t) {
|
|
1574
|
+
this.d && this.d.dirty(Un(e, t), t === "__exists" ? "forget" : "setDirty");
|
|
1575
|
+
}, e;
|
|
1576
|
+
}();
|
|
1577
|
+
function Un(e, t) {
|
|
1578
|
+
return t + "#" + e;
|
|
1579
|
+
}
|
|
1580
|
+
function Wn(e, t) {
|
|
1581
|
+
qn(e) && e.group.depend(t, "__exists");
|
|
1582
|
+
}
|
|
1583
|
+
(function(e) {
|
|
1584
|
+
e.Root = function(e) {
|
|
1585
|
+
H(t, e);
|
|
1586
|
+
function t(t) {
|
|
1587
|
+
var n = t.policies, r = t.resultCaching, i = r === void 0 ? !0 : r, a = t.seed, o = e.call(this, n, new Hn(i)) || this;
|
|
1588
|
+
return o.stump = new Gn(o), o.storageTrie = new v(A), a && o.replace(a), o;
|
|
1589
|
+
}
|
|
1590
|
+
return t.prototype.addLayer = function(e, t) {
|
|
1591
|
+
return this.stump.addLayer(e, t);
|
|
1592
|
+
}, t.prototype.removeLayer = function() {
|
|
1593
|
+
return this;
|
|
1594
|
+
}, t.prototype.getStorage = function() {
|
|
1595
|
+
return this.storageTrie.lookupArray(arguments);
|
|
1596
|
+
}, t;
|
|
1597
|
+
}(e);
|
|
1598
|
+
})(Vn || (Vn = {}));
|
|
1599
|
+
var $ = function(e) {
|
|
1600
|
+
H(t, e);
|
|
1601
|
+
function t(t, n, r, i) {
|
|
1602
|
+
var a = e.call(this, n.policies, i) || this;
|
|
1603
|
+
return a.id = t, a.parent = n, a.replay = r, a.group = i, r(a), a;
|
|
1604
|
+
}
|
|
1605
|
+
return t.prototype.addLayer = function(e, n) {
|
|
1606
|
+
return new t(e, this, n, this.group);
|
|
1607
|
+
}, t.prototype.removeLayer = function(e) {
|
|
1608
|
+
var t = this, n = this.parent.removeLayer(e);
|
|
1609
|
+
return e === this.id ? (this.group.caching && Object.keys(this.data).forEach(function(e) {
|
|
1610
|
+
var r = t.data[e], i = n.lookup(e);
|
|
1611
|
+
i ? r ? r !== i && Object.keys(r).forEach(function(n) {
|
|
1612
|
+
h(r[n], i[n]) || t.group.dirty(e, n);
|
|
1613
|
+
}) : (t.group.dirty(e, "__exists"), Object.keys(i).forEach(function(n) {
|
|
1614
|
+
t.group.dirty(e, n);
|
|
1615
|
+
})) : t.delete(e);
|
|
1616
|
+
}), n) : n === this.parent ? this : n.addLayer(this.id, this.replay);
|
|
1617
|
+
}, t.prototype.toObject = function() {
|
|
1618
|
+
return M(M({}, this.parent.toObject()), this.data);
|
|
1619
|
+
}, t.prototype.findChildRefIds = function(t) {
|
|
1620
|
+
var n = this.parent.findChildRefIds(t);
|
|
1621
|
+
return Z.call(this.data, t) ? M(M({}, n), e.prototype.findChildRefIds.call(this, t)) : n;
|
|
1622
|
+
}, t.prototype.getStorage = function() {
|
|
1623
|
+
for (var e = this.parent; e.parent;) e = e.parent;
|
|
1624
|
+
return e.getStorage.apply(e, arguments);
|
|
1625
|
+
}, t;
|
|
1626
|
+
}(Vn), Gn = function(e) {
|
|
1627
|
+
H(t, e);
|
|
1628
|
+
function t(t) {
|
|
1629
|
+
return e.call(this, "EntityStore.Stump", t, function() {}, new Hn(t.group.caching, t.group)) || this;
|
|
1630
|
+
}
|
|
1631
|
+
return t.prototype.removeLayer = function() {
|
|
1632
|
+
return this;
|
|
1633
|
+
}, t.prototype.merge = function(e, t) {
|
|
1634
|
+
return this.parent.merge(e, t);
|
|
1635
|
+
}, t;
|
|
1636
|
+
}($);
|
|
1637
|
+
function Kn(e, t, n) {
|
|
1638
|
+
var r = e[n], i = t[n];
|
|
1639
|
+
return h(r, i) ? r : i;
|
|
1640
|
+
}
|
|
1641
|
+
function qn(e) {
|
|
1642
|
+
return !!(e instanceof Vn && e.group.caching);
|
|
1643
|
+
}
|
|
1644
|
+
//#endregion
|
|
1645
|
+
//#region node_modules/@apollo/client/cache/inmemory/object-canon.js
|
|
1646
|
+
function Jn(e) {
|
|
1647
|
+
return p(e) ? V(e) ? e.slice(0) : M({ __proto__: Object.getPrototypeOf(e) }, e) : e;
|
|
1648
|
+
}
|
|
1649
|
+
var Yn = function() {
|
|
1650
|
+
function e() {
|
|
1651
|
+
this.known = new (d ? WeakSet : Set)(), this.pool = new v(A), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
|
|
1652
|
+
}
|
|
1653
|
+
return e.prototype.isKnown = function(e) {
|
|
1654
|
+
return p(e) && this.known.has(e);
|
|
1655
|
+
}, e.prototype.pass = function(e) {
|
|
1656
|
+
if (p(e)) {
|
|
1657
|
+
var t = Jn(e);
|
|
1658
|
+
return this.passes.set(t, e), t;
|
|
1659
|
+
}
|
|
1660
|
+
return e;
|
|
1661
|
+
}, e.prototype.admit = function(e) {
|
|
1662
|
+
var t = this;
|
|
1663
|
+
if (p(e)) {
|
|
1664
|
+
var n = this.passes.get(e);
|
|
1665
|
+
if (n) return n;
|
|
1666
|
+
switch (Object.getPrototypeOf(e)) {
|
|
1667
|
+
case Array.prototype:
|
|
1668
|
+
if (this.known.has(e)) return e;
|
|
1669
|
+
var r = e.map(this.admit, this), i = this.pool.lookupArray(r);
|
|
1670
|
+
return i.array || (this.known.add(i.array = r), globalThis.__DEV__ !== !1 && Object.freeze(r)), i.array;
|
|
1671
|
+
case null:
|
|
1672
|
+
case Object.prototype:
|
|
1673
|
+
if (this.known.has(e)) return e;
|
|
1674
|
+
var a = Object.getPrototypeOf(e), o = [a], s = this.sortedKeys(e);
|
|
1675
|
+
o.push(s.json);
|
|
1676
|
+
var c = o.length;
|
|
1677
|
+
s.sorted.forEach(function(n) {
|
|
1678
|
+
o.push(t.admit(e[n]));
|
|
1679
|
+
});
|
|
1680
|
+
var i = this.pool.lookupArray(o);
|
|
1681
|
+
if (!i.object) {
|
|
1682
|
+
var l = i.object = Object.create(a);
|
|
1683
|
+
this.known.add(l), s.sorted.forEach(function(e, t) {
|
|
1684
|
+
l[e] = o[c + t];
|
|
1685
|
+
}), globalThis.__DEV__ !== !1 && Object.freeze(l);
|
|
1686
|
+
}
|
|
1687
|
+
return i.object;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
return e;
|
|
1691
|
+
}, e.prototype.sortedKeys = function(e) {
|
|
1692
|
+
var t = Object.keys(e), n = this.pool.lookupArray(t);
|
|
1693
|
+
if (!n.keys) {
|
|
1694
|
+
t.sort();
|
|
1695
|
+
var r = JSON.stringify(t);
|
|
1696
|
+
(n.keys = this.keysByJSON.get(r)) || this.keysByJSON.set(r, n.keys = {
|
|
1697
|
+
sorted: t,
|
|
1698
|
+
json: r
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
return n.keys;
|
|
1702
|
+
}, e;
|
|
1703
|
+
}();
|
|
1704
|
+
//#endregion
|
|
1705
|
+
//#region node_modules/@apollo/client/cache/inmemory/readFromStore.js
|
|
1706
|
+
function Xn(e) {
|
|
1707
|
+
return [
|
|
1708
|
+
e.selectionSet,
|
|
1709
|
+
e.objectOrReference,
|
|
1710
|
+
e.context,
|
|
1711
|
+
e.context.canonizeResults
|
|
1712
|
+
];
|
|
1713
|
+
}
|
|
1714
|
+
var Zn = function() {
|
|
1715
|
+
function e(e) {
|
|
1716
|
+
var t = this;
|
|
1717
|
+
this.knownResults = new (A ? WeakMap : Map)(), this.config = Pe(e, {
|
|
1718
|
+
addTypename: e.addTypename !== !1,
|
|
1719
|
+
canonizeResults: jn(e)
|
|
1720
|
+
}), this.canon = e.canon || new Yn(), this.executeSelectionSet = we(function(e) {
|
|
1721
|
+
var n, r = e.context.canonizeResults, i = Xn(e);
|
|
1722
|
+
i[3] = !r;
|
|
1723
|
+
var a = (n = t.executeSelectionSet).peek.apply(n, i);
|
|
1724
|
+
return a ? r ? M(M({}, a), { result: t.canon.admit(a.result) }) : a : (Wn(e.context.store, e.enclosingRef.__ref), t.execSelectionSetImpl(e));
|
|
1725
|
+
}, {
|
|
1726
|
+
max: this.config.resultCacheMaxSize || l["inMemoryCache.executeSelectionSet"] || 5e4,
|
|
1727
|
+
keyArgs: Xn,
|
|
1728
|
+
makeCacheKey: function(e, t, n, r) {
|
|
1729
|
+
if (qn(n.store)) return n.store.makeCacheKey(e, c(t) ? t.__ref : t, n.varString, r);
|
|
1730
|
+
}
|
|
1731
|
+
}), this.executeSubSelectedArray = we(function(e) {
|
|
1732
|
+
return Wn(e.context.store, e.enclosingRef.__ref), t.execSubSelectedArrayImpl(e);
|
|
1733
|
+
}, {
|
|
1734
|
+
max: this.config.resultCacheMaxSize || l["inMemoryCache.executeSubSelectedArray"] || 1e4,
|
|
1735
|
+
makeCacheKey: function(e) {
|
|
1736
|
+
var t = e.field, n = e.array, r = e.context;
|
|
1737
|
+
if (qn(r.store)) return r.store.makeCacheKey(t, n, r.varString);
|
|
1738
|
+
}
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
return e.prototype.resetCanon = function() {
|
|
1742
|
+
this.canon = new Yn();
|
|
1743
|
+
}, e.prototype.diffQueryAgainstStore = function(e) {
|
|
1744
|
+
var t = e.store, r = e.query, i = e.rootId, a = i === void 0 ? "ROOT_QUERY" : i, o = e.variables, c = e.returnPartialData, l = c === void 0 ? !0 : c, u = e.canonizeResults, d = u === void 0 ? this.config.canonizeResults : u, f = this.config.cache.policies;
|
|
1745
|
+
o = M(M({}, ke(ze(r))), o);
|
|
1746
|
+
var p = s(a), m = this.executeSelectionSet({
|
|
1747
|
+
selectionSet: ge(r).selectionSet,
|
|
1748
|
+
objectOrReference: p,
|
|
1749
|
+
enclosingRef: p,
|
|
1750
|
+
context: M({
|
|
1751
|
+
store: t,
|
|
1752
|
+
query: r,
|
|
1753
|
+
policies: f,
|
|
1754
|
+
variables: o,
|
|
1755
|
+
varString: n(o),
|
|
1756
|
+
canonizeResults: d
|
|
1757
|
+
}, Ln(r, this.config.fragments))
|
|
1758
|
+
}), h;
|
|
1759
|
+
if (m.missing && (h = [new En(Qn(m.missing), m.missing, r, o)], !l)) throw h[0];
|
|
1760
|
+
return {
|
|
1761
|
+
result: m.result,
|
|
1762
|
+
complete: !h,
|
|
1763
|
+
missing: h
|
|
1764
|
+
};
|
|
1765
|
+
}, e.prototype.isFresh = function(e, t, n, r) {
|
|
1766
|
+
if (qn(r.store) && this.knownResults.get(e) === n) {
|
|
1767
|
+
var i = this.executeSelectionSet.peek(n, t, r, this.canon.isKnown(e));
|
|
1768
|
+
if (i && e === i.result) return !0;
|
|
1769
|
+
}
|
|
1770
|
+
return !1;
|
|
1771
|
+
}, e.prototype.execSelectionSetImpl = function(e) {
|
|
1772
|
+
var t = this, n = e.selectionSet, r = e.objectOrReference, i = e.enclosingRef, a = e.context;
|
|
1773
|
+
if (c(r) && !a.policies.rootTypenamesById[r.__ref] && !a.store.has(r.__ref)) return {
|
|
1774
|
+
result: this.canon.empty,
|
|
1775
|
+
missing: `Dangling reference to missing ${r.__ref} object`
|
|
1776
|
+
};
|
|
1777
|
+
var o = a.variables, s = a.policies, l = a.store.getFieldValue(r, "__typename"), u = [], d, f = new Y();
|
|
1778
|
+
this.config.addTypename && typeof l == "string" && !s.rootIdsByTypename[l] && u.push({ __typename: l });
|
|
1779
|
+
function p(e, t) {
|
|
1780
|
+
var n;
|
|
1781
|
+
return e.missing && (d = f.merge(d, (n = {}, n[t] = e.missing, n))), e.result;
|
|
1782
|
+
}
|
|
1783
|
+
var m = new Set(n.selections);
|
|
1784
|
+
m.forEach(function(e) {
|
|
1785
|
+
var n, h;
|
|
1786
|
+
if (oe(e, o)) if (U(e)) {
|
|
1787
|
+
var g = s.readField({
|
|
1788
|
+
fieldName: e.name.value,
|
|
1789
|
+
field: e,
|
|
1790
|
+
variables: a.variables,
|
|
1791
|
+
from: r
|
|
1792
|
+
}, a), _ = S(e);
|
|
1793
|
+
g === void 0 ? ut.added(e) || (d = f.merge(d, (n = {}, n[_] = `Can't find field '${e.name.value}' on ${c(r) ? r.__ref + " object" : "object " + JSON.stringify(r, null, 2)}`, n))) : V(g) ? g.length > 0 && (g = p(t.executeSubSelectedArray({
|
|
1794
|
+
field: e,
|
|
1795
|
+
array: g,
|
|
1796
|
+
enclosingRef: i,
|
|
1797
|
+
context: a
|
|
1798
|
+
}), _)) : e.selectionSet ? g != null && (g = p(t.executeSelectionSet({
|
|
1799
|
+
selectionSet: e.selectionSet,
|
|
1800
|
+
objectOrReference: g,
|
|
1801
|
+
enclosingRef: c(g) ? g : i,
|
|
1802
|
+
context: a
|
|
1803
|
+
}), _)) : a.canonizeResults && (g = t.canon.pass(g)), g !== void 0 && u.push((h = {}, h[_] = g, h));
|
|
1804
|
+
} else {
|
|
1805
|
+
var v = Ve(e, a.lookupFragment);
|
|
1806
|
+
if (!v && e.kind === F.FRAGMENT_SPREAD) throw B(10, e.name.value);
|
|
1807
|
+
v && s.fragmentMatches(v, l) && v.selectionSet.selections.forEach(m.add, m);
|
|
1808
|
+
}
|
|
1809
|
+
});
|
|
1810
|
+
var h = {
|
|
1811
|
+
result: gt(u),
|
|
1812
|
+
missing: d
|
|
1813
|
+
}, g = a.canonizeResults ? this.canon.admit(h) : be(h);
|
|
1814
|
+
return g.result && this.knownResults.set(g.result, n), g;
|
|
1815
|
+
}, e.prototype.execSubSelectedArrayImpl = function(e) {
|
|
1816
|
+
var t = this, n = e.field, r = e.array, i = e.enclosingRef, a = e.context, o, s = new Y();
|
|
1817
|
+
function l(e, t) {
|
|
1818
|
+
var n;
|
|
1819
|
+
return e.missing && (o = s.merge(o, (n = {}, n[t] = e.missing, n))), e.result;
|
|
1820
|
+
}
|
|
1821
|
+
return n.selectionSet && (r = r.filter(a.store.canRead)), r = r.map(function(e, r) {
|
|
1822
|
+
return e === null ? null : V(e) ? l(t.executeSubSelectedArray({
|
|
1823
|
+
field: n,
|
|
1824
|
+
array: e,
|
|
1825
|
+
enclosingRef: i,
|
|
1826
|
+
context: a
|
|
1827
|
+
}), r) : n.selectionSet ? l(t.executeSelectionSet({
|
|
1828
|
+
selectionSet: n.selectionSet,
|
|
1829
|
+
objectOrReference: e,
|
|
1830
|
+
enclosingRef: c(e) ? e : i,
|
|
1831
|
+
context: a
|
|
1832
|
+
}), r) : (globalThis.__DEV__ !== !1 && $n(a.store, n, e), e);
|
|
1833
|
+
}), {
|
|
1834
|
+
result: a.canonizeResults ? this.canon.admit(r) : r,
|
|
1835
|
+
missing: o
|
|
1836
|
+
};
|
|
1837
|
+
}, e;
|
|
1838
|
+
}();
|
|
1839
|
+
function Qn(e) {
|
|
1840
|
+
try {
|
|
1841
|
+
JSON.stringify(e, function(e, t) {
|
|
1842
|
+
if (typeof t == "string") throw t;
|
|
1843
|
+
return t;
|
|
1844
|
+
});
|
|
1845
|
+
} catch (e) {
|
|
1846
|
+
return e;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
function $n(e, t, n) {
|
|
1850
|
+
if (!t.selectionSet) {
|
|
1851
|
+
var r = new Set([n]);
|
|
1852
|
+
r.forEach(function(n) {
|
|
1853
|
+
p(n) && (R(!c(n), 11, Mn(e, n), t.name.value), Object.values(n).forEach(r.add, r));
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
//#endregion
|
|
1858
|
+
//#region node_modules/@apollo/client/cache/inmemory/reactiveVars.js
|
|
1859
|
+
var er = new pe(), tr = /* @__PURE__ */ new WeakMap();
|
|
1860
|
+
function nr(e) {
|
|
1861
|
+
var t = tr.get(e);
|
|
1862
|
+
return t || tr.set(e, t = {
|
|
1863
|
+
vars: /* @__PURE__ */ new Set(),
|
|
1864
|
+
dep: Fe()
|
|
1865
|
+
}), t;
|
|
1866
|
+
}
|
|
1867
|
+
function rr(e) {
|
|
1868
|
+
nr(e).vars.forEach(function(t) {
|
|
1869
|
+
return t.forgetCache(e);
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
function ir(e) {
|
|
1873
|
+
nr(e).vars.forEach(function(t) {
|
|
1874
|
+
return t.attachCache(e);
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
function ar(e) {
|
|
1878
|
+
var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = function(a) {
|
|
1879
|
+
if (arguments.length > 0) {
|
|
1880
|
+
if (e !== a) {
|
|
1881
|
+
e = a, t.forEach(function(e) {
|
|
1882
|
+
nr(e).dep.dirty(r), or(e);
|
|
1883
|
+
});
|
|
1884
|
+
var o = Array.from(n);
|
|
1885
|
+
n.clear(), o.forEach(function(t) {
|
|
1886
|
+
return t(e);
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
} else {
|
|
1890
|
+
var s = er.getValue();
|
|
1891
|
+
s && (i(s), nr(s).dep(r));
|
|
1892
|
+
}
|
|
1893
|
+
return e;
|
|
1894
|
+
};
|
|
1895
|
+
r.onNextChange = function(e) {
|
|
1896
|
+
return n.add(e), function() {
|
|
1897
|
+
n.delete(e);
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
|
+
var i = r.attachCache = function(e) {
|
|
1901
|
+
return t.add(e), nr(e).vars.add(r), r;
|
|
1902
|
+
};
|
|
1903
|
+
return r.forgetCache = function(e) {
|
|
1904
|
+
return t.delete(e);
|
|
1905
|
+
}, r;
|
|
1906
|
+
}
|
|
1907
|
+
function or(e) {
|
|
1908
|
+
e.broadcastWatches && e.broadcastWatches();
|
|
1909
|
+
}
|
|
1910
|
+
//#endregion
|
|
1911
|
+
//#region node_modules/@apollo/client/cache/inmemory/key-extractor.js
|
|
1912
|
+
var sr = Object.create(null);
|
|
1913
|
+
function cr(e) {
|
|
1914
|
+
var t = JSON.stringify(e);
|
|
1915
|
+
return sr[t] || (sr[t] = Object.create(null));
|
|
1916
|
+
}
|
|
1917
|
+
function lr(e) {
|
|
1918
|
+
var t = cr(e);
|
|
1919
|
+
return t.keyFieldsFn || (t.keyFieldsFn = function(t, n) {
|
|
1920
|
+
var r = function(e, t) {
|
|
1921
|
+
return n.readField(t, e);
|
|
1922
|
+
}, i = n.keyObject = dr(e, function(e) {
|
|
1923
|
+
var i = mr(n.storeObject, e, r);
|
|
1924
|
+
return i === void 0 && t !== n.storeObject && Z.call(t, e[0]) && (i = mr(t, e, pr)), R(i !== void 0, 5, e.join("."), t), i;
|
|
1925
|
+
});
|
|
1926
|
+
return `${n.typename}:${JSON.stringify(i)}`;
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
function ur(e) {
|
|
1930
|
+
var t = cr(e);
|
|
1931
|
+
return t.keyArgsFn || (t.keyArgsFn = function(t, n) {
|
|
1932
|
+
var r = n.field, i = n.variables, a = n.fieldName, o = dr(e, function(e) {
|
|
1933
|
+
var n = e[0], a = n.charAt(0);
|
|
1934
|
+
if (a === "@") {
|
|
1935
|
+
if (r && N(r.directives)) {
|
|
1936
|
+
var o = n.slice(1), s = r.directives.find(function(e) {
|
|
1937
|
+
return e.name.value === o;
|
|
1938
|
+
}), c = s && fe(s, i);
|
|
1939
|
+
return c && mr(c, e.slice(1));
|
|
1940
|
+
}
|
|
1941
|
+
return;
|
|
1942
|
+
}
|
|
1943
|
+
if (a === "$") {
|
|
1944
|
+
var l = n.slice(1);
|
|
1945
|
+
if (i && Z.call(i, l)) {
|
|
1946
|
+
var u = e.slice(0);
|
|
1947
|
+
return u[0] = l, mr(i, u);
|
|
1948
|
+
}
|
|
1949
|
+
return;
|
|
1950
|
+
}
|
|
1951
|
+
if (t) return mr(t, e);
|
|
1952
|
+
}), s = JSON.stringify(o);
|
|
1953
|
+
return (t || s !== "{}") && (a += ":" + s), a;
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1956
|
+
function dr(e, t) {
|
|
1957
|
+
var n = new Y();
|
|
1958
|
+
return fr(e).reduce(function(e, r) {
|
|
1959
|
+
var i, a = t(r);
|
|
1960
|
+
if (a !== void 0) {
|
|
1961
|
+
for (var o = r.length - 1; o >= 0; --o) a = (i = {}, i[r[o]] = a, i);
|
|
1962
|
+
e = n.merge(e, a);
|
|
1963
|
+
}
|
|
1964
|
+
return e;
|
|
1965
|
+
}, Object.create(null));
|
|
1966
|
+
}
|
|
1967
|
+
function fr(e) {
|
|
1968
|
+
var t = cr(e);
|
|
1969
|
+
if (!t.paths) {
|
|
1970
|
+
var n = t.paths = [], r = [];
|
|
1971
|
+
e.forEach(function(t, i) {
|
|
1972
|
+
V(t) ? (fr(t).forEach(function(e) {
|
|
1973
|
+
return n.push(r.concat(e));
|
|
1974
|
+
}), r.length = 0) : (r.push(t), V(e[i + 1]) || (n.push(r.slice(0)), r.length = 0));
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
return t.paths;
|
|
1978
|
+
}
|
|
1979
|
+
function pr(e, t) {
|
|
1980
|
+
return e[t];
|
|
1981
|
+
}
|
|
1982
|
+
function mr(e, t, n) {
|
|
1983
|
+
return n = n || pr, hr(t.reduce(function e(t, r) {
|
|
1984
|
+
return V(t) ? t.map(function(t) {
|
|
1985
|
+
return e(t, r);
|
|
1986
|
+
}) : t && n(t, r);
|
|
1987
|
+
}, e));
|
|
1988
|
+
}
|
|
1989
|
+
function hr(e) {
|
|
1990
|
+
return p(e) ? V(e) ? e.map(hr) : dr(Object.keys(e).sort(), function(t) {
|
|
1991
|
+
return mr(e, t);
|
|
1992
|
+
}) : e;
|
|
1993
|
+
}
|
|
1994
|
+
//#endregion
|
|
1995
|
+
//#region node_modules/@apollo/client/cache/inmemory/policies.js
|
|
1996
|
+
function gr(e) {
|
|
1997
|
+
return e.args === void 0 ? e.field ? fe(e.field, e.variables) : null : e.args;
|
|
1998
|
+
}
|
|
1999
|
+
var _r = function() {}, vr = function(e, t) {
|
|
2000
|
+
return t.fieldName;
|
|
2001
|
+
}, yr = function(e, t, n) {
|
|
2002
|
+
var r = n.mergeObjects;
|
|
2003
|
+
return r(e, t);
|
|
2004
|
+
}, br = function(e, t) {
|
|
2005
|
+
return t;
|
|
2006
|
+
}, xr = function() {
|
|
2007
|
+
function e(e) {
|
|
2008
|
+
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 = M({ dataIdFromObject: On }, 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);
|
|
2009
|
+
}
|
|
2010
|
+
return e.prototype.identify = function(e, t) {
|
|
2011
|
+
var n = this, r = t && (t.typename || t.storeObject?.__typename) || e.__typename;
|
|
2012
|
+
if (r === this.rootTypenamesById.ROOT_QUERY) return ["ROOT_QUERY"];
|
|
2013
|
+
var i = t && t.storeObject || e, a = M(M({}, t), {
|
|
2014
|
+
typename: r,
|
|
2015
|
+
storeObject: i,
|
|
2016
|
+
readField: t && t.readField || function() {
|
|
2017
|
+
var e = Cr(arguments, i);
|
|
2018
|
+
return n.readField(e, {
|
|
2019
|
+
store: n.cache.data,
|
|
2020
|
+
variables: e.variables
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
}), o, s = r && this.getTypePolicy(r), c = s && s.keyFn || this.config.dataIdFromObject;
|
|
2024
|
+
return gn.withValue(!0, function() {
|
|
2025
|
+
for (; c;) {
|
|
2026
|
+
var t = c(M(M({}, e), i), a);
|
|
2027
|
+
if (V(t)) c = lr(t);
|
|
2028
|
+
else {
|
|
2029
|
+
o = t;
|
|
2030
|
+
break;
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}), o = o ? String(o) : void 0, a.keyObject ? [o, a.keyObject] : [o];
|
|
2034
|
+
}, e.prototype.addTypePolicies = function(e) {
|
|
2035
|
+
var t = this;
|
|
2036
|
+
Object.keys(e).forEach(function(n) {
|
|
2037
|
+
var r = e[n], i = r.queryType, a = r.mutationType, o = r.subscriptionType, s = I(r, [
|
|
2038
|
+
"queryType",
|
|
2039
|
+
"mutationType",
|
|
2040
|
+
"subscriptionType"
|
|
2041
|
+
]);
|
|
2042
|
+
i && t.setRootTypename("Query", n), a && t.setRootTypename("Mutation", n), o && t.setRootTypename("Subscription", n), Z.call(t.toBeAdded, n) ? t.toBeAdded[n].push(s) : t.toBeAdded[n] = [s];
|
|
2043
|
+
});
|
|
2044
|
+
}, e.prototype.updateTypePolicy = function(e, t, n) {
|
|
2045
|
+
var r = this.getTypePolicy(e), i = t.keyFields, a = t.fields;
|
|
2046
|
+
function o(e, t) {
|
|
2047
|
+
e.merge = typeof t == "function" ? t : t === !0 ? yr : t === !1 ? br : e.merge;
|
|
2048
|
+
}
|
|
2049
|
+
o(r, t.merge), r.keyFn = i === !1 ? _r : V(i) ? lr(i) : typeof i == "function" ? i : r.keyFn, a && Object.keys(a).forEach(function(t) {
|
|
2050
|
+
var r = n[t];
|
|
2051
|
+
(!r || r?.typename !== e) && (r = n[t] = { typename: e });
|
|
2052
|
+
var i = a[t];
|
|
2053
|
+
if (typeof i == "function") r.read = i;
|
|
2054
|
+
else {
|
|
2055
|
+
var s = i.keyArgs, c = i.read, l = i.merge;
|
|
2056
|
+
r.keyFn = s === !1 ? vr : V(s) ? ur(s) : typeof s == "function" ? s : r.keyFn, typeof c == "function" && (r.read = c), o(r, l);
|
|
2057
|
+
}
|
|
2058
|
+
r.read && r.merge && (r.keyFn = r.keyFn || vr);
|
|
2059
|
+
});
|
|
2060
|
+
}, e.prototype.setRootTypename = function(e, t) {
|
|
2061
|
+
t === void 0 && (t = e);
|
|
2062
|
+
var n = "ROOT_" + e.toUpperCase(), r = this.rootTypenamesById[n];
|
|
2063
|
+
t !== r && (R(!r || r === e, 6, e), r && delete this.rootIdsByTypename[r], this.rootIdsByTypename[t] = n, this.rootTypenamesById[n] = t);
|
|
2064
|
+
}, e.prototype.addPossibleTypes = function(e) {
|
|
2065
|
+
var t = this;
|
|
2066
|
+
this.usingPossibleTypes = !0, Object.keys(e).forEach(function(n) {
|
|
2067
|
+
t.getSupertypeSet(n, !0), e[n].forEach(function(e) {
|
|
2068
|
+
t.getSupertypeSet(e, !0).add(n);
|
|
2069
|
+
var r = e.match(Nn);
|
|
2070
|
+
(!r || r[0] !== e) && t.fuzzySubtypes.set(e, new RegExp(e));
|
|
2071
|
+
});
|
|
2072
|
+
});
|
|
2073
|
+
}, e.prototype.getTypePolicy = function(e) {
|
|
2074
|
+
var t = this;
|
|
2075
|
+
if (!Z.call(this.typePolicies, e)) {
|
|
2076
|
+
var n = this.typePolicies[e] = Object.create(null);
|
|
2077
|
+
n.fields = Object.create(null);
|
|
2078
|
+
var r = this.supertypeMap.get(e);
|
|
2079
|
+
!r && this.fuzzySubtypes.size && (r = this.getSupertypeSet(e, !0), this.fuzzySubtypes.forEach(function(n, i) {
|
|
2080
|
+
if (n.test(e)) {
|
|
2081
|
+
var a = t.supertypeMap.get(i);
|
|
2082
|
+
a && a.forEach(function(e) {
|
|
2083
|
+
return r.add(e);
|
|
2084
|
+
});
|
|
2085
|
+
}
|
|
2086
|
+
})), r && r.size && r.forEach(function(e) {
|
|
2087
|
+
var r = t.getTypePolicy(e), i = r.fields, a = I(r, ["fields"]);
|
|
2088
|
+
Object.assign(n, a), Object.assign(n.fields, i);
|
|
2089
|
+
});
|
|
2090
|
+
}
|
|
2091
|
+
var i = this.toBeAdded[e];
|
|
2092
|
+
return i && i.length && i.splice(0).forEach(function(n) {
|
|
2093
|
+
t.updateTypePolicy(e, n, t.typePolicies[e].fields);
|
|
2094
|
+
}), this.typePolicies[e];
|
|
2095
|
+
}, e.prototype.getFieldPolicy = function(e, t) {
|
|
2096
|
+
if (e) return this.getTypePolicy(e).fields[t];
|
|
2097
|
+
}, e.prototype.getSupertypeSet = function(e, t) {
|
|
2098
|
+
var n = this.supertypeMap.get(e);
|
|
2099
|
+
return !n && t && this.supertypeMap.set(e, n = /* @__PURE__ */ new Set()), n;
|
|
2100
|
+
}, e.prototype.fragmentMatches = function(e, t, n, r) {
|
|
2101
|
+
var i = this;
|
|
2102
|
+
if (!e.typeCondition) return !0;
|
|
2103
|
+
if (!t) return !1;
|
|
2104
|
+
var a = e.typeCondition.name.value;
|
|
2105
|
+
if (t === a) return !0;
|
|
2106
|
+
if (this.usingPossibleTypes && this.supertypeMap.has(a)) for (var o = this.getSupertypeSet(t, !0), s = [o], c = function(e) {
|
|
2107
|
+
var t = i.getSupertypeSet(e, !1);
|
|
2108
|
+
t && t.size && s.indexOf(t) < 0 && s.push(t);
|
|
2109
|
+
}, l = !!(n && this.fuzzySubtypes.size), u = !1, d = 0; d < s.length; ++d) {
|
|
2110
|
+
var f = s[d];
|
|
2111
|
+
if (f.has(a)) return o.has(a) || (u && globalThis.__DEV__ !== !1 && R.warn(7, t, a), o.add(a)), !0;
|
|
2112
|
+
f.forEach(c), l && d === s.length - 1 && Pn(e.selectionSet, n, r) && (l = !1, u = !0, this.fuzzySubtypes.forEach(function(e, n) {
|
|
2113
|
+
var r = t.match(e);
|
|
2114
|
+
r && r[0] === t && c(n);
|
|
2115
|
+
}));
|
|
2116
|
+
}
|
|
2117
|
+
return !1;
|
|
2118
|
+
}, e.prototype.hasKeyArgs = function(e, t) {
|
|
2119
|
+
var n = this.getFieldPolicy(e, t);
|
|
2120
|
+
return !!(n && n.keyFn);
|
|
2121
|
+
}, e.prototype.getStoreFieldName = function(e) {
|
|
2122
|
+
var t = e.typename, n = e.fieldName, r = this.getFieldPolicy(t, n), i, a = r && r.keyFn;
|
|
2123
|
+
if (a && t) for (var o = {
|
|
2124
|
+
typename: t,
|
|
2125
|
+
fieldName: n,
|
|
2126
|
+
field: e.field || null,
|
|
2127
|
+
variables: e.variables
|
|
2128
|
+
}, s = gr(e); a;) {
|
|
2129
|
+
var c = a(s, o);
|
|
2130
|
+
if (V(c)) a = ur(c);
|
|
2131
|
+
else {
|
|
2132
|
+
i = c || n;
|
|
2133
|
+
break;
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
return i === void 0 && (i = e.field ? Ce(e.field, e.variables) : Re(n, gr(e))), i === !1 ? n : n === Q(i) ? i : n + ":" + i;
|
|
2137
|
+
}, e.prototype.readField = function(e, t) {
|
|
2138
|
+
var n = e.from;
|
|
2139
|
+
if (n && (e.field || e.fieldName)) {
|
|
2140
|
+
if (e.typename === void 0) {
|
|
2141
|
+
var r = t.store.getFieldValue(n, "__typename");
|
|
2142
|
+
r && (e.typename = r);
|
|
2143
|
+
}
|
|
2144
|
+
var i = this.getStoreFieldName(e), a = Q(i), o = t.store.getFieldValue(n, i), s = this.getFieldPolicy(e.typename, a), l = s && s.read;
|
|
2145
|
+
if (l) {
|
|
2146
|
+
var u = Sr(this, n, e, t, t.store.getStorage(c(n) ? n.__ref : n, i));
|
|
2147
|
+
return er.withValue(this.cache, l, [o, u]);
|
|
2148
|
+
}
|
|
2149
|
+
return o;
|
|
2150
|
+
}
|
|
2151
|
+
}, e.prototype.getReadFunction = function(e, t) {
|
|
2152
|
+
var n = this.getFieldPolicy(e, t);
|
|
2153
|
+
return n && n.read;
|
|
2154
|
+
}, e.prototype.getMergeFunction = function(e, t, n) {
|
|
2155
|
+
var r = this.getFieldPolicy(e, t), i = r && r.merge;
|
|
2156
|
+
return !i && n && (r = this.getTypePolicy(n), i = r && r.merge), i;
|
|
2157
|
+
}, e.prototype.runMergeFunction = function(e, t, n, r, i) {
|
|
2158
|
+
var a = n.field, o = n.typename, s = n.merge;
|
|
2159
|
+
return s === yr ? wr(r.store)(e, t) : s === br ? t : (r.overwrite && (e = void 0), s(e, t, Sr(this, void 0, {
|
|
2160
|
+
typename: o,
|
|
2161
|
+
fieldName: a.name.value,
|
|
2162
|
+
field: a,
|
|
2163
|
+
variables: r.variables
|
|
2164
|
+
}, r, i || Object.create(null))));
|
|
2165
|
+
}, e;
|
|
2166
|
+
}();
|
|
2167
|
+
function Sr(e, t, n, r, i) {
|
|
2168
|
+
var a = e.getStoreFieldName(n), o = Q(a), s = n.variables || r.variables, l = r.store, u = l.toReference, d = l.canRead;
|
|
2169
|
+
return {
|
|
2170
|
+
args: gr(n),
|
|
2171
|
+
field: n.field || null,
|
|
2172
|
+
fieldName: o,
|
|
2173
|
+
storeFieldName: a,
|
|
2174
|
+
variables: s,
|
|
2175
|
+
isReference: c,
|
|
2176
|
+
toReference: u,
|
|
2177
|
+
storage: i,
|
|
2178
|
+
cache: e.cache,
|
|
2179
|
+
canRead: d,
|
|
2180
|
+
readField: function() {
|
|
2181
|
+
return e.readField(Cr(arguments, t, s), r);
|
|
2182
|
+
},
|
|
2183
|
+
mergeObjects: wr(r.store)
|
|
2184
|
+
};
|
|
2185
|
+
}
|
|
2186
|
+
function Cr(e, t, n) {
|
|
2187
|
+
var r = e[0], i = e[1], a = e.length, o;
|
|
2188
|
+
return typeof r == "string" ? o = {
|
|
2189
|
+
fieldName: r,
|
|
2190
|
+
from: a > 1 ? i : t
|
|
2191
|
+
} : (o = M({}, r), Z.call(o, "from") || (o.from = t)), globalThis.__DEV__ !== !1 && o.from === void 0 && globalThis.__DEV__ !== !1 && R.warn(8, ye(Array.from(e))), o.variables === void 0 && (o.variables = n), o;
|
|
2192
|
+
}
|
|
2193
|
+
function wr(e) {
|
|
2194
|
+
return function(t, n) {
|
|
2195
|
+
if (V(t) || V(n)) throw B(9);
|
|
2196
|
+
if (p(t) && p(n)) {
|
|
2197
|
+
var r = e.getFieldValue(t, "__typename"), i = e.getFieldValue(n, "__typename");
|
|
2198
|
+
if (r && i && r !== i) return n;
|
|
2199
|
+
if (c(t) && Fn(n)) return e.merge(t.__ref, n), t;
|
|
2200
|
+
if (Fn(t) && c(n)) return e.merge(t, n.__ref), n;
|
|
2201
|
+
if (Fn(t) && Fn(n)) return M(M({}, t), n);
|
|
2202
|
+
}
|
|
2203
|
+
return n;
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
2206
|
+
//#endregion
|
|
2207
|
+
//#region node_modules/@apollo/client/cache/inmemory/writeToStore.js
|
|
2208
|
+
function Tr(e, t, n) {
|
|
2209
|
+
var r = `${t}${n}`, i = e.flavors.get(r);
|
|
2210
|
+
return i || e.flavors.set(r, i = e.clientOnly === t && e.deferred === n ? e : M(M({}, e), {
|
|
2211
|
+
clientOnly: t,
|
|
2212
|
+
deferred: n
|
|
2213
|
+
})), i;
|
|
2214
|
+
}
|
|
2215
|
+
var Er = function() {
|
|
2216
|
+
function e(e, t, n) {
|
|
2217
|
+
this.cache = e, this.reader = t, this.fragments = n;
|
|
2218
|
+
}
|
|
2219
|
+
return e.prototype.writeToStore = function(e, t) {
|
|
2220
|
+
var r = this, i = t.query, a = t.result, o = t.dataId, l = t.variables, u = t.overwrite, d = le(i), f = In();
|
|
2221
|
+
l = M(M({}, ke(d)), l);
|
|
2222
|
+
var p = M(M({
|
|
2223
|
+
store: e,
|
|
2224
|
+
written: Object.create(null),
|
|
2225
|
+
merge: function(e, t) {
|
|
2226
|
+
return f.merge(e, t);
|
|
2227
|
+
},
|
|
2228
|
+
variables: l,
|
|
2229
|
+
varString: n(l)
|
|
2230
|
+
}, Ln(i, this.fragments)), {
|
|
2231
|
+
overwrite: !!u,
|
|
2232
|
+
incomingById: /* @__PURE__ */ new Map(),
|
|
2233
|
+
clientOnly: !1,
|
|
2234
|
+
deferred: !1,
|
|
2235
|
+
flavors: /* @__PURE__ */ new Map()
|
|
2236
|
+
}), m = this.processSelectionSet({
|
|
2237
|
+
result: a || Object.create(null),
|
|
2238
|
+
dataId: o,
|
|
2239
|
+
selectionSet: d.selectionSet,
|
|
2240
|
+
mergeTree: { map: /* @__PURE__ */ new Map() },
|
|
2241
|
+
context: p
|
|
2242
|
+
});
|
|
2243
|
+
if (!c(m)) throw B(12, a);
|
|
2244
|
+
return p.incomingById.forEach(function(t, n) {
|
|
2245
|
+
var i = t.storeObject, a = t.mergeTree, o = t.fieldNodeSet, l = s(n);
|
|
2246
|
+
if (a && a.map.size) {
|
|
2247
|
+
var u = r.applyMerges(a, l, i, p);
|
|
2248
|
+
if (c(u)) return;
|
|
2249
|
+
i = u;
|
|
2250
|
+
}
|
|
2251
|
+
if (globalThis.__DEV__ !== !1 && !p.overwrite) {
|
|
2252
|
+
var d = Object.create(null);
|
|
2253
|
+
o.forEach(function(e) {
|
|
2254
|
+
e.selectionSet && (d[e.name.value] = !0);
|
|
2255
|
+
});
|
|
2256
|
+
var f = function(e) {
|
|
2257
|
+
return d[Q(e)] === !0;
|
|
2258
|
+
}, m = function(e) {
|
|
2259
|
+
var t = a && a.map.get(e);
|
|
2260
|
+
return !!(t && t.info && t.info.merge);
|
|
2261
|
+
};
|
|
2262
|
+
Object.keys(i).forEach(function(e) {
|
|
2263
|
+
f(e) && !m(e) && Nr(l, i, e, p.store);
|
|
2264
|
+
});
|
|
2265
|
+
}
|
|
2266
|
+
e.merge(n, i);
|
|
2267
|
+
}), e.retain(m.__ref), m;
|
|
2268
|
+
}, e.prototype.processSelectionSet = function(e) {
|
|
2269
|
+
var t = this, n = e.dataId, r = e.result, i = e.selectionSet, a = e.context, o = e.mergeTree, l = this.cache.policies, u = Object.create(null), d = n && l.rootTypenamesById[n] || te(r, i, a.fragmentMap) || n && a.store.get(n, "__typename");
|
|
2270
|
+
typeof d == "string" && (u.__typename = d);
|
|
2271
|
+
var f = function() {
|
|
2272
|
+
var e = Cr(arguments, u, a.variables);
|
|
2273
|
+
if (c(e.from)) {
|
|
2274
|
+
var t = a.incomingById.get(e.from.__ref);
|
|
2275
|
+
if (t) {
|
|
2276
|
+
var n = l.readField(M(M({}, e), { from: t.storeObject }), a);
|
|
2277
|
+
if (n !== void 0) return n;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
return l.readField(e, a);
|
|
2281
|
+
}, p = /* @__PURE__ */ new Set();
|
|
2282
|
+
this.flattenFields(i, r, a, d).forEach(function(e, n) {
|
|
2283
|
+
var i, a = r[S(n)];
|
|
2284
|
+
if (p.add(n), a !== void 0) {
|
|
2285
|
+
var s = l.getStoreFieldName({
|
|
2286
|
+
typename: d,
|
|
2287
|
+
fieldName: n.name.value,
|
|
2288
|
+
field: n,
|
|
2289
|
+
variables: e.variables
|
|
2290
|
+
}), m = Or(o, s), h = t.processFieldValue(a, n, n.selectionSet ? Tr(e, !1, !1) : e, m), g = void 0;
|
|
2291
|
+
n.selectionSet && (c(h) || Fn(h)) && (g = f("__typename", h));
|
|
2292
|
+
var _ = l.getMergeFunction(d, n.name.value, g);
|
|
2293
|
+
_ ? m.info = {
|
|
2294
|
+
field: n,
|
|
2295
|
+
typename: d,
|
|
2296
|
+
merge: _
|
|
2297
|
+
} : jr(o, s), u = e.merge(u, (i = {}, i[s] = h, i));
|
|
2298
|
+
} else globalThis.__DEV__ !== !1 && !e.clientOnly && !e.deferred && !ut.added(n) && !l.getReadFunction(d, n.name.value) && globalThis.__DEV__ !== !1 && R.error(13, S(n), r);
|
|
2299
|
+
});
|
|
2300
|
+
try {
|
|
2301
|
+
var m = l.identify(r, {
|
|
2302
|
+
typename: d,
|
|
2303
|
+
selectionSet: i,
|
|
2304
|
+
fragmentMap: a.fragmentMap,
|
|
2305
|
+
storeObject: u,
|
|
2306
|
+
readField: f
|
|
2307
|
+
}), h = m[0], g = m[1];
|
|
2308
|
+
n = n || h, g && (u = a.merge(u, g));
|
|
2309
|
+
} catch (e) {
|
|
2310
|
+
if (!n) throw e;
|
|
2311
|
+
}
|
|
2312
|
+
if (typeof n == "string") {
|
|
2313
|
+
var _ = s(n), v = a.written[n] || (a.written[n] = []);
|
|
2314
|
+
if (v.indexOf(i) >= 0 || (v.push(i), this.reader && this.reader.isFresh(r, _, i, a))) return _;
|
|
2315
|
+
var y = a.incomingById.get(n);
|
|
2316
|
+
return y ? (y.storeObject = a.merge(y.storeObject, u), y.mergeTree = kr(y.mergeTree, o), p.forEach(function(e) {
|
|
2317
|
+
return y.fieldNodeSet.add(e);
|
|
2318
|
+
})) : a.incomingById.set(n, {
|
|
2319
|
+
storeObject: u,
|
|
2320
|
+
mergeTree: Ar(o) ? void 0 : o,
|
|
2321
|
+
fieldNodeSet: p
|
|
2322
|
+
}), _;
|
|
2323
|
+
}
|
|
2324
|
+
return u;
|
|
2325
|
+
}, e.prototype.processFieldValue = function(e, t, n, r) {
|
|
2326
|
+
var i = this;
|
|
2327
|
+
return !t.selectionSet || e === null ? globalThis.__DEV__ === !1 ? e : de(e) : V(e) ? e.map(function(e, a) {
|
|
2328
|
+
var o = i.processFieldValue(e, t, n, Or(r, a));
|
|
2329
|
+
return jr(r, a), o;
|
|
2330
|
+
}) : this.processSelectionSet({
|
|
2331
|
+
result: e,
|
|
2332
|
+
selectionSet: t.selectionSet,
|
|
2333
|
+
context: n,
|
|
2334
|
+
mergeTree: r
|
|
2335
|
+
});
|
|
2336
|
+
}, e.prototype.flattenFields = function(e, t, n, r) {
|
|
2337
|
+
r === void 0 && (r = te(t, e, n.fragmentMap));
|
|
2338
|
+
var i = /* @__PURE__ */ new Map(), a = this.cache.policies, o = new v(!1);
|
|
2339
|
+
return (function e(s, c) {
|
|
2340
|
+
var l = o.lookup(s, c.clientOnly, c.deferred);
|
|
2341
|
+
l.visited || (l.visited = !0, s.selections.forEach(function(o) {
|
|
2342
|
+
if (oe(o, n.variables)) {
|
|
2343
|
+
var s = c.clientOnly, l = c.deferred;
|
|
2344
|
+
if (!(s && l) && N(o.directives) && o.directives.forEach(function(e) {
|
|
2345
|
+
var t = e.name.value;
|
|
2346
|
+
if (t === "client" && (s = !0), t === "defer") {
|
|
2347
|
+
var r = fe(e, n.variables);
|
|
2348
|
+
(!r || r.if !== !1) && (l = !0);
|
|
2349
|
+
}
|
|
2350
|
+
}), U(o)) {
|
|
2351
|
+
var u = i.get(o);
|
|
2352
|
+
u && (s = s && u.clientOnly, l = l && u.deferred), i.set(o, Tr(n, s, l));
|
|
2353
|
+
} else {
|
|
2354
|
+
var d = Ve(o, n.lookupFragment);
|
|
2355
|
+
if (!d && o.kind === F.FRAGMENT_SPREAD) throw B(14, o.name.value);
|
|
2356
|
+
d && a.fragmentMatches(d, r, t, n.variables) && e(d.selectionSet, Tr(n, s, l));
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
}));
|
|
2360
|
+
})(e, n), i;
|
|
2361
|
+
}, e.prototype.applyMerges = function(e, t, n, r, i) {
|
|
2362
|
+
var a, o = this;
|
|
2363
|
+
if (e.map.size && !c(n)) {
|
|
2364
|
+
var s = !V(n) && (c(t) || Fn(t)) ? t : void 0, l = n;
|
|
2365
|
+
s && !i && (i = [c(s) ? s.__ref : s]);
|
|
2366
|
+
var u, d = function(e, t) {
|
|
2367
|
+
return V(e) ? typeof t == "number" ? e[t] : void 0 : r.store.getFieldValue(e, String(t));
|
|
2368
|
+
};
|
|
2369
|
+
e.map.forEach(function(e, t) {
|
|
2370
|
+
var n = d(s, t), a = d(l, t);
|
|
2371
|
+
if (a !== void 0) {
|
|
2372
|
+
i && i.push(t);
|
|
2373
|
+
var c = o.applyMerges(e, n, a, r, i);
|
|
2374
|
+
c !== a && (u = u || /* @__PURE__ */ new Map(), u.set(t, c)), i && R(i.pop() === t);
|
|
2375
|
+
}
|
|
2376
|
+
}), u && (n = V(l) ? l.slice(0) : M({}, l), u.forEach(function(e, t) {
|
|
2377
|
+
n[t] = e;
|
|
2378
|
+
}));
|
|
2379
|
+
}
|
|
2380
|
+
return e.info ? this.cache.policies.runMergeFunction(t, n, e.info, r, i && (a = r.store).getStorage.apply(a, i)) : n;
|
|
2381
|
+
}, e;
|
|
2382
|
+
}(), Dr = [];
|
|
2383
|
+
function Or(e, t) {
|
|
2384
|
+
var n = e.map;
|
|
2385
|
+
return n.has(t) || n.set(t, Dr.pop() || { map: /* @__PURE__ */ new Map() }), n.get(t);
|
|
2386
|
+
}
|
|
2387
|
+
function kr(e, t) {
|
|
2388
|
+
if (e === t || !t || Ar(t)) return e;
|
|
2389
|
+
if (!e || Ar(e)) return t;
|
|
2390
|
+
var n = e.info && t.info ? M(M({}, e.info), t.info) : e.info || t.info, r = e.map.size && t.map.size, i = {
|
|
2391
|
+
info: n,
|
|
2392
|
+
map: r ? /* @__PURE__ */ new Map() : e.map.size ? e.map : t.map
|
|
2393
|
+
};
|
|
2394
|
+
if (r) {
|
|
2395
|
+
var a = new Set(t.map.keys());
|
|
2396
|
+
e.map.forEach(function(e, n) {
|
|
2397
|
+
i.map.set(n, kr(e, t.map.get(n))), a.delete(n);
|
|
2398
|
+
}), a.forEach(function(n) {
|
|
2399
|
+
i.map.set(n, kr(t.map.get(n), e.map.get(n)));
|
|
2400
|
+
});
|
|
2401
|
+
}
|
|
2402
|
+
return i;
|
|
2403
|
+
}
|
|
2404
|
+
function Ar(e) {
|
|
2405
|
+
return !e || !(e.info || e.map.size);
|
|
2406
|
+
}
|
|
2407
|
+
function jr(e, t) {
|
|
2408
|
+
var n = e.map, r = n.get(t);
|
|
2409
|
+
r && Ar(r) && (Dr.push(r), n.delete(t));
|
|
2410
|
+
}
|
|
2411
|
+
var Mr = /* @__PURE__ */ new Set();
|
|
2412
|
+
function Nr(e, t, n, r) {
|
|
2413
|
+
var i = function(e) {
|
|
2414
|
+
var t = r.getFieldValue(e, n);
|
|
2415
|
+
return typeof t == "object" && t;
|
|
2416
|
+
}, a = i(e);
|
|
2417
|
+
if (a) {
|
|
2418
|
+
var o = i(t);
|
|
2419
|
+
if (o && !c(a) && !h(a, o) && !Object.keys(a).every(function(e) {
|
|
2420
|
+
return r.getFieldValue(o, e) !== void 0;
|
|
2421
|
+
})) {
|
|
2422
|
+
var s = r.getFieldValue(e, "__typename") || r.getFieldValue(t, "__typename"), l = Q(n), u = `${s}.${l}`;
|
|
2423
|
+
if (!Mr.has(u)) {
|
|
2424
|
+
Mr.add(u);
|
|
2425
|
+
var d = [];
|
|
2426
|
+
!V(a) && !V(o) && [a, o].forEach(function(e) {
|
|
2427
|
+
var t = r.getFieldValue(e, "__typename");
|
|
2428
|
+
typeof t == "string" && !d.includes(t) && d.push(t);
|
|
2429
|
+
}), 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, M({}, a), M({}, o));
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
//#endregion
|
|
2435
|
+
//#region node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
|
|
2436
|
+
var Pr = function(t) {
|
|
2437
|
+
H(r, t);
|
|
2438
|
+
function r(n) {
|
|
2439
|
+
n === void 0 && (n = {});
|
|
2440
|
+
var r = t.call(this) || this;
|
|
2441
|
+
return r.watches = /* @__PURE__ */ new Set(), r.addTypenameTransform = new nt(ut), r.assumeImmutableResults = !0, r.makeVar = ar, r.txCount = 0, globalThis.__DEV__ !== !1 && (e(n, "addTypename", "InMemoryCache", "Please remove the `addTypename` option when initializing `InMemoryCache`."), e(n, "canonizeResults", "InMemoryCache", "Please remove the `canonizeResults` option when initializing `InMemoryCache`.")), r.config = An(n), r.addTypename = !!r.config.addTypename, r.policies = new xr({
|
|
2442
|
+
cache: r,
|
|
2443
|
+
dataIdFromObject: r.config.dataIdFromObject,
|
|
2444
|
+
possibleTypes: r.config.possibleTypes,
|
|
2445
|
+
typePolicies: r.config.typePolicies
|
|
2446
|
+
}), r.init(), r;
|
|
2447
|
+
}
|
|
2448
|
+
return r.prototype.init = function() {
|
|
2449
|
+
var e = this.data = new Vn.Root({
|
|
2450
|
+
policies: this.policies,
|
|
2451
|
+
resultCaching: this.config.resultCaching
|
|
2452
|
+
});
|
|
2453
|
+
this.optimisticData = e.stump, this.resetResultCache();
|
|
2454
|
+
}, r.prototype.resetResultCache = function(e) {
|
|
2455
|
+
var t = this, r = this.storeReader, i = this.config.fragments;
|
|
2456
|
+
this.addTypenameTransform.resetCache(), i?.resetCaches(), this.storeWriter = new Er(this, this.storeReader = new Zn({
|
|
2457
|
+
cache: this,
|
|
2458
|
+
addTypename: this.addTypename,
|
|
2459
|
+
resultCacheMaxSize: this.config.resultCacheMaxSize,
|
|
2460
|
+
canonizeResults: jn(this.config),
|
|
2461
|
+
canon: e ? void 0 : r && r.canon,
|
|
2462
|
+
fragments: i
|
|
2463
|
+
}), i), this.maybeBroadcastWatch = we(function(e, n) {
|
|
2464
|
+
return t.broadcastWatch(e, n);
|
|
2465
|
+
}, {
|
|
2466
|
+
max: this.config.resultCacheMaxSize || l["inMemoryCache.maybeBroadcastWatch"] || 5e3,
|
|
2467
|
+
makeCacheKey: function(e) {
|
|
2468
|
+
var r = e.optimistic ? t.optimisticData : t.data;
|
|
2469
|
+
if (qn(r)) {
|
|
2470
|
+
var i = e.optimistic, a = e.id, o = e.variables;
|
|
2471
|
+
return r.makeCacheKey(e.query, e.callback, n({
|
|
2472
|
+
optimistic: i,
|
|
2473
|
+
id: a,
|
|
2474
|
+
variables: o
|
|
2475
|
+
}));
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
}), new Set([this.data.group, this.optimisticData.group]).forEach(function(e) {
|
|
2479
|
+
return e.resetCaching();
|
|
2480
|
+
});
|
|
2481
|
+
}, r.prototype.restore = function(e) {
|
|
2482
|
+
return this.init(), e && this.data.replace(e), this;
|
|
2483
|
+
}, r.prototype.extract = function(e) {
|
|
2484
|
+
return e === void 0 && (e = !1), (e ? this.optimisticData : this.data).extract();
|
|
2485
|
+
}, r.prototype.read = function(t) {
|
|
2486
|
+
globalThis.__DEV__ !== !1 && e(t, "canonizeResults", "cache.read");
|
|
2487
|
+
var n = t.returnPartialData, r = n === void 0 ? !1 : n;
|
|
2488
|
+
try {
|
|
2489
|
+
return this.storeReader.diffQueryAgainstStore(M(M({}, t), {
|
|
2490
|
+
store: t.optimistic ? this.optimisticData : this.data,
|
|
2491
|
+
config: this.config,
|
|
2492
|
+
returnPartialData: r
|
|
2493
|
+
})).result || null;
|
|
2494
|
+
} catch (e) {
|
|
2495
|
+
if (e instanceof En) return null;
|
|
2496
|
+
throw e;
|
|
2497
|
+
}
|
|
2498
|
+
}, r.prototype.write = function(e) {
|
|
2499
|
+
try {
|
|
2500
|
+
return ++this.txCount, this.storeWriter.writeToStore(this.data, e);
|
|
2501
|
+
} finally {
|
|
2502
|
+
!--this.txCount && e.broadcast !== !1 && this.broadcastWatches();
|
|
2503
|
+
}
|
|
2504
|
+
}, r.prototype.modify = function(e) {
|
|
2505
|
+
if (Z.call(e, "id") && !e.id) return !1;
|
|
2506
|
+
var t = e.optimistic ? this.optimisticData : this.data;
|
|
2507
|
+
try {
|
|
2508
|
+
return ++this.txCount, t.modify(e.id || "ROOT_QUERY", e.fields);
|
|
2509
|
+
} finally {
|
|
2510
|
+
!--this.txCount && e.broadcast !== !1 && this.broadcastWatches();
|
|
2511
|
+
}
|
|
2512
|
+
}, r.prototype.diff = function(t) {
|
|
2513
|
+
return globalThis.__DEV__ !== !1 && e(t, "canonizeResults", "cache.diff"), this.storeReader.diffQueryAgainstStore(M(M({}, t), {
|
|
2514
|
+
store: t.optimistic ? this.optimisticData : this.data,
|
|
2515
|
+
rootId: t.id || "ROOT_QUERY",
|
|
2516
|
+
config: this.config
|
|
2517
|
+
}));
|
|
2518
|
+
}, r.prototype.watch = function(e) {
|
|
2519
|
+
var t = this;
|
|
2520
|
+
return this.watches.size || ir(this), this.watches.add(e), e.immediate && this.maybeBroadcastWatch(e), function() {
|
|
2521
|
+
t.watches.delete(e) && !t.watches.size && rr(t), t.maybeBroadcastWatch.forget(e);
|
|
2522
|
+
};
|
|
2523
|
+
}, r.prototype.gc = function(t) {
|
|
2524
|
+
globalThis.__DEV__ !== !1 && e(t || {}, "resetResultIdentities", "cache.gc", "First ensure all usages of `canonizeResults` are removed, then remove this option."), n.reset(), J.reset();
|
|
2525
|
+
var r = this.optimisticData.gc();
|
|
2526
|
+
return t && !this.txCount && (t.resetResultCache ? this.resetResultCache(t.resetResultIdentities) : t.resetResultIdentities && this.storeReader.resetCanon()), r;
|
|
2527
|
+
}, r.prototype.retain = function(e, t) {
|
|
2528
|
+
return (t ? this.optimisticData : this.data).retain(e);
|
|
2529
|
+
}, r.prototype.release = function(e, t) {
|
|
2530
|
+
return (t ? this.optimisticData : this.data).release(e);
|
|
2531
|
+
}, r.prototype.identify = function(e) {
|
|
2532
|
+
if (c(e)) return e.__ref;
|
|
2533
|
+
try {
|
|
2534
|
+
return this.policies.identify(e)[0];
|
|
2535
|
+
} catch (e) {
|
|
2536
|
+
globalThis.__DEV__ !== !1 && R.warn(e);
|
|
2537
|
+
}
|
|
2538
|
+
}, r.prototype.evict = function(e) {
|
|
2539
|
+
if (!e.id) {
|
|
2540
|
+
if (Z.call(e, "id")) return !1;
|
|
2541
|
+
e = M(M({}, e), { id: "ROOT_QUERY" });
|
|
2542
|
+
}
|
|
2543
|
+
try {
|
|
2544
|
+
return ++this.txCount, this.optimisticData.evict(e, this.data);
|
|
2545
|
+
} finally {
|
|
2546
|
+
!--this.txCount && e.broadcast !== !1 && this.broadcastWatches();
|
|
2547
|
+
}
|
|
2548
|
+
}, r.prototype.reset = function(e) {
|
|
2549
|
+
var t = this;
|
|
2550
|
+
return this.init(), n.reset(), e && e.discardWatches ? (this.watches.forEach(function(e) {
|
|
2551
|
+
return t.maybeBroadcastWatch.forget(e);
|
|
2552
|
+
}), this.watches.clear(), rr(this)) : this.broadcastWatches(), Promise.resolve();
|
|
2553
|
+
}, r.prototype.removeOptimistic = function(e) {
|
|
2554
|
+
var t = this.optimisticData.removeLayer(e);
|
|
2555
|
+
t !== this.optimisticData && (this.optimisticData = t, this.broadcastWatches());
|
|
2556
|
+
}, r.prototype.batch = function(e) {
|
|
2557
|
+
var t = this, n = e.update, r = e.optimistic, i = r === void 0 ? !0 : r, a = e.removeOptimistic, o = e.onWatchUpdated, s, c = function(e) {
|
|
2558
|
+
var r = t, i = r.data, a = r.optimisticData;
|
|
2559
|
+
++t.txCount, e && (t.data = t.optimisticData = e);
|
|
2560
|
+
try {
|
|
2561
|
+
return s = n(t);
|
|
2562
|
+
} finally {
|
|
2563
|
+
--t.txCount, t.data = i, t.optimisticData = a;
|
|
2564
|
+
}
|
|
2565
|
+
}, l = /* @__PURE__ */ new Set();
|
|
2566
|
+
return o && !this.txCount && this.broadcastWatches(M(M({}, e), { onWatchUpdated: function(e) {
|
|
2567
|
+
return l.add(e), !1;
|
|
2568
|
+
} })), 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(M(M({}, e), { onWatchUpdated: function(e, t) {
|
|
2569
|
+
var n = o.call(this, e, t);
|
|
2570
|
+
return n !== !1 && l.delete(e), n;
|
|
2571
|
+
} })), l.size && l.forEach(function(e) {
|
|
2572
|
+
return t.maybeBroadcastWatch.dirty(e);
|
|
2573
|
+
})) : this.broadcastWatches(e), s;
|
|
2574
|
+
}, r.prototype.performTransaction = function(e, t) {
|
|
2575
|
+
return this.batch({
|
|
2576
|
+
update: e,
|
|
2577
|
+
optimistic: t || t !== null
|
|
2578
|
+
});
|
|
2579
|
+
}, r.prototype.transformDocument = function(e) {
|
|
2580
|
+
return this.addTypenameToDocument(this.addFragmentsToDocument(e));
|
|
2581
|
+
}, r.prototype.fragmentMatches = function(e, t) {
|
|
2582
|
+
return this.policies.fragmentMatches(e, t);
|
|
2583
|
+
}, r.prototype.lookupFragment = function(e) {
|
|
2584
|
+
return this.config.fragments?.lookup(e) || null;
|
|
2585
|
+
}, r.prototype.broadcastWatches = function(e) {
|
|
2586
|
+
var t = this;
|
|
2587
|
+
this.txCount || this.watches.forEach(function(n) {
|
|
2588
|
+
return t.maybeBroadcastWatch(n, e);
|
|
2589
|
+
});
|
|
2590
|
+
}, r.prototype.addFragmentsToDocument = function(e) {
|
|
2591
|
+
var t = this.config.fragments;
|
|
2592
|
+
return t ? t.transform(e) : e;
|
|
2593
|
+
}, r.prototype.addTypenameToDocument = function(e) {
|
|
2594
|
+
return this.addTypename ? this.addTypenameTransform.transformDocument(e) : e;
|
|
2595
|
+
}, r.prototype.broadcastWatch = function(e, t) {
|
|
2596
|
+
var n = this, r = e.lastDiff, i = j("canonizeResults", function() {
|
|
2597
|
+
return n.diff(e);
|
|
2598
|
+
});
|
|
2599
|
+
t && (e.optimistic && typeof t.optimistic == "string" && (i.fromOptimisticTransaction = !0), t.onWatchUpdated && t.onWatchUpdated.call(this, e, i, r) === !1) || (!r || !h(r.result, i.result)) && e.callback(e.lastDiff = i, r);
|
|
2600
|
+
}, r;
|
|
2601
|
+
}(Tn);
|
|
2602
|
+
globalThis.__DEV__ !== !1 && (Pr.prototype.getMemoryInternals = x);
|
|
2603
|
+
//#endregion
|
|
2604
|
+
//#region node_modules/@apollo/client/core/QueryInfo.js
|
|
2605
|
+
var Fr = new (A ? WeakMap : Map)();
|
|
2606
|
+
function Ir(e, t) {
|
|
2607
|
+
var n = e[t];
|
|
2608
|
+
typeof n == "function" && (e[t] = function() {
|
|
2609
|
+
return Fr.set(e, (Fr.get(e) + 1) % 0x38d7ea4c68000), n.apply(this, arguments);
|
|
2610
|
+
});
|
|
2611
|
+
}
|
|
2612
|
+
var Lr = function() {
|
|
2613
|
+
function e(e, t) {
|
|
2614
|
+
t === void 0 && (t = e.generateQueryId()), this.queryId = t, this.document = null, this.lastRequestId = 1, this.stopped = !1, this.observableQuery = null;
|
|
2615
|
+
var n = this.cache = e.cache;
|
|
2616
|
+
Fr.has(n) || (Fr.set(n, 0), Ir(n, "evict"), Ir(n, "modify"), Ir(n, "reset"));
|
|
2617
|
+
}
|
|
2618
|
+
return e.prototype.init = function(e) {
|
|
2619
|
+
var t = e.networkStatus || O.loading;
|
|
2620
|
+
return this.variables && this.networkStatus !== O.loading && !h(this.variables, e.variables) && (t = O.setVariables), h(e.variables, this.variables) || (this.lastDiff = void 0, this.cancel()), Object.assign(this, {
|
|
2621
|
+
document: e.document,
|
|
2622
|
+
variables: e.variables,
|
|
2623
|
+
networkError: null,
|
|
2624
|
+
graphQLErrors: this.graphQLErrors || [],
|
|
2625
|
+
networkStatus: t
|
|
2626
|
+
}), e.observableQuery && this.setObservableQuery(e.observableQuery), e.lastRequestId && (this.lastRequestId = e.lastRequestId), this;
|
|
2627
|
+
}, e.prototype.resetDiff = function() {
|
|
2628
|
+
this.lastDiff = void 0;
|
|
2629
|
+
}, e.prototype.getDiff = function() {
|
|
2630
|
+
var e = this, t = this.getDiffOptions();
|
|
2631
|
+
if (this.lastDiff && h(t, this.lastDiff.options)) return this.lastDiff.diff;
|
|
2632
|
+
this.updateWatch(this.variables);
|
|
2633
|
+
var n = this.observableQuery;
|
|
2634
|
+
if (n && n.options.fetchPolicy === "no-cache") return { complete: !1 };
|
|
2635
|
+
var r = j("canonizeResults", function() {
|
|
2636
|
+
return e.cache.diff(t);
|
|
2637
|
+
});
|
|
2638
|
+
return this.updateLastDiff(r, t), r;
|
|
2639
|
+
}, e.prototype.updateLastDiff = function(e, t) {
|
|
2640
|
+
this.lastDiff = e ? {
|
|
2641
|
+
diff: e,
|
|
2642
|
+
options: t || this.getDiffOptions()
|
|
2643
|
+
} : void 0;
|
|
2644
|
+
}, e.prototype.getDiffOptions = function(e) {
|
|
2645
|
+
return e === void 0 && (e = this.variables), {
|
|
2646
|
+
query: this.document,
|
|
2647
|
+
variables: e,
|
|
2648
|
+
returnPartialData: !0,
|
|
2649
|
+
optimistic: !0,
|
|
2650
|
+
canonizeResults: this.observableQuery?.options.canonizeResults
|
|
2651
|
+
};
|
|
2652
|
+
}, e.prototype.setDiff = function(e) {
|
|
2653
|
+
var t = this, n, r = this.lastDiff && this.lastDiff.diff;
|
|
2654
|
+
e && !e.complete && j("getLastError", function() {
|
|
2655
|
+
return t.observableQuery?.getLastError();
|
|
2656
|
+
}) || (this.updateLastDiff(e), h(r && r.result, e && e.result) || (n = this.observableQuery) == null || n.scheduleNotify());
|
|
2657
|
+
}, e.prototype.setObservableQuery = function(e) {
|
|
2658
|
+
e !== this.observableQuery && (this.observableQuery = e, e && (e.queryInfo = this));
|
|
2659
|
+
}, e.prototype.stop = function() {
|
|
2660
|
+
var e;
|
|
2661
|
+
if (!this.stopped) {
|
|
2662
|
+
this.stopped = !0, (e = this.observableQuery) == null || e.resetNotifications(), this.cancel();
|
|
2663
|
+
var t = this.observableQuery;
|
|
2664
|
+
t && t.stopPolling();
|
|
2665
|
+
}
|
|
2666
|
+
}, e.prototype.cancel = function() {
|
|
2667
|
+
var e;
|
|
2668
|
+
(e = this.cancelWatch) == null || e.call(this), this.cancelWatch = void 0;
|
|
2669
|
+
}, e.prototype.updateWatch = function(e) {
|
|
2670
|
+
var t = this;
|
|
2671
|
+
e === void 0 && (e = this.variables);
|
|
2672
|
+
var n = this.observableQuery;
|
|
2673
|
+
if (!(n && n.options.fetchPolicy === "no-cache")) {
|
|
2674
|
+
var r = M(M({}, this.getDiffOptions(e)), {
|
|
2675
|
+
watcher: this,
|
|
2676
|
+
callback: function(e) {
|
|
2677
|
+
return t.setDiff(e);
|
|
2678
|
+
}
|
|
2679
|
+
});
|
|
2680
|
+
(!this.lastWatch || !h(r, this.lastWatch)) && (this.cancel(), this.cancelWatch = this.cache.watch(this.lastWatch = r));
|
|
2681
|
+
}
|
|
2682
|
+
}, e.prototype.resetLastWrite = function() {
|
|
2683
|
+
this.lastWrite = void 0;
|
|
2684
|
+
}, e.prototype.shouldWrite = function(e, t) {
|
|
2685
|
+
var n = this.lastWrite;
|
|
2686
|
+
return !(n && n.dmCount === Fr.get(this.cache) && h(t, n.variables) && h(e.data, n.result.data));
|
|
2687
|
+
}, e.prototype.markResult = function(e, t, n, r) {
|
|
2688
|
+
var i = this, a, o = new Y(), s = N(e.errors) ? e.errors.slice(0) : [];
|
|
2689
|
+
if ((a = this.observableQuery) == null || a.resetNotifications(), "incremental" in e && N(e.incremental)) e.data = Tt(this.getDiff().result, e);
|
|
2690
|
+
else if ("hasNext" in e && e.hasNext) {
|
|
2691
|
+
var c = this.getDiff();
|
|
2692
|
+
e.data = o.merge(c.result, e.data);
|
|
2693
|
+
}
|
|
2694
|
+
this.graphQLErrors = s, n.fetchPolicy === "no-cache" ? this.updateLastDiff({
|
|
2695
|
+
result: e.data,
|
|
2696
|
+
complete: !0
|
|
2697
|
+
}, this.getDiffOptions(n.variables)) : r !== 0 && (Rr(e, n.errorPolicy) ? this.cache.performTransaction(function(a) {
|
|
2698
|
+
if (i.shouldWrite(e, n.variables)) a.writeQuery({
|
|
2699
|
+
query: t,
|
|
2700
|
+
data: e.data,
|
|
2701
|
+
variables: n.variables,
|
|
2702
|
+
overwrite: r === 1
|
|
2703
|
+
}), i.lastWrite = {
|
|
2704
|
+
result: e,
|
|
2705
|
+
variables: n.variables,
|
|
2706
|
+
dmCount: Fr.get(i.cache)
|
|
2707
|
+
};
|
|
2708
|
+
else if (i.lastDiff && i.lastDiff.diff.complete) {
|
|
2709
|
+
e.data = i.lastDiff.diff.result;
|
|
2710
|
+
return;
|
|
2711
|
+
}
|
|
2712
|
+
var o = i.getDiffOptions(n.variables), s = j("canonizeResults", function() {
|
|
2713
|
+
return a.diff(o);
|
|
2714
|
+
});
|
|
2715
|
+
!i.stopped && h(i.variables, n.variables) && i.updateWatch(n.variables), i.updateLastDiff(s, o), s.complete && (e.data = s.result);
|
|
2716
|
+
}) : this.lastWrite = void 0);
|
|
2717
|
+
}, e.prototype.markReady = function() {
|
|
2718
|
+
return this.networkError = null, this.networkStatus = O.ready;
|
|
2719
|
+
}, e.prototype.markError = function(e) {
|
|
2720
|
+
var t;
|
|
2721
|
+
return this.networkStatus = O.error, this.lastWrite = void 0, (t = this.observableQuery) == null || t.resetNotifications(), e.graphQLErrors && (this.graphQLErrors = e.graphQLErrors), e.networkError && (this.networkError = e.networkError), e;
|
|
2722
|
+
}, e;
|
|
2723
|
+
}();
|
|
2724
|
+
function Rr(e, t) {
|
|
2725
|
+
t === void 0 && (t = "none");
|
|
2726
|
+
var n = t === "ignore" || t === "all", r = !Et(e);
|
|
2727
|
+
return !r && n && e.data && (r = !0), r;
|
|
2728
|
+
}
|
|
2729
|
+
//#endregion
|
|
2730
|
+
//#region node_modules/@apollo/client/core/QueryManager.js
|
|
2731
|
+
var zr = Object.prototype.hasOwnProperty, Br = Object.create(null), Vr = function() {
|
|
2732
|
+
function e(e) {
|
|
2733
|
+
var t = this;
|
|
2734
|
+
this.clientAwareness = {}, this.queries = /* @__PURE__ */ new Map(), this.fetchCancelFns = /* @__PURE__ */ new Map(), this.transformCache = new m(l["queryManager.getDocumentInfo"] || 2e3), this.queryIdCounter = 1, this.requestIdCounter = 1, this.mutationIdCounter = 1, this.inFlightLinkObservables = new v(!1), this.noCacheWarningsByQueryId = /* @__PURE__ */ new Set();
|
|
2735
|
+
var n = new nt(function(e) {
|
|
2736
|
+
return t.cache.transformDocument(e);
|
|
2737
|
+
}, { cache: !1 });
|
|
2738
|
+
this.cache = e.cache, this.link = e.link, this.defaultOptions = e.defaultOptions, this.queryDeduplication = e.queryDeduplication, this.clientAwareness = e.clientAwareness, this.localState = e.localState, this.ssrMode = e.ssrMode, this.assumeImmutableResults = e.assumeImmutableResults, this.dataMasking = e.dataMasking;
|
|
2739
|
+
var r = e.documentTransform;
|
|
2740
|
+
this.documentTransform = r ? n.concat(r).concat(n) : n, this.defaultContext = e.defaultContext || Object.create(null), (this.onBroadcast = e.onBroadcast) && (this.mutationStore = Object.create(null));
|
|
2741
|
+
}
|
|
2742
|
+
return e.prototype.stop = function() {
|
|
2743
|
+
var e = this;
|
|
2744
|
+
this.queries.forEach(function(t, n) {
|
|
2745
|
+
e.stopQueryNoBroadcast(n);
|
|
2746
|
+
}), this.cancelPendingFetches(B(35));
|
|
2747
|
+
}, e.prototype.cancelPendingFetches = function(e) {
|
|
2748
|
+
this.fetchCancelFns.forEach(function(t) {
|
|
2749
|
+
return t(e);
|
|
2750
|
+
}), this.fetchCancelFns.clear();
|
|
2751
|
+
}, e.prototype.mutate = function(e) {
|
|
2752
|
+
return L(this, arguments, void 0, function(e) {
|
|
2753
|
+
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, f = e.awaitRefetchQueries, p = f === void 0 ? !1 : f, m = e.update, h = e.onQueryUpdated, g = e.fetchPolicy, _ = g === void 0 ? this.defaultOptions.mutate?.fetchPolicy || "network-only" : g, v = e.errorPolicy, y = v === void 0 ? this.defaultOptions.mutate?.errorPolicy || "none" : v, b = e.keepRootFields, x = e.context;
|
|
2754
|
+
return P(this, function(e) {
|
|
2755
|
+
switch (e.label) {
|
|
2756
|
+
case 0: return R(o, 36), R(_ === "network-only" || _ === "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, x)] : [3, 2];
|
|
2757
|
+
case 1: s = e.sent(), e.label = 2;
|
|
2758
|
+
case 2: return r = this.mutationStore && (this.mutationStore[t] = {
|
|
2759
|
+
mutation: o,
|
|
2760
|
+
variables: s,
|
|
2761
|
+
loading: !0,
|
|
2762
|
+
error: null
|
|
2763
|
+
}), i = c && this.markMutationOptimistic(c, {
|
|
2764
|
+
mutationId: t,
|
|
2765
|
+
document: o,
|
|
2766
|
+
variables: s,
|
|
2767
|
+
fetchPolicy: _,
|
|
2768
|
+
errorPolicy: y,
|
|
2769
|
+
context: x,
|
|
2770
|
+
updateQueries: l,
|
|
2771
|
+
update: m,
|
|
2772
|
+
keepRootFields: b
|
|
2773
|
+
}), this.broadcastQueries(), a = this, [2, new Promise(function(e, n) {
|
|
2774
|
+
return vt(a.getObservableFromLink(o, M(M({}, x), { optimisticResponse: i ? c : void 0 }), s, {}, !1), function(e) {
|
|
2775
|
+
if (Et(e) && y === "none") throw new k({ graphQLErrors: Dt(e) });
|
|
2776
|
+
r && (r.loading = !1, r.error = null);
|
|
2777
|
+
var n = M({}, e);
|
|
2778
|
+
return typeof d == "function" && (d = d(n)), y === "ignore" && Et(n) && delete n.errors, a.markMutationResult({
|
|
2779
|
+
mutationId: t,
|
|
2780
|
+
result: n,
|
|
2781
|
+
document: o,
|
|
2782
|
+
variables: s,
|
|
2783
|
+
fetchPolicy: _,
|
|
2784
|
+
errorPolicy: y,
|
|
2785
|
+
context: x,
|
|
2786
|
+
update: m,
|
|
2787
|
+
updateQueries: l,
|
|
2788
|
+
awaitRefetchQueries: p,
|
|
2789
|
+
refetchQueries: d,
|
|
2790
|
+
removeOptimistic: i ? t : void 0,
|
|
2791
|
+
onQueryUpdated: h,
|
|
2792
|
+
keepRootFields: b
|
|
2793
|
+
});
|
|
2794
|
+
}).subscribe({
|
|
2795
|
+
next: function(n) {
|
|
2796
|
+
a.broadcastQueries(), (!("hasNext" in n) || n.hasNext === !1) && e(M(M({}, n), { data: a.maskOperation({
|
|
2797
|
+
document: o,
|
|
2798
|
+
data: n.data,
|
|
2799
|
+
fetchPolicy: _,
|
|
2800
|
+
id: t
|
|
2801
|
+
}) }));
|
|
2802
|
+
},
|
|
2803
|
+
error: function(e) {
|
|
2804
|
+
r && (r.loading = !1, r.error = e), i && a.cache.removeOptimistic(t), a.broadcastQueries(), n(e instanceof k ? e : new k({ networkError: e }));
|
|
2805
|
+
}
|
|
2806
|
+
});
|
|
2807
|
+
})];
|
|
2808
|
+
}
|
|
2809
|
+
});
|
|
2810
|
+
});
|
|
2811
|
+
}, e.prototype.markMutationResult = function(e, t) {
|
|
2812
|
+
var n = this;
|
|
2813
|
+
t === void 0 && (t = this.cache);
|
|
2814
|
+
var r = e.result, i = [], a = e.fetchPolicy === "no-cache";
|
|
2815
|
+
if (!a && Rr(r, e.errorPolicy)) {
|
|
2816
|
+
if (xt(r) || i.push({
|
|
2817
|
+
result: r.data,
|
|
2818
|
+
dataId: "ROOT_MUTATION",
|
|
2819
|
+
query: e.document,
|
|
2820
|
+
variables: e.variables
|
|
2821
|
+
}), xt(r) && N(r.incremental)) {
|
|
2822
|
+
var o = t.diff({
|
|
2823
|
+
id: "ROOT_MUTATION",
|
|
2824
|
+
query: this.getDocumentInfo(e.document).asQuery,
|
|
2825
|
+
variables: e.variables,
|
|
2826
|
+
optimistic: !1,
|
|
2827
|
+
returnPartialData: !0
|
|
2828
|
+
}), s = void 0;
|
|
2829
|
+
o.result && (s = Tt(o.result, r)), s !== void 0 && (r.data = s, i.push({
|
|
2830
|
+
result: s,
|
|
2831
|
+
dataId: "ROOT_MUTATION",
|
|
2832
|
+
query: e.document,
|
|
2833
|
+
variables: e.variables
|
|
2834
|
+
}));
|
|
2835
|
+
}
|
|
2836
|
+
var c = e.updateQueries;
|
|
2837
|
+
c && this.queries.forEach(function(e, a) {
|
|
2838
|
+
var o = e.observableQuery, s = o && o.queryName;
|
|
2839
|
+
if (!(!s || !zr.call(c, s))) {
|
|
2840
|
+
var l = c[s], u = n.queries.get(a), d = u.document, f = u.variables, p = t.diff({
|
|
2841
|
+
query: d,
|
|
2842
|
+
variables: f,
|
|
2843
|
+
returnPartialData: !0,
|
|
2844
|
+
optimistic: !1
|
|
2845
|
+
}), m = p.result;
|
|
2846
|
+
if (p.complete && m) {
|
|
2847
|
+
var h = l(m, {
|
|
2848
|
+
mutationResult: r,
|
|
2849
|
+
queryName: d && Ie(d) || void 0,
|
|
2850
|
+
queryVariables: f
|
|
2851
|
+
});
|
|
2852
|
+
h && i.push({
|
|
2853
|
+
result: h,
|
|
2854
|
+
dataId: "ROOT_QUERY",
|
|
2855
|
+
query: d,
|
|
2856
|
+
variables: f
|
|
2857
|
+
});
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2862
|
+
if (i.length > 0 || (e.refetchQueries || "").length > 0 || e.update || e.onQueryUpdated || e.removeOptimistic) {
|
|
2863
|
+
var l = [];
|
|
2864
|
+
if (this.refetchQueries({
|
|
2865
|
+
updateCache: function(t) {
|
|
2866
|
+
a || i.forEach(function(e) {
|
|
2867
|
+
return t.write(e);
|
|
2868
|
+
});
|
|
2869
|
+
var o = e.update, s = !Ct(r) || xt(r) && !r.hasNext;
|
|
2870
|
+
if (o) {
|
|
2871
|
+
if (!a) {
|
|
2872
|
+
var c = t.diff({
|
|
2873
|
+
id: "ROOT_MUTATION",
|
|
2874
|
+
query: n.getDocumentInfo(e.document).asQuery,
|
|
2875
|
+
variables: e.variables,
|
|
2876
|
+
optimistic: !1,
|
|
2877
|
+
returnPartialData: !0
|
|
2878
|
+
});
|
|
2879
|
+
c.complete && (r = M(M({}, r), { data: c.result }), "incremental" in r && delete r.incremental, "hasNext" in r && delete r.hasNext);
|
|
2880
|
+
}
|
|
2881
|
+
s && o(t, r, {
|
|
2882
|
+
context: e.context,
|
|
2883
|
+
variables: e.variables
|
|
2884
|
+
});
|
|
2885
|
+
}
|
|
2886
|
+
!a && !e.keepRootFields && s && t.modify({
|
|
2887
|
+
id: "ROOT_MUTATION",
|
|
2888
|
+
fields: function(e, t) {
|
|
2889
|
+
var n = t.fieldName, r = t.DELETE;
|
|
2890
|
+
return n === "__typename" ? e : r;
|
|
2891
|
+
}
|
|
2892
|
+
});
|
|
2893
|
+
},
|
|
2894
|
+
include: e.refetchQueries,
|
|
2895
|
+
optimistic: !1,
|
|
2896
|
+
removeOptimistic: e.removeOptimistic,
|
|
2897
|
+
onQueryUpdated: e.onQueryUpdated || null
|
|
2898
|
+
}).forEach(function(e) {
|
|
2899
|
+
return l.push(e);
|
|
2900
|
+
}), e.awaitRefetchQueries || e.onQueryUpdated) return Promise.all(l).then(function() {
|
|
2901
|
+
return r;
|
|
2902
|
+
});
|
|
2903
|
+
}
|
|
2904
|
+
return Promise.resolve(r);
|
|
2905
|
+
}, e.prototype.markMutationOptimistic = function(e, t) {
|
|
2906
|
+
var n = this, r = typeof e == "function" ? e(t.variables, { IGNORE: Br }) : e;
|
|
2907
|
+
return r === Br ? !1 : (this.cache.recordOptimisticTransaction(function(e) {
|
|
2908
|
+
try {
|
|
2909
|
+
n.markMutationResult(M(M({}, t), { result: { data: r } }), e);
|
|
2910
|
+
} catch (e) {
|
|
2911
|
+
globalThis.__DEV__ !== !1 && R.error(e);
|
|
2912
|
+
}
|
|
2913
|
+
}, t.mutationId), !0);
|
|
2914
|
+
}, e.prototype.fetchQuery = function(e, t, n) {
|
|
2915
|
+
return this.fetchConcastWithInfo(this.getOrCreateQuery(e), t, n).concast.promise;
|
|
2916
|
+
}, e.prototype.getQueryStore = function() {
|
|
2917
|
+
var e = Object.create(null);
|
|
2918
|
+
return this.queries.forEach(function(t, n) {
|
|
2919
|
+
e[n] = {
|
|
2920
|
+
variables: t.variables,
|
|
2921
|
+
networkStatus: t.networkStatus,
|
|
2922
|
+
networkError: t.networkError,
|
|
2923
|
+
graphQLErrors: t.graphQLErrors
|
|
2924
|
+
};
|
|
2925
|
+
}), e;
|
|
2926
|
+
}, e.prototype.resetErrors = function(e) {
|
|
2927
|
+
var t = this.queries.get(e);
|
|
2928
|
+
t && (t.networkError = void 0, t.graphQLErrors = []);
|
|
2929
|
+
}, e.prototype.transform = function(e) {
|
|
2930
|
+
return this.documentTransform.transformDocument(e);
|
|
2931
|
+
}, e.prototype.getDocumentInfo = function(e) {
|
|
2932
|
+
var t = this.transformCache;
|
|
2933
|
+
if (!t.has(e)) {
|
|
2934
|
+
var n = {
|
|
2935
|
+
hasClientExports: g(e),
|
|
2936
|
+
hasForcedResolvers: this.localState.shouldForceResolvers(e),
|
|
2937
|
+
hasNonreactiveDirective: se(["nonreactive"], e),
|
|
2938
|
+
nonReactiveQuery: pt(e),
|
|
2939
|
+
clientQuery: this.localState.clientQuery(e),
|
|
2940
|
+
serverQuery: lt([
|
|
2941
|
+
{
|
|
2942
|
+
name: "client",
|
|
2943
|
+
remove: !0
|
|
2944
|
+
},
|
|
2945
|
+
{ name: "connection" },
|
|
2946
|
+
{ name: "nonreactive" },
|
|
2947
|
+
{ name: "unmask" }
|
|
2948
|
+
], e),
|
|
2949
|
+
defaultVars: ke(le(e)),
|
|
2950
|
+
asQuery: M(M({}, e), { definitions: e.definitions.map(function(e) {
|
|
2951
|
+
return e.kind === "OperationDefinition" && e.operation !== "query" ? M(M({}, e), { operation: "query" }) : e;
|
|
2952
|
+
}) })
|
|
2953
|
+
};
|
|
2954
|
+
t.set(e, n);
|
|
2955
|
+
}
|
|
2956
|
+
return t.get(e);
|
|
2957
|
+
}, e.prototype.getVariables = function(e, t) {
|
|
2958
|
+
return M(M({}, this.getDocumentInfo(e).defaultVars), t);
|
|
2959
|
+
}, e.prototype.watchQuery = function(e) {
|
|
2960
|
+
var t = this.transform(e.query);
|
|
2961
|
+
e = M(M({}, e), { variables: this.getVariables(t, e.variables) }), e.notifyOnNetworkStatusChange === void 0 && (e.notifyOnNetworkStatusChange = !1);
|
|
2962
|
+
var n = new Lr(this), r = new Be({
|
|
2963
|
+
queryManager: this,
|
|
2964
|
+
queryInfo: n,
|
|
2965
|
+
options: e
|
|
2966
|
+
});
|
|
2967
|
+
return r.lastQuery = t, Be.inactiveOnCreation.getValue() || this.queries.set(r.queryId, n), n.init({
|
|
2968
|
+
document: t,
|
|
2969
|
+
observableQuery: r,
|
|
2970
|
+
variables: r.variables
|
|
2971
|
+
}), r;
|
|
2972
|
+
}, e.prototype.query = function(e, t) {
|
|
2973
|
+
var n = this;
|
|
2974
|
+
t === void 0 && (t = this.generateQueryId()), R(e.query, 38), R(e.query.kind === "Document", 39), R(!e.returnPartialData, 40), R(!e.pollInterval, 41);
|
|
2975
|
+
var r = this.transform(e.query);
|
|
2976
|
+
return this.fetchQuery(t, M(M({}, e), { query: r })).then(function(i) {
|
|
2977
|
+
return i && M(M({}, i), { data: n.maskOperation({
|
|
2978
|
+
document: r,
|
|
2979
|
+
data: i.data,
|
|
2980
|
+
fetchPolicy: e.fetchPolicy,
|
|
2981
|
+
id: t
|
|
2982
|
+
}) });
|
|
2983
|
+
}).finally(function() {
|
|
2984
|
+
return n.stopQuery(t);
|
|
2985
|
+
});
|
|
2986
|
+
}, e.prototype.generateQueryId = function() {
|
|
2987
|
+
return String(this.queryIdCounter++);
|
|
2988
|
+
}, e.prototype.generateRequestId = function() {
|
|
2989
|
+
return this.requestIdCounter++;
|
|
2990
|
+
}, e.prototype.generateMutationId = function() {
|
|
2991
|
+
return String(this.mutationIdCounter++);
|
|
2992
|
+
}, e.prototype.stopQueryInStore = function(e) {
|
|
2993
|
+
this.stopQueryInStoreNoBroadcast(e), this.broadcastQueries();
|
|
2994
|
+
}, e.prototype.stopQueryInStoreNoBroadcast = function(e) {
|
|
2995
|
+
var t = this.queries.get(e);
|
|
2996
|
+
t && t.stop();
|
|
2997
|
+
}, e.prototype.clearStore = function(e) {
|
|
2998
|
+
return e === void 0 && (e = { discardWatches: !0 }), this.cancelPendingFetches(B(42)), this.queries.forEach(function(e) {
|
|
2999
|
+
e.observableQuery ? e.networkStatus = O.loading : e.stop();
|
|
3000
|
+
}), this.mutationStore && (this.mutationStore = Object.create(null)), this.cache.reset(e);
|
|
3001
|
+
}, e.prototype.getObservableQueries = function(e) {
|
|
3002
|
+
var t = this;
|
|
3003
|
+
e === void 0 && (e = "active");
|
|
3004
|
+
var n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
3005
|
+
return Array.isArray(e) && e.forEach(function(e) {
|
|
3006
|
+
if (typeof e == "string") r.set(e, e), i.set(e, !1);
|
|
3007
|
+
else if (o(e)) {
|
|
3008
|
+
var n = J(t.transform(e));
|
|
3009
|
+
r.set(n, Ie(e)), i.set(n, !1);
|
|
3010
|
+
} else p(e) && e.query && a.add(e);
|
|
3011
|
+
}), this.queries.forEach(function(t, r) {
|
|
3012
|
+
var a = t.observableQuery, o = t.document;
|
|
3013
|
+
if (a) {
|
|
3014
|
+
if (e === "all") {
|
|
3015
|
+
n.set(r, a);
|
|
3016
|
+
return;
|
|
3017
|
+
}
|
|
3018
|
+
var s = a.queryName;
|
|
3019
|
+
if (a.options.fetchPolicy === "standby" || e === "active" && !a.hasObservers()) return;
|
|
3020
|
+
(e === "active" || s && i.has(s) || o && i.has(J(o))) && (n.set(r, a), s && i.set(s, !0), o && i.set(J(o), !0));
|
|
3021
|
+
}
|
|
3022
|
+
}), a.size && a.forEach(function(e) {
|
|
3023
|
+
var r = ue("legacyOneTimeQuery"), i = t.getOrCreateQuery(r).init({
|
|
3024
|
+
document: e.query,
|
|
3025
|
+
variables: e.variables
|
|
3026
|
+
}), a = new Be({
|
|
3027
|
+
queryManager: t,
|
|
3028
|
+
queryInfo: i,
|
|
3029
|
+
options: M(M({}, e), { fetchPolicy: "network-only" })
|
|
3030
|
+
});
|
|
3031
|
+
R(a.queryId === r), i.setObservableQuery(a), n.set(r, a);
|
|
3032
|
+
}), globalThis.__DEV__ !== !1 && i.size && i.forEach(function(e, t) {
|
|
3033
|
+
if (!e) {
|
|
3034
|
+
var n = r.get(t);
|
|
3035
|
+
n ? globalThis.__DEV__ !== !1 && R.warn(43, n) : globalThis.__DEV__ !== !1 && R.warn(44);
|
|
3036
|
+
}
|
|
3037
|
+
}), n;
|
|
3038
|
+
}, e.prototype.reFetchObservableQueries = function(e) {
|
|
3039
|
+
var t = this;
|
|
3040
|
+
e === void 0 && (e = !1);
|
|
3041
|
+
var n = [];
|
|
3042
|
+
return this.getObservableQueries(e ? "all" : "active").forEach(function(r, i) {
|
|
3043
|
+
var a = r.options.fetchPolicy;
|
|
3044
|
+
j("resetLastResults", function() {
|
|
3045
|
+
return r.resetLastResults();
|
|
3046
|
+
}), (e || a !== "standby" && a !== "cache-only") && n.push(r.refetch()), (t.queries.get(i) || r.queryInfo).setDiff(null);
|
|
3047
|
+
}), this.broadcastQueries(), Promise.all(n);
|
|
3048
|
+
}, e.prototype.startGraphQLSubscription = function(e) {
|
|
3049
|
+
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, d = l === void 0 ? {} : l;
|
|
3050
|
+
n = this.transform(n), r = this.getVariables(n, r);
|
|
3051
|
+
var f = function(e) {
|
|
3052
|
+
return t.getObservableFromLink(n, c, e, d).map(function(r) {
|
|
3053
|
+
i !== "no-cache" && (Rr(r, o) && t.cache.write({
|
|
3054
|
+
query: n,
|
|
3055
|
+
result: r.data,
|
|
3056
|
+
dataId: "ROOT_SUBSCRIPTION",
|
|
3057
|
+
variables: e
|
|
3058
|
+
}), t.broadcastQueries());
|
|
3059
|
+
var a = Et(r), s = _(r);
|
|
3060
|
+
if (a || s) {
|
|
3061
|
+
var c = {};
|
|
3062
|
+
if (a && (c.graphQLErrors = r.errors), s && (c.protocolErrors = r.extensions[u]), o === "none" || s) throw new k(c);
|
|
3063
|
+
}
|
|
3064
|
+
return o === "ignore" && delete r.errors, r;
|
|
3065
|
+
});
|
|
3066
|
+
};
|
|
3067
|
+
if (this.getDocumentInfo(n).hasClientExports) {
|
|
3068
|
+
var p = this.localState.addExportedVariables(n, r, c).then(f);
|
|
3069
|
+
return new z(function(e) {
|
|
3070
|
+
var t = null;
|
|
3071
|
+
return p.then(function(n) {
|
|
3072
|
+
return t = n.subscribe(e);
|
|
3073
|
+
}, e.error), function() {
|
|
3074
|
+
return t && t.unsubscribe();
|
|
3075
|
+
};
|
|
3076
|
+
});
|
|
3077
|
+
}
|
|
3078
|
+
return f(r);
|
|
3079
|
+
}, e.prototype.stopQuery = function(e) {
|
|
3080
|
+
this.stopQueryNoBroadcast(e), this.broadcastQueries();
|
|
3081
|
+
}, e.prototype.stopQueryNoBroadcast = function(e) {
|
|
3082
|
+
this.stopQueryInStoreNoBroadcast(e), this.removeQuery(e);
|
|
3083
|
+
}, e.prototype.removeQuery = function(e) {
|
|
3084
|
+
var t;
|
|
3085
|
+
this.fetchCancelFns.delete(e), this.queries.has(e) && ((t = this.queries.get(e)) == null || t.stop(), this.queries.delete(e));
|
|
3086
|
+
}, e.prototype.broadcastQueries = function() {
|
|
3087
|
+
this.onBroadcast && this.onBroadcast(), this.queries.forEach(function(e) {
|
|
3088
|
+
return e.observableQuery?.notify();
|
|
3089
|
+
});
|
|
3090
|
+
}, e.prototype.getLocalState = function() {
|
|
3091
|
+
return this.localState;
|
|
3092
|
+
}, e.prototype.getObservableFromLink = function(e, t, r, i, a) {
|
|
3093
|
+
var o = this;
|
|
3094
|
+
a === void 0 && (a = t?.queryDeduplication ?? this.queryDeduplication);
|
|
3095
|
+
var s, c = this.getDocumentInfo(e), l = c.serverQuery, u = c.clientQuery;
|
|
3096
|
+
if (l) {
|
|
3097
|
+
var d = this, f = d.inFlightLinkObservables, p = d.link, m = {
|
|
3098
|
+
query: l,
|
|
3099
|
+
variables: r,
|
|
3100
|
+
operationName: Ie(l) || void 0,
|
|
3101
|
+
context: this.prepareContext(M(M({}, t), { forceFetch: !a })),
|
|
3102
|
+
extensions: i
|
|
3103
|
+
};
|
|
3104
|
+
if (t = m.context, a) {
|
|
3105
|
+
var h = J(l), g = n(r), _ = f.lookup(h, g);
|
|
3106
|
+
if (s = _.observable, !s) {
|
|
3107
|
+
var v = new bt([Rt(p, m)]);
|
|
3108
|
+
s = _.observable = v, v.beforeNext(function e(t, n) {
|
|
3109
|
+
t === "next" && "hasNext" in n && n.hasNext ? v.beforeNext(e) : f.remove(h, g);
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
} else s = new bt([Rt(p, m)]);
|
|
3113
|
+
} else s = new bt([z.of({ data: {} })]), t = this.prepareContext(t);
|
|
3114
|
+
return u && (s = vt(s, function(e) {
|
|
3115
|
+
return o.localState.runResolvers({
|
|
3116
|
+
document: u,
|
|
3117
|
+
remoteResult: e,
|
|
3118
|
+
context: t,
|
|
3119
|
+
variables: r
|
|
3120
|
+
});
|
|
3121
|
+
})), s;
|
|
3122
|
+
}, e.prototype.getResultsFromLink = function(e, t, n) {
|
|
3123
|
+
var r = e.lastRequestId = this.generateRequestId(), i = this.cache.transformForLink(n.query);
|
|
3124
|
+
return vt(this.getObservableFromLink(i, n.context, n.variables), function(a) {
|
|
3125
|
+
var o = Dt(a), s = o.length > 0, c = n.errorPolicy;
|
|
3126
|
+
if (r >= e.lastRequestId) {
|
|
3127
|
+
if (s && c === "none") throw e.markError(new k({ graphQLErrors: o }));
|
|
3128
|
+
e.markResult(a, i, n, t), e.markReady();
|
|
3129
|
+
}
|
|
3130
|
+
var l = {
|
|
3131
|
+
data: a.data,
|
|
3132
|
+
loading: !1,
|
|
3133
|
+
networkStatus: O.ready
|
|
3134
|
+
};
|
|
3135
|
+
return s && c === "none" && (l.data = void 0), s && c !== "ignore" && (l.errors = o, l.networkStatus = O.error), l;
|
|
3136
|
+
}, function(t) {
|
|
3137
|
+
var n = Ae(t) ? t : new k({ networkError: t });
|
|
3138
|
+
throw r >= e.lastRequestId && e.markError(n), n;
|
|
3139
|
+
});
|
|
3140
|
+
}, e.prototype.fetchConcastWithInfo = function(e, t, n, r) {
|
|
3141
|
+
var i = this;
|
|
3142
|
+
n === void 0 && (n = O.loading), r === void 0 && (r = t.query);
|
|
3143
|
+
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, m = p === void 0 ? !1 : p, h = t.context, g = Object.assign({}, t, {
|
|
3144
|
+
query: r,
|
|
3145
|
+
variables: a,
|
|
3146
|
+
fetchPolicy: c,
|
|
3147
|
+
errorPolicy: u,
|
|
3148
|
+
returnPartialData: f,
|
|
3149
|
+
notifyOnNetworkStatusChange: m,
|
|
3150
|
+
context: h === void 0 ? {} : h
|
|
3151
|
+
}), _ = function(r) {
|
|
3152
|
+
g.variables = r;
|
|
3153
|
+
var a = i.fetchQueryByPolicy(e, g, n);
|
|
3154
|
+
return g.fetchPolicy !== "standby" && a.sources.length > 0 && e.observableQuery && e.observableQuery.applyNextFetchPolicy("after-fetch", t), a;
|
|
3155
|
+
}, v = function() {
|
|
3156
|
+
return i.fetchCancelFns.delete(e.queryId);
|
|
3157
|
+
};
|
|
3158
|
+
this.fetchCancelFns.set(e.queryId, function(e) {
|
|
3159
|
+
v(), setTimeout(function() {
|
|
3160
|
+
return y.cancel(e);
|
|
3161
|
+
});
|
|
3162
|
+
});
|
|
3163
|
+
var y, b;
|
|
3164
|
+
if (this.getDocumentInfo(g.query).hasClientExports) y = new bt(this.localState.addExportedVariables(g.query, g.variables, g.context).then(_).then(function(e) {
|
|
3165
|
+
return e.sources;
|
|
3166
|
+
})), b = !0;
|
|
3167
|
+
else {
|
|
3168
|
+
var x = _(g.variables);
|
|
3169
|
+
b = x.fromLink, y = new bt(x.sources);
|
|
3170
|
+
}
|
|
3171
|
+
return y.promise.then(v, v), {
|
|
3172
|
+
concast: y,
|
|
3173
|
+
fromLink: b
|
|
3174
|
+
};
|
|
3175
|
+
}, e.prototype.refetchQueries = function(e) {
|
|
3176
|
+
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 ? ue("refetchQueries") : void 0 : o, c = e.onQueryUpdated, l = /* @__PURE__ */ new Map();
|
|
3177
|
+
r && this.getObservableQueries(r).forEach(function(e, n) {
|
|
3178
|
+
l.set(n, {
|
|
3179
|
+
oq: e,
|
|
3180
|
+
lastDiff: (t.queries.get(n) || e.queryInfo).getDiff()
|
|
3181
|
+
});
|
|
3182
|
+
});
|
|
3183
|
+
var u = /* @__PURE__ */ new Map();
|
|
3184
|
+
return n && this.cache.batch({
|
|
3185
|
+
update: n,
|
|
3186
|
+
optimistic: a && s || !1,
|
|
3187
|
+
removeOptimistic: s,
|
|
3188
|
+
onWatchUpdated: function(e, t, n) {
|
|
3189
|
+
var r = e.watcher instanceof Lr && e.watcher.observableQuery;
|
|
3190
|
+
if (r) {
|
|
3191
|
+
if (c) {
|
|
3192
|
+
l.delete(r.queryId);
|
|
3193
|
+
var i = c(r, t, n);
|
|
3194
|
+
return i === !0 && (i = r.refetch()), i !== !1 && u.set(r, i), i;
|
|
3195
|
+
}
|
|
3196
|
+
c !== null && l.set(r.queryId, {
|
|
3197
|
+
oq: r,
|
|
3198
|
+
lastDiff: n,
|
|
3199
|
+
diff: t
|
|
3200
|
+
});
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
}), l.size && l.forEach(function(e, n) {
|
|
3204
|
+
var r = e.oq, i = e.lastDiff, a = e.diff, o;
|
|
3205
|
+
c && (a || (a = j("canonizeResults", function() {
|
|
3206
|
+
return t.cache.diff(r.queryInfo.getDiffOptions());
|
|
3207
|
+
})), o = c(r, a, i)), (!c || o === !0) && (o = r.refetch()), o !== !1 && u.set(r, o), n.indexOf("legacyOneTimeQuery") >= 0 && t.stopQueryNoBroadcast(n);
|
|
3208
|
+
}), s && this.cache.removeOptimistic(s), u;
|
|
3209
|
+
}, e.prototype.maskOperation = function(e) {
|
|
3210
|
+
var t = e.document, n = e.data;
|
|
3211
|
+
if (globalThis.__DEV__ !== !1) {
|
|
3212
|
+
var r = e.fetchPolicy, i = e.id, a = le(t)?.operation, o = (a?.[0] ?? "o") + i;
|
|
3213
|
+
this.dataMasking && r === "no-cache" && !ae(t) && !this.noCacheWarningsByQueryId.has(o) && (this.noCacheWarningsByQueryId.add(o), globalThis.__DEV__ !== !1 && R.warn(45, Ie(t) ?? `Unnamed ${a ?? "operation"}`));
|
|
3214
|
+
}
|
|
3215
|
+
return this.dataMasking ? wn(n, t, this.cache) : n;
|
|
3216
|
+
}, e.prototype.maskFragment = function(e) {
|
|
3217
|
+
var t = e.data, n = e.fragment, r = e.fragmentName;
|
|
3218
|
+
return this.dataMasking ? Cn(t, n, this.cache, r) : t;
|
|
3219
|
+
}, e.prototype.fetchQueryByPolicy = function(e, t, n) {
|
|
3220
|
+
var i = this, a = t.query, o = t.variables, s = t.fetchPolicy, c = t.refetchWritePolicy, l = t.errorPolicy, u = t.returnPartialData, d = t.context, p = t.notifyOnNetworkStatusChange, m = e.networkStatus;
|
|
3221
|
+
e.init({
|
|
3222
|
+
document: a,
|
|
3223
|
+
variables: o,
|
|
3224
|
+
networkStatus: n
|
|
3225
|
+
});
|
|
3226
|
+
var g = function() {
|
|
3227
|
+
return e.getDiff();
|
|
3228
|
+
}, _ = function(t, n) {
|
|
3229
|
+
n === void 0 && (n = e.networkStatus || O.loading);
|
|
3230
|
+
var s = t.result;
|
|
3231
|
+
globalThis.__DEV__ !== !1 && !u && !h(s, {}) && r(t.missing);
|
|
3232
|
+
var c = function(e) {
|
|
3233
|
+
return z.of(M({
|
|
3234
|
+
data: e,
|
|
3235
|
+
loading: f(n),
|
|
3236
|
+
networkStatus: n
|
|
3237
|
+
}, t.complete ? null : { partial: !0 }));
|
|
3238
|
+
};
|
|
3239
|
+
return s && i.getDocumentInfo(a).hasForcedResolvers ? i.localState.runResolvers({
|
|
3240
|
+
document: a,
|
|
3241
|
+
remoteResult: { data: s },
|
|
3242
|
+
context: d,
|
|
3243
|
+
variables: o,
|
|
3244
|
+
onlyRunForcedResolvers: !0
|
|
3245
|
+
}).then(function(e) {
|
|
3246
|
+
return c(e.data || void 0);
|
|
3247
|
+
}) : l === "none" && n === O.refetch && Array.isArray(t.missing) ? c(void 0) : c(s);
|
|
3248
|
+
}, v = s === "no-cache" ? 0 : n === O.refetch && c !== "merge" ? 1 : 2, y = function() {
|
|
3249
|
+
return i.getResultsFromLink(e, v, {
|
|
3250
|
+
query: a,
|
|
3251
|
+
variables: o,
|
|
3252
|
+
context: d,
|
|
3253
|
+
fetchPolicy: s,
|
|
3254
|
+
errorPolicy: l
|
|
3255
|
+
});
|
|
3256
|
+
}, b = p && typeof m == "number" && m !== n && f(n);
|
|
3257
|
+
switch (s) {
|
|
3258
|
+
default:
|
|
3259
|
+
case "cache-first":
|
|
3260
|
+
var x = g();
|
|
3261
|
+
return x.complete ? {
|
|
3262
|
+
fromLink: !1,
|
|
3263
|
+
sources: [_(x, e.markReady())]
|
|
3264
|
+
} : u || b ? {
|
|
3265
|
+
fromLink: !0,
|
|
3266
|
+
sources: [_(x), y()]
|
|
3267
|
+
} : {
|
|
3268
|
+
fromLink: !0,
|
|
3269
|
+
sources: [y()]
|
|
3270
|
+
};
|
|
3271
|
+
case "cache-and-network":
|
|
3272
|
+
var x = g();
|
|
3273
|
+
return x.complete || u || b ? {
|
|
3274
|
+
fromLink: !0,
|
|
3275
|
+
sources: [_(x), y()]
|
|
3276
|
+
} : {
|
|
3277
|
+
fromLink: !0,
|
|
3278
|
+
sources: [y()]
|
|
3279
|
+
};
|
|
3280
|
+
case "cache-only": return {
|
|
3281
|
+
fromLink: !1,
|
|
3282
|
+
sources: [_(g(), e.markReady())]
|
|
3283
|
+
};
|
|
3284
|
+
case "network-only": return b ? {
|
|
3285
|
+
fromLink: !0,
|
|
3286
|
+
sources: [_(g()), y()]
|
|
3287
|
+
} : {
|
|
3288
|
+
fromLink: !0,
|
|
3289
|
+
sources: [y()]
|
|
3290
|
+
};
|
|
3291
|
+
case "no-cache": return b ? {
|
|
3292
|
+
fromLink: !0,
|
|
3293
|
+
sources: [_(e.getDiff()), y()]
|
|
3294
|
+
} : {
|
|
3295
|
+
fromLink: !0,
|
|
3296
|
+
sources: [y()]
|
|
3297
|
+
};
|
|
3298
|
+
case "standby": return {
|
|
3299
|
+
fromLink: !1,
|
|
3300
|
+
sources: []
|
|
3301
|
+
};
|
|
3302
|
+
}
|
|
3303
|
+
}, e.prototype.getOrCreateQuery = function(e) {
|
|
3304
|
+
return e && !this.queries.has(e) && this.queries.set(e, new Lr(this, e)), this.queries.get(e);
|
|
3305
|
+
}, e.prototype.prepareContext = function(e) {
|
|
3306
|
+
e === void 0 && (e = {});
|
|
3307
|
+
var t = this.localState.prepareContext(e);
|
|
3308
|
+
return M(M(M({}, this.defaultContext), t), { clientAwareness: this.clientAwareness });
|
|
3309
|
+
}, e;
|
|
3310
|
+
}(), Hr = function() {
|
|
3311
|
+
function e(e) {
|
|
3312
|
+
var t = e.cache, n = e.client, r = e.resolvers, i = e.fragmentMatcher;
|
|
3313
|
+
this.selectionsToResolveCache = /* @__PURE__ */ new WeakMap(), this.cache = t, n && (this.client = n), r && this.addResolvers(r), i && this.setFragmentMatcher(i);
|
|
3314
|
+
}
|
|
3315
|
+
return e.prototype.addResolvers = function(e) {
|
|
3316
|
+
var t = this;
|
|
3317
|
+
this.resolvers = this.resolvers || {}, Array.isArray(e) ? e.forEach(function(e) {
|
|
3318
|
+
t.resolvers = ht(t.resolvers, e);
|
|
3319
|
+
}) : this.resolvers = ht(this.resolvers, e);
|
|
3320
|
+
}, e.prototype.setResolvers = function(e) {
|
|
3321
|
+
this.resolvers = {}, this.addResolvers(e);
|
|
3322
|
+
}, e.prototype.getResolvers = function() {
|
|
3323
|
+
return this.resolvers || {};
|
|
3324
|
+
}, e.prototype.runResolvers = function(e) {
|
|
3325
|
+
return L(this, arguments, void 0, function(e) {
|
|
3326
|
+
var t = e.document, n = e.remoteResult, r = e.context, i = e.variables, a = e.onlyRunForcedResolvers, o = a === void 0 ? !1 : a;
|
|
3327
|
+
return P(this, function(e) {
|
|
3328
|
+
return t ? [2, this.resolveDocument(t, n.data, r, i, this.fragmentMatcher, o).then(function(e) {
|
|
3329
|
+
return M(M({}, n), { data: e.result });
|
|
3330
|
+
})] : [2, n];
|
|
3331
|
+
});
|
|
3332
|
+
});
|
|
3333
|
+
}, e.prototype.setFragmentMatcher = function(e) {
|
|
3334
|
+
this.fragmentMatcher = e;
|
|
3335
|
+
}, e.prototype.getFragmentMatcher = function() {
|
|
3336
|
+
return this.fragmentMatcher;
|
|
3337
|
+
}, e.prototype.clientQuery = function(e) {
|
|
3338
|
+
return se(["client"], e) && this.resolvers ? e : null;
|
|
3339
|
+
}, e.prototype.serverQuery = function(e) {
|
|
3340
|
+
return ft(e);
|
|
3341
|
+
}, e.prototype.prepareContext = function(e) {
|
|
3342
|
+
var t = this.cache;
|
|
3343
|
+
return M(M({}, e), {
|
|
3344
|
+
cache: t,
|
|
3345
|
+
getCacheKey: function(e) {
|
|
3346
|
+
return t.identify(e);
|
|
3347
|
+
}
|
|
3348
|
+
});
|
|
3349
|
+
}, e.prototype.addExportedVariables = function(e) {
|
|
3350
|
+
return L(this, arguments, void 0, function(e, t, n) {
|
|
3351
|
+
return t === void 0 && (t = {}), n === void 0 && (n = {}), P(this, function(r) {
|
|
3352
|
+
return e ? [2, this.resolveDocument(e, this.buildRootValueFromCache(e, t) || {}, this.prepareContext(n), t).then(function(e) {
|
|
3353
|
+
return M(M({}, t), e.exportedVariables);
|
|
3354
|
+
})] : [2, M({}, t)];
|
|
3355
|
+
});
|
|
3356
|
+
});
|
|
3357
|
+
}, e.prototype.shouldForceResolvers = function(e) {
|
|
3358
|
+
var t = !1;
|
|
3359
|
+
return E(e, { Directive: { enter: function(e) {
|
|
3360
|
+
if (e.name.value === "client" && e.arguments && (t = e.arguments.some(function(e) {
|
|
3361
|
+
return e.name.value === "always" && e.value.kind === "BooleanValue" && e.value.value === !0;
|
|
3362
|
+
}), t)) return ce;
|
|
3363
|
+
} } }), t;
|
|
3364
|
+
}, e.prototype.buildRootValueFromCache = function(e, t) {
|
|
3365
|
+
return this.cache.diff({
|
|
3366
|
+
query: dt(e),
|
|
3367
|
+
variables: t,
|
|
3368
|
+
returnPartialData: !0,
|
|
3369
|
+
optimistic: !1
|
|
3370
|
+
}).result;
|
|
3371
|
+
}, e.prototype.resolveDocument = function(e, t) {
|
|
3372
|
+
return L(this, arguments, void 0, function(e, t, n, r, i, a) {
|
|
3373
|
+
var o, s, c, l, u, d, f, p, m, h, g;
|
|
3374
|
+
return n === void 0 && (n = {}), r === void 0 && (r = {}), i === void 0 && (i = function() {
|
|
3375
|
+
return !0;
|
|
3376
|
+
}), a === void 0 && (a = !1), P(this, function(_) {
|
|
3377
|
+
return o = ge(e), s = ve(e), c = ee(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 = {
|
|
3378
|
+
fragmentMap: c,
|
|
3379
|
+
context: M(M({}, n), {
|
|
3380
|
+
cache: p,
|
|
3381
|
+
client: m
|
|
3382
|
+
}),
|
|
3383
|
+
variables: r,
|
|
3384
|
+
fragmentMatcher: i,
|
|
3385
|
+
defaultOperationType: d,
|
|
3386
|
+
exportedVariables: {},
|
|
3387
|
+
selectionsToResolve: l,
|
|
3388
|
+
onlyRunForcedResolvers: a
|
|
3389
|
+
}, g = !1, [2, this.resolveSelectionSet(o.selectionSet, g, t, h).then(function(e) {
|
|
3390
|
+
return {
|
|
3391
|
+
result: e,
|
|
3392
|
+
exportedVariables: h.exportedVariables
|
|
3393
|
+
};
|
|
3394
|
+
})];
|
|
3395
|
+
});
|
|
3396
|
+
});
|
|
3397
|
+
}, e.prototype.resolveSelectionSet = function(e, t, n, r) {
|
|
3398
|
+
return L(this, void 0, void 0, function() {
|
|
3399
|
+
var i, a, o, s, c, l = this;
|
|
3400
|
+
return P(this, function(u) {
|
|
3401
|
+
return i = r.fragmentMap, a = r.context, o = r.variables, s = [n], c = function(e) {
|
|
3402
|
+
return L(l, void 0, void 0, function() {
|
|
3403
|
+
var c, l;
|
|
3404
|
+
return P(this, function(u) {
|
|
3405
|
+
return !t && !r.selectionsToResolve.has(e) || !oe(e, o) ? [2] : U(e) ? [2, this.resolveField(e, t, n, r).then(function(t) {
|
|
3406
|
+
var n;
|
|
3407
|
+
t !== void 0 && s.push((n = {}, n[S(e)] = t, n));
|
|
3408
|
+
})] : (ne(e) ? c = e : (c = i[e.name.value], R(c, 21, e.name.value)), c && c.typeCondition && (l = c.typeCondition.name.value, r.fragmentMatcher(n, l, a)) ? [2, this.resolveSelectionSet(c.selectionSet, t, n, r).then(function(e) {
|
|
3409
|
+
s.push(e);
|
|
3410
|
+
})] : [2]);
|
|
3411
|
+
});
|
|
3412
|
+
});
|
|
3413
|
+
}, [2, Promise.all(e.selections.map(c)).then(function() {
|
|
3414
|
+
return gt(s);
|
|
3415
|
+
})];
|
|
3416
|
+
});
|
|
3417
|
+
});
|
|
3418
|
+
}, e.prototype.resolveField = function(e, t, n, r) {
|
|
3419
|
+
return L(this, void 0, void 0, function() {
|
|
3420
|
+
var i, a, o, s, c, l, u, d, f, p = this;
|
|
3421
|
+
return P(this, function(m) {
|
|
3422
|
+
return n ? (i = r.variables, a = e.name.value, o = S(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(er.withValue(this.cache, f, [
|
|
3423
|
+
n,
|
|
3424
|
+
fe(e, i),
|
|
3425
|
+
r.context,
|
|
3426
|
+
{
|
|
3427
|
+
field: e,
|
|
3428
|
+
fragmentMap: r.fragmentMap
|
|
3429
|
+
}
|
|
3430
|
+
]))))), [2, l.then(function(n) {
|
|
3431
|
+
if (n === void 0 && (n = c), e.directives && e.directives.forEach(function(e) {
|
|
3432
|
+
e.name.value === "export" && e.arguments && e.arguments.forEach(function(e) {
|
|
3433
|
+
e.name.value === "as" && e.value.kind === "StringValue" && (r.exportedVariables[e.value.value] = n);
|
|
3434
|
+
});
|
|
3435
|
+
}), !e.selectionSet || n == null) return n;
|
|
3436
|
+
var i = e.directives?.some(function(e) {
|
|
3437
|
+
return e.name.value === "client";
|
|
3438
|
+
}) ?? !1;
|
|
3439
|
+
if (Array.isArray(n)) return p.resolveSubSelectedArray(e, t || i, n, r);
|
|
3440
|
+
if (e.selectionSet) return p.resolveSelectionSet(e.selectionSet, t || i, n, r);
|
|
3441
|
+
})]) : [2, null];
|
|
3442
|
+
});
|
|
3443
|
+
});
|
|
3444
|
+
}, e.prototype.resolveSubSelectedArray = function(e, t, n, r) {
|
|
3445
|
+
var i = this;
|
|
3446
|
+
return Promise.all(n.map(function(n) {
|
|
3447
|
+
if (n === null) return null;
|
|
3448
|
+
if (Array.isArray(n)) return i.resolveSubSelectedArray(e, t, n, r);
|
|
3449
|
+
if (e.selectionSet) return i.resolveSelectionSet(e.selectionSet, t, n, r);
|
|
3450
|
+
}));
|
|
3451
|
+
}, e.prototype.collectSelectionsToResolve = function(e, t) {
|
|
3452
|
+
var n = function(e) {
|
|
3453
|
+
return !Array.isArray(e);
|
|
3454
|
+
}, r = this.selectionsToResolveCache;
|
|
3455
|
+
function i(e) {
|
|
3456
|
+
if (!r.has(e)) {
|
|
3457
|
+
var a = /* @__PURE__ */ new Set();
|
|
3458
|
+
r.set(e, a), E(e, {
|
|
3459
|
+
Directive: function(e, t, r, i, o) {
|
|
3460
|
+
e.name.value === "client" && o.forEach(function(e) {
|
|
3461
|
+
n(e) && et(e) && a.add(e);
|
|
3462
|
+
});
|
|
3463
|
+
},
|
|
3464
|
+
FragmentSpread: function(e, r, o, s, c) {
|
|
3465
|
+
var l = t[e.name.value];
|
|
3466
|
+
R(l, 22, e.name.value);
|
|
3467
|
+
var u = i(l);
|
|
3468
|
+
u.size > 0 && (c.forEach(function(e) {
|
|
3469
|
+
n(e) && et(e) && a.add(e);
|
|
3470
|
+
}), a.add(e), u.forEach(function(e) {
|
|
3471
|
+
a.add(e);
|
|
3472
|
+
}));
|
|
3473
|
+
}
|
|
3474
|
+
});
|
|
3475
|
+
}
|
|
3476
|
+
return r.get(e);
|
|
3477
|
+
}
|
|
3478
|
+
return i(e);
|
|
3479
|
+
}, e;
|
|
3480
|
+
}(), Ur = !1, Wr = function() {
|
|
3481
|
+
function t(t) {
|
|
3482
|
+
var n = this;
|
|
3483
|
+
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !t.cache) throw B(16);
|
|
3484
|
+
var r = t.uri, i = t.credentials, a = t.headers, o = t.cache, s = t.documentTransform, c = t.ssrMode, l = c === void 0 ? !1 : c, u = t.ssrForceFetchDelay, d = u === void 0 ? 0 : u, f = t.connectToDevTools, p = t.queryDeduplication, m = p === void 0 ? !0 : p, h = t.defaultOptions, g = t.defaultContext, _ = t.assumeImmutableResults, v = _ === void 0 ? o.assumeImmutableResults : _, y = t.resolvers, b = t.typeDefs, x = t.fragmentMatcher, S = t.clientAwareness, C = t.name, w = t.version, T = t.devtools, E = t.dataMasking;
|
|
3485
|
+
globalThis.__DEV__ !== !1 && (e(t, "connectToDevTools", "ApolloClient", "Please use `devtools.enabled` instead."), e(t, "uri", "ApolloClient", "Please initialize an instance of `HttpLink` with `uri` instead."), e(t, "credentials", "ApolloClient", "Please initialize an instance of `HttpLink` with `credentials` instead."), e(t, "headers", "ApolloClient", "Please initialize an instance of `HttpLink` with `headers` instead."), e(t, "name", "ApolloClient", "Please use the `clientAwareness.name` option instead."), e(t, "version", "ApolloClient", "Please use the `clientAwareness.version` option instead."), e(t, "typeDefs", "ApolloClient"), t.link || globalThis.__DEV__ !== !1 && R.warn(17));
|
|
3486
|
+
var D = t.link;
|
|
3487
|
+
D || (D = r ? new pn({
|
|
3488
|
+
uri: r,
|
|
3489
|
+
credentials: i,
|
|
3490
|
+
headers: a
|
|
3491
|
+
}) : X.empty()), this.link = D, this.cache = o, this.disableNetworkFetches = l || d > 0, this.queryDeduplication = m, this.defaultOptions = h || Object.create(null), this.typeDefs = b, this.devtoolsConfig = M(M({}, T), { enabled: T?.enabled ?? f }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), d && setTimeout(function() {
|
|
3492
|
+
return n.disableNetworkFetches = !1;
|
|
3493
|
+
}, d), 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 = Ne, this.localState = new Hr({
|
|
3494
|
+
cache: o,
|
|
3495
|
+
client: this,
|
|
3496
|
+
resolvers: y,
|
|
3497
|
+
fragmentMatcher: x
|
|
3498
|
+
}), this.queryManager = new Vr({
|
|
3499
|
+
cache: this.cache,
|
|
3500
|
+
link: this.link,
|
|
3501
|
+
defaultOptions: this.defaultOptions,
|
|
3502
|
+
defaultContext: g,
|
|
3503
|
+
documentTransform: s,
|
|
3504
|
+
queryDeduplication: m,
|
|
3505
|
+
ssrMode: l,
|
|
3506
|
+
dataMasking: !!E,
|
|
3507
|
+
clientAwareness: {
|
|
3508
|
+
name: S?.name ?? C,
|
|
3509
|
+
version: S?.version ?? w
|
|
3510
|
+
},
|
|
3511
|
+
localState: this.localState,
|
|
3512
|
+
assumeImmutableResults: v,
|
|
3513
|
+
onBroadcast: this.devtoolsConfig.enabled ? function() {
|
|
3514
|
+
n.devToolsHookCb && n.devToolsHookCb({
|
|
3515
|
+
action: {},
|
|
3516
|
+
state: {
|
|
3517
|
+
queries: n.queryManager.getQueryStore(),
|
|
3518
|
+
mutations: n.queryManager.mutationStore || {}
|
|
3519
|
+
},
|
|
3520
|
+
dataWithOptimisticResults: n.cache.extract(!0)
|
|
3521
|
+
});
|
|
3522
|
+
} : void 0
|
|
3523
|
+
}), this.devtoolsConfig.enabled && this.connectToDevTools();
|
|
3524
|
+
}
|
|
3525
|
+
return Object.defineProperty(t.prototype, "prioritizeCacheValues", {
|
|
3526
|
+
get: function() {
|
|
3527
|
+
return this.disableNetworkFetches;
|
|
3528
|
+
},
|
|
3529
|
+
set: function(e) {
|
|
3530
|
+
this.disableNetworkFetches = e;
|
|
3531
|
+
},
|
|
3532
|
+
enumerable: !1,
|
|
3533
|
+
configurable: !0
|
|
3534
|
+
}), t.prototype.connectToDevTools = function() {
|
|
3535
|
+
if (!(typeof window > "u")) {
|
|
3536
|
+
var e = window, t = Symbol.for("apollo.devtools");
|
|
3537
|
+
(e[t] = e[t] || []).push(this), e.__APOLLO_CLIENT__ = this, !Ur && globalThis.__DEV__ !== !1 && (Ur = !0, window.document && window.top === window.self && /^(https?|file):$/.test(window.location.protocol) && setTimeout(function() {
|
|
3538
|
+
if (!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__) {
|
|
3539
|
+
var e = window.navigator, t = e && e.userAgent, n = void 0;
|
|
3540
|
+
typeof t == "string" && (t.indexOf("Chrome/") > -1 ? n = "https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm" : t.indexOf("Firefox/") > -1 && (n = "https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")), n && globalThis.__DEV__ !== !1 && R.log("Download the Apollo DevTools for a better development experience: %s", n);
|
|
3541
|
+
}
|
|
3542
|
+
}, 1e4));
|
|
3543
|
+
}
|
|
3544
|
+
}, Object.defineProperty(t.prototype, "documentTransform", {
|
|
3545
|
+
get: function() {
|
|
3546
|
+
return this.queryManager.documentTransform;
|
|
3547
|
+
},
|
|
3548
|
+
enumerable: !1,
|
|
3549
|
+
configurable: !0
|
|
3550
|
+
}), t.prototype.stop = function() {
|
|
3551
|
+
this.queryManager.stop();
|
|
3552
|
+
}, t.prototype.watchQuery = function(t) {
|
|
3553
|
+
return this.defaultOptions.watchQuery && (t = me(this.defaultOptions.watchQuery, t)), this.disableNetworkFetches && (t.fetchPolicy === "network-only" || t.fetchPolicy === "cache-and-network") && (t = M(M({}, t), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (e(t, "canonizeResults", "client.watchQuery"), e(t, "partialRefetch", "client.watchQuery")), this.queryManager.watchQuery(t);
|
|
3554
|
+
}, t.prototype.query = function(t) {
|
|
3555
|
+
return this.defaultOptions.query && (t = me(this.defaultOptions.query, t)), R(t.fetchPolicy !== "cache-and-network", 18), this.disableNetworkFetches && t.fetchPolicy === "network-only" && (t = M(M({}, t), { fetchPolicy: "cache-first" })), globalThis.__DEV__ !== !1 && (e(t, "canonizeResults", "client.query"), e(t, "notifyOnNetworkStatusChange", "client.query", "This option does not affect `client.query` and can be safely removed."), t.fetchPolicy === "standby" && globalThis.__DEV__ !== !1 && R.warn(19)), this.queryManager.query(t);
|
|
3556
|
+
}, t.prototype.mutate = function(e) {
|
|
3557
|
+
return this.defaultOptions.mutate && (e = me(this.defaultOptions.mutate, e)), this.queryManager.mutate(e);
|
|
3558
|
+
}, t.prototype.subscribe = function(e) {
|
|
3559
|
+
var t = this, n = this.queryManager.generateQueryId();
|
|
3560
|
+
return this.queryManager.startGraphQLSubscription(e).map(function(r) {
|
|
3561
|
+
return M(M({}, r), { data: t.queryManager.maskOperation({
|
|
3562
|
+
document: e.query,
|
|
3563
|
+
data: r.data,
|
|
3564
|
+
fetchPolicy: e.fetchPolicy,
|
|
3565
|
+
id: n
|
|
3566
|
+
}) });
|
|
3567
|
+
});
|
|
3568
|
+
}, t.prototype.readQuery = function(e, t) {
|
|
3569
|
+
return t === void 0 && (t = !1), this.cache.readQuery(e, t);
|
|
3570
|
+
}, t.prototype.watchFragment = function(e) {
|
|
3571
|
+
var t;
|
|
3572
|
+
return this.cache.watchFragment(M(M({}, e), (t = {}, t[Symbol.for("apollo.dataMasking")] = this.queryManager.dataMasking, t)));
|
|
3573
|
+
}, t.prototype.readFragment = function(e, t) {
|
|
3574
|
+
return t === void 0 && (t = !1), this.cache.readFragment(e, t);
|
|
3575
|
+
}, t.prototype.writeQuery = function(e) {
|
|
3576
|
+
var t = this.cache.writeQuery(e);
|
|
3577
|
+
return e.broadcast !== !1 && this.queryManager.broadcastQueries(), t;
|
|
3578
|
+
}, t.prototype.writeFragment = function(e) {
|
|
3579
|
+
var t = this.cache.writeFragment(e);
|
|
3580
|
+
return e.broadcast !== !1 && this.queryManager.broadcastQueries(), t;
|
|
3581
|
+
}, t.prototype.__actionHookForDevTools = function(e) {
|
|
3582
|
+
this.devToolsHookCb = e;
|
|
3583
|
+
}, t.prototype.__requestRaw = function(e) {
|
|
3584
|
+
return Rt(this.link, e);
|
|
3585
|
+
}, t.prototype.resetStore = function() {
|
|
3586
|
+
var e = this;
|
|
3587
|
+
return Promise.resolve().then(function() {
|
|
3588
|
+
return e.queryManager.clearStore({ discardWatches: !1 });
|
|
3589
|
+
}).then(function() {
|
|
3590
|
+
return Promise.all(e.resetStoreCallbacks.map(function(e) {
|
|
3591
|
+
return e();
|
|
3592
|
+
}));
|
|
3593
|
+
}).then(function() {
|
|
3594
|
+
return e.reFetchObservableQueries();
|
|
3595
|
+
});
|
|
3596
|
+
}, t.prototype.clearStore = function() {
|
|
3597
|
+
var e = this;
|
|
3598
|
+
return Promise.resolve().then(function() {
|
|
3599
|
+
return e.queryManager.clearStore({ discardWatches: !0 });
|
|
3600
|
+
}).then(function() {
|
|
3601
|
+
return Promise.all(e.clearStoreCallbacks.map(function(e) {
|
|
3602
|
+
return e();
|
|
3603
|
+
}));
|
|
3604
|
+
});
|
|
3605
|
+
}, t.prototype.onResetStore = function(e) {
|
|
3606
|
+
var t = this;
|
|
3607
|
+
return this.resetStoreCallbacks.push(e), function() {
|
|
3608
|
+
t.resetStoreCallbacks = t.resetStoreCallbacks.filter(function(t) {
|
|
3609
|
+
return t !== e;
|
|
3610
|
+
});
|
|
3611
|
+
};
|
|
3612
|
+
}, t.prototype.onClearStore = function(e) {
|
|
3613
|
+
var t = this;
|
|
3614
|
+
return this.clearStoreCallbacks.push(e), function() {
|
|
3615
|
+
t.clearStoreCallbacks = t.clearStoreCallbacks.filter(function(t) {
|
|
3616
|
+
return t !== e;
|
|
3617
|
+
});
|
|
3618
|
+
};
|
|
3619
|
+
}, t.prototype.reFetchObservableQueries = function(e) {
|
|
3620
|
+
return this.queryManager.reFetchObservableQueries(e);
|
|
3621
|
+
}, t.prototype.refetchQueries = function(e) {
|
|
3622
|
+
var t = this.queryManager.refetchQueries(e), n = [], r = [];
|
|
3623
|
+
t.forEach(function(e, t) {
|
|
3624
|
+
n.push(t), r.push(e);
|
|
3625
|
+
});
|
|
3626
|
+
var i = Promise.all(r);
|
|
3627
|
+
return i.queries = n, i.results = r, i.catch(function(e) {
|
|
3628
|
+
globalThis.__DEV__ !== !1 && R.debug(20, e);
|
|
3629
|
+
}), i;
|
|
3630
|
+
}, t.prototype.getObservableQueries = function(e) {
|
|
3631
|
+
return e === void 0 && (e = "active"), this.queryManager.getObservableQueries(e);
|
|
3632
|
+
}, t.prototype.extract = function(e) {
|
|
3633
|
+
return this.cache.extract(e);
|
|
3634
|
+
}, t.prototype.restore = function(e) {
|
|
3635
|
+
return this.cache.restore(e);
|
|
3636
|
+
}, t.prototype.addResolvers = function(e) {
|
|
3637
|
+
this.localState.addResolvers(e);
|
|
3638
|
+
}, t.prototype.setResolvers = function(e) {
|
|
3639
|
+
this.localState.setResolvers(e);
|
|
3640
|
+
}, t.prototype.getResolvers = function() {
|
|
3641
|
+
return this.localState.getResolvers();
|
|
3642
|
+
}, t.prototype.setLocalStateFragmentMatcher = function(e) {
|
|
3643
|
+
this.localState.setFragmentMatcher(e);
|
|
3644
|
+
}, t.prototype.setLink = function(e) {
|
|
3645
|
+
this.link = this.queryManager.link = e;
|
|
3646
|
+
}, Object.defineProperty(t.prototype, "defaultContext", {
|
|
3647
|
+
get: function() {
|
|
3648
|
+
return this.queryManager.defaultContext;
|
|
3649
|
+
},
|
|
3650
|
+
enumerable: !1,
|
|
3651
|
+
configurable: !0
|
|
3652
|
+
}), t;
|
|
3653
|
+
}();
|
|
3654
|
+
globalThis.__DEV__ !== !1 && (Wr.prototype.getMemoryInternals = b);
|
|
3655
|
+
//#endregion
|
|
3656
|
+
//#region node_modules/@apollo/client/link/context/index.js
|
|
3657
|
+
function Gr(e) {
|
|
3658
|
+
return new X(function(t, n) {
|
|
3659
|
+
var r = I(t, []);
|
|
3660
|
+
return new z(function(i) {
|
|
3661
|
+
var a, o = !1;
|
|
3662
|
+
return Promise.resolve(r).then(function(n) {
|
|
3663
|
+
return e(n, t.getContext());
|
|
3664
|
+
}).then(t.setContext).then(function() {
|
|
3665
|
+
o || (a = n(t).subscribe({
|
|
3666
|
+
next: i.next.bind(i),
|
|
3667
|
+
error: i.error.bind(i),
|
|
3668
|
+
complete: i.complete.bind(i)
|
|
3669
|
+
}));
|
|
3670
|
+
}).catch(i.error.bind(i)), function() {
|
|
3671
|
+
o = !0, a && a.unsubscribe();
|
|
3672
|
+
};
|
|
3673
|
+
});
|
|
3674
|
+
});
|
|
3675
|
+
}
|
|
3676
|
+
//#endregion
|
|
3677
|
+
//#region node_modules/@apollo/client/link/error/index.js
|
|
3678
|
+
function Kr(e) {
|
|
3679
|
+
return new X(function(t, n) {
|
|
3680
|
+
return new z(function(r) {
|
|
3681
|
+
var i, a, o;
|
|
3682
|
+
try {
|
|
3683
|
+
i = n(t).subscribe({
|
|
3684
|
+
next: function(i) {
|
|
3685
|
+
if (i.errors ? o = e({
|
|
3686
|
+
graphQLErrors: i.errors,
|
|
3687
|
+
response: i,
|
|
3688
|
+
operation: t,
|
|
3689
|
+
forward: n
|
|
3690
|
+
}) : _(i) && (o = e({
|
|
3691
|
+
protocolErrors: i.extensions[u],
|
|
3692
|
+
response: i,
|
|
3693
|
+
operation: t,
|
|
3694
|
+
forward: n
|
|
3695
|
+
})), o) {
|
|
3696
|
+
a = o.subscribe({
|
|
3697
|
+
next: r.next.bind(r),
|
|
3698
|
+
error: r.error.bind(r),
|
|
3699
|
+
complete: r.complete.bind(r)
|
|
3700
|
+
});
|
|
3701
|
+
return;
|
|
3702
|
+
}
|
|
3703
|
+
r.next(i);
|
|
3704
|
+
},
|
|
3705
|
+
error: function(i) {
|
|
3706
|
+
if (o = e({
|
|
3707
|
+
operation: t,
|
|
3708
|
+
networkError: i,
|
|
3709
|
+
graphQLErrors: i && i.result && i.result.errors || void 0,
|
|
3710
|
+
forward: n
|
|
3711
|
+
}), o) {
|
|
3712
|
+
a = o.subscribe({
|
|
3713
|
+
next: r.next.bind(r),
|
|
3714
|
+
error: r.error.bind(r),
|
|
3715
|
+
complete: r.complete.bind(r)
|
|
3716
|
+
});
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
r.error(i);
|
|
3720
|
+
},
|
|
3721
|
+
complete: function() {
|
|
3722
|
+
o || r.complete.bind(r)();
|
|
3723
|
+
}
|
|
3724
|
+
});
|
|
3725
|
+
} catch (i) {
|
|
3726
|
+
e({
|
|
3727
|
+
networkError: i,
|
|
3728
|
+
operation: t,
|
|
3729
|
+
forward: n
|
|
3730
|
+
}), r.error(i);
|
|
3731
|
+
}
|
|
3732
|
+
return function() {
|
|
3733
|
+
i && i.unsubscribe(), a && i.unsubscribe();
|
|
3734
|
+
};
|
|
3735
|
+
});
|
|
3736
|
+
});
|
|
3737
|
+
}
|
|
3738
|
+
(function(e) {
|
|
3739
|
+
H(t, e);
|
|
3740
|
+
function t(t) {
|
|
3741
|
+
var n = e.call(this) || this;
|
|
3742
|
+
return n.link = Kr(t), n;
|
|
3743
|
+
}
|
|
3744
|
+
return t.prototype.request = function(e, t) {
|
|
3745
|
+
return this.link.request(e, t);
|
|
3746
|
+
}, t;
|
|
3747
|
+
})(X);
|
|
3748
|
+
//#endregion
|
|
3749
|
+
//#region lib/apollo-client.ts
|
|
3750
|
+
var qr = null, Jr = null;
|
|
3751
|
+
function Yr(e) {
|
|
3752
|
+
qr = e;
|
|
3753
|
+
}
|
|
3754
|
+
function Xr() {
|
|
3755
|
+
return qr;
|
|
3756
|
+
}
|
|
3757
|
+
var Zr = null;
|
|
3758
|
+
function Qr(e) {
|
|
3759
|
+
Zr = e;
|
|
3760
|
+
}
|
|
3761
|
+
var $r = null;
|
|
3762
|
+
function ei(e) {
|
|
3763
|
+
$r = e;
|
|
3764
|
+
}
|
|
3765
|
+
var ti = new Set([
|
|
3766
|
+
"StartAnonymousVisitor",
|
|
3767
|
+
"StartIdentifiedVisitor",
|
|
3768
|
+
"VisitorPasskeyRegistrationOptions",
|
|
3769
|
+
"VerifyVisitorPasskeyRegistration",
|
|
3770
|
+
"VisitorPasskeyAuthenticationOptions",
|
|
3771
|
+
"VerifyVisitorPasskeyAuthentication"
|
|
3772
|
+
]);
|
|
3773
|
+
function ni(e) {
|
|
3774
|
+
Jr = e;
|
|
3775
|
+
}
|
|
3776
|
+
function ri() {
|
|
3777
|
+
return Jr;
|
|
3778
|
+
}
|
|
3779
|
+
var ii = null;
|
|
3780
|
+
function ai() {
|
|
3781
|
+
if (ii) return ii;
|
|
3782
|
+
let e = new pn({
|
|
3783
|
+
uri: `${Le()}/graphql`,
|
|
3784
|
+
credentials: "omit"
|
|
3785
|
+
}), t = Gr((e, { headers: t }) => ({ headers: {
|
|
3786
|
+
...t,
|
|
3787
|
+
...Jr ? { "x-web-public-key": Jr } : {},
|
|
3788
|
+
...qr ? { authorization: `Bearer ${qr}` } : {}
|
|
3789
|
+
} }));
|
|
3790
|
+
return ii = new Wr({
|
|
3791
|
+
link: Lt([
|
|
3792
|
+
Kr(({ operation: e, graphQLErrors: t, networkError: n }) => {
|
|
3793
|
+
if (ti.has(e.operationName)) return;
|
|
3794
|
+
let r = n && "statusCode" in n ? n.statusCode : void 0;
|
|
3795
|
+
if ((t ?? []).some((e) => {
|
|
3796
|
+
let t = e.extensions;
|
|
3797
|
+
if (t?.code === "webIntegrationMismatch") return !0;
|
|
3798
|
+
let n = t?.response?.message;
|
|
3799
|
+
return !!(typeof n == "string" && n.includes("webIntegrationMismatch") || Array.isArray(n) && n.some((e) => typeof e == "string" && e.includes("webIntegrationMismatch")));
|
|
3800
|
+
})) {
|
|
3801
|
+
$r?.();
|
|
3802
|
+
return;
|
|
3803
|
+
}
|
|
3804
|
+
(r === 401 || (t ?? []).some((e) => {
|
|
3805
|
+
let t = e.extensions;
|
|
3806
|
+
return t?.code === "UNAUTHENTICATED" || t?.response?.statusCode === 401 || e.message === "Unauthorized";
|
|
3807
|
+
})) && Zr?.();
|
|
3808
|
+
}),
|
|
3809
|
+
t,
|
|
3810
|
+
e
|
|
3811
|
+
]),
|
|
3812
|
+
cache: new Pr({ typePolicies: {} }),
|
|
3813
|
+
defaultOptions: {
|
|
3814
|
+
watchQuery: {
|
|
3815
|
+
errorPolicy: "all",
|
|
3816
|
+
fetchPolicy: "cache-first"
|
|
3817
|
+
},
|
|
3818
|
+
query: {
|
|
3819
|
+
errorPolicy: "all",
|
|
3820
|
+
fetchPolicy: "cache-first"
|
|
3821
|
+
},
|
|
3822
|
+
mutate: { errorPolicy: "all" }
|
|
3823
|
+
}
|
|
3824
|
+
}), ii;
|
|
3825
|
+
}
|
|
3826
|
+
//#endregion
|
|
3827
|
+
//#region dummy/help.ts
|
|
3828
|
+
var oi = [
|
|
3829
|
+
"demo-cat-getting-started",
|
|
3830
|
+
"demo-cat-automation",
|
|
3831
|
+
"demo-cat-integrations",
|
|
3832
|
+
"demo-cat-billing"
|
|
3833
|
+
];
|
|
3834
|
+
function si(e) {
|
|
3835
|
+
return oi.map((t) => ({
|
|
3836
|
+
id: t,
|
|
3837
|
+
articleCount: ci.filter((e) => e.categoryId === t).length,
|
|
3838
|
+
title: e.raw(`help.categories.${t}.title`),
|
|
3839
|
+
description: e.raw(`help.categories.${t}.description`)
|
|
3840
|
+
}));
|
|
3841
|
+
}
|
|
3842
|
+
var ci = [
|
|
3843
|
+
{
|
|
3844
|
+
id: "demo-article-install",
|
|
3845
|
+
slug: "install-the-widget",
|
|
3846
|
+
categoryId: "demo-cat-getting-started",
|
|
3847
|
+
viewCount: 2310,
|
|
3848
|
+
publishedAt: "2026-01-12T10:00:00.000Z",
|
|
3849
|
+
authorIds: ["maya"],
|
|
3850
|
+
tagSlugs: ["setup", "install"]
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
id: "demo-article-flows",
|
|
3854
|
+
slug: "build-your-first-flow",
|
|
3855
|
+
categoryId: "demo-cat-automation",
|
|
3856
|
+
viewCount: 1684,
|
|
3857
|
+
publishedAt: "2026-02-04T10:00:00.000Z",
|
|
3858
|
+
authorIds: ["leo"],
|
|
3859
|
+
tagSlugs: ["automation", "flows"]
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
id: "demo-article-slack",
|
|
3863
|
+
slug: "connect-slack",
|
|
3864
|
+
categoryId: "demo-cat-integrations",
|
|
3865
|
+
viewCount: 1102,
|
|
3866
|
+
publishedAt: "2026-02-22T10:00:00.000Z",
|
|
3867
|
+
authorIds: ["leo", "ira"],
|
|
3868
|
+
tagSlugs: ["integrations", "slack"]
|
|
3869
|
+
},
|
|
3870
|
+
{
|
|
3871
|
+
id: "demo-article-billing",
|
|
3872
|
+
slug: "manage-billing",
|
|
3873
|
+
categoryId: "demo-cat-billing",
|
|
3874
|
+
viewCount: 540,
|
|
3875
|
+
publishedAt: "2026-03-18T10:00:00.000Z",
|
|
3876
|
+
authorIds: ["maya"],
|
|
3877
|
+
tagSlugs: ["billing", "plans"]
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
id: "demo-article-theme",
|
|
3881
|
+
slug: "customise-theme",
|
|
3882
|
+
categoryId: "demo-cat-getting-started",
|
|
3883
|
+
viewCount: 1340,
|
|
3884
|
+
publishedAt: "2026-02-10T10:00:00.000Z",
|
|
3885
|
+
authorIds: ["ira"],
|
|
3886
|
+
tagSlugs: ["setup", "design"]
|
|
3887
|
+
},
|
|
3888
|
+
{
|
|
3889
|
+
id: "demo-article-handoff",
|
|
3890
|
+
slug: "human-handoff",
|
|
3891
|
+
categoryId: "demo-cat-automation",
|
|
3892
|
+
viewCount: 988,
|
|
3893
|
+
publishedAt: "2026-03-01T10:00:00.000Z",
|
|
3894
|
+
authorIds: ["leo"],
|
|
3895
|
+
tagSlugs: ["automation", "ai"]
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
id: "demo-article-crm",
|
|
3899
|
+
slug: "connect-crm",
|
|
3900
|
+
categoryId: "demo-cat-integrations",
|
|
3901
|
+
viewCount: 763,
|
|
3902
|
+
publishedAt: "2026-03-25T10:00:00.000Z",
|
|
3903
|
+
authorIds: ["ira"],
|
|
3904
|
+
tagSlugs: ["integrations", "crm"]
|
|
3905
|
+
},
|
|
3906
|
+
{
|
|
3907
|
+
id: "demo-article-shortcuts",
|
|
3908
|
+
slug: "operator-shortcuts",
|
|
3909
|
+
categoryId: "demo-cat-getting-started",
|
|
3910
|
+
viewCount: 612,
|
|
3911
|
+
publishedAt: "2026-04-08T10:00:00.000Z",
|
|
3912
|
+
authorIds: ["maya"],
|
|
3913
|
+
tagSlugs: ["productivity", "inbox"]
|
|
3914
|
+
}
|
|
3915
|
+
];
|
|
3916
|
+
function li(e) {
|
|
3917
|
+
return ci.map(({ authorIds: t, tagSlugs: n, ...r }) => ({
|
|
3918
|
+
...r,
|
|
3919
|
+
title: e.raw(`help.articles.${r.id}.title`),
|
|
3920
|
+
excerpt: e.raw(`help.articles.${r.id}.excerpt`),
|
|
3921
|
+
contentMarkdown: e.raw(`help.articles.${r.id}.body`),
|
|
3922
|
+
authors: a(t),
|
|
3923
|
+
tags: n.map((t) => ({
|
|
3924
|
+
_id: `demo-tag-${t}`,
|
|
3925
|
+
slug: t,
|
|
3926
|
+
label: e.raw(`help.tags.${t}`)
|
|
3927
|
+
}))
|
|
3928
|
+
}));
|
|
3929
|
+
}
|
|
3930
|
+
//#endregion
|
|
3931
|
+
//#region node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3932
|
+
var ui = Symbol.for("react.lazy"), di = W.use;
|
|
3933
|
+
function fi(e) {
|
|
3934
|
+
return typeof e == "object" && !!e && "then" in e;
|
|
3935
|
+
}
|
|
3936
|
+
function pi(e) {
|
|
3937
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === ui && "_payload" in e && fi(e._payload);
|
|
3938
|
+
}
|
|
3939
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
3940
|
+
function mi(e) {
|
|
3941
|
+
let t = /* @__PURE__ */ gi(e), n = W.forwardRef((e, n) => {
|
|
3942
|
+
let { children: r, ...i } = e;
|
|
3943
|
+
pi(r) && typeof di == "function" && (r = di(r._payload));
|
|
3944
|
+
let a = W.Children.toArray(r), o = a.find(vi);
|
|
3945
|
+
if (o) {
|
|
3946
|
+
let e = o.props.children, r = a.map((t) => t === o ? W.Children.count(e) > 1 ? W.Children.only(null) : W.isValidElement(e) ? e.props.children : null : t);
|
|
3947
|
+
return /* @__PURE__ */ We(t, {
|
|
3948
|
+
...i,
|
|
3949
|
+
ref: n,
|
|
3950
|
+
children: W.isValidElement(e) ? W.cloneElement(e, void 0, r) : null
|
|
3951
|
+
});
|
|
3952
|
+
}
|
|
3953
|
+
return /* @__PURE__ */ We(t, {
|
|
3954
|
+
...i,
|
|
3955
|
+
ref: n,
|
|
3956
|
+
children: r
|
|
3957
|
+
});
|
|
3958
|
+
});
|
|
3959
|
+
return n.displayName = `${e}.Slot`, n;
|
|
3960
|
+
}
|
|
3961
|
+
var hi = /* @__PURE__ */ mi("Slot");
|
|
3962
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
3963
|
+
function gi(e) {
|
|
3964
|
+
let t = W.forwardRef((e, t) => {
|
|
3965
|
+
let { children: n, ...r } = e;
|
|
3966
|
+
if (pi(n) && typeof di == "function" && (n = di(n._payload)), W.isValidElement(n)) {
|
|
3967
|
+
let e = bi(n), i = yi(r, n.props);
|
|
3968
|
+
return n.type !== W.Fragment && (i.ref = t ? _e(t, e) : e), W.cloneElement(n, i);
|
|
3969
|
+
}
|
|
3970
|
+
return W.Children.count(n) > 1 ? W.Children.only(null) : null;
|
|
3971
|
+
});
|
|
3972
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
3973
|
+
}
|
|
3974
|
+
var _i = Symbol("radix.slottable");
|
|
3975
|
+
function vi(e) {
|
|
3976
|
+
return W.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === _i;
|
|
3977
|
+
}
|
|
3978
|
+
function yi(e, t) {
|
|
3979
|
+
let n = { ...t };
|
|
3980
|
+
for (let r in t) {
|
|
3981
|
+
let i = e[r], a = t[r];
|
|
3982
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
3983
|
+
let t = a(...e);
|
|
3984
|
+
return i(...e), t;
|
|
3985
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
3986
|
+
...i,
|
|
3987
|
+
...a
|
|
3988
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
3989
|
+
}
|
|
3990
|
+
return {
|
|
3991
|
+
...e,
|
|
3992
|
+
...n
|
|
3993
|
+
};
|
|
3994
|
+
}
|
|
3995
|
+
function bi(e) {
|
|
3996
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3997
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3998
|
+
}
|
|
3999
|
+
//#endregion
|
|
4000
|
+
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
4001
|
+
var xi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Si = Ue, Ci = ((e, t) => (n) => {
|
|
4002
|
+
if (t?.variants == null) return Si(e, n?.class, n?.className);
|
|
4003
|
+
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
4004
|
+
let t = n?.[e], a = i?.[e];
|
|
4005
|
+
if (t === null) return null;
|
|
4006
|
+
let o = xi(t) || xi(a);
|
|
4007
|
+
return r[e][o];
|
|
4008
|
+
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
4009
|
+
let [n, r] = t;
|
|
4010
|
+
return r === void 0 || (e[n] = r), e;
|
|
4011
|
+
}, {});
|
|
4012
|
+
return Si(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
4013
|
+
let { class: n, className: r, ...a } = t;
|
|
4014
|
+
return Object.entries(a).every((e) => {
|
|
4015
|
+
let [t, n] = e;
|
|
4016
|
+
return Array.isArray(n) ? n.includes({
|
|
4017
|
+
...i,
|
|
4018
|
+
...o
|
|
4019
|
+
}[t]) : {
|
|
4020
|
+
...i,
|
|
4021
|
+
...o
|
|
4022
|
+
}[t] === n;
|
|
4023
|
+
}) ? [
|
|
4024
|
+
...e,
|
|
4025
|
+
n,
|
|
4026
|
+
r
|
|
4027
|
+
] : e;
|
|
4028
|
+
}, []), n?.class, n?.className);
|
|
4029
|
+
})("inline-flex items-center justify-center gap-2 font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary focus-visible:ring-offset-2 focus-visible:ring-offset-wx-bg disabled:pointer-events-none disabled:opacity-50", {
|
|
4030
|
+
variants: {
|
|
4031
|
+
variant: {
|
|
4032
|
+
solid: "bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover",
|
|
4033
|
+
tonal: "bg-wx-bg-elevated text-wx-fg hover:bg-wx-bg-elevated-2",
|
|
4034
|
+
ghost: "bg-transparent text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg",
|
|
4035
|
+
outline: "border border-wx-border bg-transparent text-wx-fg hover:bg-wx-bg-elevated"
|
|
4036
|
+
},
|
|
4037
|
+
size: {
|
|
4038
|
+
sm: "h-8 px-3 text-xs rounded-wx-sm whitespace-nowrap",
|
|
4039
|
+
md: "h-10 px-4 text-sm rounded-wx whitespace-nowrap",
|
|
4040
|
+
lg: "h-12 px-5 text-sm rounded-wx-lg whitespace-nowrap",
|
|
4041
|
+
tile: "w-full px-5 py-5 text-base rounded-wx-lg",
|
|
4042
|
+
icon: "h-9 w-9 rounded-full whitespace-nowrap"
|
|
4043
|
+
}
|
|
4044
|
+
},
|
|
4045
|
+
defaultVariants: {
|
|
4046
|
+
variant: "solid",
|
|
4047
|
+
size: "md"
|
|
4048
|
+
}
|
|
4049
|
+
}), wi = W.forwardRef(({ className: e, variant: t, size: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ We(r ? hi : "button", {
|
|
4050
|
+
ref: a,
|
|
4051
|
+
className: He(Ci({
|
|
4052
|
+
variant: t,
|
|
4053
|
+
size: n,
|
|
4054
|
+
className: e
|
|
4055
|
+
})),
|
|
4056
|
+
...i
|
|
4057
|
+
}));
|
|
4058
|
+
wi.displayName = "Button";
|
|
4059
|
+
//#endregion
|
|
4060
|
+
//#region lib/graphql/queries/generated/help.generated.tsx
|
|
4061
|
+
var Ti = {}, Ei = D`
|
|
4062
|
+
query VisitorHelpFolders($parentId: ID, $locale: String) {
|
|
4063
|
+
visitorHelpFolders(parentId: $parentId, locale: $locale) {
|
|
4064
|
+
_id
|
|
4065
|
+
name
|
|
4066
|
+
slug
|
|
4067
|
+
description
|
|
4068
|
+
parentId
|
|
4069
|
+
ancestors
|
|
4070
|
+
order
|
|
4071
|
+
articleCount
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
`;
|
|
4075
|
+
function Di(e) {
|
|
4076
|
+
return C(Ei, {
|
|
4077
|
+
...Ti,
|
|
4078
|
+
...e
|
|
4079
|
+
});
|
|
4080
|
+
}
|
|
4081
|
+
D`
|
|
4082
|
+
query VisitorHelpTags($locale: String) {
|
|
4083
|
+
visitorHelpTags(locale: $locale) {
|
|
4084
|
+
_id
|
|
4085
|
+
slug
|
|
4086
|
+
label
|
|
4087
|
+
description
|
|
4088
|
+
}
|
|
4089
|
+
}
|
|
4090
|
+
`;
|
|
4091
|
+
var Oi = D`
|
|
4092
|
+
query VisitorHelpList($args: VisitorHelpListArgs) {
|
|
4093
|
+
visitorHelpList(args: $args) {
|
|
4094
|
+
items {
|
|
4095
|
+
_id
|
|
4096
|
+
title
|
|
4097
|
+
slug
|
|
4098
|
+
excerpt
|
|
4099
|
+
locale
|
|
4100
|
+
publishedAt
|
|
4101
|
+
order
|
|
4102
|
+
reactionCounts
|
|
4103
|
+
folder {
|
|
4104
|
+
_id
|
|
4105
|
+
name
|
|
4106
|
+
}
|
|
4107
|
+
tags {
|
|
4108
|
+
_id
|
|
4109
|
+
slug
|
|
4110
|
+
label
|
|
4111
|
+
}
|
|
4112
|
+
authors {
|
|
4113
|
+
_id
|
|
4114
|
+
name
|
|
4115
|
+
photo {
|
|
4116
|
+
_id
|
|
4117
|
+
url
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4120
|
+
coverImageUrl {
|
|
4121
|
+
_id
|
|
4122
|
+
url
|
|
4123
|
+
}
|
|
4124
|
+
}
|
|
4125
|
+
meta {
|
|
4126
|
+
totalCount
|
|
4127
|
+
currentPage
|
|
4128
|
+
totalPages
|
|
4129
|
+
hasNextPage
|
|
4130
|
+
hasPreviousPage
|
|
4131
|
+
}
|
|
4132
|
+
}
|
|
4133
|
+
}
|
|
4134
|
+
`;
|
|
4135
|
+
function ki(e) {
|
|
4136
|
+
return C(Oi, {
|
|
4137
|
+
...Ti,
|
|
4138
|
+
...e
|
|
4139
|
+
});
|
|
4140
|
+
}
|
|
4141
|
+
var Ai = D`
|
|
4142
|
+
query VisitorHelpArticle($args: VisitorHelpArticleArgs!) {
|
|
4143
|
+
visitorHelpArticle(args: $args) {
|
|
4144
|
+
_id
|
|
4145
|
+
title
|
|
4146
|
+
slug
|
|
4147
|
+
excerpt
|
|
4148
|
+
content
|
|
4149
|
+
contentFormat
|
|
4150
|
+
locale
|
|
4151
|
+
publishedAt
|
|
4152
|
+
viewCount
|
|
4153
|
+
reactionCounts
|
|
4154
|
+
viewerReaction
|
|
4155
|
+
folder {
|
|
4156
|
+
_id
|
|
4157
|
+
name
|
|
4158
|
+
ancestors
|
|
4159
|
+
}
|
|
4160
|
+
ancestors
|
|
4161
|
+
authors {
|
|
4162
|
+
_id
|
|
4163
|
+
name
|
|
4164
|
+
photo {
|
|
4165
|
+
_id
|
|
4166
|
+
url
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
tags {
|
|
4170
|
+
_id
|
|
4171
|
+
slug
|
|
4172
|
+
label
|
|
4173
|
+
}
|
|
4174
|
+
coverImageUrl {
|
|
4175
|
+
_id
|
|
4176
|
+
url
|
|
4177
|
+
}
|
|
4178
|
+
canonicalUrl
|
|
4179
|
+
translations {
|
|
4180
|
+
_id
|
|
4181
|
+
locale
|
|
4182
|
+
slug
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
`;
|
|
4187
|
+
function ji(e) {
|
|
4188
|
+
return C(Ai, {
|
|
4189
|
+
...Ti,
|
|
4190
|
+
...e
|
|
4191
|
+
});
|
|
4192
|
+
}
|
|
4193
|
+
var Mi = D`
|
|
4194
|
+
query VisitorHelpArticlesByIds($ids: [ID!]!, $locale: String) {
|
|
4195
|
+
visitorHelpArticlesByIds(ids: $ids, locale: $locale) {
|
|
4196
|
+
_id
|
|
4197
|
+
title
|
|
4198
|
+
slug
|
|
4199
|
+
excerpt
|
|
4200
|
+
publishedAt
|
|
4201
|
+
coverImageUrl {
|
|
4202
|
+
_id
|
|
4203
|
+
url
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
}
|
|
4207
|
+
`;
|
|
4208
|
+
function Ni(e) {
|
|
4209
|
+
return C(Mi, {
|
|
4210
|
+
...Ti,
|
|
4211
|
+
...e
|
|
4212
|
+
});
|
|
4213
|
+
}
|
|
4214
|
+
var Pi = D`
|
|
4215
|
+
query VisitorHelpRelated($articleId: ID!, $limit: Int, $locale: String) {
|
|
4216
|
+
visitorHelpRelated(articleId: $articleId, limit: $limit, locale: $locale) {
|
|
4217
|
+
_id
|
|
4218
|
+
title
|
|
4219
|
+
slug
|
|
4220
|
+
excerpt
|
|
4221
|
+
coverImageUrl {
|
|
4222
|
+
_id
|
|
4223
|
+
url
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
}
|
|
4227
|
+
`;
|
|
4228
|
+
function Fi(e) {
|
|
4229
|
+
return C(Pi, {
|
|
4230
|
+
...Ti,
|
|
4231
|
+
...e
|
|
4232
|
+
});
|
|
4233
|
+
}
|
|
4234
|
+
var Ii = D`
|
|
4235
|
+
mutation RecordVisitorHelpView($articleId: String!) {
|
|
4236
|
+
recordVisitorHelpView(articleId: $articleId) {
|
|
4237
|
+
ok
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
`;
|
|
4241
|
+
function Li(e) {
|
|
4242
|
+
return Se(Ii, {
|
|
4243
|
+
...Ti,
|
|
4244
|
+
...e
|
|
4245
|
+
});
|
|
4246
|
+
}
|
|
4247
|
+
//#endregion
|
|
4248
|
+
export { Yr as _, ki as a, mi as c, ai as d, ri as f, ni as g, Qr as h, Di as i, li as l, ei as m, ji as n, Fi as o, Xr as p, Ni as r, wi as s, Li as t, si as u };
|
|
4249
|
+
|
|
4250
|
+
//# sourceMappingURL=widget-react-BAOIDvhV.js.map
|