@nizza/core 0.3.1-alpha.1 → 0.3.1-beta.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/dist/index.cjs +4 -4
- package/dist/index.mjs +855 -844
- package/dist/lib/mobx/NizzaStore.d.ts +2 -0
- package/dist/lib/types/api-graphql-types.d.ts +54 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var qi = Object.defineProperty, Wi = Object.defineProperties;
|
|
2
2
|
var Ji = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Je = Object.getOwnPropertySymbols;
|
|
4
|
-
var nn = Object.prototype.hasOwnProperty,
|
|
4
|
+
var nn = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var gt = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Q = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
nn.call(t, n) && gt(e, n, t[n]);
|
|
8
8
|
if (Je)
|
|
9
9
|
for (var n of Je(t))
|
|
10
|
-
|
|
10
|
+
an.call(t, n) && gt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, se = (e, t) => Wi(e, Ji(t));
|
|
13
13
|
var Re = (e, t) => {
|
|
@@ -16,27 +16,27 @@ var Re = (e, t) => {
|
|
|
16
16
|
nn.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
17
17
|
if (e != null && Je)
|
|
18
18
|
for (var i of Je(e))
|
|
19
|
-
t.indexOf(i) < 0 &&
|
|
19
|
+
t.indexOf(i) < 0 && an.call(e, i) && (n[i] = e[i]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var S = (e, t, n) => (gt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
23
|
import * as G from "react";
|
|
24
|
-
import Pn, { createContext as Vn, useReducer as Zi, useEffect as Me, useDebugValue as Xi, useCallback as Hi, useContext as Bt, useMemo as Yi, useState as
|
|
25
|
-
import { jsx as
|
|
26
|
-
let
|
|
27
|
-
function
|
|
28
|
-
const n = `atom${++
|
|
24
|
+
import Pn, { createContext as Vn, useReducer as Zi, useEffect as Me, useDebugValue as Xi, useCallback as Hi, useContext as Bt, useMemo as Yi, useState as ea } from "react";
|
|
25
|
+
import { jsx as ta } from "react/jsx-runtime";
|
|
26
|
+
let na = 0;
|
|
27
|
+
function ia(e, t) {
|
|
28
|
+
const n = `atom${++na}`, i = {
|
|
29
29
|
toString: () => n
|
|
30
30
|
};
|
|
31
|
-
return typeof e == "function" ? i.read = e : (i.init = e, i.read = (
|
|
31
|
+
return typeof e == "function" ? i.read = e : (i.init = e, i.read = (a) => a(i), i.write = (a, r, s) => r(
|
|
32
32
|
i,
|
|
33
|
-
typeof s == "function" ? s(
|
|
33
|
+
typeof s == "function" ? s(a(i)) : s
|
|
34
34
|
)), t && (i.write = t), i;
|
|
35
35
|
}
|
|
36
|
-
const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new WeakMap(),
|
|
36
|
+
const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new WeakMap(), aa = (e, t) => {
|
|
37
37
|
nt.set(e, t), e.catch(() => {
|
|
38
38
|
}).finally(() => nt.delete(e));
|
|
39
|
-
},
|
|
39
|
+
}, rn = (e, t) => {
|
|
40
40
|
const n = nt.get(e);
|
|
41
41
|
n && (nt.delete(e), n(t));
|
|
42
42
|
}, sn = (e, t) => {
|
|
@@ -49,14 +49,14 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
49
49
|
return e.v;
|
|
50
50
|
}, In = () => {
|
|
51
51
|
const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new Map();
|
|
52
|
-
let i,
|
|
53
|
-
({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (i = /* @__PURE__ */ new Set(),
|
|
54
|
-
const
|
|
52
|
+
let i, a;
|
|
53
|
+
({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set());
|
|
54
|
+
const r = (l) => e.get(l), s = (l, m) => {
|
|
55
55
|
({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && Object.freeze(m);
|
|
56
56
|
const h = e.get(l);
|
|
57
57
|
if (e.set(l, m), n.has(l) || n.set(l, h), h && At(h)) {
|
|
58
58
|
const p = "v" in m ? m.v instanceof Promise ? m.v : Promise.resolve(m.v) : Promise.reject(m.e);
|
|
59
|
-
|
|
59
|
+
rn(h.v, p);
|
|
60
60
|
}
|
|
61
61
|
}, o = (l, m, h) => {
|
|
62
62
|
const p = /* @__PURE__ */ new Map();
|
|
@@ -65,7 +65,7 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
65
65
|
!k && O === l && (k = m), k ? (p.set(O, k), m.d.get(O) !== k && (y = !0)) : ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] atom state not found");
|
|
66
66
|
}), (y || m.d.size !== p.size) && (m.d = p);
|
|
67
67
|
}, u = (l, m, h) => {
|
|
68
|
-
const p =
|
|
68
|
+
const p = r(l), y = {
|
|
69
69
|
d: (p == null ? void 0 : p.d) || /* @__PURE__ */ new Map(),
|
|
70
70
|
v: m
|
|
71
71
|
};
|
|
@@ -76,67 +76,67 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
76
76
|
const k = new Promise((O, ve) => {
|
|
77
77
|
let E = !1;
|
|
78
78
|
m.then(
|
|
79
|
-
(
|
|
79
|
+
(w) => {
|
|
80
80
|
if (!E) {
|
|
81
81
|
E = !0;
|
|
82
|
-
const D =
|
|
82
|
+
const D = r(l), Fe = u(
|
|
83
83
|
l,
|
|
84
84
|
k,
|
|
85
85
|
h
|
|
86
86
|
);
|
|
87
|
-
sn(k,
|
|
87
|
+
sn(k, w), O(w), (D == null ? void 0 : D.d) !== Fe.d && j(l, Fe, D == null ? void 0 : D.d);
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
(
|
|
90
|
+
(w) => {
|
|
91
91
|
if (!E) {
|
|
92
92
|
E = !0;
|
|
93
|
-
const D =
|
|
93
|
+
const D = r(l), Fe = u(
|
|
94
94
|
l,
|
|
95
95
|
k,
|
|
96
96
|
h
|
|
97
97
|
);
|
|
98
|
-
on(k,
|
|
98
|
+
on(k, w), ve(w), (D == null ? void 0 : D.d) !== Fe.d && j(l, Fe, D == null ? void 0 : D.d);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
), y = (
|
|
102
|
-
E || (E = !0,
|
|
101
|
+
), y = (w) => {
|
|
102
|
+
E || (E = !0, w.then(
|
|
103
103
|
(D) => sn(k, D),
|
|
104
104
|
(D) => on(k, D)
|
|
105
|
-
), O(
|
|
105
|
+
), O(w));
|
|
106
106
|
};
|
|
107
107
|
});
|
|
108
|
-
return k.status = "pending",
|
|
108
|
+
return k.status = "pending", aa(k, (O) => {
|
|
109
109
|
O && y(O), p == null || p();
|
|
110
110
|
}), u(l, k, h);
|
|
111
111
|
}
|
|
112
112
|
return u(l, m, h);
|
|
113
113
|
}, c = (l, m, h) => {
|
|
114
|
-
const p =
|
|
114
|
+
const p = r(l), y = {
|
|
115
115
|
d: (p == null ? void 0 : p.d) || /* @__PURE__ */ new Map(),
|
|
116
116
|
e: m
|
|
117
117
|
};
|
|
118
118
|
return h && o(l, y, h), p && un(p, y) && p.d === y.d ? p : (s(l, y), y);
|
|
119
119
|
}, v = (l) => {
|
|
120
|
-
const m =
|
|
121
|
-
if (m && (m.d.forEach((E,
|
|
122
|
-
|
|
120
|
+
const m = r(l);
|
|
121
|
+
if (m && (m.d.forEach((E, w) => {
|
|
122
|
+
w !== l && !t.has(w) && v(w);
|
|
123
123
|
}), Array.from(m.d).every(
|
|
124
|
-
([E,
|
|
124
|
+
([E, w]) => E === l || r(E) === w
|
|
125
125
|
)))
|
|
126
126
|
return m;
|
|
127
127
|
const h = /* @__PURE__ */ new Map();
|
|
128
128
|
let p = !0;
|
|
129
129
|
const y = (E) => {
|
|
130
130
|
if (E === l) {
|
|
131
|
-
const D =
|
|
131
|
+
const D = r(E);
|
|
132
132
|
if (D)
|
|
133
133
|
return h.set(E, D), Xe(D);
|
|
134
134
|
if (Nt(E))
|
|
135
135
|
return h.set(E, void 0), E.init;
|
|
136
136
|
throw new Error("no atom init");
|
|
137
137
|
}
|
|
138
|
-
const
|
|
139
|
-
return h.set(E,
|
|
138
|
+
const w = v(E);
|
|
139
|
+
return h.set(E, w), Xe(w);
|
|
140
140
|
};
|
|
141
141
|
let k, O;
|
|
142
142
|
const ve = {
|
|
@@ -163,17 +163,17 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
163
163
|
} finally {
|
|
164
164
|
p = !1;
|
|
165
165
|
}
|
|
166
|
-
},
|
|
166
|
+
}, b = (l) => Xe(v(l)), F = (l) => {
|
|
167
167
|
let m = t.get(l);
|
|
168
168
|
return m || (m = C(l)), m;
|
|
169
169
|
}, I = (l, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(l)), R = (l) => {
|
|
170
170
|
const m = t.get(l);
|
|
171
|
-
m && I(l, m) &&
|
|
171
|
+
m && I(l, m) && T(l);
|
|
172
172
|
}, A = (l) => {
|
|
173
173
|
const m = t.get(l);
|
|
174
174
|
m == null || m.t.forEach((h) => {
|
|
175
175
|
if (h !== l) {
|
|
176
|
-
const p =
|
|
176
|
+
const p = r(h), y = v(h);
|
|
177
177
|
(!p || !Ze(p, y)) && A(h);
|
|
178
178
|
}
|
|
179
179
|
});
|
|
@@ -184,8 +184,8 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
184
184
|
if (O === l) {
|
|
185
185
|
if (!Nt(O))
|
|
186
186
|
throw new Error("atom not writable");
|
|
187
|
-
const
|
|
188
|
-
(!
|
|
187
|
+
const w = r(O), D = d(O, ve[0]);
|
|
188
|
+
(!w || !Ze(w, D)) && A(O);
|
|
189
189
|
} else
|
|
190
190
|
E = W(O, ...ve);
|
|
191
191
|
return h || x(), E;
|
|
@@ -199,7 +199,7 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
199
199
|
t: new Set(m && [m]),
|
|
200
200
|
l: /* @__PURE__ */ new Set()
|
|
201
201
|
};
|
|
202
|
-
if (t.set(l, h), ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" &&
|
|
202
|
+
if (t.set(l, h), ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && a.add(l), v(l).d.forEach((p, y) => {
|
|
203
203
|
const k = t.get(y);
|
|
204
204
|
k ? k.t.add(l) : y !== l && C(y, l);
|
|
205
205
|
}), v(l), Ot(l) && l.onMount) {
|
|
@@ -207,15 +207,15 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
207
207
|
p && (h.u = p);
|
|
208
208
|
}
|
|
209
209
|
return h;
|
|
210
|
-
},
|
|
210
|
+
}, T = (l) => {
|
|
211
211
|
var m;
|
|
212
212
|
const h = (m = t.get(l)) == null ? void 0 : m.u;
|
|
213
|
-
h && h(), t.delete(l), ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" &&
|
|
214
|
-
const p =
|
|
215
|
-
p ? (At(p) &&
|
|
213
|
+
h && h(), t.delete(l), ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && a.delete(l);
|
|
214
|
+
const p = r(l);
|
|
215
|
+
p ? (At(p) && rn(p.v), p.d.forEach((y, k) => {
|
|
216
216
|
if (k !== l) {
|
|
217
217
|
const O = t.get(k);
|
|
218
|
-
O && (O.t.delete(l), I(k, O) &&
|
|
218
|
+
O && (O.t.delete(l), I(k, O) && T(k));
|
|
219
219
|
}
|
|
220
220
|
})) : ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not find atom state to unmount", l);
|
|
221
221
|
}, j = (l, m, h) => {
|
|
@@ -226,7 +226,7 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
228
|
const O = t.get(k);
|
|
229
|
-
O && (O.t.delete(l), I(k, O) &&
|
|
229
|
+
O && (O.t.delete(l), I(k, O) && T(k));
|
|
230
230
|
}), p.forEach((y) => {
|
|
231
231
|
const k = t.get(y);
|
|
232
232
|
k ? k.t.add(l) : t.has(l) && C(y, l);
|
|
@@ -235,7 +235,7 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
235
235
|
for (; n.size; ) {
|
|
236
236
|
const l = Array.from(n);
|
|
237
237
|
n.clear(), l.forEach(([m, h]) => {
|
|
238
|
-
const p =
|
|
238
|
+
const p = r(m);
|
|
239
239
|
if (p) {
|
|
240
240
|
p.d !== (h == null ? void 0 : h.d) && j(m, p, h == null ? void 0 : h.d);
|
|
241
241
|
const y = t.get(m);
|
|
@@ -256,14 +256,14 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
258
|
return ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" ? {
|
|
259
|
-
get:
|
|
259
|
+
get: b,
|
|
260
260
|
set: z,
|
|
261
261
|
sub: me,
|
|
262
262
|
// store dev methods (these are tentative and subject to change without notice)
|
|
263
263
|
dev_subscribe_store: (l) => (i.add(l), () => {
|
|
264
264
|
i.delete(l);
|
|
265
265
|
}),
|
|
266
|
-
dev_get_mounted_atoms: () =>
|
|
266
|
+
dev_get_mounted_atoms: () => a.values(),
|
|
267
267
|
dev_get_atom_state: (l) => e.get(l),
|
|
268
268
|
dev_get_mounted: (l) => t.get(l),
|
|
269
269
|
dev_restore_atoms: (l) => {
|
|
@@ -272,16 +272,16 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
272
272
|
x();
|
|
273
273
|
}
|
|
274
274
|
} : {
|
|
275
|
-
get:
|
|
275
|
+
get: b,
|
|
276
276
|
set: z,
|
|
277
277
|
sub: me
|
|
278
278
|
};
|
|
279
279
|
};
|
|
280
280
|
let Et;
|
|
281
|
-
const
|
|
282
|
-
const t = Bt(
|
|
283
|
-
return (e == null ? void 0 : e.store) || t ||
|
|
284
|
-
},
|
|
281
|
+
const ra = () => (Et || (Et = In()), Et), sa = Vn(void 0), jn = (e) => {
|
|
282
|
+
const t = Bt(sa);
|
|
283
|
+
return (e == null ? void 0 : e.store) || t || ra();
|
|
284
|
+
}, oa = (e) => e instanceof Promise, ua = Pn.use || ((e) => {
|
|
285
285
|
if (e.status === "pending")
|
|
286
286
|
throw e;
|
|
287
287
|
if (e.status === "fulfilled")
|
|
@@ -295,8 +295,8 @@ const ar = () => (Et || (Et = In()), Et), sr = Vn(void 0), jn = (e) => {
|
|
|
295
295
|
}
|
|
296
296
|
), e);
|
|
297
297
|
});
|
|
298
|
-
function
|
|
299
|
-
const n = jn(t), [[i,
|
|
298
|
+
function la(e, t) {
|
|
299
|
+
const n = jn(t), [[i, a, r], s] = Zi(
|
|
300
300
|
(d) => {
|
|
301
301
|
const c = n.get(e);
|
|
302
302
|
return Object.is(d[0], c) && d[1] === n && d[2] === e ? d : [c, n, e];
|
|
@@ -305,7 +305,7 @@ function lr(e, t) {
|
|
|
305
305
|
() => [n.get(e), n, e]
|
|
306
306
|
);
|
|
307
307
|
let o = i;
|
|
308
|
-
(
|
|
308
|
+
(a !== n || r !== e) && (s(), o = n.get(e));
|
|
309
309
|
const u = t == null ? void 0 : t.delay;
|
|
310
310
|
return Me(() => {
|
|
311
311
|
const d = n.sub(e, () => {
|
|
@@ -316,34 +316,34 @@ function lr(e, t) {
|
|
|
316
316
|
s();
|
|
317
317
|
});
|
|
318
318
|
return s(), d;
|
|
319
|
-
}, [n, e, u]), Xi(o),
|
|
319
|
+
}, [n, e, u]), Xi(o), oa(o) ? ua(o) : o;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function da(e, t) {
|
|
322
322
|
const n = jn(t);
|
|
323
323
|
return Hi(
|
|
324
|
-
(...
|
|
324
|
+
(...a) => {
|
|
325
325
|
if (({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in e))
|
|
326
326
|
throw new Error("not writable atom");
|
|
327
|
-
return n.set(e, ...
|
|
327
|
+
return n.set(e, ...a);
|
|
328
328
|
},
|
|
329
329
|
[n, e]
|
|
330
330
|
);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function ca(e, t) {
|
|
333
333
|
return [
|
|
334
|
-
|
|
334
|
+
la(e, t),
|
|
335
335
|
// We do wrong type assertion here, which results in throwing an error.
|
|
336
|
-
|
|
336
|
+
da(e, t)
|
|
337
337
|
];
|
|
338
338
|
}
|
|
339
|
-
const xn =
|
|
340
|
-
NZ_AWS_REGION:
|
|
341
|
-
NZ_BACKOFFICE_BACK_URL:
|
|
342
|
-
NZ_CORE_SERVICES_GRAPHQL_URL:
|
|
343
|
-
NZ_CORE_SERVICES_REST_URL:
|
|
344
|
-
} = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 },
|
|
339
|
+
const xn = ia(null), {
|
|
340
|
+
NZ_AWS_REGION: fa,
|
|
341
|
+
NZ_BACKOFFICE_BACK_URL: ma,
|
|
342
|
+
NZ_CORE_SERVICES_GRAPHQL_URL: va,
|
|
343
|
+
NZ_CORE_SERVICES_REST_URL: ha
|
|
344
|
+
} = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }, pa = {
|
|
345
345
|
AWS: {
|
|
346
|
-
region:
|
|
346
|
+
region: fa,
|
|
347
347
|
cognito: {
|
|
348
348
|
userPoolId: "us-east-1_knSlGEmJ0",
|
|
349
349
|
userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
|
|
@@ -351,9 +351,9 @@ const xn = ir(null), {
|
|
|
351
351
|
},
|
|
352
352
|
// Back services
|
|
353
353
|
apiUrls: {
|
|
354
|
-
restV1:
|
|
355
|
-
restV2:
|
|
356
|
-
graphql:
|
|
354
|
+
restV1: ma || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
|
|
355
|
+
restV2: ha || "https://core-services-dev.nizza.com/api",
|
|
356
|
+
graphql: va || "https://core-services-dev.nizza.com/graphql",
|
|
357
357
|
corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
|
|
358
358
|
},
|
|
359
359
|
publicUrls: {
|
|
@@ -365,12 +365,12 @@ const xn = ir(null), {
|
|
|
365
365
|
bundleSite: "https://bundledev.nizza.com"
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
|
-
async function
|
|
369
|
-
var
|
|
368
|
+
async function _a(a) {
|
|
369
|
+
var r = a, {
|
|
370
370
|
url: e,
|
|
371
371
|
method: t = "GET",
|
|
372
372
|
raw: n = !1
|
|
373
|
-
} =
|
|
373
|
+
} = r, i = Re(r, [
|
|
374
374
|
"url",
|
|
375
375
|
"method",
|
|
376
376
|
"raw"
|
|
@@ -386,15 +386,15 @@ async function _r(r) {
|
|
|
386
386
|
}
|
|
387
387
|
return o;
|
|
388
388
|
}
|
|
389
|
-
let
|
|
390
|
-
const
|
|
389
|
+
let ka = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
|
|
390
|
+
const ya = (e = 8) => ka(e), Io = (e) => {
|
|
391
391
|
const t = Object.entries(e).map(([n, i]) => `${n}=${i}`).join("&");
|
|
392
392
|
return t ? `?${t}` : "";
|
|
393
393
|
};
|
|
394
|
-
class
|
|
394
|
+
class Sa {
|
|
395
395
|
constructor(t) {
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
S(this, "aggregate");
|
|
397
|
+
S(this, "_numSetPropsApplied", 0);
|
|
398
398
|
this.aggregate = t;
|
|
399
399
|
}
|
|
400
400
|
setProps(t) {
|
|
@@ -406,73 +406,73 @@ class br {
|
|
|
406
406
|
return this._numSetPropsApplied === 1;
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
return new
|
|
409
|
+
function ba(e) {
|
|
410
|
+
return new Sa(e);
|
|
411
411
|
}
|
|
412
|
-
class
|
|
412
|
+
class jo {
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class xo {
|
|
415
415
|
constructor(t) {
|
|
416
|
-
|
|
416
|
+
S(this, "_value");
|
|
417
417
|
t !== void 0 && (this._value = t);
|
|
418
418
|
}
|
|
419
419
|
get value() {
|
|
420
420
|
return this._value;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var Ln = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.VTEX_IO = "VTEX-IO", e.VTEX_CMS = "PORTAL-VTEX", e.PLATFORM = "PLATFORM", e.UNKNOWN = "UNKNOWN", e))(Ln || {}),
|
|
423
|
+
var Ln = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.VTEX_IO = "VTEX-IO", e.VTEX_CMS = "PORTAL-VTEX", e.PLATFORM = "PLATFORM", e.UNKNOWN = "UNKNOWN", e))(Ln || {}), ga = /* @__PURE__ */ ((e) => (e.PLATFORM = "platform_module", e.ADENDA = "subscription_module", e.APP_STORE = "app_store", e))(ga || {}), Mn = /* @__PURE__ */ ((e) => (e.ACTIVE = "active_contract", e.INACTIVE = "inactive_contract", e))(Mn || {}), Na = /* @__PURE__ */ ((e) => (e.LITE = "lite", e.STANDARD = "standard", e.PRO = "pro", e))(Na || {}), Oa = /* @__PURE__ */ ((e) => (e.LITE = "PLAN_LITE", e.STANDARD = "PLAN_ESTANDAR", e.PRO = "PLAN_PRO", e.NONE = "NO_PLAN", e))(Oa || {}), Aa = /* @__PURE__ */ ((e) => (e.PAST = "past", e.LIVE = "live", e.FUTURE = "future", e))(Aa || {});
|
|
424
424
|
class Gt {
|
|
425
425
|
constructor(t) {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
426
|
+
S(this, "root", ba(this));
|
|
427
|
+
S(this, "id");
|
|
428
|
+
S(this, "account");
|
|
429
|
+
S(this, "accountType", Ln.UNKNOWN);
|
|
430
|
+
S(this, "username");
|
|
431
|
+
S(this, "currencyConfig");
|
|
432
|
+
S(this, "contractType");
|
|
433
|
+
S(this, "nextDateMetricRecord");
|
|
434
|
+
S(this, "spendedMinutes", 0);
|
|
435
|
+
S(this, "unlimitedService", !1);
|
|
436
|
+
S(this, "hoursAvailable", 0);
|
|
437
|
+
S(this, "contractStatus", Mn.ACTIVE);
|
|
438
|
+
S(this, "createdAt");
|
|
439
|
+
S(this, "installationDateApp");
|
|
440
|
+
S(this, "cxAccount");
|
|
441
|
+
S(this, "freeService", !1);
|
|
442
|
+
S(this, "subscriptionType", null);
|
|
443
|
+
S(this, "minutesAvailable", 0);
|
|
444
|
+
S(this, "globalPage");
|
|
445
|
+
S(this, "stripe");
|
|
446
|
+
S(this, "descriptionPlan");
|
|
447
|
+
S(this, "planType");
|
|
448
|
+
S(this, "selectFreeTrial");
|
|
449
|
+
S(this, "exceededFeatures");
|
|
450
|
+
S(this, "host", null);
|
|
451
451
|
this.root.setProps(t);
|
|
452
452
|
}
|
|
453
453
|
static toDomain(t) {
|
|
454
|
-
const
|
|
454
|
+
const r = t, { createdAt: n } = r, i = Re(r, ["createdAt"]), a = se(Q({}, i), {
|
|
455
455
|
createdAt: new Date(Number(n))
|
|
456
456
|
});
|
|
457
|
-
return new Gt(
|
|
457
|
+
return new Gt(a);
|
|
458
458
|
}
|
|
459
459
|
toPrimitives() {
|
|
460
|
-
const
|
|
460
|
+
const a = this, { root: t, createdAt: n } = a, i = Re(a, ["root", "createdAt"]);
|
|
461
461
|
return se(Q({}, i), {
|
|
462
462
|
created: n.toISOString()
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
const
|
|
467
|
-
class
|
|
466
|
+
const Ea = `${pa.apiUrls.restV1}/accounts/v2`;
|
|
467
|
+
class Fa {
|
|
468
468
|
async get(t) {
|
|
469
|
-
const n = `${
|
|
469
|
+
const n = `${Ea}/${t}`, { data: i } = await _a({
|
|
470
470
|
url: n
|
|
471
471
|
});
|
|
472
472
|
return i ? Gt.toDomain(i) : null;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
class
|
|
475
|
+
class Ra {
|
|
476
476
|
constructor(t) {
|
|
477
477
|
this.accountRepository = t;
|
|
478
478
|
}
|
|
@@ -480,14 +480,14 @@ class Rr {
|
|
|
480
480
|
try {
|
|
481
481
|
const n = await this.accountRepository.get(t);
|
|
482
482
|
if (!n)
|
|
483
|
-
throw new
|
|
483
|
+
throw new Or(t);
|
|
484
484
|
return n;
|
|
485
485
|
} catch (n) {
|
|
486
|
-
throw new
|
|
486
|
+
throw new Ar(n);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const Ca = new Fa(), Un = new Ra(Ca);
|
|
491
491
|
class zt {
|
|
492
492
|
constructor() {
|
|
493
493
|
this.listeners = [], this.subscribe = this.subscribe.bind(this);
|
|
@@ -506,16 +506,16 @@ class zt {
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
const it = typeof window == "undefined" || "Deno" in window;
|
|
509
|
-
function
|
|
509
|
+
function Ta() {
|
|
510
510
|
}
|
|
511
511
|
function ln(e) {
|
|
512
512
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function wa(e, t) {
|
|
515
515
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
return
|
|
517
|
+
function Da(e, t, n) {
|
|
518
|
+
return Pa(e) ? typeof t == "function" ? se(Q({}, n), {
|
|
519
519
|
queryKey: e,
|
|
520
520
|
queryFn: t
|
|
521
521
|
}) : se(Q({}, t), {
|
|
@@ -527,13 +527,13 @@ function Bn(e, t) {
|
|
|
527
527
|
return e;
|
|
528
528
|
const n = cn(e) && cn(t);
|
|
529
529
|
if (n || fn(e) && fn(t)) {
|
|
530
|
-
const i = n ? e.length : Object.keys(e).length,
|
|
530
|
+
const i = n ? e.length : Object.keys(e).length, a = n ? t : Object.keys(t), r = a.length, s = n ? [] : {};
|
|
531
531
|
let o = 0;
|
|
532
|
-
for (let u = 0; u <
|
|
533
|
-
const d = n ? u :
|
|
532
|
+
for (let u = 0; u < r; u++) {
|
|
533
|
+
const d = n ? u : a[u];
|
|
534
534
|
s[d] = Bn(e[d], t[d]), s[d] === e[d] && o++;
|
|
535
535
|
}
|
|
536
|
-
return i ===
|
|
536
|
+
return i === r && o === i ? e : s;
|
|
537
537
|
}
|
|
538
538
|
return t;
|
|
539
539
|
}
|
|
@@ -560,21 +560,21 @@ function fn(e) {
|
|
|
560
560
|
function mn(e) {
|
|
561
561
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Pa(e) {
|
|
564
564
|
return Array.isArray(e);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Va(e) {
|
|
567
567
|
return new Promise((t) => {
|
|
568
568
|
setTimeout(t, e);
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
function vn(e) {
|
|
572
|
-
|
|
572
|
+
Va(0).then(e);
|
|
573
573
|
}
|
|
574
574
|
function hn(e, t, n) {
|
|
575
575
|
return n.isDataEqual != null && n.isDataEqual(e, t) ? e : typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? Bn(e, t) : t;
|
|
576
576
|
}
|
|
577
|
-
class
|
|
577
|
+
class Ia extends zt {
|
|
578
578
|
constructor() {
|
|
579
579
|
super(), this.setup = (t) => {
|
|
580
580
|
if (!it && window.addEventListener) {
|
|
@@ -612,8 +612,8 @@ class Ir extends zt {
|
|
|
612
612
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
const
|
|
616
|
-
class
|
|
615
|
+
const ja = new Ia();
|
|
616
|
+
class xa extends zt {
|
|
617
617
|
constructor() {
|
|
618
618
|
super(), this.setup = (t) => {
|
|
619
619
|
if (!it && window.addEventListener) {
|
|
@@ -651,25 +651,25 @@ class xr extends zt {
|
|
|
651
651
|
return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
const
|
|
655
|
-
function
|
|
656
|
-
return (e != null ? e : "online") === "online" ?
|
|
654
|
+
const La = new xa();
|
|
655
|
+
function Ma(e) {
|
|
656
|
+
return (e != null ? e : "online") === "online" ? La.isOnline() : !0;
|
|
657
657
|
}
|
|
658
|
-
class
|
|
658
|
+
class Ua {
|
|
659
659
|
constructor(t) {
|
|
660
660
|
this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
return e instanceof
|
|
663
|
+
function Ba(e) {
|
|
664
|
+
return e instanceof Ua;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function Ga() {
|
|
667
667
|
let e = [], t = 0, n = (c) => {
|
|
668
668
|
c();
|
|
669
669
|
}, i = (c) => {
|
|
670
670
|
c();
|
|
671
671
|
};
|
|
672
|
-
const
|
|
672
|
+
const a = (c) => {
|
|
673
673
|
let v;
|
|
674
674
|
t++;
|
|
675
675
|
try {
|
|
@@ -678,12 +678,12 @@ function Gr() {
|
|
|
678
678
|
t--, t || o();
|
|
679
679
|
}
|
|
680
680
|
return v;
|
|
681
|
-
},
|
|
681
|
+
}, r = (c) => {
|
|
682
682
|
t ? e.push(c) : vn(() => {
|
|
683
683
|
n(c);
|
|
684
684
|
});
|
|
685
685
|
}, s = (c) => (...v) => {
|
|
686
|
-
|
|
686
|
+
r(() => {
|
|
687
687
|
c(...v);
|
|
688
688
|
});
|
|
689
689
|
}, o = () => {
|
|
@@ -697,9 +697,9 @@ function Gr() {
|
|
|
697
697
|
});
|
|
698
698
|
};
|
|
699
699
|
return {
|
|
700
|
-
batch:
|
|
700
|
+
batch: a,
|
|
701
701
|
batchCalls: s,
|
|
702
|
-
schedule:
|
|
702
|
+
schedule: r,
|
|
703
703
|
setNotifyFunction: (c) => {
|
|
704
704
|
n = c;
|
|
705
705
|
},
|
|
@@ -708,8 +708,8 @@ function Gr() {
|
|
|
708
708
|
}
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
const Ce =
|
|
712
|
-
class
|
|
711
|
+
const Ce = Ga();
|
|
712
|
+
class za extends zt {
|
|
713
713
|
constructor(t, n) {
|
|
714
714
|
super(), this.client = t, this.options = n, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(n);
|
|
715
715
|
}
|
|
@@ -732,7 +732,7 @@ class zr extends zt {
|
|
|
732
732
|
this.listeners = [], this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
|
|
733
733
|
}
|
|
734
734
|
setOptions(t, n) {
|
|
735
|
-
const i = this.options,
|
|
735
|
+
const i = this.options, a = this.currentQuery;
|
|
736
736
|
if (this.options = this.client.defaultQueryOptions(t), dn(i, this.options) || this.client.getQueryCache().notify({
|
|
737
737
|
type: "observerOptionsUpdated",
|
|
738
738
|
query: this.currentQuery,
|
|
@@ -740,10 +740,10 @@ class zr extends zt {
|
|
|
740
740
|
}), typeof this.options.enabled != "undefined" && typeof this.options.enabled != "boolean")
|
|
741
741
|
throw new Error("Expected enabled to be a boolean");
|
|
742
742
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
743
|
-
const
|
|
744
|
-
|
|
743
|
+
const r = this.hasListeners();
|
|
744
|
+
r && _n(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(n), r && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
|
|
745
745
|
const s = this.computeRefetchInterval();
|
|
746
|
-
|
|
746
|
+
r && (this.currentQuery !== a || this.options.enabled !== i.enabled || s !== this.currentRefetchInterval) && this.updateRefetchInterval(s);
|
|
747
747
|
}
|
|
748
748
|
getOptimisticResult(t) {
|
|
749
749
|
const n = this.client.getQueryCache().build(this.client, t);
|
|
@@ -769,9 +769,9 @@ class zr extends zt {
|
|
|
769
769
|
this.client.getQueryCache().remove(this.currentQuery);
|
|
770
770
|
}
|
|
771
771
|
refetch(i = {}) {
|
|
772
|
-
var
|
|
772
|
+
var a = i, {
|
|
773
773
|
refetchPage: t
|
|
774
|
-
} =
|
|
774
|
+
} = a, n = Re(a, [
|
|
775
775
|
"refetchPage"
|
|
776
776
|
]);
|
|
777
777
|
return this.fetch(se(Q({}, n), {
|
|
@@ -793,12 +793,12 @@ class zr extends zt {
|
|
|
793
793
|
executeFetch(t) {
|
|
794
794
|
this.updateQuery();
|
|
795
795
|
let n = this.currentQuery.fetch(this.options, t);
|
|
796
|
-
return t != null && t.throwOnError || (n = n.catch(
|
|
796
|
+
return t != null && t.throwOnError || (n = n.catch(Ta)), n;
|
|
797
797
|
}
|
|
798
798
|
updateStaleTimeout() {
|
|
799
799
|
if (this.clearStaleTimeout(), it || this.currentResult.isStale || !ln(this.options.staleTime))
|
|
800
800
|
return;
|
|
801
|
-
const n =
|
|
801
|
+
const n = wa(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
802
802
|
this.staleTimeoutId = setTimeout(() => {
|
|
803
803
|
this.currentResult.isStale || this.updateResult();
|
|
804
804
|
}, n);
|
|
@@ -809,7 +809,7 @@ class zr extends zt {
|
|
|
809
809
|
}
|
|
810
810
|
updateRefetchInterval(t) {
|
|
811
811
|
this.clearRefetchInterval(), this.currentRefetchInterval = t, !(it || this.options.enabled === !1 || !ln(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
812
|
-
(this.options.refetchIntervalInBackground ||
|
|
812
|
+
(this.options.refetchIntervalInBackground || ja.isFocused()) && this.executeFetch();
|
|
813
813
|
}, this.currentRefetchInterval));
|
|
814
814
|
}
|
|
815
815
|
updateTimers() {
|
|
@@ -822,28 +822,28 @@ class zr extends zt {
|
|
|
822
822
|
this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
|
|
823
823
|
}
|
|
824
824
|
createResult(t, n) {
|
|
825
|
-
const i = this.currentQuery,
|
|
825
|
+
const i = this.currentQuery, a = this.options, r = this.currentResult, s = this.currentResultState, o = this.currentResultOptions, u = t !== i, d = u ? t.state : this.currentQueryInitialState, c = u ? this.currentResult : this.previousQueryResult, {
|
|
826
826
|
state: v
|
|
827
827
|
} = t;
|
|
828
828
|
let {
|
|
829
|
-
dataUpdatedAt:
|
|
829
|
+
dataUpdatedAt: b,
|
|
830
830
|
error: F,
|
|
831
831
|
errorUpdatedAt: I,
|
|
832
832
|
fetchStatus: R,
|
|
833
833
|
status: A
|
|
834
834
|
} = v, W = !1, z = !1, C;
|
|
835
835
|
if (n._optimisticResults) {
|
|
836
|
-
const l = this.hasListeners(), m = !l && pn(t, n), h = l && _n(t, i, n,
|
|
837
|
-
(m || h) && (R =
|
|
836
|
+
const l = this.hasListeners(), m = !l && pn(t, n), h = l && _n(t, i, n, a);
|
|
837
|
+
(m || h) && (R = Ma(t.options.networkMode) ? "fetching" : "paused", b || (A = "loading")), n._optimisticResults === "isRestoring" && (R = "idle");
|
|
838
838
|
}
|
|
839
839
|
if (n.keepPreviousData && !v.dataUpdatedAt && c != null && c.isSuccess && A !== "error")
|
|
840
|
-
C = c.data,
|
|
840
|
+
C = c.data, b = c.dataUpdatedAt, A = c.status, W = !0;
|
|
841
841
|
else if (n.select && typeof v.data != "undefined")
|
|
842
|
-
if (
|
|
842
|
+
if (r && v.data === (s == null ? void 0 : s.data) && n.select === this.selectFn)
|
|
843
843
|
C = this.selectResult;
|
|
844
844
|
else
|
|
845
845
|
try {
|
|
846
|
-
this.selectFn = n.select, C = n.select(v.data), C = hn(
|
|
846
|
+
this.selectFn = n.select, C = n.select(v.data), C = hn(r == null ? void 0 : r.data, C, n), this.selectResult = C, this.selectError = null;
|
|
847
847
|
} catch (l) {
|
|
848
848
|
this.selectError = l;
|
|
849
849
|
}
|
|
@@ -851,27 +851,27 @@ class zr extends zt {
|
|
|
851
851
|
C = v.data;
|
|
852
852
|
if (typeof n.placeholderData != "undefined" && typeof C == "undefined" && A === "loading") {
|
|
853
853
|
let l;
|
|
854
|
-
if (
|
|
855
|
-
l =
|
|
854
|
+
if (r != null && r.isPlaceholderData && n.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
855
|
+
l = r.data;
|
|
856
856
|
else if (l = typeof n.placeholderData == "function" ? n.placeholderData() : n.placeholderData, n.select && typeof l != "undefined")
|
|
857
857
|
try {
|
|
858
858
|
l = n.select(l), this.selectError = null;
|
|
859
859
|
} catch (m) {
|
|
860
860
|
this.selectError = m;
|
|
861
861
|
}
|
|
862
|
-
typeof l != "undefined" && (A = "success", C = hn(
|
|
862
|
+
typeof l != "undefined" && (A = "success", C = hn(r == null ? void 0 : r.data, l, n), z = !0);
|
|
863
863
|
}
|
|
864
864
|
this.selectError && (F = this.selectError, C = this.selectResult, I = Date.now(), A = "error");
|
|
865
|
-
const
|
|
865
|
+
const T = R === "fetching", j = A === "loading", x = A === "error";
|
|
866
866
|
return {
|
|
867
867
|
status: A,
|
|
868
868
|
fetchStatus: R,
|
|
869
869
|
isLoading: j,
|
|
870
870
|
isSuccess: A === "success",
|
|
871
871
|
isError: x,
|
|
872
|
-
isInitialLoading: j &&
|
|
872
|
+
isInitialLoading: j && T,
|
|
873
873
|
data: C,
|
|
874
|
-
dataUpdatedAt:
|
|
874
|
+
dataUpdatedAt: b,
|
|
875
875
|
error: F,
|
|
876
876
|
errorUpdatedAt: I,
|
|
877
877
|
failureCount: v.fetchFailureCount,
|
|
@@ -879,8 +879,8 @@ class zr extends zt {
|
|
|
879
879
|
errorUpdateCount: v.errorUpdateCount,
|
|
880
880
|
isFetched: v.dataUpdateCount > 0 || v.errorUpdateCount > 0,
|
|
881
881
|
isFetchedAfterMount: v.dataUpdateCount > d.dataUpdateCount || v.errorUpdateCount > d.errorUpdateCount,
|
|
882
|
-
isFetching:
|
|
883
|
-
isRefetching:
|
|
882
|
+
isFetching: T,
|
|
883
|
+
isRefetching: T && !j,
|
|
884
884
|
isLoadingError: x && v.dataUpdatedAt === 0,
|
|
885
885
|
isPaused: R === "paused",
|
|
886
886
|
isPlaceholderData: z,
|
|
@@ -896,9 +896,9 @@ class zr extends zt {
|
|
|
896
896
|
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, dn(i, n))
|
|
897
897
|
return;
|
|
898
898
|
this.currentResult = i;
|
|
899
|
-
const
|
|
899
|
+
const a = {
|
|
900
900
|
cache: !0
|
|
901
|
-
},
|
|
901
|
+
}, r = () => {
|
|
902
902
|
if (!n)
|
|
903
903
|
return !0;
|
|
904
904
|
const {
|
|
@@ -912,7 +912,7 @@ class zr extends zt {
|
|
|
912
912
|
return this.currentResult[d] !== n[d] && o.has(d);
|
|
913
913
|
});
|
|
914
914
|
};
|
|
915
|
-
(t == null ? void 0 : t.listeners) !== !1 &&
|
|
915
|
+
(t == null ? void 0 : t.listeners) !== !1 && r() && (a.listeners = !0), this.notify(Q(Q({}, a), t));
|
|
916
916
|
}
|
|
917
917
|
updateQuery() {
|
|
918
918
|
const t = this.client.getQueryCache().build(this.client, this.options);
|
|
@@ -923,13 +923,13 @@ class zr extends zt {
|
|
|
923
923
|
}
|
|
924
924
|
onQueryUpdate(t) {
|
|
925
925
|
const n = {};
|
|
926
|
-
t.type === "success" ? n.onSuccess = !t.manual : t.type === "error" && !
|
|
926
|
+
t.type === "success" ? n.onSuccess = !t.manual : t.type === "error" && !Ba(t.error) && (n.onError = !0), this.updateResult(n), this.hasListeners() && this.updateTimers();
|
|
927
927
|
}
|
|
928
928
|
notify(t) {
|
|
929
929
|
Ce.batch(() => {
|
|
930
930
|
if (t.onSuccess) {
|
|
931
|
-
var n, i,
|
|
932
|
-
(n = (i = this.options).onSuccess) == null || n.call(i, this.currentResult.data), (
|
|
931
|
+
var n, i, a, r;
|
|
932
|
+
(n = (i = this.options).onSuccess) == null || n.call(i, this.currentResult.data), (a = (r = this.options).onSettled) == null || a.call(r, this.currentResult.data, null);
|
|
933
933
|
} else if (t.onError) {
|
|
934
934
|
var s, o, u, d;
|
|
935
935
|
(s = (o = this.options).onError) == null || s.call(o, this.currentResult.error), (u = (d = this.options).onSettled) == null || u.call(d, void 0, this.currentResult.error);
|
|
@@ -943,11 +943,11 @@ class zr extends zt {
|
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function Qa(e, t) {
|
|
947
947
|
return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
948
948
|
}
|
|
949
949
|
function pn(e, t) {
|
|
950
|
-
return
|
|
950
|
+
return Qa(e, t) || e.state.dataUpdatedAt > 0 && Pt(e, t, t.refetchOnMount);
|
|
951
951
|
}
|
|
952
952
|
function Pt(e, t, n) {
|
|
953
953
|
if (t.enabled !== !1) {
|
|
@@ -972,52 +972,52 @@ var Gn = { exports: {} }, zn = {};
|
|
|
972
972
|
* This source code is licensed under the MIT license found in the
|
|
973
973
|
* LICENSE file in the root directory of this source tree.
|
|
974
974
|
*/
|
|
975
|
-
var
|
|
976
|
-
function
|
|
975
|
+
var Se = Pn;
|
|
976
|
+
function Ka(e, t) {
|
|
977
977
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
978
978
|
}
|
|
979
|
-
var $
|
|
980
|
-
function
|
|
981
|
-
var n = t(), i =
|
|
982
|
-
return
|
|
983
|
-
|
|
984
|
-
}, [e, n, t]),
|
|
985
|
-
return Ft(
|
|
986
|
-
Ft(
|
|
979
|
+
var $a = typeof Object.is == "function" ? Object.is : Ka, qa = Se.useState, Wa = Se.useEffect, Ja = Se.useLayoutEffect, Za = Se.useDebugValue;
|
|
980
|
+
function Xa(e, t) {
|
|
981
|
+
var n = t(), i = qa({ inst: { value: n, getSnapshot: t } }), a = i[0].inst, r = i[1];
|
|
982
|
+
return Ja(function() {
|
|
983
|
+
a.value = n, a.getSnapshot = t, Ft(a) && r({ inst: a });
|
|
984
|
+
}, [e, n, t]), Wa(function() {
|
|
985
|
+
return Ft(a) && r({ inst: a }), e(function() {
|
|
986
|
+
Ft(a) && r({ inst: a });
|
|
987
987
|
});
|
|
988
|
-
}, [e]),
|
|
988
|
+
}, [e]), Za(n), n;
|
|
989
989
|
}
|
|
990
990
|
function Ft(e) {
|
|
991
991
|
var t = e.getSnapshot;
|
|
992
992
|
e = e.value;
|
|
993
993
|
try {
|
|
994
994
|
var n = t();
|
|
995
|
-
return !$
|
|
995
|
+
return !$a(e, n);
|
|
996
996
|
} catch (i) {
|
|
997
997
|
return !0;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function Ha(e, t) {
|
|
1001
1001
|
return t();
|
|
1002
1002
|
}
|
|
1003
|
-
var
|
|
1004
|
-
zn.useSyncExternalStore =
|
|
1003
|
+
var Ya = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Ha : Xa;
|
|
1004
|
+
zn.useSyncExternalStore = Se.useSyncExternalStore !== void 0 ? Se.useSyncExternalStore : Ya;
|
|
1005
1005
|
Gn.exports = zn;
|
|
1006
|
-
var
|
|
1007
|
-
const
|
|
1008
|
-
function
|
|
1006
|
+
var er = Gn.exports;
|
|
1007
|
+
const tr = er.useSyncExternalStore, kn = /* @__PURE__ */ G.createContext(void 0), nr = /* @__PURE__ */ G.createContext(!1);
|
|
1008
|
+
function ir(e, t) {
|
|
1009
1009
|
return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = kn), window.ReactQueryClientContext) : kn);
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1011
|
+
const ar = ({
|
|
1012
1012
|
context: e
|
|
1013
1013
|
} = {}) => {
|
|
1014
|
-
const t = G.useContext(
|
|
1014
|
+
const t = G.useContext(ir(e, G.useContext(nr)));
|
|
1015
1015
|
if (!t)
|
|
1016
1016
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1017
1017
|
return t;
|
|
1018
|
-
}, Qn = /* @__PURE__ */ G.createContext(!1),
|
|
1018
|
+
}, Qn = /* @__PURE__ */ G.createContext(!1), rr = () => G.useContext(Qn);
|
|
1019
1019
|
Qn.Provider;
|
|
1020
|
-
function
|
|
1020
|
+
function sr() {
|
|
1021
1021
|
let e = !1;
|
|
1022
1022
|
return {
|
|
1023
1023
|
clearReset: () => {
|
|
@@ -1029,62 +1029,62 @@ function sa() {
|
|
|
1029
1029
|
isReset: () => e
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
const
|
|
1033
|
-
function
|
|
1032
|
+
const or = /* @__PURE__ */ G.createContext(sr()), ur = () => G.useContext(or);
|
|
1033
|
+
function lr(e, t) {
|
|
1034
1034
|
return typeof e == "function" ? e(...t) : !!e;
|
|
1035
1035
|
}
|
|
1036
|
-
const
|
|
1036
|
+
const dr = (e, t) => {
|
|
1037
1037
|
(e.suspense || e.useErrorBoundary) && (t.isReset() || (e.retryOnMount = !1));
|
|
1038
|
-
},
|
|
1038
|
+
}, cr = (e) => {
|
|
1039
1039
|
G.useEffect(() => {
|
|
1040
1040
|
e.clearReset();
|
|
1041
1041
|
}, [e]);
|
|
1042
|
-
},
|
|
1042
|
+
}, fr = ({
|
|
1043
1043
|
result: e,
|
|
1044
1044
|
errorResetBoundary: t,
|
|
1045
1045
|
useErrorBoundary: n,
|
|
1046
1046
|
query: i
|
|
1047
|
-
}) => e.isError && !t.isReset() && !e.isFetching &&
|
|
1047
|
+
}) => e.isError && !t.isReset() && !e.isFetching && lr(n, [e.error, i]), mr = (e) => {
|
|
1048
1048
|
e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
|
|
1049
|
-
},
|
|
1049
|
+
}, vr = (e, t) => e.isLoading && e.isFetching && !t, hr = (e, t, n) => (e == null ? void 0 : e.suspense) && vr(t, n), pr = (e, t, n) => t.fetchOptimistic(e).then(({
|
|
1050
1050
|
data: i
|
|
1051
1051
|
}) => {
|
|
1052
1052
|
e.onSuccess == null || e.onSuccess(i), e.onSettled == null || e.onSettled(i, null);
|
|
1053
1053
|
}).catch((i) => {
|
|
1054
1054
|
n.clearReset(), e.onError == null || e.onError(i), e.onSettled == null || e.onSettled(void 0, i);
|
|
1055
1055
|
});
|
|
1056
|
-
function
|
|
1057
|
-
const n =
|
|
1056
|
+
function _r(e, t) {
|
|
1057
|
+
const n = ar({
|
|
1058
1058
|
context: e.context
|
|
1059
|
-
}), i =
|
|
1060
|
-
|
|
1061
|
-
const [s] = G.useState(() => new t(n,
|
|
1062
|
-
if (
|
|
1059
|
+
}), i = rr(), a = ur(), r = n.defaultQueryOptions(e);
|
|
1060
|
+
r._optimisticResults = i ? "isRestoring" : "optimistic", r.onError && (r.onError = Ce.batchCalls(r.onError)), r.onSuccess && (r.onSuccess = Ce.batchCalls(r.onSuccess)), r.onSettled && (r.onSettled = Ce.batchCalls(r.onSettled)), mr(r), dr(r, a), cr(a);
|
|
1061
|
+
const [s] = G.useState(() => new t(n, r)), o = s.getOptimisticResult(r);
|
|
1062
|
+
if (tr(G.useCallback((u) => i ? () => {
|
|
1063
1063
|
} : s.subscribe(Ce.batchCalls(u)), [s, i]), () => s.getCurrentResult(), () => s.getCurrentResult()), G.useEffect(() => {
|
|
1064
|
-
s.setOptions(
|
|
1064
|
+
s.setOptions(r, {
|
|
1065
1065
|
listeners: !1
|
|
1066
1066
|
});
|
|
1067
|
-
}, [
|
|
1068
|
-
throw
|
|
1069
|
-
if (
|
|
1067
|
+
}, [r, s]), hr(r, o, i))
|
|
1068
|
+
throw pr(r, s, a);
|
|
1069
|
+
if (fr({
|
|
1070
1070
|
result: o,
|
|
1071
|
-
errorResetBoundary:
|
|
1072
|
-
useErrorBoundary:
|
|
1071
|
+
errorResetBoundary: a,
|
|
1072
|
+
useErrorBoundary: r.useErrorBoundary,
|
|
1073
1073
|
query: s.getCurrentQuery()
|
|
1074
1074
|
}))
|
|
1075
1075
|
throw o.error;
|
|
1076
|
-
return
|
|
1076
|
+
return r.notifyOnChangeProps ? o : s.trackResult(o);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1079
|
-
const i =
|
|
1080
|
-
return
|
|
1078
|
+
function kr(e, t, n) {
|
|
1079
|
+
const i = Da(e, t, n);
|
|
1080
|
+
return _r(i, za);
|
|
1081
1081
|
}
|
|
1082
|
-
const
|
|
1082
|
+
const yr = () => ["account"], Lo = () => {
|
|
1083
1083
|
const e = co(() => {
|
|
1084
|
-
var
|
|
1085
|
-
return (
|
|
1086
|
-
}), [t, n] =
|
|
1087
|
-
|
|
1084
|
+
var a;
|
|
1085
|
+
return (a = lo.config) == null ? void 0 : a.account;
|
|
1086
|
+
}), [t, n] = ca(xn), i = kr(
|
|
1087
|
+
yr(),
|
|
1088
1088
|
() => Un.get(e),
|
|
1089
1089
|
{
|
|
1090
1090
|
enabled: !!e && !t,
|
|
@@ -1093,18 +1093,18 @@ const ya = () => ["account"], Io = () => {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
);
|
|
1095
1095
|
return Me(() => {
|
|
1096
|
-
const
|
|
1097
|
-
!i.isSuccess || !
|
|
1096
|
+
const a = i.data;
|
|
1097
|
+
!i.isSuccess || !a || n(a);
|
|
1098
1098
|
}, [i.status]), {
|
|
1099
1099
|
findQuery: i,
|
|
1100
1100
|
account: t
|
|
1101
1101
|
};
|
|
1102
|
-
},
|
|
1103
|
-
async function
|
|
1102
|
+
}, Sr = In();
|
|
1103
|
+
async function br(e) {
|
|
1104
1104
|
const t = await Un.get(e);
|
|
1105
|
-
return
|
|
1105
|
+
return Sr.set(xn, t), t;
|
|
1106
1106
|
}
|
|
1107
|
-
var
|
|
1107
|
+
var gr = /* @__PURE__ */ ((e) => (e.COMBO = "Combo", e))(gr || {}), Nr = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.PLATFORM = "platform", e.CACE = "CACE", e.GLOBAL_PAGE = "globalPage", e.DEV_LOCAL = "dev:local", e.CUSTOMIZATION = "customization", e))(Nr || {});
|
|
1108
1108
|
class ft extends Error {
|
|
1109
1109
|
constructor(t, n, i) {
|
|
1110
1110
|
super(n), this.value = i, this.name = t;
|
|
@@ -1116,7 +1116,7 @@ class ft extends Error {
|
|
|
1116
1116
|
}, this.value && { value: this.value });
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
class
|
|
1119
|
+
class Or extends ft {
|
|
1120
1120
|
constructor(t) {
|
|
1121
1121
|
super(
|
|
1122
1122
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -1125,7 +1125,7 @@ class Oa extends ft {
|
|
|
1125
1125
|
);
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
|
-
class
|
|
1128
|
+
class Ar extends ft {
|
|
1129
1129
|
constructor(t) {
|
|
1130
1130
|
var n;
|
|
1131
1131
|
super(
|
|
@@ -1135,12 +1135,12 @@ class Aa extends ft {
|
|
|
1135
1135
|
);
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
class
|
|
1138
|
+
class Mo extends ft {
|
|
1139
1139
|
constructor() {
|
|
1140
1140
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
class
|
|
1143
|
+
class Er extends ft {
|
|
1144
1144
|
constructor(t) {
|
|
1145
1145
|
super(
|
|
1146
1146
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -1173,17 +1173,17 @@ function N(e) {
|
|
|
1173
1173
|
n[i - 1] = arguments[i];
|
|
1174
1174
|
throw new Error(typeof e == "number" ? "[MobX] minified error nr: " + e + (n.length ? " " + n.map(String).join(",") : "") + ". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts" : "[MobX] " + e);
|
|
1175
1175
|
}
|
|
1176
|
-
var
|
|
1176
|
+
var Fr = {};
|
|
1177
1177
|
function Kn() {
|
|
1178
|
-
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self :
|
|
1178
|
+
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : Fr;
|
|
1179
1179
|
}
|
|
1180
|
-
var $n = Object.assign,
|
|
1180
|
+
var $n = Object.assign, at = Object.getOwnPropertyDescriptor, J = Object.defineProperty, mt = Object.prototype, Vt = [];
|
|
1181
1181
|
Object.freeze(Vt);
|
|
1182
1182
|
var Kt = {};
|
|
1183
1183
|
Object.freeze(Kt);
|
|
1184
|
-
var
|
|
1184
|
+
var Rr = typeof Proxy != "undefined", Cr = /* @__PURE__ */ Object.toString();
|
|
1185
1185
|
function qn() {
|
|
1186
|
-
|
|
1186
|
+
Rr || N("Proxy not available");
|
|
1187
1187
|
}
|
|
1188
1188
|
function Wn(e) {
|
|
1189
1189
|
var t = !1;
|
|
@@ -1217,7 +1217,7 @@ function Y(e) {
|
|
|
1217
1217
|
if (t == null)
|
|
1218
1218
|
return !0;
|
|
1219
1219
|
var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
1220
|
-
return typeof n == "function" && n.toString() ===
|
|
1220
|
+
return typeof n == "function" && n.toString() === Cr;
|
|
1221
1221
|
}
|
|
1222
1222
|
function Jn(e) {
|
|
1223
1223
|
var t = e == null ? void 0 : e.constructor;
|
|
@@ -1252,7 +1252,7 @@ function Ue(e) {
|
|
|
1252
1252
|
return e instanceof Set;
|
|
1253
1253
|
}
|
|
1254
1254
|
var Xn = typeof Object.getOwnPropertySymbols != "undefined";
|
|
1255
|
-
function
|
|
1255
|
+
function Tr(e) {
|
|
1256
1256
|
var t = Object.keys(e);
|
|
1257
1257
|
if (!Xn)
|
|
1258
1258
|
return t;
|
|
@@ -1273,16 +1273,16 @@ function Hn(e) {
|
|
|
1273
1273
|
function ie(e, t) {
|
|
1274
1274
|
return mt.hasOwnProperty.call(e, t);
|
|
1275
1275
|
}
|
|
1276
|
-
var
|
|
1276
|
+
var wr = Object.getOwnPropertyDescriptors || function(t) {
|
|
1277
1277
|
var n = {};
|
|
1278
1278
|
return De(t).forEach(function(i) {
|
|
1279
|
-
n[i] =
|
|
1279
|
+
n[i] = at(t, i);
|
|
1280
1280
|
}), n;
|
|
1281
1281
|
};
|
|
1282
1282
|
function yn(e, t) {
|
|
1283
1283
|
for (var n = 0; n < t.length; n++) {
|
|
1284
1284
|
var i = t[n];
|
|
1285
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e,
|
|
1285
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, Vr(i.key), i);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
function $t(e, t, n) {
|
|
@@ -1304,8 +1304,8 @@ function Yn(e, t) {
|
|
|
1304
1304
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, It(e, t);
|
|
1305
1305
|
}
|
|
1306
1306
|
function It(e, t) {
|
|
1307
|
-
return It = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i,
|
|
1308
|
-
return i.__proto__ =
|
|
1307
|
+
return It = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, a) {
|
|
1308
|
+
return i.__proto__ = a, i;
|
|
1309
1309
|
}, It(e, t);
|
|
1310
1310
|
}
|
|
1311
1311
|
function Rt(e) {
|
|
@@ -1313,18 +1313,18 @@ function Rt(e) {
|
|
|
1313
1313
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1314
1314
|
return e;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function Dr(e, t) {
|
|
1317
1317
|
if (e) {
|
|
1318
1318
|
if (typeof e == "string")
|
|
1319
|
-
return
|
|
1319
|
+
return Sn(e, t);
|
|
1320
1320
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1321
1321
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
|
|
1322
1322
|
return Array.from(e);
|
|
1323
1323
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
1324
|
-
return
|
|
1324
|
+
return Sn(e, t);
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Sn(e, t) {
|
|
1328
1328
|
(t == null || t > e.length) && (t = e.length);
|
|
1329
1329
|
for (var n = 0, i = new Array(t); n < t; n++)
|
|
1330
1330
|
i[n] = e[n];
|
|
@@ -1334,7 +1334,7 @@ function _e(e, t) {
|
|
|
1334
1334
|
var n = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1335
1335
|
if (n)
|
|
1336
1336
|
return (n = n.call(e)).next.bind(n);
|
|
1337
|
-
if (Array.isArray(e) || (n =
|
|
1337
|
+
if (Array.isArray(e) || (n = Dr(e)) || t && e && typeof e.length == "number") {
|
|
1338
1338
|
n && (e = n);
|
|
1339
1339
|
var i = 0;
|
|
1340
1340
|
return function() {
|
|
@@ -1349,7 +1349,7 @@ function _e(e, t) {
|
|
|
1349
1349
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1350
1350
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function Pr(e, t) {
|
|
1353
1353
|
if (typeof e != "object" || e === null)
|
|
1354
1354
|
return e;
|
|
1355
1355
|
var n = e[Symbol.toPrimitive];
|
|
@@ -1361,8 +1361,8 @@ function Pa(e, t) {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
return (t === "string" ? String : Number)(e);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1365
|
-
var t =
|
|
1364
|
+
function Vr(e) {
|
|
1365
|
+
var t = Pr(e, "string");
|
|
1366
1366
|
return typeof t == "symbol" ? t : String(t);
|
|
1367
1367
|
}
|
|
1368
1368
|
var ke = /* @__PURE__ */ Symbol("mobx-stored-annotations");
|
|
@@ -1373,7 +1373,7 @@ function Z(e) {
|
|
|
1373
1373
|
return Object.assign(t, e);
|
|
1374
1374
|
}
|
|
1375
1375
|
function Be(e, t, n) {
|
|
1376
|
-
ie(e, ke) || ht(e, ke, Pe({}, e[ke])),
|
|
1376
|
+
ie(e, ke) || ht(e, ke, Pe({}, e[ke])), Gr(n) || (e[ke][t] = n);
|
|
1377
1377
|
}
|
|
1378
1378
|
var _ = /* @__PURE__ */ Symbol("mobx administration"), Ge = /* @__PURE__ */ function() {
|
|
1379
1379
|
function e(n) {
|
|
@@ -1391,7 +1391,7 @@ var _ = /* @__PURE__ */ Symbol("mobx administration"), Ge = /* @__PURE__ */ func
|
|
|
1391
1391
|
}, t.reportObserved = function() {
|
|
1392
1392
|
return yi(this);
|
|
1393
1393
|
}, t.reportChanged = function() {
|
|
1394
|
-
L(),
|
|
1394
|
+
L(), Si(this), f.stateVersion = f.stateVersion < Number.MAX_SAFE_INTEGER ? f.stateVersion + 1 : Number.MIN_SAFE_INTEGER, M();
|
|
1395
1395
|
}, t.toString = function() {
|
|
1396
1396
|
return this.name_;
|
|
1397
1397
|
}, e;
|
|
@@ -1401,23 +1401,23 @@ function ei(e, t, n) {
|
|
|
1401
1401
|
var i = new Ge(e);
|
|
1402
1402
|
return t !== pe && Us(i, t), n !== pe && Ri(i, n), i;
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Ir(e, t) {
|
|
1405
1405
|
return e === t;
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function jr(e, t) {
|
|
1408
1408
|
return en(e, t);
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function xr(e, t) {
|
|
1411
1411
|
return en(e, t, 1);
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Lr(e, t) {
|
|
1414
1414
|
return Object.is ? Object.is(e, t) : e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
1415
1415
|
}
|
|
1416
|
-
var
|
|
1417
|
-
identity:
|
|
1418
|
-
structural:
|
|
1419
|
-
default:
|
|
1420
|
-
shallow:
|
|
1416
|
+
var be = {
|
|
1417
|
+
identity: Ir,
|
|
1418
|
+
structural: jr,
|
|
1419
|
+
default: Lr,
|
|
1420
|
+
shallow: xr
|
|
1421
1421
|
};
|
|
1422
1422
|
function ge(e, t, n) {
|
|
1423
1423
|
return $e(e) ? e : Array.isArray(e) ? V.array(e, {
|
|
@@ -1430,8 +1430,8 @@ function ge(e, t, n) {
|
|
|
1430
1430
|
name: n
|
|
1431
1431
|
}) : typeof e == "function" && !Zt(e) && !lt(e) ? Jn(e) ? je(e) : Ie(n, e) : e;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1434
|
-
if (e == null || xe(e) ||
|
|
1433
|
+
function Mr(e, t, n) {
|
|
1434
|
+
if (e == null || xe(e) || St(e) || fe(e) || Ee(e))
|
|
1435
1435
|
return e;
|
|
1436
1436
|
if (Array.isArray(e))
|
|
1437
1437
|
return V.array(e, {
|
|
@@ -1457,95 +1457,95 @@ function Ma(e, t, n) {
|
|
|
1457
1457
|
function pt(e) {
|
|
1458
1458
|
return e;
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Ur(e, t) {
|
|
1461
1461
|
return en(e, t) ? t : e;
|
|
1462
1462
|
}
|
|
1463
|
-
var
|
|
1464
|
-
function
|
|
1465
|
-
return e.annotationType_ ===
|
|
1463
|
+
var Br = "override";
|
|
1464
|
+
function Gr(e) {
|
|
1465
|
+
return e.annotationType_ === Br;
|
|
1466
1466
|
}
|
|
1467
1467
|
function ze(e, t) {
|
|
1468
1468
|
return {
|
|
1469
1469
|
annotationType_: e,
|
|
1470
1470
|
options_: t,
|
|
1471
|
-
make_:
|
|
1472
|
-
extend_:
|
|
1471
|
+
make_: zr,
|
|
1472
|
+
extend_: Qr
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1476
|
-
var
|
|
1477
|
-
if ((
|
|
1475
|
+
function zr(e, t, n, i) {
|
|
1476
|
+
var a;
|
|
1477
|
+
if ((a = this.options_) != null && a.bound)
|
|
1478
1478
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1479
1479
|
if (i === e.target_)
|
|
1480
1480
|
return this.extend_(e, t, n, !1) === null ? 0 : 2;
|
|
1481
1481
|
if (Zt(n.value))
|
|
1482
1482
|
return 1;
|
|
1483
|
-
var
|
|
1484
|
-
return J(i, t,
|
|
1483
|
+
var r = ti(e, this, t, n, !1);
|
|
1484
|
+
return J(i, t, r), 2;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1487
|
-
var
|
|
1488
|
-
return e.defineProperty_(t,
|
|
1486
|
+
function Qr(e, t, n, i) {
|
|
1487
|
+
var a = ti(e, this, t, n);
|
|
1488
|
+
return e.defineProperty_(t, a, i);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Kr(e, t, n, i) {
|
|
1491
1491
|
t.annotationType_, i.value;
|
|
1492
1492
|
}
|
|
1493
|
-
function ti(e, t, n, i,
|
|
1494
|
-
var
|
|
1495
|
-
|
|
1496
|
-
var
|
|
1497
|
-
if ((
|
|
1493
|
+
function ti(e, t, n, i, a) {
|
|
1494
|
+
var r, s, o, u, d, c, v;
|
|
1495
|
+
a === void 0 && (a = f.safeDescriptors), Kr(e, t, n, i);
|
|
1496
|
+
var b = i.value;
|
|
1497
|
+
if ((r = t.options_) != null && r.bound) {
|
|
1498
1498
|
var F;
|
|
1499
|
-
|
|
1499
|
+
b = b.bind((F = e.proxy_) != null ? F : e.target_);
|
|
1500
1500
|
}
|
|
1501
1501
|
return {
|
|
1502
1502
|
value: Ne(
|
|
1503
1503
|
(s = (o = t.options_) == null ? void 0 : o.name) != null ? s : n.toString(),
|
|
1504
|
-
|
|
1504
|
+
b,
|
|
1505
1505
|
(u = (d = t.options_) == null ? void 0 : d.autoAction) != null ? u : !1,
|
|
1506
1506
|
// https://github.com/mobxjs/mobx/discussions/3140
|
|
1507
1507
|
(c = t.options_) != null && c.bound ? (v = e.proxy_) != null ? v : e.target_ : void 0
|
|
1508
1508
|
),
|
|
1509
1509
|
// Non-configurable for classes
|
|
1510
1510
|
// prevents accidental field redefinition in subclass
|
|
1511
|
-
configurable:
|
|
1511
|
+
configurable: a ? e.isPlainObject_ : !0,
|
|
1512
1512
|
// https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058
|
|
1513
1513
|
enumerable: !1,
|
|
1514
1514
|
// Non-obsevable, therefore non-writable
|
|
1515
1515
|
// Also prevents rewriting in subclass constructor
|
|
1516
|
-
writable: !
|
|
1516
|
+
writable: !a
|
|
1517
1517
|
};
|
|
1518
1518
|
}
|
|
1519
1519
|
function ni(e, t) {
|
|
1520
1520
|
return {
|
|
1521
1521
|
annotationType_: e,
|
|
1522
1522
|
options_: t,
|
|
1523
|
-
make_: $
|
|
1524
|
-
extend_:
|
|
1523
|
+
make_: $r,
|
|
1524
|
+
extend_: qr
|
|
1525
1525
|
};
|
|
1526
1526
|
}
|
|
1527
|
-
function $
|
|
1528
|
-
var
|
|
1527
|
+
function $r(e, t, n, i) {
|
|
1528
|
+
var a;
|
|
1529
1529
|
if (i === e.target_)
|
|
1530
1530
|
return this.extend_(e, t, n, !1) === null ? 0 : 2;
|
|
1531
|
-
if ((
|
|
1531
|
+
if ((a = this.options_) != null && a.bound && (!ie(e.target_, t) || !lt(e.target_[t])) && this.extend_(e, t, n, !1) === null)
|
|
1532
1532
|
return 0;
|
|
1533
1533
|
if (lt(n.value))
|
|
1534
1534
|
return 1;
|
|
1535
|
-
var
|
|
1536
|
-
return J(i, t,
|
|
1535
|
+
var r = ii(e, this, t, n, !1, !1);
|
|
1536
|
+
return J(i, t, r), 2;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
var
|
|
1540
|
-
return e.defineProperty_(t,
|
|
1538
|
+
function qr(e, t, n, i) {
|
|
1539
|
+
var a, r = ii(e, this, t, n, (a = this.options_) == null ? void 0 : a.bound);
|
|
1540
|
+
return e.defineProperty_(t, r, i);
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function Wr(e, t, n, i) {
|
|
1543
1543
|
t.annotationType_, i.value;
|
|
1544
1544
|
}
|
|
1545
|
-
function ii(e, t, n, i,
|
|
1546
|
-
|
|
1545
|
+
function ii(e, t, n, i, a, r) {
|
|
1546
|
+
r === void 0 && (r = f.safeDescriptors), Wr(e, t, n, i);
|
|
1547
1547
|
var s = i.value;
|
|
1548
|
-
if (lt(s) || (s = je(s)),
|
|
1548
|
+
if (lt(s) || (s = je(s)), a) {
|
|
1549
1549
|
var o;
|
|
1550
1550
|
s = s.bind((o = e.proxy_) != null ? o : e.target_), s.isMobXFlow = !0;
|
|
1551
1551
|
}
|
|
@@ -1553,63 +1553,63 @@ function ii(e, t, n, i, r, a) {
|
|
|
1553
1553
|
value: s,
|
|
1554
1554
|
// Non-configurable for classes
|
|
1555
1555
|
// prevents accidental field redefinition in subclass
|
|
1556
|
-
configurable:
|
|
1556
|
+
configurable: r ? e.isPlainObject_ : !0,
|
|
1557
1557
|
// https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058
|
|
1558
1558
|
enumerable: !1,
|
|
1559
1559
|
// Non-obsevable, therefore non-writable
|
|
1560
1560
|
// Also prevents rewriting in subclass constructor
|
|
1561
|
-
writable: !
|
|
1561
|
+
writable: !r
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
1564
1564
|
function Wt(e, t) {
|
|
1565
1565
|
return {
|
|
1566
1566
|
annotationType_: e,
|
|
1567
1567
|
options_: t,
|
|
1568
|
-
make_:
|
|
1569
|
-
extend_:
|
|
1568
|
+
make_: Jr,
|
|
1569
|
+
extend_: Zr
|
|
1570
1570
|
};
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Jr(e, t, n) {
|
|
1573
1573
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1576
|
-
return
|
|
1575
|
+
function Zr(e, t, n, i) {
|
|
1576
|
+
return Xr(e, this, t, n), e.defineComputedProperty_(t, Pe({}, this.options_, {
|
|
1577
1577
|
get: n.get,
|
|
1578
1578
|
set: n.set
|
|
1579
1579
|
}), i);
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Xr(e, t, n, i) {
|
|
1582
1582
|
t.annotationType_, i.get;
|
|
1583
1583
|
}
|
|
1584
1584
|
function _t(e, t) {
|
|
1585
1585
|
return {
|
|
1586
1586
|
annotationType_: e,
|
|
1587
1587
|
options_: t,
|
|
1588
|
-
make_:
|
|
1589
|
-
extend_:
|
|
1588
|
+
make_: Hr,
|
|
1589
|
+
extend_: Yr
|
|
1590
1590
|
};
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function Hr(e, t, n) {
|
|
1593
1593
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1596
|
-
var
|
|
1597
|
-
return es(e, this), e.defineObservableProperty_(t, n.value, (
|
|
1595
|
+
function Yr(e, t, n, i) {
|
|
1596
|
+
var a, r;
|
|
1597
|
+
return es(e, this), e.defineObservableProperty_(t, n.value, (a = (r = this.options_) == null ? void 0 : r.enhancer) != null ? a : ge, i);
|
|
1598
1598
|
}
|
|
1599
1599
|
function es(e, t, n, i) {
|
|
1600
1600
|
t.annotationType_;
|
|
1601
1601
|
}
|
|
1602
|
-
var ts = "true", ns = /* @__PURE__ */
|
|
1603
|
-
function
|
|
1602
|
+
var ts = "true", ns = /* @__PURE__ */ ai();
|
|
1603
|
+
function ai(e) {
|
|
1604
1604
|
return {
|
|
1605
1605
|
annotationType_: ts,
|
|
1606
1606
|
options_: e,
|
|
1607
1607
|
make_: is,
|
|
1608
|
-
extend_:
|
|
1608
|
+
extend_: as
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
function is(e, t, n, i) {
|
|
1612
|
-
var
|
|
1612
|
+
var a, r;
|
|
1613
1613
|
if (n.get)
|
|
1614
1614
|
return kt.make_(e, t, n, i);
|
|
1615
1615
|
if (n.set) {
|
|
@@ -1631,15 +1631,15 @@ function is(e, t, n, i) {
|
|
|
1631
1631
|
var c = (o = this.options_) != null && o.autoBind ? Ie.bound : Ie;
|
|
1632
1632
|
return c.make_(e, t, n, i);
|
|
1633
1633
|
}
|
|
1634
|
-
var v = ((
|
|
1635
|
-
if (typeof n.value == "function" && (
|
|
1636
|
-
var
|
|
1637
|
-
n.value = n.value.bind((
|
|
1634
|
+
var v = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? V.ref : V;
|
|
1635
|
+
if (typeof n.value == "function" && (r = this.options_) != null && r.autoBind) {
|
|
1636
|
+
var b;
|
|
1637
|
+
n.value = n.value.bind((b = e.proxy_) != null ? b : e.target_);
|
|
1638
1638
|
}
|
|
1639
1639
|
return v.make_(e, t, n, i);
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1642
|
-
var
|
|
1641
|
+
function as(e, t, n, i) {
|
|
1642
|
+
var a, r;
|
|
1643
1643
|
if (n.get)
|
|
1644
1644
|
return kt.extend_(e, t, n, i);
|
|
1645
1645
|
if (n.set)
|
|
@@ -1647,36 +1647,36 @@ function rs(e, t, n, i) {
|
|
|
1647
1647
|
configurable: f.safeDescriptors ? e.isPlainObject_ : !0,
|
|
1648
1648
|
set: Ne(t.toString(), n.set)
|
|
1649
1649
|
}, i);
|
|
1650
|
-
if (typeof n.value == "function" && (
|
|
1650
|
+
if (typeof n.value == "function" && (a = this.options_) != null && a.autoBind) {
|
|
1651
1651
|
var s;
|
|
1652
1652
|
n.value = n.value.bind((s = e.proxy_) != null ? s : e.target_);
|
|
1653
1653
|
}
|
|
1654
|
-
var o = ((
|
|
1654
|
+
var o = ((r = this.options_) == null ? void 0 : r.deep) === !1 ? V.ref : V;
|
|
1655
1655
|
return o.extend_(e, t, n, i);
|
|
1656
1656
|
}
|
|
1657
|
-
var
|
|
1657
|
+
var rs = "observable", ss = "observable.ref", os = "observable.shallow", us = "observable.struct", ri = {
|
|
1658
1658
|
deep: !0,
|
|
1659
1659
|
name: void 0,
|
|
1660
1660
|
defaultDecorator: void 0,
|
|
1661
1661
|
proxy: !0
|
|
1662
1662
|
};
|
|
1663
|
-
Object.freeze(
|
|
1663
|
+
Object.freeze(ri);
|
|
1664
1664
|
function He(e) {
|
|
1665
|
-
return e ||
|
|
1665
|
+
return e || ri;
|
|
1666
1666
|
}
|
|
1667
|
-
var si = /* @__PURE__ */ _t(
|
|
1667
|
+
var si = /* @__PURE__ */ _t(rs), ls = /* @__PURE__ */ _t(ss, {
|
|
1668
1668
|
enhancer: pt
|
|
1669
1669
|
}), ds = /* @__PURE__ */ _t(os, {
|
|
1670
|
-
enhancer:
|
|
1670
|
+
enhancer: Mr
|
|
1671
1671
|
}), cs = /* @__PURE__ */ _t(us, {
|
|
1672
|
-
enhancer:
|
|
1672
|
+
enhancer: Ur
|
|
1673
1673
|
}), oi = /* @__PURE__ */ Z(si);
|
|
1674
1674
|
function Ye(e) {
|
|
1675
1675
|
return e.deep === !0 ? ge : e.deep === !1 ? pt : ms(e.defaultDecorator);
|
|
1676
1676
|
}
|
|
1677
1677
|
function fs(e) {
|
|
1678
1678
|
var t;
|
|
1679
|
-
return e ? (t = e.defaultDecorator) != null ? t :
|
|
1679
|
+
return e ? (t = e.defaultDecorator) != null ? t : ai(e) : void 0;
|
|
1680
1680
|
}
|
|
1681
1681
|
function ms(e) {
|
|
1682
1682
|
var t, n;
|
|
@@ -1708,14 +1708,14 @@ var vs = {
|
|
|
1708
1708
|
return new Li(t, Ye(i), i.name);
|
|
1709
1709
|
},
|
|
1710
1710
|
object: function(t, n, i) {
|
|
1711
|
-
return
|
|
1711
|
+
return Ti(f.useProxies === !1 || (i == null ? void 0 : i.proxy) === !1 ? bt({}, i) : qs({}, i), t, n);
|
|
1712
1712
|
},
|
|
1713
1713
|
ref: /* @__PURE__ */ Z(ls),
|
|
1714
1714
|
shallow: /* @__PURE__ */ Z(ds),
|
|
1715
1715
|
deep: oi,
|
|
1716
1716
|
struct: /* @__PURE__ */ Z(cs)
|
|
1717
1717
|
}, V = /* @__PURE__ */ $n(ui, vs), li = "computed", hs = "computed.struct", di = /* @__PURE__ */ Wt(li), ps = /* @__PURE__ */ Wt(hs, {
|
|
1718
|
-
equals:
|
|
1718
|
+
equals: be.structural
|
|
1719
1719
|
}), kt = function(t, n) {
|
|
1720
1720
|
if (le(n))
|
|
1721
1721
|
return Be(t, n, di);
|
|
@@ -1726,8 +1726,8 @@ var vs = {
|
|
|
1726
1726
|
};
|
|
1727
1727
|
Object.assign(kt, di);
|
|
1728
1728
|
kt.struct = /* @__PURE__ */ Z(ps);
|
|
1729
|
-
var
|
|
1730
|
-
}, "name")) == null ? void 0 : gn.configurable) != null ?
|
|
1729
|
+
var bn, gn, rt = 0, _s = 1, ks = (bn = (gn = /* @__PURE__ */ at(function() {
|
|
1730
|
+
}, "name")) == null ? void 0 : gn.configurable) != null ? bn : !1, Nn = {
|
|
1731
1731
|
value: "action",
|
|
1732
1732
|
configurable: !0,
|
|
1733
1733
|
writable: !1,
|
|
@@ -1735,23 +1735,23 @@ var Sn, gn, at = 0, _s = 1, ks = (Sn = (gn = /* @__PURE__ */ rt(function() {
|
|
|
1735
1735
|
};
|
|
1736
1736
|
function Ne(e, t, n, i) {
|
|
1737
1737
|
n === void 0 && (n = !1);
|
|
1738
|
-
function
|
|
1738
|
+
function a() {
|
|
1739
1739
|
return ys(e, n, t, i || this, arguments);
|
|
1740
1740
|
}
|
|
1741
|
-
return
|
|
1741
|
+
return a.isMobxAction = !0, ks && (Nn.value = e, J(a, "name", Nn)), a;
|
|
1742
1742
|
}
|
|
1743
|
-
function ys(e, t, n, i,
|
|
1744
|
-
var
|
|
1743
|
+
function ys(e, t, n, i, a) {
|
|
1744
|
+
var r = Ss(e, t);
|
|
1745
1745
|
try {
|
|
1746
|
-
return n.apply(i,
|
|
1746
|
+
return n.apply(i, a);
|
|
1747
1747
|
} catch (s) {
|
|
1748
|
-
throw
|
|
1748
|
+
throw r.error_ = s, s;
|
|
1749
1749
|
} finally {
|
|
1750
|
-
|
|
1750
|
+
bs(r);
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1754
|
-
var
|
|
1753
|
+
function Ss(e, t, n, i) {
|
|
1754
|
+
var a = !1, r = 0, s = f.trackingDerivation, o = !t || !s;
|
|
1755
1755
|
L();
|
|
1756
1756
|
var u = f.allowStateChanges;
|
|
1757
1757
|
o && (Ae(), u = Qe(!0));
|
|
@@ -1760,15 +1760,15 @@ function bs(e, t, n, i) {
|
|
|
1760
1760
|
prevDerivation_: s,
|
|
1761
1761
|
prevAllowStateChanges_: u,
|
|
1762
1762
|
prevAllowStateReads_: d,
|
|
1763
|
-
notifySpy_:
|
|
1764
|
-
startTime_:
|
|
1763
|
+
notifySpy_: a,
|
|
1764
|
+
startTime_: r,
|
|
1765
1765
|
actionId_: _s++,
|
|
1766
|
-
parentActionId_:
|
|
1766
|
+
parentActionId_: rt
|
|
1767
1767
|
};
|
|
1768
|
-
return
|
|
1768
|
+
return rt = c.actionId_, c;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
|
|
1770
|
+
function bs(e) {
|
|
1771
|
+
rt !== e.actionId_ && N(30), rt = e.parentActionId_, e.error_ !== void 0 && (f.suppressReactionErrors = !0), Ke(e.prevAllowStateChanges_), Te(e.prevAllowStateReads_), M(), e.runAsAction_ && ae(e.prevDerivation_), f.suppressReactionErrors = !1;
|
|
1772
1772
|
}
|
|
1773
1773
|
function ci(e, t) {
|
|
1774
1774
|
var n = Qe(e);
|
|
@@ -1789,48 +1789,48 @@ var fi;
|
|
|
1789
1789
|
fi = Symbol.toPrimitive;
|
|
1790
1790
|
var ye = /* @__PURE__ */ function(e) {
|
|
1791
1791
|
Yn(t, e);
|
|
1792
|
-
function t(i,
|
|
1792
|
+
function t(i, a, r, s, o) {
|
|
1793
1793
|
var u;
|
|
1794
|
-
return
|
|
1794
|
+
return r === void 0 && (r = "ObservableValue"), o === void 0 && (o = be.default), u = e.call(this, r) || this, u.enhancer = void 0, u.name_ = void 0, u.equals = void 0, u.hasUnreportedChange_ = !1, u.interceptors_ = void 0, u.changeListeners_ = void 0, u.value_ = void 0, u.dehancer = void 0, u.enhancer = a, u.name_ = r, u.equals = o, u.value_ = a(i, void 0, r), u;
|
|
1795
1795
|
}
|
|
1796
1796
|
var n = t.prototype;
|
|
1797
|
-
return n.dehanceValue = function(
|
|
1798
|
-
return this.dehancer !== void 0 ? this.dehancer(
|
|
1799
|
-
}, n.set = function(
|
|
1800
|
-
this.value_,
|
|
1801
|
-
}, n.prepareNewValue_ = function(
|
|
1797
|
+
return n.dehanceValue = function(a) {
|
|
1798
|
+
return this.dehancer !== void 0 ? this.dehancer(a) : a;
|
|
1799
|
+
}, n.set = function(a) {
|
|
1800
|
+
this.value_, a = this.prepareNewValue_(a), a !== f.UNCHANGED && this.setNewValue_(a);
|
|
1801
|
+
}, n.prepareNewValue_ = function(a) {
|
|
1802
1802
|
if (U(this)) {
|
|
1803
|
-
var
|
|
1803
|
+
var r = B(this, {
|
|
1804
1804
|
object: this,
|
|
1805
1805
|
type: X,
|
|
1806
|
-
newValue:
|
|
1806
|
+
newValue: a
|
|
1807
1807
|
});
|
|
1808
|
-
if (!
|
|
1808
|
+
if (!r)
|
|
1809
1809
|
return f.UNCHANGED;
|
|
1810
|
-
|
|
1810
|
+
a = r.newValue;
|
|
1811
1811
|
}
|
|
1812
|
-
return
|
|
1813
|
-
}, n.setNewValue_ = function(
|
|
1814
|
-
var
|
|
1815
|
-
this.value_ =
|
|
1812
|
+
return a = this.enhancer(a, this.value_, this.name_), this.equals(this.value_, a) ? f.UNCHANGED : a;
|
|
1813
|
+
}, n.setNewValue_ = function(a) {
|
|
1814
|
+
var r = this.value_;
|
|
1815
|
+
this.value_ = a, this.reportChanged(), K(this) && $(this, {
|
|
1816
1816
|
type: X,
|
|
1817
1817
|
object: this,
|
|
1818
|
-
newValue:
|
|
1819
|
-
oldValue:
|
|
1818
|
+
newValue: a,
|
|
1819
|
+
oldValue: r
|
|
1820
1820
|
});
|
|
1821
1821
|
}, n.get = function() {
|
|
1822
1822
|
return this.reportObserved(), this.dehanceValue(this.value_);
|
|
1823
|
-
}, n.intercept_ = function(
|
|
1824
|
-
return qe(this,
|
|
1825
|
-
}, n.observe_ = function(
|
|
1826
|
-
return
|
|
1823
|
+
}, n.intercept_ = function(a) {
|
|
1824
|
+
return qe(this, a);
|
|
1825
|
+
}, n.observe_ = function(a, r) {
|
|
1826
|
+
return r && a({
|
|
1827
1827
|
observableKind: "value",
|
|
1828
1828
|
debugObjectName: this.name_,
|
|
1829
1829
|
object: this,
|
|
1830
1830
|
type: X,
|
|
1831
1831
|
newValue: this.value_,
|
|
1832
1832
|
oldValue: void 0
|
|
1833
|
-
}), We(this,
|
|
1833
|
+
}), We(this, a);
|
|
1834
1834
|
}, n.raw = function() {
|
|
1835
1835
|
return this.value_;
|
|
1836
1836
|
}, n.toJSON = function() {
|
|
@@ -1846,7 +1846,7 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1846
1846
|
mi = Symbol.toPrimitive;
|
|
1847
1847
|
var Ve = /* @__PURE__ */ function() {
|
|
1848
1848
|
function e(n) {
|
|
1849
|
-
this.dependenciesState_ = g.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = g.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new st(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.isComputing_ = !1, this.isRunningSetter_ = !1, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = ue.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, n.get || N(31), this.derivation = n.get, this.name_ = n.name || "ComputedValue", n.set && (this.setter_ = Ne("ComputedValue-setter", n.set)), this.equals_ = n.equals || (n.compareStructural || n.struct ?
|
|
1849
|
+
this.dependenciesState_ = g.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = g.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new st(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.isComputing_ = !1, this.isRunningSetter_ = !1, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = ue.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, n.get || N(31), this.derivation = n.get, this.name_ = n.name || "ComputedValue", n.set && (this.setter_ = Ne("ComputedValue-setter", n.set)), this.equals_ = n.equals || (n.compareStructural || n.struct ? be.structural : be.default), this.scope_ = n.context, this.requiresReaction_ = n.requiresReaction, this.keepAlive_ = !!n.keepAlive;
|
|
1850
1850
|
}
|
|
1851
1851
|
var t = e.prototype;
|
|
1852
1852
|
return t.onBecomeStale_ = function() {
|
|
@@ -1867,10 +1867,10 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1867
1867
|
var i = f.trackingContext;
|
|
1868
1868
|
this.keepAlive_ && !i && (f.trackingContext = this), this.trackAndCompute() && Os(this), f.trackingContext = i;
|
|
1869
1869
|
}
|
|
1870
|
-
var
|
|
1871
|
-
if (et(
|
|
1872
|
-
throw
|
|
1873
|
-
return
|
|
1870
|
+
var a = this.value_;
|
|
1871
|
+
if (et(a))
|
|
1872
|
+
throw a.cause;
|
|
1873
|
+
return a;
|
|
1874
1874
|
}, t.set = function(i) {
|
|
1875
1875
|
if (this.setter_) {
|
|
1876
1876
|
this.isRunningSetter_ && N(33, this.name_), this.isRunningSetter_ = !0;
|
|
@@ -1882,41 +1882,41 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1882
1882
|
} else
|
|
1883
1883
|
N(34, this.name_);
|
|
1884
1884
|
}, t.trackAndCompute = function() {
|
|
1885
|
-
var i = this.value_,
|
|
1885
|
+
var i = this.value_, a = (
|
|
1886
1886
|
/* see #1208 */
|
|
1887
1887
|
this.dependenciesState_ === g.NOT_TRACKING_
|
|
1888
|
-
),
|
|
1889
|
-
return s && (this.value_ =
|
|
1888
|
+
), r = this.computeValue_(!0), s = a || et(i) || et(r) || !this.equals_(i, r);
|
|
1889
|
+
return s && (this.value_ = r), s;
|
|
1890
1890
|
}, t.computeValue_ = function(i) {
|
|
1891
1891
|
this.isComputing_ = !0;
|
|
1892
|
-
var
|
|
1892
|
+
var a = Qe(!1), r;
|
|
1893
1893
|
if (i)
|
|
1894
|
-
|
|
1894
|
+
r = vi(this, this.derivation, this.scope_);
|
|
1895
1895
|
else if (f.disableErrorBoundaries === !0)
|
|
1896
|
-
|
|
1896
|
+
r = this.derivation.call(this.scope_);
|
|
1897
1897
|
else
|
|
1898
1898
|
try {
|
|
1899
|
-
|
|
1899
|
+
r = this.derivation.call(this.scope_);
|
|
1900
1900
|
} catch (s) {
|
|
1901
|
-
|
|
1901
|
+
r = new st(s);
|
|
1902
1902
|
}
|
|
1903
|
-
return Ke(
|
|
1903
|
+
return Ke(a), this.isComputing_ = !1, r;
|
|
1904
1904
|
}, t.suspend_ = function() {
|
|
1905
1905
|
this.keepAlive_ || (xt(this), this.value_ = void 0);
|
|
1906
|
-
}, t.observe_ = function(i,
|
|
1907
|
-
var
|
|
1906
|
+
}, t.observe_ = function(i, a) {
|
|
1907
|
+
var r = this, s = !0, o = void 0;
|
|
1908
1908
|
return Xt(function() {
|
|
1909
|
-
var u =
|
|
1910
|
-
if (!s ||
|
|
1909
|
+
var u = r.get();
|
|
1910
|
+
if (!s || a) {
|
|
1911
1911
|
var d = Ae();
|
|
1912
1912
|
i({
|
|
1913
1913
|
observableKind: "computed",
|
|
1914
|
-
debugObjectName:
|
|
1914
|
+
debugObjectName: r.name_,
|
|
1915
1915
|
type: X,
|
|
1916
|
-
object:
|
|
1916
|
+
object: r,
|
|
1917
1917
|
newValue: u,
|
|
1918
1918
|
oldValue: o
|
|
1919
|
-
}),
|
|
1919
|
+
}), ae(d);
|
|
1920
1920
|
}
|
|
1921
1921
|
s = !1, o = u;
|
|
1922
1922
|
});
|
|
@@ -1950,8 +1950,8 @@ function jt(e) {
|
|
|
1950
1950
|
case g.STALE_:
|
|
1951
1951
|
return !0;
|
|
1952
1952
|
case g.POSSIBLY_STALE_: {
|
|
1953
|
-
for (var t = Jt(!0), n = Ae(), i = e.observing_,
|
|
1954
|
-
var s = i[
|
|
1953
|
+
for (var t = Jt(!0), n = Ae(), i = e.observing_, a = i.length, r = 0; r < a; r++) {
|
|
1954
|
+
var s = i[r];
|
|
1955
1955
|
if (yt(s)) {
|
|
1956
1956
|
if (f.disableErrorBoundaries)
|
|
1957
1957
|
s.get();
|
|
@@ -1959,43 +1959,43 @@ function jt(e) {
|
|
|
1959
1959
|
try {
|
|
1960
1960
|
s.get();
|
|
1961
1961
|
} catch (o) {
|
|
1962
|
-
return
|
|
1962
|
+
return ae(n), Te(t), !0;
|
|
1963
1963
|
}
|
|
1964
1964
|
if (e.dependenciesState_ === g.STALE_)
|
|
1965
|
-
return
|
|
1965
|
+
return ae(n), Te(t), !0;
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
|
-
return pi(e),
|
|
1968
|
+
return pi(e), ae(n), Te(t), !1;
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
1972
|
function vi(e, t, n) {
|
|
1973
1973
|
var i = Jt(!0);
|
|
1974
1974
|
pi(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++f.runId;
|
|
1975
|
-
var
|
|
1975
|
+
var a = f.trackingDerivation;
|
|
1976
1976
|
f.trackingDerivation = e, f.inBatch++;
|
|
1977
|
-
var
|
|
1977
|
+
var r;
|
|
1978
1978
|
if (f.disableErrorBoundaries === !0)
|
|
1979
|
-
|
|
1979
|
+
r = t.call(n);
|
|
1980
1980
|
else
|
|
1981
1981
|
try {
|
|
1982
|
-
|
|
1982
|
+
r = t.call(n);
|
|
1983
1983
|
} catch (s) {
|
|
1984
|
-
|
|
1984
|
+
r = new st(s);
|
|
1985
1985
|
}
|
|
1986
|
-
return f.inBatch--, f.trackingDerivation =
|
|
1986
|
+
return f.inBatch--, f.trackingDerivation = a, gs(e), Te(i), r;
|
|
1987
1987
|
}
|
|
1988
1988
|
function gs(e) {
|
|
1989
|
-
for (var t = e.observing_, n = e.observing_ = e.newObserving_, i = g.UP_TO_DATE_,
|
|
1989
|
+
for (var t = e.observing_, n = e.observing_ = e.newObserving_, i = g.UP_TO_DATE_, a = 0, r = e.unboundDepsCount_, s = 0; s < r; s++) {
|
|
1990
1990
|
var o = n[s];
|
|
1991
|
-
o.diffValue_ === 0 && (o.diffValue_ = 1,
|
|
1991
|
+
o.diffValue_ === 0 && (o.diffValue_ = 1, a !== s && (n[a] = o), a++), o.dependenciesState_ > i && (i = o.dependenciesState_);
|
|
1992
1992
|
}
|
|
1993
|
-
for (n.length =
|
|
1994
|
-
var u = t[
|
|
1993
|
+
for (n.length = a, e.newObserving_ = null, r = t.length; r--; ) {
|
|
1994
|
+
var u = t[r];
|
|
1995
1995
|
u.diffValue_ === 0 && _i(u, e), u.diffValue_ = 0;
|
|
1996
1996
|
}
|
|
1997
|
-
for (;
|
|
1998
|
-
var d = n[
|
|
1997
|
+
for (; a--; ) {
|
|
1998
|
+
var d = n[a];
|
|
1999
1999
|
d.diffValue_ === 1 && (d.diffValue_ = 0, Ns(d, e));
|
|
2000
2000
|
}
|
|
2001
2001
|
i !== g.UP_TO_DATE_ && (e.dependenciesState_ = i, e.onBecomeStale_());
|
|
@@ -2012,21 +2012,21 @@ function hi(e) {
|
|
|
2012
2012
|
try {
|
|
2013
2013
|
return e();
|
|
2014
2014
|
} finally {
|
|
2015
|
-
|
|
2015
|
+
ae(t);
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
2018
|
function Ae() {
|
|
2019
2019
|
var e = f.trackingDerivation;
|
|
2020
2020
|
return f.trackingDerivation = null, e;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function ae(e) {
|
|
2023
2023
|
f.trackingDerivation = e;
|
|
2024
2024
|
}
|
|
2025
2025
|
function Jt(e) {
|
|
2026
2026
|
var t = f.allowStateReads;
|
|
2027
2027
|
return f.allowStateReads = e, t;
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2029
|
+
function Te(e) {
|
|
2030
2030
|
f.allowStateReads = e;
|
|
2031
2031
|
}
|
|
2032
2032
|
function pi(e) {
|
|
@@ -2038,9 +2038,9 @@ function pi(e) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
var Ct = function() {
|
|
2040
2040
|
this.version = 6, this.UNCHANGED = {}, this.trackingDerivation = null, this.trackingContext = null, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !1, this.allowStateReads = !0, this.enforceActions = !0, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1, this.useProxies = !0, this.verifyProxies = !1, this.safeDescriptors = !0, this.stateVersion = Number.MIN_SAFE_INTEGER;
|
|
2041
|
-
},
|
|
2041
|
+
}, Tt = !0, f = /* @__PURE__ */ function() {
|
|
2042
2042
|
var e = /* @__PURE__ */ Kn();
|
|
2043
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
2043
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (Tt = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new Ct().version && (Tt = !1), Tt ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = /* @__PURE__ */ new Ct()) : (setTimeout(function() {
|
|
2044
2044
|
N(35);
|
|
2045
2045
|
}, 1), new Ct());
|
|
2046
2046
|
}();
|
|
@@ -2058,7 +2058,7 @@ function L() {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
function M() {
|
|
2060
2060
|
if (--f.inBatch === 0) {
|
|
2061
|
-
|
|
2061
|
+
bi();
|
|
2062
2062
|
for (var e = f.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
2063
2063
|
var n = e[t];
|
|
2064
2064
|
n.isPendingUnobservation_ = !1, n.observers_.size === 0 && (n.isBeingObserved_ && (n.isBeingObserved_ = !1, n.onBUO()), n instanceof Ve && n.suspend_());
|
|
@@ -2070,7 +2070,7 @@ function yi(e) {
|
|
|
2070
2070
|
var t = f.trackingDerivation;
|
|
2071
2071
|
return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && f.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), e.isBeingObserved_) : (e.observers_.size === 0 && f.inBatch > 0 && ki(e), !1);
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function Si(e) {
|
|
2074
2074
|
e.lowestObserverState_ !== g.STALE_ && (e.lowestObserverState_ = g.STALE_, e.observers_.forEach(function(t) {
|
|
2075
2075
|
t.dependenciesState_ === g.UP_TO_DATE_ && t.onBecomeStale_(), t.dependenciesState_ = g.STALE_;
|
|
2076
2076
|
}));
|
|
@@ -2086,14 +2086,14 @@ function As(e) {
|
|
|
2086
2086
|
}));
|
|
2087
2087
|
}
|
|
2088
2088
|
var ot = /* @__PURE__ */ function() {
|
|
2089
|
-
function e(n, i,
|
|
2090
|
-
n === void 0 && (n = "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = g.NOT_TRACKING_, this.diffValue_ = 0, this.runId_ = 0, this.unboundDepsCount_ = 0, this.isDisposed_ = !1, this.isScheduled_ = !1, this.isTrackPending_ = !1, this.isRunning_ = !1, this.isTracing_ = ue.NONE, this.name_ = n, this.onInvalidate_ = i, this.errorHandler_ =
|
|
2089
|
+
function e(n, i, a, r) {
|
|
2090
|
+
n === void 0 && (n = "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = g.NOT_TRACKING_, this.diffValue_ = 0, this.runId_ = 0, this.unboundDepsCount_ = 0, this.isDisposed_ = !1, this.isScheduled_ = !1, this.isTrackPending_ = !1, this.isRunning_ = !1, this.isTracing_ = ue.NONE, this.name_ = n, this.onInvalidate_ = i, this.errorHandler_ = a, this.requiresObservable_ = r;
|
|
2091
2091
|
}
|
|
2092
2092
|
var t = e.prototype;
|
|
2093
2093
|
return t.onBecomeStale_ = function() {
|
|
2094
2094
|
this.schedule_();
|
|
2095
2095
|
}, t.schedule_ = function() {
|
|
2096
|
-
this.isScheduled_ || (this.isScheduled_ = !0, f.pendingReactions.push(this),
|
|
2096
|
+
this.isScheduled_ || (this.isScheduled_ = !0, f.pendingReactions.push(this), bi());
|
|
2097
2097
|
}, t.isScheduled = function() {
|
|
2098
2098
|
return this.isScheduled_;
|
|
2099
2099
|
}, t.runReaction_ = function() {
|
|
@@ -2104,8 +2104,8 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2104
2104
|
this.isTrackPending_ = !0;
|
|
2105
2105
|
try {
|
|
2106
2106
|
this.onInvalidate_();
|
|
2107
|
-
} catch (
|
|
2108
|
-
this.reportExceptionInDerivation_(
|
|
2107
|
+
} catch (a) {
|
|
2108
|
+
this.reportExceptionInDerivation_(a);
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
2111
2111
|
f.trackingContext = i, M();
|
|
@@ -2113,22 +2113,22 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2113
2113
|
}, t.track = function(i) {
|
|
2114
2114
|
if (!this.isDisposed_) {
|
|
2115
2115
|
L(), this.isRunning_ = !0;
|
|
2116
|
-
var
|
|
2116
|
+
var a = f.trackingContext;
|
|
2117
2117
|
f.trackingContext = this;
|
|
2118
|
-
var
|
|
2119
|
-
f.trackingContext =
|
|
2118
|
+
var r = vi(this, i, void 0);
|
|
2119
|
+
f.trackingContext = a, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && xt(this), et(r) && this.reportExceptionInDerivation_(r.cause), M();
|
|
2120
2120
|
}
|
|
2121
2121
|
}, t.reportExceptionInDerivation_ = function(i) {
|
|
2122
|
-
var
|
|
2122
|
+
var a = this;
|
|
2123
2123
|
if (this.errorHandler_) {
|
|
2124
2124
|
this.errorHandler_(i, this);
|
|
2125
2125
|
return;
|
|
2126
2126
|
}
|
|
2127
2127
|
if (f.disableErrorBoundaries)
|
|
2128
2128
|
throw i;
|
|
2129
|
-
var
|
|
2130
|
-
f.suppressReactionErrors || console.error(
|
|
2131
|
-
return s(i,
|
|
2129
|
+
var r = "[mobx] uncaught error in '" + this + "'";
|
|
2130
|
+
f.suppressReactionErrors || console.error(r, i), f.globalReactionErrorHandlers.forEach(function(s) {
|
|
2131
|
+
return s(i, a);
|
|
2132
2132
|
});
|
|
2133
2133
|
}, t.dispose = function() {
|
|
2134
2134
|
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (L(), xt(this), M()));
|
|
@@ -2143,42 +2143,42 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2143
2143
|
}(), Es = 100, Fs = function(t) {
|
|
2144
2144
|
return t();
|
|
2145
2145
|
};
|
|
2146
|
-
function
|
|
2146
|
+
function bi() {
|
|
2147
2147
|
f.inBatch > 0 || f.isRunningReactions || Fs(Rs);
|
|
2148
2148
|
}
|
|
2149
2149
|
function Rs() {
|
|
2150
2150
|
f.isRunningReactions = !0;
|
|
2151
2151
|
for (var e = f.pendingReactions, t = 0; e.length > 0; ) {
|
|
2152
2152
|
++t === Es && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
|
|
2153
|
-
for (var n = e.splice(0), i = 0,
|
|
2153
|
+
for (var n = e.splice(0), i = 0, a = n.length; i < a; i++)
|
|
2154
2154
|
n[i].runReaction_();
|
|
2155
2155
|
}
|
|
2156
2156
|
f.isRunningReactions = !1;
|
|
2157
2157
|
}
|
|
2158
2158
|
var ut = /* @__PURE__ */ ce("Reaction", ot);
|
|
2159
|
-
function
|
|
2159
|
+
function we() {
|
|
2160
2160
|
return !1;
|
|
2161
2161
|
}
|
|
2162
2162
|
function Cs(e) {
|
|
2163
2163
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {
|
|
2164
2164
|
};
|
|
2165
2165
|
}
|
|
2166
|
-
var gi = "action",
|
|
2166
|
+
var gi = "action", Ts = "action.bound", Ni = "autoAction", ws = "autoAction.bound", Ds = "<unnamed action>", Oi = /* @__PURE__ */ ze(gi), Ps = /* @__PURE__ */ ze(Ts, {
|
|
2167
2167
|
bound: !0
|
|
2168
2168
|
}), Ai = /* @__PURE__ */ ze(Ni, {
|
|
2169
2169
|
autoAction: !0
|
|
2170
|
-
}), Vs = /* @__PURE__ */ ze(
|
|
2170
|
+
}), Vs = /* @__PURE__ */ ze(ws, {
|
|
2171
2171
|
autoAction: !0,
|
|
2172
2172
|
bound: !0
|
|
2173
2173
|
});
|
|
2174
2174
|
function Ei(e) {
|
|
2175
|
-
var t = function(i,
|
|
2175
|
+
var t = function(i, a) {
|
|
2176
2176
|
if (q(i))
|
|
2177
2177
|
return Ne(i.name || Ds, i, e);
|
|
2178
|
-
if (q(
|
|
2179
|
-
return Ne(i,
|
|
2180
|
-
if (le(
|
|
2181
|
-
return Be(i,
|
|
2178
|
+
if (q(a))
|
|
2179
|
+
return Ne(i, a, e);
|
|
2180
|
+
if (le(a))
|
|
2181
|
+
return Be(i, a, e ? Ai : Oi);
|
|
2182
2182
|
if (le(i))
|
|
2183
2183
|
return Z(ze(e ? Ni : gi, {
|
|
2184
2184
|
name: i,
|
|
@@ -2199,14 +2199,14 @@ function Zt(e) {
|
|
|
2199
2199
|
function Xt(e, t) {
|
|
2200
2200
|
var n, i;
|
|
2201
2201
|
t === void 0 && (t = Kt);
|
|
2202
|
-
var
|
|
2203
|
-
if (
|
|
2204
|
-
s = new ot(
|
|
2202
|
+
var a = (n = (i = t) == null ? void 0 : i.name) != null ? n : "Autorun", r = !t.scheduler && !t.delay, s;
|
|
2203
|
+
if (r)
|
|
2204
|
+
s = new ot(a, function() {
|
|
2205
2205
|
this.track(d);
|
|
2206
2206
|
}, t.onError, t.requiresObservable);
|
|
2207
2207
|
else {
|
|
2208
2208
|
var o = Fi(t), u = !1;
|
|
2209
|
-
s = new ot(
|
|
2209
|
+
s = new ot(a, function() {
|
|
2210
2210
|
u || (u = !0, o(function() {
|
|
2211
2211
|
u = !1, s.isDisposed_ || s.track(d);
|
|
2212
2212
|
}));
|
|
@@ -2228,7 +2228,7 @@ function Fi(e) {
|
|
|
2228
2228
|
function js(e, t, n) {
|
|
2229
2229
|
var i;
|
|
2230
2230
|
n === void 0 && (n = Kt);
|
|
2231
|
-
var
|
|
2231
|
+
var a = (i = n.name) != null ? i : "Reaction", r = oe(a, n.onError ? xs(n.onError, t) : t), s = !n.scheduler && !n.delay, o = Fi(n), u = !0, d = !1, c, v, b = n.compareStructural ? be.structural : n.equals || be.default, F = new ot(a, function() {
|
|
2232
2232
|
u || s ? I() : d || (d = !0, o(I));
|
|
2233
2233
|
}, n.onError, n.requiresObservable);
|
|
2234
2234
|
function I() {
|
|
@@ -2238,8 +2238,8 @@ function js(e, t, n) {
|
|
|
2238
2238
|
var A = ci(!1, function() {
|
|
2239
2239
|
return e(F);
|
|
2240
2240
|
});
|
|
2241
|
-
R = u || !
|
|
2242
|
-
}), (u && n.fireImmediately || !u && R) &&
|
|
2241
|
+
R = u || !b(c, A), v = c, c = A;
|
|
2242
|
+
}), (u && n.fireImmediately || !u && R) && r(c, v, F), u = !1;
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
2245
|
return F.schedule_(), F.getDisposer_();
|
|
@@ -2261,20 +2261,20 @@ function Ri(e, t, n) {
|
|
|
2261
2261
|
return Ci(Ms, e, t, n);
|
|
2262
2262
|
}
|
|
2263
2263
|
function Ci(e, t, n, i) {
|
|
2264
|
-
var
|
|
2265
|
-
return
|
|
2266
|
-
var o =
|
|
2267
|
-
o && (o.delete(
|
|
2264
|
+
var a = typeof i == "function" ? de(t, n) : de(t), r = q(i) ? i : n, s = e + "L";
|
|
2265
|
+
return a[s] ? a[s].add(r) : a[s] = /* @__PURE__ */ new Set([r]), function() {
|
|
2266
|
+
var o = a[s];
|
|
2267
|
+
o && (o.delete(r), o.size === 0 && delete a[s]);
|
|
2268
2268
|
};
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2271
|
-
var
|
|
2270
|
+
function Ti(e, t, n, i) {
|
|
2271
|
+
var a = wr(t), r = bt(e, i)[_];
|
|
2272
2272
|
L();
|
|
2273
2273
|
try {
|
|
2274
|
-
De(
|
|
2275
|
-
|
|
2274
|
+
De(a).forEach(function(s) {
|
|
2275
|
+
r.extend_(
|
|
2276
2276
|
s,
|
|
2277
|
-
|
|
2277
|
+
a[s],
|
|
2278
2278
|
// must pass "undefined" for { key: undefined }
|
|
2279
2279
|
n && s in n ? n[s] : !0
|
|
2280
2280
|
);
|
|
@@ -2285,59 +2285,59 @@ function wi(e, t, n, i) {
|
|
|
2285
2285
|
return e;
|
|
2286
2286
|
}
|
|
2287
2287
|
var Bs = 0;
|
|
2288
|
-
function
|
|
2288
|
+
function wi() {
|
|
2289
2289
|
this.message = "FLOW_CANCELLED";
|
|
2290
2290
|
}
|
|
2291
|
-
|
|
2291
|
+
wi.prototype = /* @__PURE__ */ Object.create(Error.prototype);
|
|
2292
2292
|
var On = /* @__PURE__ */ ni("flow"), Gs = /* @__PURE__ */ ni("flow.bound", {
|
|
2293
2293
|
bound: !0
|
|
2294
2294
|
}), je = /* @__PURE__ */ Object.assign(function(t, n) {
|
|
2295
2295
|
if (le(n))
|
|
2296
2296
|
return Be(t, n, On);
|
|
2297
|
-
var i = t,
|
|
2298
|
-
var o = this, u = arguments, d = ++Bs, c = oe(
|
|
2297
|
+
var i = t, a = i.name || "<unnamed flow>", r = function() {
|
|
2298
|
+
var o = this, u = arguments, d = ++Bs, c = oe(a + " - runid: " + d + " - init", i).apply(o, u), v, b = void 0, F = new Promise(function(I, R) {
|
|
2299
2299
|
var A = 0;
|
|
2300
2300
|
v = R;
|
|
2301
|
-
function W(
|
|
2302
|
-
|
|
2301
|
+
function W(T) {
|
|
2302
|
+
b = void 0;
|
|
2303
2303
|
var j;
|
|
2304
2304
|
try {
|
|
2305
|
-
j = oe(
|
|
2305
|
+
j = oe(a + " - runid: " + d + " - yield " + A++, c.next).call(c, T);
|
|
2306
2306
|
} catch (x) {
|
|
2307
2307
|
return R(x);
|
|
2308
2308
|
}
|
|
2309
2309
|
C(j);
|
|
2310
2310
|
}
|
|
2311
|
-
function z(
|
|
2312
|
-
|
|
2311
|
+
function z(T) {
|
|
2312
|
+
b = void 0;
|
|
2313
2313
|
var j;
|
|
2314
2314
|
try {
|
|
2315
|
-
j = oe(
|
|
2315
|
+
j = oe(a + " - runid: " + d + " - yield " + A++, c.throw).call(c, T);
|
|
2316
2316
|
} catch (x) {
|
|
2317
2317
|
return R(x);
|
|
2318
2318
|
}
|
|
2319
2319
|
C(j);
|
|
2320
2320
|
}
|
|
2321
|
-
function C(
|
|
2322
|
-
if (q(
|
|
2323
|
-
|
|
2321
|
+
function C(T) {
|
|
2322
|
+
if (q(T == null ? void 0 : T.then)) {
|
|
2323
|
+
T.then(C, R);
|
|
2324
2324
|
return;
|
|
2325
2325
|
}
|
|
2326
|
-
return
|
|
2326
|
+
return T.done ? I(T.value) : (b = Promise.resolve(T.value), b.then(W, z));
|
|
2327
2327
|
}
|
|
2328
2328
|
W(void 0);
|
|
2329
2329
|
});
|
|
2330
|
-
return F.cancel = oe(
|
|
2330
|
+
return F.cancel = oe(a + " - runid: " + d + " - cancel", function() {
|
|
2331
2331
|
try {
|
|
2332
|
-
|
|
2332
|
+
b && An(b);
|
|
2333
2333
|
var I = c.return(void 0), R = Promise.resolve(I.value);
|
|
2334
|
-
R.then(pe, pe), An(R), v(new
|
|
2334
|
+
R.then(pe, pe), An(R), v(new wi());
|
|
2335
2335
|
} catch (A) {
|
|
2336
2336
|
v(A);
|
|
2337
2337
|
}
|
|
2338
2338
|
}), F;
|
|
2339
2339
|
};
|
|
2340
|
-
return
|
|
2340
|
+
return r.isMobXFlow = !0, r;
|
|
2341
2341
|
}, On);
|
|
2342
2342
|
je.bound = /* @__PURE__ */ Z(Gs);
|
|
2343
2343
|
function An(e) {
|
|
@@ -2357,10 +2357,10 @@ function Qs() {
|
|
|
2357
2357
|
for (var e = !1, t = arguments.length, n = new Array(t), i = 0; i < t; i++)
|
|
2358
2358
|
n[i] = arguments[i];
|
|
2359
2359
|
typeof n[n.length - 1] == "boolean" && (e = n.pop());
|
|
2360
|
-
var
|
|
2361
|
-
if (!
|
|
2360
|
+
var a = Ks(n);
|
|
2361
|
+
if (!a)
|
|
2362
2362
|
return N("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
|
|
2363
|
-
|
|
2363
|
+
a.isTracing_ === ue.NONE && console.log("[mobx.trace] '" + a.name_ + "' tracing enabled"), a.isTracing_ = e ? ue.BREAK : ue.LOG;
|
|
2364
2364
|
}
|
|
2365
2365
|
function Ks(e) {
|
|
2366
2366
|
switch (e.length) {
|
|
@@ -2391,16 +2391,16 @@ var $s = {
|
|
|
2391
2391
|
return he(t).get_(n);
|
|
2392
2392
|
},
|
|
2393
2393
|
set: function(t, n, i) {
|
|
2394
|
-
var
|
|
2395
|
-
return le(n) ? (
|
|
2394
|
+
var a;
|
|
2395
|
+
return le(n) ? (a = he(t).set_(n, i, !0)) != null ? a : !0 : !1;
|
|
2396
2396
|
},
|
|
2397
2397
|
deleteProperty: function(t, n) {
|
|
2398
2398
|
var i;
|
|
2399
2399
|
return le(n) ? (i = he(t).delete_(n, !0)) != null ? i : !0 : !1;
|
|
2400
2400
|
},
|
|
2401
2401
|
defineProperty: function(t, n, i) {
|
|
2402
|
-
var
|
|
2403
|
-
return (
|
|
2402
|
+
var a;
|
|
2403
|
+
return (a = he(t).defineProperty_(n, i)) != null ? a : !0;
|
|
2404
2404
|
},
|
|
2405
2405
|
ownKeys: function(t) {
|
|
2406
2406
|
return he(t).ownKeys_();
|
|
@@ -2411,7 +2411,7 @@ var $s = {
|
|
|
2411
2411
|
};
|
|
2412
2412
|
function qs(e, t) {
|
|
2413
2413
|
var n, i;
|
|
2414
|
-
return qn(), e =
|
|
2414
|
+
return qn(), e = bt(e, t), (i = (n = e[_]).proxy_) != null ? i : n.proxy_ = new Proxy(e, $s);
|
|
2415
2415
|
}
|
|
2416
2416
|
function U(e) {
|
|
2417
2417
|
return e.interceptors_ !== void 0 && e.interceptors_.length > 0;
|
|
@@ -2426,11 +2426,11 @@ function qe(e, t) {
|
|
|
2426
2426
|
function B(e, t) {
|
|
2427
2427
|
var n = Ae();
|
|
2428
2428
|
try {
|
|
2429
|
-
for (var i = [].concat(e.interceptors_ || []),
|
|
2429
|
+
for (var i = [].concat(e.interceptors_ || []), a = 0, r = i.length; a < r && (t = i[a](t), t && !t.type && N(14), !!t); a++)
|
|
2430
2430
|
;
|
|
2431
2431
|
return t;
|
|
2432
2432
|
} finally {
|
|
2433
|
-
|
|
2433
|
+
ae(n);
|
|
2434
2434
|
}
|
|
2435
2435
|
}
|
|
2436
2436
|
function K(e) {
|
|
@@ -2447,23 +2447,23 @@ function $(e, t) {
|
|
|
2447
2447
|
var n = Ae(), i = e.changeListeners_;
|
|
2448
2448
|
if (i) {
|
|
2449
2449
|
i = i.slice();
|
|
2450
|
-
for (var
|
|
2451
|
-
i[
|
|
2452
|
-
|
|
2450
|
+
for (var a = 0, r = i.length; a < r; a++)
|
|
2451
|
+
i[a](t);
|
|
2452
|
+
ae(n);
|
|
2453
2453
|
}
|
|
2454
2454
|
}
|
|
2455
|
-
var
|
|
2455
|
+
var wt = /* @__PURE__ */ Symbol("mobx-keys");
|
|
2456
2456
|
function Ws(e, t, n) {
|
|
2457
2457
|
if (Y(e))
|
|
2458
|
-
return
|
|
2459
|
-
var i =
|
|
2460
|
-
if (!e[
|
|
2461
|
-
var
|
|
2462
|
-
|
|
2458
|
+
return Ti(e, e, t, n);
|
|
2459
|
+
var i = bt(e, n)[_];
|
|
2460
|
+
if (!e[wt]) {
|
|
2461
|
+
var a = Object.getPrototypeOf(e), r = new Set([].concat(De(e), De(a)));
|
|
2462
|
+
r.delete("constructor"), r.delete(_), ht(a, wt, r);
|
|
2463
2463
|
}
|
|
2464
2464
|
L();
|
|
2465
2465
|
try {
|
|
2466
|
-
e[
|
|
2466
|
+
e[wt].forEach(function(s) {
|
|
2467
2467
|
return i.make_(
|
|
2468
2468
|
s,
|
|
2469
2469
|
// must pass "undefined" for { key: undefined }
|
|
@@ -2481,15 +2481,15 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2481
2481
|
return n === _ ? i : n === "length" ? i.getArrayLength_() : typeof n == "string" && !isNaN(n) ? i.get_(parseInt(n)) : ie(dt, n) ? dt[n] : t[n];
|
|
2482
2482
|
},
|
|
2483
2483
|
set: function(t, n, i) {
|
|
2484
|
-
var
|
|
2485
|
-
return n === "length" &&
|
|
2484
|
+
var a = t[_];
|
|
2485
|
+
return n === "length" && a.setArrayLength_(i), typeof n == "symbol" || isNaN(n) ? t[n] = i : a.set_(parseInt(n), i), !0;
|
|
2486
2486
|
},
|
|
2487
2487
|
preventExtensions: function() {
|
|
2488
2488
|
N(15);
|
|
2489
2489
|
}
|
|
2490
2490
|
}, Ht = /* @__PURE__ */ function() {
|
|
2491
|
-
function e(n, i,
|
|
2492
|
-
n === void 0 && (n = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ =
|
|
2491
|
+
function e(n, i, a, r) {
|
|
2492
|
+
n === void 0 && (n = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = a, this.legacyMode_ = r, this.atom_ = new Ge(n), this.enhancer_ = function(s, o) {
|
|
2493
2493
|
return i(s, o, "ObservableArray[..]");
|
|
2494
2494
|
};
|
|
2495
2495
|
}
|
|
@@ -2500,8 +2500,8 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2500
2500
|
return this.dehancer !== void 0 && i.length > 0 ? i.map(this.dehancer) : i;
|
|
2501
2501
|
}, t.intercept_ = function(i) {
|
|
2502
2502
|
return qe(this, i);
|
|
2503
|
-
}, t.observe_ = function(i,
|
|
2504
|
-
return
|
|
2503
|
+
}, t.observe_ = function(i, a) {
|
|
2504
|
+
return a === void 0 && (a = !1), a && i({
|
|
2505
2505
|
observableKind: "array",
|
|
2506
2506
|
object: this.proxy_,
|
|
2507
2507
|
debugObjectName: this.atom_.name_,
|
|
@@ -2516,75 +2516,75 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2516
2516
|
return this.atom_.reportObserved(), this.values_.length;
|
|
2517
2517
|
}, t.setArrayLength_ = function(i) {
|
|
2518
2518
|
(typeof i != "number" || isNaN(i) || i < 0) && N("Out of range: " + i);
|
|
2519
|
-
var
|
|
2520
|
-
if (i !==
|
|
2521
|
-
if (i >
|
|
2522
|
-
for (var
|
|
2523
|
-
|
|
2524
|
-
this.spliceWithArray_(
|
|
2519
|
+
var a = this.values_.length;
|
|
2520
|
+
if (i !== a)
|
|
2521
|
+
if (i > a) {
|
|
2522
|
+
for (var r = new Array(i - a), s = 0; s < i - a; s++)
|
|
2523
|
+
r[s] = void 0;
|
|
2524
|
+
this.spliceWithArray_(a, 0, r);
|
|
2525
2525
|
} else
|
|
2526
|
-
this.spliceWithArray_(i,
|
|
2527
|
-
}, t.updateArrayLength_ = function(i,
|
|
2528
|
-
i !== this.lastKnownLength_ && N(16), this.lastKnownLength_ +=
|
|
2529
|
-
}, t.spliceWithArray_ = function(i,
|
|
2526
|
+
this.spliceWithArray_(i, a - i);
|
|
2527
|
+
}, t.updateArrayLength_ = function(i, a) {
|
|
2528
|
+
i !== this.lastKnownLength_ && N(16), this.lastKnownLength_ += a, this.legacyMode_ && a > 0 && Gi(i + a + 1);
|
|
2529
|
+
}, t.spliceWithArray_ = function(i, a, r) {
|
|
2530
2530
|
var s = this;
|
|
2531
2531
|
this.atom_;
|
|
2532
2532
|
var o = this.values_.length;
|
|
2533
|
-
if (i === void 0 ? i = 0 : i > o ? i = o : i < 0 && (i = Math.max(0, o + i)), arguments.length === 1 ?
|
|
2533
|
+
if (i === void 0 ? i = 0 : i > o ? i = o : i < 0 && (i = Math.max(0, o + i)), arguments.length === 1 ? a = o - i : a == null ? a = 0 : a = Math.max(0, Math.min(a, o - i)), r === void 0 && (r = Vt), U(this)) {
|
|
2534
2534
|
var u = B(this, {
|
|
2535
2535
|
object: this.proxy_,
|
|
2536
2536
|
type: En,
|
|
2537
2537
|
index: i,
|
|
2538
|
-
removedCount:
|
|
2539
|
-
added:
|
|
2538
|
+
removedCount: a,
|
|
2539
|
+
added: r
|
|
2540
2540
|
});
|
|
2541
2541
|
if (!u)
|
|
2542
2542
|
return Vt;
|
|
2543
|
-
|
|
2543
|
+
a = u.removedCount, r = u.added;
|
|
2544
2544
|
}
|
|
2545
|
-
if (
|
|
2545
|
+
if (r = r.length === 0 ? r : r.map(function(v) {
|
|
2546
2546
|
return s.enhancer_(v, void 0);
|
|
2547
2547
|
}), this.legacyMode_) {
|
|
2548
|
-
var d =
|
|
2548
|
+
var d = r.length - a;
|
|
2549
2549
|
this.updateArrayLength_(o, d);
|
|
2550
2550
|
}
|
|
2551
|
-
var c = this.spliceItemsIntoValues_(i,
|
|
2552
|
-
return (
|
|
2553
|
-
}, t.spliceItemsIntoValues_ = function(i,
|
|
2554
|
-
if (
|
|
2551
|
+
var c = this.spliceItemsIntoValues_(i, a, r);
|
|
2552
|
+
return (a !== 0 || r.length !== 0) && this.notifyArraySplice_(i, r, c), this.dehanceValues_(c);
|
|
2553
|
+
}, t.spliceItemsIntoValues_ = function(i, a, r) {
|
|
2554
|
+
if (r.length < Js) {
|
|
2555
2555
|
var s;
|
|
2556
|
-
return (s = this.values_).splice.apply(s, [i,
|
|
2556
|
+
return (s = this.values_).splice.apply(s, [i, a].concat(r));
|
|
2557
2557
|
} else {
|
|
2558
|
-
var o = this.values_.slice(i, i +
|
|
2559
|
-
this.values_.length +=
|
|
2560
|
-
for (var d = 0; d <
|
|
2561
|
-
this.values_[i + d] =
|
|
2558
|
+
var o = this.values_.slice(i, i + a), u = this.values_.slice(i + a);
|
|
2559
|
+
this.values_.length += r.length - a;
|
|
2560
|
+
for (var d = 0; d < r.length; d++)
|
|
2561
|
+
this.values_[i + d] = r[d];
|
|
2562
2562
|
for (var c = 0; c < u.length; c++)
|
|
2563
|
-
this.values_[i +
|
|
2563
|
+
this.values_[i + r.length + c] = u[c];
|
|
2564
2564
|
return o;
|
|
2565
2565
|
}
|
|
2566
|
-
}, t.notifyArrayChildUpdate_ = function(i,
|
|
2567
|
-
var s = !this.owned_ &&
|
|
2566
|
+
}, t.notifyArrayChildUpdate_ = function(i, a, r) {
|
|
2567
|
+
var s = !this.owned_ && we(), o = K(this), u = o || s ? {
|
|
2568
2568
|
observableKind: "array",
|
|
2569
2569
|
object: this.proxy_,
|
|
2570
2570
|
type: X,
|
|
2571
2571
|
debugObjectName: this.atom_.name_,
|
|
2572
2572
|
index: i,
|
|
2573
|
-
newValue:
|
|
2574
|
-
oldValue:
|
|
2573
|
+
newValue: a,
|
|
2574
|
+
oldValue: r
|
|
2575
2575
|
} : null;
|
|
2576
2576
|
this.atom_.reportChanged(), o && $(this, u);
|
|
2577
|
-
}, t.notifyArraySplice_ = function(i,
|
|
2578
|
-
var s = !this.owned_ &&
|
|
2577
|
+
}, t.notifyArraySplice_ = function(i, a, r) {
|
|
2578
|
+
var s = !this.owned_ && we(), o = K(this), u = o || s ? {
|
|
2579
2579
|
observableKind: "array",
|
|
2580
2580
|
object: this.proxy_,
|
|
2581
2581
|
debugObjectName: this.atom_.name_,
|
|
2582
2582
|
type: En,
|
|
2583
2583
|
index: i,
|
|
2584
|
-
removed:
|
|
2585
|
-
added:
|
|
2586
|
-
removedCount:
|
|
2587
|
-
addedCount:
|
|
2584
|
+
removed: r,
|
|
2585
|
+
added: a,
|
|
2586
|
+
removedCount: r.length,
|
|
2587
|
+
addedCount: a.length
|
|
2588
2588
|
} : null;
|
|
2589
2589
|
this.atom_.reportChanged(), o && $(this, u);
|
|
2590
2590
|
}, t.get_ = function(i) {
|
|
@@ -2593,42 +2593,42 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2593
2593
|
return;
|
|
2594
2594
|
}
|
|
2595
2595
|
return this.atom_.reportObserved(), this.dehanceValue_(this.values_[i]);
|
|
2596
|
-
}, t.set_ = function(i,
|
|
2597
|
-
var
|
|
2598
|
-
if (this.legacyMode_ && i >
|
|
2596
|
+
}, t.set_ = function(i, a) {
|
|
2597
|
+
var r = this.values_;
|
|
2598
|
+
if (this.legacyMode_ && i > r.length && N(17, i, r.length), i < r.length) {
|
|
2599
2599
|
this.atom_;
|
|
2600
|
-
var s =
|
|
2600
|
+
var s = r[i];
|
|
2601
2601
|
if (U(this)) {
|
|
2602
2602
|
var o = B(this, {
|
|
2603
2603
|
type: X,
|
|
2604
2604
|
object: this.proxy_,
|
|
2605
2605
|
index: i,
|
|
2606
|
-
newValue:
|
|
2606
|
+
newValue: a
|
|
2607
2607
|
});
|
|
2608
2608
|
if (!o)
|
|
2609
2609
|
return;
|
|
2610
|
-
|
|
2610
|
+
a = o.newValue;
|
|
2611
2611
|
}
|
|
2612
|
-
|
|
2613
|
-
var u =
|
|
2614
|
-
u && (
|
|
2612
|
+
a = this.enhancer_(a, s);
|
|
2613
|
+
var u = a !== s;
|
|
2614
|
+
u && (r[i] = a, this.notifyArrayChildUpdate_(i, a, s));
|
|
2615
2615
|
} else {
|
|
2616
|
-
for (var d = new Array(i + 1 -
|
|
2616
|
+
for (var d = new Array(i + 1 - r.length), c = 0; c < d.length - 1; c++)
|
|
2617
2617
|
d[c] = void 0;
|
|
2618
|
-
d[d.length - 1] =
|
|
2618
|
+
d[d.length - 1] = a, this.spliceWithArray_(r.length, 0, d);
|
|
2619
2619
|
}
|
|
2620
2620
|
}, e;
|
|
2621
2621
|
}();
|
|
2622
2622
|
function Xs(e, t, n, i) {
|
|
2623
2623
|
n === void 0 && (n = "ObservableArray"), i === void 0 && (i = !1), qn();
|
|
2624
|
-
var
|
|
2625
|
-
Zn(
|
|
2626
|
-
var
|
|
2627
|
-
if (
|
|
2624
|
+
var a = new Ht(n, t, i, !1);
|
|
2625
|
+
Zn(a.values_, _, a);
|
|
2626
|
+
var r = new Proxy(a.values_, Zs);
|
|
2627
|
+
if (a.proxy_ = r, e && e.length) {
|
|
2628
2628
|
var s = Qe(!0);
|
|
2629
|
-
|
|
2629
|
+
a.spliceWithArray_(0, 0, e), Ke(s);
|
|
2630
2630
|
}
|
|
2631
|
-
return
|
|
2631
|
+
return r;
|
|
2632
2632
|
}
|
|
2633
2633
|
var dt = {
|
|
2634
2634
|
clear: function() {
|
|
@@ -2649,8 +2649,8 @@ var dt = {
|
|
|
2649
2649
|
* and for that reason the do not call dependencyState.notifyObserved
|
|
2650
2650
|
*/
|
|
2651
2651
|
splice: function(t, n) {
|
|
2652
|
-
for (var i = arguments.length,
|
|
2653
|
-
r
|
|
2652
|
+
for (var i = arguments.length, a = new Array(i > 2 ? i - 2 : 0), r = 2; r < i; r++)
|
|
2653
|
+
a[r - 2] = arguments[r];
|
|
2654
2654
|
var s = this[_];
|
|
2655
2655
|
switch (arguments.length) {
|
|
2656
2656
|
case 0:
|
|
@@ -2660,14 +2660,14 @@ var dt = {
|
|
|
2660
2660
|
case 2:
|
|
2661
2661
|
return s.spliceWithArray_(t, n);
|
|
2662
2662
|
}
|
|
2663
|
-
return s.spliceWithArray_(t, n,
|
|
2663
|
+
return s.spliceWithArray_(t, n, a);
|
|
2664
2664
|
},
|
|
2665
2665
|
spliceWithArray: function(t, n, i) {
|
|
2666
2666
|
return this[_].spliceWithArray_(t, n, i);
|
|
2667
2667
|
},
|
|
2668
2668
|
push: function() {
|
|
2669
|
-
for (var t = this[_], n = arguments.length, i = new Array(n),
|
|
2670
|
-
i[
|
|
2669
|
+
for (var t = this[_], n = arguments.length, i = new Array(n), a = 0; a < n; a++)
|
|
2670
|
+
i[a] = arguments[a];
|
|
2671
2671
|
return t.spliceWithArray_(t.values_.length, 0, i), t.values_.length;
|
|
2672
2672
|
},
|
|
2673
2673
|
pop: function() {
|
|
@@ -2677,8 +2677,8 @@ var dt = {
|
|
|
2677
2677
|
return this.splice(0, 1)[0];
|
|
2678
2678
|
},
|
|
2679
2679
|
unshift: function() {
|
|
2680
|
-
for (var t = this[_], n = arguments.length, i = new Array(n),
|
|
2681
|
-
i[
|
|
2680
|
+
for (var t = this[_], n = arguments.length, i = new Array(n), a = 0; a < n; a++)
|
|
2681
|
+
i[a] = arguments[a];
|
|
2682
2682
|
return t.spliceWithArray_(0, 0, i), t.values_.length;
|
|
2683
2683
|
},
|
|
2684
2684
|
reverse: function() {
|
|
@@ -2703,14 +2703,14 @@ P("lastIndexOf", ee);
|
|
|
2703
2703
|
P("slice", ee);
|
|
2704
2704
|
P("toString", ee);
|
|
2705
2705
|
P("toLocaleString", ee);
|
|
2706
|
-
P("every",
|
|
2707
|
-
P("filter",
|
|
2708
|
-
P("find",
|
|
2709
|
-
P("findIndex",
|
|
2710
|
-
P("flatMap",
|
|
2711
|
-
P("forEach",
|
|
2712
|
-
P("map",
|
|
2713
|
-
P("some",
|
|
2706
|
+
P("every", re);
|
|
2707
|
+
P("filter", re);
|
|
2708
|
+
P("find", re);
|
|
2709
|
+
P("findIndex", re);
|
|
2710
|
+
P("flatMap", re);
|
|
2711
|
+
P("forEach", re);
|
|
2712
|
+
P("map", re);
|
|
2713
|
+
P("some", re);
|
|
2714
2714
|
P("reduce", Di);
|
|
2715
2715
|
P("reduceRight", Di);
|
|
2716
2716
|
function P(e, t) {
|
|
@@ -2724,12 +2724,12 @@ function ee(e) {
|
|
|
2724
2724
|
return n[e].apply(n, arguments);
|
|
2725
2725
|
};
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2727
|
+
function re(e) {
|
|
2728
2728
|
return function(t, n) {
|
|
2729
|
-
var i = this,
|
|
2730
|
-
|
|
2731
|
-
var
|
|
2732
|
-
return
|
|
2729
|
+
var i = this, a = this[_];
|
|
2730
|
+
a.atom_.reportObserved();
|
|
2731
|
+
var r = a.dehanceValues_(a.values_);
|
|
2732
|
+
return r[e](function(s, o) {
|
|
2733
2733
|
return t.call(n, s, o, i);
|
|
2734
2734
|
});
|
|
2735
2735
|
};
|
|
@@ -2738,68 +2738,68 @@ function Di(e) {
|
|
|
2738
2738
|
return function() {
|
|
2739
2739
|
var t = this, n = this[_];
|
|
2740
2740
|
n.atom_.reportObserved();
|
|
2741
|
-
var i = n.dehanceValues_(n.values_),
|
|
2742
|
-
return arguments[0] = function(
|
|
2743
|
-
return r
|
|
2741
|
+
var i = n.dehanceValues_(n.values_), a = arguments[0];
|
|
2742
|
+
return arguments[0] = function(r, s, o) {
|
|
2743
|
+
return a(r, s, o, t);
|
|
2744
2744
|
}, i[e].apply(i, arguments);
|
|
2745
2745
|
};
|
|
2746
2746
|
}
|
|
2747
2747
|
var Hs = /* @__PURE__ */ ce("ObservableArrayAdministration", Ht);
|
|
2748
|
-
function
|
|
2748
|
+
function St(e) {
|
|
2749
2749
|
return vt(e) && Hs(e[_]);
|
|
2750
2750
|
}
|
|
2751
2751
|
var Pi, Vi, Ys = {}, ne = "add", ct = "delete";
|
|
2752
2752
|
Pi = Symbol.iterator;
|
|
2753
2753
|
Vi = Symbol.toStringTag;
|
|
2754
2754
|
var Ii = /* @__PURE__ */ function() {
|
|
2755
|
-
function e(n, i,
|
|
2756
|
-
var
|
|
2757
|
-
i === void 0 && (i = ge),
|
|
2758
|
-
|
|
2755
|
+
function e(n, i, a) {
|
|
2756
|
+
var r = this;
|
|
2757
|
+
i === void 0 && (i = ge), a === void 0 && (a = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[_] = Ys, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = i, this.name_ = a, q(Map) || N(18), this.keysAtom_ = ei("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), ci(!0, function() {
|
|
2758
|
+
r.merge(n);
|
|
2759
2759
|
});
|
|
2760
2760
|
}
|
|
2761
2761
|
var t = e.prototype;
|
|
2762
2762
|
return t.has_ = function(i) {
|
|
2763
2763
|
return this.data_.has(i);
|
|
2764
2764
|
}, t.has = function(i) {
|
|
2765
|
-
var
|
|
2765
|
+
var a = this;
|
|
2766
2766
|
if (!f.trackingDerivation)
|
|
2767
2767
|
return this.has_(i);
|
|
2768
|
-
var
|
|
2769
|
-
if (!
|
|
2770
|
-
var s =
|
|
2768
|
+
var r = this.hasMap_.get(i);
|
|
2769
|
+
if (!r) {
|
|
2770
|
+
var s = r = new ye(this.has_(i), pt, "ObservableMap.key?", !1);
|
|
2771
2771
|
this.hasMap_.set(i, s), Ri(s, function() {
|
|
2772
|
-
return
|
|
2772
|
+
return a.hasMap_.delete(i);
|
|
2773
2773
|
});
|
|
2774
2774
|
}
|
|
2775
|
-
return
|
|
2776
|
-
}, t.set = function(i,
|
|
2777
|
-
var
|
|
2775
|
+
return r.get();
|
|
2776
|
+
}, t.set = function(i, a) {
|
|
2777
|
+
var r = this.has_(i);
|
|
2778
2778
|
if (U(this)) {
|
|
2779
2779
|
var s = B(this, {
|
|
2780
|
-
type:
|
|
2780
|
+
type: r ? X : ne,
|
|
2781
2781
|
object: this,
|
|
2782
|
-
newValue:
|
|
2782
|
+
newValue: a,
|
|
2783
2783
|
name: i
|
|
2784
2784
|
});
|
|
2785
2785
|
if (!s)
|
|
2786
2786
|
return this;
|
|
2787
|
-
|
|
2787
|
+
a = s.newValue;
|
|
2788
2788
|
}
|
|
2789
|
-
return
|
|
2789
|
+
return r ? this.updateValue_(i, a) : this.addValue_(i, a), this;
|
|
2790
2790
|
}, t.delete = function(i) {
|
|
2791
|
-
var
|
|
2791
|
+
var a = this;
|
|
2792
2792
|
if (this.keysAtom_, U(this)) {
|
|
2793
|
-
var
|
|
2793
|
+
var r = B(this, {
|
|
2794
2794
|
type: ct,
|
|
2795
2795
|
object: this,
|
|
2796
2796
|
name: i
|
|
2797
2797
|
});
|
|
2798
|
-
if (!
|
|
2798
|
+
if (!r)
|
|
2799
2799
|
return !1;
|
|
2800
2800
|
}
|
|
2801
2801
|
if (this.has_(i)) {
|
|
2802
|
-
var s =
|
|
2802
|
+
var s = we(), o = K(this), u = o || s ? {
|
|
2803
2803
|
observableKind: "map",
|
|
2804
2804
|
debugObjectName: this.name_,
|
|
2805
2805
|
type: ct,
|
|
@@ -2809,39 +2809,39 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2809
2809
|
} : null;
|
|
2810
2810
|
return H(function() {
|
|
2811
2811
|
var d;
|
|
2812
|
-
|
|
2813
|
-
var c =
|
|
2814
|
-
c.setNewValue_(void 0),
|
|
2812
|
+
a.keysAtom_.reportChanged(), (d = a.hasMap_.get(i)) == null || d.setNewValue_(!1);
|
|
2813
|
+
var c = a.data_.get(i);
|
|
2814
|
+
c.setNewValue_(void 0), a.data_.delete(i);
|
|
2815
2815
|
}), o && $(this, u), !0;
|
|
2816
2816
|
}
|
|
2817
2817
|
return !1;
|
|
2818
|
-
}, t.updateValue_ = function(i,
|
|
2819
|
-
var
|
|
2820
|
-
if (
|
|
2821
|
-
var s =
|
|
2818
|
+
}, t.updateValue_ = function(i, a) {
|
|
2819
|
+
var r = this.data_.get(i);
|
|
2820
|
+
if (a = r.prepareNewValue_(a), a !== f.UNCHANGED) {
|
|
2821
|
+
var s = we(), o = K(this), u = o || s ? {
|
|
2822
2822
|
observableKind: "map",
|
|
2823
2823
|
debugObjectName: this.name_,
|
|
2824
2824
|
type: X,
|
|
2825
2825
|
object: this,
|
|
2826
|
-
oldValue:
|
|
2826
|
+
oldValue: r.value_,
|
|
2827
2827
|
name: i,
|
|
2828
|
-
newValue:
|
|
2828
|
+
newValue: a
|
|
2829
2829
|
} : null;
|
|
2830
|
-
|
|
2830
|
+
r.setNewValue_(a), o && $(this, u);
|
|
2831
2831
|
}
|
|
2832
|
-
}, t.addValue_ = function(i,
|
|
2833
|
-
var
|
|
2832
|
+
}, t.addValue_ = function(i, a) {
|
|
2833
|
+
var r = this;
|
|
2834
2834
|
this.keysAtom_, H(function() {
|
|
2835
|
-
var d, c = new ye(
|
|
2836
|
-
|
|
2835
|
+
var d, c = new ye(a, r.enhancer_, "ObservableMap.key", !1);
|
|
2836
|
+
r.data_.set(i, c), a = c.value_, (d = r.hasMap_.get(i)) == null || d.setNewValue_(!0), r.keysAtom_.reportChanged();
|
|
2837
2837
|
});
|
|
2838
|
-
var s =
|
|
2838
|
+
var s = we(), o = K(this), u = o || s ? {
|
|
2839
2839
|
observableKind: "map",
|
|
2840
2840
|
debugObjectName: this.name_,
|
|
2841
2841
|
type: ne,
|
|
2842
2842
|
object: this,
|
|
2843
2843
|
name: i,
|
|
2844
|
-
newValue:
|
|
2844
|
+
newValue: a
|
|
2845
2845
|
} : null;
|
|
2846
2846
|
o && $(this, u);
|
|
2847
2847
|
}, t.get = function(i) {
|
|
@@ -2851,10 +2851,10 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2851
2851
|
}, t.keys = function() {
|
|
2852
2852
|
return this.keysAtom_.reportObserved(), this.data_.keys();
|
|
2853
2853
|
}, t.values = function() {
|
|
2854
|
-
var i = this,
|
|
2854
|
+
var i = this, a = this.keys();
|
|
2855
2855
|
return Le({
|
|
2856
2856
|
next: function() {
|
|
2857
|
-
var s =
|
|
2857
|
+
var s = a.next(), o = s.done, u = s.value;
|
|
2858
2858
|
return {
|
|
2859
2859
|
done: o,
|
|
2860
2860
|
value: o ? void 0 : i.get(u)
|
|
@@ -2862,10 +2862,10 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2862
2862
|
}
|
|
2863
2863
|
});
|
|
2864
2864
|
}, t.entries = function() {
|
|
2865
|
-
var i = this,
|
|
2865
|
+
var i = this, a = this.keys();
|
|
2866
2866
|
return Le({
|
|
2867
2867
|
next: function() {
|
|
2868
|
-
var s =
|
|
2868
|
+
var s = a.next(), o = s.done, u = s.value;
|
|
2869
2869
|
return {
|
|
2870
2870
|
done: o,
|
|
2871
2871
|
value: o ? void 0 : [u, i.get(u)]
|
|
@@ -2874,73 +2874,73 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2874
2874
|
});
|
|
2875
2875
|
}, t[Pi] = function() {
|
|
2876
2876
|
return this.entries();
|
|
2877
|
-
}, t.forEach = function(i,
|
|
2878
|
-
for (var
|
|
2877
|
+
}, t.forEach = function(i, a) {
|
|
2878
|
+
for (var r = _e(this), s; !(s = r()).done; ) {
|
|
2879
2879
|
var o = s.value, u = o[0], d = o[1];
|
|
2880
|
-
i.call(
|
|
2880
|
+
i.call(a, d, u, this);
|
|
2881
2881
|
}
|
|
2882
2882
|
}, t.merge = function(i) {
|
|
2883
|
-
var
|
|
2883
|
+
var a = this;
|
|
2884
2884
|
return fe(i) && (i = new Map(i)), H(function() {
|
|
2885
|
-
Y(i) ?
|
|
2886
|
-
return
|
|
2887
|
-
}) : Array.isArray(i) ? i.forEach(function(
|
|
2888
|
-
var s =
|
|
2889
|
-
return
|
|
2890
|
-
}) : Oe(i) ? (i.constructor !== Map && N(19, i), i.forEach(function(
|
|
2891
|
-
return
|
|
2885
|
+
Y(i) ? Tr(i).forEach(function(r) {
|
|
2886
|
+
return a.set(r, i[r]);
|
|
2887
|
+
}) : Array.isArray(i) ? i.forEach(function(r) {
|
|
2888
|
+
var s = r[0], o = r[1];
|
|
2889
|
+
return a.set(s, o);
|
|
2890
|
+
}) : Oe(i) ? (i.constructor !== Map && N(19, i), i.forEach(function(r, s) {
|
|
2891
|
+
return a.set(s, r);
|
|
2892
2892
|
})) : i != null && N(20, i);
|
|
2893
2893
|
}), this;
|
|
2894
2894
|
}, t.clear = function() {
|
|
2895
2895
|
var i = this;
|
|
2896
2896
|
H(function() {
|
|
2897
2897
|
hi(function() {
|
|
2898
|
-
for (var
|
|
2899
|
-
var s =
|
|
2898
|
+
for (var a = _e(i.keys()), r; !(r = a()).done; ) {
|
|
2899
|
+
var s = r.value;
|
|
2900
2900
|
i.delete(s);
|
|
2901
2901
|
}
|
|
2902
2902
|
});
|
|
2903
2903
|
});
|
|
2904
2904
|
}, t.replace = function(i) {
|
|
2905
|
-
var
|
|
2905
|
+
var a = this;
|
|
2906
2906
|
return H(function() {
|
|
2907
|
-
for (var
|
|
2907
|
+
for (var r = eo(i), s = /* @__PURE__ */ new Map(), o = !1, u = _e(a.data_.keys()), d; !(d = u()).done; ) {
|
|
2908
2908
|
var c = d.value;
|
|
2909
|
-
if (!
|
|
2910
|
-
var v =
|
|
2909
|
+
if (!r.has(c)) {
|
|
2910
|
+
var v = a.delete(c);
|
|
2911
2911
|
if (v)
|
|
2912
2912
|
o = !0;
|
|
2913
2913
|
else {
|
|
2914
|
-
var
|
|
2915
|
-
s.set(c,
|
|
2914
|
+
var b = a.data_.get(c);
|
|
2915
|
+
s.set(c, b);
|
|
2916
2916
|
}
|
|
2917
2917
|
}
|
|
2918
2918
|
}
|
|
2919
|
-
for (var F = _e(
|
|
2920
|
-
var R = I.value, A = R[0], W = R[1], z =
|
|
2921
|
-
if (
|
|
2922
|
-
var C =
|
|
2919
|
+
for (var F = _e(r.entries()), I; !(I = F()).done; ) {
|
|
2920
|
+
var R = I.value, A = R[0], W = R[1], z = a.data_.has(A);
|
|
2921
|
+
if (a.set(A, W), a.data_.has(A)) {
|
|
2922
|
+
var C = a.data_.get(A);
|
|
2923
2923
|
s.set(A, C), z || (o = !0);
|
|
2924
2924
|
}
|
|
2925
2925
|
}
|
|
2926
2926
|
if (!o)
|
|
2927
|
-
if (
|
|
2928
|
-
|
|
2927
|
+
if (a.data_.size !== s.size)
|
|
2928
|
+
a.keysAtom_.reportChanged();
|
|
2929
2929
|
else
|
|
2930
|
-
for (var
|
|
2930
|
+
for (var T = a.data_.keys(), j = s.keys(), x = T.next(), me = j.next(); !x.done; ) {
|
|
2931
2931
|
if (x.value !== me.value) {
|
|
2932
|
-
|
|
2932
|
+
a.keysAtom_.reportChanged();
|
|
2933
2933
|
break;
|
|
2934
2934
|
}
|
|
2935
|
-
x =
|
|
2935
|
+
x = T.next(), me = j.next();
|
|
2936
2936
|
}
|
|
2937
|
-
|
|
2937
|
+
a.data_ = s;
|
|
2938
2938
|
}), this;
|
|
2939
2939
|
}, t.toString = function() {
|
|
2940
2940
|
return "[object ObservableMap]";
|
|
2941
2941
|
}, t.toJSON = function() {
|
|
2942
2942
|
return Array.from(this);
|
|
2943
|
-
}, t.observe_ = function(i,
|
|
2943
|
+
}, t.observe_ = function(i, a) {
|
|
2944
2944
|
return We(this, i);
|
|
2945
2945
|
}, t.intercept_ = function(i) {
|
|
2946
2946
|
return qe(this, i);
|
|
@@ -2973,9 +2973,9 @@ var ji, xi, to = {};
|
|
|
2973
2973
|
ji = Symbol.iterator;
|
|
2974
2974
|
xi = Symbol.toStringTag;
|
|
2975
2975
|
var Li = /* @__PURE__ */ function() {
|
|
2976
|
-
function e(n, i,
|
|
2977
|
-
i === void 0 && (i = ge),
|
|
2978
|
-
return i(
|
|
2976
|
+
function e(n, i, a) {
|
|
2977
|
+
i === void 0 && (i = ge), a === void 0 && (a = "ObservableSet"), this.name_ = void 0, this[_] = to, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = a, q(Set) || N(22), this.atom_ = ei(this.name_), this.enhancer_ = function(r, s) {
|
|
2978
|
+
return i(r, s, a);
|
|
2979
2979
|
}, n && this.replace(n);
|
|
2980
2980
|
}
|
|
2981
2981
|
var t = e.prototype;
|
|
@@ -2985,31 +2985,31 @@ var Li = /* @__PURE__ */ function() {
|
|
|
2985
2985
|
var i = this;
|
|
2986
2986
|
H(function() {
|
|
2987
2987
|
hi(function() {
|
|
2988
|
-
for (var
|
|
2989
|
-
var s =
|
|
2988
|
+
for (var a = _e(i.data_.values()), r; !(r = a()).done; ) {
|
|
2989
|
+
var s = r.value;
|
|
2990
2990
|
i.delete(s);
|
|
2991
2991
|
}
|
|
2992
2992
|
});
|
|
2993
2993
|
});
|
|
2994
|
-
}, t.forEach = function(i,
|
|
2995
|
-
for (var
|
|
2994
|
+
}, t.forEach = function(i, a) {
|
|
2995
|
+
for (var r = _e(this), s; !(s = r()).done; ) {
|
|
2996
2996
|
var o = s.value;
|
|
2997
|
-
i.call(
|
|
2997
|
+
i.call(a, o, o, this);
|
|
2998
2998
|
}
|
|
2999
2999
|
}, t.add = function(i) {
|
|
3000
|
-
var
|
|
3000
|
+
var a = this;
|
|
3001
3001
|
if (this.atom_, U(this)) {
|
|
3002
|
-
var
|
|
3002
|
+
var r = B(this, {
|
|
3003
3003
|
type: ne,
|
|
3004
3004
|
object: this,
|
|
3005
3005
|
newValue: i
|
|
3006
3006
|
});
|
|
3007
|
-
if (!
|
|
3007
|
+
if (!r)
|
|
3008
3008
|
return this;
|
|
3009
3009
|
}
|
|
3010
3010
|
if (!this.has(i)) {
|
|
3011
3011
|
H(function() {
|
|
3012
|
-
|
|
3012
|
+
a.data_.add(a.enhancer_(i, void 0)), a.atom_.reportChanged();
|
|
3013
3013
|
});
|
|
3014
3014
|
var s = !1, o = K(this), u = o || s ? {
|
|
3015
3015
|
observableKind: "set",
|
|
@@ -3022,14 +3022,14 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
return this;
|
|
3024
3024
|
}, t.delete = function(i) {
|
|
3025
|
-
var
|
|
3025
|
+
var a = this;
|
|
3026
3026
|
if (U(this)) {
|
|
3027
|
-
var
|
|
3027
|
+
var r = B(this, {
|
|
3028
3028
|
type: ct,
|
|
3029
3029
|
object: this,
|
|
3030
3030
|
oldValue: i
|
|
3031
3031
|
});
|
|
3032
|
-
if (!
|
|
3032
|
+
if (!r)
|
|
3033
3033
|
return !1;
|
|
3034
3034
|
}
|
|
3035
3035
|
if (this.has(i)) {
|
|
@@ -3041,19 +3041,19 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3041
3041
|
oldValue: i
|
|
3042
3042
|
} : null;
|
|
3043
3043
|
return H(function() {
|
|
3044
|
-
|
|
3044
|
+
a.atom_.reportChanged(), a.data_.delete(i);
|
|
3045
3045
|
}), o && $(this, u), !0;
|
|
3046
3046
|
}
|
|
3047
3047
|
return !1;
|
|
3048
3048
|
}, t.has = function(i) {
|
|
3049
3049
|
return this.atom_.reportObserved(), this.data_.has(this.dehanceValue_(i));
|
|
3050
3050
|
}, t.entries = function() {
|
|
3051
|
-
var i = 0,
|
|
3051
|
+
var i = 0, a = Array.from(this.keys()), r = Array.from(this.values());
|
|
3052
3052
|
return Le({
|
|
3053
3053
|
next: function() {
|
|
3054
3054
|
var o = i;
|
|
3055
|
-
return i += 1, o <
|
|
3056
|
-
value: [
|
|
3055
|
+
return i += 1, o < r.length ? {
|
|
3056
|
+
value: [a[o], r[o]],
|
|
3057
3057
|
done: !1
|
|
3058
3058
|
} : {
|
|
3059
3059
|
done: !0
|
|
@@ -3064,11 +3064,11 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3064
3064
|
return this.values();
|
|
3065
3065
|
}, t.values = function() {
|
|
3066
3066
|
this.atom_.reportObserved();
|
|
3067
|
-
var i = this,
|
|
3067
|
+
var i = this, a = 0, r = Array.from(this.data_.values());
|
|
3068
3068
|
return Le({
|
|
3069
3069
|
next: function() {
|
|
3070
|
-
return
|
|
3071
|
-
value: i.dehanceValue_(a
|
|
3070
|
+
return a < r.length ? {
|
|
3071
|
+
value: i.dehanceValue_(r[a++]),
|
|
3072
3072
|
done: !1
|
|
3073
3073
|
} : {
|
|
3074
3074
|
done: !0
|
|
@@ -3076,15 +3076,15 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
});
|
|
3078
3078
|
}, t.replace = function(i) {
|
|
3079
|
-
var
|
|
3079
|
+
var a = this;
|
|
3080
3080
|
return Ee(i) && (i = new Set(i)), H(function() {
|
|
3081
|
-
Array.isArray(i) ? (
|
|
3082
|
-
return
|
|
3083
|
-
})) : Ue(i) ? (
|
|
3084
|
-
return
|
|
3081
|
+
Array.isArray(i) ? (a.clear(), i.forEach(function(r) {
|
|
3082
|
+
return a.add(r);
|
|
3083
|
+
})) : Ue(i) ? (a.clear(), i.forEach(function(r) {
|
|
3084
|
+
return a.add(r);
|
|
3085
3085
|
})) : i != null && N("Cannot initialize set from " + i);
|
|
3086
3086
|
}), this;
|
|
3087
|
-
}, t.observe_ = function(i,
|
|
3087
|
+
}, t.observe_ = function(i, a) {
|
|
3088
3088
|
return We(this, i);
|
|
3089
3089
|
}, t.intercept_ = function(i) {
|
|
3090
3090
|
return qe(this, i);
|
|
@@ -3106,67 +3106,67 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
}]), e;
|
|
3108
3108
|
}(), Ee = /* @__PURE__ */ ce("ObservableSet", Li), Fn = /* @__PURE__ */ Object.create(null), Rn = "remove", Mi = /* @__PURE__ */ function() {
|
|
3109
|
-
function e(n, i,
|
|
3110
|
-
i === void 0 && (i = /* @__PURE__ */ new Map()),
|
|
3109
|
+
function e(n, i, a, r) {
|
|
3110
|
+
i === void 0 && (i = /* @__PURE__ */ new Map()), r === void 0 && (r = ns), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = n, this.values_ = i, this.name_ = a, this.defaultAnnotation_ = r, this.keysAtom_ = new Ge("ObservableObject.keys"), this.isPlainObject_ = Y(this.target_);
|
|
3111
3111
|
}
|
|
3112
3112
|
var t = e.prototype;
|
|
3113
3113
|
return t.getObservablePropValue_ = function(i) {
|
|
3114
3114
|
return this.values_.get(i).get();
|
|
3115
|
-
}, t.setObservablePropValue_ = function(i,
|
|
3116
|
-
var
|
|
3117
|
-
if (
|
|
3118
|
-
return
|
|
3115
|
+
}, t.setObservablePropValue_ = function(i, a) {
|
|
3116
|
+
var r = this.values_.get(i);
|
|
3117
|
+
if (r instanceof Ve)
|
|
3118
|
+
return r.set(a), !0;
|
|
3119
3119
|
if (U(this)) {
|
|
3120
3120
|
var s = B(this, {
|
|
3121
3121
|
type: X,
|
|
3122
3122
|
object: this.proxy_ || this.target_,
|
|
3123
3123
|
name: i,
|
|
3124
|
-
newValue:
|
|
3124
|
+
newValue: a
|
|
3125
3125
|
});
|
|
3126
3126
|
if (!s)
|
|
3127
3127
|
return null;
|
|
3128
|
-
|
|
3128
|
+
a = s.newValue;
|
|
3129
3129
|
}
|
|
3130
|
-
if (
|
|
3130
|
+
if (a = r.prepareNewValue_(a), a !== f.UNCHANGED) {
|
|
3131
3131
|
var o = K(this), u = !1, d = o || u ? {
|
|
3132
3132
|
type: X,
|
|
3133
3133
|
observableKind: "object",
|
|
3134
3134
|
debugObjectName: this.name_,
|
|
3135
3135
|
object: this.proxy_ || this.target_,
|
|
3136
|
-
oldValue:
|
|
3136
|
+
oldValue: r.value_,
|
|
3137
3137
|
name: i,
|
|
3138
|
-
newValue:
|
|
3138
|
+
newValue: a
|
|
3139
3139
|
} : null;
|
|
3140
|
-
|
|
3140
|
+
r.setNewValue_(a), o && $(this, d);
|
|
3141
3141
|
}
|
|
3142
3142
|
return !0;
|
|
3143
3143
|
}, t.get_ = function(i) {
|
|
3144
3144
|
return f.trackingDerivation && !ie(this.target_, i) && this.has_(i), this.target_[i];
|
|
3145
|
-
}, t.set_ = function(i,
|
|
3146
|
-
return
|
|
3147
|
-
value:
|
|
3145
|
+
}, t.set_ = function(i, a, r) {
|
|
3146
|
+
return r === void 0 && (r = !1), ie(this.target_, i) ? this.values_.has(i) ? this.setObservablePropValue_(i, a) : r ? Reflect.set(this.target_, i, a) : (this.target_[i] = a, !0) : this.extend_(i, {
|
|
3147
|
+
value: a,
|
|
3148
3148
|
enumerable: !0,
|
|
3149
3149
|
writable: !0,
|
|
3150
3150
|
configurable: !0
|
|
3151
|
-
}, this.defaultAnnotation_,
|
|
3151
|
+
}, this.defaultAnnotation_, r);
|
|
3152
3152
|
}, t.has_ = function(i) {
|
|
3153
3153
|
if (!f.trackingDerivation)
|
|
3154
3154
|
return i in this.target_;
|
|
3155
3155
|
this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
|
|
3156
|
-
var
|
|
3157
|
-
return
|
|
3158
|
-
}, t.make_ = function(i,
|
|
3159
|
-
if (
|
|
3156
|
+
var a = this.pendingKeys_.get(i);
|
|
3157
|
+
return a || (a = new ye(i in this.target_, pt, "ObservableObject.key?", !1), this.pendingKeys_.set(i, a)), a.get();
|
|
3158
|
+
}, t.make_ = function(i, a) {
|
|
3159
|
+
if (a === !0 && (a = this.defaultAnnotation_), a !== !1) {
|
|
3160
3160
|
if (!(i in this.target_)) {
|
|
3161
|
-
var
|
|
3162
|
-
if ((
|
|
3161
|
+
var r;
|
|
3162
|
+
if ((r = this.target_[ke]) != null && r[i])
|
|
3163
3163
|
return;
|
|
3164
|
-
N(1,
|
|
3164
|
+
N(1, a.annotationType_, this.name_ + "." + i.toString());
|
|
3165
3165
|
}
|
|
3166
3166
|
for (var s = this.target_; s && s !== mt; ) {
|
|
3167
|
-
var o =
|
|
3167
|
+
var o = at(s, i);
|
|
3168
3168
|
if (o) {
|
|
3169
|
-
var u =
|
|
3169
|
+
var u = a.make_(this, i, o, s);
|
|
3170
3170
|
if (u === 0)
|
|
3171
3171
|
return;
|
|
3172
3172
|
if (u === 1)
|
|
@@ -3174,15 +3174,15 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3174
3174
|
}
|
|
3175
3175
|
s = Object.getPrototypeOf(s);
|
|
3176
3176
|
}
|
|
3177
|
-
|
|
3178
|
-
}
|
|
3179
|
-
}, t.extend_ = function(i,
|
|
3180
|
-
if (s === void 0 && (s = !1),
|
|
3181
|
-
return this.defineProperty_(i,
|
|
3182
|
-
var o =
|
|
3183
|
-
return o &&
|
|
3184
|
-
}, t.defineProperty_ = function(i,
|
|
3185
|
-
|
|
3177
|
+
Tn(this, a, i);
|
|
3178
|
+
}
|
|
3179
|
+
}, t.extend_ = function(i, a, r, s) {
|
|
3180
|
+
if (s === void 0 && (s = !1), r === !0 && (r = this.defaultAnnotation_), r === !1)
|
|
3181
|
+
return this.defineProperty_(i, a, s);
|
|
3182
|
+
var o = r.extend_(this, i, a, s);
|
|
3183
|
+
return o && Tn(this, r, i), o;
|
|
3184
|
+
}, t.defineProperty_ = function(i, a, r) {
|
|
3185
|
+
r === void 0 && (r = !1);
|
|
3186
3186
|
try {
|
|
3187
3187
|
L();
|
|
3188
3188
|
var s = this.delete_(i);
|
|
@@ -3193,26 +3193,26 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3193
3193
|
object: this.proxy_ || this.target_,
|
|
3194
3194
|
name: i,
|
|
3195
3195
|
type: ne,
|
|
3196
|
-
newValue:
|
|
3196
|
+
newValue: a.value
|
|
3197
3197
|
});
|
|
3198
3198
|
if (!o)
|
|
3199
3199
|
return null;
|
|
3200
3200
|
var u = o.newValue;
|
|
3201
|
-
|
|
3201
|
+
a.value !== u && (a = Pe({}, a, {
|
|
3202
3202
|
value: u
|
|
3203
3203
|
}));
|
|
3204
3204
|
}
|
|
3205
|
-
if (
|
|
3206
|
-
if (!Reflect.defineProperty(this.target_, i,
|
|
3205
|
+
if (r) {
|
|
3206
|
+
if (!Reflect.defineProperty(this.target_, i, a))
|
|
3207
3207
|
return !1;
|
|
3208
3208
|
} else
|
|
3209
|
-
J(this.target_, i,
|
|
3210
|
-
this.notifyPropertyAddition_(i,
|
|
3209
|
+
J(this.target_, i, a);
|
|
3210
|
+
this.notifyPropertyAddition_(i, a.value);
|
|
3211
3211
|
} finally {
|
|
3212
3212
|
M();
|
|
3213
3213
|
}
|
|
3214
3214
|
return !0;
|
|
3215
|
-
}, t.defineObservableProperty_ = function(i,
|
|
3215
|
+
}, t.defineObservableProperty_ = function(i, a, r, s) {
|
|
3216
3216
|
s === void 0 && (s = !1);
|
|
3217
3217
|
try {
|
|
3218
3218
|
L();
|
|
@@ -3224,11 +3224,11 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3224
3224
|
object: this.proxy_ || this.target_,
|
|
3225
3225
|
name: i,
|
|
3226
3226
|
type: ne,
|
|
3227
|
-
newValue:
|
|
3227
|
+
newValue: a
|
|
3228
3228
|
});
|
|
3229
3229
|
if (!u)
|
|
3230
3230
|
return null;
|
|
3231
|
-
|
|
3231
|
+
a = u.newValue;
|
|
3232
3232
|
}
|
|
3233
3233
|
var d = Cn(i), c = {
|
|
3234
3234
|
configurable: f.safeDescriptors ? this.isPlainObject_ : !0,
|
|
@@ -3241,14 +3241,14 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3241
3241
|
return !1;
|
|
3242
3242
|
} else
|
|
3243
3243
|
J(this.target_, i, c);
|
|
3244
|
-
var v = new ye(
|
|
3244
|
+
var v = new ye(a, r, "ObservableObject.key", !1);
|
|
3245
3245
|
this.values_.set(i, v), this.notifyPropertyAddition_(i, v.value_);
|
|
3246
3246
|
} finally {
|
|
3247
3247
|
M();
|
|
3248
3248
|
}
|
|
3249
3249
|
return !0;
|
|
3250
|
-
}, t.defineComputedProperty_ = function(i,
|
|
3251
|
-
|
|
3250
|
+
}, t.defineComputedProperty_ = function(i, a, r) {
|
|
3251
|
+
r === void 0 && (r = !1);
|
|
3252
3252
|
try {
|
|
3253
3253
|
L();
|
|
3254
3254
|
var s = this.delete_(i);
|
|
@@ -3264,33 +3264,33 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3264
3264
|
if (!o)
|
|
3265
3265
|
return null;
|
|
3266
3266
|
}
|
|
3267
|
-
|
|
3267
|
+
a.name || (a.name = "ObservableObject.key"), a.context = this.proxy_ || this.target_;
|
|
3268
3268
|
var u = Cn(i), d = {
|
|
3269
3269
|
configurable: f.safeDescriptors ? this.isPlainObject_ : !0,
|
|
3270
3270
|
enumerable: !1,
|
|
3271
3271
|
get: u.get,
|
|
3272
3272
|
set: u.set
|
|
3273
3273
|
};
|
|
3274
|
-
if (
|
|
3274
|
+
if (r) {
|
|
3275
3275
|
if (!Reflect.defineProperty(this.target_, i, d))
|
|
3276
3276
|
return !1;
|
|
3277
3277
|
} else
|
|
3278
3278
|
J(this.target_, i, d);
|
|
3279
|
-
this.values_.set(i, new Ve(
|
|
3279
|
+
this.values_.set(i, new Ve(a)), this.notifyPropertyAddition_(i, void 0);
|
|
3280
3280
|
} finally {
|
|
3281
3281
|
M();
|
|
3282
3282
|
}
|
|
3283
3283
|
return !0;
|
|
3284
|
-
}, t.delete_ = function(i,
|
|
3285
|
-
if (
|
|
3284
|
+
}, t.delete_ = function(i, a) {
|
|
3285
|
+
if (a === void 0 && (a = !1), !ie(this.target_, i))
|
|
3286
3286
|
return !0;
|
|
3287
3287
|
if (U(this)) {
|
|
3288
|
-
var
|
|
3288
|
+
var r = B(this, {
|
|
3289
3289
|
object: this.proxy_ || this.target_,
|
|
3290
3290
|
name: i,
|
|
3291
3291
|
type: Rn
|
|
3292
3292
|
});
|
|
3293
|
-
if (!
|
|
3293
|
+
if (!r)
|
|
3294
3294
|
return null;
|
|
3295
3295
|
}
|
|
3296
3296
|
try {
|
|
@@ -3298,15 +3298,15 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3298
3298
|
L();
|
|
3299
3299
|
var u = K(this), d = !1, c = this.values_.get(i), v = void 0;
|
|
3300
3300
|
if (!c && (u || d)) {
|
|
3301
|
-
var
|
|
3302
|
-
v = (
|
|
3301
|
+
var b;
|
|
3302
|
+
v = (b = at(this.target_, i)) == null ? void 0 : b.value;
|
|
3303
3303
|
}
|
|
3304
|
-
if (
|
|
3304
|
+
if (a) {
|
|
3305
3305
|
if (!Reflect.deleteProperty(this.target_, i))
|
|
3306
3306
|
return !1;
|
|
3307
3307
|
} else
|
|
3308
3308
|
delete this.target_[i];
|
|
3309
|
-
if (c && (this.values_.delete(i), c instanceof ye && (v = c.value_),
|
|
3309
|
+
if (c && (this.values_.delete(i), c instanceof ye && (v = c.value_), Si(c)), this.keysAtom_.reportChanged(), (s = this.pendingKeys_) == null || (o = s.get(i)) == null || o.set(i in this.target_), u || d) {
|
|
3310
3310
|
var F = {
|
|
3311
3311
|
type: Rn,
|
|
3312
3312
|
observableKind: "object",
|
|
@@ -3321,12 +3321,12 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3321
3321
|
M();
|
|
3322
3322
|
}
|
|
3323
3323
|
return !0;
|
|
3324
|
-
}, t.observe_ = function(i,
|
|
3324
|
+
}, t.observe_ = function(i, a) {
|
|
3325
3325
|
return We(this, i);
|
|
3326
3326
|
}, t.intercept_ = function(i) {
|
|
3327
3327
|
return qe(this, i);
|
|
3328
|
-
}, t.notifyPropertyAddition_ = function(i,
|
|
3329
|
-
var
|
|
3328
|
+
}, t.notifyPropertyAddition_ = function(i, a) {
|
|
3329
|
+
var r, s, o = K(this), u = !1;
|
|
3330
3330
|
if (o || u) {
|
|
3331
3331
|
var d = o || u ? {
|
|
3332
3332
|
type: ne,
|
|
@@ -3334,23 +3334,23 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3334
3334
|
debugObjectName: this.name_,
|
|
3335
3335
|
object: this.proxy_ || this.target_,
|
|
3336
3336
|
name: i,
|
|
3337
|
-
newValue:
|
|
3337
|
+
newValue: a
|
|
3338
3338
|
} : null;
|
|
3339
3339
|
o && $(this, d);
|
|
3340
3340
|
}
|
|
3341
|
-
(
|
|
3341
|
+
(r = this.pendingKeys_) == null || (s = r.get(i)) == null || s.set(!0), this.keysAtom_.reportChanged();
|
|
3342
3342
|
}, t.ownKeys_ = function() {
|
|
3343
3343
|
return this.keysAtom_.reportObserved(), De(this.target_);
|
|
3344
3344
|
}, t.keys_ = function() {
|
|
3345
3345
|
return this.keysAtom_.reportObserved(), Object.keys(this.target_);
|
|
3346
3346
|
}, e;
|
|
3347
3347
|
}();
|
|
3348
|
-
function
|
|
3348
|
+
function bt(e, t) {
|
|
3349
3349
|
var n;
|
|
3350
3350
|
if (ie(e, _))
|
|
3351
3351
|
return e;
|
|
3352
|
-
var i = (n = t == null ? void 0 : t.name) != null ? n : "ObservableObject",
|
|
3353
|
-
return ht(e, _,
|
|
3352
|
+
var i = (n = t == null ? void 0 : t.name) != null ? n : "ObservableObject", a = new Mi(e, /* @__PURE__ */ new Map(), String(i), fs(t));
|
|
3353
|
+
return ht(e, _, a), e;
|
|
3354
3354
|
}
|
|
3355
3355
|
var no = /* @__PURE__ */ ce("ObservableObjectAdministration", Mi);
|
|
3356
3356
|
function Cn(e) {
|
|
@@ -3366,30 +3366,30 @@ function Cn(e) {
|
|
|
3366
3366
|
function xe(e) {
|
|
3367
3367
|
return vt(e) ? no(e[_]) : !1;
|
|
3368
3368
|
}
|
|
3369
|
-
function
|
|
3369
|
+
function Tn(e, t, n) {
|
|
3370
3370
|
var i;
|
|
3371
3371
|
(i = e.target_[ke]) == null || delete i[n];
|
|
3372
3372
|
}
|
|
3373
3373
|
var io = /* @__PURE__ */ Bi(0), Dt = 0, Ui = function() {
|
|
3374
3374
|
};
|
|
3375
|
-
function
|
|
3375
|
+
function ao(e, t) {
|
|
3376
3376
|
Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
|
|
3377
3377
|
}
|
|
3378
|
-
|
|
3378
|
+
ao(Ui, Array.prototype);
|
|
3379
3379
|
var Yt = /* @__PURE__ */ function(e, t, n) {
|
|
3380
3380
|
Yn(i, e);
|
|
3381
|
-
function i(
|
|
3381
|
+
function i(r, s, o, u) {
|
|
3382
3382
|
var d;
|
|
3383
3383
|
o === void 0 && (o = "ObservableArray"), u === void 0 && (u = !1), d = e.call(this) || this;
|
|
3384
3384
|
var c = new Ht(o, s, u, !0);
|
|
3385
|
-
if (c.proxy_ = Rt(d), Zn(Rt(d), _, c),
|
|
3385
|
+
if (c.proxy_ = Rt(d), Zn(Rt(d), _, c), r && r.length) {
|
|
3386
3386
|
var v = Qe(!0);
|
|
3387
|
-
d.spliceWithArray(0, 0,
|
|
3387
|
+
d.spliceWithArray(0, 0, r), Ke(v);
|
|
3388
3388
|
}
|
|
3389
3389
|
return Object.defineProperty(Rt(d), "0", io), d;
|
|
3390
3390
|
}
|
|
3391
|
-
var
|
|
3392
|
-
return
|
|
3391
|
+
var a = i.prototype;
|
|
3392
|
+
return a.concat = function() {
|
|
3393
3393
|
this[_].atom_.reportObserved();
|
|
3394
3394
|
for (var s = arguments.length, o = new Array(s), u = 0; u < s; u++)
|
|
3395
3395
|
o[u] = arguments[u];
|
|
@@ -3397,15 +3397,15 @@ var Yt = /* @__PURE__ */ function(e, t, n) {
|
|
|
3397
3397
|
this.slice(),
|
|
3398
3398
|
//@ts-ignore
|
|
3399
3399
|
o.map(function(d) {
|
|
3400
|
-
return
|
|
3400
|
+
return St(d) ? d.slice() : d;
|
|
3401
3401
|
})
|
|
3402
3402
|
);
|
|
3403
|
-
},
|
|
3404
|
-
var
|
|
3403
|
+
}, a[n] = function() {
|
|
3404
|
+
var r = this, s = 0;
|
|
3405
3405
|
return Le({
|
|
3406
3406
|
next: function() {
|
|
3407
|
-
return s <
|
|
3408
|
-
value:
|
|
3407
|
+
return s < r.length ? {
|
|
3408
|
+
value: r[s++],
|
|
3409
3409
|
done: !1
|
|
3410
3410
|
} : {
|
|
3411
3411
|
done: !0,
|
|
@@ -3444,13 +3444,13 @@ function Bi(e) {
|
|
|
3444
3444
|
}
|
|
3445
3445
|
};
|
|
3446
3446
|
}
|
|
3447
|
-
function
|
|
3447
|
+
function ro(e) {
|
|
3448
3448
|
J(Yt.prototype, "" + e, Bi(e));
|
|
3449
3449
|
}
|
|
3450
3450
|
function Gi(e) {
|
|
3451
3451
|
if (e > Dt) {
|
|
3452
3452
|
for (var t = Dt; t < e + 100; t++)
|
|
3453
|
-
|
|
3453
|
+
ro(t);
|
|
3454
3454
|
Dt = e;
|
|
3455
3455
|
}
|
|
3456
3456
|
}
|
|
@@ -3460,7 +3460,7 @@ function so(e, t, n) {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
function de(e, t) {
|
|
3462
3462
|
if (typeof e == "object" && e !== null) {
|
|
3463
|
-
if (
|
|
3463
|
+
if (St(e))
|
|
3464
3464
|
return t !== void 0 && N(23), e[_].atom_;
|
|
3465
3465
|
if (Ee(e))
|
|
3466
3466
|
return e.atom_;
|
|
@@ -3502,22 +3502,22 @@ function Lt(e, t) {
|
|
|
3502
3502
|
}
|
|
3503
3503
|
return n.name_;
|
|
3504
3504
|
}
|
|
3505
|
-
var
|
|
3505
|
+
var wn = mt.toString;
|
|
3506
3506
|
function en(e, t, n) {
|
|
3507
3507
|
return n === void 0 && (n = -1), Mt(e, t, n);
|
|
3508
3508
|
}
|
|
3509
|
-
function Mt(e, t, n, i,
|
|
3509
|
+
function Mt(e, t, n, i, a) {
|
|
3510
3510
|
if (e === t)
|
|
3511
3511
|
return e !== 0 || 1 / e === 1 / t;
|
|
3512
3512
|
if (e == null || t == null)
|
|
3513
3513
|
return !1;
|
|
3514
3514
|
if (e !== e)
|
|
3515
3515
|
return t !== t;
|
|
3516
|
-
var
|
|
3517
|
-
if (
|
|
3516
|
+
var r = typeof e;
|
|
3517
|
+
if (r !== "function" && r !== "object" && typeof t != "object")
|
|
3518
3518
|
return !1;
|
|
3519
|
-
var s =
|
|
3520
|
-
if (s !==
|
|
3519
|
+
var s = wn.call(e);
|
|
3520
|
+
if (s !== wn.call(t))
|
|
3521
3521
|
return !1;
|
|
3522
3522
|
switch (s) {
|
|
3523
3523
|
case "[object RegExp]":
|
|
@@ -3546,28 +3546,28 @@ function Mt(e, t, n, i, r) {
|
|
|
3546
3546
|
}
|
|
3547
3547
|
if (n === 0)
|
|
3548
3548
|
return !1;
|
|
3549
|
-
n < 0 && (n = -1), i = i || [],
|
|
3549
|
+
n < 0 && (n = -1), i = i || [], a = a || [];
|
|
3550
3550
|
for (var c = i.length; c--; )
|
|
3551
3551
|
if (i[c] === e)
|
|
3552
|
-
return
|
|
3553
|
-
if (i.push(e),
|
|
3552
|
+
return a[c] === t;
|
|
3553
|
+
if (i.push(e), a.push(t), o) {
|
|
3554
3554
|
if (c = e.length, c !== t.length)
|
|
3555
3555
|
return !1;
|
|
3556
3556
|
for (; c--; )
|
|
3557
|
-
if (!Mt(e[c], t[c], n - 1, i,
|
|
3557
|
+
if (!Mt(e[c], t[c], n - 1, i, a))
|
|
3558
3558
|
return !1;
|
|
3559
3559
|
} else {
|
|
3560
|
-
var v = Object.keys(e),
|
|
3560
|
+
var v = Object.keys(e), b;
|
|
3561
3561
|
if (c = v.length, Object.keys(t).length !== c)
|
|
3562
3562
|
return !1;
|
|
3563
3563
|
for (; c--; )
|
|
3564
|
-
if (
|
|
3564
|
+
if (b = v[c], !(ie(t, b) && Mt(e[b], t[b], n - 1, i, a)))
|
|
3565
3565
|
return !1;
|
|
3566
3566
|
}
|
|
3567
|
-
return i.pop(),
|
|
3567
|
+
return i.pop(), a.pop(), !0;
|
|
3568
3568
|
}
|
|
3569
3569
|
function Dn(e) {
|
|
3570
|
-
return
|
|
3570
|
+
return St(e) ? e.slice() : Oe(e) || fe(e) || Ue(e) || Ee(e) ? Array.from(e.entries()) : e;
|
|
3571
3571
|
}
|
|
3572
3572
|
function Le(e) {
|
|
3573
3573
|
return e[Symbol.iterator] = oo, e;
|
|
@@ -3588,10 +3588,10 @@ typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK_
|
|
|
3588
3588
|
});
|
|
3589
3589
|
const uo = ["account"], te = class {
|
|
3590
3590
|
constructor() {
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3591
|
+
S(this, "_config", null);
|
|
3592
|
+
S(this, "_account");
|
|
3593
|
+
S(this, "_productDataSource", null);
|
|
3594
|
+
S(this, "instanceId", ya());
|
|
3595
3595
|
Ws(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
3596
3596
|
}
|
|
3597
3597
|
static instance() {
|
|
@@ -3599,11 +3599,19 @@ const uo = ["account"], te = class {
|
|
|
3599
3599
|
}
|
|
3600
3600
|
async configure(t) {
|
|
3601
3601
|
var n;
|
|
3602
|
-
return this._config = t, ((n = this.account) == null ? void 0 : n.account) !== t.account && (this._account = await
|
|
3602
|
+
return this._config = t, ((n = this.account) == null ? void 0 : n.account) !== t.account && (this._account = await br(t.account)), this;
|
|
3603
3603
|
}
|
|
3604
3604
|
get account() {
|
|
3605
3605
|
return this.validateRequiredProps(), this._account;
|
|
3606
3606
|
}
|
|
3607
|
+
get ok() {
|
|
3608
|
+
var t;
|
|
3609
|
+
return this.validateRequiredProps(), !!((t = this._account) != null && t.account);
|
|
3610
|
+
}
|
|
3611
|
+
get accountName() {
|
|
3612
|
+
var t;
|
|
3613
|
+
return this.validateRequiredProps(), (t = this._account) == null ? void 0 : t.account;
|
|
3614
|
+
}
|
|
3607
3615
|
get productDataSource() {
|
|
3608
3616
|
return this.validateRequiredProps(), this._productDataSource;
|
|
3609
3617
|
}
|
|
@@ -3616,74 +3624,77 @@ const uo = ["account"], te = class {
|
|
|
3616
3624
|
validateRequiredProps() {
|
|
3617
3625
|
uo.forEach((t) => {
|
|
3618
3626
|
if (t === void 0)
|
|
3619
|
-
throw new
|
|
3627
|
+
throw new Er(t);
|
|
3620
3628
|
});
|
|
3621
3629
|
}
|
|
3622
3630
|
};
|
|
3623
3631
|
let tt = te;
|
|
3624
|
-
|
|
3632
|
+
S(tt, "_instance");
|
|
3625
3633
|
const lo = tt.instance();
|
|
3626
3634
|
let tn = /* @__PURE__ */ new Map();
|
|
3627
|
-
const Ut = Vn(tn),
|
|
3635
|
+
const Ut = Vn(tn), Uo = ({ children: e, stores: t }) => {
|
|
3628
3636
|
const n = Bt(Ut), i = Yi(() => {
|
|
3629
|
-
const
|
|
3630
|
-
return t.forEach((
|
|
3637
|
+
const a = /* @__PURE__ */ new Map();
|
|
3638
|
+
return t.forEach((r) => a.set(r.class, r.value)), tn = new Map([...n, ...a]);
|
|
3631
3639
|
}, []);
|
|
3632
|
-
return /* @__PURE__ */
|
|
3640
|
+
return /* @__PURE__ */ ta(Ut.Provider, { value: i, children: e });
|
|
3633
3641
|
};
|
|
3634
|
-
function
|
|
3642
|
+
function Bo(e) {
|
|
3635
3643
|
return Bt(Ut).get(e);
|
|
3636
3644
|
}
|
|
3637
|
-
function
|
|
3645
|
+
function Go(e) {
|
|
3638
3646
|
return tn.get(e);
|
|
3639
3647
|
}
|
|
3640
|
-
function
|
|
3648
|
+
function zo(e, t = []) {
|
|
3641
3649
|
if (Array.isArray(t) && t.some((n) => $e(n)))
|
|
3642
3650
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3643
3651
|
Me(() => Xt(e), t);
|
|
3644
3652
|
}
|
|
3645
3653
|
function co(e, t = []) {
|
|
3646
|
-
if (Array.isArray(t) && t.some((
|
|
3654
|
+
if (Array.isArray(t) && t.some((a) => $e(a)))
|
|
3647
3655
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3648
|
-
const [n, i] =
|
|
3656
|
+
const [n, i] = ea();
|
|
3649
3657
|
return Me(
|
|
3650
3658
|
() => Xt(() => {
|
|
3651
|
-
const
|
|
3652
|
-
i(
|
|
3659
|
+
const a = e();
|
|
3660
|
+
i(a);
|
|
3653
3661
|
}),
|
|
3654
3662
|
t
|
|
3655
3663
|
), n;
|
|
3656
3664
|
}
|
|
3657
|
-
function
|
|
3665
|
+
function Qo(e, t, n = []) {
|
|
3658
3666
|
if (Array.isArray(n) && n.some((i) => $e(i)))
|
|
3659
3667
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3660
3668
|
Me(() => js(e, t), n);
|
|
3661
3669
|
}
|
|
3662
3670
|
var Qi = /* @__PURE__ */ ((e) => (e.Created = "CREATED", e.Finalized = "FINALIZED", e.Live = "LIVE", e.Starting = "STARTING", e))(Qi || {}), Ki = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(Ki || {}), $i = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))($i || {});
|
|
3663
|
-
const fo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, mo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, vo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ho = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, po = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, _o = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ko = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, yo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, bo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, So = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, go = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, No = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Oo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ao = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Eo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Fo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ro = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3671
|
+
const fo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, mo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, vo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ho = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, po = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, _o = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ko = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, yo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, So = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, bo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, go = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, No = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Oo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ao = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Eo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }] } }] } }] }, Fo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ro = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Co = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, To = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, wo = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3664
3672
|
__proto__: null,
|
|
3665
3673
|
AddCollectionDocument: ho,
|
|
3666
|
-
|
|
3674
|
+
AppendProductsToSnackVideoDocument: Oo,
|
|
3675
|
+
CreateSnackVideoBatchDocument: Ao,
|
|
3667
3676
|
DeleteAllCustomizationDocument: fo,
|
|
3668
3677
|
DeleteCollectionDocument: po,
|
|
3678
|
+
DeleteRelationshipWithSnackVideoDocument: Eo,
|
|
3669
3679
|
EventStatus: Qi,
|
|
3670
|
-
FindByProductSnackVideoDocument:
|
|
3680
|
+
FindByProductSnackVideoDocument: wo,
|
|
3671
3681
|
FindCollectionDocument: _o,
|
|
3672
|
-
FindManySnackVideosDocument:
|
|
3682
|
+
FindManySnackVideosDocument: Fo,
|
|
3673
3683
|
FindMinimalEventDocument: go,
|
|
3674
3684
|
GetAllCollectionsDocument: ko,
|
|
3675
3685
|
GetAllCustomizationDocument: mo,
|
|
3676
|
-
GetAllSnackVideosDocument:
|
|
3686
|
+
GetAllSnackVideosDocument: Ro,
|
|
3687
|
+
GetSnackVideoRelationshipsDocument: Co,
|
|
3677
3688
|
ManageCollectionProductDocument: yo,
|
|
3678
3689
|
Methods: Ki,
|
|
3679
|
-
SearchCollectionsDocument:
|
|
3690
|
+
SearchCollectionsDocument: So,
|
|
3680
3691
|
SearchMinimalEventsDocument: No,
|
|
3681
|
-
SearchSnackVideosDocument:
|
|
3692
|
+
SearchSnackVideosDocument: To,
|
|
3682
3693
|
Status: $i,
|
|
3683
|
-
UpdateCollectionDocument:
|
|
3694
|
+
UpdateCollectionDocument: bo,
|
|
3684
3695
|
UpdateCustomizationDocument: vo
|
|
3685
3696
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3686
|
-
function
|
|
3697
|
+
function $o(e) {
|
|
3687
3698
|
return {
|
|
3688
3699
|
class: e,
|
|
3689
3700
|
_value: null,
|
|
@@ -3694,41 +3705,41 @@ function zo(e) {
|
|
|
3694
3705
|
}
|
|
3695
3706
|
export {
|
|
3696
3707
|
Mn as AccountContractStatusTypes,
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3708
|
+
ga as AccountContractTypes,
|
|
3709
|
+
Mo as AccountInvalidError,
|
|
3710
|
+
Oa as AccountPlanDescriptionTypes,
|
|
3711
|
+
Fa as AccountRestRepository,
|
|
3712
|
+
Ra as AccountService,
|
|
3713
|
+
Na as AccountSubscriptionTypes,
|
|
3703
3714
|
Ln as AccountTypes,
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3715
|
+
Sa as AggregateRoot,
|
|
3716
|
+
Ko as ApiGraphqlTypes,
|
|
3717
|
+
jo as BaseMobxStore,
|
|
3707
3718
|
ft as DomainError,
|
|
3708
|
-
|
|
3709
|
-
|
|
3719
|
+
Aa as GlobalPageSectionTypes,
|
|
3720
|
+
Er as InvalidNizzaGlobalObjectError,
|
|
3710
3721
|
Gt as NizzaAccount,
|
|
3711
|
-
|
|
3722
|
+
Nr as NizzaProductRequestOriginTypes,
|
|
3712
3723
|
tt as NizzaStore,
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3724
|
+
gr as NizzaVariationTypes,
|
|
3725
|
+
Or as ResourceNotFoundError,
|
|
3726
|
+
Uo as StoreProvider,
|
|
3727
|
+
Ar as UnexpectedError,
|
|
3728
|
+
xo as ValueObject,
|
|
3718
3729
|
xn as accountAtom,
|
|
3719
3730
|
Un as accountService,
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3731
|
+
ba as createAggregateRoot,
|
|
3732
|
+
$o as createStore,
|
|
3733
|
+
_a as customFetch,
|
|
3734
|
+
br as getAccount,
|
|
3735
|
+
Go as getStore,
|
|
3736
|
+
Sr as globalAtomStore,
|
|
3726
3737
|
lo as nizza,
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3738
|
+
Io as searchParams,
|
|
3739
|
+
ya as shortId,
|
|
3740
|
+
Lo as useAccount,
|
|
3741
|
+
zo as useAutorun,
|
|
3742
|
+
Qo as useReaction,
|
|
3732
3743
|
co as useSelect,
|
|
3733
|
-
|
|
3744
|
+
Bo as useStore
|
|
3734
3745
|
};
|