oiu-core 0.0.22 → 0.0.23

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.
@@ -2561,7 +2561,18 @@ function zf(e, ...t) {
2561
2561
  (r, n) => typeof t[n] < "u" ? t[n] : r
2562
2562
  );
2563
2563
  }
2564
- const Wf = {
2564
+ function Wf(e) {
2565
+ if (!e) return null;
2566
+ const t = e.split(".");
2567
+ if (t.length < 2) return null;
2568
+ try {
2569
+ const r = t[1].replace(/-/g, "+").replace(/_/g, "/"), n = `${r}${"=".repeat((4 - r.length % 4) % 4)}`, o = atob(n);
2570
+ return JSON.parse(o);
2571
+ } catch {
2572
+ return null;
2573
+ }
2574
+ }
2575
+ const Qf = {
2565
2576
  auth: {
2566
2577
  reason: "default",
2567
2578
  identity: void 0
@@ -2571,7 +2582,7 @@ const Wf = {
2571
2582
  theme: "dark"
2572
2583
  }, su = "app", At = Xe({
2573
2584
  name: su,
2574
- initialState: Wf,
2585
+ initialState: Qf,
2575
2586
  reducers: {
2576
2587
  screenResize(e, t) {
2577
2588
  e.screen = t.payload;
@@ -2590,7 +2601,7 @@ const Wf = {
2590
2601
  }
2591
2602
  }
2592
2603
  }), et = (e) => e[su];
2593
- function Qf() {
2604
+ function Kf() {
2594
2605
  const e = ul(Bs);
2595
2606
  if (!e) throw new Error("AuthService not found");
2596
2607
  return e;
@@ -2598,19 +2609,19 @@ function Qf() {
2598
2609
  function uu() {
2599
2610
  return xe((e) => et(e).auth?.identity);
2600
2611
  }
2601
- const Kf = () => {
2612
+ const Xf = () => {
2602
2613
  const e = Rl(Bo), t = Ds(
2603
2614
  (n) => e.can(n.I, n.a, n.f),
2604
2615
  [e]
2605
2616
  );
2606
2617
  return je(() => ({ can: e.can, allowed: t }), [t, e]);
2607
2618
  };
2608
- let Xf = 0;
2609
- function Yf(e) {
2610
- const t = (++Xf).toString();
2619
+ let Yf = 0;
2620
+ function Zf(e) {
2621
+ const t = (++Yf).toString();
2611
2622
  return { I: t, a: t, f: e };
2612
2623
  }
2613
- const Zf = Pl(Bo.Consumer), Jf = Ms(({ permission: e, children: t }) => /* @__PURE__ */ he(Zf, { I: e.I, a: e.a, children: t }));
2624
+ const Jf = Pl(Bo.Consumer), ed = Ms(({ permission: e, children: t }) => /* @__PURE__ */ he(Jf, { I: e.I, a: e.a, children: t }));
2614
2625
  var So = function(e, t) {
2615
2626
  return So = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2616
2627
  r.__proto__ = n;
@@ -2650,17 +2661,17 @@ function De(e, t, r) {
2650
2661
  return e.concat(i || Array.prototype.slice.call(t));
2651
2662
  }
2652
2663
  function Ce(e, t) {
2653
- var r = t && t.cache ? t.cache : ad, n = t && t.serializer ? t.serializer : od, o = t && t.strategy ? t.strategy : rd;
2664
+ var r = t && t.cache ? t.cache : sd, n = t && t.serializer ? t.serializer : id, o = t && t.strategy ? t.strategy : nd;
2654
2665
  return o(e, {
2655
2666
  cache: r,
2656
2667
  serializer: n
2657
2668
  });
2658
2669
  }
2659
- function ed(e) {
2670
+ function td(e) {
2660
2671
  return e == null || typeof e == "number" || typeof e == "boolean";
2661
2672
  }
2662
- function td(e, t, r, n) {
2663
- var o = ed(n) ? n : r(n), i = t.get(o);
2673
+ function rd(e, t, r, n) {
2674
+ var o = td(n) ? n : r(n), i = t.get(o);
2664
2675
  return typeof i > "u" && (i = e.call(this, n), t.set(o, i)), i;
2665
2676
  }
2666
2677
  function cu(e, t, r) {
@@ -2670,16 +2681,16 @@ function cu(e, t, r) {
2670
2681
  function lu(e, t, r, n, o) {
2671
2682
  return r.bind(t, e, n, o);
2672
2683
  }
2673
- function rd(e, t) {
2674
- var r = e.length === 1 ? td : cu;
2684
+ function nd(e, t) {
2685
+ var r = e.length === 1 ? rd : cu;
2675
2686
  return lu(e, this, r, t.cache.create(), t.serializer);
2676
2687
  }
2677
- function nd(e, t) {
2688
+ function od(e, t) {
2678
2689
  return lu(e, this, cu, t.cache.create(), t.serializer);
2679
2690
  }
2680
- var od = function() {
2691
+ var id = function() {
2681
2692
  return JSON.stringify(arguments);
2682
- }, id = (
2693
+ }, ad = (
2683
2694
  /** @class */
2684
2695
  (function() {
2685
2696
  function e() {
@@ -2691,12 +2702,12 @@ var od = function() {
2691
2702
  this.cache[t] = r;
2692
2703
  }, e;
2693
2704
  })()
2694
- ), ad = {
2705
+ ), sd = {
2695
2706
  create: function() {
2696
- return new id();
2707
+ return new ad();
2697
2708
  }
2698
2709
  }, Me = {
2699
- variadic: nd
2710
+ variadic: od
2700
2711
  }, W;
2701
2712
  (function(e) {
2702
2713
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
@@ -2712,7 +2723,7 @@ var St;
2712
2723
  function Ki(e) {
2713
2724
  return e.type === le.literal;
2714
2725
  }
2715
- function sd(e) {
2726
+ function ud(e) {
2716
2727
  return e.type === le.argument;
2717
2728
  }
2718
2729
  function fu(e) {
@@ -2730,7 +2741,7 @@ function pu(e) {
2730
2741
  function yu(e) {
2731
2742
  return e.type === le.plural;
2732
2743
  }
2733
- function ud(e) {
2744
+ function cd(e) {
2734
2745
  return e.type === le.pound;
2735
2746
  }
2736
2747
  function mu(e) {
@@ -2742,10 +2753,10 @@ function gu(e) {
2742
2753
  function wo(e) {
2743
2754
  return !!(e && typeof e == "object" && e.type === St.dateTime);
2744
2755
  }
2745
- var vu = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, cd = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2746
- function ld(e) {
2756
+ var vu = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ld = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2757
+ function fd(e) {
2747
2758
  var t = {};
2748
- return e.replace(cd, function(r) {
2759
+ return e.replace(ld, function(r) {
2749
2760
  var n = r.length;
2750
2761
  switch (r[0]) {
2751
2762
  // Era
@@ -2851,11 +2862,11 @@ function ld(e) {
2851
2862
  return "";
2852
2863
  }), t;
2853
2864
  }
2854
- var fd = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2855
- function dd(e) {
2865
+ var dd = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2866
+ function hd(e) {
2856
2867
  if (e.length === 0)
2857
2868
  throw new Error("Number skeleton cannot be empty");
2858
- for (var t = e.split(fd).filter(function(v) {
2869
+ for (var t = e.split(dd).filter(function(v) {
2859
2870
  return v.length > 0;
2860
2871
  }), r = [], n = 0, o = t; n < o.length; n++) {
2861
2872
  var i = o[n], a = i.split("/");
@@ -2870,10 +2881,10 @@ function dd(e) {
2870
2881
  }
2871
2882
  return r;
2872
2883
  }
2873
- function hd(e) {
2884
+ function pd(e) {
2874
2885
  return e.replace(/^(.*?)-/, "");
2875
2886
  }
2876
- var Xi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bu = /^(@+)?(\+|#+)?[rs]?$/g, pd = /(\*)(0+)|(#+)(0+)|(0+)/g, Eu = /^(0+)$/;
2887
+ var Xi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bu = /^(@+)?(\+|#+)?[rs]?$/g, yd = /(\*)(0+)|(#+)(0+)|(0+)/g, Eu = /^(0+)$/;
2877
2888
  function Yi(e) {
2878
2889
  var t = {};
2879
2890
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(bu, function(r, n, o) {
@@ -2920,7 +2931,7 @@ function Su(e) {
2920
2931
  };
2921
2932
  }
2922
2933
  }
2923
- function yd(e) {
2934
+ function md(e) {
2924
2935
  var t;
2925
2936
  if (e[0] === "E" && e[1] === "E" ? (t = {
2926
2937
  notation: "engineering"
@@ -2938,7 +2949,7 @@ function Zi(e) {
2938
2949
  var t = {}, r = Su(e);
2939
2950
  return r || t;
2940
2951
  }
2941
- function md(e) {
2952
+ function gd(e) {
2942
2953
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
2943
2954
  var o = n[r];
2944
2955
  switch (o.stem) {
@@ -2962,7 +2973,7 @@ function md(e) {
2962
2973
  continue;
2963
2974
  case "measure-unit":
2964
2975
  case "unit":
2965
- t.style = "unit", t.unit = hd(o.options[0]);
2976
+ t.style = "unit", t.unit = pd(o.options[0]);
2966
2977
  continue;
2967
2978
  case "compact-short":
2968
2979
  case "K":
@@ -3026,7 +3037,7 @@ function md(e) {
3026
3037
  case "integer-width":
3027
3038
  if (o.options.length > 1)
3028
3039
  throw new RangeError("integer-width stems only accept a single optional option");
3029
- o.options[0].replace(pd, function(u, c, l, y, v, h) {
3040
+ o.options[0].replace(yd, function(u, c, l, y, v, h) {
3030
3041
  if (c)
3031
3042
  t.minimumIntegerDigits = l.length;
3032
3043
  else {
@@ -3059,7 +3070,7 @@ function md(e) {
3059
3070
  }
3060
3071
  var a = Su(o.stem);
3061
3072
  a && (t = B(B({}, t), a));
3062
- var s = yd(o.stem);
3073
+ var s = md(o.stem);
3063
3074
  s && (t = B(B({}, t), s));
3064
3075
  }
3065
3076
  return t;
@@ -4489,13 +4500,13 @@ var yr = {
4489
4500
  "h"
4490
4501
  ]
4491
4502
  };
4492
- function gd(e, t) {
4503
+ function vd(e, t) {
4493
4504
  for (var r = "", n = 0; n < e.length; n++) {
4494
4505
  var o = e.charAt(n);
4495
4506
  if (o === "j") {
4496
4507
  for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === o; )
4497
4508
  i++, n++;
4498
- var a = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", c = vd(t);
4509
+ var a = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", c = bd(t);
4499
4510
  for ((c == "H" || c == "k") && (s = 0); s-- > 0; )
4500
4511
  r += u;
4501
4512
  for (; a-- > 0; )
@@ -4504,7 +4515,7 @@ function gd(e, t) {
4504
4515
  }
4505
4516
  return r;
4506
4517
  }
4507
- function vd(e) {
4518
+ function bd(e) {
4508
4519
  var t = e.hourCycle;
4509
4520
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
4510
4521
  e.hourCycles && // @ts-ignore
@@ -4526,13 +4537,13 @@ function vd(e) {
4526
4537
  var o = yr[n || ""] || yr[r || ""] || yr["".concat(r, "-001")] || yr["001"];
4527
4538
  return o[0];
4528
4539
  }
4529
- var bd = new RegExp("^".concat(vu.source, "*")), Ed = new RegExp("".concat(vu.source, "*$"));
4540
+ var Ed = new RegExp("^".concat(vu.source, "*")), Sd = new RegExp("".concat(vu.source, "*$"));
4530
4541
  function K(e, t) {
4531
4542
  return { start: e, end: t };
4532
4543
  }
4533
- var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.prototype.trimEnd, Ji = (
4544
+ var wd = !!Object.fromEntries, _d = !!String.prototype.trimStart, Od = !!String.prototype.trimEnd, Ji = (
4534
4545
  // native
4535
- Sd ? Object.fromEntries : (
4546
+ wd ? Object.fromEntries : (
4536
4547
  // Ponyfill
4537
4548
  function(t) {
4538
4549
  for (var r = {}, n = 0, o = t; n < o.length; n++) {
@@ -4542,7 +4553,7 @@ var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.
4542
4553
  return r;
4543
4554
  }
4544
4555
  )
4545
- ), Od = wd ? (
4556
+ ), Ad = _d ? (
4546
4557
  // Native
4547
4558
  function(t) {
4548
4559
  return t.trimStart();
@@ -4550,9 +4561,9 @@ var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.
4550
4561
  ) : (
4551
4562
  // Ponyfill
4552
4563
  function(t) {
4553
- return t.replace(bd, "");
4564
+ return t.replace(Ed, "");
4554
4565
  }
4555
- ), Ad = _d ? (
4566
+ ), Td = Od ? (
4556
4567
  // Native
4557
4568
  function(t) {
4558
4569
  return t.trimEnd();
@@ -4560,16 +4571,16 @@ var Sd = !!Object.fromEntries, wd = !!String.prototype.trimStart, _d = !!String.
4560
4571
  ) : (
4561
4572
  // Ponyfill
4562
4573
  function(t) {
4563
- return t.replace(Ed, "");
4574
+ return t.replace(Sd, "");
4564
4575
  }
4565
4576
  ), ea = new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4566
- function Td(e, t) {
4577
+ function Pd(e, t) {
4567
4578
  var r;
4568
4579
  ea.lastIndex = t;
4569
4580
  var n = ea.exec(e);
4570
4581
  return (r = n[1]) !== null && r !== void 0 ? r : "";
4571
4582
  }
4572
- var Pd = (
4583
+ var Rd = (
4573
4584
  /** @class */
4574
4585
  (function() {
4575
4586
  function e(t, r) {
@@ -4651,7 +4662,7 @@ var Pd = (
4651
4662
  return this.error(W.INVALID_TAG, K(n, this.clonePosition()));
4652
4663
  }, e.prototype.parseTagName = function() {
4653
4664
  var t = this.offset();
4654
- for (this.bump(); !this.isEOF() && Nd(this.char()); )
4665
+ for (this.bump(); !this.isEOF() && Id(this.char()); )
4655
4666
  this.bump();
4656
4667
  return this.message.slice(t, this.offset());
4657
4668
  }, e.prototype.parseLiteral = function(t, r) {
@@ -4680,7 +4691,7 @@ var Pd = (
4680
4691
  };
4681
4692
  }, e.prototype.tryParseLeftAngleBracket = function() {
4682
4693
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
4683
- !Rd(this.peek() || 0)) ? (this.bump(), "<") : null;
4694
+ !Nd(this.peek() || 0)) ? (this.bump(), "<") : null;
4684
4695
  }, e.prototype.tryParseQuote = function(t) {
4685
4696
  if (this.isEOF() || this.char() !== 39)
4686
4697
  return null;
@@ -4751,7 +4762,7 @@ var Pd = (
4751
4762
  return this.error(W.MALFORMED_ARGUMENT, K(n, this.clonePosition()));
4752
4763
  }
4753
4764
  }, e.prototype.parseIdentifierIfPossible = function() {
4754
- var t = this.clonePosition(), r = this.offset(), n = Td(this.message, r), o = r + n.length;
4765
+ var t = this.clonePosition(), r = this.offset(), n = Pd(this.message, r), o = r + n.length;
4755
4766
  this.bumpTo(o);
4756
4767
  var i = this.clonePosition(), a = K(t, i);
4757
4768
  return { value: n, location: a };
@@ -4770,7 +4781,7 @@ var Pd = (
4770
4781
  var l = this.clonePosition(), y = this.parseSimpleArgStyleIfPossible();
4771
4782
  if (y.err)
4772
4783
  return y;
4773
- var v = Ad(y.val);
4784
+ var v = Td(y.val);
4774
4785
  if (v.length === 0)
4775
4786
  return this.error(W.EXPECT_ARGUMENT_STYLE, K(this.clonePosition(), this.clonePosition()));
4776
4787
  var h = K(l, this.clonePosition());
@@ -4781,7 +4792,7 @@ var Pd = (
4781
4792
  return p;
4782
4793
  var S = K(o, this.clonePosition());
4783
4794
  if (c && c.style.startsWith("::")) {
4784
- var d = Od(c.style.slice(2));
4795
+ var d = Ad(c.style.slice(2));
4785
4796
  if (s === "number") {
4786
4797
  var y = this.parseNumberSkeletonFromString(d, c.styleLocation);
4787
4798
  return y.err ? y : {
@@ -4792,12 +4803,12 @@ var Pd = (
4792
4803
  if (d.length === 0)
4793
4804
  return this.error(W.EXPECT_DATE_TIME_SKELETON, S);
4794
4805
  var g = d;
4795
- this.locale && (g = gd(d, this.locale));
4806
+ this.locale && (g = vd(d, this.locale));
4796
4807
  var v = {
4797
4808
  type: St.dateTime,
4798
4809
  pattern: g,
4799
4810
  location: c.styleLocation,
4800
- parsedOptions: this.shouldParseSkeletons ? ld(g) : {}
4811
+ parsedOptions: this.shouldParseSkeletons ? fd(g) : {}
4801
4812
  }, E = s === "date" ? le.date : le.time;
4802
4813
  return {
4803
4814
  val: { type: E, value: n, location: S, style: v },
@@ -4902,7 +4913,7 @@ var Pd = (
4902
4913
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
4903
4914
  var n = [];
4904
4915
  try {
4905
- n = dd(t);
4916
+ n = hd(t);
4906
4917
  } catch {
4907
4918
  return this.error(W.INVALID_NUMBER_SKELETON, r);
4908
4919
  }
@@ -4911,7 +4922,7 @@ var Pd = (
4911
4922
  type: St.number,
4912
4923
  tokens: n,
4913
4924
  location: r,
4914
- parsedOptions: this.shouldParseSkeletons ? md(n) : {}
4925
+ parsedOptions: this.shouldParseSkeletons ? gd(n) : {}
4915
4926
  },
4916
4927
  err: null
4917
4928
  };
@@ -5015,7 +5026,7 @@ var Pd = (
5015
5026
  break;
5016
5027
  }
5017
5028
  }, e.prototype.bumpSpace = function() {
5018
- for (; !this.isEOF() && Id(this.char()); )
5029
+ for (; !this.isEOF() && Cd(this.char()); )
5019
5030
  this.bump();
5020
5031
  }, e.prototype.peek = function() {
5021
5032
  if (this.isEOF())
@@ -5028,13 +5039,13 @@ var Pd = (
5028
5039
  function _o(e) {
5029
5040
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
5030
5041
  }
5031
- function Rd(e) {
5042
+ function Nd(e) {
5032
5043
  return _o(e) || e === 47;
5033
5044
  }
5034
- function Nd(e) {
5045
+ function Id(e) {
5035
5046
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
5036
5047
  }
5037
- function Id(e) {
5048
+ function Cd(e) {
5038
5049
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
5039
5050
  }
5040
5051
  function Oo(e) {
@@ -5045,9 +5056,9 @@ function Oo(e) {
5045
5056
  else fu(t) && gu(t.style) || (du(t) || hu(t)) && wo(t.style) ? delete t.style.location : mu(t) && Oo(t.children);
5046
5057
  });
5047
5058
  }
5048
- function Cd(e, t) {
5059
+ function Md(e, t) {
5049
5060
  t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5050
- var r = new Pd(e, t).parse();
5061
+ var r = new Rd(e, t).parse();
5051
5062
  if (r.err) {
5052
5063
  var n = SyntaxError(W[r.err.kind]);
5053
5064
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -5079,7 +5090,7 @@ var tt = (
5079
5090
  }
5080
5091
  return t;
5081
5092
  })(tt)
5082
- ), Md = (
5093
+ ), Dd = (
5083
5094
  /** @class */
5084
5095
  (function(e) {
5085
5096
  Te(t, e);
@@ -5088,7 +5099,7 @@ var tt = (
5088
5099
  }
5089
5100
  return t;
5090
5101
  })(tt)
5091
- ), Dd = (
5102
+ ), xd = (
5092
5103
  /** @class */
5093
5104
  (function(e) {
5094
5105
  Te(t, e);
@@ -5101,7 +5112,7 @@ var tt = (
5101
5112
  (function(e) {
5102
5113
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
5103
5114
  })(Ee || (Ee = {}));
5104
- function xd(e) {
5115
+ function Fd(e) {
5105
5116
  return e.length < 2 ? e : e.reduce(function(t, r) {
5106
5117
  var n = t[t.length - 1];
5107
5118
  return !n || n.type !== Ee.literal || r.type !== Ee.literal ? t.push(r) : n.value += r.value, t;
@@ -5127,7 +5138,7 @@ function _r(e, t, r, n, o, i, a) {
5127
5138
  });
5128
5139
  continue;
5129
5140
  }
5130
- if (ud(l)) {
5141
+ if (cd(l)) {
5131
5142
  typeof i == "number" && s.push({
5132
5143
  type: Ee.literal,
5133
5144
  value: r.getNumberFormat(t).format(i)
@@ -5136,9 +5147,9 @@ function _r(e, t, r, n, o, i, a) {
5136
5147
  }
5137
5148
  var y = l.value;
5138
5149
  if (!(o && y in o))
5139
- throw new Dd(y, a);
5150
+ throw new xd(y, a);
5140
5151
  var v = o[y];
5141
- if (sd(l)) {
5152
+ if (ud(l)) {
5142
5153
  (!v || typeof v == "string" || typeof v == "number") && (v = typeof v == "string" || typeof v == "number" ? String(v) : ""), s.push({
5143
5154
  type: typeof v == "string" ? Ee.literal : Ee.object,
5144
5155
  value: v
@@ -5172,7 +5183,7 @@ function _r(e, t, r, n, o, i, a) {
5172
5183
  if (mu(l)) {
5173
5184
  var p = l.children, S = l.value, d = o[S];
5174
5185
  if (!wu(d))
5175
- throw new Md(S, "function", a);
5186
+ throw new Dd(S, "function", a);
5176
5187
  var g = _r(p, t, r, n, o, i), E = d(g.map(function(f) {
5177
5188
  return f.value;
5178
5189
  }));
@@ -5206,16 +5217,16 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
5206
5217
  continue;
5207
5218
  }
5208
5219
  }
5209
- return xd(s);
5220
+ return Fd(s);
5210
5221
  }
5211
- function Fd(e, t) {
5222
+ function $d(e, t) {
5212
5223
  return t ? B(B(B({}, e), t), Object.keys(e).reduce(function(r, n) {
5213
5224
  return r[n] = B(B({}, e[n]), t[n]), r;
5214
5225
  }, {})) : e;
5215
5226
  }
5216
- function $d(e, t) {
5227
+ function Ld(e, t) {
5217
5228
  return t ? Object.keys(e).reduce(function(r, n) {
5218
- return r[n] = Fd(e[n], t[n]), r;
5229
+ return r[n] = $d(e[n], t[n]), r;
5219
5230
  }, B({}, e)) : e;
5220
5231
  }
5221
5232
  function dn(e) {
@@ -5232,7 +5243,7 @@ function dn(e) {
5232
5243
  }
5233
5244
  };
5234
5245
  }
5235
- function Ld(e) {
5246
+ function Bd(e) {
5236
5247
  return e === void 0 && (e = {
5237
5248
  number: {},
5238
5249
  dateTime: {},
@@ -5303,7 +5314,7 @@ var _u = (
5303
5314
  this.ast = t;
5304
5315
  if (!Array.isArray(this.ast))
5305
5316
  throw new TypeError("A message must be provided as a String or AST.");
5306
- this.formats = $d(e.formats, n), this.formatters = o && o.formatters || Ld(this.formatterCache);
5317
+ this.formats = Ld(e.formats, n), this.formatters = o && o.formatters || Bd(this.formatterCache);
5307
5318
  }
5308
5319
  return Object.defineProperty(e, "defaultLocale", {
5309
5320
  get: function() {
@@ -5316,7 +5327,7 @@ var _u = (
5316
5327
  var r = Intl.NumberFormat.supportedLocalesOf(t);
5317
5328
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
5318
5329
  }
5319
- }, e.__parse = Cd, e.formats = {
5330
+ }, e.__parse = Md, e.formats = {
5320
5331
  number: {
5321
5332
  integer: {
5322
5333
  maximumFractionDigits: 0
@@ -5393,7 +5404,7 @@ var Jt = (
5393
5404
  }
5394
5405
  return t;
5395
5406
  })(Error)
5396
- ), Bd = (
5407
+ ), Hd = (
5397
5408
  /** @class */
5398
5409
  (function(e) {
5399
5410
  Te(t, e);
@@ -5402,7 +5413,7 @@ var Jt = (
5402
5413
  }
5403
5414
  return t;
5404
5415
  })(Jt)
5405
- ), Hd = (
5416
+ ), kd = (
5406
5417
  /** @class */
5407
5418
  (function(e) {
5408
5419
  Te(t, e);
@@ -5446,7 +5457,7 @@ Description: `).concat(o?.description, `
5446
5457
  }
5447
5458
  return t;
5448
5459
  })(Pe)
5449
- ), kd = (
5460
+ ), Ud = (
5450
5461
  /** @class */
5451
5462
  (function(e) {
5452
5463
  Te(t, e);
@@ -5460,7 +5471,7 @@ Description: `).concat(o?.description, `
5460
5471
  return t;
5461
5472
  })(Jt)
5462
5473
  );
5463
- function Ud(e, t, r) {
5474
+ function jd(e, t, r) {
5464
5475
  if (r === void 0 && (r = Error), !e)
5465
5476
  throw new r(t);
5466
5477
  }
@@ -5469,9 +5480,9 @@ function Tt(e, t, r) {
5469
5480
  return o in e ? n[o] = e[o] : o in r && (n[o] = r[o]), n;
5470
5481
  }, {});
5471
5482
  }
5472
- var jd = function(e) {
5483
+ var qd = function(e) {
5473
5484
  process.env.NODE_ENV !== "production" && console.error(e);
5474
- }, qd = function(e) {
5485
+ }, Vd = function(e) {
5475
5486
  process.env.NODE_ENV !== "production" && console.warn(e);
5476
5487
  }, Ou = {
5477
5488
  formats: {},
@@ -5480,8 +5491,8 @@ var jd = function(e) {
5480
5491
  defaultLocale: "en",
5481
5492
  defaultFormats: {},
5482
5493
  fallbackOnEmptyString: !0,
5483
- onError: jd,
5484
- onWarn: qd
5494
+ onError: qd,
5495
+ onWarn: Vd
5485
5496
  };
5486
5497
  function Au() {
5487
5498
  return {
@@ -5508,7 +5519,7 @@ function nt(e) {
5508
5519
  }
5509
5520
  };
5510
5521
  }
5511
- function Vd(e) {
5522
+ function Gd(e) {
5512
5523
  e === void 0 && (e = Au());
5513
5524
  var t = Intl.RelativeTimeFormat, r = Intl.ListFormat, n = Intl.DisplayNames, o = Ce(function() {
5514
5525
  for (var s, u = [], c = 0; c < arguments.length; c++)
@@ -5576,7 +5587,7 @@ function Qo(e, t, r, n) {
5576
5587
  var o = e && e[t], i;
5577
5588
  if (o && (i = o[r]), i)
5578
5589
  return i;
5579
- n(new Bd("No ".concat(t, " format named: ").concat(r)));
5590
+ n(new Hd("No ".concat(t, " format named: ").concat(r)));
5580
5591
  }
5581
5592
  function mr(e, t) {
5582
5593
  return Object.keys(e).reduce(function(r, n) {
@@ -5599,7 +5610,7 @@ var Ao = function(e, t, r, n, o) {
5599
5610
  var i = e.locale, a = e.formats, s = e.messages, u = e.defaultLocale, c = e.defaultFormats, l = e.fallbackOnEmptyString, y = e.onError, v = e.timeZone, h = e.defaultRichTextElements;
5600
5611
  r === void 0 && (r = { id: "" });
5601
5612
  var p = r.id, S = r.defaultMessage;
5602
- Ud(!!p, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
5613
+ jd(!!p, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
5603
5614
  var d = String(p), g = (
5604
5615
  // In case messages is Object.create(null)
5605
5616
  // e.g import('foo.json') from webpack)
@@ -5613,7 +5624,7 @@ var Ao = function(e, t, r, n, o) {
5613
5624
  if (n = B(B({}, h), n), a = oa(a, v), c = oa(c, v), !g) {
5614
5625
  if (l === !1 && g === "")
5615
5626
  return g;
5616
- if ((!S || i && i.toLowerCase() !== u.toLowerCase()) && y(new kd(r, i)), S)
5627
+ if ((!S || i && i.toLowerCase() !== u.toLowerCase()) && y(new Ud(r, i)), S)
5617
5628
  try {
5618
5629
  var E = t.getMessageFormat(S, u, c, o);
5619
5630
  return E.format(n);
@@ -5636,7 +5647,7 @@ var Ao = function(e, t, r, n, o) {
5636
5647
  y(new hn('Error formatting the default message for: "'.concat(d, '", rendering message verbatim'), i, r, m));
5637
5648
  }
5638
5649
  return typeof g == "string" ? g : typeof S == "string" ? S : d;
5639
- }, Gd = [
5650
+ }, zd = [
5640
5651
  "formatMatcher",
5641
5652
  "timeZone",
5642
5653
  "hour12",
@@ -5660,10 +5671,10 @@ var Ao = function(e, t, r, n, o) {
5660
5671
  function er(e, t, r, n) {
5661
5672
  var o = e.locale, i = e.formats, a = e.onError, s = e.timeZone;
5662
5673
  n === void 0 && (n = {});
5663
- var u = n.format, c = B(B({}, s && { timeZone: s }), u && Qo(i, t, u, a)), l = Tt(n, Gd, c);
5674
+ var u = n.format, c = B(B({}, s && { timeZone: s }), u && Qo(i, t, u, a)), l = Tt(n, zd, c);
5664
5675
  return t === "time" && !l.hour && !l.minute && !l.second && !l.timeStyle && !l.dateStyle && (l = B(B({}, l), { hour: "numeric", minute: "numeric" })), r(o, l);
5665
5676
  }
5666
- function zd(e, t) {
5677
+ function Wd(e, t) {
5667
5678
  for (var r = [], n = 2; n < arguments.length; n++)
5668
5679
  r[n - 2] = arguments[n];
5669
5680
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5674,7 +5685,7 @@ function zd(e, t) {
5674
5685
  }
5675
5686
  return String(s);
5676
5687
  }
5677
- function Wd(e, t) {
5688
+ function Qd(e, t) {
5678
5689
  for (var r = [], n = 2; n < arguments.length; n++)
5679
5690
  r[n - 2] = arguments[n];
5680
5691
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5685,7 +5696,7 @@ function Wd(e, t) {
5685
5696
  }
5686
5697
  return String(s);
5687
5698
  }
5688
- function Qd(e, t) {
5699
+ function Kd(e, t) {
5689
5700
  for (var r = [], n = 2; n < arguments.length; n++)
5690
5701
  r[n - 2] = arguments[n];
5691
5702
  var o = r[0], i = r[1], a = r[2], s = a === void 0 ? {} : a, u = typeof o == "string" ? new Date(o || 0) : o, c = typeof i == "string" ? new Date(i || 0) : i;
@@ -5696,7 +5707,7 @@ function Qd(e, t) {
5696
5707
  }
5697
5708
  return String(u);
5698
5709
  }
5699
- function Kd(e, t) {
5710
+ function Xd(e, t) {
5700
5711
  for (var r = [], n = 2; n < arguments.length; n++)
5701
5712
  r[n - 2] = arguments[n];
5702
5713
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5707,7 +5718,7 @@ function Kd(e, t) {
5707
5718
  }
5708
5719
  return [];
5709
5720
  }
5710
- function Xd(e, t) {
5721
+ function Yd(e, t) {
5711
5722
  for (var r = [], n = 2; n < arguments.length; n++)
5712
5723
  r[n - 2] = arguments[n];
5713
5724
  var o = r[0], i = r[1], a = i === void 0 ? {} : i, s = typeof o == "string" ? new Date(o || 0) : o;
@@ -5718,32 +5729,32 @@ function Xd(e, t) {
5718
5729
  }
5719
5730
  return [];
5720
5731
  }
5721
- var Yd = [
5732
+ var Zd = [
5722
5733
  "style",
5723
5734
  "type",
5724
5735
  "fallback",
5725
5736
  "languageDisplay"
5726
5737
  ];
5727
- function Zd(e, t, r, n) {
5738
+ function Jd(e, t, r, n) {
5728
5739
  var o = e.locale, i = e.onError, a = Intl.DisplayNames;
5729
5740
  a || i(new tt(`Intl.DisplayNames is not available in this environment.
5730
5741
  Try polyfilling it using "@formatjs/intl-displaynames"
5731
5742
  `, $e.MISSING_INTL_API));
5732
- var s = Tt(n, Yd);
5743
+ var s = Tt(n, Zd);
5733
5744
  try {
5734
5745
  return t(o, s).of(r);
5735
5746
  } catch (u) {
5736
5747
  i(new Pe("Error formatting display name.", o, u));
5737
5748
  }
5738
5749
  }
5739
- var Jd = [
5750
+ var eh = [
5740
5751
  "type",
5741
5752
  "style"
5742
5753
  ], ia = Date.now();
5743
- function eh(e) {
5754
+ function th(e) {
5744
5755
  return "".concat(ia, "_").concat(e, "_").concat(ia);
5745
5756
  }
5746
- function th(e, t, r, n) {
5757
+ function rh(e, t, r, n) {
5747
5758
  n === void 0 && (n = {});
5748
5759
  var o = Tu(e, t, r, n).reduce(function(i, a) {
5749
5760
  var s = a.value;
@@ -5758,11 +5769,11 @@ function Tu(e, t, r, n) {
5758
5769
  a || i(new tt(`Intl.ListFormat is not available in this environment.
5759
5770
  Try polyfilling it using "@formatjs/intl-listformat"
5760
5771
  `, $e.MISSING_INTL_API));
5761
- var s = Tt(n, Jd);
5772
+ var s = Tt(n, eh);
5762
5773
  try {
5763
5774
  var u = {}, c = Array.from(r).map(function(l, y) {
5764
5775
  if (typeof l == "object" && l !== null) {
5765
- var v = eh(y);
5776
+ var v = th(y);
5766
5777
  return u[v] = l, v;
5767
5778
  }
5768
5779
  return String(l);
@@ -5775,13 +5786,13 @@ Try polyfilling it using "@formatjs/intl-listformat"
5775
5786
  }
5776
5787
  return r;
5777
5788
  }
5778
- var rh = ["type"];
5779
- function nh(e, t, r, n) {
5789
+ var nh = ["type"];
5790
+ function oh(e, t, r, n) {
5780
5791
  var o = e.locale, i = e.onError;
5781
5792
  n === void 0 && (n = {}), Intl.PluralRules || i(new tt(`Intl.PluralRules is not available in this environment.
5782
5793
  Try polyfilling it using "@formatjs/intl-pluralrules"
5783
5794
  `, $e.MISSING_INTL_API));
5784
- var a = Tt(n, rh);
5795
+ var a = Tt(n, nh);
5785
5796
  try {
5786
5797
  return t(o, a).select(r);
5787
5798
  } catch (s) {
@@ -5789,27 +5800,27 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
5789
5800
  }
5790
5801
  return "other";
5791
5802
  }
5792
- var oh = ["numeric", "style"];
5793
- function ih(e, t, r) {
5803
+ var ih = ["numeric", "style"];
5804
+ function ah(e, t, r) {
5794
5805
  var n = e.locale, o = e.formats, i = e.onError;
5795
5806
  r === void 0 && (r = {});
5796
- var a = r.format, s = !!a && Qo(o, "relative", a, i) || {}, u = Tt(r, oh, s);
5807
+ var a = r.format, s = !!a && Qo(o, "relative", a, i) || {}, u = Tt(r, ih, s);
5797
5808
  return t(n, u);
5798
5809
  }
5799
- function ah(e, t, r, n, o) {
5810
+ function sh(e, t, r, n, o) {
5800
5811
  o === void 0 && (o = {}), n || (n = "second");
5801
5812
  var i = Intl.RelativeTimeFormat;
5802
5813
  i || e.onError(new tt(`Intl.RelativeTimeFormat is not available in this environment.
5803
5814
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
5804
5815
  `, $e.MISSING_INTL_API));
5805
5816
  try {
5806
- return ih(e, t, o).format(r, n);
5817
+ return ah(e, t, o).format(r, n);
5807
5818
  } catch (a) {
5808
5819
  e.onError(new Pe("Error formatting relative time.", e.locale, a));
5809
5820
  }
5810
5821
  return String(r);
5811
5822
  }
5812
- var sh = [
5823
+ var uh = [
5813
5824
  "style",
5814
5825
  "currency",
5815
5826
  "unit",
@@ -5838,10 +5849,10 @@ var sh = [
5838
5849
  function Pu(e, t, r) {
5839
5850
  var n = e.locale, o = e.formats, i = e.onError;
5840
5851
  r === void 0 && (r = {});
5841
- var a = r.format, s = a && Qo(o, "number", a, i) || {}, u = Tt(r, sh, s);
5852
+ var a = r.format, s = a && Qo(o, "number", a, i) || {}, u = Tt(r, uh, s);
5842
5853
  return t(n, u);
5843
5854
  }
5844
- function uh(e, t, r, n) {
5855
+ function ch(e, t, r, n) {
5845
5856
  n === void 0 && (n = {});
5846
5857
  try {
5847
5858
  return Pu(e, t, n).format(r);
@@ -5850,7 +5861,7 @@ function uh(e, t, r, n) {
5850
5861
  }
5851
5862
  return String(r);
5852
5863
  }
5853
- function ch(e, t, r, n) {
5864
+ function lh(e, t, r, n) {
5854
5865
  n === void 0 && (n = {});
5855
5866
  try {
5856
5867
  return Pu(e, t, n).formatToParts(r);
@@ -5859,25 +5870,25 @@ function ch(e, t, r, n) {
5859
5870
  }
5860
5871
  return [];
5861
5872
  }
5862
- function lh(e) {
5873
+ function fh(e) {
5863
5874
  var t = e ? e[Object.keys(e)[0]] : void 0;
5864
5875
  return typeof t == "string";
5865
5876
  }
5866
- function fh(e) {
5867
- e.onWarn && e.defaultRichTextElements && lh(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
5877
+ function dh(e) {
5878
+ e.onWarn && e.defaultRichTextElements && fh(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
5868
5879
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
5869
5880
  For more details see https://formatjs.github.io/docs/getting-started/message-distribution`);
5870
5881
  }
5871
- function dh(e, t) {
5872
- var r = Vd(t), n = B(B({}, Ou), e), o = n.locale, i = n.defaultLocale, a = n.onError;
5873
- return o ? !Intl.NumberFormat.supportedLocalesOf(o).length && a ? a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(o).length && a && a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new Hd('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), fh(n), B(B({}, n), { formatters: r, formatNumber: uh.bind(null, n, r.getNumberFormat), formatNumberToParts: ch.bind(null, n, r.getNumberFormat), formatRelativeTime: ah.bind(null, n, r.getRelativeTimeFormat), formatDate: zd.bind(null, n, r.getDateTimeFormat), formatDateToParts: Kd.bind(null, n, r.getDateTimeFormat), formatTime: Wd.bind(null, n, r.getDateTimeFormat), formatDateTimeRange: Qd.bind(null, n, r.getDateTimeFormat), formatTimeToParts: Xd.bind(null, n, r.getDateTimeFormat), formatPlural: nh.bind(null, n, r.getPluralRules), formatMessage: Ao.bind(null, n, r), $t: Ao.bind(null, n, r), formatList: th.bind(null, n, r.getListFormat), formatListToParts: Tu.bind(null, n, r.getListFormat), formatDisplayName: Zd.bind(null, n, r.getDisplayNames) });
5882
+ function hh(e, t) {
5883
+ var r = Gd(t), n = B(B({}, Ou), e), o = n.locale, i = n.defaultLocale, a = n.onError;
5884
+ return o ? !Intl.NumberFormat.supportedLocalesOf(o).length && a ? a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(o).length && a && a(new ra('Missing locale data for locale: "'.concat(o, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))) : (a && a(new kd('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), dh(n), B(B({}, n), { formatters: r, formatNumber: ch.bind(null, n, r.getNumberFormat), formatNumberToParts: lh.bind(null, n, r.getNumberFormat), formatRelativeTime: sh.bind(null, n, r.getRelativeTimeFormat), formatDate: Wd.bind(null, n, r.getDateTimeFormat), formatDateToParts: Xd.bind(null, n, r.getDateTimeFormat), formatTime: Qd.bind(null, n, r.getDateTimeFormat), formatDateTimeRange: Kd.bind(null, n, r.getDateTimeFormat), formatTimeToParts: Yd.bind(null, n, r.getDateTimeFormat), formatPlural: oh.bind(null, n, r.getPluralRules), formatMessage: Ao.bind(null, n, r), $t: Ao.bind(null, n, r), formatList: rh.bind(null, n, r.getListFormat), formatListToParts: Tu.bind(null, n, r.getListFormat), formatDisplayName: Jd.bind(null, n, r.getDisplayNames) });
5874
5885
  }
5875
- function hh(e, t, r) {
5886
+ function ph(e, t, r) {
5876
5887
  if (r === void 0 && (r = Error), !e)
5877
5888
  throw new r(t);
5878
5889
  }
5879
5890
  function Ru(e) {
5880
- hh(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
5891
+ ph(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
5881
5892
  }
5882
5893
  var Nu = B(B({}, Ou), { textComponent: fe.Fragment }), Iu = function(e) {
5883
5894
  var t = fe.Children.toArray(e);
@@ -5885,7 +5896,7 @@ var Nu = B(B({}, Ou), { textComponent: fe.Fragment }), Iu = function(e) {
5885
5896
  return fe.isValidElement(r) ? fe.createElement(fe.Fragment, { key: n }, r) : r;
5886
5897
  });
5887
5898
  };
5888
- function ph(e) {
5899
+ function yh(e) {
5889
5900
  return function(t) {
5890
5901
  return e(Iu(t));
5891
5902
  };
@@ -5907,7 +5918,7 @@ function To(e, t) {
5907
5918
  }
5908
5919
  var gr = { exports: {} }, re = {};
5909
5920
  var aa;
5910
- function yh() {
5921
+ function mh() {
5911
5922
  if (aa) return re;
5912
5923
  aa = 1;
5913
5924
  var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, S = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, d = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
@@ -5974,7 +5985,7 @@ function yh() {
5974
5985
  }
5975
5986
  var ne = {};
5976
5987
  var sa;
5977
- function mh() {
5988
+ function gh() {
5978
5989
  return sa || (sa = 1, process.env.NODE_ENV !== "production" && (function() {
5979
5990
  var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, s = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, y = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, S = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, d = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, E = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
5980
5991
  function m(D) {
@@ -6057,14 +6068,14 @@ function mh() {
6057
6068
  })()), ne;
6058
6069
  }
6059
6070
  var ua;
6060
- function gh() {
6061
- return ua || (ua = 1, process.env.NODE_ENV === "production" ? gr.exports = yh() : gr.exports = mh()), gr.exports;
6071
+ function vh() {
6072
+ return ua || (ua = 1, process.env.NODE_ENV === "production" ? gr.exports = mh() : gr.exports = gh()), gr.exports;
6062
6073
  }
6063
6074
  var pn, ca;
6064
- function vh() {
6075
+ function bh() {
6065
6076
  if (ca) return pn;
6066
6077
  ca = 1;
6067
- var e = gh(), t = {
6078
+ var e = vh(), t = {
6068
6079
  childContextTypes: !0,
6069
6080
  contextType: !0,
6070
6081
  contextTypes: !0,
@@ -6126,12 +6137,12 @@ function vh() {
6126
6137
  }
6127
6138
  return pn = h, pn;
6128
6139
  }
6129
- vh();
6140
+ bh();
6130
6141
  var Ko = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = fe.createContext(null)) : fe.createContext(null);
6131
6142
  Ko.Consumer;
6132
- var bh = Ko.Provider, Eh = bh, Sh = Ko;
6143
+ var Eh = Ko.Provider, Sh = Eh, wh = Ko;
6133
6144
  function kr() {
6134
- var e = fe.useContext(Sh);
6145
+ var e = fe.useContext(wh);
6135
6146
  return Ru(e), e;
6136
6147
  }
6137
6148
  var Po;
@@ -6165,7 +6176,7 @@ function tr(e) {
6165
6176
  function Mu(e) {
6166
6177
  return e && Object.keys(e).reduce(function(t, r) {
6167
6178
  var n = e[r];
6168
- return t[r] = wu(n) ? ph(n) : n, t;
6179
+ return t[r] = wu(n) ? yh(n) : n, t;
6169
6180
  }, {});
6170
6181
  }
6171
6182
  var la = function(e, t, r, n) {
@@ -6179,7 +6190,7 @@ var la = function(e, t, r, n) {
6179
6190
  ], o, !1));
6180
6191
  return Array.isArray(s) ? Iu(s) : s;
6181
6192
  }, fa = function(e, t) {
6182
- var r = e.defaultRichTextElements, n = Et(e, ["defaultRichTextElements"]), o = Mu(r), i = dh(B(B(B({}, Nu), n), { defaultRichTextElements: o }), t), a = {
6193
+ var r = e.defaultRichTextElements, n = Et(e, ["defaultRichTextElements"]), o = Mu(r), i = hh(B(B(B({}, Nu), n), { defaultRichTextElements: o }), t), a = {
6183
6194
  locale: i.locale,
6184
6195
  timeZone: i.timeZone,
6185
6196
  fallbackOnEmptyString: i.fallbackOnEmptyString,
@@ -6192,7 +6203,7 @@ var la = function(e, t, r, n) {
6192
6203
  };
6193
6204
  return B(B({}, i), { formatMessage: la.bind(null, a, i.formatters), $t: la.bind(null, a, i.formatters) });
6194
6205
  };
6195
- function wh(e, t) {
6206
+ function _h(e, t) {
6196
6207
  var r = e.values, n = Et(e, ["values"]), o = t.values, i = Et(t, ["values"]);
6197
6208
  return To(o, r) && To(n, i);
6198
6209
  }
@@ -6203,7 +6214,7 @@ function Du(e) {
6203
6214
  return typeof c == "function" ? c(Array.isArray(p) ? p : [p]) : y ? fe.createElement(y, null, p) : fe.createElement(fe.Fragment, null, p);
6204
6215
  }
6205
6216
  Du.displayName = "FormattedMessage";
6206
- var xu = fe.memo(Du, wh);
6217
+ var xu = fe.memo(Du, _h);
6207
6218
  xu.displayName = "MemoizedFormattedMessage";
6208
6219
  function yn(e) {
6209
6220
  return {
@@ -6221,7 +6232,7 @@ function yn(e) {
6221
6232
  defaultRichTextElements: e.defaultRichTextElements
6222
6233
  };
6223
6234
  }
6224
- var _h = (
6235
+ var Oh = (
6225
6236
  /** @class */
6226
6237
  (function(e) {
6227
6238
  Te(t, e);
@@ -6240,7 +6251,7 @@ var _h = (
6240
6251
  prevConfig: a
6241
6252
  };
6242
6253
  }, t.prototype.render = function() {
6243
- return Ru(this.state.intl), fe.createElement(Eh, { value: this.state.intl }, this.props.children);
6254
+ return Ru(this.state.intl), fe.createElement(Sh, { value: this.state.intl }, this.props.children);
6244
6255
  }, t.displayName = "IntlProvider", t.defaultProps = Nu, t;
6245
6256
  })(fe.PureComponent)
6246
6257
  );
@@ -6260,10 +6271,10 @@ function Lu(e, t) {
6260
6271
  ke[r] = t[r];
6261
6272
  ke[gt] = e;
6262
6273
  }
6263
- function Oh(e) {
6274
+ function Ah(e) {
6264
6275
  return /* @__PURE__ */ he(xu, { id: e, defaultMessage: e });
6265
6276
  }
6266
- function Ah(e) {
6277
+ function Th(e) {
6267
6278
  return e;
6268
6279
  }
6269
6280
  function wt(e) {
@@ -6298,8 +6309,8 @@ const pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6298
6309
  getLangInfo: wt,
6299
6310
  isValidLocale: $u,
6300
6311
  setDefaultTranslation: Lu,
6301
- t: Oh,
6302
- tt: Ah
6312
+ t: Ah,
6313
+ tt: Th
6303
6314
  }, Symbol.toStringTag, { value: "Module" }));
6304
6315
  function Uu(e) {
6305
6316
  var t, r, n = "";
@@ -6310,13 +6321,13 @@ function Uu(e) {
6310
6321
  } else for (r in e) e[r] && (n && (n += " "), n += r);
6311
6322
  return n;
6312
6323
  }
6313
- function Th() {
6324
+ function Ph() {
6314
6325
  for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Uu(e)) && (n && (n += " "), n += t);
6315
6326
  return n;
6316
6327
  }
6317
- const Ph = "_overlay_1ol4o_1", Rh = "_dummy_1ol4o_7", da = {
6318
- overlay: Ph,
6319
- dummy: Rh
6328
+ const Rh = "_overlay_1ol4o_1", Nh = "_dummy_1ol4o_7", da = {
6329
+ overlay: Rh,
6330
+ dummy: Nh
6320
6331
  }, Ge = Ms(function({
6321
6332
  showChildren: e = !0,
6322
6333
  useTranslation: t = !0,
@@ -6326,10 +6337,10 @@ const Ph = "_overlay_1ol4o_1", Rh = "_dummy_1ol4o_7", da = {
6326
6337
  children: i
6327
6338
  }) {
6328
6339
  const a = n ? n.spinning : !o.spinning;
6329
- return a ? t ? /* @__PURE__ */ he(Nh, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : /* @__PURE__ */ he(ju, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : i;
6340
+ return a ? t ? /* @__PURE__ */ he(Ih, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : /* @__PURE__ */ he(ju, { spin: n, skeleton: o, className: r, children: e || !a ? i : void 0 }) : i;
6330
6341
  });
6331
6342
  Ge.displayName = "Wait";
6332
- function Nh({ className: e, spin: t, skeleton: r, children: n }) {
6343
+ function Ih({ className: e, spin: t, skeleton: r, children: n }) {
6333
6344
  const o = kr();
6334
6345
  if (t && t.spinning) {
6335
6346
  if (t.tip && typeof t.tip != "string") throw new Error("Only string is allowed when using translation");
@@ -6343,7 +6354,7 @@ function ju({ className: e, skeleton: t, spin: r, children: n }) {
6343
6354
  const i = Ge;
6344
6355
  if (i.spin) {
6345
6356
  const a = i.spin, { extraProps: s, ...u } = r ?? {};
6346
- return /* @__PURE__ */ he(a, { className: Th(da.overlay, e), ...u, extraProps: s ?? i.spinProps, children: n ?? /* @__PURE__ */ he("div", { className: da.dummy, children: " " }) });
6357
+ return /* @__PURE__ */ he(a, { className: Ph(da.overlay, e), ...u, extraProps: s ?? i.spinProps, children: n ?? /* @__PURE__ */ he("div", { className: da.dummy, children: " " }) });
6347
6358
  }
6348
6359
  if (i.skeleton) {
6349
6360
  const a = i.skeleton, { extraProps: s, ...u } = t ?? {};
@@ -6352,10 +6363,10 @@ function ju({ className: e, skeleton: t, spin: r, children: n }) {
6352
6363
  throw new Error("Wait component must have either spin or skeleton defined");
6353
6364
  }, [e, n, t, r]);
6354
6365
  }
6355
- const { setIdentity: Ih } = At.actions;
6356
- function Ch({ className: e, service: t, children: r }) {
6366
+ const { setIdentity: Ch } = At.actions;
6367
+ function Mh({ className: e, service: t, children: r }) {
6357
6368
  const n = xr(), o = cl(!1), i = xe((u) => !et(u).auth.seed), a = je(() => ({ spinning: i, tip: "spin.auth" }), [i]), s = Ds(
6358
- (u, c) => n(Ih({ reason: u, identity: c })),
6369
+ (u, c) => n(Ch({ reason: u, identity: c })),
6359
6370
  [n]
6360
6371
  );
6361
6372
  return zt(() => {
@@ -6395,7 +6406,7 @@ let jr = class extends qu {
6395
6406
  }
6396
6407
  };
6397
6408
  const Vu = new Xo("__null__", null), No = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);
6398
- function Mh(e, t) {
6409
+ function Dh(e, t) {
6399
6410
  return t instanceof Ur && t.operator === e;
6400
6411
  }
6401
6412
  function Gu(e, t) {
@@ -6403,19 +6414,19 @@ function Gu(e, t) {
6403
6414
  const a = i || [];
6404
6415
  for (let s = 0, u = o.length; s < u; s++) {
6405
6416
  const c = o[s];
6406
- Mh(n, c) ? r(n, c.value, a) : a.push(c);
6417
+ Dh(n, c) ? r(n, c.value, a) : a.push(c);
6407
6418
  }
6408
6419
  return a;
6409
6420
  })(e, t));
6410
6421
  }
6411
- const Dh = (e) => e, zu = () => /* @__PURE__ */ Object.create(null), Wu = Object.defineProperty(zu(), "__@type@__", { value: "ignore value" });
6412
- function xh(e, t, r = !1) {
6422
+ const xh = (e) => e, zu = () => /* @__PURE__ */ Object.create(null), Wu = Object.defineProperty(zu(), "__@type@__", { value: "ignore value" });
6423
+ function Fh(e, t, r = !1) {
6413
6424
  if (!e || e && e.constructor !== Object) return !1;
6414
6425
  for (const n in e)
6415
6426
  if (No(e, n) && No(t, n) && (!r || e[n] !== Wu)) return !0;
6416
6427
  return !1;
6417
6428
  }
6418
- function Fh(e) {
6429
+ function $h(e) {
6419
6430
  const t = [];
6420
6431
  for (const r in e) No(e, r) && e[r] !== Wu && t.push(r);
6421
6432
  return t;
@@ -6427,9 +6438,9 @@ const Qu = (e) => Gu("and", e), Ku = { compound(e, t, r) {
6427
6438
  const n = (Array.isArray(t) ? t : [t]).map((o) => r.parse(o));
6428
6439
  return new Ur(e.name, n);
6429
6440
  }, field: (e, t, r) => new jr(e.name, r.field, t), document: (e, t) => new Xo(e.name, t) };
6430
- let $h = class {
6441
+ let Lh = class {
6431
6442
  constructor(t, r = zu()) {
6432
- this.o = void 0, this.s = void 0, this.i = void 0, this.u = void 0, this.h = void 0, this.parse = this.parse.bind(this), this.u = { operatorToConditionName: r.operatorToConditionName || Dh, defaultOperatorName: r.defaultOperatorName || "eq", mergeFinalConditions: r.mergeFinalConditions || Qu }, this.o = Object.keys(t).reduce((n, o) => (n[o] = Object.assign({ name: this.u.operatorToConditionName(o) }, t[o]), n), {}), this.s = Object.assign({}, r.fieldContext, { field: "", query: {}, parse: this.parse, hasOperators: (n) => xh(n, this.o, r.useIgnoreValue) }), this.i = Object.assign({}, r.documentContext, { parse: this.parse, query: {} }), this.h = r.useIgnoreValue ? Fh : Object.keys;
6443
+ this.o = void 0, this.s = void 0, this.i = void 0, this.u = void 0, this.h = void 0, this.parse = this.parse.bind(this), this.u = { operatorToConditionName: r.operatorToConditionName || xh, defaultOperatorName: r.defaultOperatorName || "eq", mergeFinalConditions: r.mergeFinalConditions || Qu }, this.o = Object.keys(t).reduce((n, o) => (n[o] = Object.assign({ name: this.u.operatorToConditionName(o) }, t[o]), n), {}), this.s = Object.assign({}, r.fieldContext, { field: "", query: {}, parse: this.parse, hasOperators: (n) => Fh(n, this.o, r.useIgnoreValue) }), this.i = Object.assign({}, r.documentContext, { parse: this.parse, query: {} }), this.h = r.useIgnoreValue ? $h : Object.keys;
6433
6444
  }
6434
6445
  setParse(t) {
6435
6446
  this.parse = t, this.s.parse = t, this.i.parse = t;
@@ -6470,11 +6481,11 @@ function gn(e, t) {
6470
6481
  if (typeof r != "function") throw new Error(`Unable to interpret "${t}" condition. Did you forget to register interpreter for it?`);
6471
6482
  return r;
6472
6483
  }
6473
- function Lh(e) {
6484
+ function Bh(e) {
6474
6485
  return e.operator;
6475
6486
  }
6476
- function Bh(e, t) {
6477
- const r = t, n = r && r.getInterpreterName || Lh;
6487
+ function Hh(e, t) {
6488
+ const r = t, n = r && r.getInterpreterName || Bh;
6478
6489
  let o;
6479
6490
  switch (r ? r.numberOfArguments : 0) {
6480
6491
  case 1:
@@ -6498,7 +6509,7 @@ function Bh(e, t) {
6498
6509
  const i = Object.assign({}, r, { interpret: o });
6499
6510
  return i.interpret;
6500
6511
  }
6501
- function Hh(e, t) {
6512
+ function kh(e, t) {
6502
6513
  return (r, ...n) => {
6503
6514
  const o = e(r, ...n), i = t.bind(null, o);
6504
6515
  return i.ast = o, i;
@@ -6515,7 +6526,7 @@ const Yo = (e) => (t, r) => {
6515
6526
  }, Zu = { type: "compound", validate: Yu, parse(e, t, { parse: r }) {
6516
6527
  const n = t.map((o) => r(o));
6517
6528
  return Gu(e.name, n);
6518
- } }, kh = Zu, Uh = { type: "compound", validate: Yu }, jh = { type: "field", validate(e, t) {
6529
+ } }, Uh = Zu, jh = { type: "compound", validate: Yu }, qh = { type: "field", validate(e, t) {
6519
6530
  if (!(t && (t instanceof RegExp || t.constructor === Object))) throw new Error(`"${e.name}" expects to receive either regular expression or object of field operators`);
6520
6531
  }, parse(e, t, r) {
6521
6532
  const n = t instanceof RegExp ? new jr("regex", r.field, t) : r.parse(t, r);
@@ -6525,7 +6536,7 @@ const Yo = (e) => (t, r) => {
6525
6536
  }, parse(e, t, { parse: r, field: n, hasOperators: o }) {
6526
6537
  const i = o(t) ? r(t, { field: rr }) : r(t);
6527
6538
  return new jr(e.name, n, i);
6528
- } }, ec = { type: "field", validate: Yo("number") }, qr = { type: "field", validate: Xu }, tc = qr, rc = qr, qh = { type: "field", validate(e, t) {
6539
+ } }, ec = { type: "field", validate: Yo("number") }, qr = { type: "field", validate: Xu }, tc = qr, rc = qr, Vh = { type: "field", validate(e, t) {
6529
6540
  if (!Array.isArray(t) || t.length !== 2) throw new Error(`"${e.name}" expects an array with 2 numeric elements`);
6530
6541
  } }, nc = { type: "field", validate: Yo("boolean") }, Zo = { type: "field", validate: function(e, t) {
6531
6542
  if (!(typeof t == "string" || typeof t == "number" || t instanceof Date)) throw new Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`);
@@ -6534,9 +6545,9 @@ const Yo = (e) => (t, r) => {
6534
6545
  }, parse(e, t, r) {
6535
6546
  const n = typeof t == "string" ? new RegExp(t, r.query.$options || "") : t;
6536
6547
  return new jr(e.name, r.field, n);
6537
- } }, uc = { type: "field", parse: () => Vu }, Vh = { type: "document", validate: Yo("function") };
6538
- var Gh = Object.freeze({ __proto__: null, $and: Zu, $or: kh, $nor: Uh, $not: jh, $elemMatch: Ju, $size: ec, $in: qr, $nin: tc, $all: rc, $mod: qh, $exists: nc, $gte: Zo, $gt: Vr, $lt: oc, $lte: ic, $eq: Jo, $ne: ac, $regex: sc, $options: uc, $where: Vh });
6539
- class zh extends $h {
6548
+ } }, uc = { type: "field", parse: () => Vu }, Gh = { type: "document", validate: Yo("function") };
6549
+ var zh = Object.freeze({ __proto__: null, $and: Zu, $or: Uh, $nor: jh, $not: qh, $elemMatch: Ju, $size: ec, $in: qr, $nin: tc, $all: rc, $mod: Vh, $exists: nc, $gte: Zo, $gt: Vr, $lt: oc, $lte: ic, $eq: Jo, $ne: ac, $regex: sc, $options: uc, $where: Gh });
6550
+ class Wh extends Lh {
6540
6551
  constructor(t) {
6541
6552
  super(t, { defaultOperatorName: "$eq", operatorToConditionName: (r) => r.slice(1) });
6542
6553
  }
@@ -6544,7 +6555,7 @@ class zh extends $h {
6544
6555
  return r && r.field ? Qu(this.parseFieldOperators(r.field, t)) : super.parse(t);
6545
6556
  }
6546
6557
  }
6547
- const Io = Gh;
6558
+ const Io = zh;
6548
6559
  function ei(e, t, r) {
6549
6560
  for (let n = 0, o = e.length; n < o; n++) if (r(e[n], t) === 0) return !0;
6550
6561
  return !1;
@@ -6567,12 +6578,12 @@ function dt(e) {
6567
6578
  return Array.isArray(o) ? o.some((i) => e(t, i, n)) : e(t, o, n);
6568
6579
  };
6569
6580
  }
6570
- const Wh = (e, t) => e[t];
6581
+ const Qh = (e, t) => e[t];
6571
6582
  function cc(e, t, r) {
6572
6583
  const n = t.lastIndexOf(".");
6573
6584
  return n === -1 ? [e, t] : [r(e, t.slice(0, n)), t.slice(n + 1)];
6574
6585
  }
6575
- function Qh(e, t, r = Wh) {
6586
+ function Kh(e, t, r = Qh) {
6576
6587
  if (t === rr) return e;
6577
6588
  if (!e) throw new Error(`Unable to get field "${t}" out of ${String(e)}.`);
6578
6589
  return (function(n, o, i) {
@@ -6587,9 +6598,9 @@ function lc(e, t) {
6587
6598
  return e === t ? 0 : e > t ? 1 : -1;
6588
6599
  }
6589
6600
  function fc(e, t = {}) {
6590
- return Bh(e, Object.assign({ get: Qh, compare: lc }, t));
6601
+ return Hh(e, Object.assign({ get: Kh, compare: lc }, t));
6591
6602
  }
6592
- const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Kh = (e, t, r) => !dc(e, t, r), hc = (e, t, { interpret: r }) => e.value.every((n) => r(n, t)), Xh = (e, t, { interpret: r }) => !r(e.value[0], t), ri = (e, t, { compare: r, get: n }) => {
6603
+ const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Xh = (e, t, r) => !dc(e, t, r), hc = (e, t, { interpret: r }) => e.value.every((n) => r(n, t)), Yh = (e, t, { interpret: r }) => !r(e.value[0], t), ri = (e, t, { compare: r, get: n }) => {
6593
6604
  const o = n(t, e.field);
6594
6605
  return Array.isArray(o) && !Array.isArray(e.value) ? ei(o, e.value, r) : r(o, e.value) === 0;
6595
6606
  }, pc = (e, t, r) => !ri(e, t, r), yc = dt((e, t, r) => {
@@ -6602,7 +6613,7 @@ const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Kh = (e, t,
6602
6613
  if (e.field === rr) return t !== void 0;
6603
6614
  const [n, o] = cc(t, e.field, r), i = (a) => a == null ? !!a === e.value : a.hasOwnProperty(o) === e.value;
6604
6615
  return ti(n, o) ? n.some(i) : i(n);
6605
- }, Yh = dt((e, t) => typeof t == "number" && t % e.value[0] === e.value[1]), Ec = (e, t, { get: r }) => {
6616
+ }, Zh = dt((e, t) => typeof t == "number" && t % e.value[0] === e.value[1]), Ec = (e, t, { get: r }) => {
6606
6617
  const [n, o] = cc(t, e.field, r), i = (a) => {
6607
6618
  const s = r(a, o);
6608
6619
  return Array.isArray(s) && s.length === e.value;
@@ -6614,34 +6625,34 @@ const dc = (e, t, { interpret: r }) => e.value.some((n) => r(n, t)), Kh = (e, t,
6614
6625
  }, Oc = (e, t, { interpret: r, get: n }) => {
6615
6626
  const o = n(t, e.field);
6616
6627
  return Array.isArray(o) && o.some((i) => r(e.value, i));
6617
- }, Zh = (e, t) => e.value.call(t);
6618
- var Jh = Object.freeze({ __proto__: null, or: dc, nor: Kh, and: hc, not: Xh, eq: ri, ne: pc, lte: yc, lt: mc, gt: gc, gte: vc, exists: bc, mod: Yh, size: Ec, regex: Sc, within: Gr, nin: wc, all: _c, elemMatch: Oc, where: Zh });
6619
- const ni = Object.assign({}, Jh, { in: Gr });
6628
+ }, Jh = (e, t) => e.value.call(t);
6629
+ var ep = Object.freeze({ __proto__: null, or: dc, nor: Xh, and: hc, not: Yh, eq: ri, ne: pc, lte: yc, lt: mc, gt: gc, gte: vc, exists: bc, mod: Zh, size: Ec, regex: Sc, within: Gr, nin: wc, all: _c, elemMatch: Oc, where: Jh });
6630
+ const ni = Object.assign({}, ep, { in: Gr });
6620
6631
  fc(ni);
6621
6632
  function pa(e) {
6622
6633
  return e === null || typeof e != "object" ? e : e instanceof Date ? e.getTime() : e && typeof e.toJSON == "function" ? e.toJSON() : e;
6623
6634
  }
6624
- const ep = (e, t) => lc(pa(e), pa(t));
6635
+ const tp = (e, t) => lc(pa(e), pa(t));
6625
6636
  function oi(e, t, r) {
6626
- const n = new zh(e), o = fc(t, Object.assign({ compare: ep }, r));
6637
+ const n = new Wh(e), o = fc(t, Object.assign({ compare: tp }, r));
6627
6638
  if (r && r.forPrimitives) {
6628
6639
  const i = { field: rr }, a = n.parse;
6629
6640
  n.setParse((s) => a(s, i));
6630
6641
  }
6631
- return Hh(n.parse, o);
6642
+ return kh(n.parse, o);
6632
6643
  }
6633
6644
  oi(Io, ni);
6634
6645
  oi(["$and", "$or"].reduce((e, t) => (e[t] = Object.assign({}, e[t], { type: "field" }), e), Object.assign({}, Io, { $nor: Object.assign({}, Io.$nor, { type: "field", parse: Ku.compound }) })), ni, { forPrimitives: !0 });
6635
- const tp = Object.hasOwn || ((e, t) => Object.prototype.hasOwnProperty.call(e, t));
6646
+ const rp = Object.hasOwn || ((e, t) => Object.prototype.hasOwnProperty.call(e, t));
6636
6647
  function Co(e) {
6637
6648
  return Array.isArray(e) ? e : [e];
6638
6649
  }
6639
6650
  const ya = "__caslSubjectType__", Or = (e) => {
6640
6651
  const t = typeof e;
6641
6652
  return t === "string" || t === "function";
6642
- }, rp = (e) => e.modelName || e.name;
6653
+ }, np = (e) => e.modelName || e.name;
6643
6654
  function Ac(e) {
6644
- return tp(e, ya) ? e[ya] : rp(e.constructor);
6655
+ return rp(e, ya) ? e[ya] : np(e.constructor);
6645
6656
  }
6646
6657
  const ma = { function: (e) => e.constructor, string: Ac };
6647
6658
  function ga(e, t, r) {
@@ -6659,15 +6670,15 @@ function vr(e, t, r) {
6659
6670
  let n = e.get(t);
6660
6671
  return n || (n = r(), e.set(t, n)), n;
6661
6672
  }
6662
- const np = (e) => e;
6663
- function op(e, t) {
6673
+ const op = (e) => e;
6674
+ function ip(e, t) {
6664
6675
  if (Array.isArray(e.fields) && !e.fields.length) throw new Error("`rawRule.fields` cannot be an empty array. https://bit.ly/390miLa");
6665
6676
  if (e.fields && !t.fieldMatcher) throw new Error('You need to pass "fieldMatcher" option in order to restrict access by fields');
6666
6677
  if (e.conditions && !t.conditionsMatcher) throw new Error('You need to pass "conditionsMatcher" option in order to restrict access by conditions');
6667
6678
  }
6668
- class ip {
6679
+ class ap {
6669
6680
  constructor(t, r, n = 0) {
6670
- op(t, r), this.action = r.resolveAction(t.action), this.subject = t.subject, this.inverted = !!t.inverted, this.conditions = t.conditions, this.reason = t.reason, this.origin = t, this.fields = t.fields ? Co(t.fields) : void 0, this.priority = n, this.t = r;
6681
+ ip(t, r), this.action = r.resolveAction(t.action), this.subject = t.subject, this.inverted = !!t.inverted, this.conditions = t.conditions, this.reason = t.reason, this.origin = t, this.fields = t.fields ? Co(t.fields) : void 0, this.priority = n, this.t = r;
6671
6682
  }
6672
6683
  i() {
6673
6684
  return this.conditions && !this.o && (this.o = this.t.conditionsMatcher(this.conditions)), this.o;
@@ -6683,17 +6694,17 @@ class ip {
6683
6694
  return this.fields ? t ? (this.u || (this.u = this.t.fieldMatcher(this.fields)), this.u(t)) : !this.inverted : !0;
6684
6695
  }
6685
6696
  }
6686
- function ap(e, t) {
6697
+ function sp(e, t) {
6687
6698
  const r = { value: e, prev: t, next: null };
6688
6699
  return t && (t.next = r), r;
6689
6700
  }
6690
- function sp(e) {
6701
+ function up(e) {
6691
6702
  e.next && (e.next.prev = e.prev), e.prev && (e.prev.next = e.next), e.next = e.prev = null;
6692
6703
  }
6693
- const up = (e) => ({ value: e.value, prev: e.prev, next: e.next }), ba = () => ({ rules: [], merged: !1 }), Ea = () => /* @__PURE__ */ new Map();
6694
- class cp {
6704
+ const cp = (e) => ({ value: e.value, prev: e.prev, next: e.next }), ba = () => ({ rules: [], merged: !1 }), Ea = () => /* @__PURE__ */ new Map();
6705
+ class lp {
6695
6706
  constructor(t = [], r = {}) {
6696
- this.h = !1, this.l = /* @__PURE__ */ new Map(), this.p = { conditionsMatcher: r.conditionsMatcher, fieldMatcher: r.fieldMatcher, resolveAction: r.resolveAction || np }, this.$ = r.anyAction || "manage", this.A = r.anySubjectType || "all", this.m = t, this.M = !!r.detectSubjectType, this.j = r.detectSubjectType || Ac, this.v(t);
6707
+ this.h = !1, this.l = /* @__PURE__ */ new Map(), this.p = { conditionsMatcher: r.conditionsMatcher, fieldMatcher: r.fieldMatcher, resolveAction: r.resolveAction || op }, this.$ = r.anyAction || "manage", this.A = r.anySubjectType || "all", this.m = t, this.M = !!r.detectSubjectType, this.j = r.detectSubjectType || Ac, this.v(t);
6697
6708
  }
6698
6709
  get rules() {
6699
6710
  return this.m;
@@ -6709,7 +6720,7 @@ class cp {
6709
6720
  const r = /* @__PURE__ */ new Map();
6710
6721
  let n;
6711
6722
  for (let o = t.length - 1; o >= 0; o--) {
6712
- const i = t.length - o - 1, a = new ip(t[o], this.p, i), s = Co(a.action), u = Co(a.subject || this.A);
6723
+ const i = t.length - o - 1, a = new ap(t[o], this.p, i), s = Co(a.action), u = Co(a.subject || this.A);
6713
6724
  !this.h && a.fields && (this.h = !0);
6714
6725
  for (let c = 0; c < u.length; c++) {
6715
6726
  const l = vr(r, u[c], Ea);
@@ -6744,22 +6755,22 @@ class cp {
6744
6755
  }
6745
6756
  on(t, r) {
6746
6757
  this.F = this.F || /* @__PURE__ */ new Map();
6747
- const n = this.F, o = n.get(t) || null, i = ap(r, o);
6758
+ const n = this.F, o = n.get(t) || null, i = sp(r, o);
6748
6759
  return n.set(t, i), () => {
6749
6760
  const a = n.get(t);
6750
- !i.next && !i.prev && a === i ? n.delete(t) : i === a && n.set(t, i.prev), sp(i);
6761
+ !i.next && !i.prev && a === i ? n.delete(t) : i === a && n.set(t, i.prev), up(i);
6751
6762
  };
6752
6763
  }
6753
6764
  _(t, r) {
6754
6765
  if (!this.F) return;
6755
6766
  let n = this.F.get(t) || null;
6756
6767
  for (; n !== null; ) {
6757
- const o = n.prev ? up(n.prev) : null;
6768
+ const o = n.prev ? cp(n.prev) : null;
6758
6769
  n.value(r), n = o;
6759
6770
  }
6760
6771
  }
6761
6772
  }
6762
- class lp extends cp {
6773
+ class fp extends lp {
6763
6774
  can(t, r, n) {
6764
6775
  const o = this.relevantRuleFor(t, r, n);
6765
6776
  return !!o && !o.inverted;
@@ -6773,29 +6784,29 @@ class lp extends cp {
6773
6784
  return !this.can(t, r, n);
6774
6785
  }
6775
6786
  }
6776
- const fp = { $eq: Jo, $ne: ac, $lt: oc, $lte: ic, $gt: Vr, $gte: Zo, $in: qr, $nin: tc, $all: rc, $size: ec, $regex: sc, $options: uc, $elemMatch: Ju, $exists: nc }, dp = { eq: ri, ne: pc, lt: mc, lte: yc, gt: gc, gte: vc, in: Gr, nin: wc, all: _c, size: Ec, regex: Sc, elemMatch: Oc, exists: bc, and: hc }, hp = oi(fp, dp), pp = /[-/\\^$+?.()|[\]{}]/g, yp = /\.?\*+\.?/g, mp = /\*+/, gp = /\./g;
6777
- function vp(e, t, r) {
6778
- const n = r[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", o = e.indexOf("**") === -1 ? "[^.]" : ".", i = e.replace(gp, "\\$&").replace(mp, o + n);
6787
+ const dp = { $eq: Jo, $ne: ac, $lt: oc, $lte: ic, $gt: Vr, $gte: Zo, $in: qr, $nin: tc, $all: rc, $size: ec, $regex: sc, $options: uc, $elemMatch: Ju, $exists: nc }, hp = { eq: ri, ne: pc, lt: mc, lte: yc, gt: gc, gte: vc, in: Gr, nin: wc, all: _c, size: Ec, regex: Sc, elemMatch: Oc, exists: bc, and: hc }, pp = oi(dp, hp), yp = /[-/\\^$+?.()|[\]{}]/g, mp = /\.?\*+\.?/g, gp = /\*+/, vp = /\./g;
6788
+ function bp(e, t, r) {
6789
+ const n = r[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", o = e.indexOf("**") === -1 ? "[^.]" : ".", i = e.replace(vp, "\\$&").replace(gp, o + n);
6779
6790
  return t + e.length === r.length ? `(?:${i})?` : i;
6780
6791
  }
6781
- function bp(e, t, r) {
6792
+ function Ep(e, t, r) {
6782
6793
  return e === "." && (r[t - 1] === "*" || r[t + 1] === "*") ? e : `\\${e}`;
6783
6794
  }
6784
- function Ep(e) {
6785
- const t = e.map((n) => n.replace(pp, bp).replace(yp, vp)), r = t.length > 1 ? `(?:${t.join("|")})` : t[0];
6795
+ function Sp(e) {
6796
+ const t = e.map((n) => n.replace(yp, Ep).replace(mp, bp)), r = t.length > 1 ? `(?:${t.join("|")})` : t[0];
6786
6797
  return new RegExp(`^${r}$`);
6787
6798
  }
6788
- const Sp = (e) => {
6799
+ const wp = (e) => {
6789
6800
  let t;
6790
- return (r) => (typeof t > "u" && (t = e.every((n) => n.indexOf("*") === -1) ? null : Ep(e)), t === null ? e.indexOf(r) !== -1 : t.test(r));
6801
+ return (r) => (typeof t > "u" && (t = e.every((n) => n.indexOf("*") === -1) ? null : Sp(e)), t === null ? e.indexOf(r) !== -1 : t.test(r));
6791
6802
  };
6792
6803
  function Tc(e = [], t = {}) {
6793
- return new lp(e, Object.assign({ conditionsMatcher: hp, fieldMatcher: Sp }, t));
6804
+ return new fp(e, Object.assign({ conditionsMatcher: pp, fieldMatcher: wp }, t));
6794
6805
  }
6795
- function wp(e) {
6806
+ function _p(e) {
6796
6807
  return e.prototype !== void 0 && typeof e.prototype.possibleRulesFor == "function";
6797
6808
  }
6798
- class _p {
6809
+ class Op {
6799
6810
  constructor(t) {
6800
6811
  this.O = t;
6801
6812
  }
@@ -6805,25 +6816,25 @@ class _p {
6805
6816
  }
6806
6817
  class Pc {
6807
6818
  constructor(t) {
6808
- this.rules = [], this.C = t, this.can = (r, n, o, i) => this.R(r, n, o, i, !1), this.cannot = (r, n, o, i) => this.R(r, n, o, i, !0), this.build = (r) => wp(this.C) ? new this.C(this.rules, r) : this.C(this.rules, r);
6819
+ this.rules = [], this.C = t, this.can = (r, n, o, i) => this.R(r, n, o, i, !1), this.cannot = (r, n, o, i) => this.R(r, n, o, i, !0), this.build = (r) => _p(this.C) ? new this.C(this.rules, r) : this.C(this.rules, r);
6809
6820
  }
6810
6821
  R(t, r, n, o, i) {
6811
6822
  const a = { action: t };
6812
- return i && (a.inverted = i), r && (a.subject = r, Array.isArray(n) || typeof n == "string" ? a.fields = n : typeof n < "u" && (a.conditions = n), typeof o < "u" && (a.conditions = o)), this.rules.push(a), new _p(a);
6823
+ return i && (a.inverted = i), r && (a.subject = r, Array.isArray(n) || typeof n == "string" ? a.fields = n : typeof n < "u" && (a.conditions = n), typeof o < "u" && (a.conditions = o)), this.rules.push(a), new Op(a);
6813
6824
  }
6814
6825
  }
6815
- function Op(e) {
6826
+ function Ap(e) {
6816
6827
  return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
6817
6828
  }
6818
- function Ap(e) {
6829
+ function Tp(e) {
6819
6830
  return e;
6820
6831
  }
6821
- function Tp(e, t) {
6832
+ function Pp(e, t) {
6822
6833
  t = t || {};
6823
- const r = t.delimiter || ".", n = t.maxDepth, o = t.transformKey || Ap, i = {};
6834
+ const r = t.delimiter || ".", n = t.maxDepth, o = t.transformKey || Tp, i = {};
6824
6835
  function a(s, u, c) {
6825
6836
  c = c || 1, Object.keys(s).forEach(function(l) {
6826
- const y = s[l], v = t.safe && Array.isArray(y), h = Object.prototype.toString.call(y), p = Op(y), S = h === "[object Object]" || h === "[object Array]", d = u ? u + r + o(l) : o(l);
6837
+ const y = s[l], v = t.safe && Array.isArray(y), h = Object.prototype.toString.call(y), p = Ap(y), S = h === "[object Object]" || h === "[object Array]", d = u ? u + r + o(l) : o(l);
6827
6838
  if (!v && !p && S && Object.keys(y).length && (!t.maxDepth || c < n))
6828
6839
  return a(y, d, c + 1);
6829
6840
  i[d] = y;
@@ -6831,12 +6842,12 @@ function Tp(e, t) {
6831
6842
  }
6832
6843
  return a(e), i;
6833
6844
  }
6834
- const Pp = {
6845
+ const Rp = {
6835
6846
  lang: { code: "en", locale: "en-US" },
6836
6847
  data: {}
6837
6848
  }, Rc = "lang", nr = Xe({
6838
6849
  name: Rc,
6839
- initialState: Pp,
6850
+ initialState: Rp,
6840
6851
  reducers: {
6841
6852
  setLang(e, t) {
6842
6853
  const { locale: r } = t.payload;
@@ -6848,13 +6859,13 @@ const Pp = {
6848
6859
  const { files: i, messages: a } = e.data[r];
6849
6860
  if (i[n]) return;
6850
6861
  i[n] = !0;
6851
- const s = Tp(o);
6862
+ const s = Pp(o);
6852
6863
  for (const u in s)
6853
6864
  a[`${u}`] = [{ type: 0, value: s[u] }];
6854
6865
  e.lang?.locale !== r && (e.lang = wt(t.payload.locale));
6855
6866
  }
6856
6867
  }
6857
- }), Ze = (e) => e[Rc], { pushLangMessage: Rp } = nr.actions, Sa = "__global", Np = {
6868
+ }), Ze = (e) => e[Rc], { pushLangMessage: Np } = nr.actions, Sa = "__global", Ip = {
6858
6869
  en: {
6859
6870
  loading: {
6860
6871
  _: "Loading...",
@@ -6868,7 +6879,7 @@ const Pp = {
6868
6879
  }
6869
6880
  }
6870
6881
  };
6871
- function Ip({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o = Np }) {
6882
+ function Cp({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o = Ip }) {
6872
6883
  const i = xr(), { locale: a, code: s } = r, u = je(() => Go(
6873
6884
  [
6874
6885
  (h) => Ze(h).data[a]?.files[Sa],
@@ -6882,11 +6893,11 @@ function Ip({ children: e, className: t, lang: r, langFiles: n, defaultTexts: o
6882
6893
  );
6883
6894
  return zt(() => {
6884
6895
  c || (async () => {
6885
- const h = await Bu(a, n), p = Rp({ locale: a, file: Sa, messages: h.default });
6896
+ const h = await Bu(a, n), p = Np({ locale: a, file: Sa, messages: h.default });
6886
6897
  p && i(p);
6887
6898
  })();
6888
6899
  }, [c, y, a, i, n]), /* @__PURE__ */ he(Ge, { useTranslation: !1, showChildren: !1, spin: v, className: t, children: /* @__PURE__ */ he(
6889
- _h,
6900
+ Oh,
6890
6901
  {
6891
6902
  messages: l,
6892
6903
  locale: a,
@@ -6953,7 +6964,7 @@ const wa = "Init configuration first.", Ue = {
6953
6964
  return Ue.getEndpoint(e);
6954
6965
  }
6955
6966
  };
6956
- function Cp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLoad: i }) {
6967
+ function Mp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLoad: i }) {
6957
6968
  const [a, s] = lo(!1);
6958
6969
  return zt(() => {
6959
6970
  (async () => {
@@ -6969,17 +6980,17 @@ function Cp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLo
6969
6980
  }
6970
6981
  const vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6971
6982
  __proto__: null,
6972
- ConfigLoader: Cp,
6973
- LangProvider: Ip,
6983
+ ConfigLoader: Mp,
6984
+ LangProvider: Cp,
6974
6985
  Wait: Ge
6975
6986
  }, Symbol.toStringTag, { value: "Module" }));
6976
- function Mp(e) {
6987
+ function Dp(e) {
6977
6988
  if (e) return e;
6978
6989
  const { build: t } = new Pc(Tc);
6979
6990
  return t();
6980
6991
  }
6981
- function Dp({ className: e, children: t, getPermissionFor: r, defaultAbility: n }) {
6982
- const o = uu(), [i, a] = lo(), [s, u] = lo(() => Mp(n)), c = xe((y) => et(y).auth.seed);
6992
+ function xp({ className: e, children: t, getPermissionFor: r, defaultAbility: n }) {
6993
+ const o = uu(), [i, a] = lo(), [s, u] = lo(() => Dp(n)), c = xe((y) => et(y).auth.seed);
6983
6994
  zt(() => {
6984
6995
  if (c === i) return;
6985
6996
  const { can: y, cannot: v, build: h } = new Pc(Tc), { allowed: p, denied: S } = r(o);
@@ -7000,31 +7011,26 @@ function Dp({ className: e, children: t, getPermissionFor: r, defaultAbility: n
7000
7011
  return /* @__PURE__ */ he(Bo.Provider, { value: s, children: /* @__PURE__ */ he(Ge, { className: e, spin: l, showChildren: !1, children: t }) });
7001
7012
  }
7002
7013
  var Cc = /* @__PURE__ */ ((e) => (e[e.Always = 1] = "Always", e[e.Never = 2] = "Never", e[e.RedirectIfFails = 3] = "RedirectIfFails", e))(Cc || {});
7003
- function xp(e) {
7004
- const r = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), n = atob(r).split("").map((i) => "%" + ("00" + i.charCodeAt(0).toString(16)).slice(-2)).join(""), o = decodeURIComponent(n);
7005
- return JSON.parse(o);
7006
- }
7007
7014
  const Fp = () => import(
7008
7015
  /* @vite-ignore */
7009
- "./index-BuBGS-hD.js"
7016
+ "./index-CEotyCD2.js"
7010
7017
  );
7011
7018
  async function $p(e, t, r) {
7012
7019
  return (await Fp()).default(e, t, r);
7013
7020
  }
7014
7021
  const bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7015
7022
  __proto__: null,
7016
- Allowed: Jf,
7023
+ Allowed: ed,
7017
7024
  AuthResultStatus: xs,
7018
7025
  AuthService: Fs,
7019
- AuthenticationProvider: Ch,
7020
- AuthorizationProvider: Dp,
7026
+ AuthenticationProvider: Mh,
7027
+ AuthorizationProvider: xp,
7021
7028
  CreateOAuthService: $p,
7022
7029
  DummyAuthService: fl,
7023
7030
  PopupPolicy: Cc,
7024
- createPermission: Yf,
7025
- decodeJwt: xp,
7026
- useAuthentication: Qf,
7027
- useAuthorization: Kf,
7031
+ createPermission: Zf,
7032
+ useAuthentication: Kf,
7033
+ useAuthorization: Xf,
7028
7034
  useIdentity: uu
7029
7035
  }, Symbol.toStringTag, { value: "Module" }));
7030
7036
  var Mc = /* @__PURE__ */ ((e) => (e[e.Info = 1] = "Info", e[e.Error = 2] = "Error", e[e.Warning = 3] = "Warning", e[e.Success = 4] = "Success", e))(Mc || {});
@@ -8641,6 +8647,7 @@ const Em = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8641
8647
  __proto__: null,
8642
8648
  ErrType: Mc,
8643
8649
  buildQueryString: Sy,
8650
+ decodeJwt: Wf,
8644
8651
  format: zf,
8645
8652
  getReturnUrl: vy,
8646
8653
  getWindow: ii,
@@ -10969,7 +10976,7 @@ export {
10969
10976
  xs as a,
10970
10977
  vm as b,
10971
10978
  pm as c,
10972
- xp as d,
10979
+ Wf as d,
10973
10980
  Sm as e,
10974
10981
  _m as f,
10975
10982
  Em as g,