@nizza/core 0.5.0-beta.1 → 0.5.0-beta.10

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.mjs CHANGED
@@ -1,13 +1,13 @@
1
- var an = Object.defineProperty;
2
- var sn = (n, e, t) => e in n ? an(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var x = (n, e, t) => (sn(n, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var Qt = Object.defineProperty;
2
+ var Gt = (n, e, t) => e in n ? Qt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var R = (n, e, t) => (Gt(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as M from "react";
5
- import Ae, { createContext as Ot, useReducer as rn, useEffect as Se, useDebugValue as Rt, useCallback as xt, useContext as Pe, useRef as Re, useMemo as Tt } from "react";
6
- import { jsx as on } from "react/jsx-runtime";
5
+ import pe, { createContext as gt, useReducer as Kt, useEffect as kt, useDebugValue as Wt, useCallback as Jt, useContext as xe, useMemo as qt } from "react";
6
+ import { jsx as Ht } from "react/jsx-runtime";
7
7
  var _ = { 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 };
8
- let ln = 0;
9
- function dn(n, e) {
10
- const t = `atom${++ln}`, i = {
8
+ let Zt = 0;
9
+ function Xt(n, e) {
10
+ const t = `atom${++Zt}`, i = {
11
11
  toString: () => t
12
12
  };
13
13
  return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
@@ -19,311 +19,311 @@ function dn(n, e) {
19
19
  );
20
20
  }), e && (i.write = e), i;
21
21
  }
22
- const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new WeakMap(), un = (n, e) => {
23
- ue.set(n, e), n.catch(() => {
24
- }).finally(() => ue.delete(n));
25
- }, We = (n, e) => {
26
- const t = ue.get(n);
27
- t && (ue.delete(n), t(e));
28
- }, Je = (n, e) => {
22
+ const ve = (n) => "init" in n, Se = (n) => !!n.write, oe = /* @__PURE__ */ new WeakMap(), Yt = (n, e) => {
23
+ oe.set(n, e), n.catch(() => {
24
+ }).finally(() => oe.delete(n));
25
+ }, _e = (n, e) => {
26
+ const t = oe.get(n);
27
+ t && (oe.delete(n), t(e));
28
+ }, Ue = (n, e) => {
29
29
  n.status = "fulfilled", n.value = e;
30
- }, qe = (n, e) => {
30
+ }, Me = (n, e) => {
31
31
  n.status = "rejected", n.reason = e;
32
- }, cn = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), He = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), B = (n) => !!n && "v" in n && n.v instanceof Promise, mn = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, re = (n) => {
32
+ }, en = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), $e = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, tn = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ie = (n) => {
33
33
  if ("e" in n)
34
34
  throw n.e;
35
35
  return n.v;
36
- }, Dt = () => {
36
+ }, vt = () => {
37
37
  const n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new Map();
38
38
  let i, a;
39
39
  (_ ? "production" : void 0) !== "production" && (i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set());
40
- const s = (f) => n.get(f), r = (f, m) => {
41
- (_ ? "production" : void 0) !== "production" && Object.freeze(m);
42
- const g = n.get(f);
43
- if (n.set(f, m), t.has(f) || t.set(f, g), B(g)) {
44
- const h = "v" in m ? m.v instanceof Promise ? m.v : Promise.resolve(m.v) : Promise.reject(m.e);
45
- g.v !== h && We(g.v, h);
46
- }
47
- }, o = (f, m, g) => {
48
- const h = /* @__PURE__ */ new Map();
49
- let N = !1;
50
- g.forEach((C, b) => {
51
- !C && b === f && (C = m), C ? (h.set(b, C), m.d.get(b) !== C && (N = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
52
- }), (N || m.d.size !== h.size) && (m.d = h);
53
- }, d = (f, m, g) => {
54
- const h = s(f), N = {
55
- d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
56
- v: m
40
+ const s = (m) => n.get(m), r = (m, p) => {
41
+ (_ ? "production" : void 0) !== "production" && Object.freeze(p);
42
+ const h = n.get(m);
43
+ if (n.set(m, p), t.has(m) || t.set(m, h), z(h)) {
44
+ const g = "v" in p ? p.v instanceof Promise ? p.v : Promise.resolve(p.v) : Promise.reject(p.e);
45
+ h.v !== g && _e(h.v, g);
46
+ }
47
+ }, o = (m, p, h) => {
48
+ const g = /* @__PURE__ */ new Map();
49
+ let b = !1;
50
+ h.forEach((C, v) => {
51
+ !C && v === m && (C = p), C ? (g.set(v, C), p.d.get(v) !== C && (b = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
52
+ }), (b || p.d.size !== g.size) && (p.d = g);
53
+ }, l = (m, p, h) => {
54
+ const g = s(m), b = {
55
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
56
+ v: p
57
57
  };
58
- if (g && o(f, N, g), J(h, N) && h.d === N.d)
59
- return h;
60
- if (B(h) && B(N) && mn(h, N)) {
61
- if (h.d === N.d)
62
- return h;
63
- N.v = h.v;
64
- }
65
- return r(f, N), N;
66
- }, l = (f, m, g, h) => {
67
- if (cn(m)) {
68
- let N;
58
+ if (h && o(m, b, h), J(g, b) && g.d === b.d)
59
+ return g;
60
+ if (z(g) && z(b) && tn(g, b)) {
61
+ if (g.d === b.d)
62
+ return g;
63
+ b.v = g.v;
64
+ }
65
+ return r(m, b), b;
66
+ }, u = (m, p, h, g) => {
67
+ if (en(p)) {
68
+ let b;
69
69
  const C = () => {
70
- const O = s(f);
71
- if (!B(O) || O.v !== b)
70
+ const E = s(m);
71
+ if (!z(E) || E.v !== v)
72
72
  return;
73
- const T = d(
74
- f,
75
- b,
76
- g
73
+ const P = l(
74
+ m,
75
+ v,
76
+ h
77
77
  );
78
- e.has(f) && O.d !== T.d && I(f, T, O.d);
79
- }, b = new Promise((O, T) => {
80
- let R = !1;
81
- m.then(
82
- (D) => {
83
- R || (R = !0, Je(b, D), O(D), C());
78
+ e.has(m) && E.d !== P.d && D(m, P, E.d);
79
+ }, v = new Promise((E, P) => {
80
+ let x = !1;
81
+ p.then(
82
+ (T) => {
83
+ x || (x = !0, Ue(v, T), E(T), C());
84
84
  },
85
- (D) => {
86
- R || (R = !0, qe(b, D), T(D), C());
85
+ (T) => {
86
+ x || (x = !0, Me(v, T), P(T), C());
87
87
  }
88
- ), N = (D) => {
89
- R || (R = !0, D.then(
90
- (V) => Je(b, V),
91
- (V) => qe(b, V)
92
- ), O(D));
88
+ ), b = (T) => {
89
+ x || (x = !0, T.then(
90
+ (V) => Ue(v, V),
91
+ (V) => Me(v, V)
92
+ ), E(T));
93
93
  };
94
94
  });
95
- return b.orig = m, b.status = "pending", un(b, (O) => {
96
- O && N(O), h == null || h();
97
- }), d(f, b, g);
98
- }
99
- return d(f, m, g);
100
- }, u = (f, m, g) => {
101
- const h = s(f), N = {
102
- d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
103
- e: m
95
+ return v.orig = p, v.status = "pending", Yt(v, (E) => {
96
+ E && b(E), g == null || g();
97
+ }), l(m, v, h);
98
+ }
99
+ return l(m, p, h);
100
+ }, d = (m, p, h) => {
101
+ const g = s(m), b = {
102
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
103
+ e: p
104
104
  };
105
- return g && o(f, N, g), He(h, N) && h.d === N.d ? h : (r(f, N), N);
106
- }, p = (f, m) => {
107
- const g = s(f);
108
- if (!m && g && (e.has(f) || Array.from(g.d).every(([R, D]) => {
109
- if (R === f)
105
+ return h && o(m, b, h), $e(g, b) && g.d === b.d ? g : (r(m, b), b);
106
+ }, f = (m, p) => {
107
+ const h = s(m);
108
+ if (!p && h && (e.has(m) || Array.from(h.d).every(([x, T]) => {
109
+ if (x === m)
110
110
  return !0;
111
- const V = p(R);
112
- return V === D || J(V, D);
111
+ const V = f(x);
112
+ return V === T || J(V, T);
113
113
  })))
114
- return g;
115
- const h = /* @__PURE__ */ new Map();
116
- let N = !0;
117
- const C = (R) => {
118
- if (R === f) {
119
- const V = s(R);
114
+ return h;
115
+ const g = /* @__PURE__ */ new Map();
116
+ let b = !0;
117
+ const C = (x) => {
118
+ if (x === m) {
119
+ const V = s(x);
120
120
  if (V)
121
- return h.set(R, V), re(V);
122
- if (be(R))
123
- return h.set(R, void 0), R.init;
121
+ return g.set(x, V), ie(V);
122
+ if (ve(x))
123
+ return g.set(x, void 0), x.init;
124
124
  throw new Error("no atom init");
125
125
  }
126
- const D = p(R);
127
- return h.set(R, D), re(D);
126
+ const T = f(x);
127
+ return g.set(x, T), ie(T);
128
128
  };
129
- let b, O;
130
- const T = {
129
+ let v, E;
130
+ const P = {
131
131
  get signal() {
132
- return b || (b = new AbortController()), b.signal;
132
+ return v || (v = new AbortController()), v.signal;
133
133
  },
134
134
  get setSelf() {
135
- return (_ ? "production" : void 0) !== "production" && !Fe(f) && console.warn("setSelf function cannot be used with read-only atom"), !O && Fe(f) && (O = (...R) => {
136
- if ((_ ? "production" : void 0) !== "production" && N && console.warn("setSelf function cannot be called in sync"), !N)
137
- return w(f, ...R);
138
- }), O;
135
+ return (_ ? "production" : void 0) !== "production" && !Se(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && Se(m) && (E = (...x) => {
136
+ if ((_ ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
137
+ return F(m, ...x);
138
+ }), E;
139
139
  }
140
140
  };
141
141
  try {
142
- const R = f.read(C, T);
143
- return l(
144
- f,
145
- R,
146
- h,
147
- () => b == null ? void 0 : b.abort()
142
+ const x = m.read(C, P);
143
+ return u(
144
+ m,
145
+ x,
146
+ g,
147
+ () => v == null ? void 0 : v.abort()
148
148
  );
149
- } catch (R) {
150
- return u(f, R, h);
149
+ } catch (x) {
150
+ return d(m, x, g);
151
151
  } finally {
152
- N = !1;
153
- }
154
- }, c = (f) => re(p(f)), v = (f) => {
155
- let m = e.get(f);
156
- return m || (m = L(f)), m;
157
- }, S = (f, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(f)), k = (f) => {
158
- const m = e.get(f);
159
- m && S(f, m) && E(f);
160
- }, y = (f) => {
161
- const m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new WeakMap(), h = (b) => {
162
- var O;
163
- const T = new Set((O = e.get(b)) == null ? void 0 : O.t);
164
- return t.forEach((R, D) => {
152
+ b = !1;
153
+ }
154
+ }, c = (m) => ie(f(m)), S = (m) => {
155
+ let p = e.get(m);
156
+ return p || (p = I(m)), p;
157
+ }, y = (m, p) => !p.l.size && (!p.t.size || p.t.size === 1 && p.t.has(m)), k = (m) => {
158
+ const p = e.get(m);
159
+ p && y(m, p) && w(m);
160
+ }, N = (m) => {
161
+ const p = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), g = (v) => {
162
+ var E;
163
+ const P = new Set((E = e.get(v)) == null ? void 0 : E.t);
164
+ return t.forEach((x, T) => {
165
165
  var V;
166
- (V = s(D)) != null && V.d.has(b) && T.add(D);
167
- }), T;
168
- }, N = (b) => {
169
- h(b).forEach((O) => {
170
- O !== b && (m.set(
171
- O,
172
- (m.get(O) || /* @__PURE__ */ new Set()).add(b)
173
- ), g.set(O, (g.get(O) || 0) + 1), N(O));
166
+ (V = s(T)) != null && V.d.has(v) && P.add(T);
167
+ }), P;
168
+ }, b = (v) => {
169
+ g(v).forEach((E) => {
170
+ E !== v && (p.set(
171
+ E,
172
+ (p.get(E) || /* @__PURE__ */ new Set()).add(v)
173
+ ), h.set(E, (h.get(E) || 0) + 1), b(E));
174
174
  });
175
175
  };
176
- N(f);
177
- const C = (b) => {
178
- h(b).forEach((O) => {
179
- var T;
180
- if (O !== b) {
181
- let R = g.get(O);
182
- if (R && g.set(O, --R), !R) {
183
- let D = !!((T = m.get(O)) != null && T.size);
184
- if (D) {
185
- const V = s(O), se = p(O, !0);
186
- D = !J(V, se);
176
+ b(m);
177
+ const C = (v) => {
178
+ g(v).forEach((E) => {
179
+ var P;
180
+ if (E !== v) {
181
+ let x = h.get(E);
182
+ if (x && h.set(E, --x), !x) {
183
+ let T = !!((P = p.get(E)) != null && P.size);
184
+ if (T) {
185
+ const V = s(E), ne = f(E, !0);
186
+ T = !J(V, ne);
187
187
  }
188
- D || m.forEach((V) => V.delete(O));
188
+ T || p.forEach((V) => V.delete(E));
189
189
  }
190
- C(O);
190
+ C(E);
191
191
  }
192
192
  });
193
193
  };
194
- C(f);
195
- }, F = (f, ...m) => {
196
- let g = !0;
197
- const h = (b) => re(p(b)), N = (b, ...O) => {
198
- let T;
199
- if (b === f) {
200
- if (!be(b))
194
+ C(m);
195
+ }, O = (m, ...p) => {
196
+ let h = !0;
197
+ const g = (v) => ie(f(v)), b = (v, ...E) => {
198
+ let P;
199
+ if (v === m) {
200
+ if (!ve(v))
201
201
  throw new Error("atom not writable");
202
- const R = s(b), D = l(b, O[0]);
203
- J(R, D) || y(b);
202
+ const x = s(v), T = u(v, E[0]);
203
+ J(x, T) || N(v);
204
204
  } else
205
- T = F(b, ...O);
206
- if (!g) {
207
- const R = P();
205
+ P = O(v, ...E);
206
+ if (!h) {
207
+ const x = L();
208
208
  (_ ? "production" : void 0) !== "production" && i.forEach(
209
- (D) => D({ type: "async-write", flushed: R })
209
+ (T) => T({ type: "async-write", flushed: x })
210
210
  );
211
211
  }
212
- return T;
213
- }, C = f.write(h, N, ...m);
214
- return g = !1, C;
215
- }, w = (f, ...m) => {
216
- const g = F(f, ...m), h = P();
212
+ return P;
213
+ }, C = m.write(g, b, ...p);
214
+ return h = !1, C;
215
+ }, F = (m, ...p) => {
216
+ const h = O(m, ...p), g = L();
217
217
  return (_ ? "production" : void 0) !== "production" && i.forEach(
218
- (N) => N({ type: "write", flushed: h })
219
- ), g;
220
- }, L = (f, m, g) => {
221
- var h;
222
- const N = g || [];
223
- (h = s(f)) == null || h.d.forEach((b, O) => {
224
- const T = e.get(O);
225
- T ? T.t.add(f) : O !== f && L(O, f, N);
226
- }), p(f);
218
+ (b) => b({ type: "write", flushed: g })
219
+ ), h;
220
+ }, I = (m, p, h) => {
221
+ var g;
222
+ const b = h || [];
223
+ (g = s(m)) == null || g.d.forEach((v, E) => {
224
+ const P = e.get(E);
225
+ P ? P.t.add(m) : E !== m && I(E, m, b);
226
+ }), f(m);
227
227
  const C = {
228
- t: new Set(m && [m]),
228
+ t: new Set(p && [p]),
229
229
  l: /* @__PURE__ */ new Set()
230
230
  };
231
- if (e.set(f, C), (_ ? "production" : void 0) !== "production" && a.add(f), Fe(f) && f.onMount) {
232
- const { onMount: b } = f;
233
- N.push(() => {
234
- const O = b((...T) => w(f, ...T));
235
- O && (C.u = O);
231
+ if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), Se(m) && m.onMount) {
232
+ const { onMount: v } = m;
233
+ b.push(() => {
234
+ const E = v((...P) => F(m, ...P));
235
+ E && (C.u = E);
236
236
  });
237
237
  }
238
- return g || N.forEach((b) => b()), C;
239
- }, E = (f) => {
240
- var m;
241
- const g = (m = e.get(f)) == null ? void 0 : m.u;
242
- g && g(), e.delete(f), (_ ? "production" : void 0) !== "production" && a.delete(f);
243
- const h = s(f);
244
- h ? (B(h) && We(h.v), h.d.forEach((N, C) => {
245
- if (C !== f) {
246
- const b = e.get(C);
247
- b && (b.t.delete(f), S(C, b) && E(C));
238
+ return h || b.forEach((v) => v()), C;
239
+ }, w = (m) => {
240
+ var p;
241
+ const h = (p = e.get(m)) == null ? void 0 : p.u;
242
+ h && h(), e.delete(m), (_ ? "production" : void 0) !== "production" && a.delete(m);
243
+ const g = s(m);
244
+ g ? (z(g) && _e(g.v), g.d.forEach((b, C) => {
245
+ if (C !== m) {
246
+ const v = e.get(C);
247
+ v && (v.t.delete(m), y(C, v) && w(C));
248
248
  }
249
- })) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", f);
250
- }, I = (f, m, g) => {
251
- const h = new Set(m.d.keys());
252
- g == null || g.forEach((N, C) => {
253
- if (h.has(C)) {
254
- h.delete(C);
249
+ })) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", m);
250
+ }, D = (m, p, h) => {
251
+ const g = new Set(p.d.keys());
252
+ h == null || h.forEach((b, C) => {
253
+ if (g.has(C)) {
254
+ g.delete(C);
255
255
  return;
256
256
  }
257
- const b = e.get(C);
258
- b && (b.t.delete(f), S(C, b) && E(C));
259
- }), h.forEach((N) => {
260
- const C = e.get(N);
261
- C ? C.t.add(f) : e.has(f) && L(N, f);
257
+ const v = e.get(C);
258
+ v && (v.t.delete(m), y(C, v) && w(C));
259
+ }), g.forEach((b) => {
260
+ const C = e.get(b);
261
+ C ? C.t.add(m) : e.has(m) && I(b, m);
262
262
  });
263
- }, P = () => {
264
- let f;
265
- for ((_ ? "production" : void 0) !== "production" && (f = /* @__PURE__ */ new Set()); t.size; ) {
266
- const m = Array.from(t);
267
- t.clear(), m.forEach(([g, h]) => {
268
- const N = s(g);
269
- if (N) {
270
- const C = e.get(g);
271
- C && N.d !== (h == null ? void 0 : h.d) && I(g, N, h == null ? void 0 : h.d), C && !// TODO This seems pretty hacky. Hope to fix it.
263
+ }, L = () => {
264
+ let m;
265
+ for ((_ ? "production" : void 0) !== "production" && (m = /* @__PURE__ */ new Set()); t.size; ) {
266
+ const p = Array.from(t);
267
+ t.clear(), p.forEach(([h, g]) => {
268
+ const b = s(h);
269
+ if (b) {
270
+ const C = e.get(h);
271
+ C && b.d !== (g == null ? void 0 : g.d) && D(h, b, g == null ? void 0 : g.d), C && !// TODO This seems pretty hacky. Hope to fix it.
272
272
  // Maybe we could `mountDependencies` in `setAtomState`?
273
- (!B(h) && (J(h, N) || He(h, N))) && (C.l.forEach((b) => b()), (_ ? "production" : void 0) !== "production" && f.add(g));
273
+ (!z(g) && (J(g, b) || $e(g, b))) && (C.l.forEach((v) => v()), (_ ? "production" : void 0) !== "production" && m.add(h));
274
274
  } else
275
275
  (_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
276
276
  });
277
277
  }
278
278
  if ((_ ? "production" : void 0) !== "production")
279
- return f;
280
- }, A = (f, m) => {
281
- const g = v(f), h = P(), N = g.l;
282
- return N.add(m), (_ ? "production" : void 0) !== "production" && i.forEach(
283
- (C) => C({ type: "sub", flushed: h })
279
+ return m;
280
+ }, A = (m, p) => {
281
+ const h = S(m), g = L(), b = h.l;
282
+ return b.add(p), (_ ? "production" : void 0) !== "production" && i.forEach(
283
+ (C) => C({ type: "sub", flushed: g })
284
284
  ), () => {
285
- N.delete(m), k(f), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
285
+ b.delete(p), k(m), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
286
286
  };
287
287
  };
288
288
  return (_ ? "production" : void 0) !== "production" ? {
289
289
  get: c,
290
- set: w,
290
+ set: F,
291
291
  sub: A,
292
292
  // store dev methods (these are tentative and subject to change without notice)
293
- dev_subscribe_store: (f, m) => {
294
- if (m !== 2)
293
+ dev_subscribe_store: (m, p) => {
294
+ if (p !== 2)
295
295
  throw new Error("The current StoreListener revision is 2.");
296
- return i.add(f), () => {
297
- i.delete(f);
296
+ return i.add(m), () => {
297
+ i.delete(m);
298
298
  };
299
299
  },
300
300
  dev_get_mounted_atoms: () => a.values(),
301
- dev_get_atom_state: (f) => n.get(f),
302
- dev_get_mounted: (f) => e.get(f),
303
- dev_restore_atoms: (f) => {
304
- for (const [g, h] of f)
305
- be(g) && (l(g, h), y(g));
306
- const m = P();
301
+ dev_get_atom_state: (m) => n.get(m),
302
+ dev_get_mounted: (m) => e.get(m),
303
+ dev_restore_atoms: (m) => {
304
+ for (const [h, g] of m)
305
+ ve(h) && (u(h, g), N(h));
306
+ const p = L();
307
307
  i.forEach(
308
- (g) => g({ type: "restore", flushed: m })
308
+ (h) => h({ type: "restore", flushed: p })
309
309
  );
310
310
  }
311
311
  } : {
312
312
  get: c,
313
- set: w,
313
+ set: F,
314
314
  sub: A
315
315
  };
316
316
  };
317
- let we;
317
+ let ye;
318
318
  (_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
319
- const fn = () => (we || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
319
+ const nn = () => (ye || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
320
320
  "Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
321
- ), we = Dt()), we);
322
- var pn = { 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 };
323
- const hn = Ot(void 0), Lt = (n) => {
324
- const e = Pe(hn);
325
- return (n == null ? void 0 : n.store) || e || fn();
326
- }, gn = (n) => typeof (n == null ? void 0 : n.then) == "function", kn = Ae.use || ((n) => {
321
+ ), ye = vt()), ye);
322
+ var an = { 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 };
323
+ const sn = gt(void 0), St = (n) => {
324
+ const e = xe(sn);
325
+ return (n == null ? void 0 : n.store) || e || nn();
326
+ }, rn = (n) => typeof (n == null ? void 0 : n.then) == "function", on = pe.use || ((n) => {
327
327
  if (n.status === "pending")
328
328
  throw n;
329
329
  if (n.status === "fulfilled")
@@ -337,58 +337,58 @@ const hn = Ot(void 0), Lt = (n) => {
337
337
  }
338
338
  ), n);
339
339
  });
340
- function vn(n, e) {
341
- const t = Lt(e), [[i, a, s], r] = rn(
342
- (l) => {
343
- const u = t.get(n);
344
- return Object.is(l[0], u) && l[1] === t && l[2] === n ? l : [u, t, n];
340
+ function ln(n, e) {
341
+ const t = St(e), [[i, a, s], r] = Kt(
342
+ (u) => {
343
+ const d = t.get(n);
344
+ return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
345
345
  },
346
346
  void 0,
347
347
  () => [t.get(n), t, n]
348
348
  );
349
349
  let o = i;
350
350
  (a !== t || s !== n) && (r(), o = t.get(n));
351
- const d = e == null ? void 0 : e.delay;
352
- return Se(() => {
353
- const l = t.sub(n, () => {
354
- if (typeof d == "number") {
355
- setTimeout(r, d);
351
+ const l = e == null ? void 0 : e.delay;
352
+ return kt(() => {
353
+ const u = t.sub(n, () => {
354
+ if (typeof l == "number") {
355
+ setTimeout(r, l);
356
356
  return;
357
357
  }
358
358
  r();
359
359
  });
360
- return r(), l;
361
- }, [t, n, d]), Rt(o), gn(o) ? kn(o) : o;
360
+ return r(), u;
361
+ }, [t, n, l]), Wt(o), rn(o) ? on(o) : o;
362
362
  }
363
- function Sn(n, e) {
364
- const t = Lt(e);
365
- return xt(
363
+ function dn(n, e) {
364
+ const t = St(e);
365
+ return Jt(
366
366
  (...a) => {
367
- if ((pn ? "production" : void 0) !== "production" && !("write" in n))
367
+ if ((an ? "production" : void 0) !== "production" && !("write" in n))
368
368
  throw new Error("not writable atom");
369
369
  return t.set(n, ...a);
370
370
  },
371
371
  [t, n]
372
372
  );
373
373
  }
374
- function yn(n, e) {
374
+ function un(n, e) {
375
375
  return [
376
- vn(n, e),
376
+ ln(n, e),
377
377
  // We do wrong type assertion here, which results in throwing an error.
378
- Sn(n, e)
378
+ dn(n, e)
379
379
  ];
380
380
  }
381
- const Ve = dn(null);
382
- Ve.debugLabel = "accountAtom";
383
- var Nn = { 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 };
381
+ const Oe = Xt(null);
382
+ Oe.debugLabel = "accountAtom";
383
+ var cn = { 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 };
384
384
  const {
385
- NZ_AWS_REGION: bn,
386
- NZ_BACKOFFICE_BACK_URL: Fn,
387
- NZ_CORE_SERVICES_GRAPHQL_URL: wn,
388
- NZ_CORE_SERVICES_REST_URL: Cn
389
- } = Nn, En = {
385
+ NZ_AWS_REGION: mn,
386
+ NZ_BACKOFFICE_BACK_URL: fn,
387
+ NZ_CORE_SERVICES_GRAPHQL_URL: pn,
388
+ NZ_CORE_SERVICES_REST_URL: hn
389
+ } = cn, gn = {
390
390
  AWS: {
391
- region: bn,
391
+ region: mn,
392
392
  cognito: {
393
393
  userPoolId: "us-east-1_knSlGEmJ0",
394
394
  userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
@@ -396,9 +396,9 @@ const {
396
396
  },
397
397
  // Back services
398
398
  apiUrls: {
399
- restV1: Fn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
- restV2: Cn || "https://core-services-dev.nizza.com/api",
401
- graphql: wn || "https://core-services-dev.nizza.com/graphql",
399
+ restV1: fn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
+ restV2: hn || "https://core-services-dev.nizza.com/api",
401
+ graphql: pn || "https://core-services-dev.nizza.com/graphql",
402
402
  corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
403
403
  },
404
404
  publicUrls: {
@@ -412,7 +412,7 @@ const {
412
412
  wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
413
413
  }
414
414
  };
415
- async function It(n) {
415
+ async function yt(n) {
416
416
  const {
417
417
  url: e,
418
418
  method: t = "GET",
@@ -421,40 +421,40 @@ async function It(n) {
421
421
  contentTypeJson: s = !0,
422
422
  timeout: r,
423
423
  ...o
424
- } = n, d = s && !n.headers ? new Headers({
424
+ } = n, l = s && !n.headers ? new Headers({
425
425
  "content-type": "application/json"
426
426
  }) : n.headers;
427
427
  try {
428
- const l = new AbortController(), { signal: u } = l;
429
- let p;
428
+ const u = new AbortController(), { signal: d } = u;
429
+ let f;
430
430
  const c = fetch(e, {
431
431
  method: t,
432
- headers: d,
432
+ headers: l,
433
433
  body: i,
434
- signal: u,
434
+ signal: d,
435
435
  ...o
436
436
  });
437
- r && (p = setTimeout(() => {
438
- l.abort();
437
+ r && (f = setTimeout(() => {
438
+ u.abort();
439
439
  }, r));
440
- const v = await c;
440
+ const S = await c;
441
441
  if (a)
442
- return v;
443
- const S = await v.json();
444
- if (clearTimeout(p), !v.ok) {
445
- const k = S ? JSON.stringify(S) : v.statusText;
442
+ return S;
443
+ const y = await S.json();
444
+ if (clearTimeout(f), !S.ok) {
445
+ const k = y ? JSON.stringify(y) : S.statusText;
446
446
  throw new Error(k);
447
447
  }
448
- return S;
449
- } catch (l) {
450
- throw console.error("[CustomFetch] ", l), l;
448
+ return y;
449
+ } catch (u) {
450
+ throw console.error("[CustomFetch] ", u), u;
451
451
  }
452
452
  }
453
- const js = (n) => It({ ...n, contentTypeJson: !1, raw: !1 });
454
- function $s(n, e, t) {
455
- fetch(e).then((i) => i.blob()).then((i) => On(i, `${n}.${t}`));
453
+ const Is = (n) => yt({ ...n, contentTypeJson: !1, raw: !1 });
454
+ function Ds(n, e, t) {
455
+ fetch(e).then((i) => i.blob()).then((i) => kn(i, `${n}.${t}`));
456
456
  }
457
- const On = (n, e, t) => {
457
+ const kn = (n, e, t) => {
458
458
  const i = [n], a = new Blob(i, {
459
459
  type: t != null ? t : "application/octet-stream"
460
460
  });
@@ -464,283 +464,28 @@ const On = (n, e, t) => {
464
464
  return r.style.display = "none", r.href = s, r.setAttribute("download", e), typeof r.download == "undefined" && r.setAttribute("target", "_blank"), document.body.appendChild(r), r.click(), setTimeout(() => {
465
465
  document.body.removeChild(r), window.URL.revokeObjectURL(s);
466
466
  }, 200);
467
- }, Rn = Symbol(), _e = Symbol(), q = "a", ne = "w";
468
- let xn = (n, e) => new Proxy(n, e);
469
- const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) => n && (Te.has(n) ? Te.get(n) : xe(n) === Object.prototype || xe(n) === Array.prototype), ce = (n) => typeof n == "object" && n !== null, Tn = (n) => {
470
- if (Array.isArray(n))
471
- return Array.from(n);
472
- const e = Object.getOwnPropertyDescriptors(n);
473
- return Object.values(e).forEach((t) => {
474
- t.configurable = !0;
475
- }), Object.create(xe(n), e);
476
- }, Ue = (n) => n[_e] || n, Pt = (n, e, t, i) => {
477
- if (!At(n))
478
- return n;
479
- let a = i && i.get(n);
480
- if (!a) {
481
- const d = Ue(n);
482
- a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d, Tn(d)] : [d], i == null || i.set(n, a);
483
- }
484
- const [s, r] = a;
485
- let o = t && t.get(s);
486
- return o && o[1].f === !!r || (o = ((d, l) => {
487
- const u = { f: l };
488
- let p = !1;
489
- const c = (S, k) => {
490
- if (!p) {
491
- let y = u[q].get(d);
492
- if (y || (y = {}, u[q].set(d, y)), S === ne)
493
- y[ne] = !0;
494
- else {
495
- let F = y[S];
496
- F || (F = /* @__PURE__ */ new Set(), y[S] = F), F.add(k);
497
- }
498
- }
499
- }, v = { get: (S, k) => k === _e ? d : (c("k", k), Pt(Reflect.get(S, k), u[q], u.c, u.t)), has: (S, k) => k === Rn ? (p = !0, u[q].delete(d), !0) : (c("h", k), Reflect.has(S, k)), getOwnPropertyDescriptor: (S, k) => (c("o", k), Reflect.getOwnPropertyDescriptor(S, k)), ownKeys: (S) => (c(ne), Reflect.ownKeys(S)) };
500
- return l && (v.set = v.deleteProperty = () => !1), [v, u];
501
- })(s, !!r), o[1].p = xn(r || s, o[0]), t && t.set(s, o)), o[1][q] = e, o[1].c = t, o[1].t = i, o[1].p;
502
- }, Vt = (n, e, t, i) => {
503
- if (Object.is(n, e))
504
- return !1;
505
- if (!ce(n) || !ce(e))
506
- return !0;
507
- const a = t.get(Ue(n));
508
- if (!a)
509
- return !0;
510
- if (i) {
511
- const r = i.get(n);
512
- if (r && r.n === e)
513
- return r.g;
514
- i.set(n, { n: e, g: !1 });
515
- }
516
- let s = null;
517
- try {
518
- for (const r of a.h || [])
519
- if (s = Reflect.has(n, r) !== Reflect.has(e, r), s)
520
- return s;
521
- if (a[ne] === !0) {
522
- if (s = ((r, o) => {
523
- const d = Reflect.ownKeys(r), l = Reflect.ownKeys(o);
524
- return d.length !== l.length || d.some((u, p) => u !== l[p]);
525
- })(n, e), s)
526
- return s;
527
- } else
528
- for (const r of a.o || [])
529
- if (s = !!Reflect.getOwnPropertyDescriptor(n, r) != !!Reflect.getOwnPropertyDescriptor(e, r), s)
530
- return s;
531
- for (const r of a.k || [])
532
- if (s = Vt(n[r], e[r], t, i), s)
533
- return s;
534
- return s === null && (s = !0), s;
535
- } finally {
536
- i && i.set(n, { n: e, g: s });
537
- }
538
- }, Dn = (n) => At(n) && n[_e] || null, Ze = (n, e = !0) => {
539
- Te.set(n, e);
540
- }, Ln = (n, e, t) => {
541
- const i = [], a = /* @__PURE__ */ new WeakSet(), s = (r, o) => {
542
- if (a.has(r))
543
- return;
544
- ce(r) && a.add(r);
545
- const d = ce(r) && e.get(Ue(r));
546
- if (d) {
547
- var l, u;
548
- if ((l = d.h) == null || l.forEach((c) => {
549
- const v = `:has(${String(c)})`;
550
- i.push(o ? [...o, v] : [v]);
551
- }), d[ne] === !0) {
552
- const c = ":ownKeys";
553
- i.push(o ? [...o, c] : [c]);
554
- } else {
555
- var p;
556
- (p = d.o) == null || p.forEach((c) => {
557
- const v = `:hasOwn(${String(c)})`;
558
- i.push(o ? [...o, v] : [v]);
559
- });
560
- }
561
- (u = d.k) == null || u.forEach((c) => {
562
- t && !("value" in (Object.getOwnPropertyDescriptor(r, c) || {})) || s(r[c], o ? [...o, c] : [c]);
563
- });
564
- } else
565
- o && i.push(o);
566
- };
567
- return s(n), i;
568
467
  };
569
- var me = { 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 };
570
- const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), In = (n = Object.is, e = (l, u) => new Proxy(l, u), t = (l) => Ce(l) && !Y.has(l) && (Array.isArray(l) || !(Symbol.iterator in l)) && !(l instanceof WeakMap) && !(l instanceof WeakSet) && !(l instanceof Error) && !(l instanceof Number) && !(l instanceof Date) && !(l instanceof String) && !(l instanceof RegExp) && !(l instanceof ArrayBuffer), i = (l) => {
571
- switch (l.status) {
572
- case "fulfilled":
573
- return l.value;
574
- case "rejected":
575
- throw l.reason;
576
- default:
577
- throw l;
578
- }
579
- }, a = /* @__PURE__ */ new WeakMap(), s = (l, u, p = i) => {
580
- const c = a.get(l);
581
- if ((c == null ? void 0 : c[0]) === u)
582
- return c[1];
583
- const v = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l));
584
- return Ze(v, !0), a.set(l, [u, v]), Reflect.ownKeys(l).forEach((S) => {
585
- if (Object.getOwnPropertyDescriptor(v, S))
586
- return;
587
- const k = Reflect.get(l, S), { enumerable: y } = Reflect.getOwnPropertyDescriptor(
588
- l,
589
- S
590
- ), F = {
591
- value: k,
592
- enumerable: y,
593
- // This is intentional to avoid copying with proxy-compare.
594
- // It's still non-writable, so it avoids assigning a value.
595
- configurable: !0
596
- };
597
- if (Y.has(k))
598
- Ze(k, !1);
599
- else if (k instanceof Promise)
600
- delete F.value, F.get = () => p(k);
601
- else if ($.has(k)) {
602
- const [w, L] = $.get(
603
- k
604
- );
605
- F.value = s(
606
- w,
607
- L(),
608
- p
609
- );
610
- }
611
- Object.defineProperty(v, S, F);
612
- }), Object.preventExtensions(v);
613
- }, r = /* @__PURE__ */ new WeakMap(), o = [1, 1], d = (l) => {
614
- if (!Ce(l))
615
- throw new Error("object required");
616
- const u = r.get(l);
617
- if (u)
618
- return u;
619
- let p = o[0];
620
- const c = /* @__PURE__ */ new Set(), v = (m, g = ++o[0]) => {
621
- p !== g && (p = g, c.forEach((h) => h(m, g)));
622
- };
623
- let S = o[1];
624
- const k = (m = ++o[1]) => (S !== m && !c.size && (S = m, F.forEach(([g]) => {
625
- const h = g[1](m);
626
- h > p && (p = h);
627
- })), p), y = (m) => (g, h) => {
628
- const N = [...g];
629
- N[1] = [m, ...N[1]], v(N, h);
630
- }, F = /* @__PURE__ */ new Map(), w = (m, g) => {
631
- if ((me ? "production" : void 0) !== "production" && F.has(m))
632
- throw new Error("prop listener already exists");
633
- if (c.size) {
634
- const h = g[3](y(m));
635
- F.set(m, [g, h]);
636
- } else
637
- F.set(m, [g]);
638
- }, L = (m) => {
639
- var g;
640
- const h = F.get(m);
641
- h && (F.delete(m), (g = h[1]) == null || g.call(h));
642
- }, E = (m) => (c.add(m), c.size === 1 && F.forEach(([h, N], C) => {
643
- if ((me ? "production" : void 0) !== "production" && N)
644
- throw new Error("remove already exists");
645
- const b = h[3](y(C));
646
- F.set(C, [h, b]);
647
- }), () => {
648
- c.delete(m), c.size === 0 && F.forEach(([h, N], C) => {
649
- N && (N(), F.set(C, [h]));
650
- });
651
- }), I = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), A = e(I, {
652
- deleteProperty(m, g) {
653
- const h = Reflect.get(m, g);
654
- L(g);
655
- const N = Reflect.deleteProperty(m, g);
656
- return N && v(["delete", [g], h]), N;
657
- },
658
- set(m, g, h, N) {
659
- const C = Reflect.has(m, g), b = Reflect.get(m, g, N);
660
- if (C && (n(b, h) || r.has(h) && n(b, r.get(h))))
661
- return !0;
662
- L(g), Ce(h) && (h = Dn(h) || h);
663
- let O = h;
664
- if (h instanceof Promise)
665
- h.then((T) => {
666
- h.status = "fulfilled", h.value = T, v(["resolve", [g], T]);
667
- }).catch((T) => {
668
- h.status = "rejected", h.reason = T, v(["reject", [g], T]);
669
- });
670
- else {
671
- !$.has(h) && t(h) && (O = d(h));
672
- const T = !Y.has(O) && $.get(O);
673
- T && w(g, T);
674
- }
675
- return Reflect.set(m, g, O, N), v(["set", [g], h, b]), !0;
676
- }
677
- });
678
- r.set(l, A);
679
- const f = [
680
- I,
681
- k,
682
- s,
683
- E
684
- ];
685
- return $.set(A, f), Reflect.ownKeys(l).forEach((m) => {
686
- const g = Object.getOwnPropertyDescriptor(
687
- l,
688
- m
689
- );
690
- "value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(I, m, g);
691
- }), A;
692
- }) => [
693
- // public functions
694
- d,
695
- // shared state
696
- $,
697
- Y,
698
- // internal things
699
- n,
700
- e,
701
- t,
702
- i,
703
- a,
704
- s,
705
- r,
706
- o
707
- ], [An] = In();
708
- function Pn(n = {}) {
709
- return An(n);
710
- }
711
- function Vn(n, e, t) {
712
- const i = $.get(n);
713
- (me ? "production" : void 0) !== "production" && !i && console.warn("Please use proxy object");
714
- let a;
715
- const s = [], r = i[3];
716
- let o = !1;
717
- const l = r((u) => {
718
- if (s.push(u), t) {
719
- e(s.splice(0));
720
- return;
721
- }
722
- a || (a = Promise.resolve().then(() => {
723
- a = void 0, o && e(s.splice(0));
724
- }));
725
- });
726
- return o = !0, () => {
727
- o = !1, l();
728
- };
729
- }
730
- function Xe(n, e) {
731
- const t = $.get(n);
732
- (me ? "production" : void 0) !== "production" && !t && console.warn("Please use proxy object");
733
- const [i, a, s] = t;
734
- return s(i, a(), e);
735
- }
736
- function _t(n) {
737
- return Y.add(n), n;
738
- }
739
- var Ut = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
740
- function Me(n) {
468
+ var vn = { 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 };
469
+ const je = (n) => {
470
+ let e;
471
+ const t = /* @__PURE__ */ new Set(), i = (l, u) => {
472
+ const d = typeof l == "function" ? l(e) : l;
473
+ if (!Object.is(d, e)) {
474
+ const f = e;
475
+ e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
476
+ }
477
+ }, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
478
+ (vn ? "production" : void 0) !== "production" && console.warn(
479
+ "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
480
+ ), t.clear();
481
+ } };
482
+ return e = n(i, a, o), o;
483
+ }, Sn = (n) => n ? je(n) : je;
484
+ var Nt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
485
+ function Re(n) {
741
486
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
742
487
  }
743
- var Mt = { exports: {} }, jt = {};
488
+ var bt = { exports: {} }, Ft = {}, wt = { exports: {} }, Ct = {};
744
489
  /**
745
490
  * @license React
746
491
  * use-sync-external-store-shim.production.min.js
@@ -750,95 +495,121 @@ var Mt = { exports: {} }, jt = {};
750
495
  * This source code is licensed under the MIT license found in the
751
496
  * LICENSE file in the root directory of this source tree.
752
497
  */
753
- var W = Ae;
754
- function _n(n, e) {
498
+ var W = pe;
499
+ function yn(n, e) {
755
500
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
756
501
  }
757
- var Un = typeof Object.is == "function" ? Object.is : _n, Mn = W.useState, jn = W.useEffect, $n = W.useLayoutEffect, zn = W.useDebugValue;
758
- function Bn(n, e) {
759
- var t = e(), i = Mn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
760
- return $n(function() {
761
- a.value = t, a.getSnapshot = e, Ee(a) && s({ inst: a });
762
- }, [n, t, e]), jn(function() {
763
- return Ee(a) && s({ inst: a }), n(function() {
764
- Ee(a) && s({ inst: a });
502
+ var Nn = typeof Object.is == "function" ? Object.is : yn, bn = W.useState, Fn = W.useEffect, wn = W.useLayoutEffect, Cn = W.useDebugValue;
503
+ function En(n, e) {
504
+ var t = e(), i = bn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
+ return wn(function() {
506
+ a.value = t, a.getSnapshot = e, Ne(a) && s({ inst: a });
507
+ }, [n, t, e]), Fn(function() {
508
+ return Ne(a) && s({ inst: a }), n(function() {
509
+ Ne(a) && s({ inst: a });
765
510
  });
766
- }, [n]), zn(t), t;
511
+ }, [n]), Cn(t), t;
767
512
  }
768
- function Ee(n) {
513
+ function Ne(n) {
769
514
  var e = n.getSnapshot;
770
515
  n = n.value;
771
516
  try {
772
517
  var t = e();
773
- return !Un(n, t);
518
+ return !Nn(n, t);
774
519
  } catch {
775
520
  return !0;
776
521
  }
777
522
  }
778
- function Qn(n, e) {
523
+ function xn(n, e) {
779
524
  return e();
780
525
  }
781
- var Kn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Qn : Bn;
782
- jt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : Kn;
783
- Mt.exports = jt;
784
- var $t = Mt.exports;
785
- const Gn = /* @__PURE__ */ Me($t);
786
- var Wn = { 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 };
787
- const { use: Ye } = Ae, { useSyncExternalStore: Jn } = Gn, qn = (n, e) => {
788
- const t = Re();
789
- Se(() => {
790
- t.current = Ln(n, e, !0);
791
- }), Rt(t.current);
792
- }, Hn = /* @__PURE__ */ new WeakMap();
793
- function Zn(n, e) {
794
- const t = e == null ? void 0 : e.sync, i = Re(), a = Re();
795
- let s = !0;
796
- const r = Jn(
797
- xt(
798
- (l) => {
799
- const u = Vn(n, l, t);
800
- return l(), u;
801
- },
802
- [n, t]
803
- ),
804
- () => {
805
- const l = Xe(n, Ye);
806
- try {
807
- if (!s && i.current && a.current && !Vt(
808
- i.current,
809
- l,
810
- a.current,
811
- /* @__PURE__ */ new WeakMap()
812
- ))
813
- return i.current;
814
- } catch {
526
+ var On = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? xn : En;
527
+ Ct.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : On;
528
+ wt.exports = Ct;
529
+ var Et = wt.exports;
530
+ /**
531
+ * @license React
532
+ * use-sync-external-store-shim/with-selector.production.min.js
533
+ *
534
+ * Copyright (c) Facebook, Inc. and its affiliates.
535
+ *
536
+ * This source code is licensed under the MIT license found in the
537
+ * LICENSE file in the root directory of this source tree.
538
+ */
539
+ var he = pe, Rn = Et;
540
+ function Tn(n, e) {
541
+ return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
542
+ }
543
+ var In = typeof Object.is == "function" ? Object.is : Tn, Dn = Rn.useSyncExternalStore, Ln = he.useRef, An = he.useEffect, Pn = he.useMemo, Vn = he.useDebugValue;
544
+ Ft.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
545
+ var s = Ln(null);
546
+ if (s.current === null) {
547
+ var r = { hasValue: !1, value: null };
548
+ s.current = r;
549
+ } else
550
+ r = s.current;
551
+ s = Pn(function() {
552
+ function l(S) {
553
+ if (!u) {
554
+ if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
555
+ var y = r.value;
556
+ if (a(y, S))
557
+ return f = y;
558
+ }
559
+ return f = S;
815
560
  }
816
- return l;
817
- },
818
- () => Xe(n, Ye)
819
- );
820
- s = !1;
821
- const o = /* @__PURE__ */ new WeakMap();
822
- Se(() => {
823
- i.current = r, a.current = o;
824
- }), (Wn ? "production" : void 0) !== "production" && qn(r, o);
825
- const d = Tt(() => /* @__PURE__ */ new WeakMap(), []);
826
- return Pt(
827
- r,
828
- o,
829
- d,
830
- Hn
561
+ if (y = f, In(d, S))
562
+ return y;
563
+ var k = i(S);
564
+ return a !== void 0 && a(y, k) ? y : (d = S, f = k);
565
+ }
566
+ var u = !1, d, f, c = t === void 0 ? null : t;
567
+ return [function() {
568
+ return l(e());
569
+ }, c === null ? void 0 : function() {
570
+ return l(c());
571
+ }];
572
+ }, [e, t, i, a]);
573
+ var o = Dn(n, s[0], s[1]);
574
+ return An(function() {
575
+ r.hasValue = !0, r.value = o;
576
+ }, [o]), Vn(o), o;
577
+ };
578
+ bt.exports = Ft;
579
+ var _n = bt.exports;
580
+ const Un = /* @__PURE__ */ Re(_n);
581
+ var xt = { 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 };
582
+ const { useDebugValue: Mn } = pe, { useSyncExternalStoreWithSelector: $n } = Un;
583
+ let ze = !1;
584
+ function jn(n, e = n.getState, t) {
585
+ (xt ? "production" : void 0) !== "production" && t && !ze && (console.warn(
586
+ "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
587
+ ), ze = !0);
588
+ const i = $n(
589
+ n.subscribe,
590
+ n.getState,
591
+ n.getServerState || n.getState,
592
+ e,
593
+ t
831
594
  );
595
+ return Mn(i), i;
832
596
  }
833
- class Xn {
597
+ const Be = (n) => {
598
+ (xt ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
599
+ "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
600
+ );
601
+ const e = typeof n == "function" ? Sn(n) : n, t = (i, a) => jn(e, i, a);
602
+ return Object.assign(t, e), t;
603
+ }, zn = (n) => n ? Be(n) : Be;
604
+ class Bn {
834
605
  constructor(e) {
835
- x(this, "channel");
836
- x(this, "listeners", /* @__PURE__ */ new Map());
837
- x(this, "eventQueue", /* @__PURE__ */ new Map());
606
+ R(this, "channel");
607
+ R(this, "listeners", /* @__PURE__ */ new Map());
608
+ R(this, "eventQueue", /* @__PURE__ */ new Map());
838
609
  try {
839
- this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => ee.error("NizzaBroadcastChannel:", t);
610
+ this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => X.error("NizzaBroadcastChannel:", t);
840
611
  } catch (t) {
841
- throw ee.error("Failed to create NizzaBroadcastChannel:", t), t;
612
+ throw X.error("Failed to create NizzaBroadcastChannel:", t), t;
842
613
  }
843
614
  }
844
615
  /**
@@ -899,7 +670,7 @@ class Xn {
899
670
  subscribeToEvent(e, t) {
900
671
  if (typeof e != "string" || typeof t != "function") {
901
672
  const i = new Error("Invalid arguments");
902
- throw ee.error(i), i;
673
+ throw X.error(i), i;
903
674
  }
904
675
  for (const [i, a] of this.listeners.entries())
905
676
  if (this.matchWildcard(i, e)) {
@@ -923,7 +694,7 @@ class Xn {
923
694
  emitEvent(e, t, i) {
924
695
  if (typeof e != "string") {
925
696
  const r = new Error("Invalid arguments");
926
- throw ee.error(r), r;
697
+ throw X.error(r), r;
927
698
  }
928
699
  const a = {
929
700
  name: e,
@@ -976,21 +747,21 @@ class Xn {
976
747
  return new RegExp(`^${i}$`).test(t);
977
748
  }
978
749
  }
979
- let Yn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
980
- const ei = (n = 8) => Yn(n), zs = (n) => {
750
+ let Qn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
751
+ const Gn = (n = 8) => Qn(n), Ls = (n) => {
981
752
  const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
982
753
  return e ? `?${e}` : "";
983
754
  };
984
- function Bs() {
755
+ function As() {
985
756
  const n = new Error().stack.split(`
986
757
  `);
987
758
  return n.length < 3 ? "" : n[2].trim().substring(3);
988
759
  }
989
- var zt = { exports: {} };
760
+ var Ot = { exports: {} };
990
761
  (function(n) {
991
762
  (function(e, t) {
992
763
  n.exports ? n.exports = t() : e.log = t();
993
- })(Ut, function() {
764
+ })(Nt, function() {
994
765
  var e = function() {
995
766
  }, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
996
767
  "trace",
@@ -999,15 +770,15 @@ var zt = { exports: {} };
999
770
  "warn",
1000
771
  "error"
1001
772
  ];
1002
- function s(k, y) {
1003
- var F = k[y];
1004
- if (typeof F.bind == "function")
1005
- return F.bind(k);
773
+ function s(k, N) {
774
+ var O = k[N];
775
+ if (typeof O.bind == "function")
776
+ return O.bind(k);
1006
777
  try {
1007
- return Function.prototype.bind.call(F, k);
778
+ return Function.prototype.bind.call(O, k);
1008
779
  } catch {
1009
780
  return function() {
1010
- return Function.prototype.apply.apply(F, [k, arguments]);
781
+ return Function.prototype.apply.apply(O, [k, arguments]);
1011
782
  };
1012
783
  }
1013
784
  }
@@ -1017,180 +788,179 @@ var zt = { exports: {} };
1017
788
  function o(k) {
1018
789
  return k === "debug" && (k = "log"), typeof console === t ? !1 : k === "trace" && i ? r : console[k] !== void 0 ? s(console, k) : console.log !== void 0 ? s(console, "log") : e;
1019
790
  }
1020
- function d(k, y) {
1021
- for (var F = 0; F < a.length; F++) {
1022
- var w = a[F];
1023
- this[w] = F < k ? e : this.methodFactory(w, k, y);
791
+ function l(k, N) {
792
+ for (var O = 0; O < a.length; O++) {
793
+ var F = a[O];
794
+ this[F] = O < k ? e : this.methodFactory(F, k, N);
1024
795
  }
1025
796
  this.log = this.debug;
1026
797
  }
1027
- function l(k, y, F) {
798
+ function u(k, N, O) {
1028
799
  return function() {
1029
- typeof console !== t && (d.call(this, y, F), this[k].apply(this, arguments));
800
+ typeof console !== t && (l.call(this, N, O), this[k].apply(this, arguments));
1030
801
  };
1031
802
  }
1032
- function u(k, y, F) {
1033
- return o(k) || l.apply(this, arguments);
1034
- }
1035
- function p(k, y, F) {
1036
- var w = this, L;
1037
- y = y == null ? "WARN" : y;
1038
- var E = "loglevel";
1039
- typeof k == "string" ? E += ":" + k : typeof k == "symbol" && (E = void 0);
1040
- function I(m) {
1041
- var g = (a[m] || "silent").toUpperCase();
1042
- if (!(typeof window === t || !E)) {
803
+ function d(k, N, O) {
804
+ return o(k) || u.apply(this, arguments);
805
+ }
806
+ function f(k, N, O) {
807
+ var F = this, I;
808
+ N = N == null ? "WARN" : N;
809
+ var w = "loglevel";
810
+ typeof k == "string" ? w += ":" + k : typeof k == "symbol" && (w = void 0);
811
+ function D(p) {
812
+ var h = (a[p] || "silent").toUpperCase();
813
+ if (!(typeof window === t || !w)) {
1043
814
  try {
1044
- window.localStorage[E] = g;
815
+ window.localStorage[w] = h;
1045
816
  return;
1046
817
  } catch {
1047
818
  }
1048
819
  try {
1049
- window.document.cookie = encodeURIComponent(E) + "=" + g + ";";
820
+ window.document.cookie = encodeURIComponent(w) + "=" + h + ";";
1050
821
  } catch {
1051
822
  }
1052
823
  }
1053
824
  }
1054
- function P() {
1055
- var m;
1056
- if (!(typeof window === t || !E)) {
825
+ function L() {
826
+ var p;
827
+ if (!(typeof window === t || !w)) {
1057
828
  try {
1058
- m = window.localStorage[E];
829
+ p = window.localStorage[w];
1059
830
  } catch {
1060
831
  }
1061
- if (typeof m === t)
832
+ if (typeof p === t)
1062
833
  try {
1063
- var g = window.document.cookie, h = g.indexOf(
1064
- encodeURIComponent(E) + "="
834
+ var h = window.document.cookie, g = h.indexOf(
835
+ encodeURIComponent(w) + "="
1065
836
  );
1066
- h !== -1 && (m = /^([^;]+)/.exec(g.slice(h))[1]);
837
+ g !== -1 && (p = /^([^;]+)/.exec(h.slice(g))[1]);
1067
838
  } catch {
1068
839
  }
1069
- return w.levels[m] === void 0 && (m = void 0), m;
840
+ return F.levels[p] === void 0 && (p = void 0), p;
1070
841
  }
1071
842
  }
1072
843
  function A() {
1073
- if (!(typeof window === t || !E)) {
844
+ if (!(typeof window === t || !w)) {
1074
845
  try {
1075
- window.localStorage.removeItem(E);
846
+ window.localStorage.removeItem(w);
1076
847
  return;
1077
848
  } catch {
1078
849
  }
1079
850
  try {
1080
- window.document.cookie = encodeURIComponent(E) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
851
+ window.document.cookie = encodeURIComponent(w) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
1081
852
  } catch {
1082
853
  }
1083
854
  }
1084
855
  }
1085
- w.name = k, w.levels = {
856
+ F.name = k, F.levels = {
1086
857
  TRACE: 0,
1087
858
  DEBUG: 1,
1088
859
  INFO: 2,
1089
860
  WARN: 3,
1090
861
  ERROR: 4,
1091
862
  SILENT: 5
1092
- }, w.methodFactory = F || u, w.getLevel = function() {
1093
- return L;
1094
- }, w.setLevel = function(m, g) {
1095
- if (typeof m == "string" && w.levels[m.toUpperCase()] !== void 0 && (m = w.levels[m.toUpperCase()]), typeof m == "number" && m >= 0 && m <= w.levels.SILENT) {
1096
- if (L = m, g !== !1 && I(m), d.call(w, m, k), typeof console === t && m < w.levels.SILENT)
863
+ }, F.methodFactory = O || d, F.getLevel = function() {
864
+ return I;
865
+ }, F.setLevel = function(p, h) {
866
+ if (typeof p == "string" && F.levels[p.toUpperCase()] !== void 0 && (p = F.levels[p.toUpperCase()]), typeof p == "number" && p >= 0 && p <= F.levels.SILENT) {
867
+ if (I = p, h !== !1 && D(p), l.call(F, p, k), typeof console === t && p < F.levels.SILENT)
1097
868
  return "No console available for logging";
1098
869
  } else
1099
- throw "log.setLevel() called with invalid level: " + m;
1100
- }, w.setDefaultLevel = function(m) {
1101
- y = m, P() || w.setLevel(m, !1);
1102
- }, w.resetLevel = function() {
1103
- w.setLevel(y, !1), A();
1104
- }, w.enableAll = function(m) {
1105
- w.setLevel(w.levels.TRACE, m);
1106
- }, w.disableAll = function(m) {
1107
- w.setLevel(w.levels.SILENT, m);
870
+ throw "log.setLevel() called with invalid level: " + p;
871
+ }, F.setDefaultLevel = function(p) {
872
+ N = p, L() || F.setLevel(p, !1);
873
+ }, F.resetLevel = function() {
874
+ F.setLevel(N, !1), A();
875
+ }, F.enableAll = function(p) {
876
+ F.setLevel(F.levels.TRACE, p);
877
+ }, F.disableAll = function(p) {
878
+ F.setLevel(F.levels.SILENT, p);
1108
879
  };
1109
- var f = P();
1110
- f == null && (f = y), w.setLevel(f, !1);
880
+ var m = L();
881
+ m == null && (m = N), F.setLevel(m, !1);
1111
882
  }
1112
- var c = new p(), v = {};
1113
- c.getLogger = function(y) {
1114
- if (typeof y != "symbol" && typeof y != "string" || y === "")
883
+ var c = new f(), S = {};
884
+ c.getLogger = function(N) {
885
+ if (typeof N != "symbol" && typeof N != "string" || N === "")
1115
886
  throw new TypeError("You must supply a name when creating a logger.");
1116
- var F = v[y];
1117
- return F || (F = v[y] = new p(
1118
- y,
887
+ var O = S[N];
888
+ return O || (O = S[N] = new f(
889
+ N,
1119
890
  c.getLevel(),
1120
891
  c.methodFactory
1121
- )), F;
892
+ )), O;
1122
893
  };
1123
- var S = typeof window !== t ? window.log : void 0;
894
+ var y = typeof window !== t ? window.log : void 0;
1124
895
  return c.noConflict = function() {
1125
- return typeof window !== t && window.log === c && (window.log = S), c;
896
+ return typeof window !== t && window.log === c && (window.log = y), c;
1126
897
  }, c.getLoggers = function() {
1127
- return v;
898
+ return S;
1128
899
  }, c.default = c, c;
1129
900
  });
1130
- })(zt);
1131
- var Bt = zt.exports;
1132
- const oe = /* @__PURE__ */ Me(Bt);
1133
- var Qt = { exports: {} };
901
+ })(Ot);
902
+ var Rt = Ot.exports;
903
+ const ae = /* @__PURE__ */ Re(Rt);
904
+ var Tt = { exports: {} };
1134
905
  (function(n) {
1135
906
  (function(e, t) {
1136
907
  n.exports ? n.exports = t() : e.prefix = t(e);
1137
- })(Ut, function(e) {
1138
- var t = function(u) {
1139
- for (var p = 1, c = arguments.length, v; p < c; p++)
1140
- for (v in arguments[p])
1141
- Object.prototype.hasOwnProperty.call(arguments[p], v) && (u[v] = arguments[p][v]);
1142
- return u;
908
+ })(Nt, function(e) {
909
+ var t = function(d) {
910
+ for (var f = 1, c = arguments.length, S; f < c; f++)
911
+ for (S in arguments[f])
912
+ Object.prototype.hasOwnProperty.call(arguments[f], S) && (d[S] = arguments[f][S]);
913
+ return d;
1143
914
  }, i = {
1144
915
  template: "[%t] %l:",
1145
- levelFormatter: function(u) {
1146
- return u.toUpperCase();
916
+ levelFormatter: function(d) {
917
+ return d.toUpperCase();
1147
918
  },
1148
- nameFormatter: function(u) {
1149
- return u || "root";
919
+ nameFormatter: function(d) {
920
+ return d || "root";
1150
921
  },
1151
- timestampFormatter: function(u) {
1152
- return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
922
+ timestampFormatter: function(d) {
923
+ return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
1153
924
  },
1154
925
  format: void 0
1155
- }, a, s = {}, r = function(u) {
1156
- if (!u || !u.getLogger)
926
+ }, a, s = {}, r = function(d) {
927
+ if (!d || !d.getLogger)
1157
928
  throw new TypeError("Argument is not a root logger");
1158
- a = u;
1159
- }, o = function(u, p) {
1160
- if (!u || !u.setLevel)
929
+ a = d;
930
+ }, o = function(d, f) {
931
+ if (!d || !d.setLevel)
1161
932
  throw new TypeError("Argument is not a logger");
1162
- var c = u.methodFactory, v = u.name || "", S = s[v] || s[""] || i;
1163
- function k(y, F, w) {
1164
- var L = c(y, F, w), E = s[w] || s[""], I = E.template.indexOf("%t") !== -1, P = E.template.indexOf("%l") !== -1, A = E.template.indexOf("%n") !== -1;
933
+ var c = d.methodFactory, S = d.name || "", y = s[S] || s[""] || i;
934
+ function k(N, O, F) {
935
+ var I = c(N, O, F), w = s[F] || s[""], D = w.template.indexOf("%t") !== -1, L = w.template.indexOf("%l") !== -1, A = w.template.indexOf("%n") !== -1;
1165
936
  return function() {
1166
- for (var f = "", m = arguments.length, g = Array(m), h = 0; h < m; h++)
1167
- g[h] = arguments[h];
1168
- if (v || !s[w]) {
1169
- var N = E.timestampFormatter(/* @__PURE__ */ new Date()), C = E.levelFormatter(y), b = E.nameFormatter(w);
1170
- E.format ? f += E.format(C, b, N) : (f += E.template, I && (f = f.replace(/%t/, N)), P && (f = f.replace(/%l/, C)), A && (f = f.replace(/%n/, b))), g.length && typeof g[0] == "string" ? g[0] = f + " " + g[0] : g.unshift(f);
937
+ for (var m = "", p = arguments.length, h = Array(p), g = 0; g < p; g++)
938
+ h[g] = arguments[g];
939
+ if (S || !s[F]) {
940
+ var b = w.timestampFormatter(/* @__PURE__ */ new Date()), C = w.levelFormatter(N), v = w.nameFormatter(F);
941
+ w.format ? m += w.format(C, v, b) : (m += w.template, D && (m = m.replace(/%t/, b)), L && (m = m.replace(/%l/, C)), A && (m = m.replace(/%n/, v))), h.length && typeof h[0] == "string" ? h[0] = m + " " + h[0] : h.unshift(m);
1171
942
  }
1172
- L.apply(void 0, g);
943
+ I.apply(void 0, h);
1173
944
  };
1174
945
  }
1175
- return s[v] || (u.methodFactory = k), p = p || {}, p.template && (p.format = void 0), s[v] = t({}, S, p), u.setLevel(u.getLevel()), a || u.warn(
946
+ return s[S] || (d.methodFactory = k), f = f || {}, f.template && (f.format = void 0), s[S] = t({}, y, f), d.setLevel(d.getLevel()), a || d.warn(
1176
947
  "It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"
1177
- ), u;
1178
- }, d = {
948
+ ), d;
949
+ }, l = {
1179
950
  reg: r,
1180
951
  apply: o
1181
- }, l;
1182
- return e && (l = e.prefix, d.noConflict = function() {
1183
- return e.prefix === d && (e.prefix = l), d;
1184
- }), d;
952
+ }, u;
953
+ return e && (u = e.prefix, l.noConflict = function() {
954
+ return e.prefix === l && (e.prefix = u), l;
955
+ }), l;
1185
956
  });
1186
- })(Qt);
1187
- var ti = Qt.exports;
1188
- const et = /* @__PURE__ */ Me(ti);
1189
- let ni = class {
957
+ })(Tt);
958
+ var Kn = Tt.exports;
959
+ const Qe = /* @__PURE__ */ Re(Kn), K = class K {
1190
960
  constructor(e) {
1191
- x(this, "defaultLevel", Bt.levels.INFO);
1192
- x(this, "namePrefix");
1193
- this.namePrefix = e ? `${e}-` : "", oe.setDefaultLevel(this.defaultLevel), et.reg(oe), et.apply(oe, {
961
+ R(this, "defaultLevel", Rt.levels.INFO);
962
+ R(this, "namePrefix");
963
+ this.namePrefix = e ? `${e}-` : "", ae.setDefaultLevel(this.defaultLevel), Qe.reg(ae), Qe.apply(ae, {
1194
964
  template: "[%t] %l (%n)",
1195
965
  nameFormatter: (t) => {
1196
966
  var i;
@@ -1199,117 +969,120 @@ let ni = class {
1199
969
  timestampFormatter: () => (/* @__PURE__ */ new Date()).toTimeString().slice(0, 8)
1200
970
  });
1201
971
  }
972
+ static create(e) {
973
+ return window != null && window.nzlog || (K.instance = new K(e), window.nzlog = K.instance), window.nzlog;
974
+ }
1202
975
  createLogger(e) {
1203
- const t = this.namePrefix + e.toLowerCase(), i = oe.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
976
+ const t = this.namePrefix + e.toLowerCase(), i = ae.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
1204
977
  return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
1205
978
  }
1206
979
  };
1207
- const z = Pn({
1208
- config: null,
1209
- get accountName() {
1210
- var n;
1211
- return (n = this.config) == null ? void 0 : n.account;
1212
- },
1213
- get ok() {
1214
- return !!this.account;
1215
- }
1216
- }), ii = async (n) => {
1217
- var e;
980
+ R(K, "instance");
981
+ let Fe = K;
982
+ const Te = Fe.create("nz"), Ps = Te.createLogger("main"), X = Te.createLogger("core");
983
+ let j, It;
984
+ function Vs() {
985
+ return j = Wn(), It = j.store, j;
986
+ }
987
+ function Wn() {
988
+ if (!window.nizza) {
989
+ const n = Jn();
990
+ window.nizza = n, window.nz = n;
991
+ }
992
+ return window.nizza;
993
+ }
994
+ function Jn() {
995
+ const n = zn(() => ({
996
+ config: null
997
+ }));
998
+ return {
999
+ version: "1.0.4",
1000
+ log: Te,
1001
+ store: n,
1002
+ configure: qn,
1003
+ setProductDataSource: Hn,
1004
+ instanceId: Gn(),
1005
+ eventBus: new Bn("nizza"),
1006
+ get state() {
1007
+ return n.getState();
1008
+ }
1009
+ };
1010
+ }
1011
+ async function qn(n) {
1218
1012
  try {
1219
- if (z.config = n, ((e = z.account) == null ? void 0 : e.account) !== n.account) {
1220
- const t = await ca(n.account);
1221
- z.account = t;
1013
+ const e = j.store.getState().account;
1014
+ if (j.store.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
1015
+ const t = await na(n.account);
1016
+ j.store.setState({ account: t });
1222
1017
  }
1223
1018
  if (n.getProductDataSource) {
1224
1019
  const t = await n.getProductDataSource();
1225
- z.productDataSource = _t(t);
1226
- }
1227
- } catch (t) {
1228
- console.error("Error configuring NizzaStore:", t);
1229
- }
1230
- }, ai = (n) => {
1231
- z.productDataSource = _t(n);
1232
- }, tt = () => ({
1233
- version: "0.1.0",
1234
- state: z,
1235
- configure: ii,
1236
- setProductDataSource: ai,
1237
- instanceId: ei(),
1238
- log: new ni("nz"),
1239
- eventBus: new Xn("nizza"),
1240
- get account() {
1241
- return z.account;
1242
- },
1243
- get productDataSource() {
1244
- return z.productDataSource;
1245
- }
1246
- }), si = () => {
1247
- if (typeof window != "undefined") {
1248
- if (!window.nizza) {
1249
- const n = tt();
1250
- window.nizza = n, window.nz = n;
1020
+ j.store.setState({ productDataSource: t });
1251
1021
  }
1252
- return window.nizza;
1022
+ } catch (e) {
1023
+ console.error("Error configuring NizzaStore:", e);
1253
1024
  }
1254
- return tt();
1255
- }, je = si(), Ks = je.log.createLogger("main"), ee = je.log.createLogger("core");
1025
+ }
1026
+ function Hn(n) {
1027
+ j.store.setState({ productDataSource: n });
1028
+ }
1256
1029
  function G(n) {
1257
1030
  return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1258
1031
  }
1259
- function de(n) {
1032
+ function re(n) {
1260
1033
  return function e(t) {
1261
1034
  return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1262
1035
  };
1263
1036
  }
1264
- function $e(n) {
1037
+ function Ie(n) {
1265
1038
  return function e(t, i) {
1266
1039
  switch (arguments.length) {
1267
1040
  case 0:
1268
1041
  return e;
1269
1042
  case 1:
1270
- return G(t) ? e : de(function(a) {
1043
+ return G(t) ? e : re(function(a) {
1271
1044
  return n(t, a);
1272
1045
  });
1273
1046
  default:
1274
- return G(t) && G(i) ? e : G(t) ? de(function(a) {
1047
+ return G(t) && G(i) ? e : G(t) ? re(function(a) {
1275
1048
  return n(a, i);
1276
- }) : G(i) ? de(function(a) {
1049
+ }) : G(i) ? re(function(a) {
1277
1050
  return n(t, a);
1278
1051
  }) : n(t, i);
1279
1052
  }
1280
1053
  };
1281
1054
  }
1282
- const ri = Number.isInteger || function(e) {
1055
+ const Zn = Number.isInteger || function(e) {
1283
1056
  return e << 0 === e;
1284
1057
  };
1285
- function oi(n) {
1058
+ function Xn(n) {
1286
1059
  return Object.prototype.toString.call(n) === "[object String]";
1287
1060
  }
1288
- var li = /* @__PURE__ */ $e(function(e, t) {
1061
+ var Yn = /* @__PURE__ */ Ie(function(e, t) {
1289
1062
  var i = e < 0 ? t.length + e : e;
1290
- return oi(t) ? t.charAt(i) : t[i];
1063
+ return Xn(t) ? t.charAt(i) : t[i];
1291
1064
  });
1292
- const di = li;
1293
- var ui = /* @__PURE__ */ de(function(e) {
1065
+ const ei = Yn;
1066
+ var ti = /* @__PURE__ */ re(function(e) {
1294
1067
  return e == null;
1295
1068
  });
1296
- const ci = ui;
1297
- var mi = /* @__PURE__ */ $e(function(e, t) {
1069
+ const ni = ti;
1070
+ var ii = /* @__PURE__ */ Ie(function(e, t) {
1298
1071
  return e.map(function(i) {
1299
1072
  for (var a = t, s = 0, r; s < i.length; ) {
1300
1073
  if (a == null)
1301
1074
  return;
1302
- r = i[s], a = ri(r) ? di(r, a) : a[r], s += 1;
1075
+ r = i[s], a = Zn(r) ? ei(r, a) : a[r], s += 1;
1303
1076
  }
1304
1077
  return a;
1305
1078
  });
1306
1079
  });
1307
- const fi = mi;
1308
- var pi = /* @__PURE__ */ $e(function(e, t) {
1309
- return fi([e], t)[0];
1080
+ const ai = ii;
1081
+ var si = /* @__PURE__ */ Ie(function(e, t) {
1082
+ return ai([e], t)[0];
1310
1083
  });
1311
- const hi = pi;
1312
- class ye extends Error {
1084
+ const ri = si;
1085
+ class ge extends Error {
1313
1086
  constructor(e, t, i) {
1314
1087
  super(t), this.value = i, this.name = e;
1315
1088
  }
@@ -1321,7 +1094,7 @@ class ye extends Error {
1321
1094
  };
1322
1095
  }
1323
1096
  }
1324
- class gi extends ye {
1097
+ class oi extends ge {
1325
1098
  constructor(e) {
1326
1099
  super(
1327
1100
  "RESOURCE_NOT_FOUND_ERROR",
@@ -1330,7 +1103,7 @@ class gi extends ye {
1330
1103
  );
1331
1104
  }
1332
1105
  }
1333
- class ki extends ye {
1106
+ class li extends ge {
1334
1107
  constructor(e) {
1335
1108
  var t;
1336
1109
  super(
@@ -1340,12 +1113,12 @@ class ki extends ye {
1340
1113
  );
1341
1114
  }
1342
1115
  }
1343
- class Gs extends ye {
1116
+ class _s extends ge {
1344
1117
  constructor() {
1345
1118
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
1346
1119
  }
1347
1120
  }
1348
- class vi extends ye {
1121
+ class di extends ge {
1349
1122
  constructor(e) {
1350
1123
  super(
1351
1124
  "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
@@ -1373,28 +1146,28 @@ class vi extends ye {
1373
1146
  );
1374
1147
  }
1375
1148
  }
1376
- function Ws(n, e) {
1149
+ function Us(n, e) {
1377
1150
  e.forEach((t) => {
1378
- if (ci(hi(t.split("."), n)))
1379
- throw new vi(t);
1151
+ if (ni(ri(t.split("."), n)))
1152
+ throw new di(t);
1380
1153
  });
1381
1154
  }
1382
- function Js() {
1155
+ function Ms() {
1383
1156
  var i, a, s;
1384
1157
  let n = null, e = null, t = null;
1385
1158
  try {
1386
1159
  n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
1387
1160
  const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
1388
1161
  t = r;
1389
- const o = r >= 0 ? "+" : "-", d = String(
1162
+ const o = r >= 0 ? "+" : "-", l = String(
1390
1163
  Math.floor(Math.abs(r) / 60)
1391
- ).padStart(2, "0"), l = String(Math.abs(r) % 60).padStart(
1164
+ ).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
1392
1165
  2,
1393
1166
  "0"
1394
1167
  );
1395
- e = `${o}${d}:${l}`;
1168
+ e = `${o}${l}:${u}`;
1396
1169
  } catch {
1397
- ee.error("Error obtaining time zone or offset");
1170
+ X.error("Error obtaining time zone or offset");
1398
1171
  }
1399
1172
  return {
1400
1173
  offset: e,
@@ -1405,10 +1178,10 @@ function Js() {
1405
1178
  label: null
1406
1179
  };
1407
1180
  }
1408
- class Si {
1181
+ class ui {
1409
1182
  constructor(e) {
1410
- x(this, "aggregate");
1411
- x(this, "_numSetPropsApplied", 0);
1183
+ R(this, "aggregate");
1184
+ R(this, "_numSetPropsApplied", 0);
1412
1185
  this.aggregate = e;
1413
1186
  }
1414
1187
  setProps(e) {
@@ -1420,48 +1193,48 @@ class Si {
1420
1193
  return this._numSetPropsApplied === 1;
1421
1194
  }
1422
1195
  }
1423
- function yi(n) {
1424
- return new Si(n);
1196
+ function ci(n) {
1197
+ return new ui(n);
1425
1198
  }
1426
- class qs {
1199
+ class $s {
1427
1200
  }
1428
- class Hs {
1201
+ class js {
1429
1202
  constructor(e) {
1430
- x(this, "_value");
1203
+ R(this, "_value");
1431
1204
  e !== void 0 && (this._value = e);
1432
1205
  }
1433
1206
  get value() {
1434
1207
  return this._value;
1435
1208
  }
1436
1209
  }
1437
- var Kt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Kt || {}), Ni = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(Ni || {}), Gt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Gt || {}), bi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(bi || {}), Fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(Fi || {}), wi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(wi || {});
1438
- class ze {
1210
+ var Dt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Dt || {}), mi = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(mi || {}), Lt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Lt || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(pi || {}), hi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(hi || {});
1211
+ class De {
1439
1212
  constructor(e) {
1440
- x(this, "root", yi(this));
1441
- x(this, "id");
1442
- x(this, "account");
1443
- x(this, "accountType", Kt.UNKNOWN);
1444
- x(this, "username");
1445
- x(this, "currencyConfig");
1446
- x(this, "contractType");
1447
- x(this, "nextDateMetricRecord");
1448
- x(this, "spendedMinutes", 0);
1449
- x(this, "unlimitedService", !1);
1450
- x(this, "hoursAvailable", 0);
1451
- x(this, "contractStatus", Gt.ACTIVE);
1452
- x(this, "createdAt");
1453
- x(this, "installationDateApp");
1454
- x(this, "cxAccount");
1455
- x(this, "freeService", !1);
1456
- x(this, "subscriptionType", null);
1457
- x(this, "minutesAvailable", 0);
1458
- x(this, "globalPage");
1459
- x(this, "stripe");
1460
- x(this, "descriptionPlan");
1461
- x(this, "planType");
1462
- x(this, "selectFreeTrial");
1463
- x(this, "exceededFeatures");
1464
- x(this, "host", null);
1213
+ R(this, "root", ci(this));
1214
+ R(this, "id");
1215
+ R(this, "account");
1216
+ R(this, "accountType", Dt.UNKNOWN);
1217
+ R(this, "username");
1218
+ R(this, "currencyConfig");
1219
+ R(this, "contractType");
1220
+ R(this, "nextDateMetricRecord");
1221
+ R(this, "spendedMinutes", 0);
1222
+ R(this, "unlimitedService", !1);
1223
+ R(this, "hoursAvailable", 0);
1224
+ R(this, "contractStatus", Lt.ACTIVE);
1225
+ R(this, "createdAt");
1226
+ R(this, "installationDateApp");
1227
+ R(this, "cxAccount");
1228
+ R(this, "freeService", !1);
1229
+ R(this, "subscriptionType", null);
1230
+ R(this, "minutesAvailable", 0);
1231
+ R(this, "globalPage");
1232
+ R(this, "stripe");
1233
+ R(this, "descriptionPlan");
1234
+ R(this, "planType");
1235
+ R(this, "selectFreeTrial");
1236
+ R(this, "exceededFeatures");
1237
+ R(this, "host", null);
1465
1238
  this.root.setProps(e);
1466
1239
  }
1467
1240
  static toDomain(e) {
@@ -1470,7 +1243,7 @@ class ze {
1470
1243
  username: i != null ? i : a.account,
1471
1244
  createdAt: new Date(Number(t))
1472
1245
  };
1473
- return new ze(s);
1246
+ return new De(s);
1474
1247
  }
1475
1248
  toPrimitives() {
1476
1249
  const { root: e, createdAt: t, ...i } = this;
@@ -1480,16 +1253,16 @@ class ze {
1480
1253
  };
1481
1254
  }
1482
1255
  }
1483
- const Ci = `${En.apiUrls.restV1}/accounts/v2`;
1484
- class Ei {
1256
+ const gi = `${gn.apiUrls.restV1}/accounts/v2`;
1257
+ class ki {
1485
1258
  async get(e) {
1486
- const t = `${Ci}/${e}`, { data: i } = await It({
1259
+ const t = `${gi}/${e}`, { data: i } = await yt({
1487
1260
  url: t
1488
1261
  });
1489
- return i ? ze.toDomain(i) : null;
1262
+ return i ? De.toDomain(i) : null;
1490
1263
  }
1491
1264
  }
1492
- class Oi {
1265
+ class vi {
1493
1266
  constructor(e) {
1494
1267
  this.accountRepository = e;
1495
1268
  }
@@ -1497,15 +1270,15 @@ class Oi {
1497
1270
  try {
1498
1271
  const t = await this.accountRepository.get(e);
1499
1272
  if (!t)
1500
- throw new gi(e);
1273
+ throw new oi(e);
1501
1274
  return t;
1502
1275
  } catch (t) {
1503
- throw new ki(t);
1276
+ throw new li(t);
1504
1277
  }
1505
1278
  }
1506
1279
  }
1507
- const Ri = new Ei(), Wt = new Oi(Ri);
1508
- class Be {
1280
+ const Si = new ki(), At = new vi(Si);
1281
+ class Le {
1509
1282
  constructor() {
1510
1283
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1511
1284
  }
@@ -1525,17 +1298,17 @@ class Be {
1525
1298
  onUnsubscribe() {
1526
1299
  }
1527
1300
  }
1528
- const fe = typeof window == "undefined" || "Deno" in window;
1529
- function xi() {
1301
+ const le = typeof window == "undefined" || "Deno" in window;
1302
+ function yi() {
1530
1303
  }
1531
- function nt(n) {
1304
+ function Ge(n) {
1532
1305
  return typeof n == "number" && n >= 0 && n !== 1 / 0;
1533
1306
  }
1534
- function Ti(n, e) {
1307
+ function Ni(n, e) {
1535
1308
  return Math.max(n + (e || 0) - Date.now(), 0);
1536
1309
  }
1537
- function Di(n, e, t) {
1538
- return Li(n) ? typeof e == "function" ? {
1310
+ function bi(n, e, t) {
1311
+ return Fi(n) ? typeof e == "function" ? {
1539
1312
  ...t,
1540
1313
  queryKey: n,
1541
1314
  queryFn: e
@@ -1544,22 +1317,22 @@ function Di(n, e, t) {
1544
1317
  queryKey: n
1545
1318
  } : n;
1546
1319
  }
1547
- function Jt(n, e) {
1320
+ function Pt(n, e) {
1548
1321
  if (n === e)
1549
1322
  return n;
1550
- const t = it(n) && it(e);
1551
- if (t || at(n) && at(e)) {
1323
+ const t = Ke(n) && Ke(e);
1324
+ if (t || We(n) && We(e)) {
1552
1325
  const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
1553
1326
  let o = 0;
1554
- for (let d = 0; d < s; d++) {
1555
- const l = t ? d : a[d];
1556
- r[l] = Jt(n[l], e[l]), r[l] === n[l] && o++;
1327
+ for (let l = 0; l < s; l++) {
1328
+ const u = t ? l : a[l];
1329
+ r[u] = Pt(n[u], e[u]), r[u] === n[u] && o++;
1557
1330
  }
1558
1331
  return i === s && o === i ? n : r;
1559
1332
  }
1560
1333
  return e;
1561
1334
  }
1562
- function De(n, e) {
1335
+ function we(n, e) {
1563
1336
  if (n && !e || e && !n)
1564
1337
  return !1;
1565
1338
  for (const t in n)
@@ -1567,39 +1340,39 @@ function De(n, e) {
1567
1340
  return !1;
1568
1341
  return !0;
1569
1342
  }
1570
- function it(n) {
1343
+ function Ke(n) {
1571
1344
  return Array.isArray(n) && n.length === Object.keys(n).length;
1572
1345
  }
1573
- function at(n) {
1574
- if (!st(n))
1346
+ function We(n) {
1347
+ if (!Je(n))
1575
1348
  return !1;
1576
1349
  const e = n.constructor;
1577
1350
  if (typeof e == "undefined")
1578
1351
  return !0;
1579
1352
  const t = e.prototype;
1580
- return !(!st(t) || !t.hasOwnProperty("isPrototypeOf"));
1353
+ return !(!Je(t) || !t.hasOwnProperty("isPrototypeOf"));
1581
1354
  }
1582
- function st(n) {
1355
+ function Je(n) {
1583
1356
  return Object.prototype.toString.call(n) === "[object Object]";
1584
1357
  }
1585
- function Li(n) {
1358
+ function Fi(n) {
1586
1359
  return Array.isArray(n);
1587
1360
  }
1588
- function Ii(n) {
1361
+ function wi(n) {
1589
1362
  return new Promise((e) => {
1590
1363
  setTimeout(e, n);
1591
1364
  });
1592
1365
  }
1593
- function rt(n) {
1594
- Ii(0).then(n);
1366
+ function qe(n) {
1367
+ wi(0).then(n);
1595
1368
  }
1596
- function ot(n, e, t) {
1597
- return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Jt(n, e) : e;
1369
+ function He(n, e, t) {
1370
+ return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Pt(n, e) : e;
1598
1371
  }
1599
- class Ai extends Be {
1372
+ class Ci extends Le {
1600
1373
  constructor() {
1601
1374
  super(), this.setup = (e) => {
1602
- if (!fe && window.addEventListener) {
1375
+ if (!le && window.addEventListener) {
1603
1376
  const t = () => e();
1604
1377
  return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
1605
1378
  window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
@@ -1636,16 +1409,16 @@ class Ai extends Be {
1636
1409
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
1637
1410
  }
1638
1411
  }
1639
- const Pi = new Ai(), lt = ["online", "offline"];
1640
- class Vi extends Be {
1412
+ const Ei = new Ci(), Ze = ["online", "offline"];
1413
+ class xi extends Le {
1641
1414
  constructor() {
1642
1415
  super(), this.setup = (e) => {
1643
- if (!fe && window.addEventListener) {
1416
+ if (!le && window.addEventListener) {
1644
1417
  const t = () => e();
1645
- return lt.forEach((i) => {
1418
+ return Ze.forEach((i) => {
1646
1419
  window.addEventListener(i, t, !1);
1647
1420
  }), () => {
1648
- lt.forEach((i) => {
1421
+ Ze.forEach((i) => {
1649
1422
  window.removeEventListener(i, t);
1650
1423
  });
1651
1424
  };
@@ -1681,47 +1454,47 @@ class Vi extends Be {
1681
1454
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
1682
1455
  }
1683
1456
  }
1684
- const _i = new Vi();
1685
- function Ui(n) {
1686
- return (n != null ? n : "online") === "online" ? _i.isOnline() : !0;
1457
+ const Oi = new xi();
1458
+ function Ri(n) {
1459
+ return (n != null ? n : "online") === "online" ? Oi.isOnline() : !0;
1687
1460
  }
1688
- class Mi {
1461
+ class Ti {
1689
1462
  constructor(e) {
1690
1463
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1691
1464
  }
1692
1465
  }
1693
- function ji(n) {
1694
- return n instanceof Mi;
1466
+ function Ii(n) {
1467
+ return n instanceof Ti;
1695
1468
  }
1696
- function $i() {
1697
- let n = [], e = 0, t = (u) => {
1698
- u();
1699
- }, i = (u) => {
1700
- u();
1469
+ function Di() {
1470
+ let n = [], e = 0, t = (d) => {
1471
+ d();
1472
+ }, i = (d) => {
1473
+ d();
1701
1474
  };
1702
- const a = (u) => {
1703
- let p;
1475
+ const a = (d) => {
1476
+ let f;
1704
1477
  e++;
1705
1478
  try {
1706
- p = u();
1479
+ f = d();
1707
1480
  } finally {
1708
1481
  e--, e || o();
1709
1482
  }
1710
- return p;
1711
- }, s = (u) => {
1712
- e ? n.push(u) : rt(() => {
1713
- t(u);
1483
+ return f;
1484
+ }, s = (d) => {
1485
+ e ? n.push(d) : qe(() => {
1486
+ t(d);
1714
1487
  });
1715
- }, r = (u) => (...p) => {
1488
+ }, r = (d) => (...f) => {
1716
1489
  s(() => {
1717
- u(...p);
1490
+ d(...f);
1718
1491
  });
1719
1492
  }, o = () => {
1720
- const u = n;
1721
- n = [], u.length && rt(() => {
1493
+ const d = n;
1494
+ n = [], d.length && qe(() => {
1722
1495
  i(() => {
1723
- u.forEach((p) => {
1724
- t(p);
1496
+ d.forEach((f) => {
1497
+ t(f);
1725
1498
  });
1726
1499
  });
1727
1500
  });
@@ -1730,16 +1503,16 @@ function $i() {
1730
1503
  batch: a,
1731
1504
  batchCalls: r,
1732
1505
  schedule: s,
1733
- setNotifyFunction: (u) => {
1734
- t = u;
1506
+ setNotifyFunction: (d) => {
1507
+ t = d;
1735
1508
  },
1736
- setBatchNotifyFunction: (u) => {
1737
- i = u;
1509
+ setBatchNotifyFunction: (d) => {
1510
+ i = d;
1738
1511
  }
1739
1512
  };
1740
1513
  }
1741
- const te = $i();
1742
- class zi extends Be {
1514
+ const Y = Di();
1515
+ class Li extends Le {
1743
1516
  constructor(e, t) {
1744
1517
  super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
1745
1518
  }
@@ -1747,23 +1520,23 @@ class zi extends Be {
1747
1520
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1748
1521
  }
1749
1522
  onSubscribe() {
1750
- this.listeners.size === 1 && (this.currentQuery.addObserver(this), dt(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1523
+ this.listeners.size === 1 && (this.currentQuery.addObserver(this), Xe(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1751
1524
  }
1752
1525
  onUnsubscribe() {
1753
1526
  this.hasListeners() || this.destroy();
1754
1527
  }
1755
1528
  shouldFetchOnReconnect() {
1756
- return Le(this.currentQuery, this.options, this.options.refetchOnReconnect);
1529
+ return Ce(this.currentQuery, this.options, this.options.refetchOnReconnect);
1757
1530
  }
1758
1531
  shouldFetchOnWindowFocus() {
1759
- return Le(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1532
+ return Ce(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1760
1533
  }
1761
1534
  destroy() {
1762
1535
  this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
1763
1536
  }
1764
1537
  setOptions(e, t) {
1765
1538
  const i = this.options, a = this.currentQuery;
1766
- if (this.options = this.client.defaultQueryOptions(e), De(i, this.options) || this.client.getQueryCache().notify({
1539
+ if (this.options = this.client.defaultQueryOptions(e), we(i, this.options) || this.client.getQueryCache().notify({
1767
1540
  type: "observerOptionsUpdated",
1768
1541
  query: this.currentQuery,
1769
1542
  observer: this
@@ -1771,13 +1544,13 @@ class zi extends Be {
1771
1544
  throw new Error("Expected enabled to be a boolean");
1772
1545
  this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
1773
1546
  const s = this.hasListeners();
1774
- s && ut(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
1547
+ s && Ye(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
1775
1548
  const r = this.computeRefetchInterval();
1776
1549
  s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
1777
1550
  }
1778
1551
  getOptimisticResult(e) {
1779
1552
  const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
1780
- return Qi(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1553
+ return Pi(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1781
1554
  }
1782
1555
  getCurrentResult() {
1783
1556
  return this.currentResult;
@@ -1823,12 +1596,12 @@ class zi extends Be {
1823
1596
  executeFetch(e) {
1824
1597
  this.updateQuery();
1825
1598
  let t = this.currentQuery.fetch(this.options, e);
1826
- return e != null && e.throwOnError || (t = t.catch(xi)), t;
1599
+ return e != null && e.throwOnError || (t = t.catch(yi)), t;
1827
1600
  }
1828
1601
  updateStaleTimeout() {
1829
- if (this.clearStaleTimeout(), fe || this.currentResult.isStale || !nt(this.options.staleTime))
1602
+ if (this.clearStaleTimeout(), le || this.currentResult.isStale || !Ge(this.options.staleTime))
1830
1603
  return;
1831
- const t = Ti(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1604
+ const t = Ni(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1832
1605
  this.staleTimeoutId = setTimeout(() => {
1833
1606
  this.currentResult.isStale || this.updateResult();
1834
1607
  }, t);
@@ -1838,8 +1611,8 @@ class zi extends Be {
1838
1611
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1839
1612
  }
1840
1613
  updateRefetchInterval(e) {
1841
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(fe || this.options.enabled === !1 || !nt(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1842
- (this.options.refetchIntervalInBackground || Pi.isFocused()) && this.executeFetch();
1614
+ this.clearRefetchInterval(), this.currentRefetchInterval = e, !(le || this.options.enabled === !1 || !Ge(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1615
+ (this.options.refetchIntervalInBackground || Ei.isFocused()) && this.executeFetch();
1843
1616
  }, this.currentRefetchInterval));
1844
1617
  }
1845
1618
  updateTimers() {
@@ -1852,78 +1625,78 @@ class zi extends Be {
1852
1625
  this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
1853
1626
  }
1854
1627
  createResult(e, t) {
1855
- const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, d = e !== i, l = d ? e.state : this.currentQueryInitialState, u = d ? this.currentResult : this.previousQueryResult, {
1856
- state: p
1628
+ const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, l = e !== i, u = l ? e.state : this.currentQueryInitialState, d = l ? this.currentResult : this.previousQueryResult, {
1629
+ state: f
1857
1630
  } = e;
1858
1631
  let {
1859
1632
  dataUpdatedAt: c,
1860
- error: v,
1861
- errorUpdatedAt: S,
1633
+ error: S,
1634
+ errorUpdatedAt: y,
1862
1635
  fetchStatus: k,
1863
- status: y
1864
- } = p, F = !1, w = !1, L;
1636
+ status: N
1637
+ } = f, O = !1, F = !1, I;
1865
1638
  if (t._optimisticResults) {
1866
- const f = this.hasListeners(), m = !f && dt(e, t), g = f && ut(e, i, t, a);
1867
- (m || g) && (k = Ui(e.options.networkMode) ? "fetching" : "paused", c || (y = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1868
- }
1869
- if (t.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess && y !== "error")
1870
- L = u.data, c = u.dataUpdatedAt, y = u.status, F = !0;
1871
- else if (t.select && typeof p.data != "undefined")
1872
- if (s && p.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1873
- L = this.selectResult;
1639
+ const m = this.hasListeners(), p = !m && Xe(e, t), h = m && Ye(e, i, t, a);
1640
+ (p || h) && (k = Ri(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1641
+ }
1642
+ if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
1643
+ I = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
1644
+ else if (t.select && typeof f.data != "undefined")
1645
+ if (s && f.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1646
+ I = this.selectResult;
1874
1647
  else
1875
1648
  try {
1876
- this.selectFn = t.select, L = t.select(p.data), L = ot(s == null ? void 0 : s.data, L, t), this.selectResult = L, this.selectError = null;
1877
- } catch (f) {
1878
- this.selectError = f;
1649
+ this.selectFn = t.select, I = t.select(f.data), I = He(s == null ? void 0 : s.data, I, t), this.selectResult = I, this.selectError = null;
1650
+ } catch (m) {
1651
+ this.selectError = m;
1879
1652
  }
1880
1653
  else
1881
- L = p.data;
1882
- if (typeof t.placeholderData != "undefined" && typeof L == "undefined" && y === "loading") {
1883
- let f;
1654
+ I = f.data;
1655
+ if (typeof t.placeholderData != "undefined" && typeof I == "undefined" && N === "loading") {
1656
+ let m;
1884
1657
  if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
1885
- f = s.data;
1886
- else if (f = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof f != "undefined")
1658
+ m = s.data;
1659
+ else if (m = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof m != "undefined")
1887
1660
  try {
1888
- f = t.select(f), this.selectError = null;
1889
- } catch (m) {
1890
- this.selectError = m;
1661
+ m = t.select(m), this.selectError = null;
1662
+ } catch (p) {
1663
+ this.selectError = p;
1891
1664
  }
1892
- typeof f != "undefined" && (y = "success", L = ot(s == null ? void 0 : s.data, f, t), w = !0);
1665
+ typeof m != "undefined" && (N = "success", I = He(s == null ? void 0 : s.data, m, t), F = !0);
1893
1666
  }
1894
- this.selectError && (v = this.selectError, L = this.selectResult, S = Date.now(), y = "error");
1895
- const E = k === "fetching", I = y === "loading", P = y === "error";
1667
+ this.selectError && (S = this.selectError, I = this.selectResult, y = Date.now(), N = "error");
1668
+ const w = k === "fetching", D = N === "loading", L = N === "error";
1896
1669
  return {
1897
- status: y,
1670
+ status: N,
1898
1671
  fetchStatus: k,
1899
- isLoading: I,
1900
- isSuccess: y === "success",
1901
- isError: P,
1902
- isInitialLoading: I && E,
1903
- data: L,
1672
+ isLoading: D,
1673
+ isSuccess: N === "success",
1674
+ isError: L,
1675
+ isInitialLoading: D && w,
1676
+ data: I,
1904
1677
  dataUpdatedAt: c,
1905
- error: v,
1906
- errorUpdatedAt: S,
1907
- failureCount: p.fetchFailureCount,
1908
- failureReason: p.fetchFailureReason,
1909
- errorUpdateCount: p.errorUpdateCount,
1910
- isFetched: p.dataUpdateCount > 0 || p.errorUpdateCount > 0,
1911
- isFetchedAfterMount: p.dataUpdateCount > l.dataUpdateCount || p.errorUpdateCount > l.errorUpdateCount,
1912
- isFetching: E,
1913
- isRefetching: E && !I,
1914
- isLoadingError: P && p.dataUpdatedAt === 0,
1678
+ error: S,
1679
+ errorUpdatedAt: y,
1680
+ failureCount: f.fetchFailureCount,
1681
+ failureReason: f.fetchFailureReason,
1682
+ errorUpdateCount: f.errorUpdateCount,
1683
+ isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
1684
+ isFetchedAfterMount: f.dataUpdateCount > u.dataUpdateCount || f.errorUpdateCount > u.errorUpdateCount,
1685
+ isFetching: w,
1686
+ isRefetching: w && !D,
1687
+ isLoadingError: L && f.dataUpdatedAt === 0,
1915
1688
  isPaused: k === "paused",
1916
- isPlaceholderData: w,
1917
- isPreviousData: F,
1918
- isRefetchError: P && p.dataUpdatedAt !== 0,
1919
- isStale: Qe(e, t),
1689
+ isPlaceholderData: F,
1690
+ isPreviousData: O,
1691
+ isRefetchError: L && f.dataUpdatedAt !== 0,
1692
+ isStale: Ae(e, t),
1920
1693
  refetch: this.refetch,
1921
1694
  remove: this.remove
1922
1695
  };
1923
1696
  }
1924
1697
  updateResult(e) {
1925
1698
  const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
1926
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, De(i, t))
1699
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, we(i, t))
1927
1700
  return;
1928
1701
  this.currentResult = i;
1929
1702
  const a = {
@@ -1936,10 +1709,10 @@ class zi extends Be {
1936
1709
  } = this.options, o = typeof r == "function" ? r() : r;
1937
1710
  if (o === "all" || !o && !this.trackedProps.size)
1938
1711
  return !0;
1939
- const d = new Set(o != null ? o : this.trackedProps);
1940
- return this.options.useErrorBoundary && d.add("error"), Object.keys(this.currentResult).some((l) => {
1941
- const u = l;
1942
- return this.currentResult[u] !== t[u] && d.has(u);
1712
+ const l = new Set(o != null ? o : this.trackedProps);
1713
+ return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
1714
+ const d = u;
1715
+ return this.currentResult[d] !== t[d] && l.has(d);
1943
1716
  });
1944
1717
  };
1945
1718
  (e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
@@ -1956,21 +1729,21 @@ class zi extends Be {
1956
1729
  }
1957
1730
  onQueryUpdate(e) {
1958
1731
  const t = {};
1959
- e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !ji(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1732
+ e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ii(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1960
1733
  }
1961
1734
  notify(e) {
1962
- te.batch(() => {
1735
+ Y.batch(() => {
1963
1736
  if (e.onSuccess) {
1964
1737
  var t, i, a, s;
1965
1738
  (t = (i = this.options).onSuccess) == null || t.call(i, this.currentResult.data), (a = (s = this.options).onSettled) == null || a.call(s, this.currentResult.data, null);
1966
1739
  } else if (e.onError) {
1967
- var r, o, d, l;
1968
- (r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (d = (l = this.options).onSettled) == null || d.call(l, void 0, this.currentResult.error);
1740
+ var r, o, l, u;
1741
+ (r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (l = (u = this.options).onSettled) == null || l.call(u, void 0, this.currentResult.error);
1969
1742
  }
1970
1743
  e.listeners && this.listeners.forEach(({
1971
- listener: u
1744
+ listener: d
1972
1745
  }) => {
1973
- u(this.currentResult);
1746
+ d(this.currentResult);
1974
1747
  }), e.cache && this.client.getQueryCache().notify({
1975
1748
  query: this.currentQuery,
1976
1749
  type: "observerResultsUpdated"
@@ -1978,42 +1751,42 @@ class zi extends Be {
1978
1751
  });
1979
1752
  }
1980
1753
  }
1981
- function Bi(n, e) {
1754
+ function Ai(n, e) {
1982
1755
  return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1983
1756
  }
1984
- function dt(n, e) {
1985
- return Bi(n, e) || n.state.dataUpdatedAt > 0 && Le(n, e, e.refetchOnMount);
1757
+ function Xe(n, e) {
1758
+ return Ai(n, e) || n.state.dataUpdatedAt > 0 && Ce(n, e, e.refetchOnMount);
1986
1759
  }
1987
- function Le(n, e, t) {
1760
+ function Ce(n, e, t) {
1988
1761
  if (e.enabled !== !1) {
1989
1762
  const i = typeof t == "function" ? t(n) : t;
1990
- return i === "always" || i !== !1 && Qe(n, e);
1763
+ return i === "always" || i !== !1 && Ae(n, e);
1991
1764
  }
1992
1765
  return !1;
1993
1766
  }
1994
- function ut(n, e, t, i) {
1995
- return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Qe(n, t);
1767
+ function Ye(n, e, t, i) {
1768
+ return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Ae(n, t);
1996
1769
  }
1997
- function Qe(n, e) {
1770
+ function Ae(n, e) {
1998
1771
  return n.isStaleByTime(e.staleTime);
1999
1772
  }
2000
- function Qi(n, e, t) {
2001
- return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !De(n.getCurrentResult(), e);
1773
+ function Pi(n, e, t) {
1774
+ return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !we(n.getCurrentResult(), e);
2002
1775
  }
2003
- const Ki = $t.useSyncExternalStore, ct = /* @__PURE__ */ M.createContext(void 0), Gi = /* @__PURE__ */ M.createContext(!1);
2004
- function Wi(n, e) {
2005
- return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = ct), window.ReactQueryClientContext) : ct);
1776
+ const Vi = Et.useSyncExternalStore, et = /* @__PURE__ */ M.createContext(void 0), _i = /* @__PURE__ */ M.createContext(!1);
1777
+ function Ui(n, e) {
1778
+ return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = et), window.ReactQueryClientContext) : et);
2006
1779
  }
2007
- const Ji = ({
1780
+ const Mi = ({
2008
1781
  context: n
2009
1782
  } = {}) => {
2010
- const e = M.useContext(Wi(n, M.useContext(Gi)));
1783
+ const e = M.useContext(Ui(n, M.useContext(_i)));
2011
1784
  if (!e)
2012
1785
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
2013
1786
  return e;
2014
- }, qt = /* @__PURE__ */ M.createContext(!1), qi = () => M.useContext(qt);
2015
- qt.Provider;
2016
- function Hi() {
1787
+ }, Vt = /* @__PURE__ */ M.createContext(!1), $i = () => M.useContext(Vt);
1788
+ Vt.Provider;
1789
+ function ji() {
2017
1790
  let n = !1;
2018
1791
  return {
2019
1792
  clearReset: () => {
@@ -2025,47 +1798,47 @@ function Hi() {
2025
1798
  isReset: () => n
2026
1799
  };
2027
1800
  }
2028
- const Zi = /* @__PURE__ */ M.createContext(Hi()), Xi = () => M.useContext(Zi);
2029
- function Yi(n, e) {
1801
+ const zi = /* @__PURE__ */ M.createContext(ji()), Bi = () => M.useContext(zi);
1802
+ function Qi(n, e) {
2030
1803
  return typeof n == "function" ? n(...e) : !!n;
2031
1804
  }
2032
- const ea = (n, e) => {
1805
+ const Gi = (n, e) => {
2033
1806
  (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
2034
- }, ta = (n) => {
1807
+ }, Ki = (n) => {
2035
1808
  M.useEffect(() => {
2036
1809
  n.clearReset();
2037
1810
  }, [n]);
2038
- }, na = ({
1811
+ }, Wi = ({
2039
1812
  result: n,
2040
1813
  errorResetBoundary: e,
2041
1814
  useErrorBoundary: t,
2042
1815
  query: i
2043
- }) => n.isError && !e.isReset() && !n.isFetching && Yi(t, [n.error, i]), ia = (n) => {
1816
+ }) => n.isError && !e.isReset() && !n.isFetching && Qi(t, [n.error, i]), Ji = (n) => {
2044
1817
  n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
2045
- }, aa = (n, e) => n.isLoading && n.isFetching && !e, sa = (n, e, t) => (n == null ? void 0 : n.suspense) && aa(e, t), ra = (n, e, t) => e.fetchOptimistic(n).then(({
1818
+ }, qi = (n, e) => n.isLoading && n.isFetching && !e, Hi = (n, e, t) => (n == null ? void 0 : n.suspense) && qi(e, t), Zi = (n, e, t) => e.fetchOptimistic(n).then(({
2046
1819
  data: i
2047
1820
  }) => {
2048
1821
  n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
2049
1822
  }).catch((i) => {
2050
1823
  t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
2051
1824
  });
2052
- function oa(n, e) {
2053
- const t = Ji({
1825
+ function Xi(n, e) {
1826
+ const t = Mi({
2054
1827
  context: n.context
2055
- }), i = qi(), a = Xi(), s = t.defaultQueryOptions(n);
2056
- s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = te.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = te.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = te.batchCalls(s.onSettled)), ia(s), ea(s, a), ta(a);
1828
+ }), i = $i(), a = Bi(), s = t.defaultQueryOptions(n);
1829
+ s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = Y.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = Y.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = Y.batchCalls(s.onSettled)), Ji(s), Gi(s, a), Ki(a);
2057
1830
  const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
2058
- if (Ki(M.useCallback((d) => {
2059
- const l = i ? () => {
2060
- } : r.subscribe(te.batchCalls(d));
2061
- return r.updateResult(), l;
1831
+ if (Vi(M.useCallback((l) => {
1832
+ const u = i ? () => {
1833
+ } : r.subscribe(Y.batchCalls(l));
1834
+ return r.updateResult(), u;
2062
1835
  }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
2063
1836
  r.setOptions(s, {
2064
1837
  listeners: !1
2065
1838
  });
2066
- }, [s, r]), sa(s, o, i))
2067
- throw ra(s, r, a);
2068
- if (na({
1839
+ }, [s, r]), Hi(s, o, i))
1840
+ throw Zi(s, r, a);
1841
+ if (Wi({
2069
1842
  result: o,
2070
1843
  errorResetBoundary: a,
2071
1844
  useErrorBoundary: s.useErrorBoundary,
@@ -2074,30 +1847,33 @@ function oa(n, e) {
2074
1847
  throw o.error;
2075
1848
  return s.notifyOnChangeProps ? o : r.trackResult(o);
2076
1849
  }
2077
- function la(n, e, t) {
2078
- const i = Di(n, e, t);
2079
- return oa(i, zi);
1850
+ function Yi(n, e, t) {
1851
+ const i = bi(n, e, t);
1852
+ return Xi(i, Li);
2080
1853
  }
2081
- const da = () => ["account"], Zs = () => {
2082
- const { accountName: n } = Zn(je.state), [e, t] = yn(Ve), i = la(da(), () => Wt.get(n), {
1854
+ const ea = () => ["account"], zs = () => {
1855
+ const n = It((a) => {
1856
+ var s;
1857
+ return (s = a.config) == null ? void 0 : s.account;
1858
+ }), [e, t] = un(Oe), i = Yi(ea(), () => At.get(n), {
2083
1859
  enabled: !!n && !e,
2084
1860
  refetchOnWindowFocus: !1,
2085
1861
  refetchOnMount: !1
2086
1862
  });
2087
- return Se(() => {
1863
+ return kt(() => {
2088
1864
  const a = i.data;
2089
1865
  !i.isSuccess || !a || t(a);
2090
1866
  }, [i.status]), {
2091
1867
  findQuery: i,
2092
1868
  account: e
2093
1869
  };
2094
- }, ua = Dt();
2095
- async function ca(n) {
2096
- const e = await Wt.get(n);
2097
- return ua.set(Ve, e), e;
1870
+ }, ta = vt();
1871
+ async function na(n) {
1872
+ const e = await At.get(n);
1873
+ return ta.set(Oe, e), e;
2098
1874
  }
2099
- var ma = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ma || {});
2100
- const Xs = {
1875
+ var ia = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ia || {});
1876
+ const Bs = {
2101
1877
  ALL: "*",
2102
1878
  CORE: "core:**",
2103
1879
  LIVE_STREAMING_EVENT: "event:**",
@@ -2109,77 +1885,77 @@ const Xs = {
2109
1885
  SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
2110
1886
  UI: "ui:**",
2111
1887
  UTILS: "utils:**"
2112
- }, Ys = {
1888
+ }, Qs = {
2113
1889
  EVENT_STATUS_CHANGED: "event:statusChanged"
2114
1890
  };
2115
- var fa = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(fa || {}), pa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(pa || {}), ha = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n.FAST_STORE = "faststore", n))(ha || {});
2116
- function ga(n) {
1891
+ var aa = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(aa || {}), sa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(sa || {}), ra = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n.FAST_STORE = "faststore", n))(ra || {});
1892
+ function oa(n) {
2117
1893
  const e = Object.values(n);
2118
1894
  return Object.assign({}, ...e);
2119
1895
  }
2120
- function ka(n) {
1896
+ function la(n) {
2121
1897
  return Object.entries(n).reduce(
2122
1898
  (e, [t, i]) => {
2123
- const a = ga(i);
1899
+ const a = oa(i);
2124
1900
  return { ...e, [t]: a };
2125
1901
  },
2126
1902
  {}
2127
1903
  );
2128
1904
  }
2129
- function va(n, e) {
2130
- const t = ka(e);
1905
+ function da(n, e) {
1906
+ const t = la(e);
2131
1907
  Object.entries(t).forEach(([i, a]) => {
2132
1908
  n.addResourceBundle(i, "translation", a, !0);
2133
1909
  });
2134
1910
  }
2135
- function Sa(n, e) {
1911
+ function ua(n, e) {
2136
1912
  if (!(n instanceof e))
2137
1913
  throw new TypeError("Cannot call a class as a function");
2138
1914
  }
2139
- function ie(n) {
1915
+ function ee(n) {
2140
1916
  "@babel/helpers - typeof";
2141
- return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1917
+ return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2142
1918
  return typeof e;
2143
1919
  } : function(e) {
2144
1920
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2145
- }, ie(n);
1921
+ }, ee(n);
2146
1922
  }
2147
- function ya(n, e) {
2148
- if (ie(n) !== "object" || n === null)
1923
+ function ca(n, e) {
1924
+ if (ee(n) !== "object" || n === null)
2149
1925
  return n;
2150
1926
  var t = n[Symbol.toPrimitive];
2151
1927
  if (t !== void 0) {
2152
1928
  var i = t.call(n, e || "default");
2153
- if (ie(i) !== "object")
1929
+ if (ee(i) !== "object")
2154
1930
  return i;
2155
1931
  throw new TypeError("@@toPrimitive must return a primitive value.");
2156
1932
  }
2157
1933
  return (e === "string" ? String : Number)(n);
2158
1934
  }
2159
- function Na(n) {
2160
- var e = ya(n, "string");
2161
- return ie(e) === "symbol" ? e : String(e);
1935
+ function ma(n) {
1936
+ var e = ca(n, "string");
1937
+ return ee(e) === "symbol" ? e : String(e);
2162
1938
  }
2163
- function mt(n, e) {
1939
+ function tt(n, e) {
2164
1940
  for (var t = 0; t < e.length; t++) {
2165
1941
  var i = e[t];
2166
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Na(i.key), i);
1942
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ma(i.key), i);
2167
1943
  }
2168
1944
  }
2169
- function ba(n, e, t) {
2170
- return e && mt(n.prototype, e), t && mt(n, t), Object.defineProperty(n, "prototype", {
1945
+ function fa(n, e, t) {
1946
+ return e && tt(n.prototype, e), t && tt(n, t), Object.defineProperty(n, "prototype", {
2171
1947
  writable: !1
2172
1948
  }), n;
2173
1949
  }
2174
- var Ht = [], Fa = Ht.forEach, wa = Ht.slice;
2175
- function Ca(n) {
2176
- return Fa.call(wa.call(arguments, 1), function(e) {
1950
+ var _t = [], pa = _t.forEach, ha = _t.slice;
1951
+ function ga(n) {
1952
+ return pa.call(ha.call(arguments, 1), function(e) {
2177
1953
  if (e)
2178
1954
  for (var t in e)
2179
1955
  n[t] === void 0 && (n[t] = e[t]);
2180
1956
  }), n;
2181
1957
  }
2182
- var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
1958
+ var nt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ka = function(e, t, i) {
2183
1959
  var a = i || {};
2184
1960
  a.path = a.path || "/";
2185
1961
  var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
@@ -2190,12 +1966,12 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2190
1966
  r += "; Max-Age=".concat(Math.floor(o));
2191
1967
  }
2192
1968
  if (a.domain) {
2193
- if (!ft.test(a.domain))
1969
+ if (!nt.test(a.domain))
2194
1970
  throw new TypeError("option domain is invalid");
2195
1971
  r += "; Domain=".concat(a.domain);
2196
1972
  }
2197
1973
  if (a.path) {
2198
- if (!ft.test(a.path))
1974
+ if (!nt.test(a.path))
2199
1975
  throw new TypeError("option path is invalid");
2200
1976
  r += "; Path=".concat(a.path);
2201
1977
  }
@@ -2205,8 +1981,8 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2205
1981
  r += "; Expires=".concat(a.expires.toUTCString());
2206
1982
  }
2207
1983
  if (a.httpOnly && (r += "; HttpOnly"), a.secure && (r += "; Secure"), a.sameSite) {
2208
- var d = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
2209
- switch (d) {
1984
+ var l = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
1985
+ switch (l) {
2210
1986
  case !0:
2211
1987
  r += "; SameSite=Strict";
2212
1988
  break;
@@ -2224,13 +2000,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2224
2000
  }
2225
2001
  }
2226
2002
  return r;
2227
- }, pt = {
2003
+ }, it = {
2228
2004
  create: function(e, t, i, a) {
2229
2005
  var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2230
2006
  path: "/",
2231
2007
  sameSite: "strict"
2232
2008
  };
2233
- i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = Ea(e, encodeURIComponent(t), s);
2009
+ i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = ka(e, encodeURIComponent(t), s);
2234
2010
  },
2235
2011
  read: function(e) {
2236
2012
  for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
@@ -2244,20 +2020,20 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2244
2020
  remove: function(e) {
2245
2021
  this.create(e, "", -1);
2246
2022
  }
2247
- }, Oa = {
2023
+ }, va = {
2248
2024
  name: "cookie",
2249
2025
  lookup: function(e) {
2250
2026
  var t;
2251
2027
  if (e.lookupCookie && typeof document != "undefined") {
2252
- var i = pt.read(e.lookupCookie);
2028
+ var i = it.read(e.lookupCookie);
2253
2029
  i && (t = i);
2254
2030
  }
2255
2031
  return t;
2256
2032
  },
2257
2033
  cacheUserLanguage: function(e, t) {
2258
- t.lookupCookie && typeof document != "undefined" && pt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2034
+ t.lookupCookie && typeof document != "undefined" && it.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2259
2035
  }
2260
- }, Ra = {
2036
+ }, Sa = {
2261
2037
  name: "querystring",
2262
2038
  lookup: function(e) {
2263
2039
  var t;
@@ -2267,62 +2043,62 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2267
2043
  for (var a = i.substring(1), s = a.split("&"), r = 0; r < s.length; r++) {
2268
2044
  var o = s[r].indexOf("=");
2269
2045
  if (o > 0) {
2270
- var d = s[r].substring(0, o);
2271
- d === e.lookupQuerystring && (t = s[r].substring(o + 1));
2046
+ var l = s[r].substring(0, o);
2047
+ l === e.lookupQuerystring && (t = s[r].substring(o + 1));
2272
2048
  }
2273
2049
  }
2274
2050
  }
2275
2051
  return t;
2276
2052
  }
2277
- }, H = null, ht = function() {
2278
- if (H !== null)
2279
- return H;
2053
+ }, q = null, at = function() {
2054
+ if (q !== null)
2055
+ return q;
2280
2056
  try {
2281
- H = window !== "undefined" && window.localStorage !== null;
2057
+ q = window !== "undefined" && window.localStorage !== null;
2282
2058
  var e = "i18next.translate.boo";
2283
2059
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
2284
2060
  } catch {
2285
- H = !1;
2061
+ q = !1;
2286
2062
  }
2287
- return H;
2288
- }, xa = {
2063
+ return q;
2064
+ }, ya = {
2289
2065
  name: "localStorage",
2290
2066
  lookup: function(e) {
2291
2067
  var t;
2292
- if (e.lookupLocalStorage && ht()) {
2068
+ if (e.lookupLocalStorage && at()) {
2293
2069
  var i = window.localStorage.getItem(e.lookupLocalStorage);
2294
2070
  i && (t = i);
2295
2071
  }
2296
2072
  return t;
2297
2073
  },
2298
2074
  cacheUserLanguage: function(e, t) {
2299
- t.lookupLocalStorage && ht() && window.localStorage.setItem(t.lookupLocalStorage, e);
2075
+ t.lookupLocalStorage && at() && window.localStorage.setItem(t.lookupLocalStorage, e);
2300
2076
  }
2301
- }, Z = null, gt = function() {
2302
- if (Z !== null)
2303
- return Z;
2077
+ }, H = null, st = function() {
2078
+ if (H !== null)
2079
+ return H;
2304
2080
  try {
2305
- Z = window !== "undefined" && window.sessionStorage !== null;
2081
+ H = window !== "undefined" && window.sessionStorage !== null;
2306
2082
  var e = "i18next.translate.boo";
2307
2083
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
2308
2084
  } catch {
2309
- Z = !1;
2085
+ H = !1;
2310
2086
  }
2311
- return Z;
2312
- }, Ta = {
2087
+ return H;
2088
+ }, Na = {
2313
2089
  name: "sessionStorage",
2314
2090
  lookup: function(e) {
2315
2091
  var t;
2316
- if (e.lookupSessionStorage && gt()) {
2092
+ if (e.lookupSessionStorage && st()) {
2317
2093
  var i = window.sessionStorage.getItem(e.lookupSessionStorage);
2318
2094
  i && (t = i);
2319
2095
  }
2320
2096
  return t;
2321
2097
  },
2322
2098
  cacheUserLanguage: function(e, t) {
2323
- t.lookupSessionStorage && gt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2099
+ t.lookupSessionStorage && st() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2324
2100
  }
2325
- }, Da = {
2101
+ }, ba = {
2326
2102
  name: "navigator",
2327
2103
  lookup: function(e) {
2328
2104
  var t = [];
@@ -2334,13 +2110,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2334
2110
  }
2335
2111
  return t.length > 0 ? t : void 0;
2336
2112
  }
2337
- }, La = {
2113
+ }, Fa = {
2338
2114
  name: "htmlTag",
2339
2115
  lookup: function(e) {
2340
2116
  var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
2341
2117
  return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
2342
2118
  }
2343
- }, Ia = {
2119
+ }, wa = {
2344
2120
  name: "path",
2345
2121
  lookup: function(e) {
2346
2122
  var t;
@@ -2356,7 +2132,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2356
2132
  }
2357
2133
  return t;
2358
2134
  }
2359
- }, Aa = {
2135
+ }, Ca = {
2360
2136
  name: "subdomain",
2361
2137
  lookup: function(e) {
2362
2138
  var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, i = typeof window != "undefined" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
@@ -2364,7 +2140,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2364
2140
  return i[t];
2365
2141
  }
2366
2142
  };
2367
- function Pa() {
2143
+ function Ea() {
2368
2144
  return {
2369
2145
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2370
2146
  lookupQuerystring: "lng",
@@ -2381,20 +2157,20 @@ function Pa() {
2381
2157
  }
2382
2158
  };
2383
2159
  }
2384
- var Zt = /* @__PURE__ */ function() {
2160
+ var Ut = /* @__PURE__ */ function() {
2385
2161
  function n(e) {
2386
2162
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2387
- Sa(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2163
+ ua(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2388
2164
  }
2389
- return ba(n, [{
2165
+ return fa(n, [{
2390
2166
  key: "init",
2391
2167
  value: function(t) {
2392
2168
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2393
2169
  this.services = t || {
2394
2170
  languageUtils: {}
2395
- }, this.options = Ca(i, this.options || {}, Pa()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2171
+ }, this.options = ga(i, this.options || {}, Ea()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2396
2172
  return s.replace("-", "_");
2397
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Oa), this.addDetector(Ra), this.addDetector(xa), this.addDetector(Ta), this.addDetector(Da), this.addDetector(La), this.addDetector(Ia), this.addDetector(Aa);
2173
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba), this.addDetector(Fa), this.addDetector(wa), this.addDetector(Ca);
2398
2174
  }
2399
2175
  }, {
2400
2176
  key: "addDetector",
@@ -2426,9 +2202,9 @@ var Zt = /* @__PURE__ */ function() {
2426
2202
  }
2427
2203
  }]), n;
2428
2204
  }();
2429
- Zt.type = "languageDetector";
2430
- function Va(n, e) {
2431
- n.use(e).use(Zt).init({
2205
+ Ut.type = "languageDetector";
2206
+ function xa(n, e) {
2207
+ n.use(e).use(Ut).init({
2432
2208
  resources: {},
2433
2209
  fallbackLng: "en",
2434
2210
  debug: !1,
@@ -2467,7 +2243,7 @@ function Va(n, e) {
2467
2243
  }
2468
2244
  });
2469
2245
  }
2470
- const _a = {
2246
+ const Oa = {
2471
2247
  type: "logger",
2472
2248
  log(n) {
2473
2249
  this.output("log", n);
@@ -2482,14 +2258,14 @@ const _a = {
2482
2258
  console && console[n] && console[n].apply(console, e);
2483
2259
  }
2484
2260
  };
2485
- class pe {
2261
+ class de {
2486
2262
  constructor(e) {
2487
2263
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2488
2264
  this.init(e, t);
2489
2265
  }
2490
2266
  init(e) {
2491
2267
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2492
- this.prefix = t.prefix || "i18next:", this.logger = e || _a, this.options = t, this.debug = t.debug;
2268
+ this.prefix = t.prefix || "i18next:", this.logger = e || Oa, this.options = t, this.debug = t.debug;
2493
2269
  }
2494
2270
  log() {
2495
2271
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
@@ -2515,17 +2291,17 @@ class pe {
2515
2291
  return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
2516
2292
  }
2517
2293
  create(e) {
2518
- return new pe(this.logger, {
2294
+ return new de(this.logger, {
2519
2295
  prefix: `${this.prefix}:${e}:`,
2520
2296
  ...this.options
2521
2297
  });
2522
2298
  }
2523
2299
  clone(e) {
2524
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new pe(this.logger, e);
2300
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new de(this.logger, e);
2525
2301
  }
2526
2302
  }
2527
- var j = new pe();
2528
- class Ne {
2303
+ var $ = new de();
2304
+ class ke {
2529
2305
  constructor() {
2530
2306
  this.observers = {};
2531
2307
  }
@@ -2553,22 +2329,22 @@ class Ne {
2553
2329
  });
2554
2330
  }
2555
2331
  }
2556
- function X() {
2332
+ function Z() {
2557
2333
  let n, e;
2558
2334
  const t = new Promise((i, a) => {
2559
2335
  n = i, e = a;
2560
2336
  });
2561
2337
  return t.resolve = n, t.reject = e, t;
2562
2338
  }
2563
- function kt(n) {
2339
+ function rt(n) {
2564
2340
  return n == null ? "" : "" + n;
2565
2341
  }
2566
- function Ua(n, e, t) {
2342
+ function Ra(n, e, t) {
2567
2343
  n.forEach((i) => {
2568
2344
  e[i] && (t[i] = e[i]);
2569
2345
  });
2570
2346
  }
2571
- function Ke(n, e, t) {
2347
+ function Pe(n, e, t) {
2572
2348
  function i(r) {
2573
2349
  return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
2574
2350
  }
@@ -2587,41 +2363,41 @@ function Ke(n, e, t) {
2587
2363
  k: i(s.shift())
2588
2364
  };
2589
2365
  }
2590
- function vt(n, e, t) {
2366
+ function ot(n, e, t) {
2591
2367
  const {
2592
2368
  obj: i,
2593
2369
  k: a
2594
- } = Ke(n, e, Object);
2370
+ } = Pe(n, e, Object);
2595
2371
  i[a] = t;
2596
2372
  }
2597
- function Ma(n, e, t, i) {
2373
+ function Ta(n, e, t, i) {
2598
2374
  const {
2599
2375
  obj: a,
2600
2376
  k: s
2601
- } = Ke(n, e, Object);
2377
+ } = Pe(n, e, Object);
2602
2378
  a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
2603
2379
  }
2604
- function he(n, e) {
2380
+ function ue(n, e) {
2605
2381
  const {
2606
2382
  obj: t,
2607
2383
  k: i
2608
- } = Ke(n, e);
2384
+ } = Pe(n, e);
2609
2385
  if (t)
2610
2386
  return t[i];
2611
2387
  }
2612
- function ja(n, e, t) {
2613
- const i = he(n, t);
2614
- return i !== void 0 ? i : he(e, t);
2388
+ function Ia(n, e, t) {
2389
+ const i = ue(n, t);
2390
+ return i !== void 0 ? i : ue(e, t);
2615
2391
  }
2616
- function Xt(n, e, t) {
2392
+ function Mt(n, e, t) {
2617
2393
  for (const i in e)
2618
- i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Xt(n[i], e[i], t) : n[i] = e[i]);
2394
+ i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Mt(n[i], e[i], t) : n[i] = e[i]);
2619
2395
  return n;
2620
2396
  }
2621
- function Q(n) {
2397
+ function B(n) {
2622
2398
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2623
2399
  }
2624
- var $a = {
2400
+ var Da = {
2625
2401
  "&": "&amp;",
2626
2402
  "<": "&lt;",
2627
2403
  ">": "&gt;",
@@ -2629,13 +2405,13 @@ var $a = {
2629
2405
  "'": "&#39;",
2630
2406
  "/": "&#x2F;"
2631
2407
  };
2632
- function za(n) {
2633
- return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => $a[e]) : n;
2408
+ function La(n) {
2409
+ return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Da[e]) : n;
2634
2410
  }
2635
- const Ba = [" ", ",", "?", "!", ";"];
2636
- function Qa(n, e, t) {
2411
+ const Aa = [" ", ",", "?", "!", ";"];
2412
+ function Pa(n, e, t) {
2637
2413
  e = e || "", t = t || "";
2638
- const i = Ba.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2414
+ const i = Aa.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2639
2415
  if (i.length === 0)
2640
2416
  return !0;
2641
2417
  const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
@@ -2646,7 +2422,7 @@ function Qa(n, e, t) {
2646
2422
  }
2647
2423
  return s;
2648
2424
  }
2649
- function ge(n, e) {
2425
+ function ce(n, e) {
2650
2426
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
2651
2427
  if (!n)
2652
2428
  return;
@@ -2658,30 +2434,30 @@ function ge(n, e) {
2658
2434
  if (!a || typeof a[i[s]] == "string" && s + 1 < i.length)
2659
2435
  return;
2660
2436
  if (a[i[s]] === void 0) {
2661
- let r = 2, o = i.slice(s, s + r).join(t), d = a[o];
2662
- for (; d === void 0 && i.length > s + r; )
2663
- r++, o = i.slice(s, s + r).join(t), d = a[o];
2664
- if (d === void 0)
2437
+ let r = 2, o = i.slice(s, s + r).join(t), l = a[o];
2438
+ for (; l === void 0 && i.length > s + r; )
2439
+ r++, o = i.slice(s, s + r).join(t), l = a[o];
2440
+ if (l === void 0)
2665
2441
  return;
2666
- if (d === null)
2442
+ if (l === null)
2667
2443
  return null;
2668
2444
  if (e.endsWith(o)) {
2669
- if (typeof d == "string")
2670
- return d;
2671
- if (o && typeof d[o] == "string")
2672
- return d[o];
2445
+ if (typeof l == "string")
2446
+ return l;
2447
+ if (o && typeof l[o] == "string")
2448
+ return l[o];
2673
2449
  }
2674
- const l = i.slice(s + r).join(t);
2675
- return l ? ge(d, l, t) : void 0;
2450
+ const u = i.slice(s + r).join(t);
2451
+ return u ? ce(l, u, t) : void 0;
2676
2452
  }
2677
2453
  a = a[i[s]];
2678
2454
  }
2679
2455
  return a;
2680
2456
  }
2681
- function ke(n) {
2457
+ function me(n) {
2682
2458
  return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
2683
2459
  }
2684
- class St extends Ne {
2460
+ class lt extends ke {
2685
2461
  constructor(e) {
2686
2462
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2687
2463
  ns: ["translation"],
@@ -2701,8 +2477,8 @@ class St extends Ne {
2701
2477
  const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
2702
2478
  let o = [e, t];
2703
2479
  i && typeof i != "string" && (o = o.concat(i)), i && typeof i == "string" && (o = o.concat(s ? i.split(s) : i)), e.indexOf(".") > -1 && (o = e.split("."));
2704
- const d = he(this.data, o);
2705
- return d || !r || typeof i != "string" ? d : ge(this.data && this.data[e] && this.data[e][t], i, s);
2480
+ const l = ue(this.data, o);
2481
+ return l || !r || typeof i != "string" ? l : ce(this.data && this.data[e] && this.data[e][t], i, s);
2706
2482
  }
2707
2483
  addResource(e, t, i, a) {
2708
2484
  let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -2710,7 +2486,7 @@ class St extends Ne {
2710
2486
  };
2711
2487
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
2712
2488
  let o = [e, t];
2713
- i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), vt(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2489
+ i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), ot(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2714
2490
  }
2715
2491
  addResources(e, t, i) {
2716
2492
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -2727,11 +2503,11 @@ class St extends Ne {
2727
2503
  silent: !1
2728
2504
  }, o = [e, t];
2729
2505
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2730
- let d = he(this.data, o) || {};
2731
- a ? Xt(d, i, s) : d = {
2732
- ...d,
2506
+ let l = ue(this.data, o) || {};
2507
+ a ? Mt(l, i, s) : l = {
2508
+ ...l,
2733
2509
  ...i
2734
- }, vt(this.data, o, d), r.silent || this.emit("added", e, t, i);
2510
+ }, ot(this.data, o, l), r.silent || this.emit("added", e, t, i);
2735
2511
  }
2736
2512
  removeResourceBundle(e, t) {
2737
2513
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2755,7 +2531,7 @@ class St extends Ne {
2755
2531
  return this.data;
2756
2532
  }
2757
2533
  }
2758
- var Yt = {
2534
+ var $t = {
2759
2535
  processors: {},
2760
2536
  addPostProcessor(n) {
2761
2537
  this.processors[n.name] = n;
@@ -2766,11 +2542,11 @@ var Yt = {
2766
2542
  }), e;
2767
2543
  }
2768
2544
  };
2769
- const yt = {};
2770
- class ve extends Ne {
2545
+ const dt = {};
2546
+ class fe extends ke {
2771
2547
  constructor(e) {
2772
2548
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2773
- super(), Ua(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = j.create("translator");
2549
+ super(), Ra(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
2774
2550
  }
2775
2551
  changeLanguage(e) {
2776
2552
  e && (this.language = e);
@@ -2789,16 +2565,16 @@ class ve extends Ne {
2789
2565
  i === void 0 && (i = ":");
2790
2566
  const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2791
2567
  let s = t.ns || this.options.defaultNS || [];
2792
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Qa(e, i, a);
2568
+ const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Pa(e, i, a);
2793
2569
  if (r && !o) {
2794
- const d = e.match(this.interpolator.nestingRegexp);
2795
- if (d && d.length > 0)
2570
+ const l = e.match(this.interpolator.nestingRegexp);
2571
+ if (l && l.length > 0)
2796
2572
  return {
2797
2573
  key: e,
2798
2574
  namespaces: s
2799
2575
  };
2800
- const l = e.split(i);
2801
- (i !== a || i === a && this.options.ns.indexOf(l[0]) > -1) && (s = l.shift()), e = l.join(a);
2576
+ const u = e.split(i);
2577
+ (i !== a || i === a && this.options.ns.indexOf(u[0]) > -1) && (s = u.shift()), e = u.join(a);
2802
2578
  }
2803
2579
  return typeof s == "string" && (s = [s]), {
2804
2580
  key: e,
@@ -2814,90 +2590,90 @@ class ve extends Ne {
2814
2590
  const a = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
2815
2591
  key: r,
2816
2592
  namespaces: o
2817
- } = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], l = t.lng || this.language, u = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2818
- if (l && l.toLowerCase() === "cimode") {
2819
- if (u) {
2820
- const E = t.nsSeparator || this.options.nsSeparator;
2593
+ } = this.extractFromKey(e[e.length - 1], t), l = o[o.length - 1], u = t.lng || this.language, d = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2594
+ if (u && u.toLowerCase() === "cimode") {
2595
+ if (d) {
2596
+ const w = t.nsSeparator || this.options.nsSeparator;
2821
2597
  return a ? {
2822
- res: `${d}${E}${r}`,
2598
+ res: `${l}${w}${r}`,
2823
2599
  usedKey: r,
2824
2600
  exactUsedKey: r,
2825
- usedLng: l,
2826
- usedNS: d,
2601
+ usedLng: u,
2602
+ usedNS: l,
2827
2603
  usedParams: this.getUsedParamsDetails(t)
2828
- } : `${d}${E}${r}`;
2604
+ } : `${l}${w}${r}`;
2829
2605
  }
2830
2606
  return a ? {
2831
2607
  res: r,
2832
2608
  usedKey: r,
2833
2609
  exactUsedKey: r,
2834
- usedLng: l,
2835
- usedNS: d,
2610
+ usedLng: u,
2611
+ usedNS: l,
2836
2612
  usedParams: this.getUsedParamsDetails(t)
2837
2613
  } : r;
2838
2614
  }
2839
- const p = this.resolve(e, t);
2840
- let c = p && p.res;
2841
- const v = p && p.usedKey || r, S = p && p.exactUsedKey || r, k = Object.prototype.toString.apply(c), y = ["[object Number]", "[object Function]", "[object RegExp]"], F = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject;
2842
- if (w && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && y.indexOf(k) < 0 && !(typeof F == "string" && k === "[object Array]")) {
2615
+ const f = this.resolve(e, t);
2616
+ let c = f && f.res;
2617
+ const S = f && f.usedKey || r, y = f && f.exactUsedKey || r, k = Object.prototype.toString.apply(c), N = ["[object Number]", "[object Function]", "[object RegExp]"], O = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, F = !this.i18nFormat || this.i18nFormat.handleAsObject;
2618
+ if (F && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && N.indexOf(k) < 0 && !(typeof O == "string" && k === "[object Array]")) {
2843
2619
  if (!t.returnObjects && !this.options.returnObjects) {
2844
2620
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2845
- const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
2621
+ const w = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, c, {
2846
2622
  ...t,
2847
2623
  ns: o
2848
2624
  }) : `key '${r} (${this.language})' returned an object instead of string.`;
2849
- return a ? (p.res = E, p.usedParams = this.getUsedParamsDetails(t), p) : E;
2625
+ return a ? (f.res = w, f.usedParams = this.getUsedParamsDetails(t), f) : w;
2850
2626
  }
2851
2627
  if (s) {
2852
- const E = k === "[object Array]", I = E ? [] : {}, P = E ? S : v;
2628
+ const w = k === "[object Array]", D = w ? [] : {}, L = w ? y : S;
2853
2629
  for (const A in c)
2854
2630
  if (Object.prototype.hasOwnProperty.call(c, A)) {
2855
- const f = `${P}${s}${A}`;
2856
- I[A] = this.translate(f, {
2631
+ const m = `${L}${s}${A}`;
2632
+ D[A] = this.translate(m, {
2857
2633
  ...t,
2858
2634
  joinArrays: !1,
2859
2635
  ns: o
2860
- }), I[A] === f && (I[A] = c[A]);
2636
+ }), D[A] === m && (D[A] = c[A]);
2861
2637
  }
2862
- c = I;
2638
+ c = D;
2863
2639
  }
2864
- } else if (w && typeof F == "string" && k === "[object Array]")
2865
- c = c.join(F), c && (c = this.extendTranslation(c, e, t, i));
2640
+ } else if (F && typeof O == "string" && k === "[object Array]")
2641
+ c = c.join(O), c && (c = this.extendTranslation(c, e, t, i));
2866
2642
  else {
2867
- let E = !1, I = !1;
2868
- const P = t.count !== void 0 && typeof t.count != "string", A = ve.hasDefaultValue(t), f = P ? this.pluralResolver.getSuffix(l, t.count, t) : "", m = t.ordinal && P ? this.pluralResolver.getSuffix(l, t.count, {
2643
+ let w = !1, D = !1;
2644
+ const L = t.count !== void 0 && typeof t.count != "string", A = fe.hasDefaultValue(t), m = L ? this.pluralResolver.getSuffix(u, t.count, t) : "", p = t.ordinal && L ? this.pluralResolver.getSuffix(u, t.count, {
2869
2645
  ordinal: !1
2870
- }) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
2871
- !this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (I = !0, c = r);
2872
- const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && g !== c && this.options.updateMissing;
2873
- if (I || E || C) {
2874
- if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
2875
- const R = this.resolve(r, {
2646
+ }) : "", h = t[`defaultValue${m}`] || t[`defaultValue${p}`] || t.defaultValue;
2647
+ !this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (D = !0, c = r);
2648
+ const b = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && D ? void 0 : c, C = A && h !== c && this.options.updateMissing;
2649
+ if (D || w || C) {
2650
+ if (this.logger.log(C ? "updateKey" : "missingKey", u, l, r, C ? h : c), s) {
2651
+ const x = this.resolve(r, {
2876
2652
  ...t,
2877
2653
  keySeparator: !1
2878
2654
  });
2879
- R && R.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2655
+ x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2880
2656
  }
2881
- let b = [];
2882
- const O = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2883
- if (this.options.saveMissingTo === "fallback" && O && O[0])
2884
- for (let R = 0; R < O.length; R++)
2885
- b.push(O[R]);
2657
+ let v = [];
2658
+ const E = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2659
+ if (this.options.saveMissingTo === "fallback" && E && E[0])
2660
+ for (let x = 0; x < E.length; x++)
2661
+ v.push(E[x]);
2886
2662
  else
2887
- this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
2888
- const T = (R, D, V) => {
2889
- const se = A && V !== c ? V : N;
2890
- this.options.missingKeyHandler ? this.options.missingKeyHandler(R, d, D, se, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(R, d, D, se, C, t), this.emit("missingKey", R, d, D, c);
2663
+ this.options.saveMissingTo === "all" ? v = this.languageUtils.toResolveHierarchy(t.lng || this.language) : v.push(t.lng || this.language);
2664
+ const P = (x, T, V) => {
2665
+ const ne = A && V !== c ? V : b;
2666
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, T, ne, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(x, l, T, ne, C, t), this.emit("missingKey", x, l, T, c);
2891
2667
  };
2892
- this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
2893
- this.pluralResolver.getSuffixes(R, t).forEach((D) => {
2894
- T([R], r + D, t[`defaultValue${D}`] || g);
2668
+ this.options.saveMissing && (this.options.saveMissingPlurals && L ? v.forEach((x) => {
2669
+ this.pluralResolver.getSuffixes(x, t).forEach((T) => {
2670
+ P([x], r + T, t[`defaultValue${T}`] || h);
2895
2671
  });
2896
- }) : T(b, r, g));
2672
+ }) : P(v, r, h));
2897
2673
  }
2898
- c = this.extendTranslation(c, e, t, p, i), I && c === r && this.options.appendNamespaceToMissingKey && (c = `${d}:${r}`), (I || E) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${r}` : r, E ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
2674
+ c = this.extendTranslation(c, e, t, f, i), D && c === r && this.options.appendNamespaceToMissingKey && (c = `${l}:${r}`), (D || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${r}` : r, w ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
2899
2675
  }
2900
- return a ? (p.res = c, p.usedParams = this.getUsedParamsDetails(t), p) : c;
2676
+ return a ? (f.res = c, f.usedParams = this.getUsedParamsDetails(t), f) : c;
2901
2677
  }
2902
2678
  extendTranslation(e, t, i, a, s) {
2903
2679
  var r = this;
@@ -2916,28 +2692,28 @@ class ve extends Ne {
2916
2692
  ...i.interpolation
2917
2693
  }
2918
2694
  });
2919
- const l = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2920
- let u;
2921
- if (l) {
2695
+ const u = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2696
+ let d;
2697
+ if (u) {
2922
2698
  const c = e.match(this.interpolator.nestingRegexp);
2923
- u = c && c.length;
2699
+ d = c && c.length;
2924
2700
  }
2925
- let p = i.replace && typeof i.replace != "string" ? i.replace : i;
2926
- if (this.options.interpolation.defaultVariables && (p = {
2701
+ let f = i.replace && typeof i.replace != "string" ? i.replace : i;
2702
+ if (this.options.interpolation.defaultVariables && (f = {
2927
2703
  ...this.options.interpolation.defaultVariables,
2928
- ...p
2929
- }), e = this.interpolator.interpolate(e, p, i.lng || this.language, i), l) {
2930
- const c = e.match(this.interpolator.nestingRegexp), v = c && c.length;
2931
- u < v && (i.nest = !1);
2704
+ ...f
2705
+ }), e = this.interpolator.interpolate(e, f, i.lng || this.language, i), u) {
2706
+ const c = e.match(this.interpolator.nestingRegexp), S = c && c.length;
2707
+ d < S && (i.nest = !1);
2932
2708
  }
2933
2709
  !i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
2934
- for (var c = arguments.length, v = new Array(c), S = 0; S < c; S++)
2935
- v[S] = arguments[S];
2936
- return s && s[0] === v[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`), null) : r.translate(...v, t);
2710
+ for (var c = arguments.length, S = new Array(c), y = 0; y < c; y++)
2711
+ S[y] = arguments[y];
2712
+ return s && s[0] === S[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${t[0]}`), null) : r.translate(...S, t);
2937
2713
  }, i)), i.interpolation && this.interpolator.reset();
2938
2714
  }
2939
- const o = i.postProcess || this.options.postProcess, d = typeof o == "string" ? [o] : o;
2940
- return e != null && d && d.length && i.applyPostProcessor !== !1 && (e = Yt.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
2715
+ const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
2716
+ return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = $t.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
2941
2717
  i18nResolved: {
2942
2718
  ...a,
2943
2719
  usedParams: this.getUsedParamsDetails(i)
@@ -2947,34 +2723,34 @@ class ve extends Ne {
2947
2723
  }
2948
2724
  resolve(e) {
2949
2725
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, a, s, r, o;
2950
- return typeof e == "string" && (e = [e]), e.forEach((d) => {
2726
+ return typeof e == "string" && (e = [e]), e.forEach((l) => {
2951
2727
  if (this.isValidLookup(i))
2952
2728
  return;
2953
- const l = this.extractFromKey(d, t), u = l.key;
2954
- a = u;
2955
- let p = l.namespaces;
2956
- this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
2957
- const c = t.count !== void 0 && typeof t.count != "string", v = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2958
- p.forEach((y) => {
2959
- this.isValidLookup(i) || (o = y, !yt[`${k[0]}-${y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (yt[`${k[0]}-${y}`] = !0, this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((F) => {
2729
+ const u = this.extractFromKey(l, t), d = u.key;
2730
+ a = d;
2731
+ let f = u.namespaces;
2732
+ this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2733
+ const c = t.count !== void 0 && typeof t.count != "string", S = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2734
+ f.forEach((N) => {
2735
+ this.isValidLookup(i) || (o = N, !dt[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (dt[`${k[0]}-${N}`] = !0, this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((O) => {
2960
2736
  if (this.isValidLookup(i))
2961
2737
  return;
2962
- r = F;
2963
- const w = [u];
2738
+ r = O;
2739
+ const F = [d];
2964
2740
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
2965
- this.i18nFormat.addLookupKeys(w, u, F, y, t);
2741
+ this.i18nFormat.addLookupKeys(F, d, O, N, t);
2966
2742
  else {
2967
- let E;
2968
- c && (E = this.pluralResolver.getSuffix(F, t.count, t));
2969
- const I = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2970
- if (c && (w.push(u + E), t.ordinal && E.indexOf(P) === 0 && w.push(u + E.replace(P, this.options.pluralSeparator)), v && w.push(u + I)), S) {
2971
- const A = `${u}${this.options.contextSeparator}${t.context}`;
2972
- w.push(A), c && (w.push(A + E), t.ordinal && E.indexOf(P) === 0 && w.push(A + E.replace(P, this.options.pluralSeparator)), v && w.push(A + I));
2743
+ let w;
2744
+ c && (w = this.pluralResolver.getSuffix(O, t.count, t));
2745
+ const D = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2746
+ if (c && (F.push(d + w), t.ordinal && w.indexOf(L) === 0 && F.push(d + w.replace(L, this.options.pluralSeparator)), S && F.push(d + D)), y) {
2747
+ const A = `${d}${this.options.contextSeparator}${t.context}`;
2748
+ F.push(A), c && (F.push(A + w), t.ordinal && w.indexOf(L) === 0 && F.push(A + w.replace(L, this.options.pluralSeparator)), S && F.push(A + D));
2973
2749
  }
2974
2750
  }
2975
- let L;
2976
- for (; L = w.pop(); )
2977
- this.isValidLookup(i) || (s = L, i = this.getResource(F, y, L, t));
2751
+ let I;
2752
+ for (; I = F.pop(); )
2753
+ this.isValidLookup(i) || (s = I, i = this.getResource(O, N, I, t));
2978
2754
  }));
2979
2755
  });
2980
2756
  }), {
@@ -3016,21 +2792,21 @@ class ve extends Ne {
3016
2792
  return !1;
3017
2793
  }
3018
2794
  }
3019
- function Oe(n) {
2795
+ function be(n) {
3020
2796
  return n.charAt(0).toUpperCase() + n.slice(1);
3021
2797
  }
3022
- class Nt {
2798
+ class ut {
3023
2799
  constructor(e) {
3024
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
2800
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
3025
2801
  }
3026
2802
  getScriptPartFromCode(e) {
3027
- if (e = ke(e), !e || e.indexOf("-") < 0)
2803
+ if (e = me(e), !e || e.indexOf("-") < 0)
3028
2804
  return null;
3029
2805
  const t = e.split("-");
3030
2806
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
3031
2807
  }
3032
2808
  getLanguagePartFromCode(e) {
3033
- if (e = ke(e), !e || e.indexOf("-") < 0)
2809
+ if (e = me(e), !e || e.indexOf("-") < 0)
3034
2810
  return e;
3035
2811
  const t = e.split("-");
3036
2812
  return this.formatLanguageCode(t[0]);
@@ -3039,7 +2815,7 @@ class Nt {
3039
2815
  if (typeof e == "string" && e.indexOf("-") > -1) {
3040
2816
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
3041
2817
  let i = e.split("-");
3042
- return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Oe(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Oe(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Oe(i[2].toLowerCase()))), i.join("-");
2818
+ return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = be(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = be(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = be(i[2].toLowerCase()))), i.join("-");
3043
2819
  }
3044
2820
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
3045
2821
  }
@@ -3088,7 +2864,7 @@ class Nt {
3088
2864
  }), a;
3089
2865
  }
3090
2866
  }
3091
- let Ka = [{
2867
+ let Va = [{
3092
2868
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
3093
2869
  nr: [1, 2],
3094
2870
  fc: 1
@@ -3180,7 +2956,7 @@ let Ka = [{
3180
2956
  lngs: ["he", "iw"],
3181
2957
  nr: [1, 2, 20, 21],
3182
2958
  fc: 22
3183
- }], Ga = {
2959
+ }], _a = {
3184
2960
  1: function(n) {
3185
2961
  return +(n > 1);
3186
2962
  },
@@ -3248,7 +3024,7 @@ let Ka = [{
3248
3024
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
3249
3025
  }
3250
3026
  };
3251
- const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3027
+ const Ua = ["v1", "v2", "v3"], Ma = ["v4"], ct = {
3252
3028
  zero: 0,
3253
3029
  one: 1,
3254
3030
  two: 2,
@@ -3256,21 +3032,21 @@ const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3256
3032
  many: 4,
3257
3033
  other: 5
3258
3034
  };
3259
- function qa() {
3035
+ function $a() {
3260
3036
  const n = {};
3261
- return Ka.forEach((e) => {
3037
+ return Va.forEach((e) => {
3262
3038
  e.lngs.forEach((t) => {
3263
3039
  n[t] = {
3264
3040
  numbers: e.nr,
3265
- plurals: Ga[e.fc]
3041
+ plurals: _a[e.fc]
3266
3042
  };
3267
3043
  });
3268
3044
  }), n;
3269
3045
  }
3270
- class Ha {
3046
+ class ja {
3271
3047
  constructor(e) {
3272
3048
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3273
- this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || Ja.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = qa();
3049
+ this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || Ma.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = $a();
3274
3050
  }
3275
3051
  addRule(e, t) {
3276
3052
  this.rules[e] = t;
@@ -3279,7 +3055,7 @@ class Ha {
3279
3055
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3280
3056
  if (this.shouldUseIntlApi())
3281
3057
  try {
3282
- return new Intl.PluralRules(ke(e), {
3058
+ return new Intl.PluralRules(me(e), {
3283
3059
  type: t.ordinal ? "ordinal" : "cardinal"
3284
3060
  });
3285
3061
  } catch {
@@ -3299,7 +3075,7 @@ class Ha {
3299
3075
  getSuffixes(e) {
3300
3076
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3301
3077
  const i = this.getRule(e, t);
3302
- return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => bt[a] - bt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3078
+ return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => ct[a] - ct[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3303
3079
  }
3304
3080
  getSuffix(e, t) {
3305
3081
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -3314,17 +3090,17 @@ class Ha {
3314
3090
  return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? `_plural_${a.toString()}` : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? s() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
3315
3091
  }
3316
3092
  shouldUseIntlApi() {
3317
- return !Wa.includes(this.options.compatibilityJSON);
3093
+ return !Ua.includes(this.options.compatibilityJSON);
3318
3094
  }
3319
3095
  }
3320
- function Ft(n, e, t) {
3321
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = ja(n, e, t);
3322
- return !s && a && typeof t == "string" && (s = ge(n, t, i), s === void 0 && (s = ge(e, t, i))), s;
3096
+ function mt(n, e, t) {
3097
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Ia(n, e, t);
3098
+ return !s && a && typeof t == "string" && (s = ce(n, t, i), s === void 0 && (s = ce(e, t, i))), s;
3323
3099
  }
3324
- class Za {
3100
+ class za {
3325
3101
  constructor() {
3326
3102
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3327
- this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3103
+ this.logger = $.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3328
3104
  }
3329
3105
  init() {
3330
3106
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -3332,7 +3108,7 @@ class Za {
3332
3108
  escapeValue: !0
3333
3109
  });
3334
3110
  const t = e.interpolation;
3335
- this.escape = t.escape !== void 0 ? t.escape : za, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? Q(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? Q(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? Q(t.nestingPrefix) : t.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = t.nestingSuffix ? Q(t.nestingSuffix) : t.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
3111
+ this.escape = t.escape !== void 0 ? t.escape : La, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? B(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? B(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? B(t.nestingPrefix) : t.nestingPrefixEscaped || B("$t("), this.nestingSuffix = t.nestingSuffix ? B(t.nestingSuffix) : t.nestingSuffixEscaped || B(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
3336
3112
  }
3337
3113
  reset() {
3338
3114
  this.options && this.init(this.options);
@@ -3347,41 +3123,41 @@ class Za {
3347
3123
  }
3348
3124
  interpolate(e, t, i, a) {
3349
3125
  let s, r, o;
3350
- const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
3351
- function l(S) {
3352
- return S.replace(/\$/g, "$$$$");
3353
- }
3354
- const u = (S) => {
3355
- if (S.indexOf(this.formatSeparator) < 0) {
3356
- const w = Ft(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure);
3357
- return this.alwaysFormat ? this.format(w, void 0, i, {
3126
+ const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
3127
+ function u(y) {
3128
+ return y.replace(/\$/g, "$$$$");
3129
+ }
3130
+ const d = (y) => {
3131
+ if (y.indexOf(this.formatSeparator) < 0) {
3132
+ const F = mt(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
3133
+ return this.alwaysFormat ? this.format(F, void 0, i, {
3358
3134
  ...a,
3359
3135
  ...t,
3360
- interpolationkey: S
3361
- }) : w;
3136
+ interpolationkey: y
3137
+ }) : F;
3362
3138
  }
3363
- const k = S.split(this.formatSeparator), y = k.shift().trim(), F = k.join(this.formatSeparator).trim();
3364
- return this.format(Ft(t, d, y, this.options.keySeparator, this.options.ignoreJSONStructure), F, i, {
3139
+ const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
3140
+ return this.format(mt(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
3365
3141
  ...a,
3366
3142
  ...t,
3367
- interpolationkey: y
3143
+ interpolationkey: N
3368
3144
  });
3369
3145
  };
3370
3146
  this.resetRegExp();
3371
- const p = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3147
+ const f = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3372
3148
  return [{
3373
3149
  regex: this.regexpUnescape,
3374
- safeValue: (S) => l(S)
3150
+ safeValue: (y) => u(y)
3375
3151
  }, {
3376
3152
  regex: this.regexp,
3377
- safeValue: (S) => this.escapeValue ? l(this.escape(S)) : l(S)
3378
- }].forEach((S) => {
3379
- for (o = 0; s = S.regex.exec(e); ) {
3153
+ safeValue: (y) => this.escapeValue ? u(this.escape(y)) : u(y)
3154
+ }].forEach((y) => {
3155
+ for (o = 0; s = y.regex.exec(e); ) {
3380
3156
  const k = s[1].trim();
3381
- if (r = u(k), r === void 0)
3382
- if (typeof p == "function") {
3383
- const F = p(e, s, a);
3384
- r = typeof F == "string" ? F : "";
3157
+ if (r = d(k), r === void 0)
3158
+ if (typeof f == "function") {
3159
+ const O = f(e, s, a);
3160
+ r = typeof O == "string" ? O : "";
3385
3161
  } else if (a && Object.prototype.hasOwnProperty.call(a, k))
3386
3162
  r = "";
3387
3163
  else if (c) {
@@ -3390,47 +3166,47 @@ class Za {
3390
3166
  } else
3391
3167
  this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
3392
3168
  else
3393
- typeof r != "string" && !this.useRawValueToEscape && (r = kt(r));
3394
- const y = S.safeValue(r);
3395
- if (e = e.replace(s[0], y), c ? (S.regex.lastIndex += r.length, S.regex.lastIndex -= s[0].length) : S.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3169
+ typeof r != "string" && !this.useRawValueToEscape && (r = rt(r));
3170
+ const N = y.safeValue(r);
3171
+ if (e = e.replace(s[0], N), c ? (y.regex.lastIndex += r.length, y.regex.lastIndex -= s[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3396
3172
  break;
3397
3173
  }
3398
3174
  }), e;
3399
3175
  }
3400
3176
  nest(e, t) {
3401
3177
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a, s, r;
3402
- function o(d, l) {
3403
- const u = this.nestingOptionsSeparator;
3404
- if (d.indexOf(u) < 0)
3405
- return d;
3406
- const p = d.split(new RegExp(`${u}[ ]*{`));
3407
- let c = `{${p[1]}`;
3408
- d = p[0], c = this.interpolate(c, r);
3409
- const v = c.match(/'/g), S = c.match(/"/g);
3410
- (v && v.length % 2 === 0 && !S || S.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
3178
+ function o(l, u) {
3179
+ const d = this.nestingOptionsSeparator;
3180
+ if (l.indexOf(d) < 0)
3181
+ return l;
3182
+ const f = l.split(new RegExp(`${d}[ ]*{`));
3183
+ let c = `{${f[1]}`;
3184
+ l = f[0], c = this.interpolate(c, r);
3185
+ const S = c.match(/'/g), y = c.match(/"/g);
3186
+ (S && S.length % 2 === 0 && !y || y.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
3411
3187
  try {
3412
- r = JSON.parse(c), l && (r = {
3413
- ...l,
3188
+ r = JSON.parse(c), u && (r = {
3189
+ ...u,
3414
3190
  ...r
3415
3191
  });
3416
3192
  } catch (k) {
3417
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, k), `${d}${u}${c}`;
3193
+ return this.logger.warn(`failed parsing options string in nesting for key ${l}`, k), `${l}${d}${c}`;
3418
3194
  }
3419
- return delete r.defaultValue, d;
3195
+ return delete r.defaultValue, l;
3420
3196
  }
3421
3197
  for (; a = this.nestingRegexp.exec(e); ) {
3422
- let d = [];
3198
+ let l = [];
3423
3199
  r = {
3424
3200
  ...i
3425
3201
  }, r = r.replace && typeof r.replace != "string" ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
3426
- let l = !1;
3202
+ let u = !1;
3427
3203
  if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
3428
- const u = a[1].split(this.formatSeparator).map((p) => p.trim());
3429
- a[1] = u.shift(), d = u, l = !0;
3204
+ const d = a[1].split(this.formatSeparator).map((f) => f.trim());
3205
+ a[1] = d.shift(), l = d, u = !0;
3430
3206
  }
3431
3207
  if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
3432
3208
  return s;
3433
- typeof s != "string" && (s = kt(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), l && (s = d.reduce((u, p) => this.format(u, p, i.lng, {
3209
+ typeof s != "string" && (s = rt(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), u && (s = l.reduce((d, f) => this.format(d, f, i.lng, {
3434
3210
  ...i,
3435
3211
  interpolationkey: a[1].trim()
3436
3212
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -3438,7 +3214,7 @@ class Za {
3438
3214
  return e;
3439
3215
  }
3440
3216
  }
3441
- function Xa(n) {
3217
+ function Ba(n) {
3442
3218
  let e = n.toLowerCase().trim();
3443
3219
  const t = {};
3444
3220
  if (n.indexOf("(") > -1) {
@@ -3448,8 +3224,8 @@ function Xa(n) {
3448
3224
  e === "currency" && a.indexOf(":") < 0 ? t.currency || (t.currency = a.trim()) : e === "relativetime" && a.indexOf(":") < 0 ? t.range || (t.range = a.trim()) : a.split(";").forEach((r) => {
3449
3225
  if (!r)
3450
3226
  return;
3451
- const [o, ...d] = r.split(":"), l = d.join(":").trim().replace(/^'+|'+$/g, "");
3452
- t[o.trim()] || (t[o.trim()] = l), l === "false" && (t[o.trim()] = !1), l === "true" && (t[o.trim()] = !0), isNaN(l) || (t[o.trim()] = parseInt(l, 10));
3227
+ const [o, ...l] = r.split(":"), u = l.join(":").trim().replace(/^'+|'+$/g, "");
3228
+ t[o.trim()] || (t[o.trim()] = u), u === "false" && (t[o.trim()] = !1), u === "true" && (t[o.trim()] = !0), isNaN(u) || (t[o.trim()] = parseInt(u, 10));
3453
3229
  });
3454
3230
  }
3455
3231
  return {
@@ -3457,44 +3233,44 @@ function Xa(n) {
3457
3233
  formatOptions: t
3458
3234
  };
3459
3235
  }
3460
- function K(n) {
3236
+ function Q(n) {
3461
3237
  const e = {};
3462
3238
  return function(i, a, s) {
3463
3239
  const r = a + JSON.stringify(s);
3464
3240
  let o = e[r];
3465
- return o || (o = n(ke(a), s), e[r] = o), o(i);
3241
+ return o || (o = n(me(a), s), e[r] = o), o(i);
3466
3242
  };
3467
3243
  }
3468
- class Ya {
3244
+ class Qa {
3469
3245
  constructor() {
3470
3246
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3471
- this.logger = j.create("formatter"), this.options = e, this.formats = {
3472
- number: K((t, i) => {
3247
+ this.logger = $.create("formatter"), this.options = e, this.formats = {
3248
+ number: Q((t, i) => {
3473
3249
  const a = new Intl.NumberFormat(t, {
3474
3250
  ...i
3475
3251
  });
3476
3252
  return (s) => a.format(s);
3477
3253
  }),
3478
- currency: K((t, i) => {
3254
+ currency: Q((t, i) => {
3479
3255
  const a = new Intl.NumberFormat(t, {
3480
3256
  ...i,
3481
3257
  style: "currency"
3482
3258
  });
3483
3259
  return (s) => a.format(s);
3484
3260
  }),
3485
- datetime: K((t, i) => {
3261
+ datetime: Q((t, i) => {
3486
3262
  const a = new Intl.DateTimeFormat(t, {
3487
3263
  ...i
3488
3264
  });
3489
3265
  return (s) => a.format(s);
3490
3266
  }),
3491
- relativetime: K((t, i) => {
3267
+ relativetime: Q((t, i) => {
3492
3268
  const a = new Intl.RelativeTimeFormat(t, {
3493
3269
  ...i
3494
3270
  });
3495
3271
  return (s) => a.format(s, i.range || "day");
3496
3272
  }),
3497
- list: K((t, i) => {
3273
+ list: Q((t, i) => {
3498
3274
  const a = new Intl.ListFormat(t, {
3499
3275
  ...i
3500
3276
  });
@@ -3512,50 +3288,50 @@ class Ya {
3512
3288
  this.formats[e.toLowerCase().trim()] = t;
3513
3289
  }
3514
3290
  addCached(e, t) {
3515
- this.formats[e.toLowerCase().trim()] = K(t);
3291
+ this.formats[e.toLowerCase().trim()] = Q(t);
3516
3292
  }
3517
3293
  format(e, t, i) {
3518
3294
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3519
- return t.split(this.formatSeparator).reduce((o, d) => {
3295
+ return t.split(this.formatSeparator).reduce((o, l) => {
3520
3296
  const {
3521
- formatName: l,
3522
- formatOptions: u
3523
- } = Xa(d);
3524
- if (this.formats[l]) {
3525
- let p = o;
3297
+ formatName: u,
3298
+ formatOptions: d
3299
+ } = Ba(l);
3300
+ if (this.formats[u]) {
3301
+ let f = o;
3526
3302
  try {
3527
- const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, v = c.locale || c.lng || a.locale || a.lng || i;
3528
- p = this.formats[l](o, v, {
3529
- ...u,
3303
+ const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, S = c.locale || c.lng || a.locale || a.lng || i;
3304
+ f = this.formats[u](o, S, {
3305
+ ...d,
3530
3306
  ...a,
3531
3307
  ...c
3532
3308
  });
3533
3309
  } catch (c) {
3534
3310
  this.logger.warn(c);
3535
3311
  }
3536
- return p;
3312
+ return f;
3537
3313
  } else
3538
- this.logger.warn(`there was no format function for ${l}`);
3314
+ this.logger.warn(`there was no format function for ${u}`);
3539
3315
  return o;
3540
3316
  }, e);
3541
3317
  }
3542
3318
  }
3543
- function es(n, e) {
3319
+ function Ga(n, e) {
3544
3320
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3545
3321
  }
3546
- class ts extends Ne {
3322
+ class Ka extends ke {
3547
3323
  constructor(e, t, i) {
3548
3324
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3549
- super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = j.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
3325
+ super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
3550
3326
  }
3551
3327
  queueLoad(e, t, i, a) {
3552
- const s = {}, r = {}, o = {}, d = {};
3553
- return e.forEach((l) => {
3554
- let u = !0;
3555
- t.forEach((p) => {
3556
- const c = `${l}|${p}`;
3557
- !i.reload && this.store.hasResourceBundle(l, p) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, u = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), d[p] === void 0 && (d[p] = !0)));
3558
- }), u || (o[l] = !0);
3328
+ const s = {}, r = {}, o = {}, l = {};
3329
+ return e.forEach((u) => {
3330
+ let d = !0;
3331
+ t.forEach((f) => {
3332
+ const c = `${u}|${f}`;
3333
+ !i.reload && this.store.hasResourceBundle(u, f) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, d = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), l[f] === void 0 && (l[f] = !0)));
3334
+ }), d || (o[u] = !0);
3559
3335
  }), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
3560
3336
  pending: r,
3561
3337
  pendingCount: Object.keys(r).length,
@@ -3566,22 +3342,22 @@ class ts extends Ne {
3566
3342
  toLoad: Object.keys(s),
3567
3343
  pending: Object.keys(r),
3568
3344
  toLoadLanguages: Object.keys(o),
3569
- toLoadNamespaces: Object.keys(d)
3345
+ toLoadNamespaces: Object.keys(l)
3570
3346
  };
3571
3347
  }
3572
3348
  loaded(e, t, i) {
3573
3349
  const a = e.split("|"), s = a[0], r = a[1];
3574
3350
  t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
3575
3351
  const o = {};
3576
- this.queue.forEach((d) => {
3577
- Ma(d.loaded, [s], r), es(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
3578
- o[l] || (o[l] = {});
3579
- const u = d.loaded[l];
3580
- u.length && u.forEach((p) => {
3581
- o[l][p] === void 0 && (o[l][p] = !0);
3352
+ this.queue.forEach((l) => {
3353
+ Ta(l.loaded, [s], r), Ga(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
3354
+ o[u] || (o[u] = {});
3355
+ const d = l.loaded[u];
3356
+ d.length && d.forEach((f) => {
3357
+ o[u][f] === void 0 && (o[u][f] = !0);
3582
3358
  });
3583
- }), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
3584
- }), this.emit("loaded", o), this.queue = this.queue.filter((d) => !d.done);
3359
+ }), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
3360
+ }), this.emit("loaded", o), this.queue = this.queue.filter((l) => !l.done);
3585
3361
  }
3586
3362
  read(e, t, i) {
3587
3363
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, r = arguments.length > 5 ? arguments[5] : void 0;
@@ -3599,29 +3375,29 @@ class ts extends Ne {
3599
3375
  return;
3600
3376
  }
3601
3377
  this.readingCalls++;
3602
- const o = (l, u) => {
3378
+ const o = (u, d) => {
3603
3379
  if (this.readingCalls--, this.waitingReads.length > 0) {
3604
- const p = this.waitingReads.shift();
3605
- this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
3380
+ const f = this.waitingReads.shift();
3381
+ this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
3606
3382
  }
3607
- if (l && u && a < this.maxRetries) {
3383
+ if (u && d && a < this.maxRetries) {
3608
3384
  setTimeout(() => {
3609
3385
  this.read.call(this, e, t, i, a + 1, s * 2, r);
3610
3386
  }, s);
3611
3387
  return;
3612
3388
  }
3613
- r(l, u);
3614
- }, d = this.backend[i].bind(this.backend);
3615
- if (d.length === 2) {
3389
+ r(u, d);
3390
+ }, l = this.backend[i].bind(this.backend);
3391
+ if (l.length === 2) {
3616
3392
  try {
3617
- const l = d(e, t);
3618
- l && typeof l.then == "function" ? l.then((u) => o(null, u)).catch(o) : o(null, l);
3619
- } catch (l) {
3620
- o(l);
3393
+ const u = l(e, t);
3394
+ u && typeof u.then == "function" ? u.then((d) => o(null, d)).catch(o) : o(null, u);
3395
+ } catch (u) {
3396
+ o(u);
3621
3397
  }
3622
3398
  return;
3623
3399
  }
3624
- return d(e, t, o);
3400
+ return l(e, t, o);
3625
3401
  }
3626
3402
  prepareLoading(e, t) {
3627
3403
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
@@ -3659,25 +3435,25 @@ class ts extends Ne {
3659
3435
  }
3660
3436
  if (!(i == null || i === "")) {
3661
3437
  if (this.backend && this.backend.create) {
3662
- const d = {
3438
+ const l = {
3663
3439
  ...r,
3664
3440
  isUpdate: s
3665
- }, l = this.backend.create.bind(this.backend);
3666
- if (l.length < 6)
3441
+ }, u = this.backend.create.bind(this.backend);
3442
+ if (u.length < 6)
3667
3443
  try {
3668
- let u;
3669
- l.length === 5 ? u = l(e, t, i, a, d) : u = l(e, t, i, a), u && typeof u.then == "function" ? u.then((p) => o(null, p)).catch(o) : o(null, u);
3670
- } catch (u) {
3671
- o(u);
3444
+ let d;
3445
+ u.length === 5 ? d = u(e, t, i, a, l) : d = u(e, t, i, a), d && typeof d.then == "function" ? d.then((f) => o(null, f)).catch(o) : o(null, d);
3446
+ } catch (d) {
3447
+ o(d);
3672
3448
  }
3673
3449
  else
3674
- l(e, t, i, a, o, d);
3450
+ u(e, t, i, a, o, l);
3675
3451
  }
3676
3452
  !e || !e[0] || this.store.addResource(e[0], t, i, a);
3677
3453
  }
3678
3454
  }
3679
3455
  }
3680
- function wt() {
3456
+ function ft() {
3681
3457
  return {
3682
3458
  debug: !1,
3683
3459
  initImmediate: !0,
@@ -3736,22 +3512,22 @@ function wt() {
3736
3512
  }
3737
3513
  };
3738
3514
  }
3739
- function Ct(n) {
3515
+ function pt(n) {
3740
3516
  return typeof n.ns == "string" && (n.ns = [n.ns]), typeof n.fallbackLng == "string" && (n.fallbackLng = [n.fallbackLng]), typeof n.fallbackNS == "string" && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && n.supportedLngs.indexOf("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n;
3741
3517
  }
3742
- function le() {
3518
+ function se() {
3743
3519
  }
3744
- function ns(n) {
3520
+ function Wa(n) {
3745
3521
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3746
3522
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
3747
3523
  });
3748
3524
  }
3749
- class ae extends Ne {
3525
+ class te extends ke {
3750
3526
  constructor() {
3751
3527
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3752
- if (super(), this.options = Ct(e), this.services = {}, this.logger = j, this.modules = {
3528
+ if (super(), this.options = pt(e), this.services = {}, this.logger = $, this.modules = {
3753
3529
  external: []
3754
- }, ns(this), t && !this.isInitialized && !e.isClone) {
3530
+ }, Wa(this), t && !this.isInitialized && !e.isClone) {
3755
3531
  if (!this.options.initImmediate)
3756
3532
  return this.init(e, t), this;
3757
3533
  setTimeout(() => {
@@ -3763,68 +3539,68 @@ class ae extends Ne {
3763
3539
  var e = this;
3764
3540
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
3765
3541
  typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
3766
- const a = wt();
3542
+ const a = ft();
3767
3543
  this.options = {
3768
3544
  ...a,
3769
3545
  ...this.options,
3770
- ...Ct(t)
3546
+ ...pt(t)
3771
3547
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
3772
3548
  ...a.interpolation,
3773
3549
  ...this.options.interpolation
3774
3550
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
3775
- function s(u) {
3776
- return u ? typeof u == "function" ? new u() : u : null;
3551
+ function s(d) {
3552
+ return d ? typeof d == "function" ? new d() : d : null;
3777
3553
  }
3778
3554
  if (!this.options.isClone) {
3779
- this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
3780
- let u;
3781
- this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = Ya);
3782
- const p = new Nt(this.options);
3783
- this.store = new St(this.options.resources, this.options);
3555
+ this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
3556
+ let d;
3557
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Qa);
3558
+ const f = new ut(this.options);
3559
+ this.store = new lt(this.options.resources, this.options);
3784
3560
  const c = this.services;
3785
- c.logger = j, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new Ha(p, {
3561
+ c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new ja(f, {
3786
3562
  prepend: this.options.pluralSeparator,
3787
3563
  compatibilityJSON: this.options.compatibilityJSON,
3788
3564
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3789
- }), u && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(u), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new Za(this.options), c.utils = {
3565
+ }), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new za(this.options), c.utils = {
3790
3566
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3791
- }, c.backendConnector = new ts(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
3792
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3793
- k[y - 1] = arguments[y];
3794
- e.emit(v, ...k);
3795
- }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new ve(this.services, this.options), this.translator.on("*", function(v) {
3796
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3797
- k[y - 1] = arguments[y];
3798
- e.emit(v, ...k);
3799
- }), this.modules.external.forEach((v) => {
3800
- v.init && v.init(this);
3567
+ }, c.backendConnector = new Ka(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
3568
+ for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3569
+ k[N - 1] = arguments[N];
3570
+ e.emit(S, ...k);
3571
+ }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new fe(this.services, this.options), this.translator.on("*", function(S) {
3572
+ for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3573
+ k[N - 1] = arguments[N];
3574
+ e.emit(S, ...k);
3575
+ }), this.modules.external.forEach((S) => {
3576
+ S.init && S.init(this);
3801
3577
  });
3802
3578
  }
3803
- if (this.format = this.options.interpolation.format, i || (i = le), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3804
- const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3805
- u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]);
3579
+ if (this.format = this.options.interpolation.format, i || (i = se), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3580
+ const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3581
+ d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
3806
3582
  }
3807
- !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((u) => {
3808
- this[u] = function() {
3809
- return e.store[u](...arguments);
3583
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((d) => {
3584
+ this[d] = function() {
3585
+ return e.store[d](...arguments);
3810
3586
  };
3811
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((u) => {
3812
- this[u] = function() {
3813
- return e.store[u](...arguments), e;
3587
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((d) => {
3588
+ this[d] = function() {
3589
+ return e.store[d](...arguments), e;
3814
3590
  };
3815
3591
  });
3816
- const d = X(), l = () => {
3817
- const u = (p, c) => {
3818
- this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(c), i(p, c);
3592
+ const l = Z(), u = () => {
3593
+ const d = (f, c) => {
3594
+ this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(c), i(f, c);
3819
3595
  };
3820
3596
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
3821
- return u(null, this.t.bind(this));
3822
- this.changeLanguage(this.options.lng, u);
3597
+ return d(null, this.t.bind(this));
3598
+ this.changeLanguage(this.options.lng, d);
3823
3599
  };
3824
- return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), d;
3600
+ return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), l;
3825
3601
  }
3826
3602
  loadResources(e) {
3827
- let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3603
+ let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : se;
3828
3604
  const a = typeof e == "string" ? e : this.language;
3829
3605
  if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
3830
3606
  if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
@@ -3832,19 +3608,19 @@ class ae extends Ne {
3832
3608
  const s = [], r = (o) => {
3833
3609
  if (!o || o === "cimode")
3834
3610
  return;
3835
- this.services.languageUtils.toResolveHierarchy(o).forEach((l) => {
3836
- l !== "cimode" && s.indexOf(l) < 0 && s.push(l);
3611
+ this.services.languageUtils.toResolveHierarchy(o).forEach((u) => {
3612
+ u !== "cimode" && s.indexOf(u) < 0 && s.push(u);
3837
3613
  });
3838
3614
  };
3839
- a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => r(d)), this.options.preload && this.options.preload.forEach((o) => r(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
3615
+ a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => r(l)), this.options.preload && this.options.preload.forEach((o) => r(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
3840
3616
  !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(o);
3841
3617
  });
3842
3618
  } else
3843
3619
  i(null);
3844
3620
  }
3845
3621
  reloadResources(e, t, i) {
3846
- const a = X();
3847
- return e || (e = this.languages), t || (t = this.options.ns), i || (i = le), this.services.backendConnector.reload(e, t, (s) => {
3622
+ const a = Z();
3623
+ return e || (e = this.languages), t || (t = this.options.ns), i || (i = se), this.services.backendConnector.reload(e, t, (s) => {
3848
3624
  a.resolve(), i(s);
3849
3625
  }), a;
3850
3626
  }
@@ -3853,7 +3629,7 @@ class ae extends Ne {
3853
3629
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3854
3630
  if (!e.type)
3855
3631
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3856
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Yt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3632
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && $t.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3857
3633
  }
3858
3634
  setResolvedLanguage(e) {
3859
3635
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -3868,21 +3644,21 @@ class ae extends Ne {
3868
3644
  changeLanguage(e, t) {
3869
3645
  var i = this;
3870
3646
  this.isLanguageChangingTo = e;
3871
- const a = X();
3647
+ const a = Z();
3872
3648
  this.emit("languageChanging", e);
3873
- const s = (d) => {
3874
- this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
3875
- }, r = (d, l) => {
3876
- l ? (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, a.resolve(function() {
3649
+ const s = (l) => {
3650
+ this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
3651
+ }, r = (l, u) => {
3652
+ u ? (s(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, a.resolve(function() {
3877
3653
  return i.t(...arguments);
3878
- }), t && t(d, function() {
3654
+ }), t && t(l, function() {
3879
3655
  return i.t(...arguments);
3880
3656
  });
3881
- }, o = (d) => {
3882
- !e && !d && this.services.languageDetector && (d = []);
3883
- const l = typeof d == "string" ? d : this.services.languageUtils.getBestMatchFromCodes(d);
3884
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(l)), this.loadResources(l, (u) => {
3885
- r(u, l);
3657
+ }, o = (l) => {
3658
+ !e && !l && this.services.languageDetector && (l = []);
3659
+ const u = typeof l == "string" ? l : this.services.languageUtils.getBestMatchFromCodes(l);
3660
+ u && (this.language || s(u), this.translator.language || this.translator.changeLanguage(u), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(u)), this.loadResources(u, (d) => {
3661
+ r(d, u);
3886
3662
  });
3887
3663
  };
3888
3664
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), a;
@@ -3890,19 +3666,19 @@ class ae extends Ne {
3890
3666
  getFixedT(e, t, i) {
3891
3667
  var a = this;
3892
3668
  const s = function(r, o) {
3893
- let d;
3669
+ let l;
3894
3670
  if (typeof o != "object") {
3895
- for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0), p = 2; p < l; p++)
3896
- u[p - 2] = arguments[p];
3897
- d = a.options.overloadTranslationOptionHandler([r, o].concat(u));
3671
+ for (var u = arguments.length, d = new Array(u > 2 ? u - 2 : 0), f = 2; f < u; f++)
3672
+ d[f - 2] = arguments[f];
3673
+ l = a.options.overloadTranslationOptionHandler([r, o].concat(d));
3898
3674
  } else
3899
- d = {
3675
+ l = {
3900
3676
  ...o
3901
3677
  };
3902
- d.lng = d.lng || s.lng, d.lngs = d.lngs || s.lngs, d.ns = d.ns || s.ns, d.keyPrefix = d.keyPrefix || i || s.keyPrefix;
3678
+ l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix = l.keyPrefix || i || s.keyPrefix;
3903
3679
  const c = a.options.keySeparator || ".";
3904
- let v;
3905
- return d.keyPrefix && Array.isArray(r) ? v = r.map((S) => `${d.keyPrefix}${c}${S}`) : v = d.keyPrefix ? `${d.keyPrefix}${c}${r}` : r, a.t(v, d);
3680
+ let S;
3681
+ return l.keyPrefix && Array.isArray(r) ? S = r.map((y) => `${l.keyPrefix}${c}${y}`) : S = l.keyPrefix ? `${l.keyPrefix}${c}${r}` : r, a.t(S, l);
3906
3682
  };
3907
3683
  return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
3908
3684
  }
@@ -3924,9 +3700,9 @@ class ae extends Ne {
3924
3700
  const i = t.lng || this.resolvedLanguage || this.languages[0], a = this.options ? this.options.fallbackLng : !1, s = this.languages[this.languages.length - 1];
3925
3701
  if (i.toLowerCase() === "cimode")
3926
3702
  return !0;
3927
- const r = (o, d) => {
3928
- const l = this.services.backendConnector.state[`${o}|${d}`];
3929
- return l === -1 || l === 2;
3703
+ const r = (o, l) => {
3704
+ const u = this.services.backendConnector.state[`${o}|${l}`];
3705
+ return u === -1 || u === 2;
3930
3706
  };
3931
3707
  if (t.precheck) {
3932
3708
  const o = t.precheck(this, r);
@@ -3936,7 +3712,7 @@ class ae extends Ne {
3936
3712
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
3937
3713
  }
3938
3714
  loadNamespaces(e, t) {
3939
- const i = X();
3715
+ const i = Z();
3940
3716
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
3941
3717
  this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
3942
3718
  }), this.loadResources((a) => {
@@ -3944,7 +3720,7 @@ class ae extends Ne {
3944
3720
  }), i) : (t && t(), Promise.resolve());
3945
3721
  }
3946
3722
  loadLanguages(e, t) {
3947
- const i = X();
3723
+ const i = Z();
3948
3724
  typeof e == "string" && (e = [e]);
3949
3725
  const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
3950
3726
  return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
@@ -3954,32 +3730,32 @@ class ae extends Ne {
3954
3730
  dir(e) {
3955
3731
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
3956
3732
  return "rtl";
3957
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new Nt(wt());
3733
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new ut(ft());
3958
3734
  return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3959
3735
  }
3960
3736
  static createInstance() {
3961
3737
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3962
- return new ae(e, t);
3738
+ return new te(e, t);
3963
3739
  }
3964
3740
  cloneInstance() {
3965
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3741
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : se;
3966
3742
  const i = e.forkResourceStore;
3967
3743
  i && delete e.forkResourceStore;
3968
3744
  const a = {
3969
3745
  ...this.options,
3970
3746
  ...e,
3971
3747
  isClone: !0
3972
- }, s = new ae(a);
3748
+ }, s = new te(a);
3973
3749
  return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
3974
3750
  s[o] = this[o];
3975
3751
  }), s.services = {
3976
3752
  ...this.services
3977
3753
  }, s.services.utils = {
3978
3754
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3979
- }, i && (s.store = new St(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ve(s.services, a), s.translator.on("*", function(o) {
3980
- for (var d = arguments.length, l = new Array(d > 1 ? d - 1 : 0), u = 1; u < d; u++)
3981
- l[u - 1] = arguments[u];
3982
- s.emit(o, ...l);
3755
+ }, i && (s.store = new lt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new fe(s.services, a), s.translator.on("*", function(o) {
3756
+ for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
3757
+ u[d - 1] = arguments[d];
3758
+ s.emit(o, ...u);
3983
3759
  }), s.init(a, t), s.translator.options = a, s.translator.backendConnector.services.utils = {
3984
3760
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3985
3761
  }, s;
@@ -3994,8 +3770,8 @@ class ae extends Ne {
3994
3770
  };
3995
3771
  }
3996
3772
  }
3997
- const U = ae.createInstance();
3998
- U.createInstance = ae.createInstance;
3773
+ const U = te.createInstance();
3774
+ U.createInstance = te.createInstance;
3999
3775
  U.createInstance;
4000
3776
  U.dir;
4001
3777
  U.init;
@@ -4010,7 +3786,7 @@ U.setDefaultNamespace;
4010
3786
  U.hasLoadedNamespace;
4011
3787
  U.loadNamespaces;
4012
3788
  U.loadLanguages;
4013
- const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, as = {
3789
+ const Ja = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, qa = {
4014
3790
  "&amp;": "&",
4015
3791
  "&#38;": "&",
4016
3792
  "&lt;": "<",
@@ -4031,8 +3807,8 @@ const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
4031
3807
  "&#8230;": "…",
4032
3808
  "&#x2F;": "/",
4033
3809
  "&#47;": "/"
4034
- }, ss = (n) => as[n], rs = (n) => n.replace(is, ss);
4035
- let Et = {
3810
+ }, Ha = (n) => qa[n], Za = (n) => n.replace(Ja, Ha);
3811
+ let ht = {
4036
3812
  bindI18n: "languageChanged",
4037
3813
  bindI18nStore: "",
4038
3814
  transEmptyNodeValue: "",
@@ -4040,73 +3816,73 @@ let Et = {
4040
3816
  transWrapTextNodes: "",
4041
3817
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
4042
3818
  useSuspense: !0,
4043
- unescape: rs
3819
+ unescape: Za
4044
3820
  };
4045
- function os() {
3821
+ function Xa() {
4046
3822
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4047
- Et = {
4048
- ...Et,
3823
+ ht = {
3824
+ ...ht,
4049
3825
  ...n
4050
3826
  };
4051
3827
  }
4052
- const ls = {
3828
+ const Ya = {
4053
3829
  type: "3rdParty",
4054
3830
  init(n) {
4055
- os(n.options.react);
3831
+ Xa(n.options.react);
4056
3832
  }
4057
3833
  };
4058
- Va(U, ls);
4059
- const er = (n) => va(U, n);
4060
- let Ge = /* @__PURE__ */ new Map();
4061
- const Ie = Ot(Ge), tr = ({ children: n, stores: e }) => {
4062
- const t = Pe(Ie), i = Tt(() => {
3834
+ xa(U, Ya);
3835
+ const Gs = (n) => da(U, n);
3836
+ let Ve = /* @__PURE__ */ new Map();
3837
+ const Ee = gt(Ve), Ks = ({ children: n, stores: e }) => {
3838
+ const t = xe(Ee), i = qt(() => {
4063
3839
  const a = /* @__PURE__ */ new Map();
4064
- return e.forEach((s) => a.set(s.class, s.value)), Ge = new Map([...t, ...a]);
3840
+ return e.forEach((s) => a.set(s.class, s.value)), Ve = new Map([...t, ...a]);
4065
3841
  }, []);
4066
- return /* @__PURE__ */ on(Ie.Provider, { value: i, children: n });
3842
+ return /* @__PURE__ */ Ht(Ee.Provider, { value: i, children: n });
4067
3843
  };
4068
- function nr(n) {
4069
- return Pe(Ie).get(n);
3844
+ function Ws(n) {
3845
+ return xe(Ee).get(n);
4070
3846
  }
4071
- function ir(n) {
4072
- return Ge.get(n);
3847
+ function Js(n) {
3848
+ return Ve.get(n);
4073
3849
  }
4074
- var en = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(en || {}), tn = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(tn || {}), nn = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(nn || {});
4075
- const ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, 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: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, 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: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, 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: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, 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: "ChatMessageArray" } }, 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: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { 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" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, 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: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { 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" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, 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: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, 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: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { 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" } }] } }] } }] } }] }, Rs = { 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" } }] } }] } }] } }] }, xs = { 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" } }] } }] } }] } }] }, Ts = { 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" } }] } }] } }] } }] }, Ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, 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: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ls = { 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" } }] } }] } }] } }] }, Is = { 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: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, As = { 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" } }] } }] } }] } }] } }] }, Ps = { 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: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, Vs = { 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" } }] } }] } }] } }] }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3850
+ var jt = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(jt || {}), zt = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(zt || {}), Bt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(Bt || {});
3851
+ const es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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" } }] } }] } }] } }] }, os = { 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: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { 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" } }] } }] } }] } }] }, ls = { 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" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, 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: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, 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: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, 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: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, 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: "ChatMessageArray" } }, 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: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { 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" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, 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: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { 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" } }] } }] } }] } }] }, ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, 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: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, 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: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, 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: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] } }] }, Es = { 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: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, xs = { 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" } }] } }] } }] } }] }, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4076
3852
  __proto__: null,
4077
- AddCollectionDocument: ds,
4078
- AppendProductsToSnackVideoDocument: Rs,
4079
- BlockUserDocument: vs,
4080
- ChangeAccountUsernameDocument: Ss,
4081
- CreateSnackVideoBatchDocument: xs,
4082
- DeleteAllCustomizationDocument: ws,
4083
- DeleteChatMessageDocument: ys,
4084
- DeleteCollectionDocument: us,
4085
- DeleteRelationshipWithSnackVideoDocument: Ts,
4086
- DeleteSnackVideoDocument: Ds,
4087
- EventStatus: en,
4088
- FindByProductSnackVideoDocument: Vs,
4089
- FindCollectionDocument: cs,
4090
- FindManySnackVideosDocument: Ls,
4091
- FindMinimalEventDocument: gs,
4092
- GetAllChatMessageDocument: Ns,
4093
- GetAllCollectionsDocument: ms,
4094
- GetAllCustomizationDocument: Cs,
4095
- GetAllSnackVideosDocument: Is,
4096
- GetChatRoomTokenDocument: bs,
4097
- GetSnackVideoRelationshipsDocument: As,
4098
- GetTimeLineDocument: Os,
4099
- ManageCollectionProductDocument: fs,
4100
- Methods: tn,
4101
- PinChatMessageDocument: Fs,
4102
- SearchCollectionsDocument: ps,
4103
- SearchMinimalEventsDocument: ks,
4104
- SearchSnackVideosDocument: Ps,
4105
- Status: nn,
4106
- UpdateCollectionDocument: hs,
4107
- UpdateCustomizationDocument: Es
3853
+ AddCollectionDocument: es,
3854
+ AppendProductsToSnackVideoDocument: Ss,
3855
+ BlockUserDocument: ds,
3856
+ ChangeAccountUsernameDocument: us,
3857
+ CreateSnackVideoBatchDocument: ys,
3858
+ DeleteAllCustomizationDocument: hs,
3859
+ DeleteChatMessageDocument: cs,
3860
+ DeleteCollectionDocument: ts,
3861
+ DeleteRelationshipWithSnackVideoDocument: Ns,
3862
+ DeleteSnackVideoDocument: bs,
3863
+ EventStatus: jt,
3864
+ FindByProductSnackVideoDocument: xs,
3865
+ FindCollectionDocument: ns,
3866
+ FindManySnackVideosDocument: Fs,
3867
+ FindMinimalEventDocument: os,
3868
+ GetAllChatMessageDocument: ms,
3869
+ GetAllCollectionsDocument: is,
3870
+ GetAllCustomizationDocument: gs,
3871
+ GetAllSnackVideosDocument: ws,
3872
+ GetChatRoomTokenDocument: fs,
3873
+ GetSnackVideoRelationshipsDocument: Cs,
3874
+ GetTimeLineDocument: vs,
3875
+ ManageCollectionProductDocument: as,
3876
+ Methods: zt,
3877
+ PinChatMessageDocument: ps,
3878
+ SearchCollectionsDocument: ss,
3879
+ SearchMinimalEventsDocument: ls,
3880
+ SearchSnackVideosDocument: Es,
3881
+ Status: Bt,
3882
+ UpdateCollectionDocument: rs,
3883
+ UpdateCustomizationDocument: ks
4108
3884
  }, Symbol.toStringTag, { value: "Module" }));
4109
- function sr(n) {
3885
+ function Hs(n) {
4110
3886
  return {
4111
3887
  class: n,
4112
3888
  _value: null,
@@ -4116,58 +3892,63 @@ function sr(n) {
4116
3892
  };
4117
3893
  }
4118
3894
  export {
4119
- Gt as AccountContractStatusTypes,
4120
- Ni as AccountContractTypes,
4121
- Gs as AccountInvalidError,
4122
- Fi as AccountPlanDescriptionTypes,
4123
- Ei as AccountRestRepository,
4124
- Oi as AccountService,
4125
- bi as AccountSubscriptionTypes,
4126
- Kt as AccountTypes,
4127
- Si as AggregateRoot,
4128
- ar as ApiGraphqlTypes,
4129
- qs as BaseMobxStore,
4130
- Xn as BroadcastChannelEventBus,
4131
- ye as DomainError,
4132
- Xs as EventBusWildcards,
4133
- Ys as EventNames,
4134
- wi as GlobalPageSectionTypes,
4135
- vi as InvalidNizzaGlobalObjectError,
4136
- fa as LanguageTypes,
4137
- ni as Logger,
4138
- ze as NizzaAccount,
4139
- ma as NizzaEventStatus,
4140
- ha as NizzaProductRequestOriginTypes,
4141
- pa as NizzaVariationTypes,
4142
- gi as ResourceNotFoundError,
4143
- tr as StoreProvider,
4144
- ki as UnexpectedError,
4145
- Hs as ValueObject,
4146
- Ve as accountAtom,
4147
- Wt as accountService,
4148
- js as apiCall,
4149
- ga as buildLanguageTranslations,
4150
- ka as buildTranslations,
4151
- ee as coreLogger,
4152
- yi as createAggregateRoot,
4153
- sr as createStore,
4154
- It as customFetch,
4155
- $s as downloadFile,
4156
- Bs as fileOrigin,
4157
- ca as getAccount,
4158
- Js as getClientTimeZone,
4159
- ir as getStore,
4160
- ua as globalAtomStore,
4161
- Va as i18Init,
4162
- On as jsDownload,
4163
- Ks as logger,
4164
- je as nizza,
4165
- er as registerTranslations,
4166
- va as registerTranslationsOf,
4167
- zs as searchParams,
4168
- ei as shortId,
4169
- Zs as useAccount,
4170
- nr as useStore,
4171
- Ws as validateRequiredProps
3895
+ Lt as AccountContractStatusTypes,
3896
+ mi as AccountContractTypes,
3897
+ _s as AccountInvalidError,
3898
+ pi as AccountPlanDescriptionTypes,
3899
+ ki as AccountRestRepository,
3900
+ vi as AccountService,
3901
+ fi as AccountSubscriptionTypes,
3902
+ Dt as AccountTypes,
3903
+ ui as AggregateRoot,
3904
+ qs as ApiGraphqlTypes,
3905
+ $s as BaseMobxStore,
3906
+ Bn as BroadcastChannelEventBus,
3907
+ ge as DomainError,
3908
+ Bs as EventBusWildcards,
3909
+ Qs as EventNames,
3910
+ hi as GlobalPageSectionTypes,
3911
+ di as InvalidNizzaGlobalObjectError,
3912
+ aa as LanguageTypes,
3913
+ De as NizzaAccount,
3914
+ ia as NizzaEventStatus,
3915
+ Fe as NizzaLogger,
3916
+ ra as NizzaProductRequestOriginTypes,
3917
+ sa as NizzaVariationTypes,
3918
+ oi as ResourceNotFoundError,
3919
+ Ks as StoreProvider,
3920
+ li as UnexpectedError,
3921
+ js as ValueObject,
3922
+ Oe as accountAtom,
3923
+ At as accountService,
3924
+ Is as apiCall,
3925
+ oa as buildLanguageTranslations,
3926
+ la as buildTranslations,
3927
+ qn as configure,
3928
+ X as coreLogger,
3929
+ ci as createAggregateRoot,
3930
+ Hs as createStore,
3931
+ yt as customFetch,
3932
+ Ds as downloadFile,
3933
+ As as fileOrigin,
3934
+ na as getAccount,
3935
+ Ms as getClientTimeZone,
3936
+ Wn as getInstance,
3937
+ Js as getStore,
3938
+ ta as globalAtomStore,
3939
+ xa as i18Init,
3940
+ kn as jsDownload,
3941
+ Ps as logger,
3942
+ j as nizza,
3943
+ Vs as nizzaInit,
3944
+ Gs as registerTranslations,
3945
+ da as registerTranslationsOf,
3946
+ Ls as searchParams,
3947
+ Hn as setProductDataSource,
3948
+ Gn as shortId,
3949
+ zs as useAccount,
3950
+ It as useNizza,
3951
+ Ws as useStore,
3952
+ Us as validateRequiredProps
4172
3953
  };
4173
3954
  //# sourceMappingURL=index.mjs.map