react-luminus-components 1.3.43 → 1.3.44

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.
@@ -1,4 +1,4 @@
1
- import { t as h, a as b, aU as J, m as U, b as $, d as j, aP as Z } from "./nivo-pie.es-DOBgqEbs.js";
1
+ import { t as h, a as b, aU as J, m as X, b as j, d as A, aP as Z } from "./nivo-pie.es-DOBgqEbs.js";
2
2
  let K = {};
3
3
  function S() {
4
4
  return K;
@@ -11,7 +11,7 @@ function x(t, e) {
11
11
  function W(t) {
12
12
  return x(t, { weekStartsOn: 1 });
13
13
  }
14
- function G(t) {
14
+ function $(t) {
15
15
  const e = h(t), n = e.getFullYear(), r = b(t, 0);
16
16
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
17
17
  const a = W(r), i = b(t, 0);
@@ -42,7 +42,7 @@ function tt(t, e) {
42
42
  return Math.round((a - i) / J);
43
43
  }
44
44
  function et(t) {
45
- const e = G(t), n = b(t, 0);
45
+ const e = $(t), n = b(t, 0);
46
46
  return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), W(n);
47
47
  }
48
48
  function nt(t) {
@@ -418,12 +418,12 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, xt = /\d+/i, vt = {
418
418
  /^n/i,
419
419
  /^d/i
420
420
  ]
421
- }, Ft = {
421
+ }, Ct = {
422
422
  narrow: /^[smtwf]/i,
423
423
  short: /^(su|mo|tu|we|th|fr|sa)/i,
424
424
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
425
425
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
426
- }, Ct = {
426
+ }, Ft = {
427
427
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
428
428
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
429
429
  }, Et = {
@@ -466,9 +466,9 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, xt = /\d+/i, vt = {
466
466
  defaultParseWidth: "any"
467
467
  }),
468
468
  day: P({
469
- matchPatterns: Ft,
469
+ matchPatterns: Ct,
470
470
  defaultMatchWidth: "wide",
471
- parsePatterns: Ct,
471
+ parsePatterns: Ft,
472
472
  defaultParseWidth: "any"
473
473
  }),
474
474
  dayPeriod: P({
@@ -493,11 +493,11 @@ function Lt(t) {
493
493
  const e = h(t);
494
494
  return tt(e, at(e)) + 1;
495
495
  }
496
- function Qt(t) {
496
+ function Rt(t) {
497
497
  const e = h(t), n = +W(e) - +et(e);
498
- return Math.round(n / U) + 1;
498
+ return Math.round(n / X) + 1;
499
499
  }
500
- function A(t, e) {
500
+ function G(t, e) {
501
501
  var m, g, M, O;
502
502
  const n = h(t), r = n.getFullYear(), a = S(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((O = (M = a.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = b(t, 0);
503
503
  s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
@@ -506,14 +506,14 @@ function A(t, e) {
506
506
  const d = x(o, e);
507
507
  return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
508
508
  }
509
- function Rt(t, e) {
509
+ function Qt(t, e) {
510
510
  var c, o, d, m;
511
- const n = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = A(t, e), i = b(t, 0);
511
+ const n = S(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = G(t, e), i = b(t, 0);
512
512
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), x(i, e);
513
513
  }
514
- function _t(t, e) {
515
- const n = h(t), r = +x(n, e) - +Rt(n, e);
516
- return Math.round(r / U) + 1;
514
+ function Ut(t, e) {
515
+ const n = h(t), r = +x(n, e) - +Qt(n, e);
516
+ return Math.round(r / X) + 1;
517
517
  }
518
518
  function u(t, e) {
519
519
  const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
@@ -582,7 +582,7 @@ const w = {
582
582
  afternoon: "afternoon",
583
583
  evening: "evening",
584
584
  night: "night"
585
- }, Q = {
585
+ }, R = {
586
586
  // Era
587
587
  G: function(t, e, n) {
588
588
  const r = t.getFullYear() > 0 ? 1 : 0;
@@ -608,7 +608,7 @@ const w = {
608
608
  },
609
609
  // Local week-numbering year
610
610
  Y: function(t, e, n, r) {
611
- const a = A(t, r), i = a > 0 ? a : 1 - a;
611
+ const a = G(t, r), i = a > 0 ? a : 1 - a;
612
612
  if (e === "YY") {
613
613
  const s = i % 100;
614
614
  return u(s, 2);
@@ -617,7 +617,7 @@ const w = {
617
617
  },
618
618
  // ISO week-numbering year
619
619
  R: function(t, e) {
620
- const n = G(t);
620
+ const n = $(t);
621
621
  return u(n, e.length);
622
622
  },
623
623
  // Extended year. This is a single number designating the year of this calendar system.
@@ -740,12 +740,12 @@ const w = {
740
740
  },
741
741
  // Local week of year
742
742
  w: function(t, e, n, r) {
743
- const a = _t(t, r);
743
+ const a = Ut(t, r);
744
744
  return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : u(a, e.length);
745
745
  },
746
746
  // ISO week of year
747
747
  I: function(t, e, n) {
748
- const r = Qt(t);
748
+ const r = Rt(t);
749
749
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
750
750
  },
751
751
  // Day of the month
@@ -1008,7 +1008,7 @@ const w = {
1008
1008
  return "Z";
1009
1009
  switch (e) {
1010
1010
  case "X":
1011
- return _(r);
1011
+ return U(r);
1012
1012
  case "XXXX":
1013
1013
  case "XX":
1014
1014
  return y(r);
@@ -1023,7 +1023,7 @@ const w = {
1023
1023
  const r = t.getTimezoneOffset();
1024
1024
  switch (e) {
1025
1025
  case "x":
1026
- return _(r);
1026
+ return U(r);
1027
1027
  case "xxxx":
1028
1028
  case "xx":
1029
1029
  return y(r);
@@ -1040,7 +1040,7 @@ const w = {
1040
1040
  case "O":
1041
1041
  case "OO":
1042
1042
  case "OOO":
1043
- return "GMT" + R(r, ":");
1043
+ return "GMT" + Q(r, ":");
1044
1044
  case "OOOO":
1045
1045
  default:
1046
1046
  return "GMT" + y(r, ":");
@@ -1053,7 +1053,7 @@ const w = {
1053
1053
  case "z":
1054
1054
  case "zz":
1055
1055
  case "zzz":
1056
- return "GMT" + R(r, ":");
1056
+ return "GMT" + Q(r, ":");
1057
1057
  case "zzzz":
1058
1058
  default:
1059
1059
  return "GMT" + y(r, ":");
@@ -1070,18 +1070,18 @@ const w = {
1070
1070
  return u(r, e.length);
1071
1071
  }
1072
1072
  };
1073
- function R(t, e = "") {
1073
+ function Q(t, e = "") {
1074
1074
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
1075
1075
  return i === 0 ? n + String(a) : n + String(a) + e + u(i, 2);
1076
1076
  }
1077
- function _(t, e) {
1077
+ function U(t, e) {
1078
1078
  return t % 60 === 0 ? (t > 0 ? "-" : "+") + u(Math.abs(t) / 60, 2) : y(t, e);
1079
1079
  }
1080
1080
  function y(t, e = "") {
1081
1081
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = u(Math.trunc(r / 60), 2), i = u(r % 60, 2);
1082
1082
  return n + a + e + i;
1083
1083
  }
1084
- const X = (t, e) => {
1084
+ const _ = (t, e) => {
1085
1085
  switch (t) {
1086
1086
  case "P":
1087
1087
  return e.date({ width: "short" });
@@ -1105,10 +1105,10 @@ const X = (t, e) => {
1105
1105
  default:
1106
1106
  return e.time({ width: "full" });
1107
1107
  }
1108
- }, Xt = (t, e) => {
1108
+ }, _t = (t, e) => {
1109
1109
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1110
1110
  if (!a)
1111
- return X(t, e);
1111
+ return _(t, e);
1112
1112
  let i;
1113
1113
  switch (r) {
1114
1114
  case "P":
@@ -1125,20 +1125,20 @@ const X = (t, e) => {
1125
1125
  i = e.dateTime({ width: "full" });
1126
1126
  break;
1127
1127
  }
1128
- return i.replace("{{date}}", X(r, e)).replace("{{time}}", B(a, e));
1129
- }, Ut = {
1128
+ return i.replace("{{date}}", _(r, e)).replace("{{time}}", B(a, e));
1129
+ }, Xt = {
1130
1130
  p: B,
1131
- P: Xt
1132
- }, $t = /^D+$/, jt = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
1133
- function At(t) {
1134
- return $t.test(t);
1131
+ P: _t
1132
+ }, jt = /^D+$/, At = /^Y+$/, $t = ["D", "DD", "YY", "YYYY"];
1133
+ function Gt(t) {
1134
+ return jt.test(t);
1135
1135
  }
1136
1136
  function Bt(t) {
1137
- return jt.test(t);
1137
+ return At.test(t);
1138
1138
  }
1139
1139
  function Vt(t, e, n) {
1140
1140
  const r = zt(t, e, n);
1141
- if (console.warn(r), Gt.includes(t)) throw new RangeError(r);
1141
+ if (console.warn(r), $t.includes(t)) throw new RangeError(r);
1142
1142
  }
1143
1143
  function zt(t, e, n) {
1144
1144
  const r = t[0] === "Y" ? "years" : "days of the month";
@@ -1146,14 +1146,14 @@ function zt(t, e, n) {
1146
1146
  }
1147
1147
  const Jt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Kt = /^'([^]*?)'?$/, te = /''/g, ee = /[a-zA-Z]/;
1148
1148
  function V(t, e, n) {
1149
- var m, g, M, O, C, E, q, H;
1150
- const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? It, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((E = (C = n == null ? void 0 : n.locale) == null ? void 0 : C.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((H = (q = r.locale) == null ? void 0 : q.options) == null ? void 0 : H.weekStartsOn) ?? 0, c = h(t);
1149
+ var m, g, M, O, F, E, q, H;
1150
+ const r = S(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? It, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((E = (F = n == null ? void 0 : n.locale) == null ? void 0 : F.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((H = (q = r.locale) == null ? void 0 : q.options) == null ? void 0 : H.weekStartsOn) ?? 0, c = h(t);
1151
1151
  if (!rt(c))
1152
1152
  throw new RangeError("Invalid time value");
1153
1153
  let o = e.match(Zt).map((l) => {
1154
1154
  const f = l[0];
1155
1155
  if (f === "p" || f === "P") {
1156
- const Y = Ut[f];
1156
+ const Y = Xt[f];
1157
1157
  return Y(l, a.formatLong);
1158
1158
  }
1159
1159
  return l;
@@ -1163,7 +1163,7 @@ function V(t, e, n) {
1163
1163
  const f = l[0];
1164
1164
  if (f === "'")
1165
1165
  return { isToken: !1, value: ne(l) };
1166
- if (Q[f])
1166
+ if (R[f])
1167
1167
  return { isToken: !0, value: l };
1168
1168
  if (f.match(ee))
1169
1169
  throw new RangeError(
@@ -1180,8 +1180,8 @@ function V(t, e, n) {
1180
1180
  return o.map((l) => {
1181
1181
  if (!l.isToken) return l.value;
1182
1182
  const f = l.value;
1183
- (!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && At(f)) && Vt(f, e, String(t));
1184
- const Y = Q[f[0]];
1183
+ (!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && Gt(f)) && Vt(f, e, String(t));
1184
+ const Y = R[f[0]];
1185
1185
  return Y(c, f, a.localize, d);
1186
1186
  }).join("");
1187
1187
  }
@@ -1189,7 +1189,7 @@ function ne(t) {
1189
1189
  const e = t.match(Kt);
1190
1190
  return e ? e[1].replace(te, "'") : t;
1191
1191
  }
1192
- function F(t, e) {
1192
+ function C(t, e) {
1193
1193
  const r = se(t);
1194
1194
  let a;
1195
1195
  if (r.date) {
@@ -1269,7 +1269,7 @@ function ce(t) {
1269
1269
  const e = t.match(ae);
1270
1270
  if (!e) return NaN;
1271
1271
  const n = N(e[1]), r = N(e[2]), a = N(e[3]);
1272
- return we(n, r, a) ? n * $ + r * j + a * 1e3 : NaN;
1272
+ return we(n, r, a) ? n * j + r * A + a * 1e3 : NaN;
1273
1273
  }
1274
1274
  function N(t) {
1275
1275
  return t && parseFloat(t.replace(",", ".")) || 0;
@@ -1279,7 +1279,7 @@ function de(t) {
1279
1279
  const e = t.match(ie);
1280
1280
  if (!e) return 0;
1281
1281
  const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
1282
- return ye(r, a) ? n * (r * $ + a * j) : NaN;
1282
+ return ye(r, a) ? n * (r * j + a * A) : NaN;
1283
1283
  }
1284
1284
  function fe(t, e, n) {
1285
1285
  const r = /* @__PURE__ */ new Date(0);
@@ -1307,29 +1307,29 @@ function ye(t, e) {
1307
1307
  return e >= 0 && e <= 59;
1308
1308
  }
1309
1309
  function Te(t) {
1310
- return t == null ? "" : V(F(t), "dd.MM.yyyy");
1310
+ return t == null ? "" : V(C(t), "dd.MM.yyyy");
1311
1311
  }
1312
1312
  function be(t) {
1313
1313
  return (t == null ? void 0 : t.toString().split("T")[0]) ?? "";
1314
1314
  }
1315
1315
  function Pe(t) {
1316
- return t == null ? "" : V(F(t), "dd.MM.yyyy HH:mm");
1316
+ return t == null ? "" : V(C(t), "dd.MM.yyyy HH:mm");
1317
1317
  }
1318
1318
  function ke(t) {
1319
1319
  return t && t.charAt(0).toUpperCase() + t.slice(1);
1320
1320
  }
1321
- const xe = (t, e) => Z(" ", t ? `${t},` : void 0, e), ve = (t, e) => `${e}${t != null ? ` (${t})` : ""}`, We = (t, e) => `[${t ?? ""}] ${e ?? ""}`, Se = (t) => {
1322
- const e = F(t);
1321
+ const xe = (t, e) => Z(" ", t ? `${t},` : void 0, e), ve = (t, e) => `${e}${t != null ? ` (${t})` : ""}`, We = (t, e) => `[${t ?? ""}] ${e ?? ""}`, Se = (t) => decodeURIComponent(atob(t).split("").map((e) => "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2)).join("")), Ye = (t) => {
1322
+ const e = C(t);
1323
1323
  return !Number.isNaN(e.getTime());
1324
1324
  };
1325
- function Ye() {
1325
+ function pe() {
1326
1326
  const t = /* @__PURE__ */ new Date(), e = new Date(t);
1327
1327
  return e.setHours(24, 0, 0, 0), e.getTime() - t.getTime();
1328
1328
  }
1329
- function pe(t) {
1329
+ function Ne(t) {
1330
1330
  return t instanceof Date && !Number.isNaN(t.getTime());
1331
1331
  }
1332
- function Ne(t, e) {
1332
+ function Ce(t, e) {
1333
1333
  const n = new Date(t), r = new Date(e);
1334
1334
  return n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0), n.getTime() - r.getTime();
1335
1335
  }
@@ -1337,7 +1337,7 @@ function Fe(t, e) {
1337
1337
  const n = new Date(t), r = new Date(e);
1338
1338
  return n.getTime() - r.getTime();
1339
1339
  }
1340
- function Ce(t = Date.now(), e = Date.now()) {
1340
+ function Ee(t = Date.now(), e = Date.now()) {
1341
1341
  const n = new Date(t), r = new Date(e);
1342
1342
  n.setHours(10, 0, 0, 0), r.setHours(0, 0, 0, 0);
1343
1343
  const a = n.getTime() - r.getTime();
@@ -1351,50 +1351,51 @@ function Me(t = /* @__PURE__ */ new Date()) {
1351
1351
  const e = new Date(t);
1352
1352
  return e.setMonth(e.getMonth() + 1), e.setDate(0), e;
1353
1353
  }
1354
- function Ee(t) {
1354
+ function qe(t) {
1355
1355
  const e = /* @__PURE__ */ new Date();
1356
1356
  return e.setMonth(e.getMonth() + t), De(e);
1357
1357
  }
1358
- function qe(t) {
1358
+ function He(t) {
1359
1359
  const e = /* @__PURE__ */ new Date();
1360
1360
  return e.setMonth(e.getMonth() + t), Me(e);
1361
1361
  }
1362
- function He(t) {
1362
+ function Ie(t) {
1363
1363
  const e = t ?? (/* @__PURE__ */ new Date()).getFullYear(), n = new Date(e, 0, 1);
1364
1364
  return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n;
1365
1365
  }
1366
- function Ie(t) {
1366
+ function Le(t) {
1367
1367
  const e = t ?? (/* @__PURE__ */ new Date()).getFullYear(), n = new Date(e, 11, 31);
1368
1368
  return n.setMinutes(n.getMinutes() - n.getTimezoneOffset()), n;
1369
1369
  }
1370
- function Le(t) {
1370
+ function Re(t) {
1371
1371
  return be(t.toISOString());
1372
1372
  }
1373
1373
  export {
1374
+ Re as A,
1374
1375
  u as a,
1375
1376
  De as b,
1376
- He as c,
1377
+ Ie as c,
1377
1378
  tt as d,
1378
- Te as e,
1379
+ Se as e,
1379
1380
  V as f,
1380
1381
  L as g,
1381
- Pe as h,
1382
- Se as i,
1383
- ke as j,
1384
- xe as k,
1385
- ve as l,
1386
- Ye as m,
1387
- We as n,
1388
- pe as o,
1389
- F as p,
1382
+ Te as h,
1383
+ Ye as i,
1384
+ Pe as j,
1385
+ ke as k,
1386
+ xe as l,
1387
+ pe as m,
1388
+ ve as n,
1389
+ We as o,
1390
+ C as p,
1390
1391
  Ne as q,
1391
- Fe as r,
1392
+ Ce as r,
1392
1393
  x as s,
1393
1394
  be as t,
1394
- Ce as u,
1395
- Me as v,
1396
- Ee as w,
1395
+ Fe as u,
1396
+ Ee as v,
1397
+ Me as w,
1397
1398
  qe as x,
1398
- Ie as y,
1399
+ He as y,
1399
1400
  Le as z
1400
1401
  };