@nizza/core 0.3.0-alpha.0 → 0.3.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,33 @@
1
- import { jsx as et } from "react/jsx-runtime";
2
- import { createContext as Gn, useContext as Mt, useMemo as Kn, lazy as zn, Suspense as qn } from "react";
3
- var Wn = /* @__PURE__ */ ((e) => (e.COMBO = "Combo", e))(Wn || {});
4
- class Hn {
5
- aggregate;
6
- _numSetPropsApplied = 0;
1
+ var Xn = Object.defineProperty, Jn = Object.defineProperties;
2
+ var Yn = Object.getOwnPropertyDescriptors;
3
+ var Fe = Object.getOwnPropertySymbols;
4
+ var Nt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable;
5
+ var Qe = (e, t, i) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, ue = (e, t) => {
6
+ for (var i in t || (t = {}))
7
+ Nt.call(t, i) && Qe(e, i, t[i]);
8
+ if (Fe)
9
+ for (var i of Fe(t))
10
+ Ot.call(t, i) && Qe(e, i, t[i]);
11
+ return e;
12
+ }, At = (e, t) => Jn(e, Yn(t));
13
+ var wt = (e, t) => {
14
+ var i = {};
15
+ for (var n in e)
16
+ Nt.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
17
+ if (e != null && Fe)
18
+ for (var n of Fe(e))
19
+ t.indexOf(n) < 0 && Ot.call(e, n) && (i[n] = e[n]);
20
+ return i;
21
+ };
22
+ var y = (e, t, i) => (Qe(e, typeof t != "symbol" ? t + "" : t, i), i);
23
+ import { jsx as rt } from "react/jsx-runtime";
24
+ import { createContext as Qn, useContext as Wt, useMemo as Zn, lazy as ei, Suspense as ti } from "react";
25
+ import Ft from "js-cookie";
26
+ var ni = /* @__PURE__ */ ((e) => (e.COMBO = "Combo", e))(ni || {});
27
+ class ii {
7
28
  constructor(t) {
29
+ y(this, "aggregate");
30
+ y(this, "_numSetPropsApplied", 0);
8
31
  this.aggregate = t;
9
32
  }
10
33
  setProps(t) {
@@ -16,24 +39,32 @@ class Hn {
16
39
  return this._numSetPropsApplied === 1;
17
40
  }
18
41
  }
19
- function Zr(e) {
20
- return new Hn(e);
42
+ function va(e) {
43
+ return new ii(e);
21
44
  }
22
- class ea {
45
+ class ma {
46
+ }
47
+ class ha {
48
+ constructor(t) {
49
+ y(this, "_value");
50
+ t !== void 0 && (this._value = t);
51
+ }
52
+ get value() {
53
+ return this._value;
54
+ }
23
55
  }
24
- class dt extends Error {
56
+ class Ue extends Error {
25
57
  constructor(t, i, n) {
26
58
  super(i), this.value = n, this.name = t;
27
59
  }
28
60
  toDTO() {
29
- return {
61
+ return ue({
30
62
  name: this.name,
31
- message: this.message,
32
- ...this.value && { value: this.value }
33
- };
63
+ message: this.message
64
+ }, this.value && { value: this.value });
34
65
  }
35
66
  }
36
- class ta extends dt {
67
+ class _a extends Ue {
37
68
  constructor(t) {
38
69
  super(
39
70
  "RESOURCE_NOT_FOUND_ERROR",
@@ -42,80 +73,90 @@ class ta extends dt {
42
73
  );
43
74
  }
44
75
  }
45
- class na extends dt {
76
+ class pa extends Ue {
46
77
  constructor(t) {
78
+ var i;
47
79
  super(
48
80
  "APP_UNEXPECTED_ERROR",
49
- t.message ?? "An unexpected error occurred.",
81
+ (i = t.message) != null ? i : "An unexpected error occurred.",
50
82
  t
51
83
  );
52
84
  }
53
85
  }
54
- class ia extends dt {
86
+ class ka extends Ue {
55
87
  constructor() {
56
88
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
57
89
  }
58
90
  }
59
- class ra {
60
- _value;
91
+ class ri extends Ue {
61
92
  constructor(t) {
62
- t !== void 0 && (this._value = t);
63
- }
64
- get value() {
65
- return this._value;
93
+ super(
94
+ "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
95
+ `
96
+ Configuration property invalid: "${t}".
97
+
98
+ It looks like you are trying to use a configuration property that is required but is "undefined", make sure you have initialized the global object "nizza".
99
+
100
+ * If you are using the @nizza/core library:
101
+
102
+ import { nizza } from '@nizza/core';
103
+
104
+ nizza.configure({
105
+ account: env.account,
106
+ ...
107
+ });
108
+
109
+ * If you are using the window:
110
+
111
+ window.nizza.configure({
112
+ account: env.account,
113
+ ...
114
+ });
115
+ `
116
+ );
66
117
  }
67
118
  }
68
- let ct = /* @__PURE__ */ new Map();
69
- const tt = Gn(ct), aa = ({ children: e, stores: t, instances: i }) => {
70
- const n = Mt(tt), r = Kn(() => {
71
- const a = /* @__PURE__ */ new Map();
72
- return t.forEach((o) => {
73
- let s;
74
- try {
75
- s = o();
76
- } catch {
77
- s = new o();
78
- }
79
- a.set(o, s);
80
- }), i?.forEach(
81
- (o) => a.set(o.constructor, o)
82
- ), ct = new Map([...n, ...a]);
119
+ let vt = /* @__PURE__ */ new Map();
120
+ const at = Qn(vt), ba = ({ children: e, stores: t }) => {
121
+ const i = Wt(at), n = Zn(() => {
122
+ const r = /* @__PURE__ */ new Map();
123
+ return t.forEach((a) => r.set(a.class, a.value)), vt = new Map([...i, ...r]);
83
124
  }, []);
84
- return /* @__PURE__ */ et(tt.Provider, { value: r, children: e });
125
+ return /* @__PURE__ */ rt(at.Provider, { value: n, children: e });
85
126
  };
86
- function oa(e) {
87
- return Mt(tt).get(e);
127
+ function ga(e) {
128
+ return Wt(at).get(e);
88
129
  }
89
- function sa(e) {
90
- return ct.get(e);
130
+ function ya(e) {
131
+ return vt.get(e);
91
132
  }
92
133
  function m(e) {
93
134
  for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
94
135
  i[n - 1] = arguments[n];
95
136
  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);
96
137
  }
97
- var Xn = {};
98
- function $t() {
99
- return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Xn;
138
+ var ai = {};
139
+ function Ht() {
140
+ return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : ai;
100
141
  }
101
- var Jn = Object.assign, De = Object.getOwnPropertyDescriptor, x = Object.defineProperty, Le = Object.prototype, nt = [];
102
- Object.freeze(nt);
103
- var Gt = {};
104
- Object.freeze(Gt);
105
- var Yn = typeof Proxy < "u", Qn = /* @__PURE__ */ Object.toString();
106
- function Kt() {
107
- Yn || m("Proxy not available");
142
+ var oi = Object.assign, je = Object.getOwnPropertyDescriptor, V = Object.defineProperty, Ge = Object.prototype, ot = [];
143
+ Object.freeze(ot);
144
+ var Xt = {};
145
+ Object.freeze(Xt);
146
+ var si = typeof Proxy != "undefined", ui = /* @__PURE__ */ Object.toString();
147
+ function Jt() {
148
+ si || m("Proxy not available");
108
149
  }
109
- function zt(e) {
150
+ function Yt(e) {
110
151
  var t = !1;
111
152
  return function() {
112
153
  if (!t)
113
154
  return t = !0, e.apply(this, arguments);
114
155
  };
115
156
  }
116
- var J = function() {
157
+ var Y = function() {
117
158
  };
118
- function C(e) {
159
+ function E(e) {
119
160
  return typeof e == "function";
120
161
  }
121
162
  function K(e) {
@@ -128,134 +169,134 @@ function K(e) {
128
169
  }
129
170
  return !1;
130
171
  }
131
- function Ue(e) {
172
+ function $e(e) {
132
173
  return e !== null && typeof e == "object";
133
174
  }
134
175
  function R(e) {
135
- if (!Ue(e))
176
+ if (!$e(e))
136
177
  return !1;
137
178
  var t = Object.getPrototypeOf(e);
138
179
  if (t == null)
139
180
  return !0;
140
181
  var i = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
141
- return typeof i == "function" && i.toString() === Qn;
182
+ return typeof i == "function" && i.toString() === ui;
142
183
  }
143
- function qt(e) {
144
- var t = e?.constructor;
184
+ function Qt(e) {
185
+ var t = e == null ? void 0 : e.constructor;
145
186
  return t ? t.name === "GeneratorFunction" || t.displayName === "GeneratorFunction" : !1;
146
187
  }
147
- function Me(e, t, i) {
148
- x(e, t, {
188
+ function ze(e, t, i) {
189
+ V(e, t, {
149
190
  enumerable: !1,
150
191
  writable: !0,
151
192
  configurable: !0,
152
193
  value: i
153
194
  });
154
195
  }
155
- function Wt(e, t, i) {
156
- x(e, t, {
196
+ function Zt(e, t, i) {
197
+ V(e, t, {
157
198
  enumerable: !1,
158
199
  writable: !1,
159
200
  configurable: !0,
160
201
  value: i
161
202
  });
162
203
  }
163
- function q(e, t) {
204
+ function W(e, t) {
164
205
  var i = "isMobX" + e;
165
206
  return t.prototype[i] = !0, function(n) {
166
- return Ue(n) && n[i] === !0;
207
+ return $e(n) && n[i] === !0;
167
208
  };
168
209
  }
169
- function ie(e) {
210
+ function re(e) {
170
211
  return e instanceof Map;
171
212
  }
172
- function _e(e) {
213
+ function ke(e) {
173
214
  return e instanceof Set;
174
215
  }
175
- var Ht = typeof Object.getOwnPropertySymbols < "u";
176
- function Zn(e) {
216
+ var en = typeof Object.getOwnPropertySymbols != "undefined";
217
+ function li(e) {
177
218
  var t = Object.keys(e);
178
- if (!Ht)
219
+ if (!en)
179
220
  return t;
180
221
  var i = Object.getOwnPropertySymbols(e);
181
222
  return i.length ? [].concat(t, i.filter(function(n) {
182
- return Le.propertyIsEnumerable.call(e, n);
223
+ return Ge.propertyIsEnumerable.call(e, n);
183
224
  })) : t;
184
225
  }
185
- var le = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Ht ? function(e) {
226
+ var ce = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : en ? function(e) {
186
227
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
187
228
  } : (
188
229
  /* istanbul ignore next */
189
230
  Object.getOwnPropertyNames
190
231
  );
191
- function Xt(e) {
232
+ function tn(e) {
192
233
  return e === null ? null : typeof e == "object" ? "" + e : e;
193
234
  }
194
- function L(e, t) {
195
- return Le.hasOwnProperty.call(e, t);
235
+ function M(e, t) {
236
+ return Ge.hasOwnProperty.call(e, t);
196
237
  }
197
- var ei = Object.getOwnPropertyDescriptors || function(t) {
238
+ var di = Object.getOwnPropertyDescriptors || function(t) {
198
239
  var i = {};
199
- return le(t).forEach(function(n) {
200
- i[n] = De(t, n);
240
+ return ce(t).forEach(function(n) {
241
+ i[n] = je(t, n);
201
242
  }), i;
202
243
  };
203
- function yt(e, t) {
244
+ function Et(e, t) {
204
245
  for (var i = 0; i < t.length; i++) {
205
246
  var n = t[i];
206
247
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
207
248
  }
208
249
  }
209
- function ft(e, t, i) {
210
- return t && yt(e.prototype, t), i && yt(e, i), Object.defineProperty(e, "prototype", {
250
+ function mt(e, t, i) {
251
+ return t && Et(e.prototype, t), i && Et(e, i), Object.defineProperty(e, "prototype", {
211
252
  writable: !1
212
253
  }), e;
213
254
  }
214
- function de() {
215
- return de = Object.assign || function(e) {
255
+ function fe() {
256
+ return fe = Object.assign || function(e) {
216
257
  for (var t = 1; t < arguments.length; t++) {
217
258
  var i = arguments[t];
218
259
  for (var n in i)
219
260
  Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
220
261
  }
221
262
  return e;
222
- }, de.apply(this, arguments);
263
+ }, fe.apply(this, arguments);
223
264
  }
224
- function Jt(e, t) {
225
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, it(e, t);
265
+ function nn(e, t) {
266
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, st(e, t);
226
267
  }
227
- function it(e, t) {
228
- return it = Object.setPrototypeOf || function(n, r) {
268
+ function st(e, t) {
269
+ return st = Object.setPrototypeOf || function(n, r) {
229
270
  return n.__proto__ = r, n;
230
- }, it(e, t);
271
+ }, st(e, t);
231
272
  }
232
- function St(e) {
273
+ function Ct(e) {
233
274
  if (e === void 0)
234
275
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
235
276
  return e;
236
277
  }
237
- function ti(e, t) {
278
+ function ci(e, t) {
238
279
  if (e) {
239
280
  if (typeof e == "string")
240
- return Nt(e, t);
281
+ return Tt(e, t);
241
282
  var i = Object.prototype.toString.call(e).slice(8, -1);
242
283
  if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set")
243
284
  return Array.from(e);
244
285
  if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))
245
- return Nt(e, t);
286
+ return Tt(e, t);
246
287
  }
247
288
  }
248
- function Nt(e, t) {
289
+ function Tt(e, t) {
249
290
  (t == null || t > e.length) && (t = e.length);
250
291
  for (var i = 0, n = new Array(t); i < t; i++)
251
292
  n[i] = e[i];
252
293
  return n;
253
294
  }
254
- function Y(e, t) {
255
- var i = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
295
+ function Q(e, t) {
296
+ var i = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
256
297
  if (i)
257
298
  return (i = i.call(e)).next.bind(i);
258
- if (Array.isArray(e) || (i = ti(e)) || t && e && typeof e.length == "number") {
299
+ if (Array.isArray(e) || (i = ci(e)) || t && e && typeof e.length == "number") {
259
300
  i && (e = i);
260
301
  var n = 0;
261
302
  return function() {
@@ -270,15 +311,15 @@ function Y(e, t) {
270
311
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
271
312
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
272
313
  }
273
- var Q = /* @__PURE__ */ Symbol("mobx-stored-annotations");
274
- function T(e) {
314
+ var Z = /* @__PURE__ */ Symbol("mobx-stored-annotations");
315
+ function P(e) {
275
316
  function t(i, n) {
276
- pe(i, n, e);
317
+ be(i, n, e);
277
318
  }
278
319
  return Object.assign(t, e);
279
320
  }
280
- function pe(e, t, i) {
281
- L(e, Q) || Me(e, Q, de({}, e[Q])), li(i) || (e[Q][t] = i);
321
+ function be(e, t, i) {
322
+ M(e, Z) || ze(e, Z, fe({}, e[Z])), bi(i) || (e[Z][t] = i);
282
323
  }
283
324
  var f = /* @__PURE__ */ Symbol("mobx administration"), ge = /* @__PURE__ */ function() {
284
325
  function e(i) {
@@ -294,49 +335,49 @@ var f = /* @__PURE__ */ Symbol("mobx administration"), ge = /* @__PURE__ */ func
294
335
  return n();
295
336
  });
296
337
  }, t.reportObserved = function() {
297
- return _n(this);
338
+ return Sn(this);
298
339
  }, t.reportChanged = function() {
299
- y(), pn(this), S();
340
+ S(), Nn(this), N();
300
341
  }, t.toString = function() {
301
342
  return this.name_;
302
343
  }, e;
303
- }(), vt = /* @__PURE__ */ q("Atom", ge);
304
- function Yt(e, t, i) {
305
- t === void 0 && (t = J), i === void 0 && (i = J);
344
+ }(), ht = /* @__PURE__ */ W("Atom", ge);
345
+ function rn(e, t, i) {
346
+ t === void 0 && (t = Y), i === void 0 && (i = Y);
306
347
  var n = new ge(e);
307
- return t !== J && ur(n, t), i !== J && On(n, i), n;
348
+ return t !== Y && kr(n, t), i !== Y && Tn(n, i), n;
308
349
  }
309
- function ni(e, t) {
350
+ function fi(e, t) {
310
351
  return e === t;
311
352
  }
312
- function ii(e, t) {
313
- return bt(e, t);
353
+ function vi(e, t) {
354
+ return yt(e, t);
314
355
  }
315
- function ri(e, t) {
316
- return bt(e, t, 1);
356
+ function mi(e, t) {
357
+ return yt(e, t, 1);
317
358
  }
318
- function ai(e, t) {
359
+ function hi(e, t) {
319
360
  return Object.is ? Object.is(e, t) : e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
320
361
  }
321
- var Pe = {
322
- identity: ni,
323
- structural: ii,
324
- default: ai,
325
- shallow: ri
362
+ var xe = {
363
+ identity: fi,
364
+ structural: vi,
365
+ default: hi,
366
+ shallow: mi
326
367
  };
327
- function te(e, t, i) {
328
- return En(e) ? e : Array.isArray(e) ? b.array(e, {
368
+ function ne(e, t, i) {
369
+ return xn(e) ? e : Array.isArray(e) ? b.array(e, {
329
370
  name: i
330
371
  }) : R(e) ? b.object(e, void 0, {
331
372
  name: i
332
- }) : ie(e) ? b.map(e, {
373
+ }) : re(e) ? b.map(e, {
333
374
  name: i
334
- }) : _e(e) ? b.set(e, {
375
+ }) : ke(e) ? b.set(e, {
335
376
  name: i
336
- }) : typeof e == "function" && !_t(e) && !Ve(e) ? qt(e) ? ve(e) : fe(i, e) : e;
377
+ }) : typeof e == "function" && !kt(e) && !Be(e) ? Qt(e) ? he(e) : me(i, e) : e;
337
378
  }
338
- function oi(e, t, i) {
339
- if (e == null || me(e) || qe(e) || W(e) || ae(e))
379
+ function _i(e, t, i) {
380
+ if (e == null || _e(e) || Xe(e) || H(e) || oe(e))
340
381
  return e;
341
382
  if (Array.isArray(e))
342
383
  return b.array(e, {
@@ -348,63 +389,63 @@ function oi(e, t, i) {
348
389
  name: i,
349
390
  deep: !1
350
391
  });
351
- if (ie(e))
392
+ if (re(e))
352
393
  return b.map(e, {
353
394
  name: i,
354
395
  deep: !1
355
396
  });
356
- if (_e(e))
397
+ if (ke(e))
357
398
  return b.set(e, {
358
399
  name: i,
359
400
  deep: !1
360
401
  });
361
402
  }
362
- function $e(e) {
403
+ function Ke(e) {
363
404
  return e;
364
405
  }
365
- function si(e, t) {
366
- return bt(e, t) ? t : e;
406
+ function pi(e, t) {
407
+ return yt(e, t) ? t : e;
367
408
  }
368
- var ui = "override";
369
- function li(e) {
370
- return e.annotationType_ === ui;
409
+ var ki = "override";
410
+ function bi(e) {
411
+ return e.annotationType_ === ki;
371
412
  }
372
- function be(e, t) {
413
+ function ye(e, t) {
373
414
  return {
374
415
  annotationType_: e,
375
416
  options_: t,
376
- make_: di,
377
- extend_: ci
417
+ make_: gi,
418
+ extend_: yi
378
419
  };
379
420
  }
380
- function di(e, t, i, n) {
421
+ function gi(e, t, i, n) {
381
422
  var r;
382
423
  if ((r = this.options_) != null && r.bound)
383
424
  return this.extend_(e, t, i, !1) === null ? 0 : 1;
384
425
  if (n === e.target_)
385
426
  return this.extend_(e, t, i, !1) === null ? 0 : 2;
386
- if (_t(i.value))
427
+ if (kt(i.value))
387
428
  return 1;
388
- var a = Qt(e, this, t, i, !1);
389
- return x(n, t, a), 2;
429
+ var a = an(e, this, t, i, !1);
430
+ return V(n, t, a), 2;
390
431
  }
391
- function ci(e, t, i, n) {
392
- var r = Qt(e, this, t, i);
432
+ function yi(e, t, i, n) {
433
+ var r = an(e, this, t, i);
393
434
  return e.defineProperty_(t, r, n);
394
435
  }
395
- function fi(e, t, i, n) {
436
+ function Si(e, t, i, n) {
396
437
  t.annotationType_, n.value;
397
438
  }
398
- function Qt(e, t, i, n, r) {
439
+ function an(e, t, i, n, r) {
399
440
  var a, o, s, u, l, c, h;
400
- r === void 0 && (r = d.safeDescriptors), fi(e, t, i, n);
441
+ r === void 0 && (r = d.safeDescriptors), Si(e, t, i, n);
401
442
  var _ = n.value;
402
443
  if ((a = t.options_) != null && a.bound) {
403
- var P;
404
- _ = _.bind((P = e.proxy_) != null ? P : e.target_);
444
+ var j;
445
+ _ = _.bind((j = e.proxy_) != null ? j : e.target_);
405
446
  }
406
447
  return {
407
- value: ne(
448
+ value: ie(
408
449
  (o = (s = t.options_) == null ? void 0 : s.name) != null ? o : i.toString(),
409
450
  _,
410
451
  (u = (l = t.options_) == null ? void 0 : l.autoAction) != null ? u : !1,
@@ -421,36 +462,36 @@ function Qt(e, t, i, n, r) {
421
462
  writable: !r
422
463
  };
423
464
  }
424
- function Zt(e, t) {
465
+ function on(e, t) {
425
466
  return {
426
467
  annotationType_: e,
427
468
  options_: t,
428
- make_: vi,
429
- extend_: mi
469
+ make_: Ni,
470
+ extend_: Oi
430
471
  };
431
472
  }
432
- function vi(e, t, i, n) {
473
+ function Ni(e, t, i, n) {
433
474
  var r;
434
475
  if (n === e.target_)
435
476
  return this.extend_(e, t, i, !1) === null ? 0 : 2;
436
- if ((r = this.options_) != null && r.bound && (!L(e.target_, t) || !Ve(e.target_[t])) && this.extend_(e, t, i, !1) === null)
477
+ if ((r = this.options_) != null && r.bound && (!M(e.target_, t) || !Be(e.target_[t])) && this.extend_(e, t, i, !1) === null)
437
478
  return 0;
438
- if (Ve(i.value))
479
+ if (Be(i.value))
439
480
  return 1;
440
- var a = en(e, this, t, i, !1, !1);
441
- return x(n, t, a), 2;
481
+ var a = sn(e, this, t, i, !1, !1);
482
+ return V(n, t, a), 2;
442
483
  }
443
- function mi(e, t, i, n) {
444
- var r, a = en(e, this, t, i, (r = this.options_) == null ? void 0 : r.bound);
484
+ function Oi(e, t, i, n) {
485
+ var r, a = sn(e, this, t, i, (r = this.options_) == null ? void 0 : r.bound);
445
486
  return e.defineProperty_(t, a, n);
446
487
  }
447
- function hi(e, t, i, n) {
488
+ function Ai(e, t, i, n) {
448
489
  t.annotationType_, n.value;
449
490
  }
450
- function en(e, t, i, n, r, a) {
451
- a === void 0 && (a = d.safeDescriptors), hi(e, t, i, n);
491
+ function sn(e, t, i, n, r, a) {
492
+ a === void 0 && (a = d.safeDescriptors), Ai(e, t, i, n);
452
493
  var o = n.value;
453
- if (Ve(o) || (o = ve(o)), r) {
494
+ if (Be(o) || (o = he(o)), r) {
454
495
  var s;
455
496
  o = o.bind((s = e.proxy_) != null ? s : e.target_), o.isMobXFlow = !0;
456
497
  }
@@ -466,74 +507,74 @@ function en(e, t, i, n, r, a) {
466
507
  writable: !a
467
508
  };
468
509
  }
469
- function mt(e, t) {
510
+ function _t(e, t) {
470
511
  return {
471
512
  annotationType_: e,
472
513
  options_: t,
473
- make_: _i,
474
- extend_: pi
514
+ make_: wi,
515
+ extend_: Fi
475
516
  };
476
517
  }
477
- function _i(e, t, i) {
518
+ function wi(e, t, i) {
478
519
  return this.extend_(e, t, i, !1) === null ? 0 : 1;
479
520
  }
480
- function pi(e, t, i, n) {
481
- return gi(e, this, t, i), e.defineComputedProperty_(t, de({}, this.options_, {
521
+ function Fi(e, t, i, n) {
522
+ return Ei(e, this, t, i), e.defineComputedProperty_(t, fe({}, this.options_, {
482
523
  get: i.get,
483
524
  set: i.set
484
525
  }), n);
485
526
  }
486
- function gi(e, t, i, n) {
527
+ function Ei(e, t, i, n) {
487
528
  t.annotationType_, n.get;
488
529
  }
489
- function Ge(e, t) {
530
+ function qe(e, t) {
490
531
  return {
491
532
  annotationType_: e,
492
533
  options_: t,
493
- make_: bi,
494
- extend_: ki
534
+ make_: Ci,
535
+ extend_: Ti
495
536
  };
496
537
  }
497
- function bi(e, t, i) {
538
+ function Ci(e, t, i) {
498
539
  return this.extend_(e, t, i, !1) === null ? 0 : 1;
499
540
  }
500
- function ki(e, t, i, n) {
541
+ function Ti(e, t, i, n) {
501
542
  var r, a;
502
- return yi(e, this), e.defineObservableProperty_(t, i.value, (r = (a = this.options_) == null ? void 0 : a.enhancer) != null ? r : te, n);
543
+ return Pi(e, this), e.defineObservableProperty_(t, i.value, (r = (a = this.options_) == null ? void 0 : a.enhancer) != null ? r : ne, n);
503
544
  }
504
- function yi(e, t, i, n) {
545
+ function Pi(e, t, i, n) {
505
546
  t.annotationType_;
506
547
  }
507
- var Si = "true", Ni = /* @__PURE__ */ tn();
508
- function tn(e) {
548
+ var Di = "true", ji = /* @__PURE__ */ un();
549
+ function un(e) {
509
550
  return {
510
- annotationType_: Si,
551
+ annotationType_: Di,
511
552
  options_: e,
512
- make_: Oi,
513
- extend_: Ai
553
+ make_: xi,
554
+ extend_: Vi
514
555
  };
515
556
  }
516
- function Oi(e, t, i, n) {
557
+ function xi(e, t, i, n) {
517
558
  var r, a;
518
559
  if (i.get)
519
- return Ke.make_(e, t, i, n);
560
+ return We.make_(e, t, i, n);
520
561
  if (i.set) {
521
- var o = ne(t.toString(), i.set);
562
+ var o = ie(t.toString(), i.set);
522
563
  return n === e.target_ ? e.defineProperty_(t, {
523
564
  configurable: d.safeDescriptors ? e.isPlainObject_ : !0,
524
565
  set: o
525
- }) === null ? 0 : 2 : (x(n, t, {
566
+ }) === null ? 0 : 2 : (V(n, t, {
526
567
  configurable: !0,
527
568
  set: o
528
569
  }), 2);
529
570
  }
530
571
  if (n !== e.target_ && typeof i.value == "function") {
531
572
  var s;
532
- if (qt(i.value)) {
533
- var u, l = (u = this.options_) != null && u.autoBind ? ve.bound : ve;
573
+ if (Qt(i.value)) {
574
+ var u, l = (u = this.options_) != null && u.autoBind ? he.bound : he;
534
575
  return l.make_(e, t, i, n);
535
576
  }
536
- var c = (s = this.options_) != null && s.autoBind ? fe.bound : fe;
577
+ var c = (s = this.options_) != null && s.autoBind ? me.bound : me;
537
578
  return c.make_(e, t, i, n);
538
579
  }
539
580
  var h = ((r = this.options_) == null ? void 0 : r.deep) === !1 ? b.ref : b;
@@ -543,14 +584,14 @@ function Oi(e, t, i, n) {
543
584
  }
544
585
  return h.make_(e, t, i, n);
545
586
  }
546
- function Ai(e, t, i, n) {
587
+ function Vi(e, t, i, n) {
547
588
  var r, a;
548
589
  if (i.get)
549
- return Ke.extend_(e, t, i, n);
590
+ return We.extend_(e, t, i, n);
550
591
  if (i.set)
551
592
  return e.defineProperty_(t, {
552
593
  configurable: d.safeDescriptors ? e.isPlainObject_ : !0,
553
- set: ne(t.toString(), i.set)
594
+ set: ie(t.toString(), i.set)
554
595
  }, n);
555
596
  if (typeof i.value == "function" && (r = this.options_) != null && r.autoBind) {
556
597
  var o;
@@ -559,144 +600,144 @@ function Ai(e, t, i, n) {
559
600
  var s = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? b.ref : b;
560
601
  return s.extend_(e, t, i, n);
561
602
  }
562
- var wi = "observable", Ci = "observable.ref", Ei = "observable.shallow", Fi = "observable.struct", nn = {
603
+ var Ri = "observable", Ii = "observable.ref", Bi = "observable.shallow", Li = "observable.struct", ln = {
563
604
  deep: !0,
564
605
  name: void 0,
565
606
  defaultDecorator: void 0,
566
607
  proxy: !0
567
608
  };
568
- Object.freeze(nn);
569
- function Ae(e) {
570
- return e || nn;
571
- }
572
- var rn = /* @__PURE__ */ Ge(wi), Ti = /* @__PURE__ */ Ge(Ci, {
573
- enhancer: $e
574
- }), Di = /* @__PURE__ */ Ge(Ei, {
575
- enhancer: oi
576
- }), Pi = /* @__PURE__ */ Ge(Fi, {
577
- enhancer: si
578
- }), an = /* @__PURE__ */ T(rn);
579
- function we(e) {
580
- return e.deep === !0 ? te : e.deep === !1 ? $e : xi(e.defaultDecorator);
581
- }
582
- function ji(e) {
609
+ Object.freeze(ln);
610
+ function Ee(e) {
611
+ return e || ln;
612
+ }
613
+ var dn = /* @__PURE__ */ qe(Ri), Mi = /* @__PURE__ */ qe(Ii, {
614
+ enhancer: Ke
615
+ }), Ui = /* @__PURE__ */ qe(Bi, {
616
+ enhancer: _i
617
+ }), Gi = /* @__PURE__ */ qe(Li, {
618
+ enhancer: pi
619
+ }), cn = /* @__PURE__ */ P(dn);
620
+ function Ce(e) {
621
+ return e.deep === !0 ? ne : e.deep === !1 ? Ke : zi(e.defaultDecorator);
622
+ }
623
+ function $i(e) {
583
624
  var t;
584
- return e ? (t = e.defaultDecorator) != null ? t : tn(e) : void 0;
625
+ return e ? (t = e.defaultDecorator) != null ? t : un(e) : void 0;
585
626
  }
586
- function xi(e) {
627
+ function zi(e) {
587
628
  var t, i;
588
- return e && (t = (i = e.options_) == null ? void 0 : i.enhancer) != null ? t : te;
629
+ return e && (t = (i = e.options_) == null ? void 0 : i.enhancer) != null ? t : ne;
589
630
  }
590
- function on(e, t, i) {
631
+ function fn(e, t, i) {
591
632
  if (K(t)) {
592
- pe(e, t, rn);
633
+ be(e, t, dn);
593
634
  return;
594
635
  }
595
- return En(e) ? e : R(e) ? b.object(e, t, i) : Array.isArray(e) ? b.array(e, t) : ie(e) ? b.map(e, t) : _e(e) ? b.set(e, t) : typeof e == "object" && e !== null ? e : b.box(e, t);
636
+ return xn(e) ? e : R(e) ? b.object(e, t, i) : Array.isArray(e) ? b.array(e, t) : re(e) ? b.map(e, t) : ke(e) ? b.set(e, t) : typeof e == "object" && e !== null ? e : b.box(e, t);
596
637
  }
597
- Object.assign(on, an);
598
- var Ri = {
638
+ Object.assign(fn, cn);
639
+ var Ki = {
599
640
  box: function(t, i) {
600
- var n = Ae(i);
601
- return new ee(t, we(n), n.name, !0, n.equals);
641
+ var n = Ee(i);
642
+ return new te(t, Ce(n), n.name, !0, n.equals);
602
643
  },
603
644
  array: function(t, i) {
604
- var n = Ae(i);
605
- return (d.useProxies === !1 || n.proxy === !1 ? Er : br)(t, we(n), n.name);
645
+ var n = Ee(i);
646
+ return (d.useProxies === !1 || n.proxy === !1 ? Br : Cr)(t, Ce(n), n.name);
606
647
  },
607
648
  map: function(t, i) {
608
- var n = Ae(i);
609
- return new Pn(t, we(n), n.name);
649
+ var n = Ee(i);
650
+ return new Bn(t, Ce(n), n.name);
610
651
  },
611
652
  set: function(t, i) {
612
- var n = Ae(i);
613
- return new Rn(t, we(n), n.name);
653
+ var n = Ee(i);
654
+ return new Un(t, Ce(n), n.name);
614
655
  },
615
656
  object: function(t, i, n) {
616
- return wn(d.useProxies === !1 || n?.proxy === !1 ? We({}, n) : hr({}, n), t, i);
657
+ return Dn(d.useProxies === !1 || (n == null ? void 0 : n.proxy) === !1 ? Je({}, n) : Ar({}, n), t, i);
617
658
  },
618
- ref: /* @__PURE__ */ T(Ti),
619
- shallow: /* @__PURE__ */ T(Di),
620
- deep: an,
621
- struct: /* @__PURE__ */ T(Pi)
622
- }, b = /* @__PURE__ */ Jn(on, Ri), sn = "computed", Vi = "computed.struct", un = /* @__PURE__ */ mt(sn), Ii = /* @__PURE__ */ mt(Vi, {
623
- equals: Pe.structural
624
- }), Ke = function(t, i) {
659
+ ref: /* @__PURE__ */ P(Mi),
660
+ shallow: /* @__PURE__ */ P(Ui),
661
+ deep: cn,
662
+ struct: /* @__PURE__ */ P(Gi)
663
+ }, b = /* @__PURE__ */ oi(fn, Ki), vn = "computed", qi = "computed.struct", mn = /* @__PURE__ */ _t(vn), Wi = /* @__PURE__ */ _t(qi, {
664
+ equals: xe.structural
665
+ }), We = function(t, i) {
625
666
  if (K(i))
626
- return pe(t, i, un);
667
+ return be(t, i, mn);
627
668
  if (R(t))
628
- return T(mt(sn, t));
669
+ return P(_t(vn, t));
629
670
  var n = R(i) ? i : {};
630
- return n.get = t, n.name || (n.name = t.name || ""), new ce(n);
671
+ return n.get = t, n.name || (n.name = t.name || ""), new ve(n);
631
672
  };
632
- Object.assign(Ke, un);
633
- Ke.struct = /* @__PURE__ */ T(Ii);
634
- var Ot, At, je = 0, Bi = 1, Li = (Ot = (At = /* @__PURE__ */ De(function() {
635
- }, "name")) == null ? void 0 : At.configurable) != null ? Ot : !1, wt = {
673
+ Object.assign(We, mn);
674
+ We.struct = /* @__PURE__ */ P(Wi);
675
+ var Pt, Dt, Ve = 0, Hi = 1, Xi = (Pt = (Dt = /* @__PURE__ */ je(function() {
676
+ }, "name")) == null ? void 0 : Dt.configurable) != null ? Pt : !1, jt = {
636
677
  value: "action",
637
678
  configurable: !0,
638
679
  writable: !1,
639
680
  enumerable: !1
640
681
  };
641
- function ne(e, t, i, n) {
682
+ function ie(e, t, i, n) {
642
683
  i === void 0 && (i = !1);
643
684
  function r() {
644
- return Ui(e, i, t, n || this, arguments);
685
+ return Ji(e, i, t, n || this, arguments);
645
686
  }
646
- return r.isMobxAction = !0, Li && (wt.value = e, Object.defineProperty(r, "name", wt)), r;
687
+ return r.isMobxAction = !0, Xi && (jt.value = e, Object.defineProperty(r, "name", jt)), r;
647
688
  }
648
- function Ui(e, t, i, n, r) {
649
- var a = Mi(e, t);
689
+ function Ji(e, t, i, n, r) {
690
+ var a = Yi(e, t);
650
691
  try {
651
692
  return i.apply(n, r);
652
693
  } catch (o) {
653
694
  throw a.error_ = o, o;
654
695
  } finally {
655
- $i(a);
696
+ Qi(a);
656
697
  }
657
698
  }
658
- function Mi(e, t, i, n) {
699
+ function Yi(e, t, i, n) {
659
700
  var r = !1, a = 0, o = d.trackingDerivation, s = !t || !o;
660
- y();
701
+ S();
661
702
  var u = d.allowStateChanges;
662
- s && (re(), u = ke(!0));
663
- var l = ht(!0), c = {
703
+ s && (ae(), u = Se(!0));
704
+ var l = pt(!0), c = {
664
705
  runAsAction_: s,
665
706
  prevDerivation_: o,
666
707
  prevAllowStateChanges_: u,
667
708
  prevAllowStateReads_: l,
668
709
  notifySpy_: r,
669
710
  startTime_: a,
670
- actionId_: Bi++,
671
- parentActionId_: je
711
+ actionId_: Hi++,
712
+ parentActionId_: Ve
672
713
  };
673
- return je = c.actionId_, c;
714
+ return Ve = c.actionId_, c;
674
715
  }
675
- function $i(e) {
676
- je !== e.actionId_ && m(30), je = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), ye(e.prevAllowStateChanges_), se(e.prevAllowStateReads_), S(), e.runAsAction_ && U(e.prevDerivation_), d.suppressReactionErrors = !1;
716
+ function Qi(e) {
717
+ Ve !== e.actionId_ && m(30), Ve = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), Ne(e.prevAllowStateChanges_), le(e.prevAllowStateReads_), N(), e.runAsAction_ && U(e.prevDerivation_), d.suppressReactionErrors = !1;
677
718
  }
678
- function Gi(e, t) {
679
- var i = ke(e);
719
+ function Zi(e, t) {
720
+ var i = Se(e);
680
721
  try {
681
722
  return t();
682
723
  } finally {
683
- ye(i);
724
+ Ne(i);
684
725
  }
685
726
  }
686
- function ke(e) {
727
+ function Se(e) {
687
728
  var t = d.allowStateChanges;
688
729
  return d.allowStateChanges = e, t;
689
730
  }
690
- function ye(e) {
731
+ function Ne(e) {
691
732
  d.allowStateChanges = e;
692
733
  }
693
- var ln;
694
- ln = Symbol.toPrimitive;
695
- var ee = /* @__PURE__ */ function(e) {
696
- Jt(t, e);
734
+ var hn;
735
+ hn = Symbol.toPrimitive;
736
+ var te = /* @__PURE__ */ function(e) {
737
+ nn(t, e);
697
738
  function t(n, r, a, o, s) {
698
739
  var u;
699
- return a === void 0 && (a = "ObservableValue"), s === void 0 && (s = Pe.default), u = e.call(this, a) || this, u.enhancer = void 0, u.name_ = void 0, u.equals = void 0, u.hasUnreportedChange_ = !1, u.interceptors_ = void 0, u.changeListeners_ = void 0, u.value_ = void 0, u.dehancer = void 0, u.enhancer = r, u.name_ = a, u.equals = s, u.value_ = r(n, void 0, a), u;
740
+ return a === void 0 && (a = "ObservableValue"), s === void 0 && (s = xe.default), u = e.call(this, a) || this, u.enhancer = void 0, u.name_ = void 0, u.equals = void 0, u.hasUnreportedChange_ = !1, u.interceptors_ = void 0, u.changeListeners_ = void 0, u.value_ = void 0, u.dehancer = void 0, u.enhancer = r, u.name_ = a, u.equals = s, u.value_ = r(n, void 0, a), u;
700
741
  }
701
742
  var i = t.prototype;
702
743
  return i.dehanceValue = function(r) {
@@ -704,8 +745,8 @@ var ee = /* @__PURE__ */ function(e) {
704
745
  }, i.set = function(r) {
705
746
  this.value_, r = this.prepareNewValue_(r), r !== d.UNCHANGED && this.setNewValue_(r);
706
747
  }, i.prepareNewValue_ = function(r) {
707
- if (N(this)) {
708
- var a = O(this, {
748
+ if (O(this)) {
749
+ var a = A(this, {
709
750
  object: this,
710
751
  type: D,
711
752
  newValue: r
@@ -717,7 +758,7 @@ var ee = /* @__PURE__ */ function(e) {
717
758
  return r = this.enhancer(r, this.value_, this.name_), this.equals(this.value_, r) ? d.UNCHANGED : r;
718
759
  }, i.setNewValue_ = function(r) {
719
760
  var a = this.value_;
720
- this.value_ = r, this.reportChanged(), A(this) && w(this, {
761
+ this.value_ = r, this.reportChanged(), w(this) && F(this, {
721
762
  type: D,
722
763
  object: this,
723
764
  newValue: r,
@@ -726,7 +767,7 @@ var ee = /* @__PURE__ */ function(e) {
726
767
  }, i.get = function() {
727
768
  return this.reportObserved(), this.dehanceValue(this.value_);
728
769
  }, i.intercept_ = function(r) {
729
- return Se(this, r);
770
+ return Oe(this, r);
730
771
  }, i.observe_ = function(r, a) {
731
772
  return a && r({
732
773
  observableKind: "value",
@@ -735,7 +776,7 @@ var ee = /* @__PURE__ */ function(e) {
735
776
  type: D,
736
777
  newValue: this.value_,
737
778
  oldValue: void 0
738
- }), Ne(this, r);
779
+ }), Ae(this, r);
739
780
  }, i.raw = function() {
740
781
  return this.value_;
741
782
  }, i.toJSON = function() {
@@ -743,19 +784,19 @@ var ee = /* @__PURE__ */ function(e) {
743
784
  }, i.toString = function() {
744
785
  return this.name_ + "[" + this.value_ + "]";
745
786
  }, i.valueOf = function() {
746
- return Xt(this.get());
747
- }, i[ln] = function() {
787
+ return tn(this.get());
788
+ }, i[hn] = function() {
748
789
  return this.valueOf();
749
790
  }, t;
750
- }(ge), dn;
751
- dn = Symbol.toPrimitive;
752
- var ce = /* @__PURE__ */ function() {
791
+ }(ge), _n;
792
+ _n = Symbol.toPrimitive;
793
+ var ve = /* @__PURE__ */ function() {
753
794
  function e(i) {
754
- this.dependenciesState_ = v.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_ = v.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new xe(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_ = G.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 || m(31), this.derivation = i.get, this.name_ = i.name || "ComputedValue", i.set && (this.setter_ = ne("ComputedValue-setter", i.set)), this.equals_ = i.equals || (i.compareStructural || i.struct ? Pe.structural : Pe.default), this.scope_ = i.context, this.requiresReaction_ = i.requiresReaction, this.keepAlive_ = !!i.keepAlive;
795
+ this.dependenciesState_ = v.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_ = v.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new Re(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_ = z.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 || m(31), this.derivation = i.get, this.name_ = i.name || "ComputedValue", i.set && (this.setter_ = ie("ComputedValue-setter", i.set)), this.equals_ = i.equals || (i.compareStructural || i.struct ? xe.structural : xe.default), this.scope_ = i.context, this.requiresReaction_ = i.requiresReaction, this.keepAlive_ = !!i.keepAlive;
755
796
  }
756
797
  var t = e.prototype;
757
798
  return t.onBecomeStale_ = function() {
758
- Wi(this);
799
+ ir(this);
759
800
  }, t.onBO = function() {
760
801
  this.onBOL && this.onBOL.forEach(function(n) {
761
802
  return n();
@@ -767,13 +808,13 @@ var ce = /* @__PURE__ */ function() {
767
808
  }, t.get = function() {
768
809
  if (this.isComputing_ && m(32, this.name_, this.derivation), d.inBatch === 0 && // !globalState.trackingDerivatpion &&
769
810
  this.observers_.size === 0 && !this.keepAlive_)
770
- rt(this) && (this.warnAboutUntrackedRead_(), y(), this.value_ = this.computeValue_(!1), S());
771
- else if (_n(this), rt(this)) {
811
+ ut(this) && (this.warnAboutUntrackedRead_(), S(), this.value_ = this.computeValue_(!1), N());
812
+ else if (Sn(this), ut(this)) {
772
813
  var n = d.trackingContext;
773
- this.keepAlive_ && !n && (d.trackingContext = this), this.trackAndCompute() && qi(this), d.trackingContext = n;
814
+ this.keepAlive_ && !n && (d.trackingContext = this), this.trackAndCompute() && nr(this), d.trackingContext = n;
774
815
  }
775
816
  var r = this.value_;
776
- if (Fe(r))
817
+ if (Pe(r))
777
818
  throw r.cause;
778
819
  return r;
779
820
  }, t.set = function(n) {
@@ -790,30 +831,30 @@ var ce = /* @__PURE__ */ function() {
790
831
  var n = this.value_, r = (
791
832
  /* see #1208 */
792
833
  this.dependenciesState_ === v.NOT_TRACKING_
793
- ), a = this.computeValue_(!0), o = r || Fe(n) || Fe(a) || !this.equals_(n, a);
834
+ ), a = this.computeValue_(!0), o = r || Pe(n) || Pe(a) || !this.equals_(n, a);
794
835
  return o && (this.value_ = a), o;
795
836
  }, t.computeValue_ = function(n) {
796
837
  this.isComputing_ = !0;
797
- var r = ke(!1), a;
838
+ var r = Se(!1), a;
798
839
  if (n)
799
- a = cn(this, this.derivation, this.scope_);
840
+ a = pn(this, this.derivation, this.scope_);
800
841
  else if (d.disableErrorBoundaries === !0)
801
842
  a = this.derivation.call(this.scope_);
802
843
  else
803
844
  try {
804
845
  a = this.derivation.call(this.scope_);
805
846
  } catch (o) {
806
- a = new xe(o);
847
+ a = new Re(o);
807
848
  }
808
- return ye(r), this.isComputing_ = !1, a;
849
+ return Ne(r), this.isComputing_ = !1, a;
809
850
  }, t.suspend_ = function() {
810
- this.keepAlive_ || (at(this), this.value_ = void 0);
851
+ this.keepAlive_ || (lt(this), this.value_ = void 0);
811
852
  }, t.observe_ = function(n, r) {
812
853
  var a = this, o = !0, s = void 0;
813
- return ir(function() {
854
+ return vr(function() {
814
855
  var u = a.get();
815
856
  if (!o || r) {
816
- var l = re();
857
+ var l = ae();
817
858
  n({
818
859
  observableKind: "computed",
819
860
  debugObjectName: a.name_,
@@ -829,25 +870,25 @@ var ce = /* @__PURE__ */ function() {
829
870
  }, t.toString = function() {
830
871
  return this.name_ + "[" + this.derivation.toString() + "]";
831
872
  }, t.valueOf = function() {
832
- return Xt(this.get());
833
- }, t[dn] = function() {
873
+ return tn(this.get());
874
+ }, t[_n] = function() {
834
875
  return this.valueOf();
835
876
  }, e;
836
- }(), ze = /* @__PURE__ */ q("ComputedValue", ce), v;
877
+ }(), He = /* @__PURE__ */ W("ComputedValue", ve), v;
837
878
  (function(e) {
838
879
  e[e.NOT_TRACKING_ = -1] = "NOT_TRACKING_", e[e.UP_TO_DATE_ = 0] = "UP_TO_DATE_", e[e.POSSIBLY_STALE_ = 1] = "POSSIBLY_STALE_", e[e.STALE_ = 2] = "STALE_";
839
880
  })(v || (v = {}));
840
- var G;
881
+ var z;
841
882
  (function(e) {
842
883
  e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
843
- })(G || (G = {}));
844
- var xe = function(t) {
884
+ })(z || (z = {}));
885
+ var Re = function(t) {
845
886
  this.cause = void 0, this.cause = t;
846
887
  };
847
- function Fe(e) {
848
- return e instanceof xe;
888
+ function Pe(e) {
889
+ return e instanceof Re;
849
890
  }
850
- function rt(e) {
891
+ function ut(e) {
851
892
  switch (e.dependenciesState_) {
852
893
  case v.UP_TO_DATE_:
853
894
  return !1;
@@ -855,28 +896,28 @@ function rt(e) {
855
896
  case v.STALE_:
856
897
  return !0;
857
898
  case v.POSSIBLY_STALE_: {
858
- for (var t = ht(!0), i = re(), n = e.observing_, r = n.length, a = 0; a < r; a++) {
899
+ for (var t = pt(!0), i = ae(), n = e.observing_, r = n.length, a = 0; a < r; a++) {
859
900
  var o = n[a];
860
- if (ze(o)) {
901
+ if (He(o)) {
861
902
  if (d.disableErrorBoundaries)
862
903
  o.get();
863
904
  else
864
905
  try {
865
906
  o.get();
866
- } catch {
867
- return U(i), se(t), !0;
907
+ } catch (s) {
908
+ return U(i), le(t), !0;
868
909
  }
869
910
  if (e.dependenciesState_ === v.STALE_)
870
- return U(i), se(t), !0;
911
+ return U(i), le(t), !0;
871
912
  }
872
913
  }
873
- return vn(e), U(i), se(t), !1;
914
+ return bn(e), U(i), le(t), !1;
874
915
  }
875
916
  }
876
917
  }
877
- function cn(e, t, i) {
878
- var n = ht(!0);
879
- vn(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++d.runId;
918
+ function pn(e, t, i) {
919
+ var n = pt(!0);
920
+ bn(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++d.runId;
880
921
  var r = d.trackingDerivation;
881
922
  d.trackingDerivation = e, d.inBatch++;
882
923
  var a;
@@ -886,126 +927,126 @@ function cn(e, t, i) {
886
927
  try {
887
928
  a = t.call(i);
888
929
  } catch (o) {
889
- a = new xe(o);
930
+ a = new Re(o);
890
931
  }
891
- return d.inBatch--, d.trackingDerivation = r, Ki(e), se(n), a;
932
+ return d.inBatch--, d.trackingDerivation = r, er(e), le(n), a;
892
933
  }
893
- function Ki(e) {
934
+ function er(e) {
894
935
  for (var t = e.observing_, i = e.observing_ = e.newObserving_, n = v.UP_TO_DATE_, r = 0, a = e.unboundDepsCount_, o = 0; o < a; o++) {
895
936
  var s = i[o];
896
937
  s.diffValue_ === 0 && (s.diffValue_ = 1, r !== o && (i[r] = s), r++), s.dependenciesState_ > n && (n = s.dependenciesState_);
897
938
  }
898
939
  for (i.length = r, e.newObserving_ = null, a = t.length; a--; ) {
899
940
  var u = t[a];
900
- u.diffValue_ === 0 && mn(u, e), u.diffValue_ = 0;
941
+ u.diffValue_ === 0 && gn(u, e), u.diffValue_ = 0;
901
942
  }
902
943
  for (; r--; ) {
903
944
  var l = i[r];
904
- l.diffValue_ === 1 && (l.diffValue_ = 0, zi(l, e));
945
+ l.diffValue_ === 1 && (l.diffValue_ = 0, tr(l, e));
905
946
  }
906
947
  n !== v.UP_TO_DATE_ && (e.dependenciesState_ = n, e.onBecomeStale_());
907
948
  }
908
- function at(e) {
949
+ function lt(e) {
909
950
  var t = e.observing_;
910
951
  e.observing_ = [];
911
952
  for (var i = t.length; i--; )
912
- mn(t[i], e);
953
+ gn(t[i], e);
913
954
  e.dependenciesState_ = v.NOT_TRACKING_;
914
955
  }
915
- function fn(e) {
916
- var t = re();
956
+ function kn(e) {
957
+ var t = ae();
917
958
  try {
918
959
  return e();
919
960
  } finally {
920
961
  U(t);
921
962
  }
922
963
  }
923
- function re() {
964
+ function ae() {
924
965
  var e = d.trackingDerivation;
925
966
  return d.trackingDerivation = null, e;
926
967
  }
927
968
  function U(e) {
928
969
  d.trackingDerivation = e;
929
970
  }
930
- function ht(e) {
971
+ function pt(e) {
931
972
  var t = d.allowStateReads;
932
973
  return d.allowStateReads = e, t;
933
974
  }
934
- function se(e) {
975
+ function le(e) {
935
976
  d.allowStateReads = e;
936
977
  }
937
- function vn(e) {
978
+ function bn(e) {
938
979
  if (e.dependenciesState_ !== v.UP_TO_DATE_) {
939
980
  e.dependenciesState_ = v.UP_TO_DATE_;
940
981
  for (var t = e.observing_, i = t.length; i--; )
941
982
  t[i].lowestObserverState_ = v.UP_TO_DATE_;
942
983
  }
943
984
  }
944
- var Xe = function() {
985
+ var Ze = function() {
945
986
  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;
946
- }, Je = !0, d = /* @__PURE__ */ function() {
947
- var e = /* @__PURE__ */ $t();
948
- return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (Je = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new Xe().version && (Je = !1), Je ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = /* @__PURE__ */ new Xe()) : (setTimeout(function() {
987
+ }, et = !0, d = /* @__PURE__ */ function() {
988
+ var e = /* @__PURE__ */ Ht();
989
+ return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (et = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new Ze().version && (et = !1), et ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = /* @__PURE__ */ new Ze()) : (setTimeout(function() {
949
990
  m(35);
950
- }, 1), new Xe());
991
+ }, 1), new Ze());
951
992
  }();
952
- function zi(e, t) {
993
+ function tr(e, t) {
953
994
  e.observers_.add(t), e.lowestObserverState_ > t.dependenciesState_ && (e.lowestObserverState_ = t.dependenciesState_);
954
995
  }
955
- function mn(e, t) {
956
- e.observers_.delete(t), e.observers_.size === 0 && hn(e);
996
+ function gn(e, t) {
997
+ e.observers_.delete(t), e.observers_.size === 0 && yn(e);
957
998
  }
958
- function hn(e) {
999
+ function yn(e) {
959
1000
  e.isPendingUnobservation_ === !1 && (e.isPendingUnobservation_ = !0, d.pendingUnobservations.push(e));
960
1001
  }
961
- function y() {
1002
+ function S() {
962
1003
  d.inBatch++;
963
1004
  }
964
- function S() {
1005
+ function N() {
965
1006
  if (--d.inBatch === 0) {
966
- gn();
1007
+ On();
967
1008
  for (var e = d.pendingUnobservations, t = 0; t < e.length; t++) {
968
1009
  var i = e[t];
969
- i.isPendingUnobservation_ = !1, i.observers_.size === 0 && (i.isBeingObserved_ && (i.isBeingObserved_ = !1, i.onBUO()), i instanceof ce && i.suspend_());
1010
+ i.isPendingUnobservation_ = !1, i.observers_.size === 0 && (i.isBeingObserved_ && (i.isBeingObserved_ = !1, i.onBUO()), i instanceof ve && i.suspend_());
970
1011
  }
971
1012
  d.pendingUnobservations = [];
972
1013
  }
973
1014
  }
974
- function _n(e) {
1015
+ function Sn(e) {
975
1016
  var t = d.trackingDerivation;
976
- return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && d.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), !0) : (e.observers_.size === 0 && d.inBatch > 0 && hn(e), !1);
1017
+ return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && d.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), !0) : (e.observers_.size === 0 && d.inBatch > 0 && yn(e), !1);
977
1018
  }
978
- function pn(e) {
1019
+ function Nn(e) {
979
1020
  e.lowestObserverState_ !== v.STALE_ && (e.lowestObserverState_ = v.STALE_, e.observers_.forEach(function(t) {
980
1021
  t.dependenciesState_ === v.UP_TO_DATE_ && t.onBecomeStale_(), t.dependenciesState_ = v.STALE_;
981
1022
  }));
982
1023
  }
983
- function qi(e) {
1024
+ function nr(e) {
984
1025
  e.lowestObserverState_ !== v.STALE_ && (e.lowestObserverState_ = v.STALE_, e.observers_.forEach(function(t) {
985
1026
  t.dependenciesState_ === v.POSSIBLY_STALE_ ? t.dependenciesState_ = v.STALE_ : t.dependenciesState_ === v.UP_TO_DATE_ && (e.lowestObserverState_ = v.UP_TO_DATE_);
986
1027
  }));
987
1028
  }
988
- function Wi(e) {
1029
+ function ir(e) {
989
1030
  e.lowestObserverState_ === v.UP_TO_DATE_ && (e.lowestObserverState_ = v.POSSIBLY_STALE_, e.observers_.forEach(function(t) {
990
1031
  t.dependenciesState_ === v.UP_TO_DATE_ && (t.dependenciesState_ = v.POSSIBLY_STALE_, t.onBecomeStale_());
991
1032
  }));
992
1033
  }
993
- var ot = /* @__PURE__ */ function() {
1034
+ var dt = /* @__PURE__ */ function() {
994
1035
  function e(i, n, r, a) {
995
- i === void 0 && (i = "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = v.NOT_TRACKING_, this.diffValue_ = 0, this.runId_ = 0, this.unboundDepsCount_ = 0, this.isDisposed_ = !1, this.isScheduled_ = !1, this.isTrackPending_ = !1, this.isRunning_ = !1, this.isTracing_ = G.NONE, this.name_ = i, this.onInvalidate_ = n, this.errorHandler_ = r, this.requiresObservable_ = a;
1036
+ i === void 0 && (i = "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = v.NOT_TRACKING_, this.diffValue_ = 0, this.runId_ = 0, this.unboundDepsCount_ = 0, this.isDisposed_ = !1, this.isScheduled_ = !1, this.isTrackPending_ = !1, this.isRunning_ = !1, this.isTracing_ = z.NONE, this.name_ = i, this.onInvalidate_ = n, this.errorHandler_ = r, this.requiresObservable_ = a;
996
1037
  }
997
1038
  var t = e.prototype;
998
1039
  return t.onBecomeStale_ = function() {
999
1040
  this.schedule_();
1000
1041
  }, t.schedule_ = function() {
1001
- this.isScheduled_ || (this.isScheduled_ = !0, d.pendingReactions.push(this), gn());
1042
+ this.isScheduled_ || (this.isScheduled_ = !0, d.pendingReactions.push(this), On());
1002
1043
  }, t.isScheduled = function() {
1003
1044
  return this.isScheduled_;
1004
1045
  }, t.runReaction_ = function() {
1005
1046
  if (!this.isDisposed_) {
1006
- y(), this.isScheduled_ = !1;
1047
+ S(), this.isScheduled_ = !1;
1007
1048
  var n = d.trackingContext;
1008
- if (d.trackingContext = this, rt(this)) {
1049
+ if (d.trackingContext = this, ut(this)) {
1009
1050
  this.isTrackPending_ = !0;
1010
1051
  try {
1011
1052
  this.onInvalidate_();
@@ -1013,15 +1054,15 @@ var ot = /* @__PURE__ */ function() {
1013
1054
  this.reportExceptionInDerivation_(r);
1014
1055
  }
1015
1056
  }
1016
- d.trackingContext = n, S();
1057
+ d.trackingContext = n, N();
1017
1058
  }
1018
1059
  }, t.track = function(n) {
1019
1060
  if (!this.isDisposed_) {
1020
- y(), this.isRunning_ = !0;
1061
+ S(), this.isRunning_ = !0;
1021
1062
  var r = d.trackingContext;
1022
1063
  d.trackingContext = this;
1023
- var a = cn(this, n, void 0);
1024
- d.trackingContext = r, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && at(this), Fe(a) && this.reportExceptionInDerivation_(a.cause), S();
1064
+ var a = pn(this, n, void 0);
1065
+ d.trackingContext = r, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && lt(this), Pe(a) && this.reportExceptionInDerivation_(a.cause), N();
1025
1066
  }
1026
1067
  }, t.reportExceptionInDerivation_ = function(n) {
1027
1068
  var r = this;
@@ -1036,82 +1077,82 @@ var ot = /* @__PURE__ */ function() {
1036
1077
  return o(n, r);
1037
1078
  });
1038
1079
  }, t.dispose = function() {
1039
- this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (y(), at(this), S()));
1080
+ this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (S(), lt(this), N()));
1040
1081
  }, t.getDisposer_ = function() {
1041
1082
  var n = this.dispose.bind(this);
1042
1083
  return n[f] = this, n;
1043
1084
  }, t.toString = function() {
1044
1085
  return "Reaction[" + this.name_ + "]";
1045
1086
  }, t.trace = function(n) {
1046
- n === void 0 && (n = !1), fr(this, n);
1087
+ n === void 0 && (n = !1), Sr(this, n);
1047
1088
  }, e;
1048
- }(), Hi = 100, Xi = function(t) {
1089
+ }(), rr = 100, ar = function(t) {
1049
1090
  return t();
1050
1091
  };
1051
- function gn() {
1052
- d.inBatch > 0 || d.isRunningReactions || Xi(Ji);
1092
+ function On() {
1093
+ d.inBatch > 0 || d.isRunningReactions || ar(or);
1053
1094
  }
1054
- function Ji() {
1095
+ function or() {
1055
1096
  d.isRunningReactions = !0;
1056
1097
  for (var e = d.pendingReactions, t = 0; e.length > 0; ) {
1057
- ++t === Hi && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
1098
+ ++t === rr && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
1058
1099
  for (var i = e.splice(0), n = 0, r = i.length; n < r; n++)
1059
1100
  i[n].runReaction_();
1060
1101
  }
1061
1102
  d.isRunningReactions = !1;
1062
1103
  }
1063
- var Re = /* @__PURE__ */ q("Reaction", ot);
1064
- function ue() {
1104
+ var Ie = /* @__PURE__ */ W("Reaction", dt);
1105
+ function de() {
1065
1106
  return !1;
1066
1107
  }
1067
- function Yi(e) {
1108
+ function sr(e) {
1068
1109
  return console.warn("[mobx.spy] Is a no-op in production builds"), function() {
1069
1110
  };
1070
1111
  }
1071
- var bn = "action", Qi = "action.bound", kn = "autoAction", Zi = "autoAction.bound", er = "<unnamed action>", yn = /* @__PURE__ */ be(bn), tr = /* @__PURE__ */ be(Qi, {
1112
+ var An = "action", ur = "action.bound", wn = "autoAction", lr = "autoAction.bound", dr = "<unnamed action>", Fn = /* @__PURE__ */ ye(An), cr = /* @__PURE__ */ ye(ur, {
1072
1113
  bound: !0
1073
- }), Sn = /* @__PURE__ */ be(kn, {
1114
+ }), En = /* @__PURE__ */ ye(wn, {
1074
1115
  autoAction: !0
1075
- }), nr = /* @__PURE__ */ be(Zi, {
1116
+ }), fr = /* @__PURE__ */ ye(lr, {
1076
1117
  autoAction: !0,
1077
1118
  bound: !0
1078
1119
  });
1079
- function Nn(e) {
1120
+ function Cn(e) {
1080
1121
  var t = function(n, r) {
1081
- if (C(n))
1082
- return ne(n.name || er, n, e);
1083
- if (C(r))
1084
- return ne(n, r, e);
1122
+ if (E(n))
1123
+ return ie(n.name || dr, n, e);
1124
+ if (E(r))
1125
+ return ie(n, r, e);
1085
1126
  if (K(r))
1086
- return pe(n, r, e ? Sn : yn);
1127
+ return be(n, r, e ? En : Fn);
1087
1128
  if (K(n))
1088
- return T(be(e ? kn : bn, {
1129
+ return P(ye(e ? wn : An, {
1089
1130
  name: n,
1090
1131
  autoAction: e
1091
1132
  }));
1092
1133
  };
1093
1134
  return t;
1094
1135
  }
1095
- var Z = /* @__PURE__ */ Nn(!1);
1096
- Object.assign(Z, yn);
1097
- var fe = /* @__PURE__ */ Nn(!0);
1098
- Object.assign(fe, Sn);
1099
- Z.bound = /* @__PURE__ */ T(tr);
1100
- fe.bound = /* @__PURE__ */ T(nr);
1101
- function _t(e) {
1102
- return C(e) && e.isMobxAction === !0;
1136
+ var ee = /* @__PURE__ */ Cn(!1);
1137
+ Object.assign(ee, Fn);
1138
+ var me = /* @__PURE__ */ Cn(!0);
1139
+ Object.assign(me, En);
1140
+ ee.bound = /* @__PURE__ */ P(cr);
1141
+ me.bound = /* @__PURE__ */ P(fr);
1142
+ function kt(e) {
1143
+ return E(e) && e.isMobxAction === !0;
1103
1144
  }
1104
- function ir(e, t) {
1145
+ function vr(e, t) {
1105
1146
  var i, n;
1106
- t === void 0 && (t = Gt);
1147
+ t === void 0 && (t = Xt);
1107
1148
  var r = (i = (n = t) == null ? void 0 : n.name) != null ? i : "Autorun", a = !t.scheduler && !t.delay, o;
1108
1149
  if (a)
1109
- o = new ot(r, function() {
1150
+ o = new dt(r, function() {
1110
1151
  this.track(l);
1111
1152
  }, t.onError, t.requiresObservable);
1112
1153
  else {
1113
- var s = ar(t), u = !1;
1114
- o = new ot(r, function() {
1154
+ var s = hr(t), u = !1;
1155
+ o = new dt(r, function() {
1115
1156
  u || (u = !0, s(function() {
1116
1157
  u = !1, o.isDisposed_ || o.track(l);
1117
1158
  }));
@@ -1122,33 +1163,33 @@ function ir(e, t) {
1122
1163
  }
1123
1164
  return o.schedule_(), o.getDisposer_();
1124
1165
  }
1125
- var rr = function(t) {
1166
+ var mr = function(t) {
1126
1167
  return t();
1127
1168
  };
1128
- function ar(e) {
1169
+ function hr(e) {
1129
1170
  return e.scheduler ? e.scheduler : e.delay ? function(t) {
1130
1171
  return setTimeout(t, e.delay);
1131
- } : rr;
1172
+ } : mr;
1132
1173
  }
1133
- var or = "onBO", sr = "onBUO";
1134
- function ur(e, t, i) {
1135
- return An(or, e, t, i);
1174
+ var _r = "onBO", pr = "onBUO";
1175
+ function kr(e, t, i) {
1176
+ return Pn(_r, e, t, i);
1136
1177
  }
1137
- function On(e, t, i) {
1138
- return An(sr, e, t, i);
1178
+ function Tn(e, t, i) {
1179
+ return Pn(pr, e, t, i);
1139
1180
  }
1140
- function An(e, t, i, n) {
1141
- var r = typeof n == "function" ? z(t, i) : z(t), a = C(n) ? n : i, o = e + "L";
1181
+ function Pn(e, t, i, n) {
1182
+ var r = typeof n == "function" ? q(t, i) : q(t), a = E(n) ? n : i, o = e + "L";
1142
1183
  return r[o] ? r[o].add(a) : r[o] = /* @__PURE__ */ new Set([a]), function() {
1143
1184
  var s = r[o];
1144
1185
  s && (s.delete(a), s.size === 0 && delete r[o]);
1145
1186
  };
1146
1187
  }
1147
- function wn(e, t, i, n) {
1148
- var r = ei(t), a = We(e, n)[f];
1149
- y();
1188
+ function Dn(e, t, i, n) {
1189
+ var r = di(t), a = Je(e, n)[f];
1190
+ S();
1150
1191
  try {
1151
- le(r).forEach(function(o) {
1192
+ ce(r).forEach(function(o) {
1152
1193
  a.extend_(
1153
1194
  o,
1154
1195
  r[o],
@@ -1157,151 +1198,151 @@ function wn(e, t, i, n) {
1157
1198
  );
1158
1199
  });
1159
1200
  } finally {
1160
- S();
1201
+ N();
1161
1202
  }
1162
1203
  return e;
1163
1204
  }
1164
- var lr = 0;
1165
- function Cn() {
1205
+ var br = 0;
1206
+ function jn() {
1166
1207
  this.message = "FLOW_CANCELLED";
1167
1208
  }
1168
- Cn.prototype = /* @__PURE__ */ Object.create(Error.prototype);
1169
- var Ct = /* @__PURE__ */ Zt("flow"), dr = /* @__PURE__ */ Zt("flow.bound", {
1209
+ jn.prototype = /* @__PURE__ */ Object.create(Error.prototype);
1210
+ var xt = /* @__PURE__ */ on("flow"), gr = /* @__PURE__ */ on("flow.bound", {
1170
1211
  bound: !0
1171
- }), ve = /* @__PURE__ */ Object.assign(function(t, i) {
1212
+ }), he = /* @__PURE__ */ Object.assign(function(t, i) {
1172
1213
  if (K(i))
1173
- return pe(t, i, Ct);
1214
+ return be(t, i, xt);
1174
1215
  var n = t, r = n.name || "<unnamed flow>", a = function() {
1175
- var s = this, u = arguments, l = ++lr, c = Z(r + " - runid: " + l + " - init", n).apply(s, u), h, _ = void 0, P = new Promise(function(H, E) {
1176
- var F = 0;
1177
- h = E;
1178
- function Oe(k) {
1216
+ var s = this, u = arguments, l = ++br, c = ee(r + " - runid: " + l + " - init", n).apply(s, u), h, _ = void 0, j = new Promise(function(X, C) {
1217
+ var T = 0;
1218
+ h = C;
1219
+ function we(g) {
1179
1220
  _ = void 0;
1180
- var I;
1221
+ var B;
1181
1222
  try {
1182
- I = Z(r + " - runid: " + l + " - yield " + F++, c.next).call(c, k);
1223
+ B = ee(r + " - runid: " + l + " - yield " + T++, c.next).call(c, g);
1183
1224
  } catch ($) {
1184
- return E($);
1225
+ return C($);
1185
1226
  }
1186
- oe(I);
1227
+ se(B);
1187
1228
  }
1188
- function He(k) {
1229
+ function Ye(g) {
1189
1230
  _ = void 0;
1190
- var I;
1231
+ var B;
1191
1232
  try {
1192
- I = Z(r + " - runid: " + l + " - yield " + F++, c.throw).call(c, k);
1233
+ B = ee(r + " - runid: " + l + " - yield " + T++, c.throw).call(c, g);
1193
1234
  } catch ($) {
1194
- return E($);
1235
+ return C($);
1195
1236
  }
1196
- oe(I);
1237
+ se(B);
1197
1238
  }
1198
- function oe(k) {
1199
- if (C(k?.then)) {
1200
- k.then(oe, E);
1239
+ function se(g) {
1240
+ if (E(g == null ? void 0 : g.then)) {
1241
+ g.then(se, C);
1201
1242
  return;
1202
1243
  }
1203
- return k.done ? H(k.value) : (_ = Promise.resolve(k.value), _.then(Oe, He));
1244
+ return g.done ? X(g.value) : (_ = Promise.resolve(g.value), _.then(we, Ye));
1204
1245
  }
1205
- Oe(void 0);
1246
+ we(void 0);
1206
1247
  });
1207
- return P.cancel = Z(r + " - runid: " + l + " - cancel", function() {
1248
+ return j.cancel = ee(r + " - runid: " + l + " - cancel", function() {
1208
1249
  try {
1209
- _ && Et(_);
1210
- var H = c.return(void 0), E = Promise.resolve(H.value);
1211
- E.then(J, J), Et(E), h(new Cn());
1212
- } catch (F) {
1213
- h(F);
1250
+ _ && Vt(_);
1251
+ var X = c.return(void 0), C = Promise.resolve(X.value);
1252
+ C.then(Y, Y), Vt(C), h(new jn());
1253
+ } catch (T) {
1254
+ h(T);
1214
1255
  }
1215
- }), P;
1256
+ }), j;
1216
1257
  };
1217
1258
  return a.isMobXFlow = !0, a;
1218
- }, Ct);
1219
- ve.bound = /* @__PURE__ */ T(dr);
1220
- function Et(e) {
1221
- C(e.cancel) && e.cancel();
1259
+ }, xt);
1260
+ he.bound = /* @__PURE__ */ P(gr);
1261
+ function Vt(e) {
1262
+ E(e.cancel) && e.cancel();
1222
1263
  }
1223
- function Ve(e) {
1224
- return e?.isMobXFlow === !0;
1264
+ function Be(e) {
1265
+ return (e == null ? void 0 : e.isMobXFlow) === !0;
1225
1266
  }
1226
- function cr(e, t) {
1227
- return e ? t !== void 0 ? me(e) ? e[f].values_.has(t) : !1 : me(e) || !!e[f] || vt(e) || Re(e) || ze(e) : !1;
1267
+ function yr(e, t) {
1268
+ return e ? t !== void 0 ? _e(e) ? e[f].values_.has(t) : !1 : _e(e) || !!e[f] || ht(e) || Ie(e) || He(e) : !1;
1228
1269
  }
1229
- function En(e) {
1230
- return cr(e);
1270
+ function xn(e) {
1271
+ return yr(e);
1231
1272
  }
1232
- function fr() {
1273
+ function Sr() {
1233
1274
  m("trace() is not available in production builds");
1234
1275
  for (var e = !1, t = arguments.length, i = new Array(t), n = 0; n < t; n++)
1235
1276
  i[n] = arguments[n];
1236
1277
  typeof i[i.length - 1] == "boolean" && (e = i.pop());
1237
- var r = vr(i);
1278
+ var r = Nr(i);
1238
1279
  if (!r)
1239
1280
  return m("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
1240
- r.isTracing_ === G.NONE && console.log("[mobx.trace] '" + r.name_ + "' tracing enabled"), r.isTracing_ = e ? G.BREAK : G.LOG;
1281
+ r.isTracing_ === z.NONE && console.log("[mobx.trace] '" + r.name_ + "' tracing enabled"), r.isTracing_ = e ? z.BREAK : z.LOG;
1241
1282
  }
1242
- function vr(e) {
1283
+ function Nr(e) {
1243
1284
  switch (e.length) {
1244
1285
  case 0:
1245
1286
  return d.trackingDerivation;
1246
1287
  case 1:
1247
- return z(e[0]);
1288
+ return q(e[0]);
1248
1289
  case 2:
1249
- return z(e[0], e[1]);
1290
+ return q(e[0], e[1]);
1250
1291
  }
1251
1292
  }
1252
- function j(e, t) {
1253
- t === void 0 && (t = void 0), y();
1293
+ function x(e, t) {
1294
+ t === void 0 && (t = void 0), S();
1254
1295
  try {
1255
1296
  return e.apply(t);
1256
1297
  } finally {
1257
- S();
1298
+ N();
1258
1299
  }
1259
1300
  }
1260
- function X(e) {
1301
+ function J(e) {
1261
1302
  return e[f];
1262
1303
  }
1263
- var mr = {
1304
+ var Or = {
1264
1305
  has: function(t, i) {
1265
- return X(t).has_(i);
1306
+ return J(t).has_(i);
1266
1307
  },
1267
1308
  get: function(t, i) {
1268
- return X(t).get_(i);
1309
+ return J(t).get_(i);
1269
1310
  },
1270
1311
  set: function(t, i, n) {
1271
1312
  var r;
1272
- return K(i) ? (r = X(t).set_(i, n, !0)) != null ? r : !0 : !1;
1313
+ return K(i) ? (r = J(t).set_(i, n, !0)) != null ? r : !0 : !1;
1273
1314
  },
1274
1315
  deleteProperty: function(t, i) {
1275
1316
  var n;
1276
- return K(i) ? (n = X(t).delete_(i, !0)) != null ? n : !0 : !1;
1317
+ return K(i) ? (n = J(t).delete_(i, !0)) != null ? n : !0 : !1;
1277
1318
  },
1278
1319
  defineProperty: function(t, i, n) {
1279
1320
  var r;
1280
- return (r = X(t).defineProperty_(i, n)) != null ? r : !0;
1321
+ return (r = J(t).defineProperty_(i, n)) != null ? r : !0;
1281
1322
  },
1282
1323
  ownKeys: function(t) {
1283
- return X(t).ownKeys_();
1324
+ return J(t).ownKeys_();
1284
1325
  },
1285
1326
  preventExtensions: function(t) {
1286
1327
  m(13);
1287
1328
  }
1288
1329
  };
1289
- function hr(e, t) {
1330
+ function Ar(e, t) {
1290
1331
  var i, n;
1291
- return Kt(), e = We(e, t), (n = (i = e[f]).proxy_) != null ? n : i.proxy_ = new Proxy(e, mr);
1332
+ return Jt(), e = Je(e, t), (n = (i = e[f]).proxy_) != null ? n : i.proxy_ = new Proxy(e, Or);
1292
1333
  }
1293
- function N(e) {
1334
+ function O(e) {
1294
1335
  return e.interceptors_ !== void 0 && e.interceptors_.length > 0;
1295
1336
  }
1296
- function Se(e, t) {
1337
+ function Oe(e, t) {
1297
1338
  var i = e.interceptors_ || (e.interceptors_ = []);
1298
- return i.push(t), zt(function() {
1339
+ return i.push(t), Yt(function() {
1299
1340
  var n = i.indexOf(t);
1300
1341
  n !== -1 && i.splice(n, 1);
1301
1342
  });
1302
1343
  }
1303
- function O(e, t) {
1304
- var i = re();
1344
+ function A(e, t) {
1345
+ var i = ae();
1305
1346
  try {
1306
1347
  for (var n = [].concat(e.interceptors_ || []), r = 0, a = n.length; r < a && (t = n[r](t), t && !t.type && m(14), !!t); r++)
1307
1348
  ;
@@ -1310,18 +1351,18 @@ function O(e, t) {
1310
1351
  U(i);
1311
1352
  }
1312
1353
  }
1313
- function A(e) {
1354
+ function w(e) {
1314
1355
  return e.changeListeners_ !== void 0 && e.changeListeners_.length > 0;
1315
1356
  }
1316
- function Ne(e, t) {
1357
+ function Ae(e, t) {
1317
1358
  var i = e.changeListeners_ || (e.changeListeners_ = []);
1318
- return i.push(t), zt(function() {
1359
+ return i.push(t), Yt(function() {
1319
1360
  var n = i.indexOf(t);
1320
1361
  n !== -1 && i.splice(n, 1);
1321
1362
  });
1322
1363
  }
1323
- function w(e, t) {
1324
- var i = re(), n = e.changeListeners_;
1364
+ function F(e, t) {
1365
+ var i = ae(), n = e.changeListeners_;
1325
1366
  if (n) {
1326
1367
  n = n.slice();
1327
1368
  for (var r = 0, a = n.length; r < a; r++)
@@ -1329,18 +1370,18 @@ function w(e, t) {
1329
1370
  U(i);
1330
1371
  }
1331
1372
  }
1332
- var Ye = /* @__PURE__ */ Symbol("mobx-keys");
1333
- function _r(e, t, i) {
1373
+ var tt = /* @__PURE__ */ Symbol("mobx-keys");
1374
+ function wr(e, t, i) {
1334
1375
  if (R(e))
1335
- return wn(e, e, t, i);
1336
- var n = We(e, i)[f];
1337
- if (!e[Ye]) {
1338
- var r = Object.getPrototypeOf(e), a = new Set([].concat(le(e), le(r)));
1339
- a.delete("constructor"), a.delete(f), Me(r, Ye, a);
1376
+ return Dn(e, e, t, i);
1377
+ var n = Je(e, i)[f];
1378
+ if (!e[tt]) {
1379
+ var r = Object.getPrototypeOf(e), a = new Set([].concat(ce(e), ce(r)));
1380
+ a.delete("constructor"), a.delete(f), ze(r, tt, a);
1340
1381
  }
1341
- y();
1382
+ S();
1342
1383
  try {
1343
- e[Ye].forEach(function(o) {
1384
+ e[tt].forEach(function(o) {
1344
1385
  return n.make_(
1345
1386
  o,
1346
1387
  // must pass "undefined" for { key: undefined }
@@ -1348,14 +1389,14 @@ function _r(e, t, i) {
1348
1389
  );
1349
1390
  });
1350
1391
  } finally {
1351
- S();
1392
+ N();
1352
1393
  }
1353
1394
  return e;
1354
1395
  }
1355
- var Ft = "splice", D = "update", pr = 1e4, gr = {
1396
+ var Rt = "splice", D = "update", Fr = 1e4, Er = {
1356
1397
  get: function(t, i) {
1357
1398
  var n = t[f];
1358
- return i === f ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : L(Ie, i) ? Ie[i] : t[i];
1399
+ return i === f ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : M(Le, i) ? Le[i] : t[i];
1359
1400
  },
1360
1401
  set: function(t, i, n) {
1361
1402
  var r = t[f];
@@ -1364,7 +1405,7 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1364
1405
  preventExtensions: function() {
1365
1406
  m(15);
1366
1407
  }
1367
- }, pt = /* @__PURE__ */ function() {
1408
+ }, bt = /* @__PURE__ */ function() {
1368
1409
  function e(i, n, r, a) {
1369
1410
  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 ge(i), this.enhancer_ = function(o, s) {
1370
1411
  return n(o, s, "ObservableArray[..]");
@@ -1376,7 +1417,7 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1376
1417
  }, t.dehanceValues_ = function(n) {
1377
1418
  return this.dehancer !== void 0 && n.length > 0 ? n.map(this.dehancer) : n;
1378
1419
  }, t.intercept_ = function(n) {
1379
- return Se(this, n);
1420
+ return Oe(this, n);
1380
1421
  }, t.observe_ = function(n, r) {
1381
1422
  return r === void 0 && (r = !1), r && n({
1382
1423
  observableKind: "array",
@@ -1388,7 +1429,7 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1388
1429
  addedCount: this.values_.length,
1389
1430
  removed: [],
1390
1431
  removedCount: 0
1391
- }), Ne(this, n);
1432
+ }), Ae(this, n);
1392
1433
  }, t.getArrayLength_ = function() {
1393
1434
  return this.atom_.reportObserved(), this.values_.length;
1394
1435
  }, t.setArrayLength_ = function(n) {
@@ -1402,21 +1443,21 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1402
1443
  } else
1403
1444
  this.spliceWithArray_(n, r - n);
1404
1445
  }, t.updateArrayLength_ = function(n, r) {
1405
- n !== this.lastKnownLength_ && m(16), this.lastKnownLength_ += r, this.legacyMode_ && r > 0 && Bn(n + r + 1);
1446
+ n !== this.lastKnownLength_ && m(16), this.lastKnownLength_ += r, this.legacyMode_ && r > 0 && zn(n + r + 1);
1406
1447
  }, t.spliceWithArray_ = function(n, r, a) {
1407
1448
  var o = this;
1408
1449
  this.atom_;
1409
1450
  var s = this.values_.length;
1410
- 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 = nt), N(this)) {
1411
- var u = O(this, {
1451
+ 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 = ot), O(this)) {
1452
+ var u = A(this, {
1412
1453
  object: this.proxy_,
1413
- type: Ft,
1454
+ type: Rt,
1414
1455
  index: n,
1415
1456
  removedCount: r,
1416
1457
  added: a
1417
1458
  });
1418
1459
  if (!u)
1419
- return nt;
1460
+ return ot;
1420
1461
  r = u.removedCount, a = u.added;
1421
1462
  }
1422
1463
  if (a = a.length === 0 ? a : a.map(function(h) {
@@ -1428,7 +1469,7 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1428
1469
  var c = this.spliceItemsIntoValues_(n, r, a);
1429
1470
  return (r !== 0 || a.length !== 0) && this.notifyArraySplice_(n, a, c), this.dehanceValues_(c);
1430
1471
  }, t.spliceItemsIntoValues_ = function(n, r, a) {
1431
- if (a.length < pr) {
1472
+ if (a.length < Fr) {
1432
1473
  var o;
1433
1474
  return (o = this.values_).splice.apply(o, [n, r].concat(a));
1434
1475
  } else {
@@ -1441,7 +1482,7 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1441
1482
  return s;
1442
1483
  }
1443
1484
  }, t.notifyArrayChildUpdate_ = function(n, r, a) {
1444
- var o = !this.owned_ && ue(), s = A(this), u = s || o ? {
1485
+ var o = !this.owned_ && de(), s = w(this), u = s || o ? {
1445
1486
  observableKind: "array",
1446
1487
  object: this.proxy_,
1447
1488
  type: D,
@@ -1450,20 +1491,20 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1450
1491
  newValue: r,
1451
1492
  oldValue: a
1452
1493
  } : null;
1453
- this.atom_.reportChanged(), s && w(this, u);
1494
+ this.atom_.reportChanged(), s && F(this, u);
1454
1495
  }, t.notifyArraySplice_ = function(n, r, a) {
1455
- var o = !this.owned_ && ue(), s = A(this), u = s || o ? {
1496
+ var o = !this.owned_ && de(), s = w(this), u = s || o ? {
1456
1497
  observableKind: "array",
1457
1498
  object: this.proxy_,
1458
1499
  debugObjectName: this.atom_.name_,
1459
- type: Ft,
1500
+ type: Rt,
1460
1501
  index: n,
1461
1502
  removed: a,
1462
1503
  added: r,
1463
1504
  removedCount: a.length,
1464
1505
  addedCount: r.length
1465
1506
  } : null;
1466
- this.atom_.reportChanged(), s && w(this, u);
1507
+ this.atom_.reportChanged(), s && F(this, u);
1467
1508
  }, t.get_ = function(n) {
1468
1509
  if (n < this.values_.length)
1469
1510
  return this.atom_.reportObserved(), this.dehanceValue_(this.values_[n]);
@@ -1473,8 +1514,8 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1473
1514
  if (n < a.length) {
1474
1515
  this.atom_;
1475
1516
  var o = a[n];
1476
- if (N(this)) {
1477
- var s = O(this, {
1517
+ if (O(this)) {
1518
+ var s = A(this, {
1478
1519
  type: D,
1479
1520
  object: this.proxy_,
1480
1521
  index: n,
@@ -1491,18 +1532,18 @@ var Ft = "splice", D = "update", pr = 1e4, gr = {
1491
1532
  n === a.length ? this.spliceWithArray_(n, 0, [r]) : m(17, n, a.length);
1492
1533
  }, e;
1493
1534
  }();
1494
- function br(e, t, i, n) {
1495
- i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1), Kt();
1496
- var r = new pt(i, t, n, !1);
1497
- Wt(r.values_, f, r);
1498
- var a = new Proxy(r.values_, gr);
1535
+ function Cr(e, t, i, n) {
1536
+ i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1), Jt();
1537
+ var r = new bt(i, t, n, !1);
1538
+ Zt(r.values_, f, r);
1539
+ var a = new Proxy(r.values_, Er);
1499
1540
  if (r.proxy_ = a, e && e.length) {
1500
- var o = ke(!0);
1501
- r.spliceWithArray_(0, 0, e), ye(o);
1541
+ var o = Se(!0);
1542
+ r.spliceWithArray_(0, 0, e), Ne(o);
1502
1543
  }
1503
1544
  return a;
1504
1545
  }
1505
- var Ie = {
1546
+ var Le = {
1506
1547
  clear: function() {
1507
1548
  return this.splice(0);
1508
1549
  },
@@ -1566,29 +1607,29 @@ var Ie = {
1566
1607
  return n > -1 ? (this.splice(n, 1), !0) : !1;
1567
1608
  }
1568
1609
  };
1569
- p("concat", V);
1570
- p("flat", V);
1571
- p("includes", V);
1572
- p("indexOf", V);
1573
- p("join", V);
1574
- p("lastIndexOf", V);
1575
- p("slice", V);
1576
- p("toString", V);
1577
- p("toLocaleString", V);
1578
- p("every", M);
1579
- p("filter", M);
1580
- p("find", M);
1581
- p("findIndex", M);
1582
- p("flatMap", M);
1583
- p("forEach", M);
1584
- p("map", M);
1585
- p("some", M);
1586
- p("reduce", Fn);
1587
- p("reduceRight", Fn);
1610
+ p("concat", I);
1611
+ p("flat", I);
1612
+ p("includes", I);
1613
+ p("indexOf", I);
1614
+ p("join", I);
1615
+ p("lastIndexOf", I);
1616
+ p("slice", I);
1617
+ p("toString", I);
1618
+ p("toLocaleString", I);
1619
+ p("every", G);
1620
+ p("filter", G);
1621
+ p("find", G);
1622
+ p("findIndex", G);
1623
+ p("flatMap", G);
1624
+ p("forEach", G);
1625
+ p("map", G);
1626
+ p("some", G);
1627
+ p("reduce", Vn);
1628
+ p("reduceRight", Vn);
1588
1629
  function p(e, t) {
1589
- typeof Array.prototype[e] == "function" && (Ie[e] = t(e));
1630
+ typeof Array.prototype[e] == "function" && (Le[e] = t(e));
1590
1631
  }
1591
- function V(e) {
1632
+ function I(e) {
1592
1633
  return function() {
1593
1634
  var t = this[f];
1594
1635
  t.atom_.reportObserved();
@@ -1596,7 +1637,7 @@ function V(e) {
1596
1637
  return i[e].apply(i, arguments);
1597
1638
  };
1598
1639
  }
1599
- function M(e) {
1640
+ function G(e) {
1600
1641
  return function(t, i) {
1601
1642
  var n = this, r = this[f];
1602
1643
  r.atom_.reportObserved();
@@ -1606,7 +1647,7 @@ function M(e) {
1606
1647
  });
1607
1648
  };
1608
1649
  }
1609
- function Fn(e) {
1650
+ function Vn(e) {
1610
1651
  return function() {
1611
1652
  var t = this, i = this[f];
1612
1653
  i.atom_.reportObserved();
@@ -1616,17 +1657,17 @@ function Fn(e) {
1616
1657
  }, n[e].apply(n, arguments);
1617
1658
  };
1618
1659
  }
1619
- var kr = /* @__PURE__ */ q("ObservableArrayAdministration", pt);
1620
- function qe(e) {
1621
- return Ue(e) && kr(e[f]);
1660
+ var Tr = /* @__PURE__ */ W("ObservableArrayAdministration", bt);
1661
+ function Xe(e) {
1662
+ return $e(e) && Tr(e[f]);
1622
1663
  }
1623
- var Tn, Dn, yr = {}, B = "add", Be = "delete";
1624
- Tn = Symbol.iterator;
1625
- Dn = Symbol.toStringTag;
1626
- var Pn = /* @__PURE__ */ function() {
1664
+ var Rn, In, Pr = {}, L = "add", Me = "delete";
1665
+ Rn = Symbol.iterator;
1666
+ In = Symbol.toStringTag;
1667
+ var Bn = /* @__PURE__ */ function() {
1627
1668
  function e(i, n, r) {
1628
1669
  var a = this;
1629
- n === void 0 && (n = te), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[f] = yr, 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, C(Map) || m(18), this.keysAtom_ = Yt("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), Gi(!0, function() {
1670
+ n === void 0 && (n = ne), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[f] = Pr, 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, E(Map) || m(18), this.keysAtom_ = rn("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), Zi(!0, function() {
1630
1671
  a.merge(i);
1631
1672
  });
1632
1673
  }
@@ -1639,17 +1680,17 @@ var Pn = /* @__PURE__ */ function() {
1639
1680
  return this.has_(n);
1640
1681
  var a = this.hasMap_.get(n);
1641
1682
  if (!a) {
1642
- var o = a = new ee(this.has_(n), $e, "ObservableMap.key?", !1);
1643
- this.hasMap_.set(n, o), On(o, function() {
1683
+ var o = a = new te(this.has_(n), Ke, "ObservableMap.key?", !1);
1684
+ this.hasMap_.set(n, o), Tn(o, function() {
1644
1685
  return r.hasMap_.delete(n);
1645
1686
  });
1646
1687
  }
1647
1688
  return a.get();
1648
1689
  }, t.set = function(n, r) {
1649
1690
  var a = this.has_(n);
1650
- if (N(this)) {
1651
- var o = O(this, {
1652
- type: a ? D : B,
1691
+ if (O(this)) {
1692
+ var o = A(this, {
1693
+ type: a ? D : L,
1653
1694
  object: this,
1654
1695
  newValue: r,
1655
1696
  name: n
@@ -1661,9 +1702,9 @@ var Pn = /* @__PURE__ */ function() {
1661
1702
  return a ? this.updateValue_(n, r) : this.addValue_(n, r), this;
1662
1703
  }, t.delete = function(n) {
1663
1704
  var r = this;
1664
- if (this.keysAtom_, N(this)) {
1665
- var a = O(this, {
1666
- type: Be,
1705
+ if (this.keysAtom_, O(this)) {
1706
+ var a = A(this, {
1707
+ type: Me,
1667
1708
  object: this,
1668
1709
  name: n
1669
1710
  });
@@ -1671,26 +1712,26 @@ var Pn = /* @__PURE__ */ function() {
1671
1712
  return !1;
1672
1713
  }
1673
1714
  if (this.has_(n)) {
1674
- var o = ue(), s = A(this), u = s || o ? {
1715
+ var o = de(), s = w(this), u = s || o ? {
1675
1716
  observableKind: "map",
1676
1717
  debugObjectName: this.name_,
1677
- type: Be,
1718
+ type: Me,
1678
1719
  object: this,
1679
1720
  oldValue: this.data_.get(n).value_,
1680
1721
  name: n
1681
1722
  } : null;
1682
- return j(function() {
1723
+ return x(function() {
1683
1724
  var l;
1684
1725
  r.keysAtom_.reportChanged(), (l = r.hasMap_.get(n)) == null || l.setNewValue_(!1);
1685
1726
  var c = r.data_.get(n);
1686
1727
  c.setNewValue_(void 0), r.data_.delete(n);
1687
- }), s && w(this, u), !0;
1728
+ }), s && F(this, u), !0;
1688
1729
  }
1689
1730
  return !1;
1690
1731
  }, t.updateValue_ = function(n, r) {
1691
1732
  var a = this.data_.get(n);
1692
1733
  if (r = a.prepareNewValue_(r), r !== d.UNCHANGED) {
1693
- var o = ue(), s = A(this), u = s || o ? {
1734
+ var o = de(), s = w(this), u = s || o ? {
1694
1735
  observableKind: "map",
1695
1736
  debugObjectName: this.name_,
1696
1737
  type: D,
@@ -1699,23 +1740,23 @@ var Pn = /* @__PURE__ */ function() {
1699
1740
  name: n,
1700
1741
  newValue: r
1701
1742
  } : null;
1702
- a.setNewValue_(r), s && w(this, u);
1743
+ a.setNewValue_(r), s && F(this, u);
1703
1744
  }
1704
1745
  }, t.addValue_ = function(n, r) {
1705
1746
  var a = this;
1706
- this.keysAtom_, j(function() {
1707
- var l, c = new ee(r, a.enhancer_, "ObservableMap.key", !1);
1747
+ this.keysAtom_, x(function() {
1748
+ var l, c = new te(r, a.enhancer_, "ObservableMap.key", !1);
1708
1749
  a.data_.set(n, c), r = c.value_, (l = a.hasMap_.get(n)) == null || l.setNewValue_(!0), a.keysAtom_.reportChanged();
1709
1750
  });
1710
- var o = ue(), s = A(this), u = s || o ? {
1751
+ var o = de(), s = w(this), u = s || o ? {
1711
1752
  observableKind: "map",
1712
1753
  debugObjectName: this.name_,
1713
- type: B,
1754
+ type: L,
1714
1755
  object: this,
1715
1756
  name: n,
1716
1757
  newValue: r
1717
1758
  } : null;
1718
- s && w(this, u);
1759
+ s && F(this, u);
1719
1760
  }, t.get = function(n) {
1720
1761
  return this.has(n) ? this.dehanceValue_(this.data_.get(n).get()) : this.dehanceValue_(void 0);
1721
1762
  }, t.dehanceValue_ = function(n) {
@@ -1724,7 +1765,7 @@ var Pn = /* @__PURE__ */ function() {
1724
1765
  return this.keysAtom_.reportObserved(), this.data_.keys();
1725
1766
  }, t.values = function() {
1726
1767
  var n = this, r = this.keys();
1727
- return he({
1768
+ return pe({
1728
1769
  next: function() {
1729
1770
  var o = r.next(), s = o.done, u = o.value;
1730
1771
  return {
@@ -1735,7 +1776,7 @@ var Pn = /* @__PURE__ */ function() {
1735
1776
  });
1736
1777
  }, t.entries = function() {
1737
1778
  var n = this, r = this.keys();
1738
- return he({
1779
+ return pe({
1739
1780
  next: function() {
1740
1781
  var o = r.next(), s = o.done, u = o.value;
1741
1782
  return {
@@ -1744,30 +1785,30 @@ var Pn = /* @__PURE__ */ function() {
1744
1785
  };
1745
1786
  }
1746
1787
  });
1747
- }, t[Tn] = function() {
1788
+ }, t[Rn] = function() {
1748
1789
  return this.entries();
1749
1790
  }, t.forEach = function(n, r) {
1750
- for (var a = Y(this), o; !(o = a()).done; ) {
1791
+ for (var a = Q(this), o; !(o = a()).done; ) {
1751
1792
  var s = o.value, u = s[0], l = s[1];
1752
1793
  n.call(r, l, u, this);
1753
1794
  }
1754
1795
  }, t.merge = function(n) {
1755
1796
  var r = this;
1756
- return W(n) && (n = new Map(n)), j(function() {
1757
- R(n) ? Zn(n).forEach(function(a) {
1797
+ return H(n) && (n = new Map(n)), x(function() {
1798
+ R(n) ? li(n).forEach(function(a) {
1758
1799
  return r.set(a, n[a]);
1759
1800
  }) : Array.isArray(n) ? n.forEach(function(a) {
1760
1801
  var o = a[0], s = a[1];
1761
1802
  return r.set(o, s);
1762
- }) : ie(n) ? (n.constructor !== Map && m(19, n), n.forEach(function(a, o) {
1803
+ }) : re(n) ? (n.constructor !== Map && m(19, n), n.forEach(function(a, o) {
1763
1804
  return r.set(o, a);
1764
1805
  })) : n != null && m(20, n);
1765
1806
  }), this;
1766
1807
  }, t.clear = function() {
1767
1808
  var n = this;
1768
- j(function() {
1769
- fn(function() {
1770
- for (var r = Y(n.keys()), a; !(a = r()).done; ) {
1809
+ x(function() {
1810
+ kn(function() {
1811
+ for (var r = Q(n.keys()), a; !(a = r()).done; ) {
1771
1812
  var o = a.value;
1772
1813
  n.delete(o);
1773
1814
  }
@@ -1775,8 +1816,8 @@ var Pn = /* @__PURE__ */ function() {
1775
1816
  });
1776
1817
  }, t.replace = function(n) {
1777
1818
  var r = this;
1778
- return j(function() {
1779
- for (var a = Sr(n), o = /* @__PURE__ */ new Map(), s = !1, u = Y(r.data_.keys()), l; !(l = u()).done; ) {
1819
+ return x(function() {
1820
+ for (var a = Dr(n), o = /* @__PURE__ */ new Map(), s = !1, u = Q(r.data_.keys()), l; !(l = u()).done; ) {
1780
1821
  var c = l.value;
1781
1822
  if (!a.has(c)) {
1782
1823
  var h = r.delete(c);
@@ -1788,23 +1829,23 @@ var Pn = /* @__PURE__ */ function() {
1788
1829
  }
1789
1830
  }
1790
1831
  }
1791
- for (var P = Y(a.entries()), H; !(H = P()).done; ) {
1792
- var E = H.value, F = E[0], Oe = E[1], He = r.data_.has(F);
1793
- if (r.set(F, Oe), r.data_.has(F)) {
1794
- var oe = r.data_.get(F);
1795
- o.set(F, oe), He || (s = !0);
1832
+ for (var j = Q(a.entries()), X; !(X = j()).done; ) {
1833
+ var C = X.value, T = C[0], we = C[1], Ye = r.data_.has(T);
1834
+ if (r.set(T, we), r.data_.has(T)) {
1835
+ var se = r.data_.get(T);
1836
+ o.set(T, se), Ye || (s = !0);
1796
1837
  }
1797
1838
  }
1798
1839
  if (!s)
1799
1840
  if (r.data_.size !== o.size)
1800
1841
  r.keysAtom_.reportChanged();
1801
1842
  else
1802
- for (var k = r.data_.keys(), I = o.keys(), $ = k.next(), kt = I.next(); !$.done; ) {
1803
- if ($.value !== kt.value) {
1843
+ for (var g = r.data_.keys(), B = o.keys(), $ = g.next(), St = B.next(); !$.done; ) {
1844
+ if ($.value !== St.value) {
1804
1845
  r.keysAtom_.reportChanged();
1805
1846
  break;
1806
1847
  }
1807
- $ = k.next(), kt = I.next();
1848
+ $ = g.next(), St = B.next();
1808
1849
  }
1809
1850
  r.data_ = o;
1810
1851
  }), this;
@@ -1813,23 +1854,23 @@ var Pn = /* @__PURE__ */ function() {
1813
1854
  }, t.toJSON = function() {
1814
1855
  return Array.from(this);
1815
1856
  }, t.observe_ = function(n, r) {
1816
- return Ne(this, n);
1857
+ return Ae(this, n);
1817
1858
  }, t.intercept_ = function(n) {
1818
- return Se(this, n);
1819
- }, ft(e, [{
1859
+ return Oe(this, n);
1860
+ }, mt(e, [{
1820
1861
  key: "size",
1821
1862
  get: function() {
1822
1863
  return this.keysAtom_.reportObserved(), this.data_.size;
1823
1864
  }
1824
1865
  }, {
1825
- key: Dn,
1866
+ key: In,
1826
1867
  get: function() {
1827
1868
  return "Map";
1828
1869
  }
1829
1870
  }]), e;
1830
- }(), W = /* @__PURE__ */ q("ObservableMap", Pn);
1831
- function Sr(e) {
1832
- if (ie(e) || W(e))
1871
+ }(), H = /* @__PURE__ */ W("ObservableMap", Bn);
1872
+ function Dr(e) {
1873
+ if (re(e) || H(e))
1833
1874
  return e;
1834
1875
  if (Array.isArray(e))
1835
1876
  return new Map(e);
@@ -1841,12 +1882,12 @@ function Sr(e) {
1841
1882
  } else
1842
1883
  return m(21, e);
1843
1884
  }
1844
- var jn, xn, Nr = {};
1845
- jn = Symbol.iterator;
1846
- xn = Symbol.toStringTag;
1847
- var Rn = /* @__PURE__ */ function() {
1885
+ var Ln, Mn, jr = {};
1886
+ Ln = Symbol.iterator;
1887
+ Mn = Symbol.toStringTag;
1888
+ var Un = /* @__PURE__ */ function() {
1848
1889
  function e(i, n, r) {
1849
- n === void 0 && (n = te), r === void 0 && (r = "ObservableSet"), this.name_ = void 0, this[f] = Nr, 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, C(Set) || m(22), this.atom_ = Yt(this.name_), this.enhancer_ = function(a, o) {
1890
+ n === void 0 && (n = ne), r === void 0 && (r = "ObservableSet"), this.name_ = void 0, this[f] = jr, 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, E(Set) || m(22), this.atom_ = rn(this.name_), this.enhancer_ = function(a, o) {
1850
1891
  return n(a, o, r);
1851
1892
  }, i && this.replace(i);
1852
1893
  }
@@ -1855,24 +1896,24 @@ var Rn = /* @__PURE__ */ function() {
1855
1896
  return this.dehancer !== void 0 ? this.dehancer(n) : n;
1856
1897
  }, t.clear = function() {
1857
1898
  var n = this;
1858
- j(function() {
1859
- fn(function() {
1860
- for (var r = Y(n.data_.values()), a; !(a = r()).done; ) {
1899
+ x(function() {
1900
+ kn(function() {
1901
+ for (var r = Q(n.data_.values()), a; !(a = r()).done; ) {
1861
1902
  var o = a.value;
1862
1903
  n.delete(o);
1863
1904
  }
1864
1905
  });
1865
1906
  });
1866
1907
  }, t.forEach = function(n, r) {
1867
- for (var a = Y(this), o; !(o = a()).done; ) {
1908
+ for (var a = Q(this), o; !(o = a()).done; ) {
1868
1909
  var s = o.value;
1869
1910
  n.call(r, s, s, this);
1870
1911
  }
1871
1912
  }, t.add = function(n) {
1872
1913
  var r = this;
1873
- if (this.atom_, N(this)) {
1874
- var a = O(this, {
1875
- type: B,
1914
+ if (this.atom_, O(this)) {
1915
+ var a = A(this, {
1916
+ type: L,
1876
1917
  object: this,
1877
1918
  newValue: n
1878
1919
  });
@@ -1880,24 +1921,24 @@ var Rn = /* @__PURE__ */ function() {
1880
1921
  return this;
1881
1922
  }
1882
1923
  if (!this.has(n)) {
1883
- j(function() {
1924
+ x(function() {
1884
1925
  r.data_.add(r.enhancer_(n, void 0)), r.atom_.reportChanged();
1885
1926
  });
1886
- var o = !1, s = A(this), u = s || o ? {
1927
+ var o = !1, s = w(this), u = s || o ? {
1887
1928
  observableKind: "set",
1888
1929
  debugObjectName: this.name_,
1889
- type: B,
1930
+ type: L,
1890
1931
  object: this,
1891
1932
  newValue: n
1892
1933
  } : null;
1893
- s && w(this, u);
1934
+ s && F(this, u);
1894
1935
  }
1895
1936
  return this;
1896
1937
  }, t.delete = function(n) {
1897
1938
  var r = this;
1898
- if (N(this)) {
1899
- var a = O(this, {
1900
- type: Be,
1939
+ if (O(this)) {
1940
+ var a = A(this, {
1941
+ type: Me,
1901
1942
  object: this,
1902
1943
  oldValue: n
1903
1944
  });
@@ -1905,23 +1946,23 @@ var Rn = /* @__PURE__ */ function() {
1905
1946
  return !1;
1906
1947
  }
1907
1948
  if (this.has(n)) {
1908
- var o = !1, s = A(this), u = s || o ? {
1949
+ var o = !1, s = w(this), u = s || o ? {
1909
1950
  observableKind: "set",
1910
1951
  debugObjectName: this.name_,
1911
- type: Be,
1952
+ type: Me,
1912
1953
  object: this,
1913
1954
  oldValue: n
1914
1955
  } : null;
1915
- return j(function() {
1956
+ return x(function() {
1916
1957
  r.atom_.reportChanged(), r.data_.delete(n);
1917
- }), s && w(this, u), !0;
1958
+ }), s && F(this, u), !0;
1918
1959
  }
1919
1960
  return !1;
1920
1961
  }, t.has = function(n) {
1921
1962
  return this.atom_.reportObserved(), this.data_.has(this.dehanceValue_(n));
1922
1963
  }, t.entries = function() {
1923
1964
  var n = 0, r = Array.from(this.keys()), a = Array.from(this.values());
1924
- return he({
1965
+ return pe({
1925
1966
  next: function() {
1926
1967
  var s = n;
1927
1968
  return n += 1, s < a.length ? {
@@ -1937,7 +1978,7 @@ var Rn = /* @__PURE__ */ function() {
1937
1978
  }, t.values = function() {
1938
1979
  this.atom_.reportObserved();
1939
1980
  var n = this, r = 0, a = Array.from(this.data_.values());
1940
- return he({
1981
+ return pe({
1941
1982
  next: function() {
1942
1983
  return r < a.length ? {
1943
1984
  value: n.dehanceValue_(a[r++]),
@@ -1949,47 +1990,47 @@ var Rn = /* @__PURE__ */ function() {
1949
1990
  });
1950
1991
  }, t.replace = function(n) {
1951
1992
  var r = this;
1952
- return ae(n) && (n = new Set(n)), j(function() {
1993
+ return oe(n) && (n = new Set(n)), x(function() {
1953
1994
  Array.isArray(n) ? (r.clear(), n.forEach(function(a) {
1954
1995
  return r.add(a);
1955
- })) : _e(n) ? (r.clear(), n.forEach(function(a) {
1996
+ })) : ke(n) ? (r.clear(), n.forEach(function(a) {
1956
1997
  return r.add(a);
1957
1998
  })) : n != null && m("Cannot initialize set from " + n);
1958
1999
  }), this;
1959
2000
  }, t.observe_ = function(n, r) {
1960
- return Ne(this, n);
2001
+ return Ae(this, n);
1961
2002
  }, t.intercept_ = function(n) {
1962
- return Se(this, n);
2003
+ return Oe(this, n);
1963
2004
  }, t.toJSON = function() {
1964
2005
  return Array.from(this);
1965
2006
  }, t.toString = function() {
1966
2007
  return "[object ObservableSet]";
1967
- }, t[jn] = function() {
2008
+ }, t[Ln] = function() {
1968
2009
  return this.values();
1969
- }, ft(e, [{
2010
+ }, mt(e, [{
1970
2011
  key: "size",
1971
2012
  get: function() {
1972
2013
  return this.atom_.reportObserved(), this.data_.size;
1973
2014
  }
1974
2015
  }, {
1975
- key: xn,
2016
+ key: Mn,
1976
2017
  get: function() {
1977
2018
  return "Set";
1978
2019
  }
1979
2020
  }]), e;
1980
- }(), ae = /* @__PURE__ */ q("ObservableSet", Rn), Tt = /* @__PURE__ */ Object.create(null), Dt = "remove", Vn = /* @__PURE__ */ function() {
2021
+ }(), oe = /* @__PURE__ */ W("ObservableSet", Un), It = /* @__PURE__ */ Object.create(null), Bt = "remove", Gn = /* @__PURE__ */ function() {
1981
2022
  function e(i, n, r, a) {
1982
- n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = Ni), 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 ge("ObservableObject.keys"), this.isPlainObject_ = R(this.target_);
2023
+ n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = ji), 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 ge("ObservableObject.keys"), this.isPlainObject_ = R(this.target_);
1983
2024
  }
1984
2025
  var t = e.prototype;
1985
2026
  return t.getObservablePropValue_ = function(n) {
1986
2027
  return this.values_.get(n).get();
1987
2028
  }, t.setObservablePropValue_ = function(n, r) {
1988
2029
  var a = this.values_.get(n);
1989
- if (a instanceof ce)
2030
+ if (a instanceof ve)
1990
2031
  return a.set(r), !0;
1991
- if (N(this)) {
1992
- var o = O(this, {
2032
+ if (O(this)) {
2033
+ var o = A(this, {
1993
2034
  type: D,
1994
2035
  object: this.proxy_ || this.target_,
1995
2036
  name: n,
@@ -2000,7 +2041,7 @@ var Rn = /* @__PURE__ */ function() {
2000
2041
  r = o.newValue;
2001
2042
  }
2002
2043
  if (r = a.prepareNewValue_(r), r !== d.UNCHANGED) {
2003
- var s = A(this), u = !1, l = s || u ? {
2044
+ var s = w(this), u = !1, l = s || u ? {
2004
2045
  type: D,
2005
2046
  observableKind: "object",
2006
2047
  debugObjectName: this.name_,
@@ -2009,13 +2050,13 @@ var Rn = /* @__PURE__ */ function() {
2009
2050
  name: n,
2010
2051
  newValue: r
2011
2052
  } : null;
2012
- a.setNewValue_(r), s && w(this, l);
2053
+ a.setNewValue_(r), s && F(this, l);
2013
2054
  }
2014
2055
  return !0;
2015
2056
  }, t.get_ = function(n) {
2016
- return d.trackingDerivation && !L(this.target_, n) && this.has_(n), this.target_[n];
2057
+ return d.trackingDerivation && !M(this.target_, n) && this.has_(n), this.target_[n];
2017
2058
  }, t.set_ = function(n, r, a) {
2018
- return a === void 0 && (a = !1), L(this.target_, n) ? this.values_.has(n) ? this.setObservablePropValue_(n, r) : a ? Reflect.set(this.target_, n, r) : (this.target_[n] = r, !0) : this.extend_(n, {
2059
+ return a === void 0 && (a = !1), M(this.target_, n) ? this.values_.has(n) ? this.setObservablePropValue_(n, r) : a ? Reflect.set(this.target_, n, r) : (this.target_[n] = r, !0) : this.extend_(n, {
2019
2060
  value: r,
2020
2061
  enumerable: !0,
2021
2062
  writable: !0,
@@ -2026,17 +2067,17 @@ var Rn = /* @__PURE__ */ function() {
2026
2067
  return n in this.target_;
2027
2068
  this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
2028
2069
  var r = this.pendingKeys_.get(n);
2029
- return r || (r = new ee(n in this.target_, $e, "ObservableObject.key?", !1), this.pendingKeys_.set(n, r)), r.get();
2070
+ return r || (r = new te(n in this.target_, Ke, "ObservableObject.key?", !1), this.pendingKeys_.set(n, r)), r.get();
2030
2071
  }, t.make_ = function(n, r) {
2031
2072
  if (r === !0 && (r = this.defaultAnnotation_), r !== !1) {
2032
2073
  if (!(n in this.target_)) {
2033
2074
  var a;
2034
- if ((a = this.target_[Q]) != null && a[n])
2075
+ if ((a = this.target_[Z]) != null && a[n])
2035
2076
  return;
2036
2077
  m(1, r.annotationType_, this.name_ + "." + n.toString());
2037
2078
  }
2038
- for (var o = this.target_; o && o !== Le; ) {
2039
- var s = De(o, n);
2079
+ for (var o = this.target_; o && o !== Ge; ) {
2080
+ var s = je(o, n);
2040
2081
  if (s) {
2041
2082
  var u = r.make_(this, n, s, o);
2042
2083
  if (u === 0)
@@ -2046,31 +2087,31 @@ var Rn = /* @__PURE__ */ function() {
2046
2087
  }
2047
2088
  o = Object.getPrototypeOf(o);
2048
2089
  }
2049
- jt(this, r, n);
2090
+ Mt(this, r, n);
2050
2091
  }
2051
2092
  }, t.extend_ = function(n, r, a, o) {
2052
2093
  if (o === void 0 && (o = !1), a === !0 && (a = this.defaultAnnotation_), a === !1)
2053
2094
  return this.defineProperty_(n, r, o);
2054
2095
  var s = a.extend_(this, n, r, o);
2055
- return s && jt(this, a, n), s;
2096
+ return s && Mt(this, a, n), s;
2056
2097
  }, t.defineProperty_ = function(n, r, a) {
2057
2098
  a === void 0 && (a = !1);
2058
2099
  try {
2059
- y();
2100
+ S();
2060
2101
  var o = this.delete_(n);
2061
2102
  if (!o)
2062
2103
  return o;
2063
- if (N(this)) {
2064
- var s = O(this, {
2104
+ if (O(this)) {
2105
+ var s = A(this, {
2065
2106
  object: this.proxy_ || this.target_,
2066
2107
  name: n,
2067
- type: B,
2108
+ type: L,
2068
2109
  newValue: r.value
2069
2110
  });
2070
2111
  if (!s)
2071
2112
  return null;
2072
2113
  var u = s.newValue;
2073
- r.value !== u && (r = de({}, r, {
2114
+ r.value !== u && (r = fe({}, r, {
2074
2115
  value: u
2075
2116
  }));
2076
2117
  }
@@ -2078,31 +2119,31 @@ var Rn = /* @__PURE__ */ function() {
2078
2119
  if (!Reflect.defineProperty(this.target_, n, r))
2079
2120
  return !1;
2080
2121
  } else
2081
- x(this.target_, n, r);
2122
+ V(this.target_, n, r);
2082
2123
  this.notifyPropertyAddition_(n, r.value);
2083
2124
  } finally {
2084
- S();
2125
+ N();
2085
2126
  }
2086
2127
  return !0;
2087
2128
  }, t.defineObservableProperty_ = function(n, r, a, o) {
2088
2129
  o === void 0 && (o = !1);
2089
2130
  try {
2090
- y();
2131
+ S();
2091
2132
  var s = this.delete_(n);
2092
2133
  if (!s)
2093
2134
  return s;
2094
- if (N(this)) {
2095
- var u = O(this, {
2135
+ if (O(this)) {
2136
+ var u = A(this, {
2096
2137
  object: this.proxy_ || this.target_,
2097
2138
  name: n,
2098
- type: B,
2139
+ type: L,
2099
2140
  newValue: r
2100
2141
  });
2101
2142
  if (!u)
2102
2143
  return null;
2103
2144
  r = u.newValue;
2104
2145
  }
2105
- var l = Pt(n), c = {
2146
+ var l = Lt(n), c = {
2106
2147
  configurable: d.safeDescriptors ? this.isPlainObject_ : !0,
2107
2148
  enumerable: !0,
2108
2149
  get: l.get,
@@ -2112,32 +2153,32 @@ var Rn = /* @__PURE__ */ function() {
2112
2153
  if (!Reflect.defineProperty(this.target_, n, c))
2113
2154
  return !1;
2114
2155
  } else
2115
- x(this.target_, n, c);
2116
- var h = new ee(r, a, "ObservableObject.key", !1);
2156
+ V(this.target_, n, c);
2157
+ var h = new te(r, a, "ObservableObject.key", !1);
2117
2158
  this.values_.set(n, h), this.notifyPropertyAddition_(n, h.value_);
2118
2159
  } finally {
2119
- S();
2160
+ N();
2120
2161
  }
2121
2162
  return !0;
2122
2163
  }, t.defineComputedProperty_ = function(n, r, a) {
2123
2164
  a === void 0 && (a = !1);
2124
2165
  try {
2125
- y();
2166
+ S();
2126
2167
  var o = this.delete_(n);
2127
2168
  if (!o)
2128
2169
  return o;
2129
- if (N(this)) {
2130
- var s = O(this, {
2170
+ if (O(this)) {
2171
+ var s = A(this, {
2131
2172
  object: this.proxy_ || this.target_,
2132
2173
  name: n,
2133
- type: B,
2174
+ type: L,
2134
2175
  newValue: void 0
2135
2176
  });
2136
2177
  if (!s)
2137
2178
  return null;
2138
2179
  }
2139
2180
  r.name || (r.name = "ObservableObject.key"), r.context = this.proxy_ || this.target_;
2140
- var u = Pt(n), l = {
2181
+ var u = Lt(n), l = {
2141
2182
  configurable: d.safeDescriptors ? this.isPlainObject_ : !0,
2142
2183
  enumerable: !1,
2143
2184
  get: u.get,
@@ -2147,86 +2188,86 @@ var Rn = /* @__PURE__ */ function() {
2147
2188
  if (!Reflect.defineProperty(this.target_, n, l))
2148
2189
  return !1;
2149
2190
  } else
2150
- x(this.target_, n, l);
2151
- this.values_.set(n, new ce(r)), this.notifyPropertyAddition_(n, void 0);
2191
+ V(this.target_, n, l);
2192
+ this.values_.set(n, new ve(r)), this.notifyPropertyAddition_(n, void 0);
2152
2193
  } finally {
2153
- S();
2194
+ N();
2154
2195
  }
2155
2196
  return !0;
2156
2197
  }, t.delete_ = function(n, r) {
2157
- if (r === void 0 && (r = !1), !L(this.target_, n))
2198
+ if (r === void 0 && (r = !1), !M(this.target_, n))
2158
2199
  return !0;
2159
- if (N(this)) {
2160
- var a = O(this, {
2200
+ if (O(this)) {
2201
+ var a = A(this, {
2161
2202
  object: this.proxy_ || this.target_,
2162
2203
  name: n,
2163
- type: Dt
2204
+ type: Bt
2164
2205
  });
2165
2206
  if (!a)
2166
2207
  return null;
2167
2208
  }
2168
2209
  try {
2169
2210
  var o, s;
2170
- y();
2171
- var u = A(this), l = !1, c = this.values_.get(n), h = void 0;
2211
+ S();
2212
+ var u = w(this), l = !1, c = this.values_.get(n), h = void 0;
2172
2213
  if (!c && (u || l)) {
2173
2214
  var _;
2174
- h = (_ = De(this.target_, n)) == null ? void 0 : _.value;
2215
+ h = (_ = je(this.target_, n)) == null ? void 0 : _.value;
2175
2216
  }
2176
2217
  if (r) {
2177
2218
  if (!Reflect.deleteProperty(this.target_, n))
2178
2219
  return !1;
2179
2220
  } else
2180
2221
  delete this.target_[n];
2181
- if (c && (this.values_.delete(n), c instanceof ee && (h = c.value_), pn(c)), this.keysAtom_.reportChanged(), (o = this.pendingKeys_) == null || (s = o.get(n)) == null || s.set(n in this.target_), u || l) {
2182
- var P = {
2183
- type: Dt,
2222
+ if (c && (this.values_.delete(n), c instanceof te && (h = c.value_), Nn(c)), this.keysAtom_.reportChanged(), (o = this.pendingKeys_) == null || (s = o.get(n)) == null || s.set(n in this.target_), u || l) {
2223
+ var j = {
2224
+ type: Bt,
2184
2225
  observableKind: "object",
2185
2226
  object: this.proxy_ || this.target_,
2186
2227
  debugObjectName: this.name_,
2187
2228
  oldValue: h,
2188
2229
  name: n
2189
2230
  };
2190
- u && w(this, P);
2231
+ u && F(this, j);
2191
2232
  }
2192
2233
  } finally {
2193
- S();
2234
+ N();
2194
2235
  }
2195
2236
  return !0;
2196
2237
  }, t.observe_ = function(n, r) {
2197
- return Ne(this, n);
2238
+ return Ae(this, n);
2198
2239
  }, t.intercept_ = function(n) {
2199
- return Se(this, n);
2240
+ return Oe(this, n);
2200
2241
  }, t.notifyPropertyAddition_ = function(n, r) {
2201
- var a, o, s = A(this), u = !1;
2242
+ var a, o, s = w(this), u = !1;
2202
2243
  if (s || u) {
2203
2244
  var l = s || u ? {
2204
- type: B,
2245
+ type: L,
2205
2246
  observableKind: "object",
2206
2247
  debugObjectName: this.name_,
2207
2248
  object: this.proxy_ || this.target_,
2208
2249
  name: n,
2209
2250
  newValue: r
2210
2251
  } : null;
2211
- s && w(this, l);
2252
+ s && F(this, l);
2212
2253
  }
2213
2254
  (a = this.pendingKeys_) == null || (o = a.get(n)) == null || o.set(!0), this.keysAtom_.reportChanged();
2214
2255
  }, t.ownKeys_ = function() {
2215
- return this.keysAtom_.reportObserved(), le(this.target_);
2256
+ return this.keysAtom_.reportObserved(), ce(this.target_);
2216
2257
  }, t.keys_ = function() {
2217
2258
  return this.keysAtom_.reportObserved(), Object.keys(this.target_);
2218
2259
  }, e;
2219
2260
  }();
2220
- function We(e, t) {
2261
+ function Je(e, t) {
2221
2262
  var i;
2222
- if (L(e, f))
2263
+ if (M(e, f))
2223
2264
  return e;
2224
- var n = (i = t?.name) != null ? i : "ObservableObject", r = new Vn(e, /* @__PURE__ */ new Map(), String(n), ji(t));
2225
- return Me(e, f, r), e;
2265
+ var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", r = new Gn(e, /* @__PURE__ */ new Map(), String(n), $i(t));
2266
+ return ze(e, f, r), e;
2226
2267
  }
2227
- var Or = /* @__PURE__ */ q("ObservableObjectAdministration", Vn);
2228
- function Pt(e) {
2229
- return Tt[e] || (Tt[e] = {
2268
+ var xr = /* @__PURE__ */ W("ObservableObjectAdministration", Gn);
2269
+ function Lt(e) {
2270
+ return It[e] || (It[e] = {
2230
2271
  get: function() {
2231
2272
  return this[f].getObservablePropValue_(e);
2232
2273
  },
@@ -2235,28 +2276,28 @@ function Pt(e) {
2235
2276
  }
2236
2277
  });
2237
2278
  }
2238
- function me(e) {
2239
- return Ue(e) ? Or(e[f]) : !1;
2279
+ function _e(e) {
2280
+ return $e(e) ? xr(e[f]) : !1;
2240
2281
  }
2241
- function jt(e, t, i) {
2282
+ function Mt(e, t, i) {
2242
2283
  var n;
2243
- (n = e.target_[Q]) == null || delete n[i];
2284
+ (n = e.target_[Z]) == null || delete n[i];
2244
2285
  }
2245
- var Qe = 0, In = function() {
2286
+ var nt = 0, $n = function() {
2246
2287
  };
2247
- function Ar(e, t) {
2288
+ function Vr(e, t) {
2248
2289
  Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
2249
2290
  }
2250
- Ar(In, Array.prototype);
2291
+ Vr($n, Array.prototype);
2251
2292
  var gt = /* @__PURE__ */ function(e, t, i) {
2252
- Jt(n, e);
2293
+ nn(n, e);
2253
2294
  function n(a, o, s, u) {
2254
2295
  var l;
2255
2296
  s === void 0 && (s = "ObservableArray"), u === void 0 && (u = !1), l = e.call(this) || this;
2256
- var c = new pt(s, o, u, !0);
2257
- if (c.proxy_ = St(l), Wt(St(l), f, c), a && a.length) {
2258
- var h = ke(!0);
2259
- l.spliceWithArray(0, 0, a), ye(h);
2297
+ var c = new bt(s, o, u, !0);
2298
+ if (c.proxy_ = Ct(l), Zt(Ct(l), f, c), a && a.length) {
2299
+ var h = Se(!0);
2300
+ l.spliceWithArray(0, 0, a), Ne(h);
2260
2301
  }
2261
2302
  return l;
2262
2303
  }
@@ -2269,12 +2310,12 @@ var gt = /* @__PURE__ */ function(e, t, i) {
2269
2310
  this.slice(),
2270
2311
  //@ts-ignore
2271
2312
  s.map(function(l) {
2272
- return qe(l) ? l.slice() : l;
2313
+ return Xe(l) ? l.slice() : l;
2273
2314
  })
2274
2315
  );
2275
2316
  }, r[i] = function() {
2276
2317
  var a = this, o = 0;
2277
- return he({
2318
+ return pe({
2278
2319
  next: function() {
2279
2320
  return o < a.length ? {
2280
2321
  value: a[o++],
@@ -2285,7 +2326,7 @@ var gt = /* @__PURE__ */ function(e, t, i) {
2285
2326
  };
2286
2327
  }
2287
2328
  });
2288
- }, ft(n, [{
2329
+ }, mt(n, [{
2289
2330
  key: "length",
2290
2331
  get: function() {
2291
2332
  return this[f].getArrayLength_();
@@ -2299,12 +2340,12 @@ var gt = /* @__PURE__ */ function(e, t, i) {
2299
2340
  return "Array";
2300
2341
  }
2301
2342
  }]), n;
2302
- }(In, Symbol.toStringTag, Symbol.iterator);
2303
- Object.entries(Ie).forEach(function(e) {
2343
+ }($n, Symbol.toStringTag, Symbol.iterator);
2344
+ Object.entries(Le).forEach(function(e) {
2304
2345
  var t = e[0], i = e[1];
2305
- t !== "concat" && Me(gt.prototype, t, i);
2346
+ t !== "concat" && ze(gt.prototype, t, i);
2306
2347
  });
2307
- function wr(e) {
2348
+ function Rr(e) {
2308
2349
  return {
2309
2350
  enumerable: !1,
2310
2351
  configurable: !0,
@@ -2316,69 +2357,69 @@ function wr(e) {
2316
2357
  }
2317
2358
  };
2318
2359
  }
2319
- function Cr(e) {
2320
- x(gt.prototype, "" + e, wr(e));
2360
+ function Ir(e) {
2361
+ V(gt.prototype, "" + e, Rr(e));
2321
2362
  }
2322
- function Bn(e) {
2323
- if (e > Qe) {
2324
- for (var t = Qe; t < e + 100; t++)
2325
- Cr(t);
2326
- Qe = e;
2363
+ function zn(e) {
2364
+ if (e > nt) {
2365
+ for (var t = nt; t < e + 100; t++)
2366
+ Ir(t);
2367
+ nt = e;
2327
2368
  }
2328
2369
  }
2329
- Bn(1e3);
2330
- function Er(e, t, i) {
2370
+ zn(1e3);
2371
+ function Br(e, t, i) {
2331
2372
  return new gt(e, t, i);
2332
2373
  }
2333
- function z(e, t) {
2374
+ function q(e, t) {
2334
2375
  if (typeof e == "object" && e !== null) {
2335
- if (qe(e))
2376
+ if (Xe(e))
2336
2377
  return t !== void 0 && m(23), e[f].atom_;
2337
- if (ae(e))
2378
+ if (oe(e))
2338
2379
  return e[f];
2339
- if (W(e)) {
2380
+ if (H(e)) {
2340
2381
  if (t === void 0)
2341
2382
  return e.keysAtom_;
2342
2383
  var i = e.data_.get(t) || e.hasMap_.get(t);
2343
- return i || m(25, t, st(e)), i;
2384
+ return i || m(25, t, ct(e)), i;
2344
2385
  }
2345
- if (me(e)) {
2386
+ if (_e(e)) {
2346
2387
  if (!t)
2347
2388
  return m(26);
2348
2389
  var n = e[f].values_.get(t);
2349
- return n || m(27, t, st(e)), n;
2390
+ return n || m(27, t, ct(e)), n;
2350
2391
  }
2351
- if (vt(e) || ze(e) || Re(e))
2392
+ if (ht(e) || He(e) || Ie(e))
2352
2393
  return e;
2353
- } else if (C(e) && Re(e[f]))
2394
+ } else if (E(e) && Ie(e[f]))
2354
2395
  return e[f];
2355
2396
  m(28);
2356
2397
  }
2357
- function Ln(e, t) {
2398
+ function Kn(e, t) {
2358
2399
  if (e || m(29), t !== void 0)
2359
- return Ln(z(e, t));
2360
- if (vt(e) || ze(e) || Re(e) || W(e) || ae(e))
2400
+ return Kn(q(e, t));
2401
+ if (ht(e) || He(e) || Ie(e) || H(e) || oe(e))
2361
2402
  return e;
2362
2403
  if (e[f])
2363
2404
  return e[f];
2364
2405
  m(24, e);
2365
2406
  }
2366
- function st(e, t) {
2407
+ function ct(e, t) {
2367
2408
  var i;
2368
2409
  if (t !== void 0)
2369
- i = z(e, t);
2410
+ i = q(e, t);
2370
2411
  else {
2371
- if (_t(e))
2412
+ if (kt(e))
2372
2413
  return e.name;
2373
- me(e) || W(e) || ae(e) ? i = Ln(e) : i = z(e);
2414
+ _e(e) || H(e) || oe(e) ? i = Kn(e) : i = q(e);
2374
2415
  }
2375
2416
  return i.name_;
2376
2417
  }
2377
- var xt = Le.toString;
2378
- function bt(e, t, i) {
2379
- return i === void 0 && (i = -1), ut(e, t, i);
2418
+ var Ut = Ge.toString;
2419
+ function yt(e, t, i) {
2420
+ return i === void 0 && (i = -1), ft(e, t, i);
2380
2421
  }
2381
- function ut(e, t, i, n, r) {
2422
+ function ft(e, t, i, n, r) {
2382
2423
  if (e === t)
2383
2424
  return e !== 0 || 1 / e === 1 / t;
2384
2425
  if (e == null || t == null)
@@ -2388,8 +2429,8 @@ function ut(e, t, i, n, r) {
2388
2429
  var a = typeof e;
2389
2430
  if (a !== "function" && a !== "object" && typeof t != "object")
2390
2431
  return !1;
2391
- var o = xt.call(e);
2392
- if (o !== xt.call(t))
2432
+ var o = Ut.call(e);
2433
+ if (o !== Ut.call(t))
2393
2434
  return !1;
2394
2435
  switch (o) {
2395
2436
  case "[object RegExp]":
@@ -2401,19 +2442,19 @@ function ut(e, t, i, n, r) {
2401
2442
  case "[object Boolean]":
2402
2443
  return +e == +t;
2403
2444
  case "[object Symbol]":
2404
- return typeof Symbol < "u" && Symbol.valueOf.call(e) === Symbol.valueOf.call(t);
2445
+ return typeof Symbol != "undefined" && Symbol.valueOf.call(e) === Symbol.valueOf.call(t);
2405
2446
  case "[object Map]":
2406
2447
  case "[object Set]":
2407
2448
  i >= 0 && i++;
2408
2449
  break;
2409
2450
  }
2410
- e = Rt(e), t = Rt(t);
2451
+ e = Gt(e), t = Gt(t);
2411
2452
  var s = o === "[object Array]";
2412
2453
  if (!s) {
2413
2454
  if (typeof e != "object" || typeof t != "object")
2414
2455
  return !1;
2415
2456
  var u = e.constructor, l = t.constructor;
2416
- if (u !== l && !(C(u) && u instanceof u && C(l) && l instanceof l) && "constructor" in e && "constructor" in t)
2457
+ if (u !== l && !(E(u) && u instanceof u && E(l) && l instanceof l) && "constructor" in e && "constructor" in t)
2417
2458
  return !1;
2418
2459
  }
2419
2460
  if (i === 0)
@@ -2426,98 +2467,71 @@ function ut(e, t, i, n, r) {
2426
2467
  if (c = e.length, c !== t.length)
2427
2468
  return !1;
2428
2469
  for (; c--; )
2429
- if (!ut(e[c], t[c], i - 1, n, r))
2470
+ if (!ft(e[c], t[c], i - 1, n, r))
2430
2471
  return !1;
2431
2472
  } else {
2432
2473
  var h = Object.keys(e), _;
2433
2474
  if (c = h.length, Object.keys(t).length !== c)
2434
2475
  return !1;
2435
2476
  for (; c--; )
2436
- if (_ = h[c], !(L(t, _) && ut(e[_], t[_], i - 1, n, r)))
2477
+ if (_ = h[c], !(M(t, _) && ft(e[_], t[_], i - 1, n, r)))
2437
2478
  return !1;
2438
2479
  }
2439
2480
  return n.pop(), r.pop(), !0;
2440
2481
  }
2441
- function Rt(e) {
2442
- return qe(e) ? e.slice() : ie(e) || W(e) || _e(e) || ae(e) ? Array.from(e.entries()) : e;
2482
+ function Gt(e) {
2483
+ return Xe(e) ? e.slice() : re(e) || H(e) || ke(e) || oe(e) ? Array.from(e.entries()) : e;
2443
2484
  }
2444
- function he(e) {
2445
- return e[Symbol.iterator] = Fr, e;
2485
+ function pe(e) {
2486
+ return e[Symbol.iterator] = Lr, e;
2446
2487
  }
2447
- function Fr() {
2488
+ function Lr() {
2448
2489
  return this;
2449
2490
  }
2450
2491
  ["Symbol", "Map", "Set"].forEach(function(e) {
2451
- var t = $t();
2452
- typeof t[e] > "u" && m("MobX requires global '" + e + "' to be available or polyfilled");
2492
+ var t = Ht();
2493
+ typeof t[e] == "undefined" && m("MobX requires global '" + e + "' to be available or polyfilled");
2453
2494
  });
2454
2495
  typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
2455
- spy: Yi,
2496
+ spy: sr,
2456
2497
  extras: {
2457
- getDebugName: st
2498
+ getDebugName: ct
2458
2499
  },
2459
2500
  $mobx: f
2460
2501
  });
2461
- class Tr {
2462
- _config;
2463
- constructor() {
2464
- _r(this, {}, { name: "NizzaStore", autoBind: !0 });
2465
- }
2466
- configure(t) {
2467
- this._config = t;
2468
- }
2469
- get config() {
2470
- return this._config;
2471
- }
2472
- }
2473
- const ua = new Tr();
2474
- var Un = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(Un || {}), Mn = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(Mn || {});
2475
- const Dr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Pr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, jr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, xr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Rr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Vr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ir = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Br = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Lr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ur = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2476
- __proto__: null,
2477
- AddCollectionDocument: xr,
2478
- DeleteAllCustomizationDocument: Dr,
2479
- DeleteCollectionDocument: Rr,
2480
- FindCollectionDocument: Vr,
2481
- GetAllCollectionsDocument: Ir,
2482
- GetAllCustomizationDocument: Pr,
2483
- ManageCollectionProductDocument: Br,
2484
- Methods: Un,
2485
- SearchCollectionsDocument: Lr,
2486
- Status: Mn,
2487
- UpdateCollectionDocument: Ur,
2488
- UpdateCustomizationDocument: jr
2489
- }, Symbol.toStringTag, { value: "Module" }));
2490
- class da {
2491
- }
2492
- async function ca({
2493
- url: e,
2494
- method: t = "GET",
2495
- raw: i = !1,
2496
- ...n
2497
- }) {
2498
- const r = {
2499
- "Content-Type": "application/json",
2500
- ...n.headers
2501
- }, a = await fetch(e, { method: t, ...n, headers: r });
2502
+ async function Sa(r) {
2503
+ var a = r, {
2504
+ url: e,
2505
+ method: t = "GET",
2506
+ raw: i = !1
2507
+ } = a, n = wt(a, [
2508
+ "url",
2509
+ "method",
2510
+ "raw"
2511
+ ]);
2512
+ var l;
2513
+ const o = ue({
2514
+ "Content-Type": "application/json"
2515
+ }, n.headers), s = await fetch(e, At(ue({ method: t }, n), { headers: o }));
2502
2516
  if (i)
2503
- return a;
2504
- const o = await a.json();
2505
- if (!a.ok) {
2506
- const s = o?.message ?? a.statusText;
2507
- throw new Error(s);
2517
+ return s;
2518
+ const u = await s.json();
2519
+ if (!s.ok) {
2520
+ const c = (l = u == null ? void 0 : u.message) != null ? l : s.statusText;
2521
+ throw new Error(c);
2508
2522
  }
2509
- return o;
2523
+ return u;
2510
2524
  }
2511
- class Vt {
2512
- store;
2525
+ class $t {
2513
2526
  constructor() {
2527
+ y(this, "store");
2514
2528
  this.store = this.getStoreFromWindow();
2515
2529
  }
2516
2530
  getStoreFromWindow() {
2517
2531
  let t = {};
2518
2532
  try {
2519
2533
  t = JSON.parse(window.self.name);
2520
- } catch {
2534
+ } catch (i) {
2521
2535
  return {};
2522
2536
  }
2523
2537
  return t && typeof t == "object" ? t : {};
@@ -2530,7 +2544,8 @@ class Vt {
2530
2544
  this.store[t] = i, this.setStoreToWindow(this.store);
2531
2545
  }
2532
2546
  getItem(t) {
2533
- return this.store[t] ?? null;
2547
+ var i;
2548
+ return (i = this.store[t]) != null ? i : null;
2534
2549
  }
2535
2550
  removeItem(t) {
2536
2551
  delete this.store[t], this.setStoreToWindow(this.store);
@@ -2539,176 +2554,107 @@ class Vt {
2539
2554
  this.setStoreToWindow({});
2540
2555
  }
2541
2556
  key(t) {
2542
- return Object.keys(this.store)[t] ?? null;
2557
+ var n;
2558
+ return (n = Object.keys(this.store)[t]) != null ? n : null;
2543
2559
  }
2544
2560
  get length() {
2545
2561
  return Object.keys(this.store).length;
2546
2562
  }
2547
2563
  }
2548
- function It(e) {
2564
+ function zt(e) {
2549
2565
  try {
2550
2566
  const t = window[e], i = "__custom-storage__";
2551
2567
  return t.setItem(i, i), t.removeItem(i), !0;
2552
- } catch {
2568
+ } catch (t) {
2553
2569
  return !1;
2554
2570
  }
2555
2571
  }
2556
- function Bt(e, t, i) {
2572
+ function Kt(e, t, i) {
2557
2573
  const n = {
2558
2574
  configurable: !1,
2559
2575
  enumerable: !1,
2560
2576
  writable: !1
2561
2577
  };
2562
- typeof i < "u" && (n.value = i), Object.defineProperty(e, t, n);
2578
+ typeof i != "undefined" && (n.value = i), Object.defineProperty(e, t, n);
2563
2579
  }
2564
- class $n {
2580
+ class qn {
2565
2581
  static init() {
2566
- return new $n();
2582
+ return new qn();
2567
2583
  }
2568
2584
  constructor() {
2569
2585
  window.top === window.self ? console.log("[CustomStorage] This is the main window") : console.log("[CustomStorage] This is NOT the main window"), this.replaceStorages();
2570
2586
  }
2571
2587
  replaceStorages() {
2572
2588
  if (!this.isAvailable.localStorage) {
2573
- const t = new Vt();
2574
- Bt(window, "localStorage", t), console.log(
2589
+ const t = new $t();
2590
+ Kt(window, "localStorage", t), console.log(
2575
2591
  "[CustomStorage] LocalStorage is not available, custom implementation is defined"
2576
2592
  );
2577
2593
  }
2578
2594
  if (!this.isAvailable.sessionStorage) {
2579
- const t = new Vt();
2580
- Bt(window, "sessionStorage", t), console.log(
2595
+ const t = new $t();
2596
+ Kt(window, "sessionStorage", t), console.log(
2581
2597
  "[CustomStorage] SessionStorage is not available, custom implementation is defined"
2582
2598
  );
2583
2599
  }
2584
2600
  }
2585
2601
  get isAvailable() {
2586
2602
  return {
2587
- localStorage: It("localStorage"),
2588
- sessionStorage: It("sessionStorage")
2603
+ localStorage: zt("localStorage"),
2604
+ sessionStorage: zt("sessionStorage")
2589
2605
  };
2590
2606
  }
2591
2607
  }
2592
- /*! js-cookie v3.0.1 | MIT */
2593
- function Ce(e) {
2594
- for (var t = 1; t < arguments.length; t++) {
2595
- var i = arguments[t];
2596
- for (var n in i)
2597
- e[n] = i[n];
2598
- }
2599
- return e;
2600
- }
2601
- var Mr = {
2602
- read: function(e) {
2603
- return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2604
- },
2605
- write: function(e) {
2606
- return encodeURIComponent(e).replace(
2607
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2608
- decodeURIComponent
2609
- );
2610
- }
2611
- };
2612
- function lt(e, t) {
2613
- function i(r, a, o) {
2614
- if (!(typeof document > "u")) {
2615
- o = Ce({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2616
- var s = "";
2617
- for (var u in o)
2618
- o[u] && (s += "; " + u, o[u] !== !0 && (s += "=" + o[u].split(";")[0]));
2619
- return document.cookie = r + "=" + e.write(a, r) + s;
2620
- }
2621
- }
2622
- function n(r) {
2623
- if (!(typeof document > "u" || arguments.length && !r)) {
2624
- for (var a = document.cookie ? document.cookie.split("; ") : [], o = {}, s = 0; s < a.length; s++) {
2625
- var u = a[s].split("="), l = u.slice(1).join("=");
2626
- try {
2627
- var c = decodeURIComponent(u[0]);
2628
- if (o[c] = e.read(l, c), r === c)
2629
- break;
2630
- } catch {
2631
- }
2632
- }
2633
- return r ? o[r] : o;
2634
- }
2635
- }
2636
- return Object.create(
2637
- {
2638
- set: i,
2639
- get: n,
2640
- remove: function(r, a) {
2641
- i(
2642
- r,
2643
- "",
2644
- Ce({}, a, {
2645
- expires: -1
2646
- })
2647
- );
2648
- },
2649
- withAttributes: function(r) {
2650
- return lt(this.converter, Ce({}, this.attributes, r));
2651
- },
2652
- withConverter: function(r) {
2653
- return lt(Ce({}, this.converter, r), this.attributes);
2654
- }
2655
- },
2656
- {
2657
- attributes: { value: Object.freeze(t) },
2658
- converter: { value: Object.freeze(e) }
2659
- }
2660
- );
2661
- }
2662
- var Lt = lt(Mr, { path: "/" }), Ee, $r = new Uint8Array(16);
2663
- function Gr() {
2664
- if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !Ee))
2608
+ var Te, Mr = new Uint8Array(16);
2609
+ function Ur() {
2610
+ if (!Te && (Te = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !Te))
2665
2611
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2666
- return Ee($r);
2612
+ return Te(Mr);
2613
+ }
2614
+ const Gr = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
2615
+ function $r(e) {
2616
+ return typeof e == "string" && Gr.test(e);
2667
2617
  }
2668
- const Kr = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
2618
+ var k = [];
2619
+ for (var it = 0; it < 256; ++it)
2620
+ k.push((it + 256).toString(16).substr(1));
2669
2621
  function zr(e) {
2670
- return typeof e == "string" && Kr.test(e);
2671
- }
2672
- var g = [];
2673
- for (var Ze = 0; Ze < 256; ++Ze)
2674
- g.push((Ze + 256).toString(16).substr(1));
2675
- function qr(e) {
2676
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (g[e[t + 0]] + g[e[t + 1]] + g[e[t + 2]] + g[e[t + 3]] + "-" + g[e[t + 4]] + g[e[t + 5]] + "-" + g[e[t + 6]] + g[e[t + 7]] + "-" + g[e[t + 8]] + g[e[t + 9]] + "-" + g[e[t + 10]] + g[e[t + 11]] + g[e[t + 12]] + g[e[t + 13]] + g[e[t + 14]] + g[e[t + 15]]).toLowerCase();
2677
- if (!zr(i))
2622
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (k[e[t + 0]] + k[e[t + 1]] + k[e[t + 2]] + k[e[t + 3]] + "-" + k[e[t + 4]] + k[e[t + 5]] + "-" + k[e[t + 6]] + k[e[t + 7]] + "-" + k[e[t + 8]] + k[e[t + 9]] + "-" + k[e[t + 10]] + k[e[t + 11]] + k[e[t + 12]] + k[e[t + 13]] + k[e[t + 14]] + k[e[t + 15]]).toLowerCase();
2623
+ if (!$r(i))
2678
2624
  throw TypeError("Stringified UUID is invalid");
2679
2625
  return i;
2680
2626
  }
2681
- function Wr(e, t, i) {
2627
+ function Kr(e, t, i) {
2682
2628
  e = e || {};
2683
- var n = e.random || (e.rng || Gr)();
2629
+ var n = e.random || (e.rng || Ur)();
2684
2630
  if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t) {
2685
2631
  i = i || 0;
2686
2632
  for (var r = 0; r < 16; ++r)
2687
2633
  t[i + r] = n[r];
2688
2634
  return t;
2689
2635
  }
2690
- return qr(n);
2636
+ return zr(n);
2691
2637
  }
2692
- const Ut = "FINGERPRINT_LIVE_SHOPPING", fa = () => {
2693
- let e = Lt.get(Ut);
2694
- return e || (e = Wr(), Lt.set(Ut, e, { expires: 1 }), e);
2638
+ const qt = "FINGERPRINT_LIVE_SHOPPING", Na = () => {
2639
+ let e = Ft.get(qt);
2640
+ return e || (e = Kr(), Ft.set(qt, e, { expires: 1 }), e);
2695
2641
  };
2696
- let Hr = (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), "");
2697
- const va = (e = 8) => Hr(e), ma = (e) => {
2642
+ let qr = (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), "");
2643
+ const Wr = (e = 8) => qr(e), Oa = (e) => {
2698
2644
  const t = Object.entries(e).map(([i, n]) => `${i}=${n}`).join("&");
2699
2645
  return t ? `?${t}` : "";
2700
- }, ha = (e, t, i = { fallback: null }) => {
2646
+ }, Aa = (e, t, i = { fallback: null }) => {
2701
2647
  let n = e;
2702
2648
  t && (n = () => e().then((a) => ({ default: t(a) })));
2703
- const r = zn(n);
2704
- return (a) => /* @__PURE__ */ et(qn, { fallback: i.fallback, children: /* @__PURE__ */ et(r, { ...a }) });
2649
+ const r = ei(n);
2650
+ return (a) => /* @__PURE__ */ rt(ti, { fallback: i.fallback, children: /* @__PURE__ */ rt(r, ue({}, a)) });
2705
2651
  };
2706
- class Te {
2707
- isOk;
2708
- isErr;
2709
- error;
2710
- _value;
2652
+ class De {
2711
2653
  constructor(t, i, n) {
2654
+ y(this, "isOk");
2655
+ y(this, "isErr");
2656
+ y(this, "error");
2657
+ y(this, "_value");
2712
2658
  if (t && i)
2713
2659
  throw new Error(
2714
2660
  "InvalidOperation: A result cannot be successful and contain an error"
@@ -2727,21 +2673,21 @@ class Te {
2727
2673
  return this._value;
2728
2674
  }
2729
2675
  static ok(t) {
2730
- return new Te(!0, void 0, t);
2676
+ return new De(!0, void 0, t);
2731
2677
  }
2732
2678
  static fail(t) {
2733
- return new Te(!1, t);
2679
+ return new De(!1, t);
2734
2680
  }
2735
2681
  static combine(t) {
2736
2682
  for (const i of t)
2737
2683
  if (i.isErr)
2738
2684
  return i;
2739
- return Te.ok();
2685
+ return De.ok();
2740
2686
  }
2741
2687
  }
2742
- class Xr {
2743
- value;
2688
+ class Hr {
2744
2689
  constructor(t) {
2690
+ y(this, "value");
2745
2691
  this.value = t;
2746
2692
  }
2747
2693
  isErr() {
@@ -2751,9 +2697,9 @@ class Xr {
2751
2697
  return !1;
2752
2698
  }
2753
2699
  }
2754
- class Jr {
2755
- value;
2700
+ class Xr {
2756
2701
  constructor(t) {
2702
+ y(this, "value");
2757
2703
  this.value = t;
2758
2704
  }
2759
2705
  isErr() {
@@ -2763,33 +2709,83 @@ class Jr {
2763
2709
  return !0;
2764
2710
  }
2765
2711
  }
2766
- const _a = (e) => new Xr(e), pa = (e) => new Jr(e);
2712
+ const wa = (e) => new Hr(e), Fa = (e) => new Xr(e), Jr = ["account"];
2713
+ class Yr {
2714
+ constructor() {
2715
+ y(this, "_id", Wr());
2716
+ y(this, "_config");
2717
+ wr(this, {}, { name: "NizzaStore", autoBind: !0 });
2718
+ }
2719
+ configure(t) {
2720
+ this._config = t;
2721
+ }
2722
+ createGlobalObject() {
2723
+ window.nizza = this;
2724
+ }
2725
+ get config() {
2726
+ return this.validateRequiredProps(), this._config;
2727
+ }
2728
+ validateRequiredProps() {
2729
+ Jr.forEach((t) => {
2730
+ if (t === void 0)
2731
+ throw new ri(t);
2732
+ });
2733
+ }
2734
+ }
2735
+ const Ea = new Yr();
2736
+ var Wn = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(Wn || {}), Hn = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(Hn || {});
2737
+ const Qr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Zr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ea = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ta = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, na = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ia = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ra = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, aa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, oa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, sa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ua = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "modified" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2738
+ __proto__: null,
2739
+ AddCollectionDocument: ta,
2740
+ DeleteAllCustomizationDocument: Qr,
2741
+ DeleteCollectionDocument: na,
2742
+ FindCollectionDocument: ia,
2743
+ GetAllCollectionsDocument: ra,
2744
+ GetAllCustomizationDocument: Zr,
2745
+ GetAllSnackVideosDocument: ua,
2746
+ ManageCollectionProductDocument: aa,
2747
+ Methods: Wn,
2748
+ SearchCollectionsDocument: oa,
2749
+ Status: Hn,
2750
+ UpdateCollectionDocument: sa,
2751
+ UpdateCustomizationDocument: ea
2752
+ }, Symbol.toStringTag, { value: "Module" }));
2753
+ function Ta(e) {
2754
+ return {
2755
+ class: e,
2756
+ _value: null,
2757
+ get value() {
2758
+ return this._value || (this._value = new e(), Object.freeze(this)), this._value;
2759
+ }
2760
+ };
2761
+ }
2767
2762
  export {
2768
- ia as AccountInvalidError,
2769
- Hn as AggregateRoot,
2770
- la as ApiGraphqlTypes,
2771
- ea as BaseMobxStore,
2772
- da as BaseStore,
2773
- $n as CustomStorage,
2774
- dt as DomainError,
2775
- Xr as Err,
2776
- Tr as NizzaStore,
2777
- Wn as NizzaVariationTypes,
2778
- Jr as Ok,
2779
- ta as ResourceNotFoundError,
2780
- Te as Result,
2781
- aa as StoreProvider,
2782
- na as UnexpectedError,
2783
- ra as ValueObject,
2784
- ca as apiCall,
2785
- Zr as createAggregateRoot,
2786
- pa as err,
2787
- fa as getFingerprint,
2788
- sa as getStore,
2789
- ha as lazyLoad,
2790
- ua as nizza,
2791
- _a as ok,
2792
- ma as searchParams,
2793
- va as shortId,
2794
- oa as useStore
2763
+ ka as AccountInvalidError,
2764
+ ii as AggregateRoot,
2765
+ Ca as ApiGraphqlTypes,
2766
+ ma as BaseMobxStore,
2767
+ qn as CustomStorage,
2768
+ Ue as DomainError,
2769
+ Hr as Err,
2770
+ ri as InvalidNizzaGlobalObjectError,
2771
+ Yr as NizzaStore,
2772
+ ni as NizzaVariationTypes,
2773
+ Xr as Ok,
2774
+ _a as ResourceNotFoundError,
2775
+ De as Result,
2776
+ ba as StoreProvider,
2777
+ pa as UnexpectedError,
2778
+ ha as ValueObject,
2779
+ Sa as apiCall,
2780
+ va as createAggregateRoot,
2781
+ Ta as createStore,
2782
+ Fa as err,
2783
+ Na as getFingerprint,
2784
+ ya as getStore,
2785
+ Aa as lazyLoad,
2786
+ Ea as nizza,
2787
+ wa as ok,
2788
+ Oa as searchParams,
2789
+ Wr as shortId,
2790
+ ga as useStore
2795
2791
  };