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