@fluid-app/fluid-cli-theme-dev 0.1.433 → 0.1.435

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 (132) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +311 -314
  2. package/dist/dist-cli-preview/account-screens.js +1 -1
  3. package/dist/dist-cli-preview/chunks/{Breadcrumb-D_SqXp7d.js → Breadcrumb-BKdVGms9.js} +1 -1
  4. package/dist/dist-cli-preview/chunks/{Combobox-Km3Vrphp.js → Combobox-CyU4gagO.js} +27 -27
  5. package/dist/dist-cli-preview/chunks/{ContactsScreen-kuRxflCD.js → ContactsScreen-nqNyMwxa.js} +370 -370
  6. package/dist/dist-cli-preview/chunks/MediaScreen-BGWqRFE4.js +8 -0
  7. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-BS6VVAvZ.js → MemberManagementProviders-D8tSqPWo.js} +6 -6
  8. package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-DMuIxGxX.js → MemberShareablesScreen-nYcxHAnv.js} +1313 -1329
  9. package/dist/dist-cli-preview/chunks/MessagingScreen-DaCvmrAU.js +50551 -0
  10. package/dist/dist-cli-preview/chunks/MobileActionSheet-DaIBkwQD.js +3884 -0
  11. package/dist/dist-cli-preview/chunks/{MySiteScreen-Ch1cOkKp.js → MySiteScreen-BYY4CFhu.js} +15 -15
  12. package/dist/dist-cli-preview/chunks/OrdersScreen-DDdLpJ-7.js +9 -0
  13. package/dist/dist-cli-preview/chunks/{OrdersScreen-DFqHUrkC.js → OrdersScreen-DkZKc0Z_.js} +7 -7
  14. package/dist/dist-cli-preview/chunks/PlaylistsScreen-F04j44L-.js +8 -0
  15. package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-DWOzWTBJ.js → PortalTenantClientProvider-D6a79po2.js} +1 -1
  16. package/dist/dist-cli-preview/chunks/{ProfileScreen-C_gqCV47.js → ProfileScreen-BPw0o_kl.js} +222 -237
  17. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DiXGHeoZ.js → SubscriptionsScreen-DuiI_9iF.js} +3 -3
  18. package/dist/dist-cli-preview/chunks/{account-screen-runtime-BjzMc3GU.js → account-screen-runtime-BYj9PrHT.js} +2326 -2358
  19. package/dist/dist-cli-preview/chunks/ar-1KIG4DjU.js +1032 -0
  20. package/dist/dist-cli-preview/chunks/{arrow-left-D62DJteK.js → arrow-left-DnjGVTam.js} +1 -1
  21. package/dist/dist-cli-preview/chunks/bg-yBy5d6ww.js +1032 -0
  22. package/dist/dist-cli-preview/chunks/bn-BDIXtBiu.js +1032 -0
  23. package/dist/dist-cli-preview/chunks/{cli-preview-c45YGC1E.js → cli-preview-C-nTMZQi.js} +10 -10
  24. package/dist/dist-cli-preview/chunks/{client.gen-DfWiOTes.js → client.gen-DO8I8bB0.js} +9 -9
  25. package/dist/dist-cli-preview/chunks/{copy-zqKnEIeM.js → copy-COLmacny.js} +1 -1
  26. package/dist/dist-cli-preview/chunks/{countries-api-adapter-DRty_8ei.js → countries-api-adapter-B2ub-v6x.js} +2 -2
  27. package/dist/dist-cli-preview/chunks/{create-card-entry-container-4VLe3B5O.js → create-card-entry-container-C7h1cYNe.js} +7380 -7374
  28. package/dist/dist-cli-preview/chunks/cs-eyeSjS66.js +1032 -0
  29. package/dist/dist-cli-preview/chunks/da-BMwLUsWZ.js +1032 -0
  30. package/dist/dist-cli-preview/chunks/de-CWgvDnNQ.js +1032 -0
  31. package/dist/dist-cli-preview/chunks/el-BhX-RBtB.js +1032 -0
  32. package/dist/dist-cli-preview/chunks/ellipsis-wdxlMcjt.js +15 -0
  33. package/dist/dist-cli-preview/chunks/es-fIpwOat4.js +1032 -0
  34. package/dist/dist-cli-preview/chunks/{eye-Ce93vUsx.js → eye-Cs-LW2s_.js} +1 -1
  35. package/dist/dist-cli-preview/chunks/fi-BI9n529u.js +1032 -0
  36. package/dist/dist-cli-preview/chunks/fr-DMDmmtDd.js +1032 -0
  37. package/dist/dist-cli-preview/chunks/he-BQxAPia2.js +1032 -0
  38. package/dist/dist-cli-preview/chunks/{hey-api-client-GUem9W6L.js → hey-api-client-C0XYGcOp.js} +1 -1
  39. package/dist/dist-cli-preview/chunks/hi--CH25zD0.js +1032 -0
  40. package/dist/dist-cli-preview/chunks/hr-vHPscpGv.js +1032 -0
  41. package/dist/dist-cli-preview/chunks/hu-BQTLt458.js +1032 -0
  42. package/dist/dist-cli-preview/chunks/id-R9lUJSOz.js +1032 -0
  43. package/dist/dist-cli-preview/chunks/{index-B_xDY7q5.js → index-C3BTHcpz.js} +249 -232
  44. package/dist/dist-cli-preview/chunks/{index-DotYg_8P.js → index-DSTWchdg.js} +2294 -2088
  45. package/dist/dist-cli-preview/chunks/index-qwhiPvOP.js +135 -0
  46. package/dist/dist-cli-preview/chunks/isAfter-CcghMy5x.js +1324 -0
  47. package/dist/dist-cli-preview/chunks/it-iN8sGAC0.js +1032 -0
  48. package/dist/dist-cli-preview/chunks/ja-BGIZaAW0.js +1032 -0
  49. package/dist/dist-cli-preview/chunks/ko-Cr6Wl_2I.js +1032 -0
  50. package/dist/dist-cli-preview/chunks/log-out-BIykSy7b.js +30 -0
  51. package/dist/dist-cli-preview/chunks/{map-pin-C_2_P4BZ.js → map-pin-Be34_dU6.js} +1 -1
  52. package/dist/dist-cli-preview/chunks/messaging-D7ENrup9.js +4 -0
  53. package/dist/dist-cli-preview/chunks/{mount-account-screen-DLu4WsoN.js → mount-account-screen-BfLjUsgR.js} +8 -8
  54. package/dist/dist-cli-preview/chunks/ms-CVPERbjz.js +1032 -0
  55. package/dist/dist-cli-preview/chunks/{navigate-account-screen-Zm16FA01.js → navigate-account-screen-CiKHtySl.js} +1 -1
  56. package/dist/dist-cli-preview/chunks/nl-38XjLPxf.js +1032 -0
  57. package/dist/dist-cli-preview/chunks/no-C9CyNben.js +1032 -0
  58. package/dist/dist-cli-preview/chunks/pause-BBpqu34U.js +41 -0
  59. package/dist/dist-cli-preview/chunks/pl-DmR9h5su.js +1032 -0
  60. package/dist/dist-cli-preview/chunks/pt-t-mbd11H.js +1032 -0
  61. package/dist/dist-cli-preview/chunks/ro-T2DyDJMM.js +1032 -0
  62. package/dist/dist-cli-preview/chunks/ru-DEgbQN8m.js +1032 -0
  63. package/dist/dist-cli-preview/chunks/{schemas-CcDaDYH8.js → schemas-EHBiwcQ2.js} +1748 -1618
  64. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-CKharc6_.js → screen-route-slug-utils-Bq-L-ohr.js} +1 -1
  65. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-DTfySPrq.js → sheet-haptics-context-DT2_eUzd.js} +1 -1
  66. package/dist/dist-cli-preview/chunks/{sidebar-CkC-f9zG.js → sidebar-C09syHYk.js} +10 -10
  67. package/dist/dist-cli-preview/chunks/sk-CFYGY_a5.js +1032 -0
  68. package/dist/dist-cli-preview/chunks/{sortable.esm-e9hcrOle.js → sortable.esm-ClljxXn3.js} +2 -2
  69. package/dist/dist-cli-preview/chunks/{store-api-context-CDtl_X71.js → store-api-context-DzwRm7gt.js} +1 -1
  70. package/dist/dist-cli-preview/chunks/sv-i61vcDan.js +1032 -0
  71. package/dist/dist-cli-preview/chunks/th-DfFRan1t.js +1032 -0
  72. package/dist/dist-cli-preview/chunks/tl-olBNOPcn.js +1032 -0
  73. package/dist/dist-cli-preview/chunks/tr-LZKZ4tKb.js +1032 -0
  74. package/dist/dist-cli-preview/chunks/trash-2-CZhp1ODr.js +17 -0
  75. package/dist/dist-cli-preview/chunks/uk-BtXttbkl.js +1032 -0
  76. package/dist/dist-cli-preview/chunks/{use-mobile-DF76-293.js → use-mobile-B7ojcHh2.js} +3 -3
  77. package/dist/dist-cli-preview/chunks/{use-optional-store-DT9WAQPd.js → use-optional-store-DJYDCvhI.js} +2 -2
  78. package/dist/dist-cli-preview/chunks/use-store-DeK8QAFv.js +400 -0
  79. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-CDXQnWw0.js → useInfiniteQuery-FHeNizQM.js} +1 -1
  80. package/dist/dist-cli-preview/chunks/{user-B-jZvwGL.js → user-ozIT6Hhj.js} +1 -1
  81. package/dist/dist-cli-preview/chunks/{users-TuK7MiQN.js → users-JoDv7hjw.js} +1 -1
  82. package/dist/dist-cli-preview/chunks/vi-BHWnhETf.js +1032 -0
  83. package/dist/dist-cli-preview/chunks/zh_CN-CTgClYOF.js +1032 -0
  84. package/dist/dist-cli-preview/chunks/zh_TW-aQ6cE6PF.js +1032 -0
  85. package/package.json +2 -2
  86. package/dist/dist-cli-preview/chunks/MediaScreen-BvJdBMeQ.js +0 -8
  87. package/dist/dist-cli-preview/chunks/MessagingScreen-BKHqT1Ej.js +0 -35760
  88. package/dist/dist-cli-preview/chunks/MobileActionSheet-CBoGiv4j.js +0 -2950
  89. package/dist/dist-cli-preview/chunks/OrdersScreen-BGgj4BZS.js +0 -9
  90. package/dist/dist-cli-preview/chunks/PlaylistsScreen-Bx1XIkZA.js +0 -8
  91. package/dist/dist-cli-preview/chunks/Select-sVTiAmsy.js +0 -952
  92. package/dist/dist-cli-preview/chunks/Textarea-D-fkMEdH.js +0 -349
  93. package/dist/dist-cli-preview/chunks/ar-2rvzIrIR.js +0 -626
  94. package/dist/dist-cli-preview/chunks/bg-BYPRLePV.js +0 -626
  95. package/dist/dist-cli-preview/chunks/bn-C0wttE43.js +0 -626
  96. package/dist/dist-cli-preview/chunks/cs-C7Irs0-j.js +0 -626
  97. package/dist/dist-cli-preview/chunks/da-80sKijLl.js +0 -626
  98. package/dist/dist-cli-preview/chunks/de-tvILU4R6.js +0 -626
  99. package/dist/dist-cli-preview/chunks/el-B3kxyML7.js +0 -626
  100. package/dist/dist-cli-preview/chunks/es-BTQqBZ3c.js +0 -626
  101. package/dist/dist-cli-preview/chunks/fi-B3aiDLBd.js +0 -626
  102. package/dist/dist-cli-preview/chunks/fr-C6aLQLnC.js +0 -626
  103. package/dist/dist-cli-preview/chunks/he-yMMGeZ3u.js +0 -626
  104. package/dist/dist-cli-preview/chunks/hi-Cnovv3v0.js +0 -626
  105. package/dist/dist-cli-preview/chunks/hr-B9M6sJu9.js +0 -626
  106. package/dist/dist-cli-preview/chunks/hu-D__s9KvX.js +0 -626
  107. package/dist/dist-cli-preview/chunks/id-CrrK_-vk.js +0 -626
  108. package/dist/dist-cli-preview/chunks/index-BF-Yok75.js +0 -341
  109. package/dist/dist-cli-preview/chunks/it-C_g-lMfy.js +0 -626
  110. package/dist/dist-cli-preview/chunks/ja-Dmdbg-it.js +0 -626
  111. package/dist/dist-cli-preview/chunks/ko-C-jyYnAw.js +0 -626
  112. package/dist/dist-cli-preview/chunks/lock-B3ps7XBv.js +0 -14
  113. package/dist/dist-cli-preview/chunks/log-out-CDzQuZ5N.js +0 -15
  114. package/dist/dist-cli-preview/chunks/messaging-BETZIbiu.js +0 -4
  115. package/dist/dist-cli-preview/chunks/ms-Bk6rBm7W.js +0 -626
  116. package/dist/dist-cli-preview/chunks/nl-Bh5tyFlK.js +0 -626
  117. package/dist/dist-cli-preview/chunks/no-BqMQtHFU.js +0 -626
  118. package/dist/dist-cli-preview/chunks/pl-B4xTBpA_.js +0 -626
  119. package/dist/dist-cli-preview/chunks/pt-Biz6F-Fo.js +0 -626
  120. package/dist/dist-cli-preview/chunks/ro-BKd4fPGi.js +0 -626
  121. package/dist/dist-cli-preview/chunks/ru-CD8HG55y.js +0 -626
  122. package/dist/dist-cli-preview/chunks/sk-5vqOdyEq.js +0 -626
  123. package/dist/dist-cli-preview/chunks/sv-D-_y-QCE.js +0 -626
  124. package/dist/dist-cli-preview/chunks/th-BHVHNGsc.js +0 -626
  125. package/dist/dist-cli-preview/chunks/tl-DdaRIJXv.js +0 -626
  126. package/dist/dist-cli-preview/chunks/tr-CP55XLFp.js +0 -626
  127. package/dist/dist-cli-preview/chunks/trash-2-C5c1weGY.js +0 -137
  128. package/dist/dist-cli-preview/chunks/uk-C5cwrSwu.js +0 -626
  129. package/dist/dist-cli-preview/chunks/use-store-DUukxuYV.js +0 -92
  130. package/dist/dist-cli-preview/chunks/vi-7y-mSoow.js +0 -626
  131. package/dist/dist-cli-preview/chunks/zh_CN-cvRqvqNw.js +0 -626
  132. package/dist/dist-cli-preview/chunks/zh_TW-_Qzm5B74.js +0 -626
@@ -0,0 +1,1324 @@
1
+ import { c as H } from "./account-screen-runtime-BYj9PrHT.js";
2
+ /**
3
+ * @license lucide-react v0.575.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const _ = [
9
+ ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
10
+ ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
11
+ ], Rt = H("lock", _), E = 6048e5, Q = 864e5, At = 6e4, Vt = 36e5, Jt = 1e3, D = Symbol.for("constructDateFrom");
12
+ function m(t, e) {
13
+ return typeof t == "function" ? t(e) : t && typeof t == "object" && D in t ? t[D](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
14
+ }
15
+ function f(t, e) {
16
+ return m(e || t, t);
17
+ }
18
+ function $t(t, e, n) {
19
+ const r = f(t, n?.in);
20
+ return isNaN(e) ? m(n?.in || t, NaN) : (e && r.setDate(r.getDate() + e), r);
21
+ }
22
+ function zt(t, e, n) {
23
+ const r = f(t, n?.in);
24
+ if (isNaN(e)) return m(t, NaN);
25
+ if (!e)
26
+ return r;
27
+ const a = r.getDate(), o = m(t, r.getTime());
28
+ o.setMonth(r.getMonth() + e + 1, 0);
29
+ const i = o.getDate();
30
+ return a >= i ? o : (r.setFullYear(
31
+ o.getFullYear(),
32
+ o.getMonth(),
33
+ a
34
+ ), r);
35
+ }
36
+ let L = {};
37
+ function O() {
38
+ return L;
39
+ }
40
+ function M(t, e) {
41
+ const n = O(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = f(t, e?.in), o = a.getDay(), i = (o < r ? 7 : 0) + o - r;
42
+ return a.setDate(a.getDate() - i), a.setHours(0, 0, 0, 0), a;
43
+ }
44
+ function P(t, e) {
45
+ return M(t, { ...e, weekStartsOn: 1 });
46
+ }
47
+ function N(t, e) {
48
+ const n = f(t, e?.in), r = n.getFullYear(), a = m(n, 0);
49
+ a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
50
+ const o = P(a), i = m(n, 0);
51
+ i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0);
52
+ const u = P(i);
53
+ return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
54
+ }
55
+ function v(t) {
56
+ const e = f(t), n = new Date(
57
+ Date.UTC(
58
+ e.getFullYear(),
59
+ e.getMonth(),
60
+ e.getDate(),
61
+ e.getHours(),
62
+ e.getMinutes(),
63
+ e.getSeconds(),
64
+ e.getMilliseconds()
65
+ )
66
+ );
67
+ return n.setUTCFullYear(e.getFullYear()), +t - +n;
68
+ }
69
+ function X(t, ...e) {
70
+ const n = m.bind(
71
+ null,
72
+ e.find((r) => typeof r == "object")
73
+ );
74
+ return e.map(n);
75
+ }
76
+ function W(t, e) {
77
+ const n = f(t, e?.in);
78
+ return n.setHours(0, 0, 0, 0), n;
79
+ }
80
+ function j(t, e, n) {
81
+ const [r, a] = X(
82
+ n?.in,
83
+ t,
84
+ e
85
+ ), o = W(r), i = W(a), u = +o - v(o), h = +i - v(i);
86
+ return Math.round((u - h) / Q);
87
+ }
88
+ function G(t, e) {
89
+ const n = N(t, e), r = m(t, 0);
90
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), P(r);
91
+ }
92
+ function B(t) {
93
+ return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
94
+ }
95
+ function I(t) {
96
+ return !(!B(t) && typeof t != "number" || isNaN(+f(t)));
97
+ }
98
+ function R(t, e) {
99
+ const n = f(t, e?.in);
100
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
101
+ }
102
+ const A = {
103
+ lessThanXSeconds: {
104
+ one: "less than a second",
105
+ other: "less than {{count}} seconds"
106
+ },
107
+ xSeconds: {
108
+ one: "1 second",
109
+ other: "{{count}} seconds"
110
+ },
111
+ halfAMinute: "half a minute",
112
+ lessThanXMinutes: {
113
+ one: "less than a minute",
114
+ other: "less than {{count}} minutes"
115
+ },
116
+ xMinutes: {
117
+ one: "1 minute",
118
+ other: "{{count}} minutes"
119
+ },
120
+ aboutXHours: {
121
+ one: "about 1 hour",
122
+ other: "about {{count}} hours"
123
+ },
124
+ xHours: {
125
+ one: "1 hour",
126
+ other: "{{count}} hours"
127
+ },
128
+ xDays: {
129
+ one: "1 day",
130
+ other: "{{count}} days"
131
+ },
132
+ aboutXWeeks: {
133
+ one: "about 1 week",
134
+ other: "about {{count}} weeks"
135
+ },
136
+ xWeeks: {
137
+ one: "1 week",
138
+ other: "{{count}} weeks"
139
+ },
140
+ aboutXMonths: {
141
+ one: "about 1 month",
142
+ other: "about {{count}} months"
143
+ },
144
+ xMonths: {
145
+ one: "1 month",
146
+ other: "{{count}} months"
147
+ },
148
+ aboutXYears: {
149
+ one: "about 1 year",
150
+ other: "about {{count}} years"
151
+ },
152
+ xYears: {
153
+ one: "1 year",
154
+ other: "{{count}} years"
155
+ },
156
+ overXYears: {
157
+ one: "over 1 year",
158
+ other: "over {{count}} years"
159
+ },
160
+ almostXYears: {
161
+ one: "almost 1 year",
162
+ other: "almost {{count}} years"
163
+ }
164
+ }, V = (t, e, n) => {
165
+ let r;
166
+ const a = A[t];
167
+ return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
168
+ };
169
+ function x(t) {
170
+ return (e = {}) => {
171
+ const n = e.width ? String(e.width) : t.defaultWidth;
172
+ return t.formats[n] || t.formats[t.defaultWidth];
173
+ };
174
+ }
175
+ const J = {
176
+ full: "EEEE, MMMM do, y",
177
+ long: "MMMM do, y",
178
+ medium: "MMM d, y",
179
+ short: "MM/dd/yyyy"
180
+ }, $ = {
181
+ full: "h:mm:ss a zzzz",
182
+ long: "h:mm:ss a z",
183
+ medium: "h:mm:ss a",
184
+ short: "h:mm a"
185
+ }, z = {
186
+ full: "{{date}} 'at' {{time}}",
187
+ long: "{{date}} 'at' {{time}}",
188
+ medium: "{{date}}, {{time}}",
189
+ short: "{{date}}, {{time}}"
190
+ }, U = {
191
+ date: x({
192
+ formats: J,
193
+ defaultWidth: "full"
194
+ }),
195
+ time: x({
196
+ formats: $,
197
+ defaultWidth: "full"
198
+ }),
199
+ dateTime: x({
200
+ formats: z,
201
+ defaultWidth: "full"
202
+ })
203
+ }, K = {
204
+ lastWeek: "'last' eeee 'at' p",
205
+ yesterday: "'yesterday at' p",
206
+ today: "'today at' p",
207
+ tomorrow: "'tomorrow at' p",
208
+ nextWeek: "eeee 'at' p",
209
+ other: "P"
210
+ }, Z = (t, e, n, r) => K[t];
211
+ function b(t) {
212
+ return (e, n) => {
213
+ const r = n?.context ? String(n.context) : "standalone";
214
+ let a;
215
+ if (r === "formatting" && t.formattingValues) {
216
+ const i = t.defaultFormattingWidth || t.defaultWidth, u = n?.width ? String(n.width) : i;
217
+ a = t.formattingValues[u] || t.formattingValues[i];
218
+ } else {
219
+ const i = t.defaultWidth, u = n?.width ? String(n.width) : t.defaultWidth;
220
+ a = t.values[u] || t.values[i];
221
+ }
222
+ const o = t.argumentCallback ? t.argumentCallback(e) : e;
223
+ return a[o];
224
+ };
225
+ }
226
+ const tt = {
227
+ narrow: ["B", "A"],
228
+ abbreviated: ["BC", "AD"],
229
+ wide: ["Before Christ", "Anno Domini"]
230
+ }, et = {
231
+ narrow: ["1", "2", "3", "4"],
232
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
233
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
234
+ }, nt = {
235
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
236
+ abbreviated: [
237
+ "Jan",
238
+ "Feb",
239
+ "Mar",
240
+ "Apr",
241
+ "May",
242
+ "Jun",
243
+ "Jul",
244
+ "Aug",
245
+ "Sep",
246
+ "Oct",
247
+ "Nov",
248
+ "Dec"
249
+ ],
250
+ wide: [
251
+ "January",
252
+ "February",
253
+ "March",
254
+ "April",
255
+ "May",
256
+ "June",
257
+ "July",
258
+ "August",
259
+ "September",
260
+ "October",
261
+ "November",
262
+ "December"
263
+ ]
264
+ }, rt = {
265
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
266
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
267
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
268
+ wide: [
269
+ "Sunday",
270
+ "Monday",
271
+ "Tuesday",
272
+ "Wednesday",
273
+ "Thursday",
274
+ "Friday",
275
+ "Saturday"
276
+ ]
277
+ }, at = {
278
+ narrow: {
279
+ am: "a",
280
+ pm: "p",
281
+ midnight: "mi",
282
+ noon: "n",
283
+ morning: "morning",
284
+ afternoon: "afternoon",
285
+ evening: "evening",
286
+ night: "night"
287
+ },
288
+ abbreviated: {
289
+ am: "AM",
290
+ pm: "PM",
291
+ midnight: "midnight",
292
+ noon: "noon",
293
+ morning: "morning",
294
+ afternoon: "afternoon",
295
+ evening: "evening",
296
+ night: "night"
297
+ },
298
+ wide: {
299
+ am: "a.m.",
300
+ pm: "p.m.",
301
+ midnight: "midnight",
302
+ noon: "noon",
303
+ morning: "morning",
304
+ afternoon: "afternoon",
305
+ evening: "evening",
306
+ night: "night"
307
+ }
308
+ }, ot = {
309
+ narrow: {
310
+ am: "a",
311
+ pm: "p",
312
+ midnight: "mi",
313
+ noon: "n",
314
+ morning: "in the morning",
315
+ afternoon: "in the afternoon",
316
+ evening: "in the evening",
317
+ night: "at night"
318
+ },
319
+ abbreviated: {
320
+ am: "AM",
321
+ pm: "PM",
322
+ midnight: "midnight",
323
+ noon: "noon",
324
+ morning: "in the morning",
325
+ afternoon: "in the afternoon",
326
+ evening: "in the evening",
327
+ night: "at night"
328
+ },
329
+ wide: {
330
+ am: "a.m.",
331
+ pm: "p.m.",
332
+ midnight: "midnight",
333
+ noon: "noon",
334
+ morning: "in the morning",
335
+ afternoon: "in the afternoon",
336
+ evening: "in the evening",
337
+ night: "at night"
338
+ }
339
+ }, it = (t, e) => {
340
+ const n = Number(t), r = n % 100;
341
+ if (r > 20 || r < 10)
342
+ switch (r % 10) {
343
+ case 1:
344
+ return n + "st";
345
+ case 2:
346
+ return n + "nd";
347
+ case 3:
348
+ return n + "rd";
349
+ }
350
+ return n + "th";
351
+ }, st = {
352
+ ordinalNumber: it,
353
+ era: b({
354
+ values: tt,
355
+ defaultWidth: "wide"
356
+ }),
357
+ quarter: b({
358
+ values: et,
359
+ defaultWidth: "wide",
360
+ argumentCallback: (t) => t - 1
361
+ }),
362
+ month: b({
363
+ values: nt,
364
+ defaultWidth: "wide"
365
+ }),
366
+ day: b({
367
+ values: rt,
368
+ defaultWidth: "wide"
369
+ }),
370
+ dayPeriod: b({
371
+ values: at,
372
+ defaultWidth: "wide",
373
+ formattingValues: ot,
374
+ defaultFormattingWidth: "wide"
375
+ })
376
+ };
377
+ function p(t) {
378
+ return (e, n = {}) => {
379
+ const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
380
+ if (!o)
381
+ return null;
382
+ const i = o[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], h = Array.isArray(u) ? ct(u, (c) => c.test(i)) : (
383
+ // [TODO] -- I challenge you to fix the type
384
+ ut(u, (c) => c.test(i))
385
+ );
386
+ let l;
387
+ l = t.valueCallback ? t.valueCallback(h) : h, l = n.valueCallback ? (
388
+ // [TODO] -- I challenge you to fix the type
389
+ n.valueCallback(l)
390
+ ) : l;
391
+ const d = e.slice(i.length);
392
+ return { value: l, rest: d };
393
+ };
394
+ }
395
+ function ut(t, e) {
396
+ for (const n in t)
397
+ if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
398
+ return n;
399
+ }
400
+ function ct(t, e) {
401
+ for (let n = 0; n < t.length; n++)
402
+ if (e(t[n]))
403
+ return n;
404
+ }
405
+ function dt(t) {
406
+ return (e, n = {}) => {
407
+ const r = e.match(t.matchPattern);
408
+ if (!r) return null;
409
+ const a = r[0], o = e.match(t.parsePattern);
410
+ if (!o) return null;
411
+ let i = t.valueCallback ? t.valueCallback(o[0]) : o[0];
412
+ i = n.valueCallback ? n.valueCallback(i) : i;
413
+ const u = e.slice(a.length);
414
+ return { value: i, rest: u };
415
+ };
416
+ }
417
+ const ft = /^(\d+)(th|st|nd|rd)?/i, ht = /\d+/i, mt = {
418
+ narrow: /^(b|a)/i,
419
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
420
+ wide: /^(before christ|before common era|anno domini|common era)/i
421
+ }, lt = {
422
+ any: [/^b/i, /^(a|c)/i]
423
+ }, gt = {
424
+ narrow: /^[1234]/i,
425
+ abbreviated: /^q[1234]/i,
426
+ wide: /^[1234](th|st|nd|rd)? quarter/i
427
+ }, wt = {
428
+ any: [/1/i, /2/i, /3/i, /4/i]
429
+ }, yt = {
430
+ narrow: /^[jfmasond]/i,
431
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
432
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
433
+ }, bt = {
434
+ narrow: [
435
+ /^j/i,
436
+ /^f/i,
437
+ /^m/i,
438
+ /^a/i,
439
+ /^m/i,
440
+ /^j/i,
441
+ /^j/i,
442
+ /^a/i,
443
+ /^s/i,
444
+ /^o/i,
445
+ /^n/i,
446
+ /^d/i
447
+ ],
448
+ any: [
449
+ /^ja/i,
450
+ /^f/i,
451
+ /^mar/i,
452
+ /^ap/i,
453
+ /^may/i,
454
+ /^jun/i,
455
+ /^jul/i,
456
+ /^au/i,
457
+ /^s/i,
458
+ /^o/i,
459
+ /^n/i,
460
+ /^d/i
461
+ ]
462
+ }, pt = {
463
+ narrow: /^[smtwf]/i,
464
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
465
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
466
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
467
+ }, Mt = {
468
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
469
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
470
+ }, Pt = {
471
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
472
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
473
+ }, Ot = {
474
+ any: {
475
+ am: /^a/i,
476
+ pm: /^p/i,
477
+ midnight: /^mi/i,
478
+ noon: /^no/i,
479
+ morning: /morning/i,
480
+ afternoon: /afternoon/i,
481
+ evening: /evening/i,
482
+ night: /night/i
483
+ }
484
+ }, kt = {
485
+ ordinalNumber: dt({
486
+ matchPattern: ft,
487
+ parsePattern: ht,
488
+ valueCallback: (t) => parseInt(t, 10)
489
+ }),
490
+ era: p({
491
+ matchPatterns: mt,
492
+ defaultMatchWidth: "wide",
493
+ parsePatterns: lt,
494
+ defaultParseWidth: "any"
495
+ }),
496
+ quarter: p({
497
+ matchPatterns: gt,
498
+ defaultMatchWidth: "wide",
499
+ parsePatterns: wt,
500
+ defaultParseWidth: "any",
501
+ valueCallback: (t) => t + 1
502
+ }),
503
+ month: p({
504
+ matchPatterns: yt,
505
+ defaultMatchWidth: "wide",
506
+ parsePatterns: bt,
507
+ defaultParseWidth: "any"
508
+ }),
509
+ day: p({
510
+ matchPatterns: pt,
511
+ defaultMatchWidth: "wide",
512
+ parsePatterns: Mt,
513
+ defaultParseWidth: "any"
514
+ }),
515
+ dayPeriod: p({
516
+ matchPatterns: Pt,
517
+ defaultMatchWidth: "any",
518
+ parsePatterns: Ot,
519
+ defaultParseWidth: "any"
520
+ })
521
+ }, xt = {
522
+ code: "en-US",
523
+ formatDistance: V,
524
+ formatLong: U,
525
+ formatRelative: Z,
526
+ localize: st,
527
+ match: kt,
528
+ options: {
529
+ weekStartsOn: 0,
530
+ firstWeekContainsDate: 1
531
+ }
532
+ };
533
+ function Dt(t, e) {
534
+ const n = f(t, e?.in);
535
+ return j(n, R(n)) + 1;
536
+ }
537
+ function vt(t, e) {
538
+ const n = f(t, e?.in), r = +P(n) - +G(n);
539
+ return Math.round(r / E) + 1;
540
+ }
541
+ function C(t, e) {
542
+ const n = f(t, e?.in), r = n.getFullYear(), a = O(), o = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, i = m(e?.in || t, 0);
543
+ i.setFullYear(r + 1, 0, o), i.setHours(0, 0, 0, 0);
544
+ const u = M(i, e), h = m(e?.in || t, 0);
545
+ h.setFullYear(r, 0, o), h.setHours(0, 0, 0, 0);
546
+ const l = M(h, e);
547
+ return +n >= +u ? r + 1 : +n >= +l ? r : r - 1;
548
+ }
549
+ function Wt(t, e) {
550
+ const n = O(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = C(t, e), o = m(e?.in || t, 0);
551
+ return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), M(o, e);
552
+ }
553
+ function St(t, e) {
554
+ const n = f(t, e?.in), r = +M(n, e) - +Wt(n, e);
555
+ return Math.round(r / E) + 1;
556
+ }
557
+ function s(t, e) {
558
+ const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
559
+ return n + r;
560
+ }
561
+ const g = {
562
+ // Year
563
+ y(t, e) {
564
+ const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
565
+ return s(e === "yy" ? r % 100 : r, e.length);
566
+ },
567
+ // Month
568
+ M(t, e) {
569
+ const n = t.getMonth();
570
+ return e === "M" ? String(n + 1) : s(n + 1, 2);
571
+ },
572
+ // Day of the month
573
+ d(t, e) {
574
+ return s(t.getDate(), e.length);
575
+ },
576
+ // AM or PM
577
+ a(t, e) {
578
+ const n = t.getHours() / 12 >= 1 ? "pm" : "am";
579
+ switch (e) {
580
+ case "a":
581
+ case "aa":
582
+ return n.toUpperCase();
583
+ case "aaa":
584
+ return n;
585
+ case "aaaaa":
586
+ return n[0];
587
+ case "aaaa":
588
+ default:
589
+ return n === "am" ? "a.m." : "p.m.";
590
+ }
591
+ },
592
+ // Hour [1-12]
593
+ h(t, e) {
594
+ return s(t.getHours() % 12 || 12, e.length);
595
+ },
596
+ // Hour [0-23]
597
+ H(t, e) {
598
+ return s(t.getHours(), e.length);
599
+ },
600
+ // Minute
601
+ m(t, e) {
602
+ return s(t.getMinutes(), e.length);
603
+ },
604
+ // Second
605
+ s(t, e) {
606
+ return s(t.getSeconds(), e.length);
607
+ },
608
+ // Fraction of second
609
+ S(t, e) {
610
+ const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
611
+ r * Math.pow(10, n - 3)
612
+ );
613
+ return s(a, e.length);
614
+ }
615
+ }, y = {
616
+ midnight: "midnight",
617
+ noon: "noon",
618
+ morning: "morning",
619
+ afternoon: "afternoon",
620
+ evening: "evening",
621
+ night: "night"
622
+ }, S = {
623
+ // Era
624
+ G: function(t, e, n) {
625
+ const r = t.getFullYear() > 0 ? 1 : 0;
626
+ switch (e) {
627
+ // AD, BC
628
+ case "G":
629
+ case "GG":
630
+ case "GGG":
631
+ return n.era(r, { width: "abbreviated" });
632
+ // A, B
633
+ case "GGGGG":
634
+ return n.era(r, { width: "narrow" });
635
+ // Anno Domini, Before Christ
636
+ case "GGGG":
637
+ default:
638
+ return n.era(r, { width: "wide" });
639
+ }
640
+ },
641
+ // Year
642
+ y: function(t, e, n) {
643
+ if (e === "yo") {
644
+ const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
645
+ return n.ordinalNumber(a, { unit: "year" });
646
+ }
647
+ return g.y(t, e);
648
+ },
649
+ // Local week-numbering year
650
+ Y: function(t, e, n, r) {
651
+ const a = C(t, r), o = a > 0 ? a : 1 - a;
652
+ if (e === "YY") {
653
+ const i = o % 100;
654
+ return s(i, 2);
655
+ }
656
+ return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : s(o, e.length);
657
+ },
658
+ // ISO week-numbering year
659
+ R: function(t, e) {
660
+ const n = N(t);
661
+ return s(n, e.length);
662
+ },
663
+ // Extended year. This is a single number designating the year of this calendar system.
664
+ // The main difference between `y` and `u` localizers are B.C. years:
665
+ // | Year | `y` | `u` |
666
+ // |------|-----|-----|
667
+ // | AC 1 | 1 | 1 |
668
+ // | BC 1 | 1 | 0 |
669
+ // | BC 2 | 2 | -1 |
670
+ // Also `yy` always returns the last two digits of a year,
671
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
672
+ u: function(t, e) {
673
+ const n = t.getFullYear();
674
+ return s(n, e.length);
675
+ },
676
+ // Quarter
677
+ Q: function(t, e, n) {
678
+ const r = Math.ceil((t.getMonth() + 1) / 3);
679
+ switch (e) {
680
+ // 1, 2, 3, 4
681
+ case "Q":
682
+ return String(r);
683
+ // 01, 02, 03, 04
684
+ case "QQ":
685
+ return s(r, 2);
686
+ // 1st, 2nd, 3rd, 4th
687
+ case "Qo":
688
+ return n.ordinalNumber(r, { unit: "quarter" });
689
+ // Q1, Q2, Q3, Q4
690
+ case "QQQ":
691
+ return n.quarter(r, {
692
+ width: "abbreviated",
693
+ context: "formatting"
694
+ });
695
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
696
+ case "QQQQQ":
697
+ return n.quarter(r, {
698
+ width: "narrow",
699
+ context: "formatting"
700
+ });
701
+ // 1st quarter, 2nd quarter, ...
702
+ case "QQQQ":
703
+ default:
704
+ return n.quarter(r, {
705
+ width: "wide",
706
+ context: "formatting"
707
+ });
708
+ }
709
+ },
710
+ // Stand-alone quarter
711
+ q: function(t, e, n) {
712
+ const r = Math.ceil((t.getMonth() + 1) / 3);
713
+ switch (e) {
714
+ // 1, 2, 3, 4
715
+ case "q":
716
+ return String(r);
717
+ // 01, 02, 03, 04
718
+ case "qq":
719
+ return s(r, 2);
720
+ // 1st, 2nd, 3rd, 4th
721
+ case "qo":
722
+ return n.ordinalNumber(r, { unit: "quarter" });
723
+ // Q1, Q2, Q3, Q4
724
+ case "qqq":
725
+ return n.quarter(r, {
726
+ width: "abbreviated",
727
+ context: "standalone"
728
+ });
729
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
730
+ case "qqqqq":
731
+ return n.quarter(r, {
732
+ width: "narrow",
733
+ context: "standalone"
734
+ });
735
+ // 1st quarter, 2nd quarter, ...
736
+ case "qqqq":
737
+ default:
738
+ return n.quarter(r, {
739
+ width: "wide",
740
+ context: "standalone"
741
+ });
742
+ }
743
+ },
744
+ // Month
745
+ M: function(t, e, n) {
746
+ const r = t.getMonth();
747
+ switch (e) {
748
+ case "M":
749
+ case "MM":
750
+ return g.M(t, e);
751
+ // 1st, 2nd, ..., 12th
752
+ case "Mo":
753
+ return n.ordinalNumber(r + 1, { unit: "month" });
754
+ // Jan, Feb, ..., Dec
755
+ case "MMM":
756
+ return n.month(r, {
757
+ width: "abbreviated",
758
+ context: "formatting"
759
+ });
760
+ // J, F, ..., D
761
+ case "MMMMM":
762
+ return n.month(r, {
763
+ width: "narrow",
764
+ context: "formatting"
765
+ });
766
+ // January, February, ..., December
767
+ case "MMMM":
768
+ default:
769
+ return n.month(r, { width: "wide", context: "formatting" });
770
+ }
771
+ },
772
+ // Stand-alone month
773
+ L: function(t, e, n) {
774
+ const r = t.getMonth();
775
+ switch (e) {
776
+ // 1, 2, ..., 12
777
+ case "L":
778
+ return String(r + 1);
779
+ // 01, 02, ..., 12
780
+ case "LL":
781
+ return s(r + 1, 2);
782
+ // 1st, 2nd, ..., 12th
783
+ case "Lo":
784
+ return n.ordinalNumber(r + 1, { unit: "month" });
785
+ // Jan, Feb, ..., Dec
786
+ case "LLL":
787
+ return n.month(r, {
788
+ width: "abbreviated",
789
+ context: "standalone"
790
+ });
791
+ // J, F, ..., D
792
+ case "LLLLL":
793
+ return n.month(r, {
794
+ width: "narrow",
795
+ context: "standalone"
796
+ });
797
+ // January, February, ..., December
798
+ case "LLLL":
799
+ default:
800
+ return n.month(r, { width: "wide", context: "standalone" });
801
+ }
802
+ },
803
+ // Local week of year
804
+ w: function(t, e, n, r) {
805
+ const a = St(t, r);
806
+ return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : s(a, e.length);
807
+ },
808
+ // ISO week of year
809
+ I: function(t, e, n) {
810
+ const r = vt(t);
811
+ return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : s(r, e.length);
812
+ },
813
+ // Day of the month
814
+ d: function(t, e, n) {
815
+ return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : g.d(t, e);
816
+ },
817
+ // Day of year
818
+ D: function(t, e, n) {
819
+ const r = Dt(t);
820
+ return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : s(r, e.length);
821
+ },
822
+ // Day of week
823
+ E: function(t, e, n) {
824
+ const r = t.getDay();
825
+ switch (e) {
826
+ // Tue
827
+ case "E":
828
+ case "EE":
829
+ case "EEE":
830
+ return n.day(r, {
831
+ width: "abbreviated",
832
+ context: "formatting"
833
+ });
834
+ // T
835
+ case "EEEEE":
836
+ return n.day(r, {
837
+ width: "narrow",
838
+ context: "formatting"
839
+ });
840
+ // Tu
841
+ case "EEEEEE":
842
+ return n.day(r, {
843
+ width: "short",
844
+ context: "formatting"
845
+ });
846
+ // Tuesday
847
+ case "EEEE":
848
+ default:
849
+ return n.day(r, {
850
+ width: "wide",
851
+ context: "formatting"
852
+ });
853
+ }
854
+ },
855
+ // Local day of week
856
+ e: function(t, e, n, r) {
857
+ const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
858
+ switch (e) {
859
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
860
+ case "e":
861
+ return String(o);
862
+ // Padded numerical value
863
+ case "ee":
864
+ return s(o, 2);
865
+ // 1st, 2nd, ..., 7th
866
+ case "eo":
867
+ return n.ordinalNumber(o, { unit: "day" });
868
+ case "eee":
869
+ return n.day(a, {
870
+ width: "abbreviated",
871
+ context: "formatting"
872
+ });
873
+ // T
874
+ case "eeeee":
875
+ return n.day(a, {
876
+ width: "narrow",
877
+ context: "formatting"
878
+ });
879
+ // Tu
880
+ case "eeeeee":
881
+ return n.day(a, {
882
+ width: "short",
883
+ context: "formatting"
884
+ });
885
+ // Tuesday
886
+ case "eeee":
887
+ default:
888
+ return n.day(a, {
889
+ width: "wide",
890
+ context: "formatting"
891
+ });
892
+ }
893
+ },
894
+ // Stand-alone local day of week
895
+ c: function(t, e, n, r) {
896
+ const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
897
+ switch (e) {
898
+ // Numerical value (same as in `e`)
899
+ case "c":
900
+ return String(o);
901
+ // Padded numerical value
902
+ case "cc":
903
+ return s(o, e.length);
904
+ // 1st, 2nd, ..., 7th
905
+ case "co":
906
+ return n.ordinalNumber(o, { unit: "day" });
907
+ case "ccc":
908
+ return n.day(a, {
909
+ width: "abbreviated",
910
+ context: "standalone"
911
+ });
912
+ // T
913
+ case "ccccc":
914
+ return n.day(a, {
915
+ width: "narrow",
916
+ context: "standalone"
917
+ });
918
+ // Tu
919
+ case "cccccc":
920
+ return n.day(a, {
921
+ width: "short",
922
+ context: "standalone"
923
+ });
924
+ // Tuesday
925
+ case "cccc":
926
+ default:
927
+ return n.day(a, {
928
+ width: "wide",
929
+ context: "standalone"
930
+ });
931
+ }
932
+ },
933
+ // ISO day of week
934
+ i: function(t, e, n) {
935
+ const r = t.getDay(), a = r === 0 ? 7 : r;
936
+ switch (e) {
937
+ // 2
938
+ case "i":
939
+ return String(a);
940
+ // 02
941
+ case "ii":
942
+ return s(a, e.length);
943
+ // 2nd
944
+ case "io":
945
+ return n.ordinalNumber(a, { unit: "day" });
946
+ // Tue
947
+ case "iii":
948
+ return n.day(r, {
949
+ width: "abbreviated",
950
+ context: "formatting"
951
+ });
952
+ // T
953
+ case "iiiii":
954
+ return n.day(r, {
955
+ width: "narrow",
956
+ context: "formatting"
957
+ });
958
+ // Tu
959
+ case "iiiiii":
960
+ return n.day(r, {
961
+ width: "short",
962
+ context: "formatting"
963
+ });
964
+ // Tuesday
965
+ case "iiii":
966
+ default:
967
+ return n.day(r, {
968
+ width: "wide",
969
+ context: "formatting"
970
+ });
971
+ }
972
+ },
973
+ // AM or PM
974
+ a: function(t, e, n) {
975
+ const a = t.getHours() / 12 >= 1 ? "pm" : "am";
976
+ switch (e) {
977
+ case "a":
978
+ case "aa":
979
+ return n.dayPeriod(a, {
980
+ width: "abbreviated",
981
+ context: "formatting"
982
+ });
983
+ case "aaa":
984
+ return n.dayPeriod(a, {
985
+ width: "abbreviated",
986
+ context: "formatting"
987
+ }).toLowerCase();
988
+ case "aaaaa":
989
+ return n.dayPeriod(a, {
990
+ width: "narrow",
991
+ context: "formatting"
992
+ });
993
+ case "aaaa":
994
+ default:
995
+ return n.dayPeriod(a, {
996
+ width: "wide",
997
+ context: "formatting"
998
+ });
999
+ }
1000
+ },
1001
+ // AM, PM, midnight, noon
1002
+ b: function(t, e, n) {
1003
+ const r = t.getHours();
1004
+ let a;
1005
+ switch (r === 12 ? a = y.noon : r === 0 ? a = y.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
1006
+ case "b":
1007
+ case "bb":
1008
+ return n.dayPeriod(a, {
1009
+ width: "abbreviated",
1010
+ context: "formatting"
1011
+ });
1012
+ case "bbb":
1013
+ return n.dayPeriod(a, {
1014
+ width: "abbreviated",
1015
+ context: "formatting"
1016
+ }).toLowerCase();
1017
+ case "bbbbb":
1018
+ return n.dayPeriod(a, {
1019
+ width: "narrow",
1020
+ context: "formatting"
1021
+ });
1022
+ case "bbbb":
1023
+ default:
1024
+ return n.dayPeriod(a, {
1025
+ width: "wide",
1026
+ context: "formatting"
1027
+ });
1028
+ }
1029
+ },
1030
+ // in the morning, in the afternoon, in the evening, at night
1031
+ B: function(t, e, n) {
1032
+ const r = t.getHours();
1033
+ let a;
1034
+ switch (r >= 17 ? a = y.evening : r >= 12 ? a = y.afternoon : r >= 4 ? a = y.morning : a = y.night, e) {
1035
+ case "B":
1036
+ case "BB":
1037
+ case "BBB":
1038
+ return n.dayPeriod(a, {
1039
+ width: "abbreviated",
1040
+ context: "formatting"
1041
+ });
1042
+ case "BBBBB":
1043
+ return n.dayPeriod(a, {
1044
+ width: "narrow",
1045
+ context: "formatting"
1046
+ });
1047
+ case "BBBB":
1048
+ default:
1049
+ return n.dayPeriod(a, {
1050
+ width: "wide",
1051
+ context: "formatting"
1052
+ });
1053
+ }
1054
+ },
1055
+ // Hour [1-12]
1056
+ h: function(t, e, n) {
1057
+ if (e === "ho") {
1058
+ let r = t.getHours() % 12;
1059
+ return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1060
+ }
1061
+ return g.h(t, e);
1062
+ },
1063
+ // Hour [0-23]
1064
+ H: function(t, e, n) {
1065
+ return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : g.H(t, e);
1066
+ },
1067
+ // Hour [0-11]
1068
+ K: function(t, e, n) {
1069
+ const r = t.getHours() % 12;
1070
+ return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : s(r, e.length);
1071
+ },
1072
+ // Hour [1-24]
1073
+ k: function(t, e, n) {
1074
+ let r = t.getHours();
1075
+ return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : s(r, e.length);
1076
+ },
1077
+ // Minute
1078
+ m: function(t, e, n) {
1079
+ return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : g.m(t, e);
1080
+ },
1081
+ // Second
1082
+ s: function(t, e, n) {
1083
+ return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : g.s(t, e);
1084
+ },
1085
+ // Fraction of second
1086
+ S: function(t, e) {
1087
+ return g.S(t, e);
1088
+ },
1089
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1090
+ X: function(t, e, n) {
1091
+ const r = t.getTimezoneOffset();
1092
+ if (r === 0)
1093
+ return "Z";
1094
+ switch (e) {
1095
+ // Hours and optional minutes
1096
+ case "X":
1097
+ return T(r);
1098
+ // Hours, minutes and optional seconds without `:` delimiter
1099
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1100
+ // so this token always has the same output as `XX`
1101
+ case "XXXX":
1102
+ case "XX":
1103
+ return w(r);
1104
+ // Hours, minutes and optional seconds with `:` delimiter
1105
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1106
+ // so this token always has the same output as `XXX`
1107
+ case "XXXXX":
1108
+ case "XXX":
1109
+ // Hours and minutes with `:` delimiter
1110
+ default:
1111
+ return w(r, ":");
1112
+ }
1113
+ },
1114
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1115
+ x: function(t, e, n) {
1116
+ const r = t.getTimezoneOffset();
1117
+ switch (e) {
1118
+ // Hours and optional minutes
1119
+ case "x":
1120
+ return T(r);
1121
+ // Hours, minutes and optional seconds without `:` delimiter
1122
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1123
+ // so this token always has the same output as `xx`
1124
+ case "xxxx":
1125
+ case "xx":
1126
+ return w(r);
1127
+ // Hours, minutes and optional seconds with `:` delimiter
1128
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1129
+ // so this token always has the same output as `xxx`
1130
+ case "xxxxx":
1131
+ case "xxx":
1132
+ // Hours and minutes with `:` delimiter
1133
+ default:
1134
+ return w(r, ":");
1135
+ }
1136
+ },
1137
+ // Timezone (GMT)
1138
+ O: function(t, e, n) {
1139
+ const r = t.getTimezoneOffset();
1140
+ switch (e) {
1141
+ // Short
1142
+ case "O":
1143
+ case "OO":
1144
+ case "OOO":
1145
+ return "GMT" + Y(r, ":");
1146
+ // Long
1147
+ case "OOOO":
1148
+ default:
1149
+ return "GMT" + w(r, ":");
1150
+ }
1151
+ },
1152
+ // Timezone (specific non-location)
1153
+ z: function(t, e, n) {
1154
+ const r = t.getTimezoneOffset();
1155
+ switch (e) {
1156
+ // Short
1157
+ case "z":
1158
+ case "zz":
1159
+ case "zzz":
1160
+ return "GMT" + Y(r, ":");
1161
+ // Long
1162
+ case "zzzz":
1163
+ default:
1164
+ return "GMT" + w(r, ":");
1165
+ }
1166
+ },
1167
+ // Seconds timestamp
1168
+ t: function(t, e, n) {
1169
+ const r = Math.trunc(+t / 1e3);
1170
+ return s(r, e.length);
1171
+ },
1172
+ // Milliseconds timestamp
1173
+ T: function(t, e, n) {
1174
+ return s(+t, e.length);
1175
+ }
1176
+ };
1177
+ function Y(t, e = "") {
1178
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), o = r % 60;
1179
+ return o === 0 ? n + String(a) : n + String(a) + e + s(o, 2);
1180
+ }
1181
+ function T(t, e) {
1182
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + s(Math.abs(t) / 60, 2) : w(t, e);
1183
+ }
1184
+ function w(t, e = "") {
1185
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = s(Math.trunc(r / 60), 2), o = s(r % 60, 2);
1186
+ return n + a + e + o;
1187
+ }
1188
+ const F = (t, e) => {
1189
+ switch (t) {
1190
+ case "P":
1191
+ return e.date({ width: "short" });
1192
+ case "PP":
1193
+ return e.date({ width: "medium" });
1194
+ case "PPP":
1195
+ return e.date({ width: "long" });
1196
+ case "PPPP":
1197
+ default:
1198
+ return e.date({ width: "full" });
1199
+ }
1200
+ }, q = (t, e) => {
1201
+ switch (t) {
1202
+ case "p":
1203
+ return e.time({ width: "short" });
1204
+ case "pp":
1205
+ return e.time({ width: "medium" });
1206
+ case "ppp":
1207
+ return e.time({ width: "long" });
1208
+ case "pppp":
1209
+ default:
1210
+ return e.time({ width: "full" });
1211
+ }
1212
+ }, Yt = (t, e) => {
1213
+ const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1214
+ if (!a)
1215
+ return F(t, e);
1216
+ let o;
1217
+ switch (r) {
1218
+ case "P":
1219
+ o = e.dateTime({ width: "short" });
1220
+ break;
1221
+ case "PP":
1222
+ o = e.dateTime({ width: "medium" });
1223
+ break;
1224
+ case "PPP":
1225
+ o = e.dateTime({ width: "long" });
1226
+ break;
1227
+ case "PPPP":
1228
+ default:
1229
+ o = e.dateTime({ width: "full" });
1230
+ break;
1231
+ }
1232
+ return o.replace("{{date}}", F(r, e)).replace("{{time}}", q(a, e));
1233
+ }, Tt = {
1234
+ p: q,
1235
+ P: Yt
1236
+ }, Ft = /^D+$/, Et = /^Y+$/, Nt = ["D", "DD", "YY", "YYYY"];
1237
+ function Ct(t) {
1238
+ return Ft.test(t);
1239
+ }
1240
+ function qt(t) {
1241
+ return Et.test(t);
1242
+ }
1243
+ function Ht(t, e, n) {
1244
+ const r = _t(t, e, n);
1245
+ if (console.warn(r), Nt.includes(t)) throw new RangeError(r);
1246
+ }
1247
+ function _t(t, e, n) {
1248
+ const r = t[0] === "Y" ? "years" : "days of the month";
1249
+ return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1250
+ }
1251
+ const Qt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Lt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, jt = /''/g, Gt = /[a-zA-Z]/;
1252
+ function Ut(t, e, n) {
1253
+ const r = O(), a = r.locale ?? xt, o = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, u = f(t, n?.in);
1254
+ if (!I(u))
1255
+ throw new RangeError("Invalid time value");
1256
+ let h = e.match(Lt).map((d) => {
1257
+ const c = d[0];
1258
+ if (c === "p" || c === "P") {
1259
+ const k = Tt[c];
1260
+ return k(d, a.formatLong);
1261
+ }
1262
+ return d;
1263
+ }).join("").match(Qt).map((d) => {
1264
+ if (d === "''")
1265
+ return { isToken: !1, value: "'" };
1266
+ const c = d[0];
1267
+ if (c === "'")
1268
+ return { isToken: !1, value: Bt(d) };
1269
+ if (S[c])
1270
+ return { isToken: !0, value: d };
1271
+ if (c.match(Gt))
1272
+ throw new RangeError(
1273
+ "Format string contains an unescaped latin alphabet character `" + c + "`"
1274
+ );
1275
+ return { isToken: !1, value: d };
1276
+ });
1277
+ a.localize.preprocessor && (h = a.localize.preprocessor(u, h));
1278
+ const l = {
1279
+ firstWeekContainsDate: o,
1280
+ weekStartsOn: i,
1281
+ locale: a
1282
+ };
1283
+ return h.map((d) => {
1284
+ if (!d.isToken) return d.value;
1285
+ const c = d.value;
1286
+ (qt(c) || Ct(c)) && Ht(c, e, String(t));
1287
+ const k = S[c[0]];
1288
+ return k(u, c, a.localize, l);
1289
+ }).join("");
1290
+ }
1291
+ function Bt(t) {
1292
+ const e = t.match(Xt);
1293
+ return e ? e[1].replace(jt, "'") : t;
1294
+ }
1295
+ function Kt(t, e) {
1296
+ return +f(t) > +f(e);
1297
+ }
1298
+ export {
1299
+ Rt as L,
1300
+ $t as a,
1301
+ zt as b,
1302
+ m as c,
1303
+ At as d,
1304
+ Jt as e,
1305
+ C as f,
1306
+ O as g,
1307
+ P as h,
1308
+ St as i,
1309
+ vt as j,
1310
+ v as k,
1311
+ xt as l,
1312
+ Vt as m,
1313
+ Tt as n,
1314
+ qt as o,
1315
+ Ct as p,
1316
+ Ut as q,
1317
+ Kt as r,
1318
+ M as s,
1319
+ f as t,
1320
+ X as u,
1321
+ W as v,
1322
+ Ht as w,
1323
+ j as x
1324
+ };