overview-components 1.0.75 → 1.0.76

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.
Files changed (78) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/_commonjsHelpers.js +4 -0
  3. package/dist/components/lit-attachments-tab.js +11 -7
  4. package/dist/components/lit-badge.js +10 -7
  5. package/dist/components/lit-case-variables-tab.js +23 -19
  6. package/dist/components/lit-chart.js +24 -21
  7. package/dist/components/lit-data-grid-tanstack.js +42 -37
  8. package/dist/components/lit-filter-modal.js +6 -2
  9. package/dist/components/lit-multiselect-item.js +7 -3
  10. package/dist/components/lit-section-tab.js +15 -11
  11. package/dist/components/lit-tabs-overview.js +9 -5
  12. package/dist/components/react-wrappers/attachments-tab.js +1 -1
  13. package/dist/components/react-wrappers/badge.js +1 -1
  14. package/dist/components/react-wrappers/button.js +3 -3
  15. package/dist/components/react-wrappers/case-variables-tab.js +3 -3
  16. package/dist/components/react-wrappers/chart.js +3 -3
  17. package/dist/components/react-wrappers/data-grid-tanstack.js +1 -1
  18. package/dist/components/react-wrappers/filter-modal.js +4 -4
  19. package/dist/components/react-wrappers/progress-bar.js +5 -5
  20. package/dist/components/react-wrappers/section-tab.js +4 -4
  21. package/dist/components/react-wrappers/tabs-overview.js +3 -3
  22. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  23. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  24. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  25. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  26. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  27. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  28. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  29. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  30. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  31. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  32. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  33. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  34. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  35. package/dist/node_modules/@lit/react/create-component.js +35 -0
  36. package/dist/node_modules/@lit/reactive-element/css-tag.js +32 -24
  37. package/dist/node_modules/@lit/reactive-element/reactive-element.js +4 -3
  38. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  39. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  40. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  41. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  42. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  43. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  44. package/dist/node_modules/lit-element/lit-element.js +51 -0
  45. package/dist/node_modules/lit-html/lit-html.js +75 -74
  46. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  47. package/dist/node_modules/luxon/src/duration.js +723 -0
  48. package/dist/node_modules/luxon/src/errors.js +40 -0
  49. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  50. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  51. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  52. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  53. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  54. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  55. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  56. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  57. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  58. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  59. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  60. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  61. package/dist/node_modules/luxon/src/info.js +180 -0
  62. package/dist/node_modules/luxon/src/interval.js +466 -0
  63. package/dist/node_modules/luxon/src/settings.js +150 -0
  64. package/dist/node_modules/luxon/src/zone.js +88 -0
  65. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  66. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  67. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  68. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  69. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  70. package/dist/shared/lit-button.js +11 -8
  71. package/dist/shared/lit-progress-bar.js +10 -7
  72. package/dist/shared/simple-tooltip.js +33 -31
  73. package/dist/shared/styles/button-shared-styles.js +6 -3
  74. package/dist/utils/custom-filters.js +8 -7
  75. package/dist/utils/date.js +6 -5
  76. package/dist/utils/getOperatorByType.js +4 -3
  77. package/dist/utils/localization.js +1 -1
  78. package/package.json +1 -1
@@ -0,0 +1,202 @@
1
+ import { signedOffset as E, parseMillis as F, parseFloating as l, parseInteger as f, untruncateYear as w, isUndefined as Y } from "./util.js";
2
+ import { weekdaysLong as v, weekdaysShort as z, monthsShort as P } from "./english.js";
3
+ import y from "../zones/fixedOffsetZone.js";
4
+ import q from "../zones/IANAZone.js";
5
+ const W = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
6
+ function x(...e) {
7
+ const t = e.reduce((n, r) => n + r.source, "");
8
+ return RegExp(`^${t}$`);
9
+ }
10
+ function m(...e) {
11
+ return (t) => e.reduce(
12
+ ([n, r, o], i) => {
13
+ const [d, s, c] = i(t, o);
14
+ return [{ ...n, ...d }, s || r, c];
15
+ },
16
+ [{}, null, 1]
17
+ ).slice(0, 2);
18
+ }
19
+ function T(e, ...t) {
20
+ if (e == null)
21
+ return [null, null];
22
+ for (const [n, r] of t) {
23
+ const o = n.exec(e);
24
+ if (o)
25
+ return r(o);
26
+ }
27
+ return [null, null];
28
+ }
29
+ function b(...e) {
30
+ return (t, n) => {
31
+ const r = {};
32
+ let o;
33
+ for (o = 0; o < e.length; o++)
34
+ r[e[o]] = f(t[n + o]);
35
+ return [r, null, n + o];
36
+ };
37
+ }
38
+ const J = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, G = `(?:${J.source}?(?:\\[(${W.source})\\])?)?`, M = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, k = RegExp(`${M.source}${G}`), h = RegExp(`(?:T${k.source})?`), H = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, _ = /(\d{4})-?W(\d\d)(?:-?(\d))?/, L = /(\d{4})-?(\d{3})/, U = b("weekYear", "weekNumber", "weekDay"), B = b("year", "ordinal"), Q = /(\d{4})-(\d\d)-(\d\d)/, C = RegExp(
39
+ `${M.source} ?(?:${J.source}|(${W.source}))?`
40
+ ), j = RegExp(`(?: ${C.source})?`);
41
+ function S(e, t, n) {
42
+ const r = e[t];
43
+ return Y(r) ? n : f(r);
44
+ }
45
+ function K(e, t) {
46
+ return [{
47
+ year: S(e, t),
48
+ month: S(e, t + 1, 1),
49
+ day: S(e, t + 2, 1)
50
+ }, null, t + 3];
51
+ }
52
+ function g(e, t) {
53
+ return [{
54
+ hours: S(e, t, 0),
55
+ minutes: S(e, t + 1, 0),
56
+ seconds: S(e, t + 2, 0),
57
+ milliseconds: F(e[t + 3])
58
+ }, null, t + 4];
59
+ }
60
+ function O(e, t) {
61
+ const n = !e[t] && !e[t + 1], r = E(e[t + 1], e[t + 2]), o = n ? null : y.instance(r);
62
+ return [{}, o, t + 3];
63
+ }
64
+ function p(e, t) {
65
+ const n = e[t] ? q.create(e[t]) : null;
66
+ return [{}, n, t + 1];
67
+ }
68
+ const V = RegExp(`^T?${M.source}$`), X = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
69
+ function ee(e) {
70
+ const [t, n, r, o, i, d, s, c, R] = e, A = t[0] === "-", I = c && c[0] === "-", u = (a, Z = !1) => a !== void 0 && (Z || a && A) ? -a : a;
71
+ return [
72
+ {
73
+ years: u(l(n)),
74
+ months: u(l(r)),
75
+ weeks: u(l(o)),
76
+ days: u(l(i)),
77
+ hours: u(l(d)),
78
+ minutes: u(l(s)),
79
+ seconds: u(l(c), c === "-0"),
80
+ milliseconds: u(F(R), I)
81
+ }
82
+ ];
83
+ }
84
+ const te = {
85
+ GMT: 0,
86
+ EDT: -4 * 60,
87
+ EST: -5 * 60,
88
+ CDT: -5 * 60,
89
+ CST: -6 * 60,
90
+ MDT: -6 * 60,
91
+ MST: -7 * 60,
92
+ PDT: -7 * 60,
93
+ PST: -8 * 60
94
+ };
95
+ function D(e, t, n, r, o, i, d) {
96
+ const s = {
97
+ year: t.length === 2 ? w(f(t)) : f(t),
98
+ month: P.indexOf(n) + 1,
99
+ day: f(r),
100
+ hour: f(o),
101
+ minute: f(i)
102
+ };
103
+ return d && (s.second = f(d)), e && (s.weekday = e.length > 3 ? v.indexOf(e) + 1 : z.indexOf(e) + 1), s;
104
+ }
105
+ const ne = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
106
+ function re(e) {
107
+ const [
108
+ ,
109
+ t,
110
+ n,
111
+ r,
112
+ o,
113
+ i,
114
+ d,
115
+ s,
116
+ c,
117
+ R,
118
+ A,
119
+ I
120
+ ] = e, u = D(t, o, r, n, i, d, s);
121
+ let a;
122
+ return c ? a = te[c] : R ? a = 0 : a = E(A, I), [u, new y(a)];
123
+ }
124
+ function oe(e) {
125
+ return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
126
+ }
127
+ const se = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, de = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, ie = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
128
+ function $(e) {
129
+ const [, t, n, r, o, i, d, s] = e;
130
+ return [D(t, o, r, n, i, d, s), y.utcInstance];
131
+ }
132
+ function ce(e) {
133
+ const [, t, n, r, o, i, d, s] = e;
134
+ return [D(t, s, n, r, o, i, d), y.utcInstance];
135
+ }
136
+ const ue = x(H, h), ae = x(_, h), fe = x(L, h), le = x(k), N = m(
137
+ K,
138
+ g,
139
+ O,
140
+ p
141
+ ), Se = m(
142
+ U,
143
+ g,
144
+ O,
145
+ p
146
+ ), xe = m(
147
+ B,
148
+ g,
149
+ O,
150
+ p
151
+ ), me = m(
152
+ g,
153
+ O,
154
+ p
155
+ );
156
+ function Me(e) {
157
+ return T(
158
+ e,
159
+ [ue, N],
160
+ [ae, Se],
161
+ [fe, xe],
162
+ [le, me]
163
+ );
164
+ }
165
+ function he(e) {
166
+ return T(oe(e), [ne, re]);
167
+ }
168
+ function De(e) {
169
+ return T(
170
+ e,
171
+ [se, $],
172
+ [de, $],
173
+ [ie, ce]
174
+ );
175
+ }
176
+ function $e(e) {
177
+ return T(e, [X, ee]);
178
+ }
179
+ const Te = m(g);
180
+ function Ee(e) {
181
+ return T(e, [V, Te]);
182
+ }
183
+ const ge = x(Q, j), Oe = x(C), pe = m(
184
+ g,
185
+ O,
186
+ p
187
+ );
188
+ function Fe(e) {
189
+ return T(
190
+ e,
191
+ [ge, N],
192
+ [Oe, pe]
193
+ );
194
+ }
195
+ export {
196
+ De as parseHTTPDate,
197
+ Me as parseISODate,
198
+ $e as parseISODuration,
199
+ Ee as parseISOTimeOnly,
200
+ he as parseRFC2822Date,
201
+ Fe as parseSQL
202
+ };
@@ -0,0 +1,329 @@
1
+ import { hasOwnProperty as m, isUndefined as y, parseMillis as q, signedOffset as $, untruncateYear as M } from "./util.js";
2
+ import g from "./formatter.js";
3
+ import P from "../zones/fixedOffsetZone.js";
4
+ import C from "../zones/IANAZone.js";
5
+ import O from "../datetime.js";
6
+ import { digitRegex as c, parseDigits as H } from "./digits.js";
7
+ import { ConflictingSpecificationError as N } from "../errors.js";
8
+ const z = "missing Intl.DateTimeFormat.formatToParts support";
9
+ function s(e, r = (t) => t) {
10
+ return { regex: e, deser: ([t]) => r(H(t)) };
11
+ }
12
+ const I = " ", Z = `[ ${I}]`, v = new RegExp(Z, "g");
13
+ function U(e) {
14
+ return e.replace(/\./g, "\\.?").replace(v, Z);
15
+ }
16
+ function E(e) {
17
+ return e.replace(/\./g, "").replace(v, " ").toLowerCase();
18
+ }
19
+ function l(e, r) {
20
+ return e === null ? null : {
21
+ regex: RegExp(e.map(U).join("|")),
22
+ deser: ([t]) => e.findIndex((n) => E(t) === E(n)) + r
23
+ };
24
+ }
25
+ function w(e, r) {
26
+ return { regex: e, deser: ([, t, n]) => $(t, n), groups: r };
27
+ }
28
+ function h(e) {
29
+ return { regex: e, deser: ([r]) => r };
30
+ }
31
+ function D(e) {
32
+ return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
33
+ }
34
+ function b(e, r) {
35
+ const t = c(r), n = c(r, "{2}"), a = c(r, "{3}"), u = c(r, "{4}"), o = c(r, "{6}"), i = c(r, "{1,2}"), f = c(r, "{1,3}"), S = c(r, "{1,6}"), R = c(r, "{1,9}"), k = c(r, "{2,4}"), F = c(r, "{4,6}"), T = (d) => ({ regex: RegExp(D(d.val)), deser: ([L]) => L, literal: !0 }), x = ((d) => {
36
+ if (e.literal)
37
+ return T(d);
38
+ switch (d.val) {
39
+ case "G":
40
+ return l(r.eras("short"), 0);
41
+ case "GG":
42
+ return l(r.eras("long"), 0);
43
+ case "y":
44
+ return s(S);
45
+ case "yy":
46
+ return s(k, M);
47
+ case "yyyy":
48
+ return s(u);
49
+ case "yyyyy":
50
+ return s(F);
51
+ case "yyyyyy":
52
+ return s(o);
53
+ case "M":
54
+ return s(i);
55
+ case "MM":
56
+ return s(n);
57
+ case "MMM":
58
+ return l(r.months("short", !0), 1);
59
+ case "MMMM":
60
+ return l(r.months("long", !0), 1);
61
+ case "L":
62
+ return s(i);
63
+ case "LL":
64
+ return s(n);
65
+ case "LLL":
66
+ return l(r.months("short", !1), 1);
67
+ case "LLLL":
68
+ return l(r.months("long", !1), 1);
69
+ case "d":
70
+ return s(i);
71
+ case "dd":
72
+ return s(n);
73
+ case "o":
74
+ return s(f);
75
+ case "ooo":
76
+ return s(a);
77
+ case "HH":
78
+ return s(n);
79
+ case "H":
80
+ return s(i);
81
+ case "hh":
82
+ return s(n);
83
+ case "h":
84
+ return s(i);
85
+ case "mm":
86
+ return s(n);
87
+ case "m":
88
+ return s(i);
89
+ case "q":
90
+ return s(i);
91
+ case "qq":
92
+ return s(n);
93
+ case "s":
94
+ return s(i);
95
+ case "ss":
96
+ return s(n);
97
+ case "S":
98
+ return s(f);
99
+ case "SSS":
100
+ return s(a);
101
+ case "u":
102
+ return h(R);
103
+ case "uu":
104
+ return h(i);
105
+ case "uuu":
106
+ return s(t);
107
+ case "a":
108
+ return l(r.meridiems(), 0);
109
+ case "kkkk":
110
+ return s(u);
111
+ case "kk":
112
+ return s(k, M);
113
+ case "W":
114
+ return s(i);
115
+ case "WW":
116
+ return s(n);
117
+ case "E":
118
+ case "c":
119
+ return s(t);
120
+ case "EEE":
121
+ return l(r.weekdays("short", !1), 1);
122
+ case "EEEE":
123
+ return l(r.weekdays("long", !1), 1);
124
+ case "ccc":
125
+ return l(r.weekdays("short", !0), 1);
126
+ case "cccc":
127
+ return l(r.weekdays("long", !0), 1);
128
+ case "Z":
129
+ case "ZZ":
130
+ return w(new RegExp(`([+-]${i.source})(?::(${n.source}))?`), 2);
131
+ case "ZZZ":
132
+ return w(new RegExp(`([+-]${i.source})(${n.source})?`), 2);
133
+ case "z":
134
+ return h(/[a-z_+-/]{1,256}?/i);
135
+ case " ":
136
+ return h(/[^\S\n\r]/);
137
+ default:
138
+ return T(d);
139
+ }
140
+ })(e) || {
141
+ invalidReason: z
142
+ };
143
+ return x.token = e, x;
144
+ }
145
+ const G = {
146
+ year: {
147
+ "2-digit": "yy",
148
+ numeric: "yyyyy"
149
+ },
150
+ month: {
151
+ numeric: "M",
152
+ "2-digit": "MM",
153
+ short: "MMM",
154
+ long: "MMMM"
155
+ },
156
+ day: {
157
+ numeric: "d",
158
+ "2-digit": "dd"
159
+ },
160
+ weekday: {
161
+ short: "EEE",
162
+ long: "EEEE"
163
+ },
164
+ dayperiod: "a",
165
+ dayPeriod: "a",
166
+ hour12: {
167
+ numeric: "h",
168
+ "2-digit": "hh"
169
+ },
170
+ hour24: {
171
+ numeric: "H",
172
+ "2-digit": "HH"
173
+ },
174
+ minute: {
175
+ numeric: "m",
176
+ "2-digit": "mm"
177
+ },
178
+ second: {
179
+ numeric: "s",
180
+ "2-digit": "ss"
181
+ },
182
+ timeZoneName: {
183
+ long: "ZZZZZ",
184
+ short: "ZZZ"
185
+ }
186
+ };
187
+ function W(e, r, t) {
188
+ const { type: n, value: a } = e;
189
+ if (n === "literal") {
190
+ const f = /^\s+$/.test(a);
191
+ return {
192
+ literal: !f,
193
+ val: f ? " " : a
194
+ };
195
+ }
196
+ const u = r[n];
197
+ let o = n;
198
+ n === "hour" && (r.hour12 != null ? o = r.hour12 ? "hour12" : "hour24" : r.hourCycle != null ? r.hourCycle === "h11" || r.hourCycle === "h12" ? o = "hour12" : o = "hour24" : o = t.hour12 ? "hour12" : "hour24");
199
+ let i = G[o];
200
+ if (typeof i == "object" && (i = i[u]), i)
201
+ return {
202
+ literal: !1,
203
+ val: i
204
+ };
205
+ }
206
+ function j(e) {
207
+ return [`^${e.map((t) => t.regex).reduce((t, n) => `${t}(${n.source})`, "")}$`, e];
208
+ }
209
+ function A(e, r, t) {
210
+ const n = e.match(r);
211
+ if (n) {
212
+ const a = {};
213
+ let u = 1;
214
+ for (const o in t)
215
+ if (m(t, o)) {
216
+ const i = t[o], f = i.groups ? i.groups + 1 : 1;
217
+ !i.literal && i.token && (a[i.token.val[0]] = i.deser(n.slice(u, u + f))), u += f;
218
+ }
219
+ return [n, a];
220
+ } else
221
+ return [n, {}];
222
+ }
223
+ function B(e) {
224
+ const r = (u) => {
225
+ switch (u) {
226
+ case "S":
227
+ return "millisecond";
228
+ case "s":
229
+ return "second";
230
+ case "m":
231
+ return "minute";
232
+ case "h":
233
+ case "H":
234
+ return "hour";
235
+ case "d":
236
+ return "day";
237
+ case "o":
238
+ return "ordinal";
239
+ case "L":
240
+ case "M":
241
+ return "month";
242
+ case "y":
243
+ return "year";
244
+ case "E":
245
+ case "c":
246
+ return "weekday";
247
+ case "W":
248
+ return "weekNumber";
249
+ case "k":
250
+ return "weekYear";
251
+ case "q":
252
+ return "quarter";
253
+ default:
254
+ return null;
255
+ }
256
+ };
257
+ let t = null, n;
258
+ return y(e.z) || (t = C.create(e.z)), y(e.Z) || (t || (t = new P(e.Z)), n = e.Z), y(e.q) || (e.M = (e.q - 1) * 3 + 1), y(e.h) || (e.h < 12 && e.a === 1 ? e.h += 12 : e.h === 12 && e.a === 0 && (e.h = 0)), e.G === 0 && e.y && (e.y = -e.y), y(e.u) || (e.S = q(e.u)), [Object.keys(e).reduce((u, o) => {
259
+ const i = r(o);
260
+ return i && (u[i] = e[o]), u;
261
+ }, {}), t, n];
262
+ }
263
+ let p = null;
264
+ function V() {
265
+ return p || (p = O.fromMillis(1555555555555)), p;
266
+ }
267
+ function Y(e, r) {
268
+ if (e.literal)
269
+ return e;
270
+ const t = g.macroTokenToFormatOpts(e.val), n = Q(t, r);
271
+ return n == null || n.includes(void 0) ? e : n;
272
+ }
273
+ function _(e, r) {
274
+ return Array.prototype.concat(...e.map((t) => Y(t, r)));
275
+ }
276
+ class J {
277
+ constructor(r, t) {
278
+ if (this.locale = r, this.format = t, this.tokens = _(g.parseFormat(t), r), this.units = this.tokens.map((n) => b(n, r)), this.disqualifyingUnit = this.units.find((n) => n.invalidReason), !this.disqualifyingUnit) {
279
+ const [n, a] = j(this.units);
280
+ this.regex = RegExp(n, "i"), this.handlers = a;
281
+ }
282
+ }
283
+ explainFromTokens(r) {
284
+ if (this.isValid) {
285
+ const [t, n] = A(r, this.regex, this.handlers), [a, u, o] = n ? B(n) : [null, null, void 0];
286
+ if (m(n, "a") && m(n, "H"))
287
+ throw new N(
288
+ "Can't include meridiem when specifying 24-hour format"
289
+ );
290
+ return {
291
+ input: r,
292
+ tokens: this.tokens,
293
+ regex: this.regex,
294
+ rawMatches: t,
295
+ matches: n,
296
+ result: a,
297
+ zone: u,
298
+ specificOffset: o
299
+ };
300
+ } else
301
+ return { input: r, tokens: this.tokens, invalidReason: this.invalidReason };
302
+ }
303
+ get isValid() {
304
+ return !this.disqualifyingUnit;
305
+ }
306
+ get invalidReason() {
307
+ return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;
308
+ }
309
+ }
310
+ function K(e, r, t) {
311
+ return new J(e, t).explainFromTokens(r);
312
+ }
313
+ function oe(e, r, t) {
314
+ const { result: n, zone: a, specificOffset: u, invalidReason: o } = K(e, r, t);
315
+ return [n, a, u, o];
316
+ }
317
+ function Q(e, r) {
318
+ if (!e)
319
+ return null;
320
+ const n = g.create(r, e).dtFormatter(V()), a = n.formatToParts(), u = n.resolvedOptions();
321
+ return a.map((o) => W(o, e, u));
322
+ }
323
+ export {
324
+ J as TokenParser,
325
+ _ as expandMacroTokens,
326
+ K as explainFromTokens,
327
+ Q as formatOptsToTokens,
328
+ oe as parseFromTokens
329
+ };