@dcupl/bundle 2.0.0-beta.7 → 2.0.0-beta.8
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/dcupl.bundle.js +965 -799
- package/dist/dcupl.bundle.js.map +1 -1
- package/dist/dcupl.bundle.min.js +6 -6
- package/dist/dcupl.bundle.min.js.map +1 -1
- package/package.json +4 -4
package/dist/dcupl.bundle.js
CHANGED
|
@@ -521,24 +521,24 @@
|
|
|
521
521
|
g$1.Request = Request;
|
|
522
522
|
g$1.Response = Response;
|
|
523
523
|
}
|
|
524
|
-
var Ot$1 = typeof global == "object" && global && global.Object === Object && global, fr$1 = typeof self == "object" && self && self.Object === Object && self, O$1 = Ot$1 || fr$1 || Function("return this")(), A$1 = O$1.Symbol, $t$1 = Object.prototype, lr$1 = $t$1.hasOwnProperty, dr$1 = $t$1.toString,
|
|
524
|
+
var Ot$1 = typeof global == "object" && global && global.Object === Object && global, fr$1 = typeof self == "object" && self && self.Object === Object && self, O$1 = Ot$1 || fr$1 || Function("return this")(), A$1 = O$1.Symbol, $t$1 = Object.prototype, lr$1 = $t$1.hasOwnProperty, dr$1 = $t$1.toString, G$2 = A$1 ? A$1.toStringTag : void 0;
|
|
525
525
|
function hr$1(r) {
|
|
526
|
-
var e = lr$1.call(r,
|
|
526
|
+
var e = lr$1.call(r, G$2), t = r[G$2];
|
|
527
527
|
try {
|
|
528
|
-
r[
|
|
528
|
+
r[G$2] = void 0;
|
|
529
529
|
var n = true;
|
|
530
530
|
} catch {
|
|
531
531
|
}
|
|
532
532
|
var s = dr$1.call(r);
|
|
533
|
-
return n && (e ? r[
|
|
533
|
+
return n && (e ? r[G$2] = t : delete r[G$2]), s;
|
|
534
534
|
}
|
|
535
535
|
var pr$1 = Object.prototype, gr$1 = pr$1.toString;
|
|
536
536
|
function yr$1(r) {
|
|
537
537
|
return gr$1.call(r);
|
|
538
538
|
}
|
|
539
|
-
var mr$1 = "[object Null]", br$1 = "[object Undefined]",
|
|
539
|
+
var mr$1 = "[object Null]", br$1 = "[object Undefined]", Ge$1 = A$1 ? A$1.toStringTag : void 0;
|
|
540
540
|
function N$2(r) {
|
|
541
|
-
return r == null ? r === void 0 ? br$1 : mr$1 :
|
|
541
|
+
return r == null ? r === void 0 ? br$1 : mr$1 : Ge$1 && Ge$1 in Object(r) ? hr$1(r) : yr$1(r);
|
|
542
542
|
}
|
|
543
543
|
function T$3(r) {
|
|
544
544
|
return r != null && typeof r == "object";
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
s[t] = e(r[t], t, r);
|
|
553
553
|
return s;
|
|
554
554
|
}
|
|
555
|
-
var v$1 = Array.isArray,
|
|
555
|
+
var v$1 = Array.isArray, ke$1 = A$1 ? A$1.prototype : void 0, ze$2 = ke$1 ? ke$1.toString : void 0;
|
|
556
556
|
function ce$1(r) {
|
|
557
557
|
if (typeof r == "string")
|
|
558
558
|
return r;
|
|
@@ -593,11 +593,11 @@
|
|
|
593
593
|
var t = Or$1.test(r);
|
|
594
594
|
return t || $r$1.test(r) ? _r$1(r.slice(2), t ? 2 : 8) : Tr$1.test(r) ? Be$2 : +r;
|
|
595
595
|
}
|
|
596
|
-
var Ue$
|
|
596
|
+
var Ue$3 = 1 / 0, Mr$1 = 17976931348623157e292;
|
|
597
597
|
function Dr$1(r) {
|
|
598
598
|
if (!r)
|
|
599
599
|
return r === 0 ? r : 0;
|
|
600
|
-
if (r = Cr$1(r), r === Ue$
|
|
600
|
+
if (r = Cr$1(r), r === Ue$3 || r === -Ue$3) {
|
|
601
601
|
var e = r < 0 ? -1 : 1;
|
|
602
602
|
return e * Mr$1;
|
|
603
603
|
}
|
|
@@ -617,8 +617,8 @@
|
|
|
617
617
|
var e = N$2(r);
|
|
618
618
|
return e == Er$1 || e == Qr$1 || e == Ir$1 || e == Nr$1;
|
|
619
619
|
}
|
|
620
|
-
var ge
|
|
621
|
-
var r = /[^.]+$/.exec(ge
|
|
620
|
+
var ge = O$1["__core-js_shared__"], He$2 = (function() {
|
|
621
|
+
var r = /[^.]+$/.exec(ge && ge.keys && ge.keys.IE_PROTO || "");
|
|
622
622
|
return r ? "Symbol(src)_1." + r : "";
|
|
623
623
|
})();
|
|
624
624
|
function jr$1(r) {
|
|
@@ -638,8 +638,8 @@
|
|
|
638
638
|
}
|
|
639
639
|
return "";
|
|
640
640
|
}
|
|
641
|
-
var Pr$1 = /[\\^$.*+?()[\]{}|]/g, Rr$1 = /^\[object .+?Constructor\]$/, Fr$1 = Function.prototype, Lr$1 = Object.prototype,
|
|
642
|
-
"^" +
|
|
641
|
+
var Pr$1 = /[\\^$.*+?()[\]{}|]/g, Rr$1 = /^\[object .+?Constructor\]$/, Fr$1 = Function.prototype, Lr$1 = Object.prototype, Gr$1 = Fr$1.toString, kr$1 = Lr$1.hasOwnProperty, zr$1 = RegExp(
|
|
642
|
+
"^" + Gr$1.call(kr$1).replace(Pr$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
643
643
|
);
|
|
644
644
|
function Br$1(r) {
|
|
645
645
|
if (!E$3(r) || jr$1(r))
|
|
@@ -650,18 +650,18 @@
|
|
|
650
650
|
function Ur$1(r, e) {
|
|
651
651
|
return r?.[e];
|
|
652
652
|
}
|
|
653
|
-
function q$
|
|
653
|
+
function q$3(r, e) {
|
|
654
654
|
var t = Ur$1(r, e);
|
|
655
655
|
return Br$1(t) ? t : void 0;
|
|
656
656
|
}
|
|
657
|
-
var we$2 = q$
|
|
657
|
+
var we$2 = q$3(O$1, "WeakMap"), We$2 = Object.create, Hr$1 = /* @__PURE__ */ (function() {
|
|
658
658
|
function r() {
|
|
659
659
|
}
|
|
660
660
|
return function(e) {
|
|
661
661
|
if (!E$3(e))
|
|
662
662
|
return {};
|
|
663
|
-
if (We$
|
|
664
|
-
return We$
|
|
663
|
+
if (We$2)
|
|
664
|
+
return We$2(e);
|
|
665
665
|
r.prototype = e;
|
|
666
666
|
var t = new r();
|
|
667
667
|
return r.prototype = void 0, t;
|
|
@@ -680,13 +680,13 @@
|
|
|
680
680
|
}
|
|
681
681
|
return r.apply(e, t);
|
|
682
682
|
}
|
|
683
|
-
var
|
|
683
|
+
var Zr$1 = 800, Jr$1 = 16, Vr$1 = Date.now;
|
|
684
684
|
function Xr$1(r) {
|
|
685
685
|
var e = 0, t = 0;
|
|
686
686
|
return function() {
|
|
687
|
-
var n = Vr$1(), s =
|
|
687
|
+
var n = Vr$1(), s = Jr$1 - (n - t);
|
|
688
688
|
if (t = n, s > 0) {
|
|
689
|
-
if (++e >=
|
|
689
|
+
if (++e >= Zr$1)
|
|
690
690
|
return arguments[0];
|
|
691
691
|
} else
|
|
692
692
|
e = 0;
|
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
}
|
|
701
701
|
var oe$2 = (function() {
|
|
702
702
|
try {
|
|
703
|
-
var r = q$
|
|
703
|
+
var r = q$3(Object, "defineProperty");
|
|
704
704
|
return r({}, "", {}), r;
|
|
705
705
|
} catch {
|
|
706
706
|
}
|
|
@@ -760,10 +760,10 @@
|
|
|
760
760
|
var n = r[e];
|
|
761
761
|
(!(dn$1.call(r, e) && Ie$2(n, t)) || t === void 0 && !(e in r)) && fn$1(r, e, t);
|
|
762
762
|
}
|
|
763
|
-
var
|
|
763
|
+
var Ze$2 = Math.max;
|
|
764
764
|
function pn$1(r, e, t) {
|
|
765
|
-
return e =
|
|
766
|
-
for (var n = arguments, s = -1, i =
|
|
765
|
+
return e = Ze$2(e === void 0 ? r.length - 1 : e, 0), function() {
|
|
766
|
+
for (var n = arguments, s = -1, i = Ze$2(n.length - e, 0), o = Array(i); ++s < i; )
|
|
767
767
|
o[s] = n[e + s];
|
|
768
768
|
s = -1;
|
|
769
769
|
for (var a = Array(e + 1); ++s < e; )
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
function Ee$2(r) {
|
|
779
779
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= yn$1;
|
|
780
780
|
}
|
|
781
|
-
function F$
|
|
781
|
+
function F$1(r) {
|
|
782
782
|
return r != null && Ee$2(r.length) && !_t$1(r);
|
|
783
783
|
}
|
|
784
784
|
var mn$1 = Object.prototype;
|
|
@@ -792,21 +792,21 @@
|
|
|
792
792
|
return n;
|
|
793
793
|
}
|
|
794
794
|
var vn$1 = "[object Arguments]";
|
|
795
|
-
function
|
|
795
|
+
function Je$2(r) {
|
|
796
796
|
return T$3(r) && N$2(r) == vn$1;
|
|
797
797
|
}
|
|
798
|
-
var It$1 = Object.prototype, wn$1 = It$1.hasOwnProperty, An$1 = It$1.propertyIsEnumerable, Qe$2 =
|
|
798
|
+
var It$1 = Object.prototype, wn$1 = It$1.hasOwnProperty, An$1 = It$1.propertyIsEnumerable, Qe$2 = Je$2(/* @__PURE__ */ (function() {
|
|
799
799
|
return arguments;
|
|
800
|
-
})()) ?
|
|
800
|
+
})()) ? Je$2 : function(r) {
|
|
801
801
|
return T$3(r) && wn$1.call(r, "callee") && !An$1.call(r, "callee");
|
|
802
802
|
};
|
|
803
803
|
function xn$1() {
|
|
804
804
|
return false;
|
|
805
805
|
}
|
|
806
|
-
var Et$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Ve$
|
|
807
|
-
y[Fn$1] = y[Ln$1] = y[
|
|
806
|
+
var Et$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Ve$3 = Et$1 && typeof module == "object" && module && !module.nodeType && module, Sn$1 = Ve$3 && Ve$3.exports === Et$1, Xe$2 = Sn$1 ? O$1.Buffer : void 0, Tn$1 = Xe$2 ? Xe$2.isBuffer : void 0, ae$1 = Tn$1 || xn$1, On$1 = "[object Arguments]", $n$1 = "[object Array]", _n$1 = "[object Boolean]", Cn$1 = "[object Date]", Mn$1 = "[object Error]", Dn$1 = "[object Function]", In$1 = "[object Map]", En$1 = "[object Number]", Qn$1 = "[object Object]", Nn$1 = "[object RegExp]", jn$1 = "[object Set]", qn$1 = "[object String]", Kn$1 = "[object WeakMap]", Pn$1 = "[object ArrayBuffer]", Rn$1 = "[object DataView]", Fn$1 = "[object Float32Array]", Ln$1 = "[object Float64Array]", Gn$1 = "[object Int8Array]", kn$1 = "[object Int16Array]", zn$1 = "[object Int32Array]", Bn$1 = "[object Uint8Array]", Un$1 = "[object Uint8ClampedArray]", Hn$1 = "[object Uint16Array]", Wn$1 = "[object Uint32Array]", y = {};
|
|
807
|
+
y[Fn$1] = y[Ln$1] = y[Gn$1] = y[kn$1] = y[zn$1] = y[Bn$1] = y[Un$1] = y[Hn$1] = y[Wn$1] = true;
|
|
808
808
|
y[On$1] = y[$n$1] = y[Pn$1] = y[_n$1] = y[Rn$1] = y[Cn$1] = y[Mn$1] = y[Dn$1] = y[In$1] = y[En$1] = y[Qn$1] = y[Nn$1] = y[jn$1] = y[qn$1] = y[Kn$1] = false;
|
|
809
|
-
function
|
|
809
|
+
function Zn$1(r) {
|
|
810
810
|
return T$3(r) && Ee$2(r.length) && !!y[N$2(r)];
|
|
811
811
|
}
|
|
812
812
|
function V$1(r) {
|
|
@@ -814,15 +814,15 @@
|
|
|
814
814
|
return r(e);
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
var Qt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, B$2 = Qt$1 && typeof module == "object" && module && !module.nodeType && module,
|
|
817
|
+
var Qt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, B$2 = Qt$1 && typeof module == "object" && module && !module.nodeType && module, Jn$1 = B$2 && B$2.exports === Qt$1, ye$1 = Jn$1 && Ot$1.process, R$2 = (function() {
|
|
818
818
|
try {
|
|
819
819
|
var r = B$2 && B$2.require && B$2.require("util").types;
|
|
820
820
|
return r || ye$1 && ye$1.binding && ye$1.binding("util");
|
|
821
821
|
} catch {
|
|
822
822
|
}
|
|
823
|
-
})(), Ye$2 = R && R.isTypedArray, Nt$1 = Ye$2 ? V$1(Ye$2) :
|
|
823
|
+
})(), Ye$2 = R$2 && R$2.isTypedArray, Nt$1 = Ye$2 ? V$1(Ye$2) : Zn$1, Vn$1 = Object.prototype, Xn$1 = Vn$1.hasOwnProperty;
|
|
824
824
|
function Yn$1(r, e) {
|
|
825
|
-
var t = v$1(r), n = !t && Qe$2(r), s = !t && !n && ae(r), i = !t && !n && !s && Nt$1(r), o = t || n || s || i, a = o ? bn$1(r.length, String) : [], u = a.length;
|
|
825
|
+
var t = v$1(r), n = !t && Qe$2(r), s = !t && !n && ae$1(r), i = !t && !n && !s && Nt$1(r), o = t || n || s || i, a = o ? bn$1(r.length, String) : [], u = a.length;
|
|
826
826
|
for (var c in r)
|
|
827
827
|
(e || Xn$1.call(r, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
828
828
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
return e;
|
|
847
847
|
}
|
|
848
848
|
function le$1(r) {
|
|
849
|
-
return F$
|
|
849
|
+
return F$1(r) ? Yn$1(r) : qt$1(r);
|
|
850
850
|
}
|
|
851
851
|
var ns$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ss$1 = /^\w*$/;
|
|
852
852
|
function Ne$2(r, e) {
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
var t = typeof r;
|
|
856
856
|
return t == "number" || t == "symbol" || t == "boolean" || r == null || P$1(r) ? true : ss$1.test(r) || !ns$1.test(r) || e != null && r in Object(e);
|
|
857
857
|
}
|
|
858
|
-
var U$3 = q$
|
|
858
|
+
var U$3 = q$3(Object, "create");
|
|
859
859
|
function is$1() {
|
|
860
860
|
this.__data__ = U$3 ? U$3(null) : {}, this.size = 0;
|
|
861
861
|
}
|
|
@@ -897,7 +897,7 @@
|
|
|
897
897
|
function ys$1() {
|
|
898
898
|
this.__data__ = [], this.size = 0;
|
|
899
899
|
}
|
|
900
|
-
function de(r, e) {
|
|
900
|
+
function de$1(r, e) {
|
|
901
901
|
for (var t = r.length; t--; )
|
|
902
902
|
if (Ie$2(r[t][0], e))
|
|
903
903
|
return t;
|
|
@@ -905,40 +905,40 @@
|
|
|
905
905
|
}
|
|
906
906
|
var ms$1 = Array.prototype, bs$1 = ms$1.splice;
|
|
907
907
|
function vs$1(r) {
|
|
908
|
-
var e = this.__data__, t = de(e, r);
|
|
908
|
+
var e = this.__data__, t = de$1(e, r);
|
|
909
909
|
if (t < 0)
|
|
910
910
|
return false;
|
|
911
911
|
var n = e.length - 1;
|
|
912
912
|
return t == n ? e.pop() : bs$1.call(e, t, 1), --this.size, true;
|
|
913
913
|
}
|
|
914
914
|
function ws$1(r) {
|
|
915
|
-
var e = this.__data__, t = de(e, r);
|
|
915
|
+
var e = this.__data__, t = de$1(e, r);
|
|
916
916
|
return t < 0 ? void 0 : e[t][1];
|
|
917
917
|
}
|
|
918
918
|
function As$1(r) {
|
|
919
|
-
return de(this.__data__, r) > -1;
|
|
919
|
+
return de$1(this.__data__, r) > -1;
|
|
920
920
|
}
|
|
921
921
|
function xs$1(r, e) {
|
|
922
|
-
var t = this.__data__, n = de(t, r);
|
|
922
|
+
var t = this.__data__, n = de$1(t, r);
|
|
923
923
|
return n < 0 ? (++this.size, t.push([r, e])) : t[n][1] = e, this;
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function $$2(r) {
|
|
926
926
|
var e = -1, t = r == null ? 0 : r.length;
|
|
927
927
|
for (this.clear(); ++e < t; ) {
|
|
928
928
|
var n = r[e];
|
|
929
929
|
this.set(n[0], n[1]);
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
var H$
|
|
932
|
+
$$2.prototype.clear = ys$1;
|
|
933
|
+
$$2.prototype.delete = vs$1;
|
|
934
|
+
$$2.prototype.get = ws$1;
|
|
935
|
+
$$2.prototype.has = As$1;
|
|
936
|
+
$$2.prototype.set = xs$1;
|
|
937
|
+
var H$1 = q$3(O$1, "Map");
|
|
938
938
|
function Ss$1() {
|
|
939
939
|
this.size = 0, this.__data__ = {
|
|
940
940
|
hash: new Q$3(),
|
|
941
|
-
map: new (H$
|
|
941
|
+
map: new (H$1 || $$2)(),
|
|
942
942
|
string: new Q$3()
|
|
943
943
|
};
|
|
944
944
|
}
|
|
@@ -946,22 +946,22 @@
|
|
|
946
946
|
var e = typeof r;
|
|
947
947
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
|
|
948
948
|
}
|
|
949
|
-
function he
|
|
949
|
+
function he(r, e) {
|
|
950
950
|
var t = r.__data__;
|
|
951
951
|
return Ts$1(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
952
952
|
}
|
|
953
953
|
function Os$1(r) {
|
|
954
|
-
var e = he
|
|
954
|
+
var e = he(this, r).delete(r);
|
|
955
955
|
return this.size -= e ? 1 : 0, e;
|
|
956
956
|
}
|
|
957
957
|
function $s$1(r) {
|
|
958
|
-
return he
|
|
958
|
+
return he(this, r).get(r);
|
|
959
959
|
}
|
|
960
960
|
function _s$1(r) {
|
|
961
|
-
return he
|
|
961
|
+
return he(this, r).has(r);
|
|
962
962
|
}
|
|
963
963
|
function Cs$1(r, e) {
|
|
964
|
-
var t = he
|
|
964
|
+
var t = he(this, r), n = t.size;
|
|
965
965
|
return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
|
|
966
966
|
}
|
|
967
967
|
function _(r) {
|
|
@@ -1003,13 +1003,13 @@
|
|
|
1003
1003
|
e.push(s ? i.replace(Qs$1, "$1") : n || t);
|
|
1004
1004
|
}), e;
|
|
1005
1005
|
});
|
|
1006
|
-
function qe$
|
|
1006
|
+
function qe$3(r) {
|
|
1007
1007
|
return r == null ? "" : ce$1(r);
|
|
1008
1008
|
}
|
|
1009
1009
|
function Kt$1(r, e) {
|
|
1010
|
-
return v$1(r) ? r : Ne$2(r, e) ? [r] : Ns$1(qe$
|
|
1010
|
+
return v$1(r) ? r : Ne$2(r, e) ? [r] : Ns$1(qe$3(r));
|
|
1011
1011
|
}
|
|
1012
|
-
function pe(r) {
|
|
1012
|
+
function pe$1(r) {
|
|
1013
1013
|
if (typeof r == "string" || P$1(r))
|
|
1014
1014
|
return r;
|
|
1015
1015
|
var e = r + "";
|
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
function Ke$2(r, e) {
|
|
1019
1019
|
e = Kt$1(e, r);
|
|
1020
1020
|
for (var t = 0, n = e.length; r != null && t < n; )
|
|
1021
|
-
r = r[pe(e[t++])];
|
|
1021
|
+
r = r[pe$1(e[t++])];
|
|
1022
1022
|
return t && t == n ? r : void 0;
|
|
1023
1023
|
}
|
|
1024
1024
|
function W$3(r, e, t) {
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return s;
|
|
1044
1044
|
}
|
|
1045
|
-
var Ks$1 = jt$1(Object.getPrototypeOf, Object), Ps$1 = "\\ud800-\\udfff", Rs$1 = "\\u0300-\\u036f", Fs$1 = "\\ufe20-\\ufe2f", Ls$1 = "\\u20d0-\\u20ff",
|
|
1045
|
+
var Ks$1 = jt$1(Object.getPrototypeOf, Object), Ps$1 = "\\ud800-\\udfff", Rs$1 = "\\u0300-\\u036f", Fs$1 = "\\ufe20-\\ufe2f", Ls$1 = "\\u20d0-\\u20ff", Gs$1 = Rs$1 + Fs$1 + Ls$1, ks$1 = "\\ufe0e\\ufe0f", zs$1 = "\\u200d", Bs$1 = RegExp("[" + zs$1 + Ps$1 + Gs$1 + ks$1 + "]");
|
|
1046
1046
|
function Us$1(r) {
|
|
1047
1047
|
return Bs$1.test(r);
|
|
1048
1048
|
}
|
|
@@ -1050,43 +1050,43 @@
|
|
|
1050
1050
|
return r === r && (t !== void 0 && (r = r <= t ? r : t), r = r >= e ? r : e), r;
|
|
1051
1051
|
}
|
|
1052
1052
|
function Hs$1() {
|
|
1053
|
-
this.__data__ = new
|
|
1053
|
+
this.__data__ = new $$2(), this.size = 0;
|
|
1054
1054
|
}
|
|
1055
1055
|
function Ws$1(r) {
|
|
1056
1056
|
var e = this.__data__, t = e.delete(r);
|
|
1057
1057
|
return this.size = e.size, t;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Zs$1(r) {
|
|
1060
1060
|
return this.__data__.get(r);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function Js$1(r) {
|
|
1063
1063
|
return this.__data__.has(r);
|
|
1064
1064
|
}
|
|
1065
1065
|
var Vs$1 = 200;
|
|
1066
1066
|
function Xs$1(r, e) {
|
|
1067
1067
|
var t = this.__data__;
|
|
1068
|
-
if (t instanceof
|
|
1068
|
+
if (t instanceof $$2) {
|
|
1069
1069
|
var n = t.__data__;
|
|
1070
|
-
if (!H$
|
|
1070
|
+
if (!H$1 || n.length < Vs$1 - 1)
|
|
1071
1071
|
return n.push([r, e]), this.size = ++t.size, this;
|
|
1072
1072
|
t = this.__data__ = new _(n);
|
|
1073
1073
|
}
|
|
1074
1074
|
return t.set(r, e), this.size = t.size, this;
|
|
1075
1075
|
}
|
|
1076
1076
|
function S$1(r) {
|
|
1077
|
-
var e = this.__data__ = new
|
|
1077
|
+
var e = this.__data__ = new $$2(r);
|
|
1078
1078
|
this.size = e.size;
|
|
1079
1079
|
}
|
|
1080
1080
|
S$1.prototype.clear = Hs$1;
|
|
1081
1081
|
S$1.prototype.delete = Ws$1;
|
|
1082
|
-
S$1.prototype.get =
|
|
1083
|
-
S$1.prototype.has =
|
|
1082
|
+
S$1.prototype.get = Zs$1;
|
|
1083
|
+
S$1.prototype.has = Js$1;
|
|
1084
1084
|
S$1.prototype.set = Xs$1;
|
|
1085
|
-
var Ft$1 = typeof exports == "object" && exports && !exports.nodeType && exports, tt$2 = Ft$1 && typeof module == "object" && module && !module.nodeType && module, Ys$1 = tt$2 && tt$2.exports === Ft$1, rt$2 = Ys$1 ? O$1.Buffer : void 0, nt$
|
|
1085
|
+
var Ft$1 = typeof exports == "object" && exports && !exports.nodeType && exports, tt$2 = Ft$1 && typeof module == "object" && module && !module.nodeType && module, Ys$1 = tt$2 && tt$2.exports === Ft$1, rt$2 = Ys$1 ? O$1.Buffer : void 0, nt$2 = rt$2 ? rt$2.allocUnsafe : void 0;
|
|
1086
1086
|
function ei(r, e) {
|
|
1087
1087
|
if (e)
|
|
1088
1088
|
return r.slice();
|
|
1089
|
-
var t = r.length, n = nt$
|
|
1089
|
+
var t = r.length, n = nt$2 ? nt$2(t) : new r.constructor(t);
|
|
1090
1090
|
return r.copy(n), n;
|
|
1091
1091
|
}
|
|
1092
1092
|
function ti(r, e) {
|
|
@@ -1111,21 +1111,21 @@
|
|
|
1111
1111
|
function Ae$2(r) {
|
|
1112
1112
|
return oi(r, le$1, ii);
|
|
1113
1113
|
}
|
|
1114
|
-
var xe$2 = q$
|
|
1115
|
-
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$
|
|
1114
|
+
var xe$2 = q$3(O$1, "DataView"), Se$2 = q$3(O$1, "Promise"), Te$2 = q$3(O$1, "Set"), it$2 = "[object Map]", ai = "[object Object]", ot$3 = "[object Promise]", at$2 = "[object Set]", ut$2 = "[object WeakMap]", ct$3 = "[object DataView]", ui = j$2(xe$2), ci = j$2(H$1), fi = j$2(Se$2), li = j$2(Te$2), di = j$2(we$2), w = N$2;
|
|
1115
|
+
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$3 || H$1 && w(new H$1()) != it$2 || Se$2 && w(Se$2.resolve()) != ot$3 || Te$2 && w(new Te$2()) != at$2 || we$2 && w(new we$2()) != ut$2) && (w = function(r) {
|
|
1116
1116
|
var e = N$2(r), t = e == ai ? r.constructor : void 0, n = t ? j$2(t) : "";
|
|
1117
1117
|
if (n)
|
|
1118
1118
|
switch (n) {
|
|
1119
1119
|
case ui:
|
|
1120
|
-
return ct$
|
|
1120
|
+
return ct$3;
|
|
1121
1121
|
case ci:
|
|
1122
|
-
return it$
|
|
1122
|
+
return it$2;
|
|
1123
1123
|
case fi:
|
|
1124
|
-
return ot$
|
|
1124
|
+
return ot$3;
|
|
1125
1125
|
case li:
|
|
1126
|
-
return at$
|
|
1126
|
+
return at$2;
|
|
1127
1127
|
case di:
|
|
1128
|
-
return ut;
|
|
1128
|
+
return ut$2;
|
|
1129
1129
|
}
|
|
1130
1130
|
return e;
|
|
1131
1131
|
});
|
|
@@ -1148,9 +1148,9 @@
|
|
|
1148
1148
|
var e = new r.constructor(r.source, mi.exec(r));
|
|
1149
1149
|
return e.lastIndex = r.lastIndex, e;
|
|
1150
1150
|
}
|
|
1151
|
-
var ft
|
|
1151
|
+
var ft = A$1 ? A$1.prototype : void 0, lt$2 = ft ? ft.valueOf : void 0;
|
|
1152
1152
|
function vi(r) {
|
|
1153
|
-
return lt$
|
|
1153
|
+
return lt$2 ? Object(lt$2.call(r)) : {};
|
|
1154
1154
|
}
|
|
1155
1155
|
function wi(r, e) {
|
|
1156
1156
|
var t = e ? Pe$2(r.buffer) : r.buffer;
|
|
@@ -1193,18 +1193,18 @@
|
|
|
1193
1193
|
function Li(r) {
|
|
1194
1194
|
return typeof r.constructor == "function" && !Dt$1(r) ? Hr$1(Ks$1(r)) : {};
|
|
1195
1195
|
}
|
|
1196
|
-
var
|
|
1197
|
-
function
|
|
1198
|
-
return T$3(r) && w(r) ==
|
|
1196
|
+
var Gi = "[object Map]";
|
|
1197
|
+
function ki(r) {
|
|
1198
|
+
return T$3(r) && w(r) == Gi;
|
|
1199
1199
|
}
|
|
1200
|
-
var dt$
|
|
1200
|
+
var dt$1 = R$2 && R$2.isMap, zi = dt$1 ? V$1(dt$1) : ki, Bi = "[object Set]";
|
|
1201
1201
|
function Ui(r) {
|
|
1202
1202
|
return T$3(r) && w(r) == Bi;
|
|
1203
1203
|
}
|
|
1204
|
-
var ht
|
|
1205
|
-
g[Lt$1] = g[
|
|
1206
|
-
g[Xi] = g[
|
|
1207
|
-
function ie
|
|
1204
|
+
var ht = R$2 && R$2.isSet, Hi = ht ? V$1(ht) : Ui, Wi = 1, Lt$1 = "[object Arguments]", Zi = "[object Array]", Ji = "[object Boolean]", Vi = "[object Date]", Xi = "[object Error]", Gt$1 = "[object Function]", Yi = "[object GeneratorFunction]", eo$1 = "[object Map]", to$1 = "[object Number]", kt$1 = "[object Object]", ro$1 = "[object RegExp]", no$1 = "[object Set]", so$1 = "[object String]", io$1 = "[object Symbol]", oo$1 = "[object WeakMap]", ao$1 = "[object ArrayBuffer]", uo$1 = "[object DataView]", co$1 = "[object Float32Array]", fo$1 = "[object Float64Array]", lo$1 = "[object Int8Array]", ho$1 = "[object Int16Array]", po$1 = "[object Int32Array]", go$1 = "[object Uint8Array]", yo$1 = "[object Uint8ClampedArray]", mo$1 = "[object Uint16Array]", bo$1 = "[object Uint32Array]", g = {};
|
|
1205
|
+
g[Lt$1] = g[Zi] = g[ao$1] = g[uo$1] = g[Ji] = g[Vi] = g[co$1] = g[fo$1] = g[lo$1] = g[ho$1] = g[po$1] = g[eo$1] = g[to$1] = g[kt$1] = g[ro$1] = g[no$1] = g[so$1] = g[io$1] = g[go$1] = g[yo$1] = g[mo$1] = g[bo$1] = true;
|
|
1206
|
+
g[Xi] = g[Gt$1] = g[oo$1] = false;
|
|
1207
|
+
function ie(r, e, t, n, s, i) {
|
|
1208
1208
|
var o, a = e & Wi;
|
|
1209
1209
|
if (o !== void 0)
|
|
1210
1210
|
return o;
|
|
@@ -1214,10 +1214,10 @@
|
|
|
1214
1214
|
if (u)
|
|
1215
1215
|
o = gi(r);
|
|
1216
1216
|
else {
|
|
1217
|
-
var c = w(r), f = c ==
|
|
1218
|
-
if (ae(r))
|
|
1217
|
+
var c = w(r), f = c == Gt$1 || c == Yi;
|
|
1218
|
+
if (ae$1(r))
|
|
1219
1219
|
return ei(r, a);
|
|
1220
|
-
if (c ==
|
|
1220
|
+
if (c == kt$1 || c == Lt$1 || f && !s)
|
|
1221
1221
|
o = f ? {} : Li(r);
|
|
1222
1222
|
else {
|
|
1223
1223
|
if (!g[c])
|
|
@@ -1230,34 +1230,34 @@
|
|
|
1230
1230
|
if (l)
|
|
1231
1231
|
return l;
|
|
1232
1232
|
i.set(r, o), Hi(r) ? r.forEach(function(p2) {
|
|
1233
|
-
o.add(ie
|
|
1233
|
+
o.add(ie(p2, e, t, p2, r, i));
|
|
1234
1234
|
}) : zi(r) && r.forEach(function(p2, m) {
|
|
1235
|
-
o.set(m, ie
|
|
1235
|
+
o.set(m, ie(p2, e, t, m, r, i));
|
|
1236
1236
|
});
|
|
1237
1237
|
var d = Ae$2, h2 = u ? void 0 : d(r);
|
|
1238
1238
|
return rn$1(h2 || r, function(p2, m) {
|
|
1239
|
-
h2 && (m = p2, p2 = r[m]), hn$1(o, m, ie
|
|
1239
|
+
h2 && (m = p2, p2 = r[m]), hn$1(o, m, ie(p2, e, t, m, r, i));
|
|
1240
1240
|
}), o;
|
|
1241
1241
|
}
|
|
1242
|
-
var vo = 1, wo = 4;
|
|
1243
|
-
function M$
|
|
1244
|
-
return ie
|
|
1242
|
+
var vo$1 = 1, wo$1 = 4;
|
|
1243
|
+
function M$3(r) {
|
|
1244
|
+
return ie(r, vo$1 | wo$1);
|
|
1245
1245
|
}
|
|
1246
|
-
var Ao = "__lodash_hash_undefined__";
|
|
1247
|
-
function xo(r) {
|
|
1248
|
-
return this.__data__.set(r, Ao), this;
|
|
1246
|
+
var Ao$1 = "__lodash_hash_undefined__";
|
|
1247
|
+
function xo$1(r) {
|
|
1248
|
+
return this.__data__.set(r, Ao$1), this;
|
|
1249
1249
|
}
|
|
1250
|
-
function So(r) {
|
|
1250
|
+
function So$1(r) {
|
|
1251
1251
|
return this.__data__.has(r);
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function Z$3(r) {
|
|
1254
1254
|
var e = -1, t = r == null ? 0 : r.length;
|
|
1255
1255
|
for (this.__data__ = new _(); ++e < t; )
|
|
1256
1256
|
this.add(r[e]);
|
|
1257
1257
|
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
function To(r, e) {
|
|
1258
|
+
Z$3.prototype.add = Z$3.prototype.push = xo$1;
|
|
1259
|
+
Z$3.prototype.has = So$1;
|
|
1260
|
+
function To$1(r, e) {
|
|
1261
1261
|
for (var t = -1, n = r == null ? 0 : r.length; ++t < n; )
|
|
1262
1262
|
if (e(r[t], t, r))
|
|
1263
1263
|
return true;
|
|
@@ -1266,15 +1266,15 @@
|
|
|
1266
1266
|
function zt$1(r, e) {
|
|
1267
1267
|
return r.has(e);
|
|
1268
1268
|
}
|
|
1269
|
-
var Oo = 1, $o = 2;
|
|
1269
|
+
var Oo$1 = 1, $o$1 = 2;
|
|
1270
1270
|
function Bt$1(r, e, t, n, s, i) {
|
|
1271
|
-
var o = t & Oo, a = r.length, u = e.length;
|
|
1271
|
+
var o = t & Oo$1, a = r.length, u = e.length;
|
|
1272
1272
|
if (a != u && !(o && u > a))
|
|
1273
1273
|
return false;
|
|
1274
1274
|
var c = i.get(r), f = i.get(e);
|
|
1275
1275
|
if (c && f)
|
|
1276
1276
|
return c == e && f == r;
|
|
1277
|
-
var l = -1, d = true, h2 = t & $o ? new
|
|
1277
|
+
var l = -1, d = true, h2 = t & $o$1 ? new Z$3() : void 0;
|
|
1278
1278
|
for (i.set(r, e), i.set(e, r); ++l < a; ) {
|
|
1279
1279
|
var p2 = r[l], m = e[l];
|
|
1280
1280
|
if (n)
|
|
@@ -1286,9 +1286,9 @@
|
|
|
1286
1286
|
break;
|
|
1287
1287
|
}
|
|
1288
1288
|
if (h2) {
|
|
1289
|
-
if (!To(e, function(D2,
|
|
1290
|
-
if (!zt$1(h2,
|
|
1291
|
-
return h2.push(
|
|
1289
|
+
if (!To$1(e, function(D2, I) {
|
|
1290
|
+
if (!zt$1(h2, I) && (p2 === D2 || s(p2, D2, t, n, i)))
|
|
1291
|
+
return h2.push(I);
|
|
1292
1292
|
})) {
|
|
1293
1293
|
d = false;
|
|
1294
1294
|
break;
|
|
@@ -1300,41 +1300,41 @@
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return i.delete(r), i.delete(e), d;
|
|
1302
1302
|
}
|
|
1303
|
-
function _o(r) {
|
|
1303
|
+
function _o$1(r) {
|
|
1304
1304
|
var e = -1, t = Array(r.size);
|
|
1305
1305
|
return r.forEach(function(n, s) {
|
|
1306
1306
|
t[++e] = [s, n];
|
|
1307
1307
|
}), t;
|
|
1308
1308
|
}
|
|
1309
|
-
function Co(r) {
|
|
1309
|
+
function Co$1(r) {
|
|
1310
1310
|
var e = -1, t = Array(r.size);
|
|
1311
1311
|
return r.forEach(function(n) {
|
|
1312
1312
|
t[++e] = n;
|
|
1313
1313
|
}), t;
|
|
1314
1314
|
}
|
|
1315
|
-
var Mo = 1, Do = 2, Io = "[object Boolean]", Eo = "[object Date]", Qo = "[object Error]", No = "[object Map]", jo = "[object Number]", qo = "[object RegExp]", Ko = "[object Set]", Po = "[object String]", Ro = "[object Symbol]", Fo = "[object ArrayBuffer]", Lo = "[object DataView]", pt = A$1 ? A$1.prototype : void 0, me$1 = pt ? pt.valueOf : void 0;
|
|
1316
|
-
function
|
|
1315
|
+
var Mo = 1, Do = 2, Io$1 = "[object Boolean]", Eo$1 = "[object Date]", Qo = "[object Error]", No = "[object Map]", jo$1 = "[object Number]", qo = "[object RegExp]", Ko = "[object Set]", Po$1 = "[object String]", Ro = "[object Symbol]", Fo$1 = "[object ArrayBuffer]", Lo = "[object DataView]", pt$1 = A$1 ? A$1.prototype : void 0, me$1 = pt$1 ? pt$1.valueOf : void 0;
|
|
1316
|
+
function Go(r, e, t, n, s, i, o) {
|
|
1317
1317
|
switch (t) {
|
|
1318
1318
|
case Lo:
|
|
1319
1319
|
if (r.byteLength != e.byteLength || r.byteOffset != e.byteOffset)
|
|
1320
1320
|
return false;
|
|
1321
1321
|
r = r.buffer, e = e.buffer;
|
|
1322
|
-
case Fo:
|
|
1322
|
+
case Fo$1:
|
|
1323
1323
|
return !(r.byteLength != e.byteLength || !i(new ue$1(r), new ue$1(e)));
|
|
1324
|
-
case Io:
|
|
1325
|
-
case Eo:
|
|
1326
|
-
case jo:
|
|
1324
|
+
case Io$1:
|
|
1325
|
+
case Eo$1:
|
|
1326
|
+
case jo$1:
|
|
1327
1327
|
return Ie$2(+r, +e);
|
|
1328
1328
|
case Qo:
|
|
1329
1329
|
return r.name == e.name && r.message == e.message;
|
|
1330
1330
|
case qo:
|
|
1331
|
-
case Po:
|
|
1331
|
+
case Po$1:
|
|
1332
1332
|
return r == e + "";
|
|
1333
1333
|
case No:
|
|
1334
|
-
var a = _o;
|
|
1334
|
+
var a = _o$1;
|
|
1335
1335
|
case Ko:
|
|
1336
1336
|
var u = n & Mo;
|
|
1337
|
-
if (a || (a = Co), r.size != e.size && !u)
|
|
1337
|
+
if (a || (a = Co$1), r.size != e.size && !u)
|
|
1338
1338
|
return false;
|
|
1339
1339
|
var c = o.get(r);
|
|
1340
1340
|
if (c)
|
|
@@ -1348,9 +1348,9 @@
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return false;
|
|
1350
1350
|
}
|
|
1351
|
-
var
|
|
1352
|
-
function Uo(r, e, t, n, s, i) {
|
|
1353
|
-
var o = t &
|
|
1351
|
+
var ko$1 = 1, zo = Object.prototype, Bo = zo.hasOwnProperty;
|
|
1352
|
+
function Uo$1(r, e, t, n, s, i) {
|
|
1353
|
+
var o = t & ko$1, a = Ae$2(r), u = a.length, c = Ae$2(e), f = c.length;
|
|
1354
1354
|
if (u != f && !o)
|
|
1355
1355
|
return false;
|
|
1356
1356
|
for (var l = u; l--; ) {
|
|
@@ -1365,10 +1365,10 @@
|
|
|
1365
1365
|
i.set(r, e), i.set(e, r);
|
|
1366
1366
|
for (var C2 = o; ++l < u; ) {
|
|
1367
1367
|
d = a[l];
|
|
1368
|
-
var D2 = r[d],
|
|
1368
|
+
var D2 = r[d], I = e[d];
|
|
1369
1369
|
if (n)
|
|
1370
|
-
var Le2 = o ? n(
|
|
1371
|
-
if (!(Le2 === void 0 ? D2 ===
|
|
1370
|
+
var Le2 = o ? n(I, D2, d, e, r, i) : n(D2, I, d, r, e, i);
|
|
1371
|
+
if (!(Le2 === void 0 ? D2 === I || s(D2, I, t, n, i) : Le2)) {
|
|
1372
1372
|
m = false;
|
|
1373
1373
|
break;
|
|
1374
1374
|
}
|
|
@@ -1380,31 +1380,31 @@
|
|
|
1380
1380
|
}
|
|
1381
1381
|
return i.delete(r), i.delete(e), m;
|
|
1382
1382
|
}
|
|
1383
|
-
var Ho = 1, gt
|
|
1384
|
-
function
|
|
1385
|
-
var o = v$1(r), a = v$1(e), u = o ? yt
|
|
1386
|
-
u = u == gt
|
|
1383
|
+
var Ho = 1, gt = "[object Arguments]", yt = "[object Array]", re$1 = "[object Object]", Wo = Object.prototype, mt = Wo.hasOwnProperty;
|
|
1384
|
+
function Zo(r, e, t, n, s, i) {
|
|
1385
|
+
var o = v$1(r), a = v$1(e), u = o ? yt : w(r), c = a ? yt : w(e);
|
|
1386
|
+
u = u == gt ? re$1 : u, c = c == gt ? re$1 : c;
|
|
1387
1387
|
var f = u == re$1, l = c == re$1, d = u == c;
|
|
1388
|
-
if (d && ae(r)) {
|
|
1389
|
-
if (!ae(e))
|
|
1388
|
+
if (d && ae$1(r)) {
|
|
1389
|
+
if (!ae$1(e))
|
|
1390
1390
|
return false;
|
|
1391
1391
|
o = true, f = false;
|
|
1392
1392
|
}
|
|
1393
1393
|
if (d && !f)
|
|
1394
|
-
return i || (i = new S$1()), o || Nt$1(r) ? Bt$1(r, e, t, n, s, i) :
|
|
1394
|
+
return i || (i = new S$1()), o || Nt$1(r) ? Bt$1(r, e, t, n, s, i) : Go(r, e, u, t, n, s, i);
|
|
1395
1395
|
if (!(t & Ho)) {
|
|
1396
|
-
var h2 = f && mt
|
|
1396
|
+
var h2 = f && mt.call(r, "__wrapped__"), p2 = l && mt.call(e, "__wrapped__");
|
|
1397
1397
|
if (h2 || p2) {
|
|
1398
1398
|
var m = h2 ? r.value() : r, C2 = p2 ? e.value() : e;
|
|
1399
1399
|
return i || (i = new S$1()), s(m, C2, t, n, i);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
return d ? (i || (i = new S$1()), Uo(r, e, t, n, s, i)) : false;
|
|
1402
|
+
return d ? (i || (i = new S$1()), Uo$1(r, e, t, n, s, i)) : false;
|
|
1403
1403
|
}
|
|
1404
|
-
function X$
|
|
1405
|
-
return r === e ? true : r == null || e == null || !T$3(r) && !T$3(e) ? r !== r && e !== e :
|
|
1404
|
+
function X$2(r, e, t, n, s) {
|
|
1405
|
+
return r === e ? true : r == null || e == null || !T$3(r) && !T$3(e) ? r !== r && e !== e : Zo(r, e, t, n, X$2, s);
|
|
1406
1406
|
}
|
|
1407
|
-
var
|
|
1407
|
+
var Jo = 1, Vo$1 = 2;
|
|
1408
1408
|
function Ut$1(r, e, t, n) {
|
|
1409
1409
|
var s = t.length, i = s;
|
|
1410
1410
|
if (r == null)
|
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
return false;
|
|
1423
1423
|
} else {
|
|
1424
1424
|
var f = new S$1(), l;
|
|
1425
|
-
if (!(l === void 0 ? X$
|
|
1425
|
+
if (!(l === void 0 ? X$2(c, u, Jo | Vo$1, n, f) : l))
|
|
1426
1426
|
return false;
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
@@ -1438,14 +1438,14 @@
|
|
|
1438
1438
|
}
|
|
1439
1439
|
return e;
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function Zt$1(r, e) {
|
|
1442
1442
|
return function(t) {
|
|
1443
1443
|
return t == null ? false : t[r] === e && (e !== void 0 || r in Object(t));
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
1446
|
function Xo(r) {
|
|
1447
1447
|
var e = Wt$1(r);
|
|
1448
|
-
return e.length == 1 && e[0][2] ?
|
|
1448
|
+
return e.length == 1 && e[0][2] ? Zt$1(e[0][0], e[0][1]) : function(t) {
|
|
1449
1449
|
return t === r || Ut$1(t, r, e);
|
|
1450
1450
|
};
|
|
1451
1451
|
}
|
|
@@ -1455,7 +1455,7 @@
|
|
|
1455
1455
|
function ea(r, e, t) {
|
|
1456
1456
|
e = Kt$1(e, r);
|
|
1457
1457
|
for (var n = -1, s = e.length, i = false; ++n < s; ) {
|
|
1458
|
-
var o = pe(e[n]);
|
|
1458
|
+
var o = pe$1(e[n]);
|
|
1459
1459
|
if (!(i = r != null && t(r, o)))
|
|
1460
1460
|
break;
|
|
1461
1461
|
r = r[o];
|
|
@@ -1467,12 +1467,12 @@
|
|
|
1467
1467
|
}
|
|
1468
1468
|
var ra = 1, na = 2;
|
|
1469
1469
|
function sa(r, e) {
|
|
1470
|
-
return Ne$2(r) && Ht$1(e) ?
|
|
1470
|
+
return Ne$2(r) && Ht$1(e) ? Zt$1(pe$1(r), e) : function(t) {
|
|
1471
1471
|
var n = W$3(t, r);
|
|
1472
|
-
return n === void 0 && n === e ? ta(t, r) : X$
|
|
1472
|
+
return n === void 0 && n === e ? ta(t, r) : X$2(e, n, ra | na);
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Jt$1(r) {
|
|
1476
1476
|
return function(e) {
|
|
1477
1477
|
return e?.[r];
|
|
1478
1478
|
};
|
|
@@ -1483,7 +1483,7 @@
|
|
|
1483
1483
|
};
|
|
1484
1484
|
}
|
|
1485
1485
|
function oa(r) {
|
|
1486
|
-
return Ne$2(r) ?
|
|
1486
|
+
return Ne$2(r) ? Jt$1(pe$1(r)) : ia(r);
|
|
1487
1487
|
}
|
|
1488
1488
|
function Y$3(r) {
|
|
1489
1489
|
return typeof r == "function" ? r : r == null ? fe : typeof r == "object" ? v$1(r) ? sa(r[0], r[1]) : Xo(r) : oa(r);
|
|
@@ -1506,7 +1506,7 @@
|
|
|
1506
1506
|
return function(t, n) {
|
|
1507
1507
|
if (t == null)
|
|
1508
1508
|
return t;
|
|
1509
|
-
if (!F$
|
|
1509
|
+
if (!F$1(t))
|
|
1510
1510
|
return r(t, n);
|
|
1511
1511
|
for (var s = t.length, i = -1, o = Object(t); ++i < s && n(o[i], i, o) !== false; )
|
|
1512
1512
|
;
|
|
@@ -1515,14 +1515,14 @@
|
|
|
1515
1515
|
}
|
|
1516
1516
|
var Vt$1 = fa(ca);
|
|
1517
1517
|
function be$2(r) {
|
|
1518
|
-
return T$3(r) && F$
|
|
1518
|
+
return T$3(r) && F$1(r);
|
|
1519
1519
|
}
|
|
1520
1520
|
var la = 200;
|
|
1521
1521
|
function da(r, e, t, n) {
|
|
1522
1522
|
var s = -1, i = an$1, o = true, a = r.length, u = [], c = e.length;
|
|
1523
1523
|
if (!a)
|
|
1524
1524
|
return u;
|
|
1525
|
-
t && (e = z$2(e, V$1(t))), e.length >= la && (i = zt$1, o = false, e = new
|
|
1525
|
+
t && (e = z$2(e, V$1(t))), e.length >= la && (i = zt$1, o = false, e = new Z$3(e));
|
|
1526
1526
|
e:
|
|
1527
1527
|
for (; ++s < a; ) {
|
|
1528
1528
|
var f = r[s], l = t == null ? f : t(f);
|
|
@@ -1539,12 +1539,12 @@
|
|
|
1539
1539
|
var e = r == null ? 0 : r.length;
|
|
1540
1540
|
return e ? r[e - 1] : void 0;
|
|
1541
1541
|
}
|
|
1542
|
-
var bt
|
|
1542
|
+
var bt = gn$1(function(r, e) {
|
|
1543
1543
|
var t = ha(e);
|
|
1544
1544
|
return be$2(t) && (t = void 0), be$2(r) ? da(r, qs$1(e, 1, be$2), Y$3(t)) : [];
|
|
1545
1545
|
});
|
|
1546
1546
|
function pa(r, e, t) {
|
|
1547
|
-
r = qe$
|
|
1547
|
+
r = qe$3(r), e = ce$1(e);
|
|
1548
1548
|
var n = r.length;
|
|
1549
1549
|
t = t === void 0 ? n : Rt$1(De$2(t), 0, n);
|
|
1550
1550
|
var s = t;
|
|
@@ -1569,7 +1569,7 @@
|
|
|
1569
1569
|
function ma(r) {
|
|
1570
1570
|
return function(e, t, n) {
|
|
1571
1571
|
var s = Object(e);
|
|
1572
|
-
if (!F$
|
|
1572
|
+
if (!F$1(e)) {
|
|
1573
1573
|
var i = Y$3(t);
|
|
1574
1574
|
e = le$1(e), t = function(a) {
|
|
1575
1575
|
return i(s[a], a, s);
|
|
@@ -1580,16 +1580,16 @@
|
|
|
1580
1580
|
};
|
|
1581
1581
|
}
|
|
1582
1582
|
var ba = Math.max;
|
|
1583
|
-
function Oe$
|
|
1583
|
+
function Oe$3(r, e, t) {
|
|
1584
1584
|
var n = r == null ? 0 : r.length;
|
|
1585
1585
|
if (!n)
|
|
1586
1586
|
return -1;
|
|
1587
1587
|
var s = t == null ? 0 : De$2(t);
|
|
1588
1588
|
return s < 0 && (s = ba(n + s, 0)), Ct$1(r, Y$3(e), s);
|
|
1589
1589
|
}
|
|
1590
|
-
var va = ma(Oe$
|
|
1590
|
+
var va = ma(Oe$3);
|
|
1591
1591
|
function wa(r, e) {
|
|
1592
|
-
var t = -1, n = F$
|
|
1592
|
+
var t = -1, n = F$1(r) ? Array(r.length) : [];
|
|
1593
1593
|
return Vt$1(r, function(s, i, o) {
|
|
1594
1594
|
n[++t] = e(s, i, o);
|
|
1595
1595
|
}), n;
|
|
@@ -1598,13 +1598,13 @@
|
|
|
1598
1598
|
function xa(r) {
|
|
1599
1599
|
return typeof r == "string" || !v$1(r) && T$3(r) && N$2(r) == Aa;
|
|
1600
1600
|
}
|
|
1601
|
-
function vt
|
|
1602
|
-
return X$
|
|
1601
|
+
function vt(r, e) {
|
|
1602
|
+
return X$2(r, e);
|
|
1603
1603
|
}
|
|
1604
1604
|
function ne$1(r, e, t) {
|
|
1605
1605
|
t = typeof t == "function" ? t : void 0;
|
|
1606
1606
|
var n = t ? t(r, e) : void 0;
|
|
1607
|
-
return n === void 0 ? X$
|
|
1607
|
+
return n === void 0 ? X$2(r, e, void 0, t) : !!n;
|
|
1608
1608
|
}
|
|
1609
1609
|
function Sa(r, e) {
|
|
1610
1610
|
return r === e || Ut$1(r, e, Wt$1(e));
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
function _u(r, e, t, n) {
|
|
1659
1659
|
return r == null ? [] : (v$1(e) || (e = e == null ? [] : [e]), t = t, v$1(t) || (t = t == null ? [] : [t]), _a(r, e, t));
|
|
1660
1660
|
}
|
|
1661
|
-
var Ca =
|
|
1661
|
+
var Ca = Jt$1("length"), Yt$1 = "\\ud800-\\udfff", Ma = "\\u0300-\\u036f", Da = "\\ufe20-\\ufe2f", Ia = "\\u20d0-\\u20ff", Ea = Ma + Da + Ia, Qa = "\\ufe0e\\ufe0f", Na = "[" + Yt$1 + "]", $e$2 = "[" + Ea + "]", _e$2 = "\\ud83c[\\udffb-\\udfff]", ja = "(?:" + $e$2 + "|" + _e$2 + ")", er$1 = "[^" + Yt$1 + "]", tr$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}", rr$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]", qa = "\\u200d", nr$1 = ja + "?", sr$1 = "[" + Qa + "]?", Ka = "(?:" + qa + "(?:" + [er$1, tr$1, rr$1].join("|") + ")" + sr$1 + nr$1 + ")*", Pa = sr$1 + nr$1 + Ka, Ra = "(?:" + [er$1 + $e$2 + "?", $e$2, tr$1, rr$1, Na].join("|") + ")", wt$1 = RegExp(_e$2 + "(?=" + _e$2 + ")|" + Ra + Pa, "g");
|
|
1662
1662
|
function Fa(r) {
|
|
1663
1663
|
for (var e = wt$1.lastIndex = 0; wt$1.test(r); )
|
|
1664
1664
|
++e;
|
|
@@ -1667,17 +1667,17 @@
|
|
|
1667
1667
|
function La(r) {
|
|
1668
1668
|
return Us$1(r) ? Fa(r) : Ca(r);
|
|
1669
1669
|
}
|
|
1670
|
-
var
|
|
1670
|
+
var Ga = "[object Map]", ka = "[object Set]";
|
|
1671
1671
|
function za(r) {
|
|
1672
1672
|
if (r == null)
|
|
1673
1673
|
return 0;
|
|
1674
|
-
if (F$
|
|
1674
|
+
if (F$1(r))
|
|
1675
1675
|
return xa(r) ? La(r) : r.length;
|
|
1676
1676
|
var e = w(r);
|
|
1677
|
-
return e ==
|
|
1677
|
+
return e == Ga || e == ka ? r.size : qt$1(r).length;
|
|
1678
1678
|
}
|
|
1679
1679
|
function Ba(r, e, t) {
|
|
1680
|
-
return r = qe$
|
|
1680
|
+
return r = qe$3(r), t = t == null ? 0 : Rt$1(De$2(t), 0, r.length), e = ce$1(e), r.slice(t, t + e.length) == e;
|
|
1681
1681
|
}
|
|
1682
1682
|
function Re$1(r) {
|
|
1683
1683
|
const e = Ce$2(r);
|
|
@@ -1704,7 +1704,7 @@
|
|
|
1704
1704
|
}
|
|
1705
1705
|
return e.toString(16);
|
|
1706
1706
|
}
|
|
1707
|
-
const
|
|
1707
|
+
const J$2 = {
|
|
1708
1708
|
now: () => typeof performance < "u" && performance.now ? performance.now() : (/* @__PURE__ */ new Date()).getTime(),
|
|
1709
1709
|
mark: (r) => {
|
|
1710
1710
|
typeof performance < "u" && performance.mark && performance.mark(r);
|
|
@@ -1739,7 +1739,7 @@
|
|
|
1739
1739
|
const t = this.getKey(e.name, e.context), n = {
|
|
1740
1740
|
name: e.name,
|
|
1741
1741
|
type: "mark",
|
|
1742
|
-
value:
|
|
1742
|
+
value: J$2.now(),
|
|
1743
1743
|
createdAt: Date.now()
|
|
1744
1744
|
};
|
|
1745
1745
|
return this.data.set(t, n), n;
|
|
@@ -1776,7 +1776,7 @@
|
|
|
1776
1776
|
return this.data.get(t);
|
|
1777
1777
|
}
|
|
1778
1778
|
getResourceInfosFromPerformanceAPI() {
|
|
1779
|
-
return typeof performance > "u" ? [] :
|
|
1779
|
+
return typeof performance > "u" ? [] : J$2.getEntriesByType("resource");
|
|
1780
1780
|
}
|
|
1781
1781
|
get(e) {
|
|
1782
1782
|
const t = this.getKey(e.name, e.context);
|
|
@@ -2595,7 +2595,7 @@
|
|
|
2595
2595
|
}
|
|
2596
2596
|
generateContext(e) {
|
|
2597
2597
|
try {
|
|
2598
|
-
return M$
|
|
2598
|
+
return M$3(e);
|
|
2599
2599
|
} catch (t) {
|
|
2600
2600
|
return this.log.error("Error in cache generateContext", t), e;
|
|
2601
2601
|
}
|
|
@@ -2619,7 +2619,7 @@
|
|
|
2619
2619
|
};
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function Za(r = 10) {
|
|
2623
2623
|
let e = "";
|
|
2624
2624
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2625
2625
|
for (let n = 0; n < r; n++) e += t.charAt(Math.floor(Math.random() * t.length));
|
|
@@ -2651,7 +2651,7 @@
|
|
|
2651
2651
|
this.off && this.off();
|
|
2652
2652
|
}
|
|
2653
2653
|
trigger(e) {
|
|
2654
|
-
e.originCdRefKey || (e.originCdRefKey = this.key), e.key || (this.increaseCounter(), e.key = this.getCounter()), e.end || (e.end =
|
|
2654
|
+
e.originCdRefKey || (e.originCdRefKey = this.key), e.key || (this.increaseCounter(), e.key = this.getCounter()), e.end || (e.end = J$2.now(), e.duration = e.start - e.end), this.updateListener.forEach((t) => {
|
|
2655
2655
|
t(e);
|
|
2656
2656
|
});
|
|
2657
2657
|
}
|
|
@@ -2661,12 +2661,12 @@
|
|
|
2661
2661
|
};
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
2664
|
-
const or$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) : M$
|
|
2664
|
+
const or$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) : M$3(r) : r, xt$1 = (r, e, t, n, s, i) => {
|
|
2665
2665
|
try {
|
|
2666
2666
|
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = or$1(i, o);
|
|
2667
2667
|
if (t.scope === "list" && (t.listKey = r.cdRef?.key || r.key, t.modelKey = r.model?.key || r.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
|
|
2668
2668
|
return a;
|
|
2669
|
-
const u =
|
|
2669
|
+
const u = J$2.now(), c = u - n, f = Math.round(c * 1e3) / 1e3;
|
|
2670
2670
|
t.duration = f, t.start = n, t.end = u;
|
|
2671
2671
|
const l = {
|
|
2672
2672
|
duration: t.duration
|
|
@@ -2687,9 +2687,9 @@
|
|
|
2687
2687
|
}, Eu = (r) => (e, t, n) => {
|
|
2688
2688
|
const s = n.value;
|
|
2689
2689
|
return n.value = function(...i) {
|
|
2690
|
-
const o =
|
|
2690
|
+
const o = J$2.now(), a = this.cdRef, u = or$1(r, true);
|
|
2691
2691
|
u.key || (a.increaseCounter(), u.key = a.getCounter());
|
|
2692
|
-
const c =
|
|
2692
|
+
const c = Za();
|
|
2693
2693
|
a.analyticsController.mark({
|
|
2694
2694
|
name: `${u.type}:start`,
|
|
2695
2695
|
context: c
|
|
@@ -2742,7 +2742,7 @@
|
|
|
2742
2742
|
}
|
|
2743
2743
|
return s;
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2745
|
+
function Ja(r) {
|
|
2746
2746
|
return r instanceof Date;
|
|
2747
2747
|
}
|
|
2748
2748
|
function Va(r) {
|
|
@@ -3087,13 +3087,13 @@
|
|
|
3087
3087
|
}
|
|
3088
3088
|
}
|
|
3089
3089
|
const x$2 = new su();
|
|
3090
|
-
function L$
|
|
3090
|
+
function L$2(r, e) {
|
|
3091
3091
|
if (e.includes("[*]")) {
|
|
3092
3092
|
const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$3(r, o) : r;
|
|
3093
3093
|
if (!Array.isArray(u)) return [];
|
|
3094
3094
|
const c = [];
|
|
3095
3095
|
for (const f of u)
|
|
3096
|
-
!a || a === "" ? f !== void 0 && c.push(f) : a.startsWith(".") && c.push(...L$
|
|
3096
|
+
!a || a === "" ? f !== void 0 && c.push(f) : a.startsWith(".") && c.push(...L$2(f, a.slice(1)));
|
|
3097
3097
|
return c;
|
|
3098
3098
|
}
|
|
3099
3099
|
const t = e.split(".");
|
|
@@ -3154,7 +3154,7 @@
|
|
|
3154
3154
|
for (const s of e.values())
|
|
3155
3155
|
if (s)
|
|
3156
3156
|
if (t)
|
|
3157
|
-
n += L$
|
|
3157
|
+
n += L$2(s, r).filter((i) => i != null).length;
|
|
3158
3158
|
else {
|
|
3159
3159
|
const i = s[r];
|
|
3160
3160
|
if (i == null) continue;
|
|
@@ -3168,7 +3168,7 @@
|
|
|
3168
3168
|
if (!i) continue;
|
|
3169
3169
|
let o;
|
|
3170
3170
|
if (s)
|
|
3171
|
-
o = L$
|
|
3171
|
+
o = L$2(i, r);
|
|
3172
3172
|
else {
|
|
3173
3173
|
const a = i[r];
|
|
3174
3174
|
a === void 0 ? o = [] : Array.isArray(a) ? o = a.filter((u) => u !== void 0) : o = [a];
|
|
@@ -3194,7 +3194,7 @@
|
|
|
3194
3194
|
}, s = x$2.parse(r.attribute).isDeepQuery;
|
|
3195
3195
|
for (const i of e.values()) {
|
|
3196
3196
|
let o;
|
|
3197
|
-
s ? o = L$
|
|
3197
|
+
s ? o = L$2(i, r.attribute) : o = [i[r.attribute]];
|
|
3198
3198
|
let a = false;
|
|
3199
3199
|
for (const u of o)
|
|
3200
3200
|
for (const c of t)
|
|
@@ -3209,7 +3209,7 @@
|
|
|
3209
3209
|
if (!i) continue;
|
|
3210
3210
|
let o;
|
|
3211
3211
|
if (s)
|
|
3212
|
-
o = L$
|
|
3212
|
+
o = L$2(i, r);
|
|
3213
3213
|
else {
|
|
3214
3214
|
const a = i[r];
|
|
3215
3215
|
a === void 0 ? o = [] : Array.isArray(a) ? o = a : o = [a];
|
|
@@ -3238,7 +3238,7 @@
|
|
|
3238
3238
|
}
|
|
3239
3239
|
return n;
|
|
3240
3240
|
};
|
|
3241
|
-
let
|
|
3241
|
+
let k$4 = class k extends Error {
|
|
3242
3242
|
query;
|
|
3243
3243
|
constructor(e, t) {
|
|
3244
3244
|
const n = `Query Error: ${e} in ${JSON.stringify(t, null, 2)}`;
|
|
@@ -3253,7 +3253,7 @@
|
|
|
3253
3253
|
queries: []
|
|
3254
3254
|
};
|
|
3255
3255
|
_initOptions;
|
|
3256
|
-
currentQuery = M$
|
|
3256
|
+
currentQuery = M$3(this._defaultQueryOptions);
|
|
3257
3257
|
deepQueryService;
|
|
3258
3258
|
constructor(e) {
|
|
3259
3259
|
this.deepQueryService = e || x$2;
|
|
@@ -3282,7 +3282,7 @@
|
|
|
3282
3282
|
* });
|
|
3283
3283
|
*/
|
|
3284
3284
|
init(e) {
|
|
3285
|
-
this._initOptions = M$
|
|
3285
|
+
this._initOptions = M$3(e), this.currentQuery = M$3(this._defaultQueryOptions), this.currentQuery.modelKey = e.modelKey, "queries" in e && Array.isArray(e.queries) && (e.groupType && (this.currentQuery.groupType = e.groupType), e.queries && (this.currentQuery.queries = M$3(e.queries)), e.count !== void 0 && (this.currentQuery.count = e.count), e.start !== void 0 && (this.currentQuery.start = e.start), e.sort && (this.currentQuery.sort = e.sort), e.projection && (this.currentQuery.projection = e.projection));
|
|
3286
3286
|
}
|
|
3287
3287
|
reset() {
|
|
3288
3288
|
return this.init(this._initOptions), this.getQuery();
|
|
@@ -3300,7 +3300,7 @@
|
|
|
3300
3300
|
return this.currentQuery.queries.find((t) => this.isQueryGroup(t) && t.groupKey === e);
|
|
3301
3301
|
}
|
|
3302
3302
|
getQuery() {
|
|
3303
|
-
return M$
|
|
3303
|
+
return M$3(this.currentQuery);
|
|
3304
3304
|
}
|
|
3305
3305
|
hasQueryGroup(e) {
|
|
3306
3306
|
return this.currentQuery.queries.some((t) => this.isQueryGroup(t) && t.groupKey === e);
|
|
@@ -3398,7 +3398,7 @@
|
|
|
3398
3398
|
(s) => this.isQueryGroup(s) && s.groupKey === e.attribute
|
|
3399
3399
|
);
|
|
3400
3400
|
if (n > -1) {
|
|
3401
|
-
const s = t.queries[n], i = Oe$
|
|
3401
|
+
const s = t.queries[n], i = Oe$3(s.queries, e);
|
|
3402
3402
|
i > -1 && s.queries.splice(i, 1), s.queries.length === 0 && t.queries.splice(n, 1);
|
|
3403
3403
|
}
|
|
3404
3404
|
} else if (this.isQueryGroup(e)) {
|
|
@@ -3411,7 +3411,7 @@
|
|
|
3411
3411
|
else {
|
|
3412
3412
|
const s = t.queries[n];
|
|
3413
3413
|
for (const i of e.queries) {
|
|
3414
|
-
const o = Oe$
|
|
3414
|
+
const o = Oe$3(s.queries, i);
|
|
3415
3415
|
o > -1 && s.queries.splice(o, 1);
|
|
3416
3416
|
}
|
|
3417
3417
|
s.queries.length === 0 && t.queries.splice(n, 1);
|
|
@@ -3422,12 +3422,12 @@
|
|
|
3422
3422
|
validateQuery(e) {
|
|
3423
3423
|
const t = [];
|
|
3424
3424
|
if (this.isQuery(e))
|
|
3425
|
-
return e.attribute || t.push(new
|
|
3425
|
+
return e.attribute || t.push(new k$4("Missing attribute", e)), e.operator || t.push(new k$4("Missing operator", e)), typeof e.value > "u" && t.push(new k$4("Missing value", e)), e.operator === "find" && Array.isArray(e.value) && t.push(new k$4("find operator cannot have array value", e)), t.length > 0 ? { valid: false, errors: t } : { valid: true };
|
|
3426
3426
|
if (this.isQueryGroup(e)) {
|
|
3427
3427
|
const n = e.queries.map((s) => this.validateQuery(s)).filter((s) => !s.valid).map((s) => s.errors).flat();
|
|
3428
3428
|
return n.length > 0 ? { valid: false, errors: n } : { valid: true };
|
|
3429
3429
|
}
|
|
3430
|
-
return t.push(new
|
|
3430
|
+
return t.push(new k$4("Invalid query definition", e)), { valid: false, errors: t };
|
|
3431
3431
|
}
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Get all attribute names used in the query.
|
|
@@ -3928,20 +3928,20 @@
|
|
|
3928
3928
|
};
|
|
3929
3929
|
const Me$2 = new ar$1();
|
|
3930
3930
|
function ju(r, e, t, n, s, i, o) {
|
|
3931
|
-
const a = Me$2.removeQuery({ groupKey: s }, M$
|
|
3931
|
+
const a = Me$2.removeQuery({ groupKey: s }, M$3(n)), u = o.queryData(r, a, false, i), c = e ? [...e.keys()] : [], f = new Set(c), l = i.get(s);
|
|
3932
3932
|
if (!t.excludeUnresolved)
|
|
3933
3933
|
for (const h2 of l.keys())
|
|
3934
3934
|
f.add(h2);
|
|
3935
3935
|
if (t.excludeUndefineds ? f.delete(void 0) : f.add(void 0), t.sort) {
|
|
3936
3936
|
const h2 = [];
|
|
3937
3937
|
for (const m of f.values())
|
|
3938
|
-
h2.push(Tt
|
|
3938
|
+
h2.push(Tt(m, l, u, e, s, n, true));
|
|
3939
3939
|
const p2 = t.excludeZeros ? h2.filter((m) => m.size > 0) : h2;
|
|
3940
3940
|
return p2.sort(lu(t.sort)), t.count ? p2.slice(0, t.count) : p2;
|
|
3941
3941
|
}
|
|
3942
3942
|
const d = [];
|
|
3943
3943
|
for (const h2 of f.values()) {
|
|
3944
|
-
const p2 = Tt
|
|
3944
|
+
const p2 = Tt(
|
|
3945
3945
|
h2,
|
|
3946
3946
|
l,
|
|
3947
3947
|
u,
|
|
@@ -3958,7 +3958,7 @@
|
|
|
3958
3958
|
}
|
|
3959
3959
|
return d;
|
|
3960
3960
|
}
|
|
3961
|
-
function Tt
|
|
3961
|
+
function Tt(r, e, t, n, s, i, o) {
|
|
3962
3962
|
const a = /* @__PURE__ */ new Map(), u = e.get(r) || /* @__PURE__ */ new Set();
|
|
3963
3963
|
for (const c of u) {
|
|
3964
3964
|
const f = t.get(c);
|
|
@@ -4080,7 +4080,7 @@
|
|
|
4080
4080
|
const a = x$2.parse(e).isDeepQuery;
|
|
4081
4081
|
for (const u of t.values()) {
|
|
4082
4082
|
let c;
|
|
4083
|
-
a ? (c = L$
|
|
4083
|
+
a ? (c = L$2(u, e), c.length === 0 && (c = [void 0])) : c = [u[e]], this.fillInverseIndex(s, u.key, c), this.fillDataMap(s, c);
|
|
4084
4084
|
}
|
|
4085
4085
|
i = this.getIndex(s) || /* @__PURE__ */ new Map();
|
|
4086
4086
|
}
|
|
@@ -4256,7 +4256,7 @@
|
|
|
4256
4256
|
};
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
const K$
|
|
4259
|
+
const K$3 = "__";
|
|
4260
4260
|
function ur$1(r, e, t = { key: "root" }, n = "root", s = new hu(), i) {
|
|
4261
4261
|
const o = i || r;
|
|
4262
4262
|
for (const a of e.columns)
|
|
@@ -4308,7 +4308,7 @@
|
|
|
4308
4308
|
l,
|
|
4309
4309
|
d,
|
|
4310
4310
|
f,
|
|
4311
|
-
s + K$
|
|
4311
|
+
s + K$3 + e.attribute + K$3 + u,
|
|
4312
4312
|
n,
|
|
4313
4313
|
i
|
|
4314
4314
|
);
|
|
@@ -4320,7 +4320,7 @@
|
|
|
4320
4320
|
d,
|
|
4321
4321
|
t,
|
|
4322
4322
|
n,
|
|
4323
|
-
s + K$
|
|
4323
|
+
s + K$3 + e.attribute + K$3 + u,
|
|
4324
4324
|
i
|
|
4325
4325
|
);
|
|
4326
4326
|
f.columns.push(h2);
|
|
@@ -4353,7 +4353,7 @@
|
|
|
4353
4353
|
l,
|
|
4354
4354
|
d,
|
|
4355
4355
|
f,
|
|
4356
|
-
s + K$
|
|
4356
|
+
s + K$3 + e.attribute + K$3 + u,
|
|
4357
4357
|
n,
|
|
4358
4358
|
i
|
|
4359
4359
|
);
|
|
@@ -4402,7 +4402,7 @@
|
|
|
4402
4402
|
case "boolean":
|
|
4403
4403
|
return "boolean";
|
|
4404
4404
|
case "object":
|
|
4405
|
-
return
|
|
4405
|
+
return Ja(r) ? "date" : "json";
|
|
4406
4406
|
default:
|
|
4407
4407
|
return "any";
|
|
4408
4408
|
}
|
|
@@ -4432,7 +4432,7 @@
|
|
|
4432
4432
|
return false;
|
|
4433
4433
|
switch (e.operator) {
|
|
4434
4434
|
case "eq":
|
|
4435
|
-
return e.options?.invert ? !vt
|
|
4435
|
+
return e.options?.invert ? !vt(n, s) : vt(n, s);
|
|
4436
4436
|
case "find":
|
|
4437
4437
|
return e.options?.invert ? !this.queryFind(n, s, i) : this.queryFind(n, s, i);
|
|
4438
4438
|
case "lt":
|
|
@@ -4470,7 +4470,7 @@
|
|
|
4470
4470
|
if (u.forEach((c) => {
|
|
4471
4471
|
n.has(c) && i.set(c, n.get(c));
|
|
4472
4472
|
}), t.options?.invert) {
|
|
4473
|
-
const c = bt
|
|
4473
|
+
const c = bt(Array.from(n.values()), Array.from(i.values()), "key"), f = /* @__PURE__ */ new Map();
|
|
4474
4474
|
return c.forEach((l) => {
|
|
4475
4475
|
f.set(l.key, l);
|
|
4476
4476
|
}), f;
|
|
@@ -4601,7 +4601,7 @@
|
|
|
4601
4601
|
o.set(f.key, f);
|
|
4602
4602
|
});
|
|
4603
4603
|
else {
|
|
4604
|
-
const f = bt
|
|
4604
|
+
const f = bt(Array.from(o.values()), Array.from(c.values()), "key");
|
|
4605
4605
|
for (const l of f)
|
|
4606
4606
|
o.delete(l.key);
|
|
4607
4607
|
}
|
|
@@ -4697,7 +4697,7 @@
|
|
|
4697
4697
|
var T$2 = gn$1(function(A2, e) {
|
|
4698
4698
|
return be$2(A2) ? da(A2, qs$1(e, 1, be$2)) : [];
|
|
4699
4699
|
});
|
|
4700
|
-
let
|
|
4700
|
+
let z$1 = class z {
|
|
4701
4701
|
constructor(e, t, r, i, n) {
|
|
4702
4702
|
this.modelParser = e, this.cdRef = t, this.item = r, this.indicesController = i, this.queryManager = n, this.cacheCtrl = new Du(!!this.cdRef.dcuplInitOptions.performance?.cache?.enabled);
|
|
4703
4703
|
}
|
|
@@ -4905,13 +4905,13 @@
|
|
|
4905
4905
|
}), e?.items) {
|
|
4906
4906
|
const d = e.items?.find((h2) => h2.key === "*");
|
|
4907
4907
|
d ? s.forEach((h2) => {
|
|
4908
|
-
const y2 = c.distinct.find((
|
|
4908
|
+
const y2 = c.distinct.find((M2) => M2.value === h2.key), D2 = this.getDataByKeys(u, y2.keys), v2 = this.item.getItems(D2, this.model, d);
|
|
4909
4909
|
h2._items = v2;
|
|
4910
4910
|
}) : s.forEach((h2) => {
|
|
4911
4911
|
const y2 = e.items?.find((D2) => D2.key === h2.key);
|
|
4912
4912
|
if (y2) {
|
|
4913
|
-
const D2 = c.distinct.find((F2) => F2.value === h2.key), v2 = this.getDataByKeys(u, D2.keys),
|
|
4914
|
-
h2._items =
|
|
4913
|
+
const D2 = c.distinct.find((F2) => F2.value === h2.key), v2 = this.getDataByKeys(u, D2.keys), M2 = this.item.getItems(v2, this.model, y2);
|
|
4914
|
+
h2._items = M2;
|
|
4915
4915
|
}
|
|
4916
4916
|
});
|
|
4917
4917
|
}
|
|
@@ -5097,7 +5097,7 @@
|
|
|
5097
5097
|
}
|
|
5098
5098
|
d.forEach((h2) => {
|
|
5099
5099
|
let y2;
|
|
5100
|
-
g2 ? (y2 = L$
|
|
5100
|
+
g2 ? (y2 = L$2(h2, e), y2.length === 0 && (y2 = [void 0])) : y2 = [h2[e]], this.indicesController.fillInverseIndex(e, h2.key, y2), this.indicesController.fillDataMap(e, y2);
|
|
5101
5101
|
}), n = this.indicesController.getIndex(e), o = this.indicesController.getData(e);
|
|
5102
5102
|
}
|
|
5103
5103
|
const f = ju(
|
|
@@ -5151,7 +5151,7 @@
|
|
|
5151
5151
|
}
|
|
5152
5152
|
}
|
|
5153
5153
|
updateFilteredData(e) {
|
|
5154
|
-
const t =
|
|
5154
|
+
const t = J$2.now();
|
|
5155
5155
|
e?.skipProcessing || (this.filteredData = this.getFilteredData(this.initialData, false), this.cdRef.trigger({
|
|
5156
5156
|
scope: "list",
|
|
5157
5157
|
type: "result_updated",
|
|
@@ -5200,7 +5200,7 @@
|
|
|
5200
5200
|
return this.filterItems.has(e) && (t?.skipProcessing || this.updateFilterItem(e, t)), this.filterItems.get(e);
|
|
5201
5201
|
}
|
|
5202
5202
|
};
|
|
5203
|
-
let
|
|
5203
|
+
let K$2 = class K {
|
|
5204
5204
|
constructor(e, t) {
|
|
5205
5205
|
this.modelParser = e, this.scriptController = t;
|
|
5206
5206
|
}
|
|
@@ -5337,17 +5337,17 @@
|
|
|
5337
5337
|
}), i;
|
|
5338
5338
|
}
|
|
5339
5339
|
};
|
|
5340
|
-
var
|
|
5341
|
-
for (var i =
|
|
5340
|
+
var U$2 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$2 = (A2, e, t, r) => {
|
|
5341
|
+
for (var i = $$1(e, t), n = A2.length - 1, s; n >= 0; n--)
|
|
5342
5342
|
(s = A2[n]) && (i = s(e, t, i) || i);
|
|
5343
|
-
return i &&
|
|
5343
|
+
return i && U$2(e, t, i), i;
|
|
5344
5344
|
};
|
|
5345
5345
|
let p$3 = class p {
|
|
5346
5346
|
constructor(e, t, r) {
|
|
5347
|
-
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new
|
|
5347
|
+
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new K$2(
|
|
5348
5348
|
this.dcuplApi.modelParser,
|
|
5349
5349
|
this.dcuplApi.scriptController
|
|
5350
|
-
), this.filter = new
|
|
5350
|
+
), this.filter = new z$1(
|
|
5351
5351
|
this.dcuplApi.modelParser,
|
|
5352
5352
|
this.cdRef,
|
|
5353
5353
|
this.itemService,
|
|
@@ -6051,7 +6051,7 @@
|
|
|
6051
6051
|
if (!E$3(t))
|
|
6052
6052
|
return false;
|
|
6053
6053
|
var s = typeof e;
|
|
6054
|
-
return (s == "number" ? F$
|
|
6054
|
+
return (s == "number" ? F$1(t) && Mt$1(e, t.length) : s == "string" && e in t) ? Ie$2(t[e], l) : false;
|
|
6055
6055
|
}
|
|
6056
6056
|
function De$1(l) {
|
|
6057
6057
|
return gn$1(function(e, t) {
|
|
@@ -6080,16 +6080,16 @@
|
|
|
6080
6080
|
return t;
|
|
6081
6081
|
}
|
|
6082
6082
|
function U$1(l) {
|
|
6083
|
-
return F$
|
|
6083
|
+
return F$1(l) ? Yn$1(l, true) : Se$1(l);
|
|
6084
6084
|
}
|
|
6085
|
-
var Ie$1 = "[object Object]", Te$1 = Function.prototype, xe$1 = Object.prototype, W$2 = Te$1.toString, Ge
|
|
6085
|
+
var Ie$1 = "[object Object]", Te$1 = Function.prototype, xe$1 = Object.prototype, W$2 = Te$1.toString, Ge = xe$1.hasOwnProperty, Ke$1 = W$2.call(Object);
|
|
6086
6086
|
function _e$1(l) {
|
|
6087
6087
|
if (!T$3(l) || N$2(l) != Ie$1)
|
|
6088
6088
|
return false;
|
|
6089
6089
|
var e = Ks$1(l);
|
|
6090
6090
|
if (e === null)
|
|
6091
6091
|
return true;
|
|
6092
|
-
var t = Ge
|
|
6092
|
+
var t = Ge.call(e, "constructor") && e.constructor;
|
|
6093
6093
|
return typeof t == "function" && t instanceof t && W$2.call(t) == Ke$1;
|
|
6094
6094
|
}
|
|
6095
6095
|
function we$1(l, e, t, s) {
|
|
@@ -6117,10 +6117,10 @@
|
|
|
6117
6117
|
if (!(e === "constructor" && typeof l[e] == "function") && e != "__proto__")
|
|
6118
6118
|
return l[e];
|
|
6119
6119
|
}
|
|
6120
|
-
function qe$
|
|
6120
|
+
function qe$2(l) {
|
|
6121
6121
|
return Pe$1(l, U$1(l));
|
|
6122
6122
|
}
|
|
6123
|
-
function Oe$
|
|
6123
|
+
function Oe$2(l, e, t, s, r, i, n) {
|
|
6124
6124
|
var o = x$1(l, t), a = x$1(e, t), d = n.get(a);
|
|
6125
6125
|
if (d) {
|
|
6126
6126
|
T$1(l, t, d);
|
|
@@ -6128,26 +6128,26 @@
|
|
|
6128
6128
|
}
|
|
6129
6129
|
var c = i ? i(o, a, t + "", l, e, n) : void 0, u = c === void 0;
|
|
6130
6130
|
if (u) {
|
|
6131
|
-
var f = v$1(a), y2 = !f && ae(a), h2 = !f && !y2 && Nt$1(a);
|
|
6132
|
-
c = a, f || y2 || h2 ? v$1(o) ? c = o : be$2(o) ? c = be$1(o) : y2 ? (u = false, c = ei(a, true)) : h2 ? (u = false, c = wi(a, true)) : c = [] : _e$1(a) || Qe$2(a) ? (c = o, Qe$2(o) ? c = qe$
|
|
6131
|
+
var f = v$1(a), y2 = !f && ae$1(a), h2 = !f && !y2 && Nt$1(a);
|
|
6132
|
+
c = a, f || y2 || h2 ? v$1(o) ? c = o : be$2(o) ? c = be$1(o) : y2 ? (u = false, c = ei(a, true)) : h2 ? (u = false, c = wi(a, true)) : c = [] : _e$1(a) || Qe$2(a) ? (c = o, Qe$2(o) ? c = qe$2(o) : (!E$3(o) || _t$1(o)) && (c = Li(a))) : u = false;
|
|
6133
6133
|
}
|
|
6134
6134
|
u && (n.set(a, c), r(c, a, s, i, n), n.delete(a)), T$1(l, t, c);
|
|
6135
6135
|
}
|
|
6136
6136
|
function Q$2(l, e, t, s, r) {
|
|
6137
6137
|
l !== e && ua(e, function(i, n) {
|
|
6138
6138
|
if (r || (r = new S$1()), E$3(i))
|
|
6139
|
-
Oe$
|
|
6139
|
+
Oe$2(l, e, n, t, Q$2, s, r);
|
|
6140
6140
|
else {
|
|
6141
6141
|
var o = s ? s(x$1(l, n), i, n + "", l, e, r) : void 0;
|
|
6142
6142
|
o === void 0 && (o = i), T$1(l, n, o);
|
|
6143
6143
|
}
|
|
6144
6144
|
}, U$1);
|
|
6145
6145
|
}
|
|
6146
|
-
var Ve$
|
|
6146
|
+
var Ve$2 = Object.prototype, Be$1 = Ve$2.hasOwnProperty, Ne$1 = $e$1(function(l, e, t) {
|
|
6147
6147
|
Be$1.call(l, t) ? l[t].push(e) : fn$1(l, t, [e]);
|
|
6148
|
-
}), Ue = "[object Boolean]";
|
|
6149
|
-
function We$
|
|
6150
|
-
return l === true || l === false || T$3(l) && N$2(l) == Ue;
|
|
6148
|
+
}), Ue$2 = "[object Boolean]";
|
|
6149
|
+
function We$1(l) {
|
|
6150
|
+
return l === true || l === false || T$3(l) && N$2(l) == Ue$2;
|
|
6151
6151
|
}
|
|
6152
6152
|
var P = De$1(function(l, e, t) {
|
|
6153
6153
|
Q$2(l, e, t);
|
|
@@ -6207,7 +6207,7 @@
|
|
|
6207
6207
|
}
|
|
6208
6208
|
if ("groupBy" in l && !l.groupBy.reference)
|
|
6209
6209
|
return p$2("Invalid Reference", l.key, "Grouped Reference reference is missing");
|
|
6210
|
-
}, Le$
|
|
6210
|
+
}, Le$1 = (l) => {
|
|
6211
6211
|
if (typeof l.key != "string" || l.key.length === 0)
|
|
6212
6212
|
throw new Error("Invalid Model: key must be a non-empty string");
|
|
6213
6213
|
if (typeof l.keyProperty < "u") {
|
|
@@ -6250,7 +6250,7 @@
|
|
|
6250
6250
|
description: `Referenced model ${s.model} does not exist`
|
|
6251
6251
|
}), "derive" in s && t.push(...He$1(s, l, e)), "resolve" in s && t.push(...Je$1(s, l, e)), "groupBy" in s && t.push(...Ye$1(s, l));
|
|
6252
6252
|
}), l.properties.forEach((s) => {
|
|
6253
|
-
"derive" in s && t.push(...
|
|
6253
|
+
"derive" in s && t.push(...Ze$1(s, l, e)), "expression" in s && t.push(...Xe$1(s, l));
|
|
6254
6254
|
}), t;
|
|
6255
6255
|
}, He$1 = (l, e, t) => {
|
|
6256
6256
|
const s = [], r = e.references.get(l.derive.localReference);
|
|
@@ -6304,7 +6304,7 @@
|
|
|
6304
6304
|
model: e.key,
|
|
6305
6305
|
description: `Resolved Reference ${l.groupBy.reference} does not exist in model ${e.key}`
|
|
6306
6306
|
}), t;
|
|
6307
|
-
},
|
|
6307
|
+
}, Ze$1 = (l, e, t) => {
|
|
6308
6308
|
const s = [], r = e.references.get(l.derive.localReference);
|
|
6309
6309
|
if (!r)
|
|
6310
6310
|
return s.push({
|
|
@@ -6331,7 +6331,7 @@
|
|
|
6331
6331
|
});
|
|
6332
6332
|
}
|
|
6333
6333
|
return s;
|
|
6334
|
-
},
|
|
6334
|
+
}, Xe$1 = (l, e) => {
|
|
6335
6335
|
const t = [];
|
|
6336
6336
|
return Fu(l.expression).variables.forEach((r) => {
|
|
6337
6337
|
r.name === "key" || r.name.endsWith(".key") || !e.properties.get(r.name) && !e.references.get(r.name) && t.push({
|
|
@@ -6344,14 +6344,14 @@
|
|
|
6344
6344
|
description: `Expression Variable ${r.name} not found in expression ${l.key} in ${e.key}`
|
|
6345
6345
|
});
|
|
6346
6346
|
}), t;
|
|
6347
|
-
}, k$
|
|
6347
|
+
}, k$3 = "::";
|
|
6348
6348
|
function et$1(l) {
|
|
6349
6349
|
return typeof l == "string" ? [l] : Array.isArray(l) ? l : [];
|
|
6350
6350
|
}
|
|
6351
|
-
function z(l, e, t = k$
|
|
6351
|
+
function z(l, e, t = k$3) {
|
|
6352
6352
|
return typeof e == "string" ? String(l[e]) : e.length === 1 ? String(l[e[0]]) : e.map((s) => String(l[s])).join(t);
|
|
6353
6353
|
}
|
|
6354
|
-
function tt$1(l, e = k$
|
|
6354
|
+
function tt$1(l, e = k$3) {
|
|
6355
6355
|
if (l !== void 0)
|
|
6356
6356
|
return typeof l == "string" ? l : l.join(e);
|
|
6357
6357
|
}
|
|
@@ -6362,7 +6362,7 @@
|
|
|
6362
6362
|
forceStrictDataType: false,
|
|
6363
6363
|
nullable: false,
|
|
6364
6364
|
validatorHandling: "loose"
|
|
6365
|
-
}, q$
|
|
6365
|
+
}, q$2 = {
|
|
6366
6366
|
enabled: true,
|
|
6367
6367
|
attributes: L$1
|
|
6368
6368
|
};
|
|
@@ -6385,7 +6385,7 @@
|
|
|
6385
6385
|
keyPropertySeparator;
|
|
6386
6386
|
valueMappings = [];
|
|
6387
6387
|
meta;
|
|
6388
|
-
qualityConfig = q$
|
|
6388
|
+
qualityConfig = q$2;
|
|
6389
6389
|
indicesController = new hu();
|
|
6390
6390
|
cdRef;
|
|
6391
6391
|
// #120 Performance optimization: Reverse index for grouped references
|
|
@@ -6393,7 +6393,7 @@
|
|
|
6393
6393
|
// Enables O(1) lookup instead of O(n·v²) nested loops
|
|
6394
6394
|
groupedRefReverseIndex = /* @__PURE__ */ new Map();
|
|
6395
6395
|
init(e) {
|
|
6396
|
-
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig = P({}, q$
|
|
6396
|
+
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig = P({}, q$2, e.quality));
|
|
6397
6397
|
}
|
|
6398
6398
|
applyPropertiesAndReferences(e) {
|
|
6399
6399
|
e.properties?.map((t) => {
|
|
@@ -6712,7 +6712,7 @@
|
|
|
6712
6712
|
}
|
|
6713
6713
|
processBooleanProperty(e, t, s) {
|
|
6714
6714
|
if (this.attributeQualityConfigs.get(e.key)?.forceStrictDataType) {
|
|
6715
|
-
if (!We$
|
|
6715
|
+
if (!We$1(t)) {
|
|
6716
6716
|
this.setError(this.getWrongDataTypeError(e, t, s));
|
|
6717
6717
|
return;
|
|
6718
6718
|
}
|
|
@@ -6837,7 +6837,7 @@
|
|
|
6837
6837
|
key: String(n.key)
|
|
6838
6838
|
};
|
|
6839
6839
|
else if (e.type === "set") {
|
|
6840
|
-
const d = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? k$
|
|
6840
|
+
const d = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? k$3, u = tt$1(d, c), f = String(n.key);
|
|
6841
6841
|
this.setError({
|
|
6842
6842
|
title: "Non Unique Key",
|
|
6843
6843
|
type: "model",
|
|
@@ -6964,9 +6964,9 @@
|
|
|
6964
6964
|
if (t === null)
|
|
6965
6965
|
return { key: "null" };
|
|
6966
6966
|
if (typeof t == "object") {
|
|
6967
|
-
const s = e.keyProperty, r = e.keyPropertySeparator ?? k$
|
|
6967
|
+
const s = e.keyProperty, r = e.keyPropertySeparator ?? k$3;
|
|
6968
6968
|
let i;
|
|
6969
|
-
e.autoGenerateKey ? i =
|
|
6969
|
+
e.autoGenerateKey ? i = Za() : typeof s == "string" || Array.isArray(s) && s.length > 0 ? i = z(t, s, r) : i = String(t.key), e.data.set(i, { key: i }), t.key = i;
|
|
6970
6970
|
const n = { model: e.key, data: [t] };
|
|
6971
6971
|
return setTimeout(() => {
|
|
6972
6972
|
e.addContainer(n);
|
|
@@ -7539,7 +7539,7 @@
|
|
|
7539
7539
|
}
|
|
7540
7540
|
}
|
|
7541
7541
|
};
|
|
7542
|
-
class it {
|
|
7542
|
+
let it$1 = class it {
|
|
7543
7543
|
changedAttributes;
|
|
7544
7544
|
// modelKey → Set<attributeKeys>
|
|
7545
7545
|
changedItems;
|
|
@@ -7734,8 +7734,8 @@
|
|
|
7734
7734
|
totalChangedAttributes: s
|
|
7735
7735
|
};
|
|
7736
7736
|
}
|
|
7737
|
-
}
|
|
7738
|
-
let nt$
|
|
7737
|
+
};
|
|
7738
|
+
let nt$1 = class nt {
|
|
7739
7739
|
metrics = [];
|
|
7740
7740
|
enabled = false;
|
|
7741
7741
|
constructor() {
|
|
@@ -7810,22 +7810,22 @@
|
|
|
7810
7810
|
return this.metrics.filter((s) => s.timestamp >= e && s.timestamp <= t);
|
|
7811
7811
|
}
|
|
7812
7812
|
};
|
|
7813
|
-
function ot(l) {
|
|
7813
|
+
function ot$2(l) {
|
|
7814
7814
|
return "query" in l;
|
|
7815
7815
|
}
|
|
7816
|
-
function M$
|
|
7816
|
+
function M$2(l) {
|
|
7817
7817
|
return "resolve" in l;
|
|
7818
7818
|
}
|
|
7819
|
-
function at(l) {
|
|
7819
|
+
function at$1(l) {
|
|
7820
7820
|
return "derive" in l;
|
|
7821
7821
|
}
|
|
7822
|
-
function lt(l) {
|
|
7822
|
+
function lt$1(l) {
|
|
7823
7823
|
return "groupBy" in l;
|
|
7824
7824
|
}
|
|
7825
|
-
var dt
|
|
7826
|
-
for (var r = ct(e, t), i = l.length - 1, n; i >= 0; i--)
|
|
7825
|
+
var dt = Object.defineProperty, ct$2 = Object.getOwnPropertyDescriptor, C$1 = (l, e, t, s) => {
|
|
7826
|
+
for (var r = ct$2(e, t), i = l.length - 1, n; i >= 0; i--)
|
|
7827
7827
|
(n = l[i]) && (r = n(e, t, r) || r);
|
|
7828
|
-
return r && dt
|
|
7828
|
+
return r && dt(e, t, r), r;
|
|
7829
7829
|
};
|
|
7830
7830
|
let E$2 = class E {
|
|
7831
7831
|
constructor(e, t, s) {
|
|
@@ -7841,8 +7841,8 @@
|
|
|
7841
7841
|
keyedContainers = /* @__PURE__ */ new WeakSet();
|
|
7842
7842
|
dependencyGraph;
|
|
7843
7843
|
attributeDependencyGraph;
|
|
7844
|
-
changeTracker = new it();
|
|
7845
|
-
partialUpdateMetrics = new nt$
|
|
7844
|
+
changeTracker = new it$1();
|
|
7845
|
+
partialUpdateMetrics = new nt$1();
|
|
7846
7846
|
views = /* @__PURE__ */ new Map();
|
|
7847
7847
|
models = /* @__PURE__ */ new Map();
|
|
7848
7848
|
initOptions;
|
|
@@ -7918,13 +7918,13 @@ Models cannot have circular references as this leads to unpredictable behavior d
|
|
|
7918
7918
|
this.attributeDependencyGraph.addAttribute(i);
|
|
7919
7919
|
}
|
|
7920
7920
|
}), e.references.forEach((s, r) => {
|
|
7921
|
-
if (ot(s))
|
|
7921
|
+
if (ot$2(s))
|
|
7922
7922
|
this.processQueryReference(t, r, s.query);
|
|
7923
|
-
else if (M$
|
|
7923
|
+
else if (M$2(s))
|
|
7924
7924
|
this.processResolvedReference(t, r, s.resolve);
|
|
7925
|
-
else if (at(s))
|
|
7925
|
+
else if (at$1(s))
|
|
7926
7926
|
this.processDerivedReference(t, r, s.derive);
|
|
7927
|
-
else if (lt(s))
|
|
7927
|
+
else if (lt$1(s))
|
|
7928
7928
|
this.processGroupedReference(t, r, s.groupBy);
|
|
7929
7929
|
else {
|
|
7930
7930
|
const i = {
|
|
@@ -8259,7 +8259,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8259
8259
|
addModel(e) {
|
|
8260
8260
|
if (e?.quality?.enabled !== false)
|
|
8261
8261
|
try {
|
|
8262
|
-
Le$
|
|
8262
|
+
Le$1(e);
|
|
8263
8263
|
} catch (t) {
|
|
8264
8264
|
this.qualityController.enabled && this.qualityController.setError({
|
|
8265
8265
|
title: "Invalid Model Definition",
|
|
@@ -8496,11 +8496,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8496
8496
|
if (c)
|
|
8497
8497
|
for (const u of c) {
|
|
8498
8498
|
const f = d.references.get(u);
|
|
8499
|
-
if (f && M$
|
|
8499
|
+
if (f && M$2(f)) {
|
|
8500
8500
|
const y2 = f.resolve.model, h2 = f.resolve.reference, R2 = this.models.get(y2);
|
|
8501
8501
|
if (R2) {
|
|
8502
8502
|
const m = R2.references.get(h2);
|
|
8503
|
-
m && M$
|
|
8503
|
+
m && M$2(m) && t.get(a).add(y2);
|
|
8504
8504
|
}
|
|
8505
8505
|
}
|
|
8506
8506
|
}
|
|
@@ -8535,7 +8535,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8535
8535
|
if (!o || o.size === 0) continue;
|
|
8536
8536
|
const a = this.models.get(i);
|
|
8537
8537
|
if (!a) continue;
|
|
8538
|
-
const d =
|
|
8538
|
+
const d = Za(), c = `dcupl:partial_process_data:step_${e}`;
|
|
8539
8539
|
if (this.cdRef.analyticsController.mark({
|
|
8540
8540
|
name: `${c}:start`,
|
|
8541
8541
|
context: d
|
|
@@ -8575,11 +8575,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8575
8575
|
return e.forEach((t) => {
|
|
8576
8576
|
if (this.keyedContainers.has(t))
|
|
8577
8577
|
return;
|
|
8578
|
-
const s = this.models.get(t.model), r = t.keyProperty ?? s?.keyProperty, i = t.keyPropertySeparator ?? s?.keyPropertySeparator ?? k$
|
|
8578
|
+
const s = this.models.get(t.model), r = t.keyProperty ?? s?.keyProperty, i = t.keyPropertySeparator ?? s?.keyPropertySeparator ?? k$3, n = t.autoGenerateKey || s?.autoGenerateKey;
|
|
8579
8579
|
(typeof r == "string" ? r !== "" && r !== "key" : Array.isArray(r) && r.length > 0) ? t.data.forEach((a) => {
|
|
8580
8580
|
a.key = z(a, r, i);
|
|
8581
8581
|
}) : n && t.data.forEach((a) => {
|
|
8582
|
-
a.key || (a.key =
|
|
8582
|
+
a.key || (a.key = Za());
|
|
8583
8583
|
}), this.keyedContainers.add(t);
|
|
8584
8584
|
}), e;
|
|
8585
8585
|
}
|
|
@@ -8590,7 +8590,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8590
8590
|
}
|
|
8591
8591
|
const t = this.initOptions.performance?.containerBatchSize, s = t !== void 0;
|
|
8592
8592
|
for (let r = 0; r < e.length; r++) {
|
|
8593
|
-
const i = e[r], n = this.models.get(i.model), o =
|
|
8593
|
+
const i = e[r], n = this.models.get(i.model), o = Za();
|
|
8594
8594
|
this.cdRef.analyticsController.mark({
|
|
8595
8595
|
name: "dcupl:process_data:step_1:start",
|
|
8596
8596
|
context: o
|
|
@@ -8608,7 +8608,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8608
8608
|
}), s ? t > 0 && r > 0 && r % t === 0 && await new Promise((a) => setTimeout(a, 0)) : await new Promise((a) => setTimeout(a, 0));
|
|
8609
8609
|
}
|
|
8610
8610
|
for (let r = 0; r < e.length; r++) {
|
|
8611
|
-
const i = e[r], n = this.models.get(i.model), o =
|
|
8611
|
+
const i = e[r], n = this.models.get(i.model), o = Za();
|
|
8612
8612
|
this.cdRef.analyticsController.mark({
|
|
8613
8613
|
name: "dcupl:process_data:step_2:start",
|
|
8614
8614
|
context: o
|
|
@@ -8626,7 +8626,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8626
8626
|
}), s ? t > 0 && r > 0 && r % t === 0 && await new Promise((a) => setTimeout(a, 0)) : await new Promise((a) => setTimeout(a, 0));
|
|
8627
8627
|
}
|
|
8628
8628
|
for (let r = 0; r < e.length; r++) {
|
|
8629
|
-
const i = e[r], n = this.models.get(i.model), o =
|
|
8629
|
+
const i = e[r], n = this.models.get(i.model), o = Za();
|
|
8630
8630
|
this.cdRef.analyticsController.mark({
|
|
8631
8631
|
name: "dcupl:process_data:step_3:start",
|
|
8632
8632
|
context: o
|
|
@@ -8649,7 +8649,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8649
8649
|
this.log.error("Model not found during data processing", void 0, { model: i.model, step: 4 });
|
|
8650
8650
|
continue;
|
|
8651
8651
|
}
|
|
8652
|
-
const o =
|
|
8652
|
+
const o = Za();
|
|
8653
8653
|
this.cdRef.analyticsController.mark({
|
|
8654
8654
|
name: "dcupl:process_data:step_4:start",
|
|
8655
8655
|
context: o
|
|
@@ -8714,21 +8714,21 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8714
8714
|
type: "dcupl_handle_datacontainer"
|
|
8715
8715
|
})
|
|
8716
8716
|
], E$2.prototype, "handleDataContainer");
|
|
8717
|
-
function q$
|
|
8717
|
+
function q$1(d, e) {
|
|
8718
8718
|
return z$2(e, function(t) {
|
|
8719
8719
|
return d[t];
|
|
8720
8720
|
});
|
|
8721
8721
|
}
|
|
8722
8722
|
function B$1(d) {
|
|
8723
|
-
return d == null ? [] : q$
|
|
8723
|
+
return d == null ? [] : q$1(d, le$1(d));
|
|
8724
8724
|
}
|
|
8725
8725
|
var W$1 = Math.max;
|
|
8726
8726
|
function Q$1(d, e, t, r) {
|
|
8727
|
-
d = F$
|
|
8727
|
+
d = F$1(d) ? d : B$1(d), t = t ? De$2(t) : 0;
|
|
8728
8728
|
var s = d.length;
|
|
8729
8729
|
return t < 0 && (t = W$1(s + t, 0)), xa(d) ? t <= s && d.indexOf(e, t) > -1 : !!s && on$1(d, e, t) > -1;
|
|
8730
8730
|
}
|
|
8731
|
-
var j$1 = Object.defineProperty, N$1 = Object.getOwnPropertyDescriptor, k$
|
|
8731
|
+
var j$1 = Object.defineProperty, N$1 = Object.getOwnPropertyDescriptor, k$2 = (d, e, t, r) => {
|
|
8732
8732
|
for (var s = N$1(e, t), o = d.length - 1, i; o >= 0; o--)
|
|
8733
8733
|
(i = d[o]) && (s = i(e, t, s) || s);
|
|
8734
8734
|
return s && j$1(e, t, s), s;
|
|
@@ -8778,7 +8778,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8778
8778
|
// }
|
|
8779
8779
|
// @trigger({ scope: 'global', name: 'list:create', type: 'list_created' })
|
|
8780
8780
|
init(e) {
|
|
8781
|
-
this.options = M$
|
|
8781
|
+
this.options = M$3(e), this.key = this.options.listKey, this.modelKey = this.options.modelKey, this.setup(this.options);
|
|
8782
8782
|
}
|
|
8783
8783
|
initFromItemKeys(e, t) {
|
|
8784
8784
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -8805,14 +8805,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8805
8805
|
return this.cdRef.on(e);
|
|
8806
8806
|
}
|
|
8807
8807
|
};
|
|
8808
|
-
k$
|
|
8808
|
+
k$2([
|
|
8809
8809
|
Eu({
|
|
8810
8810
|
scope: "list",
|
|
8811
8811
|
type: "list_destroyed",
|
|
8812
8812
|
connectMessage: true
|
|
8813
8813
|
})
|
|
8814
8814
|
], E$1.prototype, "_destroy");
|
|
8815
|
-
k$
|
|
8815
|
+
k$2([
|
|
8816
8816
|
Eu({
|
|
8817
8817
|
scope: "list",
|
|
8818
8818
|
type: "list_updated",
|
|
@@ -8820,10 +8820,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8820
8820
|
connectMessage: true
|
|
8821
8821
|
})
|
|
8822
8822
|
], E$1.prototype, "update");
|
|
8823
|
-
var Z = Object.defineProperty, H
|
|
8824
|
-
for (var s = H
|
|
8823
|
+
var Z$2 = Object.defineProperty, H = Object.getOwnPropertyDescriptor, J$1 = (d, e, t, r) => {
|
|
8824
|
+
for (var s = H(e, t), o = d.length - 1, i; o >= 0; o--)
|
|
8825
8825
|
(i = d[o]) && (s = i(e, t, s) || s);
|
|
8826
|
-
return s && Z(e, t, s), s;
|
|
8826
|
+
return s && Z$2(e, t, s), s;
|
|
8827
8827
|
};
|
|
8828
8828
|
class C {
|
|
8829
8829
|
constructor(e, t) {
|
|
@@ -8846,7 +8846,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8846
8846
|
} else e.modelKey && (this.lists = this.lists.filter((t) => t.modelKey === e.modelKey ? (t._destroy(), false) : true));
|
|
8847
8847
|
}
|
|
8848
8848
|
create(e) {
|
|
8849
|
-
e.listKey = e.listKey ||
|
|
8849
|
+
e.listKey = e.listKey || Za();
|
|
8850
8850
|
const t = new Iu();
|
|
8851
8851
|
t._init({
|
|
8852
8852
|
cdRefKey: e.listKey,
|
|
@@ -8865,7 +8865,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8865
8865
|
connectMessage: true
|
|
8866
8866
|
})
|
|
8867
8867
|
], C.prototype, "create");
|
|
8868
|
-
let
|
|
8868
|
+
let Y$2 = class Y {
|
|
8869
8869
|
constructor(e) {
|
|
8870
8870
|
this.scriptsController = e;
|
|
8871
8871
|
}
|
|
@@ -8930,7 +8930,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8930
8930
|
errorType: e.errorType,
|
|
8931
8931
|
type: e.type,
|
|
8932
8932
|
count: 0
|
|
8933
|
-
}, this.errorCounts.set(t, r)), r.count += 1, !(r.count > this.maxErrorsPerGroup) && (e.key || (e.key =
|
|
8933
|
+
}, this.errorCounts.set(t, r)), r.count += 1, !(r.count > this.maxErrorsPerGroup) && (e.key || (e.key = Za()), this.errors.set(e.key, e));
|
|
8934
8934
|
}
|
|
8935
8935
|
getErrorCounts() {
|
|
8936
8936
|
return Array.from(this.errorCounts.values()).map(({ model: e, attribute: t, errorType: r, count: s }) => ({
|
|
@@ -9572,20 +9572,20 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9572
9572
|
}
|
|
9573
9573
|
}
|
|
9574
9574
|
};
|
|
9575
|
-
var
|
|
9575
|
+
var X$1 = Object.defineProperty, ee$1 = Object.getOwnPropertyDescriptor, h = (d, e, t, r) => {
|
|
9576
9576
|
for (var s = ee$1(e, t), o = d.length - 1, i; o >= 0; o--)
|
|
9577
9577
|
(i = d[o]) && (s = i(e, t, s) || s);
|
|
9578
|
-
return s &&
|
|
9578
|
+
return s && X$1(e, t, s), s;
|
|
9579
9579
|
};
|
|
9580
9580
|
let p$1 = class p {
|
|
9581
9581
|
cdRef = new Iu();
|
|
9582
9582
|
analyticsController = new Cu();
|
|
9583
9583
|
containerSourceMetadata = /* @__PURE__ */ new WeakMap();
|
|
9584
9584
|
scriptController = new Pu();
|
|
9585
|
-
qualityController = new
|
|
9585
|
+
qualityController = new Y$2(this.scriptController);
|
|
9586
9586
|
log = Wa.child({ prefix: "Dcupl" });
|
|
9587
9587
|
modelParser = new E$2(this.cdRef, this.qualityController, this);
|
|
9588
|
-
globalItemService = new
|
|
9588
|
+
globalItemService = new K$2(this.modelParser, this.scriptController);
|
|
9589
9589
|
cacheCtrl = new Du(false);
|
|
9590
9590
|
queryManager = new Ku(
|
|
9591
9591
|
this.scriptController,
|
|
@@ -9964,7 +9964,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9964
9964
|
return this.getFnList({ modelKey: e?.modelKey }).catalog.query.execute(e);
|
|
9965
9965
|
}
|
|
9966
9966
|
addLoader(e, t) {
|
|
9967
|
-
const r =
|
|
9967
|
+
const r = J$2.now(), s = t || Za();
|
|
9968
9968
|
this._loaders.set(s, e), e.core = this, e.key = s;
|
|
9969
9969
|
const o = new Iu();
|
|
9970
9970
|
o._init({
|
|
@@ -10905,6 +10905,31 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
10905
10905
|
function cloneDeep(value) {
|
|
10906
10906
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
10907
10907
|
}
|
|
10908
|
+
function K$1(n) {
|
|
10909
|
+
const e = k$1(n);
|
|
10910
|
+
return Z$1(e);
|
|
10911
|
+
}
|
|
10912
|
+
function k$1(n) {
|
|
10913
|
+
if (typeof n != "object" || n === null)
|
|
10914
|
+
return String(n);
|
|
10915
|
+
if (Array.isArray(n))
|
|
10916
|
+
return "[" + n.map(k$1).join(",") + "]";
|
|
10917
|
+
const e = Object.keys(n).sort();
|
|
10918
|
+
let t = "{";
|
|
10919
|
+
for (let r = 0; r < e.length; r++) {
|
|
10920
|
+
const s = e[r];
|
|
10921
|
+
t += s + ":" + k$1(n[s]), r < e.length - 1 && (t += ",");
|
|
10922
|
+
}
|
|
10923
|
+
return t += "}", t;
|
|
10924
|
+
}
|
|
10925
|
+
function Z$1(n) {
|
|
10926
|
+
let e = 0;
|
|
10927
|
+
for (let t = 0; t < n.length; t++) {
|
|
10928
|
+
const r = n.charCodeAt(t);
|
|
10929
|
+
e = (e << 5) - e + r, e |= 0;
|
|
10930
|
+
}
|
|
10931
|
+
return e.toString(16);
|
|
10932
|
+
}
|
|
10908
10933
|
const b = {
|
|
10909
10934
|
now: () => typeof performance < "u" && performance.now ? performance.now() : (/* @__PURE__ */ new Date()).getTime(),
|
|
10910
10935
|
mark: (n) => {
|
|
@@ -10922,7 +10947,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
10922
10947
|
return performance.getEntriesByType(n);
|
|
10923
10948
|
}
|
|
10924
10949
|
};
|
|
10925
|
-
const q
|
|
10950
|
+
const q = {
|
|
10926
10951
|
silent: 0,
|
|
10927
10952
|
error: 1,
|
|
10928
10953
|
warn: 2,
|
|
@@ -10985,23 +11010,23 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
10985
11010
|
}
|
|
10986
11011
|
shouldLog(e) {
|
|
10987
11012
|
const t = this.getEffectiveLevel();
|
|
10988
|
-
return q
|
|
11013
|
+
return q[e] <= q[t];
|
|
10989
11014
|
}
|
|
10990
11015
|
formatMessage(e) {
|
|
10991
11016
|
if (this.config.format === "json") {
|
|
10992
|
-
const
|
|
11017
|
+
const o = {
|
|
10993
11018
|
timestamp: new Date(e.timestamp).toISOString(),
|
|
10994
11019
|
level: e.level,
|
|
10995
11020
|
message: e.message
|
|
10996
11021
|
};
|
|
10997
|
-
return e.prefix && (
|
|
11022
|
+
return e.prefix && (o.module = e.prefix), e.context && (o.context = e.context), e.error && (o.error = {
|
|
10998
11023
|
name: e.error.name,
|
|
10999
11024
|
message: e.error.message,
|
|
11000
11025
|
stack: e.error.stack
|
|
11001
|
-
}), JSON.stringify(
|
|
11026
|
+
}), JSON.stringify(o);
|
|
11002
11027
|
}
|
|
11003
|
-
const t = new Date(e.timestamp).toISOString().substring(11, 23), r = e.prefix ? `[${e.prefix}]` : "", s = this.getLevelIcon(e.level),
|
|
11004
|
-
return `${t} ${s} ${r} ${e.message}${
|
|
11028
|
+
const t = new Date(e.timestamp).toISOString().substring(11, 23), r = e.prefix ? `[${e.prefix}]` : "", s = this.getLevelIcon(e.level), i = e.context ? ` ${JSON.stringify(e.context)}` : "";
|
|
11029
|
+
return `${t} ${s} ${r} ${e.message}${i}`.trim();
|
|
11005
11030
|
}
|
|
11006
11031
|
getLevelIcon(e) {
|
|
11007
11032
|
switch (e) {
|
|
@@ -11020,7 +11045,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11020
11045
|
log(e, t, r, s) {
|
|
11021
11046
|
if (!this.shouldLog(e))
|
|
11022
11047
|
return;
|
|
11023
|
-
const
|
|
11048
|
+
const i = {
|
|
11024
11049
|
level: e,
|
|
11025
11050
|
message: t,
|
|
11026
11051
|
timestamp: Date.now(),
|
|
@@ -11029,31 +11054,31 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11029
11054
|
error: s
|
|
11030
11055
|
};
|
|
11031
11056
|
if (this.config.onLog) {
|
|
11032
|
-
this.config.onLog(
|
|
11057
|
+
this.config.onLog(i);
|
|
11033
11058
|
return;
|
|
11034
11059
|
}
|
|
11035
|
-
const
|
|
11060
|
+
const o = this.formatMessage(i);
|
|
11036
11061
|
if (typeof console < "u")
|
|
11037
11062
|
switch (e) {
|
|
11038
11063
|
case "error":
|
|
11039
|
-
s ? console.error(
|
|
11064
|
+
s ? console.error(o, s) : console.error(o);
|
|
11040
11065
|
break;
|
|
11041
11066
|
case "warn":
|
|
11042
|
-
console.warn(
|
|
11067
|
+
console.warn(o);
|
|
11043
11068
|
break;
|
|
11044
11069
|
case "debug":
|
|
11045
|
-
console.debug ? console.debug(
|
|
11070
|
+
console.debug ? console.debug(o) : console.log(o);
|
|
11046
11071
|
break;
|
|
11047
11072
|
default:
|
|
11048
|
-
console.log(
|
|
11073
|
+
console.log(o);
|
|
11049
11074
|
}
|
|
11050
11075
|
}
|
|
11051
11076
|
/**
|
|
11052
11077
|
* Log an error message
|
|
11053
11078
|
*/
|
|
11054
11079
|
error(e, t, r) {
|
|
11055
|
-
const s = t instanceof Error ? t : void 0,
|
|
11056
|
-
this.log("error", e,
|
|
11080
|
+
const s = t instanceof Error ? t : void 0, i = t instanceof Error ? r : t;
|
|
11081
|
+
this.log("error", e, i, s);
|
|
11057
11082
|
}
|
|
11058
11083
|
/**
|
|
11059
11084
|
* Log and track an error (integrates with QualityController)
|
|
@@ -11122,13 +11147,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11122
11147
|
}
|
|
11123
11148
|
}
|
|
11124
11149
|
const Y$1 = new p();
|
|
11125
|
-
function
|
|
11150
|
+
function ee(n = 10) {
|
|
11126
11151
|
let e = "";
|
|
11127
11152
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
11128
11153
|
for (let r = 0; r < n; r++) e += t.charAt(Math.floor(Math.random() * t.length));
|
|
11129
11154
|
return e;
|
|
11130
11155
|
}
|
|
11131
|
-
let
|
|
11156
|
+
let Ue$1 = class Ue {
|
|
11132
11157
|
key;
|
|
11133
11158
|
parentCd;
|
|
11134
11159
|
dcuplInitOptions;
|
|
@@ -11164,17 +11189,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11164
11189
|
};
|
|
11165
11190
|
}
|
|
11166
11191
|
};
|
|
11167
|
-
const j = (n, e) => e ? typeof structuredClone < "u" ? structuredClone(n) : cloneDeep(n) : n,
|
|
11192
|
+
const j = (n, e) => e ? typeof structuredClone < "u" ? structuredClone(n) : cloneDeep(n) : n, R$1 = (n, e, t, r, s, i) => {
|
|
11168
11193
|
try {
|
|
11169
|
-
const
|
|
11194
|
+
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = j(i, o);
|
|
11170
11195
|
if (t.scope === "list" && (t.listKey = n.cdRef?.key || n.key, t.modelKey = n.model?.key || n.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
|
|
11171
11196
|
return a;
|
|
11172
11197
|
const u = b.now(), c = u - r, f = Math.round(c * 1e3) / 1e3;
|
|
11173
11198
|
t.duration = f, t.start = r, t.end = u;
|
|
11174
|
-
const
|
|
11199
|
+
const l = {
|
|
11175
11200
|
duration: t.duration
|
|
11176
11201
|
};
|
|
11177
|
-
return t.modelKey && (
|
|
11202
|
+
return t.modelKey && (l.model = t.modelKey), t.connectMessageResult && (t.result = a), t.args && (l.args = t.args), e?.trigger(t), e.analyticsController.mark({
|
|
11178
11203
|
name: `${t.type}:end`,
|
|
11179
11204
|
context: s
|
|
11180
11205
|
}), e.analyticsController.measure({
|
|
@@ -11182,29 +11207,54 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11182
11207
|
start: `${t.type}:start`,
|
|
11183
11208
|
end: `${t.type}:end`,
|
|
11184
11209
|
context: s,
|
|
11185
|
-
detail:
|
|
11210
|
+
detail: l
|
|
11186
11211
|
}), a;
|
|
11187
11212
|
} catch {
|
|
11188
|
-
return
|
|
11213
|
+
return i;
|
|
11189
11214
|
}
|
|
11190
|
-
},
|
|
11191
|
-
const
|
|
11192
|
-
return s.value = function(...
|
|
11215
|
+
}, Ve$1 = (n) => (t, r, s) => {
|
|
11216
|
+
const i = s.value;
|
|
11217
|
+
return s.value = function(...o) {
|
|
11193
11218
|
const a = b.now(), u = this.cdRef, c = j(n, true);
|
|
11194
11219
|
c.key || (u.increaseCounter(), c.key = u.getCounter());
|
|
11195
|
-
const f =
|
|
11220
|
+
const f = ee();
|
|
11196
11221
|
u.analyticsController.mark({
|
|
11197
11222
|
name: `${c.type}:start`,
|
|
11198
11223
|
context: f
|
|
11199
11224
|
});
|
|
11200
|
-
const
|
|
11201
|
-
!c.originCdRefKey && u.key && (c.originCdRefKey = u.key),
|
|
11202
|
-
const
|
|
11203
|
-
return c.method = r, c.args =
|
|
11225
|
+
const l = this.model?.key;
|
|
11226
|
+
!c.originCdRefKey && u.key && (c.originCdRefKey = u.key), l && (c.modelKey = l);
|
|
11227
|
+
const d = i.apply(this, o);
|
|
11228
|
+
return c.method = r, c.args = o, d && typeof d == "object" && "then" in d ? d.then((h2) => R$1(this, u, c, a, f, h2)) : R$1(this, u, c, a, f, d);
|
|
11204
11229
|
}, s;
|
|
11205
11230
|
};
|
|
11206
|
-
const
|
|
11207
|
-
|
|
11231
|
+
const Oe$1 = "k:", qe$1 = "h:";
|
|
11232
|
+
function M$1(n, e = 0) {
|
|
11233
|
+
if (n.key)
|
|
11234
|
+
return `${Oe$1}${n.key}`;
|
|
11235
|
+
const t = K$1({
|
|
11236
|
+
type: n.type,
|
|
11237
|
+
url: n.rawUrl ?? n.url,
|
|
11238
|
+
model: n.model ?? "",
|
|
11239
|
+
occurrence: e
|
|
11240
|
+
});
|
|
11241
|
+
return `${qe$1}${t}`;
|
|
11242
|
+
}
|
|
11243
|
+
function ot$1(n) {
|
|
11244
|
+
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
|
|
11245
|
+
return n.map((r) => {
|
|
11246
|
+
const s = `${r.key ?? ""}|${r.type}|${r.rawUrl ?? r.url}|${r.model ?? ""}`;
|
|
11247
|
+
let i = e.get(s) ?? 0, o = M$1(r, i);
|
|
11248
|
+
for (; t.has(o); )
|
|
11249
|
+
i += 1, o = r.key ? `${M$1(r)}#${i}` : M$1(r, i);
|
|
11250
|
+
return e.set(s, i + 1), t.add(o), o;
|
|
11251
|
+
});
|
|
11252
|
+
}
|
|
11253
|
+
const ut$1 = (n, e) => n ? (e || (e = {}), n.replace(/\$\{(.*?)\}/g, (t, r) => get(e, r.trim(), ""))) : "", ct$1 = (n) => {
|
|
11254
|
+
const e = /* @__PURE__ */ new Set();
|
|
11255
|
+
return n.replace(/\$\{(.*?)\}/g, (r, s) => (e.add(s.trim()), "")), { variables: Array.from(e).map((r) => ({ name: r })) };
|
|
11256
|
+
};
|
|
11257
|
+
let Be = class {
|
|
11208
11258
|
log = Y$1.child({ prefix: "DcuplCsvParser" });
|
|
11209
11259
|
parse(e, r = {}) {
|
|
11210
11260
|
const {
|
|
@@ -11215,21 +11265,21 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11215
11265
|
header: c = true,
|
|
11216
11266
|
skipEmptyLines: i = true,
|
|
11217
11267
|
transformHeader: u,
|
|
11218
|
-
transform:
|
|
11219
|
-
} = r, y2 = [],
|
|
11220
|
-
let
|
|
11268
|
+
transform: g2
|
|
11269
|
+
} = r, y2 = [], m = c ? [] : null;
|
|
11270
|
+
let d = e.length, f = [], l = "", b2 = false, C2 = true, h2 = 0;
|
|
11221
11271
|
if (i) {
|
|
11222
|
-
for (;
|
|
11223
|
-
` || e[
|
|
11224
|
-
|
|
11225
|
-
e = e.slice(
|
|
11272
|
+
for (; h2 < d && (e[h2] === `
|
|
11273
|
+
` || e[h2] === "\r" || e[h2] === "" || e[h2] === "'" || e[h2] === '"'); )
|
|
11274
|
+
h2++;
|
|
11275
|
+
e = e.slice(h2), d = e.length, h2 = 0;
|
|
11226
11276
|
}
|
|
11227
11277
|
const P2 = r.delimiter || this.detectDelimiter(e);
|
|
11228
|
-
for (;
|
|
11229
|
-
const p2 = e[
|
|
11278
|
+
for (; h2 < d; h2++) {
|
|
11279
|
+
const p2 = e[h2], _2 = e[h2 + 1];
|
|
11230
11280
|
if (s && p2 === s && !b2 && l.length === 0) {
|
|
11231
|
-
for (;
|
|
11232
|
-
`; )
|
|
11281
|
+
for (; h2 < d && e[h2] !== `
|
|
11282
|
+
`; ) h2++;
|
|
11233
11283
|
continue;
|
|
11234
11284
|
}
|
|
11235
11285
|
if (p2 === `
|
|
@@ -11238,21 +11288,21 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11238
11288
|
if (b2)
|
|
11239
11289
|
l += p2;
|
|
11240
11290
|
else {
|
|
11241
|
-
(l.length > 0 || !i) &&
|
|
11291
|
+
(l.length > 0 || !i) && f.push(l), C2 && m ? f.forEach((I) => m.push(u ? u(I) : I)) : m ? y2.push(this.buildObjectRow(m, f, o, g2)) : y2.push([...f]), f = [], l = "", C2 = false, h2 += p2 === "\r" && _2 === `
|
|
11242
11292
|
` ? 1 : 0;
|
|
11243
11293
|
continue;
|
|
11244
11294
|
}
|
|
11245
11295
|
else if (p2 === P2 && !b2)
|
|
11246
|
-
|
|
11296
|
+
f.push(l), l = "";
|
|
11247
11297
|
else if (p2 === n)
|
|
11248
|
-
b2 ? _2 === a ? (l += n,
|
|
11298
|
+
b2 ? _2 === a ? (l += n, h2++) : b2 = false : l.length === 0 ? b2 = true : l += p2;
|
|
11249
11299
|
else if ((b2 || l.length === 0) && (p2 === "{" || p2 === "[")) {
|
|
11250
|
-
const
|
|
11251
|
-
l +=
|
|
11300
|
+
const I = this.extractJson(e, h2, P2);
|
|
11301
|
+
l += I.value, h2 += I.length - 1;
|
|
11252
11302
|
} else
|
|
11253
11303
|
l += p2;
|
|
11254
11304
|
}
|
|
11255
|
-
return (l.length > 0 || !i) &&
|
|
11305
|
+
return (l.length > 0 || !i) && f.push(l), f.length && (C2 && m ? f.forEach((p2) => m.push(u ? u(p2) : p2)) : m ? y2.push(this.buildObjectRow(m, f, o, g2)) : y2.push([...f])), y2;
|
|
11256
11306
|
}
|
|
11257
11307
|
// Builds an object from a row array based on headers
|
|
11258
11308
|
buildObjectRow(e, r, n, a) {
|
|
@@ -11311,10 +11361,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11311
11361
|
return { value: e.slice(r, s), length: s - r };
|
|
11312
11362
|
}
|
|
11313
11363
|
};
|
|
11314
|
-
function
|
|
11364
|
+
function ye(t, e = ",") {
|
|
11315
11365
|
return t && typeof t == "string" ? t.split(e).map((r) => r.trim()) : [];
|
|
11316
11366
|
}
|
|
11317
|
-
class
|
|
11367
|
+
class wt {
|
|
11318
11368
|
loader;
|
|
11319
11369
|
log = Y$1.child({ prefix: "CsvParser" });
|
|
11320
11370
|
constructor(e) {
|
|
@@ -11323,14 +11373,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11323
11373
|
getParserConfig(e, r, n, a) {
|
|
11324
11374
|
const s = this.loader.config.get()?.options, o = this.loader.options, c = this.log, i = {};
|
|
11325
11375
|
typeof r?.csvParserOptions?.quoteChar < "u" ? i.quoteChar = r?.csvParserOptions?.quoteChar : typeof s?.csvParserOptions?.quoteChar < "u" ? i.quoteChar = s?.csvParserOptions?.quoteChar : i.quoteChar = o.csvParserOptions?.quoteChar, typeof r?.csvParserOptions?.delimiter < "u" ? i.delimiter = r?.csvParserOptions?.delimiter : typeof s?.csvParserOptions?.delimiter < "u" ? i.delimiter = s?.csvParserOptions?.delimiter : i.delimiter = o.csvParserOptions?.delimiter, typeof r?.csvParserOptions?.escapeChar < "u" ? i.escapeChar = r?.csvParserOptions?.escapeChar : typeof s?.csvParserOptions?.escapeChar < "u" ? i.escapeChar = s?.csvParserOptions?.escapeChar : i.escapeChar = o.csvParserOptions?.escapeChar, typeof r?.csvParserOptions?.commentChar < "u" ? i.commentChar = r?.csvParserOptions?.commentChar : typeof s?.csvParserOptions?.commentChar < "u" ? i.commentChar = s?.csvParserOptions?.commentChar : i.commentChar = o.csvParserOptions?.commentChar;
|
|
11326
|
-
const u = /* @__PURE__ */ new Map(),
|
|
11376
|
+
const u = /* @__PURE__ */ new Map(), g2 = /* @__PURE__ */ new Map();
|
|
11327
11377
|
if (e.references)
|
|
11328
11378
|
for (const l of e.references)
|
|
11329
11379
|
u.set(l.key, l), l.origin && u.set(l.origin, l);
|
|
11330
11380
|
if (e.properties)
|
|
11331
11381
|
for (const l of e.properties)
|
|
11332
|
-
|
|
11333
|
-
const y2 = r?.keyProperty ?? e.keyProperty ?? "key",
|
|
11382
|
+
g2.set(l.key, l), l.origin && g2.set(l.origin, l);
|
|
11383
|
+
const y2 = r?.keyProperty ?? e.keyProperty ?? "key", m = Array.isArray(y2) ? y2 : [y2], d = new Set(m);
|
|
11334
11384
|
return {
|
|
11335
11385
|
delimiter: i?.delimiter,
|
|
11336
11386
|
quoteChar: i?.quoteChar,
|
|
@@ -11344,7 +11394,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11344
11394
|
return n && b2 && n.push(b2), b2;
|
|
11345
11395
|
},
|
|
11346
11396
|
transform: function(l, b2) {
|
|
11347
|
-
if (typeof b2 > "u" ||
|
|
11397
|
+
if (typeof b2 > "u" || d.has(b2))
|
|
11348
11398
|
return l;
|
|
11349
11399
|
if (l === "null")
|
|
11350
11400
|
return null;
|
|
@@ -11355,8 +11405,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11355
11405
|
return;
|
|
11356
11406
|
const _2 = a[b2];
|
|
11357
11407
|
_2 ? _2.count += 1 : a[b2] = { rawValue: l, expected: p2, count: 1 };
|
|
11358
|
-
},
|
|
11359
|
-
if (
|
|
11408
|
+
}, h2 = u.get(b2);
|
|
11409
|
+
if (h2)
|
|
11360
11410
|
if (l[0] === "{" || l[0] === "[")
|
|
11361
11411
|
try {
|
|
11362
11412
|
return JSON.parse(l);
|
|
@@ -11364,8 +11414,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11364
11414
|
c.error("Failed to parse JSON in CSV reference field", p2, { header: b2, value: l });
|
|
11365
11415
|
return;
|
|
11366
11416
|
}
|
|
11367
|
-
else return
|
|
11368
|
-
const P2 =
|
|
11417
|
+
else return h2.type === "singleValued" ? l : l?.length > 0 && h2.type === "multiValued" ? ye(l, h2?.separator) : l;
|
|
11418
|
+
const P2 = g2.get(b2);
|
|
11369
11419
|
if (!(!e.autoGenerateProperties && !P2))
|
|
11370
11420
|
switch (P2?.type) {
|
|
11371
11421
|
case "string":
|
|
@@ -11410,7 +11460,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11410
11460
|
return;
|
|
11411
11461
|
}
|
|
11412
11462
|
if (l && typeof l == "string")
|
|
11413
|
-
return
|
|
11463
|
+
return ye(l, P2?.separator);
|
|
11414
11464
|
C2(P2.type);
|
|
11415
11465
|
return;
|
|
11416
11466
|
default:
|
|
@@ -11425,66 +11475,80 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11425
11475
|
getJsonFromCSVStringWithMetadata(e, r, n) {
|
|
11426
11476
|
const a = [], s = {}, o = this.getParserConfig(r, n.options, a, s);
|
|
11427
11477
|
return {
|
|
11428
|
-
data: new
|
|
11478
|
+
data: new Be().parse(e, o),
|
|
11429
11479
|
sourceColumns: a,
|
|
11430
11480
|
coercionFailureSamples: s
|
|
11431
11481
|
};
|
|
11432
11482
|
}
|
|
11433
11483
|
}
|
|
11434
|
-
var
|
|
11435
|
-
function
|
|
11436
|
-
var e =
|
|
11484
|
+
var ze = typeof global == "object" && global && global.Object === Object && global, Ct = typeof self == "object" && self && self.Object === Object && self, A = ze || Ct || Function("return this")(), E = A.Symbol, qe = Object.prototype, Pt = qe.hasOwnProperty, jt = qe.toString, N = E ? E.toStringTag : void 0;
|
|
11485
|
+
function _t(t) {
|
|
11486
|
+
var e = Pt.call(t, N), r = t[N];
|
|
11437
11487
|
try {
|
|
11438
|
-
t[
|
|
11488
|
+
t[N] = void 0;
|
|
11439
11489
|
var n = true;
|
|
11440
11490
|
} catch {
|
|
11441
11491
|
}
|
|
11442
|
-
var a =
|
|
11443
|
-
return n && (e ? t[
|
|
11492
|
+
var a = jt.call(t);
|
|
11493
|
+
return n && (e ? t[N] = r : delete t[N]), a;
|
|
11444
11494
|
}
|
|
11445
|
-
var
|
|
11446
|
-
function
|
|
11447
|
-
return
|
|
11495
|
+
var At = Object.prototype, St = At.toString;
|
|
11496
|
+
function Ot(t) {
|
|
11497
|
+
return St.call(t);
|
|
11448
11498
|
}
|
|
11449
|
-
var
|
|
11450
|
-
function
|
|
11451
|
-
return t == null ? t === void 0 ?
|
|
11499
|
+
var $t = "[object Null]", Et = "[object Undefined]", me = E ? E.toStringTag : void 0;
|
|
11500
|
+
function M(t) {
|
|
11501
|
+
return t == null ? t === void 0 ? Et : $t : me && me in Object(t) ? _t(t) : Ot(t);
|
|
11452
11502
|
}
|
|
11453
|
-
function
|
|
11503
|
+
function k(t) {
|
|
11454
11504
|
return t != null && typeof t == "object";
|
|
11455
11505
|
}
|
|
11456
|
-
|
|
11506
|
+
var It = "[object Symbol]";
|
|
11507
|
+
function le(t) {
|
|
11508
|
+
return typeof t == "symbol" || k(t) && M(t) == It;
|
|
11509
|
+
}
|
|
11510
|
+
function Je(t, e) {
|
|
11457
11511
|
for (var r = -1, n = t == null ? 0 : t.length, a = Array(n); ++r < n; )
|
|
11458
11512
|
a[r] = e(t[r], r, t);
|
|
11459
11513
|
return a;
|
|
11460
11514
|
}
|
|
11461
|
-
var
|
|
11462
|
-
function
|
|
11515
|
+
var D = Array.isArray, be = E ? E.prototype : void 0, ve = be ? be.toString : void 0;
|
|
11516
|
+
function Qe(t) {
|
|
11517
|
+
if (typeof t == "string")
|
|
11518
|
+
return t;
|
|
11519
|
+
if (D(t))
|
|
11520
|
+
return Je(t, Qe) + "";
|
|
11521
|
+
if (le(t))
|
|
11522
|
+
return ve ? ve.call(t) : "";
|
|
11523
|
+
var e = t + "";
|
|
11524
|
+
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
11525
|
+
}
|
|
11526
|
+
function X(t) {
|
|
11463
11527
|
var e = typeof t;
|
|
11464
11528
|
return t != null && (e == "object" || e == "function");
|
|
11465
11529
|
}
|
|
11466
|
-
function
|
|
11530
|
+
function We(t) {
|
|
11467
11531
|
return t;
|
|
11468
11532
|
}
|
|
11469
|
-
var
|
|
11470
|
-
function
|
|
11471
|
-
if (!
|
|
11533
|
+
var xt = "[object AsyncFunction]", kt = "[object Function]", Ft = "[object GeneratorFunction]", Vt = "[object Proxy]";
|
|
11534
|
+
function Xe(t) {
|
|
11535
|
+
if (!X(t))
|
|
11472
11536
|
return false;
|
|
11473
|
-
var e =
|
|
11474
|
-
return e ==
|
|
11537
|
+
var e = M(t);
|
|
11538
|
+
return e == kt || e == Ft || e == xt || e == Vt;
|
|
11475
11539
|
}
|
|
11476
|
-
var
|
|
11477
|
-
var t = /[^.]+$/.exec(
|
|
11540
|
+
var te = A["__core-js_shared__"], Te = (function() {
|
|
11541
|
+
var t = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "");
|
|
11478
11542
|
return t ? "Symbol(src)_1." + t : "";
|
|
11479
11543
|
})();
|
|
11480
|
-
function
|
|
11481
|
-
return !!
|
|
11544
|
+
function Rt(t) {
|
|
11545
|
+
return !!Te && Te in t;
|
|
11482
11546
|
}
|
|
11483
|
-
var
|
|
11484
|
-
function
|
|
11547
|
+
var Mt = Function.prototype, Dt = Mt.toString;
|
|
11548
|
+
function F(t) {
|
|
11485
11549
|
if (t != null) {
|
|
11486
11550
|
try {
|
|
11487
|
-
return
|
|
11551
|
+
return Dt.call(t);
|
|
11488
11552
|
} catch {
|
|
11489
11553
|
}
|
|
11490
11554
|
try {
|
|
@@ -11494,36 +11558,36 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11494
11558
|
}
|
|
11495
11559
|
return "";
|
|
11496
11560
|
}
|
|
11497
|
-
var
|
|
11498
|
-
"^" +
|
|
11561
|
+
var Ut = /[\\^$.*+?()[\]{}|]/g, Ht = /^\[object .+?Constructor\]$/, Nt = Function.prototype, Lt = Object.prototype, Kt = Nt.toString, Gt = Lt.hasOwnProperty, Bt = RegExp(
|
|
11562
|
+
"^" + Kt.call(Gt).replace(Ut, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11499
11563
|
);
|
|
11500
|
-
function
|
|
11501
|
-
if (!
|
|
11564
|
+
function zt(t) {
|
|
11565
|
+
if (!X(t) || Rt(t))
|
|
11502
11566
|
return false;
|
|
11503
|
-
var e =
|
|
11504
|
-
return e.test(
|
|
11567
|
+
var e = Xe(t) ? Bt : Ht;
|
|
11568
|
+
return e.test(F(t));
|
|
11505
11569
|
}
|
|
11506
|
-
function
|
|
11570
|
+
function qt(t, e) {
|
|
11507
11571
|
return t?.[e];
|
|
11508
11572
|
}
|
|
11509
|
-
function
|
|
11510
|
-
var r =
|
|
11511
|
-
return
|
|
11573
|
+
function V(t, e) {
|
|
11574
|
+
var r = qt(t, e);
|
|
11575
|
+
return zt(r) ? r : void 0;
|
|
11512
11576
|
}
|
|
11513
|
-
var
|
|
11577
|
+
var ne = V(A, "WeakMap"), we = Object.create, Jt = /* @__PURE__ */ (function() {
|
|
11514
11578
|
function t() {
|
|
11515
11579
|
}
|
|
11516
11580
|
return function(e) {
|
|
11517
|
-
if (!
|
|
11581
|
+
if (!X(e))
|
|
11518
11582
|
return {};
|
|
11519
|
-
if (
|
|
11520
|
-
return
|
|
11583
|
+
if (we)
|
|
11584
|
+
return we(e);
|
|
11521
11585
|
t.prototype = e;
|
|
11522
11586
|
var r = new t();
|
|
11523
11587
|
return t.prototype = void 0, r;
|
|
11524
11588
|
};
|
|
11525
11589
|
})();
|
|
11526
|
-
function
|
|
11590
|
+
function Qt(t, e, r) {
|
|
11527
11591
|
switch (r.length) {
|
|
11528
11592
|
case 0:
|
|
11529
11593
|
return t.call(e);
|
|
@@ -11536,238 +11600,245 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11536
11600
|
}
|
|
11537
11601
|
return t.apply(e, r);
|
|
11538
11602
|
}
|
|
11539
|
-
var
|
|
11540
|
-
function
|
|
11603
|
+
var Wt = 800, Xt = 16, Yt = Date.now;
|
|
11604
|
+
function Zt(t) {
|
|
11541
11605
|
var e = 0, r = 0;
|
|
11542
11606
|
return function() {
|
|
11543
|
-
var n =
|
|
11607
|
+
var n = Yt(), a = Xt - (n - r);
|
|
11544
11608
|
if (r = n, a > 0) {
|
|
11545
|
-
if (++e >=
|
|
11609
|
+
if (++e >= Wt)
|
|
11546
11610
|
return arguments[0];
|
|
11547
11611
|
} else
|
|
11548
11612
|
e = 0;
|
|
11549
11613
|
return t.apply(void 0, arguments);
|
|
11550
11614
|
};
|
|
11551
11615
|
}
|
|
11552
|
-
function
|
|
11616
|
+
function er(t) {
|
|
11553
11617
|
return function() {
|
|
11554
11618
|
return t;
|
|
11555
11619
|
};
|
|
11556
11620
|
}
|
|
11557
|
-
var
|
|
11621
|
+
var Q = (function() {
|
|
11558
11622
|
try {
|
|
11559
|
-
var t =
|
|
11623
|
+
var t = V(Object, "defineProperty");
|
|
11560
11624
|
return t({}, "", {}), t;
|
|
11561
11625
|
} catch {
|
|
11562
11626
|
}
|
|
11563
|
-
})(),
|
|
11564
|
-
return
|
|
11627
|
+
})(), tr = Q ? function(t, e) {
|
|
11628
|
+
return Q(t, "toString", {
|
|
11565
11629
|
configurable: true,
|
|
11566
11630
|
enumerable: false,
|
|
11567
|
-
value:
|
|
11631
|
+
value: er(e),
|
|
11568
11632
|
writable: true
|
|
11569
11633
|
});
|
|
11570
|
-
} :
|
|
11571
|
-
function
|
|
11634
|
+
} : We, rr = Zt(tr);
|
|
11635
|
+
function nr(t, e) {
|
|
11572
11636
|
for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== false; )
|
|
11573
11637
|
;
|
|
11574
11638
|
return t;
|
|
11575
11639
|
}
|
|
11576
|
-
function
|
|
11640
|
+
function sr(t, e, r, n) {
|
|
11577
11641
|
for (var a = t.length, s = r + -1; ++s < a; )
|
|
11578
11642
|
if (e(t[s], s, t))
|
|
11579
11643
|
return s;
|
|
11580
11644
|
return -1;
|
|
11581
11645
|
}
|
|
11582
|
-
function
|
|
11646
|
+
function or(t) {
|
|
11583
11647
|
return t !== t;
|
|
11584
11648
|
}
|
|
11585
|
-
function
|
|
11649
|
+
function ar(t, e, r) {
|
|
11586
11650
|
for (var n = r - 1, a = t.length; ++n < a; )
|
|
11587
11651
|
if (t[n] === e)
|
|
11588
11652
|
return n;
|
|
11589
11653
|
return -1;
|
|
11590
11654
|
}
|
|
11591
|
-
function
|
|
11592
|
-
return e === e ?
|
|
11655
|
+
function ir(t, e, r) {
|
|
11656
|
+
return e === e ? ar(t, e, r) : sr(t, or, r);
|
|
11593
11657
|
}
|
|
11594
|
-
function
|
|
11658
|
+
function lr(t, e) {
|
|
11595
11659
|
var r = t == null ? 0 : t.length;
|
|
11596
|
-
return !!r &&
|
|
11660
|
+
return !!r && ir(t, e, 0) > -1;
|
|
11597
11661
|
}
|
|
11598
|
-
var
|
|
11599
|
-
function
|
|
11662
|
+
var cr = 9007199254740991, ur = /^(?:0|[1-9]\d*)$/;
|
|
11663
|
+
function pr(t, e) {
|
|
11600
11664
|
var r = typeof t;
|
|
11601
|
-
return e = e ??
|
|
11665
|
+
return e = e ?? cr, !!e && (r == "number" || r != "symbol" && ur.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
11602
11666
|
}
|
|
11603
|
-
function
|
|
11604
|
-
e == "__proto__" &&
|
|
11667
|
+
function dr(t, e, r) {
|
|
11668
|
+
e == "__proto__" && Q ? Q(t, e, {
|
|
11605
11669
|
configurable: true,
|
|
11606
11670
|
enumerable: true,
|
|
11607
11671
|
value: r,
|
|
11608
11672
|
writable: true
|
|
11609
11673
|
}) : t[e] = r;
|
|
11610
11674
|
}
|
|
11611
|
-
function
|
|
11675
|
+
function Ye(t, e) {
|
|
11612
11676
|
return t === e || t !== t && e !== e;
|
|
11613
11677
|
}
|
|
11614
|
-
var
|
|
11615
|
-
function
|
|
11678
|
+
var fr = Object.prototype, hr = fr.hasOwnProperty;
|
|
11679
|
+
function gr(t, e, r) {
|
|
11616
11680
|
var n = t[e];
|
|
11617
|
-
(!(
|
|
11681
|
+
(!(hr.call(t, e) && Ye(n, r)) || r === void 0 && !(e in t)) && dr(t, e, r);
|
|
11618
11682
|
}
|
|
11619
|
-
var
|
|
11620
|
-
function
|
|
11621
|
-
return e =
|
|
11622
|
-
for (var n = arguments, a = -1, s =
|
|
11683
|
+
var Ce = Math.max;
|
|
11684
|
+
function yr(t, e, r) {
|
|
11685
|
+
return e = Ce(e === void 0 ? t.length - 1 : e, 0), function() {
|
|
11686
|
+
for (var n = arguments, a = -1, s = Ce(n.length - e, 0), o = Array(s); ++a < s; )
|
|
11623
11687
|
o[a] = n[e + a];
|
|
11624
11688
|
a = -1;
|
|
11625
11689
|
for (var c = Array(e + 1); ++a < e; )
|
|
11626
11690
|
c[a] = n[a];
|
|
11627
|
-
return c[e] = r(o),
|
|
11691
|
+
return c[e] = r(o), Qt(t, this, c);
|
|
11628
11692
|
};
|
|
11629
11693
|
}
|
|
11630
|
-
function
|
|
11631
|
-
return
|
|
11694
|
+
function mr(t, e) {
|
|
11695
|
+
return rr(yr(t, e, We), t + "");
|
|
11632
11696
|
}
|
|
11633
|
-
var
|
|
11634
|
-
function
|
|
11635
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <=
|
|
11697
|
+
var br = 9007199254740991;
|
|
11698
|
+
function Ze(t) {
|
|
11699
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= br;
|
|
11636
11700
|
}
|
|
11637
|
-
function
|
|
11638
|
-
return t != null &&
|
|
11701
|
+
function et(t) {
|
|
11702
|
+
return t != null && Ze(t.length) && !Xe(t);
|
|
11639
11703
|
}
|
|
11640
|
-
var
|
|
11641
|
-
function
|
|
11642
|
-
var e = t && t.constructor, r = typeof e == "function" && e.prototype ||
|
|
11704
|
+
var vr = Object.prototype;
|
|
11705
|
+
function tt(t) {
|
|
11706
|
+
var e = t && t.constructor, r = typeof e == "function" && e.prototype || vr;
|
|
11643
11707
|
return t === r;
|
|
11644
11708
|
}
|
|
11645
|
-
function
|
|
11709
|
+
function Tr(t, e) {
|
|
11646
11710
|
for (var r = -1, n = Array(t); ++r < t; )
|
|
11647
11711
|
n[r] = e(r);
|
|
11648
11712
|
return n;
|
|
11649
11713
|
}
|
|
11650
|
-
var
|
|
11651
|
-
function
|
|
11652
|
-
return
|
|
11714
|
+
var wr = "[object Arguments]";
|
|
11715
|
+
function Pe(t) {
|
|
11716
|
+
return k(t) && M(t) == wr;
|
|
11653
11717
|
}
|
|
11654
|
-
var
|
|
11718
|
+
var rt = Object.prototype, Cr = rt.hasOwnProperty, Pr = rt.propertyIsEnumerable, jr = Pe(/* @__PURE__ */ (function() {
|
|
11655
11719
|
return arguments;
|
|
11656
|
-
})()) ?
|
|
11657
|
-
return
|
|
11720
|
+
})()) ? Pe : function(t) {
|
|
11721
|
+
return k(t) && Cr.call(t, "callee") && !Pr.call(t, "callee");
|
|
11658
11722
|
};
|
|
11659
|
-
function
|
|
11723
|
+
function _r() {
|
|
11660
11724
|
return false;
|
|
11661
11725
|
}
|
|
11662
|
-
var
|
|
11663
|
-
T[
|
|
11664
|
-
T[
|
|
11665
|
-
function
|
|
11666
|
-
return
|
|
11726
|
+
var nt = typeof exports == "object" && exports && !exports.nodeType && exports, je = nt && typeof module == "object" && module && !module.nodeType && module, Ar = je && je.exports === nt, _e = Ar ? A.Buffer : void 0, Sr = _e ? _e.isBuffer : void 0, st = Sr || _r, Or = "[object Arguments]", $r = "[object Array]", Er = "[object Boolean]", Ir = "[object Date]", xr = "[object Error]", kr = "[object Function]", Fr = "[object Map]", Vr = "[object Number]", Rr = "[object Object]", Mr = "[object RegExp]", Dr = "[object Set]", Ur = "[object String]", Hr = "[object WeakMap]", Nr = "[object ArrayBuffer]", Lr = "[object DataView]", Kr = "[object Float32Array]", Gr = "[object Float64Array]", Br = "[object Int8Array]", zr = "[object Int16Array]", qr = "[object Int32Array]", Jr = "[object Uint8Array]", Qr = "[object Uint8ClampedArray]", Wr = "[object Uint16Array]", Xr = "[object Uint32Array]", T = {};
|
|
11727
|
+
T[Kr] = T[Gr] = T[Br] = T[zr] = T[qr] = T[Jr] = T[Qr] = T[Wr] = T[Xr] = true;
|
|
11728
|
+
T[Or] = T[$r] = T[Nr] = T[Er] = T[Lr] = T[Ir] = T[xr] = T[kr] = T[Fr] = T[Vr] = T[Rr] = T[Mr] = T[Dr] = T[Ur] = T[Hr] = false;
|
|
11729
|
+
function Yr(t) {
|
|
11730
|
+
return k(t) && Ze(t.length) && !!T[M(t)];
|
|
11667
11731
|
}
|
|
11668
|
-
function
|
|
11732
|
+
function ce(t) {
|
|
11669
11733
|
return function(e) {
|
|
11670
11734
|
return t(e);
|
|
11671
11735
|
};
|
|
11672
11736
|
}
|
|
11673
|
-
var
|
|
11737
|
+
var ot = typeof exports == "object" && exports && !exports.nodeType && exports, K = ot && typeof module == "object" && module && !module.nodeType && module, Zr = K && K.exports === ot, re = Zr && ze.process, R = (function() {
|
|
11674
11738
|
try {
|
|
11675
|
-
var t =
|
|
11676
|
-
return t ||
|
|
11739
|
+
var t = K && K.require && K.require("util").types;
|
|
11740
|
+
return t || re && re.binding && re.binding("util");
|
|
11677
11741
|
} catch {
|
|
11678
11742
|
}
|
|
11679
|
-
})(),
|
|
11680
|
-
function
|
|
11681
|
-
var r =
|
|
11743
|
+
})(), Ae = R && R.isTypedArray, en = Ae ? ce(Ae) : Yr, tn = Object.prototype, rn = tn.hasOwnProperty;
|
|
11744
|
+
function nn(t, e) {
|
|
11745
|
+
var r = D(t), n = !r && jr(t), a = !r && !n && st(t), s = !r && !n && !a && en(t), o = r || n || a || s, c = o ? Tr(t.length, String) : [], i = c.length;
|
|
11682
11746
|
for (var u in t)
|
|
11683
|
-
|
|
11747
|
+
rn.call(t, u) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
11684
11748
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
11685
11749
|
a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
11686
11750
|
s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
11687
|
-
|
|
11751
|
+
pr(u, i))) && c.push(u);
|
|
11688
11752
|
return c;
|
|
11689
11753
|
}
|
|
11690
|
-
function
|
|
11754
|
+
function at(t, e) {
|
|
11691
11755
|
return function(r) {
|
|
11692
11756
|
return t(e(r));
|
|
11693
11757
|
};
|
|
11694
11758
|
}
|
|
11695
|
-
var
|
|
11696
|
-
function
|
|
11697
|
-
if (!
|
|
11698
|
-
return
|
|
11759
|
+
var sn = at(Object.keys, Object), on = Object.prototype, an = on.hasOwnProperty;
|
|
11760
|
+
function ln(t) {
|
|
11761
|
+
if (!tt(t))
|
|
11762
|
+
return sn(t);
|
|
11699
11763
|
var e = [];
|
|
11700
11764
|
for (var r in Object(t))
|
|
11701
|
-
|
|
11765
|
+
an.call(t, r) && r != "constructor" && e.push(r);
|
|
11702
11766
|
return e;
|
|
11703
11767
|
}
|
|
11704
|
-
function
|
|
11705
|
-
return
|
|
11768
|
+
function cn(t) {
|
|
11769
|
+
return et(t) ? nn(t) : ln(t);
|
|
11770
|
+
}
|
|
11771
|
+
var un = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, pn = /^\w*$/;
|
|
11772
|
+
function dn(t, e) {
|
|
11773
|
+
if (D(t))
|
|
11774
|
+
return false;
|
|
11775
|
+
var r = typeof t;
|
|
11776
|
+
return r == "number" || r == "symbol" || r == "boolean" || t == null || le(t) ? true : pn.test(t) || !un.test(t) || e != null && t in Object(e);
|
|
11706
11777
|
}
|
|
11707
|
-
var
|
|
11708
|
-
function
|
|
11709
|
-
this.__data__ =
|
|
11778
|
+
var G = V(Object, "create");
|
|
11779
|
+
function fn() {
|
|
11780
|
+
this.__data__ = G ? G(null) : {}, this.size = 0;
|
|
11710
11781
|
}
|
|
11711
|
-
function
|
|
11782
|
+
function hn(t) {
|
|
11712
11783
|
var e = this.has(t) && delete this.__data__[t];
|
|
11713
11784
|
return this.size -= e ? 1 : 0, e;
|
|
11714
11785
|
}
|
|
11715
|
-
var
|
|
11716
|
-
function
|
|
11786
|
+
var gn = "__lodash_hash_undefined__", yn = Object.prototype, mn = yn.hasOwnProperty;
|
|
11787
|
+
function bn(t) {
|
|
11717
11788
|
var e = this.__data__;
|
|
11718
|
-
if (
|
|
11789
|
+
if (G) {
|
|
11719
11790
|
var r = e[t];
|
|
11720
|
-
return r ===
|
|
11791
|
+
return r === gn ? void 0 : r;
|
|
11721
11792
|
}
|
|
11722
|
-
return
|
|
11793
|
+
return mn.call(e, t) ? e[t] : void 0;
|
|
11723
11794
|
}
|
|
11724
|
-
var
|
|
11725
|
-
function
|
|
11795
|
+
var vn = Object.prototype, Tn = vn.hasOwnProperty;
|
|
11796
|
+
function wn(t) {
|
|
11726
11797
|
var e = this.__data__;
|
|
11727
|
-
return
|
|
11798
|
+
return G ? e[t] !== void 0 : Tn.call(e, t);
|
|
11728
11799
|
}
|
|
11729
|
-
var
|
|
11730
|
-
function
|
|
11800
|
+
var Cn = "__lodash_hash_undefined__";
|
|
11801
|
+
function Pn(t, e) {
|
|
11731
11802
|
var r = this.__data__;
|
|
11732
|
-
return this.size += this.has(t) ? 0 : 1, r[t] =
|
|
11803
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = G && e === void 0 ? Cn : e, this;
|
|
11733
11804
|
}
|
|
11734
|
-
function
|
|
11805
|
+
function x(t) {
|
|
11735
11806
|
var e = -1, r = t == null ? 0 : t.length;
|
|
11736
11807
|
for (this.clear(); ++e < r; ) {
|
|
11737
11808
|
var n = t[e];
|
|
11738
11809
|
this.set(n[0], n[1]);
|
|
11739
11810
|
}
|
|
11740
11811
|
}
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
function
|
|
11812
|
+
x.prototype.clear = fn;
|
|
11813
|
+
x.prototype.delete = hn;
|
|
11814
|
+
x.prototype.get = bn;
|
|
11815
|
+
x.prototype.has = wn;
|
|
11816
|
+
x.prototype.set = Pn;
|
|
11817
|
+
function jn() {
|
|
11747
11818
|
this.__data__ = [], this.size = 0;
|
|
11748
11819
|
}
|
|
11749
11820
|
function Y(t, e) {
|
|
11750
11821
|
for (var r = t.length; r--; )
|
|
11751
|
-
if (
|
|
11822
|
+
if (Ye(t[r][0], e))
|
|
11752
11823
|
return r;
|
|
11753
11824
|
return -1;
|
|
11754
11825
|
}
|
|
11755
|
-
var
|
|
11756
|
-
function
|
|
11826
|
+
var _n = Array.prototype, An = _n.splice;
|
|
11827
|
+
function Sn(t) {
|
|
11757
11828
|
var e = this.__data__, r = Y(e, t);
|
|
11758
11829
|
if (r < 0)
|
|
11759
11830
|
return false;
|
|
11760
11831
|
var n = e.length - 1;
|
|
11761
|
-
return r == n ? e.pop() :
|
|
11832
|
+
return r == n ? e.pop() : An.call(e, r, 1), --this.size, true;
|
|
11762
11833
|
}
|
|
11763
|
-
function
|
|
11834
|
+
function On(t) {
|
|
11764
11835
|
var e = this.__data__, r = Y(e, t);
|
|
11765
11836
|
return r < 0 ? void 0 : e[r][1];
|
|
11766
11837
|
}
|
|
11767
|
-
function
|
|
11838
|
+
function $n(t) {
|
|
11768
11839
|
return Y(this.__data__, t) > -1;
|
|
11769
11840
|
}
|
|
11770
|
-
function
|
|
11841
|
+
function En(t, e) {
|
|
11771
11842
|
var r = this.__data__, n = Y(r, t);
|
|
11772
11843
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
11773
11844
|
}
|
|
@@ -11778,301 +11849,350 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11778
11849
|
this.set(n[0], n[1]);
|
|
11779
11850
|
}
|
|
11780
11851
|
}
|
|
11781
|
-
O.prototype.clear =
|
|
11782
|
-
O.prototype.delete =
|
|
11783
|
-
O.prototype.get =
|
|
11784
|
-
O.prototype.has =
|
|
11785
|
-
O.prototype.set =
|
|
11786
|
-
var
|
|
11787
|
-
function
|
|
11852
|
+
O.prototype.clear = jn;
|
|
11853
|
+
O.prototype.delete = Sn;
|
|
11854
|
+
O.prototype.get = On;
|
|
11855
|
+
O.prototype.has = $n;
|
|
11856
|
+
O.prototype.set = En;
|
|
11857
|
+
var B = V(A, "Map");
|
|
11858
|
+
function In() {
|
|
11788
11859
|
this.size = 0, this.__data__ = {
|
|
11789
|
-
hash: new
|
|
11790
|
-
map: new (
|
|
11791
|
-
string: new
|
|
11860
|
+
hash: new x(),
|
|
11861
|
+
map: new (B || O)(),
|
|
11862
|
+
string: new x()
|
|
11792
11863
|
};
|
|
11793
11864
|
}
|
|
11794
|
-
function
|
|
11865
|
+
function xn(t) {
|
|
11795
11866
|
var e = typeof t;
|
|
11796
11867
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
11797
11868
|
}
|
|
11798
|
-
function
|
|
11869
|
+
function Z(t, e) {
|
|
11799
11870
|
var r = t.__data__;
|
|
11800
|
-
return
|
|
11871
|
+
return xn(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
11801
11872
|
}
|
|
11802
|
-
function
|
|
11803
|
-
var e =
|
|
11873
|
+
function kn(t) {
|
|
11874
|
+
var e = Z(this, t).delete(t);
|
|
11804
11875
|
return this.size -= e ? 1 : 0, e;
|
|
11805
11876
|
}
|
|
11806
|
-
function
|
|
11807
|
-
return
|
|
11877
|
+
function Fn(t) {
|
|
11878
|
+
return Z(this, t).get(t);
|
|
11808
11879
|
}
|
|
11809
|
-
function
|
|
11810
|
-
return
|
|
11880
|
+
function Vn(t) {
|
|
11881
|
+
return Z(this, t).has(t);
|
|
11811
11882
|
}
|
|
11812
|
-
function
|
|
11813
|
-
var r =
|
|
11883
|
+
function Rn(t, e) {
|
|
11884
|
+
var r = Z(this, t), n = r.size;
|
|
11814
11885
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
11815
11886
|
}
|
|
11816
|
-
function
|
|
11887
|
+
function $(t) {
|
|
11817
11888
|
var e = -1, r = t == null ? 0 : t.length;
|
|
11818
11889
|
for (this.clear(); ++e < r; ) {
|
|
11819
11890
|
var n = t[e];
|
|
11820
11891
|
this.set(n[0], n[1]);
|
|
11821
11892
|
}
|
|
11822
11893
|
}
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11894
|
+
$.prototype.clear = In;
|
|
11895
|
+
$.prototype.delete = kn;
|
|
11896
|
+
$.prototype.get = Fn;
|
|
11897
|
+
$.prototype.has = Vn;
|
|
11898
|
+
$.prototype.set = Rn;
|
|
11899
|
+
var Mn = "Expected a function";
|
|
11900
|
+
function ue(t, e) {
|
|
11901
|
+
if (typeof t != "function" || e != null && typeof e != "function")
|
|
11902
|
+
throw new TypeError(Mn);
|
|
11903
|
+
var r = function() {
|
|
11904
|
+
var n = arguments, a = e ? e.apply(this, n) : n[0], s = r.cache;
|
|
11905
|
+
if (s.has(a))
|
|
11906
|
+
return s.get(a);
|
|
11907
|
+
var o = t.apply(this, n);
|
|
11908
|
+
return r.cache = s.set(a, o) || s, o;
|
|
11909
|
+
};
|
|
11910
|
+
return r.cache = new (ue.Cache || $)(), r;
|
|
11911
|
+
}
|
|
11912
|
+
ue.Cache = $;
|
|
11913
|
+
var Dn = 500;
|
|
11914
|
+
function Un(t) {
|
|
11915
|
+
var e = ue(t, function(n) {
|
|
11916
|
+
return r.size === Dn && r.clear(), n;
|
|
11917
|
+
}), r = e.cache;
|
|
11918
|
+
return e;
|
|
11919
|
+
}
|
|
11920
|
+
var Hn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Nn = /\\(\\)?/g, Ln = Un(function(t) {
|
|
11921
|
+
var e = [];
|
|
11922
|
+
return t.charCodeAt(0) === 46 && e.push(""), t.replace(Hn, function(r, n, a, s) {
|
|
11923
|
+
e.push(a ? s.replace(Nn, "$1") : n || r);
|
|
11924
|
+
}), e;
|
|
11925
|
+
});
|
|
11926
|
+
function Kn(t) {
|
|
11927
|
+
return t == null ? "" : Qe(t);
|
|
11928
|
+
}
|
|
11929
|
+
function Gn(t, e) {
|
|
11930
|
+
return D(t) ? t : dn(t, e) ? [t] : Ln(Kn(t));
|
|
11931
|
+
}
|
|
11932
|
+
function Bn(t) {
|
|
11933
|
+
if (typeof t == "string" || le(t))
|
|
11934
|
+
return t;
|
|
11935
|
+
var e = t + "";
|
|
11936
|
+
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
11937
|
+
}
|
|
11938
|
+
function zn(t, e) {
|
|
11939
|
+
e = Gn(e, t);
|
|
11940
|
+
for (var r = 0, n = e.length; t != null && r < n; )
|
|
11941
|
+
t = t[Bn(e[r++])];
|
|
11942
|
+
return r && r == n ? t : void 0;
|
|
11943
|
+
}
|
|
11944
|
+
function qn(t, e, r) {
|
|
11945
|
+
var n = t == null ? void 0 : zn(t, e);
|
|
11946
|
+
return n === void 0 ? r : n;
|
|
11947
|
+
}
|
|
11948
|
+
function Jn(t, e) {
|
|
11829
11949
|
for (var r = -1, n = e.length, a = t.length; ++r < n; )
|
|
11830
11950
|
t[a + r] = e[r];
|
|
11831
11951
|
return t;
|
|
11832
11952
|
}
|
|
11833
|
-
var
|
|
11834
|
-
function
|
|
11953
|
+
var Qn = at(Object.getPrototypeOf, Object);
|
|
11954
|
+
function Wn() {
|
|
11835
11955
|
this.__data__ = new O(), this.size = 0;
|
|
11836
11956
|
}
|
|
11837
|
-
function
|
|
11957
|
+
function Xn(t) {
|
|
11838
11958
|
var e = this.__data__, r = e.delete(t);
|
|
11839
11959
|
return this.size = e.size, r;
|
|
11840
11960
|
}
|
|
11841
|
-
function
|
|
11961
|
+
function Yn(t) {
|
|
11842
11962
|
return this.__data__.get(t);
|
|
11843
11963
|
}
|
|
11844
|
-
function
|
|
11964
|
+
function Zn(t) {
|
|
11845
11965
|
return this.__data__.has(t);
|
|
11846
11966
|
}
|
|
11847
|
-
var
|
|
11848
|
-
function
|
|
11967
|
+
var es = 200;
|
|
11968
|
+
function ts(t, e) {
|
|
11849
11969
|
var r = this.__data__;
|
|
11850
11970
|
if (r instanceof O) {
|
|
11851
11971
|
var n = r.__data__;
|
|
11852
|
-
if (!
|
|
11972
|
+
if (!B || n.length < es - 1)
|
|
11853
11973
|
return n.push([t, e]), this.size = ++r.size, this;
|
|
11854
|
-
r = this.__data__ = new
|
|
11974
|
+
r = this.__data__ = new $(n);
|
|
11855
11975
|
}
|
|
11856
11976
|
return r.set(t, e), this.size = r.size, this;
|
|
11857
11977
|
}
|
|
11858
|
-
function
|
|
11978
|
+
function U(t) {
|
|
11859
11979
|
var e = this.__data__ = new O(t);
|
|
11860
11980
|
this.size = e.size;
|
|
11861
11981
|
}
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
var
|
|
11868
|
-
|
|
11869
|
-
function
|
|
11982
|
+
U.prototype.clear = Wn;
|
|
11983
|
+
U.prototype.delete = Xn;
|
|
11984
|
+
U.prototype.get = Yn;
|
|
11985
|
+
U.prototype.has = Zn;
|
|
11986
|
+
U.prototype.set = ts;
|
|
11987
|
+
var it = typeof exports == "object" && exports && !exports.nodeType && exports, Se = it && typeof module == "object" && module && !module.nodeType && module, rs = Se && Se.exports === it, Oe = rs ? A.Buffer : void 0;
|
|
11988
|
+
Oe && Oe.allocUnsafe;
|
|
11989
|
+
function ns(t, e) {
|
|
11870
11990
|
return t.slice();
|
|
11871
11991
|
}
|
|
11872
|
-
function
|
|
11992
|
+
function ss(t, e) {
|
|
11873
11993
|
for (var r = -1, n = t == null ? 0 : t.length, a = 0, s = []; ++r < n; ) {
|
|
11874
11994
|
var o = t[r];
|
|
11875
11995
|
e(o, r, t) && (s[a++] = o);
|
|
11876
11996
|
}
|
|
11877
11997
|
return s;
|
|
11878
11998
|
}
|
|
11879
|
-
function
|
|
11999
|
+
function os() {
|
|
11880
12000
|
return [];
|
|
11881
12001
|
}
|
|
11882
|
-
var
|
|
11883
|
-
return t == null ? [] : (t = Object(t),
|
|
11884
|
-
return
|
|
12002
|
+
var as = Object.prototype, is = as.propertyIsEnumerable, $e = Object.getOwnPropertySymbols, ls = $e ? function(t) {
|
|
12003
|
+
return t == null ? [] : (t = Object(t), ss($e(t), function(e) {
|
|
12004
|
+
return is.call(t, e);
|
|
11885
12005
|
}));
|
|
11886
|
-
} :
|
|
11887
|
-
function
|
|
12006
|
+
} : os;
|
|
12007
|
+
function cs(t, e, r) {
|
|
11888
12008
|
var n = e(t);
|
|
11889
|
-
return
|
|
12009
|
+
return D(t) ? n : Jn(n, r(t));
|
|
11890
12010
|
}
|
|
11891
|
-
function
|
|
11892
|
-
return
|
|
12011
|
+
function us(t) {
|
|
12012
|
+
return cs(t, cn, ls);
|
|
11893
12013
|
}
|
|
11894
|
-
var
|
|
11895
|
-
(
|
|
11896
|
-
var e =
|
|
12014
|
+
var se = V(A, "DataView"), oe = V(A, "Promise"), ae = V(A, "Set"), Ee = "[object Map]", ps = "[object Object]", Ie = "[object Promise]", xe = "[object Set]", ke = "[object WeakMap]", Fe = "[object DataView]", ds = F(se), fs = F(B), hs = F(oe), gs = F(ae), ys = F(ne), S = M;
|
|
12015
|
+
(se && S(new se(new ArrayBuffer(1))) != Fe || B && S(new B()) != Ee || oe && S(oe.resolve()) != Ie || ae && S(new ae()) != xe || ne && S(new ne()) != ke) && (S = function(t) {
|
|
12016
|
+
var e = M(t), r = e == ps ? t.constructor : void 0, n = r ? F(r) : "";
|
|
11897
12017
|
if (n)
|
|
11898
12018
|
switch (n) {
|
|
11899
|
-
case
|
|
12019
|
+
case ds:
|
|
12020
|
+
return Fe;
|
|
12021
|
+
case fs:
|
|
11900
12022
|
return Ee;
|
|
11901
|
-
case
|
|
11902
|
-
return
|
|
11903
|
-
case
|
|
11904
|
-
return
|
|
11905
|
-
case
|
|
11906
|
-
return
|
|
11907
|
-
case qn:
|
|
11908
|
-
return $e;
|
|
12023
|
+
case hs:
|
|
12024
|
+
return Ie;
|
|
12025
|
+
case gs:
|
|
12026
|
+
return xe;
|
|
12027
|
+
case ys:
|
|
12028
|
+
return ke;
|
|
11909
12029
|
}
|
|
11910
12030
|
return e;
|
|
11911
12031
|
});
|
|
11912
|
-
var
|
|
11913
|
-
function
|
|
12032
|
+
var ms = Object.prototype, bs = ms.hasOwnProperty;
|
|
12033
|
+
function vs(t) {
|
|
11914
12034
|
var e = t.length, r = new t.constructor(e);
|
|
11915
|
-
return e && typeof t[0] == "string" &&
|
|
12035
|
+
return e && typeof t[0] == "string" && bs.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
11916
12036
|
}
|
|
11917
|
-
var
|
|
11918
|
-
function
|
|
12037
|
+
var Ve = A.Uint8Array;
|
|
12038
|
+
function pe(t) {
|
|
11919
12039
|
var e = new t.constructor(t.byteLength);
|
|
11920
|
-
return new
|
|
12040
|
+
return new Ve(e).set(new Ve(t)), e;
|
|
11921
12041
|
}
|
|
11922
|
-
function
|
|
11923
|
-
var r =
|
|
12042
|
+
function Ts(t, e) {
|
|
12043
|
+
var r = pe(t.buffer);
|
|
11924
12044
|
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
11925
12045
|
}
|
|
11926
|
-
var
|
|
11927
|
-
function
|
|
11928
|
-
var e = new t.constructor(t.source,
|
|
12046
|
+
var ws = /\w*$/;
|
|
12047
|
+
function Cs(t) {
|
|
12048
|
+
var e = new t.constructor(t.source, ws.exec(t));
|
|
11929
12049
|
return e.lastIndex = t.lastIndex, e;
|
|
11930
12050
|
}
|
|
11931
|
-
var
|
|
11932
|
-
function
|
|
11933
|
-
return
|
|
12051
|
+
var Re = E ? E.prototype : void 0, Me = Re ? Re.valueOf : void 0;
|
|
12052
|
+
function Ps(t) {
|
|
12053
|
+
return Me ? Object(Me.call(t)) : {};
|
|
11934
12054
|
}
|
|
11935
|
-
function
|
|
11936
|
-
var r =
|
|
12055
|
+
function js(t, e) {
|
|
12056
|
+
var r = pe(t.buffer);
|
|
11937
12057
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
11938
12058
|
}
|
|
11939
|
-
var
|
|
11940
|
-
function
|
|
12059
|
+
var _s = "[object Boolean]", As = "[object Date]", Ss = "[object Map]", Os = "[object Number]", $s = "[object RegExp]", Es = "[object Set]", Is = "[object String]", xs = "[object Symbol]", ks = "[object ArrayBuffer]", Fs = "[object DataView]", Vs = "[object Float32Array]", Rs = "[object Float64Array]", Ms = "[object Int8Array]", Ds = "[object Int16Array]", Us = "[object Int32Array]", Hs = "[object Uint8Array]", Ns = "[object Uint8ClampedArray]", Ls = "[object Uint16Array]", Ks = "[object Uint32Array]";
|
|
12060
|
+
function Gs(t, e, r) {
|
|
11941
12061
|
var n = t.constructor;
|
|
11942
12062
|
switch (e) {
|
|
11943
|
-
case
|
|
11944
|
-
return
|
|
11945
|
-
case
|
|
11946
|
-
case
|
|
12063
|
+
case ks:
|
|
12064
|
+
return pe(t);
|
|
12065
|
+
case _s:
|
|
12066
|
+
case As:
|
|
11947
12067
|
return new n(+t);
|
|
11948
|
-
case
|
|
11949
|
-
return
|
|
11950
|
-
case
|
|
11951
|
-
case
|
|
11952
|
-
case
|
|
11953
|
-
case
|
|
11954
|
-
case
|
|
11955
|
-
case
|
|
11956
|
-
case
|
|
11957
|
-
case
|
|
11958
|
-
case
|
|
11959
|
-
return
|
|
11960
|
-
case
|
|
12068
|
+
case Fs:
|
|
12069
|
+
return Ts(t);
|
|
12070
|
+
case Vs:
|
|
12071
|
+
case Rs:
|
|
12072
|
+
case Ms:
|
|
12073
|
+
case Ds:
|
|
12074
|
+
case Us:
|
|
12075
|
+
case Hs:
|
|
12076
|
+
case Ns:
|
|
12077
|
+
case Ls:
|
|
12078
|
+
case Ks:
|
|
12079
|
+
return js(t);
|
|
12080
|
+
case Ss:
|
|
11961
12081
|
return new n();
|
|
11962
|
-
case
|
|
11963
|
-
case
|
|
12082
|
+
case Os:
|
|
12083
|
+
case Is:
|
|
11964
12084
|
return new n(t);
|
|
11965
|
-
case
|
|
11966
|
-
return
|
|
11967
|
-
case
|
|
12085
|
+
case $s:
|
|
12086
|
+
return Cs(t);
|
|
12087
|
+
case Es:
|
|
11968
12088
|
return new n();
|
|
11969
|
-
case
|
|
11970
|
-
return
|
|
12089
|
+
case xs:
|
|
12090
|
+
return Ps(t);
|
|
11971
12091
|
}
|
|
11972
12092
|
}
|
|
11973
|
-
function
|
|
11974
|
-
return typeof t.constructor == "function" && !
|
|
12093
|
+
function Bs(t) {
|
|
12094
|
+
return typeof t.constructor == "function" && !tt(t) ? Jt(Qn(t)) : {};
|
|
11975
12095
|
}
|
|
11976
|
-
var
|
|
11977
|
-
function
|
|
11978
|
-
return
|
|
12096
|
+
var zs = "[object Map]";
|
|
12097
|
+
function qs(t) {
|
|
12098
|
+
return k(t) && S(t) == zs;
|
|
11979
12099
|
}
|
|
11980
|
-
var
|
|
11981
|
-
function
|
|
11982
|
-
return
|
|
12100
|
+
var De = R && R.isMap, Js = De ? ce(De) : qs, Qs = "[object Set]";
|
|
12101
|
+
function Ws(t) {
|
|
12102
|
+
return k(t) && S(t) == Qs;
|
|
11983
12103
|
}
|
|
11984
|
-
var
|
|
11985
|
-
v[
|
|
11986
|
-
v[
|
|
11987
|
-
function
|
|
12104
|
+
var Ue = R && R.isSet, Xs = Ue ? ce(Ue) : Ws, lt = "[object Arguments]", Ys = "[object Array]", Zs = "[object Boolean]", eo = "[object Date]", to = "[object Error]", ct = "[object Function]", ro = "[object GeneratorFunction]", no = "[object Map]", so = "[object Number]", ut = "[object Object]", oo = "[object RegExp]", ao = "[object Set]", io = "[object String]", lo = "[object Symbol]", co = "[object WeakMap]", uo = "[object ArrayBuffer]", po = "[object DataView]", fo = "[object Float32Array]", ho = "[object Float64Array]", go = "[object Int8Array]", yo = "[object Int16Array]", mo = "[object Int32Array]", bo = "[object Uint8Array]", vo = "[object Uint8ClampedArray]", To = "[object Uint16Array]", wo = "[object Uint32Array]", v = {};
|
|
12105
|
+
v[lt] = v[Ys] = v[uo] = v[po] = v[Zs] = v[eo] = v[fo] = v[ho] = v[go] = v[yo] = v[mo] = v[no] = v[so] = v[ut] = v[oo] = v[ao] = v[io] = v[lo] = v[bo] = v[vo] = v[To] = v[wo] = true;
|
|
12106
|
+
v[to] = v[ct] = v[co] = false;
|
|
12107
|
+
function J(t, e, r, n, a, s) {
|
|
11988
12108
|
var o;
|
|
11989
12109
|
if (o !== void 0)
|
|
11990
12110
|
return o;
|
|
11991
|
-
if (!
|
|
12111
|
+
if (!X(t))
|
|
11992
12112
|
return t;
|
|
11993
|
-
var c =
|
|
12113
|
+
var c = D(t);
|
|
11994
12114
|
if (c)
|
|
11995
|
-
o =
|
|
12115
|
+
o = vs(t);
|
|
11996
12116
|
else {
|
|
11997
|
-
var i = S(t), u = i ==
|
|
11998
|
-
if (
|
|
11999
|
-
return
|
|
12000
|
-
if (i ==
|
|
12001
|
-
o = u ? {} :
|
|
12117
|
+
var i = S(t), u = i == ct || i == ro;
|
|
12118
|
+
if (st(t))
|
|
12119
|
+
return ns(t);
|
|
12120
|
+
if (i == ut || i == lt || u && !a)
|
|
12121
|
+
o = u ? {} : Bs(t);
|
|
12002
12122
|
else {
|
|
12003
12123
|
if (!v[i])
|
|
12004
12124
|
return a ? t : {};
|
|
12005
|
-
o =
|
|
12125
|
+
o = Gs(t, i);
|
|
12006
12126
|
}
|
|
12007
12127
|
}
|
|
12008
|
-
s || (s = new
|
|
12009
|
-
var
|
|
12010
|
-
if (
|
|
12011
|
-
return
|
|
12012
|
-
s.set(t, o),
|
|
12013
|
-
o.add(
|
|
12014
|
-
}) :
|
|
12015
|
-
o.set(
|
|
12128
|
+
s || (s = new U());
|
|
12129
|
+
var g2 = s.get(t);
|
|
12130
|
+
if (g2)
|
|
12131
|
+
return g2;
|
|
12132
|
+
s.set(t, o), Xs(t) ? t.forEach(function(d) {
|
|
12133
|
+
o.add(J(d, e, r, d, t, s));
|
|
12134
|
+
}) : Js(t) && t.forEach(function(d, f) {
|
|
12135
|
+
o.set(f, J(d, e, r, f, t, s));
|
|
12016
12136
|
});
|
|
12017
|
-
var y2 =
|
|
12018
|
-
return
|
|
12019
|
-
|
|
12137
|
+
var y2 = us, m = c ? void 0 : y2(t);
|
|
12138
|
+
return nr(m || t, function(d, f) {
|
|
12139
|
+
m && (f = d, d = t[f]), gr(o, f, J(d, e, r, f, t, s));
|
|
12020
12140
|
}), o;
|
|
12021
12141
|
}
|
|
12022
|
-
var
|
|
12023
|
-
function
|
|
12024
|
-
return
|
|
12142
|
+
var Co = 1, Po = 4;
|
|
12143
|
+
function L(t) {
|
|
12144
|
+
return J(t, Co | Po);
|
|
12025
12145
|
}
|
|
12026
|
-
var
|
|
12027
|
-
function
|
|
12028
|
-
return this.__data__.set(t,
|
|
12146
|
+
var jo = "__lodash_hash_undefined__";
|
|
12147
|
+
function _o(t) {
|
|
12148
|
+
return this.__data__.set(t, jo), this;
|
|
12029
12149
|
}
|
|
12030
|
-
function
|
|
12150
|
+
function Ao(t) {
|
|
12031
12151
|
return this.__data__.has(t);
|
|
12032
12152
|
}
|
|
12033
|
-
function
|
|
12153
|
+
function W(t) {
|
|
12034
12154
|
var e = -1, r = t == null ? 0 : t.length;
|
|
12035
|
-
for (this.__data__ = new
|
|
12155
|
+
for (this.__data__ = new $(); ++e < r; )
|
|
12036
12156
|
this.add(t[e]);
|
|
12037
12157
|
}
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
function
|
|
12158
|
+
W.prototype.add = W.prototype.push = _o;
|
|
12159
|
+
W.prototype.has = Ao;
|
|
12160
|
+
function He(t, e) {
|
|
12041
12161
|
return t.has(e);
|
|
12042
12162
|
}
|
|
12043
|
-
function
|
|
12044
|
-
return
|
|
12163
|
+
function So(t) {
|
|
12164
|
+
return k(t) && et(t);
|
|
12045
12165
|
}
|
|
12046
|
-
var
|
|
12047
|
-
function
|
|
12048
|
-
for (var n =
|
|
12049
|
-
var
|
|
12050
|
-
i =
|
|
12166
|
+
var Oo = Math.min;
|
|
12167
|
+
function $o(t, e, r) {
|
|
12168
|
+
for (var n = lr, a = t[0].length, s = t.length, o = s, c = Array(s), i = 1 / 0, u = []; o--; ) {
|
|
12169
|
+
var g2 = t[o];
|
|
12170
|
+
i = Oo(g2.length, i), c[o] = a >= 120 && g2.length >= 120 ? new W(o && g2) : void 0;
|
|
12051
12171
|
}
|
|
12052
|
-
|
|
12053
|
-
var y2 = -1,
|
|
12172
|
+
g2 = t[0];
|
|
12173
|
+
var y2 = -1, m = c[0];
|
|
12054
12174
|
e:
|
|
12055
12175
|
for (; ++y2 < a && u.length < i; ) {
|
|
12056
|
-
var
|
|
12057
|
-
if (
|
|
12176
|
+
var d = g2[y2], f = d;
|
|
12177
|
+
if (d = d !== 0 ? d : 0, !(m ? He(m, f) : n(u, f))) {
|
|
12058
12178
|
for (o = s; --o; ) {
|
|
12059
12179
|
var l = c[o];
|
|
12060
|
-
if (!(l ?
|
|
12180
|
+
if (!(l ? He(l, f) : n(t[o], f)))
|
|
12061
12181
|
continue e;
|
|
12062
12182
|
}
|
|
12063
|
-
|
|
12183
|
+
m && m.push(f), u.push(d);
|
|
12064
12184
|
}
|
|
12065
12185
|
}
|
|
12066
12186
|
return u;
|
|
12067
12187
|
}
|
|
12068
|
-
function
|
|
12069
|
-
return
|
|
12188
|
+
function Eo(t) {
|
|
12189
|
+
return So(t) ? t : [];
|
|
12070
12190
|
}
|
|
12071
|
-
var
|
|
12072
|
-
var e =
|
|
12073
|
-
return e.length && e[0] === t[0] ?
|
|
12191
|
+
var Ne = mr(function(t) {
|
|
12192
|
+
var e = Je(t, Eo);
|
|
12193
|
+
return e.length && e[0] === t[0] ? $o(e) : [];
|
|
12074
12194
|
});
|
|
12075
|
-
class
|
|
12195
|
+
class Le {
|
|
12076
12196
|
context = "";
|
|
12077
12197
|
total = 0;
|
|
12078
12198
|
totalItems = [];
|
|
@@ -12080,17 +12200,24 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12080
12200
|
downloadedItems = /* @__PURE__ */ new Set();
|
|
12081
12201
|
failedItems = /* @__PURE__ */ new Set();
|
|
12082
12202
|
remainingItems = /* @__PURE__ */ new Set();
|
|
12203
|
+
skippedItems = [];
|
|
12204
|
+
run;
|
|
12083
12205
|
processed = 0;
|
|
12084
12206
|
remaining = 0;
|
|
12085
12207
|
progress = 0;
|
|
12086
12208
|
currentItem;
|
|
12087
12209
|
constructor() {
|
|
12088
12210
|
}
|
|
12089
|
-
|
|
12090
|
-
|
|
12211
|
+
/**
|
|
12212
|
+
* @param items the resources scheduled for this run
|
|
12213
|
+
* @param context the declared resources this run filtered out, plus what it filtered by — carried
|
|
12214
|
+
* through untouched so a consumer can distinguish "not loaded" from "not part of this run"
|
|
12215
|
+
*/
|
|
12216
|
+
init(e, r) {
|
|
12217
|
+
return this.total = e.length, this.totalItems = [...e], this.remaining = e.length, this.remainingItems = new Set(e), this.skippedItems = r?.skipped ?? [], this.run = r?.run, this.getProgress();
|
|
12091
12218
|
}
|
|
12092
12219
|
update(e, r, n, a) {
|
|
12093
|
-
const s =
|
|
12220
|
+
const s = L(e);
|
|
12094
12221
|
return s.success = r, a && (s.status = a), r ? this.downloadedItems.add(s) : this.failedItems.add(s), this.currentItem = s, this.context = n, this.processed++, this.remaining--, this.progress = Math.round(this.processed * 100 / this.total), this.currentItem = s, this.processedItems.add(s), this.remainingItems.delete(e), this.getProgress();
|
|
12095
12222
|
}
|
|
12096
12223
|
getProgress() {
|
|
@@ -12105,16 +12232,56 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12105
12232
|
currentItem: this.currentItem,
|
|
12106
12233
|
totalItems: this.totalItems,
|
|
12107
12234
|
processedItems: Array.from(this.processedItems.values()),
|
|
12108
|
-
remainingItems: Array.from(this.remainingItems.values())
|
|
12235
|
+
remainingItems: Array.from(this.remainingItems.values()),
|
|
12236
|
+
skippedItems: this.skippedItems,
|
|
12237
|
+
run: this.run
|
|
12109
12238
|
};
|
|
12110
12239
|
}
|
|
12111
12240
|
}
|
|
12112
|
-
|
|
12113
|
-
for (
|
|
12241
|
+
function Io(t, e) {
|
|
12242
|
+
for (const r of e)
|
|
12243
|
+
if (Array.isArray(r)) {
|
|
12244
|
+
if (r.every((n) => t.includes(n)))
|
|
12245
|
+
return true;
|
|
12246
|
+
} else if (t.includes(r))
|
|
12247
|
+
return true;
|
|
12248
|
+
return false;
|
|
12249
|
+
}
|
|
12250
|
+
function xo(t, e) {
|
|
12251
|
+
return ct$1(t).variables.map((r) => r.name).filter((r) => qn(e, r) === void 0);
|
|
12252
|
+
}
|
|
12253
|
+
function Ke(t, e, r) {
|
|
12254
|
+
const n = {
|
|
12255
|
+
applicationKey: r?.applicationKey,
|
|
12256
|
+
resourceTags: r?.resourceTags,
|
|
12257
|
+
environmentKeys: r?.environmentKeys
|
|
12258
|
+
}, a = t?.resources ?? [], s = ot$1(a), o = [], c = [], i = Array.isArray(r?.resourceTags) && r.resourceTags.length > 0;
|
|
12259
|
+
return a.forEach((u, g2) => {
|
|
12260
|
+
if (i) {
|
|
12261
|
+
if (!Array.isArray(u.tags) || !u.tags.length) {
|
|
12262
|
+
c.push({ resource: u, reason: "no-tags", id: s[g2] });
|
|
12263
|
+
return;
|
|
12264
|
+
}
|
|
12265
|
+
if (!Io(u.tags, r.resourceTags)) {
|
|
12266
|
+
c.push({ resource: u, reason: "tag-mismatch", id: s[g2] });
|
|
12267
|
+
return;
|
|
12268
|
+
}
|
|
12269
|
+
}
|
|
12270
|
+
const y2 = u.url ?? "", m = xo(y2, e), d = {
|
|
12271
|
+
...u,
|
|
12272
|
+
id: s[g2],
|
|
12273
|
+
rawUrl: y2,
|
|
12274
|
+
url: ut$1(y2, { ...e })
|
|
12275
|
+
};
|
|
12276
|
+
m.length && (d.unresolvedVariables = m), o.push(d);
|
|
12277
|
+
}), { scheduled: o, skipped: c, variables: e, run: n };
|
|
12278
|
+
}
|
|
12279
|
+
var ko = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, pt = (t, e, r, n) => {
|
|
12280
|
+
for (var a = Fo(e, r), s = t.length - 1, o; s >= 0; s--)
|
|
12114
12281
|
(o = t[s]) && (a = o(e, r, a) || a);
|
|
12115
|
-
return a &&
|
|
12282
|
+
return a && ko(e, r, a), a;
|
|
12116
12283
|
};
|
|
12117
|
-
const
|
|
12284
|
+
const Vo = {
|
|
12118
12285
|
missingModelHandling: {
|
|
12119
12286
|
autoGenerateProperties: true
|
|
12120
12287
|
},
|
|
@@ -12126,21 +12293,21 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12126
12293
|
commentChar: void 0
|
|
12127
12294
|
}
|
|
12128
12295
|
};
|
|
12129
|
-
let
|
|
12296
|
+
let de = class {
|
|
12130
12297
|
key;
|
|
12131
12298
|
core;
|
|
12132
|
-
cdRef = new
|
|
12299
|
+
cdRef = new Ue$1();
|
|
12133
12300
|
log = Y$1.child({ prefix: "AppLoader" });
|
|
12134
12301
|
registeredTransformers = [];
|
|
12135
|
-
options =
|
|
12136
|
-
csvParser = new
|
|
12302
|
+
options = Vo;
|
|
12303
|
+
csvParser = new wt(this);
|
|
12137
12304
|
currentConfig;
|
|
12138
12305
|
globalVariables = /* @__PURE__ */ new Map();
|
|
12139
12306
|
defaultVariables = /* @__PURE__ */ new Map();
|
|
12140
12307
|
progressListeners = /* @__PURE__ */ new Set();
|
|
12141
12308
|
currentProcessOptions;
|
|
12142
12309
|
currentContext = "";
|
|
12143
|
-
progressHandler = new
|
|
12310
|
+
progressHandler = new Le();
|
|
12144
12311
|
constructor() {
|
|
12145
12312
|
this.initDefaultVariables();
|
|
12146
12313
|
}
|
|
@@ -12207,6 +12374,18 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12207
12374
|
delete: (e) => {
|
|
12208
12375
|
const r = this.currentConfig.resources.findIndex((n) => n.key === e);
|
|
12209
12376
|
r > -1 && this.currentConfig.resources.splice(r, 1);
|
|
12377
|
+
},
|
|
12378
|
+
/**
|
|
12379
|
+
* What a `process(options)` call WOULD load, without loading it.
|
|
12380
|
+
*
|
|
12381
|
+
* Resolves the application preset, environments and variables exactly as `process()` does, then
|
|
12382
|
+
* reports both halves of the split: `scheduled` (tag-selected, urls resolved, ids assigned) and
|
|
12383
|
+
* `skipped` (declared but filtered out, with the reason). Safe to call repeatedly — it performs
|
|
12384
|
+
* no I/O and leaves the loader's state untouched.
|
|
12385
|
+
*/
|
|
12386
|
+
plan: (e) => {
|
|
12387
|
+
const { config: r, options: n, variables: a } = this.resolveRunContext(e);
|
|
12388
|
+
return Ke(r, a, n);
|
|
12210
12389
|
}
|
|
12211
12390
|
};
|
|
12212
12391
|
variables = {
|
|
@@ -12252,7 +12431,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12252
12431
|
}
|
|
12253
12432
|
};
|
|
12254
12433
|
transformers = {
|
|
12255
|
-
get: (e) => this.registeredTransformers.filter((r) =>
|
|
12434
|
+
get: (e) => this.registeredTransformers.filter((r) => Ne(r.applyTo, e.appyTo).length > 0),
|
|
12256
12435
|
getAll: () => this.registeredTransformers,
|
|
12257
12436
|
set: (e) => {
|
|
12258
12437
|
this.transformers.remove(e.key), this.registeredTransformers.push(e);
|
|
@@ -12263,9 +12442,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12263
12442
|
}
|
|
12264
12443
|
};
|
|
12265
12444
|
config = {
|
|
12266
|
-
get: () =>
|
|
12445
|
+
get: () => L(this.currentConfig),
|
|
12267
12446
|
set: (e) => {
|
|
12268
|
-
this.currentConfig =
|
|
12447
|
+
this.currentConfig = L(e);
|
|
12269
12448
|
},
|
|
12270
12449
|
fetch: async (e) => this.fetchConfig(e)
|
|
12271
12450
|
};
|
|
@@ -12343,16 +12522,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12343
12522
|
async process(e) {
|
|
12344
12523
|
if (!this.config)
|
|
12345
12524
|
throw new Error("There is no config present. Make sure to call loader.setConfig(..) or loader.fetchConfig(...)");
|
|
12346
|
-
this.currentContext =
|
|
12347
|
-
const r =
|
|
12348
|
-
|
|
12349
|
-
const y2 = this.getAppPreset(n, r);
|
|
12350
|
-
if (!y2)
|
|
12351
|
-
throw new Error(`The applicationKey ${r.applicationKey} does not exist`);
|
|
12352
|
-
r.resourceTags = r.resourceTags || y2?.resourceTags, r.variables = r.variables || y2?.variables;
|
|
12353
|
-
}
|
|
12354
|
-
const a = this.getEnvironments(n, r), s = this.getEvaluatedVariablesAsRecord(a, r), o = this.getHeaderConfigs(a), c = this.getQueryParamConfigs(a), i = this.getResourcesForConfigOptions(n, s, r), u = this.getLoaderOptions(n, r), m = await this.fetchResources(i, s, u, o, c);
|
|
12355
|
-
return this.currentProcessOptions = r, m;
|
|
12525
|
+
this.currentContext = ee();
|
|
12526
|
+
const { config: r, options: n, environments: a, variables: s } = this.resolveRunContext(e), o = this.getHeaderConfigs(a), c = this.getQueryParamConfigs(a), i = Ke(r, s, n), u = this.getLoaderOptions(r, n), g2 = await this.fetchResources(i, s, u, o, c);
|
|
12527
|
+
return this.currentProcessOptions = n, g2;
|
|
12356
12528
|
}
|
|
12357
12529
|
getHeaderConfigs(e) {
|
|
12358
12530
|
if (!e)
|
|
@@ -12373,31 +12545,24 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12373
12545
|
getLoaderOptions(e, r) {
|
|
12374
12546
|
return r?.options ? Object.assign({}, this.options, r.options) : e?.options ? Object.assign({}, this.options, e.options) : Object.assign({}, this.options);
|
|
12375
12547
|
}
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
}
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
for (const n of r)
|
|
12395
|
-
if (Array.isArray(n)) {
|
|
12396
|
-
if (n.every((a) => e.includes(a)))
|
|
12397
|
-
return true;
|
|
12398
|
-
} else if (e.includes(n))
|
|
12399
|
-
return true;
|
|
12400
|
-
return false;
|
|
12548
|
+
/**
|
|
12549
|
+
* Everything `process()` derives from the config before it touches the network.
|
|
12550
|
+
*
|
|
12551
|
+
* Shared with `resources.plan()` so a plan is guaranteed to describe what a process would really
|
|
12552
|
+
* do — the application preset, environments and variables all resolve identically.
|
|
12553
|
+
*/
|
|
12554
|
+
resolveRunContext(e) {
|
|
12555
|
+
if (!this.currentConfig)
|
|
12556
|
+
throw new Error("There is no config present. Make sure to call loader.setConfig(..) or loader.fetchConfig(...)");
|
|
12557
|
+
const r = L(e), n = L(this.currentConfig);
|
|
12558
|
+
if (r?.applicationKey) {
|
|
12559
|
+
const o = this.getAppPreset(n, r);
|
|
12560
|
+
if (!o)
|
|
12561
|
+
throw new Error(`The applicationKey ${r.applicationKey} does not exist`);
|
|
12562
|
+
r.resourceTags = r.resourceTags || o?.resourceTags, r.variables = r.variables || o?.variables;
|
|
12563
|
+
}
|
|
12564
|
+
const a = this.getEnvironments(n, r), s = this.getEvaluatedVariablesAsRecord(a, r);
|
|
12565
|
+
return { config: n, options: r, environments: a, variables: s };
|
|
12401
12566
|
}
|
|
12402
12567
|
evaluateVariables(e, r) {
|
|
12403
12568
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -12412,11 +12577,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12412
12577
|
}), this.globalVariables && this.globalVariables.forEach((o) => {
|
|
12413
12578
|
n.set(o.key, o);
|
|
12414
12579
|
});
|
|
12415
|
-
const a = Array.from(n.values()), s = {};
|
|
12580
|
+
const a = Array.from(n.values()).map((o) => ({ ...o })), s = {};
|
|
12416
12581
|
for (const o of a)
|
|
12417
12582
|
s[o.key] = o.value || "";
|
|
12418
12583
|
for (const o of a)
|
|
12419
|
-
o.value =
|
|
12584
|
+
o.value = ut$1(o.value, s);
|
|
12420
12585
|
return a;
|
|
12421
12586
|
}
|
|
12422
12587
|
getEvaluatedVariablesAsRecord(e, r) {
|
|
@@ -12446,7 +12611,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12446
12611
|
});
|
|
12447
12612
|
const s = {};
|
|
12448
12613
|
if (a.forEach((o) => {
|
|
12449
|
-
const c =
|
|
12614
|
+
const c = ut$1(o.value, { ...r });
|
|
12450
12615
|
s[o.key] = c;
|
|
12451
12616
|
}), Object.keys(s).length !== 0)
|
|
12452
12617
|
return s;
|
|
@@ -12469,7 +12634,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12469
12634
|
value: r.apiKey
|
|
12470
12635
|
});
|
|
12471
12636
|
}
|
|
12472
|
-
return a.map((s) => (s.value =
|
|
12637
|
+
return a.map((s) => (s.value = ut$1(s.value, { ...r }), s));
|
|
12473
12638
|
}
|
|
12474
12639
|
isDcuplCdn(e) {
|
|
12475
12640
|
return e.includes("cdn.dcupl.com");
|
|
@@ -12570,8 +12735,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12570
12735
|
transformer: i
|
|
12571
12736
|
};
|
|
12572
12737
|
this.registeredTransformers.push(u), s.push(u);
|
|
12573
|
-
const
|
|
12574
|
-
this.updateProgressListeners(
|
|
12738
|
+
const g2 = this.progressHandler.update(o, true, "transformer");
|
|
12739
|
+
this.updateProgressListeners(g2);
|
|
12575
12740
|
} catch (c) {
|
|
12576
12741
|
this.log.error("Failed to load transformer resource", c, {
|
|
12577
12742
|
url: o.url,
|
|
@@ -12632,10 +12797,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12632
12797
|
const c = (/* @__PURE__ */ new Date()).getTime();
|
|
12633
12798
|
let i;
|
|
12634
12799
|
try {
|
|
12635
|
-
const { url: u, headers:
|
|
12800
|
+
const { url: u, headers: g2 } = this.getRequestOptions(o, r, n, a), y2 = await fetch(u, { headers: g2 });
|
|
12636
12801
|
if (i = y2.status, !y2.ok)
|
|
12637
12802
|
throw new Error(`Failed to fetch data from ${u}`);
|
|
12638
|
-
const
|
|
12803
|
+
const m = b.now(), d = await y2.json(), f = b.now(), l = Array.isArray(d) ? d : [d], b$12 = [];
|
|
12639
12804
|
for (const p2 of l)
|
|
12640
12805
|
this.isValidModelDefinitionShape(p2) ? b$12.push(p2) : this.emitInvalidModelDefinitionError(
|
|
12641
12806
|
o,
|
|
@@ -12646,9 +12811,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12646
12811
|
const p2 = this.progressHandler.update(o, false, "model", i);
|
|
12647
12812
|
return this.updateProgressListeners(p2), Promise.resolve(null);
|
|
12648
12813
|
}
|
|
12649
|
-
const C2 = b$12.map((p2) => p2.key).join("__"),
|
|
12650
|
-
if (Array.isArray(
|
|
12651
|
-
const p2 =
|
|
12814
|
+
const C2 = b$12.map((p2) => p2.key).join("__"), h2 = b.getEntriesByName(u.toString());
|
|
12815
|
+
if (Array.isArray(h2) && h2[0]) {
|
|
12816
|
+
const p2 = h2[0], _2 = {
|
|
12652
12817
|
name: o.url,
|
|
12653
12818
|
type: "resource",
|
|
12654
12819
|
createdAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
@@ -12661,11 +12826,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12661
12826
|
responseEnd: p2.responseEnd,
|
|
12662
12827
|
responseStart: p2.responseStart,
|
|
12663
12828
|
duration: p2.duration,
|
|
12664
|
-
parseEnd:
|
|
12665
|
-
parseStart:
|
|
12829
|
+
parseEnd: f,
|
|
12830
|
+
parseStart: m,
|
|
12666
12831
|
decodedBodySize: p2.decodedBodySize,
|
|
12667
12832
|
encodedBodySize: p2.encodedBodySize,
|
|
12668
|
-
end:
|
|
12833
|
+
end: f
|
|
12669
12834
|
}
|
|
12670
12835
|
};
|
|
12671
12836
|
this.core.analyticsController.set({ value: _2, context: this.currentContext });
|
|
@@ -12673,10 +12838,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12673
12838
|
for (const p2 of b$12)
|
|
12674
12839
|
this.addModelOrView(o, p2);
|
|
12675
12840
|
const P2 = this.progressHandler.update(o, true, "model");
|
|
12676
|
-
return this.updateProgressListeners(P2), Promise.resolve(
|
|
12841
|
+
return this.updateProgressListeners(P2), Promise.resolve(d);
|
|
12677
12842
|
} catch (u) {
|
|
12678
12843
|
this.log.error("Failed to load model resource", u, { url: o.url });
|
|
12679
|
-
const
|
|
12844
|
+
const g2 = {
|
|
12680
12845
|
title: o.url,
|
|
12681
12846
|
type: "loader",
|
|
12682
12847
|
errorGroup: "ResourceError",
|
|
@@ -12684,7 +12849,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12684
12849
|
meta: o,
|
|
12685
12850
|
description: u?.message
|
|
12686
12851
|
};
|
|
12687
|
-
this.setError(
|
|
12852
|
+
this.setError(g2);
|
|
12688
12853
|
const y2 = this.progressHandler.update(o, false, "model", i);
|
|
12689
12854
|
return this.updateProgressListeners(y2), Promise.resolve(null);
|
|
12690
12855
|
}
|
|
@@ -12700,29 +12865,29 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12700
12865
|
}
|
|
12701
12866
|
async handleDataResources(e, r, n, a, s, o) {
|
|
12702
12867
|
const c = e.map(async (i) => {
|
|
12703
|
-
const u =
|
|
12868
|
+
const u = ee(), g2 = {
|
|
12704
12869
|
placeholderUid: u,
|
|
12705
12870
|
data: [],
|
|
12706
12871
|
model: i.model
|
|
12707
12872
|
};
|
|
12708
|
-
this.core.registerContainer(
|
|
12873
|
+
this.core.registerContainer(g2);
|
|
12709
12874
|
const y2 = (/* @__PURE__ */ new Date()).getTime();
|
|
12710
|
-
let
|
|
12875
|
+
let m;
|
|
12711
12876
|
try {
|
|
12712
|
-
const { url:
|
|
12713
|
-
if (
|
|
12714
|
-
throw new Error(`Failed to fetch data from ${
|
|
12877
|
+
const { url: d, headers: f } = this.getRequestOptions(i, r, a, s), l = await fetch(d, { headers: f });
|
|
12878
|
+
if (m = l.status, !l.ok)
|
|
12879
|
+
throw new Error(`Failed to fetch data from ${d}`);
|
|
12715
12880
|
const b$12 = l.headers.get("content-type"), C2 = b.now();
|
|
12716
|
-
let
|
|
12717
|
-
i.url.endsWith(".csv") || b$12?.includes("text/csv") ?
|
|
12881
|
+
let h2;
|
|
12882
|
+
i.url.endsWith(".csv") || b$12?.includes("text/csv") ? h2 = await l.text() : h2 = await l.json();
|
|
12718
12883
|
const P2 = b.now(), p2 = b.now(), _2 = this.handleTransformerLogic(
|
|
12719
|
-
|
|
12884
|
+
h2,
|
|
12720
12885
|
i,
|
|
12721
12886
|
"rawFileTransformer",
|
|
12722
12887
|
o || []
|
|
12723
|
-
),
|
|
12724
|
-
let
|
|
12725
|
-
if (!
|
|
12888
|
+
), I = b.now();
|
|
12889
|
+
let H2 = [], z2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
|
|
12890
|
+
if (!z2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties)) {
|
|
12726
12891
|
const w2 = i.options?.autoGenerateProperties ?? n?.missingModelHandling?.autoGenerateProperties ?? true;
|
|
12727
12892
|
this.addModelOrView(i, {
|
|
12728
12893
|
key: i.model,
|
|
@@ -12730,43 +12895,43 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12730
12895
|
autoGenerateKey: i.options?.autoGenerateKey || false,
|
|
12731
12896
|
keyProperty: i?.options?.keyProperty || "key",
|
|
12732
12897
|
keyPropertySeparator: i?.options?.keyPropertySeparator
|
|
12733
|
-
}),
|
|
12898
|
+
}), z2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
|
|
12734
12899
|
}
|
|
12735
|
-
const
|
|
12736
|
-
let
|
|
12900
|
+
const dt2 = b.now();
|
|
12901
|
+
let fe2 = {
|
|
12737
12902
|
sourceColumns: [],
|
|
12738
12903
|
coercionFailureSamples: {},
|
|
12739
12904
|
origin: i.url
|
|
12740
12905
|
};
|
|
12741
12906
|
if (i.url.endsWith(".csv") || b$12?.includes("text/csv")) {
|
|
12742
|
-
if (
|
|
12743
|
-
const w2 = this.csvParser.getJsonFromCSVStringWithMetadata(_2,
|
|
12744
|
-
|
|
12907
|
+
if (z2) {
|
|
12908
|
+
const w2 = this.csvParser.getJsonFromCSVStringWithMetadata(_2, z2, i);
|
|
12909
|
+
H2 = w2.data, fe2 = {
|
|
12745
12910
|
sourceColumns: w2.sourceColumns,
|
|
12746
12911
|
coercionFailureSamples: w2.coercionFailureSamples,
|
|
12747
12912
|
origin: i.url
|
|
12748
12913
|
};
|
|
12749
12914
|
}
|
|
12750
12915
|
} else
|
|
12751
|
-
|
|
12752
|
-
const
|
|
12916
|
+
H2 = _2;
|
|
12917
|
+
const ft2 = b.now(), ht2 = b.now();
|
|
12753
12918
|
try {
|
|
12754
|
-
|
|
12919
|
+
H2 = this.handleTransformerLogic(H2, i, "parsedFileTransformer", o || []);
|
|
12755
12920
|
} catch (w2) {
|
|
12756
12921
|
this.log.error("Transformer error", w2, { resource: i.url, model: i.model });
|
|
12757
12922
|
}
|
|
12758
|
-
const
|
|
12923
|
+
const gt2 = b.now(), he2 = {
|
|
12759
12924
|
placeholderUid: u,
|
|
12760
12925
|
model: i.model,
|
|
12761
|
-
data:
|
|
12926
|
+
data: H2,
|
|
12762
12927
|
type: i.options?.updateType || n.defaultDataContainerUpdateType,
|
|
12763
12928
|
keyProperty: i?.options?.keyProperty,
|
|
12764
12929
|
keyPropertySeparator: i?.options?.keyPropertySeparator,
|
|
12765
12930
|
autoGenerateKey: i.options?.autoGenerateKey,
|
|
12766
12931
|
autoGenerateProperties: i.options?.autoGenerateProperties
|
|
12767
|
-
},
|
|
12768
|
-
if (Array.isArray(
|
|
12769
|
-
const w2 =
|
|
12932
|
+
}, ee2 = b.getEntriesByName(d.toString());
|
|
12933
|
+
if (Array.isArray(ee2) && ee2[0]) {
|
|
12934
|
+
const w2 = ee2[0], mt2 = {
|
|
12770
12935
|
name: i.url,
|
|
12771
12936
|
type: "resource",
|
|
12772
12937
|
createdAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
@@ -12781,77 +12946,78 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12781
12946
|
duration: w2.duration,
|
|
12782
12947
|
parseEnd: P2,
|
|
12783
12948
|
rawTransformStart: p2,
|
|
12784
|
-
rawTransformEnd:
|
|
12949
|
+
rawTransformEnd: I,
|
|
12785
12950
|
parseStart: C2,
|
|
12786
|
-
csvToJsonStart:
|
|
12787
|
-
csvToJsonEnd:
|
|
12788
|
-
parsedTransformStart:
|
|
12789
|
-
parsedTransformEnd:
|
|
12951
|
+
csvToJsonStart: dt2,
|
|
12952
|
+
csvToJsonEnd: ft2,
|
|
12953
|
+
parsedTransformStart: ht2,
|
|
12954
|
+
parsedTransformEnd: gt2,
|
|
12790
12955
|
decodedBodySize: w2.decodedBodySize,
|
|
12791
12956
|
encodedBodySize: w2.encodedBodySize,
|
|
12792
12957
|
end: P2
|
|
12793
12958
|
}
|
|
12794
12959
|
};
|
|
12795
|
-
this.core.analyticsController.set({ value:
|
|
12960
|
+
this.core.analyticsController.set({ value: mt2, context: this.currentContext });
|
|
12796
12961
|
}
|
|
12797
|
-
this.core.updateRegisteredContainer(
|
|
12798
|
-
const
|
|
12799
|
-
return this.updateProgressListeners(
|
|
12800
|
-
} catch (
|
|
12801
|
-
this.log.error("Failed to load data resource",
|
|
12802
|
-
const
|
|
12962
|
+
this.core.updateRegisteredContainer(he2, fe2);
|
|
12963
|
+
const yt2 = this.progressHandler.update(i, true, "data", m);
|
|
12964
|
+
return this.updateProgressListeners(yt2), Promise.resolve(he2);
|
|
12965
|
+
} catch (d) {
|
|
12966
|
+
this.log.error("Failed to load data resource", d, { url: i.url, model: i.model });
|
|
12967
|
+
const f = {
|
|
12803
12968
|
title: i.url,
|
|
12804
12969
|
type: "loader",
|
|
12805
12970
|
errorGroup: "ResourceError",
|
|
12806
12971
|
errorType: "InvalidResource",
|
|
12807
12972
|
meta: i,
|
|
12808
12973
|
model: i.model,
|
|
12809
|
-
description:
|
|
12974
|
+
description: d?.message
|
|
12810
12975
|
};
|
|
12811
|
-
this.setError(
|
|
12812
|
-
const l = this.progressHandler.update(i, false, "data",
|
|
12976
|
+
this.setError(f), this.core.removeRegisteredContainer(g2);
|
|
12977
|
+
const l = this.progressHandler.update(i, false, "data", m);
|
|
12813
12978
|
return this.updateProgressListeners(l), Promise.resolve();
|
|
12814
12979
|
}
|
|
12815
12980
|
});
|
|
12816
12981
|
return await Promise.all(c), true;
|
|
12817
12982
|
}
|
|
12818
12983
|
async fetchResources(e, r, n, a, s) {
|
|
12819
|
-
|
|
12984
|
+
const o = e.scheduled;
|
|
12985
|
+
this.progressHandler = new Le(), this.progressHandler.init(o, { skipped: e.skipped, run: e.run }), this.updateProgressListeners(this.progressHandler.getProgress());
|
|
12820
12986
|
try {
|
|
12821
12987
|
if (!this.core)
|
|
12822
12988
|
throw this.log.error("dcupl not connected. Did you add your loader to dcupl? -> dcupl.addRunner(loader)"), new Error();
|
|
12823
|
-
const
|
|
12989
|
+
const c = o.filter(
|
|
12824
12990
|
(d) => d.type === "script"
|
|
12825
12991
|
);
|
|
12826
|
-
await this.handleScriptResources(
|
|
12827
|
-
const
|
|
12992
|
+
await this.handleScriptResources(c, r, a, s);
|
|
12993
|
+
const i = o.filter(
|
|
12828
12994
|
(d) => d.type === "operator"
|
|
12829
12995
|
);
|
|
12830
|
-
await this.handleOperatorResources(
|
|
12831
|
-
const
|
|
12996
|
+
await this.handleOperatorResources(i, r, a, s);
|
|
12997
|
+
const u = o.filter(
|
|
12832
12998
|
(d) => d.type === "transformer"
|
|
12833
|
-
),
|
|
12834
|
-
|
|
12999
|
+
), g2 = await this.handleTransformerResources(
|
|
13000
|
+
u,
|
|
12835
13001
|
r,
|
|
12836
13002
|
a,
|
|
12837
13003
|
s
|
|
12838
|
-
),
|
|
13004
|
+
), y2 = o.filter(
|
|
12839
13005
|
(d) => d.type === "model"
|
|
12840
13006
|
);
|
|
12841
|
-
await this.handleModelResources(
|
|
12842
|
-
const
|
|
13007
|
+
await this.handleModelResources(y2, r, a, s);
|
|
13008
|
+
const m = o.filter(
|
|
12843
13009
|
(d) => d.type === "data"
|
|
12844
13010
|
);
|
|
12845
13011
|
return await this.handleDataResources(
|
|
12846
|
-
|
|
13012
|
+
m,
|
|
12847
13013
|
r,
|
|
12848
13014
|
n,
|
|
12849
13015
|
a,
|
|
12850
13016
|
s,
|
|
12851
|
-
|
|
13017
|
+
g2
|
|
12852
13018
|
), true;
|
|
12853
|
-
} catch (
|
|
12854
|
-
return this.log.error("Failed to fetch resources",
|
|
13019
|
+
} catch (c) {
|
|
13020
|
+
return this.log.error("Failed to fetch resources", c), false;
|
|
12855
13021
|
}
|
|
12856
13022
|
}
|
|
12857
13023
|
addModelOrView(e, r) {
|
|
@@ -12872,7 +13038,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12872
13038
|
}
|
|
12873
13039
|
handleTransformerLogic(e, r, n, a) {
|
|
12874
13040
|
for (const s of a)
|
|
12875
|
-
s.type === n && s.transformer && (!s.applyTo.length && !r.tags?.length && (e = s.transformer(r, e)),
|
|
13041
|
+
s.type === n && s.transformer && (!s.applyTo.length && !r.tags?.length && (e = s.transformer(r, e)), Ne(s.applyTo, r.tags || []).length && (e = s.transformer(r, e)));
|
|
12876
13042
|
return e;
|
|
12877
13043
|
}
|
|
12878
13044
|
updateProgressListeners(e) {
|
|
@@ -12887,29 +13053,29 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12887
13053
|
this.core.modelParser.qualityController.enabled && this.core.modelParser.qualityController.setError(e);
|
|
12888
13054
|
}
|
|
12889
13055
|
};
|
|
12890
|
-
|
|
12891
|
-
|
|
13056
|
+
pt([
|
|
13057
|
+
Ve$1({
|
|
12892
13058
|
scope: "global",
|
|
12893
13059
|
origin: "loader",
|
|
12894
13060
|
type: "loader_config_fetched",
|
|
12895
13061
|
connectMessage: true,
|
|
12896
13062
|
connectMessageResult: true
|
|
12897
13063
|
})
|
|
12898
|
-
],
|
|
12899
|
-
|
|
12900
|
-
|
|
13064
|
+
], de.prototype, "fetchConfig");
|
|
13065
|
+
pt([
|
|
13066
|
+
Ve$1({
|
|
12901
13067
|
scope: "global",
|
|
12902
13068
|
origin: "loader",
|
|
12903
13069
|
type: "loader_processed",
|
|
12904
13070
|
connectMessage: true
|
|
12905
13071
|
})
|
|
12906
|
-
],
|
|
12907
|
-
const
|
|
13072
|
+
], de.prototype, "process");
|
|
13073
|
+
const Uo = de;
|
|
12908
13074
|
let dcupl;
|
|
12909
13075
|
let loader;
|
|
12910
13076
|
async function init(options) {
|
|
12911
13077
|
dcupl = new oe$1(options.options);
|
|
12912
|
-
loader = new
|
|
13078
|
+
loader = new Uo();
|
|
12913
13079
|
dcupl.loaders.add(loader, "default");
|
|
12914
13080
|
if (options.appLoaderConfig) {
|
|
12915
13081
|
await loader.config.fetch(options.appLoaderConfig);
|