@nizza/core 0.5.0-beta.0 → 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,116 +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
- state: z,
1234
- configure: ii,
1235
- setProductDataSource: ai,
1236
- instanceId: ei(),
1237
- log: new ni("nz"),
1238
- eventBus: new Xn("nizza"),
1239
- get account() {
1240
- return z.account;
1241
- },
1242
- get productDataSource() {
1243
- return z.productDataSource;
1244
- }
1245
- }), si = () => {
1246
- if (typeof window != "undefined") {
1247
- if (!window.nizza) {
1248
- const n = tt();
1249
- window.nizza = n, window.nz = n;
1020
+ j.store.setState({ productDataSource: t });
1250
1021
  }
1251
- return window.nizza;
1022
+ } catch (e) {
1023
+ console.error("Error configuring NizzaStore:", e);
1252
1024
  }
1253
- return tt();
1254
- }, je = si(), Ks = je.log.createLogger("main"), ee = je.log.createLogger("core");
1025
+ }
1026
+ function Hn(n) {
1027
+ j.store.setState({ productDataSource: n });
1028
+ }
1255
1029
  function G(n) {
1256
1030
  return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1257
1031
  }
1258
- function de(n) {
1032
+ function re(n) {
1259
1033
  return function e(t) {
1260
1034
  return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1261
1035
  };
1262
1036
  }
1263
- function $e(n) {
1037
+ function Ie(n) {
1264
1038
  return function e(t, i) {
1265
1039
  switch (arguments.length) {
1266
1040
  case 0:
1267
1041
  return e;
1268
1042
  case 1:
1269
- return G(t) ? e : de(function(a) {
1043
+ return G(t) ? e : re(function(a) {
1270
1044
  return n(t, a);
1271
1045
  });
1272
1046
  default:
1273
- return G(t) && G(i) ? e : G(t) ? de(function(a) {
1047
+ return G(t) && G(i) ? e : G(t) ? re(function(a) {
1274
1048
  return n(a, i);
1275
- }) : G(i) ? de(function(a) {
1049
+ }) : G(i) ? re(function(a) {
1276
1050
  return n(t, a);
1277
1051
  }) : n(t, i);
1278
1052
  }
1279
1053
  };
1280
1054
  }
1281
- const ri = Number.isInteger || function(e) {
1055
+ const Zn = Number.isInteger || function(e) {
1282
1056
  return e << 0 === e;
1283
1057
  };
1284
- function oi(n) {
1058
+ function Xn(n) {
1285
1059
  return Object.prototype.toString.call(n) === "[object String]";
1286
1060
  }
1287
- var li = /* @__PURE__ */ $e(function(e, t) {
1061
+ var Yn = /* @__PURE__ */ Ie(function(e, t) {
1288
1062
  var i = e < 0 ? t.length + e : e;
1289
- return oi(t) ? t.charAt(i) : t[i];
1063
+ return Xn(t) ? t.charAt(i) : t[i];
1290
1064
  });
1291
- const di = li;
1292
- var ui = /* @__PURE__ */ de(function(e) {
1065
+ const ei = Yn;
1066
+ var ti = /* @__PURE__ */ re(function(e) {
1293
1067
  return e == null;
1294
1068
  });
1295
- const ci = ui;
1296
- var mi = /* @__PURE__ */ $e(function(e, t) {
1069
+ const ni = ti;
1070
+ var ii = /* @__PURE__ */ Ie(function(e, t) {
1297
1071
  return e.map(function(i) {
1298
1072
  for (var a = t, s = 0, r; s < i.length; ) {
1299
1073
  if (a == null)
1300
1074
  return;
1301
- 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;
1302
1076
  }
1303
1077
  return a;
1304
1078
  });
1305
1079
  });
1306
- const fi = mi;
1307
- var pi = /* @__PURE__ */ $e(function(e, t) {
1308
- return fi([e], t)[0];
1080
+ const ai = ii;
1081
+ var si = /* @__PURE__ */ Ie(function(e, t) {
1082
+ return ai([e], t)[0];
1309
1083
  });
1310
- const hi = pi;
1311
- class ye extends Error {
1084
+ const ri = si;
1085
+ class ge extends Error {
1312
1086
  constructor(e, t, i) {
1313
1087
  super(t), this.value = i, this.name = e;
1314
1088
  }
@@ -1320,7 +1094,7 @@ class ye extends Error {
1320
1094
  };
1321
1095
  }
1322
1096
  }
1323
- class gi extends ye {
1097
+ class oi extends ge {
1324
1098
  constructor(e) {
1325
1099
  super(
1326
1100
  "RESOURCE_NOT_FOUND_ERROR",
@@ -1329,7 +1103,7 @@ class gi extends ye {
1329
1103
  );
1330
1104
  }
1331
1105
  }
1332
- class ki extends ye {
1106
+ class li extends ge {
1333
1107
  constructor(e) {
1334
1108
  var t;
1335
1109
  super(
@@ -1339,12 +1113,12 @@ class ki extends ye {
1339
1113
  );
1340
1114
  }
1341
1115
  }
1342
- class Gs extends ye {
1116
+ class _s extends ge {
1343
1117
  constructor() {
1344
1118
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
1345
1119
  }
1346
1120
  }
1347
- class vi extends ye {
1121
+ class di extends ge {
1348
1122
  constructor(e) {
1349
1123
  super(
1350
1124
  "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
@@ -1372,28 +1146,28 @@ class vi extends ye {
1372
1146
  );
1373
1147
  }
1374
1148
  }
1375
- function Ws(n, e) {
1149
+ function Us(n, e) {
1376
1150
  e.forEach((t) => {
1377
- if (ci(hi(t.split("."), n)))
1378
- throw new vi(t);
1151
+ if (ni(ri(t.split("."), n)))
1152
+ throw new di(t);
1379
1153
  });
1380
1154
  }
1381
- function Js() {
1155
+ function Ms() {
1382
1156
  var i, a, s;
1383
1157
  let n = null, e = null, t = null;
1384
1158
  try {
1385
1159
  n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
1386
1160
  const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
1387
1161
  t = r;
1388
- const o = r >= 0 ? "+" : "-", d = String(
1162
+ const o = r >= 0 ? "+" : "-", l = String(
1389
1163
  Math.floor(Math.abs(r) / 60)
1390
- ).padStart(2, "0"), l = String(Math.abs(r) % 60).padStart(
1164
+ ).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
1391
1165
  2,
1392
1166
  "0"
1393
1167
  );
1394
- e = `${o}${d}:${l}`;
1168
+ e = `${o}${l}:${u}`;
1395
1169
  } catch {
1396
- ee.error("Error obtaining time zone or offset");
1170
+ X.error("Error obtaining time zone or offset");
1397
1171
  }
1398
1172
  return {
1399
1173
  offset: e,
@@ -1404,10 +1178,10 @@ function Js() {
1404
1178
  label: null
1405
1179
  };
1406
1180
  }
1407
- class Si {
1181
+ class ui {
1408
1182
  constructor(e) {
1409
- x(this, "aggregate");
1410
- x(this, "_numSetPropsApplied", 0);
1183
+ R(this, "aggregate");
1184
+ R(this, "_numSetPropsApplied", 0);
1411
1185
  this.aggregate = e;
1412
1186
  }
1413
1187
  setProps(e) {
@@ -1419,48 +1193,48 @@ class Si {
1419
1193
  return this._numSetPropsApplied === 1;
1420
1194
  }
1421
1195
  }
1422
- function yi(n) {
1423
- return new Si(n);
1196
+ function ci(n) {
1197
+ return new ui(n);
1424
1198
  }
1425
- class qs {
1199
+ class $s {
1426
1200
  }
1427
- class Hs {
1201
+ class js {
1428
1202
  constructor(e) {
1429
- x(this, "_value");
1203
+ R(this, "_value");
1430
1204
  e !== void 0 && (this._value = e);
1431
1205
  }
1432
1206
  get value() {
1433
1207
  return this._value;
1434
1208
  }
1435
1209
  }
1436
- 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 || {});
1437
- 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 {
1438
1212
  constructor(e) {
1439
- x(this, "root", yi(this));
1440
- x(this, "id");
1441
- x(this, "account");
1442
- x(this, "accountType", Kt.UNKNOWN);
1443
- x(this, "username");
1444
- x(this, "currencyConfig");
1445
- x(this, "contractType");
1446
- x(this, "nextDateMetricRecord");
1447
- x(this, "spendedMinutes", 0);
1448
- x(this, "unlimitedService", !1);
1449
- x(this, "hoursAvailable", 0);
1450
- x(this, "contractStatus", Gt.ACTIVE);
1451
- x(this, "createdAt");
1452
- x(this, "installationDateApp");
1453
- x(this, "cxAccount");
1454
- x(this, "freeService", !1);
1455
- x(this, "subscriptionType", null);
1456
- x(this, "minutesAvailable", 0);
1457
- x(this, "globalPage");
1458
- x(this, "stripe");
1459
- x(this, "descriptionPlan");
1460
- x(this, "planType");
1461
- x(this, "selectFreeTrial");
1462
- x(this, "exceededFeatures");
1463
- 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);
1464
1238
  this.root.setProps(e);
1465
1239
  }
1466
1240
  static toDomain(e) {
@@ -1469,7 +1243,7 @@ class ze {
1469
1243
  username: i != null ? i : a.account,
1470
1244
  createdAt: new Date(Number(t))
1471
1245
  };
1472
- return new ze(s);
1246
+ return new De(s);
1473
1247
  }
1474
1248
  toPrimitives() {
1475
1249
  const { root: e, createdAt: t, ...i } = this;
@@ -1479,16 +1253,16 @@ class ze {
1479
1253
  };
1480
1254
  }
1481
1255
  }
1482
- const Ci = `${En.apiUrls.restV1}/accounts/v2`;
1483
- class Ei {
1256
+ const gi = `${gn.apiUrls.restV1}/accounts/v2`;
1257
+ class ki {
1484
1258
  async get(e) {
1485
- const t = `${Ci}/${e}`, { data: i } = await It({
1259
+ const t = `${gi}/${e}`, { data: i } = await yt({
1486
1260
  url: t
1487
1261
  });
1488
- return i ? ze.toDomain(i) : null;
1262
+ return i ? De.toDomain(i) : null;
1489
1263
  }
1490
1264
  }
1491
- class Oi {
1265
+ class vi {
1492
1266
  constructor(e) {
1493
1267
  this.accountRepository = e;
1494
1268
  }
@@ -1496,15 +1270,15 @@ class Oi {
1496
1270
  try {
1497
1271
  const t = await this.accountRepository.get(e);
1498
1272
  if (!t)
1499
- throw new gi(e);
1273
+ throw new oi(e);
1500
1274
  return t;
1501
1275
  } catch (t) {
1502
- throw new ki(t);
1276
+ throw new li(t);
1503
1277
  }
1504
1278
  }
1505
1279
  }
1506
- const Ri = new Ei(), Wt = new Oi(Ri);
1507
- class Be {
1280
+ const Si = new ki(), At = new vi(Si);
1281
+ class Le {
1508
1282
  constructor() {
1509
1283
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1510
1284
  }
@@ -1524,17 +1298,17 @@ class Be {
1524
1298
  onUnsubscribe() {
1525
1299
  }
1526
1300
  }
1527
- const fe = typeof window == "undefined" || "Deno" in window;
1528
- function xi() {
1301
+ const le = typeof window == "undefined" || "Deno" in window;
1302
+ function yi() {
1529
1303
  }
1530
- function nt(n) {
1304
+ function Ge(n) {
1531
1305
  return typeof n == "number" && n >= 0 && n !== 1 / 0;
1532
1306
  }
1533
- function Ti(n, e) {
1307
+ function Ni(n, e) {
1534
1308
  return Math.max(n + (e || 0) - Date.now(), 0);
1535
1309
  }
1536
- function Di(n, e, t) {
1537
- return Li(n) ? typeof e == "function" ? {
1310
+ function bi(n, e, t) {
1311
+ return Fi(n) ? typeof e == "function" ? {
1538
1312
  ...t,
1539
1313
  queryKey: n,
1540
1314
  queryFn: e
@@ -1543,22 +1317,22 @@ function Di(n, e, t) {
1543
1317
  queryKey: n
1544
1318
  } : n;
1545
1319
  }
1546
- function Jt(n, e) {
1320
+ function Pt(n, e) {
1547
1321
  if (n === e)
1548
1322
  return n;
1549
- const t = it(n) && it(e);
1550
- if (t || at(n) && at(e)) {
1323
+ const t = Ke(n) && Ke(e);
1324
+ if (t || We(n) && We(e)) {
1551
1325
  const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
1552
1326
  let o = 0;
1553
- for (let d = 0; d < s; d++) {
1554
- const l = t ? d : a[d];
1555
- 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++;
1556
1330
  }
1557
1331
  return i === s && o === i ? n : r;
1558
1332
  }
1559
1333
  return e;
1560
1334
  }
1561
- function De(n, e) {
1335
+ function we(n, e) {
1562
1336
  if (n && !e || e && !n)
1563
1337
  return !1;
1564
1338
  for (const t in n)
@@ -1566,39 +1340,39 @@ function De(n, e) {
1566
1340
  return !1;
1567
1341
  return !0;
1568
1342
  }
1569
- function it(n) {
1343
+ function Ke(n) {
1570
1344
  return Array.isArray(n) && n.length === Object.keys(n).length;
1571
1345
  }
1572
- function at(n) {
1573
- if (!st(n))
1346
+ function We(n) {
1347
+ if (!Je(n))
1574
1348
  return !1;
1575
1349
  const e = n.constructor;
1576
1350
  if (typeof e == "undefined")
1577
1351
  return !0;
1578
1352
  const t = e.prototype;
1579
- return !(!st(t) || !t.hasOwnProperty("isPrototypeOf"));
1353
+ return !(!Je(t) || !t.hasOwnProperty("isPrototypeOf"));
1580
1354
  }
1581
- function st(n) {
1355
+ function Je(n) {
1582
1356
  return Object.prototype.toString.call(n) === "[object Object]";
1583
1357
  }
1584
- function Li(n) {
1358
+ function Fi(n) {
1585
1359
  return Array.isArray(n);
1586
1360
  }
1587
- function Ii(n) {
1361
+ function wi(n) {
1588
1362
  return new Promise((e) => {
1589
1363
  setTimeout(e, n);
1590
1364
  });
1591
1365
  }
1592
- function rt(n) {
1593
- Ii(0).then(n);
1366
+ function qe(n) {
1367
+ wi(0).then(n);
1594
1368
  }
1595
- function ot(n, e, t) {
1596
- 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;
1597
1371
  }
1598
- class Ai extends Be {
1372
+ class Ci extends Le {
1599
1373
  constructor() {
1600
1374
  super(), this.setup = (e) => {
1601
- if (!fe && window.addEventListener) {
1375
+ if (!le && window.addEventListener) {
1602
1376
  const t = () => e();
1603
1377
  return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
1604
1378
  window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
@@ -1635,16 +1409,16 @@ class Ai extends Be {
1635
1409
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
1636
1410
  }
1637
1411
  }
1638
- const Pi = new Ai(), lt = ["online", "offline"];
1639
- class Vi extends Be {
1412
+ const Ei = new Ci(), Ze = ["online", "offline"];
1413
+ class xi extends Le {
1640
1414
  constructor() {
1641
1415
  super(), this.setup = (e) => {
1642
- if (!fe && window.addEventListener) {
1416
+ if (!le && window.addEventListener) {
1643
1417
  const t = () => e();
1644
- return lt.forEach((i) => {
1418
+ return Ze.forEach((i) => {
1645
1419
  window.addEventListener(i, t, !1);
1646
1420
  }), () => {
1647
- lt.forEach((i) => {
1421
+ Ze.forEach((i) => {
1648
1422
  window.removeEventListener(i, t);
1649
1423
  });
1650
1424
  };
@@ -1680,47 +1454,47 @@ class Vi extends Be {
1680
1454
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
1681
1455
  }
1682
1456
  }
1683
- const _i = new Vi();
1684
- function Ui(n) {
1685
- 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;
1686
1460
  }
1687
- class Mi {
1461
+ class Ti {
1688
1462
  constructor(e) {
1689
1463
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1690
1464
  }
1691
1465
  }
1692
- function ji(n) {
1693
- return n instanceof Mi;
1466
+ function Ii(n) {
1467
+ return n instanceof Ti;
1694
1468
  }
1695
- function $i() {
1696
- let n = [], e = 0, t = (u) => {
1697
- u();
1698
- }, i = (u) => {
1699
- u();
1469
+ function Di() {
1470
+ let n = [], e = 0, t = (d) => {
1471
+ d();
1472
+ }, i = (d) => {
1473
+ d();
1700
1474
  };
1701
- const a = (u) => {
1702
- let p;
1475
+ const a = (d) => {
1476
+ let f;
1703
1477
  e++;
1704
1478
  try {
1705
- p = u();
1479
+ f = d();
1706
1480
  } finally {
1707
1481
  e--, e || o();
1708
1482
  }
1709
- return p;
1710
- }, s = (u) => {
1711
- e ? n.push(u) : rt(() => {
1712
- t(u);
1483
+ return f;
1484
+ }, s = (d) => {
1485
+ e ? n.push(d) : qe(() => {
1486
+ t(d);
1713
1487
  });
1714
- }, r = (u) => (...p) => {
1488
+ }, r = (d) => (...f) => {
1715
1489
  s(() => {
1716
- u(...p);
1490
+ d(...f);
1717
1491
  });
1718
1492
  }, o = () => {
1719
- const u = n;
1720
- n = [], u.length && rt(() => {
1493
+ const d = n;
1494
+ n = [], d.length && qe(() => {
1721
1495
  i(() => {
1722
- u.forEach((p) => {
1723
- t(p);
1496
+ d.forEach((f) => {
1497
+ t(f);
1724
1498
  });
1725
1499
  });
1726
1500
  });
@@ -1729,16 +1503,16 @@ function $i() {
1729
1503
  batch: a,
1730
1504
  batchCalls: r,
1731
1505
  schedule: s,
1732
- setNotifyFunction: (u) => {
1733
- t = u;
1506
+ setNotifyFunction: (d) => {
1507
+ t = d;
1734
1508
  },
1735
- setBatchNotifyFunction: (u) => {
1736
- i = u;
1509
+ setBatchNotifyFunction: (d) => {
1510
+ i = d;
1737
1511
  }
1738
1512
  };
1739
1513
  }
1740
- const te = $i();
1741
- class zi extends Be {
1514
+ const Y = Di();
1515
+ class Li extends Le {
1742
1516
  constructor(e, t) {
1743
1517
  super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
1744
1518
  }
@@ -1746,23 +1520,23 @@ class zi extends Be {
1746
1520
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1747
1521
  }
1748
1522
  onSubscribe() {
1749
- 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());
1750
1524
  }
1751
1525
  onUnsubscribe() {
1752
1526
  this.hasListeners() || this.destroy();
1753
1527
  }
1754
1528
  shouldFetchOnReconnect() {
1755
- return Le(this.currentQuery, this.options, this.options.refetchOnReconnect);
1529
+ return Ce(this.currentQuery, this.options, this.options.refetchOnReconnect);
1756
1530
  }
1757
1531
  shouldFetchOnWindowFocus() {
1758
- return Le(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1532
+ return Ce(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1759
1533
  }
1760
1534
  destroy() {
1761
1535
  this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
1762
1536
  }
1763
1537
  setOptions(e, t) {
1764
1538
  const i = this.options, a = this.currentQuery;
1765
- 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({
1766
1540
  type: "observerOptionsUpdated",
1767
1541
  query: this.currentQuery,
1768
1542
  observer: this
@@ -1770,13 +1544,13 @@ class zi extends Be {
1770
1544
  throw new Error("Expected enabled to be a boolean");
1771
1545
  this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
1772
1546
  const s = this.hasListeners();
1773
- 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();
1774
1548
  const r = this.computeRefetchInterval();
1775
1549
  s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
1776
1550
  }
1777
1551
  getOptimisticResult(e) {
1778
1552
  const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
1779
- 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;
1780
1554
  }
1781
1555
  getCurrentResult() {
1782
1556
  return this.currentResult;
@@ -1822,12 +1596,12 @@ class zi extends Be {
1822
1596
  executeFetch(e) {
1823
1597
  this.updateQuery();
1824
1598
  let t = this.currentQuery.fetch(this.options, e);
1825
- return e != null && e.throwOnError || (t = t.catch(xi)), t;
1599
+ return e != null && e.throwOnError || (t = t.catch(yi)), t;
1826
1600
  }
1827
1601
  updateStaleTimeout() {
1828
- if (this.clearStaleTimeout(), fe || this.currentResult.isStale || !nt(this.options.staleTime))
1602
+ if (this.clearStaleTimeout(), le || this.currentResult.isStale || !Ge(this.options.staleTime))
1829
1603
  return;
1830
- const t = Ti(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1604
+ const t = Ni(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1831
1605
  this.staleTimeoutId = setTimeout(() => {
1832
1606
  this.currentResult.isStale || this.updateResult();
1833
1607
  }, t);
@@ -1837,8 +1611,8 @@ class zi extends Be {
1837
1611
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1838
1612
  }
1839
1613
  updateRefetchInterval(e) {
1840
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(fe || this.options.enabled === !1 || !nt(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1841
- (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();
1842
1616
  }, this.currentRefetchInterval));
1843
1617
  }
1844
1618
  updateTimers() {
@@ -1851,78 +1625,78 @@ class zi extends Be {
1851
1625
  this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
1852
1626
  }
1853
1627
  createResult(e, t) {
1854
- 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, {
1855
- 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
1856
1630
  } = e;
1857
1631
  let {
1858
1632
  dataUpdatedAt: c,
1859
- error: v,
1860
- errorUpdatedAt: S,
1633
+ error: S,
1634
+ errorUpdatedAt: y,
1861
1635
  fetchStatus: k,
1862
- status: y
1863
- } = p, F = !1, w = !1, L;
1636
+ status: N
1637
+ } = f, O = !1, F = !1, I;
1864
1638
  if (t._optimisticResults) {
1865
- const f = this.hasListeners(), m = !f && dt(e, t), g = f && ut(e, i, t, a);
1866
- (m || g) && (k = Ui(e.options.networkMode) ? "fetching" : "paused", c || (y = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1867
- }
1868
- if (t.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess && y !== "error")
1869
- L = u.data, c = u.dataUpdatedAt, y = u.status, F = !0;
1870
- else if (t.select && typeof p.data != "undefined")
1871
- if (s && p.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1872
- 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;
1873
1647
  else
1874
1648
  try {
1875
- 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;
1876
- } catch (f) {
1877
- 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;
1878
1652
  }
1879
1653
  else
1880
- L = p.data;
1881
- if (typeof t.placeholderData != "undefined" && typeof L == "undefined" && y === "loading") {
1882
- let f;
1654
+ I = f.data;
1655
+ if (typeof t.placeholderData != "undefined" && typeof I == "undefined" && N === "loading") {
1656
+ let m;
1883
1657
  if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
1884
- f = s.data;
1885
- 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")
1886
1660
  try {
1887
- f = t.select(f), this.selectError = null;
1888
- } catch (m) {
1889
- this.selectError = m;
1661
+ m = t.select(m), this.selectError = null;
1662
+ } catch (p) {
1663
+ this.selectError = p;
1890
1664
  }
1891
- 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);
1892
1666
  }
1893
- this.selectError && (v = this.selectError, L = this.selectResult, S = Date.now(), y = "error");
1894
- 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";
1895
1669
  return {
1896
- status: y,
1670
+ status: N,
1897
1671
  fetchStatus: k,
1898
- isLoading: I,
1899
- isSuccess: y === "success",
1900
- isError: P,
1901
- isInitialLoading: I && E,
1902
- data: L,
1672
+ isLoading: D,
1673
+ isSuccess: N === "success",
1674
+ isError: L,
1675
+ isInitialLoading: D && w,
1676
+ data: I,
1903
1677
  dataUpdatedAt: c,
1904
- error: v,
1905
- errorUpdatedAt: S,
1906
- failureCount: p.fetchFailureCount,
1907
- failureReason: p.fetchFailureReason,
1908
- errorUpdateCount: p.errorUpdateCount,
1909
- isFetched: p.dataUpdateCount > 0 || p.errorUpdateCount > 0,
1910
- isFetchedAfterMount: p.dataUpdateCount > l.dataUpdateCount || p.errorUpdateCount > l.errorUpdateCount,
1911
- isFetching: E,
1912
- isRefetching: E && !I,
1913
- 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,
1914
1688
  isPaused: k === "paused",
1915
- isPlaceholderData: w,
1916
- isPreviousData: F,
1917
- isRefetchError: P && p.dataUpdatedAt !== 0,
1918
- isStale: Qe(e, t),
1689
+ isPlaceholderData: F,
1690
+ isPreviousData: O,
1691
+ isRefetchError: L && f.dataUpdatedAt !== 0,
1692
+ isStale: Ae(e, t),
1919
1693
  refetch: this.refetch,
1920
1694
  remove: this.remove
1921
1695
  };
1922
1696
  }
1923
1697
  updateResult(e) {
1924
1698
  const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
1925
- 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))
1926
1700
  return;
1927
1701
  this.currentResult = i;
1928
1702
  const a = {
@@ -1935,10 +1709,10 @@ class zi extends Be {
1935
1709
  } = this.options, o = typeof r == "function" ? r() : r;
1936
1710
  if (o === "all" || !o && !this.trackedProps.size)
1937
1711
  return !0;
1938
- const d = new Set(o != null ? o : this.trackedProps);
1939
- return this.options.useErrorBoundary && d.add("error"), Object.keys(this.currentResult).some((l) => {
1940
- const u = l;
1941
- 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);
1942
1716
  });
1943
1717
  };
1944
1718
  (e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
@@ -1955,21 +1729,21 @@ class zi extends Be {
1955
1729
  }
1956
1730
  onQueryUpdate(e) {
1957
1731
  const t = {};
1958
- 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();
1959
1733
  }
1960
1734
  notify(e) {
1961
- te.batch(() => {
1735
+ Y.batch(() => {
1962
1736
  if (e.onSuccess) {
1963
1737
  var t, i, a, s;
1964
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);
1965
1739
  } else if (e.onError) {
1966
- var r, o, d, l;
1967
- (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);
1968
1742
  }
1969
1743
  e.listeners && this.listeners.forEach(({
1970
- listener: u
1744
+ listener: d
1971
1745
  }) => {
1972
- u(this.currentResult);
1746
+ d(this.currentResult);
1973
1747
  }), e.cache && this.client.getQueryCache().notify({
1974
1748
  query: this.currentQuery,
1975
1749
  type: "observerResultsUpdated"
@@ -1977,42 +1751,42 @@ class zi extends Be {
1977
1751
  });
1978
1752
  }
1979
1753
  }
1980
- function Bi(n, e) {
1754
+ function Ai(n, e) {
1981
1755
  return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1982
1756
  }
1983
- function dt(n, e) {
1984
- 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);
1985
1759
  }
1986
- function Le(n, e, t) {
1760
+ function Ce(n, e, t) {
1987
1761
  if (e.enabled !== !1) {
1988
1762
  const i = typeof t == "function" ? t(n) : t;
1989
- return i === "always" || i !== !1 && Qe(n, e);
1763
+ return i === "always" || i !== !1 && Ae(n, e);
1990
1764
  }
1991
1765
  return !1;
1992
1766
  }
1993
- function ut(n, e, t, i) {
1994
- 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);
1995
1769
  }
1996
- function Qe(n, e) {
1770
+ function Ae(n, e) {
1997
1771
  return n.isStaleByTime(e.staleTime);
1998
1772
  }
1999
- function Qi(n, e, t) {
2000
- 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);
2001
1775
  }
2002
- const Ki = $t.useSyncExternalStore, ct = /* @__PURE__ */ M.createContext(void 0), Gi = /* @__PURE__ */ M.createContext(!1);
2003
- function Wi(n, e) {
2004
- 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);
2005
1779
  }
2006
- const Ji = ({
1780
+ const Mi = ({
2007
1781
  context: n
2008
1782
  } = {}) => {
2009
- const e = M.useContext(Wi(n, M.useContext(Gi)));
1783
+ const e = M.useContext(Ui(n, M.useContext(_i)));
2010
1784
  if (!e)
2011
1785
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
2012
1786
  return e;
2013
- }, qt = /* @__PURE__ */ M.createContext(!1), qi = () => M.useContext(qt);
2014
- qt.Provider;
2015
- function Hi() {
1787
+ }, Vt = /* @__PURE__ */ M.createContext(!1), $i = () => M.useContext(Vt);
1788
+ Vt.Provider;
1789
+ function ji() {
2016
1790
  let n = !1;
2017
1791
  return {
2018
1792
  clearReset: () => {
@@ -2024,47 +1798,47 @@ function Hi() {
2024
1798
  isReset: () => n
2025
1799
  };
2026
1800
  }
2027
- const Zi = /* @__PURE__ */ M.createContext(Hi()), Xi = () => M.useContext(Zi);
2028
- function Yi(n, e) {
1801
+ const zi = /* @__PURE__ */ M.createContext(ji()), Bi = () => M.useContext(zi);
1802
+ function Qi(n, e) {
2029
1803
  return typeof n == "function" ? n(...e) : !!n;
2030
1804
  }
2031
- const ea = (n, e) => {
1805
+ const Gi = (n, e) => {
2032
1806
  (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
2033
- }, ta = (n) => {
1807
+ }, Ki = (n) => {
2034
1808
  M.useEffect(() => {
2035
1809
  n.clearReset();
2036
1810
  }, [n]);
2037
- }, na = ({
1811
+ }, Wi = ({
2038
1812
  result: n,
2039
1813
  errorResetBoundary: e,
2040
1814
  useErrorBoundary: t,
2041
1815
  query: i
2042
- }) => 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) => {
2043
1817
  n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
2044
- }, 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(({
2045
1819
  data: i
2046
1820
  }) => {
2047
1821
  n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
2048
1822
  }).catch((i) => {
2049
1823
  t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
2050
1824
  });
2051
- function oa(n, e) {
2052
- const t = Ji({
1825
+ function Xi(n, e) {
1826
+ const t = Mi({
2053
1827
  context: n.context
2054
- }), i = qi(), a = Xi(), s = t.defaultQueryOptions(n);
2055
- 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);
2056
1830
  const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
2057
- if (Ki(M.useCallback((d) => {
2058
- const l = i ? () => {
2059
- } : r.subscribe(te.batchCalls(d));
2060
- 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;
2061
1835
  }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
2062
1836
  r.setOptions(s, {
2063
1837
  listeners: !1
2064
1838
  });
2065
- }, [s, r]), sa(s, o, i))
2066
- throw ra(s, r, a);
2067
- if (na({
1839
+ }, [s, r]), Hi(s, o, i))
1840
+ throw Zi(s, r, a);
1841
+ if (Wi({
2068
1842
  result: o,
2069
1843
  errorResetBoundary: a,
2070
1844
  useErrorBoundary: s.useErrorBoundary,
@@ -2073,30 +1847,33 @@ function oa(n, e) {
2073
1847
  throw o.error;
2074
1848
  return s.notifyOnChangeProps ? o : r.trackResult(o);
2075
1849
  }
2076
- function la(n, e, t) {
2077
- const i = Di(n, e, t);
2078
- return oa(i, zi);
1850
+ function Yi(n, e, t) {
1851
+ const i = bi(n, e, t);
1852
+ return Xi(i, Li);
2079
1853
  }
2080
- const da = () => ["account"], Zs = () => {
2081
- 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), {
2082
1859
  enabled: !!n && !e,
2083
1860
  refetchOnWindowFocus: !1,
2084
1861
  refetchOnMount: !1
2085
1862
  });
2086
- return Se(() => {
1863
+ return kt(() => {
2087
1864
  const a = i.data;
2088
1865
  !i.isSuccess || !a || t(a);
2089
1866
  }, [i.status]), {
2090
1867
  findQuery: i,
2091
1868
  account: e
2092
1869
  };
2093
- }, ua = Dt();
2094
- async function ca(n) {
2095
- const e = await Wt.get(n);
2096
- 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;
2097
1874
  }
2098
- var ma = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ma || {});
2099
- const Xs = {
1875
+ var ia = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ia || {});
1876
+ const Bs = {
2100
1877
  ALL: "*",
2101
1878
  CORE: "core:**",
2102
1879
  LIVE_STREAMING_EVENT: "event:**",
@@ -2108,77 +1885,77 @@ const Xs = {
2108
1885
  SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
2109
1886
  UI: "ui:**",
2110
1887
  UTILS: "utils:**"
2111
- }, Ys = {
1888
+ }, Qs = {
2112
1889
  EVENT_STATUS_CHANGED: "event:statusChanged"
2113
1890
  };
2114
- 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 || {});
2115
- 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) {
2116
1893
  const e = Object.values(n);
2117
1894
  return Object.assign({}, ...e);
2118
1895
  }
2119
- function ka(n) {
1896
+ function la(n) {
2120
1897
  return Object.entries(n).reduce(
2121
1898
  (e, [t, i]) => {
2122
- const a = ga(i);
1899
+ const a = oa(i);
2123
1900
  return { ...e, [t]: a };
2124
1901
  },
2125
1902
  {}
2126
1903
  );
2127
1904
  }
2128
- function va(n, e) {
2129
- const t = ka(e);
1905
+ function da(n, e) {
1906
+ const t = la(e);
2130
1907
  Object.entries(t).forEach(([i, a]) => {
2131
1908
  n.addResourceBundle(i, "translation", a, !0);
2132
1909
  });
2133
1910
  }
2134
- function Sa(n, e) {
1911
+ function ua(n, e) {
2135
1912
  if (!(n instanceof e))
2136
1913
  throw new TypeError("Cannot call a class as a function");
2137
1914
  }
2138
- function ie(n) {
1915
+ function ee(n) {
2139
1916
  "@babel/helpers - typeof";
2140
- return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1917
+ return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2141
1918
  return typeof e;
2142
1919
  } : function(e) {
2143
1920
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2144
- }, ie(n);
1921
+ }, ee(n);
2145
1922
  }
2146
- function ya(n, e) {
2147
- if (ie(n) !== "object" || n === null)
1923
+ function ca(n, e) {
1924
+ if (ee(n) !== "object" || n === null)
2148
1925
  return n;
2149
1926
  var t = n[Symbol.toPrimitive];
2150
1927
  if (t !== void 0) {
2151
1928
  var i = t.call(n, e || "default");
2152
- if (ie(i) !== "object")
1929
+ if (ee(i) !== "object")
2153
1930
  return i;
2154
1931
  throw new TypeError("@@toPrimitive must return a primitive value.");
2155
1932
  }
2156
1933
  return (e === "string" ? String : Number)(n);
2157
1934
  }
2158
- function Na(n) {
2159
- var e = ya(n, "string");
2160
- 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);
2161
1938
  }
2162
- function mt(n, e) {
1939
+ function tt(n, e) {
2163
1940
  for (var t = 0; t < e.length; t++) {
2164
1941
  var i = e[t];
2165
- 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);
2166
1943
  }
2167
1944
  }
2168
- function ba(n, e, t) {
2169
- 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", {
2170
1947
  writable: !1
2171
1948
  }), n;
2172
1949
  }
2173
- var Ht = [], Fa = Ht.forEach, wa = Ht.slice;
2174
- function Ca(n) {
2175
- 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) {
2176
1953
  if (e)
2177
1954
  for (var t in e)
2178
1955
  n[t] === void 0 && (n[t] = e[t]);
2179
1956
  }), n;
2180
1957
  }
2181
- 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) {
2182
1959
  var a = i || {};
2183
1960
  a.path = a.path || "/";
2184
1961
  var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
@@ -2189,12 +1966,12 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2189
1966
  r += "; Max-Age=".concat(Math.floor(o));
2190
1967
  }
2191
1968
  if (a.domain) {
2192
- if (!ft.test(a.domain))
1969
+ if (!nt.test(a.domain))
2193
1970
  throw new TypeError("option domain is invalid");
2194
1971
  r += "; Domain=".concat(a.domain);
2195
1972
  }
2196
1973
  if (a.path) {
2197
- if (!ft.test(a.path))
1974
+ if (!nt.test(a.path))
2198
1975
  throw new TypeError("option path is invalid");
2199
1976
  r += "; Path=".concat(a.path);
2200
1977
  }
@@ -2204,8 +1981,8 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2204
1981
  r += "; Expires=".concat(a.expires.toUTCString());
2205
1982
  }
2206
1983
  if (a.httpOnly && (r += "; HttpOnly"), a.secure && (r += "; Secure"), a.sameSite) {
2207
- var d = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
2208
- switch (d) {
1984
+ var l = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
1985
+ switch (l) {
2209
1986
  case !0:
2210
1987
  r += "; SameSite=Strict";
2211
1988
  break;
@@ -2223,13 +2000,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2223
2000
  }
2224
2001
  }
2225
2002
  return r;
2226
- }, pt = {
2003
+ }, it = {
2227
2004
  create: function(e, t, i, a) {
2228
2005
  var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2229
2006
  path: "/",
2230
2007
  sameSite: "strict"
2231
2008
  };
2232
- 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);
2233
2010
  },
2234
2011
  read: function(e) {
2235
2012
  for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
@@ -2243,20 +2020,20 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2243
2020
  remove: function(e) {
2244
2021
  this.create(e, "", -1);
2245
2022
  }
2246
- }, Oa = {
2023
+ }, va = {
2247
2024
  name: "cookie",
2248
2025
  lookup: function(e) {
2249
2026
  var t;
2250
2027
  if (e.lookupCookie && typeof document != "undefined") {
2251
- var i = pt.read(e.lookupCookie);
2028
+ var i = it.read(e.lookupCookie);
2252
2029
  i && (t = i);
2253
2030
  }
2254
2031
  return t;
2255
2032
  },
2256
2033
  cacheUserLanguage: function(e, t) {
2257
- 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);
2258
2035
  }
2259
- }, Ra = {
2036
+ }, Sa = {
2260
2037
  name: "querystring",
2261
2038
  lookup: function(e) {
2262
2039
  var t;
@@ -2266,62 +2043,62 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2266
2043
  for (var a = i.substring(1), s = a.split("&"), r = 0; r < s.length; r++) {
2267
2044
  var o = s[r].indexOf("=");
2268
2045
  if (o > 0) {
2269
- var d = s[r].substring(0, o);
2270
- 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));
2271
2048
  }
2272
2049
  }
2273
2050
  }
2274
2051
  return t;
2275
2052
  }
2276
- }, H = null, ht = function() {
2277
- if (H !== null)
2278
- return H;
2053
+ }, q = null, at = function() {
2054
+ if (q !== null)
2055
+ return q;
2279
2056
  try {
2280
- H = window !== "undefined" && window.localStorage !== null;
2057
+ q = window !== "undefined" && window.localStorage !== null;
2281
2058
  var e = "i18next.translate.boo";
2282
2059
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
2283
2060
  } catch {
2284
- H = !1;
2061
+ q = !1;
2285
2062
  }
2286
- return H;
2287
- }, xa = {
2063
+ return q;
2064
+ }, ya = {
2288
2065
  name: "localStorage",
2289
2066
  lookup: function(e) {
2290
2067
  var t;
2291
- if (e.lookupLocalStorage && ht()) {
2068
+ if (e.lookupLocalStorage && at()) {
2292
2069
  var i = window.localStorage.getItem(e.lookupLocalStorage);
2293
2070
  i && (t = i);
2294
2071
  }
2295
2072
  return t;
2296
2073
  },
2297
2074
  cacheUserLanguage: function(e, t) {
2298
- t.lookupLocalStorage && ht() && window.localStorage.setItem(t.lookupLocalStorage, e);
2075
+ t.lookupLocalStorage && at() && window.localStorage.setItem(t.lookupLocalStorage, e);
2299
2076
  }
2300
- }, Z = null, gt = function() {
2301
- if (Z !== null)
2302
- return Z;
2077
+ }, H = null, st = function() {
2078
+ if (H !== null)
2079
+ return H;
2303
2080
  try {
2304
- Z = window !== "undefined" && window.sessionStorage !== null;
2081
+ H = window !== "undefined" && window.sessionStorage !== null;
2305
2082
  var e = "i18next.translate.boo";
2306
2083
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
2307
2084
  } catch {
2308
- Z = !1;
2085
+ H = !1;
2309
2086
  }
2310
- return Z;
2311
- }, Ta = {
2087
+ return H;
2088
+ }, Na = {
2312
2089
  name: "sessionStorage",
2313
2090
  lookup: function(e) {
2314
2091
  var t;
2315
- if (e.lookupSessionStorage && gt()) {
2092
+ if (e.lookupSessionStorage && st()) {
2316
2093
  var i = window.sessionStorage.getItem(e.lookupSessionStorage);
2317
2094
  i && (t = i);
2318
2095
  }
2319
2096
  return t;
2320
2097
  },
2321
2098
  cacheUserLanguage: function(e, t) {
2322
- t.lookupSessionStorage && gt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2099
+ t.lookupSessionStorage && st() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2323
2100
  }
2324
- }, Da = {
2101
+ }, ba = {
2325
2102
  name: "navigator",
2326
2103
  lookup: function(e) {
2327
2104
  var t = [];
@@ -2333,13 +2110,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2333
2110
  }
2334
2111
  return t.length > 0 ? t : void 0;
2335
2112
  }
2336
- }, La = {
2113
+ }, Fa = {
2337
2114
  name: "htmlTag",
2338
2115
  lookup: function(e) {
2339
2116
  var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
2340
2117
  return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
2341
2118
  }
2342
- }, Ia = {
2119
+ }, wa = {
2343
2120
  name: "path",
2344
2121
  lookup: function(e) {
2345
2122
  var t;
@@ -2355,7 +2132,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2355
2132
  }
2356
2133
  return t;
2357
2134
  }
2358
- }, Aa = {
2135
+ }, Ca = {
2359
2136
  name: "subdomain",
2360
2137
  lookup: function(e) {
2361
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);
@@ -2363,7 +2140,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2363
2140
  return i[t];
2364
2141
  }
2365
2142
  };
2366
- function Pa() {
2143
+ function Ea() {
2367
2144
  return {
2368
2145
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2369
2146
  lookupQuerystring: "lng",
@@ -2380,20 +2157,20 @@ function Pa() {
2380
2157
  }
2381
2158
  };
2382
2159
  }
2383
- var Zt = /* @__PURE__ */ function() {
2160
+ var Ut = /* @__PURE__ */ function() {
2384
2161
  function n(e) {
2385
2162
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2386
- 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);
2387
2164
  }
2388
- return ba(n, [{
2165
+ return fa(n, [{
2389
2166
  key: "init",
2390
2167
  value: function(t) {
2391
2168
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2392
2169
  this.services = t || {
2393
2170
  languageUtils: {}
2394
- }, 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) {
2395
2172
  return s.replace("-", "_");
2396
- }), 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);
2397
2174
  }
2398
2175
  }, {
2399
2176
  key: "addDetector",
@@ -2425,9 +2202,9 @@ var Zt = /* @__PURE__ */ function() {
2425
2202
  }
2426
2203
  }]), n;
2427
2204
  }();
2428
- Zt.type = "languageDetector";
2429
- function Va(n, e) {
2430
- n.use(e).use(Zt).init({
2205
+ Ut.type = "languageDetector";
2206
+ function xa(n, e) {
2207
+ n.use(e).use(Ut).init({
2431
2208
  resources: {},
2432
2209
  fallbackLng: "en",
2433
2210
  debug: !1,
@@ -2466,7 +2243,7 @@ function Va(n, e) {
2466
2243
  }
2467
2244
  });
2468
2245
  }
2469
- const _a = {
2246
+ const Oa = {
2470
2247
  type: "logger",
2471
2248
  log(n) {
2472
2249
  this.output("log", n);
@@ -2481,14 +2258,14 @@ const _a = {
2481
2258
  console && console[n] && console[n].apply(console, e);
2482
2259
  }
2483
2260
  };
2484
- class pe {
2261
+ class de {
2485
2262
  constructor(e) {
2486
2263
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2487
2264
  this.init(e, t);
2488
2265
  }
2489
2266
  init(e) {
2490
2267
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2491
- 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;
2492
2269
  }
2493
2270
  log() {
2494
2271
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
@@ -2514,17 +2291,17 @@ class pe {
2514
2291
  return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
2515
2292
  }
2516
2293
  create(e) {
2517
- return new pe(this.logger, {
2294
+ return new de(this.logger, {
2518
2295
  prefix: `${this.prefix}:${e}:`,
2519
2296
  ...this.options
2520
2297
  });
2521
2298
  }
2522
2299
  clone(e) {
2523
- 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);
2524
2301
  }
2525
2302
  }
2526
- var j = new pe();
2527
- class Ne {
2303
+ var $ = new de();
2304
+ class ke {
2528
2305
  constructor() {
2529
2306
  this.observers = {};
2530
2307
  }
@@ -2552,22 +2329,22 @@ class Ne {
2552
2329
  });
2553
2330
  }
2554
2331
  }
2555
- function X() {
2332
+ function Z() {
2556
2333
  let n, e;
2557
2334
  const t = new Promise((i, a) => {
2558
2335
  n = i, e = a;
2559
2336
  });
2560
2337
  return t.resolve = n, t.reject = e, t;
2561
2338
  }
2562
- function kt(n) {
2339
+ function rt(n) {
2563
2340
  return n == null ? "" : "" + n;
2564
2341
  }
2565
- function Ua(n, e, t) {
2342
+ function Ra(n, e, t) {
2566
2343
  n.forEach((i) => {
2567
2344
  e[i] && (t[i] = e[i]);
2568
2345
  });
2569
2346
  }
2570
- function Ke(n, e, t) {
2347
+ function Pe(n, e, t) {
2571
2348
  function i(r) {
2572
2349
  return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
2573
2350
  }
@@ -2586,41 +2363,41 @@ function Ke(n, e, t) {
2586
2363
  k: i(s.shift())
2587
2364
  };
2588
2365
  }
2589
- function vt(n, e, t) {
2366
+ function ot(n, e, t) {
2590
2367
  const {
2591
2368
  obj: i,
2592
2369
  k: a
2593
- } = Ke(n, e, Object);
2370
+ } = Pe(n, e, Object);
2594
2371
  i[a] = t;
2595
2372
  }
2596
- function Ma(n, e, t, i) {
2373
+ function Ta(n, e, t, i) {
2597
2374
  const {
2598
2375
  obj: a,
2599
2376
  k: s
2600
- } = Ke(n, e, Object);
2377
+ } = Pe(n, e, Object);
2601
2378
  a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
2602
2379
  }
2603
- function he(n, e) {
2380
+ function ue(n, e) {
2604
2381
  const {
2605
2382
  obj: t,
2606
2383
  k: i
2607
- } = Ke(n, e);
2384
+ } = Pe(n, e);
2608
2385
  if (t)
2609
2386
  return t[i];
2610
2387
  }
2611
- function ja(n, e, t) {
2612
- const i = he(n, t);
2613
- 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);
2614
2391
  }
2615
- function Xt(n, e, t) {
2392
+ function Mt(n, e, t) {
2616
2393
  for (const i in e)
2617
- 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]);
2618
2395
  return n;
2619
2396
  }
2620
- function Q(n) {
2397
+ function B(n) {
2621
2398
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2622
2399
  }
2623
- var $a = {
2400
+ var Da = {
2624
2401
  "&": "&amp;",
2625
2402
  "<": "&lt;",
2626
2403
  ">": "&gt;",
@@ -2628,13 +2405,13 @@ var $a = {
2628
2405
  "'": "&#39;",
2629
2406
  "/": "&#x2F;"
2630
2407
  };
2631
- function za(n) {
2632
- 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;
2633
2410
  }
2634
- const Ba = [" ", ",", "?", "!", ";"];
2635
- function Qa(n, e, t) {
2411
+ const Aa = [" ", ",", "?", "!", ";"];
2412
+ function Pa(n, e, t) {
2636
2413
  e = e || "", t = t || "";
2637
- 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);
2638
2415
  if (i.length === 0)
2639
2416
  return !0;
2640
2417
  const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
@@ -2645,7 +2422,7 @@ function Qa(n, e, t) {
2645
2422
  }
2646
2423
  return s;
2647
2424
  }
2648
- function ge(n, e) {
2425
+ function ce(n, e) {
2649
2426
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
2650
2427
  if (!n)
2651
2428
  return;
@@ -2657,30 +2434,30 @@ function ge(n, e) {
2657
2434
  if (!a || typeof a[i[s]] == "string" && s + 1 < i.length)
2658
2435
  return;
2659
2436
  if (a[i[s]] === void 0) {
2660
- let r = 2, o = i.slice(s, s + r).join(t), d = a[o];
2661
- for (; d === void 0 && i.length > s + r; )
2662
- r++, o = i.slice(s, s + r).join(t), d = a[o];
2663
- 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)
2664
2441
  return;
2665
- if (d === null)
2442
+ if (l === null)
2666
2443
  return null;
2667
2444
  if (e.endsWith(o)) {
2668
- if (typeof d == "string")
2669
- return d;
2670
- if (o && typeof d[o] == "string")
2671
- return d[o];
2445
+ if (typeof l == "string")
2446
+ return l;
2447
+ if (o && typeof l[o] == "string")
2448
+ return l[o];
2672
2449
  }
2673
- const l = i.slice(s + r).join(t);
2674
- 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;
2675
2452
  }
2676
2453
  a = a[i[s]];
2677
2454
  }
2678
2455
  return a;
2679
2456
  }
2680
- function ke(n) {
2457
+ function me(n) {
2681
2458
  return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
2682
2459
  }
2683
- class St extends Ne {
2460
+ class lt extends ke {
2684
2461
  constructor(e) {
2685
2462
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2686
2463
  ns: ["translation"],
@@ -2700,8 +2477,8 @@ class St extends Ne {
2700
2477
  const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
2701
2478
  let o = [e, t];
2702
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("."));
2703
- const d = he(this.data, o);
2704
- 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);
2705
2482
  }
2706
2483
  addResource(e, t, i, a) {
2707
2484
  let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -2709,7 +2486,7 @@ class St extends Ne {
2709
2486
  };
2710
2487
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
2711
2488
  let o = [e, t];
2712
- 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);
2713
2490
  }
2714
2491
  addResources(e, t, i) {
2715
2492
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -2726,11 +2503,11 @@ class St extends Ne {
2726
2503
  silent: !1
2727
2504
  }, o = [e, t];
2728
2505
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2729
- let d = he(this.data, o) || {};
2730
- a ? Xt(d, i, s) : d = {
2731
- ...d,
2506
+ let l = ue(this.data, o) || {};
2507
+ a ? Mt(l, i, s) : l = {
2508
+ ...l,
2732
2509
  ...i
2733
- }, 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);
2734
2511
  }
2735
2512
  removeResourceBundle(e, t) {
2736
2513
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2754,7 +2531,7 @@ class St extends Ne {
2754
2531
  return this.data;
2755
2532
  }
2756
2533
  }
2757
- var Yt = {
2534
+ var $t = {
2758
2535
  processors: {},
2759
2536
  addPostProcessor(n) {
2760
2537
  this.processors[n.name] = n;
@@ -2765,11 +2542,11 @@ var Yt = {
2765
2542
  }), e;
2766
2543
  }
2767
2544
  };
2768
- const yt = {};
2769
- class ve extends Ne {
2545
+ const dt = {};
2546
+ class fe extends ke {
2770
2547
  constructor(e) {
2771
2548
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2772
- 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");
2773
2550
  }
2774
2551
  changeLanguage(e) {
2775
2552
  e && (this.language = e);
@@ -2788,16 +2565,16 @@ class ve extends Ne {
2788
2565
  i === void 0 && (i = ":");
2789
2566
  const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2790
2567
  let s = t.ns || this.options.defaultNS || [];
2791
- 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);
2792
2569
  if (r && !o) {
2793
- const d = e.match(this.interpolator.nestingRegexp);
2794
- if (d && d.length > 0)
2570
+ const l = e.match(this.interpolator.nestingRegexp);
2571
+ if (l && l.length > 0)
2795
2572
  return {
2796
2573
  key: e,
2797
2574
  namespaces: s
2798
2575
  };
2799
- const l = e.split(i);
2800
- (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);
2801
2578
  }
2802
2579
  return typeof s == "string" && (s = [s]), {
2803
2580
  key: e,
@@ -2813,90 +2590,90 @@ class ve extends Ne {
2813
2590
  const a = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
2814
2591
  key: r,
2815
2592
  namespaces: o
2816
- } = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], l = t.lng || this.language, u = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2817
- if (l && l.toLowerCase() === "cimode") {
2818
- if (u) {
2819
- 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;
2820
2597
  return a ? {
2821
- res: `${d}${E}${r}`,
2598
+ res: `${l}${w}${r}`,
2822
2599
  usedKey: r,
2823
2600
  exactUsedKey: r,
2824
- usedLng: l,
2825
- usedNS: d,
2601
+ usedLng: u,
2602
+ usedNS: l,
2826
2603
  usedParams: this.getUsedParamsDetails(t)
2827
- } : `${d}${E}${r}`;
2604
+ } : `${l}${w}${r}`;
2828
2605
  }
2829
2606
  return a ? {
2830
2607
  res: r,
2831
2608
  usedKey: r,
2832
2609
  exactUsedKey: r,
2833
- usedLng: l,
2834
- usedNS: d,
2610
+ usedLng: u,
2611
+ usedNS: l,
2835
2612
  usedParams: this.getUsedParamsDetails(t)
2836
2613
  } : r;
2837
2614
  }
2838
- const p = this.resolve(e, t);
2839
- let c = p && p.res;
2840
- 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;
2841
- 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]")) {
2842
2619
  if (!t.returnObjects && !this.options.returnObjects) {
2843
2620
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2844
- const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
2621
+ const w = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, c, {
2845
2622
  ...t,
2846
2623
  ns: o
2847
2624
  }) : `key '${r} (${this.language})' returned an object instead of string.`;
2848
- 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;
2849
2626
  }
2850
2627
  if (s) {
2851
- const E = k === "[object Array]", I = E ? [] : {}, P = E ? S : v;
2628
+ const w = k === "[object Array]", D = w ? [] : {}, L = w ? y : S;
2852
2629
  for (const A in c)
2853
2630
  if (Object.prototype.hasOwnProperty.call(c, A)) {
2854
- const f = `${P}${s}${A}`;
2855
- I[A] = this.translate(f, {
2631
+ const m = `${L}${s}${A}`;
2632
+ D[A] = this.translate(m, {
2856
2633
  ...t,
2857
2634
  joinArrays: !1,
2858
2635
  ns: o
2859
- }), I[A] === f && (I[A] = c[A]);
2636
+ }), D[A] === m && (D[A] = c[A]);
2860
2637
  }
2861
- c = I;
2638
+ c = D;
2862
2639
  }
2863
- } else if (w && typeof F == "string" && k === "[object Array]")
2864
- 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));
2865
2642
  else {
2866
- let E = !1, I = !1;
2867
- 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, {
2868
2645
  ordinal: !1
2869
- }) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
2870
- !this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (I = !0, c = r);
2871
- const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && g !== c && this.options.updateMissing;
2872
- if (I || E || C) {
2873
- if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
2874
- 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, {
2875
2652
  ...t,
2876
2653
  keySeparator: !1
2877
2654
  });
2878
- 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.");
2879
2656
  }
2880
- let b = [];
2881
- const O = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2882
- if (this.options.saveMissingTo === "fallback" && O && O[0])
2883
- for (let R = 0; R < O.length; R++)
2884
- 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]);
2885
2662
  else
2886
- this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
2887
- const T = (R, D, V) => {
2888
- const se = A && V !== c ? V : N;
2889
- 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);
2890
2667
  };
2891
- this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
2892
- this.pluralResolver.getSuffixes(R, t).forEach((D) => {
2893
- 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);
2894
2671
  });
2895
- }) : T(b, r, g));
2672
+ }) : P(v, r, h));
2896
2673
  }
2897
- 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));
2898
2675
  }
2899
- 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;
2900
2677
  }
2901
2678
  extendTranslation(e, t, i, a, s) {
2902
2679
  var r = this;
@@ -2915,28 +2692,28 @@ class ve extends Ne {
2915
2692
  ...i.interpolation
2916
2693
  }
2917
2694
  });
2918
- const l = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2919
- let u;
2920
- 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) {
2921
2698
  const c = e.match(this.interpolator.nestingRegexp);
2922
- u = c && c.length;
2699
+ d = c && c.length;
2923
2700
  }
2924
- let p = i.replace && typeof i.replace != "string" ? i.replace : i;
2925
- 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 = {
2926
2703
  ...this.options.interpolation.defaultVariables,
2927
- ...p
2928
- }), e = this.interpolator.interpolate(e, p, i.lng || this.language, i), l) {
2929
- const c = e.match(this.interpolator.nestingRegexp), v = c && c.length;
2930
- 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);
2931
2708
  }
2932
2709
  !i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
2933
- for (var c = arguments.length, v = new Array(c), S = 0; S < c; S++)
2934
- v[S] = arguments[S];
2935
- 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);
2936
2713
  }, i)), i.interpolation && this.interpolator.reset();
2937
2714
  }
2938
- const o = i.postProcess || this.options.postProcess, d = typeof o == "string" ? [o] : o;
2939
- 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 ? {
2940
2717
  i18nResolved: {
2941
2718
  ...a,
2942
2719
  usedParams: this.getUsedParamsDetails(i)
@@ -2946,34 +2723,34 @@ class ve extends Ne {
2946
2723
  }
2947
2724
  resolve(e) {
2948
2725
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, a, s, r, o;
2949
- return typeof e == "string" && (e = [e]), e.forEach((d) => {
2726
+ return typeof e == "string" && (e = [e]), e.forEach((l) => {
2950
2727
  if (this.isValidLookup(i))
2951
2728
  return;
2952
- const l = this.extractFromKey(d, t), u = l.key;
2953
- a = u;
2954
- let p = l.namespaces;
2955
- this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
2956
- 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);
2957
- p.forEach((y) => {
2958
- 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) => {
2959
2736
  if (this.isValidLookup(i))
2960
2737
  return;
2961
- r = F;
2962
- const w = [u];
2738
+ r = O;
2739
+ const F = [d];
2963
2740
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
2964
- this.i18nFormat.addLookupKeys(w, u, F, y, t);
2741
+ this.i18nFormat.addLookupKeys(F, d, O, N, t);
2965
2742
  else {
2966
- let E;
2967
- c && (E = this.pluralResolver.getSuffix(F, t.count, t));
2968
- const I = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2969
- 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) {
2970
- const A = `${u}${this.options.contextSeparator}${t.context}`;
2971
- 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));
2972
2749
  }
2973
2750
  }
2974
- let L;
2975
- for (; L = w.pop(); )
2976
- 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));
2977
2754
  }));
2978
2755
  });
2979
2756
  }), {
@@ -3015,21 +2792,21 @@ class ve extends Ne {
3015
2792
  return !1;
3016
2793
  }
3017
2794
  }
3018
- function Oe(n) {
2795
+ function be(n) {
3019
2796
  return n.charAt(0).toUpperCase() + n.slice(1);
3020
2797
  }
3021
- class Nt {
2798
+ class ut {
3022
2799
  constructor(e) {
3023
- 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");
3024
2801
  }
3025
2802
  getScriptPartFromCode(e) {
3026
- if (e = ke(e), !e || e.indexOf("-") < 0)
2803
+ if (e = me(e), !e || e.indexOf("-") < 0)
3027
2804
  return null;
3028
2805
  const t = e.split("-");
3029
2806
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
3030
2807
  }
3031
2808
  getLanguagePartFromCode(e) {
3032
- if (e = ke(e), !e || e.indexOf("-") < 0)
2809
+ if (e = me(e), !e || e.indexOf("-") < 0)
3033
2810
  return e;
3034
2811
  const t = e.split("-");
3035
2812
  return this.formatLanguageCode(t[0]);
@@ -3038,7 +2815,7 @@ class Nt {
3038
2815
  if (typeof e == "string" && e.indexOf("-") > -1) {
3039
2816
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
3040
2817
  let i = e.split("-");
3041
- 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("-");
3042
2819
  }
3043
2820
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
3044
2821
  }
@@ -3087,7 +2864,7 @@ class Nt {
3087
2864
  }), a;
3088
2865
  }
3089
2866
  }
3090
- let Ka = [{
2867
+ let Va = [{
3091
2868
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
3092
2869
  nr: [1, 2],
3093
2870
  fc: 1
@@ -3179,7 +2956,7 @@ let Ka = [{
3179
2956
  lngs: ["he", "iw"],
3180
2957
  nr: [1, 2, 20, 21],
3181
2958
  fc: 22
3182
- }], Ga = {
2959
+ }], _a = {
3183
2960
  1: function(n) {
3184
2961
  return +(n > 1);
3185
2962
  },
@@ -3247,7 +3024,7 @@ let Ka = [{
3247
3024
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
3248
3025
  }
3249
3026
  };
3250
- const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3027
+ const Ua = ["v1", "v2", "v3"], Ma = ["v4"], ct = {
3251
3028
  zero: 0,
3252
3029
  one: 1,
3253
3030
  two: 2,
@@ -3255,21 +3032,21 @@ const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3255
3032
  many: 4,
3256
3033
  other: 5
3257
3034
  };
3258
- function qa() {
3035
+ function $a() {
3259
3036
  const n = {};
3260
- return Ka.forEach((e) => {
3037
+ return Va.forEach((e) => {
3261
3038
  e.lngs.forEach((t) => {
3262
3039
  n[t] = {
3263
3040
  numbers: e.nr,
3264
- plurals: Ga[e.fc]
3041
+ plurals: _a[e.fc]
3265
3042
  };
3266
3043
  });
3267
3044
  }), n;
3268
3045
  }
3269
- class Ha {
3046
+ class ja {
3270
3047
  constructor(e) {
3271
3048
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3272
- 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();
3273
3050
  }
3274
3051
  addRule(e, t) {
3275
3052
  this.rules[e] = t;
@@ -3278,7 +3055,7 @@ class Ha {
3278
3055
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3279
3056
  if (this.shouldUseIntlApi())
3280
3057
  try {
3281
- return new Intl.PluralRules(ke(e), {
3058
+ return new Intl.PluralRules(me(e), {
3282
3059
  type: t.ordinal ? "ordinal" : "cardinal"
3283
3060
  });
3284
3061
  } catch {
@@ -3298,7 +3075,7 @@ class Ha {
3298
3075
  getSuffixes(e) {
3299
3076
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3300
3077
  const i = this.getRule(e, t);
3301
- 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)) : [];
3302
3079
  }
3303
3080
  getSuffix(e, t) {
3304
3081
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -3313,17 +3090,17 @@ class Ha {
3313
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();
3314
3091
  }
3315
3092
  shouldUseIntlApi() {
3316
- return !Wa.includes(this.options.compatibilityJSON);
3093
+ return !Ua.includes(this.options.compatibilityJSON);
3317
3094
  }
3318
3095
  }
3319
- function Ft(n, e, t) {
3320
- 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);
3321
- 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;
3322
3099
  }
3323
- class Za {
3100
+ class za {
3324
3101
  constructor() {
3325
3102
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3326
- 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);
3327
3104
  }
3328
3105
  init() {
3329
3106
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -3331,7 +3108,7 @@ class Za {
3331
3108
  escapeValue: !0
3332
3109
  });
3333
3110
  const t = e.interpolation;
3334
- 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();
3335
3112
  }
3336
3113
  reset() {
3337
3114
  this.options && this.init(this.options);
@@ -3346,41 +3123,41 @@ class Za {
3346
3123
  }
3347
3124
  interpolate(e, t, i, a) {
3348
3125
  let s, r, o;
3349
- const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
3350
- function l(S) {
3351
- return S.replace(/\$/g, "$$$$");
3352
- }
3353
- const u = (S) => {
3354
- if (S.indexOf(this.formatSeparator) < 0) {
3355
- const w = Ft(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure);
3356
- 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, {
3357
3134
  ...a,
3358
3135
  ...t,
3359
- interpolationkey: S
3360
- }) : w;
3136
+ interpolationkey: y
3137
+ }) : F;
3361
3138
  }
3362
- const k = S.split(this.formatSeparator), y = k.shift().trim(), F = k.join(this.formatSeparator).trim();
3363
- 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, {
3364
3141
  ...a,
3365
3142
  ...t,
3366
- interpolationkey: y
3143
+ interpolationkey: N
3367
3144
  });
3368
3145
  };
3369
3146
  this.resetRegExp();
3370
- 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;
3371
3148
  return [{
3372
3149
  regex: this.regexpUnescape,
3373
- safeValue: (S) => l(S)
3150
+ safeValue: (y) => u(y)
3374
3151
  }, {
3375
3152
  regex: this.regexp,
3376
- safeValue: (S) => this.escapeValue ? l(this.escape(S)) : l(S)
3377
- }].forEach((S) => {
3378
- 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); ) {
3379
3156
  const k = s[1].trim();
3380
- if (r = u(k), r === void 0)
3381
- if (typeof p == "function") {
3382
- const F = p(e, s, a);
3383
- 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 : "";
3384
3161
  } else if (a && Object.prototype.hasOwnProperty.call(a, k))
3385
3162
  r = "";
3386
3163
  else if (c) {
@@ -3389,47 +3166,47 @@ class Za {
3389
3166
  } else
3390
3167
  this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
3391
3168
  else
3392
- typeof r != "string" && !this.useRawValueToEscape && (r = kt(r));
3393
- const y = S.safeValue(r);
3394
- 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)
3395
3172
  break;
3396
3173
  }
3397
3174
  }), e;
3398
3175
  }
3399
3176
  nest(e, t) {
3400
3177
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a, s, r;
3401
- function o(d, l) {
3402
- const u = this.nestingOptionsSeparator;
3403
- if (d.indexOf(u) < 0)
3404
- return d;
3405
- const p = d.split(new RegExp(`${u}[ ]*{`));
3406
- let c = `{${p[1]}`;
3407
- d = p[0], c = this.interpolate(c, r);
3408
- const v = c.match(/'/g), S = c.match(/"/g);
3409
- (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, '"'));
3410
3187
  try {
3411
- r = JSON.parse(c), l && (r = {
3412
- ...l,
3188
+ r = JSON.parse(c), u && (r = {
3189
+ ...u,
3413
3190
  ...r
3414
3191
  });
3415
3192
  } catch (k) {
3416
- 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}`;
3417
3194
  }
3418
- return delete r.defaultValue, d;
3195
+ return delete r.defaultValue, l;
3419
3196
  }
3420
3197
  for (; a = this.nestingRegexp.exec(e); ) {
3421
- let d = [];
3198
+ let l = [];
3422
3199
  r = {
3423
3200
  ...i
3424
3201
  }, r = r.replace && typeof r.replace != "string" ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
3425
- let l = !1;
3202
+ let u = !1;
3426
3203
  if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
3427
- const u = a[1].split(this.formatSeparator).map((p) => p.trim());
3428
- 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;
3429
3206
  }
3430
3207
  if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
3431
3208
  return s;
3432
- 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, {
3433
3210
  ...i,
3434
3211
  interpolationkey: a[1].trim()
3435
3212
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -3437,7 +3214,7 @@ class Za {
3437
3214
  return e;
3438
3215
  }
3439
3216
  }
3440
- function Xa(n) {
3217
+ function Ba(n) {
3441
3218
  let e = n.toLowerCase().trim();
3442
3219
  const t = {};
3443
3220
  if (n.indexOf("(") > -1) {
@@ -3447,8 +3224,8 @@ function Xa(n) {
3447
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) => {
3448
3225
  if (!r)
3449
3226
  return;
3450
- const [o, ...d] = r.split(":"), l = d.join(":").trim().replace(/^'+|'+$/g, "");
3451
- 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));
3452
3229
  });
3453
3230
  }
3454
3231
  return {
@@ -3456,44 +3233,44 @@ function Xa(n) {
3456
3233
  formatOptions: t
3457
3234
  };
3458
3235
  }
3459
- function K(n) {
3236
+ function Q(n) {
3460
3237
  const e = {};
3461
3238
  return function(i, a, s) {
3462
3239
  const r = a + JSON.stringify(s);
3463
3240
  let o = e[r];
3464
- 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);
3465
3242
  };
3466
3243
  }
3467
- class Ya {
3244
+ class Qa {
3468
3245
  constructor() {
3469
3246
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3470
- this.logger = j.create("formatter"), this.options = e, this.formats = {
3471
- number: K((t, i) => {
3247
+ this.logger = $.create("formatter"), this.options = e, this.formats = {
3248
+ number: Q((t, i) => {
3472
3249
  const a = new Intl.NumberFormat(t, {
3473
3250
  ...i
3474
3251
  });
3475
3252
  return (s) => a.format(s);
3476
3253
  }),
3477
- currency: K((t, i) => {
3254
+ currency: Q((t, i) => {
3478
3255
  const a = new Intl.NumberFormat(t, {
3479
3256
  ...i,
3480
3257
  style: "currency"
3481
3258
  });
3482
3259
  return (s) => a.format(s);
3483
3260
  }),
3484
- datetime: K((t, i) => {
3261
+ datetime: Q((t, i) => {
3485
3262
  const a = new Intl.DateTimeFormat(t, {
3486
3263
  ...i
3487
3264
  });
3488
3265
  return (s) => a.format(s);
3489
3266
  }),
3490
- relativetime: K((t, i) => {
3267
+ relativetime: Q((t, i) => {
3491
3268
  const a = new Intl.RelativeTimeFormat(t, {
3492
3269
  ...i
3493
3270
  });
3494
3271
  return (s) => a.format(s, i.range || "day");
3495
3272
  }),
3496
- list: K((t, i) => {
3273
+ list: Q((t, i) => {
3497
3274
  const a = new Intl.ListFormat(t, {
3498
3275
  ...i
3499
3276
  });
@@ -3511,50 +3288,50 @@ class Ya {
3511
3288
  this.formats[e.toLowerCase().trim()] = t;
3512
3289
  }
3513
3290
  addCached(e, t) {
3514
- this.formats[e.toLowerCase().trim()] = K(t);
3291
+ this.formats[e.toLowerCase().trim()] = Q(t);
3515
3292
  }
3516
3293
  format(e, t, i) {
3517
3294
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3518
- return t.split(this.formatSeparator).reduce((o, d) => {
3295
+ return t.split(this.formatSeparator).reduce((o, l) => {
3519
3296
  const {
3520
- formatName: l,
3521
- formatOptions: u
3522
- } = Xa(d);
3523
- if (this.formats[l]) {
3524
- let p = o;
3297
+ formatName: u,
3298
+ formatOptions: d
3299
+ } = Ba(l);
3300
+ if (this.formats[u]) {
3301
+ let f = o;
3525
3302
  try {
3526
- const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, v = c.locale || c.lng || a.locale || a.lng || i;
3527
- p = this.formats[l](o, v, {
3528
- ...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,
3529
3306
  ...a,
3530
3307
  ...c
3531
3308
  });
3532
3309
  } catch (c) {
3533
3310
  this.logger.warn(c);
3534
3311
  }
3535
- return p;
3312
+ return f;
3536
3313
  } else
3537
- this.logger.warn(`there was no format function for ${l}`);
3314
+ this.logger.warn(`there was no format function for ${u}`);
3538
3315
  return o;
3539
3316
  }, e);
3540
3317
  }
3541
3318
  }
3542
- function es(n, e) {
3319
+ function Ga(n, e) {
3543
3320
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3544
3321
  }
3545
- class ts extends Ne {
3322
+ class Ka extends ke {
3546
3323
  constructor(e, t, i) {
3547
3324
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3548
- 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);
3549
3326
  }
3550
3327
  queueLoad(e, t, i, a) {
3551
- const s = {}, r = {}, o = {}, d = {};
3552
- return e.forEach((l) => {
3553
- let u = !0;
3554
- t.forEach((p) => {
3555
- const c = `${l}|${p}`;
3556
- !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)));
3557
- }), 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);
3558
3335
  }), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
3559
3336
  pending: r,
3560
3337
  pendingCount: Object.keys(r).length,
@@ -3565,22 +3342,22 @@ class ts extends Ne {
3565
3342
  toLoad: Object.keys(s),
3566
3343
  pending: Object.keys(r),
3567
3344
  toLoadLanguages: Object.keys(o),
3568
- toLoadNamespaces: Object.keys(d)
3345
+ toLoadNamespaces: Object.keys(l)
3569
3346
  };
3570
3347
  }
3571
3348
  loaded(e, t, i) {
3572
3349
  const a = e.split("|"), s = a[0], r = a[1];
3573
3350
  t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
3574
3351
  const o = {};
3575
- this.queue.forEach((d) => {
3576
- Ma(d.loaded, [s], r), es(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
3577
- o[l] || (o[l] = {});
3578
- const u = d.loaded[l];
3579
- u.length && u.forEach((p) => {
3580
- 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);
3581
3358
  });
3582
- }), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
3583
- }), 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);
3584
3361
  }
3585
3362
  read(e, t, i) {
3586
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;
@@ -3598,29 +3375,29 @@ class ts extends Ne {
3598
3375
  return;
3599
3376
  }
3600
3377
  this.readingCalls++;
3601
- const o = (l, u) => {
3378
+ const o = (u, d) => {
3602
3379
  if (this.readingCalls--, this.waitingReads.length > 0) {
3603
- const p = this.waitingReads.shift();
3604
- 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);
3605
3382
  }
3606
- if (l && u && a < this.maxRetries) {
3383
+ if (u && d && a < this.maxRetries) {
3607
3384
  setTimeout(() => {
3608
3385
  this.read.call(this, e, t, i, a + 1, s * 2, r);
3609
3386
  }, s);
3610
3387
  return;
3611
3388
  }
3612
- r(l, u);
3613
- }, d = this.backend[i].bind(this.backend);
3614
- if (d.length === 2) {
3389
+ r(u, d);
3390
+ }, l = this.backend[i].bind(this.backend);
3391
+ if (l.length === 2) {
3615
3392
  try {
3616
- const l = d(e, t);
3617
- l && typeof l.then == "function" ? l.then((u) => o(null, u)).catch(o) : o(null, l);
3618
- } catch (l) {
3619
- 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);
3620
3397
  }
3621
3398
  return;
3622
3399
  }
3623
- return d(e, t, o);
3400
+ return l(e, t, o);
3624
3401
  }
3625
3402
  prepareLoading(e, t) {
3626
3403
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
@@ -3658,25 +3435,25 @@ class ts extends Ne {
3658
3435
  }
3659
3436
  if (!(i == null || i === "")) {
3660
3437
  if (this.backend && this.backend.create) {
3661
- const d = {
3438
+ const l = {
3662
3439
  ...r,
3663
3440
  isUpdate: s
3664
- }, l = this.backend.create.bind(this.backend);
3665
- if (l.length < 6)
3441
+ }, u = this.backend.create.bind(this.backend);
3442
+ if (u.length < 6)
3666
3443
  try {
3667
- let u;
3668
- 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);
3669
- } catch (u) {
3670
- 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);
3671
3448
  }
3672
3449
  else
3673
- l(e, t, i, a, o, d);
3450
+ u(e, t, i, a, o, l);
3674
3451
  }
3675
3452
  !e || !e[0] || this.store.addResource(e[0], t, i, a);
3676
3453
  }
3677
3454
  }
3678
3455
  }
3679
- function wt() {
3456
+ function ft() {
3680
3457
  return {
3681
3458
  debug: !1,
3682
3459
  initImmediate: !0,
@@ -3735,22 +3512,22 @@ function wt() {
3735
3512
  }
3736
3513
  };
3737
3514
  }
3738
- function Ct(n) {
3515
+ function pt(n) {
3739
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;
3740
3517
  }
3741
- function le() {
3518
+ function se() {
3742
3519
  }
3743
- function ns(n) {
3520
+ function Wa(n) {
3744
3521
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3745
3522
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
3746
3523
  });
3747
3524
  }
3748
- class ae extends Ne {
3525
+ class te extends ke {
3749
3526
  constructor() {
3750
3527
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3751
- 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 = {
3752
3529
  external: []
3753
- }, ns(this), t && !this.isInitialized && !e.isClone) {
3530
+ }, Wa(this), t && !this.isInitialized && !e.isClone) {
3754
3531
  if (!this.options.initImmediate)
3755
3532
  return this.init(e, t), this;
3756
3533
  setTimeout(() => {
@@ -3762,68 +3539,68 @@ class ae extends Ne {
3762
3539
  var e = this;
3763
3540
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
3764
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]));
3765
- const a = wt();
3542
+ const a = ft();
3766
3543
  this.options = {
3767
3544
  ...a,
3768
3545
  ...this.options,
3769
- ...Ct(t)
3546
+ ...pt(t)
3770
3547
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
3771
3548
  ...a.interpolation,
3772
3549
  ...this.options.interpolation
3773
3550
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
3774
- function s(u) {
3775
- return u ? typeof u == "function" ? new u() : u : null;
3551
+ function s(d) {
3552
+ return d ? typeof d == "function" ? new d() : d : null;
3776
3553
  }
3777
3554
  if (!this.options.isClone) {
3778
- this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
3779
- let u;
3780
- this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = Ya);
3781
- const p = new Nt(this.options);
3782
- 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);
3783
3560
  const c = this.services;
3784
- 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, {
3785
3562
  prepend: this.options.pluralSeparator,
3786
3563
  compatibilityJSON: this.options.compatibilityJSON,
3787
3564
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3788
- }), 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 = {
3789
3566
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3790
- }, c.backendConnector = new ts(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
3791
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3792
- k[y - 1] = arguments[y];
3793
- e.emit(v, ...k);
3794
- }), 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) {
3795
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3796
- k[y - 1] = arguments[y];
3797
- e.emit(v, ...k);
3798
- }), this.modules.external.forEach((v) => {
3799
- 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);
3800
3577
  });
3801
3578
  }
3802
- if (this.format = this.options.interpolation.format, i || (i = le), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3803
- const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3804
- 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]);
3805
3582
  }
3806
- !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) => {
3807
- this[u] = function() {
3808
- 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);
3809
3586
  };
3810
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((u) => {
3811
- this[u] = function() {
3812
- return e.store[u](...arguments), e;
3587
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((d) => {
3588
+ this[d] = function() {
3589
+ return e.store[d](...arguments), e;
3813
3590
  };
3814
3591
  });
3815
- const d = X(), l = () => {
3816
- const u = (p, c) => {
3817
- 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);
3818
3595
  };
3819
3596
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
3820
- return u(null, this.t.bind(this));
3821
- this.changeLanguage(this.options.lng, u);
3597
+ return d(null, this.t.bind(this));
3598
+ this.changeLanguage(this.options.lng, d);
3822
3599
  };
3823
- 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;
3824
3601
  }
3825
3602
  loadResources(e) {
3826
- 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;
3827
3604
  const a = typeof e == "string" ? e : this.language;
3828
3605
  if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
3829
3606
  if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
@@ -3831,19 +3608,19 @@ class ae extends Ne {
3831
3608
  const s = [], r = (o) => {
3832
3609
  if (!o || o === "cimode")
3833
3610
  return;
3834
- this.services.languageUtils.toResolveHierarchy(o).forEach((l) => {
3835
- 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);
3836
3613
  });
3837
3614
  };
3838
- 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) => {
3839
3616
  !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(o);
3840
3617
  });
3841
3618
  } else
3842
3619
  i(null);
3843
3620
  }
3844
3621
  reloadResources(e, t, i) {
3845
- const a = X();
3846
- 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) => {
3847
3624
  a.resolve(), i(s);
3848
3625
  }), a;
3849
3626
  }
@@ -3852,7 +3629,7 @@ class ae extends Ne {
3852
3629
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3853
3630
  if (!e.type)
3854
3631
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3855
- 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;
3856
3633
  }
3857
3634
  setResolvedLanguage(e) {
3858
3635
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -3867,21 +3644,21 @@ class ae extends Ne {
3867
3644
  changeLanguage(e, t) {
3868
3645
  var i = this;
3869
3646
  this.isLanguageChangingTo = e;
3870
- const a = X();
3647
+ const a = Z();
3871
3648
  this.emit("languageChanging", e);
3872
- const s = (d) => {
3873
- this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
3874
- }, r = (d, l) => {
3875
- 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() {
3876
3653
  return i.t(...arguments);
3877
- }), t && t(d, function() {
3654
+ }), t && t(l, function() {
3878
3655
  return i.t(...arguments);
3879
3656
  });
3880
- }, o = (d) => {
3881
- !e && !d && this.services.languageDetector && (d = []);
3882
- const l = typeof d == "string" ? d : this.services.languageUtils.getBestMatchFromCodes(d);
3883
- 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) => {
3884
- 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);
3885
3662
  });
3886
3663
  };
3887
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;
@@ -3889,19 +3666,19 @@ class ae extends Ne {
3889
3666
  getFixedT(e, t, i) {
3890
3667
  var a = this;
3891
3668
  const s = function(r, o) {
3892
- let d;
3669
+ let l;
3893
3670
  if (typeof o != "object") {
3894
- for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0), p = 2; p < l; p++)
3895
- u[p - 2] = arguments[p];
3896
- 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));
3897
3674
  } else
3898
- d = {
3675
+ l = {
3899
3676
  ...o
3900
3677
  };
3901
- 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;
3902
3679
  const c = a.options.keySeparator || ".";
3903
- let v;
3904
- 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);
3905
3682
  };
3906
3683
  return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
3907
3684
  }
@@ -3923,9 +3700,9 @@ class ae extends Ne {
3923
3700
  const i = t.lng || this.resolvedLanguage || this.languages[0], a = this.options ? this.options.fallbackLng : !1, s = this.languages[this.languages.length - 1];
3924
3701
  if (i.toLowerCase() === "cimode")
3925
3702
  return !0;
3926
- const r = (o, d) => {
3927
- const l = this.services.backendConnector.state[`${o}|${d}`];
3928
- 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;
3929
3706
  };
3930
3707
  if (t.precheck) {
3931
3708
  const o = t.precheck(this, r);
@@ -3935,7 +3712,7 @@ class ae extends Ne {
3935
3712
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
3936
3713
  }
3937
3714
  loadNamespaces(e, t) {
3938
- const i = X();
3715
+ const i = Z();
3939
3716
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
3940
3717
  this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
3941
3718
  }), this.loadResources((a) => {
@@ -3943,7 +3720,7 @@ class ae extends Ne {
3943
3720
  }), i) : (t && t(), Promise.resolve());
3944
3721
  }
3945
3722
  loadLanguages(e, t) {
3946
- const i = X();
3723
+ const i = Z();
3947
3724
  typeof e == "string" && (e = [e]);
3948
3725
  const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
3949
3726
  return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
@@ -3953,32 +3730,32 @@ class ae extends Ne {
3953
3730
  dir(e) {
3954
3731
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
3955
3732
  return "rtl";
3956
- 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());
3957
3734
  return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3958
3735
  }
3959
3736
  static createInstance() {
3960
3737
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3961
- return new ae(e, t);
3738
+ return new te(e, t);
3962
3739
  }
3963
3740
  cloneInstance() {
3964
- 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;
3965
3742
  const i = e.forkResourceStore;
3966
3743
  i && delete e.forkResourceStore;
3967
3744
  const a = {
3968
3745
  ...this.options,
3969
3746
  ...e,
3970
3747
  isClone: !0
3971
- }, s = new ae(a);
3748
+ }, s = new te(a);
3972
3749
  return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
3973
3750
  s[o] = this[o];
3974
3751
  }), s.services = {
3975
3752
  ...this.services
3976
3753
  }, s.services.utils = {
3977
3754
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3978
- }, 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) {
3979
- for (var d = arguments.length, l = new Array(d > 1 ? d - 1 : 0), u = 1; u < d; u++)
3980
- l[u - 1] = arguments[u];
3981
- 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);
3982
3759
  }), s.init(a, t), s.translator.options = a, s.translator.backendConnector.services.utils = {
3983
3760
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3984
3761
  }, s;
@@ -3993,8 +3770,8 @@ class ae extends Ne {
3993
3770
  };
3994
3771
  }
3995
3772
  }
3996
- const U = ae.createInstance();
3997
- U.createInstance = ae.createInstance;
3773
+ const U = te.createInstance();
3774
+ U.createInstance = te.createInstance;
3998
3775
  U.createInstance;
3999
3776
  U.dir;
4000
3777
  U.init;
@@ -4009,7 +3786,7 @@ U.setDefaultNamespace;
4009
3786
  U.hasLoadedNamespace;
4010
3787
  U.loadNamespaces;
4011
3788
  U.loadLanguages;
4012
- 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 = {
4013
3790
  "&amp;": "&",
4014
3791
  "&#38;": "&",
4015
3792
  "&lt;": "<",
@@ -4030,8 +3807,8 @@ const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
4030
3807
  "&#8230;": "…",
4031
3808
  "&#x2F;": "/",
4032
3809
  "&#47;": "/"
4033
- }, ss = (n) => as[n], rs = (n) => n.replace(is, ss);
4034
- let Et = {
3810
+ }, Ha = (n) => qa[n], Za = (n) => n.replace(Ja, Ha);
3811
+ let ht = {
4035
3812
  bindI18n: "languageChanged",
4036
3813
  bindI18nStore: "",
4037
3814
  transEmptyNodeValue: "",
@@ -4039,73 +3816,73 @@ let Et = {
4039
3816
  transWrapTextNodes: "",
4040
3817
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
4041
3818
  useSuspense: !0,
4042
- unescape: rs
3819
+ unescape: Za
4043
3820
  };
4044
- function os() {
3821
+ function Xa() {
4045
3822
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4046
- Et = {
4047
- ...Et,
3823
+ ht = {
3824
+ ...ht,
4048
3825
  ...n
4049
3826
  };
4050
3827
  }
4051
- const ls = {
3828
+ const Ya = {
4052
3829
  type: "3rdParty",
4053
3830
  init(n) {
4054
- os(n.options.react);
3831
+ Xa(n.options.react);
4055
3832
  }
4056
3833
  };
4057
- Va(U, ls);
4058
- const er = (n) => va(U, n);
4059
- let Ge = /* @__PURE__ */ new Map();
4060
- const Ie = Ot(Ge), tr = ({ children: n, stores: e }) => {
4061
- 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(() => {
4062
3839
  const a = /* @__PURE__ */ new Map();
4063
- 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]);
4064
3841
  }, []);
4065
- return /* @__PURE__ */ on(Ie.Provider, { value: i, children: n });
3842
+ return /* @__PURE__ */ Ht(Ee.Provider, { value: i, children: n });
4066
3843
  };
4067
- function nr(n) {
4068
- return Pe(Ie).get(n);
3844
+ function Ws(n) {
3845
+ return xe(Ee).get(n);
4069
3846
  }
4070
- function ir(n) {
4071
- return Ge.get(n);
3847
+ function Js(n) {
3848
+ return Ve.get(n);
4072
3849
  }
4073
- 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 || {});
4074
- 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({
4075
3852
  __proto__: null,
4076
- AddCollectionDocument: ds,
4077
- AppendProductsToSnackVideoDocument: Rs,
4078
- BlockUserDocument: vs,
4079
- ChangeAccountUsernameDocument: Ss,
4080
- CreateSnackVideoBatchDocument: xs,
4081
- DeleteAllCustomizationDocument: ws,
4082
- DeleteChatMessageDocument: ys,
4083
- DeleteCollectionDocument: us,
4084
- DeleteRelationshipWithSnackVideoDocument: Ts,
4085
- DeleteSnackVideoDocument: Ds,
4086
- EventStatus: en,
4087
- FindByProductSnackVideoDocument: Vs,
4088
- FindCollectionDocument: cs,
4089
- FindManySnackVideosDocument: Ls,
4090
- FindMinimalEventDocument: gs,
4091
- GetAllChatMessageDocument: Ns,
4092
- GetAllCollectionsDocument: ms,
4093
- GetAllCustomizationDocument: Cs,
4094
- GetAllSnackVideosDocument: Is,
4095
- GetChatRoomTokenDocument: bs,
4096
- GetSnackVideoRelationshipsDocument: As,
4097
- GetTimeLineDocument: Os,
4098
- ManageCollectionProductDocument: fs,
4099
- Methods: tn,
4100
- PinChatMessageDocument: Fs,
4101
- SearchCollectionsDocument: ps,
4102
- SearchMinimalEventsDocument: ks,
4103
- SearchSnackVideosDocument: Ps,
4104
- Status: nn,
4105
- UpdateCollectionDocument: hs,
4106
- 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
4107
3884
  }, Symbol.toStringTag, { value: "Module" }));
4108
- function sr(n) {
3885
+ function Hs(n) {
4109
3886
  return {
4110
3887
  class: n,
4111
3888
  _value: null,
@@ -4115,58 +3892,63 @@ function sr(n) {
4115
3892
  };
4116
3893
  }
4117
3894
  export {
4118
- Gt as AccountContractStatusTypes,
4119
- Ni as AccountContractTypes,
4120
- Gs as AccountInvalidError,
4121
- Fi as AccountPlanDescriptionTypes,
4122
- Ei as AccountRestRepository,
4123
- Oi as AccountService,
4124
- bi as AccountSubscriptionTypes,
4125
- Kt as AccountTypes,
4126
- Si as AggregateRoot,
4127
- ar as ApiGraphqlTypes,
4128
- qs as BaseMobxStore,
4129
- Xn as BroadcastChannelEventBus,
4130
- ye as DomainError,
4131
- Xs as EventBusWildcards,
4132
- Ys as EventNames,
4133
- wi as GlobalPageSectionTypes,
4134
- vi as InvalidNizzaGlobalObjectError,
4135
- fa as LanguageTypes,
4136
- ni as Logger,
4137
- ze as NizzaAccount,
4138
- ma as NizzaEventStatus,
4139
- ha as NizzaProductRequestOriginTypes,
4140
- pa as NizzaVariationTypes,
4141
- gi as ResourceNotFoundError,
4142
- tr as StoreProvider,
4143
- ki as UnexpectedError,
4144
- Hs as ValueObject,
4145
- Ve as accountAtom,
4146
- Wt as accountService,
4147
- js as apiCall,
4148
- ga as buildLanguageTranslations,
4149
- ka as buildTranslations,
4150
- ee as coreLogger,
4151
- yi as createAggregateRoot,
4152
- sr as createStore,
4153
- It as customFetch,
4154
- $s as downloadFile,
4155
- Bs as fileOrigin,
4156
- ca as getAccount,
4157
- Js as getClientTimeZone,
4158
- ir as getStore,
4159
- ua as globalAtomStore,
4160
- Va as i18Init,
4161
- On as jsDownload,
4162
- Ks as logger,
4163
- je as nizza,
4164
- er as registerTranslations,
4165
- va as registerTranslationsOf,
4166
- zs as searchParams,
4167
- ei as shortId,
4168
- Zs as useAccount,
4169
- nr as useStore,
4170
- 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
4171
3953
  };
4172
3954
  //# sourceMappingURL=index.mjs.map