@noxickon/onyx 0.0.4-dev.6 → 0.0.4-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{useAuth-DDN3TSQr.js → AuthContext-CaZKJMxQ.js} +170 -212
- package/dist/chunks/{useAuth-BTjqOcRK.js → AuthContext-uU1aP9gj.js} +10 -10
- package/dist/chunks/index-CPwC_oqh.js +561 -0
- package/dist/chunks/index-DY808_YF.js +2 -0
- package/dist/chunks/tslib.es6-ci7D5hcx.js +44 -0
- package/dist/chunks/tslib.es6-nRfFZWHa.js +1 -0
- package/dist/chunks/useAuth-BsWbsZD5.js +1 -0
- package/dist/chunks/useAuth-CkaMowHd.js +11 -0
- package/dist/chunks/{useForm-D4co95Vn.js → useForm-DfmfCtGn.js} +4 -3
- package/dist/chunks/useForm-OVVxm4qZ.js +18 -0
- package/dist/chunks/useQuery-Dh3SZN5S.js +1482 -0
- package/dist/chunks/useQuery-y4De9xeL.js +2 -0
- package/dist/context/context.cjs.js +1 -1
- package/dist/context/context.es.js +36 -3
- package/dist/context.d.ts +5 -3
- package/dist/hooks/hooks.cjs.js +6 -6
- package/dist/hooks/hooks.es.js +29 -27
- package/dist/onyx.cjs.js +1 -1
- package/dist/onyx.es.js +38 -37
- package/dist/pages/pages.cjs.js +2 -2
- package/dist/pages/pages.es.js +30 -21
- package/dist/pages.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/useForm-DUviJ7xS.js +0 -18
- package/dist/chunks/useQuery-BvCyJMae.js +0 -2065
- package/dist/chunks/useQuery-DTNHO7so.js +0 -3
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
import { b as V, _ as N, c as v } from "./tslib.es6-ci7D5hcx.js";
|
|
2
|
+
import { g as ee } from "./_commonjsHelpers-C6fGbg64.js";
|
|
3
|
+
import te from "react";
|
|
4
|
+
function re(t, e) {
|
|
5
|
+
for (var r = 0; r < e.length; r++) {
|
|
6
|
+
const n = e[r];
|
|
7
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
8
|
+
for (const i in n)
|
|
9
|
+
if (i !== "default" && !(i in t)) {
|
|
10
|
+
const o = Object.getOwnPropertyDescriptor(n, i);
|
|
11
|
+
o && Object.defineProperty(t, i, o.get ? o : {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: () => n[i]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
+
}
|
|
20
|
+
var S = "Invariant Violation", I = Object.setPrototypeOf, ne = I === void 0 ? function(t, e) {
|
|
21
|
+
return t.__proto__ = e, t;
|
|
22
|
+
} : I, $ = (
|
|
23
|
+
/** @class */
|
|
24
|
+
function(t) {
|
|
25
|
+
V(e, t);
|
|
26
|
+
function e(r) {
|
|
27
|
+
r === void 0 && (r = S);
|
|
28
|
+
var n = t.call(this, typeof r == "number" ? S + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
29
|
+
return n.framesToPop = 1, n.name = S, ne(n, e.prototype), n;
|
|
30
|
+
}
|
|
31
|
+
return e;
|
|
32
|
+
}(Error)
|
|
33
|
+
);
|
|
34
|
+
function d(t, e) {
|
|
35
|
+
if (!t)
|
|
36
|
+
throw new $(e);
|
|
37
|
+
}
|
|
38
|
+
var B = ["debug", "log", "warn", "error", "silent"], ie = B.indexOf("log");
|
|
39
|
+
function m(t) {
|
|
40
|
+
return function() {
|
|
41
|
+
if (B.indexOf(t) >= ie) {
|
|
42
|
+
var e = console[t] || console.log;
|
|
43
|
+
return e.apply(console, arguments);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
(function(t) {
|
|
48
|
+
t.debug = m("debug"), t.log = m("log"), t.warn = m("warn"), t.error = m("error");
|
|
49
|
+
})(d || (d = {}));
|
|
50
|
+
var J = "3.13.8";
|
|
51
|
+
function c(t) {
|
|
52
|
+
try {
|
|
53
|
+
return t();
|
|
54
|
+
} catch {
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const j = c(function() {
|
|
58
|
+
return globalThis;
|
|
59
|
+
}) || c(function() {
|
|
60
|
+
return window;
|
|
61
|
+
}) || c(function() {
|
|
62
|
+
return self;
|
|
63
|
+
}) || c(function() {
|
|
64
|
+
return global;
|
|
65
|
+
}) || // We don't expect the Function constructor ever to be invoked at runtime, as
|
|
66
|
+
// long as at least one of globalThis, window, self, or global is defined, so
|
|
67
|
+
// we are under no obligation to make it easy for static analysis tools to
|
|
68
|
+
// detect syntactic usage of the Function constructor. If you think you can
|
|
69
|
+
// improve your static analysis to detect this obfuscation, think again. This
|
|
70
|
+
// is an arms race you cannot win, at least not in JavaScript.
|
|
71
|
+
c(function() {
|
|
72
|
+
return c.constructor("return this")();
|
|
73
|
+
});
|
|
74
|
+
var T = /* @__PURE__ */ new Map();
|
|
75
|
+
function oe(t) {
|
|
76
|
+
var e = T.get(t) || 1;
|
|
77
|
+
return T.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
|
|
78
|
+
}
|
|
79
|
+
function se(t, e) {
|
|
80
|
+
var r = oe("stringifyForDisplay");
|
|
81
|
+
return JSON.stringify(t, function(n, i) {
|
|
82
|
+
return i === void 0 ? r : i;
|
|
83
|
+
}, e).split(JSON.stringify(r)).join("<undefined>");
|
|
84
|
+
}
|
|
85
|
+
function E(t) {
|
|
86
|
+
return function(e) {
|
|
87
|
+
for (var r = [], n = 1; n < arguments.length; n++)
|
|
88
|
+
r[n - 1] = arguments[n];
|
|
89
|
+
if (typeof e == "number") {
|
|
90
|
+
var i = e;
|
|
91
|
+
e = C(i), e || (e = x(i, r), r = []);
|
|
92
|
+
}
|
|
93
|
+
t.apply(void 0, [e].concat(r));
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
var p = Object.assign(function(e, r) {
|
|
97
|
+
for (var n = [], i = 2; i < arguments.length; i++)
|
|
98
|
+
n[i - 2] = arguments[i];
|
|
99
|
+
e || d(e, C(r, n) || x(r, n));
|
|
100
|
+
}, {
|
|
101
|
+
debug: E(d.debug),
|
|
102
|
+
log: E(d.log),
|
|
103
|
+
warn: E(d.warn),
|
|
104
|
+
error: E(d.error)
|
|
105
|
+
});
|
|
106
|
+
function Te(t) {
|
|
107
|
+
for (var e = [], r = 1; r < arguments.length; r++)
|
|
108
|
+
e[r - 1] = arguments[r];
|
|
109
|
+
return new $(C(t, e) || x(t, e));
|
|
110
|
+
}
|
|
111
|
+
var L = Symbol.for("ApolloErrorMessageHandler_" + J);
|
|
112
|
+
function Y(t) {
|
|
113
|
+
if (typeof t == "string")
|
|
114
|
+
return t;
|
|
115
|
+
try {
|
|
116
|
+
return se(t, 2).slice(0, 1e3);
|
|
117
|
+
} catch {
|
|
118
|
+
return "<non-serializable>";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function C(t, e) {
|
|
122
|
+
if (e === void 0 && (e = []), !!t)
|
|
123
|
+
return j[L] && j[L](t, e.map(Y));
|
|
124
|
+
}
|
|
125
|
+
function x(t, e) {
|
|
126
|
+
if (e === void 0 && (e = []), !!t)
|
|
127
|
+
return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
|
|
128
|
+
version: J,
|
|
129
|
+
message: t,
|
|
130
|
+
args: e.map(Y)
|
|
131
|
+
})));
|
|
132
|
+
}
|
|
133
|
+
var ae = c(function() {
|
|
134
|
+
return navigator.product;
|
|
135
|
+
}) == "ReactNative", le = typeof Symbol == "function" && typeof Symbol.for == "function", ue = typeof c(function() {
|
|
136
|
+
return window.document.createElement;
|
|
137
|
+
}) == "function", ce = (
|
|
138
|
+
// Following advice found in this comment from @domenic (maintainer of jsdom):
|
|
139
|
+
// https://github.com/jsdom/jsdom/issues/1537#issuecomment-229405327
|
|
140
|
+
//
|
|
141
|
+
// Since we control the version of Jest and jsdom used when running Apollo
|
|
142
|
+
// Client tests, and that version is recent enought to include " jsdom/x.y.z"
|
|
143
|
+
// at the end of the user agent string, I believe this case is all we need to
|
|
144
|
+
// check. Testing for "Node.js" was recommended for backwards compatibility
|
|
145
|
+
// with older version of jsdom, but we don't have that problem.
|
|
146
|
+
c(function() {
|
|
147
|
+
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
148
|
+
}) || !1
|
|
149
|
+
), Le = (ue || ae) && !ce;
|
|
150
|
+
function fe(t) {
|
|
151
|
+
return t !== null && typeof t == "object";
|
|
152
|
+
}
|
|
153
|
+
function he() {
|
|
154
|
+
}
|
|
155
|
+
class D {
|
|
156
|
+
constructor(e = 1 / 0, r = he) {
|
|
157
|
+
this.max = e, this.dispose = r, this.map = /* @__PURE__ */ new Map(), this.newest = null, this.oldest = null;
|
|
158
|
+
}
|
|
159
|
+
has(e) {
|
|
160
|
+
return this.map.has(e);
|
|
161
|
+
}
|
|
162
|
+
get(e) {
|
|
163
|
+
const r = this.getNode(e);
|
|
164
|
+
return r && r.value;
|
|
165
|
+
}
|
|
166
|
+
get size() {
|
|
167
|
+
return this.map.size;
|
|
168
|
+
}
|
|
169
|
+
getNode(e) {
|
|
170
|
+
const r = this.map.get(e);
|
|
171
|
+
if (r && r !== this.newest) {
|
|
172
|
+
const { older: n, newer: i } = r;
|
|
173
|
+
i && (i.older = n), n && (n.newer = i), r.older = this.newest, r.older.newer = r, r.newer = null, this.newest = r, r === this.oldest && (this.oldest = i);
|
|
174
|
+
}
|
|
175
|
+
return r;
|
|
176
|
+
}
|
|
177
|
+
set(e, r) {
|
|
178
|
+
let n = this.getNode(e);
|
|
179
|
+
return n ? n.value = r : (n = {
|
|
180
|
+
key: e,
|
|
181
|
+
value: r,
|
|
182
|
+
newer: null,
|
|
183
|
+
older: this.newest
|
|
184
|
+
}, this.newest && (this.newest.newer = n), this.newest = n, this.oldest = this.oldest || n, this.map.set(e, n), n.value);
|
|
185
|
+
}
|
|
186
|
+
clean() {
|
|
187
|
+
for (; this.oldest && this.map.size > this.max; )
|
|
188
|
+
this.delete(this.oldest.key);
|
|
189
|
+
}
|
|
190
|
+
delete(e) {
|
|
191
|
+
const r = this.map.get(e);
|
|
192
|
+
return r ? (r === this.newest && (this.newest = r.older), r === this.oldest && (this.oldest = r.newer), r.newer && (r.newer.older = r.older), r.older && (r.older.newer = r.newer), this.map.delete(e), this.dispose(r.value, e), !0) : !1;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function z() {
|
|
196
|
+
}
|
|
197
|
+
const de = z, pe = typeof WeakRef < "u" ? WeakRef : function(t) {
|
|
198
|
+
return { deref: () => t };
|
|
199
|
+
}, ge = typeof WeakMap < "u" ? WeakMap : Map, ve = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
|
|
200
|
+
return {
|
|
201
|
+
register: z,
|
|
202
|
+
unregister: z
|
|
203
|
+
};
|
|
204
|
+
}, ye = 10024;
|
|
205
|
+
class U {
|
|
206
|
+
constructor(e = 1 / 0, r = de) {
|
|
207
|
+
this.max = e, this.dispose = r, this.map = new ge(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
|
|
208
|
+
const n = this.unfinalizedNodes.values();
|
|
209
|
+
for (let i = 0; i < ye; i++) {
|
|
210
|
+
const o = n.next().value;
|
|
211
|
+
if (!o)
|
|
212
|
+
break;
|
|
213
|
+
this.unfinalizedNodes.delete(o);
|
|
214
|
+
const s = o.key;
|
|
215
|
+
delete o.key, o.keyRef = new pe(s), this.registry.register(s, o, o);
|
|
216
|
+
}
|
|
217
|
+
this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
|
|
218
|
+
}, this.registry = new ve(this.deleteNode.bind(this));
|
|
219
|
+
}
|
|
220
|
+
has(e) {
|
|
221
|
+
return this.map.has(e);
|
|
222
|
+
}
|
|
223
|
+
get(e) {
|
|
224
|
+
const r = this.getNode(e);
|
|
225
|
+
return r && r.value;
|
|
226
|
+
}
|
|
227
|
+
getNode(e) {
|
|
228
|
+
const r = this.map.get(e);
|
|
229
|
+
if (r && r !== this.newest) {
|
|
230
|
+
const { older: n, newer: i } = r;
|
|
231
|
+
i && (i.older = n), n && (n.newer = i), r.older = this.newest, r.older.newer = r, r.newer = null, this.newest = r, r === this.oldest && (this.oldest = i);
|
|
232
|
+
}
|
|
233
|
+
return r;
|
|
234
|
+
}
|
|
235
|
+
set(e, r) {
|
|
236
|
+
let n = this.getNode(e);
|
|
237
|
+
return n ? n.value = r : (n = {
|
|
238
|
+
key: e,
|
|
239
|
+
value: r,
|
|
240
|
+
newer: null,
|
|
241
|
+
older: this.newest
|
|
242
|
+
}, this.newest && (this.newest.newer = n), this.newest = n, this.oldest = this.oldest || n, this.scheduleFinalization(n), this.map.set(e, n), this.size++, n.value);
|
|
243
|
+
}
|
|
244
|
+
clean() {
|
|
245
|
+
for (; this.oldest && this.size > this.max; )
|
|
246
|
+
this.deleteNode(this.oldest);
|
|
247
|
+
}
|
|
248
|
+
deleteNode(e) {
|
|
249
|
+
e === this.newest && (this.newest = e.older), e === this.oldest && (this.oldest = e.newer), e.newer && (e.newer.older = e.older), e.older && (e.older.newer = e.newer), this.size--;
|
|
250
|
+
const r = e.key || e.keyRef && e.keyRef.deref();
|
|
251
|
+
this.dispose(e.value, r), e.keyRef ? this.registry.unregister(e) : this.unfinalizedNodes.delete(e), r && this.map.delete(r);
|
|
252
|
+
}
|
|
253
|
+
delete(e) {
|
|
254
|
+
const r = this.map.get(e);
|
|
255
|
+
return r ? (this.deleteNode(r), !0) : !1;
|
|
256
|
+
}
|
|
257
|
+
scheduleFinalization(e) {
|
|
258
|
+
this.unfinalizedNodes.add(e), this.finalizationScheduled || (this.finalizationScheduled = !0, queueMicrotask(this.finalize));
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
var O = /* @__PURE__ */ new WeakSet();
|
|
262
|
+
function X(t) {
|
|
263
|
+
t.size <= (t.max || -1) || O.has(t) || (O.add(t), setTimeout(function() {
|
|
264
|
+
t.clean(), O.delete(t);
|
|
265
|
+
}, 100));
|
|
266
|
+
}
|
|
267
|
+
var we = function(t, e) {
|
|
268
|
+
var r = new U(t, e);
|
|
269
|
+
return r.set = function(n, i) {
|
|
270
|
+
var o = U.prototype.set.call(this, n, i);
|
|
271
|
+
return X(this), o;
|
|
272
|
+
}, r;
|
|
273
|
+
}, De = function(t, e) {
|
|
274
|
+
var r = new D(t, e);
|
|
275
|
+
return r.set = function(n, i) {
|
|
276
|
+
var o = D.prototype.set.call(this, n, i);
|
|
277
|
+
return X(this), o;
|
|
278
|
+
}, r;
|
|
279
|
+
}, be = Symbol.for("apollo.cacheSize"), me = N({}, j[be]), Ee = {};
|
|
280
|
+
function _e(t, e) {
|
|
281
|
+
Ee[t] = e;
|
|
282
|
+
}
|
|
283
|
+
function F() {
|
|
284
|
+
for (var t = [], e = 0; e < arguments.length; e++)
|
|
285
|
+
t[e] = arguments[e];
|
|
286
|
+
var r = /* @__PURE__ */ Object.create(null);
|
|
287
|
+
return t.forEach(function(n) {
|
|
288
|
+
n && Object.keys(n).forEach(function(i) {
|
|
289
|
+
var o = n[i];
|
|
290
|
+
o !== void 0 && (r[i] = o);
|
|
291
|
+
});
|
|
292
|
+
}), r;
|
|
293
|
+
}
|
|
294
|
+
function Ue(t, e) {
|
|
295
|
+
return F(t, e, e.variables && {
|
|
296
|
+
variables: F(N(N({}, t && t.variables), e.variables))
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function Fe(t) {
|
|
300
|
+
return t.hasOwnProperty("graphQLErrors");
|
|
301
|
+
}
|
|
302
|
+
var Se = function(t) {
|
|
303
|
+
var e = v(v(v([], t.graphQLErrors, !0), t.clientErrors, !0), t.protocolErrors, !0);
|
|
304
|
+
return t.networkError && e.push(t.networkError), e.map(function(r) {
|
|
305
|
+
return fe(r) && r.message || "Error message not found.";
|
|
306
|
+
}).join(`
|
|
307
|
+
`);
|
|
308
|
+
}, Pe = (
|
|
309
|
+
/** @class */
|
|
310
|
+
function(t) {
|
|
311
|
+
V(e, t);
|
|
312
|
+
function e(r) {
|
|
313
|
+
var n = r.graphQLErrors, i = r.protocolErrors, o = r.clientErrors, s = r.networkError, a = r.errorMessage, u = r.extraInfo, l = t.call(this, a) || this;
|
|
314
|
+
return l.name = "ApolloError", l.graphQLErrors = n || [], l.protocolErrors = i || [], l.clientErrors = o || [], l.networkError = s || null, l.message = a || Se(l), l.extraInfo = u, l.cause = v(v(v([
|
|
315
|
+
s
|
|
316
|
+
], n || [], !0), i || [], !0), o || [], !0).find(function(w) {
|
|
317
|
+
return !!w;
|
|
318
|
+
}) || null, l.__proto__ = e.prototype, l;
|
|
319
|
+
}
|
|
320
|
+
return e;
|
|
321
|
+
}(Error)
|
|
322
|
+
);
|
|
323
|
+
const { toString: P, hasOwnProperty: Oe } = Object.prototype, W = Function.prototype.toString, A = /* @__PURE__ */ new Map();
|
|
324
|
+
function We(t, e) {
|
|
325
|
+
try {
|
|
326
|
+
return R(t, e);
|
|
327
|
+
} finally {
|
|
328
|
+
A.clear();
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function R(t, e) {
|
|
332
|
+
if (t === e)
|
|
333
|
+
return !0;
|
|
334
|
+
const r = P.call(t), n = P.call(e);
|
|
335
|
+
if (r !== n)
|
|
336
|
+
return !1;
|
|
337
|
+
switch (r) {
|
|
338
|
+
case "[object Array]":
|
|
339
|
+
if (t.length !== e.length)
|
|
340
|
+
return !1;
|
|
341
|
+
// Fall through to object case...
|
|
342
|
+
case "[object Object]": {
|
|
343
|
+
if (Q(t, e))
|
|
344
|
+
return !0;
|
|
345
|
+
const i = q(t), o = q(e), s = i.length;
|
|
346
|
+
if (s !== o.length)
|
|
347
|
+
return !1;
|
|
348
|
+
for (let a = 0; a < s; ++a)
|
|
349
|
+
if (!Oe.call(e, i[a]))
|
|
350
|
+
return !1;
|
|
351
|
+
for (let a = 0; a < s; ++a) {
|
|
352
|
+
const u = i[a];
|
|
353
|
+
if (!R(t[u], e[u]))
|
|
354
|
+
return !1;
|
|
355
|
+
}
|
|
356
|
+
return !0;
|
|
357
|
+
}
|
|
358
|
+
case "[object Error]":
|
|
359
|
+
return t.name === e.name && t.message === e.message;
|
|
360
|
+
case "[object Number]":
|
|
361
|
+
if (t !== t)
|
|
362
|
+
return e !== e;
|
|
363
|
+
// Fall through to shared +a === +b case...
|
|
364
|
+
case "[object Boolean]":
|
|
365
|
+
case "[object Date]":
|
|
366
|
+
return +t == +e;
|
|
367
|
+
case "[object RegExp]":
|
|
368
|
+
case "[object String]":
|
|
369
|
+
return t == `${e}`;
|
|
370
|
+
case "[object Map]":
|
|
371
|
+
case "[object Set]": {
|
|
372
|
+
if (t.size !== e.size)
|
|
373
|
+
return !1;
|
|
374
|
+
if (Q(t, e))
|
|
375
|
+
return !0;
|
|
376
|
+
const i = t.entries(), o = r === "[object Map]";
|
|
377
|
+
for (; ; ) {
|
|
378
|
+
const s = i.next();
|
|
379
|
+
if (s.done)
|
|
380
|
+
break;
|
|
381
|
+
const [a, u] = s.value;
|
|
382
|
+
if (!e.has(a) || o && !R(u, e.get(a)))
|
|
383
|
+
return !1;
|
|
384
|
+
}
|
|
385
|
+
return !0;
|
|
386
|
+
}
|
|
387
|
+
case "[object Uint16Array]":
|
|
388
|
+
case "[object Uint8Array]":
|
|
389
|
+
// Buffer, in Node.js.
|
|
390
|
+
case "[object Uint32Array]":
|
|
391
|
+
case "[object Int32Array]":
|
|
392
|
+
case "[object Int8Array]":
|
|
393
|
+
case "[object Int16Array]":
|
|
394
|
+
case "[object ArrayBuffer]":
|
|
395
|
+
t = new Uint8Array(t), e = new Uint8Array(e);
|
|
396
|
+
// Fall through...
|
|
397
|
+
case "[object DataView]": {
|
|
398
|
+
let i = t.byteLength;
|
|
399
|
+
if (i === e.byteLength)
|
|
400
|
+
for (; i-- && t[i] === e[i]; )
|
|
401
|
+
;
|
|
402
|
+
return i === -1;
|
|
403
|
+
}
|
|
404
|
+
case "[object AsyncFunction]":
|
|
405
|
+
case "[object GeneratorFunction]":
|
|
406
|
+
case "[object AsyncGeneratorFunction]":
|
|
407
|
+
case "[object Function]": {
|
|
408
|
+
const i = W.call(t);
|
|
409
|
+
return i !== W.call(e) ? !1 : !je(i, Ne);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return !1;
|
|
413
|
+
}
|
|
414
|
+
function q(t) {
|
|
415
|
+
return Object.keys(t).filter(ke, t);
|
|
416
|
+
}
|
|
417
|
+
function ke(t) {
|
|
418
|
+
return this[t] !== void 0;
|
|
419
|
+
}
|
|
420
|
+
const Ne = "{ [native code] }";
|
|
421
|
+
function je(t, e) {
|
|
422
|
+
const r = t.length - e.length;
|
|
423
|
+
return r >= 0 && t.indexOf(e, r) === r;
|
|
424
|
+
}
|
|
425
|
+
function Q(t, e) {
|
|
426
|
+
let r = A.get(t);
|
|
427
|
+
if (r) {
|
|
428
|
+
if (r.has(e))
|
|
429
|
+
return !0;
|
|
430
|
+
} else
|
|
431
|
+
A.set(t, r = /* @__PURE__ */ new Set());
|
|
432
|
+
return r.add(e), !1;
|
|
433
|
+
}
|
|
434
|
+
var k = { exports: {} }, K;
|
|
435
|
+
function ze() {
|
|
436
|
+
return K || (K = 1, function(t) {
|
|
437
|
+
t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = void 0, t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, Object.assign(t.exports, te);
|
|
438
|
+
}(k)), k.exports;
|
|
439
|
+
}
|
|
440
|
+
var y = ze();
|
|
441
|
+
const Ae = /* @__PURE__ */ ee(y), Re = /* @__PURE__ */ re({
|
|
442
|
+
__proto__: null,
|
|
443
|
+
default: Ae
|
|
444
|
+
}, [y]);
|
|
445
|
+
var G = le ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
446
|
+
function Ce() {
|
|
447
|
+
p("createContext" in Re, 54);
|
|
448
|
+
var t = y.createContext[G];
|
|
449
|
+
return t || (Object.defineProperty(y.createContext, G, {
|
|
450
|
+
value: t = y.createContext({}),
|
|
451
|
+
enumerable: !1,
|
|
452
|
+
writable: !1,
|
|
453
|
+
configurable: !0
|
|
454
|
+
}), t.displayName = "ApolloContext"), t;
|
|
455
|
+
}
|
|
456
|
+
function qe(t) {
|
|
457
|
+
var e = y.useContext(Ce()), r = t || e.client;
|
|
458
|
+
return p(!!r, 58), r;
|
|
459
|
+
}
|
|
460
|
+
var f;
|
|
461
|
+
(function(t) {
|
|
462
|
+
t[t.Query = 0] = "Query", t[t.Mutation = 1] = "Mutation", t[t.Subscription = 2] = "Subscription";
|
|
463
|
+
})(f || (f = {}));
|
|
464
|
+
var g;
|
|
465
|
+
function H(t) {
|
|
466
|
+
var e;
|
|
467
|
+
switch (t) {
|
|
468
|
+
case f.Query:
|
|
469
|
+
e = "Query";
|
|
470
|
+
break;
|
|
471
|
+
case f.Mutation:
|
|
472
|
+
e = "Mutation";
|
|
473
|
+
break;
|
|
474
|
+
case f.Subscription:
|
|
475
|
+
e = "Subscription";
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
return e;
|
|
479
|
+
}
|
|
480
|
+
function Z(t) {
|
|
481
|
+
g || (g = new we(
|
|
482
|
+
me.parser || 1e3
|
|
483
|
+
/* defaultCacheSizes.parser */
|
|
484
|
+
));
|
|
485
|
+
var e = g.get(t);
|
|
486
|
+
if (e)
|
|
487
|
+
return e;
|
|
488
|
+
var r, n, i;
|
|
489
|
+
p(!!t && !!t.kind, 70, t);
|
|
490
|
+
for (var o = [], s = [], a = [], u = [], l = 0, w = t.definitions; l < w.length; l++) {
|
|
491
|
+
var h = w[l];
|
|
492
|
+
if (h.kind === "FragmentDefinition") {
|
|
493
|
+
o.push(h);
|
|
494
|
+
continue;
|
|
495
|
+
}
|
|
496
|
+
if (h.kind === "OperationDefinition")
|
|
497
|
+
switch (h.operation) {
|
|
498
|
+
case "query":
|
|
499
|
+
s.push(h);
|
|
500
|
+
break;
|
|
501
|
+
case "mutation":
|
|
502
|
+
a.push(h);
|
|
503
|
+
break;
|
|
504
|
+
case "subscription":
|
|
505
|
+
u.push(h);
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
p(!o.length || s.length || a.length || u.length, 71), p(
|
|
510
|
+
s.length + a.length + u.length <= 1,
|
|
511
|
+
72,
|
|
512
|
+
t,
|
|
513
|
+
s.length,
|
|
514
|
+
u.length,
|
|
515
|
+
a.length
|
|
516
|
+
), n = s.length ? f.Query : f.Mutation, !s.length && !a.length && (n = f.Subscription);
|
|
517
|
+
var _ = s.length ? s : a.length ? a : u;
|
|
518
|
+
p(_.length === 1, 73, t, _.length);
|
|
519
|
+
var b = _[0];
|
|
520
|
+
r = b.variableDefinitions || [], b.name && b.name.kind === "Name" ? i = b.name.value : i = "data";
|
|
521
|
+
var M = { name: i, type: n, variables: r };
|
|
522
|
+
return g.set(t, M), M;
|
|
523
|
+
}
|
|
524
|
+
Z.resetCache = function() {
|
|
525
|
+
g = void 0;
|
|
526
|
+
};
|
|
527
|
+
globalThis.__DEV__ !== !1 && _e("parser", function() {
|
|
528
|
+
return g ? g.size : 0;
|
|
529
|
+
});
|
|
530
|
+
function Qe(t, e) {
|
|
531
|
+
var r = Z(t), n = H(e), i = H(r.type);
|
|
532
|
+
p(
|
|
533
|
+
r.type === e,
|
|
534
|
+
74,
|
|
535
|
+
n,
|
|
536
|
+
n,
|
|
537
|
+
i
|
|
538
|
+
);
|
|
539
|
+
}
|
|
540
|
+
export {
|
|
541
|
+
De as A,
|
|
542
|
+
f as D,
|
|
543
|
+
Re as R,
|
|
544
|
+
fe as a,
|
|
545
|
+
le as b,
|
|
546
|
+
me as c,
|
|
547
|
+
F as d,
|
|
548
|
+
We as e,
|
|
549
|
+
Fe as f,
|
|
550
|
+
Pe as g,
|
|
551
|
+
y as h,
|
|
552
|
+
p as i,
|
|
553
|
+
Le as j,
|
|
554
|
+
Ce as k,
|
|
555
|
+
ue as l,
|
|
556
|
+
Ue as m,
|
|
557
|
+
Te as n,
|
|
558
|
+
_e as r,
|
|
559
|
+
qe as u,
|
|
560
|
+
Qe as v
|
|
561
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const c=require("./tslib.es6-nRfFZWHa.js"),oe=require("./_commonjsHelpers-DwGv2jUC.js"),ie=require("react");function se(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var E="Invariant Violation",M=Object.setPrototypeOf,ae=M===void 0?function(t,e){return t.__proto__=e,t}:M,H=function(t){c.__extends(e,t);function e(r){r===void 0&&(r=E);var n=t.call(this,typeof r=="number"?E+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=E,ae(n,e.prototype),n}return e}(Error);function p(t,e){if(!t)throw new H(e)}var K=["debug","log","warn","error","silent"],le=K.indexOf("log");function b(t){return function(){if(K.indexOf(t)>=le){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=b("debug"),t.log=b("log"),t.warn=b("warn"),t.error=b("error")})(p||(p={}));var V="3.13.8";function f(t){try{return t()}catch{}}const N=f(function(){return globalThis})||f(function(){return window})||f(function(){return self})||f(function(){return global})||f(function(){return f.constructor("return this")()});var T=new Map;function ue(t){var e=T.get(t)||1;return T.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function ce(t,e){var r=ue("stringifyForDisplay");return JSON.stringify(t,function(n,o){return o===void 0?r:o},e).split(JSON.stringify(r)).join("<undefined>")}function _(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof e=="number"){var o=e;e=C(o),e||(e=R(o,r),r=[])}t.apply(void 0,[e].concat(r))}}var h=Object.assign(function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e||p(e,C(r,n)||R(r,n))},{debug:_(p.debug),log:_(p.log),warn:_(p.warn),error:_(p.error)});function fe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new H(C(t,e)||R(t,e))}var D=Symbol.for("ApolloErrorMessageHandler_"+V);function $(t){if(typeof t=="string")return t;try{return ce(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function C(t,e){if(e===void 0&&(e=[]),!!t)return N[D]&&N[D](t,e.map($))}function R(t,e){if(e===void 0&&(e=[]),!!t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:V,message:t,args:e.map($)})))}var he=f(function(){return navigator.product})=="ReactNative",B=typeof Symbol=="function"&&typeof Symbol.for=="function",J=typeof f(function(){return window.document.createElement})=="function",de=f(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,pe=(J||he)&&!de;function Y(t){return t!==null&&typeof t=="object"}function ge(){}class I{constructor(e=1/0,r=ge){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function k(){}const ve=k,ye=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},we=typeof WeakMap<"u"?WeakMap:Map,be=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:k,unregister:k}},_e=10024;class L{constructor(e=1/0,r=ve){this.max=e,this.dispose=r,this.map=new we,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let o=0;o<_e;o++){const i=n.next().value;if(!i)break;this.unfinalizedNodes.delete(i);const s=i.key;delete i.key,i.keyRef=new ye(s),this.registry.register(s,i,i)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new be(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var S=new WeakSet;function X(t){t.size<=(t.max||-1)||S.has(t)||(S.add(t),setTimeout(function(){t.clean(),S.delete(t)},100))}var me=function(t,e){var r=new L(t,e);return r.set=function(n,o){var i=L.prototype.set.call(this,n,o);return X(this),i},r},Ee=function(t,e){var r=new I(t,e);return r.set=function(n,o){var i=I.prototype.set.call(this,n,o);return X(this),i},r},Se=Symbol.for("apollo.cacheSize"),Z=c.__assign({},N[Se]),Oe={};function ee(t,e){Oe[t]=e}function A(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach(function(n){n&&Object.keys(n).forEach(function(o){var i=n[o];i!==void 0&&(r[o]=i)})}),r}function Ne(t,e){return A(t,e,e.variables&&{variables:A(c.__assign(c.__assign({},t&&t.variables),e.variables))})}function ke(t){return t.hasOwnProperty("graphQLErrors")}var Ae=function(t){var e=c.__spreadArray(c.__spreadArray(c.__spreadArray([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(r){return Y(r)&&r.message||"Error message not found."}).join(`
|
|
2
|
+
`)},je=function(t){c.__extends(e,t);function e(r){var n=r.graphQLErrors,o=r.protocolErrors,i=r.clientErrors,s=r.networkError,a=r.errorMessage,u=r.extraInfo,l=t.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=o||[],l.clientErrors=i||[],l.networkError=s||null,l.message=a||Ae(l),l.extraInfo=u,l.cause=c.__spreadArray(c.__spreadArray(c.__spreadArray([s],n||[],!0),o||[],!0),i||[],!0).find(function(y){return!!y})||null,l.__proto__=e.prototype,l}return e}(Error);const{toString:U,hasOwnProperty:ze}=Object.prototype,F=Function.prototype.toString,j=new Map;function Ce(t,e){try{return z(t,e)}finally{j.clear()}}function z(t,e){if(t===e)return!0;const r=U.call(t),n=U.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(P(t,e))return!0;const o=q(t),i=q(e),s=o.length;if(s!==i.length)return!1;for(let a=0;a<s;++a)if(!ze.call(e,o[a]))return!1;for(let a=0;a<s;++a){const u=o[a];if(!z(t[u],e[u]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(P(t,e))return!0;const o=t.entries(),i=r==="[object Map]";for(;;){const s=o.next();if(s.done)break;const[a,u]=s.value;if(!e.has(a)||i&&!z(u,e.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let o=t.byteLength;if(o===e.byteLength)for(;o--&&t[o]===e[o];);return o===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const o=F.call(t);return o!==F.call(e)?!1:!Me(o,xe)}}return!1}function q(t){return Object.keys(t).filter(Re,t)}function Re(t){return this[t]!==void 0}const xe="{ [native code] }";function Me(t,e){const r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r}function P(t,e){let r=j.get(t);if(r){if(r.has(e))return!0}else j.set(t,r=new Set);return r.add(e),!1}var O={exports:{}},W;function Te(){return W||(W=1,function(t){t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(t.exports,ie)}(O)),O.exports}var v=Te();const De=oe.getDefaultExportFromCjs(v),te=se({__proto__:null,default:De},[v]);var Q=B?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function re(){h("createContext"in te,54);var t=v.createContext[Q];return t||(Object.defineProperty(v.createContext,Q,{value:t=v.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}function Ie(t){var e=v.useContext(re()),r=t||e.client;return h(!!r,58),r}exports.DocumentType=void 0;(function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation",t[t.Subscription=2]="Subscription"})(exports.DocumentType||(exports.DocumentType={}));var g;function G(t){var e;switch(t){case exports.DocumentType.Query:e="Query";break;case exports.DocumentType.Mutation:e="Mutation";break;case exports.DocumentType.Subscription:e="Subscription";break}return e}function ne(t){g||(g=new me(Z.parser||1e3));var e=g.get(t);if(e)return e;var r,n,o;h(!!t&&!!t.kind,70,t);for(var i=[],s=[],a=[],u=[],l=0,y=t.definitions;l<y.length;l++){var d=y[l];if(d.kind==="FragmentDefinition"){i.push(d);continue}if(d.kind==="OperationDefinition")switch(d.operation){case"query":s.push(d);break;case"mutation":a.push(d);break;case"subscription":u.push(d);break}}h(!i.length||s.length||a.length||u.length,71),h(s.length+a.length+u.length<=1,72,t,s.length,u.length,a.length),n=s.length?exports.DocumentType.Query:exports.DocumentType.Mutation,!s.length&&!a.length&&(n=exports.DocumentType.Subscription);var m=s.length?s:a.length?a:u;h(m.length===1,73,t,m.length);var w=m[0];r=w.variableDefinitions||[],w.name&&w.name.kind==="Name"?o=w.name.value:o="data";var x={name:o,type:n,variables:r};return g.set(t,x),x}ne.resetCache=function(){g=void 0};globalThis.__DEV__!==!1&&ee("parser",function(){return g?g.size:0});function Le(t,e){var r=ne(t),n=G(e),o=G(r.type);h(r.type===e,74,n,n,o)}exports.ApolloError=je;exports.AutoCleanedStrongCache=Ee;exports.React=te;exports.cacheSizes=Z;exports.canUseDOM=J;exports.canUseLayoutEffect=pe;exports.canUseSymbol=B;exports.compact=A;exports.equal=Ce;exports.getApolloContext=re;exports.invariant=h;exports.isApolloError=ke;exports.isNonNullObject=Y;exports.mergeOptions=Ne;exports.newInvariantError=fe;exports.registerGlobalCache=ee;exports.rehacktExports=v;exports.useApolloClient=Ie;exports.verifyDocumentType=Le;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var c = function(n, t) {
|
|
2
|
+
return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
3
|
+
e.__proto__ = r;
|
|
4
|
+
} || function(e, r) {
|
|
5
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
6
|
+
}, c(n, t);
|
|
7
|
+
};
|
|
8
|
+
function s(n, t) {
|
|
9
|
+
if (typeof t != "function" && t !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
11
|
+
c(n, t);
|
|
12
|
+
function e() {
|
|
13
|
+
this.constructor = n;
|
|
14
|
+
}
|
|
15
|
+
n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
16
|
+
}
|
|
17
|
+
var p = function() {
|
|
18
|
+
return p = Object.assign || function(t) {
|
|
19
|
+
for (var e, r = 1, o = arguments.length; r < o; r++) {
|
|
20
|
+
e = arguments[r];
|
|
21
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
}, p.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
function u(n, t) {
|
|
27
|
+
var e = {};
|
|
28
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
|
|
29
|
+
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
30
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(n); o < r.length; o++)
|
|
31
|
+
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[o]) && (e[r[o]] = n[r[o]]);
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
function l(n, t, e) {
|
|
35
|
+
if (e || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
36
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
37
|
+
return n.concat(a || Array.prototype.slice.call(t));
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
p as _,
|
|
41
|
+
u as a,
|
|
42
|
+
s as b,
|
|
43
|
+
l as c
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var a=function(n,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])},a(n,t)};function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}exports.__assign=function(){return exports.__assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},exports.__assign.apply(this,arguments)};function p(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(e[r[o]]=n[r[o]]);return e}function u(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return n.concat(s||Array.prototype.slice.call(t))}exports.__extends=c;exports.__rest=p;exports.__spreadArray=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react"),u=require("./AuthContext-uU1aP9gj.js");function n(){const t=e.useContext(u.OxAuthContext);if(!t)throw new Error("useOxAuth must be used within an AuthProvider");return t}exports.useOxAuth=n;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState as Ee, useMemo as Ae, useCallback as S, useRef as ln } from "react";
|
|
2
2
|
import { i as xe } from "./isObject-vmP43YLW.js";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as he } from "./tslib.es6-ci7D5hcx.js";
|
|
4
|
+
import { h as N, l as pn, u as mn, v as hn, D as dn, m as gn, g as _n, e as Oe } from "./index-CPwC_oqh.js";
|
|
4
5
|
function vn(e) {
|
|
5
6
|
return Number.isSafeInteger(e) && e >= 0;
|
|
6
7
|
}
|
|
@@ -3014,7 +3015,7 @@ const He = {
|
|
|
3014
3015
|
isDirty: u,
|
|
3015
3016
|
validate: I
|
|
3016
3017
|
};
|
|
3017
|
-
},
|
|
3018
|
+
}, rc = ({
|
|
3018
3019
|
headers: e = {},
|
|
3019
3020
|
initialData: t,
|
|
3020
3021
|
operation: n,
|
|
@@ -3065,5 +3066,5 @@ export {
|
|
|
3065
3066
|
Hs as b,
|
|
3066
3067
|
Xs as h,
|
|
3067
3068
|
xt as i,
|
|
3068
|
-
|
|
3069
|
+
rc as u
|
|
3069
3070
|
};
|