@nizza/core 0.5.0-beta.4 → 0.5.0-beta.6

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 zt = Object.defineProperty;
2
- var Bt = (n, e, t) => e in n ? zt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var R = (n, e, t) => (Bt(n, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var jt = Object.defineProperty;
2
+ var zt = (n, e, t) => e in n ? jt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var R = (n, e, t) => (zt(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as M from "react";
5
- import fe, { createContext as ht, useReducer as Qt, useEffect as gt, useDebugValue as Gt, useCallback as Kt, useContext as Ce, useMemo as Wt } from "react";
6
- import { jsx as Jt } from "react/jsx-runtime";
5
+ import fe, { createContext as pt, useReducer as Bt, useEffect as ht, useDebugValue as Qt, useCallback as Gt, useContext as Ce, useMemo as Kt } from "react";
6
+ import { jsx as Wt } 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 qt = 0;
9
- function Ht(n, e) {
10
- const t = `atom${++qt}`, i = {
8
+ let Jt = 0;
9
+ function qt(n, e) {
10
+ const t = `atom${++Jt}`, i = {
11
11
  toString: () => t
12
12
  };
13
13
  return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
@@ -19,21 +19,21 @@ function Ht(n, e) {
19
19
  );
20
20
  }), e && (i.write = e), i;
21
21
  }
22
- const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), Zt = (n, e) => {
22
+ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), Ht = (n, e) => {
23
23
  re.set(n, e), n.catch(() => {
24
24
  }).finally(() => re.delete(n));
25
- }, Pe = (n, e) => {
25
+ }, Ae = (n, e) => {
26
26
  const t = re.get(n);
27
27
  t && (re.delete(n), t(e));
28
- }, Ve = (n, e) => {
28
+ }, Pe = (n, e) => {
29
29
  n.status = "fulfilled", n.value = e;
30
- }, _e = (n, e) => {
30
+ }, Ve = (n, e) => {
31
31
  n.status = "rejected", n.reason = e;
32
- }, Xt = (n) => typeof (n == null ? void 0 : n.then) == "function", W = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), Ue = (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, Yt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
32
+ }, Zt = (n) => typeof (n == null ? void 0 : n.then) == "function", W = (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, Xt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
33
33
  if ("e" in n)
34
34
  throw n.e;
35
35
  return n.v;
36
- }, kt = () => {
36
+ }, gt = () => {
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());
@@ -42,7 +42,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
42
42
  const h = n.get(m);
43
43
  if (n.set(m, p), t.has(m) || t.set(m, h), z(h)) {
44
44
  const g = "v" in p ? p.v instanceof Promise ? p.v : Promise.resolve(p.v) : Promise.reject(p.e);
45
- h.v !== g && Pe(h.v, g);
45
+ h.v !== g && Ae(h.v, g);
46
46
  }
47
47
  }, o = (m, p, h) => {
48
48
  const g = /* @__PURE__ */ new Map();
@@ -57,14 +57,14 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
57
57
  };
58
58
  if (h && o(m, b, h), W(g, b) && g.d === b.d)
59
59
  return g;
60
- if (z(g) && z(b) && Yt(g, b)) {
60
+ if (z(g) && z(b) && Xt(g, b)) {
61
61
  if (g.d === b.d)
62
62
  return g;
63
63
  b.v = g.v;
64
64
  }
65
65
  return r(m, b), b;
66
66
  }, u = (m, p, h, g) => {
67
- if (Xt(p)) {
67
+ if (Zt(p)) {
68
68
  let b;
69
69
  const C = () => {
70
70
  const E = s(m);
@@ -80,19 +80,19 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
80
80
  let x = !1;
81
81
  p.then(
82
82
  (T) => {
83
- x || (x = !0, Ve(v, T), E(T), C());
83
+ x || (x = !0, Pe(v, T), E(T), C());
84
84
  },
85
85
  (T) => {
86
- x || (x = !0, _e(v, T), P(T), C());
86
+ x || (x = !0, Ve(v, T), P(T), C());
87
87
  }
88
88
  ), b = (T) => {
89
89
  x || (x = !0, T.then(
90
- (V) => Ve(v, V),
91
- (V) => _e(v, V)
90
+ (V) => Pe(v, V),
91
+ (V) => Ve(v, V)
92
92
  ), E(T));
93
93
  };
94
94
  });
95
- return v.orig = p, v.status = "pending", Zt(v, (E) => {
95
+ return v.orig = p, v.status = "pending", Ht(v, (E) => {
96
96
  E && b(E), g == null || g();
97
97
  }), l(m, v, h);
98
98
  }
@@ -102,7 +102,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
102
102
  d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
103
103
  e: p
104
104
  };
105
- return h && o(m, b, h), Ue(g, b) && g.d === b.d ? g : (r(m, b), b);
105
+ return h && o(m, b, h), _e(g, b) && g.d === b.d ? g : (r(m, b), b);
106
106
  }, f = (m, p) => {
107
107
  const h = s(m);
108
108
  if (!p && h && (e.has(m) || Array.from(h.d).every(([x, T]) => {
@@ -241,7 +241,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
241
241
  const h = (p = e.get(m)) == null ? void 0 : p.u;
242
242
  h && h(), e.delete(m), (_ ? "production" : void 0) !== "production" && a.delete(m);
243
243
  const g = s(m);
244
- g ? (z(g) && Pe(g.v), g.d.forEach((b, C) => {
244
+ g ? (z(g) && Ae(g.v), g.d.forEach((b, C) => {
245
245
  if (C !== m) {
246
246
  const v = e.get(C);
247
247
  v && (v.t.delete(m), y(C, v) && w(C));
@@ -270,7 +270,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
270
270
  const C = e.get(h);
271
271
  C && b.d !== (g == null ? void 0 : g.d) && I(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
- (!z(g) && (W(g, b) || Ue(g, b))) && (C.l.forEach((v) => v()), (_ ? "production" : void 0) !== "production" && m.add(h));
273
+ (!z(g) && (W(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
  });
@@ -316,14 +316,14 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
316
316
  };
317
317
  let Se;
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 en = () => (Se || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
319
+ const Yt = () => (Se || ((_ ? "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
- ), Se = kt()), Se);
322
- var tn = { 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 nn = ht(void 0), vt = (n) => {
324
- const e = Ce(nn);
325
- return (n == null ? void 0 : n.store) || e || en();
326
- }, an = (n) => typeof (n == null ? void 0 : n.then) == "function", sn = fe.use || ((n) => {
321
+ ), Se = gt()), Se);
322
+ var en = { 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 tn = pt(void 0), kt = (n) => {
324
+ const e = Ce(tn);
325
+ return (n == null ? void 0 : n.store) || e || Yt();
326
+ }, nn = (n) => typeof (n == null ? void 0 : n.then) == "function", an = fe.use || ((n) => {
327
327
  if (n.status === "pending")
328
328
  throw n;
329
329
  if (n.status === "fulfilled")
@@ -337,8 +337,8 @@ const nn = ht(void 0), vt = (n) => {
337
337
  }
338
338
  ), n);
339
339
  });
340
- function rn(n, e) {
341
- const t = vt(e), [[i, a, s], r] = Qt(
340
+ function sn(n, e) {
341
+ const t = kt(e), [[i, a, s], r] = Bt(
342
342
  (u) => {
343
343
  const d = t.get(n);
344
344
  return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
@@ -349,7 +349,7 @@ function rn(n, e) {
349
349
  let o = i;
350
350
  (a !== t || s !== n) && (r(), o = t.get(n));
351
351
  const l = e == null ? void 0 : e.delay;
352
- return gt(() => {
352
+ return ht(() => {
353
353
  const u = t.sub(n, () => {
354
354
  if (typeof l == "number") {
355
355
  setTimeout(r, l);
@@ -358,37 +358,37 @@ function rn(n, e) {
358
358
  r();
359
359
  });
360
360
  return r(), u;
361
- }, [t, n, l]), Gt(o), an(o) ? sn(o) : o;
361
+ }, [t, n, l]), Qt(o), nn(o) ? an(o) : o;
362
362
  }
363
- function on(n, e) {
364
- const t = vt(e);
365
- return Kt(
363
+ function rn(n, e) {
364
+ const t = kt(e);
365
+ return Gt(
366
366
  (...a) => {
367
- if ((tn ? "production" : void 0) !== "production" && !("write" in n))
367
+ if ((en ? "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 ln(n, e) {
374
+ function on(n, e) {
375
375
  return [
376
- rn(n, e),
376
+ sn(n, e),
377
377
  // We do wrong type assertion here, which results in throwing an error.
378
- on(n, e)
378
+ rn(n, e)
379
379
  ];
380
380
  }
381
- const Ee = Ht(null);
381
+ const Ee = qt(null);
382
382
  Ee.debugLabel = "accountAtom";
383
- var dn = { 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 };
383
+ var ln = { 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: un,
386
- NZ_BACKOFFICE_BACK_URL: cn,
387
- NZ_CORE_SERVICES_GRAPHQL_URL: mn,
388
- NZ_CORE_SERVICES_REST_URL: fn
389
- } = dn, pn = {
385
+ NZ_AWS_REGION: dn,
386
+ NZ_BACKOFFICE_BACK_URL: un,
387
+ NZ_CORE_SERVICES_GRAPHQL_URL: cn,
388
+ NZ_CORE_SERVICES_REST_URL: mn
389
+ } = ln, fn = {
390
390
  AWS: {
391
- region: un,
391
+ region: dn,
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: cn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
- restV2: fn || "https://core-services-dev.nizza.com/api",
401
- graphql: mn || "https://core-services-dev.nizza.com/graphql",
399
+ restV1: un || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
+ restV2: mn || "https://core-services-dev.nizza.com/api",
401
+ graphql: cn || "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 St(n) {
415
+ async function vt(n) {
416
416
  const {
417
417
  url: e,
418
418
  method: t = "GET",
@@ -450,11 +450,11 @@ async function St(n) {
450
450
  throw console.error("[CustomFetch] ", u), u;
451
451
  }
452
452
  }
453
- const Ts = (n) => St({ ...n, contentTypeJson: !1, raw: !1 });
454
- function Ds(n, e, t) {
455
- fetch(e).then((i) => i.blob()).then((i) => hn(i, `${n}.${t}`));
453
+ const Rs = (n) => vt({ ...n, contentTypeJson: !1, raw: !1 });
454
+ function Ts(n, e, t) {
455
+ fetch(e).then((i) => i.blob()).then((i) => pn(i, `${n}.${t}`));
456
456
  }
457
- const hn = (n, e, t) => {
457
+ const pn = (n, e, t) => {
458
458
  const i = [n], a = new Blob(i, {
459
459
  type: t != null ? t : "application/octet-stream"
460
460
  });
@@ -465,8 +465,8 @@ const hn = (n, e, t) => {
465
465
  document.body.removeChild(r), window.URL.revokeObjectURL(s);
466
466
  }, 200);
467
467
  };
468
- var gn = { 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 Me = (n) => {
468
+ var hn = { 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 Ue = (n) => {
470
470
  let e;
471
471
  const t = /* @__PURE__ */ new Set(), i = (l, u) => {
472
472
  const d = typeof l == "function" ? l(e) : l;
@@ -475,17 +475,17 @@ const Me = (n) => {
475
475
  e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
476
476
  }
477
477
  }, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
478
- (gn ? "production" : void 0) !== "production" && console.warn(
478
+ (hn ? "production" : void 0) !== "production" && console.warn(
479
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
480
  ), t.clear();
481
481
  } };
482
482
  return e = n(i, a, o), o;
483
- }, kn = (n) => n ? Me(n) : Me;
484
- var yt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
483
+ }, gn = (n) => n ? Ue(n) : Ue;
484
+ var St = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
485
485
  function xe(n) {
486
486
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
487
487
  }
488
- var Nt = { exports: {} }, bt = {}, Ft = { exports: {} }, wt = {};
488
+ var yt = { exports: {} }, Nt = {}, bt = { exports: {} }, Ft = {};
489
489
  /**
490
490
  * @license React
491
491
  * use-sync-external-store-shim.production.min.js
@@ -496,37 +496,37 @@ var Nt = { exports: {} }, bt = {}, Ft = { exports: {} }, wt = {};
496
496
  * LICENSE file in the root directory of this source tree.
497
497
  */
498
498
  var K = fe;
499
- function vn(n, e) {
499
+ function kn(n, e) {
500
500
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
501
501
  }
502
- var Sn = typeof Object.is == "function" ? Object.is : vn, yn = K.useState, Nn = K.useEffect, bn = K.useLayoutEffect, Fn = K.useDebugValue;
503
- function wn(n, e) {
504
- var t = e(), i = yn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
- return bn(function() {
502
+ var vn = typeof Object.is == "function" ? Object.is : kn, Sn = K.useState, yn = K.useEffect, Nn = K.useLayoutEffect, bn = K.useDebugValue;
503
+ function Fn(n, e) {
504
+ var t = e(), i = Sn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
+ return Nn(function() {
506
506
  a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
507
- }, [n, t, e]), Nn(function() {
507
+ }, [n, t, e]), yn(function() {
508
508
  return ye(a) && s({ inst: a }), n(function() {
509
509
  ye(a) && s({ inst: a });
510
510
  });
511
- }, [n]), Fn(t), t;
511
+ }, [n]), bn(t), t;
512
512
  }
513
513
  function ye(n) {
514
514
  var e = n.getSnapshot;
515
515
  n = n.value;
516
516
  try {
517
517
  var t = e();
518
- return !Sn(n, t);
518
+ return !vn(n, t);
519
519
  } catch {
520
520
  return !0;
521
521
  }
522
522
  }
523
- function Cn(n, e) {
523
+ function wn(n, e) {
524
524
  return e();
525
525
  }
526
- var En = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Cn : wn;
527
- wt.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : En;
528
- Ft.exports = wt;
529
- var Ct = Ft.exports;
526
+ var Cn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? wn : Fn;
527
+ Ft.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : Cn;
528
+ bt.exports = Ft;
529
+ var wt = bt.exports;
530
530
  /**
531
531
  * @license React
532
532
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -536,19 +536,19 @@ var Ct = Ft.exports;
536
536
  * This source code is licensed under the MIT license found in the
537
537
  * LICENSE file in the root directory of this source tree.
538
538
  */
539
- var pe = fe, xn = Ct;
540
- function On(n, e) {
539
+ var pe = fe, En = wt;
540
+ function xn(n, e) {
541
541
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
542
542
  }
543
- var Rn = typeof Object.is == "function" ? Object.is : On, Tn = xn.useSyncExternalStore, Dn = pe.useRef, In = pe.useEffect, Ln = pe.useMemo, An = pe.useDebugValue;
544
- bt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
545
- var s = Dn(null);
543
+ var On = typeof Object.is == "function" ? Object.is : xn, Rn = En.useSyncExternalStore, Tn = pe.useRef, Dn = pe.useEffect, In = pe.useMemo, Ln = pe.useDebugValue;
544
+ Nt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
545
+ var s = Tn(null);
546
546
  if (s.current === null) {
547
547
  var r = { hasValue: !1, value: null };
548
548
  s.current = r;
549
549
  } else
550
550
  r = s.current;
551
- s = Ln(function() {
551
+ s = In(function() {
552
552
  function l(S) {
553
553
  if (!u) {
554
554
  if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
@@ -558,7 +558,7 @@ bt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
558
558
  }
559
559
  return f = S;
560
560
  }
561
- if (y = f, Rn(d, S))
561
+ if (y = f, On(d, S))
562
562
  return y;
563
563
  var k = i(S);
564
564
  return a !== void 0 && a(y, k) ? y : (d = S, f = k);
@@ -570,38 +570,38 @@ bt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
570
570
  return l(c());
571
571
  }];
572
572
  }, [e, t, i, a]);
573
- var o = Tn(n, s[0], s[1]);
574
- return In(function() {
573
+ var o = Rn(n, s[0], s[1]);
574
+ return Dn(function() {
575
575
  r.hasValue = !0, r.value = o;
576
- }, [o]), An(o), o;
576
+ }, [o]), Ln(o), o;
577
577
  };
578
- Nt.exports = bt;
579
- var Pn = Nt.exports;
580
- const Vn = /* @__PURE__ */ xe(Pn);
581
- var Et = { 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: _n } = fe, { useSyncExternalStoreWithSelector: Un } = Vn;
583
- let $e = !1;
584
- function Mn(n, e = n.getState, t) {
585
- (Et ? "production" : void 0) !== "production" && t && !$e && (console.warn(
578
+ yt.exports = Nt;
579
+ var An = yt.exports;
580
+ const Pn = /* @__PURE__ */ xe(An);
581
+ var Ct = { 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: Vn } = fe, { useSyncExternalStoreWithSelector: _n } = Pn;
583
+ let Me = !1;
584
+ function Un(n, e = n.getState, t) {
585
+ (Ct ? "production" : void 0) !== "production" && t && !Me && (console.warn(
586
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
- ), $e = !0);
588
- const i = Un(
587
+ ), Me = !0);
588
+ const i = _n(
589
589
  n.subscribe,
590
590
  n.getState,
591
591
  n.getServerState || n.getState,
592
592
  e,
593
593
  t
594
594
  );
595
- return _n(i), i;
595
+ return Vn(i), i;
596
596
  }
597
- const je = (n) => {
598
- (Et ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
597
+ const $e = (n) => {
598
+ (Ct ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
599
599
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
600
600
  );
601
- const e = typeof n == "function" ? kn(n) : n, t = (i, a) => Mn(e, i, a);
601
+ const e = typeof n == "function" ? gn(n) : n, t = (i, a) => Un(e, i, a);
602
602
  return Object.assign(t, e), t;
603
- }, $n = (n) => n ? je(n) : je;
604
- class jn {
603
+ }, Mn = (n) => n ? $e(n) : $e;
604
+ class $n {
605
605
  constructor(e) {
606
606
  R(this, "channel");
607
607
  R(this, "listeners", /* @__PURE__ */ new Map());
@@ -747,21 +747,21 @@ class jn {
747
747
  return new RegExp(`^${i}$`).test(t);
748
748
  }
749
749
  }
750
- let zn = (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 Bn = (n = 8) => zn(n), Is = (n) => {
750
+ let jn = (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 zn = (n = 8) => jn(n), Ds = (n) => {
752
752
  const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
753
753
  return e ? `?${e}` : "";
754
754
  };
755
- function Ls() {
755
+ function Is() {
756
756
  const n = new Error().stack.split(`
757
757
  `);
758
758
  return n.length < 3 ? "" : n[2].trim().substring(3);
759
759
  }
760
- var xt = { exports: {} };
760
+ var Et = { exports: {} };
761
761
  (function(n) {
762
762
  (function(e, t) {
763
763
  n.exports ? n.exports = t() : e.log = t();
764
- })(yt, function() {
764
+ })(St, function() {
765
765
  var e = function() {
766
766
  }, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
767
767
  "trace",
@@ -898,14 +898,14 @@ var xt = { exports: {} };
898
898
  return S;
899
899
  }, c.default = c, c;
900
900
  });
901
- })(xt);
902
- var Ot = xt.exports;
903
- const ie = /* @__PURE__ */ xe(Ot);
904
- var Rt = { exports: {} };
901
+ })(Et);
902
+ var xt = Et.exports;
903
+ const ie = /* @__PURE__ */ xe(xt);
904
+ var Ot = { exports: {} };
905
905
  (function(n) {
906
906
  (function(e, t) {
907
907
  n.exports ? n.exports = t() : e.prefix = t(e);
908
- })(yt, function(e) {
908
+ })(St, function(e) {
909
909
  var t = function(d) {
910
910
  for (var f = 1, c = arguments.length, S; f < c; f++)
911
911
  for (S in arguments[f])
@@ -954,14 +954,14 @@ var Rt = { exports: {} };
954
954
  return e.prefix === l && (e.prefix = u), l;
955
955
  }), l;
956
956
  });
957
- })(Rt);
958
- var Qn = Rt.exports;
959
- const ze = /* @__PURE__ */ xe(Qn);
960
- let Gn = class {
957
+ })(Ot);
958
+ var Bn = Ot.exports;
959
+ const je = /* @__PURE__ */ xe(Bn);
960
+ let Qn = class {
961
961
  constructor(e) {
962
- R(this, "defaultLevel", Ot.levels.INFO);
962
+ R(this, "defaultLevel", xt.levels.INFO);
963
963
  R(this, "namePrefix");
964
- this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), ze.reg(ie), ze.apply(ie, {
964
+ this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), je.reg(ie), je.apply(ie, {
965
965
  template: "[%t] %l (%n)",
966
966
  nameFormatter: (t) => {
967
967
  var i;
@@ -975,45 +975,52 @@ let Gn = class {
975
975
  return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
976
976
  }
977
977
  };
978
- const j = $n(() => ({
979
- config: null
980
- })), Kn = async (n) => {
978
+ const j = Kn(), Gn = j.store, As = j.log.createLogger("main"), Z = j.log.createLogger("core");
979
+ function ze() {
980
+ const n = Mn(() => ({
981
+ config: null
982
+ }));
983
+ return {
984
+ version: "1.0.3",
985
+ store: n,
986
+ configure: Wn,
987
+ setProductDataSource: Jn,
988
+ instanceId: zn(),
989
+ log: new Qn("nz"),
990
+ eventBus: new $n("nizza"),
991
+ get state() {
992
+ return n.getState();
993
+ }
994
+ };
995
+ }
996
+ function Kn() {
997
+ if (typeof window != "undefined") {
998
+ if (!window.nizza) {
999
+ const n = ze();
1000
+ window.nizza = n, window.nz = n;
1001
+ }
1002
+ return window.nizza;
1003
+ }
1004
+ return ze();
1005
+ }
1006
+ async function Wn(n) {
981
1007
  try {
982
- const e = j.getState().account;
983
- if (j.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
984
- const t = await ta(n.account);
985
- j.setState({ account: t });
1008
+ const e = j.store.getState().account;
1009
+ if (j.store.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
1010
+ const t = await ea(n.account);
1011
+ j.store.setState({ account: t });
986
1012
  }
987
1013
  if (n.getProductDataSource) {
988
1014
  const t = await n.getProductDataSource();
989
- j.setState({ productDataSource: t });
1015
+ j.store.setState({ productDataSource: t });
990
1016
  }
991
1017
  } catch (e) {
992
1018
  console.error("Error configuring NizzaStore:", e);
993
1019
  }
994
- }, Wn = (n) => {
995
- j.setState({ productDataSource: n });
996
- }, Be = () => ({
997
- version: "1.0.2",
998
- store: j,
999
- configure: Kn,
1000
- setProductDataSource: Wn,
1001
- instanceId: Bn(),
1002
- log: new Gn("nz"),
1003
- eventBus: new jn("nizza"),
1004
- get state() {
1005
- return j.getState();
1006
- }
1007
- }), Jn = () => {
1008
- if (typeof window != "undefined") {
1009
- if (!window.nizza) {
1010
- const n = Be();
1011
- window.nizza = n, window.nz = n;
1012
- }
1013
- return window.nizza;
1014
- }
1015
- return Be();
1016
- }, Oe = Jn(), qn = Oe.store, Ps = Oe.log.createLogger("main"), Z = Oe.log.createLogger("core");
1020
+ }
1021
+ function Jn(n) {
1022
+ j.store.setState({ productDataSource: n });
1023
+ }
1017
1024
  function G(n) {
1018
1025
  return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1019
1026
  }
@@ -1022,7 +1029,7 @@ function se(n) {
1022
1029
  return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1023
1030
  };
1024
1031
  }
1025
- function Re(n) {
1032
+ function Oe(n) {
1026
1033
  return function e(t, i) {
1027
1034
  switch (arguments.length) {
1028
1035
  case 0:
@@ -1040,36 +1047,36 @@ function Re(n) {
1040
1047
  }
1041
1048
  };
1042
1049
  }
1043
- const Hn = Number.isInteger || function(e) {
1050
+ const qn = Number.isInteger || function(e) {
1044
1051
  return e << 0 === e;
1045
1052
  };
1046
- function Zn(n) {
1053
+ function Hn(n) {
1047
1054
  return Object.prototype.toString.call(n) === "[object String]";
1048
1055
  }
1049
- var Xn = /* @__PURE__ */ Re(function(e, t) {
1056
+ var Zn = /* @__PURE__ */ Oe(function(e, t) {
1050
1057
  var i = e < 0 ? t.length + e : e;
1051
- return Zn(t) ? t.charAt(i) : t[i];
1058
+ return Hn(t) ? t.charAt(i) : t[i];
1052
1059
  });
1053
- const Yn = Xn;
1054
- var ei = /* @__PURE__ */ se(function(e) {
1060
+ const Xn = Zn;
1061
+ var Yn = /* @__PURE__ */ se(function(e) {
1055
1062
  return e == null;
1056
1063
  });
1057
- const ti = ei;
1058
- var ni = /* @__PURE__ */ Re(function(e, t) {
1064
+ const ei = Yn;
1065
+ var ti = /* @__PURE__ */ Oe(function(e, t) {
1059
1066
  return e.map(function(i) {
1060
1067
  for (var a = t, s = 0, r; s < i.length; ) {
1061
1068
  if (a == null)
1062
1069
  return;
1063
- r = i[s], a = Hn(r) ? Yn(r, a) : a[r], s += 1;
1070
+ r = i[s], a = qn(r) ? Xn(r, a) : a[r], s += 1;
1064
1071
  }
1065
1072
  return a;
1066
1073
  });
1067
1074
  });
1068
- const ii = ni;
1069
- var ai = /* @__PURE__ */ Re(function(e, t) {
1070
- return ii([e], t)[0];
1075
+ const ni = ti;
1076
+ var ii = /* @__PURE__ */ Oe(function(e, t) {
1077
+ return ni([e], t)[0];
1071
1078
  });
1072
- const si = ai;
1079
+ const ai = ii;
1073
1080
  class he extends Error {
1074
1081
  constructor(e, t, i) {
1075
1082
  super(t), this.value = i, this.name = e;
@@ -1082,7 +1089,7 @@ class he extends Error {
1082
1089
  };
1083
1090
  }
1084
1091
  }
1085
- class ri extends he {
1092
+ class si extends he {
1086
1093
  constructor(e) {
1087
1094
  super(
1088
1095
  "RESOURCE_NOT_FOUND_ERROR",
@@ -1091,7 +1098,7 @@ class ri extends he {
1091
1098
  );
1092
1099
  }
1093
1100
  }
1094
- class oi extends he {
1101
+ class ri extends he {
1095
1102
  constructor(e) {
1096
1103
  var t;
1097
1104
  super(
@@ -1101,12 +1108,12 @@ class oi extends he {
1101
1108
  );
1102
1109
  }
1103
1110
  }
1104
- class Vs extends he {
1111
+ class Ps extends he {
1105
1112
  constructor() {
1106
1113
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
1107
1114
  }
1108
1115
  }
1109
- class li extends he {
1116
+ class oi extends he {
1110
1117
  constructor(e) {
1111
1118
  super(
1112
1119
  "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
@@ -1134,13 +1141,13 @@ class li extends he {
1134
1141
  );
1135
1142
  }
1136
1143
  }
1137
- function _s(n, e) {
1144
+ function Vs(n, e) {
1138
1145
  e.forEach((t) => {
1139
- if (ti(si(t.split("."), n)))
1140
- throw new li(t);
1146
+ if (ei(ai(t.split("."), n)))
1147
+ throw new oi(t);
1141
1148
  });
1142
1149
  }
1143
- function Us() {
1150
+ function _s() {
1144
1151
  var i, a, s;
1145
1152
  let n = null, e = null, t = null;
1146
1153
  try {
@@ -1166,7 +1173,7 @@ function Us() {
1166
1173
  label: null
1167
1174
  };
1168
1175
  }
1169
- class di {
1176
+ class li {
1170
1177
  constructor(e) {
1171
1178
  R(this, "aggregate");
1172
1179
  R(this, "_numSetPropsApplied", 0);
@@ -1181,12 +1188,12 @@ class di {
1181
1188
  return this._numSetPropsApplied === 1;
1182
1189
  }
1183
1190
  }
1184
- function ui(n) {
1185
- return new di(n);
1191
+ function di(n) {
1192
+ return new li(n);
1186
1193
  }
1187
- class Ms {
1194
+ class Us {
1188
1195
  }
1189
- class $s {
1196
+ class Ms {
1190
1197
  constructor(e) {
1191
1198
  R(this, "_value");
1192
1199
  e !== void 0 && (this._value = e);
@@ -1195,13 +1202,13 @@ class $s {
1195
1202
  return this._value;
1196
1203
  }
1197
1204
  }
1198
- var Tt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Tt || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Dt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Dt || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(pi || {});
1199
- class Te {
1205
+ var Rt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Rt || {}), ui = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ui || {}), Tt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Tt || {}), ci = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(ci || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(fi || {});
1206
+ class Re {
1200
1207
  constructor(e) {
1201
- R(this, "root", ui(this));
1208
+ R(this, "root", di(this));
1202
1209
  R(this, "id");
1203
1210
  R(this, "account");
1204
- R(this, "accountType", Tt.UNKNOWN);
1211
+ R(this, "accountType", Rt.UNKNOWN);
1205
1212
  R(this, "username");
1206
1213
  R(this, "currencyConfig");
1207
1214
  R(this, "contractType");
@@ -1209,7 +1216,7 @@ class Te {
1209
1216
  R(this, "spendedMinutes", 0);
1210
1217
  R(this, "unlimitedService", !1);
1211
1218
  R(this, "hoursAvailable", 0);
1212
- R(this, "contractStatus", Dt.ACTIVE);
1219
+ R(this, "contractStatus", Tt.ACTIVE);
1213
1220
  R(this, "createdAt");
1214
1221
  R(this, "installationDateApp");
1215
1222
  R(this, "cxAccount");
@@ -1231,7 +1238,7 @@ class Te {
1231
1238
  username: i != null ? i : a.account,
1232
1239
  createdAt: new Date(Number(t))
1233
1240
  };
1234
- return new Te(s);
1241
+ return new Re(s);
1235
1242
  }
1236
1243
  toPrimitives() {
1237
1244
  const { root: e, createdAt: t, ...i } = this;
@@ -1241,16 +1248,16 @@ class Te {
1241
1248
  };
1242
1249
  }
1243
1250
  }
1244
- const hi = `${pn.apiUrls.restV1}/accounts/v2`;
1245
- class gi {
1251
+ const pi = `${fn.apiUrls.restV1}/accounts/v2`;
1252
+ class hi {
1246
1253
  async get(e) {
1247
- const t = `${hi}/${e}`, { data: i } = await St({
1254
+ const t = `${pi}/${e}`, { data: i } = await vt({
1248
1255
  url: t
1249
1256
  });
1250
- return i ? Te.toDomain(i) : null;
1257
+ return i ? Re.toDomain(i) : null;
1251
1258
  }
1252
1259
  }
1253
- class ki {
1260
+ class gi {
1254
1261
  constructor(e) {
1255
1262
  this.accountRepository = e;
1256
1263
  }
@@ -1258,15 +1265,15 @@ class ki {
1258
1265
  try {
1259
1266
  const t = await this.accountRepository.get(e);
1260
1267
  if (!t)
1261
- throw new ri(e);
1268
+ throw new si(e);
1262
1269
  return t;
1263
1270
  } catch (t) {
1264
- throw new oi(t);
1271
+ throw new ri(t);
1265
1272
  }
1266
1273
  }
1267
1274
  }
1268
- const vi = new gi(), It = new ki(vi);
1269
- class De {
1275
+ const ki = new hi(), Dt = new gi(ki);
1276
+ class Te {
1270
1277
  constructor() {
1271
1278
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1272
1279
  }
@@ -1287,16 +1294,16 @@ class De {
1287
1294
  }
1288
1295
  }
1289
1296
  const oe = typeof window == "undefined" || "Deno" in window;
1290
- function Si() {
1297
+ function vi() {
1291
1298
  }
1292
- function Qe(n) {
1299
+ function Be(n) {
1293
1300
  return typeof n == "number" && n >= 0 && n !== 1 / 0;
1294
1301
  }
1295
- function yi(n, e) {
1302
+ function Si(n, e) {
1296
1303
  return Math.max(n + (e || 0) - Date.now(), 0);
1297
1304
  }
1298
- function Ni(n, e, t) {
1299
- return bi(n) ? typeof e == "function" ? {
1305
+ function yi(n, e, t) {
1306
+ return Ni(n) ? typeof e == "function" ? {
1300
1307
  ...t,
1301
1308
  queryKey: n,
1302
1309
  queryFn: e
@@ -1305,16 +1312,16 @@ function Ni(n, e, t) {
1305
1312
  queryKey: n
1306
1313
  } : n;
1307
1314
  }
1308
- function Lt(n, e) {
1315
+ function It(n, e) {
1309
1316
  if (n === e)
1310
1317
  return n;
1311
- const t = Ge(n) && Ge(e);
1312
- if (t || Ke(n) && Ke(e)) {
1318
+ const t = Qe(n) && Qe(e);
1319
+ if (t || Ge(n) && Ge(e)) {
1313
1320
  const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
1314
1321
  let o = 0;
1315
1322
  for (let l = 0; l < s; l++) {
1316
1323
  const u = t ? l : a[l];
1317
- r[u] = Lt(n[u], e[u]), r[u] === n[u] && o++;
1324
+ r[u] = It(n[u], e[u]), r[u] === n[u] && o++;
1318
1325
  }
1319
1326
  return i === s && o === i ? n : r;
1320
1327
  }
@@ -1328,36 +1335,36 @@ function be(n, e) {
1328
1335
  return !1;
1329
1336
  return !0;
1330
1337
  }
1331
- function Ge(n) {
1338
+ function Qe(n) {
1332
1339
  return Array.isArray(n) && n.length === Object.keys(n).length;
1333
1340
  }
1334
- function Ke(n) {
1335
- if (!We(n))
1341
+ function Ge(n) {
1342
+ if (!Ke(n))
1336
1343
  return !1;
1337
1344
  const e = n.constructor;
1338
1345
  if (typeof e == "undefined")
1339
1346
  return !0;
1340
1347
  const t = e.prototype;
1341
- return !(!We(t) || !t.hasOwnProperty("isPrototypeOf"));
1348
+ return !(!Ke(t) || !t.hasOwnProperty("isPrototypeOf"));
1342
1349
  }
1343
- function We(n) {
1350
+ function Ke(n) {
1344
1351
  return Object.prototype.toString.call(n) === "[object Object]";
1345
1352
  }
1346
- function bi(n) {
1353
+ function Ni(n) {
1347
1354
  return Array.isArray(n);
1348
1355
  }
1349
- function Fi(n) {
1356
+ function bi(n) {
1350
1357
  return new Promise((e) => {
1351
1358
  setTimeout(e, n);
1352
1359
  });
1353
1360
  }
1354
- function Je(n) {
1355
- Fi(0).then(n);
1361
+ function We(n) {
1362
+ bi(0).then(n);
1356
1363
  }
1357
- function qe(n, e, t) {
1358
- return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Lt(n, e) : e;
1364
+ function Je(n, e, t) {
1365
+ return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? It(n, e) : e;
1359
1366
  }
1360
- class wi extends De {
1367
+ class Fi extends Te {
1361
1368
  constructor() {
1362
1369
  super(), this.setup = (e) => {
1363
1370
  if (!oe && window.addEventListener) {
@@ -1397,16 +1404,16 @@ class wi extends De {
1397
1404
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
1398
1405
  }
1399
1406
  }
1400
- const Ci = new wi(), He = ["online", "offline"];
1401
- class Ei extends De {
1407
+ const wi = new Fi(), qe = ["online", "offline"];
1408
+ class Ci extends Te {
1402
1409
  constructor() {
1403
1410
  super(), this.setup = (e) => {
1404
1411
  if (!oe && window.addEventListener) {
1405
1412
  const t = () => e();
1406
- return He.forEach((i) => {
1413
+ return qe.forEach((i) => {
1407
1414
  window.addEventListener(i, t, !1);
1408
1415
  }), () => {
1409
- He.forEach((i) => {
1416
+ qe.forEach((i) => {
1410
1417
  window.removeEventListener(i, t);
1411
1418
  });
1412
1419
  };
@@ -1442,19 +1449,19 @@ class Ei extends De {
1442
1449
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
1443
1450
  }
1444
1451
  }
1445
- const xi = new Ei();
1446
- function Oi(n) {
1447
- return (n != null ? n : "online") === "online" ? xi.isOnline() : !0;
1452
+ const Ei = new Ci();
1453
+ function xi(n) {
1454
+ return (n != null ? n : "online") === "online" ? Ei.isOnline() : !0;
1448
1455
  }
1449
- class Ri {
1456
+ class Oi {
1450
1457
  constructor(e) {
1451
1458
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1452
1459
  }
1453
1460
  }
1454
- function Ti(n) {
1455
- return n instanceof Ri;
1461
+ function Ri(n) {
1462
+ return n instanceof Oi;
1456
1463
  }
1457
- function Di() {
1464
+ function Ti() {
1458
1465
  let n = [], e = 0, t = (d) => {
1459
1466
  d();
1460
1467
  }, i = (d) => {
@@ -1470,7 +1477,7 @@ function Di() {
1470
1477
  }
1471
1478
  return f;
1472
1479
  }, s = (d) => {
1473
- e ? n.push(d) : Je(() => {
1480
+ e ? n.push(d) : We(() => {
1474
1481
  t(d);
1475
1482
  });
1476
1483
  }, r = (d) => (...f) => {
@@ -1479,7 +1486,7 @@ function Di() {
1479
1486
  });
1480
1487
  }, o = () => {
1481
1488
  const d = n;
1482
- n = [], d.length && Je(() => {
1489
+ n = [], d.length && We(() => {
1483
1490
  i(() => {
1484
1491
  d.forEach((f) => {
1485
1492
  t(f);
@@ -1499,8 +1506,8 @@ function Di() {
1499
1506
  }
1500
1507
  };
1501
1508
  }
1502
- const X = Di();
1503
- class Ii extends De {
1509
+ const X = Ti();
1510
+ class Di extends Te {
1504
1511
  constructor(e, t) {
1505
1512
  super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
1506
1513
  }
@@ -1508,7 +1515,7 @@ class Ii extends De {
1508
1515
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1509
1516
  }
1510
1517
  onSubscribe() {
1511
- this.listeners.size === 1 && (this.currentQuery.addObserver(this), Ze(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1518
+ this.listeners.size === 1 && (this.currentQuery.addObserver(this), He(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1512
1519
  }
1513
1520
  onUnsubscribe() {
1514
1521
  this.hasListeners() || this.destroy();
@@ -1532,13 +1539,13 @@ class Ii extends De {
1532
1539
  throw new Error("Expected enabled to be a boolean");
1533
1540
  this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
1534
1541
  const s = this.hasListeners();
1535
- s && Xe(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();
1542
+ s && Ze(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();
1536
1543
  const r = this.computeRefetchInterval();
1537
1544
  s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
1538
1545
  }
1539
1546
  getOptimisticResult(e) {
1540
1547
  const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
1541
- return Ai(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1548
+ return Li(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1542
1549
  }
1543
1550
  getCurrentResult() {
1544
1551
  return this.currentResult;
@@ -1584,12 +1591,12 @@ class Ii extends De {
1584
1591
  executeFetch(e) {
1585
1592
  this.updateQuery();
1586
1593
  let t = this.currentQuery.fetch(this.options, e);
1587
- return e != null && e.throwOnError || (t = t.catch(Si)), t;
1594
+ return e != null && e.throwOnError || (t = t.catch(vi)), t;
1588
1595
  }
1589
1596
  updateStaleTimeout() {
1590
- if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !Qe(this.options.staleTime))
1597
+ if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !Be(this.options.staleTime))
1591
1598
  return;
1592
- const t = yi(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1599
+ const t = Si(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1593
1600
  this.staleTimeoutId = setTimeout(() => {
1594
1601
  this.currentResult.isStale || this.updateResult();
1595
1602
  }, t);
@@ -1599,8 +1606,8 @@ class Ii extends De {
1599
1606
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1600
1607
  }
1601
1608
  updateRefetchInterval(e) {
1602
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !Qe(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1603
- (this.options.refetchIntervalInBackground || Ci.isFocused()) && this.executeFetch();
1609
+ this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !Be(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1610
+ (this.options.refetchIntervalInBackground || wi.isFocused()) && this.executeFetch();
1604
1611
  }, this.currentRefetchInterval));
1605
1612
  }
1606
1613
  updateTimers() {
@@ -1624,8 +1631,8 @@ class Ii extends De {
1624
1631
  status: N
1625
1632
  } = f, O = !1, F = !1, D;
1626
1633
  if (t._optimisticResults) {
1627
- const m = this.hasListeners(), p = !m && Ze(e, t), h = m && Xe(e, i, t, a);
1628
- (p || h) && (k = Oi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1634
+ const m = this.hasListeners(), p = !m && He(e, t), h = m && Ze(e, i, t, a);
1635
+ (p || h) && (k = xi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1629
1636
  }
1630
1637
  if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
1631
1638
  D = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
@@ -1634,7 +1641,7 @@ class Ii extends De {
1634
1641
  D = this.selectResult;
1635
1642
  else
1636
1643
  try {
1637
- this.selectFn = t.select, D = t.select(f.data), D = qe(s == null ? void 0 : s.data, D, t), this.selectResult = D, this.selectError = null;
1644
+ this.selectFn = t.select, D = t.select(f.data), D = Je(s == null ? void 0 : s.data, D, t), this.selectResult = D, this.selectError = null;
1638
1645
  } catch (m) {
1639
1646
  this.selectError = m;
1640
1647
  }
@@ -1650,7 +1657,7 @@ class Ii extends De {
1650
1657
  } catch (p) {
1651
1658
  this.selectError = p;
1652
1659
  }
1653
- typeof m != "undefined" && (N = "success", D = qe(s == null ? void 0 : s.data, m, t), F = !0);
1660
+ typeof m != "undefined" && (N = "success", D = Je(s == null ? void 0 : s.data, m, t), F = !0);
1654
1661
  }
1655
1662
  this.selectError && (S = this.selectError, D = this.selectResult, y = Date.now(), N = "error");
1656
1663
  const w = k === "fetching", I = N === "loading", L = N === "error";
@@ -1677,7 +1684,7 @@ class Ii extends De {
1677
1684
  isPlaceholderData: F,
1678
1685
  isPreviousData: O,
1679
1686
  isRefetchError: L && f.dataUpdatedAt !== 0,
1680
- isStale: Ie(e, t),
1687
+ isStale: De(e, t),
1681
1688
  refetch: this.refetch,
1682
1689
  remove: this.remove
1683
1690
  };
@@ -1717,7 +1724,7 @@ class Ii extends De {
1717
1724
  }
1718
1725
  onQueryUpdate(e) {
1719
1726
  const t = {};
1720
- e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ti(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1727
+ e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ri(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1721
1728
  }
1722
1729
  notify(e) {
1723
1730
  X.batch(() => {
@@ -1739,42 +1746,42 @@ class Ii extends De {
1739
1746
  });
1740
1747
  }
1741
1748
  }
1742
- function Li(n, e) {
1749
+ function Ii(n, e) {
1743
1750
  return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1744
1751
  }
1745
- function Ze(n, e) {
1746
- return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
1752
+ function He(n, e) {
1753
+ return Ii(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
1747
1754
  }
1748
1755
  function Fe(n, e, t) {
1749
1756
  if (e.enabled !== !1) {
1750
1757
  const i = typeof t == "function" ? t(n) : t;
1751
- return i === "always" || i !== !1 && Ie(n, e);
1758
+ return i === "always" || i !== !1 && De(n, e);
1752
1759
  }
1753
1760
  return !1;
1754
1761
  }
1755
- function Xe(n, e, t, i) {
1756
- return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Ie(n, t);
1762
+ function Ze(n, e, t, i) {
1763
+ return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && De(n, t);
1757
1764
  }
1758
- function Ie(n, e) {
1765
+ function De(n, e) {
1759
1766
  return n.isStaleByTime(e.staleTime);
1760
1767
  }
1761
- function Ai(n, e, t) {
1768
+ function Li(n, e, t) {
1762
1769
  return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !be(n.getCurrentResult(), e);
1763
1770
  }
1764
- const Pi = Ct.useSyncExternalStore, Ye = /* @__PURE__ */ M.createContext(void 0), Vi = /* @__PURE__ */ M.createContext(!1);
1765
- function _i(n, e) {
1766
- return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Ye), window.ReactQueryClientContext) : Ye);
1771
+ const Ai = wt.useSyncExternalStore, Xe = /* @__PURE__ */ M.createContext(void 0), Pi = /* @__PURE__ */ M.createContext(!1);
1772
+ function Vi(n, e) {
1773
+ return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Xe), window.ReactQueryClientContext) : Xe);
1767
1774
  }
1768
- const Ui = ({
1775
+ const _i = ({
1769
1776
  context: n
1770
1777
  } = {}) => {
1771
- const e = M.useContext(_i(n, M.useContext(Vi)));
1778
+ const e = M.useContext(Vi(n, M.useContext(Pi)));
1772
1779
  if (!e)
1773
1780
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1774
1781
  return e;
1775
- }, At = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(At);
1776
- At.Provider;
1777
- function $i() {
1782
+ }, Lt = /* @__PURE__ */ M.createContext(!1), Ui = () => M.useContext(Lt);
1783
+ Lt.Provider;
1784
+ function Mi() {
1778
1785
  let n = !1;
1779
1786
  return {
1780
1787
  clearReset: () => {
@@ -1786,37 +1793,37 @@ function $i() {
1786
1793
  isReset: () => n
1787
1794
  };
1788
1795
  }
1789
- const ji = /* @__PURE__ */ M.createContext($i()), zi = () => M.useContext(ji);
1790
- function Bi(n, e) {
1796
+ const $i = /* @__PURE__ */ M.createContext(Mi()), ji = () => M.useContext($i);
1797
+ function zi(n, e) {
1791
1798
  return typeof n == "function" ? n(...e) : !!n;
1792
1799
  }
1793
- const Qi = (n, e) => {
1800
+ const Bi = (n, e) => {
1794
1801
  (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
1795
- }, Gi = (n) => {
1802
+ }, Qi = (n) => {
1796
1803
  M.useEffect(() => {
1797
1804
  n.clearReset();
1798
1805
  }, [n]);
1799
- }, Ki = ({
1806
+ }, Gi = ({
1800
1807
  result: n,
1801
1808
  errorResetBoundary: e,
1802
1809
  useErrorBoundary: t,
1803
1810
  query: i
1804
- }) => n.isError && !e.isReset() && !n.isFetching && Bi(t, [n.error, i]), Wi = (n) => {
1811
+ }) => n.isError && !e.isReset() && !n.isFetching && zi(t, [n.error, i]), Ki = (n) => {
1805
1812
  n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
1806
- }, Ji = (n, e) => n.isLoading && n.isFetching && !e, qi = (n, e, t) => (n == null ? void 0 : n.suspense) && Ji(e, t), Hi = (n, e, t) => e.fetchOptimistic(n).then(({
1813
+ }, Wi = (n, e) => n.isLoading && n.isFetching && !e, Ji = (n, e, t) => (n == null ? void 0 : n.suspense) && Wi(e, t), qi = (n, e, t) => e.fetchOptimistic(n).then(({
1807
1814
  data: i
1808
1815
  }) => {
1809
1816
  n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
1810
1817
  }).catch((i) => {
1811
1818
  t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
1812
1819
  });
1813
- function Zi(n, e) {
1814
- const t = Ui({
1820
+ function Hi(n, e) {
1821
+ const t = _i({
1815
1822
  context: n.context
1816
- }), i = Mi(), a = zi(), s = t.defaultQueryOptions(n);
1817
- s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = X.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = X.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = X.batchCalls(s.onSettled)), Wi(s), Qi(s, a), Gi(a);
1823
+ }), i = Ui(), a = ji(), s = t.defaultQueryOptions(n);
1824
+ s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = X.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = X.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = X.batchCalls(s.onSettled)), Ki(s), Bi(s, a), Qi(a);
1818
1825
  const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
1819
- if (Pi(M.useCallback((l) => {
1826
+ if (Ai(M.useCallback((l) => {
1820
1827
  const u = i ? () => {
1821
1828
  } : r.subscribe(X.batchCalls(l));
1822
1829
  return r.updateResult(), u;
@@ -1824,9 +1831,9 @@ function Zi(n, e) {
1824
1831
  r.setOptions(s, {
1825
1832
  listeners: !1
1826
1833
  });
1827
- }, [s, r]), qi(s, o, i))
1828
- throw Hi(s, r, a);
1829
- if (Ki({
1834
+ }, [s, r]), Ji(s, o, i))
1835
+ throw qi(s, r, a);
1836
+ if (Gi({
1830
1837
  result: o,
1831
1838
  errorResetBoundary: a,
1832
1839
  useErrorBoundary: s.useErrorBoundary,
@@ -1835,33 +1842,33 @@ function Zi(n, e) {
1835
1842
  throw o.error;
1836
1843
  return s.notifyOnChangeProps ? o : r.trackResult(o);
1837
1844
  }
1838
- function Xi(n, e, t) {
1839
- const i = Ni(n, e, t);
1840
- return Zi(i, Ii);
1845
+ function Zi(n, e, t) {
1846
+ const i = yi(n, e, t);
1847
+ return Hi(i, Di);
1841
1848
  }
1842
- const Yi = () => ["account"], js = () => {
1843
- const n = qn((a) => {
1849
+ const Xi = () => ["account"], $s = () => {
1850
+ const n = Gn((a) => {
1844
1851
  var s;
1845
1852
  return (s = a.config) == null ? void 0 : s.account;
1846
- }), [e, t] = ln(Ee), i = Xi(Yi(), () => It.get(n), {
1853
+ }), [e, t] = on(Ee), i = Zi(Xi(), () => Dt.get(n), {
1847
1854
  enabled: !!n && !e,
1848
1855
  refetchOnWindowFocus: !1,
1849
1856
  refetchOnMount: !1
1850
1857
  });
1851
- return gt(() => {
1858
+ return ht(() => {
1852
1859
  const a = i.data;
1853
1860
  !i.isSuccess || !a || t(a);
1854
1861
  }, [i.status]), {
1855
1862
  findQuery: i,
1856
1863
  account: e
1857
1864
  };
1858
- }, ea = kt();
1859
- async function ta(n) {
1860
- const e = await It.get(n);
1861
- return ea.set(Ee, e), e;
1865
+ }, Yi = gt();
1866
+ async function ea(n) {
1867
+ const e = await Dt.get(n);
1868
+ return Yi.set(Ee, e), e;
1862
1869
  }
1863
- var na = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(na || {});
1864
- const zs = {
1870
+ var ta = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ta || {});
1871
+ const js = {
1865
1872
  ALL: "*",
1866
1873
  CORE: "core:**",
1867
1874
  LIVE_STREAMING_EVENT: "event:**",
@@ -1873,30 +1880,30 @@ const zs = {
1873
1880
  SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
1874
1881
  UI: "ui:**",
1875
1882
  UTILS: "utils:**"
1876
- }, Bs = {
1883
+ }, zs = {
1877
1884
  EVENT_STATUS_CHANGED: "event:statusChanged"
1878
1885
  };
1879
- var ia = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ia || {}), aa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(aa || {}), sa = /* @__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))(sa || {});
1880
- function ra(n) {
1886
+ var na = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(na || {}), ia = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(ia || {}), aa = /* @__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))(aa || {});
1887
+ function sa(n) {
1881
1888
  const e = Object.values(n);
1882
1889
  return Object.assign({}, ...e);
1883
1890
  }
1884
- function oa(n) {
1891
+ function ra(n) {
1885
1892
  return Object.entries(n).reduce(
1886
1893
  (e, [t, i]) => {
1887
- const a = ra(i);
1894
+ const a = sa(i);
1888
1895
  return { ...e, [t]: a };
1889
1896
  },
1890
1897
  {}
1891
1898
  );
1892
1899
  }
1893
- function la(n, e) {
1894
- const t = oa(e);
1900
+ function oa(n, e) {
1901
+ const t = ra(e);
1895
1902
  Object.entries(t).forEach(([i, a]) => {
1896
1903
  n.addResourceBundle(i, "translation", a, !0);
1897
1904
  });
1898
1905
  }
1899
- function da(n, e) {
1906
+ function la(n, e) {
1900
1907
  if (!(n instanceof e))
1901
1908
  throw new TypeError("Cannot call a class as a function");
1902
1909
  }
@@ -1908,7 +1915,7 @@ function Y(n) {
1908
1915
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1909
1916
  }, Y(n);
1910
1917
  }
1911
- function ua(n, e) {
1918
+ function da(n, e) {
1912
1919
  if (Y(n) !== "object" || n === null)
1913
1920
  return n;
1914
1921
  var t = n[Symbol.toPrimitive];
@@ -1920,30 +1927,30 @@ function ua(n, e) {
1920
1927
  }
1921
1928
  return (e === "string" ? String : Number)(n);
1922
1929
  }
1923
- function ca(n) {
1924
- var e = ua(n, "string");
1930
+ function ua(n) {
1931
+ var e = da(n, "string");
1925
1932
  return Y(e) === "symbol" ? e : String(e);
1926
1933
  }
1927
- function et(n, e) {
1934
+ function Ye(n, e) {
1928
1935
  for (var t = 0; t < e.length; t++) {
1929
1936
  var i = e[t];
1930
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ca(i.key), i);
1937
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ua(i.key), i);
1931
1938
  }
1932
1939
  }
1933
- function ma(n, e, t) {
1934
- return e && et(n.prototype, e), t && et(n, t), Object.defineProperty(n, "prototype", {
1940
+ function ca(n, e, t) {
1941
+ return e && Ye(n.prototype, e), t && Ye(n, t), Object.defineProperty(n, "prototype", {
1935
1942
  writable: !1
1936
1943
  }), n;
1937
1944
  }
1938
- var Pt = [], fa = Pt.forEach, pa = Pt.slice;
1939
- function ha(n) {
1940
- return fa.call(pa.call(arguments, 1), function(e) {
1945
+ var At = [], ma = At.forEach, fa = At.slice;
1946
+ function pa(n) {
1947
+ return ma.call(fa.call(arguments, 1), function(e) {
1941
1948
  if (e)
1942
1949
  for (var t in e)
1943
1950
  n[t] === void 0 && (n[t] = e[t]);
1944
1951
  }), n;
1945
1952
  }
1946
- var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
1953
+ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
1947
1954
  var a = i || {};
1948
1955
  a.path = a.path || "/";
1949
1956
  var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
@@ -1954,12 +1961,12 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
1954
1961
  r += "; Max-Age=".concat(Math.floor(o));
1955
1962
  }
1956
1963
  if (a.domain) {
1957
- if (!tt.test(a.domain))
1964
+ if (!et.test(a.domain))
1958
1965
  throw new TypeError("option domain is invalid");
1959
1966
  r += "; Domain=".concat(a.domain);
1960
1967
  }
1961
1968
  if (a.path) {
1962
- if (!tt.test(a.path))
1969
+ if (!et.test(a.path))
1963
1970
  throw new TypeError("option path is invalid");
1964
1971
  r += "; Path=".concat(a.path);
1965
1972
  }
@@ -1988,13 +1995,13 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
1988
1995
  }
1989
1996
  }
1990
1997
  return r;
1991
- }, nt = {
1998
+ }, tt = {
1992
1999
  create: function(e, t, i, a) {
1993
2000
  var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
1994
2001
  path: "/",
1995
2002
  sameSite: "strict"
1996
2003
  };
1997
- i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = ga(e, encodeURIComponent(t), s);
2004
+ i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = ha(e, encodeURIComponent(t), s);
1998
2005
  },
1999
2006
  read: function(e) {
2000
2007
  for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
@@ -2008,20 +2015,20 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2008
2015
  remove: function(e) {
2009
2016
  this.create(e, "", -1);
2010
2017
  }
2011
- }, ka = {
2018
+ }, ga = {
2012
2019
  name: "cookie",
2013
2020
  lookup: function(e) {
2014
2021
  var t;
2015
2022
  if (e.lookupCookie && typeof document != "undefined") {
2016
- var i = nt.read(e.lookupCookie);
2023
+ var i = tt.read(e.lookupCookie);
2017
2024
  i && (t = i);
2018
2025
  }
2019
2026
  return t;
2020
2027
  },
2021
2028
  cacheUserLanguage: function(e, t) {
2022
- t.lookupCookie && typeof document != "undefined" && nt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2029
+ t.lookupCookie && typeof document != "undefined" && tt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2023
2030
  }
2024
- }, va = {
2031
+ }, ka = {
2025
2032
  name: "querystring",
2026
2033
  lookup: function(e) {
2027
2034
  var t;
@@ -2038,7 +2045,7 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2038
2045
  }
2039
2046
  return t;
2040
2047
  }
2041
- }, J = null, it = function() {
2048
+ }, J = null, nt = function() {
2042
2049
  if (J !== null)
2043
2050
  return J;
2044
2051
  try {
@@ -2049,20 +2056,20 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2049
2056
  J = !1;
2050
2057
  }
2051
2058
  return J;
2052
- }, Sa = {
2059
+ }, va = {
2053
2060
  name: "localStorage",
2054
2061
  lookup: function(e) {
2055
2062
  var t;
2056
- if (e.lookupLocalStorage && it()) {
2063
+ if (e.lookupLocalStorage && nt()) {
2057
2064
  var i = window.localStorage.getItem(e.lookupLocalStorage);
2058
2065
  i && (t = i);
2059
2066
  }
2060
2067
  return t;
2061
2068
  },
2062
2069
  cacheUserLanguage: function(e, t) {
2063
- t.lookupLocalStorage && it() && window.localStorage.setItem(t.lookupLocalStorage, e);
2070
+ t.lookupLocalStorage && nt() && window.localStorage.setItem(t.lookupLocalStorage, e);
2064
2071
  }
2065
- }, q = null, at = function() {
2072
+ }, q = null, it = function() {
2066
2073
  if (q !== null)
2067
2074
  return q;
2068
2075
  try {
@@ -2073,20 +2080,20 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2073
2080
  q = !1;
2074
2081
  }
2075
2082
  return q;
2076
- }, ya = {
2083
+ }, Sa = {
2077
2084
  name: "sessionStorage",
2078
2085
  lookup: function(e) {
2079
2086
  var t;
2080
- if (e.lookupSessionStorage && at()) {
2087
+ if (e.lookupSessionStorage && it()) {
2081
2088
  var i = window.sessionStorage.getItem(e.lookupSessionStorage);
2082
2089
  i && (t = i);
2083
2090
  }
2084
2091
  return t;
2085
2092
  },
2086
2093
  cacheUserLanguage: function(e, t) {
2087
- t.lookupSessionStorage && at() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2094
+ t.lookupSessionStorage && it() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2088
2095
  }
2089
- }, Na = {
2096
+ }, ya = {
2090
2097
  name: "navigator",
2091
2098
  lookup: function(e) {
2092
2099
  var t = [];
@@ -2098,13 +2105,13 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2098
2105
  }
2099
2106
  return t.length > 0 ? t : void 0;
2100
2107
  }
2101
- }, ba = {
2108
+ }, Na = {
2102
2109
  name: "htmlTag",
2103
2110
  lookup: function(e) {
2104
2111
  var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
2105
2112
  return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
2106
2113
  }
2107
- }, Fa = {
2114
+ }, ba = {
2108
2115
  name: "path",
2109
2116
  lookup: function(e) {
2110
2117
  var t;
@@ -2120,7 +2127,7 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2120
2127
  }
2121
2128
  return t;
2122
2129
  }
2123
- }, wa = {
2130
+ }, Fa = {
2124
2131
  name: "subdomain",
2125
2132
  lookup: function(e) {
2126
2133
  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);
@@ -2128,7 +2135,7 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2128
2135
  return i[t];
2129
2136
  }
2130
2137
  };
2131
- function Ca() {
2138
+ function wa() {
2132
2139
  return {
2133
2140
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2134
2141
  lookupQuerystring: "lng",
@@ -2145,20 +2152,20 @@ function Ca() {
2145
2152
  }
2146
2153
  };
2147
2154
  }
2148
- var Vt = /* @__PURE__ */ function() {
2155
+ var Pt = /* @__PURE__ */ function() {
2149
2156
  function n(e) {
2150
2157
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2151
- da(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2158
+ la(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2152
2159
  }
2153
- return ma(n, [{
2160
+ return ca(n, [{
2154
2161
  key: "init",
2155
2162
  value: function(t) {
2156
2163
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2157
2164
  this.services = t || {
2158
2165
  languageUtils: {}
2159
- }, this.options = ha(i, this.options || {}, Ca()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2166
+ }, this.options = pa(i, this.options || {}, wa()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2160
2167
  return s.replace("-", "_");
2161
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba), this.addDetector(Fa), this.addDetector(wa);
2168
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ga), this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba), this.addDetector(Fa);
2162
2169
  }
2163
2170
  }, {
2164
2171
  key: "addDetector",
@@ -2190,9 +2197,9 @@ var Vt = /* @__PURE__ */ function() {
2190
2197
  }
2191
2198
  }]), n;
2192
2199
  }();
2193
- Vt.type = "languageDetector";
2194
- function Ea(n, e) {
2195
- n.use(e).use(Vt).init({
2200
+ Pt.type = "languageDetector";
2201
+ function Ca(n, e) {
2202
+ n.use(e).use(Pt).init({
2196
2203
  resources: {},
2197
2204
  fallbackLng: "en",
2198
2205
  debug: !1,
@@ -2231,7 +2238,7 @@ function Ea(n, e) {
2231
2238
  }
2232
2239
  });
2233
2240
  }
2234
- const xa = {
2241
+ const Ea = {
2235
2242
  type: "logger",
2236
2243
  log(n) {
2237
2244
  this.output("log", n);
@@ -2253,7 +2260,7 @@ class le {
2253
2260
  }
2254
2261
  init(e) {
2255
2262
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2256
- this.prefix = t.prefix || "i18next:", this.logger = e || xa, this.options = t, this.debug = t.debug;
2263
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ea, this.options = t, this.debug = t.debug;
2257
2264
  }
2258
2265
  log() {
2259
2266
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
@@ -2324,15 +2331,15 @@ function H() {
2324
2331
  });
2325
2332
  return t.resolve = n, t.reject = e, t;
2326
2333
  }
2327
- function st(n) {
2334
+ function at(n) {
2328
2335
  return n == null ? "" : "" + n;
2329
2336
  }
2330
- function Oa(n, e, t) {
2337
+ function xa(n, e, t) {
2331
2338
  n.forEach((i) => {
2332
2339
  e[i] && (t[i] = e[i]);
2333
2340
  });
2334
2341
  }
2335
- function Le(n, e, t) {
2342
+ function Ie(n, e, t) {
2336
2343
  function i(r) {
2337
2344
  return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
2338
2345
  }
@@ -2351,41 +2358,41 @@ function Le(n, e, t) {
2351
2358
  k: i(s.shift())
2352
2359
  };
2353
2360
  }
2354
- function rt(n, e, t) {
2361
+ function st(n, e, t) {
2355
2362
  const {
2356
2363
  obj: i,
2357
2364
  k: a
2358
- } = Le(n, e, Object);
2365
+ } = Ie(n, e, Object);
2359
2366
  i[a] = t;
2360
2367
  }
2361
- function Ra(n, e, t, i) {
2368
+ function Oa(n, e, t, i) {
2362
2369
  const {
2363
2370
  obj: a,
2364
2371
  k: s
2365
- } = Le(n, e, Object);
2372
+ } = Ie(n, e, Object);
2366
2373
  a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
2367
2374
  }
2368
2375
  function de(n, e) {
2369
2376
  const {
2370
2377
  obj: t,
2371
2378
  k: i
2372
- } = Le(n, e);
2379
+ } = Ie(n, e);
2373
2380
  if (t)
2374
2381
  return t[i];
2375
2382
  }
2376
- function Ta(n, e, t) {
2383
+ function Ra(n, e, t) {
2377
2384
  const i = de(n, t);
2378
2385
  return i !== void 0 ? i : de(e, t);
2379
2386
  }
2380
- function _t(n, e, t) {
2387
+ function Vt(n, e, t) {
2381
2388
  for (const i in e)
2382
- 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]) : _t(n[i], e[i], t) : n[i] = e[i]);
2389
+ 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]) : Vt(n[i], e[i], t) : n[i] = e[i]);
2383
2390
  return n;
2384
2391
  }
2385
2392
  function B(n) {
2386
2393
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2387
2394
  }
2388
- var Da = {
2395
+ var Ta = {
2389
2396
  "&": "&amp;",
2390
2397
  "<": "&lt;",
2391
2398
  ">": "&gt;",
@@ -2393,13 +2400,13 @@ var Da = {
2393
2400
  "'": "&#39;",
2394
2401
  "/": "&#x2F;"
2395
2402
  };
2396
- function Ia(n) {
2397
- return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Da[e]) : n;
2403
+ function Da(n) {
2404
+ return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Ta[e]) : n;
2398
2405
  }
2399
- const La = [" ", ",", "?", "!", ";"];
2400
- function Aa(n, e, t) {
2406
+ const Ia = [" ", ",", "?", "!", ";"];
2407
+ function La(n, e, t) {
2401
2408
  e = e || "", t = t || "";
2402
- const i = La.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2409
+ const i = Ia.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2403
2410
  if (i.length === 0)
2404
2411
  return !0;
2405
2412
  const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
@@ -2445,7 +2452,7 @@ function ue(n, e) {
2445
2452
  function ce(n) {
2446
2453
  return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
2447
2454
  }
2448
- class ot extends ge {
2455
+ class rt extends ge {
2449
2456
  constructor(e) {
2450
2457
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2451
2458
  ns: ["translation"],
@@ -2474,7 +2481,7 @@ class ot extends ge {
2474
2481
  };
2475
2482
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
2476
2483
  let o = [e, t];
2477
- i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), rt(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2484
+ i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), st(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2478
2485
  }
2479
2486
  addResources(e, t, i) {
2480
2487
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -2492,10 +2499,10 @@ class ot extends ge {
2492
2499
  }, o = [e, t];
2493
2500
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2494
2501
  let l = de(this.data, o) || {};
2495
- a ? _t(l, i, s) : l = {
2502
+ a ? Vt(l, i, s) : l = {
2496
2503
  ...l,
2497
2504
  ...i
2498
- }, rt(this.data, o, l), r.silent || this.emit("added", e, t, i);
2505
+ }, st(this.data, o, l), r.silent || this.emit("added", e, t, i);
2499
2506
  }
2500
2507
  removeResourceBundle(e, t) {
2501
2508
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2519,7 +2526,7 @@ class ot extends ge {
2519
2526
  return this.data;
2520
2527
  }
2521
2528
  }
2522
- var Ut = {
2529
+ var _t = {
2523
2530
  processors: {},
2524
2531
  addPostProcessor(n) {
2525
2532
  this.processors[n.name] = n;
@@ -2530,11 +2537,11 @@ var Ut = {
2530
2537
  }), e;
2531
2538
  }
2532
2539
  };
2533
- const lt = {};
2540
+ const ot = {};
2534
2541
  class me extends ge {
2535
2542
  constructor(e) {
2536
2543
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2537
- super(), Oa(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
2544
+ super(), xa(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
2538
2545
  }
2539
2546
  changeLanguage(e) {
2540
2547
  e && (this.language = e);
@@ -2553,7 +2560,7 @@ class me extends ge {
2553
2560
  i === void 0 && (i = ":");
2554
2561
  const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2555
2562
  let s = t.ns || this.options.defaultNS || [];
2556
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Aa(e, i, a);
2563
+ const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !La(e, i, a);
2557
2564
  if (r && !o) {
2558
2565
  const l = e.match(this.interpolator.nestingRegexp);
2559
2566
  if (l && l.length > 0)
@@ -2701,7 +2708,7 @@ class me extends ge {
2701
2708
  }, i)), i.interpolation && this.interpolator.reset();
2702
2709
  }
2703
2710
  const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
2704
- return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = Ut.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
2711
+ return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = _t.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
2705
2712
  i18nResolved: {
2706
2713
  ...a,
2707
2714
  usedParams: this.getUsedParamsDetails(i)
@@ -2720,7 +2727,7 @@ class me extends ge {
2720
2727
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2721
2728
  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);
2722
2729
  f.forEach((N) => {
2723
- this.isValidLookup(i) || (o = N, !lt[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (lt[`${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) => {
2730
+ this.isValidLookup(i) || (o = N, !ot[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ot[`${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) => {
2724
2731
  if (this.isValidLookup(i))
2725
2732
  return;
2726
2733
  r = O;
@@ -2783,7 +2790,7 @@ class me extends ge {
2783
2790
  function Ne(n) {
2784
2791
  return n.charAt(0).toUpperCase() + n.slice(1);
2785
2792
  }
2786
- class dt {
2793
+ class lt {
2787
2794
  constructor(e) {
2788
2795
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
2789
2796
  }
@@ -2852,7 +2859,7 @@ class dt {
2852
2859
  }), a;
2853
2860
  }
2854
2861
  }
2855
- let Pa = [{
2862
+ let Aa = [{
2856
2863
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
2857
2864
  nr: [1, 2],
2858
2865
  fc: 1
@@ -2944,7 +2951,7 @@ let Pa = [{
2944
2951
  lngs: ["he", "iw"],
2945
2952
  nr: [1, 2, 20, 21],
2946
2953
  fc: 22
2947
- }], Va = {
2954
+ }], Pa = {
2948
2955
  1: function(n) {
2949
2956
  return +(n > 1);
2950
2957
  },
@@ -3012,7 +3019,7 @@ let Pa = [{
3012
3019
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
3013
3020
  }
3014
3021
  };
3015
- const _a = ["v1", "v2", "v3"], Ua = ["v4"], ut = {
3022
+ const Va = ["v1", "v2", "v3"], _a = ["v4"], dt = {
3016
3023
  zero: 0,
3017
3024
  one: 1,
3018
3025
  two: 2,
@@ -3020,21 +3027,21 @@ const _a = ["v1", "v2", "v3"], Ua = ["v4"], ut = {
3020
3027
  many: 4,
3021
3028
  other: 5
3022
3029
  };
3023
- function Ma() {
3030
+ function Ua() {
3024
3031
  const n = {};
3025
- return Pa.forEach((e) => {
3032
+ return Aa.forEach((e) => {
3026
3033
  e.lngs.forEach((t) => {
3027
3034
  n[t] = {
3028
3035
  numbers: e.nr,
3029
- plurals: Va[e.fc]
3036
+ plurals: Pa[e.fc]
3030
3037
  };
3031
3038
  });
3032
3039
  }), n;
3033
3040
  }
3034
- class $a {
3041
+ class Ma {
3035
3042
  constructor(e) {
3036
3043
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3037
- this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || Ua.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 = Ma();
3044
+ this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || _a.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 = Ua();
3038
3045
  }
3039
3046
  addRule(e, t) {
3040
3047
  this.rules[e] = t;
@@ -3063,7 +3070,7 @@ class $a {
3063
3070
  getSuffixes(e) {
3064
3071
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3065
3072
  const i = this.getRule(e, t);
3066
- return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => ut[a] - ut[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3073
+ return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => dt[a] - dt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3067
3074
  }
3068
3075
  getSuffix(e, t) {
3069
3076
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -3078,14 +3085,14 @@ class $a {
3078
3085
  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();
3079
3086
  }
3080
3087
  shouldUseIntlApi() {
3081
- return !_a.includes(this.options.compatibilityJSON);
3088
+ return !Va.includes(this.options.compatibilityJSON);
3082
3089
  }
3083
3090
  }
3084
- function ct(n, e, t) {
3085
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Ta(n, e, t);
3091
+ function ut(n, e, t) {
3092
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Ra(n, e, t);
3086
3093
  return !s && a && typeof t == "string" && (s = ue(n, t, i), s === void 0 && (s = ue(e, t, i))), s;
3087
3094
  }
3088
- class ja {
3095
+ class $a {
3089
3096
  constructor() {
3090
3097
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3091
3098
  this.logger = $.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
@@ -3096,7 +3103,7 @@ class ja {
3096
3103
  escapeValue: !0
3097
3104
  });
3098
3105
  const t = e.interpolation;
3099
- this.escape = t.escape !== void 0 ? t.escape : Ia, 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();
3106
+ this.escape = t.escape !== void 0 ? t.escape : Da, 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();
3100
3107
  }
3101
3108
  reset() {
3102
3109
  this.options && this.init(this.options);
@@ -3117,7 +3124,7 @@ class ja {
3117
3124
  }
3118
3125
  const d = (y) => {
3119
3126
  if (y.indexOf(this.formatSeparator) < 0) {
3120
- const F = ct(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
3127
+ const F = ut(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
3121
3128
  return this.alwaysFormat ? this.format(F, void 0, i, {
3122
3129
  ...a,
3123
3130
  ...t,
@@ -3125,7 +3132,7 @@ class ja {
3125
3132
  }) : F;
3126
3133
  }
3127
3134
  const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
3128
- return this.format(ct(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
3135
+ return this.format(ut(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
3129
3136
  ...a,
3130
3137
  ...t,
3131
3138
  interpolationkey: N
@@ -3154,7 +3161,7 @@ class ja {
3154
3161
  } else
3155
3162
  this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
3156
3163
  else
3157
- typeof r != "string" && !this.useRawValueToEscape && (r = st(r));
3164
+ typeof r != "string" && !this.useRawValueToEscape && (r = at(r));
3158
3165
  const N = y.safeValue(r);
3159
3166
  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)
3160
3167
  break;
@@ -3194,7 +3201,7 @@ class ja {
3194
3201
  }
3195
3202
  if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
3196
3203
  return s;
3197
- typeof s != "string" && (s = st(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, {
3204
+ typeof s != "string" && (s = at(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, {
3198
3205
  ...i,
3199
3206
  interpolationkey: a[1].trim()
3200
3207
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -3202,7 +3209,7 @@ class ja {
3202
3209
  return e;
3203
3210
  }
3204
3211
  }
3205
- function za(n) {
3212
+ function ja(n) {
3206
3213
  let e = n.toLowerCase().trim();
3207
3214
  const t = {};
3208
3215
  if (n.indexOf("(") > -1) {
@@ -3229,7 +3236,7 @@ function Q(n) {
3229
3236
  return o || (o = n(ce(a), s), e[r] = o), o(i);
3230
3237
  };
3231
3238
  }
3232
- class Ba {
3239
+ class za {
3233
3240
  constructor() {
3234
3241
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3235
3242
  this.logger = $.create("formatter"), this.options = e, this.formats = {
@@ -3284,7 +3291,7 @@ class Ba {
3284
3291
  const {
3285
3292
  formatName: u,
3286
3293
  formatOptions: d
3287
- } = za(l);
3294
+ } = ja(l);
3288
3295
  if (this.formats[u]) {
3289
3296
  let f = o;
3290
3297
  try {
@@ -3304,10 +3311,10 @@ class Ba {
3304
3311
  }, e);
3305
3312
  }
3306
3313
  }
3307
- function Qa(n, e) {
3314
+ function Ba(n, e) {
3308
3315
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3309
3316
  }
3310
- class Ga extends ge {
3317
+ class Qa extends ge {
3311
3318
  constructor(e, t, i) {
3312
3319
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3313
3320
  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);
@@ -3338,7 +3345,7 @@ class Ga extends ge {
3338
3345
  t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
3339
3346
  const o = {};
3340
3347
  this.queue.forEach((l) => {
3341
- Ra(l.loaded, [s], r), Qa(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
3348
+ Oa(l.loaded, [s], r), Ba(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
3342
3349
  o[u] || (o[u] = {});
3343
3350
  const d = l.loaded[u];
3344
3351
  d.length && d.forEach((f) => {
@@ -3441,7 +3448,7 @@ class Ga extends ge {
3441
3448
  }
3442
3449
  }
3443
3450
  }
3444
- function mt() {
3451
+ function ct() {
3445
3452
  return {
3446
3453
  debug: !1,
3447
3454
  initImmediate: !0,
@@ -3500,12 +3507,12 @@ function mt() {
3500
3507
  }
3501
3508
  };
3502
3509
  }
3503
- function ft(n) {
3510
+ function mt(n) {
3504
3511
  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;
3505
3512
  }
3506
3513
  function ae() {
3507
3514
  }
3508
- function Ka(n) {
3515
+ function Ga(n) {
3509
3516
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3510
3517
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
3511
3518
  });
@@ -3513,9 +3520,9 @@ function Ka(n) {
3513
3520
  class ee extends ge {
3514
3521
  constructor() {
3515
3522
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3516
- if (super(), this.options = ft(e), this.services = {}, this.logger = $, this.modules = {
3523
+ if (super(), this.options = mt(e), this.services = {}, this.logger = $, this.modules = {
3517
3524
  external: []
3518
- }, Ka(this), t && !this.isInitialized && !e.isClone) {
3525
+ }, Ga(this), t && !this.isInitialized && !e.isClone) {
3519
3526
  if (!this.options.initImmediate)
3520
3527
  return this.init(e, t), this;
3521
3528
  setTimeout(() => {
@@ -3527,11 +3534,11 @@ class ee extends ge {
3527
3534
  var e = this;
3528
3535
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
3529
3536
  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]));
3530
- const a = mt();
3537
+ const a = ct();
3531
3538
  this.options = {
3532
3539
  ...a,
3533
3540
  ...this.options,
3534
- ...ft(t)
3541
+ ...mt(t)
3535
3542
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
3536
3543
  ...a.interpolation,
3537
3544
  ...this.options.interpolation
@@ -3542,17 +3549,17 @@ class ee extends ge {
3542
3549
  if (!this.options.isClone) {
3543
3550
  this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
3544
3551
  let d;
3545
- this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Ba);
3546
- const f = new dt(this.options);
3547
- this.store = new ot(this.options.resources, this.options);
3552
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = za);
3553
+ const f = new lt(this.options);
3554
+ this.store = new rt(this.options.resources, this.options);
3548
3555
  const c = this.services;
3549
- c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new $a(f, {
3556
+ c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Ma(f, {
3550
3557
  prepend: this.options.pluralSeparator,
3551
3558
  compatibilityJSON: this.options.compatibilityJSON,
3552
3559
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3553
- }), 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 ja(this.options), c.utils = {
3560
+ }), 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 $a(this.options), c.utils = {
3554
3561
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3555
- }, c.backendConnector = new Ga(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
3562
+ }, c.backendConnector = new Qa(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
3556
3563
  for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3557
3564
  k[N - 1] = arguments[N];
3558
3565
  e.emit(S, ...k);
@@ -3617,7 +3624,7 @@ class ee extends ge {
3617
3624
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3618
3625
  if (!e.type)
3619
3626
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3620
- 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" && Ut.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3627
+ 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;
3621
3628
  }
3622
3629
  setResolvedLanguage(e) {
3623
3630
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -3718,7 +3725,7 @@ class ee extends ge {
3718
3725
  dir(e) {
3719
3726
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
3720
3727
  return "rtl";
3721
- 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 dt(mt());
3728
+ 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 lt(ct());
3722
3729
  return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3723
3730
  }
3724
3731
  static createInstance() {
@@ -3740,7 +3747,7 @@ class ee extends ge {
3740
3747
  ...this.services
3741
3748
  }, s.services.utils = {
3742
3749
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3743
- }, i && (s.store = new ot(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
3750
+ }, i && (s.store = new rt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
3744
3751
  for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
3745
3752
  u[d - 1] = arguments[d];
3746
3753
  s.emit(o, ...u);
@@ -3774,7 +3781,7 @@ U.setDefaultNamespace;
3774
3781
  U.hasLoadedNamespace;
3775
3782
  U.loadNamespaces;
3776
3783
  U.loadLanguages;
3777
- const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ja = {
3784
+ const Ka = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Wa = {
3778
3785
  "&amp;": "&",
3779
3786
  "&#38;": "&",
3780
3787
  "&lt;": "<",
@@ -3795,8 +3802,8 @@ const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
3795
3802
  "&#8230;": "…",
3796
3803
  "&#x2F;": "/",
3797
3804
  "&#47;": "/"
3798
- }, qa = (n) => Ja[n], Ha = (n) => n.replace(Wa, qa);
3799
- let pt = {
3805
+ }, Ja = (n) => Wa[n], qa = (n) => n.replace(Ka, Ja);
3806
+ let ft = {
3800
3807
  bindI18n: "languageChanged",
3801
3808
  bindI18nStore: "",
3802
3809
  transEmptyNodeValue: "",
@@ -3804,73 +3811,73 @@ let pt = {
3804
3811
  transWrapTextNodes: "",
3805
3812
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
3806
3813
  useSuspense: !0,
3807
- unescape: Ha
3814
+ unescape: qa
3808
3815
  };
3809
- function Za() {
3816
+ function Ha() {
3810
3817
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3811
- pt = {
3812
- ...pt,
3818
+ ft = {
3819
+ ...ft,
3813
3820
  ...n
3814
3821
  };
3815
3822
  }
3816
- const Xa = {
3823
+ const Za = {
3817
3824
  type: "3rdParty",
3818
3825
  init(n) {
3819
- Za(n.options.react);
3826
+ Ha(n.options.react);
3820
3827
  }
3821
3828
  };
3822
- Ea(U, Xa);
3823
- const Qs = (n) => la(U, n);
3824
- let Ae = /* @__PURE__ */ new Map();
3825
- const we = ht(Ae), Gs = ({ children: n, stores: e }) => {
3826
- const t = Ce(we), i = Wt(() => {
3829
+ Ca(U, Za);
3830
+ const Bs = (n) => oa(U, n);
3831
+ let Le = /* @__PURE__ */ new Map();
3832
+ const we = pt(Le), Qs = ({ children: n, stores: e }) => {
3833
+ const t = Ce(we), i = Kt(() => {
3827
3834
  const a = /* @__PURE__ */ new Map();
3828
- return e.forEach((s) => a.set(s.class, s.value)), Ae = new Map([...t, ...a]);
3835
+ return e.forEach((s) => a.set(s.class, s.value)), Le = new Map([...t, ...a]);
3829
3836
  }, []);
3830
- return /* @__PURE__ */ Jt(we.Provider, { value: i, children: n });
3837
+ return /* @__PURE__ */ Wt(we.Provider, { value: i, children: n });
3831
3838
  };
3832
- function Ks(n) {
3839
+ function Gs(n) {
3833
3840
  return Ce(we).get(n);
3834
3841
  }
3835
- function Ws(n) {
3836
- return Ae.get(n);
3842
+ function Ks(n) {
3843
+ return Le.get(n);
3837
3844
  }
3838
- var Mt = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Mt || {}), $t = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))($t || {}), jt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(jt || {});
3839
- const Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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" } }] } }] } }] } }] }, os = { 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" } }] } }] } }] } }] }, ls = { 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" } }] } }] } }] } }] }, ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3845
+ var Ut = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Ut || {}), Mt = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(Mt || {}), $t = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))($t || {});
3846
+ const Xa = { 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" } }] } }] } }] } }] }, Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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" } }] } }] } }] } }] }, os = { 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" } }] } }] } }] } }] }, ls = { 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" } }] } }] } }] } }] }, ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3840
3847
  __proto__: null,
3841
- AddCollectionDocument: Ya,
3842
- AppendProductsToSnackVideoDocument: vs,
3843
- BlockUserDocument: ls,
3844
- ChangeAccountUsernameDocument: ds,
3845
- CreateSnackVideoBatchDocument: Ss,
3846
- DeleteAllCustomizationDocument: ps,
3847
- DeleteChatMessageDocument: us,
3848
- DeleteCollectionDocument: es,
3849
- DeleteRelationshipWithSnackVideoDocument: ys,
3850
- DeleteSnackVideoDocument: Ns,
3851
- EventStatus: Mt,
3852
- FindByProductSnackVideoDocument: Es,
3853
- FindCollectionDocument: ts,
3854
- FindManySnackVideosDocument: bs,
3855
- FindMinimalEventDocument: rs,
3856
- GetAllChatMessageDocument: cs,
3857
- GetAllCollectionsDocument: ns,
3858
- GetAllCustomizationDocument: hs,
3859
- GetAllSnackVideosDocument: Fs,
3860
- GetChatRoomTokenDocument: ms,
3861
- GetSnackVideoRelationshipsDocument: ws,
3862
- GetTimeLineDocument: ks,
3863
- ManageCollectionProductDocument: is,
3864
- Methods: $t,
3865
- PinChatMessageDocument: fs,
3866
- SearchCollectionsDocument: as,
3867
- SearchMinimalEventsDocument: os,
3868
- SearchSnackVideosDocument: Cs,
3869
- Status: jt,
3870
- UpdateCollectionDocument: ss,
3871
- UpdateCustomizationDocument: gs
3848
+ AddCollectionDocument: Xa,
3849
+ AppendProductsToSnackVideoDocument: ks,
3850
+ BlockUserDocument: os,
3851
+ ChangeAccountUsernameDocument: ls,
3852
+ CreateSnackVideoBatchDocument: vs,
3853
+ DeleteAllCustomizationDocument: fs,
3854
+ DeleteChatMessageDocument: ds,
3855
+ DeleteCollectionDocument: Ya,
3856
+ DeleteRelationshipWithSnackVideoDocument: Ss,
3857
+ DeleteSnackVideoDocument: ys,
3858
+ EventStatus: Ut,
3859
+ FindByProductSnackVideoDocument: Cs,
3860
+ FindCollectionDocument: es,
3861
+ FindManySnackVideosDocument: Ns,
3862
+ FindMinimalEventDocument: ss,
3863
+ GetAllChatMessageDocument: us,
3864
+ GetAllCollectionsDocument: ts,
3865
+ GetAllCustomizationDocument: ps,
3866
+ GetAllSnackVideosDocument: bs,
3867
+ GetChatRoomTokenDocument: cs,
3868
+ GetSnackVideoRelationshipsDocument: Fs,
3869
+ GetTimeLineDocument: gs,
3870
+ ManageCollectionProductDocument: ns,
3871
+ Methods: Mt,
3872
+ PinChatMessageDocument: ms,
3873
+ SearchCollectionsDocument: is,
3874
+ SearchMinimalEventsDocument: rs,
3875
+ SearchSnackVideosDocument: ws,
3876
+ Status: $t,
3877
+ UpdateCollectionDocument: as,
3878
+ UpdateCustomizationDocument: hs
3872
3879
  }, Symbol.toStringTag, { value: "Module" }));
3873
- function qs(n) {
3880
+ function Js(n) {
3874
3881
  return {
3875
3882
  class: n,
3876
3883
  _value: null,
@@ -3880,61 +3887,61 @@ function qs(n) {
3880
3887
  };
3881
3888
  }
3882
3889
  export {
3883
- Dt as AccountContractStatusTypes,
3884
- ci as AccountContractTypes,
3885
- Vs as AccountInvalidError,
3886
- fi as AccountPlanDescriptionTypes,
3887
- gi as AccountRestRepository,
3888
- ki as AccountService,
3889
- mi as AccountSubscriptionTypes,
3890
- Tt as AccountTypes,
3891
- di as AggregateRoot,
3892
- Js as ApiGraphqlTypes,
3893
- Ms as BaseMobxStore,
3894
- jn as BroadcastChannelEventBus,
3890
+ Tt as AccountContractStatusTypes,
3891
+ ui as AccountContractTypes,
3892
+ Ps as AccountInvalidError,
3893
+ mi as AccountPlanDescriptionTypes,
3894
+ hi as AccountRestRepository,
3895
+ gi as AccountService,
3896
+ ci as AccountSubscriptionTypes,
3897
+ Rt as AccountTypes,
3898
+ li as AggregateRoot,
3899
+ Ws as ApiGraphqlTypes,
3900
+ Us as BaseMobxStore,
3901
+ $n as BroadcastChannelEventBus,
3895
3902
  he as DomainError,
3896
- zs as EventBusWildcards,
3897
- Bs as EventNames,
3898
- pi as GlobalPageSectionTypes,
3899
- li as InvalidNizzaGlobalObjectError,
3900
- ia as LanguageTypes,
3901
- Gn as Logger,
3902
- Te as NizzaAccount,
3903
- na as NizzaEventStatus,
3904
- sa as NizzaProductRequestOriginTypes,
3905
- aa as NizzaVariationTypes,
3906
- ri as ResourceNotFoundError,
3907
- Gs as StoreProvider,
3908
- oi as UnexpectedError,
3909
- $s as ValueObject,
3903
+ js as EventBusWildcards,
3904
+ zs as EventNames,
3905
+ fi as GlobalPageSectionTypes,
3906
+ oi as InvalidNizzaGlobalObjectError,
3907
+ na as LanguageTypes,
3908
+ Qn as Logger,
3909
+ Re as NizzaAccount,
3910
+ ta as NizzaEventStatus,
3911
+ aa as NizzaProductRequestOriginTypes,
3912
+ ia as NizzaVariationTypes,
3913
+ si as ResourceNotFoundError,
3914
+ Qs as StoreProvider,
3915
+ ri as UnexpectedError,
3916
+ Ms as ValueObject,
3910
3917
  Ee as accountAtom,
3911
- It as accountService,
3912
- Ts as apiCall,
3913
- ra as buildLanguageTranslations,
3914
- oa as buildTranslations,
3915
- Kn as configure,
3918
+ Dt as accountService,
3919
+ Rs as apiCall,
3920
+ sa as buildLanguageTranslations,
3921
+ ra as buildTranslations,
3922
+ Wn as configure,
3916
3923
  Z as coreLogger,
3917
- ui as createAggregateRoot,
3918
- qs as createStore,
3919
- St as customFetch,
3920
- Ds as downloadFile,
3921
- Ls as fileOrigin,
3922
- ta as getAccount,
3923
- Us as getClientTimeZone,
3924
- Ws as getStore,
3925
- ea as globalAtomStore,
3926
- Ea as i18Init,
3927
- hn as jsDownload,
3928
- Ps as logger,
3929
- Oe as nizza,
3930
- Qs as registerTranslations,
3931
- la as registerTranslationsOf,
3932
- Is as searchParams,
3933
- Wn as setProductDataSource,
3934
- Bn as shortId,
3935
- js as useAccount,
3936
- qn as useNizza,
3937
- Ks as useStore,
3938
- _s as validateRequiredProps
3924
+ di as createAggregateRoot,
3925
+ Js as createStore,
3926
+ vt as customFetch,
3927
+ Ts as downloadFile,
3928
+ Is as fileOrigin,
3929
+ ea as getAccount,
3930
+ _s as getClientTimeZone,
3931
+ Ks as getStore,
3932
+ Yi as globalAtomStore,
3933
+ Ca as i18Init,
3934
+ pn as jsDownload,
3935
+ As as logger,
3936
+ j as nizza,
3937
+ Bs as registerTranslations,
3938
+ oa as registerTranslationsOf,
3939
+ Ds as searchParams,
3940
+ Jn as setProductDataSource,
3941
+ zn as shortId,
3942
+ $s as useAccount,
3943
+ Gn as useNizza,
3944
+ Gs as useStore,
3945
+ Vs as validateRequiredProps
3939
3946
  };
3940
3947
  //# sourceMappingURL=index.mjs.map