react-semaphor 0.1.443 → 0.1.445

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 (133) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/analytics-protocol/index.cjs +1 -1
  3. package/dist/analytics-protocol/index.js +123 -107
  4. package/dist/appearance/index.cjs +1 -1
  5. package/dist/brand-studio/index.cjs +2 -2
  6. package/dist/brand-studio/index.js +5 -4
  7. package/dist/briefings/index.cjs +1 -1
  8. package/dist/briefings/index.js +526 -457
  9. package/dist/chunks/analyze-result-contract-BHb7sUUW.cjs +1 -0
  10. package/dist/chunks/analyze-result-contract-DUv3QnMl.js +29 -0
  11. package/dist/chunks/{braces-CbO-aIwH.js → braces-BKimshER.cjs} +1 -1
  12. package/dist/chunks/{code-editor-BpADiIlq.js → code-editor-B4gTfvc5.js} +6800 -6560
  13. package/dist/chunks/code-editor-BYVorgOf.cjs +138 -0
  14. package/dist/chunks/common-types-CQ6SHfLk.cjs +1 -0
  15. package/dist/chunks/{common-types-ClkOI-3O.js → common-types-DFsDdpH7.js} +22 -21
  16. package/dist/chunks/dashboard-CAiwJW3L.cjs +1397 -0
  17. package/dist/chunks/{dashboard-briefing-launcher-C60n8LqW.js → dashboard-briefing-launcher-2SLNOaTg.js} +26 -24
  18. package/dist/chunks/{dashboard-briefing-launcher-BYMLjZxG.js → dashboard-briefing-launcher-CHwjpUYz.cjs} +2 -2
  19. package/dist/chunks/{dashboard-controls-ti9Rcel2.js → dashboard-controls-BfL14aqO.js} +11 -9
  20. package/dist/chunks/{dashboard-controls-BH_fZYDU.js → dashboard-controls-BgGTg4yw.cjs} +2 -2
  21. package/dist/chunks/dashboard-date-comparison-definition-DZq0htjG.cjs +1 -0
  22. package/dist/chunks/dashboard-json-BOv8tCa9.cjs +1 -0
  23. package/dist/chunks/{dashboard-json-Bturr634.js → dashboard-json-BZwq3EcS.js} +14 -12
  24. package/dist/chunks/{dashboard-Bd1Quco-.js → dashboard-u61yfU6u.js} +50081 -47351
  25. package/dist/chunks/edit-dashboard-visual-BdVCH0DJ.cjs +182 -0
  26. package/dist/chunks/{edit-dashboard-visual-DglMds57.js → edit-dashboard-visual-njLPYip3.js} +6825 -6656
  27. package/dist/chunks/{editor-action-buttons-CRi0fhVW.js → editor-action-buttons-BhLX5Q6m.js} +24 -23
  28. package/dist/chunks/{editor-action-buttons-Cxo7_tNG.js → editor-action-buttons-CBVMFipA.cjs} +1 -1
  29. package/dist/chunks/{index-D7KJindZ.js → format-types-CSv0V7mm.cjs} +1 -1
  30. package/dist/chunks/{index-CnujJ3fa.js → format-types-CZH5w1lo.js} +23 -17
  31. package/dist/chunks/{layout-grid-B08pP7v6.js → layout-grid-3-HWzEwU.cjs} +1 -1
  32. package/dist/chunks/{metric-comparison-CPoDx56y.js → metric-comparison-BJ_Qu1ZF.js} +1 -1
  33. package/dist/chunks/metric-comparison-CUAJ8n4y.cjs +1 -0
  34. package/dist/chunks/{palette-C0yjT5Tv.js → palette-DW_l7Jr0.cjs} +1 -1
  35. package/dist/chunks/pivot-result-identity-B6QCWOSi.js +94 -0
  36. package/dist/chunks/pivot-result-identity-CDLRT-YG.cjs +1 -0
  37. package/dist/chunks/pivot-result-lifecycle-BM3Pl-D1.js +914 -0
  38. package/dist/chunks/pivot-result-lifecycle-DPc0ANwk.cjs +4 -0
  39. package/dist/chunks/presentation-execution-BTV-Q43g.cjs +1 -0
  40. package/dist/chunks/presentation-execution-CGlb7YZ6.js +637 -0
  41. package/dist/chunks/{report-preferences-dialog-TtwdAuNn.js → report-preferences-dialog-D_NJu2wU.js} +7 -6
  42. package/dist/chunks/report-preferences-dialog-r8QzOSFb.cjs +1 -0
  43. package/dist/chunks/report-runtime-context-C8LZFsqV.cjs +1 -0
  44. package/dist/chunks/report-runtime-context-Qzn11HQe.js +387 -0
  45. package/dist/chunks/{save-Xdc4pnys.js → save-4_uMnE6s.cjs} +1 -1
  46. package/dist/chunks/{search-Dcud9ajy.js → search-6ZmeMq55.cjs} +1 -1
  47. package/dist/chunks/temporal-bucket-BnPxGrAi.js +446 -0
  48. package/dist/chunks/temporal-bucket-authoring-BUZMuVca.js +205 -0
  49. package/dist/chunks/temporal-bucket-authoring-CPTwHzvs.cjs +1 -0
  50. package/dist/chunks/temporal-bucket-contract-B2bJ1oe4.js +108 -0
  51. package/dist/chunks/temporal-bucket-contract-ChDBWX8I.cjs +1 -0
  52. package/dist/chunks/temporal-bucket-pMnV-4Nj.cjs +1 -0
  53. package/dist/chunks/{comparison-document-migration-Dj6xZMCb.js → temporal-result-owner-Cb27SSG9.js} +152 -123
  54. package/dist/chunks/temporal-result-owner-f6-i65Fb.cjs +1 -0
  55. package/dist/chunks/token-types-BdQ8kHBm.cjs +1 -0
  56. package/dist/chunks/token-types-DLo91nOf.js +8 -0
  57. package/dist/chunks/{update-policy-DnF_74zC.js → update-policy-BxvYMYz0.cjs} +1 -1
  58. package/dist/chunks/{update-policy-De2NswtM.js → update-policy-eg59mQqv.js} +1 -1
  59. package/dist/chunks/validators-9D4KBqKD.cjs +1 -0
  60. package/dist/chunks/validators-wZ2WlNHc.js +4640 -0
  61. package/dist/dashboard/index.cjs +1 -1
  62. package/dist/dashboard/index.js +2 -2
  63. package/dist/dashboard-authoring/index.cjs +3 -3
  64. package/dist/dashboard-authoring/index.js +136 -126
  65. package/dist/data-app-builder/index.cjs +1 -1
  66. package/dist/data-app-builder/index.js +2 -2
  67. package/dist/data-app-codegen/index.cjs +1 -1
  68. package/dist/data-app-codegen/index.js +2 -2
  69. package/dist/data-app-codegen-node/index.cjs +1 -1
  70. package/dist/data-app-codegen-node/index.js +3 -3
  71. package/dist/data-app-sdk/index.cjs +2 -2
  72. package/dist/data-app-sdk/index.js +34 -35
  73. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  74. package/dist/data-app-sdk-adapters/index.js +5 -5
  75. package/dist/data-app-sdk-validation/index.cjs +1 -1
  76. package/dist/data-app-sdk-validation/index.js +9 -10
  77. package/dist/format-utils/index.cjs +3 -3
  78. package/dist/format-utils/index.js +155 -176
  79. package/dist/index.cjs +1 -1
  80. package/dist/index.js +180 -174
  81. package/dist/report-runtime-context/index.cjs +1 -1
  82. package/dist/report-runtime-context/index.js +7 -392
  83. package/dist/shared/index.cjs +1 -1
  84. package/dist/style.css +1 -1
  85. package/dist/surfboard/index.cjs +1 -1
  86. package/dist/surfboard/index.js +3 -3
  87. package/dist/types/analytics-protocol.d.ts +257 -48
  88. package/dist/types/briefings.d.ts +138 -50
  89. package/dist/types/dashboard-assistant.d.ts +207 -52
  90. package/dist/types/dashboard-authoring.d.ts +182 -50
  91. package/dist/types/dashboard.d.ts +290 -48
  92. package/dist/types/data-app-builder.d.ts +48 -42
  93. package/dist/types/data-app-codegen-node.d.ts +50 -44
  94. package/dist/types/data-app-codegen.d.ts +50 -44
  95. package/dist/types/data-app-sdk-adapters.d.ts +48 -42
  96. package/dist/types/data-app-sdk-validation.d.ts +81 -43
  97. package/dist/types/data-app-sdk.d.ts +83 -45
  98. package/dist/types/format-utils.d.ts +645 -67
  99. package/dist/types/index.cjs +1 -1
  100. package/dist/types/index.js +19 -19
  101. package/dist/types/main.d.ts +298 -94
  102. package/dist/types/report-runtime-context.d.ts +3 -0
  103. package/dist/types/shared.d.ts +116 -41
  104. package/dist/types/surfboard.d.ts +290 -48
  105. package/dist/types/types.d.ts +455 -65
  106. package/package.json +3 -1
  107. package/dist/chunks/analyze-result-contract-BswhsmWT.js +0 -1
  108. package/dist/chunks/analyze-result-contract-CfOBEwaC.js +0 -1998
  109. package/dist/chunks/code-editor-M7HTUhdF.js +0 -138
  110. package/dist/chunks/common-types-C73-Ud1-.js +0 -1
  111. package/dist/chunks/comparison-document-migration-DbU_BTxR.js +0 -1
  112. package/dist/chunks/csv-utils-BZDvO2Fw.js +0 -376
  113. package/dist/chunks/csv-utils-Co0WxHke.js +0 -4
  114. package/dist/chunks/dashboard-cB3xmTNn.js +0 -1402
  115. package/dist/chunks/dashboard-date-comparison-definition-DGZr3m-b.js +0 -1
  116. package/dist/chunks/dashboard-json-Dw_55vSZ.js +0 -1
  117. package/dist/chunks/edit-dashboard-visual-BUc3NBQ4.js +0 -182
  118. package/dist/chunks/metric-comparison-DVy3fll_.js +0 -1
  119. package/dist/chunks/numeric-presentation-BJs5lSar.js +0 -517
  120. package/dist/chunks/numeric-presentation-Dlb-Dk4c.js +0 -1
  121. package/dist/chunks/report-preferences-dialog-CCvFqH4Q.js +0 -1
  122. package/dist/chunks/source-identity-5OPV4gvg.js +0 -92
  123. package/dist/chunks/source-identity-Cbo2LOHQ.js +0 -1
  124. package/dist/chunks/validators-B2vUAqTf.js +0 -1
  125. package/dist/chunks/validators-Bce_J7Vd.js +0 -2448
  126. /package/dist/chunks/{card-config-utils-15sRtebL.js → card-config-utils-15sRtebL.cjs} +0 -0
  127. /package/dist/chunks/{catalog-field-grounding-Bnx-3tE0.js → catalog-field-grounding-Bnx-3tE0.cjs} +0 -0
  128. /package/dist/chunks/{dashboard-input-contract-DV3cshjz.js → dashboard-input-contract-DV3cshjz.cjs} +0 -0
  129. /package/dist/chunks/{index-Dpm_VET4.js → index-Dpm_VET4.cjs} +0 -0
  130. /package/dist/chunks/{index-jSrCwPQz.js → index-jSrCwPQz.cjs} +0 -0
  131. /package/dist/chunks/{normalize-dashboard-for-dirty-check-BXRUMVb2.js → normalize-dashboard-for-dirty-check-BXRUMVb2.cjs} +0 -0
  132. /package/dist/chunks/{operators-DrTQsJXv.js → operators-DrTQsJXv.cjs} +0 -0
  133. /package/dist/chunks/{use-debounced-dirty-check-XHSwAefL.js → use-debounced-dirty-check-XHSwAefL.cjs} +0 -0
@@ -1,9 +1,10 @@
1
1
  import { c as Te, C as je, X as Ze } from "./index-xHCrHprY.js";
2
2
  import { useState as H, useEffect as ie, useCallback as z, useMemo as oe, useRef as ke, Fragment as ht } from "react";
3
- import { D as de, A as _e, u as J, E as U, a4 as bt, Q as gt, V as yt, W as vt, c as fe, Y as xt, a5 as Ct, a6 as kt, a7 as pe, a8 as Re, a9 as Qe, aa as Se, ab as Ne, ac as St, ad as $e, ae as Nt, af as wt, ag as me, ah as Dt, ai as Pe, B as L, aj as et, ak as tt, al as rt, O as ne, Z as at, _ as we, $ as De, a0 as Ee, a1 as Fe, a2 as Ie, am as st, an as Et, ao as We, ap as Ft, aq as He, ar as It, as as Vt, at as Ve, d as Tt, L as nt, au as _t, av as At } from "./code-editor-BpADiIlq.js";
4
- import { b7 as Lt, az as qt, b8 as ce, b9 as Mt, ba as Ae, bb as Ot, bc as Ut, bd as zt, aG as B, be as Bt, bf as jt, bg as Rt, bh as ot, bi as lt, bj as Qt, av as $t, bk as Pt, bl as Wt, bm as Ht, bn as Kt, bo as it, bp as dt, bq as Yt, br as Gt, bs as Xt, bt as Jt, bu as Zt, aZ as er, bv as tr, bw as rr, bx as ct, by as ar } from "./dashboard-Bd1Quco-.js";
3
+ import { D as de, A as _e, u as J, E as U, a4 as bt, Q as gt, V as yt, W as vt, c as fe, Y as xt, a5 as Ct, a6 as kt, a7 as pe, a8 as Re, a9 as Qe, aa as Se, ab as Ne, ac as St, ad as $e, ae as Nt, af as wt, ag as me, ah as Dt, ai as Pe, B as L, aj as et, ak as tt, al as rt, O as ne, Z as at, _ as we, $ as De, a0 as Ee, a1 as Fe, a2 as Ie, am as st, an as Et, ao as We, ap as Ft, aq as He, ar as It, as as Vt, at as Ve, d as Tt, L as nt, au as _t, av as At } from "./code-editor-B4gTfvc5.js";
4
+ import { b7 as Lt, az as qt, b8 as ce, b9 as Mt, ba as Ae, bb as Ot, bc as Ut, bd as zt, aG as B, be as Bt, bf as jt, bg as Rt, bh as ot, bi as lt, bj as Qt, av as $t, bk as Pt, bl as Wt, bm as Ht, bn as Kt, bo as it, bp as dt, bq as Yt, br as Gt, bs as Xt, bt as Jt, bu as Zt, aZ as er, bv as tr, bw as rr, bx as ct, by as ar } from "./dashboard-u61yfU6u.js";
5
5
  import { jsx as r, jsxs as p, Fragment as re } from "react/jsx-runtime";
6
- import "./analyze-result-contract-CfOBEwaC.js";
6
+ import "./validators-wZ2WlNHc.js";
7
+ import "./analyze-result-contract-DUv3QnMl.js";
7
8
  import "../value-format-preferences/index.js";
8
9
  import { C as Ke } from "./search-DHZCro8B.js";
9
10
  import { S as ut } from "./save-HCJjjzdX.js";
@@ -13,7 +14,7 @@ import { S as ut } from "./save-HCJjjzdX.js";
13
14
  * This source code is licensed under the ISC license.
14
15
  * See the LICENSE file in the root directory of this source tree.
15
16
  */
16
- const Dr = Te("FilterX", [
17
+ const Er = Te("FilterX", [
17
18
  ["path", { d: "M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055", key: "1fi1da" }],
18
19
  ["path", { d: "m22 3-5 5", key: "12jva0" }],
19
20
  ["path", { d: "m17 3 5 5", key: "k36vhe" }]
@@ -362,7 +363,7 @@ function Le() {
362
363
  refetch: X.refetch
363
364
  };
364
365
  }
365
- function Er() {
366
+ function Fr() {
366
367
  const t = U((m) => m.card.dataSource), {
367
368
  setSelectedConnectionId: a,
368
369
  setSelectedDatabaseName: o,
@@ -431,7 +432,7 @@ function pr() {
431
432
  }
432
433
  return K;
433
434
  }
434
- function Fr({
435
+ function Ir({
435
436
  type: t,
436
437
  isLinked: a,
437
438
  className: o,
@@ -776,7 +777,7 @@ function br(t) {
776
777
  defaultValue: me(o, void 0)
777
778
  };
778
779
  }
779
- function Ir({
780
+ function Vr({
780
781
  scope: t,
781
782
  controls: a,
782
783
  reservedControlIds: o,
@@ -1672,7 +1673,7 @@ function Ir({
1672
1673
  )
1673
1674
  ] });
1674
1675
  }
1675
- function Vr(t) {
1676
+ function Tr(t) {
1676
1677
  const {
1677
1678
  open: a,
1678
1679
  onOpenChange: o,
@@ -1710,7 +1711,7 @@ function qe(t) {
1710
1711
  const a = At(t);
1711
1712
  return a ? (B.error(a), !1) : !0;
1712
1713
  }
1713
- function Tr({
1714
+ function _r({
1714
1715
  className: t,
1715
1716
  variant: a = "outline"
1716
1717
  }) {
@@ -1733,7 +1734,7 @@ function Tr({
1733
1734
  }
1734
1735
  );
1735
1736
  }
1736
- function _r({
1737
+ function Ar({
1737
1738
  className: t,
1738
1739
  variant: a = "default"
1739
1740
  }) {
@@ -1783,7 +1784,7 @@ function _r({
1783
1784
  }
1784
1785
  );
1785
1786
  }
1786
- function Ar({
1787
+ function Lr({
1787
1788
  className: t
1788
1789
  }) {
1789
1790
  const a = ce(), [o, s] = H(!1), i = Ae(), c = U((k) => k.frame), m = J((k) => k.selectedSheetId), h = J((k) => k.dashboard), { updateFrame: u, setIsVisualEditing: v } = _e(), { getUpdatedFrame: y } = Le(), b = ct(), x = ar();
@@ -1846,7 +1847,7 @@ function Ar({
1846
1847
  }
1847
1848
  );
1848
1849
  }
1849
- function Lr({ className: t }) {
1850
+ function qr({ className: t }) {
1850
1851
  const { setTempQueryData: a, setSqlGen: o } = de(), s = ce(), i = U((b) => b.tempQueryData), c = U((b) => b.onClose), m = U((b) => b.card), h = ot(), u = oe(() => h !== m.type ? { ...m, type: h } : m, [m, h]), { queryKey: v } = lt(u);
1851
1852
  function y() {
1852
1853
  if (i) {
@@ -1869,7 +1870,7 @@ function Lr({ className: t }) {
1869
1870
  }
1870
1871
  );
1871
1872
  }
1872
- function qr({
1873
+ function Mr({
1873
1874
  label: t = "Clear",
1874
1875
  variant: a = "secondary",
1875
1876
  className: o
@@ -1890,18 +1891,18 @@ function qr({
1890
1891
  );
1891
1892
  }
1892
1893
  export {
1893
- Ir as C,
1894
- Tr as E,
1895
- Dr as F,
1894
+ Vr as C,
1895
+ _r as E,
1896
+ Er as F,
1896
1897
  sr as L,
1897
- Fr as V,
1898
- Lr as a,
1899
- _r as b,
1900
- Ar as c,
1898
+ Ir as V,
1899
+ qr as a,
1900
+ Ar as b,
1901
+ Lr as c,
1901
1902
  nr as d,
1902
- Vr as e,
1903
- Er as f,
1903
+ Tr as e,
1904
+ Fr as f,
1904
1905
  pr as g,
1905
- qr as h,
1906
+ Mr as h,
1906
1907
  Le as u
1907
1908
  };
@@ -1,4 +1,4 @@
1
- "use strict";const J=require("./index-jSrCwPQz.js"),v=require("react"),s=require("./code-editor-M7HTUhdF.js"),f=require("./dashboard-cB3xmTNn.js"),e=require("react/jsx-runtime");require("./analyze-result-contract-BswhsmWT.js");require("../value-format-preferences/index.cjs");const ge=require("./search-Dcud9ajy.js"),Se=require("./save-Xdc4pnys.js");/**
1
+ "use strict";const J=require("./index-jSrCwPQz.cjs"),v=require("react"),s=require("./code-editor-BYVorgOf.cjs"),f=require("./dashboard-CAiwJW3L.cjs"),e=require("react/jsx-runtime");require("./validators-9D4KBqKD.cjs");require("./analyze-result-contract-BHb7sUUW.cjs");require("../value-format-preferences/index.cjs");const ge=require("./search-6ZmeMq55.cjs"),Se=require("./save-4_uMnE6s.cjs");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- "use strict";const ye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},be=(e,t,n)=>{let r;const a=ye[e];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};function C(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const De={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Me={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Te={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Oe={date:C({formats:De,defaultWidth:"full"}),time:C({formats:Me,defaultWidth:"full"}),dateTime:C({formats:Te,defaultWidth:"full"})},xe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ye=(e,t,n,r)=>xe[e];function N(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const Ne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ke={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},We={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ve={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Se=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ie={ordinalNumber:Se,era:N({values:Ne,defaultWidth:"wide"}),quarter:N({values:Pe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:N({values:pe,defaultWidth:"wide"}),day:N({values:ke,defaultWidth:"wide"}),dayPeriod:N({values:We,defaultWidth:"wide",formattingValues:ve,defaultFormattingWidth:"wide"})};function P(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Fe(s,w=>w.test(o)):Ce(s,w=>w.test(o));let f;f=e.valueCallback?e.valueCallback(c):c,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(o.length);return{value:f,rest:m}}}function Ce(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Fe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ee(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(a.length);return{value:o,rest:s}}}const He=/^(\d+)(th|st|nd|rd)?/i,_e=/\d+/i,Xe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$e={any:[/^b/i,/^(a|c)/i]},Le={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ze={any:[/1/i,/2/i,/3/i,/4/i]},Ue={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ze={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ae={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},je={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Re={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Qe={ordinalNumber:Ee({matchPattern:He,parsePattern:_e,valueCallback:e=>parseInt(e,10)}),era:P({matchPatterns:Xe,defaultMatchWidth:"wide",parsePatterns:$e,defaultParseWidth:"any"}),quarter:P({matchPatterns:Le,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any",valueCallback:e=>e+1}),month:P({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:qe,defaultParseWidth:"any"}),day:P({matchPatterns:Ze,defaultMatchWidth:"wide",parsePatterns:Ae,defaultParseWidth:"any"}),dayPeriod:P({matchPatterns:je,defaultMatchWidth:"any",parsePatterns:Re,defaultParseWidth:"any"})},ue={code:"en-US",formatDistance:be,formatLong:Oe,formatRelative:Ye,localize:Ie,match:Qe,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Ge={};function O(){return Ge}const ce=6048e5,Be=864e5,Ve=6e4,Je=36e5,Ke=43200,et=1440;function g(e){const t=Object.prototype.toString.call(e);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):new Date(NaN)}function j(e){const t=g(e);return t.setHours(0,0,0,0),t}function $(e){const t=g(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tt(e,t){const n=j(e),r=j(t),a=+n-$(n),i=+r-$(r);return Math.round((a-i)/Be)}function b(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function nt(e){const t=g(e),n=b(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function rt(e){const t=g(e);return tt(t,nt(t))+1}function p(e,t){var s,c,f,m;const n=O(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=g(e),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function k(e){return p(e,{weekStartsOn:1})}function fe(e){const t=g(e),n=t.getFullYear(),r=b(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=k(r),i=b(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=k(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function at(e){const t=fe(e),n=b(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),k(n)}function it(e){const t=g(e),n=+k(t)-+at(t);return Math.round(n/ce)+1}function de(e,t){var m,w,x,Y;const n=g(e),r=n.getFullYear(),a=O(),i=(t==null?void 0:t.firstWeekContainsDate)??((w=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??a.firstWeekContainsDate??((Y=(x=a.locale)==null?void 0:x.options)==null?void 0:Y.firstWeekContainsDate)??1,o=b(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const s=p(o,t),c=b(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const f=p(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function ot(e,t){var s,c,f,m;const n=O(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=de(e,t),i=b(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),p(i,t)}function st(e,t){const n=g(e),r=+p(n,t)-+ot(n,t);return Math.round(r/ce)+1}function u(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const y={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return u(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):u(n+1,2)},d(e,t){return u(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return u(e.getHours()%12||12,t.length)},H(e,t){return u(e.getHours(),t.length)},m(e,t){return u(e.getMinutes(),t.length)},s(e,t){return u(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return u(a,t.length)}},M={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return y.y(e,t)},Y:function(e,t,n,r){const a=de(e,r),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return u(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):u(i,t.length)},R:function(e,t){const n=fe(e);return u(n,t.length)},u:function(e,t){const n=e.getFullYear();return u(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return u(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return u(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return y.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return u(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=st(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):u(a,t.length)},I:function(e,t,n){const r=it(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):u(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):y.d(e,t)},D:function(e,t,n){const r=rt(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):u(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return u(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return u(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return u(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=M.noon:r===0?a=M.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=M.evening:r>=12?a=M.afternoon:r>=4?a=M.morning:a=M.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return y.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):y.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):u(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):u(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):y.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):y.s(e,t)},S:function(e,t){return y.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return G(r);case"XXXX":case"XX":return D(r);case"XXXXX":case"XXX":default:return D(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return G(r);case"xxxx":case"xx":return D(r);case"xxxxx":case"xxx":default:return D(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Q(r,":");case"OOOO":default:return"GMT"+D(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Q(r,":");case"zzzz":default:return"GMT"+D(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return u(r,t.length)},T:function(e,t,n){const r=e.getTime();return u(r,t.length)}};function Q(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+u(i,2)}function G(e,t){return e%60===0?(e>0?"-":"+")+u(Math.abs(e)/60,2):D(e,t)}function D(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=u(Math.trunc(r/60),2),i=u(r%60,2);return n+a+t+i}const B=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},le=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ut=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return B(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",B(r,t)).replace("{{time}}",le(a,t))},ct={p:le,P:ut},ft=/^D+$/,dt=/^Y+$/,lt=["D","DD","YY","YYYY"];function mt(e){return ft.test(e)}function ht(e){return dt.test(e)}function gt(e,t,n){const r=wt(e,t,n);if(console.warn(r),lt.includes(e))throw new RangeError(r)}function wt(e,t,n){const r=e[0]==="Y"?"years":"days of the month";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`}function yt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bt(e){if(!yt(e)&&typeof e!="number")return!1;const t=g(e);return!isNaN(Number(t))}const Dt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tt=/^'([^]*?)'?$/,Ot=/''/g,xt=/[a-zA-Z]/;function me(e,t,n){var m,w,x,Y,U,q,Z,A;const r=O(),a=(n==null?void 0:n.locale)??r.locale??ue,i=(n==null?void 0:n.firstWeekContainsDate)??((w=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??r.firstWeekContainsDate??((Y=(x=r.locale)==null?void 0:x.options)==null?void 0:Y.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((q=(U=n==null?void 0:n.locale)==null?void 0:U.options)==null?void 0:q.weekStartsOn)??r.weekStartsOn??((A=(Z=r.locale)==null?void 0:Z.options)==null?void 0:A.weekStartsOn)??0,s=g(e);if(!bt(s))throw new RangeError("Invalid time value");let c=t.match(Mt).map(h=>{const l=h[0];if(l==="p"||l==="P"){const I=ct[l];return I(h,a.formatLong)}return h}).join("").match(Dt).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const l=h[0];if(l==="'")return{isToken:!1,value:Yt(h)};if(R[l])return{isToken:!0,value:h};if(l.match(xt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const f={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(h=>{if(!h.isToken)return h.value;const l=h.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ht(l)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&mt(l))&&gt(l,t,String(e));const I=R[l[0]];return I(s,l,a.localize,f)}).join("")}function Yt(e){const t=e.match(Tt);return t?t[1].replace(Ot,"'"):e}function Nt(){return Object.assign({},O())}function V(e,t,n){const r=Nt(),a=kt(e,n.timeZone,n.locale??r.locale);return"formatToParts"in a?Pt(a,t):pt(a,t)}function Pt(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function pt(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function kt(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Wt(e,t){const n=Ft(t);return"formatToParts"in n?St(n,e):It(n,e)}const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function St(e,t){try{const n=e.formatToParts(t),r=[];for(let a=0;a<n.length;a++){const i=vt[n[a].type];i!==void 0&&(r[i]=parseInt(n[a].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function It(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const F={},J=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Ct=J==="06/25/2014, 00:00:00"||J==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Ft(e){return F[e]||(F[e]=Ct?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),F[e]}function z(e,t,n,r,a,i,o){const s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,a,i,o),s}const K=36e5,Et=6e4,E={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function S(e,t,n){if(!e)return 0;let r=E.timezoneZ.exec(e);if(r)return 0;let a,i;if(r=E.timezoneHH.exec(e),r)return a=parseInt(r[1],10),ee(a)?-(a*K):NaN;if(r=E.timezoneHHMM.exec(e),r){a=parseInt(r[2],10);const o=parseInt(r[3],10);return ee(a,o)?(i=Math.abs(a)*K+o*Et,r[1]==="+"?-i:i):NaN}if(Xt(e)){t=new Date(t||Date.now());const o=n?t:Ht(t),s=L(o,e);return-(n?s:_t(t,s,e))}return NaN}function Ht(e){return z(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function L(e,t){const n=Wt(e,t),r=z(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let a=e.getTime();const i=a%1e3;return a-=i>=0?i:1e3+i,r-a}function _t(e,t,n){let a=e.getTime()-t;const i=L(new Date(a),n);if(t===i)return t;a-=i-t;const o=L(new Date(a),n);return i===o?i:Math.max(i,o)}function ee(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const te={};function Xt(e){if(te[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),te[e]=!0,!0}catch{return!1}}const $t=60*1e3,Lt={X:function(e,t,n){const r=H(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return ne(r);case"XXXX":case"XX":return T(r);case"XXXXX":case"XXX":default:return T(r,":")}},x:function(e,t,n){const r=H(n.timeZone,e);switch(t){case"x":return ne(r);case"xxxx":case"xx":return T(r);case"xxxxx":case"xxx":default:return T(r,":")}},O:function(e,t,n){const r=H(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+zt(r,":");case"OOOO":default:return"GMT"+T(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return V("short",e,n);case"zzzz":default:return V("long",e,n)}}};function H(e,t){const n=e?S(e,t,!0)/$t:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function W(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function T(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=W(Math.floor(r/60),2),i=W(Math.floor(r%60),2);return n+a+t+i}function ne(e,t){return e%60===0?(e>0?"-":"+")+W(Math.abs(e)/60,2):T(e,t)}function zt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+W(i,2)}function re(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const he=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,_=36e5,ae=6e4,Ut=2,d={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:he};function v(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?Ut:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=qt(e),{year:a,restDateString:i}=Zt(r.date,n),o=At(i,a);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){const s=o.getTime();let c=0,f;if(r.time&&(c=jt(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(f=S(r.timeZone||t.timeZone,new Date(s+c)),isNaN(f))return new Date(NaN)}else f=re(new Date(s+c)),f=re(new Date(s+c+f));return new Date(s+c+f)}else return new Date(NaN)}function qt(e){const t={};let n=d.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=d.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const a=d.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function Zt(e,t){if(e){const n=d.YYY[t],r=d.YYYYY[t];let a=d.YYYY.exec(e)||r.exec(e);if(a){const i=a[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(a=d.YY.exec(e)||n.exec(e),a){const i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function At(e,t){if(t===null)return null;let n,r,a;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=d.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,oe(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=d.DDD.exec(e),i){n=new Date(0);const o=parseInt(i[1],10);return Gt(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(i=d.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const o=parseInt(i[2],10);return oe(t,r,o)?(n.setUTCFullYear(t,r,o),n):new Date(NaN)}if(i=d.Www.exec(e),i)return a=parseInt(i[1],10)-1,se(a)?ie(t,a):new Date(NaN);if(i=d.WwwD.exec(e),i){a=parseInt(i[1],10)-1;const o=parseInt(i[2],10)-1;return se(a,o)?ie(t,a,o):new Date(NaN)}return null}function jt(e){let t,n,r=d.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),X(t)?t%24*_:NaN;if(r=d.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),X(t,n)?t%24*_+n*ae:NaN;if(r=d.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const a=parseFloat(r[3].replace(",","."));return X(t,n,a)?t%24*_+n*ae+a*1e3:NaN}return null}function ie(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const Rt=[31,28,31,30,31,30,31,31,30,31,30,31],Qt=[31,29,31,30,31,30,31,31,30,31,30,31];function ge(e){return e%400===0||e%4===0&&e%100!==0}function oe(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=ge(e);if(r&&n>Qt[t]||!r&&n>Rt[t])return!1}return!0}function Gt(e,t){if(t<1)return!1;const n=ge(e);return!(n&&t>366||!n&&t>365)}function se(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function X(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Bt=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Vt(e,t,n={}){t=String(t);const r=t.match(Bt);if(r){const a=v(n.originalDate||e,n);t=r.reduce(function(i,o){if(o[0]==="'")return i;const s=i.indexOf(o),c=i[s-1]==="'",f=i.replace(o,"'"+Lt[o[0]](a,o,n)+"'");return c?f.substring(0,s-1)+f.substring(s+1):f},t)}return me(e,t,n)}function we(e,t,n){e=v(e,n);const r=S(t,e,!0),a=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),i.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),i}function Jt(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Vt(we(e,t,{timeZone:r.timeZone}),n,r)}function Kt(e,t,n){if(typeof e=="string"&&!e.match(he))return v(e,{...n,timeZone:t});e=v(e,n);const r=z(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),a=S(t,new Date(r));return new Date(r+a)}exports.constructFrom=b;exports.enUS=ue;exports.format=me;exports.formatInTimeZone=Jt;exports.fromZonedTime=Kt;exports.getDefaultOptions=O;exports.getTimezoneOffsetInMilliseconds=$;exports.millisecondsInHour=Je;exports.millisecondsInMinute=Ve;exports.minutesInDay=et;exports.minutesInMonth=Ke;exports.toDate=g;exports.toZonedTime=we;
1
+ "use strict";const ye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},be=(e,t,n)=>{let r;const a=ye[e];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};function C(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const De={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Me={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Te={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Oe={date:C({formats:De,defaultWidth:"full"}),time:C({formats:Me,defaultWidth:"full"}),dateTime:C({formats:Te,defaultWidth:"full"})},xe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ye=(e,t,n,r)=>xe[e];function N(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const Ne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ke={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},We={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ve={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Se=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ie={ordinalNumber:Se,era:N({values:Ne,defaultWidth:"wide"}),quarter:N({values:Pe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:N({values:pe,defaultWidth:"wide"}),day:N({values:ke,defaultWidth:"wide"}),dayPeriod:N({values:We,defaultWidth:"wide",formattingValues:ve,defaultFormattingWidth:"wide"})};function P(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Fe(s,w=>w.test(o)):Ce(s,w=>w.test(o));let f;f=e.valueCallback?e.valueCallback(c):c,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(o.length);return{value:f,rest:m}}}function Ce(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Fe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ee(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(a.length);return{value:o,rest:s}}}const He=/^(\d+)(th|st|nd|rd)?/i,_e=/\d+/i,Xe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$e={any:[/^b/i,/^(a|c)/i]},Le={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ze={any:[/1/i,/2/i,/3/i,/4/i]},Ue={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ze={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ae={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},je={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Re={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Qe={ordinalNumber:Ee({matchPattern:He,parsePattern:_e,valueCallback:e=>parseInt(e,10)}),era:P({matchPatterns:Xe,defaultMatchWidth:"wide",parsePatterns:$e,defaultParseWidth:"any"}),quarter:P({matchPatterns:Le,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any",valueCallback:e=>e+1}),month:P({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:qe,defaultParseWidth:"any"}),day:P({matchPatterns:Ze,defaultMatchWidth:"wide",parsePatterns:Ae,defaultParseWidth:"any"}),dayPeriod:P({matchPatterns:je,defaultMatchWidth:"any",parsePatterns:Re,defaultParseWidth:"any"})},ue={code:"en-US",formatDistance:be,formatLong:Oe,formatRelative:Ye,localize:Ie,match:Qe,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Ge={};function O(){return Ge}const ce=6048e5,Be=864e5,Ve=6e4,Je=36e5,Ke=43200,et=1440;function g(e){const t=Object.prototype.toString.call(e);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):new Date(NaN)}function j(e){const t=g(e);return t.setHours(0,0,0,0),t}function $(e){const t=g(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tt(e,t){const n=j(e),r=j(t),a=+n-$(n),i=+r-$(r);return Math.round((a-i)/Be)}function b(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function nt(e){const t=g(e),n=b(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function rt(e){const t=g(e);return tt(t,nt(t))+1}function p(e,t){var s,c,f,m;const n=O(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=g(e),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function k(e){return p(e,{weekStartsOn:1})}function fe(e){const t=g(e),n=t.getFullYear(),r=b(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=k(r),i=b(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=k(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function at(e){const t=fe(e),n=b(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),k(n)}function it(e){const t=g(e),n=+k(t)-+at(t);return Math.round(n/ce)+1}function de(e,t){var m,w,x,Y;const n=g(e),r=n.getFullYear(),a=O(),i=(t==null?void 0:t.firstWeekContainsDate)??((w=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??a.firstWeekContainsDate??((Y=(x=a.locale)==null?void 0:x.options)==null?void 0:Y.firstWeekContainsDate)??1,o=b(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const s=p(o,t),c=b(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const f=p(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function ot(e,t){var s,c,f,m;const n=O(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=de(e,t),i=b(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),p(i,t)}function st(e,t){const n=g(e),r=+p(n,t)-+ot(n,t);return Math.round(r/ce)+1}function u(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const y={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return u(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):u(n+1,2)},d(e,t){return u(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return u(e.getHours()%12||12,t.length)},H(e,t){return u(e.getHours(),t.length)},m(e,t){return u(e.getMinutes(),t.length)},s(e,t){return u(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return u(a,t.length)}},M={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return y.y(e,t)},Y:function(e,t,n,r){const a=de(e,r),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return u(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):u(i,t.length)},R:function(e,t){const n=fe(e);return u(n,t.length)},u:function(e,t){const n=e.getFullYear();return u(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return u(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return u(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return y.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return u(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=st(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):u(a,t.length)},I:function(e,t,n){const r=it(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):u(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):y.d(e,t)},D:function(e,t,n){const r=rt(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):u(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return u(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return u(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return u(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=M.noon:r===0?a=M.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=M.evening:r>=12?a=M.afternoon:r>=4?a=M.morning:a=M.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return y.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):y.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):u(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):u(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):y.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):y.s(e,t)},S:function(e,t){return y.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return G(r);case"XXXX":case"XX":return D(r);case"XXXXX":case"XXX":default:return D(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return G(r);case"xxxx":case"xx":return D(r);case"xxxxx":case"xxx":default:return D(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Q(r,":");case"OOOO":default:return"GMT"+D(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Q(r,":");case"zzzz":default:return"GMT"+D(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return u(r,t.length)},T:function(e,t,n){const r=e.getTime();return u(r,t.length)}};function Q(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+u(i,2)}function G(e,t){return e%60===0?(e>0?"-":"+")+u(Math.abs(e)/60,2):D(e,t)}function D(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=u(Math.trunc(r/60),2),i=u(r%60,2);return n+a+t+i}const B=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},le=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ut=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return B(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",B(r,t)).replace("{{time}}",le(a,t))},ct={p:le,P:ut},ft=/^D+$/,dt=/^Y+$/,lt=["D","DD","YY","YYYY"];function mt(e){return ft.test(e)}function ht(e){return dt.test(e)}function gt(e,t,n){const r=wt(e,t,n);if(console.warn(r),lt.includes(e))throw new RangeError(r)}function wt(e,t,n){const r=e[0]==="Y"?"years":"days of the month";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`}function yt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bt(e){if(!yt(e)&&typeof e!="number")return!1;const t=g(e);return!isNaN(Number(t))}const Dt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tt=/^'([^]*?)'?$/,Ot=/''/g,xt=/[a-zA-Z]/;function me(e,t,n){var m,w,x,Y,U,q,Z,A;const r=O(),a=(n==null?void 0:n.locale)??r.locale??ue,i=(n==null?void 0:n.firstWeekContainsDate)??((w=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??r.firstWeekContainsDate??((Y=(x=r.locale)==null?void 0:x.options)==null?void 0:Y.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((q=(U=n==null?void 0:n.locale)==null?void 0:U.options)==null?void 0:q.weekStartsOn)??r.weekStartsOn??((A=(Z=r.locale)==null?void 0:Z.options)==null?void 0:A.weekStartsOn)??0,s=g(e);if(!bt(s))throw new RangeError("Invalid time value");let c=t.match(Mt).map(h=>{const l=h[0];if(l==="p"||l==="P"){const I=ct[l];return I(h,a.formatLong)}return h}).join("").match(Dt).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const l=h[0];if(l==="'")return{isToken:!1,value:Yt(h)};if(R[l])return{isToken:!0,value:h};if(l.match(xt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const f={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(h=>{if(!h.isToken)return h.value;const l=h.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ht(l)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&mt(l))&&gt(l,t,String(e));const I=R[l[0]];return I(s,l,a.localize,f)}).join("")}function Yt(e){const t=e.match(Tt);return t?t[1].replace(Ot,"'"):e}function Nt(){return Object.assign({},O())}function V(e,t,n){const r=Nt(),a=kt(e,n.timeZone,n.locale??r.locale);return"formatToParts"in a?Pt(a,t):pt(a,t)}function Pt(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function pt(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function kt(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Wt(e,t){const n=Ft(t);return"formatToParts"in n?St(n,e):It(n,e)}const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function St(e,t){try{const n=e.formatToParts(t),r=[];for(let a=0;a<n.length;a++){const i=vt[n[a].type];i!==void 0&&(r[i]=parseInt(n[a].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function It(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const F={},J=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Ct=J==="06/25/2014, 00:00:00"||J==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Ft(e){return F[e]||(F[e]=Ct?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),F[e]}function z(e,t,n,r,a,i,o){const s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,a,i,o),s}const K=36e5,Et=6e4,E={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function S(e,t,n){if(!e)return 0;let r=E.timezoneZ.exec(e);if(r)return 0;let a,i;if(r=E.timezoneHH.exec(e),r)return a=parseInt(r[1],10),ee(a)?-(a*K):NaN;if(r=E.timezoneHHMM.exec(e),r){a=parseInt(r[2],10);const o=parseInt(r[3],10);return ee(a,o)?(i=Math.abs(a)*K+o*Et,r[1]==="+"?-i:i):NaN}if(Xt(e)){t=new Date(t||Date.now());const o=n?t:Ht(t),s=L(o,e);return-(n?s:_t(t,s,e))}return NaN}function Ht(e){return z(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function L(e,t){const n=Wt(e,t),r=z(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let a=e.getTime();const i=a%1e3;return a-=i>=0?i:1e3+i,r-a}function _t(e,t,n){let a=e.getTime()-t;const i=L(new Date(a),n);if(t===i)return t;a-=i-t;const o=L(new Date(a),n);return i===o?i:Math.max(i,o)}function ee(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const te={};function Xt(e){if(te[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),te[e]=!0,!0}catch{return!1}}const $t=60*1e3,Lt={X:function(e,t,n){const r=H(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return ne(r);case"XXXX":case"XX":return T(r);case"XXXXX":case"XXX":default:return T(r,":")}},x:function(e,t,n){const r=H(n.timeZone,e);switch(t){case"x":return ne(r);case"xxxx":case"xx":return T(r);case"xxxxx":case"xxx":default:return T(r,":")}},O:function(e,t,n){const r=H(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+zt(r,":");case"OOOO":default:return"GMT"+T(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return V("short",e,n);case"zzzz":default:return V("long",e,n)}}};function H(e,t){const n=e?S(e,t,!0)/$t:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function W(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function T(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=W(Math.floor(r/60),2),i=W(Math.floor(r%60),2);return n+a+t+i}function ne(e,t){return e%60===0?(e>0?"-":"+")+W(Math.abs(e)/60,2):T(e,t)}function zt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;return i===0?n+String(a):n+String(a)+t+W(i,2)}function re(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const he=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,_=36e5,ae=6e4,Ut=2,d={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:he};function v(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?Ut:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=qt(e),{year:a,restDateString:i}=Zt(r.date,n),o=At(i,a);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){const s=o.getTime();let c=0,f;if(r.time&&(c=jt(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(f=S(r.timeZone||t.timeZone,new Date(s+c)),isNaN(f))return new Date(NaN)}else f=re(new Date(s+c)),f=re(new Date(s+c+f));return new Date(s+c+f)}else return new Date(NaN)}function qt(e){const t={};let n=d.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=d.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const a=d.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function Zt(e,t){if(e){const n=d.YYY[t],r=d.YYYYY[t];let a=d.YYYY.exec(e)||r.exec(e);if(a){const i=a[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(a=d.YY.exec(e)||n.exec(e),a){const i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function At(e,t){if(t===null)return null;let n,r,a;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=d.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,oe(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=d.DDD.exec(e),i){n=new Date(0);const o=parseInt(i[1],10);return Gt(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(i=d.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const o=parseInt(i[2],10);return oe(t,r,o)?(n.setUTCFullYear(t,r,o),n):new Date(NaN)}if(i=d.Www.exec(e),i)return a=parseInt(i[1],10)-1,se(a)?ie(t,a):new Date(NaN);if(i=d.WwwD.exec(e),i){a=parseInt(i[1],10)-1;const o=parseInt(i[2],10)-1;return se(a,o)?ie(t,a,o):new Date(NaN)}return null}function jt(e){let t,n,r=d.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),X(t)?t%24*_:NaN;if(r=d.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),X(t,n)?t%24*_+n*ae:NaN;if(r=d.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const a=parseFloat(r[3].replace(",","."));return X(t,n,a)?t%24*_+n*ae+a*1e3:NaN}return null}function ie(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const a=r.getUTCDay()||7,i=t*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}const Rt=[31,28,31,30,31,30,31,31,30,31,30,31],Qt=[31,29,31,30,31,30,31,31,30,31,30,31];function ge(e){return e%400===0||e%4===0&&e%100!==0}function oe(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=ge(e);if(r&&n>Qt[t]||!r&&n>Rt[t])return!1}return!0}function Gt(e,t){if(t<1)return!1;const n=ge(e);return!(n&&t>366||!n&&t>365)}function se(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function X(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Bt=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Vt(e,t,n={}){t=String(t);const r=t.match(Bt);if(r){const a=v(n.originalDate||e,n);t=r.reduce(function(i,o){if(o[0]==="'")return i;const s=i.indexOf(o),c=i[s-1]==="'",f=i.replace(o,"'"+Lt[o[0]](a,o,n)+"'");return c?f.substring(0,s-1)+f.substring(s+1):f},t)}return me(e,t,n)}function we(e,t,n){e=v(e,n);const r=S(t,e,!0),a=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),i.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),i}function Jt(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Vt(we(e,t,{timeZone:r.timeZone}),n,r)}function Kt(e,t,n){if(typeof e=="string"&&!e.match(he))return v(e,{...n,timeZone:t});e=v(e,n);const r=z(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),a=S(t,new Date(r));return new Date(r+a)}function en(e){if(!e||typeof e!="object")return!1;const t=e.type;return t==="number"||t==="currency"||t==="percent"||t==="scientific"}exports.constructFrom=b;exports.enUS=ue;exports.format=me;exports.formatInTimeZone=Jt;exports.fromZonedTime=Kt;exports.getDefaultOptions=O;exports.getTimezoneOffsetInMilliseconds=$;exports.isNumericCanonicalFormat=en;exports.millisecondsInHour=Je;exports.millisecondsInMinute=Ve;exports.minutesInDay=et;exports.minutesInMonth=Ke;exports.toDate=g;exports.toZonedTime=we;
@@ -369,7 +369,7 @@ const Ce = /^(\d+)(th|st|nd|rd)?/i, Fe = /\d+/i, Ee = {
369
369
  }, Ue = {
370
370
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
371
371
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
372
- }, Ae = {
372
+ }, je = {
373
373
  any: {
374
374
  am: /^a/i,
375
375
  pm: /^p/i,
@@ -380,7 +380,7 @@ const Ce = /^(\d+)(th|st|nd|rd)?/i, Fe = /\d+/i, Ee = {
380
380
  evening: /evening/i,
381
381
  night: /night/i
382
382
  }
383
- }, je = {
383
+ }, Ae = {
384
384
  ordinalNumber: Ie({
385
385
  matchPattern: Ce,
386
386
  parsePattern: Fe,
@@ -414,7 +414,7 @@ const Ce = /^(\d+)(th|st|nd|rd)?/i, Fe = /\d+/i, Ee = {
414
414
  dayPeriod: N({
415
415
  matchPatterns: Ue,
416
416
  defaultMatchWidth: "any",
417
- parsePatterns: Ae,
417
+ parsePatterns: je,
418
418
  defaultParseWidth: "any"
419
419
  })
420
420
  }, Ze = {
@@ -423,7 +423,7 @@ const Ce = /^(\d+)(th|st|nd|rd)?/i, Fe = /\d+/i, Ee = {
423
423
  formatLong: De,
424
424
  formatRelative: Oe,
425
425
  localize: We,
426
- match: je,
426
+ match: Ae,
427
427
  options: {
428
428
  weekStartsOn: 0,
429
429
  firstWeekContainsDate: 1
@@ -438,7 +438,7 @@ function g(e) {
438
438
  const t = Object.prototype.toString.call(e);
439
439
  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);
440
440
  }
441
- function j(e) {
441
+ function A(e) {
442
442
  const t = g(e);
443
443
  return t.setHours(0, 0, 0, 0), t;
444
444
  }
@@ -457,7 +457,7 @@ function Z(e) {
457
457
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
458
458
  }
459
459
  function Ge(e, t) {
460
- const n = j(e), r = j(t), a = +n - Z(n), i = +r - Z(r);
460
+ const n = A(e), r = A(t), a = +n - Z(n), i = +r - Z(r);
461
461
  return Math.round((a - i) / Qe);
462
462
  }
463
463
  function D(e, t) {
@@ -1151,8 +1151,8 @@ function lt(e) {
1151
1151
  }
1152
1152
  const mt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ht = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, gt = /^'([^]*?)'?$/, wt = /''/g, yt = /[a-zA-Z]/;
1153
1153
  function bt(e, t, n) {
1154
- var m, w, T, x, q, z, U, A;
1155
- const r = p(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Ze, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((w = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : w.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (T = r.locale) == null ? void 0 : T.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((z = (q = n == null ? void 0 : n.locale) == null ? void 0 : q.options) == null ? void 0 : z.weekStartsOn) ?? r.weekStartsOn ?? ((A = (U = r.locale) == null ? void 0 : U.options) == null ? void 0 : A.weekStartsOn) ?? 0, s = g(e);
1154
+ var m, w, T, x, q, z, U, j;
1155
+ const r = p(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Ze, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((w = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : w.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((x = (T = r.locale) == null ? void 0 : T.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((z = (q = n == null ? void 0 : n.locale) == null ? void 0 : q.options) == null ? void 0 : z.weekStartsOn) ?? r.weekStartsOn ?? ((j = (U = r.locale) == null ? void 0 : U.options) == null ? void 0 : j.weekStartsOn) ?? 0, s = g(e);
1156
1156
  if (!lt(s))
1157
1157
  throw new RangeError("Invalid time value");
1158
1158
  let c = t.match(ht).map((h) => {
@@ -1542,7 +1542,7 @@ function Lt(e, t) {
1542
1542
  if (i = d.DDD.exec(e), i) {
1543
1543
  n = /* @__PURE__ */ new Date(0);
1544
1544
  const o = parseInt(i[1], 10);
1545
- return At(t, o) ? (n.setUTCFullYear(t, 0, o), n) : /* @__PURE__ */ new Date(NaN);
1545
+ return jt(t, o) ? (n.setUTCFullYear(t, 0, o), n) : /* @__PURE__ */ new Date(NaN);
1546
1546
  }
1547
1547
  if (i = d.MMDD.exec(e), i) {
1548
1548
  n = /* @__PURE__ */ new Date(0), r = parseInt(i[1], 10) - 1;
@@ -1594,7 +1594,7 @@ function oe(e, t, n) {
1594
1594
  }
1595
1595
  return !0;
1596
1596
  }
1597
- function At(e, t) {
1597
+ function jt(e, t) {
1598
1598
  if (t < 1)
1599
1599
  return !1;
1600
1600
  const n = me(e);
@@ -1606,10 +1606,10 @@ function se(e, t) {
1606
1606
  function X(e, t, n) {
1607
1607
  return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
1608
1608
  }
1609
- const jt = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
1609
+ const At = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
1610
1610
  function Zt(e, t, n = {}) {
1611
1611
  t = String(t);
1612
- const r = t.match(jt);
1612
+ const r = t.match(At);
1613
1613
  if (r) {
1614
1614
  const a = v(n.originalDate || e, n);
1615
1615
  t = r.reduce(function(i, o) {
@@ -1640,18 +1640,24 @@ function Kt(e, t, n) {
1640
1640
  const r = L(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), a = S(t, new Date(r));
1641
1641
  return new Date(r + a);
1642
1642
  }
1643
+ function en(e) {
1644
+ if (!e || typeof e != "object") return !1;
1645
+ const t = e.type;
1646
+ return t === "number" || t === "currency" || t === "percent" || t === "scientific";
1647
+ }
1643
1648
  export {
1644
1649
  Bt as a,
1645
1650
  p as b,
1646
1651
  D as c,
1647
- bt as d,
1652
+ Jt as d,
1648
1653
  Ze as e,
1649
- Jt as f,
1654
+ bt as f,
1650
1655
  Z as g,
1651
1656
  Kt as h,
1652
- Gt as i,
1653
- Qt as j,
1654
- Rt as k,
1657
+ en as i,
1658
+ Gt as j,
1659
+ Qt as k,
1660
+ Rt as l,
1655
1661
  Vt as m,
1656
1662
  g as t
1657
1663
  };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./index-jSrCwPQz.js");/**
1
+ "use strict";const t=require("./index-jSrCwPQz.cjs");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import { p as _ } from "./validators-Bce_J7Vd.js";
1
+ import { e as _ } from "./validators-wZ2WlNHc.js";
2
2
  const g = "higher_is_better", D = {
3
3
  displayMode: "difference",
4
4
  showComparison: !0,
@@ -0,0 +1 @@
1
+ "use strict";const g=require("./validators-9D4KBqKD.cjs"),b="higher_is_better",C={displayMode:"difference",showComparison:!0,indicatorStyle:"arrow_badge",showColor:!0,conditionalLabel:!1};function w(o){return g.parseSemaphorIsoInstant(o)!==null}function $(o){var i,e,s,t;if(((i=o.metricComparison)==null?void 0:i.mode)!=="off"){if(((e=o.metricComparison)==null?void 0:e.mode)==="explicit")return{source:"explicit",spec:o.metricComparison.spec};if(!((o.inheritGlobalComparison??((s=o.globalDateComparison)==null?void 0:s.inheritGlobalComparison))===!1||((t=o.globalDateComparison)==null?void 0:t.selection.mode)!=="period"))return{source:"inherited",spec:o.globalDateComparison.selection.spec,...o.globalDateComparison.owner?{owner:o.globalDateComparison.owner}:{}}}}function h(o){if(o.alias)return o.alias;const i=o.entityName&&o.entityName!=="SEMAPHOR_CALCULATED_FIELD"?o.entityName:void 0,e=i&&i!==o.name?`${i}_`:"";if(o.role!=="metric")return`${e}${o.name}`;let s=o.aggregate||"metric";if(o.expression){const t=o.expression.match(/^(COUNT|SUM|AVG|MIN|MAX|MEDIAN|DISTINCT)\s*\(/i);s=t?t[1].toLowerCase():"expr"}else s=s.toLowerCase();return`${e}${o.name}_${s}`}function n(o,i,e){return e?{code:o,message:i,path:e}:{code:o,message:i}}function p(o){return!!o&&typeof o=="object"&&!Array.isArray(o)}function a(o,i,e,s){Object.keys(o).forEach(t=>{i.includes(t)||s.push(n("invalid_comparison_spec",`Comparison kind does not accept field "${t}".`,`${e}.${t}`))})}function f(o,i,e){o.alignment!==void 0&&o.alignment!=="calendar"&&o.alignment!=="weekday"&&e.push(n("invalid_comparison_spec",'Comparison alignment must be "calendar" or "weekday".',`${i}.alignment`)),o.toDate!==void 0&&typeof o.toDate!="boolean"&&e.push(n("invalid_comparison_spec","Comparison toDate must be a boolean.",`${i}.toDate`))}function _(o,i,e){o!==void 0&&(typeof o!="number"||!Number.isSafeInteger(o)||o<=0)&&e.push(n("invalid_comparison_spec","Comparison offset must be a positive safe integer.",i))}function d(o,i="comparison"){const e=[];return p(o)?(o.kind==="previous_period"?(a(o,["kind","offsetPeriods","alignment","toDate"],i,e),_(o.offsetPeriods,`${i}.offsetPeriods`,e),f(o,i,e)):o.kind==="previous_year"?(a(o,["kind","offsetYears","alignment","toDate"],i,e),_(o.offsetYears,`${i}.offsetYears`,e),f(o,i,e)):o.kind==="target"?(a(o,["kind","targetValue"],i,e),(typeof o.targetValue!="number"||!Number.isFinite(o.targetValue))&&e.push(n("invalid_comparison_spec","Target comparison requires a finite targetValue.",`${i}.targetValue`))):e.push(n("invalid_comparison_spec","Comparison kind must be previous_period, previous_year, or target.",`${i}.kind`)),{ok:e.length===0,errors:e,warnings:[]}):{ok:!1,errors:[n("invalid_comparison_spec","Comparison spec must be an object.",i)],warnings:[]}}function D(o,i="comparison"){if(!p(o))return{ok:!1,errors:[n("invalid_comparison_config","Comparison config must be an object.",i)],warnings:[]};const e=[];return o.mode==="off"?a(o,["mode"],i,e):o.mode==="explicit"?(a(o,["mode","spec"],i,e),e.push(...d(o.spec,`${i}.spec`).errors)):e.push(n("invalid_comparison_config","Comparison mode must be off or explicit.",`${i}.mode`)),{ok:e.length===0,errors:e,warnings:[]}}function u(o,i="comparisonSelection"){if(!p(o))return{ok:!1,errors:[n("invalid_global_date_comparison","Global Date comparison selection must be an object.",i)],warnings:[]};const e=[];if(o.mode==="off")a(o,["mode"],i,e);else if(o.mode==="period"){a(o,["mode","spec"],i,e);const s=d(o.spec,`${i}.spec`);e.push(...s.errors),p(o.spec)&&o.spec.kind==="target"&&e.push(n("invalid_global_date_comparison","Global Date comparison supports previous_period or previous_year, not target.",`${i}.spec.kind`))}else e.push(n("invalid_global_date_comparison","Global Date comparison mode must be off or period.",`${i}.mode`));return{ok:e.length===0,errors:e,warnings:[]}}function I(o,i="globalDateComparison"){if(!p(o))return{ok:!1,errors:[n("invalid_global_date_comparison","Global Date comparison context must be an object.",i)],warnings:[]};const e=[];return a(o,["selection","inheritGlobalComparison","owner","referenceTime"],i,e),e.push(...u(o.selection,`${i}.selection`).errors),o.inheritGlobalComparison!==void 0&&o.inheritGlobalComparison!==!1&&e.push(n("invalid_global_date_comparison","inheritGlobalComparison may only be false when present.",`${i}.inheritGlobalComparison`)),o.owner!==void 0&&(p(o.owner)?o.owner.kind==="global_date"?a(o.owner,["kind"],`${i}.owner`,e):o.owner.kind==="field_date"?(a(o.owner,["kind","filterId","label"],`${i}.owner`,e),(typeof o.owner.filterId!="string"||!o.owner.filterId.trim())&&e.push(n("invalid_global_date_comparison","Field Date comparison owner requires a non-empty filterId.",`${i}.owner.filterId`)),(typeof o.owner.label!="string"||!o.owner.label.trim())&&e.push(n("invalid_global_date_comparison","Field Date comparison owner requires a non-empty label.",`${i}.owner.label`))):e.push(n("invalid_global_date_comparison","Comparison owner kind must be global_date or field_date.",`${i}.owner.kind`)):e.push(n("invalid_global_date_comparison","Comparison owner must be an object.",`${i}.owner`))),o.referenceTime!==void 0&&(typeof o.referenceTime!="string"||!w(o.referenceTime))&&e.push(n("invalid_global_date_comparison","referenceTime must be a valid ISO date-time string when present.",`${i}.referenceTime`)),{ok:e.length===0,errors:e,warnings:[]}}function M(o,i="comparisonPolarity"){return o==="higher_is_better"||o==="lower_is_better"||o==="neutral"?{ok:!0,errors:[],warnings:[]}:{ok:!1,errors:[n("invalid_comparison_polarity","Comparison polarity must be higher_is_better, lower_is_better, or neutral.",i)],warnings:[]}}function S(o,i="comparisonPresentation"){if(!p(o))return{ok:!1,errors:[n("invalid_comparison_presentation","Comparison presentation must be an object.",i)],warnings:[]};const e=[],s=["displayMode","showComparison","precision","indicatorStyle","showColor","position","conditionalLabel","labelName","conditionalLabels","colors"];return Object.keys(o).forEach(r=>{s.includes(r)||e.push(n("invalid_comparison_presentation",`Comparison presentation does not accept field "${r}".`,`${i}.${r}`))}),[["displayMode",["difference","percent_change","both","ratio"]],["indicatorStyle",["arrow_badge","arrow","badge","none"]],["position",["left","right","top"]]].forEach(([r,l])=>{o[r]!==void 0&&!l.includes(o[r])&&e.push(n("invalid_comparison_presentation",`Comparison presentation ${r} is invalid.`,`${i}.${r}`))}),["showComparison","showColor","conditionalLabel"].forEach(r=>{o[r]!==void 0&&typeof o[r]!="boolean"&&e.push(n("invalid_comparison_presentation",`Comparison presentation ${r} must be a boolean.`,`${i}.${r}`))}),o.precision!==void 0&&(typeof o.precision!="number"||!Number.isInteger(o.precision)||o.precision<0||o.precision>6)&&e.push(n("invalid_comparison_presentation","Comparison presentation precision must be an integer from 0 through 6.",`${i}.precision`)),o.labelName!==void 0&&typeof o.labelName!="string"&&e.push(n("invalid_comparison_presentation","Comparison presentation labelName must be a string.",`${i}.labelName`)),["conditionalLabels","colors"].forEach(r=>{const l=o[r];if(l!==void 0){if(!p(l)){e.push(n("invalid_comparison_presentation",`Comparison presentation ${r} must be an object.`,`${i}.${r}`));return}Object.keys(l).forEach(c=>{["increase","decrease","neutral"].includes(c)||e.push(n("invalid_comparison_presentation",`Comparison presentation ${r} does not accept field "${c}".`,`${i}.${r}.${c}`))}),Object.entries(l).forEach(([c,m])=>{m!==void 0&&typeof m!="string"&&e.push(n("invalid_comparison_presentation",`Comparison presentation ${r}.${c} must be a string.`,`${i}.${r}.${c}`))})}}),{ok:e.length===0,errors:e,warnings:[]}}function N(o){return o===null?"unknown":o>0?"increase":o<0?"decrease":"no_change"}function T(o,i){return o==="unknown"||o==="no_change"||i==="neutral"?"neutral":i==="higher_is_better"&&o==="increase"||i==="lower_is_better"&&o==="decrease"?"favorable":"unfavorable"}function y(o){const{currentValue:i,comparisonValue:e,polarity:s=b}=o,r=i!==null&&e!==null?i-e:null,l=r!==null&&e!==null&&e!==0?r/Math.abs(e):null,c=i!==null&&e!==null&&e!==0?i/e:null,m=N(r);return{status:e===null?"insufficient_history":"available",currentValue:i,comparisonValue:e,delta:r,percentChange:l,ratio:c,direction:m,sentiment:T(m,s)}}exports.COMPARISON_PRESENTATION_DEFAULTS=C;exports.DEFAULT_METRIC_COMPARISON_POLARITY=b;exports.evaluateMetricComparison=y;exports.resolveMetricComparisonRequest=$;exports.resolveMetricResultAlias=h;exports.validateComparisonPresentationSpec=S;exports.validateGlobalDateComparisonContext=I;exports.validateGlobalDateComparisonSelection=u;exports.validateMetricComparisonConfig=D;exports.validateMetricComparisonPolarity=M;exports.validateMetricComparisonSpec=d;
@@ -1,4 +1,4 @@
1
- "use strict";const c=require("./index-jSrCwPQz.js");/**
1
+ "use strict";const c=require("./index-jSrCwPQz.cjs");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1,94 @@
1
+ var y = Object.defineProperty;
2
+ var c = (t, e, r) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var u = (t, e, r) => c(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { v as d } from "./temporal-bucket-contract-B2bJ1oe4.js";
5
+ function f(t) {
6
+ return !!(t != null && t.isSubtotal && t.subtotalScope === "pivot-value");
7
+ }
8
+ function v(t) {
9
+ var e;
10
+ return t.expectedPivotFieldIds.length === 0 ? !0 : !!((e = t.classification) != null && e.isSubtotal && t.classification.subtotalScope === "grand-total");
11
+ }
12
+ class a extends Error {
13
+ constructor(r) {
14
+ super(`missing_pivot_member_identity: ${r}`);
15
+ u(this, "deliveryBlocking", !0);
16
+ u(this, "code", "missing_pivot_member_identity");
17
+ this.name = "PivotResultIdentityError";
18
+ }
19
+ }
20
+ function m(t) {
21
+ const { identity: e, columnKey: r, expectedPivotFieldIds: i, allowPrefix: l = !1 } = t, s = t.allowEmpty ?? ((i == null ? void 0 : i.length) || 0) === 0;
22
+ if (!e || typeof e != "object" || Array.isArray(e) || typeof e.metricId != "string" || !e.metricId || typeof e.metricAlias != "string" || !e.metricAlias || !Array.isArray(e.members))
23
+ throw new a(
24
+ `Physical pivot column "${r}" is missing stable metric or member identity.`
25
+ );
26
+ if (e.members.forEach((o, n) => {
27
+ if (!o || typeof o != "object" || Array.isArray(o) || typeof o.fieldId != "string" || !o.fieldId || o.value !== null && typeof o.value != "string" || o.temporalBucket !== void 0 && !d(o.temporalBucket).ok)
28
+ throw new a(
29
+ `Physical pivot column "${r}" has invalid identity for member ${n}.`
30
+ );
31
+ if (i && o.fieldId !== i[n])
32
+ throw new a(
33
+ `Physical pivot column "${r}" has member "${o.fieldId}" at tuple position ${n}; expected "${i[n] || "no member"}".`
34
+ );
35
+ }), e.members.length === 0) {
36
+ if (s) return e.members;
37
+ throw new a(
38
+ `Physical pivot column "${r}" is missing its required pivot tuple.`
39
+ );
40
+ }
41
+ if (i && (!l && e.members.length !== i.length || e.members.length > i.length))
42
+ throw new a(
43
+ `Physical pivot column "${r}" has ${e.members.length} members; expected ${l ? "at most " : ""}${i.length}.`
44
+ );
45
+ return e.members;
46
+ }
47
+ function b(t, e) {
48
+ t.forEach((r) => {
49
+ var l, s, o;
50
+ if (r.pivotIdentity === void 0) return;
51
+ const i = (l = e.columnClassifications) == null ? void 0 : l[r.key];
52
+ m({
53
+ identity: r.pivotIdentity,
54
+ columnKey: r.key,
55
+ expectedPivotFieldIds: e.expectedPivotFieldIds,
56
+ allowPrefix: ((s = e.allowPrefixForColumn) == null ? void 0 : s.call(e, r)) ?? f(i),
57
+ allowEmpty: ((o = e.allowEmptyForColumn) == null ? void 0 : o.call(e, r)) ?? v({
58
+ expectedPivotFieldIds: e.expectedPivotFieldIds,
59
+ classification: i
60
+ })
61
+ });
62
+ });
63
+ }
64
+ function w(t, e, r) {
65
+ var l;
66
+ const i = t == null ? void 0 : t.byRole;
67
+ if (!(!i || typeof i != "object" || Array.isArray(i)))
68
+ return (l = i[r]) == null ? void 0 : l[e];
69
+ }
70
+ function P(t, e) {
71
+ if (!t) return;
72
+ const r = t.byRole;
73
+ if (!r || typeof r != "object" || Array.isArray(r))
74
+ return;
75
+ const i = Object.values(r).flatMap((s) => {
76
+ const o = s == null ? void 0 : s[e];
77
+ return o ? [o] : [];
78
+ });
79
+ if (i.length !== 1) return;
80
+ const [l] = i;
81
+ if (!(l.role === "metric" && Object.values(t.byMetricAlias ?? {}).some(
82
+ (s) => s.role === l.role && s.rawKey === l.rawKey && s.outputKey === l.outputKey
83
+ )))
84
+ return l;
85
+ }
86
+ export {
87
+ a as P,
88
+ P as a,
89
+ f as b,
90
+ m as c,
91
+ b as d,
92
+ v as i,
93
+ w as r
94
+ };
@@ -0,0 +1 @@
1
+ "use strict";var v=Object.defineProperty;var m=(t,e,r)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var n=(t,e,r)=>m(t,typeof e!="symbol"?e+"":e,r);const f=require("./temporal-bucket-contract-ChDBWX8I.cjs");function y(t){return!!(t!=null&&t.isSubtotal&&t.subtotalScope==="pivot-value")}function c(t){var e;return t.expectedPivotFieldIds.length===0?!0:!!((e=t.classification)!=null&&e.isSubtotal&&t.classification.subtotalScope==="grand-total")}class u extends Error{constructor(r){super(`missing_pivot_member_identity: ${r}`);n(this,"deliveryBlocking",!0);n(this,"code","missing_pivot_member_identity");this.name="PivotResultIdentityError"}}function d(t){const{identity:e,columnKey:r,expectedPivotFieldIds:i,allowPrefix:l=!1}=t,s=t.allowEmpty??((i==null?void 0:i.length)||0)===0;if(!e||typeof e!="object"||Array.isArray(e)||typeof e.metricId!="string"||!e.metricId||typeof e.metricAlias!="string"||!e.metricAlias||!Array.isArray(e.members))throw new u(`Physical pivot column "${r}" is missing stable metric or member identity.`);if(e.members.forEach((o,a)=>{if(!o||typeof o!="object"||Array.isArray(o)||typeof o.fieldId!="string"||!o.fieldId||o.value!==null&&typeof o.value!="string"||o.temporalBucket!==void 0&&!f.validateTemporalBucketMetadata(o.temporalBucket).ok)throw new u(`Physical pivot column "${r}" has invalid identity for member ${a}.`);if(i&&o.fieldId!==i[a])throw new u(`Physical pivot column "${r}" has member "${o.fieldId}" at tuple position ${a}; expected "${i[a]||"no member"}".`)}),e.members.length===0){if(s)return e.members;throw new u(`Physical pivot column "${r}" is missing its required pivot tuple.`)}if(i&&(!l&&e.members.length!==i.length||e.members.length>i.length))throw new u(`Physical pivot column "${r}" has ${e.members.length} members; expected ${l?"at most ":""}${i.length}.`);return e.members}function p(t,e){t.forEach(r=>{var l,s,o;if(r.pivotIdentity===void 0)return;const i=(l=e.columnClassifications)==null?void 0:l[r.key];d({identity:r.pivotIdentity,columnKey:r.key,expectedPivotFieldIds:e.expectedPivotFieldIds,allowPrefix:((s=e.allowPrefixForColumn)==null?void 0:s.call(e,r))??y(i),allowEmpty:((o=e.allowEmptyForColumn)==null?void 0:o.call(e,r))??c({expectedPivotFieldIds:e.expectedPivotFieldIds,classification:i})})})}function h(t,e,r){var l;const i=t==null?void 0:t.byRole;if(!(!i||typeof i!="object"||Array.isArray(i)))return(l=i[r])==null?void 0:l[e]}function P(t,e){if(!t)return;const r=t.byRole;if(!r||typeof r!="object"||Array.isArray(r))return;const i=Object.values(r).flatMap(s=>{const o=s==null?void 0:s[e];return o?[o]:[]});if(i.length!==1)return;const[l]=i;if(!(l.role==="metric"&&Object.values(t.byMetricAlias??{}).some(s=>s.role===l.role&&s.rawKey===l.rawKey&&s.outputKey===l.outputKey)))return l}exports.PivotResultIdentityError=u;exports.isPivotEmptyTupleAllowed=c;exports.isPivotSubtotalPrefix=y;exports.requirePivotHeaderMembers=d;exports.requirePivotResultColumnIdentities=p;exports.resolveQueryColumnKeyMapEntry=h;exports.resolveUniqueQueryColumnKeyMapEntry=P;