@sticky-studio-npm/ui-core 1.0.21 → 1.0.22
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/components/popups/historyPopup/Item.d.ts +2 -1
- package/dist/components/popups/historyPopup/Item.d.ts.map +1 -1
- package/dist/components/popups/historyPopup/index.d.ts.map +1 -1
- package/dist/store/HistoryStore.d.ts +3 -0
- package/dist/store/HistoryStore.d.ts.map +1 -1
- package/dist/ui-bundle.es.js +290 -348
- package/dist/ui-bundle.umd.js +13 -13
- package/package.json +1 -1
package/dist/ui-bundle.es.js
CHANGED
|
@@ -113,9 +113,9 @@ function pn(e) {
|
|
|
113
113
|
return n = !0, e.apply(this, arguments);
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var Ue = function() {
|
|
117
117
|
};
|
|
118
|
-
function
|
|
118
|
+
function P(e) {
|
|
119
119
|
return typeof e == "function";
|
|
120
120
|
}
|
|
121
121
|
function De(e) {
|
|
@@ -207,13 +207,13 @@ var pi = Object.getOwnPropertyDescriptors || function(n) {
|
|
|
207
207
|
t[r] = At(n, r);
|
|
208
208
|
}), t;
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function U(e, n) {
|
|
211
211
|
return !!(e & n);
|
|
212
212
|
}
|
|
213
213
|
function H(e, n, t) {
|
|
214
214
|
return t ? e |= n : e &= ~n, e;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Cn(e, n) {
|
|
217
217
|
(n == null || n > e.length) && (n = e.length);
|
|
218
218
|
for (var t = 0, r = Array(n); t < n; t++) r[t] = e[t];
|
|
219
219
|
return r;
|
|
@@ -280,9 +280,9 @@ function bi(e) {
|
|
|
280
280
|
}
|
|
281
281
|
function mi(e, n) {
|
|
282
282
|
if (e) {
|
|
283
|
-
if (typeof e == "string") return
|
|
283
|
+
if (typeof e == "string") return Cn(e, n);
|
|
284
284
|
var t = {}.toString.call(e).slice(8, -1);
|
|
285
|
-
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
285
|
+
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Cn(e, n) : void 0;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
var j = /* @__PURE__ */ Symbol("mobx-stored-annotations");
|
|
@@ -295,14 +295,14 @@ function de(e) {
|
|
|
295
295
|
return Object.assign(n, e);
|
|
296
296
|
}
|
|
297
297
|
function st(e, n, t) {
|
|
298
|
-
if (ee(e, j) || at(e, j, me({}, e[j])), process.env.NODE_ENV !== "production" &&
|
|
298
|
+
if (ee(e, j) || at(e, j, me({}, e[j])), process.env.NODE_ENV !== "production" && Et(t) && !ee(e[j], n)) {
|
|
299
299
|
var r = e.constructor.name + ".prototype." + n.toString();
|
|
300
300
|
A("'" + r + "' is decorated with 'override', but no such decorated member was found on prototype.");
|
|
301
301
|
}
|
|
302
|
-
gi(e, t, n),
|
|
302
|
+
gi(e, t, n), Et(t) || (e[j][n] = t);
|
|
303
303
|
}
|
|
304
304
|
function gi(e, n, t) {
|
|
305
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
305
|
+
if (process.env.NODE_ENV !== "production" && !Et(n) && ee(e[j], t)) {
|
|
306
306
|
var r = e.constructor.name + ".prototype." + t.toString(), o = e[j][t].annotationType_, s = n.annotationType_;
|
|
307
307
|
A("Cannot apply '@" + s + "' to '" + r + "':" + (`
|
|
308
308
|
The field is already decorated with '@` + o + "'.") + `
|
|
@@ -321,7 +321,7 @@ function Pt(e, n) {
|
|
|
321
321
|
}
|
|
322
322
|
var S = /* @__PURE__ */ Symbol("mobx administration"), Se = /* @__PURE__ */ (function() {
|
|
323
323
|
function e(t) {
|
|
324
|
-
t === void 0 && (t = process.env.NODE_ENV !== "production" ? "Atom@" + se() : "Atom"), this.name_ = void 0, this.flags_ = 0, this.observers_ = /* @__PURE__ */ new Set(), this.lastAccessedBy_ = 0, this.lowestObserverState_ =
|
|
324
|
+
t === void 0 && (t = process.env.NODE_ENV !== "production" ? "Atom@" + se() : "Atom"), this.name_ = void 0, this.flags_ = 0, this.observers_ = /* @__PURE__ */ new Set(), this.lastAccessedBy_ = 0, this.lowestObserverState_ = T.NOT_TRACKING_, this.onBOL = void 0, this.onBUOL = void 0, this.name_ = t;
|
|
325
325
|
}
|
|
326
326
|
var n = e.prototype;
|
|
327
327
|
return n.onBO = function() {
|
|
@@ -341,7 +341,7 @@ var S = /* @__PURE__ */ Symbol("mobx administration"), Se = /* @__PURE__ */ (fun
|
|
|
341
341
|
}, Xe(e, [{
|
|
342
342
|
key: "isBeingObserved",
|
|
343
343
|
get: function() {
|
|
344
|
-
return
|
|
344
|
+
return U(this.flags_, e.isBeingObservedMask_);
|
|
345
345
|
},
|
|
346
346
|
set: function(r) {
|
|
347
347
|
this.flags_ = H(this.flags_, e.isBeingObservedMask_, r);
|
|
@@ -349,7 +349,7 @@ var S = /* @__PURE__ */ Symbol("mobx administration"), Se = /* @__PURE__ */ (fun
|
|
|
349
349
|
}, {
|
|
350
350
|
key: "isPendingUnobservation",
|
|
351
351
|
get: function() {
|
|
352
|
-
return
|
|
352
|
+
return U(this.flags_, e.isPendingUnobservationMask_);
|
|
353
353
|
},
|
|
354
354
|
set: function(r) {
|
|
355
355
|
this.flags_ = H(this.flags_, e.isPendingUnobservationMask_, r);
|
|
@@ -357,7 +357,7 @@ var S = /* @__PURE__ */ Symbol("mobx administration"), Se = /* @__PURE__ */ (fun
|
|
|
357
357
|
}, {
|
|
358
358
|
key: "diffValue",
|
|
359
359
|
get: function() {
|
|
360
|
-
return
|
|
360
|
+
return U(this.flags_, e.diffValueMask_) ? 1 : 0;
|
|
361
361
|
},
|
|
362
362
|
set: function(r) {
|
|
363
363
|
this.flags_ = H(this.flags_, e.diffValueMask_, r === 1);
|
|
@@ -369,9 +369,9 @@ Se.isPendingUnobservationMask_ = 2;
|
|
|
369
369
|
Se.diffValueMask_ = 4;
|
|
370
370
|
var vn = /* @__PURE__ */ Pe("Atom", Se);
|
|
371
371
|
function pr(e, n, t) {
|
|
372
|
-
n === void 0 && (n =
|
|
372
|
+
n === void 0 && (n = Ue), t === void 0 && (t = Ue);
|
|
373
373
|
var r = new Se(e);
|
|
374
|
-
return n !==
|
|
374
|
+
return n !== Ue && Lo(r, n), t !== Ue && Ir(r, t), r;
|
|
375
375
|
}
|
|
376
376
|
function Ai(e, n) {
|
|
377
377
|
return Zr(e, n);
|
|
@@ -395,7 +395,7 @@ function Be(e, n, t) {
|
|
|
395
395
|
}) : typeof e == "function" && !Me(e) && !it(e) ? lr(e) ? Ke(e) : rt(t, e) : e;
|
|
396
396
|
}
|
|
397
397
|
function Si(e, n, t) {
|
|
398
|
-
if (e == null || Ze(e) || jt(e) ||
|
|
398
|
+
if (e == null || Ze(e) || jt(e) || Ee(e) || le(e))
|
|
399
399
|
return e;
|
|
400
400
|
if (Array.isArray(e))
|
|
401
401
|
return x.array(e, {
|
|
@@ -422,20 +422,20 @@ function Si(e, n, t) {
|
|
|
422
422
|
function It(e) {
|
|
423
423
|
return e;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Ei(e, n) {
|
|
426
426
|
return process.env.NODE_ENV !== "production" && ot(e) && A("observable.struct should not be used with observable values"), Zr(e, n) ? n : e;
|
|
427
427
|
}
|
|
428
|
-
var
|
|
429
|
-
function
|
|
430
|
-
return e.annotationType_ ===
|
|
428
|
+
var wi = "override";
|
|
429
|
+
function Et(e) {
|
|
430
|
+
return e.annotationType_ === wi;
|
|
431
431
|
}
|
|
432
432
|
function lt(e, n) {
|
|
433
433
|
return {
|
|
434
434
|
annotationType_: e,
|
|
435
435
|
options_: n,
|
|
436
436
|
make_: Ni,
|
|
437
|
-
extend_:
|
|
438
|
-
decorate_20223_:
|
|
437
|
+
extend_: Ti,
|
|
438
|
+
decorate_20223_: Ci
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
441
|
function Ni(e, n, t, r) {
|
|
@@ -449,11 +449,11 @@ function Ni(e, n, t, r) {
|
|
|
449
449
|
var s = vr(e, this, n, t, !1);
|
|
450
450
|
return fe(r, n, s), 2;
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Ti(e, n, t, r) {
|
|
453
453
|
var o = vr(e, this, n, t);
|
|
454
454
|
return e.defineProperty_(n, o, r);
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Ci(e, n) {
|
|
457
457
|
process.env.NODE_ENV !== "production" && Pt(n, ["method", "field"]);
|
|
458
458
|
var t = n.kind, r = n.name, o = n.addInitializer, s = this, u = function(p) {
|
|
459
459
|
var m, i, a, l;
|
|
@@ -476,7 +476,7 @@ function Ti(e, n) {
|
|
|
476
476
|
}
|
|
477
477
|
function xi(e, n, t, r) {
|
|
478
478
|
var o = n.annotationType_, s = r.value;
|
|
479
|
-
process.env.NODE_ENV !== "production" && !
|
|
479
|
+
process.env.NODE_ENV !== "production" && !P(s) && A("Cannot apply '" + o + "' to '" + e.name_ + "." + t.toString() + "':" + (`
|
|
480
480
|
'` + o + "' can only be used on properties with a function value."));
|
|
481
481
|
}
|
|
482
482
|
function vr(e, n, t, r, o) {
|
|
@@ -540,7 +540,7 @@ function Vi(e, n) {
|
|
|
540
540
|
}
|
|
541
541
|
function Li(e, n, t, r) {
|
|
542
542
|
var o = n.annotationType_, s = r.value;
|
|
543
|
-
process.env.NODE_ENV !== "production" && !
|
|
543
|
+
process.env.NODE_ENV !== "production" && !P(s) && A("Cannot apply '" + o + "' to '" + e.name_ + "." + t.toString() + "':" + (`
|
|
544
544
|
'` + o + "' can only be used on properties with a generator function value."));
|
|
545
545
|
}
|
|
546
546
|
function br(e, n, t, r, o, s) {
|
|
@@ -612,7 +612,7 @@ function ki(e, n, t) {
|
|
|
612
612
|
}
|
|
613
613
|
function ji(e, n, t, r) {
|
|
614
614
|
var o, s;
|
|
615
|
-
return
|
|
615
|
+
return $i(e, this, n, t), e.defineObservableProperty_(n, t.value, (o = (s = this.options_) == null ? void 0 : s.enhancer) != null ? o : Be, r);
|
|
616
616
|
}
|
|
617
617
|
function Fi(e, n) {
|
|
618
618
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -638,15 +638,15 @@ function Fi(e, n) {
|
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function $i(e, n, t, r) {
|
|
642
642
|
var o = n.annotationType_;
|
|
643
643
|
process.env.NODE_ENV !== "production" && !("value" in r) && A("Cannot apply '" + o + "' to '" + e.name_ + "." + t.toString() + "':" + (`
|
|
644
644
|
'` + o + "' cannot be used on getter/setter properties"));
|
|
645
645
|
}
|
|
646
|
-
var
|
|
646
|
+
var Ui = "true", Hi = /* @__PURE__ */ mr();
|
|
647
647
|
function mr(e) {
|
|
648
648
|
return {
|
|
649
|
-
annotationType_:
|
|
649
|
+
annotationType_: Ui,
|
|
650
650
|
options_: e,
|
|
651
651
|
make_: Gi,
|
|
652
652
|
extend_: Ki,
|
|
@@ -656,7 +656,7 @@ function mr(e) {
|
|
|
656
656
|
function Gi(e, n, t, r) {
|
|
657
657
|
var o, s;
|
|
658
658
|
if (t.get)
|
|
659
|
-
return
|
|
659
|
+
return Ce.make_(e, n, t, r);
|
|
660
660
|
if (t.set) {
|
|
661
661
|
var u = Me(t.set) ? t.set : Ve(n.toString(), t.set);
|
|
662
662
|
return r === e.target_ ? e.defineProperty_(n, {
|
|
@@ -686,7 +686,7 @@ function Gi(e, n, t, r) {
|
|
|
686
686
|
function Ki(e, n, t, r) {
|
|
687
687
|
var o, s;
|
|
688
688
|
if (t.get)
|
|
689
|
-
return
|
|
689
|
+
return Ce.extend_(e, n, t, r);
|
|
690
690
|
if (t.set)
|
|
691
691
|
return e.defineProperty_(n, {
|
|
692
692
|
configurable: g.safeDescriptors ? e.isPlainObject_ : !0,
|
|
@@ -717,7 +717,7 @@ var rn = /* @__PURE__ */ Rt(Wi), zi = /* @__PURE__ */ Rt(Xi, {
|
|
|
717
717
|
}), Ji = /* @__PURE__ */ Rt(Zi, {
|
|
718
718
|
enhancer: Si
|
|
719
719
|
}), Qi = /* @__PURE__ */ Rt(Yi, {
|
|
720
|
-
enhancer:
|
|
720
|
+
enhancer: Ei
|
|
721
721
|
}), yr = /* @__PURE__ */ de(rn);
|
|
722
722
|
function _t(e) {
|
|
723
723
|
return e.deep === !0 ? Be : e.deep === !1 ? It : to(e.defaultDecorator);
|
|
@@ -758,7 +758,7 @@ var no = {
|
|
|
758
758
|
return new Gr(n, _t(r), r.name);
|
|
759
759
|
},
|
|
760
760
|
object: function(n, t, r) {
|
|
761
|
-
return
|
|
761
|
+
return we(function() {
|
|
762
762
|
return kr(g.useProxies === !1 || r?.proxy === !1 ? ke({}, r) : Go({}, r), n, t);
|
|
763
763
|
});
|
|
764
764
|
},
|
|
@@ -768,20 +768,20 @@ var no = {
|
|
|
768
768
|
struct: /* @__PURE__ */ de(Qi)
|
|
769
769
|
}, x = /* @__PURE__ */ ar(Ar, no), Or = "computed", ro = "computed.struct", on = /* @__PURE__ */ hn(Or), io = /* @__PURE__ */ hn(ro, {
|
|
770
770
|
equals: St.structural
|
|
771
|
-
}),
|
|
771
|
+
}), Ce = function(n, t) {
|
|
772
772
|
if (ut(t))
|
|
773
773
|
return on.decorate_20223_(n, t);
|
|
774
774
|
if (De(t))
|
|
775
775
|
return st(n, t, on);
|
|
776
776
|
if (K(n))
|
|
777
777
|
return de(hn(Or, n));
|
|
778
|
-
process.env.NODE_ENV !== "production" && (
|
|
778
|
+
process.env.NODE_ENV !== "production" && (P(n) || A("First argument to `computed` should be an expression."), P(t) && A("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));
|
|
779
779
|
var r = K(t) ? t : {};
|
|
780
780
|
return r.get = n, r.name || (r.name = n.name || ""), new ne(r);
|
|
781
781
|
};
|
|
782
|
-
Object.assign(
|
|
783
|
-
|
|
784
|
-
var xn, Dn,
|
|
782
|
+
Object.assign(Ce, on);
|
|
783
|
+
Ce.struct = /* @__PURE__ */ de(io);
|
|
784
|
+
var xn, Dn, wt = 0, oo = 1, ao = (xn = (Dn = /* @__PURE__ */ At(function() {
|
|
785
785
|
}, "name")) == null ? void 0 : Dn.configurable) != null ? xn : !1, Bn = {
|
|
786
786
|
value: "action",
|
|
787
787
|
configurable: !0,
|
|
@@ -789,7 +789,7 @@ var xn, Dn, Et = 0, oo = 1, ao = (xn = (Dn = /* @__PURE__ */ At(function() {
|
|
|
789
789
|
enumerable: !1
|
|
790
790
|
};
|
|
791
791
|
function Ve(e, n, t, r) {
|
|
792
|
-
t === void 0 && (t = !1), process.env.NODE_ENV !== "production" && (
|
|
792
|
+
t === void 0 && (t = !1), process.env.NODE_ENV !== "production" && (P(n) || A("`action` can only be invoked on functions"), (typeof e != "string" || !e) && A("actions should have valid names, got: '" + e + "'"));
|
|
793
793
|
function o() {
|
|
794
794
|
return so(e, t, n, r || this, arguments);
|
|
795
795
|
}
|
|
@@ -831,12 +831,12 @@ function uo(e, n, t, r) {
|
|
|
831
831
|
notifySpy_: o,
|
|
832
832
|
startTime_: s,
|
|
833
833
|
actionId_: oo++,
|
|
834
|
-
parentActionId_:
|
|
834
|
+
parentActionId_: wt
|
|
835
835
|
};
|
|
836
|
-
return
|
|
836
|
+
return wt = i.actionId_, i;
|
|
837
837
|
}
|
|
838
838
|
function lo(e) {
|
|
839
|
-
|
|
839
|
+
wt !== e.actionId_ && A(30), wt = e.parentActionId_, e.error_ !== void 0 && (g.suppressReactionErrors = !0), mn(e.prevAllowStateChanges_), Qe(e.prevAllowStateReads_), Q(), e.runAsAction_ && he(e.prevDerivation_), process.env.NODE_ENV !== "production" && e.notifySpy_ && W({
|
|
840
840
|
time: Date.now() - e.startTime_
|
|
841
841
|
}), g.suppressReactionErrors = !1;
|
|
842
842
|
}
|
|
@@ -925,7 +925,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
925
925
|
}, n;
|
|
926
926
|
})(Se), ne = /* @__PURE__ */ (function() {
|
|
927
927
|
function e(t) {
|
|
928
|
-
this.dependenciesState_ =
|
|
928
|
+
this.dependenciesState_ = T.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.observers_ = /* @__PURE__ */ new Set(), this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = T.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new Nt(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.flags_ = 0, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = te.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, t.get || A(31), this.derivation = t.get, this.name_ = t.name || (process.env.NODE_ENV !== "production" ? "ComputedValue@" + se() : "ComputedValue"), t.set && (this.setter_ = Ve(process.env.NODE_ENV !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", t.set)), this.equals_ = t.equals || (t.compareStructural || t.struct ? St.structural : St.default), this.scope_ = t.context, this.requiresReaction_ = t.requiresReaction, this.keepAlive_ = !!t.keepAlive;
|
|
929
929
|
}
|
|
930
930
|
var n = e.prototype;
|
|
931
931
|
return n.onBecomeStale_ = function() {
|
|
@@ -963,7 +963,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
963
963
|
}, n.trackAndCompute = function() {
|
|
964
964
|
var r = this.value_, o = (
|
|
965
965
|
/* see #1208 */
|
|
966
|
-
this.dependenciesState_ ===
|
|
966
|
+
this.dependenciesState_ === T.NOT_TRACKING_
|
|
967
967
|
), s = this.computeValue_(!0), u = o || bt(r) || bt(s) || !this.equals_(r, s);
|
|
968
968
|
return u && (this.value_ = s, process.env.NODE_ENV !== "production" && I() && Le({
|
|
969
969
|
observableKind: "computed",
|
|
@@ -991,7 +991,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
991
991
|
this.keepAlive_ || (sn(this), this.value_ = void 0, process.env.NODE_ENV !== "production" && this.isTracing_ !== te.NONE && console.log("[mobx.trace] Computed value '" + this.name_ + "' was suspended and it will recompute on the next access."));
|
|
992
992
|
}, n.observe_ = function(r, o) {
|
|
993
993
|
var s = this, u = !0, c = void 0;
|
|
994
|
-
return
|
|
994
|
+
return Co(function() {
|
|
995
995
|
var f = s.get();
|
|
996
996
|
if (!u || o) {
|
|
997
997
|
var p = Ie();
|
|
@@ -1017,7 +1017,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
1017
1017
|
}, Xe(e, [{
|
|
1018
1018
|
key: "isComputing",
|
|
1019
1019
|
get: function() {
|
|
1020
|
-
return
|
|
1020
|
+
return U(this.flags_, e.isComputingMask_);
|
|
1021
1021
|
},
|
|
1022
1022
|
set: function(r) {
|
|
1023
1023
|
this.flags_ = H(this.flags_, e.isComputingMask_, r);
|
|
@@ -1025,7 +1025,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
1025
1025
|
}, {
|
|
1026
1026
|
key: "isRunningSetter",
|
|
1027
1027
|
get: function() {
|
|
1028
|
-
return
|
|
1028
|
+
return U(this.flags_, e.isRunningSetterMask_);
|
|
1029
1029
|
},
|
|
1030
1030
|
set: function(r) {
|
|
1031
1031
|
this.flags_ = H(this.flags_, e.isRunningSetterMask_, r);
|
|
@@ -1033,7 +1033,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
1033
1033
|
}, {
|
|
1034
1034
|
key: "isBeingObserved",
|
|
1035
1035
|
get: function() {
|
|
1036
|
-
return
|
|
1036
|
+
return U(this.flags_, e.isBeingObservedMask_);
|
|
1037
1037
|
},
|
|
1038
1038
|
set: function(r) {
|
|
1039
1039
|
this.flags_ = H(this.flags_, e.isBeingObservedMask_, r);
|
|
@@ -1041,7 +1041,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
1041
1041
|
}, {
|
|
1042
1042
|
key: "isPendingUnobservation",
|
|
1043
1043
|
get: function() {
|
|
1044
|
-
return
|
|
1044
|
+
return U(this.flags_, e.isPendingUnobservationMask_);
|
|
1045
1045
|
},
|
|
1046
1046
|
set: function(r) {
|
|
1047
1047
|
this.flags_ = H(this.flags_, e.isPendingUnobservationMask_, r);
|
|
@@ -1049,7 +1049,7 @@ var co = "create", xe = /* @__PURE__ */ (function(e) {
|
|
|
1049
1049
|
}, {
|
|
1050
1050
|
key: "diffValue",
|
|
1051
1051
|
get: function() {
|
|
1052
|
-
return
|
|
1052
|
+
return U(this.flags_, e.diffValueMask_) ? 1 : 0;
|
|
1053
1053
|
},
|
|
1054
1054
|
set: function(r) {
|
|
1055
1055
|
this.flags_ = H(this.flags_, e.diffValueMask_, r === 1);
|
|
@@ -1061,10 +1061,10 @@ ne.isRunningSetterMask_ = 2;
|
|
|
1061
1061
|
ne.isBeingObservedMask_ = 4;
|
|
1062
1062
|
ne.isPendingUnobservationMask_ = 8;
|
|
1063
1063
|
ne.diffValueMask_ = 16;
|
|
1064
|
-
var kt = /* @__PURE__ */ Pe("ComputedValue", ne),
|
|
1064
|
+
var kt = /* @__PURE__ */ Pe("ComputedValue", ne), T;
|
|
1065
1065
|
(function(e) {
|
|
1066
1066
|
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_";
|
|
1067
|
-
})(
|
|
1067
|
+
})(T || (T = {}));
|
|
1068
1068
|
var te;
|
|
1069
1069
|
(function(e) {
|
|
1070
1070
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
@@ -1077,12 +1077,12 @@ function bt(e) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function an(e) {
|
|
1079
1079
|
switch (e.dependenciesState_) {
|
|
1080
|
-
case
|
|
1080
|
+
case T.UP_TO_DATE_:
|
|
1081
1081
|
return !1;
|
|
1082
|
-
case
|
|
1083
|
-
case
|
|
1082
|
+
case T.NOT_TRACKING_:
|
|
1083
|
+
case T.STALE_:
|
|
1084
1084
|
return !0;
|
|
1085
|
-
case
|
|
1085
|
+
case T.POSSIBLY_STALE_: {
|
|
1086
1086
|
for (var n = gn(!0), t = Ie(), r = e.observing_, o = r.length, s = 0; s < o; s++) {
|
|
1087
1087
|
var u = r[s];
|
|
1088
1088
|
if (kt(u)) {
|
|
@@ -1094,11 +1094,11 @@ function an(e) {
|
|
|
1094
1094
|
} catch {
|
|
1095
1095
|
return he(t), Qe(n), !0;
|
|
1096
1096
|
}
|
|
1097
|
-
if (e.dependenciesState_ ===
|
|
1097
|
+
if (e.dependenciesState_ === T.STALE_)
|
|
1098
1098
|
return he(t), Qe(n), !0;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
return
|
|
1101
|
+
return wr(e), he(t), Qe(n), !1;
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
@@ -1113,7 +1113,7 @@ function fo(e) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
function Sr(e, n, t) {
|
|
1115
1115
|
var r = gn(!0);
|
|
1116
|
-
|
|
1116
|
+
wr(e), e.newObserving_ = new Array(
|
|
1117
1117
|
// Reserve constant space for initial dependencies, dynamic space otherwise.
|
|
1118
1118
|
// See https://github.com/mobxjs/mobx/pull/3833
|
|
1119
1119
|
e.runId_ === 0 ? 100 : e.observing_.length
|
|
@@ -1135,28 +1135,28 @@ function _o(e) {
|
|
|
1135
1135
|
process.env.NODE_ENV !== "production" && e.observing_.length === 0 && (typeof e.requiresObservable_ == "boolean" ? e.requiresObservable_ : g.reactionRequiresObservable) && console.warn("[mobx] Derivation '" + e.name_ + "' is created/updated without reading any observable value.");
|
|
1136
1136
|
}
|
|
1137
1137
|
function po(e) {
|
|
1138
|
-
for (var n = e.observing_, t = e.observing_ = e.newObserving_, r =
|
|
1138
|
+
for (var n = e.observing_, t = e.observing_ = e.newObserving_, r = T.UP_TO_DATE_, o = 0, s = e.unboundDepsCount_, u = 0; u < s; u++) {
|
|
1139
1139
|
var c = t[u];
|
|
1140
1140
|
c.diffValue === 0 && (c.diffValue = 1, o !== u && (t[o] = c), o++), c.dependenciesState_ > r && (r = c.dependenciesState_);
|
|
1141
1141
|
}
|
|
1142
1142
|
for (t.length = o, e.newObserving_ = null, s = n.length; s--; ) {
|
|
1143
1143
|
var f = n[s];
|
|
1144
|
-
f.diffValue === 0 &&
|
|
1144
|
+
f.diffValue === 0 && Tr(f, e), f.diffValue = 0;
|
|
1145
1145
|
}
|
|
1146
1146
|
for (; o--; ) {
|
|
1147
1147
|
var p = t[o];
|
|
1148
1148
|
p.diffValue === 1 && (p.diffValue = 0, ho(p, e));
|
|
1149
1149
|
}
|
|
1150
|
-
r !==
|
|
1150
|
+
r !== T.UP_TO_DATE_ && (e.dependenciesState_ = r, e.onBecomeStale_());
|
|
1151
1151
|
}
|
|
1152
1152
|
function sn(e) {
|
|
1153
1153
|
var n = e.observing_;
|
|
1154
1154
|
e.observing_ = [];
|
|
1155
1155
|
for (var t = n.length; t--; )
|
|
1156
|
-
|
|
1157
|
-
e.dependenciesState_ =
|
|
1156
|
+
Tr(n[t], e);
|
|
1157
|
+
e.dependenciesState_ = T.NOT_TRACKING_;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function Er(e) {
|
|
1160
1160
|
var n = Ie();
|
|
1161
1161
|
try {
|
|
1162
1162
|
return e();
|
|
@@ -1178,11 +1178,11 @@ function gn(e) {
|
|
|
1178
1178
|
function Qe(e) {
|
|
1179
1179
|
g.allowStateReads = e;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
if (e.dependenciesState_ !==
|
|
1183
|
-
e.dependenciesState_ =
|
|
1181
|
+
function wr(e) {
|
|
1182
|
+
if (e.dependenciesState_ !== T.UP_TO_DATE_) {
|
|
1183
|
+
e.dependenciesState_ = T.UP_TO_DATE_;
|
|
1184
1184
|
for (var n = e.observing_, t = n.length; t--; )
|
|
1185
|
-
n[t].lowestObserverState_ =
|
|
1185
|
+
n[t].lowestObserverState_ = T.UP_TO_DATE_;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
var mt = function() {
|
|
@@ -1202,10 +1202,10 @@ function vo() {
|
|
|
1202
1202
|
function ho(e, n) {
|
|
1203
1203
|
e.observers_.add(n), e.lowestObserverState_ > n.dependenciesState_ && (e.lowestObserverState_ = n.dependenciesState_);
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
e.observers_.delete(n), e.observers_.size === 0 &&
|
|
1205
|
+
function Tr(e, n) {
|
|
1206
|
+
e.observers_.delete(n), e.observers_.size === 0 && Cr(e);
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Cr(e) {
|
|
1209
1209
|
e.isPendingUnobservation === !1 && (e.isPendingUnobservation = !0, g.pendingUnobservations.push(e));
|
|
1210
1210
|
}
|
|
1211
1211
|
function J() {
|
|
@@ -1224,21 +1224,21 @@ function Q() {
|
|
|
1224
1224
|
function xr(e) {
|
|
1225
1225
|
fo(e);
|
|
1226
1226
|
var n = g.trackingDerivation;
|
|
1227
|
-
return n !== null ? (n.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = n.runId_, n.newObserving_[n.unboundDepsCount_++] = e, !e.isBeingObserved && g.trackingContext && (e.isBeingObserved = !0, e.onBO())), e.isBeingObserved) : (e.observers_.size === 0 && g.inBatch > 0 &&
|
|
1227
|
+
return n !== null ? (n.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = n.runId_, n.newObserving_[n.unboundDepsCount_++] = e, !e.isBeingObserved && g.trackingContext && (e.isBeingObserved = !0, e.onBO())), e.isBeingObserved) : (e.observers_.size === 0 && g.inBatch > 0 && Cr(e), !1);
|
|
1228
1228
|
}
|
|
1229
1229
|
function Dr(e) {
|
|
1230
|
-
e.lowestObserverState_ !==
|
|
1231
|
-
n.dependenciesState_ ===
|
|
1230
|
+
e.lowestObserverState_ !== T.STALE_ && (e.lowestObserverState_ = T.STALE_, e.observers_.forEach(function(n) {
|
|
1231
|
+
n.dependenciesState_ === T.UP_TO_DATE_ && (process.env.NODE_ENV !== "production" && n.isTracing_ !== te.NONE && Br(n, e), n.onBecomeStale_()), n.dependenciesState_ = T.STALE_;
|
|
1232
1232
|
}));
|
|
1233
1233
|
}
|
|
1234
1234
|
function bo(e) {
|
|
1235
|
-
e.lowestObserverState_ !==
|
|
1236
|
-
n.dependenciesState_ ===
|
|
1235
|
+
e.lowestObserverState_ !== T.STALE_ && (e.lowestObserverState_ = T.STALE_, e.observers_.forEach(function(n) {
|
|
1236
|
+
n.dependenciesState_ === T.POSSIBLY_STALE_ ? (n.dependenciesState_ = T.STALE_, process.env.NODE_ENV !== "production" && n.isTracing_ !== te.NONE && Br(n, e)) : n.dependenciesState_ === T.UP_TO_DATE_ && (e.lowestObserverState_ = T.UP_TO_DATE_);
|
|
1237
1237
|
}));
|
|
1238
1238
|
}
|
|
1239
1239
|
function mo(e) {
|
|
1240
|
-
e.lowestObserverState_ ===
|
|
1241
|
-
n.dependenciesState_ ===
|
|
1240
|
+
e.lowestObserverState_ === T.UP_TO_DATE_ && (e.lowestObserverState_ = T.POSSIBLY_STALE_, e.observers_.forEach(function(n) {
|
|
1241
|
+
n.dependenciesState_ === T.UP_TO_DATE_ && (n.dependenciesState_ = T.POSSIBLY_STALE_, n.onBecomeStale_());
|
|
1242
1242
|
}));
|
|
1243
1243
|
}
|
|
1244
1244
|
function Br(e, n) {
|
|
@@ -1273,7 +1273,7 @@ function Vr(e, n, t) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
var ge = /* @__PURE__ */ (function() {
|
|
1275
1275
|
function e(t, r, o, s) {
|
|
1276
|
-
t === void 0 && (t = process.env.NODE_ENV !== "production" ? "Reaction@" + se() : "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ =
|
|
1276
|
+
t === void 0 && (t = process.env.NODE_ENV !== "production" ? "Reaction@" + se() : "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = T.NOT_TRACKING_, this.runId_ = 0, this.unboundDepsCount_ = 0, this.flags_ = 0, this.isTracing_ = te.NONE, this.name_ = t, this.onInvalidate_ = r, this.errorHandler_ = o, this.requiresObservable_ = s;
|
|
1277
1277
|
}
|
|
1278
1278
|
var n = e.prototype;
|
|
1279
1279
|
return n.onBecomeStale_ = function() {
|
|
@@ -1339,11 +1339,11 @@ var ge = /* @__PURE__ */ (function() {
|
|
|
1339
1339
|
}, n.toString = function() {
|
|
1340
1340
|
return "Reaction[" + this.name_ + "]";
|
|
1341
1341
|
}, n.trace = function(r) {
|
|
1342
|
-
r === void 0 && (r = !1),
|
|
1342
|
+
r === void 0 && (r = !1), $o(this, r);
|
|
1343
1343
|
}, Xe(e, [{
|
|
1344
1344
|
key: "isDisposed",
|
|
1345
1345
|
get: function() {
|
|
1346
|
-
return
|
|
1346
|
+
return U(this.flags_, e.isDisposedMask_);
|
|
1347
1347
|
},
|
|
1348
1348
|
set: function(r) {
|
|
1349
1349
|
this.flags_ = H(this.flags_, e.isDisposedMask_, r);
|
|
@@ -1351,7 +1351,7 @@ var ge = /* @__PURE__ */ (function() {
|
|
|
1351
1351
|
}, {
|
|
1352
1352
|
key: "isScheduled",
|
|
1353
1353
|
get: function() {
|
|
1354
|
-
return
|
|
1354
|
+
return U(this.flags_, e.isScheduledMask_);
|
|
1355
1355
|
},
|
|
1356
1356
|
set: function(r) {
|
|
1357
1357
|
this.flags_ = H(this.flags_, e.isScheduledMask_, r);
|
|
@@ -1359,7 +1359,7 @@ var ge = /* @__PURE__ */ (function() {
|
|
|
1359
1359
|
}, {
|
|
1360
1360
|
key: "isTrackPending",
|
|
1361
1361
|
get: function() {
|
|
1362
|
-
return
|
|
1362
|
+
return U(this.flags_, e.isTrackPendingMask_);
|
|
1363
1363
|
},
|
|
1364
1364
|
set: function(r) {
|
|
1365
1365
|
this.flags_ = H(this.flags_, e.isTrackPendingMask_, r);
|
|
@@ -1367,7 +1367,7 @@ var ge = /* @__PURE__ */ (function() {
|
|
|
1367
1367
|
}, {
|
|
1368
1368
|
key: "isRunning",
|
|
1369
1369
|
get: function() {
|
|
1370
|
-
return
|
|
1370
|
+
return U(this.flags_, e.isRunningMask_);
|
|
1371
1371
|
},
|
|
1372
1372
|
set: function(r) {
|
|
1373
1373
|
this.flags_ = H(this.flags_, e.isRunningMask_, r);
|
|
@@ -1375,7 +1375,7 @@ var ge = /* @__PURE__ */ (function() {
|
|
|
1375
1375
|
}, {
|
|
1376
1376
|
key: "diffValue",
|
|
1377
1377
|
get: function() {
|
|
1378
|
-
return
|
|
1378
|
+
return U(this.flags_, e.diffValueMask_) ? 1 : 0;
|
|
1379
1379
|
},
|
|
1380
1380
|
set: function(r) {
|
|
1381
1381
|
this.flags_ = H(this.flags_, e.diffValueMask_, r === 1);
|
|
@@ -1402,7 +1402,7 @@ function go() {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
g.isRunningReactions = !1;
|
|
1404
1404
|
}
|
|
1405
|
-
var
|
|
1405
|
+
var Tt = /* @__PURE__ */ Pe("Reaction", ge);
|
|
1406
1406
|
function yo(e) {
|
|
1407
1407
|
var n = un;
|
|
1408
1408
|
un = function(r) {
|
|
@@ -1445,19 +1445,19 @@ function Oo(e) {
|
|
|
1445
1445
|
});
|
|
1446
1446
|
}));
|
|
1447
1447
|
}
|
|
1448
|
-
var yn = "action", So = "action.bound", Mr = "autoAction",
|
|
1448
|
+
var yn = "action", So = "action.bound", Mr = "autoAction", Eo = "autoAction.bound", wo = "<unnamed action>", ln = /* @__PURE__ */ lt(yn), No = /* @__PURE__ */ lt(So, {
|
|
1449
1449
|
bound: !0
|
|
1450
1450
|
}), cn = /* @__PURE__ */ lt(Mr, {
|
|
1451
1451
|
autoAction: !0
|
|
1452
|
-
}),
|
|
1452
|
+
}), To = /* @__PURE__ */ lt(Eo, {
|
|
1453
1453
|
autoAction: !0,
|
|
1454
1454
|
bound: !0
|
|
1455
1455
|
});
|
|
1456
1456
|
function Pr(e) {
|
|
1457
1457
|
var n = function(r, o) {
|
|
1458
|
-
if (
|
|
1459
|
-
return Ve(r.name ||
|
|
1460
|
-
if (
|
|
1458
|
+
if (P(r))
|
|
1459
|
+
return Ve(r.name || wo, r, e);
|
|
1460
|
+
if (P(o))
|
|
1461
1461
|
return Ve(r, o, e);
|
|
1462
1462
|
if (ut(o))
|
|
1463
1463
|
return (e ? cn : ln).decorate_20223_(r, o);
|
|
@@ -1477,13 +1477,13 @@ Object.assign(V, ln);
|
|
|
1477
1477
|
var rt = /* @__PURE__ */ Pr(!0);
|
|
1478
1478
|
Object.assign(rt, cn);
|
|
1479
1479
|
V.bound = /* @__PURE__ */ de(No);
|
|
1480
|
-
rt.bound = /* @__PURE__ */ de(
|
|
1480
|
+
rt.bound = /* @__PURE__ */ de(To);
|
|
1481
1481
|
function Me(e) {
|
|
1482
|
-
return
|
|
1482
|
+
return P(e) && e.isMobxAction === !0;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Co(e, n) {
|
|
1485
1485
|
var t, r, o, s;
|
|
1486
|
-
n === void 0 && (n = sr), process.env.NODE_ENV !== "production" && (
|
|
1486
|
+
n === void 0 && (n = sr), process.env.NODE_ENV !== "production" && (P(e) || A("Autorun expects a function as first argument"), Me(e) && A("Autorun does not accept actions since actions are untrackable"));
|
|
1487
1487
|
var u = (t = (r = n) == null ? void 0 : r.name) != null ? t : process.env.NODE_ENV !== "production" ? e.name || "Autorun@" + se() : "Autorun", c = !n.scheduler && !n.delay, f;
|
|
1488
1488
|
if (c)
|
|
1489
1489
|
f = new ge(u, function() {
|
|
@@ -1518,7 +1518,7 @@ function Ir(e, n, t) {
|
|
|
1518
1518
|
return Rr(Vo, e, n, t);
|
|
1519
1519
|
}
|
|
1520
1520
|
function Rr(e, n, t, r) {
|
|
1521
|
-
var o = qe(n), s =
|
|
1521
|
+
var o = qe(n), s = P(r) ? r : t, u = e + "L";
|
|
1522
1522
|
return o[u] ? o[u].add(s) : o[u] = /* @__PURE__ */ new Set([s]), function() {
|
|
1523
1523
|
var c = o[u];
|
|
1524
1524
|
c && (c.delete(s), c.size === 0 && delete o[u]);
|
|
@@ -1537,9 +1537,9 @@ function Io(e) {
|
|
|
1537
1537
|
}), g.allowStateReads = !g.observableRequiresReaction, process.env.NODE_ENV !== "production" && g.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), e.reactionScheduler && yo(e.reactionScheduler);
|
|
1538
1538
|
}
|
|
1539
1539
|
function kr(e, n, t, r) {
|
|
1540
|
-
process.env.NODE_ENV !== "production" && (arguments.length > 4 && A("'extendObservable' expected 2-4 arguments"), typeof e != "object" && A("'extendObservable' expects an object as first argument"),
|
|
1540
|
+
process.env.NODE_ENV !== "production" && (arguments.length > 4 && A("'extendObservable' expected 2-4 arguments"), typeof e != "object" && A("'extendObservable' expects an object as first argument"), Ee(e) && A("'extendObservable' should not be used on maps, use map.merge instead"), K(n) || A("'extendObservable' only accepts plain objects as second argument"), (ot(n) || ot(t)) && A("Extending an object with another observable (object) is not supported"));
|
|
1541
1541
|
var o = pi(n);
|
|
1542
|
-
return
|
|
1542
|
+
return we(function() {
|
|
1543
1543
|
var s = ke(e, r)[S];
|
|
1544
1544
|
Ge(o).forEach(function(u) {
|
|
1545
1545
|
s.extend_(
|
|
@@ -1564,17 +1564,17 @@ function Ro(e) {
|
|
|
1564
1564
|
return Array.from(new Set(e));
|
|
1565
1565
|
}
|
|
1566
1566
|
var ko = 0;
|
|
1567
|
-
function
|
|
1567
|
+
function $r() {
|
|
1568
1568
|
this.message = "FLOW_CANCELLED";
|
|
1569
1569
|
}
|
|
1570
|
-
|
|
1571
|
-
var
|
|
1570
|
+
$r.prototype = /* @__PURE__ */ Object.create(Error.prototype);
|
|
1571
|
+
var $t = /* @__PURE__ */ hr("flow"), jo = /* @__PURE__ */ hr("flow.bound", {
|
|
1572
1572
|
bound: !0
|
|
1573
1573
|
}), Ke = /* @__PURE__ */ Object.assign(function(n, t) {
|
|
1574
1574
|
if (ut(t))
|
|
1575
|
-
return
|
|
1575
|
+
return $t.decorate_20223_(n, t);
|
|
1576
1576
|
if (De(t))
|
|
1577
|
-
return st(n, t,
|
|
1577
|
+
return st(n, t, $t);
|
|
1578
1578
|
process.env.NODE_ENV !== "production" && arguments.length !== 1 && A("Flow expects single argument with generator function");
|
|
1579
1579
|
var r = n, o = r.name || "<unnamed flow>", s = function() {
|
|
1580
1580
|
var c = this, f = arguments, p = ++ko, m = V(o + " - runid: " + p + " - init", r).apply(c, f), i, a = void 0, l = new Promise(function(d, v) {
|
|
@@ -1601,7 +1601,7 @@ var Ut = /* @__PURE__ */ hr("flow"), jo = /* @__PURE__ */ hr("flow.bound", {
|
|
|
1601
1601
|
w(D);
|
|
1602
1602
|
}
|
|
1603
1603
|
function w(O) {
|
|
1604
|
-
if (
|
|
1604
|
+
if (P(O?.then)) {
|
|
1605
1605
|
O.then(w, v);
|
|
1606
1606
|
return;
|
|
1607
1607
|
}
|
|
@@ -1613,39 +1613,39 @@ var Ut = /* @__PURE__ */ hr("flow"), jo = /* @__PURE__ */ hr("flow.bound", {
|
|
|
1613
1613
|
try {
|
|
1614
1614
|
a && Ln(a);
|
|
1615
1615
|
var d = m.return(void 0), v = Promise.resolve(d.value);
|
|
1616
|
-
v.then(
|
|
1616
|
+
v.then(Ue, Ue), Ln(v), i(new $r());
|
|
1617
1617
|
} catch (h) {
|
|
1618
1618
|
i(h);
|
|
1619
1619
|
}
|
|
1620
1620
|
}), l;
|
|
1621
1621
|
};
|
|
1622
1622
|
return s.isMobXFlow = !0, s;
|
|
1623
|
-
},
|
|
1623
|
+
}, $t);
|
|
1624
1624
|
Ke.bound = /* @__PURE__ */ de(jo);
|
|
1625
1625
|
function Ln(e) {
|
|
1626
|
-
|
|
1626
|
+
P(e.cancel) && e.cancel();
|
|
1627
1627
|
}
|
|
1628
1628
|
function it(e) {
|
|
1629
1629
|
return e?.isMobXFlow === !0;
|
|
1630
1630
|
}
|
|
1631
1631
|
function Fo(e, n) {
|
|
1632
|
-
return e ? Ze(e) || !!e[S] || vn(e) ||
|
|
1632
|
+
return e ? Ze(e) || !!e[S] || vn(e) || Tt(e) || kt(e) : !1;
|
|
1633
1633
|
}
|
|
1634
1634
|
function ot(e) {
|
|
1635
1635
|
return process.env.NODE_ENV !== "production" && arguments.length !== 1 && A("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"), Fo(e);
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function $o() {
|
|
1638
1638
|
if (process.env.NODE_ENV !== "production") {
|
|
1639
1639
|
for (var e = !1, n = arguments.length, t = new Array(n), r = 0; r < n; r++)
|
|
1640
1640
|
t[r] = arguments[r];
|
|
1641
1641
|
typeof t[t.length - 1] == "boolean" && (e = t.pop());
|
|
1642
|
-
var o =
|
|
1642
|
+
var o = Uo(t);
|
|
1643
1643
|
if (!o)
|
|
1644
1644
|
return A("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
|
|
1645
1645
|
o.isTracing_ === te.NONE && console.log("[mobx.trace] '" + o.name_ + "' tracing enabled"), o.isTracing_ = e ? te.BREAK : te.LOG;
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function Uo(e) {
|
|
1649
1649
|
switch (e.length) {
|
|
1650
1650
|
case 0:
|
|
1651
1651
|
return g.trackingDerivation;
|
|
@@ -1736,22 +1736,22 @@ function ae(e, n) {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
function An(e, n, t) {
|
|
1739
|
-
return
|
|
1739
|
+
return we(function() {
|
|
1740
1740
|
var r, o = ke(e, t)[S];
|
|
1741
1741
|
process.env.NODE_ENV !== "production" && n && e[j] && A("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."), (r = n) != null || (n = yi(e)), Ge(n).forEach(function(s) {
|
|
1742
1742
|
return o.make_(s, n[s]);
|
|
1743
1743
|
});
|
|
1744
1744
|
}), e;
|
|
1745
1745
|
}
|
|
1746
|
-
var
|
|
1746
|
+
var Ut = /* @__PURE__ */ Symbol("mobx-keys");
|
|
1747
1747
|
function Re(e, n, t) {
|
|
1748
|
-
return process.env.NODE_ENV !== "production" && (!K(e) && !K(Object.getPrototypeOf(e)) && A("'makeAutoObservable' can only be used for classes that don't have a superclass"), Ze(e) && A("makeAutoObservable can only be used on objects not already made observable")), K(e) ? kr(e, e, n, t) : (
|
|
1748
|
+
return process.env.NODE_ENV !== "production" && (!K(e) && !K(Object.getPrototypeOf(e)) && A("'makeAutoObservable' can only be used for classes that don't have a superclass"), Ze(e) && A("makeAutoObservable can only be used on objects not already made observable")), K(e) ? kr(e, e, n, t) : (we(function() {
|
|
1749
1749
|
var r = ke(e, t)[S];
|
|
1750
|
-
if (!e[
|
|
1750
|
+
if (!e[Ut]) {
|
|
1751
1751
|
var o = Object.getPrototypeOf(e), s = new Set([].concat(Ge(e), Ge(o)));
|
|
1752
|
-
s.delete("constructor"), s.delete(S), at(o,
|
|
1752
|
+
s.delete("constructor"), s.delete(S), at(o, Ut, s);
|
|
1753
1753
|
}
|
|
1754
|
-
e[
|
|
1754
|
+
e[Ut].forEach(function(u) {
|
|
1755
1755
|
return r.make_(
|
|
1756
1756
|
u,
|
|
1757
1757
|
// must pass "undefined" for { key: undefined }
|
|
@@ -1763,7 +1763,7 @@ function Re(e, n, t) {
|
|
|
1763
1763
|
var Mn = "splice", ie = "update", Ko = 1e4, qo = {
|
|
1764
1764
|
get: function(n, t) {
|
|
1765
1765
|
var r = n[S];
|
|
1766
|
-
return t === S ? r : t === "length" ? r.getArrayLength_() : typeof t == "string" && !isNaN(t) ? r.get_(parseInt(t)) : ee(
|
|
1766
|
+
return t === S ? r : t === "length" ? r.getArrayLength_() : typeof t == "string" && !isNaN(t) ? r.get_(parseInt(t)) : ee(Ct, t) ? Ct[t] : n[t];
|
|
1767
1767
|
},
|
|
1768
1768
|
set: function(n, t, r) {
|
|
1769
1769
|
var o = n[S];
|
|
@@ -1906,14 +1906,14 @@ var Mn = "splice", ie = "update", Ko = 1e4, qo = {
|
|
|
1906
1906
|
}, e;
|
|
1907
1907
|
})();
|
|
1908
1908
|
function Wo(e, n, t, r) {
|
|
1909
|
-
return t === void 0 && (t = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), r === void 0 && (r = !1), ur(),
|
|
1909
|
+
return t === void 0 && (t = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), r === void 0 && (r = !1), ur(), we(function() {
|
|
1910
1910
|
var o = new On(t, n, r, !1);
|
|
1911
1911
|
cr(o.values_, S, o);
|
|
1912
1912
|
var s = new Proxy(o.values_, qo);
|
|
1913
1913
|
return o.proxy_ = s, e && e.length && o.spliceWithArray_(0, 0, e), s;
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
|
-
var
|
|
1916
|
+
var Ct = {
|
|
1917
1917
|
clear: function() {
|
|
1918
1918
|
return this.splice(0);
|
|
1919
1919
|
},
|
|
@@ -2001,10 +2001,10 @@ B("forEach", ue);
|
|
|
2001
2001
|
B("map", ue);
|
|
2002
2002
|
B("some", ue);
|
|
2003
2003
|
B("toReversed", ue);
|
|
2004
|
-
B("reduce",
|
|
2005
|
-
B("reduceRight",
|
|
2004
|
+
B("reduce", Ur);
|
|
2005
|
+
B("reduceRight", Ur);
|
|
2006
2006
|
function B(e, n) {
|
|
2007
|
-
typeof Array.prototype[e] == "function" && (
|
|
2007
|
+
typeof Array.prototype[e] == "function" && (Ct[e] = n(e));
|
|
2008
2008
|
}
|
|
2009
2009
|
function X(e) {
|
|
2010
2010
|
return function() {
|
|
@@ -2024,7 +2024,7 @@ function ue(e) {
|
|
|
2024
2024
|
});
|
|
2025
2025
|
};
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function Ur(e) {
|
|
2028
2028
|
return function() {
|
|
2029
2029
|
var n = this, t = this[S];
|
|
2030
2030
|
t.atom_.reportObserved();
|
|
@@ -2041,7 +2041,7 @@ function jt(e) {
|
|
|
2041
2041
|
var Zo = {}, Ae = "add", xt = "delete", Hr = /* @__PURE__ */ (function() {
|
|
2042
2042
|
function e(t, r, o) {
|
|
2043
2043
|
var s = this;
|
|
2044
|
-
r === void 0 && (r = Be), o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableMap@" + se() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[S] = Zo, 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_ = r, this.name_ = o,
|
|
2044
|
+
r === void 0 && (r = Be), o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableMap@" + se() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[S] = Zo, 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_ = r, this.name_ = o, P(Map) || A(18), we(function() {
|
|
2045
2045
|
s.keysAtom_ = pr(process.env.NODE_ENV !== "production" ? s.name_ + ".keys()" : "ObservableMap.keys()"), s.data_ = /* @__PURE__ */ new Map(), s.hasMap_ = /* @__PURE__ */ new Map(), t && s.merge(t);
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
@@ -2168,7 +2168,7 @@ var Zo = {}, Ae = "add", xt = "delete", Hr = /* @__PURE__ */ (function() {
|
|
|
2168
2168
|
}
|
|
2169
2169
|
}, n.merge = function(r) {
|
|
2170
2170
|
var o = this;
|
|
2171
|
-
return
|
|
2171
|
+
return Ee(r) && (r = new Map(r)), ve(function() {
|
|
2172
2172
|
K(r) ? _i(r).forEach(function(s) {
|
|
2173
2173
|
return o.set(s, r[s]);
|
|
2174
2174
|
}) : Array.isArray(r) ? r.forEach(function(s) {
|
|
@@ -2181,7 +2181,7 @@ var Zo = {}, Ae = "add", xt = "delete", Hr = /* @__PURE__ */ (function() {
|
|
|
2181
2181
|
}, n.clear = function() {
|
|
2182
2182
|
var r = this;
|
|
2183
2183
|
ve(function() {
|
|
2184
|
-
|
|
2184
|
+
Er(function() {
|
|
2185
2185
|
for (var o = He(r.keys()), s; !(s = o()).done; ) {
|
|
2186
2186
|
var u = s.value;
|
|
2187
2187
|
r.delete(u);
|
|
@@ -2242,12 +2242,12 @@ var Zo = {}, Ae = "add", xt = "delete", Hr = /* @__PURE__ */ (function() {
|
|
|
2242
2242
|
return "Map";
|
|
2243
2243
|
}
|
|
2244
2244
|
}]);
|
|
2245
|
-
})(),
|
|
2245
|
+
})(), Ee = /* @__PURE__ */ Pe("ObservableMap", Hr);
|
|
2246
2246
|
function Pn(e) {
|
|
2247
|
-
return e[Symbol.toStringTag] = "MapIterator",
|
|
2247
|
+
return e[Symbol.toStringTag] = "MapIterator", En(e);
|
|
2248
2248
|
}
|
|
2249
2249
|
function Yo(e) {
|
|
2250
|
-
if (We(e) ||
|
|
2250
|
+
if (We(e) || Ee(e))
|
|
2251
2251
|
return e;
|
|
2252
2252
|
if (Array.isArray(e))
|
|
2253
2253
|
return new Map(e);
|
|
@@ -2262,9 +2262,9 @@ function Yo(e) {
|
|
|
2262
2262
|
var zo = {}, Gr = /* @__PURE__ */ (function() {
|
|
2263
2263
|
function e(t, r, o) {
|
|
2264
2264
|
var s = this;
|
|
2265
|
-
r === void 0 && (r = Be), o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableSet@" + se() : "ObservableSet"), this.name_ = void 0, this[S] = zo, 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_ = o,
|
|
2265
|
+
r === void 0 && (r = Be), o === void 0 && (o = process.env.NODE_ENV !== "production" ? "ObservableSet@" + se() : "ObservableSet"), this.name_ = void 0, this[S] = zo, 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_ = o, P(Set) || A(22), this.enhancer_ = function(u, c) {
|
|
2266
2266
|
return r(u, c, o);
|
|
2267
|
-
},
|
|
2267
|
+
}, we(function() {
|
|
2268
2268
|
s.atom_ = pr(s.name_), t && s.replace(t);
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
@@ -2274,7 +2274,7 @@ var zo = {}, Gr = /* @__PURE__ */ (function() {
|
|
|
2274
2274
|
}, n.clear = function() {
|
|
2275
2275
|
var r = this;
|
|
2276
2276
|
ve(function() {
|
|
2277
|
-
|
|
2277
|
+
Er(function() {
|
|
2278
2278
|
for (var o = He(r.data_.values()), s; !(s = o()).done; ) {
|
|
2279
2279
|
var u = s.value;
|
|
2280
2280
|
r.delete(u);
|
|
@@ -2427,7 +2427,7 @@ var zo = {}, Gr = /* @__PURE__ */ (function() {
|
|
|
2427
2427
|
}]);
|
|
2428
2428
|
})(), le = /* @__PURE__ */ Pe("ObservableSet", Gr);
|
|
2429
2429
|
function In(e) {
|
|
2430
|
-
return e[Symbol.toStringTag] = "SetIterator",
|
|
2430
|
+
return e[Symbol.toStringTag] = "SetIterator", En(e);
|
|
2431
2431
|
}
|
|
2432
2432
|
var Rn = /* @__PURE__ */ Object.create(null), kn = "remove", fn = /* @__PURE__ */ (function() {
|
|
2433
2433
|
function e(t, r, o, s) {
|
|
@@ -2481,7 +2481,7 @@ var Rn = /* @__PURE__ */ Object.create(null), kn = "remove", fn = /* @__PURE__ *
|
|
|
2481
2481
|
return o || (o = new xe(r in this.target_, It, process.env.NODE_ENV !== "production" ? this.name_ + "." + tn(r) + "?" : "ObservableObject.key?", !1), this.pendingKeys_.set(r, o)), o.get();
|
|
2482
2482
|
}, n.make_ = function(r, o) {
|
|
2483
2483
|
if (o === !0 && (o = this.defaultAnnotation_), o !== !1) {
|
|
2484
|
-
if (
|
|
2484
|
+
if ($n(this, o, r), !(r in this.target_)) {
|
|
2485
2485
|
var s;
|
|
2486
2486
|
if ((s = this.target_[j]) != null && s[r])
|
|
2487
2487
|
return;
|
|
@@ -2503,7 +2503,7 @@ var Rn = /* @__PURE__ */ Object.create(null), kn = "remove", fn = /* @__PURE__ *
|
|
|
2503
2503
|
}, n.extend_ = function(r, o, s, u) {
|
|
2504
2504
|
if (u === void 0 && (u = !1), s === !0 && (s = this.defaultAnnotation_), s === !1)
|
|
2505
2505
|
return this.defineProperty_(r, o, u);
|
|
2506
|
-
|
|
2506
|
+
$n(this, s, r);
|
|
2507
2507
|
var c = s.extend_(this, r, o, u);
|
|
2508
2508
|
return c && Fn(this, s, r), c;
|
|
2509
2509
|
}, n.defineProperty_ = function(r, o, s) {
|
|
@@ -2698,8 +2698,8 @@ function Fn(e, n, t) {
|
|
|
2698
2698
|
var r;
|
|
2699
2699
|
process.env.NODE_ENV !== "production" && (e.appliedAnnotations_[t] = n), (r = e.target_[j]) == null || delete r[t];
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2702
|
-
if (process.env.NODE_ENV !== "production" && !Yr(n) && A("Cannot annotate '" + e.name_ + "." + t.toString() + "': Invalid annotation."), process.env.NODE_ENV !== "production" && !
|
|
2701
|
+
function $n(e, n, t) {
|
|
2702
|
+
if (process.env.NODE_ENV !== "production" && !Yr(n) && A("Cannot annotate '" + e.name_ + "." + t.toString() + "': Invalid annotation."), process.env.NODE_ENV !== "production" && !Et(n) && ee(e.appliedAnnotations_, t)) {
|
|
2703
2703
|
var r = e.name_ + "." + t.toString(), o = e.appliedAnnotations_[t].annotationType_, s = n.annotationType_;
|
|
2704
2704
|
A("Cannot apply '" + s + "' to '" + r + "':" + (`
|
|
2705
2705
|
The field is already annotated with '` + o + "'.") + `
|
|
@@ -2723,7 +2723,7 @@ ta(Kr, Array.prototype);
|
|
|
2723
2723
|
var Sn = /* @__PURE__ */ (function(e) {
|
|
2724
2724
|
function n(r, o, s, u) {
|
|
2725
2725
|
var c;
|
|
2726
|
-
return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), u === void 0 && (u = !1), c = e.call(this) || this,
|
|
2726
|
+
return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableArray@" + se() : "ObservableArray"), u === void 0 && (u = !1), c = e.call(this) || this, we(function() {
|
|
2727
2727
|
var f = new On(s, o, u, !0);
|
|
2728
2728
|
f.proxy_ = c, cr(c, S, f), r && r.length && c.spliceWithArray(0, 0, r), ea && Object.defineProperty(c, "0", Qo);
|
|
2729
2729
|
}), c;
|
|
@@ -2743,7 +2743,7 @@ var Sn = /* @__PURE__ */ (function(e) {
|
|
|
2743
2743
|
);
|
|
2744
2744
|
}, t[Symbol.iterator] = function() {
|
|
2745
2745
|
var r = this, o = 0;
|
|
2746
|
-
return
|
|
2746
|
+
return En({
|
|
2747
2747
|
next: function() {
|
|
2748
2748
|
return o < r.length ? {
|
|
2749
2749
|
value: r[o++],
|
|
@@ -2769,7 +2769,7 @@ var Sn = /* @__PURE__ */ (function(e) {
|
|
|
2769
2769
|
}
|
|
2770
2770
|
}]);
|
|
2771
2771
|
})(Kr);
|
|
2772
|
-
Object.entries(
|
|
2772
|
+
Object.entries(Ct).forEach(function(e) {
|
|
2773
2773
|
var n = e[0], t = e[1];
|
|
2774
2774
|
n !== "concat" && at(Sn.prototype, n, t);
|
|
2775
2775
|
});
|
|
@@ -2805,7 +2805,7 @@ function qe(e, n) {
|
|
|
2805
2805
|
return n !== void 0 && A(23), e[S].atom_;
|
|
2806
2806
|
if (le(e))
|
|
2807
2807
|
return e.atom_;
|
|
2808
|
-
if (
|
|
2808
|
+
if (Ee(e)) {
|
|
2809
2809
|
if (n === void 0)
|
|
2810
2810
|
return e.keysAtom_;
|
|
2811
2811
|
var t = e.data_.get(n) || e.hasMap_.get(n);
|
|
@@ -2817,14 +2817,14 @@ function qe(e, n) {
|
|
|
2817
2817
|
var r = e[S].values_.get(n);
|
|
2818
2818
|
return r || A(27, n, Dt(e)), r;
|
|
2819
2819
|
}
|
|
2820
|
-
if (vn(e) || kt(e) ||
|
|
2820
|
+
if (vn(e) || kt(e) || Tt(e))
|
|
2821
2821
|
return e;
|
|
2822
|
-
} else if (
|
|
2822
|
+
} else if (P(e) && Tt(e[S]))
|
|
2823
2823
|
return e[S];
|
|
2824
2824
|
A(28);
|
|
2825
2825
|
}
|
|
2826
2826
|
function Xr(e, n) {
|
|
2827
|
-
if (e || A(29), vn(e) || kt(e) ||
|
|
2827
|
+
if (e || A(29), vn(e) || kt(e) || Tt(e) || Ee(e) || le(e))
|
|
2828
2828
|
return e;
|
|
2829
2829
|
if (e[S])
|
|
2830
2830
|
return e[S];
|
|
@@ -2837,11 +2837,11 @@ function Dt(e, n) {
|
|
|
2837
2837
|
else {
|
|
2838
2838
|
if (Me(e))
|
|
2839
2839
|
return e.name;
|
|
2840
|
-
Ze(e) ||
|
|
2840
|
+
Ze(e) || Ee(e) || le(e) ? t = Xr(e) : t = qe(e);
|
|
2841
2841
|
}
|
|
2842
2842
|
return t.name_;
|
|
2843
2843
|
}
|
|
2844
|
-
function
|
|
2844
|
+
function we(e) {
|
|
2845
2845
|
var n = Ie(), t = bn(!0);
|
|
2846
2846
|
J();
|
|
2847
2847
|
try {
|
|
@@ -2850,7 +2850,7 @@ function Ee(e) {
|
|
|
2850
2850
|
Q(), mn(t), he(n);
|
|
2851
2851
|
}
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2853
|
+
var Un = Lt.toString;
|
|
2854
2854
|
function Zr(e, n, t) {
|
|
2855
2855
|
return t === void 0 && (t = -1), dn(e, n, t);
|
|
2856
2856
|
}
|
|
@@ -2864,8 +2864,8 @@ function dn(e, n, t, r, o) {
|
|
|
2864
2864
|
var s = typeof e;
|
|
2865
2865
|
if (s !== "function" && s !== "object" && typeof n != "object")
|
|
2866
2866
|
return !1;
|
|
2867
|
-
var u =
|
|
2868
|
-
if (u !==
|
|
2867
|
+
var u = Un.call(e);
|
|
2868
|
+
if (u !== Un.call(n))
|
|
2869
2869
|
return !1;
|
|
2870
2870
|
switch (u) {
|
|
2871
2871
|
// Strings, numbers, regular expressions, dates, and booleans are compared by value.
|
|
@@ -2891,7 +2891,7 @@ function dn(e, n, t, r, o) {
|
|
|
2891
2891
|
if (typeof e != "object" || typeof n != "object")
|
|
2892
2892
|
return !1;
|
|
2893
2893
|
var f = e.constructor, p = n.constructor;
|
|
2894
|
-
if (f !== p && !(
|
|
2894
|
+
if (f !== p && !(P(f) && f instanceof f && P(p) && p instanceof p) && "constructor" in e && "constructor" in n)
|
|
2895
2895
|
return !1;
|
|
2896
2896
|
}
|
|
2897
2897
|
if (t === 0)
|
|
@@ -2919,10 +2919,10 @@ function dn(e, n, t, r, o) {
|
|
|
2919
2919
|
return r.pop(), o.pop(), !0;
|
|
2920
2920
|
}
|
|
2921
2921
|
function Hn(e) {
|
|
2922
|
-
return jt(e) ? e.slice() : We(e) ||
|
|
2922
|
+
return jt(e) ? e.slice() : We(e) || Ee(e) || pe(e) || le(e) ? Array.from(e.entries()) : e;
|
|
2923
2923
|
}
|
|
2924
2924
|
var Gn, ia = ((Gn = Vt().Iterator) == null ? void 0 : Gn.prototype) || {};
|
|
2925
|
-
function
|
|
2925
|
+
function En(e) {
|
|
2926
2926
|
return e[Symbol.iterator] = oa, Object.assign(Object.create(ia), e);
|
|
2927
2927
|
}
|
|
2928
2928
|
function oa() {
|
|
@@ -2931,7 +2931,7 @@ function oa() {
|
|
|
2931
2931
|
function Yr(e) {
|
|
2932
2932
|
return (
|
|
2933
2933
|
// Can be function
|
|
2934
|
-
e instanceof Object && typeof e.annotationType_ == "string" &&
|
|
2934
|
+
e instanceof Object && typeof e.annotationType_ == "string" && P(e.make_) && P(e.extend_)
|
|
2935
2935
|
);
|
|
2936
2936
|
}
|
|
2937
2937
|
["Symbol", "Map", "Set"].forEach(function(e) {
|
|
@@ -3273,14 +3273,14 @@ const Sa = ({
|
|
|
3273
3273
|
/* @__PURE__ */ b("span", { className: "label", children: e }),
|
|
3274
3274
|
/* @__PURE__ */ b("span", { className: "value", children: n })
|
|
3275
3275
|
] });
|
|
3276
|
-
},
|
|
3276
|
+
}, $ = {
|
|
3277
3277
|
bet: "bet",
|
|
3278
3278
|
autoplay: "autoplay",
|
|
3279
3279
|
settings: "settings",
|
|
3280
3280
|
history: "history",
|
|
3281
3281
|
buyBonus: "buy_bonus",
|
|
3282
3282
|
payTable: "pay_table_game_rules"
|
|
3283
|
-
},
|
|
3283
|
+
}, Ea = {
|
|
3284
3284
|
insufficientFunds: "insufficient funds"
|
|
3285
3285
|
}, Jn = {
|
|
3286
3286
|
primary: {
|
|
@@ -3291,9 +3291,9 @@ const Sa = ({
|
|
|
3291
3291
|
background: "#1C1B1E",
|
|
3292
3292
|
color: "#FFFFFF"
|
|
3293
3293
|
}
|
|
3294
|
-
},
|
|
3294
|
+
}, wa = [
|
|
3295
3295
|
{
|
|
3296
|
-
name:
|
|
3296
|
+
name: Ea.insufficientFunds,
|
|
3297
3297
|
title: "Insufficient Funds",
|
|
3298
3298
|
imagePath: "/img_1.png",
|
|
3299
3299
|
message: "Your balance is low, please make a deposit",
|
|
@@ -3657,46 +3657,46 @@ function Na() {
|
|
|
3657
3657
|
l._ended(_);
|
|
3658
3658
|
return;
|
|
3659
3659
|
}
|
|
3660
|
-
var
|
|
3660
|
+
var C = _._node;
|
|
3661
3661
|
if (l._webAudio) {
|
|
3662
|
-
var
|
|
3662
|
+
var wn = function() {
|
|
3663
3663
|
l._playLock = !1, je(), l._refreshBuffer(_);
|
|
3664
3664
|
var Fe = _._muted || l._muted ? 0 : _._volume;
|
|
3665
|
-
|
|
3665
|
+
C.gain.setValueAtTime(Fe, t.ctx.currentTime), _._playStart = t.ctx.currentTime, typeof C.bufferSource.start > "u" ? _._loop ? C.bufferSource.noteGrainOn(0, w, 86400) : C.bufferSource.noteGrainOn(0, w, O) : _._loop ? C.bufferSource.start(0, w, 86400) : C.bufferSource.start(0, w, O), D !== 1 / 0 && (l._endTimers[_._id] = setTimeout(l._ended.bind(l, _), D)), a || setTimeout(function() {
|
|
3666
3666
|
l._emit("play", _._id), l._loadQueue();
|
|
3667
3667
|
}, 0);
|
|
3668
3668
|
};
|
|
3669
|
-
t.state === "running" && t.ctx.state !== "interrupted" ?
|
|
3669
|
+
t.state === "running" && t.ctx.state !== "interrupted" ? wn() : (l._playLock = !0, l.once("resume", wn), l._clearTimer(_._id));
|
|
3670
3670
|
} else {
|
|
3671
3671
|
var Nn = function() {
|
|
3672
|
-
|
|
3672
|
+
C.currentTime = w, C.muted = _._muted || l._muted || t._muted || C.muted, C.volume = _._volume * t.volume(), C.playbackRate = _._rate;
|
|
3673
3673
|
try {
|
|
3674
|
-
var Fe =
|
|
3674
|
+
var Fe = C.play();
|
|
3675
3675
|
if (Fe && typeof Promise < "u" && (Fe instanceof Promise || typeof Fe.then == "function") ? (l._playLock = !0, je(), Fe.then(function() {
|
|
3676
|
-
l._playLock = !1,
|
|
3676
|
+
l._playLock = !1, C._unlocked = !0, a ? l._loadQueue() : l._emit("play", _._id);
|
|
3677
3677
|
}).catch(function() {
|
|
3678
3678
|
l._playLock = !1, l._emit("playerror", _._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."), _._ended = !0, _._paused = !0;
|
|
3679
|
-
})) : a || (l._playLock = !1, je(), l._emit("play", _._id)),
|
|
3679
|
+
})) : a || (l._playLock = !1, je(), l._emit("play", _._id)), C.playbackRate = _._rate, C.paused) {
|
|
3680
3680
|
l._emit("playerror", _._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");
|
|
3681
3681
|
return;
|
|
3682
3682
|
}
|
|
3683
3683
|
i !== "__default" || _._loop ? l._endTimers[_._id] = setTimeout(l._ended.bind(l, _), D) : (l._endTimers[_._id] = function() {
|
|
3684
|
-
l._ended(_),
|
|
3685
|
-
},
|
|
3684
|
+
l._ended(_), C.removeEventListener("ended", l._endTimers[_._id], !1);
|
|
3685
|
+
}, C.addEventListener("ended", l._endTimers[_._id], !1));
|
|
3686
3686
|
} catch (ni) {
|
|
3687
3687
|
l._emit("playerror", _._id, ni);
|
|
3688
3688
|
}
|
|
3689
3689
|
};
|
|
3690
|
-
|
|
3691
|
-
var ti = window && window.ejecta || !
|
|
3692
|
-
if (
|
|
3690
|
+
C.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (C.src = l._src, C.load());
|
|
3691
|
+
var ti = window && window.ejecta || !C.readyState && t._navigator.isCocoonJS;
|
|
3692
|
+
if (C.readyState >= 3 || ti)
|
|
3693
3693
|
Nn();
|
|
3694
3694
|
else {
|
|
3695
3695
|
l._playLock = !0, l._state = "loading";
|
|
3696
|
-
var
|
|
3697
|
-
l._state = "loaded", Nn(),
|
|
3696
|
+
var Tn = function() {
|
|
3697
|
+
l._state = "loaded", Nn(), C.removeEventListener(t._canPlayEvent, Tn, !1);
|
|
3698
3698
|
};
|
|
3699
|
-
|
|
3699
|
+
C.addEventListener(t._canPlayEvent, Tn, !1), l._clearTimer(_._id);
|
|
3700
3700
|
}
|
|
3701
3701
|
}
|
|
3702
3702
|
return _._id;
|
|
@@ -4505,9 +4505,9 @@ function Na() {
|
|
|
4505
4505
|
})();
|
|
4506
4506
|
})(Yt)), Yt;
|
|
4507
4507
|
}
|
|
4508
|
-
var
|
|
4508
|
+
var $e = Na();
|
|
4509
4509
|
const er = "default";
|
|
4510
|
-
class
|
|
4510
|
+
class Ta {
|
|
4511
4511
|
bgMusic = /* @__PURE__ */ new Map();
|
|
4512
4512
|
currentBgMusicId = "";
|
|
4513
4513
|
bgBaseVolumes = /* @__PURE__ */ new Map();
|
|
@@ -4534,9 +4534,9 @@ class Ca {
|
|
|
4534
4534
|
registerBgMusicTrack(n, t, r) {
|
|
4535
4535
|
if (this.bgMusic.has(n)) return;
|
|
4536
4536
|
const o = this.clamp(r);
|
|
4537
|
-
this.bgBaseVolumes.set(n, o),
|
|
4537
|
+
this.bgBaseVolumes.set(n, o), $e.Howler.volume(1), this.bgMusic.set(
|
|
4538
4538
|
n,
|
|
4539
|
-
new
|
|
4539
|
+
new $e.Howl({
|
|
4540
4540
|
src: Array.isArray(t) ? t : [t],
|
|
4541
4541
|
loop: !0,
|
|
4542
4542
|
volume: o * this.masterVolume
|
|
@@ -4547,7 +4547,7 @@ class Ca {
|
|
|
4547
4547
|
if (this.sfx.has(n)) return;
|
|
4548
4548
|
const o = this.clamp(r);
|
|
4549
4549
|
this.sfxBaseVolumes.set(n, o);
|
|
4550
|
-
const s = new
|
|
4550
|
+
const s = new $e.Howl({
|
|
4551
4551
|
src: Array.isArray(t) ? t : [t],
|
|
4552
4552
|
volume: o * this.masterVolume
|
|
4553
4553
|
});
|
|
@@ -4602,7 +4602,7 @@ class Ca {
|
|
|
4602
4602
|
}
|
|
4603
4603
|
setMasterVolume(n) {
|
|
4604
4604
|
let t = n / 100;
|
|
4605
|
-
t = this.clamp(t), this.masterVolume = t,
|
|
4605
|
+
t = this.clamp(t), this.masterVolume = t, $e.Howler.volume(1), !this.allMuted && (this.bgMusic.forEach((r, o) => {
|
|
4606
4606
|
const s = this.bgBaseVolumes.get(o) ?? 1;
|
|
4607
4607
|
r.volume(s * this.masterVolume);
|
|
4608
4608
|
}), this.sfx.forEach((r, o) => {
|
|
@@ -4623,20 +4623,20 @@ class Ca {
|
|
|
4623
4623
|
this.bgBaseVolumes.set(n, o), r.volume(o * this.masterVolume);
|
|
4624
4624
|
}
|
|
4625
4625
|
muteAll() {
|
|
4626
|
-
this.allMuted = !0,
|
|
4626
|
+
this.allMuted = !0, $e.Howler.mute(!0);
|
|
4627
4627
|
}
|
|
4628
4628
|
unmuteAll() {
|
|
4629
|
-
this.allMuted = !1,
|
|
4629
|
+
this.allMuted = !1, $e.Howler.mute(!1), this.setMasterVolume(this.masterVolume), this.musicMuted || this.playBgMusic();
|
|
4630
4630
|
}
|
|
4631
4631
|
clamp(n) {
|
|
4632
4632
|
return Math.max(0, Math.min(1, n));
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
|
-
const
|
|
4636
|
-
function
|
|
4637
|
-
|
|
4635
|
+
const Te = new Ta();
|
|
4636
|
+
function M() {
|
|
4637
|
+
Te.playSound(Qr.Click);
|
|
4638
4638
|
}
|
|
4639
|
-
const
|
|
4639
|
+
const Ca = ({
|
|
4640
4640
|
onClick: e,
|
|
4641
4641
|
disabled: n = !1,
|
|
4642
4642
|
value: t,
|
|
@@ -4647,7 +4647,7 @@ const Ta = ({
|
|
|
4647
4647
|
{
|
|
4648
4648
|
className: `bet-amount ${n ? "disabled" : ""} ${o ? "ante-color" : ""}`,
|
|
4649
4649
|
onClick: e && !n ? () => {
|
|
4650
|
-
|
|
4650
|
+
M(), e();
|
|
4651
4651
|
} : void 0,
|
|
4652
4652
|
children: [
|
|
4653
4653
|
/* @__PURE__ */ b("div", { className: "bet-amount-icon" }),
|
|
@@ -4672,7 +4672,7 @@ const Ta = ({
|
|
|
4672
4672
|
className: `${t} ${n ? "disabled" : ""}`,
|
|
4673
4673
|
type: "button",
|
|
4674
4674
|
onClick: e ? () => {
|
|
4675
|
-
n || (
|
|
4675
|
+
n || (M(), e());
|
|
4676
4676
|
} : void 0,
|
|
4677
4677
|
onMouseUp: r,
|
|
4678
4678
|
onTouchEnd: r,
|
|
@@ -4699,7 +4699,7 @@ class xa {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
const R = new xa();
|
|
4701
4701
|
class Da {
|
|
4702
|
-
dialogs =
|
|
4702
|
+
dialogs = wa;
|
|
4703
4703
|
activeDialog = null;
|
|
4704
4704
|
constructor() {
|
|
4705
4705
|
Re(this);
|
|
@@ -4844,9 +4844,9 @@ class La {
|
|
|
4844
4844
|
activeBonusFeature: x,
|
|
4845
4845
|
activeInReelFeature: x,
|
|
4846
4846
|
freeSpinsCount: x,
|
|
4847
|
-
isActiveBonus:
|
|
4848
|
-
isActiveInReelFeature:
|
|
4849
|
-
isActiveAnteBet:
|
|
4847
|
+
isActiveBonus: Ce,
|
|
4848
|
+
isActiveInReelFeature: Ce,
|
|
4849
|
+
isActiveAnteBet: Ce,
|
|
4850
4850
|
setAnteBets: V,
|
|
4851
4851
|
setActiveAnteBet: V,
|
|
4852
4852
|
setActiveBonusFeature: V,
|
|
@@ -4922,19 +4922,19 @@ class Ma {
|
|
|
4922
4922
|
return Number.isNaN(o) ? t : o;
|
|
4923
4923
|
}
|
|
4924
4924
|
setMusicOn(n) {
|
|
4925
|
-
this.musicOn = n, localStorage.setItem(k.MUSIC_ON, n.toString()), n ?
|
|
4925
|
+
this.musicOn = n, localStorage.setItem(k.MUSIC_ON, n.toString()), n ? Te.unmuteMusic() : Te.muteMusic();
|
|
4926
4926
|
}
|
|
4927
4927
|
toggleMute() {
|
|
4928
4928
|
this.volume > 0 ? this.setVolume(0) : this.setVolume(50);
|
|
4929
4929
|
}
|
|
4930
4930
|
setVolume(n) {
|
|
4931
|
-
this.volume = n, localStorage.setItem(k.VOLUME, n.toString()),
|
|
4931
|
+
this.volume = n, localStorage.setItem(k.VOLUME, n.toString()), Te.setMasterVolume(n);
|
|
4932
4932
|
}
|
|
4933
4933
|
setIsTurbo(n) {
|
|
4934
4934
|
this.isTurbo = n, localStorage.setItem(k.IS_TURBO, n.toString());
|
|
4935
4935
|
}
|
|
4936
4936
|
setSoundsOn(n) {
|
|
4937
|
-
this.soundsOn = n, localStorage.setItem(k.SOUND_ON, n.toString()), n ?
|
|
4937
|
+
this.soundsOn = n, localStorage.setItem(k.SOUND_ON, n.toString()), n ? Te.unmuteSounds() : Te.muteSounds();
|
|
4938
4938
|
}
|
|
4939
4939
|
setIntroSkip(n) {
|
|
4940
4940
|
this.introSkip = n, localStorage.setItem(k.SKIP_INTRO, n.toString());
|
|
@@ -4953,108 +4953,18 @@ class Pa {
|
|
|
4953
4953
|
date: "26.11.2024 00:16",
|
|
4954
4954
|
betAmount: 1011,
|
|
4955
4955
|
winAmount: 20,
|
|
4956
|
-
currencyCode: "USD"
|
|
4957
|
-
|
|
4958
|
-
{
|
|
4959
|
-
date: "26.11.2024 00:16",
|
|
4960
|
-
betAmount: 10,
|
|
4961
|
-
winAmount: 20,
|
|
4962
|
-
currencyCode: "USD"
|
|
4963
|
-
},
|
|
4964
|
-
{
|
|
4965
|
-
date: "26.11.2024 00:16",
|
|
4966
|
-
betAmount: 1,
|
|
4967
|
-
winAmount: 2e4,
|
|
4968
|
-
currencyCode: "USD"
|
|
4969
|
-
},
|
|
4970
|
-
{
|
|
4971
|
-
date: "26.11.2024 00:16",
|
|
4972
|
-
betAmount: 10,
|
|
4973
|
-
winAmount: 2002,
|
|
4974
|
-
currencyCode: "USD"
|
|
4975
|
-
},
|
|
4976
|
-
{
|
|
4977
|
-
date: "26.11.2024 00:16",
|
|
4978
|
-
betAmount: 10,
|
|
4979
|
-
winAmount: 2002,
|
|
4980
|
-
currencyCode: "USD"
|
|
4981
|
-
},
|
|
4982
|
-
{
|
|
4983
|
-
date: "26.11.2024 00:16",
|
|
4984
|
-
betAmount: 10,
|
|
4985
|
-
winAmount: 2002,
|
|
4986
|
-
currencyCode: "USD"
|
|
4987
|
-
},
|
|
4988
|
-
{
|
|
4989
|
-
date: "26.11.2024 00:16",
|
|
4990
|
-
betAmount: 10,
|
|
4991
|
-
winAmount: 2002,
|
|
4992
|
-
currencyCode: "USD"
|
|
4993
|
-
},
|
|
4994
|
-
{
|
|
4995
|
-
date: "26.11.2024 00:16",
|
|
4996
|
-
betAmount: 10,
|
|
4997
|
-
winAmount: 2002,
|
|
4998
|
-
currencyCode: "USD"
|
|
4999
|
-
},
|
|
5000
|
-
{
|
|
5001
|
-
date: "26.11.2024 00:16",
|
|
5002
|
-
betAmount: 10,
|
|
5003
|
-
winAmount: 2002,
|
|
5004
|
-
currencyCode: "USD"
|
|
5005
|
-
},
|
|
5006
|
-
{
|
|
5007
|
-
date: "26.11.2024 00:16",
|
|
5008
|
-
betAmount: 10,
|
|
5009
|
-
winAmount: 2002,
|
|
5010
|
-
currencyCode: "USD"
|
|
5011
|
-
},
|
|
5012
|
-
{
|
|
5013
|
-
date: "26.11.2024 00:16",
|
|
5014
|
-
betAmount: 10,
|
|
5015
|
-
winAmount: 2002,
|
|
5016
|
-
currencyCode: "USD"
|
|
5017
|
-
},
|
|
5018
|
-
{
|
|
5019
|
-
date: "26.11.2024 00:16",
|
|
5020
|
-
betAmount: 10,
|
|
5021
|
-
winAmount: 2002,
|
|
5022
|
-
currencyCode: "USD"
|
|
5023
|
-
},
|
|
5024
|
-
{
|
|
5025
|
-
date: "26.11.2024 00:16",
|
|
5026
|
-
betAmount: 10,
|
|
5027
|
-
winAmount: 2002,
|
|
5028
|
-
currencyCode: "USD"
|
|
5029
|
-
},
|
|
5030
|
-
{
|
|
5031
|
-
date: "26.11.2024 00:16",
|
|
5032
|
-
betAmount: 10,
|
|
5033
|
-
winAmount: 2002,
|
|
5034
|
-
currencyCode: "USD"
|
|
5035
|
-
},
|
|
5036
|
-
{
|
|
5037
|
-
date: "26.11.2024 00:16",
|
|
5038
|
-
betAmount: 10,
|
|
5039
|
-
winAmount: 2002,
|
|
5040
|
-
currencyCode: "USD"
|
|
5041
|
-
},
|
|
5042
|
-
{
|
|
5043
|
-
date: "26.11.2024 00:16",
|
|
5044
|
-
betAmount: 10,
|
|
5045
|
-
winAmount: 2002,
|
|
5046
|
-
currencyCode: "USD"
|
|
5047
|
-
},
|
|
5048
|
-
{
|
|
5049
|
-
date: "26.11.2024 00:16",
|
|
5050
|
-
betAmount: 10,
|
|
5051
|
-
winAmount: 2002,
|
|
5052
|
-
currencyCode: "USD"
|
|
4956
|
+
currencyCode: "USD",
|
|
4957
|
+
roundId: "adsadadead7dead"
|
|
5053
4958
|
}
|
|
5054
4959
|
];
|
|
4960
|
+
replayRoundId = null;
|
|
5055
4961
|
constructor() {
|
|
5056
4962
|
Re(this);
|
|
5057
4963
|
}
|
|
4964
|
+
setActiveReplay(n) {
|
|
4965
|
+
if (!n) return console.error("Incorrect round id", n);
|
|
4966
|
+
this.replayRoundId = n;
|
|
4967
|
+
}
|
|
5058
4968
|
setData(n) {
|
|
5059
4969
|
this.data = n;
|
|
5060
4970
|
}
|
|
@@ -5113,7 +5023,7 @@ class Ra {
|
|
|
5113
5023
|
this.isBuyBonusDisabled = n;
|
|
5114
5024
|
}
|
|
5115
5025
|
clickHandler() {
|
|
5116
|
-
|
|
5026
|
+
M(), this.handler?.();
|
|
5117
5027
|
}
|
|
5118
5028
|
setIsSpinRunning(n) {
|
|
5119
5029
|
this.isRunning = n;
|
|
@@ -5182,7 +5092,7 @@ const ja = new ka(), Fa = F(() => {
|
|
|
5182
5092
|
className: `${t} ${n ? "disabled" : ""} ${r ? "active" : ""}`,
|
|
5183
5093
|
type: "button",
|
|
5184
5094
|
onClick: e ? () => {
|
|
5185
|
-
n || (
|
|
5095
|
+
n || (M(), e());
|
|
5186
5096
|
} : void 0,
|
|
5187
5097
|
onMouseUp: o,
|
|
5188
5098
|
onTouchEnd: o,
|
|
@@ -5191,7 +5101,7 @@ const ja = new ka(), Fa = F(() => {
|
|
|
5191
5101
|
}
|
|
5192
5102
|
}
|
|
5193
5103
|
);
|
|
5194
|
-
},
|
|
5104
|
+
}, $a = F(() => {
|
|
5195
5105
|
const {
|
|
5196
5106
|
balance: e,
|
|
5197
5107
|
betAmount: n,
|
|
@@ -5204,7 +5114,7 @@ const ja = new ka(), Fa = F(() => {
|
|
|
5204
5114
|
activeInReelFeature: i,
|
|
5205
5115
|
setActiveAnteBet: a
|
|
5206
5116
|
} = be, { isUIVisible: l, isAutoPlayDisabled: d, isBuyBonusDisabled: v, isBetAmountLabelsDisabled: h } = Bt, _ = et(() => p?.imagePath || i?.imagePath || m?.imagePath, [p, m, i]), y = or(() => {
|
|
5207
|
-
|
|
5117
|
+
Te.playSound(Qr.BuyBonusClick), p ? a.call(be, null) : f.call(R, $.buyBonus);
|
|
5208
5118
|
}, [p, a]);
|
|
5209
5119
|
return /* @__PURE__ */ E("div", { className: `ui-footer ${l ? "" : "hidden"}`, children: [
|
|
5210
5120
|
/* @__PURE__ */ E("div", { className: "top-row", children: [
|
|
@@ -5226,13 +5136,13 @@ const ja = new ka(), Fa = F(() => {
|
|
|
5226
5136
|
] }),
|
|
5227
5137
|
/* @__PURE__ */ E("div", { className: "bet-control", children: [
|
|
5228
5138
|
/* @__PURE__ */ b(
|
|
5229
|
-
|
|
5139
|
+
Ca,
|
|
5230
5140
|
{
|
|
5231
5141
|
highlighted: !!p,
|
|
5232
5142
|
value: p ? p.availableBets[G.betIndex] : n,
|
|
5233
5143
|
currency: t,
|
|
5234
5144
|
onClick: () => {
|
|
5235
|
-
f.call(R,
|
|
5145
|
+
f.call(R, $.bet);
|
|
5236
5146
|
},
|
|
5237
5147
|
disabled: h
|
|
5238
5148
|
}
|
|
@@ -5275,7 +5185,7 @@ const ja = new ka(), Fa = F(() => {
|
|
|
5275
5185
|
{
|
|
5276
5186
|
className: "auto-spin",
|
|
5277
5187
|
onClick: () => {
|
|
5278
|
-
f.call(R,
|
|
5188
|
+
f.call(R, $.autoplay);
|
|
5279
5189
|
},
|
|
5280
5190
|
isActive: !!_e.count && _e.isStarted,
|
|
5281
5191
|
disabled: d
|
|
@@ -5288,7 +5198,7 @@ const ja = new ka(), Fa = F(() => {
|
|
|
5288
5198
|
/* @__PURE__ */ b(ht, { label: N("BALANCE"), value: `${e} ${t}` })
|
|
5289
5199
|
] }) })
|
|
5290
5200
|
] });
|
|
5291
|
-
}),
|
|
5201
|
+
}), Ua = ({
|
|
5292
5202
|
onMount: e,
|
|
5293
5203
|
onUnmount: n,
|
|
5294
5204
|
className: t
|
|
@@ -5326,7 +5236,7 @@ function Ha(e) {
|
|
|
5326
5236
|
}
|
|
5327
5237
|
const Ga = F(() => {
|
|
5328
5238
|
const { volume: e, setVolume: n } = re, [t, r] = Oe.useState(!1), o = Ha(() => r(!1)), s = or(() => {
|
|
5329
|
-
|
|
5239
|
+
M(), re.toggleMute(), t || r(!0);
|
|
5330
5240
|
}, [t, r]);
|
|
5331
5241
|
return /* @__PURE__ */ E("div", { className: "sound-controller", children: [
|
|
5332
5242
|
t && /* @__PURE__ */ E("div", { className: "volume-control", ref: o, children: [
|
|
@@ -5363,7 +5273,7 @@ const Ga = F(() => {
|
|
|
5363
5273
|
className: "btn-settings",
|
|
5364
5274
|
"aria-label": "Open Settings",
|
|
5365
5275
|
onClick: () => {
|
|
5366
|
-
|
|
5276
|
+
M(), e.call(R, $.settings);
|
|
5367
5277
|
}
|
|
5368
5278
|
}
|
|
5369
5279
|
)
|
|
@@ -5376,7 +5286,7 @@ const Ga = F(() => {
|
|
|
5376
5286
|
{
|
|
5377
5287
|
className: "decrease-bet",
|
|
5378
5288
|
onClick: () => {
|
|
5379
|
-
|
|
5289
|
+
M(), r.call(G);
|
|
5380
5290
|
}
|
|
5381
5291
|
}
|
|
5382
5292
|
),
|
|
@@ -5390,7 +5300,7 @@ const Ga = F(() => {
|
|
|
5390
5300
|
{
|
|
5391
5301
|
className: "increase-bet",
|
|
5392
5302
|
onClick: () => {
|
|
5393
|
-
|
|
5303
|
+
M(), t.call(G);
|
|
5394
5304
|
}
|
|
5395
5305
|
}
|
|
5396
5306
|
)
|
|
@@ -5404,7 +5314,7 @@ const Ga = F(() => {
|
|
|
5404
5314
|
{
|
|
5405
5315
|
className: `rectLabel ${t ? "current-active" : ""}`,
|
|
5406
5316
|
onClick: () => {
|
|
5407
|
-
|
|
5317
|
+
M(), n(e);
|
|
5408
5318
|
},
|
|
5409
5319
|
children: /* @__PURE__ */ b("span", { children: e })
|
|
5410
5320
|
}
|
|
@@ -5433,7 +5343,7 @@ const Ga = F(() => {
|
|
|
5433
5343
|
className: `ap-toggle ${e ? "ap-toggle--on" : "ap-toggle--off"}`,
|
|
5434
5344
|
"aria-pressed": e,
|
|
5435
5345
|
onClick: () => {
|
|
5436
|
-
|
|
5346
|
+
M(), n(!e);
|
|
5437
5347
|
},
|
|
5438
5348
|
type: "button",
|
|
5439
5349
|
children: /* @__PURE__ */ b("span", { className: "ap-toggle__knob" })
|
|
@@ -5443,7 +5353,7 @@ const Ga = F(() => {
|
|
|
5443
5353
|
{
|
|
5444
5354
|
className: `ap-limit ${e ? "ap-limit--active" : ""}`,
|
|
5445
5355
|
onClick: n ? () => {
|
|
5446
|
-
|
|
5356
|
+
M(), n();
|
|
5447
5357
|
} : void 0,
|
|
5448
5358
|
type: "button",
|
|
5449
5359
|
children: t
|
|
@@ -5457,7 +5367,7 @@ const Ga = F(() => {
|
|
|
5457
5367
|
{
|
|
5458
5368
|
className: `ap-tab ${e ? "ap-tab--active" : ""}`,
|
|
5459
5369
|
onClick: n ? () => {
|
|
5460
|
-
|
|
5370
|
+
M(), n();
|
|
5461
5371
|
} : void 0,
|
|
5462
5372
|
type: "button",
|
|
5463
5373
|
children: t
|
|
@@ -5603,7 +5513,7 @@ const Ga = F(() => {
|
|
|
5603
5513
|
{
|
|
5604
5514
|
className: `ap-start-btn ${w ? "" : "ap-start-btn--disabled"}`,
|
|
5605
5515
|
onClick: () => {
|
|
5606
|
-
|
|
5516
|
+
M(), m.call(_e, !0);
|
|
5607
5517
|
},
|
|
5608
5518
|
type: "button",
|
|
5609
5519
|
disabled: !w,
|
|
@@ -5617,7 +5527,7 @@ const Ga = F(() => {
|
|
|
5617
5527
|
className: `sp-action ${t}`,
|
|
5618
5528
|
type: "button",
|
|
5619
5529
|
onClick: () => {
|
|
5620
|
-
|
|
5530
|
+
M(), e();
|
|
5621
5531
|
},
|
|
5622
5532
|
children: [
|
|
5623
5533
|
/* @__PURE__ */ b("span", { className: "sp-action__icon", "aria-hidden": "true" }),
|
|
@@ -5653,7 +5563,7 @@ const Ga = F(() => {
|
|
|
5653
5563
|
/* @__PURE__ */ b(
|
|
5654
5564
|
ir,
|
|
5655
5565
|
{
|
|
5656
|
-
onClick: m.bind(R,
|
|
5566
|
+
onClick: m.bind(R, $.history),
|
|
5657
5567
|
className: "sp-action--history",
|
|
5658
5568
|
label: N("HISTORY")
|
|
5659
5569
|
}
|
|
@@ -5661,7 +5571,7 @@ const Ga = F(() => {
|
|
|
5661
5571
|
/* @__PURE__ */ b(
|
|
5662
5572
|
ir,
|
|
5663
5573
|
{
|
|
5664
|
-
onClick: R.open.bind(R,
|
|
5574
|
+
onClick: R.open.bind(R, $.payTable),
|
|
5665
5575
|
className: "sp-action--paytable",
|
|
5666
5576
|
label: N("PAY_TABLE")
|
|
5667
5577
|
}
|
|
@@ -5715,9 +5625,16 @@ const Ga = F(() => {
|
|
|
5715
5625
|
)
|
|
5716
5626
|
] })
|
|
5717
5627
|
] });
|
|
5718
|
-
}), Ja = ({
|
|
5719
|
-
|
|
5720
|
-
|
|
5628
|
+
}), Ja = ({
|
|
5629
|
+
date: e,
|
|
5630
|
+
currencyCode: n,
|
|
5631
|
+
betAmount: t,
|
|
5632
|
+
winAmount: r,
|
|
5633
|
+
roundId: o,
|
|
5634
|
+
handleReplay: s
|
|
5635
|
+
}) => {
|
|
5636
|
+
const [u, c] = ye(!1);
|
|
5637
|
+
return /* @__PURE__ */ E("div", { className: `history-item ${u ? "active" : ""}`, role: "row", children: [
|
|
5721
5638
|
/* @__PURE__ */ b("span", { className: "date-section", children: e }),
|
|
5722
5639
|
/* @__PURE__ */ E("span", { className: "bet-section", children: [
|
|
5723
5640
|
t,
|
|
@@ -5729,26 +5646,51 @@ const Ga = F(() => {
|
|
|
5729
5646
|
" ",
|
|
5730
5647
|
n
|
|
5731
5648
|
] })
|
|
5732
|
-
] })
|
|
5649
|
+
] }),
|
|
5650
|
+
/* @__PURE__ */ b(
|
|
5651
|
+
"div",
|
|
5652
|
+
{
|
|
5653
|
+
className: `vector ${u ? "up" : "down"}`,
|
|
5654
|
+
"aria-hidden": "true",
|
|
5655
|
+
onClick: () => {
|
|
5656
|
+
M(), c(!u);
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5659
|
+
),
|
|
5660
|
+
u && /* @__PURE__ */ b("div", { className: "additional-info", children: /* @__PURE__ */ E(
|
|
5661
|
+
"button",
|
|
5662
|
+
{
|
|
5663
|
+
type: "button",
|
|
5664
|
+
className: "additional-button replay",
|
|
5665
|
+
onClick: () => {
|
|
5666
|
+
M(), s();
|
|
5667
|
+
},
|
|
5668
|
+
children: [
|
|
5669
|
+
/* @__PURE__ */ b("div", { className: "replay-icon" }),
|
|
5670
|
+
N("REPLAY")
|
|
5671
|
+
]
|
|
5672
|
+
}
|
|
5673
|
+
) })
|
|
5733
5674
|
] });
|
|
5734
5675
|
}, Qa = F(() => {
|
|
5735
|
-
const { data: e } = Ia;
|
|
5676
|
+
const { data: e, setActiveReplay: n } = Ia;
|
|
5736
5677
|
return /* @__PURE__ */ E("div", { className: "history-wrap", role: "list", "aria-label": "History list", children: [
|
|
5737
5678
|
/* @__PURE__ */ E("div", { className: "history-item history-item--head", role: "row", children: [
|
|
5738
5679
|
/* @__PURE__ */ b("span", { className: "date-section", children: N("DATE") }),
|
|
5739
5680
|
/* @__PURE__ */ b("span", { className: "bet-section", children: N("BET") }),
|
|
5740
5681
|
/* @__PURE__ */ b("span", { className: "win-section", children: N("WIN") })
|
|
5741
5682
|
] }),
|
|
5742
|
-
e.map((
|
|
5683
|
+
e.map((t, r) => /* @__PURE__ */ b(
|
|
5743
5684
|
Ja,
|
|
5744
5685
|
{
|
|
5745
|
-
date:
|
|
5746
|
-
betAmount:
|
|
5747
|
-
winAmount:
|
|
5748
|
-
currencyCode:
|
|
5749
|
-
|
|
5686
|
+
date: t.date,
|
|
5687
|
+
betAmount: t.betAmount,
|
|
5688
|
+
winAmount: t.winAmount,
|
|
5689
|
+
currencyCode: t.currencyCode,
|
|
5690
|
+
roundId: "aa",
|
|
5691
|
+
handleReplay: () => n(t.roundId)
|
|
5750
5692
|
},
|
|
5751
|
-
|
|
5693
|
+
r
|
|
5752
5694
|
))
|
|
5753
5695
|
] });
|
|
5754
5696
|
}), es = F(({ item: e, type: n, onBuy: t, disabled: r }) => {
|
|
@@ -5761,11 +5703,11 @@ const Ga = F(() => {
|
|
|
5761
5703
|
const D = getComputedStyle(y), L = D.getPropertyValue("--max-description-height").trim();
|
|
5762
5704
|
let Z = 84;
|
|
5763
5705
|
if (L) {
|
|
5764
|
-
const
|
|
5765
|
-
|
|
5706
|
+
const C = L.match(/^(-?\d+(\.\d+)?)(px)?$/);
|
|
5707
|
+
C && (Z = Number(C[1]));
|
|
5766
5708
|
} else {
|
|
5767
|
-
const
|
|
5768
|
-
|
|
5709
|
+
const C = D.getPropertyValue("max-height").trim();
|
|
5710
|
+
C && C.endsWith("px") && (Z = Number(C.replace("px", "")));
|
|
5769
5711
|
}
|
|
5770
5712
|
const je = y.scrollHeight;
|
|
5771
5713
|
m(Z), a(je), d(je > Z + 1);
|
|
@@ -5787,7 +5729,7 @@ const Ga = F(() => {
|
|
|
5787
5729
|
className: `sf-card__description ${c ? "open" : ""} ${l ? "expandable" : ""}`,
|
|
5788
5730
|
style: { maxHeight: `${h}px` },
|
|
5789
5731
|
onClick: () => {
|
|
5790
|
-
l && (
|
|
5732
|
+
l && (M(), f((y) => !y));
|
|
5791
5733
|
},
|
|
5792
5734
|
children: /* @__PURE__ */ b("div", { children: e.description })
|
|
5793
5735
|
}
|
|
@@ -5810,7 +5752,7 @@ const Ga = F(() => {
|
|
|
5810
5752
|
type: "button",
|
|
5811
5753
|
"aria-label": `${_} buy`,
|
|
5812
5754
|
onClick: () => {
|
|
5813
|
-
|
|
5755
|
+
M(), t?.(e.id);
|
|
5814
5756
|
},
|
|
5815
5757
|
children: /* @__PURE__ */ E("span", { className: "sf-buy-btn__label", children: [
|
|
5816
5758
|
e.availableBets[G.betIndex] ? _ : "",
|
|
@@ -5874,17 +5816,17 @@ const Ga = F(() => {
|
|
|
5874
5816
|
if (!n) return null;
|
|
5875
5817
|
const t = et(() => {
|
|
5876
5818
|
switch (n) {
|
|
5877
|
-
case
|
|
5819
|
+
case $.bet:
|
|
5878
5820
|
return Xa;
|
|
5879
|
-
case
|
|
5821
|
+
case $.autoplay:
|
|
5880
5822
|
return Ya;
|
|
5881
|
-
case
|
|
5823
|
+
case $.settings:
|
|
5882
5824
|
return za;
|
|
5883
|
-
case
|
|
5825
|
+
case $.history:
|
|
5884
5826
|
return Qa;
|
|
5885
|
-
case
|
|
5827
|
+
case $.buyBonus:
|
|
5886
5828
|
return ts;
|
|
5887
|
-
case
|
|
5829
|
+
case $.payTable:
|
|
5888
5830
|
return e;
|
|
5889
5831
|
default:
|
|
5890
5832
|
return null;
|
|
@@ -5901,7 +5843,7 @@ const Ga = F(() => {
|
|
|
5901
5843
|
"--btn-color": e?.color ?? "inherit"
|
|
5902
5844
|
},
|
|
5903
5845
|
onClick: typeof t == "function" ? () => {
|
|
5904
|
-
|
|
5846
|
+
M(), t();
|
|
5905
5847
|
} : void 0,
|
|
5906
5848
|
children: n
|
|
5907
5849
|
}
|
|
@@ -5931,9 +5873,9 @@ const Ga = F(() => {
|
|
|
5931
5873
|
const n = R.activePopup, t = yt.activeDialog;
|
|
5932
5874
|
if (!n && !t) return null;
|
|
5933
5875
|
const r = (s) => {
|
|
5934
|
-
s.target === s.currentTarget && (
|
|
5876
|
+
s.target === s.currentTarget && (M(), R.close(), yt.close());
|
|
5935
5877
|
}, o = () => {
|
|
5936
|
-
|
|
5878
|
+
M(), R.close(), yt.close();
|
|
5937
5879
|
};
|
|
5938
5880
|
return /* @__PURE__ */ E(
|
|
5939
5881
|
"div",
|
|
@@ -5951,7 +5893,7 @@ const Ga = F(() => {
|
|
|
5951
5893
|
t && /* @__PURE__ */ b(is, {}),
|
|
5952
5894
|
!t && n && /* @__PURE__ */ b(ns, { payTableComponent: e })
|
|
5953
5895
|
] }),
|
|
5954
|
-
!t && n ===
|
|
5896
|
+
!t && n === $.buyBonus && /* @__PURE__ */ b(Wa, {})
|
|
5955
5897
|
] })
|
|
5956
5898
|
]
|
|
5957
5899
|
}
|
|
@@ -5960,9 +5902,9 @@ const Ga = F(() => {
|
|
|
5960
5902
|
function as({ payTableComponent: e }) {
|
|
5961
5903
|
return /* @__PURE__ */ E("div", { className: "app", children: [
|
|
5962
5904
|
/* @__PURE__ */ E("div", { className: "game-container", children: [
|
|
5963
|
-
/* @__PURE__ */ b(
|
|
5905
|
+
/* @__PURE__ */ b(Ua, {}),
|
|
5964
5906
|
/* @__PURE__ */ b(Ka, {}),
|
|
5965
|
-
/* @__PURE__ */ b(
|
|
5907
|
+
/* @__PURE__ */ b($a, {})
|
|
5966
5908
|
] }),
|
|
5967
5909
|
/* @__PURE__ */ b(os, { payTableComponent: e })
|
|
5968
5910
|
] });
|
|
@@ -5981,20 +5923,20 @@ export {
|
|
|
5981
5923
|
Qr as BASE_SOUND_NAMES,
|
|
5982
5924
|
er as DEFAULT_BG_MUSIC_KEY,
|
|
5983
5925
|
k as LOCAL_STORAGE_ITEM_NAMES,
|
|
5984
|
-
|
|
5926
|
+
$ as PopupNames,
|
|
5985
5927
|
_e as autoplayStore,
|
|
5986
5928
|
G as betStore,
|
|
5987
5929
|
Zt as bonusFeatureTypes,
|
|
5988
5930
|
be as bonusStore,
|
|
5989
5931
|
ds as createUi,
|
|
5990
5932
|
Jn as defaultDialogButtonsConfigs,
|
|
5991
|
-
|
|
5992
|
-
|
|
5933
|
+
wa as defaultDialogs,
|
|
5934
|
+
Ea as defaultDialogsNames,
|
|
5993
5935
|
yt as dialogStore,
|
|
5994
5936
|
Ia as historyStore,
|
|
5995
5937
|
R as popupStore,
|
|
5996
5938
|
ja as resultStore,
|
|
5997
5939
|
re as settingsStore,
|
|
5998
|
-
|
|
5940
|
+
Te as soundService,
|
|
5999
5941
|
Bt as uiStore
|
|
6000
5942
|
};
|