react-semaphor 0.1.526 → 0.1.528

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 (180) hide show
  1. package/DATA_APP_SDK.md +5 -1
  2. package/dist/analytics-protocol/index.js +1190 -296
  3. package/dist/brand-studio/index.js +15 -15
  4. package/dist/briefings/index.js +50 -49
  5. package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DUu-tCQw.js} +66 -65
  6. package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BdPceiw8.js} +68 -65
  7. package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
  8. package/dist/chunks/dashboard-BkskKMck.js +14 -0
  9. package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-Bb0RhGRC.js} +372 -359
  10. package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-loWTHPMi.js} +739 -686
  11. package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DUci_SOR.js} +10 -10
  12. package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-z9WN26w7.js} +6603 -6572
  13. package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-CGSFK9S-.js} +266 -267
  14. package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-CdXSo1pb.js} +19 -19
  15. package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
  16. package/dist/chunks/{index-CbjuruKe.js → index-CTYnXU85.js} +781 -780
  17. package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
  18. package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DhykwdZs.js} +7 -6
  19. package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BV9ywFtJ.js} +11 -11
  20. package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
  21. package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-1Mm8x8w7.js} +655 -511
  22. package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
  23. package/dist/chunks/matrix-operation-contract-Dp7kFpVk.js +1383 -0
  24. package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
  25. package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
  26. package/dist/chunks/pivot-header-presentation-CZa3556D.js +618 -0
  27. package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
  28. package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-Bqdtknud.js} +259 -204
  29. package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
  30. package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
  31. package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
  32. package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-VV0-Ro6F.js} +131 -132
  33. package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
  34. package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-IZjBSU6Z.js} +47 -26
  35. package/dist/chunks/semantic-format-BBLvfwua.js +192 -0
  36. package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-DbA4mVQL.js} +49909 -46207
  37. package/dist/chunks/{slider-BYIH4icg.js → slider-DpiJG8lv.js} +81 -82
  38. package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
  39. package/dist/chunks/switch-C4YH-W1X.js +24003 -0
  40. package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
  41. package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
  42. package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
  43. package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
  44. package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
  45. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
  46. package/dist/dashboard/index.js +1 -1
  47. package/dist/dashboard-authoring/index.js +138 -137
  48. package/dist/data-app-sdk/index.js +12 -12
  49. package/dist/data-app-sdk-adapters/index.js +23 -22
  50. package/dist/data-app-sdk-validation/index.js +27 -26
  51. package/dist/format-utils/index.js +247 -329
  52. package/dist/index.js +165 -168
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +1 -1
  56. package/dist/types/briefings/index.d.ts +3 -0
  57. package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
  58. package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
  59. package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
  60. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
  61. package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
  62. package/dist/types/components/surfboard/filter/types.d.ts +8 -29
  63. package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
  64. package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
  65. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
  66. package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
  67. package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
  68. package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
  69. package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
  70. package/dist/types/index.js +5 -5
  71. package/dist/types/lib/api/exports-api.d.ts +3 -0
  72. package/dist/types/lib/csv-download.d.ts +9 -0
  73. package/dist/types/lib/csv-encoding-options.d.ts +6 -0
  74. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
  75. package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
  76. package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
  77. package/dist/types/lib/export-utils.d.ts +17 -15
  78. package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
  79. package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
  80. package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
  81. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
  82. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
  83. package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
  84. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
  85. package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
  86. package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
  87. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
  88. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
  89. package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
  90. package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
  91. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
  92. package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
  93. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
  94. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
  95. package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
  96. package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
  97. package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
  98. package/dist/types/lib/types/common-types.d.ts +5 -0
  99. package/dist/types/lib/types/explorer-types.d.ts +14 -0
  100. package/dist/types/lib/types/semantic-types.d.ts +4 -2
  101. package/dist/types/lib/types/token-types.d.ts +0 -1
  102. package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -4
  103. package/dist/types/lib/utils/card-definition.d.ts +1 -1
  104. package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
  105. package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
  106. package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
  107. package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
  108. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +89 -0
  109. package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +32 -0
  110. package/dist/types/shared/analytics-protocol/contracts.d.ts +48 -7
  111. package/dist/types/shared/analytics-protocol/index.d.ts +15 -1
  112. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
  113. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
  114. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
  115. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +61 -6
  116. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +63 -0
  117. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
  118. package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
  119. package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
  120. package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
  121. package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
  122. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
  123. package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
  124. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  125. package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
  126. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
  127. package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
  128. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
  129. package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
  130. package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
  131. package/dist/types/shared/temporal/index.d.ts +5 -0
  132. package/dist/types/shared/temporal/relative-date.d.ts +21 -0
  133. package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
  134. package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
  135. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
  136. package/package.json +1 -17
  137. package/src/data-app-sdk/README.md +6 -3
  138. package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
  139. package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
  140. package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
  141. package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
  142. package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
  143. package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
  144. package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
  145. package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
  146. package/dist/chunks/search-CJz-QQ0Q.js +0 -24
  147. package/dist/chunks/switch-XaAACBrJ.js +0 -2234
  148. package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
  149. package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
  150. package/dist/data-app-builder/index.js +0 -3666
  151. package/dist/data-app-builder-browser-runtime/index.js +0 -8
  152. package/dist/data-app-codegen/index.js +0 -22
  153. package/dist/data-app-codegen-node/index.js +0 -1807
  154. package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
  155. package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
  156. package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
  157. package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
  158. package/dist/types/data-app-builder/constants.d.ts +0 -14
  159. package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
  160. package/dist/types/data-app-builder/index.d.ts +0 -1
  161. package/dist/types/data-app-builder/lib/api.d.ts +0 -36
  162. package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
  163. package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
  164. package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
  165. package/dist/types/data-app-builder/types.d.ts +0 -558
  166. package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
  167. package/dist/types/data-app-builder.d.ts +0 -2
  168. package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
  169. package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
  170. package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
  171. package/dist/types/data-app-codegen/index.d.ts +0 -6
  172. package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
  173. package/dist/types/data-app-codegen/node.d.ts +0 -2
  174. package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
  175. package/dist/types/data-app-codegen/validation.d.ts +0 -8
  176. package/dist/types/data-app-codegen-node.d.ts +0 -2
  177. package/dist/types/data-app-codegen.d.ts +0 -2
  178. package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
  179. package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
  180. package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
@@ -1,39 +1,43 @@
1
- import { d as se, e as K } from "./constants-DeLIHVAW.js";
2
- import { t as ee, j as te, i as ne } from "./raw-temporal-7bFbXd2a.js";
3
- import { az as oe } from "./validators-CsdOtZI6.js";
4
- import "./matrix-operation-contract-D32U2CSw.js";
1
+ import { bh as ae, B as z, F as se, ac as oe } from "./validators-CQcG0EPN.js";
2
+ import "./matrix-operation-contract-Dp7kFpVk.js";
3
+ import "zod";
4
+ import { f as ie } from "./semantic-format-BBLvfwua.js";
5
+ import { t as Q, j as V, h as ue, f as ce, r as fe, i as le } from "./raw-temporal-CdnA_OXJ.js";
6
+ import { g as de, l as me, e as he, i as ge } from "./numeric-presentation-LvnNY5Ma.js";
7
+ import { b as we, c as G, d as I, e as W } from "./constants-DNWVy8Y3.js";
8
+ import { c as ye, f as be } from "./temporal-bucket-DlFuhCnT.js";
5
9
  function h(e) {
6
10
  const t = Object.prototype.toString.call(e);
7
11
  return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
8
12
  }
9
- function x(e, t) {
13
+ function T(e, t) {
10
14
  return e instanceof Date ? new e.constructor(t) : new Date(t);
11
15
  }
12
- let ce = {};
13
- function T() {
14
- return ce;
16
+ let Me = {};
17
+ function v() {
18
+ return Me;
15
19
  }
16
20
  function S(e, t) {
17
- var o, u, d, m;
18
- const n = T(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((u = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? 0, a = h(e), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
19
- return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
21
+ var o, f, u, d;
22
+ const n = v(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, a = h(e), s = a.getDay(), i = (s < r ? 7 : 0) + s - r;
23
+ return a.setDate(a.getDate() - i), a.setHours(0, 0, 0, 0), a;
20
24
  }
21
- function F(e) {
25
+ function N(e) {
22
26
  return S(e, { weekStartsOn: 1 });
23
27
  }
24
- function re(e) {
25
- const t = h(e), n = t.getFullYear(), r = x(e, 0);
28
+ function U(e) {
29
+ const t = h(e), n = t.getFullYear(), r = T(e, 0);
26
30
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
27
- const a = F(r), i = x(e, 0);
28
- i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
29
- const s = F(i);
30
- return t.getTime() >= a.getTime() ? n + 1 : t.getTime() >= s.getTime() ? n : n - 1;
31
+ const a = N(r), s = T(e, 0);
32
+ s.setFullYear(n, 0, 4), s.setHours(0, 0, 0, 0);
33
+ const i = N(s);
34
+ return t.getTime() >= a.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
31
35
  }
32
- function H(e) {
36
+ function R(e) {
33
37
  const t = h(e);
34
38
  return t.setHours(0, 0, 0, 0), t;
35
39
  }
36
- function U(e) {
40
+ function C(e) {
37
41
  const t = h(e), n = new Date(
38
42
  Date.UTC(
39
43
  t.getFullYear(),
@@ -47,28 +51,78 @@ function U(e) {
47
51
  );
48
52
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
49
53
  }
50
- function ue(e, t) {
51
- const n = H(e), r = H(t), a = +n - U(n), i = +r - U(r);
52
- return Math.round((a - i) / se);
54
+ function Te(e, t) {
55
+ const n = R(e), r = R(t), a = +n - C(n), s = +r - C(r);
56
+ return Math.round((a - s) / we);
53
57
  }
54
- function de(e) {
55
- const t = re(e), n = x(e, 0);
56
- return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), F(n);
58
+ function De(e) {
59
+ const t = U(e), n = T(e, 0);
60
+ return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), N(n);
57
61
  }
58
- function fe(e) {
62
+ function Y(e, t) {
63
+ const n = h(e), r = h(t), a = n.getTime() - r.getTime();
64
+ return a < 0 ? -1 : a > 0 ? 1 : a;
65
+ }
66
+ function Oe(e) {
67
+ return T(e, Date.now());
68
+ }
69
+ function xe(e) {
59
70
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
60
71
  }
61
- function me(e) {
62
- if (!fe(e) && typeof e != "number")
72
+ function Pe(e) {
73
+ if (!xe(e) && typeof e != "number")
63
74
  return !1;
64
75
  const t = h(e);
65
76
  return !isNaN(Number(t));
66
77
  }
67
- function le(e) {
68
- const t = h(e), n = x(e, 0);
78
+ function ve(e, t) {
79
+ const n = h(e), r = h(t), a = n.getFullYear() - r.getFullYear(), s = n.getMonth() - r.getMonth();
80
+ return a * 12 + s;
81
+ }
82
+ function ke(e) {
83
+ return (t) => {
84
+ const r = (e ? Math[e] : Math.trunc)(t);
85
+ return r === 0 ? 0 : r;
86
+ };
87
+ }
88
+ function pe(e, t) {
89
+ return +h(e) - +h(t);
90
+ }
91
+ function Se(e) {
92
+ const t = h(e);
93
+ return t.setHours(23, 59, 59, 999), t;
94
+ }
95
+ function We(e) {
96
+ const t = h(e), n = t.getMonth();
97
+ return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
98
+ }
99
+ function Ye(e) {
100
+ const t = h(e);
101
+ return +Se(t) == +We(t);
102
+ }
103
+ function Ne(e, t) {
104
+ const n = h(e), r = h(t), a = Y(n, r), s = Math.abs(
105
+ ve(n, r)
106
+ );
107
+ let i;
108
+ if (s < 1)
109
+ i = 0;
110
+ else {
111
+ n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * s);
112
+ let o = Y(n, r) === -a;
113
+ Ye(h(e)) && s === 1 && Y(e, r) === 1 && (o = !1), i = a * (s - Number(o));
114
+ }
115
+ return i === 0 ? 0 : i;
116
+ }
117
+ function Ce(e, t, n) {
118
+ const r = pe(e, t) / 1e3;
119
+ return ke(n == null ? void 0 : n.roundingMethod)(r);
120
+ }
121
+ function Ee(e) {
122
+ const t = h(e), n = T(e, 0);
69
123
  return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
70
124
  }
71
- const he = {
125
+ const Xe = {
72
126
  lessThanXSeconds: {
73
127
  one: "less than a second",
74
128
  other: "less than {{count}} seconds"
@@ -130,77 +184,77 @@ const he = {
130
184
  one: "almost 1 year",
131
185
  other: "almost {{count}} years"
132
186
  }
133
- }, ge = (e, t, n) => {
187
+ }, Le = (e, t, n) => {
134
188
  let r;
135
- const a = he[e];
189
+ const a = Xe[e];
136
190
  return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
137
191
  };
138
- function C(e) {
192
+ function L(e) {
139
193
  return (t = {}) => {
140
194
  const n = t.width ? String(t.width) : e.defaultWidth;
141
195
  return e.formats[n] || e.formats[e.defaultWidth];
142
196
  };
143
197
  }
144
- const ye = {
198
+ const _e = {
145
199
  full: "EEEE, MMMM do, y",
146
200
  long: "MMMM do, y",
147
201
  medium: "MMM d, y",
148
202
  short: "MM/dd/yyyy"
149
- }, we = {
203
+ }, Fe = {
150
204
  full: "h:mm:ss a zzzz",
151
205
  long: "h:mm:ss a z",
152
206
  medium: "h:mm:ss a",
153
207
  short: "h:mm a"
154
- }, be = {
208
+ }, qe = {
155
209
  full: "{{date}} 'at' {{time}}",
156
210
  long: "{{date}} 'at' {{time}}",
157
211
  medium: "{{date}}, {{time}}",
158
212
  short: "{{date}}, {{time}}"
159
- }, xe = {
160
- date: C({
161
- formats: ye,
213
+ }, ze = {
214
+ date: L({
215
+ formats: _e,
162
216
  defaultWidth: "full"
163
217
  }),
164
- time: C({
165
- formats: we,
218
+ time: L({
219
+ formats: Fe,
166
220
  defaultWidth: "full"
167
221
  }),
168
- dateTime: C({
169
- formats: be,
222
+ dateTime: L({
223
+ formats: qe,
170
224
  defaultWidth: "full"
171
225
  })
172
- }, Oe = {
226
+ }, Ie = {
173
227
  lastWeek: "'last' eeee 'at' p",
174
228
  yesterday: "'yesterday at' p",
175
229
  today: "'today at' p",
176
230
  tomorrow: "'tomorrow at' p",
177
231
  nextWeek: "eeee 'at' p",
178
232
  other: "P"
179
- }, Me = (e, t, n, r) => Oe[e];
180
- function P(e) {
233
+ }, Re = (e, t, n, r) => Ie[e];
234
+ function k(e) {
181
235
  return (t, n) => {
182
236
  const r = n != null && n.context ? String(n.context) : "standalone";
183
237
  let a;
184
238
  if (r === "formatting" && e.formattingValues) {
185
- const s = e.defaultFormattingWidth || e.defaultWidth, o = n != null && n.width ? String(n.width) : s;
186
- a = e.formattingValues[o] || e.formattingValues[s];
239
+ const i = e.defaultFormattingWidth || e.defaultWidth, o = n != null && n.width ? String(n.width) : i;
240
+ a = e.formattingValues[o] || e.formattingValues[i];
187
241
  } else {
188
- const s = e.defaultWidth, o = n != null && n.width ? String(n.width) : e.defaultWidth;
189
- a = e.values[o] || e.values[s];
242
+ const i = e.defaultWidth, o = n != null && n.width ? String(n.width) : e.defaultWidth;
243
+ a = e.values[o] || e.values[i];
190
244
  }
191
- const i = e.argumentCallback ? e.argumentCallback(t) : t;
192
- return a[i];
245
+ const s = e.argumentCallback ? e.argumentCallback(t) : t;
246
+ return a[s];
193
247
  };
194
248
  }
195
- const pe = {
249
+ const Ae = {
196
250
  narrow: ["B", "A"],
197
251
  abbreviated: ["BC", "AD"],
198
252
  wide: ["Before Christ", "Anno Domini"]
199
- }, De = {
253
+ }, He = {
200
254
  narrow: ["1", "2", "3", "4"],
201
255
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
202
256
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
203
- }, Pe = {
257
+ }, je = {
204
258
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
205
259
  abbreviated: [
206
260
  "Jan",
@@ -230,7 +284,7 @@ const pe = {
230
284
  "November",
231
285
  "December"
232
286
  ]
233
- }, ve = {
287
+ }, Ze = {
234
288
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
235
289
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
236
290
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -243,7 +297,7 @@ const pe = {
243
297
  "Friday",
244
298
  "Saturday"
245
299
  ]
246
- }, Se = {
300
+ }, $e = {
247
301
  narrow: {
248
302
  am: "a",
249
303
  pm: "p",
@@ -274,7 +328,7 @@ const pe = {
274
328
  evening: "evening",
275
329
  night: "night"
276
330
  }
277
- }, Te = {
331
+ }, Be = {
278
332
  narrow: {
279
333
  am: "a",
280
334
  pm: "p",
@@ -305,7 +359,7 @@ const pe = {
305
359
  evening: "in the evening",
306
360
  night: "at night"
307
361
  }
308
- }, ke = (e, t) => {
362
+ }, Qe = (e, t) => {
309
363
  const n = Number(e), r = n % 100;
310
364
  if (r > 20 || r < 10)
311
365
  switch (r % 10) {
@@ -317,89 +371,89 @@ const pe = {
317
371
  return n + "rd";
318
372
  }
319
373
  return n + "th";
320
- }, Fe = {
321
- ordinalNumber: ke,
322
- era: P({
323
- values: pe,
374
+ }, Ve = {
375
+ ordinalNumber: Qe,
376
+ era: k({
377
+ values: Ae,
324
378
  defaultWidth: "wide"
325
379
  }),
326
- quarter: P({
327
- values: De,
380
+ quarter: k({
381
+ values: He,
328
382
  defaultWidth: "wide",
329
383
  argumentCallback: (e) => e - 1
330
384
  }),
331
- month: P({
332
- values: Pe,
385
+ month: k({
386
+ values: je,
333
387
  defaultWidth: "wide"
334
388
  }),
335
- day: P({
336
- values: ve,
389
+ day: k({
390
+ values: Ze,
337
391
  defaultWidth: "wide"
338
392
  }),
339
- dayPeriod: P({
340
- values: Se,
393
+ dayPeriod: k({
394
+ values: $e,
341
395
  defaultWidth: "wide",
342
- formattingValues: Te,
396
+ formattingValues: Be,
343
397
  defaultFormattingWidth: "wide"
344
398
  })
345
399
  };
346
- function v(e) {
400
+ function p(e) {
347
401
  return (t, n = {}) => {
348
- const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a);
349
- if (!i)
402
+ const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(a);
403
+ if (!s)
350
404
  return null;
351
- const s = i[0], o = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(o) ? Ye(o, (g) => g.test(s)) : (
405
+ const i = s[0], o = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], f = Array.isArray(o) ? Ue(o, (c) => c.test(i)) : (
352
406
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
353
- We(o, (g) => g.test(s))
407
+ Ge(o, (c) => c.test(i))
354
408
  );
355
- let d;
356
- d = e.valueCallback ? e.valueCallback(u) : u, d = n.valueCallback ? (
409
+ let u;
410
+ u = e.valueCallback ? e.valueCallback(f) : f, u = n.valueCallback ? (
357
411
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
358
- n.valueCallback(d)
359
- ) : d;
360
- const m = t.slice(s.length);
361
- return { value: d, rest: m };
412
+ n.valueCallback(u)
413
+ ) : u;
414
+ const d = t.slice(i.length);
415
+ return { value: u, rest: d };
362
416
  };
363
417
  }
364
- function We(e, t) {
418
+ function Ge(e, t) {
365
419
  for (const n in e)
366
420
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
367
421
  return n;
368
422
  }
369
- function Ye(e, t) {
423
+ function Ue(e, t) {
370
424
  for (let n = 0; n < e.length; n++)
371
425
  if (t(e[n]))
372
426
  return n;
373
427
  }
374
- function Ce(e) {
428
+ function Je(e) {
375
429
  return (t, n = {}) => {
376
430
  const r = t.match(e.matchPattern);
377
431
  if (!r) return null;
378
- const a = r[0], i = t.match(e.parsePattern);
379
- if (!i) return null;
380
- let s = e.valueCallback ? e.valueCallback(i[0]) : i[0];
381
- s = n.valueCallback ? n.valueCallback(s) : s;
432
+ const a = r[0], s = t.match(e.parsePattern);
433
+ if (!s) return null;
434
+ let i = e.valueCallback ? e.valueCallback(s[0]) : s[0];
435
+ i = n.valueCallback ? n.valueCallback(i) : i;
382
436
  const o = t.slice(a.length);
383
- return { value: s, rest: o };
437
+ return { value: i, rest: o };
384
438
  };
385
439
  }
386
- const Ee = /^(\d+)(th|st|nd|rd)?/i, Ne = /\d+/i, ze = {
440
+ const Ke = /^(\d+)(th|st|nd|rd)?/i, et = /\d+/i, tt = {
387
441
  narrow: /^(b|a)/i,
388
442
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
389
443
  wide: /^(before christ|before common era|anno domini|common era)/i
390
- }, Xe = {
444
+ }, nt = {
391
445
  any: [/^b/i, /^(a|c)/i]
392
- }, qe = {
446
+ }, rt = {
393
447
  narrow: /^[1234]/i,
394
448
  abbreviated: /^q[1234]/i,
395
449
  wide: /^[1234](th|st|nd|rd)? quarter/i
396
- }, Le = {
450
+ }, at = {
397
451
  any: [/1/i, /2/i, /3/i, /4/i]
398
- }, He = {
452
+ }, st = {
399
453
  narrow: /^[jfmasond]/i,
400
454
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
401
455
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
402
- }, Ue = {
456
+ }, ot = {
403
457
  narrow: [
404
458
  /^j/i,
405
459
  /^f/i,
@@ -428,18 +482,18 @@ const Ee = /^(\d+)(th|st|nd|rd)?/i, Ne = /\d+/i, ze = {
428
482
  /^n/i,
429
483
  /^d/i
430
484
  ]
431
- }, _e = {
485
+ }, it = {
432
486
  narrow: /^[smtwf]/i,
433
487
  short: /^(su|mo|tu|we|th|fr|sa)/i,
434
488
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
435
489
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
436
- }, je = {
490
+ }, ut = {
437
491
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
438
492
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
439
- }, Ge = {
493
+ }, ct = {
440
494
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
441
495
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
442
- }, Ie = {
496
+ }, ft = {
443
497
  any: {
444
498
  am: /^a/i,
445
499
  pm: /^p/i,
@@ -450,99 +504,99 @@ const Ee = /^(\d+)(th|st|nd|rd)?/i, Ne = /\d+/i, ze = {
450
504
  evening: /evening/i,
451
505
  night: /night/i
452
506
  }
453
- }, Qe = {
454
- ordinalNumber: Ce({
455
- matchPattern: Ee,
456
- parsePattern: Ne,
507
+ }, lt = {
508
+ ordinalNumber: Je({
509
+ matchPattern: Ke,
510
+ parsePattern: et,
457
511
  valueCallback: (e) => parseInt(e, 10)
458
512
  }),
459
- era: v({
460
- matchPatterns: ze,
513
+ era: p({
514
+ matchPatterns: tt,
461
515
  defaultMatchWidth: "wide",
462
- parsePatterns: Xe,
516
+ parsePatterns: nt,
463
517
  defaultParseWidth: "any"
464
518
  }),
465
- quarter: v({
466
- matchPatterns: qe,
519
+ quarter: p({
520
+ matchPatterns: rt,
467
521
  defaultMatchWidth: "wide",
468
- parsePatterns: Le,
522
+ parsePatterns: at,
469
523
  defaultParseWidth: "any",
470
524
  valueCallback: (e) => e + 1
471
525
  }),
472
- month: v({
473
- matchPatterns: He,
526
+ month: p({
527
+ matchPatterns: st,
474
528
  defaultMatchWidth: "wide",
475
- parsePatterns: Ue,
529
+ parsePatterns: ot,
476
530
  defaultParseWidth: "any"
477
531
  }),
478
- day: v({
479
- matchPatterns: _e,
532
+ day: p({
533
+ matchPatterns: it,
480
534
  defaultMatchWidth: "wide",
481
- parsePatterns: je,
535
+ parsePatterns: ut,
482
536
  defaultParseWidth: "any"
483
537
  }),
484
- dayPeriod: v({
485
- matchPatterns: Ge,
538
+ dayPeriod: p({
539
+ matchPatterns: ct,
486
540
  defaultMatchWidth: "any",
487
- parsePatterns: Ie,
541
+ parsePatterns: ft,
488
542
  defaultParseWidth: "any"
489
543
  })
490
- }, Re = {
544
+ }, J = {
491
545
  code: "en-US",
492
- formatDistance: ge,
493
- formatLong: xe,
494
- formatRelative: Me,
495
- localize: Fe,
496
- match: Qe,
546
+ formatDistance: Le,
547
+ formatLong: ze,
548
+ formatRelative: Re,
549
+ localize: Ve,
550
+ match: lt,
497
551
  options: {
498
552
  weekStartsOn: 0,
499
553
  firstWeekContainsDate: 1
500
554
  }
501
555
  };
502
- function Be(e) {
556
+ function dt(e) {
503
557
  const t = h(e);
504
- return ue(t, le(t)) + 1;
505
- }
506
- function Ae(e) {
507
- const t = h(e), n = +F(t) - +de(t);
508
- return Math.round(n / K) + 1;
509
- }
510
- function ae(e, t) {
511
- var m, g, p, D;
512
- const n = h(e), r = n.getFullYear(), a = T(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((g = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((D = (p = a.locale) == null ? void 0 : p.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, s = x(e, 0);
513
- s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
514
- const o = S(s, t), u = x(e, 0);
515
- u.setFullYear(r, 0, i), u.setHours(0, 0, 0, 0);
516
- const d = S(u, t);
517
- return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
518
- }
519
- function Ve(e, t) {
520
- var o, u, d, m;
521
- const n = T(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = ae(e, t), i = x(e, 0);
522
- return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), S(i, t);
523
- }
524
- function $e(e, t) {
525
- const n = h(e), r = +S(n, t) - +Ve(n, t);
526
- return Math.round(r / K) + 1;
527
- }
528
- function c(e, t) {
558
+ return Te(t, Ee(t)) + 1;
559
+ }
560
+ function mt(e) {
561
+ const t = h(e), n = +N(t) - +De(t);
562
+ return Math.round(n / G) + 1;
563
+ }
564
+ function K(e, t) {
565
+ var d, c, l, g;
566
+ const n = h(e), r = n.getFullYear(), a = v(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : c.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((g = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = T(e, 0);
567
+ i.setFullYear(r + 1, 0, s), i.setHours(0, 0, 0, 0);
568
+ const o = S(i, t), f = T(e, 0);
569
+ f.setFullYear(r, 0, s), f.setHours(0, 0, 0, 0);
570
+ const u = S(f, t);
571
+ return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
572
+ }
573
+ function ht(e, t) {
574
+ var o, f, u, d;
575
+ const n = v(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = K(e, t), s = T(e, 0);
576
+ return s.setFullYear(a, 0, r), s.setHours(0, 0, 0, 0), S(s, t);
577
+ }
578
+ function gt(e, t) {
579
+ const n = h(e), r = +S(n, t) - +ht(n, t);
580
+ return Math.round(r / G) + 1;
581
+ }
582
+ function m(e, t) {
529
583
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
530
584
  return n + r;
531
585
  }
532
- const y = {
586
+ const M = {
533
587
  // Year
534
588
  y(e, t) {
535
589
  const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
536
- return c(t === "yy" ? r % 100 : r, t.length);
590
+ return m(t === "yy" ? r % 100 : r, t.length);
537
591
  },
538
592
  // Month
539
593
  M(e, t) {
540
594
  const n = e.getMonth();
541
- return t === "M" ? String(n + 1) : c(n + 1, 2);
595
+ return t === "M" ? String(n + 1) : m(n + 1, 2);
542
596
  },
543
597
  // Day of the month
544
598
  d(e, t) {
545
- return c(e.getDate(), t.length);
599
+ return m(e.getDate(), t.length);
546
600
  },
547
601
  // AM or PM
548
602
  a(e, t) {
@@ -562,35 +616,35 @@ const y = {
562
616
  },
563
617
  // Hour [1-12]
564
618
  h(e, t) {
565
- return c(e.getHours() % 12 || 12, t.length);
619
+ return m(e.getHours() % 12 || 12, t.length);
566
620
  },
567
621
  // Hour [0-23]
568
622
  H(e, t) {
569
- return c(e.getHours(), t.length);
623
+ return m(e.getHours(), t.length);
570
624
  },
571
625
  // Minute
572
626
  m(e, t) {
573
- return c(e.getMinutes(), t.length);
627
+ return m(e.getMinutes(), t.length);
574
628
  },
575
629
  // Second
576
630
  s(e, t) {
577
- return c(e.getSeconds(), t.length);
631
+ return m(e.getSeconds(), t.length);
578
632
  },
579
633
  // Fraction of second
580
634
  S(e, t) {
581
635
  const n = t.length, r = e.getMilliseconds(), a = Math.trunc(
582
636
  r * Math.pow(10, n - 3)
583
637
  );
584
- return c(a, t.length);
638
+ return m(a, t.length);
585
639
  }
586
- }, O = {
640
+ }, x = {
587
641
  midnight: "midnight",
588
642
  noon: "noon",
589
643
  morning: "morning",
590
644
  afternoon: "afternoon",
591
645
  evening: "evening",
592
646
  night: "night"
593
- }, _ = {
647
+ }, A = {
594
648
  // Era
595
649
  G: function(e, t, n) {
596
650
  const r = e.getFullYear() > 0 ? 1 : 0;
@@ -612,21 +666,21 @@ const y = {
612
666
  const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
613
667
  return n.ordinalNumber(a, { unit: "year" });
614
668
  }
615
- return y.y(e, t);
669
+ return M.y(e, t);
616
670
  },
617
671
  // Local week-numbering year
618
672
  Y: function(e, t, n, r) {
619
- const a = ae(e, r), i = a > 0 ? a : 1 - a;
673
+ const a = K(e, r), s = a > 0 ? a : 1 - a;
620
674
  if (t === "YY") {
621
- const s = i % 100;
622
- return c(s, 2);
675
+ const i = s % 100;
676
+ return m(i, 2);
623
677
  }
624
- return t === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : c(i, t.length);
678
+ return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : m(s, t.length);
625
679
  },
626
680
  // ISO week-numbering year
627
681
  R: function(e, t) {
628
- const n = re(e);
629
- return c(n, t.length);
682
+ const n = U(e);
683
+ return m(n, t.length);
630
684
  },
631
685
  // Extended year. This is a single number designating the year of this calendar system.
632
686
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -639,7 +693,7 @@ const y = {
639
693
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
640
694
  u: function(e, t) {
641
695
  const n = e.getFullYear();
642
- return c(n, t.length);
696
+ return m(n, t.length);
643
697
  },
644
698
  // Quarter
645
699
  Q: function(e, t, n) {
@@ -648,7 +702,7 @@ const y = {
648
702
  case "Q":
649
703
  return String(r);
650
704
  case "QQ":
651
- return c(r, 2);
705
+ return m(r, 2);
652
706
  case "Qo":
653
707
  return n.ordinalNumber(r, { unit: "quarter" });
654
708
  case "QQQ":
@@ -676,7 +730,7 @@ const y = {
676
730
  case "q":
677
731
  return String(r);
678
732
  case "qq":
679
- return c(r, 2);
733
+ return m(r, 2);
680
734
  case "qo":
681
735
  return n.ordinalNumber(r, { unit: "quarter" });
682
736
  case "qqq":
@@ -703,7 +757,7 @@ const y = {
703
757
  switch (t) {
704
758
  case "M":
705
759
  case "MM":
706
- return y.M(e, t);
760
+ return M.M(e, t);
707
761
  case "Mo":
708
762
  return n.ordinalNumber(r + 1, { unit: "month" });
709
763
  case "MMM":
@@ -728,7 +782,7 @@ const y = {
728
782
  case "L":
729
783
  return String(r + 1);
730
784
  case "LL":
731
- return c(r + 1, 2);
785
+ return m(r + 1, 2);
732
786
  case "Lo":
733
787
  return n.ordinalNumber(r + 1, { unit: "month" });
734
788
  case "LLL":
@@ -748,22 +802,22 @@ const y = {
748
802
  },
749
803
  // Local week of year
750
804
  w: function(e, t, n, r) {
751
- const a = $e(e, r);
752
- return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : c(a, t.length);
805
+ const a = gt(e, r);
806
+ return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : m(a, t.length);
753
807
  },
754
808
  // ISO week of year
755
809
  I: function(e, t, n) {
756
- const r = Ae(e);
757
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : c(r, t.length);
810
+ const r = mt(e);
811
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : m(r, t.length);
758
812
  },
759
813
  // Day of the month
760
814
  d: function(e, t, n) {
761
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : y.d(e, t);
815
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : M.d(e, t);
762
816
  },
763
817
  // Day of year
764
818
  D: function(e, t, n) {
765
- const r = Be(e);
766
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : c(r, t.length);
819
+ const r = dt(e);
820
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : m(r, t.length);
767
821
  },
768
822
  // Day of week
769
823
  E: function(e, t, n) {
@@ -796,14 +850,14 @@ const y = {
796
850
  },
797
851
  // Local day of week
798
852
  e: function(e, t, n, r) {
799
- const a = e.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
853
+ const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
800
854
  switch (t) {
801
855
  case "e":
802
- return String(i);
856
+ return String(s);
803
857
  case "ee":
804
- return c(i, 2);
858
+ return m(s, 2);
805
859
  case "eo":
806
- return n.ordinalNumber(i, { unit: "day" });
860
+ return n.ordinalNumber(s, { unit: "day" });
807
861
  case "eee":
808
862
  return n.day(a, {
809
863
  width: "abbreviated",
@@ -829,14 +883,14 @@ const y = {
829
883
  },
830
884
  // Stand-alone local day of week
831
885
  c: function(e, t, n, r) {
832
- const a = e.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
886
+ const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
833
887
  switch (t) {
834
888
  case "c":
835
- return String(i);
889
+ return String(s);
836
890
  case "cc":
837
- return c(i, t.length);
891
+ return m(s, t.length);
838
892
  case "co":
839
- return n.ordinalNumber(i, { unit: "day" });
893
+ return n.ordinalNumber(s, { unit: "day" });
840
894
  case "ccc":
841
895
  return n.day(a, {
842
896
  width: "abbreviated",
@@ -867,7 +921,7 @@ const y = {
867
921
  case "i":
868
922
  return String(a);
869
923
  case "ii":
870
- return c(a, t.length);
924
+ return m(a, t.length);
871
925
  case "io":
872
926
  return n.ordinalNumber(a, { unit: "day" });
873
927
  case "iii":
@@ -925,7 +979,7 @@ const y = {
925
979
  b: function(e, t, n) {
926
980
  const r = e.getHours();
927
981
  let a;
928
- switch (r === 12 ? a = O.noon : r === 0 ? a = O.midnight : a = r / 12 >= 1 ? "pm" : "am", t) {
982
+ switch (r === 12 ? a = x.noon : r === 0 ? a = x.midnight : a = r / 12 >= 1 ? "pm" : "am", t) {
929
983
  case "b":
930
984
  case "bb":
931
985
  return n.dayPeriod(a, {
@@ -954,7 +1008,7 @@ const y = {
954
1008
  B: function(e, t, n) {
955
1009
  const r = e.getHours();
956
1010
  let a;
957
- switch (r >= 17 ? a = O.evening : r >= 12 ? a = O.afternoon : r >= 4 ? a = O.morning : a = O.night, t) {
1011
+ switch (r >= 17 ? a = x.evening : r >= 12 ? a = x.afternoon : r >= 4 ? a = x.morning : a = x.night, t) {
958
1012
  case "B":
959
1013
  case "BB":
960
1014
  case "BBB":
@@ -981,33 +1035,33 @@ const y = {
981
1035
  let r = e.getHours() % 12;
982
1036
  return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
983
1037
  }
984
- return y.h(e, t);
1038
+ return M.h(e, t);
985
1039
  },
986
1040
  // Hour [0-23]
987
1041
  H: function(e, t, n) {
988
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : y.H(e, t);
1042
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : M.H(e, t);
989
1043
  },
990
1044
  // Hour [0-11]
991
1045
  K: function(e, t, n) {
992
1046
  const r = e.getHours() % 12;
993
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, t.length);
1047
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : m(r, t.length);
994
1048
  },
995
1049
  // Hour [1-24]
996
1050
  k: function(e, t, n) {
997
1051
  let r = e.getHours();
998
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, t.length);
1052
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : m(r, t.length);
999
1053
  },
1000
1054
  // Minute
1001
1055
  m: function(e, t, n) {
1002
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : y.m(e, t);
1056
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : M.m(e, t);
1003
1057
  },
1004
1058
  // Second
1005
1059
  s: function(e, t, n) {
1006
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : y.s(e, t);
1060
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : M.s(e, t);
1007
1061
  },
1008
1062
  // Fraction of second
1009
1063
  S: function(e, t) {
1010
- return y.S(e, t);
1064
+ return M.S(e, t);
1011
1065
  },
1012
1066
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1013
1067
  X: function(e, t, n) {
@@ -1016,14 +1070,14 @@ const y = {
1016
1070
  return "Z";
1017
1071
  switch (t) {
1018
1072
  case "X":
1019
- return G(r);
1073
+ return j(r);
1020
1074
  case "XXXX":
1021
1075
  case "XX":
1022
- return b(r);
1076
+ return D(r);
1023
1077
  case "XXXXX":
1024
1078
  case "XXX":
1025
1079
  default:
1026
- return b(r, ":");
1080
+ return D(r, ":");
1027
1081
  }
1028
1082
  },
1029
1083
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1031,14 +1085,14 @@ const y = {
1031
1085
  const r = e.getTimezoneOffset();
1032
1086
  switch (t) {
1033
1087
  case "x":
1034
- return G(r);
1088
+ return j(r);
1035
1089
  case "xxxx":
1036
1090
  case "xx":
1037
- return b(r);
1091
+ return D(r);
1038
1092
  case "xxxxx":
1039
1093
  case "xxx":
1040
1094
  default:
1041
- return b(r, ":");
1095
+ return D(r, ":");
1042
1096
  }
1043
1097
  },
1044
1098
  // Timezone (GMT)
@@ -1048,10 +1102,10 @@ const y = {
1048
1102
  case "O":
1049
1103
  case "OO":
1050
1104
  case "OOO":
1051
- return "GMT" + j(r, ":");
1105
+ return "GMT" + H(r, ":");
1052
1106
  case "OOOO":
1053
1107
  default:
1054
- return "GMT" + b(r, ":");
1108
+ return "GMT" + D(r, ":");
1055
1109
  }
1056
1110
  },
1057
1111
  // Timezone (specific non-location)
@@ -1061,35 +1115,35 @@ const y = {
1061
1115
  case "z":
1062
1116
  case "zz":
1063
1117
  case "zzz":
1064
- return "GMT" + j(r, ":");
1118
+ return "GMT" + H(r, ":");
1065
1119
  case "zzzz":
1066
1120
  default:
1067
- return "GMT" + b(r, ":");
1121
+ return "GMT" + D(r, ":");
1068
1122
  }
1069
1123
  },
1070
1124
  // Seconds timestamp
1071
1125
  t: function(e, t, n) {
1072
1126
  const r = Math.trunc(e.getTime() / 1e3);
1073
- return c(r, t.length);
1127
+ return m(r, t.length);
1074
1128
  },
1075
1129
  // Milliseconds timestamp
1076
1130
  T: function(e, t, n) {
1077
1131
  const r = e.getTime();
1078
- return c(r, t.length);
1132
+ return m(r, t.length);
1079
1133
  }
1080
1134
  };
1081
- function j(e, t = "") {
1082
- const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), i = r % 60;
1083
- return i === 0 ? n + String(a) : n + String(a) + t + c(i, 2);
1135
+ function H(e, t = "") {
1136
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), s = r % 60;
1137
+ return s === 0 ? n + String(a) : n + String(a) + t + m(s, 2);
1084
1138
  }
1085
- function G(e, t) {
1086
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + c(Math.abs(e) / 60, 2) : b(e, t);
1139
+ function j(e, t) {
1140
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + m(Math.abs(e) / 60, 2) : D(e, t);
1087
1141
  }
1088
- function b(e, t = "") {
1089
- const n = e > 0 ? "-" : "+", r = Math.abs(e), a = c(Math.trunc(r / 60), 2), i = c(r % 60, 2);
1090
- return n + a + t + i;
1142
+ function D(e, t = "") {
1143
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = m(Math.trunc(r / 60), 2), s = m(r % 60, 2);
1144
+ return n + a + t + s;
1091
1145
  }
1092
- const I = (e, t) => {
1146
+ const Z = (e, t) => {
1093
1147
  switch (e) {
1094
1148
  case "P":
1095
1149
  return t.date({ width: "short" });
@@ -1101,7 +1155,7 @@ const I = (e, t) => {
1101
1155
  default:
1102
1156
  return t.date({ width: "full" });
1103
1157
  }
1104
- }, ie = (e, t) => {
1158
+ }, ee = (e, t) => {
1105
1159
  switch (e) {
1106
1160
  case "p":
1107
1161
  return t.time({ width: "short" });
@@ -1113,157 +1167,198 @@ const I = (e, t) => {
1113
1167
  default:
1114
1168
  return t.time({ width: "full" });
1115
1169
  }
1116
- }, Ze = (e, t) => {
1170
+ }, wt = (e, t) => {
1117
1171
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1118
1172
  if (!a)
1119
- return I(e, t);
1120
- let i;
1173
+ return Z(e, t);
1174
+ let s;
1121
1175
  switch (r) {
1122
1176
  case "P":
1123
- i = t.dateTime({ width: "short" });
1177
+ s = t.dateTime({ width: "short" });
1124
1178
  break;
1125
1179
  case "PP":
1126
- i = t.dateTime({ width: "medium" });
1180
+ s = t.dateTime({ width: "medium" });
1127
1181
  break;
1128
1182
  case "PPP":
1129
- i = t.dateTime({ width: "long" });
1183
+ s = t.dateTime({ width: "long" });
1130
1184
  break;
1131
1185
  case "PPPP":
1132
1186
  default:
1133
- i = t.dateTime({ width: "full" });
1187
+ s = t.dateTime({ width: "full" });
1134
1188
  break;
1135
1189
  }
1136
- return i.replace("{{date}}", I(r, t)).replace("{{time}}", ie(a, t));
1137
- }, Je = {
1138
- p: ie,
1139
- P: Ze
1140
- }, Ke = /^D+$/, et = /^Y+$/, tt = ["D", "DD", "YY", "YYYY"];
1141
- function nt(e) {
1142
- return Ke.test(e);
1143
- }
1144
- function rt(e) {
1145
- return et.test(e);
1146
- }
1147
- function at(e, t, n) {
1148
- const r = it(e, t, n);
1149
- if (console.warn(r), tt.includes(e)) throw new RangeError(r);
1150
- }
1151
- function it(e, t, n) {
1190
+ return s.replace("{{date}}", Z(r, t)).replace("{{time}}", ee(a, t));
1191
+ }, yt = {
1192
+ p: ee,
1193
+ P: wt
1194
+ }, bt = /^D+$/, Mt = /^Y+$/, Tt = ["D", "DD", "YY", "YYYY"];
1195
+ function Dt(e) {
1196
+ return bt.test(e);
1197
+ }
1198
+ function Ot(e) {
1199
+ return Mt.test(e);
1200
+ }
1201
+ function xt(e, t, n) {
1202
+ const r = Pt(e, t, n);
1203
+ if (console.warn(r), Tt.includes(e)) throw new RangeError(r);
1204
+ }
1205
+ function Pt(e, t, n) {
1152
1206
  const r = e[0] === "Y" ? "years" : "days of the month";
1153
1207
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1154
1208
  }
1155
- const st = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ot = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ct = /^'([^]*?)'?$/, ut = /''/g, dt = /[a-zA-Z]/;
1156
- function ft(e, t, n) {
1157
- var m, g, p, D, z, X, q, L;
1158
- const r = T(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Re, 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 ?? ((D = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((X = (z = n == null ? void 0 : n.locale) == null ? void 0 : z.options) == null ? void 0 : X.weekStartsOn) ?? r.weekStartsOn ?? ((L = (q = r.locale) == null ? void 0 : q.options) == null ? void 0 : L.weekStartsOn) ?? 0, o = h(e);
1159
- if (!me(o))
1209
+ const vt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, kt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pt = /^'([^]*?)'?$/, St = /''/g, Wt = /[a-zA-Z]/;
1210
+ function te(e, t, n) {
1211
+ var d, c, l, g, b, O, F, q;
1212
+ const r = v(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? J, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((c = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : c.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((O = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : O.weekStartsOn) ?? r.weekStartsOn ?? ((q = (F = r.locale) == null ? void 0 : F.options) == null ? void 0 : q.weekStartsOn) ?? 0, o = h(e);
1213
+ if (!Pe(o))
1160
1214
  throw new RangeError("Invalid time value");
1161
- let u = t.match(ot).map((l) => {
1162
- const f = l[0];
1163
- if (f === "p" || f === "P") {
1164
- const Y = Je[f];
1165
- return Y(l, a.formatLong);
1215
+ let f = t.match(kt).map((y) => {
1216
+ const w = y[0];
1217
+ if (w === "p" || w === "P") {
1218
+ const X = yt[w];
1219
+ return X(y, a.formatLong);
1166
1220
  }
1167
- return l;
1168
- }).join("").match(st).map((l) => {
1169
- if (l === "''")
1221
+ return y;
1222
+ }).join("").match(vt).map((y) => {
1223
+ if (y === "''")
1170
1224
  return { isToken: !1, value: "'" };
1171
- const f = l[0];
1172
- if (f === "'")
1173
- return { isToken: !1, value: mt(l) };
1174
- if (_[f])
1175
- return { isToken: !0, value: l };
1176
- if (f.match(dt))
1225
+ const w = y[0];
1226
+ if (w === "'")
1227
+ return { isToken: !1, value: Yt(y) };
1228
+ if (A[w])
1229
+ return { isToken: !0, value: y };
1230
+ if (w.match(Wt))
1177
1231
  throw new RangeError(
1178
- "Format string contains an unescaped latin alphabet character `" + f + "`"
1232
+ "Format string contains an unescaped latin alphabet character `" + w + "`"
1179
1233
  );
1180
- return { isToken: !1, value: l };
1234
+ return { isToken: !1, value: y };
1181
1235
  });
1182
- a.localize.preprocessor && (u = a.localize.preprocessor(o, u));
1183
- const d = {
1184
- firstWeekContainsDate: i,
1185
- weekStartsOn: s,
1236
+ a.localize.preprocessor && (f = a.localize.preprocessor(o, f));
1237
+ const u = {
1238
+ firstWeekContainsDate: s,
1239
+ weekStartsOn: i,
1186
1240
  locale: a
1187
1241
  };
1188
- return u.map((l) => {
1189
- if (!l.isToken) return l.value;
1190
- const f = l.value;
1191
- (!(n != null && n.useAdditionalWeekYearTokens) && rt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && nt(f)) && at(f, t, String(e));
1192
- const Y = _[f[0]];
1193
- return Y(o, f, a.localize, d);
1242
+ return f.map((y) => {
1243
+ if (!y.isToken) return y.value;
1244
+ const w = y.value;
1245
+ (!(n != null && n.useAdditionalWeekYearTokens) && Ot(w) || !(n != null && n.useAdditionalDayOfYearTokens) && Dt(w)) && xt(w, t, String(e));
1246
+ const X = A[w[0]];
1247
+ return X(o, w, a.localize, u);
1194
1248
  }).join("");
1195
1249
  }
1196
- function mt(e) {
1197
- const t = e.match(ct);
1198
- return t ? t[1].replace(ut, "'") : e;
1250
+ function Yt(e) {
1251
+ const t = e.match(pt);
1252
+ return t ? t[1].replace(St, "'") : e;
1199
1253
  }
1200
- function lt() {
1201
- return Object.assign({}, T());
1254
+ function Nt(e, t, n) {
1255
+ const r = v(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? J, s = 2520, i = Y(e, t);
1256
+ if (isNaN(i))
1257
+ throw new RangeError("Invalid time value");
1258
+ const o = Object.assign({}, n, {
1259
+ addSuffix: n == null ? void 0 : n.addSuffix,
1260
+ comparison: i
1261
+ });
1262
+ let f, u;
1263
+ i > 0 ? (f = h(t), u = h(e)) : (f = h(e), u = h(t));
1264
+ const d = Ce(u, f), c = (C(u) - C(f)) / 1e3, l = Math.round((d - c) / 60);
1265
+ let g;
1266
+ if (l < 2)
1267
+ return n != null && n.includeSeconds ? d < 5 ? a.formatDistance("lessThanXSeconds", 5, o) : d < 10 ? a.formatDistance("lessThanXSeconds", 10, o) : d < 20 ? a.formatDistance("lessThanXSeconds", 20, o) : d < 40 ? a.formatDistance("halfAMinute", 0, o) : d < 60 ? a.formatDistance("lessThanXMinutes", 1, o) : a.formatDistance("xMinutes", 1, o) : l === 0 ? a.formatDistance("lessThanXMinutes", 1, o) : a.formatDistance("xMinutes", l, o);
1268
+ if (l < 45)
1269
+ return a.formatDistance("xMinutes", l, o);
1270
+ if (l < 90)
1271
+ return a.formatDistance("aboutXHours", 1, o);
1272
+ if (l < I) {
1273
+ const b = Math.round(l / 60);
1274
+ return a.formatDistance("aboutXHours", b, o);
1275
+ } else {
1276
+ if (l < s)
1277
+ return a.formatDistance("xDays", 1, o);
1278
+ if (l < W) {
1279
+ const b = Math.round(l / I);
1280
+ return a.formatDistance("xDays", b, o);
1281
+ } else if (l < W * 2)
1282
+ return g = Math.round(l / W), a.formatDistance("aboutXMonths", g, o);
1283
+ }
1284
+ if (g = Ne(u, f), g < 12) {
1285
+ const b = Math.round(l / W);
1286
+ return a.formatDistance("xMonths", b, o);
1287
+ } else {
1288
+ const b = g % 12, O = Math.trunc(g / 12);
1289
+ return b < 3 ? a.formatDistance("aboutXYears", O, o) : b < 9 ? a.formatDistance("overXYears", O, o) : a.formatDistance("almostXYears", O + 1, o);
1290
+ }
1202
1291
  }
1203
- function Q(e, t, n) {
1204
- const r = lt(), a = yt(e, n.timeZone, n.locale ?? r.locale);
1205
- return "formatToParts" in a ? ht(a, t) : gt(a, t);
1292
+ function Ct(e, t) {
1293
+ return Nt(e, Oe(e), t);
1206
1294
  }
1207
- function ht(e, t) {
1295
+ function Et() {
1296
+ return Object.assign({}, v());
1297
+ }
1298
+ function $(e, t, n) {
1299
+ const r = Et(), a = _t(e, n.timeZone, n.locale ?? r.locale);
1300
+ return "formatToParts" in a ? Xt(a, t) : Lt(a, t);
1301
+ }
1302
+ function Xt(e, t) {
1208
1303
  const n = e.formatToParts(t);
1209
1304
  for (let r = n.length - 1; r >= 0; --r)
1210
1305
  if (n[r].type === "timeZoneName")
1211
1306
  return n[r].value;
1212
1307
  }
1213
- function gt(e, t) {
1308
+ function Lt(e, t) {
1214
1309
  const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
1215
1310
  return r ? r[0].substr(1) : "";
1216
1311
  }
1217
- function yt(e, t, n) {
1312
+ function _t(e, t, n) {
1218
1313
  return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
1219
1314
  timeZone: t,
1220
1315
  timeZoneName: e
1221
1316
  });
1222
1317
  }
1223
- const wt = 60 * 1e3, bt = {
1318
+ const Ft = 60 * 1e3, qt = {
1224
1319
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1225
1320
  X: function(e, t, n) {
1226
- const r = E(n.timeZone, e);
1321
+ const r = _(n.timeZone, e);
1227
1322
  if (r === 0)
1228
1323
  return "Z";
1229
1324
  switch (t) {
1230
1325
  case "X":
1231
- return R(r);
1326
+ return B(r);
1232
1327
  case "XXXX":
1233
1328
  case "XX":
1234
- return M(r);
1329
+ return P(r);
1235
1330
  case "XXXXX":
1236
1331
  case "XXX":
1237
1332
  default:
1238
- return M(r, ":");
1333
+ return P(r, ":");
1239
1334
  }
1240
1335
  },
1241
1336
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1242
1337
  x: function(e, t, n) {
1243
- const r = E(n.timeZone, e);
1338
+ const r = _(n.timeZone, e);
1244
1339
  switch (t) {
1245
1340
  case "x":
1246
- return R(r);
1341
+ return B(r);
1247
1342
  case "xxxx":
1248
1343
  case "xx":
1249
- return M(r);
1344
+ return P(r);
1250
1345
  case "xxxxx":
1251
1346
  case "xxx":
1252
1347
  default:
1253
- return M(r, ":");
1348
+ return P(r, ":");
1254
1349
  }
1255
1350
  },
1256
1351
  // Timezone (GMT)
1257
1352
  O: function(e, t, n) {
1258
- const r = E(n.timeZone, e);
1353
+ const r = _(n.timeZone, e);
1259
1354
  switch (t) {
1260
1355
  case "O":
1261
1356
  case "OO":
1262
1357
  case "OOO":
1263
- return "GMT" + xt(r, ":");
1358
+ return "GMT" + zt(r, ":");
1264
1359
  case "OOOO":
1265
1360
  default:
1266
- return "GMT" + M(r, ":");
1361
+ return "GMT" + P(r, ":");
1267
1362
  }
1268
1363
  },
1269
1364
  // Timezone (specific non-location)
@@ -1272,257 +1367,306 @@ const wt = 60 * 1e3, bt = {
1272
1367
  case "z":
1273
1368
  case "zz":
1274
1369
  case "zzz":
1275
- return Q("short", e, n);
1370
+ return $("short", e, n);
1276
1371
  case "zzzz":
1277
1372
  default:
1278
- return Q("long", e, n);
1373
+ return $("long", e, n);
1279
1374
  }
1280
1375
  }
1281
1376
  };
1282
- function E(e, t) {
1283
- const n = e ? ee(e, t, !0) / wt : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
1377
+ function _(e, t) {
1378
+ const n = e ? Q(e, t, !0) / Ft : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
1284
1379
  if (Number.isNaN(n))
1285
1380
  throw new RangeError("Invalid time zone specified: " + e);
1286
1381
  return n;
1287
1382
  }
1288
- function W(e, t) {
1383
+ function E(e, t) {
1289
1384
  const n = e < 0 ? "-" : "";
1290
1385
  let r = Math.abs(e).toString();
1291
1386
  for (; r.length < t; )
1292
1387
  r = "0" + r;
1293
1388
  return n + r;
1294
1389
  }
1295
- function M(e, t = "") {
1296
- const n = e > 0 ? "-" : "+", r = Math.abs(e), a = W(Math.floor(r / 60), 2), i = W(Math.floor(r % 60), 2);
1297
- return n + a + t + i;
1390
+ function P(e, t = "") {
1391
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = E(Math.floor(r / 60), 2), s = E(Math.floor(r % 60), 2);
1392
+ return n + a + t + s;
1298
1393
  }
1299
- function R(e, t) {
1300
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + W(Math.abs(e) / 60, 2) : M(e, t);
1394
+ function B(e, t) {
1395
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + E(Math.abs(e) / 60, 2) : P(e, t);
1301
1396
  }
1302
- function xt(e, t = "") {
1303
- const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), i = r % 60;
1304
- return i === 0 ? n + String(a) : n + String(a) + t + W(i, 2);
1397
+ function zt(e, t = "") {
1398
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), s = r % 60;
1399
+ return s === 0 ? n + String(a) : n + String(a) + t + E(s, 2);
1305
1400
  }
1306
- const Ot = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
1307
- function Mt(e, t, n = {}) {
1401
+ const It = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
1402
+ function Rt(e, t, n = {}) {
1308
1403
  t = String(t);
1309
- const r = t.match(Ot);
1404
+ const r = t.match(It);
1310
1405
  if (r) {
1311
- const a = te(n.originalDate || e, n);
1312
- t = r.reduce(function(i, s) {
1313
- if (s[0] === "'")
1314
- return i;
1315
- const o = i.indexOf(s), u = i[o - 1] === "'", d = i.replace(s, "'" + bt[s[0]](a, s, n) + "'");
1316
- return u ? d.substring(0, o - 1) + d.substring(o + 1) : d;
1406
+ const a = V(n.originalDate || e, n);
1407
+ t = r.reduce(function(s, i) {
1408
+ if (i[0] === "'")
1409
+ return s;
1410
+ const o = s.indexOf(i), f = s[o - 1] === "'", u = s.replace(i, "'" + qt[i[0]](a, i, n) + "'");
1411
+ return f ? u.substring(0, o - 1) + u.substring(o + 1) : u;
1317
1412
  }, t);
1318
1413
  }
1319
- return ft(e, t, n);
1414
+ return te(e, t, n);
1320
1415
  }
1321
- function pt(e, t, n) {
1322
- e = te(e, n);
1323
- const r = ee(t, e, !0), a = new Date(e.getTime() - r), i = /* @__PURE__ */ new Date(0);
1324
- return i.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), i.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), i;
1416
+ function At(e, t, n) {
1417
+ e = V(e, n);
1418
+ const r = Q(t, e, !0), a = new Date(e.getTime() - r), s = /* @__PURE__ */ new Date(0);
1419
+ return s.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), s.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), s;
1325
1420
  }
1326
- function Ct(e, t, n, r) {
1421
+ function Ht(e, t, n, r) {
1327
1422
  return r = {
1328
1423
  ...r,
1329
1424
  timeZone: t,
1330
1425
  originalDate: e
1331
- }, Mt(pt(e, t, { timeZone: r.timeZone }), n, r);
1332
- }
1333
- const Dt = "en-US", B = [
1334
- "compact",
1335
- "maximumFractionDigits",
1336
- "minimumFractionDigits",
1337
- "negativeStyle",
1338
- "type",
1339
- "useGrouping"
1340
- ];
1341
- function Pt(e) {
1342
- if (e.type !== "currency" || Object.prototype.hasOwnProperty.call(e, "currency") || Object.prototype.hasOwnProperty.call(e, "locale"))
1343
- return !1;
1344
- const t = Object.keys(e).sort();
1345
- return t.length === B.length && B.every(
1346
- (n, r) => t[r] === n
1347
- ) && typeof e.minimumFractionDigits == "number" && typeof e.maximumFractionDigits == "number" && e.useGrouping === !0 && e.negativeStyle === "minus" && typeof e.compact == "boolean";
1348
- }
1349
- function A(e) {
1350
- if (typeof e != "string")
1351
- return;
1352
- const t = e.trim();
1353
- if (!(!t || t.toLowerCase() === "none"))
1354
- return t;
1426
+ }, Rt(At(e, t, { timeZone: r.timeZone }), n, r);
1355
1427
  }
1356
- function k(e) {
1357
- if (!(typeof e != "number" || !Number.isFinite(e)))
1358
- return Math.max(0, Math.min(10, Math.trunc(e)));
1428
+ function sn(e, t) {
1429
+ return e && e !== "auto" ? e : t;
1359
1430
  }
1360
- function vt(e) {
1361
- return e === "currency" ? 2 : e === "percent" ? 1 : e === "scientific" ? 2 : 0;
1431
+ function on(e, t = /* @__PURE__ */ new Date()) {
1432
+ try {
1433
+ const n = {
1434
+ timeZone: e,
1435
+ timeZoneName: "short"
1436
+ }, a = new Intl.DateTimeFormat("en-US", n).formatToParts(t).find((s) => s.type === "timeZoneName");
1437
+ return (a == null ? void 0 : a.value) || e;
1438
+ } catch {
1439
+ return e;
1440
+ }
1362
1441
  }
1363
- function St(e, t, n) {
1364
- const r = k(t.minimumFractionDigits), a = k(t.maximumFractionDigits);
1365
- if (typeof r == "number" || typeof a == "number") {
1366
- const o = r ?? 0, u = a ?? Math.max(o, 2);
1367
- return {
1368
- minimumFractionDigits: Math.min(o, u),
1369
- maximumFractionDigits: Math.max(o, u)
1370
- };
1442
+ function un(e) {
1443
+ try {
1444
+ const t = {
1445
+ timeZone: e,
1446
+ timeZoneName: "long"
1447
+ }, r = new Intl.DateTimeFormat("en-US", t).formatToParts(
1448
+ /* @__PURE__ */ new Date()
1449
+ ).find((a) => a.type === "timeZoneName");
1450
+ return (r == null ? void 0 : r.value) || e;
1451
+ } catch {
1452
+ return e;
1371
1453
  }
1372
- const i = k(t.decimals);
1373
- if (typeof i == "number")
1374
- return {
1375
- minimumFractionDigits: i,
1376
- maximumFractionDigits: i
1377
- };
1378
- if (n != null && n.preserveOmittedProperties)
1379
- return {};
1380
- const s = vt(e);
1381
- return {
1382
- minimumFractionDigits: s,
1383
- maximumFractionDigits: s
1384
- };
1385
1454
  }
1386
- function Tt(e, t) {
1387
- if (!(typeof t != "string" || e === "percent" && t === "%"))
1388
- return t;
1455
+ function ne(e, t = "auto") {
1456
+ if (!e)
1457
+ return /* @__PURE__ */ new Date(NaN);
1458
+ const n = e.endsWith("Z"), r = /[+-]\d{2}:?\d{2}$/.test(e), a = /\([A-Z]{3,4}\)$/.test(e);
1459
+ if (t === "auto")
1460
+ return n || r || a ? new Date(e) : /* @__PURE__ */ new Date(e + "Z");
1461
+ if (t === "local") {
1462
+ if (n || r) {
1463
+ const s = e.replace(/Z$/, "").replace(/[+-]\d{2}:?\d{2}$/, "");
1464
+ return new Date(s);
1465
+ }
1466
+ return new Date(e);
1467
+ } else return t === "UTC" ? n ? new Date(e) : r ? new Date(e) : /* @__PURE__ */ new Date(e + "Z") : n || r || a ? new Date(e) : ue(e, t);
1389
1468
  }
1390
- function V(e) {
1391
- const t = A(e.locale), n = A(e.currency), r = Tt(e.type, e.suffix);
1392
- return {
1393
- ...e,
1394
- ...t !== e.locale ? { locale: t } : {},
1395
- ...n !== e.currency ? { currency: n } : {},
1396
- ...r !== e.suffix ? { suffix: r } : {}
1397
- };
1469
+ const jt = "MM/dd/yyyy", Zt = (e, t, n, r = "auto") => {
1470
+ if (!e)
1471
+ return "";
1472
+ try {
1473
+ const a = ne(e, r);
1474
+ if (isNaN(a.getTime()))
1475
+ return e;
1476
+ const i = (t && t.trim() ? t : jt).replace(/LLLL/g, "MMMM").replace(/LLL/g, "MMM");
1477
+ return n && n !== "auto" ? Ht(a, n, i) : te(a, i);
1478
+ } catch (a) {
1479
+ return console.error("Date formatting error:", a), e;
1480
+ }
1481
+ }, $t = (e, t = "auto") => {
1482
+ if (!e)
1483
+ return "";
1484
+ try {
1485
+ const n = ne(e, t);
1486
+ return isNaN(n.getTime()) ? e : Ct(n, { addSuffix: !0 });
1487
+ } catch (n) {
1488
+ return console.error("Relative time formatting error:", n), e;
1489
+ }
1490
+ };
1491
+ function Bt(e, t, n, r) {
1492
+ const a = e instanceof Date ? e.toISOString() : String(e), s = (r == null ? void 0 : r.browserTimezone) || n, i = (r == null ? void 0 : r.isSqlCard) ?? !1;
1493
+ if (t != null && t.useRelativeTime)
1494
+ return $t(
1495
+ a,
1496
+ (t == null ? void 0 : t.sourceTimezone) || "auto"
1497
+ );
1498
+ const o = t != null && t.useCustomFormat && (t != null && t.customFormat) ? t.customFormat : (t == null ? void 0 : t.format) || "MM/dd/yyyy";
1499
+ return Zt(
1500
+ a,
1501
+ o,
1502
+ t != null && t.timezone && (t == null ? void 0 : t.timezone) !== "auto" ? t.timezone : i ? s : n,
1503
+ (t == null ? void 0 : t.sourceTimezone) || "auto"
1504
+ );
1398
1505
  }
1399
- function w(e, t, n) {
1400
- const r = { ...t, type: e };
1401
- if ((n == null ? void 0 : n.numericInput) === "canonical" && ne(r))
1402
- return V(r);
1403
- const a = St(e, t, n), i = typeof t.prefix == "string" ? t.prefix : void 0, s = {
1404
- type: e,
1405
- locale: t.locale,
1406
- minimumFractionDigits: a.minimumFractionDigits,
1407
- maximumFractionDigits: a.maximumFractionDigits,
1408
- useGrouping: typeof t.useGrouping == "boolean" ? t.useGrouping : typeof t.thousandsSeparator == "boolean" ? t.thousandsSeparator : !0,
1409
- prefix: i,
1410
- suffix: t.suffix,
1411
- negativeStyle: t.negativeStyle || "minus",
1412
- compact: !!t.compact,
1413
- scale: typeof t.scale == "number" ? t.scale : void 0
1414
- };
1415
- return e === "currency" && t.currency && (s.currency = t.currency), e === "percent" && (s.percentValueMode = t.percentValueMode || "fraction"), V(s);
1506
+ function re(e, t, n) {
1507
+ var i, o;
1508
+ if (e == null)
1509
+ return e === null ? ((i = n.absence) == null ? void 0 : i.nullText) ?? "" : ((o = n.absence) == null ? void 0 : o.emptyText) ?? "";
1510
+ const r = ae(e) ? e : void 0, a = r ? r.value : e, s = r ?? (typeof e == "number" ? e : void 0);
1511
+ if (!n.useFormattedValues || !t)
1512
+ return String(a);
1513
+ switch (t.type) {
1514
+ case "number":
1515
+ return s !== void 0 ? de(
1516
+ s,
1517
+ t.numberFormat,
1518
+ n.locale
1519
+ ) : String(a);
1520
+ case "date":
1521
+ return Bt(
1522
+ a,
1523
+ t.dateFormat,
1524
+ n.timezone,
1525
+ {
1526
+ browserTimezone: n.browserTimezone,
1527
+ isSqlCard: n.isSqlCard
1528
+ }
1529
+ );
1530
+ case "progress":
1531
+ return s !== void 0 ? `${a}%` : String(a);
1532
+ case "badge":
1533
+ case "link":
1534
+ case "text":
1535
+ case "none":
1536
+ default:
1537
+ return String(a);
1538
+ }
1416
1539
  }
1417
- function $(e) {
1418
- return {
1419
- type: "date",
1420
- locale: e.locale || Dt,
1421
- pattern: e.pattern,
1422
- relative: !!e.relative,
1423
- timezone: e.timezone,
1424
- sourceTimezone: e.sourceTimezone,
1425
- prefix: e.prefix,
1426
- suffix: e.suffix
1427
- };
1540
+ function cn(e, t) {
1541
+ return t.visibleColumns.map((n) => {
1542
+ const r = e[n], a = t.columnSettings[n];
1543
+ return re(r, a, {
1544
+ useFormattedValues: t.useFormattedValues,
1545
+ timezone: t.timezone,
1546
+ locale: t.locale
1547
+ });
1548
+ });
1428
1549
  }
1429
- function N(e) {
1430
- return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
1550
+ function Qt(e, t) {
1551
+ var a;
1552
+ const n = e[e.length - 1];
1553
+ if (!n) return "";
1554
+ if (n.member.kind === "others") return "Others";
1555
+ const r = n.member.value;
1556
+ return r === null ? "(Blank)" : ((a = t == null ? void 0 : t.get(n.levelId)) == null ? void 0 : a(r)) ?? (typeof r == "object" ? r.value : String(r));
1431
1557
  }
1432
- function Z(e) {
1433
- const t = k(e.maxUnits);
1434
- return {
1435
- type: "duration",
1436
- inputUnit: N(e.inputUnit) ? e.inputUnit : "second",
1437
- outputStyle: e.outputStyle === "digital" || e.outputStyle === "long" ? e.outputStyle : "compact",
1438
- largestUnit: N(e.largestUnit) ? e.largestUnit : void 0,
1439
- smallestUnit: N(e.smallestUnit) ? e.smallestUnit : "second",
1440
- maxUnits: t,
1441
- prefix: e.prefix,
1442
- suffix: e.suffix,
1443
- negativeStyle: e.negativeStyle || "minus"
1444
- };
1558
+ function Vt(e, t, n) {
1559
+ return e === "grand_total" ? n ?? "Grand Total" : e === "subtotal" ? (n == null ? void 0 : n.split(oe).join(t)) ?? `${t} Total` : t;
1560
+ }
1561
+ function fn(e, t, n, r) {
1562
+ var i;
1563
+ const a = e[e.length - 1], s = t === "grand_total" ? n.grand.label : a ? (i = n.levels[a.levelId]) == null ? void 0 : i.label : void 0;
1564
+ return Vt(t, Qt(e, r), s);
1565
+ }
1566
+ function ln(e, t, n) {
1567
+ return e.kind === "value" ? (t == null ? void 0 : t(e.value)) ?? "" : e.kind === "null" ? n.nullText : n.emptyText;
1568
+ }
1569
+ function dn(e) {
1570
+ const { path: t, previousPath: n, role: r, repeatLabels: a, levelCount: s } = e;
1571
+ return Array.from({ length: s }, (i, o) => {
1572
+ const f = t.slice(0, o + 1), u = r === "grand_total" ? o === 0 : r === "subtotal" && o === t.length - 1, d = n && n.length > o && z(n.slice(0, o + 1)) === z(f);
1573
+ return {
1574
+ path: f,
1575
+ total: u,
1576
+ visible: u || t.length > o && (a || !d || o === t.length - 1)
1577
+ };
1578
+ });
1579
+ }
1580
+ function Gt(e, t) {
1581
+ return ie(e ?? t, {
1582
+ preserveOmittedProperties: !0,
1583
+ numericInput: "canonical"
1584
+ });
1445
1585
  }
1446
- function J(e) {
1586
+ function mn(e, t, n) {
1587
+ const r = /* @__PURE__ */ new Map(), a = (s, i) => {
1588
+ const o = (i === "levels" ? t.levelFormats : t.measureFormats)[s.id], f = s.semanticFormat, u = Gt(o, f);
1589
+ i === "measures" && r.set(s.id, {
1590
+ isNumeric: se(s.column.dataType) === "number",
1591
+ // Use normalized affixes: a redundant percent suffix is already removed.
1592
+ hasTextAffixes: !!u && !!("prefix" in u && u.prefix || "suffix" in u && u.suffix)
1593
+ });
1594
+ const d = (c) => re(c, void 0, {
1595
+ useFormattedValues: !0,
1596
+ timezone: n.calendar.tz,
1597
+ locale: n.valueFormat.locale,
1598
+ absence: t.absence
1599
+ });
1600
+ if (s.column.temporalBucket) {
1601
+ const c = s.column.temporalBucket, l = ye({
1602
+ metadata: c,
1603
+ cardFormat: (o == null ? void 0 : o.type) === "temporal_bucket" ? o : void 0,
1604
+ semanticFormat: (f == null ? void 0 : f.type) === "temporal_bucket" ? { granularity: c.granularity, format: f } : void 0,
1605
+ locale: n.valueFormat.locale,
1606
+ styles: { dateStyle: n.valueFormat.dateStyle, dateTime: n.valueFormat.dateTime }
1607
+ });
1608
+ return (g) => typeof g == "string" ? be({ value: g, metadata: c, format: l.format }) : d(g);
1609
+ }
1610
+ if (s.column.rawTemporal) {
1611
+ const c = ce({
1612
+ metadata: s.column.rawTemporal,
1613
+ format: fe({
1614
+ format: (u == null ? void 0 : u.type) === "date" ? {
1615
+ type: "raw_temporal",
1616
+ timezone: u.timezone,
1617
+ sourceTimezone: u.sourceTimezone,
1618
+ presentation: u.pattern ? {
1619
+ mode: "pattern",
1620
+ dialect: "semaphor_tokens",
1621
+ pattern: u.pattern
1622
+ } : { mode: "auto" }
1623
+ } : void 0,
1624
+ preferences: n.valueFormat,
1625
+ calendar: n.calendar
1626
+ })
1627
+ });
1628
+ return (l) => {
1629
+ if (typeof l != "string") return d(l);
1630
+ const g = c(l);
1631
+ return g.ok ? g.text : d(l);
1632
+ };
1633
+ }
1634
+ if (le(u)) {
1635
+ const c = me(u, n.valueFormat);
1636
+ return (l) => typeof l == "number" || typeof l == "object" && l !== null ? he(l, c) : d(l);
1637
+ }
1638
+ return (u == null ? void 0 : u.type) === "duration" ? (c) => typeof c == "number" || typeof c == "string" || typeof c == "object" && c !== null ? ge(
1639
+ typeof c == "object" ? c.value : c,
1640
+ u
1641
+ ) : d(c) : (u == null ? void 0 : u.type) === "string" ? (c) => c === null ? d(c) : `${u.prefix ?? ""}${d(c)}${u.suffix ?? ""}` : d;
1642
+ };
1447
1643
  return {
1448
- type: "string",
1449
- prefix: e.prefix,
1450
- suffix: e.suffix
1644
+ levels: new Map(
1645
+ e.levels.map((s) => [s.id, a(s, "levels")])
1646
+ ),
1647
+ measures: new Map(
1648
+ e.measures.map((s) => [s.id, a(s, "measures")])
1649
+ ),
1650
+ measureSemantics: r
1451
1651
  };
1452
1652
  }
1453
- function Et(e, t) {
1454
- if (!e)
1455
- return;
1456
- if (typeof e == "string") {
1457
- const r = e.trim().toLowerCase();
1458
- return r === "currency" ? w(
1459
- "currency",
1460
- { type: "currency" },
1461
- t
1462
- ) : r === "percentage" || r === "percent" ? w(
1463
- "percent",
1464
- {
1465
- type: "percentage",
1466
- percentValueMode: "fraction"
1467
- },
1468
- t
1469
- ) : r === "scientific" ? w(
1470
- "scientific",
1471
- { type: "scientific" },
1472
- t
1473
- ) : r === "date" ? $({}) : r === "duration" ? Z({}) : r === "string" ? J({}) : r === "number" ? w(
1474
- "number",
1475
- { type: "number" },
1476
- t
1477
- ) : void 0;
1478
- }
1479
- if ("type" in e && e.type === "temporal_bucket") {
1480
- const r = oe.safeParse(e);
1481
- return r.success ? r.data : void 0;
1482
- }
1483
- const n = e;
1484
- if ((t == null ? void 0 : t.numericInput) === "canonical") {
1485
- const r = n.type === "percentage" ? { ...n, type: "percent" } : n;
1486
- if (ne(r))
1487
- return w(r.type, r, t);
1488
- }
1489
- if (n.type === "percentage")
1490
- return w(
1491
- "percent",
1492
- {
1493
- ...n,
1494
- percentValueMode: n.percentValueMode || "fraction"
1495
- },
1496
- t
1497
- );
1498
- if (n.type === "number" || n.type === "currency" || n.type === "percent" || n.type === "scientific") {
1499
- const r = w(
1500
- n.type,
1501
- n,
1502
- t
1503
- );
1504
- return Pt(n) ? { ...r, currency: "USD" } : r;
1505
- }
1506
- if (n.type === "date")
1507
- return $(n);
1508
- if (n.type === "duration")
1509
- return Z(n);
1510
- if (n.type === "string")
1511
- return J(n);
1512
- }
1513
1653
  export {
1514
- Dt as D,
1515
- U as a,
1516
- Ct as b,
1517
- x as c,
1518
- ft as d,
1519
- Re as e,
1520
- Et as f,
1521
- T as g,
1522
- pt as h,
1523
- Z as i,
1524
- w as j,
1525
- A as k,
1526
- $ as n,
1527
- h as t
1654
+ $t as a,
1655
+ un as b,
1656
+ re as c,
1657
+ cn as d,
1658
+ mn as e,
1659
+ Zt as f,
1660
+ on as g,
1661
+ fn as h,
1662
+ dn as i,
1663
+ ln as j,
1664
+ te as k,
1665
+ Ct as l,
1666
+ Qt as m,
1667
+ Gt as n,
1668
+ Ht as o,
1669
+ ne as p,
1670
+ Vt as q,
1671
+ sn as r
1528
1672
  };