@yext/pages-components 1.1.6 → 1.1.7

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-COhY74cc.cjs"),m=require("react"),N=require("react-dom");function S(){return i.getRuntime().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,N.createPortal(i.jsxRuntimeExports.jsx(k,{}),document.body))}const B=(e,n)=>{const s=e.dataset.yaAction,t=e.dataset.yaScopeoverride,r=e.dataset.yaEventname,c=t||n;return{action:s,originalEventName:c?`${c}_${r}`:r,scope:c}},C=(e,n)=>{const s=[];let t=e;for(;t!=null&&t.parentElement;)t=t.parentElement.closest(n),t&&s.push(t);return s},b={},R="YA_NO_SCOPE",w=(e,n,s,t)=>{b.hasOwnProperty(e)?b[e].events.map(r=>r.el).includes(t)||(b[e].events=[...b[e].events,{eventData:n,el:t}]):b[e]={scopeEl:s||t,events:[{eventData:n,el:t}]}};function k(){const[e,n]=m.useState(),[s,t]=m.useState([]),[r,c]=m.useState(!1),o=a=>{n(e===a?void 0:a)};return m.useEffect(()=>{let a=null;const d=()=>{a&&a.abort(),a=new AbortController;const l=a.signal;document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-eventname]").forEach((u,j)=>{const p=u.closest("[data-ya-scope]"),v=p==null?void 0:p.dataset.yaScope,x=B(u,v);u.addEventListener("mouseenter",()=>{t([{elem:u,key:`${x.originalEventName}_${j}`,action:x.action,originalEventName:x.originalEventName,scope:x.scope}])},{signal:l}),u.addEventListener("mouseleave",()=>{t([])},{signal:l});const E=u.dataset.yaScopeoverride;E?w(E,x,p,u):[v,...C(u,"[data-ya-scope]").map(y=>y.dataset.yaScope)].forEach(y=>{w(y||R,x,p,u)})}),c(!0)};d();const g=new MutationObserver(d);return g.observe(document,{childList:!0,subtree:!0}),()=>{document.documentElement.classList.remove("xYextDebug"),g.disconnect(),a==null||a.abort()}},[]),r?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger",children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-toggles",children:[i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Events"}),onClick:()=>o("Events"),children:"Events"}),i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Scopes"}),onClick:()=>o("Scopes"),children:"Scopes"})]}),e&&i.jsxRuntimeExports.jsx("div",{className:"analytics-debugger-tabs",children:e==="Events"?i.jsxRuntimeExports.jsx(D,{data:b,setTooltips:t}):i.jsxRuntimeExports.jsx($,{data:b,setTooltips:t})})]}),i.jsxRuntimeExports.jsx(Y,{tooltips:s})]}):null}const O=()=>{const e={};return Object.values(b).forEach(n=>{n.events.forEach(s=>{const{originalEventName:t}=s.eventData;e[t]||(e[t]=[]),!e[t].find(r=>r.el===s.el)&&e[t].push(s)})}),e};function D(e){const{setTooltips:n}=e,[s,t]=m.useState([]),[r,c]=m.useState(""),o=(a,d)=>{s.forEach(l=>l.classList.remove("analytics-event-highlight"));const g=a.map(l=>(l.el.scrollIntoView({behavior:"smooth",block:"nearest"}),l.el.classList.add("analytics-event-highlight"),l.el));t(g),c(d),n(a.map((l,h)=>({elem:l.el,key:`${l.eventData.originalEventName}_${h}`,action:l.eventData.action,originalEventName:l.eventData.originalEventName,scope:l.eventData.scope})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.entries(O()).map(([a,d],g)=>{const l=`${a}_${g}`;return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":l===r}),onClick:()=>o(d,l),children:a})},l)})})]})}function $(e){const{data:n,setTooltips:s}=e,[t,r]=m.useState(""),c=o=>{const a=n[o];a.scopeEl&&(a.scopeEl.scrollIntoView({behavior:"smooth",block:"nearest"}),r(o),s(a.events.map((d,g)=>{const l=d.eventData;return{elem:d.el,key:`${l.originalEventName}_${g}`,action:l.action,originalEventName:l.originalEventName,scope:l.scope}})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(n).map((o,a)=>{if(o!==R)return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":o===t}),onClick:()=>c(o),children:o})},o+a)})})]})}function Y(e){const n=m.useRef({});return m.useEffect(()=>{if(n.current)for(const s of Object.values(n.current)){const t=Object.values(n.current).map(r=>r.el).filter(r=>r!==s.el);T(s,t),s.el.style.visibility="visible"}},[e.tooltips]),i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:e.tooltips.map(s=>i.jsxRuntimeExports.jsxs("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:t=>{t?n.current[s.key]={el:t,tooltip:s}:delete n.current[s.key]},children:[i.jsxRuntimeExports.jsxs("span",{children:["Action: ",s.action]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Scope: ",s.scope]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Original Event Name: ",s.originalEventName]})]},s.key))})}function T(e,n){for(let s=0;s<9;s++){const t=I(e.tooltip.elem.getBoundingClientRect(),e.el,s);if(e.el.style.inset=`${t.top} auto auto ${t.left}`,!!L(e.el.getBoundingClientRect().left,e.el.getBoundingClientRect().top+window.scrollY,e.el.getBoundingClientRect().right,e.el.getBoundingClientRect().bottom+window.scrollY))continue;let c=!0;for(let o=0;o<n.length;o++){const a=n[o];A(e.el,a)&&(c=!1)}if(c)break}}function A(e,n){const s=e.getBoundingClientRect().top+window.scrollY,t=e.getBoundingClientRect().left,r=s+e.clientHeight,c=t+e.clientWidth,o=n.getBoundingClientRect().top+window.scrollY,a=n.getBoundingClientRect().left,d=o+n.clientHeight,g=a+n.clientWidth,l=(h,u,j,p,v,x,E,f)=>j<=v&&v<=E&&p<=x&&x<=f||j<=h&&h<=E&&p<=u&&u<=f||j<=h&&h<=E&&p<=x&&x<=f||j<=v&&v<=E&&p<=u&&u<=f;return l(t,s,a,o,c,r,g,d)||l(a,o,t,s,g,d,c,r)}function L(e,n,s,t){return e<0||s>window.innerWidth||n<0||t>document.documentElement.scrollHeight}function I(e,n,s){const t=n.clientHeight,r=n.clientWidth;let c,o;switch(s){case 0:{o=window.scrollY+e.top-t+"px",c=e.left-r+"px";break}case 1:{o=window.scrollY+e.top-t+"px",c=e.left+"px";break}case 2:{o=window.scrollY+e.top-t+"px",c=e.right+"px";break}case 3:{o=window.scrollY+e.top-t+"px",c=e.right-r+"px";break}case 4:{o=window.scrollY+e.bottom+"px",c=e.left-r+"px";break}case 5:{o=window.scrollY+e.bottom+"px",c=e.left+"px";break}case 6:{o=window.scrollY+e.bottom+"px",c=e.right-r+"px";break}case 7:{o=window.scrollY+e.bottom+"px",c=e.right+"px";break}default:o=0,c=0}return{top:o,left:c}}exports.AnalyticsDebuggerInternal=k;exports.default=S;
@@ -1,14 +1,14 @@
1
- import { g as B, j as o, c as j } from "./index-C8IsJIMm.js";
2
- import { useState as b, useEffect as k, useRef as C } from "react";
3
- import { createPortal as O } from "react-dom";
4
- function q() {
5
- return B().name !== "browser" || window.hasOwnProperty("debuggerInitialized") ? null : (window.debuggerInitialized = !0, O(/* @__PURE__ */ o.jsx(D, {}), document.body));
1
+ import { g as C, j as o, c as j } from "./index-59MyeK1e.js";
2
+ import { useState as w, useEffect as N, useRef as O } from "react";
3
+ import { createPortal as D } from "react-dom";
4
+ function z() {
5
+ return C().name !== "browser" || window.hasOwnProperty("debuggerInitialized") ? null : (window.debuggerInitialized = !0, D(/* @__PURE__ */ o.jsx(R, {}), document.body));
6
6
  }
7
7
  const S = (e, s) => {
8
- const n = e.dataset.yaAction, t = e.dataset.yaScopeoverride, l = e.dataset.yaEventname, c = t || s;
8
+ const n = e.dataset.yaAction, t = e.dataset.yaScopeoverride, r = e.dataset.yaEventname, c = t || s;
9
9
  return {
10
10
  action: n,
11
- originalEventName: c ? `${c}_${l}` : l,
11
+ originalEventName: c ? `${c}_${r}` : r,
12
12
  scope: c
13
13
  };
14
14
  }, Y = (e, s) => {
@@ -17,14 +17,14 @@ const S = (e, s) => {
17
17
  for (; t != null && t.parentElement; )
18
18
  t = t.parentElement.closest(s), t && n.push(t);
19
19
  return n;
20
- }, h = {}, N = "YA_NO_SCOPE", E = (e, s, n, t) => {
21
- h.hasOwnProperty(e) ? h[e].events.map((l) => l.el).includes(t) || (h[e].events = [
22
- ...h[e].events,
20
+ }, b = {}, B = "YA_NO_SCOPE", k = (e, s, n, t) => {
21
+ b.hasOwnProperty(e) ? b[e].events.map((r) => r.el).includes(t) || (b[e].events = [
22
+ ...b[e].events,
23
23
  {
24
24
  eventData: s,
25
25
  el: t
26
26
  }
27
- ]) : h[e] = {
27
+ ]) : b[e] = {
28
28
  scopeEl: n || t,
29
29
  // overidden scopes still need an element
30
30
  events: [
@@ -35,39 +35,60 @@ const S = (e, s) => {
35
35
  ]
36
36
  };
37
37
  };
38
- function D() {
39
- const [e, s] = b(), [n, t] = b([]), [l, c] = b(!1), i = (r) => {
40
- s(e === r ? void 0 : r);
38
+ function R() {
39
+ const [e, s] = w(), [n, t] = w([]), [r, c] = w(!1), i = (a) => {
40
+ s(e === a ? void 0 : a);
41
41
  };
42
- return k(() => (document.documentElement.classList.add("xYextDebug"), document.querySelectorAll(
43
- "[data-ya-eventname]"
44
- ).forEach((d, g) => {
45
- const a = d.closest("[data-ya-scope]"), p = a == null ? void 0 : a.dataset.yaScope, u = S(d, p);
46
- d.addEventListener("mouseenter", () => {
47
- t([
48
- {
49
- elem: d,
50
- key: `${u.originalEventName}_${g}`,
51
- action: u.action,
52
- originalEventName: u.originalEventName,
53
- scope: u.scope
54
- }
55
- ]);
56
- }), d.addEventListener("mouseleave", () => {
57
- t([]);
58
- });
59
- const v = d.dataset.yaScopeoverride;
60
- v ? E(v, u, a, d) : [
61
- p,
62
- ...Y(d, "[data-ya-scope]").map(
63
- (m) => m.dataset.yaScope
64
- )
65
- ].forEach((m) => {
66
- E(m || N, u, a, d);
67
- });
68
- }), c(!0), () => {
69
- document.documentElement.classList.remove("xYextDebug");
70
- }), []), l ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
42
+ return N(() => {
43
+ let a = null;
44
+ const u = () => {
45
+ a && a.abort(), a = new AbortController();
46
+ const l = a.signal;
47
+ document.documentElement.classList.add("xYextDebug"), document.querySelectorAll(
48
+ "[data-ya-eventname]"
49
+ ).forEach((d, x) => {
50
+ const m = d.closest("[data-ya-scope]"), v = m == null ? void 0 : m.dataset.yaScope, p = S(d, v);
51
+ d.addEventListener(
52
+ "mouseenter",
53
+ () => {
54
+ t([
55
+ {
56
+ elem: d,
57
+ key: `${p.originalEventName}_${x}`,
58
+ action: p.action,
59
+ originalEventName: p.originalEventName,
60
+ scope: p.scope
61
+ }
62
+ ]);
63
+ },
64
+ { signal: l }
65
+ ), d.addEventListener(
66
+ "mouseleave",
67
+ () => {
68
+ t([]);
69
+ },
70
+ { signal: l }
71
+ );
72
+ const f = d.dataset.yaScopeoverride;
73
+ f ? k(f, p, m, d) : [
74
+ v,
75
+ ...Y(d, "[data-ya-scope]").map(
76
+ (E) => E.dataset.yaScope
77
+ )
78
+ ].forEach((E) => {
79
+ k(E || B, p, m, d);
80
+ });
81
+ }), c(!0);
82
+ };
83
+ u();
84
+ const g = new MutationObserver(u);
85
+ return g.observe(document, {
86
+ childList: !0,
87
+ subtree: !0
88
+ }), () => {
89
+ document.documentElement.classList.remove("xYextDebug"), g.disconnect(), a == null || a.abort();
90
+ };
91
+ }, []), r ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
71
92
  /* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger", children: [
72
93
  /* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger-toggles", children: [
73
94
  /* @__PURE__ */ o.jsx(
@@ -91,80 +112,80 @@ function D() {
91
112
  }
92
113
  )
93
114
  ] }),
94
- e && /* @__PURE__ */ o.jsx("div", { className: "analytics-debugger-tabs", children: e === "Events" ? /* @__PURE__ */ o.jsx(T, { data: h, setTooltips: t }) : /* @__PURE__ */ o.jsx($, { data: h, setTooltips: t }) })
115
+ e && /* @__PURE__ */ o.jsx("div", { className: "analytics-debugger-tabs", children: e === "Events" ? /* @__PURE__ */ o.jsx(A, { data: b, setTooltips: t }) : /* @__PURE__ */ o.jsx($, { data: b, setTooltips: t }) })
95
116
  ] }),
96
- /* @__PURE__ */ o.jsx(A, { tooltips: n })
117
+ /* @__PURE__ */ o.jsx(L, { tooltips: n })
97
118
  ] }) : null;
98
119
  }
99
- const R = () => {
120
+ const T = () => {
100
121
  const e = {};
101
- return Object.values(h).forEach((s) => {
122
+ return Object.values(b).forEach((s) => {
102
123
  s.events.forEach((n) => {
103
124
  const { originalEventName: t } = n.eventData;
104
125
  e[t] || (e[t] = []), !e[t].find(
105
- (l) => l.el === n.el
126
+ (r) => r.el === n.el
106
127
  ) && e[t].push(n);
107
128
  });
108
129
  }), e;
109
130
  };
110
- function T(e) {
111
- const { setTooltips: s } = e, [n, t] = b([]), [l, c] = b(""), i = (r, d) => {
131
+ function A(e) {
132
+ const { setTooltips: s } = e, [n, t] = w([]), [r, c] = w(""), i = (a, u) => {
112
133
  n.forEach(
113
- (a) => a.classList.remove("analytics-event-highlight")
134
+ (l) => l.classList.remove("analytics-event-highlight")
114
135
  );
115
- const g = r.map((a) => (a.el.scrollIntoView({ behavior: "smooth", block: "nearest" }), a.el.classList.add("analytics-event-highlight"), a.el));
116
- t(g), c(d), s(
117
- r.map((a, p) => ({
118
- elem: a.el,
119
- key: `${a.eventData.originalEventName}_${p}`,
120
- action: a.eventData.action,
121
- originalEventName: a.eventData.originalEventName,
122
- scope: a.eventData.scope
136
+ const g = a.map((l) => (l.el.scrollIntoView({ behavior: "smooth", block: "nearest" }), l.el.classList.add("analytics-event-highlight"), l.el));
137
+ t(g), c(u), s(
138
+ a.map((l, h) => ({
139
+ elem: l.el,
140
+ key: `${l.eventData.originalEventName}_${h}`,
141
+ action: l.eventData.action,
142
+ originalEventName: l.eventData.originalEventName,
143
+ scope: l.eventData.scope
123
144
  }))
124
145
  );
125
146
  };
126
147
  return /* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger-tab", children: [
127
148
  /* @__PURE__ */ o.jsx("h2", { className: "analytics-debugger-tab-title", children: "Event Names" }),
128
- /* @__PURE__ */ o.jsx("ul", { className: "analytics-debugger-list", children: Object.entries(R()).map(
129
- ([r, d], g) => {
130
- const a = `${r}_${g}`;
149
+ /* @__PURE__ */ o.jsx("ul", { className: "analytics-debugger-list", children: Object.entries(T()).map(
150
+ ([a, u], g) => {
151
+ const l = `${a}_${g}`;
131
152
  return /* @__PURE__ */ o.jsx("li", { className: "analytics-debugger-listItem", children: /* @__PURE__ */ o.jsx(
132
153
  "button",
133
154
  {
134
155
  className: j("analytics-debugger-button", {
135
- "is-active": a === l
156
+ "is-active": l === r
136
157
  }),
137
- onClick: () => i(d, a),
138
- children: r
158
+ onClick: () => i(u, l),
159
+ children: a
139
160
  }
140
- ) }, a);
161
+ ) }, l);
141
162
  }
142
163
  ) })
143
164
  ] });
144
165
  }
145
166
  function $(e) {
146
- const { data: s, setTooltips: n } = e, [t, l] = b(""), c = (i) => {
147
- const r = s[i];
148
- r.scopeEl && (r.scopeEl.scrollIntoView({
167
+ const { data: s, setTooltips: n } = e, [t, r] = w(""), c = (i) => {
168
+ const a = s[i];
169
+ a.scopeEl && (a.scopeEl.scrollIntoView({
149
170
  behavior: "smooth",
150
171
  block: "nearest"
151
- }), l(i), n(
152
- r.events.map((d, g) => {
153
- const a = d.eventData;
172
+ }), r(i), n(
173
+ a.events.map((u, g) => {
174
+ const l = u.eventData;
154
175
  return {
155
- elem: d.el,
156
- key: `${a.originalEventName}_${g}`,
157
- action: a.action,
158
- originalEventName: a.originalEventName,
159
- scope: a.scope
176
+ elem: u.el,
177
+ key: `${l.originalEventName}_${g}`,
178
+ action: l.action,
179
+ originalEventName: l.originalEventName,
180
+ scope: l.scope
160
181
  };
161
182
  })
162
183
  ));
163
184
  };
164
185
  return /* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger-tab", children: [
165
186
  /* @__PURE__ */ o.jsx("h2", { className: "analytics-debugger-tab-title", children: "Scope Names" }),
166
- /* @__PURE__ */ o.jsx("ul", { className: "analytics-debugger-list", children: Object.keys(s).map((i, r) => {
167
- if (i !== N)
187
+ /* @__PURE__ */ o.jsx("ul", { className: "analytics-debugger-list", children: Object.keys(s).map((i, a) => {
188
+ if (i !== B)
168
189
  return /* @__PURE__ */ o.jsx("li", { className: "analytics-debugger-listItem", children: /* @__PURE__ */ o.jsx(
169
190
  "button",
170
191
  {
@@ -174,17 +195,17 @@ function $(e) {
174
195
  onClick: () => c(i),
175
196
  children: i
176
197
  }
177
- ) }, i + r);
198
+ ) }, i + a);
178
199
  }) })
179
200
  ] });
180
201
  }
181
- function A(e) {
182
- const s = C({});
183
- return k(() => {
202
+ function L(e) {
203
+ const s = O({});
204
+ return N(() => {
184
205
  if (s.current)
185
206
  for (const n of Object.values(s.current)) {
186
- const t = Object.values(s.current).map((l) => l.el).filter((l) => l !== n.el);
187
- L(n, t), n.el.style.visibility = "visible";
207
+ const t = Object.values(s.current).map((r) => r.el).filter((r) => r !== n.el);
208
+ _(n, t), n.el.style.visibility = "visible";
188
209
  }
189
210
  }, [e.tooltips]), /* @__PURE__ */ o.jsx(o.Fragment, { children: e.tooltips.map((n) => /* @__PURE__ */ o.jsxs(
190
211
  "div",
@@ -217,14 +238,14 @@ function A(e) {
217
238
  n.key
218
239
  )) });
219
240
  }
220
- function L(e, s) {
241
+ function _(e, s) {
221
242
  for (let n = 0; n < 9; n++) {
222
- const t = P(
243
+ const t = H(
223
244
  e.tooltip.elem.getBoundingClientRect(),
224
245
  e.el,
225
246
  n
226
247
  );
227
- if (e.el.style.inset = `${t.top} auto auto ${t.left}`, !!I(
248
+ if (e.el.style.inset = `${t.top} auto auto ${t.left}`, !!P(
228
249
  e.el.getBoundingClientRect().left,
229
250
  e.el.getBoundingClientRect().top + window.scrollY,
230
251
  e.el.getBoundingClientRect().right,
@@ -232,25 +253,25 @@ function L(e, s) {
232
253
  )) continue;
233
254
  let c = !0;
234
255
  for (let i = 0; i < s.length; i++) {
235
- const r = s[i];
236
- _(e.el, r) && (c = !1);
256
+ const a = s[i];
257
+ I(e.el, a) && (c = !1);
237
258
  }
238
259
  if (c) break;
239
260
  }
240
261
  }
241
- function _(e, s) {
242
- const n = e.getBoundingClientRect().top + window.scrollY, t = e.getBoundingClientRect().left, l = n + e.clientHeight, c = t + e.clientWidth, i = s.getBoundingClientRect().top + window.scrollY, r = s.getBoundingClientRect().left, d = i + s.clientHeight, g = r + s.clientWidth, a = (p, u, v, f, m, x, y, w) => v <= m && m <= y && f <= x && x <= w || v <= p && p <= y && f <= u && u <= w || v <= p && p <= y && f <= x && x <= w || v <= m && m <= y && f <= u && u <= w;
243
- return a(t, n, r, i, c, l, g, d) || a(r, i, t, n, g, d, c, l);
262
+ function I(e, s) {
263
+ const n = e.getBoundingClientRect().top + window.scrollY, t = e.getBoundingClientRect().left, r = n + e.clientHeight, c = t + e.clientWidth, i = s.getBoundingClientRect().top + window.scrollY, a = s.getBoundingClientRect().left, u = i + s.clientHeight, g = a + s.clientWidth, l = (h, d, x, m, v, p, f, y) => x <= v && v <= f && m <= p && p <= y || x <= h && h <= f && m <= d && d <= y || x <= h && h <= f && m <= p && p <= y || x <= v && v <= f && m <= d && d <= y;
264
+ return l(t, n, a, i, c, r, g, u) || l(a, i, t, n, g, u, c, r);
244
265
  }
245
- function I(e, s, n, t) {
266
+ function P(e, s, n, t) {
246
267
  return e < 0 || n > window.innerWidth || s < 0 || t > document.documentElement.scrollHeight;
247
268
  }
248
- function P(e, s, n) {
249
- const t = s.clientHeight, l = s.clientWidth;
269
+ function H(e, s, n) {
270
+ const t = s.clientHeight, r = s.clientWidth;
250
271
  let c, i;
251
272
  switch (n) {
252
273
  case 0: {
253
- i = window.scrollY + e.top - t + "px", c = e.left - l + "px";
274
+ i = window.scrollY + e.top - t + "px", c = e.left - r + "px";
254
275
  break;
255
276
  }
256
277
  case 1: {
@@ -262,11 +283,11 @@ function P(e, s, n) {
262
283
  break;
263
284
  }
264
285
  case 3: {
265
- i = window.scrollY + e.top - t + "px", c = e.right - l + "px";
286
+ i = window.scrollY + e.top - t + "px", c = e.right - r + "px";
266
287
  break;
267
288
  }
268
289
  case 4: {
269
- i = window.scrollY + e.bottom + "px", c = e.left - l + "px";
290
+ i = window.scrollY + e.bottom + "px", c = e.left - r + "px";
270
291
  break;
271
292
  }
272
293
  case 5: {
@@ -274,7 +295,7 @@ function P(e, s, n) {
274
295
  break;
275
296
  }
276
297
  case 6: {
277
- i = window.scrollY + e.bottom + "px", c = e.right - l + "px";
298
+ i = window.scrollY + e.bottom + "px", c = e.right - r + "px";
278
299
  break;
279
300
  }
280
301
  case 7: {
@@ -290,6 +311,6 @@ function P(e, s, n) {
290
311
  };
291
312
  }
292
313
  export {
293
- D as AnalyticsDebuggerInternal,
294
- q as default
314
+ R as AnalyticsDebuggerInternal,
315
+ z as default
295
316
  };
@@ -1547,7 +1547,7 @@ const Wy = (e) => {
1547
1547
  default:
1548
1548
  return "";
1549
1549
  }
1550
- }, lp = Nc(null), Ky = q_(() => import("./debugger-7xORzT5W.js"));
1550
+ }, lp = Nc(null), Ky = q_(() => import("./debugger-DrRgTaNB.js"));
1551
1551
  function YS(e) {
1552
1552
  const {
1553
1553
  children: t,
@@ -26097,7 +26097,7 @@ const bT = (e, t) => e(t, "i", ss(e, t)), LT = (e, t) => e(t, "b", ss(e, t)), IT
26097
26097
  (async () => {
26098
26098
  if (!r)
26099
26099
  try {
26100
- r = (await import("./index-Ck_jvPcD.js")).default;
26100
+ r = (await import("./index-B5KCvNJE.js")).default;
26101
26101
  } catch {
26102
26102
  throw new Error(
26103
26103
  "Failed to import React Markdown, cannot properly render LegacyRichText."
@@ -1,5 +1,5 @@
1
1
  import zn from "react";
2
- import { n as cr, a as fr, b as Hn, m as K, d as D, s as In, p as Sn, r as Pe, e as De, f as Tn, h as vn, i as me, k as pr, l as hr, o as dr, q as ge, t as bn, u as mr, v as gr } from "./index-C8IsJIMm.js";
2
+ import { n as cr, a as fr, b as Hn, m as K, d as D, s as In, p as Sn, r as Pe, e as De, f as Tn, h as vn, i as me, k as pr, l as hr, o as dr, q as ge, t as bn, u as mr, v as gr } from "./index-59MyeK1e.js";
3
3
  function yr(n) {
4
4
  const t = [];
5
5
  let e = -1;
@@ -29,7 +29,7 @@ React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
30
  <%s key={someKey} {...props} />`,sr,Zn,or,Zn),It[Zn+sr]=!0}}return pe===r?tn(an):Kt(an),an}}function bt(pe,Ze,ot){return jt(pe,Ze,ot,!0)}function nn(pe,Ze,ot){return jt(pe,Ze,ot,!1)}var Or=nn,_i=bt;jl.Fragment=r,jl.jsx=Or,jl.jsxs=_i}()),jl}process.env.NODE_ENV==="production"?Hu.exports=ny():Hu.exports=ry();var at=Hu.exports;function iy(e){switch(e){case"AD":case"AM":case"AT":case"AX":case"AZ":case"BA":case"BY":case"CY":case"CZ":case"DK":case"DZ":case"EC":case"EH":case"ET":case"FI":case"FR":case"GE":case"GF":case"GI":case"GP":case"GW":case"HT":case"KE":case"KV":case"KW":case"LA":case"LU":case"MC":case"MD":case"ME":case"MG":case"MK":case"MQ":case"MZ":case"NC":case"NL":case"NO":case"PL":case"PT":case"PY":case"RE":case"RS":case"SA":case"SE":case"SJ":case"SM":case"SN":case"TC":case"TJ":case"TM":case"TN":case"TZ":case"UY":case"VG":case"ZM":return[["line1"],["line2"],["postalCode","city"],["countryCode"]];case"AF":case"IR":return[["line1"],["line2"],["city"],["region"],["postalCode"],["countryCode"]];case"AG":case"AO":case"AW":case"BJ":case"BO":case"BS":case"BZ":case"CI":case"CW":case"DJ":case"FJ":case"GA":case"GH":case"GM":case"GY":case"JM":case"KI":case"LY":case"MW":case"NA":case"NR":case"PS":case"QA":case"RW":case"SC":case"SR":case"SX":case"TG":case"TT":case"UG":case"VU":return[["line1"],["line2"],["city"],["countryCode"]];case"AL":case"EE":case"IS":return[["line1"],["line2"],["postalCode","city"]];case"AR":return[["line1"],["line2"],["postalCode","city",",","region"],["countryCode"]];case"AS":case"BB":case"BD":case"BM":case"BN":case"BT":case"CR":case"DO":case"FK":case"FM":case"GR":case"GU":case"JO":case"KZ":case"LB":case"LK":case"LS":case"MA":case"MH":case"MM":case"MR":case"MT":case"MV":case"NG":case"PG":case"PK":case"PR":case"RO":case"SG":case"VC":case"WS":return[["line1"],["line2"],["city","postalCode"],["countryCode"]];case"AU":case"CA":case"SZ":case"US":case"VI":return[["line1"],["line2"],["city",",","region","postalCode"],["countryCode"]];case"BE":case"PE":return[["line1"],["line2"],["postalCode","sublocality","city"],["countryCode"]];case"BF":case"BI":case"BQ":case"BW":case"CF":case"CG":case"CM":case"DM":case"ER":case"GQ":case"KM":case"ML":case"SY":case"TD":case"ZW":return[["line1"],["line2"],["city"],["region"],["countryCode"]];case"BG":return[["line1"],["postalCode","region"],["countryCode"]];case"BH":return[["line1"],["line2"],["sublocality","city"],["countryCode"]];case"BR":return[["line1"],["line2"],["sublocality"],["city","region"],["postalCode"],["countryCode"]];case"CH":case"DE":case"GT":case"IT":case"LI":case"MY":case"NI":case"OM":case"SK":case"VA":return[["line1"],["line2"],["postalCode","city","region"],["countryCode"]];case"CL":case"PF":return[["line1"],["line2"],["city","postalCode","region"],["countryCode"]];case"CN":return[["region","city","sublocality"],["line1"],["line2"],["countryCode"]];case"CO":case"ID":case"IQ":case"KH":case"MP":case"NP":case"PW":case"UA":return[["line1"],["line2"],["city","region","postalCode"],["countryCode"]];case"EG":return[["line1"],["line2"],["sublocality","city","region","postalCode"],["countryCode"]];case"ES":case"IL":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"GB":case"MN":case"ZA":return[["line1"],["line2"],["sublocality","city","postalCode"],["countryCode"]];case"GG":case"IM":case"JE":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"GN":return[["line1","line2","city"],["countryCode"]];case"HK":return[["line1"],["line2"],["sublocality"],["city"],["region"],["countryCode"]];case"HR":return[["line1"],["postalCode","city","region"],["countryCode"]];case"HU":case"SI":return[["postalCode","city"],["line1"],["line2"],["countryCode"]];case"IE":return[["line1"],["line2"],["sublocality"],["city","region","postalCode"],["countryCode"]];case"IN":case"VE":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"JP":return[["line2"],["line1","sublocality"],["city","region"],["postalCode"],["countryCode"]];case"KR":return[["countryCode"],["region","city","sublocality","line1"],["line2"],["postalCode"]];case"KY":return[["line1"],["line2"],["postalCode"],["countryCode"]];case"LT":return[["line1"],["postalCode","city","sublocality","region"],["countryCode"]];case"LV":return[["line1"],["city",",","postalCode"],["countryCode"]];case"MO":return[["line1"],["line2"],["sublocality"],["city"],["countryCode"]];case"MU":return[["line1"],["line2"],["city"],["region","postalCode"],["countryCode"]];case"MX":return[["line1"],["line2"],["sublocality"],["postalCode","city",",","region"],["countryCode"]];case"NE":case"SD":return[["line1"],["line2"],["postalCode"],["city"],["region"],["countryCode"]];case"NZ":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"PH":case"TW":case"VN":return[["line1"],["line2"],["sublocality","city"],["region","postalCode"],["countryCode"]];case"RU":return[["line1"],["line2"],["city"],["postalCode"],["countryCode"]];case"SB":case"SL":case"ST":case"TL":case"TO":case"TV":return[["line1"],["line2"],["city",",","region"],["countryCode"]];case"TH":case"TR":return[["line1"],["line2"],["sublocality"],["postalCode","city"],["countryCode"]];case"UZ":return[["line1"],["line2"],["region","postalCode"],["countryCode"]]}return[["line1","line2"],["city","region","postalCode"],["countryCode"]]}const sp={GOOGLEMYBUSINESS:"GOOGLEMYBUSINESS"},Wu={GOOGLE:"google",APPLE:"apple",BING:"bing"},sy=(e,t)=>{const r={region:"localizedRegionName",countryCode:"localizedCountryName"}[e];return r&&t[r]},oy=(e,t=[],n,r={route:!1},l)=>{const d="Failed to construct query for maps service.";let f=e&&yf([e.line1,e.line2,e.city,e.region,e.postalCode,e.countryCode]);switch(r.provider){case Wu.APPLE:{if(l!=null&&l.latitude&&(l!=null&&l.longitude))return pf(`${l.latitude},${l.longitude}`,r.route);if(!f){console.warn(`${d} Check that you've provided a valid Yext Address.`);break}return pf(f,r.route)}case Wu.BING:{if(l!=null&&l.latitude&&(l!=null&&l.longitude))return mf(`${l.latitude},${l.longitude}`,r.route);if(f=e&&yf([e.line1,e.city,e.region,e.postalCode]),!f){console.warn(`${d} Check that you've provided a valid Yext Address.`);break}return mf(f,r.route)}default:{if(l!=null&&l.latitude&&(l!=null&&l.longitude))return _f(`${l.latitude},${l.longitude}`,r.route);const p=t.find(_=>{var T;return((T=_==null?void 0:_.publisher)==null?void 0:T.toUpperCase())===sp.GOOGLEMYBUSINESS});if(p!=null&&p.listingUrl)return p.listingUrl;if(n)return ly(n,f,r.route);if(!f){console.warn(`${d} Check that you've provided a valid Yext Address, Yext ListingType, or Google Place ID.`);break}return _f(f,r.route)}}},pf=(e,t)=>t?`https://maps.apple.com/?daddr=${e}`:`https://maps.apple.com/?address=${e}`,mf=(e,t)=>t?`https://bing.com/maps/default.aspx?rtp=adr.${e}`:`https://bing.com/maps/default.aspx?where1=${e}`,ly=(e,t,n)=>{const r=t?`&query=${t}`:"";return n?`https://maps.google.com/maps/dir/?api=1${r}&destination_place_id=${e}&destination=direct`:r?`https://maps.google.com/maps/search/?api=1${r}&query_place_id=${e}`:`https://maps.google.com/maps/dir/?api=1&destination_place_id=${e}&destination=direct`},_f=(e,t)=>t?`https://maps.google.com/maps/dir/?api=1&destination=${e}`:`https://maps.google.com/maps/search/?api=1&query=${e}`,yf=(e=[])=>{if(!e.length)return"";const t=e.filter(Boolean).join(", ");return encodeURI(t)},ay=({address:e,lines:t,separator:n=",",...r})=>{const l=(t||iy(e.countryCode)).map(d=>at.jsx(cy,{address:e,line:d,separator:n},d.toString()));return nt.createElement("div",{...r,key:e.toString()},l)},cy=({address:e,line:t,separator:n})=>{const r=[];let l=0;for(const d of t){if(d===","){r.push(at.jsx("span",{children:n},`separator-${l++}`));continue}const f=e[d];if(!f)continue;const p=sy(d,e);if(p){r.push(at.jsxs(ty.Fragment,{children:[" ",at.jsx("abbr",{title:p,children:f})]},d));continue}r.push(at.jsx("span",{children:" "+f},d))}return at.jsx("div",{className:"address-line",children:r})};var tl={};Object.defineProperty(tl,"__esModule",{value:!0});var uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dy=typeof window<"u"&&typeof window.document<"u",fy=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,hy=(typeof self>"u"?"undefined":uy(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",gy=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),py=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Nf=tl.isBrowser=dy;tl.isWebWorker=hy;var my=tl.isNode=fy;tl.isJsDom=gy;var _y=tl.isDeno=py;class yy{constructor(){Ie(this,"name");Ie(this,"isServerSide");Ie(this,"version");var t;_y?(this.name="deno",this.version="",Nf&&(this.version=((t=window.Deno)==null?void 0:t.version.deno)||""),this.isServerSide=!0):my?(this.name="node",this.version=process.versions.node,this.isServerSide=!0):Nf?(this.name="browser",this.version=navigator.userAgent,this.isServerSide=!1):(this.name="unknown",this.version="",this.isServerSide=!1)}getNodeMajorVersion(){if(this.name!=="node")throw new Error("Not running in Node.");return+this.version.split(".")[0]}}const Xo=()=>new yy,Ny=(...e)=>{var t;if(typeof window<"u"){if(window.IS_PRODUCTION)return!0;const n=(t=window.location)==null?void 0:t.hostname;return e==null?void 0:e.some(r=>r==null?void 0:r.includes(n))}return!1};function Yc(e){if(!cd(e))throw new Error("Parameter was not an error")}function cd(e){return!!e&&typeof e=="object"&&Cy(e)==="[object Error]"||e instanceof Error}function Cy(e){return Object.prototype.toString.call(e)}const Ey="Layerr";let Ty=Ey;function xy(){return Ty}function vy(e){let t,n="";if(e.length===0)t={};else if(cd(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class Ai extends Error{constructor(t,n){const r=[...arguments],{options:l,shortMessage:d}=vy(r);let f=d;if(l.cause&&(f=`${f}: ${l.cause.message}`),super(f),this.message=f,l.name&&typeof l.name=="string"?this.name=l.name:this.name=xy(),l.cause&&Object.defineProperty(this,"_cause",{value:l.cause}),Object.defineProperty(this,"_info",{value:{}}),l.info&&typeof l.info=="object"&&Object.assign(this._info,l.info),Error.captureStackTrace){const p=l.constructorOpt||this.constructor;Error.captureStackTrace(this,p)}}static cause(t){return Yc(t),t._cause&&cd(t._cause)?t._cause:null}static fullStack(t){Yc(t);const n=Ai.cause(t);return n?`${t.stack}
31
31
  caused by: ${Ai.fullStack(n)}`:t.stack??""}static info(t){Yc(t);const n={},r=Ai.cause(t);return r&&Object.assign(n,Ai.info(r)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const op="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ra=32,Cf=0xffffffffffff,Sy=10,wy=16,ea=Object.freeze({source:"ulid"});function Oy(e){const t=Dy(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const r=new Uint8Array(1);return n.getRandomValues(r),r[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new Ai({info:{code:"PRNG_DETECT",...ea}},"Failed to find a reliable PRNG")}function Dy(){return Ry()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function Ay(e,t){let n="";for(;e>0;e--)n=by(t)+n;return n}function My(e,t){if(isNaN(e))throw new Ai({info:{code:"ENC_TIME_NAN",...ea}},`Time must be a number: ${e}`);if(e>Cf)throw new Ai({info:{code:"ENC_TIME_SIZE_EXCEED",...ea}},`Cannot encode a time larger than ${Cf}: ${e}`);if(e<0)throw new Ai({info:{code:"ENC_TIME_NEG",...ea}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Ai({info:{code:"ENC_TIME_TYPE",...ea}},`Time must be an integer: ${e}`);let n,r="";for(let l=t;l>0;l--)n=e%ra,r=op.charAt(n)+r,e=(e-n)/ra;return r}function Ry(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function by(e){let t=Math.floor(e()*ra);return t===ra&&(t=ra-1),op.charAt(t)}function Ly(e,t){const n=Oy(),r=isNaN(e)?Date.now():e;return My(r,Sy)+Ay(wy,n)}var Ef="yext_analytics_session_id";function Iy(){if(typeof window>"u")return null;try{var e=window.sessionStorage.getItem(Ef);return e||(e=Ly(),window.sessionStorage.setItem(Ef,e)),e}catch(t){return console.warn(`Unable to use browser sessionStorage for sessionId.
32
- `,t),null}}const ky="1.0.0",Tf={version:ky};function Py(e,t,n){return n.debug?(lp(!0,t,n),!0):navigator.sendBeacon(e,JSON.stringify(t))}function $y(e,t,n){return n.debug?(lp(!1,t,n),Promise.resolve(new Response)):fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0})}function Fy(e,t){return!t&&!!navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox")}function lp(e,t,n){var r=e?"Beacon":"fetch()";console.log("[DEBUG] AnalyticsConfig object at time of call to report():",n),console.log("[DEBUG] The following EventPayload would be sent to the Yext Events API using ".concat(r,":"),t)}var Ku=function(){return Ku=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},Ku.apply(this,arguments)},zu=function(e,t){if(!t||Object.keys(t).length===0)return e;if(!e||Object.keys(e).length===0)return t;var n=JSON.parse(JSON.stringify(e));for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];l==null?delete n[r]:typeof l!="object"?n[r]=l:n[r]=zu(n[r],l)}return Ku({},n)},By="yextevents.com/accounts/me/events";function Hy(e,t){var n=e==="SANDBOX",r=t==null?void 0:t.toLowerCase();if(n&&r==="eu")throw new Error("Sandbox environment is not available in the EU region.");return"https://"+(n?"sbx.":"")+(r??"us")+"."+By}var Wy=function(e,t,n,r){function l(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(E){try{T(r.next(E))}catch(S){f(S)}}function _(E){try{T(r.throw(E))}catch(S){f(S)}}function T(E){E.done?d(E.value):l(E.value).then(p,_)}T((r=r.apply(e,t||[])).next())})},Ky=function(e,t){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,l,d,f;return f={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(T){return function(E){return _([T,E])}}function _(T){if(r)throw new TypeError("Generator is already executing.");for(;f&&(f=0,T[0]&&(n=0)),n;)try{if(r=1,l&&(d=T[0]&2?l.return:T[0]?l.throw||((d=l.return)&&d.call(l),0):l.next)&&!(d=d.call(l,T[1])).done)return d;switch(l=0,d&&(T=[T[0]&2,d.value]),T[0]){case 0:case 1:d=T;break;case 4:return n.label++,{value:T[1],done:!1};case 5:n.label++,l=T[1],T=[0];continue;case 7:T=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(T[0]===6||T[0]===2)){n=0;continue}if(T[0]===3&&(!d||T[1]>d[0]&&T[1]<d[3])){n.label=T[1];break}if(T[0]===6&&n.label<d[1]){n.label=d[1],d=T;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(T);break}d[2]&&n.ops.pop(),n.trys.pop();continue}T=t.call(e,n)}catch(E){T=[6,E],l=0}finally{r=d=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}},zy=function(){function e(t,n){if(t.authorizationType!=="apiKey"&&t.authorizationType!=="bearer")throw new Error("Authorization type must be either apiKey or bearer.");if(!t.authorization)throw new Error("Authorization must be provided.");this.config=t,this.payload=n}return e.prototype.with=function(t){var n=this.payload===void 0?t:zu(this.payload,t);return new e(this.config,n)},e.prototype.report=function(t){var n;return Wy(this,void 0,void 0,function(){var r,l,d,f,p=this;return Ky(this,function(_){return r=zu((n=this.payload)!==null&&n!==void 0?n:{},t??{}),this.config.sessionTrackingEnabled?r.sessionId||(r.sessionId=Iy()):r.sessionId=void 0,r.clientSdk?r.clientSdk.ANALYTICS=Tf.version:r.clientSdk=(f={},f.ANALYTICS=Tf.version,f),r.authorization=this.config.authorizationType==="apiKey"?"KEY "+this.config.authorization:"Bearer "+this.config.authorization,l=Fy(r,this.config.forceFetch),d=Hy(this.config.env,this.config.region),l?[2,new Promise(function(T,E){Py(d,r,p.config)?T(""):E("Failed Beacon Call")})]:[2,$y(d,r,this.config).then(function(T){return T}).catch(function(T){return T})]})})},e}();function Uy(e){return new zy(e)}function Uu(e){return e?e.toLowerCase().trim().replace(/\s/g,""):""}function ap(e,t){return[e,t].filter(n=>!!n).map(n=>Uu(n)).join("_")}const Gy=e=>{switch(Math.floor(e/1e8%10)){case 0:return"US";case 1:return"EU";default:return""}},ud=nt.createContext(null),Yy=nt.lazy(()=>Promise.resolve().then(()=>require("./debugger-fEUqg7Sy.cjs")));function jy(e){const{children:t,apiKey:n,currency:r,templateData:l,requireOptIn:d,disableSessionTracking:f,enableDebugging:p,productionDomains:_}=e;if(!n)throw new Error("API Key is required for AnalyticsProvider");const T=nt.useRef(null),[E,S]=nt.useState(!1);nt.useEffect(()=>{S(!0)},[]),T.current===null&&(T.current=new cp(n,r,l,d,f,_,p??cc()));const w=T.current;return nt.useEffect(()=>(window.enableYextAnalytics=()=>{w.optIn()},()=>{delete window.enableYextAnalytics}),[w]),at.jsxs(at.Fragment,{children:[at.jsx(ud.Provider,{value:w,children:t}),E&&(p||cc())&&Xo().name==="browser"?at.jsx(nt.Suspense,{fallback:at.jsx(at.Fragment,{}),children:at.jsx(Yy,{})}):null]})}function cc(){return Xo().name!=="browser"||typeof window===void 0?!1:!!new URL(window.location.href).searchParams.get("xYextDebug")}class cp{constructor(t,n,r,l,d,f,p=!1){Ie(this,"_optedIn");Ie(this,"_sessionTrackingEnabled");Ie(this,"_analyticsEventService");Ie(this,"_pageViewFired",!1);this.apiKey=t,this.defaultCurrency=n,this.templateData=r,this.productionDomains=f,this.enableDebugging=p,this._optedIn=!l,this._sessionTrackingEnabled=!d,this.makeReporter(),this.pageView()}makeReporter(){if(Xo().name!=="browser"||!this._optedIn)return;if(!Ny(...this.productionDomains??[])&&!this.getDebugEnabled()){console.warn("Yext Analytics disabled for non-production domains");return}const t=Gy(this.templateData.document.businessId),n={authorizationType:"apiKey",authorization:this.apiKey,env:"PRODUCTION",region:t||"US",sessionTrackingEnabled:this._sessionTrackingEnabled,debug:this.getDebugEnabled()},r={pages:{siteUid:this.templateData.document.siteId,template:this.templateData.document.__.name},entity:this.templateData.document.uid||void 0,pageUrl:document.URL,referrerUrl:document.referrer!==""?document.referrer:void 0};this._analyticsEventService=Uy(n).with(r)}canTrack(){return Xo().name==="browser"&&this._optedIn&&!!this._analyticsEventService}identify(t){this.canTrack()&&this._analyticsEventService&&(this._analyticsEventService=this._analyticsEventService.with({visitor:t}))}async optIn(){this._optedIn=!0,this.makeReporter(),this._pageViewFired||await this.pageView()}async pageView(){var t;if(!this.canTrack())return Promise.resolve(void 0);await((t=this._analyticsEventService)==null?void 0:t.report({action:"PAGE_VIEW"})),this._pageViewFired=!0}async track(t){var S;if(!this.canTrack())return Promise.resolve();const{action:n,scope:r,eventName:l,currency:d,amount:f,destinationUrl:p,customTags:_,customValues:T}=t;let E;f&&(E={amount:f,currency:d||this.defaultCurrency}),await((S=this._analyticsEventService)==null?void 0:S.report({action:n,pages:{scope:Uu(r)||void 0,originalEventName:ap(r||"",Uu(l)||"")},value:E,destinationUrl:p,customTags:_,customValues:T}))}getDebugEnabled(){return this.enableDebugging||cc()}}const Gu=nt.createContext({name:""}),dd=()=>nt.useContext(Gu).name;function Vy(e){var f;const t=dd(),[n]=nt.useState({name:ap(t,e.name)}),r=(f=nl())==null?void 0:f.getDebugEnabled(),[l,d]=nt.useState(!1);return nt.useEffect(()=>{d(!0)},[]),r&&l?at.jsx("section",{"data-ya-scope":n.name,children:at.jsx(Gu.Provider,{value:n,children:e.children})}):at.jsx(Gu.Provider,{value:n,children:e.children})}function nl(){const e=nt.useContext(ud);if(!e)return e;Xo().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await e.optIn()});const t=dd();return{getDebugEnabled(){return e.getDebugEnabled()},identify(n){return e.identify(n)},optIn(){return e.optIn()},pageView(){return e.pageView()},track(n){return e.track({...n,scope:n.scope??t})}}}const qy=()=>{var e;return(e=nl())==null?void 0:e.track},Zy=()=>{var e;return(e=nl())==null?void 0:e.pageView},Jy=()=>{var e;return(e=nl())==null?void 0:e.identify},Ts={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},Xy=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}const n=e.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${e}`);return}r="eu"}if(!e.pathname.startsWith("/f")){console.error(`Invalid path: ${e}`);return}const l=e.pathname.replace(/^\//,"").split("/");if(l.length<2||l.length>3){console.error(`Invalid path: ${e}`);return}let d;if(l[0]==="f")d="prod";else switch(l[0].replace("f-","")){case"sandbox":{d="sbx";break}case"qa":{d="qa";break}case"dev":{d="dev";break}default:{console.error(`Invalid path: ${e}`);return}}if(r==="eu"&&(d==="dev"||d==="sbx")){console.error(`Invalid path: ${e}`);return}let f;if(l.length===3&&(f=parseInt(l[1]),Number.isNaN(f))){console.error(`Invalid account id: ${e}`);return}const p=l[l.length-1].split("."),_=p.length===2?`.${p[1]}`:"",T=p[0];return{scheme:t,partition:r,env:d,accountId:f,contentHash:T,extension:_}},Qy=(e,t,n)=>{const r=`https://dyn${e.partition==="us"?"":`.${e.partition}`}.mktgcdn.com`;let l="f";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}const d=e.accountId!==void 0?`${e.accountId}/`:"";return`${r}/${l}/${d}${e.contentHash}${e.extension}/width=${Math.round(t)},height=${Math.round(n)}`},eN=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}if(e.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${e}`);return}if(!e.pathname.startsWith("/p")){console.error(`Invalid path: ${e}`);return}const n=e.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${e}`);return}let r;if(n[0]==="p")r="prod";else switch(n[0].replace("p-","")){case"sandbox":{r="sbx";break}case"qa":{r="qa";break}case"dev":{r="dev";break}default:{console.error(`Invalid path: ${e}`);return}}const l=n[1];let d;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${e}`);return}if(d=parseFloat(n[2]),Number.isNaN(d)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${e}`);return}}const f=n[n.length-1].split("."),p=f.length===2?`.${f[1]}`:"",_=f[0];return{scheme:t,env:r,contentHash:l,aspectRatio:d,name:_,extension:p}},tN=(e,t,n)=>{const r="https://dyn.mktgcdn.com";let l="p";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}return`${r}/${l}/${e.contentHash}/width=${Math.round(t)},height=${Math.round(n)}`},Yu=(e,t,n)=>{if(!up(e)){console.error(`Invalid image url: ${e}.`);return}const r=new URL(e);if(r.pathname.startsWith("/p")){const l=eN(r);if(l)return tN(l,t,n)}else if(r.pathname.startsWith("/f")){const l=Xy(r);if(l)return Qy(l,t,n)}return e},up=e=>{let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},nN=({image:e,className:t,width:n,height:r,aspectRatio:l,layout:d=Ts.INTRINSIC,placeholder:f,imgOverrides:p,style:_={},loading:T="lazy"})=>{const E=nt.useRef(null),[S,w]=nt.useState(!1),M="image"in e?e.image:e;nt.useEffect(()=>{var ce;(ce=E.current)!=null&&ce.complete&&w(!0)},[]),rN(d,M.width,M.height,n,r,l);const m=Math.abs(M.width);m||console.warn("Invalid image width.");const v=Math.abs(M.height);if(v||console.warn("Invalid image height."),!up(M.url))return console.error(`Invalid image url: ${M.url}`),at.jsx(at.Fragment,{children:f!=null&&f});const k=n&&n>0?n:void 0,G=r&&r>0?r:void 0,{src:I,imgStyle:P,widths:H}=iN(d,m,v,_,M.url,k,G,l),j=H.map(ce=>`${Yu(M.url,ce,v/m*ce)} ${ce}w`).join(", "),re=[640,768,1024,1280,1536],te=H.map((ce,V)=>V===H.length-1?`${ce}px`:`(max-width: ${re[V]}px) ${ce}px`).join(", ");return at.jsxs(at.Fragment,{children:[!S&&f!=null&&f,at.jsx("img",{ref:E,style:P,src:I,className:t,width:k,height:G,srcSet:j,sizes:te,loading:T,alt:M.alternateText||"",...p})]})},rN=(e,t,n,r,l,d)=>{if(t<0&&console.warn(`Invalid image width: ${t}.`),n<0&&console.warn(`Invalid image height: ${n}.`),e===Ts.FIXED){if(!r&&!l){console.warn("Using fixed layout but neither width nor height is passed as props.");return}r&&r<0&&console.warn(`Using fixed layout but width is invalid: ${r}.`),l&&l<0&&console.warn(`Using fixed layout but height is invalid: ${l}.`);return}(r||l)&&console.warn("Width or height is passed in but layout is not fixed. These will have no impact. If you want to have a fixed height or width then set layout to fixed."),e===Ts.ASPECT&&!d&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},iN=(e,t,n,r,l,d,f,p)=>{let _=[100,320,640,960,1280,1920],T=Yu(l,500,500);const E={...r};switch(E.objectFit=E.objectFit||"cover",E.objectPosition=E.objectPosition||"center",e){case Ts.INTRINSIC:E.maxWidth=t,E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case Ts.FIXED:{const{fixedWidth:S,fixedHeight:w,fixedWidths:M}=sN(t,n,_,d,f);E.width=S,E.height=w,_=M,T=Yu(l,S,w);break}case Ts.ASPECT:E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case Ts.FILL:E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;default:console.warn(`Unrecognized layout: ${e}.`);break}return{src:T,imgStyle:E,widths:_}},sN=(e,t,n,r,l)=>r&&l?{fixedWidth:r,fixedHeight:l,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*t/e,fixedWidths:[r]}:l?{fixedWidth:l/t*e,fixedHeight:l,fixedWidths:[l/t*e]}:{fixedWidth:e,fixedHeight:t,fixedWidths:n};var dp={exports:{}};/*!
32
+ `,t),null}}const ky="1.0.0",Tf={version:ky};function Py(e,t,n){return n.debug?(lp(!0,t,n),!0):navigator.sendBeacon(e,JSON.stringify(t))}function $y(e,t,n){return n.debug?(lp(!1,t,n),Promise.resolve(new Response)):fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0})}function Fy(e,t){return!t&&!!navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox")}function lp(e,t,n){var r=e?"Beacon":"fetch()";console.log("[DEBUG] AnalyticsConfig object at time of call to report():",n),console.log("[DEBUG] The following EventPayload would be sent to the Yext Events API using ".concat(r,":"),t)}var Ku=function(){return Ku=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},Ku.apply(this,arguments)},zu=function(e,t){if(!t||Object.keys(t).length===0)return e;if(!e||Object.keys(e).length===0)return t;var n=JSON.parse(JSON.stringify(e));for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];l==null?delete n[r]:typeof l!="object"?n[r]=l:n[r]=zu(n[r],l)}return Ku({},n)},By="yextevents.com/accounts/me/events";function Hy(e,t){var n=e==="SANDBOX",r=t==null?void 0:t.toLowerCase();if(n&&r==="eu")throw new Error("Sandbox environment is not available in the EU region.");return"https://"+(n?"sbx.":"")+(r??"us")+"."+By}var Wy=function(e,t,n,r){function l(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(E){try{T(r.next(E))}catch(S){f(S)}}function _(E){try{T(r.throw(E))}catch(S){f(S)}}function T(E){E.done?d(E.value):l(E.value).then(p,_)}T((r=r.apply(e,t||[])).next())})},Ky=function(e,t){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,l,d,f;return f={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(T){return function(E){return _([T,E])}}function _(T){if(r)throw new TypeError("Generator is already executing.");for(;f&&(f=0,T[0]&&(n=0)),n;)try{if(r=1,l&&(d=T[0]&2?l.return:T[0]?l.throw||((d=l.return)&&d.call(l),0):l.next)&&!(d=d.call(l,T[1])).done)return d;switch(l=0,d&&(T=[T[0]&2,d.value]),T[0]){case 0:case 1:d=T;break;case 4:return n.label++,{value:T[1],done:!1};case 5:n.label++,l=T[1],T=[0];continue;case 7:T=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(T[0]===6||T[0]===2)){n=0;continue}if(T[0]===3&&(!d||T[1]>d[0]&&T[1]<d[3])){n.label=T[1];break}if(T[0]===6&&n.label<d[1]){n.label=d[1],d=T;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(T);break}d[2]&&n.ops.pop(),n.trys.pop();continue}T=t.call(e,n)}catch(E){T=[6,E],l=0}finally{r=d=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}},zy=function(){function e(t,n){if(t.authorizationType!=="apiKey"&&t.authorizationType!=="bearer")throw new Error("Authorization type must be either apiKey or bearer.");if(!t.authorization)throw new Error("Authorization must be provided.");this.config=t,this.payload=n}return e.prototype.with=function(t){var n=this.payload===void 0?t:zu(this.payload,t);return new e(this.config,n)},e.prototype.report=function(t){var n;return Wy(this,void 0,void 0,function(){var r,l,d,f,p=this;return Ky(this,function(_){return r=zu((n=this.payload)!==null&&n!==void 0?n:{},t??{}),this.config.sessionTrackingEnabled?r.sessionId||(r.sessionId=Iy()):r.sessionId=void 0,r.clientSdk?r.clientSdk.ANALYTICS=Tf.version:r.clientSdk=(f={},f.ANALYTICS=Tf.version,f),r.authorization=this.config.authorizationType==="apiKey"?"KEY "+this.config.authorization:"Bearer "+this.config.authorization,l=Fy(r,this.config.forceFetch),d=Hy(this.config.env,this.config.region),l?[2,new Promise(function(T,E){Py(d,r,p.config)?T(""):E("Failed Beacon Call")})]:[2,$y(d,r,this.config).then(function(T){return T}).catch(function(T){return T})]})})},e}();function Uy(e){return new zy(e)}function Uu(e){return e?e.toLowerCase().trim().replace(/\s/g,""):""}function ap(e,t){return[e,t].filter(n=>!!n).map(n=>Uu(n)).join("_")}const Gy=e=>{switch(Math.floor(e/1e8%10)){case 0:return"US";case 1:return"EU";default:return""}},ud=nt.createContext(null),Yy=nt.lazy(()=>Promise.resolve().then(()=>require("./debugger-3RbOKIha.cjs")));function jy(e){const{children:t,apiKey:n,currency:r,templateData:l,requireOptIn:d,disableSessionTracking:f,enableDebugging:p,productionDomains:_}=e;if(!n)throw new Error("API Key is required for AnalyticsProvider");const T=nt.useRef(null),[E,S]=nt.useState(!1);nt.useEffect(()=>{S(!0)},[]),T.current===null&&(T.current=new cp(n,r,l,d,f,_,p??cc()));const w=T.current;return nt.useEffect(()=>(window.enableYextAnalytics=()=>{w.optIn()},()=>{delete window.enableYextAnalytics}),[w]),at.jsxs(at.Fragment,{children:[at.jsx(ud.Provider,{value:w,children:t}),E&&(p||cc())&&Xo().name==="browser"?at.jsx(nt.Suspense,{fallback:at.jsx(at.Fragment,{}),children:at.jsx(Yy,{})}):null]})}function cc(){return Xo().name!=="browser"||typeof window===void 0?!1:!!new URL(window.location.href).searchParams.get("xYextDebug")}class cp{constructor(t,n,r,l,d,f,p=!1){Ie(this,"_optedIn");Ie(this,"_sessionTrackingEnabled");Ie(this,"_analyticsEventService");Ie(this,"_pageViewFired",!1);this.apiKey=t,this.defaultCurrency=n,this.templateData=r,this.productionDomains=f,this.enableDebugging=p,this._optedIn=!l,this._sessionTrackingEnabled=!d,this.makeReporter(),this.pageView()}makeReporter(){if(Xo().name!=="browser"||!this._optedIn)return;if(!Ny(...this.productionDomains??[])&&!this.getDebugEnabled()){console.warn("Yext Analytics disabled for non-production domains");return}const t=Gy(this.templateData.document.businessId),n={authorizationType:"apiKey",authorization:this.apiKey,env:"PRODUCTION",region:t||"US",sessionTrackingEnabled:this._sessionTrackingEnabled,debug:this.getDebugEnabled()},r={pages:{siteUid:this.templateData.document.siteId,template:this.templateData.document.__.name},entity:this.templateData.document.uid||void 0,pageUrl:document.URL,referrerUrl:document.referrer!==""?document.referrer:void 0};this._analyticsEventService=Uy(n).with(r)}canTrack(){return Xo().name==="browser"&&this._optedIn&&!!this._analyticsEventService}identify(t){this.canTrack()&&this._analyticsEventService&&(this._analyticsEventService=this._analyticsEventService.with({visitor:t}))}async optIn(){this._optedIn=!0,this.makeReporter(),this._pageViewFired||await this.pageView()}async pageView(){var t;if(!this.canTrack())return Promise.resolve(void 0);await((t=this._analyticsEventService)==null?void 0:t.report({action:"PAGE_VIEW"})),this._pageViewFired=!0}async track(t){var S;if(!this.canTrack())return Promise.resolve();const{action:n,scope:r,eventName:l,currency:d,amount:f,destinationUrl:p,customTags:_,customValues:T}=t;let E;f&&(E={amount:f,currency:d||this.defaultCurrency}),await((S=this._analyticsEventService)==null?void 0:S.report({action:n,pages:{scope:Uu(r)||void 0,originalEventName:ap(r||"",Uu(l)||"")},value:E,destinationUrl:p,customTags:_,customValues:T}))}getDebugEnabled(){return this.enableDebugging||cc()}}const Gu=nt.createContext({name:""}),dd=()=>nt.useContext(Gu).name;function Vy(e){var f;const t=dd(),[n]=nt.useState({name:ap(t,e.name)}),r=(f=nl())==null?void 0:f.getDebugEnabled(),[l,d]=nt.useState(!1);return nt.useEffect(()=>{d(!0)},[]),r&&l?at.jsx("section",{"data-ya-scope":n.name,children:at.jsx(Gu.Provider,{value:n,children:e.children})}):at.jsx(Gu.Provider,{value:n,children:e.children})}function nl(){const e=nt.useContext(ud);if(!e)return e;Xo().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await e.optIn()});const t=dd();return{getDebugEnabled(){return e.getDebugEnabled()},identify(n){return e.identify(n)},optIn(){return e.optIn()},pageView(){return e.pageView()},track(n){return e.track({...n,scope:n.scope??t})}}}const qy=()=>{var e;return(e=nl())==null?void 0:e.track},Zy=()=>{var e;return(e=nl())==null?void 0:e.pageView},Jy=()=>{var e;return(e=nl())==null?void 0:e.identify},Ts={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},Xy=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}const n=e.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${e}`);return}r="eu"}if(!e.pathname.startsWith("/f")){console.error(`Invalid path: ${e}`);return}const l=e.pathname.replace(/^\//,"").split("/");if(l.length<2||l.length>3){console.error(`Invalid path: ${e}`);return}let d;if(l[0]==="f")d="prod";else switch(l[0].replace("f-","")){case"sandbox":{d="sbx";break}case"qa":{d="qa";break}case"dev":{d="dev";break}default:{console.error(`Invalid path: ${e}`);return}}if(r==="eu"&&(d==="dev"||d==="sbx")){console.error(`Invalid path: ${e}`);return}let f;if(l.length===3&&(f=parseInt(l[1]),Number.isNaN(f))){console.error(`Invalid account id: ${e}`);return}const p=l[l.length-1].split("."),_=p.length===2?`.${p[1]}`:"",T=p[0];return{scheme:t,partition:r,env:d,accountId:f,contentHash:T,extension:_}},Qy=(e,t,n)=>{const r=`https://dyn${e.partition==="us"?"":`.${e.partition}`}.mktgcdn.com`;let l="f";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}const d=e.accountId!==void 0?`${e.accountId}/`:"";return`${r}/${l}/${d}${e.contentHash}${e.extension}/width=${Math.round(t)},height=${Math.round(n)}`},eN=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}if(e.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${e}`);return}if(!e.pathname.startsWith("/p")){console.error(`Invalid path: ${e}`);return}const n=e.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${e}`);return}let r;if(n[0]==="p")r="prod";else switch(n[0].replace("p-","")){case"sandbox":{r="sbx";break}case"qa":{r="qa";break}case"dev":{r="dev";break}default:{console.error(`Invalid path: ${e}`);return}}const l=n[1];let d;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${e}`);return}if(d=parseFloat(n[2]),Number.isNaN(d)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${e}`);return}}const f=n[n.length-1].split("."),p=f.length===2?`.${f[1]}`:"",_=f[0];return{scheme:t,env:r,contentHash:l,aspectRatio:d,name:_,extension:p}},tN=(e,t,n)=>{const r="https://dyn.mktgcdn.com";let l="p";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}return`${r}/${l}/${e.contentHash}/width=${Math.round(t)},height=${Math.round(n)}`},Yu=(e,t,n)=>{if(!up(e)){console.error(`Invalid image url: ${e}.`);return}const r=new URL(e);if(r.pathname.startsWith("/p")){const l=eN(r);if(l)return tN(l,t,n)}else if(r.pathname.startsWith("/f")){const l=Xy(r);if(l)return Qy(l,t,n)}return e},up=e=>{let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},nN=({image:e,className:t,width:n,height:r,aspectRatio:l,layout:d=Ts.INTRINSIC,placeholder:f,imgOverrides:p,style:_={},loading:T="lazy"})=>{const E=nt.useRef(null),[S,w]=nt.useState(!1),M="image"in e?e.image:e;nt.useEffect(()=>{var ce;(ce=E.current)!=null&&ce.complete&&w(!0)},[]),rN(d,M.width,M.height,n,r,l);const m=Math.abs(M.width);m||console.warn("Invalid image width.");const v=Math.abs(M.height);if(v||console.warn("Invalid image height."),!up(M.url))return console.error(`Invalid image url: ${M.url}`),at.jsx(at.Fragment,{children:f!=null&&f});const k=n&&n>0?n:void 0,G=r&&r>0?r:void 0,{src:I,imgStyle:P,widths:H}=iN(d,m,v,_,M.url,k,G,l),j=H.map(ce=>`${Yu(M.url,ce,v/m*ce)} ${ce}w`).join(", "),re=[640,768,1024,1280,1536],te=H.map((ce,V)=>V===H.length-1?`${ce}px`:`(max-width: ${re[V]}px) ${ce}px`).join(", ");return at.jsxs(at.Fragment,{children:[!S&&f!=null&&f,at.jsx("img",{ref:E,style:P,src:I,className:t,width:k,height:G,srcSet:j,sizes:te,loading:T,alt:M.alternateText||"",...p})]})},rN=(e,t,n,r,l,d)=>{if(t<0&&console.warn(`Invalid image width: ${t}.`),n<0&&console.warn(`Invalid image height: ${n}.`),e===Ts.FIXED){if(!r&&!l){console.warn("Using fixed layout but neither width nor height is passed as props.");return}r&&r<0&&console.warn(`Using fixed layout but width is invalid: ${r}.`),l&&l<0&&console.warn(`Using fixed layout but height is invalid: ${l}.`);return}(r||l)&&console.warn("Width or height is passed in but layout is not fixed. These will have no impact. If you want to have a fixed height or width then set layout to fixed."),e===Ts.ASPECT&&!d&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},iN=(e,t,n,r,l,d,f,p)=>{let _=[100,320,640,960,1280,1920],T=Yu(l,500,500);const E={...r};switch(E.objectFit=E.objectFit||"cover",E.objectPosition=E.objectPosition||"center",e){case Ts.INTRINSIC:E.maxWidth=t,E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case Ts.FIXED:{const{fixedWidth:S,fixedHeight:w,fixedWidths:M}=sN(t,n,_,d,f);E.width=S,E.height=w,_=M,T=Yu(l,S,w);break}case Ts.ASPECT:E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case Ts.FILL:E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;default:console.warn(`Unrecognized layout: ${e}.`);break}return{src:T,imgStyle:E,widths:_}},sN=(e,t,n,r,l)=>r&&l?{fixedWidth:r,fixedHeight:l,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*t/e,fixedWidths:[r]}:l?{fixedWidth:l/t*e,fixedHeight:l,fixedWidths:[l/t*e]}:{fixedWidth:e,fixedHeight:t,fixedWidths:n};var dp={exports:{}};/*!
33
33
  Copyright (c) 2018 Jed Watson.
34
34
  Licensed under the MIT License (MIT), see
35
35
  http://jedwatson.github.io/classnames
@@ -106,6 +106,6 @@ caused by: ${Ai.fullStack(n)}`:t.stack??""}static info(t){Yc(t);const n={},r=Ai.
106
106
  `});const T={type:"element",tagName:"li",properties:d,children:f};return e.patch(t,T),e.applyData(t,T)}function ET(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=tm(n[r])}return t}function tm(e){const t=e.spread;return t??e.children.length>1}function TT(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const f=r[l];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const d={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,d),e.applyData(t,d)}function xT(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vT(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ST(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const wd=nm("start"),Od=nm("end");function wT(e){return{start:wd(e),end:Od(e)}}function nm(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function OT(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],f),l.push(f)}if(n.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},p=wd(t.children[1]),_=Od(t.children[t.children.length-1]);p.line&&_.line&&(f.position={start:p,end:_}),l.push(f)}const d={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,d),e.applyData(t,d)}function DT(e,t,n){const r=n?n.children:void 0,d=(r?r.indexOf(t):1)===0?"th":"td",f=n&&n.type==="table"?n.align:void 0,p=f?f.length:t.children.length;let _=-1;const T=[];for(;++_<p;){const S=t.children[_],w={},M=f?f[_]:void 0;M&&(w.align=M);let m={type:"element",tagName:d,properties:w,children:[]};S&&(m.children=e.all(S),e.patch(S,m),m=e.applyData(t,m)),T.push(m)}const E={type:"element",tagName:"tr",properties:{},children:e.wrap(T,!0)};return e.patch(t,E),e.applyData(t,E)}function AT(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Eg=9,Tg=32;function MT(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const d=[];for(;r;)d.push(xg(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return d.push(xg(t.slice(l),l>0,!1)),d.join("")}function xg(e,t,n){let r=0,l=e.length;if(t){let d=e.codePointAt(r);for(;d===Eg||d===Tg;)r++,d=e.codePointAt(r)}if(n){let d=e.codePointAt(l-1);for(;d===Eg||d===Tg;)l--,d=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function RT(e,t){const n={type:"text",value:MT(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function bT(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const LT={blockquote:lT,break:aT,code:cT,delete:uT,emphasis:dT,footnoteReference:Qp,footnote:fT,heading:hT,html:gT,imageReference:pT,image:mT,inlineCode:_T,linkReference:yT,link:NT,listItem:CT,list:TT,paragraph:xT,root:vT,strong:ST,table:OT,tableCell:AT,tableRow:DT,text:RT,thematicBreak:bT,toml:Ja,yaml:Ja,definition:Ja,footnoteDefinition:Ja};function Ja(){return null}const rm=function(e){if(e==null)return $T;if(typeof e=="string")return PT(e);if(typeof e=="object")return Array.isArray(e)?IT(e):kT(e);if(typeof e=="function")return Cc(e);throw new Error("Expected function, string, or object as test")};function IT(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rm(e[n]);return Cc(r);function r(...l){let d=-1;for(;++d<t.length;)if(t[d].call(this,...l))return!0;return!1}}function kT(e){return Cc(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function PT(e){return Cc(t);function t(n){return n&&n.type===e}}function Cc(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function $T(){return!0}const FT=!0,vg=!1,BT="skip",HT=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const l=rm(t),d=r?-1:1;f(e,void 0,[])();function f(p,_,T){const E=p&&typeof p=="object"?p:{};if(typeof E.type=="string"){const w=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(w?"<"+w+">":""))+")"})}return S;function S(){let w=[],M,m,v;if((!t||l(p,_,T[T.length-1]||null))&&(w=WT(n(p,T)),w[0]===vg))return w;if(p.children&&w[0]!==BT)for(m=(r?p.children.length:-1)+d,v=T.concat(p);m>-1&&m<p.children.length;){if(M=f(p.children[m],m,v)(),M[0]===vg)return M;m=typeof M[1]=="number"?M[1]:m+d}return w}}};function WT(e){return Array.isArray(e)?e:typeof e=="number"?[FT,e]:[e]}const Dd=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),HT(e,t,l,r);function l(d,f){const p=f[f.length-1];return n(d,p?p.children.indexOf(d):null,p)}};function KT(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const Sg={}.hasOwnProperty;function zT(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Dd(e,"definition",r=>{const l=wg(r.identifier);l&&!Sg.call(t,l)&&(t[l]=r)}),n;function n(r){const l=wg(r);return l&&Sg.call(t,l)?t[l]:null}}function wg(e){return String(e||"").toUpperCase()}const fc={}.hasOwnProperty;function UT(e,t){const n=t||{},r=n.allowDangerousHtml||!1,l={};return f.dangerous=r,f.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,f.footnoteLabel=n.footnoteLabel||"Footnotes",f.footnoteLabelTagName=n.footnoteLabelTagName||"h2",f.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},f.footnoteBackLabel=n.footnoteBackLabel||"Back to content",f.unknownHandler=n.unknownHandler,f.passThrough=n.passThrough,f.handlers={...LT,...n.handlers},f.definition=zT(e),f.footnoteById=l,f.footnoteOrder=[],f.footnoteCounts={},f.patch=GT,f.applyData=YT,f.one=p,f.all=_,f.wrap=VT,f.augment=d,Dd(e,"footnoteDefinition",T=>{const E=String(T.identifier).toUpperCase();fc.call(l,E)||(l[E]=T)}),f;function d(T,E){if(T&&"data"in T&&T.data){const S=T.data;S.hName&&(E.type!=="element"&&(E={type:"element",tagName:"",properties:{},children:[]}),E.tagName=S.hName),E.type==="element"&&S.hProperties&&(E.properties={...E.properties,...S.hProperties}),"children"in E&&E.children&&S.hChildren&&(E.children=S.hChildren)}if(T){const S="type"in T?T:{position:T};KT(S)||(E.position={start:wd(S),end:Od(S)})}return E}function f(T,E,S,w){return Array.isArray(S)&&(w=S,S={}),d(T,{type:"element",tagName:E,properties:S||{},children:w||[]})}function p(T,E){return im(f,T,E)}function _(T){return rs(f,T)}}function GT(e,t){e.position&&(t.position=wT(e))}function YT(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,d=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&d&&(n.properties={...n.properties,...d}),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function im(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return fc.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:rs(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):jT(e,t)}function rs(e,t){const n=[];if("children"in t){const r=t.children;let l=-1;for(;++l<r.length;){const d=im(e,r[l],t);if(d){if(l&&r[l-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=d.value.replace(/^\s+/,"")),!Array.isArray(d)&&d.type==="element")){const f=d.children[0];f&&f.type==="text"&&(f.value=f.value.replace(/^\s+/,""))}Array.isArray(d)?n.push(...d):n.push(d)}}}return n}function jT(e,t){const n=t.data||{},r="value"in t&&!(fc.call(n,"hProperties")||fc.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:rs(e,t)};return e.patch(t,r),e.applyData(t,r)}function VT(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
107
107
  `});++r<e.length;)r&&n.push({type:"text",value:`
108
108
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
109
- `}),n}const qT=(e,t)=>e(t,"i",rs(e,t)),ZT=(e,t)=>e(t,"b",rs(e,t)),JT=(e,t)=>e(t,"u",rs(e,t)),XT=(e,t)=>e(t,"s",rs(e,t)),QT=(e,t)=>e(t,"sub",rs(e,t)),ex=(e,t)=>e(t,"sup",rs(e,t)),tx={emphasis:qT,strong:ZT,underline:JT,strikethrough:XT,subscript:QT,superscript:ex},nx=e=>{const[t,n]=nt.useState();let r;return nt.useEffect(()=>{(async()=>{if(!r)try{r=(await Promise.resolve().then(()=>require("./index-dVLsHsji.cjs"))).default}catch{throw new Error("Failed to import React Markdown, cannot properly render LegacyRichText.")}const d=r({children:e.markdown,remarkPlugins:[oT],remarkRehypeOptions:{handlers:tx}});n(d)})()},[e.markdown]),t||null};class co extends Error{}class rx extends co{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class ix extends co{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class sx extends co{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class qo extends co{}class sm extends co{constructor(t){super(`Invalid unit ${t}`)}}class mr extends co{}class ys extends co{constructor(){super("Zone is an abstract class")}}const lt="numeric",mi="short",Yr="long",hc={year:lt,month:lt,day:lt},om={year:lt,month:mi,day:lt},ox={year:lt,month:mi,day:lt,weekday:mi},lm={year:lt,month:Yr,day:lt},am={year:lt,month:Yr,day:lt,weekday:Yr},cm={hour:lt,minute:lt},um={hour:lt,minute:lt,second:lt},dm={hour:lt,minute:lt,second:lt,timeZoneName:mi},fm={hour:lt,minute:lt,second:lt,timeZoneName:Yr},hm={hour:lt,minute:lt,hourCycle:"h23"},gm={hour:lt,minute:lt,second:lt,hourCycle:"h23"},pm={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:mi},mm={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:Yr},_m={year:lt,month:lt,day:lt,hour:lt,minute:lt},ym={year:lt,month:lt,day:lt,hour:lt,minute:lt,second:lt},Nm={year:lt,month:mi,day:lt,hour:lt,minute:lt},Cm={year:lt,month:mi,day:lt,hour:lt,minute:lt,second:lt},lx={year:lt,month:mi,day:lt,weekday:mi,hour:lt,minute:lt},Em={year:lt,month:Yr,day:lt,hour:lt,minute:lt,timeZoneName:mi},Tm={year:lt,month:Yr,day:lt,hour:lt,minute:lt,second:lt,timeZoneName:mi},xm={year:lt,month:Yr,day:lt,weekday:Yr,hour:lt,minute:lt,timeZoneName:Yr},vm={year:lt,month:Yr,day:lt,weekday:Yr,hour:lt,minute:lt,second:lt,timeZoneName:Yr};class ca{get type(){throw new ys}get name(){throw new ys}get ianaName(){return this.name}get isUniversal(){throw new ys}offsetName(t,n){throw new ys}formatOffset(t,n){throw new ys}offset(t){throw new ys}equals(t){throw new ys}get isValid(){throw new ys}}let bu=null;class Ec extends ca{static get instance(){return bu===null&&(bu=new Ec),bu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Lm(t,n,r)}formatOffset(t,n){return sa(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let sc={};function ax(e){return sc[e]||(sc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),sc[e]}const cx={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ux(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,l,d,f,p,_,T,E]=r;return[f,l,d,p,_,T,E]}function dx(e,t){const n=e.formatToParts(t),r=[];for(let l=0;l<n.length;l++){const{type:d,value:f}=n[l],p=cx[d];d==="era"?r[p]=f:Lt(p)||(r[p]=parseInt(f,10))}return r}let Xa={};class ns extends ca{static create(t){return Xa[t]||(Xa[t]=new ns(t)),Xa[t]}static resetCache(){Xa={},sc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ns.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Lm(t,n,r,this.name)}formatOffset(t,n){return sa(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=ax(this.name);let[l,d,f,p,_,T,E]=r.formatToParts?dx(r,n):ux(r,n);p==="BC"&&(l=-Math.abs(l)+1);const w=xc({year:l,month:d,day:f,hour:_===24?0:_,minute:T,second:E,millisecond:0});let M=+n;const m=M%1e3;return M-=m>=0?m:1e3+m,(w-M)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Og={};function fx(e,t={}){const n=JSON.stringify([e,t]);let r=Og[n];return r||(r=new Intl.ListFormat(e,t),Og[n]=r),r}let Xu={};function Qu(e,t={}){const n=JSON.stringify([e,t]);let r=Xu[n];return r||(r=new Intl.DateTimeFormat(e,t),Xu[n]=r),r}let ed={};function hx(e,t={}){const n=JSON.stringify([e,t]);let r=ed[n];return r||(r=new Intl.NumberFormat(e,t),ed[n]=r),r}let td={};function gx(e,t={}){const{base:n,...r}=t,l=JSON.stringify([e,r]);let d=td[l];return d||(d=new Intl.RelativeTimeFormat(e,t),td[l]=d),d}let ta=null;function px(){return ta||(ta=new Intl.DateTimeFormat().resolvedOptions().locale,ta)}let Dg={};function mx(e){let t=Dg[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Dg[e]=t}return t}function _x(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,l;try{r=Qu(e).resolvedOptions(),l=e}catch{const _=e.substring(0,n);r=Qu(_).resolvedOptions(),l=_}const{numberingSystem:d,calendar:f}=r;return[l,d,f]}}function yx(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Nx(e){const t=[];for(let n=1;n<=12;n++){const r=Ot.utc(2009,n,1);t.push(e(r))}return t}function Cx(e){const t=[];for(let n=1;n<=7;n++){const r=Ot.utc(2016,11,13+n);t.push(e(r))}return t}function Qa(e,t,n,r){const l=e.listingMode();return l==="error"?null:l==="en"?n(t):r(t)}function Ex(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Tx{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:l,floor:d,...f}=r;if(!n||Object.keys(f).length>0){const p={useGrouping:!1,...r};r.padTo>0&&(p.minimumIntegerDigits=r.padTo),this.inf=hx(t,p)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Ld(t,3);return Kn(n,this.padTo)}}}class xx{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const f=-1*(t.offset/60),p=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;t.offset!==0&&ns.create(p).valid?(l=p,this.dt=t):(l="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,l=t.zone.name):(l="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Qu(n,d)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class vx{constructor(t,n,r){this.opts={style:"long",...r},!n&&Rm()&&(this.rtf=gx(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):jx(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const Sx={firstDay:1,minimalDays:4,weekend:[6,7]};class un{static fromOpts(t){return un.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,l,d=!1){const f=t||Rn.defaultLocale,p=f||(d?"en-US":px()),_=n||Rn.defaultNumberingSystem,T=r||Rn.defaultOutputCalendar,E=nd(l)||Rn.defaultWeekSettings;return new un(p,_,T,E,f)}static resetCache(){ta=null,Xu={},ed={},td={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:l}={}){return un.create(t,n,r,l)}constructor(t,n,r,l,d){const[f,p,_]=_x(t);this.locale=f,this.numberingSystem=n||p||null,this.outputCalendar=r||_||null,this.weekSettings=l,this.intl=yx(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=d,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Ex(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:un.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nd(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Qa(this,t,Pm,()=>{const r=n?{month:t,day:"numeric"}:{month:t},l=n?"format":"standalone";return this.monthsCache[l][t]||(this.monthsCache[l][t]=Nx(d=>this.extract(d,r,"month"))),this.monthsCache[l][t]})}weekdays(t,n=!1){return Qa(this,t,Bm,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},l=n?"format":"standalone";return this.weekdaysCache[l][t]||(this.weekdaysCache[l][t]=Cx(d=>this.extract(d,r,"weekday"))),this.weekdaysCache[l][t]})}meridiems(){return Qa(this,void 0,()=>Hm,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ot.utc(2016,11,13,9),Ot.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Qa(this,t,Wm,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ot.utc(-40,1,1),Ot.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const l=this.dtFormatter(t,n),d=l.formatToParts(),f=d.find(p=>p.type.toLowerCase()===r);return f?f.value:null}numberFormatter(t={}){return new Tx(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new xx(t,this.intl,n)}relFormatter(t={}){return new vx(this.intl,this.isEnglish(),t)}listFormatter(t={}){return fx(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:bm()?mx(this.locale):Sx}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Lu=null;class vr extends ca{static get utcInstance(){return Lu===null&&(Lu=new vr(0)),Lu}static instance(t){return t===0?vr.utcInstance:new vr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new vr(vc(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${sa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${sa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return sa(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class wx extends ca{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Es(e,t){if(Lt(e)||e===null)return t;if(e instanceof ca)return e;if(bx(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Ec.instance:n==="utc"||n==="gmt"?vr.utcInstance:vr.parseSpecifier(n)||ns.create(e)}else return xs(e)?vr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new wx(e)}const Ad={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ag={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ox=Ad.hanidec.replace(/[\[|\]]/g,"").split("");function Dx(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(Ad.hanidec)!==-1)t+=Ox.indexOf(e[n]);else for(const l in Ag){const[d,f]=Ag[l];r>=d&&r<=f&&(t+=r-d)}}return parseInt(t,10)}else return t}let Vo={};function Ax(){Vo={}}function hi({numberingSystem:e},t=""){const n=e||"latn";return Vo[n]||(Vo[n]={}),Vo[n][t]||(Vo[n][t]=new RegExp(`${Ad[n]}${t}`)),Vo[n][t]}let Mg=()=>Date.now(),Rg="system",bg=null,Lg=null,Ig=null,kg=60,Pg,$g=null;class Rn{static get now(){return Mg}static set now(t){Mg=t}static set defaultZone(t){Rg=t}static get defaultZone(){return Es(Rg,Ec.instance)}static get defaultLocale(){return bg}static set defaultLocale(t){bg=t}static get defaultNumberingSystem(){return Lg}static set defaultNumberingSystem(t){Lg=t}static get defaultOutputCalendar(){return Ig}static set defaultOutputCalendar(t){Ig=t}static get defaultWeekSettings(){return $g}static set defaultWeekSettings(t){$g=nd(t)}static get twoDigitCutoffYear(){return kg}static set twoDigitCutoffYear(t){kg=t%100}static get throwOnInvalid(){return Pg}static set throwOnInvalid(t){Pg=t}static resetCaches(){un.resetCache(),ns.resetCache(),Ot.resetCache(),Ax()}}class pi{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Sm=[0,31,59,90,120,151,181,212,243,273,304,334],wm=[0,31,60,91,121,152,182,213,244,274,305,335];function ei(e,t){return new pi("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Md(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const l=r.getUTCDay();return l===0?7:l}function Om(e,t,n){return n+(ua(e)?wm:Sm)[t-1]}function Dm(e,t){const n=ua(e)?wm:Sm,r=n.findIndex(d=>d<t),l=t-n[r];return{month:r+1,day:l}}function Rd(e,t){return(e-t+7)%7+1}function gc(e,t=4,n=1){const{year:r,month:l,day:d}=e,f=Om(r,l,d),p=Rd(Md(r,l,d),n);let _=Math.floor((f-p+14-t)/7),T;return _<1?(T=r-1,_=aa(T,t,n)):_>aa(r,t,n)?(T=r+1,_=1):T=r,{weekYear:T,weekNumber:_,weekday:p,...Sc(e)}}function Fg(e,t=4,n=1){const{weekYear:r,weekNumber:l,weekday:d}=e,f=Rd(Md(r,1,t),n),p=Zo(r);let _=l*7+d-f-7+t,T;_<1?(T=r-1,_+=Zo(T)):_>p?(T=r+1,_-=Zo(r)):T=r;const{month:E,day:S}=Dm(T,_);return{year:T,month:E,day:S,...Sc(e)}}function Iu(e){const{year:t,month:n,day:r}=e,l=Om(t,n,r);return{year:t,ordinal:l,...Sc(e)}}function Bg(e){const{year:t,ordinal:n}=e,{month:r,day:l}=Dm(t,n);return{year:t,month:r,day:l,...Sc(e)}}function Hg(e,t){if(!Lt(e.localWeekday)||!Lt(e.localWeekNumber)||!Lt(e.localWeekYear)){if(!Lt(e.weekday)||!Lt(e.weekNumber)||!Lt(e.weekYear))throw new qo("Cannot mix locale-based week fields with ISO-based week fields");return Lt(e.localWeekday)||(e.weekday=e.localWeekday),Lt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Lt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Mx(e,t=4,n=1){const r=Tc(e.weekYear),l=ti(e.weekNumber,1,aa(e.weekYear,t,n)),d=ti(e.weekday,1,7);return r?l?d?!1:ei("weekday",e.weekday):ei("week",e.weekNumber):ei("weekYear",e.weekYear)}function Rx(e){const t=Tc(e.year),n=ti(e.ordinal,1,Zo(e.year));return t?n?!1:ei("ordinal",e.ordinal):ei("year",e.year)}function Am(e){const t=Tc(e.year),n=ti(e.month,1,12),r=ti(e.day,1,pc(e.year,e.month));return t?n?r?!1:ei("day",e.day):ei("month",e.month):ei("year",e.year)}function Mm(e){const{hour:t,minute:n,second:r,millisecond:l}=e,d=ti(t,0,23)||t===24&&n===0&&r===0&&l===0,f=ti(n,0,59),p=ti(r,0,59),_=ti(l,0,999);return d?f?p?_?!1:ei("millisecond",l):ei("second",r):ei("minute",n):ei("hour",t)}function Lt(e){return typeof e>"u"}function xs(e){return typeof e=="number"}function Tc(e){return typeof e=="number"&&e%1===0}function bx(e){return typeof e=="string"}function Lx(e){return Object.prototype.toString.call(e)==="[object Date]"}function Rm(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function bm(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ix(e){return Array.isArray(e)?e:[e]}function Wg(e,t,n){if(e.length!==0)return e.reduce((r,l)=>{const d=[t(l),l];return r&&n(r[0],d[0])===r[0]?r:d},null)[1]}function kx(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function el(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(e==null)return null;if(typeof e!="object")throw new mr("Week settings must be an object");if(!ti(e.firstDay,1,7)||!ti(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ti(t,1,7)))throw new mr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ti(e,t,n){return Tc(e)&&e>=t&&e<=n}function Px(e,t){return e-t*Math.floor(e/t)}function Kn(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Cs(e){if(!(Lt(e)||e===null||e===""))return parseInt(e,10)}function Qs(e){if(!(Lt(e)||e===null||e===""))return parseFloat(e)}function bd(e){if(!(Lt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Ld(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function ua(e){return e%4===0&&(e%100!==0||e%400===0)}function Zo(e){return ua(e)?366:365}function pc(e,t){const n=Px(t-1,12)+1,r=e+(t-n)/12;return n===2?ua(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xc(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Kg(e,t,n){return-Rd(Md(e,1,t),n)+t-1}function aa(e,t=4,n=1){const r=Kg(e,t,n),l=Kg(e+1,t,n);return(Zo(e)-r+l)/7}function rd(e){return e>99?e:e>Rn.twoDigitCutoffYear?1900+e:2e3+e}function Lm(e,t,n,r=null){const l=new Date(e),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(d.timeZone=r);const f={timeZoneName:t,...d},p=new Intl.DateTimeFormat(n,f).formatToParts(l).find(_=>_.type.toLowerCase()==="timezonename");return p?p.value:null}function vc(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,l=n<0||Object.is(n,-0)?-r:r;return n*60+l}function Im(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new mr(`Invalid unit value ${e}`);return t}function mc(e,t){const n={};for(const r in e)if(el(e,r)){const l=e[r];if(l==null)continue;n[t(r)]=Im(l)}return n}function sa(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(t){case"short":return`${l}${Kn(n,2)}:${Kn(r,2)}`;case"narrow":return`${l}${n}${r>0?`:${r}`:""}`;case"techie":return`${l}${Kn(n,2)}${Kn(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Sc(e){return kx(e,["hour","minute","second","millisecond"])}const $x=["January","February","March","April","May","June","July","August","September","October","November","December"],km=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Fx=["J","F","M","A","M","J","J","A","S","O","N","D"];function Pm(e){switch(e){case"narrow":return[...Fx];case"short":return[...km];case"long":return[...$x];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const $m=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Fm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bx=["M","T","W","T","F","S","S"];function Bm(e){switch(e){case"narrow":return[...Bx];case"short":return[...Fm];case"long":return[...$m];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hm=["AM","PM"],Hx=["Before Christ","Anno Domini"],Wx=["BC","AD"],Kx=["B","A"];function Wm(e){switch(e){case"narrow":return[...Kx];case"short":return[...Wx];case"long":return[...Hx];default:return null}}function zx(e){return Hm[e.hour<12?0:1]}function Ux(e,t){return Bm(t)[e.weekday-1]}function Gx(e,t){return Pm(t)[e.month-1]}function Yx(e,t){return Wm(t)[e.year<0?0:1]}function jx(e,t,n="always",r=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&d){const S=e==="days";switch(t){case 1:return S?"tomorrow":`next ${l[e][0]}`;case-1:return S?"yesterday":`last ${l[e][0]}`;case 0:return S?"today":`this ${l[e][0]}`}}const f=Object.is(t,-0)||t<0,p=Math.abs(t),_=p===1,T=l[e],E=r?_?T[1]:T[2]||T[1]:_?l[e][0]:e;return f?`${p} ${E} ago`:`in ${p} ${E}`}function zg(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Vx={D:hc,DD:om,DDD:lm,DDDD:am,t:cm,tt:um,ttt:dm,tttt:fm,T:hm,TT:gm,TTT:pm,TTTT:mm,f:_m,ff:Nm,fff:Em,ffff:xm,F:ym,FF:Cm,FFF:Tm,FFFF:vm};class _r{static create(t,n={}){return new _r(t,n)}static parseFormat(t){let n=null,r="",l=!1;const d=[];for(let f=0;f<t.length;f++){const p=t.charAt(f);p==="'"?(r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),n=null,r="",l=!l):l||p===n?r+=p:(r.length>0&&d.push({literal:/^\s+$/.test(r),val:r}),r=p,n=p)}return r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),d}static macroTokenToFormatOpts(t){return Vx[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Kn(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(M,m)=>this.loc.extract(t,M,m),f=M=>t.isOffsetFixed&&t.offset===0&&M.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,M.format):"",p=()=>r?zx(t):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),_=(M,m)=>r?Gx(t,M):d(m?{month:M}:{month:M,day:"numeric"},"month"),T=(M,m)=>r?Ux(t,M):d(m?{weekday:M}:{weekday:M,month:"long",day:"numeric"},"weekday"),E=M=>{const m=_r.macroTokenToFormatOpts(M);return m?this.formatWithSystemDefault(t,m):M},S=M=>r?Yx(t,M):d({era:M},"era"),w=M=>{switch(M){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return p();case"d":return l?d({day:"numeric"},"day"):this.num(t.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return T("short",!0);case"cccc":return T("long",!0);case"ccccc":return T("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return T("short",!1);case"EEEE":return T("long",!1);case"EEEEE":return T("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return _("short",!0);case"LLLL":return _("long",!0);case"LLLLL":return _("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(t.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return _("short",!1);case"MMMM":return _("long",!1);case"MMMMM":return _("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(t.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(t.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(M)}};return zg(_r.parseFormat(n),w)}formatDurationFromString(t,n){const r=_=>{switch(_[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=_=>T=>{const E=r(T);return E?this.num(_.get(E),T.length):T},d=_r.parseFormat(n),f=d.reduce((_,{literal:T,val:E})=>T?_:_.concat(E),[]),p=t.shiftTo(...f.map(r).filter(_=>_));return zg(d,l(p))}}const Km=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ll(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function al(...e){return t=>e.reduce(([n,r,l],d)=>{const[f,p,_]=d(t,l);return[{...n,...f},p||r,_]},[{},null,1]).slice(0,2)}function cl(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const l=n.exec(e);if(l)return r(l)}return[null,null]}function zm(...e){return(t,n)=>{const r={};let l;for(l=0;l<e.length;l++)r[e[l]]=Cs(t[n+l]);return[r,null,n+l]}}const Um=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,qx=`(?:${Um.source}?(?:\\[(${Km.source})\\])?)?`,Id=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Gm=RegExp(`${Id.source}${qx}`),kd=RegExp(`(?:T${Gm.source})?`),Zx=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Jx=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Xx=/(\d{4})-?(\d{3})/,Qx=zm("weekYear","weekNumber","weekDay"),ev=zm("year","ordinal"),tv=/(\d{4})-(\d\d)-(\d\d)/,Ym=RegExp(`${Id.source} ?(?:${Um.source}|(${Km.source}))?`),nv=RegExp(`(?: ${Ym.source})?`);function Jo(e,t,n){const r=e[t];return Lt(r)?n:Cs(r)}function rv(e,t){return[{year:Jo(e,t),month:Jo(e,t+1,1),day:Jo(e,t+2,1)},null,t+3]}function ul(e,t){return[{hours:Jo(e,t,0),minutes:Jo(e,t+1,0),seconds:Jo(e,t+2,0),milliseconds:bd(e[t+3])},null,t+4]}function da(e,t){const n=!e[t]&&!e[t+1],r=vc(e[t+1],e[t+2]),l=n?null:vr.instance(r);return[{},l,t+3]}function fa(e,t){const n=e[t]?ns.create(e[t]):null;return[{},n,t+1]}const iv=RegExp(`^T?${Id.source}$`),sv=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ov(e){const[t,n,r,l,d,f,p,_,T]=e,E=t[0]==="-",S=_&&_[0]==="-",w=(M,m=!1)=>M!==void 0&&(m||M&&E)?-M:M;return[{years:w(Qs(n)),months:w(Qs(r)),weeks:w(Qs(l)),days:w(Qs(d)),hours:w(Qs(f)),minutes:w(Qs(p)),seconds:w(Qs(_),_==="-0"),milliseconds:w(bd(T),S)}]}const lv={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Pd(e,t,n,r,l,d,f){const p={year:t.length===2?rd(Cs(t)):Cs(t),month:km.indexOf(n)+1,day:Cs(r),hour:Cs(l),minute:Cs(d)};return f&&(p.second=Cs(f)),e&&(p.weekday=e.length>3?$m.indexOf(e)+1:Fm.indexOf(e)+1),p}const av=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function cv(e){const[,t,n,r,l,d,f,p,_,T,E,S]=e,w=Pd(t,l,r,n,d,f,p);let M;return _?M=lv[_]:T?M=0:M=vc(E,S),[w,new vr(M)]}function uv(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const dv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,fv=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ug(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,l,r,n,d,f,p),vr.utcInstance]}function gv(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,p,n,r,l,d,f),vr.utcInstance]}const pv=ll(Zx,kd),mv=ll(Jx,kd),_v=ll(Xx,kd),yv=ll(Gm),jm=al(rv,ul,da,fa),Nv=al(Qx,ul,da,fa),Cv=al(ev,ul,da,fa),Ev=al(ul,da,fa);function Tv(e){return cl(e,[pv,jm],[mv,Nv],[_v,Cv],[yv,Ev])}function xv(e){return cl(uv(e),[av,cv])}function vv(e){return cl(e,[dv,Ug],[fv,Ug],[hv,gv])}function Sv(e){return cl(e,[sv,ov])}const wv=al(ul);function Ov(e){return cl(e,[iv,wv])}const Dv=ll(tv,nv),Av=ll(Ym),Mv=al(ul,da,fa);function Rv(e){return cl(e,[Dv,jm],[Av,Mv])}const Gg="Invalid Duration",Vm={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},bv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Vm},Qr=146097/400,Uo=146097/4800,Lv={years:{quarters:4,months:12,weeks:Qr/7,days:Qr,hours:Qr*24,minutes:Qr*24*60,seconds:Qr*24*60*60,milliseconds:Qr*24*60*60*1e3},quarters:{months:3,weeks:Qr/28,days:Qr/4,hours:Qr*24/4,minutes:Qr*24*60/4,seconds:Qr*24*60*60/4,milliseconds:Qr*24*60*60*1e3/4},months:{weeks:Uo/7,days:Uo,hours:Uo*24,minutes:Uo*24*60,seconds:Uo*24*60*60,milliseconds:Uo*24*60*60*1e3},...Vm},so=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Iv=so.slice(0).reverse();function Ns(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Qt(r)}function qm(e,t){let n=t.milliseconds??0;for(const r of Iv.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Yg(e,t){const n=qm(e,t)<0?-1:1;so.reduceRight((r,l)=>{if(Lt(t[l]))return r;if(r){const d=t[r]*n,f=e[l][r],p=Math.floor(d/f);t[l]+=p*n,t[r]-=p*f*n}return l},null),so.reduce((r,l)=>{if(Lt(t[l]))return r;if(r){const d=t[r]%1;t[r]-=d,t[l]+=d*e[r][l]}return l},null)}function kv(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Qt{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Lv:bv;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||un.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Qt.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new mr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Qt({values:mc(t,Qt.normalizeUnit),loc:un.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(xs(t))return Qt.fromMillis(t);if(Qt.isDuration(t))return t;if(typeof t=="object")return Qt.fromObject(t);throw new mr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=Sv(t);return r?Qt.fromObject(r,n):Qt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Ov(t);return r?Qt.fromObject(r,n):Qt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Duration is invalid");const r=t instanceof pi?t:new pi(t,n);if(Rn.throwOnInvalid)throw new sx(r);return new Qt({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new sm(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?_r.create(this.loc,r).formatDurationFromString(this,t):Gg}toHuman(t={}){if(!this.isValid)return Gg;const n=so.map(r=>{const l=this.values[r];return Lt(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(l)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Ld(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ot.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?qm(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t),r={};for(const l of so)(el(n.values,l)||el(this.values,l))&&(r[l]=n.get(l)+this.get(l));return Ns(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Im(t(this.values[r],r));return Ns(this,{values:n},!0)}get(t){return this[Qt.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...mc(t,Qt.normalizeUnit)};return Ns(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:l}={}){const f={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:l,conversionAccuracy:r};return Ns(this,f)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Yg(this.matrix,t),Ns(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=kv(this.normalize().shiftToAll().toObject());return Ns(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(f=>Qt.normalizeUnit(f));const n={},r={},l=this.toObject();let d;for(const f of so)if(t.indexOf(f)>=0){d=f;let p=0;for(const T in r)p+=this.matrix[T][f]*r[T],r[T]=0;xs(l[f])&&(p+=l[f]);const _=Math.trunc(p);n[f]=_,r[f]=(p*1e3-_*1e3)/1e3}else xs(l[f])&&(r[f]=l[f]);for(const f in r)r[f]!==0&&(n[d]+=f===d?r[f]:r[f]/this.matrix[d][f]);return Yg(this.matrix,n),Ns(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ns(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,l){return r===void 0||r===0?l===void 0||l===0:r===l}for(const r of so)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Go="Invalid Interval";function Pv(e,t){return!e||!e.isValid?Mn.invalid("missing or invalid start"):!t||!t.isValid?Mn.invalid("missing or invalid end"):t<e?Mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Interval is invalid");const r=t instanceof pi?t:new pi(t,n);if(Rn.throwOnInvalid)throw new ix(r);return new Mn({invalid:r})}static fromDateTimes(t,n){const r=Xl(t),l=Xl(n),d=Pv(r,l);return d??new Mn({start:r,end:l})}static after(t,n){const r=Qt.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l,l.plus(r))}static before(t,n){const r=Qt.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l.minus(r),l)}static fromISO(t,n){const[r,l]=(t||"").split("/",2);if(r&&l){let d,f;try{d=Ot.fromISO(r,n),f=d.isValid}catch{f=!1}let p,_;try{p=Ot.fromISO(l,n),_=p.isValid}catch{_=!1}if(f&&_)return Mn.fromDateTimes(d,p);if(f){const T=Qt.fromISO(l,n);if(T.isValid)return Mn.after(d,T)}else if(_){const T=Qt.fromISO(r,n);if(T.isValid)return Mn.before(p,T)}}return Mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let l;return n!=null&&n.useLocaleWeeks?l=this.end.reconfigure({locale:r.locale}):l=this.end,l=l.startOf(t,n),Math.floor(l.diff(r,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Xl).filter(f=>this.contains(f)).sort((f,p)=>f.toMillis()-p.toMillis()),r=[];let{s:l}=this,d=0;for(;l<this.e;){const f=n[d]||this.e,p=+f>+this.e?this.e:f;r.push(Mn.fromDateTimes(l,p)),l=p,d+=1}return r}splitBy(t){const n=Qt.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,l=1,d;const f=[];for(;r<this.e;){const p=this.start.plus(n.mapUnits(_=>_*l));d=+p>+this.e?this.e:p,f.push(Mn.fromDateTimes(r,d)),r=d,l+=1}return f}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:Mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return Mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((l,d)=>l.s-d.s).reduce(([l,d],f)=>d?d.overlaps(f)||d.abutsStart(f)?[l,d.union(f)]:[l.concat([d]),f]:[l,f],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const l=[],d=t.map(_=>[{time:_.s,type:"s"},{time:_.e,type:"e"}]),f=Array.prototype.concat(...d),p=f.sort((_,T)=>_.time-T.time);for(const _ of p)r+=_.type==="s"?1:-1,r===1?n=_.time:(n&&+n!=+_.time&&l.push(Mn.fromDateTimes(n,_.time)),n=null);return Mn.merge(l)}difference(...t){return Mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Go}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=hc,n={}){return this.isValid?_r.create(this.s.loc.clone(n),t).formatInterval(this):Go}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Go}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Go}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Go}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Go}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Qt.invalid(this.invalidReason)}mapEndpoints(t){return Mn.fromDateTimes(t(this.s),t(this.e))}}class ec{static hasDST(t=Rn.defaultZone){const n=Ot.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ns.isValidZone(t)}static normalizeZone(t){return Es(t,Rn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||un.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||un.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||un.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||un.create(n,r,d)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||un.create(n,r,d)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||un.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||un.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return un.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return un.create(n,null,"gregory").eras(t)}static features(){return{relative:Rm(),localeWeek:bm()}}}function jg(e,t){const n=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Qt.fromMillis(r).as("days"))}function $v(e,t,n){const r=[["years",(_,T)=>T.year-_.year],["quarters",(_,T)=>T.quarter-_.quarter+(T.year-_.year)*4],["months",(_,T)=>T.month-_.month+(T.year-_.year)*12],["weeks",(_,T)=>{const E=jg(_,T);return(E-E%7)/7}],["days",jg]],l={},d=e;let f,p;for(const[_,T]of r)n.indexOf(_)>=0&&(f=_,l[_]=T(e,t),p=d.plus(l),p>t?(l[_]--,e=d.plus(l),e>t&&(p=e,l[_]--,e=d.plus(l))):e=p);return[e,l,p,f]}function Fv(e,t,n,r){let[l,d,f,p]=$v(e,t,n);const _=t-l,T=n.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);T.length===0&&(f<t&&(f=l.plus({[p]:1})),f!==l&&(d[p]=(d[p]||0)+_/(f-l)));const E=Qt.fromObject(d,r);return T.length>0?Qt.fromMillis(_,r).shiftTo(...T).plus(E):E}const Bv="missing Intl.DateTimeFormat.formatToParts support";function on(e,t=n=>n){return{regex:e,deser:([n])=>t(Dx(n))}}const Hv=" ",Zm=`[ ${Hv}]`,Jm=new RegExp(Zm,"g");function Wv(e){return e.replace(/\./g,"\\.?").replace(Jm,Zm)}function Vg(e){return e.replace(/\./g,"").replace(Jm," ").toLowerCase()}function gi(e,t){return e===null?null:{regex:RegExp(e.map(Wv).join("|")),deser:([n])=>e.findIndex(r=>Vg(n)===Vg(r))+t}}function qg(e,t){return{regex:e,deser:([,n,r])=>vc(n,r),groups:t}}function tc(e){return{regex:e,deser:([t])=>t}}function Kv(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function zv(e,t){const n=hi(t),r=hi(t,"{2}"),l=hi(t,"{3}"),d=hi(t,"{4}"),f=hi(t,"{6}"),p=hi(t,"{1,2}"),_=hi(t,"{1,3}"),T=hi(t,"{1,6}"),E=hi(t,"{1,9}"),S=hi(t,"{2,4}"),w=hi(t,"{4,6}"),M=k=>({regex:RegExp(Kv(k.val)),deser:([G])=>G,literal:!0}),v=(k=>{if(e.literal)return M(k);switch(k.val){case"G":return gi(t.eras("short"),0);case"GG":return gi(t.eras("long"),0);case"y":return on(T);case"yy":return on(S,rd);case"yyyy":return on(d);case"yyyyy":return on(w);case"yyyyyy":return on(f);case"M":return on(p);case"MM":return on(r);case"MMM":return gi(t.months("short",!0),1);case"MMMM":return gi(t.months("long",!0),1);case"L":return on(p);case"LL":return on(r);case"LLL":return gi(t.months("short",!1),1);case"LLLL":return gi(t.months("long",!1),1);case"d":return on(p);case"dd":return on(r);case"o":return on(_);case"ooo":return on(l);case"HH":return on(r);case"H":return on(p);case"hh":return on(r);case"h":return on(p);case"mm":return on(r);case"m":return on(p);case"q":return on(p);case"qq":return on(r);case"s":return on(p);case"ss":return on(r);case"S":return on(_);case"SSS":return on(l);case"u":return tc(E);case"uu":return tc(p);case"uuu":return on(n);case"a":return gi(t.meridiems(),0);case"kkkk":return on(d);case"kk":return on(S,rd);case"W":return on(p);case"WW":return on(r);case"E":case"c":return on(n);case"EEE":return gi(t.weekdays("short",!1),1);case"EEEE":return gi(t.weekdays("long",!1),1);case"ccc":return gi(t.weekdays("short",!0),1);case"cccc":return gi(t.weekdays("long",!0),1);case"Z":case"ZZ":return qg(new RegExp(`([+-]${p.source})(?::(${r.source}))?`),2);case"ZZZ":return qg(new RegExp(`([+-]${p.source})(${r.source})?`),2);case"z":return tc(/[a-z_+-/]{1,256}?/i);case" ":return tc(/[^\S\n\r]/);default:return M(k)}})(e)||{invalidReason:Bv};return v.token=e,v}const Uv={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Gv(e,t,n){const{type:r,value:l}=e;if(r==="literal"){const _=/^\s+$/.test(l);return{literal:!_,val:_?" ":l}}const d=t[r];let f=r;r==="hour"&&(t.hour12!=null?f=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?f="hour12":f="hour24":f=n.hour12?"hour12":"hour24");let p=Uv[f];if(typeof p=="object"&&(p=p[d]),p)return{literal:!1,val:p}}function Yv(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function jv(e,t,n){const r=e.match(t);if(r){const l={};let d=1;for(const f in n)if(el(n,f)){const p=n[f],_=p.groups?p.groups+1:1;!p.literal&&p.token&&(l[p.token.val[0]]=p.deser(r.slice(d,d+_))),d+=_}return[r,l]}else return[r,{}]}function Vv(e){const t=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Lt(e.z)||(n=ns.create(e.z)),Lt(e.Z)||(n||(n=new vr(e.Z)),r=e.Z),Lt(e.q)||(e.M=(e.q-1)*3+1),Lt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Lt(e.u)||(e.S=bd(e.u)),[Object.keys(e).reduce((d,f)=>{const p=t(f);return p&&(d[p]=e[f]),d},{}),n,r]}let ku=null;function qv(){return ku||(ku=Ot.fromMillis(1555555555555)),ku}function Zv(e,t){if(e.literal)return e;const n=_r.macroTokenToFormatOpts(e.val),r=t_(n,t);return r==null||r.includes(void 0)?e:r}function Xm(e,t){return Array.prototype.concat(...e.map(n=>Zv(n,t)))}class Qm{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Xm(_r.parseFormat(n),t),this.units=this.tokens.map(r=>zv(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,l]=Yv(this.units);this.regex=RegExp(r,"i"),this.handlers=l}}explainFromTokens(t){if(this.isValid){const[n,r]=jv(t,this.regex,this.handlers),[l,d,f]=r?Vv(r):[null,null,void 0];if(el(r,"a")&&el(r,"H"))throw new qo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:l,zone:d,specificOffset:f}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function e_(e,t,n){return new Qm(e,n).explainFromTokens(t)}function Jv(e,t,n){const{result:r,zone:l,specificOffset:d,invalidReason:f}=e_(e,t,n);return[r,l,d,f]}function t_(e,t){if(!e)return null;const r=_r.create(t,e).dtFormatter(qv()),l=r.formatToParts(),d=r.resolvedOptions();return l.map(f=>Gv(f,e,d))}const Pu="Invalid DateTime",Xv=864e13;function na(e){return new pi("unsupported zone",`the zone "${e.name}" is not supported`)}function $u(e){return e.weekData===null&&(e.weekData=gc(e.c)),e.weekData}function Fu(e){return e.localWeekData===null&&(e.localWeekData=gc(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function eo(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ot({...n,...t,old:n})}function n_(e,t,n){let r=e-t*60*1e3;const l=n.offset(r);if(t===l)return[r,t];r-=(l-t)*60*1e3;const d=n.offset(r);return l===d?[r,l]:[e-Math.min(l,d)*60*1e3,Math.max(l,d)]}function nc(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function oc(e,t,n){return n_(xc(e),t,n)}function Zg(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),l=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,d={...e.c,year:r,month:l,day:Math.min(e.c.day,pc(r,l))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},f=Qt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),p=xc(d);let[_,T]=n_(p,n,e.zone);return f!==0&&(_+=f,T=e.zone.offset(_)),{ts:_,o:T}}function Yo(e,t,n,r,l,d){const{setZone:f,zone:p}=n;if(e&&Object.keys(e).length!==0||t){const _=t||p,T=Ot.fromObject(e,{...n,zone:_,specificOffset:d});return f?T:T.setZone(p)}else return Ot.invalid(new pi("unparsable",`the input "${l}" can't be parsed as ${r}`))}function rc(e,t,n=!0){return e.isValid?_r.create(un.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Bu(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=Kn(e.c.year,n?6:4),t?(r+="-",r+=Kn(e.c.month),r+="-",r+=Kn(e.c.day)):(r+=Kn(e.c.month),r+=Kn(e.c.day)),r}function Jg(e,t,n,r,l,d){let f=Kn(e.c.hour);return t?(f+=":",f+=Kn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=":")):f+=Kn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=Kn(e.c.second),(e.c.millisecond!==0||!r)&&(f+=".",f+=Kn(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0&&!d?f+="Z":e.o<0?(f+="-",f+=Kn(Math.trunc(-e.o/60)),f+=":",f+=Kn(Math.trunc(-e.o%60))):(f+="+",f+=Kn(Math.trunc(e.o/60)),f+=":",f+=Kn(Math.trunc(e.o%60)))),d&&(f+="["+e.zone.ianaName+"]"),f}const r_={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qv={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},eS={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i_=["year","month","day","hour","minute","second","millisecond"],tS=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nS=["year","ordinal","hour","minute","second","millisecond"];function rS(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new sm(e);return t}function Xg(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return rS(e)}}function iS(e){return ac[e]||(lc===void 0&&(lc=Rn.now()),ac[e]=e.offset(lc)),ac[e]}function Qg(e,t){const n=Es(t.zone,Rn.defaultZone);if(!n.isValid)return Ot.invalid(na(n));const r=un.fromObject(t);let l,d;if(Lt(e.year))l=Rn.now();else{for(const _ of i_)Lt(e[_])&&(e[_]=r_[_]);const f=Am(e)||Mm(e);if(f)return Ot.invalid(f);const p=iS(n);[l,d]=oc(e,p,n)}return new Ot({ts:l,zone:n,loc:r,o:d})}function ep(e,t,n){const r=Lt(n.round)?!0:n.round,l=(f,p)=>(f=Ld(f,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(f,p)),d=f=>n.calendary?t.hasSame(e,f)?0:t.startOf(f).diff(e.startOf(f),f).get(f):t.diff(e,f).get(f);if(n.unit)return l(d(n.unit),n.unit);for(const f of n.units){const p=d(f);if(Math.abs(p)>=1)return l(p,f)}return l(e>t?-0:0,n.units[n.units.length-1])}function tp(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let lc,ac={};class Ot{constructor(t){const n=t.zone||Rn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new pi("invalid input"):null)||(n.isValid?null:na(n));this.ts=Lt(t.ts)?Rn.now():t.ts;let l=null,d=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[l,d]=[t.old.c,t.old.o];else{const p=xs(t.o)&&!t.old?t.o:n.offset(this.ts);l=nc(this.ts,p),r=Number.isNaN(l.year)?new pi("invalid input"):null,l=r?null:l,d=r?null:p}this._zone=n,this.loc=t.loc||un.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ot({})}static local(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static utc(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return t.zone=vr.utcInstance,Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static fromJSDate(t,n={}){const r=Lx(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ot.invalid("invalid input");const l=Es(n.zone,Rn.defaultZone);return l.isValid?new Ot({ts:r,zone:l,loc:un.fromObject(n)}):Ot.invalid(na(l))}static fromMillis(t,n={}){if(xs(t))return t<-864e13||t>Xv?Ot.invalid("Timestamp out of range"):new Ot({ts:t,zone:Es(n.zone,Rn.defaultZone),loc:un.fromObject(n)});throw new mr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(xs(t))return new Ot({ts:t*1e3,zone:Es(n.zone,Rn.defaultZone),loc:un.fromObject(n)});throw new mr("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Es(n.zone,Rn.defaultZone);if(!r.isValid)return Ot.invalid(na(r));const l=un.fromObject(n),d=mc(t,Xg),{minDaysInFirstWeek:f,startOfWeek:p}=Hg(d,l),_=Rn.now(),T=Lt(n.specificOffset)?r.offset(_):n.specificOffset,E=!Lt(d.ordinal),S=!Lt(d.year),w=!Lt(d.month)||!Lt(d.day),M=S||w,m=d.weekYear||d.weekNumber;if((M||E)&&m)throw new qo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&E)throw new qo("Can't mix ordinal dates with month/day");const v=m||d.weekday&&!M;let k,G,I=nc(_,T);v?(k=tS,G=Qv,I=gc(I,f,p)):E?(k=nS,G=eS,I=Iu(I)):(k=i_,G=r_);let P=!1;for(const z of k){const q=d[z];Lt(q)?P?d[z]=G[z]:d[z]=I[z]:P=!0}const H=v?Mx(d,f,p):E?Rx(d):Am(d),j=H||Mm(d);if(j)return Ot.invalid(j);const re=v?Fg(d,f,p):E?Bg(d):d,[te,ce]=oc(re,T,r),V=new Ot({ts:te,zone:r,o:ce,loc:l});return d.weekday&&M&&t.weekday!==V.weekday?Ot.invalid("mismatched weekday",`you can't specify both a weekday of ${d.weekday} and a date of ${V.toISO()}`):V.isValid?V:Ot.invalid(V.invalid)}static fromISO(t,n={}){const[r,l]=Tv(t);return Yo(r,l,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,l]=xv(t);return Yo(r,l,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,l]=vv(t);return Yo(r,l,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Lt(t)||Lt(n))throw new mr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=r,f=un.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[p,_,T,E]=Jv(f,t,n);return E?Ot.invalid(E):Yo(p,_,r,`format ${n}`,t,T)}static fromString(t,n,r={}){return Ot.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,l]=Rv(t);return Yo(r,l,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the DateTime is invalid");const r=t instanceof pi?t:new pi(t,n);if(Rn.throwOnInvalid)throw new rx(r);return new Ot({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=t_(t,un.fromObject(n));return r?r.map(l=>l?l.val:null).join(""):null}static expandFormat(t,n={}){return Xm(_r.parseFormat(t),un.fromObject(n)).map(l=>l.val).join("")}static resetCache(){lc=void 0,ac={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?$u(this).weekYear:NaN}get weekNumber(){return this.isValid?$u(this).weekNumber:NaN}get weekday(){return this.isValid?$u(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Fu(this).weekday:NaN}get localWeekNumber(){return this.isValid?Fu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Fu(this).weekYear:NaN}get ordinal(){return this.isValid?Iu(this.c).ordinal:NaN}get monthShort(){return this.isValid?ec.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ec.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ec.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ec.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=xc(this.c),l=this.zone.offset(r-t),d=this.zone.offset(r+t),f=this.zone.offset(r-l*n),p=this.zone.offset(r-d*n);if(f===p)return[this];const _=r-f*n,T=r-p*n,E=nc(_,f),S=nc(T,p);return E.hour===S.hour&&E.minute===S.minute&&E.second===S.second&&E.millisecond===S.millisecond?[eo(this,{ts:_}),eo(this,{ts:T})]:[this]}get isInLeapYear(){return ua(this.year)}get daysInMonth(){return pc(this.year,this.month)}get daysInYear(){return this.isValid?Zo(this.year):NaN}get weeksInWeekYear(){return this.isValid?aa(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?aa(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:l}=_r.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:l}}toUTC(t=0,n={}){return this.setZone(vr.instance(t),n)}toLocal(){return this.setZone(Rn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Es(t,Rn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let l=this.ts;if(n||r){const d=t.offset(this.ts),f=this.toObject();[l]=oc(f,d,t)}return eo(this,{ts:l,zone:t})}else return Ot.invalid(na(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const l=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return eo(this,{loc:l})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=mc(t,Xg),{minDaysInFirstWeek:r,startOfWeek:l}=Hg(n,this.loc),d=!Lt(n.weekYear)||!Lt(n.weekNumber)||!Lt(n.weekday),f=!Lt(n.ordinal),p=!Lt(n.year),_=!Lt(n.month)||!Lt(n.day),T=p||_,E=n.weekYear||n.weekNumber;if((T||f)&&E)throw new qo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_&&f)throw new qo("Can't mix ordinal dates with month/day");let S;d?S=Fg({...gc(this.c,r,l),...n},r,l):Lt(n.ordinal)?(S={...this.toObject(),...n},Lt(n.day)&&(S.day=Math.min(pc(S.year,S.month),S.day))):S=Bg({...Iu(this.c),...n});const[w,M]=oc(S,this.o,this.zone);return eo(this,{ts:w,o:M})}plus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t);return eo(this,Zg(this,n))}minus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t).negate();return eo(this,Zg(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},l=Qt.normalizeUnit(t);switch(l){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(l==="weeks")if(n){const d=this.loc.getStartOfWeek(),{weekday:f}=this;f<d&&(r.weekNumber=this.weekNumber-1),r.weekday=d}else r.weekday=1;if(l==="quarters"){const d=Math.ceil(this.month/3);r.month=(d-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?_r.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Pu}toLocaleString(t=hc,n={}){return this.isValid?_r.create(this.loc.clone(n),t).formatDateTime(this):Pu}toLocaleParts(t={}){return this.isValid?_r.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const f=t==="extended";let p=Bu(this,f);return p+="T",p+=Jg(this,f,n,r,l,d),p}toISODate({format:t="extended"}={}){return this.isValid?Bu(this,t==="extended"):null}toISOWeekDate(){return rc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:l=!1,extendedZone:d=!1,format:f="extended"}={}){return this.isValid?(l?"T":"")+Jg(this,f==="extended",n,t,r,d):null}toRFC2822(){return rc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return rc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Bu(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let l="HH:mm:ss.SSS";return(n||t)&&(r&&(l+=" "),n?l+="z":t&&(l+="ZZ")),rc(this,l,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Pu}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Qt.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...r},d=Ix(n).map(Qt.normalizeUnit),f=t.valueOf()>this.valueOf(),p=f?this:t,_=f?t:this,T=Fv(p,_,d,l);return f?T.negate():T}diffNow(t="milliseconds",n={}){return this.diff(Ot.now(),t,n)}until(t){return this.isValid?Mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const l=t.valueOf(),d=this.setZone(t.zone,{keepLocalTime:!0});return d.startOf(n,r)<=l&&l<=d.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ot.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=t.unit;return Array.isArray(t.unit)&&(l=t.unit,d=void 0),ep(n,this.plus(r),{...t,numeric:"always",units:l,unit:d})}toRelativeCalendar(t={}){return this.isValid?ep(t.base||Ot.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ot.isDateTime))throw new mr("min requires all arguments be DateTimes");return Wg(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ot.isDateTime))throw new mr("max requires all arguments be DateTimes");return Wg(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:l=null,numberingSystem:d=null}=r,f=un.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return e_(f,t,n)}static fromStringExplain(t,n,r={}){return Ot.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:l=null}=n,d=un.fromOpts({locale:r,numberingSystem:l,defaultToEN:!0});return new Qm(d,t)}static fromFormatParser(t,n,r={}){if(Lt(t)||Lt(n))throw new mr("fromFormatParser requires an input string and a format parser");const{locale:l=null,numberingSystem:d=null}=r,f=un.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});if(!f.equals(n.locale))throw new mr(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${n.locale}`);const{result:p,zone:_,specificOffset:T,invalidReason:E}=n.explainFromTokens(t);return E?Ot.invalid(E):Yo(p,_,r,`format ${n.format}`,t,T)}static get DATE_SHORT(){return hc}static get DATE_MED(){return om}static get DATE_MED_WITH_WEEKDAY(){return ox}static get DATE_FULL(){return lm}static get DATE_HUGE(){return am}static get TIME_SIMPLE(){return cm}static get TIME_WITH_SECONDS(){return um}static get TIME_WITH_SHORT_OFFSET(){return dm}static get TIME_WITH_LONG_OFFSET(){return fm}static get TIME_24_SIMPLE(){return hm}static get TIME_24_WITH_SECONDS(){return gm}static get TIME_24_WITH_SHORT_OFFSET(){return pm}static get TIME_24_WITH_LONG_OFFSET(){return mm}static get DATETIME_SHORT(){return _m}static get DATETIME_SHORT_WITH_SECONDS(){return ym}static get DATETIME_MED(){return Nm}static get DATETIME_MED_WITH_SECONDS(){return Cm}static get DATETIME_MED_WITH_WEEKDAY(){return lx}static get DATETIME_FULL(){return Em}static get DATETIME_FULL_WITH_SECONDS(){return Tm}static get DATETIME_HUGE(){return xm}static get DATETIME_HUGE_WITH_SECONDS(){return vm}}function Xl(e){if(Ot.isDateTime(e))return e;if(e&&e.valueOf&&xs(e.valueOf()))return Ot.fromJSDate(e);if(e&&typeof e=="object")return Ot.fromObject(e);throw new mr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var ln=(e=>(e.Monday="MONDAY",e.Tuesday="TUESDAY",e.Wednesday="WEDNESDAY",e.Thursday="THURSDAY",e.Friday="FRIDAY",e.Saturday="SATURDAY",e.Sunday="SUNDAY",e))(ln||{});function $d(e){const t={1:ln.Monday,2:ln.Tuesday,3:ln.Wednesday,4:ln.Thursday,5:ln.Friday,6:ln.Saturday,7:ln.Sunday};if(e.weekday in t)return t[e.weekday];throw new Error(`Invalid DateTime.weekday property: ${e}, ${e.weekday}`)}function Di(e){return{[ln.Monday]:"Monday",[ln.Tuesday]:"Tuesday",[ln.Wednesday]:"Wednesday",[ln.Thursday]:"Thursday",[ln.Friday]:"Friday",[ln.Saturday]:"Saturday",[ln.Sunday]:"Sunday"}[e]}class np{constructor(t,n,r){Ie(this,"end");Ie(this,"start");this.end=t.setZone(r),this.start=t.setZone(r),[n.start,n.end].forEach(T=>{if(T.split(":").length!==2)throw new Error('expected interval start and end data to be in the format "HH:MM"')});const[l,d]=n.start.split(":"),[f,p]=n.end.split(":");let _=0;f<l&&(_=1),this.end=this.end.set({hour:Number(f),minute:Number(p),day:this.end.day+_}),this.start=this.start.set({hour:Number(l),minute:Number(d)}),this.end.minute===59&&(this.end=this.end.set({minute:60}))}contains(t){return this.start<=t&&t<this.end}getStartTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.start.setLocale(t||"en-US").toLocaleString(r)}getEndTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.end.setLocale(t||"en-US").toLocaleString(r)}timeIsEqualTo(t){const n=this.getStartTime()===t.getStartTime(),r=this.getEndTime()===t.getEndTime();return n&&r}is24h(){const t=this.start.minute===0&&this.start.hour===0,n=this.end.minute===0&&this.end.hour===0,r=this.end.day-this.start.day===1||this.end.day===1;return t&&n&&r}}class s_{constructor(t,n){Ie(this,"holidayHoursByDate");Ie(this,"hours");Ie(this,"timezone");this.holidayHoursByDate=Object.fromEntries((t.holidayHours||[]).map(r=>[r.date,r])),this.hours=t,this.timezone=n}getInterval(t){if(this.isTemporarilyClosedAt(t))return null;let n=t;n=n.minus({days:1});for(const r of[n,t]){const l=this.getHours(r);if(l&&!l.isClosed)for(const d of l.openIntervals||[]){const f=new np(r,d,this.timezone);if(f.contains(t))return f}}return null}getCurrentInterval(){return this.getInterval(Ot.now())}getIntervalAfter(t){const n=this.getIntervalsForNDays(8,t),r=(d,f)=>d.start===f.start?0:d.start>f.start?1:-1,l=n.sort(r);for(const[d,f]of l.entries())if(f.contains(t)&&l.length>d+1)return l[d+1];for(const d of l)if(d.start>t)return d;return null}getIntervalsForNDays(t,n){const r=[];for(let l=0;l<t;l++){let d=n;d=d.plus({days:l});const f=this.getHours(d);f&&!f.isClosed&&r.push(...f.openIntervals.map(p=>new np(d,p,this.timezone)))}return r}getHolidayHours(t){return this.isTemporarilyClosedAt(t)?null:this.holidayHoursByDate[(t.toISO()||"").replace(/T.*/,"")]||null}getNormalHours(t){if(this.isTemporarilyClosedAt(t))return null;const n=Di($d(t)).toLowerCase();return this.hours[n]}getHours(t){const n=this.getHolidayHours(t);return!n||n.isRegularHours?this.getNormalHours(t):n}getNextInterval(){return this.getIntervalAfter(Ot.now())}isHoliday(t){return!!this.getHolidayHours(t)}isTemporarilyClosedAt(t){if(!this.hours.reopenDate)return!1;const n=this.hours.reopenDate.split("-");if(n.length===3){const[r,l,d]=n,f=Ot.fromObject({year:Number(r),month:Number(l),day:Number(d)},{zone:this.timezone});if(t<f)return!0}return!1}isOpenAt(t){return this.isTemporarilyClosedAt(t)?!1:!!this.getInterval(t)}isOpenNow(){return this.isOpenAt(Ot.now())}}function sS(e,t){const n=[...e];return t=t%n.length,n.concat(n.splice(0,n.length-t))}function oS(e,t){if(e.length!==t.length)return!1;for(const[n,r]of e.entries())if(!r.timeIsEqualTo(t[n]))return!1;return!0}function ha(e){var t,n;return((n=(t=e==null?void 0:e.currentInterval)==null?void 0:t.is24h)==null?void 0:n.call(t))||!1}function ga(e){return!e.futureInterval}function lS(e){return ha(e)?at.jsx("span",{className:"HoursStatus-current",children:"Open 24 Hours"}):ga(e)?at.jsx("span",{className:"HoursStatus-current",children:"Temporarily Closed"}):at.jsx("span",{className:"HoursStatus-current",children:e.isOpen?"Open Now":"Closed"})}function aS(e){return ha(e)||ga(e)?null:at.jsx("span",{className:"HoursStatus-separator",children:" • "})}function cS(e){return ha(e)||ga(e)?null:at.jsx("span",{className:"HoursStatus-future",children:e.isOpen?"Closes at":"Opens at"})}function uS(e){if(ha(e)||ga(e))return null;let t="";if(e.isOpen){const n=e.currentInterval;t+=n?n.getEndTime("en-US",e.timeOptions):""}else{const n=e.futureInterval;t+=n?n.getStartTime("en-US",e.timeOptions):""}return at.jsxs("span",{className:"HoursStatus-time",children:[" ",t]})}function dS(e){var r,l;if(ha(e)||ga(e))return null;const t={weekday:"long",...e.dayOptions??{}};let n="";if(e.isOpen){const d=e.currentInterval;n+=((r=d==null?void 0:d.end)==null?void 0:r.setLocale("en-US").toLocaleString(t))||""}else{const d=e.futureInterval;n+=((l=d==null?void 0:d.start)==null?void 0:l.setLocale("en-US").toLocaleString(t))||""}return at.jsxs("span",{className:"HoursStatus-dayOfWeek",children:[" ",n]})}function fS(e,t){const n=e.currentTemplate||lS,r=e.separatorTemplate||aS,l=e.futureTemplate||cS,d=e.timeTemplate||uS,f=e.dayOfWeekTemplate||dS;return at.jsxs("div",{className:Qo("HoursStatus",(t==null?void 0:t.className)||""),children:[n(e),r(e),l(e),d(e),f(e)]})}const hS={minHeight:`${1.5}em`},gS=e=>{const[t,n]=nt.useState(!1),[r,l]=nt.useState(!1);nt.useEffect(()=>{l(!0)},[]);const d=e.statusTemplate||fS,f=new s_(e.hours,e.timezone),p=f.isOpenNow(),_=f.getCurrentInterval(),T=f.getNextInterval(),E=(_==null?void 0:_.end)||(T==null?void 0:T.start);if(E&&!t){n(!0);const w=E.toMillis()-Ot.now().toMillis();setTimeout(()=>n(!1),w)}const S={isOpen:p,currentInterval:_,futureInterval:T,...e};return at.jsx(at.Fragment,{children:r?d(S,e):at.jsx("div",{style:hS})})};function pS(e,t){const n=[];return e.forEach(r=>{const l=n[n.length-1];l?oS(l.intervals,r.intervals)?(l.endDay=r.endDay,l.isToday=l.isToday||r.isToday):n.push({...r}):n.push({...r})}),n.map(r=>{const l=t&&Di(r.startDay)in t?t[Di(r.startDay)]||"":Di(r.startDay),d=t&&Di(r.endDay)in t?t[Di(r.endDay)]||"":Di(r.endDay);return{...r,dayOfWeek:"Collapsed",dayName:r.startDay===r.endDay?`${l}`:`${l} - ${d}`}})}function mS(e,t){const n=[],r=e.intervals.length>0&&e.intervals[0].is24h();return e.intervals.length===0?n.push("Closed"):r?n.push("Open 24 hours"):e.intervals.forEach(l=>{const d=l.getStartTime("en-US",t),f=l.getEndTime("en-US",t);n.push(`${d} - ${f}`)}),n}function _S(e,t,n){const r=[];for(let l=1;l<=7;l++){const d=Ot.fromObject({weekday:l}),f=$d(d);r.push({startDay:f,endDay:f,dayName:n&&Di(f).toLowerCase()in n?n[Di(f).toLowerCase()]||"":Di(f),intervals:e.filter(p=>p.start.weekday===l),isToday:t.weekday===l})}return r}const yS=e=>{const[t,n]=nt.useState(!1);nt.useEffect(()=>{n(!0)},[]);const r=new s_(e.hours,Intl.DateTimeFormat().resolvedOptions().timeZone),l=Ot.now(),d=r.getIntervalsForNDays(7,l);let f=_S(d,l,e.dayOfWeekNames);function p(S){return S?{today:$d(l),monday:ln.Monday,tuesday:ln.Tuesday,wednesday:ln.Wednesday,thursday:ln.Thursday,friday:ln.Friday,saturday:ln.Saturday,sunday:ln.Sunday}[S]:ln.Sunday}let _=[ln.Sunday,ln.Monday,ln.Tuesday,ln.Wednesday,ln.Thursday,ln.Friday,ln.Saturday];const T=_.indexOf(p(e.startOfWeek));_=sS(_,7-T),f.sort((S,w)=>_.indexOf(S.startDay)-_.indexOf(w.startDay)),e.collapseDays&&(f=pS(f,e.dayOfWeekNames));const E=nt.useMemo(()=>({minHeight:`${f.length*1.5}em`}),[f.length]);return at.jsx(at.Fragment,{children:t?at.jsx("div",{className:Qo("HoursTable",e.className),children:f.map(S=>{const M=(e.intervalStringsBuilderFn||mS)(S,e.timeOptions);return at.jsxs("div",{className:Qo("HoursTable-row",{"is-today":S.isToday}),children:[at.jsx("span",{className:"HoursTable-day",children:S.dayName}),at.jsx("span",{className:"HoursTable-intervals",children:M.map((m,v)=>at.jsx("span",{className:"HoursTable-interval",children:m},v))})]},S.dayName)})}):at.jsx("div",{style:E})})},NS=e=>`<script type="application/ld+json">
109
+ `}),n}const qT=(e,t)=>e(t,"i",rs(e,t)),ZT=(e,t)=>e(t,"b",rs(e,t)),JT=(e,t)=>e(t,"u",rs(e,t)),XT=(e,t)=>e(t,"s",rs(e,t)),QT=(e,t)=>e(t,"sub",rs(e,t)),ex=(e,t)=>e(t,"sup",rs(e,t)),tx={emphasis:qT,strong:ZT,underline:JT,strikethrough:XT,subscript:QT,superscript:ex},nx=e=>{const[t,n]=nt.useState();let r;return nt.useEffect(()=>{(async()=>{if(!r)try{r=(await Promise.resolve().then(()=>require("./index-DjKBlVXj.cjs"))).default}catch{throw new Error("Failed to import React Markdown, cannot properly render LegacyRichText.")}const d=r({children:e.markdown,remarkPlugins:[oT],remarkRehypeOptions:{handlers:tx}});n(d)})()},[e.markdown]),t||null};class co extends Error{}class rx extends co{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class ix extends co{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class sx extends co{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class qo extends co{}class sm extends co{constructor(t){super(`Invalid unit ${t}`)}}class mr extends co{}class ys extends co{constructor(){super("Zone is an abstract class")}}const lt="numeric",mi="short",Yr="long",hc={year:lt,month:lt,day:lt},om={year:lt,month:mi,day:lt},ox={year:lt,month:mi,day:lt,weekday:mi},lm={year:lt,month:Yr,day:lt},am={year:lt,month:Yr,day:lt,weekday:Yr},cm={hour:lt,minute:lt},um={hour:lt,minute:lt,second:lt},dm={hour:lt,minute:lt,second:lt,timeZoneName:mi},fm={hour:lt,minute:lt,second:lt,timeZoneName:Yr},hm={hour:lt,minute:lt,hourCycle:"h23"},gm={hour:lt,minute:lt,second:lt,hourCycle:"h23"},pm={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:mi},mm={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:Yr},_m={year:lt,month:lt,day:lt,hour:lt,minute:lt},ym={year:lt,month:lt,day:lt,hour:lt,minute:lt,second:lt},Nm={year:lt,month:mi,day:lt,hour:lt,minute:lt},Cm={year:lt,month:mi,day:lt,hour:lt,minute:lt,second:lt},lx={year:lt,month:mi,day:lt,weekday:mi,hour:lt,minute:lt},Em={year:lt,month:Yr,day:lt,hour:lt,minute:lt,timeZoneName:mi},Tm={year:lt,month:Yr,day:lt,hour:lt,minute:lt,second:lt,timeZoneName:mi},xm={year:lt,month:Yr,day:lt,weekday:Yr,hour:lt,minute:lt,timeZoneName:Yr},vm={year:lt,month:Yr,day:lt,weekday:Yr,hour:lt,minute:lt,second:lt,timeZoneName:Yr};class ca{get type(){throw new ys}get name(){throw new ys}get ianaName(){return this.name}get isUniversal(){throw new ys}offsetName(t,n){throw new ys}formatOffset(t,n){throw new ys}offset(t){throw new ys}equals(t){throw new ys}get isValid(){throw new ys}}let bu=null;class Ec extends ca{static get instance(){return bu===null&&(bu=new Ec),bu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Lm(t,n,r)}formatOffset(t,n){return sa(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let sc={};function ax(e){return sc[e]||(sc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),sc[e]}const cx={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ux(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,l,d,f,p,_,T,E]=r;return[f,l,d,p,_,T,E]}function dx(e,t){const n=e.formatToParts(t),r=[];for(let l=0;l<n.length;l++){const{type:d,value:f}=n[l],p=cx[d];d==="era"?r[p]=f:Lt(p)||(r[p]=parseInt(f,10))}return r}let Xa={};class ns extends ca{static create(t){return Xa[t]||(Xa[t]=new ns(t)),Xa[t]}static resetCache(){Xa={},sc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ns.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Lm(t,n,r,this.name)}formatOffset(t,n){return sa(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=ax(this.name);let[l,d,f,p,_,T,E]=r.formatToParts?dx(r,n):ux(r,n);p==="BC"&&(l=-Math.abs(l)+1);const w=xc({year:l,month:d,day:f,hour:_===24?0:_,minute:T,second:E,millisecond:0});let M=+n;const m=M%1e3;return M-=m>=0?m:1e3+m,(w-M)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Og={};function fx(e,t={}){const n=JSON.stringify([e,t]);let r=Og[n];return r||(r=new Intl.ListFormat(e,t),Og[n]=r),r}let Xu={};function Qu(e,t={}){const n=JSON.stringify([e,t]);let r=Xu[n];return r||(r=new Intl.DateTimeFormat(e,t),Xu[n]=r),r}let ed={};function hx(e,t={}){const n=JSON.stringify([e,t]);let r=ed[n];return r||(r=new Intl.NumberFormat(e,t),ed[n]=r),r}let td={};function gx(e,t={}){const{base:n,...r}=t,l=JSON.stringify([e,r]);let d=td[l];return d||(d=new Intl.RelativeTimeFormat(e,t),td[l]=d),d}let ta=null;function px(){return ta||(ta=new Intl.DateTimeFormat().resolvedOptions().locale,ta)}let Dg={};function mx(e){let t=Dg[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Dg[e]=t}return t}function _x(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,l;try{r=Qu(e).resolvedOptions(),l=e}catch{const _=e.substring(0,n);r=Qu(_).resolvedOptions(),l=_}const{numberingSystem:d,calendar:f}=r;return[l,d,f]}}function yx(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Nx(e){const t=[];for(let n=1;n<=12;n++){const r=Ot.utc(2009,n,1);t.push(e(r))}return t}function Cx(e){const t=[];for(let n=1;n<=7;n++){const r=Ot.utc(2016,11,13+n);t.push(e(r))}return t}function Qa(e,t,n,r){const l=e.listingMode();return l==="error"?null:l==="en"?n(t):r(t)}function Ex(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Tx{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:l,floor:d,...f}=r;if(!n||Object.keys(f).length>0){const p={useGrouping:!1,...r};r.padTo>0&&(p.minimumIntegerDigits=r.padTo),this.inf=hx(t,p)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Ld(t,3);return Kn(n,this.padTo)}}}class xx{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const f=-1*(t.offset/60),p=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;t.offset!==0&&ns.create(p).valid?(l=p,this.dt=t):(l="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,l=t.zone.name):(l="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Qu(n,d)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class vx{constructor(t,n,r){this.opts={style:"long",...r},!n&&Rm()&&(this.rtf=gx(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):jx(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const Sx={firstDay:1,minimalDays:4,weekend:[6,7]};class un{static fromOpts(t){return un.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,l,d=!1){const f=t||Rn.defaultLocale,p=f||(d?"en-US":px()),_=n||Rn.defaultNumberingSystem,T=r||Rn.defaultOutputCalendar,E=nd(l)||Rn.defaultWeekSettings;return new un(p,_,T,E,f)}static resetCache(){ta=null,Xu={},ed={},td={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:l}={}){return un.create(t,n,r,l)}constructor(t,n,r,l,d){const[f,p,_]=_x(t);this.locale=f,this.numberingSystem=n||p||null,this.outputCalendar=r||_||null,this.weekSettings=l,this.intl=yx(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=d,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Ex(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:un.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nd(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Qa(this,t,Pm,()=>{const r=n?{month:t,day:"numeric"}:{month:t},l=n?"format":"standalone";return this.monthsCache[l][t]||(this.monthsCache[l][t]=Nx(d=>this.extract(d,r,"month"))),this.monthsCache[l][t]})}weekdays(t,n=!1){return Qa(this,t,Bm,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},l=n?"format":"standalone";return this.weekdaysCache[l][t]||(this.weekdaysCache[l][t]=Cx(d=>this.extract(d,r,"weekday"))),this.weekdaysCache[l][t]})}meridiems(){return Qa(this,void 0,()=>Hm,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ot.utc(2016,11,13,9),Ot.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Qa(this,t,Wm,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ot.utc(-40,1,1),Ot.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const l=this.dtFormatter(t,n),d=l.formatToParts(),f=d.find(p=>p.type.toLowerCase()===r);return f?f.value:null}numberFormatter(t={}){return new Tx(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new xx(t,this.intl,n)}relFormatter(t={}){return new vx(this.intl,this.isEnglish(),t)}listFormatter(t={}){return fx(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:bm()?mx(this.locale):Sx}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Lu=null;class vr extends ca{static get utcInstance(){return Lu===null&&(Lu=new vr(0)),Lu}static instance(t){return t===0?vr.utcInstance:new vr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new vr(vc(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${sa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${sa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return sa(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class wx extends ca{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Es(e,t){if(Lt(e)||e===null)return t;if(e instanceof ca)return e;if(bx(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Ec.instance:n==="utc"||n==="gmt"?vr.utcInstance:vr.parseSpecifier(n)||ns.create(e)}else return xs(e)?vr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new wx(e)}const Ad={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ag={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ox=Ad.hanidec.replace(/[\[|\]]/g,"").split("");function Dx(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(Ad.hanidec)!==-1)t+=Ox.indexOf(e[n]);else for(const l in Ag){const[d,f]=Ag[l];r>=d&&r<=f&&(t+=r-d)}}return parseInt(t,10)}else return t}let Vo={};function Ax(){Vo={}}function hi({numberingSystem:e},t=""){const n=e||"latn";return Vo[n]||(Vo[n]={}),Vo[n][t]||(Vo[n][t]=new RegExp(`${Ad[n]}${t}`)),Vo[n][t]}let Mg=()=>Date.now(),Rg="system",bg=null,Lg=null,Ig=null,kg=60,Pg,$g=null;class Rn{static get now(){return Mg}static set now(t){Mg=t}static set defaultZone(t){Rg=t}static get defaultZone(){return Es(Rg,Ec.instance)}static get defaultLocale(){return bg}static set defaultLocale(t){bg=t}static get defaultNumberingSystem(){return Lg}static set defaultNumberingSystem(t){Lg=t}static get defaultOutputCalendar(){return Ig}static set defaultOutputCalendar(t){Ig=t}static get defaultWeekSettings(){return $g}static set defaultWeekSettings(t){$g=nd(t)}static get twoDigitCutoffYear(){return kg}static set twoDigitCutoffYear(t){kg=t%100}static get throwOnInvalid(){return Pg}static set throwOnInvalid(t){Pg=t}static resetCaches(){un.resetCache(),ns.resetCache(),Ot.resetCache(),Ax()}}class pi{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Sm=[0,31,59,90,120,151,181,212,243,273,304,334],wm=[0,31,60,91,121,152,182,213,244,274,305,335];function ei(e,t){return new pi("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Md(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const l=r.getUTCDay();return l===0?7:l}function Om(e,t,n){return n+(ua(e)?wm:Sm)[t-1]}function Dm(e,t){const n=ua(e)?wm:Sm,r=n.findIndex(d=>d<t),l=t-n[r];return{month:r+1,day:l}}function Rd(e,t){return(e-t+7)%7+1}function gc(e,t=4,n=1){const{year:r,month:l,day:d}=e,f=Om(r,l,d),p=Rd(Md(r,l,d),n);let _=Math.floor((f-p+14-t)/7),T;return _<1?(T=r-1,_=aa(T,t,n)):_>aa(r,t,n)?(T=r+1,_=1):T=r,{weekYear:T,weekNumber:_,weekday:p,...Sc(e)}}function Fg(e,t=4,n=1){const{weekYear:r,weekNumber:l,weekday:d}=e,f=Rd(Md(r,1,t),n),p=Zo(r);let _=l*7+d-f-7+t,T;_<1?(T=r-1,_+=Zo(T)):_>p?(T=r+1,_-=Zo(r)):T=r;const{month:E,day:S}=Dm(T,_);return{year:T,month:E,day:S,...Sc(e)}}function Iu(e){const{year:t,month:n,day:r}=e,l=Om(t,n,r);return{year:t,ordinal:l,...Sc(e)}}function Bg(e){const{year:t,ordinal:n}=e,{month:r,day:l}=Dm(t,n);return{year:t,month:r,day:l,...Sc(e)}}function Hg(e,t){if(!Lt(e.localWeekday)||!Lt(e.localWeekNumber)||!Lt(e.localWeekYear)){if(!Lt(e.weekday)||!Lt(e.weekNumber)||!Lt(e.weekYear))throw new qo("Cannot mix locale-based week fields with ISO-based week fields");return Lt(e.localWeekday)||(e.weekday=e.localWeekday),Lt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Lt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Mx(e,t=4,n=1){const r=Tc(e.weekYear),l=ti(e.weekNumber,1,aa(e.weekYear,t,n)),d=ti(e.weekday,1,7);return r?l?d?!1:ei("weekday",e.weekday):ei("week",e.weekNumber):ei("weekYear",e.weekYear)}function Rx(e){const t=Tc(e.year),n=ti(e.ordinal,1,Zo(e.year));return t?n?!1:ei("ordinal",e.ordinal):ei("year",e.year)}function Am(e){const t=Tc(e.year),n=ti(e.month,1,12),r=ti(e.day,1,pc(e.year,e.month));return t?n?r?!1:ei("day",e.day):ei("month",e.month):ei("year",e.year)}function Mm(e){const{hour:t,minute:n,second:r,millisecond:l}=e,d=ti(t,0,23)||t===24&&n===0&&r===0&&l===0,f=ti(n,0,59),p=ti(r,0,59),_=ti(l,0,999);return d?f?p?_?!1:ei("millisecond",l):ei("second",r):ei("minute",n):ei("hour",t)}function Lt(e){return typeof e>"u"}function xs(e){return typeof e=="number"}function Tc(e){return typeof e=="number"&&e%1===0}function bx(e){return typeof e=="string"}function Lx(e){return Object.prototype.toString.call(e)==="[object Date]"}function Rm(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function bm(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ix(e){return Array.isArray(e)?e:[e]}function Wg(e,t,n){if(e.length!==0)return e.reduce((r,l)=>{const d=[t(l),l];return r&&n(r[0],d[0])===r[0]?r:d},null)[1]}function kx(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function el(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(e==null)return null;if(typeof e!="object")throw new mr("Week settings must be an object");if(!ti(e.firstDay,1,7)||!ti(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ti(t,1,7)))throw new mr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ti(e,t,n){return Tc(e)&&e>=t&&e<=n}function Px(e,t){return e-t*Math.floor(e/t)}function Kn(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Cs(e){if(!(Lt(e)||e===null||e===""))return parseInt(e,10)}function Qs(e){if(!(Lt(e)||e===null||e===""))return parseFloat(e)}function bd(e){if(!(Lt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Ld(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function ua(e){return e%4===0&&(e%100!==0||e%400===0)}function Zo(e){return ua(e)?366:365}function pc(e,t){const n=Px(t-1,12)+1,r=e+(t-n)/12;return n===2?ua(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xc(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Kg(e,t,n){return-Rd(Md(e,1,t),n)+t-1}function aa(e,t=4,n=1){const r=Kg(e,t,n),l=Kg(e+1,t,n);return(Zo(e)-r+l)/7}function rd(e){return e>99?e:e>Rn.twoDigitCutoffYear?1900+e:2e3+e}function Lm(e,t,n,r=null){const l=new Date(e),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(d.timeZone=r);const f={timeZoneName:t,...d},p=new Intl.DateTimeFormat(n,f).formatToParts(l).find(_=>_.type.toLowerCase()==="timezonename");return p?p.value:null}function vc(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,l=n<0||Object.is(n,-0)?-r:r;return n*60+l}function Im(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new mr(`Invalid unit value ${e}`);return t}function mc(e,t){const n={};for(const r in e)if(el(e,r)){const l=e[r];if(l==null)continue;n[t(r)]=Im(l)}return n}function sa(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(t){case"short":return`${l}${Kn(n,2)}:${Kn(r,2)}`;case"narrow":return`${l}${n}${r>0?`:${r}`:""}`;case"techie":return`${l}${Kn(n,2)}${Kn(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Sc(e){return kx(e,["hour","minute","second","millisecond"])}const $x=["January","February","March","April","May","June","July","August","September","October","November","December"],km=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Fx=["J","F","M","A","M","J","J","A","S","O","N","D"];function Pm(e){switch(e){case"narrow":return[...Fx];case"short":return[...km];case"long":return[...$x];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const $m=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Fm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bx=["M","T","W","T","F","S","S"];function Bm(e){switch(e){case"narrow":return[...Bx];case"short":return[...Fm];case"long":return[...$m];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hm=["AM","PM"],Hx=["Before Christ","Anno Domini"],Wx=["BC","AD"],Kx=["B","A"];function Wm(e){switch(e){case"narrow":return[...Kx];case"short":return[...Wx];case"long":return[...Hx];default:return null}}function zx(e){return Hm[e.hour<12?0:1]}function Ux(e,t){return Bm(t)[e.weekday-1]}function Gx(e,t){return Pm(t)[e.month-1]}function Yx(e,t){return Wm(t)[e.year<0?0:1]}function jx(e,t,n="always",r=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&d){const S=e==="days";switch(t){case 1:return S?"tomorrow":`next ${l[e][0]}`;case-1:return S?"yesterday":`last ${l[e][0]}`;case 0:return S?"today":`this ${l[e][0]}`}}const f=Object.is(t,-0)||t<0,p=Math.abs(t),_=p===1,T=l[e],E=r?_?T[1]:T[2]||T[1]:_?l[e][0]:e;return f?`${p} ${E} ago`:`in ${p} ${E}`}function zg(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Vx={D:hc,DD:om,DDD:lm,DDDD:am,t:cm,tt:um,ttt:dm,tttt:fm,T:hm,TT:gm,TTT:pm,TTTT:mm,f:_m,ff:Nm,fff:Em,ffff:xm,F:ym,FF:Cm,FFF:Tm,FFFF:vm};class _r{static create(t,n={}){return new _r(t,n)}static parseFormat(t){let n=null,r="",l=!1;const d=[];for(let f=0;f<t.length;f++){const p=t.charAt(f);p==="'"?(r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),n=null,r="",l=!l):l||p===n?r+=p:(r.length>0&&d.push({literal:/^\s+$/.test(r),val:r}),r=p,n=p)}return r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),d}static macroTokenToFormatOpts(t){return Vx[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Kn(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(M,m)=>this.loc.extract(t,M,m),f=M=>t.isOffsetFixed&&t.offset===0&&M.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,M.format):"",p=()=>r?zx(t):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),_=(M,m)=>r?Gx(t,M):d(m?{month:M}:{month:M,day:"numeric"},"month"),T=(M,m)=>r?Ux(t,M):d(m?{weekday:M}:{weekday:M,month:"long",day:"numeric"},"weekday"),E=M=>{const m=_r.macroTokenToFormatOpts(M);return m?this.formatWithSystemDefault(t,m):M},S=M=>r?Yx(t,M):d({era:M},"era"),w=M=>{switch(M){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return p();case"d":return l?d({day:"numeric"},"day"):this.num(t.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return T("short",!0);case"cccc":return T("long",!0);case"ccccc":return T("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return T("short",!1);case"EEEE":return T("long",!1);case"EEEEE":return T("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return _("short",!0);case"LLLL":return _("long",!0);case"LLLLL":return _("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(t.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return _("short",!1);case"MMMM":return _("long",!1);case"MMMMM":return _("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(t.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(t.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(M)}};return zg(_r.parseFormat(n),w)}formatDurationFromString(t,n){const r=_=>{switch(_[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=_=>T=>{const E=r(T);return E?this.num(_.get(E),T.length):T},d=_r.parseFormat(n),f=d.reduce((_,{literal:T,val:E})=>T?_:_.concat(E),[]),p=t.shiftTo(...f.map(r).filter(_=>_));return zg(d,l(p))}}const Km=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ll(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function al(...e){return t=>e.reduce(([n,r,l],d)=>{const[f,p,_]=d(t,l);return[{...n,...f},p||r,_]},[{},null,1]).slice(0,2)}function cl(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const l=n.exec(e);if(l)return r(l)}return[null,null]}function zm(...e){return(t,n)=>{const r={};let l;for(l=0;l<e.length;l++)r[e[l]]=Cs(t[n+l]);return[r,null,n+l]}}const Um=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,qx=`(?:${Um.source}?(?:\\[(${Km.source})\\])?)?`,Id=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Gm=RegExp(`${Id.source}${qx}`),kd=RegExp(`(?:T${Gm.source})?`),Zx=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Jx=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Xx=/(\d{4})-?(\d{3})/,Qx=zm("weekYear","weekNumber","weekDay"),ev=zm("year","ordinal"),tv=/(\d{4})-(\d\d)-(\d\d)/,Ym=RegExp(`${Id.source} ?(?:${Um.source}|(${Km.source}))?`),nv=RegExp(`(?: ${Ym.source})?`);function Jo(e,t,n){const r=e[t];return Lt(r)?n:Cs(r)}function rv(e,t){return[{year:Jo(e,t),month:Jo(e,t+1,1),day:Jo(e,t+2,1)},null,t+3]}function ul(e,t){return[{hours:Jo(e,t,0),minutes:Jo(e,t+1,0),seconds:Jo(e,t+2,0),milliseconds:bd(e[t+3])},null,t+4]}function da(e,t){const n=!e[t]&&!e[t+1],r=vc(e[t+1],e[t+2]),l=n?null:vr.instance(r);return[{},l,t+3]}function fa(e,t){const n=e[t]?ns.create(e[t]):null;return[{},n,t+1]}const iv=RegExp(`^T?${Id.source}$`),sv=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ov(e){const[t,n,r,l,d,f,p,_,T]=e,E=t[0]==="-",S=_&&_[0]==="-",w=(M,m=!1)=>M!==void 0&&(m||M&&E)?-M:M;return[{years:w(Qs(n)),months:w(Qs(r)),weeks:w(Qs(l)),days:w(Qs(d)),hours:w(Qs(f)),minutes:w(Qs(p)),seconds:w(Qs(_),_==="-0"),milliseconds:w(bd(T),S)}]}const lv={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Pd(e,t,n,r,l,d,f){const p={year:t.length===2?rd(Cs(t)):Cs(t),month:km.indexOf(n)+1,day:Cs(r),hour:Cs(l),minute:Cs(d)};return f&&(p.second=Cs(f)),e&&(p.weekday=e.length>3?$m.indexOf(e)+1:Fm.indexOf(e)+1),p}const av=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function cv(e){const[,t,n,r,l,d,f,p,_,T,E,S]=e,w=Pd(t,l,r,n,d,f,p);let M;return _?M=lv[_]:T?M=0:M=vc(E,S),[w,new vr(M)]}function uv(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const dv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,fv=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hv=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ug(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,l,r,n,d,f,p),vr.utcInstance]}function gv(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,p,n,r,l,d,f),vr.utcInstance]}const pv=ll(Zx,kd),mv=ll(Jx,kd),_v=ll(Xx,kd),yv=ll(Gm),jm=al(rv,ul,da,fa),Nv=al(Qx,ul,da,fa),Cv=al(ev,ul,da,fa),Ev=al(ul,da,fa);function Tv(e){return cl(e,[pv,jm],[mv,Nv],[_v,Cv],[yv,Ev])}function xv(e){return cl(uv(e),[av,cv])}function vv(e){return cl(e,[dv,Ug],[fv,Ug],[hv,gv])}function Sv(e){return cl(e,[sv,ov])}const wv=al(ul);function Ov(e){return cl(e,[iv,wv])}const Dv=ll(tv,nv),Av=ll(Ym),Mv=al(ul,da,fa);function Rv(e){return cl(e,[Dv,jm],[Av,Mv])}const Gg="Invalid Duration",Vm={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},bv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Vm},Qr=146097/400,Uo=146097/4800,Lv={years:{quarters:4,months:12,weeks:Qr/7,days:Qr,hours:Qr*24,minutes:Qr*24*60,seconds:Qr*24*60*60,milliseconds:Qr*24*60*60*1e3},quarters:{months:3,weeks:Qr/28,days:Qr/4,hours:Qr*24/4,minutes:Qr*24*60/4,seconds:Qr*24*60*60/4,milliseconds:Qr*24*60*60*1e3/4},months:{weeks:Uo/7,days:Uo,hours:Uo*24,minutes:Uo*24*60,seconds:Uo*24*60*60,milliseconds:Uo*24*60*60*1e3},...Vm},so=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Iv=so.slice(0).reverse();function Ns(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Qt(r)}function qm(e,t){let n=t.milliseconds??0;for(const r of Iv.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Yg(e,t){const n=qm(e,t)<0?-1:1;so.reduceRight((r,l)=>{if(Lt(t[l]))return r;if(r){const d=t[r]*n,f=e[l][r],p=Math.floor(d/f);t[l]+=p*n,t[r]-=p*f*n}return l},null),so.reduce((r,l)=>{if(Lt(t[l]))return r;if(r){const d=t[r]%1;t[r]-=d,t[l]+=d*e[r][l]}return l},null)}function kv(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Qt{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Lv:bv;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||un.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Qt.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new mr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Qt({values:mc(t,Qt.normalizeUnit),loc:un.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(xs(t))return Qt.fromMillis(t);if(Qt.isDuration(t))return t;if(typeof t=="object")return Qt.fromObject(t);throw new mr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=Sv(t);return r?Qt.fromObject(r,n):Qt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Ov(t);return r?Qt.fromObject(r,n):Qt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Duration is invalid");const r=t instanceof pi?t:new pi(t,n);if(Rn.throwOnInvalid)throw new sx(r);return new Qt({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new sm(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?_r.create(this.loc,r).formatDurationFromString(this,t):Gg}toHuman(t={}){if(!this.isValid)return Gg;const n=so.map(r=>{const l=this.values[r];return Lt(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(l)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Ld(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ot.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?qm(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t),r={};for(const l of so)(el(n.values,l)||el(this.values,l))&&(r[l]=n.get(l)+this.get(l));return Ns(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Im(t(this.values[r],r));return Ns(this,{values:n},!0)}get(t){return this[Qt.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...mc(t,Qt.normalizeUnit)};return Ns(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:l}={}){const f={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:l,conversionAccuracy:r};return Ns(this,f)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Yg(this.matrix,t),Ns(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=kv(this.normalize().shiftToAll().toObject());return Ns(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(f=>Qt.normalizeUnit(f));const n={},r={},l=this.toObject();let d;for(const f of so)if(t.indexOf(f)>=0){d=f;let p=0;for(const T in r)p+=this.matrix[T][f]*r[T],r[T]=0;xs(l[f])&&(p+=l[f]);const _=Math.trunc(p);n[f]=_,r[f]=(p*1e3-_*1e3)/1e3}else xs(l[f])&&(r[f]=l[f]);for(const f in r)r[f]!==0&&(n[d]+=f===d?r[f]:r[f]/this.matrix[d][f]);return Yg(this.matrix,n),Ns(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ns(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,l){return r===void 0||r===0?l===void 0||l===0:r===l}for(const r of so)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Go="Invalid Interval";function Pv(e,t){return!e||!e.isValid?Mn.invalid("missing or invalid start"):!t||!t.isValid?Mn.invalid("missing or invalid end"):t<e?Mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Interval is invalid");const r=t instanceof pi?t:new pi(t,n);if(Rn.throwOnInvalid)throw new ix(r);return new Mn({invalid:r})}static fromDateTimes(t,n){const r=Xl(t),l=Xl(n),d=Pv(r,l);return d??new Mn({start:r,end:l})}static after(t,n){const r=Qt.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l,l.plus(r))}static before(t,n){const r=Qt.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l.minus(r),l)}static fromISO(t,n){const[r,l]=(t||"").split("/",2);if(r&&l){let d,f;try{d=Ot.fromISO(r,n),f=d.isValid}catch{f=!1}let p,_;try{p=Ot.fromISO(l,n),_=p.isValid}catch{_=!1}if(f&&_)return Mn.fromDateTimes(d,p);if(f){const T=Qt.fromISO(l,n);if(T.isValid)return Mn.after(d,T)}else if(_){const T=Qt.fromISO(r,n);if(T.isValid)return Mn.before(p,T)}}return Mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let l;return n!=null&&n.useLocaleWeeks?l=this.end.reconfigure({locale:r.locale}):l=this.end,l=l.startOf(t,n),Math.floor(l.diff(r,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Xl).filter(f=>this.contains(f)).sort((f,p)=>f.toMillis()-p.toMillis()),r=[];let{s:l}=this,d=0;for(;l<this.e;){const f=n[d]||this.e,p=+f>+this.e?this.e:f;r.push(Mn.fromDateTimes(l,p)),l=p,d+=1}return r}splitBy(t){const n=Qt.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,l=1,d;const f=[];for(;r<this.e;){const p=this.start.plus(n.mapUnits(_=>_*l));d=+p>+this.e?this.e:p,f.push(Mn.fromDateTimes(r,d)),r=d,l+=1}return f}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:Mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return Mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((l,d)=>l.s-d.s).reduce(([l,d],f)=>d?d.overlaps(f)||d.abutsStart(f)?[l,d.union(f)]:[l.concat([d]),f]:[l,f],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const l=[],d=t.map(_=>[{time:_.s,type:"s"},{time:_.e,type:"e"}]),f=Array.prototype.concat(...d),p=f.sort((_,T)=>_.time-T.time);for(const _ of p)r+=_.type==="s"?1:-1,r===1?n=_.time:(n&&+n!=+_.time&&l.push(Mn.fromDateTimes(n,_.time)),n=null);return Mn.merge(l)}difference(...t){return Mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Go}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=hc,n={}){return this.isValid?_r.create(this.s.loc.clone(n),t).formatInterval(this):Go}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Go}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Go}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Go}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Go}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Qt.invalid(this.invalidReason)}mapEndpoints(t){return Mn.fromDateTimes(t(this.s),t(this.e))}}class ec{static hasDST(t=Rn.defaultZone){const n=Ot.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ns.isValidZone(t)}static normalizeZone(t){return Es(t,Rn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||un.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||un.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||un.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||un.create(n,r,d)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||un.create(n,r,d)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||un.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||un.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return un.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return un.create(n,null,"gregory").eras(t)}static features(){return{relative:Rm(),localeWeek:bm()}}}function jg(e,t){const n=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Qt.fromMillis(r).as("days"))}function $v(e,t,n){const r=[["years",(_,T)=>T.year-_.year],["quarters",(_,T)=>T.quarter-_.quarter+(T.year-_.year)*4],["months",(_,T)=>T.month-_.month+(T.year-_.year)*12],["weeks",(_,T)=>{const E=jg(_,T);return(E-E%7)/7}],["days",jg]],l={},d=e;let f,p;for(const[_,T]of r)n.indexOf(_)>=0&&(f=_,l[_]=T(e,t),p=d.plus(l),p>t?(l[_]--,e=d.plus(l),e>t&&(p=e,l[_]--,e=d.plus(l))):e=p);return[e,l,p,f]}function Fv(e,t,n,r){let[l,d,f,p]=$v(e,t,n);const _=t-l,T=n.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);T.length===0&&(f<t&&(f=l.plus({[p]:1})),f!==l&&(d[p]=(d[p]||0)+_/(f-l)));const E=Qt.fromObject(d,r);return T.length>0?Qt.fromMillis(_,r).shiftTo(...T).plus(E):E}const Bv="missing Intl.DateTimeFormat.formatToParts support";function on(e,t=n=>n){return{regex:e,deser:([n])=>t(Dx(n))}}const Hv=" ",Zm=`[ ${Hv}]`,Jm=new RegExp(Zm,"g");function Wv(e){return e.replace(/\./g,"\\.?").replace(Jm,Zm)}function Vg(e){return e.replace(/\./g,"").replace(Jm," ").toLowerCase()}function gi(e,t){return e===null?null:{regex:RegExp(e.map(Wv).join("|")),deser:([n])=>e.findIndex(r=>Vg(n)===Vg(r))+t}}function qg(e,t){return{regex:e,deser:([,n,r])=>vc(n,r),groups:t}}function tc(e){return{regex:e,deser:([t])=>t}}function Kv(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function zv(e,t){const n=hi(t),r=hi(t,"{2}"),l=hi(t,"{3}"),d=hi(t,"{4}"),f=hi(t,"{6}"),p=hi(t,"{1,2}"),_=hi(t,"{1,3}"),T=hi(t,"{1,6}"),E=hi(t,"{1,9}"),S=hi(t,"{2,4}"),w=hi(t,"{4,6}"),M=k=>({regex:RegExp(Kv(k.val)),deser:([G])=>G,literal:!0}),v=(k=>{if(e.literal)return M(k);switch(k.val){case"G":return gi(t.eras("short"),0);case"GG":return gi(t.eras("long"),0);case"y":return on(T);case"yy":return on(S,rd);case"yyyy":return on(d);case"yyyyy":return on(w);case"yyyyyy":return on(f);case"M":return on(p);case"MM":return on(r);case"MMM":return gi(t.months("short",!0),1);case"MMMM":return gi(t.months("long",!0),1);case"L":return on(p);case"LL":return on(r);case"LLL":return gi(t.months("short",!1),1);case"LLLL":return gi(t.months("long",!1),1);case"d":return on(p);case"dd":return on(r);case"o":return on(_);case"ooo":return on(l);case"HH":return on(r);case"H":return on(p);case"hh":return on(r);case"h":return on(p);case"mm":return on(r);case"m":return on(p);case"q":return on(p);case"qq":return on(r);case"s":return on(p);case"ss":return on(r);case"S":return on(_);case"SSS":return on(l);case"u":return tc(E);case"uu":return tc(p);case"uuu":return on(n);case"a":return gi(t.meridiems(),0);case"kkkk":return on(d);case"kk":return on(S,rd);case"W":return on(p);case"WW":return on(r);case"E":case"c":return on(n);case"EEE":return gi(t.weekdays("short",!1),1);case"EEEE":return gi(t.weekdays("long",!1),1);case"ccc":return gi(t.weekdays("short",!0),1);case"cccc":return gi(t.weekdays("long",!0),1);case"Z":case"ZZ":return qg(new RegExp(`([+-]${p.source})(?::(${r.source}))?`),2);case"ZZZ":return qg(new RegExp(`([+-]${p.source})(${r.source})?`),2);case"z":return tc(/[a-z_+-/]{1,256}?/i);case" ":return tc(/[^\S\n\r]/);default:return M(k)}})(e)||{invalidReason:Bv};return v.token=e,v}const Uv={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Gv(e,t,n){const{type:r,value:l}=e;if(r==="literal"){const _=/^\s+$/.test(l);return{literal:!_,val:_?" ":l}}const d=t[r];let f=r;r==="hour"&&(t.hour12!=null?f=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?f="hour12":f="hour24":f=n.hour12?"hour12":"hour24");let p=Uv[f];if(typeof p=="object"&&(p=p[d]),p)return{literal:!1,val:p}}function Yv(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function jv(e,t,n){const r=e.match(t);if(r){const l={};let d=1;for(const f in n)if(el(n,f)){const p=n[f],_=p.groups?p.groups+1:1;!p.literal&&p.token&&(l[p.token.val[0]]=p.deser(r.slice(d,d+_))),d+=_}return[r,l]}else return[r,{}]}function Vv(e){const t=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Lt(e.z)||(n=ns.create(e.z)),Lt(e.Z)||(n||(n=new vr(e.Z)),r=e.Z),Lt(e.q)||(e.M=(e.q-1)*3+1),Lt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Lt(e.u)||(e.S=bd(e.u)),[Object.keys(e).reduce((d,f)=>{const p=t(f);return p&&(d[p]=e[f]),d},{}),n,r]}let ku=null;function qv(){return ku||(ku=Ot.fromMillis(1555555555555)),ku}function Zv(e,t){if(e.literal)return e;const n=_r.macroTokenToFormatOpts(e.val),r=t_(n,t);return r==null||r.includes(void 0)?e:r}function Xm(e,t){return Array.prototype.concat(...e.map(n=>Zv(n,t)))}class Qm{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Xm(_r.parseFormat(n),t),this.units=this.tokens.map(r=>zv(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,l]=Yv(this.units);this.regex=RegExp(r,"i"),this.handlers=l}}explainFromTokens(t){if(this.isValid){const[n,r]=jv(t,this.regex,this.handlers),[l,d,f]=r?Vv(r):[null,null,void 0];if(el(r,"a")&&el(r,"H"))throw new qo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:l,zone:d,specificOffset:f}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function e_(e,t,n){return new Qm(e,n).explainFromTokens(t)}function Jv(e,t,n){const{result:r,zone:l,specificOffset:d,invalidReason:f}=e_(e,t,n);return[r,l,d,f]}function t_(e,t){if(!e)return null;const r=_r.create(t,e).dtFormatter(qv()),l=r.formatToParts(),d=r.resolvedOptions();return l.map(f=>Gv(f,e,d))}const Pu="Invalid DateTime",Xv=864e13;function na(e){return new pi("unsupported zone",`the zone "${e.name}" is not supported`)}function $u(e){return e.weekData===null&&(e.weekData=gc(e.c)),e.weekData}function Fu(e){return e.localWeekData===null&&(e.localWeekData=gc(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function eo(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ot({...n,...t,old:n})}function n_(e,t,n){let r=e-t*60*1e3;const l=n.offset(r);if(t===l)return[r,t];r-=(l-t)*60*1e3;const d=n.offset(r);return l===d?[r,l]:[e-Math.min(l,d)*60*1e3,Math.max(l,d)]}function nc(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function oc(e,t,n){return n_(xc(e),t,n)}function Zg(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),l=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,d={...e.c,year:r,month:l,day:Math.min(e.c.day,pc(r,l))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},f=Qt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),p=xc(d);let[_,T]=n_(p,n,e.zone);return f!==0&&(_+=f,T=e.zone.offset(_)),{ts:_,o:T}}function Yo(e,t,n,r,l,d){const{setZone:f,zone:p}=n;if(e&&Object.keys(e).length!==0||t){const _=t||p,T=Ot.fromObject(e,{...n,zone:_,specificOffset:d});return f?T:T.setZone(p)}else return Ot.invalid(new pi("unparsable",`the input "${l}" can't be parsed as ${r}`))}function rc(e,t,n=!0){return e.isValid?_r.create(un.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Bu(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=Kn(e.c.year,n?6:4),t?(r+="-",r+=Kn(e.c.month),r+="-",r+=Kn(e.c.day)):(r+=Kn(e.c.month),r+=Kn(e.c.day)),r}function Jg(e,t,n,r,l,d){let f=Kn(e.c.hour);return t?(f+=":",f+=Kn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=":")):f+=Kn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=Kn(e.c.second),(e.c.millisecond!==0||!r)&&(f+=".",f+=Kn(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0&&!d?f+="Z":e.o<0?(f+="-",f+=Kn(Math.trunc(-e.o/60)),f+=":",f+=Kn(Math.trunc(-e.o%60))):(f+="+",f+=Kn(Math.trunc(e.o/60)),f+=":",f+=Kn(Math.trunc(e.o%60)))),d&&(f+="["+e.zone.ianaName+"]"),f}const r_={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qv={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},eS={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i_=["year","month","day","hour","minute","second","millisecond"],tS=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nS=["year","ordinal","hour","minute","second","millisecond"];function rS(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new sm(e);return t}function Xg(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return rS(e)}}function iS(e){return ac[e]||(lc===void 0&&(lc=Rn.now()),ac[e]=e.offset(lc)),ac[e]}function Qg(e,t){const n=Es(t.zone,Rn.defaultZone);if(!n.isValid)return Ot.invalid(na(n));const r=un.fromObject(t);let l,d;if(Lt(e.year))l=Rn.now();else{for(const _ of i_)Lt(e[_])&&(e[_]=r_[_]);const f=Am(e)||Mm(e);if(f)return Ot.invalid(f);const p=iS(n);[l,d]=oc(e,p,n)}return new Ot({ts:l,zone:n,loc:r,o:d})}function ep(e,t,n){const r=Lt(n.round)?!0:n.round,l=(f,p)=>(f=Ld(f,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(f,p)),d=f=>n.calendary?t.hasSame(e,f)?0:t.startOf(f).diff(e.startOf(f),f).get(f):t.diff(e,f).get(f);if(n.unit)return l(d(n.unit),n.unit);for(const f of n.units){const p=d(f);if(Math.abs(p)>=1)return l(p,f)}return l(e>t?-0:0,n.units[n.units.length-1])}function tp(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let lc,ac={};class Ot{constructor(t){const n=t.zone||Rn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new pi("invalid input"):null)||(n.isValid?null:na(n));this.ts=Lt(t.ts)?Rn.now():t.ts;let l=null,d=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[l,d]=[t.old.c,t.old.o];else{const p=xs(t.o)&&!t.old?t.o:n.offset(this.ts);l=nc(this.ts,p),r=Number.isNaN(l.year)?new pi("invalid input"):null,l=r?null:l,d=r?null:p}this._zone=n,this.loc=t.loc||un.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ot({})}static local(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static utc(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return t.zone=vr.utcInstance,Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static fromJSDate(t,n={}){const r=Lx(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ot.invalid("invalid input");const l=Es(n.zone,Rn.defaultZone);return l.isValid?new Ot({ts:r,zone:l,loc:un.fromObject(n)}):Ot.invalid(na(l))}static fromMillis(t,n={}){if(xs(t))return t<-864e13||t>Xv?Ot.invalid("Timestamp out of range"):new Ot({ts:t,zone:Es(n.zone,Rn.defaultZone),loc:un.fromObject(n)});throw new mr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(xs(t))return new Ot({ts:t*1e3,zone:Es(n.zone,Rn.defaultZone),loc:un.fromObject(n)});throw new mr("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Es(n.zone,Rn.defaultZone);if(!r.isValid)return Ot.invalid(na(r));const l=un.fromObject(n),d=mc(t,Xg),{minDaysInFirstWeek:f,startOfWeek:p}=Hg(d,l),_=Rn.now(),T=Lt(n.specificOffset)?r.offset(_):n.specificOffset,E=!Lt(d.ordinal),S=!Lt(d.year),w=!Lt(d.month)||!Lt(d.day),M=S||w,m=d.weekYear||d.weekNumber;if((M||E)&&m)throw new qo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&E)throw new qo("Can't mix ordinal dates with month/day");const v=m||d.weekday&&!M;let k,G,I=nc(_,T);v?(k=tS,G=Qv,I=gc(I,f,p)):E?(k=nS,G=eS,I=Iu(I)):(k=i_,G=r_);let P=!1;for(const z of k){const q=d[z];Lt(q)?P?d[z]=G[z]:d[z]=I[z]:P=!0}const H=v?Mx(d,f,p):E?Rx(d):Am(d),j=H||Mm(d);if(j)return Ot.invalid(j);const re=v?Fg(d,f,p):E?Bg(d):d,[te,ce]=oc(re,T,r),V=new Ot({ts:te,zone:r,o:ce,loc:l});return d.weekday&&M&&t.weekday!==V.weekday?Ot.invalid("mismatched weekday",`you can't specify both a weekday of ${d.weekday} and a date of ${V.toISO()}`):V.isValid?V:Ot.invalid(V.invalid)}static fromISO(t,n={}){const[r,l]=Tv(t);return Yo(r,l,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,l]=xv(t);return Yo(r,l,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,l]=vv(t);return Yo(r,l,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Lt(t)||Lt(n))throw new mr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=r,f=un.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[p,_,T,E]=Jv(f,t,n);return E?Ot.invalid(E):Yo(p,_,r,`format ${n}`,t,T)}static fromString(t,n,r={}){return Ot.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,l]=Rv(t);return Yo(r,l,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the DateTime is invalid");const r=t instanceof pi?t:new pi(t,n);if(Rn.throwOnInvalid)throw new rx(r);return new Ot({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=t_(t,un.fromObject(n));return r?r.map(l=>l?l.val:null).join(""):null}static expandFormat(t,n={}){return Xm(_r.parseFormat(t),un.fromObject(n)).map(l=>l.val).join("")}static resetCache(){lc=void 0,ac={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?$u(this).weekYear:NaN}get weekNumber(){return this.isValid?$u(this).weekNumber:NaN}get weekday(){return this.isValid?$u(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Fu(this).weekday:NaN}get localWeekNumber(){return this.isValid?Fu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Fu(this).weekYear:NaN}get ordinal(){return this.isValid?Iu(this.c).ordinal:NaN}get monthShort(){return this.isValid?ec.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ec.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ec.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ec.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=xc(this.c),l=this.zone.offset(r-t),d=this.zone.offset(r+t),f=this.zone.offset(r-l*n),p=this.zone.offset(r-d*n);if(f===p)return[this];const _=r-f*n,T=r-p*n,E=nc(_,f),S=nc(T,p);return E.hour===S.hour&&E.minute===S.minute&&E.second===S.second&&E.millisecond===S.millisecond?[eo(this,{ts:_}),eo(this,{ts:T})]:[this]}get isInLeapYear(){return ua(this.year)}get daysInMonth(){return pc(this.year,this.month)}get daysInYear(){return this.isValid?Zo(this.year):NaN}get weeksInWeekYear(){return this.isValid?aa(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?aa(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:l}=_r.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:l}}toUTC(t=0,n={}){return this.setZone(vr.instance(t),n)}toLocal(){return this.setZone(Rn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Es(t,Rn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let l=this.ts;if(n||r){const d=t.offset(this.ts),f=this.toObject();[l]=oc(f,d,t)}return eo(this,{ts:l,zone:t})}else return Ot.invalid(na(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const l=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return eo(this,{loc:l})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=mc(t,Xg),{minDaysInFirstWeek:r,startOfWeek:l}=Hg(n,this.loc),d=!Lt(n.weekYear)||!Lt(n.weekNumber)||!Lt(n.weekday),f=!Lt(n.ordinal),p=!Lt(n.year),_=!Lt(n.month)||!Lt(n.day),T=p||_,E=n.weekYear||n.weekNumber;if((T||f)&&E)throw new qo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_&&f)throw new qo("Can't mix ordinal dates with month/day");let S;d?S=Fg({...gc(this.c,r,l),...n},r,l):Lt(n.ordinal)?(S={...this.toObject(),...n},Lt(n.day)&&(S.day=Math.min(pc(S.year,S.month),S.day))):S=Bg({...Iu(this.c),...n});const[w,M]=oc(S,this.o,this.zone);return eo(this,{ts:w,o:M})}plus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t);return eo(this,Zg(this,n))}minus(t){if(!this.isValid)return this;const n=Qt.fromDurationLike(t).negate();return eo(this,Zg(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},l=Qt.normalizeUnit(t);switch(l){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(l==="weeks")if(n){const d=this.loc.getStartOfWeek(),{weekday:f}=this;f<d&&(r.weekNumber=this.weekNumber-1),r.weekday=d}else r.weekday=1;if(l==="quarters"){const d=Math.ceil(this.month/3);r.month=(d-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?_r.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Pu}toLocaleString(t=hc,n={}){return this.isValid?_r.create(this.loc.clone(n),t).formatDateTime(this):Pu}toLocaleParts(t={}){return this.isValid?_r.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const f=t==="extended";let p=Bu(this,f);return p+="T",p+=Jg(this,f,n,r,l,d),p}toISODate({format:t="extended"}={}){return this.isValid?Bu(this,t==="extended"):null}toISOWeekDate(){return rc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:l=!1,extendedZone:d=!1,format:f="extended"}={}){return this.isValid?(l?"T":"")+Jg(this,f==="extended",n,t,r,d):null}toRFC2822(){return rc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return rc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Bu(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let l="HH:mm:ss.SSS";return(n||t)&&(r&&(l+=" "),n?l+="z":t&&(l+="ZZ")),rc(this,l,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Pu}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Qt.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...r},d=Ix(n).map(Qt.normalizeUnit),f=t.valueOf()>this.valueOf(),p=f?this:t,_=f?t:this,T=Fv(p,_,d,l);return f?T.negate():T}diffNow(t="milliseconds",n={}){return this.diff(Ot.now(),t,n)}until(t){return this.isValid?Mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const l=t.valueOf(),d=this.setZone(t.zone,{keepLocalTime:!0});return d.startOf(n,r)<=l&&l<=d.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ot.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=t.unit;return Array.isArray(t.unit)&&(l=t.unit,d=void 0),ep(n,this.plus(r),{...t,numeric:"always",units:l,unit:d})}toRelativeCalendar(t={}){return this.isValid?ep(t.base||Ot.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ot.isDateTime))throw new mr("min requires all arguments be DateTimes");return Wg(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ot.isDateTime))throw new mr("max requires all arguments be DateTimes");return Wg(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:l=null,numberingSystem:d=null}=r,f=un.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return e_(f,t,n)}static fromStringExplain(t,n,r={}){return Ot.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:l=null}=n,d=un.fromOpts({locale:r,numberingSystem:l,defaultToEN:!0});return new Qm(d,t)}static fromFormatParser(t,n,r={}){if(Lt(t)||Lt(n))throw new mr("fromFormatParser requires an input string and a format parser");const{locale:l=null,numberingSystem:d=null}=r,f=un.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});if(!f.equals(n.locale))throw new mr(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${n.locale}`);const{result:p,zone:_,specificOffset:T,invalidReason:E}=n.explainFromTokens(t);return E?Ot.invalid(E):Yo(p,_,r,`format ${n.format}`,t,T)}static get DATE_SHORT(){return hc}static get DATE_MED(){return om}static get DATE_MED_WITH_WEEKDAY(){return ox}static get DATE_FULL(){return lm}static get DATE_HUGE(){return am}static get TIME_SIMPLE(){return cm}static get TIME_WITH_SECONDS(){return um}static get TIME_WITH_SHORT_OFFSET(){return dm}static get TIME_WITH_LONG_OFFSET(){return fm}static get TIME_24_SIMPLE(){return hm}static get TIME_24_WITH_SECONDS(){return gm}static get TIME_24_WITH_SHORT_OFFSET(){return pm}static get TIME_24_WITH_LONG_OFFSET(){return mm}static get DATETIME_SHORT(){return _m}static get DATETIME_SHORT_WITH_SECONDS(){return ym}static get DATETIME_MED(){return Nm}static get DATETIME_MED_WITH_SECONDS(){return Cm}static get DATETIME_MED_WITH_WEEKDAY(){return lx}static get DATETIME_FULL(){return Em}static get DATETIME_FULL_WITH_SECONDS(){return Tm}static get DATETIME_HUGE(){return xm}static get DATETIME_HUGE_WITH_SECONDS(){return vm}}function Xl(e){if(Ot.isDateTime(e))return e;if(e&&e.valueOf&&xs(e.valueOf()))return Ot.fromJSDate(e);if(e&&typeof e=="object")return Ot.fromObject(e);throw new mr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var ln=(e=>(e.Monday="MONDAY",e.Tuesday="TUESDAY",e.Wednesday="WEDNESDAY",e.Thursday="THURSDAY",e.Friday="FRIDAY",e.Saturday="SATURDAY",e.Sunday="SUNDAY",e))(ln||{});function $d(e){const t={1:ln.Monday,2:ln.Tuesday,3:ln.Wednesday,4:ln.Thursday,5:ln.Friday,6:ln.Saturday,7:ln.Sunday};if(e.weekday in t)return t[e.weekday];throw new Error(`Invalid DateTime.weekday property: ${e}, ${e.weekday}`)}function Di(e){return{[ln.Monday]:"Monday",[ln.Tuesday]:"Tuesday",[ln.Wednesday]:"Wednesday",[ln.Thursday]:"Thursday",[ln.Friday]:"Friday",[ln.Saturday]:"Saturday",[ln.Sunday]:"Sunday"}[e]}class np{constructor(t,n,r){Ie(this,"end");Ie(this,"start");this.end=t.setZone(r),this.start=t.setZone(r),[n.start,n.end].forEach(T=>{if(T.split(":").length!==2)throw new Error('expected interval start and end data to be in the format "HH:MM"')});const[l,d]=n.start.split(":"),[f,p]=n.end.split(":");let _=0;f<l&&(_=1),this.end=this.end.set({hour:Number(f),minute:Number(p),day:this.end.day+_}),this.start=this.start.set({hour:Number(l),minute:Number(d)}),this.end.minute===59&&(this.end=this.end.set({minute:60}))}contains(t){return this.start<=t&&t<this.end}getStartTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.start.setLocale(t||"en-US").toLocaleString(r)}getEndTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.end.setLocale(t||"en-US").toLocaleString(r)}timeIsEqualTo(t){const n=this.getStartTime()===t.getStartTime(),r=this.getEndTime()===t.getEndTime();return n&&r}is24h(){const t=this.start.minute===0&&this.start.hour===0,n=this.end.minute===0&&this.end.hour===0,r=this.end.day-this.start.day===1||this.end.day===1;return t&&n&&r}}class s_{constructor(t,n){Ie(this,"holidayHoursByDate");Ie(this,"hours");Ie(this,"timezone");this.holidayHoursByDate=Object.fromEntries((t.holidayHours||[]).map(r=>[r.date,r])),this.hours=t,this.timezone=n}getInterval(t){if(this.isTemporarilyClosedAt(t))return null;let n=t;n=n.minus({days:1});for(const r of[n,t]){const l=this.getHours(r);if(l&&!l.isClosed)for(const d of l.openIntervals||[]){const f=new np(r,d,this.timezone);if(f.contains(t))return f}}return null}getCurrentInterval(){return this.getInterval(Ot.now())}getIntervalAfter(t){const n=this.getIntervalsForNDays(8,t),r=(d,f)=>d.start===f.start?0:d.start>f.start?1:-1,l=n.sort(r);for(const[d,f]of l.entries())if(f.contains(t)&&l.length>d+1)return l[d+1];for(const d of l)if(d.start>t)return d;return null}getIntervalsForNDays(t,n){const r=[];for(let l=0;l<t;l++){let d=n;d=d.plus({days:l});const f=this.getHours(d);f&&!f.isClosed&&r.push(...f.openIntervals.map(p=>new np(d,p,this.timezone)))}return r}getHolidayHours(t){return this.isTemporarilyClosedAt(t)?null:this.holidayHoursByDate[(t.toISO()||"").replace(/T.*/,"")]||null}getNormalHours(t){if(this.isTemporarilyClosedAt(t))return null;const n=Di($d(t)).toLowerCase();return this.hours[n]}getHours(t){const n=this.getHolidayHours(t);return!n||n.isRegularHours?this.getNormalHours(t):n}getNextInterval(){return this.getIntervalAfter(Ot.now())}isHoliday(t){return!!this.getHolidayHours(t)}isTemporarilyClosedAt(t){if(!this.hours.reopenDate)return!1;const n=this.hours.reopenDate.split("-");if(n.length===3){const[r,l,d]=n,f=Ot.fromObject({year:Number(r),month:Number(l),day:Number(d)},{zone:this.timezone});if(t<f)return!0}return!1}isOpenAt(t){return this.isTemporarilyClosedAt(t)?!1:!!this.getInterval(t)}isOpenNow(){return this.isOpenAt(Ot.now())}}function sS(e,t){const n=[...e];return t=t%n.length,n.concat(n.splice(0,n.length-t))}function oS(e,t){if(e.length!==t.length)return!1;for(const[n,r]of e.entries())if(!r.timeIsEqualTo(t[n]))return!1;return!0}function ha(e){var t,n;return((n=(t=e==null?void 0:e.currentInterval)==null?void 0:t.is24h)==null?void 0:n.call(t))||!1}function ga(e){return!e.futureInterval}function lS(e){return ha(e)?at.jsx("span",{className:"HoursStatus-current",children:"Open 24 Hours"}):ga(e)?at.jsx("span",{className:"HoursStatus-current",children:"Temporarily Closed"}):at.jsx("span",{className:"HoursStatus-current",children:e.isOpen?"Open Now":"Closed"})}function aS(e){return ha(e)||ga(e)?null:at.jsx("span",{className:"HoursStatus-separator",children:" • "})}function cS(e){return ha(e)||ga(e)?null:at.jsx("span",{className:"HoursStatus-future",children:e.isOpen?"Closes at":"Opens at"})}function uS(e){if(ha(e)||ga(e))return null;let t="";if(e.isOpen){const n=e.currentInterval;t+=n?n.getEndTime("en-US",e.timeOptions):""}else{const n=e.futureInterval;t+=n?n.getStartTime("en-US",e.timeOptions):""}return at.jsxs("span",{className:"HoursStatus-time",children:[" ",t]})}function dS(e){var r,l;if(ha(e)||ga(e))return null;const t={weekday:"long",...e.dayOptions??{}};let n="";if(e.isOpen){const d=e.currentInterval;n+=((r=d==null?void 0:d.end)==null?void 0:r.setLocale("en-US").toLocaleString(t))||""}else{const d=e.futureInterval;n+=((l=d==null?void 0:d.start)==null?void 0:l.setLocale("en-US").toLocaleString(t))||""}return at.jsxs("span",{className:"HoursStatus-dayOfWeek",children:[" ",n]})}function fS(e,t){const n=e.currentTemplate||lS,r=e.separatorTemplate||aS,l=e.futureTemplate||cS,d=e.timeTemplate||uS,f=e.dayOfWeekTemplate||dS;return at.jsxs("div",{className:Qo("HoursStatus",(t==null?void 0:t.className)||""),children:[n(e),r(e),l(e),d(e),f(e)]})}const hS={minHeight:`${1.5}em`},gS=e=>{const[t,n]=nt.useState(!1),[r,l]=nt.useState(!1);nt.useEffect(()=>{l(!0)},[]);const d=e.statusTemplate||fS,f=new s_(e.hours,e.timezone),p=f.isOpenNow(),_=f.getCurrentInterval(),T=f.getNextInterval(),E=(_==null?void 0:_.end)||(T==null?void 0:T.start);if(E&&!t){n(!0);const w=E.toMillis()-Ot.now().toMillis();setTimeout(()=>n(!1),w)}const S={isOpen:p,currentInterval:_,futureInterval:T,...e};return at.jsx(at.Fragment,{children:r?d(S,e):at.jsx("div",{style:hS})})};function pS(e,t){const n=[];return e.forEach(r=>{const l=n[n.length-1];l?oS(l.intervals,r.intervals)?(l.endDay=r.endDay,l.isToday=l.isToday||r.isToday):n.push({...r}):n.push({...r})}),n.map(r=>{const l=t&&Di(r.startDay)in t?t[Di(r.startDay)]||"":Di(r.startDay),d=t&&Di(r.endDay)in t?t[Di(r.endDay)]||"":Di(r.endDay);return{...r,dayOfWeek:"Collapsed",dayName:r.startDay===r.endDay?`${l}`:`${l} - ${d}`}})}function mS(e,t){const n=[],r=e.intervals.length>0&&e.intervals[0].is24h();return e.intervals.length===0?n.push("Closed"):r?n.push("Open 24 hours"):e.intervals.forEach(l=>{const d=l.getStartTime("en-US",t),f=l.getEndTime("en-US",t);n.push(`${d} - ${f}`)}),n}function _S(e,t,n){const r=[];for(let l=1;l<=7;l++){const d=Ot.fromObject({weekday:l}),f=$d(d);r.push({startDay:f,endDay:f,dayName:n&&Di(f).toLowerCase()in n?n[Di(f).toLowerCase()]||"":Di(f),intervals:e.filter(p=>p.start.weekday===l),isToday:t.weekday===l})}return r}const yS=e=>{const[t,n]=nt.useState(!1);nt.useEffect(()=>{n(!0)},[]);const r=new s_(e.hours,Intl.DateTimeFormat().resolvedOptions().timeZone),l=Ot.now(),d=r.getIntervalsForNDays(7,l);let f=_S(d,l,e.dayOfWeekNames);function p(S){return S?{today:$d(l),monday:ln.Monday,tuesday:ln.Tuesday,wednesday:ln.Wednesday,thursday:ln.Thursday,friday:ln.Friday,saturday:ln.Saturday,sunday:ln.Sunday}[S]:ln.Sunday}let _=[ln.Sunday,ln.Monday,ln.Tuesday,ln.Wednesday,ln.Thursday,ln.Friday,ln.Saturday];const T=_.indexOf(p(e.startOfWeek));_=sS(_,7-T),f.sort((S,w)=>_.indexOf(S.startDay)-_.indexOf(w.startDay)),e.collapseDays&&(f=pS(f,e.dayOfWeekNames));const E=nt.useMemo(()=>({minHeight:`${f.length*1.5}em`}),[f.length]);return at.jsx(at.Fragment,{children:t?at.jsx("div",{className:Qo("HoursTable",e.className),children:f.map(S=>{const M=(e.intervalStringsBuilderFn||mS)(S,e.timeOptions);return at.jsxs("div",{className:Qo("HoursTable-row",{"is-today":S.isToday}),children:[at.jsx("span",{className:"HoursTable-day",children:S.dayName}),at.jsx("span",{className:"HoursTable-intervals",children:M.map((m,v)=>at.jsx("span",{className:"HoursTable-interval",children:m},v))})]},S.dayName)})}):at.jsx("div",{style:E})})},NS=e=>`<script type="application/ld+json">
110
110
  ${JSON.stringify(e)}
111
111
  <\/script>`,wc=(e,t)=>({"@context":"https://schema.org","@type":t,name:e.name}),CS=e=>typeof e!="object"?!1:"name"in e||"address"in e,ES=e=>typeof e!="object"?!1:"line1"in e||"city"in e||"region"in e||"postalCode"in e||"countryCode"in e,Fd=e=>ES(e)&&{address:{"@type":"PostalAddress",streetAddress:e.line1,addressLocality:e.city,addressRegion:e.region,postalCode:e.postalCode,addressCountry:e.countryCode}},o_=e=>CS(e)&&{"@type":"Place",name:e.name,...Fd(e.address)},l_=e=>typeof e!="object"||!("image"in e)?!1:"url"in e.image,Oc=e=>{if(!e)return{};const t=new Array;for(const n of e)l_(n)&&t.push(n.image.url);return{image:t}},TS=e=>l_(e)&&{image:e.image.url},xS=e=>typeof e!="object"?!1:"url"in e||"name"in e,vS=e=>Array.isArray(e),a_=e=>vS(e)&&{performer:{"@type":"PerformingGroup",name:e.join(" and ")}},c_=e=>xS(e)&&{organizer:{"@type":"Organization",name:e.name,url:e.url}},SS=e=>typeof e!="object"?!1:"url"in e||"priceCurrency"in e||"price"in e||"priceValidUntil"in e||"itemCondition"in e||"availability"in e,Bd=e=>SS(e)&&{offers:{"@type":"Offer",url:e.url,priceCurrency:e.priceCurrency,price:e.price,priceValidUntil:e.priceValidUntil,itemCondition:e.itemCondition,availability:e.availability}},wS=(e,t)=>({...wc(e,t??"Event"),...Oc(e.photoGallery),...o_({name:e.geomodifier,address:e.address}),startDate:e.c_startDate,endDate:e.c_endDate,description:e.description,eventAttendanceMode:e.attendance,eventStatus:e.eventStatus,...a_(e.performers),...c_({name:e.organizerName}),...Bd({url:"",priceCurrency:e.c_currency,price:e.price,priceValidUntil:e.expirationDate,itemCondition:e.stockStatus,availability:e.availabilityDate})}),OS=e=>typeof e!="object"?!1:"monday"in e||"tuesday"in e||"wednesday"in e||"thursday"in e||"friday"in e||"saturday"in e||"sunday"in e,DS=e=>typeof e=="object"&&"isClosed"in e&&Array.isArray(e.openIntervals)?e.openIntervals.length===0?!0:e.openIntervals.every(t=>typeof t=="object"&&"start"in t&&"end"in t):!1,u_=e=>{if(!OS(e))return{};let t=new Map;t=to(e.monday,t,"Mo"),t=to(e.tuesday,t,"Tu"),t=to(e.wednesday,t,"We"),t=to(e.thursday,t,"Th"),t=to(e.friday,t,"Fr"),t=to(e.saturday,t,"Sa"),t=to(e.sunday,t,"Su");const n=new Array;for(const[r,l]of t){const d=l.join(",");n.push(d+" "+r)}return{openingHours:n}},to=(e,t,n)=>{if(!DS(e)||e.isClosed){const r="00:00-00:00",l=t.get(r)??[];return l.push(n),t.set(r,l),t}for(let r=0;r<e.openIntervals.length;r++){const l=e.openIntervals[r].start+"-"+e.openIntervals[r].end,d=t.get(l)??[];d.push(n),t.set(l,d)}return t},AS=(e,t)=>({...wc(e,t??"LocalBusiness"),...Fd(e.address),...u_(e.hours),...Oc(e.photoGallery),description:e.description,telephone:e.mainPhone,email:e.email}),MS=e=>typeof e!="object"?!1:"ratingValue"in e||"bestRating"in e||"author"in e,RS=e=>typeof e!="object"?!1:"ratingValue"in e||"reviewCount"in e,d_=e=>MS(e)&&{review:{"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:e.ratingValue,bestRating:e.bestRating},author:{"@type":"Person",name:e.author}}},f_=e=>RS(e)?{aggregateRating:{"@type":"AggregateRating",ratingValue:e.ratingValue,reviewCount:e.reviewCount}}:void 0,bS=(e,t)=>({...wc(e,t??"Product"),...Oc(e.photoGallery),...d_(e.c_reviews),...f_(e.c_aggregateRating),...Bd({url:"",priceCurrency:e.c_currency,price:e.price,priceValidUntil:e.expirationDate,itemCondition:e.stockStatus,availability:e.availabilityDate}),description:e.description,sku:e.sku,mpn:e.mpn,brand:{"@type":"Brand",name:e.brand}}),LS=e=>typeof e!="object"?!1:"question"in e&&"answer"in e,IS=e=>typeof e!="object"?!1:"question"in e&&"answerV2"in e?"json"in e.answerV2&&typeof e.answerV2.json=="object":!1;function id(e,t){for(const n in e)if(typeof e[n]=="object")if(Array.isArray(e[n]))for(let r=0;r<e[n].length;r++)id(e[n][r],t);else id(e[n],t);else n==="text"&&t.push(e[n])}function kS(e){if(e.json){const t=[];return id(e.json,t),t.join("")}return""}const PS=e=>({"@context":"http://www.schema.org","@type":"FAQPage",mainEntity:e.map(t=>{if(LS(t)||IS(t))return{"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:"answer"in t?t.answer:kS(t.answerV2)}}})}),sd=Math.log2(1.6745627884839434),$S=4,FS=19,od="js-baidu-neg-lng-fix";let h_;const BS=new Promise(e=>h_=e),HS="https://api.map.baidu.com/geoconv/v1/";let Ql=[];const WS="gcj02ToBD09Callback_b872c21c";let KS=0,rp;async function g_(e){return await new Promise((t,n)=>{Ql.push({coordinates:e,resolve:t,reject:n}),Ql.length===1&&(rp=setTimeout(r,100)),Ql.length>40&&(clearTimeout(rp),r());function r(){const l=Ql;Ql=[];const d=[].concat(...l.map(_=>_.coordinates)),f=WS+"_"+KS++,p=document.createElement("script");window[f]=_=>{var S;if(_.status){const w=new Error(`Unable to convert coordinates to BD-09: Received status code ${_.status}${_.message?": "+_.message:""}`);l.forEach(M=>M.reject(w))}const T=_.result.map(w=>new dn(w.y,w.x));let E=0;l.forEach(w=>{w.resolve(T.slice(E,E+=w.coordinates.length))}),delete window[f],(S=p.parentNode)==null||S.removeChild(p)},BS.then(_=>{const T={ak:_,callback:f,coords:d.map(E=>`${E.longitude},${E.latitude}`).join(";"),from:3,to:5};p.src=HS+"?"+Object.entries(T).map(([E,S])=>E+"="+S).join("&"),document.head.appendChild(p)})}})}class zS extends rl{constructor(n){super(n);Ie(this,"_wrapper");Ie(this,"map");Ie(this,"_panStartHandler");Ie(this,"_panHandler");Ie(this,"_centerReady");const r=!!(window.MSInputMethodContext&&document.DOCUMENT_NODE);this._wrapper=n.wrapper,this.map=new BMap.Map(this._wrapper,{enableMapClick:n.controlEnabled,maxZoom:r?14:18,...n.providerOptions}),n.controlEnabled?(this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_RIGHT,type:BMAP_NAVIGATION_CONTROL_ZOOM}))):(this.map.disableDragging(),this.map.disableDoubleClickZoom(),this.map.disablePinchToZoom()),this._panStartHandler=()=>null,this._panHandler=()=>null,this.map.addEventListener("movestart",()=>this._panStartHandler()),this.map.addEventListener("moveend",()=>this._panHandler()),this.map.addEventListener("zoomstart",()=>this._panStartHandler()),this.map.addEventListener("zoomend",()=>{this._wrapper&&(this._wrapper.dataset.baiduZoom=this.map.getZoom()),this._panHandler()}),this._centerReady=Promise.resolve()}getCenter(){return new dn(this.map.getCenter())}getZoom(){return this.map.getZoom()-sd}setCenter(n,r){this._centerReady=g_([n]).then(([l])=>{const d=new BMap.Point(l.longitude,l.latitude);this.map.panTo(d,{noAnimation:!r})})}setZoom(n,r){this._centerReady.then(()=>{this.map.setViewport({center:this.map.getCenter(),zoom:Math.floor(n+sd)},{enableAnimation:r})})}}class US extends il{constructor(n){super(n);Ie(this,"_wrapper");Ie(this,"_zIndex");Ie(this,"_wrapperClass");Ie(this,"_originalWrapperClass");Ie(this,"_element");Ie(this,"_coordinateReady");Ie(this,"_negativeLngFix");Ie(this,"pin");this._wrapper=null,this._zIndex=0,this._wrapperClass="",this._originalWrapperClass="",this._element=this._pinEl,this._coordinateReady=Promise.resolve(),this._negativeLngFix=!1;class r extends BMap.Marker{constructor(p,_){super(p);Ie(this,"pin");this.pin=_}initialize(p){return this.pin._wrapper=super.initialize(p),this.pin._wrapper&&(this.pin._wrapper.style.zIndex=this.pin._zIndex.toString(),this.pin._originalWrapperClass=this.pin._wrapper.getAttribute("class")??"",this.pin._wrapper.setAttribute("class",this.pin._getClass()),this.pin._wrapper.appendChild(this.pin._element),this.pin.addListeners()),this.pin._wrapper}draw(){if(this.pin._wrapper){const p=this.pin._wrapper.style.zIndex;super.draw(),this.pin._wrapper.style.height="",this.pin._wrapper.style.width="",this.pin._wrapper.style.pointerEvents="none",this.pin._wrapper.style.zIndex=p}else super.draw()}}this.pin=new r(new BMap.Point(0,0),this);const l=new BMap.Icon("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",{height:0,width:0});this.pin.setIcon(l),this.pin.setShadow(l)}addListeners(){super.addListeners(),this._wrapper&&this._wrapper.addEventListener("touchend",()=>this._clickHandler())}setCoordinate(n){this._coordinateReady=g_([n]).then(([r])=>{this._negativeLngFix=r.longitude<0,this.pin.setPosition(new BMap.Point(r.longitude+(this._negativeLngFix?180:0),r.latitude)),this._wrapper&&this._wrapper.classList[this._negativeLngFix?"add":"remove"](od)})}setMap(n,r){this._coordinateReady.then(()=>{r&&r.getProviderMap().map.removeOverlay(this.pin),n&&n.getProviderMap().map.addOverlay(this.pin)})}setProperties(n){super.setProperties(n),this._wrapperClass=n.getClass(),this._element=n.getElement()||this._pinEl,this._zIndex=n.getZIndex(),this._wrapper&&this._wrapper.setAttribute("class",this._getClass())}_getClass(){return`${this._originalWrapperClass} ${this._negativeLngFix?od:""} ${this._wrapperClass}`}}const GS="https://api.map.baidu.com/getscript";function YS(e,t,n,{params:r={},version:l="3.0"}={}){window.BMAP_PROTOCOL="https",window.BMap_loadScriptTime=new Date().getTime();const d=n,f={ak:d,v:l,...r};h_(d);const p=document.createElement("script");p.src=GS+"?"+Object.entries(f).map(([E,S])=>E+"="+S).join("&"),p.onload=()=>e(),document.head.appendChild(p);let _="";for(let E=$S;E<=FS;E++){const S=2**(E-sd+7);_+=`[data-baidu-zoom="${E}"] .${od}{transform:translateX(-${S}px);}`}const T=document.createElement("style");T.appendChild(document.createTextNode(_)),document.head.appendChild(T)}const jS=new lo().withLoadFunction(YS).withMapClass(zS).withPinClass(US).withProviderName("Baidu").build();let p_;function VS(){class e extends Microsoft.Maps.CustomOverlay{constructor(){super({beneathLabels:!1});Ie(this,"_container");Ie(this,"_pins");Ie(this,"_viewChangeEventHandler");Ie(this,"_map");this._container=document.createElement("div"),this._pins=new Set,this._viewChangeEventHandler=null,this._container.style.position="absolute",this._container.style.left="0",this._container.style.top="0"}addPin(r){this._pins.add(r),r._wrapper&&(r._wrapper.style.position="absolute",this._container.appendChild(r._wrapper)),this._map&&this.updatePinPosition(r)}onAdd(){this._map=this.getMap(),this.setHtmlElement(this._container)}onLoad(){this._viewChangeEventHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",()=>this.updatePinPositions()),this.updatePinPositions()}onRemove(){this._viewChangeEventHandler&&Microsoft.Maps.Events.removeHandler(this._viewChangeEventHandler),this._map=null}removePin(r){this._pins.delete(r),r._wrapper&&this._container.removeChild(r._wrapper)}updatePinPosition(r){if(!this._map)return;const l=this._map.tryLocationToPixel(r._location,Microsoft.Maps.PixelReference.control);r._wrapper&&l instanceof Microsoft.Maps.Point&&(r._wrapper.style.left=l.x+"px",r._wrapper.style.top=l.y+"px")}updatePinPositions(){this._pins.forEach(r=>this.updatePinPosition(r))}}p_=e}class qS extends rl{constructor(n){super(n);Ie(this,"wrapper");Ie(this,"map");Ie(this,"pinOverlay");this.wrapper=n.wrapper,this.wrapper&&(this.map=new Microsoft.Maps.Map(this.wrapper,{disablePanning:!n.controlEnabled,disableZooming:!n.controlEnabled,showLocateMeButton:!1,showMapTypeSelector:!1,showScalebar:!1,showTrafficButton:!1,...n.providerOptions}),this.pinOverlay=new p_(this.map),this.map.layers.insert(this.pinOverlay),Microsoft.Maps.Events.addHandler(this.map,"viewchangestart",()=>this._panStartHandler()),Microsoft.Maps.Events.addHandler(this.map,"viewchangeend",()=>this._panHandler()))}getCenter(){var n;return new dn(((n=this.map)==null?void 0:n.getCenter())??{lat:0,lng:0})}getZoom(){var n;return((n=this.map)==null?void 0:n.getZoom())??0}setCenter(n,r){var d;const l=new Microsoft.Maps.Location(n.latitude,n.longitude);(d=this.map)==null||d.setView({center:l}),this.pinOverlay.updatePinPositions()}setZoom(n,r){var l;(l=this.map)==null||l.setView({zoom:Math.floor(n)}),this.pinOverlay.updatePinPositions()}}class m_ extends il{constructor(n){super(n);Ie(this,"_location");Ie(this,"_map");this._map=null,this._location=new Microsoft.Maps.Location(0,0)}static getId(){return this._pinId=(this._pinId||0)+1,this._pinId}setCoordinate(n){this._location=new Microsoft.Maps.Location(n.latitude,n.longitude),this._map&&this._map.getProviderMap().pinOverlay.updatePinPosition(this)}setMap(n,r){r&&r.getProviderMap().pinOverlay.removePin(this),n&&n.getProviderMap().pinOverlay.addPin(this),this._map=n}}Ie(m_,"_pinId");const ip="BingMapsCallback_593d7d33",ZS="https://www.bing.com/api/maps/mapcontrol";function JS(e,t,n,{params:r={}}={}){window[ip]=()=>{VS(),e()};const l={callback:ip,key:n,...r};hp(ZS+"?"+Object.entries(l).map(([d,f])=>d+"="+f).join("&"))}const XS=new lo().withLoadFunction(JS).withMapClass(qS).withPinClass(m_).withProviderName("Bing").build();class QS extends rl{constructor(n){var r,l,d;super(n);Ie(this,"map");if(n.wrapper&&(this.map=new mapboxgl.Map({container:n.wrapper,interactive:n.controlEnabled,style:"mapbox://styles/mapbox/streets-v9",...n.providerOptions})),n.controlEnabled){const f=new mapboxgl.NavigationControl({showCompass:!1});(r=this.map)==null||r.addControl(f)}(l=this.map)==null||l.on("movestart",()=>this._panStartHandler()),(d=this.map)==null||d.on("moveend",()=>this._panHandler())}getCenter(){var n;return new dn(((n=this.map)==null?void 0:n.getCenter())??{lat:0,lng:0})}getZoom(){var n;return(((n=this.map)==null?void 0:n.getZoom())??0)+1}setCenter(n,r){const l=new mapboxgl.LngLat(n.longitude,n.latitude);this.map&&this.map[r?"panTo":"setCenter"](l)}setZoom(n,r){this.map&&this.map[r?"zoomTo":"setZoom"](n-1)}setZoomCenter(n,r,l){const d=new mapboxgl.LngLat(r.longitude,r.latitude);this.map&&this.map[l?"easeTo":"jumpTo"]({center:d,zoom:n-1})}}class ew extends il{constructor(n){super(n);Ie(this,"pin");this._wrapper&&(this._wrapper.style.position="relative",this.pin=new mapboxgl.Marker({anchor:"top-left",element:this._wrapper}))}setCoordinate(n){var r;(r=this.pin)==null||r.setLngLat(new mapboxgl.LngLat(n.longitude,n.latitude))}setMap(n,r){var l,d;if(n){const f=n.getProviderMap().map;f&&((l=this.pin)==null||l.addTo(f))}else(d=this.pin)==null||d.remove()}}function tw(e,t,n,{version:r="v1.13.0"}={}){const l=`https://api.mapbox.com/mapbox-gl-js/${r}/mapbox-gl`,d=document.createElement("link");d.rel="stylesheet",d.href=l+".css";const f=document.createElement("script");f.src=l+".js",f.onload=()=>{mapboxgl.accessToken=n,e()},document.head.appendChild(d),document.head.appendChild(f)}const nw=new lo().withLoadFunction(tw).withMapClass(QS).withPinClass(ew).withProviderName("Mapbox").build();var oo;let __=(oo=class extends rl{constructor(n){var r,l,d;super(n);Ie(this,"map");this._initMap(n),n.controlEnabled&&((r=this.map)==null||r.zoomControl.setPosition("topright")),(l=this.map)==null||l.on("movestart",()=>this._panStartHandler()),(d=this.map)==null||d.on("moveend",()=>this._panHandler())}getCenter(){var n;return new dn(((n=this.map)==null?void 0:n.getCenter())??{lat:0,lng:0})}getZoom(){var n;return((n=this.map)==null?void 0:n.getZoom())??0}setCenter(n,r){var d;const l=new L.LatLng(n.latitude,n.longitude);(d=this.map)==null||d.panTo(l,{animate:r})}setZoom(n,r){var l;(l=this.map)==null||l.setZoom(n,{animate:r})}setZoomCenter(n,r,l){var f;const d=new L.LatLng(r.latitude,r.longitude);(f=this.map)==null||f.setView(d,n,{animate:l})}_initMap(n){n.wrapper&&(this.map=new L.Map(n.wrapper,{boxZoom:n.controlEnabled,doubleClickZoom:n.controlEnabled,dragging:n.controlEnabled,zoom:0,zoomControl:n.controlEnabled,zoomSnap:0,...n.providerOptions}));const r=n.providerOptions,l=r.tileLayerSrc||"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}",d=r.tileLayerOptions||{attribution:'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',id:"mapbox/streets-v11"};d.accessToken=oo.apiKey,this.map&&L.tileLayer(l,d).addTo(this.map)}},Ie(oo,"apiKey"),oo),rw=class extends fd{constructor(n){super(n);Ie(this,"pin");this.pin=new L.Marker(new L.LatLng(0,0)),this.pin.on("click",()=>this._clickHandler()),this.pin.on("mouseover",()=>this._hoverHandler(!0)),this.pin.on("mouseout",()=>this._hoverHandler(!1))}setCoordinate(n){const r=new L.LatLng(n.latitude,n.longitude);this.pin.setLatLng(r)}setMap(n,r){if(n){const l=n.getProviderMap().map;l&&this.pin.addTo(l)}else this.pin.remove()}setProperties(n){const r=n.getWidth(),l=n.getHeight(),d=n.getAnchorX(),f=n.getAnchorY();this.pin.setIcon(new L.Icon({iconUrl:this._icons[n.getIcon()],iconSize:[r,l],iconAnchor:[d*r,f*l],className:n.getClass()})),this.pin.setZIndexOffset(n.getZIndex())}};function iw(e,t,n,{version:r="1.7.1"}={}){const l=`https://unpkg.com/leaflet@${r}/dist/leaflet`;__.apiKey=n;const d=document.createElement("link");d.rel="stylesheet",d.href=l+".css";const f=document.createElement("script");f.src=l+".js",f.onload=()=>e(),document.head.appendChild(d),document.head.appendChild(f)}const Hd=new lo().withLoadFunction(iw).withMapClass(__).withPinClass(rw).withProviderName("Leaflet").build(),sw=Hd.getMapClass(),ow=Hd.getPinClass();class lw extends sw{constructor(){super(...arguments);Ie(this,"map")}_initMap(n){this.map=L.mapquest.map(n.wrapper,{boxZoom:n.controlEnabled,center:new L.LatLng(0,0),doubleClickZoom:n.controlEnabled,dragging:n.controlEnabled,layers:L.mapquest.tileLayer("map"),zoom:0,zoomControl:n.controlEnabled,zoomSnap:0,...n.providerOptions})}}class aw extends ow{}function cw(e,t,n,{version:r="v1.3.2"}={}){const l=`https://api.mqcdn.com/sdk/mapquest-js/${r}/mapquest-maps`,d=document.createElement("link");d.rel="stylesheet",d.href=l+".css";const f=document.createElement("script");f.src=l+".js",f.onload=()=>{L.mapquest.key=n,e()},document.head.appendChild(d),document.head.appendChild(f)}const uw=new lo().withLoadFunction(cw).withMapClass(lw).withPinClass(aw).withProviderName("MapQuest").build();exports.Address=ay;exports.AddressSchema=Fd;exports.AggregateRatingSchema=f_;exports.Analytics=cp;exports.AnalyticsContext=ud;exports.AnalyticsProvider=jy;exports.AnalyticsScopeProvider=Vy;exports.BaiduMaps=jS;exports.BaseSchema=wc;exports.BingMaps=XS;exports.Clusterer=LN;exports.Coordinate=dn;exports.Day=ln;exports.Event=wS;exports.FAQPage=PS;exports.GoogleMaps=mp;exports.HoursStatus=gS;exports.HoursTable=yS;exports.Image=nN;exports.ImageLayoutOption=Ts;exports.LeafletMaps=Hd;exports.LegacyRichText=nx;exports.LexicalRichText=gE;exports.Link=fp;exports.ListingPublisherOption=sp;exports.LocalBusiness=AS;exports.LocationMap=PN;exports.LocationSchema=o_;exports.Map=Np;exports.MapProviderOption=Wu;exports.MapQuestMaps=uw;exports.MapboxMaps=nw;exports.Marker=pd;exports.OfferSchema=Bd;exports.OpeningHoursSchema=u_;exports.OrganizationSchema=c_;exports.PerformerSchema=a_;exports.PhotoGallerySchema=Oc;exports.PhotoSchema=TS;exports.Product=bS;exports.ReviewSchema=d_;exports.SchemaWrapper=NS;exports.asciiAlpha=vE;exports.asciiAlphanumeric=Ju;exports.asciiAtext=SE;exports.asciiControl=wE;exports.asciiDigit=OE;exports.asciiHexDigit=DE;exports.asciiPunctuation=AE;exports.c=Qo;exports.classifyCharacter=la;exports.combineExtensions=Up;exports.createState=UT;exports.debuggingParamDetected=cc;exports.getDefaultExportFromCjs=ad;exports.getDirections=oy;exports.getRuntime=Xo;exports.jsxRuntimeExports=at;exports.markdownLineEnding=ME;exports.markdownLineEndingOrSpace=Jp;exports.markdownSpace=RE;exports.normalizeUri=ol;exports.push=jo;exports.resolveAll=Xp;exports.splice=yc;exports.useAnalytics=nl;exports.useClusterContext=bN;exports.useIdentify=Jy;exports.useMapContext=MN;exports.usePageView=Zy;exports.useScope=dd;exports.useTrack=qy;exports.visit=Dd;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-BbVj7quu.cjs");function er(n){const t=[];let e=-1;for(;++e<n.footnoteOrder.length;){const r=n.footnoteById[n.footnoteOrder[e]];if(!r)continue;const i=n.all(r),l=String(r.identifier).toUpperCase(),o=m.normalizeUri(l.toLowerCase());let a=0;const s=[];for(;++a<=n.footnoteCounts[l];){const p={type:"element",tagName:"a",properties:{href:"#"+n.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(p)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const p=c.children[c.children.length-1];p&&p.type==="text"?p.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else i.push(...s);const d={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+o},children:n.wrap(i,!0)};n.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(n.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:n.footnoteLabel}]},{type:"text",value:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-COhY74cc.cjs");function er(n){const t=[];let e=-1;for(;++e<n.footnoteOrder.length;){const r=n.footnoteById[n.footnoteOrder[e]];if(!r)continue;const i=n.all(r),l=String(r.identifier).toUpperCase(),o=m.normalizeUri(l.toLowerCase());let a=0;const s=[];for(;++a<=n.footnoteCounts[l];){const p={type:"element",tagName:"a",properties:{href:"#"+n.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(p)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const p=c.children[c.children.length-1];p&&p.type==="text"?p.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else i.push(...s);const d={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+o},children:n.wrap(i,!0)};n.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(n.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:n.footnoteLabel}]},{type:"text",value:`
2
2
  `},{type:"element",tagName:"ol",properties:{},children:n.wrap(t,!0)},{type:"text",value:`
3
3
  `}]}}function yt(n,t){const e=m.createState(n,t),r=e.one(n,null),i=er(e);return i&&r.children.push({type:"text",value:`
4
4
  `},i),Array.isArray(r)?{type:"root",children:r}:r}const tr=function(n,t){return n&&"run"in n?rr(n,t):ir(n||t)};function rr(n,t){return(e,r,i)=>{n.run(yt(e,t),r,l=>{i(l)})}}function ir(n){return t=>yt(t,n)}const Pe=["http","https","mailto","tel"];function xt(n){const t=(n||"").trim(),e=t.charAt(0);if(e==="#"||e==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<Pe.length;){const l=Pe[i];if(r===l.length&&t.slice(0,l.length).toLowerCase()===l)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BbVj7quu.cjs");exports.Address=e.Address;exports.AddressSchema=e.AddressSchema;exports.AggregateRatingSchema=e.AggregateRatingSchema;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BaseSchema=e.BaseSchema;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.CoordinateClass=e.Coordinate;exports.Day=e.Day;exports.Event=e.Event;exports.FAQPage=e.FAQPage;exports.GoogleMaps=e.GoogleMaps;exports.HoursStatus=e.HoursStatus;exports.HoursTable=e.HoursTable;exports.Image=e.Image;exports.ImageLayoutOption=e.ImageLayoutOption;exports.LeafletMaps=e.LeafletMaps;exports.LegacyRichText=e.LegacyRichText;exports.LexicalRichText=e.LexicalRichText;exports.Link=e.Link;exports.ListingPublisherOption=e.ListingPublisherOption;exports.LocalBusiness=e.LocalBusiness;exports.LocationMap=e.LocationMap;exports.LocationSchema=e.LocationSchema;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;exports.OfferSchema=e.OfferSchema;exports.OpeningHoursSchema=e.OpeningHoursSchema;exports.OrganizationSchema=e.OrganizationSchema;exports.PerformerSchema=e.PerformerSchema;exports.PhotoGallerySchema=e.PhotoGallerySchema;exports.PhotoSchema=e.PhotoSchema;exports.Product=e.Product;exports.ReviewSchema=e.ReviewSchema;exports.SchemaWrapper=e.SchemaWrapper;exports.debuggingParamDetected=e.debuggingParamDetected;exports.getDirections=e.getDirections;exports.useAnalytics=e.useAnalytics;exports.useClusterContext=e.useClusterContext;exports.useIdentify=e.useIdentify;exports.useMapContext=e.useMapContext;exports.usePageView=e.usePageView;exports.useScope=e.useScope;exports.useTrack=e.useTrack;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-COhY74cc.cjs");exports.Address=e.Address;exports.AddressSchema=e.AddressSchema;exports.AggregateRatingSchema=e.AggregateRatingSchema;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BaseSchema=e.BaseSchema;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.CoordinateClass=e.Coordinate;exports.Day=e.Day;exports.Event=e.Event;exports.FAQPage=e.FAQPage;exports.GoogleMaps=e.GoogleMaps;exports.HoursStatus=e.HoursStatus;exports.HoursTable=e.HoursTable;exports.Image=e.Image;exports.ImageLayoutOption=e.ImageLayoutOption;exports.LeafletMaps=e.LeafletMaps;exports.LegacyRichText=e.LegacyRichText;exports.LexicalRichText=e.LexicalRichText;exports.Link=e.Link;exports.ListingPublisherOption=e.ListingPublisherOption;exports.LocalBusiness=e.LocalBusiness;exports.LocationMap=e.LocationMap;exports.LocationSchema=e.LocationSchema;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;exports.OfferSchema=e.OfferSchema;exports.OpeningHoursSchema=e.OpeningHoursSchema;exports.OrganizationSchema=e.OrganizationSchema;exports.PerformerSchema=e.PerformerSchema;exports.PhotoGallerySchema=e.PhotoGallerySchema;exports.PhotoSchema=e.PhotoSchema;exports.Product=e.Product;exports.ReviewSchema=e.ReviewSchema;exports.SchemaWrapper=e.SchemaWrapper;exports.debuggingParamDetected=e.debuggingParamDetected;exports.getDirections=e.getDirections;exports.useAnalytics=e.useAnalytics;exports.useClusterContext=e.useClusterContext;exports.useIdentify=e.useIdentify;exports.useMapContext=e.useMapContext;exports.usePageView=e.usePageView;exports.useScope=e.useScope;exports.useTrack=e.useTrack;
@@ -1,4 +1,4 @@
1
- import { A as e, a2 as t, ab as i, x as o, y as r, E as c, H as n, ac as p, Z as u, ad as g, Q as h, ai as m, X as l, _ as S, a1 as d, ae as M, V as P, W as y, I as A, J as L, ag as x, U as C, T as f, K as O, L as b, $ as v, S as B, a3 as R, N as T, M as D, ah as H, af as I, P as k, a5 as w, a4 as G, a7 as Q, a6 as z, a8 as E, a9 as F, a0 as V, aa as W, Y as J, F as K, w as N, z as U, R as X, D as Y, O as Z, C as _, G as $, B as j } from "./index-C8IsJIMm.js";
1
+ import { A as e, a2 as t, ab as i, x as o, y as r, E as c, H as n, ac as p, Z as u, ad as g, Q as h, ai as m, X as l, _ as S, a1 as d, ae as M, V as P, W as y, I as A, J as L, ag as x, U as C, T as f, K as O, L as b, $ as v, S as B, a3 as R, N as T, M as D, ah as H, af as I, P as k, a5 as w, a4 as G, a7 as Q, a6 as z, a8 as E, a9 as F, a0 as V, aa as W, Y as J, F as K, w as N, z as U, R as X, D as Y, O as Z, C as _, G as $, B as j } from "./index-59MyeK1e.js";
2
2
  export {
3
3
  e as Address,
4
4
  t as AddressSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yext/pages-components",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "A React component library that supports Yext Pages development",
5
5
  "author": "sumo@yext.com",
6
6
  "license": "BSD-3-Clause",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-BbVj7quu.cjs"),p=require("react"),k=require("react-dom");function N(){return i.getRuntime().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,k.createPortal(i.jsxRuntimeExports.jsx(R,{}),document.body))}const S=(e,n)=>{const s=e.dataset.yaAction,t=e.dataset.yaScopeoverride,l=e.dataset.yaEventname,c=t||n;return{action:s,originalEventName:c?`${c}_${l}`:l,scope:c}},B=(e,n)=>{const s=[];let t=e;for(;t!=null&&t.parentElement;)t=t.parentElement.closest(n),t&&s.push(t);return s},h={},w="YA_NO_SCOPE",y=(e,n,s,t)=>{h.hasOwnProperty(e)?h[e].events.map(l=>l.el).includes(t)||(h[e].events=[...h[e].events,{eventData:n,el:t}]):h[e]={scopeEl:s||t,events:[{eventData:n,el:t}]}};function R(){const[e,n]=p.useState(),[s,t]=p.useState([]),[l,c]=p.useState(!1),o=r=>{n(e===r?void 0:r)};return p.useEffect(()=>(document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-eventname]").forEach((u,g)=>{const a=u.closest("[data-ya-scope]"),x=a==null?void 0:a.dataset.yaScope,d=S(u,x);u.addEventListener("mouseenter",()=>{t([{elem:u,key:`${d.originalEventName}_${g}`,action:d.action,originalEventName:d.originalEventName,scope:d.scope}])}),u.addEventListener("mouseleave",()=>{t([])});const b=u.dataset.yaScopeoverride;b?y(b,d,a,u):[x,...B(u,"[data-ya-scope]").map(m=>m.dataset.yaScope)].forEach(m=>{y(m||w,d,a,u)})}),c(!0),()=>{document.documentElement.classList.remove("xYextDebug")}),[]),l?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger",children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-toggles",children:[i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Events"}),onClick:()=>o("Events"),children:"Events"}),i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Scopes"}),onClick:()=>o("Scopes"),children:"Scopes"})]}),e&&i.jsxRuntimeExports.jsx("div",{className:"analytics-debugger-tabs",children:e==="Events"?i.jsxRuntimeExports.jsx(O,{data:h,setTooltips:t}):i.jsxRuntimeExports.jsx($,{data:h,setTooltips:t})})]}),i.jsxRuntimeExports.jsx(D,{tooltips:s})]}):null}const C=()=>{const e={};return Object.values(h).forEach(n=>{n.events.forEach(s=>{const{originalEventName:t}=s.eventData;e[t]||(e[t]=[]),!e[t].find(l=>l.el===s.el)&&e[t].push(s)})}),e};function O(e){const{setTooltips:n}=e,[s,t]=p.useState([]),[l,c]=p.useState(""),o=(r,u)=>{s.forEach(a=>a.classList.remove("analytics-event-highlight"));const g=r.map(a=>(a.el.scrollIntoView({behavior:"smooth",block:"nearest"}),a.el.classList.add("analytics-event-highlight"),a.el));t(g),c(u),n(r.map((a,x)=>({elem:a.el,key:`${a.eventData.originalEventName}_${x}`,action:a.eventData.action,originalEventName:a.eventData.originalEventName,scope:a.eventData.scope})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.entries(C()).map(([r,u],g)=>{const a=`${r}_${g}`;return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":a===l}),onClick:()=>o(u,a),children:r})},a)})})]})}function $(e){const{data:n,setTooltips:s}=e,[t,l]=p.useState(""),c=o=>{const r=n[o];r.scopeEl&&(r.scopeEl.scrollIntoView({behavior:"smooth",block:"nearest"}),l(o),s(r.events.map((u,g)=>{const a=u.eventData;return{elem:u.el,key:`${a.originalEventName}_${g}`,action:a.action,originalEventName:a.originalEventName,scope:a.scope}})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(n).map((o,r)=>{if(o!==w)return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":o===t}),onClick:()=>c(o),children:o})},o+r)})})]})}function D(e){const n=p.useRef({});return p.useEffect(()=>{if(n.current)for(const s of Object.values(n.current)){const t=Object.values(n.current).map(l=>l.el).filter(l=>l!==s.el);Y(s,t),s.el.style.visibility="visible"}},[e.tooltips]),i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:e.tooltips.map(s=>i.jsxRuntimeExports.jsxs("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:t=>{t?n.current[s.key]={el:t,tooltip:s}:delete n.current[s.key]},children:[i.jsxRuntimeExports.jsxs("span",{children:["Action: ",s.action]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Scope: ",s.scope]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Original Event Name: ",s.originalEventName]})]},s.key))})}function Y(e,n){for(let s=0;s<9;s++){const t=I(e.tooltip.elem.getBoundingClientRect(),e.el,s);if(e.el.style.inset=`${t.top} auto auto ${t.left}`,!!A(e.el.getBoundingClientRect().left,e.el.getBoundingClientRect().top+window.scrollY,e.el.getBoundingClientRect().right,e.el.getBoundingClientRect().bottom+window.scrollY))continue;let c=!0;for(let o=0;o<n.length;o++){const r=n[o];T(e.el,r)&&(c=!1)}if(c)break}}function T(e,n){const s=e.getBoundingClientRect().top+window.scrollY,t=e.getBoundingClientRect().left,l=s+e.clientHeight,c=t+e.clientWidth,o=n.getBoundingClientRect().top+window.scrollY,r=n.getBoundingClientRect().left,u=o+n.clientHeight,g=r+n.clientWidth,a=(x,d,b,E,m,j,v,f)=>b<=m&&m<=v&&E<=j&&j<=f||b<=x&&x<=v&&E<=d&&d<=f||b<=x&&x<=v&&E<=j&&j<=f||b<=m&&m<=v&&E<=d&&d<=f;return a(t,s,r,o,c,l,g,u)||a(r,o,t,s,g,u,c,l)}function A(e,n,s,t){return e<0||s>window.innerWidth||n<0||t>document.documentElement.scrollHeight}function I(e,n,s){const t=n.clientHeight,l=n.clientWidth;let c,o;switch(s){case 0:{o=window.scrollY+e.top-t+"px",c=e.left-l+"px";break}case 1:{o=window.scrollY+e.top-t+"px",c=e.left+"px";break}case 2:{o=window.scrollY+e.top-t+"px",c=e.right+"px";break}case 3:{o=window.scrollY+e.top-t+"px",c=e.right-l+"px";break}case 4:{o=window.scrollY+e.bottom+"px",c=e.left-l+"px";break}case 5:{o=window.scrollY+e.bottom+"px",c=e.left+"px";break}case 6:{o=window.scrollY+e.bottom+"px",c=e.right-l+"px";break}case 7:{o=window.scrollY+e.bottom+"px",c=e.right+"px";break}default:o=0,c=0}return{top:o,left:c}}exports.AnalyticsDebuggerInternal=R;exports.default=N;