@dcupl/bundle 2.0.0-beta.2 → 2.0.0-beta.5

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.
@@ -521,44 +521,44 @@
521
521
  g$1.Request = Request;
522
522
  g$1.Response = Response;
523
523
  }
524
- var St$1 = typeof global == "object" && global && global.Object === Object && global, ur$1 = typeof self == "object" && self && self.Object === Object && self, M$2 = St$1 || ur$1 || Function("return this")(), A = M$2.Symbol, Tt$1 = Object.prototype, cr$1 = Tt$1.hasOwnProperty, fr$1 = Tt$1.toString, G$4 = A ? A.toStringTag : void 0;
524
+ var St$1 = typeof global == "object" && global && global.Object === Object && global, ur$1 = typeof self == "object" && self && self.Object === Object && self, C$2 = St$1 || ur$1 || Function("return this")(), A$1 = C$2.Symbol, Tt$1 = Object.prototype, cr$1 = Tt$1.hasOwnProperty, fr$1 = Tt$1.toString, G$5 = A$1 ? A$1.toStringTag : void 0;
525
525
  function lr$1(r) {
526
- var e = cr$1.call(r, G$4), t = r[G$4];
526
+ var e = cr$1.call(r, G$5), t = r[G$5];
527
527
  try {
528
- r[G$4] = void 0;
528
+ r[G$5] = void 0;
529
529
  var n = true;
530
530
  } catch {
531
531
  }
532
532
  var s = fr$1.call(r);
533
- return n && (e ? r[G$4] = t : delete r[G$4]), s;
533
+ return n && (e ? r[G$5] = t : delete r[G$5]), s;
534
534
  }
535
535
  var dr$1 = Object.prototype, hr$1 = dr$1.toString;
536
536
  function pr$1(r) {
537
537
  return hr$1.call(r);
538
538
  }
539
- var gr$1 = "[object Null]", yr$1 = "[object Undefined]", Le$2 = A ? A.toStringTag : void 0;
540
- function N$4(r) {
539
+ var gr$1 = "[object Null]", yr$1 = "[object Undefined]", Le$2 = A$1 ? A$1.toStringTag : void 0;
540
+ function j$2(r) {
541
541
  return r == null ? r === void 0 ? yr$1 : gr$1 : Le$2 && Le$2 in Object(r) ? lr$1(r) : pr$1(r);
542
542
  }
543
543
  function $$2(r) {
544
544
  return r != null && typeof r == "object";
545
545
  }
546
546
  var mr$1 = "[object Symbol]";
547
- function R$1(r) {
548
- return typeof r == "symbol" || $$2(r) && N$4(r) == mr$1;
547
+ function P$2(r) {
548
+ return typeof r == "symbol" || $$2(r) && j$2(r) == mr$1;
549
549
  }
550
- function B$2(r, e) {
550
+ function B$1(r, e) {
551
551
  for (var t = -1, n = r == null ? 0 : r.length, s = Array(n); ++t < n; )
552
552
  s[t] = e(r[t], t, r);
553
553
  return s;
554
554
  }
555
- var v$1 = Array.isArray, Ge$2 = A ? A.prototype : void 0, ke$2 = Ge$2 ? Ge$2.toString : void 0;
555
+ var v$1 = Array.isArray, Ge$3 = A$1 ? A$1.prototype : void 0, ke$2 = Ge$3 ? Ge$3.toString : void 0;
556
556
  function ue$1(r) {
557
557
  if (typeof r == "string")
558
558
  return r;
559
559
  if (v$1(r))
560
- return B$2(r, ue$1) + "";
561
- if (R$1(r))
560
+ return B$1(r, ue$1) + "";
561
+ if (P$2(r))
562
562
  return ke$2 ? ke$2.call(r) : "";
563
563
  var e = r + "";
564
564
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
@@ -573,7 +573,7 @@
573
573
  function Ar$1(r) {
574
574
  return r && r.slice(0, vr$1(r) + 1).replace(wr$1, "");
575
575
  }
576
- function Q$2(r) {
576
+ function E$3(r) {
577
577
  var e = typeof r;
578
578
  return r != null && (e == "object" || e == "function");
579
579
  }
@@ -581,11 +581,11 @@
581
581
  function _r$1(r) {
582
582
  if (typeof r == "number")
583
583
  return r;
584
- if (R$1(r))
584
+ if (P$2(r))
585
585
  return Be$2;
586
- if (Q$2(r)) {
586
+ if (E$3(r)) {
587
587
  var e = typeof r.valueOf == "function" ? r.valueOf() : r;
588
- r = Q$2(e) ? e + "" : e;
588
+ r = E$3(e) ? e + "" : e;
589
589
  }
590
590
  if (typeof r != "string")
591
591
  return r === 0 ? r : +r;
@@ -612,20 +612,20 @@
612
612
  }
613
613
  var Mr$1 = "[object AsyncFunction]", Dr$1 = "[object Function]", Ir$1 = "[object GeneratorFunction]", Er$1 = "[object Proxy]";
614
614
  function Ot$1(r) {
615
- if (!Q$2(r))
615
+ if (!E$3(r))
616
616
  return false;
617
- var e = N$4(r);
617
+ var e = j$2(r);
618
618
  return e == Dr$1 || e == Ir$1 || e == Mr$1 || e == Er$1;
619
619
  }
620
- var pe = M$2["__core-js_shared__"], Ue$3 = (function() {
620
+ var pe = C$2["__core-js_shared__"], Ue$2 = (function() {
621
621
  var r = /[^.]+$/.exec(pe && pe.keys && pe.keys.IE_PROTO || "");
622
622
  return r ? "Symbol(src)_1." + r : "";
623
623
  })();
624
624
  function Qr$1(r) {
625
- return !!Ue$3 && Ue$3 in r;
625
+ return !!Ue$2 && Ue$2 in r;
626
626
  }
627
627
  var jr$1 = Function.prototype, Nr$1 = jr$1.toString;
628
- function q$2(r) {
628
+ function N$3(r) {
629
629
  if (r != null) {
630
630
  try {
631
631
  return Nr$1.call(r);
@@ -642,23 +642,23 @@
642
642
  "^" + Fr$1.call(Lr$1).replace(qr$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
643
643
  );
644
644
  function kr$1(r) {
645
- if (!Q$2(r) || Qr$1(r))
645
+ if (!E$3(r) || Qr$1(r))
646
646
  return false;
647
647
  var e = Ot$1(r) ? Gr$1 : Kr$1;
648
- return e.test(q$2(r));
648
+ return e.test(N$3(r));
649
649
  }
650
650
  function Br$1(r, e) {
651
651
  return r?.[e];
652
652
  }
653
- function K$1(r, e) {
653
+ function q$2(r, e) {
654
654
  var t = Br$1(r, e);
655
655
  return kr$1(t) ? t : void 0;
656
656
  }
657
- var ve$2 = K$1(M$2, "WeakMap"), He$2 = Object.create, zr$1 = /* @__PURE__ */ (function() {
657
+ var ve$2 = q$2(C$2, "WeakMap"), He$2 = Object.create, zr$1 = /* @__PURE__ */ (function() {
658
658
  function r() {
659
659
  }
660
660
  return function(e) {
661
- if (!Q$2(e))
661
+ if (!E$3(e))
662
662
  return {};
663
663
  if (He$2)
664
664
  return He$2(e);
@@ -700,7 +700,7 @@
700
700
  }
701
701
  var ie$2 = (function() {
702
702
  try {
703
- var r = K$1(Object, "defineProperty");
703
+ var r = q$2(Object, "defineProperty");
704
704
  return r({}, "", {}), r;
705
705
  } catch {
706
706
  }
@@ -778,7 +778,7 @@
778
778
  function Ie$2(r) {
779
779
  return typeof r == "number" && r > -1 && r % 1 == 0 && r <= pn$1;
780
780
  }
781
- function L$2(r) {
781
+ function F(r) {
782
782
  return r != null && Ie$2(r.length) && !Ot$1(r);
783
783
  }
784
784
  var gn$1 = Object.prototype;
@@ -792,35 +792,35 @@
792
792
  return n;
793
793
  }
794
794
  var mn$1 = "[object Arguments]";
795
- function Je$2(r) {
796
- return $$2(r) && N$4(r) == mn$1;
795
+ function Je$3(r) {
796
+ return $$2(r) && j$2(r) == mn$1;
797
797
  }
798
- var Mt$1 = Object.prototype, bn$1 = Mt$1.hasOwnProperty, vn$1 = Mt$1.propertyIsEnumerable, Ee$2 = Je$2(/* @__PURE__ */ (function() {
798
+ var Mt$1 = Object.prototype, bn$1 = Mt$1.hasOwnProperty, vn$1 = Mt$1.propertyIsEnumerable, Ee$2 = Je$3(/* @__PURE__ */ (function() {
799
799
  return arguments;
800
- })()) ? Je$2 : function(r) {
800
+ })()) ? Je$3 : function(r) {
801
801
  return $$2(r) && bn$1.call(r, "callee") && !vn$1.call(r, "callee");
802
802
  };
803
803
  function wn$1() {
804
804
  return false;
805
805
  }
806
- var Dt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Ze$2 = Dt$1 && typeof module == "object" && module && !module.nodeType && module, An$1 = Ze$2 && Ze$2.exports === Dt$1, Ve$2 = An$1 ? M$2.Buffer : void 0, xn$1 = Ve$2 ? Ve$2.isBuffer : void 0, oe$1 = xn$1 || wn$1, Sn$1 = "[object Arguments]", Tn$1 = "[object Array]", On$1 = "[object Boolean]", _n$1 = "[object Date]", $n$1 = "[object Error]", Cn$1 = "[object Function]", Mn$1 = "[object Map]", Dn$1 = "[object Number]", In$1 = "[object Object]", En$1 = "[object RegExp]", Qn$1 = "[object Set]", jn$1 = "[object String]", Nn$1 = "[object WeakMap]", qn$1 = "[object ArrayBuffer]", Kn$1 = "[object DataView]", Pn$1 = "[object Float32Array]", Rn$1 = "[object Float64Array]", Fn$1 = "[object Int8Array]", Ln$1 = "[object Int16Array]", Gn$1 = "[object Int32Array]", kn$1 = "[object Uint8Array]", Bn$1 = "[object Uint8ClampedArray]", zn$1 = "[object Uint16Array]", Un$1 = "[object Uint32Array]", y$2 = {};
807
- y$2[Pn$1] = y$2[Rn$1] = y$2[Fn$1] = y$2[Ln$1] = y$2[Gn$1] = y$2[kn$1] = y$2[Bn$1] = y$2[zn$1] = y$2[Un$1] = true;
808
- y$2[Sn$1] = y$2[Tn$1] = y$2[qn$1] = y$2[On$1] = y$2[Kn$1] = y$2[_n$1] = y$2[$n$1] = y$2[Cn$1] = y$2[Mn$1] = y$2[Dn$1] = y$2[In$1] = y$2[En$1] = y$2[Qn$1] = y$2[jn$1] = y$2[Nn$1] = false;
806
+ var Dt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Ze$2 = Dt$1 && typeof module == "object" && module && !module.nodeType && module, An$1 = Ze$2 && Ze$2.exports === Dt$1, Ve$2 = An$1 ? C$2.Buffer : void 0, xn$1 = Ve$2 ? Ve$2.isBuffer : void 0, oe$1 = xn$1 || wn$1, Sn$1 = "[object Arguments]", Tn$1 = "[object Array]", On$1 = "[object Boolean]", _n$1 = "[object Date]", $n$1 = "[object Error]", Cn$1 = "[object Function]", Mn$1 = "[object Map]", Dn$1 = "[object Number]", In$1 = "[object Object]", En$1 = "[object RegExp]", Qn$1 = "[object Set]", jn$1 = "[object String]", Nn$1 = "[object WeakMap]", qn$1 = "[object ArrayBuffer]", Kn$1 = "[object DataView]", Pn$1 = "[object Float32Array]", Rn$1 = "[object Float64Array]", Fn$1 = "[object Int8Array]", Ln$1 = "[object Int16Array]", Gn$1 = "[object Int32Array]", kn$1 = "[object Uint8Array]", Bn$1 = "[object Uint8ClampedArray]", zn$1 = "[object Uint16Array]", Un$1 = "[object Uint32Array]", y$1 = {};
807
+ y$1[Pn$1] = y$1[Rn$1] = y$1[Fn$1] = y$1[Ln$1] = y$1[Gn$1] = y$1[kn$1] = y$1[Bn$1] = y$1[zn$1] = y$1[Un$1] = true;
808
+ y$1[Sn$1] = y$1[Tn$1] = y$1[qn$1] = y$1[On$1] = y$1[Kn$1] = y$1[_n$1] = y$1[$n$1] = y$1[Cn$1] = y$1[Mn$1] = y$1[Dn$1] = y$1[In$1] = y$1[En$1] = y$1[Qn$1] = y$1[jn$1] = y$1[Nn$1] = false;
809
809
  function Hn$1(r) {
810
- return $$2(r) && Ie$2(r.length) && !!y$2[N$4(r)];
810
+ return $$2(r) && Ie$2(r.length) && !!y$1[j$2(r)];
811
811
  }
812
- function Z$1(r) {
812
+ function V$1(r) {
813
813
  return function(e) {
814
814
  return r(e);
815
815
  };
816
816
  }
817
- var It$1 = typeof exports == "object" && exports && !exports.nodeType && exports, z$1 = It$1 && typeof module == "object" && module && !module.nodeType && module, Wn$1 = z$1 && z$1.exports === It$1, ge$1 = Wn$1 && St$1.process, F = (function() {
817
+ var It$1 = typeof exports == "object" && exports && !exports.nodeType && exports, z$1 = It$1 && typeof module == "object" && module && !module.nodeType && module, Wn$1 = z$1 && z$1.exports === It$1, ge$1 = Wn$1 && St$1.process, R$1 = (function() {
818
818
  try {
819
819
  var r = z$1 && z$1.require && z$1.require("util").types;
820
820
  return r || ge$1 && ge$1.binding && ge$1.binding("util");
821
821
  } catch {
822
822
  }
823
- })(), Xe$2 = F && F.isTypedArray, Et$1 = Xe$2 ? Z$1(Xe$2) : Hn$1, Jn$1 = Object.prototype, Zn$1 = Jn$1.hasOwnProperty;
823
+ })(), Xe$2 = R$1 && R$1.isTypedArray, Et$1 = Xe$2 ? V$1(Xe$2) : Hn$1, Jn$1 = Object.prototype, Zn$1 = Jn$1.hasOwnProperty;
824
824
  function Vn$1(r, e) {
825
825
  var t = v$1(r), n = !t && Ee$2(r), s = !t && !n && oe$1(r), i = !t && !n && !s && Et$1(r), o = t || n || s || i, a = o ? yn$1(r.length, String) : [], u = a.length;
826
826
  for (var c in r)
@@ -846,16 +846,16 @@
846
846
  return e;
847
847
  }
848
848
  function fe$1(r) {
849
- return L$2(r) ? Vn$1(r) : jt$1(r);
849
+ return F(r) ? Vn$1(r) : jt$1(r);
850
850
  }
851
851
  var ts$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, rs$1 = /^\w*$/;
852
852
  function Qe$2(r, e) {
853
853
  if (v$1(r))
854
854
  return false;
855
855
  var t = typeof r;
856
- return t == "number" || t == "symbol" || t == "boolean" || r == null || R$1(r) ? true : rs$1.test(r) || !ts$1.test(r) || e != null && r in Object(e);
856
+ return t == "number" || t == "symbol" || t == "boolean" || r == null || P$2(r) ? true : rs$1.test(r) || !ts$1.test(r) || e != null && r in Object(e);
857
857
  }
858
- var U$3 = K$1(Object, "create");
858
+ var U$3 = q$2(Object, "create");
859
859
  function ns$1() {
860
860
  this.__data__ = U$3 ? U$3(null) : {}, this.size = 0;
861
861
  }
@@ -882,18 +882,18 @@
882
882
  var t = this.__data__;
883
883
  return this.size += this.has(r) ? 0 : 1, t[r] = U$3 && e === void 0 ? ds$1 : e, this;
884
884
  }
885
- function j$2(r) {
885
+ function Q$3(r) {
886
886
  var e = -1, t = r == null ? 0 : r.length;
887
887
  for (this.clear(); ++e < t; ) {
888
888
  var n = r[e];
889
889
  this.set(n[0], n[1]);
890
890
  }
891
891
  }
892
- j$2.prototype.clear = ns$1;
893
- j$2.prototype.delete = ss$1;
894
- j$2.prototype.get = us$1;
895
- j$2.prototype.has = ls$1;
896
- j$2.prototype.set = hs$1;
892
+ Q$3.prototype.clear = ns$1;
893
+ Q$3.prototype.delete = ss$1;
894
+ Q$3.prototype.get = us$1;
895
+ Q$3.prototype.has = ls$1;
896
+ Q$3.prototype.set = hs$1;
897
897
  function ps$1() {
898
898
  this.__data__ = [], this.size = 0;
899
899
  }
@@ -922,24 +922,24 @@
922
922
  var t = this.__data__, n = le$1(t, r);
923
923
  return n < 0 ? (++this.size, t.push([r, e])) : t[n][1] = e, this;
924
924
  }
925
- function D$1(r) {
925
+ function M$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
- D$1.prototype.clear = ps$1;
933
- D$1.prototype.delete = ms$1;
934
- D$1.prototype.get = bs$1;
935
- D$1.prototype.has = vs$1;
936
- D$1.prototype.set = ws$1;
937
- var H$2 = K$1(M$2, "Map");
932
+ M$2.prototype.clear = ps$1;
933
+ M$2.prototype.delete = ms$1;
934
+ M$2.prototype.get = bs$1;
935
+ M$2.prototype.has = vs$1;
936
+ M$2.prototype.set = ws$1;
937
+ var H$2 = q$2(C$2, "Map");
938
938
  function As$1() {
939
939
  this.size = 0, this.__data__ = {
940
- hash: new j$2(),
941
- map: new (H$2 || D$1)(),
942
- string: new j$2()
940
+ hash: new Q$3(),
941
+ map: new (H$2 || M$2)(),
942
+ string: new Q$3()
943
943
  };
944
944
  }
945
945
  function xs$1(r) {
@@ -964,18 +964,18 @@
964
964
  var t = de(this, r), n = t.size;
965
965
  return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
966
966
  }
967
- function I$1(r) {
967
+ function D$1(r) {
968
968
  var e = -1, t = r == null ? 0 : r.length;
969
969
  for (this.clear(); ++e < t; ) {
970
970
  var n = r[e];
971
971
  this.set(n[0], n[1]);
972
972
  }
973
973
  }
974
- I$1.prototype.clear = As$1;
975
- I$1.prototype.delete = Ss$1;
976
- I$1.prototype.get = Ts$1;
977
- I$1.prototype.has = Os$1;
978
- I$1.prototype.set = _s$1;
974
+ D$1.prototype.clear = As$1;
975
+ D$1.prototype.delete = Ss$1;
976
+ D$1.prototype.get = Ts$1;
977
+ D$1.prototype.has = Os$1;
978
+ D$1.prototype.set = _s$1;
979
979
  var $s$1 = "Expected a function";
980
980
  function je$2(r, e) {
981
981
  if (typeof r != "function" || e != null && typeof e != "function")
@@ -987,9 +987,9 @@
987
987
  var o = r.apply(this, n);
988
988
  return t.cache = i.set(s, o) || i, o;
989
989
  };
990
- return t.cache = new (je$2.Cache || I$1)(), t;
990
+ return t.cache = new (je$2.Cache || D$1)(), t;
991
991
  }
992
- je$2.Cache = I$1;
992
+ je$2.Cache = D$1;
993
993
  var Cs$1 = 500;
994
994
  function Ms$1(r) {
995
995
  var e = je$2(r, function(n) {
@@ -1010,7 +1010,7 @@
1010
1010
  return v$1(r) ? r : Qe$2(r, e) ? [r] : Es$1(Ne$2(r));
1011
1011
  }
1012
1012
  function he$1(r) {
1013
- if (typeof r == "string" || R$1(r))
1013
+ if (typeof r == "string" || P$2(r))
1014
1014
  return r;
1015
1015
  var e = r + "";
1016
1016
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
@@ -1021,7 +1021,7 @@
1021
1021
  r = r[he$1(e[t++])];
1022
1022
  return t && t == n ? r : void 0;
1023
1023
  }
1024
- function C$3(r, e, t) {
1024
+ function W$2(r, e, t) {
1025
1025
  var n = r == null ? void 0 : qe$2(r, e);
1026
1026
  return n === void 0 ? t : n;
1027
1027
  }
@@ -1030,7 +1030,7 @@
1030
1030
  r[s + t] = e[t];
1031
1031
  return r;
1032
1032
  }
1033
- var Ye$2 = A ? A.isConcatSpreadable : void 0;
1033
+ var Ye$2 = A$1 ? A$1.isConcatSpreadable : void 0;
1034
1034
  function Qs$1(r) {
1035
1035
  return v$1(r) || Ee$2(r) || !!(Ye$2 && r && r[Ye$2]);
1036
1036
  }
@@ -1050,7 +1050,7 @@
1050
1050
  return r === r && (t !== void 0 && (r = r <= t ? r : t), r = r >= e ? r : e), r;
1051
1051
  }
1052
1052
  function zs$1() {
1053
- this.__data__ = new D$1(), this.size = 0;
1053
+ this.__data__ = new M$2(), this.size = 0;
1054
1054
  }
1055
1055
  function Us$1(r) {
1056
1056
  var e = this.__data__, t = e.delete(r);
@@ -1065,24 +1065,24 @@
1065
1065
  var Js$1 = 200;
1066
1066
  function Zs$1(r, e) {
1067
1067
  var t = this.__data__;
1068
- if (t instanceof D$1) {
1068
+ if (t instanceof M$2) {
1069
1069
  var n = t.__data__;
1070
1070
  if (!H$2 || n.length < Js$1 - 1)
1071
1071
  return n.push([r, e]), this.size = ++t.size, this;
1072
- t = this.__data__ = new I$1(n);
1072
+ t = this.__data__ = new D$1(n);
1073
1073
  }
1074
1074
  return t.set(r, e), this.size = t.size, this;
1075
1075
  }
1076
- function O(r) {
1077
- var e = this.__data__ = new D$1(r);
1076
+ function _$1(r) {
1077
+ var e = this.__data__ = new M$2(r);
1078
1078
  this.size = e.size;
1079
1079
  }
1080
- O.prototype.clear = zs$1;
1081
- O.prototype.delete = Us$1;
1082
- O.prototype.get = Hs$1;
1083
- O.prototype.has = Ws$1;
1084
- O.prototype.set = Zs$1;
1085
- var Pt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, et$2 = Pt$1 && typeof module == "object" && module && !module.nodeType && module, Vs$1 = et$2 && et$2.exports === Pt$1, tt$2 = Vs$1 ? M$2.Buffer : void 0, rt$2 = tt$2 ? tt$2.allocUnsafe : void 0;
1080
+ _$1.prototype.clear = zs$1;
1081
+ _$1.prototype.delete = Us$1;
1082
+ _$1.prototype.get = Hs$1;
1083
+ _$1.prototype.has = Ws$1;
1084
+ _$1.prototype.set = Zs$1;
1085
+ var Pt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, et$2 = Pt$1 && typeof module == "object" && module && !module.nodeType && module, Vs$1 = et$2 && et$2.exports === Pt$1, tt$2 = Vs$1 ? C$2.Buffer : void 0, rt$2 = tt$2 ? tt$2.allocUnsafe : void 0;
1086
1086
  function Xs$1(r, e) {
1087
1087
  if (e)
1088
1088
  return r.slice();
@@ -1111,9 +1111,9 @@
1111
1111
  function we$2(r) {
1112
1112
  return si(r, fe$1, ni);
1113
1113
  }
1114
- var Ae$2 = K$1(M$2, "DataView"), xe$2 = K$1(M$2, "Promise"), Se$2 = K$1(M$2, "Set"), st$1 = "[object Map]", ii = "[object Object]", it$1 = "[object Promise]", ot$1 = "[object Set]", at = "[object WeakMap]", ut = "[object DataView]", oi = q$2(Ae$2), ai = q$2(H$2), ui = q$2(xe$2), ci = q$2(Se$2), fi = q$2(ve$2), w = N$4;
1114
+ var Ae$2 = q$2(C$2, "DataView"), xe$2 = q$2(C$2, "Promise"), Se$2 = q$2(C$2, "Set"), st$1 = "[object Map]", ii = "[object Object]", it$1 = "[object Promise]", ot$1 = "[object Set]", at = "[object WeakMap]", ut = "[object DataView]", oi = N$3(Ae$2), ai = N$3(H$2), ui = N$3(xe$2), ci = N$3(Se$2), fi = N$3(ve$2), w = j$2;
1115
1115
  (Ae$2 && w(new Ae$2(new ArrayBuffer(1))) != ut || H$2 && w(new H$2()) != st$1 || xe$2 && w(xe$2.resolve()) != it$1 || Se$2 && w(new Se$2()) != ot$1 || ve$2 && w(new ve$2()) != at) && (w = function(r) {
1116
- var e = N$4(r), t = e == ii ? r.constructor : void 0, n = t ? q$2(t) : "";
1116
+ var e = j$2(r), t = e == ii ? r.constructor : void 0, n = t ? N$3(t) : "";
1117
1117
  if (n)
1118
1118
  switch (n) {
1119
1119
  case oi:
@@ -1134,7 +1134,7 @@
1134
1134
  var e = r.length, t = new r.constructor(e);
1135
1135
  return e && typeof r[0] == "string" && di.call(r, "index") && (t.index = r.index, t.input = r.input), t;
1136
1136
  }
1137
- var ae = M$2.Uint8Array;
1137
+ var ae = C$2.Uint8Array;
1138
1138
  function Ke$2(r) {
1139
1139
  var e = new r.constructor(r.byteLength);
1140
1140
  return new ae(e).set(new ae(r)), e;
@@ -1148,7 +1148,7 @@
1148
1148
  var e = new r.constructor(r.source, gi.exec(r));
1149
1149
  return e.lastIndex = r.lastIndex, e;
1150
1150
  }
1151
- var ct = A ? A.prototype : void 0, ft$1 = ct ? ct.valueOf : void 0;
1151
+ var ct = A$1 ? A$1.prototype : void 0, ft$1 = ct ? ct.valueOf : void 0;
1152
1152
  function mi(r) {
1153
1153
  return ft$1 ? Object(ft$1.call(r)) : {};
1154
1154
  }
@@ -1197,18 +1197,18 @@
1197
1197
  function Li(r) {
1198
1198
  return $$2(r) && w(r) == Fi;
1199
1199
  }
1200
- var lt = F && F.isMap, Gi = lt ? Z$1(lt) : Li, ki = "[object Set]";
1200
+ var lt = R$1 && R$1.isMap, Gi = lt ? V$1(lt) : Li, ki = "[object Set]";
1201
1201
  function Bi(r) {
1202
1202
  return $$2(r) && w(r) == ki;
1203
1203
  }
1204
- var dt$1 = F && F.isSet, zi = dt$1 ? Z$1(dt$1) : Bi, Ui = 1, Rt$1 = "[object Arguments]", Hi = "[object Array]", Wi = "[object Boolean]", Ji = "[object Date]", Zi = "[object Error]", Ft$1 = "[object Function]", Vi = "[object GeneratorFunction]", Xi = "[object Map]", Yi = "[object Number]", Lt$1 = "[object Object]", eo$1 = "[object RegExp]", to$1 = "[object Set]", ro$1 = "[object String]", no$1 = "[object Symbol]", so$1 = "[object WeakMap]", io$1 = "[object ArrayBuffer]", oo$1 = "[object DataView]", ao$1 = "[object Float32Array]", uo = "[object Float64Array]", co = "[object Int8Array]", fo$1 = "[object Int16Array]", lo$1 = "[object Int32Array]", ho = "[object Uint8Array]", po = "[object Uint8ClampedArray]", go = "[object Uint16Array]", yo = "[object Uint32Array]", g = {};
1204
+ var dt$1 = R$1 && R$1.isSet, zi = dt$1 ? V$1(dt$1) : Bi, Ui = 1, Rt$1 = "[object Arguments]", Hi = "[object Array]", Wi = "[object Boolean]", Ji = "[object Date]", Zi = "[object Error]", Ft$1 = "[object Function]", Vi = "[object GeneratorFunction]", Xi = "[object Map]", Yi = "[object Number]", Lt$1 = "[object Object]", eo$1 = "[object RegExp]", to$1 = "[object Set]", ro$1 = "[object String]", no$1 = "[object Symbol]", so$1 = "[object WeakMap]", io$1 = "[object ArrayBuffer]", oo$1 = "[object DataView]", ao$1 = "[object Float32Array]", uo = "[object Float64Array]", co = "[object Int8Array]", fo$1 = "[object Int16Array]", lo$1 = "[object Int32Array]", ho = "[object Uint8Array]", po = "[object Uint8ClampedArray]", go = "[object Uint16Array]", yo = "[object Uint32Array]", g = {};
1205
1205
  g[Rt$1] = g[Hi] = g[io$1] = g[oo$1] = g[Wi] = g[Ji] = g[ao$1] = g[uo] = g[co] = g[fo$1] = g[lo$1] = g[Xi] = g[Yi] = g[Lt$1] = g[eo$1] = g[to$1] = g[ro$1] = g[no$1] = g[ho] = g[po] = g[go] = g[yo] = true;
1206
1206
  g[Zi] = g[Ft$1] = g[so$1] = false;
1207
1207
  function se$1(r, e, t, n, s, i) {
1208
1208
  var o, a = e & Ui;
1209
1209
  if (o !== void 0)
1210
1210
  return o;
1211
- if (!Q$2(r))
1211
+ if (!E$3(r))
1212
1212
  return r;
1213
1213
  var u = v$1(r);
1214
1214
  if (u)
@@ -1225,7 +1225,7 @@
1225
1225
  o = Pi(r, c, a);
1226
1226
  }
1227
1227
  }
1228
- i || (i = new O());
1228
+ i || (i = new _$1());
1229
1229
  var l = i.get(r);
1230
1230
  if (l)
1231
1231
  return l;
@@ -1240,7 +1240,7 @@
1240
1240
  }), o;
1241
1241
  }
1242
1242
  var mo = 1, bo = 4;
1243
- function E$3(r) {
1243
+ function I$1(r) {
1244
1244
  return se$1(r, mo | bo);
1245
1245
  }
1246
1246
  var vo = "__lodash_hash_undefined__";
@@ -1250,13 +1250,13 @@
1250
1250
  function Ao(r) {
1251
1251
  return this.__data__.has(r);
1252
1252
  }
1253
- function W$2(r) {
1253
+ function J$2(r) {
1254
1254
  var e = -1, t = r == null ? 0 : r.length;
1255
- for (this.__data__ = new I$1(); ++e < t; )
1255
+ for (this.__data__ = new D$1(); ++e < t; )
1256
1256
  this.add(r[e]);
1257
1257
  }
1258
- W$2.prototype.add = W$2.prototype.push = wo;
1259
- W$2.prototype.has = Ao;
1258
+ J$2.prototype.add = J$2.prototype.push = wo;
1259
+ J$2.prototype.has = Ao;
1260
1260
  function xo(r, e) {
1261
1261
  for (var t = -1, n = r == null ? 0 : r.length; ++t < n; )
1262
1262
  if (e(r[t], t, r))
@@ -1274,7 +1274,7 @@
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 & To ? new W$2() : void 0;
1277
+ var l = -1, d = true, h2 = t & To ? new J$2() : 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 (!xo(e, function(S2, T2) {
1290
- if (!Gt$1(h2, T2) && (p2 === S2 || s(p2, S2, t, n, i)))
1291
- return h2.push(T2);
1289
+ if (!xo(e, function(T2, O) {
1290
+ if (!Gt$1(h2, O) && (p2 === T2 || s(p2, T2, t, n, i)))
1291
+ return h2.push(O);
1292
1292
  })) {
1293
1293
  d = false;
1294
1294
  break;
@@ -1312,7 +1312,7 @@
1312
1312
  t[++e] = n;
1313
1313
  }), t;
1314
1314
  }
1315
- var $o = 1, Co = 2, Mo = "[object Boolean]", Do = "[object Date]", Io = "[object Error]", Eo = "[object Map]", Qo = "[object Number]", jo = "[object RegExp]", No = "[object Set]", qo = "[object String]", Ko = "[object Symbol]", Po = "[object ArrayBuffer]", Ro = "[object DataView]", ht$1 = A ? A.prototype : void 0, ye$1 = ht$1 ? ht$1.valueOf : void 0;
1315
+ var $o = 1, Co = 2, Mo = "[object Boolean]", Do = "[object Date]", Io = "[object Error]", Eo = "[object Map]", Qo = "[object Number]", jo = "[object RegExp]", No = "[object Set]", qo = "[object String]", Ko = "[object Symbol]", Po = "[object ArrayBuffer]", Ro = "[object DataView]", ht$1 = A$1 ? A$1.prototype : void 0, ye$1 = ht$1 ? ht$1.valueOf : void 0;
1316
1316
  function Fo(r, e, t, n, s, i, o) {
1317
1317
  switch (t) {
1318
1318
  case Ro:
@@ -1365,10 +1365,10 @@
1365
1365
  i.set(r, e), i.set(e, r);
1366
1366
  for (var x2 = o; ++l < u; ) {
1367
1367
  d = a[l];
1368
- var S2 = r[d], T2 = e[d];
1368
+ var T2 = r[d], O = e[d];
1369
1369
  if (n)
1370
- var Fe2 = o ? n(T2, S2, d, e, r, i) : n(S2, T2, d, r, e, i);
1371
- if (!(Fe2 === void 0 ? S2 === T2 || s(S2, T2, t, n, i) : Fe2)) {
1370
+ var Fe2 = o ? n(O, T2, d, e, r, i) : n(T2, O, d, r, e, i);
1371
+ if (!(Fe2 === void 0 ? T2 === O || s(T2, O, t, n, i) : Fe2)) {
1372
1372
  m = false;
1373
1373
  break;
1374
1374
  }
@@ -1391,18 +1391,18 @@
1391
1391
  o = true, f = false;
1392
1392
  }
1393
1393
  if (d && !f)
1394
- return i || (i = new O()), o || Et$1(r) ? kt$1(r, e, t, n, s, i) : Fo(r, e, u, t, n, s, i);
1394
+ return i || (i = new _$1()), o || Et$1(r) ? kt$1(r, e, t, n, s, i) : Fo(r, e, u, t, n, s, i);
1395
1395
  if (!(t & zo)) {
1396
1396
  var h2 = f && yt$1.call(r, "__wrapped__"), p2 = l && yt$1.call(e, "__wrapped__");
1397
1397
  if (h2 || p2) {
1398
1398
  var m = h2 ? r.value() : r, x2 = p2 ? e.value() : e;
1399
- return i || (i = new O()), s(m, x2, t, n, i);
1399
+ return i || (i = new _$1()), s(m, x2, t, n, i);
1400
1400
  }
1401
1401
  }
1402
- return d ? (i || (i = new O()), Bo(r, e, t, n, s, i)) : false;
1402
+ return d ? (i || (i = new _$1()), Bo(r, e, t, n, s, i)) : false;
1403
1403
  }
1404
- function V$1(r, e, t, n, s) {
1405
- return r === e ? true : r == null || e == null || !$$2(r) && !$$2(e) ? r !== r && e !== e : Ho(r, e, t, n, V$1, s);
1404
+ function X$3(r, e, t, n, s) {
1405
+ return r === e ? true : r == null || e == null || !$$2(r) && !$$2(e) ? r !== r && e !== e : Ho(r, e, t, n, X$3, s);
1406
1406
  }
1407
1407
  var Wo = 1, Jo = 2;
1408
1408
  function Bt$1(r, e, t, n) {
@@ -1421,15 +1421,15 @@
1421
1421
  if (u === void 0 && !(a in r))
1422
1422
  return false;
1423
1423
  } else {
1424
- var f = new O(), l;
1425
- if (!(l === void 0 ? V$1(c, u, Wo | Jo, n, f) : l))
1424
+ var f = new _$1(), l;
1425
+ if (!(l === void 0 ? X$3(c, u, Wo | Jo, n, f) : l))
1426
1426
  return false;
1427
1427
  }
1428
1428
  }
1429
1429
  return true;
1430
1430
  }
1431
1431
  function zt$1(r) {
1432
- return r === r && !Q$2(r);
1432
+ return r === r && !E$3(r);
1433
1433
  }
1434
1434
  function Ut$1(r) {
1435
1435
  for (var e = fe$1(r), t = e.length; t--; ) {
@@ -1468,8 +1468,8 @@
1468
1468
  var ea = 1, ta = 2;
1469
1469
  function ra(r, e) {
1470
1470
  return Qe$2(r) && zt$1(e) ? Ht$1(he$1(r), e) : function(t) {
1471
- var n = C$3(t, r);
1472
- return n === void 0 && n === e ? Yo(t, r) : V$1(e, n, ea | ta);
1471
+ var n = W$2(t, r);
1472
+ return n === void 0 && n === e ? Yo(t, r) : X$3(e, n, ea | ta);
1473
1473
  };
1474
1474
  }
1475
1475
  function Wt$1(r) {
@@ -1485,7 +1485,7 @@
1485
1485
  function sa(r) {
1486
1486
  return Qe$2(r) ? Wt$1(he$1(r)) : na(r);
1487
1487
  }
1488
- function X$3(r) {
1488
+ function Y$2(r) {
1489
1489
  return typeof r == "function" ? r : r == null ? ce$1 : typeof r == "object" ? v$1(r) ? ra(r[0], r[1]) : Zo(r) : sa(r);
1490
1490
  }
1491
1491
  function ia(r) {
@@ -1506,7 +1506,7 @@
1506
1506
  return function(t, n) {
1507
1507
  if (t == null)
1508
1508
  return t;
1509
- if (!L$2(t))
1509
+ if (!F(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 Jt$1 = ua(aa);
1517
1517
  function me$1(r) {
1518
- return $$2(r) && L$2(r);
1518
+ return $$2(r) && F(r);
1519
1519
  }
1520
1520
  var ca = 200;
1521
1521
  function fa(r, e, t, n) {
1522
1522
  var s = -1, i = sn$1, o = true, a = r.length, u = [], c = e.length;
1523
1523
  if (!a)
1524
1524
  return u;
1525
- t && (e = B$2(e, Z$1(t))), e.length >= ca && (i = Gt$1, o = false, e = new W$2(e));
1525
+ t && (e = B$1(e, V$1(t))), e.length >= ca && (i = Gt$1, o = false, e = new J$2(e));
1526
1526
  e:
1527
1527
  for (; ++s < a; ) {
1528
1528
  var f = r[s], l = t == null ? f : t(f);
@@ -1541,7 +1541,7 @@
1541
1541
  }
1542
1542
  var mt$1 = hn$1(function(r, e) {
1543
1543
  var t = la(e);
1544
- return me$1(t) && (t = void 0), me$1(r) ? fa(r, js$1(e, 1, me$1), X$3(t)) : [];
1544
+ return me$1(t) && (t = void 0), me$1(r) ? fa(r, js$1(e, 1, me$1), Y$2(t)) : [];
1545
1545
  });
1546
1546
  function da(r, e, t) {
1547
1547
  r = Ne$2(r), e = ue$1(e);
@@ -1564,13 +1564,13 @@
1564
1564
  }
1565
1565
  function Zt$1(r, e, t) {
1566
1566
  var n = v$1(r) ? ha : pa;
1567
- return n(r, X$3(e));
1567
+ return n(r, Y$2(e));
1568
1568
  }
1569
1569
  function ga(r) {
1570
1570
  return function(e, t, n) {
1571
1571
  var s = Object(e);
1572
- if (!L$2(e)) {
1573
- var i = X$3(t);
1572
+ if (!F(e)) {
1573
+ var i = Y$2(t);
1574
1574
  e = fe$1(e), t = function(a) {
1575
1575
  return i(s[a], a, s);
1576
1576
  };
@@ -1580,31 +1580,31 @@
1580
1580
  };
1581
1581
  }
1582
1582
  var ya = Math.max;
1583
- function Te$2(r, e, t) {
1583
+ function Te$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 : Me$2(t);
1588
- return s < 0 && (s = ya(n + s, 0)), _t$1(r, X$3(e), s);
1588
+ return s < 0 && (s = ya(n + s, 0)), _t$1(r, Y$2(e), s);
1589
1589
  }
1590
- var ma = ga(Te$2);
1590
+ var ma = ga(Te$3);
1591
1591
  function ba(r, e) {
1592
- var t = -1, n = L$2(r) ? Array(r.length) : [];
1592
+ var t = -1, n = F(r) ? Array(r.length) : [];
1593
1593
  return Jt$1(r, function(s, i, o) {
1594
1594
  n[++t] = e(s, i, o);
1595
1595
  }), n;
1596
1596
  }
1597
1597
  var va = "[object String]";
1598
1598
  function wa(r) {
1599
- return typeof r == "string" || !v$1(r) && $$2(r) && N$4(r) == va;
1599
+ return typeof r == "string" || !v$1(r) && $$2(r) && j$2(r) == va;
1600
1600
  }
1601
1601
  function bt$1(r, e) {
1602
- return V$1(r, e);
1602
+ return X$3(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 ? V$1(r, e, void 0, t) : !!n;
1607
+ return n === void 0 ? X$3(r, e, void 0, t) : !!n;
1608
1608
  }
1609
1609
  function Aa(r, e) {
1610
1610
  return r === e || Bt$1(r, e, Ut$1(e));
@@ -1617,7 +1617,7 @@
1617
1617
  }
1618
1618
  function Sa(r, e) {
1619
1619
  if (r !== e) {
1620
- var t = r !== void 0, n = r === null, s = r === r, i = R$1(r), o = e !== void 0, a = e === null, u = e === e, c = R$1(e);
1620
+ var t = r !== void 0, n = r === null, s = r === r, i = P$2(r), o = e !== void 0, a = e === null, u = e === e, c = P$2(e);
1621
1621
  if (!a && !c && !i && r > e || i && o && u && !a && !c || n && o && u || !t && u || !s)
1622
1622
  return 1;
1623
1623
  if (!n && !i && !c && r < e || c && t && s && !n && !i || a && t && s || !o && s || !u)
@@ -1638,15 +1638,15 @@
1638
1638
  return r.index - e.index;
1639
1639
  }
1640
1640
  function Oa(r, e, t) {
1641
- e.length ? e = B$2(e, function(i) {
1641
+ e.length ? e = B$1(e, function(i) {
1642
1642
  return v$1(i) ? function(o) {
1643
1643
  return qe$2(o, i.length === 1 ? i[0] : i);
1644
1644
  } : i;
1645
1645
  }) : e = [ce$1];
1646
1646
  var n = -1;
1647
- e = B$2(e, Z$1(X$3));
1647
+ e = B$1(e, V$1(Y$2));
1648
1648
  var s = ba(r, function(i, o, a) {
1649
- var u = B$2(e, function(c) {
1649
+ var u = B$1(e, function(c) {
1650
1650
  return c(i);
1651
1651
  });
1652
1652
  return { criteria: u, index: ++n, value: i };
@@ -1655,7 +1655,7 @@
1655
1655
  return Ta(i, o, t);
1656
1656
  });
1657
1657
  }
1658
- function pu(r, e, t, n) {
1658
+ function yu(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]), Oa(r, e, t));
1660
1660
  }
1661
1661
  var _a = Wt$1("length"), Vt$1 = "\\ud800-\\udfff", $a = "\\u0300-\\u036f", Ca = "\\ufe20-\\ufe2f", Ma = "\\u20d0-\\u20ff", Da = $a + Ca + Ma, Ia = "\\ufe0e\\ufe0f", Ea = "[" + Vt$1 + "]", Oe$2 = "[" + Da + "]", _e$2 = "\\ud83c[\\udffb-\\udfff]", Qa = "(?:" + Oe$2 + "|" + _e$2 + ")", Xt$1 = "[^" + Vt$1 + "]", Yt$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}", er$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]", ja = "\\u200d", tr$1 = Qa + "?", rr$1 = "[" + Ia + "]?", Na = "(?:" + ja + "(?:" + [Xt$1, Yt$1, er$1].join("|") + ")" + rr$1 + tr$1 + ")*", qa = rr$1 + tr$1 + Na, Ka = "(?:" + [Xt$1 + Oe$2 + "?", Oe$2, Yt$1, er$1, Ea].join("|") + ")", vt$1 = RegExp(_e$2 + "(?=" + _e$2 + ")|" + Ka + qa, "g");
@@ -1671,7 +1671,7 @@
1671
1671
  function Ga(r) {
1672
1672
  if (r == null)
1673
1673
  return 0;
1674
- if (L$2(r))
1674
+ if (F(r))
1675
1675
  return wa(r) ? Ra(r) : r.length;
1676
1676
  var e = w(r);
1677
1677
  return e == Fa || e == La ? r.size : jt$1(r).length;
@@ -1680,19 +1680,19 @@
1680
1680
  return r = Ne$2(r), t = t == null ? 0 : Kt$1(Me$2(t), 0, r.length), e = ue$1(e), r.slice(t, t + e.length) == e;
1681
1681
  }
1682
1682
  function Pe$2(r) {
1683
- const e = $e$3(r);
1683
+ const e = $e$2(r);
1684
1684
  return Ba(e);
1685
1685
  }
1686
- function $e$3(r) {
1686
+ function $e$2(r) {
1687
1687
  if (typeof r != "object" || r === null)
1688
1688
  return String(r);
1689
1689
  if (Array.isArray(r))
1690
- return "[" + r.map($e$3).join(",") + "]";
1690
+ return "[" + r.map($e$2).join(",") + "]";
1691
1691
  const e = Object.keys(r).sort();
1692
1692
  let t = "{";
1693
1693
  for (let n = 0; n < e.length; n++) {
1694
1694
  const s = e[n];
1695
- t += s + ":" + $e$3(r[s]), n < e.length - 1 && (t += ",");
1695
+ t += s + ":" + $e$2(r[s]), n < e.length - 1 && (t += ",");
1696
1696
  }
1697
1697
  return t += "}", t;
1698
1698
  }
@@ -1704,7 +1704,7 @@
1704
1704
  }
1705
1705
  return e.toString(16);
1706
1706
  }
1707
- const J$2 = {
1707
+ const Z$1 = {
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);
@@ -1721,7 +1721,7 @@
1721
1721
  return performance.getEntriesByType(r);
1722
1722
  }
1723
1723
  };
1724
- class gu {
1724
+ class mu {
1725
1725
  data;
1726
1726
  enabled = false;
1727
1727
  constructor() {
@@ -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: J$2.now(),
1742
+ value: Z$1.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" ? [] : J$2.getEntriesByType("resource");
1779
+ return typeof performance > "u" ? [] : Z$1.getEntriesByType("resource");
1780
1780
  }
1781
1781
  get(e) {
1782
1782
  const t = this.getKey(e.name, e.context);
@@ -2088,7 +2088,7 @@
2088
2088
  return { addedNodes: s, removedNodes: i, addedEdges: u, removedEdges: c, kindChanges: f };
2089
2089
  }
2090
2090
  };
2091
- class yu {
2091
+ class bu {
2092
2092
  graph;
2093
2093
  nodeIndex;
2094
2094
  constructor() {
@@ -2480,7 +2480,7 @@
2480
2480
  }
2481
2481
  };
2482
2482
  const Ua = new b$2();
2483
- class mu {
2483
+ class vu {
2484
2484
  constructor(e) {
2485
2485
  this.enabled = e, this.cache = /* @__PURE__ */ new Map(), this.cacheDependencies = /* @__PURE__ */ new Map();
2486
2486
  }
@@ -2595,7 +2595,7 @@
2595
2595
  }
2596
2596
  generateContext(e) {
2597
2597
  try {
2598
- return E$3(e);
2598
+ return I$1(e);
2599
2599
  } catch (t) {
2600
2600
  return this.log.error("Error in cache generateContext", t), e;
2601
2601
  }
@@ -2625,7 +2625,7 @@
2625
2625
  for (let n = 0; n < r; n++) e += t.charAt(Math.floor(Math.random() * t.length));
2626
2626
  return e;
2627
2627
  }
2628
- class bu {
2628
+ class wu {
2629
2629
  key;
2630
2630
  parentCd;
2631
2631
  dcuplInitOptions;
@@ -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 = J$2.now(), e.duration = e.start - e.end), this.updateListener.forEach((t) => {
2654
+ e.originCdRefKey || (e.originCdRefKey = this.key), e.key || (this.increaseCounter(), e.key = this.getCounter()), e.end || (e.end = Z$1.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 sr$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) : E$3(r) : r, At$1 = (r, e, t, n, s, i) => {
2664
+ const sr$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) : I$1(r) : r, At$1 = (r, e, t, n, s, i) => {
2665
2665
  try {
2666
2666
  const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = sr$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 = J$2.now(), c = u - n, f = Math.round(c * 1e3) / 1e3;
2669
+ const u = Z$1.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
@@ -2684,10 +2684,10 @@
2684
2684
  } catch {
2685
2685
  return i;
2686
2686
  }
2687
- }, vu = (r) => (e, t, n) => {
2687
+ }, Au = (r) => (e, t, n) => {
2688
2688
  const s = n.value;
2689
2689
  return n.value = function(...i) {
2690
- const o = J$2.now(), a = this.cdRef, u = sr$1(r, true);
2690
+ const o = Z$1.now(), a = this.cdRef, u = sr$1(r, true);
2691
2691
  u.key || (a.increaseCounter(), u.key = a.getCounter());
2692
2692
  const c = Ha();
2693
2693
  a.analyticsController.mark({
@@ -2700,7 +2700,7 @@
2700
2700
  return u.method = t, u.args = i, l && typeof l == "object" && "then" in l ? l.then((d) => At$1(this, a, u, o, c, d)) : At$1(this, a, u, o, c, l);
2701
2701
  }, n;
2702
2702
  };
2703
- function wu(r, e, t, n) {
2703
+ function xu(r, e, t, n) {
2704
2704
  t.max || (t.max = 20);
2705
2705
  const s = [], i = t.transform ? n.transformValue(t.value, t.transform) : t.value;
2706
2706
  for (const [o, a] of e.entries()) {
@@ -2827,7 +2827,7 @@
2827
2827
  );
2828
2828
  return Ja(e) ? e.getFullYear() !== r.year || e.getMonth() !== r.month - 1 || e.getDate() !== r.day ? /* @__PURE__ */ new Date(NaN) : e : /* @__PURE__ */ new Date(NaN);
2829
2829
  }
2830
- function Au(r, e, t) {
2830
+ function Su(r, e, t) {
2831
2831
  if (r = r.trim(), e === "t") {
2832
2832
  const a = Number(r);
2833
2833
  return isNaN(a) ? /* @__PURE__ */ new Date(NaN) : new Date(a * 1e3);
@@ -3086,18 +3086,40 @@
3086
3086
  return this.getPathSegments(e).length;
3087
3087
  }
3088
3088
  }
3089
- const _$1 = new ru();
3090
- function Y$2(r, e) {
3091
- if (!e.includes("[*]")) {
3092
- const a = C$3(r, e);
3093
- return a !== void 0 ? [a] : [];
3089
+ const S$1 = new ru();
3090
+ function L$1(r, e) {
3091
+ if (e.includes("[*]")) {
3092
+ const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$2(r, o) : r;
3093
+ if (!Array.isArray(u)) return [];
3094
+ const c = [];
3095
+ for (const f of u)
3096
+ !a || a === "" ? f !== void 0 && c.push(f) : a.startsWith(".") && c.push(...L$1(f, a.slice(1)));
3097
+ return c;
3098
+ }
3099
+ const t = e.split(".");
3100
+ let n = [r];
3101
+ for (const i of t) {
3102
+ const o = [];
3103
+ for (const a of n)
3104
+ if (a != null)
3105
+ if (Array.isArray(a))
3106
+ for (const u of a) {
3107
+ if (u == null) continue;
3108
+ const c = u[i];
3109
+ c !== void 0 && o.push(c);
3110
+ }
3111
+ else {
3112
+ const u = a[i];
3113
+ u !== void 0 && o.push(u);
3114
+ }
3115
+ if (n = o, n.length === 0) return [];
3094
3116
  }
3095
- const t = e.indexOf("[*]"), n = e.substring(0, t), s = e.substring(t + 3), i = n ? C$3(r, n) : r;
3096
- if (!Array.isArray(i)) return [];
3097
- const o = [];
3098
- for (const a of i)
3099
- !s || s === "" ? a !== void 0 && o.push(a) : s.startsWith(".") && o.push(...Y$2(a, s.slice(1)));
3100
- return o;
3117
+ const s = [];
3118
+ for (const i of n)
3119
+ if (Array.isArray(i))
3120
+ for (const o of i) o !== void 0 && s.push(o);
3121
+ else i !== void 0 && s.push(i);
3122
+ return s;
3101
3123
  }
3102
3124
  function be$2(r) {
3103
3125
  let e = 0;
@@ -3121,30 +3143,42 @@
3121
3143
  types: r.types
3122
3144
  };
3123
3145
  let i;
3124
- (s.types.includes("sum") || s.types.includes("avg") || s.types.includes("count")) && (i = ou(n, e));
3146
+ (s.types.includes("sum") || s.types.includes("avg")) && (i = au(n, e));
3125
3147
  let o;
3126
- return (s.types.includes("min") || s.types.includes("max")) && (o = su(n, e)), r.types.forEach((a) => {
3127
- a === "sum" ? s.sum = i?.sum : a === "avg" ? s.avg = i?.average : a === "count" ? s.count = i?.count : a === "min" ? s.min = o && o[0] : a === "max" ? s.max = o && o[1] : a === "distinct" ? s.distinct = au(r, e, t) : a === "group" && (s.group = iu(r, e));
3148
+ return (s.types.includes("min") || s.types.includes("max")) && (o = iu(n, e)), r.types.forEach((a) => {
3149
+ a === "sum" ? s.sum = i?.sum : a === "avg" ? s.avg = i?.average : a === "count" ? s.count = su(n, e) : a === "min" ? s.min = o && o[0] : a === "max" ? s.max = o && o[1] : a === "distinct" ? s.distinct = uu(r, e, t) : a === "group" && (s.group = ou(r, e));
3128
3150
  }), s;
3129
3151
  }, su = (r, e) => {
3152
+ const t = S$1.parse(r).isDeepQuery;
3153
+ let n = 0;
3154
+ for (const s of e.values())
3155
+ if (s)
3156
+ if (t)
3157
+ n += L$1(s, r).filter((i) => i != null).length;
3158
+ else {
3159
+ const i = s[r];
3160
+ if (i == null) continue;
3161
+ Array.isArray(i) ? n += i.filter((o) => o != null).length : n++;
3162
+ }
3163
+ return n;
3164
+ }, iu = (r, e) => {
3130
3165
  let t, n;
3131
- const s = _$1.parse(r).isDeepQuery;
3132
- for (const i of e.values())
3133
- if (i) {
3134
- let o;
3135
- if (s && r.includes("[*]"))
3136
- o = Y$2(i, r);
3137
- else if (s) {
3138
- const a = C$3(i, r);
3139
- o = a !== void 0 ? [a] : [];
3140
- } else
3141
- o = i[r] !== void 0 ? [i[r]] : [];
3142
- for (const a of o)
3143
- (t === void 0 || a < t) && (t = a), (n === void 0 || a > n) && (n = a);
3166
+ const s = S$1.parse(r).isDeepQuery;
3167
+ for (const i of e.values()) {
3168
+ if (!i) continue;
3169
+ let o;
3170
+ if (s)
3171
+ o = L$1(i, r);
3172
+ else {
3173
+ const a = i[r];
3174
+ a === void 0 ? o = [] : Array.isArray(a) ? o = a.filter((u) => u !== void 0) : o = [a];
3144
3175
  }
3176
+ for (const a of o)
3177
+ a == null || typeof a == "object" || ((t === void 0 || a < t) && (t = a), (n === void 0 || a > n) && (n = a));
3178
+ }
3145
3179
  if (!(t === void 0 || n === void 0))
3146
3180
  return [t, n];
3147
- }, iu = (r, e) => {
3181
+ }, ou = (r, e) => {
3148
3182
  const t = [];
3149
3183
  r.groupOptions?.groups?.forEach((i) => {
3150
3184
  t.push({
@@ -3157,16 +3191,10 @@
3157
3191
  option: { value: ["$dcupl_not_found"] },
3158
3192
  count: 0,
3159
3193
  keys: []
3160
- }, s = _$1.parse(r.attribute).isDeepQuery;
3194
+ }, s = S$1.parse(r.attribute).isDeepQuery;
3161
3195
  for (const i of e.values()) {
3162
3196
  let o;
3163
- if (s && r.attribute.includes("[*]"))
3164
- o = Y$2(i, r.attribute);
3165
- else if (s) {
3166
- const u = C$3(i, r.attribute);
3167
- o = u !== void 0 ? [u] : [];
3168
- } else
3169
- o = [i[r.attribute]];
3197
+ s ? o = L$1(i, r.attribute) : o = [i[r.attribute]];
3170
3198
  let a = false;
3171
3199
  for (const u of o)
3172
3200
  for (const c of t)
@@ -3174,19 +3202,18 @@
3174
3202
  !a && r?.groupOptions?.calculateNotFound && (n.count++, n.keys.push(i.key));
3175
3203
  }
3176
3204
  return r?.groupOptions?.calculateNotFound && t.push(n), t;
3177
- }, ou = (r, e) => {
3205
+ }, au = (r, e) => {
3178
3206
  let t = 0, n = 0;
3179
- const s = _$1.parse(r).isDeepQuery;
3207
+ const s = S$1.parse(r).isDeepQuery;
3180
3208
  for (const i of e.values()) {
3181
3209
  if (!i) continue;
3182
3210
  let o;
3183
- if (s && r.includes("[*]"))
3184
- o = Y$2(i, r);
3185
- else if (s) {
3186
- const a = C$3(i, r);
3187
- o = a !== void 0 ? [a] : [];
3188
- } else
3189
- o = i[r] !== void 0 ? [i[r]] : [];
3211
+ if (s)
3212
+ o = L$1(i, r);
3213
+ else {
3214
+ const a = i[r];
3215
+ a === void 0 ? o = [] : Array.isArray(a) ? o = a : o = [a];
3216
+ }
3190
3217
  for (const a of o)
3191
3218
  if (Array.isArray(a))
3192
3219
  for (const u of a)
@@ -3195,10 +3222,10 @@
3195
3222
  }
3196
3223
  return n === 0 ? void 0 : {
3197
3224
  average: nu(t, n, be$2([t, n])),
3198
- count: e.size,
3225
+ count: n,
3199
3226
  sum: t
3200
3227
  };
3201
- }, au = (r, e, t) => {
3228
+ }, uu = (r, e, t) => {
3202
3229
  const n = [];
3203
3230
  for (const [s, i] of t)
3204
3231
  if (!(r.excludeUndefineds && typeof s > "u") && Array.from(i).find((o) => e.has(o))) {
@@ -3226,10 +3253,10 @@
3226
3253
  queries: []
3227
3254
  };
3228
3255
  _initOptions;
3229
- currentQuery = E$3(this._defaultQueryOptions);
3256
+ currentQuery = I$1(this._defaultQueryOptions);
3230
3257
  deepQueryService;
3231
3258
  constructor(e) {
3232
- this.deepQueryService = e || _$1;
3259
+ this.deepQueryService = e || S$1;
3233
3260
  }
3234
3261
  /**
3235
3262
  * Initialize the query builder.
@@ -3255,7 +3282,7 @@
3255
3282
  * });
3256
3283
  */
3257
3284
  init(e) {
3258
- this._initOptions = E$3(e), this.currentQuery = E$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 = E$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));
3285
+ this._initOptions = I$1(e), this.currentQuery = I$1(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 = I$1(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));
3259
3286
  }
3260
3287
  reset() {
3261
3288
  return this.init(this._initOptions), this.getQuery();
@@ -3273,7 +3300,7 @@
3273
3300
  return this.currentQuery.queries.find((t) => this.isQueryGroup(t) && t.groupKey === e);
3274
3301
  }
3275
3302
  getQuery() {
3276
- return E$3(this.currentQuery);
3303
+ return I$1(this.currentQuery);
3277
3304
  }
3278
3305
  hasQueryGroup(e) {
3279
3306
  return this.currentQuery.queries.some((t) => this.isQueryGroup(t) && t.groupKey === e);
@@ -3371,7 +3398,7 @@
3371
3398
  (s) => this.isQueryGroup(s) && s.groupKey === e.attribute
3372
3399
  );
3373
3400
  if (n > -1) {
3374
- const s = t.queries[n], i = Te$2(s.queries, e);
3401
+ const s = t.queries[n], i = Te$3(s.queries, e);
3375
3402
  i > -1 && s.queries.splice(i, 1), s.queries.length === 0 && t.queries.splice(n, 1);
3376
3403
  }
3377
3404
  } else if (this.isQueryGroup(e)) {
@@ -3384,7 +3411,7 @@
3384
3411
  else {
3385
3412
  const s = t.queries[n];
3386
3413
  for (const i of e.queries) {
3387
- const o = Te$2(s.queries, i);
3414
+ const o = Te$3(s.queries, i);
3388
3415
  o > -1 && s.queries.splice(o, 1);
3389
3416
  }
3390
3417
  s.queries.length === 0 && t.queries.splice(n, 1);
@@ -3900,23 +3927,23 @@
3900
3927
  }
3901
3928
  };
3902
3929
  const Ce$2 = new ir$1();
3903
- function xu(r, e, t, n, s, i, o) {
3904
- const a = [], u = Ce$2.removeQuery({ groupKey: s }, E$3(n)), c = o.queryData(r, u, false, i), f = e ? [...e.keys()] : [], l = new Set(f), d = i.get(s);
3930
+ function Tu(r, e, t, n, s, i, o) {
3931
+ const a = [], u = Ce$2.removeQuery({ groupKey: s }, I$1(n)), c = o.queryData(r, u, false, i), f = e ? [...e.keys()] : [], l = new Set(f), d = i.get(s);
3905
3932
  if (!t.excludeUnresolved)
3906
3933
  for (const h2 of d.keys())
3907
3934
  l.add(h2);
3908
3935
  t.excludeUndefineds ? l.delete(void 0) : l.add(void 0);
3909
3936
  for (const h2 of l.values()) {
3910
3937
  const p2 = /* @__PURE__ */ new Map(), m = d.get(h2) || /* @__PURE__ */ new Set();
3911
- for (const S2 of m) {
3912
- const T2 = c.get(S2);
3913
- if (T2 && (p2.set(S2, T2), !t?.calculateFacets))
3938
+ for (const T2 of m) {
3939
+ const O = c.get(T2);
3940
+ if (O && (p2.set(T2, O), !t?.calculateFacets))
3914
3941
  break;
3915
3942
  }
3916
3943
  const x2 = {
3917
3944
  key: String(h2),
3918
3945
  value: h2,
3919
- selected: uu(s, h2, n),
3946
+ selected: cu(s, h2, n),
3920
3947
  enabled: p2.size > 0,
3921
3948
  size: p2.size,
3922
3949
  entry: e.get(h2),
@@ -3930,7 +3957,7 @@
3930
3957
  }
3931
3958
  return a;
3932
3959
  }
3933
- const uu = (r, e, t) => {
3960
+ const cu = (r, e, t) => {
3934
3961
  const n = t.queries.findIndex((s) => Ce$2.isQueryGroup(s) && s.groupKey === r);
3935
3962
  return n > -1 ? !!t.queries[n].queries.find((s) => {
3936
3963
  if (Ce$2.isQuery(s)) {
@@ -3940,7 +3967,7 @@
3940
3967
  return false;
3941
3968
  }) : false;
3942
3969
  };
3943
- class cu {
3970
+ class fu {
3944
3971
  indexMap = /* @__PURE__ */ new Map();
3945
3972
  // Possible performance gain*
3946
3973
  dataMap = /* @__PURE__ */ new Map();
@@ -3999,7 +4026,7 @@
3999
4026
  if (o)
4000
4027
  o.lastAccessedAt = Date.now();
4001
4028
  else if (!i) {
4002
- const a = _$1.parse(e).isDeepQuery ?? false;
4029
+ const a = S$1.parse(e).isDeepQuery ?? false;
4003
4030
  this.indexMetadata.set(s, {
4004
4031
  createdAt: Date.now(),
4005
4032
  lastAccessedAt: Date.now(),
@@ -4009,10 +4036,10 @@
4009
4036
  }
4010
4037
  if (!i) {
4011
4038
  this.reset(s), this.indexMap.set(s, /* @__PURE__ */ new Map());
4012
- const a = _$1.parse(e).isDeepQuery;
4039
+ const a = S$1.parse(e).isDeepQuery;
4013
4040
  for (const u of t.values()) {
4014
4041
  let c;
4015
- a && e.includes("[*]") ? (c = Y$2(u, e), c.length === 0 && (c = [void 0])) : a ? c = [C$3(u, e)] : c = [u[e]], this.fillInverseIndex(s, u.key, c), this.fillDataMap(s, c);
4042
+ a ? (c = L$1(u, e), c.length === 0 && (c = [void 0])) : c = [u[e]], this.fillInverseIndex(s, u.key, c), this.fillDataMap(s, c);
4016
4043
  }
4017
4044
  i = this.getIndex(s) || /* @__PURE__ */ new Map();
4018
4045
  }
@@ -4113,7 +4140,7 @@
4113
4140
  isDeepQueryIndex(e) {
4114
4141
  const t = e.includes("_") ? e.split("_")[0] : e;
4115
4142
  try {
4116
- return _$1.parse(t).isDeepQuery ?? false;
4143
+ return S$1.parse(t).isDeepQuery ?? false;
4117
4144
  } catch {
4118
4145
  return false;
4119
4146
  }
@@ -4188,18 +4215,18 @@
4188
4215
  };
4189
4216
  }
4190
4217
  }
4191
- const P$1 = "__";
4192
- function or$1(r, e, t = { key: "root" }, n = "root", s = new cu(), i) {
4218
+ const K$1 = "__";
4219
+ function or$1(r, e, t = { key: "root" }, n = "root", s = new fu(), i) {
4193
4220
  const o = i || r;
4194
4221
  for (const a of e.columns)
4195
- a.attribute && (_$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
4222
+ a.attribute && (S$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
4196
4223
  for (const a of e.rows)
4197
- a.attribute && (_$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
4224
+ a.attribute && (S$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
4198
4225
  for (const a of e.values)
4199
- a.attribute && (_$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
4226
+ a.attribute && (S$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
4200
4227
  if (e.rows && e.rows.length > 0) {
4201
4228
  t.rows = t.rows || [];
4202
- const a = fu(r, e.rows[0], e, s, n, i);
4229
+ const a = lu(r, e.rows[0], e, s, n, i);
4203
4230
  t.rows.push(a);
4204
4231
  }
4205
4232
  if (e.columns && e.columns.length > 0) {
@@ -4216,7 +4243,7 @@
4216
4243
  }
4217
4244
  return t;
4218
4245
  }
4219
- function fu(r, e, t, n, s = "", i) {
4246
+ function lu(r, e, t, n, s = "", i) {
4220
4247
  const o = { key: e.attribute }, a = n.getIndex(e.attribute);
4221
4248
  if (!a)
4222
4249
  return o;
@@ -4240,7 +4267,7 @@
4240
4267
  l,
4241
4268
  d,
4242
4269
  f,
4243
- s + P$1 + e.attribute + P$1 + u,
4270
+ s + K$1 + e.attribute + K$1 + u,
4244
4271
  n,
4245
4272
  i
4246
4273
  );
@@ -4252,7 +4279,7 @@
4252
4279
  d,
4253
4280
  t,
4254
4281
  n,
4255
- s + P$1 + e.attribute + P$1 + u,
4282
+ s + K$1 + e.attribute + K$1 + u,
4256
4283
  i
4257
4284
  );
4258
4285
  f.columns.push(h2);
@@ -4285,7 +4312,7 @@
4285
4312
  l,
4286
4313
  d,
4287
4314
  f,
4288
- s + P$1 + e.attribute + P$1 + u,
4315
+ s + K$1 + e.attribute + K$1 + u,
4289
4316
  n,
4290
4317
  i
4291
4318
  );
@@ -4294,30 +4321,32 @@
4294
4321
  }
4295
4322
  return o;
4296
4323
  }
4297
- const Su = (r, e) => {
4298
- const t = [];
4299
- for (const n of r) {
4300
- for (const [s, i] of Object.entries(n)) {
4301
- const o = t.find((u) => u.key === s), a = hu(i);
4302
- if (o)
4303
- o.type !== a && (o.type = "any");
4304
- else {
4305
- const u = {
4306
- key: s,
4307
- type: a
4308
- };
4309
- t.push(u);
4324
+ const du = (r) => r == null || r === "", Ou = (r, e = false) => {
4325
+ const t = typeof e == "boolean" ? { deep: e } : e, n = t.deep ?? (t.sampleSize !== void 0 && t.sampleSize > 1) ? t.sampleSize ?? 1 / 0 : 1, s = t.ignoreEmpty ?? n > 1, i = [], o = Math.min(r.length, n);
4326
+ for (let a = 0; a < o; a++) {
4327
+ const u = r[a];
4328
+ if (u)
4329
+ for (const [c, f] of Object.entries(u)) {
4330
+ if (s && du(f)) continue;
4331
+ const l = gu(f), d = i.find((h2) => h2.key === c);
4332
+ if (d)
4333
+ d.type !== l && (d.type = "any");
4334
+ else {
4335
+ const h2 = {
4336
+ key: c,
4337
+ type: l
4338
+ };
4339
+ i.push(h2);
4340
+ }
4310
4341
  }
4311
- }
4312
- break;
4313
4342
  }
4314
- return t;
4315
- }, lu = (r) => Number(r) === r && r % 1 === 0, du = (r) => Number(r) === r && r % 1 !== 0, hu = (r) => {
4343
+ return i;
4344
+ }, hu = (r) => Number(r) === r && r % 1 === 0, pu = (r) => Number(r) === r && r % 1 !== 0, gu = (r) => {
4316
4345
  switch (typeof r) {
4317
4346
  case "string":
4318
4347
  return "string";
4319
4348
  case "number":
4320
- return lu(r) ? "int" : du(r) ? "float" : "any";
4349
+ return hu(r) ? "int" : pu(r) ? "float" : "any";
4321
4350
  case "boolean":
4322
4351
  return "boolean";
4323
4352
  case "object":
@@ -4326,7 +4355,7 @@
4326
4355
  return "any";
4327
4356
  }
4328
4357
  };
4329
- class Tu {
4358
+ class _u {
4330
4359
  constructor(e, t, n) {
4331
4360
  this.scriptController = e, this.globalItemService = t, this.modelParser = n;
4332
4361
  }
@@ -4347,7 +4376,7 @@
4347
4376
  evaluateQuery(e, t) {
4348
4377
  let n, s = e.value;
4349
4378
  const i = e.options?.arrayValueHandling || "some";
4350
- if (Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (s = this.transformValue(s, e.options.transform)), e.attribute.includes(".") || e.attribute.includes("[") ? n = C$3(t, e.attribute) : n = t[e.attribute], Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (n = this.transformValue(n, e.options.transform)), (typeof n > "u" || n === null) && !["typeof", "isTruthy", "eq"].includes(e.operator))
4379
+ if (Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (s = this.transformValue(s, e.options.transform)), e.attribute.includes(".") || e.attribute.includes("[") ? n = W$2(t, e.attribute) : n = t[e.attribute], Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (n = this.transformValue(n, e.options.transform)), (typeof n > "u" || n === null) && !["typeof", "isTruthy", "eq"].includes(e.operator))
4351
4380
  return false;
4352
4381
  switch (e.operator) {
4353
4382
  case "eq":
@@ -4495,7 +4524,7 @@
4495
4524
  queries: []
4496
4525
  };
4497
4526
  if (n !== -1) {
4498
- const i = e.attribute.substring(0, n), o = i.includes(".") ? C$3(t, i) : t[i];
4527
+ const i = e.attribute.substring(0, n), o = i.includes(".") ? W$2(t, i) : t[i];
4499
4528
  if (Array.isArray(o))
4500
4529
  for (let a = 0; a < o.length; a++) {
4501
4530
  const u = e.attribute.replace("[*]", `[${a}]`);
@@ -4566,7 +4595,7 @@
4566
4595
  // }
4567
4596
  // }
4568
4597
  }
4569
- class Ou {
4598
+ class $u {
4570
4599
  scripts = /* @__PURE__ */ new Map();
4571
4600
  scriptFunctions = /* @__PURE__ */ new Map();
4572
4601
  constructor() {
@@ -4609,16 +4638,16 @@
4609
4638
  return this.getScriptAsFn(e, s)(t, ...i);
4610
4639
  }
4611
4640
  }
4612
- const _u = (r, e) => r ? (e || (e = {}), r.replace(/\$\{(.*?)\}/g, (t, n) => C$3(e, n.trim(), ""))) : "", $u = (r) => {
4641
+ const Cu = (r, e) => r ? (e || (e = {}), r.replace(/\$\{(.*?)\}/g, (t, n) => W$2(e, n.trim(), ""))) : "", Mu = (r) => {
4613
4642
  const e = /* @__PURE__ */ new Set();
4614
4643
  return r.replace(/\$\{(.*?)\}/g, (t, n) => (e.add(n.trim()), "")), { variables: Array.from(e).map((t) => ({ name: t })) };
4615
4644
  };
4616
- var z = hn$1(function(A2, e) {
4645
+ var T$1 = hn$1(function(A2, e) {
4617
4646
  return me$1(A2) ? fa(A2, js$1(e, 1, me$1)) : [];
4618
4647
  });
4619
- class K {
4648
+ class z {
4620
4649
  constructor(e, t, r, i, n) {
4621
- this.modelParser = e, this.cdRef = t, this.item = r, this.indicesController = i, this.queryManager = n, this.cacheCtrl = new mu(!!this.cdRef.dcuplInitOptions.performance?.cache?.enabled);
4650
+ this.modelParser = e, this.cdRef = t, this.item = r, this.indicesController = i, this.queryManager = n, this.cacheCtrl = new vu(!!this.cdRef.dcuplInitOptions.performance?.cache?.enabled);
4622
4651
  }
4623
4652
  initialData;
4624
4653
  filteredData;
@@ -4642,7 +4671,7 @@
4642
4671
  indexDependsOnAttributes(e, t) {
4643
4672
  const r = e.includes("_") ? e.split("_")[0] : e;
4644
4673
  try {
4645
- const i = _$1.parse(r);
4674
+ const i = S$1.parse(r);
4646
4675
  if (!i.isDeepQuery)
4647
4676
  return false;
4648
4677
  const n = i.attribute.split(".");
@@ -4711,7 +4740,7 @@
4711
4740
  for (const r of e.queries)
4712
4741
  if (r.queries)
4713
4742
  for (const i of r.queries)
4714
- i.attribute && _$1.parse(i.attribute).isDeepQuery && t.add(i.attribute);
4743
+ i.attribute && S$1.parse(i.attribute).isDeepQuery && t.add(i.attribute);
4715
4744
  return Array.from(t);
4716
4745
  }
4717
4746
  /**
@@ -4720,7 +4749,7 @@
4720
4749
  getProjectionForQuery(e) {
4721
4750
  const t = this.getDeepQueryAttributes(e);
4722
4751
  if (t.length === 0) return null;
4723
- const r = t.map((i) => _$1.parse(i));
4752
+ const r = t.map((i) => S$1.parse(i));
4724
4753
  return this.queryBuilder.getProjectionForAttributeEntries(r);
4725
4754
  }
4726
4755
  /**
@@ -4749,7 +4778,7 @@
4749
4778
  });
4750
4779
  }
4751
4780
  getAggregate(e, t, r) {
4752
- if (_$1.parse(e.attribute).isDeepQuery)
4781
+ if (S$1.parse(e.attribute).isDeepQuery)
4753
4782
  return Re$2(e, t, r, e.attribute);
4754
4783
  {
4755
4784
  const n = this.model.getAttribute(e.attribute);
@@ -4765,7 +4794,7 @@
4765
4794
  initialSize: 0
4766
4795
  },
4767
4796
  items: []
4768
- }, r = _$1.parse(e.attribute), i = r.isDeepQuery;
4797
+ }, r = S$1.parse(e.attribute), i = r.isDeepQuery;
4769
4798
  let n;
4770
4799
  if (!i && (n = this.model.getAttribute(e.attribute), !n))
4771
4800
  throw new Error("Attribute not found");
@@ -4776,9 +4805,9 @@
4776
4805
  let u = this.item.getItemsAsMap(this.filteredData, this.model, o);
4777
4806
  if (i) {
4778
4807
  const h2 = this.queryBuilder.getProjectionForAttributeEntries([r]), g2 = /* @__PURE__ */ new Map();
4779
- for (const [D2, y2] of u) {
4780
- const v2 = this.item.getProjectedData(h2, this.model, y2);
4781
- g2.set(D2, v2);
4808
+ for (const [y2, D2] of u) {
4809
+ const v2 = this.item.getProjectedData(h2, this.model, D2);
4810
+ g2.set(y2, v2);
4782
4811
  }
4783
4812
  u = g2;
4784
4813
  }
@@ -4793,21 +4822,21 @@
4793
4822
  if (c.distinct)
4794
4823
  for (const h2 of c.distinct) {
4795
4824
  let g2 = { key: h2.value, value: h2.value };
4796
- const D2 = h2.keys.filter((v2) => u.has(v2));
4825
+ const y2 = h2.keys.filter((v2) => u.has(v2));
4797
4826
  if (a) {
4798
4827
  const v2 = a.data.get(h2.value);
4799
4828
  v2 && (g2 = v2);
4800
4829
  }
4801
- const y2 = {
4830
+ const D2 = {
4802
4831
  ...g2,
4803
4832
  key: h2.value,
4804
4833
  _items: [],
4805
4834
  _aggregates: [],
4806
4835
  _meta: {
4807
- size: D2.length
4836
+ size: y2.length
4808
4837
  }
4809
4838
  };
4810
- s.set(h2.value, y2);
4839
+ s.set(h2.value, D2);
4811
4840
  }
4812
4841
  const d = {
4813
4842
  count: e.count,
@@ -4819,17 +4848,17 @@
4819
4848
  d.sort = h2;
4820
4849
  }
4821
4850
  if (t._meta.currentSize = s.size, t._meta.initialSize = c.distinct.length, s = this.item.getItemsAsMap(s, a, d), Array.isArray(e?.aggregates) && s.forEach((h2) => {
4822
- const g2 = c.distinct.find((y2) => y2.value === h2.key), D2 = this.getDataByKeys(u, g2.keys);
4823
- h2._aggregates = e.aggregates.map((y2) => this.getAggregate(y2, D2, f));
4851
+ const g2 = c.distinct.find((D2) => D2.value === h2.key), y2 = this.getDataByKeys(u, g2.keys);
4852
+ h2._aggregates = e.aggregates.map((D2) => this.getAggregate(D2, y2, f));
4824
4853
  }), e?.items) {
4825
4854
  const h2 = e.items?.find((g2) => g2.key === "*");
4826
4855
  h2 ? s.forEach((g2) => {
4827
- const D2 = c.distinct.find((M2) => M2.value === g2.key), y2 = this.getDataByKeys(u, D2.keys), v2 = this.item.getItems(y2, this.model, h2);
4856
+ const y2 = c.distinct.find((M2) => M2.value === g2.key), D2 = this.getDataByKeys(u, y2.keys), v2 = this.item.getItems(D2, this.model, h2);
4828
4857
  g2._items = v2;
4829
4858
  }) : s.forEach((g2) => {
4830
- const D2 = e.items?.find((y2) => y2.key === g2.key);
4831
- if (D2) {
4832
- const y2 = c.distinct.find((F2) => F2.value === g2.key), v2 = this.getDataByKeys(u, y2.keys), M2 = this.item.getItems(v2, this.model, D2);
4859
+ const y2 = e.items?.find((D2) => D2.key === g2.key);
4860
+ if (y2) {
4861
+ const D2 = c.distinct.find((F2) => F2.value === g2.key), v2 = this.getDataByKeys(u, D2.keys), M2 = this.item.getItems(v2, this.model, y2);
4833
4862
  g2._items = M2;
4834
4863
  }
4835
4864
  });
@@ -5004,22 +5033,22 @@
5004
5033
  }
5005
5034
  if (!n || !o) {
5006
5035
  this.indicesController.reset(e);
5007
- const c = _$1.parse(e), d = c.isDeepQuery, h2 = e.includes("[*]");
5008
- let g2 = l;
5009
- if (d && h2) {
5010
- const D2 = this.queryBuilder.getProjectionForAttributeEntries([c]);
5011
- g2 = /* @__PURE__ */ new Map();
5012
- for (const [y2, v2] of l) {
5013
- const M2 = this.item.getProjectedData(D2, this.model, v2);
5014
- g2.set(y2, M2);
5036
+ const c = S$1.parse(e), d = c.isDeepQuery;
5037
+ let h2 = l;
5038
+ if (d) {
5039
+ const g2 = this.queryBuilder.getProjectionForAttributeEntries([c]);
5040
+ h2 = /* @__PURE__ */ new Map();
5041
+ for (const [y2, D2] of l) {
5042
+ const v2 = this.item.getProjectedData(g2, this.model, D2);
5043
+ h2.set(y2, v2);
5015
5044
  }
5016
5045
  }
5017
- g2.forEach((D2) => {
5046
+ h2.forEach((g2) => {
5018
5047
  let y2;
5019
- d && h2 ? (y2 = Y$2(D2, e), y2.length === 0 && (y2 = [void 0])) : y2 = [C$3(D2, e)], this.indicesController.fillInverseIndex(e, D2.key, y2), this.indicesController.fillDataMap(e, y2);
5048
+ d ? (y2 = L$1(g2, e), y2.length === 0 && (y2 = [void 0])) : y2 = [g2[e]], this.indicesController.fillInverseIndex(e, g2.key, y2), this.indicesController.fillDataMap(e, y2);
5020
5049
  }), n = this.indicesController.getIndex(e), o = this.indicesController.getData(e);
5021
5050
  }
5022
- const f = xu(
5051
+ const f = Tu(
5023
5052
  l,
5024
5053
  o,
5025
5054
  r,
@@ -5070,7 +5099,7 @@
5070
5099
  }
5071
5100
  }
5072
5101
  updateFilteredData(e) {
5073
- const t = J$2.now();
5102
+ const t = Z$1.now();
5074
5103
  e?.skipProcessing || (this.filteredData = this.getFilteredData(this.initialData, false), this.cdRef.trigger({
5075
5104
  scope: "list",
5076
5105
  type: "result_updated",
@@ -5119,7 +5148,7 @@
5119
5148
  return this.filterItems.has(e) && (t?.skipProcessing || this.updateFilterItem(e, t)), this.filterItems.get(e);
5120
5149
  }
5121
5150
  }
5122
- let U$2 = class U {
5151
+ class K {
5123
5152
  constructor(e, t) {
5124
5153
  this.modelParser = e, this.scriptController = t;
5125
5154
  }
@@ -5165,7 +5194,7 @@
5165
5194
  }, a = i.map((u, f) => (c) => {
5166
5195
  const d = t.sort.order.at(f), h2 = this.getUndefinedValueForSorting(u, d, r);
5167
5196
  return s(c, u, h2);
5168
- }), o = [...t.sort.order].map((u) => u.toLowerCase()), l = pu(n, [...a], o);
5197
+ }), o = [...t.sort.order].map((u) => u.toLowerCase()), l = yu(n, [...a], o);
5169
5198
  return new Map(
5170
5199
  l.map((u) => [u.key, u])
5171
5200
  );
@@ -5216,7 +5245,7 @@
5216
5245
  }
5217
5246
  isValidSortProjection(e) {
5218
5247
  const t = ["ASC", "DESC"];
5219
- return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || z(e.order, t).length > 0);
5248
+ return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || T$1(e.order, t).length > 0);
5220
5249
  }
5221
5250
  getProjectedData(e, t, r) {
5222
5251
  let i = { key: r.key };
@@ -5255,18 +5284,18 @@
5255
5284
  }
5256
5285
  }), i;
5257
5286
  }
5258
- };
5259
- var L$1 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$2 = (A2, e, t, r) => {
5287
+ }
5288
+ var U$2 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$1 = (A2, e, t, r) => {
5260
5289
  for (var i = $$1(e, t), n = A2.length - 1, s; n >= 0; n--)
5261
5290
  (s = A2[n]) && (i = s(e, t, i) || i);
5262
- return i && L$1(e, t, i), i;
5291
+ return i && U$2(e, t, i), i;
5263
5292
  };
5264
- let p$2 = class p {
5293
+ let p$3 = class p {
5265
5294
  constructor(e, t, r) {
5266
- this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new U$2(
5295
+ this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new K(
5267
5296
  this.dcuplApi.modelParser,
5268
5297
  this.dcuplApi.scriptController
5269
- ), this.filter = new K(
5298
+ ), this.filter = new z(
5270
5299
  this.dcuplApi.modelParser,
5271
5300
  this.cdRef,
5272
5301
  this.itemService,
@@ -5654,7 +5683,7 @@
5654
5683
  });
5655
5684
  if (this.filter.cacheCtrl.has("suggestions", t))
5656
5685
  return this.filter.cacheCtrl.get("suggestions", t);
5657
- const i = _$1.parse(e.attribute).isDeepQuery;
5686
+ const i = S$1.parse(e.attribute).isDeepQuery;
5658
5687
  if (!i && !this.model.getAttribute(e.attribute))
5659
5688
  throw new Error(`Attribute ${e.attribute} does not exist`);
5660
5689
  if (typeof e.value == "string" && e.value.startsWith("/") && e.value.endsWith("/"))
@@ -5680,7 +5709,7 @@
5680
5709
  n = this.filter.filteredData, s = this.filter.queryBuilder.getQuery();
5681
5710
  let a = n;
5682
5711
  if (i) {
5683
- const u = _$1.parse(e.attribute), f = this.filter.queryBuilder.getProjectionForAttributeEntries([u]), c = /* @__PURE__ */ new Map();
5712
+ const u = S$1.parse(e.attribute), f = this.filter.queryBuilder.getProjectionForAttributeEntries([u]), c = /* @__PURE__ */ new Map();
5684
5713
  for (const [d, h2] of n) {
5685
5714
  const g2 = this.filter.item.getProjectedData(f, this.model, h2);
5686
5715
  c.set(d, g2);
@@ -5689,7 +5718,7 @@
5689
5718
  }
5690
5719
  const o = this.filter.indicesController.getOrCreateIndex(e.attribute, a, {
5691
5720
  query: s
5692
- }), l = wu(a, o, e, this.dcuplApi.queryManager);
5721
+ }), l = xu(a, o, e, this.dcuplApi.queryManager);
5693
5722
  return this.filter.cacheCtrl.set("suggestions", t, l), l;
5694
5723
  }
5695
5724
  _getFacets(e) {
@@ -5699,7 +5728,7 @@
5699
5728
  });
5700
5729
  if (this.filter.cacheCtrl.has("facets", t))
5701
5730
  return this.filter.cacheCtrl.get("facets", t);
5702
- const i = _$1.parse(e.attribute).isDeepQuery;
5731
+ const i = S$1.parse(e.attribute).isDeepQuery;
5703
5732
  let n = e.attribute;
5704
5733
  e.attribute.split(".").length > 1 && (n = e.attribute.split(".")[0]);
5705
5734
  const s = this.model.references.get(n);
@@ -5707,7 +5736,7 @@
5707
5736
  s && (a = this.filter.modelParser.models.get(s.model));
5708
5737
  let o;
5709
5738
  if (i) {
5710
- const l = _$1.parse(e.attribute), u = this.filter.queryBuilder.getProjectionForAttributeEntries([l]);
5739
+ const l = S$1.parse(e.attribute), u = this.filter.queryBuilder.getProjectionForAttributeEntries([l]);
5711
5740
  o = /* @__PURE__ */ new Map();
5712
5741
  for (const [f, c] of this.filter.filteredData) {
5713
5742
  const d = this.filter.item.getProjectedData(u, this.model, c);
@@ -5740,7 +5769,7 @@
5740
5769
  });
5741
5770
  if (this.filter.cacheCtrl.has("aggregation", t))
5742
5771
  return this.filter.cacheCtrl.get("aggregation", t);
5743
- const i = _$1.parse(e.attribute);
5772
+ const i = S$1.parse(e.attribute);
5744
5773
  let n = this.filter.filteredData;
5745
5774
  if (i.isDeepQuery) {
5746
5775
  const a = this.filter.queryBuilder.getProjectionForAttributeEntries([i]), o = /* @__PURE__ */ new Map();
@@ -5770,13 +5799,13 @@
5770
5799
  });
5771
5800
  if (this.filter.cacheCtrl.has("pivot", t))
5772
5801
  return this.filter.cacheCtrl.get("pivot", t);
5773
- let i = new cu();
5802
+ let i = new fu();
5774
5803
  this.filter.filteredData.size === this.filter.initialData.size && (i = this.filter.indicesController);
5775
5804
  const s = [
5776
5805
  ...e.rows.map((l) => l.attribute),
5777
5806
  ...e.columns.map((l) => l.attribute),
5778
5807
  ...e.values.map((l) => l.attribute)
5779
- ].map((l) => _$1.parse(l)).filter((l) => l.isDeepQuery);
5808
+ ].map((l) => S$1.parse(l)).filter((l) => l.isDeepQuery);
5780
5809
  let a;
5781
5810
  if (s.length > 0) {
5782
5811
  const l = this.filter.queryBuilder.getProjectionForAttributeEntries(s);
@@ -5790,155 +5819,155 @@
5790
5819
  return this.filter.cacheCtrl.set("pivot", t, o), o;
5791
5820
  }
5792
5821
  };
5793
- C$2([
5794
- vu({
5822
+ C$1([
5823
+ Au({
5795
5824
  scope: "list",
5796
5825
  type: "fn_metadata",
5797
5826
  cloneResult: true,
5798
5827
  connectMessage: true,
5799
5828
  connectMessageResult: true
5800
5829
  })
5801
- ], p$2.prototype, "_getMetadata");
5802
- C$2([
5803
- vu({
5830
+ ], p$3.prototype, "_getMetadata");
5831
+ C$1([
5832
+ Au({
5804
5833
  scope: "list",
5805
5834
  type: "filter_many",
5806
5835
  cloneResult: true,
5807
5836
  connectMessage: true,
5808
5837
  connectMessageResult: true
5809
5838
  })
5810
- ], p$2.prototype, "_getFilters");
5811
- C$2([
5812
- vu({
5839
+ ], p$3.prototype, "_getFilters");
5840
+ C$1([
5841
+ Au({
5813
5842
  scope: "list",
5814
5843
  type: "filter_one",
5815
5844
  cloneResult: true,
5816
5845
  connectMessage: true,
5817
5846
  connectMessageResult: true
5818
5847
  })
5819
- ], p$2.prototype, "_getFilter");
5820
- C$2([
5821
- vu({
5848
+ ], p$3.prototype, "_getFilter");
5849
+ C$1([
5850
+ Au({
5822
5851
  scope: "list",
5823
5852
  type: "query_get",
5824
5853
  cloneResult: true
5825
5854
  })
5826
- ], p$2.prototype, "getQuery");
5827
- C$2([
5828
- vu({
5855
+ ], p$3.prototype, "getQuery");
5856
+ C$1([
5857
+ Au({
5829
5858
  scope: "list",
5830
5859
  type: "query_has"
5831
5860
  })
5832
- ], p$2.prototype, "hasGroupOrQueryKey");
5833
- C$2([
5834
- vu({
5861
+ ], p$3.prototype, "hasGroupOrQueryKey");
5862
+ C$1([
5863
+ Au({
5835
5864
  scope: "list",
5836
5865
  type: "query_apply",
5837
5866
  cloneResult: true,
5838
5867
  connectMessage: true,
5839
5868
  connectMessageResult: true
5840
5869
  })
5841
- ], p$2.prototype, "applyQuery");
5842
- C$2([
5843
- vu({
5870
+ ], p$3.prototype, "applyQuery");
5871
+ C$1([
5872
+ Au({
5844
5873
  scope: "list",
5845
5874
  type: "query_apply_options",
5846
5875
  cloneResult: true,
5847
5876
  connectMessage: true,
5848
5877
  connectMessageResult: true
5849
5878
  })
5850
- ], p$2.prototype, "applyOptions");
5851
- C$2([
5852
- vu({
5879
+ ], p$3.prototype, "applyOptions");
5880
+ C$1([
5881
+ Au({
5853
5882
  scope: "list",
5854
5883
  type: "query_remove",
5855
5884
  cloneResult: true,
5856
5885
  connectMessage: true,
5857
5886
  connectMessageResult: true
5858
5887
  })
5859
- ], p$2.prototype, "removeQuery");
5860
- C$2([
5861
- vu({
5888
+ ], p$3.prototype, "removeQuery");
5889
+ C$1([
5890
+ Au({
5862
5891
  scope: "list",
5863
5892
  type: "query_reset",
5864
5893
  cloneResult: true,
5865
5894
  connectMessage: true,
5866
5895
  connectMessageResult: true
5867
5896
  })
5868
- ], p$2.prototype, "resetQuery");
5869
- C$2([
5870
- vu({
5897
+ ], p$3.prototype, "resetQuery");
5898
+ C$1([
5899
+ Au({
5871
5900
  scope: "list",
5872
5901
  type: "query_execute",
5873
5902
  cloneResult: true,
5874
5903
  connectMessage: true,
5875
5904
  connectMessageResult: true
5876
5905
  })
5877
- ], p$2.prototype, "executeQuery");
5878
- C$2([
5879
- vu({
5906
+ ], p$3.prototype, "executeQuery");
5907
+ C$1([
5908
+ Au({
5880
5909
  scope: "list",
5881
5910
  type: "fn_groupBy",
5882
5911
  cloneResult: true,
5883
5912
  connectMessage: true,
5884
5913
  connectMessageResult: true
5885
5914
  })
5886
- ], p$2.prototype, "_getSections");
5887
- C$2([
5888
- vu({
5915
+ ], p$3.prototype, "_getSections");
5916
+ C$1([
5917
+ Au({
5889
5918
  scope: "list",
5890
5919
  type: "query_one",
5891
5920
  cloneResult: true,
5892
5921
  connectMessage: true,
5893
5922
  connectMessageResult: true
5894
5923
  })
5895
- ], p$2.prototype, "_getItem");
5896
- C$2([
5897
- vu({
5924
+ ], p$3.prototype, "_getItem");
5925
+ C$1([
5926
+ Au({
5898
5927
  scope: "list",
5899
5928
  type: "query_many",
5900
5929
  cloneResult: true,
5901
5930
  connectMessage: true,
5902
5931
  connectMessageResult: true
5903
5932
  })
5904
- ], p$2.prototype, "_getManyItems");
5905
- C$2([
5906
- vu({
5933
+ ], p$3.prototype, "_getManyItems");
5934
+ C$1([
5935
+ Au({
5907
5936
  scope: "list",
5908
5937
  type: "fn_suggest",
5909
5938
  cloneResult: true,
5910
5939
  connectMessage: true,
5911
5940
  connectMessageResult: true
5912
5941
  })
5913
- ], p$2.prototype, "_getSuggestions");
5914
- C$2([
5915
- vu({
5942
+ ], p$3.prototype, "_getSuggestions");
5943
+ C$1([
5944
+ Au({
5916
5945
  scope: "list",
5917
5946
  type: "fn_facets",
5918
5947
  cloneResult: true,
5919
5948
  connectMessage: true,
5920
5949
  connectMessageResult: true
5921
5950
  })
5922
- ], p$2.prototype, "_getFacets");
5923
- C$2([
5924
- vu({
5951
+ ], p$3.prototype, "_getFacets");
5952
+ C$1([
5953
+ Au({
5925
5954
  scope: "list",
5926
5955
  type: "fn_aggregate",
5927
5956
  cloneResult: true,
5928
5957
  connectMessage: true,
5929
5958
  connectMessageResult: true
5930
5959
  })
5931
- ], p$2.prototype, "getAggregate");
5932
- C$2([
5933
- vu({
5960
+ ], p$3.prototype, "getAggregate");
5961
+ C$1([
5962
+ Au({
5934
5963
  scope: "list",
5935
5964
  type: "fn_pivot",
5936
5965
  cloneResult: true,
5937
5966
  connectMessage: true,
5938
5967
  connectMessageResult: true
5939
5968
  })
5940
- ], p$2.prototype, "_getPivot");
5941
- let N$3 = class N extends p$2 {
5969
+ ], p$3.prototype, "_getPivot");
5970
+ let G$4 = class G extends p$3 {
5942
5971
  constructor(e, t, r) {
5943
5972
  super(e, t, r), this.dcuplApi = e, this.cdRef = t, this.indicesController = r;
5944
5973
  }
@@ -5966,10 +5995,10 @@
5966
5995
  return t;
5967
5996
  }
5968
5997
  function ke$1(d, e, t) {
5969
- if (!Q$2(t))
5998
+ if (!E$3(t))
5970
5999
  return false;
5971
6000
  var s = typeof e;
5972
- return (s == "number" ? L$2(t) && $t$1(e, t.length) : s == "string" && e in t) ? De$1(t[e], d) : false;
6001
+ return (s == "number" ? F(t) && $t$1(e, t.length) : s == "string" && e in t) ? De$1(t[e], d) : false;
5973
6002
  }
5974
6003
  function be$1(d) {
5975
6004
  return hn$1(function(e, t) {
@@ -5990,25 +6019,25 @@
5990
6019
  }
5991
6020
  var Ae$1 = Object.prototype, De = Ae$1.hasOwnProperty;
5992
6021
  function Ce$1(d) {
5993
- if (!Q$2(d))
6022
+ if (!E$3(d))
5994
6023
  return Pe$1(d);
5995
6024
  var e = Ct$1(d), t = [];
5996
6025
  for (var s in d)
5997
6026
  s == "constructor" && (e || !De.call(d, s)) || t.push(s);
5998
6027
  return t;
5999
6028
  }
6000
- function B$1(d) {
6001
- return L$2(d) ? Vn$1(d, true) : Ce$1(d);
6029
+ function U$1(d) {
6030
+ return F(d) ? Vn$1(d, true) : Ce$1(d);
6002
6031
  }
6003
- var Me$1 = "[object Object]", Ee$1 = Function.prototype, Ie$1 = Object.prototype, U$1 = Ee$1.toString, xe$1 = Ie$1.hasOwnProperty, Te$1 = U$1.call(Object);
6004
- function Ge$1(d) {
6005
- if (!$$2(d) || N$4(d) != Me$1)
6032
+ var Me$1 = "[object Object]", Ee$1 = Function.prototype, Ie$1 = Object.prototype, N$2 = Ee$1.toString, xe$1 = Ie$1.hasOwnProperty, Ge$2 = N$2.call(Object);
6033
+ function Te$2(d) {
6034
+ if (!$$2(d) || j$2(d) != Me$1)
6006
6035
  return false;
6007
6036
  var e = Ns$1(d);
6008
6037
  if (e === null)
6009
6038
  return true;
6010
6039
  var t = xe$1.call(e, "constructor") && e.constructor;
6011
- return typeof t == "function" && t instanceof t && U$1.call(t) == Te$1;
6040
+ return typeof t == "function" && t instanceof t && N$2.call(t) == Ge$2;
6012
6041
  }
6013
6042
  function Se$1(d, e, t, s) {
6014
6043
  for (var r = -1, i = d == null ? 0 : d.length; ++r < i; ) {
@@ -6022,62 +6051,62 @@
6022
6051
  e(s, r, t(r), n);
6023
6052
  }), s;
6024
6053
  }
6025
- function Fe$2(d, e) {
6054
+ function we$1(d, e) {
6026
6055
  return function(t, s) {
6027
6056
  var r = v$1(t) ? Se$1 : _e$1, i = {};
6028
- return r(t, d, X$3(s), i);
6057
+ return r(t, d, Y$2(s), i);
6029
6058
  };
6030
6059
  }
6031
- function T(d, e, t) {
6060
+ function G$3(d, e, t) {
6032
6061
  (t !== void 0 && !De$1(d[e], t) || t === void 0 && !(e in d)) && un$1(d, e, t);
6033
6062
  }
6034
- function G$3(d, e) {
6063
+ function T(d, e) {
6035
6064
  if (!(e === "constructor" && typeof d[e] == "function") && e != "__proto__")
6036
6065
  return d[e];
6037
6066
  }
6038
- function we$1(d) {
6039
- return Re$1(d, B$1(d));
6067
+ function Fe$1(d) {
6068
+ return Re$1(d, U$1(d));
6040
6069
  }
6041
6070
  function Ke$1(d, e, t, s, r, i, n) {
6042
- var o = G$3(d, t), a = G$3(e, t), l = n.get(a);
6071
+ var o = T(d, t), a = T(e, t), l = n.get(a);
6043
6072
  if (l) {
6044
- T(d, t, l);
6073
+ G$3(d, t, l);
6045
6074
  return;
6046
6075
  }
6047
6076
  var c = i ? i(o, a, t + "", d, e, n) : void 0, f = c === void 0;
6048
6077
  if (f) {
6049
- var u = v$1(a), h2 = !u && oe$1(a), p2 = !u && !h2 && Et$1(a);
6050
- c = a, u || h2 || p2 ? v$1(o) ? c = o : me$1(o) ? c = ve$1(o) : h2 ? (f = false, c = Xs$1(a, true)) : p2 ? (f = false, c = bi(a, true)) : c = [] : Ge$1(a) || Ee$2(a) ? (c = o, Ee$2(o) ? c = we$1(o) : (!Q$2(o) || Ot$1(o)) && (c = Ri(a))) : f = false;
6078
+ var u = v$1(a), h2 = !u && oe$1(a), y2 = !u && !h2 && Et$1(a);
6079
+ c = a, u || h2 || y2 ? v$1(o) ? c = o : me$1(o) ? c = ve$1(o) : h2 ? (f = false, c = Xs$1(a, true)) : y2 ? (f = false, c = bi(a, true)) : c = [] : Te$2(a) || Ee$2(a) ? (c = o, Ee$2(o) ? c = Fe$1(o) : (!E$3(o) || Ot$1(o)) && (c = Ri(a))) : f = false;
6051
6080
  }
6052
- f && (n.set(a, c), r(c, a, s, i, n), n.delete(a)), T(d, t, c);
6081
+ f && (n.set(a, c), r(c, a, s, i, n), n.delete(a)), G$3(d, t, c);
6053
6082
  }
6054
- function N$2(d, e, t, s, r) {
6083
+ function Q$2(d, e, t, s, r) {
6055
6084
  d !== e && oa(e, function(i, n) {
6056
- if (r || (r = new O()), Q$2(i))
6057
- Ke$1(d, e, n, t, N$2, s, r);
6085
+ if (r || (r = new _$1()), E$3(i))
6086
+ Ke$1(d, e, n, t, Q$2, s, r);
6058
6087
  else {
6059
- var o = s ? s(G$3(d, n), i, n + "", d, e, r) : void 0;
6060
- o === void 0 && (o = i), T(d, n, o);
6088
+ var o = s ? s(T(d, n), i, n + "", d, e, r) : void 0;
6089
+ o === void 0 && (o = i), G$3(d, n, o);
6061
6090
  }
6062
- }, B$1);
6091
+ }, U$1);
6063
6092
  }
6064
- var qe$1 = Object.prototype, $e$2 = qe$1.hasOwnProperty, Ve$1 = Fe$2(function(d, e, t) {
6065
- $e$2.call(d, t) ? d[t].push(e) : un$1(d, t, [e]);
6066
- }), Oe$1 = "[object Boolean]";
6093
+ var qe$1 = Object.prototype, Oe$1 = qe$1.hasOwnProperty, $e$1 = we$1(function(d, e, t) {
6094
+ Oe$1.call(d, t) ? d[t].push(e) : un$1(d, t, [e]);
6095
+ }), Ve$1 = "[object Boolean]";
6067
6096
  function Be$1(d) {
6068
- return d === true || d === false || $$2(d) && N$4(d) == Oe$1;
6097
+ return d === true || d === false || $$2(d) && j$2(d) == Ve$1;
6069
6098
  }
6070
6099
  var b$1 = be$1(function(d, e, t) {
6071
- N$2(d, e, t);
6100
+ Q$2(d, e, t);
6072
6101
  });
6073
- const y$1 = (d, e, t) => ({
6102
+ const p$2 = (d, e, t) => ({
6074
6103
  title: d,
6075
6104
  type: "model",
6076
6105
  errorGroup: "ModelDefinitionError",
6077
6106
  errorType: "InvalidModelDefinition",
6078
6107
  attribute: e,
6079
6108
  description: t
6080
- }), Ue$2 = (d) => {
6109
+ }), Ue$1 = (d) => {
6081
6110
  const e = [
6082
6111
  "any",
6083
6112
  "Array<date>",
@@ -6092,54 +6121,63 @@
6092
6121
  "string"
6093
6122
  ];
6094
6123
  if (!d.key)
6095
- return y$1("Invalid Property", d.key, "Property key is missing");
6124
+ return p$2("Invalid Property", d.key, "Property key is missing");
6096
6125
  if (!d.type || e.indexOf(d.type) === -1)
6097
- return y$1("Invalid Property", d.key, "Property type is invalid");
6126
+ return p$2("Invalid Property", d.key, "Property type is invalid");
6098
6127
  if ("derive" in d) {
6099
6128
  if (!d.derive?.localReference)
6100
- return y$1("Invalid Property", d.key, "Derived Property localReference is missing");
6129
+ return p$2("Invalid Property", d.key, "Derived Property localReference is missing");
6101
6130
  if (!d.derive.remoteProperty)
6102
- return y$1("Invalid Property", d.key, "Derived Property remoteProperty is missing");
6131
+ return p$2("Invalid Property", d.key, "Derived Property remoteProperty is missing");
6103
6132
  }
6104
6133
  if ("expression" in d && typeof d.expression != "string")
6105
- return y$1("Invalid Property", d.key, "Expression is invalid");
6134
+ return p$2("Invalid Property", d.key, "Expression is invalid");
6106
6135
  }, Ne$1 = (d) => {
6107
6136
  const e = ["multiValued", "singleValued"];
6108
6137
  if (!d.key)
6109
- return y$1("Invalid Reference", d.key, "Reference key is missing");
6138
+ return p$2("Invalid Reference", d.key, "Reference key is missing");
6110
6139
  if (!d.type || e.indexOf(d.type) === -1)
6111
- return y$1("Invalid Reference", d.key, "Reference type is invalid");
6140
+ return p$2("Invalid Reference", d.key, "Reference type is invalid");
6112
6141
  if (!d.model)
6113
- return y$1("Invalid Reference", d.key, "Reference model is missing");
6142
+ return p$2("Invalid Reference", d.key, "Reference model is missing");
6114
6143
  if ("derive" in d) {
6115
6144
  if (!d.derive.localReference)
6116
- return y$1("Invalid Reference", d.key, "Derived Reference localReference is missing");
6145
+ return p$2("Invalid Reference", d.key, "Derived Reference localReference is missing");
6117
6146
  if (!d.derive.remoteReference)
6118
- return y$1("Invalid Reference", d.key, "Derived Reference remoteReference is missing");
6147
+ return p$2("Invalid Reference", d.key, "Derived Reference remoteReference is missing");
6119
6148
  }
6120
6149
  if ("resolve" in d) {
6121
6150
  if (!d.resolve.reference)
6122
- return y$1("Invalid Reference", d.key, "Resolved Reference reference is missing");
6151
+ return p$2("Invalid Reference", d.key, "Resolved Reference reference is missing");
6123
6152
  if (!d.resolve.model)
6124
- return y$1("Invalid Reference", d.key, "Resolved Reference model is missing");
6153
+ return p$2("Invalid Reference", d.key, "Resolved Reference model is missing");
6125
6154
  }
6126
6155
  if ("groupBy" in d && !d.groupBy.reference)
6127
- return y$1("Invalid Reference", d.key, "Grouped Reference reference is missing");
6128
- }, We$1 = (d) => {
6156
+ return p$2("Invalid Reference", d.key, "Grouped Reference reference is missing");
6157
+ }, Qe$1 = (d) => {
6129
6158
  if (!d.key)
6130
6159
  throw new Error("Invalid Model: key is missing");
6131
6160
  if (typeof d.keyProperty < "u" && typeof d.keyProperty != "string")
6132
6161
  throw new Error("Invalid Model: keyProperty must be a string");
6133
6162
  if (typeof d.autoGenerateKey < "u" && typeof d.autoGenerateKey != "boolean")
6134
6163
  throw new Error("Invalid Model: autoGenerateKey must be a boolean");
6135
- if (typeof d.autoGenerateProperties < "u" && typeof d.autoGenerateProperties != "boolean")
6136
- throw new Error("Invalid Model: autoGenerateProperties must be a boolean");
6164
+ if (typeof d.autoGenerateProperties < "u") {
6165
+ const e = d.autoGenerateProperties;
6166
+ if (typeof e != "boolean") {
6167
+ if (typeof e != "object" || e === null || Array.isArray(e))
6168
+ throw new Error("Invalid Model: autoGenerateProperties must be a boolean or an options object");
6169
+ if (typeof e.deep < "u" && typeof e.deep != "boolean")
6170
+ throw new Error("Invalid Model: autoGenerateProperties.deep must be a boolean");
6171
+ if (typeof e.sampleSize < "u" && (typeof e.sampleSize != "number" || !Number.isFinite(e.sampleSize) || e.sampleSize < 1))
6172
+ throw new Error("Invalid Model: autoGenerateProperties.sampleSize must be a positive number");
6173
+ }
6174
+ }
6137
6175
  if (d.properties && !Array.isArray(d.properties))
6138
6176
  throw new Error("Invalid Model: properties must be an array");
6139
6177
  if (d.references && !Array.isArray(d.references))
6140
6178
  throw new Error("Invalid Model: references must be an array");
6141
6179
  return true;
6142
- }, Qe$1 = (d, e) => {
6180
+ }, We$1 = (d, e) => {
6143
6181
  const t = [];
6144
6182
  return d.references.forEach((s) => {
6145
6183
  e.has(s.model) || t.push({
@@ -6152,7 +6190,7 @@
6152
6190
  description: `Referenced model ${s.model} does not exist`
6153
6191
  }), "derive" in s && t.push(...ze$1(s, d, e)), "resolve" in s && t.push(...je$1(s, d, e)), "groupBy" in s && t.push(...Le$1(s, d));
6154
6192
  }), d.properties.forEach((s) => {
6155
- "derive" in s && t.push(...He$1(s, d, e)), "expression" in s && t.push(...Je$1(s, d));
6193
+ "derive" in s && t.push(...He$1(s, d, e)), "expression" in s && t.push(...Je$2(s, d));
6156
6194
  }), t;
6157
6195
  }, ze$1 = (d, e, t) => {
6158
6196
  const s = [], r = e.references.get(d.derive.localReference);
@@ -6233,9 +6271,9 @@
6233
6271
  });
6234
6272
  }
6235
6273
  return s;
6236
- }, Je$1 = (d, e) => {
6274
+ }, Je$2 = (d, e) => {
6237
6275
  const t = [];
6238
- return $u(d.expression).variables.forEach((r) => {
6276
+ return Mu(d.expression).variables.forEach((r) => {
6239
6277
  r.name === "key" || r.name.endsWith(".key") || !e.properties.get(r.name) && !e.references.get(r.name) && t.push({
6240
6278
  title: "Unknown Expression Variable",
6241
6279
  type: "model",
@@ -6248,16 +6286,16 @@
6248
6286
  }), t;
6249
6287
  }, Ye$1 = {
6250
6288
  REF_VALUE: "_dcupl_ref_"
6251
- }, Xe$1 = {
6289
+ }, Ze$1 = {
6252
6290
  required: true,
6253
6291
  forceStrictDataType: false,
6254
6292
  nullable: false,
6255
6293
  validatorHandling: "loose"
6256
6294
  }, M$1 = {
6257
6295
  enabled: true,
6258
- attributes: Xe$1
6296
+ attributes: Ze$1
6259
6297
  };
6260
- let Ze$1 = class Ze {
6298
+ let Xe$1 = class Xe {
6261
6299
  constructor(e) {
6262
6300
  this.modelParser = e, this.cdRef = e.cdRef;
6263
6301
  }
@@ -6271,11 +6309,12 @@
6271
6309
  supportsAutoCreation = false;
6272
6310
  autoGenerateKey = false;
6273
6311
  autoGenerateProperties = false;
6312
+ autoGeneratePropertiesOption = false;
6274
6313
  keyProperty = "key";
6275
6314
  valueMappings = [];
6276
6315
  meta;
6277
6316
  qualityConfig = M$1;
6278
- indicesController = new cu();
6317
+ indicesController = new fu();
6279
6318
  cdRef;
6280
6319
  // #120 Performance optimization: Reverse index for grouped references
6281
6320
  // Maps reference key -> value -> Set of item keys that have that value
@@ -6286,12 +6325,12 @@
6286
6325
  }
6287
6326
  applyPropertiesAndReferences(e) {
6288
6327
  e.properties?.map((t) => {
6289
- const s = Ue$2(t);
6328
+ const s = Ue$1(t);
6290
6329
  s ? (s.model = this.key, this.setError(s)) : (this.setAttributeQualityConfig(t), this.properties.set(t.key, t));
6291
6330
  }), e.references?.map((t) => {
6292
6331
  const s = Ne$1(t);
6293
6332
  s ? (s.model = this.key, this.setError(s)) : (t.validity = t.validity || "loose", this.setAttributeQualityConfig(t), this.references.set(t.key, t));
6294
- }), this.supportsAutoCreation = !!e.supportsAutoCreation, this.keyProperty = e.keyProperty || "key", this.autoGenerateKey = !!e.autoGenerateKey, this.autoGenerateProperties = !!e.autoGenerateProperties, this.valueMappings = e.valueMappings || [], this.meta = e.meta;
6333
+ }), this.supportsAutoCreation = !!e.supportsAutoCreation, this.keyProperty = e.keyProperty || "key", this.autoGenerateKey = !!e.autoGenerateKey, this.autoGenerateProperties = !!e.autoGenerateProperties, this.autoGeneratePropertiesOption = e.autoGenerateProperties ?? false, this.valueMappings = e.valueMappings || [], this.meta = e.meta;
6295
6334
  }
6296
6335
  setAttributeQualityConfig(e) {
6297
6336
  const t = this.qualityConfig.attributes, s = b$1({}, M$1, t, e.quality);
@@ -6307,16 +6346,17 @@
6307
6346
  supportsAutoCreation: this.supportsAutoCreation,
6308
6347
  valueMappings: this.valueMappings,
6309
6348
  meta: this.meta,
6310
- autoGenerateProperties: this.autoGenerateProperties,
6349
+ autoGenerateProperties: this.autoGeneratePropertiesOption,
6311
6350
  quality: this.qualityConfig
6312
6351
  } : this.initialDefinition;
6313
6352
  }
6314
6353
  generatePropertiesFromContainer(e) {
6315
- Su(e.data).map((s) => {
6316
- if (!this.properties.has(s.key)) {
6317
- if (s.key === "key" && (e.keyProperty === "key" || !e.keyProperty))
6354
+ const t = this.autoGeneratePropertiesOption;
6355
+ (typeof t == "object" && t !== null ? Ou(e.data, t) : Ou(e.data, false)).map((r) => {
6356
+ if (!this.properties.has(r.key)) {
6357
+ if (r.key === "key" && (e.keyProperty === "key" || !e.keyProperty))
6318
6358
  return;
6319
- s.filter = true, this.properties.set(s.key, s);
6359
+ r.filter = true, this.properties.set(r.key, r);
6320
6360
  }
6321
6361
  });
6322
6362
  }
@@ -6473,7 +6513,7 @@
6473
6513
  processIntProperty(e, t, s) {
6474
6514
  const r = this.attributeQualityConfigs.get(e.key);
6475
6515
  if (r?.forceStrictDataType) {
6476
- if (!lu(t)) {
6516
+ if (!hu(t)) {
6477
6517
  this.setError(this.getWrongDataTypeError(e, t, s));
6478
6518
  return;
6479
6519
  }
@@ -6490,7 +6530,7 @@
6490
6530
  processFloatProperty(e, t, s) {
6491
6531
  const r = this.attributeQualityConfigs.get(e.key);
6492
6532
  if (r?.forceStrictDataType) {
6493
- if (!du(t)) {
6533
+ if (!pu(t)) {
6494
6534
  this.setError(this.getWrongDataTypeError(e, t, s));
6495
6535
  return;
6496
6536
  }
@@ -6543,7 +6583,7 @@
6543
6583
  try {
6544
6584
  if (r && typeof r == "string") {
6545
6585
  let n = t;
6546
- typeof n != "string" && (n = String(n)), i = Au(n, r, /* @__PURE__ */ new Date());
6586
+ typeof n != "string" && (n = String(n)), i = Su(n, r, /* @__PURE__ */ new Date());
6547
6587
  } else
6548
6588
  i = new Date(t);
6549
6589
  } catch (n) {
@@ -6713,7 +6753,7 @@
6713
6753
  const r = JSON.stringify(s.query);
6714
6754
  for (let i of e.data) {
6715
6755
  let n = this.data.get(String(i.key));
6716
- const o = _u(r, { ...i }), a = JSON.parse(o), l = new ir$1();
6756
+ const o = Cu(r, { ...i }), a = JSON.parse(o), l = new ir$1();
6717
6757
  l.init({ modelKey: s.model }), l.applyQuery(a, { mode: "set" }), a.projection || l.applyOptions({ projection: { $: false } });
6718
6758
  const c = l.getQuery();
6719
6759
  if (c.queries.length > 0) {
@@ -6875,7 +6915,7 @@
6875
6915
  }), t.length > 0 && t.forEach((a) => {
6876
6916
  this.handleDerivedProperties(a, o);
6877
6917
  }), s.length > 0 && s.forEach((a) => {
6878
- const l = this.createExpressionContext(o), c = _u(a.expression, l);
6918
+ const l = this.createExpressionContext(o), c = Cu(a.expression, l);
6879
6919
  o[a.key] = c;
6880
6920
  }), this.data.set(o.key, o);
6881
6921
  }
@@ -7219,7 +7259,7 @@
7219
7259
  for (let n of e.data) {
7220
7260
  let o = this.data.get(String(n.key));
7221
7261
  if (!o) continue;
7222
- const a = _u(i, { ...n }), l = JSON.parse(a), c = new ir$1();
7262
+ const a = Cu(i, { ...n }), l = JSON.parse(a), c = new ir$1();
7223
7263
  c.init({ modelKey: r.model }), c.applyQuery(l, { mode: "set" }), l.projection || c.applyOptions({ projection: { $: false } });
7224
7264
  const f = c.getQuery();
7225
7265
  if (f.queries.length > 0) {
@@ -7288,7 +7328,7 @@
7288
7328
  }), s.forEach((l) => {
7289
7329
  this.handleDerivedProperties(l, a);
7290
7330
  }), n.forEach((l) => {
7291
- const c = this.createExpressionContext(a), f = _u(l.expression, c);
7331
+ const c = this.createExpressionContext(a), f = Cu(l.expression, c);
7292
7332
  a[l.key] = f;
7293
7333
  }), this.data.set(a.key, a));
7294
7334
  }
@@ -7598,7 +7638,7 @@
7598
7638
  (n = d[i]) && (r = n(e, t, r) || r);
7599
7639
  return r && nt$1(e, t, r), r;
7600
7640
  };
7601
- let C$1 = class C {
7641
+ class C {
7602
7642
  constructor(e, t, s) {
7603
7643
  this.cdRef = e, this.qualityController = t, this.dcuplInstance = s, this.qualityController.modelParser = this;
7604
7644
  }
@@ -7623,14 +7663,14 @@
7623
7663
  if (this.models.has(e.key))
7624
7664
  this.models.get(e.key).resetData(), this.models.get(e.key).resetIndexMap(), this.models.get(e.key).applyPropertiesAndReferences(e);
7625
7665
  else {
7626
- const t = new Ze$1(this);
7666
+ const t = new Xe$1(this);
7627
7667
  t.init(e), t.applyPropertiesAndReferences(e), this.models.set(t.key, t);
7628
7668
  }
7629
7669
  });
7630
7670
  }
7631
7671
  validateModels() {
7632
7672
  this.models.forEach((e) => {
7633
- e.qualityConfig.enabled === true && Qe$1(e, this.models).forEach((s) => {
7673
+ e.qualityConfig.enabled === true && We$1(e, this.models).forEach((s) => {
7634
7674
  this.setError(s, e);
7635
7675
  });
7636
7676
  });
@@ -7666,7 +7706,7 @@ Models cannot have circular references as this leads to unpredictable behavior d
7666
7706
  * This enables partial updates by tracking which attributes depend on others.
7667
7707
  */
7668
7708
  buildAttributeDependencyGraph() {
7669
- this.attributeDependencyGraph = new yu(), this.models.forEach((e) => {
7709
+ this.attributeDependencyGraph = new bu(), this.models.forEach((e) => {
7670
7710
  const t = e.key;
7671
7711
  e.properties.forEach((s, r) => {
7672
7712
  if (s.expression)
@@ -7738,7 +7778,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
7738
7778
  processingStep: 3
7739
7779
  };
7740
7780
  this.attributeDependencyGraph.addAttribute(r);
7741
- const { variables: i } = $u(s);
7781
+ const { variables: i } = Mu(s);
7742
7782
  i.forEach((n) => {
7743
7783
  const a = n.name.split("."), l = this.models.get(e);
7744
7784
  if (!l) return;
@@ -7760,18 +7800,18 @@ These attributes will default to Step 1 processing which may be incorrect. This
7760
7800
  };
7761
7801
  if (this.attributeDependencyGraph.addAttributeDependency(r, f), a.length > 1) {
7762
7802
  let u = l, h2 = e;
7763
- for (let p2 = 0; p2 < a.length - 1; p2++) {
7764
- const R2 = a[p2], m = u.references.get(R2);
7803
+ for (let y2 = 0; y2 < a.length - 1; y2++) {
7804
+ const R2 = a[y2], m = u.references.get(R2);
7765
7805
  if (m) {
7766
7806
  const _2 = this.models.get(m.model);
7767
- if (_2 && (u = _2, h2 = m.model, p2 === a.length - 2)) {
7768
- const W2 = a[a.length - 1], Q2 = {
7807
+ if (_2 && (u = _2, h2 = m.model, y2 === a.length - 2)) {
7808
+ const W2 = a[a.length - 1], z2 = {
7769
7809
  modelKey: h2,
7770
7810
  attributeKey: W2,
7771
7811
  type: "property",
7772
7812
  processingStep: 1
7773
7813
  };
7774
- this.attributeDependencyGraph.addAttributeDependency(r, Q2);
7814
+ this.attributeDependencyGraph.addAttributeDependency(r, z2);
7775
7815
  }
7776
7816
  }
7777
7817
  }
@@ -7826,7 +7866,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
7826
7866
  };
7827
7867
  this.attributeDependencyGraph.addAttribute(r);
7828
7868
  try {
7829
- const i = JSON.stringify(s), { variables: n } = $u(i);
7869
+ const i = JSON.stringify(s), { variables: n } = Mu(i);
7830
7870
  n.forEach((o) => {
7831
7871
  const a = o.name, l = this.models.get(e);
7832
7872
  if (l) {
@@ -8019,12 +8059,12 @@ These attributes will default to Step 1 processing which may be incorrect. This
8019
8059
  await this.connectDataWithModels(e);
8020
8060
  }
8021
8061
  getSortedCalculationTimings() {
8022
- return pu(this.calculationTimings, "value");
8062
+ return yu(this.calculationTimings, "value");
8023
8063
  }
8024
8064
  addModel(e) {
8025
8065
  if (e?.quality?.enabled !== false)
8026
8066
  try {
8027
- We$1(e);
8067
+ Qe$1(e);
8028
8068
  } catch (t) {
8029
8069
  this.qualityController.enabled && this.qualityController.setError({
8030
8070
  title: "Invalid Model Definition",
@@ -8060,7 +8100,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8060
8100
  throw new Error("Invalid Data - Data must be an Array");
8061
8101
  e.type || (e.type = "set"), e.autoGenerateProperties && this.addModel({
8062
8102
  key: e.model,
8063
- autoGenerateProperties: true,
8103
+ autoGenerateProperties: e.autoGenerateProperties,
8064
8104
  autoGenerateKey: e.autoGenerateKey,
8065
8105
  keyProperty: e.keyProperty || "key"
8066
8106
  }), this.changeTracker.recordDataChange(e), this.unprocessedData.push(e);
@@ -8077,7 +8117,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8077
8117
  this.qualityController.enabled && t.qualityConfig.enabled === true && this.qualityController.setError(e);
8078
8118
  }
8079
8119
  getMergedContainers(e) {
8080
- const s = this.handleAlternativeKey(e).filter((n) => !n.placeholderUid), r = [], i = Ve$1(s, "model");
8120
+ const s = this.handleAlternativeKey(e).filter((n) => !n.placeholderUid), r = [], i = $e$1(s, "model");
8081
8121
  for (const n in i) {
8082
8122
  const o = i[n];
8083
8123
  if (o.length > 1) {
@@ -8216,9 +8256,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
8216
8256
  for (const f of c) {
8217
8257
  const u = l.references.get(f);
8218
8258
  if (u && E$2(u)) {
8219
- const h2 = u.resolve.model, p2 = u.resolve.reference, R2 = this.models.get(h2);
8259
+ const h2 = u.resolve.model, y2 = u.resolve.reference, R2 = this.models.get(h2);
8220
8260
  if (R2) {
8221
- const m = R2.references.get(p2);
8261
+ const m = R2.references.get(y2);
8222
8262
  m && E$2(m) && t.get(a).add(h2);
8223
8263
  }
8224
8264
  }
@@ -8403,36 +8443,36 @@ These attributes will default to Step 1 processing which may be incorrect. This
8403
8443
  e += t.getItemCount();
8404
8444
  return e;
8405
8445
  }
8406
- };
8446
+ }
8407
8447
  D([
8408
- vu({
8448
+ Au({
8409
8449
  scope: "global",
8410
8450
  type: "model_add",
8411
8451
  connectMessage: true
8412
8452
  })
8413
- ], C$1.prototype, "addModel");
8453
+ ], C.prototype, "addModel");
8414
8454
  D([
8415
- vu({
8455
+ Au({
8416
8456
  scope: "global",
8417
8457
  type: "data_change",
8418
8458
  connectMessage: true
8419
8459
  })
8420
- ], C$1.prototype, "addData");
8460
+ ], C.prototype, "addData");
8421
8461
  D([
8422
- vu({
8462
+ Au({
8423
8463
  scope: "global",
8424
8464
  type: "view_add",
8425
8465
  connectMessage: true
8426
8466
  })
8427
- ], C$1.prototype, "addView");
8467
+ ], C.prototype, "addView");
8428
8468
  D([
8429
- vu({
8469
+ Au({
8430
8470
  scope: "global",
8431
8471
  type: "dcupl_handle_datacontainer"
8432
8472
  })
8433
- ], C$1.prototype, "handleDataContainer");
8473
+ ], C.prototype, "handleDataContainer");
8434
8474
  function q$1(d, e) {
8435
- return B$2(e, function(t) {
8475
+ return B$1(e, function(t) {
8436
8476
  return d[t];
8437
8477
  });
8438
8478
  }
@@ -8441,7 +8481,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8441
8481
  }
8442
8482
  var W$1 = Math.max;
8443
8483
  function Q$1(d, e, t, r) {
8444
- d = L$2(d) ? d : G$2(d), t = t ? Me$2(t) : 0;
8484
+ d = F(d) ? d : G$2(d), t = t ? Me$2(t) : 0;
8445
8485
  var s = d.length;
8446
8486
  return t < 0 && (t = W$1(s + t, 0)), wa(d) ? t <= s && d.indexOf(e, t) > -1 : !!s && nn$1(d, e, t) > -1;
8447
8487
  }
@@ -8463,12 +8503,12 @@ These attributes will default to Step 1 processing which may be incorrect. This
8463
8503
  if (!t)
8464
8504
  throw new Error(`Model with key ${e.modelKey} not found`);
8465
8505
  const r = this.getListItemKeys(e), s = this.getRelevantData(t, r), i = this.initIndicesController(r, t, s);
8466
- this.catalog ? this.catalog.filter.update(t, s, i) : (this.catalog = new N$3(this.dcuplApi, this.cdRef, i), this.catalog.init(this.modelKey, t, s));
8506
+ this.catalog ? this.catalog.filter.update(t, s, i) : (this.catalog = new G$4(this.dcuplApi, this.cdRef, i), this.catalog.init(this.modelKey, t, s));
8467
8507
  }
8468
8508
  initIndicesController(e, t, r) {
8469
8509
  let s;
8470
8510
  if (e) {
8471
- s = new cu();
8511
+ s = new fu();
8472
8512
  for (const i of t.indicesController.indexMap.keys())
8473
8513
  s.getOrCreateIndex(i, r);
8474
8514
  } else
@@ -8495,7 +8535,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8495
8535
  // }
8496
8536
  // @trigger({ scope: 'global', name: 'list:create', type: 'list_created' })
8497
8537
  init(e) {
8498
- this.options = E$3(e), this.key = this.options.listKey, this.modelKey = this.options.modelKey, this.setup(this.options);
8538
+ this.options = I$1(e), this.key = this.options.listKey, this.modelKey = this.options.modelKey, this.setup(this.options);
8499
8539
  }
8500
8540
  initFromItemKeys(e, t) {
8501
8541
  const r = /* @__PURE__ */ new Map();
@@ -8523,24 +8563,24 @@ These attributes will default to Step 1 processing which may be incorrect. This
8523
8563
  }
8524
8564
  }
8525
8565
  E$1([
8526
- vu({
8566
+ Au({
8527
8567
  scope: "list",
8528
8568
  type: "list_destroyed",
8529
8569
  connectMessage: true
8530
8570
  })
8531
8571
  ], v.prototype, "_destroy");
8532
8572
  E$1([
8533
- vu({
8573
+ Au({
8534
8574
  scope: "list",
8535
8575
  type: "list_updated",
8536
8576
  action: "update",
8537
8577
  connectMessage: true
8538
8578
  })
8539
8579
  ], v.prototype, "update");
8540
- var H$1 = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, J$1 = (d, e, t, r) => {
8541
- for (var s = Z(e, t), i = d.length - 1, o; i >= 0; i--)
8580
+ var Z = Object.defineProperty, H$1 = Object.getOwnPropertyDescriptor, J$1 = (d, e, t, r) => {
8581
+ for (var s = H$1(e, t), i = d.length - 1, o; i >= 0; i--)
8542
8582
  (o = d[i]) && (s = o(e, t, s) || s);
8543
- return s && H$1(e, t, s), s;
8583
+ return s && Z(e, t, s), s;
8544
8584
  };
8545
8585
  let k$1 = class k {
8546
8586
  constructor(e, t) {
@@ -8564,7 +8604,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8564
8604
  }
8565
8605
  create(e) {
8566
8606
  e.listKey = e.listKey || Ha();
8567
- const t = new bu();
8607
+ const t = new wu();
8568
8608
  t._init({
8569
8609
  cdRefKey: e.listKey,
8570
8610
  parentCd: this.dcuplInstance.cdRef,
@@ -8576,7 +8616,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8576
8616
  }
8577
8617
  };
8578
8618
  J$1([
8579
- vu({
8619
+ Au({
8580
8620
  scope: "global",
8581
8621
  type: "list_created",
8582
8622
  connectMessage: true
@@ -8650,7 +8690,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8650
8690
  cleanUpErrors(e, t, r) {
8651
8691
  const i = this.getModelErrors(e.key).filter((o) => o.errorType === r);
8652
8692
  if (i.length > 0) {
8653
- const o = Ve$1(i, "attribute");
8693
+ const o = $e$1(i, "attribute");
8654
8694
  for (const a in o) {
8655
8695
  const l = o[a];
8656
8696
  if (l?.length === t.data.length) {
@@ -8896,7 +8936,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
8896
8936
  }
8897
8937
  }
8898
8938
  calculateSizesForModels() {
8899
- const t = this.dcupl.analyticsController.getByType("resource").filter((i) => i.value?.type === "data"), r = Ve$1(t, (i) => i.value?.model);
8939
+ const t = this.dcupl.analyticsController.getByType("resource").filter((i) => i.value?.type === "data"), r = $e$1(t, (i) => i.value?.model);
8900
8940
  return Object.keys(r).map((i) => {
8901
8941
  const o = r[i]?.reduce((l, n) => {
8902
8942
  const c = n.value.encodedBodySize;
@@ -9170,15 +9210,15 @@ These attributes will default to Step 1 processing which may be incorrect. This
9170
9210
  return s && Y$1(e, t, s), s;
9171
9211
  };
9172
9212
  let p$1 = class p {
9173
- cdRef = new bu();
9174
- analyticsController = new gu();
9175
- scriptController = new Ou();
9213
+ cdRef = new wu();
9214
+ analyticsController = new mu();
9215
+ scriptController = new $u();
9176
9216
  qualityController = new X$2(this.scriptController);
9177
9217
  log = Ua.child({ prefix: "Dcupl" });
9178
- modelParser = new C$1(this.cdRef, this.qualityController, this);
9179
- globalItemService = new U$2(this.modelParser, this.scriptController);
9180
- cacheCtrl = new mu(false);
9181
- queryManager = new Tu(
9218
+ modelParser = new C(this.cdRef, this.qualityController, this);
9219
+ globalItemService = new K(this.modelParser, this.scriptController);
9220
+ cacheCtrl = new vu(false);
9221
+ queryManager = new _u(
9182
9222
  this.scriptController,
9183
9223
  this.globalItemService,
9184
9224
  // Cast needed due to dist vs src type mismatch in monorepo
@@ -9539,9 +9579,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
9539
9579
  return this.getFnList({ modelKey: e?.modelKey }).catalog.query.execute(e);
9540
9580
  }
9541
9581
  addLoader(e, t) {
9542
- const r = J$2.now(), s = t || Ha();
9582
+ const r = Z$1.now(), s = t || Ha();
9543
9583
  this._loaders.set(s, e), e.core = this, e.key = s;
9544
- const i = new bu();
9584
+ const i = new wu();
9545
9585
  i._init({
9546
9586
  cdRefKey: s,
9547
9587
  parentCd: this.cdRef,
@@ -9575,7 +9615,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9575
9615
  }
9576
9616
  };
9577
9617
  h([
9578
- vu({
9618
+ Au({
9579
9619
  scope: "global",
9580
9620
  type: "fn_pivot",
9581
9621
  cloneResult: true,
@@ -9584,7 +9624,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9584
9624
  })
9585
9625
  ], p$1.prototype, "_pivot");
9586
9626
  h([
9587
- vu({
9627
+ Au({
9588
9628
  scope: "global",
9589
9629
  type: "fn_aggregate",
9590
9630
  cloneResult: true,
@@ -9593,7 +9633,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9593
9633
  })
9594
9634
  ], p$1.prototype, "_aggregate");
9595
9635
  h([
9596
- vu({
9636
+ Au({
9597
9637
  scope: "global",
9598
9638
  type: "fn_suggest",
9599
9639
  cloneResult: true,
@@ -9602,7 +9642,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9602
9642
  })
9603
9643
  ], p$1.prototype, "_suggest");
9604
9644
  h([
9605
- vu({
9645
+ Au({
9606
9646
  scope: "global",
9607
9647
  type: "fn_groupBy",
9608
9648
  cloneResult: true,
@@ -9611,7 +9651,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9611
9651
  })
9612
9652
  ], p$1.prototype, "_groupBy");
9613
9653
  h([
9614
- vu({
9654
+ Au({
9615
9655
  scope: "global",
9616
9656
  type: "fn_facets",
9617
9657
  cloneResult: true,
@@ -9620,7 +9660,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9620
9660
  })
9621
9661
  ], p$1.prototype, "_facets");
9622
9662
  h([
9623
- vu({
9663
+ Au({
9624
9664
  scope: "global",
9625
9665
  type: "fn_metadata",
9626
9666
  cloneResult: true,
@@ -9629,14 +9669,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
9629
9669
  })
9630
9670
  ], p$1.prototype, "_metadata");
9631
9671
  h([
9632
- vu({
9672
+ Au({
9633
9673
  scope: "global",
9634
9674
  type: "dcupl_initialized",
9635
9675
  connectMessage: true
9636
9676
  })
9637
9677
  ], p$1.prototype, "init");
9638
9678
  h([
9639
- vu({
9679
+ Au({
9640
9680
  scope: "global",
9641
9681
  type: "dcupl_updated_manually",
9642
9682
  action: "update",
@@ -9644,14 +9684,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
9644
9684
  })
9645
9685
  ], p$1.prototype, "update");
9646
9686
  h([
9647
- vu({
9687
+ Au({
9648
9688
  scope: "global",
9649
9689
  type: "dcupl_destroyed",
9650
9690
  connectMessage: true
9651
9691
  })
9652
9692
  ], p$1.prototype, "destroy");
9653
9693
  h([
9654
- vu({
9694
+ Au({
9655
9695
  scope: "global",
9656
9696
  type: "query_one",
9657
9697
  cloneResult: true,
@@ -9660,7 +9700,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9660
9700
  })
9661
9701
  ], p$1.prototype, "getItem");
9662
9702
  h([
9663
- vu({
9703
+ Au({
9664
9704
  scope: "global",
9665
9705
  type: "query_many",
9666
9706
  cloneResult: true,
@@ -9669,7 +9709,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
9669
9709
  })
9670
9710
  ], p$1.prototype, "_getManyItems");
9671
9711
  h([
9672
- vu({
9712
+ Au({
9673
9713
  scope: "global",
9674
9714
  type: "query_execute",
9675
9715
  cloneResult: true,
@@ -9678,14 +9718,14 @@ These attributes will default to Step 1 processing which may be incorrect. This
9678
9718
  })
9679
9719
  ], p$1.prototype, "executeQuery");
9680
9720
  h([
9681
- vu({
9721
+ Au({
9682
9722
  scope: "global",
9683
9723
  type: "loader_removed",
9684
9724
  connectMessage: true
9685
9725
  })
9686
9726
  ], p$1.prototype, "removeLoader");
9687
9727
  let ie$1 = class ie extends p$1 {
9688
- version = "1.12.0";
9728
+ version = "2.0.0-beta.2";
9689
9729
  constructor(e) {
9690
9730
  super(e);
9691
9731
  }
@@ -10480,7 +10520,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10480
10520
  function cloneDeep(value) {
10481
10521
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
10482
10522
  }
10483
- const x$1 = {
10523
+ const A = {
10484
10524
  now: () => typeof performance < "u" && performance.now ? performance.now() : (/* @__PURE__ */ new Date()).getTime(),
10485
10525
  mark: (o) => {
10486
10526
  typeof performance < "u" && performance.mark && performance.mark(o);
@@ -10703,7 +10743,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10703
10743
  for (let r = 0; r < o; r++) e += t.charAt(Math.floor(Math.random() * t.length));
10704
10744
  return e;
10705
10745
  }
10706
- let $e$1 = class $e {
10746
+ let Ge$1 = class Ge {
10707
10747
  key;
10708
10748
  parentCd;
10709
10749
  dcuplInitOptions;
@@ -10729,7 +10769,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10729
10769
  this.off && this.off();
10730
10770
  }
10731
10771
  trigger(e) {
10732
- e.originCdRefKey || (e.originCdRefKey = this.key), e.key || (this.increaseCounter(), e.key = this.getCounter()), e.end || (e.end = x$1.now(), e.duration = e.start - e.end), this.updateListener.forEach((t) => {
10772
+ e.originCdRefKey || (e.originCdRefKey = this.key), e.key || (this.increaseCounter(), e.key = this.getCounter()), e.end || (e.end = A.now(), e.duration = e.start - e.end), this.updateListener.forEach((t) => {
10733
10773
  t(e);
10734
10774
  });
10735
10775
  }
@@ -10739,17 +10779,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
10739
10779
  };
10740
10780
  }
10741
10781
  };
10742
- const P = (o, e) => e ? typeof structuredClone < "u" ? structuredClone(o) : cloneDeep(o) : o, G$1 = (o, e, t, r, s, i) => {
10782
+ const P$1 = (o, e) => e ? typeof structuredClone < "u" ? structuredClone(o) : cloneDeep(o) : o, G$1 = (o, e, t, r, s, i) => {
10743
10783
  try {
10744
- const n = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = P(i, n);
10784
+ const n = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = P$1(i, n);
10745
10785
  if (t.scope === "list" && (t.listKey = o.cdRef?.key || o.key, t.modelKey = o.model?.key || o.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
10746
10786
  return a;
10747
- const u = x$1.now(), f = u - r, c = Math.round(f * 1e3) / 1e3;
10748
- t.duration = c, t.start = r, t.end = u;
10749
- const d = {
10787
+ const u = A.now(), c = u - r, f = Math.round(c * 1e3) / 1e3;
10788
+ t.duration = f, t.start = r, t.end = u;
10789
+ const l = {
10750
10790
  duration: t.duration
10751
10791
  };
10752
- return t.modelKey && (d.model = t.modelKey), t.connectMessageResult && (t.result = a), t.args && (d.args = t.args), e?.trigger(t), e.analyticsController.mark({
10792
+ return t.modelKey && (l.model = t.modelKey), t.connectMessageResult && (t.result = a), t.args && (l.args = t.args), e?.trigger(t), e.analyticsController.mark({
10753
10793
  name: `${t.type}:end`,
10754
10794
  context: s
10755
10795
  }), e.analyticsController.measure({
@@ -10757,28 +10797,28 @@ These attributes will default to Step 1 processing which may be incorrect. This
10757
10797
  start: `${t.type}:start`,
10758
10798
  end: `${t.type}:end`,
10759
10799
  context: s,
10760
- detail: d
10800
+ detail: l
10761
10801
  }), a;
10762
10802
  } catch {
10763
10803
  return i;
10764
10804
  }
10765
- }, Fe$1 = (o) => (t, r, s) => {
10805
+ }, Te$1 = (o) => (t, r, s) => {
10766
10806
  const i = s.value;
10767
10807
  return s.value = function(...n) {
10768
- const a = x$1.now(), u = this.cdRef, f = P(o, true);
10769
- f.key || (u.increaseCounter(), f.key = u.getCounter());
10770
- const c = ee$1();
10808
+ const a = A.now(), u = this.cdRef, c = P$1(o, true);
10809
+ c.key || (u.increaseCounter(), c.key = u.getCounter());
10810
+ const f = ee$1();
10771
10811
  u.analyticsController.mark({
10772
- name: `${f.type}:start`,
10773
- context: c
10812
+ name: `${c.type}:start`,
10813
+ context: f
10774
10814
  });
10775
- const d = this.model?.key;
10776
- !f.originCdRefKey && u.key && (f.originCdRefKey = u.key), d && (f.modelKey = d);
10777
- const l = i.apply(this, n);
10778
- return f.method = r, f.args = n, l && typeof l == "object" && "then" in l ? l.then((h2) => G$1(this, u, f, a, c, h2)) : G$1(this, u, f, a, c, l);
10815
+ const l = this.model?.key;
10816
+ !c.originCdRefKey && u.key && (c.originCdRefKey = u.key), l && (c.modelKey = l);
10817
+ const d = i.apply(this, n);
10818
+ return c.method = r, c.args = n, d && typeof d == "object" && "then" in d ? d.then((h2) => G$1(this, u, c, a, f, h2)) : G$1(this, u, c, a, f, d);
10779
10819
  }, s;
10780
10820
  };
10781
- const Ue$1 = (o, e) => o ? (e || (e = {}), o.replace(/\$\{(.*?)\}/g, (t, r) => get(e, r.trim(), ""))) : "";
10821
+ const Je$1 = (o, e) => o ? (e || (e = {}), o.replace(/\$\{(.*?)\}/g, (t, r) => get(e, r.trim(), ""))) : "";
10782
10822
  let Me = class {
10783
10823
  log = X$1.child({ prefix: "DcuplCsvParser" });
10784
10824
  parse(e, r = {}) {
@@ -10799,7 +10839,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10799
10839
  g2++;
10800
10840
  e = e.slice(g2), f = e.length, g2 = 0;
10801
10841
  }
10802
- const O2 = r.delimiter || this.detectDelimiter(e);
10842
+ const O = r.delimiter || this.detectDelimiter(e);
10803
10843
  for (; g2 < f; g2++) {
10804
10844
  const v2 = e[g2], F2 = e[g2 + 1];
10805
10845
  if (s && v2 === s && !T2 && d.length === 0) {
@@ -10817,12 +10857,12 @@ These attributes will default to Step 1 processing which may be incorrect. This
10817
10857
  ` ? 1 : 0;
10818
10858
  continue;
10819
10859
  }
10820
- else if (v2 === O2 && !T2)
10860
+ else if (v2 === O && !T2)
10821
10861
  h2.push(d), d = "";
10822
10862
  else if (v2 === n)
10823
10863
  T2 ? F2 === a ? (d += n, g2++) : T2 = false : d.length === 0 ? T2 = true : d += v2;
10824
10864
  else if ((T2 || d.length === 0) && (v2 === "{" || v2 === "[")) {
10825
- const $2 = this.extractJson(e, g2, O2);
10865
+ const $2 = this.extractJson(e, g2, O);
10826
10866
  d += $2.value, g2 += $2.length - 1;
10827
10867
  } else
10828
10868
  d += v2;
@@ -10978,7 +11018,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10978
11018
  return new Me().parse(e, a);
10979
11019
  }
10980
11020
  }
10981
- var He = typeof global == "object" && global && global.Object === Object && global, pt = typeof self == "object" && self && self.Object === Object && self, C = He || pt || Function("return this")(), V = C.Symbol, Le = Object.prototype, ft = Le.hasOwnProperty, ht = Le.toString, M = V ? V.toStringTag : void 0;
11021
+ var He = typeof global == "object" && global && global.Object === Object && global, pt = typeof self == "object" && self && self.Object === Object && self, P = He || pt || Function("return this")(), V = P.Symbol, Le = Object.prototype, ft = Le.hasOwnProperty, ht = Le.toString, M = V ? V.toStringTag : void 0;
10982
11022
  function gt(t) {
10983
11023
  var e = ft.call(t, M), r = t[M];
10984
11024
  try {
@@ -10994,7 +11034,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
10994
11034
  return mt.call(t);
10995
11035
  }
10996
11036
  var vt = "[object Null]", Tt = "[object Undefined]", he = V ? V.toStringTag : void 0;
10997
- function G(t) {
11037
+ function B(t) {
10998
11038
  return t == null ? t === void 0 ? Tt : vt : he && he in Object(t) ? gt(t) : bt(t);
10999
11039
  }
11000
11040
  function k(t) {
@@ -11014,13 +11054,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
11014
11054
  return t;
11015
11055
  }
11016
11056
  var Ct = "[object AsyncFunction]", Pt = "[object Function]", jt = "[object GeneratorFunction]", _t = "[object Proxy]";
11017
- function Be(t) {
11057
+ function Ge(t) {
11018
11058
  if (!W(t))
11019
11059
  return false;
11020
- var e = G(t);
11060
+ var e = B(t);
11021
11061
  return e == Pt || e == jt || e == Ct || e == _t;
11022
11062
  }
11023
- var ee = C["__core-js_shared__"], ge = (function() {
11063
+ var ee = P["__core-js_shared__"], ge = (function() {
11024
11064
  var t = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "");
11025
11065
  return t ? "Symbol(src)_1." + t : "";
11026
11066
  })();
@@ -11047,7 +11087,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11047
11087
  function kt(t) {
11048
11088
  if (!W(t) || At(t))
11049
11089
  return false;
11050
- var e = Be(t) ? Rt : Et;
11090
+ var e = Ge(t) ? Rt : Et;
11051
11091
  return e.test(E(t));
11052
11092
  }
11053
11093
  function Ut(t, e) {
@@ -11057,7 +11097,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11057
11097
  var r = Ut(t, e);
11058
11098
  return kt(r) ? r : void 0;
11059
11099
  }
11060
- var re = x(C, "WeakMap"), ye = Object.create, Dt = /* @__PURE__ */ (function() {
11100
+ var re = x(P, "WeakMap"), ye = Object.create, Dt = /* @__PURE__ */ (function() {
11061
11101
  function t() {
11062
11102
  }
11063
11103
  return function(e) {
@@ -11084,7 +11124,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11084
11124
  return t.apply(e, r);
11085
11125
  }
11086
11126
  var Ht = 800, Lt = 16, Nt = Date.now;
11087
- function Bt(t) {
11127
+ function Gt(t) {
11088
11128
  var e = 0, r = 0;
11089
11129
  return function() {
11090
11130
  var n = Nt(), a = Lt - (n - r);
@@ -11096,7 +11136,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11096
11136
  return t.apply(void 0, arguments);
11097
11137
  };
11098
11138
  }
11099
- function Gt(t) {
11139
+ function Bt(t) {
11100
11140
  return function() {
11101
11141
  return t;
11102
11142
  };
@@ -11111,10 +11151,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
11111
11151
  return J(t, "toString", {
11112
11152
  configurable: true,
11113
11153
  enumerable: false,
11114
- value: Gt(e),
11154
+ value: Bt(e),
11115
11155
  writable: true
11116
11156
  });
11117
- } : Ne, zt = Bt(Kt);
11157
+ } : Ne, zt = Gt(Kt);
11118
11158
  function qt(t, e) {
11119
11159
  for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== false; )
11120
11160
  ;
@@ -11155,13 +11195,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
11155
11195
  writable: true
11156
11196
  }) : t[e] = r;
11157
11197
  }
11158
- function Ge(t, e) {
11198
+ function Be(t, e) {
11159
11199
  return t === e || t !== t && e !== e;
11160
11200
  }
11161
11201
  var nr = Object.prototype, sr = nr.hasOwnProperty;
11162
11202
  function or(t, e, r) {
11163
11203
  var n = t[e];
11164
- (!(sr.call(t, e) && Ge(n, r)) || r === void 0 && !(e in t)) && rr(t, e, r);
11204
+ (!(sr.call(t, e) && Be(n, r)) || r === void 0 && !(e in t)) && rr(t, e, r);
11165
11205
  }
11166
11206
  var me = Math.max;
11167
11207
  function ar(t, e, r) {
@@ -11182,7 +11222,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11182
11222
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= lr;
11183
11223
  }
11184
11224
  function ze(t) {
11185
- return t != null && Ke(t.length) && !Be(t);
11225
+ return t != null && Ke(t.length) && !Ge(t);
11186
11226
  }
11187
11227
  var cr = Object.prototype;
11188
11228
  function qe(t) {
@@ -11196,7 +11236,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11196
11236
  }
11197
11237
  var dr = "[object Arguments]";
11198
11238
  function be(t) {
11199
- return k(t) && G(t) == dr;
11239
+ return k(t) && B(t) == dr;
11200
11240
  }
11201
11241
  var Je = Object.prototype, pr = Je.hasOwnProperty, fr = Je.propertyIsEnumerable, hr = be(/* @__PURE__ */ (function() {
11202
11242
  return arguments;
@@ -11206,26 +11246,26 @@ These attributes will default to Step 1 processing which may be incorrect. This
11206
11246
  function gr() {
11207
11247
  return false;
11208
11248
  }
11209
- var Qe = typeof exports == "object" && exports && !exports.nodeType && exports, ve = Qe && typeof module == "object" && module && !module.nodeType && module, yr = ve && ve.exports === Qe, Te = yr ? C.Buffer : void 0, mr = Te ? Te.isBuffer : void 0, We = mr || gr, br = "[object Arguments]", vr = "[object Array]", Tr = "[object Boolean]", wr = "[object Date]", Cr = "[object Error]", Pr = "[object Function]", jr = "[object Map]", _r = "[object Number]", Ar = "[object Object]", Or = "[object RegExp]", $r = "[object Set]", Sr = "[object String]", Er = "[object WeakMap]", xr = "[object ArrayBuffer]", Ir = "[object DataView]", Fr = "[object Float32Array]", Vr = "[object Float64Array]", Rr = "[object Int8Array]", kr = "[object Int16Array]", Ur = "[object Int32Array]", Dr = "[object Uint8Array]", Mr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Lr = "[object Uint32Array]", b = {};
11249
+ var Qe = typeof exports == "object" && exports && !exports.nodeType && exports, ve = Qe && typeof module == "object" && module && !module.nodeType && module, yr = ve && ve.exports === Qe, Te = yr ? P.Buffer : void 0, mr = Te ? Te.isBuffer : void 0, We = mr || gr, br = "[object Arguments]", vr = "[object Array]", Tr = "[object Boolean]", wr = "[object Date]", Cr = "[object Error]", Pr = "[object Function]", jr = "[object Map]", _r = "[object Number]", Ar = "[object Object]", Or = "[object RegExp]", $r = "[object Set]", Sr = "[object String]", Er = "[object WeakMap]", xr = "[object ArrayBuffer]", Ir = "[object DataView]", Fr = "[object Float32Array]", Vr = "[object Float64Array]", Rr = "[object Int8Array]", kr = "[object Int16Array]", Ur = "[object Int32Array]", Dr = "[object Uint8Array]", Mr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Lr = "[object Uint32Array]", b = {};
11210
11250
  b[Fr] = b[Vr] = b[Rr] = b[kr] = b[Ur] = b[Dr] = b[Mr] = b[Hr] = b[Lr] = true;
11211
11251
  b[br] = b[vr] = b[xr] = b[Tr] = b[Ir] = b[wr] = b[Cr] = b[Pr] = b[jr] = b[_r] = b[Ar] = b[Or] = b[$r] = b[Sr] = b[Er] = false;
11212
11252
  function Nr(t) {
11213
- return k(t) && Ke(t.length) && !!b[G(t)];
11253
+ return k(t) && Ke(t.length) && !!b[B(t)];
11214
11254
  }
11215
11255
  function le(t) {
11216
11256
  return function(e) {
11217
11257
  return t(e);
11218
11258
  };
11219
11259
  }
11220
- var Ye = typeof exports == "object" && exports && !exports.nodeType && exports, L = Ye && typeof module == "object" && module && !module.nodeType && module, Br = L && L.exports === Ye, te = Br && He.process, R = (function() {
11260
+ var Ye = typeof exports == "object" && exports && !exports.nodeType && exports, L = Ye && typeof module == "object" && module && !module.nodeType && module, Gr = L && L.exports === Ye, te = Gr && He.process, R = (function() {
11221
11261
  try {
11222
11262
  var t = L && L.require && L.require("util").types;
11223
11263
  return t || te && te.binding && te.binding("util");
11224
11264
  } catch {
11225
11265
  }
11226
- })(), we = R && R.isTypedArray, Gr = we ? le(we) : Nr, Kr = Object.prototype, zr = Kr.hasOwnProperty;
11266
+ })(), we = R && R.isTypedArray, Br = we ? le(we) : Nr, Kr = Object.prototype, zr = Kr.hasOwnProperty;
11227
11267
  function qr(t, e) {
11228
- var r = ie(t), n = !r && hr(t), a = !r && !n && We(t), s = !r && !n && !a && Gr(t), o = r || n || a || s, c = o ? ur(t.length, String) : [], i = c.length;
11268
+ var r = ie(t), n = !r && hr(t), a = !r && !n && We(t), s = !r && !n && !a && Br(t), o = r || n || a || s, c = o ? ur(t.length, String) : [], i = c.length;
11229
11269
  for (var u in t)
11230
11270
  zr.call(t, u) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
11231
11271
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -11295,7 +11335,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11295
11335
  }
11296
11336
  function Y(t, e) {
11297
11337
  for (var r = t.length; r--; )
11298
- if (Ge(t[r][0], e))
11338
+ if (Be(t[r][0], e))
11299
11339
  return r;
11300
11340
  return -1;
11301
11341
  }
@@ -11330,11 +11370,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
11330
11370
  _.prototype.get = gn;
11331
11371
  _.prototype.has = yn;
11332
11372
  _.prototype.set = mn;
11333
- var B = x(C, "Map");
11373
+ var G = x(P, "Map");
11334
11374
  function bn() {
11335
11375
  this.size = 0, this.__data__ = {
11336
11376
  hash: new S(),
11337
- map: new (B || _)(),
11377
+ map: new (G || _)(),
11338
11378
  string: new S()
11339
11379
  };
11340
11380
  }
@@ -11396,7 +11436,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11396
11436
  var r = this.__data__;
11397
11437
  if (r instanceof _) {
11398
11438
  var n = r.__data__;
11399
- if (!B || n.length < En - 1)
11439
+ if (!G || n.length < En - 1)
11400
11440
  return n.push([t, e]), this.size = ++r.size, this;
11401
11441
  r = this.__data__ = new I(n);
11402
11442
  }
@@ -11411,7 +11451,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11411
11451
  U.prototype.get = $n;
11412
11452
  U.prototype.has = Sn;
11413
11453
  U.prototype.set = xn;
11414
- var Ze = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Ze && typeof module == "object" && module && !module.nodeType && module, In = Ce && Ce.exports === Ze, Pe = In ? C.Buffer : void 0;
11454
+ var Ze = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Ze && typeof module == "object" && module && !module.nodeType && module, In = Ce && Ce.exports === Ze, Pe = In ? P.Buffer : void 0;
11415
11455
  Pe && Pe.allocUnsafe;
11416
11456
  function Fn(t, e) {
11417
11457
  return t.slice();
@@ -11438,16 +11478,16 @@ These attributes will default to Step 1 processing which may be incorrect. This
11438
11478
  function Hn(t) {
11439
11479
  return Mn(t, Xr, Dn);
11440
11480
  }
11441
- var ne = x(C, "DataView"), se = x(C, "Promise"), oe = x(C, "Set"), _e = "[object Map]", Ln = "[object Object]", Ae = "[object Promise]", Oe = "[object Set]", $e = "[object WeakMap]", Se = "[object DataView]", Nn = E(ne), Bn = E(B), Gn = E(se), Kn = E(oe), zn = E(re), j = G;
11442
- (ne && j(new ne(new ArrayBuffer(1))) != Se || B && j(new B()) != _e || se && j(se.resolve()) != Ae || oe && j(new oe()) != Oe || re && j(new re()) != $e) && (j = function(t) {
11443
- var e = G(t), r = e == Ln ? t.constructor : void 0, n = r ? E(r) : "";
11481
+ var ne = x(P, "DataView"), se = x(P, "Promise"), oe = x(P, "Set"), _e = "[object Map]", Ln = "[object Object]", Ae = "[object Promise]", Oe = "[object Set]", $e = "[object WeakMap]", Se = "[object DataView]", Nn = E(ne), Gn = E(G), Bn = E(se), Kn = E(oe), zn = E(re), j = B;
11482
+ (ne && j(new ne(new ArrayBuffer(1))) != Se || G && j(new G()) != _e || se && j(se.resolve()) != Ae || oe && j(new oe()) != Oe || re && j(new re()) != $e) && (j = function(t) {
11483
+ var e = B(t), r = e == Ln ? t.constructor : void 0, n = r ? E(r) : "";
11444
11484
  if (n)
11445
11485
  switch (n) {
11446
11486
  case Nn:
11447
11487
  return Se;
11448
- case Bn:
11449
- return _e;
11450
11488
  case Gn:
11489
+ return _e;
11490
+ case Bn:
11451
11491
  return Ae;
11452
11492
  case Kn:
11453
11493
  return Oe;
@@ -11461,7 +11501,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11461
11501
  var e = t.length, r = new t.constructor(e);
11462
11502
  return e && typeof t[0] == "string" && Jn.call(t, "index") && (r.index = t.index, r.input = t.input), r;
11463
11503
  }
11464
- var Ee = C.Uint8Array;
11504
+ var Ee = P.Uint8Array;
11465
11505
  function ce(t) {
11466
11506
  var e = new t.constructor(t.byteLength);
11467
11507
  return new Ee(e).set(new Ee(t)), e;
@@ -11528,8 +11568,8 @@ These attributes will default to Step 1 processing which may be incorrect. This
11528
11568
  function As(t) {
11529
11569
  return k(t) && j(t) == _s;
11530
11570
  }
11531
- var Ve = R && R.isSet, Os = Ve ? le(Ve) : As, et = "[object Arguments]", $s = "[object Array]", Ss = "[object Boolean]", Es = "[object Date]", xs = "[object Error]", tt = "[object Function]", Is = "[object GeneratorFunction]", Fs = "[object Map]", Vs = "[object Number]", rt = "[object Object]", Rs = "[object RegExp]", ks = "[object Set]", Us = "[object String]", Ds = "[object Symbol]", Ms = "[object WeakMap]", Hs = "[object ArrayBuffer]", Ls = "[object DataView]", Ns = "[object Float32Array]", Bs = "[object Float64Array]", Gs = "[object Int8Array]", Ks = "[object Int16Array]", zs = "[object Int32Array]", qs = "[object Uint8Array]", Js = "[object Uint8ClampedArray]", Qs = "[object Uint16Array]", Ws = "[object Uint32Array]", y = {};
11532
- y[et] = y[$s] = y[Hs] = y[Ls] = y[Ss] = y[Es] = y[Ns] = y[Bs] = y[Gs] = y[Ks] = y[zs] = y[Fs] = y[Vs] = y[rt] = y[Rs] = y[ks] = y[Us] = y[Ds] = y[qs] = y[Js] = y[Qs] = y[Ws] = true;
11571
+ var Ve = R && R.isSet, Os = Ve ? le(Ve) : As, et = "[object Arguments]", $s = "[object Array]", Ss = "[object Boolean]", Es = "[object Date]", xs = "[object Error]", tt = "[object Function]", Is = "[object GeneratorFunction]", Fs = "[object Map]", Vs = "[object Number]", rt = "[object Object]", Rs = "[object RegExp]", ks = "[object Set]", Us = "[object String]", Ds = "[object Symbol]", Ms = "[object WeakMap]", Hs = "[object ArrayBuffer]", Ls = "[object DataView]", Ns = "[object Float32Array]", Gs = "[object Float64Array]", Bs = "[object Int8Array]", Ks = "[object Int16Array]", zs = "[object Int32Array]", qs = "[object Uint8Array]", Js = "[object Uint8ClampedArray]", Qs = "[object Uint16Array]", Ws = "[object Uint32Array]", y = {};
11572
+ y[et] = y[$s] = y[Hs] = y[Ls] = y[Ss] = y[Es] = y[Ns] = y[Gs] = y[Bs] = y[Ks] = y[zs] = y[Fs] = y[Vs] = y[rt] = y[Rs] = y[ks] = y[Us] = y[Ds] = y[qs] = y[Js] = y[Qs] = y[Ws] = true;
11533
11573
  y[xs] = y[tt] = y[Ms] = false;
11534
11574
  function q(t, e, r, n, a, s) {
11535
11575
  var o;
@@ -11676,7 +11716,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11676
11716
  let ue = class {
11677
11717
  key;
11678
11718
  core;
11679
- cdRef = new $e$1();
11719
+ cdRef = new Ge$1();
11680
11720
  log = X$1.child({ prefix: "AppLoader" });
11681
11721
  registeredTransformers = [];
11682
11722
  options = lo;
@@ -11931,7 +11971,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11931
11971
  !Array.isArray(s.tags) || !s.tags.length || this.isValidResourceForTags(s.tags, n.resourceTags) && a.push(s);
11932
11972
  return a.map((s) => {
11933
11973
  if (r) {
11934
- const o = Ue$1(s.url, { ...r });
11974
+ const o = Je$1(s.url, { ...r });
11935
11975
  return s.url = o, s;
11936
11976
  } else
11937
11977
  return s;
@@ -11963,7 +12003,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11963
12003
  for (const o of a)
11964
12004
  s[o.key] = o.value || "";
11965
12005
  for (const o of a)
11966
- o.value = Ue$1(o.value, s);
12006
+ o.value = Je$1(o.value, s);
11967
12007
  return a;
11968
12008
  }
11969
12009
  getEvaluatedVariablesAsRecord(e, r) {
@@ -11993,7 +12033,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
11993
12033
  });
11994
12034
  const s = {};
11995
12035
  if (a.forEach((o) => {
11996
- const c = Ue$1(o.value, { ...r });
12036
+ const c = Je$1(o.value, { ...r });
11997
12037
  s[o.key] = c;
11998
12038
  }), Object.keys(s).length !== 0)
11999
12039
  return s;
@@ -12016,7 +12056,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
12016
12056
  value: r.apiKey
12017
12057
  });
12018
12058
  }
12019
- return a.map((s) => (s.value = Ue$1(s.value, { ...r }), s));
12059
+ return a.map((s) => (s.value = Je$1(s.value, { ...r }), s));
12020
12060
  }
12021
12061
  isDcuplCdn(e) {
12022
12062
  return e.includes("cdn.dcupl.com");
@@ -12164,12 +12204,12 @@ These attributes will default to Step 1 processing which may be incorrect. This
12164
12204
  const { url: u, headers: m } = this.getRequestOptions(o, r, n, a), l = await fetch(u, { headers: m });
12165
12205
  if (i = l.status, !l.ok)
12166
12206
  throw new Error(`Failed to fetch data from ${u}`);
12167
- const p2 = x$1.now(), f = await l.json(), h2 = x$1.now();
12207
+ const p2 = A.now(), f = await l.json(), h2 = A.now();
12168
12208
  let d = "";
12169
12209
  Array.isArray(f) ? d = f.map((g2) => g2?.key).join("__") : d = f.key;
12170
- const T2 = x$1.getEntriesByName(u.toString());
12210
+ const T2 = A.getEntriesByName(u.toString());
12171
12211
  if (Array.isArray(T2) && T2[0]) {
12172
- const g2 = T2[0], O2 = {
12212
+ const g2 = T2[0], O = {
12173
12213
  name: o.url,
12174
12214
  type: "resource",
12175
12215
  createdAt: (/* @__PURE__ */ new Date()).getTime(),
@@ -12189,11 +12229,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
12189
12229
  end: h2
12190
12230
  }
12191
12231
  };
12192
- this.core.analyticsController.set({ value: O2, context: this.currentContext });
12232
+ this.core.analyticsController.set({ value: O, context: this.currentContext });
12193
12233
  }
12194
12234
  Array.isArray(f) ? f.map((g2) => this.addModelOrView(o, g2)) : this.addModelOrView(o, f);
12195
- const A2 = this.progressHandler.update(o, true, "model");
12196
- return this.updateProgressListeners(A2), Promise.resolve(f);
12235
+ const A$12 = this.progressHandler.update(o, true, "model");
12236
+ return this.updateProgressListeners(A$12), Promise.resolve(f);
12197
12237
  } catch (u) {
12198
12238
  this.log.error("Failed to load model resource", u, { url: o.url });
12199
12239
  const m = {
@@ -12232,31 +12272,34 @@ These attributes will default to Step 1 processing which may be incorrect. This
12232
12272
  const { url: f, headers: h2 } = this.getRequestOptions(i, r, a, s), d = await fetch(f, { headers: h2 });
12233
12273
  if (p2 = d.status, !d.ok)
12234
12274
  throw new Error(`Failed to fetch data from ${f}`);
12235
- const T2 = d.headers.get("content-type"), A2 = x$1.now();
12275
+ const T2 = d.headers.get("content-type"), A$12 = A.now();
12236
12276
  let g2;
12237
12277
  i.url.endsWith(".csv") || T2?.includes("text/csv") ? g2 = await d.text() : g2 = await d.json();
12238
- const O2 = x$1.now(), v2 = x$1.now(), F2 = this.handleTransformerLogic(
12278
+ const O = A.now(), v2 = A.now(), F2 = this.handleTransformerLogic(
12239
12279
  g2,
12240
12280
  i,
12241
12281
  "rawFileTransformer",
12242
12282
  o || []
12243
- ), $2 = x$1.now();
12283
+ ), $2 = A.now();
12244
12284
  let D2 = [], K2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
12245
- !K2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties) && (this.addModelOrView(i, {
12246
- key: i.model,
12247
- autoGenerateProperties: true,
12248
- autoGenerateKey: i.options?.autoGenerateKey || false,
12249
- keyProperty: i?.options?.keyProperty || "key"
12250
- }), K2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model));
12251
- const st2 = x$1.now();
12285
+ if (!K2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties)) {
12286
+ const C2 = i.options?.autoGenerateProperties ?? n?.missingModelHandling?.autoGenerateProperties ?? true;
12287
+ this.addModelOrView(i, {
12288
+ key: i.model,
12289
+ autoGenerateProperties: C2,
12290
+ autoGenerateKey: i.options?.autoGenerateKey || false,
12291
+ keyProperty: i?.options?.keyProperty || "key"
12292
+ }), K2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
12293
+ }
12294
+ const st2 = A.now();
12252
12295
  i.url.endsWith(".csv") || T2?.includes("text/csv") ? K2 && (D2 = this.csvParser.getJsonFromCSVString(F2, K2, i)) : D2 = F2;
12253
- const ot2 = x$1.now(), at2 = x$1.now();
12296
+ const ot2 = A.now(), at2 = A.now();
12254
12297
  try {
12255
12298
  D2 = this.handleTransformerLogic(D2, i, "parsedFileTransformer", o || []);
12256
- } catch (P2) {
12257
- this.log.error("Transformer error", P2, { resource: i.url, model: i.model });
12299
+ } catch (C2) {
12300
+ this.log.error("Transformer error", C2, { resource: i.url, model: i.model });
12258
12301
  }
12259
- const it2 = x$1.now(), de2 = {
12302
+ const it2 = A.now(), de2 = {
12260
12303
  placeholderUid: u,
12261
12304
  model: i.model,
12262
12305
  data: D2,
@@ -12264,9 +12307,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
12264
12307
  keyProperty: i?.options?.keyProperty,
12265
12308
  autoGenerateKey: i.options?.autoGenerateKey,
12266
12309
  autoGenerateProperties: i.options?.autoGenerateProperties
12267
- }, Z2 = x$1.getEntriesByName(f.toString());
12310
+ }, Z2 = A.getEntriesByName(f.toString());
12268
12311
  if (Array.isArray(Z2) && Z2[0]) {
12269
- const P2 = Z2[0], ct2 = {
12312
+ const C2 = Z2[0], ct2 = {
12270
12313
  name: i.url,
12271
12314
  type: "resource",
12272
12315
  createdAt: (/* @__PURE__ */ new Date()).getTime(),
@@ -12274,22 +12317,22 @@ These attributes will default to Step 1 processing which may be incorrect. This
12274
12317
  model: i.model,
12275
12318
  type: "data",
12276
12319
  start: l,
12277
- startTime: P2.startTime,
12278
- requestStart: P2.requestStart,
12279
- responseEnd: P2.responseEnd,
12280
- responseStart: P2.responseStart,
12281
- duration: P2.duration,
12282
- parseEnd: O2,
12320
+ startTime: C2.startTime,
12321
+ requestStart: C2.requestStart,
12322
+ responseEnd: C2.responseEnd,
12323
+ responseStart: C2.responseStart,
12324
+ duration: C2.duration,
12325
+ parseEnd: O,
12283
12326
  rawTransformStart: v2,
12284
12327
  rawTransformEnd: $2,
12285
- parseStart: A2,
12328
+ parseStart: A$12,
12286
12329
  csvToJsonStart: st2,
12287
12330
  csvToJsonEnd: ot2,
12288
12331
  parsedTransformStart: at2,
12289
12332
  parsedTransformEnd: it2,
12290
- decodedBodySize: P2.decodedBodySize,
12291
- encodedBodySize: P2.encodedBodySize,
12292
- end: O2
12333
+ decodedBodySize: C2.decodedBodySize,
12334
+ encodedBodySize: C2.encodedBodySize,
12335
+ end: O
12293
12336
  }
12294
12337
  };
12295
12338
  this.core.analyticsController.set({ value: ct2, context: this.currentContext });
@@ -12388,7 +12431,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
12388
12431
  }
12389
12432
  };
12390
12433
  nt([
12391
- Fe$1({
12434
+ Te$1({
12392
12435
  scope: "global",
12393
12436
  origin: "loader",
12394
12437
  type: "loader_config_fetched",
@@ -12397,7 +12440,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
12397
12440
  })
12398
12441
  ], ue.prototype, "fetchConfig");
12399
12442
  nt([
12400
- Fe$1({
12443
+ Te$1({
12401
12444
  scope: "global",
12402
12445
  origin: "loader",
12403
12446
  type: "loader_processed",