@nizza/core 0.3.0-alpha.14 → 0.3.0-alpha.15

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