@nizza/core 0.4.0-alpha.8 → 0.4.0-alpha.9

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,45 +1,45 @@
1
1
  var aa = Object.defineProperty;
2
- var oa = (e, t, i) => t in e ? aa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var G = (e, t, i) => (oa(e, typeof t != "symbol" ? t + "" : t, i), i);
2
+ var sa = (e, t, i) => t in e ? aa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var G = (e, t, i) => (sa(e, typeof t != "symbol" ? t + "" : t, i), i);
4
4
  import * as le from "react";
5
- import Ri, { createContext as Ti, useReducer as sa, useEffect as vt, useDebugValue as ua, useCallback as la, useContext as wn, useMemo as ca, useState as da } from "react";
5
+ import Ci, { createContext as Ri, useReducer as oa, useEffect as vt, useDebugValue as ua, useCallback as la, useContext as wn, useMemo as ca, useState as da } from "react";
6
6
  import { jsx as fa } from "react/jsx-runtime";
7
7
  let ha = 0;
8
8
  function ma(e, t) {
9
9
  const i = `atom${++ha}`, n = {
10
10
  toString: () => i
11
11
  };
12
- return typeof e == "function" ? n.read = e : (n.init = e, n.read = (r) => r(n), n.write = (r, a, o) => a(
12
+ return typeof e == "function" ? n.read = e : (n.init = e, n.read = (r) => r(n), n.write = (r, a, s) => a(
13
13
  n,
14
- typeof o == "function" ? o(r(n)) : o
14
+ typeof s == "function" ? s(r(n)) : s
15
15
  )), t && (n.write = t), n;
16
16
  }
17
- const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new WeakMap(), va = (e, t) => {
17
+ const an = (e) => "init" in e, sn = (e) => !!e.write, Dt = /* @__PURE__ */ new WeakMap(), va = (e, t) => {
18
18
  Dt.set(e, t), e.catch(() => {
19
19
  }).finally(() => Dt.delete(e));
20
- }, zn = (e, t) => {
20
+ }, Gn = (e, t) => {
21
21
  const i = Dt.get(e);
22
22
  i && (Dt.delete(e), i(t));
23
- }, Kn = (e, t) => {
23
+ }, zn = (e, t) => {
24
24
  e.status = "fulfilled", e.value = t;
25
- }, $n = (e, t) => {
25
+ }, Kn = (e, t) => {
26
26
  e.status = "rejected", e.reason = t;
27
- }, Ft = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), Wn = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), sn = (e) => "v" in e && e.v instanceof Promise, Ct = (e) => {
27
+ }, Ft = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), $n = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), on = (e) => "v" in e && e.v instanceof Promise, Ct = (e) => {
28
28
  if ("e" in e)
29
29
  throw e.e;
30
30
  return e.v;
31
- }, Li = () => {
31
+ }, Ti = () => {
32
32
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map();
33
33
  let n, r;
34
34
  ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set());
35
- const a = (g) => e.get(g), o = (g, k) => {
35
+ const a = (g) => e.get(g), s = (g, k) => {
36
36
  ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && Object.freeze(k);
37
37
  const F = e.get(g);
38
- if (e.set(g, k), i.has(g) || i.set(g, F), F && sn(F)) {
38
+ if (e.set(g, k), i.has(g) || i.set(g, F), F && on(F)) {
39
39
  const T = "v" in k ? k.v instanceof Promise ? k.v : Promise.resolve(k.v) : Promise.reject(k.e);
40
- zn(F.v, T);
40
+ Gn(F.v, T);
41
41
  }
42
- }, s = (g, k, F) => {
42
+ }, o = (g, k, F) => {
43
43
  const T = /* @__PURE__ */ new Map();
44
44
  let I = !1;
45
45
  F.forEach((V, B) => {
@@ -50,7 +50,7 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
50
50
  d: (T == null ? void 0 : T.d) || /* @__PURE__ */ new Map(),
51
51
  v: k
52
52
  };
53
- return F && s(g, I, F), T && Ft(T, I) && T.d === I.d ? T : (o(g, I), I);
53
+ return F && o(g, I, F), T && Ft(T, I) && T.d === I.d ? T : (s(g, I), I);
54
54
  }, c = (g, k, F, T) => {
55
55
  if (k instanceof Promise) {
56
56
  let I;
@@ -65,7 +65,7 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
65
65
  V,
66
66
  F
67
67
  );
68
- Kn(V, H), B(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
68
+ zn(V, H), B(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
69
69
  }
70
70
  },
71
71
  (H) => {
@@ -76,13 +76,13 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
76
76
  V,
77
77
  F
78
78
  );
79
- $n(V, H), j(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
79
+ Kn(V, H), j(H), (u == null ? void 0 : u.d) !== d.d && z(g, d, u == null ? void 0 : u.d);
80
80
  }
81
81
  }
82
82
  ), I = (H) => {
83
83
  K || (K = !0, H.then(
84
- (u) => Kn(V, u),
85
- (u) => $n(V, u)
84
+ (u) => zn(V, u),
85
+ (u) => Kn(V, u)
86
86
  ), B(H));
87
87
  };
88
88
  });
@@ -96,7 +96,7 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
96
96
  d: (T == null ? void 0 : T.d) || /* @__PURE__ */ new Map(),
97
97
  e: k
98
98
  };
99
- return F && s(g, I, F), T && Wn(T, I) && T.d === I.d ? T : (o(g, I), I);
99
+ return F && o(g, I, F), T && $n(T, I) && T.d === I.d ? T : (s(g, I), I);
100
100
  }, v = (g) => {
101
101
  const k = a(g);
102
102
  if (k && (k.d.forEach((K, H) => {
@@ -125,7 +125,7 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
125
125
  return V || (V = new AbortController()), V.signal;
126
126
  },
127
127
  get setSelf() {
128
- return ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !on(g) && console.warn("setSelf function cannot be used with read-only atom"), !B && on(g) && (B = (...K) => {
128
+ return ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !sn(g) && console.warn("setSelf function cannot be used with read-only atom"), !B && sn(g) && (B = (...K) => {
129
129
  if (({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && T && console.warn("setSelf function cannot be called in sync"), !T)
130
130
  return L(g, ...K);
131
131
  }), B;
@@ -183,7 +183,7 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
183
183
  if (t.set(g, F), ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && r.add(g), v(g).d.forEach((T, I) => {
184
184
  const V = t.get(I);
185
185
  V ? V.t.add(g) : I !== g && U(I, g);
186
- }), v(g), on(g) && g.onMount) {
186
+ }), v(g), sn(g) && g.onMount) {
187
187
  const T = g.onMount((...I) => L(g, ...I));
188
188
  T && (F.u = T);
189
189
  }
@@ -193,7 +193,7 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
193
193
  const F = (k = t.get(g)) == null ? void 0 : k.u;
194
194
  F && F(), t.delete(g), ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && r.delete(g);
195
195
  const T = a(g);
196
- T ? (sn(T) && zn(T.v), T.d.forEach((I, V) => {
196
+ T ? (on(T) && Gn(T.v), T.d.forEach((I, V) => {
197
197
  if (V !== g) {
198
198
  const B = t.get(V);
199
199
  B && (B.t.delete(g), R(V, B) && P(V));
@@ -222,7 +222,7 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
222
222
  const I = t.get(k);
223
223
  I && !// TODO This seems pretty hacky. Hope to fix it.
224
224
  // Maybe we could `mountDependencies` in `setAtomState`?
225
- (F && !sn(F) && (Ft(F, T) || Wn(F, T))) && I.l.forEach((V) => V());
225
+ (F && !on(F) && (Ft(F, T) || $n(F, T))) && I.l.forEach((V) => V());
226
226
  } else
227
227
  ({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] no atom state to flush");
228
228
  });
@@ -259,10 +259,10 @@ const an = (e) => "init" in e, on = (e) => !!e.write, Dt = /* @__PURE__ */ new W
259
259
  };
260
260
  };
261
261
  let un;
262
- const pa = () => (un || (un = Li()), un), ga = Ti(void 0), xi = (e) => {
262
+ const pa = () => (un || (un = Ti()), un), ga = Ri(void 0), Li = (e) => {
263
263
  const t = wn(ga);
264
264
  return (e == null ? void 0 : e.store) || t || pa();
265
- }, ka = (e) => e instanceof Promise, ya = Ri.use || ((e) => {
265
+ }, ka = (e) => e instanceof Promise, ya = Ci.use || ((e) => {
266
266
  if (e.status === "pending")
267
267
  throw e;
268
268
  if (e.status === "fulfilled")
@@ -277,7 +277,7 @@ const pa = () => (un || (un = Li()), un), ga = Ti(void 0), xi = (e) => {
277
277
  ), e);
278
278
  });
279
279
  function _a(e, t) {
280
- const i = xi(t), [[n, r, a], o] = sa(
280
+ const i = Li(t), [[n, r, a], s] = oa(
281
281
  (c) => {
282
282
  const f = i.get(e);
283
283
  return Object.is(c[0], f) && c[1] === i && c[2] === e ? c : [f, i, e];
@@ -285,22 +285,22 @@ function _a(e, t) {
285
285
  void 0,
286
286
  () => [i.get(e), i, e]
287
287
  );
288
- let s = n;
289
- (r !== i || a !== e) && (o(), s = i.get(e));
288
+ let o = n;
289
+ (r !== i || a !== e) && (s(), o = i.get(e));
290
290
  const l = t == null ? void 0 : t.delay;
291
291
  return vt(() => {
292
292
  const c = i.sub(e, () => {
293
293
  if (typeof l == "number") {
294
- setTimeout(o, l);
294
+ setTimeout(s, l);
295
295
  return;
296
296
  }
297
- o();
297
+ s();
298
298
  });
299
- return o(), c;
300
- }, [i, e, l]), ua(s), ka(s) ? ya(s) : s;
299
+ return s(), c;
300
+ }, [i, e, l]), ua(o), ka(o) ? ya(o) : o;
301
301
  }
302
302
  function ba(e, t) {
303
- const i = xi(t);
303
+ const i = Li(t);
304
304
  return la(
305
305
  (...r) => {
306
306
  if (({ NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in e))
@@ -350,15 +350,15 @@ const {
350
350
  wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
351
351
  }
352
352
  };
353
- async function Pi(e) {
353
+ async function xi(e) {
354
354
  const {
355
355
  url: t,
356
356
  method: i = "GET",
357
357
  body: n,
358
358
  raw: r = !1,
359
359
  contentTypeJson: a = !0,
360
- timeout: o,
361
- ...s
360
+ timeout: s,
361
+ ...o
362
362
  } = e, l = a && !e.headers ? new Headers({
363
363
  "content-type": "application/json"
364
364
  }) : e.headers;
@@ -370,11 +370,11 @@ async function Pi(e) {
370
370
  headers: l,
371
371
  body: n,
372
372
  signal: f,
373
- ...s
373
+ ...o
374
374
  });
375
- o && (v = setTimeout(() => {
375
+ s && (v = setTimeout(() => {
376
376
  c.abort();
377
- }, o));
377
+ }, s));
378
378
  const A = await O;
379
379
  if (r)
380
380
  return A;
@@ -388,7 +388,7 @@ async function Pi(e) {
388
388
  throw console.error("[CustomFetch] ", c), c;
389
389
  }
390
390
  }
391
- const ec = (e) => Pi({ ...e, contentTypeJson: !1, raw: !1 });
391
+ const ec = (e) => xi({ ...e, contentTypeJson: !1, raw: !1 });
392
392
  function tc(e, t, i) {
393
393
  fetch(t).then((n) => n.blob()).then((n) => Fa(n, `${e}.${i}`));
394
394
  }
@@ -398,9 +398,9 @@ const Fa = (e, t, i) => {
398
398
  });
399
399
  if (typeof window.navigator.msSaveBlob != "undefined")
400
400
  return window.navigator.msSaveBlob(r, t);
401
- const a = window.URL && window.URL.createObjectURL ? window.URL.createObjectURL(r) : window.webkitURL.createObjectURL(r), o = document.createElement("a");
402
- return o.style.display = "none", o.href = a, o.setAttribute("download", t), typeof o.download == "undefined" && o.setAttribute("target", "_blank"), document.body.appendChild(o), o.click(), setTimeout(() => {
403
- document.body.removeChild(o), window.URL.revokeObjectURL(a);
401
+ const a = window.URL && window.URL.createObjectURL ? window.URL.createObjectURL(r) : window.webkitURL.createObjectURL(r), s = document.createElement("a");
402
+ return s.style.display = "none", s.href = a, s.setAttribute("download", t), typeof s.download == "undefined" && s.setAttribute("target", "_blank"), document.body.appendChild(s), s.click(), setTimeout(() => {
403
+ document.body.removeChild(s), window.URL.revokeObjectURL(a);
404
404
  }, 200);
405
405
  };
406
406
  let Ca = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, i) => (i &= 63, i < 36 ? t += i.toString(36) : i < 62 ? t += (i - 26).toString(36).toUpperCase() : i > 62 ? t += "-" : t += "_", t), "");
@@ -413,15 +413,15 @@ function ic() {
413
413
  `);
414
414
  return e.length < 3 ? "" : e[2].trim().substring(3);
415
415
  }
416
- var Di = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
417
- function Ii(e) {
416
+ var Pi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
417
+ function Di(e) {
418
418
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
419
419
  }
420
- var Vi = { exports: {} };
420
+ var Ii = { exports: {} };
421
421
  (function(e) {
422
422
  (function(t, i) {
423
423
  e.exports ? e.exports = i() : t.prefix = i(t);
424
- })(Di, function(t) {
424
+ })(Pi, function(t) {
425
425
  var i = function(f) {
426
426
  for (var v = 1, O = arguments.length, A; v < O; v++)
427
427
  for (A in arguments[v])
@@ -439,11 +439,11 @@ var Vi = { exports: {} };
439
439
  return f.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
440
440
  },
441
441
  format: void 0
442
- }, r, a = {}, o = function(f) {
442
+ }, r, a = {}, s = function(f) {
443
443
  if (!f || !f.getLogger)
444
444
  throw new TypeError("Argument is not a root logger");
445
445
  r = f;
446
- }, s = function(f, v) {
446
+ }, o = function(f, v) {
447
447
  if (!f || !f.setLevel)
448
448
  throw new TypeError("Argument is not a logger");
449
449
  var O = f.methodFactory, A = f.name || "", R = a[A] || a[""] || n;
@@ -463,21 +463,21 @@ var Vi = { exports: {} };
463
463
  "It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"
464
464
  ), f;
465
465
  }, l = {
466
- reg: o,
467
- apply: s
466
+ reg: s,
467
+ apply: o
468
468
  }, c;
469
469
  return t && (c = t.prefix, l.noConflict = function() {
470
470
  return t.prefix === l && (t.prefix = c), l;
471
471
  }), l;
472
472
  });
473
- })(Vi);
474
- var Ta = Vi.exports;
475
- const ji = /* @__PURE__ */ Ii(Ta);
476
- var Ui = { exports: {} };
473
+ })(Ii);
474
+ var Ta = Ii.exports;
475
+ const Vi = /* @__PURE__ */ Di(Ta);
476
+ var ji = { exports: {} };
477
477
  (function(e) {
478
478
  (function(t, i) {
479
479
  e.exports ? e.exports = i() : t.log = i();
480
- })(Di, function() {
480
+ })(Pi, function() {
481
481
  var t = function() {
482
482
  }, i = "undefined", n = typeof window !== i && typeof window.navigator !== i && /Trident\/|MSIE /.test(window.navigator.userAgent), r = [
483
483
  "trace",
@@ -498,11 +498,11 @@ var Ui = { exports: {} };
498
498
  };
499
499
  }
500
500
  }
501
- function o() {
501
+ function s() {
502
502
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
503
503
  }
504
- function s(b) {
505
- return b === "debug" && (b = "log"), typeof console === i ? !1 : b === "trace" && n ? o : console[b] !== void 0 ? a(console, b) : console.log !== void 0 ? a(console, "log") : t;
504
+ function o(b) {
505
+ return b === "debug" && (b = "log"), typeof console === i ? !1 : b === "trace" && n ? s : console[b] !== void 0 ? a(console, b) : console.log !== void 0 ? a(console, "log") : t;
506
506
  }
507
507
  function l(b, _) {
508
508
  for (var C = 0; C < r.length; C++) {
@@ -517,7 +517,7 @@ var Ui = { exports: {} };
517
517
  };
518
518
  }
519
519
  function f(b, _, C) {
520
- return s(b) || c.apply(this, arguments);
520
+ return o(b) || c.apply(this, arguments);
521
521
  }
522
522
  function v(b, _, C) {
523
523
  var L = this, U;
@@ -614,27 +614,27 @@ var Ui = { exports: {} };
614
614
  return A;
615
615
  }, O.default = O, O;
616
616
  });
617
- })(Ui);
618
- var La = Ui.exports;
619
- const xa = /* @__PURE__ */ Ii(La);
617
+ })(ji);
618
+ var La = ji.exports;
619
+ const xa = /* @__PURE__ */ Di(La);
620
620
  function W(e) {
621
621
  for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
622
622
  i[n - 1] = arguments[n];
623
623
  throw new Error(typeof e == "number" ? "[MobX] minified error nr: " + e + (i.length ? " " + i.map(String).join(",") : "") + ". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts" : "[MobX] " + e);
624
624
  }
625
625
  var Pa = {};
626
- function Mi() {
626
+ function Ui() {
627
627
  return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : Pa;
628
628
  }
629
- var Bi = Object.assign, It = Object.getOwnPropertyDescriptor, ve = Object.defineProperty, Wt = Object.prototype, pn = [];
629
+ var Mi = Object.assign, It = Object.getOwnPropertyDescriptor, ve = Object.defineProperty, Wt = Object.prototype, pn = [];
630
630
  Object.freeze(pn);
631
631
  var An = {};
632
632
  Object.freeze(An);
633
633
  var Da = typeof Proxy != "undefined", Ia = /* @__PURE__ */ Object.toString();
634
- function Gi() {
634
+ function Bi() {
635
635
  Da || W("Proxy not available");
636
636
  }
637
- function zi(e) {
637
+ function Gi(e) {
638
638
  var t = !1;
639
639
  return function() {
640
640
  if (!t)
@@ -668,7 +668,7 @@ function Se(e) {
668
668
  var i = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
669
669
  return typeof i == "function" && i.toString() === Ia;
670
670
  }
671
- function Ki(e) {
671
+ function zi(e) {
672
672
  var t = e == null ? void 0 : e.constructor;
673
673
  return t ? t.name === "GeneratorFunction" || t.displayName === "GeneratorFunction" : !1;
674
674
  }
@@ -680,7 +680,7 @@ function pt(e, t, i) {
680
680
  value: i
681
681
  });
682
682
  }
683
- function $i(e, t, i) {
683
+ function Ki(e, t, i) {
684
684
  ve(e, t, {
685
685
  enumerable: !1,
686
686
  writable: !1,
@@ -700,23 +700,23 @@ function Ze(e) {
700
700
  function gt(e) {
701
701
  return e instanceof Set;
702
702
  }
703
- var Wi = typeof Object.getOwnPropertySymbols != "undefined";
703
+ var $i = typeof Object.getOwnPropertySymbols != "undefined";
704
704
  function Va(e) {
705
705
  var t = Object.keys(e);
706
- if (!Wi)
706
+ if (!$i)
707
707
  return t;
708
708
  var i = Object.getOwnPropertySymbols(e);
709
709
  return i.length ? [].concat(t, i.filter(function(n) {
710
710
  return Wt.propertyIsEnumerable.call(e, n);
711
711
  })) : t;
712
712
  }
713
- var Ke = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : Wi ? function(e) {
713
+ var Ke = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : $i ? function(e) {
714
714
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
715
715
  } : (
716
716
  /* istanbul ignore next */
717
717
  Object.getOwnPropertyNames
718
718
  );
719
- function Qi(e) {
719
+ function Wi(e) {
720
720
  return e === null ? null : typeof e == "object" ? "" + e : e;
721
721
  }
722
722
  function be(e, t) {
@@ -728,14 +728,14 @@ var ja = Object.getOwnPropertyDescriptors || function(t) {
728
728
  i[n] = It(t, n);
729
729
  }), i;
730
730
  };
731
- function Qn(e, t) {
731
+ function Wn(e, t) {
732
732
  for (var i = 0; i < t.length; i++) {
733
733
  var n = t[i];
734
734
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ba(n.key), n);
735
735
  }
736
736
  }
737
737
  function Fn(e, t, i) {
738
- return t && Qn(e.prototype, t), i && Qn(e, i), Object.defineProperty(e, "prototype", {
738
+ return t && Wn(e.prototype, t), i && Wn(e, i), Object.defineProperty(e, "prototype", {
739
739
  writable: !1
740
740
  }), e;
741
741
  }
@@ -749,7 +749,7 @@ function $e() {
749
749
  return e;
750
750
  }, $e.apply(this, arguments);
751
751
  }
752
- function qi(e, t) {
752
+ function Qi(e, t) {
753
753
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, gn(e, t);
754
754
  }
755
755
  function gn(e, t) {
@@ -765,15 +765,15 @@ function ln(e) {
765
765
  function Ua(e, t) {
766
766
  if (e) {
767
767
  if (typeof e == "string")
768
- return qn(e, t);
768
+ return Qn(e, t);
769
769
  var i = Object.prototype.toString.call(e).slice(8, -1);
770
770
  if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set")
771
771
  return Array.from(e);
772
772
  if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))
773
- return qn(e, t);
773
+ return Qn(e, t);
774
774
  }
775
775
  }
776
- function qn(e, t) {
776
+ function Qn(e, t) {
777
777
  (t == null || t > e.length) && (t = e.length);
778
778
  for (var i = 0, n = new Array(t); i < t; i++)
779
779
  n[i] = e[i];
@@ -841,17 +841,17 @@ var M = /* @__PURE__ */ Symbol("mobx administration"), yt = /* @__PURE__ */ func
841
841
  return n();
842
842
  });
843
843
  }, t.reportObserved = function() {
844
- return mr(this);
844
+ return hr(this);
845
845
  }, t.reportChanged = function() {
846
- ae(), vr(this), x.stateVersion = x.stateVersion < Number.MAX_SAFE_INTEGER ? x.stateVersion + 1 : Number.MIN_SAFE_INTEGER, oe();
846
+ ae(), mr(this), x.stateVersion = x.stateVersion < Number.MAX_SAFE_INTEGER ? x.stateVersion + 1 : Number.MIN_SAFE_INTEGER, se();
847
847
  }, t.toString = function() {
848
848
  return this.name_;
849
849
  }, e;
850
850
  }(), Cn = /* @__PURE__ */ Ve("Atom", yt);
851
- function Ji(e, t, i) {
851
+ function qi(e, t, i) {
852
852
  t === void 0 && (t = Be), i === void 0 && (i = Be);
853
853
  var n = new yt(e);
854
- return t !== Be && Jo(n, t), i !== Be && Nr(n, i), n;
854
+ return t !== Be && qs(n, t), i !== Be && Sr(n, i), n;
855
855
  }
856
856
  function za(e, t) {
857
857
  return e === t;
@@ -880,7 +880,7 @@ function Qe(e, t, i) {
880
880
  name: i
881
881
  }) : gt(e) ? ne.set(e, {
882
882
  name: i
883
- }) : typeof e == "function" && !Ln(e) && !Bt(e) ? Ki(e) ? ct(e) : lt(i, e) : e;
883
+ }) : typeof e == "function" && !Ln(e) && !Bt(e) ? zi(e) ? ct(e) : lt(i, e) : e;
884
884
  }
885
885
  function Qa(e, t, i) {
886
886
  if (e == null || dt(e) || Zt(e) || je(e) || Ye(e))
@@ -932,18 +932,18 @@ function Za(e, t, i, n) {
932
932
  return this.extend_(e, t, i, !1) === null ? 0 : 2;
933
933
  if (Ln(i.value))
934
934
  return 1;
935
- var a = Hi(e, this, t, i, !1);
935
+ var a = Ji(e, this, t, i, !1);
936
936
  return ve(n, t, a), 2;
937
937
  }
938
938
  function Xa(e, t, i, n) {
939
- var r = Hi(e, this, t, i);
939
+ var r = Ji(e, this, t, i);
940
940
  return e.defineProperty_(t, r, n);
941
941
  }
942
942
  function Ya(e, t, i, n) {
943
943
  t.annotationType_, n.value;
944
944
  }
945
- function Hi(e, t, i, n, r) {
946
- var a, o, s, l, c, f, v;
945
+ function Ji(e, t, i, n, r) {
946
+ var a, s, o, l, c, f, v;
947
947
  r === void 0 && (r = x.safeDescriptors), Ya(e, t, i, n);
948
948
  var O = n.value;
949
949
  if ((a = t.options_) != null && a.bound) {
@@ -952,7 +952,7 @@ function Hi(e, t, i, n, r) {
952
952
  }
953
953
  return {
954
954
  value: qe(
955
- (o = (s = t.options_) == null ? void 0 : s.name) != null ? o : i.toString(),
955
+ (s = (o = t.options_) == null ? void 0 : o.name) != null ? s : i.toString(),
956
956
  O,
957
957
  (l = (c = t.options_) == null ? void 0 : c.autoAction) != null ? l : !1,
958
958
  // https://github.com/mobxjs/mobx/discussions/3140
@@ -968,15 +968,15 @@ function Hi(e, t, i, n, r) {
968
968
  writable: !r
969
969
  };
970
970
  }
971
- function Zi(e, t) {
971
+ function Hi(e, t) {
972
972
  return {
973
973
  annotationType_: e,
974
974
  options_: t,
975
- make_: eo,
976
- extend_: to
975
+ make_: es,
976
+ extend_: ts
977
977
  };
978
978
  }
979
- function eo(e, t, i, n) {
979
+ function es(e, t, i, n) {
980
980
  var r;
981
981
  if (n === e.target_)
982
982
  return this.extend_(e, t, i, !1) === null ? 0 : 2;
@@ -984,25 +984,25 @@ function eo(e, t, i, n) {
984
984
  return 0;
985
985
  if (Bt(i.value))
986
986
  return 1;
987
- var a = Xi(e, this, t, i, !1, !1);
987
+ var a = Zi(e, this, t, i, !1, !1);
988
988
  return ve(n, t, a), 2;
989
989
  }
990
- function to(e, t, i, n) {
991
- var r, a = Xi(e, this, t, i, (r = this.options_) == null ? void 0 : r.bound);
990
+ function ts(e, t, i, n) {
991
+ var r, a = Zi(e, this, t, i, (r = this.options_) == null ? void 0 : r.bound);
992
992
  return e.defineProperty_(t, a, n);
993
993
  }
994
- function no(e, t, i, n) {
994
+ function ns(e, t, i, n) {
995
995
  t.annotationType_, n.value;
996
996
  }
997
- function Xi(e, t, i, n, r, a) {
998
- a === void 0 && (a = x.safeDescriptors), no(e, t, i, n);
999
- var o = n.value;
1000
- if (Bt(o) || (o = ct(o)), r) {
1001
- var s;
1002
- o = o.bind((s = e.proxy_) != null ? s : e.target_), o.isMobXFlow = !0;
997
+ function Zi(e, t, i, n, r, a) {
998
+ a === void 0 && (a = x.safeDescriptors), ns(e, t, i, n);
999
+ var s = n.value;
1000
+ if (Bt(s) || (s = ct(s)), r) {
1001
+ var o;
1002
+ s = s.bind((o = e.proxy_) != null ? o : e.target_), s.isMobXFlow = !0;
1003
1003
  }
1004
1004
  return {
1005
- value: o,
1005
+ value: s,
1006
1006
  // Non-configurable for classes
1007
1007
  // prevents accidental field redefinition in subclass
1008
1008
  configurable: a ? e.isPlainObject_ : !0,
@@ -1017,70 +1017,70 @@ function Rn(e, t) {
1017
1017
  return {
1018
1018
  annotationType_: e,
1019
1019
  options_: t,
1020
- make_: io,
1021
- extend_: ro
1020
+ make_: is,
1021
+ extend_: rs
1022
1022
  };
1023
1023
  }
1024
- function io(e, t, i) {
1024
+ function is(e, t, i) {
1025
1025
  return this.extend_(e, t, i, !1) === null ? 0 : 1;
1026
1026
  }
1027
- function ro(e, t, i, n) {
1028
- return ao(e, this, t, i), e.defineComputedProperty_(t, $e({}, this.options_, {
1027
+ function rs(e, t, i, n) {
1028
+ return as(e, this, t, i), e.defineComputedProperty_(t, $e({}, this.options_, {
1029
1029
  get: i.get,
1030
1030
  set: i.set
1031
1031
  }), n);
1032
1032
  }
1033
- function ao(e, t, i, n) {
1033
+ function as(e, t, i, n) {
1034
1034
  t.annotationType_, n.get;
1035
1035
  }
1036
1036
  function Jt(e, t) {
1037
1037
  return {
1038
1038
  annotationType_: e,
1039
1039
  options_: t,
1040
- make_: oo,
1041
- extend_: so
1040
+ make_: ss,
1041
+ extend_: os
1042
1042
  };
1043
1043
  }
1044
- function oo(e, t, i) {
1044
+ function ss(e, t, i) {
1045
1045
  return this.extend_(e, t, i, !1) === null ? 0 : 1;
1046
1046
  }
1047
- function so(e, t, i, n) {
1047
+ function os(e, t, i, n) {
1048
1048
  var r, a;
1049
- return uo(e, this), e.defineObservableProperty_(t, i.value, (r = (a = this.options_) == null ? void 0 : a.enhancer) != null ? r : Qe, n);
1049
+ return us(e, this), e.defineObservableProperty_(t, i.value, (r = (a = this.options_) == null ? void 0 : a.enhancer) != null ? r : Qe, n);
1050
1050
  }
1051
- function uo(e, t, i, n) {
1051
+ function us(e, t, i, n) {
1052
1052
  t.annotationType_;
1053
1053
  }
1054
- var lo = "true", co = /* @__PURE__ */ Yi();
1055
- function Yi(e) {
1054
+ var ls = "true", cs = /* @__PURE__ */ Xi();
1055
+ function Xi(e) {
1056
1056
  return {
1057
- annotationType_: lo,
1057
+ annotationType_: ls,
1058
1058
  options_: e,
1059
- make_: fo,
1060
- extend_: ho
1059
+ make_: ds,
1060
+ extend_: fs
1061
1061
  };
1062
1062
  }
1063
- function fo(e, t, i, n) {
1063
+ function ds(e, t, i, n) {
1064
1064
  var r, a;
1065
1065
  if (i.get)
1066
1066
  return Ae.make_(e, t, i, n);
1067
1067
  if (i.set) {
1068
- var o = qe(t.toString(), i.set);
1068
+ var s = qe(t.toString(), i.set);
1069
1069
  return n === e.target_ ? e.defineProperty_(t, {
1070
1070
  configurable: x.safeDescriptors ? e.isPlainObject_ : !0,
1071
- set: o
1071
+ set: s
1072
1072
  }) === null ? 0 : 2 : (ve(n, t, {
1073
1073
  configurable: !0,
1074
- set: o
1074
+ set: s
1075
1075
  }), 2);
1076
1076
  }
1077
1077
  if (n !== e.target_ && typeof i.value == "function") {
1078
- var s;
1079
- if (Ki(i.value)) {
1078
+ var o;
1079
+ if (zi(i.value)) {
1080
1080
  var l, c = (l = this.options_) != null && l.autoBind ? ct.bound : ct;
1081
1081
  return c.make_(e, t, i, n);
1082
1082
  }
1083
- var f = (s = this.options_) != null && s.autoBind ? lt.bound : lt;
1083
+ var f = (o = this.options_) != null && o.autoBind ? lt.bound : lt;
1084
1084
  return f.make_(e, t, i, n);
1085
1085
  }
1086
1086
  var v = ((r = this.options_) == null ? void 0 : r.deep) === !1 ? ne.ref : ne;
@@ -1090,7 +1090,7 @@ function fo(e, t, i, n) {
1090
1090
  }
1091
1091
  return v.make_(e, t, i, n);
1092
1092
  }
1093
- function ho(e, t, i, n) {
1093
+ function fs(e, t, i, n) {
1094
1094
  var r, a;
1095
1095
  if (i.get)
1096
1096
  return Ae.extend_(e, t, i, n);
@@ -1100,86 +1100,86 @@ function ho(e, t, i, n) {
1100
1100
  set: qe(t.toString(), i.set)
1101
1101
  }, n);
1102
1102
  if (typeof i.value == "function" && (r = this.options_) != null && r.autoBind) {
1103
- var o;
1104
- i.value = i.value.bind((o = e.proxy_) != null ? o : e.target_);
1103
+ var s;
1104
+ i.value = i.value.bind((s = e.proxy_) != null ? s : e.target_);
1105
1105
  }
1106
- var s = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? ne.ref : ne;
1107
- return s.extend_(e, t, i, n);
1106
+ var o = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? ne.ref : ne;
1107
+ return o.extend_(e, t, i, n);
1108
1108
  }
1109
- var mo = "observable", vo = "observable.ref", po = "observable.shallow", go = "observable.struct", er = {
1109
+ var hs = "observable", ms = "observable.ref", vs = "observable.shallow", ps = "observable.struct", Yi = {
1110
1110
  deep: !0,
1111
1111
  name: void 0,
1112
1112
  defaultDecorator: void 0,
1113
1113
  proxy: !0
1114
1114
  };
1115
- Object.freeze(er);
1115
+ Object.freeze(Yi);
1116
1116
  function Rt(e) {
1117
- return e || er;
1117
+ return e || Yi;
1118
1118
  }
1119
- var tr = /* @__PURE__ */ Jt(mo), ko = /* @__PURE__ */ Jt(vo, {
1119
+ var er = /* @__PURE__ */ Jt(hs), gs = /* @__PURE__ */ Jt(ms, {
1120
1120
  enhancer: qt
1121
- }), yo = /* @__PURE__ */ Jt(po, {
1121
+ }), ks = /* @__PURE__ */ Jt(vs, {
1122
1122
  enhancer: Qa
1123
- }), _o = /* @__PURE__ */ Jt(go, {
1123
+ }), ys = /* @__PURE__ */ Jt(ps, {
1124
1124
  enhancer: qa
1125
- }), nr = /* @__PURE__ */ pe(tr);
1125
+ }), tr = /* @__PURE__ */ pe(er);
1126
1126
  function Tt(e) {
1127
- return e.deep === !0 ? Qe : e.deep === !1 ? qt : So(e.defaultDecorator);
1127
+ return e.deep === !0 ? Qe : e.deep === !1 ? qt : bs(e.defaultDecorator);
1128
1128
  }
1129
- function bo(e) {
1129
+ function _s(e) {
1130
1130
  var t;
1131
- return e ? (t = e.defaultDecorator) != null ? t : Yi(e) : void 0;
1131
+ return e ? (t = e.defaultDecorator) != null ? t : Xi(e) : void 0;
1132
1132
  }
1133
- function So(e) {
1133
+ function bs(e) {
1134
1134
  var t, i;
1135
1135
  return e && (t = (i = e.options_) == null ? void 0 : i.enhancer) != null ? t : Qe;
1136
1136
  }
1137
- function ir(e, t, i) {
1137
+ function nr(e, t, i) {
1138
1138
  if (Pe(t)) {
1139
- kt(e, t, tr);
1139
+ kt(e, t, er);
1140
1140
  return;
1141
1141
  }
1142
1142
  return Nt(e) ? e : Se(e) ? ne.object(e, t, i) : Array.isArray(e) ? ne.array(e, t) : Ze(e) ? ne.map(e, t) : gt(e) ? ne.set(e, t) : typeof e == "object" && e !== null ? e : ne.box(e, t);
1143
1143
  }
1144
- Bi(ir, nr);
1145
- var No = {
1144
+ Mi(nr, tr);
1145
+ var Ss = {
1146
1146
  box: function(t, i) {
1147
1147
  var n = Rt(i);
1148
1148
  return new ze(t, Tt(n), n.name, !0, n.equals);
1149
1149
  },
1150
1150
  array: function(t, i) {
1151
1151
  var n = Rt(i);
1152
- return (x.useProxies === !1 || n.proxy === !1 ? ps : ss)(t, Tt(n), n.name);
1152
+ return (x.useProxies === !1 || n.proxy === !1 ? po : so)(t, Tt(n), n.name);
1153
1153
  },
1154
1154
  map: function(t, i) {
1155
1155
  var n = Rt(i);
1156
- return new Rr(t, Tt(n), n.name);
1156
+ return new Cr(t, Tt(n), n.name);
1157
1157
  },
1158
1158
  set: function(t, i) {
1159
1159
  var n = Rt(i);
1160
- return new xr(t, Tt(n), n.name);
1160
+ return new Lr(t, Tt(n), n.name);
1161
1161
  },
1162
1162
  object: function(t, i, n) {
1163
- return wr(x.useProxies === !1 || (n == null ? void 0 : n.proxy) === !1 ? Et({}, n) : ns({}, n), t, i);
1163
+ return Or(x.useProxies === !1 || (n == null ? void 0 : n.proxy) === !1 ? Et({}, n) : to({}, n), t, i);
1164
1164
  },
1165
- ref: /* @__PURE__ */ pe(ko),
1166
- shallow: /* @__PURE__ */ pe(yo),
1167
- deep: nr,
1168
- struct: /* @__PURE__ */ pe(_o)
1169
- }, ne = /* @__PURE__ */ Bi(ir, No), rr = "computed", Oo = "computed.struct", ar = /* @__PURE__ */ Rn(rr), wo = /* @__PURE__ */ Rn(Oo, {
1165
+ ref: /* @__PURE__ */ pe(gs),
1166
+ shallow: /* @__PURE__ */ pe(ks),
1167
+ deep: tr,
1168
+ struct: /* @__PURE__ */ pe(ys)
1169
+ }, ne = /* @__PURE__ */ Mi(nr, Ss), ir = "computed", Ns = "computed.struct", rr = /* @__PURE__ */ Rn(ir), Os = /* @__PURE__ */ Rn(Ns, {
1170
1170
  equals: We.structural
1171
1171
  }), Ae = function(t, i) {
1172
1172
  if (Pe(i))
1173
- return kt(t, i, ar);
1173
+ return kt(t, i, rr);
1174
1174
  if (Se(t))
1175
- return pe(Rn(rr, t));
1175
+ return pe(Rn(ir, t));
1176
1176
  var n = Se(i) ? i : {};
1177
1177
  return n.get = t, n.name || (n.name = t.name || ""), new ut(n);
1178
1178
  };
1179
- Object.assign(Ae, ar);
1180
- Ae.struct = /* @__PURE__ */ pe(wo);
1181
- var Jn, Hn, Vt = 0, Eo = 1, Ao = (Jn = (Hn = /* @__PURE__ */ It(function() {
1182
- }, "name")) == null ? void 0 : Hn.configurable) != null ? Jn : !1, Zn = {
1179
+ Object.assign(Ae, rr);
1180
+ Ae.struct = /* @__PURE__ */ pe(Os);
1181
+ var qn, Jn, Vt = 0, ws = 1, Es = (qn = (Jn = /* @__PURE__ */ It(function() {
1182
+ }, "name")) == null ? void 0 : Jn.configurable) != null ? qn : !1, Hn = {
1183
1183
  value: "action",
1184
1184
  configurable: !0,
1185
1185
  writable: !1,
@@ -1188,41 +1188,41 @@ var Jn, Hn, Vt = 0, Eo = 1, Ao = (Jn = (Hn = /* @__PURE__ */ It(function() {
1188
1188
  function qe(e, t, i, n) {
1189
1189
  i === void 0 && (i = !1);
1190
1190
  function r() {
1191
- return Fo(e, i, t, n || this, arguments);
1191
+ return As(e, i, t, n || this, arguments);
1192
1192
  }
1193
- return r.isMobxAction = !0, Ao && (Zn.value = e, ve(r, "name", Zn)), r;
1193
+ return r.isMobxAction = !0, Es && (Hn.value = e, ve(r, "name", Hn)), r;
1194
1194
  }
1195
- function Fo(e, t, i, n, r) {
1196
- var a = Co(e, t);
1195
+ function As(e, t, i, n, r) {
1196
+ var a = Fs(e, t);
1197
1197
  try {
1198
1198
  return i.apply(n, r);
1199
- } catch (o) {
1200
- throw a.error_ = o, o;
1199
+ } catch (s) {
1200
+ throw a.error_ = s, s;
1201
1201
  } finally {
1202
- Ro(a);
1202
+ Cs(a);
1203
1203
  }
1204
1204
  }
1205
- function Co(e, t, i, n) {
1206
- var r = !1, a = 0, o = x.trackingDerivation, s = !t || !o;
1205
+ function Fs(e, t, i, n) {
1206
+ var r = !1, a = 0, s = x.trackingDerivation, o = !t || !s;
1207
1207
  ae();
1208
1208
  var l = x.allowStateChanges;
1209
- s && (Xe(), l = bt(!0));
1209
+ o && (Xe(), l = bt(!0));
1210
1210
  var c = Tn(!0), f = {
1211
- runAsAction_: s,
1212
- prevDerivation_: o,
1211
+ runAsAction_: o,
1212
+ prevDerivation_: s,
1213
1213
  prevAllowStateChanges_: l,
1214
1214
  prevAllowStateReads_: c,
1215
1215
  notifySpy_: r,
1216
1216
  startTime_: a,
1217
- actionId_: Eo++,
1217
+ actionId_: ws++,
1218
1218
  parentActionId_: Vt
1219
1219
  };
1220
1220
  return Vt = f.actionId_, f;
1221
1221
  }
1222
- function Ro(e) {
1223
- Vt !== e.actionId_ && W(30), Vt = e.parentActionId_, e.error_ !== void 0 && (x.suppressReactionErrors = !0), St(e.prevAllowStateChanges_), ot(e.prevAllowStateReads_), oe(), e.runAsAction_ && Re(e.prevDerivation_), x.suppressReactionErrors = !1;
1222
+ function Cs(e) {
1223
+ Vt !== e.actionId_ && W(30), Vt = e.parentActionId_, e.error_ !== void 0 && (x.suppressReactionErrors = !0), St(e.prevAllowStateChanges_), st(e.prevAllowStateReads_), se(), e.runAsAction_ && Re(e.prevDerivation_), x.suppressReactionErrors = !1;
1224
1224
  }
1225
- function or(e, t) {
1225
+ function ar(e, t) {
1226
1226
  var i = bt(e);
1227
1227
  try {
1228
1228
  return t();
@@ -1240,10 +1240,10 @@ function St(e) {
1240
1240
  var sr;
1241
1241
  sr = Symbol.toPrimitive;
1242
1242
  var ze = /* @__PURE__ */ function(e) {
1243
- qi(t, e);
1244
- function t(n, r, a, o, s) {
1243
+ Qi(t, e);
1244
+ function t(n, r, a, s, o) {
1245
1245
  var l;
1246
- return a === void 0 && (a = "ObservableValue"), s === void 0 && (s = We.default), l = e.call(this, a) || this, l.enhancer = void 0, l.name_ = void 0, l.equals = void 0, l.hasUnreportedChange_ = !1, l.interceptors_ = void 0, l.changeListeners_ = void 0, l.value_ = void 0, l.dehancer = void 0, l.enhancer = r, l.name_ = a, l.equals = s, l.value_ = r(n, void 0, a), l;
1246
+ return a === void 0 && (a = "ObservableValue"), o === void 0 && (o = We.default), l = e.call(this, a) || this, l.enhancer = void 0, l.name_ = void 0, l.equals = void 0, l.hasUnreportedChange_ = !1, l.interceptors_ = void 0, l.changeListeners_ = void 0, l.value_ = void 0, l.dehancer = void 0, l.enhancer = r, l.name_ = a, l.equals = o, l.value_ = r(n, void 0, a), l;
1247
1247
  }
1248
1248
  var i = t.prototype;
1249
1249
  return i.dehanceValue = function(r) {
@@ -1251,7 +1251,7 @@ var ze = /* @__PURE__ */ function(e) {
1251
1251
  }, i.set = function(r) {
1252
1252
  this.value_, r = this.prepareNewValue_(r), r !== x.UNCHANGED && this.setNewValue_(r);
1253
1253
  }, i.prepareNewValue_ = function(r) {
1254
- if (se(this)) {
1254
+ if (oe(this)) {
1255
1255
  var a = ue(this, {
1256
1256
  object: this,
1257
1257
  type: ge,
@@ -1290,19 +1290,19 @@ var ze = /* @__PURE__ */ function(e) {
1290
1290
  }, i.toString = function() {
1291
1291
  return this.name_ + "[" + this.value_ + "]";
1292
1292
  }, i.valueOf = function() {
1293
- return Qi(this.get());
1293
+ return Wi(this.get());
1294
1294
  }, i[sr] = function() {
1295
1295
  return this.valueOf();
1296
1296
  }, t;
1297
- }(yt), ur;
1298
- ur = Symbol.toPrimitive;
1297
+ }(yt), or;
1298
+ or = Symbol.toPrimitive;
1299
1299
  var ut = /* @__PURE__ */ function() {
1300
1300
  function e(i) {
1301
1301
  this.dependenciesState_ = $.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = $.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new jt(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.isComputing_ = !1, this.isRunningSetter_ = !1, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = xe.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, i.get || W(31), this.derivation = i.get, this.name_ = i.name || "ComputedValue", i.set && (this.setter_ = qe("ComputedValue-setter", i.set)), this.equals_ = i.equals || (i.compareStructural || i.struct ? We.structural : We.default), this.scope_ = i.context, this.requiresReaction_ = i.requiresReaction, this.keepAlive_ = !!i.keepAlive;
1302
1302
  }
1303
1303
  var t = e.prototype;
1304
1304
  return t.onBecomeStale_ = function() {
1305
- Po(this);
1305
+ xs(this);
1306
1306
  }, t.onBO = function() {
1307
1307
  this.onBOL && this.onBOL.forEach(function(n) {
1308
1308
  return n();
@@ -1314,10 +1314,10 @@ var ut = /* @__PURE__ */ function() {
1314
1314
  }, t.get = function() {
1315
1315
  if (this.isComputing_ && W(32, this.name_, this.derivation), x.inBatch === 0 && // !globalState.trackingDerivatpion &&
1316
1316
  this.observers_.size === 0 && !this.keepAlive_)
1317
- kn(this) && (this.warnAboutUntrackedRead_(), ae(), this.value_ = this.computeValue_(!1), oe());
1318
- else if (mr(this), kn(this)) {
1317
+ kn(this) && (this.warnAboutUntrackedRead_(), ae(), this.value_ = this.computeValue_(!1), se());
1318
+ else if (hr(this), kn(this)) {
1319
1319
  var n = x.trackingContext;
1320
- this.keepAlive_ && !n && (x.trackingContext = this), this.trackAndCompute() && xo(this), x.trackingContext = n;
1320
+ this.keepAlive_ && !n && (x.trackingContext = this), this.trackAndCompute() && Ls(this), x.trackingContext = n;
1321
1321
  }
1322
1322
  var r = this.value_;
1323
1323
  if (xt(r))
@@ -1337,29 +1337,29 @@ var ut = /* @__PURE__ */ function() {
1337
1337
  var n = this.value_, r = (
1338
1338
  /* see #1208 */
1339
1339
  this.dependenciesState_ === $.NOT_TRACKING_
1340
- ), a = this.computeValue_(!0), o = r || xt(n) || xt(a) || !this.equals_(n, a);
1341
- return o && (this.value_ = a), o;
1340
+ ), a = this.computeValue_(!0), s = r || xt(n) || xt(a) || !this.equals_(n, a);
1341
+ return s && (this.value_ = a), s;
1342
1342
  }, t.computeValue_ = function(n) {
1343
1343
  this.isComputing_ = !0;
1344
1344
  var r = bt(!1), a;
1345
1345
  if (n)
1346
- a = lr(this, this.derivation, this.scope_);
1346
+ a = ur(this, this.derivation, this.scope_);
1347
1347
  else if (x.disableErrorBoundaries === !0)
1348
1348
  a = this.derivation.call(this.scope_);
1349
1349
  else
1350
1350
  try {
1351
1351
  a = this.derivation.call(this.scope_);
1352
- } catch (o) {
1353
- a = new jt(o);
1352
+ } catch (s) {
1353
+ a = new jt(s);
1354
1354
  }
1355
1355
  return St(r), this.isComputing_ = !1, a;
1356
1356
  }, t.suspend_ = function() {
1357
1357
  this.keepAlive_ || (yn(this), this.value_ = void 0);
1358
1358
  }, t.observe_ = function(n, r) {
1359
- var a = this, o = !0, s = void 0;
1359
+ var a = this, s = !0, o = void 0;
1360
1360
  return xn(function() {
1361
1361
  var l = a.get();
1362
- if (!o || r) {
1362
+ if (!s || r) {
1363
1363
  var c = Xe();
1364
1364
  n({
1365
1365
  observableKind: "computed",
@@ -1367,17 +1367,17 @@ var ut = /* @__PURE__ */ function() {
1367
1367
  type: ge,
1368
1368
  object: a,
1369
1369
  newValue: l,
1370
- oldValue: s
1370
+ oldValue: o
1371
1371
  }), Re(c);
1372
1372
  }
1373
- o = !1, s = l;
1373
+ s = !1, o = l;
1374
1374
  });
1375
1375
  }, t.warnAboutUntrackedRead_ = function() {
1376
1376
  }, t.toString = function() {
1377
1377
  return this.name_ + "[" + this.derivation.toString() + "]";
1378
1378
  }, t.valueOf = function() {
1379
- return Qi(this.get());
1380
- }, t[ur] = function() {
1379
+ return Wi(this.get());
1380
+ }, t[or] = function() {
1381
1381
  return this.valueOf();
1382
1382
  }, e;
1383
1383
  }(), Ht = /* @__PURE__ */ Ve("ComputedValue", ut), $;
@@ -1403,27 +1403,27 @@ function kn(e) {
1403
1403
  return !0;
1404
1404
  case $.POSSIBLY_STALE_: {
1405
1405
  for (var t = Tn(!0), i = Xe(), n = e.observing_, r = n.length, a = 0; a < r; a++) {
1406
- var o = n[a];
1407
- if (Ht(o)) {
1406
+ var s = n[a];
1407
+ if (Ht(s)) {
1408
1408
  if (x.disableErrorBoundaries)
1409
- o.get();
1409
+ s.get();
1410
1410
  else
1411
1411
  try {
1412
- o.get();
1412
+ s.get();
1413
1413
  } catch {
1414
- return Re(i), ot(t), !0;
1414
+ return Re(i), st(t), !0;
1415
1415
  }
1416
1416
  if (e.dependenciesState_ === $.STALE_)
1417
- return Re(i), ot(t), !0;
1417
+ return Re(i), st(t), !0;
1418
1418
  }
1419
1419
  }
1420
- return dr(e), Re(i), ot(t), !1;
1420
+ return cr(e), Re(i), st(t), !1;
1421
1421
  }
1422
1422
  }
1423
1423
  }
1424
- function lr(e, t, i) {
1424
+ function ur(e, t, i) {
1425
1425
  var n = Tn(!0);
1426
- dr(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++x.runId;
1426
+ cr(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++x.runId;
1427
1427
  var r = x.trackingDerivation;
1428
1428
  x.trackingDerivation = e, x.inBatch++;
1429
1429
  var a;
@@ -1432,23 +1432,23 @@ function lr(e, t, i) {
1432
1432
  else
1433
1433
  try {
1434
1434
  a = t.call(i);
1435
- } catch (o) {
1436
- a = new jt(o);
1435
+ } catch (s) {
1436
+ a = new jt(s);
1437
1437
  }
1438
- return x.inBatch--, x.trackingDerivation = r, To(e), ot(n), a;
1438
+ return x.inBatch--, x.trackingDerivation = r, Rs(e), st(n), a;
1439
1439
  }
1440
- function To(e) {
1441
- for (var t = e.observing_, i = e.observing_ = e.newObserving_, n = $.UP_TO_DATE_, r = 0, a = e.unboundDepsCount_, o = 0; o < a; o++) {
1442
- var s = i[o];
1443
- s.diffValue_ === 0 && (s.diffValue_ = 1, r !== o && (i[r] = s), r++), s.dependenciesState_ > n && (n = s.dependenciesState_);
1440
+ function Rs(e) {
1441
+ for (var t = e.observing_, i = e.observing_ = e.newObserving_, n = $.UP_TO_DATE_, r = 0, a = e.unboundDepsCount_, s = 0; s < a; s++) {
1442
+ var o = i[s];
1443
+ o.diffValue_ === 0 && (o.diffValue_ = 1, r !== s && (i[r] = o), r++), o.dependenciesState_ > n && (n = o.dependenciesState_);
1444
1444
  }
1445
1445
  for (i.length = r, e.newObserving_ = null, a = t.length; a--; ) {
1446
1446
  var l = t[a];
1447
- l.diffValue_ === 0 && fr(l, e), l.diffValue_ = 0;
1447
+ l.diffValue_ === 0 && dr(l, e), l.diffValue_ = 0;
1448
1448
  }
1449
1449
  for (; r--; ) {
1450
1450
  var c = i[r];
1451
- c.diffValue_ === 1 && (c.diffValue_ = 0, Lo(c, e));
1451
+ c.diffValue_ === 1 && (c.diffValue_ = 0, Ts(c, e));
1452
1452
  }
1453
1453
  n !== $.UP_TO_DATE_ && (e.dependenciesState_ = n, e.onBecomeStale_());
1454
1454
  }
@@ -1456,10 +1456,10 @@ function yn(e) {
1456
1456
  var t = e.observing_;
1457
1457
  e.observing_ = [];
1458
1458
  for (var i = t.length; i--; )
1459
- fr(t[i], e);
1459
+ dr(t[i], e);
1460
1460
  e.dependenciesState_ = $.NOT_TRACKING_;
1461
1461
  }
1462
- function cr(e) {
1462
+ function lr(e) {
1463
1463
  var t = Xe();
1464
1464
  try {
1465
1465
  return e();
@@ -1478,10 +1478,10 @@ function Tn(e) {
1478
1478
  var t = x.allowStateReads;
1479
1479
  return x.allowStateReads = e, t;
1480
1480
  }
1481
- function ot(e) {
1481
+ function st(e) {
1482
1482
  x.allowStateReads = e;
1483
1483
  }
1484
- function dr(e) {
1484
+ function cr(e) {
1485
1485
  if (e.dependenciesState_ !== $.UP_TO_DATE_) {
1486
1486
  e.dependenciesState_ = $.UP_TO_DATE_;
1487
1487
  for (var t = e.observing_, i = t.length; i--; )
@@ -1491,26 +1491,26 @@ function dr(e) {
1491
1491
  var cn = function() {
1492
1492
  this.version = 6, this.UNCHANGED = {}, this.trackingDerivation = null, this.trackingContext = null, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !1, this.allowStateReads = !0, this.enforceActions = !0, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1, this.useProxies = !0, this.verifyProxies = !1, this.safeDescriptors = !0, this.stateVersion = Number.MIN_SAFE_INTEGER;
1493
1493
  }, dn = !0, x = /* @__PURE__ */ function() {
1494
- var e = /* @__PURE__ */ Mi();
1494
+ var e = /* @__PURE__ */ Ui();
1495
1495
  return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (dn = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new cn().version && (dn = !1), dn ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = /* @__PURE__ */ new cn()) : (setTimeout(function() {
1496
1496
  W(35);
1497
1497
  }, 1), new cn());
1498
1498
  }();
1499
- function Lo(e, t) {
1499
+ function Ts(e, t) {
1500
1500
  e.observers_.add(t), e.lowestObserverState_ > t.dependenciesState_ && (e.lowestObserverState_ = t.dependenciesState_);
1501
1501
  }
1502
- function fr(e, t) {
1503
- e.observers_.delete(t), e.observers_.size === 0 && hr(e);
1502
+ function dr(e, t) {
1503
+ e.observers_.delete(t), e.observers_.size === 0 && fr(e);
1504
1504
  }
1505
- function hr(e) {
1505
+ function fr(e) {
1506
1506
  e.isPendingUnobservation_ === !1 && (e.isPendingUnobservation_ = !0, x.pendingUnobservations.push(e));
1507
1507
  }
1508
1508
  function ae() {
1509
1509
  x.inBatch++;
1510
1510
  }
1511
- function oe() {
1511
+ function se() {
1512
1512
  if (--x.inBatch === 0) {
1513
- pr();
1513
+ vr();
1514
1514
  for (var e = x.pendingUnobservations, t = 0; t < e.length; t++) {
1515
1515
  var i = e[t];
1516
1516
  i.isPendingUnobservation_ = !1, i.observers_.size === 0 && (i.isBeingObserved_ && (i.isBeingObserved_ = !1, i.onBUO()), i instanceof ut && i.suspend_());
@@ -1518,21 +1518,21 @@ function oe() {
1518
1518
  x.pendingUnobservations = [];
1519
1519
  }
1520
1520
  }
1521
- function mr(e) {
1521
+ function hr(e) {
1522
1522
  var t = x.trackingDerivation;
1523
- return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && x.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), e.isBeingObserved_) : (e.observers_.size === 0 && x.inBatch > 0 && hr(e), !1);
1523
+ return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && x.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), e.isBeingObserved_) : (e.observers_.size === 0 && x.inBatch > 0 && fr(e), !1);
1524
1524
  }
1525
- function vr(e) {
1525
+ function mr(e) {
1526
1526
  e.lowestObserverState_ !== $.STALE_ && (e.lowestObserverState_ = $.STALE_, e.observers_.forEach(function(t) {
1527
1527
  t.dependenciesState_ === $.UP_TO_DATE_ && t.onBecomeStale_(), t.dependenciesState_ = $.STALE_;
1528
1528
  }));
1529
1529
  }
1530
- function xo(e) {
1530
+ function Ls(e) {
1531
1531
  e.lowestObserverState_ !== $.STALE_ && (e.lowestObserverState_ = $.STALE_, e.observers_.forEach(function(t) {
1532
1532
  t.dependenciesState_ === $.POSSIBLY_STALE_ ? t.dependenciesState_ = $.STALE_ : t.dependenciesState_ === $.UP_TO_DATE_ && (e.lowestObserverState_ = $.UP_TO_DATE_);
1533
1533
  }));
1534
1534
  }
1535
- function Po(e) {
1535
+ function xs(e) {
1536
1536
  e.lowestObserverState_ === $.UP_TO_DATE_ && (e.lowestObserverState_ = $.POSSIBLY_STALE_, e.observers_.forEach(function(t) {
1537
1537
  t.dependenciesState_ === $.UP_TO_DATE_ && (t.dependenciesState_ = $.POSSIBLY_STALE_, t.onBecomeStale_());
1538
1538
  }));
@@ -1545,7 +1545,7 @@ var Ut = /* @__PURE__ */ function() {
1545
1545
  return t.onBecomeStale_ = function() {
1546
1546
  this.schedule_();
1547
1547
  }, t.schedule_ = function() {
1548
- this.isScheduled_ || (this.isScheduled_ = !0, x.pendingReactions.push(this), pr());
1548
+ this.isScheduled_ || (this.isScheduled_ = !0, x.pendingReactions.push(this), vr());
1549
1549
  }, t.isScheduled = function() {
1550
1550
  return this.isScheduled_;
1551
1551
  }, t.runReaction_ = function() {
@@ -1560,15 +1560,15 @@ var Ut = /* @__PURE__ */ function() {
1560
1560
  this.reportExceptionInDerivation_(r);
1561
1561
  }
1562
1562
  }
1563
- x.trackingContext = n, oe();
1563
+ x.trackingContext = n, se();
1564
1564
  }
1565
1565
  }, t.track = function(n) {
1566
1566
  if (!this.isDisposed_) {
1567
1567
  ae(), this.isRunning_ = !0;
1568
1568
  var r = x.trackingContext;
1569
1569
  x.trackingContext = this;
1570
- var a = lr(this, n, void 0);
1571
- x.trackingContext = r, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && yn(this), xt(a) && this.reportExceptionInDerivation_(a.cause), oe();
1570
+ var a = ur(this, n, void 0);
1571
+ x.trackingContext = r, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && yn(this), xt(a) && this.reportExceptionInDerivation_(a.cause), se();
1572
1572
  }
1573
1573
  }, t.reportExceptionInDerivation_ = function(n) {
1574
1574
  var r = this;
@@ -1579,115 +1579,115 @@ var Ut = /* @__PURE__ */ function() {
1579
1579
  if (x.disableErrorBoundaries)
1580
1580
  throw n;
1581
1581
  var a = "[mobx] uncaught error in '" + this + "'";
1582
- x.suppressReactionErrors || console.error(a, n), x.globalReactionErrorHandlers.forEach(function(o) {
1583
- return o(n, r);
1582
+ x.suppressReactionErrors || console.error(a, n), x.globalReactionErrorHandlers.forEach(function(s) {
1583
+ return s(n, r);
1584
1584
  });
1585
1585
  }, t.dispose = function() {
1586
- this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (ae(), yn(this), oe()));
1586
+ this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (ae(), yn(this), se()));
1587
1587
  }, t.getDisposer_ = function() {
1588
1588
  var n = this.dispose.bind(this);
1589
1589
  return n[M] = this, n;
1590
1590
  }, t.toString = function() {
1591
1591
  return "Reaction[" + this.name_ + "]";
1592
1592
  }, t.trace = function(n) {
1593
- n === void 0 && (n = !1), Yo(this, n);
1593
+ n === void 0 && (n = !1), Xs(this, n);
1594
1594
  }, e;
1595
- }(), Do = 100, Io = function(t) {
1595
+ }(), Ps = 100, Ds = function(t) {
1596
1596
  return t();
1597
1597
  };
1598
- function pr() {
1599
- x.inBatch > 0 || x.isRunningReactions || Io(Vo);
1598
+ function vr() {
1599
+ x.inBatch > 0 || x.isRunningReactions || Ds(Is);
1600
1600
  }
1601
- function Vo() {
1601
+ function Is() {
1602
1602
  x.isRunningReactions = !0;
1603
1603
  for (var e = x.pendingReactions, t = 0; e.length > 0; ) {
1604
- ++t === Do && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
1604
+ ++t === Ps && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
1605
1605
  for (var i = e.splice(0), n = 0, r = i.length; n < r; n++)
1606
1606
  i[n].runReaction_();
1607
1607
  }
1608
1608
  x.isRunningReactions = !1;
1609
1609
  }
1610
1610
  var Mt = /* @__PURE__ */ Ve("Reaction", Ut);
1611
- function st() {
1611
+ function ot() {
1612
1612
  return !1;
1613
1613
  }
1614
- function jo(e) {
1614
+ function Vs(e) {
1615
1615
  return console.warn("[mobx.spy] Is a no-op in production builds"), function() {
1616
1616
  };
1617
1617
  }
1618
- var gr = "action", Uo = "action.bound", kr = "autoAction", Mo = "autoAction.bound", Bo = "<unnamed action>", yr = /* @__PURE__ */ _t(gr), Go = /* @__PURE__ */ _t(Uo, {
1618
+ var pr = "action", js = "action.bound", gr = "autoAction", Us = "autoAction.bound", Ms = "<unnamed action>", kr = /* @__PURE__ */ _t(pr), Bs = /* @__PURE__ */ _t(js, {
1619
1619
  bound: !0
1620
- }), _r = /* @__PURE__ */ _t(kr, {
1620
+ }), yr = /* @__PURE__ */ _t(gr, {
1621
1621
  autoAction: !0
1622
- }), zo = /* @__PURE__ */ _t(Mo, {
1622
+ }), Gs = /* @__PURE__ */ _t(Us, {
1623
1623
  autoAction: !0,
1624
1624
  bound: !0
1625
1625
  });
1626
- function br(e) {
1626
+ function _r(e) {
1627
1627
  var t = function(n, r) {
1628
1628
  if (he(n))
1629
- return qe(n.name || Bo, n, e);
1629
+ return qe(n.name || Ms, n, e);
1630
1630
  if (he(r))
1631
1631
  return qe(n, r, e);
1632
1632
  if (Pe(r))
1633
- return kt(n, r, e ? _r : yr);
1633
+ return kt(n, r, e ? yr : kr);
1634
1634
  if (Pe(n))
1635
- return pe(_t(e ? kr : gr, {
1635
+ return pe(_t(e ? gr : pr, {
1636
1636
  name: n,
1637
1637
  autoAction: e
1638
1638
  }));
1639
1639
  };
1640
1640
  return t;
1641
1641
  }
1642
- var Fe = /* @__PURE__ */ br(!1);
1643
- Object.assign(Fe, yr);
1644
- var lt = /* @__PURE__ */ br(!0);
1645
- Object.assign(lt, _r);
1646
- Fe.bound = /* @__PURE__ */ pe(Go);
1647
- lt.bound = /* @__PURE__ */ pe(zo);
1642
+ var Fe = /* @__PURE__ */ _r(!1);
1643
+ Object.assign(Fe, kr);
1644
+ var lt = /* @__PURE__ */ _r(!0);
1645
+ Object.assign(lt, yr);
1646
+ Fe.bound = /* @__PURE__ */ pe(Bs);
1647
+ lt.bound = /* @__PURE__ */ pe(Gs);
1648
1648
  function Ln(e) {
1649
1649
  return he(e) && e.isMobxAction === !0;
1650
1650
  }
1651
1651
  function xn(e, t) {
1652
1652
  var i, n;
1653
1653
  t === void 0 && (t = An);
1654
- var r = (i = (n = t) == null ? void 0 : n.name) != null ? i : "Autorun", a = !t.scheduler && !t.delay, o;
1654
+ var r = (i = (n = t) == null ? void 0 : n.name) != null ? i : "Autorun", a = !t.scheduler && !t.delay, s;
1655
1655
  if (a)
1656
- o = new Ut(r, function() {
1656
+ s = new Ut(r, function() {
1657
1657
  this.track(c);
1658
1658
  }, t.onError, t.requiresObservable);
1659
1659
  else {
1660
- var s = Sr(t), l = !1;
1661
- o = new Ut(r, function() {
1662
- l || (l = !0, s(function() {
1663
- l = !1, o.isDisposed_ || o.track(c);
1660
+ var o = br(t), l = !1;
1661
+ s = new Ut(r, function() {
1662
+ l || (l = !0, o(function() {
1663
+ l = !1, s.isDisposed_ || s.track(c);
1664
1664
  }));
1665
1665
  }, t.onError, t.requiresObservable);
1666
1666
  }
1667
1667
  function c() {
1668
- e(o);
1668
+ e(s);
1669
1669
  }
1670
- return o.schedule_(), o.getDisposer_();
1670
+ return s.schedule_(), s.getDisposer_();
1671
1671
  }
1672
- var Ko = function(t) {
1672
+ var zs = function(t) {
1673
1673
  return t();
1674
1674
  };
1675
- function Sr(e) {
1675
+ function br(e) {
1676
1676
  return e.scheduler ? e.scheduler : e.delay ? function(t) {
1677
1677
  return setTimeout(t, e.delay);
1678
- } : Ko;
1678
+ } : zs;
1679
1679
  }
1680
- function $o(e, t, i) {
1680
+ function Ks(e, t, i) {
1681
1681
  var n;
1682
1682
  i === void 0 && (i = An);
1683
- var r = (n = i.name) != null ? n : "Reaction", a = Fe(r, i.onError ? Wo(i.onError, t) : t), o = !i.scheduler && !i.delay, s = Sr(i), l = !0, c = !1, f, v, O = i.compareStructural ? We.structural : i.equals || We.default, A = new Ut(r, function() {
1684
- l || o ? R() : c || (c = !0, s(R));
1683
+ var r = (n = i.name) != null ? n : "Reaction", a = Fe(r, i.onError ? $s(i.onError, t) : t), s = !i.scheduler && !i.delay, o = br(i), l = !0, c = !1, f, v, O = i.compareStructural ? We.structural : i.equals || We.default, A = new Ut(r, function() {
1684
+ l || s ? R() : c || (c = !0, o(R));
1685
1685
  }, i.onError, i.requiresObservable);
1686
1686
  function R() {
1687
1687
  if (c = !1, !A.isDisposed_) {
1688
1688
  var b = !1;
1689
1689
  A.track(function() {
1690
- var _ = or(!1, function() {
1690
+ var _ = ar(!1, function() {
1691
1691
  return e(A);
1692
1692
  });
1693
1693
  b = l || !O(f, _), v = f, f = _;
@@ -1696,7 +1696,7 @@ function $o(e, t, i) {
1696
1696
  }
1697
1697
  return A.schedule_(), A.getDisposer_();
1698
1698
  }
1699
- function Wo(e, t) {
1699
+ function $s(e, t) {
1700
1700
  return function() {
1701
1701
  try {
1702
1702
  return t.apply(this, arguments);
@@ -1705,49 +1705,49 @@ function Wo(e, t) {
1705
1705
  }
1706
1706
  };
1707
1707
  }
1708
- var Qo = "onBO", qo = "onBUO";
1709
- function Jo(e, t, i) {
1710
- return Or(Qo, e, t, i);
1708
+ var Ws = "onBO", Qs = "onBUO";
1709
+ function qs(e, t, i) {
1710
+ return Nr(Ws, e, t, i);
1711
1711
  }
1712
- function Nr(e, t, i) {
1713
- return Or(qo, e, t, i);
1712
+ function Sr(e, t, i) {
1713
+ return Nr(Qs, e, t, i);
1714
1714
  }
1715
- function Or(e, t, i, n) {
1716
- var r = typeof n == "function" ? De(t, i) : De(t), a = he(n) ? n : i, o = e + "L";
1717
- return r[o] ? r[o].add(a) : r[o] = /* @__PURE__ */ new Set([a]), function() {
1718
- var s = r[o];
1719
- s && (s.delete(a), s.size === 0 && delete r[o]);
1715
+ function Nr(e, t, i, n) {
1716
+ var r = typeof n == "function" ? De(t, i) : De(t), a = he(n) ? n : i, s = e + "L";
1717
+ return r[s] ? r[s].add(a) : r[s] = /* @__PURE__ */ new Set([a]), function() {
1718
+ var o = r[s];
1719
+ o && (o.delete(a), o.size === 0 && delete r[s]);
1720
1720
  };
1721
1721
  }
1722
- function wr(e, t, i, n) {
1722
+ function Or(e, t, i, n) {
1723
1723
  var r = ja(t), a = Et(e, n)[M];
1724
1724
  ae();
1725
1725
  try {
1726
- Ke(r).forEach(function(o) {
1726
+ Ke(r).forEach(function(s) {
1727
1727
  a.extend_(
1728
- o,
1729
- r[o],
1728
+ s,
1729
+ r[s],
1730
1730
  // must pass "undefined" for { key: undefined }
1731
- i && o in i ? i[o] : !0
1731
+ i && s in i ? i[s] : !0
1732
1732
  );
1733
1733
  });
1734
1734
  } finally {
1735
- oe();
1735
+ se();
1736
1736
  }
1737
1737
  return e;
1738
1738
  }
1739
- var Ho = 0;
1740
- function Er() {
1739
+ var Js = 0;
1740
+ function wr() {
1741
1741
  this.message = "FLOW_CANCELLED";
1742
1742
  }
1743
- Er.prototype = /* @__PURE__ */ Object.create(Error.prototype);
1744
- var Xn = /* @__PURE__ */ Zi("flow"), Zo = /* @__PURE__ */ Zi("flow.bound", {
1743
+ wr.prototype = /* @__PURE__ */ Object.create(Error.prototype);
1744
+ var Zn = /* @__PURE__ */ Hi("flow"), Hs = /* @__PURE__ */ Hi("flow.bound", {
1745
1745
  bound: !0
1746
1746
  }), ct = /* @__PURE__ */ Object.assign(function(t, i) {
1747
1747
  if (Pe(i))
1748
- return kt(t, i, Xn);
1748
+ return kt(t, i, Zn);
1749
1749
  var n = t, r = n.name || "<unnamed flow>", a = function() {
1750
- var s = this, l = arguments, c = ++Ho, f = Fe(r + " - runid: " + c + " - init", n).apply(s, l), v, O = void 0, A = new Promise(function(R, b) {
1750
+ var o = this, l = arguments, c = ++Js, f = Fe(r + " - runid: " + c + " - init", n).apply(o, l), v, O = void 0, A = new Promise(function(R, b) {
1751
1751
  var _ = 0;
1752
1752
  v = b;
1753
1753
  function C(P) {
@@ -1781,40 +1781,40 @@ var Xn = /* @__PURE__ */ Zi("flow"), Zo = /* @__PURE__ */ Zi("flow.bound", {
1781
1781
  });
1782
1782
  return A.cancel = Fe(r + " - runid: " + c + " - cancel", function() {
1783
1783
  try {
1784
- O && Yn(O);
1784
+ O && Xn(O);
1785
1785
  var R = f.return(void 0), b = Promise.resolve(R.value);
1786
- b.then(Be, Be), Yn(b), v(new Er());
1786
+ b.then(Be, Be), Xn(b), v(new wr());
1787
1787
  } catch (_) {
1788
1788
  v(_);
1789
1789
  }
1790
1790
  }), A;
1791
1791
  };
1792
1792
  return a.isMobXFlow = !0, a;
1793
- }, Xn);
1794
- ct.bound = /* @__PURE__ */ pe(Zo);
1795
- function Yn(e) {
1793
+ }, Zn);
1794
+ ct.bound = /* @__PURE__ */ pe(Hs);
1795
+ function Xn(e) {
1796
1796
  he(e.cancel) && e.cancel();
1797
1797
  }
1798
1798
  function Bt(e) {
1799
1799
  return (e == null ? void 0 : e.isMobXFlow) === !0;
1800
1800
  }
1801
- function Xo(e, t) {
1801
+ function Zs(e, t) {
1802
1802
  return e ? t !== void 0 ? dt(e) ? e[M].values_.has(t) : !1 : dt(e) || !!e[M] || Cn(e) || Mt(e) || Ht(e) : !1;
1803
1803
  }
1804
1804
  function Nt(e) {
1805
- return Xo(e);
1805
+ return Zs(e);
1806
1806
  }
1807
- function Yo() {
1807
+ function Xs() {
1808
1808
  W("trace() is not available in production builds");
1809
1809
  for (var e = !1, t = arguments.length, i = new Array(t), n = 0; n < t; n++)
1810
1810
  i[n] = arguments[n];
1811
1811
  typeof i[i.length - 1] == "boolean" && (e = i.pop());
1812
- var r = es(i);
1812
+ var r = Ys(i);
1813
1813
  if (!r)
1814
1814
  return W("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
1815
1815
  r.isTracing_ === xe.NONE && console.log("[mobx.trace] '" + r.name_ + "' tracing enabled"), r.isTracing_ = e ? xe.BREAK : xe.LOG;
1816
1816
  }
1817
- function es(e) {
1817
+ function Ys(e) {
1818
1818
  switch (e.length) {
1819
1819
  case 0:
1820
1820
  return x.trackingDerivation;
@@ -1829,13 +1829,13 @@ function ye(e, t) {
1829
1829
  try {
1830
1830
  return e.apply(t);
1831
1831
  } finally {
1832
- oe();
1832
+ se();
1833
1833
  }
1834
1834
  }
1835
1835
  function Ue(e) {
1836
1836
  return e[M];
1837
1837
  }
1838
- var ts = {
1838
+ var eo = {
1839
1839
  has: function(t, i) {
1840
1840
  return Ue(t).has_(i);
1841
1841
  },
@@ -1861,16 +1861,16 @@ var ts = {
1861
1861
  W(13);
1862
1862
  }
1863
1863
  };
1864
- function ns(e, t) {
1864
+ function to(e, t) {
1865
1865
  var i, n;
1866
- return Gi(), e = Et(e, t), (n = (i = e[M]).proxy_) != null ? n : i.proxy_ = new Proxy(e, ts);
1866
+ return Bi(), e = Et(e, t), (n = (i = e[M]).proxy_) != null ? n : i.proxy_ = new Proxy(e, eo);
1867
1867
  }
1868
- function se(e) {
1868
+ function oe(e) {
1869
1869
  return e.interceptors_ !== void 0 && e.interceptors_.length > 0;
1870
1870
  }
1871
1871
  function Ot(e, t) {
1872
1872
  var i = e.interceptors_ || (e.interceptors_ = []);
1873
- return i.push(t), zi(function() {
1873
+ return i.push(t), Gi(function() {
1874
1874
  var n = i.indexOf(t);
1875
1875
  n !== -1 && i.splice(n, 1);
1876
1876
  });
@@ -1890,7 +1890,7 @@ function ce(e) {
1890
1890
  }
1891
1891
  function wt(e, t) {
1892
1892
  var i = e.changeListeners_ || (e.changeListeners_ = []);
1893
- return i.push(t), zi(function() {
1893
+ return i.push(t), Gi(function() {
1894
1894
  var n = i.indexOf(t);
1895
1895
  n !== -1 && i.splice(n, 1);
1896
1896
  });
@@ -1904,7 +1904,7 @@ function de(e, t) {
1904
1904
  Re(i);
1905
1905
  }
1906
1906
  }
1907
- function is(e, t, i) {
1907
+ function no(e, t, i) {
1908
1908
  var n = Et(e, i)[M];
1909
1909
  ae();
1910
1910
  try {
@@ -1913,14 +1913,14 @@ function is(e, t, i) {
1913
1913
  return n.make_(a, t[a]);
1914
1914
  });
1915
1915
  } finally {
1916
- oe();
1916
+ se();
1917
1917
  }
1918
1918
  return e;
1919
1919
  }
1920
1920
  var fn = /* @__PURE__ */ Symbol("mobx-keys");
1921
- function rs(e, t, i) {
1921
+ function io(e, t, i) {
1922
1922
  if (Se(e))
1923
- return wr(e, e, t, i);
1923
+ return Or(e, e, t, i);
1924
1924
  var n = Et(e, i)[M];
1925
1925
  if (!e[fn]) {
1926
1926
  var r = Object.getPrototypeOf(e), a = new Set([].concat(Ke(e), Ke(r)));
@@ -1928,19 +1928,19 @@ function rs(e, t, i) {
1928
1928
  }
1929
1929
  ae();
1930
1930
  try {
1931
- e[fn].forEach(function(o) {
1931
+ e[fn].forEach(function(s) {
1932
1932
  return n.make_(
1933
- o,
1933
+ s,
1934
1934
  // must pass "undefined" for { key: undefined }
1935
- t && o in t ? t[o] : !0
1935
+ t && s in t ? t[s] : !0
1936
1936
  );
1937
1937
  });
1938
1938
  } finally {
1939
- oe();
1939
+ se();
1940
1940
  }
1941
1941
  return e;
1942
1942
  }
1943
- var ei = "splice", ge = "update", as = 1e4, os = {
1943
+ var Yn = "splice", ge = "update", ro = 1e4, ao = {
1944
1944
  get: function(t, i) {
1945
1945
  var n = t[M];
1946
1946
  return i === M ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : be(Gt, i) ? Gt[i] : t[i];
@@ -1954,8 +1954,8 @@ var ei = "splice", ge = "update", as = 1e4, os = {
1954
1954
  }
1955
1955
  }, Pn = /* @__PURE__ */ function() {
1956
1956
  function e(i, n, r, a) {
1957
- i === void 0 && (i = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = r, this.legacyMode_ = a, this.atom_ = new yt(i), this.enhancer_ = function(o, s) {
1958
- return n(o, s, "ObservableArray[..]");
1957
+ i === void 0 && (i = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = r, this.legacyMode_ = a, this.atom_ = new yt(i), this.enhancer_ = function(s, o) {
1958
+ return n(s, o, "ObservableArray[..]");
1959
1959
  };
1960
1960
  }
1961
1961
  var t = e.prototype;
@@ -1984,21 +1984,21 @@ var ei = "splice", ge = "update", as = 1e4, os = {
1984
1984
  var r = this.values_.length;
1985
1985
  if (n !== r)
1986
1986
  if (n > r) {
1987
- for (var a = new Array(n - r), o = 0; o < n - r; o++)
1988
- a[o] = void 0;
1987
+ for (var a = new Array(n - r), s = 0; s < n - r; s++)
1988
+ a[s] = void 0;
1989
1989
  this.spliceWithArray_(r, 0, a);
1990
1990
  } else
1991
1991
  this.spliceWithArray_(n, r - n);
1992
1992
  }, t.updateArrayLength_ = function(n, r) {
1993
- n !== this.lastKnownLength_ && W(16), this.lastKnownLength_ += r, this.legacyMode_ && r > 0 && Vr(n + r + 1);
1993
+ n !== this.lastKnownLength_ && W(16), this.lastKnownLength_ += r, this.legacyMode_ && r > 0 && Ir(n + r + 1);
1994
1994
  }, t.spliceWithArray_ = function(n, r, a) {
1995
- var o = this;
1995
+ var s = this;
1996
1996
  this.atom_;
1997
- var s = this.values_.length;
1998
- if (n === void 0 ? n = 0 : n > s ? n = s : n < 0 && (n = Math.max(0, s + n)), arguments.length === 1 ? r = s - n : r == null ? r = 0 : r = Math.max(0, Math.min(r, s - n)), a === void 0 && (a = pn), se(this)) {
1997
+ var o = this.values_.length;
1998
+ if (n === void 0 ? n = 0 : n > o ? n = o : n < 0 && (n = Math.max(0, o + n)), arguments.length === 1 ? r = o - n : r == null ? r = 0 : r = Math.max(0, Math.min(r, o - n)), a === void 0 && (a = pn), oe(this)) {
1999
1999
  var l = ue(this, {
2000
2000
  object: this.proxy_,
2001
- type: ei,
2001
+ type: Yn,
2002
2002
  index: n,
2003
2003
  removedCount: r,
2004
2004
  added: a
@@ -2008,28 +2008,28 @@ var ei = "splice", ge = "update", as = 1e4, os = {
2008
2008
  r = l.removedCount, a = l.added;
2009
2009
  }
2010
2010
  if (a = a.length === 0 ? a : a.map(function(v) {
2011
- return o.enhancer_(v, void 0);
2011
+ return s.enhancer_(v, void 0);
2012
2012
  }), this.legacyMode_) {
2013
2013
  var c = a.length - r;
2014
- this.updateArrayLength_(s, c);
2014
+ this.updateArrayLength_(o, c);
2015
2015
  }
2016
2016
  var f = this.spliceItemsIntoValues_(n, r, a);
2017
2017
  return (r !== 0 || a.length !== 0) && this.notifyArraySplice_(n, a, f), this.dehanceValues_(f);
2018
2018
  }, t.spliceItemsIntoValues_ = function(n, r, a) {
2019
- if (a.length < as) {
2020
- var o;
2021
- return (o = this.values_).splice.apply(o, [n, r].concat(a));
2019
+ if (a.length < ro) {
2020
+ var s;
2021
+ return (s = this.values_).splice.apply(s, [n, r].concat(a));
2022
2022
  } else {
2023
- var s = this.values_.slice(n, n + r), l = this.values_.slice(n + r);
2023
+ var o = this.values_.slice(n, n + r), l = this.values_.slice(n + r);
2024
2024
  this.values_.length += a.length - r;
2025
2025
  for (var c = 0; c < a.length; c++)
2026
2026
  this.values_[n + c] = a[c];
2027
2027
  for (var f = 0; f < l.length; f++)
2028
2028
  this.values_[n + a.length + f] = l[f];
2029
- return s;
2029
+ return o;
2030
2030
  }
2031
2031
  }, t.notifyArrayChildUpdate_ = function(n, r, a) {
2032
- var o = !this.owned_ && st(), s = ce(this), l = s || o ? {
2032
+ var s = !this.owned_ && ot(), o = ce(this), l = o || s ? {
2033
2033
  observableKind: "array",
2034
2034
  object: this.proxy_,
2035
2035
  type: ge,
@@ -2038,20 +2038,20 @@ var ei = "splice", ge = "update", as = 1e4, os = {
2038
2038
  newValue: r,
2039
2039
  oldValue: a
2040
2040
  } : null;
2041
- this.atom_.reportChanged(), s && de(this, l);
2041
+ this.atom_.reportChanged(), o && de(this, l);
2042
2042
  }, t.notifyArraySplice_ = function(n, r, a) {
2043
- var o = !this.owned_ && st(), s = ce(this), l = s || o ? {
2043
+ var s = !this.owned_ && ot(), o = ce(this), l = o || s ? {
2044
2044
  observableKind: "array",
2045
2045
  object: this.proxy_,
2046
2046
  debugObjectName: this.atom_.name_,
2047
- type: ei,
2047
+ type: Yn,
2048
2048
  index: n,
2049
2049
  removed: a,
2050
2050
  added: r,
2051
2051
  removedCount: a.length,
2052
2052
  addedCount: r.length
2053
2053
  } : null;
2054
- this.atom_.reportChanged(), s && de(this, l);
2054
+ this.atom_.reportChanged(), o && de(this, l);
2055
2055
  }, t.get_ = function(n) {
2056
2056
  if (this.legacyMode_ && n >= this.values_.length) {
2057
2057
  console.warn("[mobx] Out of bounds read: " + n);
@@ -2062,21 +2062,21 @@ var ei = "splice", ge = "update", as = 1e4, os = {
2062
2062
  var a = this.values_;
2063
2063
  if (this.legacyMode_ && n > a.length && W(17, n, a.length), n < a.length) {
2064
2064
  this.atom_;
2065
- var o = a[n];
2066
- if (se(this)) {
2067
- var s = ue(this, {
2065
+ var s = a[n];
2066
+ if (oe(this)) {
2067
+ var o = ue(this, {
2068
2068
  type: ge,
2069
2069
  object: this.proxy_,
2070
2070
  index: n,
2071
2071
  newValue: r
2072
2072
  });
2073
- if (!s)
2073
+ if (!o)
2074
2074
  return;
2075
- r = s.newValue;
2075
+ r = o.newValue;
2076
2076
  }
2077
- r = this.enhancer_(r, o);
2078
- var l = r !== o;
2079
- l && (a[n] = r, this.notifyArrayChildUpdate_(n, r, o));
2077
+ r = this.enhancer_(r, s);
2078
+ var l = r !== s;
2079
+ l && (a[n] = r, this.notifyArrayChildUpdate_(n, r, s));
2080
2080
  } else {
2081
2081
  for (var c = new Array(n + 1 - a.length), f = 0; f < c.length - 1; f++)
2082
2082
  c[f] = void 0;
@@ -2084,14 +2084,14 @@ var ei = "splice", ge = "update", as = 1e4, os = {
2084
2084
  }
2085
2085
  }, e;
2086
2086
  }();
2087
- function ss(e, t, i, n) {
2088
- i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1), Gi();
2087
+ function so(e, t, i, n) {
2088
+ i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1), Bi();
2089
2089
  var r = new Pn(i, t, n, !1);
2090
- $i(r.values_, M, r);
2091
- var a = new Proxy(r.values_, os);
2090
+ Ki(r.values_, M, r);
2091
+ var a = new Proxy(r.values_, ao);
2092
2092
  if (r.proxy_ = a, e && e.length) {
2093
- var o = bt(!0);
2094
- r.spliceWithArray_(0, 0, e), St(o);
2093
+ var s = bt(!0);
2094
+ r.spliceWithArray_(0, 0, e), St(s);
2095
2095
  }
2096
2096
  return a;
2097
2097
  }
@@ -2116,16 +2116,16 @@ var Gt = {
2116
2116
  splice: function(t, i) {
2117
2117
  for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), a = 2; a < n; a++)
2118
2118
  r[a - 2] = arguments[a];
2119
- var o = this[M];
2119
+ var s = this[M];
2120
2120
  switch (arguments.length) {
2121
2121
  case 0:
2122
2122
  return [];
2123
2123
  case 1:
2124
- return o.spliceWithArray_(t);
2124
+ return s.spliceWithArray_(t);
2125
2125
  case 2:
2126
- return o.spliceWithArray_(t, i);
2126
+ return s.spliceWithArray_(t, i);
2127
2127
  }
2128
- return o.spliceWithArray_(t, i, r);
2128
+ return s.spliceWithArray_(t, i, r);
2129
2129
  },
2130
2130
  spliceWithArray: function(t, i, n) {
2131
2131
  return this[M].spliceWithArray_(t, i, n);
@@ -2176,8 +2176,8 @@ ee("flatMap", Le);
2176
2176
  ee("forEach", Le);
2177
2177
  ee("map", Le);
2178
2178
  ee("some", Le);
2179
- ee("reduce", Ar);
2180
- ee("reduceRight", Ar);
2179
+ ee("reduce", Er);
2180
+ ee("reduceRight", Er);
2181
2181
  function ee(e, t) {
2182
2182
  typeof Array.prototype[e] == "function" && (Gt[e] = t(e));
2183
2183
  }
@@ -2194,32 +2194,32 @@ function Le(e) {
2194
2194
  var n = this, r = this[M];
2195
2195
  r.atom_.reportObserved();
2196
2196
  var a = r.dehanceValues_(r.values_);
2197
- return a[e](function(o, s) {
2198
- return t.call(i, o, s, n);
2197
+ return a[e](function(s, o) {
2198
+ return t.call(i, s, o, n);
2199
2199
  });
2200
2200
  };
2201
2201
  }
2202
- function Ar(e) {
2202
+ function Er(e) {
2203
2203
  return function() {
2204
2204
  var t = this, i = this[M];
2205
2205
  i.atom_.reportObserved();
2206
2206
  var n = i.dehanceValues_(i.values_), r = arguments[0];
2207
- return arguments[0] = function(a, o, s) {
2208
- return r(a, o, s, t);
2207
+ return arguments[0] = function(a, s, o) {
2208
+ return r(a, s, o, t);
2209
2209
  }, n[e].apply(n, arguments);
2210
2210
  };
2211
2211
  }
2212
- var us = /* @__PURE__ */ Ve("ObservableArrayAdministration", Pn);
2212
+ var oo = /* @__PURE__ */ Ve("ObservableArrayAdministration", Pn);
2213
2213
  function Zt(e) {
2214
- return Qt(e) && us(e[M]);
2214
+ return Qt(e) && oo(e[M]);
2215
2215
  }
2216
- var Fr, Cr, ls = {}, Ce = "add", zt = "delete";
2217
- Fr = Symbol.iterator;
2218
- Cr = Symbol.toStringTag;
2219
- var Rr = /* @__PURE__ */ function() {
2216
+ var Ar, Fr, uo = {}, Ce = "add", zt = "delete";
2217
+ Ar = Symbol.iterator;
2218
+ Fr = Symbol.toStringTag;
2219
+ var Cr = /* @__PURE__ */ function() {
2220
2220
  function e(i, n, r) {
2221
2221
  var a = this;
2222
- n === void 0 && (n = Qe), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[M] = ls, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = n, this.name_ = r, he(Map) || W(18), this.keysAtom_ = Ji("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), or(!0, function() {
2222
+ n === void 0 && (n = Qe), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[M] = uo, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = n, this.name_ = r, he(Map) || W(18), this.keysAtom_ = qi("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), ar(!0, function() {
2223
2223
  a.merge(i);
2224
2224
  });
2225
2225
  }
@@ -2232,29 +2232,29 @@ var Rr = /* @__PURE__ */ function() {
2232
2232
  return this.has_(n);
2233
2233
  var a = this.hasMap_.get(n);
2234
2234
  if (!a) {
2235
- var o = a = new ze(this.has_(n), qt, "ObservableMap.key?", !1);
2236
- this.hasMap_.set(n, o), Nr(o, function() {
2235
+ var s = a = new ze(this.has_(n), qt, "ObservableMap.key?", !1);
2236
+ this.hasMap_.set(n, s), Sr(s, function() {
2237
2237
  return r.hasMap_.delete(n);
2238
2238
  });
2239
2239
  }
2240
2240
  return a.get();
2241
2241
  }, t.set = function(n, r) {
2242
2242
  var a = this.has_(n);
2243
- if (se(this)) {
2244
- var o = ue(this, {
2243
+ if (oe(this)) {
2244
+ var s = ue(this, {
2245
2245
  type: a ? ge : Ce,
2246
2246
  object: this,
2247
2247
  newValue: r,
2248
2248
  name: n
2249
2249
  });
2250
- if (!o)
2250
+ if (!s)
2251
2251
  return this;
2252
- r = o.newValue;
2252
+ r = s.newValue;
2253
2253
  }
2254
2254
  return a ? this.updateValue_(n, r) : this.addValue_(n, r), this;
2255
2255
  }, t.delete = function(n) {
2256
2256
  var r = this;
2257
- if (this.keysAtom_, se(this)) {
2257
+ if (this.keysAtom_, oe(this)) {
2258
2258
  var a = ue(this, {
2259
2259
  type: zt,
2260
2260
  object: this,
@@ -2264,7 +2264,7 @@ var Rr = /* @__PURE__ */ function() {
2264
2264
  return !1;
2265
2265
  }
2266
2266
  if (this.has_(n)) {
2267
- var o = st(), s = ce(this), l = s || o ? {
2267
+ var s = ot(), o = ce(this), l = o || s ? {
2268
2268
  observableKind: "map",
2269
2269
  debugObjectName: this.name_,
2270
2270
  type: zt,
@@ -2277,13 +2277,13 @@ var Rr = /* @__PURE__ */ function() {
2277
2277
  r.keysAtom_.reportChanged(), (c = r.hasMap_.get(n)) == null || c.setNewValue_(!1);
2278
2278
  var f = r.data_.get(n);
2279
2279
  f.setNewValue_(void 0), r.data_.delete(n);
2280
- }), s && de(this, l), !0;
2280
+ }), o && de(this, l), !0;
2281
2281
  }
2282
2282
  return !1;
2283
2283
  }, t.updateValue_ = function(n, r) {
2284
2284
  var a = this.data_.get(n);
2285
2285
  if (r = a.prepareNewValue_(r), r !== x.UNCHANGED) {
2286
- var o = st(), s = ce(this), l = s || o ? {
2286
+ var s = ot(), o = ce(this), l = o || s ? {
2287
2287
  observableKind: "map",
2288
2288
  debugObjectName: this.name_,
2289
2289
  type: ge,
@@ -2292,7 +2292,7 @@ var Rr = /* @__PURE__ */ function() {
2292
2292
  name: n,
2293
2293
  newValue: r
2294
2294
  } : null;
2295
- a.setNewValue_(r), s && de(this, l);
2295
+ a.setNewValue_(r), o && de(this, l);
2296
2296
  }
2297
2297
  }, t.addValue_ = function(n, r) {
2298
2298
  var a = this;
@@ -2300,7 +2300,7 @@ var Rr = /* @__PURE__ */ function() {
2300
2300
  var c, f = new ze(r, a.enhancer_, "ObservableMap.key", !1);
2301
2301
  a.data_.set(n, f), r = f.value_, (c = a.hasMap_.get(n)) == null || c.setNewValue_(!0), a.keysAtom_.reportChanged();
2302
2302
  });
2303
- var o = st(), s = ce(this), l = s || o ? {
2303
+ var s = ot(), o = ce(this), l = o || s ? {
2304
2304
  observableKind: "map",
2305
2305
  debugObjectName: this.name_,
2306
2306
  type: Ce,
@@ -2308,7 +2308,7 @@ var Rr = /* @__PURE__ */ function() {
2308
2308
  name: n,
2309
2309
  newValue: r
2310
2310
  } : null;
2311
- s && de(this, l);
2311
+ o && de(this, l);
2312
2312
  }, t.get = function(n) {
2313
2313
  return this.has(n) ? this.dehanceValue_(this.data_.get(n).get()) : this.dehanceValue_(void 0);
2314
2314
  }, t.dehanceValue_ = function(n) {
@@ -2319,10 +2319,10 @@ var Rr = /* @__PURE__ */ function() {
2319
2319
  var n = this, r = this.keys();
2320
2320
  return ft({
2321
2321
  next: function() {
2322
- var o = r.next(), s = o.done, l = o.value;
2322
+ var s = r.next(), o = s.done, l = s.value;
2323
2323
  return {
2324
- done: s,
2325
- value: s ? void 0 : n.get(l)
2324
+ done: o,
2325
+ value: o ? void 0 : n.get(l)
2326
2326
  };
2327
2327
  }
2328
2328
  });
@@ -2330,18 +2330,18 @@ var Rr = /* @__PURE__ */ function() {
2330
2330
  var n = this, r = this.keys();
2331
2331
  return ft({
2332
2332
  next: function() {
2333
- var o = r.next(), s = o.done, l = o.value;
2333
+ var s = r.next(), o = s.done, l = s.value;
2334
2334
  return {
2335
- done: s,
2336
- value: s ? void 0 : [l, n.get(l)]
2335
+ done: o,
2336
+ value: o ? void 0 : [l, n.get(l)]
2337
2337
  };
2338
2338
  }
2339
2339
  });
2340
- }, t[Fr] = function() {
2340
+ }, t[Ar] = function() {
2341
2341
  return this.entries();
2342
2342
  }, t.forEach = function(n, r) {
2343
- for (var a = Ge(this), o; !(o = a()).done; ) {
2344
- var s = o.value, l = s[0], c = s[1];
2343
+ for (var a = Ge(this), s; !(s = a()).done; ) {
2344
+ var o = s.value, l = o[0], c = o[1];
2345
2345
  n.call(r, c, l, this);
2346
2346
  }
2347
2347
  }, t.merge = function(n) {
@@ -2350,34 +2350,34 @@ var Rr = /* @__PURE__ */ function() {
2350
2350
  Se(n) ? Va(n).forEach(function(a) {
2351
2351
  return r.set(a, n[a]);
2352
2352
  }) : Array.isArray(n) ? n.forEach(function(a) {
2353
- var o = a[0], s = a[1];
2354
- return r.set(o, s);
2355
- }) : Ze(n) ? (n.constructor !== Map && W(19, n), n.forEach(function(a, o) {
2356
- return r.set(o, a);
2353
+ var s = a[0], o = a[1];
2354
+ return r.set(s, o);
2355
+ }) : Ze(n) ? (n.constructor !== Map && W(19, n), n.forEach(function(a, s) {
2356
+ return r.set(s, a);
2357
2357
  })) : n != null && W(20, n);
2358
2358
  }), this;
2359
2359
  }, t.clear = function() {
2360
2360
  var n = this;
2361
2361
  ye(function() {
2362
- cr(function() {
2362
+ lr(function() {
2363
2363
  for (var r = Ge(n.keys()), a; !(a = r()).done; ) {
2364
- var o = a.value;
2365
- n.delete(o);
2364
+ var s = a.value;
2365
+ n.delete(s);
2366
2366
  }
2367
2367
  });
2368
2368
  });
2369
2369
  }, t.replace = function(n) {
2370
2370
  var r = this;
2371
2371
  return ye(function() {
2372
- for (var a = cs(n), o = /* @__PURE__ */ new Map(), s = !1, l = Ge(r.data_.keys()), c; !(c = l()).done; ) {
2372
+ for (var a = lo(n), s = /* @__PURE__ */ new Map(), o = !1, l = Ge(r.data_.keys()), c; !(c = l()).done; ) {
2373
2373
  var f = c.value;
2374
2374
  if (!a.has(f)) {
2375
2375
  var v = r.delete(f);
2376
2376
  if (v)
2377
- s = !0;
2377
+ o = !0;
2378
2378
  else {
2379
2379
  var O = r.data_.get(f);
2380
- o.set(f, O);
2380
+ s.set(f, O);
2381
2381
  }
2382
2382
  }
2383
2383
  }
@@ -2385,21 +2385,21 @@ var Rr = /* @__PURE__ */ function() {
2385
2385
  var b = R.value, _ = b[0], C = b[1], L = r.data_.has(_);
2386
2386
  if (r.set(_, C), r.data_.has(_)) {
2387
2387
  var U = r.data_.get(_);
2388
- o.set(_, U), L || (s = !0);
2388
+ s.set(_, U), L || (o = !0);
2389
2389
  }
2390
2390
  }
2391
- if (!s)
2392
- if (r.data_.size !== o.size)
2391
+ if (!o)
2392
+ if (r.data_.size !== s.size)
2393
2393
  r.keysAtom_.reportChanged();
2394
2394
  else
2395
- for (var P = r.data_.keys(), z = o.keys(), Q = P.next(), Y = z.next(); !Q.done; ) {
2395
+ for (var P = r.data_.keys(), z = s.keys(), Q = P.next(), Y = z.next(); !Q.done; ) {
2396
2396
  if (Q.value !== Y.value) {
2397
2397
  r.keysAtom_.reportChanged();
2398
2398
  break;
2399
2399
  }
2400
2400
  Q = P.next(), Y = z.next();
2401
2401
  }
2402
- r.data_ = o;
2402
+ r.data_ = s;
2403
2403
  }), this;
2404
2404
  }, t.toString = function() {
2405
2405
  return "[object ObservableMap]";
@@ -2415,13 +2415,13 @@ var Rr = /* @__PURE__ */ function() {
2415
2415
  return this.keysAtom_.reportObserved(), this.data_.size;
2416
2416
  }
2417
2417
  }, {
2418
- key: Cr,
2418
+ key: Fr,
2419
2419
  get: function() {
2420
2420
  return "Map";
2421
2421
  }
2422
2422
  }]), e;
2423
- }(), je = /* @__PURE__ */ Ve("ObservableMap", Rr);
2424
- function cs(e) {
2423
+ }(), je = /* @__PURE__ */ Ve("ObservableMap", Cr);
2424
+ function lo(e) {
2425
2425
  if (Ze(e) || je(e))
2426
2426
  return e;
2427
2427
  if (Array.isArray(e))
@@ -2434,13 +2434,13 @@ function cs(e) {
2434
2434
  } else
2435
2435
  return W(21, e);
2436
2436
  }
2437
- var Tr, Lr, ds = {};
2438
- Tr = Symbol.iterator;
2439
- Lr = Symbol.toStringTag;
2440
- var xr = /* @__PURE__ */ function() {
2437
+ var Rr, Tr, co = {};
2438
+ Rr = Symbol.iterator;
2439
+ Tr = Symbol.toStringTag;
2440
+ var Lr = /* @__PURE__ */ function() {
2441
2441
  function e(i, n, r) {
2442
- n === void 0 && (n = Qe), r === void 0 && (r = "ObservableSet"), this.name_ = void 0, this[M] = ds, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = r, he(Set) || W(22), this.atom_ = Ji(this.name_), this.enhancer_ = function(a, o) {
2443
- return n(a, o, r);
2442
+ n === void 0 && (n = Qe), r === void 0 && (r = "ObservableSet"), this.name_ = void 0, this[M] = co, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = r, he(Set) || W(22), this.atom_ = qi(this.name_), this.enhancer_ = function(a, s) {
2443
+ return n(a, s, r);
2444
2444
  }, i && this.replace(i);
2445
2445
  }
2446
2446
  var t = e.prototype;
@@ -2449,21 +2449,21 @@ var xr = /* @__PURE__ */ function() {
2449
2449
  }, t.clear = function() {
2450
2450
  var n = this;
2451
2451
  ye(function() {
2452
- cr(function() {
2452
+ lr(function() {
2453
2453
  for (var r = Ge(n.data_.values()), a; !(a = r()).done; ) {
2454
- var o = a.value;
2455
- n.delete(o);
2454
+ var s = a.value;
2455
+ n.delete(s);
2456
2456
  }
2457
2457
  });
2458
2458
  });
2459
2459
  }, t.forEach = function(n, r) {
2460
- for (var a = Ge(this), o; !(o = a()).done; ) {
2461
- var s = o.value;
2462
- n.call(r, s, s, this);
2460
+ for (var a = Ge(this), s; !(s = a()).done; ) {
2461
+ var o = s.value;
2462
+ n.call(r, o, o, this);
2463
2463
  }
2464
2464
  }, t.add = function(n) {
2465
2465
  var r = this;
2466
- if (this.atom_, se(this)) {
2466
+ if (this.atom_, oe(this)) {
2467
2467
  var a = ue(this, {
2468
2468
  type: Ce,
2469
2469
  object: this,
@@ -2476,19 +2476,19 @@ var xr = /* @__PURE__ */ function() {
2476
2476
  ye(function() {
2477
2477
  r.data_.add(r.enhancer_(n, void 0)), r.atom_.reportChanged();
2478
2478
  });
2479
- var o = !1, s = ce(this), l = s || o ? {
2479
+ var s = !1, o = ce(this), l = o || s ? {
2480
2480
  observableKind: "set",
2481
2481
  debugObjectName: this.name_,
2482
2482
  type: Ce,
2483
2483
  object: this,
2484
2484
  newValue: n
2485
2485
  } : null;
2486
- s && de(this, l);
2486
+ o && de(this, l);
2487
2487
  }
2488
2488
  return this;
2489
2489
  }, t.delete = function(n) {
2490
2490
  var r = this;
2491
- if (se(this)) {
2491
+ if (oe(this)) {
2492
2492
  var a = ue(this, {
2493
2493
  type: zt,
2494
2494
  object: this,
@@ -2498,7 +2498,7 @@ var xr = /* @__PURE__ */ function() {
2498
2498
  return !1;
2499
2499
  }
2500
2500
  if (this.has(n)) {
2501
- var o = !1, s = ce(this), l = s || o ? {
2501
+ var s = !1, o = ce(this), l = o || s ? {
2502
2502
  observableKind: "set",
2503
2503
  debugObjectName: this.name_,
2504
2504
  type: zt,
@@ -2507,7 +2507,7 @@ var xr = /* @__PURE__ */ function() {
2507
2507
  } : null;
2508
2508
  return ye(function() {
2509
2509
  r.atom_.reportChanged(), r.data_.delete(n);
2510
- }), s && de(this, l), !0;
2510
+ }), o && de(this, l), !0;
2511
2511
  }
2512
2512
  return !1;
2513
2513
  }, t.has = function(n) {
@@ -2516,9 +2516,9 @@ var xr = /* @__PURE__ */ function() {
2516
2516
  var n = 0, r = Array.from(this.keys()), a = Array.from(this.values());
2517
2517
  return ft({
2518
2518
  next: function() {
2519
- var s = n;
2520
- return n += 1, s < a.length ? {
2521
- value: [r[s], a[s]],
2519
+ var o = n;
2520
+ return n += 1, o < a.length ? {
2521
+ value: [r[o], a[o]],
2522
2522
  done: !1
2523
2523
  } : {
2524
2524
  done: !0
@@ -2557,7 +2557,7 @@ var xr = /* @__PURE__ */ function() {
2557
2557
  return Array.from(this);
2558
2558
  }, t.toString = function() {
2559
2559
  return "[object ObservableSet]";
2560
- }, t[Tr] = function() {
2560
+ }, t[Rr] = function() {
2561
2561
  return this.values();
2562
2562
  }, Fn(e, [{
2563
2563
  key: "size",
@@ -2565,14 +2565,14 @@ var xr = /* @__PURE__ */ function() {
2565
2565
  return this.atom_.reportObserved(), this.data_.size;
2566
2566
  }
2567
2567
  }, {
2568
- key: Lr,
2568
+ key: Tr,
2569
2569
  get: function() {
2570
2570
  return "Set";
2571
2571
  }
2572
2572
  }]), e;
2573
- }(), Ye = /* @__PURE__ */ Ve("ObservableSet", xr), ti = /* @__PURE__ */ Object.create(null), ni = "remove", Pr = /* @__PURE__ */ function() {
2573
+ }(), Ye = /* @__PURE__ */ Ve("ObservableSet", Lr), ei = /* @__PURE__ */ Object.create(null), ti = "remove", xr = /* @__PURE__ */ function() {
2574
2574
  function e(i, n, r, a) {
2575
- n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = co), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = i, this.values_ = n, this.name_ = r, this.defaultAnnotation_ = a, this.keysAtom_ = new yt("ObservableObject.keys"), this.isPlainObject_ = Se(this.target_);
2575
+ n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = cs), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = i, this.values_ = n, this.name_ = r, this.defaultAnnotation_ = a, this.keysAtom_ = new yt("ObservableObject.keys"), this.isPlainObject_ = Se(this.target_);
2576
2576
  }
2577
2577
  var t = e.prototype;
2578
2578
  return t.getObservablePropValue_ = function(n) {
@@ -2581,19 +2581,19 @@ var xr = /* @__PURE__ */ function() {
2581
2581
  var a = this.values_.get(n);
2582
2582
  if (a instanceof ut)
2583
2583
  return a.set(r), !0;
2584
- if (se(this)) {
2585
- var o = ue(this, {
2584
+ if (oe(this)) {
2585
+ var s = ue(this, {
2586
2586
  type: ge,
2587
2587
  object: this.proxy_ || this.target_,
2588
2588
  name: n,
2589
2589
  newValue: r
2590
2590
  });
2591
- if (!o)
2591
+ if (!s)
2592
2592
  return null;
2593
- r = o.newValue;
2593
+ r = s.newValue;
2594
2594
  }
2595
2595
  if (r = a.prepareNewValue_(r), r !== x.UNCHANGED) {
2596
- var s = ce(this), l = !1, c = s || l ? {
2596
+ var o = ce(this), l = !1, c = o || l ? {
2597
2597
  type: ge,
2598
2598
  observableKind: "object",
2599
2599
  debugObjectName: this.name_,
@@ -2602,7 +2602,7 @@ var xr = /* @__PURE__ */ function() {
2602
2602
  name: n,
2603
2603
  newValue: r
2604
2604
  } : null;
2605
- a.setNewValue_(r), s && de(this, c);
2605
+ a.setNewValue_(r), o && de(this, c);
2606
2606
  }
2607
2607
  return !0;
2608
2608
  }, t.get_ = function(n) {
@@ -2628,41 +2628,41 @@ var xr = /* @__PURE__ */ function() {
2628
2628
  return;
2629
2629
  W(1, r.annotationType_, this.name_ + "." + n.toString());
2630
2630
  }
2631
- for (var o = this.target_; o && o !== Wt; ) {
2632
- var s = It(o, n);
2633
- if (s) {
2634
- var l = r.make_(this, n, s, o);
2631
+ for (var s = this.target_; s && s !== Wt; ) {
2632
+ var o = It(s, n);
2633
+ if (o) {
2634
+ var l = r.make_(this, n, o, s);
2635
2635
  if (l === 0)
2636
2636
  return;
2637
2637
  if (l === 1)
2638
2638
  break;
2639
2639
  }
2640
- o = Object.getPrototypeOf(o);
2640
+ s = Object.getPrototypeOf(s);
2641
2641
  }
2642
- ri(this, r, n);
2642
+ ii(this, r, n);
2643
2643
  }
2644
- }, t.extend_ = function(n, r, a, o) {
2645
- if (o === void 0 && (o = !1), a === !0 && (a = this.defaultAnnotation_), a === !1)
2646
- return this.defineProperty_(n, r, o);
2647
- var s = a.extend_(this, n, r, o);
2648
- return s && ri(this, a, n), s;
2644
+ }, t.extend_ = function(n, r, a, s) {
2645
+ if (s === void 0 && (s = !1), a === !0 && (a = this.defaultAnnotation_), a === !1)
2646
+ return this.defineProperty_(n, r, s);
2647
+ var o = a.extend_(this, n, r, s);
2648
+ return o && ii(this, a, n), o;
2649
2649
  }, t.defineProperty_ = function(n, r, a) {
2650
2650
  a === void 0 && (a = !1);
2651
2651
  try {
2652
2652
  ae();
2653
- var o = this.delete_(n);
2654
- if (!o)
2655
- return o;
2656
- if (se(this)) {
2657
- var s = ue(this, {
2653
+ var s = this.delete_(n);
2654
+ if (!s)
2655
+ return s;
2656
+ if (oe(this)) {
2657
+ var o = ue(this, {
2658
2658
  object: this.proxy_ || this.target_,
2659
2659
  name: n,
2660
2660
  type: Ce,
2661
2661
  newValue: r.value
2662
2662
  });
2663
- if (!s)
2663
+ if (!o)
2664
2664
  return null;
2665
- var l = s.newValue;
2665
+ var l = o.newValue;
2666
2666
  r.value !== l && (r = $e({}, r, {
2667
2667
  value: l
2668
2668
  }));
@@ -2674,17 +2674,17 @@ var xr = /* @__PURE__ */ function() {
2674
2674
  ve(this.target_, n, r);
2675
2675
  this.notifyPropertyAddition_(n, r.value);
2676
2676
  } finally {
2677
- oe();
2677
+ se();
2678
2678
  }
2679
2679
  return !0;
2680
- }, t.defineObservableProperty_ = function(n, r, a, o) {
2681
- o === void 0 && (o = !1);
2680
+ }, t.defineObservableProperty_ = function(n, r, a, s) {
2681
+ s === void 0 && (s = !1);
2682
2682
  try {
2683
2683
  ae();
2684
- var s = this.delete_(n);
2685
- if (!s)
2686
- return s;
2687
- if (se(this)) {
2684
+ var o = this.delete_(n);
2685
+ if (!o)
2686
+ return o;
2687
+ if (oe(this)) {
2688
2688
  var l = ue(this, {
2689
2689
  object: this.proxy_ || this.target_,
2690
2690
  name: n,
@@ -2695,13 +2695,13 @@ var xr = /* @__PURE__ */ function() {
2695
2695
  return null;
2696
2696
  r = l.newValue;
2697
2697
  }
2698
- var c = ii(n), f = {
2698
+ var c = ni(n), f = {
2699
2699
  configurable: x.safeDescriptors ? this.isPlainObject_ : !0,
2700
2700
  enumerable: !0,
2701
2701
  get: c.get,
2702
2702
  set: c.set
2703
2703
  };
2704
- if (o) {
2704
+ if (s) {
2705
2705
  if (!Reflect.defineProperty(this.target_, n, f))
2706
2706
  return !1;
2707
2707
  } else
@@ -2709,28 +2709,28 @@ var xr = /* @__PURE__ */ function() {
2709
2709
  var v = new ze(r, a, "ObservableObject.key", !1);
2710
2710
  this.values_.set(n, v), this.notifyPropertyAddition_(n, v.value_);
2711
2711
  } finally {
2712
- oe();
2712
+ se();
2713
2713
  }
2714
2714
  return !0;
2715
2715
  }, t.defineComputedProperty_ = function(n, r, a) {
2716
2716
  a === void 0 && (a = !1);
2717
2717
  try {
2718
2718
  ae();
2719
- var o = this.delete_(n);
2720
- if (!o)
2721
- return o;
2722
- if (se(this)) {
2723
- var s = ue(this, {
2719
+ var s = this.delete_(n);
2720
+ if (!s)
2721
+ return s;
2722
+ if (oe(this)) {
2723
+ var o = ue(this, {
2724
2724
  object: this.proxy_ || this.target_,
2725
2725
  name: n,
2726
2726
  type: Ce,
2727
2727
  newValue: void 0
2728
2728
  });
2729
- if (!s)
2729
+ if (!o)
2730
2730
  return null;
2731
2731
  }
2732
2732
  r.name || (r.name = "ObservableObject.key"), r.context = this.proxy_ || this.target_;
2733
- var l = ii(n), c = {
2733
+ var l = ni(n), c = {
2734
2734
  configurable: x.safeDescriptors ? this.isPlainObject_ : !0,
2735
2735
  enumerable: !1,
2736
2736
  get: l.get,
@@ -2743,23 +2743,23 @@ var xr = /* @__PURE__ */ function() {
2743
2743
  ve(this.target_, n, c);
2744
2744
  this.values_.set(n, new ut(r)), this.notifyPropertyAddition_(n, void 0);
2745
2745
  } finally {
2746
- oe();
2746
+ se();
2747
2747
  }
2748
2748
  return !0;
2749
2749
  }, t.delete_ = function(n, r) {
2750
2750
  if (r === void 0 && (r = !1), !be(this.target_, n))
2751
2751
  return !0;
2752
- if (se(this)) {
2752
+ if (oe(this)) {
2753
2753
  var a = ue(this, {
2754
2754
  object: this.proxy_ || this.target_,
2755
2755
  name: n,
2756
- type: ni
2756
+ type: ti
2757
2757
  });
2758
2758
  if (!a)
2759
2759
  return null;
2760
2760
  }
2761
2761
  try {
2762
- var o, s;
2762
+ var s, o;
2763
2763
  ae();
2764
2764
  var l = ce(this), c = !1, f = this.values_.get(n), v = void 0;
2765
2765
  if (!f && (l || c)) {
@@ -2771,9 +2771,9 @@ var xr = /* @__PURE__ */ function() {
2771
2771
  return !1;
2772
2772
  } else
2773
2773
  delete this.target_[n];
2774
- if (f && (this.values_.delete(n), f instanceof ze && (v = f.value_), vr(f)), this.keysAtom_.reportChanged(), (o = this.pendingKeys_) == null || (s = o.get(n)) == null || s.set(n in this.target_), l || c) {
2774
+ if (f && (this.values_.delete(n), f instanceof ze && (v = f.value_), mr(f)), this.keysAtom_.reportChanged(), (s = this.pendingKeys_) == null || (o = s.get(n)) == null || o.set(n in this.target_), l || c) {
2775
2775
  var A = {
2776
- type: ni,
2776
+ type: ti,
2777
2777
  observableKind: "object",
2778
2778
  object: this.proxy_ || this.target_,
2779
2779
  debugObjectName: this.name_,
@@ -2783,7 +2783,7 @@ var xr = /* @__PURE__ */ function() {
2783
2783
  l && de(this, A);
2784
2784
  }
2785
2785
  } finally {
2786
- oe();
2786
+ se();
2787
2787
  }
2788
2788
  return !0;
2789
2789
  }, t.observe_ = function(n, r) {
@@ -2791,9 +2791,9 @@ var xr = /* @__PURE__ */ function() {
2791
2791
  }, t.intercept_ = function(n) {
2792
2792
  return Ot(this, n);
2793
2793
  }, t.notifyPropertyAddition_ = function(n, r) {
2794
- var a, o, s = ce(this), l = !1;
2795
- if (s || l) {
2796
- var c = s || l ? {
2794
+ var a, s, o = ce(this), l = !1;
2795
+ if (o || l) {
2796
+ var c = o || l ? {
2797
2797
  type: Ce,
2798
2798
  observableKind: "object",
2799
2799
  debugObjectName: this.name_,
@@ -2801,9 +2801,9 @@ var xr = /* @__PURE__ */ function() {
2801
2801
  name: n,
2802
2802
  newValue: r
2803
2803
  } : null;
2804
- s && de(this, c);
2804
+ o && de(this, c);
2805
2805
  }
2806
- (a = this.pendingKeys_) == null || (o = a.get(n)) == null || o.set(!0), this.keysAtom_.reportChanged();
2806
+ (a = this.pendingKeys_) == null || (s = a.get(n)) == null || s.set(!0), this.keysAtom_.reportChanged();
2807
2807
  }, t.ownKeys_ = function() {
2808
2808
  return this.keysAtom_.reportObserved(), Ke(this.target_);
2809
2809
  }, t.keys_ = function() {
@@ -2814,12 +2814,12 @@ function Et(e, t) {
2814
2814
  var i;
2815
2815
  if (be(e, M))
2816
2816
  return e;
2817
- var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", r = new Pr(e, /* @__PURE__ */ new Map(), String(n), bo(t));
2817
+ var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", r = new xr(e, /* @__PURE__ */ new Map(), String(n), _s(t));
2818
2818
  return pt(e, M, r), e;
2819
2819
  }
2820
- var fs = /* @__PURE__ */ Ve("ObservableObjectAdministration", Pr);
2821
- function ii(e) {
2822
- return ti[e] || (ti[e] = {
2820
+ var fo = /* @__PURE__ */ Ve("ObservableObjectAdministration", xr);
2821
+ function ni(e) {
2822
+ return ei[e] || (ei[e] = {
2823
2823
  get: function() {
2824
2824
  return this[M].getObservablePropValue_(e);
2825
2825
  },
@@ -2829,48 +2829,48 @@ function ii(e) {
2829
2829
  });
2830
2830
  }
2831
2831
  function dt(e) {
2832
- return Qt(e) ? fs(e[M]) : !1;
2832
+ return Qt(e) ? fo(e[M]) : !1;
2833
2833
  }
2834
- function ri(e, t, i) {
2834
+ function ii(e, t, i) {
2835
2835
  var n;
2836
2836
  (n = e.target_[me]) == null || delete n[i];
2837
2837
  }
2838
- var hs = /* @__PURE__ */ Ir(0), hn = 0, Dr = function() {
2838
+ var ho = /* @__PURE__ */ Dr(0), hn = 0, Pr = function() {
2839
2839
  };
2840
- function ms(e, t) {
2840
+ function mo(e, t) {
2841
2841
  Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
2842
2842
  }
2843
- ms(Dr, Array.prototype);
2843
+ mo(Pr, Array.prototype);
2844
2844
  var Dn = /* @__PURE__ */ function(e, t, i) {
2845
- qi(n, e);
2846
- function n(a, o, s, l) {
2845
+ Qi(n, e);
2846
+ function n(a, s, o, l) {
2847
2847
  var c;
2848
- s === void 0 && (s = "ObservableArray"), l === void 0 && (l = !1), c = e.call(this) || this;
2849
- var f = new Pn(s, o, l, !0);
2850
- if (f.proxy_ = ln(c), $i(ln(c), M, f), a && a.length) {
2848
+ o === void 0 && (o = "ObservableArray"), l === void 0 && (l = !1), c = e.call(this) || this;
2849
+ var f = new Pn(o, s, l, !0);
2850
+ if (f.proxy_ = ln(c), Ki(ln(c), M, f), a && a.length) {
2851
2851
  var v = bt(!0);
2852
2852
  c.spliceWithArray(0, 0, a), St(v);
2853
2853
  }
2854
- return Object.defineProperty(ln(c), "0", hs), c;
2854
+ return Object.defineProperty(ln(c), "0", ho), c;
2855
2855
  }
2856
2856
  var r = n.prototype;
2857
2857
  return r.concat = function() {
2858
2858
  this[M].atom_.reportObserved();
2859
- for (var o = arguments.length, s = new Array(o), l = 0; l < o; l++)
2860
- s[l] = arguments[l];
2859
+ for (var s = arguments.length, o = new Array(s), l = 0; l < s; l++)
2860
+ o[l] = arguments[l];
2861
2861
  return Array.prototype.concat.apply(
2862
2862
  this.slice(),
2863
2863
  //@ts-ignore
2864
- s.map(function(c) {
2864
+ o.map(function(c) {
2865
2865
  return Zt(c) ? c.slice() : c;
2866
2866
  })
2867
2867
  );
2868
2868
  }, r[i] = function() {
2869
- var a = this, o = 0;
2869
+ var a = this, s = 0;
2870
2870
  return ft({
2871
2871
  next: function() {
2872
- return o < a.length ? {
2873
- value: a[o++],
2872
+ return s < a.length ? {
2873
+ value: a[s++],
2874
2874
  done: !1
2875
2875
  } : {
2876
2876
  done: !0,
@@ -2883,8 +2883,8 @@ var Dn = /* @__PURE__ */ function(e, t, i) {
2883
2883
  get: function() {
2884
2884
  return this[M].getArrayLength_();
2885
2885
  },
2886
- set: function(o) {
2887
- this[M].setArrayLength_(o);
2886
+ set: function(s) {
2887
+ this[M].setArrayLength_(s);
2888
2888
  }
2889
2889
  }, {
2890
2890
  key: t,
@@ -2892,12 +2892,12 @@ var Dn = /* @__PURE__ */ function(e, t, i) {
2892
2892
  return "Array";
2893
2893
  }
2894
2894
  }]), n;
2895
- }(Dr, Symbol.toStringTag, Symbol.iterator);
2895
+ }(Pr, Symbol.toStringTag, Symbol.iterator);
2896
2896
  Object.entries(Gt).forEach(function(e) {
2897
2897
  var t = e[0], i = e[1];
2898
2898
  t !== "concat" && pt(Dn.prototype, t, i);
2899
2899
  });
2900
- function Ir(e) {
2900
+ function Dr(e) {
2901
2901
  return {
2902
2902
  enumerable: !1,
2903
2903
  configurable: !0,
@@ -2909,18 +2909,18 @@ function Ir(e) {
2909
2909
  }
2910
2910
  };
2911
2911
  }
2912
- function vs(e) {
2913
- ve(Dn.prototype, "" + e, Ir(e));
2912
+ function vo(e) {
2913
+ ve(Dn.prototype, "" + e, Dr(e));
2914
2914
  }
2915
- function Vr(e) {
2915
+ function Ir(e) {
2916
2916
  if (e > hn) {
2917
2917
  for (var t = hn; t < e + 100; t++)
2918
- vs(t);
2918
+ vo(t);
2919
2919
  hn = e;
2920
2920
  }
2921
2921
  }
2922
- Vr(1e3);
2923
- function ps(e, t, i) {
2922
+ Ir(1e3);
2923
+ function po(e, t, i) {
2924
2924
  return new Dn(e, t, i);
2925
2925
  }
2926
2926
  function De(e, t) {
@@ -2947,9 +2947,9 @@ function De(e, t) {
2947
2947
  return e[M];
2948
2948
  W(28);
2949
2949
  }
2950
- function jr(e, t) {
2950
+ function Vr(e, t) {
2951
2951
  if (e || W(29), t !== void 0)
2952
- return jr(De(e, t));
2952
+ return Vr(De(e, t));
2953
2953
  if (Cn(e) || Ht(e) || Mt(e) || je(e) || Ye(e))
2954
2954
  return e;
2955
2955
  if (e[M])
@@ -2963,11 +2963,11 @@ function _n(e, t) {
2963
2963
  else {
2964
2964
  if (Ln(e))
2965
2965
  return e.name;
2966
- dt(e) || je(e) || Ye(e) ? i = jr(e) : i = De(e);
2966
+ dt(e) || je(e) || Ye(e) ? i = Vr(e) : i = De(e);
2967
2967
  }
2968
2968
  return i.name_;
2969
2969
  }
2970
- var ai = Wt.toString;
2970
+ var ri = Wt.toString;
2971
2971
  function In(e, t, i) {
2972
2972
  return i === void 0 && (i = -1), bn(e, t, i);
2973
2973
  }
@@ -2981,10 +2981,10 @@ function bn(e, t, i, n, r) {
2981
2981
  var a = typeof e;
2982
2982
  if (a !== "function" && a !== "object" && typeof t != "object")
2983
2983
  return !1;
2984
- var o = ai.call(e);
2985
- if (o !== ai.call(t))
2984
+ var s = ri.call(e);
2985
+ if (s !== ri.call(t))
2986
2986
  return !1;
2987
- switch (o) {
2987
+ switch (s) {
2988
2988
  case "[object RegExp]":
2989
2989
  case "[object String]":
2990
2990
  return "" + e == "" + t;
@@ -3000,9 +3000,9 @@ function bn(e, t, i, n, r) {
3000
3000
  i >= 0 && i++;
3001
3001
  break;
3002
3002
  }
3003
- e = oi(e), t = oi(t);
3004
- var s = o === "[object Array]";
3005
- if (!s) {
3003
+ e = ai(e), t = ai(t);
3004
+ var o = s === "[object Array]";
3005
+ if (!o) {
3006
3006
  if (typeof e != "object" || typeof t != "object")
3007
3007
  return !1;
3008
3008
  var l = e.constructor, c = t.constructor;
@@ -3015,7 +3015,7 @@ function bn(e, t, i, n, r) {
3015
3015
  for (var f = n.length; f--; )
3016
3016
  if (n[f] === e)
3017
3017
  return r[f] === t;
3018
- if (n.push(e), r.push(t), s) {
3018
+ if (n.push(e), r.push(t), o) {
3019
3019
  if (f = e.length, f !== t.length)
3020
3020
  return !1;
3021
3021
  for (; f--; )
@@ -3031,21 +3031,21 @@ function bn(e, t, i, n, r) {
3031
3031
  }
3032
3032
  return n.pop(), r.pop(), !0;
3033
3033
  }
3034
- function oi(e) {
3034
+ function ai(e) {
3035
3035
  return Zt(e) ? e.slice() : Ze(e) || je(e) || gt(e) || Ye(e) ? Array.from(e.entries()) : e;
3036
3036
  }
3037
3037
  function ft(e) {
3038
- return e[Symbol.iterator] = gs, e;
3038
+ return e[Symbol.iterator] = go, e;
3039
3039
  }
3040
- function gs() {
3040
+ function go() {
3041
3041
  return this;
3042
3042
  }
3043
3043
  ["Symbol", "Map", "Set"].forEach(function(e) {
3044
- var t = Mi();
3044
+ var t = Ui();
3045
3045
  typeof t[e] == "undefined" && W("MobX requires global '" + e + "' to be available or polyfilled");
3046
3046
  });
3047
3047
  typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
3048
- spy: jo,
3048
+ spy: Vs,
3049
3049
  extras: {
3050
3050
  getDebugName: _n
3051
3051
  },
@@ -3063,7 +3063,7 @@ class Xt extends Error {
3063
3063
  };
3064
3064
  }
3065
3065
  }
3066
- class ks extends Xt {
3066
+ class ko extends Xt {
3067
3067
  constructor(t) {
3068
3068
  super(
3069
3069
  "RESOURCE_NOT_FOUND_ERROR",
@@ -3072,7 +3072,7 @@ class ks extends Xt {
3072
3072
  );
3073
3073
  }
3074
3074
  }
3075
- class ys extends Xt {
3075
+ class yo extends Xt {
3076
3076
  constructor(t) {
3077
3077
  var i;
3078
3078
  super(
@@ -3087,7 +3087,7 @@ class rc extends Xt {
3087
3087
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
3088
3088
  }
3089
3089
  }
3090
- class _s extends Xt {
3090
+ class _o extends Xt {
3091
3091
  constructor(t) {
3092
3092
  super(
3093
3093
  "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
@@ -3115,18 +3115,18 @@ class _s extends Xt {
3115
3115
  );
3116
3116
  }
3117
3117
  }
3118
- const bs = ["account"];
3118
+ const bo = ["account"];
3119
3119
  function rt() {
3120
- bs.forEach((e) => {
3120
+ bo.forEach((e) => {
3121
3121
  if (e === void 0)
3122
- throw new _s(e);
3122
+ throw new _o(e);
3123
3123
  });
3124
3124
  }
3125
- class Ss {
3125
+ class So {
3126
3126
  constructor() {
3127
3127
  G(this, "_config", null);
3128
3128
  G(this, "_account");
3129
- rs(
3129
+ io(
3130
3130
  this,
3131
3131
  {},
3132
3132
  { name: "NizzaConfigManager", autoBind: !0 }
@@ -3157,7 +3157,7 @@ class Ss {
3157
3157
  this._account = t;
3158
3158
  }
3159
3159
  }
3160
- var Ur = { exports: {} };
3160
+ var jr = { exports: {} };
3161
3161
  /*!
3162
3162
  * EventEmitter2
3163
3163
  * https://github.com/hij1nx/EventEmitter2
@@ -3169,7 +3169,7 @@ var Ur = { exports: {} };
3169
3169
  (function(i) {
3170
3170
  var n = Object.hasOwnProperty, r = Array.isArray ? Array.isArray : function(d) {
3171
3171
  return Object.prototype.toString.call(d) === "[object Array]";
3172
- }, a = 10, o = typeof process == "object" && typeof process.nextTick == "function", s = typeof Symbol == "function", l = typeof Reflect == "object", c = typeof setImmediate == "function", f = c ? setImmediate : setTimeout, v = s ? l && typeof Reflect.ownKeys == "function" ? Reflect.ownKeys : function(u) {
3172
+ }, a = 10, s = typeof process == "object" && typeof process.nextTick == "function", o = typeof Symbol == "function", l = typeof Reflect == "object", c = typeof setImmediate == "function", f = c ? setImmediate : setTimeout, v = o ? l && typeof Reflect.ownKeys == "function" ? Reflect.ownKeys : function(u) {
3173
3173
  var d = Object.getOwnPropertyNames(u);
3174
3174
  return d.push.apply(d, Object.getOwnPropertySymbols(u)), d;
3175
3175
  } : Object.keys;
@@ -3443,7 +3443,7 @@ var Ur = { exports: {} };
3443
3443
  }
3444
3444
  if (m || y || p) {
3445
3445
  var E = d, N = d._origin || d;
3446
- if (y && !o)
3446
+ if (y && !s)
3447
3447
  throw Error("process.nextTick is not supported");
3448
3448
  p === i && (p = d.constructor.name === "AsyncFunction"), d = function() {
3449
3449
  var w = arguments, D = this, te = this.event;
@@ -3527,7 +3527,7 @@ var Ur = { exports: {} };
3527
3527
  if (u === "newListener" && !this._newListener && !this._events.newListener)
3528
3528
  return !1;
3529
3529
  if (h && (d = u, u !== "newListener" && u !== "removeListener" && typeof u == "object")) {
3530
- if (p = u.length, s) {
3530
+ if (p = u.length, o) {
3531
3531
  for (y = 0; y < p; y++)
3532
3532
  if (typeof u[y] == "symbol") {
3533
3533
  E = !0;
@@ -3603,7 +3603,7 @@ var Ur = { exports: {} };
3603
3603
  if (u === "newListener" && !this._newListener && !this._events.newListener)
3604
3604
  return Promise.resolve([!1]);
3605
3605
  if (d && (h = u, u !== "newListener" && u !== "removeListener" && typeof u == "object")) {
3606
- if (y = u.length, s) {
3606
+ if (y = u.length, o) {
3607
3607
  for (S = 0; S < y; S++)
3608
3608
  if (typeof u[S] == "symbol") {
3609
3609
  m = !0;
@@ -3866,12 +3866,12 @@ var Ur = { exports: {} };
3866
3866
  return j;
3867
3867
  }) : e.exports = j;
3868
3868
  })();
3869
- })(Ur);
3870
- var Ns = Ur.exports;
3871
- class Os {
3869
+ })(jr);
3870
+ var No = jr.exports;
3871
+ class Oo {
3872
3872
  constructor() {
3873
3873
  G(this, "emitter");
3874
- this.emitter = new Ns.EventEmitter2({
3874
+ this.emitter = new No.EventEmitter2({
3875
3875
  wildcard: !0,
3876
3876
  delimiter: ":"
3877
3877
  });
@@ -3898,14 +3898,14 @@ class Os {
3898
3898
  }
3899
3899
  }
3900
3900
  const Ee = class {
3901
+ // readonly globalAtomStore = createStore();
3901
3902
  constructor() {
3902
3903
  G(this, "_productDataSource", null);
3903
- G(this, "_configManager", new Ss());
3904
- G(this, "_eventBus", new Os());
3904
+ G(this, "_configManager", new So());
3905
+ G(this, "_eventBus", new Oo());
3905
3906
  G(this, "instanceId", Ra());
3906
3907
  G(this, "log", xa);
3907
- G(this, "globalAtomStore", Li());
3908
- is(
3908
+ no(
3909
3909
  this,
3910
3910
  {
3911
3911
  config: Ae,
@@ -3947,10 +3947,10 @@ const Ee = class {
3947
3947
  };
3948
3948
  let Pt = Ee;
3949
3949
  G(Pt, "_instance");
3950
- const Vn = Pt.instance(), At = Vn.log, Mr = At.levels.INFO;
3950
+ const Ur = Pt.instance(), At = Ur.log, Mr = At.levels.INFO;
3951
3951
  At.setDefaultLevel(Mr);
3952
- ji.reg(At);
3953
- ji.apply(At, {
3952
+ Vi.reg(At);
3953
+ Vi.apply(At, {
3954
3954
  template: "[%t] %l (%n)",
3955
3955
  nameFormatter: (e) => {
3956
3956
  var t;
@@ -3958,22 +3958,22 @@ ji.apply(At, {
3958
3958
  },
3959
3959
  timestampFormatter: () => (/* @__PURE__ */ new Date()).toTimeString().slice(0, 8)
3960
3960
  });
3961
- const Br = {}, ac = Fs("main");
3962
- function ws(e) {
3961
+ const Br = {}, ac = Fo("main");
3962
+ function wo(e) {
3963
3963
  const t = At.getLogger(e);
3964
3964
  return t.setLevel(Mr), t;
3965
3965
  }
3966
- function Es(e, t) {
3966
+ function Eo(e, t) {
3967
3967
  Br[e] = t;
3968
3968
  }
3969
- function As(e) {
3969
+ function Ao(e) {
3970
3970
  return Br[e];
3971
3971
  }
3972
- function Fs(e) {
3973
- const t = ws(e);
3974
- return Es(e, t), As(e);
3972
+ function Fo(e) {
3973
+ const t = wo(e);
3974
+ return Eo(e, t), Ao(e);
3975
3975
  }
3976
- class Cs {
3976
+ class Co {
3977
3977
  constructor(t) {
3978
3978
  G(this, "aggregate");
3979
3979
  G(this, "_numSetPropsApplied", 0);
@@ -3988,12 +3988,12 @@ class Cs {
3988
3988
  return this._numSetPropsApplied === 1;
3989
3989
  }
3990
3990
  }
3991
- function Rs(e) {
3992
- return new Cs(e);
3993
- }
3994
- class oc {
3991
+ function Ro(e) {
3992
+ return new Co(e);
3995
3993
  }
3996
3994
  class sc {
3995
+ }
3996
+ class oc {
3997
3997
  constructor(t) {
3998
3998
  G(this, "_value");
3999
3999
  t !== void 0 && (this._value = t);
@@ -4002,10 +4002,10 @@ class sc {
4002
4002
  return this._value;
4003
4003
  }
4004
4004
  }
4005
- var Gr = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.VTEX_IO = "VTEX-IO", e.VTEX_CMS = "PORTAL-VTEX", e.PLATFORM = "PLATFORM", e.UNKNOWN = "UNKNOWN", e))(Gr || {}), Ts = /* @__PURE__ */ ((e) => (e.PLATFORM = "platform_module", e.ADENDA = "subscription_module", e.APP_STORE = "app_store", e))(Ts || {}), zr = /* @__PURE__ */ ((e) => (e.ACTIVE = "active_contract", e.INACTIVE = "inactive_contract", e))(zr || {}), Ls = /* @__PURE__ */ ((e) => (e.LITE = "lite", e.STANDARD = "standard", e.PRO = "pro", e))(Ls || {}), xs = /* @__PURE__ */ ((e) => (e.LITE = "PLAN_LITE", e.STANDARD = "PLAN_ESTANDAR", e.PRO = "PLAN_PRO", e.NONE = "NO_PLAN", e))(xs || {}), Ps = /* @__PURE__ */ ((e) => (e.PAST = "past", e.LIVE = "live", e.FUTURE = "future", e))(Ps || {});
4006
- class jn {
4005
+ var Gr = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.VTEX_IO = "VTEX-IO", e.VTEX_CMS = "PORTAL-VTEX", e.PLATFORM = "PLATFORM", e.UNKNOWN = "UNKNOWN", e))(Gr || {}), To = /* @__PURE__ */ ((e) => (e.PLATFORM = "platform_module", e.ADENDA = "subscription_module", e.APP_STORE = "app_store", e))(To || {}), zr = /* @__PURE__ */ ((e) => (e.ACTIVE = "active_contract", e.INACTIVE = "inactive_contract", e))(zr || {}), Lo = /* @__PURE__ */ ((e) => (e.LITE = "lite", e.STANDARD = "standard", e.PRO = "pro", e))(Lo || {}), xo = /* @__PURE__ */ ((e) => (e.LITE = "PLAN_LITE", e.STANDARD = "PLAN_ESTANDAR", e.PRO = "PLAN_PRO", e.NONE = "NO_PLAN", e))(xo || {}), Po = /* @__PURE__ */ ((e) => (e.PAST = "past", e.LIVE = "live", e.FUTURE = "future", e))(Po || {});
4006
+ class Vn {
4007
4007
  constructor(t) {
4008
- G(this, "root", Rs(this));
4008
+ G(this, "root", Ro(this));
4009
4009
  G(this, "id");
4010
4010
  G(this, "account");
4011
4011
  G(this, "accountType", Gr.UNKNOWN);
@@ -4037,7 +4037,7 @@ class jn {
4037
4037
  ...n,
4038
4038
  createdAt: new Date(Number(i))
4039
4039
  };
4040
- return new jn(r);
4040
+ return new Vn(r);
4041
4041
  }
4042
4042
  toPrimitives() {
4043
4043
  const { root: t, createdAt: i, ...n } = this;
@@ -4047,16 +4047,16 @@ class jn {
4047
4047
  };
4048
4048
  }
4049
4049
  }
4050
- const Ds = `${Aa.apiUrls.restV1}/accounts/v2`;
4051
- class Is {
4050
+ const Do = `${Aa.apiUrls.restV1}/accounts/v2`;
4051
+ class Io {
4052
4052
  async get(t) {
4053
- const i = `${Ds}/${t}`, { data: n } = await Pi({
4053
+ const i = `${Do}/${t}`, { data: n } = await xi({
4054
4054
  url: i
4055
4055
  });
4056
- return n ? jn.toDomain(n) : null;
4056
+ return n ? Vn.toDomain(n) : null;
4057
4057
  }
4058
4058
  }
4059
- class Vs {
4059
+ class Vo {
4060
4060
  constructor(t) {
4061
4061
  this.accountRepository = t;
4062
4062
  }
@@ -4064,15 +4064,15 @@ class Vs {
4064
4064
  try {
4065
4065
  const i = await this.accountRepository.get(t);
4066
4066
  if (!i)
4067
- throw new ks(t);
4067
+ throw new ko(t);
4068
4068
  return i;
4069
4069
  } catch (i) {
4070
- throw new ys(i);
4070
+ throw new yo(i);
4071
4071
  }
4072
4072
  }
4073
4073
  }
4074
- const js = new Is(), Kr = new Vs(js);
4075
- class Un {
4074
+ const jo = new Io(), Kr = new Vo(jo);
4075
+ class jn {
4076
4076
  constructor() {
4077
4077
  this.listeners = [], this.subscribe = this.subscribe.bind(this);
4078
4078
  }
@@ -4090,16 +4090,16 @@ class Un {
4090
4090
  }
4091
4091
  }
4092
4092
  const Kt = typeof window == "undefined" || "Deno" in window;
4093
- function Us() {
4093
+ function Uo() {
4094
4094
  }
4095
4095
  function si(e) {
4096
4096
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
4097
4097
  }
4098
- function Ms(e, t) {
4098
+ function Mo(e, t) {
4099
4099
  return Math.max(e + (t || 0) - Date.now(), 0);
4100
4100
  }
4101
- function Bs(e, t, i) {
4102
- return Gs(e) ? typeof t == "function" ? {
4101
+ function Bo(e, t, i) {
4102
+ return Go(e) ? typeof t == "function" ? {
4103
4103
  ...i,
4104
4104
  queryKey: e,
4105
4105
  queryFn: t
@@ -4111,19 +4111,19 @@ function Bs(e, t, i) {
4111
4111
  function $r(e, t) {
4112
4112
  if (e === t)
4113
4113
  return e;
4114
- const i = li(e) && li(t);
4115
- if (i || ci(e) && ci(t)) {
4116
- const n = i ? e.length : Object.keys(e).length, r = i ? t : Object.keys(t), a = r.length, o = i ? [] : {};
4117
- let s = 0;
4114
+ const i = ui(e) && ui(t);
4115
+ if (i || li(e) && li(t)) {
4116
+ const n = i ? e.length : Object.keys(e).length, r = i ? t : Object.keys(t), a = r.length, s = i ? [] : {};
4117
+ let o = 0;
4118
4118
  for (let l = 0; l < a; l++) {
4119
4119
  const c = i ? l : r[l];
4120
- o[c] = $r(e[c], t[c]), o[c] === e[c] && s++;
4120
+ s[c] = $r(e[c], t[c]), s[c] === e[c] && o++;
4121
4121
  }
4122
- return n === a && s === n ? e : o;
4122
+ return n === a && o === n ? e : s;
4123
4123
  }
4124
4124
  return t;
4125
4125
  }
4126
- function ui(e, t) {
4126
+ function oi(e, t) {
4127
4127
  if (e && !t || t && !e)
4128
4128
  return !1;
4129
4129
  for (const i in e)
@@ -4131,36 +4131,36 @@ function ui(e, t) {
4131
4131
  return !1;
4132
4132
  return !0;
4133
4133
  }
4134
- function li(e) {
4134
+ function ui(e) {
4135
4135
  return Array.isArray(e) && e.length === Object.keys(e).length;
4136
4136
  }
4137
- function ci(e) {
4138
- if (!di(e))
4137
+ function li(e) {
4138
+ if (!ci(e))
4139
4139
  return !1;
4140
4140
  const t = e.constructor;
4141
4141
  if (typeof t == "undefined")
4142
4142
  return !0;
4143
4143
  const i = t.prototype;
4144
- return !(!di(i) || !i.hasOwnProperty("isPrototypeOf"));
4144
+ return !(!ci(i) || !i.hasOwnProperty("isPrototypeOf"));
4145
4145
  }
4146
- function di(e) {
4146
+ function ci(e) {
4147
4147
  return Object.prototype.toString.call(e) === "[object Object]";
4148
4148
  }
4149
- function Gs(e) {
4149
+ function Go(e) {
4150
4150
  return Array.isArray(e);
4151
4151
  }
4152
- function zs(e) {
4152
+ function zo(e) {
4153
4153
  return new Promise((t) => {
4154
4154
  setTimeout(t, e);
4155
4155
  });
4156
4156
  }
4157
- function fi(e) {
4158
- zs(0).then(e);
4157
+ function di(e) {
4158
+ zo(0).then(e);
4159
4159
  }
4160
- function hi(e, t, i) {
4160
+ function fi(e, t, i) {
4161
4161
  return i.isDataEqual != null && i.isDataEqual(e, t) ? e : typeof i.structuralSharing == "function" ? i.structuralSharing(e, t) : i.structuralSharing !== !1 ? $r(e, t) : t;
4162
4162
  }
4163
- class Ks extends Un {
4163
+ class Ko extends jn {
4164
4164
  constructor() {
4165
4165
  super(), this.setup = (t) => {
4166
4166
  if (!Kt && window.addEventListener) {
@@ -4198,8 +4198,8 @@ class Ks extends Un {
4198
4198
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
4199
4199
  }
4200
4200
  }
4201
- const $s = new Ks();
4202
- class Ws extends Un {
4201
+ const $o = new Ko();
4202
+ class Wo extends jn {
4203
4203
  constructor() {
4204
4204
  super(), this.setup = (t) => {
4205
4205
  if (!Kt && window.addEventListener) {
@@ -4237,19 +4237,19 @@ class Ws extends Un {
4237
4237
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
4238
4238
  }
4239
4239
  }
4240
- const Qs = new Ws();
4241
- function qs(e) {
4242
- return (e != null ? e : "online") === "online" ? Qs.isOnline() : !0;
4240
+ const Qo = new Wo();
4241
+ function qo(e) {
4242
+ return (e != null ? e : "online") === "online" ? Qo.isOnline() : !0;
4243
4243
  }
4244
- class Js {
4244
+ class Jo {
4245
4245
  constructor(t) {
4246
4246
  this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
4247
4247
  }
4248
4248
  }
4249
- function Hs(e) {
4250
- return e instanceof Js;
4249
+ function Ho(e) {
4250
+ return e instanceof Jo;
4251
4251
  }
4252
- function Zs() {
4252
+ function Zo() {
4253
4253
  let e = [], t = 0, i = (f) => {
4254
4254
  f();
4255
4255
  }, n = (f) => {
@@ -4261,20 +4261,20 @@ function Zs() {
4261
4261
  try {
4262
4262
  v = f();
4263
4263
  } finally {
4264
- t--, t || s();
4264
+ t--, t || o();
4265
4265
  }
4266
4266
  return v;
4267
4267
  }, a = (f) => {
4268
- t ? e.push(f) : fi(() => {
4268
+ t ? e.push(f) : di(() => {
4269
4269
  i(f);
4270
4270
  });
4271
- }, o = (f) => (...v) => {
4271
+ }, s = (f) => (...v) => {
4272
4272
  a(() => {
4273
4273
  f(...v);
4274
4274
  });
4275
- }, s = () => {
4275
+ }, o = () => {
4276
4276
  const f = e;
4277
- e = [], f.length && fi(() => {
4277
+ e = [], f.length && di(() => {
4278
4278
  n(() => {
4279
4279
  f.forEach((v) => {
4280
4280
  i(v);
@@ -4284,7 +4284,7 @@ function Zs() {
4284
4284
  };
4285
4285
  return {
4286
4286
  batch: r,
4287
- batchCalls: o,
4287
+ batchCalls: s,
4288
4288
  schedule: a,
4289
4289
  setNotifyFunction: (f) => {
4290
4290
  i = f;
@@ -4294,8 +4294,8 @@ function Zs() {
4294
4294
  }
4295
4295
  };
4296
4296
  }
4297
- const at = Zs();
4298
- class Xs extends Un {
4297
+ const at = Zo();
4298
+ class Xo extends jn {
4299
4299
  constructor(t, i) {
4300
4300
  super(), this.client = t, this.options = i, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(i);
4301
4301
  }
@@ -4303,7 +4303,7 @@ class Xs extends Un {
4303
4303
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
4304
4304
  }
4305
4305
  onSubscribe() {
4306
- this.listeners.length === 1 && (this.currentQuery.addObserver(this), mi(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
4306
+ this.listeners.length === 1 && (this.currentQuery.addObserver(this), hi(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
4307
4307
  }
4308
4308
  onUnsubscribe() {
4309
4309
  this.listeners.length || this.destroy();
@@ -4319,7 +4319,7 @@ class Xs extends Un {
4319
4319
  }
4320
4320
  setOptions(t, i) {
4321
4321
  const n = this.options, r = this.currentQuery;
4322
- if (this.options = this.client.defaultQueryOptions(t), ui(n, this.options) || this.client.getQueryCache().notify({
4322
+ if (this.options = this.client.defaultQueryOptions(t), oi(n, this.options) || this.client.getQueryCache().notify({
4323
4323
  type: "observerOptionsUpdated",
4324
4324
  query: this.currentQuery,
4325
4325
  observer: this
@@ -4327,9 +4327,9 @@ class Xs extends Un {
4327
4327
  throw new Error("Expected enabled to be a boolean");
4328
4328
  this.options.queryKey || (this.options.queryKey = n.queryKey), this.updateQuery();
4329
4329
  const a = this.hasListeners();
4330
- a && vi(this.currentQuery, r, this.options, n) && this.executeFetch(), this.updateResult(i), a && (this.currentQuery !== r || this.options.enabled !== n.enabled || this.options.staleTime !== n.staleTime) && this.updateStaleTimeout();
4331
- const o = this.computeRefetchInterval();
4332
- a && (this.currentQuery !== r || this.options.enabled !== n.enabled || o !== this.currentRefetchInterval) && this.updateRefetchInterval(o);
4330
+ a && mi(this.currentQuery, r, this.options, n) && this.executeFetch(), this.updateResult(i), a && (this.currentQuery !== r || this.options.enabled !== n.enabled || this.options.staleTime !== n.staleTime) && this.updateStaleTimeout();
4331
+ const s = this.computeRefetchInterval();
4332
+ a && (this.currentQuery !== r || this.options.enabled !== n.enabled || s !== this.currentRefetchInterval) && this.updateRefetchInterval(s);
4333
4333
  }
4334
4334
  getOptimisticResult(t) {
4335
4335
  const i = this.client.getQueryCache().build(this.client, t);
@@ -4379,12 +4379,12 @@ class Xs extends Un {
4379
4379
  executeFetch(t) {
4380
4380
  this.updateQuery();
4381
4381
  let i = this.currentQuery.fetch(this.options, t);
4382
- return t != null && t.throwOnError || (i = i.catch(Us)), i;
4382
+ return t != null && t.throwOnError || (i = i.catch(Uo)), i;
4383
4383
  }
4384
4384
  updateStaleTimeout() {
4385
4385
  if (this.clearStaleTimeout(), Kt || this.currentResult.isStale || !si(this.options.staleTime))
4386
4386
  return;
4387
- const i = Ms(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
4387
+ const i = Mo(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
4388
4388
  this.staleTimeoutId = setTimeout(() => {
4389
4389
  this.currentResult.isStale || this.updateResult();
4390
4390
  }, i);
@@ -4395,7 +4395,7 @@ class Xs extends Un {
4395
4395
  }
4396
4396
  updateRefetchInterval(t) {
4397
4397
  this.clearRefetchInterval(), this.currentRefetchInterval = t, !(Kt || this.options.enabled === !1 || !si(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
4398
- (this.options.refetchIntervalInBackground || $s.isFocused()) && this.executeFetch();
4398
+ (this.options.refetchIntervalInBackground || $o.isFocused()) && this.executeFetch();
4399
4399
  }, this.currentRefetchInterval));
4400
4400
  }
4401
4401
  updateTimers() {
@@ -4408,7 +4408,7 @@ class Xs extends Un {
4408
4408
  this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
4409
4409
  }
4410
4410
  createResult(t, i) {
4411
- const n = this.currentQuery, r = this.options, a = this.currentResult, o = this.currentResultState, s = this.currentResultOptions, l = t !== n, c = l ? t.state : this.currentQueryInitialState, f = l ? this.currentResult : this.previousQueryResult, {
4411
+ const n = this.currentQuery, r = this.options, a = this.currentResult, s = this.currentResultState, o = this.currentResultOptions, l = t !== n, c = l ? t.state : this.currentQueryInitialState, f = l ? this.currentResult : this.previousQueryResult, {
4412
4412
  state: v
4413
4413
  } = t;
4414
4414
  let {
@@ -4419,17 +4419,17 @@ class Xs extends Un {
4419
4419
  status: _
4420
4420
  } = v, C = !1, L = !1, U;
4421
4421
  if (i._optimisticResults) {
4422
- const g = this.hasListeners(), k = !g && mi(t, i), F = g && vi(t, n, i, r);
4423
- (k || F) && (b = qs(t.options.networkMode) ? "fetching" : "paused", O || (_ = "loading")), i._optimisticResults === "isRestoring" && (b = "idle");
4422
+ const g = this.hasListeners(), k = !g && hi(t, i), F = g && mi(t, n, i, r);
4423
+ (k || F) && (b = qo(t.options.networkMode) ? "fetching" : "paused", O || (_ = "loading")), i._optimisticResults === "isRestoring" && (b = "idle");
4424
4424
  }
4425
4425
  if (i.keepPreviousData && !v.dataUpdatedAt && f != null && f.isSuccess && _ !== "error")
4426
4426
  U = f.data, O = f.dataUpdatedAt, _ = f.status, C = !0;
4427
4427
  else if (i.select && typeof v.data != "undefined")
4428
- if (a && v.data === (o == null ? void 0 : o.data) && i.select === this.selectFn)
4428
+ if (a && v.data === (s == null ? void 0 : s.data) && i.select === this.selectFn)
4429
4429
  U = this.selectResult;
4430
4430
  else
4431
4431
  try {
4432
- this.selectFn = i.select, U = i.select(v.data), U = hi(a == null ? void 0 : a.data, U, i), this.selectResult = U, this.selectError = null;
4432
+ this.selectFn = i.select, U = i.select(v.data), U = fi(a == null ? void 0 : a.data, U, i), this.selectResult = U, this.selectError = null;
4433
4433
  } catch (g) {
4434
4434
  this.selectError = g;
4435
4435
  }
@@ -4437,7 +4437,7 @@ class Xs extends Un {
4437
4437
  U = v.data;
4438
4438
  if (typeof i.placeholderData != "undefined" && typeof U == "undefined" && _ === "loading") {
4439
4439
  let g;
4440
- if (a != null && a.isPlaceholderData && i.placeholderData === (s == null ? void 0 : s.placeholderData))
4440
+ if (a != null && a.isPlaceholderData && i.placeholderData === (o == null ? void 0 : o.placeholderData))
4441
4441
  g = a.data;
4442
4442
  else if (g = typeof i.placeholderData == "function" ? i.placeholderData() : i.placeholderData, i.select && typeof g != "undefined")
4443
4443
  try {
@@ -4445,7 +4445,7 @@ class Xs extends Un {
4445
4445
  } catch (k) {
4446
4446
  this.selectError = k;
4447
4447
  }
4448
- typeof g != "undefined" && (_ = "success", U = hi(a == null ? void 0 : a.data, g, i), L = !0);
4448
+ typeof g != "undefined" && (_ = "success", U = fi(a == null ? void 0 : a.data, g, i), L = !0);
4449
4449
  }
4450
4450
  this.selectError && (A = this.selectError, U = this.selectResult, R = Date.now(), _ = "error");
4451
4451
  const P = b === "fetching", z = _ === "loading", Q = _ === "error";
@@ -4472,14 +4472,14 @@ class Xs extends Un {
4472
4472
  isPlaceholderData: L,
4473
4473
  isPreviousData: C,
4474
4474
  isRefetchError: Q && v.dataUpdatedAt !== 0,
4475
- isStale: Mn(t, i),
4475
+ isStale: Un(t, i),
4476
4476
  refetch: this.refetch,
4477
4477
  remove: this.remove
4478
4478
  };
4479
4479
  }
4480
4480
  updateResult(t) {
4481
4481
  const i = this.currentResult, n = this.createResult(this.currentQuery, this.options);
4482
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, ui(n, i))
4482
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, oi(n, i))
4483
4483
  return;
4484
4484
  this.currentResult = n;
4485
4485
  const r = {
@@ -4488,14 +4488,14 @@ class Xs extends Un {
4488
4488
  if (!i)
4489
4489
  return !0;
4490
4490
  const {
4491
- notifyOnChangeProps: o
4491
+ notifyOnChangeProps: s
4492
4492
  } = this.options;
4493
- if (o === "all" || !o && !this.trackedProps.size)
4493
+ if (s === "all" || !s && !this.trackedProps.size)
4494
4494
  return !0;
4495
- const s = new Set(o != null ? o : this.trackedProps);
4496
- return this.options.useErrorBoundary && s.add("error"), Object.keys(this.currentResult).some((l) => {
4495
+ const o = new Set(s != null ? s : this.trackedProps);
4496
+ return this.options.useErrorBoundary && o.add("error"), Object.keys(this.currentResult).some((l) => {
4497
4497
  const c = l;
4498
- return this.currentResult[c] !== i[c] && s.has(c);
4498
+ return this.currentResult[c] !== i[c] && o.has(c);
4499
4499
  });
4500
4500
  };
4501
4501
  (t == null ? void 0 : t.listeners) !== !1 && a() && (r.listeners = !0), this.notify({
@@ -4512,7 +4512,7 @@ class Xs extends Un {
4512
4512
  }
4513
4513
  onQueryUpdate(t) {
4514
4514
  const i = {};
4515
- t.type === "success" ? i.onSuccess = !t.manual : t.type === "error" && !Hs(t.error) && (i.onError = !0), this.updateResult(i), this.hasListeners() && this.updateTimers();
4515
+ t.type === "success" ? i.onSuccess = !t.manual : t.type === "error" && !Ho(t.error) && (i.onError = !0), this.updateResult(i), this.hasListeners() && this.updateTimers();
4516
4516
  }
4517
4517
  notify(t) {
4518
4518
  at.batch(() => {
@@ -4520,8 +4520,8 @@ class Xs extends Un {
4520
4520
  var i, n, r, a;
4521
4521
  (i = (n = this.options).onSuccess) == null || i.call(n, this.currentResult.data), (r = (a = this.options).onSettled) == null || r.call(a, this.currentResult.data, null);
4522
4522
  } else if (t.onError) {
4523
- var o, s, l, c;
4524
- (o = (s = this.options).onError) == null || o.call(s, this.currentResult.error), (l = (c = this.options).onSettled) == null || l.call(c, void 0, this.currentResult.error);
4523
+ var s, o, l, c;
4524
+ (s = (o = this.options).onError) == null || s.call(o, this.currentResult.error), (l = (c = this.options).onSettled) == null || l.call(c, void 0, this.currentResult.error);
4525
4525
  }
4526
4526
  t.listeners && this.listeners.forEach((f) => {
4527
4527
  f(this.currentResult);
@@ -4532,23 +4532,23 @@ class Xs extends Un {
4532
4532
  });
4533
4533
  }
4534
4534
  }
4535
- function Ys(e, t) {
4535
+ function Yo(e, t) {
4536
4536
  return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
4537
4537
  }
4538
- function mi(e, t) {
4539
- return Ys(e, t) || e.state.dataUpdatedAt > 0 && Sn(e, t, t.refetchOnMount);
4538
+ function hi(e, t) {
4539
+ return Yo(e, t) || e.state.dataUpdatedAt > 0 && Sn(e, t, t.refetchOnMount);
4540
4540
  }
4541
4541
  function Sn(e, t, i) {
4542
4542
  if (t.enabled !== !1) {
4543
4543
  const n = typeof i == "function" ? i(e) : i;
4544
- return n === "always" || n !== !1 && Mn(e, t);
4544
+ return n === "always" || n !== !1 && Un(e, t);
4545
4545
  }
4546
4546
  return !1;
4547
4547
  }
4548
- function vi(e, t, i, n) {
4549
- return i.enabled !== !1 && (e !== t || n.enabled === !1) && (!i.suspense || e.state.status !== "error") && Mn(e, i);
4548
+ function mi(e, t, i, n) {
4549
+ return i.enabled !== !1 && (e !== t || n.enabled === !1) && (!i.suspense || e.state.status !== "error") && Un(e, i);
4550
4550
  }
4551
- function Mn(e, t) {
4551
+ function Un(e, t) {
4552
4552
  return e.isStaleByTime(t.staleTime);
4553
4553
  }
4554
4554
  var Wr = { exports: {} }, Qr = {};
@@ -4561,12 +4561,12 @@ var Wr = { exports: {} }, Qr = {};
4561
4561
  * This source code is licensed under the MIT license found in the
4562
4562
  * LICENSE file in the root directory of this source tree.
4563
4563
  */
4564
- var Je = Ri;
4564
+ var Je = Ci;
4565
4565
  function eu(e, t) {
4566
4566
  return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
4567
4567
  }
4568
4568
  var tu = typeof Object.is == "function" ? Object.is : eu, nu = Je.useState, iu = Je.useEffect, ru = Je.useLayoutEffect, au = Je.useDebugValue;
4569
- function ou(e, t) {
4569
+ function su(e, t) {
4570
4570
  var i = t(), n = nu({ inst: { value: i, getSnapshot: t } }), r = n[0].inst, a = n[1];
4571
4571
  return ru(function() {
4572
4572
  r.value = i, r.getSnapshot = t, mn(r) && a({ inst: r });
@@ -4586,16 +4586,16 @@ function mn(e) {
4586
4586
  return !0;
4587
4587
  }
4588
4588
  }
4589
- function su(e, t) {
4589
+ function ou(e, t) {
4590
4590
  return t();
4591
4591
  }
4592
- var uu = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? su : ou;
4592
+ var uu = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? ou : su;
4593
4593
  Qr.useSyncExternalStore = Je.useSyncExternalStore !== void 0 ? Je.useSyncExternalStore : uu;
4594
4594
  Wr.exports = Qr;
4595
4595
  var lu = Wr.exports;
4596
- const cu = lu.useSyncExternalStore, pi = /* @__PURE__ */ le.createContext(void 0), du = /* @__PURE__ */ le.createContext(!1);
4596
+ const cu = lu.useSyncExternalStore, vi = /* @__PURE__ */ le.createContext(void 0), du = /* @__PURE__ */ le.createContext(!1);
4597
4597
  function fu(e, t) {
4598
- return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = pi), window.ReactQueryClientContext) : pi);
4598
+ return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = vi), window.ReactQueryClientContext) : vi);
4599
4599
  }
4600
4600
  const hu = ({
4601
4601
  context: e
@@ -4647,32 +4647,32 @@ function Eu(e, t) {
4647
4647
  context: e.context
4648
4648
  }), n = mu(), r = gu(), a = i.defaultQueryOptions(e);
4649
4649
  a._optimisticResults = n ? "isRestoring" : "optimistic", a.onError && (a.onError = at.batchCalls(a.onError)), a.onSuccess && (a.onSuccess = at.batchCalls(a.onSuccess)), a.onSettled && (a.onSettled = at.batchCalls(a.onSettled)), Su(a), yu(a, r), _u(r);
4650
- const [o] = le.useState(() => new t(i, a)), s = o.getOptimisticResult(a);
4650
+ const [s] = le.useState(() => new t(i, a)), o = s.getOptimisticResult(a);
4651
4651
  if (cu(le.useCallback((l) => n ? () => {
4652
- } : o.subscribe(at.batchCalls(l)), [o, n]), () => o.getCurrentResult(), () => o.getCurrentResult()), le.useEffect(() => {
4653
- o.setOptions(a, {
4652
+ } : s.subscribe(at.batchCalls(l)), [s, n]), () => s.getCurrentResult(), () => s.getCurrentResult()), le.useEffect(() => {
4653
+ s.setOptions(a, {
4654
4654
  listeners: !1
4655
4655
  });
4656
- }, [a, o]), Ou(a, s, n))
4657
- throw wu(a, o, r);
4656
+ }, [a, s]), Ou(a, o, n))
4657
+ throw wu(a, s, r);
4658
4658
  if (bu({
4659
- result: s,
4659
+ result: o,
4660
4660
  errorResetBoundary: r,
4661
4661
  useErrorBoundary: a.useErrorBoundary,
4662
- query: o.getCurrentQuery()
4662
+ query: s.getCurrentQuery()
4663
4663
  }))
4664
- throw s.error;
4665
- return a.notifyOnChangeProps ? s : o.trackResult(s);
4664
+ throw o.error;
4665
+ return a.notifyOnChangeProps ? o : s.trackResult(o);
4666
4666
  }
4667
4667
  function Au(e, t, i) {
4668
- const n = Bs(e, t, i);
4669
- return Eu(n, Xs);
4668
+ const n = Bo(e, t, i);
4669
+ return Eu(n, Xo);
4670
4670
  }
4671
- let Bn = /* @__PURE__ */ new Map();
4672
- const Nn = Ti(Bn), uc = ({ children: e, stores: t }) => {
4671
+ let Mn = /* @__PURE__ */ new Map();
4672
+ const Nn = Ri(Mn), uc = ({ children: e, stores: t }) => {
4673
4673
  const i = wn(Nn), n = ca(() => {
4674
4674
  const r = /* @__PURE__ */ new Map();
4675
- return t.forEach((a) => r.set(a.class, a.value)), Bn = new Map([...i, ...r]);
4675
+ return t.forEach((a) => r.set(a.class, a.value)), Mn = new Map([...i, ...r]);
4676
4676
  }, []);
4677
4677
  return /* @__PURE__ */ fa(Nn.Provider, { value: n, children: e });
4678
4678
  };
@@ -4680,7 +4680,7 @@ function lc(e) {
4680
4680
  return wn(Nn).get(e);
4681
4681
  }
4682
4682
  function cc(e) {
4683
- return Bn.get(e);
4683
+ return Mn.get(e);
4684
4684
  }
4685
4685
  function dc(e, t = []) {
4686
4686
  if (Array.isArray(t) && t.some((i) => Nt(i)))
@@ -4702,12 +4702,12 @@ function Fu(e, t = []) {
4702
4702
  function fc(e, t, i = []) {
4703
4703
  if (Array.isArray(i) && i.some((n) => Nt(n)))
4704
4704
  throw new Error("useEffect dependencies must not contain observables, ...");
4705
- vt(() => $o(e, t), i);
4705
+ vt(() => Ks(e, t), i);
4706
4706
  }
4707
4707
  const Cu = () => ["account"], hc = () => {
4708
4708
  const e = Fu(() => {
4709
4709
  var r;
4710
- return (r = Vn.config) == null ? void 0 : r.account;
4710
+ return (r = Ur.config) == null ? void 0 : r.account;
4711
4711
  }), [t, i] = Sa(En), n = Au(
4712
4712
  Cu(),
4713
4713
  () => Kr.get(e),
@@ -4724,7 +4724,7 @@ const Cu = () => ["account"], hc = () => {
4724
4724
  findQuery: n,
4725
4725
  account: t
4726
4726
  };
4727
- }, Ru = Vn.globalAtomStore;
4727
+ }, Ru = Ti();
4728
4728
  async function Tu(e) {
4729
4729
  const t = await Kr.get(e);
4730
4730
  return Ru.set(En, t), t;
@@ -4792,14 +4792,14 @@ function Oe(e, t) {
4792
4792
  if (!(e instanceof t))
4793
4793
  throw new TypeError("Cannot call a class as a function");
4794
4794
  }
4795
- function gi(e, t) {
4795
+ function pi(e, t) {
4796
4796
  for (var i = 0; i < t.length; i++) {
4797
4797
  var n = t[i];
4798
4798
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Jr(n.key), n);
4799
4799
  }
4800
4800
  }
4801
4801
  function we(e, t, i) {
4802
- return t && gi(e.prototype, t), i && gi(e, i), Object.defineProperty(e, "prototype", {
4802
+ return t && pi(e.prototype, t), i && pi(e, i), Object.defineProperty(e, "prototype", {
4803
4803
  writable: !1
4804
4804
  }), e;
4805
4805
  }
@@ -4940,14 +4940,14 @@ var ju = {
4940
4940
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
4941
4941
  r[a - 1] = arguments[a];
4942
4942
  if (this.observers[i]) {
4943
- var o = [].concat(this.observers[i]);
4944
- o.forEach(function(l) {
4943
+ var s = [].concat(this.observers[i]);
4944
+ s.forEach(function(l) {
4945
4945
  l.apply(void 0, r);
4946
4946
  });
4947
4947
  }
4948
4948
  if (this.observers["*"]) {
4949
- var s = [].concat(this.observers["*"]);
4950
- s.forEach(function(l) {
4949
+ var o = [].concat(this.observers["*"]);
4950
+ o.forEach(function(l) {
4951
4951
  l.apply(l, [i].concat(r));
4952
4952
  });
4953
4953
  }
@@ -4960,7 +4960,7 @@ function tt() {
4960
4960
  });
4961
4961
  return i.resolve = e, i.reject = t, i;
4962
4962
  }
4963
- function ki(e) {
4963
+ function gi(e) {
4964
4964
  return e == null ? "" : "" + e;
4965
4965
  }
4966
4966
  function Mu(e, t, i) {
@@ -4968,9 +4968,9 @@ function Mu(e, t, i) {
4968
4968
  t[n] && (i[n] = t[n]);
4969
4969
  });
4970
4970
  }
4971
- function Gn(e, t, i) {
4972
- function n(s) {
4973
- return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
4971
+ function Bn(e, t, i) {
4972
+ function n(o) {
4973
+ return o && o.indexOf("###") > -1 ? o.replace(/###/g, ".") : o;
4974
4974
  }
4975
4975
  function r() {
4976
4976
  return !e || typeof e == "string";
@@ -4978,28 +4978,28 @@ function Gn(e, t, i) {
4978
4978
  for (var a = typeof t != "string" ? [].concat(t) : t.split("."); a.length > 1; ) {
4979
4979
  if (r())
4980
4980
  return {};
4981
- var o = n(a.shift());
4982
- !e[o] && i && (e[o] = new i()), Object.prototype.hasOwnProperty.call(e, o) ? e = e[o] : e = {};
4981
+ var s = n(a.shift());
4982
+ !e[s] && i && (e[s] = new i()), Object.prototype.hasOwnProperty.call(e, s) ? e = e[s] : e = {};
4983
4983
  }
4984
4984
  return r() ? {} : {
4985
4985
  obj: e,
4986
4986
  k: n(a.shift())
4987
4987
  };
4988
4988
  }
4989
- function yi(e, t, i) {
4990
- var n = Gn(e, t, Object), r = n.obj, a = n.k;
4989
+ function ki(e, t, i) {
4990
+ var n = Bn(e, t, Object), r = n.obj, a = n.k;
4991
4991
  r[a] = i;
4992
4992
  }
4993
4993
  function Bu(e, t, i, n) {
4994
- var r = Gn(e, t, Object), a = r.obj, o = r.k;
4995
- a[o] = a[o] || [], n && (a[o] = a[o].concat(i)), n || a[o].push(i);
4994
+ var r = Bn(e, t, Object), a = r.obj, s = r.k;
4995
+ a[s] = a[s] || [], n && (a[s] = a[s].concat(i)), n || a[s].push(i);
4996
4996
  }
4997
4997
  function $t(e, t) {
4998
- var i = Gn(e, t), n = i.obj, r = i.k;
4998
+ var i = Bn(e, t), n = i.obj, r = i.k;
4999
4999
  if (n)
5000
5000
  return n[r];
5001
5001
  }
5002
- function _i(e, t, i) {
5002
+ function yi(e, t, i) {
5003
5003
  var n = $t(e, i);
5004
5004
  return n !== void 0 ? n : $t(t, i);
5005
5005
  }
@@ -5034,15 +5034,15 @@ function Zr(e, t) {
5034
5034
  if (typeof r[n[a]] == "string" && a + 1 < n.length)
5035
5035
  return;
5036
5036
  if (r[n[a]] === void 0) {
5037
- for (var o = 2, s = n.slice(a, a + o).join(i), l = r[s]; l === void 0 && n.length > a + o; )
5038
- o++, s = n.slice(a, a + o).join(i), l = r[s];
5037
+ for (var s = 2, o = n.slice(a, a + s).join(i), l = r[o]; l === void 0 && n.length > a + s; )
5038
+ s++, o = n.slice(a, a + s).join(i), l = r[o];
5039
5039
  if (l === void 0)
5040
5040
  return;
5041
5041
  if (typeof l == "string")
5042
5042
  return l;
5043
- if (s && typeof l[s] == "string")
5044
- return l[s];
5045
- var c = n.slice(a + o).join(i);
5043
+ if (o && typeof l[o] == "string")
5044
+ return l[o];
5045
+ var c = n.slice(a + s).join(i);
5046
5046
  return c ? Zr(l, c, i) : void 0;
5047
5047
  }
5048
5048
  r = r[n[a]];
@@ -5073,42 +5073,42 @@ var Ku = function(e) {
5073
5073
  }, {
5074
5074
  key: "getResource",
5075
5075
  value: function(n, r, a) {
5076
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, l = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure, c = [n, r];
5077
- a && typeof a != "string" && (c = c.concat(a)), a && typeof a == "string" && (c = c.concat(s ? a.split(s) : a)), n.indexOf(".") > -1 && (c = n.split("."));
5076
+ var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, o = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, l = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure, c = [n, r];
5077
+ a && typeof a != "string" && (c = c.concat(a)), a && typeof a == "string" && (c = c.concat(o ? a.split(o) : a)), n.indexOf(".") > -1 && (c = n.split("."));
5078
5078
  var f = $t(this.data, c);
5079
- return f || !l || typeof a != "string" ? f : Zr(this.data && this.data[n] && this.data[n][r], a, s);
5079
+ return f || !l || typeof a != "string" ? f : Zr(this.data && this.data[n] && this.data[n][r], a, o);
5080
5080
  }
5081
5081
  }, {
5082
5082
  key: "addResource",
5083
- value: function(n, r, a, o) {
5084
- var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
5083
+ value: function(n, r, a, s) {
5084
+ var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
5085
5085
  silent: !1
5086
5086
  }, l = this.options.keySeparator;
5087
5087
  l === void 0 && (l = ".");
5088
5088
  var c = [n, r];
5089
- a && (c = c.concat(l ? a.split(l) : a)), n.indexOf(".") > -1 && (c = n.split("."), o = r, r = c[1]), this.addNamespaces(r), yi(this.data, c, o), s.silent || this.emit("added", n, r, a, o);
5089
+ a && (c = c.concat(l ? a.split(l) : a)), n.indexOf(".") > -1 && (c = n.split("."), s = r, r = c[1]), this.addNamespaces(r), ki(this.data, c, s), o.silent || this.emit("added", n, r, a, s);
5090
5090
  }
5091
5091
  }, {
5092
5092
  key: "addResources",
5093
5093
  value: function(n, r, a) {
5094
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
5094
+ var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
5095
5095
  silent: !1
5096
5096
  };
5097
- for (var s in a)
5098
- (typeof a[s] == "string" || Object.prototype.toString.apply(a[s]) === "[object Array]") && this.addResource(n, r, s, a[s], {
5097
+ for (var o in a)
5098
+ (typeof a[o] == "string" || Object.prototype.toString.apply(a[o]) === "[object Array]") && this.addResource(n, r, o, a[o], {
5099
5099
  silent: !0
5100
5100
  });
5101
- o.silent || this.emit("added", n, r, a);
5101
+ s.silent || this.emit("added", n, r, a);
5102
5102
  }
5103
5103
  }, {
5104
5104
  key: "addResourceBundle",
5105
- value: function(n, r, a, o, s) {
5105
+ value: function(n, r, a, s, o) {
5106
5106
  var l = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
5107
5107
  silent: !1
5108
5108
  }, c = [n, r];
5109
- n.indexOf(".") > -1 && (c = n.split("."), o = a, a = r, r = c[1]), this.addNamespaces(r);
5109
+ n.indexOf(".") > -1 && (c = n.split("."), s = a, a = r, r = c[1]), this.addNamespaces(r);
5110
5110
  var f = $t(this.data, c) || {};
5111
- o ? Hr(f, a, s) : f = X({}, f, a), yi(this.data, c, f), l.silent || this.emit("added", n, r, a);
5111
+ s ? Hr(f, a, o) : f = X({}, f, a), ki(this.data, c, f), l.silent || this.emit("added", n, r, a);
5112
5112
  }
5113
5113
  }, {
5114
5114
  key: "removeResourceBundle",
@@ -5142,12 +5142,12 @@ var Ku = function(e) {
5142
5142
  this.processors[t.name] = t;
5143
5143
  },
5144
5144
  handle: function(t, i, n, r, a) {
5145
- var o = this;
5146
- return t.forEach(function(s) {
5147
- o.processors[s] && (i = o.processors[s].process(i, n, r, a));
5145
+ var s = this;
5146
+ return t.forEach(function(o) {
5147
+ s.processors[o] && (i = s.processors[o].process(i, n, r, a));
5148
5148
  }), i;
5149
5149
  }
5150
- }, bi = {}, Si = function(e) {
5150
+ }, _i = {}, bi = function(e) {
5151
5151
  Yt(t, e);
5152
5152
  function t(i) {
5153
5153
  var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -5171,30 +5171,30 @@ var Ku = function(e) {
5171
5171
  value: function(n, r) {
5172
5172
  var a = r.nsSeparator !== void 0 ? r.nsSeparator : this.options.nsSeparator;
5173
5173
  a === void 0 && (a = ":");
5174
- var o = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, s = r.ns || this.options.defaultNS;
5174
+ var s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, o = r.ns || this.options.defaultNS;
5175
5175
  if (a && n.indexOf(a) > -1) {
5176
5176
  var l = n.match(this.interpolator.nestingRegexp);
5177
5177
  if (l && l.length > 0)
5178
5178
  return {
5179
5179
  key: n,
5180
- namespaces: s
5180
+ namespaces: o
5181
5181
  };
5182
5182
  var c = n.split(a);
5183
- (a !== o || a === o && this.options.ns.indexOf(c[0]) > -1) && (s = c.shift()), n = c.join(o);
5183
+ (a !== s || a === s && this.options.ns.indexOf(c[0]) > -1) && (o = c.shift()), n = c.join(s);
5184
5184
  }
5185
- return typeof s == "string" && (s = [s]), {
5185
+ return typeof o == "string" && (o = [o]), {
5186
5186
  key: n,
5187
- namespaces: s
5187
+ namespaces: o
5188
5188
  };
5189
5189
  }
5190
5190
  }, {
5191
5191
  key: "translate",
5192
5192
  value: function(n, r, a) {
5193
- var o = this;
5193
+ var s = this;
5194
5194
  if (fe(r) !== "object" && this.options.overloadTranslationOptionHandler && (r = this.options.overloadTranslationOptionHandler(arguments)), r || (r = {}), n == null)
5195
5195
  return "";
5196
5196
  Array.isArray(n) || (n = [String(n)]);
5197
- var s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, l = this.extractFromKey(n[n.length - 1], r), c = l.key, f = l.namespaces, v = f[f.length - 1], O = r.lng || this.language, A = r.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
5197
+ var o = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, l = this.extractFromKey(n[n.length - 1], r), c = l.key, f = l.namespaces, v = f[f.length - 1], O = r.lng || this.language, A = r.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
5198
5198
  if (O && O.toLowerCase() === "cimode") {
5199
5199
  if (A) {
5200
5200
  var R = r.nsSeparator || this.options.nsSeparator;
@@ -5208,11 +5208,11 @@ var Ku = function(e) {
5208
5208
  return this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(C, _, X({}, r, {
5209
5209
  ns: f
5210
5210
  })) : "key '".concat(c, " (").concat(this.language, ")' returned an object instead of string.");
5211
- if (s) {
5211
+ if (o) {
5212
5212
  var g = U === "[object Array]", k = g ? [] : {}, F = g ? L : C;
5213
5213
  for (var T in _)
5214
5214
  if (Object.prototype.hasOwnProperty.call(_, T)) {
5215
- var I = "".concat(F).concat(s).concat(T);
5215
+ var I = "".concat(F).concat(o).concat(T);
5216
5216
  k[T] = this.translate(I, X({}, r, {
5217
5217
  joinArrays: !1,
5218
5218
  ns: f
@@ -5227,7 +5227,7 @@ var Ku = function(e) {
5227
5227
  !this.isValidLookup(_) && K && (V = !0, _ = u), this.isValidLookup(_) || (B = !0, _ = c);
5228
5228
  var d = K && u !== _ && this.options.updateMissing;
5229
5229
  if (B || V || d) {
5230
- if (this.logger.log(d ? "updateKey" : "missingKey", O, v, c, d ? u : _), s) {
5230
+ if (this.logger.log(d ? "updateKey" : "missingKey", O, v, c, d ? u : _), o) {
5231
5231
  var h = this.resolve(c, X({}, r, {
5232
5232
  keySeparator: !1
5233
5233
  }));
@@ -5240,10 +5240,10 @@ var Ku = function(e) {
5240
5240
  else
5241
5241
  this.options.saveMissingTo === "all" ? m = this.languageUtils.toResolveHierarchy(r.lng || this.language) : m.push(r.lng || this.language);
5242
5242
  var S = function(N, w, D) {
5243
- o.options.missingKeyHandler ? o.options.missingKeyHandler(N, v, w, d ? D : _, d, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(N, v, w, d ? D : _, d, r), o.emit("missingKey", N, v, w, _);
5243
+ s.options.missingKeyHandler ? s.options.missingKeyHandler(N, v, w, d ? D : _, d, r) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(N, v, w, d ? D : _, d, r), s.emit("missingKey", N, v, w, _);
5244
5244
  };
5245
5245
  this.options.saveMissing && (this.options.saveMissingPlurals && j ? m.forEach(function(E) {
5246
- o.pluralResolver.getSuffixes(E).forEach(function(N) {
5246
+ s.pluralResolver.getSuffixes(E).forEach(function(N) {
5247
5247
  S([E], c + N, r["defaultValue".concat(N)] || u);
5248
5248
  });
5249
5249
  }) : S(m, c, u));
@@ -5254,11 +5254,11 @@ var Ku = function(e) {
5254
5254
  }
5255
5255
  }, {
5256
5256
  key: "extendTranslation",
5257
- value: function(n, r, a, o, s) {
5257
+ value: function(n, r, a, s, o) {
5258
5258
  var l = this;
5259
5259
  if (this.i18nFormat && this.i18nFormat.parse)
5260
- n = this.i18nFormat.parse(n, a, o.usedLng, o.usedNS, o.usedKey, {
5261
- resolved: o
5260
+ n = this.i18nFormat.parse(n, a, s.usedLng, s.usedNS, s.usedKey, {
5261
+ resolved: s
5262
5262
  });
5263
5263
  else if (!a.skipInterpolation) {
5264
5264
  a.interpolation && this.interpolator.init(X({}, a, {
@@ -5277,28 +5277,28 @@ var Ku = function(e) {
5277
5277
  a.nest !== !1 && (n = this.interpolator.nest(n, function() {
5278
5278
  for (var C = arguments.length, L = new Array(C), U = 0; U < C; U++)
5279
5279
  L[U] = arguments[U];
5280
- return s && s[0] === L[0] && !a.context ? (l.logger.warn("It seems you are nesting recursively key: ".concat(L[0], " in key: ").concat(r[0])), null) : l.translate.apply(l, L.concat([r]));
5280
+ return o && o[0] === L[0] && !a.context ? (l.logger.warn("It seems you are nesting recursively key: ".concat(L[0], " in key: ").concat(r[0])), null) : l.translate.apply(l, L.concat([r]));
5281
5281
  }, a)), a.interpolation && this.interpolator.reset();
5282
5282
  }
5283
5283
  var b = a.postProcess || this.options.postProcess, _ = typeof b == "string" ? [b] : b;
5284
5284
  return n != null && _ && _.length && a.applyPostProcessor !== !1 && (n = Xr.handle(_, n, r, this.options && this.options.postProcessPassResolved ? X({
5285
- i18nResolved: o
5285
+ i18nResolved: s
5286
5286
  }, a) : a, this)), n;
5287
5287
  }
5288
5288
  }, {
5289
5289
  key: "resolve",
5290
5290
  value: function(n) {
5291
- var r = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o, s, l, c, f;
5291
+ var r = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, o, l, c, f;
5292
5292
  return typeof n == "string" && (n = [n]), n.forEach(function(v) {
5293
- if (!r.isValidLookup(o)) {
5293
+ if (!r.isValidLookup(s)) {
5294
5294
  var O = r.extractFromKey(v, a), A = O.key;
5295
- s = A;
5295
+ o = A;
5296
5296
  var R = O.namespaces;
5297
5297
  r.options.fallbackNS && (R = R.concat(r.options.fallbackNS));
5298
5298
  var b = a.count !== void 0 && typeof a.count != "string", _ = a.context !== void 0 && (typeof a.context == "string" || typeof a.context == "number") && a.context !== "", C = a.lngs ? a.lngs : r.languageUtils.toResolveHierarchy(a.lng || r.language, a.fallbackLng);
5299
5299
  R.forEach(function(L) {
5300
- r.isValidLookup(o) || (f = L, !bi["".concat(C[0], "-").concat(L)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(f) && (bi["".concat(C[0], "-").concat(L)] = !0, r.logger.warn('key "'.concat(s, '" for languages "').concat(C.join(", "), `" won't get resolved as namespace "`).concat(f, '" 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!!!")), C.forEach(function(U) {
5301
- if (!r.isValidLookup(o)) {
5300
+ r.isValidLookup(s) || (f = L, !_i["".concat(C[0], "-").concat(L)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(f) && (_i["".concat(C[0], "-").concat(L)] = !0, r.logger.warn('key "'.concat(o, '" for languages "').concat(C.join(", "), `" won't get resolved as namespace "`).concat(f, '" 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!!!")), C.forEach(function(U) {
5301
+ if (!r.isValidLookup(s)) {
5302
5302
  c = U;
5303
5303
  var P = A, z = [P];
5304
5304
  if (r.i18nFormat && r.i18nFormat.addLookupKeys)
@@ -5308,14 +5308,14 @@ var Ku = function(e) {
5308
5308
  b && (Q = r.pluralResolver.getSuffix(U, a.count)), b && _ && z.push(P + Q), _ && z.push(P += "".concat(r.options.contextSeparator).concat(a.context)), b && z.push(P += Q);
5309
5309
  }
5310
5310
  for (var Y; Y = z.pop(); )
5311
- r.isValidLookup(o) || (l = Y, o = r.getResource(U, L, Y, a));
5311
+ r.isValidLookup(s) || (l = Y, s = r.getResource(U, L, Y, a));
5312
5312
  }
5313
5313
  }));
5314
5314
  });
5315
5315
  }
5316
5316
  }), {
5317
- res: o,
5318
- usedKey: s,
5317
+ res: s,
5318
+ usedKey: o,
5319
5319
  exactUsedKey: l,
5320
5320
  usedLng: c,
5321
5321
  usedNS: f
@@ -5329,8 +5329,8 @@ var Ku = function(e) {
5329
5329
  }, {
5330
5330
  key: "getResource",
5331
5331
  value: function(n, r, a) {
5332
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
5333
- return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(n, r, a, o) : this.resourceStore.getResource(n, r, a, o);
5332
+ var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
5333
+ return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(n, r, a, s) : this.resourceStore.getResource(n, r, a, s);
5334
5334
  }
5335
5335
  }], [{
5336
5336
  key: "hasDefaultValue",
@@ -5396,17 +5396,17 @@ var $u = function() {
5396
5396
  var r;
5397
5397
  return i.forEach(function(a) {
5398
5398
  if (!r) {
5399
- var o = n.formatLanguageCode(a);
5400
- (!n.options.supportedLngs || n.isSupportedCode(o)) && (r = o);
5399
+ var s = n.formatLanguageCode(a);
5400
+ (!n.options.supportedLngs || n.isSupportedCode(s)) && (r = s);
5401
5401
  }
5402
5402
  }), !r && this.options.supportedLngs && i.forEach(function(a) {
5403
5403
  if (!r) {
5404
- var o = n.getLanguagePartFromCode(a);
5405
- if (n.isSupportedCode(o))
5406
- return r = o;
5407
- r = n.options.supportedLngs.find(function(s) {
5408
- if (s.indexOf(o) === 0)
5409
- return s;
5404
+ var s = n.getLanguagePartFromCode(a);
5405
+ if (n.isSupportedCode(s))
5406
+ return r = s;
5407
+ r = n.options.supportedLngs.find(function(o) {
5408
+ if (o.indexOf(s) === 0)
5409
+ return o;
5410
5410
  });
5411
5411
  }
5412
5412
  }), r || (r = this.getFallbackCodes(this.options.fallbackLng)[0]), r;
@@ -5426,12 +5426,12 @@ var $u = function() {
5426
5426
  }, {
5427
5427
  key: "toResolveHierarchy",
5428
5428
  value: function(i, n) {
5429
- var r = this, a = this.getFallbackCodes(n || this.options.fallbackLng || [], i), o = [], s = function(c) {
5430
- c && (r.isSupportedCode(c) ? o.push(c) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)));
5429
+ var r = this, a = this.getFallbackCodes(n || this.options.fallbackLng || [], i), s = [], o = function(c) {
5430
+ c && (r.isSupportedCode(c) ? s.push(c) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)));
5431
5431
  };
5432
- return typeof i == "string" && i.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && s(this.formatLanguageCode(i)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && s(this.getScriptPartFromCode(i)), this.options.load !== "currentOnly" && s(this.getLanguagePartFromCode(i))) : typeof i == "string" && s(this.formatLanguageCode(i)), a.forEach(function(l) {
5433
- o.indexOf(l) < 0 && s(r.formatLanguageCode(l));
5434
- }), o;
5432
+ return typeof i == "string" && i.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(i)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(i)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(i))) : typeof i == "string" && o(this.formatLanguageCode(i)), a.forEach(function(l) {
5433
+ s.indexOf(l) < 0 && o(r.formatLanguageCode(l));
5434
+ }), s;
5435
5435
  }
5436
5436
  }]), e;
5437
5437
  }(), Wu = [{
@@ -5646,12 +5646,12 @@ var Ju = function() {
5646
5646
  value: function(i, n) {
5647
5647
  var r = this, a = this.getRule(i);
5648
5648
  if (a) {
5649
- var o = a.noAbs ? a.plurals(n) : a.plurals(Math.abs(n)), s = a.numbers[o];
5650
- this.options.simplifyPluralSuffix && a.numbers.length === 2 && a.numbers[0] === 1 && (s === 2 ? s = "plural" : s === 1 && (s = ""));
5649
+ var s = a.noAbs ? a.plurals(n) : a.plurals(Math.abs(n)), o = a.numbers[s];
5650
+ this.options.simplifyPluralSuffix && a.numbers.length === 2 && a.numbers[0] === 1 && (o === 2 ? o = "plural" : o === 1 && (o = ""));
5651
5651
  var l = function() {
5652
- return r.options.prepend && s.toString() ? r.options.prepend + s.toString() : s.toString();
5652
+ return r.options.prepend && o.toString() ? r.options.prepend + o.toString() : o.toString();
5653
5653
  };
5654
- return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? "_plural_".concat(s.toString()) : l() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && a.numbers.length === 2 && a.numbers[0] === 1 ? l() : this.options.prepend && o.toString() ? this.options.prepend + o.toString() : o.toString();
5654
+ return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? "_plural_".concat(o.toString()) : l() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && a.numbers.length === 2 && a.numbers[0] === 1 ? l() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
5655
5655
  }
5656
5656
  return this.logger.warn("no plural rule found for: ".concat(i)), "";
5657
5657
  }
@@ -5691,19 +5691,19 @@ var Ju = function() {
5691
5691
  }, {
5692
5692
  key: "interpolate",
5693
5693
  value: function(i, n, r, a) {
5694
- var o = this, s, l, c, f = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
5694
+ var s = this, o, l, c, f = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
5695
5695
  function v(_) {
5696
5696
  return _.replace(/\$/g, "$$$$");
5697
5697
  }
5698
5698
  var O = function(C) {
5699
- if (C.indexOf(o.formatSeparator) < 0) {
5700
- var L = _i(n, f, C);
5701
- return o.alwaysFormat ? o.format(L, void 0, r, X({}, a, n, {
5699
+ if (C.indexOf(s.formatSeparator) < 0) {
5700
+ var L = yi(n, f, C);
5701
+ return s.alwaysFormat ? s.format(L, void 0, r, X({}, a, n, {
5702
5702
  interpolationkey: C
5703
5703
  })) : L;
5704
5704
  }
5705
- var U = C.split(o.formatSeparator), P = U.shift().trim(), z = U.join(o.formatSeparator).trim();
5706
- return o.format(_i(n, f, P), z, r, X({}, a, n, {
5705
+ var U = C.split(s.formatSeparator), P = U.shift().trim(), z = U.join(s.formatSeparator).trim();
5706
+ return s.format(yi(n, f, P), z, r, X({}, a, n, {
5707
5707
  interpolationkey: P
5708
5708
  }));
5709
5709
  };
@@ -5716,24 +5716,24 @@ var Ju = function() {
5716
5716
  }, {
5717
5717
  regex: this.regexp,
5718
5718
  safeValue: function(C) {
5719
- return o.escapeValue ? v(o.escape(C)) : v(C);
5719
+ return s.escapeValue ? v(s.escape(C)) : v(C);
5720
5720
  }
5721
5721
  }];
5722
5722
  return b.forEach(function(_) {
5723
- for (c = 0; s = _.regex.exec(i); ) {
5724
- if (l = O(s[1].trim()), l === void 0)
5723
+ for (c = 0; o = _.regex.exec(i); ) {
5724
+ if (l = O(o[1].trim()), l === void 0)
5725
5725
  if (typeof A == "function") {
5726
- var C = A(i, s, a);
5726
+ var C = A(i, o, a);
5727
5727
  l = typeof C == "string" ? C : "";
5728
5728
  } else if (R) {
5729
- l = s[0];
5729
+ l = o[0];
5730
5730
  continue;
5731
5731
  } else
5732
- o.logger.warn("missed to pass in variable ".concat(s[1], " for interpolating ").concat(i)), l = "";
5732
+ s.logger.warn("missed to pass in variable ".concat(o[1], " for interpolating ").concat(i)), l = "";
5733
5733
  else
5734
- typeof l != "string" && !o.useRawValueToEscape && (l = ki(l));
5734
+ typeof l != "string" && !s.useRawValueToEscape && (l = gi(l));
5735
5735
  var L = _.safeValue(l);
5736
- if (i = i.replace(s[0], L), R ? (_.regex.lastIndex += L.length, _.regex.lastIndex -= s[0].length) : _.regex.lastIndex = 0, c++, c >= o.maxReplaces)
5736
+ if (i = i.replace(o[0], L), R ? (_.regex.lastIndex += L.length, _.regex.lastIndex -= o[0].length) : _.regex.lastIndex = 0, c++, c >= s.maxReplaces)
5737
5737
  break;
5738
5738
  }
5739
5739
  }), i;
@@ -5741,7 +5741,7 @@ var Ju = function() {
5741
5741
  }, {
5742
5742
  key: "nest",
5743
5743
  value: function(i, n) {
5744
- var r = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, l = X({}, a);
5744
+ var r = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, o, l = X({}, a);
5745
5745
  l.applyPostProcessor = !1, delete l.defaultValue;
5746
5746
  function c(A, R) {
5747
5747
  var b = this.nestingOptionsSeparator;
@@ -5756,21 +5756,21 @@ var Ju = function() {
5756
5756
  }
5757
5757
  return delete l.defaultValue, A;
5758
5758
  }
5759
- for (; o = this.nestingRegexp.exec(i); ) {
5759
+ for (; s = this.nestingRegexp.exec(i); ) {
5760
5760
  var f = [], v = !1;
5761
- if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
5762
- var O = o[1].split(this.formatSeparator).map(function(A) {
5761
+ if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
5762
+ var O = s[1].split(this.formatSeparator).map(function(A) {
5763
5763
  return A.trim();
5764
5764
  });
5765
- o[1] = O.shift(), f = O, v = !0;
5765
+ s[1] = O.shift(), f = O, v = !0;
5766
5766
  }
5767
- if (s = n(c.call(this, o[1].trim(), l), l), s && o[0] === i && typeof s != "string")
5768
- return s;
5769
- typeof s != "string" && (s = ki(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(i)), s = ""), v && (s = f.reduce(function(A, R) {
5767
+ if (o = n(c.call(this, s[1].trim(), l), l), o && s[0] === i && typeof o != "string")
5768
+ return o;
5769
+ typeof o != "string" && (o = gi(o)), o || (this.logger.warn("missed to resolve ".concat(s[1], " for nesting ").concat(i)), o = ""), v && (o = f.reduce(function(A, R) {
5770
5770
  return r.format(A, R, a.lng, X({}, a, {
5771
- interpolationkey: o[1].trim()
5771
+ interpolationkey: s[1].trim()
5772
5772
  }));
5773
- }, s.trim())), i = i.replace(o[0], s), this.regexp.lastIndex = 0;
5773
+ }, o.trim())), i = i.replace(s[0], o), this.regexp.lastIndex = 0;
5774
5774
  }
5775
5775
  return i;
5776
5776
  }
@@ -5783,24 +5783,24 @@ function Zu(e, t) {
5783
5783
  var Xu = function(e) {
5784
5784
  Yt(t, e);
5785
5785
  function t(i, n, r) {
5786
- var a, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
5787
- return Oe(this, t), a = ht(this, He(t).call(this)), en && Te.call(Ie(a)), a.backend = i, a.store = n, a.services = r, a.languageUtils = r.languageUtils, a.options = o, a.logger = _e.create("backendConnector"), a.state = {}, a.queue = [], a.backend && a.backend.init && a.backend.init(r, o.backend, o), a;
5786
+ var a, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
5787
+ return Oe(this, t), a = ht(this, He(t).call(this)), en && Te.call(Ie(a)), a.backend = i, a.store = n, a.services = r, a.languageUtils = r.languageUtils, a.options = s, a.logger = _e.create("backendConnector"), a.state = {}, a.queue = [], a.backend && a.backend.init && a.backend.init(r, s.backend, s), a;
5788
5788
  }
5789
5789
  return we(t, [{
5790
5790
  key: "queueLoad",
5791
- value: function(n, r, a, o) {
5792
- var s = this, l = [], c = [], f = [], v = [];
5791
+ value: function(n, r, a, s) {
5792
+ var o = this, l = [], c = [], f = [], v = [];
5793
5793
  return n.forEach(function(O) {
5794
5794
  var A = !0;
5795
5795
  r.forEach(function(R) {
5796
5796
  var b = "".concat(O, "|").concat(R);
5797
- !a.reload && s.store.hasResourceBundle(O, R) ? s.state[b] = 2 : s.state[b] < 0 || (s.state[b] === 1 ? c.indexOf(b) < 0 && c.push(b) : (s.state[b] = 1, A = !1, c.indexOf(b) < 0 && c.push(b), l.indexOf(b) < 0 && l.push(b), v.indexOf(R) < 0 && v.push(R)));
5797
+ !a.reload && o.store.hasResourceBundle(O, R) ? o.state[b] = 2 : o.state[b] < 0 || (o.state[b] === 1 ? c.indexOf(b) < 0 && c.push(b) : (o.state[b] = 1, A = !1, c.indexOf(b) < 0 && c.push(b), l.indexOf(b) < 0 && l.push(b), v.indexOf(R) < 0 && v.push(R)));
5798
5798
  }), A || f.push(O);
5799
5799
  }), (l.length || c.length) && this.queue.push({
5800
5800
  pending: c,
5801
5801
  loaded: {},
5802
5802
  errors: [],
5803
- callback: o
5803
+ callback: s
5804
5804
  }), {
5805
5805
  toLoad: l,
5806
5806
  pending: c,
@@ -5811,11 +5811,11 @@ var Xu = function(e) {
5811
5811
  }, {
5812
5812
  key: "loaded",
5813
5813
  value: function(n, r, a) {
5814
- var o = n.split("|"), s = o[0], l = o[1];
5815
- r && this.emit("failedLoading", s, l, r), a && this.store.addResourceBundle(s, l, a), this.state[n] = r ? -1 : 2;
5814
+ var s = n.split("|"), o = s[0], l = s[1];
5815
+ r && this.emit("failedLoading", o, l, r), a && this.store.addResourceBundle(o, l, a), this.state[n] = r ? -1 : 2;
5816
5816
  var c = {};
5817
5817
  this.queue.forEach(function(f) {
5818
- Bu(f.loaded, [s], l), Zu(f.pending, n), r && f.errors.push(r), f.pending.length === 0 && !f.done && (Object.keys(f.loaded).forEach(function(v) {
5818
+ Bu(f.loaded, [o], l), Zu(f.pending, n), r && f.errors.push(r), f.pending.length === 0 && !f.done && (Object.keys(f.loaded).forEach(function(v) {
5819
5819
  c[v] || (c[v] = []), f.loaded[v].length && f.loaded[v].forEach(function(O) {
5820
5820
  c[v].indexOf(O) < 0 && c[v].push(O);
5821
5821
  });
@@ -5827,11 +5827,11 @@ var Xu = function(e) {
5827
5827
  }, {
5828
5828
  key: "read",
5829
5829
  value: function(n, r, a) {
5830
- var o = this, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, c = arguments.length > 5 ? arguments[5] : void 0;
5830
+ var s = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, c = arguments.length > 5 ? arguments[5] : void 0;
5831
5831
  return n.length ? this.backend[a](n, r, function(f, v) {
5832
- if (f && v && s < 5) {
5832
+ if (f && v && o < 5) {
5833
5833
  setTimeout(function() {
5834
- o.read.call(o, n, r, a, s + 1, l * 2, c);
5834
+ s.read.call(s, n, r, a, o + 1, l * 2, c);
5835
5835
  }, l);
5836
5836
  return;
5837
5837
  }
@@ -5841,13 +5841,13 @@ var Xu = function(e) {
5841
5841
  }, {
5842
5842
  key: "prepareLoading",
5843
5843
  value: function(n, r) {
5844
- var a = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
5844
+ var a = this, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = arguments.length > 3 ? arguments[3] : void 0;
5845
5845
  if (!this.backend)
5846
- return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
5846
+ return this.logger.warn("No backend was added via i18next.use. Will not load resources."), o && o();
5847
5847
  typeof n == "string" && (n = this.languageUtils.toResolveHierarchy(n)), typeof r == "string" && (r = [r]);
5848
- var l = this.queueLoad(n, r, o, s);
5848
+ var l = this.queueLoad(n, r, s, o);
5849
5849
  if (!l.toLoad.length)
5850
- return l.pending.length || s(), null;
5850
+ return l.pending.length || o(), null;
5851
5851
  l.toLoad.forEach(function(c) {
5852
5852
  a.loadOne(c);
5853
5853
  });
@@ -5867,22 +5867,22 @@ var Xu = function(e) {
5867
5867
  }, {
5868
5868
  key: "loadOne",
5869
5869
  value: function(n) {
5870
- var r = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = n.split("|"), s = o[0], l = o[1];
5871
- this.read(s, l, "read", void 0, void 0, function(c, f) {
5872
- c && r.logger.warn("".concat(a, "loading namespace ").concat(l, " for language ").concat(s, " failed"), c), !c && f && r.logger.log("".concat(a, "loaded namespace ").concat(l, " for language ").concat(s), f), r.loaded(n, c, f);
5870
+ var r = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", s = n.split("|"), o = s[0], l = s[1];
5871
+ this.read(o, l, "read", void 0, void 0, function(c, f) {
5872
+ c && r.logger.warn("".concat(a, "loading namespace ").concat(l, " for language ").concat(o, " failed"), c), !c && f && r.logger.log("".concat(a, "loaded namespace ").concat(l, " for language ").concat(o), f), r.loaded(n, c, f);
5873
5873
  });
5874
5874
  }
5875
5875
  }, {
5876
5876
  key: "saveMissing",
5877
- value: function(n, r, a, o, s) {
5877
+ value: function(n, r, a, s, o) {
5878
5878
  var l = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
5879
5879
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(r)) {
5880
5880
  this.logger.warn('did not save key "'.concat(a, '" as the namespace "').concat(r, '" 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!!!");
5881
5881
  return;
5882
5882
  }
5883
- a == null || a === "" || (this.backend && this.backend.create && this.backend.create(n, r, a, o, null, X({}, l, {
5884
- isUpdate: s
5885
- })), !(!n || !n[0]) && this.store.addResource(n[0], r, a, o));
5883
+ a == null || a === "" || (this.backend && this.backend.create && this.backend.create(n, r, a, s, null, X({}, l, {
5884
+ isUpdate: o
5885
+ })), !(!n || !n[0]) && this.store.addResource(n[0], r, a, s));
5886
5886
  }
5887
5887
  }]), t;
5888
5888
  }(Te);
@@ -5949,7 +5949,7 @@ function Yu() {
5949
5949
  }
5950
5950
  };
5951
5951
  }
5952
- function Ni(e) {
5952
+ function Si(e) {
5953
5953
  return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf("cimode") < 0 && (e.whitelist = e.whitelist.concat(["cimode"])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
5954
5954
  }
5955
5955
  function Lt() {
@@ -5958,7 +5958,7 @@ var el = function(e) {
5958
5958
  Yt(t, e);
5959
5959
  function t() {
5960
5960
  var i, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
5961
- if (Oe(this, t), i = ht(this, He(t).call(this)), en && Te.call(Ie(i)), i.options = Ni(n), i.services = {}, i.logger = _e, i.modules = {
5961
+ if (Oe(this, t), i = ht(this, He(t).call(this)), en && Te.call(Ie(i)), i.options = Si(n), i.services = {}, i.logger = _e, i.modules = {
5962
5962
  external: []
5963
5963
  }, r && !i.isInitialized && !n.isClone) {
5964
5964
  if (!i.options.initImmediate)
@@ -5973,26 +5973,26 @@ var el = function(e) {
5973
5973
  key: "init",
5974
5974
  value: function() {
5975
5975
  var n = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
5976
- typeof r == "function" && (a = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = X({}, Yu(), this.options, Ni(r)), this.format = this.options.interpolation.format, a || (a = Lt);
5977
- function o(R) {
5976
+ typeof r == "function" && (a = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = X({}, Yu(), this.options, Si(r)), this.format = this.options.interpolation.format, a || (a = Lt);
5977
+ function s(R) {
5978
5978
  return R ? typeof R == "function" ? new R() : R : null;
5979
5979
  }
5980
5980
  if (!this.options.isClone) {
5981
- this.modules.logger ? _e.init(o(this.modules.logger), this.options) : _e.init(null, this.options);
5982
- var s = new $u(this.options);
5981
+ this.modules.logger ? _e.init(s(this.modules.logger), this.options) : _e.init(null, this.options);
5982
+ var o = new $u(this.options);
5983
5983
  this.store = new Ku(this.options.resources, this.options);
5984
5984
  var l = this.services;
5985
- l.logger = _e, l.resourceStore = this.store, l.languageUtils = s, l.pluralResolver = new Ju(s, {
5985
+ l.logger = _e, l.resourceStore = this.store, l.languageUtils = o, l.pluralResolver = new Ju(o, {
5986
5986
  prepend: this.options.pluralSeparator,
5987
5987
  compatibilityJSON: this.options.compatibilityJSON,
5988
5988
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
5989
5989
  }), l.interpolator = new Hu(this.options), l.utils = {
5990
5990
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
5991
- }, l.backendConnector = new Xu(o(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(R) {
5991
+ }, l.backendConnector = new Xu(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(R) {
5992
5992
  for (var b = arguments.length, _ = new Array(b > 1 ? b - 1 : 0), C = 1; C < b; C++)
5993
5993
  _[C - 1] = arguments[C];
5994
5994
  n.emit.apply(n, [R].concat(_));
5995
- }), this.modules.languageDetector && (l.languageDetector = o(this.modules.languageDetector), l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = o(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new Si(this.services, this.options), this.translator.on("*", function(R) {
5995
+ }), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new bi(this.services, this.options), this.translator.on("*", function(R) {
5996
5996
  for (var b = arguments.length, _ = new Array(b > 1 ? b - 1 : 0), C = 1; C < b; C++)
5997
5997
  _[C - 1] = arguments[C];
5998
5998
  n.emit.apply(n, [R].concat(_));
@@ -6032,10 +6032,10 @@ var el = function(e) {
6032
6032
  }, {
6033
6033
  key: "loadResources",
6034
6034
  value: function(n) {
6035
- var r = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Lt, o = a, s = typeof n == "string" ? n : this.language;
6036
- if (typeof n == "function" && (o = n), !this.options.resources || this.options.partialBundledLanguages) {
6037
- if (s && s.toLowerCase() === "cimode")
6038
- return o();
6035
+ var r = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Lt, s = a, o = typeof n == "string" ? n : this.language;
6036
+ if (typeof n == "function" && (s = n), !this.options.resources || this.options.partialBundledLanguages) {
6037
+ if (o && o.toLowerCase() === "cimode")
6038
+ return s();
6039
6039
  var l = [], c = function(O) {
6040
6040
  if (O) {
6041
6041
  var A = r.services.languageUtils.toResolveHierarchy(O);
@@ -6044,8 +6044,8 @@ var el = function(e) {
6044
6044
  });
6045
6045
  }
6046
6046
  };
6047
- if (s)
6048
- c(s);
6047
+ if (o)
6048
+ c(o);
6049
6049
  else {
6050
6050
  var f = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
6051
6051
  f.forEach(function(v) {
@@ -6054,17 +6054,17 @@ var el = function(e) {
6054
6054
  }
6055
6055
  this.options.preload && this.options.preload.forEach(function(v) {
6056
6056
  return c(v);
6057
- }), this.services.backendConnector.load(l, this.options.ns, o);
6057
+ }), this.services.backendConnector.load(l, this.options.ns, s);
6058
6058
  } else
6059
- o(null);
6059
+ s(null);
6060
6060
  }
6061
6061
  }, {
6062
6062
  key: "reloadResources",
6063
6063
  value: function(n, r, a) {
6064
- var o = tt();
6065
- return n || (n = this.languages), r || (r = this.options.ns), a || (a = Lt), this.services.backendConnector.reload(n, r, function(s) {
6066
- o.resolve(), a(s);
6067
- }), o;
6064
+ var s = tt();
6065
+ return n || (n = this.languages), r || (r = this.options.ns), a || (a = Lt), this.services.backendConnector.reload(n, r, function(o) {
6066
+ s.resolve(), a(o);
6067
+ }), s;
6068
6068
  }
6069
6069
  }, {
6070
6070
  key: "use",
@@ -6080,10 +6080,10 @@ var el = function(e) {
6080
6080
  value: function(n, r) {
6081
6081
  var a = this;
6082
6082
  this.isLanguageChangingTo = n;
6083
- var o = tt();
6083
+ var s = tt();
6084
6084
  this.emit("languageChanging", n);
6085
- var s = function(f, v) {
6086
- v ? (a.language = v, a.languages = a.services.languageUtils.toResolveHierarchy(v), a.translator.changeLanguage(v), a.isLanguageChangingTo = void 0, a.emit("languageChanged", v), a.logger.log("languageChanged", v)) : a.isLanguageChangingTo = void 0, o.resolve(function() {
6085
+ var o = function(f, v) {
6086
+ v ? (a.language = v, a.languages = a.services.languageUtils.toResolveHierarchy(v), a.translator.changeLanguage(v), a.isLanguageChangingTo = void 0, a.emit("languageChanged", v), a.logger.log("languageChanged", v)) : a.isLanguageChangingTo = void 0, s.resolve(function() {
6087
6087
  return a.t.apply(a, arguments);
6088
6088
  }), r && r(f, function() {
6089
6089
  return a.t.apply(a, arguments);
@@ -6092,15 +6092,15 @@ var el = function(e) {
6092
6092
  !n && !f && a.services.languageDetector && (f = []);
6093
6093
  var v = typeof f == "string" ? f : a.services.languageUtils.getBestMatchFromCodes(f);
6094
6094
  v && (a.language || (a.language = v, a.languages = a.services.languageUtils.toResolveHierarchy(v)), a.translator.language || a.translator.changeLanguage(v), a.services.languageDetector && a.services.languageDetector.cacheUserLanguage(v)), a.loadResources(v, function(O) {
6095
- s(O, v);
6095
+ o(O, v);
6096
6096
  });
6097
6097
  };
6098
- return !n && this.services.languageDetector && !this.services.languageDetector.async ? l(this.services.languageDetector.detect()) : !n && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(l) : l(n), o;
6098
+ return !n && this.services.languageDetector && !this.services.languageDetector.async ? l(this.services.languageDetector.detect()) : !n && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(l) : l(n), s;
6099
6099
  }
6100
6100
  }, {
6101
6101
  key: "getFixedT",
6102
6102
  value: function(n, r) {
6103
- var a = this, o = function s(l, c) {
6103
+ var a = this, s = function o(l, c) {
6104
6104
  var f;
6105
6105
  if (fe(c) !== "object") {
6106
6106
  for (var v = arguments.length, O = new Array(v > 2 ? v - 2 : 0), A = 2; A < v; A++)
@@ -6108,9 +6108,9 @@ var el = function(e) {
6108
6108
  f = a.options.overloadTranslationOptionHandler([l, c].concat(O));
6109
6109
  } else
6110
6110
  f = X({}, c);
6111
- return f.lng = f.lng || s.lng, f.lngs = f.lngs || s.lngs, f.ns = f.ns || s.ns, a.t(l, f);
6111
+ return f.lng = f.lng || o.lng, f.lngs = f.lngs || o.lngs, f.ns = f.ns || o.ns, a.t(l, f);
6112
6112
  };
6113
- return typeof n == "string" ? o.lng = n : o.lngs = n, o.ns = r, o;
6113
+ return typeof n == "string" ? s.lng = n : s.lngs = n, s.ns = r, s;
6114
6114
  }
6115
6115
  }, {
6116
6116
  key: "t",
@@ -6137,8 +6137,8 @@ var el = function(e) {
6137
6137
  return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
6138
6138
  if (!this.languages || !this.languages.length)
6139
6139
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
6140
- var o = this.languages[0], s = this.options ? this.options.fallbackLng : !1, l = this.languages[this.languages.length - 1];
6141
- if (o.toLowerCase() === "cimode")
6140
+ var s = this.languages[0], o = this.options ? this.options.fallbackLng : !1, l = this.languages[this.languages.length - 1];
6141
+ if (s.toLowerCase() === "cimode")
6142
6142
  return !0;
6143
6143
  var c = function(O, A) {
6144
6144
  var R = r.services.backendConnector.state["".concat(O, "|").concat(A)];
@@ -6149,27 +6149,27 @@ var el = function(e) {
6149
6149
  if (f !== void 0)
6150
6150
  return f;
6151
6151
  }
6152
- return !!(this.hasResourceBundle(o, n) || !this.services.backendConnector.backend || c(o, n) && (!s || c(l, n)));
6152
+ return !!(this.hasResourceBundle(s, n) || !this.services.backendConnector.backend || c(s, n) && (!o || c(l, n)));
6153
6153
  }
6154
6154
  }, {
6155
6155
  key: "loadNamespaces",
6156
6156
  value: function(n, r) {
6157
- var a = this, o = tt();
6158
- return this.options.ns ? (typeof n == "string" && (n = [n]), n.forEach(function(s) {
6159
- a.options.ns.indexOf(s) < 0 && a.options.ns.push(s);
6160
- }), this.loadResources(function(s) {
6161
- o.resolve(), r && r(s);
6162
- }), o) : (r && r(), Promise.resolve());
6157
+ var a = this, s = tt();
6158
+ return this.options.ns ? (typeof n == "string" && (n = [n]), n.forEach(function(o) {
6159
+ a.options.ns.indexOf(o) < 0 && a.options.ns.push(o);
6160
+ }), this.loadResources(function(o) {
6161
+ s.resolve(), r && r(o);
6162
+ }), s) : (r && r(), Promise.resolve());
6163
6163
  }
6164
6164
  }, {
6165
6165
  key: "loadLanguages",
6166
6166
  value: function(n, r) {
6167
6167
  var a = tt();
6168
6168
  typeof n == "string" && (n = [n]);
6169
- var o = this.options.preload || [], s = n.filter(function(l) {
6170
- return o.indexOf(l) < 0;
6169
+ var s = this.options.preload || [], o = n.filter(function(l) {
6170
+ return s.indexOf(l) < 0;
6171
6171
  });
6172
- return s.length ? (this.options.preload = o.concat(s), this.loadResources(function(l) {
6172
+ return o.length ? (this.options.preload = s.concat(o), this.loadResources(function(l) {
6173
6173
  a.resolve(), r && r(l);
6174
6174
  }), a) : (r && r(), Promise.resolve());
6175
6175
  }
@@ -6190,20 +6190,20 @@ var el = function(e) {
6190
6190
  }, {
6191
6191
  key: "cloneInstance",
6192
6192
  value: function() {
6193
- var n = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Lt, o = X({}, this.options, r, {
6193
+ var n = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Lt, s = X({}, this.options, r, {
6194
6194
  isClone: !0
6195
- }), s = new t(o), l = ["store", "services", "language"];
6195
+ }), o = new t(s), l = ["store", "services", "language"];
6196
6196
  return l.forEach(function(c) {
6197
- s[c] = n[c];
6198
- }), s.services = X({}, this.services), s.services.utils = {
6199
- hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
6200
- }, s.translator = new Si(s.services, s.options), s.translator.on("*", function(c) {
6197
+ o[c] = n[c];
6198
+ }), o.services = X({}, this.services), o.services.utils = {
6199
+ hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
6200
+ }, o.translator = new bi(o.services, o.options), o.translator.on("*", function(c) {
6201
6201
  for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), O = 1; O < f; O++)
6202
6202
  v[O - 1] = arguments[O];
6203
- s.emit.apply(s, [c].concat(v));
6204
- }), s.init(o, a), s.translator.options = s.options, s.translator.backendConnector.services.utils = {
6205
- hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
6206
- }, s;
6203
+ o.emit.apply(o, [c].concat(v));
6204
+ }), o.init(s, a), o.translator.options = o.options, o.translator.backendConnector.services.utils = {
6205
+ hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
6206
+ }, o;
6207
6207
  }
6208
6208
  }, {
6209
6209
  key: "toJSON",
@@ -6263,71 +6263,71 @@ function al(e) {
6263
6263
  var t = rl(e, "string");
6264
6264
  return mt(t) === "symbol" ? t : String(t);
6265
6265
  }
6266
- function Oi(e, t) {
6266
+ function Ni(e, t) {
6267
6267
  for (var i = 0; i < t.length; i++) {
6268
6268
  var n = t[i];
6269
6269
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, al(n.key), n);
6270
6270
  }
6271
6271
  }
6272
- function ol(e, t, i) {
6273
- return t && Oi(e.prototype, t), i && Oi(e, i), Object.defineProperty(e, "prototype", {
6272
+ function sl(e, t, i) {
6273
+ return t && Ni(e.prototype, t), i && Ni(e, i), Object.defineProperty(e, "prototype", {
6274
6274
  writable: !1
6275
6275
  }), e;
6276
6276
  }
6277
- var ea = [], sl = ea.forEach, ul = ea.slice;
6277
+ var ea = [], ol = ea.forEach, ul = ea.slice;
6278
6278
  function ll(e) {
6279
- return sl.call(ul.call(arguments, 1), function(t) {
6279
+ return ol.call(ul.call(arguments, 1), function(t) {
6280
6280
  if (t)
6281
6281
  for (var i in t)
6282
6282
  e[i] === void 0 && (e[i] = t[i]);
6283
6283
  }), e;
6284
6284
  }
6285
- var wi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6285
+ var Oi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6286
6286
  var r = n || {};
6287
6287
  r.path = r.path || "/";
6288
- var a = encodeURIComponent(i), o = "".concat(t, "=").concat(a);
6288
+ var a = encodeURIComponent(i), s = "".concat(t, "=").concat(a);
6289
6289
  if (r.maxAge > 0) {
6290
- var s = r.maxAge - 0;
6291
- if (Number.isNaN(s))
6290
+ var o = r.maxAge - 0;
6291
+ if (Number.isNaN(o))
6292
6292
  throw new Error("maxAge should be a Number");
6293
- o += "; Max-Age=".concat(Math.floor(s));
6293
+ s += "; Max-Age=".concat(Math.floor(o));
6294
6294
  }
6295
6295
  if (r.domain) {
6296
- if (!wi.test(r.domain))
6296
+ if (!Oi.test(r.domain))
6297
6297
  throw new TypeError("option domain is invalid");
6298
- o += "; Domain=".concat(r.domain);
6298
+ s += "; Domain=".concat(r.domain);
6299
6299
  }
6300
6300
  if (r.path) {
6301
- if (!wi.test(r.path))
6301
+ if (!Oi.test(r.path))
6302
6302
  throw new TypeError("option path is invalid");
6303
- o += "; Path=".concat(r.path);
6303
+ s += "; Path=".concat(r.path);
6304
6304
  }
6305
6305
  if (r.expires) {
6306
6306
  if (typeof r.expires.toUTCString != "function")
6307
6307
  throw new TypeError("option expires is invalid");
6308
- o += "; Expires=".concat(r.expires.toUTCString());
6308
+ s += "; Expires=".concat(r.expires.toUTCString());
6309
6309
  }
6310
- if (r.httpOnly && (o += "; HttpOnly"), r.secure && (o += "; Secure"), r.sameSite) {
6310
+ if (r.httpOnly && (s += "; HttpOnly"), r.secure && (s += "; Secure"), r.sameSite) {
6311
6311
  var l = typeof r.sameSite == "string" ? r.sameSite.toLowerCase() : r.sameSite;
6312
6312
  switch (l) {
6313
6313
  case !0:
6314
- o += "; SameSite=Strict";
6314
+ s += "; SameSite=Strict";
6315
6315
  break;
6316
6316
  case "lax":
6317
- o += "; SameSite=Lax";
6317
+ s += "; SameSite=Lax";
6318
6318
  break;
6319
6319
  case "strict":
6320
- o += "; SameSite=Strict";
6320
+ s += "; SameSite=Strict";
6321
6321
  break;
6322
6322
  case "none":
6323
- o += "; SameSite=None";
6323
+ s += "; SameSite=None";
6324
6324
  break;
6325
6325
  default:
6326
6326
  throw new TypeError("option sameSite is invalid");
6327
6327
  }
6328
6328
  }
6329
- return o;
6330
- }, Ei = {
6329
+ return s;
6330
+ }, wi = {
6331
6331
  create: function(t, i, n, r) {
6332
6332
  var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
6333
6333
  path: "/",
@@ -6352,13 +6352,13 @@ var wi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6352
6352
  lookup: function(t) {
6353
6353
  var i;
6354
6354
  if (t.lookupCookie && typeof document != "undefined") {
6355
- var n = Ei.read(t.lookupCookie);
6355
+ var n = wi.read(t.lookupCookie);
6356
6356
  n && (i = n);
6357
6357
  }
6358
6358
  return i;
6359
6359
  },
6360
6360
  cacheUserLanguage: function(t, i) {
6361
- i.lookupCookie && typeof document != "undefined" && Ei.create(i.lookupCookie, t, i.cookieMinutes, i.cookieDomain, i.cookieOptions);
6361
+ i.lookupCookie && typeof document != "undefined" && wi.create(i.lookupCookie, t, i.cookieMinutes, i.cookieDomain, i.cookieOptions);
6362
6362
  }
6363
6363
  }, fl = {
6364
6364
  name: "querystring",
@@ -6367,17 +6367,17 @@ var wi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6367
6367
  if (typeof window != "undefined") {
6368
6368
  var n = window.location.search;
6369
6369
  !window.location.search && window.location.hash && window.location.hash.indexOf("?") > -1 && (n = window.location.hash.substring(window.location.hash.indexOf("?")));
6370
- for (var r = n.substring(1), a = r.split("&"), o = 0; o < a.length; o++) {
6371
- var s = a[o].indexOf("=");
6372
- if (s > 0) {
6373
- var l = a[o].substring(0, s);
6374
- l === t.lookupQuerystring && (i = a[o].substring(s + 1));
6370
+ for (var r = n.substring(1), a = r.split("&"), s = 0; s < a.length; s++) {
6371
+ var o = a[s].indexOf("=");
6372
+ if (o > 0) {
6373
+ var l = a[s].substring(0, o);
6374
+ l === t.lookupQuerystring && (i = a[s].substring(o + 1));
6375
6375
  }
6376
6376
  }
6377
6377
  }
6378
6378
  return i;
6379
6379
  }
6380
- }, nt = null, Ai = function() {
6380
+ }, nt = null, Ei = function() {
6381
6381
  if (nt !== null)
6382
6382
  return nt;
6383
6383
  try {
@@ -6392,16 +6392,16 @@ var wi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6392
6392
  name: "localStorage",
6393
6393
  lookup: function(t) {
6394
6394
  var i;
6395
- if (t.lookupLocalStorage && Ai()) {
6395
+ if (t.lookupLocalStorage && Ei()) {
6396
6396
  var n = window.localStorage.getItem(t.lookupLocalStorage);
6397
6397
  n && (i = n);
6398
6398
  }
6399
6399
  return i;
6400
6400
  },
6401
6401
  cacheUserLanguage: function(t, i) {
6402
- i.lookupLocalStorage && Ai() && window.localStorage.setItem(i.lookupLocalStorage, t);
6402
+ i.lookupLocalStorage && Ei() && window.localStorage.setItem(i.lookupLocalStorage, t);
6403
6403
  }
6404
- }, it = null, Fi = function() {
6404
+ }, it = null, Ai = function() {
6405
6405
  if (it !== null)
6406
6406
  return it;
6407
6407
  try {
@@ -6416,14 +6416,14 @@ var wi = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cl = function(t, i, n) {
6416
6416
  name: "sessionStorage",
6417
6417
  lookup: function(t) {
6418
6418
  var i;
6419
- if (t.lookupSessionStorage && Fi()) {
6419
+ if (t.lookupSessionStorage && Ai()) {
6420
6420
  var n = window.sessionStorage.getItem(t.lookupSessionStorage);
6421
6421
  n && (i = n);
6422
6422
  }
6423
6423
  return i;
6424
6424
  },
6425
6425
  cacheUserLanguage: function(t, i) {
6426
- i.lookupSessionStorage && Fi() && window.sessionStorage.setItem(i.lookupSessionStorage, t);
6426
+ i.lookupSessionStorage && Ai() && window.sessionStorage.setItem(i.lookupSessionStorage, t);
6427
6427
  }
6428
6428
  }, vl = {
6429
6429
  name: "navigator",
@@ -6489,7 +6489,7 @@ var ta = /* @__PURE__ */ function() {
6489
6489
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6490
6490
  il(this, e), this.type = "languageDetector", this.detectors = {}, this.init(t, i);
6491
6491
  }
6492
- return ol(e, [{
6492
+ return sl(e, [{
6493
6493
  key: "init",
6494
6494
  value: function(i) {
6495
6495
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -6512,8 +6512,8 @@ var ta = /* @__PURE__ */ function() {
6512
6512
  var r = [];
6513
6513
  return i.forEach(function(a) {
6514
6514
  if (n.detectors[a]) {
6515
- var o = n.detectors[a].lookup(n.options);
6516
- o && typeof o == "string" && (o = [o]), o && (r = r.concat(o));
6515
+ var s = n.detectors[a].lookup(n.options);
6516
+ s && typeof s == "string" && (s = [s]), s && (r = r.concat(s));
6517
6517
  }
6518
6518
  }), r = r.map(function(a) {
6519
6519
  return n.options.convertDetectedLanguage(a);
@@ -6552,7 +6552,7 @@ const _l = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
6552
6552
  "&#x2F;": "/",
6553
6553
  "&#47;": "/"
6554
6554
  }, Sl = (e) => bl[e], Nl = (e) => e.replace(_l, Sl);
6555
- let Ci = {
6555
+ let Fi = {
6556
6556
  bindI18n: "languageChanged",
6557
6557
  bindI18nStore: "",
6558
6558
  transEmptyNodeValue: "",
@@ -6564,8 +6564,8 @@ let Ci = {
6564
6564
  };
6565
6565
  function Ol() {
6566
6566
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6567
- Ci = {
6568
- ...Ci,
6567
+ Fi = {
6568
+ ...Fi,
6569
6569
  ...e
6570
6570
  };
6571
6571
  }
@@ -6655,50 +6655,50 @@ function yc(e) {
6655
6655
  }
6656
6656
  export {
6657
6657
  zr as AccountContractStatusTypes,
6658
- Ts as AccountContractTypes,
6658
+ To as AccountContractTypes,
6659
6659
  rc as AccountInvalidError,
6660
- xs as AccountPlanDescriptionTypes,
6661
- Is as AccountRestRepository,
6662
- Vs as AccountService,
6663
- Ls as AccountSubscriptionTypes,
6660
+ xo as AccountPlanDescriptionTypes,
6661
+ Io as AccountRestRepository,
6662
+ Vo as AccountService,
6663
+ Lo as AccountSubscriptionTypes,
6664
6664
  Gr as AccountTypes,
6665
- Cs as AggregateRoot,
6665
+ Co as AggregateRoot,
6666
6666
  kc as ApiGraphqlTypes,
6667
- oc as BaseMobxStore,
6667
+ sc as BaseMobxStore,
6668
6668
  Xt as DomainError,
6669
6669
  mc as EventBusWildcards,
6670
6670
  vc as EventNames,
6671
- Ps as GlobalPageSectionTypes,
6672
- _s as InvalidNizzaGlobalObjectError,
6671
+ Po as GlobalPageSectionTypes,
6672
+ _o as InvalidNizzaGlobalObjectError,
6673
6673
  xu as LanguageTypes,
6674
- jn as NizzaAccount,
6674
+ Vn as NizzaAccount,
6675
6675
  Lu as NizzaEventStatus,
6676
6676
  Du as NizzaProductRequestOriginTypes,
6677
6677
  Pt as NizzaStore,
6678
6678
  Pu as NizzaVariationTypes,
6679
- ks as ResourceNotFoundError,
6679
+ ko as ResourceNotFoundError,
6680
6680
  uc as StoreProvider,
6681
- ys as UnexpectedError,
6682
- sc as ValueObject,
6681
+ yo as UnexpectedError,
6682
+ oc as ValueObject,
6683
6683
  En as accountAtom,
6684
6684
  Kr as accountService,
6685
6685
  ec as apiCall,
6686
- Rs as createAggregateRoot,
6687
- ws as createLogger,
6686
+ Ro as createAggregateRoot,
6687
+ wo as createLogger,
6688
6688
  yc as createStore,
6689
- Pi as customFetch,
6689
+ xi as customFetch,
6690
6690
  tc as downloadFile,
6691
6691
  ic as fileOrigin,
6692
6692
  Tu as getAccount,
6693
- As as getLogger,
6693
+ Ao as getLogger,
6694
6694
  cc as getStore,
6695
6695
  Ru as globalAtomStore,
6696
6696
  gc as i18n,
6697
- Fs as initializeLogger,
6697
+ Fo as initializeLogger,
6698
6698
  Fa as jsDownload,
6699
6699
  ac as logger,
6700
- Vn as nizza,
6701
- Es as registerLogger,
6700
+ Ur as nizza,
6701
+ Eo as registerLogger,
6702
6702
  pc as registerTranslations,
6703
6703
  nc as searchParams,
6704
6704
  Ra as shortId,